(self["webpackChunkpattern_frontend"]=self["webpackChunkpattern_frontend"]||[]).push([[504],{14:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="LockOutlined",c.inheritAttrs=!1;var u=c},286:function(e){function t(e){const t={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},n={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until  UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},t,n]}}e.exports=t},655:function(e,t,n){"use strict";var r=n(36955),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},723:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="ReloadOutlined",c.inheritAttrs=!1;var u=c},944:function(e){"use strict";var t=TypeError;e.exports=function(e){var n=e&&e.alphabet;if(void 0===n||"base64"===n||"base64url"===n)return n||"base64";throw new t("Incorrect `alphabet` option")}},979:function(e){function t(e){const t=["task","project","allprojects","subprojects","artifacts","buildscript","configurations","dependencies","repositories","sourceSets","description","delete","from","into","include","exclude","source","classpath","destinationDir","includes","options","sourceCompatibility","targetCompatibility","group","flatDir","doLast","doFirst","flatten","todir","fromdir","ant","def","abstract","break","case","catch","continue","default","do","else","extends","final","finally","for","if","implements","instanceof","native","new","private","protected","public","return","static","switch","synchronized","throw","throws","transient","try","volatile","while","strictfp","package","import","false","null","super","this","true","antlrtask","checkstyle","codenarc","copy","boolean","byte","char","class","double","float","int","interface","long","short","void","compile","runTime","file","fileTree","abs","any","append","asList","asWritable","call","collect","compareTo","count","div","dump","each","eachByte","eachFile","eachLine","every","find","findAll","flatten","getAt","getErr","getIn","getOut","getText","grep","immutable","inject","inspect","intersect","invokeMethods","isCase","join","leftShift","minus","multiply","newInputStream","newOutputStream","newPrintWriter","newReader","newWriter","next","plus","pop","power","previous","print","println","push","putAt","read","readBytes","readLines","reverse","reverseEach","round","size","sort","splitEachLine","step","subMap","times","toInteger","toList","tokenize","upto","waitForOrKill","withPrintWriter","withReader","withStream","withWriter","withWriterAppend","write","writeLine"];return{name:"Gradle",case_insensitive:!0,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}}e.exports=t},1035:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.3 338.4a447.57 447.57 0 00-96.1-143.3 443.09 443.09 0 00-143-96.3A443.91 443.91 0 00512 64h-2c-60.5.3-119 12.3-174.1 35.9a444.08 444.08 0 00-141.7 96.5 445 445 0 00-95 142.8A449.89 449.89 0 0065 514.1c.3 69.4 16.9 138.3 47.9 199.9v152c0 25.4 20.6 46 45.9 46h151.8a447.72 447.72 0 00199.5 48h2.1c59.8 0 117.7-11.6 172.3-34.3A443.2 443.2 0 00827 830.5c41.2-40.9 73.6-88.7 96.3-142 23.5-55.2 35.5-113.9 35.8-174.5.2-60.9-11.6-120-34.8-175.6zM312.4 560c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.4 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48zm199.6 0c-26.4 0-47.9-21.5-47.9-48s21.5-48 47.9-48 47.9 21.5 47.9 48-21.5 48-47.9 48z"}}]},name:"message",theme:"filled"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="MessageFilled",c.inheritAttrs=!1;var u=c},1120:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(39578);function i(){return!1}var o=i,a="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=a&&"object"==typeof module&&module&&!module.nodeType&&module,l=s&&s.exports===a,c=l?r.A.Buffer:void 0,u=c?c.isBuffer:void 0,d=u||o,h=d},1128:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});n(18111),n(18237);var r=n(90144),i=n(56768),o=n(4663);function a(){}let s=a;const l=Symbol("WarningContext"),c=(0,r.IJ)(),u=e=>{(0,i.Gt)(l,e),(0,i.wB)(e,()=>{c.value=(0,r.R1)(e),(0,r.mu)(c)},{immediate:!0,deep:!0})};(0,i.pM)({props:{value:(0,o.ge)()},setup(e,{slots:t}){return u((0,i.EW)(()=>e.value)),()=>{var e;return null==(e=t.default)?void 0:e.call(t)}}});let d=0;class h{constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=d,0===e.length&&s(e.length>0),d+=1}getDerivativeToken(e){return this.derivatives.reduce((t,n)=>n(e,t),void 0)}}},1147:function(e,t,n){"use strict";n.d(t,{A3:function(){return i},XV:function(){return r},Xf:function(){return a},ky:function(){return o}});n(18111),n(61701),n(18237);function r(){const e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function i(e){const t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.scrollX||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.scrollY||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function o(e){const t=Array.prototype.slice.apply(e);return t.map(t=>`${t}: ${e.getPropertyValue(t)};`).join("")}function a(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return"undefined"===typeof r||null===r||(t+=`${n}: ${e[n]};`),t},"")}},1282:function(e){function t(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="<[^<>]+>",a="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional(o)+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+l+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},f=t.optional(i)+e.IDENT_RE+"\\s*\\(",p=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],m=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],v=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],A=["NULL","false","nullopt","nullptr","true"],b=["_Pragma"],y={type:g,keyword:p,literal:A,built_in:b,_type_hints:m},w={className:"function.dispatch",relevance:0,keywords:{_hint:v},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},_=[w,d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],x={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:y,contains:_.concat([{begin:/\(/,end:/\)/,keywords:y,contains:_.concat(["self"]),relevance:0}]),relevance:0},E={className:"function",begin:"("+a+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:y,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:y,relevance:0},{begin:f,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:y,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(x,E,w,_,[d,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:y,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:y},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function n(e){const n={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},r=t(e),i=r.keywords;return i.type=[...i.type,...n.type],i.literal=[...i.literal,...n.literal],i.built_in=[...i.built_in,...n.built_in],i._hints=n._hints,r.name="Arduino",r.aliases=["ino"],r.supersetOf="cpp",r}e.exports=n},1471:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});const r={adjustX:1,adjustY:1},i=[0,0],o={left:{points:["cr","cl"],overflow:r,offset:[-4,0],targetOffset:i},right:{points:["cl","cr"],overflow:r,offset:[4,0],targetOffset:i},top:{points:["bc","tc"],overflow:r,offset:[0,-4],targetOffset:i},bottom:{points:["tc","bc"],overflow:r,offset:[0,4],targetOffset:i},topLeft:{points:["bl","tl"],overflow:r,offset:[0,-4],targetOffset:i},leftTop:{points:["tr","tl"],overflow:r,offset:[-4,0],targetOffset:i},topRight:{points:["br","tr"],overflow:r,offset:[0,-4],targetOffset:i},rightTop:{points:["tl","tr"],overflow:r,offset:[4,0],targetOffset:i},bottomRight:{points:["tr","br"],overflow:r,offset:[0,4],targetOffset:i},rightBottom:{points:["bl","br"],overflow:r,offset:[4,0],targetOffset:i},bottomLeft:{points:["tl","bl"],overflow:r,offset:[0,4],targetOffset:i},leftBottom:{points:["br","bl"],overflow:r,offset:[-4,0],targetOffset:i}}},1576:function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",h="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},A={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),o=n-i<0,a=t.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:h,h:a,m:o,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",y={};y[b]=m;var w="$isDayjsObject",_=function(e){return e instanceof C||!(!e||!e[w])},x=function e(t,n,r){var i;if(!t)return b;if("string"==typeof t){var o=t.toLowerCase();y[o]&&(i=o),n&&(y[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;y[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},E=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},S=A;S.l=x,S.i=_,S.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function m(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return S},v.isValid=function(){return!(this.$d.toString()===f)},v.isSame=function(e,t){var n=E(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return E(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<E(e)},v.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!S.u(t)||t,u=S.p(e),f=function(e,t){var i=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},p=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,v=this.$D,A="set"+(this.$u?"UTC":"");switch(u){case d:return r?f(1,0):f(31,11);case c:return r?f(1,m):f(0,m+1);case l:var b=this.$locale().weekStart||0,y=(g<b?g+7:g)-b;return f(r?v-y:v+(6-y),m);case s:case h:return p(A+"Hours",0);case a:return p(A+"Minutes",1);case o:return p(A+"Seconds",2);case i:return p(A+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=S.p(e),u="set"+(this.$u?"UTC":""),f=(n={},n[s]=u+"Date",n[h]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],p=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var g=this.clone().set(h,1);g.$d[f](p),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[S.p(e)]()},v.add=function(r,u){var h,f=this;r=Number(r);var p=S.p(u),g=function(e){var t=E(f);return S.w(t.date(t.date()+Math.round(e*r)),f)};if(p===c)return this.set(c,this.$M+r);if(p===d)return this.set(d,this.$y+r);if(p===s)return g(1);if(p===l)return g(7);var m=(h={},h[o]=t,h[a]=n,h[i]=e,h)[p]||1,v=this.$d.getTime()+r*m;return S.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},h=function(e){return S.s(o%12||12,e,"0")},p=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return s+1;case"MM":return S.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return S.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return S.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return p(o,a,!0);case"A":return p(o,a,!1);case"m":return String(a);case"mm":return S.s(a,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,h,f){var p,g=this,m=S.p(h),v=E(r),A=(v.utcOffset()-this.utcOffset())*t,b=this-v,y=function(){return S.m(g,v)};switch(m){case d:p=y()/12;break;case c:p=y();break;case u:p=y()/3;break;case l:p=(b-A)/6048e5;break;case s:p=(b-A)/864e5;break;case a:p=b/n;break;case o:p=b/t;break;case i:p=b/e;break;default:p=b}return f?p:S.a(p)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return y[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=x(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return S.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),T=C.prototype;return E.prototype=T,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",c],["$y",d],["$D",h]].forEach(function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),E.extend=function(e,t){return e.$i||(e(t,C,E),e.$i=!0),E},E.locale=x,E.isDayjs=_,E.unix=function(e){return E(1e3*e)},E.en=y[b],E.Ls=y,E.p={},E})},1625:function(e,t,n){"use strict";var r=n(79504);e.exports=r({}.isPrototypeOf)},1705:function(e,t,n){n(44114);const r=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),i=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],o=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],a=[...i,...o],s=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),l=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),c=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),u=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),d=l.concat(c).sort().reverse();function h(e){const t=r(e),n=d,i="and or not only",o="[\\w-]+",h="("+o+"|@\\{"+o+"\\})",f=[],p=[],g=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},m=function(e,t,n){return{className:e,begin:t,relevance:n}},v={$pattern:/[a-z-]+/,keyword:i,attribute:s.join(" ")},A={begin:"\\(",end:"\\)",contains:p,keywords:v,relevance:0};p.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g("'"),g('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,A,m("variable","@@?"+o,10),m("variable","@\\{"+o+"\\}"),m("built_in","~?`[^`]*?`"),{className:"attribute",begin:o+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const b=p.concat({begin:/\{/,end:/\}/,contains:f}),y={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(p)},w={begin:h+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+u.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:p}}]},_={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:v,returnEnd:!0,contains:p,relevance:0}},x={className:"variable",variants:[{begin:"@"+o+"\\s*:",relevance:15},{begin:"@"+o}],starts:{end:"[;}]",returnEnd:!0,contains:b}},E={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:h,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,y,m("keyword","all\\b"),m("variable","@\\{"+o+"\\}"),{begin:"\\b("+a.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,m("selector-tag",h,0),m("selector-id","#"+h),m("selector-class","\\."+h,0),m("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+l.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+c.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:b},{begin:"!important"},t.FUNCTION_DISPATCH]},S={begin:o+":(:)?"+`(${n.join("|")})`,returnBegin:!0,contains:[E]};return f.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,_,x,S,w,E,y,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:f}}e.exports=h},1767:function(e){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},1821:function(e,t){"use strict";function n(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}t.A=n},1951:function(e,t,n){"use strict";var r=n(78227);t.f=r},1954:function(e,t,n){n(18111),n(7588),n(79577),n(41549),n(49797),n(49631),n(35623);const r=n(79547),i=n(41210),o=n(9188),a=n(19927),s=n(48480),l=n(11955),c=n(62395),u=n(22039),d=n(45987),h=n(51006),f=n(34804),p=n(17195),g=n(27942);function m(e,t){const n=e.size,r=l.getPositions(t);for(let i=0;i<r.length;i++){const t=r[i][0],o=r[i][1];for(let r=-1;r<=7;r++)if(!(t+r<=-1||n<=t+r))for(let i=-1;i<=7;i++)o+i<=-1||n<=o+i||(r>=0&&r<=6&&(0===i||6===i)||i>=0&&i<=6&&(0===r||6===r)||r>=2&&r<=4&&i>=2&&i<=4?e.set(t+r,o+i,!0,!0):e.set(t+r,o+i,!1,!0))}}function v(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2===0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}function A(e,t){const n=s.getPositions(t);for(let r=0;r<n.length;r++){const t=n[r][0],i=n[r][1];for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)-2===n||2===n||-2===r||2===r||0===n&&0===r?e.set(t+n,i+r,!0,!0):e.set(t+n,i+r,!1,!0)}}function b(e,t){const n=e.size,r=h.getEncodedBits(t);let i,o,a;for(let s=0;s<18;s++)i=Math.floor(s/3),o=s%3+n-8-3,a=1===(r>>s&1),e.set(i,o,a,!0),e.set(o,i,a,!0)}function y(e,t,n){const r=e.size,i=f.getEncodedBits(t,n);let o,a;for(o=0;o<15;o++)a=1===(i>>o&1),o<6?e.set(o,8,a,!0):o<8?e.set(o+1,8,a,!0):e.set(r-15+o,8,a,!0),o<8?e.set(8,r-o-1,a,!0):o<9?e.set(8,15-o-1+1,a,!0):e.set(8,15-o-1,a,!0);e.set(r-8,8,1,!0)}function w(e,t){const n=e.size;let r=-1,i=n-1,o=7,a=0;for(let s=n-1;s>0;s-=2){6===s&&s--;while(1){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;a<t.length&&(r=1===(t[a]>>>o&1)),e.set(i,s-n,r),o--,-1===o&&(a++,o=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}}function _(e,t,n){const i=new o;n.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),p.getCharCountIndicator(t.mode,e)),t.write(i)});const a=r.getSymbolTotalCodewords(e),s=u.getTotalCodewordsCount(e,t),l=8*(a-s);i.getLengthInBits()+4<=l&&i.put(0,4);while(i.getLengthInBits()%8!==0)i.putBit(0);const c=(l-i.getLengthInBits())/8;for(let r=0;r<c;r++)i.put(r%2?17:236,8);return x(i,e,t)}function x(e,t,n){const i=r.getSymbolTotalCodewords(t),o=u.getTotalCodewordsCount(t,n),a=i-o,s=u.getBlocksCount(t,n),l=i%s,c=s-l,h=Math.floor(i/s),f=Math.floor(a/s),p=f+1,g=h-f,m=new d(g);let v=0;const A=new Array(s),b=new Array(s);let y=0;const w=new Uint8Array(e.buffer);for(let r=0;r<s;r++){const e=r<c?f:p;A[r]=w.slice(v,v+e),b[r]=m.encode(A[r]),v+=e,y=Math.max(y,e)}const _=new Uint8Array(i);let x,E,S=0;for(x=0;x<y;x++)for(E=0;E<s;E++)x<A[E].length&&(_[S++]=A[E][x]);for(x=0;x<g;x++)for(E=0;E<s;E++)_[S++]=b[E][x];return _}function E(e,t,n,i){let o;if(Array.isArray(e))o=g.fromArray(e);else{if("string"!==typeof e)throw new Error("Invalid data");{let r=t;if(!r){const t=g.rawSplit(e);r=h.getBestVersionForData(t,n)}o=g.fromString(e,r||40)}}const s=h.getBestVersionForData(o,n);if(!s)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<s)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+s+".\n")}else t=s;const l=_(t,n,o),u=r.getSymbolSize(t),d=new a(u);return m(d,t),v(d),A(d,t),y(d,n,0),t>=7&&b(d,t),w(d,l),isNaN(i)&&(i=c.getBestMask(d,y.bind(null,d,n))),c.applyMask(i,d),y(d,n,i),{modules:d,version:t,errorCorrectionLevel:n,maskPattern:i,segments:o}}t.create=function(e,t){if("undefined"===typeof e||""===e)throw new Error("No input text");let n,o,a=i.M;return"undefined"!==typeof t&&(a=i.from(t.errorCorrectionLevel,i.M),n=h.from(t.version),o=c.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),E(e,n,a,o)}},2041:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="SyncOutlined",c.inheritAttrs=!1;var u=c},2360:function(e,t,n){"use strict";var r,i=n(28551),o=n(96801),a=n(88727),s=n(30421),l=n(20397),c=n(4055),u=n(66119),d=">",h="<",f="prototype",p="script",g=u("IE_PROTO"),m=function(){},v=function(e){return h+p+d+e+h+"/"+p+d},A=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=c("iframe"),n="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}y="undefined"!=typeof document?document.domain&&r?A(r):b():A(r);var e=a.length;while(e--)delete y[f][a[e]];return y()};s[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[f]=i(e),n=new m,m[f]=null,n[g]=e):n=y(),void 0===t?n:o.f(n,t)}},2392:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});var r=n(81425);function i(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:r.A.shape({x:Number,y:Number}).loose,title:r.A.any,footer:r.A.any,transitionName:String,maskTransitionName:String,animation:r.A.any,maskAnimation:r.A.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:r.A.any,maskProps:r.A.any,wrapProps:r.A.any,getContainer:r.A.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:r.A.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}t.A=i},2528:function(e,t,n){n(79577),n(41549),n(49797),n(49631),n(35623);const r=new Uint8Array(512),i=new Uint8Array(256);(function(){let e=1;for(let t=0;t<255;t++)r[t]=e,i[e]=t,e<<=1,256&e&&(e^=285);for(let t=255;t<512;t++)r[t]=r[t-255]})(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return i[e]},t.exp=function(e){return r[e]},t.mul=function(e,t){return 0===e||0===t?0:r[i[e]+i[t]]}},3238:function(e,t,n){"use strict";var r=n(44576),i=n(77811),o=n(67394),a=r.DataView;e.exports=function(e){if(!i||0!==o(e))return!1;try{return new a(e),!1}catch(t){return!0}}},3368:function(e,t,n){"use strict";n(44114);var r=n(36409);function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;this.promise.then(function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}}),this.promise.then=function(e){var t,r=new Promise(function(e){n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e,t=new i(function(t){e=t});return{token:t,cancel:e}},e.exports=i},3397:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"}}]},name:"fullscreen-exit",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="FullscreenExitOutlined",c.inheritAttrs=!1;var u=c},3431:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(99078);function i(){const{getPrefixCls:e,direction:t,csp:n,iconPrefixCls:i,theme:o}=(0,r.OQ)();return{theme:o,getPrefixCls:e,direction:t,csp:n,iconPrefixCls:i}}},3534:function(e,t){"use strict";var n=Function.prototype,r=n.toString;function i(e){if(null!=e){try{return r.call(e)}catch(t){}try{return e+""}catch(t){}}return""}t.A=i},4055:function(e,t,n){"use strict";var r=n(44576),i=n(20034),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},4263:function(e,t,n){"use strict";n.d(t,{D:function(){return r}});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",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",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#663399",red:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},4346:function(e){function t(e){const t="([0-9]_*)+",n="([0-9a-fA-F]_*)+",r="([01]_*)+",i="([0-7]_*)+",o="[!#$%&*+.\\/<=>?@\\\\^~-]",a="(\\p{S}|\\p{P})",s="[(),;\\[\\]`|{}]",l=`(${o}|(?!(${s}|[_:"']))${a})`,c={variants:[e.COMMENT("--+","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},u={className:"meta",begin:/\{-#/,end:/#-\}/},d={className:"meta",begin:"^#",end:"$"},h={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},f={begin:"\\(",end:"\\)",illegal:'"',contains:[u,d,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),c]},p={begin:/\{/,end:/\}/,contains:f.contains},g={className:"number",relevance:0,variants:[{match:`\\b(${t})(\\.(${t}))?([eE][+-]?(${t}))?\\b`},{match:`\\b0[xX]_*(${n})(\\.(${n}))?([pP][+-]?(${t}))?\\b`},{match:`\\b0[oO](${i})\\b`},{match:`\\b0[bB](${r})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[f,c],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[f,c],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[h,f,c]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[u,h,f,p,c]},{beginKeywords:"default",end:"$",contains:[h,f,c]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,c]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[h,e.QUOTE_STRING_MODE,c]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},u,d,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},e.QUOTE_STRING_MODE,g,h,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${l}--+|--+(?!-)${l}`},c,{begin:"->|<-"}]}}e.exports=t},4495:function(e,t,n){"use strict";var r=n(39519),i=n(79039),o=n(44576),a=o.String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},4501:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="EyeOutlined",c.inheritAttrs=!1;var u=c},4663:function(e,t,n){"use strict";n.d(t,{GU:function(){return r},HE:function(){return o},MY:function(){return s},WO:function(){return l},ge:function(){return i},tK:function(){return c}});const r=e=>{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function i(e){return{type:Object,default:e}}function o(e){return{type:Boolean,default:e}}function a(e,t){const n={validator:()=>!0,default:e};return n}function s(e){return{type:Array,default:e}}function l(e){return{type:String,default:e}}function c(e,t){return e?{type:e,default:t}:a(t)}},4827:function(e,t,n){"use strict";n.d(t,{A:function(){return de}});n(44114),n(18111),n(22489),n(7588);var r=n(56768),i=(n(61701),n(18237),n(61935)),o=n(90144),a=Symbol("iconContext"),s=function(){return(0,r.WQ)(a,{prefixCls:(0,o.KR)("anticon"),rootClassName:(0,o.KR)(""),csp:(0,o.KR)()})};n(20116);function l(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}function c(e,t){return!!e&&(!!e.contains&&e.contains(t))}var u="data-vc-order",d="vc-icon-key",h=new Map;function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):d}function p(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function g(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function m(e){return Array.from((h.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!l())return null;var n=t.csp,r=t.prepend,i=document.createElement("style");i.setAttribute(u,g(r)),n&&n.nonce&&(i.nonce=n.nonce),i.innerHTML=e;var o=p(t),a=o.firstChild;if(r){if("queue"===r){var s=m(o).filter(function(e){return["prepend","prependQueue"].includes(e.getAttribute(u))});if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a)}else o.appendChild(i);return i}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=p(t);return m(n).find(function(n){return n.getAttribute(f(t))===e})}function b(e,t){var n=h.get(e);if(!n||!c(document,n)){var r=v("",t),i=r.parentNode;h.set(e,i),e.removeChild(r)}}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=p(n);b(r,n);var i=A(t,n);if(i)return n.csp&&n.csp.nonce&&i.nonce!==n.csp.nonce&&(i.nonce=n.csp.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;var o=v(e,n);return o.setAttribute(f(n),t),o}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){_(e,t,n[t])})}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){0}function E(e,t){x(e,"[@ant-design/icons-vue] ".concat(t))}function S(e){return"object"===typeof e&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===typeof e.icon||"function"===typeof e.icon)}function C(e,t,n){return n?(0,r.h)(e.tag,w({key:t},n,e.attrs),(e.children||[]).map(function(n,r){return C(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})):(0,r.h)(e.tag,w({key:t},e.attrs),(e.children||[]).map(function(n,r){return C(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))}function T(e){return(0,i.cM)(e)[0]}function k(e){return e?Array.isArray(e)?e:[e]:[]}var O="\n.anticon {\n  display: inline-block;\n  color: inherit;\n  font-style: normal;\n  line-height: 0;\n  text-align: center;\n  text-transform: none;\n  vertical-align: -0.125em;\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n  line-height: 1;\n}\n\n.anticon svg {\n  display: inline-block;\n}\n\n.anticon::before {\n  display: none;\n}\n\n.anticon .anticon-icon {\n  display: block;\n}\n\n.anticon[tabindex] {\n  cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n  display: inline-block;\n  -webkit-animation: loadingCircle 1s infinite linear;\n  animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n@keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n";function M(e){return e&&e.getRootNode&&e.getRootNode()}function I(e){return!!l()&&M(e)instanceof ShadowRoot}function D(e){return I(e)?M(e):null}var N=function(){var e=s(),t=e.prefixCls,n=e.csp,i=(0,r.nI)(),o=O;t&&(o=o.replace(/anticon/g,t.value)),(0,r.dY)(function(){if(l()){var e=i.vnode.el,t=D(e);y(o,"@ant-design-vue-icons",{prepend:!0,csp:n.value,attachTo:t})}})},R=["icon","primaryColor","secondaryColor"];function L(e,t){if(null==e)return{};var n,r,i=B(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function B(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){F(e,t,n[t])})}return e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $=(0,o.Kh)({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function j(e){var t=e.primaryColor,n=e.secondaryColor;$.primaryColor=t,$.secondaryColor=n||T(t),$.calculated=!!n}function H(){return P({},$)}var U=function(e,t){var n=P({},e,t.attrs),r=n.icon,i=n.primaryColor,o=n.secondaryColor,a=L(n,R),s=$;if(i&&(s={primaryColor:i,secondaryColor:o||T(i)}),E(S(r),"icon should be icon definiton, but got ".concat(r)),!S(r))return null;var l=r;return l&&"function"===typeof l.icon&&(l=P({},l,{icon:l.icon(s.primaryColor,s.secondaryColor)})),C(l.icon,"svg-".concat(l.name),P({},a,{"data-icon":l.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};U.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},U.inheritAttrs=!1,U.displayName="IconBase",U.getTwoToneColors=H,U.setTwoToneColors=j;var Q=U;function z(e,t){return Y(e)||K(e,t)||G(e,t)||W()}function W(){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 G(e,t){if(e){if("string"===typeof e)return V(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function K(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done);a=!0)if(o.push(r.value),t&&o.length===t)break}catch(l){s=!0,i=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw i}}return o}}function Y(e){if(Array.isArray(e))return e}function q(e){var t=k(e),n=z(t,2),r=n[0],i=n[1];return Q.setTwoToneColors({primaryColor:r,secondaryColor:i})}function X(){var e=Q.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var J=(0,r.pM)({name:"InsertStyles",setup:function(){return N(),function(){return null}}}),Z=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function ee(e,t){return oe(e)||ie(e,t)||ne(e,t)||te()}function te(){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 ne(e,t){if(e){if("string"===typeof e)return re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?re(e,t):void 0}}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ie(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done);a=!0)if(o.push(r.value),t&&o.length===t)break}catch(l){s=!0,i=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw i}}return o}}function oe(e){if(Array.isArray(e))return e}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){se(e,t,n[t])})}return e}function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function le(e,t){if(null==e)return{};var n,r,i=ce(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ce(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}q(i.z1.primary);var ue=function(e,t){var n,i=ae({},e,t.attrs),o=i["class"],a=i.icon,l=i.spin,c=i.rotate,u=i.tabindex,d=i.twoToneColor,h=i.onClick,f=le(i,Z),p=s(),g=p.prefixCls,m=p.rootClassName,v=(n={},se(n,m.value,!!m.value),se(n,g.value,!0),se(n,"".concat(g.value,"-").concat(a.name),Boolean(a.name)),se(n,"".concat(g.value,"-spin"),!!l||"loading"===a.name),n),A=u;void 0===A&&h&&(A=-1);var b=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,y=k(d),w=ee(y,2),_=w[0],x=w[1];return(0,r.bF)("span",ae({role:"img","aria-label":a.name},f,{onClick:h,class:[v,o],tabindex:A}),[(0,r.bF)(Q,{icon:a,primaryColor:_,secondaryColor:x,style:b},null),(0,r.bF)(J,null,null)])};ue.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},ue.displayName="AntdIcon",ue.inheritAttrs=!1,ue.getTwoToneColor=X,ue.setTwoToneColor=q;var de=ue},4898:function(e,t){"use strict";const n={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};t.A=n},4902:function(e,t,n){"use strict";n.d(t,{A:function(){return qt}});var r=n(42529),i=n(66917),o=n(56030),a=(n(44114),n(18111),n(7588),n(76753)),s=n.n(a),l={},c=null,u=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){return(0,r.xs)(this,n),t.apply(this,arguments)}return(0,r.j6)(n,[{key:"add",value:function(e){e&&(l[e.playerId]=e,1===Object.keys(l).length&&this.setActive(e.playerId,!0))}},{key:"remove",value:function(e){e&&(e.isUserActive,delete l[e.playerId])}},{key:"_iterate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(var n in l)if(Object.prototype.hasOwnProperty.call(l,n)){var r=l[n];if(t){if(e(r))break}else e(r)}}},{key:"forEach",value:function(e){this._iterate(e)}},{key:"find",value:function(e){var t=null;return this._iterate(function(n){var r=e(n);return r&&(t=n),r},!0),t}},{key:"findAll",value:function(e){var t=[];return this._iterate(function(n){e(n)&&t.push(n)}),t}},{key:"setActive",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(l[e])return t?this.forEach(function(t){e===t.playerId?(t.isUserActive=!0,t.isInstNext=!1):t.isUserActive=!1}):l[e].isUserActive=t,e}},{key:"getActiveId",value:function(){for(var e=Object.keys(l),t=0;t<e.length;t++){var n=l[e[t]];if(n&&n.isUserActive)return e[t]}return null}},{key:"setNext",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(l[e])return t?this.forEach(function(t){e===t.playerId?(t.isUserActive=!1,t.isInstNext=!0):t.isInstNext=!1}):l[e].isInstNext=t,e}}],[{key:"getInstance",value:function(){return c||(c=new n),c}}]),n}(a.EventEmitter);function d(e){for(var t=Object.keys(l),n=0;n<t.length;n++){var r=l[t[n]];if(r.root===e)return r}return null}n(61701);var h=n(61206),f={LANG:"en",TEXT:{ERROR_TYPES:{network:{code:1,msg:"video download error"},mse:{code:2,msg:"stream append error"},parse:{code:3,msg:"parsing error"},format:{code:4,msg:"wrong format"},decoder:{code:5,msg:"decoding error"},runtime:{code:6,msg:"grammatical errors"},timeout:{code:7,msg:"play timeout"},other:{code:8,msg:"other errors"}},HAVE_NOTHING:"There is no information on whether audio/video is ready",HAVE_METADATA:"Audio/video metadata is ready ",HAVE_CURRENT_DATA:"Data about the current play location is available, but there is not enough data to play the next frame/millisecond",HAVE_FUTURE_DATA:"Current and at least one frame of data is available",HAVE_ENOUGH_DATA:"The available data is sufficient to start playing",NETWORK_EMPTY:"Audio/video has not been initialized",NETWORK_IDLE:"Audio/video is active and has been selected for resources, but no network is used",NETWORK_LOADING:"The browser is downloading the data",NETWORK_NO_SOURCE:"No audio/video source was found",MEDIA_ERR_ABORTED:"The fetch process is aborted by the user",MEDIA_ERR_NETWORK:"An error occurred while downloading",MEDIA_ERR_DECODE:"An error occurred while decoding",MEDIA_ERR_SRC_NOT_SUPPORTED:"Audio/video is not supported",REPLAY:"Replay",ERROR:"Network is offline",PLAY_TIPS:"Play",PAUSE_TIPS:"Pause",PLAYNEXT_TIPS:"Play next",DOWNLOAD_TIPS:"Download",ROTATE_TIPS:"Rotate",RELOAD_TIPS:"Reload",FULLSCREEN_TIPS:"Fullscreen",EXITFULLSCREEN_TIPS:"Exit fullscreen",CSSFULLSCREEN_TIPS:"Cssfullscreen",EXITCSSFULLSCREEN_TIPS:"Exit cssfullscreen",TEXTTRACK:"Caption",PIP:"PIP",SCREENSHOT:"Screenshot",LIVE:"LIVE",OFF:"Off",OPEN:"Open",MINI_DRAG:"Click and hold to drag",MINISCREEN:"Miniscreen",REFRESH_TIPS:"Please Try",REFRESH:"Refresh",FORWARD:"forward",LIVE_TIP:"Live"}},p={lang:{},langKeys:[],textKeys:[]};function g(e,t){return Object.keys(t).forEach(function(n){var i,o=h.Ay.typeOf(t[n]),a=h.Ay.typeOf(e[n]);"Array"===o?("Array"!==a&&(e[n]=[]),(i=e[n]).push.apply(i,(0,r.Og)(t[n]))):"Object"===o?("Object"!==a&&(e[n]={}),g(e[n],t[n])):e[n]=t[n]}),e}function m(){Object.keys(p.lang.en).map(function(e){p.textKeys[e]=e})}function v(e,t){var n=[];if(t||(t=p),t.lang){n="Array"!==h.Ay.typeOf(e)?Object.keys(e).map(function(t){var n="zh"===t?"zh-cn":t;return{LANG:n,TEXT:e[t]}}):e;var r=t,i=r.lang;n.map(function(e){"zh"===e.LANG&&(e.LANG="zh-cn"),i[e.LANG]?g(i[e.LANG]||{},e.TEXT||{}):A(e,t)}),m()}}function A(e,t){var n=e.LANG;if(t||(t=p),t.lang){var r=e.TEXT||{};"zh"===n&&(n="zh-cn"),t.lang[n]?g(t.lang[n],r):(t.langKeys.push(n),t.lang[n]=r),m()}}function b(e){var t,n={lang:{},langKeys:[],textKeys:{},pId:e};return g(n.lang,p.lang),(t=n.langKeys).push.apply(t,(0,r.Og)(p.langKeys)),g(n.textKeys,p.textKeys),n}A(f);var y={get textKeys(){return p.textKeys},get langKeys(){return p.langKeys},get lang(){var e={};return p.langKeys.map(function(t){e[t]=p.lang[t]}),p.lang["zh-cn"]&&(e.zh=p.lang["zh-cn"]||{}),e},extend:v,use:A,init:b},w=(n(22489),n(20116),n(84434));function _(e,t){this&&this.emit&&("error"===e?this.errorHandler(e,t.error):this.emit(e,t))}function x(e,t){return function(n,r){var i={player:t,eventName:e,originalEvent:n,detail:n.detail||{},timeStamp:n.timeStamp,currentTime:t.currentTime,duration:t.duration,paused:t.paused,ended:t.ended,isInternalOp:!!t._internalOp[n.type],muted:t.muted,volume:t.volume,host:h.Ay.getHostFromUrl(t.currentSrc),vtype:t.vtype};if(t.removeInnerOP(n.type),"timeupdate"===e&&(t._currentTime=t.media&&t.media.currentTime),"ratechange"===e){var o=t.media?t.media.playbackRate:0;if(o&&t._rate===o)return;t._rate=t.media&&t.media.playbackRate}if("durationchange"===e&&(t._duration=t.media.duration),"volumechange"===e&&(i.isMutedChange=t._lastMuted!==t.muted,t._lastMuted=t.muted),"error"===e&&(i.error=r||t.video.error),t.mediaEventMiddleware[e]){var a=_.bind(t,e,i);try{t.mediaEventMiddleware[e].call(t,i,a)}catch(s){throw _.call(t,e,i),s}}else _.call(t,e,i)}}var E=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(e){var i;(0,r.xs)(this,n),i=t.call(this,e),i._hasStart=!1,i._currentTime=0,i._duration=0,i._internalOp={},i._lastMuted=!1,i.vtype="MP4",i._rate=-1,i.mediaConfig=Object.assign({},{controls:!1,autoplay:e.autoplay,playsinline:e.playsinline,"x5-playsinline":e.playsinline,"webkit-playsinline":e.playsinline,"x5-video-player-fullscreen":e["x5-video-player-fullscreen"]||e.x5VideoPlayerFullscreen,"x5-video-orientation":e["x5-video-orientation"]||e.x5VideoOrientation,airplay:e.airplay,"webkit-airplay":e.airplay,tabindex:0|e.tabindex,mediaType:e.mediaType||"video","data-index":-1},e.videoConfig,e.videoAttributes);var o=e["x5-video-player-type"]||e.x5VideoPlayerType;return w.A.isWeixin&&w.A.os.isAndroid&&o&&(i.mediaConfig["x5-video-player-type"]=o,delete i.mediaConfig.playsinline,delete i.mediaConfig["webkit-playsinline"],delete i.mediaConfig["x5-playsinline"]),e.loop&&(i.mediaConfig.loop="loop"),e.autoplayMuted&&!Object.prototype.hasOwnProperty.call(i.mediaConfig,"muted")&&(i.mediaConfig.muted=!0),i.media=e.mediaEl instanceof HTMLMediaElement?e.mediaEl:"function"===typeof e.mediaEl?e.mediaEl(i.mediaConfig):h.Ay.createDom(i.mediaConfig.mediaType,"",i.mediaConfig,""),e.defaultPlaybackRate&&(i.media.defaultPlaybackRate=i.media.playbackRate=e.defaultPlaybackRate),"Number"===h.Ay.typeOf(e.volume)&&(i.volume=e.volume),e.autoplayMuted&&(i.media.muted=!0,i._lastMuted=!0),e.autoplay&&(i.media.autoplay=!0),e.playsinline&&(i.media.playsinline=!0),i._interval={},i.mediaEventMiddleware={},i.attachVideoEvents(),i}return(0,r.j6)(n,[{key:"setEventsMiddleware",value:function(e){var t=this;Object.keys(e).map(function(n){t.mediaEventMiddleware[n]=e[n]})}},{key:"removeEventsMiddleware",value:function(e){var t=this;Object.keys(e).map(function(e){delete t.mediaEventMiddleware[e]})}},{key:"attachVideoEvents",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.media;this._evHandlers||(this._evHandlers=o.VIDEO_EVENTS.map(function(t){var n="on".concat(t.charAt(0).toUpperCase()).concat(t.slice(1));return"function"===typeof e[n]&&e.on(t,e[n]),(0,r.n8)({},t,x(t,e))})),this._evHandlers.forEach(function(e){var n=Object.keys(e)[0];t.addEventListener(n,e[n],!1)})}},{key:"detachVideoEvents",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.media;this._evHandlers.forEach(function(e){var n=Object.keys(e)[0];t.removeEventListener(n,e[n],!1)}),this._evHandlers.forEach(function(t){var n=Object.keys(t)[0],r="on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));"function"===typeof e[r]&&e.off(n,e[r])}),this._evHandlers=null}},{key:"_attachSourceEvents",value:function(e,t){var n=this;e.removeAttribute("src"),e.load(),t.forEach(function(e,t){n.media.appendChild(h.Ay.createDom("source","",{src:"".concat(e.src),type:"".concat(e.type||""),"data-index":t+1}))});var r=e.children;if(r){this._videoSourceCount=r.length,this._videoSourceIndex=r.length,this._vLoadeddata=function(e){n.emit(o.SOURCE_SUCCESS,{src:e.target.currentSrc,host:h.Ay.getHostFromUrl(e.target.currentSrc)})};for(var a=null,s=0;s<this._evHandlers.length;s++)if("error"===Object.keys(this._evHandlers[s])[0]){a=this._evHandlers[s];break}!this._sourceError&&(this._sourceError=function(e){var t=parseInt(e.target.getAttribute("data-index"),10);if(n._videoSourceIndex--,0===n._videoSourceIndex||t>=n._videoSourceCount){var r={code:4,message:"sources_load_error"};a?a.error(e,r):n.errorHandler("error",r)}var s=i.L[4];n.emit(o.SOURCE_ERROR,new i.A(n,{errorType:s,errorCode:4,errorMessage:"sources_load_error",mediaError:{code:4,message:"sources_load_error"},src:e.target.src}))});for(var l=0;l<r.length;l++)r[l].addEventListener("error",this._sourceError);e.addEventListener("loadeddata",this._vLoadeddata)}}},{key:"_detachSourceEvents",value:function(e){var t=e.children;if(t&&0!==t.length&&this._sourceError){for(var n=0;n<t.length;n++)t[n].removeEventListener("error",this._sourceError);while(t.length>0)e.removeChild(t[0]);this._vLoadeddata&&e.removeEventListener("loadeddata",this._vLoadeddata)}}},{key:"errorHandler",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.media&&(this.media.error||t)){var n=this.media.error||t,r=n.code?i.L[n.code]:"other",o=n.message;this.media.currentSrc||this.media.srcObject||(o="empty_src",n={code:6,message:o}),this.emit(e,new i.A(this,{errorType:r,errorCode:n.code,errorMessage:n.message||"",mediaError:n}))}}},{key:"destroy",value:function(){for(var e in this.media&&(this.media.pause&&(this.media.pause(),this.media.muted=!0),this.media.removeAttribute("src"),this.media.load()),this._currentTime=0,this._duration=0,this.mediaConfig=null,this._interval)Object.prototype.hasOwnProperty.call(this._interval,e)&&(clearInterval(this._interval[e]),this._interval[e]=null);this.detachVideoEvents(),this.media=null,this.mediaEventMiddleware={},this.removeAllListeners()}},{key:"video",get:function(){return this.media},set:function(e){this.media=e}},{key:"play",value:function(){var e=this.media?this.media.play():null;return e}},{key:"pause",value:function(){this.media&&this.media.pause()}},{key:"load",value:function(){this.media&&this.media.load()}},{key:"canPlayType",value:function(e){return!!this.media&&this.media.canPlayType(e)}},{key:"getBufferedRange",value:function(e){var t=[0,0];if(!this.media)return t;e||(e=this.media.buffered);var n=this.media.currentTime;if(e)for(var r=0,i=e.length;r<i;r++)if(t[0]=e.start(r),t[1]=e.end(r),t[0]<=n&&n<=t[1])break;return t[0]-n<=0&&n-t[1]<=0?t:[0,0]}},{key:"autoplay",get:function(){return!!this.media&&this.media.autoplay},set:function(e){this.media&&(this.media.autoplay=e)}},{key:"buffered",get:function(){return this.media?this.media.buffered:null}},{key:"buffered2",get:function(){return this.media&&this.media.buffered?h.Ay.getBuffered2(this.media.buffered):null}},{key:"bufferedPoint",get:function(){var e={start:0,end:0};if(!this.media)return e;var t=this.media.buffered;if(!t||0===t.length)return e;for(var n=0;n<t.length;n++)if((t.start(n)<=this.currentTime||t.start(n)<.1)&&t.end(n)>=this.currentTime)return{start:t.start(n),end:t.end(n)};return e}},{key:"crossOrigin",get:function(){return this.media?this.media.crossOrigin:""},set:function(e){this.media&&(this.media.crossOrigin=e)}},{key:"currentSrc",get:function(){return this.media?this.media.currentSrc:""},set:function(e){this.media&&(this.media.currentSrc=e)}},{key:"currentTime",get:function(){return this.media?void 0!==this.media.currentTime?this.media.currentTime:this._currentTime:0},set:function(e){this.media&&(this.media.currentTime=e)}},{key:"defaultMuted",get:function(){return!!this.media&&this.media.defaultMuted},set:function(e){this.media&&(this.media.defaultMuted=e)}},{key:"duration",get:function(){return this._duration}},{key:"ended",get:function(){return!!this.media&&this.media.ended}},{key:"error",get:function(){return this.media.error}},{key:"errorNote",get:function(){var e=this.media.error;if(!e)return"";var t=["MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED"];return t[this.media.error.code-1]}},{key:"loop",get:function(){return!!this.media&&this.media.loop},set:function(e){this.media&&(this.media.loop=e)}},{key:"muted",get:function(){return!!this.media&&this.media.muted},set:function(e){this.media&&this.media.muted!==e&&(this._lastMuted=this.media.muted,this.media.muted=e)}},{key:"networkState",get:function(){return this.media.networkState}},{key:"paused",get:function(){return!this.media||this.media.paused}},{key:"playbackRate",get:function(){return this.media?this.media.playbackRate:0},set:function(e){this.media&&e!==1/0&&(this.media.defaultPlaybackRate=e,this.media.playbackRate=e)}},{key:"played",get:function(){return this.media?this.media.played:null}},{key:"preload",get:function(){return!!this.media&&this.media.preload},set:function(e){this.media&&(this.media.preload=e)}},{key:"readyState",get:function(){return this.media.readyState}},{key:"seekable",get:function(){return!!this.media&&this.media.seekable}},{key:"seeking",get:function(){return!!this.media&&this.media.seeking}},{key:"src",get:function(){return this.media?this.media.src:""},set:function(e){this.media&&(this.emit(o.URL_CHANGE,e),this.emit(o.WAITING),this._currentTime=0,this._duration=0,h.Ay.isMSE(this.media)?this.onWaiting():(this._detachSourceEvents(this.media),"Array"===h.Ay.typeOf(e)?this._attachSourceEvents(this.media,e):e?this.media.src=e:this.media.removeAttribute("src"),this.load()))}},{key:"volume",get:function(){return this.media?this.media.volume:0},set:function(e){e!==1/0&&this.media&&(this.media.volume=e)}},{key:"aspectRatio",get:function(){return this.media?this.media.videoWidth/this.media.videoHeight:0}},{key:"addInnerOP",value:function(e){this._internalOp[e]=!0}},{key:"removeInnerOP",value:function(e){delete this._internalOp[e]}},{key:"emit",value:function(e,t){for(var i,o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];(i=(0,r.Jt)((0,r.U6)(n.prototype),"emit",this)).call.apply(i,[this,e,t].concat(a))}},{key:"on",value:function(e,t){for(var i,o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];(i=(0,r.Jt)((0,r.U6)(n.prototype),"on",this)).call.apply(i,[this,e,t].concat(a))}},{key:"once",value:function(e,t){for(var i,o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];(i=(0,r.Jt)((0,r.U6)(n.prototype),"once",this)).call.apply(i,[this,e,t].concat(a))}},{key:"off",value:function(e,t){for(var i,o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];(i=(0,r.Jt)((0,r.U6)(n.prototype),"off",this)).call.apply(i,[this,e,t].concat(a))}},{key:"offAll",value:function(){(0,r.Jt)((0,r.U6)(n.prototype),"removeAllListeners",this).call(this)}}]),n}(s()),S=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{name:"xgplayer",version:1,db:null,ojstore:{name:"xg-m4a",keypath:"vid"}};(0,r.xs)(this,e),this.indexedDB=window.indexedDB||window.webkitindexedDB,this.IDBKeyRange=window.IDBKeyRange||window.webkitIDBKeyRange,this.myDB=t}return(0,r.j6)(e,[{key:"openDB",value:function(e){var t=this,n=this,r=this.myDB.version||1,i=n.indexedDB.open(n.myDB.name,r);i.onerror=function(e){},i.onsuccess=function(r){t.myDB.db=r.target.result,e.call(n)},i.onupgradeneeded=function(e){var t=e.target.result;e.target.transaction,t.objectStoreNames.contains(n.myDB.ojstore.name)||t.createObjectStore(n.myDB.ojstore.name,{keyPath:n.myDB.ojstore.keypath})}}},{key:"deletedb",value:function(){var e=this;e.indexedDB.deleteDatabase(this.myDB.name)}},{key:"closeDB",value:function(){this.myDB.db.close()}},{key:"addData",value:function(e,t){for(var n,r=this.myDB.db.transaction(e,"readwrite").objectStore(e),i=0;i<t.length;i++)n=r.add(t[i]),n.onerror=function(){},n.onsuccess=function(){}}},{key:"putData",value:function(e,t){for(var n,r=this.myDB.db.transaction(e,"readwrite").objectStore(e),i=0;i<t.length;i++)n=r.put(t[i]),n.onerror=function(){},n.onsuccess=function(){}}},{key:"getDataByKey",value:function(e,t,n){var r=this,i=this.myDB.db.transaction(e,"readwrite").objectStore(e),o=i.get(t);o.onerror=function(){n.call(r,null)},o.onsuccess=function(e){var t=e.target.result;n.call(r,t)}}},{key:"deleteData",value:function(e,t){var n=this.myDB.db.transaction(e,"readwrite").objectStore(e);n.delete(t)}},{key:"clearData",value:function(e){var t=this.myDB.db.transaction(e,"readwrite").objectStore(e);t.clear()}}]),e}(),C=["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],T=["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],k=["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],O="data-xgplayerid",M=n(83752),I=n(26021),D=function(){function e(){var t=this;if((0,r.xs)(this,e),(0,r.n8)(this,"__trigger",function(e){var n=(new Date).getTime();t.timeStamp=n;for(var r=0;r<e.length;r++)t.__runHandler(e[r].target)}),this.__handlers=[],this.timeStamp=0,this.observer=null,window.ResizeObserver)try{this.observer=new window.ResizeObserver((0,h.nF)(this.__trigger,100,{trailing:!0})),this.timeStamp=(new Date).getTime()}catch(n){console.error(n)}}return(0,r.j6)(e,[{key:"addObserver",value:function(e,t){if(this.observer){this.observer.observe(e);for(var n=e.getAttribute(O),r=this.__handlers,i=-1,o=0;o<r.length;o++)r[o]&&e===r[o].target&&(i=o);i>-1?this.__handlers[i].handler=t:this.__handlers.push({target:e,handler:t,playerId:n})}}},{key:"unObserver",value:function(e){var t=-1;this.__handlers.map(function(n,r){e===n.target&&(t=r)});try{var n;null===(n=this.observer)||void 0===n||n.unobserve(e)}catch(r){}t>-1&&this.__handlers.splice(t,1)}},{key:"destroyObserver",value:function(){var e;null===(e=this.observer)||void 0===e||e.disconnect(),this.observer=null,this.__handlers=null}},{key:"__runHandler",value:function(e){for(var t=this.__handlers,n=0;n<t.length;n++)if(t[n]&&e===t[n].target){try{t[n].handler(e)}catch(r){console.error(r)}return!0}return!1}}]),e}(),N=null;function R(e,t){return N||(N=new D),N.addObserver(e,t),N}function L(e,t){var n;null===(n=N)||void 0===n||n.unObserver(e,t)}var B={pluginGroup:{},init:function(e){var t=e._pluginInfoId;t||(t=(new Date).getTime(),e._pluginInfoId=t),!e.config.closeResizeObserver&&R(e.root,function(){e.resize()}),this.pluginGroup[t]={_originalOptions:e.config||{},_plugins:{}}},formatPluginInfo:function(e,t){var n=null,r=null;return e.plugin&&"function"===typeof e.plugin?(n=e.plugin,r=e.options):(n=e,r={}),t&&(r.config=t||{}),{PLUFGIN:n,options:r}},checkPluginIfExits:function(e,t){for(var n=0;n<t.length;n++)if(e.toLowerCase()===t[n].pluginName.toLowerCase())return!0;return!1},getRootByConfig:function(e,t){for(var n=Object.keys(t),r=null,i=0;i<n.length;i++)if(e.toLowerCase()===n[i].toLowerCase()){r=t[n[i]];break}return"Object"===h.Ay.typeOf(r)?{root:r.root,position:r.position}:{}},lazyRegister:function(e,t){var n=this,r=t.timeout||1500;return Promise.race([t.loader().then(function(t){var r;r=t&&t.__esModule?t.default:t,n.register(e,r,t.options)}),new Promise(function(e,t){setTimeout(function(){t(new Error("timeout"))},r)})])},register:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e&&t&&"function"===typeof t&&void 0!==t.prototype){var r=e._pluginInfoId;if(r&&this.pluginGroup[r]){this.pluginGroup[r]._plugins||(this.pluginGroup[r]._plugins={});var i=this.pluginGroup[r]._plugins,o=this.pluginGroup[r]._originalOptions;n.player=e;var a=n.pluginName||t.pluginName;if(!a)throw new Error("The property pluginName is necessary");if(!t.isSupported||t.isSupported(e.config.mediaType,e.config.codecType)){n.config||(n.config={});for(var s=Object.keys(o),l=0;l<s.length;l++)if(a.toLowerCase()===s[l].toLowerCase()){var c=o[s[l]];"Object"===h.Ay.typeOf(c)?n.config=Object.assign({},n.config,o[s[l]]):"Boolean"===h.Ay.typeOf(c)&&(n.config.disable=!c);break}t.defaultConfig&&Object.keys(t.defaultConfig).forEach(function(e){"undefined"===typeof n.config[e]&&(n.config[e]=t.defaultConfig[e])}),n.root?"string"===typeof n.root&&(n.root=e[n.root]):n.root=e.root,n.index=n.config.index||0;try{i[a.toLowerCase()]&&(this.unRegister(r,a.toLowerCase()),console.warn("the is one plugin with same pluginName [".concat(a,"] exist, destroy the old instance")));var u=new t(n);return i[a.toLowerCase()]=u,i[a.toLowerCase()].func=t,u&&"function"===typeof u.afterCreate&&u.afterCreate(),u}catch(d){throw console.error(d),d}}else console.warn("not supported plugin [".concat(a,"]"))}}},unRegister:function(e,t){e._pluginInfoId&&(e=e._pluginInfoId),t=t.toLowerCase();try{var n=this.pluginGroup[e]._plugins[t];n&&(n.pluginName&&n.__destroy(),delete this.pluginGroup[e]._plugins[t])}catch(r){console.error("[unRegister:".concat(t,"] cgid:[").concat(e,"] error"),r)}},deletePlugin:function(e,t){var n=e._pluginInfoId;n&&this.pluginGroup[n]&&this.pluginGroup[n]._plugins&&delete this.pluginGroup[n]._plugins[t]},getPlugins:function(e){var t=e._pluginInfoId;return t&&this.pluginGroup[t]?this.pluginGroup[t]._plugins:{}},findPlugin:function(e,t){var n=e._pluginInfoId;if(!n||!this.pluginGroup[n])return null;var r=t.toLowerCase();return this.pluginGroup[n]._plugins[r]},beforeInit:function(e){var t=this;function n(e){return e&&e.then?e:new Promise(function(e){e()})}return new Promise(function(r){var i;if(t.pluginGroup)return i=e._loadingPlugins&&e._loadingPlugins.length?Promise.all(e._loadingPlugins):Promise.resolve(),i.then(function(){var i=e._pluginInfoId;if(t.pluginGroup[i]){var o=t.pluginGroup[i]._plugins,a=[];Object.keys(o).forEach(function(e){if(o[e]&&o[e].beforePlayerInit)try{var t=o[e].beforePlayerInit();a.push(n(t))}catch(r){throw a.push(n(null)),r}}),Promise.all([].concat(a)).then(function(){r()}).catch(function(e){console.error(e),r()})}else r()})})},afterInit:function(e){var t=e._pluginInfoId;if(t&&this.pluginGroup[t]){var n=this.pluginGroup[t]._plugins;Object.keys(n).forEach(function(e){n[e]&&n[e].afterPlayerInit&&n[e].afterPlayerInit()})}},setLang:function(e,t){var n=t._pluginInfoId;if(n&&this.pluginGroup[n]){var r=this.pluginGroup[n]._plugins;Object.keys(r).forEach(function(t){if(r[t].updateLang)r[t].updateLang(e);else try{r[t].lang=e}catch(n){console.warn("".concat(t," setLang"))}})}},reRender:function(e){var t=this,n=e._pluginInfoId;if(n&&this.pluginGroup[n]){var r=[],i=this.pluginGroup[n]._plugins;Object.keys(i).forEach(function(e){"controls"!==e&&i[e]&&(r.push({plugin:i[e].func,options:i[e].__args}),t.unRegister(n,e))}),r.forEach(function(n){t.register(e,n.plugin,n.options)})}},onPluginsReady:function(e){var t=e._pluginInfoId;if(t&&this.pluginGroup[t]){var n=this.pluginGroup[t]._plugins||{};Object.keys(n).forEach(function(e){n[e].onPluginsReady&&"function"===typeof n[e].onPluginsReady&&n[e].onPluginsReady()})}},destroy:function(e){var t=e._pluginInfoId;if(this.pluginGroup[t]){L(e.root);for(var n=this.pluginGroup[t]._plugins,r=0,i=Object.keys(n);r<i.length;r++){var o=i[r];this.unRegister(t,o)}delete this.pluginGroup[t],delete e._pluginInfoId}}},P={DEFAULT:"xgplayer",DEFAULT_SKIN:"xgplayer-skin-default",ENTER:"xgplayer-is-enter",PAUSED:"xgplayer-pause",PLAYING:"xgplayer-playing",ENDED:"xgplayer-ended",CANPLAY:"xgplayer-canplay",LOADING:"xgplayer-isloading",ERROR:"xgplayer-is-error",REPLAY:"xgplayer-replay",NO_START:"xgplayer-nostart",ACTIVE:"xgplayer-active",INACTIVE:"xgplayer-inactive",FULLSCREEN:"xgplayer-is-fullscreen",CSS_FULLSCREEN:"xgplayer-is-cssfullscreen",ROTATE_FULLSCREEN:"xgplayer-rotate-fullscreen",PARENT_ROTATE_FULLSCREEN:"xgplayer-rotate-parent",PARENT_FULLSCREEN:"xgplayer-fullscreen-parent",INNER_FULLSCREEN:"xgplayer-fullscreen-inner",NO_CONTROLS:"no-controls",FLEX_CONTROLS:"flex-controls",CONTROLS_FOLLOW:"controls-follow",CONTROLS_AUTOHIDE:"controls-autohide",TOP_BAR_AUTOHIDE:"top-bar-autohide",NOT_ALLOW_AUTOPLAY:"not-allow-autoplay",SEEKING:"seeking",PC:"xgplayer-pc",MOBILE:"xgplayer-mobile",MINI:"xgplayer-mini"};function F(){return{id:"",el:null,url:"",domEventType:"default",nullUrlStart:!1,width:600,height:337.5,fluid:!1,fitVideoSize:"fixed",videoFillMode:"auto",volume:.6,autoplay:!1,autoplayMuted:!1,loop:!1,isLive:!1,zoom:1,videoInit:!0,poster:"",isMobileSimulateMode:!1,defaultPlaybackRate:1,execBeforePluginsCall:null,allowSeekAfterEnded:!0,enableContextmenu:!0,closeVideoClick:!1,closeVideoDblclick:!1,closePlayerBlur:!1,closeDelayBlur:!1,leavePlayerTime:3e3,closePlayVideoFocus:!1,closePauseVideoFocus:!1,closeFocusVideoFocus:!0,closeControlsBlur:!0,topBarAutoHide:!0,videoAttributes:{},startTime:0,seekedStatus:"play",miniprogress:!1,disableSwipeHandler:function(){},enableSwipeHandler:function(){},preProcessUrl:null,ignores:[],whitelist:[],inactive:3e3,lang:(0,h.Xo)(),controls:!0,marginControls:!1,fullscreenTarget:null,screenShot:!1,rotate:!1,pip:!1,download:!1,mini:!1,cssFullscreen:!0,keyShortcut:!0,presets:[],plugins:[],playbackRate:1,definition:{list:[]},playsinline:!0,customDuration:0,timeOffset:0,icons:{},i18n:[],tabindex:0,thumbnail:null,videoConfig:{},isHideTips:!1,minWaitDelay:200,commonStyle:{progressColor:"",playedColor:"",cachedColor:"",sliderBtnStyle:{},volumeColor:""}}}var $=function(e,t){var n,i,o;o=t.preset&&t.options?new t.preset(t.options,e.config):new t({},e.config);var a=o,s=a.plugins,l=void 0===s?[]:s,c=a.ignores,u=void 0===c?[]:c,d=a.icons,h=void 0===d?{}:d,f=a.i18n,p=void 0===f?[]:f;e.config.plugins||(e.config.plugins=[]),e.config.ignores||(e.config.ignores=[]),(n=e.config.plugins).push.apply(n,(0,r.Og)(l)),(i=e.config.ignores).push.apply(i,(0,r.Og)(u)),Object.keys(h).map(function(t){e.config.icons[t]||(e.config.icons[t]=h[t])});var g=e.config.i18n||[];p.push.apply(p,(0,r.Og)(g)),e.config.i18n=p},j=n(30094),H=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){var e;(0,r.xs)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,r.n8)((0,r.V5)(e),"onMouseEnter",function(t){var n=(0,r.V5)(e),i=n.player,o=n.playerConfig;o.closeControlsBlur&&i.focus({autoHide:!1})}),(0,r.n8)((0,r.V5)(e),"onMouseLeave",function(t){var n=(0,r.V5)(e),i=n.player;i.focus()}),e}return(0,r.j6)(n,[{key:"beforeCreate",value:function(e){e.config.mode||"mobile"!==w.A.device||(e.config.mode="flex"),e.player.config.marginControls&&(e.config.autoHide=!1)}},{key:"afterCreate",value:function(){var e=this,t=this.config,n=t.disable,r=t.height,i=t.mode;if(!n){"flex"===i&&this.player.addClass(P.FLEX_CONTROLS);var a={height:"".concat(r,"px")};Object.keys(a).map(function(t){e.root.style[t]=a[t]}),this.left=this.find("xg-left-grid"),this.center=this.find("xg-center-grid"),this.right=this.find("xg-right-grid"),this.innerRoot=this.find("xg-inner-controls"),this.on(o.MINI_STATE_CHANGE,function(t){t?h.Ay.addClass(e.root,"mini-controls"):h.Ay.removeClass(e.root,"mini-controls")});var s=this.playerConfig.isMobileSimulateMode;"mobile"!==w.A.device&&"mobile"!==s&&(this.bind("mouseenter",this.onMouseEnter),this.bind("mouseleave",this.onMouseLeave))}}},{key:"focus",value:function(){this.player.focus({autoHide:!1})}},{key:"focusAwhile",value:function(){this.player.focus({autoHide:!0})}},{key:"blur",value:function(){this.player.blur({ignorePaused:!0})}},{key:"recoverAutoHide",value:function(){this.config.autoHide&&h.Ay.addClass(this.root,P.CONTROLS_AUTOHIDE)}},{key:"pauseAutoHide",value:function(){h.Ay.removeClass(this.root,P.CONTROLS_AUTOHIDE)}},{key:"show",value:function(e){this.root.style.display="",this.player.focus()}},{key:"hide",value:function(){this.root.style.display="none"}},{key:"mode",get:function(){return this.config.mode}},{key:"registerPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;if(this.root){var o=e.defaultConfig||{};if(!t.root){var a=t.position?t.position:t.config&&t.config.position?t.config.position:o.position;switch(a){case M.lP.CONTROLS_LEFT:t.root=this.left;break;case M.lP.CONTROLS_RIGHT:t.root=this.right;break;case M.lP.CONTROLS_CENTER:t.root=this.center;break;case M.lP.CONTROLS:t.root=this.root;break;default:t.root=this.left}return(0,r.Jt)((0,r.U6)(n.prototype),"registerPlugin",this).call(this,e,t,i)}}}},{key:"destroy",value:function(){"mobile"!==w.A.device&&(this.unbind("mouseenter",this.onMouseEnter),this.unbind("mouseleave",this.onMouseLeave)),this.left=null,this.center=null,this.right=null,this.innerRoot=null}},{key:"render",value:function(){var e=this.config,t=e.mode,n=e.autoHide,i=e.initShow,o=e.disable;if(!o){var a=h.Ay.classNames({"xgplayer-controls":!0},{"flex-controls":"flex"===t},{"bottom-controls":"bottom"===t},(0,r.n8)({},P.CONTROLS_AUTOHIDE,n),{"xgplayer-controls-initshow":i||!n});return'<xg-controls class="'.concat(a,'" unselectable="on">\n    <xg-inner-controls class="xg-inner-controls xg-pos">\n      <xg-left-grid class="xg-left-grid">\n      </xg-left-grid>\n      <xg-center-grid class="xg-center-grid"></xg-center-grid>\n      <xg-right-grid class="xg-right-grid">\n      </xg-right-grid>\n    </xg-inner-controls>\n    </xg-controls>')}}}],[{key:"pluginName",get:function(){return"controls"}},{key:"defaultConfig",get:function(){return{disable:!1,autoHide:!0,mode:"",initShow:!1}}}]),n}(M.Ay),U=n(69566),Q=n(95975),z={INITIAL:1,READY:2,ATTACHING:3,ATTACHED:4,NOTALLOW:5,RUNNING:6,ENDED:7,DESTROYED:8},W=["ERROR","INITIAL","READY","ATTACHING","ATTACHED","NOTALLOW","RUNNING","ENDED","DESTROYED"],G=["play","pause","replay","retry"],V=0,K=0,Y=null,q=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(e){var i;(0,r.xs)(this,n);var a=h.Ay.deepMerge(F(),e);i=t.call(this,a),(0,r.n8)((0,r.V5)(i),"canPlayFunc",function(){if(i.config){var e=i.config,t=e.autoplay,n=e.defaultPlaybackRate;U.A.logInfo("player","canPlayFunc, startTime",i.__startTime),i._seekToStartTime(),i.playbackRate=n,(t||i._useAutoplay)&&i.mediaPlay(),i.off(o.CANPLAY,i.canPlayFunc),i.removeClass(P.ENTER)}}),(0,r.n8)((0,r.V5)(i),"onFullscreenChange",function(e,t){var n=function(){h.Ay.setTimeout((0,r.V5)(i),function(){i.resize()},100)},a=h.Ay.getFullScreenEl();i._fullActionFrom?i._fullActionFrom="":i.emit(o.USER_ACTION,{eventType:"system",action:"switch_fullscreen",pluginName:"player",currentTime:i.currentTime,duration:i.duration,props:[{prop:"fullscreen",from:!0,to:!1}]});var s=(0,h.Dq)(a,i.playerId,O);if(t||a&&(a===i._fullscreenEl||s))n(),!i.config.closeFocusVideoFocus&&i.media.focus(),i.fullscreen=!0,i.changeFullStyle(i.root,a,P.FULLSCREEN),i.emit(o.FULLSCREEN_CHANGE,!0,i._fullScreenOffset),i.cssfullscreen&&i.exitCssFullscreen();else if(i.fullscreen){n();var l=(0,r.V5)(i),c=l._fullScreenOffset,u=l.config;if(u.needFullscreenScroll?(window.scrollTo(c.left,c.top),h.Ay.setTimeout((0,r.V5)(i),function(){i.fullscreen=!1,i._fullScreenOffset=null},100)):(!i.config.closeFocusVideoFocus&&i.media.focus(),i.fullscreen=!1,i._fullScreenOffset=null),i.cssfullscreen)i.removeClass(P.FULLSCREEN);else{var d=i._fullscreenEl;d||!i.root.contains(e.target)&&e.target!==i.root||(d=e.target),i.recoverFullStyle(i.root,d,P.FULLSCREEN)}i._fullscreenEl=null,i.emit(o.FULLSCREEN_CHANGE,!1)}}),(0,r.n8)((0,r.V5)(i),"_onWebkitbeginfullscreen",function(e){i._fullscreenEl=i.media,i.onFullscreenChange(e,!0)}),(0,r.n8)((0,r.V5)(i),"_onWebkitendfullscreen",function(e){i.onFullscreenChange(e,!1)}),(0,j.Ay)((0,r.V5)(i),G),i.config=a,i._pluginInfoId=h.Ay.generateSessionId(),(0,U.P)((0,r.V5)(i));var s=i.constructor.defaultPreset;if(i.config.presets.length){var l=i.config.presets.indexOf("default");l>=0&&s&&(i.config.presets[l]=s)}else s&&i.config.presets.push(s);i.userTimer=null,i.waitTimer=null,i.handleSource=!0,i._state=z.INITIAL,i.isAd=!1,i.isError=!1,i._hasStart=!1,i.isSeeking=!1,i.isCanplay=!1,i._useAutoplay=!1,i.__startTime=-1,i.rotateDeg=0,i.isActive=!1,i.fullscreen=!1,i.cssfullscreen=!1,i.isRotateFullscreen=!1,i._fullscreenEl=null,i.timeSegments=[],i._cssfullscreenEl=null,i.curDefinition=null,i._orgCss="",i._fullScreenOffset=null,i._videoHeight=0,i._videoWidth=0,i.videoPos={pi:1,scale:0,rotate:-1,x:0,y:0,h:-1,w:-1,vy:0,vx:0},i.sizeInfo={width:0,height:0,left:0,top:0},i._accPlayed={t:0,acc:0,loopAcc:0},i._offsetInfo={currentTime:-1,duration:0},i.innerContainer=null,i.controls=null,i.topBar=null,i.root=null,i.__i18n=y.init(i._pluginInfoId),w.A.os.isAndroid&&w.A.osVersion>0&&w.A.osVersion<6&&(i.config.autoplay=!1),i.database=new S,i.isUserActive=!1,i._onceSeekCanplay=null,i._isPauseBeforeSeek=0,i.innerStates={isActiveLocked:!1},i.instManager=Y;var c=i._initDOM();if(!c)return console.error(new Error("can't find the dom which id is ".concat(i.config.id," or this.config.el does not exist"))),(0,r.GM)(i);var u=i.config,d=u.definition,f=void 0===d?{}:d,p=u.url;if(!p&&f.list&&f.list.length>0){var g=f.list.find(function(e){return e.definition&&e.definition===f.defaultDefinition});g||(f.defaultDefinition=f.list[0].definition,g=f.list[0]),i.config.url=g.url,i.curDefinition=g}return i._bindEvents(),i._registerPresets(),i._registerPlugins(),B.onPluginsReady((0,r.V5)(i)),i.getInitDefinition(),i.setState(z.READY),h.Ay.setTimeout((0,r.V5)(i),function(){i.emit(o.READY)},0),i.onReady&&i.onReady(),(i.config.videoInit||i.config.autoplay)&&(!i.hasStart||i.state<z.ATTACHED)&&i.start(),i}return(0,r.j6)(n,[{key:"_initDOM",value:function(){var e,t=this;if(this.root=this.config.id?document.getElementById(this.config.id):null,!this.root){var n=this.config.el;if(!n||1!==n.nodeType)return this.emit(o.ERROR,new i.A("use",this.config.vid,{line:32,handle:"Constructor",msg:"container id can't be empty"})),console.error("this.confg.id or this.config.el can't be empty"),!1;this.root=n}var r=d(this.root);if(r&&(U.A.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"),r.destroy()),this.root.setAttribute(O,this.playerId),this.media.setAttribute(O,this.playerId),null===(e=Y)||void 0===e||e.add(this),B.init(this),this._initBaseDoms(),this.config.controls){var a=this.config.controls.root||null,s=B.register(this,H,{root:a});this.controls=s}var l="mobile"===this.config.isMobileSimulateMode?"mobile":w.A.device;if(this.addClass("".concat(P.DEFAULT," ").concat(P.INACTIVE," xgplayer-").concat(l," ").concat(this.config.controls?"":P.NO_CONTROLS)),this.config.autoplay?this.addClass(P.ENTER):this.addClass(P.NO_START),this.config.fluid){var c=this.config,u=c.width,h=c.height;"number"===typeof u&&"number"===typeof h||(u=600,h=337.5);var f={width:"100%",height:"0","max-width":"100%","padding-top":"".concat(100*h/u,"%")};Object.keys(f).forEach(function(e){t.root.style[e]=f[e]})}else["width","height"].forEach(function(e){t.config[e]&&("number"!==typeof t.config[e]?t.root.style[e]=t.config[e]:t.root.style[e]="".concat(t.config[e],"px"))});var p=this.root.getBoundingClientRect(),g=p.width,m=p.height,v=p.left,A=p.top;return this.sizeInfo.width=g,this.sizeInfo.height=m,this.sizeInfo.left=v,this.sizeInfo.top=A,!0}},{key:"_initBaseDoms",value:function(){this.topBar=null,this.leftBar=null,this.rightBar=null,this.config.marginControls&&(this.innerContainer=h.Ay.createDom("xg-video-container","",{"data-index":-1},"xg-video-container"),this.root.appendChild(this.innerContainer))}},{key:"_bindEvents",value:function(){var e=this;["focus","blur"].forEach(function(t){e.on(t,e["on"+t.charAt(0).toUpperCase()+t.slice(1)])}),C.forEach(function(t){document&&document.addEventListener(t,e.onFullscreenChange)}),w.A.os.isIos&&(this.media.addEventListener("webkitbeginfullscreen",this._onWebkitbeginfullscreen),this.media.addEventListener("webkitendfullscreen",this._onWebkitendfullscreen)),this.once(o.LOADED_DATA,this.resize),this.playFunc=function(){e.config.closeFocusVideoFocus||e.media.focus()},this.once(o.PLAY,this.playFunc)}},{key:"_unbindEvents",value:function(){var e=this;this.root.removeEventListener("mousemove",this.mousemoveFunc),C.forEach(function(t){document.removeEventListener(t,e.onFullscreenChange)}),this.playFunc&&this.off(o.PLAY,this.playFunc),this.off(o.CANPLAY,this.canPlayFunc),this.media.removeEventListener("webkitbeginfullscreen",this._onWebkitbeginfullscreen),this.media.removeEventListener("webkitendfullscreen",this._onWebkitendfullscreen)}},{key:"_clearUserTimer",value:function(){this.userTimer&&(h.Ay.clearTimeout(this,this.userTimer),this.userTimer=null)}},{key:"_startInit",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.media&&(e&&""!==e&&("Array"!==h.Ay.typeOf(e)||0!==e.length)||(e="",this.emit(o.URL_NULL),U.A.logWarn("config.url is null, please get url and run player._startInit(url)"),!this.config.nullUrlStart))){h.Ay.isNotNull(n.playSessionId)&&(this._playSessionId=n.playSessionId),this.handleSource&&(this._detachSourceEvents(this.media),"Array"===h.Ay.typeOf(e)&&e.length>0?this._attachSourceEvents(this.media,e):this.media.src&&this.media.src===e?e||this.media.removeAttribute("src"):this.media.src=e),"Number"===h.Ay.typeOf(this.config.volume)&&(this.volume=this.config.volume);var r=this.innerContainer?this.innerContainer:this.root;this.media instanceof window.Element&&!r.contains(this.media)&&r.insertBefore(this.media,r.firstChild);var i=this.media.readyState;U.A.logInfo("_startInit readyState",i),this.config.autoplay&&(!h.Ay.isMSE(this.media)&&this.load(),(w.A.os.isIpad||w.A.os.isPhone)&&this.mediaPlay());var a=this.config.startTime;this.__startTime=a>0?a:-1,this.config.startTime=0,i>=2&&this.duration>0?this.canPlayFunc():this.on(o.CANPLAY,this.canPlayFunc),(!this.hasStart||this.state<z.ATTACHED)&&B.afterInit(this),this.hasStart=!0,this.setState(z.ATTACHED),h.Ay.setTimeout(this,function(){t.emit(o.COMPLETE)},0)}}},{key:"_registerPlugins",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._loadingPlugins=[];var n=this.config.ignores||[],r=this.config.plugins||[],i=this.config.i18n||[];t&&y.extend(i,this.__i18n);var o=n.join("||").toLowerCase().split("||"),a=this.plugins;r.forEach(function(n){try{var r=n.plugin?n.plugin.pluginName:n.pluginName;if(r&&o.indexOf(r.toLowerCase())>-1)return null;if(!t&&a[r.toLowerCase()])return;if(n.lazy&&n.loader){var i=B.lazyRegister(e,n);return void(n.forceBeforeInit&&(i.then(function(){e._loadingPlugins.splice(e._loadingPlugins.indexOf(i),1)}).catch(function(t){U.A.logError("_registerPlugins:loadingPlugin",t),e._loadingPlugins.splice(e._loadingPlugins.indexOf(i),1)}),e._loadingPlugins.push(i)))}return e.registerPlugin(n)}catch(s){U.A.logError("_registerPlugins:",s)}})}},{key:"_registerPresets",value:function(){var e=this;this.config.presets.forEach(function(t){$(e,t)})}},{key:"_getRootByPosition",value:function(e){var t=null;switch(e){case M.lP.ROOT_RIGHT:this.rightBar||(this.rightBar=h.Ay.createPositionBar("xg-right-bar",this.root)),t=this.rightBar;break;case M.lP.ROOT_LEFT:this.leftBar||(this.leftBar=h.Ay.createPositionBar("xg-left-bar",this.root)),t=this.leftBar;break;case M.lP.ROOT_TOP:this.topBar||(this.topBar=h.Ay.createPositionBar("xg-top-bar",this.root),this.config.topBarAutoHide&&h.Ay.addClass(this.topBar,P.TOP_BAR_AUTOHIDE)),t=this.topBar;break;default:t=this.innerContainer||this.root;break}return t}},{key:"registerPlugin",value:function(e,t){var n=B.formatPluginInfo(e,t),r=n.PLUFGIN,i=n.options,o=this.config.plugins,a=B.checkPluginIfExits(r.pluginName,o);!a&&o.push(r);var s=B.getRootByConfig(r.pluginName,this.config);s.root&&(i.root=s.root),s.position&&(i.position=s.position);var l,c=i.position?i.position:i.config&&i.config.position||r.defaultConfig&&r.defaultConfig.position;return!i.root&&"string"===typeof c&&c.indexOf("controls")>-1?null===(l=this.controls)||void 0===l?void 0:l.registerPlugin(r,i,r.pluginName):(i.root||(i.root=this._getRootByPosition(c)),B.register(this,r,i))}},{key:"deregister",value:function(e){"string"===typeof e?B.unRegister(this,e):e instanceof I.Ay&&B.unRegister(this,e.pluginName)}},{key:"unRegisterPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.deregister(e),t&&this.removePluginFromConfig(e)}},{key:"removePluginFromConfig",value:function(e){var t;if("string"===typeof e?t=e:e instanceof I.Ay&&(t=e.pluginName),t)for(var n=this.config.plugins.length-1;n>-1;n--){var r=this.config.plugins[n];if(r.pluginName.toLowerCase()===t.toLowerCase()){this.config.plugins.splice(n,1);break}}}},{key:"plugins",get:function(){return B.getPlugins(this)}},{key:"getPlugin",value:function(e){var t=B.findPlugin(this,e);return t&&t.pluginName?t:null}},{key:"addClass",value:function(e){this.root&&(h.Ay.hasClass(this.root,e)||h.Ay.addClass(this.root,e))}},{key:"removeClass",value:function(e){this.root&&h.Ay.removeClass(this.root,e)}},{key:"hasClass",value:function(e){if(this.root)return h.Ay.hasClass(this.root,e)}},{key:"setAttribute",value:function(e,t){this.root&&this.root.setAttribute(e,t)}},{key:"removeAttribute",value:function(e,t){this.root&&this.root.removeAttribute(e,t)}},{key:"start",value:function(e){var t=this;if(!(this.state>z.ATTACHING)){var n=this._playSessionId;return h.Ay.isNotNull(n)&&(this._playSessionId=void 0),e||this.config.url||this.getInitDefinition(),this.hasStart=!0,this.setState(z.ATTACHING),this._registerPlugins(!1),B.beforeInit(this).then(function(){if(t.config){e||(e=t.url||t.config.url);var r=t.preProcessUrl(e),i=t._startInit(r.url,{playSessionId:n});return i}}).catch(function(e){throw e.fileName="player",e.lineNumber="236",U.A.logError("start:beforeInit:",e),e})}}},{key:"switchURL",value:function(e,t){var n=this,r=e;"Object"===h.Ay.typeOf(e)&&(r=e.url),r=this.preProcessUrl(r).url;var i=this.currentTime;this.__startTime=i;var o=this.paused&&!this.isError;return this.src=r,new Promise(function(e,t){var i=function(e){n.off("timeupdate",a),n.off("canplay",a),t(e)},a=function(){n._seekToStartTime(),o&&n.pause(),n.off("error",i),e(!0)};n.once("error",i),r?(w.A.os.isAndroid?n.once("timeupdate",a):n.once("canplay",a),n.play()):n.errorHandler("error",{code:6,message:"empty_src"})})}},{key:"videoPlay",value:function(){this.mediaPlay()}},{key:"mediaPlay",value:function(){var e=this;if(!this.hasStart&&this.state<z.ATTACHED)return this.removeClass(P.NO_START),this.addClass(P.ENTER),this.start(),void(this._useAutoplay=!0);this.state<z.RUNNING&&(this.removeClass(P.NO_START),!this.isCanplay&&this.addClass(P.ENTER));var t=(0,r.Jt)((0,r.U6)(n.prototype),"play",this).call(this);return void 0!==t&&t&&t.then?t.then(function(){e.removeClass(P.NOT_ALLOW_AUTOPLAY),e.addClass(P.PLAYING),e.state<z.RUNNING&&(U.A.logInfo(">>>>playPromise.then"),e.setState(z.RUNNING),e.emit(o.AUTOPLAY_STARTED))}).catch(function(t){if(U.A.logWarn(">>>>playPromise.catch",t.name),e.media&&e.media.error)return e.onError(),void e.removeClass(P.ENTER);"NotAllowedError"===t.name&&(e._errorTimer=h.Ay.setTimeout(e,function(){e._errorTimer=null,e.emit(o.AUTOPLAY_PREVENTED),e.addClass(P.NOT_ALLOW_AUTOPLAY),e.removeClass(P.ENTER),e.pause(),e.setState(z.NOTALLOW)},0))}):(U.A.logWarn("video.play not return promise"),this.state<z.RUNNING&&(this.setState(z.RUNNING),this.removeClass(P.NOT_ALLOW_AUTOPLAY),this.removeClass(P.NO_START),this.removeClass(P.ENTER),this.addClass(P.PLAYING),this.emit(o.AUTOPLAY_STARTED))),t}},{key:"mediaPause",value:function(){(0,r.Jt)((0,r.U6)(n.prototype),"pause",this).call(this)}},{key:"videoPause",value:function(){(0,r.Jt)((0,r.U6)(n.prototype),"pause",this).call(this)}},{key:"play",value:function(){var e=this;return this.removeClass(P.PAUSED),(0,j.Eu)(this,"play",function(){return e.mediaPlay()})}},{key:"pause",value:function(){var e=this;(0,j.Eu)(this,"pause",function(){(0,r.Jt)((0,r.U6)(n.prototype),"pause",e).call(e)})}},{key:"seek",value:function(e,t){var n=this;if(this.media&&!Number.isNaN(Number(e))&&this.hasStart){var r=this.config,i=r.isSeekedPlay,a=r.seekedStatus,s=t||(i?"play":a);e=e<0?0:e>this.duration?parseInt(this.duration,10):e,!this._isPauseBeforeSeek&&(this._isPauseBeforeSeek=this.paused?2:1),this._onceSeekCanplay&&this.off(o.SEEKED,this._onceSeekCanplay),this._onceSeekCanplay=function(){switch(n.removeClass(P.ENTER),n.isSeeking=!1,s){case"play":n.play();break;case"pause":n.pause();break;default:n._isPauseBeforeSeek>1||n.paused?n.pause():n.play()}n._isPauseBeforeSeek=0,n._onceSeekCanplay=null},this.once(o.SEEKED,this._onceSeekCanplay),this.state<z.RUNNING?(this.removeClass(P.NO_START),this.currentTime=e,this.play()):this.currentTime=e}}},{key:"getInitDefinition",value:function(){var e=this,t=this.config,n=t.definition,r=t.url;!r&&n&&n.list&&n.list.length>0&&n.defaultDefinition&&n.list.map(function(t){t.definition===n.defaultDefinition&&(e.config.url=t.url,e.curDefinition=t)})}},{key:"changeDefinition",value:function(e,t){var n=this,i=this.config.definition;if(Array.isArray(null===i||void 0===i?void 0:i.list)&&i.list.forEach(function(t){(null===e||void 0===e?void 0:e.definition)===t.definition&&(n.curDefinition=t)}),null!==e&&void 0!==e&&e.bitrate&&"number"!==typeof e.bitrate&&(e.bitrate=parseInt(e.bitrate,10)||0),this.emit(o.DEFINITION_CHANGE,{from:t,to:e}),this.hasStart){var a=this.switchURL(e.url,(0,r.T1)({seamless:!1!==i.seamless&&"undefined"!==typeof MediaSource&&"function"===typeof MediaSource.isTypeSupported},e));a&&a.then?a.then(function(){n.emit(o.AFTER_DEFINITION_CHANGE,{from:t,to:e})}):this.emit(o.AFTER_DEFINITION_CHANGE,{from:t,to:e})}else this.config.url=e.url}},{key:"reload",value:function(){this.load(),this.reloadFunc=function(){this.play()},this.once(o.LOADED_DATA,this.reloadFunc)}},{key:"resetState",value:function(){var e=this,t=P.NOT_ALLOW_AUTOPLAY,n=P.PLAYING,r=P.NO_START,i=P.PAUSED,a=P.REPLAY,s=P.ENTER,l=P.ENDED,c=P.ERROR,u=P.LOADING,d=[t,n,r,i,a,s,l,c,u];this.hasStart=!1,this.isError=!1,this._useAutoplay=!1,this.mediaPause(),this._accPlayed.acc=0,this._accPlayed.t=0,this._accPlayed.loopAcc=0,d.forEach(function(t){e.removeClass(t)}),this.addClass(P.NO_START),this.emit(o.RESET)}},{key:"reset",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;this.resetState();var r=this.plugins;if(r&&(t.map(function(t){e.deregister(t)}),n)){var i=F();Object.keys(this.config).forEach(function(t){"undefined"===e.config[t]||"plugins"!==t&&"presets"!==t&&"el"!==t&&"id"!==t||(e.config[t]=i[t])})}}},{key:"destroy",value:function(){var e,t=this,i=this.innerContainer,a=this.root,s=this.media;if(a&&s){if(this.hasStart=!1,this._useAutoplay=!1,a.removeAttribute(O),s.removeAttribute(O),this.updateAcc("destroy"),this._unbindEvents(),this._detachSourceEvents(this.media),h.Ay.clearAllTimers(this),this.emit(o.DESTROY),null===(e=Y)||void 0===e||e.remove(this),B.destroy(this),(0,j.Vj)(this),(0,r.Jt)((0,r.U6)(n.prototype),"destroy",this).call(this),this.fullscreen&&this._fullscreenEl===this.root&&this.exitFullscreen(),i)for(var l=i.children,c=0;c<l.length;c++)i.removeChild(l[c]);!i&&s instanceof window.Node&&a.contains(s)&&!this.config.remainMediaAfterDestroy&&a.removeChild(s),["topBar","leftBar","rightBar","innerContainer"].map(function(e){t[e]&&a.removeChild(t[e]),t[e]=null});var u=a.className.split(" ");u.length>0?a.className=u.filter(function(e){return e.indexOf("xgplayer")<0}).join(" "):a.className="",this.removeAttribute("data-xgfill"),["isSeeking","isCanplay","isActive","cssfullscreen","fullscreen"].forEach(function(e){t[e]=!1})}}},{key:"replay",value:function(){var e=this;this.removeClass(P.ENDED),this.currentTime=0,this.isSeeking=!1,(0,j.Eu)(this,"replay",function(){e.once(o.SEEKED,function(){var t=e.mediaPlay();t&&t.catch&&t.catch(function(e){console.log(e)})}),e.emit(o.REPLAY),e.onPlay()})}},{key:"retry",value:function(){var e=this;this.removeClass(P.ERROR),this.addClass(P.LOADING),(0,j.Eu)(this,"retry",function(){var t=e.currentTime,n=e.config.url,r=h.Ay.isMSE(e.media)?{url:n}:e.preProcessUrl(n);e.src=r.url,!e.config.isLive&&(e.currentTime=t),e.once(o.CANPLAY,function(){e.mediaPlay()})})}},{key:"changeFullStyle",value:function(e,t,n,r){e&&(r||(r=P.PARENT_FULLSCREEN),this._orgCss||(this._orgCss=h.Ay.filterStyleFromText(e)),h.Ay.addClass(e,n),t&&t!==e&&!this._orgPCss&&(this._orgPCss=h.Ay.filterStyleFromText(t),h.Ay.addClass(t,r),t.setAttribute(O,this.playerId)))}},{key:"recoverFullStyle",value:function(e,t,n,r){r||(r=P.PARENT_FULLSCREEN),this._orgCss&&(h.Ay.setStyleFromCsstext(e,this._orgCss),this._orgCss=""),h.Ay.removeClass(e,n),t&&t!==e&&this._orgPCss&&(h.Ay.setStyleFromCsstext(t,this._orgPCss),this._orgPCss="",h.Ay.removeClass(t,r),t.removeAttribute(O))}},{key:"getFullscreen",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.fullscreenTarget,t=this.root,n=this.media;"video"!==e&&"media"!==e||(e=this[e]),e||(e=t),this._fullScreenOffset={top:h.Ay.scrollTop(),left:h.Ay.scrollLeft()},this._fullscreenEl=e,this._fullActionFrom="get";var r=h.Ay.getFullScreenEl();if(r===this._fullscreenEl)return this.onFullscreenChange(),Promise.resolve();try{for(var i=0;i<T.length;i++){var o=T[i];if(e[o]){var a="webkitRequestFullscreen"===o?e.webkitRequestFullscreen(window.Element.ALLOW_KEYBOARD_INPUT):e[o]();return a&&a.then?a:Promise.resolve()}}return n.fullscreenEnabled||n.webkitSupportsFullscreen?(n.webkitEnterFullscreen(),Promise.resolve()):Promise.reject(new Error("call getFullscreen fail"))}catch(s){return Promise.reject(new Error("call getFullscreen fail"))}}},{key:"exitFullscreen",value:function(e){if(this.isRotateFullscreen&&this.exitRotateFullscreen(),this._fullscreenEl||h.Ay.getFullScreenEl()){this.root;var t=this.media;this._fullActionFrom="exit";try{for(var n=0;n<k.length;n++){var r=k[n];if(document[r]){var i=document[r]();return i&&i.then?i:Promise.resolve()}}return t&&t.webkitSupportsFullscreen?(t.webkitExitFullScreen(),Promise.resolve()):Promise.reject(new Error("call exitFullscreen fail"))}catch(o){return Promise.reject(new Error("call exitFullscreen fail"))}}}},{key:"getCssFullscreen",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.fullscreenTarget;this.isRotateFullscreen?this.exitRotateFullscreen():this.fullscreen&&this.exitFullscreen();var t=e?"".concat(P.INNER_FULLSCREEN," ").concat(P.CSS_FULLSCREEN):P.CSS_FULLSCREEN;this.changeFullStyle(this.root,e,t);var n=this.config.fullscreen,r=void 0===n?{}:n,i=!0===r.useCssFullscreen||"function"===typeof r.useCssFullscreen&&r.useCssFullscreen();i&&(this.fullscreen=!0,this.emit(o.FULLSCREEN_CHANGE,!0)),this._cssfullscreenEl=e,this.cssfullscreen=!0,this.emit(o.CSS_FULLSCREEN_CHANGE,!0)}},{key:"exitCssFullscreen",value:function(){var e=this._cssfullscreenEl?"".concat(P.INNER_FULLSCREEN," ").concat(P.CSS_FULLSCREEN):P.CSS_FULLSCREEN;if(this.fullscreen){var t=this.config.fullscreen,n=void 0===t?{}:t,r=!0===n.useCssFullscreen||"function"===typeof n.useCssFullscreen&&n.useCssFullscreen();r?(this.recoverFullStyle(this.root,this._cssfullscreenEl,e),this.fullscreen=!1,this.emit(o.FULLSCREEN_CHANGE,!1)):this.removeClass(e)}else this.recoverFullStyle(this.root,this._cssfullscreenEl,e);this._cssfullscreenEl=null,this.cssfullscreen=!1,this.emit(o.CSS_FULLSCREEN_CHANGE,!1)}},{key:"getRotateFullscreen",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.fullscreenTarget;this.cssfullscreen&&this.exitCssFullscreen(e);var t=e?"".concat(P.INNER_FULLSCREEN," ").concat(P.ROTATE_FULLSCREEN):P.ROTATE_FULLSCREEN;this._fullscreenEl=e||this.root,this.changeFullStyle(this.root,e,t,P.PARENT_ROTATE_FULLSCREEN),this.isRotateFullscreen=!0,this.fullscreen=!0,this.setRotateDeg(90),this._rootStyle=this.root.getAttribute("style");var n=90===Math.abs(window.orientation)||90===Math.abs(screen.orientation.angle);this.root.style.width="".concat(n?window.innerWidth:window.innerHeight,"px"),this.emit(o.FULLSCREEN_CHANGE,!0)}},{key:"exitRotateFullscreen",value:function(e){var t=this._fullscreenEl!==this.root?"".concat(P.INNER_FULLSCREEN," ").concat(P.ROTATE_FULLSCREEN):P.ROTATE_FULLSCREEN;this.recoverFullStyle(this.root,this._fullscreenEl,t,P.PARENT_ROTATE_FULLSCREEN),this.isRotateFullscreen=!1,this.fullscreen=!1,this.setRotateDeg(0),this.emit(o.FULLSCREEN_CHANGE,!1),this._rootStyle&&(this.root.style.style=this._rootStyle,this._rootStyle=!1)}},{key:"setRotateDeg",value:function(e){90===window.orientation||-90===window.orientation?this.rotateDeg=0:this.rotateDeg=e}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{autoHide:!this.config.closeDelayBlur,delay:this.config.inactive};this.isActive?this.onFocus(e):this.emit(o.PLAYER_FOCUS,(0,r.T1)({paused:this.paused,ended:this.ended},e))}},{key:"blur",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{ignorePaused:!1};this.isActive?(this._clearUserTimer(),this.emit(o.PLAYER_BLUR,(0,r.T1)({paused:this.paused,ended:this.ended},e))):this.onBlur(e)}},{key:"onFocus",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{autoHide:!0,delay:3e3},n=this.innerStates;if(this.isActive=!0,this.removeClass(P.INACTIVE),this._clearUserTimer(),void 0!==t.isLock&&(n.isActiveLocked=t.isLock),!1===t.autoHide||!0===t.isLock||n.isActiveLocked)this._clearUserTimer();else{var r=t&&t.delay?t.delay:this.config.inactive;this.userTimer=h.Ay.setTimeout(this,function(){e.userTimer=null,e.blur()},r)}}},{key:"onBlur",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignorePaused,n=void 0!==t&&t;if(!this.innerStates.isActiveLocked){var r=this.config.closePauseVideoFocus;this.isActive=!1,(n||r||!this.paused&&!this.ended)&&this.addClass(P.INACTIVE)}}},{key:"onEmptied",value:function(){this.updateAcc("emptied")}},{key:"onCanplay",value:function(){this.removeClass(P.ENTER),this.removeClass(P.ERROR),this.removeClass(P.LOADING),this.isCanplay=!0,this.waitTimer&&h.Ay.clearTimeout(this,this.waitTimer)}},{key:"onLoadeddata",value:function(){var e=this;this.isError=!1,this.isSeeking=!1,this.__startTime>0&&(this.duration>0?this._seekToStartTime():this.once(o.DURATION_CHANGE,function(){e._seekToStartTime()}))}},{key:"onLoadstart",value:function(){this.removeClass(P.ERROR),this.isCanplay=!1}},{key:"onPlay",value:function(){this.state===z.ENDED&&this.setState(z.RUNNING),this.removeClass(P.PAUSED),this.ended&&this.removeClass(P.ENDED),!this.config.closePlayVideoFocus&&this.focus()}},{key:"onPause",value:function(){this.addClass(P.PAUSED),this.updateAcc("pause"),this.config.closePauseVideoFocus||(this._clearUserTimer(),this.focus())}},{key:"onEnded",value:function(){this.updateAcc("ended"),this.addClass(P.ENDED),this.setState(z.ENDED)}},{key:"onError",value:function(){this.isError=!0,this.updateAcc("error"),this.removeClass(P.NOT_ALLOW_AUTOPLAY),this.removeClass(P.NO_START),this.removeClass(P.ENTER),this.removeClass(P.LOADING),this.addClass(P.ERROR)}},{key:"onSeeking",value:function(){this.isSeeking||this.updateAcc("seeking"),this.isSeeking=!0,this.addClass(P.SEEKING)}},{key:"onSeeked",value:function(){this.isSeeking=!1,this.waitTimer&&h.Ay.clearTimeout(this,this.waitTimer),this.removeClass(P.LOADING),this.removeClass(P.SEEKING)}},{key:"onWaiting",value:function(){var e=this;this.waitTimer&&h.Ay.clearTimeout(this,this.waitTimer),this.updateAcc("waiting"),this.waitTimer=h.Ay.setTimeout(this,function(){e.addClass(P.LOADING),e.emit(o.LOADING),h.Ay.clearTimeout(e,e.waitTimer),e.waitTimer=null},this.config.minWaitDelay)}},{key:"onPlaying",value:function(){var e=this;this.isError=!1;var t=P.NO_START,n=P.PAUSED,r=P.ENDED,i=P.ERROR,o=P.REPLAY,a=P.LOADING,s=[t,n,r,i,o,a];s.forEach(function(t){e.removeClass(t)}),this._accPlayed.t||this.paused||this.ended||(this._accPlayed.t=(new Date).getTime())}},{key:"onTimeupdate",value:function(){!this._videoHeight&&this.media.videoHeight&&this.resize(),(this.waitTimer||this.hasClass(P.LOADING))&&this.media.readyState>2&&(this.removeClass(P.LOADING),h.Ay.clearTimeout(this,this.waitTimer),this.waitTimer=null),!this.paused&&this.state===z.NOTALLOW&&this.duration&&(this.setState(z.RUNNING),this.emit(o.AUTOPLAY_STARTED)),this._accPlayed.t||this.paused||this.ended||(this._accPlayed.t=(new Date).getTime())}},{key:"onVolumechange",value:function(){"Number"===h.Ay.typeOf(this.config.volume)&&(this.config.volume=this.volume)}},{key:"onRatechange",value:function(){this.config.defaultPlaybackRate=this.playbackRate}},{key:"emitUserAction",value:function(e,t,n){if(this.media&&t&&e){var i="String"===h.Ay.typeOf(e)?e:e.type||"";n.props&&"Array"!==h.Ay.typeOf(n.props)&&(n.props=[n.props]),this.emit(o.USER_ACTION,(0,r.T1)({eventType:i,action:t,currentTime:this.currentTime,duration:this.duration,ended:this.ended,event:e},n))}}},{key:"updateAcc",value:function(e){if(this._accPlayed.t){var t=(new Date).getTime()-this._accPlayed.t;this._accPlayed.acc+=t,this._accPlayed.t=0,("ended"===e||this.ended)&&(this._accPlayed.loopAcc=this._accPlayed.acc)}}},{key:"checkBuffer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{startDiff:0,endDiff:0},n=t||{},r=n.startDiff,i=void 0===r?0:r,o=n.endDiff,a=void 0===o?0:o,s=this.media.buffered;if(!s||0===s.length||!this.duration)return!0;for(var l=e||this.media.currentTime||.2,c=s.length,u=0;u<c;u++)if(s.start(u)+i<=l&&s.end(u)-a>l)return!0;return!1}},{key:"resizePosition",value:function(){var e=this,t=this.videoPos,n=t.vy,r=t.vx,i=t.h,o=t.w,a=this.videoPos.rotate;if(!(a<0&&i<0&&o<0)){var s=this.videoPos._pi;if(!s&&this.media.videoHeight&&(s=this.media.videoWidth/this.media.videoHeight*100),s){this.videoPos.pi=s,a=a<0?0:a;var l={rotate:a},c=0,u=0,d=1,f=Math.abs(a/90),p=this.root,g=this.innerContainer,m=p.offsetWidth,v=g?g.offsetHeight:p.offsetHeight,A={},b=v,y=m;if(f%2===0)d=i>0?100/i:o>0?100/o:1,l.scale=d,c=n>0?(100-i)/2-n:0,l.y=2===f?0-c:c,u=r>0?(100-o)/2-r:0,l.x=2===f?0-u:u,A.width="".concat(y,"px"),A.height="".concat(b,"px"),A.maxWidth="",A.maxHeight="";else if(f%2===1){y=v,b=m;var w=v-m;u=-w/2/y*100,l.x=3===f?u+n/2:u-n/2,c=w/2/b*100,l.y=3===f?c+r/2:c-r/2,l.scale=d,A.width="".concat(y,"px"),A.maxWidth="".concat(y,"px"),A.height="".concat(b,"px"),A.maxHeight="".concat(b,"px")}var _=h.Ay.getTransformStyle(l,this.media.style.transform||this.media.style.webkitTransform);A.transform=_,A.webkitTransform=_,Object.keys(A).map(function(t){e.media.style[t]=A[t]})}}}},{key:"position",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{h:0,y:0,x:0,w:0};if(this.media&&e&&e.h){var t=this.videoPos;t.h=100*e.h||0,t.w=100*e.w||0,t.vx=100*e.x||0,t.vy=100*e.y||0,this.resizePosition()}}},{key:"setConfig",value:function(e){var t=this;e&&Object.keys(e).map(function(n){if("plugins"!==n){t.config[n]=e[n];var r=t.plugins[n.toLowerCase()];r&&"Function"===h.Ay.typeOf(r.setConfig)&&r.setConfig(e[n])}})}},{key:"playNext",value:function(e){var t=this;this.resetState(),this.setConfig(e),this._currentTime=0,this._duration=0,(0,j.Eu)(this,"playnext",function(){t.start(),t.emit(o.PLAYNEXT,e)})}},{key:"resize",value:function(){var e=this;if(this.media&&this.root){var t=this.root.getBoundingClientRect();this.sizeInfo.width=t.width,this.sizeInfo.height=t.height,this.sizeInfo.left=t.left,this.sizeInfo.top=t.top;var n=this.media,r=n.videoWidth,i=n.videoHeight,a=this.config,s=a.fitVideoSize,l=a.videoFillMode;if("fill"!==l&&"cover"!==l&&"contain"!==l||this.setAttribute("data-xgfill",l),i&&r){this._videoHeight=i,this._videoWidth=r;var c=this.controls&&this.innerContainer?this.controls.root.getBoundingClientRect().height:0,u=t.width,d=t.height-c,h=parseInt(r/i*1e3,10),f=parseInt(u/d*1e3,10),p=u,g=d,m={};"auto"===s&&f>h||"fixWidth"===s?(g=u/h*1e3,this.config.fluid?m.paddingTop="".concat(100*g/p,"%"):m.height="".concat(g+c,"px")):("auto"===s&&f<h||"fixHeight"===s)&&(p=h*d/1e3,m.width="".concat(p,"px")),this.fullscreen||this.cssfullscreen||Object.keys(m).forEach(function(t){e.root.style[t]=m[t]}),("fillHeight"===l&&f<h||"fillWidth"===l&&f>h)&&this.setAttribute("data-xgfill","cover");var v={videoScale:h,vWidth:p,vHeight:g,cWidth:p,cHeight:g+c};this.resizePosition(),this.emit(o.VIDEO_RESIZE,v)}}}},{key:"updateObjectPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.media.updateObjectPosition?this.media.updateObjectPosition(e,t):this.media.style.objectPosition="".concat(100*e,"% ").concat(100*t,"%")}},{key:"setState",value:function(e){U.A.logInfo("setState","state from:".concat(W[this.state]," to:").concat(W[e])),this._state=e}},{key:"preProcessUrl",value:function(e,t){var n=this.config,r=n.preProcessUrl,i=n.preProcessUrlOptions,o=Object.assign({},i,t);return h.Ay.isBlob(e)||"function"!==typeof r?{url:e}:r(e,o)}},{key:"_seekToStartTime",value:function(){this.__startTime>0&&this.duration>0&&(this.currentTime=this.__startTime>this.duration?this.duration:this.__startTime,this.__startTime=-1)}},{key:"state",get:function(){return this._state}},{key:"isFullscreen",get:function(){return this.fullscreen}},{key:"isCssfullScreen",get:function(){return this.cssfullscreen}},{key:"hasStart",get:function(){return this._hasStart},set:function(e){"boolean"===typeof e&&(this._hasStart=e,!1===e&&this.setState(z.READY),this.emit("hasstart"))}},{key:"isPlaying",get:function(){return this._state===z.RUNNING||this._state===z.ENDED},set:function(e){e?this.setState(z.RUNNING):this._state>=z.RUNNING&&this.setState(z.ATTACHED)}},{key:"definitionList",get:function(){return this.config&&this.config.definition&&this.config.definition.list||[]},set:function(e){var t=this,n=this.config.definition,r=null,i=null;n.list=e,this.emit("resourceReady",e),e.forEach(function(e){var o;(null===(o=t.curDefinition)||void 0===o?void 0:o.definition)===e.definition&&(r=e),n.defaultDefinition===e.definition&&(i=e)}),!i&&e.length>0&&(i=e[0]),r?this.changeDefinition(r):i&&this.changeDefinition(i)}},{key:"videoFrameInfo",get:function(){var e={total:0,dropped:0,corrupted:0,droppedRate:0,droppedDuration:0};if(!this.media||!this.media.getVideoPlaybackQuality)return e;var t=this.media.getVideoPlaybackQuality();return e.dropped=t.droppedVideoFrames||0,e.total=t.totalVideoFrames||0,e.corrupted=t.corruptedVideoFrames||0,e.total>0&&(e.droppedRate=e.dropped/e.total*100,e.droppedDuration=parseInt(this.cumulateTime/e.total*e.dropped,0)),e}},{key:"lang",get:function(){return this.config.lang},set:function(e){var t=y.langKeys.filter(function(t){return t===e});0!==t.length||"zh"===e?(this.config.lang=e,B.setLang(e,this)):console.error("Sorry, set lang fail, because the language [".concat(e,"] is not supported now, list of all supported languages is [").concat(y.langKeys.join(),"] "))}},{key:"i18n",get:function(){var e=this.config.lang;return"zh"===e&&(e="zh-cn"),this.__i18n.lang[e]||this.__i18n.lang.en}},{key:"i18nKeys",get:function(){return this.__i18n.textKeys||{}}},{key:"version",get:function(){return Q.A}},{key:"playerId",get:function(){return this._pluginInfoId}},{key:"url",get:function(){return this.__url||this.config.url},set:function(e){this.__url=e}},{key:"poster",get:function(){return this.plugins.poster?this.plugins.poster.config.poster:this.config.poster},set:function(e){this.plugins.poster&&this.plugins.poster.update(e)}},{key:"readyState",get:function(){return(0,r.Jt)((0,r.U6)(n.prototype),"readyState",this)}},{key:"error",get:function(){var e=(0,r.Jt)((0,r.U6)(n.prototype),"error",this);return this.i18n[e]||e}},{key:"networkState",get:function(){return(0,r.Jt)((0,r.U6)(n.prototype),"networkState",this)}},{key:"fullscreenChanging",get:function(){return!(null===this._fullScreenOffset)}},{key:"cumulateTime",get:function(){var e=this._accPlayed,t=e.acc,n=e.t;return n?(new Date).getTime()-n+t:t}},{key:"zoom",get:function(){return this.config.zoom},set:function(e){this.config.zoom=e}},{key:"videoRotateDeg",get:function(){return this.videoPos.rotate},set:function(e){e=h.Ay.convertDeg(e),e%90===0&&e!==this.videoPos.rotate&&(this.videoPos.rotate=e,this.resizePosition())}},{key:"avgSpeed",get:function(){return K},set:function(e){K=e}},{key:"realTimeSpeed",get:function(){return V},set:function(e){V=e}},{key:"offsetCurrentTime",get:function(){return this._offsetInfo.currentTime||0},set:function(e){this._offsetInfo.currentTime=e}},{key:"offsetDuration",get:function(){return this._offsetInfo.duration||0},set:function(e){this._offsetInfo.duration=e||0}},{key:"hook",value:function(e,t){return j.A_.call.apply(j.A_,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"useHooks",value:function(e,t){return j.uQ.call.apply(j.uQ,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"removeHooks",value:function(e,t){return j.j.call.apply(j.j,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"usePluginHooks",value:function(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];return j.tC.call.apply(j.tC,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"removePluginHooks",value:function(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];return j.oq.call.apply(j.oq,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"setUserActive",value:function(e,t){var n;"boolean"===typeof t&&t!==this.muted&&(this.addInnerOP("volumechange"),h.Ay.typeOf(t)===Boolean&&(this.muted=t)),null===(n=Y)||void 0===n||n.setActive(this.playerId,e)}}],[{key:"debugger",get:function(){return U.A.config.debug},set:function(e){U.A.config.debug=e}},{key:"instManager",get:function(){return Y},set:function(e){Y=e}},{key:"getCurrentUserActivePlayerId",value:function(){var e;return null===(e=Y)||void 0===e?void 0:e.getActiveId()}},{key:"setCurrentUserActive",value:function(e,t){var n;null===(n=Y)||void 0===n||n.setActive(e,t)}},{key:"isHevcSupported",value:function(){return w.A.isHevcSupported()}},{key:"probeConfigSupported",value:function(e){return w.A.probeConfigSupported(e)}},{key:"install",value:function(e,t){n.plugins||(n.plugins={}),n.plugins[e]||(n.plugins[e]=t)}},{key:"use",value:function(e,t){n.plugins||(n.plugins={}),n.plugins[e]=t}}]),n}(E);function X(e,t,n){try{return' <div class="xg-tips '.concat(n?"hide":" ",'" lang-key="').concat(e.i18nKeys[t],'">\n    ').concat(e.i18n[t],"\n    </div>")}catch(r){return'<div class="xg-tips hide"></div>'}}(0,r.n8)(q,"defaultPreset",null),(0,r.n8)(q,"XgVideoProxy",null),q.instManager=u.getInstance();var J=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){var e;(0,r.xs)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,r.n8)((0,r.V5)(e),"_onMouseenter",function(t){e.emit("icon_mouseenter",{pluginName:e.pluginName})}),(0,r.n8)((0,r.V5)(e),"_onMouseLeave",function(t){e.emit("icon_mouseleave",{pluginName:e.pluginName})}),e}return(0,r.j6)(n,[{key:"afterCreate",value:function(){this.bind("mouseenter",this._onMouseenter),this.bind("mouseleave",this._onMouseLeave),this.config.disable&&this.disable()}},{key:"destroy",value:function(){this.unbind("mouseenter",this._onMouseenter),this.unbind("mouseleave",this._onMouseLeave)}}]),n}(M.Ay);function Z(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">\n  <path fill="#fff" transform="scale(1.3, 1.3)" class=\'path_full\' d="M9,10v1a.9.9,0,0,1-1,1,.9.9,0,0,1-1-1V9A.9.9,0,0,1,8,8h2a.9.9,0,0,1,1,1,.9.9,0,0,1-1,1Zm6,4V13a1,1,0,0,1,2,0v2a.9.9,0,0,1-1,1H14a1,1,0,0,1,0-2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>\n</svg>\n',"image/svg+xml").firstChild}function ee(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">\n  <path fill="#fff" transform="scale(1.3, 1.3)" d="M9,10V9a.9.9,0,0,1,1-1,.9.9,0,0,1,1,1v2a.9.9,0,0,1-1,1H8a.9.9,0,0,1-1-1,.9.9,0,0,1,1-1Zm6,4v1a1,1,0,0,1-2,0V13a.9.9,0,0,1,1-1h2a1,1,0,0,1,0,2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>\n</svg>\n',"image/svg+xml").firstChild}var te=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){return(0,r.xs)(this,n),t.apply(this,arguments)}return(0,r.j6)(n,[{key:"beforeCreate",value:function(e){"boolean"===typeof e.player.config.cssFullscreen&&(e.config.disable=!e.player.config.cssFullscreen)}},{key:"afterCreate",value:function(){var e=this;(0,r.Jt)((0,r.U6)(n.prototype),"afterCreate",this).call(this),this.config.disable||(this.config.target&&(this.playerConfig.fullscreenTarget=this.config.target),this.initIcons(),this.on(o.CSS_FULLSCREEN_CHANGE,function(t){e.animate(t)}),this.btnClick=this.btnClick.bind(this),this.handleCssFullscreen=this.hook("cssFullscreen_change",this.btnClick,{pre:function(e){e.preventDefault(),e.stopPropagation()}}),this.bind(["click","touchend"],this.handleCssFullscreen))}},{key:"initIcons",value:function(){var e=this.icons,t=this.find(".xgplayer-icon");t.appendChild(e.cssFullscreen),t.appendChild(e.exitCssFullscreen)}},{key:"btnClick",value:function(e){e.preventDefault(),e.stopPropagation();var t=this.player.isCssfullScreen;this.emitUserAction(e,"switch_cssfullscreen",{cssfullscreen:t}),t?this.player.exitCssFullscreen():this.player.getCssFullscreen()}},{key:"animate",value:function(e){this.root&&(e?this.setAttr("data-state","full"):this.setAttr("data-state","normal"),this.switchTips(e))}},{key:"switchTips",value:function(e){var t=this.i18nKeys,n=this.find(".xg-tips");n&&this.changeLangTextKey(n,e?t.EXITCSSFULLSCREEN_TIPS:t.CSSFULLSCREEN_TIPS)}},{key:"registerIcons",value:function(){return{cssFullscreen:{icon:Z,class:"xg-get-cssfull"},exitCssFullscreen:{icon:ee,class:"xg-exit-cssfull"}}}},{key:"destroy",value:function(){(0,r.Jt)((0,r.U6)(n.prototype),"destroy",this).call(this),this.unbind(["click","touchend"],this.btnClick)}},{key:"render",value:function(){if(!this.config.disable)return"<xg-icon class='xgplayer-cssfullscreen'>\n    <div class=\"xgplayer-icon\">\n    </div>\n    ".concat(X(this,"CSSFULLSCREEN_TIPS",this.playerConfig.isHideTips),"\n    </xg-icon>")}}],[{key:"pluginName",get:function(){return"cssFullscreen"}},{key:"defaultConfig",get:function(){return{position:M.lP.CONTROLS_RIGHT,index:1,disable:!1,target:null}}}]),n}(J);function ne(){return(new DOMParser).parseFromString('<svg width="32px" height="40px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n    <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n        <path d="M11.2374369,14 L17.6187184,7.61871843 C17.9604272,7.27700968 17.9604272,6.72299032 17.6187184,6.38128157 C17.2770097,6.03957281 16.7229903,6.03957281 16.3812816,6.38128157 L9.38128157,13.3812816 C9.03957281,13.7229903 9.03957281,14.2770097 9.38128157,14.6187184 L16.3812816,21.6187184 C16.7229903,21.9604272 17.2770097,21.9604272 17.6187184,21.6187184 C17.9604272,21.2770097 17.9604272,20.7229903 17.6187184,20.3812816 L11.2374369,14 L11.2374369,14 Z" fill="#FFFFFF"></path>\n    </g>\n</svg>',"image/svg+xml").firstChild}var re=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){return(0,r.xs)(this,n),t.apply(this,arguments)}return(0,r.j6)(n,[{key:"afterCreate",value:function(){var e=this;this.initIcons(),this.onClick=function(t){t.preventDefault(),t.stopPropagation(),e.config.onClick(t)},this.bind(["click","touchend"],this.onClick)}},{key:"registerIcons",value:function(){return{screenBack:{icon:ne,class:"xg-fullscreen-back"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(this.root,e.screenBack)}},{key:"show",value:function(){h.Ay.addClass(this.root,"show")}},{key:"hide",value:function(){h.Ay.removeClass(this.root,"show")}},{key:"render",value:function(){return'<xg-icon class="xgplayer-back">\n    </xg-icon>'}}],[{key:"pluginName",get:function(){return"topbackicon"}},{key:"defaultConfig",get:function(){return{position:M.lP.ROOT_TOP,index:0}}}]),n}(M.Ay);function ie(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">\n  <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z"></path>\n</svg>\n',"image/svg+xml").firstChild}function oe(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">\n  <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z"></path>\n</svg>\n',"image/svg+xml").firstChild}var ae=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){var e;(0,r.xs)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,r.n8)((0,r.V5)(e),"_onOrientationChange",function(t){e.player.fullscreen&&e.config.rotateFullscreen&&(90===window.orientation||-90===window.orientation?e.player.setRotateDeg(0):e.player.setRotateDeg(90))}),e}return(0,r.j6)(n,[{key:"afterCreate",value:function(){var e=this;(0,r.Jt)((0,r.U6)(n.prototype),"afterCreate",this).call(this);var t=this.config,i=this.playerConfig;if(!t.disable){t.target&&(this.playerConfig.fullscreenTarget=this.config.target);var a=h.Ay.getFullScreenEl();i.fullscreenTarget===a&&this.player.getFullscreen().catch(function(e){}),this.initIcons(),this.handleFullscreen=this.hook("fullscreenChange",this.toggleFullScreen,{pre:function(t){var n=e.player.fullscreen;e.emitUserAction(t,"switch_fullscreen",{prop:"fullscreen",from:n,to:!n})}}),this.bind(".xgplayer-fullscreen",["touchend","click"],this.handleFullscreen),this.on(o.FULLSCREEN_CHANGE,function(t){var n=e.find(".xg-tips");n&&e.changeLangTextKey(n,t?e.i18nKeys.EXITFULLSCREEN_TIPS:e.i18nKeys.FULLSCREEN_TIPS),e.animate(t)}),this.config.needBackIcon&&(this.topBackIcon=this.player.registerPlugin({plugin:re,options:{config:{onClick:function(t){e.handleFullscreen(t)}}}})),"mobile"===w.A.device&&window.addEventListener("orientationchange",this._onOrientationChange)}}},{key:"registerIcons",value:function(){return{fullscreen:{icon:ie,class:"xg-get-fullscreen"},exitFullscreen:{icon:oe,class:"xg-exit-fullscreen"}}}},{key:"destroy",value:function(){(0,r.Jt)((0,r.U6)(n.prototype),"destroy",this).call(this),this.unbind(".xgplayer-icon","mobile"===w.A.device?"touchend":"click",this.handleFullscreen),"mobile"===w.A.device&&window.removeEventListener("orientationchange",this._onOrientationChange)}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".xgplayer-icon",e.fullscreen),this.appendChild(".xgplayer-icon",e.exitFullscreen)}},{key:"toggleFullScreen",value:function(e){e instanceof Event&&(e.preventDefault(),e.stopPropagation());var t=this.player,n=this.config,r=!0===n.useCssFullscreen||"function"===typeof n.useCssFullscreen&&n.useCssFullscreen();r?(t.fullscreen?t.exitCssFullscreen():t.getCssFullscreen(),this.animate(t.fullscreen)):n.rotateFullscreen?(t.fullscreen?t.exitRotateFullscreen():t.getRotateFullscreen(),this.animate(t.fullscreen)):n.switchCallback&&"function"===typeof n.switchCallback?n.switchCallback(t.fullscreen):t.fullscreen?(t.exitFullscreen(),n.useScreenOrientation&&this.unlockScreen()):(t.getFullscreen().catch(function(e){}),n.useScreenOrientation&&t.aspectRatio>1&&this.lockScreen(n.lockOrientationType))}},{key:"animate",value:function(e){e?this.setAttr("data-state","full"):this.setAttr("data-state","normal"),this.topBackIcon&&(e?(this.topBackIcon.show(),this.hide()):(this.topBackIcon.hide(),this.show()))}},{key:"render",value:function(){if(!this.config.disable){var e="FULLSCREEN_TIPS";return'<xg-icon class="xgplayer-fullscreen">\n    <div class="xgplayer-icon">\n    </div>\n    '.concat(X(this,e,this.playerConfig.isHideTips),"\n    </xg-icon>")}}},{key:"lockScreen",value:function(e){try{screen.orientation.lock(e).catch(function(e){})}catch(t){}}},{key:"unlockScreen",value:function(){try{screen.orientation.unlock().catch(function(e){})}catch(e){}}}],[{key:"pluginName",get:function(){return"fullscreen"}},{key:"defaultConfig",get:function(){return{position:M.lP.CONTROLS_RIGHT,index:0,useCssFullscreen:!1,rotateFullscreen:!1,useScreenOrientation:!1,lockOrientationType:"landscape",switchCallback:null,target:null,disable:!1,needBackIcon:!1}}}]),n}(J);function se(){return(new DOMParser).parseFromString('<svg class="play" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">\n  <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>\n</svg>\n',"image/svg+xml").firstChild}function le(){return(new DOMParser).parseFromString('<svg class="pause" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">\n  <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>\n</svg>\n',"image/svg+xml").firstChild}var ce=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){var e;(0,r.xs)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,r.n8)((0,r.V5)(e),"btnClick",function(t){t.preventDefault(),t.stopPropagation();var n=(0,r.V5)(e),i=n.player;return e.emitUserAction(t,"switch_play_pause",{prop:"paused",from:i.paused,to:!i.paused}),i.ended?i.replay():i.paused?(i.play(),e.animate(!1)):(i.pause(),e.animate(!0)),!1}),e}return(0,r.j6)(n,[{key:"afterCreate",value:function(){(0,r.Jt)((0,r.U6)(n.prototype),"afterCreate",this).call(this);var e=this.config;e.disable||(this.initIcons(),this.bind(["touchend","click"],this.btnClick),this.listenEvents(),this.animate(!0))}},{key:"listenEvents",value:function(){var e=this,t=this.player;this.on([o.PLAY,o.PAUSE,o.ERROR,o.EMPTIED],function(){e.animate(t.paused)})}},{key:"registerIcons",value:function(){return{play:{icon:se,class:"xg-icon-play"},pause:{icon:le,class:"xg-icon-pause"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".xgplayer-icon",e.play),this.appendChild(".xgplayer-icon",e.pause)}},{key:"animate",value:function(e){if(this.player){var t=this.i18nKeys,n=this.find(".xg-tips");e?(this.setAttr("data-state","pause"),n&&this.changeLangTextKey(n,t.PLAY_TIPS)):(this.setAttr("data-state","play"),n&&this.changeLangTextKey(n,t.PAUSE_TIPS))}}},{key:"destroy",value:function(){(0,r.Jt)((0,r.U6)(n.prototype),"destroy",this).call(this),this.unbind(["touchend","click"],this.btnClick)}},{key:"render",value:function(){if(!this.config.disable)return'<xg-icon class="xgplayer-play">\n    <div class="xgplayer-icon">\n    </div>\n    '.concat(X(this,"PLAY_TIPS",this.playerConfig.isHideTips),"\n    </xg-icon>")}}],[{key:"pluginName",get:function(){return"play"}},{key:"defaultConfig",get:function(){return{position:M.lP.CONTROLS_LEFT,index:0,disable:!1}}}]),n}(J),ue=(n(92357),[{tag:"xg-cache",className:"xgplayer-progress-cache",styleKey:"cachedColor"},{tag:"xg-played",className:"xgplayer-progress-played",styleKey:"playedColor"}]),de=function(){function e(t){(0,r.xs)(this,e),this.fragments=t.fragments||[],0===this.fragments.length&&this.fragments.push({percent:1}),this._callBack=t.actionCallback,this.fragConfig={fragFocusClass:t.fragFocusClass||"inner-focus-point",fragAutoFocus:!!t.fragAutoFocus,fragClass:t.fragClass||""},this.style=t.style||{playedColor:"",cachedColor:"",progressColor:""},this.duration=0,this.cachedIndex=0,this.playedIndex=0,this.focusIndex=-1}return(0,r.j6)(e,[{key:"updateDuration",value:function(e){var t=this;this.duration=e;var n=0,r=this.fragments;this.fragments=r.map(function(e){return e.start=parseInt(n,10),e.end=parseInt(n+e.percent*t.duration,10),e.duration=parseInt(e.percent*t.duration,10),n+=e.percent*t.duration,e})}},{key:"updateProgress",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"played",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{newIndex:0,curIndex:0,millisecond:0},n=this.progressList,r=this.fragments;if(!(n.length<1)){var i=t.newIndex,o=t.curIndex,a=t.millisecond;i!==o&&n.map(function(t,n){n<i?t[e].style.width="100%":n>i&&(t[e].style.width=0)});var s=r[i],l=0===a?0:(a-s.start)/s.duration;n[i][e].style.width=l<0?0:"".concat(100*l,"%")}}},{key:"updateFocus",value:function(e){if(this.fragConfig.fragAutoFocus&&!(this.fragments.length<2))if(e){var t=this.findIndex(1e3*e.currentTime,this.focusIndex);if(t>=0&&t!==this.focusIndex){this.focusIndex>-1&&this.unHightLight(this.focusIndex),this.setHightLight(t);var n={index:t,preIndex:this.focusIndex,fragment:this.fragments[this.focusIndex]};this.focusIndex=t,this._callBack&&this._callBack(n)}}else if(this.focusIndex>-1){this.unHightLight(this.focusIndex);var r={index:-1,preIndex:this.focusIndex,fragment:null};this._callBack&&this._callBack(r),this.focusIndex=-1}}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{cached:0,played:0},t=arguments.length>1?arguments[1]:void 0;if(!this.duration||parseInt(1e3*t,10)!==this.duration){if(!t&&0!==t)return;this.updateDuration(parseInt(1e3*t,10))}var n=this.playedIndex,r=this.cachedIndex;if("Undefined"!==h.Ay.typeOf(e.played)){var i=this.findIndex(1e3*e.played,n);if(i<0)return;this.updateProgress("played",{newIndex:i,curIndex:n,millisecond:parseInt(1e3*e.played,10)}),this.playedIndex=i}if("Undefined"!==h.Ay.typeOf(e.cached)){var o=this.findIndex(1e3*e.cached,r);if(o<0)return;this.updateProgress("cached",{newIndex:o,curIndex:r,millisecond:parseInt(1e3*e.cached,10)}),this.cachedIndex=o}}},{key:"findIndex",value:function(e,t){var n=this.fragments;if(!n||0===n.length)return-1;if(1===n.length)return 0;if(t>-1&&t<n.length&&e>n[t].start&&e<n[t].end)return t;if(e>n[n.length-1].start)return n.length-1;for(var r=0;r<n.length;r++)if(e>n[r].start&&e<=n[r].end){t=r;break}return t}},{key:"findHightLight",value:function(){for(var e=this.root.children,t=0;t<e.length;t++)if(h.Ay.hasClass(e[t],this.fragConfig.fragFocusClass))return{dom:e[t],pos:e[t].getBoundingClientRect()}}},{key:"findFragment",value:function(e){var t=this.root.children;return e<0||e>=t.length?null:{dom:t[e],pos:t[e].getBoundingClientRect()}}},{key:"unHightLight",value:function(){for(var e=this.root.children,t=0;t<e.length;t++)h.Ay.removeClass(e[t],this.fragConfig.fragFocusClass)}},{key:"setHightLight",value:function(e){var t=this.root.children;if(e<t.length)return h.Ay.addClass(t[e],this.fragConfig.fragFocusClass),{dom:t[e],pos:t[e].getBoundingClientRect()}}},{key:"destroy",value:function(){this.progressList=null,this.fragments=null,this.root.innerHTML=""}},{key:"reset",value:function(e){var t=this;if(Object.keys(this.fragConfig).forEach(function(n){void 0!==e[n]&&(t.fragConfig[n]=e[n])}),e.fragments){if(this.fragments=0===e.fragments.length?[{percent:1}]:e.fragments,this.updateDuration(this.duration),this.playedIndex=0,this.cachedIndex=0,this.root){var n=this.root.children;while(n.length>0)this.root.removeChild(n[0])}this.render()}}},{key:"render",value:function(){var e=this,t=this.style.progressColor;if(this.root||(this.root=h.Ay.createDom("xg-inners","",{},"progress-list")),this.fragments){var n=this.fragConfig,r=n.fragClass,i=n.fragFocusClass;this.progressList=this.fragments.map(function(n){var o=h.Ay.createDom("xg-inner","",{style:t?"background:".concat(t,"; flex: ").concat(n.percent):"flex: ".concat(n.percent)},"".concat(n.isFocus?i:""," xgplayer-progress-inner ").concat(r));return e.root.appendChild(o),ue.forEach(function(t){o.appendChild(h.Ay.createDom(t.tag,"",{style:t.styleKey?"background: ".concat(e.style[t.styleKey],"; width:0;"):"width:0;"},t.className))}),{cached:o.children[0],played:o.children[1]}})}return this.root}}]),e}(),he={POINT:"inner-focus-point",HIGHLIGHT:"inner-focus-highlight"},fe=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(e){var i;return(0,r.xs)(this,n),i=t.call(this,e),(0,r.n8)((0,r.V5)(i),"onMoveOnly",function(e,t){var n=(0,r.V5)(i),o=n.pos,a=n.config,s=n.player,l=t;if(e){h.Ay.event(e);var c=h.Ay.getEventPos(e,s.zoom),u=90===s.rotateDeg?c.clientY:c.clientX;if(o.moving&&Math.abs(o.x-u)<a.miniMoveStep)return;o.moving=!0,o.x=u,l=i.computeTime(e,u)}i.triggerCallbacks("dragmove",l,e),i._updateInnerFocus(l)}),(0,r.n8)((0,r.V5)(i),"onBodyClick",function(e){i.pos.isLocked&&(i.pos.isLocked=!1,e.preventDefault(),e.stopPropagation())}),(0,r.n8)((0,r.V5)(i),"_mouseDownHandler",function(e,t){i._state.time=t.currentTime,i.updateWidth(t.currentTime,t.seekTime,t.percent,0),i._updateInnerFocus(t)}),(0,r.n8)((0,r.V5)(i),"_mouseUpHandler",function(e,t){var n=(0,r.V5)(i),o=n.pos;o.moving&&i.updateWidth(t.currentTime,t.seekTime,t.percent,2)}),(0,r.n8)((0,r.V5)(i),"_mouseMoveHandler",function(e,t){var n=(0,r.V5)(i),o=n._state,a=n.pos,s=n.config,l=n.player;o.time<t.currentTime?t.forward=!0:t.forward=!1,o.time=t.currentTime,a.isDown&&!a.moving&&(a.moving=!0,s.isPauseMoving&&l.pause(),i.triggerCallbacks("dragstart",t,e),i.emitUserAction("drag","dragstart",t)),i.updateWidth(t.currentTime,t.seekTime,t.percent,1),i.triggerCallbacks("dragmove",t,e),i._updateInnerFocus(t)}),(0,r.n8)((0,r.V5)(i),"onMouseDown",function(e){var t=(0,r.V5)(i),n=t._state,o=t.player,a=t.pos,s=t.config,l=t.playerConfig,c=h.Ay.getEventPos(e,o.zoom),u=90===o.rotateDeg?c.clientY:c.clientX;if(!(o.isMini||s.closeMoveSeek||!l.allowSeekAfterEnded&&o.ended)){if(o.duration||o.isPlaying){e.stopPropagation(),i.focus(),h.Ay.checkIsFunction(l.disableSwipeHandler)&&l.disableSwipeHandler(),h.Ay.checkIsFunction(s.onMoveStart)&&s.onMoveStart(),h.Ay.event(e),a.x=u,a.isDown=!0,a.moving=!1,n.prePlayTime=o.currentTime,o.focus({autoHide:!1}),i.isProgressMoving=!0,h.Ay.addClass(i.progressBtn,"active");var d=i.computeTime(e,u);d.prePlayTime=n.prePlayTime,i._mouseDownHandlerHook(e,d);var f=e.type;return"touchstart"===f?(i.root.addEventListener("touchmove",i.onMouseMove),i.root.addEventListener("touchend",i.onMouseUp),i.root.addEventListener("touchcancel",i.onMouseUp)):(i.unbind("mousemove",i.onMoveOnly),document.addEventListener("mousemove",i.onMouseMove,!1),document.addEventListener("mouseup",i.onMouseUp,!1)),!0}o.play()}}),(0,r.n8)((0,r.V5)(i),"onMouseUp",function(e){var t=(0,r.V5)(i),n=t.player,o=t.config,a=t.pos,s=t.playerConfig,l=t._state;if(a){e.stopPropagation(),e.preventDefault(),h.Ay.checkIsFunction(s.enableSwipeHandler)&&s.enableSwipeHandler(),h.Ay.checkIsFunction(o.onMoveEnd)&&o.onMoveEnd(),h.Ay.event(e),h.Ay.removeClass(i.progressBtn,"active");var c=i.computeTime(e,a.x);c.prePlayTime=l.prePlayTime,a.moving?(i.triggerCallbacks("dragend",c,e),i.emitUserAction("drag","dragend",c)):(i.triggerCallbacks("click",c,e),i.emitUserAction("click","click",c)),i._mouseUpHandlerHook(e,c),a.moving=!1,a.isDown=!1,a.x=0,a.y=0,a.isLocked=!0,l.prePlayTime=0,l.time=0;var u=e.type;"touchend"===u||"touchcancel"===u?(i.root.removeEventListener("touchmove",i.onMouseMove),i.root.removeEventListener("touchend",i.onMouseUp),i.root.removeEventListener("touchcancel",i.onMouseUp),i.blur()):(document.removeEventListener("mousemove",i.onMouseMove,!1),document.removeEventListener("mouseup",i.onMouseUp,!1),a.isEnter?"mobile"!==s.isMobileSimulateMode&&i.bind("mousemove",i.onMoveOnly):i.onMouseLeave(e)),h.Ay.setTimeout((0,r.V5)(i),function(){i.resetSeekState()},1),n.focus()}}),(0,r.n8)((0,r.V5)(i),"onMouseMove",function(e){var t=(0,r.V5)(i),n=t._state,o=t.pos,a=t.player,s=t.config;h.Ay.checkTouchSupport()&&e.preventDefault(),h.Ay.event(e);var l=h.Ay.getEventPos(e,a.zoom),c=90===a.rotateDeg?l.clientY:l.clientX,u=Math.abs(o.x-c);if(!(o.moving&&u<s.miniMoveStep||!o.moving&&u<s.miniStartStep)){o.x=c;var d=i.computeTime(e,c);d.prePlayTime=n.prePlayTime,i._mouseMoveHandlerHook(e,d)}}),(0,r.n8)((0,r.V5)(i),"onMouseOut",function(e){i.triggerCallbacks("mouseout",null,e)}),(0,r.n8)((0,r.V5)(i),"onMouseOver",function(e){i.triggerCallbacks("mouseover",null,e)}),(0,r.n8)((0,r.V5)(i),"onMouseEnter",function(e){var t=(0,r.V5)(i),n=t.player,o=t.pos;if(!(o.isDown||o.isEnter||n.isMini||!n.config.allowSeekAfterEnded&&n.ended)){o.isEnter=!0,i.bind("mousemove",i.onMoveOnly),i.bind("mouseleave",i.onMouseLeave),h.Ay.event(e);var a=h.Ay.getEventPos(e,n.zoom),s=90===n.rotateDeg?a.clientY:a.clientX,l=i.computeTime(e,s);i.triggerCallbacks("mouseenter",l,e),i.focus()}}),(0,r.n8)((0,r.V5)(i),"onMouseLeave",function(e){i.triggerCallbacks("mouseleave",null,e),i.unlock(),i._updateInnerFocus(null)}),(0,r.n8)((0,r.V5)(i),"onVideoResize",function(){var e=i.pos,t=e.x,n=e.isDown,r=e.isEnter;if(r&&!n){var o=i.computeTime(null,t);i.onMoveOnly(null,o)}}),i.useable=!1,i.isProgressMoving=!1,i.__dragCallBacks=[],i._state={now:-1,direc:0,time:0,prePlayTime:-1},i._disableBlur=!1,"boolean"===typeof i.config.isDragingSeek&&(console.warn("[XGPLAYER] 'isDragingSeek' is deprecated, please use 'isDraggingSeek' instead"),i.config.isDraggingSeek=i.config.isDragingSeek),i}return(0,r.j6)(n,[{key:"offsetDuration",get:function(){return this.playerConfig.customDuration||this.player.offsetDuration||this.player.duration}},{key:"duration",get:function(){return this.playerConfig.customDuration||this.player.duration}},{key:"timeOffset",get:function(){return this.playerConfig.timeOffset||0}},{key:"currentTime",get:function(){var e=this.player,t=e.offsetCurrentTime,n=e.currentTime;return t>=0?t:n+this.timeOffset}},{key:"changeState",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.useable=e}},{key:"show",value:function(e){this.root&&(this.root.style.display="flex")}},{key:"_initInner",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t&&0!==t.length||(t=[{percent:1}]);var i=(0,r.T1)((0,r.T1)({fragments:t},n),{},{actionCallback:function(t){e.emitUserAction("fragment_focus","fragment_focus",t)}});this.innerList?this.innerList.reset(i):(this.innerList=new de(i),this.outer.insertBefore(this.innerList.render(),this.outer.children[0]),["findHightLight","unHightLight","setHightLight","findFragment"].map(function(t){e[t]=e.innerList[t].bind(e.innerList)}))}},{key:"_updateInnerFocus",value:function(e){this.innerList&&this.innerList.updateFocus(e)}},{key:"afterCreate",value:function(){if(!this.config.disable&&!this.playerConfig.isLive){this.pos={x:0,y:0,moving:!1,isDown:!1,isEnter:!1,isLocked:!1},this.outer=this.find("xg-outer");var e=this.config,t=e.fragFocusClass,n=e.fragAutoFocus,r=e.fragClass;this._initInner(this.config.fragments,{fragFocusClass:t,fragAutoFocus:n,fragClass:r,style:this.playerConfig.commonStyle||{}}),"mobile"===w.A.device&&(this.config.isDraggingSeek=!1,this.isMobile=!0),this.progressBtn=this.find(".xgplayer-progress-btn"),this.listenEvents(),this.bindDomEvents(),this.initCustomStyle()}}},{key:"listenEvents",value:function(){var e=this;this.on(o.DURATION_CHANGE,function(){e.onMouseLeave()}),this.on(o.TIME_UPDATE,function(){e.onTimeupdate()}),this.on(o.SEEKED,function(){e.onTimeupdate(),e.onCacheUpdate()}),this.on(o.PROGRESS,function(){e.onCacheUpdate()}),this.on(o.ENDED,function(){e.onCacheUpdate(!0),e.onTimeupdate(!0),e._state.now=0}),this.on(o.EMPTIED,function(){e.onReset()}),this.on(o.VIDEO_RESIZE,function(){e.onVideoResize()})}},{key:"setConfig",value:function(e){var t=this,n=null;Object.keys(e).forEach(function(r){t.config[r]=e[r],"fragments"===r&&(n=e[r])}),n&&this._initInner(n,e)}},{key:"initCustomStyle",value:function(){var e=this.playerConfig||{},t=e.commonStyle,n=t.sliderBtnStyle,i=this.progressBtn;n&&("string"===typeof n?i.style.boxShadow=n:"object"===(0,r.uk)(n)&&Object.keys(n).map(function(e){i.style[e]=n[e]}))}},{key:"triggerCallbacks",value:function(e,t,n){this.__dragCallBacks.length>0&&this.__dragCallBacks.map(function(r){if(r&&r.handler&&r.type===e)try{r.handler(t,n)}catch(i){console.error("[XGPLAYER][triggerCallbacks] ".concat(r," error"),i)}})}},{key:"addCallBack",value:function(e,t){t&&"function"===typeof t&&this.__dragCallBacks.push({type:e,handler:t})}},{key:"removeCallBack",value:function(e,t){var n=this.__dragCallBacks,r=-1;n.map(function(n,i){n&&n.type===e&&n.handler===t&&(r=i)}),r>-1&&n.splice(r,1)}},{key:"unlock",value:function(){var e=this.player,t=this.pos;t.isEnter=!1,t.isLocked=!1,e.isMini||(this.unbind("mousemove",this.onMoveOnly),t.isDown?this.unbind("mouseleave",this.onMouseLeave):this.blur())}},{key:"bindDomEvents",value:function(){var e=this.player.config;this._mouseDownHandlerHook=this.hook("dragstart",this._mouseDownHandler),this._mouseUpHandlerHook=this.hook("dragend",this._mouseUpHandler),this._mouseMoveHandlerHook=this.hook("drag",this._mouseMoveHandler),"touch"!==this.domEventType&&"compatible"!==this.domEventType||this.root.addEventListener("touchstart",this.onMouseDown),"mouse"!==this.domEventType&&"compatible"!==this.domEventType||(this.bind("mousedown",this.onMouseDown),"mobile"!==e.isMobileSimulateMode&&this.bind("mouseenter",this.onMouseEnter),this.bind("mouseover",this.onMouseOver),this.bind("mouseout",this.onMouseOut),this.player.root.addEventListener("click",this.onBodyClick,!0))}},{key:"focus",value:function(){this.player.controls.pauseAutoHide(),h.Ay.addClass(this.root,"active")}},{key:"blur",value:function(){this._disableBlur||(this.player.controls.recoverAutoHide(),h.Ay.removeClass(this.root,"active"))}},{key:"disableBlur",value:function(){this._disableBlur=!0}},{key:"enableBlur",value:function(){this._disableBlur=!1}},{key:"updateWidth",value:function(e,t,n,r){var i=this.config,o=this.player;if(!i.isCloseClickSeek||0!==r){var a=t=t>=o.duration?o.duration-i.endedDiff:Number(t).toFixed(1);this.updatePercent(n),this.updateTime(e),(1!==r||i.isDraggingSeek&&"audio"!==o.config.mediaType)&&(this._state.now=a,this._state.direc=a>o.currentTime?0:1,o.seek(a))}}},{key:"computeTime",value:function(e,t){var n,r,i=this.player,o=this.root.getBoundingClientRect(),a=o.width,s=o.height,l=o.top,c=o.left,u=t;90===i.rotateDeg?(n=s,r=l):(n=a,r=c);var d=u-r;d=d>n?n:d<0?0:d;var f=d/n;f=f<0?0:f>1?1:f,Number.isNaN(f)&&(f=this.player.currentTime/this.offsetDuration);var p=parseInt(f*this.offsetDuration*1e3,10)/1e3,g=h.Ay.getCurrentTimeByOffset(p,i.timeSegments);return{percent:f,currentTime:p,seekTime:g,offset:d,width:n,left:r,e:e}}},{key:"updateTime",value:function(e){var t=this.player,n=this.duration;e>n?e=n:e<0&&(e=0);var r=t.plugins.time;r&&r.updateTime(e)}},{key:"resetSeekState",value:function(){this.isProgressMoving=!1;var e=this.player.plugins.time;e&&e.resetActive()}},{key:"updatePercent",value:function(e,t){if(this.isProgressMoving=!0,!this.config.disable){e=e>1?1:e<0?0:e,this.progressBtn.style.left="".concat(100*e,"%"),this.innerList.update({played:e*this.offsetDuration},this.offsetDuration);var n=this.player.plugins.miniprogress;n&&n.update({played:e*this.offsetDuration},this.offsetDuration)}}},{key:"onTimeupdate",value:function(e){var t=this.player,n=this._state,r=this.offsetDuration;if(!(t.isSeeking&&t.media.seeking||this.isProgressMoving)&&t.hasStart){if(n.now>-1){var i=parseInt(1e3*n.now,10)-parseInt(1e3*t.currentTime,10);if(0===n.direc&&i>300||1===n.direc&&i>-300)return void(n.now=-1);n.now=-1}var o=this.currentTime;o=h.Ay.adjustTimeByDuration(o,r,e),this.innerList.update({played:o},r),this.progressBtn.style.left="".concat(o/r*100,"%")}}},{key:"onCacheUpdate",value:function(e){var t=this.player,n=this.duration;if(t){var r=t.bufferedPoint.end;r=h.Ay.adjustTimeByDuration(r,n,e),this.innerList.update({cached:r},n)}}},{key:"onReset",value:function(){this.innerList.update({played:0,cached:0},0),this.progressBtn.style.left="0%"}},{key:"destroy",value:function(){var e=this.player;this.thumbnailPlugin=null,this.innerList.destroy(),this.innerList=null;var t=this.domEventType;"touch"!==t&&"compatible"!==t||(this.root.removeEventListener("touchstart",this.onMouseDown),this.root.removeEventListener("touchmove",this.onMouseMove),this.root.removeEventListener("touchend",this.onMouseUp),this.root.removeEventListener("touchcancel",this.onMouseUp)),"mouse"!==t&&"compatible"!==t||(this.unbind("mousedown",this.onMouseDown),this.unbind("mouseenter",this.onMouseEnter),this.unbind("mousemove",this.onMoveOnly),this.unbind("mouseleave",this.onMouseLeave),document.removeEventListener("mousemove",this.onMouseMove,!1),document.removeEventListener("mouseup",this.onMouseUp,!1),e.root.removeEventListener("click",this.onBodyClick,!0))}},{key:"render",value:function(){if(!this.config.disable&&!this.playerConfig.isLive){var e=this.player.controls?this.player.controls.config.mode:"",t="bottom"===e?"xgplayer-progress-bottom":"";return'\n    <xg-progress class="xgplayer-progress '.concat(t,'">\n      <xg-outer class="xgplayer-progress-outer">\n        <xg-progress-btn class="xgplayer-progress-btn"></xg-progress-btn>\n      </xg-outer>\n    </xg-progress>\n    ')}}}],[{key:"pluginName",get:function(){return"progress"}},{key:"defaultConfig",get:function(){return{position:M.lP.CONTROLS_CENTER,index:0,disable:!1,isDraggingSeek:!0,closeMoveSeek:!1,isPauseMoving:!1,isCloseClickSeek:!1,fragments:[{percent:1}],fragFocusClass:he.POINT,fragClass:"",fragAutoFocus:!1,miniMoveStep:5,miniStartStep:2,onMoveStart:function(){},onMoveEnd:function(){},endedDiff:.2}}},{key:"FRAGMENT_FOCUS_CLASS",get:function(){return he}}]),n}(M.Ay),pe=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(e){var i;return(0,r.xs)(this,n),i=t.call(this,e),i.isActiving=!1,i}return(0,r.j6)(n,[{key:"duration",get:function(){var e=this.player,t=e.offsetDuration,n=e.duration;return this.playerConfig.customDuration||t||n}},{key:"currentTime",get:function(){var e=this.player,t=e.offsetCurrentTime,n=e.currentTime;return t>=0?t:n}},{key:"timeOffset",get:function(){return this.playerConfig.timeOffset||0}},{key:"afterCreate",value:function(){var e=this.player.controls.config.mode;this.mode="flex"===e?"flex":"normal",this.config.disable||("flex"===this.mode&&(this.createCenterTime(),this.root.style.display="none"),this.durationDom=this.find(".time-duration"),this.timeDom=this.find(".time-current"),this.listenEvents())}},{key:"listenEvents",value:function(){var e=this;this.on([o.DURATION_CHANGE,o.SEEKED,o.TIME_UPDATE],function(t){"durationchange"===t.eventName&&(e.isActiving=!1),e.onTimeUpdate()}),this.on(o.ENDED,function(){e.onTimeUpdate(!0)}),this.on(o.EMPTIED,function(){e.onReset()})}},{key:"show",value:function(e){if("flex"===this.mode)return this.centerCurDom&&(this.centerCurDom.style.display="block"),void(this.centerDurDom&&(this.centerDurDom.style.display="block"));this.root.style.display="block"}},{key:"hide",value:function(){if("flex"===this.mode)return this.centerCurDom&&(this.centerCurDom.style.display="none"),void(this.centerDurDom&&(this.centerDurDom.style.display="none"));this.root.style.display="none"}},{key:"onTimeUpdate",value:function(e){var t=this.player,n=this.config,r=this.duration;if(!n.disable&&!this.isActiving&&t.hasStart){var i=this.currentTime+this.timeOffset;i=h.Ay.adjustTimeByDuration(i,r,e),"flex"===this.mode?(this.centerCurDom.innerHTML=this.minWidthTime(h.Ay.format(i)),r!==1/0&&r>0&&(this.centerDurDom.innerHTML=h.Ay.format(r))):(this.timeDom.innerHTML=this.minWidthTime(h.Ay.format(i)),r!==1/0&&r>0&&(this.durationDom.innerHTML=h.Ay.format(r)))}}},{key:"onReset",value:function(){"flex"===this.mode?(this.centerCurDom.innerHTML=this.minWidthTime(h.Ay.format(0)),this.centerDurDom.innerHTML=h.Ay.format(0)):(this.timeDom.innerHTML=this.minWidthTime(h.Ay.format(0)),this.durationDom.innerHTML=h.Ay.format(0))}},{key:"createCenterTime",value:function(){var e=this.player;if(e.controls&&e.controls.center){var t=e.controls.center;this.centerCurDom=h.Ay.createDom("xg-icon","00:00",{},"xgplayer-time xg-time-left"),this.centerDurDom=h.Ay.createDom("xg-icon","00:00",{},"xgplayer-time xg-time-right"),t.children.length>0?t.insertBefore(this.centerCurDom,t.children[0]):t.appendChild(this.centerCurDom),t.appendChild(this.centerDurDom),this.extraEls=[this.centerCurDom,this.centerDurDom]}}},{key:"afterPlayerInit",value:function(){var e=this.config;this.duration===1/0||this.playerConfig.isLive?(h.Ay.hide(this.durationDom),h.Ay.hide(this.timeDom),h.Ay.hide(this.find(".time-separator")),h.Ay.show(this.find(".time-live-tag"))):h.Ay.hide(this.find(".time-live-tag")),e.hide?this.hide():this.show()}},{key:"changeLiveState",value:function(e){e?(h.Ay.hide(this.durationDom),h.Ay.hide(this.timeDom),h.Ay.hide(this.find(".time-separator")),h.Ay.show(this.find(".time-live-tag"))):(h.Ay.hide(this.find(".time-live-tag")),h.Ay.show(this.find(".time-separator")),h.Ay.show(this.durationDom),h.Ay.show(this.timeDom))}},{key:"updateTime",value:function(e){this.isActiving=!0,!e&&0!==e||e>this.duration||("flex"!==this.mode?this.timeDom.innerHTML=this.minWidthTime(h.Ay.format(e)):this.centerCurDom.innerHTML=this.minWidthTime(h.Ay.format(e)))}},{key:"minWidthTime",value:function(e){return e.split(":").map(function(e){return'<span class="time-min-width">'.concat(e,"</span>")}).join(":")}},{key:"resetActive",value:function(){var e=this,t=this.player,n=function(){e.isActiving=!1};this.off(o.SEEKED,n),t.isSeeking&&t.media.seeking?this.once(o.SEEKED,n):this.isActiving=!1}},{key:"destroy",value:function(){var e=this.player.controls.center;this.centerCurDom&&e.removeChild(this.centerCurDom),this.centerCurDom=null,this.centerDurDom&&e.removeChild(this.centerDurDom),this.centerDurDom=null}},{key:"render",value:function(){if(!this.config.disable)return'<xg-icon class="xgplayer-time">\n    <span class="time-current">00:00</span>\n    <span class="time-separator">/</span>\n    <span class="time-duration">00:00</span>\n    <span class="time-live-tag">'.concat(this.i18n.LIVE_TIP,"</span>\n    </xg-icon>")}}],[{key:"pluginName",get:function(){return"time"}},{key:"defaultConfig",get:function(){return{position:M.lP.CONTROLS_LEFT,index:2,disable:!1}}}]),n}(M.Ay);function ge(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">\n  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>\n  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M940.632 837.632l-72.192-72.192c65.114-64.745 105.412-154.386 105.412-253.44s-40.299-188.695-105.396-253.424l-0.016-0.016 72.192-72.192c83.639 83.197 135.401 198.37 135.401 325.632s-51.762 242.434-135.381 325.612l-0.020 0.020zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>\n</svg>\n',"image/svg+xml").firstChild}function me(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">\n  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>\n  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>\n</svg>\n',"image/svg+xml").firstChild}function ve(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">\n  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>\n  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M920.4 439.808l-108.544-109.056-72.704 72.704 109.568 108.544-109.056 108.544 72.704 72.704 108.032-109.568 108.544 109.056 72.704-72.704-109.568-108.032 109.056-108.544-72.704-72.704-108.032 109.568z"></path>\n</svg>\n',"image/svg+xml").firstChild}var Ae=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){var e;(0,r.xs)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,r.n8)((0,r.V5)(e),"onBarMousedown",function(t){var n=(0,r.V5)(e),i=n.player,o=e.find(".xgplayer-bar");h.Ay.event(t);var a=o.getBoundingClientRect(),s=h.Ay.getEventPos(t,i.zoom),l=a.height-(s.clientY-a.top);if(s.h=l,s.barH=a.height,e.pos=s,!(l<-2))return e.updateVolumePos(l,t),document.addEventListener("mouseup",e.onBarMouseUp),e._d.isStart=!0,!1}),(0,r.n8)((0,r.V5)(e),"onBarMouseMove",function(t){var n=(0,r.V5)(e),i=n._d;if(i.isStart){var o=(0,r.V5)(e),a=o.pos,s=o.player;t.preventDefault(),t.stopPropagation(),h.Ay.event(t);var l=h.Ay.getEventPos(t,s.zoom);i.isMoving=!0;var c=a.h-l.clientY+a.clientY;c>a.barH||e.updateVolumePos(c,t)}}),(0,r.n8)((0,r.V5)(e),"onBarMouseUp",function(t){h.Ay.event(t),document.removeEventListener("mouseup",e.onBarMouseUp);var n=(0,r.V5)(e),i=n._d;i.isStart=!1,i.isMoving=!1}),(0,r.n8)((0,r.V5)(e),"onMouseenter",function(t){e._d.isActive=!0,e.focus(),e.emit("icon_mouseenter",{pluginName:e.pluginName})}),(0,r.n8)((0,r.V5)(e),"onMouseleave",function(t){e._d.isActive=!1,e.unFocus(100,!1,t),e.emit("icon_mouseleave",{pluginName:e.pluginName})}),(0,r.n8)((0,r.V5)(e),"onVolumeChange",function(t){if(e.player){var n=e.player,r=n.muted,i=n.volume;e._d.isMoving||(e.find(".xgplayer-drag").style.height=r||0===i?"4px":"".concat(100*i,"%"),e.config.showValueLabel&&e.updateVolumeValue()),e.animate(r,i)}}),e}return(0,r.j6)(n,[{key:"registerIcons",value:function(){return{volumeSmall:{icon:me,class:"xg-volume-small"},volumeLarge:{icon:ge,class:"xg-volume"},volumeMuted:{icon:ve,class:"xg-volume-mute"}}}},{key:"afterCreate",value:function(){var e=this;if(this._timerId=null,this._d={isStart:!1,isMoving:!1,isActive:!1},!this.config.disable){this.initIcons();var t=this.playerConfig,n=t.commonStyle,r=t.volume;n.volumeColor&&(this.find(".xgplayer-drag").style.backgroundColor=n.volumeColor),this.changeMutedHandler=this.hook("mutedChange",function(t){e.changeMuted(t)},{pre:function(e){e.preventDefault(),e.stopPropagation()}}),this._onMouseenterHandler=this.hook("mouseenter",this.onMouseenter),this._onMouseleaveHandler=this.hook("mouseleave",this.onMouseleave),"mobile"!==w.A.device&&"mobile"!==this.playerConfig.isMobileSimulateMode&&(this.bind("mouseenter",this._onMouseenterHandler),this.bind(["blur","mouseleave"],this._onMouseleaveHandler),this.bind(".xgplayer-slider","mousedown",this.onBarMousedown),this.bind(".xgplayer-slider","mousemove",this.onBarMouseMove),this.bind(".xgplayer-slider","mouseup",this.onBarMouseUp)),this.bind(".xgplayer-icon",["touchend","click"],this.changeMutedHandler),this.on(o.VOLUME_CHANGE,this.onVolumeChange),this.once(o.LOADED_DATA,this.onVolumeChange),"Number"!==h.Ay.typeOf(r)&&(this.player.volume=this.config.default),this.onVolumeChange()}}},{key:"updateVolumePos",value:function(e,t){var n=this.player,r=this.find(".xgplayer-drag"),i=this.find(".xgplayer-bar");if(i&&r){var o=parseInt(e/i.getBoundingClientRect().height*1e3,10);r.style.height="".concat(e,"px");var a=Math.max(Math.min(o/1e3,1),0),s={volume:{from:n.volume,to:a}};n.muted&&(s.muted={from:!0,to:!1}),this.emitUserAction(t,"change_volume",{muted:n.muted,volume:n.volume,props:s}),n.volume=Math.max(Math.min(o/1e3,1),0),n.muted&&(n.muted=!1),this.config.showValueLabel&&this.updateVolumeValue()}}},{key:"updateVolumeValue",value:function(){var e=this.player,t=e.volume,n=e.muted,r=this.find(".xgplayer-value-label"),i=Math.max(Math.min(t,1),0);r.innerText=n?0:Math.round(100*i)}},{key:"focus",value:function(){var e=this.player;e.focus({autoHide:!1}),this._timerId&&(h.Ay.clearTimeout(this,this._timerId),this._timerId=null),h.Ay.addClass(this.root,"slide-show")}},{key:"unFocus",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0,i=this._d,o=this.player;i.isActive||(this._timerId&&(h.Ay.clearTimeout(this,this._timerId),this._timerId=null),this._timerId=h.Ay.setTimeout(this,function(){i.isActive||(n?o.blur():o.focus(),h.Ay.removeClass(e.root,"slide-show"),i.isStart&&e.onBarMouseUp(r)),e._timerId=null},t))}},{key:"changeMuted",value:function(e){e&&e.stopPropagation();var t=this.player,n=this._d;n.isStart&&this.onBarMouseUp(e),this.emitUserAction(e,"change_muted",{muted:t.muted,volume:t.volume,props:{muted:{from:t.muted,to:!t.muted}}}),t.volume>0&&(t.muted=!t.muted),t.volume<.01&&(t.volume=this.config.miniVolume)}},{key:"animate",value:function(e,t){e||0===t?this.setAttr("data-state","mute"):t<.5&&this.icons.volumeSmall?this.setAttr("data-state","small"):this.setAttr("data-state","normal")}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".xgplayer-icon",e.volumeSmall),this.appendChild(".xgplayer-icon",e.volumeLarge),this.appendChild(".xgplayer-icon",e.volumeMuted)}},{key:"destroy",value:function(){this._timerId&&(h.Ay.clearTimeout(this,this._timerId),this._timerId=null),this.unbind("mouseenter",this.onMouseenter),this.unbind(["blur","mouseleave"],this.onMouseleave),this.unbind(".xgplayer-slider","mousedown",this.onBarMousedown),this.unbind(".xgplayer-slider","mousemove",this.onBarMouseMove),this.unbind(".xgplayer-slider","mouseup",this.onBarMouseUp),document.removeEventListener("mouseup",this.onBarMouseUp),this.unbind(".xgplayer-icon","mobile"===w.A.device?"touchend":"click",this.changeMutedHandler)}},{key:"render",value:function(){if(!this.config.disable){var e=this.config.default||this.player.volume,t=this.config.showValueLabel;return'\n    <xg-icon class="xgplayer-volume" data-state="normal">\n      <div class="xgplayer-icon">\n      </div>\n      <xg-slider class="xgplayer-slider">\n        '.concat(t?'<div class="xgplayer-value-label">'.concat(100*e,"</div>"):"",'\n        <div class="xgplayer-bar">\n          <xg-drag class="xgplayer-drag" style="height: ').concat(100*e,'%"></xg-drag>\n        </div>\n      </xg-slider>\n    </xg-icon>')}}}],[{key:"pluginName",get:function(){return"volume"}},{key:"defaultConfig",get:function(){return{position:M.lP.CONTROLS_RIGHT,index:1,disable:!1,showValueLabel:!1,default:.6,miniVolume:.2}}}]),n}(M.Ay);function be(){return(new Date).getTime()}var ye={LOAD_START:"loadstart",LOADED_DATA:"loadeddata",FIRST_FRAME:"firstFrame",WAIT_START:"waitingStart",WAIT_END:"waitingEnd",SEEK_START:"seekStart",SEEK_END:"seekEnd"},we=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){var e;(0,r.xs)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,r.n8)((0,r.V5)(e),"_onTimeupdate",function(){e._state.isTimeUpdate=!0,e._state.autoplayStart&&(U.A.logInfo("[xgLogger]".concat(e.player.playerId," _onTimeupdate")),e._sendFF("onTimeupdate"))}),(0,r.n8)((0,r.V5)(e),"_onAutoplayStart",function(){U.A.logInfo("[xgLogger]".concat(e.player.playerId," _onAutoplayStart")),e._state.autoplayStart=!0,e.vt&&e._sendFF("onAutoplayStart")}),(0,r.n8)((0,r.V5)(e),"_onReset",function(){e._state={autoplayStart:!1,isFFLoading:!1,isTimeUpdate:!1,isFFSend:!1,isLs:!1},e.vt=0,e.pt=0,e.fvt=0,e.newPointTime=be(),e.loadedCostTime=0,e.startCostTime=0,e._isSeeking=!1,e.seekingStart=0,e.waitingStart=0,e.fixedWaitingStart=0,e._isWaiting=!1,e._waitTimer&&h.Ay.clearTimeout((0,r.V5)(e),e._waitTimer),e._waittTimer&&h.Ay.clearTimeout((0,r.V5)(e),e._waittTimer),e._waitTimer=null,e._waittTimer=null,e._waitType=0}),(0,r.n8)((0,r.V5)(e),"_onSeeking",function(){e.seekingStart||(e.suspendWaitingStatus("seek"),e.seekingStart=be(),e.emitLog(ye.SEEK_START,{start:be()}))}),(0,r.n8)((0,r.V5)(e),"_onSeeked",function(){e.suspendSeekingStatus("seeked")}),(0,r.n8)((0,r.V5)(e),"_onWaitingLoadStart",function(){e._isWaiting||e.vt||(e._isWaiting=!0,e.waitingStart=be(),e.fixedWaitingStart=be(),e._waitType=1,e.emitLog(ye.WAIT_START,{fixedStart:e.fixedWaitingStart,start:e.waitingStart,type:1,endType:"loadstart"}))}),(0,r.n8)((0,r.V5)(e),"_onWaiting",function(){!e._isWaiting&&e.vt&&(e._isWaiting=!0,e.vt?e.seekingStart?e._waitType=2:e._waitType=0:e._waitType=1,e.fixedWaitingStart=be(),e._waitTimer=h.Ay.setTimeout((0,r.V5)(e),function(){e._isWaiting&&(e.waitingStart=be(),h.Ay.clearTimeout((0,r.V5)(e),e._waitTimer),e._waitTimer=null,e._startWaitTimeout(),e.emitLog(ye.WAIT_START,{fixedStart:e.fixedWaitingStart,start:e.waitingStart,type:e._waitType,endType:2===e._waitType?"seek":"playing"}))},200))}),(0,r.n8)((0,r.V5)(e),"_onError",function(){e.suspendSeekingStatus("error"),e.suspendWaitingStatus("error")}),(0,r.n8)((0,r.V5)(e),"_onPlaying",function(){e._isWaiting&&e.suspendWaitingStatus("playing")}),e}return(0,r.j6)(n,[{key:"afterCreate",value:function(){var e=this;this._onReset(),this._waitType="firstFrame",this._initOnceEvents(),this.newPointTime=be(),this.loadedCostTime=0,this.startCostTime=0,this.on(o.LOAD_START,function(){var t=e._state,n=t.autoplayStart,r=t.isFFSend;e.startCostTime=be()-e.newPointTime,U.A.logInfo("[xgLogger]".concat(e.player.playerId," LOAD_START"),"autoplayStart:".concat(n," isFFSend:").concat(r," startCostTime:").concat(e.startCostTime," newPointTime").concat(e.newPointTime)),r||(!t.isLs&&e.emitLog(ye.LOAD_START,{}),t.isLs=!0,t.isTimeUpdate=!1,t.isFFLoading=!0,e.pt=be(),e.vt=0,e.fvt=0,e._initOnceEvents(),e._onWaitingLoadStart())}),this.on(o.LOADED_DATA,function(){e.vt=be(),e.fvt=e.vt-e.pt,e.loadedCostTime=e.vt-e.newPointTime;var t=e._state,n=t.isTimeUpdate,r=t.isFFSend,i=t.autoplayStart;U.A.logInfo("[xgLogger]".concat(e.player.playerId," LOADED_DATA"),"fvt:".concat(e.fvt," isTimeUpdate:").concat(e._state.isTimeUpdate," loadedCostTime:").concat(e.loadedCostTime)),(n||i)&&e._sendFF("loadedData"),r||e.emitLog(ye.LOADED_DATA,{}),e.suspendWaitingStatus("loadeddata")}),this.on(o.SEEKING,this._onSeeking),this.on(o.SEEKED,this._onSeeked),this.on(o.DESTROY,function(){e.endState("destroy")}),this.on(o.URL_CHANGE,function(){e.endState("urlChange"),U.A.logInfo("[xgLogger]".concat(e.player.playerId," URL_CHANGE")),e._state.isFFSend&&e._onReset()}),this.on([o.PLAYING,o.CANPLAY],this._onPlaying),this.on(o.WAITING,this._onWaiting),this.on(o.ERROR,this._onError),this.on(o.RESET,function(){U.A.logInfo("[xgLogger]".concat(e.player.playerId," RESET")),e.endState("reset"),e._initOnceEvents(),e._onReset()})}},{key:"_initOnceEvents",value:function(){this.off(o.AUTOPLAY_STARTED,this._onAutoplayStart),this.off(o.TIME_UPDATE,this._onTimeupdate),this.once(o.AUTOPLAY_STARTED,this._onAutoplayStart),this.once(o.TIME_UPDATE,this._onTimeupdate)}},{key:"_sendFF",value:function(e){this.s=be();var t=this._state,n=t.isFFLoading,r=t.isFFSend;U.A.logInfo("[xgLogger]".concat(this.player.playerId," _sendFF"),"".concat(e," fvt:").concat(this.fvt," isFFLoading:").concat(n," !isFFSend:").concat(!r)),this.vt>0&&n&&!r&&(U.A.logInfo("[xgLogger]".concat(this.player.playerId," emitLog_firstFrame"),e),this._state.isFFLoading=!1,this._state.isFFSend=!0,this.emitLog(ye.FIRST_FRAME,{fvt:this.fvt,costTime:this.fvt,vt:this.vt,startCostTime:this.startCostTime,loadedCostTime:this.loadedCostTime}))}},{key:"_startWaitTimeout",value:function(){var e=this;this._waittTimer&&h.Ay.clearTimeout(this,this._waittTimer),this._waittTimer=h.Ay.setTimeout(this,function(){e.suspendWaitingStatus("timeout"),h.Ay.clearTimeout(e,e._waittTimer),e._waittTimer=null},this.config.waitTimeout)}},{key:"endState",value:function(e){this.suspendWaitingStatus(e),this.suspendSeekingStatus(e)}},{key:"suspendSeekingStatus",value:function(e){if(this.seekingStart){var t=be(),n=t-this.seekingStart;this.seekingStart=0,this.emitLog(ye.SEEK_END,{end:t,costTime:n,endType:e})}}},{key:"suspendWaitingStatus",value:function(e){if(this._waitTimer&&(h.Ay.clearTimeout(this,this._waitTimer),this._waitTimer=null),this._waittTimer&&(h.Ay.clearTimeout(this,this._waittTimer),this._waittTimer=null),this._isWaiting=!1,this.waitingStart){var t=be(),n=t-this.waitingStart,r=t-this.fixedWaitingStart,i=this.config.waitTimeout;this._isWaiting=!1,this.waitingStart=0,this.fixedWaitingStart=0,this.emitLog(ye.WAIT_END,{fixedCostTime:r>i?i:r,costTime:n>i?i:n,type:"loadeddata"===e?1:this._waitType,endType:2===this._waitType?"seek":e})}}},{key:"emitLog",value:function(e,t){var n=this.player;this.emit(o.XGLOG,(0,r.T1)({t:be(),host:h.Ay.getHostFromUrl(n.currentSrc),vtype:n.vtype,eventType:e,currentTime:this.player.currentTime,readyState:n.video.readyState,networkState:n.video.networkState},t))}}],[{key:"pluginName",get:function(){return"xgLogger"}},{key:"defaultConfig",get:function(){return{waitTimeout:1e4}}}]),n}(M.Ay);function _e(){return(new DOMParser).parseFromString('<svg class="xgplayer-replay-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 78 78" width="78" height="78">\n  <path fill="#fff" transform="translate(20, 20)" d="M8.22708362,13.8757234 L11.2677371,12.6472196 C11.7798067,12.4403301 12.3626381,12.6877273 12.5695276,13.1997969 L12.9441342,14.1269807 C13.1510237,14.6390502 12.9036264,15.2218816 12.3915569,15.4287712 L6.8284538,17.6764107 L5.90126995,18.0510173 C5.38920044,18.2579068 4.80636901,18.0105096 4.5994795,17.49844 L1.97723335,11.0081531 C1.77034384,10.4960836 2.0177411,9.91325213 2.52981061,9.70636262 L3.45699446,9.33175602 C3.96906396,9.12486652 4.5518954,9.37226378 4.75878491,9.88433329 L5.67885163,12.1615783 C7.99551726,6.6766934 13.3983951,3 19.5,3 C27.7842712,3 34.5,9.71572875 34.5,18 C34.5,26.2842712 27.7842712,33 19.5,33 C15.4573596,33 11.6658607,31.3912946 8.87004692,28.5831991 C8.28554571,27.9961303 8.28762719,27.0463851 8.87469603,26.4618839 C9.46176488,25.8773827 10.4115101,25.8794641 10.9960113,26.466533 C13.2344327,28.7147875 16.263503,30 19.5,30 C26.127417,30 31.5,24.627417 31.5,18 C31.5,11.372583 26.127417,6 19.5,6 C14.4183772,6 9.94214483,9.18783811 8.22708362,13.8757234 Z"></path>\n</svg>\n',"image/svg+xml").firstChild}var xe=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){return(0,r.xs)(this,n),t.apply(this,arguments)}return(0,r.j6)(n,[{key:"registerIcons",value:function(){return{replay:_e}}},{key:"afterCreate",value:function(){var e=this;M.Ay.insert(this.icons.replay,this.root,0),this.__handleReplay=this.hook("replayClick",function(){e.player.replay()},{pre:function(e){e.preventDefault(),e.stopPropagation()}}),this.bind(".xgplayer-replay",["click","touchend"],this.__handleReplay),this.on(o.ENDED,function(){if(e.playerConfig.loop||h.Ay.addClass(e.player.root,"replay"),!e.config.disable){e.show();var t=e.root.querySelector("path");if(t){var n=window.getComputedStyle(t).getPropertyValue("transform");if("string"===typeof n&&n.indexOf("none")>-1)return null;t.setAttribute("transform",n)}}}),this.on(o.PLAY,function(){e.hide()})}},{key:"handleReplay",value:function(e){e.preventDefault(),e.stopPropagation(),this.player.replay(),h.Ay.removeClass(this.player.root,"replay")}},{key:"show",value:function(e){this.config.disable||(this.root.style.display="flex")}},{key:"enable",value:function(){this.config.disable=!1}},{key:"disable",value:function(){this.config.disable=!0,this.hide()}},{key:"destroy",value:function(){this.unbind(".xgplayer-replay",["click","touchend"],this.__handleReplay)}},{key:"render",value:function(){return'<xg-replay class="xgplayer-replay">\n      <xg-replay-txt class="xgplayer-replay-txt" lang-key="'.concat(this.i18nKeys.REPLAY,'">').concat(this.i18n.REPLAY,"</xg-replay-txt>\n    </xg-replay>")}}],[{key:"pluginName",get:function(){return"replay"}},{key:"defaultConfig",get:function(){return{disable:!1}}}]),n}(M.Ay),Ee=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){return(0,r.xs)(this,n),t.apply(this,arguments)}return(0,r.j6)(n,[{key:"isEndedShow",get:function(){return this.config.isEndedShow},set:function(e){this.config.isEndedShow=e}},{key:"hide",value:function(){h.Ay.addClass(this.root,"hide")}},{key:"show",value:function(e){h.Ay.removeClass(this.root,"hide")}},{key:"beforeCreate",value:function(e){"string"===typeof e.player.config.poster&&(e.config.poster=e.player.config.poster)}},{key:"afterCreate",value:function(){var e=this;this.on(o.ENDED,function(){e.isEndedShow&&h.Ay.removeClass(e.root,"hide")}),this.config.hideCanplay?(this.once(o.TIME_UPDATE,function(){e.onTimeUpdate()}),this.on(o.URL_CHANGE,function(){h.Ay.removeClass(e.root,"hide"),h.Ay.addClass(e.root,"xg-showplay"),e.once(o.TIME_UPDATE,function(){e.onTimeUpdate()})})):this.on(o.PLAY,function(){h.Ay.addClass(e.root,"hide")})}},{key:"setConfig",value:function(e){var t=this;Object.keys(e).forEach(function(n){t.config[n]=e[n]});var n=this.config.poster;this.update(n)}},{key:"onTimeUpdate",value:function(){var e=this;this.player.currentTime?h.Ay.removeClass(this.root,"xg-showplay"):this.once(o.TIME_UPDATE,function(){e.onTimeUpdate()})}},{key:"update",value:function(e){e&&(this.config.poster=e,this.root.style.backgroundImage="url(".concat(e,")"))}},{key:"getBgSize",value:function(e){var t="";switch(e){case"cover":t="cover";break;case"contain":t="contain";break;case"fixHeight":t="auto 100%";break;default:t=""}return t?"background-size: ".concat(t,";"):""}},{key:"render",value:function(){var e=this.config,t=e.poster,n=e.hideCanplay,r=e.fillMode,i=e.notHidden,o=this.getBgSize(r),a=t?"background-image:url(".concat(t,");").concat(o):o,s=i?"xg-not-hidden":n?"xg-showplay":"";return'<xg-poster class="xgplayer-poster '.concat(s,'" style="').concat(a,'">\n    </xg-poster>')}}],[{key:"pluginName",get:function(){return"poster"}},{key:"defaultConfig",get:function(){return{isEndedShow:!0,hideCanplay:!1,notHidden:!1,poster:"",fillMode:"fixWidth"}}}]),n}(M.Ay),Se={};function Ce(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{start:null,end:null};return Se[e]&&window.clearTimeout(Se[e].id),Se[e]={},n.start&&n.start(),Se[e].id=window.setTimeout(function(){n.end&&n.end(),window.clearTimeout(Se[e].id),delete Se[e]},t),Se[e].id}function Te(e){e?window.clearTimeout(e):Object.keys(Se).map(function(e){window.clearTimeout(Se[e].id),delete Se[e]})}var ke=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(e){var i;return(0,r.xs)(this,n),i=t.call(this,e),(0,r.n8)((0,r.V5)(i),"onPlayerReset",function(){i.autoPlayStart=!1;var e="auto"===i.config.mode?"auto-hide":"hide";i.setAttr("data-state","play"),h.Ay.removeClass(i.root,e),i.show()}),(0,r.n8)((0,r.V5)(i),"onAutoplayStart",function(){if(!i.autoPlayStart){var e="auto"===i.config.mode?"auto-hide":"hide";h.Ay.addClass(i.root,e),i.autoPlayStart=!0,i.toggleTo("play")}}),i.autoPlayStart=!1,i}return(0,r.j6)(n,[{key:"afterCreate",value:function(){var e=this.playerConfig;this.initIcons(),this.listenEvents(),this.bindClickEvents(),e.autoplay||this.show()}},{key:"listenEvents",value:function(){var e=this,t=this.player,n=this.playerConfig;this.once(o.READY,function(){n&&(n.lang&&"en"===n.lang?h.Ay.addClass(t.root,"lang-is-en"):"jp"===n.lang&&h.Ay.addClass(t.root,"lang-is-jp"))}),this.on(o.AUTOPLAY_STARTED,this.onAutoplayStart),this.on(o.AUTOPLAY_PREVENTED,function(){var t="auto"===e.config.mode?"auto-hide":"hide";e.setAttr("data-state","play"),h.Ay.removeClass(e.root,t),e.show()}),this.on(o.PLAY,function(){e.toggleTo("play")}),this.on(o.PAUSE,function(){e.toggleTo("pause")}),this.on(o.RESET,function(){e.onPlayerReset()})}},{key:"bindClickEvents",value:function(){var e=this;this.clickHandler=this.hook("startClick",this.switchPausePlay,{pre:function(t){t.cancelable&&t.preventDefault(),t.stopPropagation();var n=e.player.paused;e.emitUserAction(t,"switch_play_pause",{props:"paused",from:n,to:!n})}}),this.bind(["click","touchend"],this.clickHandler)}},{key:"registerIcons",value:function(){return{startPlay:{icon:se,class:"xg-icon-play"},startPause:{icon:le,class:"xg-icon-pause"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild("xg-start-inner",e.startPlay),this.appendChild("xg-start-inner",e.startPause)}},{key:"hide",value:function(){h.Ay.addClass(this.root,"hide")}},{key:"show",value:function(e){h.Ay.removeClass(this.root,"hide")}},{key:"focusHide",value:function(){h.Ay.addClass(this.root,"focus-hide")}},{key:"recover",value:function(){h.Ay.removeClass(this.root,"focus-hide")}},{key:"switchStatus",value:function(e){e?this.setAttr("data-state",this.player.paused?"pause":"play"):this.setAttr("data-state",this.player.paused?"play":"pause")}},{key:"animate",value:function(e){var t=this;this._animateId=Ce("pauseplay",400,{start:function(){h.Ay.addClass(t.root,"interact"),t.show(),t.switchStatus(!0)},end:function(){h.Ay.removeClass(t.root,"interact"),!e&&t.hide(),t._animateId=null}})}},{key:"endAnimate",value:function(){h.Ay.removeClass(this.root,"interact"),Te(this._animateId),this._animateId=null}},{key:"switchPausePlay",value:function(e){var t=this.player;if(e.cancelable&&e.preventDefault(),e.stopPropagation(),!(t.state<z.READY)){var n=this.player.paused;n||t.state!==z.RUNNING?t.play():t.pause()}}},{key:"onPlayPause",value:function(e){this.toggleTo(e)}},{key:"toggleTo",value:function(e){var t=this.config,n=this.player;if(n&&!(n.state<z.RUNNING)&&this.autoPlayStart){if("show"===t.mode)return this.switchStatus(),void this.show();if("auto"!==t.mode){if(t.isShowPause&&n.paused&&!n.ended||t.isShowEnd&&n.ended)return this.switchStatus(),this.show(),void this.endAnimate();if(t.disableAnimate)return this.switchStatus(),void this.hide();if("play"===e)this.autoPlayStart?this.animate():this.hide();else{if(!this.autoPlayStart||n.ended)return;this.animate()}}else this.switchStatus()}}},{key:"destroy",value:function(){this.unbind(["click","touchend"],this.clickHandler),Te(this._animateId)}},{key:"render",value:function(){var e=this.playerConfig.autoplay?"auto"===this.config.mode?"auto-hide":"hide":"";return'\n    <xg-start class="xgplayer-start '.concat(e,'">\n    <xg-start-inner></xg-start-inner>\n    </xg-start>')}}],[{key:"pluginName",get:function(){return"start"}},{key:"defaultConfig",get:function(){return{isShowPause:!1,isShowEnd:!1,disableAnimate:!1,mode:"hide"}}}]),n}(M.Ay),Oe=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){return(0,r.xs)(this,n),t.apply(this,arguments)}return(0,r.j6)(n,[{key:"render",value:function(){var e=this.config.innerHtml,t=h.Ay.createDom("xg-enter","",{},"xgplayer-enter");if(e&&e instanceof window.HTMLElement)t.appendChild(e);else if(e&&"string"===typeof e)t.innerHTML=e;else{for(var n="",r=1;r<=12;r++)n+='<div class="xgplayer-enter-bar'.concat(r,'"></div>');t.innerHTML='<div class="xgplayer-enter-spinner">'.concat(n,"</div>")}return t}}],[{key:"pluginName",get:function(){return"enter"}},{key:"defaultConfig",get:function(){return{innerHtml:"",logo:""}}}]),n}(M.Ay),Me=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){return(0,r.xs)(this,n),t.apply(this,arguments)}return(0,r.j6)(n,[{key:"afterCreate",value:function(){this.getMini=this.getMini.bind(this),this.exitMini=this.exitMini.bind(this),this.bind("click",this.getMini)}},{key:"getMini",value:function(){this.config.onClick&&this.config.onClick()}},{key:"exitMini",value:function(){this.config.onClick&&this.config.onClick()}},{key:"destroy",value:function(){this.unbind(["click","touchend"],this.getMini)}},{key:"render",value:function(){var e="MINISCREEN";return'\n      <xg-icon class="xgplayer-miniicon">\n      <div class="xgplayer-icon btn-text"><span class="icon-text" lang-key="'.concat(this.i18nKeys[e],'">').concat(this.i18n[e],"</span></div>\n      </xg-icon>")}}],[{key:"pluginName",get:function(){return"miniscreenIcon"}},{key:"defaultConfig",get:function(){return{position:M.lP.CONTROLS_RIGHT,index:10}}}]),n}(M.Ay);function Ie(e){var t=parseFloat(e),n=-1===e.indexOf("%")&&!Number.isNaN(t);return n&&t}var De=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],Ne=De.length;function Re(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<Ne;t++){var n=De[t];e[n]=0}return e}function Le(e){var t=window.getComputedStyle(e);return t}function Be(e){if("string"===typeof e&&(e=document.querySelector(e)),e&&"object"===(0,r.uk)(e)&&e.nodeType){var t=Le(e);if("none"===t.display)return Re();var n={};n.width=e.offsetWidth,n.height=e.offsetHeight;for(var i=n.isBorderBox="border-box"===t.boxSizing,o=0;o<Ne;o++){var a=De[o],s=t[a],l=parseFloat(s);n[a]=Number.isNaN(l)?0:l}var c=n.paddingLeft+n.paddingRight,u=n.paddingTop+n.paddingBottom,d=n.marginLeft+n.marginRight,h=n.marginTop+n.marginBottom,f=n.borderLeftWidth+n.borderRightWidth,p=n.borderTopWidth+n.borderBottomWidth,g=i,m=Ie(t.width);!1!==m&&(n.width=m+(g?0:c+f));var v=Ie(t.height);return!1!==v&&(n.height=v+(g?0:u+p)),n.innerWidth=n.width-(c+f),n.innerHeight=n.height-(u+p),n.outerWidth=n.width+d,n.outerHeight=n.height+h,n}}function Pe(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.identifier===t)return r}}var Fe={START:"dragStart",MOVE:"dragMove",ENDED:"dragEnded"},$e={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]},je=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.xs)(this,n),i=t.call(this),i.isEnabled=!0,i.isDragging=!1,i.isDown=!1,i.position={},i.downPoint={},i.dragPoint={x:0,y:0},i.startPos={x:0,y:0},i._root=e instanceof Element?e:document.querySelector(e),i._handlerDom=o.handle instanceof Element?o.handle:document.querySelector(o.handle),i._root&&i._handlerDom?(i._bindStartEvent(),i):(0,r.GM)(i)}return(0,r.j6)(n,[{key:"_bindStartEvent",value:function(){var e=this;"ontouchstart"in window?this._startKey="touchstart":this._startKey="mousedown",this["on".concat(this._startKey)]=this["on".concat(this._startKey)].bind(this),this._handlerDom.addEventListener(this._startKey,this["on".concat(this._startKey)]),$e[this._startKey].map(function(t){e["on".concat(t)]=e["on".concat(t)].bind(e)})}},{key:"_unbindStartEvent",value:function(){this._handlerDom.removeEventListener(this._startKey,this["on".concat(this._startKey)])}},{key:"_bindPostStartEvents",value:function(e){var t=this;if(e){var n=$e[this._startKey];n.map(function(e){window.addEventListener(e,t["on".concat(e)])}),this._boundPointerEvents=n}}},{key:"_unbindPostStartEvents",value:function(){var e=this;this._boundPointerEvents&&(this._boundPointerEvents.map(function(t){window.removeEventListener(t,e["on".concat(t)])}),delete this._boundPointerEvents)}},{key:"enable",value:function(){this.isEnabled=!0}},{key:"disable",value:function(){this.isEnabled=!1,this.isDragging&&this.onUp()}},{key:"onDocUp",value:function(e){this.onUp()}},{key:"animate",value:function(){var e=this;this.isDragging&&(this.positionDrag(),window.requestAnimationFrame(function(){e.animate()}))}},{key:"positionDrag",value:function(){var e="translate3d(".concat(this.dragPoint.x,"px, ").concat(this.dragPoint.y,"px, 0)");this._root.style.transform=e,this._root.style.webKitTransform=e}},{key:"setLeftTop",value:function(){this._root.style.left=this.position.x+"px",this._root.style.top=this.position.y+"px"}},{key:"onmousedown",value:function(e){this.dragStart(e,e)}},{key:"onmousemove",value:function(e){this.dragMove(e,e)}},{key:"onmouseup",value:function(e){this.dragEnd(e,e)}},{key:"ontouchstart",value:function(e){var t=e.changedTouches[0];this.dragStart(e,t),this.touchIdentifier=void 0!==t.pointerId?t.pointerId:t.identifier,e.preventDefault()}},{key:"ontouchmove",value:function(e){var t=Pe(e.changedTouches,this.touchIdentifier);t&&this.dragMove(e,t)}},{key:"ontouchend",value:function(e){var t=Pe(e.changedTouches,this.touchIdentifier);t&&this.dragEnd(e,t),e.preventDefault()}},{key:"ontouchcancel",value:function(e){var t=Pe(e.changedTouches,this.touchIdentifier);t&&this.dragCancel(e,t)}},{key:"dragStart",value:function(e,t){if(this._root&&!this.isDown&&this.isEnabled){this.downPoint=t,this.dragPoint.x=0,this.dragPoint.y=0,this._getPosition();var n=Be(this._root);this.startPos.x=this.position.x,this.startPos.y=this.position.y,this.startPos.maxY=window.innerHeight-n.height,this.startPos.maxX=window.innerWidth-n.width,this.setLeftTop(),this.isDown=!0,this._bindPostStartEvents(e)}}},{key:"dragRealStart",value:function(e,t){this.isDragging=!0,this.animate(),this.emit(Fe.START,this.startPos)}},{key:"dragEnd",value:function(e,t){this._root&&(this._unbindPostStartEvents(),this.isDragging&&(this._root.style.transform="",this.setLeftTop(),this.emit(Fe.ENDED)),this.presetInfo())}},{key:"_dragPointerMove",value:function(e,t){var n={x:t.pageX-this.downPoint.pageX,y:t.pageY-this.downPoint.pageY};return!this.isDragging&&this.hasDragStarted(n)&&this.dragRealStart(e,t),n}},{key:"dragMove",value:function(e,t){if(e=e||window.event,this.isDown){var n=this.startPos,r=n.x,i=n.y,o=this._dragPointerMove(e,t),a=o.x,s=o.y;a=this.checkContain("x",a,r),s=this.checkContain("y",s,i),this.position.x=r+a,this.position.y=i+s,this.dragPoint.x=a,this.dragPoint.y=s,this.emit(Fe.MOVE,this.position)}}},{key:"dragCancel",value:function(e,t){this.dragEnd(e,t)}},{key:"presetInfo",value:function(){this.isDragging=!1,this.startPos={x:0,y:0},this.dragPoint={x:0,y:0},this.isDown=!1}},{key:"destroy",value:function(){this._unbindStartEvent(),this._unbindPostStartEvents(),this.isDragging&&this.dragEnd(),this.removeAllListeners(),this._handlerDom=null}},{key:"hasDragStarted",value:function(e){return Math.abs(e.x)>3||Math.abs(e.y)>3}},{key:"checkContain",value:function(e,t,n){return t+n<0?0-n:"x"===e&&t+n>this.startPos.maxX?this.startPos.maxX-n:"y"===e&&t+n>this.startPos.maxY?this.startPos.maxY-n:t}},{key:"_getPosition",value:function(){var e=window.getComputedStyle(this._root),t=this._getPositionCoord(e.left,"width"),n=this._getPositionCoord(e.top,"height");this.position.x=Number.isNaN(t)?0:t,this.position.y=Number.isNaN(n)?0:n,this._addTransformPosition(e)}},{key:"_addTransformPosition",value:function(e){var t=e.transform;if(0===t.indexOf("matrix")){var n=t.split(","),r=0===t.indexOf("matrix3d")?12:4,i=parseInt(n[r],10),o=parseInt(n[r+1],10);this.position.x+=i,this.position.y+=o}}},{key:"_getPositionCoord",value:function(e,t){if(-1!==e.indexOf("%")){var n=Be(this._root.parentNode);return n?parseFloat(e)/100*n[t]:0}return parseInt(e,10)}}]),n}(s()),He=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(e){var i;(0,r.xs)(this,n),i=t.call(this,e),(0,r.n8)((0,r.V5)(i),"onCancelClick",function(e){i.exitMini(),i.isClose=!0}),(0,r.n8)((0,r.V5)(i),"onCenterClick",function(e){var t=(0,r.V5)(i),n=t.player;n.paused?n.play():n.pause()}),(0,r.n8)((0,r.V5)(i),"onScroll",function(e){if(!(!window.scrollY&&0!==window.scrollY||Math.abs(window.scrollY-i.pos.scrollY)<50)){var t=parseInt(h.Ay.getCss(i.player.root,"height"));t+=i.config.scrollTop,i.pos.scrollY=window.scrollY,window.scrollY>t+5?!i.isMini&&!i.isClose&&i.getMini():window.scrollY<=t&&(i.isMini&&i.exitMini(),i.isClose=!1)}}),i.isMini=!1,i.isClose=!1;var o=(0,r.V5)(i),a=o.config;return i.pos={left:a.left<0?window.innerWidth-a.width-20:a.left,top:a.top<0?window.innerHeight-a.height-20:a.top,height:i.config.height,width:i.config.width,scrollY:window.scrollY||0},i.lastStyle=null,i}return(0,r.j6)(n,[{key:"beforeCreate",value:function(e){"boolean"===typeof e.player.config.mini&&(e.config.isShowIcon=e.player.config.mini)}},{key:"afterCreate",value:function(){var e=this;this.initIcons(),this.on(o.PAUSE,function(){e.setAttr("data-state","pause")}),this.on(o.PLAY,function(){e.setAttr("data-state","play")})}},{key:"onPluginsReady",value:function(){var e=this,t=this.player,n=this.config;if(!n.disable){if(this.config.isShowIcon){var r={config:{onClick:function(){e.getMini()}}};t.controls.registerPlugin(Me,r,Me.pluginName)}var i=h.Ay.checkTouchSupport()?"touchend":"click";this.bind(".mini-cancel-btn",i,this.onCancelClick),this.bind(".play-icon",i,this.onCenterClick),this.config.disableDrag||(this._draggabilly=new je(this.player.root,{handle:this.root})),this.config.isScrollSwitch&&window.addEventListener("scroll",this.onScroll)}}},{key:"registerIcons",value:function(){return{play:{icon:se,class:"xg-icon-play"},pause:{icon:le,class:"xg-icon-pause"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".play-icon",e.play),this.appendChild(".play-icon",e.pause)}},{key:"getMini",value:function(){var e=this;if(!this.isMini){var t=this.player,n=this.playerConfig,r=this.config.target||this.player.root;this.lastStyle={},h.Ay.addClass(t.root,"xgplayer-mini"),["width","height","top","left"].map(function(t){e.lastStyle[t]=r.style[t],r.style[t]="".concat(e.pos[t],"px")}),n.fluid&&(r.style["padding-top"]=""),this.emit(o.MINI_STATE_CHANGE,!0),t.isMini=this.isMini=!0}}},{key:"exitMini",value:function(){var e=this;if(!this.isMini)return!1;var t=this.player,n=this.playerConfig,r=this.config.target||this.player.root;h.Ay.removeClass(t.root,"xgplayer-mini"),this.lastStyle&&Object.keys(this.lastStyle).map(function(t){r.style[t]=e.lastStyle[t]}),this.lastStyle=null,n.fluid&&(t.root.style.width="100%",t.root.style.height="0",t.root.style["padding-top"]="".concat(100*n.height/n.width,"%")),this.emit(o.MINI_STATE_CHANGE,!1),this.isMini=t.isMini=!1}},{key:"updatePos",value:function(e){this.pos=Object.assign(this.pos,e),this.isMini&&(this.player.root.style.left="".concat(this.pos.left,"px"),this.player.root.style.top="".concat(this.pos.top,"px"),this.player.root.style.width="".concat(this.pos.width,"px"),this.player.root.style.height="".concat(this.pos.height,"px"))}},{key:"destroy",value:function(){window.removeEventListener("scroll",this.onScroll);var e=h.Ay.checkTouchSupport()?"touchend":"click";this.unbind(".mini-cancel-btn",e,this.onCancelClick),this.unbind(".play-icon",e,this.onCenterClick),this._draggabilly&&this._draggabilly.destroy(),this._draggabilly=null,this.exitMini()}},{key:"render",value:function(){if(!this.config.disable)return'\n      <xg-mini-layer class="xg-mini-layer">\n      <xg-mini-header class="xgplayer-mini-header">\n      '.concat(X(this,"MINI_DRAG",this.playerConfig.isHideTips),'\n      </xg-mini-header>\n      <div class="mini-cancel-btn">\n        <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">\n          <path fill="#fff" fill-rule="evenodd" d="M3.99 3.49a1 1 0 0 1 1.414 0L10 8.085l4.596-4.595a1 1 0 1 1 1.414 1.414L11.414 9.5l4.596 4.596a1 1 0 0 1 .084 1.32l-.084.094a1 1 0 0 1-1.414 0L10 10.914 5.404 15.51a1 1 0 0 1-1.414-1.414L8.585 9.5 3.99 4.904a1 1 0 0 1-.084-1.32z"></path>\n        </svg>\n      </div>\n      <div class="play-icon">\n      </div>\n      </xg-mini-layer>')}}],[{key:"pluginName",get:function(){return"miniscreen"}},{key:"defaultConfig",get:function(){return{index:10,disable:!1,width:320,height:180,left:-1,top:-1,isShowIcon:!1,isScrollSwitch:!1,scrollTop:0,disableDrag:!1}}}]),n}(M.Ay),Ue={mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousemove:"onMouseMove"},Qe=["videoClick","videoDbClick"],ze=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){var e;(0,r.xs)(this,n);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return e=t.call.apply(t,[this].concat(a)),(0,r.n8)((0,r.V5)(e),"onMouseMove",function(t){var n=(0,r.V5)(e),i=n.player,o=n.playerConfig;i.isActive||(i.focus({autoHide:!o.closeDelayBlur}),!o.closeFocusVideoFocus&&i.media.focus())}),(0,r.n8)((0,r.V5)(e),"onMouseEnter",function(t){var n=(0,r.V5)(e),i=n.playerConfig,a=n.player;!i.closeFocusVideoFocus&&a.media.focus(),i.closeDelayBlur?a.focus({autoHide:!1}):a.focus(),e.emit(o.ENTER_PLAYER)}),(0,r.n8)((0,r.V5)(e),"onMouseLeave",function(t){var n=e.playerConfig,r=n.closePlayerBlur,i=n.leavePlayerTime,a=n.closeDelayBlur;r||a||(i?e.player.focus({autoHide:!0,delay:i}):e.player.blur({ignorePaused:!0})),e.emit(o.LEAVE_PLAYER)}),(0,r.n8)((0,r.V5)(e),"onVideoClick",function(t){var n=(0,r.V5)(e),i=n.player,o=n.playerConfig;t.target&&o.closeVideoClick||t.target!==i.root&&t.target!==i.media&&t.target!==i.innerContainer&&t.target!==i.media.__canvas||(t.preventDefault(),o.closeVideoStopPropagation||t.stopPropagation(),e._clickCount++,e.clickTimer&&(clearTimeout(e.clickTimer),e.clickTimer=null),e.clickTimer=setTimeout(function(){e._clickCount&&(e._clickCount--,(0,j.Eu)((0,r.V5)(e),Qe[0],function(t,n){e.switchPlayPause(n.e)},{e:t,paused:i.paused}),clearTimeout(e.clickTimer),e.clickTimer=null)},300))}),(0,r.n8)((0,r.V5)(e),"onVideoDblClick",function(t){var n=(0,r.V5)(e),i=n.player,o=n.playerConfig;o.closeVideoDblclick||!t.target||t.target!==i.media&&t.target!==i.media.__canvas||(!o.closeVideoClick&&e._clickCount<2?e._clickCount=0:(e._clickCount=0,e.clickTimer&&(clearTimeout(e.clickTimer),e.clickTimer=null),t.preventDefault(),t.stopPropagation(),(0,j.Eu)((0,r.V5)(e),Qe[1],function(t,n){e.emitUserAction(n.e,"switch_fullscreen",{props:"fullscreen",from:i.fullscreen,to:!i.fullscreen}),i.fullscreen?i.exitFullscreen():i.getFullscreen()},{e:t,fullscreen:i.fullscreen})))}),e}return(0,r.j6)(n,[{key:"afterCreate",value:function(){var e=this;this._clickCount=0,Qe.map(function(t){e.__hooks[t]=null});var t=this.playerConfig.isMobileSimulateMode;"mobile"===t||"mobile"===w.A.device&&!w.A.os.isIpad||this.initEvents()}},{key:"initEvents",value:function(){var e=this,t=this.player,n=t.media,r=t.root,i=this.playerConfig.enableContextmenu;r&&r.addEventListener("click",this.onVideoClick,!1),r&&r.addEventListener("dblclick",this.onVideoDblClick,!1),Object.keys(Ue).map(function(t){r.addEventListener(t,e[Ue[t]],!1)}),!i&&n&&n.addEventListener("contextmenu",this.onContextmenu,!1)}},{key:"switchPlayPause",value:function(e){var t=this.player;this.emitUserAction(e,"switch_play_pause",{props:"paused",from:t.paused,to:!t.paused}),t.ended?t.duration!==1/0&&t.duration>0&&t.replay():t.paused?t.play():t.pause()}},{key:"onContextmenu",value:function(e){e=e||window.event,e.preventDefault&&e.preventDefault(),e.stopPropagation?e.stopPropagation():(e.returnValue=!1,e.cancelBubble=!0)}},{key:"destroy",value:function(){var e=this,t=this.player,n=t.video,r=t.root;this.clickTimer&&clearTimeout(this.clickTimer),r.removeEventListener("click",this.onVideoClick,!1),r.removeEventListener("dblclick",this.onVideoDblClick,!1),n.removeEventListener("contextmenu",this.onContextmenu,!1),Object.keys(Ue).map(function(t){r.removeEventListener(t,e[Ue[t]],!1)})}}],[{key:"pluginName",get:function(){return"pc"}},{key:"defaultConfig",get:function(){return{}}}]),n}(I.Ay),We={PRESS:"press",PRESS_END:"pressend",DOUBlE_CLICK:"doubleclick",CLICK:"click",TOUCH_MOVE:"touchmove",TOUCH_START:"touchstart",TOUCH_END:"touchend"},Ge={start:"touchstart",end:"touchend",move:"touchmove",cancel:"touchcancel"},Ve={start:"mousedown",end:"mouseup",move:"mousemove",cancel:"mouseleave"};function Ke(e){return e&&e.length>0?e[e.length-1]:null}function Ye(){return{pressDelay:600,dbClickDelay:200,disablePress:!1,disableDbClick:!1,miniStep:2,needPreventDefault:!0}}var qe=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{eventType:"touch"};(0,r.xs)(this,e),(0,r.n8)(this,"onTouchStart",function(e){var t=n._pos,r=n.root,i=Ke(e.touches);t.x=i?parseInt(i.pageX,10):e.pageX,t.y=i?parseInt(i.pageX,10):e.pageX,t.start=!0,n.__setPress(e),r.addEventListener(n.events.end,n.onTouchEnd),r.addEventListener(n.events.cancel,n.onTouchCancel),r.addEventListener(n.events.move,n.onTouchMove),n.trigger(We.TOUCH_START,e)}),(0,r.n8)(this,"onTouchCancel",function(e){n.onTouchEnd(e)}),(0,r.n8)(this,"onTouchEnd",function(e){var t=n._pos,r=n.root;n.__clearPress(),r.removeEventListener(n.events.cancel,n.onTouchCancel),r.removeEventListener(n.events.end,n.onTouchEnd),r.removeEventListener(n.events.move,n.onTouchMove),e.moving=t.moving,e.press=t.press,t.press&&n.trigger(We.PRESS_END,e),n.trigger(We.TOUCH_END,e),!t.press&&!t.moving&&n.__setDb(e),t.press=!1,t.start=!1,t.moving=!1}),(0,r.n8)(this,"onTouchMove",function(e){var t=n._pos,r=n.config,i=Ke(e.touches),o=i?parseInt(i.pageX,10):e.pageX,a=i?parseInt(i.pageY,10):e.pageX,s=o-t.x,l=a-t.y;Math.abs(l)<r.miniStep&&Math.abs(s)<r.miniStep||(n.__clearPress(),t.press&&n.trigger(We.PRESS_END,e),t.press=!1,t.moving=!0,n.trigger(We.TOUCH_MOVE,e))}),this._pos={moving:!1,start:!1,x:0,y:0},this.config=Ye(),Object.keys(i).map(function(e){n.config[e]=i[e]}),this.root=t,this.events="mouse"===i.eventType?Ve:Ge,this.pressIntrvalId=null,this.dbIntrvalId=null,this.__handlers={},this._initEvent()}return(0,r.j6)(e,[{key:"_initEvent",value:function(){this.root.addEventListener(this.events.start,this.onTouchStart)}},{key:"__setPress",value:function(e){var t=this,n=this.config;this.pressIntrvalId&&this.__clearPress(),this.pressIntrvalId=setTimeout(function(){t.trigger(We.PRESS,e),t._pos.press=!0,t.__clearPress()},n.pressDelay)}},{key:"__clearPress",value:function(){window.clearTimeout(this.pressIntrvalId),this.pressIntrvalId=null}},{key:"__setDb",value:function(e){var t=this,n=this.config;if(this.dbIntrvalId)return this.__clearDb(),void this.trigger(We.DOUBlE_CLICK,e);this.dbIntrvalId=setTimeout(function(){t.__clearDb(),t._pos.start||t._pos.press||t._pos.moving||t.trigger(We.CLICK,e)},n.dbClickDelay)}},{key:"__clearDb",value:function(){clearTimeout(this.dbIntrvalId),this.dbIntrvalId=null}},{key:"on",value:function(e,t){this.__handlers[e]||(this.__handlers[e]=[]),this.__handlers[e].push(t)}},{key:"off",value:function(e,t){if(this.__handlers[e]){for(var n=this.__handlers[e],r=-1,i=0;i<n.length;i++)if(n[i]===t){r=i;break}r>=0&&this.__handlers[e].splice(r,1)}}},{key:"trigger",value:function(e,t){this.__handlers[e]&&this.__handlers[e].map(function(n){try{n(t)}catch(r){console.error("trigger>>:".concat(e),r)}})}},{key:"destroy",value:function(){var e=this,t={touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"};Object.keys(t).forEach(function(n){e.root.removeEventListener(n,e[t[n]])})}}]),e}();function Xe(){return(new DOMParser).parseFromString('<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"\n  xmlns:xlink="http://www.w3.org/1999/xlink">\n  <path opacity="0.54"\n    d="M7.5 3.63397C8.16667 4.01887 8.16667 4.98113 7.5 5.36603L1.5 8.83013C0.833334 9.21503 0 8.7339 0 7.9641L0 1.0359C0 0.266098 0.833333 -0.215027 1.5 0.169873L7.5 3.63397Z"\n    fill="white" />\n  <path transform="translate(5 0)" d="M7.5 3.63397C8.16667 4.01887 8.16667 4.98113 7.5 5.36603L1.5 8.83013C0.833334 9.21503 0 8.7339 0 7.9641L0 1.0359C0 0.266098 0.833333 -0.215027 1.5 0.169873L7.5 3.63397Z" fill="white"/>\n</svg>',"image/svg+xml").firstChild}var Je={AUTO:"auto",SEEKING:"seeking",PLAYBACK:"playbackrate",LIGHT:""},Ze=["videoClick","videoDbClick"],et=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(e){var i;return(0,r.xs)(this,n),i=t.call(this,e),(0,r.n8)((0,r.V5)(i),"onTouchStart",function(e){var t=(0,r.V5)(i),n=t.player,o=t.config,a=t.pos,s=t.playerConfig,l=i.getTouche(e);if(l&&!o.disableGesture&&i.duration>0&&!n.ended){a.isStart=!0,i.timer&&clearTimeout(i.timer),h.Ay.checkIsFunction(s.disableSwipeHandler)&&s.disableSwipeHandler(),i.find(".xg-dur").innerHTML=h.Ay.format(i.duration);var c=i.root.getBoundingClientRect();90===n.rotateDeg?(a.top=c.left,a.left=c.top,a.width=c.height,a.height=c.width):(a.top=c.top,a.left=c.left,a.width=c.width,a.height=c.height);var u=parseInt(l.pageX-a.left,10),d=parseInt(l.pageY-a.top,10);a.x=90===n.rotateDeg?d:u,a.y=90===n.rotateDeg?u:d,a.scopeL=o.scopeL*a.width,a.scopeR=(1-o.scopeR)*a.width,a.scopeM1=a.width*(1-o.scopeM)/2,a.scopeM2=a.width-a.scopeM1}}),(0,r.n8)((0,r.V5)(i),"onTouchMove",function(e){var t=i.getTouche(e),n=(0,r.V5)(i),o=n.pos,a=n.config,s=n.player;if(t&&!a.disableGesture&&i.duration&&o.isStart){var l=a.miniMoveStep,c=a.hideControlsActive,u=parseInt(t.pageX-o.left,10),d=parseInt(t.pageY-o.top,10),h=90===s.rotateDeg?d:u,f=90===s.rotateDeg?u:d;if(Math.abs(h-o.x)>l||Math.abs(f-o.y)>l){var p=h-o.x,g=f-o.y,m=o.scope;if(-1===m&&(m=i.checkScope(h,f,p,g,o),0===m&&(c?s.blur():s.focus({autoHide:!1}),!o.time&&(o.time=parseInt(1e3*s.currentTime,10)+1e3*i.timeOffset)),o.scope=m),-1===m||m>0&&!a.gestureY||0===m&&!a.gestureX)return;i.executeMove(p,g,m,o.width,o.height),o.x=h,o.y=f}}}),(0,r.n8)((0,r.V5)(i),"onTouchEnd",function(e){var t=(0,r.V5)(i),n=t.player,o=t.pos,a=t.playerConfig;if(setTimeout(function(){n.getPlugin("progress")&&n.getPlugin("progress").resetSeekState()},10),o.isStart){o.scope>-1&&e.cancelable&&e.preventDefault();var s=i.config,l=s.disableGesture,c=s.gestureX;!l&&c?i.endLastMove(o.scope):o.time=0,o.scope=-1,i.resetPos(),h.Ay.checkIsFunction(a.enableSwipeHandler)&&a.enableSwipeHandler(),i.changeAction(Je.AUTO)}}),(0,r.n8)((0,r.V5)(i),"onRootTouchMove",function(e){!i.config.disableGesture&&i.config.gestureX&&i.checkIsRootTarget(e)&&(e.stopPropagation(),i.pos.isStart?i.onTouchMove(e):i.onTouchStart(e))}),(0,r.n8)((0,r.V5)(i),"onRootTouchEnd",function(e){i.pos.scope>-1&&i.onTouchEnd(e)}),i.pos={isStart:!1,x:0,y:0,time:0,volume:0,rate:1,light:0,width:0,height:0,scopeL:0,scopeR:0,scopeM1:0,scopeM2:0,scope:-1},i.timer=null,i}return(0,r.j6)(n,[{key:"duration",get:function(){return this.playerConfig.customDuration||this.player.duration}},{key:"timeOffset",get:function(){return this.playerConfig.timeOffset||0}},{key:"registerIcons",value:function(){return{seekTipIcon:{icon:Xe,class:"xg-seek-pre"}}}},{key:"afterCreate",value:function(){var e=this;Ze.map(function(t){e.__hooks[t]=null});var t=this.playerConfig,n=this.config,r=this.player;!0===t.closeVideoDblclick&&(n.closedbClick=!0),this.resetPos(),h.Ay.isUndefined(t.disableGesture)||(n.disableGesture=!!t.disableGesture),this.appendChild(".xg-seek-icon",this.icons.seekTipIcon),this.xgMask=h.Ay.createDom("xg-mask","",{},"xgmask"),r.root.appendChild(this.xgMask),this.initCustomStyle(),this.registerThumbnail();var i="mouse"===this.domEventType?"mouse":"touch";this.touch=new qe(this.root,{eventType:i,needPreventDefault:!this.config.disableGesture}),this.root.addEventListener("contextmenu",function(e){e.preventDefault()}),r.root.addEventListener("touchmove",this.onRootTouchMove,!0),r.root.addEventListener("touchend",this.onRootTouchEnd,!0),r.root.addEventListener("touchcancel",this.onRootTouchEnd,!0);var a=this.player.controls;a&&a.center&&(a.center.addEventListener("touchmove",this.onRootTouchMove,!0),a.center.addEventListener("touchend",this.onRootTouchEnd,!0),a.center.addEventListener("touchcancel",this.onRootTouchEnd,!0)),this.on(o.DURATION_CHANGE,function(){var t=e.player,n=e.config;t.duration>0&&1e3*t.duration<n.moveDuration&&(n.moveDuration=1e3*t.duration)}),this.on([o.CANPLAY,o.ENDED],function(){var t=e.pos,n=t.time,r=t.isStart;!r&&n>0&&(e.pos.time=0)});var s={touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd",press:"onPress",pressend:"onPressEnd",click:"onClick",doubleclick:"onDbClick"};if(Object.keys(s).map(function(t){e.touch.on(t,function(n){e[s[t]](n)})}),!n.disableActive){var l=r.plugins.progress;l&&(l.addCallBack("dragmove",function(t){e.activeSeekNote(t.currentTime,t.forward)}),["dragend","click"].forEach(function(t){l.addCallBack(t,function(){e.changeAction(Je.AUTO)})}))}}},{key:"registerThumbnail",value:function(){var e=this.player,t=e.plugins.thumbnail;if(t&&t.usable){this.thumbnail=t.createThumbnail(null,"mobile-thumbnail");var n=this.find(".time-preview");n.insertBefore(this.thumbnail,n.children[0])}}},{key:"initCustomStyle",value:function(){var e=this.playerConfig||{},t=e.commonStyle,n=t.playedColor,r=t.progressColor,i=t.timePreviewStyle,o=t.curTimeColor,a=t.durationColor;if(n&&(this.find(".xg-curbar").style.backgroundColor=n),r&&(this.find(".xg-bar").style.backgroundColor=r),i){var s=this.find(".time-preview");Object.keys(i).forEach(function(e){s.style[e]=i[e]})}var l=o||n,c=a;l&&(this.find(".xg-cur").style.color=l),c&&(this.find(".xg-dur").style.color=c),this.config.disableTimeProgress&&h.Ay.addClass(this.find(".xg-timebar"),"hide")}},{key:"resetPos",value:function(){var e=this;this.pos?(this.pos.isStart=!1,this.pos.scope=-1,["x","y","width","height","scopeL","scopeR","scopeM1","scopeM2"].map(function(t){e.pos[t]=0})):this.pos={isStart:!1,x:0,y:0,volume:0,rate:1,light:0,width:0,height:0,scopeL:0,scopeR:0,scopeM1:0,scopeM2:0,scope:-1,time:0}}},{key:"changeAction",value:function(e){var t=this.player,n=this.root;n.setAttribute("data-xg-action",e);var r=t.plugins.start;r&&r.recover()}},{key:"getTouche",value:function(e){this.player.rotateDeg;var t=e.touches&&e.touches.length>0?e.touches[e.touches.length-1]:e;return{pageX:t.pageX,pageY:t.pageY}}},{key:"checkScope",value:function(e,t,n,r,i){var o=i.width,a=-1;if(e<0||e>o)return a;var s=0===r?Math.abs(n):Math.abs(n/r);return Math.abs(n)>0&&s>=1.73&&e>i.scopeM1&&e<i.scopeM2?a=0:(0===Math.abs(n)||s<=.57)&&(a=e<i.scopeL?1:e>i.scopeR?2:3),a}},{key:"executeMove",value:function(e,t,n,r,i){switch(n){case 0:this.updateTime(e/r*this.config.scopeM);break;case 1:this.updateBrightness(t/i);break;case 2:w.A.os.isIos||this.updateVolume(t/i);break}}},{key:"endLastMove",value:function(e){var t=this,n=this.pos,r=this.player,i=this.config,o=(n.time-this.timeOffset)/1e3;switch(e){case 0:r.seek(Number(o).toFixed(1)),i.hideControlsEnd?r.blur():r.focus(),this.timer=setTimeout(function(){t.pos.time=0},500);break}this.changeAction(Je.AUTO)}},{key:"checkIsRootTarget",value:function(e){var t=this.player.plugins||{};return(!t.progress||!t.progress.root.contains(e.target))&&(t.start&&t.start.root.contains(e.target)||t.controls&&t.controls.root.contains(e.target))}},{key:"sendUseAction",value:function(e){var t=this.player.paused;this.emitUserAction(e,"switch_play_pause",{prop:"paused",from:t,to:!t})}},{key:"clickHandler",value:function(e){var t=this.player,n=this.config,r=this.playerConfig;t.state<z.RUNNING?r.closeVideoClick||(this.sendUseAction(h.Ay.createEvent("click")),t.play()):!n.closedbClick||r.closeVideoClick?t.isActive?t.blur():t.focus():r.closeVideoClick||((t.isActive||n.focusVideoClick)&&(this.sendUseAction(h.Ay.createEvent("click")),this.switchPlayPause()),t.focus())}},{key:"dbClickHandler",value:function(e){var t=this.config,n=this.player;!t.closedbClick&&n.state>=z.RUNNING&&(this.sendUseAction(h.Ay.createEvent("dblclick")),this.switchPlayPause())}},{key:"onClick",value:function(e){var t=this,n=this.player;(0,j.Eu)(this,Ze[0],function(e,n){t.clickHandler(n.e)},{e:e,paused:n.paused})}},{key:"onDbClick",value:function(e){var t=this,n=this.player;(0,j.Eu)(this,Ze[1],function(e,n){t.dbClickHandler(n.e)},{e:e,paused:n.paused})}},{key:"onPress",value:function(e){var t=this.pos,n=this.config,r=this.player;n.disablePress||(t.rate=this.player.playbackRate,this.emitUserAction("press","change_rate",{prop:"playbackRate",from:r.playbackRate,to:n.pressRate}),r.playbackRate=n.pressRate,this.changeAction(Je.PLAYBACK))}},{key:"onPressEnd",value:function(e){var t=this.pos,n=this.config,r=this.player;n.disablePress||(this.emitUserAction("pressend","change_rate",{prop:"playbackRate",from:r.playbackRate,to:t.rate}),r.playbackRate=t.rate,t.rate=1,this.changeAction(Je.AUTO))}},{key:"updateTime",value:function(e){var t=this.player,n=this.config,r=this.player.duration;e=Number(e.toFixed(4));var i=parseInt(e*n.moveDuration,10)+this.timeOffset;i+=this.pos.time,i=i<0?0:i>1e3*r?1e3*r-200:i,t.getPlugin("time")&&t.getPlugin("time").updateTime(i/1e3),t.getPlugin("progress")&&t.getPlugin("progress").updatePercent(i/1e3/this.duration,!0),this.activeSeekNote(i/1e3,e>0),n.isTouchingSeek&&t.seek(Number((i-this.timeOffset)/1e3).toFixed(1)),this.pos.time=i}},{key:"updateVolume",value:function(e){this.player.rotateDeg&&(e=-e);var t=this.player,n=this.pos;if(e=parseInt(100*e,10),n.volume+=e,!(Math.abs(n.volume)<10)){var r=parseInt(10*t.volume,10)-parseInt(n.volume/10,10);r=r>10?10:r<1?0:r,t.volume=r/10,n.volume=0}}},{key:"updateBrightness",value:function(e){var t=this.pos,n=this.config,r=this.xgMask;if(n.darkness){this.player.rotateDeg&&(e=-e);var i=t.light+.8*e;i=i>n.maxDarkness?n.maxDarkness:i<0?0:i,r&&(r.style.backgroundColor="rgba(0,0,0,".concat(i,")")),t.light=i}}},{key:"activeSeekNote",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.player,r=this.config,i=!(this.duration!==1/0&&this.duration>0);if(e&&"number"===typeof e&&!i&&!r.disableActive){e<0?e=0:e>n.duration&&(e=n.duration-.2),this.changeAction(Je.SEEKING);var o=n.plugins.start;o&&o.focusHide(),this.find(".xg-dur").innerHTML=h.Ay.format(this.duration),this.find(".xg-cur").innerHTML=h.Ay.format(e),this.find(".xg-curbar").style.width="".concat(e/this.duration*100,"%"),t?h.Ay.removeClass(this.find(".xg-seek-show"),"xg-back"):h.Ay.addClass(this.find(".xg-seek-show"),"xg-back"),this.updateThumbnails(e)}}},{key:"updateThumbnails",value:function(e){var t=this.player,n=t.plugins.thumbnail;n&&n.usable&&this.thumbnail&&n.update(this.thumbnail,e,160,90)}},{key:"switchPlayPause",value:function(){var e=this.player;if(e.state<z.ATTACHED)return!1;e.ended||(e.paused?e.play():e.pause())}},{key:"disableGesture",value:function(){this.config.disableGesture=!0}},{key:"enableGesture",value:function(){this.config.disableGesture=!1}},{key:"destroy",value:function(){var e=this.player;this.timer&&clearTimeout(this.timer),this.thumbnail=null,e.root.removeChild(this.xgMask),this.xgMask=null,this.touch&&this.touch.destroy(),this.touch=null,e.root.removeEventListener("touchmove",this.onRootTouchMove,!0),e.root.removeEventListener("touchend",this.onRootTouchEnd,!0),e.root.removeEventListener("touchcancel",this.onRootTouchEnd,!0);var t=this.player.controls;t&&t.center&&(t.center.removeEventListener("touchmove",this.onRootTouchMove,!0),t.center.removeEventListener("touchend",this.onRootTouchEnd,!0),t.center.removeEventListener("touchcancel",this.onRootTouchEnd,!0))}},{key:"render",value:function(){var e="normal"!==this.config.gradient?"gradient ".concat(this.config.gradient):"gradient";return'\n     <xg-trigger class="trigger">\n     <div class="'.concat(e,'"></div>\n        <div class="time-preview">\n            <div class="xg-seek-show ').concat(this.config.disableSeekIcon?" hide-seek-icon":"",'">\n              <i class="xg-seek-icon"></i>\n              <span class="xg-cur">00:00</span>\n              <span class="xg-separator">/</span>\n              <span class="xg-dur">00:00</span>\n            </div>\n              <div class="xg-bar xg-timebar">\n                <div class="xg-curbar"></div>\n              </div>\n        </div>\n        <div class="xg-playbackrate xg-top-note">\n            <span><i>').concat(this.config.pressRate,"X</i>").concat(this.i18n.FORWARD,"</span>\n        </div>\n     </xg-trigger>\n    ")}}],[{key:"pluginName",get:function(){return"mobile"}},{key:"defaultConfig",get:function(){return{index:0,disableGesture:!1,gestureX:!0,gestureY:!0,gradient:"normal",isTouchingSeek:!1,miniMoveStep:5,miniYPer:5,scopeL:.25,scopeR:.25,scopeM:.9,pressRate:2,darkness:!0,maxDarkness:.8,disableActive:!1,disableTimeProgress:!1,hideControlsActive:!1,hideControlsEnd:!1,moveDuration:36e4,closedbClick:!1,disablePress:!0,disableSeekIcon:!1,focusVideoClick:!1}}}]),n}(M.Ay);function tt(e){e.preventDefault(),e.returnValue=!1}function nt(e){var t=e.tagName;return!("INPUT"!==t&&"TEXTAREA"!==t&&!e.isContentEditable)}var rt=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){var e;(0,r.xs)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,r.n8)((0,r.V5)(e),"onBodyKeyDown",function(t){if(e.player){var n=t||window.event,i=n.keyCode,o=(0,r.V5)(e),a=o._keyState,s=o.player,l=e.config,c=l.disable,u=l.disableBodyTrigger,d=l.isIgnoreUserActive;c||u||!s.isUserActive&&!d||nt(n.target)||!e.checkIsVisible()||n.metaKey||n.altKey||n.ctrlKey?a.isBodyKeyDown=!1:(t.repeat||a.isKeyDown||((n.target===document.body||e.config.isGlobalTrigger&&!nt(n.target))&&e.checkCode(i,!0)&&(a.isBodyKeyDown=!0),document.addEventListener("keyup",e.onBodyKeyUp)),a.isBodyKeyDown&&e.handleKeyDown(n))}}),(0,r.n8)((0,r.V5)(e),"onBodyKeyUp",function(t){e.player&&(document.removeEventListener("keyup",e.onBodyKeyUp),e.handleKeyUp(t))}),(0,r.n8)((0,r.V5)(e),"onKeydown",function(t){if(e.player){var n=t||window.event,i=(0,r.V5)(e),o=i._keyState;if(!n.repeat){if(e.config.disable||e.config.disableRootTrigger||n.metaKey||n.altKey||n.ctrlKey)return;!n||37!==n.keyCode&&!e.checkCode(n.keyCode)||n.target!==e.player.root&&n.target!==e.player.video&&n.target!==e.player.controls.el||(o.isKeyDown=!0),e.player.root.addEventListener("keyup",e.onKeyup)}o.isKeyDown&&e.handleKeyDown(n)}}),(0,r.n8)((0,r.V5)(e),"onKeyup",function(t){e.player&&(e.player.root.removeEventListener("keyup",e.onKeyup),e.handleKeyUp(t))}),e}return(0,r.j6)(n,[{key:"mergekeyCodeMap",value:function(){var e=this,t=this.config.keyCodeMap;t&&Object.keys(t).map(function(n){e.keyCodeMap[n]?["keyCode","action","disable","pressAction","disablePress","isBodyTarget"].map(function(r){t[n][r]&&(e.keyCodeMap[n][r]=t[n][r])}):e.keyCodeMap[n]=t[n]})}},{key:"afterCreate",value:function(){this.config.disable=!this.playerConfig.keyShortcut;var e="function"===typeof this.config.seekStep?this.config.seekStep(this.player):this.config.seekStep;e&&"number"===typeof e&&(this.seekStep=e),this.keyCodeMap={space:{keyCode:32,action:"playPause",disable:!1,disablePress:!1,noBodyTarget:!1},up:{keyCode:38,action:"upVolume",disable:!1,disablePress:!1,noBodyTarget:!0},down:{keyCode:40,action:"downVolume",disable:!1,disablePress:!1,noBodyTarget:!0},left:{keyCode:37,action:"seekBack",disablePress:!1,disable:!1},right:{keyCode:39,action:"seek",pressAction:"changePlaybackRate",disablePress:!1,disable:!1},esc:{keyCode:27,action:"exitFullscreen",disablePress:!0,disable:!1}},this.mergekeyCodeMap(),this._keyState={isKeyDown:!1,isBodyKeyDown:!1,isPress:!1,tt:0,playbackRate:0},this.player.root.addEventListener("keydown",this.onKeydown),document.addEventListener("keydown",this.onBodyKeyDown)}},{key:"setConfig",value:function(e){var t=this;Object.keys(e).forEach(function(n){t.config[n]=e[n]})}},{key:"checkIsVisible",value:function(){if(!this.config.checkVisible)return!0;var e=this.player.root.getBoundingClientRect(),t=e.height,n=e.top,r=e.bottom,i=window.innerHeight;return!(n<0&&n<0-.9*t||r>0&&r-i>.9*t)}},{key:"checkCode",value:function(e,t){var n=this,r=!1;return Object.keys(this.keyCodeMap).map(function(i){n.keyCodeMap[i]&&e===n.keyCodeMap[i].keyCode&&!n.keyCodeMap[i].disable&&(r=!t||t&&!n.keyCodeMap[i].noBodyTarget)}),r}},{key:"downVolume",value:function(e){var t=this.player;if(!(t.volume<=0)){var n=parseFloat((t.volume-.1).toFixed(1)),r={volume:{from:t.volume,to:n}};this.emitUserAction(e,"change_volume",{props:r}),t.volume=n>=0?n:0}}},{key:"upVolume",value:function(e){var t=this.player;if(!(t.volume>=1)){var n=parseFloat((t.volume+.1).toFixed(1)),r={volume:{from:t.volume,to:n}};this.emitUserAction(e,"change_volume",{props:r}),t.volume=n<=1?n:1}}},{key:"seek",value:function(e){var t=this.player,n=t.currentTime,r=t.offsetCurrentTime,i=t.duration,o=t.offsetDuration,a=t.timeSegments,s=r>-1?r:n,l=o||i,c=e.repeat&&this.seekStep>=4?parseInt(this.seekStep/2,10):this.seekStep;s+c<=l?s+=c:s=l;var u=h.Ay.getCurrentTimeByOffset(s,a),d={currentTime:{from:n,to:u}};this.emitUserAction(e,"seek",{props:d}),this.player.currentTime=u}},{key:"seekBack",value:function(e){var t=this.player,n=t.currentTime,r=t.offsetCurrentTime,i=t.timeSegments,o=e.repeat?parseInt(this.seekStep/2,10):this.seekStep,a=r>-1?r:n,s=a-o;s<0&&(s=0),s=h.Ay.getCurrentTimeByOffset(s,i);var l={currentTime:{from:n,to:s}};this.emitUserAction(e,"seek",{props:l}),this.player.currentTime=s}},{key:"changePlaybackRate",value:function(e){var t=this._keyState,n=this.config,r=this.player;0===t.playbackRate&&(t.playbackRate=r.playbackRate,r.playbackRate=n.playbackRate)}},{key:"playPause",value:function(e){var t=this.player;t&&(this.emitUserAction(e,"switch_play_pause"),t.paused?t.play():t.pause())}},{key:"exitFullscreen",value:function(e){var t=this.player,n=t.fullscreen,r=t.cssfullscreen;n&&(this.emitUserAction("keyup","switch_fullscreen",{prop:"fullscreen",from:n,to:!n}),t.exitFullscreen()),r&&(this.emitUserAction("keyup","switch_css_fullscreen",{prop:"cssfullscreen",from:r,to:!r}),t.exitCssFullscreen())}},{key:"handleKeyDown",value:function(e){var t=this._keyState;if(e.repeat){t.isPress=!0;var n=Date.now();if(n-t.tt<200)return;t.tt=n}this.handleKeyCode(e.keyCode,e,t.isPress)}},{key:"handleKeyUp",value:function(e){var t=this._keyState;t.playbackRate>0&&(this.player.playbackRate=t.playbackRate,t.playbackRate=0),t.isKeyDown=!1,t.isPress=!1,t.tt=0}},{key:"handleKeyCode",value:function(e,t,n){for(var i=Object.keys(this.keyCodeMap),a=0;a<i.length;a++){var s=this.keyCodeMap[i[a]],l=s.action,c=s.keyCode,u=s.disable,d=s.pressAction,h=s.disablePress;if(c===e){if(!u&&(!n||!h)){var f=n&&d||l;"function"===typeof f?l(t,this.player,n):"string"===typeof f&&"function"===typeof this[f]&&this[f](t,this.player,n),this.emit(o.SHORTCUT,(0,r.T1)({key:i[a],target:t.target,isPress:n},this.keyCodeMap[i[a]]))}tt(t),t.stopPropagation();break}}}},{key:"destroy",value:function(){this.player.root.removeEventListener("keydown",this.onKeydown),document.removeEventListener("keydown",this.onBodyKeyDown),this.player.root.removeEventListener("keyup",this.onKeyup),document.removeEventListener("keyup",this.onBodyKeyUp)}},{key:"disable",value:function(){this.config.disable=!0}},{key:"enable",value:function(){this.config.disable=!1}}],[{key:"pluginName",get:function(){return"keyboard"}},{key:"defaultConfig",get:function(){return{seekStep:10,checkVisible:!1,disableBodyTrigger:!1,disableRootTrigger:!1,isGlobalTrigger:!0,keyCodeMap:{},disable:!1,playbackRate:2,isIgnoreUserActive:!0}}}]),n}(I.Ay);function it(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">\n  <path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>\n</svg>\n',"image/svg+xml").firstChild}var ot=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){return(0,r.xs)(this,n),t.apply(this,arguments)}return(0,r.j6)(n,[{key:"registerIcons",value:function(){return{loadingIcon:it}}},{key:"afterCreate",value:function(){this.appendChild("xg-loading-inner",this.icons.loadingIcon)}},{key:"render",value:function(){return'\n    <xg-loading class="xgplayer-loading">\n      <xg-loading-inner></xg-loading-inner>\n    </xg-loading>'}}],[{key:"pluginName",get:function(){return"loading"}},{key:"defaultConfig",get:function(){return{position:M.lP.ROOT}}}]),n}(M.Ay),at=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){var e;(0,r.xs)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,r.n8)((0,r.V5)(e),"_onDurationChange",function(){e.updateSegments();var t=e.player,n=t.currentTime,r=t.timeSegments;if(e._checkIfEnabled(r)){var i=h.Ay.getIndexByTime(n,r),o=h.Ay.getOffsetCurrentTime(n,r,i);e.player.offsetCurrentTime=o,e.changeIndex(i,r)}}),(0,r.n8)((0,r.V5)(e),"_onLoadedData",function(){var t=e.player.timeSegments;if(e._checkIfEnabled(t)){var n=h.Ay.getOffsetCurrentTime(0,t);e.player.offsetCurrentTime=n,e.changeIndex(0,t),e.curPos.start>0&&(e.player.currentTime=e.curPos.start)}}),(0,r.n8)((0,r.V5)(e),"_onTimeupdate",function(){var t=e.player,n=t.currentTime,r=t.timeSegments;if(e._checkIfEnabled(r)){var i=r.length;e.lastCurrentTime=n;var o=h.Ay.getIndexByTime(n,r);o!==e.curIndex&&e.changeIndex(o,r);var a=h.Ay.getOffsetCurrentTime(n,r,o);if(e.player.offsetCurrentTime=a,e.curPos){var s=e.curPos,l=s.start,c=s.end;n<l?e.player.currentTime=l:n>c&&o>=i-1&&e.player.pause()}}}),(0,r.n8)((0,r.V5)(e),"_onSeeking",function(){var t=e.player,n=t.currentTime,r=t.timeSegments;if(e._checkIfEnabled(r))if(n<r[0].start)e.player.currentTime=r[0].start;else if(n>r[r.length-1].end)e.player.currentTime=r[r.length-1].end;else{var i=h.Ay.getIndexByTime(n,r);if(i>=0){var o=e.getSeekTime(n,e.lastCurrentTime,i,r);o>=0&&(e.player.currentTime=o)}}}),(0,r.n8)((0,r.V5)(e),"_onPlay",function(){var t=e.player,n=t.currentTime,r=t.timeSegments;e._checkIfEnabled(r)&&n>=r[r.length-1].end&&(e.player.currentTime=r[0].start)}),e}return(0,r.j6)(n,[{key:"afterCreate",value:function(){this.curIndex=-1,this.curPos=null,this.lastCurrentTime=0,this.updateSegments(),this.on(o.DURATION_CHANGE,this._onDurationChange),this.on(o.LOADED_DATA,this._onLoadedData),this.on(o.TIME_UPDATE,this._onTimeupdate),this.on(o.SEEKING,this._onSeeking),this.on(o.PLAY,this._onPlay)}},{key:"setConfig",value:function(e){var t=this;if(e){var n=Object.keys(e);n.length<1||(n.forEach(function(n){t.config[n]=e[n]}),this.updateSegments())}}},{key:"updateSegments",value:function(){var e=this.config,t=e.disable,n=e.segments,r=this.player;if(t||!n||0===n.length)r.timeSegments=[],r.offsetDuration=0,r.offsetCurrentTime=-1;else{var i=this.formatTimeSegments(n,r.duration);r.timeSegments=i,r.offsetDuration=i.length>0?i[i.length-1].duration:0}}},{key:"formatTimeSegments",value:function(e,t){var n=[];return e?(e.sort(function(e,t){return e.start-t.start}),e.forEach(function(e,r){var i={};if(i.start=e.start<0?0:e.start,i.end=t>0&&e.end>t?t:e.end,!(t>0&&i.start>t)){n.push(i);var o=i.end-i.start;if(0===r)i.offset=e.start,i.cTime=0,i.segDuration=o,i.duration=o;else{var a=n[r-1];i.offset=a.offset+(i.start-a.end),i.cTime=a.duration+a.cTime,i.segDuration=o,i.duration=a.duration+o}}}),n):[]}},{key:"getSeekTime",value:function(e,t,n,r){var i=-1,o=r[n],a=o.start,s=o.end;if(e>=a&&e<=s)return i;var l=e-t;if(l<0&&e<a){var c=t>a?t-a:0;return i=n-1>=0?r[n-1].end+l+c:0,i}return-1}},{key:"_checkIfEnabled",value:function(e){return!(!e||e.length<1)}},{key:"changeIndex",value:function(e,t){this.curIndex=e,e>=0&&t.length>0?this.curPos=t[e]:this.curPos=null}}],[{key:"pluginName",get:function(){return"TimeSegmentsControls"}},{key:"defaultConfig",get:function(){return{disable:!0,segments:[]}}}]),n}(I.Ay);function st(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">\n  <g>\n    <path transform="scale(1.5 1.5)" d="M11.6665 9.16663H4.1665C2.78579 9.16663 1.6665 10.2859 1.6665 11.6666V15.8333C1.6665 17.214 2.78579 18.3333 4.1665 18.3333H11.6665C13.0472 18.3333 14.1665 17.214 14.1665 15.8333V11.6666C14.1665 10.2859 13.0472 9.16663 11.6665 9.16663Z" fill="white"/>\n    <path transform="scale(1.5 1.5)" fill-rule="evenodd" clip-rule="evenodd" d="M3.88148 4.06298C3.75371 4.21005 3.67667 4.40231 3.67749 4.61242C3.67847 4.87253 3.79852 5.10435 3.98581 5.25646L6.99111 8.05895C7.32771 8.37283 7.85502 8.35443 8.16891 8.01782C8.48279 7.68122 8.46437 7.15391 8.12778 6.84003L6.62061 5.43457L9.8198 5.4224C9.82848 5.42239 9.8372 5.42221 9.84591 5.4219C10.9714 5.38233 12.0885 5.6285 13.0931 6.13744C14.0976 6.64635 14.957 7.40148 15.5908 8.33234C16.2246 9.2632 16.6122 10.3394 16.7177 11.4606C16.823 12.5819 16.6427 13.7115 16.1934 14.7442C16.0098 15.1661 16.203 15.6571 16.6251 15.8408C17.0471 16.0243 17.5381 15.8311 17.7216 15.4091C18.2833 14.1183 18.5087 12.7063 18.3771 11.3047C18.2453 9.90318 17.7607 8.55792 16.9684 7.39433C16.1761 6.23073 15.1021 5.28683 13.8463 4.65065C12.5946 4.01651 11.203 3.70872 9.80072 3.75583L6.43415 3.76862L7.96326 2.12885C8.27715 1.79225 8.25872 1.26494 7.92213 0.951061C7.58553 0.63718 7.05822 0.655585 6.74433 0.99219L3.90268 4.0395C3.89545 4.04724 3.88841 4.05509 3.88154 4.06303L3.88148 4.06298Z" fill="white"/>\n  </g>\n  <defs>\n    <clipPath>\n      <rect width="40" height="40" fill="white"/>\n    </clipPath>\n  </defs>\n</svg>\n',"image/svg+xml").firstChild}var lt=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(e){var i;return(0,r.xs)(this,n),i=t.call(this,e),i.rotateDeg=i.config.rotateDeg||0,i}return(0,r.j6)(n,[{key:"afterCreate",value:function(){var e=this;if(!this.config.disable){(0,r.Jt)((0,r.U6)(n.prototype),"afterCreate",this).call(this),this.appendChild(".xgplayer-icon",this.icons.rotate),this.onBtnClick=this.onBtnClick.bind(this),this.bind(".xgplayer-icon",["click","touchend"],this.onBtnClick),this.on(o.VIDEO_RESIZE,function(){e.rotateDeg&&e.config.innerRotate&&h.Ay.setTimeout(e,function(){e.updateRotateDeg(e.rotateDeg,e.config.innerRotate)},100)});var t=this.player.root;this.rootWidth=t.style.width||t.offsetWidth||t.clientWidth,this.rootHeight=t.style.height||t.offsetHeight||t.clientHeight,this.rotateDeg&&this.updateRotateDeg(this.rotateDeg,this.config.innerRotate)}}},{key:"destroy",value:function(){(0,r.Jt)((0,r.U6)(n.prototype),"destroy",this).call(this),this.unbind(".xgplayer-icon",["click","touchend"],this.onBtnClick)}},{key:"onBtnClick",value:function(e){e.preventDefault(),e.stopPropagation(),this.emitUserAction(e,"rotate"),this.rotate(this.config.clockwise,this.config.innerRotate,1)}},{key:"updateRotateDeg",value:function(e,t){if(e||(e=0),t)this.player.videoRotateDeg=e;else{var n=this.player,r=this.rootWidth,i=this.rootHeight,o=n.root,a=n.innerContainer,s=n.media,l=o.offsetWidth,c=a&&t?a.offsetHeight:o.offsetHeight,u=r,d=i,h=0,f=0;.75!==e&&.25!==e||(u="".concat(c,"px"),d="".concat(l,"px"),h=-(c-l)/2,f=-(l-c)/2);var p="translate(".concat(h,"px,").concat(f,"px) rotate(").concat(e,"turn)"),g={transformOrigin:"center center",transform:p,webKitTransform:p,height:d,width:u},m=t?s:o,v=t?n.getPlugin("poster"):null;Object.keys(g).map(function(e){m.style[e]=g[e],v&&v.root&&(v.root.style[e]=g[e])})}}},{key:"rotate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.player;this.rotateDeg||(this.rotateDeg=0);var i=e?1:-1;this.rotateDeg=(this.rotateDeg+1+.25*i*n)%1,this.updateRotateDeg(this.rotateDeg,t),r.emit(o.ROTATE,360*this.rotateDeg)}},{key:"registerIcons",value:function(){return{rotate:st}}},{key:"render",value:function(){if(!this.config.disable)return'\n    <xg-icon class="xgplayer-rotate">\n      <div class="xgplayer-icon">\n      </div>\n      '.concat(X(this,"ROTATE_TIPS",this.playerConfig.isHideTips),"\n    </xg-icon>")}}],[{key:"pluginName",get:function(){return"rotate"}},{key:"defaultConfig",get:function(){return{position:M.lP.CONTROLS_RIGHT,index:6,innerRotate:!0,clockwise:!1,rotateDeg:0,disable:!1}}}]),n}(J);function ct(){return(new DOMParser).parseFromString('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path fill-rule="evenodd" clip-rule="evenodd"\n    d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"\n    fill="white" />\n</svg>',"image/svg+xml").firstChild}function ut(){return(new DOMParser).parseFromString('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path fill-rule="evenodd" clip-rule="evenodd"\n    d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"\n    fill="white" />\n  <path fill-rule="evenodd" clip-rule="evenodd"\n    d="M9.4998 7.7C9.77595 7.7 9.9998 7.47614 9.9998 7.2V6.5C9.9998 6.22386 9.77595 6 9.4998 6H5.5402L5.52754 6.00016H5.5C5.22386 6.00016 5 6.22401 5 6.50016V10.4598C5 10.7359 5.22386 10.9598 5.5 10.9598H6.2C6.47614 10.9598 6.7 10.7359 6.7 10.4598V8.83005L8.76983 10.9386C8.96327 11.1357 9.27984 11.1386 9.47691 10.9451L9.97645 10.4548C10.1735 10.2613 10.1764 9.94476 9.983 9.7477L7.97289 7.7H9.4998Z"\n    fill="white" />\n</svg>',"image/svg+xml").firstChild}var dt={PIP:"picture-in-picture",INLINE:"inline",FULLSCREEN:"fullscreen"},ht=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){var e;(0,r.xs)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,r.n8)((0,r.V5)(e),"switchPIP",function(t){if(!e.isPIPAvailable())return!1;t.stopPropagation&&t.stopPropagation(),e.isPip?(e.exitPIP(),e.emitUserAction(t,"change_pip",{props:"pip",from:!0,to:!1}),e.setAttr("data-state","normal")):4===e.player.media.readyState&&(e.requestPIP(),e.emitUserAction(t,"change_pip",{props:"pip",from:!1,to:!0}),e.setAttr("data-state","pip"))}),e}return(0,r.j6)(n,[{key:"beforeCreate",value:function(e){"boolean"===typeof e.player.config.pip&&(e.config.showIcon=e.player.config.pip)}},{key:"afterCreate",value:function(){var e=this;this.isPIPAvailable()&&((0,r.Jt)((0,r.U6)(n.prototype),"afterCreate",this).call(this),this.pMode=dt.INLINE,this.initPipEvents(),this.config.showIcon&&this.initIcons(),this.once(o.COMPLETE,function(){e.config.showIcon&&(h.Ay.removeClass(e.find(".xgplayer-icon"),"xg-icon-disable"),e.bind("click",e.switchPIP))}))}},{key:"registerIcons",value:function(){return{pipIcon:{icon:ct,class:"xg-get-pip"},pipIconExit:{icon:ut,class:"xg-exit-pip"}}}},{key:"initIcons",value:function(){var e=this.icons;this.appendChild(".xgplayer-icon",e.pipIcon),this.appendChild(".xgplayer-icon",e.pipIconExit)}},{key:"initPipEvents",value:function(){var e=this,t=this.player;this.leavePIPCallback=function(){var n=t.paused;h.Ay.setTimeout(e,function(){!n&&t.mediaPlay()},0),!n&&t.mediaPlay(),e.setAttr("data-state","normal"),e.pipWindow=null,t.emit(o.PIP_CHANGE,!1)},this.enterPIPCallback=function(n){t.emit(o.PIP_CHANGE,!0),null!==n&&void 0!==n&&n.pictureInPictureWindow&&(e.pipWindow=n.pictureInPictureWindow),e.setAttr("data-state","pip")},this.onWebkitpresentationmodechanged=function(n){var r=t.media.webkitPresentationMode;e.pMode===dt.FULLSCREEN&&r!==dt.FULLSCREEN&&t.onFullscreenChange(null,!1),e.pMode=r,r===dt.PIP?e.enterPIPCallback(n):r===dt.INLINE&&e.leavePIPCallback(n)},t.media&&(t.media.addEventListener("enterpictureinpicture",this.enterPIPCallback),t.media.addEventListener("leavepictureinpicture",this.leavePIPCallback),n.checkWebkitSetPresentationMode(t.media)&&t.media.addEventListener("webkitpresentationmodechanged",this.onWebkitpresentationmodechanged))}},{key:"copyStyleIntoPiPWindow",value:function(e){var t=(0,r.Og)(document.styleSheets).map(function(t){try{return(0,r.Og)(t.cssRules).map(function(e){return e.cssText}).join("")}catch(i){var n=document.createElement("link");n.rel="stylesheet",n.type=t.type,n.media=t.media,n.href=t.href,e.document.head.appendChild(n)}return""}).filter(Boolean).join("\n"),n=document.createElement("style");n.textContent=t,e.document.head.appendChild(n)}},{key:"requestPIP",value:function(){var e=this,t=this.player,r=this.playerConfig,i=this.config;if(this.isPIPAvailable()&&!this.isPip)try{var o=r.poster;if(o&&(t.media.poster="String"===h.Ay.typeOf(o)?o:o.poster),i.preferDocument&&this.isDocPIPAvailable()){var a={};if(i.width&&i.height)a.width=i.width,a.height=i.height;else{var s=t.root.getBoundingClientRect();a.width=s.width,a.height=s.height}documentPictureInPicture.requestWindow(a).then(function(n){var r=i.docPiPNode,o=i.docPiPStyle;e.enterPIPCallback();var a=r||t.root,s=a.parentElement,l=a.previousSibling,c=a.nextSibling;e.copyStyleIntoPiPWindow(n);var u=document.createElement("style");if(u.append("body{padding:0; margin:0;}"),o){var d="";"string"===typeof o?d=o:"function"===typeof o&&(d=o.call(i)),d&&u.append(d)}else a===t.root&&u.append("\n              .xgplayer{width: 100%!important; height: 100%!important;}\n            ");n.document.head.append(u),n.document.body.append(a),n.addEventListener("pagehide",function(t){s&&(c?s.insertBefore(a,c):l?s.insertBefore(a,l.nextSibling):s.appendChild(a)),e.leavePIPCallback()},{once:!0})})}else n.checkWebkitSetPresentationMode(t.media)?t.media.webkitSetPresentationMode("picture-in-picture"):t.media.requestPictureInPicture();return!0}catch(l){return console.error("requestPiP",l),!1}}},{key:"exitPIP",value:function(){var e=this.player;try{var t;if(this.isPIPAvailable()&&this.isPip)this.isDocPIPAvailable()&&null!==(t=documentPictureInPicture)&&void 0!==t&&t.window?documentPictureInPicture.window.close():n.checkWebkitSetPresentationMode(e.media)?e.media.webkitSetPresentationMode("inline"):document.exitPictureInPicture();return!0}catch(r){return console.error("exitPIP",r),!1}}},{key:"isPip",get:function(){var e,t=this.player;return!(!this.isDocPIPAvailable()||null===(e=documentPictureInPicture)||void 0===e||!e.window)||document.pictureInPictureElement&&document.pictureInPictureElement===t.media||t.media.webkitPresentationMode===dt.PIP}},{key:"isPIPAvailable",value:function(){var e=this.player.media,t="Boolean"===h.Ay.typeOf(document.pictureInPictureEnabled)&&document.pictureInPictureEnabled;return t&&("Boolean"===h.Ay.typeOf(e.disablePictureInPicture)&&!e.disablePictureInPicture||e.webkitSupportsPresentationMode&&"Function"===h.Ay.typeOf(e.webkitSetPresentationMode))||this.isDocPIPAvailable()}},{key:"isDocPIPAvailable",value:function(){return"documentPictureInPicture"in window&&/^(https|file)/.test(location.protocol)}},{key:"destroy",value:function(){(0,r.Jt)((0,r.U6)(n.prototype),"destroy",this).call(this);var e=this.player;e.media.removeEventListener("enterpictureinpicture",this.enterPIPCallback),e.media.removeEventListener("leavepictureinpicture",this.leavePIPCallback),n.checkWebkitSetPresentationMode(e.media)&&e.media.removeEventListener("webkitpresentationmodechanged",this.onWebkitpresentationmodechanged),this.exitPIP(),this.unbind("click",this.btnClick)}},{key:"render",value:function(){if(this.config.showIcon&&this.isPIPAvailable())return'<xg-icon class="xgplayer-pip">\n      <div class="xgplayer-icon xg-icon-disable">\n      </div>\n      '.concat(X(this,"PIP",this.playerConfig.isHideTips),"\n    </xg-icon>")}}],[{key:"pluginName",get:function(){return"pip"}},{key:"defaultConfig",get:function(){return{position:M.lP.CONTROLS_RIGHT,index:6,showIcon:!1,preferDocument:!1,width:void 0,height:void 0,docPiPNode:void 0,docPiPStyle:void 0}}},{key:"checkWebkitSetPresentationMode",value:function(e){return"function"===typeof e.webkitSetPresentationMode}}]),n}(J);function ft(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">\n  <path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>\n</svg>\n',"image/svg+xml").firstChild}var pt=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(e){var i;return(0,r.xs)(this,n),i=t.call(this,e),(0,r.n8)((0,r.V5)(i),"playNext",function(e){var t=(0,r.V5)(i),n=t.player;e.preventDefault(),e.stopPropagation(),i.idx+1<i.config.urlList.length?(i.idx++,i.nextHandler(i.config.urlList[i.idx],i.idx),n.emit(o.PLAYNEXT,i.idx+1)):(i.nextHandler(),n.emit(o.PLAYNEXT))}),i.idx=-1,i}return(0,r.j6)(n,[{key:"afterCreate",value:function(){this.config.urlList&&0!==this.config.urlList.length&&(this.appendChild(".xgplayer-icon",this.icons.playNext),this.initEvents())}},{key:"registerIcons",value:function(){return{playNext:ft}}},{key:"initEvents",value:function(){this.nextHandler=this.hook("nextClick",this.changeSrc);var e="mobile"===w.A.device?"touchend":"click";this.bind(e,this.playNext),this.show()}},{key:"changeSrc",value:function(e){var t=this.player;e&&(t.pause(),t.currentTime=0,t.switchURL?t.switchURL(e):t.src=e,t.config.url=e,t.play())}},{key:"destroy",value:function(){this.unbind(["touchend","click"],this.playNext)}},{key:"render",value:function(){if(this.config.urlList&&0!==this.config.urlList.length)return'\n     <xg-icon class="xgplayer-playnext">\n      <div class="xgplayer-icon">\n      </div>\n      '.concat(X(this,"PLAYNEXT_TIPS",this.playerConfig.isHideTips),"\n     </xg-icon>\n    ")}}],[{key:"pluginName",get:function(){return"playNext"}},{key:"defaultConfig",get:function(){return{position:M.lP.CONTROLS_LEFT,index:1,url:null,urlList:[]}}}]),n}(M.Ay),gt=n(35753),mt=n.n(gt);function vt(){return(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">\n  <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n    <g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">\n      <g id="Group-2">\n        <g id="volme_big-copy" transform="translate(488.000000, 340.000000)">\n          <rect id="Rectangle-18" x="11" y="4" width="2" height="12" rx="1"></rect>\n          <rect id="Rectangle-2" x="3" y="18" width="18" height="2" rx="1"></rect>\n          <rect id="Rectangle-2" transform="translate(4.000000, 17.500000) rotate(90.000000) translate(-4.000000, -17.500000) " x="1.5" y="16.5" width="5" height="2" rx="1"></rect><rect id="Rectangle-2-Copy-3" transform="translate(20.000000, 17.500000) rotate(90.000000) translate(-20.000000, -17.500000) " x="17.5" y="16.5" width="5" height="2" rx="1"></rect>\n          <path d="M9.48791171,8.26502656 L9.48791171,14.2650266 C9.48791171,14.8173113 9.04019646,15.2650266 8.48791171,15.2650266 C7.93562696,15.2650266 7.48791171,14.8173113 7.48791171,14.2650266 L7.48791171,7.26502656 C7.48791171,6.71274181 7.93562696,6.26502656 8.48791171,6.26502656 L15.4879117,6.26502656 C16.0401965,6.26502656 16.4879117,6.71274181 16.4879117,7.26502656 C16.4879117,7.81731131 16.0401965,8.26502656 15.4879117,8.26502656 L9.48791171,8.26502656 Z" id="Combined-Shape" transform="translate(11.987912, 10.765027) scale(1, -1) rotate(45.000000) translate(-11.987912, -10.765027) "></path>\n        </g>\n      </g>\n    </g>\n  </g>\n</svg>\n',"image/svg+xml").firstChild}var At=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(e){var i;return(0,r.xs)(this,n),i=t.call(this,e),(0,r.n8)((0,r.V5)(i),"download",function(e){if(!i.isLock){i.emitUserAction(e,"download");var t=i.playerConfig.url,n="";"String"===h.Ay.typeOf(t)?n=t:"Array"===h.Ay.typeOf(t)&&t.length>0&&(n=t[0].src);var r=i.getAbsoluteURL(n);mt()(r),i.isLock=!0,i.timer=window.setTimeout(function(){i.isLock=!1,window.clearTimeout(i.timer),i.timer=null},300)}}),i.timer=null,i.isLock=!1,i}return(0,r.j6)(n,[{key:"afterCreate",value:function(){(0,r.Jt)((0,r.U6)(n.prototype),"afterCreate",this).call(this),this.config.disable||(this.appendChild(".xgplayer-icon",this.icons.download),this._handler=this.hook("click",this.download,{pre:function(e){e.preventDefault(),e.stopPropagation()}}),this.bind(["click","touchend"],this._handler))}},{key:"registerIcons",value:function(){return{download:vt}}},{key:"getAbsoluteURL",value:function(e){if(!e.match(/^https?:\/\//)){var t=document.createElement("div");t.innerHTML='<a href="'.concat(e,'">x</a>'),e=t.firstChild.href}return e}},{key:"destroy",value:function(){(0,r.Jt)((0,r.U6)(n.prototype),"destroy",this).call(this),this.unbind(["click","touchend"],this.download),window.clearTimeout(this.timer),this.timer=null}},{key:"render",value:function(){if(!this.config.disable)return'<xg-icon class="xgplayer-download">\n   <div class="xgplayer-icon">\n   </div>\n   '.concat(X(this,"DOWNLOAD_TIPS",this.playerConfig.isHideTips),"\n    </xg-icon>")}}],[{key:"pluginName",get:function(){return"download"}},{key:"defaultConfig",get:function(){return{position:M.lP.CONTROLS_RIGHT,index:3,disable:!0}}}]),n}(J),bt=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){return(0,r.xs)(this,n),t.apply(this,arguments)}return(0,r.j6)(n,[{key:"beforeCreate",value:function(e){"boolean"===typeof e.player.config.screenShot&&(e.config.disable=!e.player.config.screenShot)}},{key:"afterCreate",value:function(){(0,r.Jt)((0,r.U6)(n.prototype),"afterCreate",this).call(this),this.appendChild(".xgplayer-icon",this.icons.screenshotIcon);var e=this.config;this.initSize=function(t){e.fitVideo&&(e.width=t.vWidth,e.height=t.vHeight)},this.once(o.VIDEO_RESIZE,this.initSize)}},{key:"onPluginsReady",value:function(){this.show(),this.onClickBtn=this.onClickBtn.bind(this),this.bind(["click","touchend"],this.onClickBtn)}},{key:"saveScreenShot",value:function(e,t){var n,r=document.createElement("a");r.href=e,r.download=t;try{"undefined"!==typeof MouseEvent?n=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}):(n=document.createEvent("MouseEvents"),n.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null))}catch(i){console.error("MouseEvent unsupported",i)}n&&r.dispatchEvent(n)}},{key:"createCanvas",value:function(e,t){var n=document.createElement("canvas"),r=n.getContext("2d");this.canvasCtx=r,this.canvas=n,n.width=e||this.config.width,n.height=t||this.config.height,r.imageSmoothingEnabled=!0,r.imageSmoothingEnabled&&(r.imageSmoothingQuality="high")}},{key:"onClickBtn",value:function(e){var t=this;e.preventDefault(),e.stopPropagation(),this.emitUserAction(e,"shot");var n=this.config;this.shot(n.width,n.height).then(function(e){t.emit(o.SCREEN_SHOT,e),n.saveImg&&t.saveScreenShot(e,n.name+n.format)})}},{key:"shot",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{quality:.92,type:"image/png"},i=this.config,o=this.player,a=r.quality||i.quality,s=r.type||i.type;return new Promise(function(r,l){var c,u=null;if(o.media.canvas)u=o.media.canvas;else{n.canvas?(n.canvas.width=e||i.width,n.canvas.height=t||i.height):n.createCanvas(e,t),u=n.canvas,c=n.canvasCtx;var d,h,f,p,g=o.media.videoWidth/o.media.videoHeight,m=u.width/u.height,v=0,A=0,b=o.media.videoWidth,y=o.media.videoHeight;g>m?(f=u.width,p=u.width/g,d=0,h=Math.round((u.height-p)/2)):g===m?(f=u.width,p=u.height,d=0,h=0):g<m&&(f=u.height*g,p=u.height,d=Math.round((u.width-f)/2),h=0),c.drawImage(o.media,v,A,b,y,d,h,f,p)}var w=u.toDataURL(s,a).replace(s,"image/octet-stream");w=w.replace(/^data:image\/[^;]+/,"data:application/octet-stream"),r(w)})}},{key:"registerIcons",value:function(){return{screenshotIcon:null}}},{key:"destroy",value:function(){(0,r.Jt)((0,r.U6)(n.prototype),"destroy",this).call(this),this.unbind(["click","touchend"],this.onClickBtn),this.off(o.VIDEO_RESIZE,this.initSize)}},{key:"render",value:function(){if(!this.config.disable){var e=this.icons.screenshotIcon?"xgplayer-icon":"xgplayer-icon btn-text",t="SCREENSHOT";return'\n      <xg-icon class="xgplayer-shot">\n      <div class="'.concat(e,'">\n      ').concat(this.icons.screenshotIcon?"":'<span lang-key="'.concat(this.i18nKeys[t],'">').concat(this.i18n[t],"</span>"),"\n      </div>\n    </xg-icon>")}}}],[{key:"pluginName",get:function(){return"screenShot"}},{key:"defaultConfig",get:function(){return{position:M.lP.CONTROLS_RIGHT,index:5,quality:.92,type:"image/png",format:".png",width:600,height:337,saveImg:!0,fitVideo:!0,disable:!1,name:"screenshot"}}}]),n}(J),yt=n(39726),wt=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(e){var i;return(0,r.xs)(this,n),i=t.call(this,e),i.curTime=0,i.isPaused=!0,i}return(0,r.j6)(n,[{key:"beforeCreate",value:function(e){var t=e.config.list;Array.isArray(t)&&t.length>0&&(e.config.list=t.map(function(e){return!e.text&&e.name&&(e.text=e.name),e.text||(e.text=e.definition),e}))}},{key:"afterCreate",value:function(){var e=this;(0,r.Jt)((0,r.U6)(n.prototype),"afterCreate",this).call(this),this.on("resourceReady",function(t){e.changeDefinitionList(t)}),this.on(o.DEFINITION_CHANGE,function(t){e.renderItemList(e.config.list,t.to)}),this.player.definitionList.length<2&&this.hide()}},{key:"show",value:function(e){!this.config.list||this.config.list.length<2||h.Ay.addClass(this.root,"show")}},{key:"initDefinition",value:function(){var e=this.config,t=e.list,n=e.defaultDefinition;if(t.length>0){var r=null;t.map(function(e){e.definition===n&&(r=e)}),r||(r=t[0]),this.changeDefinition(r)}}},{key:"renderItemList",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.list||[],i=arguments.length>1?arguments[1]:void 0,o=i&&i.definition?i.definition:this.config.defaultDefinition;i&&t.forEach(function(e){e.selected=!1});var a=0,s=t.map(function(t,n){var i=(0,r.T1)((0,r.T1)({},t),{},{showText:e.getTextByLang(t)||t.definition,selected:!1});return(t.selected||t.definition&&t.definition==o)&&(i.selected=!0,a=n),i});(0,r.Jt)((0,r.U6)(n.prototype),"renderItemList",this).call(this,s,a)}},{key:"changeDefinitionList",value:function(e){Array.isArray(e)&&(this.config.list=e.map(function(e){return!e.text&&e.name&&(e.text=e.name),e.text||(e.text=e.definition),e}),this.renderItemList(),this.config.list.length<2?this.hide():this.show())}},{key:"changeDefinition",value:function(e,t){this.player.changeDefinition(e,t)}},{key:"onItemClick",value:function(e,t){var i=this.player.definitionList;(0,r.Jt)((0,r.U6)(n.prototype),"onItemClick",this).apply(this,arguments),this.emitUserAction(e,"change_definition",{from:t.from,to:t.to});for(var o=0;o<i.length;o++)t.to&&i[o].definition===t.to.definition&&(t.to.url=i[o].url),t.from&&i[o].definition===t.from.definition&&(t.from.url=i[o].url);this.player.changeDefinition(t.to,t.from)}}],[{key:"pluginName",get:function(){return"definition"}},{key:"defaultConfig",get:function(){return(0,r.T1)((0,r.T1)({},yt.A.defaultConfig),{},{position:M.lP.CONTROLS_RIGHT,index:3,list:[],defaultDefinition:"",disable:!1,hidePortrait:!1,className:"xgplayer-definition",isShowIcon:!0})}}]),n}(yt.A),_t=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(e){var i;return(0,r.xs)(this,n),i=t.call(this,e),i.curRate=1,i}return(0,r.j6)(n,[{key:"beforeCreate",value:function(e){var t=e.player.config.playbackRate,n=t?Array.isArray(t)?t:e.config.list:[];Array.isArray(n)&&(e.config.list=n.map(function(e){return"number"===typeof e?e={rate:e,text:"".concat(e,"x")}:!e.text&&e.rate&&(e.text="".concat(e.rate,"x")),e}))}},{key:"afterCreate",value:function(){var e=this;(0,r.Jt)((0,r.U6)(n.prototype),"afterCreate",this).call(this),this.on(o.RATE_CHANGE,function(){e.curValue!==e.player.playbackRate&&e.renderItemList()}),this.renderItemList()}},{key:"show",value:function(e){this.config.list&&0!==this.config.list.length&&(0,r.Jt)((0,r.U6)(n.prototype),"show",this).call(this)}},{key:"onItemClick",value:function(e,t){(0,r.Jt)((0,r.U6)(n.prototype),"onItemClick",this).call(this,e,t);var i=e.delegateTarget,o=Number(i.getAttribute("rate"));if(!o||o===this.curValue)return!1;var a={playbackRate:{from:this.player.playbackRate,to:o}};this.emitUserAction(e,"change_rate",{props:a}),this.curValue=o,this.player.playbackRate=o}},{key:"renderItemList",value:function(){var e=this,t=this.player.playbackRate||1;this.curValue=t;var i=-1,o=this.config.list.map(function(n,r){var o={rate:n.rate};return o.rate===t&&(o.selected=!0,i=r),o.showText=e.getTextByLang(n),o});(0,r.Jt)((0,r.U6)(n.prototype),"renderItemList",this).call(this,o,i)}},{key:"changeCurrentText",value:function(){if(!this.isIcons){var e=this.config.list,t=this.curIndex<e.length?this.curIndex:0,n=e[t],r="";r=!n||this.curIndex<0?"".concat(this.player.playbackRate,"x"):this.getTextByLang(n,"iconText"),this.find(".icon-text").innerHTML=r}}},{key:"destroy",value:function(){(0,r.Jt)((0,r.U6)(n.prototype),"destroy",this).call(this)}}],[{key:"pluginName",get:function(){return"playbackRate"}},{key:"defaultConfig",get:function(){return(0,r.T1)((0,r.T1)({},yt.A.defaultConfig),{},{position:M.lP.CONTROLS_RIGHT,index:4,list:[2,1.5,1,.75,.5],className:"xgplayer-playbackrate",isShowIcon:!0,hidePortrait:!1})}}]),n}(yt.A),xt=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){return(0,r.xs)(this,n),t.apply(this,arguments)}return(0,r.j6)(n,[{key:"afterCreate",value:function(){var e=this;this.clickHandler=this.hook("errorRetry",this.errorRetry,{pre:function(e){e.preventDefault(),e.stopPropagation()}}),this.onError=this.hook("showError",this.handleError),this.bind(".xgplayer-error-refresh","click",this.clickHandler),this.on(o.ERROR,function(t){e.onError(t)})}},{key:"errorRetry",value:function(e){this.emitUserAction(e,"error_retry",{}),this.player.retry()}},{key:"handleError",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.player,n=e.errorType,r=t.errorNote?this.i18n[t.errorNote]:"";if(!r)switch(n){case"decoder":r=this.i18n.MEDIA_ERR_DECODE;break;case"network":r=this.i18n.MEDIA_ERR_NETWORK;break;default:r=this.i18n.MEDIA_ERR_SRC_NOT_SUPPORTED}this.find(".xgplayer-error-text").innerHTML=r,this.find(".xgplayer-error-tips").innerHTML="".concat(this.i18n.REFRESH_TIPS,'<span class="xgplayer-error-refresh">').concat(this.i18n.REFRESH,"</span>")}},{key:"destroy",value:function(){this.unbind(".xgplayer-error-refresh","click",this.clickHandler)}},{key:"render",value:function(){return'<xg-error class="xgplayer-error">\n      <div class="xgplayer-errornote">\n       <span class="xgplayer-error-text"></span>\n       <span class="xgplayer-error-tips"><em class="xgplayer-error-refresh"></em></span>\n      </div>\n    </xg-error>'}}],[{key:"pluginName",get:function(){return"error"}}]),n}(M.Ay),Et=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){return(0,r.xs)(this,n),t.apply(this,arguments)}return(0,r.j6)(n,[{key:"afterCreate",value:function(){var e=this;this.intervalId=0,this.customConfig=null,this.bind(".highlight",["click","touchend"],function(t){(e.config.onClick||e.customOnClick)&&(t.preventDefault(),t.stopPropagation(),e.customOnClick?e.customOnClick(t):e.config.onClick(t))}),this.player.showPrompt=function(){e.showPrompt.apply(e,arguments)},this.player.hidePrompt=function(){e.hide()}}},{key:"setStyle",value:function(e){var t=this;Object.keys(e).map(function(n){t.root.style[n]=e[n]})}},{key:"showPrompt",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(e){this.customOnClick=r;var i=this.config.interval;this.intervalId&&(clearTimeout(this.intervalId),this.intervalId=null),h.Ay.addClass(this.root,"show"),"arrow"===n.mode&&h.Ay.addClass(this.root,"arrow"),this.find(".xgplayer-prompt-detail").innerHTML="string"===typeof e?e:"".concat(e.text||"")+"".concat(e.highlight?'<i class="highlight">'.concat(e.highlight,"</i>"):""),n.style&&this.setStyle(n.style);var o="boolean"===typeof n.autoHide?n.autoHide:this.config.autoHide;if(o){var a=n.interval||i;this.intervalId=setTimeout(function(){t.hide()},a)}}}},{key:"hide",value:function(){h.Ay.removeClass(this.root,"show"),h.Ay.removeClass(this.root,"arrow"),this.root.removeAttribute("style"),this.customOnClick=null}},{key:"render",value:function(){return'<xg-prompt class="xgplayer-prompt '.concat(P.CONTROLS_FOLLOW,'">\n    <span class="xgplayer-prompt-detail"></span>\n    </xg-prompt>')}}],[{key:"pluginName",get:function(){return"prompt"}},{key:"defaultConfig",get:function(){return{interval:3e3,style:{},mode:"arrow",autoHide:!0,detail:{text:"",highlight:""},onClick:function(){}}}}]),n}(M.Ay),St={time:0,text:"",id:1,duration:1,color:"#fff",style:{},width:6,height:6};function Ct(e){Object.keys(St).map(function(t){void 0===e[t]&&(e[t]=St[t])})}var Tt={_updateDotDom:function(e,t){if(t){var n=this.calcuPosition(e.time,e.duration),r=e.style||{};r.left="".concat(n.left,"%"),r.width="".concat(n.width,"%"),t.setAttribute("data-text",e.text),t.setAttribute("data-time",e.time),n.isMini?h.Ay.addClass(t,"mini"):h.Ay.removeClass(t,"mini"),Object.keys(r).map(function(e){t.style[e]=r[e]})}},initDots:function(){var e=this;this._ispots.map(function(t){e.createDot(t,!1)}),this.ispotsInit=!0},createDot:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.player.plugins.progress;if(n&&(t&&(Ct(e),this._ispots.push(e)),this.ispotsInit||!t)){var r=this.calcuPosition(e.time,e.duration),i=e.style||{};i.left="".concat(r.left,"%"),i.width="".concat(r.width,"%");var o="xgspot_".concat(e.id," xgplayer-spot");r.isMini&&(o+=" mini");var a=e.template?'<div class="xgplayer-spot-pop">'.concat(e.template,"</div>"):"",s=h.Ay.createDom("xg-spot",a,{"data-text":e.text,"data-time":e.time,"data-id":e.id},o);Object.keys(i).map(function(e){s.style[e]=i[e]}),n.outer&&n.outer.appendChild(s),this.positionDot(s,e.id)}},findDot:function(e){if(this.player.plugins.progress){var t=this._ispots.filter(function(t,n){return t.id===e});return t.length>0?t[0]:null}},updateDot:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.player.plugins.progress;if(n){var r=this.findDot(e.id);if(r&&Object.keys(e).map(function(t){r[t]=e[t]}),this.ispotsInit){var i=n.find('xg-spot[data-id="'.concat(e.id,'"]'));i&&(this._updateDotDom(e,i),t&&this.showDot(e.id))}}},deleteDot:function(e){var t=this._ispots,n=this.player.plugins.progress;if(n){for(var r=[],i=0;i<t.length;i++)t[i].id===e&&r.push(i);for(var o=r.length,a=o-1;a>=0;a--)if(t.splice(r[a],1),this.ispotsInit){var s=n.find('xg-spot[data-id="'.concat(e,'"]'));s&&s.parentElement.removeChild(s)}}},deleteAllDots:function(){var e=this.player.plugins.progress;if(e)if(this.ispotsInit){for(var t=e.root.getElementsByTagName("xg-spot"),n=t.length-1;n>=0;n--)e.outer.removeChild(t[n]);this._ispots=[]}else this._ispots=[]},updateAllDots:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=this.player.plugins.progress;if(n)if(this.ispotsInit){this._ispots=[];var r=n.root.getElementsByTagName("xg-spot"),i=r.length;if(i>t.length)for(var o=i-1;o>t.length-1;o--)n.outer.removeChild(r[o]);t.forEach(function(t,n){n<i?(r[n].setAttribute("data-id","".concat(t.id)),e._ispots.push(t),e.updateDot(t)):e.createDot(t)})}else this._ispots=t},positionDots:function(){var e=this,t=this._ispots,n=this.playerSize,r=this.player.sizeInfo,i=this.player.plugins.progress;i&&r.width!==n.width&&(n.width=r.width,n.left=r.left,t.forEach(function(t){var n=i.find('xg-spot[data-id="'.concat(t.id,'"]'));n&&e.positionDot(n,t.id)}))},positionDot:function(e,t){var n=h.Ay.findDom(e,".xgplayer-spot-pop");if(n){var r=this.playerSize,i=e.getBoundingClientRect(),o=n.getBoundingClientRect(),a=i.left-r.left,s=r.width-a-i.width/2;if(a<o.width/2||r.width<o.width){var l=o.width/2-a;n.style.left="".concat(l,"px")}else if(s<o.width/2){var c=s-o.width/2+i.width/2;n.style.left="".concat(c,"px")}else n.style.left="50%"}},updateDuration:function(){var e=this,t=this.player.plugins.progress;if(t){var n=this._ispots;n.forEach(function(n){var r=t.find('xg-spot[data-id="'.concat(n.id,'"]'));e._updateDotDom(n,r)})}},getAllDotsDom:function(){var e=this.player.plugins.progress;if(!e)return[];var t=e.root.getElementsByTagName("xg-spot");return t},getDotDom:function(e){var t=this.player.plugins.progress;if(t)return t.find('xg-spot[data-id="'.concat(e,'"]'))}};function kt(e){var t=e.config,n=e.player;Object.keys(Tt).map(function(t){e[t]=Tt[t].bind(e)});var r=n.config.progressDot||t.ispots||[];e._ispots=r.map(function(e){return Ct(e),e}),e.ispotsInit=!1,e.playerSize={left:n.sizeInfo.left,width:n.sizeInfo.width},e.on(o.DURATION_CHANGE,function(){e.ispotsInit?e.updateDuration():e.initDots()}),e.on(o.VIDEO_RESIZE,function(){e.positionDots()})}var Ot={dragmove:"onProgressMove",dragstart:"onProgressDragStart",dragend:"onProgressDragEnd",click:"onProgressClick",mouseover:"onProgressMouseOver",mouseenter:"onProgressMouseOver"},Mt=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(e){var i;return(0,r.xs)(this,n),i=t.call(this,e),(0,r.n8)((0,r.V5)(i),"onMousemove",function(e){i.config.disable||(h.Ay.hasClass(e.target,"xg-spot-content")&&i.config.isHideThumbnailHover?i.player.plugins.progress.onMouseLeave(e):(i._state.f||h.Ay.hasClass(e.target,"xg-spot-content"))&&(h.Ay.event(e),e.stopPropagation()))}),(0,r.n8)((0,r.V5)(i),"onMousedown",function(e){i.config.disable||(i._state.f||h.Ay.hasClass(e.target,"xg-spot-content"))&&(h.Ay.event(e),e.stopPropagation())}),(0,r.n8)((0,r.V5)(i),"onMouseup",function(e){if(i.isDrag){var t=i.player.plugins.progress;t&&t.pos&&(t.onMouseUp(e),!t.pos.isEnter&&t.onMouseLeave(e))}}),(0,r.n8)((0,r.V5)(i),"onDotMouseLeave",function(e){if(!i.config.disable){i._curDot.removeEventListener("mouseleave",i.onDotMouseLeave),i.blurDot(e.target),i._curDot=null;var t=i.player.plugins.progress;t&&t.enableBlur(),i.show()}}),(0,r.n8)((0,r.V5)(i),"onProgressMouseOver",function(e,t){if(!i.config.disable&&h.Ay.hasClass(t.target,"xgplayer-spot")&&!i._curDot){i._curDot=t.target,i.focusDot(t.target),i._curDot.children.length>0&&i.hide();var n=i.player.plugins.progress;n&&n.disableBlur(),i._curDot.addEventListener("mouseleave",i.onDotMouseLeave)}}),i._ispots=[],i.videoPreview=null,i.videothumbnail=null,i.thumbnail=null,i.timeStr="",i._state={now:0,f:!1},i}return(0,r.j6)(n,[{key:"beforeCreate",value:function(e){var t=e.player.plugins.progress;t&&(e.root=t.root)}},{key:"afterCreate",value:function(){var e=this;this._curDot=null,this.handlerSpotClick=this.hook("spotClick",function(t,n){n.seekTime&&e.player.seek(n.seekTime)}),this.transformTimeHook=this.hook("transformTime",function(t){e.setTimeContent(h.Ay.format(t))}),kt(this),this.on(o.DURATION_CHANGE,function(){e.show()}),this.config.disable&&this.disable(),this.extTextRoot=this.find(".xg-spot-ext-text")}},{key:"setConfig",value:function(e){var t=this;e&&Object.keys(e).map(function(n){t.config[n]=e[n]})}},{key:"onPluginsReady",value:function(){var e=this.player;e.plugins.progress&&(this.previewLine=this.find(".xg-spot-line"),this.timePoint=this.find(".xgplayer-progress-point"),this.timeText=this.find(".xg-spot-time"),this.tipText=this.find(".spot-inner-text"),this._hasThumnail=!1,this.registerThumbnail(),this.bindEvents())}},{key:"bindEvents",value:function(){var e=this,t=this.player.plugins.progress;if(t&&(Object.keys(Ot).map(function(n){e[Ot[n]]=e[Ot[n]].bind(e),t.addCallBack(n,e[Ot[n]])}),"mobile"!==w.A.device)){this.bind(".xg-spot-info","mousemove",this.onMousemove),this.bind(".xg-spot-info","mousedown",this.onMousedown),this.bind(".xg-spot-info","mouseup",this.onMouseup);var n=this.hook("previewClick",function(){});this.handlerPreviewClick=function(r){r.stopPropagation(),n(parseInt(1e3*e._state.now,10)/1e3,r),t&&t.onMouseUp(r)},this.bind(".xg-spot-content","mouseup",this.handlerPreviewClick)}}},{key:"onProgressMove",value:function(e,t){!this.config.disable&&this.player.duration&&this.updatePosition(e.offset,e.width,e.currentTime,e.e)}},{key:"onProgressDragStart",value:function(e){!this.config.disable&&this.player.duration&&(this.isDrag=!0,this.videoPreview&&h.Ay.addClass(this.videoPreview,"show"))}},{key:"onProgressDragEnd",value:function(e){!this.config.disable&&this.player.duration&&(this.isDrag=!1,this.videoPreview&&h.Ay.removeClass(this.videoPreview,"show"))}},{key:"onProgressClick",value:function(e,t){this.config.disable||h.Ay.hasClass(t.target,"xgplayer-spot")&&(t.stopPropagation(),t.preventDefault(),["time","id","text"].map(function(n){e[n]=t.target.getAttribute("data-".concat(n))}),e.time&&(e.time=Number(e.time)),this.handlerSpotClick(t,e))}},{key:"updateLinePos",value:function(e,t){var n=this.root,r=this.previewLine,i=this.player,o=this.config,a=i.controls.mode,s="flex"===a,l=n.getBoundingClientRect().width;if(l||!this._hasThumnail){l=this._hasThumnail&&l<o.width?o.width:l;var c,u=e-l/2;u<0&&!s?(u=0,c=e-l/2):u>t-l&&!s?(c=u-(t-l),u=t-l):c=0,void 0!==c&&(r.style.transform="translateX(".concat(c.toFixed(2),"px)")),n.style.transform="translateX(".concat(u.toFixed(2),"px) translateZ(0)")}}},{key:"updateTimeText",value:function(e){var t=this.timeText,n=this.timePoint;t.innerHTML=e,!this.thumbnail&&(n.innerHTML=e)}},{key:"updatePosition",value:function(e,t,n,r){var i=this.root,o=this.config,a=this._state;if(i){a.now=n,this.transformTimeHook(n);var s=this.timeStr;r&&r.target&&h.Ay.hasClass(r.target,"xgplayer-spot")?(this.showTips(r.target.getAttribute("data-text"),!1,s),this.focusDot(r.target),a.f=!0,o.isFocusDots&&a.f&&(a.now=parseInt(r.target.getAttribute("data-time"),10))):o.defaultText?(a.f=!1,this.showTips(o.defaultText,!0,s)):(a.f=!1,this.hideTips("")),this.updateTimeText(s),this.updateThumbnails(a.now),this.updateLinePos(e,t)}}},{key:"setTimeContent",value:function(e){this.timeStr=e}},{key:"updateThumbnails",value:function(e){var t=this.player,n=this.videoPreview,r=this.config,i=t.plugins.thumbnail;if(i&&i.usable){this.thumbnail&&i.update(this.thumbnail,e,r.width,r.height);var o=n&&n.getBoundingClientRect();this.videothumbnail&&i.update(this.videothumbnail,e,o.width,o.height)}}},{key:"registerThumbnail",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("mobile"!==w.A.device){var t=this.player,n=this.config,r=t.getPlugin("thumbnail");if(r&&r.setConfig(e),r&&r.usable&&n.isShowThumbnail){h.Ay.removeClass(this.root,"short-line no-thumbnail"),"short"===n.mode&&h.Ay.addClass(this.root,"short-line"),this._hasThumnail=!0;var i=this.find(".xg-spot-thumbnail");this.thumbnail=r.createThumbnail(i,"progress-thumbnail"),n.isShowCoverPreview&&(this.videoPreview=h.Ay.createDom("xg-video-preview","",{},"xgvideo-preview"),t.root.appendChild(this.videoPreview),this.videothumbnail=r.createThumbnail(this.videoPreview,"xgvideo-thumbnail")),this.updateThumbnails(0)}else h.Ay.addClass(this.root,"short-line no-thumbnail")}}},{key:"calcuPosition",value:function(e,t){var n=this.player.plugins.progress,r=this.player,i=n.root.getBoundingClientRect().width,o=r.duration/i*6;return e+t>r.duration&&(t=r.duration-e),r.duration,r.duration,{left:e/r.duration*100,width:t/r.duration*100,isMini:t<o}}},{key:"showDot",value:function(e){var t=this.findDot(e);if(t){var n=this.root.getBoundingClientRect(),r=n.width,i=t.time/this.player.duration*r;this.updatePosition(i,r,t.time)}}},{key:"focusDot",value:function(e,t){e&&(t||(t=e.getAttribute("data-id")),h.Ay.addClass(e,"active"),this._activeDotId=t)}},{key:"blurDot",value:function(e){if(!e){var t=this._activeDotId;e=this.getDotDom(t)}e&&(h.Ay.removeClass(e,"active"),this._activeDotId=null)}},{key:"showTips",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";h.Ay.addClass(this.root,"no-timepoint"),e&&(h.Ay.addClass(this.find(".xg-spot-content"),"show-text"),t&&"production"===this.config.mode?(h.Ay.addClass(this.root,"product"),this.tipText.textContent=e):(h.Ay.removeClass(this.root,"product"),this.tipText.textContent=this._hasThumnail?e:"".concat(n," ").concat(e)))}},{key:"hideTips",value:function(){h.Ay.removeClass(this.root,"no-timepoint"),this.tipText.textContent="",h.Ay.removeClass(this.find(".xg-spot-content"),"show-text"),h.Ay.removeClass(this.root,"product")}},{key:"hide",value:function(){h.Ay.addClass(this.root,"hide")}},{key:"show",value:function(e){h.Ay.removeClass(this.root,"hide")}},{key:"enable",value:function(){var e=this.config,t=this.playerConfig;this.config.disable=!1,this.show(),!this.thumbnail&&e.isShowThumbnail&&this.registerThumbnail(t.thumbnail||{})}},{key:"disable",value:function(){this.config.disable=!0,this.hide()}},{key:"destroy",value:function(){var e=this,t=this.player.plugins.progress;t&&Object.keys(Ot).map(function(n){t.removeCallBack(n,e[Ot[n]])}),this.videothumbnail=null,this.thumbnail=null,this.videoPreview&&this.player.root.removeChild(this.videoPreview),this.unbind(".xg-spot-info","mousemove",this.onMousemove),this.unbind(".xg-spot-info","mousedown",this.onMousedown),this.unbind(".xg-spot-info","mouseup",this.onMouseup),this.unbind(".xg-spot-content","mouseup",this.handlerPreviewClick)}},{key:"render",value:function(){return"mobile"===w.A.device||"mobile"===this.playerConfig.isMobileSimulateMode?"":'<div class="xg-spot-info hide '.concat("short"===this.config.mode?"short-line":"",'">\n      <div class="xg-spot-content">\n        <div class="xg-spot-thumbnail">\n          <span class="xg-spot-time"></span>\n        </div>\n        <div class="xg-spot-text"><span class="spot-inner-text"></span></div>\n      </div>\n      <div class="xgplayer-progress-point">00:00</div>\n      <div class="xg-spot-ext-text"></div>\n      <div class="xg-spot-line"></div>\n    </div>')}}],[{key:"pluginName",get:function(){return"progresspreview"}},{key:"defaultConfig",get:function(){return{index:1,miniWidth:6,ispots:[],defaultText:"",isFocusDots:!0,isHideThumbnailHover:!0,isShowThumbnail:!0,isShowCoverPreview:!1,mode:"",disable:!1,width:160,height:90}}}]),n}(M.Ay),It=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(e){var i;return(0,r.xs)(this,n),i=t.call(this,e),i.ratio=1,i.interval=null,i._preloadMark={},i}return(0,r.j6)(n,[{key:"afterCreate",value:function(){var e=this;this.usable&&this.initThumbnail(),this.on([o.DURATION_CHANGE],function(){var t=e.config,n=t.pic_num,r=t.interval;e.usable&&(e.interval=r>0?r:Math.round(1e3*e.player.duration/n)/1e3)})}},{key:"setConfig",value:function(e){var t=this;if(e){var n=Object.keys(e);n.length<1||(n.forEach(function(n){t.config[n]=e[n]}),this.usable&&this.initThumbnail())}}},{key:"usable",get:function(){var e=this.config,t=e.urls,n=e.pic_num;return t&&t.length>0&&n>0}},{key:"initThumbnail",value:function(){var e=this.config,t=e.width,n=e.height,r=e.pic_num,i=e.interval;this.ratio=t/n*100,this.interval=i||Math.round(this.player.duration/r),this._preloadMark={}}},{key:"getUrlByIndex",value:function(e){return e>=0&&e<this.config.urls.length?this.config.urls[e]:""}},{key:"preload",value:function(e){var t=this;if(!this._preloadMark[e]){var n=this.config.urls,r=n.length,i=[];e>0&&i.push(e-1),i.push(e),e>0&&e<r-1&&i.push(e+1),i.map(function(e){!t._preloadMark[e]&&e>=0&&e<r&&(t._preloadMark[e]=1,h.Ay.preloadImg(n[e],function(){t._preloadMark[e]=2}))})}}},{key:"getPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.config,i=r.pic_num,o=r.row,a=r.col,s=r.width,l=r.height;this.interval=Math.round(this.player.duration/i);var c=Math.ceil(e/this.interval);c=c>i?i:c;var u=c<o*a?0:Math.ceil(c/(o*a))-1,d=c-u*(a*o),h=d>0?Math.ceil(d/a)-1:0,f=d>0?d-h*a-1:0,p=0,g=0;if(t&&n){var m=t/n;m<s/l?(g=n,p=g*(s/l)):(p=t,g=p/(s/l))}else n?t||(g=n||l,p=g*(s/l)):(p=t||s,g=p/(s/l));var v=this.getUrlByIndex(u);return{urlIndex:u,rowIndex:h,colIndex:f,url:v,height:g,width:p,style:{backgroundImage:"url(".concat(v,")"),backgroundSize:"".concat(p*a,"px auto"),backgroundPosition:"-".concat(f*p,"px -").concat(h*g,"px"),width:"".concat(p,"px"),height:"".concat(g,"px")}}}},{key:"update",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=this.config,a=o.pic_num,s=o.urls;if(!(a<=0)&&s&&0!==s.length){var l=this.getPosition(t,n,r);this.preload(l.urlIndex),Object.keys(l.style).map(function(t){e.style[t]=l.style[t]}),Object.keys(i).map(function(t){e.style[t]=i[t]})}}},{key:"changeConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.setConfig(e)}},{key:"createThumbnail",value:function(e,t){var n=h.Ay.createDom("xg-thumbnail","",{},"thumbnail ".concat(t));return e&&e.appendChild(n),n}}],[{key:"pluginName",get:function(){return"thumbnail"}},{key:"defaultConfig",get:function(){return{isShow:!1,urls:[],pic_num:0,col:0,row:0,height:90,width:160,scale:1,className:"",hidePortrait:!1}}}]),n}(M.Ay);function Dt(e){return e?"background:".concat(e,";"):""}var Nt=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){var e;(0,r.xs)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,r.n8)((0,r.V5)(e),"onTimeupdate",function(){var t=e.player.ended,n=(0,r.V5)(e),i=n.offsetDuration,o=e.currentTime;o=h.Ay.adjustTimeByDuration(o,i,t),e.update({played:o},i)}),e}return(0,r.j6)(n,[{key:"offsetDuration",get:function(){return this.playerConfig.customDuration||this.player.offsetDuration||this.player.duration}},{key:"currentTime",get:function(){var e=this.player,t=e.offsetCurrentTime,n=e.currentTime;return t>=0?t:n}},{key:"afterCreate",value:function(){var e=this;this.root&&(this.on(o.TIME_UPDATE,this.onTimeupdate),this.on(o.EMPTIED,function(){e.reset()}))}},{key:"reset",value:function(){this.update({played:0,cached:0},0)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{cached:0,played:0},t=arguments.length>1?arguments[1]:void 0;t&&this.root&&(e.cached&&(this.find("xg-mini-progress-cache").style.width="".concat(e.cached/t*100,"%")),e.played&&(this.find("xg-mini-progress-played").style.width="".concat(e.played/t*100,"%")))}},{key:"render",value:function(){var e=this.playerConfig,t=e.commonStyle,n=e.miniprogress;if(n){var r=this.config,i=r.mode,o=r.height,a={cached:Dt(t.cachedColor),played:Dt(t.playedColor),progress:Dt(t.progressColor),height:o>0&&2!==o?"height: ".concat(o,"px;"):""},s="show"===i?"xg-mini-progress-show":"";return'<xg-mini-progress class="xg-mini-progress '.concat(s,'" style="').concat(a.progress," ").concat(a.height,'">\n    <xg-mini-progress-cache class="xg-mini-progress-cache" style="').concat(a.cached,'"></xg-mini-progress-cache>\n    <xg-mini-progress-played class="xg-mini-progress-played" style="').concat(a.played,'"></xg-mini-progress-played>\n    </xg-mini-progress>')}}}],[{key:"pluginName",get:function(){return"MiniProgress"}},{key:"defaultConfig",get:function(){return{mode:"auto",height:2}}}]),n}(M.Ay),Rt={REAL_TIME:"realtime",FIRST_FRAME:"firstframe",FRAME_RATE:"framerate",POSTER:"poster"};function Lt(){try{return parseInt(window.performance.now(),10)}catch(e){return(new Date).getTime()}}function Bt(){try{var e=document.createElement("canvas").getContext;return!!e}catch(t){return!1}}var Pt=null,Ft=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){var e;(0,r.xs)(this,n);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return e=t.call.apply(t,[this].concat(a)),(0,r.n8)((0,r.V5)(e),"onLoadedData",function(t){e.player&&(e._frameCount=e.config.startFrameCount,e.stop(),e.renderOnTimeupdate(t),e.off(o.TIME_UPDATE,e.renderOnTimeupdate),e.on(o.TIME_UPDATE,e.renderOnTimeupdate))}),(0,r.n8)((0,r.V5)(e),"onVisibilitychange",function(t){"visible"===document.visibilityState?e._checkIfCanStart()&&e.start():"hidden"===document.visibilityState&&e.stop()}),(0,r.n8)((0,r.V5)(e),"renderOnTimeupdate",function(t){if(e._frameCount>0)e.renderOnce(),e._frameCount--;else{e._isLoaded=!0,e.off(o.TIME_UPDATE,e.renderOnTimeupdate);var n=e.config.startInterval;!e.player.paused&&e._checkIfCanStart()&&e.start(0,n)}}),(0,r.n8)((0,r.V5)(e),"start",function(t,n){var i=e.player.video,o=Lt(),a=e.checkVideoIsSupport(i);a&&e.canvasCtx&&(n||(n=e.interval),e.stop(),i.videoWidth&&i.videoHeight&&(e.videoPI=i.videoHeight>0?parseInt(i.videoWidth/i.videoHeight*100,10):0,(e.config.mode===Rt.REAL_TIME||o-e.preTime>=n)&&(i&&i.videoWidth&&e.update(a,e.videoPI),e.preTime=o)),e.frameId="timer"===e._loopType?h.Ay.setTimeout((0,r.V5)(e),e.start,n):h.Ay.requestAnimationFrame(e.start))}),(0,r.n8)((0,r.V5)(e),"stop",function(){e.frameId&&("timer"===e._loopType?h.Ay.clearTimeout((0,r.V5)(e),e.frameId):h.Ay.cancelAnimationFrame(e.frameId),e.frameId=null)}),e}return(0,r.j6)(n,[{key:"afterCreate",value:function(){var e=this;!0===this.playerConfig.dynamicBg&&(this.config.disable=!1),n.isSupport||(this.config.disable=!0);var t=this.config,r=t.disable,i=t.mode,a=t.frameRate;r||(this._pos={width:0,height:0,rwidth:0,rheight:0,x:0,y:0,pi:0},this.isStart=!1,this._isLoaded=!1,this.videoPI=0,this.preTime=0,this.interval=parseInt(1e3/a,10),this.canvas=null,this.canvasCtx=null,this._frameCount=0,this._loopType=this.config.mode!==Rt.REAL_TIME&&this.interval>=1e3?"timer":"animation",this.once(o.COMPLETE,function(){e.player&&(e.init(),e.renderByPoster(),e.player.paused||e.start())}),i!==Rt.POSTER&&(i!==Rt.FIRST_FRAME&&(this.on(o.EMPTIED,function(){e.stop()}),this.on(o.PLAY,function(){var t=e.config.startInterval;e._checkIfCanStart()&&e.start(0,t)}),this.on(o.PAUSE,function(){e.stop()})),this.on(o.LOADED_DATA,this.onLoadedData),this.on(o.LOAD_START,function(){e._isLoaded=!1,e.stop()}),document.addEventListener("visibilitychange",this.onVisibilitychange)))}},{key:"setConfig",value:function(e){var t=this;Object.keys(e).forEach(function(n){"root"===n&&e[n]!==t.config[n]?t.reRender(e[n]):"frameRate"===n?t.interval=parseInt(1e3/e[n],10):"disable"===n&&e[n]&&t.stop(),t.config[n]=e[n]})}},{key:"init",value:function(e){var t=this.player,r=this.config;this.canvasFilter=n.supportCanvasFilter();try{var i=e||r.root;i||(i=r.isInnerRender&&t.innerContainer||t.root),i.insertAdjacentHTML("afterbegin",'<div class="xgplayer-dynamic-bg" data-index="'.concat(r.index,'"><canvas>\n        </canvas><xgmask></xgmask></div>')),this.root=i.children[0],this.canvas=this.find("canvas"),this.canvasFilter||(this.canvas.style.filter=r.filter,this.canvas.style.webkitFilter=r.filter),this.mask=this.find("xgmask"),r.addMask&&(this.mask.style.background=r.maskBg),this.canvasCtx=this.canvas.getContext("2d")}catch(o){U.A.logError("plugin:DynamicBg",o)}}},{key:"reRender",value:function(e){var t=this.config.disable;if(t||this.root){this.stop();var n=this.root?this.root.parentElement:null;if(n!==e&&n.removeChild(this.root),e){this.init(e),this.renderOnce();var r=this.config.startInterval;this._checkIfCanStart()&&this.start(0,r)}else this.root=null}}},{key:"checkVideoIsSupport",value:function(e){if(!e)return null;var t=e&&e instanceof window.HTMLVideoElement?e:e.canvas?e.canvas:e.flyVideo?e.flyVideo:null;if(t&&("safari"!==w.A.browser||!h.Ay.isMSE(t)))return t;var n=t?t.tagName.toLowerCase():"";return"canvas"===n||"img"===n?t:null}},{key:"renderByPoster",value:function(){var e=this.playerConfig.poster;if(e){var t="String"===h.Ay.typeOf(e)?e:"String"===h.Ay.typeOf(e.poster)?e.poster:null;this.updateImg(t)}}},{key:"_checkIfCanStart",value:function(){var e=this.config.mode;return this._isLoaded&&!this.player.paused&&e!==Rt.FIRST_FRAME&&e!==Rt.POSTER}},{key:"renderOnce",value:function(){var e=this.player.video;if(e.videoWidth&&e.videoHeight){this.videoPI=parseInt(e.videoWidth/e.videoHeight*100,10);var t=this.checkVideoIsSupport(e);t&&this.update(t,this.videoPI)}}},{key:"updateImg",value:function(e){var t=this;if(e){var n=this.canvas.getBoundingClientRect(),r=n.width,i=n.height,o=new window.Image;o.onload=function(){if(t.canvas&&!t.frameId&&!t.isStart){t.canvas.height=i,t.canvas.width=r;var e=parseInt(r/i*100,10);t.update(o,e),o=null}},o.src=e}}},{key:"update",value:function(e,t){if(this.canvas&&this.canvasCtx&&t)try{var n=this._pos,r=this.config,i=this.canvas.getBoundingClientRect(),o=i.width,a=i.height;if(o!==n.width||a!==n.height||n.pi!==t){var s=parseInt(o/a*100,10);n.pi=t,n.width!==o&&(n.width=this.canvas.width=o),n.height!==a&&(n.height=this.canvas.height=a);var l=a,c=o;s<t?c=parseInt(a*t/100,10):s>t&&(l=parseInt(100*o/t,10)),n.rwidth=c*r.multiple,n.rheight=l*r.multiple,n.x=(o-n.rwidth)/2,n.y=(a-n.rheight)/2}this.canvasFilter&&(this.canvasCtx.filter=r.filter),this.canvasCtx.drawImage(e,n.x,n.y,n.rwidth,n.rheight)}catch(u){U.A.logError("plugin:DynamicBg",u)}}},{key:"destroy",value:function(){this.stop(),document.removeEventListener("visibilitychange",this.onVisibilitychange),this.canvasCtx=null,this.canvas=null}},{key:"render",value:function(){return""}}],[{key:"pluginName",get:function(){return"dynamicBg"}},{key:"defaultConfig",get:function(){return{isInnerRender:!1,disable:!0,index:-1,mode:"framerate",frameRate:10,filter:"blur(50px)",startFrameCount:2,startInterval:0,addMask:!0,multiple:1.2,maskBg:"rgba(0,0,0,0.7)"}}},{key:"isSupport",get:function(){return"boolean"===typeof Pt||(Pt=Bt()),Pt}},{key:"supportCanvasFilter",value:function(){return!("safari"===w.A.browser||"firefox"===w.A.browser)}}]),n}(M.Ay),$t={LANG:"zh-cn",TEXT:{ERROR_TYPES:{network:{code:1,msg:"视频下载错误"},mse:{code:2,msg:"流追加错误"},parse:{code:3,msg:"解析错误"},format:{code:4,msg:"格式错误"},decoder:{code:5,msg:"解码错误"},runtime:{code:6,msg:"语法错误"},timeout:{code:7,msg:"播放超时"},other:{code:8,msg:"其他错误"}},HAVE_NOTHING:"没有关于音频/视频是否就绪的信息",HAVE_METADATA:"音频/视频的元数据已就绪",HAVE_CURRENT_DATA:"关于当前播放位置的数据是可用的，但没有足够的数据来播放下一帧/毫秒",HAVE_FUTURE_DATA:"当前及至少下一帧的数据是可用的",HAVE_ENOUGH_DATA:"可用数据足以开始播放",NETWORK_EMPTY:"音频/视频尚未初始化",NETWORK_IDLE:"音频/视频是活动的且已选取资源，但并未使用网络",NETWORK_LOADING:"浏览器正在下载数据",NETWORK_NO_SOURCE:"未找到音频/视频来源",MEDIA_ERR_ABORTED:"取回过程被用户中止",MEDIA_ERR_NETWORK:"网络错误",MEDIA_ERR_DECODE:"解码错误",MEDIA_ERR_SRC_NOT_SUPPORTED:"不支持的音频/视频格式",REPLAY:"重播",ERROR:"网络连接似乎出现了问题",PLAY_TIPS:"播放",PAUSE_TIPS:"暂停",PLAYNEXT_TIPS:"下一集",DOWNLOAD_TIPS:"下载",ROTATE_TIPS:"旋转",RELOAD_TIPS:"重新载入",FULLSCREEN_TIPS:"进入全屏",EXITFULLSCREEN_TIPS:"退出全屏",CSSFULLSCREEN_TIPS:"进入样式全屏",EXITCSSFULLSCREEN_TIPS:"退出样式全屏",TEXTTRACK:"字幕",PIP:"画中画",SCREENSHOT:"截图",LIVE:"正在直播",OFF:"关闭",OPEN:"开启",MINI_DRAG:"点击按住可拖动视频",MINISCREEN:"小屏幕",REFRESH_TIPS:"请试试",REFRESH:"刷新",FORWARD:"快进中",LIVE_TIP:"直播"}},jt="info",Ht=o.STATS_EVENTS,Ut=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){var e;(0,r.xs)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,r.n8)((0,r.V5)(e),"_recordUserActions",function(t){var n=e._getTime(),i=Object.assign({},t,{msg:t.msg||t.action});e._stats[jt].push((0,r.T1)((0,r.T1)({type:"userAction"},n),{},{payload:i}))}),(0,r.n8)((0,r.V5)(e),"_onReset",function(){e.reset()}),(0,r.n8)((0,r.V5)(e),"_recordInfo",function(t){e.info(t)}),(0,r.n8)((0,r.V5)(e),"_downloadStats",function(){var t=e.getStats(),n=new Blob([JSON.stringify(t)],{type:"application/json"}),r=window.URL.createObjectURL(n),i=document.createElement("a");i.style.display="none",i.href=r,i.download="player.txt",i.disabled=!1,i.click()}),e}return(0,r.j6)(n,[{key:"_getTime",value:function(){return{timestamp:Date.now(),timeFormat:(new Date).toISOString()}}},{key:"afterCreate",value:function(){this.reset(),this.on(o.USER_ACTION,this._recordUserActions),this.on(Ht.STATS_INFO,this._recordInfo),this.on(Ht.STATS_DOWNLOAD,this._downloadStats),this.on(Ht.STATS_RESET,this._onReset)}},{key:"destroy",value:function(){this.offAll()}},{key:"downloadStats",value:function(){this._downloadStats()}},{key:"info",value:function(e){e.profile?this._infoProfile(e):this._info(e)}},{key:"_info",value:function(e){var t=this._getTime();this._stats[jt].push((0,r.T1)((0,r.T1)({},t),{},{payload:e}))}},{key:"_infoProfile",value:function(e){if(e&&e.startMs){var t=Date.now(),n=t-e.startMs,i=(0,r.T1)({cat:"function",dur:n,name:e.name||e.msg,ph:"X",pid:0,tid:0,ts:e.startMs,profile:!0},e);this._info(i)}else console.warn("infoProfile need object data, include startMs")}},{key:"reset",value:function(){var e;this._stats=(e={},(0,r.n8)(e,jt,[]),(0,r.n8)(e,"media",{}),e)}},{key:"getStats",value:function(){for(var e=this.player,t=e.media,n=[],r=0;r<t.buffered.length;r++)n.push({start:t.buffered.start(r),end:t.buffered.end(r)});var i={currentTime:t.currentTime,readyState:t.readyState,buffered:n,paused:t.paused,ended:t.ended};return this._stats.media=i,{raw:this._stats,timestat:this._getTimeStats(),profile:this._getProfile()}}},{key:"_getTimeStats",value:function(){var e=this._stats[jt],t=e.map(function(e){var t=e.payload.data,n="";try{t instanceof Error?n=t.msg:void 0!==t&&(n=JSON.stringify(t))}catch(r){console.log("err",r)}return"[".concat(e.timeFormat,"] : ").concat(e.payload.msg," ").concat(n," ")});return t}},{key:"_getProfile",value:function(){var e={traceEvents:[]},t=this._stats[jt];return t.forEach(function(t){t.payload.profile&&e.traceEvents.push(t.payload)}),e}}],[{key:"pluginName",get:function(){return"stats"}},{key:"defaultConfig",get:function(){return{}}}]),n}(I.Ay),Qt=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){var e;(0,r.xs)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,r.n8)((0,r.V5)(e),"onGapJump",function(){var t=(0,r.V5)(e),i=t.player,o=t.config;if(i.media.readyState!==HTMLMediaElement.HAVE_NOTHING){if(i.media.seeking){if(!e.seekingEventReceived)return}else e.seekingEventReceived=!1;if(!i.media.paused||0===i.media.currentTime||!e.hasPlayed){var a=i.media.buffered,s=o.smallGapLimit||.5,l=o.gapDetectionThreshold||.3,c=i.media.currentTime,u=e._getIndex(a,c,l);if(null!==u&&0!==u){console.log("GapJump  bufferRange ",a.start(u),a.end(u));var d=a.start(u)+.1,h=i.media.duration;if(!(d>h)){var f=d-c,p=f<=s;f<n.BROWSER_GAP_TOLERANCE||p&&(!1!==o.useGapJump&&(i.media.currentTime=e.isSafari?d+.1:d),e.player&&e.player.emit("detectGap"),console.log("gapJump gapIndex",u," isGapSamll:",p," currentTime:",i.media.currentTime," jumpSize:",c-i.media.currentTime),.08!==d&&i&&i.emit("log",{type:"oneevent",end_type:"gap",vid:i.config.vid,ext:{video_postion:Math.floor(1e3*d)}}))}}}}}),e}return(0,r.j6)(n,[{key:"afterCreate",value:function(){var e=this,t=this.config.useGapJump;!1!==t&&(this.hasPlayed=!1,this.seekingEventReceived=!1,this.isSafari=/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),this.on(o.WAITING,this.onGapJump),this.on(o.PLAY,function(){e.hasPlayed=!0}),this.on(o.SEEKING,function(){e.seekingEventReceived=!0}))}},{key:"_getIndex",value:function(e,t,n){if(!e||!e.length)return null;if(1===e.length&&e.end(0)-e.start(0)<1e-6)return null;for(var r=this._getBuffered(e),i=null,o=0;o<r.length;o++){var a=r[o];if(a.start>t&&(0===o||r[o-1].end-t<=n)){i=o;break}}return i}},{key:"_getBuffered",value:function(e){if(!e)return[];for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}}],[{key:"pluginName",get:function(){return"gapJump"}},{key:"defaultConfig",get:function(){return{useGapJump:!1,smallGapLimit:.5,gapDetectionThreshold:.3}}}]),n}(M.Ay);Qt.BROWSER_GAP_TOLERANCE=.001;var zt=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){var e;(0,r.xs)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,r.n8)((0,r.V5)(e),"onWaiting",function(){var t=(0,r.V5)(e),n=t.config;e.jumpCnt>n.jumpCntMax||e.timer||!1===n.useWaitingTimeoutJump||(e.timer=setTimeout(e.onJump,1e3*n.waitingTime))}),(0,r.n8)((0,r.V5)(e),"onJump",function(){var t=(0,r.V5)(e),n=t.player,i=t.config;if(clearTimeout(e.timer),e.timer=null,!(e.jumpCnt>i.jumpCntMax||!1===i.useWaitingTimeoutJump)&&(!n.media.paused||0===n.media.currentTime||!e.hasPlayed)){e.jumpSize=i.jumpSize*(e.jumpCnt+1),e.jumpCnt===i.jumpSize&&e.jumpSize<6&&(e.jumpSize=6);var o=n.currentTime+e.jumpSize,a=n.media.duration;o>a||(e.jumpCnt++,n.currentTime=o)}}),e}return(0,r.j6)(n,[{key:"afterCreate",value:function(){var e=this,t=this.config,n=t.useWaitingTimeoutJump,r=t.jumpSize;!1!==n&&(this.hasPlayed=!1,this.jumpCnt=0,this.timer=null,this.jumpSize=r,this.on(o.WAITING,this.onWaiting),this.on([o.PLAYING,o.CANPLAY],function(){clearTimeout(e.timer),e.timer=null,e.jumpSize=e.config.jumpSize}),this.on(o.PLAY,function(){e.hasPlayed=!0}))}}],[{key:"pluginName",get:function(){return"waitingTimeoutJump"}},{key:"defaultConfig",get:function(){return{useWaitingTimeoutJump:!1,waitingTime:15,jumpSize:2,jumpCntMax:4}}}]),n}(M.Ay),Wt="cdn",Gt=["cdn"],Vt=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){var e;(0,r.xs)(this,n);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return e=t.call.apply(t,[this].concat(a)),(0,r.n8)((0,r.V5)(e),"getSpeed",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wt;if(!e.speedListCache||!e.speedListCache[t])return 0;if(e.speedListCache[t].length<=0)return 0;var n=0;return e.speedListCache[t].map(function(e){n+=e}),Math.floor(n/e.speedListCache[t].length)}),(0,r.n8)((0,r.V5)(e),"startTimer",function(){h.Ay.isMSE(e.player.video)||(e.initSpeedList(),e.cnt=0,e.timer=setTimeout(e.testSpeed,e.config.testTimeStep))}),(0,r.n8)((0,r.V5)(e),"initSpeedList",function(){e.speedListCache={},Gt.forEach(function(t){e.speedListCache[t]=[]})}),(0,r.n8)((0,r.V5)(e),"_onRealSpeedChange",function(t){t.speed&&e.appendList(t.speed,t.type||Wt)}),(0,r.n8)((0,r.V5)(e),"testSpeed",function(){if(clearTimeout(e.timer),e.timer=null,e.player&&e.config.openSpeed){var t=e.config,n=t.url,r=t.loadSize,i=t.testCnt,o=t.testTimeStep,a=n+(n.indexOf("?")<0?"?testst=":"&testst=")+Date.now();if(!(e.cnt>=i)){e.cnt++;try{var s=(new Date).getTime(),l=null,c=new XMLHttpRequest;e.xhr=c,c.open("GET",a);var u={},d=Math.floor(10*Math.random());u.Range="bytes="+d+"-"+(r+d),u&&Object.keys(u).forEach(function(e){c.setRequestHeader(e,u[e])}),c.onreadystatechange=function(){if(4===c.readyState){e.xhr=null,l=(new Date).getTime();var t=c.getResponseHeader("Content-Length")/1024*8,n=Math.round(1e3*t/(l-s));e.appendList(n),e.timer=setTimeout(e.testSpeed,o)}},c.send()}catch(h){console.error(h)}}}}),(0,r.n8)((0,r.V5)(e),"appendList",function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wt;if(e.speedListCache&&e.speedListCache[n]){var i=e.config.saveSpeedMax;e.speedListCache[n].length>=i&&e.speedListCache[n].shift(),e.speedListCache[n].push(t);var o=(0,r.V5)(e),a=o.player;a&&(n===Wt?a.realTimeSpeed=t:a[e.getSpeedName("realTime",n)]=t),e.updateSpeed(n)}}),(0,r.n8)((0,r.V5)(e),"updateSpeed",function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wt,n=e.getSpeed(t),i=(0,r.V5)(e),a=i.player;if(a)if(t===Wt)a.avgSpeed&&n===a.avgSpeed||(a.avgSpeed=n,a.emit(o.DOWNLOAD_SPEED_CHANGE,{speed:n,realTimeSpeed:a.realTimeSpeed}));else{var s=e.getSpeedName("avg",t);a[s]&&n===a[s]||(a[s]=n,a.emit(o.DOWNLOAD_SPEED_CHANGE,{speed:n,realTimeSpeed:a.realTimeSpeed}))}}),e}return(0,r.j6)(n,[{key:"afterCreate",value:function(){var e=this.config,t=e.openSpeed,n=e.addSpeedTypeList;(null===n||void 0===n?void 0:n.length)>0&&Gt.push.apply(Gt,(0,r.Og)(n)),this.initSpeedList(),this.on("real_time_speed",this._onRealSpeedChange),this.timer=null,this.cnt=0,this.xhr=null,t&&this.on([o.LOADED_DATA,o.REPLAY],this.startTimer)}},{key:"getSpeedName",value:function(e,t){return e+"Speed"+t.toUpperCase()}},{key:"openSpeed",get:function(){return this.config.openSpeed},set:function(e){if(this.config.openSpeed=e,!e&&this.timer)return clearTimeout(this.timer),void(this.timer=null);if(this.config.openSpeed){if(this.timer)return;this.timer=setTimeout(this.testSpeed,this.config.testTimeStep)}}},{key:"destroy",value:function(){var e=this;this.off("real_time_speed",this._onRealSpeedChange),this.off([o.LOADED_DATA,o.REPLAY],this.startTimer),Gt.forEach(function(t){e.speedListCache&&e.speedListCache[t]&&(e.speedListCache[t]=[])}),this.speedListCache&&(this.speedListCache={}),clearTimeout(this.timer),this.timer=null,this.xhr&&4!==this.xhr.readyState&&(this.xhr.cancel&&this.xhr.cancel(),this.xhr=null)}}],[{key:"pluginName",get:function(){return"testspeed"}},{key:"defaultConfig",get:function(){return{openSpeed:!1,testCnt:3,loadSize:204800,testTimeStep:3e3,url:"",saveSpeedMax:5,addSpeedTypeList:[]}}}]),n}(M.Ay),Kt=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){return(0,r.xs)(this,n),t.apply(this,arguments)}return(0,r.j6)(n,[{key:"afterCreate",value:function(){var e=this,t=this.player,n=this.config,r=t.media||t.video;if(this.timer=null,this._lastDecodedFrames=0,this._currentStuckCount=0,this._lastCheckPoint=null,this._payload=[],!n.disabled){var i=r.getVideoPlaybackQuality;i&&(this.on(o.PLAY,function(){e._startTick()}),this.on(o.PAUSE,function(){e._stopTick()}),this.on(o.ENDED,function(){e._stopTick()}),this.on(o.EMPTIED,function(){e._stopTick()}))}}},{key:"_startTick",value:function(){var e=this;this._stopTick(),this._timer=setTimeout(function(){e._checkDecodeFPS(),e._startTick()},this.config.tick)}},{key:"_stopTick",value:function(){clearTimeout(this._timer),this._timer=null}},{key:"_checkBuffer",value:function(e,t){for(var n=!1,r=[],i=0;i<t.length;i++){var o=t.start(i),a=t.end(i);if(r.push({start:o,end:a}),o<=e&&e<=a-1){n=!0;break}}return{enoughBuffer:n,buffers:r}}},{key:"_checkStuck",value:function(e,t,n,r){var i=this.player.media||this.player.video,a=document.hidden,s=i.paused,l=i.readyState,c=i.currentTime,u=i.buffered;if(!(a||s||l<4)){var d=this._checkBuffer(c,u),h=d.enoughBuffer,f=d.buffers;h&&(e<=this.config.reportFrame?(this._currentStuckCount++,this._payload.push({currentTime:c,buffers:f,curDecodedFrames:e,totalVideoFrames:t,droppedVideoFrames:n,checkInterval:r}),this._currentStuckCount>=this.config.stuckCount&&(this.emit(o.FPS_STUCK,this._payload),this._reset())):this._reset())}}},{key:"_reset",value:function(){this._payload=[],this._currentStuckCount=0}},{key:"_checkDecodeFPS",value:function(){var e=this.player.media||this.player.video;if(e){var t=e.getVideoPlaybackQuality(),n=t.totalVideoFrames,r=t.droppedVideoFrames,i=performance.now();if(n&&this._lastCheckPoint){var o=n-this._lastDecodedFrames,a=i-this._lastCheckPoint;this._checkStuck(o,n,r,a)}this._lastDecodedFrames=n,this._lastCheckPoint=i}}},{key:"destroy",value:function(){this._stopTick()}}],[{key:"pluginName",get:function(){return"FpsDetect"}},{key:"defaultConfig",get:function(){return{disabled:!1,tick:1e3,stuckCount:3,reportFrame:0}}}]),n}(M.Ay);y.use($t);var Yt=(0,r.j6)(function e(t,n){var i,o,a;(0,r.xs)(this,e);var s=n&&"mobile"===n.isMobileSimulateMode,l=n.isLive,c=l?[]:[at,fe,Nt,Mt,pe],u=[].concat(c,[ce,ae,lt,pt,wt,_t,At,bt,Ae,ht]),d=[xe,Ee,ke,ot,Oe,xt,Et,It,He];this.plugins=[Ut,we].concat((0,r.Og)(u),d,[Qt,zt]);var h=s?"mobile":w.A.device;switch(h){case"pc":(i=this.plugins).push.apply(i,[rt,ze,te,Vt,Kt]);break;case"mobile":(o=this.plugins).push.apply(o,[et]);break;default:(a=this.plugins).push.apply(a,[rt,ze,te])}(w.A.os.isIpad||"pc"===h)&&this.plugins.push(Ft),w.A.os.isIpad&&this.plugins.push(ze),this.ignores=[],this.i18n=[]}),qt=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){return(0,r.xs)(this,n),t.apply(this,arguments)}return(0,r.j6)(n)}(q);(0,r.n8)(qt,"defaultPreset",Yt),(0,r.n8)(qt,"Util",h.Ay),(0,r.n8)(qt,"Sniffer",w.A),(0,r.n8)(qt,"Errors",i.A),(0,r.n8)(qt,"Events",o),(0,r.n8)(qt,"Plugin",M.Ay),(0,r.n8)(qt,"BasePlugin",I.Ay),(0,r.n8)(qt,"I18N",y),(0,r.n8)(qt,"STATE_CLASS",P),(0,r.n8)(qt,"InstManager",u),(0,r.n8)(qt,"PlayIcon",ce),(0,r.n8)(qt,"TimeIcon",pe),(0,r.n8)(qt,"Progress",fe),(0,r.n8)(qt,"FullscreenIcon",ae),(0,r.n8)(qt,"CssFullscreenIcon",te),(0,r.n8)(qt,"VolumeIcon",Ae)},5220:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(7588);var r=n(51137);const i="accept acceptcharset accesskey action allowfullscreen allowtransparency\nalt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge\ncharset checked classid classname colspan cols content contenteditable contextmenu\ncontrols coords crossorigin data datetime default defer dir disabled download draggable\nenctype form formaction formenctype formmethod formnovalidate formtarget frameborder\nheaders height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity\nis keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media\nmediagroup method min minlength multiple muted name novalidate nonce open\noptimum pattern placeholder poster preload radiogroup readonly rel required\nreversed role rowspan rows sandbox scope scoped scrolling seamless selected\nshape size sizes span spellcheck src srcdoc srclang srcset start step style\nsummary tabindex target title type usemap value width wmode wrap",o="onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown\n    onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick\n    onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown\n    onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel\n    onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough\n    onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata\n    onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError",a=`${i} ${o}`.split(/[\s\n]+/),s="aria-",l="data-";function c(e,t){return 0===e.indexOf(t)}function u(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,r.A)({},n);const i={};return Object.keys(e).forEach(n=>{(t.aria&&("role"===n||c(n,s))||t.data&&c(n,l)||t.attr&&(a.includes(n)||a.includes(n.toLowerCase())))&&(i[n]=e[n])}),i}},5233:function(e){function t(e){const t=e.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:t.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}e.exports=t},5351:function(e,t){"use strict";var n=9007199254740991;function r(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}t.A=r},5359:function(e){function t(e){const t="a-zA-Z_\\-!.?+*=<>&#'",n="["+t+"]["+t+"0-9/;:]*",r={$pattern:n,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},i="[-+]?\\d+(\\.\\d+)?",o={begin:n,relevance:0},a={className:"number",begin:i,relevance:0},s=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),l=e.COMMENT(";","$",{relevance:0}),c={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},u={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},d={className:"comment",begin:"\\^"+n},h=e.COMMENT("\\^\\{","\\}"),f={className:"symbol",begin:"[:]{1,2}"+n},p={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0},m={className:"name",relevance:0,keywords:r,begin:n,starts:g},v=[p,s,d,h,l,f,u,a,c,o];return p.contains=[e.COMMENT("comment",""),m,g],g.contains=v,u.contains=v,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),p,s,d,h,l,f,u,a,c]}}e.exports=t},5361:function(e,t,n){(function(e){e(n(83800))})(function(e){"use strict";e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:e.copyState(t,r.base),overlay:e.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(e,i){return(e!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<e.start)&&(i.streamSeen=e,i.basePos=i.overlayPos=e.start),e.start==i.basePos&&(i.baseCur=t.token(e,i.base),i.basePos=e.pos),e.start==i.overlayPos&&(e.pos=e.start,i.overlayCur=n.token(e,i.overlay),i.overlayPos=e.pos),e.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||r&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:t.indent&&function(e,n,r){return t.indent(e.base,n,r)},electricChars:t.electricChars,innerMode:function(e){return{state:e.base,mode:t}},blankLine:function(e){var i,o;return t.blankLine&&(i=t.blankLine(e.base)),n.blankLine&&(o=n.blankLine(e.overlay)),null==o?i:r&&null!=i?i+" "+o:o}}}})},5432:function(e,t,n){"use strict";n.d(t,{x:function(){return a}});var r=n(56768),i=n(31288),o=n(60674);const a=e=>{const{prefixCls:t}=(0,o.A)("empty",e),n=e=>{switch(e){case"Table":case"List":return(0,r.bF)(i.A,{image:i.A.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return(0,r.bF)(i.A,{image:i.A.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return(0,r.bF)(i.A,null,null)}};return n(e.componentName)};function s(e){return(0,r.bF)(a,{componentName:e},null)}t.A=s},5704:function(e,t,n){"use strict";n(18111),n(7588);function r(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.A=r},6042:function(e){function t(e){const t=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],n=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],r=["true","false"],i={variants:[{match:[/(struct|enum|interface)/,/\s+/,e.IDENT_RE]},{match:[/extends/,/\s*\(/,e.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:t,type:n,literal:r},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},i]}}e.exports=t},6243:function(e){function t(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],o=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:i.concat(o),built_in:t,literal:r},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},u={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},d=e.inherit(u,{illegal:/\n/}),h={className:"subst",begin:/\{/,end:/\}/,keywords:a},f=e.inherit(h,{illegal:/\n/}),p={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,f]},g={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},h]},m=e.inherit(g,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});h.contains=[g,p,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],f.contains=[m,p,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const v={variants:[c,g,p,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},A={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},b=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",y={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"\x3c!--|--\x3e"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},v,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,A,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,A,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+b+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,A],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[v,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},y]}}e.exports=t},6252:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="ExclamationCircleFilled",c.inheritAttrs=!1;var u=c},6301:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(60168),i=n(39578),o=function(){return i.A.Date.now()},a=o,s=n(10754),l="Expected a function",c=Math.max,u=Math.min;function d(e,t,n){var i,o,d,h,f,p,g=0,m=!1,v=!1,A=!0;if("function"!=typeof e)throw new TypeError(l);function b(t){var n=i,r=o;return i=o=void 0,g=t,h=e.apply(r,n),h}function y(e){return g=e,f=setTimeout(x,t),m?b(e):h}function w(e){var n=e-p,r=e-g,i=t-n;return v?u(i,d-r):i}function _(e){var n=e-p,r=e-g;return void 0===p||n>=t||n<0||v&&r>=d}function x(){var e=a();if(_(e))return E(e);f=setTimeout(x,w(e))}function E(e){return f=void 0,A&&i?b(e):(i=o=void 0,h)}function S(){void 0!==f&&clearTimeout(f),g=0,i=p=o=f=void 0}function C(){return void 0===f?h:E(a())}function T(){var e=a(),n=_(e);if(i=arguments,o=this,p=e,n){if(void 0===f)return y(p);if(v)return clearTimeout(f),f=setTimeout(x,t),b(p)}return void 0===f&&(f=setTimeout(x,t)),h}return t=(0,s.A)(t)||0,(0,r.A)(n)&&(m=!!n.leading,v="maxWait"in n,d=v?c((0,s.A)(n.maxWait)||0,t):d,A="trailing"in n?!!n.trailing:A),T.cancel=S,T.flush=C,T}var h=d},6448:function(e,t,n){"use strict";n.d(t,{L:function(){return a},l:function(){return s}});var r=n(51137),i=n(32342);let o=(0,r.A)({},i.A.Modal);function a(e){o=e?(0,r.A)((0,r.A)({},o),e):(0,r.A)({},i.A.Modal)}function s(){return o}},6483:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M878.3 392.1L631.9 145.7c-6.5-6.5-15-9.7-23.5-9.7s-17 3.2-23.5 9.7L423.8 306.9c-12.2-1.4-24.5-2-36.8-2-73.2 0-146.4 24.1-206.5 72.3-15.4 12.3-16.6 35.4-2.7 49.4l181.7 181.7-215.4 215.2a15.8 15.8 0 00-4.6 9.8l-3.4 37.2c-.9 9.4 6.6 17.4 15.9 17.4.5 0 1 0 1.5-.1l37.2-3.4c3.7-.3 7.2-2 9.8-4.6l215.4-215.4 181.7 181.7c6.5 6.5 15 9.7 23.5 9.7 9.7 0 19.3-4.2 25.9-12.4 56.3-70.3 79.7-158.3 70.2-243.4l161.1-161.1c12.9-12.8 12.9-33.8 0-46.8z"}}]},name:"pushpin",theme:"filled"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="PushpinFilled",c.inheritAttrs=!1;var u=c},6709:function(e,t){"use strict";function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function o(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=o(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function c(e){var t=l(e,"string");return"symbol"===typeof t?t:String(t)}function u(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function d(e){t.NT=e}t.NT=u();var h=/[&<>"']/,f=new RegExp(h.source,"g"),p=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,g=new RegExp(p.source,"g"),m={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},v=function(e){return m[e]};function A(e,t){if(t){if(h.test(e))return e.replace(f,v)}else if(p.test(e))return e.replace(g,v);return e}var b=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function y(e){return e.replace(b,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}var w=/(^|[^\[])\^/g;function _(e,t){e="string"===typeof e?e:e.source,t=t||"";var n={replace:function(t,r){return r=r.source||r,r=r.replace(w,"$1"),e=e.replace(t,r),n},getRegex:function(){return new RegExp(e,t)}};return n}var x=/[^\w:]/g,E=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function S(e,t,n){if(e){var r;try{r=decodeURIComponent(y(n)).replace(x,"").toLowerCase()}catch(i){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!E.test(n)&&(n=M(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(i){return null}return n}var C={},T=/^[^:]+:\/*[^/]*$/,k=/^([^:]+:)[\s\S]*$/,O=/^([^:]+:\/*[^/]*)[\s\S]*$/;function M(e,t){C[" "+e]||(T.test(e)?C[" "+e]=e+"/":C[" "+e]=N(e,"/",!0)),e=C[" "+e];var n=-1===e.indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(k,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(O,"$1")+t:e+t}var I={exec:function(){}};function D(e,t){var n=e.replace(/\|/g,function(e,t,n){var r=!1,i=t;while(--i>=0&&"\\"===n[i])r=!r;return r?"|":" |"}),r=n.split(/ \|/),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else while(r.length<t)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(/\\\|/g,"|");return r}function N(e,t,n){var r=e.length;if(0===r)return"";var i=0;while(i<r){var o=e.charAt(r-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.slice(0,r-i)}function R(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,r=0,i=0;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return-1}function L(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function B(e,t){if(t<1)return"";var n="";while(t>1)1&t&&(n+=e),t>>=1,e+=e;return n+e}function P(e,t,n,r){var i=t.href,o=t.title?A(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;var s={type:"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,s}return{type:"image",raw:n,href:i,title:o,text:A(a)}}function F(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map(function(e){var t=e.match(/^\s+/);if(null===t)return e;var n=t[0];return n.length>=r.length?e.slice(r.length):e}).join("\n")}var $=function(){function e(e){this.options=e||t.NT}var n=e.prototype;return n.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},n.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:N(n,"\n")}}},n.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=F(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:r}}},n.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=N(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}},n.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},n.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;var i=this.lexer.blockTokens(n);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:i,text:n}}},n.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,r,i,o,a,s,l,c,u,d,h,f,p=t[1].trim(),g=p.length>1,m={type:"list",raw:"",ordered:g,start:g?+p.slice(0,-1):"",loose:!1,items:[]};p=g?"\\d{1,9}\\"+p.slice(-1):"\\"+p,this.options.pedantic&&(p=g?p:"[*+-]");var v=new RegExp("^( {0,3}"+p+")((?:[\t ][^\\n]*)?(?:\\n|$))");while(e){if(f=!1,!(t=v.exec(e)))break;if(this.rules.block.hr.test(e))break;if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0].replace(/^\t+/,function(e){return" ".repeat(3*e.length)}),u=e.split("\n",1)[0],this.options.pedantic?(o=2,h=c.trimLeft()):(o=t[2].search(/[^ ]/),o=o>4?1:o,h=c.slice(o),o+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),f=!0),!f){var A=new RegExp("^ {0,"+Math.min(3,o-1)+"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))"),b=new RegExp("^ {0,"+Math.min(3,o-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),y=new RegExp("^ {0,"+Math.min(3,o-1)+"}(?:```|~~~)"),w=new RegExp("^ {0,"+Math.min(3,o-1)+"}#");while(e){if(d=e.split("\n",1)[0],u=d,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),y.test(u))break;if(w.test(u))break;if(A.test(u))break;if(b.test(e))break;if(u.search(/[^ ]/)>=o||!u.trim())h+="\n"+u.slice(o);else{if(s)break;if(c.search(/[^ ]/)>=4)break;if(y.test(c))break;if(w.test(c))break;if(b.test(c))break;h+="\n"+u}s||u.trim()||(s=!0),n+=d+"\n",e=e.substring(d.length+1),c=u.slice(o)}}m.loose||(l?m.loose=!0:/\n *\n *$/.test(n)&&(l=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(h),r&&(i="[ ] "!==r[0],h=h.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!r,checked:i,loose:!1,text:h}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=h.trimRight(),m.raw=m.raw.trimRight();var _=m.items.length;for(a=0;a<_;a++)if(this.lexer.state.top=!1,m.items[a].tokens=this.lexer.blockTokens(m.items[a].text,[]),!m.loose){var x=m.items[a].tokens.filter(function(e){return"space"===e.type}),E=x.length>0&&x.some(function(e){return/\n.*\n/.test(e.raw)});m.loose=E}if(m.loose)for(a=0;a<_;a++)m.items[a].loose=!0;return m}},n.html=function(e){var t=this.rules.block.html.exec(e);if(t){var n={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){var r=this.options.sanitizer?this.options.sanitizer(t[0]):A(t[0]);n.type="paragraph",n.text=r,n.tokens=this.lexer.inline(r)}return n}},n.def=function(e){var t=this.rules.block.def.exec(e);if(t){var n=t[1].toLowerCase().replace(/\s+/g," "),r=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:i}}},n.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:D(t[1]).map(function(e){return{text:e}}),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var r,i,o,a,s=n.align.length;for(r=0;r<s;r++)/^ *-+: *$/.test(n.align[r])?n.align[r]="right":/^ *:-+: *$/.test(n.align[r])?n.align[r]="center":/^ *:-+ *$/.test(n.align[r])?n.align[r]="left":n.align[r]=null;for(s=n.rows.length,r=0;r<s;r++)n.rows[r]=D(n.rows[r],n.header.length).map(function(e){return{text:e}});for(s=n.header.length,i=0;i<s;i++)n.header[i].tokens=this.lexer.inline(n.header[i].text);for(s=n.rows.length,i=0;i<s;i++)for(a=n.rows[i],o=0;o<a.length;o++)a[o].tokens=this.lexer.inline(a[o].text);return n}}},n.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}},n.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t){var n="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}},n.text=function(e){var t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}},n.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:A(t[1])}},n.tag=function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):A(t[0]):t[0]}},n.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var r=N(n.slice(0,-1),"\\");if((n.length-r.length)%2===0)return}else{var i=R(t[2],"()");if(i>-1){var o=0===t[0].indexOf("!")?5:4,a=o+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,a).trim(),t[3]=""}}var s=t[2],l="";if(this.options.pedantic){var c=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);c&&(s=c[1],l=c[3])}else l=t[3]?t[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(s=this.options.pedantic&&!/>$/.test(n)?s.slice(1):s.slice(1,-1)),P(t,{href:s?s.replace(this.rules.inline._escapes,"$1"):s,title:l?l.replace(this.rules.inline._escapes,"$1"):l},t[0],this.lexer)}},n.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(r=t[r.toLowerCase()],!r){var i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return P(n,r,n[0],this.lexer)}},n.emStrong=function(e,t,n){void 0===n&&(n="");var r=this.rules.inline.emStrong.lDelim.exec(e);if(r&&(!r[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\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\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\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\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\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-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\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-\uAB69\uAB70-\uABE2\uABF0-\uABF9\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\uFF10-\uFF19\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\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\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]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\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]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){var o,a,s=r[0].length-1,l=s,c=0,u="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;u.lastIndex=0,t=t.slice(-1*e.length+s);while(null!=(r=u.exec(t)))if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],o)if(a=o.length,r[3]||r[4])l+=a;else if(!((r[5]||r[6])&&s%3)||(s+a)%3){if(l-=a,!(l>0)){a=Math.min(a,a+l+c);var d=e.slice(0,s+r.index+(r[0].length-o.length)+a);if(Math.min(s,a)%2){var h=d.slice(1,-1);return{type:"em",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}var f=d.slice(2,-2);return{type:"strong",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}}else c+=a}}},n.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return r&&i&&(n=n.substring(1,n.length-1)),n=A(n,!0),{type:"codespan",raw:t[0],text:n}}},n.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},n.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}},n.autolink=function(e,t){var n,r,i=this.rules.inline.autolink.exec(e);if(i)return"@"===i[2]?(n=A(this.options.mangle?t(i[1]):i[1]),r="mailto:"+n):(n=A(i[1]),r=n),{type:"link",raw:i[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}},n.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r,i;if("@"===n[2])r=A(this.options.mangle?t(n[0]):n[0]),i="mailto:"+r;else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);r=A(n[0]),i="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}},n.inlineText=function(e,t){var n,r=this.rules.inline.text.exec(e);if(r)return n=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):A(r[0]):r[0]:A(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:n}},e}(),j={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:I,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};j.def=_(j.def).replace("label",j._label).replace("title",j._title).getRegex(),j.bullet=/(?:[*+-]|\d{1,9}[.)])/,j.listItemStart=_(/^( *)(bull) */).replace("bull",j.bullet).getRegex(),j.list=_(j.list).replace(/bull/g,j.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+j.def.source+")").getRegex(),j._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",j._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,j.html=_(j.html,"i").replace("comment",j._comment).replace("tag",j._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),j.paragraph=_(j._paragraph).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j._tag).getRegex(),j.blockquote=_(j.blockquote).replace("paragraph",j.paragraph).getRegex(),j.normal=i({},j),j.gfm=i({},j.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),j.gfm.table=_(j.gfm.table).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j._tag).getRegex(),j.gfm.paragraph=_(j._paragraph).replace("hr",j.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",j.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j._tag).getRegex(),j.pedantic=i({},j.normal,{html:_("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",j._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:I,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:_(j.normal._paragraph).replace("hr",j.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",j.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var H={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:I,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:I,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function U(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Q(e){var t,n,r="",i=e.length;for(t=0;t<i;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}H._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",H.punctuation=_(H.punctuation).replace(/punctuation/g,H._punctuation).getRegex(),H.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,H.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,H._comment=_(j._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),H.emStrong.lDelim=_(H.emStrong.lDelim).replace(/punct/g,H._punctuation).getRegex(),H.emStrong.rDelimAst=_(H.emStrong.rDelimAst,"g").replace(/punct/g,H._punctuation).getRegex(),H.emStrong.rDelimUnd=_(H.emStrong.rDelimUnd,"g").replace(/punct/g,H._punctuation).getRegex(),H._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,H._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,H._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,H.autolink=_(H.autolink).replace("scheme",H._scheme).replace("email",H._email).getRegex(),H._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,H.tag=_(H.tag).replace("comment",H._comment).replace("attribute",H._attribute).getRegex(),H._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,H._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,H._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,H.link=_(H.link).replace("label",H._label).replace("href",H._href).replace("title",H._title).getRegex(),H.reflink=_(H.reflink).replace("label",H._label).replace("ref",j._label).getRegex(),H.nolink=_(H.nolink).replace("ref",j._label).getRegex(),H.reflinkSearch=_(H.reflinkSearch,"g").replace("reflink",H.reflink).replace("nolink",H.nolink).getRegex(),H.normal=i({},H),H.pedantic=i({},H.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:_(/^!?\[(label)\]\((.*?)\)/).replace("label",H._label).getRegex(),reflink:_(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",H._label).getRegex()}),H.gfm=i({},H.normal,{escape:_(H.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),H.gfm.url=_(H.gfm.url,"i").replace("email",H.gfm._extended_email).getRegex(),H.breaks=i({},H.gfm,{br:_(H.br).replace("{2,}","*").getRegex(),text:_(H.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var z=function(){function e(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||t.NT,this.options.tokenizer=this.options.tokenizer||new $,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var n={block:j.normal,inline:H.normal};this.options.pedantic?(n.block=j.pedantic,n.inline=H.pedantic):this.options.gfm&&(n.block=j.gfm,this.options.breaks?n.inline=H.breaks:n.inline=H.gfm),this.tokenizer.rules=n}e.lex=function(t,n){var r=new e(n);return r.lex(t)},e.lexInline=function(t,n){var r=new e(n);return r.inlineTokens(t)};var n=e.prototype;return n.lex=function(e){var t;e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);while(t=this.inlineQueue.shift())this.inlineTokens(t.src,t.tokens);return this.tokens},n.blockTokens=function(e,t){var n,r,i,o,a=this;void 0===t&&(t=[]),e=this.options.pedantic?e.replace(/\t/g,"    ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,function(e,t,n){return t+"    ".repeat(n.length)});while(e)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(r){return!!(n=r.call({lexer:a},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)})))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else if(i=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,n=e.slice(1),r=void 0;a.options.extensions.startBlock.forEach(function(e){r=e.call({lexer:this},n),"number"===typeof r&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}(),this.state.top&&(n=this.tokenizer.paragraph(i)))r=t[t.length-1],o&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),o=i.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){var s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}return this.state.top=!0,t},n.inline=function(e,t){return void 0===t&&(t=[]),this.inlineQueue.push({src:e,tokens:t}),t},n.inlineTokens=function(e,t){var n,r,i,o=this;void 0===t&&(t=[]);var a,s,l,c=e;if(this.tokens.links){var u=Object.keys(this.tokens.links);if(u.length>0)while(null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(c)))u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,a.index)+"["+B("a",a[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}while(null!=(a=this.tokenizer.rules.inline.blockSkip.exec(c)))c=c.slice(0,a.index)+"["+B("a",a[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);while(null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(c)))c=c.slice(0,a.index+a[0].length-2)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;while(e)if(s||(l=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(r){return!!(n=r.call({lexer:o},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)})))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,c,l))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,Q))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,Q))){if(i=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,n=e.slice(1),r=void 0;o.options.extensions.startInline.forEach(function(e){r=e.call({lexer:this},n),"number"===typeof r&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}(),n=this.tokenizer.inlineText(i,U))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(l=n.raw.slice(-1)),s=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){var d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}throw new Error(d)}}else e=e.substring(n.raw.length),t.push(n);return t},r(e,null,[{key:"rules",get:function(){return{block:j,inline:H}}}]),e}(),W=function(){function e(e){this.options=e||t.NT}var n=e.prototype;return n.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+A(r)+'">'+(n?e:A(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:A(e,!0))+"</code></pre>\n"},n.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},n.html=function(e){return e},n.heading=function(e,t,n,r){if(this.options.headerIds){var i=this.options.headerPrefix+r.slug(n);return"<h"+t+' id="'+i+'">'+e+"</h"+t+">\n"}return"<h"+t+">"+e+"</h"+t+">\n"},n.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},n.list=function(e,t,n){var r=t?"ol":"ul",i=t&&1!==n?' start="'+n+'"':"";return"<"+r+i+">\n"+e+"</"+r+">\n"},n.listitem=function(e){return"<li>"+e+"</li>\n"},n.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},n.paragraph=function(e){return"<p>"+e+"</p>\n"},n.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},n.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},n.tablecell=function(e,t){var n=t.header?"th":"td",r=t.align?"<"+n+' align="'+t.align+'">':"<"+n+">";return r+e+"</"+n+">\n"},n.strong=function(e){return"<strong>"+e+"</strong>"},n.em=function(e){return"<em>"+e+"</em>"},n.codespan=function(e){return"<code>"+e+"</code>"},n.br=function(){return this.options.xhtml?"<br/>":"<br>"},n.del=function(e){return"<del>"+e+"</del>"},n.link=function(e,t,n){if(e=S(this.options.sanitize,this.options.baseUrl,e),null===e)return n;var r='<a href="'+e+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r},n.image=function(e,t,n){if(e=S(this.options.sanitize,this.options.baseUrl,e),null===e)return n;var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">",r},n.text=function(e){return e},e}(),G=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),V=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),K=function(){function e(e){this.options=e||t.NT,this.options.renderer=this.options.renderer||new W,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new G,this.slugger=new V}e.parse=function(t,n){var r=new e(n);return r.parse(t)},e.parseInline=function(t,n){var r=new e(n);return r.parseInline(t)};var n=e.prototype;return n.parse=function(e,t){void 0===t&&(t=!0);var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,w,_="",x=e.length;for(n=0;n<x;n++)if(d=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type]&&(w=this.options.extensions.renderers[d.type].call({parser:this},d),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type)))_+=w||"";else switch(d.type){case"space":continue;case"hr":_+=this.renderer.hr();continue;case"heading":_+=this.renderer.heading(this.parseInline(d.tokens),d.depth,y(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":_+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(c="",l="",o=d.header.length,r=0;r<o;r++)l+=this.renderer.tablecell(this.parseInline(d.header[r].tokens),{header:!0,align:d.align[r]});for(c+=this.renderer.tablerow(l),u="",o=d.rows.length,r=0;r<o;r++){for(s=d.rows[r],l="",a=s.length,i=0;i<a;i++)l+=this.renderer.tablecell(this.parseInline(s[i].tokens),{header:!1,align:d.align[i]});u+=this.renderer.tablerow(l)}_+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(d.tokens),_+=this.renderer.blockquote(u);continue;case"list":for(h=d.ordered,f=d.start,p=d.loose,o=d.items.length,u="",r=0;r<o;r++)m=d.items[r],v=m.checked,A=m.task,g="",m.task&&(b=this.renderer.checkbox(v),p?m.tokens.length>0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=b+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=b+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:b}):g+=b),g+=this.parse(m.tokens,p),u+=this.renderer.listitem(g,A,v);_+=this.renderer.list(u,h,f);continue;case"html":_+=this.renderer.html(d.text);continue;case"paragraph":_+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":u=d.tokens?this.parseInline(d.tokens):d.text;while(n+1<x&&"text"===e[n+1].type)d=e[++n],u+="\n"+(d.tokens?this.parseInline(d.tokens):d.text);_+=t?this.renderer.paragraph(u):u;continue;default:var E='Token with "'+d.type+'" type was not found.';if(this.options.silent)return void console.error(E);throw new Error(E)}return _},n.parseInline=function(e,t){t=t||this.renderer;var n,r,i,o="",a=e.length;for(n=0;n<a;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(i=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==i||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))o+=i||"";else switch(r.type){case"escape":o+=t.text(r.text);break;case"html":o+=t.html(r.text);break;case"link":o+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":o+=t.image(r.href,r.title,r.text);break;case"strong":o+=t.strong(this.parseInline(r.tokens,t));break;case"em":o+=t.em(this.parseInline(r.tokens,t));break;case"codespan":o+=t.codespan(r.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(r.tokens,t));break;case"text":o+=t.text(r.text);break;default:var s='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(s);throw new Error(s)}return o},e}(),Y=function(){function e(e){this.options=e||t.NT}var n=e.prototype;return n.preprocess=function(e){return e},n.postprocess=function(e){return e},e}();function q(e,t,n){return function(r){if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){var i="<p>An error occurred:</p><pre>"+A(r.message+"",!0)+"</pre>";return t?Promise.resolve(i):n?void n(null,i):i}if(t)return Promise.reject(r);if(!n)throw r;n(r)}}function X(e,t){return function(n,r,o){"function"===typeof r&&(o=r,r=null);var a=i({},r);r=i({},J.defaults,a);var s=q(r.silent,r.async,o);if("undefined"===typeof n||null===n)return s(new Error("marked(): input parameter is undefined or null"));if("string"!==typeof n)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(L(r),r.hooks&&(r.hooks.options=r),o){var l,c=r.highlight;try{r.hooks&&(n=r.hooks.preprocess(n)),l=e(n,r)}catch(p){return s(p)}var u=function(e){var n;if(!e)try{r.walkTokens&&J.walkTokens(l,r.walkTokens),n=t(l,r),r.hooks&&(n=r.hooks.postprocess(n))}catch(p){e=p}return r.highlight=c,e?s(e):o(null,n)};if(!c||c.length<3)return u();if(delete r.highlight,!l.length)return u();var d=0;return J.walkTokens(l,function(e){"code"===e.type&&(d++,setTimeout(function(){c(e.text,e.lang,function(t,n){if(t)return u(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),d--,0===d&&u()})},0))}),void(0===d&&u())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then(function(t){return e(t,r)}).then(function(e){return r.walkTokens?Promise.all(J.walkTokens(e,r.walkTokens)).then(function(){return e}):e}).then(function(e){return t(e,r)}).then(function(e){return r.hooks?r.hooks.postprocess(e):e})["catch"](s);try{r.hooks&&(n=r.hooks.preprocess(n));var h=e(n,r);r.walkTokens&&J.walkTokens(h,r.walkTokens);var f=t(h,r);return r.hooks&&(f=r.hooks.postprocess(f)),f}catch(p){return s(p)}}}function J(e,t,n){return X(z.lex,K.parse)(e,t,n)}Y.passThroughHooks=new Set(["preprocess","postprocess"]),J.options=J.setOptions=function(e){return J.defaults=i({},J.defaults,e),d(J.defaults),J},J.getDefaults=u,J.defaults=t.NT,J.use=function(){for(var e=J.defaults.extensions||{renderers:{},childTokens:{}},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach(function(t){var n=i({},t);if(n.async=J.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(function(t){if(!t.name)throw new Error("extension name required");if(t.renderer){var n=e.renderers[t.name];e.renderers[t.name]=n?function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=t.renderer.apply(this,r);return!1===o&&(o=n.apply(this,r)),o}:t.renderer}if(t.tokenizer){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");e[t.level]?e[t.level].unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),n.extensions=e),t.renderer&&function(){var e=J.defaults.renderer||new W,r=function(n){var r=e[n];e[n]=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=t.renderer[n].apply(e,o);return!1===s&&(s=r.apply(e,o)),s}};for(var i in t.renderer)r(i);n.renderer=e}(),t.tokenizer&&function(){var e=J.defaults.tokenizer||new $,r=function(n){var r=e[n];e[n]=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=t.tokenizer[n].apply(e,o);return!1===s&&(s=r.apply(e,o)),s}};for(var i in t.tokenizer)r(i);n.tokenizer=e}(),t.hooks&&function(){var e=J.defaults.hooks||new Y,r=function(n){var r=e[n];Y.passThroughHooks.has(n)?e[n]=function(i){if(J.defaults.async)return Promise.resolve(t.hooks[n].call(e,i)).then(function(t){return r.call(e,t)});var o=t.hooks[n].call(e,i);return r.call(e,o)}:e[n]=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=t.hooks[n].apply(e,o);return!1===s&&(s=r.apply(e,o)),s}};for(var i in t.hooks)r(i);n.hooks=e}(),t.walkTokens){var r=J.defaults.walkTokens;n.walkTokens=function(e){var n=[];return n.push(t.walkTokens.call(this,e)),r&&(n=n.concat(r.call(this,e))),n}}J.setOptions(n)})},J.walkTokens=function(e,t){for(var n,r=[],i=function(){var e=n.value;switch(r=r.concat(t.call(J,e)),e.type){case"table":for(var i,o=s(e.header);!(i=o()).done;){var a=i.value;r=r.concat(J.walkTokens(a.tokens,t))}for(var l,c=s(e.rows);!(l=c()).done;)for(var u,d=l.value,h=s(d);!(u=h()).done;){var f=u.value;r=r.concat(J.walkTokens(f.tokens,t))}break;case"list":r=r.concat(J.walkTokens(e.items,t));break;default:J.defaults.extensions&&J.defaults.extensions.childTokens&&J.defaults.extensions.childTokens[e.type]?J.defaults.extensions.childTokens[e.type].forEach(function(n){r=r.concat(J.walkTokens(e[n],t))}):e.tokens&&(r=r.concat(J.walkTokens(e.tokens,t)))}},o=s(e);!(n=o()).done;)i();return r},J.parseInline=X(z.lexInline,K.parseInline),J.Parser=K,J.parser=K.parse,J.Renderer=W,J.TextRenderer=G,J.Lexer=z,J.lexer=z.lex,J.Tokenizer=$,J.Slugger=V,J.Hooks=Y,J.parse=J;var Z=J.options,ee=J.setOptions,te=J.use,ne=J.walkTokens,re=J.parseInline,ie=J,oe=K.parse,ae=z.lex;t.xI=J},6712:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}}]},name:"team",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="TeamOutlined",c.inheritAttrs=!1;var u=c},6865:function(e,t,n){"use strict";function r(e,t){return null!=e&&t in Object(e)}n.d(t,{A:function(){return p}});var i=r,o=n(79047),a=n(26162),s=n(23506),l=n(22676),c=n(5351),u=n(13708);function d(e,t,n){t=(0,o.A)(t,e);var r=-1,i=t.length,d=!1;while(++r<i){var h=(0,u.A)(t[r]);if(!(d=null!=e&&n(e,h)))break;e=e[h]}return d||++r!=i?d:(i=null==e?0:e.length,!!i&&(0,c.A)(i)&&(0,l.A)(h,i)&&((0,s.A)(e)||(0,a.A)(e)))}var h=d;function f(e,t){return null!=e&&h(e,t,i)}var p=f},6980:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7040:function(e,t,n){"use strict";var r=n(4495);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7084:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 310H732.4c13.6-21.4 21.6-46.8 21.6-74 0-76.1-61.9-138-138-138-41.4 0-78.7 18.4-104 47.4-25.3-29-62.6-47.4-104-47.4-76.1 0-138 61.9-138 138 0 27.2 7.9 52.6 21.6 74H144c-17.7 0-32 14.3-32 32v200c0 4.4 3.6 8 8 8h40v344c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V550h40c4.4 0 8-3.6 8-8V342c0-17.7-14.3-32-32-32zm-334-74c0-38.6 31.4-70 70-70s70 31.4 70 70-31.4 70-70 70h-70v-70zm-138-70c38.6 0 70 31.4 70 70v70h-70c-38.6 0-70-31.4-70-70s31.4-70 70-70zM180 482V378h298v104H180zm48 68h250v308H228V550zm568 308H546V550h250v308zm48-376H546V378h298v104z"}}]},name:"gift",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="GiftOutlined",c.inheritAttrs=!1;var u=c},7162:function(e,t,n){"use strict";n.d(t,{A:function(){return E}});var r=n(47083),i=n(39578),o=i.A["__core-js_shared__"],a=o,s=function(){var e=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function l(e){return!!s&&s in e}var c=l,u=n(60168),d=n(3534),h=/[\\^$.*+?()[\]{}|]/g,f=/^\[object .+?Constructor\]$/,p=Function.prototype,g=Object.prototype,m=p.toString,v=g.hasOwnProperty,A=RegExp("^"+m.call(v).replace(h,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function b(e){if(!(0,u.A)(e)||c(e))return!1;var t=(0,r.A)(e)?A:f;return t.test((0,d.A)(e))}var y=b;function w(e,t){return null==e?void 0:e[t]}var _=w;function x(e,t){var n=_(e,t);return y(n)?n:void 0}var E=x},7304:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="CopyOutlined",c.inheritAttrs=!1;var u=c},7403:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="CheckCircleFilled",c.inheritAttrs=!1;var u=c},7475:function(e,t,n){"use strict";n.d(t,{A:function(){return Ee}});n(44114),n(18111),n(20116),n(7588),n(61701);var r=n(42529);n(22489);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w(r.key),r)}}function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t,n){return t=w(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){if(t&&("object"===typeof t||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}function v(e){var t=p();return function(){var n,r=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}function A(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=h(e),null===e)break;return e}function b(){return b="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=A(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},b.apply(this,arguments)}function y(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function w(e){var t=y(e,"string");return"symbol"===typeof t?t:String(t)}var _=n(72653),x=n.n(_),E=/^WEBVTT/i,S=/^STYLE+$/,C=/^\:\:cue/,T=/^}+$/,k=/^\[Script Info\].*/,O=[/[0-9]{1,3}:[0-9]{2}:[0-9]{2}\.[0-9]{1,3}-->[0-9]{1,3}:[0-9]{2}:[0-9]{2}\.[0-9]{1,3}/,/[0-9]{1,3}:[0-9]{2}\.[0-9]{1,3}-->[0-9]{1,3}:[0-9]{2}\.[0-9]{1,3}/,/[0-9]{1,2}\.[0-9]{1,3}-->[0-9]{1,2}\.[0-9]{1,3}/],M=50,I=/^Format:\s/,D=/^Style:\s/,N=/^Dialogue:\s/;function R(e){var t=e.length;return 3===t?(60*(60*Number(e[0])+Number(e[1]))*1e3+1e3*Number(e[2]))/1e3:2===t?(60*Number(e[0])*1e3+1e3*Number(e[1]))/1e3:Number(e[0])}function L(e){return/^(\-|\+)?\d+(\.\d+)?$/.test(e)}function B(e){return e}function P(e,t){return e>=0&&e<t.length?t[e]:""}var F=function(){function e(){s(this,e)}return c(e,null,[{key:"parseJson",value:function(e){for(var t=[],n=0,r=0;r<e.length;r++){if(n>=M&&(n=0),0===n){var i={start:e[r].start,list:[e[r]],end:e[r].end};t.push(i)}else t[t.length-1].list.push(e[r]),t[t.length-1].end=e[r].end;n++}return t}},{key:"parse",value:function(t,n){var r=e.checkFormat(t);r||n({format:r});try{var i=[];"ass"===r?i=e.parseASS(t):"vtt"===r&&(i=e.parseVTT(t)),n({format:r,list:i.list,styles:i.styles})}catch(o){console.error(o),n({format:r},o)}}},{key:"parseASSItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.split(","),r={},i="";try{var o=n.length-t.length;return i=o>0?n.splice(t.length-1,o+1).join(",")+"":n[n.length-1]+"",i=i.replace(/\\n+/g,""),i=B(i),n[t.length-1]=i,t.map(function(e,t){"end"===e||"start"===e?r[e]=R(n[t].split(":")):"text"===e?r[e]=[n[t]]:"layer"===e?(r[e]=[n[t]],r.textTag=[n[t]]):r[e]="style"===e?[n[t]]:Number(n[t])?Number(n[t]):n[t]}),r}catch(a){return console.error(a),{}}}},{key:"parseASS",value:function(t){var n=t.split("\n"),r=[],i=0,o=0,a=[],s=[],l=null;while(i<n.length){if(I.test(n[i]))s=n[i].replace(I,"").replace(/\s+/g,"").split(","),s=s.map(function(e){return e.toLocaleLowerCase()});else if(D.test(n[i]))a.push(n[i].replace(D,"").replace(/\s+/g,""));else if(N.test(n[i])){var c=e.parseASSItem(n[i].replace(N,""),s);if(l&&c.start===l.start&&c.end===l.end)try{var u=l,d=u.text,h=u.textTag,f=u.style;d.push(c.text[0]),h.push(c.textTag[0]),f.push(c.style[0])}catch(g){console.error(g)}else{l=c;var p=null;o%M===0?(p={start:l.start,end:l.end,list:[]},p.list.push(l),r.push(p)):(p=r[r.length-1],p.end=l.end,p.list.push(l)),o++}}i++}return{list:r,style:{}}}},{key:"parseVTTStyle",value:function(e,t){var n=e.split(":");if(n.length>1){var r=n[0].trim().split("-"),i="";r.length>1?r.map(function(e,t){i+=0===t?e:e.charAt(0).toUpperCase()+e.slice(1)}):i=r[0],t[i]=n[1].trim().replace(/;$/,"")}return t}},{key:"parseVTT",value:function(e){e=e.replace(E,"");var t=e.split("\n"),n=[],r=0,i=0,o=null,a=!1,s=!1,l=null,c=null,u=[];while(r<t.length){var d=P(r,t).trim();if(!d||a&&L(d))a=!d;else if(C.test(d)&&S.test(P(r-1,t).trim())){s=!0;var h=/\((.+?)\)/g.exec(d);c=h?h[1]:"",l=""}else if(s)T.test(d)?(u.push({key:c,style:l}),l=null,c=null,s=!1):l+=d;else if(d){a=!1;var f=this.checkIsTime(t[r]);if(f){var p=this.parseVttTime(f);if(!o||p.start!==o.start||p.end!==o.end){o=p,o.text=[],o.textTag=[];var g=null;i%M===0?(g={start:o.start,end:o.end,list:[]},g.list.push(o),n.push(g)):(g=n[n.length-1],g.end=o.end,g.list.push(o)),i++}}else if(o){var m=o,v=m.text,A=m.textTag,b=this.parseVttText(t[r]);v.push(b.text),A.push(b.tag)}a=!1}r++}return{list:n,styles:u}}},{key:"checkIsTime",value:function(e){e=e.replace(/\s+/g,"");var t=0,n=null;while(t<O.length){if(n=O[t].exec(e),n)break;t++}return n?n[0]:null}},{key:"parseVttText",value:function(e){var t=/^(<?.+?>)/g.exec(e),n="",r="default";if(t){r=t[0].replace(/\<|\>|\&/g,"");var i=RegExp("^<".concat(r,">(([\\s\\S])*?)</").concat(r,">$")),o=i.exec(e);o?n=o[1]:(n=e,r="")}else n=e;var a=/<(\w+).(\w+)>/g,s=a.exec(n);while(s&&s.length>2)n=n.replace(s[0],"<".concat(s[1],' class="').concat(s[2],'">')),s=a.exec(n);return{tag:r,text:B(n.replace(/\\n+/g,"<br/>"))}}},{key:"parseVttTime",value:function(e){var t,n=e.split("--\x3e"),r=0;if(2===n.length){var i=n[0].split(":"),o=n[1].split(":");t=R(i),r=R(o)}return{start:t,end:r,time:e}}},{key:"isVTT",value:function(e){return E.test(e)}},{key:"isASS",value:function(e){return k.test(e)}},{key:"checkFormat",value:function(e){return e?E.test(e)?"vtt":k.test(e)?"ass":null:null}}]),e}(),$=[{code:0,msg:"SUCCESS"},{code:1,msg:"LOAD_ERROR"},{code:2,msg:"PARSER_ERROR"},{code:3,msg:"FORMAT_NOT_SUPPORTED"},{code:4,msg:"ID_OR_LANGUAGE_NOT_EXIST"},{code:5,msg:"PARAMETERS_ERROR"},{code:6,msg:"ABORT"},{code:7,msg:"UNKNOWN"},{code:8,msg:"DATA_ERROR:subtitle.url is null"},{code:9,msg:"DATA_ERROR:subtitle.url length is 0"}];function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={code:$[e].code,msg:$[e].msg};return Object.keys(t).map(function(e){n[e]=t[e]}),n}var H=c(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.url,r=t.method,i=void 0===r?"GET":r,o=t.type,a=void 0===o?"arraybuffer":o,l=t.timeout,c=void 0===l?1e4:l,u=t.data,d=void 0===u?{}:u,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(this,e),new Promise(function(e,t){var r=new window.XMLHttpRequest,o=i.toUpperCase(),s=[];if(a&&(r.responseType=a),c&&(r.timeout=c),Object.keys(d).forEach(function(e){s.push("k=".concat(d[e]))}),r.onload=function(){200===r.status||206===r.status?e({context:h,res:r}):t(new Error({context:h,res:r,type:"error"}))},r.onerror=function(e){t(new Error({context:h,res:r,type:"error"}))},r.ontimeout=function(e){t(new Error({context:h,res:r,type:"error"}))},r.onabort=function(){t(new Error({context:h,res:r,type:"error"}))},"GET"===o)r.open(o,"".concat(n)),r.send();else{if("post"!==o)throw new Error("xhr ".concat(o," is not supported"));r.open(o,n),r.setRequestHeader("Content-type","application/x-www-form-urlencoded"),r.send(s.join("&"))}})}),U=function(){function e(){var t,n;s(this,e);var r=new Promise(function(e,r){t=e,n=r}),i=r;return i.resolve=function(e){t(e),i.state="fulfilled"},i.reject=function(e){n(e),i.state="rejected",i.isBreak="DESTROYED"===e},i.state="pending",i}return c(e,[{key:"resolve",value:function(e){}},{key:"reject",value:function(e){}}]),e}();function Q(e,t){if(!e)return!1;if(e.classList)return Array.prototype.some.call(e.classList,function(e){return e===t});var n=e.className&&"object"===a(e.className)?e.getAttribute("class"):e.className;return n&&!!n.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function z(e,t){e&&(e.classList?t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(t){t&&e.classList.add(t)}):Q(e,t)||(e.className&&"object"===a(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t))}function W(e,t){e&&(e.classList?t.split(/\s+/g).forEach(function(t){e.classList.remove(t)}):Q(e,t)&&t.split(/\s+/g).forEach(function(t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===a(e.className)?e.setAttribute("class",e.getAttribute("class").replace(n," ")):e.className=e.className.replace(n," ")}))}function G(e,t,n){var r=t.length;if(r<1)return-1;if(n=n<0?0:n>=r?r-1:n,t[n].start<=e&&e<t[n].end)return n;for(var i=t[n].end<=e?n+1:0;i<r;i++){if(t[i].start<=e&&e<t[i].end)return i;if(e>t[i].end&&i+1<r&&e<t[i+1].start)return-1;if(e>t[i].end&&i+1>=r)return-1}return-1}function V(e,t,n){var r=t.length;if(r<1)return[];n=n<0?0:n>=r?r-1:n;var i=[];if(n<r)for(var o=t[n].end<=e?n:0;o<r;o++)if(t[o].start<=e&&e<t[o].end&&i.push(o),e<t[o].start)break;return i}function K(e,t,n){if(0===e.length||t<0||t>e.length-1)return[];var r=e[t].list;if(0===n.length)return[];var i=r.splice(n[0],n.length);return t>0&&e.splice(0,t),0===r.length&&e.splice(0,1),i}function Y(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]}function q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=document.createElement(e);return i.className=r,i.innerHTML=t,Object.keys(n).forEach(function(t){var r=t,o=n[t];"video"===e||"audio"===e||"live-video"===e?o&&i.setAttribute(r,o):i.setAttribute(r,o)}),i}function X(){var e=navigator.userAgent,t=/(?:Windows Phone)/.test(e),n=/(?:SymbianOS)/.test(e)||t,r=/(?:Android)/.test(e),i=/(?:Firefox)/.test(e),o=/(?:iPad|PlayBook)/.test(e)||r&&!/(?:Mobile)/.test(e)||i&&/(?:Tablet)/.test(e),a=/(?:iPhone)/.test(e)&&!o;return a||r||n||o}function J(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="";e.map(function(e){n+=" ".concat(t," ").concat(e.key," {").concat(e.style,"}")});var r=document.createElement("style"),i=document.head||document.getElementsByTagName("head")[0];if(r.type="text/css",r.id="ssss",r.styleSheet){var o=function(){try{r.styleSheet.cssText=n}catch(e){}};r.styleSheet.disabled?setTimeout(o,10):o()}else{var a=document.createTextNode(n);r.appendChild(a)}i.appendChild(r)}function Z(e,t,n){if(n||(n=new U),"json"===t){var r=F.parseJson(e);n.resolve({list:r,format:"json"})}else"string"===t&&F.parse(e,function(e,t){if(t){var r=j(2,t);n.reject(r,{format:e.format})}else if(e.format)n.resolve({styles:e.styles,list:e.list,format:e.format});else{var i=j(3);n.reject(i)}});return n}function ee(e,t){return t||(t=new U),new H({url:e.url,type:"text"}).then(function(n){Z(n.res.response,"string").then(function(n){t.resolve(o(o({},n),e))}).catch(function(e){t.reject(e)})}).catch(function(n){var r=j(1,o({statusText:n.statusText,status:n.status,type:n.type,message:"http load error",url:e.src},e));t.reject(r)}),t}function te(e,t){return!!(e.id&&t.id&&e.id===t.id||e.language&&t.language&&e.language===t.language)}function ne(e){return null!==e&&""!==e.trim()&&/^[a-zA-Z]+$/.test(e)}function re(e){var t=/[\x21-\x2f\x3a-\x40\x5b-\x60\x7B-\x7F]/;return!!t.test(e)}function ie(e){var t=/[\u3002|\uff1f|\uff01|\uff0c|\u3001|\uff1b|\uff1a|\u201c|\u201d|\u2018|\u2019|\uff08|\uff09|\u300a|\u300b|\u3008|\u3009|\u3010|\u3011|\u300e|\u300f|\u300c|\u300d|\ufe43|\ufe44|\u3014|\u3015|\u2026|\u2014|\uff5e|\ufe4f|\uffe5]/;return!!t.test(e)}function oe(e){for(var t=e.split(""),n=[],r=!1,i=0;i<t.length;i++){var o=t[i];if(ne(o))if(r){var a=n.length-1;n[a]="".concat(n[a]).concat(o)}else n.push(o),r=!0;else if(o.match(/^[ ]*$/)||re(o)||ie(o)){r=!1;var s=n.length-1;n[s]="".concat(n[s]).concat(o)}else r=!1,n.push(o)}return n}var ae=function(){function e(){var t=this;s(this,e),this.__handlers=[],window.ResizeObserver&&(this.observer=new window.ResizeObserver(function(e){t.__trigger(e)}))}return c(e,[{key:"addObserver",value:function(e,t){if(this.observer){this.observer&&this.observer.observe(e);for(var n=this.__handlers,r=-1,i=0;i<n.length;i++)n[i]&&e===n[i].target&&(r=i);r>-1?this.__handlers[r].handler.push(t):this.__handlers.push({target:e,handler:[t]})}}},{key:"unObserver",value:function(e){var t=-1;this.__handlers.map(function(n,r){e===n.target&&(t=r)}),this.observer&&this.observer.unobserve(e),t>-1&&this.__handlers.splice(t,1)}},{key:"destroyObserver",value:function(){this.observer&&this.observer.disconnect(),this.observer=null,this.__handlers=null}},{key:"__runHandler",value:function(e,t){for(var n=this.__handlers,r=0;r<n.length;r++)if(n[r]&&e===n[r].target){n[r].handler&&n[r].handler.forEach(function(n){try{n(e,t)}catch(r){console.error(r)}});break}}},{key:"__trigger",value:function(e){var t=this;e.map(function(e){var n=e.contentRect;t.__runHandler(e.target,n)})}}]),e}(),se=null;function le(e,t){se||(se=new ae),se.addObserver(e,t)}function ce(e,t){se&&se.unObserver(e,t)}var ue={RESIZE:"resize",CHANGE:"change",OFF:"off",UPDATE:"update"};function de(e){var t=[];return e&&"String"===Y(e)?t.push({url:e,index:0,start:-1,end:-1}):"Array"===Y(e)&&e.forEach(function(e,n){t.push({url:e.url||e.src,index:n,start:e.start||-1,end:e.end||-1})}),t}var he=!1,fe=function(e){d(n,e);var t=v(n);function n(e){var r;return s(this,n),r=t.call(this),u(g(r),"_onPause",function(){r.stopRender()}),u(g(r),"_onPlay",function(){r._curRenderTask.length>0&&r.startRender(-1)}),u(g(r),"_onTimeupdate",function(){if(r._isOpen){var e=r.player.video,t=e.videoWidth,n=e.videoHeight;!r._videoMeta.scale&&t&&n&&r._onResize(r.player.root);var i=r._getPlayerCurrentTime();Math.round(Math.abs(1e3*i-r._ctime))<200||(r._ctime=1e3*i,r.currentText&&r.currentText.list&&("live"===r.config.updateMode?r._liveUpdate(i):r._update(i)))}}),u(g(r),"_onResize",function(e){var t=g(r),n=t._videoMeta,i=t.config;if(i.domRender){if(e&&e instanceof window.Element||(e=r.player.root),r._iId&&(clearTimeout(r._iId),r._iId=null),!n.scale){if(!r.player.video)return;var o=r.player.video,a=o.videoWidth,s=o.videoHeight;if(!a||!s)return;n.videoWidth=a,n.videoHeight=s,n.scale=parseInt(s/a*100,10)}r.__startResize(e)}}),u(g(r),"_onCoreEvents",function(e){try{switch(e.eventName){case"core.subtitlesegments":r._onSubtitleSegment(e.list||[]);break;case"core.subtitleplaylist":r._onSubtitlePlaylist(e.list||[]);break;case"core.seipayloadtime":r._onCoreSeiintime(e);break;default:}}catch(t){console.error(t)}}),u(g(r),"startRender",function(e){if(e>0&&r._renderIntervalId&&(window.cancelAnimationFrame(r._renderIntervalId),r._renderIntervalId=-1),r.textTrack){var t=g(r),n=t._curRenderTask;r._lastTimeStamp=(new Date).getTime();var i=[];n.forEach(function(t,n){var o=t.lastTime,a=t.wordList,s=t.interval,l=t.dom,c=t.ids;if(e<0||r._lastTimeStamp<0||r._lastTimeStamp-o>=s){var u=a.shift();u&&l.appendData(u),t.lastTime=r._lastTimeStamp}a.length<1&&i.push({index:n,ids:c})}),r._log(">>>>_renderByWords emptyArr",i.length,n.length),i.forEach(function(e){n.splice(e.index,1),r._log(">>>_renderByWords remove emptyArr",e.index,n.length)}),n.length>0&&(r._renderIntervalId=window.requestAnimationFrame(r.startRender))}}),u(g(r),"destroy",function(){r.detachPlayer(),r.removeAllListeners(),r.player=null,r.textTrack=null,r._curRenderTask=[],r.stopRender()}),he=X(),r.currentText=null,r.currentExtText=null,r.textTrack=[],r._cid=-1,r._gid=-1,r._cids=[],r._iId=null,r._iC=0,r.player=null,r.root=null,r.config={line:"double",bottom:0,mode:"stroke",defaultOpen:!1,baseSizeX:49,baseSizeY:28,minSize:16,minMobileSize:13,fitVideo:!0,offsetBottom:2,fontColor:"#fff",domRender:!0,updateMode:"vod",renderMode:"",debugger:!1},r._ctime=0,r._loadingTrack={},Object.keys(r.config).map(function(t){void 0!==e[t]&&null!==e[t]&&(r.config[t]=e[t])}),r._isOpen=r.config.defaultOpen||!1,r._videoMeta={scale:0,videoHeight:0,videoWidth:0,lwidth:0,lheight:0,vWidth:0,vHeight:0,vBottom:0,vLeft:0,marginBottom:0},e.subTitles&&"Array"===Y(e.subTitles)?(e.player&&r.attachPlayer(e.player),r.seiTime=0,r.lastSeiTime=0,r._curTexts=[],r._curRenderTask=[],r._renderIntervalId=-1,r._lastTimeStamp=-1,r.setSubTitles(e.subTitles,r.config.defaultOpen),r):m(r)}return c(n,[{key:"version",get:function(){return"3.0.23"}},{key:"setSubTitles",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this._isOpen||n;r&&this.innerRoot&&this.switchOff(),this.currentText=null,this.textTrack=[],t.forEach(function(t){var n={};Object.keys(t).map(function(e){n[e]=t[e]}),n.url=de(n.url),n.isDefault&&(e.currentText=n),e.textTrack.push(n)}),this._log("setSubTitles",i),i&&this.switch().catch(function(t){e._log("[switch]",t)}),this.currentText&&this._loadTrack(this.currentText).then(function(t){e.addStyles(t)}),this.emit("reset",{list:this.textTrack,isOpen:i})}},{key:"updateSubTitle",value:function(e){for(var t=this,n=-1,r=0;r<this.textTrack.length;r++)if(te(e,this.textTrack[r])){n=r;break}if(this._log("updateSubTitle",n,e),n>-1){var i=te(this.currentText,this.textTrack[n]);if(this._log("updateSubTitle","_isCurrent",i,"this.isOpen",this.isOpen,this.currentText),!i)return;var o=de(e.url);this.isOpen?(o.forEach(function(e){t.textTrack[n].url.push(e)}),this._log("updateSubTitle _loadTrackUrls",this.textTrack[n]),this._loadTrackUrls(this.currentText,2)):this.textTrack[n].url=o}}},{key:"addStyles",value:function(e){var t=e.styles,n=e.format;t&&"vtt"===n&&(t.map(function(e){e.key||(e.key="xg-text-track-span")}),J(t,"xg-text-track"))}},{key:"attachPlayer",value:function(e){var t=this;if(this._log("attachPlayer"),e){this.player&&this.detachPlayer();var n=this.config,r=n.fontColor,i=n.mode,o=n.fitVideo,a=n.domRender;this.player=e,a&&(this.root=document.createElement("xg-text-track"),this.root.className="xg-text-track",!this._isOpen&&z(this.root,"text-track-hide"),!o&&z(this.root,"text-track-no-fitvideo"),i&&z(this.root,"text-track-".concat(i)),this.innerRoot=document.createElement("xg-text-track-inner"),this.root.appendChild(this.innerRoot),r&&(this.root.style.color=r),this.currentText&&["language","id","label"].map(function(e){t.root.setAttribute("data-".concat(e),t.currentText[e]||"")}),this.player.root.appendChild(this.root),le(e.root,this._onResize)),this.player.on("destroy",this.destroy),this.player.on("timeupdate",this._onTimeupdate),this.player.on("pause",this._onPause),this.player.on("play",this._onPlay),this.player.on("core_event",this._onCoreEvents),this._isOpen&&this.switch().catch(function(e){t._log("[switch]",e)})}}},{key:"detachPlayer",value:function(){var e=this.player,t=this.config;e&&(e.off("destroy",this.destroy),e.off("timeupdate",this._onTimeupdate),e.off("pause",this._onPause),e.off("play",this._onPlay),e.off("core_event",this._onCoreEvents),t.domRender&&(e.root&&(ce(e.root,this._onResize),e.root.removeChild(this.root)),this.innerRoot=null,this.root=null),this.player=null)}},{key:"switch",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:"",language:""};return this._log("switch",t),this._loadingTrack=t,new Promise(function(n,r){if(t.id||t.language)if(e.currentText&&te(t,e.currentText))e._loadingTrack={},e._updateCurrent(e.currentText),e.switchOn(),n(j(0));else{var i=null;e.__removeByTime(e._curTexts,0);for(var o=0;o<e.textTrack.length;o++)if(te(t,e.textTrack[o])){i=e.textTrack[o];break}if(e._log("nextSubtitle",i),i)e._emitPlayerSwitch(e.currentText,i),i.list?(e._loadingTrack={},e._updateCurrent(i),e.switchOn(),n(j(0))):(e._log("this._loadTrack",i),e._updateCurrent(i),e._loadTrack(i).then(function(t){if(e.addStyles(t),e._loadingTrack.id===i.id||e._loadingTrack.language===t.language)e._loadingTrack={},e._updateCurrent(t),e.switchOn(),n(j(0));else{var o=j(6,{message:"check _loadingTrack fail id: ".concat(e._loadingTrack.id,"  nextSubtitle:").concat(t.id)});r(o)}}).catch(function(e){r(e)}));else{var a=j(4,new Error("The is no subtitle with id:[{".concat(t.id,"}] or language:[").concat(t.language,"]")));r(a)}}else{if(e.currentText){e._loadingTrack={},e._updateCurrent(e.currentText),e.switchOn();var s=j(0,{message:"switch default subtitle success"});return void n(s)}var l=j(5,{message:"no default subtitle"});r(l)}})}},{key:"switchExt",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:"",language:""};return new Promise(function(n,r){if(t.id||t.language){for(var i=null,o=0;o<e.textTrack.length;o++)if(te(t,e.textTrack[o])){i=e.textTrack[o];break}i&&!te(i,e.currentText)&&e._loadTrack(i).then(function(t){e.currentExtText=t,n(j(0))})}else e.currentExtText=null,n(j(0))})}},{key:"switchOn",value:function(){this._log("switchOn"),this._isOpen=!0,this.show(),this.emit(ue.CHANGE,this.currentText)}},{key:"switchOff",value:function(){this._isOpen=!1,this.hide(),this.emit(ue.OFF)}},{key:"isOpen",get:function(){return this._isOpen}},{key:"_log",value:function(){if(this.config.debugger){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=console).log.apply(e,["[xgSubtitle]"].concat(n))}}},{key:"_loadTrack",value:function(e){var t=this;this._log("_loadTrack",e.language,e);var n=new U,r="",i="";if(e.json?(r="json",i=e.json):e.stringContent&&!e.url&&(r="string",i=e.stringContent),i)return Z(i,r).then(function(t){e.format=t.format,e.styles=t.styles,e.list=t.list,n.resolve(e)}).catch(function(e){n.reject(e)}),n;var o=e.url;if(0===o.length)return n.resolve(e),n;var a=o.splice(0,1);return ee(a[0]).then(function(r){e.format=r.format,e.styles=r.styles,e.list||(e.list=[]),t._pushList(e.list,r.list),o.length>1&&t._loadTrackUrls(e,2),n.resolve(e)}).catch(function(e){n.reject(e)}),n}},{key:"_emitPlayerSwitch",value:function(e,t){e&&"live"===this.config.updateMode&&(e.list=[],e.url=[]);var n=o({lang:t.language},t);this._log("emit subtile_switch ",t,n),this.player&&this.player.emit("switch_subtitle",n)}},{key:"_loadTrackUrls",value:function(e,t,n){var r=this,i=e.url.length,a=i>t?e.url.splice(0,t):e.url.splice(0,i),s=a.length;this._log("_loadTrackUrls",e.language,i,a.length,s),a.forEach(function(t,i){var a=o(o({},t),{},{index:i});ee(a).then(function(t){e.format=t.format,e.styles=t.format,e.list||(e.list=[]),r._pushList(e.list,t.list),s--}).catch(function(e){s--}).finally(function(t){0===s&&(n&&n.resolve(e),r._loadTrackUrls(e,2))})})}},{key:"_freshUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{url:""},n=-1;e.url.forEach(function(e,r){e.url===t.url&&(n=r)}),n>-1&&e.url.splice(n,1)}},{key:"_pushList",value:function(e,t){var n=t[0].start,r=t[t.length-1].end;if(0===e.length||n>=e[e.length-1].end)t.forEach(function(t){e.push(t)});else{for(var i=-1,o=0;o<e.length;o++)if(e[o].start>r){i=o;break}i>-1&&t.forEach(function(t,n){e.splice(i+n,0,t)})}return e}},{key:"_updateCurrent",value:function(e){var t=this;this.currentText=e,this.config.domRender&&this.root&&(["language","id","label"].map(function(e){t.root.setAttribute("data-".concat(e),t.currentText[e]||"")}),this.__remove(this._cids)),this._cids=[],this._gid=-1,this._cid=-1,this._curTexts=[];var n=this._getPlayerCurrentTime();n&&("live"===this.config.updateMode?this._liveUpdate(n):this._update(n))}},{key:"__loadAll",value:function(){var e=this;this.textTrack.forEach(function(t){e._loadTrack(t)})}},{key:"getDelCid",value:function(e,t){for(var n=[],r=0;r<e.length;r++)t.includes(e[r])||n.push(e[r]);return n}},{key:"getNewCid",value:function(e,t){for(var n=[],r=0;r<t.length;r++)e.includes(t[r])||n.push(t[r]);return n}},{key:"_liveUpdate",value:function(e){var t=this;if(this.currentText&&this.currentText.list&&this.currentText.list.length){var n=[],r=G(e,this.currentText.list,this._gid);if(r>-1&&(n=V(e,this.currentText.list[r].list,this._cid)),this.__removeByTime(this._curTexts,e),this._log("_liveUpdate",e,r,n,this.currentText.list[0].list[0].start,this.currentText.list[0].list[0].end),n.length>0){var i=K(this.currentText.list,r,n),o=this._curTexts.length,a=o>0?this._curTexts[o-1].index:0;i.forEach(function(e,n){e.index=n+a,t._curTexts.push(e)}),this.__render(i)}this.emit("update",this._curTexts)}}},{key:"_update",value:function(e){var t=this;if(this.currentText&&this.currentText.list&&this.currentText.list.length){var n=G(e,this.currentText.list,this._gid),r=[];if(n>-1&&(r=V(e,this.currentText.list[n].list,this._cid)),r.length<1)return this._cids.length>0&&this.config.domRender&&this.__remove(this._cids),void(this._cids=[]);if(this._cids!==r||n!==this._gid){this._gid=n,this._cid=r[0];var i=this.getDelCid(this._cids,r),o=this.getNewCid(this._cids,r);this._cids=r,this.config.domRender&&this.__remove(i);var a=[];o.map(function(e){var r=t.currentText.list[n].list[e];r.index=e,a.push(r)}),this.currentExtText&&o.map(function(e){var r=t.currentText.list[n].list[e];r.index=e,a.push(r)}),this._log("update",a,e),this.emit("update",a),this.__render(a,e)}}}},{key:"_getPlayerCurrentTime",value:function(){if(!this.player)return 0;var e=this.player.currentTime,t=parseInt(1e3*e+1e3*this.seiTime-1e3*this.lastSeiTime,10)/1e3;return t}},{key:"_onSubtitlePlaylist",value:function(e){this._log("_onSubtitlePlaylist",e);var t=e.map(function(e){return{label:e.name,language:e.lang,id:e.id,isDefault:e.default,url:[],mUrl:e.url}});this.setSubTitles(t)}},{key:"_onSubtitleSegment",value:function(e){if(this._log("_onSubtitleSegment",e.length,e[0].lang,e[0].sn,e[e.length-1].sn,e[0].start,e[e.length-1].end),e&&0!==e.length){var t=e[0].lang,n=e.map(function(e){return{id:e.sn,url:e.url,duration:e.duration,start:e.start,end:e.end}}),r={language:t,url:n};te(r,this.currentText)&&this.updateSubTitle(r)}}},{key:"_onCoreSeiintime",value:function(e){try{var t=e.time/1e3;this._log("_onCoreSeiintime sei",t,this.seiTime,this.lastSeiTime),this.seiTime=t,this.lastSeiTime=this.player?this.player.currentTime:0}catch(n){}}},{key:"resize",value:function(e,t){var n,r=this,i=this.config,o=i.baseSizeX,a=i.baseSizeY,s=i.minMobileSize,l=i.minSize,c=i.fitVideo,u=i.offsetBottom,d=this._videoMeta.scale;this._videoMeta.lwidth=e,this._videoMeta.lheight=t;var h=0;t/e*100>=d?(h=parseInt(d*e,10)/100,n=e):(h=t,n=parseInt(t/d*100,10)),this._videoMeta.vWidth=n,this._videoMeta.vHeight=h;var f=0,p=0;d>120?(f=a,p=parseInt(f*h/1080,10)):(f=o,p=parseInt(f*n/1920,10));var g=he?s:l;p=p<g?g:p>f?f:p;var m={fontSize:p},v=parseInt((t-h)/2,10),A=parseInt((e-n)/2,10),b=parseInt(h*u,10)/100;this._videoMeta.vBottom=v,this._videoMeta.vLeft=A,this._videoMeta.marginBottom=b,c&&(m.bottom=v+b,m.left=m.right=A),Object.keys(m).map(function(e){r.root.style[e]="".concat(m[e],"px")}),this.emit(ue.RESIZE,{vLeft:A,vBottom:v,marginBottom:b,vWidth:n,vHeight:h,fontSize:p,scale:d})}},{key:"__startResize",value:function(e){var t=this,n=e.getBoundingClientRect(),r=this._videoMeta,i=n.width,o=n.height;if(this._iId&&(clearTimeout(this._iId),this._iId=null),i>0&&o>0&&(i!==r.lwidth||o!==r.lheight))this._iC=0,this.resize(i,o);else{if(this._iC>=5)return void(this._iC=0);this._iC++,this._iId=setTimeout(function(){t.__startResize(e)},50)}}},{key:"__removeByTime",value:function(e,t){for(var n=[],r=0;r<e.length;r++)(!t||e[r].end<t)&&n.push(r);0!==n.length&&(e.splice(n[0],n.length),this.config.domRender&&this.__remove(n))}},{key:"__remove",value:function(e){var t=this;if(e&&!(e.length<1)){this._log(">>>>_renderByWords__remove",e);for(var n=this.innerRoot.children,r=[],i=0;i<n.length;i++){var o=Number(n[i].getAttribute("data-index"));e.includes(o)&&r.push(n[i])}r.map(function(e){t.innerRoot.removeChild(e)})}}},{key:"__render",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._log("__render",t.length,this.config.domRender);var n=this.config,r=n.renderMode,i=n.domRender;t.length>0&&i&&t.forEach(function(t){var n="text-track-".concat(e.config.line);t.text.forEach(function(i,o){o>0&&(n+=" text-track-deputy");var a={"data-start":t.start,"data-end":t.end,"data-index":t.index},s=q("xg-text-track-span","",a,n);if(e.innerRoot.appendChild(s),"step"===r){var l=q("xg-text-track-span","",a,"".concat(n," text-track-space"));e.innerRoot.appendChild(l),l.innerHTML=i,setTimeout(function(){e._renderByWords(s,o,t.start,t.end,i)},600)}else s.innerHTML=i})})}},{key:"_renderByWords",value:function(e,t,n,r,i){var o=document.createTextNode("");e.appendChild(o);var a=oe(i),s=this._getPlayerCurrentTime(),l=parseInt(1e3*(r-s),10);if(!(s>=r)){n>=s&&(s=n),l>300&&(l-=50);var c=a.length,u={dom:o,ids:t,wordList:a,interval:l/c,start:s,end:r,duration:l,lastTime:0};this._log(">>>>_renderByWords",l,u);for(var d=this._curRenderTask,h=-1,f=0;f<d.length;f++)if(d[f].ids===t){h=f;break}h>-1&&d.slice(h,1),d.push(u),this.startRender(-1)}}},{key:"stopRender",value:function(){this._renderIntervalId&&window.cancelAnimationFrame(this._renderIntervalId)}},{key:"show",value:function(){this.config.domRender&&W(this.root,"text-track-hide")}},{key:"hide",value:function(){this.config.domRender&&(z(this.root,"text-track-hide"),this.innerRoot.innerHTML="")}},{key:"emit",value:function(e,t){for(var r,i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];(r=b(h(n.prototype),"emit",this)).call.apply(r,[this,e,t].concat(o))}},{key:"on",value:function(e,t){for(var r,i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];(r=b(h(n.prototype),"on",this)).call.apply(r,[this,e,t].concat(o))}},{key:"once",value:function(e,t){for(var r,i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];(r=b(h(n.prototype),"once",this)).call.apply(r,[this,e,t].concat(o))}},{key:"off",value:function(e,t){for(var r,i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];(r=b(h(n.prototype),"off",this)).call.apply(r,[this,e,t].concat(o))}},{key:"offAll",value:function(){b(h(n.prototype),"removeAllListeners",this).call(this)}},{key:"marginBottom",get:function(){var e=this._videoMeta,t=e.bottom,n=e.marginBottom;return this.config.fitVideo?t+n:n}}]),n}(x()),pe=n(61206),ge=n(56030),me=n(83752),ve=n(39726),Ae=n(76753),be=n.n(Ae),ye=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(e){var i;return(0,r.xs)(this,n),i=t.call(this),(0,r.n8)((0,r.V5)(i),"_onChange",function(e){var t=i._media.textTracks;if(t&&0!==t.length){for(var n=[],r=[],o=-1,a=0;a<t.length;a++){var s=t[a];"subtitles"===s.kind&&(n.push({id:s.id||s.language,language:s.language,text:s.label,isDefault:"showing"===s.mode}),-1===o&&"showing"===s.mode&&(o=a),r.push(s.language))}r.join("|")!==i._languages?(i._languages=r.join("|"),i.emit("reset",{list:n,isOpen:o>-1})):-1===o?i.emit("off"):i.curIndex!==o&&i.emit("change",n[o]),i.curIndex=o}}),i._media=e,i._list=[],i._languages="",i.curIndex=-1,i._init(),i}return(0,r.j6)(n,[{key:"_init",value:function(){var e=this._media.textTracks;e.addEventListener("change",this._onChange)}},{key:"switch",value:function(e){for(var t=this._media.textTracks,n=0;n<t.length;n++){var r=t[n];r.language===e.language?r.mode="showing":"showing"===r.mode&&(r.mode="disabled")}}},{key:"switchOff",value:function(){for(var e=this._media.textTracks,t=0;t<e.length;t++)e[t].mode="disabled";this.curIndex=-1}},{key:"destroy",value:function(){var e=this._media.textTracks;e.removeEventListener("change",this._onChange),this._media=null,this._list=[],this._languages="",this.curIndex=-1}}]),n}(be()),we={CLOSE:"close",OPEN:"open",TEXT_CLOSE:"text-close"};function _e(e){var t=-1;return e.forEach(function(e,n){e.id||e.language||(e.id=n),e.id=String(e.id),!e.url&&(e.url=e.src),!e.text&&(e.text=e.label),!e.language&&(e.language=e.srclang),void 0===e.isDefault&&(e.isDefault=e.default||!1),(e.isDefault||e.default)&&(t<0?t=n:e.isDefault=e.default=!1)}),t}function xe(e,t){var n=pe.Ay.isNotNull(e.id)&&pe.Ay.isNotNull(t.id)&&e.id===t.id,r=pe.Ay.isNotNull(e.language)&&pe.Ay.isNotNull(t.language)&&e.language===t.language;return n||r}var Ee=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){var e;(0,r.xs)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,r.n8)((0,r.V5)(e),"_onOff",function(){e.switchOffSubtitle()}),(0,r.n8)((0,r.V5)(e),"_onChange",function(t){var n=e.getSubTitleIndex(e.config.list,t);n<0||e.updateCurItem(n,t)}),(0,r.n8)((0,r.V5)(e),"_onListReset",function(t){e.updateList(t)}),(0,r.n8)((0,r.V5)(e),"clickSwitch",function(t,n){var r=n.type===we.CLOSE||n.type===we.TEXT_CLOSE;e.subTitles&&(r?e.subTitles.switchOff():e.switchSubTitle({language:n.language,id:n.id}))}),(0,r.n8)((0,r.V5)(e),"onIconClick",function(t){e.curItem?e.subTitles.switchOff():e.switchOnSubtitle(t)}),(0,r.n8)((0,r.V5)(e),"onPlayerFocus",function(t){e.subTitles&&e.config.style.follow&&e.rePosition()}),(0,r.n8)((0,r.V5)(e),"onPlayerBlur",function(t){e.subTitles&&e.config.style.follow&&!e.playerConfig.marginControls&&e.subTitles.root&&(e.subTitles.root.style.transform="translate(0, 0)")}),e}return(0,r.j6)(n,[{key:"beforeCreate",value:function(e){var t=e.player.config.texttrack||e.player.config.textTrack;"Array"===pe.Ay.typeOf(t)&&(e.config.list=t)}},{key:"afterCreate",value:function(){var e=this.config,t=e.list,i=e.mode,o=_e(t);(0,r.Jt)((0,r.U6)(n.prototype),"afterCreate",this).call(this),this.curIndex=-1,this.lastIndex=-1,this.curItem=null,this._nativeTracks=null,this.handlerClickSwitch=this.hook("subtitle_change",this.clickSwitch),"native"===i?this._initNativeSubtitle():this._initExtSubTitle(o)}},{key:"_initNativeSubtitle",value:function(){var e=this.player;e._subTitles||(e._subTitles=new ye(e.media)),this.subTitles=e._subTitles,this.subTitles.on("off",this._onOff),this.subTitles.on("change",this._onChange),this.subTitles.on("reset",this._onListReset)}},{key:"_initExtSubTitle",value:function(e){var t=this.config,n=t.list,r=t.style,i=t.isDefaultOpen,o=t.updateMode,a=t.renderMode;i&&e<0&&n.length>0&&(e=0,n[0].isDefault=!0);var s={subTitles:n,defaultOpen:i,updateMode:o,renderMode:a,debugger:this.config.debugger};Object.keys(r).map(function(e){s[e]=r[e]});var l=!this.playerConfig.marginControls&&this.player.controls.root;l&&(this.on(ge.PLAYER_FOCUS,this.onPlayerFocus),this.on(ge.PLAYER_BLUR,this.onPlayerBlur));var c=this.player;c._subTitles?c._subTitles._isOpen&&(e=this.getSubTitleIndex(this.config.list,c._subTitles.currentText)):(c._subTitles=new fe(s),c._subTitles.attachPlayer(this.player)),this.subTitles=c._subTitles,this.subTitles.on("off",this._onOff),this.subTitles.on("change",this._onChange),this.subTitles.on("reset",this._onListReset),r.follow&&this.subTitles.root&&pe.Ay.addClass(this.subTitles.root,"follow-control"),this._renderList(n,i,e)}},{key:"_renderList",value:function(e,t,n){e&&0!==e.length&&(t?(n=n<0?0:n,e[n].isDefault=!0,this.curIndex=n,this.curItem=e[n],this.switchIconState(!0)):this.switchIconState(!1),this.player.isCanplay&&e.length>0&&(this.renderItemList(e),this.show()))}},{key:"registerIcons",value:function(){return{textTrackOpen:{icon:"",class:"xg-texttrak-open"},textTrackClose:{icon:"",class:"xg-texttrak-close"}}}},{key:"show",value:function(e){!this.config.list||this.config.list.length<1||pe.Ay.addClass(this.root,"show")}},{key:"getSubTitleIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{id:"",language:""},n=-1;return t&&(t.id||t.language)?(e.forEach(function(e,r){xe(e,t)&&(n=r)}),n):n}},{key:"updateSubtitles",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&(this.updateList({list:e}),this.subTitles&&this.subTitles.setSubTitles(this.config.list,this.curIndex>-1,t))}},{key:"updateList",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.list){var t=[];e.list.forEach(function(e){t.push(e)});var n=_e(t);e.isOpen?(this.curIndex=n,this.curItem=n>-1?t[n]:null):(this.curIndex=-1,this.curItem=null),this.config.list=t,t.length>0?this.show():(this.switchOffSubtitle(),this.hide()),this.renderItemList()}}},{key:"switchSubTitle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:"",language:""};this.switchIconState(!0);var t=this.getSubTitleIndex(this.config.list,e);t<0||this.subTitles.switch(e).catch(function(e){})}},{key:"switchOffSubtitle",value:function(e){this.emit("subtitle_change",{off:!0,isListUpdate:!1,list:[]}),this.lastIndex=this.curIndex,this.curIndex=-1,this.curItem=null,this.switchIconState(!1),this.renderItemList()}},{key:"switchOnSubtitle",value:function(){var e=this.config.list,t=this.lastIndex>-1?this.lastIndex:0,n=e[t];this.switchIconState(!0),this.switchSubTitle(n)}},{key:"switchIconState",value:function(e){this.setAttr("data-state",e?"open":"close")}},{key:"onItemClick",value:function(e,t){var i=e.delegateTarget,o=i.getAttribute("language"),a=i.getAttribute("data-id"),s=i.getAttribute("data-type");(0,r.Jt)((0,r.U6)(n.prototype),"onItemClick",this).apply(this,arguments),this.handlerClickSwitch(e,{language:o,id:a,type:s})}},{key:"changeCurrentText",value:function(){if(!this.isIcons){var e=this.config,t=e.list,n=e.closeText,r=this.curIndex;if(r-1<0)this.find(".icon-text").innerHTML=this.getTextByLang(n,"iconText");else if(r-1<t.length){var i=t[r-1];if(!i)return;this.find(".icon-text").innerHTML=this.getTextByLang(i,"iconText")}}}},{key:"updateCurItem",value:function(e,t){this.curIndex=e,this.curItem=this.config.list[e-1],this.renderItemList(),this.emit("subtitle_change",(0,r.T1)({off:!1,isListUpdate:!1,list:[]},t))}},{key:"renderItemList",value:function(){var e=this,t=this.config,i=t.list,o=t.closeText,a=t.needCloseText,s=[],l=this.curIndex,c=this.curIndex;a&&(s.push({showText:this.getTextByLang(o),"data-type":we.TEXT_CLOSE,selected:-1===this.curIndex}),l++),i.map(function(t,n){var r={language:t.language||t.srclang||"","data-id":t.id||""};r.selected=e.curIndex===n,r.showText=e.getTextByLang(t),s.push(r)}),(0,r.Jt)((0,r.U6)(n.prototype),"renderItemList",this).call(this,s,l),this.curIndex=c,this.curItem=i[c]}},{key:"rePosition",value:function(){var e=this.config.style.fitVideo,t=this.player.controls.root.getBoundingClientRect(),n=0-t.height;if(e){var r=this.player,i=r.video,o=r.root,a=o.getBoundingClientRect(),s=a.height,l=a.width,c=i.videoHeight,u=i.videoWidth,d=parseInt(c/u*100,10),h=d*l/100;h>s&&(h=s);var f=(s-h)/2-n;f<0&&(this.subTitles.root.style.transform="translate(0, ".concat(f,"px)"))}else this.subTitles.root.style.transform="translate(0, ".concat(n,"px)")}},{key:"destroy",value:function(){this.subTitles&&(this.subTitles.destroy(),this.subTitles=null),(0,r.Jt)((0,r.U6)(n.prototype),"destroy",this).call(this)}}],[{key:"pluginName",get:function(){return"texttrack"}},{key:"defaultConfig",get:function(){return(0,r.T1)((0,r.T1)({},ve.A.defaultConfig),{},{position:me.lP.CONTROLS_RIGHT,index:6,list:[],isDefaultOpen:!0,style:{follow:!0,mode:"stroke",followBottom:50,fitVideo:!0,offsetBottom:2,baseSizeX:49,baseSizeY:28,minSize:16,minMobileSize:13,line:"double",fontColor:"#fff"},closeText:{text:"不开启",iconText:"字幕"},needCloseText:!0,className:"xgplayer-texttrack",hidePortrait:!1,isShowIcon:!0,renderMode:"normal",mode:"external",debugger:!1})}}]),n}(ve.A)},7515:function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";var e="week",t="year";return function(n,r,i){var o=r.prototype;o.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var o=i(this).startOf(t).add(1,t).date(r),a=i(this).endOf(e);if(o.isBefore(a))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?i(this).startOf("week").week():Math.ceil(l)},o.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}})},7588:function(e,t,n){"use strict";var r=n(46518),i=n(69565),o=n(72652),a=n(79306),s=n(28551),l=n(1767),c=n(9539),u=n(84549),d=u("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:d},{forEach:function(e){s(this);try{a(e)}catch(r){c(this,"throw",r)}if(d)return i(d,this,e);var t=l(this),n=0;o(t,function(t){e(t,n++)},{IS_RECORD:!0})}})},7776:function(e){function t(e){const t=["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"];return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:t},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}e.exports=t},8076:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="LikeOutlined",c.inheritAttrs=!1;var u=c},8092:function(e){function t(e){const t=e.regex,n={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},r={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},i={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},o={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},a={begin:"/",end:"/",keywords:n,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},s=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,l={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[o,a,{className:"comment",begin:t.concat(s,t.anyNumberOfTimes(t.concat(/[ ]+/,s))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:n,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a,l]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[l]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},r,i]},e.C_NUMBER_MODE,i]}}e.exports=t},8111:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},8149:function(e,t){"use strict";t.A=()=>{if("undefined"===typeof navigator||"undefined"===typeof window)return!1;const e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substring(0,4))}},8289:function(e){function t(e){const t=["array","bool","bytes","char","exn|5","float","int","int32","int64","list","lazy_t|5","nativeint|5","ref","string","unit"];return{name:"ReasonML",aliases:["re"],keywords:{$pattern:/[a-z_]\w*!?/,keyword:["and","as","asr","assert","begin","class","constraint","do","done","downto","else","end","esfun","exception","external","for","fun","function","functor","if","in","include","inherit","initializer","land","lazy","let","lor","lsl","lsr","lxor","mod","module","mutable","new","nonrec","object","of","open","or","pri","pub","rec","sig","struct","switch","then","to","try","type","val","virtual","when","while","with"],built_in:t,literal:["true","false"]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:"literal",match:/\[(\|\|)?\]|\(\)/,relevance:0},e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{scope:"symbol",match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:"type",match:/`[A-Z][\w\']*/},{scope:"type",match:/\b[A-Z][\w\']*/,relevance:0},{match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:"operator",match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,relevance:0},e.inherit(e.APOS_STRING_MODE,{scope:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{scope:"number",variants:[{match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{match:/\b0[bB][01_]+[Lln]?/},{match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]}}e.exports=t},8936:function(e,t,n){"use strict";var r=n(38266).version,i={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var o={};function a(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var r=Object.keys(e),i=r.length;while(i-- >0){var o=r[i],a=t[o];if(a){var s=e[o],l=void 0===s||a(s,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}}i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(i(r," has been removed"+(t?" in "+t:"")));return t&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:a,validators:i}},8982:function(e,t,n){"use strict";n.d(t,{A:function(){return E}});var r=n(56768),i=n(60674),o=n(53942),a=n(49974),s=n(44832),l=n(90112);const c=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}};var u=(0,l.A)("Wave",e=>[c(e)]),d=(n(18111),n(61701),n(90144)),h=n(45130),f=n(83823),p=n(44678);function g(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])}function m(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&g(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function v(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return m(t)?t:m(n)?n:m(r)?r:null}var A=n(32545);function b(e){return Number.isNaN(e)?0:e}const y=(0,r.pM)({props:{target:(0,p.ge)(),className:String},setup(e){const t=(0,d.IJ)(null),[n,i]=(0,f.A)(null),[o,a]=(0,f.A)([]),[s,l]=(0,f.A)(0),[c,u]=(0,f.A)(0),[p,g]=(0,f.A)(0),[m,y]=(0,f.A)(0),[w,_]=(0,f.A)(!1);function x(){const{target:t}=e,n=getComputedStyle(t);i(v(t));const r="static"===n.position,{borderLeftWidth:o,borderTopWidth:s}=n;l(r?t.offsetLeft:b(-parseFloat(o))),u(r?t.offsetTop:b(-parseFloat(s))),g(t.offsetWidth),y(t.offsetHeight);const{borderTopLeftRadius:c,borderTopRightRadius:d,borderBottomLeftRadius:h,borderBottomRightRadius:f}=n;a([c,d,f,h].map(e=>b(parseFloat(e))))}let E,S,C;const T=()=>{clearTimeout(C),A.A.cancel(S),null===E||void 0===E||E.disconnect()},k=()=>{var e;const n=null===(e=t.value)||void 0===e?void 0:e.parentElement;n&&((0,h.XX)(null,n),n.parentElement&&n.parentElement.removeChild(n))};(0,r.sV)(()=>{T(),C=setTimeout(()=>{k()},5e3);const{target:t}=e;t&&(S=(0,A.A)(()=>{x(),_(!0)}),"undefined"!==typeof ResizeObserver&&(E=new ResizeObserver(x),E.observe(t)))}),(0,r.xo)(()=>{T()});const O=e=>{"opacity"===e.propertyName&&k()};return()=>{if(!w.value)return null;const i={left:`${s.value}px`,top:`${c.value}px`,width:`${p.value}px`,height:`${m.value}px`,borderRadius:o.value.map(e=>`${e}px`).join(" ")};return n&&(i["--wave-color"]=n.value),(0,r.bF)(h.eB,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[(0,r.bF)("div",{ref:t,class:e.className,style:i,onTransitionend:O},null)]})}}});function w(e,t){const n=document.createElement("div");return n.style.position="absolute",n.style.left="0px",n.style.top="0px",null===e||void 0===e||e.insertBefore(n,null===e||void 0===e?void 0:e.firstChild),(0,h.XX)((0,r.bF)(y,{target:e,className:t},null),n),()=>{(0,h.XX)(null,n),n.parentElement&&n.parentElement.removeChild(n)}}var _=w;function x(e,t){const n=(0,r.nI)();let i;function o(){var r;const o=(0,s.oK)(n);null===i||void 0===i||i(),!(null===(r=null===t||void 0===t?void 0:t.value)||void 0===r?void 0:r.disabled)&&o&&(i=_(o,e.value))}return(0,r.xo)(()=>{null===i||void 0===i||i()}),o}var E=(0,r.pM)({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:n}=t;const l=(0,r.nI)(),{prefixCls:c,wave:d}=(0,i.A)("wave",e),[,h]=u(c),f=x((0,r.EW)(()=>(0,a.A)(c.value,h.value)),d);let p;const g=()=>{const e=(0,s.oK)(l);e.removeEventListener("click",p,!0)};return(0,r.sV)(()=>{(0,r.wB)(()=>e.disabled,()=>{g(),(0,r.dY)(()=>{const t=(0,s.oK)(l);null===t||void 0===t||t.removeEventListener("click",p,!0),t&&1===t.nodeType&&!e.disabled&&(p=e=>{"INPUT"===e.target.tagName||!(0,o.A)(e.target)||!t.getAttribute||t.getAttribute("disabled")||t.disabled||t.className.includes("disabled")||t.className.includes("-leave")||f()},t.addEventListener("click",p,!0))})},{immediate:!0,flush:"post"})}),(0,r.xo)(()=>{g()}),()=>{var e;const t=null===(e=n.default)||void 0===e?void 0:e.call(n)[0];return t}}})},9138:function(e,t,n){"use strict";n.d(t,{A:function(){return k}});var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(23966),l=n(21715),c=n(60674),u=n(69998),d=n(49974),h=n(16678),f=n(6252),p=n(87546),g=n(7403),m=n(60136),v=n(76110),A=n(39058);function b(e,t){return t||(0,o.bF)("span",{class:`${e}-close-x`},[(0,o.bF)(v.A,{class:`${e}-close-icon`},null)])}(0,o.bF)(m.A,null,null),(0,o.bF)(g.A,null,null),(0,o.bF)(p.A,null,null),(0,o.bF)(f.A,null,null),(0,o.bF)(h.A,null,null);const y={success:g.A,info:m.A,error:p.A,warning:f.A};function w(e){let{prefixCls:t,icon:n,type:r,message:i,description:a,btn:s}=e,l=null;if(n)l=(0,o.bF)("span",{class:`${t}-icon`},[(0,A.BM)(n)]);else if(r){const e=y[r];l=(0,o.bF)(e,{class:`${t}-icon ${t}-icon-${r}`},null)}return(0,o.bF)("div",{class:(0,d.A)({[`${t}-with-icon`]:l}),role:"alert"},[l,(0,o.bF)("div",{class:`${t}-message`},[i]),(0,o.bF)("div",{class:`${t}-description`},[a]),s&&(0,o.bF)("div",{class:`${t}-btn`},[s])])}(0,o.pM)({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","icon","type","message","description","btn","closeIcon"],setup(e){const{getPrefixCls:t}=(0,c.A)("notification",e),n=(0,o.EW)(()=>e.prefixCls||t("notification")),i=(0,o.EW)(()=>`${n.value}-notice`),[,a]=(0,l.A)(n);return()=>(0,o.bF)(u.A,(0,r.A)((0,r.A)({},e),{},{prefixCls:n.value,class:(0,d.A)(a.value,`${i.value}-pure-panel`),noticeKey:"pure",duration:null,closable:e.closable,closeIcon:b(n.value,e.closeIcon)}),{default:()=>[(0,o.bF)(w,{prefixCls:i.value,icon:e.icon,type:e.type,message:e.message,description:e.description,btn:e.btn},null)]})}});var _=n(93958),x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const E=24,S=4.5,C=(0,o.pM)({name:"Holder",inheritAttrs:!1,props:["prefixCls","class","type","icon","content","onAllRemoved"],setup(e,t){let{expose:n}=t;const{getPrefixCls:r,getPopupContainer:a}=(0,c.A)("notification",e),u=(0,o.EW)(()=>e.prefixCls||r("notification")),h=t=>{var n,r;return(0,_.n)(t,null!==(n=e.top)&&void 0!==n?n:E,null!==(r=e.bottom)&&void 0!==r?r:E)},[,f]=(0,l.A)(u),p=()=>(0,d.A)(f.value,{[`${u.value}-rtl`]:e.rtl}),g=()=>(0,_.V)(u.value),[m,v]=(0,s.A)({prefixCls:u.value,getStyles:h,getClassName:p,motion:g,closable:!0,closeIcon:b(u.value),duration:S,getContainer:()=>{var t,n;return(null===(t=e.getPopupContainer)||void 0===t?void 0:t.call(e))||(null===(n=a.value)||void 0===n?void 0:n.call(a))||document.body},maxCount:e.maxCount,hashId:f.value,onAllRemoved:e.onAllRemoved});return n((0,i.A)((0,i.A)({},m),{prefixCls:u.value,hashId:f})),v}});function T(e){const t=(0,a.IJ)(null),n=Symbol("notificationHolderKey"),s=e=>{if(!t.value)return;const{open:n,prefixCls:r,hashId:a}=t.value,s=`${r}-notice`,{message:l,description:c,icon:u,type:h,btn:f,class:p}=e,g=x(e,["message","description","icon","type","btn","class"]);return n((0,i.A)((0,i.A)({placement:"topRight"},g),{content:()=>(0,o.bF)(w,{prefixCls:s,icon:"function"===typeof u?u():u,type:h,message:"function"===typeof l?l():l,description:"function"===typeof c?c():c,btn:"function"===typeof f?f():f},null),class:(0,d.A)(h&&`${s}-${h}`,a,p)}))},l=e=>{var n,r;void 0!==e?null===(n=t.value)||void 0===n||n.close(e):null===(r=t.value)||void 0===r||r.destroy()},c={open:s,destroy:l},u=["success","info","warning","error"];return u.forEach(e=>{c[e]=t=>s((0,i.A)((0,i.A)({},t),{type:e}))}),[c,()=>(0,o.bF)(C,(0,r.A)((0,r.A)({key:n},e),{},{ref:t}),null)]}function k(e){return T(e)}},9188:function(e,t,n){function r(){this.buffer=[],this.length=0}n(44114),r.prototype={get:function(e){const t=Math.floor(e/8);return 1===(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1===(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=r},9485:function(e){e.exports=function(e){return!(!e||"string"===typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},9486:function(e,t,n){"use strict";var r=n(46518),i=n(44576),o=n(79504),a=n(83972),s=n(34154),l=n(55169),c=n(92804),u=n(944),d=c.i2c,h=c.i2cUrl,f=o("".charAt),p=i.Uint8Array,g=!p||!p.prototype.toBase64||!function(){try{var e=new p;e.toBase64(null)}catch(t){return!0}}();p&&r({target:"Uint8Array",proto:!0,forced:g},{toBase64:function(){var e=s(this),t=arguments.length?a(arguments[0]):void 0,n="base64"===u(t)?d:h,r=!!t&&!!t.omitPadding;l(this.buffer);for(var i,o="",c=0,p=e.length,g=function(e){return f(n,i>>6*e&63)};c+2<p;c+=3)i=(e[c]<<16)+(e[c+1]<<8)+e[c+2],o+=g(3)+g(2)+g(1)+g(0);return c+2===p?(i=(e[c]<<16)+(e[c+1]<<8),o+=g(3)+g(2)+g(1)+(r?"":"=")):c+1===p&&(i=e[c]<<16,o+=g(3)+g(2)+(r?"":"==")),o}})},9519:function(e,t,n){"use strict";n.d(t,{Ay:function(){return c},h1:function(){return a}});n(18111),n(7588),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698);var r=n(51137);const i="undefined"!==typeof CSSINJS_STATISTIC;let o=!0;function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!i)return(0,r.A)({},...t);o=!1;const a={};return t.forEach(e=>{const t=Object.keys(e);t.forEach(t=>{Object.defineProperty(a,t,{configurable:!0,enumerable:!0,get:()=>e[t]})})}),o=!0,a}const s={};function l(){}function c(e){let t,n=e,r=l;return i&&(t=new Set,n=new Proxy(e,{get(e,n){return o&&t.add(n),e[n]}}),r=(e,n)=>{s[e]={global:Array.from(t),component:n}}),{token:n,keys:t,flush:r}}},9539:function(e,t,n){"use strict";var r=n(69565),i=n(28551),o=n(55966);e.exports=function(e,t,n){var a,s;i(e);try{if(a=o(e,"return"),!a){if("throw"===t)throw n;return n}a=r(a,e)}catch(l){s=!0,a=l}if("throw"===t)throw n;if(s)throw a;return i(a),n}},9761:function(e,t,n){"use strict";function r(e){return null!==e&&void 0!==e&&e===e.window}function i(e,t){var n,i;if("undefined"===typeof window)return 0;const o=t?"scrollTop":"scrollLeft";let a=0;return r(e)?a=e[t?"scrollY":"scrollX"]:e instanceof Document?a=e.documentElement[o]:(e instanceof HTMLElement||e)&&(a=e[o]),e&&!r(e)&&"number"!==typeof a&&(a=null===(i=(null!==(n=e.ownerDocument)&&void 0!==n?n:e).documentElement)||void 0===i?void 0:i[o]),a}n.d(t,{A:function(){return i},l:function(){return r}})},9818:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});n(18111),n(7588);var r=n(51137),i=n(1471);const o={adjustX:1,adjustY:1},a={adjustX:0,adjustY:0},s=[0,0];function l(e){return"boolean"===typeof e?e?o:a:(0,r.A)((0,r.A)({},a),e)}function c(e){const{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:o=8,autoAdjustOverflow:a,arrowPointAtCenter:c}=e,u={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(n+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+t)]},topRight:{points:["br","tc"],offset:[n+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+t)]},bottomRight:{points:["tr","bc"],offset:[n+t,4]},rightBottom:{points:["bl","cr"],offset:[4,o+t]},bottomLeft:{points:["tl","bc"],offset:[-(n+t),4]},leftBottom:{points:["br","cl"],offset:[-4,o+t]}};return Object.keys(u).forEach(e=>{u[e]=c?(0,r.A)((0,r.A)({},u[e]),{overflow:l(a),targetOffset:s}):(0,r.A)((0,r.A)({},i.D[e]),{overflow:l(a)}),u[e].ignoreShake=!0}),u}},10017:function(e,t,n){"use strict";n.d(t,{Ay:function(){return $e}});var r=n(41034),i=n(51137),o=n(56768),a=n(22622),s=n(98684),l=n(90144),c=n(81186),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const d={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},h=(0,o.pM)({compatConfig:{MODE:3},name:"TransButton",inheritAttrs:!1,props:{noStyle:{type:Boolean,default:void 0},onClick:Function,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,emit:a,attrs:s,expose:h}=t;const f=(0,l.IJ)(),p=e=>{const{keyCode:t}=e;t===c.A.ENTER&&e.preventDefault()},g=e=>{const{keyCode:t}=e;t===c.A.ENTER&&a("click",e)},m=e=>{a("click",e)},v=()=>{f.value&&f.value.focus()},A=()=>{f.value&&f.value.blur()};return(0,o.sV)(()=>{e.autofocus&&v()}),h({focus:v,blur:A}),()=>{var t;const{noStyle:a,disabled:l}=e,c=u(e,["noStyle","disabled"]);let h={};return a||(h=(0,i.A)({},d)),l&&(h.pointerEvents="none"),(0,o.bF)("div",(0,r.A)((0,r.A)((0,r.A)({role:"button",tabindex:0,ref:f},c),s),{},{onClick:m,onKeydown:p,onKeyup:g,style:(0,i.A)((0,i.A)({},h),s.style||{})}),[null===(t=n.default)||void 0===t?void 0:t.call(n)])}}});var f=h,p=n(32545),g=n(55498),m=n(60946),v=(n(18111),n(22489),n(7588),{icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"}),A=v,b=n(4827);function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){w(e,t,n[t])})}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=function(e,t){var n=y({},e,t.attrs);return(0,o.bF)(b.A,y({},n,{icon:A}),null)};_.displayName="EnterOutlined",_.inheritAttrs=!1;var x=_,E=n(49974),S=n(90112),C=n(61935),T=n(64675),k=n(50483);const O=(e,t,n,r)=>{const{sizeMarginHeadingVerticalEnd:i,fontWeightStrong:o}=r;return{marginBottom:i,color:n,fontWeight:o,fontSize:e,lineHeight:t}},M=e=>{const t=[1,2,3,4,5],n={};return t.forEach(t=>{n[`\n      h${t}&,\n      div&-h${t},\n      div&-h${t} > textarea,\n      h${t}\n    `]=O(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},I=e=>{const{componentCls:t}=e;return{"a&, a":(0,i.A)((0,i.A)({},(0,k.Y)(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},D=()=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:C.bK[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),N=e=>{const{componentCls:t}=e,n=(0,T.C5)(e),r=n.inputPaddingVertical+1;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-r,marginBottom:`calc(1em - ${r}px)`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},R=e=>({"&-copy-success":{["\n    &,\n    &:hover,\n    &:focus"]:{color:e.colorSuccess}}}),L=()=>({["\n  a&-ellipsis,\n  span&-ellipsis\n  "]:{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),B=e=>{const{componentCls:t,sizeMarginHeadingVerticalStart:n}=e;return{[t]:(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},["\n        div&,\n        p\n      "]:{marginBottom:"1em"}},M(e)),{[`\n      & + h1${t},\n      & + h2${t},\n      & + h3${t},\n      & + h4${t},\n      & + h5${t}\n      `]:{marginTop:n},["\n      div,\n      ul,\n      li,\n      p,\n      h1,\n      h2,\n      h3,\n      h4,\n      h5"]:{["\n        + h1,\n        + h2,\n        + h3,\n        + h4,\n        + h5\n        "]:{marginTop:n}}}),D()),I(e)),{[`\n        ${t}-expand,\n        ${t}-edit,\n        ${t}-copy\n      `]:(0,i.A)((0,i.A)({},(0,k.Y)(e)),{marginInlineStart:e.marginXXS})}),N(e)),R(e)),L()),{"&-rtl":{direction:"rtl"}})}};var P=(0,S.A)("Typography",e=>[B(e)],{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"});const F=()=>({prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String}),$=(0,o.pM)({compatConfig:{MODE:3},name:"Editable",inheritAttrs:!1,props:F(),setup(e,t){let{emit:n,slots:i,attrs:a}=t;const{prefixCls:s}=(0,l.QW)(e),u=(0,l.Kh)({current:e.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});(0,o.wB)(()=>e.value,e=>{u.current=e});const d=(0,l.KR)();function h(e){d.value=e}function f(e){let{target:{value:t}}=e;u.current=t.replace(/[\r\n]/g,""),n("change",u.current)}function p(){u.inComposition=!0}function g(){u.inComposition=!1}function v(e){const{keyCode:t}=e;t===c.A.ENTER&&e.preventDefault(),u.inComposition||(u.lastKeyCode=t)}function A(t){const{keyCode:r,ctrlKey:i,altKey:o,metaKey:a,shiftKey:s}=t;u.lastKeyCode!==r||u.inComposition||i||o||a||s||(r===c.A.ENTER?(y(),n("end")):r===c.A.ESC&&(u.current=e.originContent,n("cancel")))}function b(){y()}function y(){n("save",u.current.trim())}(0,o.sV)(()=>{var e;if(d.value){const t=null===(e=d.value)||void 0===e?void 0:e.resizableTextArea,n=null===t||void 0===t?void 0:t.textArea;n.focus();const{length:r}=n.value;n.setSelectionRange(r,r)}});const[w,_]=P(s);return()=>{const t=(0,E.A)({[`${s.value}`]:!0,[`${s.value}-edit-content`]:!0,[`${s.value}-rtl`]:"rtl"===e.direction,[e.component?`${s.value}-${e.component}`:""]:!0},a.class,_.value);return w((0,o.bF)("div",(0,r.A)((0,r.A)({},a),{},{class:t}),[(0,o.bF)(m.A,{ref:h,maxlength:e.maxlength,value:u.current,onChange:f,onKeydown:v,onKeyup:A,onCompositionstart:p,onCompositionend:g,onBlur:b,rows:1,autoSize:void 0===e.autoSize||e.autoSize},null),i.enterIcon?i.enterIcon({className:`${e.prefixCls}-edit-content-confirm`}):(0,o.bF)(x,{class:`${e.prefixCls}-edit-content-confirm`},null)]))}}});var j=$,H=(n(44114),n(13579),n(45130)),U=n(1147);const Q=3,z=8;let W;const G={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function V(e,t){e.setAttribute("aria-hidden","true");const n=window.getComputedStyle(t),r=(0,U.ky)(n);e.setAttribute("style",r),e.style.position="fixed",e.style.left="0",e.style.height="auto",e.style.minHeight="auto",e.style.maxHeight="auto",e.style.paddingTop="0",e.style.paddingBottom="0",e.style.borderTopWidth="0",e.style.borderBottomWidth="0",e.style.top="-999999px",e.style.zIndex="-1000",e.style.textOverflow="clip",e.style.whiteSpace="normal",e.style.webkitLineClamp="none"}function K(e){const t=document.createElement("div");V(t,e),t.appendChild(document.createTextNode("text")),document.body.appendChild(t);const n=t.getBoundingClientRect().height;return document.body.removeChild(t),n}var Y=(e,t,n,r,i)=>{W||(W=document.createElement("div"),W.setAttribute("aria-hidden","true"),document.body.appendChild(W));const{rows:a,suffix:s=""}=t,l=K(e),c=Math.round(l*a*100)/100;V(W,e);const u=(0,H.Ef)({render(){return(0,o.bF)("div",{style:G},[(0,o.bF)("span",{style:G},[n,s]),(0,o.bF)("span",{style:G},[r])])}});function d(){const e=Math.round(100*W.getBoundingClientRect().height)/100;return e-.1<=c}if(u.mount(W),d())return u.unmount(),{content:n,text:W.innerHTML,ellipsis:!1};const h=Array.prototype.slice.apply(W.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(e=>{let{nodeType:t,data:n}=e;return t!==z&&""!==n}),f=Array.prototype.slice.apply(W.childNodes[0].childNodes[1].cloneNode(!0).childNodes);u.unmount();const p=[];W.innerHTML="";const g=document.createElement("span");W.appendChild(g);const m=document.createTextNode(i+s);function v(e){g.insertBefore(e,m)}function A(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const o=Math.floor((n+r)/2),a=t.slice(0,o);if(e.textContent=a,n>=r-1)for(let s=r;s>=n;s-=1){const n=t.slice(0,s);if(e.textContent=n,d()||!n)return s===t.length?{finished:!1,vNode:t}:{finished:!0,vNode:n}}return d()?A(e,t,o,r,o):A(e,t,n,o,i)}function b(e){const t=e.nodeType;if(t===Q){const t=e.textContent||"",n=document.createTextNode(t);return v(n),A(n,t)}return{finished:!1,vNode:null}}return g.appendChild(m),f.forEach(e=>{W.appendChild(e)}),h.some(e=>{const{finished:t,vNode:n}=b(e);return n&&p.push(n),t}),{content:p,text:W.innerHTML,ellipsis:!0}},q=n(60674),X=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const J=()=>({prefixCls:String,direction:String,component:String}),Z=(0,o.pM)({name:"ATypography",inheritAttrs:!1,props:J(),setup(e,t){let{slots:n,attrs:a}=t;const{prefixCls:s,direction:l}=(0,q.A)("typography",e),[c,u]=P(s);return()=>{var t;const d=(0,i.A)((0,i.A)({},e),a),{prefixCls:h,direction:f,component:p="article"}=d,g=X(d,["prefixCls","direction","component"]);return c((0,o.bF)(p,(0,r.A)((0,r.A)({},g),{},{class:(0,E.A)(s.value,{[`${s.value}-rtl`]:"rtl"===l.value},a.class,u.value)}),{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]}))}}});var ee=Z,te=n(95572),ne=n(35678);const re=()=>{const e=document.getSelection();if(!e.rangeCount)return function(){};let t=document.activeElement;const n=[];for(let r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}};var ie=re;const oe={"text/plain":"Text","text/html":"Url",default:"Text"},ae="Copy to clipboard: #{key}, Enter";function se(e){const t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function le(e,t){let n,r,i,o,a,s=!1;t||(t={});const l=t.debug||!1;try{r=ie(),i=document.createRange(),o=document.getSelection(),a=document.createElement("span"),a.textContent=e,a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),"undefined"===typeof n.clipboardData){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();const n=oe[t.format]||oe["default"];window.clipboardData.setData(n,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(a),i.selectNodeContents(a),o.addRange(i);const n=document.execCommand("copy");if(!n)throw new Error("copy command was unsuccessful");s=!0}catch(c){l&&console.error("unable to copy using execCommand: ",c),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),s=!0}catch(c){l&&console.error("unable to copy using clipboardData: ",c),l&&console.error("falling back to prompt"),n=se("message"in t?t.message:ae),window.prompt(n,e)}}finally{o&&("function"==typeof o.removeRange?o.removeRange(i):o.removeAllRanges()),a&&document.body.removeChild(a),r()}return s}var ce=le,ue=n(28250),de=n(7304),he=n(25046),fe=n(55107),pe=n(53523),ge=n(44832),me=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const ve=(0,g.Fq)("webkitLineClamp"),Ae=(0,g.Fq)("textOverflow"),be="...",ye=()=>({editable:{type:[Boolean,Object],default:void 0},copyable:{type:[Boolean,Object],default:void 0},prefixCls:String,component:String,type:String,disabled:{type:Boolean,default:void 0},ellipsis:{type:[Boolean,Object],default:void 0},code:{type:Boolean,default:void 0},mark:{type:Boolean,default:void 0},underline:{type:Boolean,default:void 0},delete:{type:Boolean,default:void 0},strong:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},content:String,"onUpdate:content":Function}),we=(0,o.pM)({compatConfig:{MODE:3},name:"TypographyBase",inheritAttrs:!1,props:ye(),setup(e,t){let{slots:n,attrs:c,emit:u}=t;const{prefixCls:d,direction:h}=(0,q.A)("typography",e),g=(0,l.Kh)({copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1,expandStr:"",copyStr:"",copiedStr:"",editStr:"",copyId:void 0,rafId:void 0,prevProps:void 0,originContent:""}),m=(0,l.KR)(),v=(0,l.KR)(),A=(0,o.EW)(()=>{const t=e.ellipsis;return t?(0,i.A)({rows:1,expandable:!1},"object"===typeof t?t:null):{}});function b(){var t;return e.ellipsis||e.editable?e.content:null===(t=(0,ge.oK)(m.value))||void 0===t?void 0:t.innerText}function y(e){const{onExpand:t}=A.value;g.expanded=!0,null===t||void 0===t||t(e)}function w(t){t.preventDefault(),g.originContent=e.content,O(!0)}function _(e){x(e),O(!1)}function x(t){const{onChange:n}=C.value;t!==e.content&&(u("update:content",t),null===n||void 0===n||n(t))}function E(){var e,t;null===(t=(e=C.value).onCancel)||void 0===t||t.call(e),O(!1)}function S(t){t.preventDefault(),t.stopPropagation();const{copyable:n}=e,r=(0,i.A)({},"object"===typeof n?n:null);void 0===r.text&&(r.text=b()),ce(r.text||""),g.copied=!0,(0,o.dY)(()=>{r.onCopy&&r.onCopy(t),g.copyId=setTimeout(()=>{g.copied=!1},3e3)})}(0,o.sV)(()=>{g.clientRendered=!0,D()}),(0,o.xo)(()=>{clearTimeout(g.copyId),p.A.cancel(g.rafId)}),(0,o.wB)([()=>A.value.rows,()=>e.content],()=>{(0,o.dY)(()=>{M()})},{flush:"post",deep:!0}),(0,o.nT)(()=>{void 0===e.content&&((0,s.Ay)(!e.editable,"Typography","When `editable` is enabled, please use `content` instead of children"),(0,s.Ay)(!e.ellipsis,"Typography","When `ellipsis` is enabled, please use `content` instead of children"))});const C=(0,o.EW)(()=>{const t=e.editable;return t?(0,i.A)({},"object"===typeof t?t:null):{editing:!1}}),[T,k]=(0,pe.A)(!1,{value:(0,o.EW)(()=>C.value.editing)});function O(e){const{onStart:t}=C.value;e&&t&&t(),k(e)}function M(e){if(e){const{width:t,height:n}=e;if(!t||!n)return}p.A.cancel(g.rafId),g.rafId=(0,p.A)(()=>{D()})}(0,o.wB)(T,e=>{var t;e||null===(t=v.value)||void 0===t||t.focus()},{flush:"post"});const I=(0,o.EW)(()=>{const{rows:t,expandable:n,suffix:r,onEllipsis:i,tooltip:o}=A.value;return!r&&!o&&(!(e.editable||e.copyable||n||i)&&(1===t?Ae:ve))}),D=()=>{const{ellipsisText:t,isEllipsis:n}=g,{rows:r,suffix:i,onEllipsis:o}=A.value;if(!r||r<0||!(0,ge.oK)(m.value)||g.expanded||void 0===e.content)return;if(I.value)return;const{content:a,text:s,ellipsis:l}=Y((0,ge.oK)(m.value),{rows:r,suffix:i},e.content,F(!0),be);t===s&&g.isEllipsis===l||(g.ellipsisText=s,g.ellipsisContent=a,g.isEllipsis=l,n!==l&&o&&o(l))};function N(e,t){let{mark:n,code:r,underline:i,delete:a,strong:s,keyboard:l}=e,c=t;function u(e,t){if(!e)return;const n=function(){return c}();c=(0,o.bF)(t,null,{default:()=>[n]})}return u(s,"strong"),u(i,"u"),u(a,"del"),u(r,"code"),u(n,"mark"),u(l,"kbd"),c}function R(e){const{expandable:t,symbol:r}=A.value;if(!t)return null;if(!e&&(g.expanded||!g.isEllipsis))return null;const i=(n.ellipsisSymbol?n.ellipsisSymbol():r)||g.expandStr;return(0,o.bF)("a",{key:"expand",class:`${d.value}-expand`,onClick:y,"aria-label":g.expandStr},[i])}function L(){if(!e.editable)return;const{tooltip:t,triggerType:r=["icon"]}=e.editable,i=n.editableIcon?n.editableIcon():(0,o.bF)(he.A,{role:"button"},null),a=n.editableTooltip?n.editableTooltip():g.editStr,s="string"===typeof a?a:"";return-1!==r.indexOf("icon")?(0,o.bF)(ne.A,{key:"edit",title:!1===t?"":a},{default:()=>[(0,o.bF)(f,{ref:v,class:`${d.value}-edit`,onClick:w,"aria-label":s},{default:()=>[i]})]}):null}function B(){if(!e.copyable)return;const{tooltip:t}=e.copyable,r=g.copied?g.copiedStr:g.copyStr,i=n.copyableTooltip?n.copyableTooltip({copied:g.copied}):r,a="string"===typeof i?i:"",s=g.copied?(0,o.bF)(ue.A,null,null):(0,o.bF)(de.A,null,null),l=n.copyableIcon?n.copyableIcon({copied:!!g.copied}):s;return(0,o.bF)(ne.A,{key:"copy",title:!1===t?"":i},{default:()=>[(0,o.bF)(f,{class:[`${d.value}-copy`,{[`${d.value}-copy-success`]:g.copied}],onClick:S,"aria-label":a},{default:()=>[l]})]})}function P(){const{class:t,style:r}=c,{maxlength:i,autoSize:a,onEnd:s}=C.value;return(0,o.bF)(j,{class:t,style:r,prefixCls:d.value,value:e.content,originContent:g.originContent,maxlength:i,autoSize:a,onSave:_,onChange:x,onCancel:E,onEnd:s,direction:h.value,component:e.component},{enterIcon:n.editableEnterIcon})}function F(e){return[R(e),L(),B()].filter(e=>e)}return()=>{var t;const{triggerType:s=["icon"]}=C.value,u=e.ellipsis||e.editable?void 0!==e.content?e.content:null===(t=n.default)||void 0===t?void 0:t.call(n):n.default?n.default():e.content;return T.value?P():(0,o.bF)(a.A,{componentName:"Text",children:t=>{const a=(0,i.A)((0,i.A)({},e),c),{type:f,disabled:p,content:v,class:b,style:y}=a,_=me(a,["type","disabled","content","class","style"]),{rows:x,suffix:E,tooltip:S}=A.value,{edit:C,copy:T,copied:k,expand:O}=t;g.editStr=C,g.copyStr=T,g.copiedStr=k,g.expandStr=O;const D=(0,fe.A)(_,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard","onUpdate:content"]),R=I.value,L=1===x&&R,B=x&&x>1&&R;let P,$=u;if(x&&g.isEllipsis&&!g.expanded&&!R){const{title:e}=_;let t=e||"";e||"string"!==typeof u&&"number"!==typeof u||(t=String(u)),t=null===t||void 0===t?void 0:t.slice(String(g.ellipsisContent||"").length),$=(0,o.bF)(o.FK,null,[(0,l.ux)(g.ellipsisContent),(0,o.bF)("span",{title:t,"aria-hidden":"true"},[be]),E])}else $=(0,o.bF)(o.FK,null,[u,E]);$=N(e,$);const j=S&&x&&g.isEllipsis&&!g.expanded&&!R,H=n.ellipsisTooltip?n.ellipsisTooltip():S;return(0,o.bF)(te.A,{onResize:M,disabled:!x},{default:()=>[(0,o.bF)(ee,(0,r.A)({ref:m,class:[{[`${d.value}-${f}`]:f,[`${d.value}-disabled`]:p,[`${d.value}-ellipsis`]:x,[`${d.value}-single-line`]:1===x&&!g.isEllipsis,[`${d.value}-ellipsis-single-line`]:L,[`${d.value}-ellipsis-multiple-line`]:B},b],style:(0,i.A)((0,i.A)({},y),{WebkitLineClamp:B?x:void 0}),"aria-label":P,direction:h.value,onClick:-1!==s.indexOf("text")?w:()=>{}},D),{default:()=>[j?(0,o.bF)(ne.A,{title:!0===S?u:H},{default:()=>[(0,o.bF)("span",null,[$])]}):$,F()]})]})}},null)}}});var _e=we,xe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Ee=()=>(0,fe.A)((0,i.A)((0,i.A)({},ye()),{ellipsis:{type:Boolean,default:void 0}}),["component"]),Se=(e,t)=>{let{slots:n,attrs:r}=t;const a=(0,i.A)((0,i.A)({},e),r),{ellipsis:l,rel:c}=a,u=xe(a,["ellipsis","rel"]);(0,s.Ay)("object"!==typeof l,"Typography.Link","`ellipsis` only supports boolean value.");const d=(0,i.A)((0,i.A)({},u),{rel:void 0===c&&"_blank"===u.target?"noopener noreferrer":c,ellipsis:!!l,component:"a"});return delete d.navigate,(0,o.bF)(_e,d,n)};Se.displayName="ATypographyLink",Se.inheritAttrs=!1,Se.props=Ee();var Ce=Se;const Te=()=>(0,fe.A)(ye(),["component"]),ke=(e,t)=>{let{slots:n,attrs:r}=t;const a=(0,i.A)((0,i.A)((0,i.A)({},e),{component:"div"}),r);return(0,o.bF)(_e,a,n)};ke.displayName="ATypographyParagraph",ke.inheritAttrs=!1,ke.props=Te();var Oe=ke;const Me=()=>(0,i.A)((0,i.A)({},(0,fe.A)(ye(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}}),Ie=(e,t)=>{let{slots:n,attrs:r}=t;const{ellipsis:a}=e;(0,s.Ay)("object"!==typeof a||!a||!("expandable"in a)&&!("rows"in a),"Typography.Text","`ellipsis` do not support `expandable` or `rows` props.");const l=(0,i.A)((0,i.A)((0,i.A)({},e),{ellipsis:a&&"object"===typeof a?(0,fe.A)(a,["expandable","rows"]):a,component:"span"}),r);return(0,o.bF)(_e,l,n)};Ie.displayName="ATypographyText",Ie.inheritAttrs=!1,Ie.props=Me();var De=Ie,Ne=n(44678),Re=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Le=(0,Ne.pf)(1,2,3,4,5),Be=()=>(0,i.A)((0,i.A)({},(0,fe.A)(ye(),["component","strong"])),{level:Number}),Pe=(e,t)=>{let{slots:n,attrs:r}=t;const{level:a=1}=e,l=Re(e,["level"]);let c;Le.includes(a)?c=`h${a}`:((0,s.Ay)(!1,"Typography","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value."),c="h1");const u=(0,i.A)((0,i.A)((0,i.A)({},l),{component:c}),r);return(0,o.bF)(_e,u,n)};Pe.displayName="ATypographyTitle",Pe.inheritAttrs=!1,Pe.props=Be();var Fe=Pe;ee.Text=De,ee.Title=Fe,ee.Paragraph=Oe,ee.Link=Ce,ee.Base=_e,ee.install=function(e){return e.component(ee.name,ee),e.component(ee.Text.displayName,De),e.component(ee.Title.displayName,Fe),e.component(ee.Paragraph.displayName,Oe),e.component(ee.Link.displayName,Ce),e};var $e=ee},10227:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="LinkOutlined",c.inheritAttrs=!1;var u=c},10265:function(e,t,n){(function(e){e(n(83800))})(function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function n(e){t(e);var n=e.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=e.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var r=e.getOption("placeholder");"string"==typeof r&&(r=document.createTextNode(r)),n.appendChild(r),e.display.lineSpace.insertBefore(n,e.display.lineSpace.firstChild)}function r(e){setTimeout(function(){var r=!1;if(1==e.lineCount()){var i=e.getInputField();r="TEXTAREA"==i.nodeName?!e.getLine(0).length:!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)}r?n(e):t(e)},20)}function i(e){a(e)&&n(e)}function o(e){var r=e.getWrapperElement(),i=a(e);r.className=r.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?n(e):t(e)}function a(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",function(n,a,s){var l=s&&s!=e.Init;if(a&&!l)n.on("blur",i),n.on("change",o),n.on("swapDoc",o),e.on(n.getInputField(),"compositionupdate",n.state.placeholderCompose=function(){r(n)}),o(n);else if(!a&&l){n.off("blur",i),n.off("change",o),n.off("swapDoc",o),e.off(n.getInputField(),"compositionupdate",n.state.placeholderCompose),t(n);var c=n.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}a&&!n.hasFocus()&&i(n)})})},10350:function(e,t,n){"use strict";var r=n(43724),i=n(39297),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},10655:function(e){function t(e){const t={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},n={className:"string",variants:[{begin:'"',end:'"'}]},r={className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/},i={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[r]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t,n,i,e.C_NUMBER_MODE]}}e.exports=t},10707:function(e,t,n){"use strict";n.d(t,{n5:function(){return N},sb:function(){return O},rd:function(){return R}});var r=n(51137),i=n(24107),o=(n(18111),n(22489),n(7588),n(51732)),a=n(87810),s=n(56262),l=n(85198),c=n(90144),u=n(56768);const d={},h=!0,f=!1,p=h||f?"css":"css-dev-only-do-not-override",g=new Map;function m(e){g.set(e,(g.get(e)||0)+1)}function v(e,t){if("undefined"!==typeof document){const n=document.querySelectorAll(`style[${a.Oc}="${e}"]`);n.forEach(e=>{var n;e[a.oi]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))})}}const A=0;function b(e,t){g.set(e,(g.get(e)||0)-1);const n=Array.from(g.keys()),r=n.filter(e=>{const t=g.get(e)||0;return t<=0});n.length-r.length>A&&r.forEach(e=>{v(e,t),g.delete(e)})}const y=(e,t,n,i)=>{const o=n.getDerivativeToken(e);let a=(0,r.A)((0,r.A)({},o),t);return i&&(a=i(a)),a};function w(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,c.KR)({});const i=(0,a.K6)(),h=(0,u.EW)(()=>(0,r.A)({},...t.value)),f=(0,u.EW)(()=>(0,l.g2)(h.value)),g=(0,u.EW)(()=>(0,l.g2)(n.value.override||d)),v=(0,s.A)("token",(0,u.EW)(()=>[n.value.salt||"",e.value.id,f.value,g.value]),()=>{const{salt:t="",override:r=d,formatToken:i,getComputedToken:a}=n.value,s=a?a(h.value,r,e.value):y(h.value,r,e.value,i),c=(0,l.zw)(s,t);s._tokenKey=c,m(c);const u=`${p}-${(0,o.A)(c)}`;return s._hashId=u,[s,u]},e=>{var t;b(e[0]._tokenKey,null===(t=i.value)||void 0===t?void 0:t.cache.instanceId)});return v}var _="4.2.6",x=_,E=n(78143),S=n(10734),C=n(81566),T=n(44678);const k=(0,i.A)(E.A),O={token:S.A,hashed:!0},M=Symbol("DesignTokenContext"),I=(0,c.IJ)(),D=e=>{(0,u.Gt)(M,e),(0,u.wB)(e,()=>{I.value=(0,c.R1)(e),(0,c.mu)(I)},{immediate:!0,deep:!0})},N=(0,u.pM)({props:{value:(0,T.ge)()},setup(e,t){let{slots:n}=t;return D((0,u.EW)(()=>e.value)),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});function R(){const e=(0,u.WQ)(M,(0,u.EW)(()=>I.value||O)),t=(0,u.EW)(()=>`${x}-${e.value.hashed||""}`),n=(0,u.EW)(()=>e.value.theme||k),i=w(n,(0,u.EW)(()=>[S.A,e.value.token]),(0,u.EW)(()=>({salt:t.value,override:(0,r.A)({override:e.value.token},e.value.components),formatToken:C.A})));return[n,(0,u.EW)(()=>i.value[0]),(0,u.EW)(()=>e.value.hashed?i.value[1]:"")]}},10734:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(51137);const i={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},o=(0,r.A)((0,r.A)({},i),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});t.A=o},10754:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var r=/\s/;function i(e){var t=e.length;while(t--&&r.test(e.charAt(t)));return t}var o=i,a=/^\s+/;function s(e){return e?e.slice(0,o(e)+1).replace(a,""):e}var l=s,c=n(60168),u=n(18095),d=NaN,h=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,p=/^0o[0-7]+$/i,g=parseInt;function m(e){if("number"==typeof e)return e;if((0,u.A)(e))return d;if((0,c.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,c.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=l(e);var n=f.test(e);return n||p.test(e)?g(e.slice(2),n?2:8):h.test(e)?d:+e}var v=m},10757:function(e,t,n){"use strict";var r=n(97751),i=n(94901),o=n(1625),a=n(7040),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},10866:function(e,t,n){const r=n(17195);function i(e){this.mode=r.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);const i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*i+1))},e.exports=i},11112:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.8-240-277.2V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.8C336.3 170.2 232 286.9 232 428v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48z"}}]},name:"bell",theme:"filled"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="BellFilled",c.inheritAttrs=!1;var u=c},11300:function(e){function t(e){const t="if eq ne lt lte gt gte select default math sep";return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:t}]}}e.exports=t},11591:function(e,t,n){"use strict";n.d(t,{A:function(){return A}});var r=n(72990),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r.A?r.A.toStringTag:void 0;function l(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}var c=l,u=Object.prototype,d=u.toString;function h(e){return d.call(e)}var f=h,p="[object Null]",g="[object Undefined]",m=r.A?r.A.toStringTag:void 0;function v(e){return null==e?void 0===e?g:p:m&&m in Object(e)?c(e):f(e)}var A=v},11646:function(e){function t(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},r={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]},i={begin:/\{/,end:/\}/,contains:r.contains},o={className:"string",begin:"'\\\\?.",end:"'",illegal:"."},a=["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"];return{name:"Elm",keywords:a,contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,r,i,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},o,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}}e.exports=t},11955:function(e,t,n){const r=n(79547).getSymbolSize,i=7;t.getPositions=function(e){const t=r(e);return[[0,0],[t-i,0],[0,t-i]]}},12140:function(e,t){"use strict";function n(e,t){return e.has(t)}t.A=n},12211:function(e,t,n){"use strict";var r=n(79039);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},12276:function(e){function t(e){const t=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10}),n={className:"symbol",begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",relevance:0},r=["if","else","goto","for","in","do","call","exit","not","exist","errorlevel","defined","equ","neq","lss","leq","gtr","geq"],i=["prn","nul","lpt3","lpt2","lpt1","con","com4","com3","com2","com1","aux","shift","cd","dir","echo","setlocal","endlocal","set","pause","copy","append","assoc","at","attrib","break","cacls","cd","chcp","chdir","chkdsk","chkntfs","cls","cmd","color","comp","compact","convert","date","dir","diskcomp","diskcopy","doskey","erase","fs","find","findstr","format","ftype","graftabl","help","keyb","label","md","mkdir","mode","more","move","path","pause","print","popd","pushd","promt","rd","recover","rem","rename","replace","restore","rmdir","shift","sort","start","subst","time","title","tree","type","ver","verify","vol","ping","net","ipconfig","taskkill","xcopy","ren","del"];return{name:"Batch file (DOS)",aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:r,built_in:i},contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:"function",begin:n.begin,end:"goto:eof",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),t]},{className:"number",begin:"\\b\\d+",relevance:0},t]}}e.exports=t},12560:function(e,t,n){"use strict";n.d(t,{Ay:function(){return Ne}});n(44114),n(18111),n(22489),n(7588),n(61701);var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(87986),l=n(45331),c=n(60674),u=n(34322),d=n(65070),h=n(53466),f=n(56920),p=n(12140),g=n(23452);function m(){}var v=m,A=n(5704),b=1/0,y=g.A&&1/(0,A.A)(new g.A([,-0]))[1]==b?function(e){return new g.A(e)}:v,w=y,_=200;function x(e,t,n){var r=-1,i=h.A,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=f.A;else if(o>=_){var c=t?null:w(e);if(c)return(0,A.A)(c);a=!1,i=p.A,l=new d.A}else l=t?[]:s;e:while(++r<o){var u=e[r],g=t?t(u):u;if(u=n||0!==u?u:0,a&&g===g){var m=l.length;while(m--)if(l[m]===g)continue e;t&&l.push(g),s.push(u)}else i(l,g,n)||(l!==s&&l.push(g),s.push(u))}return s}var E=x;function S(e){return e&&e.length?E(e):[]}var C=S;const T=Symbol("siderCollapsed");Symbol("siderHookProvider");var k=n(44832),O=n(25654),M=n(77957),I=(n(20116),n(81425)),D=n(74285),N=n(49974),R=n(76295),L=n(60056);const B={adjustX:1,adjustY:1},P={topLeft:{points:["bl","tl"],overflow:B,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:B,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:B,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:B,offset:[4,0]}},F={topLeft:{points:["bl","tl"],overflow:B,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:B,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:B,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:B,offset:[4,0]}};var $=n(32545),j=n(51589);const H={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};var U=(0,o.pM)({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(e,t){let{slots:n,emit:r}=t;const s=(0,a.IJ)(!1),{getPopupContainer:c,rtl:u,subMenuOpenDelay:d,subMenuCloseDelay:h,builtinPlacements:f,triggerSubMenuAction:p,forceSubMenuRender:g,motion:m,defaultMotions:v,rootClassName:A}=(0,l.an)(),b=(0,l.YV)(),y=(0,o.EW)(()=>u.value?(0,i.A)((0,i.A)({},F),f.value):(0,i.A)((0,i.A)({},P),f.value)),w=(0,o.EW)(()=>H[e.mode]),_=(0,a.IJ)();(0,o.wB)(()=>e.visible,e=>{$.A.cancel(_.value),_.value=(0,$.A)(()=>{s.value=e})},{immediate:!0}),(0,o.xo)(()=>{$.A.cancel(_.value)});const x=e=>{r("visibleChange",e)},E=(0,o.EW)(()=>{var t,n;const r=m.value||(null===(t=v.value)||void 0===t?void 0:t[e.mode])||(null===(n=v.value)||void 0===n?void 0:n.other),i="function"===typeof r?r():r;return i?(0,j.ce)(i.name,{css:!0}):void 0});return()=>{const{prefixCls:t,popupClassName:r,mode:i,popupOffset:a,disabled:l}=e;return(0,o.bF)(L.A,{prefixCls:t,popupClassName:(0,N.A)(`${t}-popup`,{[`${t}-rtl`]:u.value},r,A.value),stretch:"horizontal"===i?"minWidth":null,getPopupContainer:c.value,builtinPlacements:y.value,popupPlacement:w.value,popupVisible:s.value,popupAlign:a&&{offset:a},action:l?[]:[p.value],mouseEnterDelay:d.value,mouseLeaveDelay:h.value,onPopupVisibleChange:x,forceRender:b||g.value,popupAnimation:E.value},{popup:n.popup,default:n.default})}}});const Q=(e,t)=>{let{slots:n,attrs:i}=t;var a;const{prefixCls:s,mode:c}=(0,l.an)();return(0,o.bF)("ul",(0,r.A)((0,r.A)({},i),{},{class:(0,N.A)(s.value,`${s.value}-sub`,`${s.value}-${"inline"===c.value?"inline":"vertical"}`),"data-menu-list":!0}),[null===(a=n.default)||void 0===a?void 0:a.call(n)])};Q.displayName="SubMenuList";var z=Q,W=n(45130),G=(0,o.pM)({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t;const r=(0,o.EW)(()=>"inline"),{motion:s,mode:c,defaultMotions:u}=(0,l.an)(),d=(0,o.EW)(()=>c.value===r.value),h=(0,a.KR)(!d.value),f=(0,o.EW)(()=>!!d.value&&e.open);(0,o.wB)(c,()=>{d.value&&(h.value=!1)},{flush:"post"});const p=(0,o.EW)(()=>{var t,n;const o=s.value||(null===(t=u.value)||void 0===t?void 0:t[r.value])||(null===(n=u.value)||void 0===n?void 0:n.other),a="function"===typeof o?o():o;return(0,i.A)((0,i.A)({},a),{appear:e.keyPath.length<=1})});return()=>{var t;return h.value?null:(0,o.bF)(l.Su,{mode:r.value},{default:()=>[(0,o.bF)(W.eB,p.value,{default:()=>[(0,o.bo)((0,o.bF)(z,{id:e.id},{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]}),[[W.aG,f.value]])]})]})}}}),V=n(82978),K=n(68306),Y=n(44678);let q=0;const X=()=>({icon:I.A.any,title:I.A.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:(0,Y.ge)()});var J=(0,o.pM)({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:X(),slots:Object,setup(e,t){let{slots:n,attrs:s,emit:c}=t;var d,h;(0,l.vx)(!1);const f=(0,D.W_)(),p=(0,o.nI)(),g="symbol"===typeof p.vnode.key?String(p.vnode.key):p.vnode.key;(0,u.A)("symbol"!==typeof p.vnode.key,"SubMenu",`SubMenu \`:key="${String(g)}"\` not support Symbol type`);const m=(0,K.A)(g)?g:`sub_menu_${++q}_$$_not_set_key`,v=null!==(d=e.eventKey)&&void 0!==d?d:(0,K.A)(g)?`sub_menu_${++q}_$$_${g}`:m,{parentEventKeys:A,parentInfo:b,parentKeys:y}=(0,D.Lk)(),w=(0,o.EW)(()=>[...y.value,m]),_=(0,a.IJ)([]),x={eventKey:v,key:m,parentEventKeys:A,childrenEventKeys:_,parentKeys:y};null===(h=b.childrenEventKeys)||void 0===h||h.value.push(v),(0,o.xo)(()=>{var e;b.childrenEventKeys&&(b.childrenEventKeys.value=null===(e=b.childrenEventKeys)||void 0===e?void 0:e.value.filter(e=>e!=v))}),(0,D.Ay)(v,m,x);const{prefixCls:E,activeKeys:S,disabled:C,changeActiveKeys:T,mode:M,inlineCollapsed:I,openKeys:L,overflowDisabled:B,onOpenChange:P,registerMenuInfo:F,unRegisterMenuInfo:$,selectedSubMenuKeys:j,expandIcon:H,theme:Q}=(0,l.an)(),W=void 0!==g&&null!==g,Y=!f&&((0,l.YV)()||!W);(0,l.Wu)(Y),(f&&W||!f&&!W||Y)&&(F(v,x),(0,o.xo)(()=>{$(v)}));const X=(0,o.EW)(()=>`${E.value}-submenu`),J=(0,o.EW)(()=>C.value||e.disabled),Z=(0,a.IJ)(),ee=(0,a.IJ)(),te=(0,o.EW)(()=>L.value.includes(m)),ne=(0,o.EW)(()=>!B.value&&te.value),re=(0,o.EW)(()=>j.value.includes(m)),ie=(0,a.IJ)(!1);(0,o.wB)(S,()=>{ie.value=!!S.value.find(e=>e===m)},{immediate:!0});const oe=e=>{J.value||(c("titleClick",e,m),"inline"===M.value&&P(m,!te.value))},ae=e=>{J.value||(T(w.value),c("mouseenter",e))},se=e=>{J.value||(T([]),c("mouseleave",e))},le=(0,R.A)((0,o.EW)(()=>w.value.length)),ce=e=>{"inline"!==M.value&&P(m,e)},ue=()=>{T(w.value)},de=v&&`${v}-popup`,he=(0,o.EW)(()=>(0,N.A)(E.value,`${E.value}-${e.theme||Q.value}`,e.popupClassName)),fe=(t,n)=>{if(!n)return I.value&&!y.value.length&&t&&"string"===typeof t?(0,o.bF)("div",{class:`${E.value}-inline-collapsed-noicon`},[t.charAt(0)]):(0,o.bF)("span",{class:`${E.value}-title-content`},[t]);const r=(0,k.zO)(t)&&"span"===t.type;return(0,o.bF)(o.FK,null,[(0,V.Ob)("function"===typeof n?n(e.originItemValue):n,{class:`${E.value}-item-icon`},!1),r?t:(0,o.bF)("span",{class:`${E.value}-title-content`},[t])])},pe=(0,o.EW)(()=>"inline"!==M.value&&w.value.length>1?"vertical":M.value),ge=(0,o.EW)(()=>"horizontal"===M.value?"vertical":M.value),me=(0,o.EW)(()=>"horizontal"===pe.value?"vertical":pe.value),ve=()=>{var t,r;const a=X.value,s=null!==(t=e.icon)&&void 0!==t?t:null===(r=n.icon)||void 0===r?void 0:r.call(n,e),l=e.expandIcon||n.expandIcon||H.value,c=fe((0,k.rU)(n,e,"title"),s);return(0,o.bF)("div",{style:le.value,class:`${a}-title`,tabindex:J.value?null:-1,ref:Z,title:"string"===typeof c?c:null,"data-menu-id":m,"aria-expanded":ne.value,"aria-haspopup":!0,"aria-controls":de,"aria-disabled":J.value,onClick:oe,onFocus:ue},[c,"horizontal"!==M.value&&l?l((0,i.A)((0,i.A)({},e),{isOpen:ne.value})):(0,o.bF)("i",{class:`${a}-arrow`},null)])};return()=>{var t;if(f)return W?null===(t=n.default)||void 0===t?void 0:t.call(n):null;const i=X.value;let a=()=>null;if(B.value||"inline"===M.value)a=()=>(0,o.bF)(U,null,{default:ve});else{const t="horizontal"===M.value?[0,8]:[10,0];a=()=>(0,o.bF)(U,{mode:pe.value,prefixCls:i,visible:!e.internalPopupClose&&ne.value,popupClassName:he.value,popupOffset:e.popupOffset||t,disabled:J.value,onVisibleChange:ce},{default:()=>[ve()],popup:()=>(0,o.bF)(l.Su,{mode:me.value},{default:()=>[(0,o.bF)(z,{id:de,ref:ee},{default:n.default})]})})}return(0,o.bF)(l.Su,{mode:ge.value},{default:()=>[(0,o.bF)(O.A.Item,(0,r.A)((0,r.A)({component:"li"},s),{},{role:"none",class:(0,N.A)(i,`${i}-${M.value}`,s.class,{[`${i}-open`]:ne.value,[`${i}-active`]:ie.value,[`${i}-selected`]:re.value,[`${i}-disabled`]:J.value}),onMouseenter:ae,onMouseleave:se,"data-submenu-id":m}),{default:()=>(0,o.bF)(o.FK,null,[a(),!B.value&&(0,o.bF)(G,{id:de,open:ne.value,keyPath:w.value},{default:n.default})])})]})}}}),Z=n(50443),ee=n(99603);const te=()=>({title:I.A.any,originItemValue:(0,Y.ge)()});var ne=(0,o.pM)({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:te(),slots:Object,setup(e,t){let{slots:n,attrs:i}=t;const{prefixCls:a}=(0,l.an)(),s=(0,o.EW)(()=>`${a.value}-item-group`),c=(0,D.W_)();return()=>{var t,a;return c?null===(t=n.default)||void 0===t?void 0:t.call(n):(0,o.bF)("li",(0,r.A)((0,r.A)({},i),{},{onClick:e=>e.stopPropagation(),class:s.value}),[(0,o.bF)("div",{title:"string"===typeof e.title?e.title:void 0,class:`${s.value}-title`},[(0,k.rU)(n,e,"title")]),(0,o.bF)("ul",{class:`${s.value}-list`},[null===(a=n.default)||void 0===a?void 0:a.call(n)])])}}});const re=()=>({prefixCls:String,dashed:Boolean});var ie=(0,o.pM)({compatConfig:{MODE:3},name:"AMenuDivider",props:re(),setup(e){const{prefixCls:t}=(0,l.an)(),n=(0,o.EW)(()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed}));return()=>(0,o.bF)("li",{class:n.value},null)}}),oe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function ae(e,t,n){return(e||[]).map((e,i)=>{if(e&&"object"===typeof e){const s=e,{label:l,children:c,key:u,type:d}=s,h=oe(s,["label","children","key","type"]),f=null!==u&&void 0!==u?u:`tmp-${i}`,p=n?n.parentKeys.slice():[],g=[],m={eventKey:f,key:f,parentEventKeys:(0,a.KR)(p),parentKeys:(0,a.KR)(p),childrenEventKeys:(0,a.KR)(g),isLeaf:!1};if(c||"group"===d){if("group"===d){const i=ae(c,t,n);return(0,o.bF)(ne,(0,r.A)((0,r.A)({key:f},h),{},{title:l,originItemValue:e}),{default:()=>[i]})}t.set(f,m),n&&n.childrenEventKeys.push(f);const i=ae(c,t,{childrenEventKeys:g,parentKeys:[].concat(p,f)});return(0,o.bF)(J,(0,r.A)((0,r.A)({key:f},h),{},{title:l,originItemValue:e}),{default:()=>[i]})}return"divider"===d?(0,o.bF)(ie,(0,r.A)({key:f},h),null):(m.isLeaf=!0,t.set(f,m),(0,o.bF)(M.A,(0,r.A)((0,r.A)({key:f},h),{},{originItemValue:e}),{default:()=>[l]}))}return null}).filter(e=>e)}function se(e){const t=(0,a.IJ)([]),n=(0,a.IJ)(!1),r=(0,a.IJ)(new Map);return(0,o.wB)(()=>e.items,()=>{const i=new Map;n.value=!1,e.items?(n.value=!0,t.value=ae(e.items,i)):t.value=void 0,r.value=i},{immediate:!0,deep:!0}),{itemsNodes:t,store:r,hasItmes:n}}var le=n(50223),ce=n(79024),ue=n(99778),de=n(94012),he=n(90112),fe=n(9519);const pe=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:i,lineWidth:o,lineType:a,menuItemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:`${r}px`,border:0,borderBottom:`${o}px ${a} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,\n        > ${t}-item-active,\n        > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}};var ge=pe;const me=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n    ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}};var ve=me,Ae=n(36068);const be=e=>(0,i.A)({},(0,Ae.jk)(e)),ye=(e,t)=>{const{componentCls:n,colorItemText:r,colorItemTextSelected:o,colorGroupTitle:a,colorItemBg:s,colorSubItemBg:l,colorItemBgSelected:c,colorActiveBarHeight:u,colorActiveBarWidth:d,colorActiveBarBorderSize:h,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:g,menuItemPaddingInline:m,motionDurationMid:v,colorItemTextHover:A,lineType:b,colorSplit:y,colorItemTextDisabled:w,colorDangerItemText:_,colorDangerItemTextHover:x,colorDangerItemTextSelected:E,colorDangerItemBgActive:S,colorDangerItemBgSelected:C,colorItemBgHover:T,menuSubMenuBg:k,colorItemTextSelectedHorizontal:O,colorItemBgSelectedHorizontal:M}=e;return{[`${n}-${t}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:(0,i.A)({},be(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:A}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:c}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:T},"&:active":{backgroundColor:c}}},[`${n}-item-danger`]:{color:_,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:S}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:E},["a, a:hover"]:{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:C}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:(0,i.A)({},be(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:k},[`&${n}-popup > ${n}`]:{backgroundColor:s},[`&${n}-horizontal`]:(0,i.A)((0,i.A)({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:h,marginTop:-h,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},["&:hover, &-active, &-open"]:{"&::after":{borderBottomWidth:u,borderBottomColor:O}},["&-selected"]:{color:O,backgroundColor:M,"&::after":{borderBottomWidth:u,borderBottomColor:O}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${h}px ${b} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:h&&d?{width:`calc(100% + ${h}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${d}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${g}`,`opacity ${v} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${p}`,`opacity ${v} ${p}`].join(",")}}}}}};var we=ye;const _e=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:o,marginXS:a,marginXXS:s}=e,l=i+o+a;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:i,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${2*r}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item,\n            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,\n            ${t}-submenu-title`]:{paddingInlineEnd:l}}},xe=e=>{const{componentCls:t,iconCls:n,menuItemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:s,motionDurationMid:l,motionEaseOut:c,paddingXL:u,fontSizeSM:d,fontSizeLG:h,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:g}=e,m={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{["&-inline, &-vertical"]:(0,i.A)({[`&${t}-root`]:{boxShadow:"none"}},_e(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:(0,i.A)((0,i.A)({},_e(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${2.5*s}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${l} ${c}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:m,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:m}},{[`${t}-inline-collapsed`]:{width:2*r,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:h,textAlign:"center"}}},[`> ${t}-item,\n          > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n          > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n          > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${d}px)`,textOverflow:"clip",[`\n            ${t}-submenu-arrow,\n            ${t}-submenu-expand-icon\n          `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:(0,i.A)((0,i.A)({},Ae.L9),{paddingInline:p})}}]};var Ee=xe;const Se=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:r,motionDurationMid:o,motionEaseInOut:a,motionEaseOut:s,iconCls:l,controlHeightSM:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding ${r} ${a}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:n,fontSize:n,transition:[`font-size ${o} ${s}`,`margin ${r} ${a}`,`color ${r}`].join(","),"+ span":{marginInlineStart:c-n,opacity:1,transition:[`opacity ${r} ${a}`,`margin ${r}`,`color ${r}`].join(",")}},[`${t}-item-icon`]:(0,i.A)({},(0,Ae.Nk)()),[`&${t}-item-only-child`]:{[`> ${l}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ce=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:o,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{["&-expand-icon, &-arrow"]:{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:.6*o,height:.15*o,backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},Te=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:s,lineHeight:l,paddingXS:c,padding:u,colorSplit:d,lineWidth:h,zIndexPopup:f,borderRadiusLG:p,radiusSubMenuItem:g,menuArrowSize:m,menuArrowOffset:v,lineType:A,menuPanelMaskInset:b}=e;return[{"":{[`${n}`]:(0,i.A)((0,i.A)({},(0,Ae.t6)()),{["&-hidden"]:{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({},(0,Ae.dF)(e)),(0,Ae.t6)()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,["ul, ol"]:{margin:0,padding:0,listStyle:"none"},["&-overflow"]:{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${c}px ${u}px`,fontSize:r,lineHeight:l,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${s}`,`background ${o} ${s}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${s}`,`background ${o} ${s}`,`padding ${a} ${s}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${s}`,`padding ${o} ${s}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:d,borderStyle:A,borderWidth:0,borderTopWidth:h,marginBlock:h,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Se(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${2*r}px ${u}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,background:"transparent",borderRadius:p,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},[`> ${n}`]:(0,i.A)((0,i.A)((0,i.A)({borderRadius:p},Se(e)),Ce(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${s}`}})}}),Ce(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${v})`},"&::after":{transform:`rotate(45deg) translateX(-${v})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${.2*m}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${v})`},"&::before":{transform:`rotate(45deg) translateX(${v})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]};var ke=(e,t)=>{const n=(0,he.A)("Menu",(e,n)=>{let{overrideComponentToken:r}=n;if(!1===(null===t||void 0===t?void 0:t.value))return[];const{colorBgElevated:o,colorPrimary:a,colorError:s,colorErrorHover:l,colorTextLightSolid:c}=e,{controlHeightLG:u,fontSize:d}=e,h=d/7*5,f=(0,fe.h1)(e,{menuItemHeight:u,menuItemPaddingInline:e.margin,menuArrowSize:h,menuHorizontalHeight:1.15*u,menuArrowOffset:.25*h+"px",menuPanelMaskInset:-7,menuSubMenuBg:o}),p=new le.q(c).setAlpha(.65).toRgbString(),g=(0,fe.h1)(f,{colorItemText:p,colorItemTextHover:c,colorGroupTitle:p,colorItemTextSelected:c,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:a,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new le.q(c).setAlpha(.25).toRgbString(),colorDangerItemText:s,colorDangerItemTextHover:l,colorDangerItemTextSelected:c,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:c,colorItemBgSelectedHorizontal:a},(0,i.A)({},r));return[Te(f),ge(f),Ee(f),we(f,"light"),we(g,"dark"),ve(f),(0,ce.A)(f),(0,ue._j)(f,"slide-up"),(0,ue._j)(f,"slide-down"),(0,de.aB)(f,"zoom-big")]},e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:o,colorTextDescription:a,colorBgContainer:s,colorFillAlter:l,colorFillContent:c,lineWidth:u,lineWidthBold:d,controlItemBgActive:h,colorBgTextHover:f}=e;return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,colorItemText:o,colorItemTextHover:o,colorItemTextHoverHorizontal:t,colorGroupTitle:a,colorItemTextSelected:t,colorItemTextSelectedHorizontal:t,colorItemBg:s,colorItemBgHover:f,colorItemBgActive:c,colorSubItemBg:l,colorItemBgSelected:h,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:d,colorActiveBarBorderSize:u,colorItemTextDisabled:r,colorDangerItemText:n,colorDangerItemTextHover:n,colorDangerItemTextSelected:n,colorDangerItemBgActive:i,colorDangerItemBgSelected:i,itemMarginInline:e.marginXXS}});return n(e)},Oe=n(90938);const Me=()=>({id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}),Ie=[];var De=(0,o.pM)({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:Me(),slots:Object,setup(e,t){let{slots:n,emit:d,attrs:h}=t;const{direction:f,getPrefixCls:p}=(0,c.A)("menu",e),g=(0,Oe.Zg)(),m=(0,o.EW)(()=>{var t;return p("menu",e.prefixCls||(null===(t=null===g||void 0===g?void 0:g.prefixCls)||void 0===t?void 0:t.value))}),[v,A]=ke(m,(0,o.EW)(()=>!g)),b=(0,a.IJ)(new Map),y=(0,o.WQ)(T,(0,a.KR)(void 0)),w=(0,o.EW)(()=>void 0!==y.value?y.value:e.inlineCollapsed),{itemsNodes:_}=se(e),x=(0,a.IJ)(!1);(0,o.sV)(()=>{x.value=!0}),(0,o.nT)(()=>{(0,u.A)(!(!0===e.inlineCollapsed&&"inline"!==e.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),(0,u.A)(!(void 0!==y.value&&!0===e.inlineCollapsed),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});const E=(0,a.KR)([]),S=(0,a.KR)([]),I=(0,a.KR)({});(0,o.wB)(b,()=>{const e={};for(const t of b.value.values())e[t.key]=t;I.value=e},{flush:"post"}),(0,o.nT)(()=>{if(void 0!==e.activeKey){let t=[];const n=e.activeKey?I.value[e.activeKey]:void 0;t=n&&void 0!==e.activeKey?C([].concat((0,a.R1)(n.parentKeys),e.activeKey)):[],(0,s.A)(E.value,t)||(E.value=t)}}),(0,o.wB)(()=>e.selectedKeys,e=>{e&&(S.value=e.slice())},{immediate:!0,deep:!0});const N=(0,a.KR)([]);(0,o.wB)([I,S],()=>{let e=[];S.value.forEach(t=>{const n=I.value[t];n&&(e=e.concat((0,a.R1)(n.parentKeys)))}),e=C(e),(0,s.A)(N.value,e)||(N.value=e)},{immediate:!0});const R=t=>{if(e.selectable){const{key:n}=t,r=S.value.includes(n);let o;o=e.multiple?r?S.value.filter(e=>e!==n):[...S.value,n]:[n];const a=(0,i.A)((0,i.A)({},t),{selectedKeys:o});(0,s.A)(o,S.value)||(void 0===e.selectedKeys&&(S.value=o),d("update:selectedKeys",o),r&&e.multiple?d("deselect",a):d("select",a))}"inline"!==j.value&&!e.multiple&&L.value.length&&Q(Ie)},L=(0,a.KR)([]);let B;(0,o.wB)(()=>e.openKeys,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L.value;(0,s.A)(L.value,e)||(L.value=e.slice())},{immediate:!0,deep:!0});const P=t=>{clearTimeout(B),B=setTimeout(()=>{void 0===e.activeKey&&(E.value=t),d("update:activeKey",t[t.length-1])})},F=(0,o.EW)(()=>!!e.disabled),$=(0,o.EW)(()=>"rtl"===f.value),j=(0,a.KR)("vertical"),H=(0,a.IJ)(!1);(0,o.nT)(()=>{var t;"inline"!==e.mode&&"vertical"!==e.mode||!w.value?(j.value=e.mode,H.value=!1):(j.value="vertical",H.value=w.value),(null===(t=null===g||void 0===g?void 0:g.mode)||void 0===t?void 0:t.value)&&(j.value=g.mode.value)});const U=(0,o.EW)(()=>"inline"===j.value),Q=e=>{L.value=e,d("update:openKeys",e),d("openChange",e)},z=(0,a.KR)(L.value),W=(0,a.IJ)(!1);(0,o.wB)(L,()=>{U.value&&(z.value=L.value)},{immediate:!0}),(0,o.wB)(U,()=>{W.value?U.value?L.value=z.value:Q(Ie):W.value=!0},{immediate:!0});const G=(0,o.EW)(()=>({[`${m.value}`]:!0,[`${m.value}-root`]:!0,[`${m.value}-${j.value}`]:!0,[`${m.value}-inline-collapsed`]:H.value,[`${m.value}-rtl`]:$.value,[`${m.value}-${e.theme}`]:!0})),K=(0,o.EW)(()=>p()),Y=(0,o.EW)(()=>({horizontal:{name:`${K.value}-slide-up`},inline:(0,ee.A)(`${K.value}-motion-collapse`),other:{name:`${K.value}-zoom-big`}}));(0,l.vx)(!0);const q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[],n=b.value;return e.forEach(e=>{const{key:r,childrenEventKeys:i}=n.get(e);t.push(r,...q((0,a.R1)(i)))}),t},X=e=>{var t;d("click",e),R(e),null===(t=null===g||void 0===g?void 0:g.onClick)||void 0===t||t.call(g)},te=(e,t)=>{var n;const r=(null===(n=I.value[e])||void 0===n?void 0:n.childrenEventKeys)||[];let i=L.value.filter(t=>t!==e);if(t)i.push(e);else if("inline"!==j.value){const e=q((0,a.R1)(r));i=C(i.filter(t=>!e.includes(t)))}(0,s.A)(L,i)||Q(i)},ne=(e,t)=>{b.value.set(e,t),b.value=new Map(b.value)},re=e=>{b.value.delete(e),b.value=new Map(b.value)},ie=(0,a.KR)(0),oe=(0,o.EW)(()=>{var t;return e.expandIcon||n.expandIcon||(null===(t=null===g||void 0===g?void 0:g.expandIcon)||void 0===t?void 0:t.value)?t=>{let r=e.expandIcon||n.expandIcon;return r="function"===typeof r?r(t):r,(0,V.Ob)(r,{class:`${m.value}-submenu-expand-icon`},!1)}:null});(0,l.Ay)({prefixCls:m,activeKeys:E,openKeys:L,selectedKeys:S,changeActiveKeys:P,disabled:F,rtl:$,mode:j,inlineIndent:(0,o.EW)(()=>e.inlineIndent),subMenuCloseDelay:(0,o.EW)(()=>e.subMenuCloseDelay),subMenuOpenDelay:(0,o.EW)(()=>e.subMenuOpenDelay),builtinPlacements:(0,o.EW)(()=>e.builtinPlacements),triggerSubMenuAction:(0,o.EW)(()=>e.triggerSubMenuAction),getPopupContainer:(0,o.EW)(()=>e.getPopupContainer),inlineCollapsed:H,theme:(0,o.EW)(()=>e.theme),siderCollapsed:y,defaultMotions:(0,o.EW)(()=>x.value?Y.value:null),motion:(0,o.EW)(()=>x.value?e.motion:null),overflowDisabled:(0,a.IJ)(void 0),onOpenChange:te,onItemClick:X,registerMenuInfo:ne,unRegisterMenuInfo:re,selectedSubMenuKeys:N,expandIcon:oe,forceSubMenuRender:(0,o.EW)(()=>e.forceSubMenuRender),rootClassName:A});const ae=()=>{var e;return _.value||(0,k.MI)(null===(e=n.default)||void 0===e?void 0:e.call(n))};return()=>{var t;const i=ae(),a=ie.value>=i.length-1||"horizontal"!==j.value||e.disabledOverflow,s=t=>"horizontal"!==j.value||e.disabledOverflow?t:t.map((e,t)=>(0,o.bF)(l.Su,{key:e.key,overflowDisabled:t>ie.value},{default:()=>e})),c=(null===(t=n.overflowedIndicator)||void 0===t?void 0:t.call(n))||(0,o.bF)(Z.A,null,null);return v((0,o.bF)(O.A,(0,r.A)((0,r.A)({},h),{},{onMousedown:e.onMousedown,prefixCls:`${m.value}-overflow`,component:"ul",itemComponent:M.A,class:[G.value,h.class,A.value],role:"menu",id:e.id,data:s(i),renderRawItem:e=>e,renderRawRest:e=>{const t=e.length,n=t?i.slice(-t):null;return(0,o.bF)(o.FK,null,[(0,o.bF)(J,{eventKey:D.zC,key:D.zC,title:c,disabled:a,internalPopupClose:0===t},{default:()=>n}),(0,o.bF)(D.fn,null,{default:()=>[(0,o.bF)(J,{eventKey:D.zC,key:D.zC,title:c,disabled:a,internalPopupClose:0===t},{default:()=>n})]})])},maxCount:"horizontal"!==j.value||e.disabledOverflow?O.A.INVALIDATE:O.A.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:e=>{ie.value=e}}),{default:()=>[(0,o.bF)(o.Im,{to:"body"},{default:()=>[(0,o.bF)("div",{style:{display:"none"},"aria-hidden":!0},[(0,o.bF)(D.fn,null,{default:()=>[s(ae())]})])]})]}))}}});De.install=function(e){return e.component(De.name,De),e.component(M.A.name,M.A),e.component(J.name,J),e.component(ie.name,ie),e.component(ne.name,ne),e},De.Item=M.A,De.Divider=ie,De.SubMenu=J,De.ItemGroup=ne;var Ne=De},12622:function(e){function t(e){const t="\\d(_|\\d)*",n="[eE][-+]?"+t,r=t+"(\\."+t+")?("+n+")?",i="\\w+",o=t+"#"+i+"(\\."+i+")?#("+n+")?",a="\\b("+o+"|"+r+")",s="[A-Za-z](_?[A-Za-z0-9.])*",l="[]\\{\\}%#'\"",c=e.COMMENT("--","$"),u={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:l,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:s,endsParent:!0,relevance:0}]},d=["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"];return{name:"Ada",case_insensitive:!0,keywords:{keyword:d,literal:["True","False"]},contains:[c,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:a,relevance:0},{className:"symbol",begin:"'"+s},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:l},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[c,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:l},u,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:l}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:l},u]}}e.exports=t},12623:function(e,t,n){"use strict";var r=n(79047),i=n(13708);function o(e,t){t=(0,r.A)(t,e);var n=0,o=t.length;while(null!=e&&n<o)e=e[(0,i.A)(t[n++])];return n&&n==o?e:void 0}t.A=o},12642:function(e){function t(e){const t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},n=e.UNDERSCORE_TITLE_MODE,r={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},i="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:i,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[n,{className:"params",begin:/\(/,end:/\)/,keywords:i,contains:["self",e.C_BLOCK_COMMENT_MODE,t,r]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},n]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[n]},{beginKeywords:"use",end:/;/,contains:[n]},{begin:/=>/},t,r]}}e.exports=t},12739:function(e,t,n){"use strict";n.d(t,{A:function(){return A}});var r=n(57433);function i(){this.__data__=new r.A,this.size=0}var o=i;function a(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}var s=a;function l(e){return this.__data__.get(e)}var c=l;function u(e){return this.__data__.has(e)}var d=u,h=(n(44114),n(76062)),f=n(67788),p=200;function g(e,t){var n=this.__data__;if(n instanceof r.A){var i=n.__data__;if(!h.A||i.length<p-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new f.A(i)}return n.set(e,t),this.size=n.size,this}var m=g;function v(e){var t=this.__data__=new r.A(e);this.size=t.size}v.prototype.clear=o,v.prototype["delete"]=s,v.prototype.get=c,v.prototype.has=d,v.prototype.set=m;var A=v},12750:function(e,t,n){var r=n(89811);r.registerLanguage("1c",n(21220)),r.registerLanguage("abnf",n(92951)),r.registerLanguage("accesslog",n(73686)),r.registerLanguage("actionscript",n(38737)),r.registerLanguage("ada",n(12622)),r.registerLanguage("angelscript",n(90716)),r.registerLanguage("apache",n(37862)),r.registerLanguage("applescript",n(68337)),r.registerLanguage("arcade",n(84356)),r.registerLanguage("arduino",n(1282)),r.registerLanguage("armasm",n(63241)),r.registerLanguage("xml",n(49895)),r.registerLanguage("asciidoc",n(55475)),r.registerLanguage("aspectj",n(74572)),r.registerLanguage("autohotkey",n(58285)),r.registerLanguage("autoit",n(64846)),r.registerLanguage("avrasm",n(27318)),r.registerLanguage("awk",n(46111)),r.registerLanguage("axapta",n(60547)),r.registerLanguage("bash",n(41838)),r.registerLanguage("basic",n(32312)),r.registerLanguage("bnf",n(77688)),r.registerLanguage("brainfuck",n(47553)),r.registerLanguage("c",n(13071)),r.registerLanguage("cal",n(48214)),r.registerLanguage("capnproto",n(6042)),r.registerLanguage("ceylon",n(28736)),r.registerLanguage("clean",n(90943)),r.registerLanguage("clojure",n(77662)),r.registerLanguage("clojure-repl",n(28038)),r.registerLanguage("cmake",n(89517)),r.registerLanguage("coffeescript",n(56751)),r.registerLanguage("coq",n(32131)),r.registerLanguage("cos",n(41093)),r.registerLanguage("cpp",n(16143)),r.registerLanguage("crmsh",n(81973)),r.registerLanguage("crystal",n(25508)),r.registerLanguage("csharp",n(6243)),r.registerLanguage("csp",n(7776)),r.registerLanguage("css",n(28057)),r.registerLanguage("d",n(35566)),r.registerLanguage("markdown",n(66889)),r.registerLanguage("dart",n(70485)),r.registerLanguage("delphi",n(65084)),r.registerLanguage("diff",n(97711)),r.registerLanguage("django",n(51675)),r.registerLanguage("dns",n(32849)),r.registerLanguage("dockerfile",n(62598)),r.registerLanguage("dos",n(12276)),r.registerLanguage("dsconfig",n(19603)),r.registerLanguage("dts",n(54095)),r.registerLanguage("dust",n(11300)),r.registerLanguage("ebnf",n(74667)),r.registerLanguage("elixir",n(42979)),r.registerLanguage("elm",n(11646)),r.registerLanguage("ruby",n(94304)),r.registerLanguage("erb",n(68953)),r.registerLanguage("erlang-repl",n(5233)),r.registerLanguage("erlang",n(97755)),r.registerLanguage("excel",n(95905)),r.registerLanguage("fix",n(43041)),r.registerLanguage("flix",n(10655)),r.registerLanguage("fortran",n(13792)),r.registerLanguage("fsharp",n(57846)),r.registerLanguage("gams",n(8092)),r.registerLanguage("gauss",n(63499)),r.registerLanguage("gcode",n(70706)),r.registerLanguage("gherkin",n(31412)),r.registerLanguage("glsl",n(89708)),r.registerLanguage("gml",n(31561)),r.registerLanguage("go",n(72474)),r.registerLanguage("golo",n(72647)),r.registerLanguage("gradle",n(979)),r.registerLanguage("graphql",n(67595)),r.registerLanguage("groovy",n(78978)),r.registerLanguage("haml",n(56498)),r.registerLanguage("handlebars",n(33160)),r.registerLanguage("haskell",n(4346)),r.registerLanguage("haxe",n(28228)),r.registerLanguage("hsp",n(76053)),r.registerLanguage("http",n(28512)),r.registerLanguage("hy",n(5359)),r.registerLanguage("inform7",n(87904)),r.registerLanguage("ini",n(58456)),r.registerLanguage("irpf90",n(56588)),r.registerLanguage("isbl",n(89714)),r.registerLanguage("java",n(90976)),r.registerLanguage("javascript",n(87019)),r.registerLanguage("jboss-cli",n(70042)),r.registerLanguage("json",n(30226)),r.registerLanguage("julia",n(61900)),r.registerLanguage("julia-repl",n(64837)),r.registerLanguage("kotlin",n(93129)),r.registerLanguage("lasso",n(17652)),r.registerLanguage("latex",n(14238)),r.registerLanguage("ldif",n(33535)),r.registerLanguage("leaf",n(27652)),r.registerLanguage("less",n(1705)),r.registerLanguage("lisp",n(22260)),r.registerLanguage("livecodeserver",n(86280)),r.registerLanguage("livescript",n(17697)),r.registerLanguage("llvm",n(76041)),r.registerLanguage("lsl",n(18437)),r.registerLanguage("lua",n(75696)),r.registerLanguage("makefile",n(16996)),r.registerLanguage("mathematica",n(56878)),r.registerLanguage("matlab",n(49529)),r.registerLanguage("maxima",n(83367)),r.registerLanguage("mel",n(42736)),r.registerLanguage("mercury",n(33451)),r.registerLanguage("mipsasm",n(27740)),r.registerLanguage("mizar",n(45617)),r.registerLanguage("perl",n(13061)),r.registerLanguage("mojolicious",n(29947)),r.registerLanguage("monkey",n(39829)),r.registerLanguage("moonscript",n(44810)),r.registerLanguage("n1ql",n(21668)),r.registerLanguage("nestedtext",n(66180)),r.registerLanguage("nginx",n(81934)),r.registerLanguage("nim",n(39238)),r.registerLanguage("nix",n(33625)),r.registerLanguage("node-repl",n(47528)),r.registerLanguage("nsis",n(79947)),r.registerLanguage("objectivec",n(89892)),r.registerLanguage("ocaml",n(24406)),r.registerLanguage("openscad",n(35263)),r.registerLanguage("oxygene",n(78973)),r.registerLanguage("parser3",n(74406)),r.registerLanguage("pf",n(26622)),r.registerLanguage("pgsql",n(61969)),r.registerLanguage("php",n(83762)),r.registerLanguage("php-template",n(63025)),r.registerLanguage("plaintext",n(36833)),r.registerLanguage("pony",n(17580)),r.registerLanguage("powershell",n(17609)),r.registerLanguage("processing",n(68487)),r.registerLanguage("profile",n(13955)),r.registerLanguage("prolog",n(71831)),r.registerLanguage("properties",n(36306)),r.registerLanguage("protobuf",n(55071)),r.registerLanguage("puppet",n(57318)),r.registerLanguage("purebasic",n(286)),r.registerLanguage("python",n(91334)),r.registerLanguage("python-repl",n(62142)),r.registerLanguage("q",n(88225)),r.registerLanguage("qml",n(45140)),r.registerLanguage("r",n(58088)),r.registerLanguage("reasonml",n(8289)),r.registerLanguage("rib",n(45723)),r.registerLanguage("roboconf",n(87906)),r.registerLanguage("routeros",n(39639)),r.registerLanguage("rsl",n(55603)),r.registerLanguage("ruleslanguage",n(96543)),r.registerLanguage("rust",n(82334)),r.registerLanguage("sas",n(32191)),r.registerLanguage("scala",n(45772)),r.registerLanguage("scheme",n(49079)),r.registerLanguage("scilab",n(73268)),r.registerLanguage("scss",n(40860)),r.registerLanguage("shell",n(80652)),r.registerLanguage("smali",n(73586)),r.registerLanguage("smalltalk",n(90091)),r.registerLanguage("sml",n(53114)),r.registerLanguage("sqf",n(21012)),r.registerLanguage("sql",n(80854)),r.registerLanguage("stan",n(38280)),r.registerLanguage("stata",n(37751)),r.registerLanguage("step21",n(92543)),r.registerLanguage("stylus",n(36438)),r.registerLanguage("subunit",n(80566)),r.registerLanguage("swift",n(24569)),r.registerLanguage("taggerscript",n(49613)),r.registerLanguage("yaml",n(81219)),r.registerLanguage("tap",n(53955)),r.registerLanguage("tcl",n(24477)),r.registerLanguage("thrift",n(67431)),r.registerLanguage("tp",n(93740)),r.registerLanguage("twig",n(15241)),r.registerLanguage("typescript",n(84339)),r.registerLanguage("vala",n(56682)),r.registerLanguage("vbnet",n(23805)),r.registerLanguage("vbscript",n(41175)),r.registerLanguage("vbscript-html",n(46525)),r.registerLanguage("verilog",n(73772)),r.registerLanguage("vhdl",n(17998)),r.registerLanguage("vim",n(69886)),r.registerLanguage("wasm",n(25056)),r.registerLanguage("wren",n(86962)),r.registerLanguage("x86asm",n(19013)),r.registerLanguage("xl",n(33636)),r.registerLanguage("xquery",n(72956)),r.registerLanguage("zephir",n(12642)),r.HighlightJS=r,r.default=r,e.exports=r},13061:function(e){function t(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},a={begin:/->\{/,end:/\}/},s={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},l={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[s]},c={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},u=[e.BACKSLASH_ESCAPE,o,l],d=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],h=(e,n,i="\\1")=>{const o="\\1"===i?i:t.concat(i,n);return t.concat(t.concat("(?:",e,")"),n,/(?:\\.|[^\\\/])*?/,o,/(?:\\.|[^\\\/])*?/,i,r)},f=(e,n,i)=>t.concat(t.concat("(?:",e,")"),n,/(?:\\.|[^\\\/])*?/,i,r),p=[l,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:u,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},c,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:h("s|tr|y",t.either(...d,{capture:!0}))},{begin:h("s|tr|y","\\(","\\)")},{begin:h("s|tr|y","\\[","\\]")},{begin:h("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:f("(?:m|qr)?",/\//,/\//)},{begin:f("m|qr",t.either(...d,{capture:!0}),/\1/)},{begin:f("m|qr",/\(/,/\)/)},{begin:f("m|qr",/\[/,/\]/)},{begin:f("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,s,c]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=p,a.contains=p,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:p}}e.exports=t},13071:function(e){function t(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="<[^<>]+>",a="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional(o)+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},l="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+l+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},f=t.optional(i)+e.IDENT_RE+"\\s*\\(",p=["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],g=["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],m={keyword:p,type:g,literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},v=[d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],A={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:m,contains:v.concat([{begin:/\(/,end:/\)/,keywords:m,contains:v.concat(["self"]),relevance:0}]),relevance:0},b={begin:"("+a+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:m,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:m,relevance:0},{begin:f,returnBegin:!0,contains:[e.inherit(h,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:m,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:m,disableAutodetect:!0,illegal:"</",contains:[].concat(A,b,v,[d,{begin:e.IDENT_RE+"::",keywords:m},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:d,strings:c,keywords:m}}}e.exports=t},13579:function(e,t,n){"use strict";var r=n(46518),i=n(69565),o=n(72652),a=n(79306),s=n(28551),l=n(1767),c=n(9539),u=n(84549),d=u("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:d},{some:function(e){s(this);try{a(e)}catch(r){c(this,"throw",r)}if(d)return i(d,this,e);var t=l(this),n=0;return o(t,function(t,r){if(e(t,n++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},13708:function(e,t,n){"use strict";var r=n(18095),i=1/0;function o(e){if("string"==typeof e||(0,r.A)(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}t.A=o},13792:function(e){function t(e){const t=e.regex,n={className:"params",begin:"\\(",end:"\\)"},r={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},i=/(_[a-z_\d]+)?/,o=/([de][+-]?\d+)?/,a={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,o,i)},{begin:t.concat(/\b\d+/,o,i)},{begin:t.concat(/\.\d+/,o,i)}],relevance:0},s={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]},l={className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},c=["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],u=[".False.",".True."],d=["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"];return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{$pattern:/\b[a-z][a-z0-9_]+\b|\.[a-z][a-z0-9_]+\./,keyword:c,literal:u,built_in:d},illegal:/\/\*/,contains:[l,s,{begin:/^C\s*=(?!=)/,relevance:0},r,a]}}e.exports=t},13925:function(e,t,n){"use strict";var r=n(20034);e.exports=function(e){return r(e)||null===e}},13955:function(e){function t(e){return{name:"Python profiler",contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}e.exports=t},14042:function(e,t,n){"use strict";n.d(t,{$:function(){return zr}});n(18111),n(61701),n(44114),n(22489),n(7588);function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(){a=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(O){c=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var o=t&&t.prototype instanceof f?t:f,a=Object.create(o.prototype),s=new C(i||[]);return r(a,"_invoke",{value:_(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(O){return{type:"throw",arg:O}}}e.wrap=u;var h={};function f(){}function p(){}function g(){}var m={};c(m,o,function(){return this});var v=Object.getPrototypeOf,A=v&&v(v(T([])));A&&A!==t&&n.call(A,o)&&(m=A);var b=g.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){function i(r,o,a,s){var l=d(e[r],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&n.call(u,"__await")?t.resolve(u.__await).then(function(e){i("next",e,a,s)},function(e){i("throw",e,a,s)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return i("throw",e,a,s)})}s(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t(function(t,r){i(e,n,t,r)})}return o=o?o.then(r,r):r()}})}function _(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return k()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=d(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function T(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return p.prototype=g,r(b,"constructor",{value:g,configurable:!0}),r(g,"constructor",{value:p,configurable:!0}),p.displayName=c(g,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,c(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(w.prototype),c(w.prototype,s,function(){return this}),e.AsyncIterator=w,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new w(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},y(b),c(b,l,"Generator"),c(b,o,function(){return this}),c(b,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(B){return void n(B)}s.done?t(l):Promise.resolve(l).then(r,i)}function c(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){l(o,r,i,a,s,"next",e)}function s(e){l(o,r,i,a,s,"throw",e)}a(void 0)})}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,N(r.key),r)}}function h(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e,t,n){return t=N(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function v(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function A(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function b(e,t){if(null==e)return{};var n,r,i=A(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t){if(t&&("object"===typeof t||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}function _(e){var t=v();return function(){var n,r=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return w(this,n)}}function x(e,t){return C(e)||r(e,t)||k(e,t)||I()}function E(e){return S(e)||T(e)||k(e)||M()}function S(e){if(Array.isArray(e))return O(e)}function C(e){if(Array.isArray(e))return e}function T(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function k(e,t){if(e){if("string"===typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(){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 D(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function N(e){var t=D(e,"string");return"symbol"===typeof t?t:String(t)}var R=n(26021),L=n(56030),B=n(66917);function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $(){$=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(k){l=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),s=new S(i||[]);return r(a,"_invoke",{value:w(e,n,s)}),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(k){return{type:"throw",arg:k}}}e.wrap=c;var d={};function h(){}function f(){}function p(){}var g={};l(g,o,function(){return this});var m=Object.getPrototypeOf,v=m&&m(m(C([])));v&&v!==t&&n.call(v,o)&&(g=v);var A=p.prototype=h.prototype=Object.create(g);function b(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function y(e,t){function i(r,o,a,s){var l=u(e[r],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then(function(e){i("next",e,a,s)},function(e){i("throw",e,a,s)}):t.resolve(d).then(function(e){c.value=e,a(c)},function(e){return i("throw",e,a,s)})}s(l.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t(function(t,r){i(e,n,t,r)})}return o=o?o.then(r,r):r()}})}function w(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function _(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=u(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function C(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return f.prototype=p,r(A,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:f,configurable:!0}),f.displayName=l(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(A),e},e.awrap=function(e){return{__await:e}},b(y.prototype),l(y.prototype,a,function(){return this}),e.AsyncIterator=y,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new y(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},b(A),l(A,s,"Generator"),l(A,o,function(){return this}),l(A,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function H(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(B){return void n(B)}s.done?t(l):Promise.resolve(l).then(r,i)}function U(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){H(o,r,i,a,s,"next",e)}function s(e){H(o,r,i,a,s,"throw",e)}a(void 0)})}}function Q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,de(r.key),r)}}function W(e,t,n){return t&&z(e.prototype,t),n&&z(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function G(e,t,n){return t=de(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y(e,t)}function K(e){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},K(e)}function Y(e,t){return Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Y(e,t)}function q(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function X(e,t,n){return X=q()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=Function.bind.apply(e,r),o=new i;return n&&Y(o,n.prototype),o},X.apply(null,arguments)}function J(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function Z(e){var t="function"===typeof Map?new Map:void 0;return Z=function(e){if(null===e||!J(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return X(e,arguments,K(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Y(n,e)},Z(e)}function ee(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function te(e,t){if(null==e)return{};var n,r,i=ee(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ne(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function re(e,t){if(t&&("object"===typeof t||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ne(e)}function ie(e){var t=q();return function(){var n,r=K(e);if(t){var i=K(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return re(this,n)}}function oe(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=K(e),null===e)break;return e}function ae(){return ae="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=oe(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},ae.apply(this,arguments)}function se(e,t){if(e){if("string"===typeof e)return le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?le(e,t):void 0}}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ce(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=se(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ue(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function de(e){var t=ue(e,"string");return"symbol"===typeof t?t:String(t)}n(18237);var he,fe=function(){function e(){Q(this,e)}return W(e,null,[{key:"start",value:function(e){return e&&e.length?1===e.length&&e.end(0)-e.start(0)<1e-6||1===e.length&&e.start(0)<0?0:e.start(0):0}},{key:"end",value:function(e){return e&&e.length?1===e.length&&e.end(0)-e.start(0)<1e-6?0:e.end(e.length-1):0}},{key:"get",value:function(e){if(e)try{return e.buffered}catch(B){}}},{key:"buffers",value:function(e,t){if(!e||!e.length)return[];for(var n=[],r=0,i=e.length;r<i;r++){var o=n.length;if(o&&t){var a=n[o-1],s=a[1],l=e.start(r);if(l-s<=t){var c=e.end(r);c>s&&(a[1]=c)}else n.push([e.start(r),e.end(r)])}else n.push([e.start(r),e.end(r)])}return n}},{key:"totalLength",value:function(e){return e&&e.length?e.reduce(function(e,t){return e+(t[1]-t[0])},0):0}},{key:"info",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!t||!t.length)return{start:0,end:0,buffers:[]};for(var i=0,o=0,a=0,s=0,l=0,c=0,u=0,d=e.buffers(t,r),h=0,f=d.length;h<f;h++){var p=d[h];if(n+r>=p[0]&&n<=p[1])i=p[0],o=p[1],a=h;else{if(n+r<p[0]){s=p[0],l=p[1];break}n+r>p[1]&&(c=p[0],u=p[1])}}return{start:i,end:o,index:a,buffers:d,nextStart:s,nextEnd:l,prevStart:c,prevEnd:u,currentTime:n,behind:n-i,remaining:o?o-n:0,length:e.totalLength&&e.totalLength(d)}}},{key:"isBuffered",value:function(t,n){if(t){var r=e.get(t);if(null!==r&&void 0!==r&&r.length)for(var i=0;i<r.length;i++)if(n>=r.start(i)&&n<=r.end(i))return!0}return!1}}]),e}(),pe="undefined"!==typeof window,ge={MANIFEST:"manifest",NETWORK:"network",NETWORK_TIMEOUT:"network_timeout",NETWORK_FORBIDDEN:"network_forbidden",NETWORK_NOTFOUND:"network_notfound",NETWROK_RANGE_NOT_SATISFIABLE:"network_range_not_satisfiable",DEMUX:"demux",REMUX:"remux",MEDIA:"media",DRM:"drm",OTHER:"other",RUNTIME:"runtime",SUB_TYPES:{FLV:"FLV",HLS:"HLS",MP4:"MP4",FMP4:"FMP4",MSE_ADD_SB:"MSE_ADD_SB",MSE_APPEND_BUFFER:"MSE_APPEND_BUFFER",MSE_OTHER:"MSE_OTHER",MSE_FULL:"MSE_FULL",MSE_CHANGE_TYPE:"MSE_CHANGE_TYPE",OPTION:"OPTION",DASH:"DASH",LICENSE:"LICENSE",CUSTOM_LICENSE:"CUSTOM_LICENSE",MSE_HIJACK:"MSE_HIJACK",EME_HIJACK:"EME_HIJACK",SIDX:"SIDX",NO_CANPLAY_ERROR:"NO_CANPLAY_ERROR",BUFFERBREAK_ERROR:"BUFFERBREAK_ERROR",WAITING_TIMEOUT_ERROR:"WAITING_TIMEOUT_ERROR",MEDIA_ERR_ABORTED:"MEDIA_ERR_ABORTED",MEDIA_ERR_NETWORK:"MEDIA_ERR_NETWORK",MEDIA_ERR_DECODE:"MEDIA_ERR_DECODE",MEDIA_ERR_SRC_NOT_SUPPORTED:"MEDIA_ERR_SRC_NOT_SUPPORTED",MEDIA_ERR_CODEC_NOT_SUPPORTED:"MEDIA_ERR_CODEC_NOT_SUPPORTED",MEDIA_ERR_URL_EMPTY:"MEDIA_ERR_URL_EMPTY"}},me=(he={},G(he,ge.MANIFEST,{HLS:1100,DASH:1200}),G(he,ge.NETWORK,2100),G(he,ge.NETWORK_TIMEOUT,2101),G(he,ge.NETWORK_FORBIDDEN,2103),G(he,ge.NETWORK_NOTFOUND,2104),G(he,ge.NETWROK_RANGE_NOT_SATISFIABLE,2116),G(he,ge.DEMUX,{FLV:3100,HLS:3200,MP4:3300,FMP4:3400,SIDX:3410}),G(he,ge.REMUX,{FMP4:4100,MP4:4200}),G(he,ge.MEDIA,{MEDIA_ERR_ABORTED:5101,MEDIA_ERR_NETWORK:5102,MEDIA_ERR_DECODE:5103,MEDIA_ERR_SRC_NOT_SUPPORTED:5104,MEDIA_ERR_CODEC_NOT_SUPPORTED:5105,MEDIA_ERR_URL_EMPTY:5106,MSE_ADD_SB:5200,MSE_APPEND_BUFFER:5201,MSE_OTHER:5202,MSE_FULL:5203,MSE_HIJACK:5204,MSE_CHANGE_TYPE:5205,EME_HIJACK:5301}),G(he,ge.DRM,{LICENSE:7100,CUSTOM_LICENSE:7200}),G(he,ge.OTHER,8e3),G(he,ge.RUNTIME,{NO_CANPLAY_ERROR:9001,BUFFERBREAK_ERROR:9002,WAITING_TIMEOUT_ERROR:9003}),he),ve=function(e){V(n,e);var t=ie(n);function n(e,r,i,o,a){var s;return Q(this,n),s=t.call(this,a||(null===i||void 0===i?void 0:i.message)),s.errorType=e===ge.NETWORK_TIMEOUT?ge.NETWORK:e,s.originError=i,s.ext=o,s.errorCode=me[e][r]||me[e],s.errorMessage=s.message,s.errorCode||(s.errorType=ge.OTHER,s.errorCode=me[s.errorType]),s}return W(n,null,[{key:"create",value:function(e,t,r,i,o){return e instanceof n?e:(e instanceof Error&&(r=e,e=""),e||(e=ge.OTHER),new n(e,t,r,i,o))}},{key:"network",value:function(e){var t;return new n(null!==e&&void 0!==e&&e.isTimeout?ge.NETWORK_TIMEOUT:ge.NETWORK,null,e instanceof Error?e:null,{url:null===e||void 0===e?void 0:e.url,response:null===e||void 0===e?void 0:e.response,httpCode:null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.status})}}]),n}(Z(Error)),Ae={DEBUG:1,LOG:2,WARN:3,ERROR:4},be=204800,ye=["Boolean","Number","String","Undefined","Null","Date","Object"],we=function(){function e(t,n){Q(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]"),this.logCacheLevel=(null===n||void 0===n?void 0:n.logCacheLevel)||3,this.logMaxSize=(null===n||void 0===n?void 0:n.logMaxSize)||be,this.logSize=0,this.logTextArray=[]}return W(e,[{key:"debug",value:function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];this.logCache.apply(this,[Ae.DEBUG].concat(r)),e.disabled||(t=console).debug.apply(t,["[".concat(_e(),"]"),this._prefix].concat(r))}},{key:"log",value:function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];this.logCache.apply(this,[Ae.LOG].concat(r)),e.disabled||(t=console).log.apply(t,["[".concat(_e(),"]"),this._prefix].concat(r))}},{key:"warn",value:function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];this.logCache.apply(this,[Ae.WARN].concat(r)),e.disabled||(t=console).warn.apply(t,["[".concat(_e(),"]"),this._prefix].concat(r))}},{key:"error",value:function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];this.logCache.apply(this,[Ae.ERROR].concat(r)),e.disabled||(t=console).error.apply(t,["[".concat(_e(),"]"),this._prefix].concat(r))}},{key:"logCache",value:function(e){if(!(e<this.logCacheLevel)){var t="";try{for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=r.map(function(e){return Ee(e)});t="[".concat(_e(),"]")+this._prefix+JSON.stringify(o)}catch(s){return}if(e>=this.logCacheLevel&&(this.logSize+=t.length,this.logTextArray.push(t)),this.logSize>this.logMaxSize){var a=this.logTextArray.shift();this.logSize-=a.length}}}},{key:"getLogCache",value:function(){var e=this.logTextArray.join("\n");return this.reset(),e}},{key:"reset",value:function(){this.logTextArray=[],this.logSize=0}},{key:"table",value:function(){var t;e.disabled||(console.group(this._prefix),(t=console).table.apply(t,arguments),console.groupEnd())}},{key:"setLogLevel",value:function(e){this.logCacheLevel=e}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();function _e(){return(new Date).toLocaleString()}function xe(e){if("object"!==j(e))return e;var t=Object.prototype.toString.call(e).slice(8,-1);switch(t){case"Array":case"Uint8Array":case"ArrayBuffer":return t+"["+e.length+"]";case"Object":return"{}";default:return t}}function Ee(e,t,n){n||(n=1),t||(t=2);var r={};if(!e||"object"!==j(e))return e;var i=Object.prototype.toString.call(e).slice(8,-1);if(!ye.includes(i))return i;if(!(n>t)){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n===t?r[o]=xe(e[o]):"object"===j(e[o])?r[o]=Ee(e[o],t,n+1):r[o]=e[o]);return r}}function Se(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.used=!1,n.resolve=function(){return n.used=!0,e.apply(void 0,arguments)},n.reject=function(){return n.used=!0,t.apply(void 0,arguments)},n}function Ce(){try{return parseInt(performance.now(),10)}catch(e){return(new Date).getTime()}}G(we,"disabled",!0);var Te={stringify:function(e){try{return JSON.stringify(e)}catch(t){return""}},parse:function(e){try{return JSON.parse(e)}catch(t){return}}};function ke(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];try{return pe?e&&"undefined"!==typeof ManagedMediaSource?ManagedMediaSource:window.MediaSource:null}catch(t){}}function Oe(e){return/ManagedMediaSource/gi.test(Object.prototype.toString.call(e))}function Me(e){var t=[];if(e instanceof TimeRanges)for(var n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}var Ie={APPEND:"appendBuffer",REMOVE:"removeBuffer",UPDATE_DURATION:"updateDuration"},De=function(){function e(t,n){var r=this;Q(this,e),G(this,"media",null),G(this,"mediaSource",null),G(this,"_openPromise",Se()),G(this,"_queue",Object.create(null)),G(this,"_sourceBuffer",Object.create(null)),G(this,"_mseFullFlag",{}),G(this,"_st",0),G(this,"_opst",0),G(this,"_logger",null),G(this,"_config",null),G(this,"_url",null),G(this,"_onStartStreaming",function(){r._logger.debug("startstreaming")}),G(this,"_onEndStreaming",function(){r._logger.debug("endstreaming")}),G(this,"_onSBUpdateEnd",function(e){var t=r._queue[e];if(t){var n=t[0];if((null===n||void 0===n?void 0:n.opName)!==Ie.UPDATE_DURATION&&t.shift(),n){var i,o,a=Ce()-r._opst;r._logger.debug("UpdateEnd(".concat(e,"/").concat(n.opName,")"),Te.stringify(Me(null===(i=r._sourceBuffer[e])||void 0===i?void 0:i.buffered)),a,n.context),n.promise.resolve({name:n.opName,context:n.context,costtime:a});var s=null===(o=n.context)||void 0===o?void 0:o.callback;s&&"function"===typeof s&&s(n.context),r._startQueue(e)}}}),G(this,"_onSBUpdateError",function(e,t){var n=r._queue[e];if(n){var i=n[0];i&&(r._logger.error("UpdateError",e,i.opName,i.context),i.promise.reject(new ve(ge.MEDIA,ge.SUB_TYPES.MSE_APPEND_BUFFER,t)))}}),this._config=Object.assign(e.getDefaultConfig(),n),t&&this.bindMedia(t),this._logger=new we("MSE"),this._config.openLog&&we.enable()}return W(e,[{key:"isOpened",get:function(){var e;return"open"===(null===(e=this.mediaSource)||void 0===e?void 0:e.readyState)}},{key:"hasOpTasks",get:function(){var e=this,t=!1;return Object.keys(this._queue).forEach(function(n){var r=e._queue[n];Array.isArray(r)&&(t||(t=r.length>0))}),t}},{key:"url",get:function(){return this._url}},{key:"duration",get:function(){var e;return(null===(e=this.mediaSource)||void 0===e?void 0:e.duration)||-1}},{key:"isEnded",get:function(){return!!this.mediaSource&&"ended"===this.mediaSource.readyState}},{key:"streaming",get:function(){return!Oe(this.mediaSource)||this.mediaSource.streaming}},{key:"isFull",value:function(t){return t?this._mseFullFlag[t]:this._mseFullFlag[e.VIDEO]}},{key:"updateDuration",value:function(e){var t=this,n=this.mediaSource&&this.mediaSource.duration>e;if(this.mediaSource&&this.mediaSource.duration>e){var r=0;if(Object.keys(this._sourceBuffer).forEach(function(e){try{r=Math.max(t.bufferEnd(e)||0,r)}catch(B){}}),e<r)return Promise.resolve()}return this._enqueueBlockingOp(function(){t.isEnded?t._logger.debug("setDuration but ended"):t.mediaSource&&(t.mediaSource.duration=e,t._logger.debug("setDuration",e))},Ie.UPDATE_DURATION,{isReduceDuration:n})}},{key:"open",value:function(){var e=this;if(this._openPromise.used&&!this.isOpened&&this.mediaSource){var t=this.mediaSource,n=function n(){var r=Ce()-e._st;e._logger.debug("sourceopen",r),t.removeEventListener("sourceopen",n),e._openPromise.resolve({costtime:r})};t.addEventListener("sourceopen",n),this._openPromise=Se()}return this._openPromise}},{key:"bindMedia",value:function(){var e=U($().mark(function e(t){var n,r,i,o,a=this;return $().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!this.mediaSource&&!this.media){e.next=3;break}return e.next=3,this.unbindMedia();case 3:if(n=ke(this._config.preferMMS),t&&n){e.next=6;break}throw new Error("Param media or MediaSource does not exist");case 6:return this.media=t,r=this.mediaSource=new n,i=Oe(r),this._st=Ce(),o=function e(){var n=Ce()-a._st;a._logger.debug("sourceopen"),r.removeEventListener("sourceopen",e),URL.revokeObjectURL(t.src),a._openPromise.resolve({costtime:n})},r.addEventListener("sourceopen",o),i&&(r.addEventListener("startstreaming",this._onStartStreaming),r.addEventListener("endstreaming",this._onEndStreaming)),this._url=URL.createObjectURL(r),t.src=this._url,t.disableRemotePlayback=i,e.abrupt("return",this._openPromise);case 17:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}()},{key:"unbindMedia",value:function(){var e=U($().mark(function e(){var t,n,r,i=this;return $().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(this._openPromise.used||this._openPromise.resolve(),t=this.mediaSource,t){if(Object.keys(this._queue).forEach(function(e){var t=i._queue[e];t&&t.forEach(function(e){var t,n;return null===(t=e.promise)||void 0===t||null===(n=t.resolve)||void 0===n?void 0:n.call(t)})}),n=!!this.media&&this.media.readyState>=1,r="open"===t.readyState,n&&r)try{t.endOfStream()}catch(B){}Object.keys(this._sourceBuffer).forEach(function(e){try{t.removeSourceBuffer(i._sourceBuffer[e])}catch(B){}}),Oe(t)&&(t.removeEventListener("startstreaming",this._onStartStreaming),t.removeEventListener("endstreaming",this._onEndStreaming))}if(this.media){this.media.disableRemotePlayback=!1,this.media.removeAttribute("src");try{this.media.load()}catch(B){}this.media=null}this.mediaSource=null,this._openPromise=Se(),this._queue=Object.create(null),this._sourceBuffer=Object.create(null);case 8:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"createSource",value:function(e,t){if(!this._sourceBuffer[e]&&this.mediaSource){var n;try{n=this._sourceBuffer[e]=this.mediaSource.addSourceBuffer(t)}catch(B){throw new ve(ge.MEDIA,ge.SUB_TYPES.MSE_ADD_SB,B)}n.mimeType=t,n.addEventListener("updateend",this._onSBUpdateEnd.bind(this,e)),n.addEventListener("error",this._onSBUpdateError.bind(this,e))}}},{key:"changeType",value:function(e,t){var n=this,r=this._sourceBuffer[e];return this.mediaSource&&r&&r.mimeType!==t?"function"!==typeof r.changeType?Promise.reject(new ve(ge.MEDIA,ge.SUB_TYPES.MSE_CHANGE_TYPE,new Error("changeType is not a function"))):this._enqueueOp(e,function(){try{r.changeType(t)}catch(i){throw new ve(ge.MEDIA,ge.SUB_TYPES.MSE_CHANGE_TYPE,i)}r.mimeType=t,n._onSBUpdateEnd(e)},"changeType",{mimeType:t}):Promise.resolve()}},{key:"createOrChangeSource",value:function(e,t){return this.createSource(e,t),this.changeType(e,t)}},{key:"append",value:function(e,t,n){var r=this;return t&&t.byteLength&&this._sourceBuffer[e]?this._enqueueOp(e,function(){var i;r.mediaSource&&!r.media.error&&(r._logger.debug("MSE APPEND START",n),r._opst=Ce(),null===(i=r._sourceBuffer[e])||void 0===i||i.appendBuffer(t))},Ie.APPEND,n):Promise.resolve()}},{key:"remove",value:function(e,t,n,r){var i=this,o=!1;return this._mseFullFlag[e]&&(o=!0),this._enqueueOp(e,function(){if(i.mediaSource&&!i.media.error){var o=i._sourceBuffer[e];t>=n||!o?i._onSBUpdateEnd(e):(i._opst=Ce(),i._logger.debug("MSE REMOVE START",e,t,n,r),o.remove(t,n))}},Ie.REMOVE,r,o)}},{key:"clearBuffer",value:function(e,t){var n,r=this;return Object.keys(this._sourceBuffer).forEach(function(i){n=r.remove(i,e,t)}),n||Promise.resolve()}},{key:"clearAllBuffer",value:function(){var e,t=this;return Object.keys(this._sourceBuffer).forEach(function(n){var r=t._sourceBuffer[n];e=t.remove(n,0,fe.end(fe.get(r)))}),e}},{key:"clearOpQueues",value:function(e,t){var n;this._logger.debug("MSE clearOpQueue START");var r=this._queue[e];if(t&&r)this._queue[e]=[];else if(r&&r[e]&&!(r.length<5)){var i=[];r.forEach(function(e){e.context&&e.context.isinit&&i.push(e)}),this._queue[e]=r.slice(0,2),i.length>0&&(n=this._queue[e]).push.apply(n,i)}}},{key:"endOfStream",value:function(e){var t=this;return this.mediaSource&&"open"===this.mediaSource.readyState?this._enqueueBlockingOp(function(){var n=t.mediaSource;n&&"open"===n.readyState&&(t._logger.debug("MSE endOfStream START"),e?n.endOfStream(e):n.endOfStream())},"endOfStream"):Promise.resolve()}},{key:"setLiveSeekableRange",value:function(e,t){var n=this.mediaSource;e<0||t<e||null===n||void 0===n||!n.setLiveSeekableRange||"open"!==n.readyState||n.setLiveSeekableRange(e,t)}},{key:"getSourceBuffer",value:function(e){return this._sourceBuffer[e]}},{key:"buffered",value:function(e){return fe.get(this._sourceBuffer[e])}},{key:"bufferStart",value:function(e){return fe.start(this.buffered(e))}},{key:"bufferEnd",value:function(e){return fe.end(this.buffered(e))}},{key:"_enqueueOp",value:function(e,t,n,r,i){var o=this;if(!this.mediaSource)return Promise.resolve();var a=this._queue[e]=this._queue[e]||[],s={exec:t,promise:Se(),opName:n,context:r};return i?(a.splice(0,0,s),this._mseFullFlag[e]=!1,this._startQueue(e)):a.push(s),this.isOpened||this.isEnded?1===a.length&&this._startQueue(e):this._openPromise.then(function(){1===a.length&&o._startQueue(e)}),s.promise}},{key:"_enqueueBlockingOp",value:function(){var e=U($().mark(function e(t,n,r){var i,o,a=this;return $().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(this.mediaSource){e.next=2;break}return e.abrupt("return",Promise.resolve());case 2:if(i=Object.keys(this._sourceBuffer),i.length){e.next=5;break}return e.abrupt("return",t());case 5:return o=[],i.forEach(function(e){var t=a._queue[e],i=Se();o.push(i),t.push({exec:function(){i.resolve()},promise:i,opName:n,context:r}),1===t.length&&a._startQueue(e)}),e.abrupt("return",Promise.all(o).then(function(){try{return t()}finally{i.forEach(function(e){var t=a._queue[e],n=a._sourceBuffer[e];null===t||void 0===t||t.shift(),n&&n.updating||a._startQueue(e)})}}));case 8:case"end":return e.stop()}},e,this)}));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"_startQueue",value:function(e){var t=this._queue[e];if(t){var n=t[0];if(n&&!this._mseFullFlag[e])try{n.exec()}catch(B){var r,i;if(B&&B.message&&B.message.indexOf("SourceBuffer is full")>=0)this._mseFullFlag[e]=!0,n.context&&"object"===j(n.context)&&(n.context.isFull=!0),this._logger.error("[MSE error],  context,",n.context," ,name,",n.opName,",err,SourceBuffer is full"),null===n||void 0===n||null===(r=n.promise)||void 0===r||r.reject(new ve(ge.MEDIA,ge.SUB_TYPES.MSE_FULL,B));else this._logger.error(B),null===n||void 0===n||null===(i=n.promise)||void 0===i||i.reject(B.constructor===ve?B:new ve(ge.MEDIA,ge.SUB_TYPES.MSE_OTHER,B)),t.shift(),this._startQueue(e)}}}},{key:"setTimeoffset",value:function(e,t,n){var r=this;return this._enqueueOp(e,function(){t<0&&(t+=.001),r._sourceBuffer[e].timestampOffset=t,r._onSBUpdateEnd(e)},"setTimeoffset",n)}},{key:"abort",value:function(e,t){var n=this;return this.isOpened?this._enqueueOp(e,function(){n._sourceBuffer[e].abort(),n._onSBUpdateEnd(e)},"abort",t):Promise.resolve()}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'video/mp4; codecs="avc1.42E01E,mp4a.40.2"',t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=ke(t);if(!n)return!1;try{return n.isTypeSupported(e)}catch(B){return this._logger.error(e,B),!1}}},{key:"isMMSOnly",value:function(){return"undefined"!==typeof ManagedMediaSource&&"undefined"===typeof MediaSource}},{key:"getDefaultConfig",value:function(){return{openLog:!1,preferMMS:!1}}}]),e}();G(De,"VIDEO","video"),G(De,"AUDIO","audio");var Ne={ERROR:"error",TTFB:"core.ttfb",LOAD_START:"core.loadstart",LOAD_RESPONSE_HEADERS:"core.loadresponseheaders",LOAD_COMPLETE:"core.loadcomplete",LOAD_RETRY:"core.loadretry",SOURCEBUFFER_CREATED:"core.sourcebuffercreated",MEDIASOURCE_OPENED:"core.mediasourceopened",ANALYZE_DURATION_EXCEEDED:"core.analyzedurationexceeded",APPEND_BUFFER:"core.appendbuffer",REMOVE_BUFFER:"core.removebuffer",BUFFEREOS:"core.buffereos",KEYFRAME:"core.keyframe",CHASEFRAME:"core.chaseframe",METADATA_PARSED:"core.metadataparsed",SEI:"core.sei",SEI_IN_TIME:"core.seiintime",FLV_SCRIPT_DATA:"core.flvscriptdata",LOWDECODE:"core.lowdecode",SWITCH_URL_SUCCESS:"core.switchurlsuccess",SWITCH_URL_FAILED:"core.switchurlfailed",SPEED:"core.speed",HLS_MANIFEST_LOADED:"core.hlsmanifestloaded",HLS_LEVEL_LOADED:"core.hlslevelloaded",DEMUXED_TRACK:"core.demuxedtrack",STREAM_EXCEPTION:"core.streamexception",LARGE_AV_FIRST_FRAME_GAP_DETECT:"LARGE_AV_FIRST_FRAME_GAP_DETECT",LARGE_VIDEO_DTS_GAP_DETECT:"LARGE_VIDEO_DTS_GAP_DETECT",LARGE_AUDIO_DTS_GAP_DETECT:"LARGE_AUDIO_DTS_GAP_DETECT",AUDIO_GAP_DETECT:"AUDIO_GAP_DETECT",AUDIO_OVERLAP_DETECT:"AUDIO_OVERLAP_DETECT",MAX_DTS_DELTA_WITH_NEXT_SEGMENT_DETECT:"MAX_DTS_DELTA_WITH_NEXT_SEGMENT_DETECT",REAL_TIME_SPEED:"real_time_speed"},Re=(n(20116),n(24389)),Le=n.n(Re);n(79577),n(41549),n(49797),n(49631),n(35623);function Be(e){return e&&!e.paused&&!e.ended&&0!==e.playbackRate&&0!==e.readyState}function Pe(e){if(!e)return{};if("function"===typeof e.getVideoPlaybackQuality){var t=e.getVideoPlaybackQuality();return{droppedVideoFrames:t.droppedVideoFrames||t.corruptedVideoFrames,totalVideoFrames:t.totalVideoFrames,creationTime:t.creationTime}}return{droppedVideoFrames:e.webkitDroppedFrameCount,totalVideoFrames:e.webkitDecodedFrameCount,creationTime:performance.now()}}function Fe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t=t.filter(Boolean),t.length<2)return t[0];var r=new Uint8Array(t.reduce(function(e,t){return e+t.byteLength},0)),i=0;return t.forEach(function(e){r.set(e,i),i+=e.byteLength}),r}function $e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise(function(t){return setTimeout(t,e)})}n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698);var je=function(){function e(t){var n=this;Q(this,e),G(this,"_seiSet",new Set),this.emitter=t,t.on(Ne.SEI,function(e){e&&n._seiSet.add(e)})}return W(e,[{key:"throw",value:function(e,t){var n=this;if(null!==e&&void 0!==e&&this._seiSet.size){var r=e-.2,i=e+.2,o=[];this._seiSet.forEach(function(e){e.time>=r&&e.time<=i&&o.push(e)}),o.forEach(function(e){n._seiSet.delete(e),n.emitter.emit(Ne.SEI_IN_TIME,e)}),t&&this._seiSet.forEach(function(t){t.time<e-5&&n._seiSet.delete(t)})}}},{key:"reset",value:function(){this._seiSet.clear()}}]),e}(),He=function(){function e(){Q(this,e),G(this,"_prevCurrentTime",0)}return W(e,[{key:"do",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(e){var i=e.currentTime,o=0;if(this._prevCurrentTime===i){var a=fe.info(fe.get(e),i);if(!a.buffers.length)return;n&&a.nextStart||a.nextStart&&a.nextStart-i<t?o=a.nextStart+.1:a.end&&a.end-i>r&&!e.seeking&&(o=i+.1)}this._prevCurrentTime=i,o&&i!==o&&(e.currentTime=o)}}}]),e}(),Ue=n(66750),Qe=n.n(Ue),ze=function(){function e(t){Q(this,e),G(this,"encodeType",""),G(this,"audioCodec",""),G(this,"videoCodec",""),G(this,"domain",""),G(this,"fps",0),G(this,"bitrate",0),G(this,"width",0),G(this,"height",0),G(this,"samplerate",0),G(this,"channelCount",0),G(this,"gop",0),G(this,"_bitsAccumulateSize",0),G(this,"_bitsAccumulateDuration",0),G(this,"_startGopId",-1),this._timescale=t}return W(e,[{key:"getStats",value:function(){return{encodeType:this.encodeType,audioCodec:this.audioCodec,videoCodec:this.videoCodec,domain:this.domain,fps:this.fps,bitrate:this.bitrate,width:this.width,height:this.height,samplerate:this.samplerate,channelCount:this.channelCount,gop:this.gop}}},{key:"setEncodeType",value:function(e){this.encodeType=e}},{key:"setFpsFromScriptData",value:function(e){var t,n=e.data,r=null===n||void 0===n||null===(t=n.onMetaData)||void 0===t?void 0:t.framerate;r&&r>0&&r<100&&(this.fps=r)}},{key:"setVideoMeta",value:function(e){if(this.width=e.width,this.height=e.height,this.videoCodec=e.codec,this.encodeType=e.codecType,e.fpsNum&&e.fpsDen){var t=e.fpsNum/e.fpsDen;t>0&&t<100&&(this.fps=t)}}},{key:"setAudioMeta",value:function(e){this.audioCodec=e.codec,this.samplerate=e.sampleRate,this.channelCount=e.channelCount}},{key:"setDomain",value:function(e){this.domain=e.split("/").slice(2,3)[0]}},{key:"updateBitrate",value:function(e){var t=this;if((!this.fps||this.fps>=100)&&e.length){var n=e.reduce(function(e,t){return e+t.duration},0)/e.length;this.fps=Math.round(this._timescale/n)}e.forEach(function(e){-1===t._startGopId&&(t._startGopId=e.gopId),e.gopId===t._startGopId&&t.gop++,t._bitsAccumulateDuration+=e.duration/(t._timescale/1e3),t._bitsAccumulateSize+=e.units.reduce(function(e,t){return e+t.length},0),t._bitsAccumulateDuration>=1e3&&(t.bitrate=8*t._bitsAccumulateSize,t._bitsAccumulateDuration=0,t._bitsAccumulateSize=0)})}}]),e}(),We=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;Q(this,e),G(this,"_core",null),G(this,"_samples",[]),this._core=t,this._timescale=n,this._stats=new ze(n),this._bindEvents()}return W(e,[{key:"getStats",value:function(){var e,t,n,r,i,o,a,s,l,c,u,d=(null===(e=this._core)||void 0===e?void 0:e.media)||{},h=d.currentTime,f=void 0===h?0:h,p=d.decodeFps,g=void 0===p?0:p;return F(F({},this._stats.getStats()),{},{downloadSpeed:(null===(t=this._core)||void 0===t||null===(n=t.speedInfo)||void 0===n?void 0:n.call(t).speed)||0,avgSpeed:(null===(r=this._core)||void 0===r||null===(i=r.speedInfo)||void 0===i?void 0:i.call(r).avgSpeed)||0,totalReceivedByte:(null===(o=this._core)||void 0===o||null===(a=o.speedInfo)||void 0===a?void 0:a.call(o).totalSize)||0,totalReceivedCost:(null===(s=this._core)||void 0===s||null===(l=s.speedInfo)||void 0===l?void 0:l.call(s).totalCost)||0,currentTime:f,bufferEnd:(null===(c=this._core)||void 0===c||null===(u=c.bufferInfo())||void 0===u?void 0:u.remaining)||0,decodeFps:g})}},{key:"_bindEvents",value:function(){var e=this;this._core.on(Ne.DEMUXED_TRACK,function(t){var n=t.videoTrack;return e._stats.updateBitrate(n.samples)}),this._core.on(Ne.FLV_SCRIPT_DATA,function(t){e._stats.setFpsFromScriptData(t)}),this._core.on(Ne.METADATA_PARSED,function(t){"video"===t.type?e._stats.setVideoMeta(t.track):e._stats.setAudioMeta(t.track)}),this._core.on(Ne.TTFB,function(t){e._stats.setDomain(t.responseUrl)})}},{key:"reset",value:function(){this._samples=[],this._stats=new ze(this._timescale)}}]),e}();function Ge(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function Ve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gt(r.key),r)}}function Ye(e,t,n){return t&&Ke(e.prototype,t),n&&Ke(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qe(e,t,n){return t=gt(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xe(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ze(e,t)}function Je(e){return Je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Je(e)}function Ze(e,t){return Ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ze(e,t)}function et(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nt(e,t){if(t&&("object"===typeof t||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tt(e)}function rt(e){var t=et();return function(){var n,r=Je(e);if(t){var i=Je(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return nt(this,n)}}function it(e,t){return st(e)||Ge(e,t)||ct(e,t)||ht()}function ot(e){return at(e)||lt(e)||ct(e)||dt()}function at(e){if(Array.isArray(e))return ut(e)}function st(e){if(Array.isArray(e))return e}function lt(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ct(e,t){if(e){if("string"===typeof e)return ut(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ut(e,t):void 0}}function ut(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ht(){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 ft(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ct(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function pt(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function gt(e){var t=pt(e,"string");return"symbol"===typeof t?t:String(t)}var mt=function(){function e(t){Ve(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]")}return Ye(e,[{key:"warn",value:function(){var t;if(!e.disabled){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=console).warn.apply(t,[this._prefix].concat(r))}}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();qe(mt,"disabled",!0);var vt={VIDEO:"video",AUDIO:"audio",METADATA:"metadata"},At={AV1:"av1",AVC:"avc",HEVC:"hevc"},bt={AAC:"aac",G711PCMA:"g7110a",G711PCMU:"g7110m",OPUS:"opus",MP3:"mp3"},yt={LARGE_AV_SHIFT:"LARGE_AV_SHIFT",LARGE_VIDEO_GAP:"LARGE_VIDEO_GAP",LARGE_VIDEO_GAP_BETWEEN_CHUNK:"LARGE_VIDEO_GAP_BETWEEN_CHUNK",LARGE_AUDIO_GAP:"LARGE_AUDIO_GAP",AUDIO_FILLED:"AUDIO_FILLED",AUDIO_DROPPED:"AUDIO_DROPPED"},wt=Ye(function e(t,n,r,i){Ve(this,e),qe(this,"duration",1024),qe(this,"flag",{dependsOn:2,isNonSyncSample:0}),qe(this,"keyframe",!0),this.originPts=this.pts=this.dts=t,this.data=n,this.size=n.byteLength,this.sampleOffset=i,r&&(this.duration=r)}),_t="undefined"!==typeof window,xt=_t&&navigator.userAgent.toLocaleLowerCase(),Et=_t&&/^((?!chrome|android).)*safari/.test(xt),St=_t&&xt.includes("firefox"),Ct=_t&&xt.includes("android"),Tt=function(){function e(){Ve(this,e)}return Ye(e,null,[{key:"getRateIndexByRate",value:function(t){return e.FREQ.indexOf(t)}},{key:"parseADTS",value:function(t,n){var r=t.length,i=0;while(i+2<r){if(255===t[i]&&240===(246&t[i+1]))break;i++}if(!(i>=r)){var o=i,a=[],s=(60&t[i+2])>>>2,l=e.FREQ[s];if(!l)throw new Error("Invalid sampling index: ".concat(s));var c,u,d=((192&t[i+2])>>>6)+1,h=(1&t[i+2])<<2|(192&t[i+3])>>>6,f=e._getConfig(s,h,d),p=f.config,g=f.codec,m=0,v=e.getFrameDuration(l);while(i+7<r)if(255===t[i]&&240===(246&t[i+1])){if(u=(3&t[i+3])<<11|t[i+4]<<3|(224&t[i+5])>>5,!u||r-i<u)break;c=2*(1&~t[i+1]),a.push({pts:n+m*v,data:t.subarray(i+7+c,i+u)}),m++,i+=u}else i++;return{skip:o,remaining:i>=r?void 0:t.subarray(i),frames:a,samplingFrequencyIndex:s,sampleRate:l,objectType:d,channelCount:h,codec:g,config:p,originCodec:"mp4a.40.".concat(d)}}}},{key:"parseAudioSpecificConfig",value:function(t){if(t.length){var n=t[0]>>>3,r=(7&t[0])<<1|t[1]>>>7,i=(120&t[1])>>>3,o=e.FREQ[r];if(o){var a=e._getConfig(r,i,n),s=a.config,l=a.codec;return{samplingFrequencyIndex:r,sampleRate:o,objectType:n,channelCount:i,config:s,codec:l,originCodec:"mp4a.40.".concat(n)}}}}},{key:"getFrameDuration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4;return 1024*t/e}},{key:"_getConfig",value:function(e,t,n){var r,i,o=[];return St?e>=6?(r=5,i=e-3):(r=2,i=e):Ct?(r=2,i=e):(r=5,i=e,e>=6?i=e-3:1===t&&(r=2,i=e)),o[0]=r<<3,o[0]|=(14&e)>>1,o[1]=(1&e)<<7,o[1]|=t<<3,5===r&&(o[1]|=(14&i)>>1,o[2]=(1&i)<<7,o[2]|=8,o[3]=0),{config:o,codec:"mp4a.40.".concat(r)}}},{key:"getSilentFrame",value:function(e,t){switch(e){case"mp4a.40.2":if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}}}]),e}();qe(Tt,"FREQ",[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350]);var kt=45e3,Ot=3,Mt=9e4,It=45e4,Dt=9e4,Nt=45e3,Rt=45e4,Lt=function(){function e(t,n,r,i){Ve(this,e),this.videoTrack=t,this.audioTrack=n,this.metadataTrack=r,this._baseDts=-1,this._baseVideoDts=-1,this._baseAudioDts=-1,this._baseDtsInited=!1,this._audioNextPts=void 0,this._videoNextDts=void 0,this._audioTimestampBreak=!1,this._videoTimestampBreak=!1,this._lastAudioExceptionGapDot=0,this._lastAudioExceptionOverlapDot=0,this._lastAudioExceptionLargeGapDot=0,this._needForceFixLargeGap=null===i||void 0===i?void 0:i.forceFixLargeGap,this._largeGapThreshold=(null===i||void 0===i?void 0:i.largeGapThreshold)||Rt}return Ye(e,[{key:"fix",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];t=Math.round(9e4*t);var i=this.videoTrack,o=this.audioTrack,a=i.samples,s=o.samples;if(a.length||s.length){var l=a[0],c=s[0],u=0;if(a.length&&s.length&&(u=l.dts-c.pts),this._baseDtsInited||this._calculateBaseDts(this.audioTrack,this.videoTrack),n&&(this._calculateBaseDts(this.audioTrack,this.videoTrack),this._baseDts-=t,this._baseAudioDts-=t,this._baseVideoDts-=t),!r){this._videoNextDts=u>0?t+u:t,this._audioNextPts=u>0?t:t-u,this._needForceFixLargeGap&&(this._videoNextDts=0,this._audioNextPts=0);var d=l?l.dts-this._baseDts-this._videoNextDts:0,h=c?c.pts-this._baseDts-this._audioNextPts:0;Math.abs(d||h)>Dt&&(this._calculateBaseDts(this.audioTrack,this.videoTrack),this._baseDts-=t)}if(this._resetBaseDtsWhenStreamBreaked(),this._fixAudio(o),this._fixVideo(i),this.metadataTrack.exist()){var f=this.metadataTrack.timescale;this.metadataTrack.seiSamples.forEach(function(t){t.pts=t.originPts-e._baseDts,t.time=Math.max(0,t.pts)/f})}i.samples.length&&(i.baseMediaDecodeTime=i.samples[0].dts),o.samples.length&&(o.baseMediaDecodeTime=o.samples[0].pts*o.timescale/9e4)}}},{key:"_fixVideo",value:function(e){var t=this,n=e.samples;if(n.length){if(n.forEach(function(e){e.dts-=t._needForceFixLargeGap?t._baseVideoDts:t._baseDts,e.pts-=t._needForceFixLargeGap?t._baseVideoDts:t._baseDts}),void 0===this._videoNextDts){var r=n[0];this._videoNextDts=r.dts}var i,o,a=n.length,s=0,l=n[0],c=n[1],u=this._videoNextDts-l.dts;if(Math.abs(u)>Nt)if(e.warnings.push({type:yt.LARGE_VIDEO_GAP_BETWEEN_CHUNK,nextDts:this._videoNextDts/90,firstSampleDts:l.dts/90,nextSampleDts:((null===(i=n[1])||void 0===i?void 0:i.dts)||0)/90,sampleDuration:u/90}),l.dts+=u,l.pts+=u,c&&Math.abs(c.dts-l.dts)>Dt)this._videoTimestampBreak=!0,n.forEach(function(e,t){0!==t&&(e.dts+=u,e.pts+=u)});else for(var d=1;d<=a-1;d++){var h,f=null===(h=n[d])||void 0===h?void 0:h.dts,p=n[d-1].dts;f&&f-p<0&&(n[d].dts+=u,n[d].pts+=u)}if(e.fpsNum&&e.fpsDen&&(o=e.timescale*(e.fpsDen/e.fpsNum)),o<900&&(o=0),!o){var g=e.samples[0],m=e.samples[1];o=1===a?9e3:Math.floor(m.dts-g.dts)}for(var v=0;v<a;v++){var A=n[v].dts,b=n[v+1];if(s=v<a-1?b.dts-A:n[v-1]?Math.min(A-n[v-1].dts,o):o,s>Dt||s<0){this._videoTimestampBreak=!0,s=this._audioTimestampBreak?o:Math.max(s,2700);var y=this._audioNextPts||0;b&&b.dts>y&&(s=o),e.warnings.push({type:yt.LARGE_VIDEO_GAP,time:A/e.timescale,dts:A,originDts:n[v].originDts,nextDts:this._videoNextDts,sampleDuration:s,refSampleDuration:o})}n[v].duration=s,this._videoNextDts+=s}}}},{key:"_fixAudio",value:function(e){var t=this,n=e.samples;if(n.length)if(e.codecType!==bt.MP3)n.forEach(function(e){e.pts-=t._needForceFixLargeGap?t._baseAudioDts:t._baseDts,e.dts=e.pts}),this._doFixAudioInternal(e,n,9e4);else{this.lastAudioSample&&n.unshift(this.lastAudioSample);for(var r=0;r<n.length;r++){var i=n[r];if(!n[r+1])break;i.duration=n[r+1].pts-i.pts,i.pts-=this._baseDts,i.dts=i.pts}this.lastAudioSample=n.pop()}}},{key:"_calculateBaseDts",value:function(e,t){var n=e.samples,r=t.samples;if(!n.length&&!r.length)return!1;var i=1/0,o=1/0;n.length&&(e.baseDts=i=n[0].pts,this._baseAudioDts=i),r.length&&(t.baseDts=o=r[0].dts,this._baseVideoDts=o),this._baseDts=Math.min(i,o);var a=o-i,s=!1;return Number.isFinite(a)&&Math.abs(a)>kt&&t.warnings.push({type:yt.LARGE_AV_SHIFT,videoBaseDts:o,audioBasePts:i,baseDts:this._baseDts,delta:a}),Number.isFinite(a)&&Math.abs(a)>this._largeGapThreshold*Mt&&(s=!0),this._baseDtsInited||(s&&this._needForceFixLargeGap?this._needForceFixLargeGap=!0:this._needForceFixLargeGap=!1),this._baseDtsInited=!0,!0}},{key:"_resetBaseDtsWhenStreamBreaked",value:function(){if(this._baseDtsInited&&this._videoTimestampBreak&&this._audioTimestampBreak){var e=this._calculateBaseDts(this.audioTrack,this.videoTrack);if(!e)return;this._baseDts-=Math.min(this._audioNextPts,this._videoNextDts),this._audioLastSample=null,this._videoLastSample=null,this._videoTimestampBreak=!1,this._audioTimestampBreak=!1}}},{key:"_doFixAudioInternal",value:function(e,t,n){e.sampleDuration||(e.sampleDuration=Tt.getFrameDuration(e.timescale,n));var r=e.sampleDuration;if(void 0===this._audioNextPts){var i=t[0];this._audioNextPts=i.pts}for(var o=0;o<t.length;o++){var a=this._audioNextPts,s=t[o],l=s.pts-a;if(!this._audioTimestampBreak&&l>=Ot*r&&l<=Mt&&!Et){var c=Tt.getSilentFrame(e.codec,e.channelCount)||t[0].data.subarray(),u=Math.floor(l/r);Math.abs(s.pts-this._lastAudioExceptionGapDot)>It&&(this._lastAudioExceptionGapDot=s.pts),e.warnings.push({type:yt.AUDIO_FILLED,pts:s.pts/90,originPts:s.originPts,count:u,nextPts:a/90,refSampleDuration:r});for(var d=0;d<u;d++){var h=new wt(Math.floor(a),c);h.originPts=Math.floor(this._baseDts+a),t.splice(o,0,h),this._audioNextPts+=r,o++}o--}else l<=-Ot*r&&l>=-1*Mt?(Math.abs(s.pts-this._lastAudioExceptionOverlapDot)>It&&(this._lastAudioExceptionOverlapDot=s.pts,e.warnings.push({type:yt.AUDIO_DROPPED,pts:s.pts/90,originPts:s.originPts,nextPts:a/90,refSampleDuration:r})),t.splice(o,1),o--):(Math.abs(l)>=Mt&&(this._audioTimestampBreak=!0,Math.abs(s.pts-this._lastAudioExceptionLargeGapDot)>It&&(this._lastAudioExceptionLargeGapDot=s.pts,e.warnings.push({type:yt.LARGE_AUDIO_GAP,time:s.pts/1e3,pts:s.pts/90,originPts:s.originPts,nextPts:a/90,sampleDuration:l,refSampleDuration:r}))),s.dts=s.pts=a,this._audioNextPts+=r)}}}]),e}();function Bt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.filter(Boolean);var r=new Uint8Array(t.reduce(function(e,t){return e+t.byteLength},0)),i=0;return t.forEach(function(e){r.set(e,i),i+=e.byteLength}),r}var Pt=Math.pow(2,32);function Ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(e[t]<<8)+(e[t+1]||0)}function $t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(e[t]<<16)+(e[t+1]<<8)+(e[t+2]||0)}function jt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(e[t]<<24>>>0)+(e[t+1]<<16)+(e[t+2]<<8)+(e[t+3]||0)}function Ht(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return jt(e,t)*Pt+jt(e,t+4)}function Ut(e){for(var t,n="avc1.",r=0;r<3;r++)t=e[r].toString(16),t.length<2&&(t="0".concat(t)),n+=t;return n}function Qt(e){if(!Array.isArray(e)){for(var t=[],n="",r=0;r<e.length;r++)r%2&&(n=e[r-1]+e[r],t.push(parseInt(n,16)),n="");return t}return e.map(function(e){return parseInt(e,16)})}function zt(e,t){return Number(e+"."+t)}function Wt(e){if(e.length<5)return 0;var t=Math.hypot(e[0],e[3]),n=Math.hypot(e[1],e[4]);return 0===t||0===n?0:180*Math.atan2(e[1]/n,e[0]/t)/Math.PI}var Gt=function(){function e(){Ve(this,e)}return Ye(e,null,[{key:"parseAnnexB",value:function(e){var t=e.byteLength-1,n=0;do{if(0!==e[t])break;n++,t--}while(t>0);n>=3&&(e=e.subarray(0,t+1));var r=e.length,i=2,o=0;while(null!==e[i]&&void 0!==e[i]&&1!==e[i])i++;if(i++,o=i+2,o>=r)return[];var a=[];while(o<r)switch(e[o]){case 0:if(0!==e[o-1]){o+=2;break}if(0!==e[o-2]){o++;break}if(o<r-1&&1!==e[o+1]){o++;break}i!==o-2&&a.push(e.subarray(i,o-2));do{o++}while(1!==e[o]&&o<r);i=o+1,o=i+2;break;case 1:if(0!==e[o-1]||0!==e[o-2]){o+=3;break}i!==o-2&&a.push(e.subarray(i,o-2)),i=o+1,o=i+2;break;default:o+=3;break}return i<r&&a.push(e.subarray(i)),a}},{key:"parseAvcC",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;if(!(e.length<4)){var n,r=e.length,i=[],o=0;while(o+t<r)if(n=jt(e,o),3===t&&(n>>>=8),o+=t,n){if(o+n>r)break;i.push(e.subarray(o,o+n)),o+=n}return i}}},{key:"parseSEI",value:function(e,t){var n=e.length,r=t?2:1,i=0,o=0,a="";while(255===e[r])i+=255,r++;i+=e[r++];while(255===e[r])o+=255,r++;if(o+=e[r++],5===i&&n>r+16)for(var s=0;s<16;s++)a+=e[r].toString(16),r++;return{payload:e.subarray(r,r+o),type:i,size:o,uuid:a}}},{key:"removeEPB",value:function(e){var t=e.byteLength,n=[],r=1;while(r<t-2)0===e[r]&&0===e[r+1]&&3===e[r+2]?(n.push(r+2),r+=2):r++;if(!n.length)return e;var i=t-n.length,o=new Uint8Array(i),a=0;for(r=0;r<i;a++,r++)a===n[0]&&(a++,n.shift()),o[r]=e[a];return o}}]),e}(),Vt=function(){function e(t){if(Ve(this,e),qe(this,"_bytesAvailable",void 0),qe(this,"_bitsAvailable",0),qe(this,"_word",0),!t)throw new Error("ExpGolomb data params is required");this._data=t,this._bytesAvailable=t.byteLength,this._bytesAvailable&&this._loadWord()}return Ye(e,[{key:"bitsAvailable",get:function(){return this._bitsAvailable}},{key:"_loadWord",value:function(){var e=this._data.byteLength-this._bytesAvailable,t=Math.min(4,this._bytesAvailable);if(0===t)throw new Error("No bytes available");var n=new Uint8Array(4);n.set(this._data.subarray(e,e+t)),this._word=new DataView(n.buffer).getUint32(0),this._bitsAvailable=8*t,this._bytesAvailable-=t}},{key:"skipBits",value:function(e){if(this._bitsAvailable>e)this._word<<=e,this._bitsAvailable-=e;else{e-=this._bitsAvailable;var t=Math.floor(e/8);e-=8*t,this._bytesAvailable-=t,this._loadWord(),this._word<<=e,this._bitsAvailable-=e}}},{key:"readBits",value:function(e){if(e>32)throw new Error("Cannot read more than 32 bits");var t=Math.min(this._bitsAvailable,e),n=this._word>>>32-t;return this._bitsAvailable-=t,this._bitsAvailable>0?this._word<<=t:this._bytesAvailable>0&&this._loadWord(),t=e-t,t>0&&this._bitsAvailable?n<<t|this.readBits(t):n}},{key:"skipLZ",value:function(){var e;for(e=0;e<this._bitsAvailable;++e)if(0!==(this._word&2147483648>>>e))return this._word<<=e,this._bitsAvailable-=e,e;return this._loadWord(),e+this.skipLZ()}},{key:"skipUEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"readUEG",value:function(){var e=this.skipLZ();return this.readBits(e+1)-1}},{key:"readEG",value:function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}},{key:"readBool",value:function(){return 1===this.readBits(1)}},{key:"readUByte",value:function(){return this.readBits(8)}},{key:"skipScalingList",value:function(e){for(var t,n=8,r=8,i=0;i<e;i++)0!==r&&(t=this.readEG(),r=(n+t+256)%256),n=0===r?n:r}}]),e}(),Kt=function(){function e(){Ve(this,e)}return Ye(e,null,[{key:"parseAVCDecoderConfigurationRecord",value:function(t){if(!(t.length<7)){for(var n,r,i=1+(3&t[4]),o=[],a=[],s=6,l=31&t[5],c=0;c<l;c++)if(r=t[s]<<8|t[s+1],s+=2,r){var u=t.subarray(s,s+r);s+=r,o.push(u),n||(n=e.parseSPS(Gt.removeEPB(u)))}var d,h=t[s];s++;for(var f=0;f<h;f++)d=t[s]<<8|t[s+1],s+=2,d&&(a.push(t.subarray(s,s+d)),s+=d);return{sps:n,spsArr:o,ppsArr:a,nalUnitSize:i}}}},{key:"parseSPS",value:function(e){var t=new Vt(e);t.readUByte();var n=t.readUByte(),r=t.readUByte(),i=t.readUByte();t.skipUEG();var o=420;if(100===n||110===n||122===n||244===n||44===n||83===n||86===n||118===n||128===n||138===n||144===n){var a=t.readUEG();if(a<=3&&(o=[0,420,422,444][a]),3===a&&t.skipBits(1),t.skipUEG(),t.skipUEG(),t.skipBits(1),t.readBool())for(var s=3!==a?8:12,l=0;l<s;l++)t.readBool()&&(l<6?t.skipScalingList(16):t.skipScalingList(64))}t.skipUEG();var c=t.readUEG();if(0===c)t.readUEG();else if(1===c){t.skipBits(1),t.skipUEG(),t.skipUEG();for(var u=t.readUEG(),d=0;d<u;d++)t.skipUEG()}t.skipUEG(),t.skipBits(1);var h=t.readUEG(),f=t.readUEG(),p=t.readBits(1);0===p&&t.skipBits(1),t.skipBits(1);var g,m,v,A,b,y=0,w=0,_=0,x=0;if(t.readBool()&&(y=t.readUEG(),w=t.readUEG(),_=t.readUEG(),x=t.readUEG()),t.readBool()){if(t.readBool()){var E=t.readUByte();switch(E){case 1:g=[1,1];break;case 2:g=[12,11];break;case 3:g=[10,11];break;case 4:g=[16,11];break;case 5:g=[40,33];break;case 6:g=[24,11];break;case 7:g=[20,11];break;case 8:g=[32,11];break;case 9:g=[80,33];break;case 10:g=[18,11];break;case 11:g=[15,11];break;case 12:g=[64,33];break;case 13:g=[160,99];break;case 14:g=[4,3];break;case 15:g=[3,2];break;case 16:g=[2,1];break;case 255:g=[t.readUByte()<<8|t.readUByte(),t.readUByte()<<8|t.readUByte()];break}}if(t.readBool()&&t.readBool(),t.readBool()&&(t.readBits(4),t.readBool()&&t.readBits(24)),t.readBool()&&(t.readUEG(),t.readUEG()),t.readBool()){var S=t.readBits(32),C=t.readBits(32);m=t.readBool(),v=C,A=2*S,b=v/A}}return{codec:Ut(e.subarray(1,4)),profileIdc:n,profileCompatibility:r,levelIdc:i,chromaFormat:o,width:Math.ceil(16*(h+1)-2*(y+w)),height:(2-p)*(f+1)*16-(p?2:4)*(_+x),sarRatio:g,fpsNum:v,fpsDen:A,fps:b,fixedFrame:m}}}]),e}(),Yt=function(){function e(){Ve(this,e)}return Ye(e,null,[{key:"parseHEVCDecoderConfigurationRecord",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(t.length<23)){n=n||{};for(var r,i,o,a,s,l=1+(3&t[21]),c=[],u=[],d=[],h=23,f=t[22],p=0;p<f;p++){o=63&t[h],a=t[h+1]<<8|t[h+2],h+=3;for(var g=0;g<a;g++)if(s=t[h]<<8|t[h+1],h+=2,s){switch(o){case 32:var m=t.subarray(h,h+s);r||(r=e.parseVPS(Gt.removeEPB(m),n)),d.push(m);break;case 33:var v=t.subarray(h,h+s);i||(i=e.parseSPS(Gt.removeEPB(v),n)),c.push(v);break;case 34:u.push(t.subarray(h,h+s));break}h+=s}}return{hvcC:n,sps:i,spsArr:c,ppsArr:u,vpsArr:d,nalUnitSize:l}}}},{key:"parseVPS",value:function(t,n){n=n||{};var r=new Vt(t);r.readUByte(),r.readUByte(),r.readBits(12);var i=r.readBits(3);return n.numTemporalLayers=Math.max(n.numTemporalLayers||0,i+1),r.readBits(17),e._parseProfileTierLevel(r,i,n),n}},{key:"parseSPS",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=n||{};var r=new Vt(t);r.readUByte(),r.readUByte(),r.readBits(4);var i=r.readBits(3);n.numTemporalLayers=Math.max(i+1,n.numTemporalLayers||0),n.temporalIdNested=r.readBits(1),e._parseProfileTierLevel(r,i,n),r.readUEG();var o=n.chromaFormatIdc=r.readUEG(),a=420;o<=3&&(a=[0,420,422,444][o]);var s=0;3===o&&(s=r.readBits(1));var l,c,u,d,h=r.readUEG(),f=r.readUEG(),p=r.readBits(1);if(1===p&&(l=r.readUEG(),c=r.readUEG(),u=r.readUEG(),d=r.readUEG()),n.bitDepthLumaMinus8=r.readUEG(),n.bitDepthChromaMinus8=r.readUEG(),1===p){var g=1!==o&&2!==o||0!==s?1:2,m=1===o&&0===s?2:1;h-=g*(c+l),f-=m*(d+u)}return{codec:"hev1.1.6.L93.B0",width:h,height:f,chromaFormat:a,hvcC:n}}},{key:"_parseProfileTierLevel",value:function(e,t,n){var r=n.generalTierFlag||0;n.generalProfileSpace=e.readBits(2),n.generalTierFlag=Math.max(e.readBits(1),r),n.generalProfileIdc=Math.max(e.readBits(5),n.generalProfileIdc||0),n.generalProfileCompatibilityFlags=e.readBits(32),n.generalConstraintIndicatorFlags=[e.readBits(8),e.readBits(8),e.readBits(8),e.readBits(8),e.readBits(8),e.readBits(8)];var i=e.readBits(8);r<n.generalTierFlag?n.generalLevelIdc=i:n.generalLevelIdc=Math.max(i,n.generalLevelIdc||0);var o=[],a=[];if(t>e.bitsAvailable)throw new Error("maxSubLayersMinus inavlid size ".concat(t));for(var s=0;s<t;s++)o[s]=e.readBits(1),a[s]=e.readBits(1);t>0&&e.readBits(2*(8-t));for(var l=0;l<t;l++)0!==o[l]&&(e.readBits(2),e.readBits(1),e.readBits(5),e.readBits(16),e.readBits(16),e.readBits(4),e.readBits(16),e.readBits(16),e.readBits(12)),0!==a[l]&&e.readBits(8)}}]),e}(),qt=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],Xt=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Jt=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Zt=[0,1,1,4],en=null,tn=function(){function e(){Ve(this,e)}return Ye(e,null,[{key:"isHeader",value:function(e,t){return t+1<e.length&&255===e[t]&&224===(224&e[t+1])&&0!==(6&e[t+1])}},{key:"appendFrame",value:function(t,n,r,i,o){if(!(r+24>n.length)){var a=e.parseHeader(n,r);if(a&&r+a.frameLength<=n.length){var s=9e4*a.samplesPerFrame/a.sampleRate,l=i+o*s,c={data:n.subarray(r,r+a.frameLength),pts:l,dts:l};return c.size=c.data.byteLength,t.config=[],t.channelCount=a.channelCount,t.sampleRate=a.sampleRate,St?t.codec="mp3":t.container="audio/mpeg",t.samples.push(c),{length:a.frameLength}}}}},{key:"parseHeader",value:function(e,t){var n=e[t+1]>>3&3,r=e[t+1]>>1&3,i=e[t+2]>>4&15,o=e[t+2]>>2&3;if(1!==n&&0!==i&&15!==i&&3!==o){var a=e[t+2]>>1&1,s=e[t+3]>>6,l=3===n?3-r:3===r?3:4,c=1e3*qt[14*l+i-1],u=3===n?0:2===n?1:2,d=Xt[3*u+o],h=3===s?1:2,f=Jt[n][r],p=Zt[r],g=8*f*p,m=Math.floor(f*c/d+a)*p;if(null===en){var v=navigator.userAgent||"",A=v.match(/Chrome\/(\d+)/i);en=A?parseInt(A[1]):0}var b=!!en&&en<=87;return b&&2===r&&c>=224e3&&0===s&&(e[t+3]=128|e[t+3]),{sampleRate:d,channelCount:h,frameLength:m,samplesPerFrame:g}}}}]),e}(),nn=function(){function e(){Ve(this,e),qe(this,"id",1),qe(this,"type",vt.VIDEO),qe(this,"codecType",At.AVC),qe(this,"pid",-1),qe(this,"hvcC",void 0),qe(this,"codec",""),qe(this,"timescale",0),qe(this,"formatTimescale",0),qe(this,"sequenceNumber",0),qe(this,"baseMediaDecodeTime",0),qe(this,"baseDts",0),qe(this,"duration",0),qe(this,"warnings",[]),qe(this,"samples",[]),qe(this,"pps",[]),qe(this,"sps",[]),qe(this,"vps",[]),qe(this,"fpsNum",0),qe(this,"fpsDen",0),qe(this,"sarRatio",[]),qe(this,"width",0),qe(this,"height",0),qe(this,"nalUnitSize",4),qe(this,"present",!1),qe(this,"isVideoEncryption",!1),qe(this,"isAudioEncryption",!1),qe(this,"isVideo",!0),qe(this,"lastKeyFrameDts",0),qe(this,"kid",null),qe(this,"pssh",null),qe(this,"ext",void 0)}return Ye(e,[{key:"reset",value:function(){this.sequenceNumber=this.width=this.height=this.fpsDen=this.fpsNum=this.duration=this.baseMediaDecodeTime=this.timescale=0,this.codec="",this.present=!1,this.pid=-1,this.pps=[],this.sps=[],this.vps=[],this.sarRatio=[],this.samples=[],this.warnings=[],this.hvcC=null}},{key:"firstDts",get:function(){return this.samples.length?this.samples[0].dts:null}},{key:"firstPts",get:function(){return this.samples.length?this.samples[0].pts:null}},{key:"samplesDuration",get:function(){if(this.samples.length>0){var e=this.samples[0],t=this.samples[this.samples.length-1];return t.dts-e.dts+t.duration}return 0}},{key:"exist",value:function(){return!!/av01/.test(this.codec)||!!(this.pps.length&&this.sps.length&&this.codec)}},{key:"hasSample",value:function(){return!!this.samples.length}},{key:"isEncryption",get:function(){return this.isVideoEncryption}}]),e}(),rn=function(){function e(){Ve(this,e),qe(this,"id",2),qe(this,"type",vt.AUDIO),qe(this,"codecType",bt.AAC),qe(this,"pid",-1),qe(this,"codec",""),qe(this,"container",""),qe(this,"sequenceNumber",0),qe(this,"sampleDuration",0),qe(this,"timescale",0),qe(this,"formatTimescale",0),qe(this,"baseMediaDecodeTime",0),qe(this,"duration",0),qe(this,"warnings",[]),qe(this,"samples",[]),qe(this,"baseDts",0),qe(this,"sampleSize",16),qe(this,"sampleRate",0),qe(this,"channelCount",0),qe(this,"objectType",0),qe(this,"sampleRateIndex",0),qe(this,"config",[]),qe(this,"present",!1),qe(this,"isVideoEncryption",!1),qe(this,"isAudioEncryption",!1),qe(this,"kid",null),qe(this,"ext",void 0)}return Ye(e,[{key:"reset",value:function(){this.sequenceNumber=0,this.timescale=0,this.sampleDuration=0,this.sampleRate=0,this.channelCount=0,this.baseMediaDecodeTime=0,this.present=!1,this.pid=-1,this.codec="",this.samples=[],this.config=[],this.warnings=[]}},{key:"exist",value:function(){return!(!this.sampleRate||!this.channelCount||!this.codec&&!this.container||this.codecType!==bt.AAC&&this.codecType!==bt.G711PCMA&&this.codecType!==bt.G711PCMU&&this.codecType!==bt.OPUS&&this.codecType!==bt.MP3)}},{key:"hasSample",value:function(){return!!this.samples.length}},{key:"isEncryption",get:function(){return this.isAudioEncryption}},{key:"firstDts",get:function(){return this.samples.length?this.samples[0].dts:null}},{key:"firstPts",get:function(){return this.samples.length?this.samples[0].pts:null}},{key:"samplesDuration",get:function(){if(this.samples.length>0){var e=this.samples[0],t=this.samples[this.samples.length-1];return t.dts-e.dts+t.duration}return 0}}]),e}(),on=function(){function e(t,n,r){Ve(this,e),qe(this,"flag",{}),qe(this,"keyframe",!1),qe(this,"gopId",0),qe(this,"duration",0),qe(this,"size",0),qe(this,"units",[]),qe(this,"chromaFormat",420),this.originPts=this.pts=t,this.originDts=this.dts=n,r&&(this.units=r)}return Ye(e,[{key:"cts",get:function(){return this.pts-this.dts}},{key:"setToKeyframe",value:function(){this.keyframe=!0,this.flag.dependsOn=2,this.flag.isNonSyncSample=0}}]),e}(),an=Ye(function e(t,n){Ve(this,e),qe(this,"time",0),this.data=t,this.originPts=this.pts=n}),sn=function(e){Xe(n,e);var t=rt(n);function n(){return Ve(this,n),t.apply(this,arguments)}return Ye(n)}(an),ln=function(){function e(){Ve(this,e),qe(this,"id",3),qe(this,"type",vt.METADATA),qe(this,"timescale",0),qe(this,"flvScriptSamples",[]),qe(this,"seiSamples",[])}return Ye(e,[{key:"exist",value:function(){return!(!this.flvScriptSamples.length&&!this.seiSamples.length||!this.timescale)}},{key:"reset",value:function(){this.timescale=0,this.flvScriptSamples=[],this.seiSamples=[]}},{key:"hasSample",value:function(){return!(!this.flvScriptSamples.length&&!this.seiSamples.length)}}]),e}(),cn=new mt("TsDemuxer"),un=function(){function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve(this,e),qe(this,"_pmtId",-1),qe(this,"_remainingPacketData",null),qe(this,"_videoPesData",[]),qe(this,"_audioPesData",[]),qe(this,"_gopId",0),this.videoTrack=t||new nn,this.audioTrack=n||new rn,this.metadataTrack=r||new ln,this._fixer=new Lt(this.videoTrack,this.audioTrack,this.metadataTrack,i)}return Ye(e,[{key:"demux",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.audioTrack,i=this.videoTrack,o=this.metadataTrack;t&&(this._pmtId=-1,i.reset(),r.reset(),o.reset()),!n||t?(this._remainingPacketData=null,this._videoPesData=[],this._audioPesData=[]):(i.samples=[],r.samples=[],o.seiSamples=[],i.warnings=[],r.warnings=[],this._remainingPacketData&&(e=Bt(this._remainingPacketData,e),this._remainingPacketData=null));var a=e.length,s=a%188;s&&(this._remainingPacketData=e.subarray(a-s),a-=s);for(var l=i.pid,c=r.pid,u=0;u<a;u+=188){if(71!==e[u])throw new Error("TS packet did not start with 0x47");var d=!!(64&e[u+1]),h=((31&e[u+1])<<8)+e[u+2],f=(48&e[u+3])>>4,p=void 0;if(f>1){if(p=u+5+e[u+4],p===u+188)continue}else p=u+4;switch(h){case 0:d&&(p+=e[p]+1),this._pmtId=(31&e[p+10])<<8|e[p+11];break;case this._pmtId:d&&(p+=e[p]+1);var g=p+3+((15&e[p+1])<<8|e[p+2])-4,m=(15&e[p+10])<<8|e[p+11];p+=12+m;while(p<g){var v=(31&e[p+1])<<8|e[p+2];switch(e[p]){case 15:r.pid=c=v;break;case 3:case 4:-1===r.pid&&(r.pid=c=v,r.codecType=bt.MP3);break;case 27:if(-1!==l)break;i.codecType=At.AVC,i.pid=l=v;break;case 36:if(-1!==l)break;i.codecType=At.HEVC,i.pid=l=v;break;default:cn.warn("Unsupported stream. type: ".concat(e[p],", pid: ").concat(v))}p+=5+((15&e[p+3])<<8|e[p+4])}break;case l:d&&this._videoPesData.length&&this._parseVideoData(),this._videoPesData.push(e.subarray(p,u+188));break;case c:d&&this._audioPesData.length&&this._parseAudioData(),this._audioPesData.push(e.subarray(p,u+188));break;case 17:case 8191:break;default:cn.warn("Unknown pid: ".concat(h))}}return this._parseVideoData(),this._parseAudioData(),r.formatTimescale=i.formatTimescale=i.timescale=o.timescale=9e4,r.timescale=r.sampleRate||0,{videoTrack:i,audioTrack:r,metadataTrack:o}}},{key:"fix",value:function(e,t,n){return this._fixer.fix(e,t,n),{videoTrack:this.videoTrack,audioTrack:this.audioTrack,metadataTrack:this.metadataTrack}}},{key:"demuxAndFix",value:function(e,t,n,r){return this.demux(e,t,n),this.fix(r,t,n)}},{key:"_parseVideoData",value:function(){if(this._videoPesData.length){var t=e._parsePES(Bt.apply(void 0,ot(this._videoPesData)));if(t){var n=Gt.parseAnnexB(t.data);n?this._createVideoSample(n,t.pts,t.dts):cn.warn("Cannot parse avc units",t),this._videoPesData=[]}else cn.warn("Cannot parse video pes",this._videoPesData)}}},{key:"_createVideoSample",value:function(e,t,n){var r=this;if(e.length){var i=this.videoTrack,o=i.codecType===At.HEVC,a=new on(t,n);e.forEach(function(e){var n=o?e[0]>>>1&63:31&e[0];switch(n){case 5:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:if(!o&&5!==n||o&&5===n)break;a.setToKeyframe(),r._gopId++;break;case 6:case 39:case 40:if(!o&&6!==n||o&&6===n)break;return void r.metadataTrack.seiSamples.push(new sn(Gt.parseSEI(Gt.removeEPB(e),o),t));case 32:if(!o)break;if(!i.vps.length){var s=Yt.parseVPS(Gt.removeEPB(e),i.hvcC);i.hvcC=i.hvcC||s,i.vps=[e]}break;case 7:case 33:if(!o&&7!==n||o&&7===n)break;if(!i.sps.length){var l=Gt.removeEPB(e),c=o?Yt.parseSPS(l,i.hvcC):Kt.parseSPS(l);i.sps=[e],i.hvcC=i.hvcC||c.hvcC,i.codec=c.codec,i.width=c.width,i.height=c.height,i.sarRatio=c.sarRatio,i.fpsNum=c.fpsNum,i.fpsDen=c.fpsDen}break;case 8:case 34:if(!o&&8!==n||o&&8===n)break;i.pps.length||(i.pps=[e]);break;case 9:case 35:break;case 38:if(o){for(var u=!1,d=2;d<e.byteLength;d++)if(255===e[d]){u=!0;break}if(!u)return}break}a.units.push(e)}),a.gopId=this._gopId,this._pushVideoSample(i,a)}}},{key:"_pushVideoSample",value:function(e,t){if(t.units.length)if(null===t.pts||void 0===t.pts){cn.warn("Video sample no pts",t);var n=e.samples[e.samples.length-1];n?(t.pts=n.pts,t.dts=n.dts):cn.warn("Drop video sample",t)}else e.samples.push(t)}},{key:"_parseAudioData",value:function(){if(this._audioPesData.length){var t=e._parsePES(Bt.apply(void 0,ot(this._audioPesData)));if(t){switch(this.audioTrack.codecType){case bt.AAC:this._parseAacData(t);break;case bt.MP3:this._parseMPEG(t);break}this._audioPesData=[]}else cn.warn("Cannot parse audio pes",this._audioPesData)}}},{key:"_parseAacData",value:function(e){var t=this.audioTrack,n=e.pts;if(null===n||void 0===n){if(cn.warn("AAC pes not pts",t),!t.samples.length||!t.sampleRate)return;n=t.samples[t.samples.length-1].pts+Tt.getFrameDuration(t.sampleRate)}var r,i=Tt.parseADTS(e.data,n);i?(t.codec=i.codec,t.channelCount=i.channelCount,t.sampleRate=i.sampleRate,t.objectType=i.objectType,t.sampleRateIndex=i.samplingFrequencyIndex,t.config=i.config,(r=t.samples).push.apply(r,ot(i.frames.map(function(e){return new wt(e.pts,e.data)}))),i.skip&&cn.warn("Skip aac adts ".concat(i.skip," bits")),i.remaining&&cn.warn("Remaining aac adts ".concat(i.remaining," bits"))):cn.warn("Cannot parse aac adts",e)}},{key:"_parseMPEG",value:function(e){var t=e.data,n=t.length,r=0,i=0,o=e.pts;if(void 0!==o)while(i<n)if(tn.isHeader(t,i)){var a=tn.appendFrame(this.audioTrack,t,i,o,r);if(!a)break;i+=a.length,r++}else i++;else cn.warn("[tsdemuxer]: MPEG PES unknown PTS")}}],[{key:"probe",value:function(e){return!!e.length&&(71===e[0]&&71===e[188]&&71===e[376])}},{key:"_parsePES",value:function(e){var t=e[8];if(!(null===t||void 0===t||e.length<t+9)){var n=e[0]<<16|e[1]<<8|e[2];if(1===n){var r=(e[4]<<8)+e[5];if(!(r&&r>e.length-6)){var i,o,a=e[7];return 192&a&&(i=536870912*(14&e[9])+4194304*(255&e[10])+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2,64&a?(o=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])+128*(255&e[17])+(254&e[18])/2,i-o>54e5&&(i=o)):o=i),{data:e.subarray(9+t),pts:i,dts:o}}}}}}]),e}(),dn=function(){function e(t,n,r){Ve(this,e),this.dv=new DataView(t),this.start=this.offset=n||this.dv.byteOffset,this.end=r?this.start+r:this.start+this.dv.byteLength}return Ye(e,[{key:"buffer",get:function(){return this.dv.buffer}},{key:"unreadLength",get:function(){return Math.max(this.end-this.offset,0)}},{key:"size",get:function(){return this.end-this.start}},{key:"readFloat",value:function(e){var t=0;switch(e){case 4:t=this.dv.getFloat32(this.offset);break;case 8:t=this.dv.getFloat64(this.offset);break;default:throw new Error("read ".concat(e,"-byte float is not supported"))}return this.offset+=e,t}},{key:"back",value:function(e){this.offset-=e}},{key:"skip",value:function(e){this.offset+=e}},{key:"readInt",value:function(e){var t=this.offset;switch(this.offset+=e,e){case 1:return this.dv.getInt8(t);case 2:return this.dv.getInt16(t);case 4:return this.dv.getInt32(t);default:throw new Error("read ".concat(e,"-byte integers is not supported"))}}},{key:"read",value:function(e){var t=this.offset;switch(this.offset+=e,e){case 1:return this.dv.getUint8(t);case 2:return this.dv.getUint16(t);case 3:return(this.dv.getUint16(t)<<8)+this.dv.getUint8(t+2);case 4:return this.dv.getUint32(t);default:return this.back(e-4),this.read(e-4)+this.dv.getUint32(t)*Math.pow(256,e-4)}}},{key:"write",value:function(e,t){var n=this.offset;switch(this.offset+=e,e){case 1:return this.dv.setUint8(n,t);case 2:return this.dv.setUint16(n,t);case 3:return this.dv.setUint8(n,t>>>16),this.dv.setUint16(n+1,65535&t);case 4:return this.dv.setUint32(n,t);default:throw new Error("write ".concat(e,"-byte integers is not supported"))}}},{key:"readToBuffer",value:function(e){var t;return t=this.offset||e?this.dv.buffer.slice(this.offset,e?this.offset+e:this.end):this.dv.buffer,this.offset+=t.byteLength,t}},{key:"readToUint8",value:function(e){var t=new Uint8Array(this.dv.buffer,this.offset,e||this.unreadLength);return this.offset+=t.byteLength,t}},{key:"readString",value:function(e){for(var t=0,n="";t<e;t++)n+=String.fromCharCode(this.dv.getUint8(this.offset)),this.offset++;return n}}],[{key:"fromUint8",value:function(t){return new e(t.buffer,t.byteOffset,t.byteLength)}},{key:"concatUint8s",value:function(e){var t=new Uint8Array(e.reduce(function(e,t){return e+t.byteLength},0)),n=0;return e.forEach(function(e){t.set(e,n),n+=e.byteLength}),t}},{key:"concatUint8",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.concatUint8s(t)}}]),e}(),hn=function(){function e(t,n){Ve(this,e),this.offset=0,this.val=t,this.size=n}return Ye(e,[{key:"skip",value:function(e){this.offset+=e}},{key:"read",value:function(e){var t=this.size-this.offset-e;if(t>=0){var n=0,r=0;if(this.offset+=e,this.size>31){for(;r<e;r++)n+=Math.pow(2,r);return this.val/Math.pow(2,t)&n}for(;r<e;r++)n+=1<<r;return this.val>>>t&n}throw new Error("the number of the read operation exceeds the total length limit of bits")}}],[{key:"fromByte",value:function(t,n){return new e(t.read(n),n<<3)}}]),e}(),fn=function(){function e(){Ve(this,e)}return Ye(e,null,[{key:"findBox",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=[];if(!t)return i;var o=0,a="",s=0;while(t.length>7){if(o=jt(t),a=String.fromCharCode.apply(null,t.subarray(4,8)),s=8,1===o?(o=Ht(t,8),s+=8):o||(o=t.length),!n[0]||a===n[0]){var l=t.subarray(0,o);if(!(n.length<2))return e.findBox(l.subarray(s),n.slice(1),r+s);i.push({start:r,size:o,headerSize:s,type:a,data:l})}r+=o,t=t.subarray(o)}return i}},{key:"tfhd",value:function(e){return vn(e,!0,function(e,t){e.trackId=jt(t);var n=4,r=1&e.flags,i=2&e.flags,o=8&e.flags,a=16&e.flags,s=32&e.flags;r&&(n+=4,e.baseDataOffset=jt(t,n),n+=4),i&&(e.sampleDescriptionIndex=jt(t,n),n+=4),o&&(e.defaultSampleDuration=jt(t,n),n+=4),a&&(e.defaultSampleSize=jt(t,n),n+=4),s&&(e.defaultSampleFlags=jt(t,n))})}},{key:"sidx",value:function(e){return vn(e,!0,function(e,t){var n=0;e.reference_ID=jt(t,n),n+=4,e.timescale=jt(t,n),n+=4,0===e.version?(e.earliest_presentation_time=jt(t,n),n+=4,e.first_offset=jt(t,n),n+=4):(e.earliest_presentation_time=Ht(t,n),n+=8,e.first_offset=Ht(t,n),n+=8),n+=2,e.references=[];var r=Ft(t,n);n+=2;for(var i=0;i<r;i++){var o={};e.references.push(o);var a=jt(t,n);n+=4,o.reference_type=a>>31&1,o.referenced_size=2147483647&a,o.subsegment_duration=jt(t,n),n+=4,a=jt(t,n),n+=4,o.starts_with_SAP=a>>31&1,o.SAP_type=a>>28&7,o.SAP_delta_time=268435455&a}})}},{key:"moov",value:function(t){return vn(t,!1,function(t,n,r){t.mvhd=e.mvhd(e.findBox(n,["mvhd"],r)[0]),t.trak=e.findBox(n,["trak"],r).map(function(t){return e.trak(t)}),t.pssh=e.pssh(e.findBox(n,["pssh"],r)[0])})}},{key:"mvhd",value:function(e){return vn(e,!0,function(e,t){var n=0;1===e.version?(e.timescale=jt(t,16),e.duration=Ht(t,20),n+=28):(e.timescale=jt(t,8),e.duration=jt(t,12),n+=16),e.nextTrackId=jt(t,n+76)})}},{key:"trak",value:function(t){return vn(t,!1,function(t,n,r){t.tkhd=e.tkhd(e.findBox(n,["tkhd"],r)[0]),t.mdia=e.mdia(e.findBox(n,["mdia"],r)[0])})}},{key:"tkhd",value:function(e){return vn(e,!0,function(e,t){var n=dn.fromUint8(t);1===e.version?(n.read(8),n.read(8),e.trackId=n.read(4),n.read(4),e.duration=n.read(8)):(n.read(4),n.read(4),e.trackId=n.read(4),n.read(4),e.duration=n.read(4)),n.skip(16),e.matrix=[];for(var r=0;r<36;r++)e.matrix.push(n.read(1));n.back(36);for(var i,o=[],a=0;a<3;a++)o.push(zt(n.readInt(2),n.readInt(2))),o.push(zt(n.readInt(2),n.readInt(2))),i=n.readInt(4),o.push(zt(i>>30,1073741823&i));e.rotation=Wt(o),e.width=n.read(4),e.height=n.read(4)})}},{key:"mdia",value:function(t){return vn(t,!1,function(t,n,r){t.mdhd=e.mdhd(e.findBox(n,["mdhd"],r)[0]),t.hdlr=e.hdlr(e.findBox(n,["hdlr"],r)[0]),t.minf=e.minf(e.findBox(n,["minf"],r)[0])})}},{key:"mdhd",value:function(e){return vn(e,!0,function(e,t){var n=0;1===e.version?(e.timescale=jt(t,16),e.duration=Ht(t,20),n+=28):(e.timescale=jt(t,8),e.duration=jt(t,12),n+=16);var r=Ft(t,n);e.language=String.fromCharCode(96+(r>>10&31),96+(r>>5&31),96+(31&r))})}},{key:"hdlr",value:function(e){return vn(e,!0,function(e,t){0===e.version&&(e.handlerType=String.fromCharCode.apply(null,t.subarray(4,8)))})}},{key:"minf",value:function(t){return vn(t,!1,function(t,n,r){t.vmhd=e.vmhd(e.findBox(n,["vmhd"],r)[0]),t.smhd=e.smhd(e.findBox(n,["smhd"],r)[0]),t.stbl=e.stbl(e.findBox(n,["stbl"],r)[0])})}},{key:"vmhd",value:function(e){return vn(e,!0,function(e,t){e.graphicsmode=Ft(t),e.opcolor=[Ft(t,2),Ft(t,4),Ft(t,6)]})}},{key:"smhd",value:function(e){return vn(e,!0,function(e,t){e.balance=Ft(t)})}},{key:"stbl",value:function(t){return vn(t,!1,function(t,n,r){var i,o,a;t.stsd=e.stsd(e.findBox(n,["stsd"],r)[0]),t.stts=e.stts(e.findBox(n,["stts"],r)[0]),t.ctts=e.ctts(e.findBox(n,["ctts"],r)[0]),t.stsc=e.stsc(e.findBox(n,["stsc"],r)[0]),t.stsz=e.stsz(e.findBox(n,["stsz"],r)[0]),t.stco=e.stco(e.findBox(n,["stco"],r)[0]),t.stco||(t.co64=e.co64(e.findBox(n,["co64"],r)[0]),t.stco=t.co64);var s=null===(i=t.stsd.entries[0])||void 0===i||null===(o=i.sinf)||void 0===o||null===(a=o.schi)||void 0===a?void 0:a.tenc.default_IV_size;t.stss=e.stss(e.findBox(n,["stss"],r)[0]),t.senc=e.senc(e.findBox(n,["senc"],r)[0],s)})}},{key:"senc",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;return vn(e,!0,function(e,n){var r=0,i=jt(n,r);r+=4,e.samples=[];for(var o=0;o<i;o++){for(var a={InitializationVector:[]},s=0;s<t;s++)a.InitializationVector[s]=n[r+s];if(r+=t,2&e.flags){a.subsamples=[];var l=Ft(n,r);r+=2;for(var c=0;c<l;c++){var u={};u.BytesOfClearData=Ft(n,r),r+=2,u.BytesOfProtectedData=jt(n,r),r+=4,a.subsamples.push(u)}}e.samples.push(a)}})}},{key:"pssh",value:function(e){return vn(e,!0,function(e,t){for(var n=[],r=[],i=0,o=0;o<16;o++)r.push(bn(t[i+o]));if(i+=16,e.version>0){var a=jt(t,i);i+=4;for(var s=0;s<(""+a).length;s++)for(var l=0;l<16;l++){var c=t[i];i+=1,n.push(bn(c))}}var u=jt(t,i);e.data_size=u,i+=4,e.kid=n,e.system_id=r,e.buffer=t})}},{key:"stsd",value:function(t){return vn(t,!0,function(t,n,r){t.entryCount=jt(n),t.entries=e.findBox(n.subarray(4),[],r+4).map(function(t){switch(t.type){case"av01":return e.av01(t);case"avc1":case"avc2":case"avc3":case"avc4":return e.avc1(t);case"hvc1":case"hev1":return e.hvc1(t);case"mp4a":return e.mp4a(t);case"alaw":case"ulaw":return e.alaw(t);case"enca":return vn(t,!1,function(t,n,r){t.channelCount=Ft(n,16),t.samplesize=Ft(n,18),t.sampleRate=jt(n,24)/65536,n=n.subarray(28),t.sinf=e.sinf(e.findBox(n,["sinf"],r)[0]),t.esds=e.esds(e.findBox(n,["esds"],r)[0])});case"encv":return vn(t,!1,function(t,n,r){t.width=Ft(n,24),t.height=Ft(n,26),t.horizresolution=jt(n,28),t.vertresolution=jt(n,32),n=n.subarray(78),t.sinf=e.sinf(e.findBox(n,["sinf"],r)[0]),t.avcC=e.avcC(e.findBox(n,["avcC"],r)[0]),t.hvcC=e.hvcC(e.findBox(n,["hvcC"],r)[0]),t.pasp=e.pasp(e.findBox(n,["pasp"],r)[0])})}}).filter(Boolean)})}},{key:"tenc",value:function(e){return vn(e,!1,function(e,t){var n=6;e.default_IsEncrypted=t[n],n+=1,e.default_IV_size=t[n],n+=1,e.default_KID=[];for(var r=0;r<16;r++)e.default_KID.push(bn(t[n])),n+=1})}},{key:"schi",value:function(t){return vn(t,!1,function(t,n,r){t.tenc=e.tenc(e.findBox(n,["tenc"],r)[0])})}},{key:"sinf",value:function(t){return vn(t,!1,function(t,n,r){t.schi=e.schi(e.findBox(n,["schi"],r)[0]),t.frma=e.frma(e.findBox(n,["frma"],r)[0])})}},{key:"frma",value:function(e){return vn(e,!1,function(e,t){e.data_format="";for(var n=0;n<4;n++)e.data_format+=String.fromCharCode(t[n])})}},{key:"colr",value:function(e){return vn(e,!1,function(t,n){var r=dn.fromUint8(n);t.data=e.data,t.colorType=r.readString(4),"nclx"===t.colorType?(t.colorPrimaries=r.read(2),t.transferCharacteristics=r.read(2),t.matrixCoefficients=r.read(2),t.fullRangeFlag=r.read(1)>>7):"rICC"!==t.colorType&&"prof"!==t.colorType||(t.iccProfile=n.readToUint8())})}},{key:"av01",value:function(t){return vn(t,!1,function(t,n,r){var i=gn(t,n),o=n.subarray(i);r+=i,t.av1C=e.av1C(e.findBox(o,["av1C"],r)[0]),t.colr=e.colr(e.findBox(o,["colr"],r)[0])})}},{key:"av1C",value:function(e){return vn(e,!1,function(t,n){t.data=e.data;var r,i=dn.fromUint8(n),o=hn.fromByte(i,4);t.marker=o.read(1),t.version=o.read(7),t.seqProfile=o.read(3),t.seqLevelIdx0=o.read(5),t.seqTier0=o.read(1),t.highBitdepth=o.read(1),t.twelveBit=o.read(1),t.monochrome=o.read(1),t.chromaSubsamplingX=o.read(1),t.chromaSubsamplingY=o.read(1),t.chromaSamplePosition=o.read(2),t.reserved=o.read(3),t.initialPresentationDelayPresent=o.read(1),t.initialPresentationDelayPresent?t.initialPresentationDelayMinusOne=o.read(4):t.initialPresentationDelayMinusOne=0,t.configOBUs=i.readToUint8(),2===t.seqLevelIdx0&&1===t.highBitdepth?r=1===t.twelveBit?"12":"10":t.seqProfile<=2&&(r=1===t.highBitdepth?"10":"08"),t.codec=["av01",t.seqProfile,(t.seqLevelIdx0<10?"0"+t.seqLevelIdx0:t.seqLevelIdx0)+(t.seqTier0?"H":"M"),r].join(".")})}},{key:"avc1",value:function(t){return vn(t,!1,function(t,n,r){var i=gn(t,n),o=n.subarray(i);r+=i,t.avcC=e.avcC(e.findBox(o,["avcC"],r)[0]),t.pasp=e.pasp(e.findBox(o,["pasp"],r)[0])})}},{key:"avcC",value:function(e){return vn(e,!1,function(t,n){t.data=e.data,t.configurationVersion=n[0],t.AVCProfileIndication=n[1],t.profileCompatibility=n[2],t.AVCLevelIndication=n[3],t.codec=Ut([n[1],n[2],n[3]]),t.lengthSizeMinusOne=3&n[4],t.spsLength=31&n[5],t.sps=[];for(var r=6,i=0;i<t.spsLength;i++){var o=Ft(n,r);r+=2,t.sps.push(n.subarray(r,r+o)),r+=o}t.ppsLength=n[r],r+=1,t.pps=[];for(var a=0;a<t.ppsLength;a++){var s=Ft(n,r);r+=2,t.pps.push(n.subarray(r,r+=s)),r+=s}})}},{key:"hvc1",value:function(t){return vn(t,!1,function(t,n,r){var i=gn(t,n),o=n.subarray(i);r+=i,t.hvcC=e.hvcC(e.findBox(o,["hvcC"],r)[0]),t.pasp=e.pasp(e.findBox(o,["pasp"],r)[0])})}},{key:"hvcC",value:function(e){return vn(e,!1,function(t,n){t.data=e.data,t.codec="hev1.1.6.L93.B0",t.configurationVersion=n[0];var r=n[1];t.generalProfileSpace=r>>6,t.generalTierFlag=(32&r)>>5,t.generalProfileIdc=31&r,t.generalProfileCompatibility=jt(n,2),t.generalConstraintIndicatorFlags=n.subarray(6,12),t.generalLevelIdc=n[12],t.avgFrameRate=Ft(n,19),t.numOfArrays=n[22],t.vps=[],t.sps=[],t.pps=[];for(var i=23,o=0,a=0,s=0,l=0;l<t.numOfArrays;l++){o=63&n[i],a=Ft(n,i+1),i+=3;for(var c,u=[],d=0;d<a;d++)s=Ft(n,i),i+=2,u.push(n.subarray(i,i+s)),i+=s;if(32===o)(c=t.vps).push.apply(c,u);else if(33===o){var h;(h=t.sps).push.apply(h,u)}else if(34===o){var f;(f=t.pps).push.apply(f,u)}}})}},{key:"pasp",value:function(e){return vn(e,!1,function(e,t){e.hSpacing=jt(t),e.vSpacing=jt(t,4)})}},{key:"mp4a",value:function(t){return vn(t,!1,function(t,n,r){var i=mn(t,n);t.esds=e.esds(e.findBox(n.subarray(i),["esds"],r+i)[0])})}},{key:"esds",value:function(e){return vn(e,!0,function(e,t){e.codec="mp4a.";var n=0,r=0,i=0,o=0;while(t.length){n=0,o=t[n],r=t[n+1],n+=2;while(128&r)i=(127&r)<<7,r=t[n],n+=1;if(i+=127&r,3===o)t=t.subarray(n+3);else{if(4!==o){if(5===o){var a=e.config=t.subarray(n,n+i),s=(248&a[0])>>3;return 31===s&&a.length>=2&&(s=32+((7&a[0])<<3)+((224&a[1])>>5)),e.objectType=s,e.codec+=s.toString(16),void("."===e.codec[e.codec.length-1]&&(e.codec=e.codec.substring(0,e.codec.length-1)))}return void("."===e.codec[e.codec.length-1]&&(e.codec=e.codec.substring(0,e.codec.length-1)))}e.codec+=(t[n].toString(16)+".").padStart(3,"0"),t=t.subarray(n+13)}}})}},{key:"alaw",value:function(e){return vn(e,!1,function(e,t){mn(e,t)})}},{key:"stts",value:function(e){return vn(e,!0,function(e,t){for(var n=jt(t),r=[],i=4,o=0;o<n;o++)r.push({count:jt(t,i),delta:jt(t,i+4)}),i+=8;e.entryCount=n,e.entries=r})}},{key:"ctts",value:function(e){return vn(e,!0,function(e,t){var n=jt(t),r=[],i=4;if(1===e.version)for(var o=0;o<n;o++)r.push({count:jt(t,i),offset:jt(t,i+4)}),i+=8;else for(var a=0;a<n;a++)r.push({count:jt(t,i),offset:-(1+~jt(t,i+4))}),i+=8;e.entryCount=n,e.entries=r})}},{key:"stsc",value:function(e){return vn(e,!0,function(e,t){for(var n=jt(t),r=[],i=4,o=0;o<n;o++)r.push({firstChunk:jt(t,i),samplesPerChunk:jt(t,i+4),sampleDescriptionIndex:jt(t,i+8)}),i+=12;e.entryCount=n,e.entries=r})}},{key:"stsz",value:function(e){return vn(e,!0,function(e,t){var n=jt(t),r=jt(t,4),i=[];if(!n)for(var o=8,a=0;a<r;a++)i.push(jt(t,o)),o+=4;e.sampleSize=n,e.sampleCount=r,e.entrySizes=i})}},{key:"stco",value:function(e){return vn(e,!0,function(e,t){for(var n=jt(t),r=[],i=4,o=0;o<n;o++)r.push(jt(t,i)),i+=4;e.entryCount=n,e.entries=r})}},{key:"co64",value:function(e){return vn(e,!0,function(e,t){for(var n=jt(t),r=[],i=4,o=0;o<n;o++)r.push(Ht(t,i)),i+=8;e.entryCount=n,e.entries=r})}},{key:"stss",value:function(e){return vn(e,!0,function(e,t){for(var n=jt(t),r=[],i=4,o=0;o<n;o++)r.push(jt(t,i)),i+=4;e.entryCount=n,e.entries=r})}},{key:"moof",value:function(t){return vn(t,!1,function(t,n,r){t.mfhd=e.mfhd(e.findBox(n,["mfhd"],r)[0]),t.traf=e.findBox(n,["traf"],r).map(function(t){return e.traf(t)})})}},{key:"mfhd",value:function(e){return vn(e,!0,function(e,t){e.sequenceNumber=jt(t)})}},{key:"traf",value:function(t){return vn(t,!1,function(t,n,r){t.tfhd=e.tfhd(e.findBox(n,["tfhd"],r)[0]),t.tfdt=e.tfdt(e.findBox(n,["tfdt"],r)[0]),t.trun=e.trun(e.findBox(n,["trun"],r)[0])})}},{key:"trun",value:function(e){return vn(e,!0,function(e,t){var n=e.version,r=e.flags,i=t.length,o=e.sampleCount=jt(t),a=4;if(i>a&&1&r&&(e.dataOffset=-(1+~jt(t,a)),a+=4),i>a&&4&r&&(e.firstSampleFlags=jt(t,a),a+=4),e.samples=[],i>a)for(var s,l=0;l<o;l++)s={},256&r&&(s.duration=jt(t,a),a+=4),512&r&&(s.size=jt(t,a),a+=4),1024&r&&(s.flags=jt(t,a),a+=4),2048&r&&(s.cts=n?-(1+~jt(t,a+4)):jt(t,a),a+=4),e.samples.push(s)})}},{key:"tfdt",value:function(e){return vn(e,!0,function(e,t){1===e.version?e.baseMediaDecodeTime=Ht(t):e.baseMediaDecodeTime=jt(t)})}},{key:"probe",value:function(t){return!!e.findBox(t,["ftyp"])}},{key:"parseSampleFlags",value:function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}}},{key:"moovToTrack",value:function(e,t,n){var r,i,o=e.trak;if(o&&o.length){var a=o.find(function(e){var t,n;return"vide"===(null===(t=e.mdia)||void 0===t||null===(n=t.hdlr)||void 0===n?void 0:n.handlerType)}),s=o.find(function(e){var t,n;return"soun"===(null===(t=e.mdia)||void 0===t||null===(n=t.hdlr)||void 0===n?void 0:n.handlerType)});if(a&&t){var l,c,u,d,h,f,p,g=t,m=null===(l=a.tkhd)||void 0===l?void 0:l.trackId;null!==m&&void 0!==m&&(g.id=a.tkhd.trackId),g.tkhdDuration=a.tkhd.duration,g.mvhdDurtion=e.mvhd.duration,g.mvhdTimecale=e.mvhd.timescale,g.timescale=g.formatTimescale=a.mdia.mdhd.timescale,g.duration=a.mdia.mdhd.duration||g.mvhdDurtion/g.mvhdTimecale*g.timescale,g.rotation=a.tkhd.rotation,g.matrix=a.tkhd.matrix;var v,A,b,y,w,_,x,E,S=a.mdia.minf.stbl.stsd.entries[0];if(g.width=S.width,g.height=S.height,S.pasp&&(g.sarRatio=[S.pasp.hSpacing,S.pasp.vSpacing]),S.av1C)g.codecType=At.AV1,g.codec=S.av1C.codec,g.av1C=S.av1C.data,S.colr&&(g.colr=S.colr.data);else if(S.hvcC)g.codecType=At.HEVC,g.codec=S.hvcC.codec,g.vps=S.hvcC.vps,g.sps=S.hvcC.sps,g.pps=S.hvcC.pps,g.hvcC=S.hvcC.data;else{if(!S.avcC)throw new Error("unknown video stsd entry");g.codec=S.avcC.codec,g.sps=S.avcC.sps,g.pps=S.avcC.pps}if(g.present=!0,g.ext={},g.ext.stss=null===(c=a.mdia)||void 0===c||null===(u=c.minf)||void 0===u||null===(d=u.stbl)||void 0===d?void 0:d.stss,g.ext.ctts=null===(h=a.mdia)||void 0===h||null===(f=h.minf)||void 0===f||null===(p=f.stbl)||void 0===p?void 0:p.ctts,S&&"encv"===S.type)g.isVideoEncryption=!0,S.default_KID=null===(v=S.sinf)||void 0===v||null===(A=v.schi)||void 0===A?void 0:A.tenc.default_KID,S.default_IsEncrypted=null===(b=S.sinf)||void 0===b||null===(y=b.schi)||void 0===y?void 0:y.tenc.default_IsEncrypted,S.default_IV_size=null===(w=S.sinf)||void 0===w||null===(_=w.schi)||void 0===_?void 0:_.tenc.default_IV_size,g.videoSenc=a.mdia.minf.stbl.senc&&a.mdia.minf.stbl.senc.samples,S.data_format=null===(x=S.sinf)||void 0===x||null===(E=x.frma)||void 0===E?void 0:E.data_format,g.useEME=e.useEME,g.kidValue=e.kidValue,g.pssh=e.pssh,g.encv=S}if(s&&n){var C,T,k,O,M,I,D,N,R,L=n,B=null===(C=s.tkhd)||void 0===C?void 0:C.trackId;null!==B&&void 0!==B&&(L.id=s.tkhd.trackId),L.tkhdDuration=s.tkhd.duration,L.mvhdDurtion=e.mvhd.duration,L.mvhdTimecale=e.mvhd.timescale,L.timescale=L.formatTimescale=s.mdia.mdhd.timescale,L.duration=s.mdia.mdhd.duration||L.mvhdDurtion/L.mvhdTimecale*L.timescale;var P,F,$,j,H,U,Q,z,W=s.mdia.minf.stbl.stsd.entries[0];switch(L.sampleSize=W.sampleSize,L.sampleRate=W.sampleRate,L.channelCount=W.channelCount,L.present=!0,W.type){case"alaw":L.codecType=L.codec=bt.G711PCMA,L.sampleRate=8e3;break;case"ulaw":L.codecType=L.codec=bt.G711PCMU,L.sampleRate=8e3;break;default:L.sampleDuration=Tt.getFrameDuration(L.sampleRate,L.timescale),L.sampleRateIndex=Tt.getRateIndexByRate(L.sampleRate),L.objectType=(null===(r=W.esds)||void 0===r?void 0:r.objectType)||2,W.esds&&(L.config=Array.from(W.esds.config)),L.codec=(null===(i=W.esds)||void 0===i?void 0:i.codec)||"mp4a.40.2";break}if(L.sampleDuration=Tt.getFrameDuration(L.sampleRate,L.timescale),L.objectType=(null===(T=W.esds)||void 0===T?void 0:T.objectType)||2,W.esds&&(W.esds.config?L.config=Array.from(W.esds.config):console.warn("esds config is null")),L.codec=(null===(k=W.esds)||void 0===k?void 0:k.codec)||"mp4a.40.2",L.sampleRateIndex=Tt.getRateIndexByRate(L.sampleRate),L.ext={},L.ext.stss=null===(O=s.mdia)||void 0===O||null===(M=O.minf)||void 0===M||null===(I=M.stbl)||void 0===I?void 0:I.stss,L.ext.ctts=null===(D=s.mdia)||void 0===D||null===(N=D.minf)||void 0===N||null===(R=N.stbl)||void 0===R?void 0:R.ctts,L.present=!0,W&&"enca"===W.type)L.isAudioEncryption=!0,W.data_format=null===(P=W.sinf)||void 0===P||null===(F=P.frma)||void 0===F?void 0:F.data_format,W.default_KID=null===($=W.sinf)||void 0===$||null===(j=$.schi)||void 0===j?void 0:j.tenc.default_KID,W.default_IsEncrypted=null===(H=W.sinf)||void 0===H||null===(U=H.schi)||void 0===U?void 0:U.tenc.default_IsEncrypted,W.default_IV_size=null===(Q=W.sinf)||void 0===Q||null===(z=Q.schi)||void 0===z?void 0:z.tenc.default_IV_size,L.audioSenc=s.mdia.minf.stbl.senc&&s.mdia.minf.stbl.senc.samples,L.useEME=e.useEME,L.kidValue=e.kidValue,L.enca=W}if(n&&(n.isVideoEncryption=!!t&&t.isVideoEncryption),t&&(t.isAudioEncryption=!!n&&n.isAudioEncryption),null!==t&&void 0!==t&&t.encv||null!==n&&void 0!==n&&n.enca){var G,V,K=null===t||void 0===t||null===(G=t.encv)||void 0===G?void 0:G.default_KID,Y=null===n||void 0===n||null===(V=n.enca)||void 0===V?void 0:V.default_KID,q=K||Y?(K||Y).join(""):null;t&&(t.kid=q),n&&(n.kid=q)}return t&&(t.flags=3841),n&&(n.flags=1793),{videoTrack:t,audioTrack:n}}}},{key:"evaluateDefaultDuration",value:function(e,t,n){var r,i=null===t||void 0===t||null===(r=t.samples)||void 0===r?void 0:r.length;if(!i)return 1024;var o=1024*i/t.timescale;return o*e.timescale/n}},{key:"moofToSamples",value:function(t,n,r){var i={};return t.mfhd&&(n&&(n.sequenceNumber=t.mfhd.sequenceNumber),r&&(r.sequenceNumber=t.mfhd.sequenceNumber)),t.traf.forEach(function(t){var o=t.tfhd,a=t.tfdt,s=t.trun;if(o&&s){a&&(n&&n.id===o.trackId&&(n.baseMediaDecodeTime=a.baseMediaDecodeTime),r&&r.id===o.trackId&&(r.baseMediaDecodeTime=a.baseMediaDecodeTime));var l=o.defaultSampleSize||0,c=o.defaultSampleDuration||e.evaluateDefaultDuration(n,r,s.samples.length||s.sampleCount),u=s.dataOffset||0,d=0,h=-1;if(!s.samples.length&&s.sampleCount){i[o.trackId]=[];for(var f=0;f<s.sampleCount;f++)i[o.trackId].push({offset:u,dts:d,duration:c,size:l}),d+=c,u+=l}else i[o.trackId]=s.samples.map(function(e,t){return e={offset:u,dts:d,pts:d+(e.cts||0),duration:e.duration||c,size:e.size||l,gopId:h,keyframe:0===t||null!==e.flags&&void 0!==e.flags&&(65536&e.flags)>>>0!==65536},e.keyframe&&(h++,e.gopId=h),d+=e.duration,u+=e.size,e})}}),i}},{key:"moovToSamples",value:function(e){var t=e.trak;if(t&&t.length){var n=t.find(function(e){var t,n;return"vide"===(null===(t=e.mdia)||void 0===t||null===(n=t.hdlr)||void 0===n?void 0:n.handlerType)}),r=t.find(function(e){var t,n;return"soun"===(null===(t=e.mdia)||void 0===t||null===(n=t.hdlr)||void 0===n?void 0:n.handlerType)});if(n||r){var i,o;if(n){var a,s,l=null===(a=n.mdia)||void 0===a||null===(s=a.minf)||void 0===s?void 0:s.stbl;if(!l)return;var c=l.stts,u=l.stsc,d=l.stsz,h=l.stco,f=l.stss,p=l.ctts;if(!c||!u||!d||!h||!f)return;i=pn(c,u,d,h,p,f)}if(r){var g,m,v,A=null===(g=r.mdia)||void 0===g||null===(m=g.minf)||void 0===m?void 0:m.stbl;if(!A)return;var b=null===(v=r.mdia.mdhd)||void 0===v?void 0:v.timescale,y=A.stts,w=A.stsc,_=A.stsz,x=A.stco;if(!b||!y||!w||!_||!x)return;o=pn(y,w,_,x)}return{videoSamples:i,audioSamples:o}}}}}]),e}();function pn(e,t,n,r,i,o){var a,s,l,c=[],u=null===i||void 0===i?void 0:i.entries,d=t.entries,h=r.entries,f=n.entrySizes,p=null===o||void 0===o?void 0:o.entries;p&&(a={},p.forEach(function(e){a[e-1]=!0})),u&&(s=[],u.forEach(function(e){for(var t=e.count,n=e.offset,r=0;r<t;r++)s.push(n)}));var g=-1,m=0,v=0,A=0,b=0,y=0,w=d[0].samplesPerChunk,_=d[1]?d[1].firstChunk-1:1/0;return e.entries.forEach(function(e){for(var t=e.count,r=e.delta,i=0;i<t;i++)l={dts:m,duration:r,size:f[v]||n.sampleSize,offset:h[A]+y,index:v},p&&(l.keyframe=a[v],l.keyframe&&g++,l.gopId=g),s&&v<s.length&&(l.pts=l.dts+s[v]),c.push(l),m+=r,v++,v<w?y+=l.size:(A++,y=0,A>=_&&(b++,_=d[b+1]?d[b+1].firstChunk-1:1/0),w+=d[b].samplesPerChunk)}),c}function gn(e,t){return e.dataReferenceIndex=Ft(t,6),e.width=Ft(t,24),e.height=Ft(t,26),e.horizresolution=jt(t,28),e.vertresolution=jt(t,32),e.frameCount=Ft(t,40),e.depth=Ft(t,74),78}function mn(e,t){return e.dataReferenceIndex=Ft(t,6),e.channelCount=Ft(t,16),e.sampleSize=Ft(t,18),e.sampleRate=jt(t,24)/65536,28}function vn(e,t,n){if(e){if(e.size!==e.data.length)throw new Error("box ".concat(e.type," size !== data.length"));var r={start:e.start,size:e.size,headerSize:e.headerSize,type:e.type};return t&&(r.version=e.data[e.headerSize],r.flags=$t(e.data,e.headerSize+1),r.headerSize+=4),n(r,e.data.subarray(r.headerSize),r.start+r.headerSize),r}}var An=function(e,t,n){var r=String(n),i=t|0,o=Math.ceil(i/r.length),a=[],s=String(e);while(o--)a.push(r);return a.join("").substring(0,i-s.length)+s},bn=function(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.push(An(Number(t).toString(16),2,0))}),e[0]},yn=function(){function e(){u(this,e);var t=window.crypto||window.msCrypto;this.subtle=t&&(t.subtle||t.webkitSubtle),this.externalDecryptor=null}return h(e,[{key:"destroy",value:function(){var e;null!==(e=this.externalDecryptor)&&void 0!==e&&e.destroy&&this.externalDecryptor.destroy()}},{key:"decrypt",value:function(e,t){if(e||t){var n=[];return e&&(n[0]=this._decryptSegment(e)),t&&(n[1]=this._decryptSegment(t)),Promise.all(n)}}},{key:"_decryptSegment",value:function(){var e=c(a().mark(function e(t){var n;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.data,!t.key){e.next=5;break}return e.next=4,this._decryptData(t.data,t.key,t.keyIv);case 4:n=e.sent;case 5:if(t.map){e.next=7;break}return e.abrupt("return",n);case 7:return e.abrupt("return",Fe(t.map,n));case 8:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}()},{key:"_decryptData",value:function(){var e=c(a().mark(function e(t,n,r){var i;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!this.externalDecryptor){e.next=6;break}return e.next=3,this.externalDecryptor.decrypt(t,n,r);case 3:return e.abrupt("return",e.sent);case 6:if(this.subtle){e.next=8;break}throw new Error("crypto is not defined");case 8:return e.next=10,this.subtle.importKey("raw",n,{name:"AES-CBC"},!1,["encrypt","decrypt"]);case 10:return i=e.sent,e.t0=Uint8Array,e.next=14,this.subtle.decrypt({name:"AES-CBC",iv:r},i,t);case 14:return e.t1=e.sent,e.abrupt("return",new e.t0(e.t1));case 16:case"end":return e.stop()}},e,this)}));function t(t,n,r){return e.apply(this,arguments)}return t}()}]),e}(),wn=(n(13579),function(){function e(t,n,r){Ve(this,e),qe(this,"__loadedMoofWraps",[]),qe(this,"__lastRemainData",null),qe(this,"__lastRemainDataStart",0),qe(this,"__nextMoofStart",-1),this.videoTrack=t||new nn,this.audioTrack=n||new rn,this.metadataTrack=r||new ln}return Ye(e,[{key:"demuxPart",value:function(e,t,n){var r=this,i=this.videoTrack,o=this.audioTrack,a=i.exist(),s=o.exist(),l=/av01/.test(i.codec);i.samples=[],o.samples=[];var c=e,u=t;if(this.__lastRemainData){var d=this.__lastRemainDataStart+this.__lastRemainData.byteLength,h=t<=d&&t>this.__lastRemainDataStart&&t+e.byteLength>d;if(h){var f=e.subarray(this.__lastRemainData.byteLength+this.__lastRemainDataStart-t);c=Bt(this.__lastRemainData,f),u=this.__lastRemainDataStart,this.__lastRemainData=null}else this.__lastRemainData=null,this.__lastRemainDataStart=0,this.__nextMoofStart=-1}if(!n){var p=fn.findBox(c,["moov"])[0];if(!p)throw new Error("cannot found moov box");n=fn.moov(p)}if(c){var g=u+c.byteLength;a||s||fn.moovToTrack(n,i,o);var m=[];this.__nextMoofStart<0?fn.findBox(c,["moof"],u).forEach(function(e){return m.push(e)}):this.__nextMoofStart>=u&&this.__nextMoofStart<=g-8&&fn.findBox(c.subarray(this.__nextMoofStart-u),["moof"],this.__nextMoofStart).forEach(function(e){return m.push(e)}),m.filter(function(e){return e.size<=e.data.length}).forEach(function(e){var t=fn.moof(e);r.__nextMoofStart=t.start+Math.max.apply(Math,ot(t.traf.map(function(e){return e.trun.samples.reduce(function(e,t){return e+t.size},e.trun.dataOffset||0)}))),r.__loadedMoofWraps.push({start:t.start,nextMoofStart:r.__nextMoofStart,moof:t}),r.__loadedMoofWraps.sort(function(e,t){return e.start-t.start})});var v,A=ft(this.__loadedMoofWraps);try{var b=function(){var e=v.value;if(e.start>g||e.nextMoofStart<u)return"continue";var t,n=e.start,a=fn.moofToSamples(e.moof,i,o),s=i.baseMediaDecodeTime,d=o.baseMediaDecodeTime;Object.keys(a).forEach(function(e){i.id==e?a[e].some(function(e){var o=e.offset+=n;if(!(o<u)){if(o+e.size>g)return!0;var a=new on((e.pts||e.dts)+s,e.dts+s);a.duration=e.duration,a.gopId=e.gopId,e.keyframe&&a.setToKeyframe();var d=c.subarray(o-u,o-u+e.size);if(a.data=d,!l){var h=0,f=d.length-1;while(h<f)t=jt(d,h),h+=4,a.units.push(d.subarray(h,h+t)),h+=t}r.__lastRemainDataStart=o+e.size,i.samples.push(a)}}):o.id==e&&a[e].some(function(e){var t=e.offset+n;if(!(t<u)){if(t+e.size>g)return!0;var i=c.subarray(t-u,t-u+e.size);o.samples.push(new wt(e.dts+d,i,e.duration)),r.__lastRemainDataStart=t+e.size}})})};for(A.s();!(v=A.n()).done;)b()}catch(y){A.e(y)}finally{A.f()}}return this.__lastRemainDataStart>u&&this.__lastRemainDataStart<c.byteLength+u?this.__lastRemainData=c.subarray(this.__lastRemainDataStart-u):(this.__lastRemainData=c,this.__lastRemainDataStart=u),i.samples.length&&(i.baseMediaDecodeTime=i.samples[0].pts),o.samples.length&&(o.baseMediaDecodeTime=o.samples[0].pts),{videoTrack:i,audioTrack:o,metadataTrack:this.metadataTrack}}},{key:"demux",value:function(e,t){var n=this.videoTrack,r=this.audioTrack,i=n.exist(),o=r.exist();if(n.samples=[],r.samples=[],t){if(!o){var a=fn.findBox(t,["moov"])[0];if(!a)throw new Error("cannot found moov box");fn.moovToTrack(fn.moov(a),null,r)}var s=fn.findBox(t,["moof"])[0];if(s){var l=fn.moofToSamples(fn.moof(s),null,r)[r.id],c=r.baseMediaDecodeTime;if(l){var u=s.start;l.map(function(e){e.offset+=u;var n=t.subarray(e.offset,e.offset+e.size);r.samples.push(new wt(e.dts+c,n,e.duration))})}}}if(e){if(!i&&!o){var d=fn.findBox(e,["moov"])[0];if(!d)throw new Error("cannot found moov box");fn.moovToTrack(fn.moov(d),n,r)}var h=fn.findBox(e,["moof"])[0];if(h){var f,p=fn.moofToSamples(fn.moof(h),n,r),g=n.baseMediaDecodeTime,m=r.baseMediaDecodeTime,v=h.start;Object.keys(p).forEach(function(t){n.id==t?p[t].map(function(t){t.offset+=v;var r=new on((t.pts||t.dts)+g,t.dts+g);r.duration=t.duration,r.gopId=t.gopId,t.keyframe&&r.setToKeyframe();var i=e.subarray(t.offset,t.offset+t.size);r.data=i;var o=0,a=i.length-1;while(o<a)f=jt(i,o),o+=4,r.units.push(i.subarray(o,o+f)),o+=f;n.samples.push(r)}):r.id==t&&p[t].map(function(t){t.offset+=v;var n=e.subarray(t.offset,t.offset+t.size);r.samples.push(new wt(t.dts+m,n,t.duration))})})}}return{videoTrack:n,audioTrack:r,metadataTrack:this.metadataTrack}}},{key:"reset",value:function(){this.videoTrack.reset(),this.audioTrack.reset(),this.metadataTrack.reset()}}],[{key:"probe",value:function(e){return fn.probe(e)}}]),e}());function _n(e){for(var t=0,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];r.forEach(function(e){t+=e.length});var o=new e(t),a=0;return r.forEach(function(e){o.set(e,a),a+=e.length}),o}var xn=function(){function e(){Ve(this,e),this.buffer=new Uint8Array(0)}return Ye(e,[{key:"write",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach(function(t){t?e.buffer=_n(Uint8Array,e.buffer,t):window.console.warn(t)})}}],[{key:"writeUint16",value:function(e){return new Uint8Array([e>>8&255,255&e])}},{key:"writeUint32",value:function(e){return new Uint8Array([e>>24,e>>16&255,e>>8&255,255&e])}}]),e}(),En=Math.pow(2,32)-1,Sn=function(){function e(){Ve(this,e)}return Ye(e,null,[{key:"box",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n=n.filter(Boolean);var i=8+n.reduce(function(e,t){return e+t.byteLength},0),o=new Uint8Array(i);o[0]=i>>24&255,o[1]=i>>16&255,o[2]=i>>8&255,o[3]=255&i,o.set(e,4);var a=8;return n.forEach(function(e){o.set(e,a),a+=e.byteLength}),o}},{key:"ftyp",value:function(t){var n=t.find(function(e){return e.type===vt.VIDEO&&e.codecType===At.HEVC});return n?e.FTYPHEV1:e.FTYPAVC1}},{key:"initSegment",value:function(t){var n=e.ftyp(t),r=Bt(n,e.moov(t));return r}},{key:"pssh",value:function(t){var n=new Uint8Array([1,0,0,0].concat([16,119,239,236,192,178,77,2,172,227,60,30,82,226,251,75],[0,0,0,1],Qt(t.kid),[0,0,0,0]));return e.box(e.types.pssh,n)}},{key:"moov",value:function(t){if(t[0].useEME&&(t[0].encv||t[0].enca)){t[0].pssh||(t[0].pssh={kid:t[0].kid});var n=this.pssh(t[0].pssh);return e.box.apply(e,[e.types.moov,e.mvhd(t[0].mvhdDurtion||t[0].duration,t[0].mvhdTimecale||t[0].timescale),e.mvex(t)].concat(ot(t.map(function(t){return e.trak(t)})),[n]))}return e.box.apply(e,[e.types.moov,e.mvhd(t[0].mvhdDurtion||t[0].duration,t[0].mvhdTimecale||t[0].timescale)].concat(ot(t.map(function(t){return e.trak(t)})),[e.mvex(t)]))}},{key:"mvhd",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4,r=e.box(e.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,n>>24&255,n>>16&255,n>>8&255,255&n,t>>24&255,t>>16&255,t>>8&255,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]));return r}},{key:"trak",value:function(t){var n=e.box(e.types.trak,e.tkhd(t.id,t.tkhdDuration||0,t.width,t.height),e.mdia(t));return n}},{key:"tkhd",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=e.box(e.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,t>>24&255,t>>16&255,t>>8&255,255&t,0,0,0,0,n>>24&255,n>>16&255,n>>8&255,255&n,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>8&255,255&r,0,0,i>>8&255,255&i,0,0]));return o}},{key:"mdia",value:function(t){var n=e.box(e.types.mdia,e.mdhd(t.duration,t.timescale),e.hdlr(t.type),e.minf(t));return n}},{key:"mdhd",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4,r=e.box(e.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,n>>24&255,n>>16&255,n>>8&255,255&n,t>>24&255,t>>16&255,t>>8&255,255&t,85,196,0,0]));return r}},{key:"hdlr",value:function(t){var n=e.box(e.types.hdlr,e.HDLR_TYPES[t]);return n}},{key:"minf",value:function(t){var n=e.box(e.types.minf,t.type===vt.VIDEO?e.VMHD:e.SMHD,e.DINF,e.stbl(t));return n}},{key:"stbl",value:function(t){var n=[];t&&t.ext&&t.ext.stss&&n.push(e.stss(t.ext.stss.entries));var r=e.box(e.types.stbl,e.stsd(t),e.STTS,n[0],e.STSC,e.STSZ,e.STCO);return r}},{key:"stsd",value:function(t){var n;n="audio"===t.type?t.useEME&&t.enca?e.enca(t):t.codecType===bt.OPUS?e.opus(t):e.mp4a(t):t.useEME&&t.encv?e.encv(t):t.av1C?e.av01(t):e.avc1hev1(t);var r=e.box(e.types.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),n);return r}},{key:"enca",value:function(t){var n=t.enca.channelCount,r=t.enca.sampleRate,i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,n,0,16,0,0,0,0,r>>8&255,255&r,0,0]),o=e.esds(t.config),a=e.sinf(t.enca);return e.box(e.types.enca,i,o,a)}},{key:"encv",value:function(t){var n,r,i=t.sps.length>0?t.sps[0]:[],o=t.pps.length>0?t.pps[0]:[],a=t.width,s=t.height,l=t.sarRatio[0],c=t.sarRatio[1],u=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,a>>8&255,255&a,s>>8&255,255&s,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),d=new Uint8Array((n=(r=[1,i[1],i[2],i[3],255,225,i.length>>>8&255,255&i.length]).concat.apply(r,ot(i)).concat([1,o.length>>>8&255,255&o.length])).concat.apply(n,ot(o))),h=new Uint8Array([0,0,88,57,0,15,200,192,0,4,86,72]),f=e.sinf(t.encv),p=new Uint8Array([l>>24,l>>16&255,l>>8&255,255&l,c>>24,c>>16&255,c>>8&255,255&c]);return e.box(e.types.encv,u,e.box(e.types.avcC,d),e.box(e.types.btrt,h),f,e.box(e.types.pasp,p))}},{key:"schi",value:function(t){var n=new Uint8Array([]),r=e.tenc(t);return e.box(e.types.schi,n,r)}},{key:"tenc",value:function(t){var n=new Uint8Array([0,0,0,0,0,0,255&t.default_IsEncrypted,255&t.default_IV_size].concat(Qt(t.default_KID)));return e.box(e.types.tenc,n)}},{key:"sinf",value:function(t){var n=new Uint8Array([]),r=new Uint8Array([t.data_format.charCodeAt(0),t.data_format.charCodeAt(1),t.data_format.charCodeAt(2),t.data_format.charCodeAt(3)]),i=new Uint8Array([0,0,0,0,99,101,110,99,0,1,0,0]),o=e.schi(t);return e.box(e.types.sinf,n,e.box(e.types.frma,r),e.box(e.types.schm,i),o)}},{key:"av01",value:function(t){return e.box(e.types.av01,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,t.width>>8&255,255&t.width,t.height>>8&255,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),t.av1C,t.colr)}},{key:"avc1hev1",value:function(t){var n=t.codecType===At.HEVC,r=n?e.types.hvc1:e.types.avc1,i=n?e.hvcC(t):e.avcC(t),o=[new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,t.width>>8&255,255&t.width,t.height>>8&255,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),i];return n?o.push(e.box(e.types.fiel,new Uint8Array([1,0]))):t.sarRatio&&t.sarRatio.length>1&&o.push(e.pasp(t.sarRatio)),e.box.apply(e,[r].concat(o))}},{key:"avcC",value:function(t){var n,r,i,o=[],a=[];return t.sps.forEach(function(e){i=e.byteLength,o.push(i>>>8&255),o.push(255&i),o.push.apply(o,ot(e))}),t.pps.forEach(function(e){i=e.byteLength,a.push(i>>>8&255),a.push(255&i),a.push.apply(a,ot(e))}),e.box(e.types.avcC,new Uint8Array((n=(r=[1,o[3],o[4],o[5],255,224|t.sps.length]).concat.apply(r,o).concat([t.pps.length])).concat.apply(n,a)))}},{key:"hvcC",value:function(t){var n=t.hvcC;if(n instanceof ArrayBuffer||n instanceof Uint8Array)return n;var r,i=t.vps,o=t.sps,a=t.pps;if(n){var s=n.generalProfileCompatibilityFlags,l=n.generalConstraintIndicatorFlags,c=(i.length&&1)+(o.length&&1)+(a.length&&1);r=[1,n.generalProfileSpace<<6|n.generalTierFlag<<5|n.generalProfileIdc,s>>>24,s>>>16,s>>>8,s,l[0],l[1],l[2],l[3],l[4],l[5],n.generalLevelIdc,240,0,252,252|n.chromaFormatIdc,248|n.bitDepthLumaMinus8,248|n.bitDepthChromaMinus8,0,0,n.numTemporalLayers<<3|n.temporalIdNested<<2|3,c];var u=function(e){var t;r.push(e.length>>8,e.length),(t=r).push.apply(t,ot(e))};i.length&&(r.push(160,0,i.length),i.forEach(u)),o.length&&(r.push(161,0,o.length),o.forEach(u)),a.length&&(r.push(162,0,a.length),a.forEach(u))}else r=[1,1,96,0,0,0,144,0,0,0,0,0,93,240,0,252,253,248,248,0,0,15,3,160,0,1,0,24,64,1,12,1,255,255,1,96,0,0,3,0,144,0,0,3,0,0,3,0,93,153,152,9,161,0,1,0,45,66,1,1,1,96,0,0,3,0,144,0,0,3,0,0,3,0,93,160,2,128,128,45,22,89,153,164,147,43,154,128,128,128,130,0,0,3,0,2,0,0,3,0,50,16,162,0,1,0,7,68,1,193,114,180,98,64];return e.box(e.types.hvcC,new Uint8Array(r))}},{key:"pasp",value:function(t){var n=it(t,2),r=n[0],i=n[1];return e.box(e.types.pasp,new Uint8Array([r>>24,r>>16&255,r>>8&255,255&r,i>>24,i>>16&255,i>>8&255,255&i]))}},{key:"mp4a",value:function(t){return e.box(e.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,t.sampleRate>>8&255,255&t.sampleRate,0,0]),t.config.length?e.esds(t.config):void 0)}},{key:"esds",value:function(t){var n=t.length,r=e.box(e.types.esds,new Uint8Array([0,0,0,0,3,23+n,0,0,0,4,15+n,64,21,0,6,0,0,0,218,192,0,0,218,192,5].concat([n]).concat(t).concat([6,1,2])));return r}},{key:"opus",value:function(t){var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,t.sampleRate>>8&255,255&t.sampleRate,0,0]),r=t.config.length?e.dOps(t):[];return e.box(e.types.Opus,n,r)}},{key:"dOps",value:function(t){if(t.config)return t.config[4]=t.sampleRate>>>24&255,t.config[5]=t.sampleRate>>>16&255,t.config[6]=t.sampleRate>>>8&255,t.config[7]=255&t.sampleRate,e.box(e.types.dOps,t.config)}},{key:"mvex",value:function(t){var n=e.box.apply(e,[e.types.mvex].concat(ot(t.map(function(t){return e.trex(t.id)}))));return n}},{key:"trex",value:function(t){var n=e.box(e.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]));return n}},{key:"trex1",value:function(t){var n=e.box(e.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,2,0,0,0,0,0,0,1,0,0]));return n}},{key:"trex2",value:function(t){var n=e.box(e.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,4,0,0,0,0,0,2,0,0,0]));return n}},{key:"moof",value:function(t){var n=e.box.apply(e,[e.types.moof,e.mfhd(t[0].samples?t[0].samples[0].gopId:0)].concat(ot(t.map(function(t){return e.traf(t)}))));return n}},{key:"mfhd",value:function(t){var n=e.box(e.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]));return n}},{key:"traf",value:function(t){var n,r=e.tfhd(t.id),i=e.tfdt(t,t.baseMediaDecodeTime),o=0;if(t.isVideo&&t.videoSenc&&(n=t.videoSenc,n.forEach(function(e){o+=8,e.subsamples&&e.subsamples.length&&(o+=2,o+=6*e.subsamples.length)})),t.videoSencLength=o,t.useEME&&(t.isVideoEncryption||t.isAudioEncryption)){if(t.isVideoEncryption){if(t.isVideo){var a=e.saiz(t),s=e.saio(t),l=e.trun1(t),c=e.senc(t),u=e.box(e.types.traf,r,i,a,s,l,c);return u}if(t.isAudioEncryption){var d=e.sbgp(),h=e.saiz(t),f=e.saio(t),p=e.senc(t),g=e.trun1(t),m=e.box(e.types.traf,r,i,d,h,f,p,g);return m}var v=e.sbgp(),A=e.trun1(t);return e.box(e.types.traf,r,i,v,A)}if(t.isVideo){var b=e.trun1(t);return e.box(e.types.traf,r,i,b)}var y=e.sbgp(),w=e.saiz(t),_=e.saio(t),x=e.senc(t),E=e.trun1(t),S=e.box(e.types.traf,r,i,y,w,_,x,E);return S}var C=e.sdtp(t),T=76;return e.box(e.types.traf,r,i,C,e.trun(t.samples,C.byteLength+T))}},{key:"sdtp",value:function(t){var n=new xn;return t.samples.forEach(function(e){n.write(new Uint8Array(t.isVideo?[e.keyframe?32:16]:[16]))}),e.box(e.types.sdtp,this.extension(0,0),n.buffer)}},{key:"trun1",value:function(t){var n=new xn,r=xn.writeUint32(t.samples.length),i=null;if(t.isVideo){var o=t.videoSencLength;i=xn.writeUint32(16*t.samples.length+o+149),!t.isVideoEncryption&&t.isAudioEncryption&&(i=xn.writeUint32(16*t.samples.length+92))}else{var a=12*t.samples.length+124;t.isAudioEncryption&&(a=12*t.samples.length+8*t.audioSenc.length+177),i=xn.writeUint32(a)}return t.samples.forEach(function(e){n.write(xn.writeUint32(e.duration)),n.write(xn.writeUint32(e.size)),n.write(xn.writeUint32(e.keyframe?33554432:65536)),t.isVideo&&n.write(xn.writeUint32(e.cts?e.cts:0))}),e.box(e.types.trun,this.extension(0,t.flags),r,i,n.buffer)}},{key:"senc",value:function(t){var n=new xn,r=t.samples.length,i=t.isVideo?16:8,o=t.isVideo?2:0,a=[],s=0;return t.isVideo?(a=t.videoSenc,s=t.videoSencLength):a=t.audioSenc,s=s||i*r,n.write(xn.writeUint32(16+s),e.types.senc,this.extension(0,o)),n.write(xn.writeUint32(r)),a.forEach(function(e){for(var t=0;t<e.InitializationVector.length;t++)n.write(new Uint8Array([e.InitializationVector[t]]));e.subsamples&&e.subsamples.length&&(n.write(xn.writeUint16(e.subsamples.length)),e.subsamples.forEach(function(e){n.write(xn.writeUint16(e.BytesOfClearData)),n.write(xn.writeUint32(e.BytesOfProtectedData))}))}),n.buffer}},{key:"saio",value:function(t){var n=12*t.samples.length+141;!t.isVideo&&t.isAudioEncryption&&(n=149);var r=new Uint8Array([1,0,0,0,0,0,0,1,0,0,0,0,n>>24&255,n>>16&255,n>>8&255,255&n]);return e.box(e.types.saio,r)}},{key:"saiz",value:function(t){var n=t.samples.length,r=new Uint8Array([0,0,0,0,16,n>>24&255,n>>16&255,n>>8&255,255&n]);return e.box(e.types.saiz,r)}},{key:"sbgp",value:function(){var t=new Uint8Array([114,111,108,108,0,0,0,1,0,0,1,25,0,0,0,1]);return e.box(e.types.sbgp,this.extension(0,0),t)}},{key:"extension",value:function(e,t){return new Uint8Array([e,t>>16&255,t>>8&255,255&t])}},{key:"tfhd",value:function(t){return e.box(e.types.tfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))}},{key:"tfdt",value:function(t,n){var r=Math.floor(n/(En+1)),i=Math.floor(n%(En+1));return t.useEME&&(t.isVideoEncryption||t.isAudioEncryption)?e.box(e.types.tfdt,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])):e.box(e.types.tfdt,new Uint8Array([1,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,i>>24,i>>16&255,i>>8&255,255&i]))}},{key:"trun",value:function(t,n){var r=t.length,i=12+16*r;n+=8+i;var o=new Uint8Array(i);o.set([0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,255&r,n>>>24&255,n>>>16&255,n>>>8&255,255&n],0);for(var a=0;a<r;a++){var s=t[a],l=s.duration,c=s.size,u=s.flag,d=void 0===u?{}:u,h=s.cts,f=void 0===h?0:h;o.set([l>>>24&255,l>>>16&255,l>>>8&255,255&l,c>>>24&255,c>>>16&255,c>>>8&255,255&c,d.isLeading<<2|(null===d.dependsOn||void 0===d.dependsOn?1:d.dependsOn),d.isDependedOn<<6|d.hasRedundancy<<4|d.paddingValue<<1|(null===d.isNonSyncSample||void 0===d.isNonSyncSample?1:d.isNonSyncSample),61440&d.degradationPriority,15&d.degradationPriority,f>>>24&255,f>>>16&255,f>>>8&255,255&f],12+16*a)}return e.box(e.types.trun,o)}},{key:"moovMP4",value:function(t){return e.box.apply(e,[e.types.moov,e.mvhd(t[0].duration,t[0].timescale)].concat(ot(t.map(function(t){return e.trackMP4(t)}))))}},{key:"trackMP4",value:function(t){return e.box(e.types.trak,e.tkhd(t.id,t.duration,t.width,t.height),e.mdiaMP4(t))}},{key:"mdiaMP4",value:function(t){return e.box(e.types.mdia,e.mdhd(t.duration,t.timescale),e.hdlr(t.type),e.minfMP4(t))}},{key:"minfMP4",value:function(t){return e.box(e.types.minf,t.type===vt.VIDEO?e.VMHD:e.SMHD,e.DINF,e.stblMP4(t))}},{key:"stblMP4",value:function(t){var n=t.ext,r=[e.stsd(t),e.stts(n.stts),e.stsc(n.stsc),e.stsz(n.stsz),e.stco(n.stco)];return n.stss.length&&r.push(e.stss(n.stss)),n.ctts.length&&r.push(e.ctts(n.ctts)),e.box.apply(e,[e.types.stbl].concat(r))}},{key:"stts",value:function(t){var n=t.length,r=new Uint8Array(8*n),i=0;return t.forEach(function(e){var t=e.value,n=e.count;r.set([n>>24,n>>16&255,n>>8&255,255&n,t>>24,t>>16&255,t>>8&255,255&t],i),i+=8}),e.box(e.types.stts,Bt(new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n]),r))}},{key:"stsc",value:function(t){var n=t.length,r=new Uint8Array(12*n),i=0;return t.forEach(function(e){var t=e.firstChunk,n=e.samplesPerChunk,o=e.sampleDescIndex;r.set([t>>24,t>>16&255,t>>8&255,255&t,n>>24,n>>16&255,n>>8&255,255&n,o>>24,o>>16&255,o>>8&255,255&o],i),i+=12}),e.box(e.types.stsc,Bt(new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n]),r))}},{key:"stsz",value:function(t){var n=t.length,r=new Uint8Array(4*n),i=0;return t.forEach(function(e){r.set([e>>24,e>>16&255,e>>8&255,255&e],i),i+=4}),e.box(e.types.stsz,Bt(new Uint8Array([0,0,0,0,0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n]),r))}},{key:"stco",value:function(t){var n=t.length,r=new Uint8Array(4*n),i=0;return t.forEach(function(e){r.set([e>>24,e>>16&255,e>>8&255,255&e],i),i+=4}),e.box(e.types.stco,Bt(new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n]),r))}},{key:"stss",value:function(t){var n=t.length,r=new Uint8Array(4*n),i=0;return t.forEach(function(e){r.set([e>>24,e>>16&255,e>>8&255,255&e],i),i+=4}),e.box(e.types.stss,Bt(new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n]),r))}},{key:"ctts",value:function(t){var n=t.length,r=new Uint8Array(8*n),i=0;return t.forEach(function(e){var t=e.value,n=e.count;r.set([n>>24,n>>16&255,n>>8&255,255&n,t>>24,t>>16&255,t>>8&255,255&t],i),i+=8}),e.box(e.types.ctts,Bt(new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n]),r))}},{key:"styp",value:function(){return e.box(e.types.styp,new Uint8Array([109,115,100,104,0,0,0,0,109,115,100,104,109,115,105,120]))}},{key:"sidx",value:function(t){var n=t.timescale,r=t.samples[0].duration,i=r*t.samples.length,o=t.samples[0].sampleOffset*r,a=8;t.samples.forEach(function(e){a+=e.size});var s=0;if(t.isVideo){var l,c=0;t.videoSenc&&(l=t.videoSenc),t.isVideo&&l.forEach(function(e){c+=8,e.subsamples&&e.subsamples.length&&(c+=2,c+=6*e.subsamples.length)}),t.videoSencLength=c,s=a+141+16*t.samples.length+c,t.useEME&&t.isAudioEncryption&&!t.isVideoEncryption&&(s=a+16*t.samples.length+84)}else s=a+116+12*t.samples.length,t.useEME&&t.isAudioEncryption&&(s=a+169+12*t.samples.length+8*t.audioSenc.length);var u=new Uint8Array([0,0,0,0,0,0,0,255&t.id,n>>24&255,n>>16&255,n>>8&255,255&n,o>>24&255,o>>16&255,o>>8&255,255&o,0,0,0,0,0,0,0,1,0,s>>16&255,s>>8&255,255&s,i>>24&255,i>>16&255,i>>8&255,255&i,144,0,0,0]);return e.box(e.types.sidx,u)}},{key:"mdat",value:function(t){var n=e.box(e.types.mdat,t);return n}}]),e}();qe(Sn,"types",["Opus","dOps","av01","av1C","avc1","avcC","hvc1","hvcC","dinf","dref","esds","ftyp","hdlr","mdat","mdhd","mdia","mfhd","minf","moof","moov","mp4a","mvex","mvhd","pasp","stbl","stco","stsc","stsd","stsz","stts","tfdt","tfhd","traf","trak","trex","tkhd","vmhd","smhd","ctts","stss","styp","pssh","sidx","sbgp","saiz","saio","senc","trun","encv","enca","sinf","btrt","frma","tenc","schm","schi","mehd","fiel","sdtp"].reduce(function(e,t){return e[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)],e},Object.create(null))),qe(Sn,"HDLR_TYPES",{video:new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),audio:new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0])}),qe(Sn,"FTYPAVC1",Sn.box(Sn.types.ftyp,new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]))),qe(Sn,"FTYPHEV1",Sn.box(Sn.types.ftyp,new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,104,101,118,49]))),qe(Sn,"DINF",Sn.box(Sn.types.dinf,Sn.box(Sn.types.dref,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1])))),qe(Sn,"VMHD",Sn.box(Sn.types.vmhd,new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]))),qe(Sn,"SMHD",Sn.box(Sn.types.smhd,new Uint8Array([0,0,0,0,0,0,0,0]))),qe(Sn,"StblTable",new Uint8Array([0,0,0,0,0,0,0,0])),qe(Sn,"STTS",Sn.box(Sn.types.stts,Sn.StblTable)),qe(Sn,"STSC",Sn.box(Sn.types.stsc,Sn.StblTable)),qe(Sn,"STSZ",Sn.box(Sn.types.stsz,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]))),qe(Sn,"STCO",Sn.box(Sn.types.stco,Sn.StblTable));var Cn=function(){function e(t,n){Ve(this,e),this.name=t||"",this._prefix="[".concat(this.name,"]"),e.disabled=n}return Ye(e,[{key:"debug",value:function(){var t;if(!e.disabled){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=console).debug.apply(t,[this._prefix].concat(r))}}},{key:"log",value:function(){var t;if(!e.disabled){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=console).log.apply(t,[this._prefix].concat(r))}}},{key:"warn",value:function(){var t;if(!e.disabled){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=console).warn.apply(t,[this._prefix].concat(r))}}},{key:"error",value:function(){var t;if(!e.disabled){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];(t=console).error.apply(t,[this._prefix].concat(r))}}},{key:"table",value:function(){var t;e.disabled||(console.group(this._prefix),(t=console).table.apply(t,arguments),console.groupEnd())}}],[{key:"enable",value:function(){e.disabled=!1}},{key:"disable",value:function(){e.disabled=!0}}]),e}();qe(Cn,"disabled",!0);var Tn=function(){function e(t,n,r){Ve(this,e),this.videoTrack=t,this.audioTrack=n;var i=/Chrome\/([^.]+)/.exec(navigator.userAgent);this.forceFirstIDR=i&&Number(i[1])<50,this.log=new Cn("FMP4Remuxer",!r||!r.openLog||!r.openLog)}return Ye(e,[{key:"remux",value:function(){var e,t,n,r,i,o=arguments.length>0&&void 0!==arguments[0]&&arguments[0],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=this.videoTrack,l=this.audioTrack,c=s.exist(),u=l.exist(),d=[];return o&&(a&&a.initMerge?(c&&d.push(this.videoTrack),u&&d.push(this.audioTrack),n=Sn.initSegment(d)):(c&&(e=Sn.initSegment([this.videoTrack])),u&&(t=Sn.initSegment([this.audioTrack])))),c&&s.hasSample()&&(r=this._remuxVideo()),u&&l.hasSample()&&(i=this._remuxAudio()),s.samples=[],l.samples=[],{initSegment:n,videoInitSegment:e,audioInitSegment:t,videoSegment:r,audioSegment:i}}},{key:"_remuxVideo",value:function(){var e=this.videoTrack;this.forceFirstIDR&&(e.samples[0].flag={dependsOn:2,isNonSyncSample:0});var t=e.samples,n=/av01/.test(e.codec),r=0;n?t.forEach(function(e){r+=e.data.byteLength}):t.forEach(function(e){r+=e.units.reduce(function(e,t){return e+t.byteLength},0),r+=4*e.units.length});var i=new Uint8Array(r);if(n)for(var o,a=0,s=t.length,l=0;a<s;a++)o=t[a],i.set(o.data,l),o.size=o.data.byteLength,l+=o.size;else for(var c,u=new DataView(i.buffer),d=function(e,n){n=t[h];var r=0;n.units.forEach(function(t){u.setUint32(e,t.byteLength),e+=4,i.set(t,e),e+=t.byteLength,r+=4+t.byteLength}),n.size=r,p=e,c=n},h=0,f=t.length,p=0;h<f;h++)d(p,c);var g=Sn.mdat(i),m=Sn.moof([e]);return Bt(m,g)}},{key:"_remuxAudio",value:function(){var e=this.audioTrack,t=new Uint8Array(e.samples.reduce(function(e,t){return e+t.size},0));e.samples.reduce(function(e,n){return t.set(n.data,e),e+n.size},0);var n=Sn.mdat(t),r=Sn.moof([e]);return Bt(r,n)}},{key:"reset",value:function(){this.videoTrack.reset(),this.audioTrack.reset()}}]),e}(),kn=o(o({},Ne),{},{STREAM_PARSED:"core.streamparsed",NO_AUDIO_TRACK:"core.noaudiotrack",SUBTITLE_SEGMENTS:"core.subtitlesegments",SUBTITLE_PLAYLIST:"core.subtitleplaylist",SEI_PAYLOAD_TIME:"core.seipayloadtime",APPEND_COST:"core.appendcost"}),On=new we("Transmuxer"),Mn=function(){function e(t,n,r,i){u(this,e),f(this,"_initSegmentId",""),this.hls=t,this._demuxer=n?new wn:new un(null,null,null,i),this._isMP4=n,r&&(this._remuxer=new Tn(this._demuxer.videoTrack,this._demuxer.audioTrack))}return h(e,[{key:"transmux",value:function(e,t,n,r,i,a){var s=this._demuxer;try{this._isMP4?s.demux(e,t):s.demuxAndFix(Fe(e,t),n,r,i)}catch(B){throw new ve(ge.DEMUX,ge.SUB_TYPES.HLS,B)}var l=s.videoTrack,c=s.audioTrack,u=s.metadataTrack,d={codec:l.codec,timescale:l.timescale,firstDts:l.firstDts/l.timescale,firstPts:l.firstPts/l.timescale,duration:l.samplesDuration/l.timescale},h={codec:c.codec,timescale:c.timescale,firstDts:c.firstDts/l.timescale,firstPts:c.firstPts/l.timescale,duration:c.samplesDuration/l.timescale,container:c.container},f="".concat(l.codec,"/").concat(l.width,"/").concat(l.height,"/").concat(c.codec,"/").concat(c.config);if(f!==this._initSegmentId&&(this._initSegmentId=f,a=!0),this._fireEvents(l,c,u,n||a),this.hls.emit(kn.DEMUXED_TRACK,{videoTrack:l,audioTrack:c}),!this._remuxer)return[l,c];a&&this.hls.isLive&&!this.hls.config.mseLowLatency&&(l.duration=this.hls.totalDuration*l.timescale,c.duration=this.hls.totalDuration*c.timescale);try{var p=this._remuxer.remux(a),g=p.videoInitSegment,m=p.videoSegment,v=p.audioInitSegment,A=p.audioSegment,b=Fe(g,m),y=Fe(v,A);return[b?o(o({},d),{},{data:b}):void 0,y?o(o({},h),{},{data:y}):void 0]}catch(B){throw new ve(ge.REMUX,ge.SUB_TYPES.FMP4,B)}}},{key:"_fireEvents",value:function(e,t,n,r){var i=this,a=[e,t],s="discontinuity: ".concat(r);a.forEach(function(e){var t;null!==(t=e.samples)&&void 0!==t&&t.length&&(s+="; ".concat(e.samples.length," ").concat(e.type===vt.VIDEO?"video":"audio"," samples, firstDts/firstPts/duration: ").concat((e.firstDts/e.timescale).toFixed(3),"/").concat((e.firstPts/e.timescale).toFixed(3),"/").concat((e.samplesDuration/e.timescale).toFixed(3))),r&&e.exist()&&i.hls.emit(kn.METADATA_PARSED,{type:e.type,track:e,meta:o({codec:e.codec,timescale:e.timescale,baseDts:e.baseDts},e.type===vt.VIDEO?{width:e.width,height:e.height,sarRatio:e.sarRatio}:{codec:e.codec,channelCount:e.channelCount,sampleRate:e.sampleRate})})}),On.debug(s),e.warnings.forEach(function(e){var t;switch(e.type){case yt.LARGE_AV_SHIFT:t=kn.LARGE_AV_FIRST_FRAME_GAP_DETECT;break;case yt.LARGE_VIDEO_GAP:t=kn.LARGE_VIDEO_DTS_GAP_DETECT;break;case yt.LARGE_VIDEO_GAP_BETWEEN_CHUNK:t=kn.MAX_DTS_DELTA_WITH_NEXT_SEGMENT_DETECT;break}t&&i.hls.emit(kn.STREAM_EXCEPTION,o(o({},e),{},{type:t})),On.warn("video exception",e)}),t.warnings.forEach(function(e){var t;switch(e.type){case yt.LARGE_AUDIO_GAP:t=kn.LARGE_AUDIO_DTS_GAP_DETECT;break;case yt.AUDIO_FILLED:t=kn.AUDIO_GAP_DETECT;break;case yt.AUDIO_DROPPED:t=kn.AUDIO_OVERLAP_DETECT;break}t&&i.hls.emit(kn.STREAM_EXCEPTION,o(o({},e),{},{type:t})),On.warn("audio exception",e)}),e.samples.forEach(function(e){e.keyframe&&i.hls.emit(kn.KEYFRAME,{pts:e.pts})}),n.seiSamples.forEach(function(e){i.hls.emit(kn.SEI,o(o({},e),{},{originPts:e.originPts/90,sei:{code:e.data.type,content:e.data.payload,dts:e.pts}}))})}}]),e}(),In=["data"],Dn=["data"],Nn=new we("BufferService"),Rn=function(){function e(t){var n=this;u(this,e),f(this,"_decryptor",new yn),f(this,"_transmuxer",null),f(this,"_mse",null),f(this,"_softVideo",null),f(this,"_sourceCreated",!1),f(this,"_needInitSegment",!0),f(this,"_directAppend",!1),this.hls=t,t.config.softDecode?this._softVideo=t.media:(this._mse=new De(null,{preferMMS:t.config.preferMMS}),t.config.url&&this._mse.bindMedia(t.media).then(function(e){n.hls.emit(Ne.MEDIASOURCE_OPENED,e)})),t.config.decryptor&&(this._decryptor.externalDecryptor=t.config.decryptor)}return h(e,[{key:"baseDts",get:function(){var e,t,n;return null===(e=this._transmuxer)||void 0===e||null===(t=e._demuxer)||void 0===t||null===(n=t._fixer)||void 0===n?void 0:n._baseDts}},{key:"nbSb",get:function(){var e;return null!==(e=this._mse)&&void 0!==e&&e._sourceBuffer?Object.keys(this._mse._sourceBuffer).length:0}},{key:"msIsOpened",get:function(){var e;return null===(e=this._mse)||void 0===e?void 0:e.isOpened}},{key:"msHasOpTasks",get:function(){var e;return null===(e=this._mse)||void 0===e?void 0:e.hasOpTasks}},{key:"msStreaming",get:function(){var e;return null===(e=this._mse)||void 0===e?void 0:e.streaming}},{key:"updateDuration",value:function(){var e=c(a().mark(function e(t){return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(Nn.debug("update duration",t),!this._mse){e.next=9;break}if(this._mse.isOpened){e.next=5;break}return e.next=5,this._mse.open();case 5:return e.next=7,this._mse.updateDuration(t);case 7:e.next=10;break;case 9:this._softVideo&&(this._softVideo.duration=t);case 10:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}()},{key:"createSource",value:function(e,t,n,r){if(!this._sourceCreated){var i=e||t;if(i){if(un.probe(i))this._transmuxer||(this._transmuxer=new Mn(this.hls,!1,!this._softVideo,this.hls.config.fixerConfig));else{if(!fn.probe(i))throw new ve(ge.OTHER,null,null,null,"unsupported stream");if(this._softVideo)this._transmuxer||(this._transmuxer=new Mn(this.hls,!0,null,this.hls.config.fixerConfig));else{this._directAppend=!0;var o=!1;e&&!n&&fn.findBox(e,["moov","trak"]).forEach(function(e){var t=fn.findBox(e.data,["trak","mdia","minf","stbl","stsd"])[0];if(t){var i=fn.stsd(t).entries[0];if(i)if(i.hvcC)n=i.hvcC.codec||"hev1.1.6.L93.B0";else if(i.avcC)n=i.avcC.codec;else if(i.sampleRate||i.esds){var a;r=(null===(a=i.esds)||void 0===a?void 0:a.codec)||"mp4a.40.2",o=!0}}}),t&&!r&&fn.findBox(t,["moov","trak","mdia","minf","stbl","stsd"]).forEach(function(e){var t=fn.stsd(e).entries[0];t&&t.esds&&(r=t.esds.codec)}),e&&!n&&(n="avc1.42e01e"),t&&!r&&(r="mp4a.40.2"),o&&(n+=", ".concat(r),r=""),this._createMseSource(n,r)}}this._softVideo&&(this._sourceCreated=!0)}}}},{key:"appendBuffer",value:function(){var e=c(a().mark(function e(t,n,r,i,o,s,l){var c,u,d,h,f,p,g,m,v,A,y,w,_,E,S,C=this;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(null!==r&&void 0!==r&&r.length||null!==i&&void 0!==i&&i.length){e.next=2;break}return e.abrupt("return");case 2:if(c=function(){var e,n;null!==(e=C.hls)&&void 0!==e&&e.emit&&(null===(n=C.hls)||void 0===n||n.emit(Ne.APPEND_BUFFER,{start:t.start,end:t.end}))},!this._directAppend){e.next=8;break}return u=[],r&&u.push(this._mse.append(De.VIDEO,r)),i&&u.push(this._mse.append(De.AUDIO,i)),e.abrupt("return",Promise.all(u).then(c));case 8:if(d=this._needInitSegment||o,h=this._transmuxer.transmux(r,i,d,s,l,this._needInitSegment||o),f=x(h,2),p=f[0],g=f[1],i&&n&&(null===n||void 0===n||n.setTrackExist(!1,!0)),i&&t&&(null===t||void 0===t||t.setTrackExist(!0,!1)),n||null===t||void 0===t||t.setTrackExist(!!p,!!g),p&&!g&&this.hls.emit(kn.NO_AUDIO_TRACK),!this._softVideo){e.next=20;break}this._softVideo.appendBuffer(p,g),this._needInitSegment=!1,c(),e.next=32;break;case 20:if(!this._mse){e.next=32;break}return m=!this._sourceCreated,m&&this._createMseSource(null===p||void 0===p?void 0:p.codec,null===g||void 0===g?void 0:g.codec,null===g||void 0===g?void 0:g.container),this._needInitSegment=!1,v=this._mse,A=[],d&&!m&&this._handleCodecChange(p,g).forEach(function(e){return A.push(e)}),p&&(y=p.data,w=b(p,In),A.push(v.append(De.VIDEO,y,w))),g&&(_=g.data,E=b(g,Dn),A.push(v.append(De.AUDIO,_,E))),S=Promise.all(A),S.then(c),e.abrupt("return",S);case 32:case"end":return e.stop()}},e,this)}));function t(t,n,r,i,o,a,s){return e.apply(this,arguments)}return t}()},{key:"removeBuffer",value:function(){var e=c(a().mark(function e(){var t,n,r,i=this,o=arguments;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(t=o.length>0&&void 0!==o[0]?o[0]:0,n=o.length>1&&void 0!==o[1]?o[1]:1/0,r=this.hls.media,!(!this._mse||!r||t<0||n<t||t>=this._mse.duration)){e.next=5;break}return e.abrupt("return");case 5:return e.abrupt("return",this._mse.clearBuffer(t,n).then(function(){return i.hls.emit(Ne.REMOVE_BUFFER,{start:t,end:n,removeEnd:n})}));case 6:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"evictBuffer",value:function(){var e=c(a().mark(function e(t){var n,r,i,o;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(n=this.hls.media,this._mse&&n&&t&&!(t<0)){e.next=3;break}return e.abrupt("return");case 3:if(r=n.currentTime,i=r-t,!(i<=0)){e.next=7;break}return e.abrupt("return");case 7:if(o=fe.start(fe.get(n)),!(o+1>=i)){e.next=10;break}return e.abrupt("return");case 10:return e.abrupt("return",this.removeBuffer(0,i));case 11:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}()},{key:"clearAllBuffer",value:function(){var e=c(a().mark(function e(){return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!this._mse){e.next=2;break}return e.abrupt("return",this._mse.clearAllBuffer());case 2:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"decryptBuffer",value:function(e,t){return this._decryptor.decrypt(e,t)}},{key:"reset",value:function(){var e=c(a().mark(function e(){var t,n=arguments;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]&&n[0],!this._mse||t){e.next=8;break}return this._transmuxer=null,this._sourceCreated=!1,e.next=6,this._mse.unbindMedia();case 6:return e.next=8,this._mse.bindMedia(this.hls.media);case 8:this._needInitSegment=!0,this._directAppend=!1;case 10:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"endOfStream",value:function(){var e=c(a().mark(function e(){return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!this._mse){e.next=5;break}if(!this._sourceCreated){e.next=5;break}return e.next=4,this._mse.endOfStream();case 4:this.hls.emit(Ne.BUFFEREOS);case 5:this._softVideo&&this._softVideo.endOfStream();case 6:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"setLiveSeekableRange",value:function(){var e=c(a().mark(function e(t,n){return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:this._mse&&this._mse.setLiveSeekableRange(t,n);case 1:case"end":return e.stop()}},e,this)}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"detachMedia",value:function(){var e=c(a().mark(function e(){return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!this._mse){e.next=3;break}return e.next=3,this._mse.unbindMedia();case 3:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"destroy",value:function(){var e=c(a().mark(function e(){var t;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:return null===(t=this._decryptor)||void 0===t||t.destroy(),e.next=3,this.detachMedia();case 3:this._decryptor=null,this._mse=null,this._softVideo=null;case 6:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"_createMseSource",value:function(e,t,n){Nn.debug("create mse source, videoCodec=".concat(e,", audioCodec=").concat(t));var r=this._mse;r&&(e&&(r.createSource(De.VIDEO,"video/mp4;codecs=".concat(e)),this._sourceCreated=!0),t?(r.createSource(De.AUDIO,"audio/mp4;codecs=".concat(t)),this._sourceCreated=!0):n&&(r.createSource(De.AUDIO,"".concat(n,';codecs=""')),this._sourceCreated=!0),this.hls.emit(Ne.SOURCEBUFFER_CREATED))}},{key:"_handleCodecChange",value:function(e,t){var n=[],r=this._mse,i=[{type:De.VIDEO,codecs:null===e||void 0===e?void 0:e.codec},{type:De.AUDIO,codecs:null===t||void 0===t?void 0:t.codec}];return i.filter(function(e){return!!e.codecs}).forEach(function(e){var t=e.type,i=e.codecs,o=r.getSourceBuffer(t);if(o){var a=i.split(",")[0];new RegExp(a,"ig").test(o.mimeType)||n.push(r.changeType(t,"".concat(t,"/mp4;codecs=").concat(i)))}}),n}},{key:"seamlessSwitch",value:function(){this._needInitSegment=!0}},{key:"isFull",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:De.VIDEO;return null===(e=this._mse)||void 0===e?void 0:e.isFull(t)}}]),e}();function Ln(e){var t=(null===e||void 0===e?void 0:e.media)||document.createElement("video");return o(o({maxPlaylistSize:50,retryCount:3,retryDelay:1e3,pollRetryCount:2,loadTimeout:1e4,manifestLoadTimeout:1e4,preloadTime:30,softDecode:!1,bufferBehind:10,maxJumpDistance:3,startTime:0,useLowLatency:!0,targetLatency:10,maxLatency:20,allowedStreamTrackChange:!0,seiInTime:!1,manifestList:[],minSegmentsStartPlay:3,preferMMS:!1,preferMMSStreaming:!1,mseLowLatency:!0,fixerConfig:{forceFixLargeGap:!1,largeGapThreshold:5}},e),{},{media:t})}var Bn={FETCH:"fetch",XHR:"xhr"},Pn={ARRAY_BUFFER:"arraybuffer",TEXT:"text",JSON:"json"},Fn=function(e){V(n,e);var t=ie(n);function n(e,r,i,o){var a;return Q(this,n),a=t.call(this,o),G(ne(a),"retryCount",0),G(ne(a),"isTimeout",!1),G(ne(a),"loaderType",Bn.FETCH),G(ne(a),"startTime",0),G(ne(a),"endTime",0),G(ne(a),"options",{}),a.url=e,a.request=r,a.response=i,a}return W(n)}(Z(Error)),$n=Object.prototype.toString;function jn(e){return null!==e&&"object"===j(e)}function Hn(e){if("[object Object]"!==$n.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function Un(e){return"[object Date]"===$n.call(e)}function Qn(e){if(e&&null!==e[0]&&void 0!==e[0]&&(0!==e[0]||null!==e[1]&&void 0!==e[1])){var t="bytes="+e[0]+"-";return e[1]&&(t+=e[1]),t}}function zn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Wn(e,t){if(e){if(!t)return e;var n,r=Object.keys(t).map(function(e){if(n=t[e],null!==n&&void 0!==n)return Array.isArray(n)?e+="[]":n=[n],n.map(function(t){return Un(t)?t=t.toISOString():jn(t)&&(t=JSON.stringify(t)),"".concat(zn(e),"=").concat(zn(t))}).join("&")}).filter(Boolean).join("&");if(r){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}}function Gn(e,t,n,r,i,o,a,s,l,c,u){i=null!==i&&void 0!==i?parseFloat(i):null,r=parseInt(r||"0",10),Number.isNaN(r)&&(r=0);var d={range:l,vid:c,index:s,contentLength:r,age:i,startTime:o,firstByteTime:a,endTime:Date.now(),priOptions:u};return{data:e,done:t,options:d,response:n}}function Vn(e,t){return Math.round(8*e*1e3/t/1024)}var Kn=2097152,Yn=function(e){V(n,e);var t=ie(n);function n(){var e;return Q(this,n),e=t.call(this),G(ne(e),"_abortController",null),G(ne(e),"_timeoutTimer",null),G(ne(e),"_reader",null),G(ne(e),"_response",null),G(ne(e),"_aborted",!1),G(ne(e),"_index",-1),G(ne(e),"_range",null),G(ne(e),"_receivedLength",0),G(ne(e),"_running",!1),G(ne(e),"_logger",null),G(ne(e),"_vid",""),G(ne(e),"_firtstByte",0),G(ne(e),"_onProcessMinLen",0),G(ne(e),"_onCancel",null),G(ne(e),"_priOptions",null),e}return W(n,[{key:"load",value:function(e){var t,n=this,r=e.url,i=e.vid,o=e.timeout,a=e.responseType,s=e.onProgress,l=e.index,c=e.onTimeout,u=e.onCancel,d=e.range,h=e.transformResponse,f=e.request,p=e.params,g=e.logger,m=e.method,v=e.headers,A=e.body,b=e.mode,y=e.credentials,w=e.cache,_=e.redirect,x=e.referrer,E=e.referrerPolicy,S=e.onProcessMinLen,C=e.priOptions,T=e.streamRes,k=e.firstMaxChunkSize;this._logger=g,this._aborted=!1,this._onProcessMinLen=S,this._onCancel=u,this._abortController="undefined"!==typeof AbortController&&new AbortController,this._running=!0,this._index=l,this._range=d||[0,0],this._vid=i||r,this._priOptions=C||{},this._firstMaxChunkSize=k;var O={method:m,headers:v,body:A,mode:b,credentials:y,cache:w,redirect:_,referrer:x,referrerPolicy:E,signal:null===(t=this._abortController)||void 0===t?void 0:t.signal},M=!1;clearTimeout(this._timeoutTimer),r=Wn(r,p);var I=Qn(d);I&&(v=f?f.headers:O.headers=O.headers||(Headers?new Headers:{}),Headers&&v instanceof Headers?v.append("Range",I):v.Range=I),o&&(this._timeoutTimer=setTimeout(function(){if(M=!0,n.cancel(),c){var e=new Fn(r,O,null,"timeout");e.isTimeout=!0,c(e,{index:n._index,range:n._range,vid:n._vid,priOptions:n._priOptions})}},o));var D=Date.now();return this._logger.debug("[fetch load start], index,",l,",range,",d),new Promise(function(e,t){var i=T?new Promise(function(e){e(T)}):fetch(f||r,f?void 0:O);i.then(function(){var i=U($().mark(function i(o){var c,u,f,p;return $().wrap(function(i){while(1)switch(i.prev=i.next){case 0:if(clearTimeout(n._timeoutTimer),n._response=o,!n._aborted&&n._running){i.next=4;break}return i.abrupt("return");case 4:if(h&&(o=h(o,r)||o),o.ok){i.next=7;break}throw new Fn(r,O,o,"bad network response");case 7:if(c=Date.now(),a!==Pn.TEXT){i.next=15;break}return i.next=11,o.text();case 11:u=i.sent,n._running=!1,i.next=37;break;case 15:if(a!==Pn.JSON){i.next=22;break}return i.next=18,o.json();case 18:u=i.sent,n._running=!1,i.next=37;break;case 22:if(!s){i.next=29;break}return n.resolve=e,n.reject=t,n._loadChunk(o,s,D,c),i.abrupt("return");case 29:return i.next=31,o.arrayBuffer();case 31:u=i.sent,u=new Uint8Array(u),n._running=!1,f=Date.now()-D,p=Vn(u.byteLength,f),n.emit(Ne.REAL_TIME_SPEED,{speed:p,len:u.byteLength,time:f,vid:n._vid,index:n._index,range:n._range,priOptions:n._priOptions});case 37:n._logger.debug("[fetch load end], index,",l,",range,",d),e(Gn(u,!0,o,o.headers.get("Content-Length"),o.headers.get("age"),D,c,l,d,n._vid,n._priOptions));case 39:case"end":return i.stop()}},i)}));return function(e){return i.apply(this,arguments)}}()).catch(function(e){var i;clearTimeout(n._timeoutTimer),n._running=!1,n._aborted&&!M||(e=e instanceof Fn?e:new Fn(r,O,null,null===(i=e)||void 0===i?void 0:i.message),e.startTime=D,e.endTime=Date.now(),e.isTimeout=M,e.options={index:n._index,range:n._range,vid:n._vid,priOptions:n._priOptions},t(e))})})}},{key:"cancel",value:function(){var e=U($().mark(function e(){return $().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!this._aborted){e.next=2;break}return e.abrupt("return");case 2:if(this._aborted=!0,this._running=!1,!this._response){e.next=14;break}if(e.prev=5,!this._reader){e.next=9;break}return e.next=9,this._reader.cancel();case 9:e.next=13;break;case 11:e.prev=11,e.t0=e["catch"](5);case 13:this._response=this._reader=null;case 14:if(this._abortController){try{this._abortController.abort()}catch(B){}this._abortController=null}this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions});case 16:case"end":return e.stop()}},e,this,[[5,11]])}));function t(){return e.apply(this,arguments)}return t}()},{key:"_loadChunk",value:function(e,t,n,r){var i=this;if(!e.body||!e.body.getReader){this._running=!1;var o=new Fn(e.url,"",e,"onProgress of bad response.body.getReader");return o.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},void this.reject(o)}this._onProcessMinLen>0&&(this._cache=new Uint8Array(Kn),this._writeIdx=0);var a,s,l,c=this._reader=e.body.getReader(),u=function(){var o=U($().mark(function o(){var d,h,f,p,g,m,v,A,b,y;return $().wrap(function(o){while(1)switch(o.prev=o.next){case 0:return s=Date.now(),o.prev=1,o.next=4,c.read();case 4:a=o.sent,l=Date.now(),o.next=13;break;case 8:return o.prev=8,o.t0=o["catch"](1),l=Date.now(),i._aborted||(i._running=!1,o.t0.options={index:i._index,range:i._range,vid:i._vid,priOptions:i._priOptions},i.reject(o.t0)),o.abrupt("return");case 13:if(h=(null===(d=i._range)||void 0===d?void 0:d.length)>0?i._range[0]:0,f=h+i._receivedLength,!i._aborted){o.next=19;break}return i._running=!1,t(void 0,!1,{range:[f,f],vid:i._vid,index:i._index,startTime:s,endTime:l,st:n,firstByteTime:r,priOptions:i._priOptions},e),o.abrupt("return");case 19:p=a.value?a.value.byteLength:0,i._receivedLength+=p,i._logger.debug("【fetchLoader,onProgress call】,task,",i._range,", start,",f,", end,",h+i._receivedLength,", done,",a.done),i._onProcessMinLen>0?i._writeIdx+p>=i._onProcessMinLen||a.done?(g=new Uint8Array(i._writeIdx+p),g.set(i._cache.slice(0,i._writeIdx),0),p>0&&g.set(a.value,i._writeIdx),i._writeIdx=0,i._logger.debug("【fetchLoader,onProgress enough】,done,",a.done,",len,",g.byteLength,", writeIdx,",i._writeIdx)):p>0&&i._writeIdx+p<Kn?(i._cache.set(a.value,i._writeIdx),i._writeIdx+=p,i._logger.debug("【fetchLoader,onProgress cache】,len,",p,", writeIdx,",i._writeIdx)):p>0&&(m=new Uint8Array(i._writeIdx+p+2048),i._logger.debug("【fetchLoader,onProgress extra start】,size,",i._writeIdx+p+2048,", datalen,",p,", writeIdx,",i._writeIdx),m.set(i._cache.slice(0,i._writeIdx),0),p>0&&m.set(a.value,i._writeIdx),i._writeIdx+=p,delete i._cache,i._cache=m,i._logger.debug("【fetchLoader,onProgress extra end】,len,",p,", writeIdx,",i._writeIdx)):g=a.value,(g&&g.byteLength>0||a.done)&&(i._firstMaxChunkSize&&(i._firtstByte?i._cacheData&&(A=new Uint8Array(i._cacheData.byteLength+g.byteLength),A.set(i._cacheData,0),A.set(g,i._cacheData.byteLength),g=A,i._cacheData=null):(i._firtstByte++,v=g.slice(0,i._firstMaxChunkSize),i._cacheData=g.slice(i._firstMaxChunkSize),g=v)),t(g,a.done,{range:[i._range[0]+i._receivedLength-(g?g.byteLength:0),i._range[0]+i._receivedLength],vid:i._vid,index:i._index,startTime:s,endTime:l,st:n,firstByteTime:r,priOptions:i._priOptions},e)),a.done?(b=Date.now()-n,y=Vn(i._receivedLength,b),i.emit(Ne.REAL_TIME_SPEED,{speed:y,len:i._receivedLength,time:b,vid:i._vid,index:i._index,range:i._range,priOptions:i._priOptions}),i._running=!1,i._logger.debug("[fetchLoader onProgress end],task,",i._range,",done,",a.done),i.resolve(Gn(a,!0,e,e.headers.get("Content-Length"),e.headers.get("age"),n,r,i._index,i._range,i._vid,i._priOptions))):i._firstMaxChunkSize?setTimeout(function(){u()},0):u();case 25:case"end":return o.stop()}},o,null,[[1,8]])}));return function(){return o.apply(this,arguments)}}();u()}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}}],[{key:"isSupported",value:function(){return!("undefined"===typeof fetch)}}]),n}(Qe());function qn(e){return F({loaderType:Bn.FETCH,retry:0,retryDelay:0,timeout:0,request:null,onTimeout:void 0,onProgress:void 0,onRetryError:void 0,transformRequest:void 0,transformResponse:void 0,transformError:void 0,responseType:Pn.TEXT,range:void 0,url:"",params:void 0,method:"GET",headers:{},body:void 0,mode:void 0,credentials:void 0,cache:void 0,redirect:void 0,referrer:void 0,referrerPolicy:void 0,integrity:void 0,onProcessMinLen:0},e)}var Xn=function(e){V(n,e);var t=ie(n);function n(){var e;return Q(this,n),e=t.call(this),G(ne(e),"_xhr",null),G(ne(e),"_aborted",!1),G(ne(e),"_timeoutTimer",null),G(ne(e),"_range",null),G(ne(e),"_receivedLength",0),G(ne(e),"_url",null),G(ne(e),"_onProgress",null),G(ne(e),"_index",-1),G(ne(e),"_headers",null),G(ne(e),"_currentChunkSizeKB",384),G(ne(e),"_timeout",null),G(ne(e),"_xhr",null),G(ne(e),"_withCredentials",null),G(ne(e),"_startTime",-1),G(ne(e),"_loadCompleteResolve",null),G(ne(e),"_loadCompleteReject",null),G(ne(e),"_runing",!1),G(ne(e),"_logger",!1),G(ne(e),"_vid",""),G(ne(e),"_responseType",void 0),G(ne(e),"_credentials",void 0),G(ne(e),"_method",void 0),G(ne(e),"_transformResponse",void 0),G(ne(e),"_firstRtt",void 0),G(ne(e),"_onCancel",null),G(ne(e),"_priOptions",null),e}return W(n,[{key:"load",value:function(e){var t=this;clearTimeout(this._timeoutTimer),this._logger=e.logger,this._range=e.range,this._onProgress=e.onProgress,this._index=e.index,this._headers=e.headers,this._withCredentials="include"===e.credentials||"same-origin"===e.credentials,this._body=e.body||null,e.method&&(this._method=e.method),this._timeout=e.timeout||null,this._runing=!0,this._vid=e.vid||e.url,this._responseType=e.responseType,this._firstRtt=-1,this._onTimeout=e.onTimeout,this._onCancel=e.onCancel,this._request=e.request,this._priOptions=e.priOptions||{},this._logger.debug("【xhrLoader task】, range",this._range),this._url=Wn(e.url,e.params);var n=Date.now();return new Promise(function(e,n){t._loadCompleteResolve=e,t._loadCompleteReject=n,t._startLoad()}).catch(function(e){if(clearTimeout(t._timeoutTimer),t._runing=!1,!t._aborted)throw e=e instanceof Fn?e:new Fn(t._url,t._request),e.startTime=n,e.endTime=Date.now(),e.options={index:t._index,vid:t._vid,priOptions:t._priOptions},e})}},{key:"_startLoad",value:function(){var e=null;if(this._responseType===Pn.ARRAY_BUFFER&&this._range&&this._range.length>1)if(this._onProgress){this._firstRtt=-1;var t=1024*this._currentChunkSizeKB,n=this._range[0]+this._receivedLength,r=this._range[1];t<this._range[1]-n&&(r=n+t),e=[n,r],this._logger.debug("[xhr_loader->],tast :",this._range,", SubRange, ",e)}else e=this._range,this._logger.debug("[xhr_loader->],tast :",this._range,", allRange, ",e);this._internalOpen(e)}},{key:"_internalOpen",value:function(e){var t=this;try{this._startTime=Date.now();var n=this._xhr=new XMLHttpRequest;n.open(this._method||"GET",this._url,!0),n.responseType=this._responseType,this._timeout&&(n.timeout=this._timeout),n.withCredentials=this._withCredentials,n.onload=this._onLoad.bind(this),n.onreadystatechange=this._onReadyStatechange.bind(this),n.onerror=function(e){var n,r,i;t._running=!1;var o=new Fn(t._url,t._request,null===e||void 0===e||null===(n=e.currentTarget)||void 0===n?void 0:n.response,"xhr.onerror.status:"+(null===e||void 0===e||null===(r=e.currentTarget)||void 0===r?void 0:r.status)+",statusText,"+(null===e||void 0===e||null===(i=e.currentTarget)||void 0===i?void 0:i.statusText));o.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(o)},n.ontimeout=function(e){t.cancel();var n=new Fn(t._url,t._request,{status:408},"timeout");t._onTimeout&&(n.isTimeout=!0,t._onTimeout(n,{index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions})),n.options={index:t._index,range:t._range,vid:t._vid,priOptions:t._priOptions},t._loadCompleteReject(n)};var r=this._headers||{},i=Qn(e);i&&(r.Range=i),r&&Object.keys(r).forEach(function(e){n.setRequestHeader(e,r[e])}),this._logger.debug("[xhr.send->] tast,",this._range,",load sub range, ",e),n.send(this._body)}catch(o){o.options={index:this._index,range:e,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(o)}}},{key:"_onReadyStatechange",value:function(e){var t=e.target;2===t.readyState&&this._firstRtt<0&&(this._firstRtt=Date.now())}},{key:"_onLoad",value:function(e){var t,n=e.target.status;if(n<200||n>299){var r=new Fn(this._url,null,F(F({},e.target.response),{},{status:n}),"bad response,status:"+n);return r.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},this._loadCompleteReject(r)}var i,o=null,a=!1,s=(null===(t=this._range)||void 0===t?void 0:t.length)>0?this._range[0]:0;if(this._responseType===Pn.ARRAY_BUFFER){var l,c=new Uint8Array(e.target.response);if(i=s+this._receivedLength,c&&c.byteLength>0){this._receivedLength+=c.byteLength;var u=Date.now()-this._startTime,d=Vn(this._receivedLength,u);this.emit(Ne.REAL_TIME_SPEED,{speed:d,len:this._receivedLength,time:u,vid:this._vid,index:this._index,range:[i,s+this._receivedLength],priOptions:this._priOptions})}o=c,a=!((null===(l=this._range)||void 0===l?void 0:l.length)>1&&this._range[1]&&this._receivedLength<this._range[1]-this._range[0]),this._logger.debug("[xhr load done->], tast :",this._range,", start",i,"end ",s+this._receivedLength,",dataLen,",c?c.byteLength:0,",receivedLength",this._receivedLength,",index,",this._index,", done,",a)}else a=!0,o=e.target.response;var h={ok:n>=200&&n<300,status:n,statusText:this._xhr.statusText,url:this._xhr.responseURL,headers:this._getHeaders(this._xhr),body:this._xhr.response};this._transformResponse&&(h=this._transformResponse(h,this._url)||h),this._onProgress&&this._onProgress(o,a,{index:this._index,vid:this._vid,range:[i,s+this._receivedLength],startTime:this._startTime,endTime:Date.now(),priOptions:this._priOptions},h),a?(this._runing=!1,this._loadCompleteResolve&&this._loadCompleteResolve(Gn(this._onProgress?null:o,a,h,h.headers["content-length"],h.headers.age,this._startTime,this._firstRtt,this._index,this._range,this._vid,this._priOptions))):this._startLoad()}},{key:"cancel",value:function(){if(!this._aborted)return this._aborted=!0,this._runing=!1,ae(K(n.prototype),"removeAllListeners",this).call(this),this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions}),this._xhr?this._xhr.abort():void 0}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(e){this._running=e}},{key:"_getHeaders",value:function(e){var t,n=e.getAllResponseHeaders().trim().split("\r\n"),r={},i=ce(n);try{for(i.s();!(t=i.n()).done;){var o=t.value,a=o.split(": ");r[a[0].toLowerCase()]=a.slice(1).join(": ")}}catch(s){i.e(s)}finally{i.f()}return r}}],[{key:"isSupported",value:function(){return"undefined"!==typeof XMLHttpRequest}}]),n}(Qe()),Jn=["retry","retryDelay","onRetryError","transformError"],Zn=function(){function e(t,n){Q(this,e),this.promise=Se(),this.alive=!!n.onProgress,!n.logger&&(n.logger=new we("Loader")),this._loaderType=t,this._loader=t===Bn.FETCH&&"undefined"!==typeof fetch?new Yn:new Xn,this._config=n,this._retryCount=0,this._retryTimer=null,this._canceled=!1,this._retryCheckFunc=n.retryCheckFunc,this._logger=n.logger}return W(e,[{key:"exec",value:function(){var e=this,t=this._config,n=t.retry,r=t.retryDelay,i=t.onRetryError,o=t.transformError,a=te(t,Jn),s=function(){var t=U($().mark(function t(){var l,c,u;return $().wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._loader.load(a);case 3:l=t.sent,e.promise.resolve(l),t.next=27;break;case 7:if(t.prev=7,t.t0=t["catch"](0),e._loader.running=!1,e._logger.debug("[task request catch err]",t.t0),!e._canceled){t.next=13;break}return t.abrupt("return");case 13:if(t.t0.loaderType=e._loaderType,t.t0.retryCount=e._retryCount,c=t.t0,o&&(c=o(c)||c),i&&e._retryCount>0&&i(c,e._retryCount,{index:a.index,vid:a.vid,range:a.range,priOptions:a.priOptions}),e._retryCount++,u=!0,e._retryCheckFunc&&(u=e._retryCheckFunc(t.t0)),!(u&&e._retryCount<=n)){t.next=26;break}return clearTimeout(e._retryTimer),e._logger.debug("[task request setTimeout],retry",e._retryCount,",retry range,",a.range),e._retryTimer=setTimeout(s,r),t.abrupt("return");case 26:e.promise.reject(c);case 27:case"end":return t.stop()}},t,null,[[0,7]])}));return function(){return t.apply(this,arguments)}}();return s(),this.promise}},{key:"cancel",value:function(){var e=U($().mark(function e(){return $().wrap(function(e){while(1)switch(e.prev=e.next){case 0:return clearTimeout(this._retryTimer),this._canceled=!0,this._loader.running=!1,e.abrupt("return",this._loader.cancel());case 4:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"running",get:function(){return this._loader&&this._loader.running}},{key:"loader",get:function(){return this._loader}}]),e}(),er=function(e){V(n,e);var t=ie(n);function n(e){var r;return Q(this,n),r=t.call(this,e),G(ne(r),"type",Bn.FETCH),G(ne(r),"_queue",[]),G(ne(r),"_alive",[]),G(ne(r),"_currentTask",null),G(ne(r),"_finnalUrl",""),G(ne(r),"_config",void 0),r._config=qn(e),r._config.loaderType!==Bn.XHR&&Yn.isSupported()||(r.type=Bn.XHR),r.log=e.logger,r}return W(n,[{key:"isFetch",value:function(){return this.type===Bn.FETCH}},{key:"load",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"!==typeof e&&e?n=e:n.url=e||n.url||this._config.url,n=Object.assign({},this._config,n),n.params&&(n.params=Object.assign({},n.params)),n.headers&&Hn(n.headers)&&(n.headers=Object.assign({},n.headers)),n.body&&Hn(n.body)&&(n.body=Object.assign({},n.body)),n.transformRequest&&(n=n.transformRequest(n)||n),n.logger=this.log;var r=new Zn(this.type,n);return r.loader.on(Ne.REAL_TIME_SPEED,function(e){t.emit(Ne.REAL_TIME_SPEED,e)}),this._queue.push(r),1!==this._queue.length||this._currentTask&&this._currentTask.running||this._processTask(),r.promise}},{key:"cancel",value:function(){var e=U($().mark(function e(){var t;return $().wrap(function(e){while(1)switch(e.prev=e.next){case 0:return t=this._queue.map(function(e){return e.cancel()}).concat(this._alive.map(function(e){return e.cancel()})),this._currentTask&&t.push(this._currentTask.cancel()),this._queue=[],this._alive=[],e.next=6,Promise.all(t);case 6:return e.next=8,$e();case 8:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"_processTask",value:function(){var e=this;if(this._currentTask=this._queue.shift(),this._currentTask){this._currentTask.alive&&this._alive.push(this._currentTask);var t=this._currentTask.exec().catch(function(e){});t&&"function"===typeof t.finally&&t.finally(function(){var t,n;null!==(t=e._currentTask)&&void 0!==t&&t.alive&&(null===(n=e._alive)||void 0===n?void 0:n.length)>0&&(e._alive=e._alive.filter(function(t){return t&&t!==e._currentTask})),e._processTask()})}}}],[{key:"isFetchSupport",value:function(){return Yn.isSupported()}}]),n}(Qe()),tr=h(function e(){u(this,e),f(this,"version",0),f(this,"streams",[]),f(this,"isMaster",!0)}),nr={Audio:"AUDIO",Video:"VIDEO",SubTitle:"SUBTITLE",ClosedCaptions:"CLOSED-CAPTIONS"},rr={CLEAR_KEY:"org.w3.clearkey",FAIRPLAY:["urn:uuid:94ce86fb-07ff-4f43-adb8-93d2fa968ca2","com.apple.streamingkeydelivery"],WIDEVINE:["urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine.alpha","com.widevine"],PLAYREADY:["urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95","com.microsoft.playready"]};function ir(e){for(var t=[],n=0;n<e.length;n++)Array.isArray(e[n])?t=t.concat(ir(e[n])):t.push(e[n]);return t}var or=h(function e(){u(this,e),f(this,"id",0),f(this,"url",""),f(this,"default",!1),f(this,"autoSelect",!1),f(this,"forced",!1),f(this,"group",""),f(this,"name",""),f(this,"lang",""),f(this,"segments",[]),f(this,"endSN",0)}),ar=function(e){p(n,e);var t=_(n);function n(){var e;u(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),f(y(e),"mediaType",nr.Audio),f(y(e),"channels",0),e}return h(n)}(or),sr=function(e){p(n,e);var t=_(n);function n(){var e;u(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),f(y(e),"mediaType",nr.SubTitle),e}return h(n)}(or),lr=h(function e(){u(this,e),f(this,"id",0),f(this,"bitrate",0),f(this,"width",0),f(this,"height",0),f(this,"name",""),f(this,"url",""),f(this,"audioCodec",""),f(this,"videoCodec",""),f(this,"textCodec",""),f(this,"audioGroup",""),f(this,"audioStreams",[]),f(this,"subtitleStreams",[]),f(this,"closedCaptionsStream",[])}),cr=h(function e(){u(this,e),f(this,"version",0),f(this,"url",""),f(this,"type",""),f(this,"startCC",0),f(this,"endCC",0),f(this,"startSN",0),f(this,"endSN",0),f(this,"totalDuration",0),f(this,"targetDuration",0),f(this,"partTargetDuration",0),f(this,"canSkipUntil",0),f(this,"canSkipDateRanges",!1),f(this,"skippedSegments",0),f(this,"canBlockReload",!1),f(this,"partHoldBack",0),f(this,"live",!0),f(this,"lowLatency",!1),f(this,"endPartIndex",0),f(this,"segments",[]),f(this,"dateRanges",{}),f(this,"skippedSegments",0)}),ur=function(){function e(t){u(this,e),f(this,"sn",0),f(this,"cc",0),f(this,"url",""),f(this,"parentUrl",""),f(this,"title",""),f(this,"start",0),f(this,"duration",0),f(this,"dataTime",""),f(this,"key",null),f(this,"byteRange",null),f(this,"isInitSegment",!1),f(this,"initSegment",null),f(this,"isLast",!1),f(this,"hasAudio",!1),f(this,"hasVideo",!1),f(this,"independent",!1),f(this,"partIndex",0),this.parentUrl=t}return h(e,[{key:"end",get:function(){return this.start+this.duration}},{key:"setTrackExist",value:function(e,t){this.hasVideo=e,this.hasAudio=t}},{key:"setByteRange",value:function(e,t){this.byteRange=[0];var n=e.split("@");1===n.length&&t&&t.byteRange?(this.byteRange[0]=t.byteRange[1]||0,this.byteRange[0]&&(this.byteRange[0]+=1)):this.byteRange[0]=parseInt(n[1]),this.byteRange[1]=this.byteRange[0]+parseInt(n[0])-1}}]),e}(),dr=function(){function e(t){u(this,e),f(this,"method",""),f(this,"url",""),f(this,"iv",null),f(this,"keyFormat",""),f(this,"keyFormatVersions",""),t instanceof e&&(this.method=t.method,this.url=t.url,this.keyFormat=t.keyFormat,this.keyFormatVersions=t.keyFormatVersions,t.iv&&(this.iv=new Uint8Array(t.iv)))}return h(e,[{key:"clone",value:function(t){var n=new e(this);return null!==t&&void 0!==t&&n.setIVFromSN(t),n}},{key:"setIVFromSN",value:function(e){if(!this.iv&&"AES-128"===this.method&&"number"===typeof e&&this.url){this.iv=new Uint8Array(16);for(var t=12;t<16;t++)this.iv[t]=e>>8*(15-t)&255}}},{key:"isSegmentEncrypted",value:function(){var e=this.method;return"AES-128"===e}},{key:"isValidKeySystem",value:function(){var e=ir([rr.CLEAR_KEY,rr.FAIRPLAY,rr.WIDEVINE,rr.PLAYREADY]).indexOf(this.keyFormat)>-1;if(!e)return!1;var t=["SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)>-1;return!!t}},{key:"isSupported",value:function(){return!!this.method&&(!!this.isSegmentEncrypted()||!!this.isValidKeySystem())}}]),e}(),hr=function(){function e(t,n,r){u(this,e),this.msn=t,this.part=n,this.skip=r}return h(e,[{key:"addDirectives",value:function(e){var t=new self.URL(e);return void 0!==this.msn&&t.searchParams.set("_HLS_msn",this.msn.toString()),this.part&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}]),e}(),fr=/^#(EXT[^:]*)(?::(.*))?$/,pr=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g,gr=/^(?:[a-zA-Z0-9+\-.]+:)?\/\//,mr=/^((?:[a-zA-Z0-9+\-.]+:)?\/\/[^/?#]*)?([^?#]*\/)?/;function vr(e){return e.split(/[\r\n]/).map(function(e){return e.trim()}).filter(Boolean)}function Ar(e){var t=e.match(fr);if(t&&t[1])return[t[1].replace("EXT-X-",""),t[2]]}function br(e){var t={},n=pr.exec(e);while(n)t[n[1]]=n[2]||n[3],n=pr.exec(e);return t}function yr(e,t){if(!t||!e||gr.test(e))return e;var n=mr.exec(t);return n?"/"===e[0]?n[1]+e:n[1]+n[2]+e:e}var wr={audio:[/^mp4a/,/^vorbis$/,/^opus$/,/^flac$/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function _r(e,t){var n=wr[e];if(n&&t&&t.length)for(var r=0;r<n.length;r++)for(var i=0;i<t.length;i++)if(n[r].test(t[i]))return t[i]}function xr(e,t){var n;if(t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e[r]!==t[r]){n=r;break}var i=null;e.DURATION&&(i=parseFloat(e.DURATION),Number.isFinite(i)?e._endDate&&(i=(e._endDate.getTime()-e._startDate.getTime())/1e3):i=null);var o=Er(e.CUE||e["X-CUE"],{pre:!1,post:!1,once:!1});return!!e.ID&&!n&&Number.isFinite(e._startDate.getTime())&&(null===i||i>=0)&&(!("YES"===e.END_ON_NEXT)||!!e.CLASS)&&(!e.CUE||!o.pre&&!o.post||o.pre!==o.post)&&(!("com.apple.hls.interstitial"===e.CLASS)||"X-ASSET-URI"in e||"X-ASSET-LIST"in e)}function Er(e,t){return(e?e.split(/[ ,]+/):[]).reduce(function(e,t){return e[t.toLowerCase()]=!0,e},t)}function Sr(e,t){var n,r=new tr,i=0,o=[],a=[];while(n=e[i++]){var s=Ar(n);if(s){var l=x(s,2),c=l[0],u=l[1];if("VERSION"===c)r.version=parseInt(u);else if("MEDIA"===c&&u){var d=br(u),h=void 0;switch(d.TYPE){case"AUDIO":h=new ar;break;case"SUBTITLES":h=new sr;break;default:h=new or}h.url=yr(d.URI,t),h.default="YES"===d.DEFAULT,h.autoSelect="YES"===d.AUTOSELECT,h.group=d["GROUP-ID"],h.name=d.NAME,h.lang=d.LANGUAGE,d.CHANNELS&&(h.channels=Number(d.CHANNELS.split("/")[0]),Number.isNaN(h.channels)&&(h.channels=0)),"AUDIO"===d.TYPE&&d.URI&&o.push(h),"SUBTITLES"===d.TYPE&&a.push(h)}else if("STREAM-INF"===c&&u){var f=new lr,p=br(u);if(f.bitrate=parseInt(p["AVERAGE-BANDWIDTH"]||p.BANDWIDTH),f.name=p.NAME,f.url=yr(e[i++],t),p.RESOLUTION){var g=p.RESOLUTION.split("x"),m=x(g,2),v=m[0],A=m[1];f.width=parseInt(v),f.height=parseInt(A)}if(p.CODECS){var b=p.CODECS.split(/[ ,]+/).filter(Boolean);f.videoCodec=_r("video",b),f.audioCodec=_r("audio",b),f.textCodec=_r("text",b)}f.audioGroup=p.AUDIO,f.subtitleGroup=p.SUBTITLES,r.streams.push(f)}}}return r.streams.forEach(function(e,t){e.id=t}),o.length&&(o.forEach(function(e,t){e.id=t}),r.streams.forEach(function(e){e.audioGroup&&(e.audioStreams=o.filter(function(t){return t.group===e.audioGroup}))})),a.length&&(a.forEach(function(e,t){e.id=t}),r.streams.forEach(function(e){e.subtitleGroup&&(e.subtitleStreams=a.filter(function(t){return t.group===e.subtitleGroup}))})),r}function Cr(e,t,n){var r=new cr;r.url=t;var i,o=new ur(t),a=null,s=null,l=0,c=0,u=0,d=0,h=!1,f=0;while(i=e[d++])if("#"===i[0]){var p=Ar(i);if(p){var g=x(p,2),m=g[0],v=g[1];switch(m){case"VERSION":r.version=parseInt(v);break;case"PLAYLIST-TYPE":r.type=null===v||void 0===v?void 0:v.toUpperCase();break;case"TARGETDURATION":r.targetDuration=parseFloat(v);break;case"PART-INF":n&&(r.lowLatency=!0);var A=br(v);A["PART-TARGET"]&&(r.partTargetDuration=parseFloat(A["PART-TARGET"]));break;case"SERVER-CONTROL":var b=br(v);r.canBlockReload="YES"===b["CAN-BLOCK-RELOAD"],r.partHoldBack=parseFloat(b["PART-HOLD-BACK"]||0),r.canSkipUntil=parseFloat(b["CAN-SKIP-UNTIL"]||0),r.canSkipDateRanges=r.canSkipUntil>0&&"YES"===b["CAN-SKIP-DATERANGES"];break;case"ENDLIST":h=!0;break;case"MEDIA-SEQUENCE":c=r.startSN=parseInt(v);break;case"DISCONTINUITY-SEQUENCE":u=r.startCC=parseInt(v);break;case"DISCONTINUITY":u++;break;case"BYTERANGE":o.setByteRange(v,r.segments[r.segments.length-1]);break;case"PART":if(!r.lowLatency)break;var y=br(v);o.duration=parseFloat(y["DURATION"]),o.independent="YES"===y["INDEPENDENT"],o.sn=c,o.cc=u,o.partIndex=f,o.start=l,o.duration=parseFloat(y["DURATION"]),l+=o.duration,o.url=yr(y["URI"],t),s&&(o.key=s.clone(c)),a&&(o.initSegment=a),r.segments.push(o),o=new ur(t),f++;break;case"PRELOAD-HINT":var w=br(v);if(r.preloadHint=w,"PART"===w["TYPE"]&&w["URI"]){var _=w["URI"].split(".ts")[0].split("-");r.nextSN=_[3],r.nextIndex=_[_.length-1]}break;case"PROGRAM-DATE-TIME":o.dataTime=v;break;case"EXTINF":if(r.lowLatency){f=0;break}var E=v.split(","),S=x(E,2),C=S[0],T=S[1];o.start=l,o.duration=parseFloat(C),l+=o.duration,o.title=T;break;case"KEY":var k=br(v);if("NONE"===k.METHOD){s=null;break}if(s=new dr,s.method=k.METHOD,s.url=/^blob:/.test(k.URI)?k.URI:yr(k.URI,t),s.keyFormat=k.KEYFORMAT||"identity",s.keyFormatVersions=k.KEYFORMATVERSIONS,!s.isSupported())throw new Error("encrypt ".concat(k.METHOD,"/").concat(k.KEYFORMAT," is not supported"));if(k.IV){var O=k.IV.slice(2);O=(1&O.length?"0":"")+O,s.iv=new Uint8Array(O.length/2);for(var M=0,I=O.length/2;M<I;M++)s.iv[M]=parseInt(O.slice(2*M,2*M+2),16)}break;case"MAP":var D=br(v);o.url=yr(D.URI,t),D.BYTERANGE&&o.setByteRange(D.BYTERANGE),o.isInitSegment=!0,o.sn=0,s&&(o.key=s.clone(0)),a=o,o=new ur(t);break;case"SKIP":var N=br(v),R=parseInt(N["SKIPPED-SEGMENTS"],10);R<=Number.MAX_SAFE_INTEGER&&(r.skippedSegments+=R,c+=R);break;case"DATERANGE":var L=br(v),B=r.dateRanges[L.ID];L._startDate=B?B._startDate:new Date(L["START-DATE"]);var P=(null===B||void 0===B?void 0:B._endDate)||new Date(L.END_DATE);Number.isFinite(P)&&(L._endDate=P),(xr(L,B)||r.skippedSegments)&&(r.dateRanges[L.ID]=L);break}}}else{if(r.lowLatency){c++;continue}o.sn=c,o.cc=u,o.url=yr(i,t),s&&(o.key=s.clone(c)),a&&(o.initSegment=a),r.segments.push(o),o=new ur(t),c++}r.segments=r.segments.filter(function(e){return 0!==e.duration});var F=r.segments[r.segments.length-1];return F&&(h&&(F.isLast=!0),r.endSN=F.sn,r.endPartIndex=F.partIndex),h&&(r.live=!1),r.totalDuration=l,r.endCC=u,r}var Tr=function(){function e(){u(this,e)}return h(e,null,[{key:"parse",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;if(!t.includes("#EXTM3U"))throw new Error("Invalid m3u8 file");var i=vr(t);return e.isMediaPlaylist(t)?Cr(i,n,r):Sr(i,n)}},{key:"isMediaPlaylist",value:function(e){return e.includes("#EXTINF:")||e.includes("#EXT-X-TARGETDURATION:")}}]),e}(),kr=function(){function e(t){var n=this;u(this,e),f(this,"_emitOnLoaded",function(e,t){var r=e.response,i=e.options,o=i||{},a=o.firstByteTime,s=o.startTime,l=o.endTime,c=o.contentLength,u=l-s;n.hls.emit(Ne.SPEED,{time:u,byteLength:c,url:t}),n.hls.emit(Ne.LOAD_COMPLETE,{url:t,elapsed:u||0}),n.hls.emit(Ne.TTFB,{url:t,responseUrl:r.url,elapsed:a-s}),n.hls.emit(Ne.LOAD_RESPONSE_HEADERS,{headers:r.headers,url:t})}),f(this,"_onLoaderRetry",function(e,t){n.hls.emit(kn.LOAD_RETRY,{error:ve.network(e),retryTime:t})}),this.hls=t,this._timer=null,this._useLowLatency=t.config.useLowLatency;var r=this.hls.config,i=r.retryCount,a=r.retryDelay,s=r.manifestLoadTimeout,l=r.fetchOptions;this._loader=new er(o(o({},l),{},{responseType:"text",retry:i,retryDelay:a,timeout:s,onRetryError:this._onLoaderRetry})),this._audioLoader=new er(o(o({},l),{},{responseType:"text",retry:i,retryDelay:a,timeout:s,onRetryError:this._onLoaderRetry})),this._subtitleLoader=new er(o(o({},l),{},{responseType:"text",retry:i,retryDelay:a,timeout:s,onRetryError:this._onLoaderRetry}))}return h(e,[{key:"load",value:function(){var e=c(a().mark(function e(t,n,r){var i,o,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,E,S;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:return i=[this._loader.load(t)],n&&i.push(this._audioLoader.load(n)),r&&i.push(this._subtitleLoader.load(r)),e.prev=3,e.next=6,Promise.all(i);case 6:if(h=e.sent,f=x(h,3),p=f[0],g=f[1],m=f[2],p){e.next=13;break}return e.abrupt("return",[]);case 13:this._emitOnLoaded(p,t),o=p.data,c=p.response.url||t,n?(s=null===g||void 0===g?void 0:g.data,l=null===m||void 0===m?void 0:m.data,u=(null===g||void 0===g||null===(v=g.response)||void 0===v?void 0:v.url)||n,d=(null===m||void 0===m||null===(A=m.response)||void 0===A?void 0:A.url)||r,s&&this._emitOnLoaded(g,n),l&&this._emitOnLoaded(m,r)):(l=null===g||void 0===g?void 0:g.data,d=(null===g||void 0===g||null===(b=g.response)||void 0===b?void 0:b.url)||r,l&&this._emitOnLoaded(g,r)),e.next=22;break;case 19:throw e.prev=19,e.t0=e["catch"](3),ve.network(e.t0);case 22:if(y=this.hls.config.onPreM3U8Parse,e.prev=23,y&&(o=y(o)||o,s&&(s=y(s,!0)||s),l&&(l=y(l,!0)||l)),w=Tr.parse(o,c,this._useLowLatency),!1!==(null===(S=w)||void 0===S?void 0:S.live)||!w.segments||w.segments.length){e.next=28;break}throw new Error("empty segments list");case 28:s&&(_=Tr.parse(s,u,this._useLowLatency)),l&&(E=Tr.parse(l,d,this._useLowLatency)),e.next=35;break;case 32:throw e.prev=32,e.t1=e["catch"](23),new ve(ge.MANIFEST,ge.SUB_TYPES.HLS,e.t1);case 35:return w&&(w.isMaster?this.hls.emit(kn.HLS_MANIFEST_LOADED,{playlist:w}):(this._useLowLatency&&(w.canBlockReload?this.deliveryDirectives=new hr(w.nextSN,w.nextIndex,""):this.deliveryDirectives=null),this.hls.emit(kn.HLS_LEVEL_LOADED,{playlist:w}))),e.abrupt("return",[w,_,E]);case 37:case"end":return e.stop()}},e,this,[[3,19],[23,32]])}));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"parseText",value:function(e,t){var n,r=this.hls.config.onPreM3U8Parse;try{var i;if(r&&(e=r(e)||e),n=Tr.parse(e,t,this._useLowLatency),!1===(null===(i=n)||void 0===i?void 0:i.live)&&n.segments&&!n.segments.length)throw new Error("empty segments list")}catch(B){throw new ve(ge.MANIFEST,ge.SUB_TYPES.HLS,B)}return n&&(n.isMaster?this.hls.emit(kn.HLS_MANIFEST_LOADED,{playlist:n}):this.hls.emit(kn.HLS_LEVEL_LOADED,{playlist:n})),[n]}},{key:"poll",value:function(e,t,n,r,i,o){var s=this;clearTimeout(this._timer),o=o||3e3;var l=this.hls.config.pollRetryCount,u=function(){var d=c(a().mark(function c(){var d,h;return a().wrap(function(a){while(1)switch(a.prev=a.next){case 0:return clearTimeout(s._timer),d=e,a.prev=2,s.deliveryDirectives&&(d=s.deliveryDirectives.addDirectives(e)),a.next=6,s.load(d,t,n);case 6:if(h=a.sent,h[0]){a.next=9;break}return a.abrupt("return");case 9:l=s.hls.config.pollRetryCount,r(h[0],h[1],h[2]),a.next=17;break;case 13:a.prev=13,a.t0=a["catch"](2),l--,l<=0&&i(a.t0);case 17:s._timer=setTimeout(u,o);case 18:case"end":return a.stop()}},c,null,[[2,13]])}));return function(){return d.apply(this,arguments)}}();this._timer=setTimeout(u,o)}},{key:"stopPoll",value:function(){return clearTimeout(this._timer),this.cancel()}},{key:"cancel",value:function(){return Promise.all([this._loader.cancel(),this._audioLoader.cancel()])}}]),e}();function Or(e,t,n){return t>n&&(n=t),Math.min(Math.max(e,t),n)}var Mr=new we("playlist"),Ir=function(){function e(t,n,r){u(this,e),f(this,"live",void 0),f(this,"id",0),f(this,"bitrate",0),f(this,"width",0),f(this,"height",0),f(this,"name",""),f(this,"url",""),f(this,"audioCodec",""),f(this,"videoCodec",""),f(this,"textCodec",""),f(this,"startCC",0),f(this,"endCC",0),f(this,"startSN",0),f(this,"endSN",-1),f(this,"totalDuration",0),f(this,"targetDuration",0),f(this,"partTargetDuration",0),f(this,"canSkipUntil",0),f(this,"canSkipDateRanges",!1),f(this,"skippedSegments",0),f(this,"canBlockReload",!1),f(this,"partHoldBack",0),f(this,"lowLatency",!1),f(this,"endPartIndex",0),f(this,"snDiff",null),f(this,"segments",[]),f(this,"audioStreams",[]),f(this,"subtitleStreams",[]),f(this,"closedCaptions",[]),f(this,"currentAudioStream",null),f(this,"currentSubtitleStream",null),this.update(this._setLLPlaybackPoint(t),n,r)}return h(e,[{key:"lastSegment",get:function(){return this.segments.length?this.segments[this.segments.length-1]:null}},{key:"segmentDuration",get:function(){var e;return this.targetDuration||(null===(e=this.segments[0])||void 0===e?void 0:e.duration)||0}},{key:"liveEdge",get:function(){return this.endTime},set:function(e){this.endTime=e}},{key:"endTime",get:function(){var e;return(null===(e=this.lastSegment)||void 0===e?void 0:e.end)||0},set:function(e){var t=this.lastSegment;t&&(t.duration=e-t.start)}},{key:"currentSubtitleEndSn",get:function(){var e;return(null===(e=this.currentSubtitleStream)||void 0===e?void 0:e.endSN)||0}},{key:"clearOldSegment",value:function(e,t){return this.currentAudioStream&&this._clearSegments(e,t),this._clearSegments(e,t)}},{key:"getAudioSegment",value:function(e){if(e&&this.currentAudioStream){var t=e.sn-this.snDiff;return this.currentAudioStream.segments.find(function(e){return e.sn===t})}}},{key:"update",value:function(e,t){this.url=e.url,Array.isArray(e.segments)?(null!==this.live&&void 0!==this.live||(this.live=e.live),this._updateSegments(e,this),this.startCC=e.startCC,this.endCC=e.endCC,this.startSN=e.startSN,this.endSN=e.endSN||-1,this.totalDuration=e.totalDuration,this.targetDuration=e.targetDuration,this.live=e.live,this.lowLatency=e.lowLatency,this.canBlockReload=e.canBlockReload,this.canSkipDateRanges=e.canSkipDateRanges,this.canSkipUntil=e.canSkipUntil,this.partHoldBack=e.partHoldBack,this.partTargetDuration=e.partTargetDuration,this.skippedSegments=e.skippedSegments,this.endPartIndex=e.endPartIndex,t&&this.currentAudioStream&&Array.isArray(t.segments)&&(this._updateSegments(t,this.currentAudioStream),(null===this.snDiff||void 0===this.snDiff)&&e.segments.length&&t.segments.length&&(this.snDiff=e.segments[0].sn-t.segments[0].sn))):(this.id=e.id,this.bitrate=e.bitrate,this.width=e.width,this.height=e.height,this.name=e.name,this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.textCodec=e.textCodec,this.audioStreams=e.audioStreams,this.subtitleStreams=e.subtitleStreams,!this.currentAudioStream&&this.audioStreams.length&&(this.currentAudioStream=this.audioStreams.find(function(e){return e.default})||this.audioStreams[0]),!this.currentSubtitleStream&&this.subtitleStreams.length&&(this.currentSubtitleStream=this.subtitleStreams.find(function(e){return e.default})||this.subtitleStreams[0]))}},{key:"updateSubtitle",value:function(e){var t=this;if(e&&this.currentSubtitleStream&&Array.isArray(e.segments)){var n=this._updateSegments(e,this.currentSubtitleStream),r=this.currentSubtitleStream.segments;if(r.length>100&&(this.currentSubtitleStream.segments=r.slice(100)),n)return n.map(function(e){return{sn:e.sn,url:e.url,duration:e.duration,start:e.start,end:e.end,lang:t.currentSubtitleStream.lang}})}}},{key:"switchSubtitle",value:function(e){var t=this.subtitleStreams.find(function(t){return t.lang===e}),n=this.currentSubtitleStream;t&&(this.currentSubtitleStream=t,n.segments=[])}},{key:"_setLLPlaybackPoint",value:function(e){if(!e.lowLatency||!e.segments.length)return e;for(var t=e.totalDuration-e.partHoldBack,n=e.segments,r=0,i=0,o=n.length;i<o;i++)n[i].start<=t&&n[i].independent&&(r=i);var a=n.slice(r),s=0;return a.forEach(function(e){e.start=s,s=e.end}),e.segments=a,e.totalDuration=s,e.startSN=a[0].sn,e.startCC=a[0].cc,Mr.log("set ll-hls playback point: SN=".concat(e.startSN," partIndex=").concat(a[0].partIndex,", duration=").concat(s)),e}},{key:"_clearSegments",value:function(e,t){for(var n=0,r=this.segments,i=0,o=r.length;i<o;i++)if(r[i].end>=e){n=i;break}return n>t&&(n=t),n&&(this.segments=this.segments.slice(n),this.currentAudioStream&&(this.currentAudioStream.segments=this.currentAudioStream.segments.slice(n))),t-n}},{key:"_updateSegments",value:function(e,t){var n=t.segments;if(this.live){var r,i=e.lowLatency,o=n[n.length-1],a=null!==(r=null===o||void 0===o?void 0:o.sn)&&void 0!==r?r:-1,s=(null===o||void 0===o?void 0:o.partIndex)||0,l=a<e.endSN&&e.segments.length;if(i&&(l=l||s<e.endPartIndex),l){Mr.log("update segments: endSN:".concat(a,", partIndex:").concat(s," --\x3e endSN:").concat(e.endSN,", partIndex:").concat(e.endPartIndex));var c=e.segments.findIndex(function(e){return e.sn===a&&e.partIndex===s}),u=c<0?e.segments:e.segments.slice(c+1);if(n.length&&u.length){var d=o.end,h=d;u.forEach(function(e){e.start=d,d=e.end}),Mr.log("liveEdge: ".concat(h," -> ").concat(d));var f=(null===o||void 0===o?void 0:o.cc)||-1;f>u[0].cc&&u.forEach(function(e){return e.cc+=f})}return t.endSN=e.endSN,t.segments=n.concat(u),u}}else t.segments=e.segments}}]),e}(),Dr=function(){function e(t){u(this,e),f(this,"streams",[]),f(this,"currentStream",null),f(this,"dvrWindow",0),f(this,"_segmentPointer",-1),this.hls=t}return h(e,[{key:"lowLatency",get:function(){var e;return null===(e=this.currentStream)||void 0===e?void 0:e.lowLatency}},{key:"lastSegment",get:function(){var e;return null===(e=this.currentStream)||void 0===e?void 0:e.lastSegment}},{key:"currentSegment",get:function(){var e;return null===(e=this.currentSegments)||void 0===e?void 0:e[this._segmentPointer]}},{key:"nextSegment",get:function(){var e;return null===(e=this.currentSegments)||void 0===e?void 0:e[this._segmentPointer+1]}},{key:"currentSegments",get:function(){var e;return null===(e=this.currentStream)||void 0===e?void 0:e.segments}},{key:"currentSubtitleEndSn",get:function(){var e;return null===(e=this.currentStream)||void 0===e?void 0:e.currentSubtitleEndSn}},{key:"liveEdge",get:function(){var e;return null===(e=this.currentStream)||void 0===e?void 0:e.liveEdge},set:function(e){this.currentStream&&(this.currentStream.liveEdge=e)}},{key:"totalDuration",get:function(){var e;return(null===(e=this.currentStream)||void 0===e?void 0:e.totalDuration)||0}},{key:"seekRange",get:function(){var e=this.currentSegments;if(e&&e.length)return[e[0].start,e[e.length-1].end]}},{key:"nbSegments",get:function(){var e;return(null===(e=this.currentSegments)||void 0===e?void 0:e.length)||0}},{key:"isEmpty",get:function(){var e;return!(null!==(e=this.currentSegments)&&void 0!==e&&e.length)}},{key:"isLive",get:function(){var e;return null===(e=this.currentStream)||void 0===e?void 0:e.live}},{key:"hadSegmentLoaded",get:function(){return-1!==this._segmentPointer}},{key:"hasSubtitle",get:function(){var e;return!(null===(e=this.currentStream)||void 0===e||!e.currentSubtitleStream)}},{key:"getAudioSegment",value:function(e){var t;return null===(t=this.currentStream)||void 0===t?void 0:t.getAudioSegment(e)}},{key:"moveSegmentPointer",value:function(e){var t;null!==e&&void 0!==e||(e=this._segmentPointer+1),this._segmentPointer=Or(e,-1,null===(t=this.currentSegments)||void 0===t?void 0:t.length)}},{key:"reset",value:function(){this.streams=[],this.currentStream=null,this.dvrWindow=0,this._segmentPointer=-1}},{key:"getSegmentByIndex",value:function(e){var t;return null===(t=this.currentSegments)||void 0===t?void 0:t[e]}},{key:"setNextSegmentByIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._segmentPointer=e-1}},{key:"setNextSegmentBySN",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=null===(e=this.currentSegments)||void 0===e?void 0:e.findIndex(function(e){return e.sn===t});return-1!==n&&this.setNextSegmentByIndex(n+1),n}},{key:"findSegmentIndexByTime",value:function(e){var t=this.currentSegments;if(t){for(var n,r=0,i=t.length;r<i;r++)if(n=t[r],e>=n.start&&e<n.end)return r;var o=t[t.length-1];if(Math.abs(e-(null===o||void 0===o?void 0:o.end))<.2)return t.length-1}}},{key:"upsertPlaylist",value:function(e,t,n){var r=this;if(e){if(e.isMaster)this.streams.length=e.streams.length,e.streams.filter(function(e){return e.url}).forEach(function(e,t){r.streams[t]?r.streams[t].update(e):r.streams[t]=new Ir(e)}),this.currentStream=this.streams[0];else if(Array.isArray(e.segments)){var i=this.currentStream;if(i){i.update(e,t,n);var o=i.updateSubtitle(n);o&&this.hls.emit(kn.SUBTITLE_SEGMENTS,{list:o})}else this.reset(),this.currentStream=this.streams[0]=new Ir(e,t,n)}var a=this.currentStream;a&&this.hls.isLive&&!this.dvrWindow&&(this.dvrWindow=this.currentSegments.reduce(function(e,t){return e+=t.duration,e},0))}}},{key:"updateSegmentsRanges",value:function(e,t){var n,r=null===(n=this.currentSegments)||void 0===n?void 0:n.filter(function(t){return t.sn>=e});r.forEach(function(e){e.start=t,t=e.end})}},{key:"switchSubtitle",value:function(e){var t;null===(t=this.currentStream)||void 0===t||t.switchSubtitle(e)}},{key:"clearOldSegment",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hls.config.maxPlaylistSize||50,t=this.currentStream;if(this.dvrWindow&&t){var n=t.endTime-this.dvrWindow;if(!(n<=0)){var r=t.segments;r.length<=e||(this._segmentPointer=t.clearOldSegment(n,this._segmentPointer))}}}},{key:"checkSegmentTrackChange",value:function(e,t){var n=this.findSegmentIndexByTime(e),r=this.getSegmentByIndex(n);if(r&&(r.hasAudio||r.hasVideo)){if(2!==t&&r.hasAudio&&r.hasVideo)return r;if(!(r.end-e>.3)){var i=this.getSegmentByIndex(n+1);if(i&&(i.hasAudio||i.hasVideo))return i.hasAudio!==r.hasAudio||i.hasVideo!==r.hasVideo?i:void 0}}}},{key:"feedbackLiveEdge",value:function(e,t){var n,r=this.currentSegments;if(r){var i=(null===(n=this.lastSegment)||void 0===n?void 0:n.sn)===e.sn;i?this.liveEdge=t:this.updateSegmentsRanges(e.sn+1,t)}}}]),e}(),Nr=1e3,Rr=50,Lr=3,Br=3e3,Pr=function(){function e(t){Q(this,e),G(this,"_chunkSpeed",0),G(this,"_chunkCache",[]),G(this,"_speeds",[]),G(this,"_totalSize",0),G(this,"_totalCost",0),this._opts=t||{}}return W(e,[{key:"addRecord",value:function(e,t){e&&t&&(this._speeds.push(8e3*e/t),this._speeds=this._speeds.slice(-Lr))}},{key:"addChunkRecord",value:function(e,t){var n,r;if(e&&t&&!(e<((null===(n=this._opts)||void 0===n?void 0:n.skipChunkSize)||Nr))){this._totalSize+=e,this._totalCost+=t,this._chunkSpeed=8e3*e/t,this._chunkCache.push({size:e,duration:t,timestamp:performance.now()});var i=(null===(r=this._opts)||void 0===r?void 0:r.chunkCountForSpeed)||Rr;this._chunkCache.length>i&&(this._chunkCache=this._chunkCache.slice(-i))}}},{key:"getAvgSpeed",value:function(){var e;if(!this._chunkCache.length&&!this._speeds.length)return 0;if(this._speeds.length)return this._speeds.reduce(function(e,t){return e+t})/this._speeds.length;var t=this._chunkCache[this._chunkCache.length-1],n=performance.now()-t.timestamp;n>((null===(e=this._opts)||void 0===e?void 0:e.longtimeNoReceived)||Br)&&this._chunkCache.push({size:0,duration:n,timestamp:performance.now()});var r=this._chunkCache.reduce(function(e,t){return e+t.size},0),i=this._chunkCache.reduce(function(e,t){return e+t.duration},0);return 8e3*r/i}},{key:"getLatestSpeed",value:function(){return this._chunkCache.length||this._speeds.length?this._speeds.length?this._speeds[this._speeds.length-1]:this._chunkSpeed:0}},{key:"getTotalSize",value:function(){return this._totalSize}},{key:"getTotalCost",value:function(){return this._totalCost}},{key:"reset",value:function(){this._chunkCache=[],this._speeds=[],this._totalSize=0,this._totalCost=0}}]),e}(),Fr=function(){function e(t){var n=this;u(this,e),f(this,"error",null),f(this,"_emitOnLoaded",function(e,t){var r=e.data,i=e.response,o=e.options,a=o||{},s=a.firstByteTime,l=a.startTime,c=a.endTime,u=a.contentLength,d=c-l;n._bandwidthService.addRecord(u||r.byteLength,d),n.hls.emit(Ne.SPEED,{time:d,byteLength:u,url:t}),n.hls.emit(Ne.LOAD_COMPLETE,{url:t,elapsed:d||0}),n.hls.emit(Ne.TTFB,{url:t,responseUrl:i.url,elapsed:s-l}),n.hls.emit(Ne.LOAD_RESPONSE_HEADERS,{headers:i.headers,url:t})}),f(this,"_onLoaderRetry",function(e,t){n.hls.emit(Ne.LOAD_RETRY,{error:ve.network(e),retryTime:t})}),this.hls=t,this._bandwidthService=new Pr,this._mapCache={},this._keyCache={};var r=this.hls.config,i=r.retryCount,a=r.retryDelay,s=r.loadTimeout,l=r.fetchOptions;this._segmentLoader=new er(o(o({},l),{},{responseType:"arraybuffer",retry:i,retryDelay:a,timeout:s,onRetryError:this._onLoaderRetry})),this._audioSegmentLoader=new er(o(o({},l),{},{responseType:"arraybuffer",retry:i,retryDelay:a,timeout:s,onRetryError:this._onLoaderRetry})),this._keyLoader=new er(o(o({},l),{},{responseType:"arraybuffer",retry:i,retryDelay:a,timeout:s,onRetryError:this._onLoaderRetry}))}return h(e,[{key:"speedInfo",value:function(){return{speed:this._bandwidthService.getLatestSpeed(),avgSpeed:this._bandwidthService.getAvgSpeed()}}},{key:"load",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,i=[];return e&&(i[0]=this.loadVideoSegment(e,n)),t&&(i[1]=this.loadAudioSegment(t,r)),Promise.all(i)}},{key:"loadVideoSegment",value:function(e,t){return this._loadSegment(this._segmentLoader,e,t)}},{key:"loadAudioSegment",value:function(e,t){return this._loadSegment(this._audioSegmentLoader,e,t)}},{key:"_loadSegment",value:function(){var e=c(a().mark(function e(t,n,r){var i,o,s,l,c,u,d,h,f,p,g,m,v,A,b,y=this;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:return d=[],this.hls.emit(Ne.LOAD_START,{url:n.url}),d[0]=t.load(n.url),r&&n.initSegment&&(f=n.initSegment.url,o=this._mapCache[f],o||(this.hls.emit(Ne.LOAD_START,{url:f}),d[1]=t.load(f).then(function(e){if(e){var t=Object.keys(y._mapCache);t>30&&(y._mapCache={}),o=y._mapCache[f]=e.data,y._emitOnLoaded(e,f)}})),p=null===(h=n.initSegment.key)||void 0===h?void 0:h.url,p&&(u=n.initSegment.key.iv,c=this._keyCache[p],c||(this.hls.emit(Ne.LOAD_START,{url:p}),d[2]=this._keyLoader.load(p).then(function(e){e&&(c=y._keyCache[p]=e.data,y._emitOnLoaded(e,p))})))),g=null===(i=n.key)||void 0===i?void 0:i.url,g&&n.key.isSegmentEncrypted()&&(l=n.key.iv,s=this._keyCache[g],s||(this.hls.emit(Ne.LOAD_START,{url:g}),d[3]=this._keyLoader.load(g).then(function(e){e&&(s=y._keyCache[g]=e.data,y._emitOnLoaded(e,g))}))),e.next=8,Promise.all(d);case 8:if(m=e.sent,v=x(m,1),A=v[0],A){e.next=13;break}return e.abrupt("return");case 13:return b=A.data,this._emitOnLoaded(A,n.url),e.abrupt("return",{data:b,map:o,key:s,mapKey:c,keyIv:l,mapKeyIv:u});case 16:case"end":return e.stop()}},e,this)}));function t(t,n,r){return e.apply(this,arguments)}return t}()},{key:"reset",value:function(){this.error=null,this._mapCache={},this._keyCache={},this._bandwidthService.reset()}},{key:"cancel",value:function(){var e=c(a().mark(function e(){return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([this._keyLoader.cancel(),this._segmentLoader.cancel(),this._audioSegmentLoader.cancel()]);case 2:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()}]),e}(),$r=new we("hls"),jr=function(e){p(n,e);var t=_(n);function n(e){var r;return u(this,n),r=t.call(this),f(y(r),"version",n.version),f(y(r),"media",null),f(y(r),"config",null),f(y(r),"_manifestLoader",null),f(y(r),"_segmentLoader",null),f(y(r),"_playlist",null),f(y(r),"_bufferService",null),f(y(r),"_gapService",null),f(y(r),"_seiService",null),f(y(r),"_stats",null),f(y(r),"_prevSegSn",null),f(y(r),"_prevSegCc",null),f(y(r),"_tickTimer",null),f(y(r),"_tickInterval",500),f(y(r),"_segmentProcessing",!1),f(y(r),"_reloadOnPlay",!1),f(y(r),"_switchUrlOpts",null),f(y(r),"_isProcessQuotaExceeded",!1),f(y(r),"_loadSegment",c(a().mark(function e(){var t,n,i,o,s,l,c,u,d;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!r._segmentProcessing&&r.media){e.next=2;break}return e.abrupt("return");case 2:if(t=r._playlist,n=t.nextSegment,i=t.lastSegment,o=y(r),s=o.config,l=.016,c=Math.min(Math.max((null===i||void 0===i?void 0:i.duration)-l/2||0,l),.1),n){e.next=8;break}return e.abrupt("return");case 8:if(r.isLive){e.next=18;break}if(u=r.bufferInfo(),r.media.paused&&!r.media.currentTime&&(u=r.bufferInfo(u.nextStart||.5)),d=Math.abs(u.end-r.media.duration)<c,!(u.remaining>=s.preloadTime||d)){e.next=15;break}return r._tryEos(),e.abrupt("return");case 15:if(!s.preferMMSStreaming||r._bufferService.msStreaming){e.next=17;break}return e.abrupt("return");case 17:!r._urlSwitching&&r._prevSegSn!==n.sn-1&&u.end&&Math.abs(n.start-u.end)>1&&r._playlist.setNextSegmentByIndex(r._playlist.findSegmentIndexByTime(u.end+.1));case 18:return e.abrupt("return",r._loadSegmentDirect());case 19:case"end":return e.stop()}},e)}))),f(y(r),"_onLoadeddata",function(){r.isLive&&!r.config.mseLowLatency&&r.media.duration!==1/0&&r._bufferService.updateDuration(1/0).catch(function(e){})}),f(y(r),"_onPlay",c(a().mark(function e(){return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!r.media.seeking||0!==r.media.currentTime){e.next=3;break}return $r.debug("replay currentTime 0, return"),e.abrupt("return");case 3:if(clearTimeout(r._disconnectTimer),!r._reloadOnPlay){e.next=9;break}r._reloadOnPlay=!1,r.replay(!0),e.next=12;break;case 9:return e.next=11,r._loadSegment();case 11:r._startTick();case 12:case"end":return e.stop()}},e)}))),f(y(r),"_onPause",function(){if(r.isLive){if(!r._reloadOnPlay){var e=r.config.disconnectTime;if(null!==e&&void 0!==e||(e=r._playlist.dvrWindow),!Number.isFinite(e))return;clearTimeout(r._disconnectTimer),r._disconnectTimer=setTimeout(function(){r._reloadOnPlay=!0,r._clear()},e||0)}}else r._stopTick()}),f(y(r),"_onSeeking",c(a().mark(function e(){var t,n,i,o,s,l,c;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(r.media){e.next=2;break}return e.abrupt("return");case 2:if(r._onCheckQuotaExceeded(),t=r.media.currentTime,n=r._playlist.seekRange,!n){e.next=10;break}if(i=Or(t,n[0],r.isLive?n[1]:r.media.duration),!(i>=0&&Math.abs(t-i)>=.1)){e.next=10;break}return r.media.currentTime=i,e.abrupt("return");case 10:if(o=r._playlist.currentSegment,s=fe.info(fe.get(r.media),t,.1),!o){e.next=17;break}if(!(s.end&&Math.abs(s.end-o.end)<.2)){e.next=15;break}return e.abrupt("return");case 15:if(!r.isLive||!s.end){e.next=17;break}return e.abrupt("return");case 17:if(l=r._playlist.findSegmentIndexByTime(t),c=r._playlist.getSegmentByIndex(l),null!==l&&void 0!==l&&c&&(!r._segmentProcessing||c!==r._playlist.nextSegment)){e.next=21;break}return e.abrupt("return");case 21:return $r.debug("seek to",t,c),r._playlist.setNextSegmentByIndex(l),r._stopTick(),e.next=26,r._segmentLoader.cancel();case 26:if(r._segmentProcessing=!1,s.end&&!r.isLive){e.next=30;break}return e.next=30,r._loadSegmentDirect(!0);case 30:r._startTick();case 31:case"end":return e.stop()}},e)}))),f(y(r),"_onTimeupdate",function(){if(r.media){var e,t=r.config;if(t.isLive&&t.maxLatency&&t.targetLatency){var n=r._playlist.liveEdge;if(!n)return;var i=n-r.media.currentTime;i>=t.maxLatency&&($r.debug("latency jump, currentTime:".concat(r.media.currentTime,", liveEdge:").concat(n,",  latency=").concat(i)),r.media.currentTime=n-t.targetLatency)}if(t.seiInTime)null===(e=r._seiService)||void 0===e||e.throw(r.media.currentTime);t.allowedStreamTrackChange&&!t.softDecode&&r.media.readyState&&r._checkStreamTrackChange(r.media.currentTime)}}),f(y(r),"_tick",function(){if(r.media){r._startTick();var e=r.media,t=r._segmentLoader.error;if(r._onCheckQuotaExceeded(),r._isProcessQuotaExceeded&&(r._bufferService.isFull()||(r._isProcessQuotaExceeded=!1,r._segmentProcessing=!1)),t){var n=.5;(!e.readyState||r.bufferInfo(n).remaining<1)&&(t.fatal=!0,r._emitError(ve.network(t)))}else e.readyState&&(Be(e)?(r._loadSegment(),r._gapService&&r._gapService.do(e,r.config.maxJumpDistance,r.isLive)):e.readyState<2&&r._gapService&&r._gapService.do(e,r.config.maxJumpDistance,!e.currentTime||r.isLive)),r.isLive||r._tryEos()}}),r.config=e=Ln(e),r.media=r.config.media,r._manifestLoader=new kr(y(r)),r._segmentLoader=new Fr(y(r)),r._playlist=new Dr(y(r)),r._bufferService=new Rn(y(r)),e.seiInTime&&(r._seiService=new je(y(r))),e.softDecode||(r._gapService=new He),r._stats=new We(y(r),9e4),r.media.addEventListener("loadeddata",r._onLoadeddata),r.media.addEventListener("play",r._onPlay),r.media.addEventListener("pause",r._onPause),r.media.addEventListener("seeking",r._onSeeking),r.media.addEventListener("timeupdate",r._onTimeupdate),r}return h(n,[{key:"isLive",get:function(){return this._playlist.isLive}},{key:"streams",get:function(){return this._playlist.streams}},{key:"currentStream",get:function(){return this._playlist.currentStream}},{key:"hasSubtitle",get:function(){return this._playlist.hasSubtitle}},{key:"totalDuration",get:function(){return this._playlist.totalDuration}},{key:"baseDts",get:function(){var e;return null===(e=this._bufferService)||void 0===e?void 0:e.baseDts}},{key:"abrSwitchPoint",get:function(){var e=this._urlSwitching?this._playlist.currentSegment:this._playlist.nextSegment;return e?e.start+e.duration/2:null}},{key:"speedInfo",value:function(){return this._segmentLoader.speedInfo()}},{key:"bufferInfo",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.1;return fe.info(fe.get(this.media),null===(e=this.media)||void 0===e?void 0:e.currentTime,t)}},{key:"getStats",value:function(){return this._stats.getStats()}},{key:"playbackQuality",value:function(){return Pe(this.media)}},{key:"load",value:function(){var e=c(a().mark(function e(){var t,n,r,i=arguments;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:"",n=i.length>1&&void 0!==i[1]?i[1]:{},r="boolean"===typeof n?n:!(null===n||void 0===n||!n.reuseMse),"object"===s(n)&&null!==n&&void 0!==n&&n.clearSwitchStatus&&(this._urlSwitching=!1,this._switchUrlOpts=null,this.config.startTime=void 0),t&&(this.config.url=t),t=this.config.url,e.next=8,this._reset(r);case 8:return e.next=10,this._loadData(t);case 10:this._startTick();case 11:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"_loadData",value:function(){var e=c(a().mark(function e(t){var n,r,i,o,s,l,c,u,d,h,f,p,g;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:try{t&&(t=t.trim())}catch(a){}if(t){e.next=3;break}throw this._emitError(new ve(ge.OTHER,ge.SUB_TYPES.OPTION,null,null,"m3u8 url is missing"));case 3:return e.next=5,this._loadM3U8(t);case 5:if(n=e.sent,r=this._playlist.currentStream,!this._urlSwitching){e.next=23;break}if(!this.isLive){e.next=14;break}i=this._playlist.setNextSegmentBySN(this._prevSegSn),$r.log("segment nb=".concat(this._prevSegSn," index of ").concat(i," in the new playlist")),-1===i&&(this._prevSegCc=null,this._prevSegSn=null),e.next=23;break;case 14:if(0===r.bitrate&&null!==(o=this._switchUrlOpts)&&void 0!==o&&o.bitrate&&(r.bitrate=null===(c=this._switchUrlOpts)||void 0===c?void 0:c.bitrate),u="number"===typeof(null===(s=this._switchUrlOpts)||void 0===s?void 0:s.startTime)?null===(l=this._switchUrlOpts)||void 0===l?void 0:l.startTime:this._getSeamlessSwitchPoint(),this.config.startTime=u,d=this._playlist.findSegmentIndexByTime(u),h=this._playlist.getSegmentByIndex(d+1),!h){e.next=23;break}return f=h.start,e.next=23,this._bufferService.removeBuffer(f);case 23:if(n){e.next=25;break}return e.abrupt("return");case 25:if(!this.isLive){e.next=36;break}if(this._bufferService.setLiveSeekableRange(0,4294967295),$r.log("totalDuration first time got:",this._playlist.totalDuration),$r.log("nb segments got:",this._playlist.nbSegments),this.config.targetLatency<this._playlist.totalDuration&&(this.config.targetLatency=this._playlist.totalDuration,this.config.maxLatency=1.5*this.config.targetLatency),n.isMaster||this._pollM3U8(t),!(this._playlist.nbSegments<this.config.minSegmentsStartPlay)){e.next=33;break}return e.abrupt("return");case 33:return e.next=35,this._loadSegment();case 35:return e.abrupt("return");case 36:return e.next=38,this._bufferService.updateDuration(r.totalDuration);case 38:return p=this.config.startTime,p&&(null!==(g=this._switchUrlOpts)&&void 0!==g&&g.seamless||(this.media.currentTime=p),this._playlist.setNextSegmentByIndex(this._playlist.findSegmentIndexByTime(p)||0)),e.next=42,this._loadSegment();case 42:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}()},{key:"replay",value:function(){var e=c(a().mark(function e(t){return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:return this.config.startTime=0,this._urlSwitching=!1,this._switchUrlOpts=null,e.next=5,this.load();case 5:return this._reloadOnPlay=!1,e.abrupt("return",this.media.play(!t));case 7:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}()},{key:"switchURL",value:function(){var e=c(a().mark(function e(t){var n,r,i,o,l,c,u,d=arguments;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:n=d.length>1&&void 0!==d[1]?d[1]:{},r={seamless:!1,startTime:0,bitrate:0},e.t0=s(n),e.next="number"===e.t0?5:"boolean"===e.t0?7:"object"===e.t0?9:11;break;case 5:return n={startTime:n},e.abrupt("break",12);case 7:return n={seamless:n},e.abrupt("break",12);case 9:for(i in n)void 0!==n[i]&&null!==n[i]||delete n[i];return e.abrupt("break",12);case 11:throw"unsupported switchURL args: ".concat(n);case 12:if(n=Object.assign({},r,n),o=n,l=o.seamless,c=o.startTime,this.config.url=t,this.config.startTime=c,this._switchUrlOpts=n,l){e.next=38;break}if(e.prev=18,!this.config.softDecode){e.next=23;break}e.t1=this.load(t),e.next=26;break;case 23:return e.next=25,this.load(t);case 25:e.t1=e.sent;case 26:u=e.t1,e.next=33;break;case 29:throw e.prev=29,e.t2=e["catch"](18),this.emit(kn.SWITCH_URL_FAILED,e.t2),e.t2;case 33:return this._reloadOnPlay=!1,u&&this.emit(kn.SWITCH_URL_SUCCESS,{url:t}),e.abrupt("return",this.media.play(!0));case 38:return this._urlSwitching=!0,this.isLive||(this._prevSegSn=null,this._prevSegCc=null),this._playlist.reset(),this._bufferService.seamlessSwitch(),e.next=44,this._clear();case 44:return e.next=46,this._loadData(t);case 46:this._startTick();case 47:this._switchUrlOpts=null;case 48:case"end":return e.stop()}},e,this,[[18,29]])}));function t(t){return e.apply(this,arguments)}return t}()},{key:"switchStream",value:function(){var e=c(a().mark(function e(t){var n,r,i,o,s,l=arguments;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(n=!(l.length>1&&void 0!==l[1])||l[1],r=this.currentStream,i=this.streams,r&&r.id!==t&&i&&!(i.length<2)){e.next=5;break}return e.abrupt("return");case 5:if(o=i.find(function(e){return e.id===t}),o){e.next=8;break}return e.abrupt("return");case 8:return e.prev=8,e.next=11,this._clear();case 11:if(!n){e.next=14;break}return e.next=14,this._bufferService.clearAllBuffer();case 14:e.next=19;break;case 16:throw e.prev=16,e.t0=e["catch"](8),this._emitError(ve.create(e.t0));case 19:if(r.currentAudioStream&&o.audioStreams.length>2&&(s=r.currentAudioStream.id,o.currentAudioStream=o.audioStreams.find(function(e){return e.id===s})||o.currentAudioStream),this._playlist.currentStream=o,e.prev=21,!this.isLive&&o.segments.length){e.next=25;break}return e.next=25,this._refreshM3U8();case 25:return this._playlist.setNextSegmentByIndex(this._playlist.findSegmentIndexByTime(this.media.currentTime)||0),this._prevSegCc=null,e.next=29,this._loadSegmentDirect();case 29:e.next=35;break;case 31:throw e.prev=31,e.t1=e["catch"](21),this._playlist.currentStream=r,e.t1;case 35:return this._startTick(),e.abrupt("return",o);case 37:case"end":return e.stop()}},e,this,[[8,16],[21,31]])}));function t(t){return e.apply(this,arguments)}return t}()},{key:"switchAudioStream",value:function(){var e=c(a().mark(function e(t){var n,r,i,o,s=arguments;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(n=!(s.length>1&&void 0!==s[1])||s[1],r=this.currentStream,r){e.next=4;break}return e.abrupt("return");case 4:if(i=r.currentAudioStream,i&&i.id!==t&&!(r.audioStreams.length<2)){e.next=7;break}return e.abrupt("return");case 7:if(o=r.audioStreams.find(function(e){return e.id===t}),o){e.next=10;break}return e.abrupt("return");case 10:return e.prev=10,e.next=13,this._clear();case 13:if(!n){e.next=16;break}return e.next=16,this._bufferService.clearAllBuffer();case 16:e.next=21;break;case 18:throw e.prev=18,e.t0=e["catch"](10),this._emitError(ve.create(e.t0));case 21:if(r.currentAudioStream=o,e.prev=22,!this.isLive&&o.segments.length){e.next=26;break}return e.next=26,this._refreshM3U8();case 26:return this._playlist.setNextSegmentByIndex(this._playlist.findSegmentIndexByTime(this.media.currentTime)||0),this._prevSegCc=null,e.next=30,this._loadSegmentDirect();case 30:e.next=36;break;case 32:throw e.prev=32,e.t1=e["catch"](22),r.currentAudioStream=i,e.t1;case 36:return this._startTick(),e.abrupt("return",o);case 38:case"end":return e.stop()}},e,this,[[10,18],[22,32]])}));function t(t){return e.apply(this,arguments)}return t}()},{key:"switchSubtitleStream",value:function(){var e=c(a().mark(function e(t){return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:return this._playlist.switchSubtitle(t),e.next=3,this._manifestLoader.stopPoll();case 3:return e.next=5,this._refreshM3U8();case 5:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}()},{key:"detachMedia",value:function(){var e=c(a().mark(function e(){return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!this._bufferService){e.next=3;break}return e.next=3,this._bufferService.detachMedia();case 3:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"destroy",value:function(){var e=c(a().mark(function e(){var t;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(this.media){e.next=2;break}return e.abrupt("return");case 2:return this.removeAllListeners(),this._playlist.reset(),this._segmentLoader.reset(),null===(t=this._seiService)||void 0===t||t.reset(),this.media.removeEventListener("loadeddata",this._onLoadeddata),this.media.removeEventListener("play",this._onPlay),this.media.removeEventListener("pause",this._onPause),this.media.removeEventListener("seeking",this._onSeeking),this.media.removeEventListener("timeupdate",this._onTimeupdate),e.next=13,Promise.all([this._clear(),this._bufferService.destroy()]);case 13:this.media=null;case 14:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"_loadM3U8",value:function(){var e=c(a().mark(function e(t){var n,r,i,o,s,l,c;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,o=null===(r=this.config.manifestList)||void 0===r||null===(i=r.filter(function(e){return e.url===t})[0])||void 0===i?void 0:i.manifest,!o){e.next=6;break}e.t0=this._manifestLoader.parseText(o,t),e.next=9;break;case 6:return e.next=8,this._manifestLoader.load(t);case 8:e.t0=e.sent;case 9:s=e.t0,l=x(s,1),n=l[0],e.next=17;break;case 14:throw e.prev=14,e.t1=e["catch"](0),this._emitError(ve.create(e.t1));case 17:if(n){e.next=19;break}return e.abrupt("return");case 19:if(this._playlist.upsertPlaylist(n),!n.isMaster){e.next=24;break}return null!==(c=this._playlist.currentStream.subtitleStreams)&&void 0!==c&&c.length&&this.emit(kn.SUBTITLE_PLAYLIST,{list:this._playlist.currentStream.subtitleStreams}),e.next=24,this._refreshM3U8();case 24:return this.emit(kn.STREAM_PARSED),e.abrupt("return",n);case 26:case"end":return e.stop()}},e,this,[[0,14]])}));function t(t){return e.apply(this,arguments)}return t}()},{key:"_refreshM3U8",value:function(){var e,t,n=this,r=this._playlist.currentStream;if(!r||!r.url)throw this._emitError(ve.create(null,null,new Error("m3u8 url is not defined")));var i=r.url,o=null===(e=r.currentAudioStream)||void 0===e?void 0:e.url,a=null===(t=r.currentSubtitleStream)||void 0===t?void 0:t.url;return this._manifestLoader.load(i,o,a).then(function(e){var t=x(e,3),r=t[0],s=t[1],l=t[2];r&&(n._playlist.upsertPlaylist(r,s,l),n.isLive&&n._pollM3U8(i,o,a))}).catch(function(e){throw n._emitError(ve.create(e))})}},{key:"_pollM3U8",value:function(e,t,n){var r,i,o=this,a=this._playlist.isEmpty;this._playlist.lowLatency?r=1e3*(this._playlist.currentStream.partTargetDuration||0):r=1e3*((null===(i=this._playlist.lastSegment)||void 0===i?void 0:i.duration)||0);this._manifestLoader.poll(e,t,n,function(e,t,n){o._playlist.upsertPlaylist(e,t,n),o._playlist.clearOldSegment();var r=e&&a&&!o._playlist.isEmpty;(r||!o._playlist.hadSegmentLoaded&&o._playlist.nbSegments>=o.config.minSegmentsStartPlay)&&o._loadSegment(),a&&(a=o._playlist.isEmpty)},function(e){o._emitError(ve.create(e))},r)}},{key:"_loadSegmentDirect",value:function(){var e=c(a().mark(function e(t){var n,r,i,o,s,l;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(n=this._playlist.nextSegment,n){e.next=3;break}return e.abrupt("return");case 3:return r=!1,i=null,e.prev=5,this._segmentProcessing=!0,$r.log("load segment, sn:".concat(n.sn,", [").concat(n.start,", ").concat(n.end,"], partIndex:").concat(n.partIndex)),e.next=10,this._reqAndBufferSegment(n,this._playlist.getAudioSegment(n));case 10:r=e.sent,e.next=16;break;case 13:e.prev=13,e.t0=e["catch"](5),i=e.t0;case 16:return e.prev=16,this._segmentProcessing=!1,e.finish(16);case 19:if(!i){e.next=26;break}if(!this._bufferService.isFull()){e.next=25;break}return $r.log("load segment, sn:".concat(n.sn,", partIndex:").concat(n.partIndex)),this._segmentProcessing=!0,this._isProcessQuotaExceeded=!0,e.abrupt("return",!1);case 25:return e.abrupt("return",this._emitError(ve.create(i)));case 26:return r&&(s=this.bufferInfo().end,this.isLive&&!this.media.seeking&&s&&Math.abs(n.end-s)>1&&($r.warn("segment: ".concat(n.sn," expected end=").concat(n.end,", real end=").concat(s)),this._playlist.feedbackLiveEdge(n,s)),l=(null===(o=this._playlist.currentStream)||void 0===o?void 0:o.url)===n.parentUrl,this._urlSwitching&&!l&&($r.warn("pre playlist segment appended!"),this._bufferService.seamlessSwitch()),this.isLive&&this._urlSwitching&&l&&(this._urlSwitching=!1,this.emit(kn.SWITCH_URL_SUCCESS,{url:this.config.url})),this._playlist.moveSegmentPointer(),n.isLast?this._end():t||this._loadSegment()),e.abrupt("return",r);case 28:case"end":return e.stop()}},e,this,[[5,13,16,19]])}));function t(t){return e.apply(this,arguments)}return t}()},{key:"_reqAndBufferSegment",value:function(){var e=c(a().mark(function e(t,n){var r,i,o,s,l,c,u,d,h,f,p;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:return i=t?t.cc:n.cc,o=this._prevSegCc!==i,s=[],e.prev=3,e.next=6,this._segmentLoader.load(t,n,o);case 6:s=e.sent,e.next=14;break;case 9:throw e.prev=9,e.t0=e["catch"](3),e.t0.fatal=!1,this._segmentLoader.error=e.t0,e.t0;case 14:if(s[0]){e.next=16;break}return e.abrupt("return");case 16:return e.next=18,(r=this._bufferService).decryptBuffer.apply(r,E(s));case 18:if(l=e.sent,l){e.next=21;break}return e.abrupt("return");case 21:return c=t?t.sn:n.sn,u=t?t.start:n.start,d=this._playlist.currentStream,this._bufferService.createSource(l[0],l[1],null===d||void 0===d?void 0:d.videoCodec,null===d||void 0===d?void 0:d.audioCodec),h=Date.now(),f=this._prevSegSn===c-1,this.isLive&&this._urlSwitching&&(p=this.bufferInfo().end,this._playlist.updateSegmentsRanges(c,p),$r.warn("update the new playlist liveEdge, segment id=".concat(c,", buffer start=").concat(p,", liveEdge=").concat(this._playlist.liveEdge)),u=p),e.next=30,this._bufferService.appendBuffer(t,n,l[0],l[1],o,f,u);case 30:return this.emit(kn.APPEND_COST,{elapsed:Date.now()-h,url:t.url}),e.next=33,this._bufferService.evictBuffer(this.config.bufferBehind);case 33:return this._prevSegCc=i,this._prevSegSn=c,e.abrupt("return",!0);case 36:case"end":return e.stop()}},e,this,[[3,9]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"_onCheckQuotaExceeded",value:function(){var e=c(a().mark(function e(){var t,n,r,i,o,s;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:t=this.media.currentTime,n=this.media.buffered,r=!1,i=0;case 4:if(!(i<n.length)){e.next=11;break}if(!(n.start(0)>=t&&t<n.end(i))){e.next=8;break}return r=!0,e.abrupt("break",11);case 8:i++,e.next=4;break;case 11:if(!this._bufferService.isFull()){e.next=17;break}if(o=r?this.config.bufferBehind:5,s=this.media.currentTime,!(s-o>0)){e.next=17;break}return e.next=17,this._bufferService.removeBuffer(0,s-o);case 17:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"_checkStreamTrackChange",value:function(e){var t=this._playlist.checkSegmentTrackChange(e,this._bufferService.nbSb);t&&this.switchURL(this.config.url,t.start+.2)}},{key:"_clear",value:function(){var e=c(a().mark(function e(){return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:return clearTimeout(this._disconnectTimer),this._stopTick(),e.next=4,Promise.all([this._segmentLoader.cancel(),this._manifestLoader.stopPoll()]);case 4:this._segmentProcessing=!1;case 5:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"_reset",value:function(){var e=c(a().mark(function e(){var t,n,r=arguments;return a().wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=r.length>0&&void 0!==r[0]&&r[0],this._reloadOnPlay=!1,this._prevSegSn=null,this._prevSegCc=null,this._switchUrlOpts=null,this._playlist.reset(),this._segmentLoader.reset(),null===(t=this._seiService)||void 0===t||t.reset(),this._stats.reset(),e.next=11,this._clear();case 11:return e.abrupt("return",this._bufferService.reset(n));case 12:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"_end",value:function(){this._clear(),this._bufferService.endOfStream(),(this.media.readyState<=2||this.media.buffered.length>1)&&this._startTick()}},{key:"_stopTick",value:function(){this._tickTimer&&clearTimeout(this._tickTimer),this._tickTimer=null}},{key:"_startTick",value:function(){this._stopTick(),this._tickTimer=setTimeout(this._tick,this._tickInterval)}},{key:"_emitError",value:function(e){var t,n,r,i,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!1===(null===(t=e.originError)||void 0===t?void 0:t.fatal)?$r.warn(e):($r.table(e),$r.error(e),$r.error(null===(n=this.media)||void 0===n?void 0:n.error),null!==(r=this.media)&&void 0!==r&&r.readyState&&this.media.pause(),this._stopTick(),this._urlSwitching&&(this._urlSwitching=!1,this.emit(kn.SWITCH_URL_FAILED,e)),this.emit(kn.ERROR,e),o&&this._end(),null===(i=this._seiService)||void 0===i||i.reset());return e}},{key:"_getSeamlessSwitchPoint",value:function(){var e=this.media,t=e.currentTime;if(!e.paused){var n,r=this._playlist.findSegmentIndexByTime(e.currentTime),i=this._playlist.getSegmentByIndex(r),o=null===(n=this._stats)||void 0===n?void 0:n.getStats().downloadSpeed;if(o&&i){var a=i.duration*this._playlist.currentStream.bitrate/o+1;t+=a}else t+=5}return t}},{key:"_tryEos",value:function(){var e,t,n=this.media,r=this._playlist,i=r.nextSegment,o=r.lastSegment,a=(!i||o&&fe.isBuffered(n,o.start+o.duration/2))&&n.readyState&&n.duration>0&&(null===(e=this._bufferService)||void 0===e?void 0:e.msIsOpened)&&!(null!==(t=this._bufferService)&&void 0!==t&&t.msHasOpTasks);if(a){var s=this.bufferInfo();n.paused&&!n.currentTime&&(s=this.bufferInfo(s.nextStart||.5));var l=Math.abs(s.end-n.duration)<.1||!this.isLive&&o&&s.end>=o.start+o.duration;l&&this._bufferService.endOfStream()}}}],[{key:"isSupported",value:function(e){return e&&"video"!==e&&"audio"!==e?"undefined"!==typeof WebAssembly:De.isSupported()}},{key:"enableLogger",value:function(){we.enable(),mt.enable()}},{key:"disableLogger",value:function(){we.disable(),mt.disable()}}]),n}(Le());f(jr,"version","3.0.23");try{localStorage.getItem("xgd")?jr.enableLogger():jr.disableLogger()}catch(B){}var Hr=function(){function e(t,n){var r=this;u(this,e),f(this,"_opts",null),f(this,"_plugin",null),f(this,"_onLowDecode",function(){var e,t,n,i,a=r._opts,s=a.media,l=a.innerDegrade;null===(e=r._plugin)||void 0===e||null===(t=e.player)||void 0===t||t.emit("lowdecode",s.degradeInfo),null===(n=r._plugin)||void 0===n||null===(i=n.player)||void 0===i||i.emit("core_event",o(o({},s.degradeInfo),{},{eventName:kn.LOWDECODE})),1===l&&r._degrade(s.src)}),f(this,"_degrade",function(e){var t=r._plugin.player,n=t.video;if(!n||"MVideo"===n.TAG){var i=t.video.degradeVideo;t.video=i,n.degrade(e),e&&(t.config.url=e);var o=t.root.firstChild;"MVideo"===o.TAG&&t.root.replaceChild(i,o);var a=r._plugin.constructor.pluginName.toLowerCase();t.unRegisterPlugin(a),t.once("canplay",function(){t.play()})}}),f(this,"forceDegradeToVideo",function(e){var t=r._opts.innerDegrade;1===t&&r._degrade(e)}),this._opts=t,this._plugin=n,this._init()}return h(e,[{key:"_init",value:function(){var e=this._opts,t=e.media,n=e.preloadTime,r=e.innerDegrade,i=e.isLive;t&&(i||!t.setPlayMode?(r&&t.setAttribute("innerdegrade",r),n&&t.setAttribute("preloadtime",n),this._bindEvents()):t.setPlayMode("VOD"))}},{key:"_bindEvents",value:function(){var e=this._opts.media;e.addEventListener("lowdecode",this._onLowDecode)}},{key:"destroy",value:function(){var e,t;null===(e=this._opts)||void 0===e||null===(t=e.media)||void 0===t||t.removeEventListener("lowdecode",this._onLowDecode),this._plugin=null}}]),e}(),Ur=["currentTime"];function Qr(e,t){var n=t.player,r=n.currentTime,i={startTime:r};switch(s(e)){case"boolean":i.seamless=e;break;case"object":var o=e.currentTime,a=b(e,Ur);Object.assign(i,a),"number"===typeof o&&(i.startTime=o);break}return i}var zr=function(e){p(n,e);var t=_(n);function n(){var e;u(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=t.call.apply(t,[this].concat(i)),f(y(e),"logger",$r),f(y(e),"hls",null),f(y(e),"pluginExtension",null),f(y(e),"getStats",function(){var t;return null===(t=e.hls)||void 0===t?void 0:t.getStats()}),f(y(e),"_onSwitchSubtitle",function(t){var n,r=t.lang;null===(n=e.hls)||void 0===n||n.switchSubtitleStream(r)}),f(y(e),"_keepPauseStatus",function(){var t=e.player.paused;t&&e.player.once("canplay",function(){e.player.pause()})}),e}return h(n,[{key:"core",get:function(){return this.hls}},{key:"version",get:function(){var e;return null===(e=this.hls)||void 0===e?void 0:e.version}},{key:"softDecode",get:function(){var e,t,n=null===(e=this.player)||void 0===e||null===(t=e.config)||void 0===t?void 0:t.mediaType;return!!n&&"video"!==n&&"audio"!==n&&"offscreen-video"!==n}},{key:"beforePlayerInit",value:function(){var e=this,t=this.player.config,n=this.player.media||this.player.video,r=t.hls||{};if((t.url||t.__allowHlsEmptyUrl__)&&(this.softDecode||r.preferMMS||!De.isMMSOnly())){this.hls&&this.hls.destroy();var i=Object.getOwnPropertyDescriptor(this.player,"switchURL");i&&!i.writable||(this.player.switchURL=function(t,n){return new Promise(function(r,i){var o=e.player,a=e.hls;if(a){var s,l,c=Qr(n,e);o.config.url=t,a.switchURL(t,c).then(function(){return r(!0)}).catch(i),!c.seamless&&null!==(s=e.player.config)&&void 0!==s&&null!==(l=s.hls)&&void 0!==l&&l.keepStatusAfterSwitch&&e._keepPauseStatus()}else i()})});var a,s=this.player.switchURL;if(this.player.handleSource=!1,r.innerDegrade=r.innerDegrade||t.innerDegrade,null!==r.disconnectTime&&void 0!==r.disconnectTime||(r.disconnectTime=0),this.hls=new jr(o({softDecode:this.softDecode,isLive:t.isLive,media:n,startTime:t.startTime,url:t.url},r)),this.softDecode||R.Ay.defineGetterOrSetter(this.player,{url:{get:function(){var t,n;return null===(t=e.hls)||void 0===t||null===(n=t.media)||void 0===n?void 0:n.src},configurable:!0}}),this.softDecode&&(this.pluginExtension=new Hr(o({isLive:t.isLive,media:n},r),this),this.player.forceDegradeToVideo=function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return null===(t=e.pluginExtension)||void 0===t?void 0:t.forceDegradeToVideo.apply(t,r)}),t.isLive)null===(a=this.player)||void 0===a||a.useHooks("replay",function(){var t;return null===(t=e.hls)||void 0===t?void 0:t.replay()});this.on(L.URL_CHANGE,s),this.on(L.SWITCH_SUBTITLE||"switch_subtitle",this._onSwitchSubtitle),this.on(L.DESTROY,this.destroy.bind(this)),this._transError(),this._transCoreEvent(Ne.TTFB),this._transCoreEvent(Ne.LOAD_START),this._transCoreEvent(Ne.LOAD_RESPONSE_HEADERS),this._transCoreEvent(Ne.LOAD_COMPLETE),this._transCoreEvent(Ne.LOAD_RETRY),this._transCoreEvent(Ne.SOURCEBUFFER_CREATED),this._transCoreEvent(Ne.MEDIASOURCE_OPENED),this._transCoreEvent(Ne.APPEND_BUFFER),this._transCoreEvent(Ne.REMOVE_BUFFER),this._transCoreEvent(Ne.BUFFEREOS),this._transCoreEvent(Ne.KEYFRAME),this._transCoreEvent(Ne.METADATA_PARSED),this._transCoreEvent(Ne.DEMUXED_TRACK),this._transCoreEvent(Ne.SEI),this._transCoreEvent(Ne.SEI_IN_TIME),this._transCoreEvent(Ne.SPEED),this._transCoreEvent(Ne.HLS_MANIFEST_LOADED),this._transCoreEvent(Ne.HLS_LEVEL_LOADED),this._transCoreEvent(Ne.STREAM_EXCEPTION),this._transCoreEvent(Ne.SWITCH_URL_SUCCESS),this._transCoreEvent(Ne.SWITCH_URL_FAILED),this._transCoreEvent(kn.NO_AUDIO_TRACK),this._transCoreEvent(kn.STREAM_PARSED),this._transCoreEvent(kn.SUBTITLE_SEGMENTS),this._transCoreEvent(kn.SUBTITLE_PLAYLIST),this._transCoreEvent(kn.APPEND_COST),t.url&&this.hls.load(t.url,{reuseMse:!0}).catch(function(e){})}}},{key:"destroy",value:function(){var e;this.hls&&(this.hls.destroy(),this.hls=null),null===(e=this.pluginExtension)||void 0===e||e.destroy(),this.pluginExtension=null}},{key:"_transError",value:function(){var e=this;this.hls.on(kn.ERROR,function(t){e.player&&e.player.emit(L.ERROR,new B.A(e.player,t))})}},{key:"_transCoreEvent",value:function(e){var t=this;this.hls.on(e,function(n){t.player&&(t.player.emit("core_event",o(o({},n),{},{eventName:e})),e===Ne.SEI_IN_TIME&&t.hls.hasSubtitle&&t._emitSeiPaylodTime(n))})}},{key:"_emitSeiPaylodTime",value:function(e){try{var t=JSON.parse(Array.from(e.data.payload).map(function(e){return String.fromCharCode(e)}).join("").slice(0,-1));if(!t["rtmp_dts"])return;this.player.emit("core_event",{eventName:kn.SEI_PAYLOAD_TIME,time:t["rtmp_dts"]})}catch(n){}}}],[{key:"pluginName",get:function(){return"hls"}},{key:"isSupported",value:function(e,t){return jr.isSupported(e,t)}}]),n}(R.Ay);f(zr,"Hls",jr),f(zr,"EVENT",kn)},14238:function(e){function t(e){const t=e.regex,n=t.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(e=>e+"(?![a-zA-Z@:_])")),r=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(e=>e+"(?![a-zA-Z:_])").join("|")),i=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],o=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],a={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:n},{endsParent:!0,begin:r},{endsParent:!0,variants:o},{endsParent:!0,relevance:0,variants:i}]},s={className:"params",relevance:0,begin:/#+\d?/},l={variants:o},c={className:"built_in",relevance:0,begin:/[$&^_]/},u={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},d=e.COMMENT("%","$",{relevance:0}),h=[a,s,l,c,u,d],f={begin:/\{/,end:/\}/,relevance:0,contains:["self",...h]},p=e.inherit(f,{relevance:0,endsParent:!0,contains:[f,...h]}),g={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[f,...h]},m={begin:/\s+/,relevance:0},v=[p],A=[g],b=function(e,t){return{contains:[m],starts:{relevance:0,contains:e,starts:t}}},y=function(e,t){return{begin:"\\\\"+e+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+e},relevance:0,contains:[m],starts:t}},w=function(t,n){return e.inherit({begin:"\\\\begin(?=[ \t]*(\\r?\\n[ \t]*)?\\{"+t+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},b(v,n))},_=(t="string")=>e.END_SAME_AS_BEGIN({className:t,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),x=function(e){return{className:"string",end:"(?=\\\\end\\{"+e+"\\})"}},E=(e="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:e,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),S=[...["verb","lstinline"].map(e=>y(e,{contains:[_()]})),y("mint",b(v,{contains:[_()]})),y("mintinline",b(v,{contains:[E(),_()]})),y("url",{contains:[E("link"),E("link")]}),y("hyperref",{contains:[E("link")]}),y("href",b(A,{contains:[E("link")]})),...[].concat(...["","\\*"].map(e=>[w("verbatim"+e,x("verbatim"+e)),w("filecontents"+e,b(v,x("filecontents"+e))),...["","B","L"].map(t=>w(t+"Verbatim"+e,b(A,x(t+"Verbatim"+e))))])),w("minted",b(A,b(v,x("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...S,...h]}}e.exports=t},14253:function(e,t,n){(function(e){e(n(83800))})(function(e){"use strict";var t=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;function i(e,n){var r=n.line,i=0,o=0,a=t.exec(e.getLine(r)),s=a[1];do{i+=1;var l=r+i,c=e.getLine(l),u=t.exec(c);if(u){var d=u[1],h=parseInt(a[3],10)+i-o,f=parseInt(u[3],10),p=f;if(s!==d||isNaN(f)){if(s.length>d.length)return;if(s.length<d.length&&1===i)return;o+=1}else h===f&&(p=f+1),h>f&&(p=h+1),e.replaceRange(c.replace(t,d+p+u[4]+u[5]),{line:l,ch:0},{line:l,ch:c.length})}}while(u)}e.commands.newlineAndIndentContinueMarkdownList=function(o){if(o.getOption("disableInput"))return e.Pass;for(var a=o.listSelections(),s=[],l=0;l<a.length;l++){var c=a[l].head,u=o.getStateAfter(c.line),d=e.innerMode(o.getMode(),u);if("markdown"!==d.mode.name&&"markdown"!==d.mode.helperType)return void o.execCommand("newlineAndIndent");u=d.state;var h=!1!==u.list,f=0!==u.quote,p=o.getLine(c.line),g=t.exec(p),m=/^\s*$/.test(p.slice(0,c.ch));if(!a[l].empty()||!h&&!f||!g||m)return void o.execCommand("newlineAndIndent");if(n.test(p)){var v=f&&/>\s*$/.test(p),A=!/>\s*$/.test(p);(v||A)&&o.replaceRange("",{line:c.line,ch:0},{line:c.line,ch:c.ch+1}),s[l]="\n"}else{var b=g[1],y=g[5],w=!(r.test(g[2])||g[2].indexOf(">")>=0),_=w?parseInt(g[3],10)+1+g[4]:g[2].replace("x"," ");s[l]="\n"+b+_+y,w&&i(o,c)}}o.replaceSelections(s)}})},14381:function(e,t,n){"use strict";n.d(t,{A:function(){return P}});var r=n(11591),i=n(5351),o=n(22799),a="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",h="[object Map]",f="[object Number]",p="[object Object]",g="[object RegExp]",m="[object Set]",v="[object String]",A="[object WeakMap]",b="[object ArrayBuffer]",y="[object DataView]",w="[object Float32Array]",_="[object Float64Array]",x="[object Int8Array]",E="[object Int16Array]",S="[object Int32Array]",C="[object Uint8Array]",T="[object Uint8ClampedArray]",k="[object Uint16Array]",O="[object Uint32Array]",M={};function I(e){return(0,o.A)(e)&&(0,i.A)(e.length)&&!!M[(0,r.A)(e)]}M[w]=M[_]=M[x]=M[E]=M[S]=M[C]=M[T]=M[k]=M[O]=!0,M[a]=M[s]=M[b]=M[l]=M[y]=M[c]=M[u]=M[d]=M[h]=M[f]=M[p]=M[g]=M[m]=M[v]=M[A]=!1;var D=I,N=n(17528),R=n(59646),L=R.A&&R.A.isTypedArray,B=L?(0,N.A)(L):D,P=B},14657:function(e,t,n){"use strict";n.d(t,{A:function(){return F}});var r=n(41034),i=n(56768),o=n(45130),a=n(90144),s=n(76110),l=n(17140),c=n(88416),u=n(62076),d=n(55226),h=n(7403),f=n(6252),p=n(60136),g=n(87546),m=n(49974),v=n(81425),A=n(51589),b=n(44832),y=n(44678),w=n(82978),_=n(60674),x=n(51137),E=n(90112),S=n(9519),C=n(36068);const T=(e,t,n,r,i)=>({backgroundColor:e,border:`${r.lineWidth}px ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),k=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:o,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,alertIconSizeLG:u,colorText:d,paddingContentVerticalSM:h,alertPaddingHorizontal:f,paddingMD:p,paddingContentHorizontalLG:g}=e;return{[t]:(0,x.A)((0,x.A)({},(0,C.dF)(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${h}px ${f}px`,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},["&-description"]:{display:"none",fontSize:o,lineHeight:s},"&-message":{color:d},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},\n        padding-top ${n} ${c}, padding-bottom ${n} ${c},\n        margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",paddingInline:g,paddingBlock:p,[`${t}-icon`]:{marginInlineEnd:i,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:d,fontSize:a},[`${t}-description`]:{display:"block"}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},O=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:o,colorWarningBorder:a,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:h,colorInfoBg:f}=e;return{[t]:{"&-success":T(i,r,n,e,t),"&-info":T(f,h,d,e,t),"&-warning":T(s,a,o,e,t),"&-error":(0,x.A)((0,x.A)({},T(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},M=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:o,colorIcon:a,colorIconHover:s}=e;return{[t]:{["&-action"]:{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:o,lineHeight:`${o}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:s}}}}},I=e=>[k(e),O(e),M(e)];var D=(0,E.A)("Alert",e=>{const{fontSizeHeading3:t}=e,n=(0,S.h1)(e,{alertIconSizeLG:t,alertPaddingHorizontal:12});return[I(n)]});const N={success:h.A,info:p.A,error:g.A,warning:f.A},R={success:l.A,info:u.A,error:d.A,warning:c.A},L=(0,y.PV)("success","info","warning","error"),B=()=>({type:v.A.oneOf(L),closable:{type:Boolean,default:void 0},closeText:v.A.any,message:v.A.any,description:v.A.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:v.A.any,closeIcon:v.A.any,onClose:Function}),P=(0,i.pM)({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:B(),setup(e,t){let{slots:n,emit:l,attrs:c,expose:u}=t;const{prefixCls:d,direction:h}=(0,_.A)("alert",e),[f,p]=D(d),g=(0,a.IJ)(!1),v=(0,a.IJ)(!1),y=(0,a.IJ)(),x=e=>{e.preventDefault();const t=y.value;t.style.height=`${t.offsetHeight}px`,t.style.height=`${t.offsetHeight}px`,g.value=!0,l("close",e)},E=()=>{var t;g.value=!1,v.value=!0,null===(t=e.afterClose)||void 0===t||t.call(e)},S=(0,i.EW)(()=>{const{type:t}=e;return void 0!==t?t:e.banner?"warning":"info"});u({animationEnd:E});const C=(0,a.IJ)({});return()=>{var t,a,l,u,_,T,k,O,M,I;const{banner:D,closeIcon:L=(null===(t=n.closeIcon)||void 0===t?void 0:t.call(n))}=e;let{closable:B,showIcon:P}=e;const F=null!==(a=e.closeText)&&void 0!==a?a:null===(l=n.closeText)||void 0===l?void 0:l.call(n),$=null!==(u=e.description)&&void 0!==u?u:null===(_=n.description)||void 0===_?void 0:_.call(n),j=null!==(T=e.message)&&void 0!==T?T:null===(k=n.message)||void 0===k?void 0:k.call(n),H=null!==(O=e.icon)&&void 0!==O?O:null===(M=n.icon)||void 0===M?void 0:M.call(n),U=null===(I=n.action)||void 0===I?void 0:I.call(n);P=!(!D||void 0!==P)||P;const Q=($?R:N)[S.value]||null;F&&(B=!0);const z=d.value,W=(0,m.A)(z,{[`${z}-${S.value}`]:!0,[`${z}-closing`]:g.value,[`${z}-with-description`]:!!$,[`${z}-no-icon`]:!P,[`${z}-banner`]:!!D,[`${z}-closable`]:B,[`${z}-rtl`]:"rtl"===h.value,[p.value]:!0}),G=B?(0,i.bF)("button",{type:"button",onClick:x,class:`${z}-close-icon`,tabindex:0},[F?(0,i.bF)("span",{class:`${z}-close-text`},[F]):void 0===L?(0,i.bF)(s.A,null,null):L]):null,V=H&&((0,b.zO)(H)?(0,w.Ob)(H,{class:`${z}-icon`}):(0,i.bF)("span",{class:`${z}-icon`},[H]))||(0,i.bF)(Q,{class:`${z}-icon`},null),K=(0,A.ce)(`${z}-motion`,{appear:!1,css:!0,onAfterLeave:E,onBeforeLeave:e=>{e.style.maxHeight=`${e.offsetHeight}px`},onLeave:e=>{e.style.maxHeight="0px"}});return f(v.value?null:(0,i.bF)(o.eB,K,{default:()=>[(0,i.bo)((0,i.bF)("div",(0,r.A)((0,r.A)({role:"alert"},c),{},{style:[c.style,C.value],class:[c.class,W],"data-show":!g.value,ref:y}),[P?V:null,(0,i.bF)("div",{class:`${z}-content`},[j?(0,i.bF)("div",{class:`${z}-message`},[j]):null,$?(0,i.bF)("div",{class:`${z}-description`},[$]):null]),U?(0,i.bF)("div",{class:`${z}-action`},[U]):null,G]),[[o.aG,!g.value]])]}))}}});var F=(0,y.GU)(P)},15024:function(e,t,n){"use strict";var r=n(46518),i=n(83650),o=n(39835),a=n(84916),s=!a("symmetricDifference")||!o("symmetricDifference");r({target:"Set",proto:!0,real:!0,forced:s},{symmetricDifference:i})},15113:function(e,t,n){"use strict";n.d(t,{Ay:function(){return ee}});var r=n(51137),i=n(56768),o=n(49974),a=n(73429);const s=()=>({prefixCls:String,width:{type:[Number,String]}}),l=(0,i.pM)({compatConfig:{MODE:3},name:"SkeletonTitle",props:s(),setup(e){return()=>{const{prefixCls:t,width:n}=e,r="number"===typeof n?`${n}px`:n;return(0,i.bF)("h3",{class:t,style:{width:r}},null)}}});var c=l;const u=()=>({prefixCls:String,width:{type:[Number,String,Array]},rows:Number}),d=(0,i.pM)({compatConfig:{MODE:3},name:"SkeletonParagraph",props:u(),setup(e){const t=t=>{const{width:n,rows:r=2}=e;return Array.isArray(n)?n[t]:r-1===t?n:void 0};return()=>{const{prefixCls:n,rows:r}=e,o=[...Array(r)].map((e,n)=>{const r=t(n);return(0,i.bF)("li",{key:n,style:{width:"number"===typeof r?`${r}px`:r}},null)});return(0,i.bF)("ul",{class:n},[o])}}});var h=d,f=n(60674);const p=()=>({prefixCls:String,size:[String,Number],shape:String,active:{type:Boolean,default:void 0}}),g=e=>{const{prefixCls:t,size:n,shape:r}=e,a=(0,o.A)({[`${t}-lg`]:"large"===n,[`${t}-sm`]:"small"===n}),s=(0,o.A)({[`${t}-circle`]:"circle"===r,[`${t}-square`]:"square"===r,[`${t}-round`]:"round"===r}),l="number"===typeof n?{width:`${n}px`,height:`${n}px`,lineHeight:`${n}px`}:{};return(0,i.bF)("span",{class:(0,o.A)(t,a,s),style:l},null)};g.displayName="SkeletonElement";var m=g,v=n(58085),A=n(90112),b=n(9519);const y=new v.A("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),w=e=>({height:e,lineHeight:`${e}px`}),_=e=>(0,r.A)({width:e},w(e)),x=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:y,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),E=e=>(0,r.A)({width:5*e,minWidth:5*e},w(e)),S=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:i,controlHeightLG:o,controlHeightSM:a}=e;return{[`${t}`]:(0,r.A)({display:"inline-block",verticalAlign:"top",background:n},_(i)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:(0,r.A)({},_(o)),[`${t}${t}-sm`]:(0,r.A)({},_(a))}},C=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:i,controlHeightLG:o,controlHeightSM:a,color:s}=e;return{[`${i}`]:(0,r.A)({display:"inline-block",verticalAlign:"top",background:s,borderRadius:n},E(t)),[`${i}-lg`]:(0,r.A)({},E(o)),[`${i}-sm`]:(0,r.A)({},E(a))}},T=e=>(0,r.A)({width:e},w(e)),k=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:i,borderRadiusSM:o}=e;return{[`${t}`]:(0,r.A)((0,r.A)({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:i,borderRadius:o},T(2*n)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:(0,r.A)((0,r.A)({},T(n)),{maxWidth:4*n,maxHeight:4*n}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},O=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},M=e=>(0,r.A)({width:2*e,minWidth:2*e},w(e)),I=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:i,controlHeightLG:o,controlHeightSM:a,color:s}=e;return(0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({[`${n}`]:(0,r.A)({display:"inline-block",verticalAlign:"top",background:s,borderRadius:t,width:2*i,minWidth:2*i},M(i))},O(e,i,n)),{[`${n}-lg`]:(0,r.A)({},M(o))}),O(e,o,`${n}-lg`)),{[`${n}-sm`]:(0,r.A)({},M(a))}),O(e,a,`${n}-sm`))},D=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:i,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:s,skeletonImageCls:l,controlHeight:c,controlHeightLG:u,controlHeightSM:d,color:h,padding:f,marginSM:p,borderRadius:g,skeletonTitleHeight:m,skeletonBlockRadius:v,skeletonParagraphLineHeight:A,controlHeightXS:b,skeletonParagraphMarginTop:y}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[`${n}`]:(0,r.A)({display:"inline-block",verticalAlign:"top",background:h},_(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:(0,r.A)({},_(u)),[`${n}-sm`]:(0,r.A)({},_(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${i}`]:{width:"100%",height:m,background:h,borderRadius:v,[`+ ${o}`]:{marginBlockStart:d}},[`${o}`]:{padding:0,"> li":{width:"100%",height:A,listStyle:"none",background:h,borderRadius:v,"+ li":{marginBlockStart:b}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${i}, ${o} > li`]:{borderRadius:g}}},[`${t}-with-avatar ${t}-content`]:{[`${i}`]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:(0,r.A)((0,r.A)((0,r.A)((0,r.A)({display:"inline-block",width:"auto"},I(e)),S(e)),C(e)),k(e)),[`${t}${t}-block`]:{width:"100%",[`${a}`]:{width:"100%"},[`${s}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n        ${i},\n        ${o} > li,\n        ${n},\n        ${a},\n        ${s},\n        ${l}\n      `]:(0,r.A)({},x(e))}}};var N=(0,A.A)("Skeleton",e=>{const{componentCls:t}=e,n=(0,b.h1)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:1.5*e.controlHeight,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[D(n)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}});const R=()=>({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}});function L(e){return e&&"object"===typeof e?e:{}}function B(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function P(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function F(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}const $=(0,i.pM)({compatConfig:{MODE:3},name:"ASkeleton",props:(0,a.A)(R(),{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:n}=t;const{prefixCls:a,direction:s}=(0,f.A)("skeleton",e),[l,u]=N(a);return()=>{var t;const{loading:d,avatar:f,title:p,paragraph:g,active:v,round:A}=e,b=a.value;if(d||void 0===e.loading){const e=!!f||""===f,t=!!p||""===p,n=!!g||""===g;let a,d;if(e){const e=(0,r.A)((0,r.A)({prefixCls:`${b}-avatar`},B(t,n)),L(f));a=(0,i.bF)("div",{class:`${b}-header`},[(0,i.bF)(m,e,null)])}if(t||n){let o,a;if(t){const t=(0,r.A)((0,r.A)({prefixCls:`${b}-title`},P(e,n)),L(p));o=(0,i.bF)(c,t,null)}if(n){const n=(0,r.A)((0,r.A)({prefixCls:`${b}-paragraph`},F(e,t)),L(g));a=(0,i.bF)(h,n,null)}d=(0,i.bF)("div",{class:`${b}-content`},[o,a])}const y=(0,o.A)(b,{[`${b}-with-avatar`]:e,[`${b}-active`]:v,[`${b}-rtl`]:"rtl"===s.value,[`${b}-round`]:A,[u.value]:!0});return l((0,i.bF)("div",{class:y},[a,d]))}return null===(t=n.default)||void 0===t?void 0:t.call(n)}}});var j=$,H=n(41034);const U=()=>(0,r.A)((0,r.A)({},p()),{size:String,block:Boolean}),Q=(0,i.pM)({compatConfig:{MODE:3},name:"ASkeletonButton",props:(0,a.A)(U(),{size:"default"}),setup(e){const{prefixCls:t}=(0,f.A)("skeleton",e),[n,r]=N(t),a=(0,i.EW)(()=>(0,o.A)(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},r.value));return()=>n((0,i.bF)("div",{class:a.value},[(0,i.bF)(m,(0,H.A)((0,H.A)({},e),{},{prefixCls:`${t.value}-button`}),null)]))}});var z=Q,W=n(55107);const G=(0,i.pM)({compatConfig:{MODE:3},name:"ASkeletonInput",props:(0,r.A)((0,r.A)({},(0,W.A)(p(),["shape"])),{size:String,block:Boolean}),setup(e){const{prefixCls:t}=(0,f.A)("skeleton",e),[n,r]=N(t),a=(0,i.EW)(()=>(0,o.A)(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},r.value));return()=>n((0,i.bF)("div",{class:a.value},[(0,i.bF)(m,(0,H.A)((0,H.A)({},e),{},{prefixCls:`${t.value}-input`}),null)]))}});var V=G;const K="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",Y=(0,i.pM)({compatConfig:{MODE:3},name:"ASkeletonImage",props:(0,W.A)(p(),["size","shape","active"]),setup(e){const{prefixCls:t}=(0,f.A)("skeleton",e),[n,r]=N(t),a=(0,i.EW)(()=>(0,o.A)(t.value,`${t.value}-element`,r.value));return()=>n((0,i.bF)("div",{class:a.value},[(0,i.bF)("div",{class:`${t.value}-image`},[(0,i.bF)("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",class:`${t.value}-image-svg`},[(0,i.bF)("path",{d:K,class:`${t.value}-image-path`},null)])])]))}});var q=Y;const X=()=>(0,r.A)((0,r.A)({},p()),{shape:String}),J=(0,i.pM)({compatConfig:{MODE:3},name:"ASkeletonAvatar",props:(0,a.A)(X(),{size:"default",shape:"circle"}),setup(e){const{prefixCls:t}=(0,f.A)("skeleton",e),[n,r]=N(t),a=(0,i.EW)(()=>(0,o.A)(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active},r.value));return()=>n((0,i.bF)("div",{class:a.value},[(0,i.bF)(m,(0,H.A)((0,H.A)({},e),{},{prefixCls:`${t.value}-avatar`}),null)]))}});var Z=J;j.Button=z,j.Avatar=Z,j.Input=V,j.Image=q,j.Title=c,j.install=function(e){return e.component(j.name,j),e.component(j.Button.name,z),e.component(j.Avatar.name,Z),e.component(j.Input.name,V),e.component(j.Image.name,q),e.component(j.Title.name,c),e};var ee=j},15151:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(51137);const i={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"};var o=i,a=n(4898);const s={lang:(0,r.A)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},o),timePickerLocale:(0,r.A)({},a.A)};var l=s},15241:function(e,t,n){function r(e){const t=e.regex,n=["absolute_url","asset|0","asset_version","attribute","block","constant","controller|0","country_timezones","csrf_token","cycle","date","dump","expression","form|0","form_end","form_errors","form_help","form_label","form_rest","form_row","form_start","form_widget","html_classes","include","is_granted","logout_path","logout_url","max","min","parent","path|0","random","range","relative_path","render","render_esi","source","template_from_string","url|0"],r=["abs","abbr_class","abbr_method","batch","capitalize","column","convert_encoding","country_name","currency_name","currency_symbol","data_uri","date","date_modify","default","escape","file_excerpt","file_link","file_relative","filter","first","format","format_args","format_args_as_text","format_currency","format_date","format_datetime","format_file","format_file_from_text","format_number","format_time","html_to_markdown","humanize","inky_to_html","inline_css","join","json_encode","keys","language_name","last","length","locale_name","lower","map","markdown","markdown_to_html","merge","nl2br","number_format","raw","reduce","replace","reverse","round","slice","slug","sort","spaceless","split","striptags","timezone_name","title","trans","transchoice","trim","u|0","upper","url_encode","yaml_dump","yaml_encode"];let i=["apply","autoescape","block","cache","deprecated","do","embed","extends","filter","flush","for","form_theme","from","if","import","include","macro","sandbox","set","stopwatch","trans","trans_default_domain","transchoice","use","verbatim","with"];i=i.concat(i.map(e=>`end${e}`));const o={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},a={scope:"number",match:/\d+/},s={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[o,a]},l={beginKeywords:n.join(" "),keywords:{name:n},relevance:0,contains:[s]},c={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:r}]},u=(e,{relevance:n})=>({beginScope:{1:"template-tag",3:"name"},relevance:n||2,endScope:"template-tag",begin:[/\{%/,/\s*/,t.either(...e)],end:/%\}/,keywords:"in",contains:[c,l,o,a]}),d=/[a-z_]+/,h=u(i,{relevance:2}),f=u([d],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),h,f,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",c,l,o,a]}]}}n(18111),n(61701),e.exports=r},15383:function(e,t,n){"use strict";n.d(t,{A:function(){return _}});var r=n(10707),i=n(78143),o=(n(18111),n(61701),n(18237),n(51137)),a=n(61935),s=n(10734),l=n(20783),c=n(50223);const u=(e,t)=>new c.q(e).setAlpha(t).toRgbString(),d=(e,t)=>{const n=new c.q(e);return n.lighten(t).toHexString()},h=e=>{const t=(0,a.cM)(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},f=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:u(r,.85),colorTextSecondary:u(r,.65),colorTextTertiary:u(r,.45),colorTextQuaternary:u(r,.25),colorFill:u(r,.18),colorFillSecondary:u(r,.12),colorFillTertiary:u(r,.08),colorFillQuaternary:u(r,.04),colorBgElevated:d(n,12),colorBgContainer:d(n,8),colorBgLayout:d(n,0),colorBgSpotlight:d(n,26),colorBorder:d(n,26),colorBorderSecondary:d(n,19)}},p=(e,t)=>{const n=Object.keys(s.r).map(t=>{const n=(0,a.cM)(e[t],{theme:"dark"});return new Array(10).fill(1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e),{})}).reduce((e,t)=>(e=(0,o.A)((0,o.A)({},e),t),e),{}),r=null!==t&&void 0!==t?t:(0,i.A)(e);return(0,o.A)((0,o.A)((0,o.A)({},r),n),(0,l.A)(e,{generateColorPalettes:h,generateNeutralColorPalettes:f}))};var g=p,m=n(32033);function v(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}var A=n(21202);const b=(e,t)=>{const n=null!==t&&void 0!==t?t:(0,i.A)(e),r=n.fontSizeSM,a=n.controlHeight-4;return(0,o.A)((0,o.A)((0,o.A)((0,o.A)((0,o.A)({},n),v(null!==t&&void 0!==t?t:e)),(0,A.A)(r)),{controlHeight:a}),(0,m.A)((0,o.A)((0,o.A)({},n),{controlHeight:a})))};var y=b;function w(){const[e,t,n]=(0,r.rd)();return{theme:e,token:t,hashId:n}}var _={defaultConfig:r.sb,defaultSeed:r.sb.token,useToken:w,defaultAlgorithm:i.A,darkAlgorithm:g,compactAlgorithm:y}},15416:function(e,t){"use strict";t.A={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"}},15446:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M290 236.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0013.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 000 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 00-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"}}]},name:"fullscreen",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="FullscreenOutlined",c.inheritAttrs=!1;var u=c},15551:function(e,t,n){"use strict";n.d(t,{t1:function(){return O8}});var r={};n.r(r),n.d(r,{add:function(){return Nn},adjoint:function(){return qt},clone:function(){return Qt},copy:function(){return zt},create:function(){return Ut},decompose:function(){return vn},determinant:function(){return Xt},equals:function(){return Fn},exactEquals:function(){return Pn},frob:function(){return Dn},fromQuat:function(){return yn},fromQuat2:function(){return fn},fromRotation:function(){return ln},fromRotationTranslation:function(){return hn},fromRotationTranslationScale:function(){return An},fromRotationTranslationScaleOrigin:function(){return bn},fromScaling:function(){return sn},fromTranslation:function(){return an},fromValues:function(){return Wt},fromXRotation:function(){return cn},fromYRotation:function(){return un},fromZRotation:function(){return dn},frustum:function(){return wn},getRotation:function(){return mn},getScaling:function(){return gn},getTranslation:function(){return pn},identity:function(){return Vt},invert:function(){return Yt},lookAt:function(){return On},mul:function(){return $n},multiply:function(){return Jt},multiplyScalar:function(){return Ln},multiplyScalarAndAdd:function(){return Bn},ortho:function(){return Tn},orthoNO:function(){return Cn},orthoZO:function(){return kn},perspective:function(){return xn},perspectiveFromFieldOfView:function(){return Sn},perspectiveNO:function(){return _n},perspectiveZO:function(){return En},rotate:function(){return tn},rotateX:function(){return nn},rotateY:function(){return rn},rotateZ:function(){return on},scale:function(){return en},set:function(){return Gt},str:function(){return In},sub:function(){return jn},subtract:function(){return Rn},targetTo:function(){return Mn},translate:function(){return Zt},transpose:function(){return Kt}});var i={};n.r(i),n.d(i,{area:function(){return CL},bottom:function(){return RL},bottomLeft:function(){return RL},bottomRight:function(){return RL},inside:function(){return RL},left:function(){return RL},outside:function(){return $L},right:function(){return RL},spider:function(){return WL},surround:function(){return VL},top:function(){return RL},topLeft:function(){return RL},topRight:function(){return RL}});var o={};n.r(o),n.d(o,{interpolateBlues:function(){return bF},interpolateBrBG:function(){return IP},interpolateBuGn:function(){return YP},interpolateBuPu:function(){return XP},interpolateCividis:function(){return MF},interpolateCool:function(){return KF},interpolateCubehelixDefault:function(){return GF},interpolateGnBu:function(){return ZP},interpolateGreens:function(){return wF},interpolateGreys:function(){return xF},interpolateInferno:function(){return o$},interpolateMagma:function(){return i$},interpolateOrRd:function(){return tF},interpolateOranges:function(){return OF},interpolatePRGn:function(){return NP},interpolatePiYG:function(){return LP},interpolatePlasma:function(){return a$},interpolatePuBu:function(){return oF},interpolatePuBuGn:function(){return rF},interpolatePuOr:function(){return PP},interpolatePuRd:function(){return sF},interpolatePurples:function(){return SF},interpolateRainbow:function(){return qF},interpolateRdBu:function(){return $P},interpolateRdGy:function(){return HP},interpolateRdPu:function(){return cF},interpolateRdYlBu:function(){return QP},interpolateRdYlGn:function(){return WP},interpolateReds:function(){return TF},interpolateSinebow:function(){return e$},interpolateSpectral:function(){return VP},interpolateTurbo:function(){return t$},interpolateViridis:function(){return r$},interpolateWarm:function(){return VF},interpolateYlGn:function(){return fF},interpolateYlGnBu:function(){return dF},interpolateYlOrBr:function(){return gF},interpolateYlOrRd:function(){return vF},schemeAccent:function(){return xB},schemeBlues:function(){return AF},schemeBrBG:function(){return MP},schemeBuGn:function(){return KP},schemeBuPu:function(){return qP},schemeCategory10:function(){return _B},schemeDark2:function(){return EB},schemeGnBu:function(){return JP},schemeGreens:function(){return yF},schemeGreys:function(){return _F},schemeObservable10:function(){return SB},schemeOrRd:function(){return eF},schemeOranges:function(){return kF},schemePRGn:function(){return DP},schemePaired:function(){return CB},schemePastel1:function(){return TB},schemePastel2:function(){return kB},schemePiYG:function(){return RP},schemePuBu:function(){return iF},schemePuBuGn:function(){return nF},schemePuOr:function(){return BP},schemePuRd:function(){return aF},schemePurples:function(){return EF},schemeRdBu:function(){return FP},schemeRdGy:function(){return jP},schemeRdPu:function(){return lF},schemeRdYlBu:function(){return UP},schemeRdYlGn:function(){return zP},schemeReds:function(){return CF},schemeSet1:function(){return OB},schemeSet2:function(){return MB},schemeSet3:function(){return IB},schemeSpectral:function(){return GP},schemeTableau10:function(){return DB},schemeYlGn:function(){return hF},schemeYlGnBu:function(){return uF},schemeYlOrBr:function(){return pF},schemeYlOrRd:function(){return mF}});var a={};n.r(a),n.d(a,{geoAlbers:function(){return eX},geoAlbersUsa:function(){return nX},geoAzimuthalEqualArea:function(){return aX},geoAzimuthalEqualAreaRaw:function(){return oX},geoAzimuthalEquidistant:function(){return lX},geoAzimuthalEquidistantRaw:function(){return sX},geoConicConformal:function(){return pX},geoConicConformalRaw:function(){return fX},geoConicEqualArea:function(){return Zq},geoConicEqualAreaRaw:function(){return Jq},geoConicEquidistant:function(){return AX},geoConicEquidistantRaw:function(){return vX},geoEqualEarth:function(){return CX},geoEqualEarthRaw:function(){return SX},geoEquirectangular:function(){return mX},geoEquirectangularRaw:function(){return gX},geoGnomonic:function(){return kX},geoGnomonicRaw:function(){return TX},geoIdentity:function(){return OX},geoMercator:function(){return uX},geoMercatorRaw:function(){return cX},geoNaturalEarth1:function(){return IX},geoNaturalEarth1Raw:function(){return MX},geoOrthographic:function(){return NX},geoOrthographicRaw:function(){return DX},geoProjection:function(){return Kq},geoProjectionMutator:function(){return Yq},geoStereographic:function(){return LX},geoStereographicRaw:function(){return RX},geoTransverseMercator:function(){return PX},geoTransverseMercatorRaw:function(){return BX}});var s={};n.r(s),n.d(s,{frequency:function(){return K0},id:function(){return Y0},name:function(){return q0},weight:function(){return V0}});const l=()=>[["cartesian"]];function c(e,t){return e%=2*Math.PI,t%=2*Math.PI,e<0&&(e=2*Math.PI+e),t<0&&(t=2*Math.PI+t),e>=t&&(t+=2*Math.PI),{startAngle:e,endAngle:t}}l.props={};const u=(e={})=>{const t={startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,outerRadius:1},n=Object.assign(Object.assign({},t),e);return Object.assign(Object.assign({},n),c(n.startAngle,n.endAngle))},d=e=>{const{startAngle:t,endAngle:n,innerRadius:r,outerRadius:i}=u(e);return[["translate",0,.5],["reflect.y"],["translate",0,-.5],["polar",t,n,r,i]]};d.props={};const h=()=>[["transpose"],["translate",.5,.5],["reflect.x"],["translate",-.5,-.5]];h.props={transform:!0};const f=(e={})=>{const t={startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},t),e)},p=e=>{const{startAngle:t,endAngle:n,innerRadius:r,outerRadius:i}=f(e);return[...h(),...d({startAngle:t,endAngle:n,innerRadius:r,outerRadius:i})]};p.props={};const g=()=>[["parallel",0,1,0,1]];g.props={};const m=({focusX:e=0,focusY:t=0,distortionX:n=2,distortionY:r=2,visual:i=!1})=>[["fisheye",e,t,n,r,i]];m.props={transform:!0};const v=(e={})=>{const t={startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},t),e)},A=e=>{const{startAngle:t,endAngle:n,innerRadius:r,outerRadius:i}=v(e);return[["transpose"],["translate",.5,.5],["reflect"],["translate",-.5,-.5],...d({startAngle:t,endAngle:n,innerRadius:r,outerRadius:i})]};A.props={};const b=e=>{const{startAngle:t=-Math.PI/2,endAngle:n=3*Math.PI/2,innerRadius:r=0,outerRadius:i=1}=e;return[...g(),...d({startAngle:t,endAngle:n,innerRadius:r,outerRadius:i})]};b.props={};const y=({startAngle:e=0,endAngle:t=6*Math.PI,innerRadius:n=0,outerRadius:r=1})=>[["translate",.5,.5],["reflect.y"],["translate",-.5,-.5],["helix",e,t,n,r]];y.props={};n(18111),n(61701);const w=({value:e})=>t=>t.map(()=>e);w.props={};const _=({value:e})=>t=>t.map(t=>t[e]);_.props={};const x=({value:e})=>t=>t.map(e);x.props={};const E=({value:e})=>()=>e;function S(e){return Array.isArray(e)}E.props={};var C=function(e){return"object"===typeof e&&null!==e},T=C,k={}.toString,O=function(e,t){return k.call(e)==="[object "+t+"]"},M=O,I=function(e){if(!T(e)||!M(e,"Object"))return!1;if(null===Object.getPrototypeOf(e))return!0;var t=e;while(null!==Object.getPrototypeOf(t))t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},D=I,N=5;function R(e,t){if(Object.hasOwn)return Object.hasOwn(e,t);if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}function L(e,t,n,r){for(var i in n=n||0,r=r||N,t)if(R(t,i)){var o=t[i];null!==o&&D(o)?(D(e[i])||(e[i]={}),n<r?L(e[i],o,n+1,r):e[i]=t[i]):S(o)?(e[i]=[],e[i]=e[i].concat(o)):void 0!==o&&(e[i]=o)}}var B=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r+=1)L(e,t[r]);return e},P=B;function F(e,t){if(null!==e)return{type:"column",value:e,field:t}}function $(e,t){const n=F(e,t);return Object.assign(Object.assign({},n),{inferred:!0})}function j(e,t){if(null!==e)return{type:"column",value:e,field:t,visual:!0}}function H(e,t){const n=F(e,t);return Object.assign(Object.assign({},n),{constant:!1})}function U(e,t){const n=[];for(const r of e)n[r]=t;return n}function Q(e,t){const n=e[t];if(!n)return[null,null];const{value:r,field:i=null}=n;return[r,i]}function z(e,...t){for(const n of t){if("string"!==typeof n)return[n,null];{const[t,r]=Q(e,n);if(null!==t)return[t,r]}}return[null,null]}function W(e){return!(e instanceof Date)&&"object"===typeof e}const G=()=>(e,t)=>{const{encode:n}=t,{y1:r}=n;return void 0!==r?[e,t]:[e,P({},t,{encode:{y1:$(U(e,0))}})]};G.props={};const V=()=>(e,t)=>{const{encode:n}=t,{x:r}=n;return void 0!==r?[e,t]:[e,P({},t,{encode:{x:$(U(e,0))},scale:{x:{guide:null}}})]};V.props={};n(44114);function K(e){return function(){return e}}const Y=Math.abs,q=Math.atan2,X=Math.cos,J=Math.max,Z=Math.min,ee=Math.sin,te=Math.sqrt,ne=1e-12,re=Math.PI,ie=re/2,oe=2*re;function ae(e){return e>1?0:e<-1?re:Math.acos(e)}function se(e){return e>=1?ie:e<=-1?-ie:Math.asin(e)}const le=Math.PI,ce=2*le,ue=1e-6,de=ce-ue;function he(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function fe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return he;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}class pe{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?he:fe(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,o){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,s=n-e,l=r-t,c=o-e,u=a-t,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>ue)if(Math.abs(u*s-l*c)>ue&&i){let h=n-o,f=r-a,p=s*s+l*l,g=h*h+f*f,m=Math.sqrt(p),v=Math.sqrt(d),A=i*Math.tan((le-Math.acos((p+d-g)/(2*m*v)))/2),b=A/v,y=A/m;Math.abs(b-1)>ue&&this._append`L${e+b*c},${t+b*u}`,this._append`A${i},${i},0,0,${+(u*h>c*f)},${this._x1=e+y*s},${this._y1=t+y*l}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,n,r,i,o){if(e=+e,t=+t,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),s=n*Math.sin(r),l=e+a,c=t+s,u=1^o,d=o?r-i:i-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>ue||Math.abs(this._y1-c)>ue)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%ce+ce),d>de?this._append`A${n},${n},0,1,${u},${e-a},${t-s}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:d>ue&&this._append`A${n},${n},0,${+(d>=le)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function ge(){return new pe}function me(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new pe(t)}function ve(e){return e.innerRadius}function Ae(e){return e.outerRadius}function be(e){return e.startAngle}function ye(e){return e.endAngle}function we(e){return e&&e.padAngle}function _e(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,h=d*l-u*c;if(!(h*h<ne))return h=(u*(t-o)-d*(e-i))/h,[e+h*l,t+h*c]}function xe(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/te(s*s+l*l),u=c*l,d=-c*s,h=e+u,f=t+d,p=n+u,g=r+d,m=(h+p)/2,v=(f+g)/2,A=p-h,b=g-f,y=A*A+b*b,w=i-o,_=h*g-p*f,x=(b<0?-1:1)*te(J(0,w*w*y-_*_)),E=(_*b-A*x)/y,S=(-_*A-b*x)/y,C=(_*b+A*x)/y,T=(-_*A+b*x)/y,k=E-m,O=S-v,M=C-m,I=T-v;return k*k+O*O>M*M+I*I&&(E=C,S=T),{cx:E,cy:S,x01:-u,y01:-d,x11:E*(i/w-1),y11:S*(i/w-1)}}function Ee(){var e=ve,t=Ae,n=K(0),r=null,i=be,o=ye,a=we,s=null,l=me(c);function c(){var c,u,d=+e.apply(this,arguments),h=+t.apply(this,arguments),f=i.apply(this,arguments)-ie,p=o.apply(this,arguments)-ie,g=Y(p-f),m=p>f;if(s||(s=c=l()),h<d&&(u=h,h=d,d=u),h>ne)if(g>oe-ne)s.moveTo(h*X(f),h*ee(f)),s.arc(0,0,h,f,p,!m),d>ne&&(s.moveTo(d*X(p),d*ee(p)),s.arc(0,0,d,p,f,m));else{var v,A,b=f,y=p,w=f,_=p,x=g,E=g,S=a.apply(this,arguments)/2,C=S>ne&&(r?+r.apply(this,arguments):te(d*d+h*h)),T=Z(Y(h-d)/2,+n.apply(this,arguments)),k=T,O=T;if(C>ne){var M=se(C/d*ee(S)),I=se(C/h*ee(S));(x-=2*M)>ne?(M*=m?1:-1,w+=M,_-=M):(x=0,w=_=(f+p)/2),(E-=2*I)>ne?(I*=m?1:-1,b+=I,y-=I):(E=0,b=y=(f+p)/2)}var D=h*X(b),N=h*ee(b),R=d*X(_),L=d*ee(_);if(T>ne){var B,P=h*X(y),F=h*ee(y),$=d*X(w),j=d*ee(w);if(g<re)if(B=_e(D,N,$,j,P,F,R,L)){var H=D-B[0],U=N-B[1],Q=P-B[0],z=F-B[1],W=1/ee(ae((H*Q+U*z)/(te(H*H+U*U)*te(Q*Q+z*z)))/2),G=te(B[0]*B[0]+B[1]*B[1]);k=Z(T,(d-G)/(W-1)),O=Z(T,(h-G)/(W+1))}else k=O=0}E>ne?O>ne?(v=xe($,j,D,N,h,O,m),A=xe(P,F,R,L,h,O,m),s.moveTo(v.cx+v.x01,v.cy+v.y01),O<T?s.arc(v.cx,v.cy,O,q(v.y01,v.x01),q(A.y01,A.x01),!m):(s.arc(v.cx,v.cy,O,q(v.y01,v.x01),q(v.y11,v.x11),!m),s.arc(0,0,h,q(v.cy+v.y11,v.cx+v.x11),q(A.cy+A.y11,A.cx+A.x11),!m),s.arc(A.cx,A.cy,O,q(A.y11,A.x11),q(A.y01,A.x01),!m))):(s.moveTo(D,N),s.arc(0,0,h,b,y,!m)):s.moveTo(D,N),d>ne&&x>ne?k>ne?(v=xe(R,L,P,F,d,-k,m),A=xe(D,N,$,j,d,-k,m),s.lineTo(v.cx+v.x01,v.cy+v.y01),k<T?s.arc(v.cx,v.cy,k,q(v.y01,v.x01),q(A.y01,A.x01),!m):(s.arc(v.cx,v.cy,k,q(v.y01,v.x01),q(v.y11,v.x11),!m),s.arc(0,0,d,q(v.cy+v.y11,v.cx+v.x11),q(A.cy+A.y11,A.cx+A.x11),m),s.arc(A.cx,A.cy,k,q(A.y11,A.x11),q(A.y01,A.x01),!m))):s.arc(0,0,d,_,w,m):s.lineTo(R,L)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-re/2;return[X(r)*n,ee(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"===typeof t?t:K(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"===typeof e?e:K(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"===typeof e?e:K(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:K(+e),c):r},c.startAngle=function(e){return arguments.length?(i="function"===typeof e?e:K(+e),c):i},c.endAngle=function(e){return arguments.length?(o="function"===typeof e?e:K(+e),c):o},c.padAngle=function(e){return arguments.length?(a="function"===typeof e?e:K(+e),c):a},c.context=function(e){return arguments.length?(s=null==e?null:e,c):s},c}ge.prototype=pe.prototype;n(22489),n(20116),n(13579);function Se(e){const{transformations:t}=e.getOptions(),n=t.map(([e])=>e).filter(e=>"transpose"===e);return n.length%2!==0}function Ce(e){const{transformations:t}=e.getOptions();return t.some(([e])=>"polar"===e)}function Te(e){const{transformations:t}=e.getOptions();return t.some(([e])=>"reflect"===e)&&t.some(([e])=>e.startsWith("transpose"))}function ke(e){const{transformations:t}=e.getOptions();return t.some(([e])=>"helix"===e)}function Oe(e){const{transformations:t}=e.getOptions();return t.some(([e])=>"parallel"===e)}function Me(e){const{transformations:t}=e.getOptions();return t.some(([e])=>"fisheye"===e)}function Ie(e){return Oe(e)&&Ce(e)}function De(e){return ke(e)||Ce(e)}function Ne(e){return Ce(e)&&Se(e)}function Re(e){if(De(e)){const[t,n]=e.getSize(),r=e.getOptions().transformations.find(e=>"polar"===e[0]);if(r)return Math.max(t,n)/2*r[4]}return 0}function Le(e){const{transformations:t}=e.getOptions(),[,,,n,r]=t.find(e=>"polar"===e[0]);return[+n,+r]}function Be(e,t=!0){const{transformations:n}=e.getOptions(),[,r,i]=n.find(e=>"polar"===e[0]);return t?[180*+r/Math.PI,180*+i/Math.PI]:[r,i]}function Pe(e,t){const{transformations:n}=e.getOptions(),[,...r]=n.find(e=>e[0]===t);return r}n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(81148),n(7588),n(18237);var Fe=n(41034);function $e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var je=n(33051);function He(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,je.A)(r.key),r)}}function Ue(e,t,n){return t&&He(e.prototype,t),n&&He(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ze(e){if(Array.isArray(e))return Qe(e)}function We(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Ge(e,t){if(e){if("string"==typeof e)return Qe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qe(e,t):void 0}}function Ve(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ke(e){return ze(e)||We(e)||Ge(e)||Ve()}function Ye(e){return Ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ye(e)}function qe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qe=function(){return!!e})()}var Xe=n(54119);function Je(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ze(e,t){if(t&&("object"==(0,Xe.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Je(e)}function et(e,t,n){return t=Ye(t),Ze(e,qe()?Reflect.construct(t,n||[],Ye(e).constructor):t.apply(e,n))}function tt(e,t){return tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tt(e,t)}function nt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tt(e,t)}function rt(e){if(Array.isArray(e))return e}function it(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(c)throw i}}return s}}function ot(){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 at(e,t){return rt(e)||it(e,t)||Ge(e,t)||ot()}var st=n(33529),lt=st,ct=(n(79577),1e-6),ut="undefined"!==typeof Float32Array?Float32Array:Array,dt=(Math.random,"zyx");Math.PI,Math.PI;function ht(){var e=new ut(3);return ut!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function ft(e){var t=new ut(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function pt(e){var t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}function gt(e,t,n){var r=new ut(3);return r[0]=e,r[1]=t,r[2]=n,r}function mt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function vt(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}function At(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function bt(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function yt(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function wt(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function _t(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function xt(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function Et(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(n*n+r*r+i*i)}function St(e,t){var n=t[0],r=t[1],i=t[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e}function Ct(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Tt(e,t,n){var r=t[0],i=t[1],o=t[2],a=n[0],s=n[1],l=n[2];return e[0]=i*l-o*s,e[1]=o*a-r*l,e[2]=r*s-i*a,e}function kt(e,t,n,r){var i=t[0],o=t[1],a=t[2];return e[0]=i+r*(n[0]-i),e[1]=o+r*(n[1]-o),e[2]=a+r*(n[2]-a),e}function Ot(e,t,n){var r=t[0],i=t[1],o=t[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,e[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,e[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,e[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,e}function Mt(e,t,n){var r=t[0],i=t[1],o=t[2];return e[0]=r*n[0]+i*n[3]+o*n[6],e[1]=r*n[1]+i*n[4]+o*n[7],e[2]=r*n[2]+i*n[5]+o*n[8],e}function It(e,t,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=t[0],l=t[1],c=t[2],u=i*c-o*l,d=o*s-r*c,h=r*l-i*s;return u+=u,d+=d,h+=h,e[0]=s+a*u+i*h-o*d,e[1]=l+a*d+o*u-r*h,e[2]=c+a*h+r*d-i*u,e}function Dt(e,t){var n=e[0],r=e[1],i=e[2],o=t[0],a=t[1],s=t[2];return Math.abs(n-o)<=ct*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=ct*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-s)<=ct*Math.max(1,Math.abs(i),Math.abs(s))}var Nt=bt,Rt=Et,Lt=pt;(function(){var e=ht()})();function Bt(){var e=new ut(4);return ut!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function Pt(e,t,n,r){var i=new ut(4);return i[0]=e,i[1]=t,i[2]=n,i[3]=r,i}function Ft(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function $t(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function jt(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=n*n+r*r+i*i+o*o;return a>0&&(a=1/Math.sqrt(a)),e[0]=n*a,e[1]=r*a,e[2]=i*a,e[3]=o*a,e}function Ht(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3];return e[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,e[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,e[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,e[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*a,e}(function(){var e=Bt()})();function Ut(){var e=new ut(16);return ut!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}function Qt(e){var t=new ut(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function zt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function Wt(e,t,n,r,i,o,a,s,l,c,u,d,h,f,p,g){var m=new ut(16);return m[0]=e,m[1]=t,m[2]=n,m[3]=r,m[4]=i,m[5]=o,m[6]=a,m[7]=s,m[8]=l,m[9]=c,m[10]=u,m[11]=d,m[12]=h,m[13]=f,m[14]=p,m[15]=g,m}function Gt(e,t,n,r,i,o,a,s,l,c,u,d,h,f,p,g,m){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e[4]=o,e[5]=a,e[6]=s,e[7]=l,e[8]=c,e[9]=u,e[10]=d,e[11]=h,e[12]=f,e[13]=p,e[14]=g,e[15]=m,e}function Vt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function Kt(e,t){if(e===t){var n=t[1],r=t[2],i=t[3],o=t[6],a=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[6]=t[9],e[7]=t[13],e[8]=r,e[9]=o,e[11]=t[14],e[12]=i,e[13]=a,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}function Yt(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=t[9],h=t[10],f=t[11],p=t[12],g=t[13],m=t[14],v=t[15],A=n*s-r*a,b=n*l-i*a,y=n*c-o*a,w=r*l-i*s,_=r*c-o*s,x=i*c-o*l,E=u*g-d*p,S=u*m-h*p,C=u*v-f*p,T=d*m-h*g,k=d*v-f*g,O=h*v-f*m,M=A*O-b*k+y*T+w*C-_*S+x*E;return M?(M=1/M,e[0]=(s*O-l*k+c*T)*M,e[1]=(i*k-r*O-o*T)*M,e[2]=(g*x-m*_+v*w)*M,e[3]=(h*_-d*x-f*w)*M,e[4]=(l*C-a*O-c*S)*M,e[5]=(n*O-i*C+o*S)*M,e[6]=(m*y-p*x-v*b)*M,e[7]=(u*x-h*y+f*b)*M,e[8]=(a*k-s*C+c*E)*M,e[9]=(r*C-n*k-o*E)*M,e[10]=(p*_-g*y+v*A)*M,e[11]=(d*y-u*_-f*A)*M,e[12]=(s*S-a*T-l*E)*M,e[13]=(n*T-r*S+i*E)*M,e[14]=(g*b-p*w-m*A)*M,e[15]=(u*w-d*b+h*A)*M,e):null}function qt(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=t[9],h=t[10],f=t[11],p=t[12],g=t[13],m=t[14],v=t[15],A=n*s-r*a,b=n*l-i*a,y=n*c-o*a,w=r*l-i*s,_=r*c-o*s,x=i*c-o*l,E=u*g-d*p,S=u*m-h*p,C=u*v-f*p,T=d*m-h*g,k=d*v-f*g,O=h*v-f*m;return e[0]=s*O-l*k+c*T,e[1]=i*k-r*O-o*T,e[2]=g*x-m*_+v*w,e[3]=h*_-d*x-f*w,e[4]=l*C-a*O-c*S,e[5]=n*O-i*C+o*S,e[6]=m*y-p*x-v*b,e[7]=u*x-h*y+f*b,e[8]=a*k-s*C+c*E,e[9]=r*C-n*k-o*E,e[10]=p*_-g*y+v*A,e[11]=d*y-u*_-f*A,e[12]=s*S-a*T-l*E,e[13]=n*T-r*S+i*E,e[14]=g*b-p*w-m*A,e[15]=u*w-d*b+h*A,e}function Xt(e){var t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],c=e[8],u=e[9],d=e[10],h=e[11],f=e[12],p=e[13],g=e[14],m=e[15],v=t*a-n*o,A=t*s-r*o,b=n*s-r*a,y=c*p-u*f,w=c*g-d*f,_=u*g-d*p,x=t*_-n*w+r*y,E=o*_-a*w+s*y,S=c*b-u*A+d*v,C=f*b-p*A+g*v;return l*x-i*E+m*S-h*C}function Jt(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],h=t[9],f=t[10],p=t[11],g=t[12],m=t[13],v=t[14],A=t[15],b=n[0],y=n[1],w=n[2],_=n[3];return e[0]=b*r+y*s+w*d+_*g,e[1]=b*i+y*l+w*h+_*m,e[2]=b*o+y*c+w*f+_*v,e[3]=b*a+y*u+w*p+_*A,b=n[4],y=n[5],w=n[6],_=n[7],e[4]=b*r+y*s+w*d+_*g,e[5]=b*i+y*l+w*h+_*m,e[6]=b*o+y*c+w*f+_*v,e[7]=b*a+y*u+w*p+_*A,b=n[8],y=n[9],w=n[10],_=n[11],e[8]=b*r+y*s+w*d+_*g,e[9]=b*i+y*l+w*h+_*m,e[10]=b*o+y*c+w*f+_*v,e[11]=b*a+y*u+w*p+_*A,b=n[12],y=n[13],w=n[14],_=n[15],e[12]=b*r+y*s+w*d+_*g,e[13]=b*i+y*l+w*h+_*m,e[14]=b*o+y*c+w*f+_*v,e[15]=b*a+y*u+w*p+_*A,e}function Zt(e,t,n){var r,i,o,a,s,l,c,u,d,h,f,p,g=n[0],m=n[1],v=n[2];return t===e?(e[12]=t[0]*g+t[4]*m+t[8]*v+t[12],e[13]=t[1]*g+t[5]*m+t[9]*v+t[13],e[14]=t[2]*g+t[6]*m+t[10]*v+t[14],e[15]=t[3]*g+t[7]*m+t[11]*v+t[15]):(r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],h=t[9],f=t[10],p=t[11],e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e[6]=c,e[7]=u,e[8]=d,e[9]=h,e[10]=f,e[11]=p,e[12]=r*g+s*m+d*v+t[12],e[13]=i*g+l*m+h*v+t[13],e[14]=o*g+c*m+f*v+t[14],e[15]=a*g+u*m+p*v+t[15]),e}function en(e,t,n){var r=n[0],i=n[1],o=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function tn(e,t,n,r){var i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C,T,k=r[0],O=r[1],M=r[2],I=Math.sqrt(k*k+O*O+M*M);return I<ct?null:(I=1/I,k*=I,O*=I,M*=I,i=Math.sin(n),o=Math.cos(n),a=1-o,s=t[0],l=t[1],c=t[2],u=t[3],d=t[4],h=t[5],f=t[6],p=t[7],g=t[8],m=t[9],v=t[10],A=t[11],b=k*k*a+o,y=O*k*a+M*i,w=M*k*a-O*i,_=k*O*a-M*i,x=O*O*a+o,E=M*O*a+k*i,S=k*M*a+O*i,C=O*M*a-k*i,T=M*M*a+o,e[0]=s*b+d*y+g*w,e[1]=l*b+h*y+m*w,e[2]=c*b+f*y+v*w,e[3]=u*b+p*y+A*w,e[4]=s*_+d*x+g*E,e[5]=l*_+h*x+m*E,e[6]=c*_+f*x+v*E,e[7]=u*_+p*x+A*E,e[8]=s*S+d*C+g*T,e[9]=l*S+h*C+m*T,e[10]=c*S+f*C+v*T,e[11]=u*S+p*C+A*T,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}function nn(e,t,n){var r=Math.sin(n),i=Math.cos(n),o=t[4],a=t[5],s=t[6],l=t[7],c=t[8],u=t[9],d=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=o*i+c*r,e[5]=a*i+u*r,e[6]=s*i+d*r,e[7]=l*i+h*r,e[8]=c*i-o*r,e[9]=u*i-a*r,e[10]=d*i-s*r,e[11]=h*i-l*r,e}function rn(e,t,n){var r=Math.sin(n),i=Math.cos(n),o=t[0],a=t[1],s=t[2],l=t[3],c=t[8],u=t[9],d=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*i-c*r,e[1]=a*i-u*r,e[2]=s*i-d*r,e[3]=l*i-h*r,e[8]=o*r+c*i,e[9]=a*r+u*i,e[10]=s*r+d*i,e[11]=l*r+h*i,e}function on(e,t,n){var r=Math.sin(n),i=Math.cos(n),o=t[0],a=t[1],s=t[2],l=t[3],c=t[4],u=t[5],d=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*i+c*r,e[1]=a*i+u*r,e[2]=s*i+d*r,e[3]=l*i+h*r,e[4]=c*i-o*r,e[5]=u*i-a*r,e[6]=d*i-s*r,e[7]=h*i-l*r,e}function an(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function sn(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function ln(e,t,n){var r,i,o,a=n[0],s=n[1],l=n[2],c=Math.sqrt(a*a+s*s+l*l);return c<ct?null:(c=1/c,a*=c,s*=c,l*=c,r=Math.sin(t),i=Math.cos(t),o=1-i,e[0]=a*a*o+i,e[1]=s*a*o+l*r,e[2]=l*a*o-s*r,e[3]=0,e[4]=a*s*o-l*r,e[5]=s*s*o+i,e[6]=l*s*o+a*r,e[7]=0,e[8]=a*l*o+s*r,e[9]=s*l*o-a*r,e[10]=l*l*o+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function cn(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r,e[6]=n,e[7]=0,e[8]=0,e[9]=-n,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function un(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=0,e[2]=-n,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=n,e[9]=0,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function dn(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=0,e[4]=-n,e[5]=r,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function hn(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=r+r,l=i+i,c=o+o,u=r*s,d=r*l,h=r*c,f=i*l,p=i*c,g=o*c,m=a*s,v=a*l,A=a*c;return e[0]=1-(f+g),e[1]=d+A,e[2]=h-v,e[3]=0,e[4]=d-A,e[5]=1-(u+g),e[6]=p+m,e[7]=0,e[8]=h+v,e[9]=p-m,e[10]=1-(u+f),e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}function fn(e,t){var n=new ut(3),r=-t[0],i=-t[1],o=-t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=r*r+i*i+o*o+a*a;return d>0?(n[0]=2*(s*a+u*r+l*o-c*i)/d,n[1]=2*(l*a+u*i+c*r-s*o)/d,n[2]=2*(c*a+u*o+s*i-l*r)/d):(n[0]=2*(s*a+u*r+l*o-c*i),n[1]=2*(l*a+u*i+c*r-s*o),n[2]=2*(c*a+u*o+s*i-l*r)),hn(e,t,n),e}function pn(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function gn(e,t){var n=t[0],r=t[1],i=t[2],o=t[4],a=t[5],s=t[6],l=t[8],c=t[9],u=t[10];return e[0]=Math.sqrt(n*n+r*r+i*i),e[1]=Math.sqrt(o*o+a*a+s*s),e[2]=Math.sqrt(l*l+c*c+u*u),e}function mn(e,t){var n=new ut(3);gn(n,t);var r=1/n[0],i=1/n[1],o=1/n[2],a=t[0]*r,s=t[1]*i,l=t[2]*o,c=t[4]*r,u=t[5]*i,d=t[6]*o,h=t[8]*r,f=t[9]*i,p=t[10]*o,g=a+u+p,m=0;return g>0?(m=2*Math.sqrt(g+1),e[3]=.25*m,e[0]=(d-f)/m,e[1]=(h-l)/m,e[2]=(s-c)/m):a>u&&a>p?(m=2*Math.sqrt(1+a-u-p),e[3]=(d-f)/m,e[0]=.25*m,e[1]=(s+c)/m,e[2]=(h+l)/m):u>p?(m=2*Math.sqrt(1+u-a-p),e[3]=(h-l)/m,e[0]=(s+c)/m,e[1]=.25*m,e[2]=(d+f)/m):(m=2*Math.sqrt(1+p-a-u),e[3]=(s-c)/m,e[0]=(h+l)/m,e[1]=(d+f)/m,e[2]=.25*m),e}function vn(e,t,n,r){t[0]=r[12],t[1]=r[13],t[2]=r[14];var i=r[0],o=r[1],a=r[2],s=r[4],l=r[5],c=r[6],u=r[8],d=r[9],h=r[10];n[0]=Math.sqrt(i*i+o*o+a*a),n[1]=Math.sqrt(s*s+l*l+c*c),n[2]=Math.sqrt(u*u+d*d+h*h);var f=1/n[0],p=1/n[1],g=1/n[2],m=i*f,v=o*p,A=a*g,b=s*f,y=l*p,w=c*g,_=u*f,x=d*p,E=h*g,S=m+y+E,C=0;return S>0?(C=2*Math.sqrt(S+1),e[3]=.25*C,e[0]=(w-x)/C,e[1]=(_-A)/C,e[2]=(v-b)/C):m>y&&m>E?(C=2*Math.sqrt(1+m-y-E),e[3]=(w-x)/C,e[0]=.25*C,e[1]=(v+b)/C,e[2]=(_+A)/C):y>E?(C=2*Math.sqrt(1+y-m-E),e[3]=(_-A)/C,e[0]=(v+b)/C,e[1]=.25*C,e[2]=(w+x)/C):(C=2*Math.sqrt(1+E-m-y),e[3]=(v-b)/C,e[0]=(_+A)/C,e[1]=(w+x)/C,e[2]=.25*C),e}function An(e,t,n,r){var i=t[0],o=t[1],a=t[2],s=t[3],l=i+i,c=o+o,u=a+a,d=i*l,h=i*c,f=i*u,p=o*c,g=o*u,m=a*u,v=s*l,A=s*c,b=s*u,y=r[0],w=r[1],_=r[2];return e[0]=(1-(p+m))*y,e[1]=(h+b)*y,e[2]=(f-A)*y,e[3]=0,e[4]=(h-b)*w,e[5]=(1-(d+m))*w,e[6]=(g+v)*w,e[7]=0,e[8]=(f+A)*_,e[9]=(g-v)*_,e[10]=(1-(d+p))*_,e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}function bn(e,t,n,r,i){var o=t[0],a=t[1],s=t[2],l=t[3],c=o+o,u=a+a,d=s+s,h=o*c,f=o*u,p=o*d,g=a*u,m=a*d,v=s*d,A=l*c,b=l*u,y=l*d,w=r[0],_=r[1],x=r[2],E=i[0],S=i[1],C=i[2],T=(1-(g+v))*w,k=(f+y)*w,O=(p-b)*w,M=(f-y)*_,I=(1-(h+v))*_,D=(m+A)*_,N=(p+b)*x,R=(m-A)*x,L=(1-(h+g))*x;return e[0]=T,e[1]=k,e[2]=O,e[3]=0,e[4]=M,e[5]=I,e[6]=D,e[7]=0,e[8]=N,e[9]=R,e[10]=L,e[11]=0,e[12]=n[0]+E-(T*E+M*S+N*C),e[13]=n[1]+S-(k*E+I*S+R*C),e[14]=n[2]+C-(O*E+D*S+L*C),e[15]=1,e}function yn(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=n+n,s=r+r,l=i+i,c=n*a,u=r*a,d=r*s,h=i*a,f=i*s,p=i*l,g=o*a,m=o*s,v=o*l;return e[0]=1-d-p,e[1]=u+v,e[2]=h-m,e[3]=0,e[4]=u-v,e[5]=1-c-p,e[6]=f+g,e[7]=0,e[8]=h+m,e[9]=f-g,e[10]=1-c-d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function wn(e,t,n,r,i,o,a){var s=1/(n-t),l=1/(i-r),c=1/(o-a);return e[0]=2*o*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=2*o*l,e[6]=0,e[7]=0,e[8]=(n+t)*s,e[9]=(i+r)*l,e[10]=(a+o)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=a*o*2*c,e[15]=0,e}function _n(e,t,n,r,i){var o=1/Math.tan(t/2);if(e[0]=o/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0){var a=1/(r-i);e[10]=(i+r)*a,e[14]=2*i*r*a}else e[10]=-1,e[14]=-2*r;return e}var xn=_n;function En(e,t,n,r,i){var o=1/Math.tan(t/2);if(e[0]=o/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=i&&i!==1/0){var a=1/(r-i);e[10]=i*a,e[14]=i*r*a}else e[10]=-1,e[14]=-r;return e}function Sn(e,t,n,r){var i=Math.tan(t.upDegrees*Math.PI/180),o=Math.tan(t.downDegrees*Math.PI/180),a=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(a+s),c=2/(i+o);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-(a-s)*l*.5,e[9]=(i-o)*c*.5,e[10]=r/(n-r),e[11]=-1,e[12]=0,e[13]=0,e[14]=r*n/(n-r),e[15]=0,e}function Cn(e,t,n,r,i,o,a){var s=1/(t-n),l=1/(r-i),c=1/(o-a);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+n)*s,e[13]=(i+r)*l,e[14]=(a+o)*c,e[15]=1,e}var Tn=Cn;function kn(e,t,n,r,i,o,a){var s=1/(t-n),l=1/(r-i),c=1/(o-a);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=c,e[11]=0,e[12]=(t+n)*s,e[13]=(i+r)*l,e[14]=o*c,e[15]=1,e}function On(e,t,n,r){var i,o,a,s,l,c,u,d,h,f,p=t[0],g=t[1],m=t[2],v=r[0],A=r[1],b=r[2],y=n[0],w=n[1],_=n[2];return Math.abs(p-y)<ct&&Math.abs(g-w)<ct&&Math.abs(m-_)<ct?Vt(e):(u=p-y,d=g-w,h=m-_,f=1/Math.sqrt(u*u+d*d+h*h),u*=f,d*=f,h*=f,i=A*h-b*d,o=b*u-v*h,a=v*d-A*u,f=Math.sqrt(i*i+o*o+a*a),f?(f=1/f,i*=f,o*=f,a*=f):(i=0,o=0,a=0),s=d*a-h*o,l=h*i-u*a,c=u*o-d*i,f=Math.sqrt(s*s+l*l+c*c),f?(f=1/f,s*=f,l*=f,c*=f):(s=0,l=0,c=0),e[0]=i,e[1]=s,e[2]=u,e[3]=0,e[4]=o,e[5]=l,e[6]=d,e[7]=0,e[8]=a,e[9]=c,e[10]=h,e[11]=0,e[12]=-(i*p+o*g+a*m),e[13]=-(s*p+l*g+c*m),e[14]=-(u*p+d*g+h*m),e[15]=1,e)}function Mn(e,t,n,r){var i=t[0],o=t[1],a=t[2],s=r[0],l=r[1],c=r[2],u=i-n[0],d=o-n[1],h=a-n[2],f=u*u+d*d+h*h;f>0&&(f=1/Math.sqrt(f),u*=f,d*=f,h*=f);var p=l*h-c*d,g=c*u-s*h,m=s*d-l*u;return f=p*p+g*g+m*m,f>0&&(f=1/Math.sqrt(f),p*=f,g*=f,m*=f),e[0]=p,e[1]=g,e[2]=m,e[3]=0,e[4]=d*m-h*g,e[5]=h*p-u*m,e[6]=u*g-d*p,e[7]=0,e[8]=u,e[9]=d,e[10]=h,e[11]=0,e[12]=i,e[13]=o,e[14]=a,e[15]=1,e}function In(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}function Dn(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]+e[3]*e[3]+e[4]*e[4]+e[5]*e[5]+e[6]*e[6]+e[7]*e[7]+e[8]*e[8]+e[9]*e[9]+e[10]*e[10]+e[11]*e[11]+e[12]*e[12]+e[13]*e[13]+e[14]*e[14]+e[15]*e[15])}function Nn(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e[4]=t[4]+n[4],e[5]=t[5]+n[5],e[6]=t[6]+n[6],e[7]=t[7]+n[7],e[8]=t[8]+n[8],e[9]=t[9]+n[9],e[10]=t[10]+n[10],e[11]=t[11]+n[11],e[12]=t[12]+n[12],e[13]=t[13]+n[13],e[14]=t[14]+n[14],e[15]=t[15]+n[15],e}function Rn(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e[4]=t[4]-n[4],e[5]=t[5]-n[5],e[6]=t[6]-n[6],e[7]=t[7]-n[7],e[8]=t[8]-n[8],e[9]=t[9]-n[9],e[10]=t[10]-n[10],e[11]=t[11]-n[11],e[12]=t[12]-n[12],e[13]=t[13]-n[13],e[14]=t[14]-n[14],e[15]=t[15]-n[15],e}function Ln(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*n,e[9]=t[9]*n,e[10]=t[10]*n,e[11]=t[11]*n,e[12]=t[12]*n,e[13]=t[13]*n,e[14]=t[14]*n,e[15]=t[15]*n,e}function Bn(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e[4]=t[4]+n[4]*r,e[5]=t[5]+n[5]*r,e[6]=t[6]+n[6]*r,e[7]=t[7]+n[7]*r,e[8]=t[8]+n[8]*r,e[9]=t[9]+n[9]*r,e[10]=t[10]+n[10]*r,e[11]=t[11]+n[11]*r,e[12]=t[12]+n[12]*r,e[13]=t[13]+n[13]*r,e[14]=t[14]+n[14]*r,e[15]=t[15]+n[15]*r,e}function Pn(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function Fn(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],c=e[7],u=e[8],d=e[9],h=e[10],f=e[11],p=e[12],g=e[13],m=e[14],v=e[15],A=t[0],b=t[1],y=t[2],w=t[3],_=t[4],x=t[5],E=t[6],S=t[7],C=t[8],T=t[9],k=t[10],O=t[11],M=t[12],I=t[13],D=t[14],N=t[15];return Math.abs(n-A)<=ct*Math.max(1,Math.abs(n),Math.abs(A))&&Math.abs(r-b)<=ct*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(i-y)<=ct*Math.max(1,Math.abs(i),Math.abs(y))&&Math.abs(o-w)<=ct*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(a-_)<=ct*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(s-x)<=ct*Math.max(1,Math.abs(s),Math.abs(x))&&Math.abs(l-E)<=ct*Math.max(1,Math.abs(l),Math.abs(E))&&Math.abs(c-S)<=ct*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(u-C)<=ct*Math.max(1,Math.abs(u),Math.abs(C))&&Math.abs(d-T)<=ct*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(h-k)<=ct*Math.max(1,Math.abs(h),Math.abs(k))&&Math.abs(f-O)<=ct*Math.max(1,Math.abs(f),Math.abs(O))&&Math.abs(p-M)<=ct*Math.max(1,Math.abs(p),Math.abs(M))&&Math.abs(g-I)<=ct*Math.max(1,Math.abs(g),Math.abs(I))&&Math.abs(m-D)<=ct*Math.max(1,Math.abs(m),Math.abs(D))&&Math.abs(v-N)<=ct*Math.max(1,Math.abs(v),Math.abs(N))}var $n=Jt,jn=Rn;function Hn(){var e=new ut(9);return ut!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function Un(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}function Qn(e,t,n,r,i,o,a,s,l){var c=new ut(9);return c[0]=e,c[1]=t,c[2]=n,c[3]=r,c[4]=i,c[5]=o,c[6]=a,c[7]=s,c[8]=l,c}function zn(){var e=new ut(4);return ut!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function Wn(e,t,n){n*=.5;var r=Math.sin(n);return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=Math.cos(n),e}function Gn(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=n[0],l=n[1],c=n[2],u=n[3];return e[0]=r*u+a*s+i*c-o*l,e[1]=i*u+a*l+o*s-r*c,e[2]=o*u+a*c+r*l-i*s,e[3]=a*u-r*s-i*l-o*c,e}function Vn(e,t,n,r){var i,o,a,s,l,c=t[0],u=t[1],d=t[2],h=t[3],f=n[0],p=n[1],g=n[2],m=n[3];return o=c*f+u*p+d*g+h*m,o<0&&(o=-o,f=-f,p=-p,g=-g,m=-m),1-o>ct?(i=Math.acos(o),a=Math.sin(i),s=Math.sin((1-r)*i)/a,l=Math.sin(r*i)/a):(s=1-r,l=r),e[0]=s*c+l*f,e[1]=s*u+l*p,e[2]=s*d+l*g,e[3]=s*h+l*m,e}function Kn(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=n*n+r*r+i*i+o*o,s=a?1/a:0;return e[0]=-n*s,e[1]=-r*s,e[2]=-i*s,e[3]=o*s,e}function Yn(e,t){var n,r=t[0]+t[4]+t[8];if(r>0)n=Math.sqrt(r+1),e[3]=.5*n,n=.5/n,e[0]=(t[5]-t[7])*n,e[1]=(t[6]-t[2])*n,e[2]=(t[1]-t[3])*n;else{var i=0;t[4]>t[0]&&(i=1),t[8]>t[3*i+i]&&(i=2);var o=(i+1)%3,a=(i+2)%3;n=Math.sqrt(t[3*i+i]-t[3*o+o]-t[3*a+a]+1),e[i]=.5*n,n=.5/n,e[3]=(t[3*o+a]-t[3*a+o])*n,e[o]=(t[3*o+i]+t[3*i+o])*n,e[a]=(t[3*a+i]+t[3*i+a])*n}return e}function qn(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:dt,o=Math.PI/360;t*=o,r*=o,n*=o;var a=Math.sin(t),s=Math.cos(t),l=Math.sin(n),c=Math.cos(n),u=Math.sin(r),d=Math.cos(r);switch(i){case"xyz":e[0]=a*c*d+s*l*u,e[1]=s*l*d-a*c*u,e[2]=s*c*u+a*l*d,e[3]=s*c*d-a*l*u;break;case"xzy":e[0]=a*c*d-s*l*u,e[1]=s*l*d-a*c*u,e[2]=s*c*u+a*l*d,e[3]=s*c*d+a*l*u;break;case"yxz":e[0]=a*c*d+s*l*u,e[1]=s*l*d-a*c*u,e[2]=s*c*u-a*l*d,e[3]=s*c*d+a*l*u;break;case"yzx":e[0]=a*c*d+s*l*u,e[1]=s*l*d+a*c*u,e[2]=s*c*u-a*l*d,e[3]=s*c*d-a*l*u;break;case"zxy":e[0]=a*c*d-s*l*u,e[1]=s*l*d+a*c*u,e[2]=s*c*u+a*l*d,e[3]=s*c*d-a*l*u;break;case"zyx":e[0]=a*c*d-s*l*u,e[1]=s*l*d+a*c*u,e[2]=s*c*u-a*l*d,e[3]=s*c*d+a*l*u;break;default:throw new Error("Unknown angle order "+i)}return e}var Xn=Pt,Jn=Ft,Zn=$t,er=Gn,tr=jt;(function(){var e=ht(),t=gt(1,0,0),n=gt(0,1,0)})(),function(){var e=zn(),t=zn()}(),function(){var e=Hn()}();function nr(){var e=new ut(2);return ut!=Float32Array&&(e[0]=0,e[1]=0),e}function rr(e,t){return e[0]=t[0],e[1]=t[1],e}function ir(e,t,n){return e[0]=t,e[1]=n,e}function or(e,t){var n=t[0],r=t[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),e[0]=t[0]*i,e[1]=t[1]*i,e}function ar(e,t){return e[0]*t[0]+e[1]*t[1]}function sr(e,t){return e[0]===t[0]&&e[1]===t[1]}(function(){var e=nr()})();function lr(e){return"number"===typeof e}function cr(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}function ur(e){return null===e||void 0===e}function dr(e){return"string"===typeof e}var hr=function(e,t,n){return e<t?t:e>n?n:e},fr=hr,pr=(n(34113),n(97324),n(88940),n(76382),n(50452),function(e,t){return pr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},pr(e,t)});function gr(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}pr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var mr=function(){return mr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},mr.apply(this,arguments)};function vr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}Object.create;function Ar(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function br(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a}function yr(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;function wr(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}"function"===typeof SuppressedError&&SuppressedError;var _r={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function xr(e){return Array.isArray(e)&&e.every(function(e){var t=e[0].toLowerCase();return _r[t]===e.length-1&&"achlmqstvz".includes(t)})}function Er(e){return xr(e)&&e.every(function(e){var t=e[0];return t===t.toUpperCase()})}function Sr(e){return Er(e)&&e.every(function(e){var t=e[0];return"ACLMQZ".includes(t)})}var Cr={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function Tr(e){var t=e.pathValue[e.segmentStart],n=t.toLowerCase(),r=e.data;while(r.length>=_r[n])if("m"===n&&r.length>2?(e.segments.push([t].concat(r.splice(0,2))),n="l",t="m"===t?"l":"L"):e.segments.push([t].concat(r.splice(0,_r[n]))),!_r[n])break}function kr(e){var t=e.index,n=e.pathValue,r=n.charCodeAt(t);return 48===r?(e.param=0,void(e.index+=1)):49===r?(e.param=1,void(e.index+=1)):void(e.err='[path-util]: invalid Arc flag "'.concat(n[t],'", expecting 0 or 1 at index ').concat(t))}function Or(e){return e>=48&&e<=57||43===e||45===e||46===e}function Mr(e){return e>=48&&e<=57}function Ir(e){var t,n=e.max,r=e.pathValue,i=e.index,o=i,a=!1,s=!1,l=!1,c=!1;if(o>=n)e.err="[path-util]: Invalid path value at index ".concat(o,', "pathValue" is missing param');else if(t=r.charCodeAt(o),43!==t&&45!==t||(o+=1,t=r.charCodeAt(o)),Mr(t)||46===t){if(46!==t){if(a=48===t,o+=1,t=r.charCodeAt(o),a&&o<n&&t&&Mr(t))return void(e.err="[path-util]: Invalid path value at index ".concat(i,', "').concat(r[i],'" illegal number'));while(o<n&&Mr(r.charCodeAt(o)))o+=1,s=!0;t=r.charCodeAt(o)}if(46===t){c=!0,o+=1;while(Mr(r.charCodeAt(o)))o+=1,l=!0;t=r.charCodeAt(o)}if(101===t||69===t){if(c&&!s&&!l)return void(e.err="[path-util]: Invalid path value at index ".concat(o,', "').concat(r[o],'" invalid float exponent'));if(o+=1,t=r.charCodeAt(o),43!==t&&45!==t||(o+=1),!(o<n&&Mr(r.charCodeAt(o))))return void(e.err="[path-util]: Invalid path value at index ".concat(o,', "').concat(r[o],'" invalid integer exponent'));while(o<n&&Mr(r.charCodeAt(o)))o+=1}e.index=o,e.param=+e.pathValue.slice(i,o)}else e.err="[path-util]: Invalid path value at index ".concat(o,', "').concat(r[o],'" is not a number')}function Dr(e){var t=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];return 10===e||13===e||8232===e||8233===e||32===e||9===e||11===e||12===e||160===e||e>=5760&&t.includes(e)}function Nr(e){var t=e.pathValue,n=e.max;while(e.index<n&&Dr(t.charCodeAt(e.index)))e.index+=1}function Rr(e){switch(32|e){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:return!0;default:return!1}}function Lr(e){return 97===(32|e)}function Br(e){var t=e.max,n=e.pathValue,r=e.index,i=n.charCodeAt(r),o=_r[n[r].toLowerCase()];if(e.segmentStart=r,Rr(i))if(e.index+=1,Nr(e),e.data=[],o){for(;;){for(var a=o;a>0;a-=1){if(!Lr(i)||3!==a&&4!==a?Ir(e):kr(e),e.err.length)return;e.data.push(e.param),Nr(e),e.index<t&&44===n.charCodeAt(e.index)&&(e.index+=1,Nr(e))}if(e.index>=e.max)break;if(!Or(n.charCodeAt(e.index)))break}Tr(e)}else Tr(e);else e.err='[path-util]: Invalid path value "'.concat(n[r],'" is not a path command')}var Pr=function(){function e(e){this.pathValue=e,this.segments=[],this.max=e.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return e}();function Fr(e){if(xr(e))return[].concat(e);var t=new Pr(e);Nr(t);while(t.index<t.max&&!t.err.length)Br(t);return t.err?t.err:t.segments}function $r(e){if(Er(e))return[].concat(e);var t=Fr(e),n=0,r=0,i=0,o=0;return t.map(function(e){var t,a=e.slice(1).map(Number),s=e[0],l=s.toUpperCase();if("M"===s)return n=a[0],r=a[1],i=n,o=r,["M",n,r];if(s!==l)switch(l){case"A":t=[l,a[0],a[1],a[2],a[3],a[4],a[5]+n,a[6]+r];break;case"V":t=[l,a[0]+r];break;case"H":t=[l,a[0]+n];break;default:var c=a.map(function(e,t){return e+(t%2?r:n)});t=[l].concat(c)}else t=[l].concat(a);var u=t.length;switch(l){case"Z":n=i,r=o;break;case"H":n=t[1];break;case"V":r=t[1];break;default:n=t[u-2],r=t[u-1],"M"===l&&(i=n,o=r)}return t})}function jr(e,t){var n=e[0],r=t.x1,i=t.y1,o=t.x2,a=t.y2,s=e.slice(1).map(Number),l=e;if("TQ".includes(n)||(t.qx=null,t.qy=null),"H"===n)l=["L",e[1],i];else if("V"===n)l=["L",r,e[1]];else if("S"===n){var c=2*r-o,u=2*i-a;t.x1=c,t.y1=u,l=["C",c,u].concat(s)}else if("T"===n){var d=2*r-t.qx,h=2*i-t.qy;t.qx=d,t.qy=h,l=["Q",d,h].concat(s)}else if("Q"===n){var f=s[0],p=s[1];t.qx=f,t.qy=p}return l}function Hr(e){if(Sr(e))return[].concat(e);for(var t=$r(e),n=mr({},Cr),r=0;r<t.length;r+=1){t[r]=jr(t[r],n);var i=t[r],o=i.length;n.x1=+i[o-2],n.y1=+i[o-1],n.x2=+i[o-4]||n.x1,n.y2=+i[o-3]||n.y1}return t}function Ur(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return[r+(o-r)*n,i+(a-i)*n]}function Qr(e,t,n,r,i){var o=cr([e,t],[n,r]),a={x:0,y:0};if("number"===typeof i)if(i<=0)a={x:e,y:t};else if(i>=o)a={x:n,y:r};else{var s=Ur([e,t],[n,r],i/o),l=s[0],c=s[1];a={x:l,y:c}}return{length:o,point:a,min:{x:Math.min(e,n),y:Math.min(t,r)},max:{x:Math.max(e,n),y:Math.max(t,r)}}}function zr(e,t){var n=e.x,r=e.y,i=t.x,o=t.y,a=n*i+r*o,s=Math.sqrt((Math.pow(n,2)+Math.pow(r,2))*(Math.pow(i,2)+Math.pow(o,2))),l=n*o-r*i<0?-1:1,c=l*Math.acos(a/s);return c}function Wr(e,t,n,r,i,o,a,s,l,c){var u=Math.abs,d=Math.sin,h=Math.cos,f=Math.sqrt,p=Math.PI,g=u(n),m=u(r),v=(i%360+360)%360,A=v*(p/180);if(e===s&&t===l)return{x:e,y:t};if(0===g||0===m)return Qr(e,t,s,l,c).point;var b=(e-s)/2,y=(t-l)/2,w={x:h(A)*b+d(A)*y,y:-d(A)*b+h(A)*y},_=Math.pow(w.x,2)/Math.pow(g,2)+Math.pow(w.y,2)/Math.pow(m,2);_>1&&(g*=f(_),m*=f(_));var x=Math.pow(g,2)*Math.pow(m,2)-Math.pow(g,2)*Math.pow(w.y,2)-Math.pow(m,2)*Math.pow(w.x,2),E=Math.pow(g,2)*Math.pow(w.y,2)+Math.pow(m,2)*Math.pow(w.x,2),S=x/E;S=S<0?0:S;var C=(o!==a?1:-1)*f(S),T={x:C*(g*w.y/m),y:C*(-m*w.x/g)},k={x:h(A)*T.x-d(A)*T.y+(e+s)/2,y:d(A)*T.x+h(A)*T.y+(t+l)/2},O={x:(w.x-T.x)/g,y:(w.y-T.y)/m},M=zr({x:1,y:0},O),I={x:(-w.x-T.x)/g,y:(-w.y-T.y)/m},D=zr(O,I);!a&&D>0?D-=2*p:a&&D<0&&(D+=2*p),D%=2*p;var N=M+D*c,R=g*h(N),L=m*d(N),B={x:h(A)*R-d(A)*L+k.x,y:d(A)*R+h(A)*L+k.y};return B}function Gr(e,t,n,r,i,o,a,s,l,c,u){var d,h=u.bbox,f=void 0===h||h,p=u.length,g=void 0===p||p,m=u.sampleSize,v=void 0===m?30:m,A="number"===typeof c,b=e,y=t,w=0,_=[b,y,w],x=[b,y],E=0,S={x:0,y:0},C=[{x:b,y:y}];A&&c<=0&&(S={x:b,y:y});for(var T=0;T<=v;T+=1){if(E=T/v,d=Wr(e,t,n,r,i,o,a,s,l,E),b=d.x,y=d.y,f&&C.push({x:b,y:y}),g&&(w+=cr(x,[b,y])),x=[b,y],A&&w>=c&&c>_[2]){var k=(w-c)/(w-_[2]);S={x:x[0]*(1-k)+_[0]*k,y:x[1]*(1-k)+_[1]*k}}_=[b,y,w]}return A&&c>=w&&(S={x:s,y:l}),{length:w,point:S,min:{x:Math.min.apply(null,C.map(function(e){return e.x})),y:Math.min.apply(null,C.map(function(e){return e.y}))},max:{x:Math.max.apply(null,C.map(function(e){return e.x})),y:Math.max.apply(null,C.map(function(e){return e.y}))}}}function Vr(e,t,n,r,i,o,a,s,l){var c=1-l;return{x:Math.pow(c,3)*e+3*Math.pow(c,2)*l*n+3*c*Math.pow(l,2)*i+Math.pow(l,3)*a,y:Math.pow(c,3)*t+3*Math.pow(c,2)*l*r+3*c*Math.pow(l,2)*o+Math.pow(l,3)*s}}function Kr(e,t,n,r,i,o,a,s,l,c){var u,d=c.bbox,h=void 0===d||d,f=c.length,p=void 0===f||f,g=c.sampleSize,m=void 0===g?10:g,v="number"===typeof l,A=e,b=t,y=0,w=[A,b,y],_=[A,b],x=0,E={x:0,y:0},S=[{x:A,y:b}];v&&l<=0&&(E={x:A,y:b});for(var C=0;C<=m;C+=1){if(x=C/m,u=Vr(e,t,n,r,i,o,a,s,x),A=u.x,b=u.y,h&&S.push({x:A,y:b}),p&&(y+=cr(_,[A,b])),_=[A,b],v&&y>=l&&l>w[2]){var T=(y-l)/(y-w[2]);E={x:_[0]*(1-T)+w[0]*T,y:_[1]*(1-T)+w[1]*T}}w=[A,b,y]}return v&&l>=y&&(E={x:a,y:s}),{length:y,point:E,min:{x:Math.min.apply(null,S.map(function(e){return e.x})),y:Math.min.apply(null,S.map(function(e){return e.y}))},max:{x:Math.max.apply(null,S.map(function(e){return e.x})),y:Math.max.apply(null,S.map(function(e){return e.y}))}}}function Yr(e,t,n,r,i,o,a){var s=1-a;return{x:Math.pow(s,2)*e+2*s*a*n+Math.pow(a,2)*i,y:Math.pow(s,2)*t+2*s*a*r+Math.pow(a,2)*o}}function qr(e,t,n,r,i,o,a,s){var l,c=s.bbox,u=void 0===c||c,d=s.length,h=void 0===d||d,f=s.sampleSize,p=void 0===f?10:f,g="number"===typeof a,m=e,v=t,A=0,b=[m,v,A],y=[m,v],w=0,_={x:0,y:0},x=[{x:m,y:v}];g&&a<=0&&(_={x:m,y:v});for(var E=0;E<=p;E+=1){if(w=E/p,l=Yr(e,t,n,r,i,o,w),m=l.x,v=l.y,u&&x.push({x:m,y:v}),h&&(A+=cr(y,[m,v])),y=[m,v],g&&A>=a&&a>b[2]){var S=(A-a)/(A-b[2]);_={x:y[0]*(1-S)+b[0]*S,y:y[1]*(1-S)+b[1]*S}}b=[m,v,A]}return g&&a>=A&&(_={x:i,y:o}),{length:A,point:_,min:{x:Math.min.apply(null,x.map(function(e){return e.x})),y:Math.min.apply(null,x.map(function(e){return e.y}))},max:{x:Math.max.apply(null,x.map(function(e){return e.x})),y:Math.max.apply(null,x.map(function(e){return e.y}))}}}function Xr(e,t,n){for(var r,i,o,a,s,l,c,u,d,h=Hr(e),f="number"===typeof t,p=[],g=0,m=0,v=0,A=0,b=[],y=[],w=0,_={x:0,y:0},x=_,E=_,S=_,C=0,T=0,k=h.length;T<k;T+=1)d=h[T],u=d[0],c="M"===u,p=c?p:[g,m].concat(d.slice(1)),c?(v=d[1],A=d[2],_={x:v,y:A},x=_,w=0,f&&t<.001&&(S=_)):"L"===u?(r=Qr(p[0],p[1],p[2],p[3],(t||0)-C),w=r.length,_=r.min,x=r.max,E=r.point):"A"===u?(i=Gr(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],(t||0)-C,n||{}),w=i.length,_=i.min,x=i.max,E=i.point):"C"===u?(o=Kr(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],(t||0)-C,n||{}),w=o.length,_=o.min,x=o.max,E=o.point):"Q"===u?(a=qr(p[0],p[1],p[2],p[3],p[4],p[5],(t||0)-C,n||{}),w=a.length,_=a.min,x=a.max,E=a.point):"Z"===u&&(p=[g,m,v,A],s=Qr(p[0],p[1],p[2],p[3],(t||0)-C),w=s.length,_=s.min,x=s.max,E=s.point),f&&C<t&&C+w>=t&&(S=E),y.push(x),b.push(_),C+=w,l="Z"!==u?d.slice(-2):[v,A],g=l[0],m=l[1];return f&&t>=C&&(S={x:g,y:m}),{length:C,point:S,min:{x:Math.min.apply(null,b.map(function(e){return e.x})),y:Math.min.apply(null,b.map(function(e){return e.y}))},max:{x:Math.max.apply(null,y.map(function(e){return e.x})),y:Math.max.apply(null,y.map(function(e){return e.y}))}}}function Jr(e,t){return Xr(e,void 0,mr(mr({},t),{bbox:!1,length:!0})).length}var Zr=function(e){if(S(e))return e.reduce(function(e,t){return Math.min(e,t)},e[0])};function ei(e){if(!Array.isArray(e))return-1/0;var t=e.length;if(!t)return-1/0;for(var n=e[0],r=1;r<t;r++)n=Math.max(n,e[r]);return n}var ti=1e-5;function ni(e,t,n){return void 0===n&&(n=ti),e===t||Math.abs(e-t)<n}var ri=function(e,t){return(e%t+t)%t},ii=ri;function oi(e,t,n){if(e[n].length>7){e[n].shift();var r=e[n],i=n;while(r.length)t[n]="A",e.splice(i+=1,0,["C"].concat(r.splice(0,6)));e.splice(n,1)}}function ai(e){return Sr(e)&&e.every(function(e){var t=e[0];return"MC".includes(t)})}function si(e,t,n){var r=e*Math.cos(n)-t*Math.sin(n),i=e*Math.sin(n)+t*Math.cos(n);return{x:r,y:i}}function li(e,t,n,r,i,o,a,s,l,c){var u,d,h,f,p,g=e,m=t,v=n,A=r,b=s,y=l,w=120*Math.PI/180,_=Math.PI/180*(+i||0),x=[];if(c)d=c[0],h=c[1],f=c[2],p=c[3];else{u=si(g,m,-_),g=u.x,m=u.y,u=si(b,y,-_),b=u.x,y=u.y;var E=(g-b)/2,S=(m-y)/2,C=E*E/(v*v)+S*S/(A*A);C>1&&(C=Math.sqrt(C),v*=C,A*=C);var T=v*v,k=A*A,O=(o===a?-1:1)*Math.sqrt(Math.abs((T*k-T*S*S-k*E*E)/(T*S*S+k*E*E)));f=O*v*S/A+(g+b)/2,p=O*-A*E/v+(m+y)/2,d=Math.asin(((m-p)/A*Math.pow(10,9)|0)/Math.pow(10,9)),h=Math.asin(((y-p)/A*Math.pow(10,9)|0)/Math.pow(10,9)),d=g<f?Math.PI-d:d,h=b<f?Math.PI-h:h,d<0&&(d=2*Math.PI+d),h<0&&(h=2*Math.PI+h),a&&d>h&&(d-=2*Math.PI),!a&&h>d&&(h-=2*Math.PI)}var M=h-d;if(Math.abs(M)>w){var I=h,D=b,N=y;h=d+w*(a&&h>d?1:-1),b=f+v*Math.cos(h),y=p+A*Math.sin(h),x=li(b,y,v,A,i,0,a,D,N,[h,I,f,p])}M=h-d;var R=Math.cos(d),L=Math.sin(d),B=Math.cos(h),P=Math.sin(h),F=Math.tan(M/4),$=4/3*v*F,j=4/3*A*F,H=[g,m],U=[g+$*L,m-j*R],Q=[b+$*P,y-j*B],z=[b,y];if(U[0]=2*H[0]-U[0],U[1]=2*H[1]-U[1],c)return U.concat(Q,z,x);x=U.concat(Q,z,x);for(var W=[],G=0,V=x.length;G<V;G+=1)W[G]=G%2?si(x[G-1],x[G],_).y:si(x[G],x[G+1],_).x;return W}function ci(e,t,n,r,i,o){var a=1/3,s=2/3;return[a*e+s*n,a*t+s*r,a*i+s*n,a*o+s*r,i,o]}var ui=function(e,t,n,r){var i=.5,o=Ur([e,t],[n,r],i);return yr(yr([],o,!0),[n,r,n,r],!1)};function di(e,t){var n,r=e[0],i=e.slice(1).map(Number),o=i[0],a=i[1],s=t.x1,l=t.y1,c=t.x,u=t.y;switch("TQ".includes(r)||(t.qx=null,t.qy=null),r){case"M":return t.x=o,t.y=a,e;case"A":return n=[s,l].concat(i),["C"].concat(li(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9]));case"Q":return t.qx=o,t.qy=a,n=[s,l].concat(i),["C"].concat(ci(n[0],n[1],n[2],n[3],n[4],n[5]));case"L":return["C"].concat(ui(s,l,o,a));case"Z":return s===c&&l===u?["C",s,l,c,u,c,u]:["C"].concat(ui(s,l,c,u));default:}return e}function hi(e,t){if(void 0===t&&(t=!1),ai(e)){var n=[].concat(e);return t?[n,[]]:n}for(var r,i,o=Hr(e),a=mr({},Cr),s=[],l="",c=o.length,u=[],d=0;d<c;d+=1){o[d]&&(l=o[d][0]),s[d]=l;var h=di(o[d],a);o[d]=h,oi(o,s,d),c=o.length,"Z"===l&&u.push(d),r=o[d],i=r.length,a.x1=+r[i-2],a.y1=+r[i-1],a.x2=+r[i-4]||a.x1,a.y2=+r[i-3]||a.y1}return t?[o,u]:o}var fi=50;function pi(e,t){void 0===t&&(t=.5);var n=e.slice(0,2),r=e.slice(2,4),i=e.slice(4,6),o=e.slice(6,8),a=Ur(n,r,t),s=Ur(r,i,t),l=Ur(i,o,t),c=Ur(a,s,t),u=Ur(s,l,t),d=Ur(c,u,t);return[["C"].concat(a,c,d),["C"].concat(u,l,o)]}function gi(e){return e.map(function(e,t,n){var r,i=t&&n[t-1].slice(-2).concat(e.slice(1)),o=t?Kr(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],{bbox:!1}).length:0;return r=t?o?pi(i):[e,e]:[e],{s:e,ss:r,l:o}})}function mi(e,t,n,r){if(void 0===r&&(r=0),r>fi)return console.warn("Maximum recursion depth reached in equalizeSegments"),[e,t];var i=gi(e),o=gi(t),a=i.length,s=o.length,l=i.filter(function(e){return e.l}).length,c=o.filter(function(e){return e.l}).length,u=i.filter(function(e){return e.l}).reduce(function(e,t){var n=t.l;return e+n},0)/l||0,d=o.filter(function(e){return e.l}).reduce(function(e,t){var n=t.l;return e+n},0)/c||0,h=n||Math.max(a,s),f=[u,d],p=[h-a,h-s],g=0,m=[i,o].map(function(e,t){return e.l===h?e.map(function(e){return e.s}):e.map(function(e,n){return g=n&&p[t]&&e.l>=f[t],p[t]-=g?1:0,g?e.ss:[e.s]}).flat()});return m[0].length===m[1].length?m:mi(m[0],m[1],h,r+1)}function vi(e,t,n,r,i,o,a,s){return 3*((s-t)*(n+i)-(a-e)*(r+o)+r*(e-i)-n*(t-o)+s*(i+e/3)-a*(o+t/3))/20}function Ai(e){var t=0,n=0,r=0;return hi(e).map(function(e){var i;switch(e[0]){case"M":return t=e[1],n=e[2],0;default:var o=e.slice(1),a=o[0],s=o[1],l=o[2],c=o[3],u=o[4],d=o[5];return r=vi(t,n,a,s,l,c,u,d),i=e.slice(-2),t=i[0],n=i[1],r}}).reduce(function(e,t){return e+t},0)}function bi(e){return Ai(e)>=0}function yi(e){var t=e.slice(1).map(function(t,n,r){return n?r[n-1].slice(-2).concat(t.slice(1)):e[0].slice(1).concat(t.slice(1))}).map(function(e){return e.map(function(t,n){return e[e.length-n-2*(1-n%2)]})}).reverse();return[["M"].concat(t[0].slice(0,2))].concat(t.map(function(e){return["C"].concat(e.slice(2))}))}function wi(e){return e.map(function(e){return Array.isArray(e)?[].concat(e):e})}function _i(e){var t=e.length,n=t-1;return e.map(function(r,i){return e.map(function(r,o){var a,s=i+o;return 0===o||e[s]&&"M"===e[s][0]?(a=e[s],["M"].concat(a.slice(-2))):(s>=t&&(s-=n),e[s])})})}function xi(e,t){var n=e.length-1,r=[],i=0,o=0,a=_i(e);return a.forEach(function(i,a){e.slice(1).forEach(function(r,i){o+=cr(e[(a+i)%n].slice(-2),t[i%n].slice(-2))}),r[a]=o,o=0}),i=r.indexOf(Math.min.apply(null,r)),a[i]}var Ei=function(e){return void 0===e},Si=Ei,Ci=function(e){return M(e,"Boolean")},Ti=Ci;function ki(e){return"function"===typeof e}var Oi=function(e){var t=typeof e;return null!==e&&"object"===t||"function"===t};function Mi(e,t,n){return Xr(e,t,mr(mr({},n),{bbox:!1,length:!0})).point}var Ii=n(23772);function Di(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Ye(e)););return e}function Ni(){return Ni="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Di(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},Ni.apply(null,arguments)}function Ri(e,t,n,r){var i=Ni(Ye(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}
/*!
 * @antv/g-math
 * @description Geometry util
 * @version 3.0.1
 * @date 5/9/2025, 8:18:51 AM
 * @author AntVis
 * @docs https://g.antv.antgroup.com/
 */
function Li(e,t,n,r){var i=e-n,o=t-r;return Math.sqrt(i*i+o*o)}function Bi(e,t){var n=Math.min.apply(Math,Ke(e)),r=Math.min.apply(Math,Ke(t)),i=Math.max.apply(Math,Ke(e)),o=Math.max.apply(Math,Ke(t));return{x:n,y:r,width:i-n,height:o-r}}function Pi(e,t,n){return Math.atan(-t/e*Math.tan(n))}function Fi(e,t,n){return Math.atan(t/(e*Math.tan(n)))}function $i(e,t,n,r,i,o){return n*Math.cos(i)*Math.cos(o)-r*Math.sin(i)*Math.sin(o)+e}function ji(e,t,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+t}function Hi(e,t,n,r,i,o,a){for(var s=Pi(n,r,i),l=1/0,c=-1/0,u=[o,a],d=2*-Math.PI;d<=2*Math.PI;d+=Math.PI){var h=s+d;o<a?o<h&&h<a&&u.push(h):a<h&&h<o&&u.push(h)}for(var f=0;f<u.length;f++){var p=$i(e,t,n,r,i,u[f]);p<l&&(l=p),p>c&&(c=p)}for(var g=Fi(n,r,i),m=1/0,v=-1/0,A=[o,a],b=2*-Math.PI;b<=2*Math.PI;b+=Math.PI){var y=g+b;o<a?o<y&&y<a&&A.push(y):a<y&&y<o&&A.push(y)}for(var w=0;w<A.length;w++){var _=ji(e,t,n,r,i,A[w]);_<m&&(m=_),_>v&&(v=_)}return{x:l,y:m,width:c-l,height:v-m}}var Ui=1e-4;function Qi(e,t,n,r,i,o){var a=-1,s=1/0,l=[n,r],c=20;o&&o>200&&(c=o/10);for(var u=1/c,d=u/10,h=0;h<=c;h++){var f=h*u,p=[i.apply(void 0,Ke(e.concat([f]))),i.apply(void 0,Ke(t.concat([f])))],g=Li(l[0],l[1],p[0],p[1]);g<s&&(a=f,s=g)}if(0===a)return{x:e[0],y:t[0]};if(1===a){var m=e.length;return{x:e[m-1],y:t[m-1]}}s=1/0;for(var v=0;v<32;v++){if(d<Ui)break;var A=a-d,b=a+d,y=[i.apply(void 0,Ke(e.concat([A]))),i.apply(void 0,Ke(t.concat([A])))],w=Li(l[0],l[1],y[0],y[1]);if(A>=0&&w<s)a=A,s=w;else{var _=[i.apply(void 0,Ke(e.concat([b]))),i.apply(void 0,Ke(t.concat([b])))],x=Li(l[0],l[1],_[0],_[1]);b<=1&&x<s?(a=b,s=x):d*=.5}}return{x:i.apply(void 0,Ke(e.concat([a]))),y:i.apply(void 0,Ke(t.concat([a])))}}function zi(e,t,n,r){return Li(e,t,n,r)}function Wi(e,t,n,r,i){return{x:(1-i)*e+i*n,y:(1-i)*t+i*r}}function Gi(e,t,n,r,i,o){var a=[n-e,r-t];if(sr(a,[0,0]))return Math.sqrt((i-e)*(i-e)+(o-t)*(o-t));var s=[-a[1],a[0]];or(s,s);var l=[i-e,o-t];return Math.abs(ar(l,s))}function Vi(e,t,n,r,i){var o=1-i;return o*o*o*e+3*t*i*o*o+3*n*i*i*o+r*i*i*i}function Ki(e,t,n,r){var i,o,a,s=-3*e+9*t-9*n+3*r,l=6*e-12*t+6*n,c=3*t-3*e,u=[];if(ni(s,0))ni(l,0)||(i=-c/l,i>=0&&i<=1&&u.push(i));else{var d=l*l-4*s*c;ni(d,0)?u.push(-l/(2*s)):d>0&&(a=Math.sqrt(d),i=(-l+a)/(2*s),o=(-l-a)/(2*s),i>=0&&i<=1&&u.push(i),o>=0&&o<=1&&u.push(o))}return u}function Yi(e,t,n,r,i,o,a,s){for(var l=[e,a],c=[t,s],u=Ki(e,n,i,a),d=Ki(t,r,o,s),h=0;h<u.length;h++)l.push(Vi(e,n,i,a,u[h]));for(var f=0;f<d.length;f++)c.push(Vi(t,r,o,s,d[f]));return Bi(l,c)}function qi(e,t,n,r,i,o,a,s,l,c,u){return Qi([e,n,i,a],[t,r,o,s],l,c,Vi,u)}function Xi(e,t,n,r,i,o,a,s,l,c,u){var d=qi(e,t,n,r,i,o,a,s,l,c,u);return Li(d.x,d.y,l,c)}function Ji(e){if(e.length<2)return 0;for(var t=0,n=0;n<e.length-1;n++){var r=e[n],i=e[n+1];t+=Li(r[0],r[1],i[0],i[1])}return t}function Zi(e){return Ji(e)}function eo(e,t,n,r){var i=1-r;return i*i*e+2*r*i*t+r*r*n}function to(e,t,n){var r=e+n-2*t;if(ni(r,0))return[.5];var i=(e-t)/r;return i<=1&&i>=0?[i]:[]}function no(e,t,n,r,i,o){var a=to(e,n,i)[0],s=to(t,r,o)[0],l=[e,i],c=[t,o];return void 0!==a&&l.push(eo(e,n,i,a)),void 0!==s&&c.push(eo(t,r,o,s)),Bi(l,c)}function ro(e,t,n,r,i,o,a,s){return Qi([e,n,i],[t,r,o],a,s,eo)}function io(e,t,n,r,i,o,a,s){var l=ro(e,t,n,r,i,o,a,s);return Li(l.x,l.y,a,s)}function oo(e,t){this.v=e,this.k=t}function ao(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}ao=function(e,t,n,r){function o(t,n){ao(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))},ao(e,t,n,r)}function so(){
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function o(n,r,i,o){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return ao(c,"_invoke",function(n,r,i){var o,s,l,c=0,u=i||[],d=!1,h={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return o=t,s=0,l=e,h.n=n,a}};function f(n,r){for(s=n,l=r,t=0;!d&&c&&!i&&t<u.length;t++){var i,o=u[t],f=h.p,p=o[2];n>3?(i=p===r)&&(l=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=f&&((i=n<2&&f<o[1])?(s=0,h.v=r,h.n=o[1]):f<p&&(i=n<3||o[0]>r||r>p)&&(o[4]=n,o[5]=r,h.n=p,s=0))}if(i||n>1)return a;throw d=!0,r}return function(i,u,p){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,p),s=u,l=p;(t=s<2?e:l)||!d;){o||(s?s<3?(s>1&&(h.n=-1),f(s,l)):h.n=l:h.v=l);try{if(c=2,o){if(s||(i="next"),t=o[i]){if(!(t=t.call(o,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=o["return"])&&t.call(o),s<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),s=1);o=e}else if((t=(d=h.n<0)?l:n.call(r,h))!==a)break}catch(t){o=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,i,o),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(ao(t={},r,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ao(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,ao(d,"constructor",c),ao(c,"constructor",l),l.displayName="GeneratorFunction",ao(c,i,"GeneratorFunction"),ao(d),ao(d,i,"Generator"),ao(d,r,function(){return this}),ao(d,"toString",function(){return"[object Generator]"}),(so=function(){return{w:o,m:h}})()}function lo(e,t){function n(r,i,o,a){try{var s=e[r](i),l=s.value;return l instanceof oo?t.resolve(l.v).then(function(e){n("next",e,o,a)},function(e){n("throw",e,o,a)}):t.resolve(l).then(function(e){s.value=e,o(s)},function(e){return n("throw",e,o,a)})}catch(e){a(e)}}var r;this.next||(ao(lo.prototype),ao(lo.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ao(this,"_invoke",function(e,i,o){function a(){return new t(function(t,r){n(e,o,t,r)})}return r=r?r.then(a,a):a()},!0)}function co(e,t,n,r,i){return new lo(so().w(e,t,n,r),i||Promise)}function uo(e,t,n,r,i){var o=co(e,t,n,r,i);return o.next().then(function(e){return e.done?e.value:o.next()})}function ho(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function fo(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError((0,Xe.A)(e)+" is not iterable")}function po(){var e=so(),t=e.m(po),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var i={throw:1,return:2,break:3,continue:3};function o(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,i[e],t)},delegateYield:function(e,i,o){return t.resultName=i,n(r.d,fo(e),o)},finish:function(e){return n(r.f,e)}},n=function(e,n,i){r.p=t.prev,r.n=t.next;try{return e(n,i)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(po=function(){return{wrap:function(t,n,r,i){return e.w(o(t),n,r,i&&i.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new oo(e,t)},AsyncIterator:lo,async:function(e,t,n,i,a){return(r(t)?co:uo)(o(e),t,n,i,a)},keys:ho,values:fo}})()}function go(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function mo(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){go(o,r,i,a,s,"next",e)}function s(e){go(o,r,i,a,s,"throw",e)}a(void 0)})}}function vo(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ge(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n["return"]||n["return"]()}finally{if(s)throw o}}}}function Ao(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function bo(e,t){if(null==e)return{};var n,r,i=Ao(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}
/*!
 * @antv/g-lite
 * @description A core module for rendering engine implements DOM API.
 * @version 2.3.2
 * @date 7/30/2025, 1:34:19 PM
 * @author AntVis
 * @docs https://g.antv.antgroup.com/
 */
"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self&&self;var yo={exports:{}};(function(e){(function(t,n){e.exports=n()})(0,function(){function e(e,n,i,o,a){t(e,n,i||0,o||e.length-1,a||r)}function t(e,r,i,o,a){while(o>i){if(o-i>600){var s=o-i+1,l=r-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2<0?-1:1),h=Math.max(i,Math.floor(r-l*u/s+d)),f=Math.min(o,Math.floor(r+(s-l)*u/s+d));t(e,r,h,f,a)}var p=e[r],g=i,m=o;n(e,i,r),a(e[o],p)>0&&n(e,i,o);while(g<m){n(e,g,m),g++,m--;while(a(e[g],p)<0)g++;while(a(e[m],p)>0)m--}0===a(e[i],p)?n(e,i,m):(m++,n(e,m,o)),m<=r&&(i=m+1),r<=m&&(o=m-1)}}function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t){return e<t?-1:e>t?1:0}var i=function(e){void 0===e&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function o(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function a(e,t){s(e,0,e.children.length,t,e)}function s(e,t,n,r,i){i||(i=v(null)),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var o=t;o<n;o++){var a=e.children[o];l(i,e.leaf?r(a):a)}return i}function l(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function c(e,t){return e.minX-t.minX}function u(e,t){return e.minY-t.minY}function d(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function h(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return(Math.max(t.maxX,e.maxX)-Math.min(t.minX,e.minX))*(Math.max(t.maxY,e.maxY)-Math.min(t.minY,e.minY))}function p(e,t){var n=Math.max(e.minX,t.minX),r=Math.max(e.minY,t.minY),i=Math.min(e.maxX,t.maxX),o=Math.min(e.maxY,t.maxY);return Math.max(0,i-n)*Math.max(0,o-r)}function g(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function m(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function v(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function A(t,n,r,i,o){var a=[n,r];while(a.length)if(r=a.pop(),n=a.pop(),!(r-n<=i)){var s=n+Math.ceil((r-n)/i/2)*i;e(t,s,n,r,o),a.push(n,s,s,r)}}return i.prototype.all=function(){return this._all(this.data,[])},i.prototype.search=function(e){var t=this.data,n=[];if(!m(e,t))return n;var r=this.toBBox,i=[];while(t){for(var o=0;o<t.children.length;o++){var a=t.children[o],s=t.leaf?r(a):a;m(e,s)&&(t.leaf?n.push(a):g(e,s)?this._all(a,n):i.push(a))}t=i.pop()}return n},i.prototype.collides=function(e){var t=this.data;if(!m(e,t))return!1;var n=[];while(t){for(var r=0;r<t.children.length;r++){var i=t.children[r],o=t.leaf?this.toBBox(i):i;if(m(e,o)){if(t.leaf||g(e,o))return!0;n.push(i)}}t=n.pop()}return!1},i.prototype.load=function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0;t<e.length;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},i.prototype.insert=function(e){return e&&this._insert(e,this.data.height-1),this},i.prototype.clear=function(){return this.data=v([]),this},i.prototype.remove=function(e,t){if(!e)return this;var n,r,i,a=this.data,s=this.toBBox(e),l=[],c=[];while(a||l.length){if(a||(a=l.pop(),r=l[l.length-1],n=c.pop(),i=!0),a.leaf){var u=o(e,a.children,t);if(-1!==u)return a.children.splice(u,1),l.push(a),this._condense(l),this}i||a.leaf||!g(a,s)?r?(n++,a=r.children[n],i=!1):a=null:(l.push(a),c.push(n),n=0,r=a,a=a.children[0])}return this},i.prototype.toBBox=function(e){return e},i.prototype.compareMinX=function(e,t){return e.minX-t.minX},i.prototype.compareMinY=function(e,t){return e.minY-t.minY},i.prototype.toJSON=function(){return this.data},i.prototype.fromJSON=function(e){return this.data=e,this},i.prototype._all=function(e,t){var n=[];while(e)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},i.prototype._build=function(e,t,n,r){var i,o=n-t+1,s=this._maxEntries;if(o<=s)return i=v(e.slice(t,n+1)),a(i,this.toBBox),i;r||(r=Math.ceil(Math.log(o)/Math.log(s)),s=Math.ceil(o/Math.pow(s,r-1))),i=v([]),i.leaf=!1,i.height=r;var l=Math.ceil(o/s),c=l*Math.ceil(Math.sqrt(s));A(e,t,n,c,this.compareMinX);for(var u=t;u<=n;u+=c){var d=Math.min(u+c-1,n);A(e,u,d,l,this.compareMinY);for(var h=u;h<=d;h+=l){var f=Math.min(h+l-1,d);i.children.push(this._build(e,h,f,r-1))}}return a(i,this.toBBox),i},i.prototype._chooseSubtree=function(e,t,n,r){while(1){if(r.push(t),t.leaf||r.length-1===n)break;for(var i=1/0,o=1/0,a=void 0,s=0;s<t.children.length;s++){var l=t.children[s],c=d(l),u=f(e,l)-c;u<o?(o=u,i=c<i?c:i,a=l):u===o&&c<i&&(i=c,a=l)}t=a||t.children[0]}return t},i.prototype._insert=function(e,t,n){var r=n?e:this.toBBox(e),i=[],o=this._chooseSubtree(r,this.data,t,i);o.children.push(e),l(o,r);while(t>=0){if(!(i[t].children.length>this._maxEntries))break;this._split(i,t),t--}this._adjustParentBBoxes(r,i,t)},i.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o=this._chooseSplitIndex(n,i,r),s=v(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,a(n,this.toBBox),a(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},i.prototype._splitRoot=function(e,t){this.data=v([e,t]),this.data.height=e.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},i.prototype._chooseSplitIndex=function(e,t,n){for(var r,i=1/0,o=1/0,a=t;a<=n-t;a++){var l=s(e,0,a,this.toBBox),c=s(e,a,n,this.toBBox),u=p(l,c),h=d(l)+d(c);u<i?(i=u,r=a,o=h<o?h:o):u===i&&h<o&&(o=h,r=a)}return r||n-t},i.prototype._chooseSplitAxis=function(e,t,n){var r=e.leaf?this.compareMinX:c,i=e.leaf?this.compareMinY:u,o=this._allDistMargin(e,t,n,r),a=this._allDistMargin(e,t,n,i);o<a&&e.children.sort(r)},i.prototype._allDistMargin=function(e,t,n,r){e.children.sort(r);for(var i=this.toBBox,o=s(e,0,t,i),a=s(e,n-t,n,i),c=h(o)+h(a),u=t;u<n-t;u++){var d=e.children[u];l(o,e.leaf?i(d):d),c+=h(o)}for(var f=n-t-1;f>=t;f--){var p=e.children[f];l(a,e.leaf?i(p):p),c+=h(a)}return c},i.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)l(t[r],e)},i.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)0===e[t].children.length?t>0?(n=e[t-1].children,n.splice(n.indexOf(e[t]),1)):this.clear():a(e[t],this.toBBox)},i})})(yo);var wo=yo.exports,_o=function(e){return e["GROUP"]="g",e["FRAGMENT"]="fragment",e["CIRCLE"]="circle",e["ELLIPSE"]="ellipse",e["IMAGE"]="image",e["RECT"]="rect",e["LINE"]="line",e["POLYLINE"]="polyline",e["POLYGON"]="polygon",e["TEXT"]="text",e["PATH"]="path",e["HTML"]="html",e["MESH"]="mesh",e}({}),xo=function(e){return e[e["ZERO"]=0]="ZERO",e[e["NEGATIVE_ONE"]=1]="NEGATIVE_ONE",e}({}),Eo=function(){function e(){$e(this,e),this.plugins=[]}return Ue(e,[{key:"addRenderingPlugin",value:function(e){this.plugins.push(e),this.context.renderingPlugins.push(e)}},{key:"removeAllRenderingPlugins",value:function(){var e=this;this.plugins.forEach(function(t){var n=e.context.renderingPlugins.indexOf(t);n>=0&&e.context.renderingPlugins.splice(n,1)})}}])}(),So=function(){function e(t){$e(this,e),this.clipSpaceNearZ=xo.NEGATIVE_ONE,this.plugins=[],this.config=(0,Fe.A)({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1,enableSizeAttenuation:!0,enableRenderingOptimization:!1},t)}return Ue(e,[{key:"registerPlugin",value:function(e){var t=this.plugins.findIndex(function(t){return t===e});-1===t&&this.plugins.push(e)}},{key:"unregisterPlugin",value:function(e){var t=this.plugins.findIndex(function(t){return t===e});t>-1&&this.plugins.splice(t,1)}},{key:"getPlugins",value:function(){return this.plugins}},{key:"getPlugin",value:function(e){return this.plugins.find(function(t){return t.name===e})}},{key:"getConfig",value:function(){return this.config}},{key:"setConfig",value:function(e){Object.assign(this.config,e)}}])}(),Co=At,To=mt,ko=_t,Oo=wt,Mo=xt,Io=Nt,Do=function(){function e(){$e(this,e),this.center=[0,0,0],this.halfExtents=[0,0,0],this.min=[0,0,0],this.max=[0,0,0]}return Ue(e,[{key:"update",value:function(e,t){To(this.center,e),To(this.halfExtents,t),Io(this.min,this.center,this.halfExtents),Co(this.max,this.center,this.halfExtents)}},{key:"setMinMax",value:function(e,t){Co(this.center,t,e),Mo(this.center,this.center,.5),Io(this.halfExtents,t,e),Mo(this.halfExtents,this.halfExtents,.5),To(this.min,e),To(this.max,t)}},{key:"getMin",value:function(){return this.min}},{key:"getMax",value:function(){return this.max}},{key:"add",value:function(t){if(!e.isEmpty(t))if(e.isEmpty(this))this.setMinMax(t.getMin(),t.getMax());else{var n=this.center,r=n[0],i=n[1],o=n[2],a=this.halfExtents,s=a[0],l=a[1],c=a[2],u=r-s,d=r+s,h=i-l,f=i+l,p=o-c,g=o+c,m=t.center,v=m[0],A=m[1],b=m[2],y=t.halfExtents,w=y[0],_=y[1],x=y[2],E=v-w,S=v+w,C=A-_,T=A+_,k=b-x,O=b+x;E<u&&(u=E),S>d&&(d=S),C<h&&(h=C),T>f&&(f=T),k<p&&(p=k),O>g&&(g=O),n[0]=.5*(u+d),n[1]=.5*(h+f),n[2]=.5*(p+g),a[0]=.5*(d-u),a[1]=.5*(f-h),a[2]=.5*(g-p),this.min[0]=u,this.min[1]=h,this.min[2]=p,this.max[0]=d,this.max[1]=f,this.max[2]=g}}},{key:"setFromTransformedAABB",value:function(e,t){var n=this.center,r=this.halfExtents,i=e.center,o=e.halfExtents,a=t[0],s=t[4],l=t[8],c=t[1],u=t[5],d=t[9],h=t[2],f=t[6],p=t[10],g=Math.abs(a),m=Math.abs(s),v=Math.abs(l),A=Math.abs(c),b=Math.abs(u),y=Math.abs(d),w=Math.abs(h),_=Math.abs(f),x=Math.abs(p);n[0]=t[12]+a*i[0]+s*i[1]+l*i[2],n[1]=t[13]+c*i[0]+u*i[1]+d*i[2],n[2]=t[14]+h*i[0]+f*i[1]+p*i[2],r[0]=g*o[0]+m*o[1]+v*o[2],r[1]=A*o[0]+b*o[1]+y*o[2],r[2]=w*o[0]+_*o[1]+x*o[2],Io(this.min,n,r),Co(this.max,n,r)}},{key:"intersects",value:function(e){var t=this.getMax(),n=this.getMin(),r=e.getMax(),i=e.getMin();return n[0]<=r[0]&&t[0]>=i[0]&&n[1]<=r[1]&&t[1]>=i[1]&&n[2]<=r[2]&&t[2]>=i[2]}},{key:"intersection",value:function(t){if(!this.intersects(t))return null;var n=new e,r=ko([0,0,0],this.getMin(),t.getMin()),i=Oo([0,0,0],this.getMax(),t.getMax());return n.setMinMax(r,i),n}},{key:"getNegativeFarPoint",value:function(e){return 273===e.pnVertexFlag?To([0,0,0],this.min):272===e.pnVertexFlag?[this.min[0],this.min[1],this.max[2]]:257===e.pnVertexFlag?[this.min[0],this.max[1],this.min[2]]:256===e.pnVertexFlag?[this.min[0],this.max[1],this.max[2]]:17===e.pnVertexFlag?[this.max[0],this.min[1],this.min[2]]:16===e.pnVertexFlag?[this.max[0],this.min[1],this.max[2]]:1===e.pnVertexFlag?[this.max[0],this.max[1],this.min[2]]:[this.max[0],this.max[1],this.max[2]]}},{key:"getPositiveFarPoint",value:function(e){return 273===e.pnVertexFlag?To([0,0,0],this.max):272===e.pnVertexFlag?[this.max[0],this.max[1],this.min[2]]:257===e.pnVertexFlag?[this.max[0],this.min[1],this.max[2]]:256===e.pnVertexFlag?[this.max[0],this.min[1],this.min[2]]:17===e.pnVertexFlag?[this.min[0],this.max[1],this.max[2]]:16===e.pnVertexFlag?[this.min[0],this.max[1],this.min[2]]:1===e.pnVertexFlag?[this.min[0],this.min[1],this.max[2]]:[this.min[0],this.min[1],this.min[2]]}}],[{key:"isEmpty",value:function(e){return!e||0===e.halfExtents[0]&&0===e.halfExtents[1]&&0===e.halfExtents[2]}}])}(),No=function(){function e(t,n){$e(this,e),this.distance=t||0,this.normal=n||gt(0,1,0),this.updatePNVertexFlag()}return Ue(e,[{key:"updatePNVertexFlag",value:function(){this.pnVertexFlag=(Number(this.normal[0]>=0)<<8)+(Number(this.normal[1]>=0)<<4)+Number(this.normal[2]>=0)}},{key:"distanceToPoint",value:function(e){return Ct(e,this.normal)-this.distance}},{key:"normalize",value:function(){var e=1/Lt(this.normal);xt(this.normal,this.normal,e),this.distance*=e}},{key:"intersectsLine",value:function(e,t,n){var r=this.distanceToPoint(e),i=this.distanceToPoint(t),o=r/(r-i),a=o>=0&&o<=1;return a&&n&&kt(n,e,t,o),a}}])}(),Ro=function(e){return e[e["OUTSIDE"]=4294967295]="OUTSIDE",e[e["INSIDE"]=0]="INSIDE",e[e["INDETERMINATE"]=2147483647]="INDETERMINATE",e}({}),Lo=function(){function e(t){if($e(this,e),this.planes=[],t)this.planes=t;else for(var n=0;n<6;n++)this.planes.push(new No)}return Ue(e,[{key:"extractFromVPMatrix",value:function(e){var t=at(e,16),n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],d=t[9],h=t[10],f=t[11],p=t[12],g=t[13],m=t[14],v=t[15];vt(this.planes[0].normal,o-n,c-a,f-u),this.planes[0].distance=v-p,vt(this.planes[1].normal,o+n,c+a,f+u),this.planes[1].distance=v+p,vt(this.planes[2].normal,o+r,c+s,f+d),this.planes[2].distance=v+g,vt(this.planes[3].normal,o-r,c-s,f-d),this.planes[3].distance=v-g,vt(this.planes[4].normal,o-i,c-l,f-h),this.planes[4].distance=v-m,vt(this.planes[5].normal,o+i,c+l,f+h),this.planes[5].distance=v+m,this.planes.forEach(function(e){e.normalize(),e.updatePNVertexFlag()})}}])}(),Bo=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;$e(this,e),this.x=0,this.y=0,this.x=t,this.y=n}return Ue(e,[{key:"clone",value:function(){return new e(this.x,this.y)}},{key:"copyFrom",value:function(e){this.x=e.x,this.y=e.y}}])}(),Po=function(){function e(t,n,r,i){$e(this,e),this.x=t,this.y=n,this.width=r,this.height=i,this.left=t,this.right=t+r,this.top=n,this.bottom=n+i}return Ue(e,[{key:"toJSON",value:function(){}}],[{key:"fromRect",value:function(t){return new e(t.x,t.y,t.width,t.height)}},{key:"applyTransform",value:function(t,n){var r=Pt(t.x,t.y,0,1),i=Pt(t.x+t.width,t.y,0,1),o=Pt(t.x,t.y+t.height,0,1),a=Pt(t.x+t.width,t.y+t.height,0,1),s=Bt(),l=Bt(),c=Bt(),u=Bt();Ht(s,r,n),Ht(l,i,n),Ht(c,o,n),Ht(u,a,n);var d=Math.min(s[0],l[0],c[0],u[0]),h=Math.min(s[1],l[1],c[1],u[1]),f=Math.max(s[0],l[0],c[0],u[0]),p=Math.max(s[1],l[1],c[1],u[1]);return e.fromRect({x:d,y:h,width:f-d,height:p-h})}}])}(),Fo="Method not implemented.",$o="Use document.documentElement instead.",jo="Cannot append a destroyed element.";function Ho(e){return void 0===e?0:e>360||e<-360?e%360:e}var Uo=ht();function Qo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return Array.isArray(e)&&3===e.length?r?ft(e):mt(Uo,e):lr(e)?r?gt(e,t,n):vt(Uo,e,t,n):r?gt(e[0],e[1]||t,e[2]||n):vt(Uo,e[0],e[1]||t,e[2]||n)}var zo=Math.PI/180;function Wo(e){return e*zo}var Go=180/Math.PI;function Vo(e){return e*Go}function Ko(e){return 360*e}var Yo=Math.PI/2;function qo(e,t){var n=t[0],r=t[1],i=t[2],o=t[3],a=n*n,s=r*r,l=i*i,c=o*o,u=a+s+l+c,d=n*o-r*i;return d>.499995*u?(e[0]=Yo,e[1]=2*Math.atan2(r,n),e[2]=0):d<-.499995*u?(e[0]=-Yo,e[1]=2*Math.atan2(r,n),e[2]=0):(e[0]=Math.asin(2*(n*i-o*r)),e[1]=Math.atan2(2*(n*o+r*i),1-2*(l+c)),e[2]=Math.atan2(2*(n*r+i*o),1-2*(s+l))),e}function Xo(e,t){var n,r,i=gn(ht(),t),o=at(i,3),a=o[0],s=o[1],l=o[2],c=Math.asin(-t[2]/a);return c<Yo?c>-Yo?(n=Math.atan2(t[6]/s,t[10]/l),r=Math.atan2(t[1]/a,t[0]/a)):(r=0,n=-Math.atan2(t[4]/s,t[5]/s)):(r=0,n=Math.atan2(t[4]/s,t[5]/s)),e[0]=n,e[1]=c,e[2]=r,e}function Jo(e,t){return 16===t.length?Xo(e,t):qo(e,t)}function Zo(e,t,n,r,i){var o=Math.cos(e),a=Math.sin(e);return Qn(r*o,i*a,0,-r*a,i*o,0,t,n,1)}function ea(e,t,n,r,i,o,a){var s,l,c=arguments.length>7&&void 0!==arguments[7]&&arguments[7],u=2*o,d=n-t,h=r-i,f=u/d,p=u/h,g=(n+t)/d,m=(r+i)/h,v=a-o,A=a*o;return c?(s=-a/v,l=-A/v):(s=-(a+o)/v,l=-2*A/v),e[0]=f,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=p,e[6]=0,e[7]=0,e[8]=g,e[9]=m,e[10]=s,e[11]=-1,e[12]=0,e[13]=0,e[14]=l,e[15]=0,e}function ta(e){var t=e[0],n=e[1],r=e[3],i=e[4],o=Math.sqrt(t*t+n*n),a=Math.sqrt(r*r+i*i),s=t*i-n*r;if(s<0&&(t<i?o=-o:a=-a),o){var l=1/o;t*=l,n*=l}if(a){var c=1/a;r*=c,i*=c}var u=Math.atan2(n,t),d=Vo(u);return[e[6],e[7],o,a,d]}var na=Ut(),ra=Ut(),ia=Bt(),oa=[ht(),ht(),ht()],aa=ht();function sa(e,t,n,r,i,o){if(!la(na,e))return!1;if(zt(ra,na),ra[3]=0,ra[7]=0,ra[11]=0,ra[15]=1,Math.abs(Xt(ra))<1e-8)return!1;var a=na[3],s=na[7],l=na[11],c=na[12],u=na[13],d=na[14],h=na[15];if(0!==a||0!==s||0!==l){ia[0]=a,ia[1]=s,ia[2]=l,ia[3]=h;var f=Yt(ra,ra);if(!f)return!1;Kt(ra,ra),Ht(i,ia,ra)}else i[0]=i[1]=i[2]=0,i[3]=1;if(t[0]=c,t[1]=u,t[2]=d,ca(oa,na),n[0]=pt(oa[0]),St(oa[0],oa[0]),r[0]=Ct(oa[0],oa[1]),ua(oa[1],oa[1],oa[0],1,-r[0]),n[1]=pt(oa[1]),St(oa[1],oa[1]),r[0]/=n[1],r[1]=Ct(oa[0],oa[2]),ua(oa[2],oa[2],oa[0],1,-r[1]),r[2]=Ct(oa[1],oa[2]),ua(oa[2],oa[2],oa[1],1,-r[2]),n[2]=pt(oa[2]),St(oa[2],oa[2]),r[1]/=n[2],r[2]/=n[2],Tt(aa,oa[1],oa[2]),Ct(oa[0],aa)<0)for(var p=0;p<3;p++)n[p]*=-1,oa[p][0]*=-1,oa[p][1]*=-1,oa[p][2]*=-1;return o[0]=.5*Math.sqrt(Math.max(1+oa[0][0]-oa[1][1]-oa[2][2],0)),o[1]=.5*Math.sqrt(Math.max(1-oa[0][0]+oa[1][1]-oa[2][2],0)),o[2]=.5*Math.sqrt(Math.max(1-oa[0][0]-oa[1][1]+oa[2][2],0)),o[3]=.5*Math.sqrt(Math.max(1+oa[0][0]+oa[1][1]+oa[2][2],0)),oa[2][1]>oa[1][2]&&(o[0]=-o[0]),oa[0][2]>oa[2][0]&&(o[1]=-o[1]),oa[1][0]>oa[0][1]&&(o[2]=-o[2]),!0}function la(e,t){var n=t[15];if(0===n)return!1;for(var r=1/n,i=0;i<16;i++)e[i]=t[i]*r;return!0}function ca(e,t){e[0][0]=t[0],e[0][1]=t[1],e[0][2]=t[2],e[1][0]=t[4],e[1][1]=t[5],e[1][2]=t[6],e[2][0]=t[8],e[2][1]=t[9],e[2][2]=t[10]}function ua(e,t,n,r,i){e[0]=t[0]*r+n[0]*i,e[1]=t[1]*r+n[1]*i,e[2]=t[2]*r+n[2]*i}var da=function(e){return e[e["ORBITING"]=0]="ORBITING",e[e["EXPLORING"]=1]="EXPLORING",e[e["TRACKING"]=2]="TRACKING",e}({}),ha=function(e){return e[e["DEFAULT"]=0]="DEFAULT",e[e["ROTATIONAL"]=1]="ROTATIONAL",e[e["TRANSLATIONAL"]=2]="TRANSLATIONAL",e[e["CINEMATIC"]=3]="CINEMATIC",e}({}),fa=function(e){return e[e["ORTHOGRAPHIC"]=0]="ORTHOGRAPHIC",e[e["PERSPECTIVE"]=1]="PERSPECTIVE",e}({}),pa={UPDATED:"updated"},ga=2e-4,ma=function(){function e(){$e(this,e),this.clipSpaceNearZ=xo.NEGATIVE_ONE,this.eventEmitter=new lt,this.matrix=Ut(),this.right=gt(1,0,0),this.up=gt(0,1,0),this.forward=gt(0,0,1),this.position=gt(0,0,1),this.focalPoint=gt(0,0,0),this.distanceVector=gt(0,0,-1),this.distance=1,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.dollyingStep=0,this.maxDistance=1/0,this.minDistance=-1/0,this.zoom=1,this.rotateWorld=!1,this.fov=30,this.near=.1,this.far=1e3,this.aspect=1,this.projectionMatrix=Ut(),this.projectionMatrixInverse=Ut(),this.jitteredProjectionMatrix=void 0,this.enableUpdate=!0,this.type=da.EXPLORING,this.trackingMode=ha.DEFAULT,this.projectionMode=fa.PERSPECTIVE,this.frustum=new Lo,this.orthoMatrix=Ut()}return Ue(e,[{key:"isOrtho",value:function(){return this.projectionMode===fa.ORTHOGRAPHIC}},{key:"getProjectionMode",value:function(){return this.projectionMode}},{key:"getPerspective",value:function(){return this.jitteredProjectionMatrix||this.projectionMatrix}},{key:"getPerspectiveInverse",value:function(){return this.projectionMatrixInverse}},{key:"getFrustum",value:function(){return this.frustum}},{key:"getPosition",value:function(){return this.position}},{key:"getFocalPoint",value:function(){return this.focalPoint}},{key:"getDollyingStep",value:function(){return this.dollyingStep}},{key:"getNear",value:function(){return this.near}},{key:"getFar",value:function(){return this.far}},{key:"getZoom",value:function(){return this.zoom}},{key:"getOrthoMatrix",value:function(){return this.orthoMatrix}},{key:"getView",value:function(){return this.view}},{key:"setEnableUpdate",value:function(e){this.enableUpdate=e}},{key:"setType",value:function(e,t){return this.type=e,this.type===da.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===da.TRACKING&&void 0!==t&&this.setTrackingMode(t),this}},{key:"setProjectionMode",value:function(e){return this.projectionMode=e,this}},{key:"setTrackingMode",value:function(e){if(this.type!==da.TRACKING)throw new Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=e,this}},{key:"setWorldRotation",value:function(e){return this.rotateWorld=e,this._getAngles(),this}},{key:"getViewTransform",value:function(){return Yt(Ut(),this.matrix)}},{key:"getWorldTransform",value:function(){return this.matrix}},{key:"jitterProjectionMatrix",value:function(e,t){var n=an(Ut(),[e,t,0]);this.jitteredProjectionMatrix=Jt(Ut(),n,this.projectionMatrix)}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0}},{key:"setMatrix",value:function(e){return this.matrix=e,this._update(),this}},{key:"setProjectionMatrix",value:function(e){this.projectionMatrix=e}},{key:"setFov",value:function(e){return this.setPerspective(this.near,this.far,e,this.aspect),this}},{key:"setAspect",value:function(e){return this.setPerspective(this.near,this.far,this.fov,e),this}},{key:"setNear",value:function(e){return this.projectionMode===fa.PERSPECTIVE?this.setPerspective(e,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,e,this.far),this}},{key:"setFar",value:function(e){return this.projectionMode===fa.PERSPECTIVE?this.setPerspective(this.near,e,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,e),this}},{key:"setViewOffset",value:function(e,t,n,r,i,o){return this.aspect=e/t,void 0===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.projectionMode===fa.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this}},{key:"clearViewOffset",value:function(){return void 0!==this.view&&(this.view.enabled=!1),this.projectionMode===fa.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this}},{key:"setZoom",value:function(e){return this.zoom=e,this.projectionMode===fa.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===fa.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this}},{key:"setZoomByViewportPoint",value:function(e,t){var n=this.canvas.viewport2Canvas({x:t[0],y:t[1]}),r=n.x,i=n.y,o=this.roll;this.rotate(0,0,-o),this.setPosition(r,i),this.setFocalPoint(r,i),this.setZoom(e),this.rotate(0,0,o);var a=this.canvas.viewport2Canvas({x:t[0],y:t[1]}),s=a.x,l=a.y,c=gt(s-r,l-i,0),u=Ct(c,this.right)/pt(this.right),d=Ct(c,this.up)/pt(this.up),h=this.getPosition(),f=at(h,2),p=f[0],g=f[1],m=this.getFocalPoint(),v=at(m,2),A=v[0],b=v[1];return this.setPosition(p-u,g-d),this.setFocalPoint(A-u,b-d),this}},{key:"setPerspective",value:function(e,t,n,r){var i;this.projectionMode=fa.PERSPECTIVE,this.fov=n,this.near=e,this.far=t,this.aspect=r;var o=this.near*Math.tan(Wo(.5*this.fov))/this.zoom,a=2*o,s=this.aspect*a,l=-.5*s;if(null!==(i=this.view)&&void 0!==i&&i.enabled){var c=this.view.fullWidth,u=this.view.fullHeight;l+=this.view.offsetX*s/c,o-=this.view.offsetY*a/u,s*=this.view.width/c,a*=this.view.height/u}return ea(this.projectionMatrix,l,l+s,o-a,o,e,this.far,this.clipSpaceNearZ===xo.ZERO),Yt(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this}},{key:"setOrthographic",value:function(e,t,n,r,i,o){var a;this.projectionMode=fa.ORTHOGRAPHIC,this.rright=t,this.left=e,this.top=n,this.bottom=r,this.near=i,this.far=o;var s=(this.rright-this.left)/(2*this.zoom),l=(this.top-this.bottom)/(2*this.zoom),c=(this.rright+this.left)/2,u=(this.top+this.bottom)/2,d=c-s,h=c+s,f=u+l,p=u-l;if(null!==(a=this.view)&&void 0!==a&&a.enabled){var g=(this.rright-this.left)/this.view.fullWidth/this.zoom,m=(this.top-this.bottom)/this.view.fullHeight/this.zoom;d+=g*this.view.offsetX,h=d+g*this.view.width,f-=m*this.view.offsetY,p=f-m*this.view.height}return this.clipSpaceNearZ===xo.NEGATIVE_ONE?Tn(this.projectionMatrix,d,h,f,p,i,o):kn(this.projectionMatrix,d,h,f,p,i,o),Yt(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this}},{key:"setPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.position[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.position[2],r=Qo(e,t,n);return this._setPosition(r),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this}},{key:"setFocalPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.focalPoint[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.focalPoint[2],r=gt(0,1,0);if(this.focalPoint=Qo(e,t,n),this.trackingMode===ha.CINEMATIC){var i=bt(ht(),this.focalPoint,this.position);e=i[0],t=i[1],n=i[2];var o=pt(i),a=Vo(Math.asin(t/o)),s=90+Vo(Math.atan2(n,e)),l=Ut();rn(l,l,Wo(s)),nn(l,l,Wo(a)),r=Ot(ht(),[0,1,0],l)}return Yt(this.matrix,On(Ut(),this.position,this.focalPoint,r)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this}},{key:"getDistance",value:function(){return this.distance}},{key:"getDistanceVector",value:function(){return this.distanceVector}},{key:"setDistance",value:function(e){if(this.distance===e||e<0)return this;this.distance=e,this.distance<ga&&(this.distance=ga),this.dollyingStep=this.distance/100;var t=ht();e=this.distance;var n=this.forward,r=this.focalPoint;return t[0]=e*n[0]+r[0],t[1]=e*n[1]+r[1],t[2]=e*n[2]+r[2],this._setPosition(t),this.triggerUpdate(),this}},{key:"setMaxDistance",value:function(e){return this.maxDistance=e,this}},{key:"setMinDistance",value:function(e){return this.minDistance=e,this}},{key:"setAzimuth",value:function(e){return this.azimuth=Ho(e),this.computeMatrix(),this._getAxes(),this.type===da.ORBITING||this.type===da.EXPLORING?this._getPosition():this.type===da.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this}},{key:"getAzimuth",value:function(){return this.azimuth}},{key:"setElevation",value:function(e){return this.elevation=Ho(e),this.computeMatrix(),this._getAxes(),this.type===da.ORBITING||this.type===da.EXPLORING?this._getPosition():this.type===da.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this}},{key:"getElevation",value:function(){return this.elevation}},{key:"setRoll",value:function(e){return this.roll=Ho(e),this.computeMatrix(),this._getAxes(),this.type===da.ORBITING||this.type===da.EXPLORING?this._getPosition():this.type===da.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this}},{key:"getRoll",value:function(){return this.roll}},{key:"_update",value:function(){this._getAxes(),this._getPosition(),this._getDistance(),this._getAngles(),this._getOrthoMatrix(),this.triggerUpdate()}},{key:"computeMatrix",value:function(){var e=Wn(zn(),[0,0,1],Wo(this.roll));Vt(this.matrix);var t=Wn(zn(),[1,0,0],Wo((this.rotateWorld&&this.type!==da.TRACKING||this.type===da.TRACKING?1:-1)*this.elevation)),n=Wn(zn(),[0,1,0],Wo((this.rotateWorld&&this.type!==da.TRACKING||this.type===da.TRACKING?1:-1)*this.azimuth)),r=Gn(zn(),n,t);r=Gn(zn(),r,e);var i=yn(Ut(),r);this.type===da.ORBITING||this.type===da.EXPLORING?(Zt(this.matrix,this.matrix,this.focalPoint),Jt(this.matrix,this.matrix,i),Zt(this.matrix,this.matrix,[0,0,this.distance])):this.type===da.TRACKING&&(Zt(this.matrix,this.matrix,this.position),Jt(this.matrix,this.matrix,i))}},{key:"_setPosition",value:function(e,t,n){this.position=Qo(e,t,n);var r=this.matrix;r[12]=this.position[0],r[13]=this.position[1],r[14]=this.position[2],r[15]=1,this._getOrthoMatrix()}},{key:"_getAxes",value:function(){mt(this.right,Qo(Ht(Bt(),[1,0,0,0],this.matrix))),mt(this.up,Qo(Ht(Bt(),[0,1,0,0],this.matrix))),mt(this.forward,Qo(Ht(Bt(),[0,0,1,0],this.matrix))),St(this.right,this.right),St(this.up,this.up),St(this.forward,this.forward)}},{key:"_getAngles",value:function(){var e=this.distanceVector[0],t=this.distanceVector[1],n=this.distanceVector[2],r=pt(this.distanceVector);if(0===r)return this.elevation=0,void(this.azimuth=0);this.type===da.TRACKING||this.rotateWorld?(this.elevation=Vo(Math.asin(t/r)),this.azimuth=Vo(Math.atan2(-e,-n))):(this.elevation=-Vo(Math.asin(t/r)),this.azimuth=-Vo(Math.atan2(-e,-n)))}},{key:"_getPosition",value:function(){mt(this.position,Qo(Ht(Bt(),[0,0,0,1],this.matrix))),this._getDistance()}},{key:"_getFocalPoint",value:function(){Mt(this.distanceVector,[0,0,-this.distance],Un(Hn(),this.matrix)),At(this.focalPoint,this.position,this.distanceVector),this._getDistance()}},{key:"_getDistance",value:function(){this.distanceVector=bt(ht(),this.focalPoint,this.position),this.distance=pt(this.distanceVector),this.dollyingStep=this.distance/100}},{key:"_getOrthoMatrix",value:function(){if(this.projectionMode===fa.ORTHOGRAPHIC){var e=this.position,t=Wn(zn(),[0,0,1],-this.roll*Math.PI/180);bn(this.orthoMatrix,t,gt((this.rright-this.left)/2-e[0],(this.top-this.bottom)/2-e[1],0),gt(this.zoom,this.zoom,1),e)}}},{key:"triggerUpdate",value:function(){if(this.enableUpdate){var e=this.getViewTransform(),t=Jt(Ut(),this.getPerspective(),e);this.getFrustum().extractFromVPMatrix(t),this.eventEmitter.emit(pa.UPDATED)}}},{key:"rotate",value:function(e,t,n){throw new Error(Fo)}},{key:"pan",value:function(e,t){throw new Error(Fo)}},{key:"dolly",value:function(e){throw new Error(Fo)}},{key:"createLandmark",value:function(e,t){throw new Error(Fo)}},{key:"gotoLandmark",value:function(e,t){throw new Error(Fo)}},{key:"cancelLandmarkAnimation",value:function(){throw new Error(Fo)}}])}(),va=function(e){return e[e["Standard"]=0]="Standard",e}({}),Aa=function(e){return e[e["ADDED"]=0]="ADDED",e[e["REMOVED"]=1]="REMOVED",e[e["Z_INDEX_CHANGED"]=2]="Z_INDEX_CHANGED",e}({}),ba=ht(),ya=Ut(),wa=zn();function _a(e){if(e.localDirtyFlag){var t=0!==e.localSkew[0]||0!==e.localSkew[1];if(t){bn(e.localTransform,e.localRotation,e.localPosition,gt(1,1,1),e.origin),0===e.localSkew[0]&&0===e.localSkew[1]||(Vt(ya),ya[4]=Math.tan(e.localSkew[0]),ya[1]=Math.tan(e.localSkew[1]),Jt(e.localTransform,e.localTransform,ya));var n=bn(ya,Zn(wa,0,0,0,1),vt(ba,1,1,1),e.localScale,e.origin);Jt(e.localTransform,e.localTransform,n)}else{var r=e.localTransform,i=e.localPosition,o=e.localRotation,a=e.localScale,s=e.origin,l=0!==i[0]||0!==i[1]||0!==i[2],c=1!==o[3]||0!==o[0]||0!==o[1]||0!==o[2],u=1!==a[0]||1!==a[1]||1!==a[2],d=0!==s[0]||0!==s[1]||0!==s[2];c||u||d?bn(r,o,i,a,s):l?an(r,i):Vt(r)}e.localDirtyFlag=!1}}function xa(e,t){e.dirtyFlag&&(t?Jt(e.worldTransform,t.worldTransform,e.localTransform):zt(e.worldTransform,e.localTransform),e.dirtyFlag=!1)}var Ea={absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Po(0,0,0,0)},Sa=function(e){return e["COORDINATE"]="<coordinate>",e["COLOR"]="<color>",e["PAINT"]="<paint>",e["NUMBER"]="<number>",e["ANGLE"]="<angle>",e["OPACITY_VALUE"]="<opacity-value>",e["SHADOW_BLUR"]="<shadow-blur>",e["LENGTH"]="<length>",e["PERCENTAGE"]="<percentage>",e["LENGTH_PERCENTAGE"]="<length> | <percentage>",e["LENGTH_PERCENTAGE_12"]="[<length> | <percentage>]{1,2}",e["LENGTH_PERCENTAGE_14"]="[<length> | <percentage>]{1,4}",e["LIST_OF_POINTS"]="<list-of-points>",e["PATH"]="<path>",e["FILTER"]="<filter>",e["Z_INDEX"]="<z-index>",e["OFFSET_DISTANCE"]="<offset-distance>",e["DEFINED_PATH"]="<defined-path>",e["MARKER"]="<marker>",e["TRANSFORM"]="<transform>",e["TRANSFORM_ORIGIN"]="<transform-origin>",e["TEXT"]="<text>",e["TEXT_TRANSFORM"]="<text-transform>",e}({});function Ca(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ta(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ka(){}var Oa=.7,Ma=1/Oa,Ia="\\s*([+-]?\\d+)\\s*",Da="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Na="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ra=/^#([0-9a-f]{3,8})$/,La=new RegExp(`^rgb\\(${Ia},${Ia},${Ia}\\)$`),Ba=new RegExp(`^rgb\\(${Na},${Na},${Na}\\)$`),Pa=new RegExp(`^rgba\\(${Ia},${Ia},${Ia},${Da}\\)$`),Fa=new RegExp(`^rgba\\(${Na},${Na},${Na},${Da}\\)$`),$a=new RegExp(`^hsl\\(${Da},${Na},${Na}\\)$`),ja=new RegExp(`^hsla\\(${Da},${Na},${Na},${Da}\\)$`),Ha={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ua(){return this.rgb().formatHex()}function Qa(){return this.rgb().formatHex8()}function za(){return os(this).formatHsl()}function Wa(){return this.rgb().formatRgb()}function Ga(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ra.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Va(t):3===n?new Xa(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ka(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ka(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=La.exec(e))?new Xa(t[1],t[2],t[3],1):(t=Ba.exec(e))?new Xa(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Pa.exec(e))?Ka(t[1],t[2],t[3],t[4]):(t=Fa.exec(e))?Ka(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=$a.exec(e))?is(t[1],t[2]/100,t[3]/100,1):(t=ja.exec(e))?is(t[1],t[2]/100,t[3]/100,t[4]):Ha.hasOwnProperty(e)?Va(Ha[e]):"transparent"===e?new Xa(NaN,NaN,NaN,0):null}function Va(e){return new Xa(e>>16&255,e>>8&255,255&e,1)}function Ka(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xa(e,t,n,r)}function Ya(e){return e instanceof ka||(e=Ga(e)),e?(e=e.rgb(),new Xa(e.r,e.g,e.b,e.opacity)):new Xa}function qa(e,t,n,r){return 1===arguments.length?Ya(e):new Xa(e,t,n,null==r?1:r)}function Xa(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ja(){return`#${rs(this.r)}${rs(this.g)}${rs(this.b)}`}function Za(){return`#${rs(this.r)}${rs(this.g)}${rs(this.b)}${rs(255*(isNaN(this.opacity)?1:this.opacity))}`}function es(){const e=ts(this.opacity);return`${1===e?"rgb(":"rgba("}${ns(this.r)}, ${ns(this.g)}, ${ns(this.b)}${1===e?")":`, ${e})`}`}function ts(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ns(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function rs(e){return e=ns(e),(e<16?"0":"")+e.toString(16)}function is(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ss(e,t,n,r)}function os(e){if(e instanceof ss)return new ss(e.h,e.s,e.l,e.opacity);if(e instanceof ka||(e=Ga(e)),!e)return new ss;if(e instanceof ss)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new ss(a,s,l,e.opacity)}function as(e,t,n,r){return 1===arguments.length?os(e):new ss(e,t,n,null==r?1:r)}function ss(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ls(e){return e=(e||0)%360,e<0?e+360:e}function cs(e){return Math.max(0,Math.min(1,e||0))}function us(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function ds(e,t){if("function"!==typeof e||null!=t&&"function"!==typeof t)throw new TypeError("Expected a function");var n=function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=t?t.apply(this,i):i[0],s=n.cache;if(s.has(a))return s.get(a);var l=e.apply(this,i);return n.cache=s.set(a,l)||s,l};return n.cache=new(ds.Cache||Map),ds.cacheList.push(n.cache),n}Ca(ka,Ga,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ua,formatHex:Ua,formatHex8:Qa,formatHsl:za,formatRgb:Wa,toString:Wa}),Ca(Xa,qa,Ta(ka,{brighter(e){return e=null==e?Ma:Math.pow(Ma,e),new Xa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Oa:Math.pow(Oa,e),new Xa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xa(ns(this.r),ns(this.g),ns(this.b),ts(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ja,formatHex:Ja,formatHex8:Za,formatRgb:es,toString:es})),Ca(ss,as,Ta(ka,{brighter(e){return e=null==e?Ma:Math.pow(Ma,e),new ss(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Oa:Math.pow(Oa,e),new ss(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Xa(us(e>=240?e-240:e+120,i,r),us(e,i,r),us(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ss(ls(this.h),cs(this.s),cs(this.l),ts(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ts(this.opacity);return`${1===e?"hsl(":"hsla("}${ls(this.h)}, ${100*cs(this.s)}%, ${100*cs(this.l)}%${1===e?")":`, ${e})`}`}})),ds.Cache=Map,ds.cacheList=[],ds.clearCache=function(){ds.cacheList.forEach(function(e){return e.clear()})};var hs=function(e){return e[e["kUnknown"]=0]="kUnknown",e[e["kNumber"]=1]="kNumber",e[e["kPercentage"]=2]="kPercentage",e[e["kEms"]=3]="kEms",e[e["kPixels"]=4]="kPixels",e[e["kRems"]=5]="kRems",e[e["kDegrees"]=6]="kDegrees",e[e["kRadians"]=7]="kRadians",e[e["kGradians"]=8]="kGradians",e[e["kTurns"]=9]="kTurns",e[e["kMilliseconds"]=10]="kMilliseconds",e[e["kSeconds"]=11]="kSeconds",e[e["kInteger"]=12]="kInteger",e}({}),fs=function(e){return e[e["kUNumber"]=0]="kUNumber",e[e["kUPercent"]=1]="kUPercent",e[e["kULength"]=2]="kULength",e[e["kUAngle"]=3]="kUAngle",e[e["kUTime"]=4]="kUTime",e[e["kUOther"]=5]="kUOther",e}({}),ps=function(e){return e[e["kYes"]=0]="kYes",e[e["kNo"]=1]="kNo",e}({}),gs=function(e){return e[e["kYes"]=0]="kYes",e[e["kNo"]=1]="kNo",e}({}),ms=[{name:"em",unit_type:hs.kEms},{name:"px",unit_type:hs.kPixels},{name:"deg",unit_type:hs.kDegrees},{name:"rad",unit_type:hs.kRadians},{name:"grad",unit_type:hs.kGradians},{name:"ms",unit_type:hs.kMilliseconds},{name:"s",unit_type:hs.kSeconds},{name:"rem",unit_type:hs.kRems},{name:"turn",unit_type:hs.kTurns}],vs=function(e){return e[e["kUnknownType"]=0]="kUnknownType",e[e["kUnparsedType"]=1]="kUnparsedType",e[e["kKeywordType"]=2]="kKeywordType",e[e["kUnitType"]=3]="kUnitType",e[e["kSumType"]=4]="kSumType",e[e["kProductType"]=5]="kProductType",e[e["kNegateType"]=6]="kNegateType",e[e["kInvertType"]=7]="kInvertType",e[e["kMinType"]=8]="kMinType",e[e["kMaxType"]=9]="kMaxType",e[e["kClampType"]=10]="kClampType",e[e["kTransformType"]=11]="kTransformType",e[e["kPositionType"]=12]="kPositionType",e[e["kURLImageType"]=13]="kURLImageType",e[e["kColorType"]=14]="kColorType",e[e["kUnsupportedColorType"]=15]="kUnsupportedColorType",e}({}),As=function(e){return ms.find(function(t){return t.name===e}).unit_type},bs=function(e){return e?"number"===e?hs.kNumber:"percent"===e||"%"===e?hs.kPercentage:As(e):hs.kUnknown},ys=function(e){switch(e){case hs.kNumber:case hs.kInteger:return fs.kUNumber;case hs.kPercentage:return fs.kUPercent;case hs.kPixels:return fs.kULength;case hs.kMilliseconds:case hs.kSeconds:return fs.kUTime;case hs.kDegrees:case hs.kRadians:case hs.kGradians:case hs.kTurns:return fs.kUAngle;default:return fs.kUOther}},ws=function(e){switch(e){case fs.kUNumber:return hs.kNumber;case fs.kULength:return hs.kPixels;case fs.kUPercent:return hs.kPercentage;case fs.kUTime:return hs.kSeconds;case fs.kUAngle:return hs.kDegrees;default:return hs.kUnknown}},_s=function(e){var t=1;switch(e){case hs.kPixels:case hs.kDegrees:case hs.kSeconds:break;case hs.kMilliseconds:t=.001;break;case hs.kRadians:t=180/Math.PI;break;case hs.kGradians:t=.9;break;case hs.kTurns:t=360;break}return t},xs=function(e){switch(e){case hs.kNumber:case hs.kInteger:return"";case hs.kPercentage:return"%";case hs.kEms:return"em";case hs.kRems:return"rem";case hs.kPixels:return"px";case hs.kDegrees:return"deg";case hs.kRadians:return"rad";case hs.kGradians:return"grad";case hs.kMilliseconds:return"ms";case hs.kSeconds:return"s";case hs.kTurns:return"turn"}return""},Es=function(){function e(){$e(this,e)}return Ue(e,[{key:"toString",value:function(){return this.buildCSSText(ps.kNo,gs.kNo,"")}},{key:"isNumericValue",value:function(){return this.getType()>=vs.kUnitType&&this.getType()<=vs.kClampType}}],[{key:"isAngle",value:function(e){return e===hs.kDegrees||e===hs.kRadians||e===hs.kGradians||e===hs.kTurns}},{key:"isLength",value:function(e){return e>=hs.kEms&&e<hs.kDegrees}},{key:"isRelativeUnit",value:function(e){return e===hs.kPercentage||e===hs.kEms||e===hs.kRems}},{key:"isTime",value:function(e){return e===hs.kSeconds||e===hs.kMilliseconds}}])}(),Ss=function(e){function t(e){var n;return $e(this,t),n=et(this,t),n.colorSpace=e,n}return nt(t,e),Ue(t,[{key:"getType",value:function(){return vs.kColorType}},{key:"to",value:function(e){return this}}])}(Es),Cs=function(e){return e[e["Constant"]=0]="Constant",e[e["LinearGradient"]=1]="LinearGradient",e[e["RadialGradient"]=2]="RadialGradient",e}({}),Ts=function(e){function t(e,n){var r;return $e(this,t),r=et(this,t),r.type=e,r.value=n,r}return nt(t,e),Ue(t,[{key:"clone",value:function(){return new t(this.type,this.value)}},{key:"buildCSSText",value:function(e,t,n){return n}},{key:"getType",value:function(){return vs.kColorType}}])}(Es),ks=function(e){function t(e){var n;return $e(this,t),n=et(this,t),n.value=e,n}return nt(t,e),Ue(t,[{key:"clone",value:function(){return new t(this.value)}},{key:"getType",value:function(){return vs.kKeywordType}},{key:"buildCSSText",value:function(e,t,n){return n+this.value}}])}(Es),Os=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="";return n=Number.isFinite(e)?"NaN":e>0?"infinity":"-infinity",n+t},Ms=function(e){return ws(ys(e))},Is=function(e){function t(e){var n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hs.kNumber;return $e(this,t),n=et(this,t),r="string"===typeof i?bs(i):i,n.unit=r,n.value=e,n}return nt(t,e),Ue(t,[{key:"clone",value:function(){return new t(this.value,this.unit)}},{key:"equals",value:function(e){var t=e;return this.value===t.value&&this.unit===t.unit}},{key:"getType",value:function(){return vs.kUnitType}},{key:"convertTo",value:function(e){if(this.unit===e)return new t(this.value,this.unit);var n=Ms(this.unit);if(n!==Ms(e)||n===hs.kUnknown)return null;var r=_s(this.unit)/_s(e);return new t(this.value*r,e)}},{key:"buildCSSText",value:function(e,t,n){var r;switch(this.unit){case hs.kUnknown:break;case hs.kInteger:r=Number(this.value).toFixed(0);break;case hs.kNumber:case hs.kPercentage:case hs.kEms:case hs.kRems:case hs.kPixels:case hs.kDegrees:case hs.kRadians:case hs.kGradians:case hs.kMilliseconds:case hs.kSeconds:case hs.kTurns:var i=-999999,o=999999,a=this.value,s=xs(this.unit);if(a<i||a>o){var l=xs(this.unit);r=!Number.isFinite(a)||Number.isNaN(a)?Os(a,l):a+(l||"")}else r="".concat(a).concat(s)}return n+=r,n}}])}(Es),Ds=new Is(0,"px");new Is(1,"px");var Ns=new Is(0,"deg"),Rs=function(e){function t(e,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return $e(this,t),i=et(this,t,["rgb"]),i.r=e,i.g=n,i.b=r,i.alpha=o,i.isNone=a,i}return nt(t,e),Ue(t,[{key:"clone",value:function(){return new t(this.r,this.g,this.b,this.alpha)}},{key:"buildCSSText",value:function(e,t,n){return"".concat(n,"rgba(").concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.alpha,")")}}])}(Ss),Ls=new ks("unset"),Bs=new ks("initial"),Ps=new ks("inherit"),Fs={"":Ls,unset:Ls,initial:Bs,inherit:Ps},$s=function(e){return Fs[e]||(Fs[e]=new ks(e)),Fs[e]},js=new Rs(0,0,0,0,!0),Hs=new Rs(0,0,0,0),Us=ds(function(e,t,n,r){return new Rs(e,t,n,r)},function(e,t,n,r){return"rgba(".concat(e,",").concat(t,",").concat(n,",").concat(r,")")}),Qs=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hs.kNumber;return new Is(e,t)};function zs(e){var t=e.type,n=e.value;return"hex"===t?"#".concat(n):"literal"===t?n:"rgb"===t?"rgb(".concat(n.join(","),")"):"rgba(".concat(n.join(","),")")}new Is(50,"%");var Ws=function(){var e={linearGradient:/^(linear\-gradient)/i,repeatingLinearGradient:/^(repeating\-linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,repeatingRadialGradient:/^(repeating\-radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function n(e){throw new Error("".concat(t,": ").concat(e))}function r(){var e=i();return t.length>0&&n("Invalid input not EOF"),e}function i(){return b(o)}function o(){return a("linear-gradient",e.linearGradient,l)||a("repeating-linear-gradient",e.repeatingLinearGradient,l)||a("radial-gradient",e.radialGradient,d)||a("repeating-radial-gradient",e.repeatingRadialGradient,d)||a("conic-gradient",e.conicGradient,d)}function a(t,r,i){return s(r,function(r){var o=i();return o&&(I(e.comma)||n("Missing comma before color stops")),{type:t,orientation:o,colorStops:b(y)}})}function s(t,r){var i=I(t);if(i){I(e.startCall)||n("Missing (");var o=r(i);return I(e.endCall)||n("Missing )"),o}}function l(){return c()||u()}function c(){return M("directional",e.sideOrCorner,1)}function u(){return M("angular",e.angleValue,1)}function d(){var n,r,i=h();return i&&(n=[],n.push(i),r=t,I(e.comma)&&(i=h(),i?n.push(i):t=r)),n}function h(){var e=f()||p();if(e)e.at=m();else{var t=g();if(t){e=t;var n=m();n&&(e.at=n)}else{var r=v();r&&(e={type:"default-radial",at:r})}}return e}function f(){var e=M("shape",/^(circle)/i,0);return e&&(e.style=O()||g()),e}function p(){var e=M("shape",/^(ellipse)/i,0);return e&&(e.style=T()||g()),e}function g(){return M("extent-keyword",e.extentKeywords,1)}function m(){if(M("position",/^at/,0)){var e=v();return e||n("Missing positioning value"),e}}function v(){var e=A();if(e.x||e.y)return{type:"position",value:e}}function A(){return{x:T(),y:T()}}function b(t){var r=t(),i=[];if(r){i.push(r);while(I(e.comma))r=t(),r?i.push(r):n("One extra comma")}return i}function y(){var e=w();return e||n("Expected color definition"),e.length=T(),e}function w(){return x()||S()||E()||_()}function _(){return M("literal",e.literalColor,0)}function x(){return M("hex",e.hexColor,1)}function E(){return s(e.rgbColor,function(){return{type:"rgb",value:b(C)}})}function S(){return s(e.rgbaColor,function(){return{type:"rgba",value:b(C)}})}function C(){return I(e.number)[1]}function T(){return M("%",e.percentageValue,1)||k()||O()}function k(){return M("position-keyword",e.positionKeywords,1)}function O(){return M("px",e.pixelValue,1)||M("em",e.emValue,1)}function M(e,t,n){var r=I(t);if(r)return{type:e,value:r[n]}}function I(e){var n=/^[\n\r\t\s]+/.exec(t);n&&D(n[0].length);var r=e.exec(t);return r&&D(r[0].length),r}function D(e){t=t.substring(e)}return function(e){return t=e,r()}}();function Gs(e,t,n,r){var i=Wo(r.value),o=0,a=0,s=o+t/2,l=a+n/2,c=Math.abs(t*Math.cos(i))+Math.abs(n*Math.sin(i)),u=e[0]+s-Math.cos(i)*c/2,d=e[1]+l-Math.sin(i)*c/2,h=e[0]+s+Math.cos(i)*c/2,f=e[1]+l+Math.sin(i)*c/2;return{x1:u,y1:d,x2:h,y2:f}}function Vs(e,t,n,r,i,o){var a=r.value,s=i.value;r.unit===hs.kPercentage&&(a=r.value/100*t),i.unit===hs.kPercentage&&(s=i.value/100*n);var l=Math.max(cr([0,0],[a,s]),cr([0,n],[a,s]),cr([t,n],[a,s]),cr([t,0],[a,s]));return o&&(o instanceof Is?l=o.value:o instanceof ks&&("closest-side"===o.value?l=Math.min(a,t-a,s,n-s):"farthest-side"===o.value?l=Math.max(a,t-a,s,n-s):"closest-corner"===o.value&&(l=Math.min(cr([0,0],[a,s]),cr([0,n],[a,s]),cr([t,n],[a,s]),cr([t,0],[a,s]))))),{x:a+e[0],y:s+e[1],r:l}}var Ks=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Ys=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,qs=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,Xs=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function Js(e){var t,n,r=e.length;(e[r-1].length=null!==(t=e[r-1].length)&&void 0!==t?t:{type:"%",value:"100"},r>1)&&(e[0].length=null!==(n=e[0].length)&&void 0!==n?n:{type:"%",value:"0"});for(var i=0,o=Number(e[0].length.value),a=1;a<r;a++){var s,l=null===(s=e[a].length)||void 0===s?void 0:s.value;if(!ur(l)&&!ur(o)){for(var c=1;c<a-i;c++)e[i+c].length={type:"%",value:"".concat(o+(Number(l)-o)*c/(a-i))};i=a,o=Number(l)}}}var Zs={left:180,top:-90,bottom:90,right:0,"left top":225,"top left":225,"left bottom":135,"bottom left":135,"right top":-45,"top right":-45,"right bottom":45,"bottom right":45},el=ds(function(e){var t;return t="angular"===e.type?Number(e.value):Zs[e.value]||0,Qs(t,"deg")}),tl=ds(function(e){var t=50,n=50,r="%",i="%";if("position"===(null===e||void 0===e?void 0:e.type)){var o=e.value,a=o.x,s=o.y;"position-keyword"===(null===a||void 0===a?void 0:a.type)&&("left"===a.value?t=0:"center"===a.value?t=50:"right"===a.value?t=100:"top"===a.value?n=0:"bottom"===a.value&&(n=100)),"position-keyword"===(null===s||void 0===s?void 0:s.type)&&("left"===s.value?t=0:"center"===s.value?n=50:"right"===s.value?t=100:"top"===s.value?n=0:"bottom"===s.value&&(n=100)),"px"!==(null===a||void 0===a?void 0:a.type)&&"%"!==(null===a||void 0===a?void 0:a.type)&&"em"!==(null===a||void 0===a?void 0:a.type)||(r=null===a||void 0===a?void 0:a.type,t=Number(a.value)),"px"!==(null===s||void 0===s?void 0:s.type)&&"%"!==(null===s||void 0===s?void 0:s.type)&&"em"!==(null===s||void 0===s?void 0:s.type)||(i=null===s||void 0===s?void 0:s.type,n=Number(s.value))}return{cx:Qs(t,r),cy:Qs(n,i)}}),nl=ds(function(e){if(e.indexOf("linear")>-1||e.indexOf("radial")>-1){var t=Ws(e);return t.map(function(e){var t=e.type,n=e.orientation,r=e.colorStops;Js(r);var i=r.map(function(e){return{offset:Qs(Number(e.length.value),"%"),color:zs(e)}});if("linear-gradient"===t)return new Ts(Cs.LinearGradient,{angle:n?el(n):Ns,steps:i});if("radial-gradient"===t&&(n||(n=[{type:"shape",value:"circle"}]),"shape"===n[0].type&&"circle"===n[0].value)){var o,a=tl(n[0].at),s=a.cx,l=a.cy;if(n[0].style){var c=n[0].style,u=c.type,d=c.value;o="extent-keyword"===u?$s(d):Qs(d,u)}return new Ts(Cs.RadialGradient,{cx:s,cy:l,size:o,steps:i})}})}var n=e[0];if("("===e[1]||"("===e[2])if("l"===n){var r=Ks.exec(e);if(r){var i,o=(null===(i=r[2].match(Xs))||void 0===i?void 0:i.map(function(e){return e.split(":")}))||[];return[new Ts(Cs.LinearGradient,{angle:Qs(parseFloat(r[1]),"deg"),steps:o.map(function(e){var t=at(e,2),n=t[0],r=t[1];return{offset:Qs(100*Number(n),"%"),color:r}})})]}}else if("r"===n){var a=rl(e);if(a){if(!dr(a))return[new Ts(Cs.RadialGradient,a)];e=a}}else if("p"===n)return il(e)});function rl(e){var t=Ys.exec(e);if(t){var n,r=(null===(n=t[4].match(Xs))||void 0===n?void 0:n.map(function(e){return e.split(":")}))||[];return{cx:Qs(50,"%"),cy:Qs(50,"%"),steps:r.map(function(e){var t=at(e,2),n=t[0],r=t[1];return{offset:Qs(100*Number(n),"%"),color:r}})}}return null}function il(e){var t=qs.exec(e);if(t){var n=t[1],r=t[2];switch(n){case"a":n="repeat";break;case"x":n="repeat-x";break;case"y":n="repeat-y";break;case"n":n="no-repeat";break;default:n="no-repeat"}return{image:r,repetition:n}}return null}function ol(e){return e&&!!e.image}function al(e){return e&&!ur(e.r)&&!ur(e.g)&&!ur(e.b)}var sl=ds(function(e){if(ol(e))return(0,Fe.A)({repetition:"repeat"},e);if(ur(e)&&(e=""),"transparent"===e)return Hs;if("currentColor"===e)e="black";else if("none"===e)return js;var t=nl(e);if(t)return t;var n=Ga(e),r=[0,0,0,0];return null!==n&&(r[0]=n.r||0,r[1]=n.g||0,r[2]=n.b||0,r[3]=n.opacity),Us.apply(void 0,r)});function ll(e,t){if(al(e)&&al(t))return[[Number(e.r),Number(e.g),Number(e.b),Number(e.alpha)],[Number(t.r),Number(t.g),Number(t.b),Number(t.alpha)],function(e){var t=e.slice();if(t[3])for(var n=0;n<3;n++)t[n]=Math.round(fr(t[n],0,255));return t[3]=fr(t[3],0,1),"rgba(".concat(t.join(","),")")}]}function cl(e,t){if(ur(t))return Qs(0,"px");if(t="".concat(t).trim().toLowerCase(),isFinite(Number(t))){if("px".search(e)>=0)return Qs(Number(t),"px");if("deg".search(e)>=0)return Qs(Number(t),"deg")}var n=[];t=t.replace(e,function(e){return n.push(e),"U".concat(e)});var r="U(".concat(e.source,")");return n.map(function(e){return Qs(Number(t.replace(new RegExp("U".concat(e),"g"),"").replace(new RegExp(r,"g"),"*0")),e)})[0]}var ul=function(e){return cl(new RegExp("px","g"),e)},dl=ds(ul),hl=function(e){return cl(new RegExp("%","g"),e)};ds(hl);var fl=function(e){return lr(e)||isFinite(Number(e))?Qs(Number(e)||0,"px"):cl(new RegExp("px|%|em|rem","g"),e)},pl=ds(fl),gl=function(e){return cl(new RegExp("deg|rad|grad|turn","g"),e)},ml=ds(gl);function vl(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o="",a=e.value||0,s=t.value||0,l=Ms(e.unit),c=e.convertTo(l),u=t.convertTo(l);return c&&u?(a=c.value,s=u.value,o=xs(e.unit)):(Is.isLength(e.unit)||Is.isLength(t.unit))&&(a=yl(e,i,n),s=yl(t,i,n),o="px"),[a,s,function(e){return r&&(e=Math.max(e,0)),e+o}]}function Al(e){var t=0;return e.unit===hs.kDegrees?t=e.value:e.unit===hs.kRadians?t=Vo(Number(e.value)):e.unit===hs.kTurns?t=Ko(Number(e.value)):e.value&&(t=e.value),t}function bl(e,t){var n;return Array.isArray(e)?n=e.map(function(e){return Number(e)}):dr(e)?n=e.split(" ").map(function(e){return Number(e)}):lr(e)&&(n=[e]),2===t?1===n.length?[n[0],n[0]]:[n[0],n[1]]:4===t?1===n.length?[n[0],n[0],n[0],n[0]]:2===n.length?[n[0],n[1],n[0],n[1]]:3===n.length?[n[0],n[1],n[2],n[1]]:[n[0],n[1],n[2],n[3]]:"even"===t&&n.length%2===1?[].concat(Ke(n),Ke(n)):n}function yl(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(e.unit===hs.kPixels)return Number(e.value);if(e.unit===hs.kPercentage&&n){var i=n.nodeName===_o.GROUP?n.getLocalBounds():n.getGeometryBounds();return(r?i.min[t]:0)+e.value/100*i.halfExtents[t]*2}return 0}var wl=function(e){return cl(/deg|rad|grad|turn|px|%/g,e)},_l=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function xl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(e=e.toLowerCase().trim(),"none"===e)return[];var t,n=/\s*([\w-]+)\(([^)]*)\)/g,r=[],i=0;while(t=n.exec(e)){if(t.index!==i)return[];if(i=t.index+t[0].length,_l.indexOf(t[1])>-1&&r.push({name:t[1],params:t[2].split(" ").map(function(e){return wl(e)||sl(e)})}),n.lastIndex===e.length)return r}return[]}function El(e){return e.toString()}var Sl=function(e){return"number"===typeof e?Qs(e):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(e)?Qs(Number(e)):Qs(0)},Cl=ds(Sl);function Tl(e,t){return[e,t,El]}function kl(e,t){return function(n,r){return[n,r,function(n){return El(fr(n,e,t))}]}}function Ol(e,t){if(e.length===t.length)return[e,t,function(e){return e}]}function Ml(e){return 0===e.parsedStyle.d.totalLength&&(e.parsedStyle.d.totalLength=Jr(e.parsedStyle.d.absolutePath)),e.parsedStyle.d.totalLength}function Il(e){return 0===e.parsedStyle.points.totalLength&&(e.parsedStyle.points.totalLength=Zi(e.parsedStyle.points.points)),e.parsedStyle.points.totalLength}function Dl(e){for(var t=0;t<e.length;t++){var n=e[t-1],r=e[t],i=r[0];if("M"===i&&n){var o=n[0],a=[r[1],r[2]],s=void 0;"L"===o||"M"===o?s=[n[1],n[2]]:"C"!==o&&"A"!==o&&"Q"!==o||(s=[n[n.length-2],n[n.length-1]]),s&&Ll(a,s)&&(e.splice(t,1),t--)}}}function Nl(e){for(var t=!1,n=e.length,r=0;r<n;r++){var i=e[r],o=i[0];if("C"===o||"A"===o||"Q"===o){t=!0;break}}return t}function Rl(e){for(var t=[],n=[],r=[],i=0;i<e.length;i++){var o=e[i],a=o[0];"M"===a?(r.length&&(n.push(r),r=[]),r.push([o[1],o[2]])):"Z"===a?r.length&&(t.push(r),r=[]):r.push([o[1],o[2]])}return r.length>0&&n.push(r),{polygons:t,polylines:n}}function Ll(e,t){return e[0]===t[0]&&e[1]===t[1]}function Bl(e,t){for(var n=[],r=[],i=[],o=0;o<e.length;o++){var a=e[o],s=a.currentPoint,l=a.params,c=a.prePoint,u=void 0;switch(a.command){case"Q":u=no(c[0],c[1],l[1],l[2],l[3],l[4]);break;case"C":u=Yi(c[0],c[1],l[1],l[2],l[3],l[4],l[5],l[6]);break;case"A":var d=a.arcParams;u=Hi(d.cx,d.cy,d.rx,d.ry,d.xRotation,d.startAngle,d.endAngle);break;default:n.push(s[0]),r.push(s[1]);break}u&&(a.box=u,n.push(u.x,u.x+u.width),r.push(u.y,u.y+u.height)),t&&("L"===a.command||"M"===a.command)&&a.prePoint&&a.nextPoint&&i.push(a)}n=n.filter(function(e){return!Number.isNaN(e)&&e!==1/0&&e!==-1/0}),r=r.filter(function(e){return!Number.isNaN(e)&&e!==1/0&&e!==-1/0});var h=Zr(n),f=Zr(r),p=ei(n),g=ei(r);if(0===i.length)return{x:h,y:f,width:p-h,height:g-f};for(var m=0;m<i.length;m++){var v=i[m],A=v.currentPoint,b=void 0;A[0]===h?(b=Pl(v,t),h-=b.xExtra):A[0]===p&&(b=Pl(v,t),p+=b.xExtra),A[1]===f?(b=Pl(v,t),f-=b.yExtra):A[1]===g&&(b=Pl(v,t),g+=b.yExtra)}return{x:h,y:f,width:p-h,height:g-f}}function Pl(e,t){var n=e.prePoint,r=e.currentPoint,i=e.nextPoint,o=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),a=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),s=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),l=Math.acos((o+a-s)/(2*Math.sqrt(o)*Math.sqrt(a)));if(!l||0===Math.sin(l)||ni(l,0))return{xExtra:0,yExtra:0};var c=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),u=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));c=c>Math.PI/2?Math.PI-c:c,u=u>Math.PI/2?Math.PI-u:u;var d={xExtra:Math.cos(l/2-c)*(t/2*(1/Math.sin(l/2)))-t/2||0,yExtra:Math.cos(u-l/2)*(t/2*(1/Math.sin(l/2)))-t/2||0};return d}function Fl(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}ds(function(e){return dr(e)?e.split(" ").map(Cl):e.map(Cl)});var $l=function(e,t){var n=e.x*t.x+e.y*t.y,r=Math.sqrt((Math.pow(e.x,2)+Math.pow(e.y,2))*(Math.pow(t.x,2)+Math.pow(t.y,2))),i=e.x*t.y-e.y*t.x<0?-1:1,o=i*Math.acos(n/r);return o},jl=function(e,t,n,r,i,o,a,s){t=Math.abs(t),n=Math.abs(n),r=ii(r,360);var l=Wo(r);if(e.x===a.x&&e.y===a.y)return{x:e.x,y:e.y,ellipticalArcAngle:0};if(0===t||0===n)return{x:0,y:0,ellipticalArcAngle:0};var c=(e.x-a.x)/2,u=(e.y-a.y)/2,d={x:Math.cos(l)*c+Math.sin(l)*u,y:-Math.sin(l)*c+Math.cos(l)*u},h=Math.pow(d.x,2)/Math.pow(t,2)+Math.pow(d.y,2)/Math.pow(n,2);h>1&&(t*=Math.sqrt(h),n*=Math.sqrt(h));var f=Math.pow(t,2)*Math.pow(n,2)-Math.pow(t,2)*Math.pow(d.y,2)-Math.pow(n,2)*Math.pow(d.x,2),p=Math.pow(t,2)*Math.pow(d.y,2)+Math.pow(n,2)*Math.pow(d.x,2),g=f/p;g=g<0?0:g;var m=(i!==o?1:-1)*Math.sqrt(g),v={x:m*(t*d.y/n),y:m*(-n*d.x/t)},A={x:Math.cos(l)*v.x-Math.sin(l)*v.y+(e.x+a.x)/2,y:Math.sin(l)*v.x+Math.cos(l)*v.y+(e.y+a.y)/2},b={x:(d.x-v.x)/t,y:(d.y-v.y)/n},y=$l({x:1,y:0},b),w={x:(-d.x-v.x)/t,y:(-d.y-v.y)/n},_=$l(b,w);!o&&_>0?_-=2*Math.PI:o&&_<0&&(_+=2*Math.PI),_%=2*Math.PI;var x=y+_*s,E=t*Math.cos(x),S=n*Math.sin(x),C={x:Math.cos(l)*E-Math.sin(l)*S+A.x,y:Math.sin(l)*E+Math.cos(l)*S+A.y,ellipticalArcStartAngle:y,ellipticalArcEndAngle:y+_,ellipticalArcAngle:x,ellipticalArcCenter:A,resultantRx:t,resultantRy:n};return C};function Hl(e){for(var t=[],n=null,r=null,i=null,o=0,a=e.length,s=0;s<a;s++){var l=e[s];r=e[s+1];var c=l[0],u={command:c,prePoint:n,params:l,startTangent:null,endTangent:null,currentPoint:null,nextPoint:null,arcParams:null,box:null,cubicParams:null};switch(c){case"M":i=[l[1],l[2]],o=s;break;case"A":var d=Gl(n,l);u.arcParams=d;break}if("Z"===c)n=i,r=e[o+1];else{var h=l.length;n=[l[h-2],l[h-1]]}r&&"Z"===r[0]&&(r=e[o],t[o]&&(t[o].prePoint=n)),u.currentPoint=n,t[o]&&Ll(n,t[o].currentPoint)&&(t[o].prePoint=u.prePoint);var f=r?[r[r.length-2],r[r.length-1]]:null;u.nextPoint=f;var p=u.prePoint;if(["L","H","V"].includes(c))u.startTangent=[p[0]-n[0],p[1]-n[1]],u.endTangent=[n[0]-p[0],n[1]-p[1]];else if("Q"===c){var g=[l[1],l[2]];u.startTangent=[p[0]-g[0],p[1]-g[1]],u.endTangent=[n[0]-g[0],n[1]-g[1]]}else if("T"===c){var m=t[s-1],v=Fl(m.currentPoint,p);"Q"===m.command?(u.command="Q",u.startTangent=[p[0]-v[0],p[1]-v[1]],u.endTangent=[n[0]-v[0],n[1]-v[1]]):(u.command="TL",u.startTangent=[p[0]-n[0],p[1]-n[1]],u.endTangent=[n[0]-p[0],n[1]-p[1]])}else if("C"===c){var A=[l[1],l[2]],b=[l[3],l[4]];u.startTangent=[p[0]-A[0],p[1]-A[1]],u.endTangent=[n[0]-b[0],n[1]-b[1]],0===u.startTangent[0]&&0===u.startTangent[1]&&(u.startTangent=[A[0]-b[0],A[1]-b[1]]),0===u.endTangent[0]&&0===u.endTangent[1]&&(u.endTangent=[b[0]-A[0],b[1]-A[1]])}else if("S"===c){var y=t[s-1],w=Fl(y.currentPoint,p),_=[l[1],l[2]];"C"===y.command?(u.command="C",u.startTangent=[p[0]-w[0],p[1]-w[1]],u.endTangent=[n[0]-_[0],n[1]-_[1]]):(u.command="SQ",u.startTangent=[p[0]-_[0],p[1]-_[1]],u.endTangent=[n[0]-_[0],n[1]-_[1]])}else if("A"===c){var x=Ul(u,0),E=x.x,S=x.y,C=Ul(u,1,!1),T=C.x,k=C.y;u.startTangent=[E,S],u.endTangent=[T,k]}t.push(u)}return t}function Ul(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.arcParams,i=r.rx,o=void 0===i?0:i,a=r.ry,s=void 0===a?0:a,l=r.xRotation,c=r.arcFlag,u=r.sweepFlag,d=jl({x:e.prePoint[0],y:e.prePoint[1]},o,s,l,!!c,!!u,{x:e.currentPoint[0],y:e.currentPoint[1]},t),h=jl({x:e.prePoint[0],y:e.prePoint[1]},o,s,l,!!c,!!u,{x:e.currentPoint[0],y:e.currentPoint[1]},n?t+.005:t-.005),f=h.x-d.x,p=h.y-d.y,g=Math.sqrt(f*f+p*p);return{x:-f/g,y:-p/g}}function Ql(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function zl(e,t){return Ql(e)*Ql(t)?(e[0]*t[0]+e[1]*t[1])/(Ql(e)*Ql(t)):1}function Wl(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(zl(e,t))}function Gl(e,t){var n=t[1],r=t[2],i=ii(Wo(t[3]),2*Math.PI),o=t[4],a=t[5],s=e[0],l=e[1],c=t[6],u=t[7],d=Math.cos(i)*(s-c)/2+Math.sin(i)*(l-u)/2,h=-1*Math.sin(i)*(s-c)/2+Math.cos(i)*(l-u)/2,f=d*d/(n*n)+h*h/(r*r);f>1&&(n*=Math.sqrt(f),r*=Math.sqrt(f));var p=n*n*(h*h)+r*r*(d*d),g=p?Math.sqrt((n*n*(r*r)-p)/p):1;o===a&&(g*=-1),isNaN(g)&&(g=0);var m=r?g*n*h/r:0,v=n?g*-r*d/n:0,A=(s+c)/2+Math.cos(i)*m-Math.sin(i)*v,b=(l+u)/2+Math.sin(i)*m+Math.cos(i)*v,y=[(d-m)/n,(h-v)/r],w=[(-1*d-m)/n,(-1*h-v)/r],_=Wl([1,0],y),x=Wl(y,w);return zl(y,w)<=-1&&(x=Math.PI),zl(y,w)>=1&&(x=0),0===a&&x>0&&(x-=2*Math.PI),1===a&&x<0&&(x+=2*Math.PI),{cx:A,cy:b,rx:Ll(e,[c,u])?0:n,ry:Ll(e,[c,u])?0:r,startAngle:_,endAngle:_+x,xRotation:i,arcFlag:o,sweepFlag:a}}function Vl(e,t,n){return e.reduce(function(e,t){var r="";if("M"===t[0]||"L"===t[0]){var i=gt(t[1],t[2],0);n&&Ot(i,i,n),r="".concat(t[0]).concat(i[0],",").concat(i[1])}else if("Z"===t[0])r=t[0];else if("C"===t[0]){var o=gt(t[1],t[2],0),a=gt(t[3],t[4],0),s=gt(t[5],t[6],0);n&&(Ot(o,o,n),Ot(a,a,n),Ot(s,s,n)),r="".concat(t[0]).concat(o[0],",").concat(o[1],",").concat(a[0],",").concat(a[1],",").concat(s[0],",").concat(s[1])}else if("A"===t[0]){var l=gt(t[6],t[7],0);n&&Ot(l,l,n),r="".concat(t[0]).concat(t[1],",").concat(t[2],",").concat(t[3],",").concat(t[4],",").concat(t[5],",").concat(l[0],",").concat(l[1])}else if("Q"===t[0]){var c=gt(t[1],t[2],0),u=gt(t[3],t[4],0);n&&(Ot(c,c,n),Ot(u,u,n)),r="".concat(t[0]).concat(t[1],",").concat(t[2],",").concat(t[3],",").concat(t[4],"}")}return e+r},"")}function Kl(e,t,n,r){return[["M",e,t],["L",n,r]]}function Yl(e,t,n,r){var i=(-1+Math.sqrt(2))/3*4,o=e*i,a=t*i,s=n-e,l=n+e,c=r-t,u=r+t;return[["M",s,r],["C",s,r-a,n-o,c,n,c],["C",n+o,c,l,r-a,l,r],["C",l,r+a,n+o,u,n,u],["C",n-o,u,s,r+a,s,r],["Z"]]}function ql(e,t){var n=e.map(function(e,t){return[0===t?"M":"L",e[0],e[1]]});return t&&n.push(["Z"]),n}function Xl(e,t,n,r,i){if(i){var o=at(i,4),a=o[0],s=o[1],l=o[2],c=o[3],u=e>0?1:-1,d=t>0?1:-1,h=u+d!==0?1:0;return[["M",u*a+n,r],["L",e-u*s+n,r],s?["A",s,s,0,0,h,e+n,d*s+r]:null,["L",e+n,t-d*l+r],l?["A",l,l,0,0,h,e+n-u*l,t+r]:null,["L",n+u*c,t+r],c?["A",c,c,0,0,h,n,t+r-d*c]:null,["L",n,d*a+r],a?["A",a,a,0,0,h,u*a+n,r]:null,["Z"]].filter(function(e){return e})}return[["M",n,r],["L",n+e,r],["L",n+e,r+t],["L",n,r+t],["Z"]]}function Jl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.getLocalTransform(),n=[];switch(e.nodeName){case _o.LINE:var r=e.parsedStyle,i=r.x1,o=void 0===i?0:i,a=r.y1,s=void 0===a?0:a,l=r.x2,c=void 0===l?0:l,u=r.y2,d=void 0===u?0:u;n=Kl(o,s,c,d);break;case _o.CIRCLE:var h=e.parsedStyle,f=h.r,p=void 0===f?0:f,g=h.cx,m=void 0===g?0:g,v=h.cy,A=void 0===v?0:v;n=Yl(p,p,m,A);break;case _o.ELLIPSE:var b=e.parsedStyle,y=b.rx,w=void 0===y?0:y,_=b.ry,x=void 0===_?0:_,E=b.cx,S=void 0===E?0:E,C=b.cy,T=void 0===C?0:C;n=Yl(w,x,S,T);break;case _o.POLYLINE:case _o.POLYGON:var k=e.parsedStyle.points;n=ql(k.points,e.nodeName===_o.POLYGON);break;case _o.RECT:var O=e.parsedStyle,M=O.width,I=void 0===M?0:M,D=O.height,N=void 0===D?0:D,R=O.x,L=void 0===R?0:R,B=O.y,P=void 0===B?0:B,F=O.radius,$=F&&F.some(function(e){return 0!==e});n=Xl(I,N,L,P,$&&F.map(function(e){return fr(e,0,Math.min(Math.abs(I)/2,Math.abs(N)/2))}));break;case _o.PATH:var j=e.parsedStyle.d.absolutePath;n=Ke(j);break}if(n.length)return Vl(n,e,t)}var Zl=function(e){if(""===e||Array.isArray(e)&&0===e.length)return{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:{x:0,y:0,width:0,height:0}};var t;try{t=Hr(e)}catch(h){t=Hr(""),console.error("[g]: Invalid SVG Path definition: ".concat(e))}Dl(t);var n=Nl(t),r=Rl(t),i=r.polygons,o=r.polylines,a=Hl(t),s=Bl(a,0),l=s.x,c=s.y,u=s.width,d=s.height;return{absolutePath:t,hasArc:n,segments:a,polygons:i,polylines:o,totalLength:0,rect:{x:Number.isFinite(l)?l:0,y:Number.isFinite(c)?c:0,width:Number.isFinite(u)?u:0,height:Number.isFinite(d)?d:0}}},ec=ds(Zl);function tc(e){return dr(e)?ec(e):Zl(e)}function nc(e,t,n){var r=e.curve,i=t.curve;r&&0!==r.length||(r=hi(e.absolutePath,!1),e.curve=r),i&&0!==i.length||(i=hi(t.absolutePath,!1),t.curve=i);var o=[r,i];r.length!==i.length&&(o=mi(r,i));var a=bi(o[0])!==bi(o[1])?yi(o[0]):wi(o[0]);return[a,xi(o[1],a),function(e){return e}]}function rc(e,t){var n;return n=dr(e)?e.split(" ").map(function(e){var t=e.split(","),n=at(t,2),r=n[0],i=n[1];return[Number(r),Number(i)]}):e,{points:n,totalLength:0,segments:[]}}function ic(e,t){return[e.points,t.points,function(e){return e}]}var oc=null,ac=/\s*(\w+)\(([^)]*)\)/g;function sc(e){return function(t){var n=0;return e.map(function(e){return e===oc?t[n++]:e})}}function lc(e){return e}var cc={matrix:["NNNNNN",[oc,oc,0,0,oc,oc,0,0,0,0,1,0,oc,oc,0,1],lc],matrix3d:["NNNNNNNNNNNNNNNN",lc],rotate:["A"],rotateX:["A"],rotateY:["A"],rotateZ:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",sc([oc,oc,new Is(1)]),lc],scaleX:["N",sc([oc,new Is(1),new Is(1)]),sc([oc,new Is(1)])],scaleY:["N",sc([new Is(1),oc,new Is(1)]),sc([new Is(1),oc])],scaleZ:["N",sc([new Is(1),new Is(1),oc])],scale3d:["NNN",lc],skew:["Aa",null,lc],skewX:["A",null,sc([oc,Ns])],skewY:["A",null,sc([Ns,oc])],translate:["Tt",sc([oc,oc,Ds]),lc],translateX:["T",sc([oc,Ds,Ds]),sc([oc,Ds])],translateY:["T",sc([Ds,oc,Ds]),sc([Ds,oc])],translateZ:["L",sc([Ds,Ds,oc])],translate3d:["TTL",lc]};function uc(e){for(var t=[],n=e.length,r=0;r<n;r++){var i=e[r],o=i[0],a=i.slice(1);"translate"===o||"skew"===o?1===a.length&&a.push(0):"scale"===o&&1===a.length&&a.push(a[0]);var s=cc[o];if(!s)return[];var l=a.map(function(e){return Qs(e)});t.push({t:o,d:l})}return t}function dc(e){if(Array.isArray(e))return uc(e);if(e=(e||"none").trim(),"none"===e)return[];var t,n=[],r=0;ac.lastIndex=0;while(t=ac.exec(e)){if(t.index!==r)return[];r=t.index+t[0].length;var i=t[1],o=cc[i];if(!o)return[];var a=t[2].split(","),s=o[0];if(s.length<a.length)return[];for(var l=[],c=0;c<s.length;c++){var u=a[c],d=s[c],h=void 0;if(h=u?{A:function(e){return"0"===e.trim()?Ns:ml(e)},N:Cl,T:pl,L:dl}[d.toUpperCase()](u):{a:Ns,n:l[0],t:Ds}[d],void 0===h)return[];l.push(h)}if(n.push({t:i,d:l}),ac.lastIndex===e.length)return n}return[]}function hc(e){if(Array.isArray(e))return uc(e);if(e=(e||"none").trim(),"none"===e)return[];var t,n=[],r=0;ac.lastIndex=0;while(t=ac.exec(e)){if(t.index!==r)return[];r=t.index+t[0].length;var i=t[1],o=cc[i];if(!o)return[];var a=t[2].split(","),s=o[0];if(s.length<a.length)return[];for(var l=[],c=0;c<s.length;c++){var u=a[c],d=s[c],h=void 0;if(h=u?{A:function(e){return"0"===e.trim()?Ns:gl(e)},N:Sl,T:fl,L:ul}[d.toUpperCase()](u):{a:Ns,n:l[0],t:Ds}[d],void 0===h)return[];l.push(h)}if(n.push({t:i,d:l}),ac.lastIndex===e.length)return n}return[]}function fc(e){var t,n,r,i;switch(e.t){case"rotateX":return i=Wo(Al(e.d[0])),[1,0,0,0,0,Math.cos(i),Math.sin(i),0,0,-Math.sin(i),Math.cos(i),0,0,0,0,1];case"rotateY":return i=Wo(Al(e.d[0])),[Math.cos(i),0,-Math.sin(i),0,0,1,0,0,Math.sin(i),0,Math.cos(i),0,0,0,0,1];case"rotate":case"rotateZ":return i=Wo(Al(e.d[0])),[Math.cos(i),Math.sin(i),0,0,-Math.sin(i),Math.cos(i),0,0,0,0,1,0,0,0,0,1];case"rotate3d":t=e.d[0].value,n=e.d[1].value,r=e.d[2].value,i=Wo(Al(e.d[3]));var o=t*t+n*n+r*r;if(0===o)t=1,n=0,r=0;else if(1!==o){var a=Math.sqrt(o);t/=a,n/=a,r/=a}var s=Math.sin(i/2),l=s*Math.cos(i/2),c=s*s;return[1-2*(n*n+r*r)*c,2*(t*n*c+r*l),2*(t*r*c-n*l),0,2*(t*n*c-r*l),1-2*(t*t+r*r)*c,2*(n*r*c+t*l),0,2*(t*r*c+n*l),2*(n*r*c-t*l),1-2*(t*t+n*n)*c,0,0,0,0,1];case"scale":return[e.d[0].value,0,0,0,0,e.d[1].value,0,0,0,0,1,0,0,0,0,1];case"scaleX":return[e.d[0].value,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaleY":return[1,0,0,0,0,e.d[0].value,0,0,0,0,1,0,0,0,0,1];case"scaleZ":return[1,0,0,0,0,1,0,0,0,0,e.d[0].value,0,0,0,0,1];case"scale3d":return[e.d[0].value,0,0,0,0,e.d[1].value,0,0,0,0,e.d[2].value,0,0,0,0,1];case"skew":var u=Wo(Al(e.d[0])),d=Wo(Al(e.d[1]));return[1,Math.tan(d),0,0,Math.tan(u),1,0,0,0,0,1,0,0,0,0,1];case"skewX":return i=Wo(Al(e.d[0])),[1,0,0,0,Math.tan(i),1,0,0,0,0,1,0,0,0,0,1];case"skewY":return i=Wo(Al(e.d[0])),[1,Math.tan(i),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return t=yl(e.d[0],0,null)||0,n=yl(e.d[1],0,null)||0,[1,0,0,0,0,1,0,0,0,0,1,0,t,n,0,1];case"translateX":return t=yl(e.d[0],0,null)||0,[1,0,0,0,0,1,0,0,0,0,1,0,t,0,0,1];case"translateY":return n=yl(e.d[0],0,null)||0,[1,0,0,0,0,1,0,0,0,0,1,0,0,n,0,1];case"translateZ":return r=yl(e.d[0],0,null)||0,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,r,1];case"translate3d":return t=yl(e.d[0],0,null)||0,n=yl(e.d[1],0,null)||0,r=yl(e.d[2],0,null)||0,[1,0,0,0,0,1,0,0,0,0,1,0,t,n,r,1];case"perspective":var h=yl(e.d[0],0,null)||0,f=h?-1/h:0;return[1,0,0,0,0,1,0,0,0,0,1,f,0,0,0,1];case"matrix":return[e.d[0].value,e.d[1].value,0,0,e.d[2].value,e.d[3].value,0,0,0,0,1,0,e.d[4].value,e.d[5].value,0,1];case"matrix3d":return e.d.map(function(e){return e.value})}}function pc(e,t){return[e[0]*t[0]+e[4]*t[1]+e[8]*t[2]+e[12]*t[3],e[1]*t[0]+e[5]*t[1]+e[9]*t[2]+e[13]*t[3],e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]*t[3],e[3]*t[0]+e[7]*t[1]+e[11]*t[2]+e[15]*t[3],e[0]*t[4]+e[4]*t[5]+e[8]*t[6]+e[12]*t[7],e[1]*t[4]+e[5]*t[5]+e[9]*t[6]+e[13]*t[7],e[2]*t[4]+e[6]*t[5]+e[10]*t[6]+e[14]*t[7],e[3]*t[4]+e[7]*t[5]+e[11]*t[6]+e[15]*t[7],e[0]*t[8]+e[4]*t[9]+e[8]*t[10]+e[12]*t[11],e[1]*t[8]+e[5]*t[9]+e[9]*t[10]+e[13]*t[11],e[2]*t[8]+e[6]*t[9]+e[10]*t[10]+e[14]*t[11],e[3]*t[8]+e[7]*t[9]+e[11]*t[10]+e[15]*t[11],e[0]*t[12]+e[4]*t[13]+e[8]*t[14]+e[12]*t[15],e[1]*t[12]+e[5]*t[13]+e[9]*t[14]+e[13]*t[15],e[2]*t[12]+e[6]*t[13]+e[10]*t[14]+e[14]*t[15],e[3]*t[12]+e[7]*t[13]+e[11]*t[14]+e[15]*t[15]]}function gc(e){return 0===e.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:e.map(fc).reduce(pc)}function mc(e){var t=[0,0,0],n=[1,1,1],r=[0,0,0],i=[0,0,0,1],o=[0,0,0,1];return sa(gc(e),t,n,r,i,o),[[t,n,r,o,i]]}var vc=function(){function e(e,t){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=t[r][o]*e[o][i];return n}function t(e){return 0===e[0][2]&&0===e[0][3]&&0===e[1][2]&&0===e[1][3]&&0===e[2][0]&&0===e[2][1]&&1===e[2][2]&&0===e[2][3]&&0===e[3][2]&&1===e[3][3]}function n(n,r,i,o,a){for(var s=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],l=0;l<4;l++)s[l][3]=a[l];for(var c=0;c<3;c++)for(var u=0;u<3;u++)s[3][c]+=n[u]*s[u][c];var d=o[0],h=o[1],f=o[2],p=o[3],g=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];g[0][0]=1-2*(h*h+f*f),g[0][1]=2*(d*h-f*p),g[0][2]=2*(d*f+h*p),g[1][0]=2*(d*h+f*p),g[1][1]=1-2*(d*d+f*f),g[1][2]=2*(h*f-d*p),g[2][0]=2*(d*f-h*p),g[2][1]=2*(h*f+d*p),g[2][2]=1-2*(d*d+h*h),s=e(s,g);var m=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];i[2]&&(m[2][1]=i[2],s=e(s,m)),i[1]&&(m[2][1]=0,m[2][0]=i[0],s=e(s,m)),i[0]&&(m[2][0]=0,m[1][0]=i[0],s=e(s,m));for(var v=0;v<3;v++)for(var A=0;A<3;A++)s[v][A]*=r[v];return t(s)?[s[0][0],s[0][1],s[1][0],s[1][1],s[3][0],s[3][1]]:s[0].concat(s[1],s[2],s[3])}return n}();function Ac(e){return e.toFixed(6).replace(".000000","")}function bc(e,t){var n,r;return e.decompositionPair!==t&&(e.decompositionPair=t,n=mc(e)),t.decompositionPair!==e&&(t.decompositionPair=e,r=mc(t)),null===n[0]||null===r[0]?[[!1],[!0],function(n){return n?t[0].d:e[0].d}]:(n[0].push(0),r[0].push(1),[n,r,function(e){var t=wc(n[0][3],r[0][3],e[5]),i=vc(e[0],e[1],e[2],t,e[4]),o=i.map(Ac).join(",");return o}])}function yc(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*t[r];return n}function wc(e,t,n){var r=yc(e,t);r=fr(r,-1,1);var i=[];if(1===r)i=e;else for(var o=Math.acos(r),a=1*Math.sin(n*o)/Math.sqrt(1-r*r),s=0;s<4;s++)i.push(e[s]*(Math.cos(n*o)-r*a)+t[s]*a);return i}function _c(e){return e.replace(/[XY]/,"")}function xc(e){return e.replace(/(X|Y|Z|3d)?$/,"3d")}var Ec=function(e,t){return"perspective"===e&&"perspective"===t||("matrix"===e||"matrix3d"===e)&&("matrix"===t||"matrix3d"===t)};function Sc(e,t,n){var r=!1;if(!e.length||!t.length){e.length||(r=!0,e=t,t=[]);for(var i=function(){var n=e[o],r=n.t,i=n.d,a="scale"===r.substring(0,5)?1:0;t.push({t:r,d:i.map(function(e){return"number"===typeof e?Qs(a):Qs(a,e.unit)})})},o=0;o<e.length;o++)i()}var a=[],s=[],l=[];if(e.length!==t.length){var c=bc(e,t);a=[c[0]],s=[c[1]],l=[["matrix",[c[2]]]]}else for(var u=0;u<e.length;u++){var d=e[u].t,h=t[u].t,f=e[u].d,p=t[u].d,g=cc[d],m=cc[h],v=void 0;if(Ec(d,h)){var A=bc([e[u]],[t[u]]);a.push(A[0]),s.push(A[1]),l.push(["matrix",[A[2]]])}else{if(d===h)v=d;else if(g[2]&&m[2]&&_c(d)===_c(h))v=_c(d),f=g[2](f),p=m[2](p);else{if(!g[1]||!m[1]||xc(d)!==xc(h)){var b=bc(e,t);a=[b[0]],s=[b[1]],l=[["matrix",[b[2]]]];break}v=xc(d),f=g[1](f),p=m[1](p)}for(var y=[],w=[],_=[],x=0;x<f.length;x++){var E=vl(f[x],p[x],n,!1,x);y[x]=E[0],w[x]=E[1],_.push(E[2])}a.push(y),s.push(w),l.push([v,_])}}if(r){var S=a;a=s,s=S}return[a,s,function(e){return e.map(function(e,t){var n=e.map(function(e,n){return l[t][1][n](e)}).join(",");return"matrix"===l[t][0]&&16===n.split(",").length&&(l[t][0]="matrix3d"),"matrix3d"===l[t][0]&&6===n.split(",").length&&(l[t][0]="matrix"),"".concat(l[t][0],"(").concat(n,")")}).join(" ")}]}var Cc=ds(function(e){if(dr(e)){if("text-anchor"===e)return[Qs(0,"px"),Qs(0,"px")];var t=e.split(" ");return 1===t.length&&("top"===t[0]||"bottom"===t[0]?(t[1]=t[0],t[0]="center"):t[1]="center"),2!==t.length?null:[pl(Tc(t[0])),pl(Tc(t[1]))]}return[Qs(e[0]||0,"px"),Qs(e[1]||0,"px")]});function Tc(e){return"center"===e?"50%":"left"===e||"top"===e?"0%":"right"===e||"bottom"===e?"100%":e}var kc=[{n:"display",k:["none"]},{n:"opacity",int:!0,inh:!0,d:"1",syntax:Sa.OPACITY_VALUE},{n:"fillOpacity",int:!0,inh:!0,d:"1",syntax:Sa.OPACITY_VALUE},{n:"strokeOpacity",int:!0,inh:!0,d:"1",syntax:Sa.OPACITY_VALUE},{n:"fill",int:!0,k:["none"],d:"none",syntax:Sa.PAINT},{n:"fillRule",k:["nonzero","evenodd"],d:"nonzero"},{n:"stroke",int:!0,k:["none"],d:"none",syntax:Sa.PAINT,l:!0},{n:"shadowType",k:["inner","outer","both"],d:"outer",l:!0},{n:"shadowColor",int:!0,syntax:Sa.COLOR},{n:"shadowOffsetX",int:!0,l:!0,d:"0",syntax:Sa.LENGTH_PERCENTAGE},{n:"shadowOffsetY",int:!0,l:!0,d:"0",syntax:Sa.LENGTH_PERCENTAGE},{n:"shadowBlur",int:!0,l:!0,d:"0",syntax:Sa.SHADOW_BLUR},{n:"lineWidth",int:!0,inh:!0,d:"1",l:!0,a:["strokeWidth"],syntax:Sa.LENGTH_PERCENTAGE},{n:"increasedLineWidthForHitTesting",inh:!0,d:"0",l:!0,syntax:Sa.LENGTH_PERCENTAGE},{n:"lineJoin",inh:!0,l:!0,a:["strokeLinejoin"],k:["miter","bevel","round"],d:"miter"},{n:"lineCap",inh:!0,l:!0,a:["strokeLinecap"],k:["butt","round","square"],d:"butt"},{n:"lineDash",int:!0,inh:!0,k:["none"],a:["strokeDasharray"],syntax:Sa.LENGTH_PERCENTAGE_12},{n:"lineDashOffset",int:!0,inh:!0,d:"0",a:["strokeDashoffset"],syntax:Sa.LENGTH_PERCENTAGE},{n:"offsetPath",syntax:Sa.DEFINED_PATH},{n:"offsetDistance",int:!0,syntax:Sa.OFFSET_DISTANCE},{n:"dx",int:!0,l:!0,d:"0",syntax:Sa.LENGTH_PERCENTAGE},{n:"dy",int:!0,l:!0,d:"0",syntax:Sa.LENGTH_PERCENTAGE},{n:"zIndex",ind:!0,int:!0,d:"0",k:["auto"],syntax:Sa.Z_INDEX},{n:"visibility",k:["visible","hidden"],ind:!0,inh:!0,int:!0,d:"visible"},{n:"pointerEvents",inh:!0,k:["none","auto","stroke","fill","painted","visible","visiblestroke","visiblefill","visiblepainted","all"],d:"auto"},{n:"filter",ind:!0,l:!0,k:["none"],d:"none",syntax:Sa.FILTER},{n:"clipPath",syntax:Sa.DEFINED_PATH},{n:"textPath",syntax:Sa.DEFINED_PATH},{n:"textPathSide",k:["left","right"],d:"left"},{n:"textPathStartOffset",l:!0,d:"0",syntax:Sa.LENGTH_PERCENTAGE},{n:"transform",p:100,int:!0,k:["none"],d:"none",syntax:Sa.TRANSFORM},{n:"transformOrigin",p:100,d:"0 0",l:!0,syntax:Sa.TRANSFORM_ORIGIN},{n:"cx",int:!0,l:!0,d:"0",syntax:Sa.COORDINATE},{n:"cy",int:!0,l:!0,d:"0",syntax:Sa.COORDINATE},{n:"cz",int:!0,l:!0,d:"0",syntax:Sa.COORDINATE},{n:"r",int:!0,l:!0,d:"0",syntax:Sa.LENGTH_PERCENTAGE},{n:"rx",int:!0,l:!0,d:"0",syntax:Sa.LENGTH_PERCENTAGE},{n:"ry",int:!0,l:!0,d:"0",syntax:Sa.LENGTH_PERCENTAGE},{n:"x",int:!0,l:!0,d:"0",syntax:Sa.COORDINATE},{n:"y",int:!0,l:!0,d:"0",syntax:Sa.COORDINATE},{n:"z",int:!0,l:!0,d:"0",syntax:Sa.COORDINATE},{n:"width",int:!0,l:!0,k:["auto","fit-content","min-content","max-content"],d:"0",syntax:Sa.LENGTH_PERCENTAGE},{n:"height",int:!0,l:!0,k:["auto","fit-content","min-content","max-content"],d:"0",syntax:Sa.LENGTH_PERCENTAGE},{n:"radius",int:!0,l:!0,d:"0",syntax:Sa.LENGTH_PERCENTAGE_14},{n:"x1",int:!0,l:!0,syntax:Sa.COORDINATE},{n:"y1",int:!0,l:!0,syntax:Sa.COORDINATE},{n:"z1",int:!0,l:!0,syntax:Sa.COORDINATE},{n:"x2",int:!0,l:!0,syntax:Sa.COORDINATE},{n:"y2",int:!0,l:!0,syntax:Sa.COORDINATE},{n:"z2",int:!0,l:!0,syntax:Sa.COORDINATE},{n:"d",int:!0,l:!0,d:"",syntax:Sa.PATH,p:50},{n:"points",int:!0,l:!0,syntax:Sa.LIST_OF_POINTS,p:50},{n:"text",l:!0,d:"",syntax:Sa.TEXT,p:50},{n:"textTransform",l:!0,inh:!0,k:["capitalize","uppercase","lowercase","none"],d:"none",syntax:Sa.TEXT_TRANSFORM,p:51},{n:"font",l:!0},{n:"fontSize",int:!0,inh:!0,d:"16px",l:!0,syntax:Sa.LENGTH_PERCENTAGE},{n:"fontFamily",l:!0,inh:!0,d:"sans-serif"},{n:"fontStyle",l:!0,inh:!0,k:["normal","italic","oblique"],d:"normal"},{n:"fontWeight",l:!0,inh:!0,k:["normal","bold","bolder","lighter"],d:"normal"},{n:"fontVariant",l:!0,inh:!0,k:["normal","small-caps"],d:"normal"},{n:"lineHeight",l:!0,syntax:Sa.LENGTH,int:!0,d:"0"},{n:"letterSpacing",l:!0,syntax:Sa.LENGTH,int:!0,d:"0"},{n:"miterLimit",l:!0,syntax:Sa.NUMBER,d:function(e){return e===_o.PATH||e===_o.POLYGON||e===_o.POLYLINE?"4":"10"}},{n:"wordWrap",l:!0},{n:"wordWrapWidth",l:!0},{n:"maxLines",l:!0},{n:"textOverflow",l:!0,d:"clip"},{n:"leading",l:!0},{n:"textBaseline",l:!0,inh:!0,k:["top","hanging","middle","alphabetic","ideographic","bottom"],d:"alphabetic"},{n:"textAlign",l:!0,inh:!0,k:["start","center","middle","end","left","right"],d:"start"},{n:"markerStart",syntax:Sa.MARKER},{n:"markerEnd",syntax:Sa.MARKER},{n:"markerMid",syntax:Sa.MARKER},{n:"markerStartOffset",syntax:Sa.LENGTH,l:!0,int:!0,d:"0"},{n:"markerEndOffset",syntax:Sa.LENGTH,l:!0,int:!0,d:"0"}],Oc=new Set(kc.filter(function(e){return!!e.l}).map(function(e){return e.n})),Mc={},Ic=function(){function e(t){var n=this;$e(this,e),this.runtime=t,kc.forEach(function(e){n.registerMetadata(e)})}return Ue(e,[{key:"registerMetadata",value:function(e){[e.n].concat(Ke(e.a||[])).forEach(function(t){Mc[t]=e})}},{key:"getPropertySyntax",value:function(e){return this.runtime.CSSPropertySyntaxFactory[e]}},{key:"processProperties",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{skipUpdateAttribute:!1,skipParse:!1,forceUpdateGeometry:!1,usedAttributes:[],memoize:!0};Object.assign(e.attributes,t);var r=e.parsedStyle.clipPath,i=e.parsedStyle.offsetPath;Dc(e,t);var o=!!n.forceUpdateGeometry;if(!o)for(var a in t)if(Oc.has(a)){o=!0;break}var s=Nc(e);s.has("fill")&&t.fill&&(e.parsedStyle.fill=sl(t.fill)),s.has("stroke")&&t.stroke&&(e.parsedStyle.stroke=sl(t.stroke)),s.has("shadowColor")&&t.shadowColor&&(e.parsedStyle.shadowColor=sl(t.shadowColor)),s.has("filter")&&t.filter&&(e.parsedStyle.filter=xl(t.filter)),s.has("radius")&&!ur(t.radius)&&(e.parsedStyle.radius=bl(t.radius,4)),s.has("lineDash")&&!ur(t.lineDash)&&(e.parsedStyle.lineDash=bl(t.lineDash,"even")),s.has("points")&&t.points&&(e.parsedStyle.points=rc(t.points)),s.has("d")&&""===t.d&&(e.parsedStyle.d=(0,Fe.A)({},Ea)),s.has("d")&&t.d&&(e.parsedStyle.d=tc(t.d)),s.has("textTransform")&&t.textTransform&&this.runtime.CSSPropertySyntaxFactory[Sa.TEXT_TRANSFORM].calculator(null,null,{value:t.textTransform},e,null),s.has("clipPath")&&!Si(t.clipPath)&&this.runtime.CSSPropertySyntaxFactory[Sa.DEFINED_PATH].calculator("clipPath",r,t.clipPath,e,this.runtime),s.has("offsetPath")&&t.offsetPath&&this.runtime.CSSPropertySyntaxFactory[Sa.DEFINED_PATH].calculator("offsetPath",i,t.offsetPath,e,this.runtime),s.has("transform")&&t.transform&&(e.parsedStyle.transform=dc(t.transform)),s.has("transformOrigin")&&t.transformOrigin&&(e.parsedStyle.transformOrigin=Cc(t.transformOrigin)),s.has("markerStart")&&t.markerStart&&(e.parsedStyle.markerStart=this.runtime.CSSPropertySyntaxFactory[Sa.MARKER].calculator(null,t.markerStart,t.markerStart,null,null)),s.has("markerEnd")&&t.markerEnd&&(e.parsedStyle.markerEnd=this.runtime.CSSPropertySyntaxFactory[Sa.MARKER].calculator(null,t.markerEnd,t.markerEnd,null,null)),s.has("markerMid")&&t.markerMid&&(e.parsedStyle.markerMid=this.runtime.CSSPropertySyntaxFactory[Sa.MARKER].calculator("",t.markerMid,t.markerMid,null,null)),s.has("zIndex")&&!ur(t.zIndex)&&this.runtime.CSSPropertySyntaxFactory[Sa.Z_INDEX].postProcessor(e),s.has("offsetDistance")&&!ur(t.offsetDistance)&&this.runtime.CSSPropertySyntaxFactory[Sa.OFFSET_DISTANCE].postProcessor(e),s.has("transform")&&t.transform&&this.runtime.CSSPropertySyntaxFactory[Sa.TRANSFORM].postProcessor(e),s.has("transformOrigin")&&t.transformOrigin&&this.runtime.CSSPropertySyntaxFactory[Sa.TRANSFORM_ORIGIN].postProcessor(e),o&&(e.geometry.dirty=!0,e.dirty(!0,!0),n.forceUpdateGeometry||this.runtime.sceneGraphService.dirtyToRoot(e))}},{key:"updateGeometry",value:function(e){var t=e.nodeName,n=this.runtime.geometryUpdaterFactory[t];if(n){var r=e.geometry;r.contentBounds||(r.contentBounds=new Do),r.renderBounds||(r.renderBounds=new Do);var i=e.parsedStyle,o=n.update(i,e),a=o.cx,s=void 0===a?0:a,l=o.cy,c=void 0===l?0:l,u=o.cz,d=void 0===u?0:u,h=o.hwidth,f=void 0===h?0:h,p=o.hheight,g=void 0===p?0:p,m=o.hdepth,v=void 0===m?0:m,A=[Math.abs(f),Math.abs(g),v],b=i.stroke,y=i.lineWidth,w=void 0===y?1:y,_=i.increasedLineWidthForHitTesting,x=void 0===_?0:_,E=i.shadowType,S=void 0===E?"outer":E,C=i.shadowColor,T=i.filter,k=void 0===T?[]:T,O=i.transformOrigin,M=[s,c,d];r.contentBounds.update(M,A);var I=t===_o.POLYLINE||t===_o.POLYGON||t===_o.PATH?Math.SQRT2:.5,D=b&&!b.isNone;if(D){var N=((w||0)+(x||0))*I;A[0]+=N,A[1]+=N}if(r.renderBounds.update(M,A),C&&S&&"inner"!==S){var R=r.renderBounds,L=R.min,B=R.max,P=i.shadowBlur,F=i.shadowOffsetX,$=i.shadowOffsetY,j=P||0,H=F||0,U=$||0,Q=L[0]-j+H,z=B[0]+j+H,W=L[1]-j+U,G=B[1]+j+U;L[0]=Math.min(L[0],Q),B[0]=Math.max(B[0],z),L[1]=Math.min(L[1],W),B[1]=Math.max(B[1],G),r.renderBounds.setMinMax(L,B)}k.forEach(function(e){var t=e.name,n=e.params;if("blur"===t){var i=n[0].value;r.renderBounds.update(r.renderBounds.center,At(r.renderBounds.halfExtents,r.renderBounds.halfExtents,[i,i,0]))}else if("drop-shadow"===t){var o=n[0].value,a=n[1].value,s=n[2].value,l=r.renderBounds,c=l.min,u=l.max,d=c[0]-s+o,h=u[0]+s+o,f=c[1]-s+a,p=u[1]+s+a;c[0]=Math.min(c[0],d),u[0]=Math.max(u[0],h),c[1]=Math.min(c[1],f),u[1]=Math.max(u[1],p),r.renderBounds.setMinMax(c,u)}}),e.geometry.dirty=!1;var V=f<0,K=g<0,Y=(V?-1:1)*(O?yl(O[0],0,e,!0):0),q=(K?-1:1)*(O?yl(O[1],1,e,!0):0);(Y||q)&&e.setOrigin(Y,q)}}},{key:"updateSizeAttenuation",value:function(e,t){e.style.isSizeAttenuation?(e.style.rawLineWidth||(e.style.rawLineWidth=e.style.lineWidth),e.style.lineWidth=(e.style.rawLineWidth||1)/t,e.nodeName===_o.CIRCLE&&(e.style.rawR||(e.style.rawR=e.style.r),e.style.r=(e.style.rawR||1)/t)):(e.style.rawLineWidth&&(e.style.lineWidth=e.style.rawLineWidth,delete e.style.rawLineWidth),e.nodeName===_o.CIRCLE&&e.style.rawR&&(e.style.r=e.style.rawR,delete e.style.rawR))}}])}();function Dc(e,t){var n=Nc(e);for(var r in t)n.has(r)&&(e.parsedStyle[r]=t[r])}function Nc(e){return e.constructor.PARSED_STYLE_LIST}var Rc=function(){function e(){$e(this,e),this.mixer=Tl}return Ue(e,[{key:"calculator",value:function(e,t,n,r){return Al(n)}}])}(),Lc=function(){function e(){$e(this,e)}return Ue(e,[{key:"calculator",value:function(e,t,n,r,i){return n instanceof ks&&(n=null),i.sceneGraphService.updateDisplayObjectDependency(e,t,n,r),"clipPath"===e&&r.forEach(function(e){0===e.childNodes.length&&i.sceneGraphService.dirtyToRoot(e)}),n}}])}(),Bc=function(){function e(){$e(this,e),this.parser=sl,this.mixer=ll}return Ue(e,[{key:"calculator",value:function(e,t,n,r){return n instanceof ks?"none"===n.value?js:Hs:n}}])}(),Pc=function(){function e(){$e(this,e)}return Ue(e,[{key:"calculator",value:function(e,t,n){return n instanceof ks?[]:n}}])}();function Fc(e){var t=e.parsedStyle,n=t.fontSize;return ur(n)?null:n}var $c=function(){function e(){$e(this,e),this.mixer=Tl}return Ue(e,[{key:"calculator",value:function(e,t,n,r,i){if(lr(n))return n;if(!Is.isRelativeUnit(n.unit))return n.value;if(n.unit===hs.kPercentage)return 0;if(n.unit===hs.kEms){if(r.parentNode){var o=Fc(r.parentNode);if(o)return o*=n.value,o}return 0}if(n.unit===hs.kRems){var a;if(null!==r&&void 0!==r&&null!==(a=r.ownerDocument)&&void 0!==a&&a.documentElement){var s=Fc(r.ownerDocument.documentElement);if(s)return s*=n.value,s}return 0}}}])}(),jc=function(){function e(){$e(this,e),this.mixer=Ol}return Ue(e,[{key:"calculator",value:function(e,t,n){return n.map(function(e){return e.value})}}])}(),Hc=function(){function e(){$e(this,e),this.mixer=Ol}return Ue(e,[{key:"calculator",value:function(e,t,n){return n.map(function(e){return e.value})}}])}(),Uc=function(){function e(){$e(this,e)}return Ue(e,[{key:"calculator",value:function(e,t,n,r){var i;n instanceof ks&&(n=null);var o=null===(i=n)||void 0===i?void 0:i.cloneNode(!0);return o&&(o.style.isMarker=!0),o}}])}(),Qc=function(){function e(){$e(this,e),this.mixer=Tl}return Ue(e,[{key:"calculator",value:function(e,t,n){return n.value}}])}(),zc=function(){function e(){$e(this,e),this.mixer=kl(0,1)}return Ue(e,[{key:"calculator",value:function(e,t,n){return n.value}},{key:"postProcessor",value:function(e){var t=e.parsedStyle,n=t.offsetPath,r=t.offsetDistance;if(n){var i=n.nodeName;if(i===_o.LINE||i===_o.PATH||i===_o.POLYLINE){var o=n.getPoint(r);o&&e.setLocalPosition(o.x,o.y)}}}}])}(),Wc=function(){function e(){$e(this,e),this.mixer=kl(0,1)}return Ue(e,[{key:"calculator",value:function(e,t,n){return n.value}}])}(),Gc=function(){function e(){$e(this,e),this.parser=tc,this.mixer=nc}return Ue(e,[{key:"calculator",value:function(e,t,n){return n instanceof ks&&"unset"===n.value?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Po(0,0,0,0)}:n}}])}(),Vc=Ue(function e(){$e(this,e),this.mixer=ic}),Kc=function(e){function t(){var e;$e(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=et(this,t,[].concat(r)),e.mixer=kl(0,1/0),e}return nt(t,e),Ue(t)}($c),Yc=function(){function e(){$e(this,e)}return Ue(e,[{key:"calculator",value:function(e,t,n,r){return n instanceof ks?"unset"===n.value?"":n.value:"".concat(n)}},{key:"postProcessor",value:function(e){e.nodeValue="".concat(e.parsedStyle.text)||""}}])}(),qc=function(){function e(){$e(this,e)}return Ue(e,[{key:"calculator",value:function(e,t,n,r){var i=r.getAttribute("text");if(i){var o=i;"capitalize"===n.value?o=i.charAt(0).toUpperCase()+i.slice(1):"lowercase"===n.value?o=i.toLowerCase():"uppercase"===n.value&&(o=i.toUpperCase()),r.parsedStyle.text=o}return n.value}}])}(),Xc=new WeakMap;function Jc(e,t,n){if(e){var r="string"===typeof e?document.getElementById(e):e;Xc.has(r)&&Xc.get(r).destroy(n),Xc.set(r,t)}}var Zc="undefined"!==typeof window&&"undefined"!==typeof window.document;function eu(e){return!!e.getAttribute}function tu(e,t){var n=0,r=e.length;while(n<r){var i=n+r>>>1;nu(e[i],t)<0?n=i+1:r=i}return n}function nu(e,t){var n=Number(e.parsedStyle.zIndex||0),r=Number(t.parsedStyle.zIndex||0);if(n===r){var i=e.parentNode;if(i){var o=i.childNodes||[];return o.indexOf(e)-o.indexOf(t)}}return n-r}function ru(e){var t=e;do{var n,r=null===(n=t.parsedStyle)||void 0===n?void 0:n.clipPath;if(r)return t;t=t.parentElement}while(null!==t);return null}var iu="px";function ou(e,t,n){Zc&&e.style&&(e.style.width=t+iu,e.style.height=n+iu)}function au(e,t){if(Zc)return document.defaultView.getComputedStyle(e,null).getPropertyValue(t)}function su(e){var t=au(e,"width");return"auto"===t?e.offsetWidth:parseFloat(t)}function lu(e){var t=au(e,"height");return"auto"===t?e.offsetHeight:parseFloat(t)}var cu=1,uu={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},du="object"===typeof performance&&performance.now?performance:Date;function hu(e){return e.nodeName===_o.FRAGMENT||e.getRootNode().nodeName===_o.FRAGMENT}function fu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=!1,i=!1,o=!!t&&!t.isNone,a=!!n&&!n.isNone;return"visiblepainted"===e||"painted"===e||"auto"===e?(r=o,i=a):"visiblefill"===e||"fill"===e?r=!0:"visiblestroke"===e||"stroke"===e?i=!0:"visible"!==e&&"all"!==e||(r=!0,i=!0),[r,i]}var pu=1,gu=function(){return pu++},mu="object"===typeof self&&self.self===self?self:"object"===typeof n.g&&n.g.global===n.g?n.g:{},vu=Date.now(),Au=function(){return mu.performance&&"function"===typeof mu.performance.now?mu.performance.now():Date.now()-vu},bu={},yu=Date.now(),wu=function(e){if("function"!==typeof e)throw new TypeError("".concat(e," is not a function"));var t=Date.now(),n=t-yu,r=n>16?0:16-n,i=gu();return bu[i]=e,Object.keys(bu).length>1||setTimeout(function(){yu=t;var e=bu;bu={},Object.keys(e).forEach(function(t){return e[t](Au())})},r),i},_u=function(e){delete bu[e]},xu=["","webkit","moz","ms","o"],Eu=function(e){return"string"!==typeof e?wu:""===e?mu.requestAnimationFrame:mu["".concat(e,"RequestAnimationFrame")]},Su=function(e){return"string"!==typeof e?_u:""===e?mu.cancelAnimationFrame:mu["".concat(e,"CancelAnimationFrame")]||mu["".concat(e,"CancelRequestAnimationFrame")]},Cu=function(e,t){var n=0;while(void 0!==e[n]){if(t(e[n]))return e[n];n+=1}},Tu=Cu(xu,function(e){return!!Eu(e)}),ku=Eu(Tu),Ou=Su(Tu);mu.requestAnimationFrame=ku,mu.cancelAnimationFrame=Ou;var Mu=function(){function e(){$e(this,e),this.callbacks=[]}return Ue(e,[{key:"getCallbacksNum",value:function(){return this.callbacks.length}},{key:"tapPromise",value:function(e,t){this.callbacks.push(t)}},{key:"promise",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Promise.all(this.callbacks.map(function(e){return e.apply(void 0,t)}))}}])}(),Iu=function(){function e(){$e(this,e),this.callbacks=[]}return Ue(e,[{key:"tapPromise",value:function(e,t){this.callbacks.push(t)}},{key:"promise",value:function(){var e=mo(po().mark(function e(){var t,n,r,i,o=arguments;return po().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!this.callbacks.length){e.next=6;break}return e.next=1,(t=this.callbacks)[0].apply(t,o);case 1:n=e.sent,r=0;case 2:if(!(r<this.callbacks.length-1)){e.next=5;break}return i=this.callbacks[r],e.next=3,i(n);case 3:n=e.sent;case 4:r++,e.next=2;break;case 5:return e.abrupt("return",n);case 6:return e.abrupt("return",null);case 7:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()}])}(),Du=function(){function e(){$e(this,e),this.callbacks=[]}return Ue(e,[{key:"tap",value:function(e,t){this.callbacks.push(t)}},{key:"call",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=arguments;this.callbacks.forEach(function(e){e.apply(void 0,r)})}}])}(),Nu=function(){function e(){$e(this,e),this.callbacks=[]}return Ue(e,[{key:"tap",value:function(e,t){this.callbacks.push(t)}},{key:"call",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this.callbacks.length){for(var r=arguments,i=this.callbacks[0].apply(void 0,r),o=0;o<this.callbacks.length-1;o++){var a=this.callbacks[o];i=a(i)}return i}return null}}])}(),Ru=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],Lu=/([\"\'])[^\'\"]+\1/;function Bu(e){var t=e.fontSize,n=void 0===t?16:t,r=e.fontFamily,i=void 0===r?"sans-serif":r,o=e.fontStyle,a=void 0===o?"normal":o,s=e.fontVariant,l=void 0===s?"normal":s,c=e.fontWeight,u=void 0===c?"normal":c;return{fontSize:n,fontFamily:i,fontStyle:a,fontVariant:l,fontWeight:u}}var Pu=ds(function(e){for(var t=Bu(e),n=t.fontSize,r=t.fontFamily,i=t.fontStyle,o=t.fontVariant,a=t.fontWeight,s=lr(n)&&"".concat(n,"px")||"16px",l=r.split(","),c=l.length-1;c>=0;c--){var u=l[c].trim();!Lu.test(u)&&Ru.indexOf(u)<0&&(u='"'.concat(u,'"')),l[c]=u}return"".concat(i," ").concat(o," ").concat(a," ").concat(s," ").concat(l.join(","))},function(e){var t=Bu(e),n=t.fontSize,r=t.fontFamily,i=t.fontStyle,o=t.fontVariant,a=t.fontWeight;return"".concat(i,"_").concat(o,"_").concat(a,"_").concat(n,"_").concat(r)}),Fu=1e-6,$u=function(e){return Math.max(e,Fu)};function ju(e,t,n){return Vt(e),e[4]=Math.tan(t),e[1]=Math.tan(n),e}var Hu=Ut(),Uu=Ut(),Qu={scale:function(e){sn(Hu,[e[0].value,e[1].value,1].map(function(e){return $u(e)}))},scaleX:function(e){sn(Hu,[e[0].value,1,1].map(function(e){return $u(e)}))},scaleY:function(e){sn(Hu,[1,e[0].value,1].map(function(e){return $u(e)}))},scaleZ:function(e){sn(Hu,[1,1,e[0].value].map(function(e){return $u(e)}))},scale3d:function(e){sn(Hu,[e[0].value,e[1].value,e[2].value].map(function(e){return $u(e)}))},translate:function(e){an(Hu,[e[0].value,e[1].value,0])},translateX:function(e){an(Hu,[e[0].value,0,0])},translateY:function(e){an(Hu,[0,e[0].value,0])},translateZ:function(e){an(Hu,[0,0,e[0].value])},translate3d:function(e){an(Hu,[e[0].value,e[1].value,e[2].value])},rotate:function(e){dn(Hu,Wo(Al(e[0])))},rotateX:function(e){cn(Hu,Wo(Al(e[0])))},rotateY:function(e){un(Hu,Wo(Al(e[0])))},rotateZ:function(e){dn(Hu,Wo(Al(e[0])))},rotate3d:function(e){ln(Hu,Wo(Al(e[3])),[e[0].value,e[1].value,e[2].value])},skew:function(e){ju(Hu,Wo(e[0].value),Wo(e[1].value))},skewX:function(e){ju(Hu,Wo(e[0].value),0)},skewY:function(e){ju(Hu,0,Wo(e[0].value))},matrix:function(e){Gt(Hu,e[0].value,e[1].value,0,0,e[2].value,e[3].value,0,0,0,0,1,0,e[4].value,e[5].value,0,1)},matrix3d:function(e){Gt.apply(r,[Hu].concat(Ke(e.map(function(e){return e.value}))))}},zu=gt(1,1,1),Wu=ht(),Gu={translate:function(e,t){nh.sceneGraphService.setLocalScale(e,zu,!1),nh.sceneGraphService.setLocalEulerAngles(e,Wu,void 0,void 0,!1),nh.sceneGraphService.setLocalPosition(e,[t[0].value,t[1].value,0],!1),nh.sceneGraphService.dirtyLocalTransform(e,e.transformable)}};function Vu(e,t){if(e.length){if(1===e.length&&Gu[e[0].t])return void Gu[e[0].t](t,e[0].d);for(var n=Vt(Uu),r=0;r<e.length;r++){var i=e[r],o=i.t,a=i.d,s=Qu[o];s&&(s(a),$n(n,n,Hu))}t.setLocalTransform(n)}else t.resetLocalTransform();return t.getLocalTransform()}var Ku=function(){function e(){$e(this,e),this.parser=hc,this.mixer=Sc}return Ue(e,[{key:"calculator",value:function(e,t,n,r){return n instanceof ks?[]:n}},{key:"postProcessor",value:function(e){Vu(e.parsedStyle.transform,e)}}])}(),Yu=function(){function e(){$e(this,e)}return Ue(e,[{key:"postProcessor",value:function(e){var t=e.parsedStyle.transformOrigin;t[0].unit===hs.kPixels&&t[1].unit===hs.kPixels?e.setOrigin(t[0].value,t[1].value):e.getGeometryBounds()}}])}(),qu=function(){function e(){$e(this,e)}return Ue(e,[{key:"calculator",value:function(e,t,n,r){return n.value}},{key:"postProcessor",value:function(e){if(e.parentNode){var t=e.parentNode,n=t.renderable,r=t.sortable;n&&t.dirty(),r&&(r.dirty=!0,r.dirtyReason=Aa.Z_INDEX_CHANGED)}}}])}(),Xu=function(){function e(){$e(this,e)}return Ue(e,[{key:"update",value:function(e,t){var n=e.cx,r=void 0===n?0:n,i=e.cy,o=void 0===i?0:i,a=e.r,s=void 0===a?0:a;return{cx:r,cy:o,hwidth:s,hheight:s}}}])}(),Ju=function(){function e(){$e(this,e)}return Ue(e,[{key:"update",value:function(e,t){var n=e.cx,r=void 0===n?0:n,i=e.cy,o=void 0===i?0:i,a=e.rx,s=void 0===a?0:a,l=e.ry,c=void 0===l?0:l;return{cx:r,cy:o,hwidth:s,hheight:c}}}])}(),Zu=function(){function e(){$e(this,e)}return Ue(e,[{key:"update",value:function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2,o=Math.min(t,r),a=Math.max(t,r),s=Math.min(n,i),l=Math.max(n,i),c=a-o,u=l-s,d=c/2,h=u/2;return{cx:o+d,cy:s+h,hwidth:d,hheight:h}}}])}(),ed=function(){function e(){$e(this,e)}return Ue(e,[{key:"update",value:function(e){var t=e.d,n=t.rect,r=n.x,i=n.y,o=n.width,a=n.height,s=o/2,l=a/2;return{cx:r+s,cy:i+l,hwidth:s,hheight:l}}}])}(),td=function(){function e(){$e(this,e)}return Ue(e,[{key:"update",value:function(e){if(e.points&&S(e.points.points)){var t=e.points.points,n=Math.min.apply(Math,Ke(t.map(function(e){return e[0]}))),r=Math.max.apply(Math,Ke(t.map(function(e){return e[0]}))),i=Math.min.apply(Math,Ke(t.map(function(e){return e[1]}))),o=Math.max.apply(Math,Ke(t.map(function(e){return e[1]}))),a=r-n,s=o-i,l=a/2,c=s/2;return{cx:n+l,cy:i+c,hwidth:l,hheight:c}}return{cx:0,cy:0,hwidth:0,hheight:0}}}])}(),nd=function(){function e(){$e(this,e)}return Ue(e,[{key:"update",value:function(e,t){var n=e.x,r=void 0===n?0:n,i=e.y,o=void 0===i?0:i,a=e.src,s=e.width,l=void 0===s?0:s,c=e.height,u=void 0===c?0:c,d=l,h=u;return a&&!dr(a)&&(d||(d=a.width,e.width=d),h||(h=a.height,e.height=h)),{cx:r+d/2,cy:o+h/2,hwidth:d/2,hheight:h/2}}}])}(),rd=function(){function e(t){$e(this,e),this.globalRuntime=t}return Ue(e,[{key:"isReadyToMeasure",value:function(e,t){var n=e.text;return n}},{key:"update",value:function(e,t){var n,r=e.text,i=e.textAlign,o=void 0===i?"start":i,a=e.lineWidth,s=void 0===a?1:a,l=e.textBaseline,c=void 0===l?"alphabetic":l,u=e.dx,d=void 0===u?0:u,h=e.dy,f=void 0===h?0:h,p=e.x,g=void 0===p?0:p,m=e.y,v=void 0===m?0:m;if(!this.isReadyToMeasure(e,t))return e.metrics={font:"",width:0,height:0,lines:[],lineWidths:[],lineHeight:0,maxLineWidth:0,fontProperties:{ascent:0,descent:0,fontSize:0},lineMetrics:[]},{hwidth:0,hheight:0,cx:0,cy:0};var A=(null===t||void 0===t||null===(n=t.ownerDocument)||void 0===n||null===(n=n.defaultView)||void 0===n?void 0:n.getConfig())||{},b=A.offscreenCanvas,y=this.globalRuntime.textService.measureText(r,e,b);e.metrics=y;var w=y.width,_=y.height,x=w/2,E=_/2,S=g+x;"center"===o||"middle"===o?S+=s/2-x:"right"!==o&&"end"!==o||(S+=s-2*x);var C=v-E;return"middle"===c?C+=E:"top"===c||"hanging"===c?C+=2*E:"alphabetic"===c||"bottom"!==c&&"ideographic"!==c||(C+=0),d&&(S+=d),f&&(C+=f),{cx:S,cy:C,hwidth:x,hheight:E}}}])}(),id=function(){function e(){$e(this,e)}return Ue(e,[{key:"update",value:function(e,t){return{cx:0,cy:0,hwidth:0,hheight:0}}}])}(),od=function(){function e(){$e(this,e)}return Ue(e,[{key:"update",value:function(e,t){var n=e.x,r=void 0===n?0:n,i=e.y,o=void 0===i?0:i,a=e.width,s=void 0===a?0:a,l=e.height,c=void 0===l?0:l;return{cx:r+s/2,cy:o+c/2,hwidth:s/2,hheight:c/2}}}])}();var ad=function(){function e(t){$e(this,e),this.eventPhase=e.prototype.NONE,this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.defaultPrevented=!1,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new Bo,this.page=new Bo,this.canvas=new Bo,this.viewport=new Bo,this.composed=!1,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=t}return Ue(e,[{key:"name",get:function(){return this.type}},{key:"layerX",get:function(){return this.layer.x}},{key:"layerY",get:function(){return this.layer.y}},{key:"pageX",get:function(){return this.page.x}},{key:"pageY",get:function(){return this.page.y}},{key:"x",get:function(){return this.canvas.x}},{key:"y",get:function(){return this.canvas.y}},{key:"canvasX",get:function(){return this.canvas.x}},{key:"canvasY",get:function(){return this.canvas.y}},{key:"viewportX",get:function(){return this.viewport.x}},{key:"viewportY",get:function(){return this.viewport.y}},{key:"composedPath",value:function(){return!this.manager||this.path&&this.path[0]===this.target||(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path}},{key:"propagationPath",get:function(){return this.composedPath()}},{key:"preventDefault",value:function(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0}},{key:"stopImmediatePropagation",value:function(){this.propagationImmediatelyStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"initEvent",value:function(){}},{key:"initUIEvent",value:function(){}},{key:"clone",value:function(){throw new Error(Fo)}}])}(),sd=function(e){function t(){var e;$e(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=et(this,t,[].concat(r)),e.client=new Bo,e.movement=new Bo,e.offset=new Bo,e.global=new Bo,e.screen=new Bo,e}return nt(t,e),Ue(t,[{key:"clientX",get:function(){return this.client.x}},{key:"clientY",get:function(){return this.client.y}},{key:"movementX",get:function(){return this.movement.x}},{key:"movementY",get:function(){return this.movement.y}},{key:"offsetX",get:function(){return this.offset.x}},{key:"offsetY",get:function(){return this.offset.y}},{key:"globalX",get:function(){return this.global.x}},{key:"globalY",get:function(){return this.global.y}},{key:"screenX",get:function(){return this.screen.x}},{key:"screenY",get:function(){return this.screen.y}},{key:"getModifierState",value:function(e){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(e)}},{key:"initMouseEvent",value:function(){throw new Error(Fo)}}])}(ad),ld=function(e){function t(){var e;$e(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=et(this,t,[].concat(r)),e.width=0,e.height=0,e.isPrimary=!1,e}return nt(t,e),Ue(t,[{key:"getCoalescedEvents",value:function(){return"pointermove"===this.type||"mousemove"===this.type||"touchmove"===this.type?[this]:[]}},{key:"getPredictedEvents",value:function(){throw new Error("getPredictedEvents is not supported!")}},{key:"clone",value:function(){return this.manager.clonePointerEvent(this)}}])}(sd),cd=function(e){function t(){return $e(this,t),et(this,t,arguments)}return nt(t,e),Ue(t,[{key:"clone",value:function(){return this.manager.cloneWheelEvent(this)}}])}(sd),ud=function(e){function t(e,n){var r;return $e(this,t),r=et(this,t,[null]),r.type=e,r.detail=n,Object.assign(r,n),r}return nt(t,e),Ue(t)}(ad),dd=function(){function e(){$e(this,e),this.emitter=new lt}return Ue(e,[{key:"on",value:function(e,t,n){return this.addEventListener(e,t,n),this}},{key:"addEventListener",value:function(e,t,n){var r=!1,i=!1;if(Ti(n))r=n;else if(n){var o=n.capture;r=void 0!==o&&o;var a=n.once;i=void 0!==a&&a}r&&(e+="capture"),t=ki(t)?t:t.handleEvent;var s=ki(t)?void 0:t;return i?this.emitter.once(e,t,s):this.emitter.on(e,t,s),this}},{key:"off",value:function(e,t,n){return e?this.removeEventListener(e,t,n):this.removeAllEventListeners(),this}},{key:"removeAllEventListeners",value:function(){var e;null===(e=this.emitter)||void 0===e||e.removeAllListeners()}},{key:"removeEventListener",value:function(e,t,n){var r;if(!this.emitter)return this;var i=Ti(n)?n:null===n||void 0===n?void 0:n.capture;i&&(e+="capture"),t=ki(t)?t:null===(r=t)||void 0===r?void 0:r.handleEvent;var o=ki(t)?void 0:t;return this.emitter.off(e,t,o),this}},{key:"emit",value:function(e,t){this.dispatchEvent(new ud(e,t))}},{key:"dispatchEventToSelf",value:function(e){e.target||(e.target=this),e.currentTarget=this,this.emitter.emit(e.type,e)}},{key:"dispatchEvent",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0;if(r)return this.dispatchEventToSelf(e),!0;if(this.document)t=this;else if(this.defaultView)t=this.defaultView;else{var i;t=null===(i=this.ownerDocument)||void 0===i?void 0:i.defaultView}if(t){if(e.manager=t.getEventService(),!e.manager)return!1;e.defaultPrevented=!1,e.path?e.path.length=0:e.page=[],n||(e.target=this),e.manager.dispatchEvent(e,e.type,n)}else this.dispatchEventToSelf(e);return!e.defaultPrevented}}])}(),hd=function(e){function t(){var e;$e(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=et(this,t,[].concat(r)),e.shadow=!1,e.ownerDocument=null,e.isConnected=!1,e.baseURI="",e.childNodes=[],e.nodeType=0,e.nodeName="",e.nodeValue=null,e.parentNode=null,e.destroyed=!1,e}return nt(t,e),Ue(t,[{key:"textContent",get:function(){var e="";this.nodeName===_o.TEXT&&(e+=this.style.text);var t,n=vo(this.childNodes);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.nodeName===_o.TEXT?e+=r.nodeValue:e+=r.textContent}}catch(i){n.e(i)}finally{n.f()}return e},set:function(e){var t=this;this.childNodes.slice().forEach(function(e){t.removeChild(e)}),this.nodeName===_o.TEXT&&(this.style.text="".concat(e))}},{key:"getRootNode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.parentNode?this.parentNode.getRootNode(e):e.composed&&this.host?this.host.getRootNode(e):this}},{key:"hasChildNodes",value:function(){return this.childNodes.length>0}},{key:"isDefaultNamespace",value:function(e){throw new Error(Fo)}},{key:"lookupNamespaceURI",value:function(e){throw new Error(Fo)}},{key:"lookupPrefix",value:function(e){throw new Error(Fo)}},{key:"normalize",value:function(){throw new Error(Fo)}},{key:"isEqualNode",value:function(e){return this===e}},{key:"isSameNode",value:function(e){return this.isEqualNode(e)}},{key:"parent",get:function(){return this.parentNode}},{key:"parentElement",get:function(){return null}},{key:"nextSibling",get:function(){return null}},{key:"previousSibling",get:function(){return null}},{key:"firstChild",get:function(){return this.childNodes.length>0?this.childNodes[0]:null}},{key:"lastChild",get:function(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null}},{key:"compareDocumentPosition",value:function(e){if(e===this)return 0;var n=e,r=this,i=[n],o=[r];while(null!==(a=n.parentNode)&&void 0!==a?a:r.parentNode){var a;n=n.parentNode?(i.push(n.parentNode),n.parentNode):n,r=r.parentNode?(o.push(r.parentNode),r.parentNode):r}if(n!==r)return t.DOCUMENT_POSITION_DISCONNECTED|t.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|t.DOCUMENT_POSITION_PRECEDING;var s=i.length>o.length?i:o,l=s===i?o:i;if(s[s.length-l.length]===l[0])return s===i?t.DOCUMENT_POSITION_CONTAINED_BY|t.DOCUMENT_POSITION_FOLLOWING:t.DOCUMENT_POSITION_CONTAINS|t.DOCUMENT_POSITION_PRECEDING;for(var c=s.length-l.length,u=l.length-1;u>=0;u--){var d=l[u],h=s[c+u];if(h!==d){var f=d.parentNode.childNodes;return f.indexOf(d)<f.indexOf(h)?l===i?t.DOCUMENT_POSITION_PRECEDING:t.DOCUMENT_POSITION_FOLLOWING:s===i?t.DOCUMENT_POSITION_PRECEDING:t.DOCUMENT_POSITION_FOLLOWING}}return t.DOCUMENT_POSITION_FOLLOWING}},{key:"contain",value:function(e){return this.contains(e)}},{key:"contains",value:function(e){var t=e;while(t&&this!==t)t=t.parentNode;return!!t}},{key:"getAncestor",value:function(e){var t=this;while(e>0&&t)t=t.parentNode,e--;return t}},{key:"forEach",value:function(e){var t=[this];while(t.length>0){var n=t.pop(),r=e(n);if(!1===r)break;for(var i=n.childNodes.length-1;i>=0;i--)t.push(n.childNodes[i])}}}],[{key:"isNode",value:function(e){return!!e.childNodes}}])}(dd);hd.DOCUMENT_POSITION_DISCONNECTED=1,hd.DOCUMENT_POSITION_PRECEDING=2,hd.DOCUMENT_POSITION_FOLLOWING=4,hd.DOCUMENT_POSITION_CONTAINS=8,hd.DOCUMENT_POSITION_CONTAINED_BY=16,hd.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;var fd=2048,pd=function(){function e(t,n){var r=this;$e(this,e),this.nativeHTMLMap=new WeakMap,this.cursor="default",this.mappingTable={},this.mappingState={trackingData:{}},this.eventPool=new Map,this.tmpMatrix=Ut(),this.tmpVec3=ht(),this.onPointerDown=function(e){var t=r.createPointerEvent(e);if(r.dispatchEvent(t,"pointerdown"),"touch"===t.pointerType)r.dispatchEvent(t,"touchstart");else if("mouse"===t.pointerType||"pen"===t.pointerType){var n=2===t.button;r.dispatchEvent(t,n?"rightdown":"mousedown")}var i=r.trackingData(e.pointerId);i.pressTargetsByButton[e.button]=t.composedPath(),r.freeEvent(t)},this.onPointerUp=function(e){var t=du.now(),n=r.createPointerEvent(e,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);if(r.dispatchEvent(n,"pointerup"),"touch"===n.pointerType)r.dispatchEvent(n,"touchend");else if("mouse"===n.pointerType||"pen"===n.pointerType){var i=2===n.button;r.dispatchEvent(n,i?"rightup":"mouseup")}var o=r.trackingData(e.pointerId),a=r.findMountedTarget(o.pressTargetsByButton[e.button]),s=a;if(a&&!n.composedPath().includes(a)){var l=a;while(l&&!n.composedPath().includes(l)){if(n.currentTarget=l,r.notifyTarget(n,"pointerupoutside"),"touch"===n.pointerType)r.notifyTarget(n,"touchendoutside");else if("mouse"===n.pointerType||"pen"===n.pointerType){var c=2===n.button;r.notifyTarget(n,c?"rightupoutside":"mouseupoutside")}hd.isNode(l)&&(l=l.parentNode)}delete o.pressTargetsByButton[e.button],s=l}if(s){var u,d=r.clonePointerEvent(n,"click");d.target=s,d.path=[],o.clicksByButton[e.button]||(o.clicksByButton[e.button]={clickCount:0,target:d.target,timeStamp:t});var h=r.context.renderingContext.root.ownerDocument.defaultView,f=o.clicksByButton[e.button];f.target===d.target&&t-f.timeStamp<h.getConfig().dblClickSpeed?++f.clickCount:f.clickCount=1,f.target=d.target,f.timeStamp=t,d.detail=f.clickCount,null!==(u=n.detail)&&void 0!==u&&u.preventClick||(r.context.config.useNativeClickEvent||"mouse"!==d.pointerType&&"touch"!==d.pointerType||r.dispatchEvent(d,"click"),r.dispatchEvent(d,"pointertap")),r.freeEvent(d)}r.freeEvent(n)},this.onPointerMove=function(e){var t=r.createPointerEvent(e,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0),n="mouse"===t.pointerType||"pen"===t.pointerType,i=r.trackingData(e.pointerId),o=r.findMountedTarget(i.overTargets);if(i.overTargets&&o!==t.target){var a="mousemove"===e.type?"mouseout":"pointerout",s=r.createPointerEvent(e,a,o||void 0);if(r.dispatchEvent(s,"pointerout"),n&&r.dispatchEvent(s,"mouseout"),!t.composedPath().includes(o)){var l=r.createPointerEvent(e,"pointerleave",o||void 0);l.eventPhase=l.AT_TARGET;while(l.target&&!t.composedPath().includes(l.target))l.currentTarget=l.target,r.notifyTarget(l),n&&r.notifyTarget(l,"mouseleave"),hd.isNode(l.target)&&(l.target=l.target.parentNode);r.freeEvent(l)}r.freeEvent(s)}if(o!==t.target){var c="mousemove"===e.type?"mouseover":"pointerover",u=r.clonePointerEvent(t,c);r.dispatchEvent(u,"pointerover"),n&&r.dispatchEvent(u,"mouseover");var d=o&&hd.isNode(o)&&o.parentNode;while(d&&d!==(hd.isNode(r.rootTarget)&&r.rootTarget.parentNode)){if(d===t.target)break;d=d.parentNode}var h=!d||d===(hd.isNode(r.rootTarget)&&r.rootTarget.parentNode);if(h){var f=r.clonePointerEvent(t,"pointerenter");f.eventPhase=f.AT_TARGET;while(f.target&&f.target!==o&&f.target!==(hd.isNode(r.rootTarget)&&r.rootTarget.parentNode))f.currentTarget=f.target,r.notifyTarget(f),n&&r.notifyTarget(f,"mouseenter"),hd.isNode(f.target)&&(f.target=f.target.parentNode);r.freeEvent(f)}r.freeEvent(u)}r.dispatchEvent(t,"pointermove"),"touch"===t.pointerType&&r.dispatchEvent(t,"touchmove"),n&&(r.dispatchEvent(t,"mousemove"),r.cursor=r.getCursor(t.target)),i.overTargets=t.composedPath(),r.freeEvent(t)},this.onPointerOut=function(e){var t=r.trackingData(e.pointerId);if(t.overTargets){var n="mouse"===e.pointerType||"pen"===e.pointerType,i=r.findMountedTarget(t.overTargets),o=r.createPointerEvent(e,"pointerout",i||void 0);r.dispatchEvent(o),n&&r.dispatchEvent(o,"mouseout");var a=r.createPointerEvent(e,"pointerleave",i||void 0);a.eventPhase=a.AT_TARGET;while(a.target&&a.target!==(hd.isNode(r.rootTarget)&&r.rootTarget.parentNode))a.currentTarget=a.target,r.notifyTarget(a),n&&r.notifyTarget(a,"mouseleave"),hd.isNode(a.target)&&(a.target=a.target.parentNode);t.overTargets=null,r.freeEvent(o),r.freeEvent(a)}r.cursor=null},this.onPointerOver=function(e){var t=r.trackingData(e.pointerId),n=r.createPointerEvent(e),i="mouse"===n.pointerType||"pen"===n.pointerType;r.dispatchEvent(n,"pointerover"),i&&r.dispatchEvent(n,"mouseover"),"mouse"===n.pointerType&&(r.cursor=r.getCursor(n.target));var o=r.clonePointerEvent(n,"pointerenter");o.eventPhase=o.AT_TARGET;while(o.target&&o.target!==(hd.isNode(r.rootTarget)&&r.rootTarget.parentNode))o.currentTarget=o.target,r.notifyTarget(o),i&&r.notifyTarget(o,"mouseenter"),hd.isNode(o.target)&&(o.target=o.target.parentNode);t.overTargets=n.composedPath(),r.freeEvent(n),r.freeEvent(o)},this.onPointerUpOutside=function(e){var t=r.trackingData(e.pointerId),n=r.findMountedTarget(t.pressTargetsByButton[e.button]),i=r.createPointerEvent(e);if(n){var o=n;while(o)i.currentTarget=o,r.notifyTarget(i,"pointerupoutside"),"touch"===i.pointerType||"mouse"!==i.pointerType&&"pen"!==i.pointerType||r.notifyTarget(i,2===i.button?"rightupoutside":"mouseupoutside"),hd.isNode(o)&&(o=o.parentNode);delete t.pressTargetsByButton[e.button]}r.freeEvent(i)},this.onWheel=function(e){var t=r.createWheelEvent(e);r.dispatchEvent(t),r.freeEvent(t)},this.onClick=function(e){if(r.context.config.useNativeClickEvent){var t=r.createPointerEvent(e);r.dispatchEvent(t),r.freeEvent(t)}},this.onPointerCancel=function(e){var t=r.createPointerEvent(e,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);r.dispatchEvent(t),r.freeEvent(t)},this.globalRuntime=t,this.context=n}return Ue(e,[{key:"init",value:function(){this.rootTarget=this.context.renderingContext.root.parentNode,this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointercancel",this.onPointerCancel),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel),this.addEventMapping("click",this.onClick)}},{key:"destroy",value:function(){this.mappingTable={},this.mappingState={},this.eventPool.clear()}},{key:"getScale",value:function(){var e=this.context.contextService.getBoundingClientRect(),t=1,n=1,r=this.context.contextService.getDomElement();if(r&&e){var i=r.offsetWidth,o=r.offsetHeight;i&&o&&(t=e.width/i,n=e.height/o)}return{scaleX:t,scaleY:n,bbox:e}}},{key:"client2Viewport",value:function(e){var t=this.getScale(),n=t.scaleX,r=t.scaleY,i=t.bbox;return new Bo((e.x-((null===i||void 0===i?void 0:i.left)||0))/n,(e.y-((null===i||void 0===i?void 0:i.top)||0))/r)}},{key:"viewport2Client",value:function(e){var t=this.getScale(),n=t.scaleX,r=t.scaleY,i=t.bbox;return new Bo((e.x+((null===i||void 0===i?void 0:i.left)||0))*n,(e.y+((null===i||void 0===i?void 0:i.top)||0))*r)}},{key:"viewport2Canvas",value:function(e){var t=e.x,n=e.y,r=this.rootTarget.defaultView,i=r.getCamera(),o=this.context.config,a=o.width,s=o.height,l=i.getPerspectiveInverse(),c=i.getWorldTransform(),u=Jt(this.tmpMatrix,c,l),d=vt(this.tmpVec3,t/a*2-1,2*(1-n/s)-1,0);return Ot(d,d,u),new Bo(d[0],d[1])}},{key:"canvas2Viewport",value:function(e){var t=this.rootTarget.defaultView,n=t.getCamera(),r=n.getPerspective(),i=n.getViewTransform(),o=Jt(this.tmpMatrix,r,i),a=vt(this.tmpVec3,e.x,e.y,0);Ot(this.tmpVec3,this.tmpVec3,o);var s=this.context.config,l=s.width,c=s.height;return new Bo((a[0]+1)/2*l,(1-(a[1]+1)/2)*c)}},{key:"setPickHandler",value:function(e){this.pickHandler=e}},{key:"addEventMapping",value:function(e,t){this.mappingTable[e]||(this.mappingTable[e]=[]),this.mappingTable[e].push({fn:t,priority:0}),this.mappingTable[e].sort(function(e,t){return e.priority-t.priority})}},{key:"mapEvent",value:function(e){if(this.rootTarget){var t=this.mappingTable[e.type];if(t)for(var n=0,r=t.length;n<r;n++)t[n].fn(e);else console.warn("[EventService]: Event mapping not defined for ".concat(e.type))}}},{key:"dispatchEvent",value:function(e,t,n){if(n){e.eventPhase=e.AT_TARGET;var r=this.rootTarget.defaultView||null;e.currentTarget=r,this.notifyListeners(e,t)}else e.propagationStopped=!1,e.propagationImmediatelyStopped=!1,this.propagate(e,t)}},{key:"propagate",value:function(e,t){if(e.target){var n=e.composedPath();e.eventPhase=e.CAPTURING_PHASE;for(var r=n.length-1;r>=1;r--)if(e.currentTarget=n[r],this.notifyTarget(e,t),e.propagationStopped||e.propagationImmediatelyStopped)return;if(e.eventPhase=e.AT_TARGET,e.currentTarget=e.target,this.notifyTarget(e,t),!e.propagationStopped&&!e.propagationImmediatelyStopped){var i=n.indexOf(e.currentTarget);e.eventPhase=e.BUBBLING_PHASE;for(var o=i+1;o<n.length;o++)if(e.currentTarget=n[o],this.notifyTarget(e,t),e.propagationStopped||e.propagationImmediatelyStopped)return}}}},{key:"propagationPath",value:function(e){var t=[e],n=this.rootTarget.defaultView||null;if(n&&n===e)return t.unshift(n.document),t;for(var r=0;r<fd&&e!==this.rootTarget;r++)hd.isNode(e)&&e.parentNode&&(t.push(e.parentNode),e=e.parentNode);return n&&t.push(n),t}},{key:"hitTest",value:function(e){var t=e.viewportX,n=e.viewportY,r=this.context.config,i=r.width,o=r.height,a=r.disableHitTesting;return t<0||n<0||t>i||n>o?null:!a&&this.pickHandler(e)||this.rootTarget||null}},{key:"isNativeEventFromCanvas",value:function(e,t){var n,r=null===t||void 0===t?void 0:t.target;if(null!==(n=r)&&void 0!==n&&n.shadowRoot&&(r=t.composedPath()[0]),r){if(r===e)return!0;if(e&&e.contains)return e.contains(r)}return!(null===t||void 0===t||!t.composedPath)&&t.composedPath().indexOf(e)>-1}},{key:"getExistedHTML",value:function(e){if(e.nativeEvent.composedPath)for(var t=0,n=e.nativeEvent.composedPath();t<n.length;t++){var r=n[t],i=this.nativeHTMLMap.get(r);if(i)return i}return null}},{key:"pickTarget",value:function(e){return this.hitTest({clientX:e.clientX,clientY:e.clientY,viewportX:e.viewportX,viewportY:e.viewportY,x:e.canvasX,y:e.canvasY})}},{key:"createPointerEvent",value:function(e,t,n,r){var i=this.allocateEvent(ld);this.copyPointerData(e,i),this.copyMouseData(e,i),this.copyData(e,i),i.nativeEvent=e.nativeEvent,i.originalEvent=e;var o=this.getExistedHTML(i),a=this.context.contextService.getDomElement();return i.target=null!==n&&void 0!==n?n:o||this.isNativeEventFromCanvas(a,i.nativeEvent)&&this.pickTarget(i)||r,"string"===typeof t&&(i.type=t),i}},{key:"createWheelEvent",value:function(e){var t=this.allocateEvent(cd);this.copyWheelData(e,t),this.copyMouseData(e,t),this.copyData(e,t),t.nativeEvent=e.nativeEvent,t.originalEvent=e;var n=this.getExistedHTML(t),r=this.context.contextService.getDomElement();return t.target=n||this.isNativeEventFromCanvas(r,t.nativeEvent)&&this.pickTarget(t),t}},{key:"trackingData",value:function(e){return this.mappingState.trackingData[e]||(this.mappingState.trackingData[e]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[e]}},{key:"cloneWheelEvent",value:function(e){var t=this.allocateEvent(cd);return t.nativeEvent=e.nativeEvent,t.originalEvent=e.originalEvent,this.copyWheelData(e,t),this.copyMouseData(e,t),this.copyData(e,t),t.target=e.target,t.path=e.composedPath().slice(),t.type=e.type,t}},{key:"clonePointerEvent",value:function(e,t){var n=this.allocateEvent(ld);return n.nativeEvent=e.nativeEvent,n.originalEvent=e.originalEvent,this.copyPointerData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.target=e.target,n.path=e.composedPath().slice(),n.type=null!==t&&void 0!==t?t:n.type,n}},{key:"copyPointerData",value:function(e,t){t.pointerId=e.pointerId,t.width=e.width,t.height=e.height,t.isPrimary=e.isPrimary,t.pointerType=e.pointerType,t.pressure=e.pressure,t.tangentialPressure=e.tangentialPressure,t.tiltX=e.tiltX,t.tiltY=e.tiltY,t.twist=e.twist}},{key:"copyMouseData",value:function(e,t){t.altKey=e.altKey,t.button=e.button,t.buttons=e.buttons,t.ctrlKey=e.ctrlKey,t.metaKey=e.metaKey,t.shiftKey=e.shiftKey,t.client.copyFrom(e.client),t.movement.copyFrom(e.movement),t.canvas.copyFrom(e.canvas),t.screen.copyFrom(e.screen),t.global.copyFrom(e.global),t.offset.copyFrom(e.offset)}},{key:"copyWheelData",value:function(e,t){t.deltaMode=e.deltaMode,t.deltaX=e.deltaX,t.deltaY=e.deltaY,t.deltaZ=e.deltaZ}},{key:"copyData",value:function(e,t){t.isTrusted=e.isTrusted,t.timeStamp=du.now(),t.type=e.type,t.detail=e.detail,t.view=e.view,t.page.copyFrom(e.page),t.viewport.copyFrom(e.viewport)}},{key:"allocateEvent",value:function(e){this.eventPool.has(e)||this.eventPool.set(e,[]);var t=this.eventPool.get(e).pop()||new e(this);return t.eventPhase=t.NONE,t.currentTarget=null,t.path=[],t.target=null,t}},{key:"freeEvent",value:function(e){if(e.manager!==this)throw new Error("It is illegal to free an event not managed by this EventBoundary!");var t=e.constructor;this.eventPool.has(t)||this.eventPool.set(t,[]),this.eventPool.get(t).push(e)}},{key:"notifyTarget",value:function(e,t){t=null!==t&&void 0!==t?t:e.type;var n=e.eventPhase===e.CAPTURING_PHASE||e.eventPhase===e.AT_TARGET?"".concat(t,"capture"):t;this.notifyListeners(e,n),e.eventPhase===e.AT_TARGET&&this.notifyListeners(e,t)}},{key:"notifyListeners",value:function(e,t){var n=e.currentTarget.emitter,r=n._events[t];if(r)if("fn"in r)r.once&&n.removeListener(t,r.fn,void 0,!0),r.fn.call(e.currentTarget||r.context,e);else for(var i=0;i<r.length&&!e.propagationImmediatelyStopped;i++)r[i].once&&n.removeListener(t,r[i].fn,void 0,!0),r[i].fn.call(e.currentTarget||r[i].context,e)}},{key:"findMountedTarget",value:function(e){if(!e)return null;for(var t=e[e.length-1],n=e.length-2;n>=0;n--){var r=e[n];if(!(r===this.rootTarget||hd.isNode(r)&&r.parentNode===t))break;t=e[n]}return t}},{key:"getCursor",value:function(e){var t=e;while(t){var n=eu(t)&&t.getAttribute("cursor");if(n)return n;t=hd.isNode(t)&&t.parentNode}}}])}(),gd=function(){function e(){$e(this,e)}return Ue(e,[{key:"getOrCreateCanvas",value:function(e,t){if(this.canvas)return this.canvas;if(e||nh.offscreenCanvas)this.canvas=e||nh.offscreenCanvas,this.context=this.canvas.getContext("2d",(0,Fe.A)({willReadFrequently:!0},t));else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d",(0,Fe.A)({willReadFrequently:!0},t)),this.context&&this.context.measureText||(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch(n){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",(0,Fe.A)({willReadFrequently:!0},t))}return this.canvas.width=10,this.canvas.height=10,this.canvas}},{key:"getOrCreateContext",value:function(e,t){return this.context||this.getOrCreateCanvas(e,t),this.context}}],[{key:"createCanvas",value:function(){try{return new window.OffscreenCanvas(0,0)}catch(e){}try{return document.createElement("canvas")}catch(t){}return null}}])}(),md=function(e){return e[e["CAMERA_CHANGED"]=0]="CAMERA_CHANGED",e[e["DISPLAY_OBJECT_CHANGED"]=1]="DISPLAY_OBJECT_CHANGED",e[e["NONE"]=2]="NONE",e}({}),vd=function(){function e(t,n){$e(this,e),this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.hooks={init:new Du,initAsync:new Mu,dirtycheck:new Nu,cull:new Nu,beginFrame:new Du,beforeRender:new Du,render:new Du,afterRender:new Du,endFrame:new Du,destroy:new Du,pick:new Iu,pickSync:new Nu,pointerDown:new Du,pointerUp:new Du,pointerMove:new Du,pointerOut:new Du,pointerOver:new Du,pointerWheel:new Du,pointerCancel:new Du,click:new Du},this.globalRuntime=t,this.context=n}return Ue(e,[{key:"init",value:function(e){var t=this,n=(0,Fe.A)((0,Fe.A)({},this.globalRuntime),this.context);this.context.renderingPlugins.forEach(function(e){e.apply(n,t.globalRuntime)}),this.hooks.init.call(),0===this.hooks.initAsync.getCallbacksNum()?(this.inited=!0,e()):this.hooks.initAsync.promise().then(function(){t.inited=!0,e()})["catch"](function(e){})}},{key:"getStats",value:function(){return this.stats}},{key:"disableDirtyRectangleRendering",value:function(){var e=this.context.config.renderer,t=e.getConfig(),n=t.enableDirtyRectangleRendering;return!n||this.context.renderingContext.renderReasons.has(md.CAMERA_CHANGED)}},{key:"render",value:function(e,t,n){var r=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0;var i=this.context.renderingContext;if(this.globalRuntime.sceneGraphService.syncHierarchy(i.root),this.globalRuntime.sceneGraphService.triggerPendingEvents(),i.renderReasons.size&&this.inited){i.dirtyRectangleRenderingDisabled=this.disableDirtyRectangleRendering();var o=1===i.renderReasons.size&&i.renderReasons.has(md.CAMERA_CHANGED),a=!e.disableRenderHooks||!o;a&&this.renderDisplayObject(i.root,e,i),this.hooks.beginFrame.call(t),a&&i.renderListCurrentFrame.forEach(function(e){r.hooks.beforeRender.call(e),r.hooks.render.call(e),r.hooks.afterRender.call(e)}),this.hooks.endFrame.call(t),i.renderListCurrentFrame=[],i.renderReasons.clear(),n()}}},{key:"renderDisplayObject",value:function(e,t,n){var r=this,i=t.renderer.getConfig(),o=i.enableDirtyCheck,a=i.enableCulling;function s(e){var t=e.renderable,i=e.sortable,s=o?t.dirty||n.dirtyRectangleRenderingDisabled?e:null:e,l=null;s&&(l=a?r.hooks.cull.call(s,r.context.camera):s,l&&(r.stats.rendered+=1,n.renderListCurrentFrame.push(l))),e.dirty(!1),i.renderOrder=r.zIndexCounter,r.zIndexCounter+=1,r.stats.total+=1,i.dirty&&(r.sort(e,i),i.dirty=!1,i.dirtyChildren=[],i.dirtyReason=void 0)}var l=[e];while(l.length>0){var c,u=l.pop();s(u);for(var d=(null===(c=u.sortable)||void 0===c||null===(c=c.sorted)||void 0===c?void 0:c.length)>0?u.sortable.sorted:u.childNodes,h=d.length-1;h>=0;h--)l.push(d[h])}}},{key:"sort",value:function(e,t){var n,r;(null===t||void 0===t||null===(n=t.sorted)||void 0===n?void 0:n.length)>0&&t.dirtyReason!==Aa.Z_INDEX_CHANGED?t.dirtyChildren.forEach(function(n){var r=t.sorted.indexOf(n);r>-1&&t.sorted.splice(r,1);var i=e.childNodes.indexOf(n);if(i>-1)if(0===t.sorted.length)t.sorted.push(n);else{var o=tu(t.sorted,n);t.sorted.splice(o,0,n)}}):t.sorted=e.childNodes.slice().sort(nu),(null===(r=t.sorted)||void 0===r?void 0:r.length)>0&&0===e.childNodes.filter(function(e){return e.parsedStyle.zIndex}).length&&(t.sorted=[])}},{key:"destroy",value:function(){this.inited=!1,this.hooks.destroy.call(),this.globalRuntime.sceneGraphService.clearPendingEvents()}},{key:"dirtify",value:function(){this.context.renderingContext.renderReasons.add(md.DISPLAY_OBJECT_CHANGED)}}])}(),Ad=/\[\s*(.*)=(.*)\s*\]/,bd=function(){function e(){$e(this,e)}return Ue(e,[{key:"selectOne",value:function(e,t){var n=this;if(e.startsWith("."))return t.find(function(t){return((null===t||void 0===t?void 0:t.classList)||[]).indexOf(n.getIdOrClassname(e))>-1});if(e.startsWith("#"))return t.find(function(t){return t.id===n.getIdOrClassname(e)});if(e.startsWith("[")){var r=this.getAttribute(e),i=r.name,o=r.value;return i?t.find(function(e){return t!==e&&("name"===i?e.name===o:n.attributeToString(e,i)===o)}):null}return t.find(function(n){return t!==n&&n.nodeName===e})}},{key:"selectAll",value:function(e,t){var n=this;if(e.startsWith("."))return t.findAll(function(r){return t!==r&&((null===r||void 0===r?void 0:r.classList)||[]).indexOf(n.getIdOrClassname(e))>-1});if(e.startsWith("#"))return t.findAll(function(r){return t!==r&&r.id===n.getIdOrClassname(e)});if(e.startsWith("[")){var r=this.getAttribute(e),i=r.name,o=r.value;return i?t.findAll(function(e){return t!==e&&("name"===i?e.name===o:n.attributeToString(e,i)===o)}):[]}return t.findAll(function(n){return t!==n&&n.nodeName===e})}},{key:"is",value:function(e,t){if(e.startsWith("."))return t.className===this.getIdOrClassname(e);if(e.startsWith("#"))return t.id===this.getIdOrClassname(e);if(e.startsWith("[")){var n=this.getAttribute(e),r=n.name,i=n.value;return"name"===r?t.name===i:this.attributeToString(t,r)===i}return t.nodeName===e}},{key:"getIdOrClassname",value:function(e){return e.substring(1)}},{key:"getAttribute",value:function(e){var t=e.match(Ad),n="",r="";return t&&t.length>2&&(n=t[1].replace(/"/g,""),r=t[2].replace(/"/g,"")),{name:n,value:r}}},{key:"attributeToString",value:function(e,t){if(!e.getAttribute)return"";var n=e.getAttribute(t);return ur(n)?"":n.toString?n.toString():""}}])}(),yd=function(e){return e["ATTR_MODIFIED"]="DOMAttrModified",e["INSERTED"]="DOMNodeInserted",e["MOUNTED"]="DOMNodeInsertedIntoDocument",e["REMOVED"]="removed",e["UNMOUNTED"]="DOMNodeRemovedFromDocument",e["REPARENT"]="reparent",e["DESTROY"]="destroy",e["BOUNDS_CHANGED"]="bounds-changed",e["CULLED"]="culled",e}({}),wd=function(e){function t(e,n,r,i,o,a,s,l){var c;return $e(this,t),c=et(this,t,[null]),c.relatedNode=n,c.prevValue=r,c.newValue=i,c.attrName=o,c.attrChange=a,c.prevParsedValue=s,c.newParsedValue=l,c.type=e,c}return nt(t,e),Ue(t)}(ad);wd.ADDITION=2,wd.MODIFICATION=1,wd.REMOVAL=3;var _d=new wd(yd.REPARENT,null,"","","",0,"",""),xd=nr(),Ed=ht(),Sd=gt(1,1,1),Cd=Ut(),Td=nr(),kd=ht(),Od=Ut(),Md=zn(),Id=ht(),Dd=zn(),Nd=ht(),Rd=ht(),Ld=ht(),Bd=Ut(),Pd=zn(),Fd=zn(),$d=zn(),jd={affectChildren:!0},Hd=function(){function e(t){$e(this,e),this.pendingEvents=new Map,this.boundsChangedEvent=new ud(yd.BOUNDS_CHANGED),this.displayObjectDependencyMap=new WeakMap,this.runtime=t}return Ue(e,[{key:"matches",value:function(e,t){return this.runtime.sceneGraphSelector.is(e,t)}},{key:"querySelector",value:function(e,t){return this.runtime.sceneGraphSelector.selectOne(e,t)}},{key:"querySelectorAll",value:function(e,t){return this.runtime.sceneGraphSelector.selectAll(e,t)}},{key:"attach",value:function(e,t,n){var r,i=!1;e.parentNode&&(i=e.parentNode!==t,this.detach(e));var o=e.nodeName===_o.FRAGMENT,a=hu(t);e.parentNode=t;var s=o?e.childNodes:[e];lr(n)?s.forEach(function(e){t.childNodes.splice(n,0,e),e.parentNode=t}):s.forEach(function(e){t.childNodes.push(e),e.parentNode=t});var l=t,c=l.sortable;if((null!==c&&void 0!==c&&null!==(r=c.sorted)&&void 0!==r&&r.length||c.dirty||e.parsedStyle.zIndex)&&(-1===c.dirtyChildren.indexOf(e)&&c.dirtyChildren.push(e),c.dirty=!0,c.dirtyReason=Aa.ADDED),!a){if(o)this.dirtifyFragment(e);else{var u=e.transformable;u&&this.dirtyWorldTransform(e,u)}if(i){var d,h=!0===(null===(d=t.ownerDocument)||void 0===d||null===(d=d.defaultView)||void 0===d||null===(d=d.getConfig())||void 0===d||null===(d=d.future)||void 0===d?void 0:d.experimentalCancelEventPropagation);e.dispatchEvent(_d,h,h)}}}},{key:"detach",value:function(e){var t,n;if(e.parentNode){var r=e.transformable,i=e.parentNode,o=i.sortable;(null!==o&&void 0!==o&&null!==(t=o.sorted)&&void 0!==t&&t.length||null!==(n=e.style)&&void 0!==n&&n.zIndex)&&(-1===o.dirtyChildren.indexOf(e)&&o.dirtyChildren.push(e),o.dirty=!0,o.dirtyReason=Aa.REMOVED);var a=e.parentNode.childNodes.indexOf(e);a>-1&&e.parentNode.childNodes.splice(a,1),r&&this.dirtyWorldTransform(e,r),e.parentNode=null}}},{key:"getLocalPosition",value:function(e){return e.transformable.localPosition}},{key:"getLocalRotation",value:function(e){return e.transformable.localRotation}},{key:"getLocalScale",value:function(e){return e.transformable.localScale}},{key:"getLocalSkew",value:function(e){return e.transformable.localSkew}},{key:"getLocalTransform",value:function(e){var t=e.transformable;return _a(t),t.localTransform}},{key:"setLocalPosition",value:function(e,t){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=e.transformable;Rd[0]=t[0],Rd[1]=t[1],Rd[2]=null!==(n=t[2])&&void 0!==n?n:0,Dt(i.localPosition,Rd)||(mt(i.localPosition,Rd),r&&this.dirtyLocalTransform(e,i))}},{key:"translateLocal",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;"number"===typeof t&&(t=gt(t,n,r));var i=e.transformable;Dt(t,Ed)||(It(t,t,i.localRotation),At(i.localPosition,i.localPosition,t),this.dirtyLocalTransform(e,i))}},{key:"setLocalRotation",value:function(e,t,n,r,i){var o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];"number"===typeof t&&(t=Zn(Md,t,n,r,i));var a=e.transformable;Jn(a.localRotation,t),o&&this.dirtyLocalTransform(e,a)}},{key:"rotateLocal",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;"number"===typeof t&&(t=gt(t,n,r));var i=e.transformable;qn(Fd,t[0],t[1],t[2]),er(i.localRotation,i.localRotation,Fd),this.dirtyLocalTransform(e,i)}},{key:"setLocalScale",value:function(e,t){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=e.transformable;vt(kd,t[0],t[1],null!==(n=t[2])&&void 0!==n?n:i.localScale[2]),Dt(kd,i.localScale)||(mt(i.localScale,kd),r&&this.dirtyLocalTransform(e,i))}},{key:"scaleLocal",value:function(e,t){var n,r=e.transformable;yt(r.localScale,r.localScale,vt(kd,t[0],t[1],null!==(n=t[2])&&void 0!==n?n:1)),this.dirtyLocalTransform(e,r)}},{key:"setLocalSkew",value:function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];"number"===typeof t&&(t=ir(Td,t,n));var i=e.transformable;rr(i.localSkew,t),r&&this.dirtyLocalTransform(e,i)}},{key:"setLocalEulerAngles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];"number"===typeof t&&(t=gt(t,n,r));var o=e.transformable;qn(o.localRotation,t[0],t[1],t[2]),i&&this.dirtyLocalTransform(e,o)}},{key:"setLocalTransform",value:function(e,t){var n=pn(Id,t),r=mn(Dd,t),i=gn(Nd,t);this.setLocalScale(e,i,!1),this.setLocalPosition(e,n,!1),this.setLocalRotation(e,r,void 0,void 0,void 0,!1),this.dirtyLocalTransform(e,e.transformable)}},{key:"resetLocalTransform",value:function(e){this.setLocalScale(e,Sd,!1),this.setLocalPosition(e,Ed,!1),this.setLocalEulerAngles(e,Ed,void 0,void 0,!1),this.setLocalSkew(e,xd,void 0,!1),this.dirtyLocalTransform(e,e.transformable)}},{key:"getPosition",value:function(e){var t=e.transformable;return pn(t.position,this.getWorldTransform(e,t))}},{key:"getRotation",value:function(e){var t=e.transformable;return mn(t.rotation,this.getWorldTransform(e,t))}},{key:"getScale",value:function(e){var t=e.transformable;return gn(t.scaling,this.getWorldTransform(e,t))}},{key:"getOrigin",value:function(e){return e.getGeometryBounds(),e.transformable.origin}},{key:"getWorldTransform",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.transformable;return t.localDirtyFlag||t.dirtyFlag?(e.parentNode&&e.parentNode.transformable&&this.getWorldTransform(e.parentNode),this.internalUpdateTransform(e),t.worldTransform):t.worldTransform}},{key:"setPosition",value:function(e,t){var n,r=e.transformable;if(Ld[0]=t[0],Ld[1]=t[1],Ld[2]=null!==(n=t[2])&&void 0!==n?n:0,!Dt(this.getPosition(e),Ld)){if(mt(r.position,Ld),null!==e.parentNode&&e.parentNode.transformable){var i=e.parentNode.transformable;zt(Bd,i.worldTransform),Yt(Bd,Bd),Ot(r.localPosition,Ld,Bd)}else mt(r.localPosition,Ld);this.dirtyLocalTransform(e,r)}}},{key:"translate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;"number"===typeof t&&(t=vt(kd,t,n,r)),Dt(t,Ed)||(At(kd,this.getPosition(e),t),this.setPosition(e,kd))}},{key:"setRotation",value:function(e,t,n,r,i){var o=e.transformable;if("number"===typeof t&&(t=Xn(t,n,r,i)),null!==e.parentNode&&e.parentNode.transformable){var a=this.getRotation(e.parentNode);Jn(Md,a),Kn(Md,Md),Gn(o.localRotation,Md,t),tr(o.localRotation,o.localRotation),this.dirtyLocalTransform(e,o)}else this.setLocalRotation(e,t)}},{key:"rotate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;"number"===typeof t&&(t=gt(t,n,r));var i=e.transformable;if(null!==e.parentNode&&e.parentNode.transformable){var o=Md;qn(o,t[0],t[1],t[2]);var a=this.getRotation(e),s=this.getRotation(e.parentNode);Jn($d,s),Kn($d,$d),Gn(o,$d,o),Gn(i.localRotation,o,a),tr(i.localRotation,i.localRotation),this.dirtyLocalTransform(e,i)}else this.rotateLocal(e,t)}},{key:"setOrigin",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;"number"===typeof t&&(t=[t,n,r]);var i=e.transformable;if(t[0]!==i.origin[0]||t[1]!==i.origin[1]||t[2]!==i.origin[2]){var o=i.origin;o[0]=t[0],o[1]=t[1],o[2]=t[2]||0,this.dirtyLocalTransform(e,i)}}},{key:"setEulerAngles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;"number"===typeof t&&(t=gt(t,n,r));var i=e.transformable;if(null!==e.parentNode&&e.parentNode.transformable){qn(i.localRotation,t[0],t[1],t[2]);var o=this.getRotation(e.parentNode);Jn(Pd,Kn(Md,o)),er(i.localRotation,i.localRotation,Pd),this.dirtyLocalTransform(e,i)}else this.setLocalEulerAngles(e,t)}},{key:"getTransformedGeometryBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=this.getGeometryBounds(e,t);if(!Do.isEmpty(r)){var i=n||new Do;return i.setFromTransformedAABB(r,this.getWorldTransform(e)),i}return null}},{key:"getGeometryBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e,r=n.geometry;r.dirty&&nh.styleValueRegistry.updateGeometry(e);var i=t?r.renderBounds:r.contentBounds||null;return i||new Do}},{key:"getBounds",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e,i=r.renderable;if(!i.boundsDirty&&!n&&i.bounds)return i.bounds;if(!i.renderBoundsDirty&&n&&i.renderBounds)return i.renderBounds;var o=n?i.renderBounds:i.bounds,a=this.getTransformedGeometryBounds(e,n,o),s=e.childNodes;if(s.forEach(function(e){var r=t.getBounds(e,n);r&&(a?a.add(r):(a=o||new Do,a.update(r.center,r.halfExtents)))}),a||(a=new Do),n){var l=ru(e);if(l){var c=l.parsedStyle.clipPath.getBounds(n);a?c&&(a=c.intersection(a)):a.update(c.center,c.halfExtents)}}return n?(i.renderBounds=a,i.renderBoundsDirty=!1):(i.bounds=a,i.boundsDirty=!1),a}},{key:"getLocalBounds",value:function(e){if(e.parentNode){var t=Cd;e.parentNode.transformable&&(t=Yt(Od,this.getWorldTransform(e.parentNode)));var n=this.getBounds(e);if(!Do.isEmpty(n)){var r=new Do;return r.setFromTransformedAABB(n,t),r}}return this.getBounds(e)}},{key:"getBoundingClientRect",value:function(e){var t,n,r=this.getGeometryBounds(e);Do.isEmpty(r)||(n=new Do,n.setFromTransformedAABB(r,this.getWorldTransform(e)));var i=null===(t=e.ownerDocument)||void 0===t||null===(t=t.defaultView)||void 0===t?void 0:t.getContextService().getBoundingClientRect();if(n){var o=n.getMin(),a=at(o,2),s=a[0],l=a[1],c=n.getMax(),u=at(c,2),d=u[0],h=u[1];return new Po(s+((null===i||void 0===i?void 0:i.left)||0),l+((null===i||void 0===i?void 0:i.top)||0),d-s,h-l)}return new Po((null===i||void 0===i?void 0:i.left)||0,(null===i||void 0===i?void 0:i.top)||0,0,0)}},{key:"internalUpdateTransform",value:function(e){var t,n=null===(t=e.parentNode)||void 0===t?void 0:t.transformable;_a(e.transformable),xa(e.transformable,n)}},{key:"internalUpdateElement",value:function(e,t){var n,r,i,o,a,s,l=!0===(null===(n=e.ownerDocument)||void 0===n||null===(n=n.defaultView)||void 0===n||null===(n=n.getConfig())||void 0===n||null===(n=n.future)||void 0===n?void 0:n.experimentalAttributeUpdateOptimization),c=t[t.length-1],u=(null===c||void 0===c?void 0:c.transformDirty)||(null===(r=e.transformable)||void 0===r?void 0:r.localDirtyFlag);e.transformable&&((a=e.transformable).dirtyFlag||(a.dirtyFlag=u));(this.internalUpdateTransform(e),u)&&(null===(s=e.dirty)||void 0===s||s.call(e,!0,!0));var d=(null===(i=e.renderable)||void 0===i?void 0:i.boundsDirty)||(null===(o=e.renderable)||void 0===o?void 0:o.renderBoundsDirty);if((u||d)&&!1===(null===c||void 0===c?void 0:c.shapeUpdated)&&l){var h=t.length-1;while(h>=0){var f,p,g=t[h];if(g.shapeUpdated)break;null===(f=(p=g.node).dirty)||void 0===f||f.call(p,!0,!0),g.shapeUpdated=!0,h-=1}}return u}},{key:"syncHierarchy",value:function(e){var t,n,r=[e],i=e.parentNode?[{node:e.parentNode,transformDirty:(null===(t=e.parentNode.transformable)||void 0===t?void 0:t.localDirtyFlag)||(null===(n=e.parentNode.transformable)||void 0===n?void 0:n.dirtyFlag),shapeUpdated:!1}]:[];while(r.length>0){var o=r.pop(),a=i[i.length-1];while(i.length>0&&o.parentNode!==a.node)a=i.pop();var s=this.internalUpdateElement(o,i);if(o.childNodes.length>0){for(var l=o.childNodes.length-1;l>=0;l--)r.push(o.childNodes[l]);i.push({node:o,transformDirty:s,shapeUpdated:!1})}}}},{key:"dirtyLocalTransform",value:function(e,t){hu(e)||t.localDirtyFlag||(t.localDirtyFlag=!0,t.dirtyFlag||this.dirtyWorldTransform(e,t))}},{key:"dirtyWorldTransform",value:function(e,t){this.dirtifyWorldInternal(e,t),this.dirtyToRoot(e,!0)}},{key:"dirtifyWorldInternal",value:function(e,t){var n,r=this,i=!0===(null===(n=e.ownerDocument)||void 0===n||null===(n=n.defaultView)||void 0===n||null===(n=n.getConfig())||void 0===n||null===(n=n.future)||void 0===n?void 0:n.experimentalAttributeUpdateOptimization);t.dirtyFlag||(t.dirtyFlag=!0,e.dirty(!0,!0),i||e.childNodes.forEach(function(e){var t=e.transformable;r.dirtifyWorldInternal(e,t)}))}},{key:"dirtyToRoot",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e,i=!0===(null===(t=e.ownerDocument)||void 0===t||null===(t=t.defaultView)||void 0===t||null===(t=t.getConfig())||void 0===t||null===(t=t.future)||void 0===t?void 0:t.experimentalAttributeUpdateOptimization);while(r){var o,a;if(null===(o=(a=r).dirty)||void 0===o||o.call(a,!0,!0),i)break;r=r.parentNode}n&&e.forEach(function(e){var t;null===(t=e.dirty)||void 0===t||t.call(e,!0,!0)}),this.informDependentDisplayObjects(e),this.pendingEvents.set(e,n)}},{key:"dirtifyFragment",value:function(e){var t,n,r=e.transformable;r&&(r.dirtyFlag=!0,r.localDirtyFlag=!0),null===(t=(n=e).dirty)||void 0===t||t.call(n,!0,!0);for(var i=e.childNodes.length,o=0;o<i;o++)this.dirtifyFragment(e.childNodes[o]);e.nodeName===_o.FRAGMENT&&this.pendingEvents.set(e,!1)}},{key:"triggerPendingEvents",value:function(){var e,t,n=this,r=new Set,i=function(t,i){if(t.isConnected&&!r.has(t)&&t.nodeName!==_o.FRAGMENT){if(n.boundsChangedEvent.detail=i,n.boundsChangedEvent.target=t,t.isMutationObserved)t.dispatchEvent(n.boundsChangedEvent);else{var o;if(void 0===e)e=!0===(null===(o=t.ownerDocument.defaultView)||void 0===o||null===(o=o.getConfig())||void 0===o||null===(o=o.future)||void 0===o?void 0:o.experimentalCancelEventPropagation);t.ownerDocument.defaultView.dispatchEvent(n.boundsChangedEvent,!0,e)}r.add(t)}};this.pendingEvents.forEach(function(e,n){if(n.nodeName!==_o.FRAGMENT){var r;if(void 0===t)t=!0===(null===(r=n.ownerDocument)||void 0===r||null===(r=r.defaultView)||void 0===r||null===(r=r.getConfig())||void 0===r||null===(r=r.future)||void 0===r?void 0:r.experimentalAttributeUpdateOptimization);jd.affectChildren=e,t?i(n,jd):e?n.forEach(function(e){i(e,jd)}):i(n,jd)}}),r.clear(),this.clearPendingEvents()}},{key:"clearPendingEvents",value:function(){this.pendingEvents.clear()}},{key:"updateDisplayObjectDependency",value:function(e,t,n,r){if(t&&t!==n){var i=this.displayObjectDependencyMap.get(t);if(i&&i[e]){var o=i[e].indexOf(r);i[e].splice(o,1)}}if(n){var a=this.displayObjectDependencyMap.get(n);a||(this.displayObjectDependencyMap.set(n,{}),a=this.displayObjectDependencyMap.get(n)),a[e]||(a[e]=[]),a[e].push(r)}}},{key:"informDependentDisplayObjects",value:function(e){var t,n=this,r=this.displayObjectDependencyMap.get(e);if(r){var i=null===(t=e.ownerDocument)||void 0===t||null===(t=t.defaultView)||void 0===t||null===(t=t.getConfig())||void 0===t||null===(t=t.future)||void 0===t?void 0:t.experimentalCancelEventPropagation;Object.keys(r).forEach(function(e){r[e].forEach(function(t){n.dirtyToRoot(t,!0),t.dispatchEvent(new wd(yd.ATTR_MODIFIED,t,n,n,e,wd.MODIFICATION,n,n),i,i),t.isCustomElement&&t.isConnected&&t.attributeChangedCallback&&t.attributeChangedCallback(e,n,n)})})}}}])}(),Ud=function(){function e(t){if($e(this,e),t<=0)throw new Error("LRU capacity must be a positive number.");this.capacity=t,this.cache=new Map}return Ue(e,[{key:"get",value:function(e){if(this.cache.has(e)){var t=this.cache.get(e);return this.cache["delete"](e),this.cache.set(e,t),t}}},{key:"put",value:function(e,t){if(this.cache.has(e)&&this.cache["delete"](e),this.cache.set(e,t),this.cache.size>this.capacity){var n=this.cache.keys().next().value;this.cache["delete"](n)}}},{key:"len",value:function(){return this.cache.size}},{key:"clear",value:function(){this.cache.clear()}}])}(),Qd={MetricsString:"|ÉqÅ",BaselineSymbol:"M",BaselineMultiplier:1.4,HeightMultiplier:2,Newlines:[10,13],BreakingSpaces:[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288]},zd=/[a-zA-Z0-9\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff!"#$%&'()*+,-./:;]/,Wd=/[!%),.:;?\]}¢°·'""†‡›℃∶、。〃〆〕〗〞﹚﹜！＂％＇），．：；？！］｝～]/,Gd=/[$(£¥·'"〈《「『【〔〖〝﹙﹛＄（．［｛￡￥]/,Vd=/[!),.:;?\]}¢·–—'"•"、。〆〞〕〉》」︰︱︲︳﹐﹑﹒﹓﹔﹕﹖﹘﹚﹜！），．：；？︶︸︺︼︾﹀﹂﹗］｜｝､]/,Kd=/[([{£¥'"‵〈《「『〔〝︴﹙﹛（｛︵︷︹︻︽︿﹁﹃﹏]/,Yd=/[)\]｝〕〉》」』】〙〗〟'"｠»ヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻‐゠–〜?!‼⁇⁈⁉・、:;,。.]/,qd=/[([｛〔〈《「『【〘〖〝'"｟«—...‥〳〴〵]/,Xd=/[!%),.:;?\]}¢°'"†‡℃〆〈《「『〕！％），．：；？］｝]/,Jd=/[$([{£¥'"々〇〉》」〔＄（［｛｠￥￦#]/,Zd=new RegExp("".concat(Wd.source,"|").concat(Vd.source,"|").concat(Yd.source,"|").concat(Xd.source)),eh=new RegExp("".concat(Gd.source,"|").concat(Kd.source,"|").concat(qd.source,"|").concat(Jd.source)),th=function(){function e(t){var n=this;$e(this,e),this.fontMetricsCache={},this.shouldBreakByKinsokuShorui=function(e,t){return!n.isBreakingSpace(t)&&!(!e||!eh.exec(t)&&!Zd.exec(e))},this.trimByKinsokuShorui=function(e){var t=Ke(e),n=t[t.length-2];if(!n)return e;var r=n[n.length-1];return t[t.length-2]=n.slice(0,-1),t[t.length-1]=r+t[t.length-1],t},this.runtime=t,this.charWidthCache=new Ud(100)}return Ue(e,[{key:"measureFont",value:function(e,t){if(this.fontMetricsCache[e])return this.fontMetricsCache[e];var n={ascent:0,descent:0,fontSize:0},r=this.runtime.offscreenCanvasCreator.getOrCreateCanvas(t),i=this.runtime.offscreenCanvasCreator.getOrCreateContext(t,{willReadFrequently:!0});i.font=e;var o=Qd.MetricsString+Qd.BaselineSymbol,a=Math.ceil(i.measureText(o).width),s=Math.ceil(i.measureText(Qd.BaselineSymbol).width),l=Qd.HeightMultiplier*s;s=s*Qd.BaselineMultiplier|0,r.width=a,r.height=l,i.fillStyle="#f00",i.fillRect(0,0,a,l),i.font=e,i.textBaseline="alphabetic",i.fillStyle="#000",i.fillText(o,0,s);var c=i.getImageData(0,0,a||1,l||1).data,u=c.length,d=4*a,h=0,f=0,p=!1;for(h=0;h<s;++h){for(var g=0;g<d;g+=4)if(255!==c[f+g]){p=!0;break}if(p)break;f+=d}for(n.ascent=s-h,f=u-d,p=!1,h=l;h>s;--h){for(var m=0;m<d;m+=4)if(255!==c[f+m]){p=!0;break}if(p)break;f-=d}return n.descent=h-s,n.fontSize=n.ascent+n.descent,this.fontMetricsCache[e]=n,n}},{key:"measureText",value:function(e,t,n){var r=t.fontSize,i=void 0===r?16:r,o=t.wordWrap,a=void 0!==o&&o,s=t.lineHeight,l=t.lineWidth,c=void 0===l?1:l,u=t.textBaseline,d=void 0===u?"alphabetic":u,h=t.textAlign,f=void 0===h?"start":h,p=t.letterSpacing,g=void 0===p?0:p,m=t.textPath;t.textPathSide,t.textPathStartOffset;var v=t.leading,A=void 0===v?0:v,b=Pu(t),y=this.measureFont(b,n);0===y.fontSize&&(y.fontSize=i,y.ascent=i);var w=this.runtime.offscreenCanvasCreator.getOrCreateContext(n);w.font=b,t.isOverflowing=!1;var _=a?this.wordWrap(e,t,n):e,x=_.split(/(?:\r\n|\r|\n)/),E=new Array(x.length),S=0;if(!m){for(var C=0;C<x.length;C++){var T=w.measureText(x[C]).width+(x[C].length-1)*g;E[C]=T,S=Math.max(S,T)}var k=S+c,O=s||y.fontSize+c,M=Math.max(O,y.fontSize+c)+(x.length-1)*(O+A);O+=A;var I=0;return"middle"===d?I=-M/2:"bottom"===d||"alphabetic"===d||"ideographic"===d?I=-M:"top"!==d&&"hanging"!==d||(I=0),{font:b,width:k,height:M,lines:x,lineWidths:E,lineHeight:O,maxLineWidth:S,fontProperties:y,lineMetrics:E.map(function(e,t){var n=0;return"center"===f||"middle"===f?n-=e/2:"right"!==f&&"end"!==f||(n-=e),new Po(n-c/2,I+t*O,e+c,O)})}}m.getTotalLength();for(var D=0;D<x.length;D++)w.measureText(x[D]).width,x[D].length}},{key:"wordWrap",value:function(e,t,n){var r=this,i=Array.from(e);if(0===i.length)return"";var o=this,a=t.wordWrapWidth,s=void 0===a?0:a,l=t.letterSpacing,c=void 0===l?0:l,u=t.maxLines,d=void 0===u?1/0:u,h=t.textOverflow,f=this.runtime.offscreenCanvasCreator.getOrCreateContext(n),p=s+c,g="";"ellipsis"===h?g="...":h&&"clip"!==h&&(g=h);var m=[""],v=0,A=0,b=-1,y=Pu(t),w=this.charWidthCache.get(y);w||(w=new Ud(500),this.charWidthCache.put(y,w));var _=function(e){return r.getFromCache(e,c,w,f)},x=_(g);function E(e,t,n,r){while(_(e)<r&&t<i.length-1){if(o.isNewline(i[t+1]))break;t+=1,e+=i[t]}while(_(e)>r&&t>=n)t-=1,e=e.slice(0,-1);return{lineTxt:e,txtLastCharIndex:t}}function S(e,t){if(!(x<=0||x>p))if(m[e]){var n=E(m[e],t,b+1,p-x);m[e]=n.lineTxt+g}else m[e]=g}for(var C=0;C<i.length;C++){var T=i[C],k=i[C-1],O=i[C+1],M=_(T);if(this.isNewline(T)){if(v+1>=d){C<i.length-1&&S(v,C-1),t.isOverflowing=!0;break}b=C-1,v+=1,A=0,m[v]=""}else{if(M>p){S(v,C-1),t.isOverflowing=!0;break}if(A>0&&A+M>p){var I=E(m[v],C-1,b+1,p);if(I.txtLastCharIndex!==C-1){if(m[v]=I.lineTxt,I.txtLastCharIndex===i.length-1)break;C=I.txtLastCharIndex+1,T=i[C],k=i[C-1],O=i[C+1],M=_(T)}if(v+1>=d){S(v,C-1),t.isOverflowing=!0;break}if(b=C-1,v+=1,A=0,m[v]="",this.isBreakingSpace(T))continue;this.canBreakInLastChar(T)||(m=this.trimToBreakable(m),A=this.sumTextWidthByCache(m[v]||"",_)),this.shouldBreakByKinsokuShorui(T,O)&&(m=this.trimByKinsokuShorui(m),A+=_(k||""))}A+=M,m[v]+=T}}return m.join("\n")}},{key:"isBreakingSpace",value:function(e){return"string"===typeof e&&Qd.BreakingSpaces.indexOf(e.charCodeAt(0))>=0}},{key:"isNewline",value:function(e){return"string"===typeof e&&Qd.Newlines.indexOf(e.charCodeAt(0))>=0}},{key:"trimToBreakable",value:function(e){var t=Ke(e),n=t[t.length-2],r=this.findBreakableIndex(n);if(-1===r||!n)return t;var i=n.slice(r,r+1),o=this.isBreakingSpace(i),a=r+1,s=r+(o?0:1);return t[t.length-1]+=n.slice(a,n.length),t[t.length-2]=n.slice(0,s),t}},{key:"canBreakInLastChar",value:function(e){return!e||!zd.test(e)}},{key:"sumTextWidthByCache",value:function(e,t){return e.split("").reduce(function(e,n){return e+t(n)},0)}},{key:"findBreakableIndex",value:function(e){for(var t=e.length-1;t>=0;t--)if(!zd.test(e[t]))return t;return-1}},{key:"getFromCache",value:function(e,t,n,r){var i=n.get(e);if("number"!==typeof i){var o=e.length*t,a=r.measureText(e);i=a.width+o,n.put(e,i)}return i}},{key:"clearCache",value:function(){this.fontMetricsCache={},this.charWidthCache.clear()}}])}(),nh={},rh=function(e){var t=new nd,n=new td;return e={},(0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)(e,_o.FRAGMENT,null),_o.CIRCLE,new Xu),_o.ELLIPSE,new Ju),_o.RECT,t),_o.IMAGE,t),_o.GROUP,new id),_o.LINE,new Zu),_o.TEXT,new rd(nh)),_o.POLYLINE,n),_o.POLYGON,n),(0,Ii.A)((0,Ii.A)((0,Ii.A)(e,_o.PATH,new ed),_o.HTML,new od),_o.MESH,null)}(),ih=function(e){var t=new Bc,n=new $c;return e={},(0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)(e,Sa.PERCENTAGE,null),Sa.NUMBER,new Qc),Sa.ANGLE,new Rc),Sa.DEFINED_PATH,new Lc),Sa.PAINT,t),Sa.COLOR,t),Sa.FILTER,new Pc),Sa.LENGTH,n),Sa.LENGTH_PERCENTAGE,n),Sa.LENGTH_PERCENTAGE_12,new jc),(0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)(e,Sa.LENGTH_PERCENTAGE_14,new Hc),Sa.COORDINATE,new $c),Sa.OFFSET_DISTANCE,new zc),Sa.OPACITY_VALUE,new Wc),Sa.PATH,new Gc),Sa.LIST_OF_POINTS,new Vc),Sa.SHADOW_BLUR,new Kc),Sa.TEXT,new Yc),Sa.TEXT_TRANSFORM,new qc),Sa.TRANSFORM,new Ku),(0,Ii.A)((0,Ii.A)((0,Ii.A)(e,Sa.TRANSFORM_ORIGIN,new Yu),Sa.Z_INDEX,new qu),Sa.MARKER,new Uc)}(),oh=function(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{}};nh.CameraContribution=ma,nh.AnimationTimeline=null,nh.EasingFunction=null,nh.offscreenCanvasCreator=new gd,nh.sceneGraphSelector=new bd,nh.sceneGraphService=new Hd(nh),nh.textService=new th(nh),nh.geometryUpdaterFactory=rh,nh.CSSPropertySyntaxFactory=ih,nh.styleValueRegistry=new Ic(nh),nh.layoutRegistry=null,nh.globalThis=oh(),nh.enableStyleSyntax=!0,nh.enableSizeAttenuation=!1;var ah=0;var sh=new wd(yd.INSERTED,null,"","","",0,"",""),lh=new wd(yd.REMOVED,null,"","","",0,"",""),ch=new ud(yd.DESTROY),uh=function(e){function t(){var e;$e(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=et(this,t,[].concat(r)),e.entity=ah++,e.transformable={dirtyFlag:!1,localDirtyFlag:!1,localPosition:[0,0,0],localRotation:[0,0,0,1],localScale:[1,1,1],localTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],localSkew:[0,0],position:[0,0,0],rotation:[0,0,0,1],scaling:[1,1,1],worldTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],origin:[0,0,0]},e.renderable={bounds:void 0,boundsDirty:!0,renderBounds:void 0,renderBoundsDirty:!0,dirtyRenderBounds:void 0,dirty:!1},e.geometry={contentBounds:void 0,renderBounds:void 0,dirty:!0},e.cullable={strategy:va.Standard,visibilityPlaneMask:-1,visible:!0,enable:!0},e.sortable={dirty:!1,sorted:void 0,renderOrder:0,dirtyChildren:[],dirtyReason:void 0},e.rBushNode={aabb:void 0},e.namespaceURI="g",e.scrollLeft=0,e.scrollTop=0,e.clientTop=0,e.clientLeft=0,e.style={},e.computedStyle={},e.parsedStyle={},e.attributes={},e}return nt(t,e),Ue(t,[{key:"dirty",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.renderable.dirty=e,t&&(this.renderable.boundsDirty=e,this.renderable.renderBoundsDirty=e)}},{key:"className",get:function(){return this.getAttribute("class")||""},set:function(e){this.setAttribute("class",e)}},{key:"classList",get:function(){return this.className.split(" ").filter(function(e){return""!==e})}},{key:"tagName",get:function(){return this.nodeName}},{key:"children",get:function(){return this.childNodes}},{key:"childElementCount",get:function(){return this.childNodes.length}},{key:"firstElementChild",get:function(){return this.firstChild}},{key:"lastElementChild",get:function(){return this.lastChild}},{key:"parentElement",get:function(){return this.parentNode}},{key:"nextSibling",get:function(){if(this.parentNode){var e=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[e+1]||null}return null}},{key:"previousSibling",get:function(){if(this.parentNode){var e=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[e-1]||null}return null}},{key:"cloneNode",value:function(e){throw new Error(Fo)}},{key:"appendChild",value:function(e,t){var n;if(e.destroyed)throw new Error(jo);return nh.sceneGraphService.attach(e,this,t),null!==(n=this.ownerDocument)&&void 0!==n&&n.defaultView&&(hu(this)||e.nodeName!==_o.FRAGMENT?this.ownerDocument.defaultView.mountChildren(e):this.ownerDocument.defaultView.mountFragment(e)),this.isMutationObserved&&(sh.relatedNode=this,e.dispatchEvent(sh)),e}},{key:"insertBefore",value:function(e,t){if(t){e.parentElement&&e.parentElement.removeChild(e);var n=this.childNodes.indexOf(t);-1===n?this.appendChild(e):this.appendChild(e,n)}else this.appendChild(e);return e}},{key:"replaceChild",value:function(e,t){var n=this.childNodes.indexOf(t);return this.removeChild(t),this.appendChild(e,n),t}},{key:"removeChild",value:function(e){var t,n,r=!0===(null===(t=this.ownerDocument)||void 0===t||null===(t=t.defaultView)||void 0===t||null===(t=t.getConfig().future)||void 0===t?void 0:t.experimentalCancelEventPropagation);return lh.relatedNode=this,e.dispatchEvent(lh,r,r),null!==(n=e.ownerDocument)&&void 0!==n&&n.defaultView&&e.ownerDocument.defaultView.unmountChildren(e),nh.sceneGraphService.detach(e),e}},{key:"removeChildren",value:function(){for(var e=this.childNodes.length-1;e>=0;e--){var t=this.childNodes[e];this.removeChild(t)}}},{key:"destroyChildren",value:function(){for(var e=this.childNodes.length-1;e>=0;e--){var t=this.childNodes[e];t.childNodes.length>0&&t.destroyChildren(),t.destroy()}}},{key:"matches",value:function(e){return nh.sceneGraphService.matches(e,this)}},{key:"getElementById",value:function(e){return nh.sceneGraphService.querySelector("#".concat(e),this)}},{key:"getElementsByName",value:function(e){return nh.sceneGraphService.querySelectorAll('[name="'.concat(e,'"]'),this)}},{key:"getElementsByClassName",value:function(e){return nh.sceneGraphService.querySelectorAll(".".concat(e),this)}},{key:"getElementsByTagName",value:function(e){return nh.sceneGraphService.querySelectorAll(e,this)}},{key:"querySelector",value:function(e){return nh.sceneGraphService.querySelector(e,this)}},{key:"querySelectorAll",value:function(e){return nh.sceneGraphService.querySelectorAll(e,this)}},{key:"closest",value:function(e){var t=this;do{if(nh.sceneGraphService.matches(e,t))return t;t=t.parentElement}while(null!==t);return null}},{key:"find",value:function(e){var t=this,n=null;return this.forEach(function(r){return r===t||!e(r)||(n=r,!1)}),n}},{key:"findAll",value:function(e){var t=this,n=[];return this.forEach(function(r){r!==t&&e(r)&&n.push(r)}),n}},{key:"after",value:function(){var e=this;if(this.parentNode){for(var t=this.parentNode.childNodes.indexOf(this),n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];r.forEach(function(n,r){var i;return null===(i=e.parentNode)||void 0===i?void 0:i.appendChild(n,t+r+1)})}}},{key:"before",value:function(){if(this.parentNode){for(var e,t=this.parentNode.childNodes.indexOf(this),n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=r[0],a=r.slice(1);this.parentNode.appendChild(o,t),(e=o).after.apply(e,Ke(a))}}},{key:"replaceWith",value:function(){this.after.apply(this,arguments),this.remove()}},{key:"append",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach(function(t){return e.appendChild(t)})}},{key:"prepend",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach(function(t,n){return e.appendChild(t,n)})}},{key:"replaceChildren",value:function(){while(this.childNodes.length&&this.firstChild)this.removeChild(this.firstChild);this.append.apply(this,arguments)}},{key:"remove",value:function(){return this.parentNode?this.parentNode.removeChild(this):this}},{key:"destroy",value:function(){var e,t=!0===(null===(e=this.ownerDocument)||void 0===e||null===(e=e.defaultView)||void 0===e||null===(e=e.getConfig().future)||void 0===e?void 0:e.experimentalCancelEventPropagation);this.destroyChildren(),this.dispatchEvent(ch,t,t),this.remove(),this.emitter.removeAllListeners(),this.destroyed=!0}},{key:"getGeometryBounds",value:function(){return nh.sceneGraphService.getGeometryBounds(this)}},{key:"getRenderBounds",value:function(){return nh.sceneGraphService.getBounds(this,!0)}},{key:"getBounds",value:function(){return nh.sceneGraphService.getBounds(this)}},{key:"getLocalBounds",value:function(){return nh.sceneGraphService.getLocalBounds(this)}},{key:"getBoundingClientRect",value:function(){return nh.sceneGraphService.getBoundingClientRect(this)}},{key:"getClientRects",value:function(){return[this.getBoundingClientRect()]}},{key:"computedStyleMap",value:function(){return new Map(Object.entries(this.computedStyle))}},{key:"getAttributeNames",value:function(){return Object.keys(this.attributes)}},{key:"getAttribute",value:function(e){if("symbol"!==typeof e){var t=this.attributes[e];return t}}},{key:"hasAttribute",value:function(e){return this.getAttributeNames().includes(e)}},{key:"hasAttributes",value:function(){return!!this.getAttributeNames().length}},{key:"removeAttribute",value:function(e){this.setAttribute(e,null),delete this.attributes[e]}},{key:"setAttribute",value:function(e,t,n,r){this.attributes[e]=t}},{key:"getAttributeNS",value:function(e,t){throw new Error(Fo)}},{key:"getAttributeNode",value:function(e){throw new Error(Fo)}},{key:"getAttributeNodeNS",value:function(e,t){throw new Error(Fo)}},{key:"hasAttributeNS",value:function(e,t){throw new Error(Fo)}},{key:"removeAttributeNS",value:function(e,t){throw new Error(Fo)}},{key:"removeAttributeNode",value:function(e){throw new Error(Fo)}},{key:"setAttributeNS",value:function(e,t,n){throw new Error(Fo)}},{key:"setAttributeNode",value:function(e){throw new Error(Fo)}},{key:"setAttributeNodeNS",value:function(e){throw new Error(Fo)}},{key:"toggleAttribute",value:function(e,t){throw new Error(Fo)}}])}(hd);function dh(e){return!(null===e||void 0===e||!e.nodeName)}var hh=nh.globalThis.Proxy?nh.globalThis.Proxy:function(){},fh=new wd(yd.ATTR_MODIFIED,null,null,null,null,wd.MODIFICATION,null,null),ph=ht(),gh=zn(),mh=function(e){function t(e){var n;return $e(this,t),n=et(this,t),n.isCustomElement=!1,n.isMutationObserved=!1,n.activeAnimations=[],n.config=e,n.id=e.id||"",n.name=e.name||"",(e.className||e["class"])&&(n.className=e.className||e["class"]),n.nodeName=e.type||_o.GROUP,e.initialParsedStyle&&Object.assign(n.parsedStyle,e.initialParsedStyle),n.initAttributes(e.style),nh.enableStyleSyntax&&(n.style=new hh({setProperty:function(e,t){n.setAttribute(e,t)},getPropertyValue:function(e){return n.getAttribute(e)},removeProperty:function(e){n.removeAttribute(e)},item:function(){return""}},{get:function(e,t){return void 0!==e[t]?e[t]:n.getAttribute(t)},set:function(e,t,r){return n.setAttribute(t,r),!0}})),n}return nt(t,e),Ue(t,[{key:"destroy",value:function(){Ri(t,"destroy",this,3)([]),this.getAnimations().forEach(function(e){e.cancel()})}},{key:"cloneNode",value:function(e,t){var n=(0,Fe.A)({},this.attributes);for(var r in n){var i=n[r];dh(i)&&"clipPath"!==r&&"offsetPath"!==r&&"textPath"!==r&&(n[r]=i.cloneNode(e)),t&&(n[r]=t(r,i))}var o=new this.constructor((0,Fe.A)((0,Fe.A)({},this.config),{},{style:n}));return o.setLocalTransform(this.getLocalTransform()),e&&this.children.forEach(function(t){if(!t.style.isMarker){var n=t.cloneNode(e);o.appendChild(n)}}),o}},{key:"initAttributes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={forceUpdateGeometry:!0};nh.styleValueRegistry.processProperties(this,e,t),this.dirty()}},{key:"setAttribute",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];Si(n)||(r||n!==this.attributes[e])&&(this.internalSetAttribute(e,n,{memoize:i}),Ri(t,"setAttribute",this,3)([e,n]))}},{key:"internalSetAttribute",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.attributes[e],i=this.parsedStyle[e];nh.styleValueRegistry.processProperties(this,(0,Ii.A)({},e,t),n),this.dirty();var o,a,s=this.parsedStyle[e];if(this.isConnected)if(fh.relatedNode=this,fh.prevValue=r,fh.newValue=t,fh.attrName=e,fh.prevParsedValue=i,fh.newParsedValue=s,this.isMutationObserved)this.dispatchEvent(fh);else{var l,c=!0===(null===(l=this.ownerDocument.defaultView.getConfig().future)||void 0===l?void 0:l.experimentalCancelEventPropagation);fh.target=this,this.ownerDocument.defaultView.dispatchEvent(fh,!0,c)}(this.isCustomElement&&this.isConnected||!this.isCustomElement)&&(null===(o=(a=this).attributeChangedCallback)||void 0===o||o.call(a,e,r,t,i,s))}},{key:"getBBox",value:function(){var e=this.getBounds(),t=e.getMin(),n=at(t,2),r=n[0],i=n[1],o=e.getMax(),a=at(o,2),s=a[0],l=a[1];return new Po(r,i,s-r,l-i)}},{key:"setOrigin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return nh.sceneGraphService.setOrigin(this,Qo(e,t,n,!1)),this}},{key:"getOrigin",value:function(){return nh.sceneGraphService.getOrigin(this)}},{key:"setPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return nh.sceneGraphService.setPosition(this,Qo(e,t,n,!1)),this}},{key:"setLocalPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return nh.sceneGraphService.setLocalPosition(this,Qo(e,t,n,!1)),this}},{key:"translate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return nh.sceneGraphService.translate(this,Qo(e,t,n,!1)),this}},{key:"translateLocal",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return nh.sceneGraphService.translateLocal(this,Qo(e,t,n,!1)),this}},{key:"getPosition",value:function(){return nh.sceneGraphService.getPosition(this)}},{key:"getLocalPosition",value:function(){return nh.sceneGraphService.getLocalPosition(this)}},{key:"scale",value:function(e,t,n){return this.scaleLocal(e,t,n)}},{key:"scaleLocal",value:function(e,t,n){return"number"===typeof e&&(t=t||e,n=n||e,e=Qo(e,t,n,!1)),nh.sceneGraphService.scaleLocal(this,e),this}},{key:"setLocalScale",value:function(e,t,n){return"number"===typeof e&&(t=t||e,n=n||e,e=Qo(e,t,n,!1)),nh.sceneGraphService.setLocalScale(this,e),this}},{key:"getLocalScale",value:function(){return nh.sceneGraphService.getLocalScale(this)}},{key:"getScale",value:function(){return nh.sceneGraphService.getScale(this)}},{key:"getEulerAngles",value:function(){var e=Jo(ph,nh.sceneGraphService.getWorldTransform(this)),t=at(e,3),n=t[2];return Vo(n)}},{key:"getLocalEulerAngles",value:function(){var e=Jo(ph,nh.sceneGraphService.getLocalRotation(this)),t=at(e,3),n=t[2];return Vo(n)}},{key:"setEulerAngles",value:function(e){return nh.sceneGraphService.setEulerAngles(this,0,0,e),this}},{key:"setLocalEulerAngles",value:function(e){return nh.sceneGraphService.setLocalEulerAngles(this,0,0,e),this}},{key:"rotateLocal",value:function(e,t,n){return ur(t)&&ur(n)?nh.sceneGraphService.rotateLocal(this,0,0,e):nh.sceneGraphService.rotateLocal(this,e,t,n),this}},{key:"rotate",value:function(e,t,n){return ur(t)&&ur(n)?nh.sceneGraphService.rotate(this,0,0,e):nh.sceneGraphService.rotate(this,e,t,n),this}},{key:"setRotation",value:function(e,t,n,r){return nh.sceneGraphService.setRotation(this,e,t,n,r),this}},{key:"setLocalRotation",value:function(e,t,n,r){return nh.sceneGraphService.setLocalRotation(this,e,t,n,r),this}},{key:"setLocalSkew",value:function(e,t){return nh.sceneGraphService.setLocalSkew(this,e,t),this}},{key:"getRotation",value:function(){return nh.sceneGraphService.getRotation(this)}},{key:"getLocalRotation",value:function(){return nh.sceneGraphService.getLocalRotation(this)}},{key:"getLocalSkew",value:function(){return nh.sceneGraphService.getLocalSkew(this)}},{key:"getLocalTransform",value:function(){return nh.sceneGraphService.getLocalTransform(this)}},{key:"getWorldTransform",value:function(){return nh.sceneGraphService.getWorldTransform(this)}},{key:"setLocalTransform",value:function(e){return nh.sceneGraphService.setLocalTransform(this,e),this}},{key:"resetLocalTransform",value:function(){nh.sceneGraphService.resetLocalTransform(this)}},{key:"getAnimations",value:function(){return this.activeAnimations}},{key:"animate",value:function(e,t){var n,r=null===(n=this.ownerDocument)||void 0===n?void 0:n.timeline;return r?r.play(this,e,t):null}},{key:"isVisible",value:function(){var e;return"hidden"!==(null===(e=this.parsedStyle)||void 0===e?void 0:e.visibility)}},{key:"interactive",get:function(){return this.isInteractive()},set:function(e){this.style.pointerEvents=e?"auto":"none"}},{key:"isInteractive",value:function(){var e;return"none"!==(null===(e=this.parsedStyle)||void 0===e?void 0:e.pointerEvents)}},{key:"isCulled",value:function(){return!(!this.cullable||!this.cullable.enable||this.cullable.visible)}},{key:"toFront",value:function(){return this.parentNode&&(this.style.zIndex=Math.max.apply(Math,Ke(this.parentNode.children.map(function(e){return Number(e.style.zIndex)})))+1),this}},{key:"toBack",value:function(){return this.parentNode&&(this.style.zIndex=Math.min.apply(Math,Ke(this.parentNode.children.map(function(e){return Number(e.style.zIndex)})))-1),this}},{key:"getConfig",value:function(){return this.config}},{key:"attr",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],o=n[1];return i?Oi(i)?(Object.keys(i).forEach(function(t){e.setAttribute(t,i[t])}),this):2===n.length?(this.setAttribute(i,o),this):this.attributes[i]:this.attributes}},{key:"getMatrix",value:function(e){var t=e||this.getWorldTransform(),n=pn(ph,t),r=at(n,2),i=r[0],o=r[1],a=gn(ph,t),s=at(a,2),l=s[0],c=s[1],u=mn(gh,t),d=Jo(ph,u),h=at(d,3),f=h[0],p=h[2];return Zo(f||p,i,o,l,c)}},{key:"getLocalMatrix",value:function(){return this.getMatrix(this.getLocalTransform())}},{key:"setMatrix",value:function(e){var t=ta(e),n=at(t,5),r=n[0],i=n[1],o=n[2],a=n[3],s=n[4];this.setEulerAngles(s).setPosition(r,i).setLocalScale(o,a)}},{key:"setLocalMatrix",value:function(e){var t=ta(e),n=at(t,5),r=n[0],i=n[1],o=n[2],a=n[3],s=n[4];this.setLocalEulerAngles(s).setLocalPosition(r,i).setLocalScale(o,a)}},{key:"show",value:function(){this.forEach(function(e){e.style.visibility="visible"})}},{key:"hide",value:function(){this.forEach(function(e){e.style.visibility="hidden"})}},{key:"getCount",value:function(){return this.childElementCount}},{key:"getParent",value:function(){return this.parentElement}},{key:"getChildren",value:function(){return this.children}},{key:"getFirst",value:function(){return this.firstElementChild}},{key:"getLast",value:function(){return this.lastElementChild}},{key:"getChildByIndex",value:function(e){return this.children[e]||null}},{key:"add",value:function(e,t){return this.appendChild(e,t)}},{key:"set",value:function(e,t){this.config[e]=t}},{key:"get",value:function(e){return this.config[e]}},{key:"moveTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.setPosition(e,t,n),this}},{key:"move",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.setPosition(e,t,n),this}},{key:"setZIndex",value:function(e){return this.style.zIndex=e,this}}])}(uh);mh.PARSED_STYLE_LIST=new Set(["class","className","clipPath","cursor","display","draggable","droppable","fill","fillOpacity","fillRule","filter","increasedLineWidthForHitTesting","lineCap","lineDash","lineDashOffset","lineJoin","lineWidth","miterLimit","hitArea","offsetDistance","offsetPath","offsetX","offsetY","opacity","pointerEvents","shadowColor","shadowType","shadowBlur","shadowOffsetX","shadowOffsetY","stroke","strokeOpacity","strokeWidth","strokeLinecap","strokeLineJoin","strokeDasharray","strokeDashoffset","transform","transformOrigin","textTransform","visibility","zIndex"]);var vh=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return $e(this,t),et(this,t,[(0,Fe.A)({type:_o.CIRCLE},e)])}return nt(t,e),Ue(t)}(mh);vh.PARSED_STYLE_LIST=new Set([].concat(Ke(mh.PARSED_STYLE_LIST),["cx","cy","cz","r","isBillboard","isSizeAttenuation"]));var Ah=["style"],bh=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.style,i=bo(n,Ah);return $e(this,t),e=et(this,t,[(0,Fe.A)({style:r},i)]),e.isCustomElement=!0,e}return nt(t,e),Ue(t)}(mh);bh.PARSED_STYLE_LIST=new Set(["class","className","clipPath","cursor","draggable","droppable","opacity","pointerEvents","transform","transformOrigin","zIndex","visibility"]);var yh=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return $e(this,t),et(this,t,[(0,Fe.A)({type:_o.ELLIPSE},e)])}return nt(t,e),Ue(t)}(mh);yh.PARSED_STYLE_LIST=new Set([].concat(Ke(mh.PARSED_STYLE_LIST),["cx","cy","cz","rx","ry","isBillboard","isSizeAttenuation"]));var wh=function(e){function t(){return $e(this,t),et(this,t,[{type:_o.FRAGMENT}])}return nt(t,e),Ue(t)}(mh);wh.PARSED_STYLE_LIST=new Set(["class","className"]);var _h=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return $e(this,t),et(this,t,[(0,Fe.A)({type:_o.GROUP},e)])}return nt(t,e),Ue(t)}(mh);_h.PARSED_STYLE_LIST=new Set(["class","className","clipPath","cursor","draggable","droppable","opacity","pointerEvents","transform","transformOrigin","zIndex","visibility"]);var xh=["style"],Eh=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.style,i=bo(n,xh);return $e(this,t),e=et(this,t,[(0,Fe.A)({type:_o.HTML,style:r},i)]),e.cullable.enable=!1,e}return nt(t,e),Ue(t,[{key:"getDomElement",value:function(){return this.parsedStyle.$el}},{key:"getClientRects",value:function(){return[this.getBoundingClientRect()]}},{key:"getLocalBounds",value:function(){if(this.parentNode){var e=Yt(Ut(),this.parentNode.getWorldTransform()),t=this.getBounds();if(!Do.isEmpty(t)){var n=new Do;return n.setFromTransformedAABB(t,e),n}}return this.getBounds()}}])}(mh);Eh.PARSED_STYLE_LIST=new Set([].concat(Ke(mh.PARSED_STYLE_LIST),["x","y","$el","innerHTML","width","height"]));var Sh=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return $e(this,t),et(this,t,[(0,Fe.A)({type:_o.IMAGE},e)])}return nt(t,e),Ue(t)}(mh);Sh.PARSED_STYLE_LIST=new Set([].concat(Ke(mh.PARSED_STYLE_LIST),["x","y","z","src","width","height","isBillboard","billboardRotation","isSizeAttenuation","keepAspectRatio"]));var Ch=["style"],Th=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.style,i=bo(n,Ch);$e(this,t),e=et(this,t,[(0,Fe.A)({type:_o.LINE,style:(0,Fe.A)({x1:0,y1:0,x2:0,y2:0,z1:0,z2:0},r)},i)]),e.markerStartAngle=0,e.markerEndAngle=0;var o=e.parsedStyle,a=o.markerStart,s=o.markerEnd;return a&&dh(a)&&(e.markerStartAngle=a.getLocalEulerAngles(),e.appendChild(a)),s&&dh(s)&&(e.markerEndAngle=s.getLocalEulerAngles(),e.appendChild(s)),e.transformMarker(!0),e.transformMarker(!1),e}return nt(t,e),Ue(t,[{key:"attributeChangedCallback",value:function(e,t,n,r,i){"x1"===e||"y1"===e||"x2"===e||"y2"===e||"markerStartOffset"===e||"markerEndOffset"===e?(this.transformMarker(!0),this.transformMarker(!1)):"markerStart"===e?(r&&dh(r)&&(this.markerStartAngle=0,r.remove()),i&&dh(i)&&(this.markerStartAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!0))):"markerEnd"===e&&(r&&dh(r)&&(this.markerEndAngle=0,r.remove()),i&&dh(i)&&(this.markerEndAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!1)))}},{key:"transformMarker",value:function(e){var t=this.parsedStyle,n=t.markerStart,r=t.markerEnd,i=t.markerStartOffset,o=t.markerEndOffset,a=t.x1,s=t.x2,l=t.y1,c=t.y2,u=e?n:r;if(u&&dh(u)){var d,h,f,p,g,m,v=0;e?(f=a,p=l,d=s-a,h=c-l,g=i||0,m=this.markerStartAngle):(f=s,p=c,d=a-s,h=l-c,g=o||0,m=this.markerEndAngle),v=Math.atan2(h,d),u.setLocalEulerAngles(180*v/Math.PI+m),u.setLocalPosition(f+Math.cos(v)*g,p+Math.sin(v)*g)}}},{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.parsedStyle,r=n.x1,i=n.y1,o=n.x2,a=n.y2,s=Wi(r,i,o,a,e),l=s.x,c=s.y,u=Ot(ht(),gt(l,c,0),t?this.getWorldTransform():this.getLocalTransform());return new Bo(u[0],u[1])}},{key:"getPointAtLength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.getPoint(e/this.getTotalLength(),t)}},{key:"getTotalLength",value:function(){var e=this.parsedStyle,t=e.x1,n=e.y1,r=e.x2,i=e.y2;return zi(t,n,r,i)}}])}(mh);Th.PARSED_STYLE_LIST=new Set([].concat(Ke(mh.PARSED_STYLE_LIST),["x1","y1","x2","y2","z1","z2","isBillboard","isSizeAttenuation","markerStart","markerEnd","markerStartOffset","markerEndOffset"]));var kh=["style"],Oh=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.style,i=bo(n,kh);$e(this,t),e=et(this,t,[(0,Fe.A)({type:_o.PATH,style:r,initialParsedStyle:{miterLimit:4,d:(0,Fe.A)({},Ea)}},i)]),e.markerStartAngle=0,e.markerEndAngle=0,e.markerMidList=[];var o=e.parsedStyle,a=o.markerStart,s=o.markerEnd,l=o.markerMid;return a&&dh(a)&&(e.markerStartAngle=a.getLocalEulerAngles(),e.appendChild(a)),l&&dh(l)&&e.placeMarkerMid(l),s&&dh(s)&&(e.markerEndAngle=s.getLocalEulerAngles(),e.appendChild(s)),e.transformMarker(!0),e.transformMarker(!1),e}return nt(t,e),Ue(t,[{key:"attributeChangedCallback",value:function(e,t,n,r,i){"d"===e?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):"markerStartOffset"===e||"markerEndOffset"===e?(this.transformMarker(!0),this.transformMarker(!1)):"markerStart"===e?(r&&dh(r)&&(this.markerStartAngle=0,r.remove()),i&&dh(i)&&(this.markerStartAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!0))):"markerEnd"===e?(r&&dh(r)&&(this.markerEndAngle=0,r.remove()),i&&dh(i)&&(this.markerEndAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!1))):"markerMid"===e&&this.placeMarkerMid(i)}},{key:"transformMarker",value:function(e){var t=this.parsedStyle,n=t.markerStart,r=t.markerEnd,i=t.markerStartOffset,o=t.markerEndOffset,a=e?n:r;if(a&&dh(a)){var s,l,c,u,d,h,f=0;if(e){var p=this.getStartTangent(),g=at(p,2),m=g[0],v=g[1];c=v[0],u=v[1],s=m[0]-v[0],l=m[1]-v[1],d=i||0,h=this.markerStartAngle}else{var A=this.getEndTangent(),b=at(A,2),y=b[0],w=b[1];c=w[0],u=w[1],s=y[0]-w[0],l=y[1]-w[1],d=o||0,h=this.markerEndAngle}f=Math.atan2(l,s),a.setLocalEulerAngles(180*f/Math.PI+h),a.setLocalPosition(c+Math.cos(f)*d,u+Math.sin(f)*d)}}},{key:"placeMarkerMid",value:function(e){var t=this.parsedStyle.d.segments;if(this.markerMidList.forEach(function(e){e.remove()}),e&&dh(e))for(var n=1;n<t.length-1;n++){var r=at(t[n].currentPoint,2),i=r[0],o=r[1],a=1===n?e:e.cloneNode(!0);this.markerMidList.push(a),this.appendChild(a),a.setLocalPosition(i,o)}}},{key:"getTotalLength",value:function(){return Ml(this)}},{key:"getPointAtLength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.parsedStyle.d.absolutePath,r=Mi(n,e),i=r.x,o=r.y,a=Ot(ht(),gt(i,o,0),t?this.getWorldTransform():this.getLocalTransform());return new Bo(a[0],a[1])}},{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.getPointAtLength(e*Ml(this),t)}},{key:"getStartTangent",value:function(){var e=this.parsedStyle.d.segments,t=[];if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t}},{key:"getEndTangent",value:function(){var e=this.parsedStyle.d.segments,t=e.length,n=[];if(t>1){var r=e[t-2].currentPoint,i=e[t-1].currentPoint,o=e[t-1].endTangent;n=[],o?(n.push([i[0]-o[0],i[1]-o[1]]),n.push([i[0],i[1]])):(n.push([r[0],r[1]]),n.push([i[0],i[1]]))}return n}}])}(mh);Oh.PARSED_STYLE_LIST=new Set([].concat(Ke(mh.PARSED_STYLE_LIST),["d","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isBillboard","isSizeAttenuation"]));var Mh=["style"],Ih=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.style,i=bo(n,Mh);$e(this,t),e=et(this,t,[(0,Fe.A)({type:_o.POLYGON,style:r,initialParsedStyle:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!0}},i)]),e.markerStartAngle=0,e.markerEndAngle=0,e.markerMidList=[];var o=e.parsedStyle,a=o.markerStart,s=o.markerEnd,l=o.markerMid;return a&&dh(a)&&(e.markerStartAngle=a.getLocalEulerAngles(),e.appendChild(a)),l&&dh(l)&&e.placeMarkerMid(l),s&&dh(s)&&(e.markerEndAngle=s.getLocalEulerAngles(),e.appendChild(s)),e.transformMarker(!0),e.transformMarker(!1),e}return nt(t,e),Ue(t,[{key:"attributeChangedCallback",value:function(e,t,n,r,i){"points"===e?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):"markerStartOffset"===e||"markerEndOffset"===e?(this.transformMarker(!0),this.transformMarker(!1)):"markerStart"===e?(r&&dh(r)&&(this.markerStartAngle=0,r.remove()),i&&dh(i)&&(this.markerStartAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!0))):"markerEnd"===e?(r&&dh(r)&&(this.markerEndAngle=0,r.remove()),i&&dh(i)&&(this.markerEndAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!1))):"markerMid"===e&&this.placeMarkerMid(i)}},{key:"transformMarker",value:function(e){var t=this.parsedStyle,n=t.markerStart,r=t.markerEnd,i=t.markerStartOffset,o=t.markerEndOffset,a=t.points,s=a||{},l=s.points,c=e?n:r;if(c&&dh(c)&&l){var u,d,h,f,p,g,m=0;if(h=l[0][0],f=l[0][1],e)u=l[1][0]-l[0][0],d=l[1][1]-l[0][1],p=i||0,g=this.markerStartAngle;else{var v=l.length;this.parsedStyle.isClosed?(u=l[v-1][0]-l[0][0],d=l[v-1][1]-l[0][1]):(h=l[v-1][0],f=l[v-1][1],u=l[v-2][0]-l[v-1][0],d=l[v-2][1]-l[v-1][1]),p=o||0,g=this.markerEndAngle}m=Math.atan2(d,u),c.setLocalEulerAngles(180*m/Math.PI+g),c.setLocalPosition(h+Math.cos(m)*p,f+Math.sin(m)*p)}}},{key:"placeMarkerMid",value:function(e){var t=this.parsedStyle.points,n=t||{},r=n.points;if(this.markerMidList.forEach(function(e){e.remove()}),this.markerMidList=[],e&&dh(e)&&r)for(var i=1;i<(this.parsedStyle.isClosed?r.length:r.length-1);i++){var o=r[i][0],a=r[i][1],s=1===i?e:e.cloneNode(!0);this.markerMidList.push(s),this.appendChild(s),s.setLocalPosition(o,a)}}}])}(mh);Ih.PARSED_STYLE_LIST=new Set([].concat(Ke(mh.PARSED_STYLE_LIST),["points","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isClosed","isBillboard","isSizeAttenuation"]));var Dh=["style"],Nh=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.style,r=bo(e,Dh);return $e(this,t),et(this,t,[(0,Fe.A)({type:_o.POLYLINE,style:n,initialParsedStyle:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!1}},r)])}return nt(t,e),Ue(t,[{key:"getTotalLength",value:function(){return Il(this)}},{key:"getPointAtLength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.getPoint(e/this.getTotalLength(),t)}},{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.parsedStyle.points.points;if(0===this.parsedStyle.points.segments.length){var r,i,o=[],a=0,s=this.getTotalLength();n.forEach(function(e,t){n[t+1]&&(r=[0,0],r[0]=a/s,i=zi(e[0],e[1],n[t+1][0],n[t+1][1]),a+=i,r[1]=a/s,o.push(r))}),this.parsedStyle.points.segments=o}var l=0,c=0;this.parsedStyle.points.segments.forEach(function(t,n){e>=t[0]&&e<=t[1]&&(l=(e-t[0])/(t[1]-t[0]),c=n)});var u=Wi(n[c][0],n[c][1],n[c+1][0],n[c+1][1],l),d=u.x,h=u.y,f=Ot(ht(),gt(d,h,0),t?this.getWorldTransform():this.getLocalTransform());return new Bo(f[0],f[1])}},{key:"getStartTangent",value:function(){var e=this.parsedStyle.points.points,t=[];return t.push([e[1][0],e[1][1]]),t.push([e[0][0],e[0][1]]),t}},{key:"getEndTangent",value:function(){var e=this.parsedStyle.points.points,t=e.length-1,n=[];return n.push([e[t-1][0],e[t-1][1]]),n.push([e[t][0],e[t][1]]),n}}])}(Ih);Nh.PARSED_STYLE_LIST=new Set([].concat(Ke(Ih.PARSED_STYLE_LIST),["points","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isBillboard"]));var Rh=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return $e(this,t),et(this,t,[(0,Fe.A)({type:_o.RECT},e)])}return nt(t,e),Ue(t)}(mh);Rh.PARSED_STYLE_LIST=new Set([].concat(Ke(mh.PARSED_STYLE_LIST),["x","y","z","width","height","isBillboard","isSizeAttenuation","radius"]));var Lh=["style"],Bh=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.style,r=bo(e,Lh);return $e(this,t),et(this,t,[(0,Fe.A)({type:_o.TEXT,style:(0,Fe.A)({fill:"black"},n)},r)])}return nt(t,e),Ue(t,[{key:"getComputedTextLength",value:function(){var e;return this.getGeometryBounds(),(null===(e=this.parsedStyle.metrics)||void 0===e?void 0:e.maxLineWidth)||0}},{key:"getLineBoundingRects",value:function(){var e;return this.getGeometryBounds(),(null===(e=this.parsedStyle.metrics)||void 0===e?void 0:e.lineMetrics)||[]}},{key:"isOverflowing",value:function(){return this.getGeometryBounds(),!!this.parsedStyle.isOverflowing}}])}(mh);Bh.PARSED_STYLE_LIST=new Set([].concat(Ke(mh.PARSED_STYLE_LIST),["x","y","z","isBillboard","billboardRotation","isSizeAttenuation","text","textAlign","textBaseline","fontStyle","fontSize","fontFamily","fontWeight","fontVariant","lineHeight","letterSpacing","leading","wordWrap","wordWrapWidth","maxLines","textOverflow","isOverflowing","textPath","textDecorationLine","textDecorationColor","textDecorationStyle","textPathSide","textPathStartOffset","metrics","dx","dy"]));var Ph=function(){function e(){$e(this,e),this.registry={},this.define(_o.CIRCLE,vh),this.define(_o.ELLIPSE,yh),this.define(_o.RECT,Rh),this.define(_o.IMAGE,Sh),this.define(_o.LINE,Th),this.define(_o.GROUP,_h),this.define(_o.PATH,Oh),this.define(_o.POLYGON,Ih),this.define(_o.POLYLINE,Nh),this.define(_o.TEXT,Bh),this.define(_o.HTML,Eh)}return Ue(e,[{key:"define",value:function(e,t){this.registry[e]=t}},{key:"get",value:function(e){return this.registry[e]}}])}(),Fh={number:function(e){return new Is(e)},percent:function(e){return new Is(e,"%")},px:function(e){return new Is(e,"px")},em:function(e){return new Is(e,"em")},rem:function(e){return new Is(e,"rem")},deg:function(e){return new Is(e,"deg")},grad:function(e){return new Is(e,"grad")},rad:function(e){return new Is(e,"rad")},turn:function(e){return new Is(e,"turn")},s:function(e){return new Is(e,"s")},ms:function(e){return new Is(e,"ms")},registerProperty:function(e){var t=e.name,n=e.inherits,r=e.interpolable,i=e.initialValue,o=e.syntax;nh.styleValueRegistry.registerMetadata({n:t,inh:n,int:r,d:i,syntax:o})},registerLayout:function(e,t){nh.layoutRegistry.registerLayout(e,t)}},$h=function(e){function t(){var e;$e(this,t),e=et(this,t),e.defaultView=null,e.ownerDocument=null,e.nodeName="document";try{e.timeline=new nh.AnimationTimeline(e)}catch(r){}var n={};return kc.forEach(function(e){var t=e.n,r=e.inh,i=e.d;r&&i&&(n[t]=ki(i)?i(_o.GROUP):i)}),e.documentElement=new _h({id:"g-root",style:n}),e.documentElement.ownerDocument=e,e.documentElement.parentNode=e,e.childNodes=[e.documentElement],e}return nt(t,e),Ue(t,[{key:"children",get:function(){return this.childNodes}},{key:"childElementCount",get:function(){return this.childNodes.length}},{key:"firstElementChild",get:function(){return this.firstChild}},{key:"lastElementChild",get:function(){return this.lastChild}},{key:"createElement",value:function(e,t){if("svg"===e)return this.documentElement;var n=this.defaultView.customElements.get(e);n||(console.warn("Unsupported tagName: ",e),n="tspan"===e?Bh:_h);var r=new n(t);return r.ownerDocument=this,r}},{key:"createElementNS",value:function(e,t,n){return this.createElement(t,n)}},{key:"cloneNode",value:function(e){throw new Error(Fo)}},{key:"destroy",value:function(){try{this.documentElement.destroyChildren(),this.timeline.destroy()}catch(e){}}},{key:"elementsFromBBox",value:function(e,t,n,r){var i=this.defaultView.context.rBushRoot,o=i.search({minX:e,minY:t,maxX:n,maxY:r}),a=[];return o.forEach(function(e){var t=e.displayObject,n=t.parsedStyle.pointerEvents,r=void 0===n?"auto":n,i=["auto","visiblepainted","visiblefill","visiblestroke","visible"].includes(r);(!i||i&&t.isVisible())&&!t.isCulled()&&t.isInteractive()&&a.push(t)}),a.sort(function(e,t){return t.sortable.renderOrder-e.sortable.renderOrder}),a}},{key:"elementFromPointSync",value:function(e,t){var n=this.defaultView.canvas2Viewport({x:e,y:t}),r=n.x,i=n.y,o=this.defaultView.getConfig(),a=o.width,s=o.height;if(r<0||i<0||r>a||i>s)return null;var l=this.defaultView.viewport2Client({x:r,y:i}),c=l.x,u=l.y,d=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!0,position:{x:e,y:t,viewportX:r,viewportY:i,clientX:c,clientY:u},picked:[]}),h=d.picked;return h&&h[0]||this.documentElement}},{key:"elementFromPoint",value:function(){var e=mo(po().mark(function e(t,n){var r,i,o,a,s,l,c,u,d,h,f;return po().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(r=this.defaultView.canvas2Viewport({x:t,y:n}),i=r.x,o=r.y,a=this.defaultView.getConfig(),s=a.width,l=a.height,!(i<0||o<0||i>s||o>l)){e.next=1;break}return e.abrupt("return",null);case 1:return c=this.defaultView.viewport2Client({x:i,y:o}),u=c.x,d=c.y,e.next=2,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!0,position:{x:t,y:n,viewportX:i,viewportY:o,clientX:u,clientY:d},picked:[]});case 2:return h=e.sent,f=h.picked,e.abrupt("return",f&&f[0]||this.documentElement);case 3:case"end":return e.stop()}},e,this)}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"elementsFromPointSync",value:function(e,t){var n=this.defaultView.canvas2Viewport({x:e,y:t}),r=n.x,i=n.y,o=this.defaultView.getConfig(),a=o.width,s=o.height;if(r<0||i<0||r>a||i>s)return[];var l=this.defaultView.viewport2Client({x:r,y:i}),c=l.x,u=l.y,d=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!1,position:{x:e,y:t,viewportX:r,viewportY:i,clientX:c,clientY:u},picked:[]}),h=d.picked;return h[h.length-1]!==this.documentElement&&h.push(this.documentElement),h}},{key:"elementsFromPoint",value:function(){var e=mo(po().mark(function e(t,n){var r,i,o,a,s,l,c,u,d,h,f;return po().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(r=this.defaultView.canvas2Viewport({x:t,y:n}),i=r.x,o=r.y,a=this.defaultView.getConfig(),s=a.width,l=a.height,!(i<0||o<0||i>s||o>l)){e.next=1;break}return e.abrupt("return",[]);case 1:return c=this.defaultView.viewport2Client({x:i,y:o}),u=c.x,d=c.y,e.next=2,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!1,position:{x:t,y:n,viewportX:i,viewportY:o,clientX:u,clientY:d},picked:[]});case 2:return h=e.sent,f=h.picked,f[f.length-1]!==this.documentElement&&f.push(this.documentElement),e.abrupt("return",f);case 3:case"end":return e.stop()}},e,this)}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"appendChild",value:function(e,t){throw new Error($o)}},{key:"insertBefore",value:function(e,t){throw new Error($o)}},{key:"removeChild",value:function(e,t){throw new Error($o)}},{key:"replaceChild",value:function(e,t,n){throw new Error($o)}},{key:"append",value:function(){throw new Error($o)}},{key:"prepend",value:function(){throw new Error($o)}},{key:"getElementById",value:function(e){return this.documentElement.getElementById(e)}},{key:"getElementsByName",value:function(e){return this.documentElement.getElementsByName(e)}},{key:"getElementsByTagName",value:function(e){return this.documentElement.getElementsByTagName(e)}},{key:"getElementsByClassName",value:function(e){return this.documentElement.getElementsByClassName(e)}},{key:"querySelector",value:function(e){return this.documentElement.querySelector(e)}},{key:"querySelectorAll",value:function(e){return this.documentElement.querySelectorAll(e)}},{key:"find",value:function(e){return this.documentElement.find(e)}},{key:"findAll",value:function(e){return this.documentElement.findAll(e)}}])}(hd),jh=function(){function e(t){$e(this,e),this.strategies=t}return Ue(e,[{key:"apply",value:function(t){var n=t.config,r=t.camera,i=t.renderingService,o=t.renderingContext,a=this.strategies;i.hooks.cull.tap(e.tag,function(e){if(e){var t,i=e.cullable;if(0===a.length?i.visible=o.unculledEntities.indexOf(e.entity)>-1:i.visible=a.every(function(t){return t.isVisible(r,e)}),!e.isCulled()&&e.isVisible())return e;var s=!0===(null===(t=n.future)||void 0===t?void 0:t.experimentalCancelEventPropagation);return e.dispatchEvent(new ud(yd.CULLED),s,s),null}return e}),i.hooks.afterRender.tap(e.tag,function(e){e.cullable.visibilityPlaneMask=-1})}}])}();jh.tag="Culling";var Hh=function(){function e(){var t=this;$e(this,e),this.autoPreventDefault=!1,this.rootPointerEvent=new ld(null),this.rootWheelEvent=new cd(null),this.onPointerMove=function(e){var n,r=null===(n=t.context.renderingContext.root)||void 0===n||null===(n=n.ownerDocument)||void 0===n?void 0:n.defaultView;if(!r.supportsTouchEvents||"touch"!==e.pointerType){var i,o=t.normalizeToPointerEvent(e,r),a=vo(o);try{for(a.s();!(i=a.n()).done;){var s=i.value,l=t.bootstrapEvent(t.rootPointerEvent,s,r,e);t.context.eventService.mapEvent(l)}}catch(c){a.e(c)}finally{a.f()}t.setCursor(t.context.eventService.cursor)}},this.onClick=function(e){var n,r,i=null===(n=t.context.renderingContext.root)||void 0===n||null===(n=n.ownerDocument)||void 0===n?void 0:n.defaultView,o=t.normalizeToPointerEvent(e,i),a=vo(o);try{for(a.s();!(r=a.n()).done;){var s=r.value,l=t.bootstrapEvent(t.rootPointerEvent,s,i,e);t.context.eventService.mapEvent(l)}}catch(c){a.e(c)}finally{a.f()}t.setCursor(t.context.eventService.cursor)}}return Ue(e,[{key:"apply",value:function(t){var n=this;this.context=t;var r=t.renderingService,i=this.context.renderingContext.root.ownerDocument.defaultView;this.context.eventService.setPickHandler(function(e){var t=n.context.renderingService.hooks.pickSync.call({position:e,picked:[],topmost:!0}),r=t.picked;return r[0]||null}),r.hooks.pointerWheel.tap(e.tag,function(e){var t=n.normalizeWheelEvent(e);n.context.eventService.mapEvent(t)}),r.hooks.pointerDown.tap(e.tag,function(e){if(!i.supportsTouchEvents||"touch"!==e.pointerType){var t=n.normalizeToPointerEvent(e,i);if(n.autoPreventDefault&&t[0].isNormalized){var r=e.cancelable||!("cancelable"in e);r&&e.preventDefault()}var o,a=vo(t);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=n.bootstrapEvent(n.rootPointerEvent,s,i,e);n.context.eventService.mapEvent(l)}}catch(c){a.e(c)}finally{a.f()}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerUp.tap(e.tag,function(e){if(!i.supportsTouchEvents||"touch"!==e.pointerType){var t,r=n.context.contextService.getDomElement(),o=n.context.eventService.isNativeEventFromCanvas(r,e),a=o?"":"outside",s=n.normalizeToPointerEvent(e,i),l=vo(s);try{for(l.s();!(t=l.n()).done;){var c=t.value,u=n.bootstrapEvent(n.rootPointerEvent,c,i,e);u.type+=a,n.context.eventService.mapEvent(u)}}catch(d){l.e(d)}finally{l.f()}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerMove.tap(e.tag,this.onPointerMove),r.hooks.pointerOver.tap(e.tag,this.onPointerMove),r.hooks.pointerOut.tap(e.tag,this.onPointerMove),r.hooks.click.tap(e.tag,this.onClick),r.hooks.pointerCancel.tap(e.tag,function(e){var t,r=n.normalizeToPointerEvent(e,i),o=vo(r);try{for(o.s();!(t=o.n()).done;){var a=t.value,s=n.bootstrapEvent(n.rootPointerEvent,a,i,e);n.context.eventService.mapEvent(s)}}catch(l){o.e(l)}finally{o.f()}n.setCursor(n.context.eventService.cursor)})}},{key:"bootstrapEvent",value:function(e,t,n,r){e.view=n,e.originalEvent=null,e.nativeEvent=r,e.pointerId=t.pointerId,e.width=t.width,e.height=t.height,e.isPrimary=t.isPrimary,e.pointerType=t.pointerType,e.pressure=t.pressure,e.tangentialPressure=t.tangentialPressure,e.tiltX=t.tiltX,e.tiltY=t.tiltY,e.twist=t.twist,this.transferMouseData(e,t);var i=this.context.eventService.client2Viewport({x:t.clientX,y:t.clientY}),o=i.x,a=i.y;e.viewport.x=o,e.viewport.y=a;var s=this.context.eventService.viewport2Canvas(e.viewport),l=s.x,c=s.y;return e.canvas.x=l,e.canvas.y=c,e.global.copyFrom(e.canvas),e.offset.copyFrom(e.canvas),e.isTrusted=r.isTrusted,"pointerleave"===e.type&&(e.type="pointerout"),e.type.startsWith("mouse")&&(e.type=e.type.replace("mouse","pointer")),e.type.startsWith("touch")&&(e.type=uu[e.type]||e.type),e}},{key:"normalizeWheelEvent",value:function(e){var t=this.rootWheelEvent;this.transferMouseData(t,e),t.deltaMode=e.deltaMode,t.deltaX=e.deltaX,t.deltaY=e.deltaY,t.deltaZ=e.deltaZ;var n=this.context.eventService.client2Viewport({x:e.clientX,y:e.clientY}),r=n.x,i=n.y;t.viewport.x=r,t.viewport.y=i;var o=this.context.eventService.viewport2Canvas(t.viewport),a=o.x,s=o.y;return t.canvas.x=a,t.canvas.y=s,t.global.copyFrom(t.canvas),t.offset.copyFrom(t.canvas),t.nativeEvent=e,t.type=e.type,t}},{key:"transferMouseData",value:function(e,t){e.isTrusted=t.isTrusted,e.srcElement=t.srcElement,e.timeStamp=du.now(),e.type=t.type,e.altKey=t.altKey,e.metaKey=t.metaKey,e.shiftKey=t.shiftKey,e.ctrlKey=t.ctrlKey,e.button=t.button,e.buttons=t.buttons,e.client.x=t.clientX,e.client.y=t.clientY,e.movement.x=t.movementX,e.movement.y=t.movementY,e.page.x=t.pageX,e.page.y=t.pageY,e.screen.x=t.screenX,e.screen.y=t.screenY,e.relatedTarget=null}},{key:"setCursor",value:function(e){this.context.contextService.applyCursorStyle(e||this.context.config.cursor||"default")}},{key:"normalizeToPointerEvent",value:function(e,t){var n=[];if(t.isTouchEvent(e))for(var r=0;r<e.changedTouches.length;r++){var i=e.changedTouches[r];Si(i.button)&&(i.button=0),Si(i.buttons)&&(i.buttons=1),Si(i.isPrimary)&&(i.isPrimary=1===e.touches.length&&"touchstart"===e.type),Si(i.width)&&(i.width=i.radiusX||1),Si(i.height)&&(i.height=i.radiusY||1),Si(i.tiltX)&&(i.tiltX=0),Si(i.tiltY)&&(i.tiltY=0),Si(i.pointerType)&&(i.pointerType="touch"),Si(i.pointerId)&&(i.pointerId=i.identifier||0),Si(i.pressure)&&(i.pressure=i.force||.5),Si(i.twist)&&(i.twist=0),Si(i.tangentialPressure)&&(i.tangentialPressure=0),i.isNormalized=!0,i.type=e.type,n.push(i)}else if(t.isMouseEvent(e)){var o=e;Si(o.isPrimary)&&(o.isPrimary=!0),Si(o.width)&&(o.width=1),Si(o.height)&&(o.height=1),Si(o.tiltX)&&(o.tiltX=0),Si(o.tiltY)&&(o.tiltY=0),Si(o.pointerType)&&(o.pointerType="mouse"),Si(o.pointerId)&&(o.pointerId=cu),Si(o.pressure)&&(o.pressure=.5),Si(o.twist)&&(o.twist=0),Si(o.tangentialPressure)&&(o.tangentialPressure=0),o.isNormalized=!0,n.push(o)}else n.push(e);return n}}])}();Hh.tag="Event";var Uh=[_o.CIRCLE,_o.ELLIPSE,_o.IMAGE,_o.RECT,_o.LINE,_o.POLYLINE,_o.POLYGON,_o.TEXT,_o.PATH,_o.HTML],Qh=function(){function e(){$e(this,e)}return Ue(e,[{key:"isVisible",value:function(e,t){var n,r=t.cullable;if(!r.enable)return!0;var i=t.getRenderBounds();if(Do.isEmpty(i))return!1;var o=e.getFrustum(),a=null===(n=t.parentNode)||void 0===n||null===(n=n.cullable)||void 0===n?void 0:n.visibilityPlaneMask;return r.visibilityPlaneMask=this.computeVisibilityWithPlaneMask(t,i,a||Ro.INDETERMINATE,o.planes),r.visible=r.visibilityPlaneMask!==Ro.OUTSIDE,r.visible}},{key:"computeVisibilityWithPlaneMask",value:function(e,t,n,r){if(n===Ro.OUTSIDE||n===Ro.INSIDE)return n;for(var i=Ro.INSIDE,o=Uh.indexOf(e.nodeName)>-1,a=0,s=r.length;a<s;++a){var l=1<<a;if(0!==(n&l)&&(!o||4!==a&&5!==a)){var c=r[a],u=c.normal,d=c.distance;if(Ct(u,t.getPositiveFarPoint(r[a]))+d<0)return Ro.OUTSIDE;Ct(u,t.getNegativeFarPoint(r[a]))+d<0&&(i|=l)}}return i}}])}(),zh=function(){function e(){$e(this,e),this.syncTasks=new Map,this.isFirstTimeRendering=!0,this.syncing=!1,this.isFirstTimeRenderingFinished=!1}return Ue(e,[{key:"apply",value:function(t){var n,r,i=this,o=t.config,a=t.renderingService,s=t.renderingContext,l=t.rBushRoot,c=s.root.ownerDocument.defaultView;this.rBush=l;var u=function(e){a.dirtify()},d=function(e){i.syncTasks.set(e.target,e.detail.affectChildren),a.dirtify()},h=function(e){var t=e.target;nh.enableSizeAttenuation&&nh.styleValueRegistry.updateSizeAttenuation(t,c.getCamera().getZoom())},f=function(e){var t=e.target,n=t.rBushNode;null!==n&&void 0!==n&&n.aabb&&i.rBush.remove(n.aabb),i.syncTasks["delete"](t),nh.sceneGraphService.dirtyToRoot(t),a.dirtify()};a.hooks.init.tap(e.tag,function(){c.addEventListener(yd.MOUNTED,h),c.addEventListener(yd.UNMOUNTED,f),c.addEventListener(yd.ATTR_MODIFIED,u),c.addEventListener(yd.BOUNDS_CHANGED,d)}),a.hooks.destroy.tap(e.tag,function(){c.removeEventListener(yd.MOUNTED,h),c.removeEventListener(yd.UNMOUNTED,f),c.removeEventListener(yd.ATTR_MODIFIED,u),c.removeEventListener(yd.BOUNDS_CHANGED,d),i.syncTasks.clear()});var p=null!==(n=nh.globalThis.requestIdleCallback)&&void 0!==n?n:ku.bind(nh.globalThis),g=!0===(null===(r=o.future)||void 0===r?void 0:r.experimentalRICSyncRTree);a.hooks.endFrame.tap(e.tag,function(){i.isFirstTimeRendering?(i.isFirstTimeRendering=!1,i.syncing=!0,p(function(){i.syncRTree(!0),i.isFirstTimeRenderingFinished=!0})):g&&nh.globalThis.requestIdleCallback&&nh.globalThis.cancelIdleCallback?(nh.globalThis.cancelIdleCallback(i.ricSyncRTreeId),i.ricSyncRTreeId=nh.globalThis.requestIdleCallback(function(){return i.syncRTree()})):i.syncRTree()})}},{key:"syncNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.isConnected){var n=e.rBushNode;n.aabb&&this.rBush.remove(n.aabb);var r=e.getRenderBounds();if(r){var i=e.renderable;t&&(i.dirtyRenderBounds||(i.dirtyRenderBounds=new Do),i.dirtyRenderBounds.update(r.center,r.halfExtents));var o=r.getMin(),a=at(o,2),s=a[0],l=a[1],c=r.getMax(),u=at(c,2),d=u[0],h=u[1];n.aabb||(n.aabb={}),n.aabb.displayObject=e,n.aabb.minX=s,n.aabb.minY=l,n.aabb.maxX=d,n.aabb.maxY=h}return!n.aabb||isNaN(n.aabb.maxX)||isNaN(n.aabb.maxX)||isNaN(n.aabb.minX)||isNaN(n.aabb.minY)?void 0:n.aabb}}},{key:"syncRTree",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t||!this.syncing&&0!==this.syncTasks.size){this.syncing=!0;var n=[],r=new Set,i=function(i){if(!r.has(i)&&i.renderable){var o=e.syncNode(i,t);o&&(n.push(o),r.add(i))}};this.syncTasks.forEach(function(e,t){e&&t.forEach(i);var n=t;while(n)i(n),n=n.parentElement}),this.rBush.load(n),n.length=0,this.syncing=!1}}}])}();zh.tag="Prepare";var Wh=function(e){return e["READY"]="ready",e["BEFORE_RENDER"]="beforerender",e["RERENDER"]="rerender",e["AFTER_RENDER"]="afterrender",e["BEFORE_DESTROY"]="beforedestroy",e["AFTER_DESTROY"]="afterdestroy",e["RESIZE"]="resize",e["DIRTY_RECTANGLE"]="dirtyrectangle",e["RENDERER_CHANGED"]="rendererchanged",e}({}),Gh=500,Vh=.1,Kh=1e3,Yh=new ud(yd.MOUNTED),qh=new ud(yd.UNMOUNTED),Xh=new ud(Wh.BEFORE_RENDER),Jh=new ud(Wh.RERENDER),Zh=new ud(Wh.AFTER_RENDER),ef=function(e){function t(e){var n;$e(this,t),n=et(this,t),n.Element=mh,n.inited=!1,n.context={};var r=e.container,i=e.canvas,o=e.renderer,a=e.width,s=e.height,l=e.background,c=e.cursor,u=e.supportsMutipleCanvasesInOneContainer,d=e.cleanUpOnDestroy,h=void 0===d||d,f=e.offscreenCanvas,p=e.devicePixelRatio,g=e.requestAnimationFrame,m=e.cancelAnimationFrame,v=e.createImage,A=e.supportsTouchEvents,b=e.supportsPointerEvents,y=e.isTouchEvent,w=e.isMouseEvent,_=e.dblClickSpeed,x=a,E=s,S=p||Zc&&window.devicePixelRatio||1;return S=S>=1?Math.ceil(S):1,i&&(x=a||su(i)||i.width/S,E=s||lu(i)||i.height/S),n.customElements=new Ph,n.devicePixelRatio=S,n.requestAnimationFrame=null!==g&&void 0!==g?g:ku.bind(nh.globalThis),n.cancelAnimationFrame=null!==m&&void 0!==m?m:Ou.bind(nh.globalThis),n.createImage=null!==v&&void 0!==v?v:function(){return new window.Image},n.supportsTouchEvents=null!==A&&void 0!==A?A:"ontouchstart"in nh.globalThis,n.supportsPointerEvents=null!==b&&void 0!==b?b:!!nh.globalThis.PointerEvent,n.isTouchEvent=null!==y&&void 0!==y?y:function(e){return n.supportsTouchEvents&&e instanceof nh.globalThis.TouchEvent},n.isMouseEvent=null!==w&&void 0!==w?w:function(e){return!nh.globalThis.MouseEvent||e instanceof nh.globalThis.MouseEvent&&(!n.supportsPointerEvents||!(e instanceof nh.globalThis.PointerEvent))},f&&(nh.offscreenCanvas=f),n.document=new $h,n.document.defaultView=n,u||Jc(r,n,h),n.initRenderingContext((0,Fe.A)((0,Fe.A)({},e),{},{width:x,height:E,background:null!==l&&void 0!==l?l:"transparent",cursor:null!==c&&void 0!==c?c:"default",cleanUpOnDestroy:h,devicePixelRatio:S,requestAnimationFrame:n.requestAnimationFrame,cancelAnimationFrame:n.cancelAnimationFrame,createImage:n.createImage,supportsTouchEvents:n.supportsTouchEvents,supportsPointerEvents:n.supportsPointerEvents,isTouchEvent:n.isTouchEvent,isMouseEvent:n.isMouseEvent,dblClickSpeed:null!==_&&void 0!==_?_:200})),n.initDefaultCamera(x,E,o.clipSpaceNearZ),n.initRenderer(o,!0),n}return nt(t,e),Ue(t,[{key:"initRenderingContext",value:function(e){this.context.config=e,this.context.renderingContext={root:this.document.documentElement,unculledEntities:[],renderListCurrentFrame:[],renderReasons:new Set,force:!1,dirty:!1}}},{key:"initDefaultCamera",value:function(e,t,n){var r=this,i=new nh.CameraContribution;i.clipSpaceNearZ=n,i.setType(da.EXPLORING,ha.DEFAULT).setPosition(e/2,t/2,Gh).setFocalPoint(e/2,t/2,0).setOrthographic(e/-2,e/2,t/2,t/-2,Vh,Kh),i.canvas=this,i.eventEmitter.on(pa.UPDATED,function(){r.context.renderingContext.renderReasons.add(md.CAMERA_CHANGED),nh.enableSizeAttenuation&&r.getConfig().renderer.getConfig().enableSizeAttenuation&&r.updateSizeAttenuation()}),this.context.camera=i}},{key:"updateSizeAttenuation",value:function(){var e=this.getCamera().getZoom();this.document.documentElement.forEach(function(t){nh.styleValueRegistry.updateSizeAttenuation(t,e)})}},{key:"getConfig",value:function(){return this.context.config}},{key:"getRoot",value:function(){return this.document.documentElement}},{key:"getCamera",value:function(){return this.context.camera}},{key:"getContextService",value:function(){return this.context.contextService}},{key:"getEventService",value:function(){return this.context.eventService}},{key:"getRenderingService",value:function(){return this.context.renderingService}},{key:"getRenderingContext",value:function(){return this.context.renderingContext}},{key:"getStats",value:function(){return this.getRenderingService().getStats()}},{key:"ready",get:function(){var e=this;return this.readyPromise||(this.readyPromise=new Promise(function(t){e.resolveReadyPromise=function(){t(e)}}),this.inited&&this.resolveReadyPromise()),this.readyPromise}},{key:"destroy",value:function(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1?arguments[1]:void 0;ds.clearCache();var r=!0===(null===(e=this.getConfig().future)||void 0===e?void 0:e.experimentalCancelEventPropagation);n||this.dispatchEvent(new ud(Wh.BEFORE_DESTROY),r,r),this.frameId&&this.cancelAnimationFrame(this.frameId);var i=this.getRoot();t&&(this.unmountChildren(i),this.document.destroy(),this.getEventService().destroy()),this.getRenderingService().destroy(),this.getContextService().destroy(),this.context.rBushRoot&&this.context.rBushRoot.clear(),n||this.dispatchEvent(new ud(Wh.AFTER_DESTROY),r,r);var o=function(e){e.currentTarget=null,e.manager=null,e.target=null,e.relatedNode=null};o(Yh),o(qh),o(Xh),o(Jh),o(Zh),o(fh),o(sh),o(lh),o(ch),nh.textService.clearCache()}},{key:"changeSize",value:function(e,t){this.resize(e,t)}},{key:"resize",value:function(e,t){var n,r=this.context.config;r.width=e,r.height=t,this.getContextService().resize(e,t);var i=this.context.camera,o=i.getProjectionMode();i.setPosition(e/2,t/2,Gh).setFocalPoint(e/2,t/2,0),o===fa.ORTHOGRAPHIC?i.setOrthographic(e/-2,e/2,t/2,t/-2,i.getNear(),i.getFar()):i.setAspect(e/t);var a=!0===(null===(n=r.future)||void 0===n?void 0:n.experimentalCancelEventPropagation);this.dispatchEvent(new ud(Wh.RESIZE,{width:e,height:t}),a,a)}},{key:"appendChild",value:function(e,t){return this.document.documentElement.appendChild(e,t)}},{key:"insertBefore",value:function(e,t){return this.document.documentElement.insertBefore(e,t)}},{key:"removeChild",value:function(e){return this.document.documentElement.removeChild(e)}},{key:"removeChildren",value:function(){this.document.documentElement.removeChildren()}},{key:"destroyChildren",value:function(){this.document.documentElement.destroyChildren()}},{key:"render",value:function(e){var t,n=this;e&&(Xh.detail=e,Zh.detail=e);var r=!0===(null===(t=this.getConfig().future)||void 0===t?void 0:t.experimentalCancelEventPropagation);this.dispatchEvent(Xh,r,r);var i=this.getRenderingService();i.render(this.getConfig(),e,function(){n.dispatchEvent(Jh,r,r)}),this.dispatchEvent(Zh,r,r)}},{key:"run",value:function(){var e=this,t=function(n,r){e.render(r),e.frameId=e.requestAnimationFrame(t)};t()}},{key:"initRenderer",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)throw new Error("Renderer is required.");this.inited=!1,this.readyPromise=void 0,this.context.rBushRoot=new wo,this.context.renderingPlugins=[],this.context.renderingPlugins.push(new Hh,new zh,new jh([new Qh])),this.loadRendererContainerModule(e),this.context.contextService=new this.context.ContextService((0,Fe.A)((0,Fe.A)({},nh),this.context)),this.context.renderingService=new vd(nh,this.context),this.context.eventService=new pd(nh,this.context),this.context.eventService.init(),this.context.contextService.init?(this.context.contextService.init(),this.initRenderingService(e,n,!0)):this.context.contextService.initAsync().then(function(){t.initRenderingService(e,n)})["catch"](function(e){console.error(e)})}},{key:"initRenderingService",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.context.renderingService.init(function(){var i;t.inited=!0;var o=!0===(null===(i=t.getConfig().future)||void 0===i?void 0:i.experimentalCancelEventPropagation);n?r?t.requestAnimationFrame(function(){t.dispatchEvent(new ud(Wh.READY),o,o)}):t.dispatchEvent(new ud(Wh.READY),o,o):t.dispatchEvent(new ud(Wh.RENDERER_CHANGED),o,o),t.readyPromise&&t.resolveReadyPromise(),n||t.getRoot().forEach(function(e){var t,n;null===(t=(n=e).dirty)||void 0===t||t.call(n,!0,!0)}),t.mountChildren(t.getRoot()),e.getConfig().enableAutoRendering&&t.run()})}},{key:"loadRendererContainerModule",value:function(e){var t=this,n=e.getPlugins();n.forEach(function(e){e.context=t.context,e.init(nh)})}},{key:"setRenderer",value:function(e){var t=this.getConfig();if(t.renderer!==e){var n=t.renderer;t.renderer=e,this.destroy(!1,!0),Ke((null===n||void 0===n?void 0:n.getPlugins())||[]).reverse().forEach(function(e){e.destroy(nh)}),this.initRenderer(e)}}},{key:"setCursor",value:function(e){var t=this.getConfig();t.cursor=e,this.getContextService().applyCursorStyle(e)}},{key:"unmountChildren",value:function(e){var t=this;if(e.childNodes.forEach(function(e){t.unmountChildren(e)}),this.inited){if(e.isMutationObserved)e.dispatchEvent(qh);else{var n,r=!0===(null===(n=this.getConfig().future)||void 0===n?void 0:n.experimentalCancelEventPropagation);qh.target=e,this.dispatchEvent(qh,!0,r)}e!==this.document.documentElement&&(e.ownerDocument=null),e.isConnected=!1}e.isCustomElement&&e.disconnectedCallback&&e.disconnectedCallback()}},{key:"mountChildren",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hu(e);if(this.inited){if(!e.isConnected&&(e.ownerDocument=this.document,e.isConnected=!0,!n))if(e.isMutationObserved)e.dispatchEvent(Yh);else{var r,i=!0===(null===(r=this.getConfig().future)||void 0===r?void 0:r.experimentalCancelEventPropagation);Yh.target=e,this.dispatchEvent(Yh,!0,i)}}else console.warn("[g]: You are trying to call `canvas.appendChild` before canvas' initialization finished. You can either await `canvas.ready` or listen to `CanvasEvent.READY` manually.","appended child: ",e.nodeName);e.childNodes.forEach(function(e){t.mountChildren(e,n)}),e.isCustomElement&&e.connectedCallback&&e.connectedCallback()}},{key:"mountFragment",value:function(e){this.mountChildren(e,!1)}},{key:"client2Viewport",value:function(e){return this.getEventService().client2Viewport(e)}},{key:"viewport2Client",value:function(e){return this.getEventService().viewport2Client(e)}},{key:"viewport2Canvas",value:function(e){return this.getEventService().viewport2Canvas(e)}},{key:"canvas2Viewport",value:function(e){return this.getEventService().canvas2Viewport(e)}},{key:"getPointByClient",value:function(e,t){return this.client2Viewport({x:e,y:t})}},{key:"getClientByPoint",value:function(e,t){return this.viewport2Client({x:e,y:t})}}])}(dd),tf=function(e){function t(){var e;$e(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=et(this,t,[].concat(r)),e.landmarks=[],e}return nt(t,e),Ue(t,[{key:"rotate",value:function(e,t,n){if(this.relElevation=Ho(t),this.relAzimuth=Ho(e),this.relRoll=Ho(n),this.elevation+=this.relElevation,this.azimuth+=this.relAzimuth,this.roll+=this.relRoll,this.type===da.EXPLORING){var r=Wn(zn(),[1,0,0],Wo((this.rotateWorld?1:-1)*this.relElevation)),i=Wn(zn(),[0,1,0],Wo((this.rotateWorld?1:-1)*this.relAzimuth)),o=Wn(zn(),[0,0,1],Wo(this.relRoll)),a=Gn(zn(),i,r);a=Gn(zn(),a,o);var s=yn(Ut(),a);Zt(this.matrix,this.matrix,[0,0,-this.distance]),Jt(this.matrix,this.matrix,s),Zt(this.matrix,this.matrix,[0,0,this.distance])}else{if(Math.abs(this.elevation)>90)return this;this.computeMatrix()}return this._getAxes(),this.type===da.ORBITING||this.type===da.EXPLORING?this._getPosition():this.type===da.TRACKING&&this._getFocalPoint(),this._update(),this}},{key:"pan",value:function(e,t){var n=Qo(e,t,0),r=ft(this.position);return At(r,r,xt(ht(),this.right,n[0])),At(r,r,xt(ht(),this.up,n[1])),this._setPosition(r),this.triggerUpdate(),this}},{key:"dolly",value:function(e){var t=this.forward,n=ft(this.position),r=e*this.dollyingStep,i=this.distance+e*this.dollyingStep;return r=Math.max(Math.min(i,this.maxDistance),this.minDistance)-this.distance,n[0]+=r*t[0],n[1]+=r*t[1],n[2]+=r*t[2],this._setPosition(n),this.type===da.ORBITING||this.type===da.EXPLORING?this._getDistance():this.type===da.TRACKING&&At(this.focalPoint,n,this.distanceVector),this.triggerUpdate(),this}},{key:"cancelLandmarkAnimation",value:function(){void 0!==this.landmarkAnimationID&&this.canvas.cancelAnimationFrame(this.landmarkAnimationID)}},{key:"createLandmark",value:function(e){var t,n,r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.position,s=void 0===a?this.position:a,l=o.focalPoint,c=void 0===l?this.focalPoint:l,u=o.roll,d=o.zoom,h=new nh.CameraContribution;h.setType(this.type,void 0),h.setPosition(s[0],null!==(t=s[1])&&void 0!==t?t:this.position[1],null!==(n=s[2])&&void 0!==n?n:this.position[2]),h.setFocalPoint(c[0],null!==(r=c[1])&&void 0!==r?r:this.focalPoint[1],null!==(i=c[2])&&void 0!==i?i:this.focalPoint[2]),h.setRoll(null!==u&&void 0!==u?u:this.roll),h.setZoom(null!==d&&void 0!==d?d:this.zoom);var f={name:e,matrix:Qt(h.getWorldTransform()),right:ft(h.right),up:ft(h.up),forward:ft(h.forward),position:ft(h.getPosition()),focalPoint:ft(h.getFocalPoint()),distanceVector:ft(h.getDistanceVector()),distance:h.getDistance(),dollyingStep:h.getDollyingStep(),azimuth:h.getAzimuth(),elevation:h.getElevation(),roll:h.getRoll(),relAzimuth:h.relAzimuth,relElevation:h.relElevation,relRoll:h.relRoll,zoom:h.getZoom()};return this.landmarks.push(f),f}},{key:"gotoLandmark",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=dr(e)?this.landmarks.find(function(t){return t.name===e}):e;if(r){var i=lr(n)?{duration:n}:n,o=i.easing,a=void 0===o?"linear":o,s=i.duration,l=void 0===s?100:s,c=i.easingFunction,u=void 0===c?void 0:c,d=i.onfinish,h=void 0===d?void 0:d,f=i.onframe,p=void 0===f?void 0:f,g=.01;this.cancelLandmarkAnimation();var m,v=r.position,A=r.focalPoint,b=r.zoom,y=r.roll,w=u||nh.EasingFunction(a),_=function(){t.setFocalPoint(A),t.setPosition(v),t.setRoll(y),t.setZoom(b),t.computeMatrix(),t.triggerUpdate(),null===h||void 0===h||h()};if(0===l)return _();var x=function(e){void 0===m&&(m=e);var n=e-m;if(n>=l)_();else{var r=w(n/l),i=ht(),o=ht(),a=1,s=0;kt(i,t.focalPoint,A,r),kt(o,t.position,v,r),s=t.roll*(1-r)+y*r,a=t.zoom*(1-r)+b*r,t.setFocalPoint(i),t.setPosition(o),t.setRoll(s),t.setZoom(a);var c=Rt(i,A)+Rt(o,v);if(c<=g&&void 0===b&&void 0===y)return _();t.computeMatrix(),t.triggerUpdate(),n<l&&(null===p||void 0===p||p(r),t.landmarkAnimationID=t.canvas.requestAnimationFrame(x))}};this.canvas.requestAnimationFrame(x)}}}])}(ma);nh.CameraContribution=tf;
/*!
 * @antv/g-dom-mutation-observer-api
 * @description A simple implementation of DOM MutationObserver API.
 * @version 2.0.38
 * @date 7/30/2025, 1:34:51 PM
 * @author AntVis
 * @docs https://g.antv.antgroup.com/
 */
new WeakMap;
/*!
 * @antv/g-web-animations-api
 * @description A simple implementation of Web Animations API.
 * @version 2.1.28
 * @date 7/30/2025, 1:36:24 PM
 * @author AntVis
 * @docs https://g.antv.antgroup.com/
 */
var nf=function(e){function t(e,n,r,i){var o;return $e(this,t),o=et(this,t,[e]),o.currentTime=r,o.timelineTime=i,o.target=n,o.type="finish",o.bubbles=!1,o.currentTarget=n,o.defaultPrevented=!1,o.eventPhase=o.AT_TARGET,o.timeStamp=Date.now(),o.currentTime=r,o.timelineTime=i,o}return nt(t,e),Ue(t)}(ad),rf=0,of=function(){function e(t,n){var r;$e(this,e),this.currentTimePending=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._playbackRate=1,this._inTimeline=!0,this.effect=t,t.animation=this,this.timeline=n,this.id="".concat(rf++),this._inEffect=!!this.effect.update(0),this._totalDuration=Number(null===(r=this.effect)||void 0===r?void 0:r.getComputedTiming().endTime),this._holdTime=0,this._paused=!1,this.oldPlayState="idle",this.updatePromises()}return Ue(e,[{key:"pending",get:function(){return null===this._startTime&&!this._paused&&0!==this.playbackRate||this.currentTimePending}},{key:"playState",get:function(){return this._idle?"idle":this._isFinished?"finished":this._paused?"paused":"running"}},{key:"ready",get:function(){var e=this;return this.readyPromise||(-1===this.timeline.animationsWithPromises.indexOf(this)&&this.timeline.animationsWithPromises.push(this),this.readyPromise=new Promise(function(t,n){e.resolveReadyPromise=function(){t(e)},e.rejectReadyPromise=function(){n(new Error)}}),this.pending||this.resolveReadyPromise()),this.readyPromise}},{key:"finished",get:function(){var e=this;return this.finishedPromise||(-1===this.timeline.animationsWithPromises.indexOf(this)&&this.timeline.animationsWithPromises.push(this),this.finishedPromise=new Promise(function(t,n){e.resolveFinishedPromise=function(){t(e)},e.rejectFinishedPromise=function(){n(new Error)}}),"finished"===this.playState&&this.resolveFinishedPromise()),this.finishedPromise}},{key:"currentTime",get:function(){return this.updatePromises(),this._idle||this.currentTimePending?null:this._currentTime},set:function(e){if(e=Number(e),!isNaN(e)){var t;if(this.timeline.restart(),!this._paused&&null!==this._startTime)this._startTime=Number(null===(t=this.timeline)||void 0===t?void 0:t.currentTime)-e/this.playbackRate;this.currentTimePending=!1,this._currentTime!==e&&(this._idle&&(this._idle=!1,this._paused=!0),this.tickCurrentTime(e,!0),this.timeline.applyDirtiedAnimation(this))}}},{key:"startTime",get:function(){return this._startTime},set:function(e){if(null!==e){if(this.updatePromises(),e=Number(e),isNaN(e))return;if(this._paused||this._idle)return;this._startTime=e,this.tickCurrentTime((Number(this.timeline.currentTime)-this._startTime)*this.playbackRate),this.timeline.applyDirtiedAnimation(this),this.updatePromises()}}},{key:"playbackRate",get:function(){return this._playbackRate},set:function(e){if(e!==this._playbackRate){this.updatePromises();var t=this.currentTime;this._playbackRate=e,this.startTime=null,"paused"!==this.playState&&"idle"!==this.playState&&(this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this)),null!==t&&(this.currentTime=t),this.updatePromises()}}},{key:"_isFinished",get:function(){return!this._idle&&(this._playbackRate>0&&Number(this._currentTime)>=this._totalDuration||this._playbackRate<0&&Number(this._currentTime)<=0)}},{key:"totalDuration",get:function(){return this._totalDuration}},{key:"_needsTick",get:function(){return this.pending||"running"===this.playState||!this._finishedFlag}},{key:"updatePromises",value:function(){var e;if(null!==(e=this.effect.target)&&void 0!==e&&e.destroyed)return this.readyPromise=void 0,this.finishedPromise=void 0,!1;var t=this.oldPlayState,n=this.pending?"pending":this.playState;return this.readyPromise&&n!==t&&("idle"===n?(this.rejectReadyPromise(),this.readyPromise=void 0):"pending"===t?this.resolveReadyPromise():"pending"===n&&(this.readyPromise=void 0)),this.finishedPromise&&n!==t&&("idle"===n?(this.rejectFinishedPromise(),this.finishedPromise=void 0):"finished"===n?this.resolveFinishedPromise():"finished"===t&&(this.finishedPromise=void 0)),this.oldPlayState=n,this.readyPromise||this.finishedPromise}},{key:"play",value:function(){this.updatePromises(),this._paused=!1,(this._isFinished||this._idle)&&(this.rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this),-1===this.timeline.animations.indexOf(this)&&this.timeline.animations.push(this),this.updatePromises()}},{key:"pause",value:function(){this.updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),this._isFinished||this._paused||this._idle?this._idle&&(this.rewind(),this._idle=!1):this.currentTimePending=!0,this._startTime=null,this._paused=!0,this.updatePromises()}},{key:"finish",value:function(){this.updatePromises(),this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this.currentTimePending=!1,this.timeline.applyDirtiedAnimation(this),this.updatePromises())}},{key:"cancel",value:function(){var e=this;if(this.updatePromises(),this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this.effect.update(null),this.timeline.applyDirtiedAnimation(this),this.updatePromises(),this.oncancel)){var t=new nf(null,this,this.currentTime,null);setTimeout(function(){e.oncancel(t)})}}},{key:"reverse",value:function(){this.updatePromises();var e=this.currentTime;this.playbackRate*=-1,this.play(),null!==e&&(this.currentTime=e),this.updatePromises()}},{key:"updatePlaybackRate",value:function(e){this.playbackRate=e}},{key:"targetAnimations",value:function(){var e,t=null===(e=this.effect)||void 0===e?void 0:e.target;return t.getAnimations()}},{key:"markTarget",value:function(){var e=this.targetAnimations();-1===e.indexOf(this)&&e.push(this)}},{key:"unmarkTarget",value:function(){var e=this.targetAnimations(),t=e.indexOf(this);-1!==t&&e.splice(t,1)}},{key:"tick",value:function(e,t){this._idle||this._paused||(null===this._startTime?t&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this.tickCurrentTime((e-this._startTime)*this.playbackRate)),t&&(this.currentTimePending=!1,this.fireEvents(e))}},{key:"rewind",value:function(){if(this.playbackRate>=0)this.currentTime=0;else{if(!(this._totalDuration<1/0))throw new Error("Unable to rewind negative playback rate animation with infinite duration");this.currentTime=this._totalDuration}}},{key:"persist",value:function(){throw new Error(Fo)}},{key:"addEventListener",value:function(e,t,n){throw new Error(Fo)}},{key:"removeEventListener",value:function(e,t,n){throw new Error(Fo)}},{key:"dispatchEvent",value:function(e){throw new Error(Fo)}},{key:"commitStyles",value:function(){throw new Error(Fo)}},{key:"ensureAlive",value:function(){var e,t;this.playbackRate<0&&0===this.currentTime?this._inEffect=!(null===(e=this.effect)||void 0===e||!e.update(-1)):this._inEffect=!(null===(t=this.effect)||void 0===t||!t.update(this.currentTime));this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,this.timeline.animations.push(this))}},{key:"tickCurrentTime",value:function(e,t){e!==this._currentTime&&(this._currentTime=e,this._isFinished&&!t&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this.ensureAlive())}},{key:"fireEvents",value:function(e){var t=this;if(this._isFinished){if(!this._finishedFlag){if(this.onfinish){var n=new nf(null,this,this.currentTime,e);setTimeout(function(){t.onfinish&&t.onfinish(n)})}this._finishedFlag=!0}}else{if(this.onframe&&"running"===this.playState){var r=new nf(null,this,this.currentTime,e);this.onframe(r)}this._finishedFlag=!1}}}])}(),af=4,sf=.001,lf=1e-7,cf=10,uf=11,df=1/(uf-1),hf="function"===typeof Float32Array,ff=function(e,t){return 1-3*t+3*e},pf=function(e,t){return 3*t-6*e},gf=function(e){return 3*e},mf=function(e,t,n){return((ff(t,n)*e+pf(t,n))*e+gf(t))*e},vf=function(e,t,n){return 3*ff(t,n)*e*e+2*pf(t,n)*e+gf(t)},Af=function(e,t,n,r,i){var o,a,s=0;do{a=t+(n-t)/2,o=mf(a,r,i)-e,o>0?n=a:t=a}while(Math.abs(o)>lf&&++s<cf);return a},bf=function(e,t,n,r){for(var i=0;i<af;++i){var o=vf(t,n,r);if(0===o)return t;var a=mf(t,n,r)-e;t-=a/o}return t},yf=function(e,t,n,r){if(!(e>=0&&e<=1&&n>=0&&n<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===t&&n===r)return function(e){return e};for(var i=hf?new Float32Array(uf):new Array(uf),o=0;o<uf;++o)i[o]=mf(o*df,e,n);var a=function(t){for(var r=0,o=1,a=uf-1;o!==a&&i[o]<=t;++o)r+=df;--o;var s=(t-i[o])/(i[o+1]-i[o]),l=r+s*df,c=vf(l,e,n);return c>=sf?bf(t,l,e,n):0===c?l:Af(t,r,r+df,e,n)};return function(e){return 0===e||1===e?e:mf(a(e),t,r)}},wf=function(e){return e=e.replace(/([A-Z])/g,function(e){return"-".concat(e.toLowerCase())}),"-"===e.charAt(0)?e.substring(1):e},_f=function(e){return Math.pow(e,2)},xf=function(e){return Math.pow(e,3)},Ef=function(e){return Math.pow(e,4)},Sf=function(e){return Math.pow(e,5)},Cf=function(e){return Math.pow(e,6)},Tf=function(e){return 1-Math.cos(e*Math.PI/2)},kf=function(e){return 1-Math.sqrt(1-e*e)},Of=function(e){return e*e*(3*e-2)},Mf=function(e){var t,n=4;while(e<((t=Math.pow(2,--n))-1)/11);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)},If=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=at(t,2),r=n[0],i=void 0===r?1:r,o=n[1],a=void 0===o?.5:o,s=fr(Number(i),1,10),l=fr(Number(a),.1,2);return 0===e||1===e?e:-s*Math.pow(2,10*(e-1))*Math.sin((e-1-l/(2*Math.PI)*Math.asin(1/s))*(2*Math.PI)/l)},Df=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=at(t,4),i=r[0],o=void 0===i?1:i,a=r[1],s=void 0===a?100:a,l=r[2],c=void 0===l?10:l,u=r[3],d=void 0===u?0:u;o=fr(o,.1,1e3),s=fr(s,.1,1e3),c=fr(c,.1,1e3),d=fr(d,.1,1e3);var h=Math.sqrt(s/o),f=c/(2*Math.sqrt(s*o)),p=f<1?h*Math.sqrt(1-f*f):0,g=1,m=f<1?(f*h-d)/p:-d+h,v=n?n*e/1e3:e;return v=f<1?Math.exp(-v*f*h)*(g*Math.cos(p*v)+m*Math.sin(p*v)):(g+m*v)*Math.exp(-v*h),0===e||1===e?e:1-v},Nf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t,r=at(n,2),i=r[0],o=void 0===i?10:i,a=r[1],s="start"===a?Math.ceil:Math.floor;return s(fr(e,0,1)*o)/o},Rf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=at(t,4),r=n[0],i=n[1],o=n[2],a=n[3];return yf(r,i,o,a)(e)},Lf=yf(.42,0,1,1),Bf=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return 1-e(1-t,n,r)}},Pf=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return t<.5?e(2*t,n,r)/2:1-e(-2*t+2,n,r)/2}},Ff=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return t<.5?(1-e(1-2*t,n,r))/2:(e(2*t-1,n,r)+1)/2}},$f={steps:Nf,"step-start":function(e){return Nf(e,[1,"start"])},"step-end":function(e){return Nf(e,[1,"end"])},linear:function(e){return e},"cubic-bezier":Rf,ease:function(e){return Rf(e,[.25,.1,.25,1])},in:Lf,out:Bf(Lf),"in-out":Pf(Lf),"out-in":Ff(Lf),"in-quad":_f,"out-quad":Bf(_f),"in-out-quad":Pf(_f),"out-in-quad":Ff(_f),"in-cubic":xf,"out-cubic":Bf(xf),"in-out-cubic":Pf(xf),"out-in-cubic":Ff(xf),"in-quart":Ef,"out-quart":Bf(Ef),"in-out-quart":Pf(Ef),"out-in-quart":Ff(Ef),"in-quint":Sf,"out-quint":Bf(Sf),"in-out-quint":Pf(Sf),"out-in-quint":Ff(Sf),"in-expo":Cf,"out-expo":Bf(Cf),"in-out-expo":Pf(Cf),"out-in-expo":Ff(Cf),"in-sine":Tf,"out-sine":Bf(Tf),"in-out-sine":Pf(Tf),"out-in-sine":Ff(Tf),"in-circ":kf,"out-circ":Bf(kf),"in-out-circ":Pf(kf),"out-in-circ":Ff(kf),"in-back":Of,"out-back":Bf(Of),"in-out-back":Pf(Of),"out-in-back":Ff(Of),"in-bounce":Mf,"out-bounce":Bf(Mf),"in-out-bounce":Pf(Mf),"out-in-bounce":Ff(Mf),"in-elastic":If,"out-elastic":Bf(If),"in-out-elastic":Pf(If),"out-in-elastic":Ff(If),spring:Df,"spring-in":Df,"spring-out":Bf(Df),"spring-in-out":Pf(Df),"spring-out-in":Ff(Df)},jf=function(e){return wf(e).replace(/^ease-/,"").replace(/(\(|\s).+/,"").toLowerCase().trim()},Hf=function(e){return $f[jf(e)]||$f.linear},Uf=function(e){return e},Qf=1,zf=.5,Wf=0;function Gf(e,t){return function(n){if(n>=1)return 1;var r=1/e;return n+=t*r,n-n%r}}var Vf="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",Kf=new RegExp("cubic-bezier\\(".concat(Vf,",").concat(Vf,",").concat(Vf,",").concat(Vf,"\\)")),Yf=/steps\(\s*(\d+)\s*\)/,qf=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/;function Xf(e){var t=Kf.exec(e);if(t)return yf.apply(void 0,Ke(t.slice(1).map(Number)));var n=Yf.exec(e);if(n)return Gf(Number(n[1]),Wf);var r=qf.exec(e);return r?Gf(Number(r[1]),{start:Qf,middle:zf,end:Wf}[r[2]]):Hf(e)}function Jf(e){return Math.abs(Zf(e)/(e.playbackRate||1))}function Zf(e){var t;return 0===e.duration||0===e.iterations?0:("auto"===e.duration?0:Number(e.duration))*(null!==(t=e.iterations)&&void 0!==t?t:1)}var ep=0,tp=1,np=2,rp=3;function ip(e,t,n){if(null===t)return ep;var r=n.endTime;return t<Math.min(n.delay,r)?tp:t>=Math.min(n.delay+e+n.endDelay,r)?np:rp}function op(e,t,n,r,i){switch(r){case tp:return"backwards"===t||"both"===t?0:null;case rp:return n-i;case np:return"forwards"===t||"both"===t?e:null;case ep:return null}}function ap(e,t,n,r,i){var o=i;return 0===e?t!==tp&&(o+=n):o+=r/e,o}function sp(e,t,n,r,i,o){var a=e===1/0?t%1:e%1;return 0!==a||n!==np||0===r||0===i&&0!==o||(a=1),a}function lp(e,t,n,r){return e===np&&t===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}function cp(e,t,n){var r=e;if("normal"!==e&&"reverse"!==e){var i=t;"alternate-reverse"===e&&(i+=1),r="normal",i!==1/0&&i%2!==0&&(r="reverse")}return"normal"===r?n:1-n}function up(e,t,n){var r=ip(e,t,n),i=op(e,n.fill,t,r,n.delay);if(null===i)return null;var o="auto"===n.duration?0:n.duration,a=ap(o,r,n.iterations,i,n.iterationStart),s=sp(a,n.iterationStart,r,n.iterations,i,o),l=lp(r,n.iterations,s,a),c=cp(n.direction,l,s);return n.currentIteration=l,n.progress=c,n.easingFunction(c)}function dp(e,t,n){var r=fp(e,t),i=pp(r,n);return function(e,t){if(null!==t)i.filter(function(e){return t>=e.applyFrom&&t<e.applyTo}).forEach(function(n){var r=t-n.startOffset,i=n.endOffset-n.startOffset,o=0===i?0:r/i;e.setAttribute(n.property,n.interpolation(o),!1,!1)});else for(var n in r)hp(n)&&e.setAttribute(n,null)}}function hp(e){return"offset"!==e&&"easing"!==e&&"composite"!==e&&"computedOffset"!==e}function fp(e,t){for(var n={},r=0;r<e.length;r++)for(var i in e[r])if(hp(i)){var o={offset:e[r].offset,computedOffset:e[r].computedOffset,easing:e[r].easing,easingFunction:Xf(e[r].easing)||t.easingFunction,value:e[r][i]};n[i]=n[i]||[],n[i].push(o)}return n}function pp(e,t){var n=[];for(var r in e)for(var i=e[r],o=0;o<i.length-1;o++){var a=o,s=o+1,l=i[a].computedOffset,c=i[s].computedOffset,u=l,d=c;0===o&&(u=-1/0,0===c&&(s=a)),o===i.length-2&&(d=1/0,1===l&&(a=s)),n.push({applyFrom:u,applyTo:d,startOffset:i[a].computedOffset,endOffset:i[s].computedOffset,easingFunction:i[a].easingFunction,property:r,interpolation:mp(r,i[a].value,i[s].value,t)})}return n.sort(function(e,t){return e.startOffset-t.startOffset}),n}var gp=function(e,t,n){return function(r){var i=vp(e,t,r);return lr(i)?i:n(i)}};function mp(e,t,n,r){var i=Mc[e];if(i&&i.syntax&&i["int"]){var o=nh.styleValueRegistry.getPropertySyntax(i.syntax);if(o){var a=o.parser,s=a?a(t,r):t,l=a?a(n,r):n,c=o.mixer(s,l,r);if(c){var u=gp.apply(void 0,Ke(c));return function(e){return 0===e?t:1===e?n:u(e)}}}}return gp(!1,!0,function(e){return e?n:t})}function vp(e,t,n){if("number"===typeof e&&"number"===typeof t)return e*(1-n)+t*n;if("boolean"===typeof e&&"boolean"===typeof t||"string"===typeof e&&"string"===typeof t)return n<.5?e:t;if(Array.isArray(e)&&Array.isArray(t)){for(var r=e.length,i=t.length,o=Math.max(r,i),a=[],s=0;s<o;s++)a.push(vp(e[s<r?s:r-1],t[s<i?s:i-1],n));return a}throw new Error("Mismatched interpolation arguments ".concat(e,":").concat(t))}var Ap=function(){function e(){$e(this,e),this.delay=0,this.direction="normal",this.duration="auto",this._easing="linear",this.easingFunction=Uf,this.endDelay=0,this.fill="auto",this.iterationStart=0,this.iterations=1,this.currentIteration=null,this.progress=null}return Ue(e,[{key:"easing",get:function(){return this._easing},set:function(e){this.easingFunction=Xf(e),this._easing=e}}])}();function bp(e){var t=[];for(var n in e)if(!(n in["easing","offset","composite"])){var r=e[n];Array.isArray(r)||(r=[r]);for(var i=r.length,o=0;o<i;o++){if(!t[o]){var a={};"offset"in e&&(a.offset=Number(e.offset)),"easing"in e&&(a.easing=e.easing),"composite"in e&&(a.composite=e.composite),t[o]=a}void 0!==r[o]&&null!==r[o]&&(t[o][n]=r[o])}}return t.sort(function(e,t){return(e.computedOffset||0)-(t.computedOffset||0)}),t}function yp(e,t){if(null===e)return[];Array.isArray(e)||(e=bp(e));for(var n=e.map(function(e){var n={};for(var r in null!==t&&void 0!==t&&t.composite&&(n.composite="auto"),e){var i=e[r];if("offset"===r){if(null!==i){if(i=Number(i),!isFinite(i))throw new Error("Keyframe offsets must be numbers.");if(i<0||i>1)throw new Error("Keyframe offsets must be between 0 and 1.");n.computedOffset=i}}else if("composite"===r&&-1===["replace","add","accumulate","auto"].indexOf(i))throw new Error("".concat(i," compositing is not supported"));n[r]=i}return void 0===n.offset&&(n.offset=null),void 0===n.easing&&(n.easing=(null===t||void 0===t?void 0:t.easing)||"linear"),void 0===n.composite&&(n.composite="auto"),n}),r=!0,i=-1/0,o=0;o<n.length;o++){var a=n[o].offset;if(ur(a))r=!1;else{if(a<i)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");i=a}}function s(){var e,t,r=n,i=r.length;(n[i-1].computedOffset=Number(null!==(e=n[i-1].offset)&&void 0!==e?e:1),i>1)&&(n[0].computedOffset=Number(null!==(t=n[0].offset)&&void 0!==t?t:0));for(var o=0,a=Number(n[0].computedOffset),s=1;s<i;s++){var l=n[s].computedOffset;if(!ur(l)&&!ur(a)){for(var c=1;c<s-o;c++)n[o+c].computedOffset=a+(Number(l)-a)*c/(s-o);o=s,a=Number(l)}}}return n=n.filter(function(e){return Number(e.offset)>=0&&Number(e.offset)<=1}),r||s(),n}var wp="backwards|forwards|both|none".split("|"),_p="reverse|alternate|alternate-reverse".split("|");function xp(e,t){var n=new Ap;return t&&(n.fill="both",n.duration="auto"),"number"!==typeof e||isNaN(e)?void 0!==e&&Object.keys(e).forEach(function(t){if(void 0!==e[t]&&null!==e[t]&&"auto"!==e[t]){if(("number"===typeof n[t]||"duration"===t)&&("number"!==typeof e[t]||isNaN(e[t])))return;if("fill"===t&&-1===wp.indexOf(e[t]))return;if("direction"===t&&-1===_p.indexOf(e[t]))return;n[t]=e[t]}}):n.duration=e,n}function Ep(e,t){return e=Sp(null!==e&&void 0!==e?e:{duration:"auto"}),xp(e,t)}function Sp(e){return"number"===typeof e&&(e=isNaN(e)?{duration:"auto"}:{duration:e}),e}var Cp=function(){function e(t,n,r){var i=this;$e(this,e),this.composite="replace",this.iterationComposite="replace",this.target=t,this.timing=Ep(r,!1),this.timing.effect=this,this.timing.activeDuration=Jf(this.timing),this.timing.endTime=Math.max(0,this.timing.delay+this.timing.activeDuration+this.timing.endDelay),this.normalizedKeyframes=yp(n,this.timing),this.interpolations=dp(this.normalizedKeyframes,this.timing,this.target);var o=nh.globalThis.Proxy;this.computedTiming=o?new o(this.timing,{get:function(e,t){return"duration"===t?"auto"===e.duration?0:e.duration:"fill"===t?"auto"===e.fill?"none":e.fill:"localTime"===t?i.animation&&i.animation.currentTime||null:"currentIteration"===t?i.animation&&"running"===i.animation.playState?e.currentIteration||0:null:"progress"===t?i.animation&&"running"===i.animation.playState?e.progress||0:null:e[t]},set:function(){return!0}}):this.timing}return Ue(e,[{key:"applyInterpolations",value:function(){this.interpolations(this.target,Number(this.timeFraction))}},{key:"update",value:function(e){return null!==e&&(this.timeFraction=up(this.timing.activeDuration,e,this.timing),null!==this.timeFraction)}},{key:"getKeyframes",value:function(){return this.normalizedKeyframes}},{key:"setKeyframes",value:function(e){this.normalizedKeyframes=yp(e)}},{key:"getComputedTiming",value:function(){return this.computedTiming}},{key:"getTiming",value:function(){return this.timing}},{key:"updateTiming",value:function(e){var t=this;Object.keys(e||{}).forEach(function(n){t.timing[n]=e[n]})}}])}();function Tp(e,t){return Number(e.id)-Number(t.id)}var kp=function(){function e(t){var n=this;$e(this,e),this.animations=[],this.ticking=!1,this.timelineTicking=!1,this.hasRestartedThisFrame=!1,this.animationsWithPromises=[],this.inTick=!1,this.pendingEffects=[],this.currentTime=null,this.rafId=0,this.rafCallbacks=[],this.webAnimationsNextTick=function(e){n.currentTime=e,n.discardAnimations(),0===n.animations.length?n.timelineTicking=!1:n.requestAnimationFrame(n.webAnimationsNextTick)},this.processRafCallbacks=function(e){var t=n.rafCallbacks;n.rafCallbacks=[],e<Number(n.currentTime)&&(e=Number(n.currentTime)),n.animations.sort(Tp),n.animations=n.tick(e,!0,n.animations)[0],t.forEach(function(t){t[1](e)}),n.applyPendingEffects()},this.document=t}return Ue(e,[{key:"getAnimations",value:function(){return this.discardAnimations(),this.animations.slice()}},{key:"isTicking",value:function(){return this.inTick}},{key:"play",value:function(e,t,n){var r=new Cp(e,t,n),i=new of(r,this);return this.animations.push(i),this.restartWebAnimationsNextTick(),i.updatePromises(),i.play(),i.updatePromises(),i}},{key:"applyDirtiedAnimation",value:function(e){var t=this;if(!this.inTick){e.markTarget();var n=e.targetAnimations();n.sort(Tp);var r=this.tick(Number(this.currentTime),!1,n.slice())[1];r.forEach(function(e){var n=t.animations.indexOf(e);-1!==n&&t.animations.splice(n,1)}),this.applyPendingEffects()}}},{key:"restart",value:function(){return this.ticking||(this.ticking=!0,this.requestAnimationFrame(function(){}),this.hasRestartedThisFrame=!0),this.hasRestartedThisFrame}},{key:"destroy",value:function(){this.document.defaultView.cancelAnimationFrame(this.frameId)}},{key:"applyPendingEffects",value:function(){this.pendingEffects.forEach(function(e){null===e||void 0===e||e.applyInterpolations()}),this.pendingEffects=[]}},{key:"updateAnimationsPromises",value:function(){this.animationsWithPromises=this.animationsWithPromises.filter(function(e){return e.updatePromises()})}},{key:"discardAnimations",value:function(){this.updateAnimationsPromises(),this.animations=this.animations.filter(function(e){return"finished"!==e.playState&&"idle"!==e.playState})}},{key:"restartWebAnimationsNextTick",value:function(){this.timelineTicking||(this.timelineTicking=!0,this.requestAnimationFrame(this.webAnimationsNextTick))}},{key:"rAF",value:function(e){var t=this.rafId++;return 0===this.rafCallbacks.length&&(this.frameId=this.document.defaultView.requestAnimationFrame(this.processRafCallbacks)),this.rafCallbacks.push([t,e]),t}},{key:"requestAnimationFrame",value:function(e){var t=this;return this.rAF(function(n){t.updateAnimationsPromises(),e(n),t.updateAnimationsPromises()})}},{key:"tick",value:function(e,t,n){var r,i,o=this;this.inTick=!0,this.hasRestartedThisFrame=!1,this.currentTime=e,this.ticking=!1;var a=[],s=[],l=[],c=[];return n.forEach(function(n){n.tick(e,t),n._inEffect?(s.push(n.effect),n.markTarget()):(a.push(n.effect),n.unmarkTarget()),n._needsTick&&(o.ticking=!0);var r=n._inEffect||n._needsTick;n._inTimeline=r,r?l.push(n):c.push(n)}),(r=this.pendingEffects).push.apply(r,a),(i=this.pendingEffects).push.apply(i,s),this.ticking&&this.requestAnimationFrame(function(){}),this.inTick=!1,[l,c]}}])}();nh.EasingFunction=Xf,nh.AnimationTimeline=kp;
/*!
 * @antv/g
 * @description A core module for rendering engine implements DOM API.
 * @version 6.1.28
 * @date 7/30/2025, 1:36:29 PM
 * @author AntVis
 * @docs https://g.antv.antgroup.com/
 */
n(30531);class Op extends Map{constructor(e,t=Np){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[n,r]of e)this.set(n,r)}get(e){return super.get(Mp(this,e))}has(e){return super.has(Mp(this,e))}set(e,t){return super.set(Ip(this,e),t)}delete(e){return super.delete(Dp(this,e))}}Set;function Mp({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Ip({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Dp({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Np(e){return null!==e&&"object"===typeof e?e.valueOf():e}function Rp(e){return e}function Lp(e,...t){return $p(e,Rp,Rp,t)}function Bp(e,...t){return $p(e,Array.from,Rp,t)}function Pp(e,t,...n){return $p(e,Rp,t,n)}function Fp(e,t,...n){return $p(e,Array.from,t,n)}function $p(e,t,n,r){return function e(i,o){if(o>=r.length)return n(i);const a=new Op,s=r[o++];let l=-1;for(const t of i){const e=s(t,++l,i),n=a.get(e);n?n.push(t):a.set(e,[t])}for(const[t,n]of a)a.set(t,e(n,o));return t(a)}(e,0)}var jp=function(e){return ur(e)?"":e.toString()},Hp=function(e){var t=jp(e);return t.charAt(0).toLowerCase()+t.substring(1)},Up=Hp;function Qp({map:e,initKey:t},n){const r=t(n);return e.has(r)?e.get(r):n}function zp({map:e,initKey:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Wp({map:e,initKey:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Gp(e){return"object"===typeof e?e.valueOf():e}class Vp extends Map{constructor(e){if(super(),this.map=new Map,this.initKey=Gp,null!==e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(Qp({map:this.map,initKey:this.initKey},e))}has(e){return super.has(Qp({map:this.map,initKey:this.initKey},e))}set(e,t){return super.set(zp({map:this.map,initKey:this.initKey},e),t)}delete(e){return super.delete(Wp({map:this.map,initKey:this.initKey},e))}}class Kp{transformBreaks(e){return e}constructor(e){var t;this.options=P({},this.getDefaultOptions()),this.update((null===(t=null===e||void 0===e?void 0:e.breaks)||void 0===t?void 0:t.length)?this.transformBreaks(e):e)}getOptions(){return this.options}update(e={}){const t=e.breaks?this.transformBreaks(e):e;this.options=P({},this.options,t),this.rescale(t)}rescale(e){}}const Yp=Symbol("defaultUnknown");function qp(e,t,n){for(let r=0;r<t.length;r+=1)e.has(t[r])||e.set(n(t[r]),r)}function Xp(e){const{value:t,from:n,to:r,mapper:i,notFoundReturn:o}=e;let a=i.get(t);if(void 0===a){if(o!==Yp)return o;a=n.push(t)-1,i.set(t,a)}return r[a%r.length]}function Jp(e){return e instanceof Date?e=>`${e}`:"object"===typeof e?e=>JSON.stringify(e):e=>e}class Zp extends Kp{getDefaultOptions(){return{domain:[],range:[],unknown:Yp}}constructor(e){super(e)}map(e){return 0===this.domainIndexMap.size&&qp(this.domainIndexMap,this.getDomain(),this.domainKey),Xp({value:this.domainKey(e),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(e){return 0===this.rangeIndexMap.size&&qp(this.rangeIndexMap,this.getRange(),this.rangeKey),Xp({value:this.rangeKey(e),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(e){const[t]=this.options.domain,[n]=this.options.range;if(this.domainKey=Jp(t),this.rangeKey=Jp(n),!this.rangeIndexMap)return this.rangeIndexMap=new Map,void(this.domainIndexMap=new Map);e&&!e.range||this.rangeIndexMap.clear(),(!e||e.domain||e.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new Zp(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;const{domain:e,compare:t}=this.options;return this.sortedDomain=t?[...e].sort(t):e,this.sortedDomain}}function eg(e){const t=e.reduce((e,t)=>Math.min(e,t),1/0);return t===1/0?[]:e.map(e=>e/t)}function tg(e,t){const n=e.length,r=t-n;return r>0?[...e,...new Array(r).fill(1)]:r<0?e.slice(0,t):e}function ng(e){return Math.round(1e12*e)/1e12}function rg(e){const{domain:t,range:n,paddingOuter:r,paddingInner:i,flex:o,round:a,align:s}=e,l=t.length,c=tg(o,l),[u,d]=n,h=d-u,f=2/l*r+1-1/l*i,p=h/f,g=p*i/l,m=p-l*g,v=eg(c),A=v.reduce((e,t)=>e+t),b=m/A,y=new Vp(t.map((e,t)=>{const n=v[t]*b;return[e,a?Math.floor(n):n]})),w=new Vp(t.map((e,t)=>{const n=v[t]*b,r=n+g;return[e,a?Math.floor(r):r]})),_=Array.from(w.values()).reduce((e,t)=>e+t),x=h-(_-_/l*i),E=x*s,S=u+E;let C=a?Math.round(S):S;const T=new Array(l);for(let k=0;k<l;k+=1){T[k]=ng(C);const e=t[k];C+=w.get(e)}return{valueBandWidth:y,valueStep:w,adjustedRange:T}}function ig(e){var t;const{domain:n}=e,r=n.length;if(0===r)return{valueBandWidth:void 0,valueStep:void 0,adjustedRange:[]};const i=!!(null===(t=e.flex)||void 0===t?void 0:t.length);if(i)return rg(e);const{range:o,paddingOuter:a,paddingInner:s,round:l,align:c}=e;let u,d,h=o[0];const f=o[1],p=f-h,g=2*a,m=r-s;u=p/Math.max(1,g+m),l&&(u=Math.floor(u)),h+=(p-u*(r-s))*c,d=u*(1-s),l&&(h=Math.round(h),d=Math.round(d));const v=new Array(r).fill(0).map((e,t)=>h+t*u);return{valueStep:u,valueBandWidth:d,adjustedRange:v}}class og extends Zp{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:Yp,flex:[]}}constructor(e){super(e)}clone(){return new og(this.options)}getStep(e){return void 0===this.valueStep?1:"number"===typeof this.valueStep?this.valueStep:void 0===e?Array.from(this.valueStep.values())[0]:this.valueStep.get(e)}getBandWidth(e){return void 0===this.valueBandWidth?1:"number"===typeof this.valueBandWidth?this.valueBandWidth:void 0===e?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(e)}getRange(){return this.adjustedRange}getPaddingInner(){const{padding:e,paddingInner:t}=this.options;return e>0?e:t}getPaddingOuter(){const{padding:e,paddingOuter:t}=this.options;return e>0?e:t}rescale(){super.rescale();const{align:e,domain:t,range:n,round:r,flex:i}=this.options,{adjustedRange:o,valueBandWidth:a,valueStep:s}=ig({align:e,range:n,round:r,flex:i,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:t});this.valueStep=s,this.valueBandWidth=a,this.adjustedRange=o}}const ag=Math.sqrt(50),sg=Math.sqrt(10),lg=Math.sqrt(2);function cg(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/10**i;return i>=0?(o>=ag?10:o>=sg?5:o>=lg?2:1)*10**i:-(10**-i)/(o>=ag?10:o>=sg?5:o>=lg?2:1)}function ug(e,t,n){const r=Math.abs(t-e)/Math.max(0,n);let i=10**Math.floor(Math.log(r)/Math.LN10);const o=r/i;return o>=ag?i*=10:o>=sg?i*=5:o>=lg&&(i*=2),t<e?-i:i}const dg=(e,t)=>{if(!(null===t||void 0===t?void 0:t.length))return e;const n=[...e,...t.flatMap(e=>[e.start,e.end])],r=Array.from(new Set(n)).sort((e,t)=>e-t),i=r.filter(e=>!t.some(({start:t,end:n})=>e>t&&e<n));return i.length?i:e},hg=(e,t,n,r)=>{let i,o,a=e,s=t;if(a===s&&n>0)return[a];let l=cg(a,s,n);if(0===l||!Number.isFinite(l))return[];if(l>0){a=Math.ceil(a/l),s=Math.floor(s/l),o=new Array(i=Math.ceil(s-a+1));for(let e=0;e<i;e+=1)o[e]=(a+e)*l}else{l=-l,a=Math.ceil(a*l),s=Math.floor(s*l),o=new Array(i=Math.ceil(s-a+1));for(let e=0;e<i;e+=1)o[e]=(a+e)/l}return dg(o,r)};class fg extends Kp{getDefaultOptions(){return{range:[0],domain:[0,1],unknown:void 0,tickCount:5,tickMethod:hg}}map(e){const[t]=this.options.range;return void 0!==t?t:this.options.unknown}invert(e){const[t]=this.options.range;return e===t&&void 0!==t?this.options.domain:[]}getTicks(){const{tickMethod:e,domain:t,tickCount:n}=this.options,[r,i]=t;return lr(r)&&lr(i)?e(r,i,n):[]}clone(){return new fg(this.options)}}var pg=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(c4){o(c4)}}function s(e){try{l(r["throw"](e))}catch(c4){o(c4)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})};function gg(e){var t;let n=e;while(n){if("view"===(null===(t=n.attributes)||void 0===t?void 0:t.class))return n;n=n.parentNode}return null}function mg(e){const{markType:t,nodeName:n}=e;return"heatmap"===t&&"image"===n}function vg(e,t){const n=null!==t&&void 0!==t?t:gg(e).__data__,r=e.__data__,{markKey:i,index:o,seriesIndex:a,normalized:s={x:0}}=r,{markState:l}=n,c=Array.from(l.keys()).find(e=>e.key===i);if(c)return a?a.map(e=>c.data[e]):mg(e)?c.data[Math.round(c.data.length*s.x)]:c.data[o]}function Ag(e,t){var n,r,i,o;const a=null!==(n=t.markKey)&&void 0!==n?n:null===(i=null===(r=t.element)||void 0===r?void 0:r.__data__)||void 0===i?void 0:i.markKey,s=Object.keys(e).find(t=>{if(t.startsWith("series")){const n=e[t].getOptions();return"series"===n.name&&n.markerKey===a}});return null!==(o=e[s])&&void 0!==o?o:e.series}function bg(e,t){const{color:n,facet:r=!1}=e,{color:i,series:o}=t,a=Ag(e,t),s=e=>e&&e.invert&&!(e instanceof og)&&!(e instanceof fg);if(s(a)){const e=a.clone();return e.invert(o)}if(o&&a instanceof og&&a.invert(o)!==i&&!r)return a.invert(o);if(s(n)){const e=n.invert(i);return Array.isArray(e)?null:e}return null}function yg(e){return e}function wg(e){return e.reduce((e,t)=>(n,...r)=>t(e(n,...r),...r),yg)}function _g(e){return e.reduce((e,t)=>n=>pg(this,void 0,void 0,function*(){const r=yield e(n);return t(r)}),yg)}function xg(e){return e.replace(/( |^)[a-z]/g,e=>e.toUpperCase())}function Eg(e=""){throw new Error(e)}function Sg(e,t){const{attributes:n}=t,r=new Set(["id","className"]);for(const[i,o]of Object.entries(n))r.has(i)||e.attr(i,o)}function Cg(e){return void 0!==e&&null!==e&&!Number.isNaN(e)}function Tg(e){const t=new Map;return n=>{if(t.has(n))return t.get(n);const r=e(n);return t.set(n,r),r}}function kg(e,t){const{transform:n}=e.style,r=e=>"none"===e||void 0===e,i=r(n)?"":n;e.style.transform=`${i} ${t}`.trimStart()}function Og(e,t){return Mg(e,t)||{}}function Mg(e,t){const n=Object.entries(e||{}).filter(([e])=>e.startsWith(t)).map(([e,n])=>[Up(e.replace(t,"").trim()),n]).filter(([e])=>!!e);return 0===n.length?null:Object.fromEntries(n)}function Ig(e,t){return Object.fromEntries(Object.entries(e).filter(([e])=>t.find(t=>e.startsWith(t))))}function Dg(e,...t){return Object.fromEntries(Object.entries(e).filter(([e])=>t.every(t=>!e.startsWith(t))))}function Ng(e,t){if(void 0===e)return null;if("number"===typeof e)return e;const n=+e.replace("%","");return Number.isNaN(n)?null:n/100*t}function Rg(e){return"object"===typeof e&&!(e instanceof Date)&&null!==e&&!Array.isArray(e)}function Lg(e){return null===e||!1===e}function Bg(e,t,n=5,r=0){if(!(r>=n)){for(const i of Object.keys(t)){const o=t[i];D(o)&&D(e[i])?Bg(e[i],o,n,r+1):e[i]=o}return e}}function Pg(e){return new Fg([e],null,e,e.ownerDocument)}class Fg{constructor(e=null,t=null,n=null,r=null,i=[null,null,null,null,null],o=[],a=[]){this._elements=Array.from(e),this._data=t,this._parent=n,this._document=r,this._enter=i[0],this._update=i[1],this._exit=i[2],this._merge=i[3],this._split=i[4],this._transitions=o,this._facetElements=a}selectAll(e){const t="string"===typeof e?this._parent.querySelectorAll(e):e;return new Fg(t,null,this._elements[0],this._document)}selectFacetAll(e){const t="string"===typeof e?this._parent.querySelectorAll(e):e;return new Fg(this._elements,null,this._parent,this._document,void 0,void 0,t)}select(e){const t="string"===typeof e?this._parent.querySelectorAll(e)[0]||null:e;return new Fg([t],null,t,this._document)}append(e){const t="function"===typeof e?e:()=>this.createElement(e),n=[];if(null!==this._data){for(let e=0;e<this._data.length;e++){const r=this._data[e],[i,o]=Array.isArray(r)?r:[r,null],a=t(i,e);a.__data__=i,null!==o&&(a.__fromElements__=o),this._parent.appendChild(a),n.push(a)}return new Fg(n,null,this._parent,this._document)}for(let r=0;r<this._elements.length;r++){const e=this._elements[r],i=e.__data__,o=t(i,r);e.appendChild(o),n.push(o)}return new Fg(n,null,n[0],this._document)}maybeAppend(e,t,n){const r=this._elements[0],i=r.getElementById(e);if(i)return new Fg([i],null,this._parent,this._document);const o="string"===typeof t?this.createElement(t):t();return o.id=e,n&&(o.className=n),r.appendChild(o),new Fg([o],null,this._parent,this._document)}data(e,t=e=>e,n=()=>null){const r=[],i=[],o=new Set(this._elements),a=[],s=new Set,l=new Map(this._elements.map((e,n)=>[t(e.__data__,n),e])),c=new Map(this._facetElements.map((e,n)=>[t(e.__data__,n),e])),u=Lp(this._elements,e=>n(e.__data__));for(let h=0;h<e.length;h++){const d=e[h],f=t(d,h),p=n(d,h);if(l.has(f)){const e=l.get(f);e.__data__=d,e.__facet__=!1,i.push(e),o.delete(e),l.delete(f)}else if(c.has(f)){const e=c.get(f);e.__data__=d,e.__facet__=!0,i.push(e),c.delete(f)}else if(u.has(f)){const e=u.get(f);a.push([d,e]);for(const t of e)o.delete(t);u.delete(f)}else if(l.has(p)){const e=l.get(p);e.__toData__?e.__toData__.push(d):e.__toData__=[d],s.add(e),o.delete(e)}else r.push(d)}const d=[new Fg([],r,this._parent,this._document),new Fg(i,null,this._parent,this._document),new Fg(o,null,this._parent,this._document),new Fg([],a,this._parent,this._document),new Fg(s,null,this._parent,this._document)];return new Fg(this._elements,null,this._parent,this._document,d)}merge(e){const t=[...this._elements,...e._elements],n=[...this._transitions,...e._transitions];return new Fg(t,null,this._parent,this._document,void 0,n)}createElement(e){if(this._document)return this._document.createElement(e,{});const t=Fg.registry[e];return t?new t:Eg(`Unknown node type: ${e}`)}join(e=e=>e,t=e=>e,n=e=>e.remove(),r=e=>e,i=e=>e.remove()){const o=e(this._enter),a=t(this._update),s=n(this._exit),l=r(this._merge),c=i(this._split);return a.merge(o).merge(s).merge(l).merge(c)}remove(){for(let e=0;e<this._elements.length;e++){const t=this._transitions[e];if(this._elements[e].__removed__=!0,t){const n=Array.isArray(t)?t:[t];Promise.all(n.map(e=>e.finished)).then(()=>{const t=this._elements[e];t.__removed__&&t.remove()})}else{const t=this._elements[e];t.__removed__&&t.remove()}}return new Fg([],null,this._parent,this._document,void 0,this._transitions)}each(e){for(let t=0;t<this._elements.length;t++){const n=this._elements[t],r=n.__data__;e(r,t,n)}return this}attr(e,t){const n="function"!==typeof t?()=>t:t;return this.each(function(r,i,o){void 0!==t&&(o[e]=n(r,i,o))})}style(e,t){const n="function"!==typeof t?()=>t:t;return this.each(function(r,i,o){void 0!==t&&(o.style[e]=n(r,i,o))})}transition(e){const t="function"!==typeof e?()=>e:e,{_transitions:n}=this;return this.each(function(e,r,i){n[r]=t(e,r,i)})}on(e,t){return this.each(function(n,r,i){i.addEventListener(e,t)}),this}call(e,...t){return e(this,...t),this}node(){return this._elements[0]}nodes(){return this._elements}transitions(){return this._transitions}parent(){return this._parent}}function $g([e,t],[n,r]){return[e-n,t-r]}function jg([e,t],[n,r]){return[e+n,t+r]}function Hg([e,t],[n,r]){return Math.sqrt(Math.pow(e-n,2)+Math.pow(t-r,2))}function Ug([e,t]){return Math.atan2(t,e)}function Qg([e,t]){return Ug([e,t])+Math.PI/2}function zg(e,t){const n=Ug(e),r=Ug(t);return n<r?r-n:2*Math.PI-(n-r)}function Wg(e){let t=1/0,n=-1/0,r=1/0,i=-1/0;for(const[s,l]of e)t=Math.min(s,t),n=Math.max(s,n),r=Math.min(l,r),i=Math.max(l,i);const o=n-t,a=i-r;return[t,r,o,a]}function Gg([e,t],[n,r]){return[(e+n)/2,(t+r)/2]}function Vg(e,t,n){return Math.max(t,Math.min(e,n))}function Kg(e,t=10){return"number"!==typeof e||Math.abs(e)<1e-15?e:parseFloat(e.toFixed(t))}Fg.registry={g:_h,rect:Rh,circle:vh,path:Oh,text:Bh,ellipse:yh,image:Sh,line:Th,polygon:Ih,polyline:Nh,html:Eh};var Yg=function(e){return null!==e&&"function"!==typeof e&&isFinite(e.length)},qg=Yg;function Xg(e){if(qg(e)){var t=e;return t[t.length-1]}}var Jg=function(e){return e};function Zg(e,t){return t-e?n=>(n-e)/(t-e):e=>.5}function em(e,...t){return t.reduce((e,t)=>n=>e(t(n)),e)}function tm(e,t,n,r,i){let o=n||0,a=r||e.length;const s=i||(e=>e);while(o<a){const n=Math.floor((o+a)/2);s(e[n])>t?a=n:o=n+1}return o}var nm=n(55205),rm=n.n(nm);function im(e,t,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function om(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100,i=e[3];if(0===n)return[255*r,255*r,255*r,i];const o=r<.5?r*(1+n):r+n-r*n,a=2*r-o,s=im(a,o,t+1/3),l=im(a,o,t),c=im(a,o,t-1/3);return[255*s,255*l,255*c,i]}function am(e){const t=rm().get(e);if(!t)return null;const{model:n,value:r}=t;return"rgb"===n?r:"hsl"===n?om(r):null}const sm=(e,t)=>n=>e*(1-n)+t*n,lm=(e,t)=>{const n=am(e),r=am(t);return null===n||null===r?n?()=>e:()=>t:e=>{const t=new Array(4);for(let l=0;l<4;l+=1){const i=n[l],o=r[l];t[l]=i*(1-e)+o*e}const[i,o,a,s]=t;return`rgba(${Math.round(i)}, ${Math.round(o)}, ${Math.round(a)}, ${s})`}},cm=(e,t)=>"number"===typeof e&&"number"===typeof t?sm(e,t):"string"===typeof e&&"string"===typeof t?lm(e,t):()=>e,um=(e,t)=>{const n=sm(e,t);return e=>Math.round(n(e))};function dm(e){return null===e}function hm(e){return!Si(e)&&!dm(e)&&!Number.isNaN(e)}const fm=(e,t,n=5)=>{const r=[e,t];let i,o=0,a=r.length-1,s=r[o],l=r[a];return l<s&&([s,l]=[l,s],[o,a]=[a,o]),i=cg(s,l,n),i>0?(s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i,i=cg(s,l,n)):i<0&&(s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i,i=cg(s,l,n)),i>0?(r[o]=Math.floor(s/i)*i,r[a]=Math.ceil(l/i)*i):i<0&&(r[o]=Math.ceil(s*i)/i,r[a]=Math.floor(l*i)/i),r};function pm(e,t){const n=t<e?t:e,r=e>t?e:t;return e=>Math.min(Math.max(n,e),r)}const gm=(e,t,n)=>{const[r,i]=e,[o,a]=t;let s,l;return r<i?(s=Zg(r,i),l=n(o,a)):(s=Zg(i,r),l=n(a,o)),em(l,s)},mm=(e,t,n)=>{const r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=e[0]>e[r],s=a?[...e].reverse():e,l=a?[...t].reverse():t;for(let c=0;c<r;c+=1)i[c]=Zg(s[c],s[c+1]),o[c]=n(l[c],l[c+1]);return t=>{const n=tm(e,t,1,r)-1,a=i[n],s=o[n];return em(s,a)(t)}},vm=(e,t,n,r)=>{const i=Math.min(e.length,t.length),o=i>2?mm:gm,a=r?um:n;return o(e,t,a)};class Am extends Kp{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:sm,tickCount:5}}map(e){return hm(e)?this.output(e):this.options.unknown}invert(e){return hm(e)?this.input(e):this.options.unknown}nice(){if(!this.options.nice||S(this.options.breaks))return;const[e,t,n,...r]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(e,t,n,...r)}getTicks(){const{tickMethod:e}=this.options,[t,n,r,...i]=this.getTickMethodOptions();return e(t,n,r,...i)}getTickMethodOptions(){const{domain:e,tickCount:t}=this.options,n=e[0],r=e[e.length-1];return[n,r,t]}chooseNice(){return fm}rescale(){this.nice();const[e,t]=this.chooseTransforms();this.composeOutput(e,this.chooseClamp(e)),this.composeInput(e,t,this.chooseClamp(t))}chooseClamp(e){const{clamp:t,range:n}=this.options,r=this.options.domain.map(e),i=Math.min(r.length,n.length);return t?pm(r[0],r[i-1]):Jg}composeOutput(e,t){const{domain:n,range:r,round:i,interpolate:o}=this.options,a=vm(n.map(e),r,o,i);this.output=em(a,t,e)}composeInput(e,t,n){const{domain:r,range:i}=this.options,o=vm(i,r.map(e),sm);this.input=em(t,n,o)}}class bm extends Am{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:cm,tickMethod:hg,tickCount:5}}removeUnsortedValues(e,t,n){let r=-1/0;const i=t.reduce((e,i,o)=>{if(0===o)return e;const a=r>0?r:i;if(r>0&&(n?i>r:i<r))e.push(o);else{const i=(a-t[o-1])*(n?-1:1);i<0?(r<0&&(r=t[o-1]),e.push(o)):r=-1/0}return e},[]);return i.slice().reverse().forEach(n=>{e.splice(n,1),t.splice(n,1)}),{breaksDomain:e,breaksRange:t}}transformDomain(e){const t=[.2,.8],n=.03,{domain:r=[],range:i=[1,0],breaks:o=[],tickCount:a=5,nice:s}=e,[l,c]=[Math.min(...r),Math.max(...r)];let u=l,d=c;if(s&&o.length<2){const e=this.chooseNice()(l,c,a);u=e[0],d=e[e.length-1]}const h=Math.min(u,l);let f=Math.max(d,c);const p=o.filter(({end:e})=>e<f).sort((e,t)=>e.start-t.start),g=hg(h,f,a,p);if(Xg(g)<f){const e=fm(0,f-Xg(g),3);g.push(Xg(g)+Xg(e)),f=Xg(g)}const[m,v]=[i[0],Xg(i)],A=f-h,b=Math.abs(v-m),y=m>v,w=g.map(e=>{const t=(e-h)/A;return y?m-t*b:m+t*b}),[_,x]=t;return p.forEach(({start:e,end:t,gap:r=n,compress:i="middle"})=>{const o=g.indexOf(e),a=g.indexOf(t);let s=(w[o]+w[a])/2;"start"===i&&(s=w[o]),"end"===i&&(s=w[a]);const l=r*b/2;let c=y?s+l:s-l,u=y?s-l:s+l;c<_&&(u+=_-c,c=_),u>x&&(c-=u-x,u=x),c>x&&(u-=c-x,c=x),u<_&&(c+=_-u,u=_),w[o]=c,w[a]=u}),this.removeUnsortedValues(g,w,y)}transformBreaks(e){const{domain:t,breaks:n=[]}=e;if(!S(e.breaks))return e;const r=Math.max(...t),i=n.filter(({end:e})=>e<r),o={...e,breaks:i},{breaksDomain:a,breaksRange:s}=this.transformDomain(o);return{...e,domain:a,range:s,breaks:i,tickMethod:()=>[...a]}}chooseTransforms(){return[Jg,Jg]}clone(){return new bm(this.options)}}function ym(e,t){let n,r;if(void 0===t)for(const i of e)null!=i&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let o of e)null!=(o=t(o,++i,e))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}function wm(e,t){return Object.entries(e).reduce((n,[r,i])=>(n[r]=t(i,r,e),n),{})}function _m(e){return e.map((e,t)=>t)}function xm(e){return e[0]}function Em(e){return e[e.length-1]}function Sm(e){return Array.from(new Set(e))}function Cm(e,t){const n=[[],[]];return e.forEach(e=>{n[t(e)?0:1].push(e)}),n}function Tm(e,t=e.length){if(1===t)return e.map(e=>[e]);const n=[];for(let r=0;r<e.length;r++){const i=e.slice(r+1),o=Tm(i,t-1);o.forEach(t=>{n.push([e[r],...t])})}return n}function km(e){if(1===e.length)return[e];const t=[];for(let n=1;n<=e.length;n++)t.push(...Tm(e,n));return t}function Om(e,t){for(const[n,r]of Object.entries(t))e.style(n,r)}function Mm(e,t){return t.forEach((t,n)=>0===n?e.moveTo(t[0],t[1]):e.lineTo(t[0],t[1])),e.closePath(),e}function Im(e,t,n){const{arrowSize:r}=n,i="string"===typeof r?+parseFloat(r)/100*Hg(e,t):r,o=Math.PI/6,a=Math.atan2(t[1]-e[1],t[0]-e[0]),s=Math.PI/2-a-o,l=[t[0]-i*Math.sin(s),t[1]-i*Math.cos(s)],c=a-o,u=[t[0]-i*Math.cos(c),t[1]-i*Math.sin(c)];return[l,u]}function Dm(e,t,n,r,i){const o=Ug($g(r,t))+Math.PI,a=Ug($g(r,n))+Math.PI;return e.arc(r[0],r[1],i,o,a,a-o<0),e}function Nm(e,t,n,r="y",i="between",o=!1){const a=(e,t)=>"y"===e||!0===e?t?180:90:t?90:0,s="y"===r||!0===r?n:t,l=a(r,o),c=_m(s),[u,d]=ym(c,e=>s[e]),h=new bm({domain:[u,d],range:[0,100]}),f=e=>lr(s[e])&&!Number.isNaN(s[e])?h.map(s[e]):0,p={between:t=>`${e[t]} ${f(t)}%`,start:t=>0===t?`${e[t]} ${f(t)}%`:`${e[t-1]} ${f(t)}%, ${e[t]} ${f(t)}%`,end:t=>t===e.length-1?`${e[t]} ${f(t)}%`:`${e[t]} ${f(t)}%, ${e[t+1]} ${f(t)}%`},g=c.sort((e,t)=>f(e)-f(t)).map(p[i]||p["between"]).join(",");return`linear-gradient(${l}deg, ${g})`}function Rm(e){const[t,n,r,i]=e;return[i,t,n,r]}function Lm(e,t,n){const[r,i,,o]=Se(e)?Rm(t):t,[a,s]=n,l=e.getCenter(),c=Qg($g(r,l)),u=Qg($g(i,l)),d=u===c&&a!==s?u+2*Math.PI:u,h=1e-4;return{startAngle:c+h,endAngle:(d-c>=0?d:2*Math.PI+d)-h,innerRadius:Hg(o,l),outerRadius:Hg(r,l)}}function Bm(e){const{colorAttribute:t,opacityAttribute:n=t}=e;return`${n}Opacity`}function Pm(e,t){if(!Ce(e))return"";const n=e.getCenter(),{transform:r}=t;return`translate(${n[0]}, ${n[1]}) ${r||""}`}function Fm(e){if(1===e.length)return e[0];const[[t,n,r=0],[i,o,a=0]]=e;return[(t+i)/2,(n+o)/2,(r+a)/2]}var $m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function jm(e,t,n,r,i={}){const{inset:o=0,radius:a=0,insetLeft:s=o,insetTop:l=o,insetRight:c=o,insetBottom:u=o,radiusBottomLeft:d=a,radiusBottomRight:h=a,radiusTopLeft:f=a,radiusTopRight:p=a,minWidth:g=-1/0,maxWidth:m=1/0,minHeight:v=-1/0}=i,A=$m(i,["inset","radius","insetLeft","insetTop","insetRight","insetBottom","radiusBottomLeft","radiusBottomRight","radiusTopLeft","radiusTopRight","minWidth","maxWidth","minHeight"]);if(!Ce(r)&&!ke(r)){const n=!!Se(r),[i,,o]=n?Rm(t):t,[a,b]=i,[y,w]=$g(o,i),_=y>0?a:a+y,x=w>0?b:b+w,E=Math.abs(y),S=Math.abs(w),C=_+s,T=x+l,k=E-(s+c),O=S-(l+u),M=n?Vg(k,v,1/0):Vg(k,g,m),I=n?Vg(O,g,m):Vg(O,v,1/0),D=n?C:C-(M-k)/2,N=n?T-(I-O)/2:T-(I-O);return Pg(e.createElement("rect",{})).style("x",D).style("y",N).style("width",M).style("height",I).style("radius",[f,p,h,d]).call(Om,A).node()}const{y:b,y1:y}=n,w=r.getCenter(),_=Lm(r,t,[b,y]),x=Ee().cornerRadius(a).padAngle(o*Math.PI/180);return Pg(e.createElement("path",{})).style("d",x(_)).style("transform",`translate(${w[0]}, ${w[1]})`).style("radius",a).style("inset",o).call(Om,A).node()}const Hm=(e,t)=>{const{colorAttribute:n,opacityAttribute:r="fill",first:i=!0,last:o=!0}=e,a=$m(e,["colorAttribute","opacityAttribute","first","last"]),{coordinate:s,document:l}=t;return(t,r,c)=>{const{color:u,radius:d=0}=c,h=$m(c,["color","radius"]),f=h.lineWidth||1,{stroke:p,radius:g=d,radiusTopLeft:m=g,radiusTopRight:v=g,radiusBottomRight:A=g,radiusBottomLeft:b=g,innerRadius:y=0,innerRadiusTopLeft:w=y,innerRadiusTopRight:_=y,innerRadiusBottomRight:x=y,innerRadiusBottomLeft:E=y,lineWidth:S=("stroke"===n||p?f:0),inset:C=0,insetLeft:T=C,insetRight:k=C,insetBottom:O=C,insetTop:M=C,minWidth:I,maxWidth:D,minHeight:N}=a,R=$m(a,["stroke","radius","radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft","innerRadius","innerRadiusTopLeft","innerRadiusTopRight","innerRadiusBottomRight","innerRadiusBottomLeft","lineWidth","inset","insetLeft","insetRight","insetBottom","insetTop","minWidth","maxWidth","minHeight"]),{color:L=u,opacity:B}=r,P=[i?m:w,i?v:_,o?A:x,o?b:E],F=["radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft"];Se(s)&&F.push(F.shift());const $=Object.assign(Object.assign({radius:g},Object.fromEntries(F.map((e,t)=>[e,P[t]]))),{inset:C,insetLeft:T,insetRight:k,insetBottom:O,insetTop:M,minWidth:I,maxWidth:D,minHeight:N});return Pg(jm(l,t,r,s,$)).call(Om,h).style("fill","transparent").style(n,L).style(Bm(e),B).style("lineWidth",S).style("stroke",void 0===p?L:p).call(Om,R).node()}};Hm.props={defaultEnterAnimation:"scaleInY",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Um=(e,t)=>Hm(Object.assign({colorAttribute:"fill"},e),t);Um.props=Object.assign(Object.assign({},Hm.props),{defaultMarker:"square"});const Qm=(e,t)=>Hm(Object.assign({colorAttribute:"stroke"},e),t);Qm.props=Object.assign(Object.assign({},Hm.props),{defaultMarker:"hollowSquare"});Array.prototype.slice;function zm(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function Wm(e){this._context=e}function Gm(e){return new Wm(e)}function Vm(e){return e[0]}function Km(e){return e[1]}function Ym(e,t){var n=K(!0),r=null,i=Gm,o=null,a=me(s);function s(s){var l,c,u,d=(s=zm(s)).length,h=!1;for(null==r&&(o=i(u=a())),l=0;l<=d;++l)!(l<d&&n(c=s[l],l,s))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+e(c,l,s),+t(c,l,s));if(u)return o=null,u+""||null}return e="function"===typeof e?e:void 0===e?Vm:K(e),t="function"===typeof t?t:void 0===t?Km:K(t),s.x=function(t){return arguments.length?(e="function"===typeof t?t:K(+t),s):e},s.y=function(e){return arguments.length?(t="function"===typeof e?e:K(+e),s):t},s.defined=function(e){return arguments.length?(n="function"===typeof e?e:K(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),s):i},s.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),s):r},s}function qm(){}function Xm(e){this._context=e}function Jm(e){return new Xm(e)}Wm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}},Xm.prototype={areaStart:qm,areaEnd:qm,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var Zm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function ev(e,t,n){const[r,i,o,a]=e;if(Se(n)){const e=[t?t[0][0]:i[0],i[1]],n=[t?t[3][0]:o[0],o[1]];return[r,e,n,a]}const s=[i[0],t?t[0][1]:i[1]],l=[o[0],t?t[3][1]:o[1]];return[r,s,l,a]}const tv=(e,t)=>{const{adjustPoints:n=ev}=e,r=Zm(e,["adjustPoints"]),{coordinate:i,document:o}=t;return(e,t,a,s)=>{const{index:l}=t,{color:c}=a,u=Zm(a,["color"]),d=s[l+1],h=n(e,d,i),f=!!Se(i),[p,g,m,v]=f?Rm(h):h,{color:A=c,opacity:b}=t,y=Ym().curve(Jm)([p,g,m,v]);return Pg(o.createElement("path",{})).call(Om,u).style("d",y).style("fill",A).style("fillOpacity",b).call(Om,r).node()}};function nv(e,t,n){const[r,i,o,a]=e;if(Se(n)){const e=[t?t[0][0]:(i[0]+o[0])/2,i[1]],n=[t?t[3][0]:(i[0]+o[0])/2,o[1]];return[r,e,n,a]}const s=[i[0],t?t[0][1]:(i[1]+o[1])/2],l=[o[0],t?t[3][1]:(i[1]+o[1])/2];return[r,s,l,a]}tv.props={defaultMarker:"square"};const rv=(e,t)=>tv(Object.assign({adjustPoints:nv},e),t);function iv(e){return Math.abs(e)>10?String(e):e.toString().padStart(2,"0")}function ov(e){const t=e.getFullYear(),n=iv(e.getMonth()+1),r=iv(e.getDate()),i=`${t}-${n}-${r}`,o=e.getHours(),a=e.getMinutes(),s=e.getSeconds();return o||a||s?`${i} ${iv(o)}:${iv(a)}:${iv(s)}`:i}rv.props={defaultMarker:"square"};const av=(e={})=>{const{channel:t="x"}=e;return(e,n)=>{const{encode:r}=n,{tooltip:i}=n;if(Lg(i))return[e,n];const{title:o}=i;if(void 0!==o)return[e,n];const a=Object.keys(r).filter(e=>e.startsWith(t)).filter(e=>!r[e].inferred).map(e=>Q(r,e)).filter(([e])=>e).map(e=>e[0]);if(0===a.length)return[e,n];const s=[];for(const t of e)s[t]={value:a.map(e=>e[t]instanceof Date?ov(e[t]):e[t]).join(", ")};return[e,P({},n,{tooltip:{title:s}})]}};av.props={};const sv=e=>{const{channel:t}=e;return(e,n)=>{const{encode:r,tooltip:i}=n;if(Lg(i))return[e,n];const{items:o=[]}=i;if(!o||o.length>0)return[e,n];const a=Array.isArray(t)?t:[t],s=a.flatMap(e=>Object.keys(r).filter(t=>t.startsWith(e)).map(e=>{const{field:t,value:n,inferred:i=!1,aggregate:o}=r[e];return i?null:o&&n?{channel:e}:t?{field:t}:n?{channel:e}:null}).filter(e=>null!==e));return[e,P({},n,{tooltip:{items:s}})]}};sv.props={};var lv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const cv=()=>(e,t)=>{const{encode:n}=t,{key:r}=n,i=lv(n,["key"]);if(void 0!==r)return[e,t];const o=Object.values(i).map(({value:e})=>e),a=e.map(e=>o.filter(Array.isArray).map(t=>t[e]).join("-"));return[e,P({},t,{encode:{key:F(a)}})]};function uv(e={}){const{shapes:t}=e;return[{name:"color"},{name:"opacity"},{name:"shape",range:t},{name:"enterType"},{name:"enterDelay",scaleKey:"enter"},{name:"enterDuration",scaleKey:"enter"},{name:"enterEasing"},{name:"key",scale:"identity"},{name:"groupKey",scale:"identity"},{name:"label",scale:"identity"}]}function dv(e={}){return[...uv(e),{name:"title",scale:"identity"}]}function hv(){return[{type:av,channel:"color"},{type:sv,channel:["x","y"]}]}function fv(){return[{type:av,channel:"x"},{type:sv,channel:["y"]}]}function pv(){return[{type:av,channel:"color"},{type:sv,channel:["position"]}]}function gv(e={}){return uv(e)}function mv(){return[{type:cv}]}function vv(){return[]}function Av(e,t){return e.getBandWidth(e.invert(t))}function bv(e,t,n={}){const{x:r,y:i,series:o}=t,{x:a,y:s,series:l}=e,{style:{bandOffset:c=(l?0:.5),bandOffsetX:u=c,bandOffsetY:d=c}={}}=n,h=!!(null===a||void 0===a?void 0:a.getBandWidth),f=!!(null===s||void 0===s?void 0:s.getBandWidth),p=!!(null===l||void 0===l?void 0:l.getBandWidth);return h||f?(e,t)=>{const n=h?Av(a,r[t]):0,c=f?Av(s,i[t]):0,g=()=>(Av(l,o[t])/2+ +o[t])*n,m=p&&o?g():0,[v,A]=e;return[v+u*n+m,A+d*c]}:e=>e}function yv(e){return parseFloat(e)/100}function wv(e,t,n,r){const{x:i,y:o}=n,{innerWidth:a,innerHeight:s}=r.getOptions(),l=Array.from(e,e=>{const t=i[e],n=o[e],r="string"===typeof t?yv(t)*a:+t,l="string"===typeof n?yv(n)*s:+n;return[[r,l]]});return[e,l]}function _v(e){return"function"===typeof e?e:t=>t[e]}function xv(e,t){return Array.from(e,_v(t))}function Ev(e){return Array.isArray(e)?{links:e}:e&&"object"===typeof e?{links:e.links||[],nodes:e.nodes}:{links:[]}}function Sv(e,t){const n=Ev(e),{source:r=e=>e.source,target:i=e=>e.target,value:o=e=>e.value}=t,{links:a,nodes:s}=n;if(!a.length)return{links:[],nodes:s||[]};const l=xv(a,r),c=xv(a,i),u=xv(a,o);return{links:a.map((e,t)=>({target:c[t],source:l[t],value:u[t]})),nodes:s||Array.from(new Set([...l,...c]),e=>({key:e}))}}function Cv(e,t){return e.getBandWidth(e.invert(t))}cv.props={};const Tv={rect:Um,hollow:Qm,funnel:tv,pyramid:rv},kv=()=>(e,t,n,r)=>{const{x:i,y1:o,series:a,size:s}=n;let{y:l}=n;l=l.map(e=>void 0!==e?e:1);const c=t.x,u=t.series,[d]=r.getSize(),h=s?s.map(e=>+e/d):null,f=s?(e,t,n)=>{const r=e+t/2,i=h[n];return[r-i/2,r+i/2]}:(e,t,n)=>[e,e+t],p=Array.from(e,e=>{const t=Cv(c,i[e]),n=u?Cv(u,null===a||void 0===a?void 0:a[e]):1,s=t*n,d=(+(null===a||void 0===a?void 0:a[e])||0)*t,h=+i[e]+d,[p,g]=f(h,s,e),m=+l[e],v=+o[e],A=[p,m],b=[g,m],y=[g,v],w=[p,v];return[A,b,y,w].map(e=>r.map(e))});return[e,p]};kv.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:Tv,channels:[...dv({shapes:Object.keys(Tv)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size"}],preInference:[...mv(),{type:G},{type:V}],postInference:[...vv(),...fv()],interaction:{shareTooltip:!0}};const Ov={rect:Um,hollow:Qm},Mv=()=>(e,t,n,r)=>{const{x:i,x1:o,y:a,y1:s}=n,l=Array.from(e,e=>{const t=[+i[e],+a[e]],n=[+o[e],+a[e]],l=[+o[e],+s[e]],c=[+i[e],+s[e]];return[t,n,l,c].map(e=>r.map(e))});return[e,l]};Mv.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:Ov,channels:[...dv({shapes:Object.keys(Ov)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...mv(),{type:G}],postInference:[...vv(),...fv()],interaction:{shareTooltip:!0}};var Iv=Nv(Gm);function Dv(e){this._curve=e}function Nv(e){function t(t){return new Dv(e(t))}return t._curve=e,t}function Rv(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(Nv(e)):t()._curve},e}function Lv(){return Rv(Ym().curve(Iv))}function Bv(e){const t="function"===typeof e?e:e.render;return class extends bh{connectedCallback(){this.draw()}attributeChangedCallback(){this.draw()}draw(){t(this)}}}Dv.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var Pv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Fv=Bv(e=>{const{d1:t,d2:n,style1:r,style2:i}=e.attributes,o=e.ownerDocument;Pg(e).maybeAppend("line",()=>o.createElement("path",{})).style("d",t).call(Om,r),Pg(e).maybeAppend("line1",()=>o.createElement("path",{})).style("d",n).call(Om,i)});function $v(e,t){const n=[],r=[];let i=!1,o=null;for(const a of e)t(a[0])&&t(a[1])?(n.push(a),i&&(i=!1,r.push([o,a])),o=a):i=!0;return[n,r]}const jv=(e,t)=>{const{curve:n,gradient:r=!1,gradientColor:i="between",defined:o=e=>!Number.isNaN(e)&&void 0!==e&&null!==e,connect:a=!1}=e,s=Pv(e,["curve","gradient","gradientColor","defined","connect"]),{coordinate:l,document:c}=t;return(e,t,u)=>{const{color:d,lineWidth:h}=u,f=Pv(u,["color","lineWidth"]),{color:p=d,size:g=h,seriesColor:m,seriesX:v,seriesY:A}=t,b=Pm(l,t),y=Se(l),w=r&&m?Nm(m,v,A,r,i,y):p,_=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},f),w&&{stroke:w}),g&&{lineWidth:g}),b&&{transform:b}),s);let x;if(Ce(l)){const e=l.getCenter();x=t=>Lv().angle((n,r)=>Qg($g(t[r],e))).radius((n,r)=>Hg(t[r],e)).defined(([e,t])=>o(e)&&o(t)).curve(n)(t)}else x=Ym().x(e=>e[0]).y(e=>e[1]).defined(([e,t])=>o(e)&&o(t)).curve(n);const[E,S]=$v(e,o),C=Og(_,"connect"),T=!!S.length;if(!T||a&&!Object.keys(C).length)return Pg(c.createElement("path",{})).style("d",x(E)||[]).call(Om,_).node();if(T&&!a)return Pg(c.createElement("path",{})).style("d",x(e)).call(Om,_).node();const k=e=>e.map(x).join(",");return Pg(new Fv).style("style1",Object.assign(Object.assign({},_),C)).style("style2",_).style("d1",k(S)).style("d2",x(e)).node()}};jv.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Hv=(e,t)=>{const{coordinate:n}=t;return(...r)=>{const i=Ce(n)?Jm:Gm;return jv(Object.assign({curve:i},e),t)(...r)}};function Uv(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Qv(e,t){this._context=e,this._k=(1-t)/6}Hv.props=Object.assign(Object.assign({},jv.props),{defaultMarker:"line"}),Qv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Uv(this,this._x1,this._y1);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Uv(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new Qv(e,t)}return n.tension=function(t){return e(+t)},n})(0);function zv(e,t){this._context=e,this._k=(1-t)/6}zv.prototype={areaStart:qm,areaEnd:qm,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Uv(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new zv(e,t)}return n.tension=function(t){return e(+t)},n})(0);function Wv(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>ne){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>ne){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function Gv(e,t){this._context=e,this._alpha=t}Gv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Wv(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new Gv(e,t):new Qv(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Vv(e,t){this._context=e,this._alpha=t}Vv.prototype={areaStart:qm,areaEnd:qm,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Wv(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Kv=function e(t){function n(e){return t?new Vv(e,t):new zv(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Yv(e){return e<0?-1:1}function qv(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Yv(o)+Yv(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Xv(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Jv(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Zv(e){this._context=e}function eA(e){this._context=new tA(e)}function tA(e){this._context=e}function nA(e){return new Zv(e)}function rA(e){return new eA(e)}Zv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Jv(this,this._t0,Xv(this,this._t0));break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Jv(this,Xv(this,n=qv(this,e,t)),n);break;default:Jv(this,this._t0,n=qv(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(eA.prototype=Object.create(Zv.prototype)).point=function(e,t){Zv.prototype.point.call(this,t,e)},tA.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};var iA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const oA=(e,t)=>{const n=iA(e,[]),{coordinate:r}=t;return(...e)=>{const i=Ce(r)?Kv:Se(r)?rA:nA;return jv(Object.assign({curve:i},n),t)(...e)}};function aA(e,t){this._context=e,this._t=t}function sA(e){return new aA(e,.5)}function lA(e){return new aA(e,0)}function cA(e){return new aA(e,1)}oA.props=Object.assign(Object.assign({},jv.props),{defaultMarker:"smooth"}),aA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};const uA=(e,t)=>jv(Object.assign({curve:cA},e),t);uA.props=Object.assign(Object.assign({},jv.props),{defaultMarker:"hv"});const dA=(e,t)=>jv(Object.assign({curve:lA},e),t);dA.props=Object.assign(Object.assign({},jv.props),{defaultMarker:"vh"});const hA=(e,t)=>jv(Object.assign({curve:sA},e),t);hA.props=Object.assign(Object.assign({},jv.props),{defaultMarker:"hvh"});var fA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function pA(e,t,n,r,i){const o=$g(n,t),a=Ug(o),s=a+Math.PI/2,l=[r/2*Math.cos(s),r/2*Math.sin(s)],c=[i/2*Math.cos(s),i/2*Math.sin(s)],u=[i/2*Math.cos(a),i/2*Math.sin(a)],d=[r/2*Math.cos(a),r/2*Math.sin(a)],h=jg(t,l),f=jg(n,c),p=jg(f,u),g=jg(n,u),m=$g(g,c),v=$g(n,c),A=$g(t,l),b=$g(A,d),y=$g(t,d),w=$g(h,d);e.moveTo(...h),e.lineTo(...f),e.arcTo(...p,...g,i/2),e.arcTo(...m,...v,i/2),e.lineTo(...A),e.arcTo(...b,...y,r/2),e.arcTo(...w,...h,r/2),e.closePath()}const gA=(e,t)=>{const{document:n}=t;return(t,r,i)=>{const{seriesSize:o,color:a}=r,{color:s}=i,l=fA(i,["color"]),c=ge();for(let e=0;e<t.length-1;e++){const n=t[e],r=t[e+1],i=o[e],a=o[e+1];[...n,...r].every(Cg)&&pA(c,n,r,i,a)}return Pg(n.createElement("path",{})).call(Om,l).style("fill",a||s).style("d",c.toString()).call(Om,e).node()}};gA.props=Object.assign(Object.assign({},jv.props),{defaultMarker:"line"});const mA=()=>(e,t)=>{const{style:n={},encode:r}=t,{series:i}=r,{gradient:o}=n;return!o||i?[e,t]:[e,P({},t,{encode:{series:j(U(e,void 0))}})]};mA.props={};const vA=()=>(e,t)=>{const{encode:n}=t,{series:r,color:i}=n;if(void 0!==r||void 0===i)return[e,t];const[o,a]=Q(n,"color");return[e,P({},t,{encode:{series:F(o,a)}})]};vA.props={};const AA={line:Hv,smooth:oA,hv:uA,vh:dA,hvh:hA,trail:gA},bA=(e,t,n,r)=>{var i,o;const{series:a,x:s,y:l}=n,{x:c,y:u}=t;if(void 0===s||void 0===l)throw new Error("Missing encode for x or y channel.");const d=a?Array.from(Lp(e,e=>a[e]).values()):[e],h=d.map(e=>e[0]).filter(e=>void 0!==e),f=((null===(i=null===c||void 0===c?void 0:c.getBandWidth)||void 0===i?void 0:i.call(c))||0)/2,p=((null===(o=null===u||void 0===u?void 0:u.getBandWidth)||void 0===o?void 0:o.call(u))||0)/2,g=Array.from(d,e=>e.map(e=>r.map([+s[e]+f,+l[e]+p])));return[h,g,d]},yA=(e,t,n,r)=>{const i=Object.entries(n).filter(([e])=>e.startsWith("position")).map(([,e])=>e);if(0===i.length)throw new Error("Missing encode for position channel.");Ce(r)&&i.push(i[0]);const o=Array.from(e,e=>{const t=i.map(t=>+t[e]),n=r.map(t),o=[];for(let r=0;r<n.length;r+=2)o.push([n[r],n[r+1]]);return o});return[e,o]},wA=()=>(e,t,n,r)=>{const i=Oe(r)?yA:bA;return i(e,t,n,r)};wA.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:AA,channels:[...dv({shapes:Object.keys(AA)}),{name:"x"},{name:"y"},{name:"position",independent:!0},{name:"size"},{name:"series",scale:"band"}],preInference:[...mv(),{type:mA},{type:vA}],postInference:[...vv(),...fv(),...pv()],interaction:{shareTooltip:!0,seriesTooltip:!0,crosshairs:!0}};var _A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const xA=(e,t,n)=>[["M",e-n,t],["A",n,n,0,1,0,e+n,t],["A",n,n,0,1,0,e-n,t],["Z"]];xA.style=["fill"];const EA=xA.bind(void 0);EA.style=["stroke","lineWidth"];const SA=(e,t,n)=>[["M",e-n,t-n],["L",e+n,t-n],["L",e+n,t+n],["L",e-n,t+n],["Z"]];SA.style=["fill"];const CA=SA.bind(void 0);CA.style=["fill"];const TA=SA.bind(void 0);TA.style=["stroke","lineWidth"];const kA=(e,t,n)=>{const r=.618*n;return[["M",e-r,t],["L",e,t-n],["L",e+r,t],["L",e,t+n],["Z"]]};kA.style=["fill"];const OA=kA.bind(void 0);OA.style=["stroke","lineWidth"];const MA=(e,t,n)=>{const r=n*Math.sin(1/3*Math.PI);return[["M",e-n,t+r],["L",e,t-r],["L",e+n,t+r],["Z"]]};MA.style=["fill"];const IA=MA.bind(void 0);IA.style=["stroke","lineWidth"];const DA=(e,t,n)=>{const r=n*Math.sin(1/3*Math.PI);return[["M",e-n,t-r],["L",e+n,t-r],["L",e,t+r],["Z"]]};DA.style=["fill"];const NA=DA.bind(void 0);NA.style=["stroke","lineWidth"];const RA=(e,t,n)=>{const r=n/2*Math.sqrt(3);return[["M",e,t-n],["L",e+r,t-n/2],["L",e+r,t+n/2],["L",e,t+n],["L",e-r,t+n/2],["L",e-r,t-n/2],["Z"]]};RA.style=["fill"];const LA=RA.bind(void 0);LA.style=["stroke","lineWidth"];const BA=(e,t,n)=>{const r=n-1.5;return[["M",e-n,t-r],["L",e+n,t+r],["L",e+n,t-r],["L",e-n,t+r],["Z"]]};BA.style=["fill"];const PA=BA.bind(void 0);PA.style=["stroke","lineWidth"];const FA=(e,t,n)=>[["M",e,t+n],["L",e,t-n]];FA.style=["stroke","lineWidth"];const $A=(e,t,n)=>[["M",e-n,t-n],["L",e+n,t+n],["M",e+n,t-n],["L",e-n,t+n]];$A.style=["stroke","lineWidth"];const jA=(e,t,n)=>[["M",e-n/2,t-n],["L",e+n/2,t-n],["M",e,t-n],["L",e,t+n],["M",e-n/2,t+n],["L",e+n/2,t+n]];jA.style=["stroke","lineWidth"];const HA=(e,t,n)=>[["M",e-n,t],["L",e+n,t],["M",e,t-n],["L",e,t+n]];HA.style=["stroke","lineWidth"];const UA=(e,t,n)=>[["M",e-n,t],["L",e+n,t]];UA.style=["stroke","lineWidth"];const QA=(e,t,n)=>[["M",e-n,t],["L",e+n,t]];QA.style=["stroke","lineWidth"];const zA=QA.bind(void 0);zA.style=["stroke","lineWidth"];const WA=(e,t,n)=>[["M",e-n,t],["A",n/2,n/2,0,1,1,e,t],["A",n/2,n/2,0,1,0,e+n,t]];WA.style=["stroke","lineWidth"];const GA=(e,t,n)=>[["M",e-n-1,t-2.5],["L",e,t-2.5],["L",e,t+2.5],["L",e+n+1,t+2.5]];GA.style=["stroke","lineWidth"];const VA=(e,t,n)=>[["M",e-n-1,t+2.5],["L",e,t+2.5],["L",e,t-2.5],["L",e+n+1,t-2.5]];VA.style=["stroke","lineWidth"];const KA=(e,t,n)=>[["M",e-(n+1),t+2.5],["L",e-n/2,t+2.5],["L",e-n/2,t-2.5],["L",e+n/2,t-2.5],["L",e+n/2,t+2.5],["L",e+n+1,t+2.5]];KA.style=["stroke","lineWidth"];const YA=(e,t,n)=>[["M",e-5,t+2.5],["L",e-5,t],["L",e,t],["L",e,t-3],["L",e,t+3],["L",e+6.5,t+3]];YA.style=["stroke","lineWidth"];const qA=new Map([["bowtie",BA],["cross",$A],["dash",zA],["diamond",kA],["dot",QA],["hexagon",RA],["hollowBowtie",PA],["hollowDiamond",OA],["hollowHexagon",LA],["hollowPoint",EA],["hollowSquare",TA],["hollowTriangle",IA],["hollowTriangleDown",NA],["hv",GA],["hvh",KA],["hyphen",UA],["line",FA],["plus",HA],["point",xA],["rect",CA],["smooth",WA],["square",SA],["tick",jA],["triangleDown",DA],["triangle",MA],["vh",VA],["vhv",YA]]);function XA(e,t){var{d:n,fill:r,lineWidth:i,path:o,stroke:a,color:s}=t,l=_A(t,["d","fill","lineWidth","path","stroke","color"]);const c=qA.get(e)||qA.get("point");return(...e)=>{const t=new Oh({style:Object.assign(Object.assign({},l),{d:c(...e),stroke:c.style.includes("stroke")?s||a:"",fill:c.style.includes("fill")?s||r:"",lineWidth:c.style.includes("lineWidth")?i||i||2:0})});return t}}function JA(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})}function ZA(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}var eb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function tb(e,t,n,r){if(1===t.length)return;const{size:i}=n;if("fixed"===e)return i;if("normal"===e||Me(r)){const[[e,n],[r,i]]=t,o=Math.abs((r-e)/2),a=Math.abs((i-n)/2);return Math.max(0,(o+a)/2)}return i}const nb=(e,t)=>{const{colorAttribute:n,symbol:r,mode:i="auto"}=e,o=eb(e,["colorAttribute","symbol","mode"]),a=qA.get(JA(r))||qA.get("point"),{coordinate:s,document:l}=t;return(t,r,c)=>{const{lineWidth:u,color:d}=c,h=o.stroke?u||1:u,{color:f=d,transform:p,opacity:g}=r,[m,v]=Fm(t),A=tb(i,t,r,s),b=A||o.r||c.r;return Pg(l.createElement("path",{})).call(Om,c).style("fill","transparent").style("d",a(m,v,b)).style("lineWidth",h).style("transform",p).style("transformOrigin",`${m-b} ${v-b}`).style("stroke",f).style(Bm(e),g).style(n,f).call(Om,o).node()}};nb.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const rb=(e,t)=>nb(Object.assign({colorAttribute:"stroke",symbol:"point"},e),t);rb.props=Object.assign({defaultMarker:"hollowPoint"},nb.props);const ib=(e,t)=>nb(Object.assign({colorAttribute:"stroke",symbol:"diamond"},e),t);ib.props=Object.assign({defaultMarker:"hollowDiamond"},nb.props);const ob=(e,t)=>nb(Object.assign({colorAttribute:"stroke",symbol:"hexagon"},e),t);ob.props=Object.assign({defaultMarker:"hollowHexagon"},nb.props);const ab=(e,t)=>nb(Object.assign({colorAttribute:"stroke",symbol:"square"},e),t);ab.props=Object.assign({defaultMarker:"hollowSquare"},nb.props);const sb=(e,t)=>nb(Object.assign({colorAttribute:"stroke",symbol:"triangle-down"},e),t);sb.props=Object.assign({defaultMarker:"hollowTriangleDown"},nb.props);const lb=(e,t)=>nb(Object.assign({colorAttribute:"stroke",symbol:"triangle"},e),t);lb.props=Object.assign({defaultMarker:"hollowTriangle"},nb.props);const cb=(e,t)=>nb(Object.assign({colorAttribute:"stroke",symbol:"bowtie"},e),t);cb.props=Object.assign({defaultMarker:"hollowBowtie"},nb.props);var ub=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const db=(e,t)=>{const{colorAttribute:n,mode:r="auto"}=e,i=ub(e,["colorAttribute","mode"]),{coordinate:o,document:a}=t;return(t,s,l)=>{const{lineWidth:c,color:u}=l,d=i.stroke?c||1:c,{color:h=u,transform:f,opacity:p}=s,[g,m]=Fm(t),v=tb(r,t,s,o),A=v||i.r||l.r;return Pg(a.createElement("circle",{})).call(Om,l).style("fill","transparent").style("cx",g).style("cy",m).style("r",A).style("lineWidth",d).style("transform",f).style("transformOrigin",`${g} ${m}`).style("stroke",h).style(Bm(e),p).style(n,h).call(Om,i).node()}},hb=(e,t)=>db(Object.assign({colorAttribute:"fill"},e),t);hb.props={defaultMarker:"circle",defaultEnterAnimation:"fadeIn",defaultExitAnimation:"fadeOut"};const fb=(e,t)=>db(Object.assign({colorAttribute:"stroke"},e),t);fb.props=Object.assign({defaultMarker:"hollowPoint"},hb.props);const pb=(e,t)=>nb(Object.assign({colorAttribute:"fill",symbol:"point"},e),t);pb.props=Object.assign({defaultMarker:"point"},nb.props);const gb=(e,t)=>nb(Object.assign({colorAttribute:"stroke",symbol:"plus"},e),t);gb.props=Object.assign({defaultMarker:"plus"},nb.props);const mb=(e,t)=>nb(Object.assign({colorAttribute:"fill",symbol:"diamond"},e),t);mb.props=Object.assign({defaultMarker:"diamond"},nb.props);const vb=(e,t)=>nb(Object.assign({colorAttribute:"fill",symbol:"square"},e),t);vb.props=Object.assign({defaultMarker:"square"},nb.props);const Ab=(e,t)=>nb(Object.assign({colorAttribute:"fill",symbol:"triangle"},e),t);Ab.props=Object.assign({defaultMarker:"triangle"},nb.props);const bb=(e,t)=>nb(Object.assign({colorAttribute:"fill",symbol:"hexagon"},e),t);bb.props=Object.assign({defaultMarker:"hexagon"},nb.props);const yb=(e,t)=>nb(Object.assign({colorAttribute:"stroke",symbol:"cross"},e),t);yb.props=Object.assign({defaultMarker:"cross"},nb.props);const wb=(e,t)=>nb(Object.assign({colorAttribute:"fill",symbol:"bowtie"},e),t);wb.props=Object.assign({defaultMarker:"bowtie"},nb.props);const _b=(e,t)=>nb(Object.assign({colorAttribute:"stroke",symbol:"hyphen"},e),t);_b.props=Object.assign({defaultMarker:"hyphen"},nb.props);const xb=(e,t)=>nb(Object.assign({colorAttribute:"stroke",symbol:"line"},e),t);xb.props=Object.assign({defaultMarker:"line"},nb.props);const Eb=(e,t)=>nb(Object.assign({colorAttribute:"stroke",symbol:"tick"},e),t);Eb.props=Object.assign({defaultMarker:"tick"},nb.props);const Sb=(e,t)=>nb(Object.assign({colorAttribute:"fill",symbol:"triangle-down"},e),t);Sb.props=Object.assign({defaultMarker:"triangleDown"},nb.props);const Cb=()=>(e,t)=>{const{encode:n}=t,{y:r}=n;return void 0!==r?[e,t]:[e,P({},t,{encode:{y:$(U(e,0))},scale:{y:{guide:null}}})]};Cb.props={};const Tb=()=>(e,t)=>{const{encode:n}=t,{size:r}=n;return void 0!==r?[e,t]:[e,P({},t,{encode:{size:j(U(e,3))}})]};Tb.props={};const kb={hollow:rb,hollowDiamond:ib,hollowHexagon:ob,hollowSquare:ab,hollowTriangleDown:sb,hollowTriangle:lb,hollowBowtie:cb,hollowCircle:fb,point:pb,plus:gb,diamond:mb,square:vb,triangle:Ab,hexagon:bb,cross:yb,bowtie:wb,hyphen:_b,line:xb,tick:Eb,triangleDown:Sb,circle:hb},Ob=e=>(t,n,r,i)=>{const{x:o,y:a,x1:s,y1:l,size:c,dx:u,dy:d}=r,[h,f]=i.getSize(),p=bv(n,r,e),g=e=>{const t=+((null===u||void 0===u?void 0:u[e])||0),n=+((null===d||void 0===d?void 0:d[e])||0),r=s?(+o[e]+ +s[e])/2:+o[e],i=l?(+a[e]+ +l[e])/2:+a[e],c=r+t,h=i+n;return[c,h]},m=c?Array.from(t,e=>{const[t,n]=g(e),r=+c[e],o=r/h,a=r/f,s=[t-o,n-a],l=[t+o,n+a];return[i.map(p(s,e)),i.map(p(l,e))]}):Array.from(t,e=>[i.map(p(g(e),e))]);return[t,m]};function Mb(e,t){t(e),e.children&&e.children.forEach(function(e){e&&Mb(e,t)})}function Ib(e){Nb(e,!0)}function Db(e){Nb(e,!1)}function Nb(e,t){var n=t?"visible":"hidden";Mb(e,function(e){e.attr("visibility",n)})}Ob.props={defaultShape:"hollow",defaultLabelShape:"label",composite:!1,shape:kb,channels:[...dv({shapes:Object.keys(kb)}),{name:"x",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size",quantitative:"sqrt"},{name:"dx",scale:"identity"},{name:"dy",scale:"identity"}],preInference:[...mv(),{type:V},{type:Cb}],postInference:[...vv(),{type:Tb},...hv()]};var Rb=5,Lb=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=Rb),Object.entries(t).forEach(function(i){var o=br(i,2),a=o[0],s=o[1],l=e;Object.prototype.hasOwnProperty.call(t,a)&&(s?D(s)?(D(e[a])||(l[a]={}),n<r?Lb(e[a],s,n+1,r):l[a]=t[a]):S(s)?(l[a]=[],l[a]=l[a].concat(s)):l[a]=s:l[a]=s)})},Bb=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r+=1)Lb(e,t[r]);return e},Pb=function(e){function t(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.apply(this,yr([],br(t),!1))||this;return r.isMutationObserved=!0,r.addEventListener(yd.INSERTED,function(){Db(r)}),r}return gr(t,e),t}(_h);function Fb(e){var t=e.appendChild(new Pb({class:"offscreen"}));return Db(t),t}function $b(e){var t=e;while(t){if("offscreen"===t.className)return!0;t=t.parent}return!1}function jb(){Nb(this,"hidden"!==this.attributes.visibility)}var Hb=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this,Bb({},{style:n},t))||this;return r.initialized=!1,r._defaultOptions=n,r}return gr(t,e),Object.defineProperty(t.prototype,"offscreenGroup",{get:function(){return this._offscreen||(this._offscreen=Fb(this)),this._offscreen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultOptions",{get:function(){return this._defaultOptions},enumerable:!1,configurable:!0}),t.prototype.connectedCallback=function(){this.render(this.attributes,this),this.bindEvents(this.attributes,this),this.initialized=!0},t.prototype.disconnectedCallback=function(){var e;null===(e=this._offscreen)||void 0===e||e.destroy()},t.prototype.attributeChangedCallback=function(e){"visibility"===e&&jb.call(this)},t.prototype.update=function(e,t){var n;return this.attr(Bb({},this.attributes,e||{})),null===(n=this.render)||void 0===n?void 0:n.call(this,this.attributes,this,t)},t.prototype.clear=function(){this.removeChildren()},t.prototype.bindEvents=function(e,t){},t.prototype.getSubShapeStyle=function(e){e.x,e.y,e.transform,e.transformOrigin,e.class,e.className,e.zIndex;var t=vr(e,["x","y","transform","transformOrigin","class","className","zIndex"]);return t},t}(bh);function Ub(e,t,n,r,i){return void 0===r&&(r=!0),void 0===i&&(i=function(e){e.node().removeChildren()}),e?n(t):(r&&i(t),null)}var Qb=function(e){if(!S(e))return[];for(var t=[],n=0;n<e.length;n++)t=t.concat(e[n]);return t},zb=Qb,Wb=function(e){function t(t){void 0===t&&(t={});var n=t.style,r=vr(t,["style"]);return e.call(this,mr({style:mr({text:"",fill:"black",fontFamily:"sans-serif",fontSize:16,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",lineWidth:1,textAlign:"start",textBaseline:"middle"},n)},r))||this}return gr(t,e),Object.defineProperty(t.prototype,"offscreenGroup",{get:function(){return this._offscreen||(this._offscreen=Fb(this)),this._offscreen},enumerable:!1,configurable:!0}),t.prototype.disconnectedCallback=function(){var e;null===(e=this._offscreen)||void 0===e||e.destroy()},t}(Bh);function Gb(e,t){var n=new Map;return e.forEach(function(e){var r=t(e);n.has(r)||n.set(r,[]),n.get(r).push(e)}),n}function Vb(e){throw new Error(e)}var Kb=function(){function e(e,n,r,i,o,a,s){void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),void 0===i&&(i=null),void 0===o&&(o=[null,null,null,null,null]),void 0===a&&(a=[]),void 0===s&&(s=[]),t.add(this),this._elements=Array.from(e),this._data=n,this._parent=r,this._document=i,this._enter=o[0],this._update=o[1],this._exit=o[2],this._merge=o[3],this._split=o[4],this._transitions=a,this._facetElements=s}var t,n,r;return e.prototype.selectAll=function(e){var t="string"===typeof e?this._parent.querySelectorAll(e):e;return new n(t,null,this._elements[0],this._document)},e.prototype.selectFacetAll=function(e){var t="string"===typeof e?this._parent.querySelectorAll(e):e;return new n(this._elements,null,this._parent,this._document,void 0,void 0,t)},e.prototype.select=function(e){var t="string"===typeof e?this._parent.querySelectorAll(e)[0]||null:e;return new n([t],null,t,this._document)},e.prototype.append=function(e){var t=this,r="function"===typeof e?e:function(){return t.createElement(e)},i=[];if(null!==this._data){for(var o=0;o<this._data.length;o++){var a=this._data[o],s=br(Array.isArray(a)?a:[a,null],2),l=s[0],c=s[1],u=r(l,o);u.__data__=l,null!==c&&(u.__fromElements__=c),this._parent.appendChild(u),i.push(u)}return new n(i,null,this._parent,this._document)}for(o=0;o<this._elements.length;o++){var d=this._elements[o];l=d.__data__,u=r(l,o);d.appendChild(u),i.push(u)}return new n(i,null,i[0],this._document)},e.prototype.maybeAppend=function(e,n){var i=wr(this,t,"m",r).call(this,"#"===e[0]?e:"#".concat(e),n);return i.attr("id",e),i},e.prototype.maybeAppendByClassName=function(e,n){var i=e.toString(),o=wr(this,t,"m",r).call(this,"."===i[0]?i:".".concat(i),n);return o.attr("className",i),o},e.prototype.maybeAppendByName=function(e,n){var i=wr(this,t,"m",r).call(this,'[name="'.concat(e,'"]'),n);return i.attr("name",e),i},e.prototype.data=function(e,t,r){var i,o;void 0===t&&(t=function(e){return e}),void 0===r&&(r=function(){return null});for(var a=[],s=[],l=new Set(this._elements),c=[],u=new Set,d=new Map(this._elements.map(function(e,n){return[t(e.__data__,n),e]})),h=new Map(this._facetElements.map(function(e,n){return[t(e.__data__,n),e]})),f=Gb(this._elements,function(e){return r(e.__data__)}),p=0;p<e.length;p++){var g=e[p],m=t(g,p),v=r(g,p);if(d.has(m)){var A=d.get(m);A.__data__=g,A.__facet__=!1,s.push(A),l.delete(A),d.delete(m)}else if(h.has(m)){A=h.get(m);A.__data__=g,A.__facet__=!0,s.push(A),h.delete(m)}else if(f.has(m)){var b=f.get(m);c.push([g,b]);try{for(var y=(i=void 0,Ar(b)),w=y.next();!w.done;w=y.next()){A=w.value;l.delete(A)}}catch(x){i={error:x}}finally{try{w&&!w.done&&(o=y.return)&&o.call(y)}finally{if(i)throw i.error}}f.delete(m)}else if(d.has(v)){A=d.get(v);A.__toData__?A.__toData__.push(g):A.__toData__=[g],u.add(A),l.delete(A)}else a.push(g)}var _=[new n([],a,this._parent,this._document),new n(s,null,this._parent,this._document),new n(l,null,this._parent,this._document),new n([],c,this._parent,this._document),new n(u,null,this._parent,this._document)];return new n(this._elements,null,this._parent,this._document,_)},e.prototype.merge=function(e){var t=yr(yr([],br(this._elements),!1),br(e._elements),!1),r=yr(yr([],br(this._transitions),!1),br(e._transitions),!1);return new n(t,null,this._parent,this._document,void 0,r)},e.prototype.createElement=function(e){if(this._document)return this._document.createElement(e,{});var t=n.registry[e];return t?new t:Vb("Unknown node type: ".concat(e))},e.prototype.join=function(e,t,n,r,i){void 0===e&&(e=function(e){return e}),void 0===t&&(t=function(e){return e}),void 0===n&&(n=function(e){return e.remove()}),void 0===r&&(r=function(e){return e}),void 0===i&&(i=function(e){return e.remove()});var o=e(this._enter),a=t(this._update),s=n(this._exit),l=r(this._merge),c=i(this._split);return a.merge(o).merge(s).merge(l).merge(c)},e.prototype.remove=function(){for(var e=function(e){var n=t._elements[e],r=t._transitions[e];r?r.then(function(){return n.remove()}):n.remove()},t=this,r=0;r<this._elements.length;r++)e(r);return new n([],null,this._parent,this._document,void 0,this._transitions)},e.prototype.each=function(e){for(var t=0;t<this._elements.length;t++){var n=this._elements[t],r=n.__data__;e.call(n,r,t)}return this},e.prototype.attr=function(e,t){var n="function"!==typeof t?function(){return t}:t;return this.each(function(r,i){void 0!==t&&(this[e]=n.call(this,r,i))})},e.prototype.style=function(e,t,n){void 0===n&&(n=!0);var r="function"===typeof t&&n?t:function(){return t};return this.each(function(n,i){void 0!==t&&(this.style[e]=r.call(this,n,i))})},e.prototype.styles=function(e,t){return void 0===e&&(e={}),void 0===t&&(t=!0),this.each(function(n,r){var i=this;Object.entries(e).forEach(function(e){var o=br(e,2),a=o[0],s=o[1],l="function"===typeof s&&t?s:function(){return s};void 0!==s&&i.attr(a,l.call(i,n,r))})})},e.prototype.update=function(e,t){void 0===t&&(t=!0);var n="function"===typeof e&&t?e:function(){return e};return this.each(function(t,r){e&&this.update&&this.update(n.call(this,t,r))})},e.prototype.maybeUpdate=function(e,t){void 0===t&&(t=!0);var n="function"===typeof e&&t?e:function(){return e};return this.each(function(t,r){e&&this.update&&this.update(n.call(this,t,r))})},e.prototype.transition=function(e){this._transitions;var t=new Array(this._elements.length);return this.each(function(n,r){t[r]=e.call(this,n,r)}),this._transitions=zb(t),this},e.prototype.on=function(e,t){return this.each(function(){this.addEventListener(e,t)}),this},e.prototype.call=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.call.apply(e,yr([this._parent,this],br(t),!1)),this},e.prototype.node=function(){return this._elements[0]},e.prototype.nodes=function(){return this._elements},e.prototype.transitions=function(){return this._transitions.filter(function(e){return!!e})},e.prototype.parent=function(){return this._parent},n=e,t=new WeakSet,r=function(e,t){var r=this._elements[0],i=r.querySelector(e);if(i)return new n([i],null,this._parent,this._document);var o="string"===typeof t?this.createElement(t):t();return r.appendChild(o),new n([o],null,this._parent,this._document)},e.registry={g:_h,rect:Rh,circle:vh,path:Oh,text:Wb,ellipse:yh,image:Sh,line:Th,polygon:Ih,polyline:Nh,html:Eh},e}();function Yb(e){return new Kb([e],null,e,e.ownerDocument)}function qb(e,t,n){return e.querySelector(t)?Yb(e).select(t):Yb(e).append(n)}var Xb=function(e,t,n){return[["M",e-n,t],["A",n,n,0,1,0,e+n,t],["A",n,n,0,1,0,e-n,t],["Z"]]},Jb=Xb,Zb=function(e,t,n){return[["M",e-n,t-n],["L",e+n,t-n],["L",e+n,t+n],["L",e-n,t+n],["Z"]]},ey=function(e,t,n){return[["M",e-n,t],["L",e,t-n],["L",e+n,t],["L",e,t+n],["Z"]]},ty=function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[["M",e-n,t+r],["L",e,t-r],["L",e+n,t+r],["Z"]]},ny=function(e,t,n){var r=n*Math.sin(1/3*Math.PI);return[["M",e-n,t-r],["L",e+n,t-r],["L",e,t+r],["Z"]]},ry=function(e,t,n){var r=n/2*Math.sqrt(3);return[["M",e,t-n],["L",e+r,t-n/2],["L",e+r,t+n/2],["L",e,t+n],["L",e-r,t+n/2],["L",e-r,t-n/2],["Z"]]},iy=function(e,t,n){var r=n-1.5;return[["M",e-n,t-r],["L",e+n,t+r],["L",e+n,t-r],["L",e-n,t+r],["Z"]]},oy=function(e,t,n){return[["M",e,t+n],["L",e,t-n]]},ay=function(e,t,n){return[["M",e-n,t-n],["L",e+n,t+n],["M",e+n,t-n],["L",e-n,t+n]]},sy=function(e,t,n){return[["M",e-n/2,t-n],["L",e+n/2,t-n],["M",e,t-n],["L",e,t+n],["M",e-n/2,t+n],["L",e+n/2,t+n]]},ly=function(e,t,n){return[["M",e-n,t],["L",e+n,t],["M",e,t-n],["L",e,t+n]]},cy=function(e,t,n){return[["M",e-n,t],["L",e+n,t]]},uy=function(e,t,n){return[["M",e-n,t],["L",e+n,t]]},dy=uy,hy=function(e,t,n){return[["M",e-n,t],["A",n/2,n/2,0,1,1,e,t],["A",n/2,n/2,0,1,0,e+n,t]]},fy=function(e,t,n){return[["M",e-n-1,t-2.5],["L",e,t-2.5],["L",e,t+2.5],["L",e+n+1,t+2.5]]},py=function(e,t,n){return[["M",e-n-1,t+2.5],["L",e,t+2.5],["L",e,t-2.5],["L",e+n+1,t-2.5]]},gy=function(e,t,n){return[["M",e-(n+1),t+2.5],["L",e-n/2,t+2.5],["L",e-n/2,t-2.5],["L",e+n/2,t-2.5],["L",e+n/2,t+2.5],["L",e+n+1,t+2.5]]};function my(e,t){return[["M",e-5,t+2.5],["L",e-5,t],["L",e,t],["L",e,t-3],["L",e,t+3],["L",e+6.5,t+3]]}var vy=function(e,t,n){return[["M",e-n,t-n],["L",e+n,t],["L",e-n,t+n],["Z"]]},Ay=function(e,t,n){var r=n,i=.2*n,o=.7*n;return[["M",e-r,t],["A",r,r,0,1,0,e+r,t],["A",r,r,0,1,0,e-r,t],["Z"],["M",e-o,t],["L",e-i,t],["M",e+i,t],["L",e+o,t],["M",e,t-o],["L",e,t-i],["M",e,t+i],["L",e,t+o]]};function by(e){var t="default";if(Oi(e)&&e instanceof Image)t="image";else if(ki(e))t="symbol";else if(dr(e)){var n=new RegExp("data:(image|text)");t=e.match(n)?"base64":/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(e)?"url":"symbol"}return t}function yy(e){var t=by(e);return["base64","url","image"].includes(t)?"image":e&&"symbol"===t?"path":null}var wy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gr(t,e),t.prototype.render=function(e,n){var r=e.x,i=void 0===r?0:r,o=e.y,a=void 0===o?0:o,s=this.getSubShapeStyle(e),l=s.symbol,c=s.size,u=void 0===c?16:c,d=vr(s,["symbol","size"]),h=yy(l);Ub(!!h,Yb(n),function(e){e.maybeAppendByClassName("marker",h).attr("className","marker ".concat(h,"-marker")).call(function(e){if("image"===h){var n=2*u;e.styles({img:l,width:n,height:n,x:i-u,y:a-u})}else{n=u/2;var r=ki(l)?l:t.getSymbol(l);e.styles(mr({d:null===r||void 0===r?void 0:r(i,a,n)},d))}})})},t.MARKER_SYMBOL_MAP=new Map,t.registerSymbol=function(e,n){t.MARKER_SYMBOL_MAP.set(e,n)},t.getSymbol=function(e){return t.MARKER_SYMBOL_MAP.get(e)},t.getSymbols=function(){return Array.from(t.MARKER_SYMBOL_MAP.keys())},t}(Hb);wy.registerSymbol("cross",ay),wy.registerSymbol("hyphen",cy),wy.registerSymbol("line",oy),wy.registerSymbol("plus",ly),wy.registerSymbol("tick",sy),wy.registerSymbol("circle",Xb),wy.registerSymbol("point",Jb),wy.registerSymbol("bowtie",iy),wy.registerSymbol("hexagon",ry),wy.registerSymbol("square",Zb),wy.registerSymbol("diamond",ey),wy.registerSymbol("triangle",ty),wy.registerSymbol("triangle-down",ny),wy.registerSymbol("line",oy),wy.registerSymbol("dot",uy),wy.registerSymbol("dash",dy),wy.registerSymbol("smooth",hy),wy.registerSymbol("hv",fy),wy.registerSymbol("vh",py),wy.registerSymbol("hvh",gy),wy.registerSymbol("vhv",my),wy.registerSymbol("focus",Ay);var _y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function xy(e){const{min:[t,n],max:[r,i]}=e.getLocalBounds();let o=0,a=0;return t>0&&(o=t),r<0&&(o=r),n>0&&(a=n),i<0&&(a=i),[o,a]}function Ey(e,t=[]){const[n=0,r=0,i=n,o=r]=t,a=e.parentNode,s=a.getEulerAngles();a.setEulerAngles(0);const{min:l,halfExtents:c}=e.getLocalBounds(),[u,d]=l,[h,f]=c;return a.setEulerAngles(s),{x:u-o,y:d-n,width:2*h+o+r,height:2*f+n+i}}function Sy(e,t,n,r,i=!0,o=!0){const a=e=>Ym()(e);if(!t[0]&&!t[1])return a([xy(e),t]);if(!n.length)return a([[0,0],t]);const[s,l]=n,c=[...l],u=[...s];if(l[0]!==s[0]){const e=i?-4:4;c[1]=l[1],o&&!i&&(c[0]=Math.max(s[0],l[0]-e),l[1]<s[1]?u[1]=c[1]:(u[1]=s[1],u[0]=Math.max(u[0],c[0]-e))),o||i||(c[0]=Math.max(s[0],l[0]-e),l[1]>s[1]?u[1]=c[1]:(u[1]=s[1],u[0]=Math.max(u[0],c[0]-e))),!o&&i&&(c[0]=Math.min(s[0],l[0]-e),l[1]>s[1]?u[1]=c[1]:(u[1]=s[1],u[0]=Math.min(u[0],c[0]-e))),o&&i&&(c[0]=Math.min(s[0],l[0]-e),l[1]<s[1]?u[1]=c[1]:(u[1]=s[1],u[0]=Math.min(u[0],c[0]-e)))}return a([l,c,u,s,t])}const Cy=Bv(e=>{const t=e.attributes,{className:n,class:r,transform:i,rotate:o,labelTransform:a,labelTransformOrigin:s,x:l,y:c,x0:u=l,y0:d=c,text:h,background:f,connector:p,startMarker:g,endMarker:m,coordCenter:v,innerHTML:A}=t,b=_y(t,["className","class","transform","rotate","labelTransform","labelTransformOrigin","x","y","x0","y0","text","background","connector","startMarker","endMarker","coordCenter","innerHTML"]);if(e.style.transform=`translate(${l}, ${c})`,[l,c,u,d].some(e=>!lr(e)))return void e.children.forEach(e=>e.remove());const y=Og(b,"background"),{padding:w}=y,_=_y(y,["padding"]),x=Og(b,"connector"),{points:E=[]}=x,S=_y(x,["points"]);let C;C=A?Pg(e).maybeAppend("html","html",n).style("zIndex",0).style("innerHTML",A).call(Om,Object.assign({transform:a,transformOrigin:s},b)).node():Pg(e).maybeAppend("text","text").style("zIndex",0).style("text",h).call(Om,Object.assign({textBaseline:"middle",transform:a,transformOrigin:s},b)).node();const T=Pg(e).maybeAppend("background","rect").style("zIndex",-1).call(Om,Ey(C,w)).call(Om,f?_:{}).node(),k=+u<v[0],O=+d<v[1],M=[+u-+l,+d-+c],I=Sy(T,M,E,v,k,O),D=g&&new wy({id:"startMarker",style:Object.assign({x:0,y:0},Og(b,"startMarker"))}),N=m&&new wy({id:"endMarker",style:Object.assign({x:0,y:0},Og(b,"endMarker"))});Pg(e).maybeAppend("connector","path").style("zIndex",0).style("d",I).style("markerStart",D).style("markerEnd",N).call(Om,p?S:{})}),Ty=(e,t)=>{const{coordinate:n}=t;return(t,r,i)=>{const{color:o,text:a="",fontSize:s,rotate:l=0,transform:c=""}=r,u={text:String(a),stroke:o,fill:o,fontSize:s},[[d,h]]=t;return Pg(new Cy).style("x",d).style("y",h).call(Om,i).style("transform",`${c}rotate(${+l})`).style("coordCenter",n.getCenter()).call(Om,u).call(Om,e).node()}};Ty.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var ky=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Oy(e){const t=e/Math.sqrt(2),n=e*Math.sqrt(2),[r,i]=[-t,t-n],[o,a]=[0,0],[s,l]=[t,t-n];return[["M",r,i],["A",e,e,0,1,1,s,l],["L",o,a],["Z"]]}function My(e){const{min:t,max:n}=e.getLocalBounds();return[.5*(t[0]+n[0]),.5*(t[1]+n[1])]}const Iy=Bv(e=>{const t=e.attributes,{class:n,x:r,y:i,transform:o}=t,a=ky(t,["class","x","y","transform"]),s=Og(a,"marker"),{size:l=24}=s,c=()=>Oy(l/2),u=Pg(e).maybeAppend("marker",()=>new wy({})).call(e=>e.node().update(Object.assign({symbol:c},s))).node(),[d,h]=My(u);Pg(e).maybeAppend("text","text").style("x",d).style("y",h).call(Om,a)}),Dy=(e,t)=>{const n=ky(e,[]);return(e,t,r)=>{const{color:i}=r,o=ky(r,["color"]),{color:a=i,text:s=""}=t,l={text:String(s),stroke:a,fill:a},[[c,u]]=e;return Pg(new Iy).call(Om,o).style("transform",`translate(${c},${u})`).call(Om,l).call(Om,n).node()}};Dy.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Ny=(e,t)=>{const{coordinate:n}=t;return(t,r,i)=>{const{color:o,text:a="",fontSize:s,rotate:l=0,transform:c=""}=r,u={text:String(a),stroke:o,fill:o,fontSize:s,textAlign:"center",textBaseline:"middle"},[[d,h]]=t,f=Pg(new Bh).style("x",d).style("y",h).call(Om,i).style("transformOrigin","center center").style("transform",`${c}rotate(${l}deg)`).style("coordCenter",n.getCenter()).call(Om,u).call(Om,e).node();return f}};Ny.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Ry=()=>(e,t)=>{const{data:n}=t;if(!Array.isArray(n)||n.some(W))return[e,t];const r=Array.isArray(n[0])?n:[n],i=r.map(e=>e[0]),o=r.map(e=>e[1]);return[e,P({},t,{encode:{x:F(i),y:F(o)}})]};Ry.props={};var Ly=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const By=()=>(e,t)=>{const{data:n,style:r={}}=t,i=Ly(t,["data","style"]),{x:o,y:a}=r,s=Ly(r,["x","y"]);if(void 0==o||void 0==a)return[e,t];const l=o||0,c=a||0;return[[0],P({},i,{data:[0],cartesian:!0,encode:{x:F([l]),y:F([c])},scale:{x:{type:"identity",independent:!0,guide:null},y:{type:"identity",independent:!0,guide:null}},style:s})]};By.props={};const Py={text:Ty,badge:Dy,tag:Ny},Fy=e=>{const{cartesian:t=!1}=e;return t?wv:(t,n,r,i)=>{const{x:o,y:a}=r,s=bv(n,r,e),l=Array.from(t,e=>{const t=[+o[e],+a[e]];return[i.map(s(t,e))]});return[t,l]}};Fy.props={defaultShape:"text",defaultLabelShape:"label",composite:!1,shape:Py,channels:[...dv({shapes:Object.keys(Py)}),{name:"x",required:!0},{name:"y",required:!0},{name:"text",scale:"identity"},{name:"fontSize",scale:"identity"},{name:"rotate",scale:"identity"}],preInference:[...mv(),{type:Ry},{type:By}],postInference:[...vv(),...hv()]};const $y=()=>(e,t)=>[e,P({scale:{x:{padding:0},y:{padding:0}}},t)];$y.props={};const jy={cell:Um,hollow:Qm},Hy=()=>(e,t,n,r)=>{const{x:i,y:o}=n,a=t.x,s=t.y,l=Array.from(e,e=>{const t=a.getBandWidth(a.invert(+i[e])),n=s.getBandWidth(s.invert(+o[e])),l=+i[e],c=+o[e],u=[l,c],d=[l+t,c],h=[l+t,c+n],f=[l,c+n];return[u,d,h,f].map(e=>r.map(e))});return[e,l]};function Uy(e,t,n){var r=null,i=K(!0),o=null,a=Gm,s=null,l=me(c);function c(c){var u,d,h,f,p,g=(c=zm(c)).length,m=!1,v=new Array(g),A=new Array(g);for(null==o&&(s=a(p=l())),u=0;u<=g;++u){if(!(u<g&&i(f=c[u],u,c))===m)if(m=!m)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=u-1;h>=d;--h)s.point(v[h],A[h]);s.lineEnd(),s.areaEnd()}m&&(v[u]=+e(f,u,c),A[u]=+t(f,u,c),s.point(r?+r(f,u,c):v[u],n?+n(f,u,c):A[u]))}if(p)return s=null,p+""||null}function u(){return Ym().defined(i).curve(a).context(o)}return e="function"===typeof e?e:void 0===e?Vm:K(+e),t="function"===typeof t?t:K(void 0===t?0:+t),n="function"===typeof n?n:void 0===n?Km:K(+n),c.x=function(t){return arguments.length?(e="function"===typeof t?t:K(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"===typeof t?t:K(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:K(+e),c):r},c.y=function(e){return arguments.length?(t="function"===typeof e?e:K(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"===typeof e?e:K(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"===typeof e?e:K(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(i="function"===typeof e?e:K(!!e),c):i},c.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),c):a},c.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),c):o},c}function Qy(){var e=Uy().curve(Iv),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return Rv(n())},delete e.lineX0,e.lineEndAngle=function(){return Rv(r())},delete e.lineX1,e.lineInnerRadius=function(){return Rv(i())},delete e.lineY0,e.lineOuterRadius=function(){return Rv(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(Nv(e)):t()._curve},e}Hy.props={defaultShape:"cell",defaultLabelShape:"label",shape:jy,composite:!1,channels:[...dv({shapes:Object.keys(jy)}),{name:"x",required:!0,scale:"band"},{name:"y",required:!0,scale:"band"}],preInference:[...mv(),{type:V},{type:Cb},{type:$y}],postInference:[...vv(),...hv()]};var zy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Wy(e,t){const n=[],r=[],i=[];let o=!1,a=null;const s=e.length/2;for(let l=0;l<s;l++){const c=e[l],u=e[l+s];if([...c,...u].some(e=>!t(e)))o=!0;else{if(n.push(c),r.push(u),o&&a){o=!1;const[e,t]=a;i.push([e,c,t,u])}a=[c,u]}}return[n.concat(r),i]}const Gy=Bv(e=>{const{areaPath:t,connectPath:n,areaStyle:r,connectStyle:i}=e.attributes,o=e.ownerDocument;Pg(e).maybeAppend("connect-path",()=>o.createElement("path",{})).style("d",n).call(Om,i),Pg(e).maybeAppend("area-path",()=>o.createElement("path",{})).style("d",t).call(Om,r)}),Vy=(e,t)=>{const{curve:n,gradient:r=!1,defined:i=e=>!Number.isNaN(e)&&void 0!==e&&null!==e,connect:o=!1}=e,a=zy(e,["curve","gradient","defined","connect"]),{coordinate:s,document:l}=t;return(e,t,c)=>{const{color:u}=c,{color:d=u,seriesColor:h,seriesX:f,seriesY:p}=t,g=Se(s),m=Pm(s,t),v=r&&h?Nm(h,f,p,r,void 0,g):d,A=Object.assign(Object.assign(Object.assign(Object.assign({},c),{stroke:v,fill:v}),m&&{transform:m}),a),[b,y]=Wy(e,i),w=Og(A,"connect"),_=!!y.length,x=e=>Pg(l.createElement("path",{})).style("d",e||"").call(Om,A).node();if(Ce(s)){const t=e=>{const t=s.getCenter(),r=e.slice(0,e.length/2),o=e.slice(e.length/2);return Qy().angle((e,n)=>Qg($g(r[n],t))).outerRadius((e,n)=>Hg(r[n],t)).innerRadius((e,n)=>Hg(o[n],t)).defined((e,t)=>[...r[t],...o[t]].every(i)).curve(n)(o)};return!_||o&&!Object.keys(w).length?x(t(b)):_&&!o?x(t(e)):Pg(new Gy).style("areaStyle",A).style("connectStyle",Object.assign(Object.assign({},w),a)).style("areaPath",t(e)).style("connectPath",y.map(t).join("")).node()}{const t=e=>{const t=e.slice(0,e.length/2),r=e.slice(e.length/2);return g?Uy().y((e,n)=>t[n][1]).x1((e,n)=>t[n][0]).x0((e,t)=>r[t][0]).defined((e,n)=>[...t[n],...r[n]].every(i)).curve(n)(t):Uy().x((e,n)=>t[n][0]).y1((e,n)=>t[n][1]).y0((e,t)=>r[t][1]).defined((e,n)=>[...t[n],...r[n]].every(i)).curve(n)(t)};return!_||o&&!Object.keys(w).length?x(t(b)):_&&!o?x(t(e)):Pg(new Gy).style("areaStyle",A).style("connectStyle",Object.assign(Object.assign({},w),a)).style("areaPath",t(e)).style("connectPath",y.map(t).join("")).node()}}};Vy.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Ky=(e,t)=>{const{coordinate:n}=t;return(...r)=>{const i=Ce(n)?Jm:Gm;return Vy(Object.assign({curve:i},e),t)(...r)}};Ky.props=Object.assign(Object.assign({},Vy.props),{defaultMarker:"square"});var Yy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const qy=(e,t)=>{const n=Yy(e,[]),{coordinate:r}=t;return(...e)=>{const i=Ce(r)?Kv:Se(r)?rA:nA;return Vy(Object.assign({curve:i},n),t)(...e)}};qy.props=Object.assign(Object.assign({},Vy.props),{defaultMarker:"smooth"});const Xy=(e,t)=>(...n)=>Vy(Object.assign({curve:sA},e),t)(...n);Xy.props=Object.assign(Object.assign({},Vy.props),{defaultMarker:"hvh"});const Jy=(e,t)=>(...n)=>Vy(Object.assign({curve:lA},e),t)(...n);Jy.props=Object.assign(Object.assign({},Vy.props),{defaultMarker:"vh"});const Zy=(e,t)=>(...n)=>Vy(Object.assign({curve:cA},e),t)(...n);Zy.props=Object.assign(Object.assign({},Vy.props),{defaultMarker:"hv"});const ew={area:Ky,smooth:qy,hvh:Xy,vh:Jy,hv:Zy},tw=()=>(e,t,n,r)=>{var i,o;const{x:a,y:s,y1:l,series:c}=n,{x:u,y:d}=t,h=c?Array.from(Lp(e,e=>c[e]).values()):[e],f=h.map(e=>e[0]).filter(e=>void 0!==e),p=((null===(i=null===u||void 0===u?void 0:u.getBandWidth)||void 0===i?void 0:i.call(u))||0)/2,g=((null===(o=null===d||void 0===d?void 0:d.getBandWidth)||void 0===o?void 0:o.call(d))||0)/2,m=Array.from(h,e=>{const t=e.length,n=new Array(2*t);for(let i=0;i<e.length;i++){const o=e[i];n[i]=r.map([+a[o]+p,+s[o]+g]),n[t+i]=r.map([+a[o]+p,+l[o]+g])}return n});return[f,m,h]};tw.props={defaultShape:"area",defaultLabelShape:"label",composite:!1,shape:ew,channels:[...dv({shapes:Object.keys(ew)}),{name:"x",required:!0},{name:"y",required:!0},{name:"size"},{name:"series",scale:"band"}],preInference:[...mv(),{type:vA},{type:G},{type:$y}],postInference:[...vv(),...fv()],interaction:{shareTooltip:!0,seriesTooltip:!0,crosshairs:!0}};const nw=()=>(e,t)=>{const{encode:n}=t,{y1:r}=n;if(r)return[e,t];const[i]=Q(n,"y");return[e,P({},t,{encode:{y1:F([...i])}})]};nw.props={};const rw=()=>(e,t)=>{const{encode:n}=t,{x1:r}=n;if(r)return[e,t];const[i]=Q(n,"x");return[e,P({},t,{encode:{x1:F([...i])}})]};rw.props={};var iw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const ow=(e,t)=>{const{arrow:n=!0,arrowSize:r="40%"}=e,i=iw(e,["arrow","arrowSize"]),{document:o}=t;return(e,t,a)=>{const{defaultColor:s}=a,l=iw(a,["defaultColor"]),{color:c=s,transform:u}=t,[d,h]=e,f=ge();if(f.moveTo(...d),f.lineTo(...h),n){const[e,t]=Im(d,h,{arrowSize:r});f.moveTo(...e),f.lineTo(...h),f.lineTo(...t)}return Pg(o.createElement("path",{})).call(Om,l).style("d",f.toString()).style("stroke",c).style("transform",u).call(Om,i).node()}};ow.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const aw=(e,t)=>{const{arrow:n=!1}=e;return(...r)=>ow(Object.assign(Object.assign({},e),{arrow:n}),t)(...r)};aw.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var sw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const lw=(e,t)=>{const n=sw(e,[]),{coordinate:r,document:i}=t;return(e,t,o)=>{const{color:a}=o,s=sw(o,["color"]),{color:l=a,transform:c}=t,[u,d]=e,h=ge();if(h.moveTo(u[0],u[1]),Ce(r)){const e=r.getCenter();h.quadraticCurveTo(e[0],e[1],d[0],d[1])}else{const e=Gg(u,d),t=Hg(u,d)/2;Dm(h,u,d,e,t)}return Pg(i.createElement("path",{})).call(Om,s).style("d",h.toString()).style("stroke",l).style("transform",c).call(Om,n).node()}};lw.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var cw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const uw=(e,t)=>{const n=cw(e,[]),{document:r}=t;return(e,t,i)=>{const{color:o}=i,a=cw(i,["color"]),{color:s=o,transform:l}=t,[c,u]=e,d=ge();return d.moveTo(c[0],c[1]),d.bezierCurveTo(c[0]/2+u[0]/2,c[1],c[0]/2+u[0]/2,u[1],u[0],u[1]),Pg(r.createElement("path",{})).call(Om,a).style("d",d.toString()).style("stroke",s).style("transform",l).call(Om,n).node()}};uw.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var dw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function hw(e,t,n,r){const i=ge();if(Ce(n)){const o=n.getCenter(),a=Hg(e,o),s=Hg(t,o),l=(s-a)*r+a;return i.moveTo(e[0],e[1]),Dm(i,e,t,o,l),i.lineTo(t[0],t[1]),i}return Se(n)?(i.moveTo(e[0],e[1]),i.lineTo(e[0]+(t[0]-e[0])*r,e[1]),i.lineTo(e[0]+(t[0]-e[0])*r,t[1]),i.lineTo(t[0],t[1]),i):(i.moveTo(e[0],e[1]),i.lineTo(e[0],e[1]+(t[1]-e[1])*r),i.lineTo(t[0],e[1]+(t[1]-e[1])*r),i.lineTo(t[0],t[1]),i)}const fw=(e,t)=>{const{cornerRatio:n=1/3}=e,r=dw(e,["cornerRatio"]),{coordinate:i,document:o}=t;return(e,t,a)=>{const{defaultColor:s}=a,l=dw(a,["defaultColor"]),{color:c=s,transform:u}=t,[d,h]=e,f=hw(d,h,i,n);return Pg(o.createElement("path",{})).call(Om,l).style("d",f.toString()).style("stroke",c).style("transform",u).call(Om,r).node()}};fw.props={defaultMarker:"vhv",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const pw={link:aw,arc:lw,smooth:uw,vhv:fw},gw=e=>(t,n,r,i)=>{const{x:o,y:a,x1:s=o,y1:l=a}=r,c=bv(n,r,e),u=t.map(e=>[i.map(c([+o[e],+a[e]],e)),i.map(c([+s[e],+l[e]],e))]);return[t,u]};gw.props={defaultShape:"link",defaultLabelShape:"label",composite:!1,shape:pw,channels:[...dv({shapes:Object.keys(pw)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...mv(),{type:nw},{type:rw}],postInference:[...vv(),...hv()]};var mw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const vw=(e,t)=>{const{coordinate:n,document:r}=t;return(t,i,o)=>{const{color:a}=o,s=mw(o,["color"]),{color:l=a,src:c="",size:u=32,transform:d=""}=i;let{width:h=u,height:f=u}=e;const[[p,g]]=t,[m,v]=n.getSize();h="string"===typeof h?yv(h)*m:h,f="string"===typeof f?yv(f)*v:f;const A=p-Number(h)/2,b=g-Number(f)/2;return Pg(r.createElement("image",{})).call(Om,s).style("x",A).style("y",b).style("src",c).style("stroke",l).style("transform",d).call(Om,e).style("width",h).style("height",f).node()}};vw.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Aw={image:vw},bw=e=>{const{cartesian:t}=e;return t?wv:(t,n,r,i)=>{const{x:o,y:a}=r,s=bv(n,r,e),l=Array.from(t,e=>{const t=[+o[e],+a[e]];return[i.map(s(t,e))]});return[t,l]}};bw.props={defaultShape:"image",defaultLabelShape:"label",composite:!1,shape:Aw,channels:[...dv({shapes:Object.keys(Aw)}),{name:"x",required:!0},{name:"y",required:!0},{name:"src",scale:"identity"},{name:"size"}],preInference:[...mv(),{type:Ry},{type:By}],postInference:[...vv(),...hv()]};var yw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function ww(e,t){const n=ge();if(Ce(t)){const r=t.getCenter(),i=[...e,e[0]],o=i.map(e=>Hg(e,r));return i.forEach((t,i)=>{if(0===i)return void n.moveTo(t[0],t[1]);const a=o[i],s=e[i-1],l=o[i-1];void 0!==l&&Math.abs(a-l)<1e-10?Dm(n,s,t,r,a):n.lineTo(t[0],t[1])}),n.closePath(),n}return Mm(n,e)}const _w=(e,t)=>{const{coordinate:n,document:r}=t;return(t,i,o)=>{const{color:a}=o,s=yw(o,["color"]),{color:l=a,transform:c}=i,u=ww(t,n);return Pg(r.createElement("path",{})).call(Om,s).style("d",u.toString()).style("stroke",l).style("fill",l).style("transform",c).call(Om,e).node()}};_w.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var xw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Ew(e,t){const[n,r,i,o]=e,a=ge();if(Ce(t)){const e=t.getCenter(),s=Hg(e,n);return a.moveTo(n[0],n[1]),a.quadraticCurveTo(e[0],e[1],i[0],i[1]),Dm(a,i,o,e,s),a.quadraticCurveTo(e[0],e[1],r[0],r[1]),Dm(a,r,n,e,s),a.closePath(),a}return a.moveTo(n[0],n[1]),a.bezierCurveTo(n[0]/2+i[0]/2,n[1],n[0]/2+i[0]/2,i[1],i[0],i[1]),a.lineTo(o[0],o[1]),a.bezierCurveTo(o[0]/2+r[0]/2,o[1],o[0]/2+r[0]/2,r[1],r[0],r[1]),a.lineTo(n[0],n[1]),a.closePath(),a}const Sw=(e,t)=>{const n=xw(e,[]),{coordinate:r,document:i}=t;return(e,t,o)=>{const{color:a}=o,s=xw(o,["color"]),{color:l=a,transform:c}=t,u=Ew(e,r);return Pg(i.createElement("path",{})).call(Om,s).style("d",u.toString()).style("fill",l||a).style("stroke",l||a).style("transform",c).call(Om,n).node()}};Sw.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Cw={polygon:_w,ribbon:Sw},Tw=()=>(e,t,n,r)=>{const i=Object.entries(n).filter(([e])=>e.startsWith("x")).map(([,e])=>e),o=Object.entries(n).filter(([e])=>e.startsWith("y")).map(([,e])=>e),a=e.map(e=>{const t=[];for(let n=0;n<i.length;n++){const a=i[n][e];if(void 0===a)break;const s=o[n][e];t.push(r.map([+a,+s]))}return t});return[e,a]};Tw.props={defaultShape:"polygon",defaultLabelShape:"label",composite:!1,shape:Cw,channels:[...dv({shapes:Object.keys(Cw)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...mv()],postInference:[...vv(),...hv()]};var kw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Ow(e,t){const n=ge();if(Ce(t)){const r=t.getCenter(),[i,o]=r,a=Ug($g(e[0],r)),s=Ug($g(e[1],r)),l=Hg(r,e[2]),c=Hg(r,e[3]),u=Hg(r,e[8]),d=Hg(r,e[10]),h=Hg(r,e[11]);n.moveTo(...e[0]),n.arc(i,o,l,a,s),n.arc(i,o,l,s,a,!0),n.moveTo(...e[2]),n.lineTo(...e[3]),n.moveTo(...e[4]),n.arc(i,o,c,a,s),n.lineTo(...e[6]),n.arc(i,o,d,s,a,!0),n.closePath(),n.moveTo(...e[8]),n.arc(i,o,u,a,s),n.arc(i,o,u,s,a,!0),n.moveTo(...e[10]),n.lineTo(...e[11]),n.moveTo(...e[12]),n.arc(i,o,h,a,s),n.arc(i,o,h,s,a,!0)}else n.moveTo(...e[0]),n.lineTo(...e[1]),n.moveTo(...e[2]),n.lineTo(...e[3]),n.moveTo(...e[4]),n.lineTo(...e[5]),n.lineTo(...e[6]),n.lineTo(...e[7]),n.closePath(),n.moveTo(...e[8]),n.lineTo(...e[9]),n.moveTo(...e[10]),n.lineTo(...e[11]),n.moveTo(...e[12]),n.lineTo(...e[13]);return n}const Mw=(e,t)=>{const{coordinate:n,document:r}=t;return(t,i,o)=>{const{color:a,transform:s}=i,{color:l,fill:c=l,stroke:u=l}=o,d=kw(o,["color","fill","stroke"]),h=Ow(t,n);return Pg(r.createElement("path",{})).call(Om,d).style("d",h.toString()).style("stroke",u).style("fill",a||c).style("transform",s).call(Om,e).node()}};Mw.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var Iw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Dw(e,t,n=4){const r=ge();if(!Ce(t))return r.moveTo(...e[2]),r.lineTo(...e[3]),r.lineTo(e[3][0]-n,e[3][1]),r.lineTo(e[10][0]-n,e[10][1]),r.lineTo(e[10][0]+n,e[10][1]),r.lineTo(e[3][0]+n,e[3][1]),r.lineTo(...e[3]),r.closePath(),r.moveTo(...e[10]),r.lineTo(...e[11]),r.moveTo(e[3][0]+n/2,e[8][1]),r.arc(e[3][0],e[8][1],n/2,0,2*Math.PI),r.closePath(),r;const i=t.getCenter(),[o,a]=i,s=Hg(i,e[3]),l=Hg(i,e[8]),c=Hg(i,e[10]),u=Ug($g(e[2],i)),d=Math.asin(n/l),h=u-d,f=u+d;r.moveTo(...e[2]),r.lineTo(...e[3]),r.moveTo(Math.cos(h)*s+o,Math.sin(h)*s+a),r.arc(o,a,s,h,f),r.lineTo(Math.cos(f)*c+o,Math.sin(f)*c+a),r.arc(o,a,c,f,h,!0),r.lineTo(Math.cos(h)*s+o,Math.sin(h)*s+a),r.closePath(),r.moveTo(...e[10]),r.lineTo(...e[11]);const p=(h+f)/2;return r.moveTo(Math.cos(p)*(l+n/2)+o,Math.sin(p)*(l+n/2)+a),r.arc(Math.cos(p)*l+o,Math.sin(p)*l+a,n/2,p,2*Math.PI+p),r.closePath(),r}const Nw=(e,t)=>{const{coordinate:n,document:r}=t;return(t,i,o)=>{const{color:a,transform:s}=i,l=4,{color:c,fill:u=c,stroke:d=c}=o,h=Iw(o,["color","fill","stroke"]),f=Dw(t,n,l);return Pg(r.createElement("path",{})).call(Om,h).style("d",f.toString()).style("stroke",d).style("fill",a||u).style("transform",s).call(Om,e).node()}};Nw.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Rw={box:Mw,violin:Nw},Lw=()=>(e,t,n,r)=>{const{x:i,y:o,y1:a,y2:s,y3:l,y4:c,series:u}=n,d=t.x,h=t.series,f=Array.from(e,e=>{const t=d.getBandWidth(d.invert(+i[e])),n=h?h.getBandWidth(h.invert(+(null===u||void 0===u?void 0:u[e]))):1,f=t*n,p=(+(null===u||void 0===u?void 0:u[e])||0)*t,g=+i[e]+p+f/2,[m,v,A,b,y]=[+o[e],+a[e],+s[e],+l[e],+c[e]],w=[[g-f/2,y],[g+f/2,y],[g,y],[g,b],[g-f/2,b],[g+f/2,b],[g+f/2,v],[g-f/2,v],[g-f/2,A],[g+f/2,A],[g,v],[g,m],[g-f/2,m],[g+f/2,m]];return w.map(e=>r.map(e))});return[e,f]};Lw.props={defaultShape:"box",defaultLabelShape:"label",composite:!1,shape:Rw,channels:[...dv({shapes:Object.keys(Rw)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"}],preInference:[...mv(),{type:V}],postInference:[...vv(),...fv()],interaction:{shareTooltip:!0}};const Bw={vector:ow},Pw=()=>(e,t,n,r)=>{const{x:i,y:o,size:a,rotate:s}=n,[l,c]=r.getSize(),u=e.map(e=>{const t=+s[e]/180*Math.PI,n=+a[e],u=n/l,d=n/c,h=u*Math.cos(t),f=-d*Math.sin(t);return[r.map([+i[e]-h/2,+o[e]-f/2]),r.map([+i[e]+h/2,+o[e]+f/2])]});return[e,u]};Pw.props={defaultShape:"vector",defaultLabelShape:"label",composite:!1,shape:Bw,channels:[...dv({shapes:Object.keys(Bw)}),{name:"x",required:!0},{name:"y",required:!0},{name:"rotate",required:!0,scale:"identity"},{name:"size",required:!0}],preInference:[...mv()],postInference:[...vv(),...hv()]};var Fw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function $w(e,t,n){const r=e.createElement("path",{style:Object.assign({d:`M ${t},${t} L -${t},0 L ${t},-${t} L 0,0 Z`,transformOrigin:"center"},n)});return r}function jw(e,t){if(!Ce(t))return Ym().x(e=>e[0]).y(e=>e[1])(e);const n=t.getCenter();return Ee()({startAngle:0,endAngle:2*Math.PI,outerRadius:Hg(e[0],n),innerRadius:Hg(e[1],n)})}function Hw(e,t){if(!Ce(e))return t;const[n,r]=e.getCenter();return`translate(${n}, ${r}) ${t||""}`}const Uw=(e,t)=>{const{arrow:n,arrowSize:r=4}=e,i=Fw(e,["arrow","arrowSize"]),{coordinate:o,document:a}=t;return(e,t,s)=>{const{color:l,lineWidth:c}=s,u=Fw(s,["color","lineWidth"]),{color:d=l,size:h=c}=t,f=n?$w(a,r,Object.assign({fill:i.stroke||d,stroke:i.stroke||d},Og(i,"arrow"))):null,p=jw(e,o),g=Hw(o,t.transform);return Pg(a.createElement("path",{})).call(Om,u).style("d",p).style("stroke",d).style("lineWidth",h).style("transform",g).style("markerEnd",f).call(Om,i).node()}};Uw.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Qw=()=>(e,t)=>{const{data:n}=t;return!Array.isArray(n)||n.some(W)?[e,t]:[e,P({},t,{encode:{x:F(n)}})]};Qw.props={};const zw={line:Uw},Ww=e=>(t,n,r,i)=>{const{x:o}=r,a=bv(n,r,P({style:{bandOffset:0}},e)),s=Array.from(t,e=>{const t=[o[e],1],n=[o[e],0];return[t,n].map(t=>i.map(a(t,e)))});return[t,s]};Ww.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:zw,channels:[...gv({shapes:Object.keys(zw)}),{name:"x",required:!0}],preInference:[...mv(),{type:Qw}],postInference:[...vv()]};const Gw=()=>(e,t)=>{const{data:n}=t;return!Array.isArray(n)||n.some(W)?[e,t]:[e,P({},t,{encode:{y:F(n)}})]};Gw.props={};const Vw={line:Uw},Kw=e=>(t,n,r,i)=>{const{y:o}=r,a=bv(n,r,P({style:{bandOffset:0}},e)),s=Array.from(t,e=>{const t=[0,o[e]],n=[1,o[e]];return[t,n].map(t=>i.map(a(t,e)))});return[t,s]};Kw.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:Vw,channels:[...gv({shapes:Object.keys(Vw)}),{name:"y",required:!0}],preInference:[...mv(),{type:Gw}],postInference:[...vv()]};var Yw=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function qw(e,t,n){return[["M",e,t],["L",e+2*n,t-n],["L",e+2*n,t+n],["Z"]]}function Xw(e){return Ym().x(e=>e[0]).y(e=>e[1])(e)}function Jw(e,t,n,r,i,o,a=0){const[[s,l],[c,u]]=t;if(Se(e)){const e=s+n,t=c+r,d=e+a,h=l+i,f=u+o;return[[e,h],[d,h],[d,f],[t,f]]}const d=l-n,h=u-r,f=d-a,p=s-i,g=c-o;return[[p,d],[p,f],[g,f],[g,h]]}const Zw=(e,t)=>{const{offsetX:n=0,sourceOffsetX:r=n,targetOffsetX:i=n,offsetY:o=0,sourceOffsetY:a=o,targetOffsetY:s=o,connectLength1:l,endMarker:c=!0}=e,u=Yw(e,["offsetX","sourceOffsetX","targetOffsetX","offsetY","sourceOffsetY","targetOffsetY","connectLength1","endMarker"]),{coordinate:d}=t;return(e,t,n)=>{const{color:o,connectLength1:h}=n,f=Yw(n,["color","connectLength1"]),{color:p,transform:g}=t,m=Jw(d,e,a,s,r,i,null!==l&&void 0!==l?l:h),v=Og(Object.assign(Object.assign({},u),n),"endMarker");return Pg(new Oh).call(Om,f).style("d",Xw(m)).style("stroke",p||o).style("transform",g).style("markerEnd",c?new wy({className:"marker",style:Object.assign(Object.assign({},v),{symbol:qw})}):null).call(Om,u).node()}};Zw.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const e_={connector:Zw},t_=(...e)=>gw(...e);function n_(e,t,n,r){if(t)return()=>[0,1];const{[e]:i,[`${e}1`]:o}=n;return e=>{var t;const n=(null===(t=r.getBandWidth)||void 0===t?void 0:t.call(r,r.invert(+o[e])))||0;return[i[e],o[e]+n]}}function r_(e={}){const{extendX:t=!1,extendY:n=!1}=e;return(e,r,i,o)=>{const a=n_("x",t,i,r.x),s=n_("y",n,i,r.y),l=Array.from(e,e=>{const[t,n]=a(e),[r,i]=s(e),l=[t,r],c=[n,r],u=[n,i],d=[t,i];return[l,c,u,d].map(e=>o.map(e))});return[e,l]}}t_.props={defaultShape:"connector",defaultLabelShape:"label",composite:!1,shape:e_,channels:[...gv({shapes:Object.keys(e_)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...mv()],postInference:[...vv()]};const i_={range:Um},o_=()=>r_();o_.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:i_,channels:[...gv({shapes:Object.keys(i_)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...mv()],postInference:[...vv()]};const a_=()=>(e,t)=>{const{data:n}=t;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(W))){const r=(e,t)=>Array.isArray(e[0])?e.map(e=>e[t]):[e[t]];return[e,P({},t,{encode:{x:F(r(n,0)),x1:F(r(n,1))}})]}return[e,t]};a_.props={};const s_={range:Um},l_=()=>r_({extendY:!0});l_.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:s_,channels:[...gv({shapes:Object.keys(s_)}),{name:"x",required:!0}],preInference:[...mv(),{type:a_}],postInference:[...vv()]};const c_=()=>(e,t)=>{const{data:n}=t;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(W))){const r=(e,t)=>Array.isArray(e[0])?e.map(e=>e[t]):[e[t]];return[e,P({},t,{encode:{y:F(r(n,0)),y1:F(r(n,1))}})]}return[e,t]};c_.props={};const u_={range:Um},d_=()=>r_({extendX:!0});d_.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:u_,channels:[...gv({shapes:Object.keys(u_)}),{name:"y",required:!0}],preInference:[...mv(),{type:c_}],postInference:[...vv()]};var h_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const f_=(e,t)=>{const{arrow:n,colorAttribute:r}=e,i=h_(e,["arrow","colorAttribute"]),{coordinate:o,document:a}=t;return(e,t,n)=>{const{color:s,stroke:l}=n,c=h_(n,["color","stroke"]),{d:u,color:d=s}=t,[h,f]=o.getSize();return Pg(a.createElement("path",{})).call(Om,c).style("d","function"===typeof u?u({width:h,height:f}):u).style(r,d).call(Om,i).node()}};f_.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const p_=(e,t)=>f_(Object.assign({colorAttribute:"fill"},e),t);p_.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const g_=(e,t)=>f_(Object.assign({fill:"none",colorAttribute:"stroke"},e),t);g_.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const m_={path:p_,hollow:g_},v_=e=>(e,t,n,r)=>[e,e.map(()=>[[0,0]])];v_.props={defaultShape:"path",defaultLabelShape:"label",shape:m_,composite:!1,channels:[...dv({shapes:Object.keys(m_)}),{name:"d",scale:"identity"}],preInference:[...mv()],postInference:[...vv()]};var A_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const b_=(e,t)=>{const{render:n}=e,r=A_(e,["render"]);return e=>{const[[i,o]]=e;return n(Object.assign(Object.assign({},r),{x:i,y:o}),t)}};b_.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const y_=()=>(e,t)=>{const{style:n={}}=t;return[e,P({},t,{style:Object.assign(Object.assign({},n),Object.fromEntries(Object.entries(n).filter(([,e])=>"function"===typeof e).map(([e,t])=>[e,()=>t])))})]};y_.props={};const w_={shape:b_},__=e=>{const{cartesian:t}=e;return t?wv:(t,n,r,i)=>{const{x:o,y:a}=r,s=bv(n,r,e),l=Array.from(t,e=>{const t=[+o[e],+a[e]];return[i.map(s(t,e))]});return[t,l]}};__.props={defaultShape:"shape",defaultLabelShape:"label",composite:!1,shape:w_,channels:[{name:"x",required:!0},{name:"y",required:!0}],preInference:[...mv(),{type:Ry},{type:By},{type:y_}]};var x_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const E_=(e,t)=>{const{document:n}=t;return(t,r,i)=>{const{transform:o}=r,{color:a}=i,s=x_(i,["color"]),{color:l=a}=r,[c,...u]=t,d=ge();return d.moveTo(...c),u.forEach(([e,t])=>{d.lineTo(e,t)}),d.closePath(),Pg(n.createElement("path",{})).call(Om,s).style("d",d.toString()).style("stroke",l||a).style("fill",l||a).style("fillOpacity",.4).style("transform",o).call(Om,e).node()}};E_.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const S_={density:E_},C_=()=>(e,t,n,r)=>{const{x:i,series:o}=n,a=Object.entries(n).filter(([e])=>e.startsWith("y")).map(([,e])=>e),s=Object.entries(n).filter(([e])=>e.startsWith("size")).map(([,e])=>e);if(void 0===i||void 0===a||void 0===s)throw new Error("Missing encode for x or y or size channel.");const l=t.x,c=t.series,u=Array.from(e,t=>{const n=l.getBandWidth(l.invert(+i[t])),u=c?c.getBandWidth(c.invert(+(null===o||void 0===o?void 0:o[t]))):1,d=n*u,h=(+(null===o||void 0===o?void 0:o[t])||0)*n,f=+i[t]+h+d/2,p=[...a.map((n,r)=>[f+ +s[r][t]/e.length,+a[r][t]]),...a.map((n,r)=>[f-+s[r][t]/e.length,+a[r][t]]).reverse()];return p.map(e=>r.map(e))});return[e,u]};function T_(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function k_(e,t){let n;if(void 0===t)for(const r of e)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function O_(e){var t,n,r,i=e||1;function o(e,o){++t>i&&(r=n,a(1),++t),n[e]=o}function a(e){t=0,n=Object.create(null),e||(r=Object.create(null))}return a(),{clear:a,has:function(e){return void 0!==n[e]||void 0!==r[e]},get:function(e){var t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(o(e,t),t):void 0},set:function(e,t){void 0!==n[e]?n[e]=t:o(e,t)}}}C_.props={defaultShape:"density",defaultLabelShape:"label",composite:!1,shape:S_,channels:[...dv({shapes:Object.keys(S_)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"size",required:!0},{name:"series",scale:"band"},{name:"size",required:!0,scale:"identity"}],preInference:[...mv(),{type:G},{type:V}],postInference:[...vv(),...fv()],interaction:{shareTooltip:!0}};O_(3);function M_(e,t=(...e)=>`${e[0]}`,n=16){const r=O_(n);return(...n)=>{const i=t(...n);let o=r.get(i);return r.has(i)?r.get(i):(o=e(...n),r.set(i,o),o)}}function I_(e){return"string"===typeof e?e.split(" ").map(e=>{const[t,n]=e.split(":");return[+t,n]}):e}function D_(e,t,n){const r=e?e():document.createElement("canvas");return r.width=t,r.height=n,r}const N_=M_((e,t,n)=>{const r=D_(n,2*e,2*e),i=r.getContext("2d"),o=e,a=e;if(1===t)i.beginPath(),i.arc(o,a,e,0,2*Math.PI,!1),i.fillStyle="rgba(0,0,0,1)",i.fill();else{const n=i.createRadialGradient(o,a,e*t,o,a,e);n.addColorStop(0,"rgba(0,0,0,1)"),n.addColorStop(1,"rgba(0,0,0,0)"),i.fillStyle=n,i.fillRect(0,0,2*e,2*e)}return r},e=>`${e}`);function R_(e,t){const n=D_(t,256,1),r=n.getContext("2d"),i=r.createLinearGradient(0,0,256,1);return I_(e).forEach(([e,t])=>{i.addColorStop(e,t)}),r.fillStyle=i,r.fillRect(0,0,256,1),r.getImageData(0,0,256,1).data}function L_(e,t,n,r,i,o){const{blur:a}=i;let s=r.length;while(s--){const{x:i,y:l,value:c,radius:u}=r[s],d=Math.min(c,n),h=i-u,f=l-u,p=N_(u,1-a,o),g=(d-t)/(n-t);e.globalAlpha=Math.max(g,.001),e.drawImage(p,h,f)}return e}function B_(e,t,n,r,i){const{minOpacity:o,opacity:a,maxOpacity:s,useGradientOpacity:l}=i,c=0,u=0,d=t,h=n,f=e.getImageData(c,u,d,h),p=f.data,g=p.length;for(let m=3;m<g;m+=4){const e=p[m],t=4*e;if(!t)continue;const n=a||Math.max(0,Math.min(s,Math.max(o,e)));p[m-3]=r[t],p[m-2]=r[t+1],p[m-1]=r[t+2],p[m]=l?r[t+3]:n}return f}function P_(e,t,n,r,i,o,a){const s=Object.assign({blur:.85,minOpacity:0,opacity:.6,maxOpacity:1,gradient:[[.25,"rgb(0,0,255)"],[.55,"rgb(0,255,0)"],[.85,"yellow"],[1,"rgb(255,0,0)"]]},o);s.minOpacity*=255,s.opacity*=255,s.maxOpacity*=255;const l=D_(a,e,t),c=l.getContext("2d"),u=R_(s.gradient,a);c.clearRect(0,0,e,t),L_(c,n,r,i,s,a);const d=B_(c,e,t,u,s),h=D_(a,e,t),f=h.getContext("2d");return f.putImageData(d,0,0),f}var F_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function $_(e,t){return Object.keys(e).reduce((n,r)=>{const i=e[r];return t(i,r)||(n[r]=i),n},{})}const j_=(e,t)=>{const{gradient:n,opacity:r,maxOpacity:i,minOpacity:o,blur:a,useGradientOpacity:s}=e,l=F_(e,["gradient","opacity","maxOpacity","minOpacity","blur","useGradientOpacity"]),{coordinate:c,createCanvas:u,document:d}=t;return(e,t,h)=>{const{transform:f}=t,[p,g]=c.getSize(),m=e.map(e=>({x:e[0],y:e[1],value:e[2],radius:e[3]})),v=T_(e,e=>e[2]),A=k_(e,e=>e[2]),b={gradient:n,opacity:r,minOpacity:o,maxOpacity:i,blur:a,useGradientOpacity:s},y=p&&g?P_(p,g,v,A,m,$_(b,e=>void 0===e),u):{canvas:null};return Pg(d.createElement("image",{})).call(Om,h).style("x",0).style("y",0).style("width",p).style("height",g).style("src",y.canvas.toDataURL()).style("transform",f).call(Om,l).node()}};j_.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const H_={heatmap:j_},U_=e=>(e,t,n,r)=>{const{x:i,y:o,size:a,color:s}=n,l=Array.from(e,e=>{const t=a?+a[e]:40;return[...r.map([+i[e],+o[e]]),s[e],t]});return[[0],[l]]};U_.props={defaultShape:"heatmap",defaultLabelShape:"label",composite:!1,shape:H_,channels:[...dv({shapes:Object.keys(H_)}),{name:"x",required:!0},{name:"y",required:!0},{name:"color",scale:"identity",required:!0},{name:"size"}],preInference:[...mv(),{type:V},{type:Cb}],postInference:[...vv(),...hv()]};var Q_=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(c4){o(c4)}}function s(e){try{l(r["throw"](e))}catch(c4){o(c4)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},z_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function W_(e,t){const{text:n="text",value:r="value"}=t;return e.map(e=>Object.assign(Object.assign({},e),{text:e[n],value:e[r]}))}const G_=()=>({axis:!1,type:"text",encode:{x:"x",y:"y",text:"text",rotate:"rotate",fontSize:"size",shape:"tag"},scale:{x:{range:[0,1]},y:{range:[0,1]}},style:{fontFamily:e=>e.fontFamily},tooltip:{items:[e=>({name:e.text,value:e.value})]}}),V_=(e,t)=>Q_(void 0,void 0,void 0,function*(){const{width:n,height:r}=t,{data:i,encode:o={},scale:a,style:s={},layout:l={}}=e,c=z_(e,["data","encode","scale","style","layout"]),u=W_(i,o);return P({},G_(),Object.assign(Object.assign({data:{value:u,transform:[Object.assign({type:"wordCloud",size:[n,r]},l)]},encode:o,scale:a,style:s},c),{axis:!1}))});V_.props={};const K_=()=>["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"];K_.props={};const Y_=()=>["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"];Y_.props={};const q_=e=>new bm(e);q_.props={};const X_=e=>new Zp(e);X_.props={};const J_=e=>new og(e);function Z_(e){return ur(e)?0:qg(e)?e.length:Object.keys(e).length}J_.props={};var ex=function(e,t){if(!qg(e))return-1;var n=Array.prototype.indexOf;if(n)return n.call(e,t);for(var r=-1,i=0;i<e.length;i++)if(e[i]===t){r=i;break}return r},tx=ex;function nx(e){return Math.abs(e)<1e-14?e:parseFloat(e.toFixed(14))}const rx=[1,5,2,2.5,4,3],ix=100*Number.EPSILON;function ox(e,t){return(e%t+t)%t}function ax(e){return Math.round(1e12*e)/1e12}function sx(e,t,n,r,i,o){const a=Z_(t),s=tx(t,e);let l=0;const c=ox(r,o);return(c<ix||o-c<ix)&&r<=0&&i>=0&&(l=1),1-s/(a-1)-n+l}function lx(e,t,n){const r=Z_(t),i=tx(t,e),o=1;return 1-i/(r-1)-n+o}function cx(e,t,n,r,i,o){const a=(e-1)/(o-i),s=(t-1)/(Math.max(o,r)-Math.min(n,i));return 2-Math.max(a/s,s/a)}function ux(e,t){return e>=t?2-(e-1)/(t-1):1}function dx(e,t,n,r){const i=t-e;return 1-.5*((t-r)**2+(e-n)**2)/(.1*i)**2}function hx(e,t,n){const r=t-e;if(n>r){const e=(n-r)/2;return 1-e**2/(.1*r)**2}return 1}function fx(){return 1}const px=(e,t,n=5,r=!0,i=rx,o=[.25,.2,.5,.05])=>{const a=n<0?0:Math.round(n);if(Number.isNaN(e)||Number.isNaN(t)||"number"!==typeof e||"number"!==typeof t||!a)return[];if(t-e<1e-15||1===a)return[e];const s={score:-2,lmin:0,lmax:0,lstep:0};let l=1;while(l<1/0){for(let n=0;n<i.length;n+=1){const c=i[n],u=lx(c,i,l);if(o[0]*u+o[1]+o[2]+o[3]<s.score){l=1/0;break}let d=2;while(d<1/0){const n=ux(d,a);if(o[0]*u+o[1]+o[2]*n+o[3]<s.score)break;const h=(t-e)/(d+1)/l/c;let f=Math.ceil(Math.log10(h));while(f<1/0){const h=l*c*10**f,p=hx(e,t,h*(d-1));if(o[0]*u+o[1]*p+o[2]*n+o[3]<s.score)break;const g=Math.floor(t/h)*l-(d-1)*l,m=Math.ceil(e/h)*l;if(g<=m){const n=m-g;for(let u=0;u<=n;u+=1){const n=g+u,f=n*(h/l),p=f+h*(d-1),m=h,v=sx(c,i,l,f,p,m),A=dx(e,t,f,p),b=cx(d,a,e,t,f,p),y=fx(),w=o[0]*v+o[1]*A+o[2]*b+o[3]*y;w>s.score&&(!r||f<=e&&p>=t)&&(s.lmin=f,s.lmax=p,s.lstep=m,s.score=w)}}f+=1}d+=1}}l+=1}const c=nx(s.lmax),u=nx(s.lmin),d=nx(s.lstep),h=Math.floor(ax((c-u)/d))+1,f=new Array(h);f[0]=nx(u);for(let p=1;p<h;p+=1)f[p]=nx(f[p-1]+d);return f};class gx extends Kp{getDefaultOptions(){return{domain:[0,1],range:[0,1],tickCount:5,unknown:void 0,tickMethod:px}}map(e){return hm(e)?e:this.options.unknown}invert(e){return this.map(e)}clone(){return new gx(this.options)}getTicks(){const{domain:e,tickCount:t,tickMethod:n}=this.options,[r,i]=e;return lr(r)&&lr(i)?n(r,i,t):[]}}const mx=e=>new gx(e);mx.props={};class vx extends og{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:Yp,paddingInner:1,paddingOuter:0}}constructor(e){super(e)}getPaddingInner(){return 1}clone(){return new vx(this.options)}update(e){super.update(e)}getPaddingOuter(){return this.options.padding}}const Ax=e=>new vx(e);Ax.props={};var bx=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,yx="\\d\\d?",wx="\\d\\d",_x="\\d{3}",xx="\\d{4}",Ex="[^\\s]+",Sx=/\[([^]*?)\]/gm;function Cx(e,t){for(var n=[],r=0,i=e.length;r<i;r++)n.push(e[r].substr(0,t));return n}var Tx=function(e){return function(t,n){var r=n[e].map(function(e){return e.toLowerCase()}),i=r.indexOf(t.toLowerCase());return i>-1?i:null}};function kx(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];for(var a in o)e[a]=o[a]}return e}var Ox=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Mx=["January","February","March","April","May","June","July","August","September","October","November","December"],Ix=Cx(Mx,3),Dx=Cx(Ox,3),Nx={dayNamesShort:Dx,dayNames:Ox,monthNamesShort:Ix,monthNames:Mx,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10?1:0)*e%10]}},Rx=kx({},Nx),Lx=function(e,t){void 0===t&&(t=2),e=String(e);while(e.length<t)e="0"+e;return e},Bx={D:function(e){return String(e.getDate())},DD:function(e){return Lx(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return Lx(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return String(e.getMonth()+1)},MM:function(e){return Lx(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},YY:function(e){return Lx(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return Lx(e.getFullYear(),4)},h:function(e){return String(e.getHours()%12||12)},hh:function(e){return Lx(e.getHours()%12||12)},H:function(e){return String(e.getHours())},HH:function(e){return Lx(e.getHours())},m:function(e){return String(e.getMinutes())},mm:function(e){return Lx(e.getMinutes())},s:function(e){return String(e.getSeconds())},ss:function(e){return Lx(e.getSeconds())},S:function(e){return String(Math.round(e.getMilliseconds()/100))},SS:function(e){return Lx(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return Lx(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+Lx(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+Lx(Math.floor(Math.abs(t)/60),2)+":"+Lx(Math.abs(t)%60,2)}},Px=function(e){return+e-1},Fx=[null,yx],$x=[null,Ex],jx=["isPm",Ex,function(e,t){var n=e.toLowerCase();return n===t.amPm[0]?0:n===t.amPm[1]?1:null}],Hx=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var n=60*+t[1]+parseInt(t[2],10);return"+"===t[0]?n:-n}return 0}],Ux=(Tx("monthNamesShort"),Tx("monthNames"),{default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"}),Qx=function(e,t,n){if(void 0===t&&(t=Ux["default"]),void 0===n&&(n={}),"number"===typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");t=Ux[t]||t;var r=[];t=t.replace(Sx,function(e,t){return r.push(t),"@@@"});var i=kx(kx({},Rx),n);return t=t.replace(bx,function(t){return Bx[t](e,i)}),t.replace(/@@@/g,function(){return r.shift()})};const zx=1e3,Wx=60*zx,Gx=60*Wx,Vx=24*Gx,Kx=7*Vx,Yx=30*Vx,qx=365*Vx;function Xx(e,t,n,r){const i=(e,t)=>{const i=e=>r(e)%t===0;let o=t;while(o&&!i(e))n(e,-1),o-=1;return e},o=(e,n)=>{n&&i(e,n),t(e)},a=(e,t)=>{const n=new Date(+e);return o(n,t),n},s=(e,t)=>{const r=new Date(+e-1);return o(r,t),n(r,t),o(r),r},l=(e,t,r,i)=>{const a=[],l=Math.floor(r),c=i?s(e,r):s(e);for(let s=c;s<t;n(s,l),o(s))a.push(new Date(+s));return a};return{ceil:s,floor:a,range:l,duration:e}}const Jx=Xx(1,e=>e,(e,t=1)=>{e.setTime(+e+t)},e=>e.getTime()),Zx=Xx(zx,e=>{e.setMilliseconds(0)},(e,t=1)=>{e.setTime(+e+zx*t)},e=>e.getSeconds()),eE=Xx(Wx,e=>{e.setSeconds(0,0)},(e,t=1)=>{e.setTime(+e+Wx*t)},e=>e.getMinutes()),tE=Xx(Gx,e=>{e.setMinutes(0,0,0)},(e,t=1)=>{e.setTime(+e+Gx*t)},e=>e.getHours()),nE=Xx(Vx,e=>{e.setHours(0,0,0,0)},(e,t=1)=>{e.setTime(+e+Vx*t)},e=>e.getDate()-1),rE=Xx(Yx,e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t=1)=>{const n=e.getMonth();e.setMonth(n+t)},e=>e.getMonth()),iE=Xx(Kx,e=>{e.setDate(e.getDate()-e.getDay()%7),e.setHours(0,0,0,0)},(e,t=1)=>{e.setDate(e.getDate()+7*t)},e=>{const t=rE.floor(e),n=new Date(+e);return Math.floor((+n-+t)/Kx)}),oE=Xx(qx,e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t=1)=>{const n=e.getFullYear();e.setFullYear(n+t)},e=>e.getFullYear()),aE={millisecond:Jx,second:Zx,minute:eE,hour:tE,day:nE,week:iE,month:rE,year:oE},sE=Xx(1,e=>e,(e,t=1)=>{e.setTime(+e+t)},e=>e.getTime()),lE=Xx(zx,e=>{e.setUTCMilliseconds(0)},(e,t=1)=>{e.setTime(+e+zx*t)},e=>e.getUTCSeconds()),cE=Xx(Wx,e=>{e.setUTCSeconds(0,0)},(e,t=1)=>{e.setTime(+e+Wx*t)},e=>e.getUTCMinutes()),uE=Xx(Gx,e=>{e.setUTCMinutes(0,0,0)},(e,t=1)=>{e.setTime(+e+Gx*t)},e=>e.getUTCHours()),dE=Xx(Vx,e=>{e.setUTCHours(0,0,0,0)},(e,t=1)=>{e.setTime(+e+Vx*t)},e=>e.getUTCDate()-1),hE=Xx(Yx,e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t=1)=>{const n=e.getUTCMonth();e.setUTCMonth(n+t)},e=>e.getUTCMonth()),fE=Xx(Kx,e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7)%7),e.setUTCHours(0,0,0,0)},(e,t=1)=>{e.setTime(+e+Kx*t)},e=>{const t=hE.floor(e),n=new Date(+e);return Math.floor((+n-+t)/Kx)}),pE=Xx(qx,e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t=1)=>{const n=e.getUTCFullYear();e.setUTCFullYear(n+t)},e=>e.getUTCFullYear()),gE={millisecond:sE,second:lE,minute:cE,hour:uE,day:dE,week:fE,month:hE,year:pE};function mE(e){const t=e?gE:aE,{year:n,month:r,week:i,day:o,hour:a,minute:s,second:l,millisecond:c}=t,u=[[l,1],[l,5],[l,15],[l,30],[s,1],[s,5],[s,15],[s,30],[a,1],[a,3],[a,6],[a,12],[o,1],[o,2],[i,1],[r,1],[r,3],[n,1]];return{tickIntervals:u,year:n,millisecond:c}}function vE(e,t,n,r,i){const o=+e,a=+t,{tickIntervals:s,year:l,millisecond:c}=mE(i),u=([e,t])=>e.duration*t,d=r?(a-o)/r:n||5,h=r||(a-o)/d,f=s.length,p=tm(s,h,0,f,u);let g;if(p===f){const e=ug(o/l.duration,a/l.duration,d);g=[l,e]}else if(p){const e=h/u(s[p-1])<u(s[p])/h,[t,n]=e?s[p-1]:s[p],i=r?Math.ceil(r/t.duration):n;g=[t,i]}else{const e=Math.max(ug(o,a,d),1);g=[c,e]}return g}const AE=(e,t,n,r,i)=>{const o=e>t,a=o?t:e,s=o?e:t,[l,c]=vE(a,s,n,r,i),u=l.range(a,new Date(+s+1),c,!0);return o?u.reverse():u},bE=(e,t,n,r,i)=>{const o=e>t,a=o?t:e,s=o?e:t,[l,c]=vE(a,s,n,r,i),u=[l.floor(a,c),l.ceil(s,c)];return o?u.reverse():u};function yE(e,t){const{second:n,minute:r,hour:i,day:o,week:a,month:s,year:l}=t;return n.floor(e)<e?".SSS":r.floor(e)<e?":ss":i.floor(e)<e?"hh:mm":o.floor(e)<e?"hh A":s.floor(e)<e?a.floor(e)<e?"MMM DD":"ddd DD":l.floor(e)<e?"MMMM":"YYYY"}function wE(e){const t=e.getTimezoneOffset(),n=new Date(e);return n.setMinutes(n.getMinutes()+t,n.getSeconds(),n.getMilliseconds()),n}class _E extends Am{getDefaultOptions(){return{domain:[new Date(2e3,0,1),new Date(2e3,0,2)],range:[0,1],nice:!1,tickCount:5,tickInterval:void 0,unknown:void 0,clamp:!1,tickMethod:AE,interpolate:sm,mask:void 0,utc:!1}}chooseTransforms(){const e=e=>+e,t=e=>new Date(e);return[e,t]}chooseNice(){return bE}getTickMethodOptions(){const{domain:e,tickCount:t,tickInterval:n,utc:r}=this.options,i=e[0],o=e[e.length-1];return[i,o,t,n,r]}getFormatter(){const{mask:e,utc:t}=this.options,n=t?gE:aE,r=t?wE:Jg;return t=>Qx(r(t),e||yE(t,n))}clone(){return new _E(this.options)}}const xE=e=>new _E(e);xE.props={};const EE=e=>t=>-e(-t),SE=(e,t)=>{const n=Math.log(e),r=e===Math.E?Math.log:10===e?Math.log10:2===e?Math.log2:e=>Math.log(e)/n;return t?EE(r):r},CE=(e,t)=>{const n=e===Math.E?Math.exp:t=>e**t;return t?EE(n):n},TE=(e,t,n,r=10)=>{const i=e<0,o=CE(r,i),a=SE(r,i),s=t<e,l=s?t:e,c=s?e:t;let u=a(l),d=a(c),h=[];if(!(r%1)&&d-u<n){if(u=Math.floor(u),d=Math.ceil(d),i)for(;u<=d;u+=1){const e=o(u);for(let t=r-1;t>=1;t-=1){const n=e*t;if(n>c)break;n>=l&&h.push(n)}}else for(;u<=d;u+=1){const e=o(u);for(let t=1;t<r;t+=1){const n=e*t;if(n>c)break;n>=l&&h.push(n)}}2*h.length<n&&(h=hg(l,c,n))}else{const e=-1===n?d-u:Math.min(d-u,n);h=hg(u,d,e).map(o)}return s?h.reverse():h},kE=(e,t,n,r)=>{const i=e<0,o=SE(r,i),a=CE(r,i),s=e>t,l=s?t:e,c=s?e:t,u=[a(Math.floor(o(l))),a(Math.ceil(o(c)))];return s?u.reverse():u};class OE extends Am{getDefaultOptions(){return{domain:[1,10],range:[0,1],base:10,interpolate:cm,tickMethod:TE,tickCount:5}}chooseNice(){return kE}getTickMethodOptions(){const{domain:e,tickCount:t,base:n}=this.options,r=e[0],i=e[e.length-1];return[r,i,t,n]}chooseTransforms(){const{base:e,domain:t}=this.options,n=t[0]<0;return[SE(e,n),CE(e,n)]}clone(){return new OE(this.options)}}const ME=e=>new OE(e);ME.props={};const IE=e=>t=>t<0?-((-t)**e):t**e,DE=e=>t=>t<0?-((-t)**(1/e)):t**(1/e),NE=e=>e<0?-Math.sqrt(-e):Math.sqrt(e);class RE extends Am{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,exponent:2,interpolate:cm,tickMethod:hg,tickCount:5}}constructor(e){super(e)}chooseTransforms(){const{exponent:e}=this.options;if(1===e)return[Jg,Jg];const t=.5===e?NE:IE(e),n=DE(e);return[t,n]}clone(){return new RE(this.options)}}const LE=e=>new RE(e);LE.props={};class BE extends RE{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:cm,tickMethod:hg,tickCount:5,exponent:.5}}constructor(e){super(e)}update(e){super.update(e)}clone(){return new BE(this.options)}}const PE=e=>new BE(e);PE.props={};class FE extends Kp{getDefaultOptions(){return{domain:[.5],range:[0,1]}}constructor(e){super(e)}map(e){if(!hm(e))return this.options.unknown;const t=tm(this.thresholds,e,0,this.n);return this.options.range[t]}invert(e){const{range:t}=this.options,n=t.indexOf(e),r=this.thresholds;return[r[n-1],r[n]]}clone(){return new FE(this.options)}rescale(){const{domain:e,range:t}=this.options;this.n=Math.min(e.length,t.length-1),this.thresholds=e}}const $E=e=>new FE(e);function jE(e,t){const n=e.length;if(!n)return;if(n<2)return e[n-1];const r=(n-1)*t,i=Math.floor(r),o=e[i],a=e[i+1];return o+(a-o)*(r-i)}function HE(e,t,n=!1){const r=e;n||r.sort((e,t)=>e-t);const i=[];for(let o=1;o<t;o+=1)i.push(jE(r,o/t));return i}$E.props={};class UE extends FE{getDefaultOptions(){return{domain:[],range:[],tickCount:5,unknown:void 0,tickMethod:px}}constructor(e){super(e)}rescale(){const{domain:e,range:t}=this.options;this.n=t.length-1,this.thresholds=HE(e,this.n+1,!1)}invert(e){const[t,n]=super.invert(e),{domain:r}=this.options,i=r[0],o=r[r.length-1];return void 0===t&&void 0===n?[t,n]:[t||i,n||o]}getThresholds(){return this.thresholds}clone(){return new UE(this.options)}getTicks(){const{tickCount:e,domain:t,tickMethod:n}=this.options,r=t.length-1,i=t[0],o=t[r];return n(i,o,e)}}const QE=e=>new UE(e);QE.props={};class zE extends FE{getDefaultOptions(){return{domain:[0,1],range:[.5],nice:!1,tickCount:5,tickMethod:px}}constructor(e){super(e)}nice(){const{nice:e}=this.options;if(e){const[e,t,n]=this.getTickMethodOptions();this.options.domain=fm(e,t,n)}}getTicks(){const{tickMethod:e}=this.options,[t,n,r]=this.getTickMethodOptions();return e(t,n,r)}getTickMethodOptions(){const{domain:e,tickCount:t}=this.options,n=e[0],r=e[e.length-1];return[n,r,t]}rescale(){this.nice();const{range:e,domain:t}=this.options,[n,r]=t;this.n=e.length-1,this.thresholds=new Array(this.n);for(let i=0;i<this.n;i+=1)this.thresholds[i]=((i+1)*r-(i-this.n)*n)/(this.n+1)}invert(e){const[t,n]=super.invert(e),[r,i]=this.options.domain;return void 0===t&&void 0===n?[t,n]:[t||r,n||i]}getThresholds(){return this.thresholds}clone(){return new zE(this.options)}}const WE=e=>new zE(e);WE.props={};const GE=e=>t=>{const n=e(t);return lr(n)?Math.round(n):n};function VE(e,t){return n=>{n.prototype.rescale=function(){this.initRange(),this.nice();const[e]=this.chooseTransforms();this.composeOutput(e,this.chooseClamp(e))},n.prototype.initRange=function(){const{interpolator:t}=this.options;this.options.range=e(t)},n.prototype.composeOutput=function(e,n){const{domain:r,interpolator:i,round:o}=this.getOptions(),a=t(r.map(e)),s=o?GE(i):i;this.output=em(s,a,n,e)},n.prototype.invert=void 0}}var KE,YE=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};function qE(e){return[e(0),e(1)]}const XE=e=>{const[t,n]=e,r=em(sm(0,1),Zg(t,n));return r};let JE=KE=class extends bm{getDefaultOptions(){return{domain:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:Jg,tickMethod:hg,tickCount:5}}constructor(e){super(e)}clone(){return new KE(this.options)}};JE=KE=YE([VE(qE,XE)],JE);const ZE=e=>new JE(e);ZE.props={};const eS=e=>new fg(e);function tS({colorDefault:e,colorBlack:t,colorWhite:n,colorStroke:r,colorBackground:i,padding1:o,padding2:a,padding3:s,alpha90:l,alpha65:c,alpha45:u,alpha25:d,alpha10:h,category10:f,category20:p,sizeDefault:g=1,padding:m="auto",margin:v=16}){return{padding:m,margin:v,size:g,color:e,category10:f,category20:p,enter:{duration:300,fill:"both",delay:0},update:{duration:300,fill:"both",delay:0},exit:{duration:300,fill:"both",delay:0},view:{viewFill:i,plotFill:"transparent",mainFill:"transparent",contentFill:"transparent"},line:{line:{fill:"",strokeOpacity:1,lineWidth:1,lineCap:"round"}},point:{point:{r:3,fillOpacity:.95,lineWidth:0},hollow:{r:3,strokeOpacity:.95,lineWidth:1},plus:{r:3,strokeOpacity:.95,lineWidth:3},diamond:{r:3,strokeOpacity:.95,lineWidth:1}},interval:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},area:{area:{fillOpacity:.85,lineWidth:0}},polygon:{polygon:{fillOpacity:.95}},cell:{cell:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},rect:{rect:{fillOpacity:.95},hollow:{fill:"",strokeOpacity:1,lineWidth:2}},link:{link:{fill:"",strokeOpacity:1}},vector:{vector:{fillOpacity:1}},box:{box:{fillOpacity:.95,stroke:t,lineWidth:1}},text:{text:{fill:"#1D2129",fontSize:12,lineWidth:0,connectorStroke:r,connectorStrokeOpacity:.45,connectorLineWidth:1,backgroundFill:r,backgroundFillOpacity:.15,backgroundPadding:[2,4],startMarkerSymbol:"circle",startMarkerSize:4,endMarkerSymbol:"circle",endMarkerSize:4},badge:{fill:"#1D2129",fillOpacity:.65,lineWidth:0,fontSize:10,textAlign:"center",textBaseline:"middle",markerFill:r,markerFillOpacity:.25,markerStrokeOpacity:0}},lineX:{line:{stroke:r,strokeOpacity:.45,lineWidth:1}},lineY:{line:{stroke:r,strokeOpacity:.45,lineWidth:1}},rangeX:{range:{fill:r,fillOpacity:.15,lineWidth:0}},rangeY:{range:{fill:r,fillOpacity:.15,lineWidth:0}},connector:{connector:{stroke:r,strokeOpacity:.45,lineWidth:1,connectLength1:12,endMarker:!0,endMarkerSize:6,endMarkerFill:r,endMarkerFillOpacity:.95}},axis:{arrow:!1,gridLineDash:[3,4],gridLineWidth:.5,gridStroke:t,gridStrokeOpacity:h,labelAlign:"horizontal",labelFill:t,labelOpacity:u,labelFontSize:12,labelFontWeight:"normal",labelSpacing:o,line:!1,lineLineWidth:.5,lineStroke:t,lineStrokeOpacity:u,tickLength:4,tickLineWidth:1,tickStroke:t,tickOpacity:u,titleFill:t,titleOpacity:l,titleFontSize:12,titleFontWeight:"normal",titleSpacing:12,titleTransformOrigin:"center",lineArrowOffset:6,lineArrowSize:6},axisTop:{gridDirection:"positive",labelDirection:"negative",tickDirection:"negative",titlePosition:"top",titleSpacing:12,labelSpacing:4,titleTextBaseline:"middle"},axisBottom:{gridDirection:"negative",labelDirection:"positive",tickDirection:"positive",titlePosition:"bottom",titleSpacing:12,labelSpacing:4,titleTextBaseline:"bottom",titleTransform:"translate(0, 8)"},axisLeft:{gridDirection:"positive",labelDirection:"negative",labelSpacing:4,tickDirection:"negative",titlePosition:"left",titleSpacing:12,titleTextBaseline:"middle",titleDirection:"vertical",titleTransform:"rotate(-90) translate(0, -8)",titleTransformOrigin:"center"},axisRight:{gridDirection:"negative",labelDirection:"positive",labelSpacing:4,tickDirection:"positive",titlePosition:"right",titleSpacing:12,titleTextBaseline:"top",titleDirection:"vertical",titleTransformOrigin:"center"},axisLinear:{girdClosed:!0,gridConnect:"arc",gridDirection:"negative",gridType:"surround",titlePosition:"top",titleSpacing:0},axisArc:{title:!1,titlePosition:"inner",line:!1,tick:!0,labelSpacing:4},axisRadar:{girdClosed:!0,gridStrokeOpacity:.3,gridType:"surround",tick:!1,titlePosition:"start"},legendCategory:{backgroundFill:"transparent",itemBackgroundFill:"transparent",itemLabelFill:t,itemLabelFillOpacity:l,itemLabelFontSize:12,itemLabelFontWeight:"normal",itemMarkerFillOpacity:1,itemMarkerSize:8,focusMarkerSize:12,itemSpacing:[o,o,o/2],itemValueFill:t,itemValueFillOpacity:.65,itemValueFontSize:12,itemValueFontWeight:"normal",navButtonFill:t,navButtonFillOpacity:.65,navPageNumFill:t,navPageNumFillOpacity:.45,navPageNumFontSize:12,padding:8,title:!1,titleFill:t,titleFillOpacity:.65,titleFontSize:12,titleFontWeight:"normal",titleSpacing:4,tickStroke:t,tickStrokeOpacity:.25,rowPadding:o,colPadding:a,maxRows:3,maxCols:3},legendContinuous:{handleHeight:12,handleLabelFill:t,handleLabelFillOpacity:u,handleLabelFontSize:12,handleLabelFontWeight:"normal",handleMarkerFill:t,handleMarkerFillOpacity:.6,handleMarkerLineWidth:1,handleMarkerStroke:t,handleMarkerStrokeOpacity:.25,handleWidth:10,labelFill:t,labelFillOpacity:u,labelFontSize:12,labelFontWeight:"normal",labelSpacing:3,tick:!0,tickLength:12,ribbonSize:12,ribbonFill:"#aaa",handle:!0,handleLabel:!1,handleShape:"slider",handleIconSize:12/1.8,indicator:!1,titleFontSize:12,titleSpacing:4,titleFontWeight:"normal",titleFillOpacity:l,tickStroke:t,tickStrokeOpacity:u},label:{fill:t,fillOpacity:.65,fontSize:12,fontWeight:"normal",stroke:void 0,offset:12,connectorStroke:t,connectorStrokeOpacity:.45,connectorLineWidth:1,connectorLength:12,connectorLength2:8,connectorDistance:4},innerLabel:{fill:n,fontSize:12,fillOpacity:.85,fontWeight:"normal",stroke:void 0,offset:0},htmlLabel:{fontSize:12,opacity:.65,color:t,fontWeight:"normal"},slider:{trackSize:16,trackFill:r,trackFillOpacity:1,selectionFill:e,selectionFillOpacity:.15,handleIconSize:10,handleIconFill:"#f7f7f7",handleIconFillOpacity:1,handleIconStroke:t,handleIconStrokeOpacity:.25,handleIconLineWidth:1,handleIconRadius:2,handleLabelFill:t,handleLabelFillOpacity:.45,handleLabelFontSize:12,handleLabelFontWeight:"normal"},scrollbar:{padding:[0,0,0,0],trackSize:6,isRound:!0,slidable:!0,scrollable:!0,trackFill:"#e5e5e5",trackFillOpacity:0,thumbFill:"#000",thumbFillOpacity:.15,thumbHighlightedFillOpacity:.2},title:{spacing:8,titleFill:t,titleFillOpacity:l,titleFontSize:16,titleFontWeight:"bold",titleTextBaseline:"top",subtitleFill:t,subtitleFillOpacity:c,subtitleFontSize:12,subtitleFontWeight:"normal",subtitleTextBaseline:"top"},tooltip:{css:{".g2-tooltip":{"font-family":"sans-serif"}}}}}eS.props={};const nS={colorBlack:"#1D2129",colorWhite:"#ffffff",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"transparent",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1},rS=tS(nS),iS=e=>P({},rS,e);iS.props={};const oS=e=>P({},iS(),{category10:"category10",category20:"category20"},e);oS.props={};const aS={colorBlack:"#fff",colorWhite:"#000",colorStroke:"#416180",colorDefault:"#1783FF",colorBackground:"transparent",category10:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F"],category20:["#1783FF","#00C9C9","#F0884D","#D580FF","#7863FF","#60C42D","#BD8F24","#FF80CA","#2491B3","#17C76F","#AABA01","#BC7CFC","#237CBC","#2DE379","#CE8032","#FF7AF4","#545FD3","#AFE410","#D8C608","#FFA1E0"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.25},sS=tS(aS),lS=e=>P({},sS,{tooltip:{crosshairsStroke:"#fff",crosshairsLineWidth:1,crosshairsStrokeOpacity:.25,css:{".g2-tooltip":{background:"#1f1f1f",opacity:.95},".g2-tooltip-title":{color:"#A6A6A6"},".g2-tooltip-list-item-name-label":{color:"#A6A6A6"},".g2-tooltip-list-item-value":{color:"#A6A6A6"}}}},e),cS=e=>Object.assign({},lS(),{category10:"category10",category20:"category20"},e);cS.props={};const uS={colorBlack:"#000",colorWhite:"#fff",colorStroke:"#888",colorDefault:"#4e79a7",colorBackground:"transparent",category10:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],category20:["#4e79a7","#f28e2c","#e15759","#76b7b2","#59a14f","#edc949","#af7aa1","#ff9da7","#9c755f","#bab0ab"],padding1:8,padding2:12,padding3:20,alpha90:.9,alpha65:.65,alpha45:.45,alpha25:.25,alpha10:.1},dS=tS(uS),hS=e=>P({},dS,{text:{text:{fontSize:10}},axis:{gridLineDash:[0,0],gridLineWidth:1,gridStroke:"#ddd",gridStrokeOpacity:1,labelOpacity:1,labelStrokeOpacity:1,labelFontSize:10,line:!0,lineLineWidth:1,lineStroke:"#888",lineStrokeOpacity:1,tickLength:5,tickStrokeOpacity:1,titleOpacity:1,titleStrokeOpacity:1,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},axisLeft:{gridFilter:(e,t)=>0!==t},axisRight:{gridFilter:(e,t)=>0!==t},legendCategory:{itemLabelFillOpacity:1,itemLabelFontSize:10,itemValueFillOpacity:1,itemValueFontSize:10,titleFillOpacity:1,titleFontSize:11,titleFontWeight:"bold"},legendContinuous:{handleLabelFontSize:10,labelFillOpacity:.45,labelFontSize:10},label:{fontSize:10},innerLabel:{fontSize:10},htmlLabel:{fontSize:10},slider:{handleLabelFontSize:10,trackFillOpacity:.05}},e);function fS(e){return"boolean"!==typeof e&&("enter"in e&&"update"in e&&"exit"in e)}function pS(e){if(!e)return{enter:!1,update:!1,exit:!1};var t=["enter","update","exit"],n=Object.fromEntries(Object.entries(e).filter(function(e){var n=br(e,1),r=n[0];return!t.includes(r)}));return Object.fromEntries(t.map(function(t){return fS(e)?!1===e[t]?[t,!1]:[t,mr(mr({},e[t]),n)]:[t,n]}))}function gS(e,t){e?e.finished.then(t):t()}function mS(e,t){0===e.length?t():Promise.all(e.map(function(e){return null===e||void 0===e?void 0:e.finished})).then(t)}function vS(e,t){"update"in e?e.update(t):e.attr(t)}function AS(e,t,n){if(0===t.length)return null;if(!n){var r=t.slice(-1)[0];return vS(e,{style:r}),null}return e.animate(t,n)}function bS(e,t){return"text"===e.nodeName&&"text"===t.nodeName&&e.attributes.text===t.attributes.text}function yS(e,t,n,r){if(void 0===r&&(r="destroy"),bS(e,t))return e.remove(),[null];var i=function(){"destroy"===r?e.destroy():"hide"===r&&Db(e),t.isVisible()&&Ib(t)};if(!n)return i(),[null];var o=n.duration,a=void 0===o?0:o,s=n.delay,l=void 0===s?0:s,c=Math.ceil(+a/2),u=+a/4,d=br(e.getGeometryBounds().center,2),h=d[0],f=d[1],p=br(t.getGeometryBounds().center,2),g=p[0],m=p[1],v=br([(h+g)/2-h,(f+m)/2-f],2),A=v[0],b=v[1],y=e.style.opacity,w=void 0===y?1:y,_=t.style.opacity,x=void 0===_?1:_,E=e.style.transform||"",S=t.style.transform||"",C=e.animate([{opacity:w,transform:"translate(0, 0) ".concat(E)},{opacity:0,transform:"translate(".concat(A,", ").concat(b,") ").concat(E)}],mr(mr({fill:"both"},n),{duration:l+c+u})),T=t.animate([{opacity:0,transform:"translate(".concat(-A,", ").concat(-b,") ").concat(S),offset:.01},{opacity:x,transform:"translate(0, 0) ".concat(S)}],mr(mr({fill:"both"},n),{duration:c+u,delay:l+c-u}));return gS(T,i),[C,T]}function wS(e,t,n){var r={},i={};return Object.entries(t).forEach(function(t){var n=br(t,2),o=n[0],a=n[1];if(!ur(a)){var s=e.style[o]||e.parsedStyle[o]||0;s!==a&&(r[o]=s,i[o]=a)}}),n?AS(e,[r,i],mr({fill:"both"},n)):(vS(e,i),null)}function _S(e,t){if(e.length<=t)return e;for(var n=Math.floor(e.length/t),r=[],i=0;i<e.length;i+=n)r.push(e[i]);return r}hS.props={};var xS=function(e,t){var n=function(e){return"".concat(t,"-").concat(e)},r=Object.fromEntries(Object.entries(e).map(function(e){var t=br(e,2),r=t[0],i=t[1],o=n(i);return[r,{name:o,class:".".concat(o),id:"#".concat(o),toString:function(){return o}}]}));return Object.assign(r,{prefix:n}),r},ES={data:[],animate:{enter:!1,update:{duration:100,easing:"ease-in-out-sine",fill:"both"},exit:{duration:100,fill:"both"}},showArrow:!0,showGrid:!0,showLabel:!0,showLine:!0,showTick:!0,showTitle:!0,showTrunc:!1,dataThreshold:100,lineLineWidth:1,lineStroke:"black",crossPadding:10,titleFill:"black",titleFontSize:12,titlePosition:"lb",titleSpacing:0,titleTextAlign:"center",titleTextBaseline:"middle",lineArrow:function(){return new Oh({style:{d:[["M",10,10],["L",-10,0],["L",10,-10],["L",0,0],["L",10,10],["Z"]],fill:"black",transformOrigin:"center"}})},labelAlign:"parallel",labelDirection:"positive",labelFontSize:12,labelSpacing:0,gridConnect:"line",gridControlAngles:[],gridDirection:"positive",gridLength:0,gridType:"segment",lineArrowOffset:15,lineArrowSize:10,tickDirection:"positive",tickLength:5,tickLineWidth:1,tickStroke:"black",labelOverlap:[]},SS=(P({},ES,{style:{type:"arc"}}),P({},ES,{style:{}}),xS({mainGroup:"main-group",gridGroup:"grid-group",grid:"grid",lineGroup:"line-group",line:"line",tickGroup:"tick-group",tick:"tick",tickItem:"tick-item",labelGroup:"label-group",label:"label",labelItem:"label-item",titleGroup:"title-group",title:"title",lineFirst:"line-first",lineSecond:"line-second"},"axis"));function CS(e,t){return[e[0]*t,e[1]*t]}function TS(e,t){return[e[0]+t[0],e[1]+t[1]]}function kS(e,t){return[e[0]-t[0],e[1]-t[1]]}function OS(e,t){return[Math.min(e[0],t[0]),Math.min(e[1],t[1])]}function MS(e,t){return[Math.max(e[0],t[0]),Math.max(e[1],t[1])]}function IS(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))}function DS(e){if(0===e[0]&&0===e[1])return[0,0];var t=Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2));return[e[0]/t,e[1]/t]}function NS(e,t){return t?[e[1],-e[0]]:[-e[1],e[0]]}function RS(e){return e*Math.PI/180}function LS(e){return Number((180*e/Math.PI).toPrecision(5))}function BS(e){return e.toString().charAt(0).toUpperCase()+e.toString().slice(1)}function PS(e){return e.toString().charAt(0).toLowerCase()+e.toString().slice(1)}function FS(e,t){return"".concat(t).concat(BS(e))}function $S(e,t,n){var r;void 0===n&&(n=!0);var i=t||(null===(r=e.match(/^([a-z][a-z0-9]+)/))||void 0===r?void 0:r[0])||"",o=e.replace(new RegExp("^(".concat(i,")")),"");return n?PS(o):o}function jS(e,t){Object.entries(t).forEach(function(t){var n=br(t,2),r=n[0],i=n[1];yr([e],br(e.querySelectorAll(r)),!1).filter(function(e){return e.matches(r)}).forEach(function(e){if(e){var t=e;t.style.cssText+=Object.entries(i).reduce(function(e,t){return"".concat(e).concat(t.join(":"),";")},"")}})})}var HS=function(e,t){if(!(null===e||void 0===e?void 0:e.startsWith(t)))return!1;var n=e[t.length];return n>="A"&&n<="Z"};function US(e,t,n){void 0===n&&(n=!1);var r={};return Object.entries(e).forEach(function(e){var i=br(e,2),o=i[0],a=i[1];if("className"===o||"class"===o);else if(HS(o,"show")&&HS($S(o,"show"),t)!==n)o===FS(t,"show")?r[o]=a:r[o.replace(new RegExp(BS(t)),"")]=a;else if(!HS(o,"show")&&HS(o,t)!==n){var s=$S(o,t);"filter"===s&&"function"===typeof a||(r[s]=a)}}),r}function QS(e,t){return Object.entries(e).reduce(function(e,n){var r=br(n,2),i=r[0],o=r[1];return i.startsWith("show")?e["show".concat(t).concat(i.slice(4))]=o:e["".concat(t).concat(BS(i))]=o,e},{})}function zS(e,t){void 0===t&&(t=["x","y","class","className"]);var n=["transform","transformOrigin","anchor","visibility","pointerEvents","zIndex","cursor","clipPath","clipPathTargets","offsetPath","offsetPathTargets","offsetDistance","draggable","droppable"],r={},i={};return Object.entries(e).forEach(function(e){var o=br(e,2),a=o[0],s=o[1];t.includes(a)||(-1!==n.indexOf(a)?i[a]=s:r[a]=s)}),[r,i]}function WS(e,t){return ki(e)?e.apply(void 0,yr([],br(t),!1)):e}function GS(e,t){return e.style.opacity||(e.style.opacity=1),wS(e,{opacity:0},t)}var VS=["$el","cx","cy","d","dx","dy","fill","fillOpacity","filter","fontFamily","fontSize","fontStyle","fontVariant","fontWeight","height","img","increasedLineWidthForHitTesting","innerHTML","isBillboard","billboardRotation","isSizeAttenuation","isClosed","isOverflowing","leading","letterSpacing","lineDash","lineHeight","lineWidth","markerEnd","markerEndOffset","markerMid","markerStart","markerStartOffset","maxLines","metrics","miterLimit","offsetX","offsetY","opacity","path","points","r","radius","rx","ry","shadowColor","src","stroke","strokeOpacity","text","textAlign","textBaseline","textDecorationColor","textDecorationLine","textDecorationStyle","textOverflow","textPath","textPathSide","textPathStartOffset","transform","transformOrigin","visibility","width","wordWrap","wordWrapWidth","x","x1","x2","y","y1","y2","z1","z2","zIndex"];function KS(e){return VS.includes(e)}function YS(e){var t={};for(var n in e)KS(n)&&(t[n]=e[n]);return t}var qS=xS({lineGroup:"line-group",line:"line",regionGroup:"region-group",region:"region"},"grid");function XS(e){return e.reduce(function(e,t,n){return e.push(yr([0===n?"M":"L"],br(t),!1)),e},[])}function JS(e,t,n){var r=t.connect,i=void 0===r?"line":r,o=t.center;if("line"===i)return XS(e);if(!o)return[];var a=IS(e[0],o),s=n?0:1;return e.reduce(function(e,t,n){return 0===n?e.push(yr(["M"],br(t),!1)):e.push(yr(["A",a,a,0,0,s],br(t),!1)),e},[])}function ZS(e,t,n){return"surround"===t.type?JS(e,t,n):XS(e)}function eC(e,t,n){var r=n.type,i=n.connect,o=n.center,a=n.closed,s=a?[["Z"]]:[],l=br([ZS(e,n),ZS(t.slice().reverse(),n,!0)],2),c=l[0],u=l[1],d=br([e[0],t.slice(-1)[0]],2),h=d[0],f=d[1],p=function(e,t){return[c,e,u,t,s].flat()};if("line"===i||"surround"===r)return p([yr(["L"],br(f),!1)],[yr(["L"],br(h),!1)]);if(!o)throw new Error("Arc grid need to specified center");var g=br([IS(f,o),IS(h,o)],2),m=g[0],v=g[1];return p([yr(["A",m,m,0,0,1],br(f),!1),yr(["L"],br(f),!1)],[yr(["A",v,v,0,0,0],br(h),!1),yr(["L"],br(h),!1)])}function tC(e,t,n,r){var i=n.animate,o=n.isBillboard,a=t.map(function(e,t){return{id:e.id||"grid-line-".concat(t),d:ZS(e.points,n)}});return e.selectAll(qS.line.class).data(a,function(e){return e.id}).join(function(e){return e.append("path").each(function(e,t){var n=WS(YS(mr({d:e.d},r)),[e,t,a]);this.attr(mr({class:qS.line.name,stroke:"#D9D9D9",lineWidth:1,lineDash:[4,4],isBillboard:o},n))})},function(e){return e.transition(function(e,t){var n=WS(YS(mr({d:e.d},r)),[e,t,a]);return wS(this,n,i.update)})},function(e){return e.transition(function(){var e=this,t=GS(this,i.exit);return gS(t,function(){return e.remove()}),t})}).transitions()}function nC(e,t,n){var r=n.animate,i=n.connect,o=n.areaFill;if(t.length<2||!o||!i)return[];for(var a=Array.isArray(o)?o:[o,"transparent"],s=function(e){return a[e%a.length]},l=[],c=0;c<t.length-1;c++){var u=br([t[c].points,t[c+1].points],2),d=u[0],h=u[1],f=eC(d,h,n);l.push({d:f,fill:s(c)})}return e.selectAll(qS.region.class).data(l,function(e,t){return t}).join(function(e){return e.append("path").each(function(e,t){var n=WS(e,[e,t,l]);this.attr(n)}).attr("className",qS.region.name)},function(e){return e.transition(function(e,t){var n=WS(e,[e,t,l]);return wS(this,n,r.update)})},function(e){return e.transition(function(){var e=this,t=GS(this,r.exit);return gS(t,function(){return e.remove()}),t})}).transitions()}function rC(e){var t=e.data,n=void 0===t?[]:t,r=e.closed;return r?n.map(function(e){var t=e.points,n=br(t,1),r=n[0];return mr(mr({},e),{points:yr(yr([],br(t),!1),[r],!1)})}):n}var iC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gr(t,e),t.prototype.render=function(e,t){e.type,e.center,e.areaFill,e.closed;var n=vr(e,["type","center","areaFill","closed"]),r=rC(e),i=Yb(t).maybeAppendByClassName(qS.lineGroup,"g"),o=Yb(t).maybeAppendByClassName(qS.regionGroup,"g"),a=tC(i,r,e,n),s=nC(o,r,e);return yr(yr([],br(a),!1),br(s),!1)},t}(Hb),oC=function(e,t,n){var r=0,i=dr(t)?t.split("."):t;while(e&&r<i.length)e=e[i[r++]];return void 0===e||r<i.length?n:e},aC=function(e,t){return function(n){return e*(1-n)+t*n}};function sC(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0;return function(i){var o=new Array(r),a=new Array(n),s=0;for(s=0;s<r;++s)o[s]=cC(e[s],t[s]);for(;s<n;++s)a[s]=t[s];for(s=0;s<r;++s)a[s]=o[s](i);return a}}function lC(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n={},r={};return Object.entries(t).forEach(function(t){var i=br(t,2),o=i[0],a=i[1];o in e?n[o]=cC(e[o],a):r[o]=a}),function(e){return Object.entries(n).forEach(function(t){var n=br(t,2),i=n[0],o=n[1];return r[i]=o(e)}),r}}function cC(e,t){return"number"===typeof e&&"number"===typeof t?aC(e,t):Array.isArray(e)&&Array.isArray(t)?sC(e,t):"object"===typeof e&&"object"===typeof t?lC(e,t):function(t){return e}}function uC(e,t,n,r){if(!r)return e.attr("__keyframe_data__",n),null;var i=r.duration,o=void 0===i?0:i,a=cC(t,n),s=Math.ceil(+o/16),l=new Array(s).fill(0).map(function(e,t,n){return{__keyframe_data__:a(t/(n.length-1))}});return e.animate(l,mr({fill:"both"},r))}function dC(e){return"function"===typeof e?e():dr(e)||lr(e)?new Wb({style:{text:String(e)}}):e}function hC(e,t){return"function"===typeof e?e():dr(e)||lr(e)?new Eh({style:mr(mr({},t),{innerHTML:String(e)})}):e}function fC(e,t,n){void 0===n&&(n=!1);var r=e.getBBox(),i=r.width,o=r.height,a=t/Math.max(i,o);return n&&(e.style.transform="scale(".concat(a,")")),a}function pC(e,t){var n={},r=Array.isArray(t)?t:[t];for(var i in e)r.includes(i)||(n[i]=e[i]);return n}function gC(e,t){return Object.fromEntries(Object.entries(e).map(function(e){var n=br(e,2),r=n[0],i=n[1];return[r,WS(i,t)]}))}function mC(e,t){return t&&ki(t)?e.filter(t):e}function vC(e,t){var n=t.startAngle,r=t.endAngle;return(r-n)*e+n}function AC(e,t){if("linear"===t.type){var n=br(t.startPos,2),r=n[0],i=n[1],o=br(t.endPos,2),a=o[0],s=o[1],l=br([a-r,s-i],2),c=l[0],u=l[1];return DS([c,u])}var d=RS(vC(e,t));return[-Math.sin(d),Math.cos(d)]}function bC(e,t,n){var r=AC(e,n);return NS(r,"positive"!==t)}function yC(e,t){return bC(e,t.labelDirection,t)}function wC(e,t){var n=br(t.startPos,2),r=n[0],i=n[1],o=br(t.endPos,2),a=o[0],s=o[1],l=br([a-r,s-i],2),c=l[0],u=l[1];return[r+c*e,i+u*e]}function _C(e,t){var n=t.radius,r=br(t.center,2),i=r[0],o=r[1],a=RS(vC(e,t));return[i+n*Math.cos(a),o+n*Math.sin(a)]}function xC(e,t){return"linear"===t.type?wC(e,t):_C(e,t)}function EC(e){return 0===AC(0,e)[1]}function SC(e){return 0===AC(0,e)[0]}function CC(e,t){return t-e===360}function TC(e,t,n,r,i){var o=t-e,a=br([i,i],2),s=a[0],l=a[1],c=br([RS(e),RS(t)],2),u=c[0],d=c[1],h=function(e){return[n+i*Math.cos(e),r+i*Math.sin(e)]},f=br(h(u),2),p=f[0],g=f[1],m=br(h(d),2),v=m[0],A=m[1];if(CC(e,t)){var b=(d+u)/2,y=br(h(b),2),w=y[0],_=y[1];return[["M",p,g],["A",s,l,0,1,0,w,_],["A",s,l,0,1,0,v,A]]}var x=o>180?1:0,E=e>t?0:1,S=!1;return S?"M".concat(n,",").concat(r,",L").concat(p,",").concat(g,",A").concat(s,",").concat(l,",0,").concat(x,",").concat(E,",").concat(v,",").concat(A,",L").concat(n,",").concat(r):"M".concat(p,",").concat(g,",A").concat(s,",").concat(l,",0,").concat(x,",").concat(E,",").concat(v,",").concat(A)}function kC(e){var t=e.attributes,n=t.startAngle,r=t.endAngle,i=t.center,o=t.radius;return yr(yr([n,r],br(i),!1),[o],!1)}function OC(e,t,n,r){var i=t.startAngle,o=t.endAngle,a=t.center,s=t.radius;return e.selectAll(SS.line.class).data([{d:TC.apply(void 0,yr(yr([i,o],br(a),!1),[s],!1))}],function(e,t){return t}).join(function(e){return e.append("path").attr("className",SS.line.name).styles(t).styles({d:function(e){return e.d}})},function(e){return e.transition(function(){var e=this,t=uC(this,kC(this),yr(yr([i,o],br(a),!1),[s],!1),r.update);if(t){var n=function(){var t=oC(e.attributes,"__keyframe_data__");e.style.d=TC.apply(void 0,yr([],br(t),!1))};t.onframe=n,t.onfinish=n}return t}).styles(t)},function(e){return e.remove()}).styles(n).transitions()}function MC(e,t){t.truncRange,t.truncShape,t.lineExtension}function IC(e,t,n){void 0===n&&(n=[0,0]);var r=br([e,t,n],3),i=br(r[0],2),o=i[0],a=i[1],s=br(r[1],2),l=s[0],c=s[1],u=br(r[2],2),d=u[0],h=u[1],f=br([l-o,c-a],2),p=f[0],g=f[1],m=Math.sqrt(Math.pow(p,2)+Math.pow(g,2)),v=br([-d/m,h/m],2),A=v[0],b=v[1];return[A*p,A*g,b*p,b*g]}function DC(e){var t=br(e,2),n=br(t[0],2),r=n[0],i=n[1],o=br(t[1],2),a=o[0],s=o[1];return{x1:r,y1:i,x2:a,y2:s}}function NC(e,t,n,r){var i=t.showTrunc,o=t.startPos,a=t.endPos,s=t.truncRange,l=t.lineExtension,c=br([o,a],2),u=br(c[0],2),d=u[0],h=u[1],f=br(c[1],2),p=f[0],g=f[1],m=br(l?IC(o,a,l):new Array(4).fill(0),4),v=m[0],A=m[1],b=m[2],y=m[3],w=function(t){return e.selectAll(SS.line.class).data(t,function(e,t){return t}).join(function(e){return e.append("line").attr("className",function(e){return"".concat(SS.line.name," ").concat(e.className)}).styles(n).transition(function(e){return wS(this,DC(e.line),!1)})},function(e){return e.styles(n).transition(function(e){var t=e.line;return wS(this,DC(t),r.update)})},function(e){return e.remove()}).transitions()};if(!i||!s)return w([{line:[[d+v,h+A],[p+b,g+y]],className:SS.line.name}]);var _=br(s,2),x=_[0],E=_[1],S=p-d,C=g-h,T=br([d+S*x,h+C*x],2),k=T[0],O=T[1],M=br([d+S*E,h+C*E],2),I=M[0],D=M[1],N=w([{line:[[d+v,h+A],[k,O]],className:SS.lineFirst.name},{line:[[I,D],[p+b,g+y]],className:SS.lineSecond.name}]);return MC(e,t),N}function RC(e,t,n,r){var i,o=n.showArrow,a=n.showTrunc,s=n.lineArrow,l=n.lineArrowOffset,c=n.lineArrowSize;if(i="arc"===t?e.select(SS.line.class):a?e.select(SS.lineSecond.class):e.select(SS.line.class),!o||!s||"arc"===n.type&&CC(n.startAngle,n.endAngle)){var u=i.node();u&&(u.style.markerEnd=void 0)}else{var d=dC(s);d.attr(r),fC(d,c,!0),i.style("markerEnd",d).style("markerEndOffset",-l)}}function LC(e,t,n){var r,i=t.type,o=US(t,"line");return r="linear"===i?NC(e,t,pC(o,"arrow"),n):OC(e,t,pC(o,"arrow"),n),RC(e,i,t,o),r}function BC(e,t){return bC(e,t.gridDirection,t)}function PC(e){var t=e.type,n=e.gridCenter;return"linear"===t?n:n||e.center}function FC(e,t){var n=t.gridLength;return e.map(function(e,r){var i=e.value,o=br(xC(i,t),2),a=o[0],s=o[1],l=br(CS(BC(i,t),n),2),c=l[0],u=l[1];return{id:r,points:[[a,s],[a+c,s+u]]}})}function $C(e,t){var n=t.gridControlAngles,r=PC(t);if(!r)throw new Error("grid center is not provide");if(e.length<2)throw new Error("Invalid grid data");if(!n||0===n.length)throw new Error("Invalid gridControlAngles");var i=br(r,2),o=i[0],a=i[1];return e.map(function(e,r){var i=e.value,s=br(xC(i,t),2),l=s[0],c=s[1],u=br([l-o,c-a],2),d=u[0],h=u[1],f=[];return n.forEach(function(e){var t=RS(e),n=br([Math.cos(t),Math.sin(t)],2),r=n[0],i=n[1],s=d*r-h*i+o,l=d*i+h*r+a;f.push([s,l])}),{points:f,id:r}})}function jC(e,t,n,r){var i=US(n,"grid"),o=i.type,a=i.areaFill,s=PC(n),l=mC(t,n.gridFilter),c="segment"===o?FC(l,n):$C(l,n),u=mr(mr({},i),{center:s,areaFill:ki(a)?l.map(function(e,t){return WS(a,[e,t,l])}):a,animate:r,data:c});return e.selectAll(SS.grid.class).data([1]).join(function(e){return e.append(function(){return new iC({style:u})}).attr("className",SS.grid.name)},function(e){return e.transition(function(){return this.update(u)})},function(e){return e.remove()}).transitions()}function HC(e,t,n,r,i){return void 0===r&&(r=!0),void 0===i&&(i=!1),!!(r&&e===t||i&&e===n)||e>t&&e<n}var UC=function(e){var t=new DOMParser,n=t.parseFromString(e,"text/html"),r=n.body.firstElementChild;if(console.log(null===r||void 0===r?void 0:r.getClientRects(),11),!r)return 0;var i=r.getAttribute("style")||"",o=Object.fromEntries(i.split(";").map(function(e){return e.trim()}).filter(function(e){return e.includes(":")}).map(function(e){var t=br(e.split(":").map(function(e){return e.trim()}),2),n=t[0],r=t[1];return[n.toLowerCase(),r]})),a=function(e){if(!e)return 0;var t=e.match(/([\d.]+)px/);return t?parseFloat(t[1]):0};if(o.height)return a(o.height);var s,l=a(o["font-size"])||16,c=o["line-height"];s=c&&"normal"!==c?c.endsWith("px")?a(c):/^[\d.]+$/.test(c)?parseFloat(c)*l:l:1.2*l;var u=a(o["padding-top"]),d=a(o["padding-bottom"]);if(o.padding){var h=o.padding.split(/\s+/).map(a);1===h.length||2===h.length?(u=h[0],d=h[0]):(3===h.length||4===h.length)&&(u=h[0],d=h[2])}var f=a(o["border-top-width"]),p=a(o["border-bottom-width"]);if(o.border){var g=o.border.match(/([\d.]+)px/);g&&(f=parseFloat(g[1]),p=parseFloat(g[1]))}if(o["border-width"]){h=o["border-width"].split(/\s+/).map(a);1===h.length||2===h.length?(f=h[0],p=h[0]):(3===h.length||4===h.length)&&(f=h[0],p=h[2])}return s+u+d+f+p};function QC(e){var t,n,r,i=e||1;function o(e,o){++t>i&&(r=n,a(1),++t),n[e]=o}function a(e){t=0,n=Object.create(null),e||(r=Object.create(null))}return a(),{clear:a,has:function(e){return void 0!==n[e]||void 0!==r[e]},get:function(e){var t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(o(e,t),t):void 0},set:function(e,t){void 0!==n[e]?n[e]=t:o(e,t)}}}var zC,WC,GC=new Map;function VC(e,t,n){void 0===n&&(n=128);var r=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=t?t.apply(this,r):r[0];GC.has(e)||GC.set(e,QC(n));var a=GC.get(e);if(a.has(o))return a.get(o);var s=e.apply(this,r);return a.set(o,s),s};return r}var KC=VC(function(e,t){var n=t.fontSize,r=t.fontFamily,i=t.fontWeight,o=t.fontStyle,a=t.fontVariant;return WC?WC(e,n):(zC||(zC=nh.offscreenCanvasCreator.getOrCreateContext(void 0)),zC.font=[o,a,i,"".concat(n,"px"),r].join(" "),zC.measureText(e).width)},function(e,t){return[e,Object.values(t||YC(e)).join()].join("")},4096),YC=function(e){var t=e.style.fontFamily||"sans-serif",n=e.style.fontWeight||"normal",r=e.style.fontStyle||"normal",i=e.style.fontVariant,o=e.style.fontSize;return o="object"===typeof o?o.value:o,{fontSize:o,fontFamily:t,fontWeight:n,fontStyle:r,fontVariant:i}};function qC(e){return"text"===e.nodeName?e:"g"===e.nodeName&&1===e.children.length&&"text"===e.children[0].nodeName?e.children[0]:null}function XC(e,t){var n=qC(e);n&&n.attr(t)}function JC(e,t,n){void 0===n&&(n="..."),XC(e,{wordWrap:!0,wordWrapWidth:t,maxLines:1,textOverflow:n})}function ZC(e,t,n,r){void 0===n&&(n=2),void 0===r&&(r="top"),XC(e,{wordWrap:!0,wordWrapWidth:t,maxLines:n,textBaseline:r})}function eT(e,t,n){var r=e.getBBox(),i=r.width,o=r.height,a=br([t,n].map(function(e,t){var n;return e.includes("%")?parseFloat((null===(n=e.match(/[+-]?([0-9]*[.])?[0-9]+/))||void 0===n?void 0:n[0])||"0")/100*(0===t?i:o):e}),2),s=a[0],l=a[1];return[s,l]}function tT(e,t){if(t)try{var n=/translate\(([+-]*[\d]+[%]*),[ ]*([+-]*[\d]+[%]*)\)/g,r=t.replace(n,function(t,n,r){return"translate(".concat(eT(e,n,r),")")});e.attr("transform",r)}catch(c4){}}function nT(e){if(lr(e))return[e,e,e,e];if(S(e)){var t=e.length;if(1===t)return[e[0],e[0],e[0],e[0]];if(2===t)return[e[0],e[1],e[0],e[1]];if(3===t)return[e[0],e[1],e[2],e[1]];if(4===t)return e}return[0,0,0,0]}var rT=function(){function e(e,t,n,r){this.set(e,t,n,r)}return Object.defineProperty(e.prototype,"left",{get:function(){return this.x1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.y1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.x2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.y2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.defined("x2")&&this.defined("x1")?this.x2-this.x1:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.defined("y2")&&this.defined("y1")?this.y2-this.y1:void 0},enumerable:!1,configurable:!0}),e.prototype.rotatedPoints=function(e,t,n){var r=this,i=r.x1,o=r.y1,a=r.x2,s=r.y2,l=Math.cos(e),c=Math.sin(e),u=t-t*l+n*c,d=n-t*c-n*l,h=[[l*i-c*s+u,c*i+l*s+d],[l*a-c*s+u,c*a+l*s+d],[l*i-c*o+u,c*i+l*o+d],[l*a-c*o+u,c*a+l*o+d]];return h},e.prototype.set=function(e,t,n,r){return n<e?(this.x2=e,this.x1=n):(this.x1=e,this.x2=n),r<t?(this.y2=t,this.y1=r):(this.y1=t,this.y2=r),this},e.prototype.defined=function(e){return this[e]!==Number.MAX_VALUE&&this[e]!==-Number.MAX_VALUE},e}();function iT(e,t){var n=e.getEulerAngles()||0;e.setEulerAngles(0);var r=e.getBounds(),i=br(r.min,2),o=i[0],a=i[1],s=br(r.max,2),l=s[0],c=s[1],u=e.getBBox(),d=u.width,h=u.height,f=h,p=0,g=0,m=o,v=a,A=qC(e);if(A){f-=1.5;var b=A.style.textAlign,y=A.style.textBaseline;"center"===b?m=(o+l)/2:"right"!==b&&"end"!==b||(m=l),"middle"===y?v=(a+c)/2:"bottom"===y&&(v=c)}var w=br(nT(t),4),_=w[0],x=void 0===_?0:_,E=w[1],S=void 0===E?0:E,C=w[2],T=void 0===C?x:C,k=w[3],O=void 0===k?S:k,M=new rT((p+=o)-O,(g+=a)-x,p+d+S,g+f+T);return e.setEulerAngles(n),M.rotatedPoints(RS(n),m,v)}function oT(e,t){return t[0]<=Math.max(e[0][0],e[1][0])&&t[0]<=Math.min(e[0][0],e[1][0])&&t[1]<=Math.max(e[0][1],e[1][1])&&t[1]<=Math.min(e[0][1],e[1][1])}function aT(e,t,n){var r=(t[1]-e[1])*(n[0]-t[0])-(t[0]-e[0])*(n[1]-t[1]);return 0===r?0:r<0?2:1}function sT(e,t){var n=aT(e[0],e[1],t[0]),r=aT(e[0],e[1],t[1]),i=aT(t[0],t[1],e[0]),o=aT(t[0],t[1],e[1]);return n!==r&&i!==o||(!(0!==n||!oT(e,t[0]))||(!(0!==r||!oT(e,t[1]))||(!(0!==i||!oT(t,e[0]))||!(0!==o||!oT(t,e[1])))))}function lT(e,t){var n=e.length;if(n<3)return!1;var r=[t,[9999,t[1]]],i=0,o=0;do{var a=[e[o],e[(o+1)%n]];if(sT(a,r)){if(0===aT(a[0],t,a[1]))return oT(a,t);i++}o=(o+1)%n}while(0!==o);return!!(1&i)}function cT(e,t){return t.every(function(t){return lT(e,t)})}function uT(e,t,n){var r=e.x1,i=e.x2,o=e.y1,a=e.y2,s=[[r,o],[i,o],[i,a],[r,a]],l=iT(t,n);return cT(s,l)}function dT(e,t){var n=br(e,4),r=n[0],i=n[1],o=n[2],a=n[3],s=br(t,4),l=s[0],c=s[1],u=s[2],d=s[3],h=o-r,f=a-i,p=u-l,g=d-c,m=h*g-p*f;if(0===m)return!1;var v=m>0,A=r-l,b=i-c,y=h*b-f*A;if(y<0===v)return!1;var w=p*b-g*A;return w<0!==v&&(y>m!==v&&w>m!==v)}function hT(e,t){var n=[[e[0],e[1],e[2],e[3]],[e[2],e[3],e[4],e[5]],[e[4],e[5],e[6],e[7]],[e[6],e[7],e[0],e[1]]];return n.some(function(e){return dT(t,e)})}function fT(e,t,n){var r,i,o=iT(e,n).flat(1),a=iT(t,n).flat(1),s=[[o[0],o[1],o[2],o[3]],[o[0],o[1],o[4],o[5]],[o[4],o[5],o[6],o[7]],[o[2],o[3],o[6],o[7]]];try{for(var l=Ar(s),c=l.next();!c.done;c=l.next()){var u=c.value;if(hT(a,u))return!0}}catch(d){r={error:d}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return!1}function pT(e,t){var n=e.type,r=e.labelDirection,i=e.crossSize;if(!i)return!1;if("arc"===n){var o=e.center,a=e.radius,s=br(o,2),l=s[0],c=s[1],u="negative"===r?0:i,d=-a-u,h=a+u,f=br(nT(t),4),p=f[0],g=f[1],m=f[2],v=f[3];return new rT(l+d-v,c+d-p,l+h+g,c+h+m)}var A=br(e.startPos,2),b=A[0],y=A[1],w=br(e.endPos,2),_=w[0],x=w[1],E=br(SC(e)?[-t,0,t,0]:[0,t,0,-t],4),S=E[0],C=E[1],T=E[2],k=E[3],O=yC(0,e),M=CS(O,i),I=new rT(b,y,_,x);return I.x1+=k,I.y1+=S,I.x2+=C+M[0],I.y2+=T+M[1],I}function gT(e,t,n){var r,i,o=t.crossPadding,a=new Set,s=null,l=pT(t,o),c=function(e){return!l||uT(l,e)},u=function(e,t){return!e||!e.firstChild||!fT(e.firstChild,t.firstChild,nT(n))};try{for(var d=Ar(e),h=d.next();!h.done;h=d.next()){var f=h.value;c(f)?!s||u(s,f)?s=f:(a.add(s),a.add(f)):a.add(f)}}catch(p){r={error:p}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}return Array.from(a)}function mT(e,t){return void 0===t&&(t={}),ur(e)?0:"number"===typeof e?e:Math.floor(KC(e,t))}function vT(e,t,n,r){if(!(e.length<=0)){var i=t.suffix,o=void 0===i?"...":i,a=t.minLength,s=t.maxLength,l=void 0===s?1/0:s,c=t.step,u=void 0===c?" ":c,d=t.margin,h=void 0===d?[0,0,0,0]:d,f=YC(r.getTextShape(e[0])),p=mT(u,f),g=a?mT(a,f):p,m=mT(l,f);(ur(m)||m===1/0)&&(m=Math.max.apply(null,e.map(function(e){return e.getBBox().width})));for(var v=e.slice(),A=br(h,4),b=(A[0],A[1],A[2],A[3],function(t){if(v.forEach(function(e){r.ellipsis(r.getTextShape(e),t,o)}),v=gT(e,n,h),v.length<1)return{value:void 0}}),y=m;y>g+p;y-=p){var w=b(y);if("object"===typeof w)return w.value}}}var AT=function(e){return void 0!==e&&null!=e&&!Number.isNaN(e)};function bT(e){var t=e.getLocalBounds(),n=t.min,r=t.max,i=br([n,r],2),o=br(i[0],2),a=o[0],s=o[1],l=br(i[1],2),c=l[0],u=l[1];return{x:a,y:s,width:c-a,height:u-s,left:a,bottom:u,top:s,right:c}}function yT(e,t){var n=br(e,2),r=n[0],i=n[1],o=br(t,2),a=o[0],s=o[1];return r!==a&&i===s}function wT(e,t){var n,r,i=t.attributes;try{for(var o=Ar(Object.entries(i)),a=o.next();!a.done;a=o.next()){var s=br(a.value,2),l=s[0],c=s[1];"id"!==l&&"className"!==l&&e.attr(l,c)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}var _T={parity:function(e,t){var n=t.seq,r=void 0===n?2:n;return e.filter(function(e,t){return!(t%r)||(Db(e),!1)})}},xT=function(e){return e.filter(AT)};function ET(e,t,n,r){var i=e.length,o=t.keepHeader,a=t.keepTail;if(!(i<=1||2===i&&o&&a)){var s,l,c=_T.parity,u=function(e){return e.forEach(r.show),e},d=2,h=e.slice(),f=e.slice(),p=Math.min.apply(Math,yr([1],br(e.map(function(e){return e.getBBox().width})),!1));if("linear"===n.type&&(EC(n)||SC(n))){var g=bT(e[0]).left,m=bT(e[i-1]).right,v=Math.abs(m-g)||1;d=Math.max(Math.floor(i*p/v),d)}o&&(s=h.splice(0,1)[0]),a&&(l=h.splice(-1,1)[0],h.reverse()),u(h);while(d<e.length&&gT(xT(l?yr(yr([l],br(f),!1),[s],!1):yr([s],br(f),!1)),n,null===t||void 0===t?void 0:t.margin).length){if(l&&!s&&d%2===0){var A=h.splice(0,1);A.forEach(r.hide)}else if(l&&s){A=h.splice(0,1);A.forEach(r.hide)}f=c(u(h),{seq:d}),d++}}}function ST(e,t,n,r){var i,o,a=t.optionalAngles,s=void 0===a?[0,45,90]:a,l=t.margin,c=t.recoverWhenFailed,u=void 0===c||c,d=e.map(function(e){return e.getLocalEulerAngles()}),h=function(){return gT(e,n,l).length<1},f=function(t){return e.forEach(function(e,n){var i=Array.isArray(t)?t[n]:t;r.rotate(e,+i)})};try{for(var p=Ar(s),g=p.next();!g.done;g=p.next()){var m=g.value;if(f(m),h())return}}catch(v){i={error:v}}finally{try{g&&!g.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}u&&f(d)}function CT(e){var t=e.type,n=e.labelDirection;return"linear"===t&&EC(e)?"negative"===n?"bottom":"top":"middle"}function TT(e,t,n,r,i){var o,a=t.maxLines,s=void 0===a?3:a,l=t.recoverWhenFailed,c=void 0===l||l,u=t.margin,d=void 0===u?[0,0,0,0]:u,h=WS(null!==(o=t.wordWrapWidth)&&void 0!==o?o:50,[i]),f=e.map(function(e){return e.attr("maxLines")||1}),p=Math.min.apply(Math,yr([],br(f),!1)),g=function(){return gT(e,n,d).length<1},m=CT(n),v=function(t){return e.forEach(function(e,n){var i=Array.isArray(t)?t[n]:t;r.wrap(e,h,i,m)})};if(!(p>s)){if("linear"===n.type&&EC(n)){if(v(s),g())return}else for(var A=p;A<=s;A++)if(v(A),g())return;c&&v(f)}}var kT=new Map([["hide",ET],["rotate",ST],["ellipsis",vT],["wrap",TT]]);function OT(e,t,n){return!(t.labelOverlap.length<1)&&("hide"===n?!$b(e[0]):"rotate"===n?!e.some(function(e){var t;return!!(null===(t=e.attr("transform"))||void 0===t?void 0:t.includes("rotate"))}):"ellipsis"!==n&&"wrap"!==n||e.filter(function(e){return e.querySelector("text")}).length>=1)}function MT(e,t,n,r){var i=t.labelOverlap,o=void 0===i?[]:i;o.length&&o.forEach(function(i){var o=i.type,a=kT.get(o);OT(e,t,o)&&(null===a||void 0===a||a(e,i,t,r,n))})}function IT(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=function(e){return"positive"===e?-1:1};return e.reduce(function(e,t){return e*n(t)},1)}function DT(e){var t=e;while(t<0)t+=360;return Math.round(t%360)}function NT(e,t){var n=br(e,2),r=n[0],i=n[1],o=br(t,2),a=o[0],s=o[1],l=br([r*a+i*s,r*s-i*a],2),c=l[0],u=l[1];return Math.atan2(u,c)}function RT(e){var t=(e+360)%180;return HC(t,-90,90)||(t+=180),t}function LT(e,t,n){var r,i=n.labelAlign,o=null===(r=t.style.transform)||void 0===r?void 0:r.includes("rotate");if(o)return t.getLocalEulerAngles();var a=0,s=yC(e.value,n),l=AC(e.value,n);return"horizontal"===i?0:(a="perpendicular"===i?NT([1,0],s):NT([l[0]<0?-1:1,0],l),RT(LS(a)))}function BT(e,t,n){var r=n.type,i=n.labelAlign,o=yC(e,n),a=DT(t),s=DT(LS(NT([1,0],o))),l="center",c="middle";return"linear"===r?[90,270].includes(s)&&0===a?(l="center",c=1===o[1]?"top":"bottom"):s%180||![90,270].includes(a)?0===s?(HC(a,0,90,!1,!0)||HC(a,0,90)||HC(a,270,360))&&(l="start"):90===s?HC(a,0,90,!1,!0)?l="start":(HC(a,90,180)||HC(a,270,360))&&(l="end"):270===s?HC(a,0,90,!1,!0)?l="end":(HC(a,90,180)||HC(a,270,360))&&(l="start"):180===s&&(90===a?l="start":(HC(a,0,90)||HC(a,270,360))&&(l="end")):l="center":"parallel"===i?c=HC(s,0,180,!0)?"top":"bottom":"horizontal"===i?HC(s,90,270,!1)?l="end":(HC(s,270,360,!1)||HC(s,0,90))&&(l="start"):"perpendicular"===i&&(l=HC(s,90,270)?"end":"start"),{textAlign:l,textBaseline:c}}function PT(e,t,n){t.setLocalEulerAngles(e);var r=t.__data__.value,i=BT(r,e,n),o=t.querySelector(SS.labelItem.class);o&&HT(o,i)}function FT(e,t,n){var r=n.showTick,i=n.tickLength,o=n.tickDirection,a=n.labelDirection,s=n.labelSpacing,l=t.indexOf(e),c=WS(s,[e,l,t]),u=br([yC(e.value,n),IT(a,o)],2),d=u[0],h=u[1],f=1===h?WS(r?i:0,[e,l,t]):0,p=br(TS(CS(d,c+f),xC(e.value,n)),2),g=p[0],m=p[1];return{x:g,y:m}}function $T(e,t,n,r){var i=r.labelFormatter,o=ki(i)?function(){return dC(WS(i,[e,t,n,yC(e.value,r)]))}:function(){return dC(e.label||"")};return o}function jT(e,t,n,r){var i=r.labelRender,o=(oC(r,"endPos.0",400)-oC(r,"startPos.0",0))/n.length,a=ki(i)?WS(i,[e,t,n,yC(e.value,r)]):e.label||"",s=UC(a)||30;return function(){return hC(a,{width:o,height:s})}}function HT(e,t){["text","html"].includes(e.nodeName)&&e.attr(t)}function UT(e,t){MT(this.node().childNodes,e,t,{hide:Db,show:Ib,rotate:function(t,n){PT(+n,t,e)},ellipsis:function(e,t,n){e&&JC(e,t||1/0,n)},wrap:function(e,t,n){e&&ZC(e,t,n)},getTextShape:function(e){return e.querySelector("text")}})}function QT(e,t,n,r,i){var o=n.indexOf(t),a=i.labelRender,s=Yb(e).append(a?jT(t,o,n,i):$T(t,o,n,i)).attr("className",SS.labelItem.name).node(),l=br(zS(gC(r,[t,o,n])),2),c=l[0],u=l[1],d=u.transform,h=vr(u,["transform"]);tT(s,d);var f=LT(t,s,i);return s.getLocalEulerAngles()||s.setLocalEulerAngles(f),HT(s,mr(mr({},BT(t.value,f,i)),c)),e.attr(h),s}function zT(e,t,n,r,i){var o,a=mC(t,n.labelFilter),s=US(n,"label"),l=e.selectAll(SS.label.class).data(a,function(e,t){return t}).join(function(e){return e.append("g").attr("className",SS.label.name).transition(function(e){QT(this,e,t,s,n);var r=FT(e,t,n),i=r.x,o=r.y;return this.style.transform="translate(".concat(i,", ").concat(o,")"),null})},function(e){return e.transition(function(e){var i=this.querySelector(SS.labelItem.class),o=QT(this,e,t,s,n),a=yS(i,o,r.update),l=FT(e,t,n),c=l.x,u=l.y,d=wS(this,{transform:"translate(".concat(c,", ").concat(u,")")},r.update);return yr(yr([],br(a),!1),[d],!1)})},function(e){return o=e,e.transition(function(){var e=this,t=GS(this.childNodes[0],r.exit);return gS(t,function(){return Yb(e).remove()}),t}),o}).transitions();return mS(l,function(){UT.call(e,n,i)}),l}function WT(e,t){return bC(e,t.tickDirection,t)}function GT(e,t){var n=br(e,2),r=n[0],i=n[1];return[[0,0],[r*t,i*t]]}function VT(e,t,n,r,i){var o=i.tickLength,a=br(GT(r,WS(o,[e,t,n])),2),s=br(a[0],2),l=s[0],c=s[1],u=br(a[1],2),d=u[0],h=u[1];return{x1:l,x2:d,y1:c,y2:h}}function KT(e,t,n,r,i){var o=i.tickFormatter,a=WT(t.value,i),s="line";return ki(o)&&(s=function(){return WS(o,[t,n,r,a])}),e.append(s).attr("className",SS.tickItem.name)}function YT(e,t,n,r,i,o,a){var s=WT(e.value,o),l=VT(e,t,n,s,o),c=l.x1,u=l.x2,d=l.y1,h=l.y2,f=br(zS(gC(a,[e,t,n,s])),2),p=f[0],g=f[1];"line"===r.node().nodeName&&r.styles(mr({x1:c,x2:u,y1:d,y2:h},p)),i.attr(g),r.styles(p)}function qT(e,t,n,r,i,o){var a=KT(Yb(this),e,t,n,r);YT(e,t,n,a,this,r,i);var s=br(xC(e.value,r),2),l=s[0],c=s[1];return wS(this,{transform:"translate(".concat(l,", ").concat(c,")")},o)}function XT(e,t,n,r){var i=mC(t,n.tickFilter),o=US(n,"tick");return e.selectAll(SS.tick.class).data(i,function(e){return e.id||e.label}).join(function(e){return e.append("g").attr("className",SS.tick.name).transition(function(e,t){return qT.call(this,e,t,i,n,o,!1)})},function(e){return e.transition(function(e,t){return this.removeChildren(),qT.call(this,e,t,i,n,o,r.update)})},function(e){return e.transition(function(){var e=this,t=GS(this.childNodes[0],r.exit);return gS(t,function(){return e.remove()}),t})}).transitions()}function JT(e){return/\S+-\S+/g.test(e)?e.split("-").map(function(e){return e[0]}):e.length>2?[e[0]]:e.split("")}function ZT(e,t,n){var r=n.titlePosition,i=void 0===r?"lb":r,o=n.titleSpacing,a=JT(i),s=e.node().getLocalBounds(),l=br(s.min,2),c=l[0],u=l[1],d=br(s.halfExtents,2),h=d[0],f=d[1],p=br(t.node().getLocalBounds().halfExtents,2),g=p[0],m=p[1],v=br([c+h,u+f],2),A=v[0],b=v[1],y=br(nT(o),4),w=y[0],_=y[1],x=y[2],E=y[3];if(["start","end"].includes(i)&&"linear"===n.type){var S=n.startPos,C=n.endPos,T=br("start"===i?[S,C]:[C,S],2),k=T[0],O=T[1],M=DS([-O[0]+k[0],-O[1]+k[1]]),I=br(CS(M,w),2),D=I[0],N=I[1];return{x:k[0]+D,y:k[1]+N}}return a.includes("t")&&(b-=f+m+w),a.includes("r")&&(A+=h+g+_),a.includes("l")&&(A-=h+g+E),a.includes("b")&&(b+=f+m+x),{x:A,y:b}}function ek(e,t,n){var r=e.getGeometryBounds().halfExtents,i=2*r[1];if("vertical"===t){if("left"===n)return"rotate(-90) translate(0, ".concat(i/2,")");if("right"===n)return"rotate(-90) translate(0, -".concat(i/2,")")}return""}function tk(e,t,n,r,i){var o=US(r,"title"),a=br(zS(o),2),s=a[0],l=a[1],c=l.transform,u=l.transformOrigin,d=vr(l,["transform","transformOrigin"]);t.styles(d);var h=c||ek(e.node(),s.direction,s.position);e.styles(mr(mr({},s),{transformOrigin:u})),tT(e.node(),h);var f=ZT(Yb(n._offscreen||n.querySelector(SS.mainGroup.class)),t,r),p=f.x,g=f.y,m=wS(t.node(),{transform:"translate(".concat(p,", ").concat(g,")")},i);return m}function nk(e,t,n,r){var i=n.titleText;return e.selectAll(SS.title.class).data([{title:i}].filter(function(e){return!!e.title}),function(e,t){return e.title}).join(function(o){return o.append(function(){return dC(i)}).attr("className",SS.title.name).transition(function(){return tk(Yb(this),e,t,n,r.enter)})},function(i){return i.transition(function(){return tk(Yb(this),e,t,n,r.update)})},function(e){return e.remove()}).transitions()}function rk(e,t,n,r){var i=e.showLine,o=e.showTick,a=e.showLabel,s=t.maybeAppendByClassName(SS.lineGroup,"g"),l=Ub(i,s,function(t){return LC(t,e,r)})||[],c=t.maybeAppendByClassName(SS.tickGroup,"g"),u=Ub(o,c,function(t){return XT(t,n,e,r)})||[],d=t.maybeAppendByClassName(SS.labelGroup,"g"),h=Ub(a,d,function(i){return zT(i,n,e,r,t.node())})||[];return yr(yr(yr([],br(l),!1),br(u),!1),br(h),!1).filter(function(e){return!!e})}var ik=function(e){function t(t){return e.call(this,t,ES)||this}return gr(t,e),t.prototype.render=function(e,t,n){var r=this,i=e.titleText,o=e.data,a=e.animate,s=e.showTitle,l=e.showGrid,c=e.dataThreshold,u=e.truncRange,d=_S(o,c).filter(function(e){var t=e.value;return!(u&&t>u[0]&&t<u[1])}),h=pS(void 0===n?a:n),f=Yb(t).maybeAppendByClassName(SS.gridGroup,"g"),p=Ub(l,f,function(t){return jC(t,d,e,h)})||[],g=Yb(t).maybeAppendByClassName(SS.mainGroup,"g");i&&(!this.initialized&&h.enter||this.initialized&&h.update)&&rk(e,Yb(this.offscreenGroup),d,pS(!1));var m=rk(e,Yb(g.node()),d,h),v=Yb(t).maybeAppendByClassName(SS.titleGroup,"g"),A=Ub(s,v,function(t){return nk(t,r,e,h)})||[];return yr(yr(yr([],br(p),!1),br(m),!1),br(A),!1).flat().filter(function(e){return!!e})},t}(Hb);function ok(e,t){var n;if(e)if(S(e)){for(var r=0,i=e.length;r<i;r++)if(n=t(e[r],r),!1===n)break}else if(Oi(e))for(var o in e)if(e.hasOwnProperty(o)&&(n=t(e[o],o),!1===n))break}var ak=ok,sk=function(e,t,n){if(!S(e)&&!D(e))return e;var r=n;return ak(e,function(e,n){r=t(r,e,n)}),r},lk=sk,ck=function(e,t){return lk(e,function(e,n,r){return t.includes(r)||(e[r]=n),e},{})},uk=function(e){var t=jp(e);return t.charAt(0).toUpperCase()+t.substring(1)},dk=uk;function hk(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function fk(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function pk(e){return e=fk(Math.abs(e)),e?e[1]:NaN}function gk(e,t){return function(n,r){var i=n.length,o=[],a=0,s=e[0],l=0;while(i>0&&s>0){if(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),(l+=s+1)>r)break;s=e[a=(a+1)%e.length]}return o.reverse().join(t)}}function mk(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var vk,Ak=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bk(e){if(!(t=Ak.exec(e)))throw new Error("invalid format: "+e);var t;return new yk({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function yk(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function wk(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(t+1):e}function _k(e,t){var n=fk(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(vk=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+fk(e,Math.max(0,t+o-1))[0]}function xk(e,t){var n=fk(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}bk.prototype=yk.prototype,yk.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Ek={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:hk,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>xk(100*e,t),r:xk,s:_k,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Sk(e){return e}var Ck,Tk,kk=Array.prototype.map,Ok=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Mk(e){var t=void 0===e.grouping||void 0===e.thousands?Sk:gk(kk.call(e.grouping,Number),e.thousands+""),n=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",i=void 0===e.decimal?".":e.decimal+"",o=void 0===e.numerals?Sk:mk(kk.call(e.numerals,String)),a=void 0===e.percent?"%":e.percent+"",s=void 0===e.minus?"−":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function c(e){e=bk(e);var c=e.fill,u=e.align,d=e.sign,h=e.symbol,f=e.zero,p=e.width,g=e.comma,m=e.precision,v=e.trim,A=e.type;"n"===A?(g=!0,A="g"):Ek[A]||(void 0===m&&(m=12),v=!0,A="g"),(f||"0"===c&&"="===u)&&(f=!0,c="0",u="=");var b="$"===h?n:"#"===h&&/[boxX]/.test(A)?"0"+A.toLowerCase():"",y="$"===h?r:/[%p]/.test(A)?a:"",w=Ek[A],_=/[defgprs%]/.test(A);function x(e){var n,r,a,h=b,x=y;if("c"===A)x=w(e)+x,e="";else{e=+e;var E=e<0||1/e<0;if(e=isNaN(e)?l:w(Math.abs(e),m),v&&(e=wk(e)),E&&0===+e&&"+"!==d&&(E=!1),h=(E?"("===d?d:s:"-"===d||"("===d?"":d)+h,x=("s"===A?Ok[8+vk/3]:"")+x+(E&&"("===d?")":""),_){n=-1,r=e.length;while(++n<r)if(a=e.charCodeAt(n),48>a||a>57){x=(46===a?i+e.slice(n+1):e.slice(n))+x,e=e.slice(0,n);break}}}g&&!f&&(e=t(e,1/0));var S=h.length+e.length+x.length,C=S<p?new Array(p-S+1).join(c):"";switch(g&&f&&(e=t(C+e,C.length?p-x.length:1/0),C=""),u){case"<":e=h+e+x+C;break;case"=":e=h+C+e+x;break;case"^":e=C.slice(0,S=C.length>>1)+h+e+x+C.slice(S);break;default:e=C+h+e+x;break}return o(e)}return m=void 0===m?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),x.toString=function(){return e+""},x}function u(e,t){var n=c((e=bk(e),e.type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(pk(t)/3))),i=Math.pow(10,-r),o=Ok[8+r/3];return function(e){return n(i*e)+o}}return{format:c,formatPrefix:u}}function Ik(e){return Ck=Mk(e),Tk=Ck.format,Ck.formatPrefix,Ck}Ik({thousands:",",grouping:[3],currency:["$",""]});var Dk=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x=0,this.y=0,this.width=0,this.height=0,this.x=e,this.y=t,this.width=n,this.height=r}return Object.defineProperty(e.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e.prototype.toJSON=function(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.top,right:this.right,bottom:this.bottom,left:this.left}},e.prototype.isPointIn=function(e,t){return e>=this.left&&e<=this.right&&t>=this.top&&t<=this.bottom},e}();function Nk(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<e.length;o++){var a=e[o],s=a.x,l=a.y,c=a.width,u=a.height,d=br([s+c,l+u],2),h=d[0],f=d[1];s<t&&(t=s),l<n&&(n=l),h>r&&(r=h),f>i&&(i=f)}return new Dk(t,n,r-t,i-n)}var Rk=function(e,t,n){var r=e.width,i=e.height,o=n.flexDirection,a=void 0===o?"row":o,s=(n.flexWrap,n.justifyContent),l=void 0===s?"flex-start":s,c=(n.alignContent,n.alignItems),u=void 0===c?"flex-start":c,d="row"===a,h="row"===a||"column"===a,f=d?h?[1,0]:[-1,0]:h?[0,1]:[0,-1],p=br([0,0],2),g=p[0],m=p[1],v=t.map(function(e){var t,n=e.width,r=e.height,i=br([g,m],2),o=i[0],a=i[1];return t=br([g+n*f[0],m+r*f[1]],2),g=t[0],m=t[1],new Dk(o,a,n,r)}),A=Nk(v),b={"flex-start":0,"flex-end":d?r-A.width:i-A.height,center:d?(r-A.width)/2:(i-A.height)/2},y=v.map(function(e){var t=e.x,n=e.y,r=Dk.fromRect(e);return r.x=d?t+b[l]:t,r.y=d?n:n+b[l],r}),w=(Nk(y),function(e){var t=br(d?["height",i]:["width",r],2),n=t[0],o=t[1];switch(u){case"flex-start":return 0;case"flex-end":return o-e[n];case"center":return o/2-e[n]/2;default:return 0}}),_=y.map(function(e){var t=e.x,n=e.y,r=Dk.fromRect(e);return r.x=d?t:t+w(r),r.y=d?n+w(r):n,r}),x=_.map(function(t){var n,r,i=Dk.fromRect(t);return i.x+=null!==(n=e.x)&&void 0!==n?n:0,i.y+=null!==(r=e.y)&&void 0!==r?r:0,i});return x},Lk=function(e,t,n){return[]},Bk=function(e,t,n){if(0===t.length)return[];var r={flex:Rk,grid:Lk},i=n.display in r?r[n.display]:null;return(null===i||void 0===i?void 0:i.call(null,e,t,n))||[]},Pk=function(e){function t(t){var n=e.call(this,t)||this;n.layoutEvents=[yd.BOUNDS_CHANGED,yd.INSERTED,yd.REMOVED],n.$margin=nT(0),n.$padding=nT(0);var r=t.style||{},i=r.margin,o=void 0===i?0:i,a=r.padding,s=void 0===a?0:a;return n.margin=o,n.padding=s,n.isMutationObserved=!0,n.bindEvents(),n}return gr(t,e),Object.defineProperty(t.prototype,"margin",{get:function(){return this.$margin},set:function(e){this.$margin=nT(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"padding",{get:function(){return this.$padding},set:function(e){this.$padding=nT(e)},enumerable:!1,configurable:!0}),t.prototype.getBBox=function(){var e=this.attributes,t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,o=e.width,a=e.height,s=br(this.$margin,4),l=s[0],c=s[1],u=s[2],d=s[3];return new Dk(n-d,i-l,o+d+c,a+l+u)},t.prototype.appendChild=function(t,n){return t.isMutationObserved=!0,e.prototype.appendChild.call(this,t,n),t},t.prototype.getAvailableSpace=function(){var e=this.attributes,t=e.width,n=e.height,r=br(this.$padding,4),i=r[0],o=r[1],a=r[2],s=r[3],l=br(this.$margin,4),c=l[0],u=l[3];return new Dk(s+u,i+c,t-s-o,n-i-a)},t.prototype.layout=function(){if(this.attributes.display&&this.isConnected&&!this.children.some(function(e){return!e.isConnected}))try{var e=this.attributes,t=e.x,n=e.y;this.style.transform="translate(".concat(t,", ").concat(n,")");var r=Bk(this.getAvailableSpace(),this.children.map(function(e){return e.getBBox()}),this.attributes);this.children.forEach(function(e,t){var n=r[t],i=n.x,o=n.y;e.style.transform="translate(".concat(i,", ").concat(o,")")})}catch(c4){}},t.prototype.bindEvents=function(){var e=this;this.layoutEvents.forEach(function(t){e.addEventListener(t,function(t){t.target&&(t.target.isMutationObserved=!0,e.layout())})})},t.prototype.attributeChangedCallback=function(e,t,n){"margin"===e?this.margin=n:"padding"===e&&(this.padding=n),this.layout()},t}(_h),Fk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function $k(e){return class extends bh{constructor(t){super(t),this.descriptor=e}connectedCallback(){var e,t;null===(t=(e=this.descriptor).render)||void 0===t||t.call(e,this.attributes,this)}update(e={}){var t,n;this.attr(P({},this.attributes,e)),null===(n=(t=this.descriptor).render)||void 0===n||n.call(t,this.attributes,this)}}}function jk(e,t,n){return e.querySelector(t)?Pg(e).select(t):Pg(e).append(n)}function Hk(e){return Array.isArray(e)?e.join(", "):`${e||""}`}function Uk(e,t){const n={display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"};let{flexDirection:r,justifyContent:i,alignItems:o}=n;const a={top:["row","flex-start","center"],bottom:["row","flex-start","center"],left:["column","flex-start","center"],right:["column","flex-start","center"],center:["column","center","center"]};return e in a&&([r,i,o]=a[e]),Object.assign({display:"flex",flexDirection:r,justifyContent:i,alignItems:o},t)}class Qk extends Pk{get child(){var e;return null===(e=this.children)||void 0===e?void 0:e[0]}update(e){var t;this.attr(e);const{subOptions:n}=e;null===(t=this.child)||void 0===t||t.update(n)}}class zk extends Qk{update(e){var t;const{subOptions:n}=e;this.attr(e),null===(t=this.child)||void 0===t||t.update(n)}}function Wk(e,t){var n;return null===(n=e.filter(e=>e.getOptions().name===t))||void 0===n?void 0:n[0]}function Gk(e){return"horizontal"===e||0===e}function Vk(e){return"vertical"===e||e===-Math.PI/2}function Kk(e,t,n){const{bbox:r}=e,{position:i="top",size:o,length:a}=t,s=["top","bottom","center"].includes(i),[l,c]=s?[r.height,r.width]:[r.width,r.height],{defaultSize:u,defaultLength:d}=n.props,h=o||u||l,f=a||d||c,p=s?"horizontal":"vertical",[g,m]=s?[f,h]:[h,f];return{orientation:p,width:g,height:m,size:h,length:f}}function Yk(e){return e.find(e=>e.getOptions().domain.length>0).getOptions().domain}function qk(e){const t=["arrow","crosshairs","grid","handle","handleLabel","indicator","label","line","tick","tip","title","trunc"],{style:n}=e,r=Fk(e,["style"]),i={};return Object.entries(r).forEach(([e,n])=>{t.includes(e)?i[`show${dk(e)}`]=n:i[e]=n}),Object.assign(Object.assign({},i),n)}var Xk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Jk(e,t){const{eulerAngles:n,origin:r}=t;r&&e.setOrigin(r),n&&e.rotate(n[0],n[1],n[2])}function Zk(e){const{innerWidth:t,innerHeight:n,depth:r}=e.getOptions();return[t,n,r]}function eO(e,t){const{width:n,height:r}=t.getOptions();return i=>{if(!Me(t))return i;const o="bottom"===e?[i,1]:[0,i],a=t.map(o);if("bottom"===e){const e=a[0],t=new bm({domain:[0,n],range:[0,1]});return t.map(e)}if("left"===e){const e=a[1],t=new bm({domain:[0,r],range:[0,1]});return t.map(e)}return i}}function tO(e,t,n){if(e.getTicks)return e.getTicks();if(!n)return t;const[r,i]=ym(t,e=>+e),{tickCount:o}=e.getOptions();return n(r,i,o)}function nO(e,t){if(Ce(t))return e=>e;const n=t.getOptions(),{innerWidth:r,innerHeight:i,insetTop:o,insetBottom:a,insetLeft:s,insetRight:l}=n,[c,u,d]="left"===e||"right"===e?[o,a,i]:[s,l,r],h=new bm({domain:[0,1],range:[c/d,1-u/d]});return e=>h.map(e)}function rO(e,t,n,r,i,o,a,s){var l;void 0===n&&void 0===o||e.update(Object.assign(Object.assign({},n&&{tickCount:n}),o&&{tickMethod:o}));const c=tO(e,t,o),u=i?c.filter(i):c,d=e=>e instanceof Date?String(e):"object"===typeof e&&e?e:String(e),h=r||(null===(l=e.getFormatter)||void 0===l?void 0:l.call(e))||d,f=nO(a,s),p=eO(a,s),g=e=>["top","bottom","center","outer"].includes(e),m=e=>["left","right"].includes(e);return Ce(s)||Se(s)?u.map((t,n,r)=>{var i,o;const l=(null===(i=e.getBandWidth)||void 0===i?void 0:i.call(e,t))/2||0,c=f(e.map(t)+l),u=Te(s)&&"center"===a||Se(s)&&(null===(o=e.getTicks)||void 0===o?void 0:o.call(e))&&g(a)||Se(s)&&m(a);return{value:u?1-c:c,label:d(h(Kg(t),n,r)),id:String(n)}}):u.map((t,n,r)=>{var i;const o=(null===(i=e.getBandWidth)||void 0===i?void 0:i.call(e,t))/2||0,s=p(f(e.map(t)+o)),l=m(a);return{value:l?1-s:s,label:d(h(Kg(t),n,r)),id:String(n)}})}function iO(e,t,n="xy"){const[r,i,o]=Zk(t);return"xy"===n?e.includes("bottom")||e.includes("top")?i:r:"xz"===n?e.includes("bottom")||e.includes("top")?o:r:e.includes("bottom")||e.includes("top")?i:o}function oO(e=[],t){if(e.length>0)return e;const{labelAutoRotate:n,labelAutoHide:r,labelAutoEllipsis:i,labelAutoWrap:o}=t,a=[],s=(e,t)=>{t&&a.push(Object.assign(Object.assign({},e),t))};return s({type:"rotate",optionalAngles:[0,15,30,45,60,90]},n),s({type:"ellipsis",minLength:20},i),s({type:"hide"},r),s({type:"wrap",wordWrapWidth:100,maxLines:3,recoveryWhenFail:!0},o),a}function aO(e,t,n,r,i){const{x:o,y:a,width:s,height:l}=t,c=[o+s/2,a+l/2],u=Math.min(s,l)/2,[d,h]=Be(i),[f,p]=Zk(i),g=Math.min(f,p)/2,m={center:c,radius:u,startAngle:d,endAngle:h,gridLength:(r-n)*g};if("inner"===e){const{insetLeft:e,insetTop:t}=i.getOptions();return Object.assign(Object.assign({},m),{center:[c[0]-e,c[1]-t],labelAlign:"perpendicular",labelDirection:"positive",tickDirection:"positive",gridDirection:"negative"})}return Object.assign(Object.assign({},m),{labelAlign:"parallel",labelDirection:"negative",tickDirection:"negative",gridDirection:"positive"})}function sO(e,t,n){return!Ne(t)&&!Oe(t)&&(void 0===e?!!n.getTicks:e)}function lO(e){const{depth:t}=e.getOptions();return t?{tickIsBillboard:!0,lineIsBillboard:!0,labelIsBillboard:!0,titleIsBillboard:!0,gridIsBillboard:!0}:{}}function cO(e,t,n,r,i){const{x:o,y:a,width:s,height:l}=n;if("bottom"===e)return{startPos:[o,a],endPos:[o+s,a]};if("left"===e)return{startPos:[o+s,a+l],endPos:[o+s,a]};if("right"===e)return{startPos:[o,a+l],endPos:[o,a]};if("top"===e)return{startPos:[o,a+l],endPos:[o+s,a+l]};if("center"===e){if("vertical"===t)return{startPos:[o,a],endPos:[o,a+l]};if("horizontal"===t)return{startPos:[o,a],endPos:[o+s,a]};if("number"===typeof t){const[e,n]=r.getCenter(),[c,u]=Le(r),[d,h]=Be(r),f=Math.min(s,l)/2,{insetLeft:p,insetTop:g}=r.getOptions(),m=c*f,v=u*f,[A,b]=[e+o-p,n+a-g],[y,w]=[Math.cos(t),Math.sin(t)],_=[A+v*y,b+v*w],x=[A+m*y,b+m*w],E=()=>{const{domain:e}=i.getOptions();return e.length},S=Ce(r)&&i?E():3;return{startPos:_,endPos:x,gridClosed:Math.abs(h-d-360)<1e-6,gridCenter:[A,b],gridControlAngles:new Array(S).fill(0).map((e,t,n)=>(h-d)/S*t)}}}return{}}const uO=e=>{const{order:t,size:n,position:r,orientation:i,labelFormatter:o,tickFilter:a,tickCount:s,tickMethod:l,tickLength:c,important:u={},style:d={},indexBBox:h,title:f,grid:p=!1}=e,g=Xk(e,["order","size","position","orientation","labelFormatter","tickFilter","tickCount","tickMethod","tickLength","important","style","indexBBox","title","grid"]);return({scales:[e],value:t,coordinate:n,theme:i})=>{const{bbox:d}=t,{domain:m}=e.getOptions(),v=rO(e,m,s,o,a,l,r,n),A=h?v.map((e,t)=>{const n=h.get(t);return n?n[0]!==e.label?e:Object.assign(Object.assign({},e),{bbox:n[1]}):e}):v,[b,y]=Le(n),w=aO(r,d,b,y,n),{axis:_,axisArc:x={}}=i,E=qk(P({},_,x,w,Object.assign(Object.assign(Object.assign({type:"arc",data:A,titleText:Hk(f),grid:p},void 0!==c?{tickLength:c}:null),g),u)));return new ik({style:ck(E,["transform"])})}};function dO(e,t,n,r,i,o){const a=n.axis,s=["top","right","bottom","left"].includes(i)?n[`axis${xg(i)}`]:n.axisLinear,l=e.getOptions().name,c=n[`axis${dk(l)}`]||{};return Object.assign({},a,s,c)}function hO(e,t,n,r,i,o){const a=dO(e,t,n,r,i,o);return"center"===i?Object.assign(Object.assign(Object.assign(Object.assign({},a),{labelDirection:"right"===r?"negative":"positive"}),"center"===r?{labelTransform:"translate(50%,0)"}:null),{tickDirection:"right"===r?"negative":"positive",labelSpacing:"center"===r?0:4,titleSpacing:Vk(o)?10:0,tick:"center"!==r&&void 0}):a}const fO=e=>{const{direction:t="left",important:n={},labelFormatter:r,order:i,orientation:o,actualPosition:a,position:s,size:l,style:c={},title:u,tickCount:d,tickFilter:h,tickMethod:f,tickLength:p,transform:g,indexBBox:m}=e,v=Xk(e,["direction","important","labelFormatter","order","orientation","actualPosition","position","size","style","title","tickCount","tickFilter","tickMethod","tickLength","transform","indexBBox"]);return({scales:i,value:A,coordinate:b,theme:y})=>{const{bbox:w}=A,[_]=i,{domain:x,xScale:E}=_.getOptions(),S=hO(_,b,y,t,s,o),C=Object.assign(Object.assign(Object.assign({},S),c),v),T=iO(a||s,b,e.plane),k=cO(s,o,w,b,E),O=lO(b),M=rO(_,x,d,r,h,f,s,b),I=m?M.map((e,t)=>{const n=m.get(t);return n?n[0]!==e.label?e:Object.assign(Object.assign({},e),{bbox:n[1]}):e}):M,D=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},C),{type:"linear",data:I,crossSize:l,titleText:Hk(u),labelOverlap:oO(g,C),grid:sO(C.grid,b,_),gridLength:T,line:!0,indexBBox:m}),void 0!==p?{tickLength:p}:null),C.line?null:{lineOpacity:0}),k),O),n),N=D.labelOverlap.find(e=>"hide"===e.type);return N&&(D.crossSize=!1),new ik({className:"axis",style:qk(D)})}},pO=e=>t=>{const{labelFormatter:n,labelFilter:r=()=>!0}=t;return i=>{var o;const{scales:[a]}=i,s=(null===(o=a.getTicks)||void 0===o?void 0:o.call(a))||a.getOptions().domain,l="string"===typeof n?Tk(n):n,c=(e,t,n)=>r(s[t],t,s),u=Object.assign(Object.assign({},t),{labelFormatter:l,labelFilter:c,scale:a});return e(u)(i)}},gO=pO(fO),mO=pO(uO);gO.props={defaultPosition:"center",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]},mO.props={defaultPosition:"outer",defaultOrientation:"vertical",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const vO=e=>(...t)=>{const n=gO(Object.assign({},{crossPadding:50},e))(...t);return Jk(n,e),n};vO.props=Object.assign(Object.assign({},gO.props),{defaultPosition:"bottom"});const AO=e=>(...t)=>{const n=gO(Object.assign({},{crossPadding:10},e))(...t);return Jk(n,e),n};AO.props=Object.assign(Object.assign({},gO.props),{defaultPosition:"left"});var bO=xS({text:"text"},"title");function yO(e,t){var n=e.attributes,r=n.position,i=n.spacing,o=n.inset,a=n.text,s=e.getBBox(),l=t.getBBox(),c=JT(r),u=br(nT(a?i:0),4),d=u[0],h=u[1],f=u[2],p=u[3],g=br(nT(o),4),m=g[0],v=g[1],A=g[2],b=g[3],y=br([p+h,d+f],2),w=y[0],_=y[1],x=br([b+v,m+A],2),E=x[0],S=x[1];if("l"===c[0])return new Dk(s.x,s.y,l.width+s.width+w+E,Math.max(l.height+S,s.height));if("t"===c[0])return new Dk(s.x,s.y,Math.max(l.width+E,s.width),l.height+s.height+_+S);var C=br([t.attributes.width||l.width,t.attributes.height||l.height],2),T=C[0],k=C[1];return new Dk(l.x,l.y,T+s.width+w+E,k+s.height+_+S)}function wO(e,t){var n=Object.entries(t).reduce(function(t,n){var r=br(n,2),i=r[0],o=r[1],a=e.node().attr(i);return a||(t[i]=o),t},{});e.styles(n)}function _O(e){var t,n,r,i,o=e,a=o.width,s=o.height,l=o.position,c=br([+a/2,+s/2],2),u=c[0],d=c[1],h=br([+u,+d,"center","middle"],4),f=h[0],p=h[1],g=h[2],m=h[3],v=JT(l);return v.includes("l")&&(t=br([0,"start"],2),f=t[0],g=t[1]),v.includes("r")&&(n=br([+a,"end"],2),f=n[0],g=n[1]),v.includes("t")&&(r=br([0,"top"],2),p=r[0],m=r[1]),v.includes("b")&&(i=br([+s,"bottom"],2),p=i[0],m=i[1]),{x:f,y:p,textAlign:g,textBaseline:m}}var xO=function(e){function t(t){return e.call(this,t,{text:"",width:0,height:0,fill:"#4a505a",fontWeight:"bold",fontSize:12,fontFamily:"sans-serif",inset:0,spacing:0,position:"top-left"})||this}return gr(t,e),t.prototype.getAvailableSpace=function(){var e=this,t=this.attributes,n=t.width,r=t.height,i=t.position,o=t.spacing,a=t.inset,s=e.querySelector(bO.text.class);if(!s)return new Dk(0,0,+n,+r);var l=s.getBBox(),c=l.width,u=l.height,d=br(nT(o),4),h=d[0],f=d[1],p=d[2],g=d[3],m=br([0,0,+n,+r],4),v=m[0],A=m[1],b=m[2],y=m[3],w=JT(i);if(w.includes("i"))return new Dk(v,A,b,y);w.forEach(function(e,t){var i,o,a,s;"t"===e&&(i=br(0===t?[u+p,+r-u-p]:[0,+r],2),A=i[0],y=i[1]),"r"===e&&(o=br([+n-c-g],1),b=o[0]),"b"===e&&(a=br([+r-u-h],1),y=a[0]),"l"===e&&(s=br(0===t?[c+f,+n-c-f]:[0,+n],2),v=s[0],b=s[1])});var _=br(nT(a),4),x=_[0],E=_[1],S=_[2],C=_[3],T=br([C+E,x+S],2),k=T[0],O=T[1];return new Dk(v+C,A+x,b-k,y-O)},t.prototype.getBBox=function(){return this.title?this.title.getBBox():new Dk(0,0,0,0)},t.prototype.render=function(e,t){var n=this,r=(e.width,e.height,e.position,e.spacing,vr(e,["width","height","position","spacing"])),i=br(zS(r),1),o=i[0],a=_O(e),s=a.x,l=a.y,c=a.textAlign,u=a.textBaseline;Ub(!!r.text,Yb(t),function(e){n.title=e.maybeAppendByClassName(bO.text,"text").styles(o).call(wO,{x:s,y:l,textAlign:c,textBaseline:u}).node()})},t}(Hb),EO=function(){},SO=function(e,t,n){var r=e,i=dr(t)?t.split("."):t;return i.forEach(function(e,t){t<i.length-1?(Oi(r[e])||(r[e]=lr(i[t+1])?[]:{}),r=r[e]):r[e]=n}),e};function CO(e,t){return e.reduce(function(e,n){return(e[n[t]]=e[n[t]]||[]).push(n),e},{})}function TO(e,t,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||e.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,t),s&&e.apply(i,o)}}var kO=TO;function OO(e){var t;return(null===(t=e[0])||void 0===t?void 0:t.map(function(t,n){return e.map(function(e){return e[n]})}))||[]}var MO=xS({prevBtnGroup:"prev-btn-group",prevBtn:"prev-btn",nextBtnGroup:"next-btn-group",nextBtn:"next-btn",pageInfoGroup:"page-info-group",pageInfo:"page-info",playWindow:"play-window",contentGroup:"content-group",controller:"controller",clipPath:"clip-path"},"navigator"),IO=function(e){function t(t){var n=e.call(this,t,{x:0,y:0,animate:{easing:"linear",duration:200,fill:"both"},buttonCursor:"pointer",buttonFill:"black",buttonD:vy(0,0,6),buttonSize:12,controllerPadding:5,controllerSpacing:5,formatter:function(e,t){return"".concat(e,"/").concat(t)},defaultPage:0,loop:!1,orientation:"horizontal",pageNumFill:"black",pageNumFontSize:12,pageNumTextAlign:"start",pageNumTextBaseline:"middle"})||this;return n.playState="idle",n.contentGroup=n.appendChild(new _h({class:MO.contentGroup.name})),n.playWindow=n.contentGroup.appendChild(new _h({class:MO.playWindow.name})),n.innerCurrPage=n.defaultPage,n}return gr(t,e),Object.defineProperty(t.prototype,"defaultPage",{get:function(){var e=this.attributes.defaultPage;return fr(e,0,Math.max(this.pageViews.length-1,0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageViews",{get:function(){return this.playWindow.children},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"controllerShape",{get:function(){return this.totalPages>1?{width:55,height:0}:{width:0,height:0}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageShape",{get:function(){var e=this.pageViews,t=br(OO(e.map(function(e){var t=e.getBBox(),n=t.width,r=t.height;return[n,r]})).map(function(e){return Math.max.apply(Math,yr([],br(e),!1))}),2),n=t[0],r=t[1],i=this.attributes,o=i.pageWidth,a=void 0===o?n:o,s=i.pageHeight,l=void 0===s?r:s;return{pageWidth:a,pageHeight:l}},enumerable:!1,configurable:!0}),t.prototype.getContainer=function(){return this.playWindow},Object.defineProperty(t.prototype,"totalPages",{get:function(){return this.pageViews.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currPage",{get:function(){return this.innerCurrPage},enumerable:!1,configurable:!0}),t.prototype.getBBox=function(){var t=e.prototype.getBBox.call(this),n=t.x,r=t.y,i=this.controllerShape,o=this.pageShape,a=o.pageWidth,s=o.pageHeight;return new Dk(n,r,a+i.width,s)},t.prototype.goTo=function(e){var t=this,n=this.attributes.animate,r=this,i=r.currPage,o=r.playState,a=r.playWindow,s=r.pageViews;if("idle"!==o||e<0||s.length<=0||e>=s.length)return null;s[i].setLocalPosition(0,0),this.prepareFollowingPage(e);var l=br(this.getFollowingPageDiff(e),2),c=l[0],u=l[1];this.playState="running";var d=AS(a,[{transform:"translate(0, 0)"},{transform:"translate(".concat(-c,", ").concat(-u,")")}],n);return gS(d,function(){t.innerCurrPage=e,t.playState="idle",t.setVisiblePages([e]),t.updatePageInfo()}),d},t.prototype.prev=function(){var e=this.attributes.loop,t=this.pageViews.length,n=this.currPage;if(!e&&n<=0)return null;var r=e?(n-1+t)%t:fr(n-1,0,t);return this.goTo(r)},t.prototype.next=function(){var e=this.attributes.loop,t=this.pageViews.length,n=this.currPage;if(!e&&n>=t-1)return null;var r=e?(n+1)%t:fr(n+1,0,t);return this.goTo(r)},t.prototype.renderClipPath=function(e){var t=this.pageShape,n=t.pageWidth,r=t.pageHeight;n&&r?(this.clipPath=e.maybeAppendByClassName(MO.clipPath,"rect").styles({width:n,height:r}),this.contentGroup.attr("clipPath",this.clipPath.node())):this.contentGroup.style.clipPath=void 0},t.prototype.setVisiblePages=function(e){this.playWindow.children.forEach(function(t,n){e.includes(n)?Ib(t):Db(t)})},t.prototype.adjustControllerLayout=function(){var e=this,t=e.prevBtnGroup,n=e.nextBtnGroup,r=e.pageInfoGroup,i=this.attributes,o=i.orientation,a=i.controllerPadding,s=r.getBBox(),l=s.width,c=(s.height,br("horizontal"===o?[-180,0]:[-90,90],2)),u=c[0],d=c[1];t.setLocalEulerAngles(u),n.setLocalEulerAngles(d);var h=t.getBBox(),f=h.width,p=h.height,g=n.getBBox(),m=g.width,v=g.height,A=Math.max(f,l,m),b="horizontal"===o?{offset:[[0,0],[f/2+a,0],[f+l+2*a,0]],textAlign:"start"}:{offset:[[A/2,-p-a],[A/2,0],[A/2,v+a]],textAlign:"center"},y=br(b.offset,3),w=br(y[0],2),_=w[0],x=w[1],E=br(y[1],2),S=E[0],C=E[1],T=br(y[2],2),k=T[0],O=T[1],M=b.textAlign,I=r.querySelector("text");I&&(I.style.textAlign=M),t.setLocalPosition(_,x),r.setLocalPosition(S,C),n.setLocalPosition(k,O)},t.prototype.updatePageInfo=function(){var e,t=this,n=t.currPage,r=t.pageViews,i=t.attributes.formatter;r.length<2||(null===(e=this.pageInfoGroup.querySelector(MO.pageInfo.class))||void 0===e||e.attr("text",i(n+1,r.length)),this.adjustControllerLayout())},t.prototype.getFollowingPageDiff=function(e){var t=this.currPage;if(t===e)return[0,0];var n=this.attributes.orientation,r=this.pageShape,i=r.pageWidth,o=r.pageHeight,a=e<t?-1:1;return"horizontal"===n?[a*i,0]:[0,a*o]},t.prototype.prepareFollowingPage=function(e){var t=this,n=t.currPage,r=t.pageViews;if(this.setVisiblePages([e,n]),e!==n){var i=br(this.getFollowingPageDiff(e),2),o=i[0],a=i[1];r[e].setLocalPosition(o,a)}},t.prototype.renderController=function(e){var t=this,n=this.attributes.controllerSpacing,r=this.pageShape,i=r.pageWidth,o=r.pageHeight,a=this.pageViews.length>=2,s=e.maybeAppendByClassName(MO.controller,"g");if(Nb(s.node(),a),a){var l=US(this.attributes,"button"),c=US(this.attributes,"pageNum"),u=br(zS(l),2),d=u[0],h=u[1],f=d.size,p=vr(d,["size"]),g=!s.select(MO.prevBtnGroup.class).node(),m=s.maybeAppendByClassName(MO.prevBtnGroup,"g").styles(h);this.prevBtnGroup=m.node();var v=m.maybeAppendByClassName(MO.prevBtn,"path"),A=s.maybeAppendByClassName(MO.nextBtnGroup,"g").styles(h);this.nextBtnGroup=A.node();var b=A.maybeAppendByClassName(MO.nextBtn,"path");[v,b].forEach(function(e){e.styles(mr(mr({},p),{transformOrigin:"center"})),fC(e.node(),f,!0)});var y=s.maybeAppendByClassName(MO.pageInfoGroup,"g");this.pageInfoGroup=y.node(),y.maybeAppendByClassName(MO.pageInfo,"text").styles(c),this.updatePageInfo(),s.node().setLocalPosition(i+n,o/2),g&&(this.prevBtnGroup.addEventListener("click",function(){t.prev()}),this.nextBtnGroup.addEventListener("click",function(){t.next()}))}},t.prototype.render=function(e,t){var n=e.x,r=void 0===n?0:n,i=e.y,o=void 0===i?0:i;this.attr("transform","translate(".concat(r,", ").concat(o,")"));var a=Yb(t);this.renderClipPath(a),this.renderController(a),this.setVisiblePages([this.defaultPage]),this.goTo(this.defaultPage)},t.prototype.bindEvents=function(){var e=this,t=kO(function(){return e.render(e.attributes,e)},50);this.playWindow.addEventListener(yd.INSERTED,t),this.playWindow.addEventListener(yd.REMOVED,t)},t}(Hb);function DO(e,t,n){var r=Math.round((e-n)/t);return n+r*t}function NO(e,t,n){var r=1.4,i=r*n;return[["M",e-n,t-i],["L",e+n,t-i],["L",e+n,t+i],["L",e-n,t+i],["Z"]]}var RO=1.4,LO=.4;function BO(e,t,n){var r=n,i=r*RO,o=r/2,a=r/6,s=e+i*LO;return[["M",e,t],["L",s,t+o],["L",e+i,t+o],["L",e+i,t-o],["L",s,t-o],["Z"],["M",s,t+a],["L",e+i-2,t+a],["M",s,t-a],["L",e+i-2,t-a]]}function PO(e,t,n){var r=n,i=r*RO,o=r/2,a=r/6,s=t+i*LO;return[["M",e,t],["L",e-o,s],["L",e-o,t+i],["L",e+o,t+i],["L",e+o,s],["Z"],["M",e-a,s],["L",e-a,t+i-2],["M",e+a,s],["L",e+a,t+i-2]]}wy.registerSymbol("hiddenHandle",NO),wy.registerSymbol("verticalHandle",BO),wy.registerSymbol("horizontalHandle",PO);var FO;function $O(e,t,n,r){var i;void 0===r&&(r=4);var o=br(e,2),a=o[0],s=o[1],l=br(t,2),c=l[0],u=l[1],d=br(n,2),h=d[0],f=d[1],p=br([c,u],2),g=p[0],m=p[1],v=m-g;return g>m&&(i=br([m,g],2),g=i[0],m=i[1]),v>s-a?[a,s]:g<a?h===a&&f===m?[a,m]:[a,v+a]:m>s?f===s&&h===g?[g,s]:[s-v,s]:[g,m]}function jO(e,t,n){return void 0===e&&(e="horizontal"),"horizontal"===e?t:n}function HO(e,t){for(var n in t)t.hasOwnProperty(n)&&"constructor"!==n&&void 0!==t[n]&&(e[n]=t[n])}function UO(e,t,n,r){return t&&HO(e,t),n&&HO(e,n),r&&HO(e,r),e}function QO(e){return e instanceof Element||e instanceof Document}var zO="component-poptip",WO={CONTAINER:"component-poptip",ARROW:"component-poptip-arrow",TEXT:"component-poptip-text"},GO=(FO={},FO[".".concat(WO.CONTAINER)]={visibility:"visible",position:"absolute","background-color":"rgba(0, 0, 0)","box-shadow":"0px 0px 10px #aeaeae","border-radius":"3px",color:"#fff",opacity:.8,"font-size":"12px",padding:"4px 6px",display:"flex","justify-content":"center","align-items":"center","z-index":8,transition:"visibility 50ms"},FO[".".concat(WO.TEXT)]={"text-align":"center"},FO[".".concat(WO.CONTAINER,"[data-position='top']")]={transform:"translate(-50%, -100%)"},FO[".".concat(WO.CONTAINER,"[data-position='left']")]={transform:"translate(-100%, -50%)"},FO[".".concat(WO.CONTAINER,"[data-position='right']")]={transform:"translate(0, -50%)"},FO[".".concat(WO.CONTAINER,"[data-position='bottom']")]={transform:"translate(-50%, 0)"},FO[".".concat(WO.CONTAINER,"[data-position='top-left']")]={transform:"translate(0,-100%)"},FO[".".concat(WO.CONTAINER,"[data-position='top-right']")]={transform:"translate(-100%,-100%)"},FO[".".concat(WO.CONTAINER,"[data-position='left-top']")]={transform:"translate(-100%, 0)"},FO[".".concat(WO.CONTAINER,"[data-position='left-bottom']")]={transform:"translate(-100%, -100%)"},FO[".".concat(WO.CONTAINER,"[data-position='right-top']")]={transform:"translate(0, 0)"},FO[".".concat(WO.CONTAINER,"[data-position='right-bottom']")]={transform:"translate(0, -100%)"},FO[".".concat(WO.CONTAINER,"[data-position='bottom-left']")]={transform:"translate(0, 0)"},FO[".".concat(WO.CONTAINER,"[data-position='bottom-right']")]={transform:"translate(-100%, 0)"},FO[".".concat(WO.ARROW)]={width:"4px",height:"4px",transform:"rotate(45deg)","background-color":"rgba(0, 0, 0)",position:"absolute","z-index":-1},FO[".".concat(WO.CONTAINER,"[data-position='top']")]={transform:"translate(-50%, calc(-100% - 5px))"},FO["[data-position='top'] .".concat(WO.ARROW)]={bottom:"-2px"},FO[".".concat(WO.CONTAINER,"[data-position='left']")]={transform:"translate(calc(-100% - 5px), -50%)"},FO["[data-position='left'] .".concat(WO.ARROW)]={right:"-2px"},FO[".".concat(WO.CONTAINER,"[data-position='right']")]={transform:"translate(5px, -50%)"},FO["[data-position='right'] .".concat(WO.ARROW)]={left:"-2px"},FO[".".concat(WO.CONTAINER,"[data-position='bottom']")]={transform:"translate(-50%, 5px)"},FO["[data-position='bottom'] .".concat(WO.ARROW)]={top:"-2px"},FO[".".concat(WO.CONTAINER,"[data-position='top-left']")]={transform:"translate(0, calc(-100% - 5px))"},FO["[data-position='top-left'] .".concat(WO.ARROW)]={left:"10px",bottom:"-2px"},FO[".".concat(WO.CONTAINER,"[data-position='top-right']")]={transform:"translate(-100%, calc(-100% - 5px))"},FO["[data-position='top-right'] .".concat(WO.ARROW)]={right:"10px",bottom:"-2px"},FO[".".concat(WO.CONTAINER,"[data-position='left-top']")]={transform:"translate(calc(-100% - 5px), 0)"},FO["[data-position='left-top'] .".concat(WO.ARROW)]={right:"-2px",top:"8px"},FO[".".concat(WO.CONTAINER,"[data-position='left-bottom']")]={transform:"translate(calc(-100% - 5px), -100%)"},FO["[data-position='left-bottom'] .".concat(WO.ARROW)]={right:"-2px",bottom:"8px"},FO[".".concat(WO.CONTAINER,"[data-position='right-top']")]={transform:"translate(5px, 0)"},FO["[data-position='right-top'] .".concat(WO.ARROW)]={left:"-2px",top:"8px"},FO[".".concat(WO.CONTAINER,"[data-position='right-bottom']")]={transform:"translate(5px, -100%)"},FO["[data-position='right-bottom'] .".concat(WO.ARROW)]={left:"-2px",bottom:"8px"},FO[".".concat(WO.CONTAINER,"[data-position='bottom-left']")]={transform:"translate(0, 5px)"},FO["[data-position='bottom-left'] .".concat(WO.ARROW)]={top:"-2px",left:"8px"},FO[".".concat(WO.CONTAINER,"[data-position='bottom-right']")]={transform:"translate(-100%, 5px)"},FO["[data-position='bottom-right'] .".concat(WO.ARROW)]={top:"-2px",right:"8px"},FO),VO=void 0;function KO(e,t,n,r,i,o){if(void 0===i&&(i=!1),void 0===o&&(o=!1),o)return[e,t];var a=n.getBoundingClientRect(),s=a.x,l=a.y,c=a.width,u=a.height;switch(r){case"top":return i?[s+c/2,l]:[e,l];case"left":return i?[s,l+u/2]:[s,t];case"bottom":return i?[s+c/2,l+u]:[e,l+u];case"right":return i?[s+c,l+u/2]:[s+c,t];case"top-right":case"right-top":return[s+c,l];case"left-bottom":case"bottom-left":return[s,l+u];case"right-bottom":case"bottom-right":return[s+c,l+u];case"top-left":case"left-top":default:return[s,l]}}var YO=function(e){var t;return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t||(t=e.apply(VO,n)),t}};function qO(e){var t=e&&document.getElementById(e);return t||(t=document.createElement("div"),t.setAttribute("id",e),document.body.appendChild(t)),t}function XO(e){var t=YO(qO)(e);return t}var JO=function(e){function t(n){var r=e.call(this,P({style:{id:zO}},t.defaultOptions,n))||this;return r.visibility="visible",r.map=new Map,r.domStyles="",r.initShape(),r.render(r.attributes,r),r}return gr(t,e),Object.defineProperty(t.prototype,"visible",{get:function(){return"visible"===this.visibility},enumerable:!1,configurable:!0}),t.prototype.render=function(e,t){this.visibility=this.style.visibility,this.updatePoptipElement()},t.prototype.update=function(e){this.attr(P({},this.style,e)),this.render(this.attributes,this)},t.prototype.bind=function(e,t){var n=this;if(e){var r=this.style.text,i=function(i){var o=e,a=n.style,s=r;if(t){var l="function"===typeof t?t.call(null,i):t,c=l.html,u=l.target,d=vr(l,["html","target"]);a=UO({},n.style,d),(u||!1===u)&&(o=u),"string"===typeof c&&(s=c)}var h=a.position,f=a.arrowPointAtCenter,p=a.follow,g=a.offset;if(o){var m=i,v=m.clientX,A=m.clientY,b=br(KO(v,A,o,h,f,p),2),y=b[0],w=b[1];n.showTip(y,w,{text:s,position:h,offset:g})}else n.hideTip()},o=function(){n.hideTip()};e.addEventListener("mousemove",i),e.addEventListener("mouseleave",o),this.map.set(e,[i,o])}},t.prototype.unbind=function(e){if(this.map.has(e)){var t=br(this.map.get(e)||[],2),n=t[0],r=t[1];n&&e.removeEventListener("mousemove",n),r&&e.removeEventListener("mouseleave",r),this.map.delete(e)}},t.prototype.clear=function(){this.container.innerHTML=""},t.prototype.destroy=function(){var t,n=this;yr([],br(this.map.keys()),!1).forEach(function(e){return n.unbind(e)}),null===(t=this.container)||void 0===t||t.remove(),e.prototype.destroy.call(this)},t.prototype.showTip=function(e,t,n){var r=oC(n,"text");if((!r||"string"===typeof r)&&(this.applyStyles(),e&&t&&n)){var i=n.offset,o=n.position;if(o&&this.container.setAttribute("data-position",o),this.setOffsetPosition(e,t,i),"string"===typeof r){var a=this.container.querySelector(".".concat(WO.TEXT));a&&(a.innerHTML=r)}this.visibility="visible",this.container.style.visibility="visible"}},t.prototype.hideTip=function(){this.visibility="hidden",this.container.style.visibility="hidden"},t.prototype.getContainer=function(){return this.container},t.prototype.getClassName=function(){var e=this.style.containerClassName;return"".concat(WO.CONTAINER).concat(e?" ".concat(e):"")},t.prototype.initShape=function(){var e=this,t=this.style.id;this.container=XO(t),this.container.className=this.getClassName(),this.container.addEventListener("mousemove",function(){return e.showTip()}),this.container.addEventListener("mouseleave",function(){return e.hideTip()})},t.prototype.updatePoptipElement=function(){var e=this.container;this.clear();var t=this.style,n=t.id,r=t.template,i=t.text;this.container.setAttribute("id",n),this.container.className=this.getClassName();var o='<span class="'.concat(WO.ARROW,'"></span>');e.innerHTML=o,dr(r)?e.innerHTML+=r:r&&QO(r)&&e.appendChild(r),i&&(e.getElementsByClassName(WO.TEXT)[0].textContent=i),this.applyStyles(),this.container.style.visibility=this.visibility},t.prototype.applyStyles=function(){var e=Bb({},GO,this.style.domStyles),t=Object.entries(e).reduce(function(e,t){var n=br(t,2),r=n[0],i=n[1],o=Object.entries(i).reduce(function(e,t){var n=br(t,2),r=n[0],i=n[1];return"".concat(e).concat(r,": ").concat(i,";")},"");return"".concat(e).concat(r,"{").concat(o,"}")},"");if(this.domStyles!==t){this.domStyles=t;var n=this.container.querySelector("style");n&&this.container.removeChild(n),n=document.createElement("style"),n.innerHTML=t,this.container.appendChild(n)}},t.prototype.setOffsetPosition=function(e,t,n){void 0===n&&(n=this.style.offset);var r=br(n,2),i=r[0],o=void 0===i?0:i,a=r[1],s=void 0===a?0:a;this.container.style.left="".concat(e+o,"px"),this.container.style.top="".concat(t+s,"px")},t.tag="poptip",t.defaultOptions={style:{x:0,y:0,width:0,height:0,target:null,visibility:"hidden",text:"",position:"top",follow:!1,offset:[0,0],domStyles:GO,template:'<div class="'.concat(WO.TEXT,'"></div>')}},t}(Hb),ZO=xS({layout:"flex",markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label",valueGroup:"value-group",focusGroup:"focus-group",focus:"focus",value:"value",backgroundGroup:"background-group",background:"background"},"legend-category-item"),eM={offset:[0,20],domStyles:{".component-poptip":{opacity:"1",padding:"8px 12px",background:"#fff",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"},".component-poptip-arrow":{display:"none"},".component-poptip-text":{color:"#000",lineHeight:"20px"}}};function tM(e){var t=e.querySelector(ZO.marker.class);return t?t.style:{}}var nM=function(e){function t(t){return e.call(this,t,{span:[1,1],marker:function(){return new vh({style:{r:6}})},markerSize:10,labelFill:"#646464",valueFill:"#646464",labelFontSize:12,valueFontSize:12,labelTextBaseline:"middle",valueTextBaseline:"middle"})||this}return gr(t,e),Object.defineProperty(t.prototype,"showValue",{get:function(){var e=this.attributes.valueText;return!!e&&("string"===typeof e||"number"===typeof e?""!==e:"function"===typeof e||""!==e.attr("text"))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actualSpace",{get:function(){var e=this.labelGroup,t=this.valueGroup,n=this.attributes,r=n.markerSize,i=n.focus,o=n.focusMarkerSize,a=e.node().getBBox(),s=a.width,l=a.height,c=t.node().getBBox(),u=c.width,d=c.height,h=i?null!==o&&void 0!==o?o:12:0;return{markerWidth:r,labelWidth:s,valueWidth:u,focusWidth:h,height:Math.max(r,l,d)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"span",{get:function(){var e=this.attributes.span;if(!e)return[1,1];var t=br(nT(e),2),n=t[0],r=t[1],i=this.showValue?r:0,o=n+i;return[n/o,i/o]},enumerable:!1,configurable:!0}),t.prototype.setAttribute=function(t,n){e.prototype.setAttribute.call(this,t,n)},Object.defineProperty(t.prototype,"shape",{get:function(){var e,t=this.attributes,n=t.markerSize,r=t.width,i=this.actualSpace,o=i.markerWidth,a=i.focusWidth,s=i.height,l=this.actualSpace,c=l.labelWidth,u=l.valueWidth,d=br(this.spacing,3),h=d[0],f=d[1],p=d[2];if(r){var g=r-n-h-f-a-p,m=br(this.span,2),v=m[0],A=m[1];e=br([v*g,A*g],2),c=e[0],u=e[1]}var b=o+c+u+h+f+a+p;return{width:b,height:s,markerWidth:o,labelWidth:c,valueWidth:u,focusWidth:a}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"spacing",{get:function(){var e=this.attributes,t=e.spacing,n=e.focus;if(!t)return[0,0,0];var r=br(nT(t),3),i=r[0],o=r[1],a=r[2];return[i,this.showValue?o:0,n?a:0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layout",{get:function(){var e=this.shape,t=e.markerWidth,n=e.labelWidth,r=e.valueWidth,i=e.focusWidth,o=e.width,a=e.height,s=br(this.spacing,3),l=s[0],c=s[1],u=s[2];return{height:a,width:o,markerWidth:t,labelWidth:n,valueWidth:r,focusWidth:i,position:[t/2,t+l,t+n+l+c,t+n+r+l+c+u+i/2]}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scaleSize",{get:function(){var e=tM(this.markerGroup.node()),t=this.attributes,n=t.markerSize,r=t.markerStrokeWidth,i=void 0===r?e.strokeWidth:r,o=t.markerLineWidth,a=void 0===o?e.lineWidth:o,s=t.markerStroke,l=void 0===s?e.stroke:s,c=+(i||a||(l?1:0))*Math.sqrt(2),u=this.markerGroup.node().getBBox(),d=u.width,h=u.height;return(1-c/Math.max(d,h))*n},enumerable:!1,configurable:!0}),t.prototype.renderMarker=function(e){var t=this,n=this.attributes.marker,r=US(this.attributes,"marker");this.markerGroup=e.maybeAppendByClassName(ZO.markerGroup,"g").style("zIndex",0),Ub(!!n,this.markerGroup,function(){var e,i=t.markerGroup.node(),o=null===(e=i.childNodes)||void 0===e?void 0:e[0],a="string"===typeof n?new wy({style:{symbol:n},className:ZO.marker.name}):n();o?a.nodeName===o.nodeName?o instanceof wy?o.update(mr(mr({},r),{symbol:n})):(wT(o,a),Yb(o).styles(r)):(o.remove(),Yb(a).attr("className",ZO.marker.name).styles(r),i.appendChild(a)):(a instanceof wy||Yb(a).attr("className",ZO.marker.name).styles(r),i.appendChild(a)),t.markerGroup.node().scale(1/t.markerGroup.node().getScale()[0]);var s=fC(t.markerGroup.node(),t.scaleSize,!0);t.markerGroup.node().style._transform="scale(".concat(s,")")})},t.prototype.renderLabel=function(e){var t=US(this.attributes,"label"),n=t.text,r=vr(t,["text"]);this.labelGroup=e.maybeAppendByClassName(ZO.labelGroup,"g").style("zIndex",0),this.labelGroup.maybeAppendByClassName(ZO.label,function(){return dC(n)}).styles(r)},t.prototype.renderValue=function(e){var t=this,n=US(this.attributes,"value"),r=n.text,i=vr(n,["text"]);this.valueGroup=e.maybeAppendByClassName(ZO.valueGroup,"g").style("zIndex",0),Ub(this.showValue,this.valueGroup,function(){t.valueGroup.maybeAppendByClassName(ZO.value,function(){return dC(r)}).styles(i)})},t.prototype.createPoptip=function(){var e=this.attributes.poptip,t=e||{},n=(t.render,vr(t,["render"])),r=new JO({style:Bb(eM,n)});return this.poptipGroup=r,r},t.prototype.bindPoptip=function(e){var t=this,n=this.attributes.poptip;if(n){var r=this.poptipGroup||this.createPoptip();r.bind(e,function(){var e=t.attributes,r=e.labelText,i=e.valueText,o=e.markerFill,a="string"===typeof r?r:null===r||void 0===r?void 0:r.attr("text"),s="string"===typeof i?i:null===i||void 0===i?void 0:i.attr("text");if("function"===typeof n.render)return{html:n.render({label:a,value:s,color:o})};var l="";return"string"!==typeof a&&"number"!==typeof a||(l+='<div class="component-poptip-label">'.concat(a,"</div>")),"string"!==typeof s&&"number"!==typeof s||(l+='<div class="component-poptip-value">'.concat(s,"</div>")),{html:l}})}},t.prototype.renderFocus=function(e){var t=this,n=this.attributes,r=n.focus,i=n.focusMarkerSize,o={x:0,y:0,size:i,opacity:.6,symbol:"focus",stroke:"#aaaaaa",lineWidth:1};Si(r)||(this.focusGroup=e.maybeAppendByClassName(ZO.focusGroup,"g").style("zIndex",0),Ub(r,this.focusGroup,function(){var n=new wy({style:mr(mr({},o),{symbol:"focus"})}),r=new vh({style:{r:o.size/2,fill:"transparent"}}),i=t.focusGroup.node();i.appendChild(r),i.appendChild(n),n.update({opacity:0}),e.node().addEventListener("pointerenter",function(){n.update({opacity:1})}),e.node().addEventListener("pointerleave",function(){n.update({opacity:0})})}))},t.prototype.renderPoptip=function(e){var t=this,n=this.attributes.poptip;if(n){var r=e.maybeAppendByClassName(ZO.value,"g").node(),i=e.maybeAppendByClassName(ZO.label,"g").node();[r,i].forEach(function(e){e&&t.bindPoptip(e)})}},t.prototype.renderBackground=function(e){var t=this.shape,n=t.width,r=t.height,i=US(this.attributes,"background");this.background=e.maybeAppendByClassName(ZO.backgroundGroup,"g").style("zIndex",-1),this.background.maybeAppendByClassName(ZO.background,"rect").styles(mr({width:n,height:r},i))},t.prototype.adjustLayout=function(){var e=this.layout,t=e.labelWidth,n=e.valueWidth,r=e.height,i=br(e.position,4),o=i[0],a=i[1],s=i[2],l=i[3],c=r/2;this.markerGroup.styles({transform:"translate(".concat(o,", ").concat(c,")").concat(this.markerGroup.node().style._transform)}),this.labelGroup.styles({transform:"translate(".concat(a,", ").concat(c,")")}),this.focusGroup&&this.focusGroup.styles({transform:"translate(".concat(l,", ").concat(c,")")}),JC(this.labelGroup.select(ZO.label.class).node(),Math.ceil(t)),this.showValue&&(this.valueGroup.styles({transform:"translate(".concat(s,", ").concat(c,")")}),JC(this.valueGroup.select(ZO.value.class).node(),Math.ceil(n)))},t.prototype.render=function(e,t){var n=Yb(t),r=e.x,i=void 0===r?0:r,o=e.y,a=void 0===o?0:o;n.styles({transform:"translate(".concat(i,", ").concat(a,")")}),this.renderMarker(n),this.renderLabel(n),this.renderValue(n),this.renderBackground(n),this.renderPoptip(n),this.renderFocus(n),this.adjustLayout()},t}(Hb),rM=xS({page:"item-page",navigator:"navigator",item:"item"},"items"),iM=function(e,t,n){return void 0===n&&(n=!0),e?t(e):n},oM=function(e){function t(t){var n=e.call(this,t,{data:[],gridRow:1/0,gridCol:void 0,padding:0,width:1e3,height:100,rowPadding:0,colPadding:0,layout:"flex",orientation:"horizontal",click:EO,mouseenter:EO,mouseleave:EO})||this;return n.navigatorShape=[0,0],n}return gr(t,e),Object.defineProperty(t.prototype,"pageViews",{get:function(){return this.navigator.getContainer()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"grid",{get:function(){var e=this.attributes,t=e.gridRow,n=e.gridCol,r=e.data;if(!t&&!n)throw new Error("gridRow and gridCol can not be set null at the same time");return t&&n?[t,n]:t?[t,r.length]:[r.length,n]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderData",{get:function(){var e=this.attributes,t=e.data,n=e.layout,r=e.poptip,i=e.focus,o=e.focusMarkerSize,a=US(this.attributes,"item"),s=t.map(function(e,s){var l=e.id,c=void 0===l?s:l,u=e.label,d=e.value;return{id:"".concat(c),index:s,style:mr({layout:n,labelText:u,valueText:d,poptip:r,focus:i,focusMarkerSize:o},Object.fromEntries(Object.entries(a).map(function(n){var r=br(n,2),i=r[0],o=r[1];return[i,WS(o,[e,s,t])]})))}});return s},enumerable:!1,configurable:!0}),t.prototype.getGridLayout=function(){var e=this,t=this.attributes,n=t.orientation,r=t.width,i=t.rowPadding,o=t.colPadding,a=br(this.navigatorShape,1),s=a[0],l=br(this.grid,2),c=l[0],u=l[1],d=u*c,h=0;return this.pageViews.children.map(function(t,a){var l,f,p=Math.floor(a/d),g=a%d,m=e.ifHorizontal(u,c),v=[Math.floor(g/m),g%m];"vertical"===n&&v.reverse();var A=br(v,2),b=A[0],y=A[1],w=(r-s-(u-1)*o)/u,_=t.getBBox().height,x=br([0,0],2),E=x[0],S=x[1];return"horizontal"===n?(l=br([h,b*(_+i)],2),E=l[0],S=l[1],h=y===u-1?0:h+w+o):(f=br([y*(w+o),h],2),E=f[0],S=f[1],h=b===c-1?0:h+_+i),{page:p,index:a,row:b,col:y,pageIndex:g,width:w,height:_,x:E,y:S}})},t.prototype.getFlexLayout=function(){var e=this.attributes,t=e.width,n=e.height,r=e.rowPadding,i=e.colPadding,o=br(this.navigatorShape,1),a=o[0],s=br(this.grid,2),l=s[0],c=s[1],u=br([t-a,n],2),d=u[0],h=u[1],f=br([0,0,0,0,0,0,0,0],8),p=f[0],g=f[1],m=f[2],v=f[3],A=f[4],b=f[5],y=f[6],w=f[7];return this.pageViews.children.map(function(e,t){var n,o,a,s,u=e.getBBox(),f=u.width,_=u.height,x=0===y?0:i,E=y+x+f;if(E<=d&&iM(A,function(e){return e<c}))return n=br([y+x,w,E],3),p=n[0],g=n[1],y=n[2],{width:f,height:_,x:p,y:g,page:m,index:t,pageIndex:v++,row:b,col:A++};o=br([b+1,0,0,w+_+r],4),b=o[0],A=o[1],y=o[2],w=o[3];var S=w+_;return S<=h&&iM(b,function(e){return e<l})?(a=br([y,w,f],3),p=a[0],g=a[1],y=a[2],{width:f,height:_,x:p,y:g,page:m,index:t,pageIndex:v++,row:b,col:A++}):(s=br([0,0,f,0,m+1,0,0,0],8),p=s[0],g=s[1],y=s[2],w=s[3],m=s[4],v=s[5],b=s[6],A=s[7],{width:f,height:_,x:p,y:g,page:m,index:t,pageIndex:v++,row:b,col:A++})})},Object.defineProperty(t.prototype,"itemsLayout",{get:function(){this.navigatorShape=[0,0];var e="grid"===this.attributes.layout?this.getGridLayout:this.getFlexLayout,t=e.call(this);return t.slice(-1)[0].page>0?(this.navigatorShape=[55,0],e.call(this)):t},enumerable:!1,configurable:!0}),t.prototype.ifHorizontal=function(e,t){var n=this.attributes.orientation;return jO(n,e,t)},t.prototype.flattenPage=function(e){e.querySelectorAll(rM.item.class).forEach(function(t){e.appendChild(t)}),e.querySelectorAll(rM.page.class).forEach(function(t){var n=e.removeChild(t);n.destroy()})},t.prototype.renderItems=function(e){var t=this.attributes,n=t.click,r=t.mouseenter,i=t.mouseleave;this.flattenPage(e);var o=this.dispatchCustomEvent.bind(this);Yb(e).selectAll(rM.item.class).data(this.renderData,function(e){return e.id}).join(function(e){return e.append(function(e){var t=e.style;return new nM({style:t})}).attr("className",rM.item.name).on("click",function(){null===n||void 0===n||n(this),o("itemClick",{item:this})}).on("pointerenter",function(){null===r||void 0===r||r(this),o("itemMouseenter",{item:this})}).on("pointerleave",function(){null===i||void 0===i||i(this),o("itemMouseleave",{item:this})})},function(e){return e.each(function(e){var t=e.style;this.update(t)})},function(e){return e.remove()})},t.prototype.relayoutNavigator=function(){var e,t=this.attributes,n=t.layout,r=t.width,i=(null===(e=this.pageViews.children[0])||void 0===e?void 0:e.getBBox().height)||0,o=br(this.navigatorShape,2),a=o[0],s=o[1];this.navigator.update("grid"===n?{pageWidth:r-a,pageHeight:i-s}:{})},t.prototype.adjustLayout=function(){var e=this,t=Object.entries(CO(this.itemsLayout,"page")).map(function(e){var t=br(e,2),n=t[0],r=t[1];return{page:n,layouts:r}}),n=yr([],br(this.navigator.getContainer().children),!1);t.forEach(function(t){var r=t.layouts,i=e.pageViews.appendChild(new _h({className:rM.page.name}));r.forEach(function(e){var t=e.x,r=e.y,o=e.index,a=e.width,s=e.height,l=n[o];i.appendChild(l),SO(l,"__layout__",e),l.update({x:t,y:r,width:a,height:s})})}),this.relayoutNavigator()},t.prototype.renderNavigator=function(e){var t=this.attributes.orientation,n=US(this.attributes,"nav"),r=Bb({orientation:t},n),i=this;return e.selectAll(rM.navigator.class).data(["nav"]).join(function(e){return e.append(function(){return new IO({style:r})}).attr("className",rM.navigator.name).each(function(){i.navigator=this})},function(e){return e.each(function(){this.update(r)})},function(e){return e.remove()}),this.navigator},t.prototype.getBBox=function(){return this.navigator.getBBox()},t.prototype.render=function(e,t){var n=this.attributes.data;if(n&&0!==n.length){var r=this.renderNavigator(Yb(t));this.renderItems(r.getContainer()),this.adjustLayout()}},t.prototype.dispatchCustomEvent=function(e,t){var n=new ud(e,{detail:t});this.dispatchEvent(n)},t}(Hb),aM=xS({markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label"},"handle"),sM={showLabel:!0,formatter:function(e){return e.toString()},markerSize:25,markerStroke:"#c5c5c5",markerFill:"#fff",markerLineWidth:1,labelFontSize:12,labelFill:"#c5c5c5",labelText:"",orientation:"vertical",spacing:0},lM=function(e){function t(t){return e.call(this,t,sM)||this}return gr(t,e),t.prototype.render=function(e,t){var n=Yb(t).maybeAppendByClassName(aM.markerGroup,"g");this.renderMarker(n);var r=Yb(t).maybeAppendByClassName(aM.labelGroup,"g");this.renderLabel(r)},t.prototype.renderMarker=function(e){var t=this,n=this.attributes,r=n.orientation,i=n.markerSymbol,o=void 0===i?jO(r,"horizontalHandle","verticalHandle"):i;Ub(!!o,e,function(e){var n=US(t.attributes,"marker"),r=mr({symbol:o},n);t.marker=e.maybeAppendByClassName(aM.marker,function(){return new wy({style:r})}).update(r)})},t.prototype.renderLabel=function(e){var t=this,n=this.attributes,r=n.showLabel,i=n.orientation,o=n.spacing,a=void 0===o?0:o,s=n.formatter;Ub(r,e,function(e){var n,r=US(t.attributes,"label"),o=r.text,l=vr(r,["text"]),c=(null===(n=e.select(aM.marker.class))||void 0===n?void 0:n.node().getBBox())||{},u=c.width,d=void 0===u?0:u,h=c.height,f=void 0===h?0:h,p=br(jO(i,[0,f+a,"center","top"],[d+a,0,"start","middle"]),4),g=p[0],m=p[1],v=p[2],A=p[3];e.maybeAppendByClassName(aM.label,"text").styles(mr(mr({},l),{x:g,y:m,text:s(o).toString(),textAlign:v,textBaseline:A}))})},t}(Hb),cM={showTitle:!0,padding:0,orientation:"horizontal",backgroundFill:"transparent",titleText:"",titleSpacing:4,titlePosition:"top-left",titleFill:"#2C3542",titleFontWeight:"bold",titleFontFamily:"sans-serif",titleFontSize:12},uM=Bb({},cM,{}),dM=Bb({},cM,QS(sM,"handle"),{color:["#d0e3fa","#acc7f6","#8daaf2","#6d8eea","#4d73cd","#325bb1","#5a3e75","#8c3c79","#e23455","#e7655b"],indicatorBackgroundFill:"#262626",indicatorLabelFill:"white",indicatorLabelFontSize:12,indicatorVisibility:"hidden",labelAlign:"value",labelDirection:"positive",labelSpacing:5,showHandle:!0,showIndicator:!0,showLabel:!0,slidable:!0,titleText:"",type:"continuous"}),hM=.01,fM=xS({title:"title",titleGroup:"title-group",items:"items",itemsGroup:"items-group",contentGroup:"content-group",ribbonGroup:"ribbon-group",ribbon:"ribbon",handlesGroup:"handles-group",handle:"handle",startHandle:"start-handle",endHandle:"end-handle",labelGroup:"label-group",label:"label",indicator:"indicator"},"legend"),pM=function(e){function t(t){return e.call(this,t,uM)||this}return gr(t,e),t.prototype.renderTitle=function(e,t,n){var r=this.attributes,i=r.showTitle,o=r.titleText,a=US(this.attributes,"title"),s=br(zS(a),2),l=s[0],c=s[1];this.titleGroup=e.maybeAppendByClassName(fM.titleGroup,"g").styles(c);var u=mr(mr({width:t,height:n},l),{text:i?o:""});this.title=this.titleGroup.maybeAppendByClassName(fM.title,function(){return new xO({style:u})}).update(u)},t.prototype.renderItems=function(e,t){var n=t.x,r=t.y,i=t.width,o=t.height,a=US(this.attributes,"title",!0),s=br(zS(a),2),l=s[0],c=s[1],u=mr(mr({},l),{width:i,height:o,x:0,y:0});this.itemsGroup=e.maybeAppendByClassName(fM.itemsGroup,"g").styles(mr(mr({},c),{transform:"translate(".concat(n,", ").concat(r,")")}));var d=this;this.itemsGroup.selectAll(fM.items.class).data(["items"]).join(function(e){return e.append(function(){return new oM({style:u})}).attr("className",fM.items.name).each(function(){d.items=Yb(this)})},function(e){return e.update(u)},function(e){return e.remove()})},t.prototype.adjustLayout=function(){var e=this.attributes.showTitle;if(e){var t=this.title.node().getAvailableSpace(),n=t.x,r=t.y;this.itemsGroup.node().style.transform="translate(".concat(n,", ").concat(r,")")}},Object.defineProperty(t.prototype,"availableSpace",{get:function(){var e=this.attributes,t=e.showTitle,n=e.width,r=e.height;return t?this.title.node().getAvailableSpace():new Dk(0,0,n,r)},enumerable:!1,configurable:!0}),t.prototype.getBBox=function(){var t,n,r=null===(t=this.title)||void 0===t?void 0:t.node(),i=null===(n=this.items)||void 0===n?void 0:n.node();return r&&i?yO(r,i):e.prototype.getBBox.call(this)},t.prototype.render=function(e,t){var n=this.attributes,r=n.width,i=n.height,o=n.x,a=void 0===o?0:o,s=n.y,l=void 0===s?0:s,c=Yb(t);t.style.transform="translate(".concat(a,", ").concat(l,")"),this.renderTitle(c,r,i),this.renderItems(c,this.availableSpace),this.adjustLayout()},t}(Hb),gM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function mM(e,t){const n=Wk(e,"shape"),r=Wk(e,"color"),i=n?n.clone():null,o=[];for(const[s,l]of t){const e=s.type,t=(null===r||void 0===r?void 0:r.getOptions().domain.length)>0?null===r||void 0===r?void 0:r.getOptions().domain:l.data,n=t.map((e,t)=>{var n;return i?i.map(e||"point"):(null===(n=null===s||void 0===s?void 0:s.style)||void 0===n?void 0:n.shape)||l.defaultShape||"point"});"string"===typeof e&&o.push([e,n])}if(0===o.length)return["point",["point"]];if(1===o.length)return o[0];if(!n)return o[0];const{range:a}=n.getOptions();return o.map(([e,t])=>{let n=0;for(let r=0;r<o.length;r++){const e=a[r%a.length];t[r]===e&&n++}return[n/t.length,[e,t]]}).sort((e,t)=>t[0]-e[0])[0][1]}function vM(e,t){const{scales:n,library:r,markState:i}=t,[o,a]=mM(n,i),{itemMarker:s,itemMarkerSize:l}=e,c=(e,t)=>{var n,i,a;const s=(null===(a=null===(i=null===(n=r[`mark.${o}`])||void 0===n?void 0:n.props)||void 0===i?void 0:i.shape[e])||void 0===a?void 0:a.props.defaultMarker)||Xg(e.split(".")),c="function"===typeof l?l(t):l;return()=>XA(s,{color:t.color})(0,0,c)},u=e=>`${a[e]}`,d=Wk(n,"shape");return d&&!s?(e,t)=>c(u(t),e):"function"===typeof s?(e,t)=>{const n=s(e.id,t);return"string"===typeof n?c(n,e):n}:(e,t)=>c(s||u(t),e)}function AM(e){const t=Wk(e,"opacity");if(t){const{range:e}=t.getOptions();return(t,n)=>e[n]}}function bM(e,t){const n=Wk(e,"size");return n instanceof gx?2*n.map(NaN):t}function yM(e,t){const{scales:n,markState:r}=t,[i,o]=mM(n,r),{itemMarker:a,itemMarkerLineWidth:s}=e;if(void 0!==s)return s;const l=["line","hyphen","dash","smooth","hv","hvh","vh","vhv"];if("string"===typeof a&&l.includes(a))return 4;if("function"===typeof a)return(e,t)=>{const n=a(e.id,t);if("string"===typeof n&&l.includes(n))return 4};const c=Array.isArray(o)?o:[o],u=c.some(e=>l.includes(e));return u?4:void 0}function wM(e,t){const{labelFormatter:n=e=>`${e}`}=e,{scales:r,theme:i}=t,o=i.legendCategory.itemMarkerSize,a=bM(r,o),s={itemMarker:vM(Object.assign(Object.assign({},e),{itemMarkerSize:a}),t),itemMarkerSize:a,itemMarkerOpacity:AM(r),itemMarkerLineWidth:yM(e,t)},l="string"===typeof n?Tk(n):n,c=Wk(r,"color"),u=Yk(r),d=c?e=>c.map(e):()=>t.theme.color;return Object.assign(Object.assign({},s),{data:u.map(e=>({id:e,label:l(e),color:d(e)}))})}function _M(e,t,n){const{position:r}=t;if("center"===r){const{bbox:t}=e,{width:n,height:r}=t;return{width:n,height:r}}const{width:i,height:o}=Kk(e,t,n);return{width:i,height:o}}function xM(e){return Object.assign(Object.assign({},e),{data:(null===e||void 0===e?void 0:e.data.filter(e=>""!==e.id))||[]})}const EM=e=>{const{labelFormatter:t,layout:n,order:r,orientation:i,position:o,size:a,title:s,cols:l,itemMarker:c}=e,u=gM(e,["labelFormatter","layout","order","orientation","position","size","title","cols","itemMarker"]),{gridRow:d}=u;return t=>{const{value:r,theme:i}=t,{bbox:a}=r,{width:c,height:h}=_M(r,e,EM),f=Uk(o,n),p=Object.assign(Object.assign(Object.assign(Object.assign({orientation:["right","left","center"].includes(o)?"vertical":"horizontal",width:c,height:h,layout:void 0!==l?"grid":"flex"},void 0!==l&&{gridCol:l}),void 0!==d&&{gridRow:d}),{titleText:Hk(s)}),wM(e,t)),{legendCategory:g={}}=i,m=qk(Object.assign({},g,xM(p),u)),v=new zk({style:Object.assign(Object.assign({x:a.x,y:a.y,width:a.width,height:a.height},f),{subOptions:m})});return v.appendChild(new pM({className:"legend-category",style:m})),v}};EM.props={defaultPosition:"top",defaultOrder:1,defaultSize:40,defaultCrossPadding:[12,12],defaultPadding:[12,12]};class SM{constructor(e){this.options=P({},this.getDefaultOptions()),this.update(e)}getOptions(){return this.options}update(e={}){this.options=P({},this.options,e),this.rescale(e)}rescale(e){}}function CM(e,t){return t-e?n=>(n-e)/(t-e):e=>.5}function TM(e,...t){return t.reduce((e,t)=>n=>e(t(n)),e)}function kM(e,t,n,r,i){let o=n||0,a=r||e.length;const s=i||(e=>e);while(o<a){const n=Math.floor((o+a)/2);s(e[n])>t?a=n:o=n+1}return o}function OM(e,t,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function MM(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100,i=e[3];if(0===n)return[255*r,255*r,255*r,i];const o=r<.5?r*(1+n):r+n-r*n,a=2*r-o,s=OM(a,o,t+1/3),l=OM(a,o,t),c=OM(a,o,t-1/3);return[255*s,255*l,255*c,i]}function IM(e){const t=rm().get(e);if(!t)return null;const{model:n,value:r}=t;return"rgb"===n?r:"hsl"===n?MM(r):null}const DM=(e,t)=>n=>e*(1-n)+t*n,NM=(e,t)=>{const n=IM(e),r=IM(t);return null===n||null===r?n?()=>e:()=>t:e=>{const t=new Array(4);for(let l=0;l<4;l+=1){const i=n[l],o=r[l];t[l]=i*(1-e)+o*e}const[i,o,a,s]=t;return`rgba(${Math.round(i)}, ${Math.round(o)}, ${Math.round(a)}, ${s})`}},RM=(e,t)=>"number"===typeof e&&"number"===typeof t?DM(e,t):"string"===typeof e&&"string"===typeof t?NM(e,t):()=>e,LM=(e,t)=>{const n=DM(e,t);return e=>Math.round(n(e))};function BM(e){return!Si(e)&&!dm(e)&&!Number.isNaN(e)}const PM=Math.sqrt(50),FM=Math.sqrt(10),$M=Math.sqrt(2);function jM(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/10**i;return i>=0?(o>=PM?10:o>=FM?5:o>=$M?2:1)*10**i:-(10**-i)/(o>=PM?10:o>=FM?5:o>=$M?2:1)}const HM=(e,t,n=5)=>{const r=[e,t];let i,o=0,a=r.length-1,s=r[o],l=r[a];return l<s&&([s,l]=[l,s],[o,a]=[a,o]),i=jM(s,l,n),i>0?(s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i,i=jM(s,l,n)):i<0&&(s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i,i=jM(s,l,n)),i>0?(r[o]=Math.floor(s/i)*i,r[a]=Math.ceil(l/i)*i):i<0&&(r[o]=Math.ceil(s*i)/i,r[a]=Math.floor(l*i)/i),r};function UM(e,t){const n=t<e?t:e,r=e>t?e:t;return e=>Math.min(Math.max(n,e),r)}const QM=(e,t,n)=>{const[r,i]=e,[o,a]=t;let s,l;return r<i?(s=CM(r,i),l=n(o,a)):(s=CM(i,r),l=n(a,o)),TM(l,s)},zM=(e,t,n)=>{const r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=e[0]>e[r],s=a?[...e].reverse():e,l=a?[...t].reverse():t;for(let c=0;c<r;c+=1)i[c]=CM(s[c],s[c+1]),o[c]=n(l[c],l[c+1]);return t=>{const n=kM(e,t,1,r)-1,a=i[n],s=o[n];return TM(s,a)(t)}},WM=(e,t,n,r)=>{const i=Math.min(e.length,t.length),o=i>2?zM:QM,a=r?LM:n;return o(e,t,a)};class GM extends SM{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:DM,tickCount:5}}map(e){return BM(e)?this.output(e):this.options.unknown}invert(e){return BM(e)?this.input(e):this.options.unknown}nice(){if(!this.options.nice)return;const[e,t,n,...r]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(e,t,n,...r)}getTicks(){const{tickMethod:e}=this.options,[t,n,r,...i]=this.getTickMethodOptions();return e(t,n,r,...i)}getTickMethodOptions(){const{domain:e,tickCount:t}=this.options,n=e[0],r=e[e.length-1];return[n,r,t]}chooseNice(){return HM}rescale(){this.nice();const[e,t]=this.chooseTransforms();this.composeOutput(e,this.chooseClamp(e)),this.composeInput(e,t,this.chooseClamp(t))}chooseClamp(e){const{clamp:t,range:n}=this.options,r=this.options.domain.map(e),i=Math.min(r.length,n.length);return t?UM(r[0],r[i-1]):Jg}composeOutput(e,t){const{domain:n,range:r,round:i,interpolate:o}=this.options,a=WM(n.map(e),r,o,i);this.output=TM(a,t,e)}composeInput(e,t,n){const{domain:r,range:i}=this.options,o=WM(i,r.map(e),DM);this.input=TM(t,n,o)}}const VM=(e,t,n)=>{let r,i,o=e,a=t;if(o===a&&n>0)return[o];let s=jM(o,a,n);if(0===s||!Number.isFinite(s))return[];if(s>0){o=Math.ceil(o/s),a=Math.floor(a/s),i=new Array(r=Math.ceil(a-o+1));for(let e=0;e<r;e+=1)i[e]=(o+e)*s}else{s=-s,o=Math.ceil(o*s),a=Math.floor(a*s),i=new Array(r=Math.ceil(a-o+1));for(let e=0;e<r;e+=1)i[e]=(o+e)/s}return i};class KM extends GM{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:RM,tickMethod:VM,tickCount:5}}chooseTransforms(){return[Jg,Jg]}clone(){return new KM(this.options)}}function YM(e,t){return+e.toPrecision(t)}function qM(e){var t=e.canvas,n=e.touches,r=e.offsetX,i=e.offsetY;if(t){var o=t.x,a=t.y;return[o,a]}if(n){var s=n[0],l=s.clientX,c=s.clientY;return[l,c]}return r&&i?[r,i]:[0,0]}var XM={backgroundFill:"#262626",backgroundLineCap:"round",backgroundLineWidth:1,backgroundStroke:"#333",backgroundZIndex:-1,formatter:function(e){return e.toString()},labelFill:"#fff",labelFontSize:12,labelTextBaseline:"middle",padding:[2,4],position:"right",radius:0,zIndex:999},JM=xS({background:"background",labelGroup:"label-group",label:"label"},"indicator"),ZM=function(e){function t(t){var n=e.call(this,t,XM)||this;return n.point=[0,0],n.group=n.appendChild(new _h({})),n.isMutationObserved=!0,n}return gr(t,e),t.prototype.renderBackground=function(){if(this.label){var e=this.attributes,t=e.position,n=e.padding,r=br(nT(n),4),i=r[0],o=r[1],a=r[2],s=r[3],l=this.label.node().getLocalBounds(),c=l.min,u=l.max,d=new Dk(c[0]-s,c[1]-i,u[0]+o-c[0]+s,u[1]+a-c[1]+i),h=this.getPath(t,d),f=US(this.attributes,"background");this.background=Yb(this.group).maybeAppendByClassName(JM.background,"path").styles(mr(mr({},f),{d:h})),this.group.appendChild(this.label.node())}},t.prototype.renderLabel=function(){var e=this.attributes,t=e.formatter,n=e.labelText,r=US(this.attributes,"label"),i=br(zS(r),2),o=i[0],a=i[1],s=(o.text,vr(o,["text"]));if(this.label=Yb(this.group).maybeAppendByClassName(JM.labelGroup,"g").styles(a),n){var l=this.label.maybeAppendByClassName(JM.label,function(){return dC(t(n))}).style("text",t(n).toString());l.selectAll("text").styles(s)}},t.prototype.adjustLayout=function(){var e=br(this.point,2),t=e[0],n=e[1],r=this.attributes,i=r.x,o=r.y;this.group.attr("transform","translate(".concat(i-t,", ").concat(o-n,")"))},t.prototype.getPath=function(e,t){var n=this.attributes.radius,r=t.x,i=t.y,o=t.width,a=t.height,s=[["M",r+n,i],["L",r+o-n,i],["A",n,n,0,0,1,r+o,i+n],["L",r+o,i+a-n],["A",n,n,0,0,1,r+o-n,i+a],["L",r+n,i+a],["A",n,n,0,0,1,r,i+a-n],["L",r,i+n],["A",n,n,0,0,1,r+n,i],["Z"]],l={top:4,right:6,bottom:0,left:2},c=l[e],u=this.createCorner([s[c].slice(-2),s[c+1].slice(-2)]);return s.splice.apply(s,yr([c+1,1],br(u),!1)),s[0][0]="M",s},t.prototype.createCorner=function(e,t){void 0===t&&(t=10);var n=.8,r=yT.apply(void 0,yr([],br(e),!1)),i=br(e,2),o=br(i[0],2),a=o[0],s=o[1],l=br(i[1],2),c=l[0],u=l[1],d=br(r?[c-a,[a,c]]:[u-s,[s,u]],2),h=d[0],f=br(d[1],2),p=f[0],g=f[1],m=h/2,v=h/Math.abs(h),A=t*v,b=A/2,y=A*Math.sqrt(3)/2*n,w=br([p,p+m-b,p+m,p+m+b,g],5),_=w[0],x=w[1],E=w[2],S=w[3],C=w[4];return r?(this.point=[E,s-y],[["L",_,s],["L",x,s],["L",E,s-y],["L",S,s],["L",C,s]]):(this.point=[a+y,E],[["L",a,_],["L",a,x],["L",a+y,E],["L",a,S],["L",a,C]])},t.prototype.applyVisibility=function(){var e=this.attributes.visibility;"hidden"===e?Db(this):Ib(this)},t.prototype.bindEvents=function(){this.label.on(yd.BOUNDS_CHANGED,this.renderBackground)},t.prototype.render=function(){this.renderLabel(),this.renderBackground(),this.adjustLayout(),this.applyVisibility()},t}(Hb),eI={fill:"#fff",lineWidth:1,radius:2,size:10,stroke:"#bfbfbf",strokeOpacity:1,zIndex:0},tI={fill:"#000",fillOpacity:.45,fontSize:12,textAlign:"center",textBaseline:"middle",zIndex:1},nI={x:0,y:0,orientation:"horizontal",showLabel:!0,type:"start"},rI=xS({foreground:"foreground",handle:"handle",selection:"selection",sparkline:"sparkline",sparklineGroup:"sparkline-group",track:"track",brushArea:"brush-area"},"slider"),iI=xS({labelGroup:"label-group",label:"label",iconGroup:"icon-group",icon:"icon",iconRect:"icon-rect",iconLine:"icon-line"},"handle"),oI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gr(t,e),t.prototype.render=function(e,t){var n=e.x,r=e.y,i=e.size,o=void 0===i?10:i,a=e.radius,s=void 0===a?o/4:a,l=e.orientation,c=vr(e,["x","y","size","radius","orientation"]),u=o,d=2.4*u,h=Yb(t).maybeAppendByClassName(iI.iconRect,"rect").styles(mr(mr({},c),{width:u,height:d,radius:s,x:n-u/2,y:r-d/2,transformOrigin:"center"})),f=n+1/3*u-u/2,p=n+2/3*u-u/2,g=r+1/4*d-d/2,m=r+3/4*d-d/2;h.maybeAppendByClassName("".concat(iI.iconLine,"-1"),"line").styles(mr({x1:f,x2:f,y1:g,y2:m},c)),h.maybeAppendByClassName("".concat(iI.iconLine,"-2"),"line").styles(mr({x1:p,x2:p,y1:g,y2:m},c)),"vertical"===l&&(h.node().style.transform="rotate(90)")},t}(Hb),aI=function(e){function t(t){return e.call(this,t,nI)||this}return gr(t,e),t.prototype.renderLabel=function(e){var t=this,n=this.attributes,r=n.x,i=n.y,o=n.showLabel,a=US(this.attributes,"label"),s=a.x,l=void 0===s?0:s,c=a.y,u=void 0===c?0:c,d=a.transform,h=a.transformOrigin,f=vr(a,["x","y","transform","transformOrigin"]),p=br(zS(f,[]),2),g=p[0],m=p[1],v=Yb(e).maybeAppendByClassName(iI.labelGroup,"g").styles(m),A=mr(mr({},tI),g),b=A.text,y=vr(A,["text"]);Ub(!!o,v,function(e){t.label=e.maybeAppendByClassName(iI.label,"text").styles(mr(mr({},y),{x:r+l,y:i+u,transform:d,transformOrigin:h,text:"".concat(b)})),t.label.on("mousedown",function(e){e.stopPropagation()}),t.label.on("touchstart",function(e){e.stopPropagation()})})},t.prototype.renderIcon=function(e){var t=this.attributes,n=t.x,r=t.y,i=t.orientation,o=t.type,a=mr(mr({x:n,y:r,orientation:i},eI),US(this.attributes,"icon")),s=this.attributes.iconShape,l=void 0===s?function(){return new oI({style:a})}:s,c=Yb(e).maybeAppendByClassName(iI.iconGroup,"g");c.selectAll(iI.icon.class).data([l]).join(function(e){return e.append("string"===typeof l?l:function(){return l(o)}).attr("className",iI.icon.name)},function(e){return e.update(a)},function(e){return e.remove()})},t.prototype.render=function(e,t){this.renderIcon(t),this.renderLabel(t)},t}(Hb);function sI(e,t){for(var n=1;n<e.length;n+=1){var r=e[n-1],i=e[n];if(t>=r&&t<=i)return[r,i]}return[t,t]}function lI(e,t,n){var r=Array.from(t),i=e.length;return new Array(i).fill(0).reduce(function(t,n,o){var a=r[o%r.length];return t+" ".concat(e[o],":").concat(a).concat(o<i-1?" ".concat(e[o+1],":").concat(a):"")},"l(".concat("horizontal"===n?"0":"270",")"))}function cI(e,t){var n=br(sI(e,t),2),r=n[0],i=n[1];return{tick:t>(r+i)/2?i:r,range:[r,i]}}var uI=xS({trackGroup:"background-group",track:"background",selectionGroup:"ribbon-group",selection:"ribbon",clipPath:"clip-path"},"ribbon");function dI(e){var t=e.orientation,n=e.size,r=e.length;return jO(t,[r,n],[n,r])}function hI(e){var t=e.type,n=br(dI(e),2),r=n[0],i=n[1];return"size"===t?[["M",0,i],["L",0+r,0],["L",0+r,i],["Z"]]:[["M",0,i],["L",0,0],["L",0+r,0],["L",0+r,i],["Z"]]}function fI(e){return hI(e)}function pI(e){var t,n=e.orientation,r=e.color,i=e.block,o=e.partition;if(ki(r)){var a=20;t=new Array(a).fill(0).map(function(e,t,n){return r(t/(n.length-1))})}else t=r;var s=t.length,l=t.map(function(e){return sl(e).toString()});return s?1===s?l[0]:i?lI(o,l,n):l.reduce(function(e,t,n){return e+" ".concat(n/(s-1),":").concat(t)},"l(".concat(jO(n,"0","270"),")")):""}function gI(e){var t=e.orientation,n=e.range;if(!n)return[];var r=br(dI(e),2),i=r[0],o=r[1],a=br(n,2),s=a[0],l=a[1],c=jO(t,s*i,0),u=jO(t,0,s*o),d=jO(t,l*i,i),h=jO(t,o,l*o);return[["M",c,u],["L",c,h],["L",d,h],["L",d,u],["Z"]]}function mI(e,t){var n=US(t,"track");e.maybeAppendByClassName(uI.track,"path").styles(mr({d:hI(t)},n))}function vI(e,t){var n=US(t,"selection"),r=pI(t),i=e.maybeAppendByClassName(uI.selection,"path").styles(mr({d:fI(t),fill:r},n)),o=i.maybeAppendByClassName(uI.clipPath,"path").styles({d:gI(t)}).node();i.style("clipPath",o)}var AI=function(e){function t(t){return e.call(this,t,{type:"color",orientation:"horizontal",size:30,range:[0,1],length:200,block:!1,partition:[],color:["#fff","#000"],trackFill:"#e5e5e5"})||this}return gr(t,e),t.prototype.render=function(e,t){var n=Yb(t).maybeAppendByClassName(uI.trackGroup,"g");mI(n,e);var r=Yb(t).maybeAppendByClassName(uI.selectionGroup,"g");vI(r,e)},t}(Hb);function bI(e){return{min:Math.min.apply(Math,yr([],br(e.map(function(e){return e.value})),!1)),max:Math.max.apply(Math,yr([],br(e.map(function(e){return e.value})),!1))}}var yI=function(e){function t(t){var n=e.call(this,t,dM)||this;return n.eventToOffsetScale=new KM({}),n.innerRibbonScale=new KM({}),n.cacheLabelBBox=null,n.cacheHandleBBox=null,n.onHovering=function(e){var t=n.attributes,r=t.data,i=t.block;e.stopPropagation();var o=n.getValueByCanvasPoint(e);if(i){var a=cI(r.map(function(e){var t=e.value;return t}),o).range,s=n.getRealSelection(a);n.showIndicator((a[0]+a[1])/2,"".concat(s[0],"-").concat(s[1])),n.dispatchIndicated(o,a)}else{var l=n.getTickValue(o);n.showIndicator(l,"".concat(n.getRealValue(l))),n.dispatchIndicated(l)}},n.onDragStart=function(e){return function(t){t.stopPropagation(),n.attributes.slidable&&(n.target=e,n.prevValue=n.getTickValue(n.getValueByCanvasPoint(t)),document.addEventListener("mousemove",n.onDragging),document.addEventListener("touchmove",n.onDragging),document.addEventListener("mouseleave",n.onDragEnd),document.addEventListener("mouseup",n.onDragEnd),document.addEventListener("mouseup",n.onDragEnd),document.addEventListener("touchend",n.onDragEnd))}},n.onDragging=function(e){var t=n.target;n.updateMouse();var r=br(n.selection,2),i=r[0],o=r[1],a=n.getTickValue(n.getValueByCanvasPoint(e)),s=a-n.prevValue;"start"===t?i!==a&&n.updateSelection(a,o):"end"===t?o!==a&&n.updateSelection(i,a):"ribbon"===t&&0!==s&&(n.prevValue=a,n.updateSelection(s,s,!0))},n.onDragEnd=function(){n.style.cursor="pointer",document.removeEventListener("mousemove",n.onDragging),document.removeEventListener("touchmove",n.onDragging),document.removeEventListener("mouseup",n.onDragEnd),document.removeEventListener("touchend",n.onDragEnd)},n}return gr(t,e),Object.defineProperty(t.prototype,"handleOffsetRatio",{get:function(){return this.ifHorizontal(.5,.5)},enumerable:!1,configurable:!0}),t.prototype.getBBox=function(){var e=this.attributes,t=e.width,n=e.height;return new Dk(0,0,t,n)},t.prototype.render=function(e,t){var n=this,r=e.showLabel;this.renderTitle(Yb(t));var i=this.availableSpace,o=i.x,a=i.y,s=Yb(t).maybeAppendByClassName(fM.contentGroup,"g").styles({transform:"translate(".concat(o,", ").concat(a,")")}),l=s.maybeAppendByClassName(fM.labelGroup,"g").styles({zIndex:1});Ub(!!r,l,function(e){n.renderLabel(e)});var c=s.maybeAppendByClassName(fM.ribbonGroup,"g").styles({zIndex:0});this.handlesGroup=s.maybeAppendByClassName(fM.handlesGroup,"g").styles({zIndex:2}),this.renderHandles(),this.renderRibbon(c),this.renderIndicator(s),this.adjustLabel(),this.adjustHandles()},Object.defineProperty(t.prototype,"range",{get:function(){var e=this.attributes,t=e.data,n=e.domain;return n?{min:n[0],max:n[1]}:bI(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ribbonScale",{get:function(){var e=this.range,t=e.min,n=e.max;return this.innerRibbonScale.update({domain:[t,n],range:[0,1]}),this.innerRibbonScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ribbonRange",{get:function(){var e=br(this.selection,2),t=e[0],n=e[1],r=this.ribbonScale;return[r.map(t),r.map(n)]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selection",{get:function(){var e=this.range,t=e.min,n=e.max,r=this.attributes.defaultValue,i=void 0===r?[t,n]:r,o=br(i,2),a=o[0],s=o[1];return[a,s]},enumerable:!1,configurable:!0}),t.prototype.ifHorizontal=function(e,t){return jO(this.attributes.orientation,"function"===typeof e?e():e,"function"===typeof t?t():t)},t.prototype.renderTitle=function(e){var t=this.attributes,n=t.showTitle,r=t.titleText,i=t.width,o=t.height,a=US(this.attributes,"title"),s=mr(mr({},a),{width:i,height:o,text:r}),l=this;e.selectAll(fM.title.class).data(n?[r]:[]).join(function(e){return e.append(function(){return new xO({style:s})}).attr("className",fM.title.name).each(function(){l.title=this})},function(e){return e.update(s)},function(e){return e.each(function(){l.title=void 0}).remove()})},Object.defineProperty(t.prototype,"availableSpace",{get:function(){if(this.title)return this.title.getAvailableSpace();var e=this.attributes,t=e.width,n=e.height;return new Dk(0,0,t,n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelFixedSpacing",{get:function(){var e=this.attributes.showTick;return e?5:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelPosition",{get:function(){var e=this.attributes,t=e.orientation,n=e.labelDirection,r={vertical:{positive:"right",negative:"left"},horizontal:{positive:"bottom",negative:"top"}};return r[t][n]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelBBox",{get:function(){var e,t=this.attributes.showLabel;if(!t)return new Dk(0,0,0,0);if(this.cacheLabelBBox)return this.cacheLabelBBox;var n=(null===(e=this.label.querySelector(SS.labelGroup.class))||void 0===e?void 0:e.children.slice(-1)[0]).getBBox(),r=n.width,i=n.height;return this.cacheLabelBBox=new Dk(0,0,r,i),this.cacheLabelBBox},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelShape",{get:function(){var e=this.attributes,t=e.showLabel,n=e.labelSpacing,r=void 0===n?0:n;if(!t)return{width:0,height:0,size:0,length:0};var i=this.labelBBox,o=i.width,a=i.height,s=this.ifHorizontal(a,o)+r+this.labelFixedSpacing,l=this.ifHorizontal(o,a);return{width:o,height:a,size:s,length:l}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ribbonBBox",{get:function(){var e=this.attributes,t=e.showHandle,n=e.ribbonSize,r=this.availableSpace,i=r.width,o=r.height,a=this.labelShape,s=a.size,l=a.length,c=br(this.ifHorizontal([o,i],[i,o]),2),u=c[0],d=c[1],h=t?this.handleShape:{size:0,length:0},f=h.size,p=h.length,g=this.handleOffsetRatio,m=0,v=this.labelPosition;m=n||(["bottom","right"].includes(v)?Math.min(u-s,(u-f)/g):u*(1-g)>f?Math.max(u-s,0):Math.max((u-s-f)/g,0));var A=Math.max(p,l),b=d-A,y=br(this.ifHorizontal([b,m],[m,b]),2),w=y[0],_=y[1],x=["top","left"].includes(v)?s:0,E=br(this.ifHorizontal([A/2,x],[x,A/2]),2),S=E[0],C=E[1];return new Dk(S,C,w,_)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ribbonShape",{get:function(){var e=this.ribbonBBox,t=e.width,n=e.height;return this.ifHorizontal({size:n,length:t},{size:t,length:n})},enumerable:!1,configurable:!0}),t.prototype.renderRibbon=function(e){var t=this.attributes,n=t.data,r=t.type,i=t.orientation,o=t.color,a=t.block,s=US(this.attributes,"ribbon"),l=this.range,c=l.min,u=l.max,d=this.ribbonBBox,h=d.x,f=d.y,p=this.ribbonShape,g=p.length,m=p.size,v=Bb({transform:"translate(".concat(h,", ").concat(f,")"),length:g,size:m,type:r,orientation:i,color:o,block:a,partition:n.map(function(e){return(e.value-c)/(u-c)}),range:this.ribbonRange},s);this.ribbon=e.maybeAppendByClassName(fM.ribbon,function(){return new AI({style:v})}).update(v)},t.prototype.getHandleClassName=function(e){return"".concat(fM.prefix("".concat(e,"-handle")))},t.prototype.renderHandles=function(){var e=this.attributes,t=e.showHandle,n=e.orientation,r=US(this.attributes,"handle"),i=br(this.selection,2),o=i[0],a=i[1],s=mr(mr({},r),{orientation:n}),l=r.shape,c=void 0===l?"slider":l,u="basic"===c?lM:aI,d=this;this.handlesGroup.selectAll(fM.handle.class).data(t?[{value:o,type:"start"},{value:a,type:"end"}]:[],function(e){return e.type}).join(function(e){return e.append(function(){return new u({style:s})}).attr("className",function(e){var t=e.type;return"".concat(fM.handle," ").concat(d.getHandleClassName(t))}).each(function(e){var t=e.type,n=e.value;this.update({labelText:n});var r="".concat(t,"Handle");d[r]=this,this.addEventListener("pointerdown",d.onDragStart(t))})},function(e){return e.update(s).each(function(e){var t=e.value;this.update({labelText:t})})},function(e){return e.each(function(e){var t=e.type,n="".concat(t,"Handle");d[n]=void 0}).remove()})},t.prototype.adjustHandles=function(){var e=br(this.selection,2),t=e[0],n=e[1];this.setHandlePosition("start",t),this.setHandlePosition("end",n)},Object.defineProperty(t.prototype,"handleBBox",{get:function(){if(this.cacheHandleBBox)return this.cacheHandleBBox;if(!this.attributes.showHandle)return new Dk(0,0,0,0);var e=this.startHandle.getBBox(),t=e.width,n=e.height,r=this.endHandle.getBBox(),i=r.width,o=r.height,a=br([Math.max(t,i),Math.max(n,o)],2),s=a[0],l=a[1];return this.cacheHandleBBox=new Dk(0,0,s,l),this.cacheHandleBBox},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handleShape",{get:function(){var e=this.handleBBox,t=e.width,n=e.height,r=br(this.ifHorizontal([n,t],[t,n]),2),i=r[0],o=r[1];return{width:t,height:n,size:i,length:o}},enumerable:!1,configurable:!0}),t.prototype.setHandlePosition=function(e,t){var n=this.attributes.handleFormatter,r=this.ribbonBBox,i=r.x,o=r.y,a=this.ribbonShape.size,s=this.getOffset(t),l=br(this.ifHorizontal([i+s,o+a*this.handleOffsetRatio],[i+a*this.handleOffsetRatio,o+s]),2),c=l[0],u=l[1],d=this.handlesGroup.select(".".concat(this.getHandleClassName(e))).node();null===d||void 0===d||d.update({transform:"translate(".concat(c,", ").concat(u,")"),formatter:n})},t.prototype.renderIndicator=function(e){var t=US(this.attributes,"indicator");this.indicator=e.maybeAppendByClassName(fM.indicator,function(){return new ZM({})}).update(t)},Object.defineProperty(t.prototype,"labelData",{get:function(){var e=this,t=this.attributes.data;return t.reduce(function(t,n,r,i){var o,a,s=null!==(o=null===n||void 0===n?void 0:n.id)&&void 0!==o?o:r.toString();if(t.push(mr(mr({},n),{id:s,index:r,type:"value",label:null!==(a=null===n||void 0===n?void 0:n.label)&&void 0!==a?a:n.value.toString(),value:e.ribbonScale.map(n.value)})),r<i.length-1){var l=i[r+1],c=br([n.value,l.value],2),u=c[0],d=c[1],h=(u+d)/2;t.push(mr(mr({},n),{id:s,index:r,type:"range",range:[u,d],label:[u,d].join("~"),value:e.ribbonScale.map(h)}))}return t},[])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelStyle",{get:function(){var e=br(["center","middle"],2),t=e[0],n=e[1],r=this.labelPosition;return"top"===r?n="bottom":"bottom"===r?n="top":"left"===r?t="end":"right"===r&&(t="start"),{labelTextAlign:t,labelTextBaseline:n}},enumerable:!1,configurable:!0}),t.prototype.renderLabel=function(e){var t=this.attributes,n=t.showTick,r=void 0!==n&&n,i=t.labelFilter,o=t.labelFormatter,a=US(this.attributes,"tick"),s=US(this.attributes,"label"),l=s.align,c=Bb(mr({showLine:!1,showGrid:!1,showTick:r,type:"linear",startPos:[0,0],endPos:[0,0],tickDirection:"negative",labelTransform:"rotate(0)"},this.labelStyle),QS(a,"tick"),QS(s,"label"),{data:this.labelData}),u={tickFilter:function(e,t,n){return"value"===(null===e||void 0===e?void 0:e.type)&&(!i||i(e,e.index,n.filter(function(e){return"value"!==e.type})))},labelFilter:function(e,t,n){return(null===e||void 0===e?void 0:e.type)===l&&(!i||i(e,e.index,n.filter(function(e){return e.type===l})))},labelFormatter:o},d=mr(mr(mr({},c),u),{labelOverlap:[{type:"hide"}]});this.label=e.maybeAppendByClassName(fM.label,function(){return new ik({style:d})}).node(),this.label.update(d,!1)},Object.defineProperty(t.prototype,"labelAxisStyle",{get:function(){var e=this.attributes,t=e.showTick,n=e.labelDirection,r=e.labelSpacing,i=e.tickLength,o=this.ribbonShape.size,a=this.labelPosition,s=this.labelFixedSpacing,l=br([0,0,0],3),c=l[0],u=l[1],d=l[2],h=null!==i&&void 0!==i?i:o;return t?(d=h,u=s,"positive"===n?"right"===a?(c=h,d=h):"bottom"===a&&(c=d):"negative"===n&&("top"===a||"left"===a)&&(c=o)):"positive"===n?"right"===a?u=h:"bottom"===a&&(c=o+s,u=r):"negative"===n&&("left"===a||"top"===a)&&(u=r),{offset:c,spacing:u,tickLength:d}},enumerable:!1,configurable:!0}),t.prototype.adjustLabel=function(){var e=this.attributes.showLabel;if(e){var t=this.ribbonBBox,n=t.x,r=t.y,i=t.width,o=t.height,a=this.labelAxisStyle,s=a.offset,l=a.spacing,c=a.tickLength,u=br(this.ifHorizontal([[n,r+s],[n+i,r+s]],[[n+s,r+o],[n+s,r]]),2),d=u[0],h=u[1];this.label.update({startPos:d,endPos:h,tickLength:c,labelSpacing:l},!1)}},t.prototype.bindEvents=function(){this.style.cursor="pointer",this.ribbon.on("pointerdown",this.onDragStart("ribbon")),this.ribbon.on("pointermove",this.onHovering),this.addEventListener("pointerout",this.hideIndicator)},t.prototype.showIndicator=function(e,t){void 0===t&&(t="".concat(e));var n=this.attributes.showIndicator;if(n&&"number"===typeof e){var r=this.range,i=r.min,o=r.max,a=this.ribbonBBox,s=a.x,l=a.y,c=fr(e,i,o),u=this.getOffset(c),d=this.ifHorizontal([u+s,l],[s,u+l]);this.indicator.update({x:d[0],y:d[1],position:this.ifHorizontal("top","left"),labelText:t}),Ib(this.indicator.node())}else this.hideIndicator()},t.prototype.hideIndicator=function(){Db(this.indicator.node())},t.prototype.updateMouse=function(){this.attributes.slidable&&(this.style.cursor="grabbing")},t.prototype.setSelection=function(e,t){this.updateSelection(e,t)},t.prototype.updateSelection=function(e,t,n){var r;void 0===n&&(n=!1);var i=br(this.selection,2),o=i[0],a=i[1],s=br([e,t],2),l=s[0],c=s[1];n&&(l+=o,c+=a);var u=this.range,d=u.min,h=u.max;r=br($O([d,h],[l,c],this.selection),2),l=r[0],c=r[1],this.update({defaultValue:[l,c]}),this.dispatchSelection()},Object.defineProperty(t.prototype,"step",{get:function(){var e=this.attributes.step,t=void 0===e?1:e,n=this.range,r=n.min,i=n.max;return Si(t)?YM((i-r)*hM,0):t},enumerable:!1,configurable:!0}),t.prototype.getTickValue=function(e){var t=this.attributes,n=t.data,r=t.block,i=this.range.min;return r?cI(n.map(function(e){var t=e.value;return t}),e).tick:DO(e,this.step,i)},t.prototype.getValueByCanvasPoint=function(e){var t=this.range,n=t.min,r=t.max,i=br(this.ribbon.node().getPosition(),2),o=i[0],a=i[1],s=this.ifHorizontal(o,a),l=this.ifHorizontal.apply(this,yr([],br(qM(e)),!1)),c=l-s,u=fr(this.getOffset(c,!0),n,r);return u},t.prototype.getOffset=function(e,t){void 0===t&&(t=!1);var n=this.range,r=n.min,i=n.max,o=this.ribbonShape.length,a=this.eventToOffsetScale;return a.update({domain:[r,i],range:[0,o]}),t?a.invert(e):a.map(e)},t.prototype.getRealSelection=function(e){var t=this.range.max,n=br(e,2),r=n[0],i=n[1];return this.ifHorizontal([r,i],[t-i,t-r])},t.prototype.getRealValue=function(e){var t=this.range.max;return this.ifHorizontal(e,t-e)},t.prototype.dispatchSelection=function(){var e=this.getRealSelection(this.selection),t=new ud("valuechange",{detail:{value:e}});this.dispatchEvent(t)},t.prototype.dispatchIndicated=function(e,t){var n=this,r=this.range.max,i=this.ifHorizontal(function(){return{value:e,range:t}},function(){return{value:r-e,range:t?n.getRealSelection(t):void 0}}),o=new ud("indicate",{detail:i});this.dispatchEvent(o)},t}(Hb),wI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function _I(e,t,n){return e.size=t,Gk(n)?e.height=t:e.width=t,e}function xI(e,t,n){const{size:r}=t,i=Kk(e,t,n);return _I(i,r,i.orientation)}function EI(e){return t=>({value:t/e,label:String(t)})}function SI(e,t,n,r,i){const o=t.thresholds,a=EI(r);return Object.assign(Object.assign({},e),{color:i,data:[n,...o,r].map(a)})}function CI(e,t,n){const r=t.thresholds,i=[-1/0,...r,1/0].map((e,t)=>({value:t,label:e}));return Object.assign(Object.assign({},e),{data:i,color:n,labelFilter:(e,t)=>t>0&&t<i.length-1})}function TI(e){const{domain:t}=e.getOptions(),[n,r]=[t[0],Em(t)];return[n,r]}function kI(e,t){const n=e.getOptions(),r=e.clone();return r.update(Object.assign(Object.assign({},n),{range:[sl(t).toString()]})),r}function OI(e,t,n,r,i,o){const{length:a}=e,s=n||r,l=i.color?o.legendContinuous.ribbonFill||"black":o.color,c=t||kI(s,l),[u,d]=TI(c),[h,f]=TI([t,n,r].filter(e=>void 0!==e).find(e=>!(e instanceof fg)));return Object.assign(Object.assign({},e),{domain:[h,f],data:c.getTicks().map(e=>({value:e})),color:new Array(Math.floor(a)).fill(0).map((e,t)=>{const n=(d-u)/(a-1)*t+u,i=c.map(n)||l,o=r?r.map(n):1;return i.replace(/rgb[a]*\(([\d]{1,3}) *, *([\d]{1,3}) *, *([\d]{1,3})[\S\s]*\)/,(e,t,n,r)=>`rgba(${t}, ${n}, ${r}, ${o})`)})})}function MI(e,t,n,r,i,o){const a=Wk(e,"color"),s=xI(n,r,i);if(a instanceof FE){const{range:e}=a.getOptions(),[t,n]=TI(a);return a instanceof zE||a instanceof UE?SI(s,a,t,n,e):CI(s,a,e)}const l=Wk(e,"size"),c=Wk(e,"opacity");return OI(s,a,l,c,t,o)}const II=e=>{const{labelFormatter:t,layout:n,order:r,orientation:i,position:o,size:a,title:s,style:l,crossPadding:c,padding:u}=e,d=wI(e,["labelFormatter","layout","order","orientation","position","size","title","style","crossPadding","padding"]);return({scales:r,value:i,theme:a,scale:c})=>{const{bbox:u}=i,{x:h,y:f,width:p,height:g}=u,m=Uk(o,n),{legendContinuous:v={}}=a,A=qk(Object.assign({},v,Object.assign(Object.assign({titleText:Hk(s),labelAlign:"value",labelFormatter:"string"===typeof t?e=>Tk(t)(e.label):t},MI(r,c,i,e,II,a)),l),d)),b=new Qk({style:Object.assign(Object.assign({x:h,y:f,width:p,height:g},m),{subOptions:A})});return b.appendChild(new yI({className:"legend-continuous",style:A})),b}};II.props={defaultPosition:"top",defaultOrientation:"vertical",defaultOrder:1,defaultSize:60,defaultLength:200,defaultLegendSize:60,defaultPadding:[20,10],defaultCrossPadding:[12,12]};const DI=e=>()=>new _h;DI.props={};var NI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function RI(e,t,n,r){switch(r){case"center":return{x:e+n/2,y:t,textAlign:"middle"};case"right":return{x:e+n,y:t,textAlign:"right"};default:return{x:e,y:t,textAlign:"left"}}}const LI=$k({render(e,t){const{width:n,title:r,subtitle:i,spacing:o=2,align:a="left",x:s,y:l}=e,c=NI(e,["width","title","subtitle","spacing","align","x","y"]);t.style.transform=`translate(${s}, ${l})`;const u=Og(c,"title"),d=Og(c,"subtitle"),h=jk(t,".title","text").attr("className","title").call(Om,Object.assign(Object.assign(Object.assign({},RI(0,0,n,a)),{fontSize:14,textBaseline:"top",text:r}),u)).node(),f=h.getLocalBounds();jk(t,".sub-title","text").attr("className","sub-title").call(e=>{if(!i)return e.node().remove();e.node().attr(Object.assign(Object.assign(Object.assign({},RI(0,f.max[1]+o,n,a)),{fontSize:12,textBaseline:"top",text:i}),d))})}}),BI=e=>({value:t,theme:n})=>{const{x:r,y:i,width:o,height:a}=t.bbox;return new LI({style:P({},n.title,Object.assign({x:r,y:i,width:o,height:a},e))})};function PI({map:e,initKey:t},n){const r=t(n);return e.has(r)?e.get(r):n}function FI({map:e,initKey:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function $I({map:e,initKey:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function jI(e){return"object"===typeof e?e.valueOf():e}BI.props={defaultPosition:"top",defaultOrder:2,defaultSize:36,defaultCrossPadding:[20,20],defaultPadding:[12,12]};class HI extends Map{constructor(e){if(super(),this.map=new Map,this.initKey=jI,null!==e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(PI({map:this.map,initKey:this.initKey},e))}has(e){return super.has(PI({map:this.map,initKey:this.initKey},e))}set(e,t){return super.set(FI({map:this.map,initKey:this.initKey},e),t)}delete(e){return super.delete($I({map:this.map,initKey:this.initKey},e))}}const UI=Symbol("defaultUnknown");function QI(e,t,n){for(let r=0;r<t.length;r+=1)e.has(t[r])||e.set(n(t[r]),r)}function zI(e){const{value:t,from:n,to:r,mapper:i,notFoundReturn:o}=e;let a=i.get(t);if(void 0===a){if(o!==UI)return o;a=n.push(t)-1,i.set(t,a)}return r[a%r.length]}function WI(e){return e instanceof Date?e=>`${e}`:"object"===typeof e?e=>JSON.stringify(e):e=>e}class GI extends SM{getDefaultOptions(){return{domain:[],range:[],unknown:UI}}constructor(e){super(e)}map(e){return 0===this.domainIndexMap.size&&QI(this.domainIndexMap,this.getDomain(),this.domainKey),zI({value:this.domainKey(e),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(e){return 0===this.rangeIndexMap.size&&QI(this.rangeIndexMap,this.getRange(),this.rangeKey),zI({value:this.rangeKey(e),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(e){const[t]=this.options.domain,[n]=this.options.range;if(this.domainKey=WI(t),this.rangeKey=WI(n),!this.rangeIndexMap)return this.rangeIndexMap=new Map,void(this.domainIndexMap=new Map);e&&!e.range||this.rangeIndexMap.clear(),(!e||e.domain||e.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new GI(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;const{domain:e,compare:t}=this.options;return this.sortedDomain=t?[...e].sort(t):e,this.sortedDomain}}function VI(e){const t=Math.min(...e);return e.map(e=>e/t)}function KI(e,t){const n=e.length,r=t-n;return r>0?[...e,...new Array(r).fill(1)]:r<0?e.slice(0,t):e}function YI(e){return Math.round(1e12*e)/1e12}function qI(e){const{domain:t,range:n,paddingOuter:r,paddingInner:i,flex:o,round:a,align:s}=e,l=t.length,c=KI(o,l),[u,d]=n,h=d-u,f=2/l*r+1-1/l*i,p=h/f,g=p*i/l,m=p-l*g,v=VI(c),A=v.reduce((e,t)=>e+t),b=m/A,y=new HI(t.map((e,t)=>{const n=v[t]*b;return[e,a?Math.floor(n):n]})),w=new HI(t.map((e,t)=>{const n=v[t]*b,r=n+g;return[e,a?Math.floor(r):r]})),_=Array.from(w.values()).reduce((e,t)=>e+t),x=h-(_-_/l*i),E=x*s,S=u+E;let C=a?Math.round(S):S;const T=new Array(l);for(let k=0;k<l;k+=1){T[k]=YI(C);const e=t[k];C+=w.get(e)}return{valueBandWidth:y,valueStep:w,adjustedRange:T}}function XI(e){var t;const{domain:n}=e,r=n.length;if(0===r)return{valueBandWidth:void 0,valueStep:void 0,adjustedRange:[]};const i=!!(null===(t=e.flex)||void 0===t?void 0:t.length);if(i)return qI(e);const{range:o,paddingOuter:a,paddingInner:s,round:l,align:c}=e;let u,d,h=o[0];const f=o[1],p=f-h,g=2*a,m=r-s;u=p/Math.max(1,g+m),l&&(u=Math.floor(u)),h+=(p-u*(r-s))*c,d=u*(1-s),l&&(h=Math.round(h),d=Math.round(d));const v=new Array(r).fill(0).map((e,t)=>h+t*u);return{valueStep:u,valueBandWidth:d,adjustedRange:v}}class JI extends GI{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:UI,flex:[]}}constructor(e){super(e)}clone(){return new JI(this.options)}getStep(e){return void 0===this.valueStep?1:"number"===typeof this.valueStep?this.valueStep:void 0===e?Array.from(this.valueStep.values())[0]:this.valueStep.get(e)}getBandWidth(e){return void 0===this.valueBandWidth?1:"number"===typeof this.valueBandWidth?this.valueBandWidth:void 0===e?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(e)}getRange(){return this.adjustedRange}getPaddingInner(){const{padding:e,paddingInner:t}=this.options;return e>0?e:t}getPaddingOuter(){const{padding:e,paddingOuter:t}=this.options;return e>0?e:t}rescale(){super.rescale();const{align:e,domain:t,range:n,round:r,flex:i}=this.options,{adjustedRange:o,valueBandWidth:a,valueStep:s}=XI({align:e,range:n,round:r,flex:i,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:t});this.valueStep=s,this.valueBandWidth=a,this.adjustedRange=o}}var ZI=function(e){if("object"!==typeof e||null===e)return e;var t;if(S(e)){t=[];for(var n=0,r=e.length;n<r;n++)"object"===typeof e[n]&&null!=e[n]?t[n]=ZI(e[n]):t[n]=e[n]}else for(var i in t={},e)"object"===typeof e[i]&&null!=e[i]?t[i]=ZI(e[i]):t[i]=e[i];return t},eD=ZI,tD=function(e){function t(t){var n=this,r=t.style,i=vr(t,["style"]);return n=e.call(this,P({},{type:"column"},mr({style:r},i)))||this,n.columnsGroup=new _h({name:"columns"}),n.appendChild(n.columnsGroup),n.render(),n}return gr(t,e),t.prototype.render=function(){var e=this.attributes,t=e.columns,n=e.x,r=e.y;this.columnsGroup.style.transform="translate(".concat(n,", ").concat(r,")"),Yb(this.columnsGroup).selectAll(".column").data(t.flat()).join(function(e){return e.append("rect").attr("className","column").each(function(e){this.attr(e)})},function(e){return e.each(function(e){this.attr(e)})},function(e){return e.remove()})},t.prototype.update=function(e){this.attr(Bb({},this.attributes,e)),this.render()},t.prototype.clear=function(){this.removeChildren()},t}(mh),nD=function(e){function t(t){var n=this,r=t.style,i=vr(t,["style"]);return n=e.call(this,P({},{type:"lines"},mr({style:r},i)))||this,n.linesGroup=n.appendChild(new _h),n.areasGroup=n.appendChild(new _h),n.render(),n}return gr(t,e),t.prototype.render=function(){var e=this.attributes,t=e.lines,n=e.areas,r=e.x,i=e.y;this.style.transform="translate(".concat(r,", ").concat(i,")"),t&&this.renderLines(t),n&&this.renderAreas(n)},t.prototype.clear=function(){this.linesGroup.removeChildren(),this.areasGroup.removeChildren()},t.prototype.update=function(e){this.attr(Bb({},this.attributes,e)),this.render()},t.prototype.renderLines=function(e){Yb(this.linesGroup).selectAll(".line").data(e).join(function(e){return e.append("path").attr("className","line").each(function(e){this.attr(e)})},function(e){return e.each(function(e){this.attr(e)})},function(e){return e.remove()})},t.prototype.renderAreas=function(e){Yb(this.linesGroup).selectAll(".area").data(e).join(function(e){return e.append("path").attr("className","area").each(function(e){this.attr(e)})},function(e){return e.each(function(e){this.style(e)})},function(e){return e.remove()})},t}(mh),rD=function(e,t){if(e===t)return!0;if(!e||!t)return!1;if(dr(e)||dr(t))return!1;if(qg(e)||qg(t)){if(e.length!==t.length)return!1;for(var n=!0,r=0;r<e.length;r++)if(n=rD(e[r],t[r]),!n)break;return n}if(T(e)||T(t)){var i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;for(n=!0,r=0;r<i.length;r++)if(n=rD(e[i[r]],t[i[r]]),!n)break;return n}return!1},iD=rD;function oD(e,t,n,r){var i,o,a,s,l,c,u=[],d=!!r,h=[1/0,1/0],f=[-1/0,-1/0];if(d){i=br(r,2),h=i[0],f=i[1];for(var p=0,g=e.length;p<g;p+=1){var m=e[p];h=OS(h,m),f=MS(f,m)}}p=0;for(var v=e.length;p<v;p+=1){m=e[p];if(0!==p||n)if(p!==v-1||n){var A=[p?p-1:v-1,p-1][n?0:1];o=e[A],a=e[n?(p+1)%v:p+1];var b=[0,0];b=kS(a,o),b=CS(b,t);var y=IS(m,o),w=IS(m,a),_=y+w;0!==_&&(y/=_,w/=_);var x=CS(b,-y),E=CS(b,w);l=TS(m,x),s=TS(m,E),s=OS(s,MS(a,m)),s=MS(s,OS(a,m)),x=kS(s,m),x=CS(x,-y/w),l=TS(m,x),l=OS(l,MS(o,m)),l=MS(l,OS(o,m)),E=kS(m,l),E=CS(E,w/y),s=TS(m,E),d&&(l=MS(l,h),l=OS(l,f),s=MS(s,h),s=OS(s,f)),u.push(c),u.push(l),c=s}else l=m,u.push(c),u.push(l);else c=m}return n&&u.push(u.shift()),u}function aD(e,t,n){var r;void 0===t&&(t=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var i=!!t,o=[],a=0,s=e.length;a<s;a+=2)o.push([e[a],e[a+1]]);var l,c,u,d=oD(o,.4,i,n),h=o.length,f=[];for(a=0;a<h-1;a+=1)l=d[2*a],c=d[2*a+1],u=o[a+1],f.push(["C",l[0],l[1],c[0],c[1],u[0],u[1]]);return i&&(l=d[h],c=d[h+1],r=br(o,1),u=r[0],f.push(["C",l[0],l[1],c[0],c[1],u[0],u[1]])),f}function sD(e,t){var n,r=t.x,i=t.y,o=br(i.getOptions().range||[0,0],2),a=o[0],s=o[1];return s>a&&(n=br([a,s],2),s=n[0],a=n[1]),e.map(function(e){var t=e.map(function(e,t){return[r.map(t),fr(i.map(e),s,a)]});return t})}function lD(e,t){void 0===t&&(t=!1);var n=t?e.length-1:0,r=e.map(function(e,t){return yr([t===n?"M":"L"],br(e),!1)});return t?r.reverse():r}function cD(e,t){if(void 0===t&&(t=!1),e.length<=2)return lD(e);for(var n=[],r=e.length,i=0;i<r;i+=1){var o=t?e[r-i-1]:e[i];iD(o,n.slice(-2))||n.push.apply(n,yr([],br(o),!1))}var a=aD(n,!1);return t?a.unshift(yr(["M"],br(e[r-1]),!1)):a.unshift(yr(["M"],br(e[0]),!1)),a}function uD(e,t,n){var r=eD(e);return r.push(["L",t,n],["L",0,n],["Z"]),r}function dD(e,t,n,r){return e.map(function(e){return uD(t?cD(e):lD(e),n,r)})}function hD(e,t,n){for(var r=[],i=e.length-1;i>=0;i-=1){var o=e[i],a=lD(o),s=void 0;if(0===i)s=uD(a,t,n);else{var l=e[i-1],c=lD(l,!0);c[0][0]="L",s=yr(yr(yr([],br(a),!1),br(c),!1),[["Z"]],!1)}r.push(s)}return r}function fD(e,t,n){for(var r=[],i=e.length-1;i>=0;i-=1){var o=e[i],a=cD(o),s=void 0;if(0===i)s=uD(a,t,n);else{var l=e[i-1],c=cD(l,!0),u=o[0];c[0][0]="L",s=yr(yr(yr([],br(a),!1),br(c),!1),[yr(["M"],br(u),!1),["Z"]],!1)}r.push(s)}return r}var pD=function(e,t){if(S(e)){for(var n,r=1/0,i=0;i<e.length;i++){var o=e[i],a=ki(t)?t(o):o[t];a<r&&(n=o,r=a)}return n}},gD=function(e,t){if(S(e)){for(var n,r=-1/0,i=0;i<e.length;i++){var o=e[i],a=ki(t)?t(o):o[t];a>r&&(n=o,r=a)}return n}};function mD(e){return 0===e.length?[0,0]:[Zr(pD(e,function(e){return Zr(e)||0})),ei(gD(e,function(e){return ei(e)||0}))]}function vD(e){for(var t=eD(e),n=t[0].length,r=br([Array(n).fill(0),Array(n).fill(0)],2),i=r[0],o=r[1],a=0;a<t.length;a+=1)for(var s=t[a],l=0;l<n;l+=1)s[l]>=0?(s[l]+=i[l],i[l]=s[l]):(s[l]+=o[l],o[l]=s[l]);return t}var AD=function(e){function t(t){return e.call(this,t,{type:"line",x:0,y:0,width:200,height:20,isStack:!1,color:["#83daad","#edbf45","#d2cef9","#e290b3","#6f63f4"],smooth:!0,lineLineWidth:1,areaOpacity:0,isGroup:!1,columnLineWidth:1,columnStroke:"#fff",scale:1,spacing:0})||this}return gr(t,e),Object.defineProperty(t.prototype,"rawData",{get:function(){var e=this.attributes.data;if(!e||0===(null===e||void 0===e?void 0:e.length))return[[]];var t=eD(e);return lr(t[0])?[t]:t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.attributes.isStack?vD(this.rawData):this.rawData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scales",{get:function(){return this.createScales(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"baseline",{get:function(){var e=this.scales.y,t=br(e.getOptions().domain||[0,0],2),n=t[0],r=t[1];return r<0?e.map(r):e.map(n<0?0:n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerShape",{get:function(){var e=this.attributes,t=e.width,n=e.height;return{width:t,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linesStyle",{get:function(){var e=this,t=this.attributes,n=t.type,r=t.isStack,i=t.smooth;if("line"!==n)throw new Error("linesStyle can only be used in line type");var o=US(this.attributes,"area"),a=US(this.attributes,"line"),s=this.containerShape.width,l=this.data;if(0===l[0].length)return{lines:[],areas:[]};var c=this.scales,u=c.x,d=c.y,h=sD(l,{type:"line",x:u,y:d}),f=[];if(o){var p=this.baseline;f=r?i?fD(h,s,p):hD(h,s,p):dD(h,i,s,p)}return{lines:h.map(function(t,n){return mr({stroke:e.getColor(n),d:i?cD(t):lD(t)},a)}),areas:f.map(function(t,n){return mr({d:t,fill:e.getColor(n)},o)})}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsStyle",{get:function(){var e=this,t=US(this.attributes,"column"),n=this.attributes,r=n.isStack,i=n.type,o=n.scale;if("column"!==i)throw new Error("columnsStyle can only be used in column type");var a=this.containerShape.height,s=this.rawData;if(!s)return{columns:[]};r&&(s=vD(s));var l=this.createScales(s),c=l.x,u=l.y,d=br(mD(s),2),h=d[0],f=d[1],p=new KM({domain:[0,f-(h>0?0:h)],range:[0,a*o]}),g=c.getBandWidth(),m=this.rawData;return{columns:s.map(function(n,i){return n.map(function(n,o){var a=g/s.length,l=function(){return{x:c.map(o)+a*i,y:n>=0?u.map(n):u.map(0),width:a,height:p.map(Math.abs(n))}},d=function(){return{x:c.map(o),y:u.map(n),width:g,height:p.map(m[i][o])}};return mr(mr({fill:e.getColor(i)},t),r?d():l())})})}},enumerable:!1,configurable:!0}),t.prototype.render=function(e,t){qb(t,".container","rect").attr("className","container").node();var n=e.type,r=e.x,i=e.y,o="spark".concat(n),a=mr({x:r,y:i},"line"===n?this.linesStyle:this.columnsStyle);Yb(t).selectAll(".spark").data([n]).join(function(e){return e.append(function(e){return"line"===e?new nD({className:o,style:a}):new tD({className:o,style:a})}).attr("className","spark ".concat(o))},function(e){return e.update(a)},function(e){return e.remove()})},t.prototype.getColor=function(e){var t=this.attributes.color;return S(t)?t[e%t.length]:ki(t)?t.call(null,e):t},t.prototype.createScales=function(e){var t,n,r=this.attributes,i=r.type,o=r.scale,a=r.range,s=void 0===a?[]:a,l=r.spacing,c=this.containerShape,u=c.width,d=c.height,h=br(mD(e),2),f=h[0],p=h[1],g=new KM({domain:[null!==(t=s[0])&&void 0!==t?t:f,null!==(n=s[1])&&void 0!==n?n:p],range:[d,d*(1-o)]});return"line"===i?{type:i,x:new KM({domain:[0,e[0].length-1],range:[0,u]}),y:g}:{type:i,x:new JI({domain:e[0].map(function(e,t){return t}),range:[0,u],paddingInner:l,paddingOuter:l/2,align:.5}),y:g}},t.tag="sparkline",t}(Hb),bD=function(e){function t(t){var n=e.call(this,t,mr(mr(mr({x:0,y:0,animate:{duration:100,fill:"both"},brushable:!0,formatter:function(e){return e.toString()},handleSpacing:2,orientation:"horizontal",padding:0,autoFitLabel:!0,scrollable:!0,selectionFill:"#5B8FF9",selectionFillOpacity:.45,selectionZIndex:2,showHandle:!0,showLabel:!0,slidable:!0,trackFill:"#416180",trackLength:200,trackOpacity:.05,trackSize:20,trackZIndex:-1,values:[0,1],type:"range",selectionType:"select",handleIconOffset:0},QS(nI,"handle")),QS(eI,"handleIcon")),QS(tI,"handleLabel")))||this;return n.range=[0,1],n.onDragStart=function(e){return function(t){t.stopPropagation(),n.target=e,n.prevPos=n.getOrientVal(qM(t));var r=n.availableSpace,i=r.x,o=r.y,a=n.getBBox(),s=a.x,l=a.y;n.selectionStartPos=n.getRatio(n.prevPos-n.getOrientVal([i,o])-n.getOrientVal([+s,+l])),n.selectionWidth=0,document.addEventListener("pointermove",n.onDragging),document.addEventListener("pointerup",n.onDragEnd)}},n.onDragging=function(e){var t=n.attributes,r=t.slidable,i=t.brushable,o=t.type;e.stopPropagation();var a=n.getOrientVal(qM(e)),s=a-n.prevPos;if(s){var l=n.getRatio(s);switch(n.target){case"start":r&&n.setValuesOffset(l);break;case"end":r&&n.setValuesOffset(0,l);break;case"selection":r&&n.setValuesOffset(l,l);break;case"track":if(!i)return;n.selectionWidth+=l,"range"===o?n.innerSetValues([n.selectionStartPos,n.selectionStartPos+n.selectionWidth].sort(),!0):n.innerSetValues([0,n.selectionStartPos+n.selectionWidth],!0);break;default:break}n.prevPos=a}},n.onDragEnd=function(){document.removeEventListener("pointermove",n.onDragging),document.removeEventListener("pointermove",n.onDragging),document.removeEventListener("pointerup",n.onDragEnd),n.target="",n.updateHandlesPosition(!1)},n.onValueChange=function(e){var t=n.attributes,r=t.onChange,i=t.type,o="range"===i?e:e[1],a="range"===i?n.getValues():n.getValues()[1],s=new ud("valuechange",{detail:{oldValue:o,value:a}});n.dispatchEvent(s),null===r||void 0===r||r(a)},n.selectionStartPos=0,n.selectionWidth=0,n.prevPos=0,n.target="",n}return gr(t,e),Object.defineProperty(t.prototype,"values",{get:function(){return this.attributes.values},set:function(e){this.attributes.values=this.clampValues(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sparklineStyle",{get:function(){var e=this.attributes.orientation;if("horizontal"!==e)return null;var t=US(this.attributes,"sparkline");return mr(mr({zIndex:0},this.availableSpace),t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shape",{get:function(){var e=this.attributes,t=e.trackLength,n=e.trackSize,r=br(this.getOrientVal([[t,n],[n,t]]),2),i=r[0],o=r[1];return{width:i,height:o}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"availableSpace",{get:function(){var e=this.attributes,t=(e.x,e.y,e.padding),n=br(nT(t),4),r=n[0],i=n[1],o=n[2],a=n[3],s=this.shape,l=s.width,c=s.height;return{x:a,y:r,width:l-(a+i),height:c-(r+o)}},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.values},t.prototype.setValues=function(e,t){void 0===e&&(e=[0,0]),void 0===t&&(t=!1),this.attributes.values=e;var n=!1!==t&&this.attributes.animate;this.updateSelectionArea(n),this.updateHandlesPosition(n)},t.prototype.updateSelectionArea=function(e){var t=this.calcSelectionArea();this.foregroundGroup.selectAll(rI.selection.class).each(function(n,r){wS(this,t[r],e)})},t.prototype.updateHandlesPosition=function(e){this.attributes.showHandle&&(this.startHandle&&wS(this.startHandle,this.getHandleStyle("start"),e),this.endHandle&&wS(this.endHandle,this.getHandleStyle("end"),e))},t.prototype.innerSetValues=function(e,t){void 0===e&&(e=[0,0]),void 0===t&&(t=!1);var n=this.values,r=this.clampValues(e);this.attributes.values=r,this.setValues(r),t&&this.onValueChange(n)},t.prototype.renderTrack=function(e){var t=this.attributes,n=t.x,r=t.y,i=US(this.attributes,"track");this.trackShape=Yb(e).maybeAppendByClassName(rI.track,"rect").styles(mr(mr({x:n,y:r},this.shape),i))},t.prototype.renderBrushArea=function(e){var t=this.attributes,n=t.x,r=t.y,i=t.brushable;this.brushArea=Yb(e).maybeAppendByClassName(rI.brushArea,"rect").styles(mr({x:n,y:r,fill:"transparent",cursor:i?"crosshair":"default"},this.shape))},t.prototype.renderSparkline=function(e){var t=this,n=this.attributes,r=n.x,i=n.y,o=n.orientation,a=Yb(e).maybeAppendByClassName(rI.sparklineGroup,"g");Ub("horizontal"===o,a,function(e){var n=mr(mr({},t.sparklineStyle),{x:r,y:i});e.maybeAppendByClassName(rI.sparkline,function(){return new AD({style:n})}).update(n)})},t.prototype.renderHandles=function(){var e,t=this,n=this.attributes,r=n.showHandle,i=n.type,o="range"===i?["start","end"]:["end"],a=r?o:[],s=this;null===(e=this.foregroundGroup)||void 0===e||e.selectAll(rI.handle.class).data(a.map(function(e){return{type:e}}),function(e){return e.type}).join(function(e){return e.append(function(e){var n=e.type;return new aI({style:t.getHandleStyle(n)})}).each(function(e){var t=e.type;this.attr("class","".concat(rI.handle.name," ").concat(t,"-handle"));var n="".concat(t,"Handle");s[n]=this,this.addEventListener("pointerdown",s.onDragStart(t))})},function(e){return e.each(function(e){var t=e.type;this.update(s.getHandleStyle(t))})},function(e){return e.each(function(e){var t=e.type,n="".concat(t,"Handle");s[n]=void 0}).remove()})},t.prototype.renderSelection=function(e){var t=this.attributes,n=t.x,r=t.y,i=t.type,o=t.selectionType;this.foregroundGroup=Yb(e).maybeAppendByClassName(rI.foreground,"g");var a=US(this.attributes,"selection"),s=function(e){return e.style("visibility",function(e){return e.show?"visible":"hidden"}).style("cursor",function(e){return"select"===o?"grab":"invert"===o?"crosshair":"default"}).styles(mr(mr({},a),{transform:"translate(".concat(n,", ").concat(r,")")}))},l=this;this.foregroundGroup.selectAll(rI.selection.class).data("value"===i?[]:this.calcSelectionArea().map(function(e,t){return{style:mr({},e),index:t,show:"select"===o?1===t:1!==t}}),function(e){return e.index}).join(function(e){return e.append("rect").attr("className",rI.selection.name).call(s).each(function(e,t){var n=this;1===t?(l.selectionShape=Yb(this),this.on("pointerdown",function(e){n.attr("cursor","grabbing"),l.onDragStart("selection")(e)}),l.dispatchCustomEvent(this,"pointerenter","selectionMouseenter"),l.dispatchCustomEvent(this,"pointerleave","selectionMouseleave"),l.dispatchCustomEvent(this,"click","selectionClick"),this.addEventListener("pointerdown",function(){n.attr("cursor","grabbing")}),this.addEventListener("pointerup",function(){n.attr("cursor","pointer")}),this.addEventListener("pointerover",function(){n.attr("cursor","pointer")})):this.on("pointerdown",l.onDragStart("track"))})},function(e){return e.call(s)},function(e){return e.remove()}),this.updateSelectionArea(!1),this.renderHandles()},t.prototype.render=function(e,t){this.renderTrack(t),this.renderSparkline(t),this.renderBrushArea(t),this.renderSelection(t)},t.prototype.clampValues=function(e,t){var n;void 0===t&&(t=4);var r=br(this.range,2),i=r[0],o=r[1],a=br(this.getValues().map(function(e){return YM(e,t)}),2),s=a[0],l=a[1],c=Array.isArray(e)?e:[s,null!==e&&void 0!==e?e:l],u=br((c||[s,l]).map(function(e){return YM(e,t)}),2),d=u[0],h=u[1];if("value"===this.attributes.type)return[0,fr(h,i,o)];d>h&&(n=br([h,d],2),d=n[0],h=n[1]);var f=h-d;return f>o-i?[i,o]:d<i?s===i&&l===h?[i,h]:[i,f+i]:h>o?l===o&&s===d?[d,o]:[o-f,o]:[d,h]},t.prototype.calcSelectionArea=function(e){var t=br(this.clampValues(e),2),n=t[0],r=t[1],i=this.availableSpace,o=i.x,a=i.y,s=i.width,l=i.height;return this.getOrientVal([[{y:a,height:l,x:o,width:n*s},{y:a,height:l,x:n*s+o,width:(r-n)*s},{y:a,height:l,x:r*s,width:(1-r)*s}],[{x:o,width:s,y:a,height:n*l},{x:o,width:s,y:n*l+a,height:(r-n)*l},{x:o,width:s,y:r*l,height:(1-r)*l}]])},t.prototype.calcHandlePosition=function(e){var t=this.attributes.handleIconOffset,n=this.availableSpace,r=n.x,i=n.y,o=n.width,a=n.height,s=br(this.clampValues(),2),l=s[0],c=s[1],u="start"===e?-t:t,d=("start"===e?l:c)*this.getOrientVal([o,a])+u;return{x:r+this.getOrientVal([d,o/2]),y:i+this.getOrientVal([a/2,d])}},t.prototype.inferTextStyle=function(e){var t=this.attributes.orientation;return"horizontal"===t?{}:"start"===e?{transformOrigin:"left center",transform:"rotate(90)",textAlign:"start"}:"end"===e?{transformOrigin:"right center",transform:"rotate(90)",textAlign:"end"}:{}},t.prototype.calcHandleText=function(e){var t,n=this.attributes,r=n.type,i=n.orientation,o=n.formatter,a=n.autoFitLabel,s=US(this.attributes,"handle"),l=US(s,"label"),c=s.spacing,u=this.getHandleSize(),d=this.clampValues(),h="start"===e?d[0]:d[1],f=o(h),p=new Wb({style:mr(mr(mr({},l),this.inferTextStyle(e)),{text:f})}),g=p.getBBox(),m=g.width,v=g.height;if(p.destroy(),!a){if("value"===r)return{text:f,x:0,y:-v-c};var A=c+u+("horizontal"===i?m/2:0);return t={text:f},t["horizontal"===i?"x":"y"]="start"===e?-A:A,t}var b=0,y=0,w=this.availableSpace,_=w.width,x=w.height,E=this.calcSelectionArea()[1],S=E.x,C=E.y,T=E.width,k=E.height,O=c+u;if("horizontal"===i){var M=O+m/2;if("start"===e){var I=S-O-m;b=I>0?-M:M}else{var D=_-S-T-O>m;b=D?M:-M}}else{var N=O,R=v+O;y="start"===e?C-u>v?-R:N:x-(C+k)-u>v?R:-N}return{x:b,y:y,text:f}},t.prototype.getHandleLabelStyle=function(e){var t=US(this.attributes,"handleLabel");return mr(mr(mr({},t),this.calcHandleText(e)),this.inferTextStyle(e))},t.prototype.getHandleIconStyle=function(){var e=this.attributes.handleIconShape,t=US(this.attributes,"handleIcon"),n=this.getOrientVal(["ew-resize","ns-resize"]),r=this.getHandleSize();return mr({cursor:n,shape:e,size:r},t)},t.prototype.getHandleStyle=function(e){var t=this.attributes,n=t.x,r=t.y,i=t.showLabel,o=t.showLabelOnInteraction,a=t.orientation,s=this.calcHandlePosition(e),l=s.x,c=s.y,u=this.calcHandleText(e),d=i;return!i&&o&&(d=!!this.target),mr(mr(mr({},QS(this.getHandleIconStyle(),"icon")),QS(mr(mr({},this.getHandleLabelStyle(e)),u),"label")),{transform:"translate(".concat(l+n,", ").concat(c+r,")"),orientation:a,showLabel:d,type:e,zIndex:3})},t.prototype.getHandleSize=function(){var e=this.attributes,t=e.handleIconSize,n=e.width,r=e.height;return t||Math.floor((this.getOrientVal([+r,+n])+4)/2.4)},t.prototype.getOrientVal=function(e){var t=br(e,2),n=t[0],r=t[1],i=this.attributes.orientation;return"horizontal"===i?n:r},t.prototype.setValuesOffset=function(e,t){void 0===t&&(t=0);var n=this.attributes.type,r=br(this.getValues(),2),i=r[0],o=r[1],a="range"===n?e:0,s=[i+a,o+t].sort();this.innerSetValues(s,!0)},t.prototype.getRatio=function(e){var t=this.availableSpace,n=t.width,r=t.height;return e/this.getOrientVal([n,r])},t.prototype.dispatchCustomEvent=function(e,t,n){var r=this;e.on(t,function(e){e.stopPropagation(),r.dispatchEvent(new ud(n,{detail:e}))})},t.prototype.bindEvents=function(){this.addEventListener("wheel",this.onScroll);var e=this.brushArea;this.dispatchCustomEvent(e,"click","trackClick"),this.dispatchCustomEvent(e,"pointerenter","trackMouseenter"),this.dispatchCustomEvent(e,"pointerleave","trackMouseleave"),e.on("pointerdown",this.onDragStart("track"))},t.prototype.onScroll=function(e){var t=this.attributes.scrollable;if(t){var n=e.deltaX,r=e.deltaY,i=r||n,o=this.getRatio(i);this.setValuesOffset(o,o)}},t.tag="slider",t}(Hb);function yD(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function wD(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function _D(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<0?i=t+1:o=t}while(i<o)}return i}function o(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<=0?i=t+1:o=t}while(i<o)}return i}function a(e,t,n=0,o=e.length){const a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a}return 2!==e.length?(t=yD,n=(t,n)=>yD(e(t),n),r=(t,n)=>e(t)-n):(t=e===yD||e===wD?e:xD,n=e,r=e),{left:i,center:a,right:o}}function xD(){return 0}function ED(e){return null===e?NaN:+e}function*SD(e,t){if(void 0===t)for(let n of e)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}const CD=_D(yD),TD=CD.right,kD=CD.left,OD=_D(ED).center;var MD=TD;function ID(e,t){return Array.from(t,t=>e[t])}function DD(e,...t){if("function"!==typeof e[Symbol.iterator])throw new TypeError("values is not iterable");e=Array.from(e);let[n]=t;if(n&&2!==n.length||t.length>1){const r=Uint32Array.from(e,(e,t)=>t);return t.length>1?(t=t.map(t=>e.map(t)),r.sort((e,n)=>{for(const r of t){const t=RD(r[e],r[n]);if(t)return t}})):(n=e.map(n),r.sort((e,t)=>RD(n[e],n[t]))),ID(e,r)}return e.sort(ND(n))}function ND(e=yD){if(e===yD)return RD;if("function"!==typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}function RD(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}function LD(e,t,n){return Math.min(n,Math.max(t,e))}function BD(e){return!!e.getBandWidth}function PD(e,t,n){if(!BD(e))return e.invert(t);const{adjustedRange:r}=e;if(r.includes(t))return e.invert(t);const{domain:i}=e.getOptions(),o=n?-1:0,a=e.getStep(),s=n?r:r.map(e=>e+a),l=kD(s,t),c=LD(l+o,0,i.length-1);return i[c]}function FD(e,t,n){if(!t)return e.getOptions().domain;if(!BD(e)){const r=DD(t);if(!n)return r;const[i]=r,{range:o}=e.getOptions(),[a,s]=o,l=a>s?-1:1,c=e.invert(e.map(i)+l*n);return[i,c]}const{domain:r}=e.getOptions(),i=t[0],o=r.indexOf(i);if(n){const e=o+Math.round(r.length*n);return r.slice(o,e)}const a=t[t.length-1],s=r.indexOf(a);return r.slice(o,s+1)}function $D(e,t,n,r,i,o){const{x:a,y:s}=i,l=(e,t)=>{const[n,r]=o.invert(e);return[PD(a,n,t),PD(s,r,t)]},c=l([e,t],!0),u=l([n,r],!1),d=FD(a,[c[0],u[0]]),h=FD(s,[c[1],u[1]]);return[d,h]}function jD(e,t){const[n,r]=e,i=e=>e.getStep?e.getStep():0;return[t.map(n),t.map(r)+i(t)]}const HD=(e,t)=>{var n,r;const[i,o]=e,a=(null===(r=null===(n=t.getOptions)||void 0===n?void 0:n.call(t))||void 0===r?void 0:r.domain)||[],s=a.indexOf(i),l=a.indexOf(o);if(-1===s||-1===l)return[t.map(i),t.map(o)];const c=a.length;return c<=1?[0,1]:[s/(c-1),l/(c-1)]};function UD(e,t,n){const{x:r,y:i}=t,[o,a]=e,s=jD(o,r),l=jD(a,i),c=[s[0],l[0]],u=[s[1],l[1]],[d,h]=n.map(c),[f,p]=n.map(u);return[d,h,f,p]}var QD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function zD(e,t,n){const{x:r,y:i,width:o,height:a}=e;return"left"===t?[r+o-n,i]:"right"===t||"bottom"===t?[r,i]:"top"===t?[r,i+a-n]:void 0}const WD=e=>{const{orientation:t,labelFormatter:n,size:r,style:i={},position:o}=e,a=QD(e,["orientation","labelFormatter","size","style","position"]);return r=>{var s;const{scales:[l],value:c,theme:u,coordinate:d}=r,{bbox:h}=c,{width:f,height:p}=h,{slider:g={}}=u,m=(null===(s=l.getFormatter)||void 0===s?void 0:s.call(l))||(e=>e+""),v="string"===typeof n?Tk(n):n,A="horizontal"===t,b=Se(d)&&A,{trackSize:y=g.trackSize}=i,[w,_]=zD(h,o,y);return new bD({className:"slider",style:Object.assign({},g,Object.assign(Object.assign({x:w,y:_,trackLength:A?f:p,orientation:t,formatter:e=>{const t=v||m,n=b?1-e:e,r=PD(l,n,!0);return t(r)},sparklineData:VD(e,r)},i),a))})}};function GD(e,t){const[n]=Array.from(e.entries()).filter(([e])=>"line"===e.type||"area"===e.type).filter(([e])=>e.slider).map(([e])=>{const{encode:n,slider:r}=e;if(null===r||void 0===r?void 0:r.x){const e=e=>{const t=n[e];return[e,t?t.value:void 0]};return Object.fromEntries(t.map(e))}});if(!(null===n||void 0===n?void 0:n.series))return null===n||void 0===n?void 0:n.y;const r=n.series.reduce((e,t,r)=>(e[t]=e[t]||[],e[t].push(n.y[r]),e),{});return Object.values(r)}function VD(e,t){const{markState:n}=t;return S(e.sparklineData)?e.sparklineData:GD(n,["y","series"])}WD.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const KD=e=>WD(Object.assign(Object.assign({},e),{orientation:"horizontal"}));KD.props=Object.assign(Object.assign({},WD.props),{defaultPosition:"bottom"});const YD=e=>WD(Object.assign(Object.assign({},e),{orientation:"vertical"}));YD.props=Object.assign(Object.assign({},WD.props),{defaultPosition:"left"});var qD=function(e){function t(t){var n=e.call(this,t,{x:0,y:0,isRound:!0,orientation:"vertical",padding:[2,2,2,2],scrollable:!0,slidable:!0,thumbCursor:"default",trackSize:10,value:0})||this;return n.range=[0,1],n.onValueChange=function(e){var t=n.attributes.value;if(e!==t){var r={detail:{oldValue:e,value:t}};n.dispatchEvent(new ud("scroll",r)),n.dispatchEvent(new ud("valuechange",r))}},n.onTrackClick=function(e){var t=n.attributes.slidable;if(t){var r=br(n.getLocalPosition(),2),i=r[0],o=r[1],a=br(n.padding,4),s=a[0],l=a[3],c=n.getOrientVal([i+l,o+s]),u=n.getOrientVal(qM(e)),d=(u-c)/n.trackLength;n.setValue(d,!0)}},n.onThumbMouseenter=function(e){n.dispatchEvent(new ud("thumbMouseenter",{detail:e.detail}))},n.onTrackMouseenter=function(e){n.dispatchEvent(new ud("trackMouseenter",{detail:e.detail}))},n.onThumbMouseleave=function(e){n.dispatchEvent(new ud("thumbMouseleave",{detail:e.detail}))},n.onTrackMouseleave=function(e){n.dispatchEvent(new ud("trackMouseleave",{detail:e.detail}))},n}return gr(t,e),Object.defineProperty(t.prototype,"padding",{get:function(){var e=this.attributes.padding;return nT(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var e=this.attributes.value,t=br(this.range,2),n=t[0],r=t[1];return fr(e,n,r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trackLength",{get:function(){var e=this.attributes,t=e.viewportLength,n=e.trackLength,r=void 0===n?t:n;return r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"availableSpace",{get:function(){var e=this.attributes.trackSize,t=this.trackLength,n=br(this.padding,4),r=n[0],i=n[1],o=n[2],a=n[3],s=br(this.getOrientVal([[t,e],[e,t]]),2),l=s[0],c=s[1];return{x:a,y:r,width:+l-(a+i),height:+c-(r+o)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trackRadius",{get:function(){var e=this.attributes,t=e.isRound,n=e.trackSize;return t?n/2:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"thumbRadius",{get:function(){var e=this.attributes,t=e.isRound,n=e.thumbRadius;if(!t)return 0;var r=this.availableSpace,i=r.width,o=r.height;return n||this.getOrientVal([o,i])/2},enumerable:!1,configurable:!0}),t.prototype.getValues=function(e){void 0===e&&(e=this.value);var t=this.attributes,n=t.viewportLength,r=t.contentLength,i=n/r,o=br(this.range,2),a=o[0],s=o[1],l=e*(s-a-i);return[l,l+i]},t.prototype.getValue=function(){return this.value},t.prototype.renderSlider=function(e){var t=this.attributes,n=t.x,r=t.y,i=t.orientation,o=t.trackSize,a=t.padding,s=t.slidable,l=US(this.attributes,"track"),c=US(this.attributes,"thumb"),u=mr(mr({x:n,y:r,brushable:!1,orientation:i,padding:a,selectionRadius:this.thumbRadius,showHandle:!1,slidable:s,trackLength:this.trackLength,trackRadius:this.trackRadius,trackSize:o,values:this.getValues()},QS(l,"track")),QS(c,"selection"));this.slider=Yb(e).maybeAppendByClassName("scrollbar",function(){return new bD({style:u})}).update(u).node()},t.prototype.render=function(e,t){this.renderSlider(t)},t.prototype.setValue=function(e,t){void 0===t&&(t=!1);var n=this.attributes.value,r=br(this.range,2),i=r[0],o=r[1];this.slider.setValues(this.getValues(fr(e,i,o)),t),this.onValueChange(n)},t.prototype.bindEvents=function(){var e=this;this.slider.addEventListener("trackClick",function(t){t.stopPropagation(),e.onTrackClick(t.detail)}),this.onHover()},t.prototype.getOrientVal=function(e){var t=this.attributes.orientation;return"horizontal"===t?e[0]:e[1]},t.prototype.onHover=function(){this.slider.addEventListener("selectionMouseenter",this.onThumbMouseenter),this.slider.addEventListener("trackMouseenter",this.onTrackMouseenter),this.slider.addEventListener("selectionMouseleave",this.onThumbMouseleave),this.slider.addEventListener("trackMouseleave",this.onTrackMouseleave)},t.tag="scrollbar",t}(Hb),XD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const JD=e=>{const{orientation:t,labelFormatter:n,style:r}=e,i=XD(e,["orientation","labelFormatter","style"]);return({scales:[e],value:n,theme:o})=>{const{bbox:a}=n,{x:s,y:l,width:c,height:u}=a,{scrollbar:d={}}=o,{ratio:h,range:f}=e.getOptions(),p="horizontal"===t?c:u,g=p/h,[m,v]=f,A=v>m?0:1;return new qD({className:"g2-scrollbar",style:Object.assign({},d,Object.assign(Object.assign(Object.assign(Object.assign({},r),{x:s,y:l,trackLength:p,value:A}),i),{orientation:t,contentLength:g,viewportLength:p}))})}};JD.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const ZD=e=>JD(Object.assign(Object.assign({},e),{orientation:"horizontal"}));ZD.props=Object.assign(Object.assign({},JD.props),{defaultPosition:"bottom"});const eN=e=>JD(Object.assign(Object.assign({},e),{orientation:"vertical"}));eN.props=Object.assign(Object.assign({},JD.props),{defaultPosition:"left"});const tN=(e,t)=>{const n=1e-4,{coordinate:r}=t;return(t,i,o)=>{const[a]=t,{transform:s="",fillOpacity:l=1,strokeOpacity:c=1,opacity:u=1}=a.style,[d,h]=Se(r)?["left bottom",`scale(1, ${n})`]:["left top",`scale(${n}, 1)`],f=[{transform:`${s} ${h}`.trimStart(),transformOrigin:d,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${s} ${h}`.trimStart(),transformOrigin:d,fillOpacity:l,strokeOpacity:c,opacity:u,offset:.01},{transform:`${s} scale(1, 1)`.trimStart(),transformOrigin:d,fillOpacity:l,strokeOpacity:c,opacity:u}],p=a.animate(f,Object.assign(Object.assign({},o),e));return p}},nN=(e,t)=>{const n=1e-4,{coordinate:r}=t;return(t,i,o)=>{const[a]=t,{transform:s="",fillOpacity:l=1,strokeOpacity:c=1,opacity:u=1}=a.style,[d,h]=Se(r)?["left bottom",`scale(1, ${n})`]:["left top",`scale(${n}, 1)`],f=[{transform:`${s} scale(1, 1)`.trimStart(),transformOrigin:d},{transform:`${s} ${h}`.trimStart(),transformOrigin:d,fillOpacity:l,strokeOpacity:c,opacity:u,offset:.99},{transform:`${s} ${h}`.trimStart(),transformOrigin:d,fillOpacity:0,strokeOpacity:0,opacity:0}],p=a.animate(f,Object.assign(Object.assign({},o),e));return p}},rN=(e,t)=>{const n=1e-4,{coordinate:r}=t;return Fh.registerProperty({name:"scaleInYRadius",inherits:!1,initialValue:"",interpolable:!0,syntax:Sa.NUMBER}),(t,i,o)=>{const[a]=t,s=t=>{const{__data__:i,style:a}=t,{fillOpacity:s=1,strokeOpacity:l=1,opacity:c=1}=a,{points:u,y:d,y1:h}=i,f=Lm(r,u,[d,h]),{innerRadius:p,outerRadius:g}=f,m=[{scaleInYRadius:p+n,fillOpacity:0,strokeOpacity:0,opacity:0},{scaleInYRadius:p+n,fillOpacity:s,strokeOpacity:l,opacity:c,offset:.01},{scaleInYRadius:g,fillOpacity:s,strokeOpacity:l,opacity:c}],v=t.animate(m,Object.assign(Object.assign({},o),e));return v},l=t=>{const{style:i}=t,{transform:a="",fillOpacity:s=1,strokeOpacity:l=1,opacity:c=1}=i,[u,d]=Se(r)?["left top",`scale(${n}, 1)`]:["left bottom",`scale(1, ${n})`],h=[{transform:`${a} ${d}`.trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${a} ${d}`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:l,opacity:c,offset:.01},{transform:`${a} scale(1, 1)`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:l,opacity:c}],f=t.animate(h,Object.assign(Object.assign({},o),e));return f};return Ce(r)?s(a):l(a)}},iN=(e,t)=>{const n=1e-4,{coordinate:r}=t;return(t,i,o)=>{const[a]=t,{transform:s="",fillOpacity:l=1,strokeOpacity:c=1,opacity:u=1}=a.style,[d,h]=Se(r)?["left top",`scale(${n}, 1)`]:["left bottom",`scale(1, ${n})`],f=[{transform:`${s} scale(1, 1)`.trimStart(),transformOrigin:d},{transform:`${s} ${h}`.trimStart(),transformOrigin:d,fillOpacity:l,strokeOpacity:c,opacity:u,offset:.99},{transform:`${s} ${h}`.trimStart(),transformOrigin:d,fillOpacity:0,strokeOpacity:0,opacity:0}],p=a.animate(f,Object.assign(Object.assign({},o),e));return p}},oN=(e,t)=>{const n=1e-4;Fh.registerProperty({name:"waveInArcAngle",inherits:!1,initialValue:"",interpolable:!0,syntax:Sa.NUMBER});const{coordinate:r}=t;return(i,o,a)=>{const[s]=i;if(!Ce(r))return tN(e,t)(i,o,a);const{__data__:l,style:c}=s,{radius:u=0,inset:d=0,fillOpacity:h=1,strokeOpacity:f=1,opacity:p=1}=c,{points:g,y:m,y1:v}=l,A=Ee().cornerRadius(u).padAngle(d*Math.PI/180),b=Lm(r,g,[m,v]),{startAngle:y,endAngle:w}=b,_=[{waveInArcAngle:y+n,fillOpacity:0,strokeOpacity:0,opacity:0},{waveInArcAngle:y+n,fillOpacity:h,strokeOpacity:f,opacity:p,offset:.01},{waveInArcAngle:w,fillOpacity:h,strokeOpacity:f,opacity:p}],x=s.animate(_,Object.assign(Object.assign({},a),e));return x.onframe=function(){s.style.d=A(Object.assign(Object.assign({},b),{endAngle:Number(s.style.waveInArcAngle)}))},x.onfinish=function(){s.style.d=A(Object.assign(Object.assign({},b),{endAngle:w}))},x}};oN.props={};const aN=e=>(t,n,r)=>{const[i]=t,{fillOpacity:o=1,strokeOpacity:a=1,opacity:s=1}=i.style,l=[{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:o,strokeOpacity:a,opacity:s}];return i.animate(l,Object.assign(Object.assign({},r),e))};aN.props={};const sN=e=>(t,n,r)=>{const[i]=t,{fillOpacity:o=1,strokeOpacity:a=1,opacity:s=1}=i.style,l=[{fillOpacity:o,strokeOpacity:a,opacity:s},{fillOpacity:0,strokeOpacity:0,opacity:0}];return i.animate(l,Object.assign(Object.assign({},r),e))};sN.props={};const lN=e=>{const t=1e-4;return(n,r,i)=>{const[o]=n,{transform:a="",fillOpacity:s=1,strokeOpacity:l=1,opacity:c=1}=o.style,u="center center",d=[{transform:`${a} scale(${t})`.trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0},{transform:`${a} scale(${t})`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:l,opacity:c,offset:.01},{transform:`${a} scale(1)`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:l,opacity:c}],h=o.animate(d,Object.assign(Object.assign({},i),e));return h}},cN=e=>{const t=1e-4;return(n,r,i)=>{const[o]=n,{transform:a="",fillOpacity:s=1,strokeOpacity:l=1,opacity:c=1}=o.style,u="center center",d=[{transform:`${a} scale(1)`.trimStart(),transformOrigin:u},{transform:`${a} scale(${t})`.trimStart(),transformOrigin:u,fillOpacity:s,strokeOpacity:l,opacity:c,offset:.99},{transform:`${a} scale(${t})`.trimStart(),transformOrigin:u,fillOpacity:0,strokeOpacity:0,opacity:0}],h=o.animate(d,Object.assign(Object.assign({},i),e));return h}},uN=e=>(t,n,r)=>{var i,o;const[a]=t,s=(null===(o=(i=a).getTotalLength)||void 0===o?void 0:o.call(i))||0,l=[{lineDash:[0,s]},{lineDash:[s,0]}];return a.animate(l,Object.assign(Object.assign({},r),e))};uN.props={};const dN={opacity:1,strokeOpacity:1,fillOpacity:1,lineWidth:0,x:0,y:0,cx:0,cy:0,r:0,rx:0,ry:0,width:0,height:0},hN={[_o.CIRCLE]:["cx","cy","r"],[_o.ELLIPSE]:["cx","cy","rx","ry"],[_o.RECT]:["x","y","width","height"],[_o.IMAGE]:["x","y","width","height"],[_o.LINE]:["x1","y1","x2","y2"],[_o.POLYLINE]:["points"],[_o.POLYGON]:["points"]};function fN(e,t,n=!1){const r={};for(const i of t){const t=e.style[i];t?r[i]=t:n&&(r[i]=dN[i])}return r}const pN=["fill","stroke","fillOpacity","strokeOpacity","opacity","lineWidth"];function gN(e){const{min:t,max:n}=e.getLocalBounds(),[r,i]=t,[o,a]=n,s=a-i,l=o-r;return[r,i,l,s]}function mN(e){const[t,n,r,i]=e;return`\n    M ${t} ${n}\n    L ${t+r} ${n}\n    L ${t+r} ${n+i}\n    L ${t} ${n+i}\n    Z\n  `}function vN(e,t){const[n,r,i,o]=gN(e),a=o/i,s=Math.ceil(Math.sqrt(t/a)),l=Math.ceil(t/s),c=[],u=o/l;let d=0,h=t;while(h>0){const e=Math.min(h,s),t=i/e;for(let i=0;i<e;i++){const e=n+i*t,o=r+d*u;c.push(mN([e,o,t,u]))}h-=e,d+=1}return c}function AN(e="pack"){return"function"==typeof e?e:vN}function bN(e,t,n){let{transform:r}=e.style;const{transform:i}=t.style;yN(t,e);let o=pN;if(e.nodeName===_o.GROUP){const[n,i,o,a]=gN(e),[s,l,c,u]=gN(t),d=n-s,h=i-l,f=o/c,p=a/u;r=`translate(${d}, ${h}) scale(${f}, ${p})`}else o=o.concat(hN[e.nodeName]||[]);const a=[Object.assign({transform:null!==r&&void 0!==r?r:"none"},fN(e,o,!0)),Object.assign({transform:null!==i&&void 0!==i?i:"none"},fN(t,o,!0))],s=t.animate(a,n);return s}function yN(e,t){e["__data__"]=t["__data__"],e.className=t.className,e.markType=t.markType,t.parentNode.replaceChild(e,t)}function wN(e,t){const{nodeName:n}=e;if("path"===n)return e;const r=new Oh({style:Object.assign(Object.assign({},fN(e,pN)),{d:t})});return yN(r,e),r}function _N(e,t){const n=e.indexOf(t),r=e.lastIndexOf(t);return n===r}function xN(e){return!_N(e,"m")||!_N(e,"M")}function EN(e){const t=Jl(e);if(t&&!xN(t))return t}function SN(e){const{nodeName:t}=e;if("path"===t){const t=oC(e,"attributes");return t.markerEnd||t.markerStart}return!1}function CN(e,t,n,r){const{nodeName:i}=t,{nodeName:o}=n,a=EN(t),s=EN(n),{opacity:l=1,strokeOpacity:c=1,fillOpacity:u=1}=t.style,{opacity:d=1,strokeOpacity:h=1,fillOpacity:f=1}=n.style,p=i===o&&"path"!==i,g=void 0===a||void 0===s,m=SN(t)||SN(n);if(p||g||m)return bN(t,n,r);const v=wN(e,a),A=Object.assign(Object.assign({},fN(t,pN)),{opacity:l,strokeOpacity:c,fillOpacity:u}),b=Object.assign(Object.assign({},fN(n,pN)),{opacity:d,strokeOpacity:h,fillOpacity:f}),y=[A,b];if(a!==s){y[0].d=a,y[1].d=s;const e=v.animate(y,r);return e.onfinish=()=>{Sg(v,n),v.style.d=s,v.style.transform="none"},v.style.transform="none",e}return iD(A,b)?null:v.animate(y,r)}function TN(e,t,n,r){e.style.visibility="hidden";const i=r(e,t.length);return t.map((t,r)=>{const o=new Oh({style:Object.assign({d:i[r]},fN(e,pN))});return CN(t,o,t,n)})}function kN(e,t,n,r){const i=r(t,e.length),{fillOpacity:o=1,strokeOpacity:a=1,opacity:s=1}=t.style,l=[{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:0,strokeOpacity:0,opacity:0,offset:.99},{fillOpacity:o,strokeOpacity:a,opacity:s}],c=t.animate(l,n),u=e.map((e,r)=>{const o=new Oh({style:{d:i[r],fill:t.style.fill}});return CN(e,e,o,n)});return[...u,c]}const ON=e=>(t,n,r)=>{const i=AN(e.split),o=Object.assign(Object.assign({},r),e),{length:a}=t,{length:s}=n;if(1===a&&1===s||a>1&&s>1){const[e]=t,[r]=n;return CN(e,e,r,o)}if(1===a&&s>1){const[e]=t;return TN(e,n,o,i)}if(a>1&&1===s){const[e]=n;return kN(t,e,o,i)}return null};ON.props={};const MN=(e,t)=>(n,r,i)=>{const[o]=n,{min:[a,s],halfExtents:l}=o.getLocalBounds(),c=2*l[0],u=2*l[1],d=new Oh({style:{d:`M${a},${s}L${a+c},${s}L${a+c},${s+u}L${a},${s+u}Z`}});o.appendChild(d),o.style.clipPath=d;const h=tN(e,t)([d],r,i);return h};MN.props={};const IN=(e,t)=>(n,r,i)=>{const[o]=n,{min:[a,s],halfExtents:l}=o.getLocalBounds(),c=2*l[0],u=2*l[1],d=new Oh({style:{d:`M${a},${s}L${a+c},${s}L${a+c},${s+u}L${a},${s+u}Z`}});o.appendChild(d),o.style.clipPath=d;const h=rN(e,t)([d],r,i);return h};IN.props={};var DN=function(e,t){if(!qg(e))return e;for(var n=[],r=0;r<e.length;r++){var i=e[r];t(i,r)&&n.push(i)}return n},NN=DN;const RN="main-layer",LN="label-layer",BN="element",PN="view",FN="plot",$N="component",jN="label",HN="area",UN="axis-breaks",QN="axis-breaks-group";function zN(e,t){if(t(e))return!0;if("g"===e.tagName){const{childNodes:n=[]}=e;for(const e of n)if(zN(e,t))return!0}return!1}const WN={visibility:"visible",opacity:1,fillOpacity:1,strokeOpacity:1};function GN(e,t){let n;return zN(e,e=>{var r;return"g"!==e.tagName&&void 0!==(null===(r=e.style)||void 0===r?void 0:r[t])&&(n=e.style[t],!0)}),null!==n&&void 0!==n?n:WN[t]}function VN(e,t,n,r){e.style[t]=n,r&&e.children.forEach(e=>VN(e,t,n,r))}function KN(e){VN(e,"visibility","hidden",!0)}function YN(e){VN(e,"visibility","visible",!0)}var qN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function XN(e){return Pg(e).selectAll(`.${BN}`).nodes().filter(e=>!e.__removed__)}function JN(e,t){return ZN(e,t).flatMap(({container:e})=>XN(e))}function ZN(e,t){return t.filter(t=>t!==e&&t.options.parentKey===e.options.key)}function eR(e){return Pg(e).select(`.${FN}`).node()}function tR(e){if("g"===e.tagName)return e.getRenderBounds();const t=e.getGeometryBounds(),n=new Do;return n.setFromTransformedAABB(t,e.getWorldTransform()),n}function nR(e,t){const{offsetX:n,offsetY:r}=t,i=tR(e),{min:[o,a],max:[s,l]}=i,c=n<o||n>s,u=r<a||r>l;return c||u?null:[n-o,r-a]}function rR(e,t){const{offsetX:n,offsetY:r}=t,[i,o,a,s]=iR(e);return[Math.min(a,Math.max(i,n))-i,Math.min(s,Math.max(o,r))-o]}function iR(e){const t=e.getRenderBounds(),{min:[n,r],max:[i,o]}=t;return[n,r,i,o]}function oR(e){return e=>e.__data__.color}function aR(e){return e=>e.__data__.x}function sR(e){const t=Array.isArray(e)?e:[e],n=new Map(t.flatMap(e=>{const t=Array.from(e.markState.keys());return t.map(t=>[pR(e.key,t.key),t.data])}));return e=>{const{index:t,markKey:r,viewKey:i}=e.__data__,o=n.get(pR(i,r));return o[t]}}const lR={selected:3,unselected:3,active:2,inactive:2,default:1},cR={selection:["selected","unselected"],highlight:["active","inactive"]},uR=(e,t,n)=>{zN(e,e=>{"setAttribute"in e&&"function"===typeof e.setAttribute&&e.setAttribute(t,n)})};function dR(e,t){return t.forEach(t=>{const n=t.__interactionStyle__;t.__interactionStyle__=n?Object.assign(Object.assign({},n),e):e}),(e=(e,t)=>e,t=uR)=>hR(void 0,e,t)}function hR(e,t=(e,t)=>e,n=uR){const r="__states__",i="__ordinal__",o=e=>lR[e]||lR.default,a=e=>{var t;return null===(t=Object.entries(cR).find(([t,n])=>n.includes(e)))||void 0===t?void 0:t[0]},s=a=>{var s;const{[r]:l=[],[i]:c={}}=a,u=[...l].sort((e,t)=>o(t)-o(e)),d=new Map;for(const t of u){const n=(null===(s=null!==e&&void 0!==e?e:a.__interactionStyle__)||void 0===s?void 0:s[t])||{};for(const[e,t]of Object.entries(n))d.has(e)||d.set(e,t)}const h=Object.assign({},c);for(const[e,t]of d.entries())h[e]=t;if(0!==Object.keys(h).length){for(const[e,r]of Object.entries(h)){const i=GN(a,e),o=t(r,a);n(a,e,o),e in c||(c[e]=i)}a[i]=c}},l=e=>{e[r]||(e[r]=[])},c=(e,...t)=>{l(e);const n=e[r],i=new Set(t.map(e=>a(e)).filter(e=>void 0!==e)),o=n.filter(e=>!i.has(a(e)));e[r]=[...o,...t],s(e)},u=(e,...t)=>{l(e),e[r]=[...t],s(e)},d=(e,...t)=>{l(e);for(const n of t){const t=e[r].indexOf(n);-1!==t&&e[r].splice(t,1)}s(e)},h=(e,t)=>(l(e),-1!==e[r].indexOf(t));return{setState:u,updateState:c,removeState:d,hasState:h}}function fR(e){return void 0===e||"object"===typeof e&&0===Object.keys(e).length}function pR(e,t){return`${e},${t}`}function gR(e,t){const n=Array.isArray(e)?e:[e],r=n.flatMap(e=>e.marks.map(t=>[pR(e.key,t.key),t.state])),i={};for(const o of t){const[e,t]=Array.isArray(o)?o:[o,{}];i[e]=r.reduce((n,r)=>{const[i,o={}]=r,a=fR(o[e])?t:o[e];for(const[e,t]of Object.entries(a)){const r=n[e],o=(e,n,o,a)=>{const s=pR(a.__data__.viewKey,a.__data__.markKey);return i!==s?null===r||void 0===r?void 0:r(e,n,o,a):"function"!==typeof t?t:t(e,n,o,a)};n[e]=o}return n},{})}return i}function mR(e,t){const n=new Map(e.map((e,t)=>[e,t])),r=t?e.map(t):e;return(e,i)=>{if("function"!==typeof e)return e;const o=n.get(i),a=t?t(i):i;return e(a,o,r,i)}}function vR(e){var{link:t=!1,valueof:n=(e,t)=>e,coordinate:r}=e,i=qN(e,["link","valueof","coordinate"]);const o="element-link";if(!t)return[()=>{},()=>{}];const a=e=>e.__data__.points,s=(e,t)=>{const[,n,r]=e,[i,,,o]=t,a=[n,i,o,r];return a},l=e=>{var t;if(e.length<=1)return;const r=DD(e,(e,t)=>{const{x:n}=e.__data__,{x:r}=t.__data__,i=n-r;return i});for(let l=1;l<r.length;l++){const e=ge(),c=r[l-1],u=r[l],[d,h,f,p]=s(a(c),a(u));e.moveTo(...d),e.lineTo(...h),e.lineTo(...f),e.lineTo(...p),e.closePath();const g=wm(i,e=>n(e,c)),{fill:m=c.getAttribute("fill")}=g,v=qN(g,["fill"]),A=new Oh({className:o,style:Object.assign({d:e.toString(),fill:m,zIndex:-2},v)});null===(t=c.link)||void 0===t||t.remove(),c.parentNode.appendChild(A),c.link=A}},c=e=>{var t;null===(t=e.link)||void 0===t||t.remove(),e.link=null};return[l,c]}function AR(e,t,n){const r=t=>{const{transform:n}=e.style;return n?`${n} ${t}`:t};if(Ce(n)){const{points:i}=e.__data__,[o,a]=Se(n)?Rm(i):i,s=n.getCenter(),l=$g(o,s),c=$g(a,s),u=Ug(l),d=zg(l,c),h=u+d/2,f=t*Math.cos(h),p=t*Math.sin(h);return r(`translate(${f}, ${p})`)}return Se(n)?r(`translate(${t}, 0)`):r(`translate(0, ${-t})`)}function bR(e){var{document:t,background:n,scale:r,coordinate:i,valueof:o}=e,a=qN(e,["document","background","scale","coordinate","valueof"]);const s="element-background";if(!n)return[()=>{},()=>{}];const l=(e,t,n)=>{const r=e.invert(t),i=t+e.getBandWidth(r)/2,o=e.getStep(r)/2,a=o*n;return[i-o+a,i+o-a]},c=(e,t)=>{const{x:n}=r;if(!BD(n))return[0,1];const{__data__:i}=e,{x:o}=i,[a,s]=l(n,o,t);return[a,s]},u=(e,t)=>{const{y:n}=r;if(!BD(n))return[0,1];const{__data__:i}=e,{y:o}=i,[a,s]=l(n,o,t);return[a,s]},d=(e,n)=>{const{padding:r}=n,[o,a]=c(e,r),[s,l]=u(e,r),d=[[o,s],[a,s],[a,l],[o,l]].map(e=>i.map(e)),{__data__:h}=e,{y:f,y1:p}=h;return jm(t,d,{y:f,y1:p},i,n)},h=(e,t)=>{const{transform:n="scale(1.2, 1.2)",transformOrigin:r="center center",stroke:i=""}=t,o=qN(t,["transform","transformOrigin","stroke"]),a=Object.assign({transform:n,transformOrigin:r,stroke:i},o),s=e.cloneNode(!0);for(const[l,c]of Object.entries(a))s.style[l]=c;return s},f=()=>{const{x:e,y:t}=r;return[e,t].some(BD)},p=e=>{e.background&&e.background.remove();const t=wm(a,t=>o(t,e)),{fill:n="#CCD6EC",fillOpacity:r=.3,zIndex:i=-2,padding:l=.001,lineWidth:c=0}=t,u=qN(t,["fill","fillOpacity","zIndex","padding","lineWidth"]),p=Object.assign(Object.assign({},u),{fill:n,fillOpacity:r,zIndex:i,padding:l,lineWidth:c}),g=f()?d:h,m=g(e,p);m.className=s,e.parentNode.parentNode.appendChild(m),e.background=m},g=e=>{var t;null===(t=e.background)||void 0===t||t.remove(),e.background=null},m=e=>e.className===s;return[p,g,m]}function yR(e,t){const n=e.getRootNode().defaultView,r=n.getContextService().getDomElement();(null===r||void 0===r?void 0:r.style)&&(e.cursor=r.style.cursor,r.style.cursor=t)}function wR(e){yR(e,e.cursor)}function _R(e,t,n){return e.find(e=>Object.entries(t).every(([t,r])=>n(e)[t]===r))}function xR(e,t){return Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))}function ER(e,t=!1){const n=NN(e,e=>!!e).map((e,t)=>[0===t?"M":"L",...e]);return t&&n.push(["Z"]),n}function SR(e){return e.querySelectorAll(".element")}function CR(e,t,n=0){const r=[["M",...t[1]]],i=xR(e,t[1]),o=xR(e,t[0]);return 0===i?r.push(["L",...t[3]],["A",o,o,0,n,1,...t[0]],["Z"]):r.push(["A",i,i,0,n,0,...t[2]],["L",...t[3]],["A",o,o,0,n,1,...t[0]],["Z"]),r}function TR(e,t){if(t(e))return e;let n=e.parent;while(n&&!t(n))n=n.parent;return n}const kR=["interval","point","density"];function OR({elementsof:e,root:t,coordinate:n,scale:r,validFindByXMarks:i=kR}){var o,a;let s=e(t);const l=e=>i.includes(e.markType),c=s.find(l);if(c){s=s.filter(l);const e=r.x,i=r.series,c=null!==(a=null===(o=null===e||void 0===e?void 0:e.getBandWidth)||void 0===o?void 0:o.call(e))&&void 0!==a?a:0,u=i?e=>{var t,n;const r=Math.round(1/(null!==(t=i.valueBandWidth)&&void 0!==t?t:1));return e.__data__.x+(null!==(n=e.__data__.series)&&void 0!==n?n:0)*c+c/(2*r)}:e=>e.__data__.x+c/2;return s.sort((e,t)=>u(e)-u(t)),e=>{const r=nR(t,e);if(!r)return;const[i]=n.invert(r),o=_D(u).center,a=o(s,i),l=s[a];return l}}return e=>{const{target:t}=e;return TR(t,e=>!!e.classList&&e.classList.includes("element"))}}function MR(e){const t=.01,n=1e-4,r=.1,i=100,o=t/Math.max(e,n);return Math.max(r,Math.min(i,o))}var IR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function DR(e,{elements:t,datum:n,groupKey:r=e=>e,regionGroupKey:i=e=>e,link:o=!1,background:a=!1,delay:s=60,scale:l,coordinate:c,emitter:u,state:d={},region:h=!1,regionEleFilter:f=e=>kR.includes(e.markType)}){var p,g;const m=null!==(p=t(e))&&void 0!==p?p:[],v=h?m.filter(f):m,A=new Set(v),b=h?i:r,y=Lp(v,b),w=OR({elementsof:t,root:e,coordinate:c,scale:l}),_=mR(v,n),[x,E]=vR(Object.assign({elements:v,valueof:_,link:o,coordinate:c},Og(d.active,"link"))),[S,C,T]=bR(Object.assign({document:e.ownerDocument,scale:l,coordinate:c,background:a,valueof:_},Og(d.active,"background"))),k=P(d,{active:Object.assign({},(null===(g=d.active)||void 0===g?void 0:g.offset)&&{transform:(...e)=>{const t=d.active.offset(...e),[,n]=e;return AR(v[n],t,c)}})}),O=dR(k,v),{updateState:M,removeState:I,hasState:D}=O(_);let N;const R=e=>{const{nativeEvent:t=!0}=e;let r=e.target;if(h&&(r=w(e)),!A.has(r))return;N&&clearTimeout(N);const i=b(r),o=y.get(i),a=new Set(o);for(const n of v)a.has(n)?D(n,"active")||M(n,"active"):(M(n,"inactive"),E(n)),n!==r&&C(n);S(r),x(o),t&&u.emit("element:highlight",{nativeEvent:t,data:{data:n(r),group:o.map(n)}})},L=()=>{N&&clearTimeout(N),N=setTimeout(()=>{B(),N=null},s)},B=(e=!0)=>{for(const t of v)I(t,"active","inactive"),C(t),E(t);e&&u.emit("element:unhighlight",{nativeEvent:e})},F=e=>{let t=e.target;h&&(t=w(e)),t?a&&!T(t)||(a||A.has(t))&&(s>0?L():B()):s>0?L():B()},$=()=>{B()};e.addEventListener("pointerover",R),e.addEventListener("pointermove",R),e.addEventListener("pointerout",F),e.addEventListener("pointerleave",$);const j=e=>{const{nativeEvent:t}=e;t||B(!1)},H=e=>{const{nativeEvent:t}=e;if(t)return;const{data:r}=e.data,i=_R(v,r,n);i&&R({target:i,nativeEvent:!1})};return u.on("element:highlight",H),u.on("element:unhighlight",j),()=>{e.removeEventListener("pointerover",R),e.removeEventListener("pointermove",R),e.removeEventListener("pointerout",F),e.removeEventListener("pointerleave",$),u.off("element:highlight",H),u.off("element:unhighlight",j);for(const e of v)C(e),E(e)}}function NR(e){var{delay:t,createGroup:n,createRegionGroup:r,background:i=!1,link:o=!1}=e,a=IR(e,["delay","createGroup","createRegionGroup","background","link"]);return(e,s,l)=>{const{container:c,view:u,options:d}=e,{scale:h,coordinate:f}=u,p=eR(c);return DR(p,Object.assign({elements:XN,datum:sR(u),groupKey:n?n(u):void 0,regionGroupKey:r?r(u):aR(u),coordinate:f,scale:h,state:gR(d,[["active",i?{}:{lineWidth:"1",stroke:"#000"}],"inactive"]),background:i,link:o,delay:t,emitter:l},a))}}function RR(e){return NR(Object.assign(Object.assign({},e),{createGroup:aR}))}function LR(e){return NR(Object.assign(Object.assign({},e),{createGroup:oR}))}NR.props={reapplyWhenUpdate:!0},RR.props={reapplyWhenUpdate:!0},LR.props={reapplyWhenUpdate:!0};var BR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function PR(e,{elements:t,datum:n,groupKey:r=e=>e,regionGroupKey:i=e=>e,link:o=!1,single:a=!1,multipleSelectHotkey:s,coordinate:l,background:c=!1,scale:u,emitter:d,state:h={},region:f=!1,regionEleFilter:p=e=>kR.includes(e.markType)}){var g;const m=t(e),v=new Set(m),A=OR({elementsof:t,root:e,coordinate:l,scale:u}),b=Lp(m,r),y=Lp(m,i),w=mR(m,n),[_,x]=vR(Object.assign({link:o,elements:m,valueof:w,coordinate:l},Og(h.selected,"link"))),[E,S]=bR(Object.assign({document:e.ownerDocument,background:c,coordinate:l,scale:u,valueof:w},Og(h.selected,"background"))),C=P(h,{selected:Object.assign({},(null===(g=h.selected)||void 0===g?void 0:g.offset)&&{transform:(...e)=>{const t=h.selected.offset(...e),[,n]=e;return AR(m[n],t,l)}})}),T=dR(C,m),{updateState:k,removeState:O,hasState:M}=T(w);let I=!a,D=null;const N=(e=!0)=>{for(const t of m)O(t,"selected","unselected"),x(t),S(t);e&&d.emit("element:unselect",{nativeEvent:!0})},R=({event:e,element:t,nativeEvent:i=!0,filter:o=e=>!0,groupBy:a=r,groupMap:s=b})=>{const l=m.filter(o);if(M(t,"selected"))N();else{const r=a(t),o=s.get(r),c=new Set(o);for(const e of l)c.has(e)?k(e,"selected"):(k(e,"unselected"),x(e)),e!==t&&S(e);if(_(o),E(t),!i)return;d.emit("element:select",Object.assign(Object.assign({},e),{nativeEvent:i,data:{data:[n(t),...o.map(n)]}}))}},L=({event:e,element:t,nativeEvent:i=!0,filter:a=e=>!0,groupBy:s=r,groupMap:l=b})=>{const c=s(t),u=l.get(c),h=new Set(u),f=m.filter(a);if(M(t,"selected")){const e=m.some(e=>!h.has(e)&&M(e,"selected"));if(!e)return N();for(const t of u)k(t,"unselected"),x(t),S(t)}else{const e=u.some(e=>M(e,"selected"));for(const t of f)h.has(t)?k(t,"selected"):M(t,"selected")||k(t,"unselected");!e&&o&&_(u),E(t)}i&&d.emit("element:select",Object.assign(Object.assign({},e),{nativeEvent:i,data:{data:m.filter(e=>M(e,"selected")).map(n)}}))},B=e=>{if(v.has(e))return!0;for(const t of v){const n=zN(t,t=>t===e);if(n)return!0}return!1},F=e=>{if(v.has(e))return e;for(const t of v){let n=null;if(zN(t,r=>{r===e&&(n=t)}),n)return n}return e},$=e=>{const{target:t,nativeEvent:n=!0}=e,o=I?L:R;let a=t;const s=B(t);return!f||s?s?o({event:e,element:F(a),nativeEvent:n,groupBy:r}):N():(a=A(e),v.has(a)?o({event:e,element:a,nativeEvent:n,filter:p,groupBy:i,groupMap:y}):N())},j=Array.isArray(s)?s:[s],H=e=>{j.includes(e.code)&&!D&&(D=e.code,I=!0)},U=e=>{e.code===D&&(D=null,I=!1)};e.addEventListener("click",$),s&&(I=!1,document.addEventListener("keydown",H),document.addEventListener("keyup",U));const Q=e=>{const{nativeEvent:t,data:r}=e;if(t)return;const i=I?r.data:r.data.slice(0,1);for(const o of i){const e=_R(m,o,n);$({target:e,nativeEvent:!1})}},z=()=>{N(!1)};return d.on("element:select",Q),d.on("element:unselect",z),()=>{for(const e of m)x(e);e.removeEventListener("click",$),s&&(document.removeEventListener("keydown",H),document.removeEventListener("keyup",U)),d.off("element:select",Q),d.off("element:unselect",z)}}function FR(e){var{createGroup:t,createRegionGroup:n,background:r=!1,link:i=!1}=e,o=BR(e,["createGroup","createRegionGroup","background","link"]);return(e,a,s)=>{const{container:l,view:c,options:u}=e,{coordinate:d,scale:h}=c,f=eR(l);return PR(f,Object.assign({elements:XN,datum:sR(c),groupKey:t?t(c):void 0,regionGroupKey:n?n(c):aR(c),coordinate:d,scale:h,state:gR(u,[["selected",r?{}:{lineWidth:"1",stroke:"#000"}],"unselected"]),background:r,link:i,emitter:s},o))}}function $R(e){return FR(Object.assign(Object.assign({},e),{createGroup:aR}))}function jR(e){return FR(Object.assign(Object.assign({},e),{createGroup:oR}))}FR.props={reapplyWhenUpdate:!0},$R.props={reapplyWhenUpdate:!0},jR.props={reapplyWhenUpdate:!0};var HR=function(e,t,n){var r,i,o,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),r=null,a=e.apply(i,o),r||(i=o=null)},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var u=t-(c-s);return i=this,o=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),s=c,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c};function UR(e){const{coordinate:t={}}=e,{transform:n=[]}=t,r=n.find(e=>"fisheye"===e.type);if(r)return r;const i={type:"fisheye"};return n.push(i),t.transform=n,e.coordinate=t,i}function QR({wait:e=30,leading:t,trailing:n=!1}){return r=>{const{options:i,update:o,setState:a,container:s}=r,l=eR(s),c=HR(e=>{const t=nR(l,e);if(!t)return a("fisheye"),void o();a("fisheye",e=>{const n=P({},e,{interaction:{tooltip:{preserve:!0}}});for(const t of n.marks)t.animate=!1;const[r,i]=t,o=UR(n);return o.focusX=r,o.focusY=i,o.visual=!0,n}),o()},e,{leading:t,trailing:n});return l.addEventListener("pointerenter",c),l.addEventListener("pointermove",c),l.addEventListener("pointerleave",c),()=>{l.removeEventListener("pointerenter",c),l.removeEventListener("pointermove",c),l.removeEventListener("pointerleave",c)}}}var zR=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(c4){o(c4)}}function s(e){try{l(r["throw"](e))}catch(c4){o(c4)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},WR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function GR(e){const{transform:t=[]}=e,n=t.find(e=>"normalizeY"===e.type);if(n)return n;const r={type:"normalizeY"};return t.push(r),e.transform=t,r}function VR(e,t,n){const[r]=Array.from(e.entries()).filter(([e])=>e.type===t).map(([e])=>{const{encode:t}=e,r=e=>{const n=t[e];return[e,n?n.value:void 0]};return Object.fromEntries(n.map(r))});return r}function KR(e){var{wait:t=20,leading:n,trailing:r=!1,labelFormatter:i=e=>`${e}`}=e,o=WR(e,["wait","leading","trailing","labelFormatter"]);return e=>{const{view:a,container:s,update:l,setState:c}=e,{markState:u,scale:d,coordinate:h}=a,f=VR(u,"line",["x","y","series"]);if(!f)return;const{y:p,x:g,series:m=[]}=f,v=p.map((e,t)=>t),A=DD(v.map(e=>g[e])),b=eR(s),y=s.getElementsByClassName(BN),w=s.getElementsByClassName(jN),_=e=>e.__data__.key.split("-")[0],x=Lp(w,_),E=new Th({style:Object.assign({x1:0,y1:0,x2:0,y2:b.getAttribute("height"),stroke:"black",lineWidth:1},Og(o,"rule"))}),S=new Bh({style:Object.assign({x:0,y:b.getAttribute("height"),text:"",fontSize:10},Og(o,"label"))});E.append(S),b.appendChild(E);const C=(e,t,n)=>{const[r]=e.invert(n),i=t.invert(r);return A[OD(A,i)]},T=(e,t)=>{E.setAttribute("x1",e[0]),E.setAttribute("x2",e[0]),S.setAttribute("text",i(t))};let k;const O=e=>zR(this,void 0,void 0,function*(){const{x:t}=d,n=C(h,t,e);T(e,n),c("chartIndex",e=>{const t=P({},e),r=t.marks.find(e=>"line"===e.type),i=e=>k_(e,e=>+p[e])/T_(e,e=>+p[e]),o=k_(Pp(v,i,e=>m[e]).values()),a=[1/o,o];P(r,{scale:{y:{domain:a}}});const s=GR(r);s.groupBy="color",s.basis=(e,t)=>{const r=e[_D(e=>g[+e]).center(e,n)];return t[r]};for(const n of t.marks)n.animate=!1;return t});const r=yield l("chartIndex");k=r.view}),M=e=>{const{scale:t,coordinate:n}=k,{x:r,y:i}=t,o=C(n,r,e);T(e,o);for(const a of y){const{seriesIndex:e,key:t}=a.__data__,r=e[_D(e=>g[+e]).center(e,o)],s=[0,i.map(1)],l=[0,i.map(p[r]/p[e[0]])],[,c]=n.map(s),[,u]=n.map(l),d=c-u;a.setAttribute("transform",`translate(0, ${d})`);const h=x.get(t)||[];for(const n of h)n.setAttribute("dy",d)}},I=HR(e=>{const t=nR(b,e);t&&M(t)},t,{leading:n,trailing:r});return O([0,0]),b.addEventListener("pointerenter",I),b.addEventListener("pointermove",I),b.addEventListener("pointerleave",I),()=>{E.remove(),b.removeEventListener("pointerenter",I),b.removeEventListener("pointermove",I),b.removeEventListener("pointerleave",I)}}}function YR(e,t){let n,r=-1,i=-1;if(void 0===t)for(const o of e)++i,null!=o&&(n>o||void 0===n&&o>=o)&&(n=o,r=i);else for(let o of e)null!=(o=t(o,++i,e))&&(n>o||void 0===n&&o>=o)&&(n=o,r=i);return r}function qR(e,t){let n=0,r=0;if(void 0===t)for(let i of e)null!=i&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let o of e)null!=(o=t(o,++i,e))&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}function XR(e){var t=document.createElement("div");t.innerHTML=e;var n=t.childNodes[0];return n&&t.contains(n)&&t.removeChild(n),n}function JR(e,t){return e&&t?e.replace(/\\?\{([^{}]+)\}/g,function(e,n){return"\\"===e.charAt(0)?e.slice(1):void 0===t[n]?"":t[n]}):e}KR.props={reapplyWhenUpdate:!0};var ZR=JR,eL=function(e,t){null!=t?e.replaceChildren?Array.isArray(t)?e.replaceChildren.apply(e,yr([],br(t),!1)):e.replaceChildren(t):(e.innerHTML="",Array.isArray(t)?t.forEach(function(t){return e.appendChild(t)}):e.appendChild(t)):e.innerHTML=""};function tL(e){return void 0===e&&(e=""),{CONTAINER:"".concat(e,"tooltip"),TITLE:"".concat(e,"tooltip-title"),LIST:"".concat(e,"tooltip-list"),LIST_ITEM:"".concat(e,"tooltip-list-item"),NAME:"".concat(e,"tooltip-list-item-name"),MARKER:"".concat(e,"tooltip-list-item-marker"),NAME_LABEL:"".concat(e,"tooltip-list-item-name-label"),VALUE:"".concat(e,"tooltip-list-item-value"),CROSSHAIR_X:"".concat(e,"tooltip-crosshair-x"),CROSSHAIR_Y:"".concat(e,"tooltip-crosshair-y")}}var nL={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"};function rL(e){var t;void 0===e&&(e="");var n=tL(e);return t={},t[".".concat(n.CONTAINER)]={position:"absolute",visibility:"visible","z-index":8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)","background-color":"rgba(255, 255, 255, 0.96)","box-shadow":"0 6px 12px 0 rgba(0, 0, 0, 0.12)","border-radius":"4px",color:"rgba(0, 0, 0, 0.65)","font-size":"12px","line-height":"20px",padding:"12px","min-width":"120px","max-width":"360px","font-family":"Roboto-Regular"},t[".".concat(n.TITLE)]={color:"rgba(0, 0, 0, 0.45)"},t[".".concat(n.LIST)]={margin:"0px","list-style-type":"none",padding:"0px"},t[".".concat(n.LIST_ITEM)]={"list-style-type":"none",display:"flex","line-height":"2em","align-items":"center","justify-content":"space-between","white-space":"nowrap"},t[".".concat(n.MARKER)]={width:"8px",height:"8px","border-radius":"50%",display:"inline-block","margin-right":"4px"},t[".".concat(n.NAME)]={display:"flex","align-items":"center","max-width":"216px"},t[".".concat(n.NAME_LABEL)]=mr({flex:1},nL),t[".".concat(n.VALUE)]=mr({display:"inline-block",float:"right",flex:1,"text-align":"right","min-width":"28px","margin-left":"30px",color:"rgba(0, 0, 0, 0.85)"},nL),t[".".concat(n.CROSSHAIR_X)]={position:"absolute",width:"1px","background-color":"rgba(0, 0, 0, 0.25)"},t[".".concat(n.CROSSHAIR_Y)]={position:"absolute",height:"1px","background-color":"rgba(0, 0, 0, 0.25)"},t}var iL=function(e){function t(t){var n,r,i=this,o=null===(r=null===(n=t.style)||void 0===n?void 0:n.template)||void 0===r?void 0:r.prefixCls,a=tL(o);return i=e.call(this,t,{data:[],x:0,y:0,visibility:"visible",title:"",position:"bottom-right",offset:[5,5],enterable:!1,container:{x:0,y:0},bounding:null,template:{prefixCls:"",container:'<div class="'.concat(a.CONTAINER,'"></div>'),title:'<div class="'.concat(a.TITLE,'"></div>'),item:'<li class="'.concat(a.LIST_ITEM,'" data-index={index}>\n        <span class="').concat(a.NAME,'">\n          <span class="').concat(a.MARKER,'" style="background:{color}"></span>\n          <span class="').concat(a.NAME_LABEL,'" title="{name}">{name}</span>\n        </span>\n        <span class="').concat(a.VALUE,'" title="{value}">{value}</span>\n      </li>')},style:rL(o)})||this,i.timestamp=-1,i.prevCustomContentKey=i.attributes.contentKey,i.initShape(),i.render(i.attributes,i),i}return gr(t,e),Object.defineProperty(t.prototype,"HTMLTooltipElement",{get:function(){return this.element},enumerable:!1,configurable:!0}),t.prototype.getContainer=function(){return this.element},Object.defineProperty(t.prototype,"elementSize",{get:function(){var e=this.element.offsetWidth,t=this.element.offsetHeight;return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HTMLTooltipItemsElements",{get:function(){var e=this.attributes,t=e.data,n=e.template;return t.map(function(e,t){var r=e.name,i=void 0===r?"":r,o=e.color,a=void 0===o?"black":o,s=e.index,l=vr(e,["name","color","index"]),c=mr({name:i,color:a,index:null!==s&&void 0!==s?s:t},l);return XR(ZR(n.item,c))})},enumerable:!1,configurable:!0}),t.prototype.render=function(e,t){this.renderHTMLTooltipElement(),this.updatePosition()},t.prototype.destroy=function(){var t;null===(t=this.element)||void 0===t||t.remove(),e.prototype.destroy.call(this)},t.prototype.show=function(e,t){var n=this;if(void 0!==e&&void 0!==t){var r="hidden"===this.element.style.visibility,i=function(){n.attributes.x=null!==e&&void 0!==e?e:n.attributes.x,n.attributes.y=null!==t&&void 0!==t?t:n.attributes.y,n.updatePosition()};r?this.closeTransition(i):i()}this.element.style.visibility="visible"},t.prototype.hide=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var n=this.attributes.enterable;n&&this.isCursorEntered(e,t)||(this.element.style.visibility="hidden")},t.prototype.initShape=function(){var e=this.attributes.template;this.element=XR(e.container),this.id&&this.element.setAttribute("id",this.id)},t.prototype.renderCustomContent=function(){if(void 0===this.prevCustomContentKey||this.prevCustomContentKey!==this.attributes.contentKey){this.prevCustomContentKey=this.attributes.contentKey;var e=this.attributes.content;e&&("string"===typeof e?this.element.innerHTML=e:eL(this.element,e))}},t.prototype.renderHTMLTooltipElement=function(){var e,t,n=this.attributes,r=n.template,i=n.title,o=n.enterable,a=n.style,s=n.content,l=tL(r.prefixCls),c=this.element;if(this.element.style.pointerEvents=o?"auto":"none",s)this.renderCustomContent();else{i?(c.innerHTML=r.title,c.getElementsByClassName(l.TITLE)[0].innerHTML=i):null===(t=null===(e=c.getElementsByClassName(l.TITLE))||void 0===e?void 0:e[0])||void 0===t||t.remove();var u=this.HTMLTooltipItemsElements,d=document.createElement("ul");d.className=l.LIST,eL(d,u);var h=this.element.querySelector(".".concat(l.LIST));h?h.replaceWith(d):c.appendChild(d)}jS(c,a)},t.prototype.getRelativeOffsetFromCursor=function(e){var t=this.attributes,n=t.position,r=t.offset,i=e||n,o=i.split("-"),a={left:[-1,0],right:[1,0],top:[0,-1],bottom:[0,1]},s=this.elementSize,l=s.width,c=s.height,u=[-l/2,-c/2];return o.forEach(function(e){var t=br(u,2),n=t[0],i=t[1],o=br(a[e],2),s=o[0],d=o[1];u=[n+(l/2+r[0])*s,i+(c/2+r[1])*d]}),u},t.prototype.setOffsetPosition=function(e){var t=br(e,2),n=t[0],r=t[1],i=this.attributes,o=i.x,a=void 0===o?0:o,s=i.y,l=void 0===s?0:s,c=i.container,u=c.x,d=c.y;this.element.style.left="".concat(+a+u+n,"px"),this.element.style.top="".concat(+l+d+r,"px")},t.prototype.updatePosition=function(){var e=this.attributes.showDelay,t=void 0===e?60:e,n=Date.now();this.timestamp>0&&n-this.timestamp<t||(this.timestamp=n,this.setOffsetPosition(this.autoPosition(this.getRelativeOffsetFromCursor())))},t.prototype.autoPosition=function(e){var t=br(e,2),n=t[0],r=t[1],i=this.attributes,o=i.x,a=i.y,s=i.bounding,l=i.position;if(!s)return[n,r];var c=this.element,u=c.offsetWidth,d=c.offsetHeight,h=br([+o+n,+a+r],2),f=h[0],p=h[1],g={left:"right",right:"left",top:"bottom",bottom:"top"},m=s.x,v=s.y,A=s.width,b=s.height,y={left:f<m,right:f+u>m+A,top:p<v,bottom:p+d>v+b},w=[];l.split("-").forEach(function(e){y[e]?w.push(g[e]):w.push(e)});var _=w.join("-");return this.getRelativeOffsetFromCursor(_)},t.prototype.isCursorEntered=function(e,t){if(this.element){var n=this.element.getBoundingClientRect(),r=n.x,i=n.y,o=n.width,a=n.height;return new Dk(r,i,o,a).isPointIn(e,t)}return!1},t.prototype.closeTransition=function(e){var t=this,n=this.element.style.transition;this.element.style.transition="none",e(),setTimeout(function(){t.element.style.transition=n},10)},t.tag="tooltip",t}(Hb);function oL(e,t,n={},r=!1){if(Lg(e))return e;if(Array.isArray(e)&&r)return e;const i=Og(e,t);return P(n,i)}function aL(e,t={}){return Lg(e)||Array.isArray(e)?e:sL(e)?P(t,e):e}function sL(e){if(0===Object.keys(e).length)return!0;const{title:t,items:n}=e;return void 0!==t||void 0!==n}function lL(e,t){return"object"===typeof e?Og(e,t):e}var cL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function uL(e){const t=e%(2*Math.PI);return t===Math.PI/2?{titleTransform:"translate(0, 50%)"}:t>-Math.PI/2&&t<Math.PI/2?{titleTransform:"translate(50%, 0)"}:t>Math.PI/2&&t<3*Math.PI/2?{titleTransform:"translate(-50%, 0)"}:{}}function dL(e,t,n,r){const{radar:i}=e,[o]=r,a=o.getOptions().name,[s,l]=Be(n),{axisRadar:c={}}=t;return Object.assign(Object.assign({},c),{grid:"position"===a,gridConnect:"line",gridControlAngles:new Array(i.count).fill(0).map((e,t)=>{const n=(l-s)/i.count;return n*t})})}const hL=e=>{const{important:t={}}=e,n=cL(e,["important"]);return r=>{const{theme:i,coordinate:o,scales:a}=r;return gO(Object.assign(Object.assign(Object.assign({},n),uL(e.orientation)),{important:Object.assign(Object.assign({},dL(e,i,o,a)),t)}))(r)}};hL.props=Object.assign(Object.assign({},gO.props),{defaultPosition:"center"});const fL=e=>(...t)=>II(Object.assign({},{block:!0},e))(...t);fL.props=Object.assign(Object.assign({},II.props),{defaultPosition:"top",defaultOrientation:"horizontal"});const pL=e=>t=>{const{scales:n}=t,r=Wk(n,"size");return II(Object.assign({},{type:"size",data:r.getTicks().map((e,t)=>({value:e,label:String(e)}))},e))(t)};pL.props=Object.assign(Object.assign({},II.props),{defaultPosition:"top",defaultOrientation:"horizontal"});const gL=e=>pL(Object.assign({},{block:!0},e));gL.props=Object.assign(Object.assign({},II.props),{defaultPosition:"top",defaultOrientation:"horizontal"});var mL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const vL=({static:e=!1}={})=>t=>{const{width:n,height:r,depth:i,paddingLeft:o,paddingRight:a,paddingTop:s,paddingBottom:l,padding:c,inset:u,insetLeft:d,insetTop:h,insetRight:f,insetBottom:p,margin:g,marginLeft:m,marginBottom:v,marginTop:A,marginRight:b,data:y,coordinate:w,theme:_,component:x,interaction:E,x:S,y:C,z:T,key:k,frame:O,labelTransform:M,parentKey:I,clip:D,viewStyle:N,title:R}=t,L=mL(t,["width","height","depth","paddingLeft","paddingRight","paddingTop","paddingBottom","padding","inset","insetLeft","insetTop","insetRight","insetBottom","margin","marginLeft","marginBottom","marginTop","marginRight","data","coordinate","theme","component","interaction","x","y","z","key","frame","labelTransform","parentKey","clip","viewStyle","title"]);return[Object.assign(Object.assign({type:"standardView",x:S,y:C,z:T,key:k,width:n,height:r,depth:i,padding:c,paddingLeft:o,paddingRight:a,paddingTop:s,inset:u,insetLeft:d,insetTop:h,insetRight:f,insetBottom:p,paddingBottom:l,theme:_,coordinate:w,component:x,interaction:E,frame:O,labelTransform:M,margin:g,marginLeft:m,marginBottom:v,marginTop:A,marginRight:b,parentKey:I,clip:D,style:N},!e&&{title:R}),{marks:[Object.assign(Object.assign(Object.assign({},L),{key:`${k}-0`,data:y}),e&&{title:R})]})]};vL.props={};var AL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function bL(e){return(t,...n)=>P({},e(t,...n),t)}function yL(e){return(t,...n)=>P({},t,e(t,...n))}function wL(e){return!(e instanceof Date)&&"object"===typeof e}function _L(e,t){if(!e)return t;if(Array.isArray(e))return e;if(wL(e)){const{value:n=t}=e,r=AL(e,["value"]);return Object.assign(Object.assign({},r),{value:n})}return e}var xL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const EL=()=>e=>{const{children:t}=e,n=xL(e,["children"]);if(!Array.isArray(t))return[];const{data:r,scale:i={},axis:o={},legend:a={},encode:s={},transform:l=[]}=n,c=xL(n,["data","scale","axis","legend","encode","transform"]),u=t.map(e=>{var{data:t,scale:n={},axis:c={},legend:u={},encode:d={},transform:h=[]}=e,f=xL(e,["data","scale","axis","legend","encode","transform"]);return Object.assign({data:_L(t,r),scale:P({},i,n),encode:P({},s,d),transform:[...l,...h],axis:!(!c||!o)&&P({},o,c),legend:!(!u||!a)&&P({},a,u)},f)});return[Object.assign(Object.assign({},c),{marks:u,type:"standardView"})]};function SL(e,t){let n,r=-1,i=-1;if(void 0===t)for(const o of e)++i,null!=o&&(n<o||void 0===n&&o>=o)&&(n=o,r=i);else for(let o of e)null!=(o=t(o,++i,e))&&(n<o||void 0===n&&o>=o)&&(n=o,r=i);return r}function CL(e,t,n,r){const i=t.length/2,o=t.slice(0,i),a=t.slice(i);let s=SL(o,(e,t)=>Math.abs(e[1]-a[t][1]));s=Math.max(Math.min(s,i-2),1);const l=e=>[o[e][0],(o[e][1]+a[e][1])/2],c=l(s),u=l(s-1),d=l(s+1),h=Ug($g(d,u))/Math.PI*180;return{x:c[0],y:c[1],transform:`rotate(${h})`,textAlign:"center",textBaseline:"middle"}}function TL(e,t,n,r){const{bounds:i}=n,[[o,a],[s,l]]=i,c=s-o,u=l-a,d=e=>{const{x:t,y:r}=e,i=Ng(n.x,c),s=Ng(n.y,u);return Object.assign(Object.assign({},e),{x:(i||t)+o,y:(s||r)+a})};return d("left"===e?{x:0,y:u/2,textAlign:"start",textBaseline:"middle"}:"right"===e?{x:c,y:u/2,textAlign:"end",textBaseline:"middle"}:"top"===e?{x:c/2,y:0,textAlign:"center",textBaseline:"top"}:"bottom"===e?{x:c/2,y:u,textAlign:"center",textBaseline:"bottom"}:"top-left"===e?{x:0,y:0,textAlign:"start",textBaseline:"top"}:"top-right"===e?{x:c,y:0,textAlign:"end",textBaseline:"top"}:"bottom-left"===e?{x:0,y:u,textAlign:"start",textBaseline:"bottom"}:"bottom-right"===e?{x:c,y:u,textAlign:"end",textBaseline:"bottom"}:{x:c/2,y:u/2,textAlign:"center",textBaseline:"middle"})}function kL(e,t,n,r){const{y:i,y1:o,autoRotate:a,rotateToAlignArc:s}=n,l=r.getCenter(),c=Lm(r,t,[i,o]),{innerRadius:u,outerRadius:d,startAngle:h,endAngle:f}=c,p="inside"===e?(h+f)/2:f,g=ML(p,a,s),m=(()=>{const[n,r]=t,i=u+.5*(d-u),[o,a]="inside"===e?OL(l,p,i):Gg(n,r);return{x:o,y:a}})();return Object.assign(Object.assign({},m),{textAlign:"inside"===e?"center":"start",textBaseline:"middle",rotate:g})}function OL(e,t,n){return[e[0]+Math.sin(t)*n,e[1]-Math.cos(t)*n]}function ML(e,t,n){if(!t)return 0;const r=n?0:Math.sin(e)<0?90:-90;return e/Math.PI*180+r}function IL(e,t,n,r){const{y:i,y1:o,autoRotate:a,rotateToAlignArc:s,radius:l=.5,offset:c=0}=n,u=Lm(r,t,[i,o]),{startAngle:d,endAngle:h}=u,f=r.getCenter(),p=(d+h)/2,g=ML(p,a,s),m={textAlign:"center",textBaseline:"middle",rotate:g},{innerRadius:v,outerRadius:A}=u,b=v+(A-v)*l,y=b+c,[w,_]=OL(f,p,y);return Object.assign({x:w,y:_},m)}function DL(e){return void 0===e?null:e}function NL(e,t,n,r){const{bounds:i}=n,[o]=i;return{x:DL(o[0]),y:DL(o[1])}}function RL(e,t,n,r){const{bounds:i}=n;if(1===i.length)return NL(e,t,n,r);const o=Te(r)?kL:De(r)?IL:TL;return o(e,t,n,r)}function LL(e,t,n,r,i){const[o,a]=OL(e,t,n),[s,l]=OL(e,t,r),c=Math.sin(t)>0?1:-1;return[[o,a],[s,l],[s+c*i,l]]}function BL(e,t,n){const r=Lm(n,e,[t.y,t.y1]),{innerRadius:i,outerRadius:o}=r;return i+(o-i)}function PL(e,t,n){const r=Lm(n,e,[t.y,t.y1]),{startAngle:i,endAngle:o}=r;return(i+o)/2}function FL(e,t,n,r){const{autoRotate:i,rotateToAlignArc:o,offset:a=0,connector:s=!0,connectorLength:l=a,connectorLength2:c=0,connectorDistance:u=0}=n,d=r.getCenter(),h=PL(t,n,r),f=Math.sin(h)>0?1:-1,p=ML(h,i,o),g={textAlign:f>0||Te(r)?"start":"end",textBaseline:"middle",rotate:p},m=BL(t,n,r),v=m+(s?l:a),[[A,b],[y,w],[_,x]]=LL(d,h,m,v,s?c:0),E=s?+u*f:0,S=_+E,C=x,T={connector:s,connectorPoints:[[y-S,w-C],[_-S,x-C]]};return Object.assign(Object.assign({x0:A,y0:b,x:_+E,y:x},g),T)}function $L(e,t,n,r){const{bounds:i}=n;if(1===i.length)return NL(e,t,n,r);const o=Te(r)?kL:De(r)?FL:TL;return o(e,t,n,r)}function jL(e,t={}){const{labelHeight:n=14,height:r}=t,i=DD(e,e=>e.y),o=i.length,a=new Array(o);for(let c=0;c<o;c++){const e=i[c],{y:t}=e;a[c]={y:t,y1:t+n,labels:[t]}}let s=!0;while(s){s=!1;for(let e=a.length-1;e>0;e--){const t=a[e],n=a[e-1];if(n.y1>t.y){s=!0,n.labels.push(...t.labels),a.splice(e,1),n.y1+=t.y1-t.y;const i=n.y1-n.y;n.y1=Math.max(Math.min(n.y1,r),i),n.y=n.y1-i}}}let l=0;for(const c of a){const{y:e,labels:t}=c;let r=e-n;for(const o of t){const e=i[l++],t=r+n,a=t-o;e.connectorPoints[0][1]-=a,e.y=r+n,r+=n}}}function HL(e,t){const n=DD(e,e=>e.y),{height:r,labelHeight:i=14}=t,o=Math.ceil(r/i);if(n.length<=o)return jL(n,t);const a=[];for(let s=0;s<n.length;s++)s<n.length-o?(n[s].opacity=0,n[s].connector=!1):a.push(n[s]);jL(a,t)}EL.props={};var UL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const QL=new WeakMap;function zL(e,t,n){const{connectorLength:r,connectorLength2:i,connectorDistance:o}=t,a=UL(FL("outside",e,t,n),[]),s=n.getCenter(),l=BL(e,t,n),c=PL(e,t,n),u=l+r+i,d=Math.sin(c)>0?1:-1,h=s[0]+(u+ +o)*d,{x:f}=a,p=h-f;return a.x+=p,a.connectorPoints[0][0]-=p,a}function WL(e,t,n,r,i,o){if(!De(r))return{};if(QL.has(t))return QL.get(t);const a=o.map(e=>zL(e,n,r)),{width:s,height:l}=r.getOptions(),c=a.filter(e=>e.x<s/2),u=a.filter(e=>e.x>=s/2),d=Object.assign(Object.assign({},i),{height:l});return HL(c,d),HL(u,d),a.forEach((e,t)=>QL.set(o[t],e)),QL.get(t)}var GL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function VL(e,t,n,r){if(!De(r))return{};const{connectorLength:i,connectorLength2:o,connectorDistance:a}=n,s=GL(FL("outside",t,n,r),[]),{x0:l,y0:c}=s,u=r.getCenter(),d=Re(r),h=d+i,f=Qg([l-u[0],c-u[1]]),p=Math.sin(f)>0?1:-1,[g,m]=OL(u,f,h);return s.x=g+(o+a)*p,s.y=m,s}var KL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function YL(e,t){return void 0!==e?e:De(t)?"inside":Se(t)?"right":"top"}function qL(e,t,n,r,o,a){const{position:s}=t,{render:l}=o,c=YL(s,n),u=l?"htmlLabel":"inside"===c?"innerLabel":"label",d=r[u],h=Object.assign({},d,t),f=i[JA(c)];if(!f)throw new Error(`Unknown position: ${c}`);return Object.assign(Object.assign({},d),f(c,e,h,n,o,a))}const XL=(e,t)=>{const{coordinate:n,theme:r}=t,{render:i}=e;return(t,o,a,s)=>{const{text:l,x:c,y:u,transform:d="",transformOrigin:h,className:f=""}=o,p=KL(o,["text","x","y","transform","transformOrigin","className"]),g=qL(t,o,n,r,e,s),{rotate:m=0,transform:v=""}=g,A=KL(g,["rotate","transform"]);return Pg(new Cy).call(Om,A).style("text",`${l}`).style("className",`${f} g2-label`).style("innerHTML",i?i(l,o.datum,o.index):void 0).style("labelTransform",`${v} rotate(${+m}) ${d}`.trim()).style("labelTransformOrigin",h).style("coordCenter",n.getCenter()).call(Om,p).node()}};XL.props={defaultMarker:"point"};var JL=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(c4){o(c4)}}function s(e){try{l(r["throw"](e))}catch(c4){o(c4)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},ZL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const eB=.03,tB={fill:"#fff",stroke:"#aaa",lineDash:"4 3",lineWidth:.5,fillOpacity:1,strokeOpacity:1},nB=0,rB=(e,t,n,r,i,o)=>{const a=[],s=[],l=r-1;for(let c=1;c<l;c++){const r=c/l*t,u=e+(c%2===0?n:-n);a.push(`${r},${u}`),s.push(`${r},${i?u-o:u+o}`)}return a.push(`${t},${e}`),s.push(`${t+o},${e}`),[a,s]},iB=(e,t)=>{const{context:n,selection:r,view:i}=t,o=r.select(`.${FN}`).node(),{document:a}=n.canvas,{scale:s}=i,l=new Map,c=(e,t,r)=>JL(void 0,void 0,void 0,function*(){const{update:i,setState:o}=n.externals;o("options",n=>{const{marks:i}=n;if(!i||!i.length)return n;const o=i.map(e=>{const n=oC(e,"scale.y.breaks",[]),i=n.filter(e=>e.start!==t&&e.end!==r&&!e.collapsed);return n.forEach(e=>{e.start===t&&e.end===r&&(e.collapsed=!0)}),console.log("breaks group:",n,i),P({},e,{scale:{y:{breaks:i}}})});return l.set(e,{start:t,end:r}),Object.assign(Object.assign({},n),{marks:o})}),yield i()}),u=()=>JL(void 0,void 0,void 0,function*(){if(!l.size)return;const{update:e,setState:t}=n.externals;t("options",e=>{const{marks:t}=e,n=t.map(e=>{const t=oC(e,"scale.y.breaks",[]);return SO(e,"scale.y.breaks",t.map(e=>Object.assign(Object.assign({},e),{collapsed:!1}))),e});return l.clear(),Object.assign(Object.assign({},e),{marks:n})}),yield e()});return e=>{const{key:t,start:n,end:r,gap:i=eB,vertices:l=50,lineWidth:d=.5,verticeOffset:h=3}=e,f=ZL(e,["key","start","end","gap","vertices","lineWidth","verticeOffset"]),p=a.createElement("g",{id:`break-group-${t}`,className:QN}),g=oC(s,"x.sortedDomain",[]),m=s["y"].getOptions(),{range:v,domain:A}=m,b=A.indexOf(n),y=A.indexOf(r),{width:w,height:_}=o.getBBox();if(-1===b||-1===y||!g.length)return p;const x=v[0]>v[1],E=v[b]*_,S=v[y]*_;let C="",T="";for(const[o,{y:a,isLower:s}]of[{y:S,isLower:!1},{y:E,isLower:!0}].entries()){const e=x?d:-d,[t,n]=rB(a,w-nB,h,l,s,e);0===o?(C=`M ${nB},${a} L ${t.join(" L ")} `,T=`M ${nB-d},${a+e} L ${n.join(" L ")} `):(C+=`L ${w-nB},${a} L ${[...t].reverse().join(" L ")} L ${nB},${a} Z`,T+=`L ${w-nB+d+2},${a-e} L ${[...n].reverse().join(" L ")} L ${nB-d},${a-e} Z`)}const k=Object.assign(Object.assign({},tB),f);try{const e=new Oh({style:Object.assign(Object.assign({},k),{d:C})}),i=new Oh({style:Object.assign(Object.assign({},k),{d:T,lineWidth:0,cursor:"pointer"})});i.addEventListener("click",e=>JL(void 0,void 0,void 0,function*(){e.stopPropagation(),2===e.detail&&(yield c(t,n,r))})),p.appendChild(e),p.appendChild(i),o.addEventListener("click",e=>JL(void 0,void 0,void 0,function*(){2===e.detail&&(yield u())})),o.appendChild(p)}catch(c4){console.error("Failed to create break path:",c4)}return p}};iB.props={};const oB={BEFORE_RENDER:"beforerender",AFTER_RENDER:"afterrender",BEFORE_PAINT:"beforepaint",AFTER_PAINT:"afterpaint",BEFORE_CHANGE_DATA:"beforechangedata",AFTER_CHANGE_DATA:"afterchangedata",BEFORE_CLEAR:"beforeclear",AFTER_CLEAR:"afterclear",BEFORE_DESTROY:"beforedestroy",AFTER_DESTROY:"afterdestroy",BEFORE_CHANGE_SIZE:"beforechangesize",AFTER_CHANGE_SIZE:"afterchangesize",POINTER_TAP:"pointertap",POINTER_DOWN:"pointerdown",POINTER_UP:"pointerup",POINTER_OVER:"pointerover",POINTER_OUT:"pointerout",POINTER_MOVE:"pointermove",POINTER_ENTER:"pointerenter",POINTER_LEAVE:"pointerleave",POINTER_UPOUTSIDE:"pointerupoutside",DRAG_START:"dragstart",DRAG:"drag",DRAG_END:"dragend",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"DROP",CLICK:"click",DBLCLICK:"dblclick"};function aB(e){return TR(e,e=>"component"===e.className)}function sB(e){return TR(e,e=>"element"===e.className)}function lB(e){return TR(e,e=>"label"===e.className)}function cB(e,t,n,r=e=>!0){return i=>{if(!r(i))return;n.emit(`plot:${e}`,i);const{target:o}=i;if(!o)return;const{className:a}=o;if("plot"===a)return;const s=sB(o),l=aB(o),c=lB(o),u=s||l||c;if(!u)return;const{className:d,markType:h}=u,f=Object.assign(Object.assign({},i),{nativeEvent:!0});"element"===d?(f["data"]={data:vg(u,t)},n.emit(`element:${e}`,f),n.emit(`${h}:${e}`,f)):"label"===d?(f["data"]={data:u.attributes.datum},n.emit(`label:${e}`,f),n.emit(`${a}:${e}`,f)):(n.emit(`component:${e}`,f),n.emit(`${a}:${e}`,f))}}function uB(){return(e,t,n)=>{const{container:r,view:i}=e,o=cB(oB.CLICK,i,n,e=>1===e.detail),a=cB(oB.DBLCLICK,i,n,e=>2===e.detail),s=cB(oB.POINTER_TAP,i,n),l=cB(oB.POINTER_DOWN,i,n),c=cB(oB.POINTER_UP,i,n),u=cB(oB.POINTER_OVER,i,n),d=cB(oB.POINTER_OUT,i,n),h=cB(oB.POINTER_MOVE,i,n),f=cB(oB.POINTER_ENTER,i,n),p=cB(oB.POINTER_LEAVE,i,n),g=cB(oB.POINTER_UPOUTSIDE,i,n),m=cB(oB.DRAG_START,i,n),v=cB(oB.DRAG,i,n),A=cB(oB.DRAG_END,i,n),b=cB(oB.DRAG_ENTER,i,n),y=cB(oB.DRAG_LEAVE,i,n),w=cB(oB.DRAG_OVER,i,n),_=cB(oB.DROP,i,n);return r.addEventListener("click",o),r.addEventListener("click",a),r.addEventListener("pointertap",s),r.addEventListener("pointerdown",l),r.addEventListener("pointerup",c),r.addEventListener("pointerover",u),r.addEventListener("pointerout",d),r.addEventListener("pointermove",h),r.addEventListener("pointerenter",f),r.addEventListener("pointerleave",p),r.addEventListener("pointerupoutside",g),r.addEventListener("dragstart",m),r.addEventListener("drag",v),r.addEventListener("dragend",A),r.addEventListener("dragenter",b),r.addEventListener("dragleave",y),r.addEventListener("dragover",w),r.addEventListener("drop",_),()=>{r.removeEventListener("click",o),r.removeEventListener("click",a),r.removeEventListener("pointertap",s),r.removeEventListener("pointerdown",l),r.removeEventListener("pointerup",c),r.removeEventListener("pointerover",u),r.removeEventListener("pointerout",d),r.removeEventListener("pointermove",h),r.removeEventListener("pointerenter",f),r.removeEventListener("pointerleave",p),r.removeEventListener("pointerupoutside",g),r.removeEventListener("dragstart",m),r.removeEventListener("drag",v),r.removeEventListener("dragend",A),r.removeEventListener("dragenter",b),r.removeEventListener("dragleave",y),r.removeEventListener("dragover",w),r.removeEventListener("drop",_)}}}function dB(){return{"component.axisRadar":hL,"component.axisLinear":gO,"component.axisArc":mO,"component.legendContinuousBlock":fL,"component.legendContinuousBlockSize":gL,"component.legendContinuousSize":pL,"interaction.event":uB,"composition.mark":vL,"composition.view":EL,"shape.label.label":XL,"shape.break":iB}}uB.props={reapplyWhenUpdate:!0};var hB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function fB(e,t){const n=Object.assign(Object.assign({},dB()),t),r=t=>{if("string"!==typeof t)return t;const r=`${e}.${t}`;return n[r]||Eg(`Unknown Component: ${r}`)},i=(e,t)=>{const{type:n}=e,i=hB(e,["type"]);n||Eg("Plot type is required!");const o=r(n);return null===o||void 0===o?void 0:o(i,t)};return[i,r]}function pB(e){const{canvas:t,group:n}=e;return(null===t||void 0===t?void 0:t.document)||(null===n||void 0===n?void 0:n.ownerDocument)||Eg("Cannot find library document")}var gB=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(c4){o(c4)}}function s(e){try{l(r["throw"](e))}catch(c4){o(c4)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},mB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function vB(e,t,n){return gB(this,void 0,void 0,function*(){const[r,i]=yield bB(e,t,n),{encode:o,scale:a,data:s,tooltip:l,key:c}=i;if(!1===Array.isArray(s))return null;const{channels:u}=t,d=Fp(Object.entries(o).filter(([,e])=>Cg(e)),e=>e.map(([e,t])=>Object.assign({name:e},t)),([e])=>{var t;const n=null===(t=/([^\d]+)\d*$/.exec(e))||void 0===t?void 0:t[1],r=u.find(e=>e.name===n);return(null===r||void 0===r?void 0:r.independent)?e:n}),h=u.filter(e=>{const{name:t,required:n}=e;if(d.find(([e])=>e===t))return!0;if(n)throw new Error(`Missing encoding for channel: ${t}.`);return!1}).flatMap(e=>{const{name:t,scale:n,scaleKey:r,range:i,quantitative:o,ordinal:s}=e,l=d.filter(([e])=>e.startsWith(t));return l.map(([e,t],l)=>{const u=t.some(e=>e.visual),d=t.some(e=>e.constant),h=a[e]||{},{independent:f=!1,key:p=r||e,type:g=(d?"constant":u?"identity":n)}=h,m=mB(h,["independent","key","type"]),v="constant"===g,A=v?void 0:i;return{name:e,values:t,scaleKey:f||v?Symbol("independent"):p,scale:Object.assign(Object.assign({type:g,markerKey:c,range:A},m),{quantitative:o,ordinal:s})}})});return[i,Object.assign(Object.assign({},t),{index:r,channels:h,tooltip:l})]})}function AB(e){const[t]=fB("encode",e);return(e,n)=>void 0===n||void 0===e?null:Object.assign(Object.assign({},n),{type:"column",value:t(n)(e),field:yB(n)})}function bB(e,t,n){return gB(this,void 0,void 0,function*(){const{library:r}=n,[i]=fB("transform",r),{preInference:o=[],postInference:a=[]}=t,{transform:s=[]}=e,l=[hj,fj,pj,gj,mj,vj,yj,_j,wj,Aj,xj,...o.map(i),...s.map(i),...a.map(i),bj];let c=[],u=e;for(const e of l)[c,u]=yield e(c,u,n);return[c,u]})}function yB(e){const{type:t,value:n}=e;return"field"===t&&"string"===typeof n?n:null}function wB(e){var t=e.length/6|0,n=new Array(t),r=0;while(r<t)n[r]="#"+e.slice(6*r,6*++r);return n}var _B=wB("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),xB=wB("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),EB=wB("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),SB=wB("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),CB=wB("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),TB=wB("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),kB=wB("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),OB=wB("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),MB=wB("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),IB=wB("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),DB=wB("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function NB(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function RB(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function LB(){}var BB=.7,PB=1/BB,FB="\\s*([+-]?\\d+)\\s*",$B="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",jB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",HB=/^#([0-9a-f]{3,8})$/,UB=new RegExp(`^rgb\\(${FB},${FB},${FB}\\)$`),QB=new RegExp(`^rgb\\(${jB},${jB},${jB}\\)$`),zB=new RegExp(`^rgba\\(${FB},${FB},${FB},${$B}\\)$`),WB=new RegExp(`^rgba\\(${jB},${jB},${jB},${$B}\\)$`),GB=new RegExp(`^hsl\\(${$B},${jB},${jB}\\)$`),VB=new RegExp(`^hsla\\(${$B},${jB},${jB},${$B}\\)$`),KB={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function YB(){return this.rgb().formatHex()}function qB(){return this.rgb().formatHex8()}function XB(){return hP(this).formatHsl()}function JB(){return this.rgb().formatRgb()}function ZB(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=HB.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?eP(t):3===n?new iP(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?tP(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?tP(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=UB.exec(e))?new iP(t[1],t[2],t[3],1):(t=QB.exec(e))?new iP(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=zB.exec(e))?tP(t[1],t[2],t[3],t[4]):(t=WB.exec(e))?tP(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=GB.exec(e))?dP(t[1],t[2]/100,t[3]/100,1):(t=VB.exec(e))?dP(t[1],t[2]/100,t[3]/100,t[4]):KB.hasOwnProperty(e)?eP(KB[e]):"transparent"===e?new iP(NaN,NaN,NaN,0):null}function eP(e){return new iP(e>>16&255,e>>8&255,255&e,1)}function tP(e,t,n,r){return r<=0&&(e=t=n=NaN),new iP(e,t,n,r)}function nP(e){return e instanceof LB||(e=ZB(e)),e?(e=e.rgb(),new iP(e.r,e.g,e.b,e.opacity)):new iP}function rP(e,t,n,r){return 1===arguments.length?nP(e):new iP(e,t,n,null==r?1:r)}function iP(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function oP(){return`#${uP(this.r)}${uP(this.g)}${uP(this.b)}`}function aP(){return`#${uP(this.r)}${uP(this.g)}${uP(this.b)}${uP(255*(isNaN(this.opacity)?1:this.opacity))}`}function sP(){const e=lP(this.opacity);return`${1===e?"rgb(":"rgba("}${cP(this.r)}, ${cP(this.g)}, ${cP(this.b)}${1===e?")":`, ${e})`}`}function lP(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function cP(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function uP(e){return e=cP(e),(e<16?"0":"")+e.toString(16)}function dP(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new pP(e,t,n,r)}function hP(e){if(e instanceof pP)return new pP(e.h,e.s,e.l,e.opacity);if(e instanceof LB||(e=ZB(e)),!e)return new pP;if(e instanceof pP)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new pP(a,s,l,e.opacity)}function fP(e,t,n,r){return 1===arguments.length?hP(e):new pP(e,t,n,null==r?1:r)}function pP(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function gP(e){return e=(e||0)%360,e<0?e+360:e}function mP(e){return Math.max(0,Math.min(1,e||0))}function vP(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function AP(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function bP(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return AP((n-r/t)*t,a,i,o,s)}}function yP(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return AP((n-r/t)*t,i,o,a,s)}}NB(LB,ZB,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:YB,formatHex:YB,formatHex8:qB,formatHsl:XB,formatRgb:JB,toString:JB}),NB(iP,rP,RB(LB,{brighter(e){return e=null==e?PB:Math.pow(PB,e),new iP(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?BB:Math.pow(BB,e),new iP(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new iP(cP(this.r),cP(this.g),cP(this.b),lP(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:oP,formatHex:oP,formatHex8:aP,formatRgb:sP,toString:sP})),NB(pP,fP,RB(LB,{brighter(e){return e=null==e?PB:Math.pow(PB,e),new pP(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?BB:Math.pow(BB,e),new pP(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new iP(vP(e>=240?e-240:e+120,i,r),vP(e,i,r),vP(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new pP(gP(this.h),mP(this.s),mP(this.l),lP(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=lP(this.opacity);return`${1===e?"hsl(":"hsla("}${gP(this.h)}, ${100*mP(this.s)}%, ${100*mP(this.l)}%${1===e?")":`, ${e})`}`}}));var wP=e=>()=>e;function _P(e,t){return function(n){return e+n*t}}function xP(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function EP(e,t){var n=t-e;return n?_P(e,n>180||n<-180?n-360*Math.round(n/360):n):wP(isNaN(e)?t:e)}function SP(e){return 1===(e=+e)?CP:function(t,n){return n-t?xP(t,n,e):wP(isNaN(t)?n:t)}}function CP(e,t){var n=t-e;return n?_P(e,n):wP(isNaN(e)?t:e)}(function e(t){var n=SP(t);function r(e,t){var r=n((e=rP(e)).r,(t=rP(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=CP(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r})(1);function TP(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=rP(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}var kP=TP(bP),OP=(TP(yP),e=>kP(e[e.length-1])),MP=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(wB),IP=OP(MP),DP=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(wB),NP=OP(DP),RP=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(wB),LP=OP(RP),BP=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(wB),PP=OP(BP),FP=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(wB),$P=OP(FP),jP=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(wB),HP=OP(jP),UP=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(wB),QP=OP(UP),zP=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(wB),WP=OP(zP),GP=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(wB),VP=OP(GP),KP=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(wB),YP=OP(KP),qP=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(wB),XP=OP(qP),JP=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(wB),ZP=OP(JP),eF=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(wB),tF=OP(eF),nF=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(wB),rF=OP(nF),iF=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(wB),oF=OP(iF),aF=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(wB),sF=OP(aF),lF=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(wB),cF=OP(lF),uF=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(wB),dF=OP(uF),hF=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(wB),fF=OP(hF),pF=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(wB),gF=OP(pF),mF=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(wB),vF=OP(mF),AF=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(wB),bF=OP(AF),yF=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(wB),wF=OP(yF),_F=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(wB),xF=OP(_F),EF=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(wB),SF=OP(EF),CF=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(wB),TF=OP(CF),kF=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(wB),OF=OP(kF);function MF(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-2710.57*e)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-67.37*e)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-2475.67*e)))))))+")"}const IF=Math.PI/180,DF=180/Math.PI;var NF=-.14861,RF=1.78277,LF=-.29227,BF=-.90649,PF=1.97294,FF=PF*BF,$F=PF*RF,jF=RF*LF-BF*NF;function HF(e){if(e instanceof QF)return new QF(e.h,e.s,e.l,e.opacity);e instanceof iP||(e=nP(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(jF*r+FF*t-$F*n)/(jF+FF-$F),o=r-i,a=(PF*(n-i)-LF*o)/BF,s=Math.sqrt(a*a+o*o)/(PF*i*(1-i)),l=s?Math.atan2(a,o)*DF-120:NaN;return new QF(l<0?l+360:l,s,i,e.opacity)}function UF(e,t,n,r){return 1===arguments.length?HF(e):new QF(e,t,n,null==r?1:r)}function QF(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function zF(e){return function t(n){function r(t,r){var i=e((t=UF(t)).h,(r=UF(r)).h),o=CP(t.s,r.s),a=CP(t.l,r.l),s=CP(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}NB(QF,UF,RB(LB,{brighter(e){return e=null==e?PB:Math.pow(PB,e),new QF(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?BB:Math.pow(BB,e),new QF(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*IF,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new iP(255*(t+n*(NF*r+RF*i)),255*(t+n*(LF*r+BF*i)),255*(t+n*(PF*r)),this.opacity)}}));zF(EP);var WF=zF(CP),GF=WF(UF(300,.5,0),UF(-240,.5,1)),VF=WF(UF(-100,.75,.35),UF(80,1.5,.8)),KF=WF(UF(260,.75,.35),UF(80,1.5,.8)),YF=UF();function qF(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return YF.h=360*e-100,YF.s=1.5-1.5*t,YF.l=.8-.9*t,YF+""}var XF=rP(),JF=Math.PI/3,ZF=2*Math.PI/3;function e$(e){var t;return e=(.5-e)*Math.PI,XF.r=255*(t=Math.sin(e))*t,XF.g=255*(t=Math.sin(e+JF))*t,XF.b=255*(t=Math.sin(e+ZF))*t,XF+""}function t$(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-14825.05*e)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+")"}function n$(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var r$=n$(wB("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),i$=n$(wB("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),o$=n$(wB("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),a$=n$(wB("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),s$=n(63048),l$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function c$(e,t,n){const[r]=fB("coordinate",n),{innerHeight:i,innerWidth:o,insetLeft:a,insetTop:s,insetRight:l,insetBottom:c}=e,{coordinates:u=[]}=t,d=w$(u),h="cartesian3D"===d[0].type,f=Object.assign(Object.assign({},e),{x:a,y:s,width:o-a-l,height:i-c-s,transformations:d.flatMap(r)}),p=h?new s$.Coordinate3D(f):new s$.Coordinate(f);return p}function u$(e,t){const{coordinate:n={},coordinates:r}=e,i=l$(e,["coordinate","coordinates"]);if(r)return e;const{type:o,transform:a=[]}=n,s=l$(n,["type","transform"]);if(!o)return Object.assign(Object.assign({},i),{coordinates:a});const[,l]=fB("coordinate",t),{transform:c=!1}=l(o).props||{};if(c)throw new Error(`Unknown coordinate: ${o}.`);return Object.assign(Object.assign({},i),{coordinates:[Object.assign({type:o},s),...a]})}function d$(e,t){return e.filter(e=>e.type===t)}function h$(e){return d$(e,"polar").length>0}function f$(e){return d$(e,"helix").length>0}function p$(e){return d$(e,"transpose").length%2===1}function g$(e){return d$(e,"parallel").length>0}function m$(e){return d$(e,"theta").length>0}function v$(e){return d$(e,"reflect").length>0}function A$(e){return d$(e,"radial").length>0}function b$(e){return d$(e,"radar").length>0}function y$(e){return d$(e,"reflectY").length>0}function w$(e){return e.find(e=>"cartesian"===e.type||"cartesian3D"===e.type)?e:[...e,{type:"cartesian"}]}function _$(e,t,n,r,i,o){const{guide:a={}}=n,s=P$(e,t,n);if("string"!==typeof s)return n;const l=F$(s,e,t,n),c=D$(s,l,n);return Object.assign(Object.assign(Object.assign({},n),j$(s,e,t,n,r)),{domain:c,range:$$(s,e,t,n,c,i,o),expectedDomain:l,guide:a,name:e,type:s})}function x$(e,t){const n={};for(const r of e){const{values:e,name:i}=r,o=t[i];for(const t of e){const{name:e,value:r}=t;n[e]=r.map(e=>o.map(e))}}return n}function E$(e,t){const n=Array.from(e.values()).flatMap(e=>e.channels),r=Fp(n,e=>e.map(e=>t.get(e.scale.uid)),e=>e.name).filter(([,e])=>e.some(e=>"function"===typeof e.getOptions().groupTransform)&&e.every(e=>e.getTicks)).map(e=>e[1]);r.forEach(e=>{const t=e.map(e=>e.getOptions().groupTransform)[0];t(e)})}function S$(e,t){var n;const{components:r=[]}=t,i=["scale","encode","axis","legend","data","transform"],o=Array.from(new Set(e.flatMap(e=>e.channels.map(e=>e.scale)))),a=new Map(o.map(e=>[e.name,e]));for(const s of r){const e=M$(s);for(const t of e){const e=a.get(t),r=(null===(n=s.scale)||void 0===n?void 0:n[t])||{},{independent:l=!1}=r;if(e&&!l){const{guide:t}=e,n="boolean"===typeof t?{}:t;e.guide=P({},n,s),Object.assign(e,r)}else{const e=Object.assign(Object.assign({},r),{expectedDomain:r.domain,name:t,guide:ck(s,i)});o.push(e)}}}return o}function C$(e){if(!e||!Array.isArray(e))return[yg,yg];let t,n;const r=r=>{var i;t=r.map.bind(r),n=null===(i=r.invert)||void 0===i?void 0:i.bind(r);const o=e.filter(([e])=>"function"===typeof e),a=e.filter(([e])=>"function"!==typeof e),s=new Map(a);if(r.map=e=>{for(const[t,n]of o)if(t(e))return n;return s.has(e)?s.get(e):t(e)},!n)return r;const l=new Map(a.map(([e,t])=>[t,e])),c=new Map(o.map(([e,t])=>[t,e]));return r.invert=e=>c.has(e)?e:l.has(e)?l.get(e):n(e),r},i=e=>(null!==t&&(e.map=t),null!==n&&(e.invert=n),e);return[r,i]}function T$(e,t){const n=Object.keys(e);for(const r of Object.values(t)){const{name:t}=r.getOptions();if(t in e){const i=n.filter(e=>e.startsWith(t)).map(e=>+(e.replace(t,"")||0)),o=k_(i)+1,a=`${t}${o}`;e[a]=r,r.getOptions().key=a}else e[t]=r}return e}function k$(e,t){const[n]=fB("scale",t),{relations:r}=e,[i]=C$(r),o=n(e);return i(o)}function O$(e){const t=e.flatMap(e=>Array.from(e.values())).flatMap(e=>e.channels.map(e=>e.scale));I$(t,"x"),I$(t,"y")}function M$(e){const{channels:t=[],type:n,scale:r={}}=e,i=["shape","color","opacity","size"];return 0!==t.length?t:"axisX"===n?["x"]:"axisY"===n?["y"]:"legends"===n?Object.keys(r).filter(e=>i.includes(e)):[]}function I$(e,t){const n=e.filter(({name:e,facet:n=!0})=>n&&e===t),r=n.flatMap(e=>e.domain),i=n.every(L$)?ym(r):n.every(B$)?Array.from(new Set(r)):null;if(null!==i)for(const o of n)o.domain=i}function D$(e,t,n){const{ratio:r}=n;return void 0===r||null===r?t:L$({type:e})?N$(t,r,e):B$({type:e})?R$(t,r):t}function N$(e,t,n){const r=e.map(Number),i=new bm({domain:r,range:[r[0],r[0]+(r[r.length-1]-r[0])*t]});return"time"===n?e.map(e=>new Date(i.map(e))):e.map(e=>i.map(e))}function R$(e,t){const n=Math.round(e.length*t);return e.slice(0,n)}function L$(e){const{type:t}=e;if("string"!==typeof t)return!1;const n=["linear","log","pow","time"];return n.includes(t)}function B$(e){const{type:t}=e;if("string"!==typeof t)return!1;const n=["band","point","ordinal"];return n.includes(t)}function P$(e,t,n){const{type:r,domain:i,range:o,quantitative:a,ordinal:s}=n;return void 0!==r?r:ij(t)?"identity":"string"===typeof o?"linear":(i||o||[]).length>2?K$(e,s):void 0!==i?nj([i])?K$(e,s):rj(t)?"time":Y$(e,o,a):nj(t)?K$(e,s):rj(t)?"time":Y$(e,o,a)}function F$(e,t,n,r){const{domain:i}=r;if(void 0!==i)return i;switch(e){case"linear":case"time":case"log":case"pow":case"sqrt":case"quantize":case"threshold":return q$(X$(n,r),r);case"band":case"ordinal":case"point":return J$(n);case"quantile":return Z$(n);case"sequential":return q$(ej(n),r);default:return[]}}function $$(e,t,n,r,i,o,a){const{range:s}=r;if("string"===typeof s)return U$(s);if(void 0!==s)return s;const{rangeMin:l,rangeMax:c}=r;switch(e){case"linear":case"time":case"log":case"pow":case"sqrt":{const e=H$(n,r,i,o,a),[s,u]=tj(t,e);return[null!==l&&void 0!==l?l:s,null!==c&&void 0!==c?c:u]}case"band":case"point":{const e="size"===t?5:0,n="size"===t?10:1;return[null!==l&&void 0!==l?l:e,null!==c&&void 0!==c?c:n]}case"ordinal":return H$(n,r,i,o,a);case"sequential":return;case"constant":return[n[0][0]];default:return[]}}function j$(e,t,n,r,i){switch(e){case"linear":case"time":case"log":case"pow":case"sqrt":return W$(i,r);case"band":case"point":return G$(e,t,i,r);case"sequential":return z$(r);default:return r}}function H$(e,t,n,r,i){const[o]=fB("palette",i),{category10:a,category20:s}=r,l=Sm(n).length<=a.length?a:s,{palette:c=l,offset:u}=t;if(Array.isArray(c))return c;try{return o({type:c})}catch(c4){const t=Q$(c,n,u);if(t)return t;throw new Error(`Unknown Component: ${c} `)}}function U$(e){return e.split("-")}function Q$(e,t,n=e=>e){if(!e)return null;const r=dk(e),i=o[`scheme${r}`],a=o[`interpolate${r}`];if(!i&&!a)return null;if(i){if(!i.some(Array.isArray))return i;const e=i[t.length];if(e)return e}return t.map((e,r)=>a(n(r/t.length)))}function z$(e){const{palette:t="ylGnBu",offset:n}=e,r=dk(t),i=o[`interpolate${r}`];if(!i)throw new Error(`Unknown palette: ${r}`);return{interpolator:n?e=>i(n(e)):i}}function W$(e,t){const{interpolate:n=cm,nice:r=!1,tickCount:i=5}=t;return Object.assign(Object.assign({},t),{interpolate:n,nice:r,tickCount:i})}function G$(e,t,n,r){if(void 0!==r.padding||void 0!==r.paddingInner||void 0!==r.paddingOuter)return Object.assign(Object.assign({},r),{unknown:NaN});const i=V$(e,t,n),{paddingInner:o=i,paddingOuter:a=i}=r;return Object.assign(Object.assign({},r),{paddingInner:o,paddingOuter:a,padding:i,unknown:NaN})}function V$(e,t,n){return"enterDelay"===t||"enterDuration"===t||"size"===t?0:"band"===e?m$(n)?0:.1:"point"===e?.5:0}function K$(e,t){return t||(aj(e)?"point":"ordinal")}function Y$(e,t,n){return n||("color"!==e||t?"linear":"sequential")}function q$(e,t){if(0===e.length)return e;const{domainMin:n,domainMax:r}=t,[i,o]=e;return[null!==n&&void 0!==n?n:i,null!==r&&void 0!==r?r:o]}function X$(e,t){const{zero:n=!1}=t;let r=1/0,i=-1/0;for(const o of e)for(const e of o)Cg(e)&&(r=Math.min(r,+e),i=Math.max(i,+e));return r===1/0?[]:n?[Math.min(0,r),i]:[r,i]}function J$(e){return Array.from(new Set(e.flat()))}function Z$(e){return e.flat().sort()}function ej(e){let t=1/0,n=-1/0;for(const r of e)for(const e of r)Cg(e)&&(t=Math.min(t,+e),n=Math.max(n,+e));return t===1/0?[]:[t<0?-n:t,n]}function tj(e,t){return"enterDelay"===e?[0,1e3]:"enterDuration"==e?[300,1e3]:e.startsWith("y")||e.startsWith("position")?[1,0]:"color"===e?[xm(t),Em(t)]:"opacity"===e?[0,1]:"size"===e?[1,10]:[0,1]}function nj(e){return oj(e,e=>{const t=typeof e;return"string"===t||"boolean"===t})}function rj(e){return oj(e,e=>e instanceof Date)}function ij(e){return oj(e,Rg)}function oj(e,t){for(const n of e)if(n.some(t))return!0;return!1}function aj(e){return e.startsWith("x")||e.startsWith("y")||e.startsWith("position")||e.startsWith("size")}function sj(e){return e.startsWith("x")||e.startsWith("y")||e.startsWith("position")||"enterDelay"===e||"enterDuration"===e||"updateDelay"===e||"updateDuration"===e||"exitDelay"===e||"exitDuration"===e}function lj(e){if(!e||!e.type)return!1;if("function"===typeof e.type)return!0;const{type:t,domain:n,range:r,interpolator:i}=e,o=n&&n.length>0,a=r&&r.length>0;return!!(["linear","sqrt","log","time","pow","threshold","quantize","quantile","ordinal","band","point"].includes(t)&&o&&a)||(!(!["sequential"].includes(t)||!o||!a&&!i)||!(!["constant","identity"].includes(t)||!a))}var cj=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(c4){o(c4)}}function s(e){try{l(r["throw"](e))}catch(c4){o(c4)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},uj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const dj=Symbol("CALLBACK_ITEM");function hj(e,t,n){const{encode:r={},scale:i={},transform:o=[]}=t,a=uj(t,["encode","scale","transform"]);return[e,Object.assign(Object.assign({},a),{encode:r,scale:i,transform:o})]}function fj(e,t,n){return cj(this,void 0,void 0,function*(){const{library:e}=n,{data:r}=t,[i]=fB("data",e),o=Tj(r),{transform:a=[]}=o,s=uj(o,["transform"]),l=[s,...a],c=l.map(e=>i(e,n)),u=yield _g(c)(r),d=!r||Array.isArray(r)||Array.isArray(u)?u:{value:u};return[Array.isArray(u)?_m(u):[],Object.assign(Object.assign({},t),{data:d})]})}function pj(e,t,n){const{encode:r}=t;if(!r)return[e,t];const i={};for(const[o,a]of Object.entries(r))if(Array.isArray(a))for(let e=0;e<a.length;e++){const t=`${o}${0===e?"":e}`;i[t]=a[e]}else i[o]=a;return[e,Object.assign(Object.assign({},t),{encode:i})]}function gj(e,t,n){const{encode:r,data:i}=t;if(!r)return[e,t];const o=wm(r,e=>{if(Ej(e))return e;const t=Sj(i,e);return{type:t,value:e}});return[e,Object.assign(Object.assign({},t),{encode:o})]}function mj(e,t,n){const{encode:r}=t;if(!r)return[e,t];const i=wm(r,(e,t)=>{const{type:n}=e;return"constant"!==n||sj(t)?e:Object.assign(Object.assign({},e),{constant:!0})});return[e,Object.assign(Object.assign({},t),{encode:i})]}function vj(e,t,n){const{encode:r,data:i}=t;if(!r)return[e,t];const{library:o}=n,a=AB(o),s=wm(r,e=>a(i,e));return[e,Object.assign(Object.assign({},t),{encode:s})]}function Aj(e,t,n){const{tooltip:r={}}=t;return Lg(r)?[e,t]:Array.isArray(r)?[e,Object.assign(Object.assign({},t),{tooltip:{items:r}})]:Rg(r)&&sL(r)?[e,Object.assign(Object.assign({},t),{tooltip:r})]:[e,Object.assign(Object.assign({},t),{tooltip:{items:[r]}})]}function bj(e,t,n){const{data:r,encode:i,tooltip:o={}}=t;if(Lg(o))return[e,t];const a=t=>{if(!t)return t;if("string"===typeof t)return e.map(e=>({name:t,value:r[e][t]}));if(Rg(t)){const{field:n,channel:o,color:a,name:s=n,valueFormatter:l=e=>e}=t,c="string"===typeof l?Tk(l):l,u=o&&i[o],d=u&&i[o].field,h=s||d||o,f=[];for(const t of e){const e=n?r[t][n]:u?i[o].value[t]:null;f[t]={name:h,color:a,value:c(e)}}return f}if("function"===typeof t){const n=[];for(const o of e){const e=t(r[o],o,r,i);Rg(e)?n[o]=Object.assign(Object.assign({},e),{[dj]:!0}):n[o]={value:e}}return n}return t},{title:s,items:l=[]}=o,c=uj(o,["title","items"]),u=Object.assign({title:a(s),items:Array.isArray(l)?l.map(a):[]},c);return[e,Object.assign(Object.assign({},t),{tooltip:u})]}function yj(e,t,n){const{encode:r}=t,i=uj(t,["encode"]);if(!r)return[e,t];const o=Object.entries(r),a=o.filter(([,e])=>{const{value:t}=e;return Array.isArray(t[0])}).flatMap(([t,n])=>{const r=[[t,new Array(e.length).fill(void 0)]],{value:i}=n,o=uj(n,["value"]);for(let a=0;a<i.length;a++){const n=i[a];if(Array.isArray(n))for(let i=0;i<n.length;i++){const o=r[i]||[`${t}${i}`,new Array(e).fill(void 0)];o[1][a]=n[i],r[i]=o}}return r.map(([e,t])=>[e,Object.assign({type:"column",value:t},o)])}),s=Object.fromEntries([...o,...a]);return[e,Object.assign(Object.assign({},i),{encode:s})]}function wj(e,t,n){const{axis:r={},legend:i={},slider:o={},scrollbar:a={}}=t,s=(e,t)=>{if("boolean"===typeof e)return e?{}:null;const n=e[t];return void 0===n||n?n:null},l="object"===typeof r?Array.from(new Set(["x","y","z",...Object.keys(r)])):["x","y","z"];return P(t,{scale:Object.assign(Object.assign({},Object.fromEntries(l.map(e=>{const t=s(a,e);return[e,Object.assign({guide:s(r,e),slider:s(o,e),scrollbar:t},t&&{ratio:void 0===t.ratio?.5:t.ratio})]}))),{color:{guide:s(i,"color")},size:{guide:s(i,"size")},shape:{guide:s(i,"shape")},opacity:{guide:s(i,"opacity")}})}),[e,t]}function _j(e,t,n){const{animate:r}=t;return r||void 0===r||P(t,{animate:{enter:{type:null},exit:{type:null},update:{type:null}}}),[e,t]}function xj(e,t,n){var r,i;return P(t,{scale:{series:Object.assign({key:`DEFAULT_${t.type}_SERIES_KEY`},null!==(i=null===(r=null===t||void 0===t?void 0:t.scale)||void 0===r?void 0:r.series)&&void 0!==i?i:{})}}),[e,t]}function Ej(e){if("object"!==typeof e||e instanceof Date||null===e)return!1;const{type:t}=e;return Cg(t)}function Sj(e,t){return"function"===typeof t?"transform":"string"===typeof t&&Cj(e,t)?"field":"constant"}function Cj(e,t){return!!Array.isArray(e)&&e.some(e=>void 0!==e[t])}function Tj(e){if(lr(e))return{type:"inline",value:e};if(!e)return{type:"inline",value:null};if(Array.isArray(e))return{type:"inline",value:e};const{type:t="inline"}=e,n=uj(e,["type"]);return Object.assign(Object.assign({},n),{type:t})}var kj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Oj(e,t){var n;if(t)return"string"===typeof t?document.querySelector(t):t;const r=null===(n=e.ownerDocument)||void 0===n?void 0:n.defaultView;if(!r)return;const i=r.getContextService().getDomElement();return i.parentElement}function Mj(e){const t=e.getRenderBounds(),{min:[n,r],max:[i,o]}=t;return{x:n,y:r,width:i-n,height:o-r}}function Ij(e,t){const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:n.x-r.x,y:n.y-r.y}}function Dj(e,t,n,r,i,o,a,s={},l=[10,10]){const c={".g2-tooltip":{},".g2-tooltip-title":{overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"}},u=new iL({className:"tooltip",style:{x:t,y:n,container:a,data:[],bounding:o,position:r,enterable:i,title:"",offset:l,template:{prefixCls:"g2-"},style:P(c,s)}});return e.appendChild(u.HTMLTooltipElement),u}function Nj({root:e,data:t,x:n,y:r,render:i,event:o,single:a,position:s="right-bottom",enterable:l=!1,css:c,mount:u,bounding:d,offset:h}){const f=Oj(e,u),p=Oj(e),g=a?p:e,m=d||Mj(e),v=Ij(p,f),{tooltipElement:A=Dj(f,n,r,s,l,m,v,c,h)}=g,{items:b,title:y=""}=t;A.update(Object.assign({x:n,y:r,data:b,title:y,position:s,enterable:l,container:v},void 0!==i&&{content:i(o,{items:b,title:y})})),g.tooltipElement=A}function Rj({root:e,single:t,emitter:n,nativeEvent:r=!0,event:i=null}){r&&n.emit("tooltip:hide",{nativeEvent:r});const o=Oj(e),a=t?o:e,{tooltipElement:s}=a;s&&s.hide(null===i||void 0===i?void 0:i.clientX,null===i||void 0===i?void 0:i.clientY),zj(e),Wj(e),Vj(e)}function Lj({root:e,single:t}){const n=Oj(e),r=t?n:e;if(!r)return;const{tooltipElement:i}=r;i&&(i.destroy(),r.tooltipElement=void 0),zj(e),Wj(e),Vj(e)}function Bj(e){const{value:t}=e;return Object.assign(Object.assign({},e),{value:void 0===t?"undefined":t})}function Pj(e){var t,n,r,i,o,a,s;const{__data__:l}=e,{title:c,items:u=[]}=l,d=u.some(e=>dj in e);if(d){const t=u.filter(Cg).map(t=>{var{color:n=$j(e)}=t,r=kj(t,["color"]);return Object.assign(Object.assign({},r),{color:n})}).map(Bj);return Object.assign(Object.assign({},c&&{title:c}),{items:t})}const h=null!==(n=null===(t=null===l||void 0===l?void 0:l.normalized)||void 0===t?void 0:t.x)&&void 0!==n?n:0,f=null===(r=e.parentNode)||void 0===r?void 0:r.__data__,p=null!==(i=null===f||void 0===f?void 0:f.encode)&&void 0!==i?i:{},{x:g={},y:m={},color:v={}}=p,{value:A=[]}=g,{value:b=[]}=m,{value:y=[]}=v,w=Math.min(Math.round(A.length*h),A.length-1);return{title:`${A[w]}, ${b[w]}`,items:[{name:null!==(o=v.field)&&void 0!==o?o:"value",value:y[w],color:(null===(a=e.style)||void 0===a?void 0:a.fill)||(null===(s=e.getAttribute)||void 0===s?void 0:s.call(e,"color"))||"#000"}]}}function Fj(e){const{__data__:t}=e;if(mg(e))return Pj(e);const{title:n,items:r=[]}=t,i=r.filter(Cg).map(t=>{var{color:n=$j(e)}=t,r=kj(t,["color"]);return Object.assign(Object.assign({},r),{color:n})}).map(Bj);return Object.assign(Object.assign({},n&&{title:n}),{items:i})}function $j(e){const t=e.getAttribute("fill"),n=e.getAttribute("stroke"),{__data__:r}=e,{color:i=(t&&"transparent"!==t?t:n)}=r;return i}function jj(e,t=e=>e){const n=new Map(e.map(e=>[t(e),e]));return Array.from(n.values())}function Hj(e,t,n,r=e.map(e=>e["__data__"]),i={}){const o=e=>e instanceof Date?+e:e,a=jj(r.map(e=>e.title),o).filter(Cg),s=r.flatMap((r,o)=>{const a=r.element||e[o],{items:s=[],title:l}=r,c=s.filter(Cg),u=void 0!==n?n:s.length<=1;return c.map(e=>{var{color:n=$j(a)||i.color,name:o}=e,s=kj(e,["color","name"]);const c=bg(t,r),d=u&&!(dj in s)?c||o:o||c;return Object.assign(Object.assign({},s),{color:n,name:d||l})})}).map(Bj);return Object.assign(Object.assign({},a.length>0&&{title:a.join(",")}),{items:jj(s,e=>`(${o(e.name)}, ${o(e.value)}, ${o(e.color)})`)})}function Uj(e,t,n,r){var{plotWidth:i,plotHeight:o,mainWidth:a,mainHeight:s,startX:l,startY:c,transposed:u,polar:d,insetLeft:h,insetTop:f}=r,p=kj(r,["plotWidth","plotHeight","mainWidth","mainHeight","startX","startY","transposed","polar","insetLeft","insetTop"]);const g=Object.assign({lineWidth:1,stroke:"#1b1e23",strokeOpacity:.5},p),m=(t,n,r)=>{const i=new vh({style:Object.assign({cx:t,cy:n,r:r},g)});return e.appendChild(i),i},v=(t,n,r,i)=>{const o=new Th({style:Object.assign({x1:t,x2:n,y1:r,y2:i},g)});return e.appendChild(o),o},A=(e,t)=>{if(1===t.length)return t[0];const n=t.map(t=>Hg(t,e)),r=YR(n,e=>e);return t[r]},b=A(n,t),y=()=>u?[l+b[0],l+b[0],c,c+o]:[l,l+i,b[1]+c,b[1]+c],w=()=>{const e=l+h+a/2,t=c+f+s/2,n=Hg([e,t],b);return[e,t,n]};if(d){const[t,n,r]=w(),i=e.ruleX||m(t,n,r);i.style.cx=t,i.style.cy=n,i.style.r=r,e.ruleX=i}else{const[t,n,r,i]=y(),o=e.ruleX||v(t,n,r,i);o.style.x1=t,o.style.x2=n,o.style.y1=r,o.style.y2=i,e.ruleX=o}}function Qj(e,t,n){var{plotWidth:r,plotHeight:i,mainWidth:o,mainHeight:a,startX:s,startY:l,transposed:c,polar:u,insetLeft:d,insetTop:h}=n,f=kj(n,["plotWidth","plotHeight","mainWidth","mainHeight","startX","startY","transposed","polar","insetLeft","insetTop"]);const p=Object.assign({lineWidth:1,stroke:"#1b1e23",strokeOpacity:.5},f),g=t.map(e=>e[1]),m=t.map(e=>e[0]),v=qR(g),A=qR(m),b=()=>{if(u){const e=Math.min(o,a)/2,t=s+d+o/2,n=l+h+a/2,r=Ug($g([A,v],[t,n])),i=t+e*Math.cos(r),c=n+e*Math.sin(r);return[t,i,n,c]}return c?[s,s+r,v+l,v+l]:[A+s,A+s,l,l+i]},[y,w,_,x]=b(),E=()=>{const t=new Th({style:Object.assign({x1:y,x2:w,y1:_,y2:x},p)});return e.appendChild(t),t};if(m.length>0){const t=e.ruleY||E();t.style.x1=y,t.style.x2=w,t.style.y1=_,t.style.y2=x,e.ruleY=t}}function zj(e){e.ruleY&&(e.ruleY.remove(),e.ruleY=void 0)}function Wj(e){e.ruleX&&(e.ruleX.remove(),e.ruleX=void 0)}function Gj(e,{data:t,style:n,theme:r}){e.markers&&e.markers.forEach(e=>e.remove());const{type:i=""}=n,o=t.filter(e=>{const[{x:t,y:n}]=e;return Cg(t)&&Cg(n)}).map(e=>{const[{color:t,element:o},a]=e,s=t||o.style.fill||o.style.stroke||r.color,l="hollow"===i?"transparent":s,c="hollow"===i?s:"#fff",u=new vh({className:"g2-tooltip-marker",style:Object.assign({cx:a[0],cy:a[1],fill:l,r:4,stroke:c,lineWidth:2,pointerEvents:"none"},n)});return u});for(const a of o)e.appendChild(a);e.markers=o}function Vj(e){e.markers&&(e.markers.forEach(e=>e.remove()),e.markers=[])}function Kj(e,t){return Array.from(e.values()).some(e=>{var n;return null===(n=e.interaction)||void 0===n?void 0:n[t]})}function Yj(e,t){return void 0===e?t:e}function qj(e){const{title:t,items:n}=e;return 0===n.length&&void 0===t}function Xj(e){return Array.from(e.values()).some(e=>{var t;return(null===(t=e.interaction)||void 0===t?void 0:t.seriesTooltip)&&e.tooltip})}function Jj(e,t){const{innerWidth:n,innerHeight:r,marginLeft:i,paddingLeft:o,insetLeft:a,marginTop:s,paddingTop:l,insetTop:c}=e.getOptions();return{x:(t.x-i-o-a)/n,y:(t.y-s-l-c)/r}}function Zj(e){const{x:t}=e;if(!t||!t.valueBandWidth)return!0;const{valueBandWidth:n}=t;return!!lr(n)||1===new Set(n.values()).size}function eH(e,t){const{adjustedRange:n,valueBandWidth:r,valueStep:i}=e,o=Array.from(r.values()),a=Array.from(i.values()),s=n.map((e,t)=>{const n=(a[t]-o[t])/2;return[e-n,e+o[t]+n]}),l=s.findIndex(([e,n])=>e<=t&&t<=n);return-1!==l?l:t>.5?n.length-1:0}function tH({root:e,event:t,elements:n=[],coordinate:r,scale:i,shared:o}){var a,s;const l=e=>"interval"===e.markType,c=n.every(l)&&!Ce(r),u=i.x,d=Zj(i),h=i.series,f=null!==(s=null===(a=null===u||void 0===u?void 0:u.getBandWidth)||void 0===a?void 0:a.call(u))&&void 0!==s?s:0,p=h&&h.valueBandWidth?e=>{const t=Math.round(1/h.valueBandWidth);return e.__data__.x+e.__data__.series*f+f/(2*t)}:e=>e.__data__.x+f/2;c&&n.sort((e,t)=>p(e)-p(t));const g=e=>{const{target:t=Xg(n)}=e;return TR(t,t=>!!t.classList&&(mg(t)&&SO(t,"__data__.normalized",Jj(r,{x:e.offsetX,y:e.offsetY})),t.classList.includes("element")))},m=c?t=>{const i=nR(e,t);if(!i)return;const[a]=r.invert(i),s=_D(p).center,l=d?s(n,a):eH(u,a),c=n[l];if(!o){const e=n.find(e=>e!==c&&p(e)===p(c));if(e)return g(t)||e}return c}:g;return m(t)}function nH({root:e,event:t,elements:n,coordinate:r,scale:i,startX:o,startY:a}){const s=Se(r),l=[],c=[];for(const N of n){const{__data__:e}=N,{seriesX:t,title:n,items:r}=e;t?l.push(N):(n||r)&&c.push(N)}const u=e=>"interval"===e.markType,d=c.length&&c.every(u)&&!Ce(r),h=e=>e.__data__.x,f=!!i.x.getBandWidth,p=f&&c.length>0;l.sort((e,t)=>{const n=s?0:1,r=e=>e.getBounds().min[n];return s?r(t)-r(e):r(e)-r(t)});const g=e=>{const t=s?1:0,{min:n,max:r}=e.getLocalBounds();return DD([n[t],r[t]])};d?n.sort((e,t)=>h(e)-h(t)):c.sort((e,t)=>{const[n,r]=g(e),[i,o]=g(t),a=(n+r)/2,l=(i+o)/2;return s?l-a:a-l});const m=new Map(l.map(e=>{const{__data__:t}=e,{seriesX:n}=t,r=n.map((e,t)=>t),i=DD(r,e=>n[+e]);return[e,[i,n]]})),{x:v}=i,A=(null===v||void 0===v?void 0:v.getBandWidth)?v.getBandWidth()/2:0,b=e=>{const[t]=r.invert(e);return t-A},y=(e,t,n,r)=>{const{_x:i}=e,o=void 0!==i?v.map(i):b(t),a=r.filter(Cg),[s,l]=DD([a[0],a[a.length-1]]),c=s===l;if(!p&&(o<s||o>l)&&!c)return null;const u=_D(e=>r[+e]).center,d=u(n,o);return n[d]},w=d?(e,t)=>{const n=_D(h).center,r=n(t,b(e)),i=t[r],o=Lp(t,h),a=o.get(h(i));return a}:(e,t)=>{const n=s?1:0,r=e[n],i=t.filter(e=>{const[t,n]=g(e);return r>=t&&r<=n});if(!p||i.length>0)return i;const o=_D(e=>{const[t,n]=g(e);return(t+n)/2}).center,a=o(t,r);return[t[a]].filter(Cg)},_=(e,t)=>{const{__data__:n}=e;return Object.fromEntries(Object.entries(n).filter(([e])=>e.startsWith("series")&&"series"!==e).map(([e,n])=>{const r=n[t];return[Up(e.replace("series","")),r]}))},x=nR(e,t);if(!x)return;const E=[x[0]-o,x[1]-a];if(!E)return;const S=w(E,c),C=[],T=[];for(const N of l){const[e,n]=m.get(N),i=y(t,E,e,n);if(null!==i){C.push(N);const e=_(N,i),{x:t,y:n}=e,o=r.map([(t||0)+A,n||0]);T.push([Object.assign(Object.assign({},e),{element:N}),o])}}const k=Array.from(new Set(T.map(e=>e[0].x))),O=k[YR(k,e=>Math.abs(e-b(E)))],M=T.filter(e=>e[0].x===O),I=[...M.map(e=>e[0]),...S.map(e=>e.__data__)],D=[...C,...S];return{selectedElements:D,selectedData:I,filteredSeriesData:M,abstractX:b}}function rH(e,t){var{elements:n,sort:r,filter:i,scale:o,coordinate:a,crosshairs:s,crosshairsX:l,crosshairsY:c,render:u,groupName:d,emitter:h,wait:f=50,leading:p=!0,trailing:g=!1,startX:m=0,startY:v=0,body:A=!0,single:b=!0,position:y,enterable:w,mount:_,bounding:x,theme:E,offset:S,disableNative:C=!1,marker:T=!0,preserve:k=!1,style:O={},css:M={}}=t,I=kj(t,["elements","sort","filter","scale","coordinate","crosshairs","crosshairsX","crosshairsY","render","groupName","emitter","wait","leading","trailing","startX","startY","body","single","position","enterable","mount","bounding","theme","offset","disableNative","marker","preserve","style","css"]);const D=n(e),N=P(O,I),R=Ce(a),L=Se(a),{innerWidth:B,innerHeight:F,width:$,height:j,insetLeft:H,insetTop:U}=a.getOptions(),Q=HR(t=>{var n;const f=nR(e,t);if(!f)return;const p=tR(e),g=p.min[0],C=p.min[1],{selectedElements:k,selectedData:O,filteredSeriesData:I,abstractX:P}=nH({root:e,event:t,elements:D,coordinate:a,scale:o,startX:m,startY:v}),Q=Hj(k,o,d,O,E);if(r&&Q.items.sort((e,t)=>r(e)-r(t)),i&&(Q.items=Q.items.filter(i)),0===k.length||qj(Q))return void z(t);if(A&&Nj({root:e,data:Q,x:f[0]+g,y:f[1]+C,render:u,event:t,single:b,position:y,enterable:w,mount:_,bounding:x,css:M,offset:S}),s||l||c){const t=Og(N,"crosshairs"),n=Object.assign(Object.assign({},t),Og(N,"crosshairsX")),r=Object.assign(Object.assign({},t),Og(N,"crosshairsY")),i=I.map(e=>e[1]);l&&Uj(e,i,f,Object.assign(Object.assign({},n),{plotWidth:B,plotHeight:F,mainWidth:$,mainHeight:j,insetLeft:H,insetTop:U,startX:m,startY:v,transposed:L,polar:R})),c&&Qj(e,i,Object.assign(Object.assign({},r),{plotWidth:B,plotHeight:F,mainWidth:$,mainHeight:j,insetLeft:H,insetTop:U,startX:m,startY:v,transposed:L,polar:R}))}if(T){const t=Og(N,"marker");Gj(e,{data:I,style:t,theme:E})}const W=null===(n=I[0])||void 0===n?void 0:n[0].x,G=null!==W&&void 0!==W?W:P(focus);h.emit("tooltip:show",Object.assign(Object.assign({},t),{nativeEvent:!0,data:Object.assign(Object.assign({},Q),{data:{x:PD(o.x,G,!0)}})}))},f,{leading:p,trailing:g}),z=t=>{Rj({root:e,single:b,emitter:h,event:t})},W=()=>{Lj({root:e,single:b})},G=t=>{var n,{nativeEvent:r,data:i,offsetX:s,offsetY:l}=t,c=kj(t,["nativeEvent","data","offsetX","offsetY"]);if(r)return;const u=null===(n=null===i||void 0===i?void 0:i.data)||void 0===n?void 0:n.x,d=o.x,h=d.map(u),[f,p]=a.map([h,.5]),g=e.getRenderBounds(),m=g.min[0],v=g.min[1];Q(Object.assign(Object.assign({},c),{offsetX:void 0!==s?s:m+f,offsetY:void 0!==l?l:v+p,_x:u}))},V=()=>{Rj({root:e,single:b,emitter:h,nativeEvent:!1})},K=()=>{J(),W()},Y=t=>{nR(e,t)||z(t)},q=()=>{X()},X=()=>{C||(e.addEventListener("pointerdown",Q),e.addEventListener("pointerenter",Q),e.addEventListener("pointermove",Q),e.addEventListener("pointerleave",Y),e.addEventListener("pointerup",z))},J=()=>{C||(e.removeEventListener("pointerdown",Q),e.removeEventListener("pointerenter",Q),e.removeEventListener("pointermove",Q),e.removeEventListener("pointerleave",Y),e.removeEventListener("pointerup",z))};return X(),h.on("tooltip:show",G),h.on("tooltip:hide",V),h.on("tooltip:disable",K),h.on("tooltip:enable",q),()=>{J(),h.off("tooltip:show",G),h.off("tooltip:hide",V),h.off("tooltip:disable",K),h.off("tooltip:enable",q),k?Rj({root:e,single:b,emitter:h,nativeEvent:!1}):W()}}function iH(e,{elements:t,coordinate:n,scale:r,render:i,groupName:o,sort:a,filter:s,emitter:l,wait:c=50,leading:u=!0,trailing:d=!1,groupKey:h=e=>e,single:f=!0,position:p,enterable:g,datum:m,view:v,mount:A,bounding:b,theme:y,offset:w,shared:_=!1,body:x=!0,disableNative:E=!1,preserve:S=!1,css:C={}}){const T=t(e),k=Lp(T,h),O=HR(t=>{const c=tH({root:e,event:t,elements:T,coordinate:n,scale:r,shared:_});if(!c)return void Rj({root:e,single:f,emitter:l,event:t});const u=h(c),d=k.get(u);if(!d)return;const m=1!==d.length||_?Hj(d,r,o,void 0,y):Fj(d[0]);if(a&&m.items.sort((e,t)=>a(e)-a(t)),s&&(m.items=m.items.filter(s)),qj(m))return void Rj({root:e,single:f,emitter:l,event:t});const{offsetX:E,offsetY:S}=t;x&&Nj({root:e,data:m,x:E,y:S,render:i,event:t,single:f,position:p,enterable:g,mount:A,bounding:b,css:C,offset:w}),l.emit("tooltip:show",Object.assign(Object.assign({},t),{nativeEvent:!0,data:Object.assign(Object.assign({},m),{data:vg(c,v)})}))},c,{leading:u,trailing:d}),M=t=>{Rj({root:e,single:f,emitter:l,event:t})},I=()=>{E||(e.addEventListener("pointerdown",O),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",M),e.addEventListener("pointerup",M))},D=()=>{E||(e.removeEventListener("pointerdown",O),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",M),e.removeEventListener("pointerup",M))},N=({nativeEvent:t,offsetX:n,offsetY:r,data:i})=>{if(t)return;const{data:o}=i,a=_R(T,o,m);if(!a)return;const s=a.getBBox(),{x:l,y:c,width:u,height:d}=s,h=e.getBBox();O({target:a,offsetX:void 0!==n?n+h.x:l+u/2,offsetY:void 0!==r?r+h.y:c+d/2})},R=({nativeEvent:t}={})=>{t||Rj({root:e,single:f,emitter:l,nativeEvent:!1})},L=()=>{D(),Lj({root:e,single:f})},B=()=>{I()};return l.on("tooltip:show",N),l.on("tooltip:hide",R),l.on("tooltip:enable",B),l.on("tooltip:disable",L),I(),()=>{D(),l.off("tooltip:show",N),l.off("tooltip:hide",R),l.off("tooltip:enable",B),l.off("tooltip:disable",L),S?Rj({root:e,single:f,emitter:l,nativeEvent:!1}):Lj({root:e,single:f})}}function oH(e){const{shared:t,crosshairs:n,crosshairsX:r,crosshairsY:i,series:o,name:a,item:s=()=>({}),facet:l=!1}=e,c=kj(e,["shared","crosshairs","crosshairsX","crosshairsY","series","name","item","facet"]);return(e,a,u)=>{const{container:d,view:h}=e,{scale:f,markState:p,coordinate:g,theme:m}=h,v=Kj(p,"seriesTooltip"),A=Kj(p,"crosshairs"),b=eR(d),y=Yj(o,v),w=Yj(n,A);if(y&&Xj(p)&&!l)return rH(b,Object.assign(Object.assign({},c),{theme:m,elements:XN,scale:f,coordinate:g,crosshairs:w,crosshairsX:Yj(Yj(r,n),!1),crosshairsY:Yj(i,w),item:s,emitter:u}));if(y&&l){const t=a.filter(t=>t!==e&&t.options.parentKey===e.options.key),o=JN(e,a),l=t[0].view.scale,d=b.getBounds(),h=d.min[0],f=d.min[1];return Object.assign(l,{facet:!0}),rH(b.parentNode.parentNode,Object.assign(Object.assign({},c),{theme:m,elements:()=>o,scale:l,coordinate:g,crosshairs:Yj(n,A),crosshairsX:Yj(Yj(r,n),!1),crosshairsY:Yj(i,w),item:s,startX:h,startY:f,emitter:u}))}return iH(b,Object.assign(Object.assign({},c),{datum:sR(h),elements:XN,scale:f,coordinate:g,groupKey:t?aR(h):void 0,item:s,emitter:u,view:h,theme:m,shared:t}))}}oH.props={reapplyWhenUpdate:!0};var aH=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(c4){o(c4)}}function s(e){try{l(r["throw"](e))}catch(c4){o(c4)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})};const sH="legend-category",lH="legend-continuous",cH="items-item",uH="legend-category-item-marker",dH="legend-category-item-label",hH="legend-category-item-focus-group";function fH(e){return e.getElementsByClassName(uH)[0]}function pH(e){return e.getElementsByClassName(dH)[0]}function gH(e){return e.getElementsByClassName(hH)[0]}function mH(e){return e.getElementsByClassName(cH)}function vH(e){return e.getElementsByClassName(sH)}function AH(e){return e.getElementsByClassName(lH)}function bH(e,t){const n=[...vH(e),...AH(e)];n.forEach(e=>{t(e,e=>e)})}function yH(e){let t=e.parentNode;while(t&&!t.__data__)t=t.parentNode;return t.__data__}function wH(e,{legends:t,marker:n,label:r,datum:i,filter:o,defaultSelect:a,emitter:s,channel:l,state:c={}}){const u=new Map,d=new Map,h=new Map,f=new Map,{unselected:p={markerStroke:"#aaa",markerFill:"#aaa",labelFill:"#aaa"}}=c,g={unselected:Og(p,"marker")},m={unselected:Og(p,"label")},{setState:v,removeState:A}=hR(g,void 0),{setState:b,removeState:y}=hR(m,void 0),w=Array.from(t(e));let _=w.map(i);const x=()=>{for(const e of w){const t=i(e),o=n(e),a=r(e);_.includes(t)?(A(o,"unselected"),y(a,"unselected")):(v(o,"unselected"),b(a,"unselected"))}};for(const T of w){const t=()=>{yR(e,"pointer")},n=()=>{wR(e)},r=e=>aH(this,void 0,void 0,function*(){const t=i(T),n=_.indexOf(t);-1===n?_.push(t):_.splice(n,1),yield o(_),x();const{nativeEvent:r=!0}=e;r&&(_.length===w.length?s.emit("legend:reset",{nativeEvent:r}):s.emit("legend:filter",Object.assign(Object.assign({},e),{nativeEvent:r,data:{channel:l,values:_}})))});T.addEventListener("click",r),T.addEventListener("pointerenter",t),T.addEventListener("pointerout",n),u.set(T,r),d.set(T,t),h.set(T,n);const a=gH(T);if(a){const e=e=>aH(this,void 0,void 0,function*(){e.stopPropagation();const t=i(T),n=_.indexOf(t),{nativeEvent:r=!0}=e;if(-1!==n&&1===_.length){if(!r)return;_=w.map(i),yield o(_),x(),s.emit("legend:reset",{nativeEvent:r})}else{if(_=[t],yield o(_),x(),!r)return;s.emit("legend:focus",Object.assign(Object.assign({},e),{nativeEvent:r,data:{channel:l,value:t}}))}});a.addEventListener("click",e),f.set(T,e)}}const E=e=>aH(this,void 0,void 0,function*(){const{nativeEvent:t}=e;if(t)return;const{data:n}=e,{channel:r,value:i}=n;r===l&&(_=[i],yield o(_),x())}),S=e=>aH(this,void 0,void 0,function*(){const{nativeEvent:t}=e;if(t)return;const{data:n}=e,{channel:r,values:i}=n;r===l&&(_=i,yield o(_),x())}),C=e=>aH(this,void 0,void 0,function*(){const{nativeEvent:t}=e;t||(_=w.map(i),yield o(_),x())});return s.on("legend:filter",S),s.on("legend:focus",E),s.on("legend:reset",C),a&&s.emit("legend:filter",{data:{channel:l,values:a}}),()=>{for(const e of w){e.removeEventListener("click",u.get(e)),e.removeEventListener("pointerenter",d.get(e)),e.removeEventListener("pointerout",h.get(e));const t=gH(e);t&&t.removeEventListener("click",f.get(e)),s.on("legend:focus",E),s.off("legend:filter",S),s.off("legend:reset",C)}}}function _H(e,{legend:t,filter:n,emitter:r,channel:i}){const o=({detail:{value:e}})=>{n(e),r.emit({nativeEvent:!0,data:{channel:i,values:e}})};return t.addEventListener("valuechange",o),()=>{t.removeEventListener("valuechange",o)}}function xH(e,{legend:t,channel:n,value:r,ordinal:i,channels:o,allChannels:a,facet:s=!1}){return aH(this,void 0,void 0,function*(){const{view:l,update:c,setState:u}=e;u(t,e=>{const{marks:t}=e,c=t.map(e=>{if("legends"===e.type)return e;const{transform:t=[],data:c=[]}=e,u=t.findIndex(({type:e})=>e.startsWith("group")||e.startsWith("bin")),d=[...t];c.length&&d.splice(u+1,0,{type:"filter",[n]:{value:r,ordinal:i}});const h=Object.fromEntries(o.map(e=>[e,{domain:l.scale[e].getOptions().domain}]));return P({},e,Object.assign(Object.assign({transform:d,scale:h},!i&&{animate:!1}),{legend:!s&&Object.fromEntries(a.map(e=>[e,{preserve:!0}]))}))});return Object.assign(Object.assign({},e),{marks:c})}),yield c()})}function EH(e,t){for(const n of e)xH(n,Object.assign(Object.assign({},t),{facet:!0}))}function SH(){return(e,t,n)=>{const{container:r}=e,i=t.filter(t=>t!==e),o=i.length>0,a=e=>yH(e).scales.map(e=>e.name),s=[...vH(r),...AH(r)],l=s.flatMap(a),c=HR(o?EH:xH,50,{trailing:!0}),u=s.map(t=>{const{name:s,domain:u}=yH(t).scales[0],d=a(t),h={legend:t,channel:s,channels:d,allChannels:l};return t.className===sH?wH(r,{legends:mH,marker:fH,label:pH,datum:e=>{const{__data__:t}=e,{index:n}=t;return u[n]},filter:t=>{const n=Object.assign(Object.assign({},h),{value:t,ordinal:!0});c(o?i:e,n)},state:t.attributes.state,defaultSelect:t.attributes.defaultSelect,channel:s,emitter:n}):_H(r,{legend:t,filter:t=>{const n=Object.assign(Object.assign({},h),{value:t,ordinal:!1});c(o?i:e,n)},emitter:n,channel:s})});return()=>{u.forEach(e=>e())}}}function CH(){return(e,t,n)=>{const{container:r,view:i,options:o}=e,a=vH(r),s=XN(r),l=e=>yH(e).scales[0].name,c=e=>{const{scale:{[e]:t}}=i;return t},u=gR(o,["active","inactive"]),d=mR(s,sR(i)),h=[];for(const f of a){const e=e=>{const{data:t}=f.attributes,{__data__:n}=e,{index:r}=n;return t[r].label},t=l(f),r=mH(f),i=c(t),o=Lp(s,e=>i.invert(e.__data__[t])),{state:a={}}=f.attributes,{inactive:p={}}=a,{setState:g,removeState:m}=hR(u,d),v={inactive:Og(p,"marker")},A={inactive:Og(p,"label")},{setState:b,removeState:y}=hR(v),{setState:w,removeState:_}=hR(A),x=e=>{for(const t of r){const n=fH(t),r=pH(t);t===e||null===e?(y(n,"inactive"),_(r,"inactive")):(b(n,"inactive"),w(r,"inactive"))}},E=(r,i)=>{const a=e(i),l=new Set(o.get(a));for(const e of s)l.has(e)?g(e,"active"):g(e,"inactive");x(i);const{nativeEvent:c=!0}=r;c&&n.emit("legend:highlight",Object.assign(Object.assign({},r),{nativeEvent:c,data:{channel:t,value:a}}))},S=new Map;for(const n of r){const e=e=>{E(e,n)};n.addEventListener("pointerover",e),S.set(n,e)}const C=e=>{for(const n of s)m(n,"inactive","active");x(null);const{nativeEvent:t=!0}=e;t&&n.emit("legend:unhighlight",{nativeEvent:t})},T=n=>{const{nativeEvent:i,data:o}=n;if(i)return;const{channel:a,value:s}=o;if(a!==t)return;const l=r.find(t=>e(t)===s);l&&E({nativeEvent:!1},l)},k=e=>{const{nativeEvent:t}=e;t||C({nativeEvent:!1})};f.addEventListener("pointerleave",C),n.on("legend:highlight",T),n.on("legend:unhighlight",k);const O=()=>{f.removeEventListener(C),n.off("legend:highlight",T),n.off("legend:unhighlight",k);for(const[e,t]of S)e.removeEventListener(t)};h.push(O)}return()=>h.forEach(e=>e())}}var TH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function kH(e,t){const[n,r,i,o]=e,[a,s,l,c]=t;return!(a>i||l<n||s>o||c<r)}function OH(e,t,n,r,i){const[o,a,s,l]=i;return[Math.max(o,Math.min(e,n)),Math.max(a,Math.min(t,r)),Math.min(s,Math.max(e,n)),Math.min(l,Math.max(t,r))]}function MH(e){const{width:t,height:n}=e.getBBox();return[0,0,t,n]}function IH(e,t){for(const[n,r]of Object.entries(t))e.style(n,r)}const DH=Bv(e=>{const t=e.attributes,{x:n,y:r,width:i,height:o,class:a,renders:s={},handleSize:l=10,document:c}=t,u=TH(t,["x","y","width","height","class","renders","handleSize","document"]);if(!c||void 0===i||void 0===o||void 0===n||void 0===r)return;const d=l/2,h=(e,t,n)=>{e.handle||(e.handle=n.createElement("rect"),e.append(e.handle));const{handle:r}=e;return r.attr(t),r},f=Og(Dg(u,"handleNW","handleNE"),"handleN"),{render:p=h}=f,g=TH(f,["render"]),m=Og(u,"handleE"),{render:v=h}=m,A=TH(m,["render"]),b=Og(Dg(u,"handleSE","handleSW"),"handleS"),{render:y=h}=b,w=TH(b,["render"]),_=Og(u,"handleW"),{render:x=h}=_,E=TH(_,["render"]),S=Og(u,"handleNW"),{render:C=h}=S,T=TH(S,["render"]),k=Og(u,"handleNE"),{render:O=h}=k,M=TH(k,["render"]),I=Og(u,"handleSE"),{render:D=h}=I,N=TH(I,["render"]),R=Og(u,"handleSW"),{render:L=h}=R,B=TH(R,["render"]),P=(e,t)=>{const{id:n}=e,r=t(e,e.attributes,c);r.id=n,r.style.draggable=!0},F=e=>()=>{const t=Bv(t=>P(t,e));return new t({})},$=Pg(e).attr("className",a).style("transform",`translate(${n}, ${r})`).style("draggable",!0);$.maybeAppend("selection","rect").style("draggable",!0).style("fill","transparent").call(IH,Object.assign(Object.assign({width:i,height:o},Dg(u,"handle")),{transform:void 0})),$.maybeAppend("handle-n",F(p)).style("x",d).style("y",-d).style("width",i-l).style("height",l).style("fill","transparent").call(IH,g),$.maybeAppend("handle-e",F(v)).style("x",i-d).style("y",d).style("width",l).style("height",o-l).style("fill","transparent").call(IH,A),$.maybeAppend("handle-s",F(y)).style("x",d).style("y",o-d).style("width",i-l).style("height",l).style("fill","transparent").call(IH,w),$.maybeAppend("handle-w",F(x)).style("x",-d).style("y",d).style("width",l).style("height",o-l).style("fill","transparent").call(IH,E),$.maybeAppend("handle-nw",F(C)).style("x",-d).style("y",-d).style("width",l).style("height",l).style("fill","transparent").call(IH,T),$.maybeAppend("handle-ne",F(O)).style("x",i-d).style("y",-d).style("width",l).style("height",l).style("fill","transparent").call(IH,M),$.maybeAppend("handle-se",F(D)).style("x",i-d).style("y",o-d).style("width",l).style("height",l).style("fill","transparent").call(IH,N),$.maybeAppend("handle-sw",F(L)).style("x",-d).style("y",o-d).style("width",l).style("height",l).style("fill","transparent").call(IH,B)});function NH(e,t){var{brushed:n=()=>{},brushended:r=()=>{},brushcreated:i=()=>{},brushstarted:o=()=>{},brushupdated:a=()=>{},extent:s=MH(e),brushRegion:l=(e,t,n,r,i)=>[e,t,n,r],reverse:c=!1,fill:u="#777",fillOpacity:d="0.3",stroke:h="#fff",selectedHandles:f=["handle-n","handle-e","handle-s","handle-w","handle-nw","handle-ne","handle-se","handle-sw"]}=t,p=TH(t,["brushed","brushended","brushcreated","brushstarted","brushupdated","extent","brushRegion","reverse","fill","fillOpacity","stroke","selectedHandles"]);let g=null,m=null,v=null,A=null,b=null,y=!1;const[w,_,x,E]=s;yR(e,"crosshair"),e.style.draggable=!0;const S=(e,t,n)=>{if(o(n),A&&A.remove(),b&&b.remove(),g=[e,t],c)return C();T()},C=()=>{b=new Oh({style:Object.assign(Object.assign({},p),{fill:u,fillOpacity:d,stroke:h,pointerEvents:"none"})}),A=new DH({style:{x:0,y:0,width:0,height:0,draggable:!0,document:e.ownerDocument},className:"mask"}),e.appendChild(b),e.appendChild(A)},T=()=>{A=new DH({style:Object.assign(Object.assign({document:e.ownerDocument,x:0,y:0},p),{fill:u,fillOpacity:d,stroke:h,draggable:!0}),className:"mask"}),e.appendChild(A)},k=(e=!0)=>{A&&A.remove(),b&&b.remove(),g=null,m=null,v=null,y=!1,A=null,b=null,r(e)},O=(e,t,r=!0)=>{const[i,o,a,u]=OH(e[0],e[1],t[0],t[1],s),[d,h,f,p]=l(i,o,a,u,s);return c?I(d,h,f,p):M(d,h,f,p),n(d,h,f,p,r),[d,h,f,p]},M=(e,t,n,r)=>{A.style.x=e,A.style.y=t,A.style.width=n-e,A.style.height=r-t},I=(e,t,n,r)=>{b.style.d=`\n      M${w},${_}L${x},${_}L${x},${E}L${w},${E}Z\n      M${e},${t}L${e},${r}L${n},${r}L${n},${t}Z\n    `,A.style.x=e,A.style.y=t,A.style.width=n-e,A.style.height=r-t},D=e=>{const t=(e,t,n,r,i)=>e+t<r?r-t:e+n>i?i-n:e,n=e[0]-v[0],r=e[1]-v[1],i=t(n,g[0],m[0],w,x),o=t(r,g[1],m[1],_,E),a=[g[0]+i,g[1]+o],s=[m[0]+i,m[1]+o];O(a,s)},N={"handle-n":{vector:[0,1,0,0],cursor:"ns-resize"},"handle-e":{vector:[0,0,1,0],cursor:"ew-resize"},"handle-s":{vector:[0,0,0,1],cursor:"ns-resize"},"handle-w":{vector:[1,0,0,0],cursor:"ew-resize"},"handle-nw":{vector:[1,1,0,0],cursor:"nwse-resize"},"handle-ne":{vector:[0,1,1,0],cursor:"nesw-resize"},"handle-se":{vector:[0,0,1,1],cursor:"nwse-resize"},"handle-sw":{vector:[1,0,0,1],cursor:"nesw-resize"}},R=e=>B(e)||L(e),L=e=>{const{id:t}=e;return-1!==f.indexOf(t)&&new Set(Object.keys(N)).has(t)},B=e=>e===A.getElementById("selection"),P=t=>{const{target:n}=t,[r,i]=rR(e,t);if(!A||!R(n))return S(r,i,t),void(y=!0);R(n)&&(v=[r,i])},F=t=>{const{target:n}=t,r=rR(e,t);if(!g)return;if(!v)return O(g,r);if(B(n))return D(r);const[i,o]=[r[0]-v[0],r[1]-v[1]],{id:a}=n;if(N[a]){const[e,t,n,r]=N[a].vector;return O([g[0]+i*e,g[1]+o*t],[m[0]+i*n,m[1]+o*r])}},$=t=>{if(v){v=null;const{x:e,y:n,width:r,height:i}=A.style;return g=[e,n],m=[e+r,n+i],void a(e,n,e+r,n+i,t)}m=rR(e,t);const[n,r,o,s]=O(g,m);y=!1,i(n,r,o,s,t)},j=e=>{const{target:t}=e;A&&!R(t)&&k()},H=t=>{const{target:n}=t;A&&R(n)&&!y?B(n)?yR(e,"move"):L(n)&&yR(e,N[n.id].cursor):yR(e,"crosshair")},U=()=>{yR(e,"default")};return e.addEventListener("dragstart",P),e.addEventListener("drag",F),e.addEventListener("dragend",$),e.addEventListener("click",j),e.addEventListener("pointermove",H),e.addEventListener("pointerleave",U),{mask:A,move(e,t,n,r,i=!0){A||S(e,t,{}),g=[e,t],m=[n,r],O([e,t],[n,r],i)},remove(e=!0){A&&k(e)},destroy(){A&&k(!1),yR(e,"default"),e.removeEventListener("dragstart",P),e.removeEventListener("drag",F),e.removeEventListener("dragend",$),e.removeEventListener("click",j),e.removeEventListener("pointermove",H),e.removeEventListener("pointerleave",U)}}}function RH(e,t,n){return t.filter(t=>{if(t===e)return!1;const{interaction:r={}}=t.options;return Object.values(r).find(e=>e.brushKey===n)})}function LH(e,t,n){return RH(e,t,n).map(e=>eR(e.container))}function BH(e,t,n){return RH(e,t,n).map(e=>e.options)}function PH(e,t){var{elements:n,selectedHandles:r,siblings:i=e=>[],datum:o,brushRegion:a,extent:s,reverse:l,scale:c,coordinate:u,series:d=!1,key:h=e=>e,bboxOf:f=e=>{const{x:t,y:n,width:r,height:i}=e.style;return{x:t,y:n,width:r,height:i}},state:p={},emitter:g}=t,m=TH(t,["elements","selectedHandles","siblings","datum","brushRegion","extent","reverse","scale","coordinate","series","key","bboxOf","state","emitter"]);const v=n(e),A=i(e),b=A.flatMap(n),y=mR(v,o),w=Og(m,"mask"),{setState:_,removeState:x}=hR(p,y),E=new Map,{width:S,height:C,x:T=0,y:k=0}=f(e),O=s||[0,0,S,C],M=()=>{for(const e of[...v,...b])x(e,"active","inactive")},I=(e,t,n,r)=>{var i;for(const a of A)null===(i=a.brush)||void 0===i||i.remove();const o=new Set;for(const a of v){const{min:i,max:s}=a.getLocalBounds(),[l,c]=i,[u,d]=s;kH([l,c,u,d],[e,t,n,r])?(_(a,"active"),o.add(h(a))):_(a,"inactive")}for(const a of b)o.has(h(a))?_(a,"active"):_(a,"inactive")},D=()=>{for(const e of v)x(e,"inactive");for(const e of E.values())e.remove();E.clear()},N=(t,n,r,i)=>{const o=e=>{const t=e.cloneNode();return t.__data__=e.__data__,e.parentNode.appendChild(t),E.set(e,t),t},a=new Rh({style:{x:t+T,y:n+k,width:r-t,height:i-n}});e.appendChild(a);for(const e of v){const t=E.get(e)||o(e);t.style.clipPath=a,_(e,"inactive"),_(t,"active")}},R=NH(e,Object.assign(Object.assign({},w),{extent:O,brushRegion:a,reverse:l,selectedHandles:r,brushended:e=>{const t=d?D:M;e&&g.emit("brush:remove",{nativeEvent:!0}),t()},brushed:(e,t,n,r,i)=>{const o=$D(e,t,n,r,c,u);i&&g.emit("brush:highlight",{nativeEvent:!0,data:{selection:o}});const a=d?N:I;a(e,t,n,r)},brushcreated:(e,t,n,r,i)=>{const o=$D(e,t,n,r,c,u);g.emit("brush:end",Object.assign(Object.assign({},i),{nativeEvent:!0,data:{selection:o}}))},brushupdated:(e,t,n,r,i)=>{const o=$D(e,t,n,r,c,u);g.emit("brush:end",Object.assign(Object.assign({},i),{nativeEvent:!0,data:{selection:o}}))},brushstarted:e=>{g.emit("brush:start",e)}})),L=({nativeEvent:e,data:t})=>{if(e)return;const{selection:n}=t,[r,i,o,a]=UD(n,c,u);R.move(r,i,o,a,!1)};g.on("brush:highlight",L);const B=({nativeEvent:e}={})=>{e||R.remove(!1)};g.on("brush:remove",B);const P=R.destroy.bind(R);return R.destroy=()=>{g.off("brush:highlight",L),g.off("brush:remove",B),P()},R}function FH(e){var{facet:t,brushKey:n}=e,r=TH(e,["facet","brushKey"]);return(e,i,o)=>{const{container:a,view:s,options:l}=e,c=eR(a),u={maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",reverse:!1},d=["active",["inactive",{opacity:.5}]],{scale:h,coordinate:f}=s;if(t){const t=c.getBounds(),n=t.min[0],a=t.min[1],s=t.max[0],l=t.max[1];return PH(c.parentNode.parentNode,Object.assign(Object.assign({elements:()=>JN(e,i),datum:sR(ZN(e,i).map(e=>e.view)),brushRegion:(e,t,n,r)=>[e,t,n,r],extent:[n,a,s,l],state:gR(ZN(e,i).map(e=>e.options),d),emitter:o,scale:h,coordinate:f,selectedHandles:void 0},u),r))}const p=PH(c,Object.assign(Object.assign({elements:XN,key:e=>e.__data__.key,siblings:()=>LH(e,i,n),datum:sR([s,...RH(e,i,n).map(e=>e.view)]),brushRegion:(e,t,n,r)=>[e,t,n,r],extent:void 0,state:gR([l,...BH(e,i,n)],d),emitter:o,scale:h,coordinate:f,selectedHandles:void 0},u),r));return c.brush=p,()=>p.destroy()}}function $H(e,t,n,r,i){const[,o,,a]=i;return[e,o,n,a]}function jH(e){return FH(Object.assign(Object.assign({},e),{brushRegion:$H,selectedHandles:["handle-e","handle-w"]}))}function HH(e,t,n,r,i){const[o,,a]=i;return[o,t,a,r]}function UH(e){return FH(Object.assign(Object.assign({},e),{brushRegion:HH,selectedHandles:["handle-n","handle-s"]}))}FH.props={reapplyWhenUpdate:!0};var QH=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const zH="axis",WH="axis-line",GH="axis-main-group",VH="axis-hot-area";function KH(e){return e.getElementsByClassName(zH)}function YH(e){return e.getElementsByClassName(WH)[0]}function qH(e){return e.getElementsByClassName(GH)[0]}function XH(e){return qH(e).getLocalBounds()}function JH(e,t){var{cross:n,offsetX:r,offsetY:i}=t,o=QH(t,["cross","offsetX","offsetY"]);const a=XH(e),s=YH(e),[l]=s.getLocalBounds().min,[c,u]=a.min,[d,h]=a.max,f=2*(d-c);return{brushRegion:HH,hotZone:new Rh({className:VH,style:Object.assign({width:n?f/2:f,transform:`translate(${(n?c:l-f/2).toFixed(2)}, ${u})`,height:h-u},o)}),extent:n?(e,t,n,r)=>[-1/0,t,1/0,r]:(e,t,n,i)=>[Math.floor(c-r),t,Math.ceil(d-r),i]}}function ZH(e,t){var{offsetY:n,offsetX:r,cross:i=!1}=t,o=QH(t,["offsetY","offsetX","cross"]);const a=XH(e),s=YH(e),[,l]=s.getLocalBounds().min,[c,u]=a.min,[d,h]=a.max,f=h-u;return{brushRegion:$H,hotZone:new Rh({className:VH,style:Object.assign({width:d-c,height:i?f:2*f,transform:`translate(${c}, ${i?u:l-f})`},o)}),extent:i?(e,t,n,r)=>[e,-1/0,n,1/0]:(e,t,r,i)=>[e,Math.floor(u-n),r,Math.ceil(h-n)]}}function eU(e,t){var{axes:n,elements:r,points:i,horizontal:o,datum:a,offsetY:s,offsetX:l,reverse:c=!1,state:u={},emitter:d,coordinate:h}=t,f=QH(t,["axes","elements","points","horizontal","datum","offsetY","offsetX","reverse","state","emitter","coordinate"]);const p=r(e),g=n(e),m=mR(p,a),{setState:v,removeState:A}=hR(u,m),b=new Map,y=Og(f,"mask"),w=e=>Array.from(b.values()).every(([t,n,r,i])=>e.some(([e,o])=>e>=t&&e<=r&&o>=n&&o<=i)),_=g.map(e=>e.attributes.scale),x=e=>e.length>2?[e[0],e[e.length-1]]:e,E=new Map,S=()=>{E.clear();for(let e=0;e<g.length;e++){const t=_[e],{domain:n}=t.getOptions();E.set(e,x(n))}};S();const C=(e,t)=>{const n=[];for(const o of p){const e=i(o);w(e)?(v(o,"active"),n.push(o)):v(o,"inactive")}if(E.set(e,k(n,e)),!t)return;const r=()=>{if(!O)return Array.from(E.values());const e=[];for(const[t,n]of E){const r=_[t],{name:i}=r.getOptions();"x"===i?e[0]=n:e[1]=n}return e};d.emit("brushAxis:highlight",{nativeEvent:!0,data:{selection:r()}})},T=e=>{for(const t of p)A(t,"active","inactive");S(),e&&d.emit("brushAxis:remove",{nativeEvent:!0})},k=(e,t)=>{const n=_[t],{name:r}=n.getOptions(),i=e.map(e=>{const t=e.__data__;return n.invert(t[r])});return x(FD(n,i))},O=g.some(o)&&g.some(e=>!o(e)),M=[];for(let L=0;L<g.length;L++){const e=g[L],t=o(e)?ZH:JH,{hotZone:n,brushRegion:r,extent:i}=t(e,{offsetY:s,offsetX:l,cross:O,zIndex:999,fill:"transparent"});e.parentNode.appendChild(n);const a=NH(n,Object.assign(Object.assign({},y),{reverse:c,brushRegion:r,brushended(t){b.delete(e),0===Array.from(b.entries()).length?T(t):C(L,t)},brushed(t,n,r,o,a){b.set(e,i(t,n,r,o)),C(L,a)}}));M.push(a)}const I=(e={})=>{const{nativeEvent:t}=e;t||M.forEach(e=>e.remove(!1))},D=(e,t,n)=>{const[r,i]=e,a=e=>e.getStep?e.getStep():0,s=N(r,t,n),l=N(i,t,n)+a(t);return o(n)?[s,-1/0,l,1/0]:[-1/0,s,1/0,l]},N=(e,t,n)=>{const{height:r,width:i}=h.getOptions(),a=t.clone();return o(n)?a.update({range:[0,i]}):a.update({range:[r,0]}),a.map(e)},R=e=>{const{nativeEvent:t}=e;if(t)return;const{selection:n}=e.data;for(let r=0;r<M.length;r++){const e=n[r],t=M[r],i=g[r];if(e){const n=_[r];t.move(...D(e,n,i),!1)}else t.remove(!1)}};return d.on("brushAxis:remove",I),d.on("brushAxis:highlight",R),()=>{M.forEach(e=>e.destroy()),d.off("brushAxis:remove",I),d.off("brushAxis:highlight",R)}}function tU(e){return(t,n,r)=>{const{container:i,view:o,options:a}=t,s=eR(i),{x:l,y:c}=s.getBBox(),{coordinate:u}=o;return eU(i,Object.assign({elements:XN,axes:KH,offsetY:c,offsetX:l,points:e=>e.__data__.points,horizontal:e=>{const{startPos:[t,n],endPos:[r,i]}=e.attributes;return t!==r&&n===i},datum:sR(o),state:gR(a,["active",["inactive",{opacity:.5}]]),coordinate:u,emitter:r},e))}}var nU=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(c4){o(c4)}}function s(e){try{l(r["throw"](e))}catch(c4){o(c4)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},rU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function iU(e=300){let t=null;return n=>{const{timeStamp:r}=n;return null!==t&&r-t<e?(t=r,!0):(t=r,!1)}}function oU(e,t){var{filter:n,reset:r,brushRegion:i,extent:o,reverse:a,emitter:s,scale:l,coordinate:c,selection:u,series:d=!1}=t,h=rU(t,["filter","reset","brushRegion","extent","reverse","emitter","scale","coordinate","selection","series"]);const f=Og(h,"mask"),{width:p,height:g}=e.getBBox(),m=o||[0,0,p,g],v=iU(),A=NH(e,Object.assign(Object.assign({},f),{extent:m,brushRegion:i,reverse:a,brushcreated:b}));function b(e,t,r,i,o){e===r&&t===i||(o.nativeEvent=!0,n(u(e,t,r,i),o),A.remove())}function y(e){v(e)&&(e.nativeEvent=!0,r(e))}e.addEventListener("click",y);const w=({nativeEvent:e,data:t})=>{if(e)return;const{selection:r}=t;n(r,{nativeEvent:!1})};return s.on("brush:filter",w),()=>{A.destroy(),s.off("brush:filter",w),e.removeEventListener("click",y)}}function aU(e){var{hideX:t=!0,hideY:n=!0}=e,r=rU(e,["hideX","hideY"]);return(e,i,o)=>{const{container:a,view:s,options:l,update:c,setState:u}=e,d=eR(a),h={maskFill:"#777",maskFillOpacity:"0.3",maskStroke:"#fff",unhighlightedOpacity:.5,reverse:!1};let f=!1,p=!1,g=s;const{scale:m,coordinate:v}=s;return oU(d,Object.assign(Object.assign({brushRegion:(e,t,n,r)=>[e,t,n,r],selection:(e,t,n,r)=>{const{scale:i,coordinate:o}=g;return $D(e,t,n,r,i,o)},filter:(e,r)=>nU(this,void 0,void 0,function*(){if(p)return;p=!0;const[i,a]=e;u("brushFilter",e=>{const{marks:r}=e,o=r.map(e=>P({axis:Object.assign(Object.assign({},t&&{x:{transform:[{type:"hide"}]}}),n&&{y:{transform:[{type:"hide"}]}})},e,{scale:{x:{domain:i,nice:!1},y:{domain:a,nice:!1}}}));return Object.assign(Object.assign({},l),{marks:o,clip:!0})}),o.emit("brush:filter",Object.assign(Object.assign({},r),{data:{selection:[i,a]}}));const s=yield c();g=s.view,p=!1,f=!0}),reset:e=>{if(p||!f)return;const{scale:t}=s,{x:n,y:r}=t,i=n.getOptions().domain,a=r.getOptions().domain;o.emit("brush:filter",Object.assign(Object.assign({},e),{data:{selection:[i,a]}})),f=!1,g=s,u("brushFilter"),c()},extent:void 0,emitter:o,scale:m,coordinate:v},h),r))}}function sU(e){return aU(Object.assign(Object.assign({hideX:!0},e),{brushRegion:$H}))}function lU(e){return aU(Object.assign(Object.assign({hideY:!0},e),{brushRegion:HH}))}var cU=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(c4){o(c4)}}function s(e){try{l(r["throw"](e))}catch(c4){o(c4)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})};const uU="slider";function dU(e,t,n,r=!1,i="x",o="y"){const{marks:a}=e,s=a.map(e=>{var a,s;return P({axis:{x:{transform:[{type:"hide"}]},y:{transform:[{type:"hide"}]}}},e,{scale:t,[n]:Object.assign(Object.assign({},(null===(a=e[n])||void 0===a?void 0:a[i])&&{[i]:Object.assign({preserve:!0},r&&{ratio:null})}),(null===(s=e[n])||void 0===s?void 0:s[o])&&{[o]:{preserve:!0}}),animate:!1})});return Object.assign(Object.assign({},e),{marks:s,clip:!0,animate:!1})}function hU(e,t,n){const[r,i]=e,o=n?e=>1-e:e=>e,a=PD(t,o(r),!0),s=PD(t,o(i),!1);return FD(t,[a,s])}function fU(e){return[e[0],e[e.length-1]]}function pU({initDomain:e={},className:t=uU,prefix:n="slider",setValue:r=(e,t)=>e.setValues(t),hasState:i=!1,wait:o=50,leading:a=!0,trailing:s=!1,getInitValues:l=e=>{var t;const n=null===(t=null===e||void 0===e?void 0:e.attributes)||void 0===t?void 0:t.values;if(0!==n[0]||1!==n[1])return n}}){return(c,u,d)=>{const{container:h,view:f,update:p,setState:g}=c,m=h.getElementsByClassName(t);if(!m.length)return()=>{};let v=!1;const{scale:A,coordinate:b,layout:y}=f,{paddingLeft:w,paddingTop:_,paddingBottom:x,paddingRight:E}=y,{x:S,y:C}=A,T=Se(b),k=e=>{const t="vertical"===e?"y":"x",n="vertical"===e?"x":"y";return T?[n,t]:[t,n]},O=new Map,M=new Set,I={x:e.x||S.getOptions().domain,y:e.y||C.getOptions().domain};for(const e of m){const{orientation:t}=e.attributes,[c,u]=k(t),h=`${n}${dk(c)}:filter`,f="x"===c,{ratio:m}=S.getOptions(),{ratio:b}=C.getOptions(),y=e=>{if(e.data){const{selection:t}=e.data,[n=fU(I.x),r=fU(I.y)]=t;return f?[FD(S,n,m),FD(C,r,b)]:[FD(C,r,b),FD(S,n,m)]}const{value:n}=e.detail,r=A[c],i=hU(n,r,T&&"horizontal"===t),o=I[u];return[i,o]},w=HR(t=>cU(this,void 0,void 0,function*(){const{initValue:r=!1}=t;if(v&&!r)return;v=!0;const{nativeEvent:o=!0}=t,[a,s]=y(t);if(I[c]=a,I[u]=s,o){const e=f?a:s,n=f?s:a;d.emit(h,Object.assign(Object.assign({},t),{nativeEvent:o,data:{selection:[fU(e),fU(n)]}}))}g(e,e=>Object.assign({},dU(e,{[c]:{domain:a,nice:!1}},n,i,c,u))),yield p(),v=!1}),o,{leading:a,trailing:s}),_=t=>{const{nativeEvent:n}=t;if(n)return;const{data:i}=t,{selection:o}=i,[a,s]=o;e.dispatchEvent(new ud("valuechange",{data:i,nativeEvent:!1}));const l=f?HD(a,S):HD(s,C);r(e,l)};d.on(h,_),e.addEventListener("valuechange",w),O.set(e,w),M.add([h,_]);const x=l(e);x&&e.dispatchEvent(new ud("valuechange",{detail:{value:x},nativeEvent:!1,initValue:!0}))}return()=>{for(const[e,t]of O)e.removeEventListener("valuechange",t);for(const[e,t]of M)d.off(e,t)}}}function gU({className:e=uU,setValue:t=(e,t)=>e.setValues(t),minRange:n=.01,wheelSensitivity:r=.05,x:i=!0,y:o=!0}={}){return a=>{const{container:s,view:l}=a,{coordinate:c}=l,u=Se(c),d=Math.max(1e-6,Math.min(1,n)),h=s.getElementsByClassName(e);if(!h.length)return()=>{};const f=(e,t)=>!0===e||!1!==e&&("shift"===e?t.shiftKey&&!t.ctrlKey&&!t.altKey:"ctrl"===e?t.ctrlKey&&!t.shiftKey&&!t.altKey:"alt"===e&&(t.altKey&&!t.shiftKey&&!t.ctrlKey)),p=(e,n)=>{t(e,n),e.dispatchEvent(new ud("valuechange",{detail:{value:n},nativeEvent:!0}))},g=e=>{e.preventDefault(),e.stopPropagation();for(const t of h){const{values:n,orientation:a}=t.attributes;if(!n)continue;const s="horizontal"===a,l=u?s?"y":"x":s?"x":"y",c="x"===l?i:o;if(!f(c,e))continue;const[h,g]=n,m=g-h,v=(h+g)/2,A=r*MR(m),b=e.deltaY*A,y=1+b,w=Math.max(d,Math.min(1,m*y)),_=w/2;let x=v-_,E=v+_;x<0?(x=0,E=Math.min(1,w)):E>1&&(E=1,x=Math.max(0,1-w)),p(t,[x,E])}};return s.addEventListener("wheel",g,{passive:!1}),()=>{s.removeEventListener("wheel",g)}}}gU.props={reapplyWhenUpdate:!0};const mU="g2-scrollbar";function vU(e={}){return(t,n,r)=>{const{view:i,container:o}=t,a=o.getElementsByClassName(mU);if(!a.length)return()=>{};const{scale:s}=i,{x:l,y:c}=s,u={x:[...l.getOptions().domain],y:[...c.getOptions().domain]};l.update({domain:l.getOptions().expectedDomain}),c.update({domain:c.getOptions().expectedDomain});const d=pU(Object.assign({initDomain:u,className:mU,prefix:"scrollbar",hasState:!0,setValue:(e,t)=>e.setValue(t[0]),getInitValues:e=>{const t=e.slider.attributes.values;if(0!==t[0]||1!==t[1])return t}},e));return d(t,n,r)}}var AU=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function bU(e,t,n){return`<${e} style="${Object.entries(n).map(([e,t])=>`${ZA(e)}:${t}`).join(";")}">${t}</${e}>`}const yU={backgroundColor:"rgba(0,0,0,0.75)",color:"#fff",width:"max-content",padding:"1px 4px",fontSize:"12px",borderRadius:"2.5px",boxShadow:"0 3px 6px -4px rgba(0,0,0,0.12), 0 6px 16px 0 rgba(0,0,0,0.08), 0 9px 28px 8px rgba(0,0,0,0.05)"};function wU(e){return"text"===e.nodeName&&!!e.isOverflowing()}function _U(e){var{offsetX:t=8,offsetY:n=8}=e,r=AU(e,["offsetX","offsetY"]);return e=>{const{container:i}=e,[o,a]=i.getBounds().min,s=Og(r,"tip"),l=new Set,c=e=>{const{target:r}=e;if(!wU(r))return void e.stopPropagation();const{offsetX:c,offsetY:u}=e,d=c+t-o,h=u+n-a;if(r.tip)return r.tip.style.x=d,void(r.tip.style.y=h);const{text:f}=r.style,p=new Eh({className:"poptip",style:{innerHTML:bU("div",f,Object.assign(Object.assign({},yU),s)),x:d,y:h}});i.appendChild(p),r.tip=p,l.add(p)},u=e=>{const{target:t}=e;wU(t)?t.tip&&(t.tip.remove(),t.tip=null,l.delete(t.tip)):e.stopPropagation()};return i.addEventListener("pointerover",c),i.addEventListener("pointerout",u),()=>{i.removeEventListener("pointerover",c),i.removeEventListener("pointerout",u),l.forEach(e=>e.remove())}}}_U.props={reapplyWhenUpdate:!0};var xU=Object.keys?function(e){return Object.keys(e)}:function(e){var t=[];return ak(e,function(n,r){ki(e)&&"prototype"===r||t.push(r)}),t},EU=xU;function SU(e,t){var n=EU(t),r=n.length;if(ur(e))return!r;for(var i=0;i<r;i+=1){var o=n[i];if(t[o]!==e[o]||!(o in e))return!1}return!0}var CU=SU;function TU(e,t){if(!S(e))return null;var n;if(ki(t)&&(n=t),D(t)&&(n=function(e){return CU(e,t)}),n)for(var r=0;r<e.length;r+=1)if(n(e[r]))return e[r];return null}var kU=TU,OU=Object.prototype.hasOwnProperty,MU=function(e,t){if(null===e||!D(e))return{};var n={};return ak(t,function(t){OU.call(e,t)&&(n[t]=e[t])}),n};function IU(e){return null==e?null:DU(e)}function DU(e){if("function"!==typeof e)throw new Error;return e}function NU(e){var t=0,n=e.children,r=n&&n.length;if(r)while(--r>=0)t+=n[r].value;else t=1;e.value=t}function RU(){return this.eachAfter(NU)}function LU(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function BU(e,t){var n,r,i=this,o=[i],a=-1;while(i=o.pop())if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this}function PU(e,t){var n,r,i,o=this,a=[o],s=[],l=-1;while(o=a.pop())if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);while(o=s.pop())e.call(t,o,++l,this);return this}function FU(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r}function $U(e){return this.eachAfter(function(t){var n=+e(t.data)||0,r=t.children,i=r&&r.length;while(--i>=0)n+=r[i].value;t.value=n})}function jU(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function HU(e){var t=this,n=UU(t,e),r=[t];while(t!==n)t=t.parent,r.push(t);var i=r.length;while(e!==n)r.splice(i,0,e),e=e.parent;return r}function UU(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();while(e===t)i=e,e=n.pop(),t=r.pop();return i}function QU(){var e=this,t=[e];while(e=e.parent)t.push(e);return t}function zU(){return Array.from(this)}function WU(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function GU(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*VU(){var e,t,n,r,i=this,o=[i];do{e=o.reverse(),o=[];while(i=e.pop())if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}function KU(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=XU)):void 0===t&&(t=qU);var n,r,i,o,a,s=new eQ(e),l=[s];while(n=l.pop())if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new eQ(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(ZU)}function YU(){return KU(this).eachBefore(JU)}function qU(e){return e.children}function XU(e){return Array.isArray(e)?e[1]:null}function JU(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function ZU(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function eQ(e){this.data=e,this.depth=this.height=0,this.parent=null}eQ.prototype=KU.prototype={constructor:eQ,count:RU,each:LU,eachAfter:PU,eachBefore:BU,find:FU,sum:$U,sort:jU,path:HU,ancestors:QU,descendants:zU,leaves:WU,links:GU,copy:YU,[Symbol.iterator]:VU};var tQ={depth:-1},nQ={},rQ={};function iQ(e){return e.id}function oQ(e){return e.parentId}function aQ(){var e,t=iQ,n=oQ;function r(r){var i,o,a,s,l,c,u,d,h=Array.from(r),f=t,p=n,g=new Map;if(null!=e){const t=h.map((t,n)=>sQ(e(t,n,r))),n=t.map(lQ),i=new Set(t).add("");for(const e of n)i.has(e)||(i.add(e),t.push(e),n.push(lQ(e)),h.push(rQ));f=(e,n)=>t[n],p=(e,t)=>n[t]}for(a=0,i=h.length;a<i;++a)o=h[a],c=h[a]=new eQ(o),null!=(u=f(o,a,r))&&(u+="")&&(d=c.id=u,g.set(d,g.has(d)?nQ:c)),null!=(u=p(o,a,r))&&(u+="")&&(c.parent=u);for(a=0;a<i;++a)if(c=h[a],u=c.parent){if(l=g.get(u),!l)throw new Error("missing: "+u);if(l===nQ)throw new Error("ambiguous: "+u);l.children?l.children.push(c):l.children=[c],c.parent=l}else{if(s)throw new Error("multiple roots");s=c}if(!s)throw new Error("no root");if(null!=e){while(s.data===rQ&&1===s.children.length)s=s.children[0],--i;for(let e=h.length-1;e>=0;--e){if(c=h[e],c.data!==rQ)break;c.data=null}}if(s.parent=tQ,s.eachBefore(function(e){e.depth=e.parent.depth+1,--i}).eachBefore(ZU),s.parent=null,i>0)throw new Error("cycle");return s}return r.id=function(e){return arguments.length?(t=IU(e),r):t},r.parentId=function(e){return arguments.length?(n=IU(e),r):n},r.path=function(t){return arguments.length?(e=IU(t),r):e},r}function sQ(e){e=`${e}`;let t=e.length;return cQ(e,t-1)&&!cQ(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}function lQ(e){let t=e.length;if(t<2)return"";while(--t>1)if(cQ(e,t))break;return e.slice(0,t)}function cQ(e,t){if("/"===e[t]){let n=0;while(t>0&&"\\"===e[--t])++n;if(0===(1&n))return!0}return!1}function uQ(e,t,n,r,i){var o,a,s=e.children,l=s.length,c=new Array(l+1);for(c[0]=a=o=0;o<l;++o)c[o+1]=a+=s[o].value;function u(e,t,n,r,i,o,a){if(e>=t-1){var l=s[e];return l.x0=r,l.y0=i,l.x1=o,void(l.y1=a)}var d=c[e],h=n/2+d,f=e+1,p=t-1;while(f<p){var g=f+p>>>1;c[g]<h?f=g+1:p=g}h-c[f-1]<c[f]-h&&e+1<f&&--f;var m=c[f]-d,v=n-m;if(o-r>a-i){var A=n?(r*v+o*m)/n:o;u(e,f,m,r,i,A,a),u(f,t,v,A,i,o,a)}else{var b=n?(i*v+a*m)/n:a;u(e,f,m,r,i,o,b),u(f,t,v,r,b,o,a)}}u(0,l,e.value,t,n,r,i)}function dQ(e,t,n,r,i){var o,a=e.children,s=-1,l=a.length,c=e.value&&(r-t)/e.value;while(++s<l)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*c}function hQ(e,t,n,r,i){var o,a=e.children,s=-1,l=a.length,c=e.value&&(i-n)/e.value;while(++s<l)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*c}function fQ(e,t,n,r,i){(1&e.depth?hQ:dQ)(e,t,n,r,i)}var pQ=(1+Math.sqrt(5))/2;function gQ(e,t,n,r,i,o){var a,s,l,c,u,d,h,f,p,g,m,v=[],A=t.children,b=0,y=0,w=A.length,_=t.value;while(b<w){l=i-n,c=o-r;do{u=A[y++].value}while(!u&&y<w);for(d=h=u,g=Math.max(c/l,l/c)/(_*e),m=u*u*g,p=Math.max(h/m,m/d);y<w;++y){if(u+=s=A[y].value,s<d&&(d=s),s>h&&(h=s),m=u*u*g,f=Math.max(h/m,m/d),f>p){u-=s;break}p=f}v.push(a={value:u,dice:l<c,children:A.slice(b,y)}),a.dice?dQ(a,n,r,i,_?r+=c*u/_:o):hQ(a,n,r,_?n+=l*u/_:i,o),_-=u,b=y}return v}var mQ=function e(t){function n(e,n,r,i,o){gQ(t,e,n,r,i,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(pQ),vQ=function e(t){function n(e,n,r,i,o){if((a=e._squarify)&&a.ratio===t){var a,s,l,c,u,d=-1,h=a.length,f=e.value;while(++d<h){for(s=a[d],l=s.children,c=s.value=0,u=l.length;c<u;++c)s.value+=l[c].value;s.dice?dQ(s,n,r,i,f?r+=(o-r)*s.value/f:o):hQ(s,n,r,f?n+=(i-n)*s.value/f:i,o),f-=s.value}}else e._squarify=a=gQ(t,e,n,r,i,o),a.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(pQ);function AQ(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function bQ(){return 0}function yQ(e){return function(){return e}}function wQ(){var e=mQ,t=!1,n=1,r=1,i=[0],o=bQ,a=bQ,s=bQ,l=bQ,c=bQ;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(AQ),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,h=t.y1-n;d<r&&(r=d=(r+d)/2),h<u&&(u=h=(u+h)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=h,t.children&&(n=i[t.depth+1]=o(t)/2,r+=c(t)-n,u+=a(t)-n,d-=s(t)-n,h-=l(t)-n,d<r&&(r=d=(r+d)/2),h<u&&(u=h=(u+h)/2),e(t,r,u,d,h))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=DU(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(o="function"===typeof e?e:yQ(+e),u):o},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(a="function"===typeof e?e:yQ(+e),u):a},u.paddingRight=function(e){return arguments.length?(s="function"===typeof e?e:yQ(+e),u):s},u.paddingBottom=function(e){return arguments.length?(l="function"===typeof e?e:yQ(+e),u):l},u.paddingLeft=function(e){return arguments.length?(c="function"===typeof e?e:yQ(+e),u):c},u}function _Q(e,t){return Array.isArray(e)?"function"===typeof t?aQ().path(t)(e):aQ()(e):KU(e)}function xQ(e,t=[e.data.name]){e.id=e.id||e.data.name,e.path=t,e.children&&e.children.forEach(n=>{n.id=`${e.id}/${n.data.name}`,n.path=[...t,n.data.name],xQ(n,n.path)})}function EQ(e){const t=oC(e,["data","name"]);t.replaceAll&&(e.path=t.replaceAll(".","/").split("/")),e.children&&e.children.forEach(e=>{EQ(e)})}function SQ(e,t){const n={treemapBinary:uQ,treemapDice:dQ,treemapSlice:hQ,treemapSliceDice:fQ,treemapSquarify:mQ,treemapResquarify:vQ},r="treemapSquarify"===e?n[e].ratio(t):n[e];if(!r)throw new TypeError("Invalid tile method!");return r}function CQ(e,t,n){const{value:r}=n,i=SQ(t.tile,t.ratio),o=_Q(e,t.path);S(e)?EQ(o):xQ(o),r?o.sum(e=>t.ignoreParentValue&&e.children?0:_v(r)(e)).sort(t.sort):o.count(),wQ().tile(i).size(t.size).round(t.round).paddingInner(t.paddingInner).paddingOuter(t.paddingOuter).paddingTop(t.paddingTop).paddingRight(t.paddingRight).paddingBottom(t.paddingBottom).paddingLeft(t.paddingLeft)(o);const a=o.descendants().map(e=>Object.assign(e,{id:e.id.replace(/^\//,""),x:[e.x0,e.x1],y:[e.y0,e.y1]})),s=a.filter("function"===typeof t.layer?t.layer:e=>e.height===t.layer);return[s,a]}var TQ=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(c4){o(c4)}}function s(e){try{l(r["throw"](e))}catch(c4){o(c4)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},kQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function OQ(e){return Pg(e).select(`.${FN}`).node()}const MQ={breadCrumbFill:"rgba(0, 0, 0, 0.85)",breadCrumbFontSize:12,breadCrumbY:12,activeFill:"rgba(0, 0, 0, 0.5)"};function IQ(e={}){const{originData:t=[],layout:n}=e,r=kQ(e,["originData","layout"]),i=P({},MQ,r),o=Og(i,"breadCrumb"),a=Og(i,"active");return e=>{const{update:r,setState:i,container:s,options:l}=e,c=OQ(s),u=l.marks[0],{state:d}=u,h=new _h;c.appendChild(h);const f=(e,l)=>TQ(this,void 0,void 0,function*(){if(h.removeChildren(),l){let t="",n=o.y,r=0;const i=[],s=c.getBBox().width,l=e.map((a,l)=>{t=`${t}${a}/`,i.push(a);const c=new Bh({name:t.replace(/\/$/,""),style:Object.assign(Object.assign({text:a,x:r,path:[...i],depth:l},o),{y:n})});h.appendChild(c),r+=c.getBBox().width;const u=new Bh({style:Object.assign(Object.assign({x:r,text:" / "},o),{y:n})});return h.appendChild(u),r+=u.getBBox().width,r>s&&(n=h.getBBox().height+o.y,r=0,c.attr({x:r,y:n}),r+=c.getBBox().width,u.attr({x:r,y:n}),r+=u.getBBox().width),l===Z_(e)-1&&u.remove(),c});l.forEach((e,t)=>{if(t===Z_(l)-1)return;const n=Object.assign({},e.attributes);e.attr("cursor","pointer"),e.addEventListener("mouseenter",()=>{e.attr(a)}),e.addEventListener("mouseleave",()=>{e.attr(n)}),e.addEventListener("click",()=>{f(oC(e,["style","path"]),oC(e,["style","depth"]))})})}bH(s,i),i("treemapDrillDown",r=>{const{marks:i}=r,o=e.join("/"),a=i.map(e=>{if("rect"!==e.type)return e;let r=t;if(l){const e=t.filter(e=>{const t=oC(e,["id"]);return t&&(t.match(`${o}/`)||o.match(t))}).map(e=>({value:0===e.height?oC(e,["value"]):void 0,name:oC(e,["id"])})),{paddingLeft:i,paddingBottom:a,paddingRight:s}=n,c=Object.assign(Object.assign({},n),{paddingTop:(n.paddingTop||h.getBBox().height+10)/(l+1),paddingLeft:i/(l+1),paddingBottom:a/(l+1),paddingRight:s/(l+1),path:e=>e.name,layer:e=>e.depth===l+1});r=CQ(e,c,{value:"value"})[0]}else r=t.filter(e=>1===e.depth);const i=[];return r.forEach(({path:e})=>{i.push(Xg(e))}),P({},e,{data:r,scale:{color:{domain:i}}})});return Object.assign(Object.assign({},r),{marks:a})}),yield r(void 0,["legendFilter"])}),p=e=>e.attributes.key.split("-")[0],g=e=>oC(e,["__data__","key"]),m=e=>{const n=e.target,{markType:r,nodeName:i,attributes:o}=n||{};if("rect"!==r&&i!==_o.TEXT)return;const a=i===_o.TEXT&&!0===oC(o,"isTreemapLabel")?p(n):g(n),s=kU(t,e=>e.id===a);oC(s,"height")&&f(oC(s,"path"),oC(s,"depth"))};c.addEventListener("click",m);const v=EU(Object.assign(Object.assign({},d.active),d.inactive)),A=()=>{const e=SR(c);e.forEach(e=>{const n=oC(e,["style","cursor"]),r=kU(t,t=>t.id===oC(e,["__data__","key"]));if("pointer"!==n&&(null===r||void 0===r?void 0:r.height)){e.style.cursor="pointer";const t=MU(e.attributes,v);e.addEventListener("mouseenter",()=>{e.attr(d.active)}),e.addEventListener("mouseleave",()=>{e.attr(P(t,d.inactive))})}})};return A(),c.addEventListener("mousemove",A),()=>{h.remove(),c.removeEventListener("click",m),c.removeEventListener("mousemove",A)}}}var DQ=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(c4){o(c4)}}function s(e){try{l(r["throw"](e))}catch(c4){o(c4)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},NQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const RQ={pointR:6,pointStrokeWidth:1,pointStroke:"#888",pointActiveStroke:"#f5f5f5",pathStroke:"#888",pathLineDash:[3,4],labelFontSize:12,labelFill:"#888",labelStroke:"#fff",labelLineWidth:1,labelY:-6,labelX:2},LQ="movePoint",BQ=e=>{const t=e.target,{markType:n}=t;"line"===n&&(t.attr("_lineWidth",t.attr("lineWidth")||1),t.attr("lineWidth",t.attr("_lineWidth")+3)),"interval"===n&&(t.attr("_opacity",t.attr("opacity")||1),t.attr("opacity",.7*t.attr("_opacity")))},PQ=e=>{const t=e.target,{markType:n}=t;"line"===n&&t.attr("lineWidth",t.attr("_lineWidth")),"interval"===n&&t.attr("opacity",t.attr("_opacity"))},FQ=(e,t,n)=>t.map(t=>{const r=["x","color"].reduce((r,i)=>{const o=n[i];return o?t[o]===e[o]&&r:r},!0);return r?Object.assign(Object.assign({},t),e):t}),$Q=e=>{const t=oC(e,["__data__","y"]),n=oC(e,["__data__","y1"]),r=n-t,{__data__:{data:i,encode:o,transform:a},childNodes:s}=e.parentNode,l=kU(a,({type:e})=>"normalizeY"===e),c=oC(o,["y","field"]),u=i[s.indexOf(e)][c];return(e,t=!1)=>l||t?e/(1-e)/(r/(1-r))*u:e},jQ=(e,t)=>{const n=oC(e,["__data__","seriesItems",t,"0","value"]),r=oC(e,["__data__","seriesIndex",t]),{__data__:{data:i,encode:o,transform:a}}=e.parentNode,s=kU(a,({type:e})=>"normalizeY"===e),l=oC(o,["y","field"]),c=i[r][l];return e=>s?1===n?e:e/(1-e)/(n/(1-n))*c:e},HQ=(e,t,n)=>{e.forEach((e,r)=>{e.attr("stroke",t[1]===r?n["activeStroke"]:n["stroke"])})},UQ=(e,t,n,r)=>{const i=new Oh({style:n}),o=new Bh({style:r});return t.appendChild(o),e.appendChild(i),[i,o]},QQ=(e,t)=>{const n=oC(e,["options","range","indexOf"]);if(!n)return;const r=e.options.range.indexOf(t);return e.sortedDomain[r]},zQ=(e,t,n)=>{const r=xR(e,t),i=xR(e,n),o=i/r,a=e[0]+(t[0]-e[0])*o,s=e[1]+(t[1]-e[1])*o;return[a,s]};function WQ(e={}){const{selection:t=[],precision:n=2}=e,r=NQ(e,["selection","precision"]),i=Object.assign(Object.assign({},RQ),r||{}),o=Og(i,"path"),a=Og(i,"label"),s=Og(i,"point");return(e,r,i)=>{const{update:l,setState:c,container:u,view:d,options:{marks:h,coordinate:f}}=e,p=eR(u);let g,m=SR(p),v=t;const{transform:A=[],type:b}=f,y=!!kU(A,({type:e})=>"transpose"===e),w="polar"===b,_="theta"===b,x=!!kU(m,({markType:e})=>"area"===e);x&&(m=m.filter(({markType:e})=>"area"===e));const E=new _h({style:{zIndex:2}});p.appendChild(E);const S=()=>{i.emit("element-point:select",{nativeEvent:!0,data:{selection:v}})},C=(e,t)=>{i.emit("element-point:moved",{nativeEvent:!0,data:{changeData:e,data:t}})},T=e=>{const t=e.target;v=[t.parentNode.childNodes.indexOf(t)],S(),O(t)},k=e=>{const{data:{selection:t},nativeEvent:n}=e;if(n)return;v=t;const r=oC(m,[null===v||void 0===v?void 0:v[0]]);r&&O(r)},O=e=>{const{attributes:t,markType:r,__data__:i}=e,{stroke:f}=t,{points:p,seriesTitle:m,color:A,title:b,seriesX:T,y1:k}=i;if(y&&"interval"!==r)return;const{scale:M,coordinate:I}=(null===g||void 0===g?void 0:g.view)||d,{color:D,y:N,x:R}=M,L=I.getCenter();let B;E.removeChildren();const F=(e,t,n,r)=>DQ(this,void 0,void 0,function*(){return c("elementPointMove",i=>{var o;const a=((null===(o=null===g||void 0===g?void 0:g.options)||void 0===o?void 0:o.marks)||h).map(i=>{if(!r.includes(i.type))return i;const{data:o,encode:a}=i,s=Object.keys(a),l=s.reduce((r,i)=>{const o=a[i];return"x"===i&&(r[o]=e),"y"===i&&(r[o]=t),"color"===i&&(r[o]=n),r},{}),c=FQ(l,o,a);return C(l,c),P({},i,{data:c,animate:!1})});return Object.assign(Object.assign({},i),{marks:a})}),yield l("elementPointMove")});if(["line","area"].includes(r))p.forEach((t,r)=>{const i=R.invert(T[r]);if(!i)return;const l=new vh({name:LQ,style:Object.assign({cx:t[0],cy:t[1],fill:f},s)}),c=jQ(e,r);l.addEventListener("mousedown",d=>{const h=I.output([T[r],0]),f=null===m||void 0===m?void 0:m.length;u.attr("cursor","move"),v[1]!==r&&(v[1]=r,S()),HQ(E.childNodes,v,s);const[b,y]=UQ(E,l,o,a),_=e=>{const i=t[1]+e.clientY-B[1];if(x)if(w){const o=t[0]+e.clientX-B[0],[a,s]=zQ(L,h,[o,i]),[,u]=I.output([1,N.output(0)]),[,d]=I.invert([a,u-(p[r+f][1]-s)]),g=(r+1)%f,v=(r-1+f)%f,A=ER([p[v],[a,s],m[g]&&p[g]]);y.attr("text",c(N.invert(d)).toFixed(n)),b.attr("d",A),l.attr("cx",a),l.attr("cy",s)}else{const[,e]=I.output([1,N.output(0)]),[,o]=I.invert([t[0],e-(p[r+f][1]-i)]),a=ER([p[r-1],[t[0],i],m[r+1]&&p[r+1]]);y.attr("text",c(N.invert(o)).toFixed(n)),b.attr("d",a),l.attr("cy",i)}else{const[,e]=I.invert([t[0],i]),o=ER([p[r-1],[t[0],i],p[r+1]]);y.attr("text",N.invert(e).toFixed(n)),b.attr("d",o),l.attr("cy",i)}};B=[d.clientX,d.clientY],window.addEventListener("mousemove",_);const C=()=>DQ(this,void 0,void 0,function*(){if(u.attr("cursor","default"),window.removeEventListener("mousemove",_),u.removeEventListener("mouseup",C),Si(y.attr("text")))return;const t=Number(y.attr("text")),n=QQ(D,A);g=yield F(i,t,n,["line","area"]),y.remove(),b.remove(),O(e)});u.addEventListener("mouseup",C)}),E.appendChild(l)}),HQ(E.childNodes,v,s);else if("interval"===r){let t=[(p[0][0]+p[1][0])/2,p[0][1]];y?t=[p[0][0],(p[0][1]+p[1][1])/2]:_&&(t=p[0]);const i=$Q(e),l=new vh({name:LQ,style:Object.assign(Object.assign({cx:t[0],cy:t[1],fill:f},s),{stroke:s["activeStroke"]})});l.addEventListener("mousedown",s=>{u.attr("cursor","move");const c=QQ(D,A),[d,h]=UQ(E,l,o,a),f=e=>{if(y){const r=t[0]+e.clientX-B[0],[o]=I.output([N.output(0),N.output(0)]),[,a]=I.invert([o+(r-p[2][0]),t[1]]),s=ER([[r,p[0][1]],[r,p[1][1]],p[2],p[3]],!0);h.attr("text",i(N.invert(a)).toFixed(n)),d.attr("d",s),l.attr("cx",r)}else if(_){const r=t[1]+e.clientY-B[1],o=t[0]+e.clientX-B[0],[a,s]=zQ(L,[o,r],t),[c,u]=zQ(L,[o,r],p[1]),f=I.invert([a,s])[1],g=k-f;if(g<0)return;const m=CR(L,[[a,s],[c,u],p[2],p[3]],g>.5?1:0);h.attr("text",i(g,!0).toFixed(n)),d.attr("d",m),l.attr("cx",a),l.attr("cy",s)}else{const r=t[1]+e.clientY-B[1],[,o]=I.output([1,N.output(0)]),[,a]=I.invert([t[0],o-(p[2][1]-r)]),s=ER([[p[0][0],r],[p[1][0],r],p[2],p[3]],!0);h.attr("text",i(N.invert(a)).toFixed(n)),d.attr("d",s),l.attr("cy",r)}};B=[s.clientX,s.clientY],window.addEventListener("mousemove",f);const m=()=>DQ(this,void 0,void 0,function*(){if(u.attr("cursor","default"),u.removeEventListener("mouseup",m),window.removeEventListener("mousemove",f),Si(h.attr("text")))return;const t=Number(h.attr("text"));g=yield F(b,t,c,[r]),h.remove(),d.remove(),O(e)});u.addEventListener("mouseup",m)}),E.appendChild(l)}};m.forEach((e,t)=>{v[0]===t&&O(e),e.addEventListener("click",T),e.addEventListener("mouseenter",BQ),e.addEventListener("mouseleave",PQ)});const M=e=>{const t=null===e||void 0===e?void 0:e.target;t&&(t.name===LQ||m.includes(t))||(v=[],S(),E.removeChildren())};return i.on("element-point:select",k),i.on("element-point:unselect",M),u.addEventListener("mousedown",M),()=>{E.remove(),i.off("element-point:select",k),i.off("element-point:unselect",M),u.removeEventListener("mousedown",M),m.forEach(e=>{e.removeEventListener("click",T),e.removeEventListener("mouseenter",BQ),e.removeEventListener("mouseleave",PQ)})}}}var GQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const VQ=()=>e=>{const{children:t}=e;if(!Array.isArray(t))return[];const{x:n=0,y:r=0,width:i,height:o,data:a}=e;return t.map(e=>{var{data:t,x:s,y:l,width:c,height:u}=e,d=GQ(e,["data","x","y","width","height"]);return Object.assign(Object.assign({},d),{data:_L(t,a),x:null!==s&&void 0!==s?s:n,y:null!==l&&void 0!==l?l:r,width:null!==c&&void 0!==c?c:i,height:null!==u&&void 0!==u?u:o})})};VQ.props={};var KQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const YQ=()=>e=>{const{children:t}=e;if(!Array.isArray(t))return[];const{direction:n="row",ratio:r=t.map(()=>1),padding:i=0,data:o}=e,[a,s,l,c]="col"===n?["y","height","width","x"]:["x","width","height","y"],u=r.reduce((e,t)=>e+t),d=e[s]-i*(t.length-1),h=r.map(e=>d*(e/u)),f=[];let p=e[a]||0;for(let g=0;g<h.length;g+=1){const n=t[g],{data:r}=n,u=KQ(n,["data"]),d=_L(r,o);f.push(Object.assign({[a]:p,[s]:h[g],[c]:e[c]||0,[l]:e[l],data:d},u)),p+=h[g]+i}return f};YQ.props={};class qQ{constructor(e){this.$value=e}static of(e){return new qQ(e)}call(e,...t){return this.$value=e(this.$value,...t),this}value(){return this.$value}}var XQ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const JQ=bL(e=>{const{encode:t,data:n,scale:r,shareSize:i=!1}=e,{x:o,y:a}=t,s=(e,t)=>{var o;if(void 0===e||!i)return{};const a=Lp(n,t=>t[e]),s=(null===(o=null===r||void 0===r?void 0:r[t])||void 0===o?void 0:o.domain)||Array.from(a.keys()),l=s.map(e=>a.has(e)?a.get(e).length:1);return{domain:s,flex:l}};return{scale:{x:Object.assign(Object.assign({paddingOuter:0,paddingInner:.1,guide:void 0===o?null:{position:"top"}},void 0===o&&{paddingInner:0}),s(o,"x")),y:Object.assign(Object.assign({range:[0,1],paddingOuter:0,paddingInner:.1,guide:void 0===a?null:{position:"right"}},void 0===a&&{paddingInner:0}),s(a,"y"))}}}),ZQ=yL(e=>{const{data:t,scale:n,legend:r}=e,i=[e];let o,a,s;while(i.length){const e=i.shift(),{children:t,encode:n={},scale:r={},legend:l={}}=e,{color:c}=n,{color:u}=r,{color:d}=l;void 0!==c&&(o=c),void 0!==u&&(a=u),void 0!==d&&(s=d),Array.isArray(t)&&i.push(...t)}const l=()=>{var e;const r=null===(e=null===n||void 0===n?void 0:n.color)||void 0===e?void 0:e.domain;if(void 0!==r)return[r];if(void 0===o)return[void 0];const i="function"===typeof o?o:e=>e[o],a=t.map(i);return a.some(e=>"number"===typeof e)?[ym(a)]:[Array.from(new Set(a)),"ordinal"]},c="string"===typeof o?o:"",[u,d]=l();return Object.assign({encode:{color:{type:"column",value:null!==u&&void 0!==u?u:[]}},scale:{color:P({},a,{domain:u,type:d})}},void 0===r&&{legend:{color:P({title:c},s)}})}),ez=bL(()=>({animate:{enterType:"fadeIn"}})),tz=yL(()=>({frame:!1,encode:{shape:"hollow"},style:{lineWidth:0}})),nz=yL(()=>({type:"cell"})),rz=yL(e=>{const{data:t}=e,n={type:"custom",callback:()=>{const{data:t,encode:n}=e,{x:r,y:i}=n,o=r?Array.from(new Set(t.map(e=>e[r]))):[],a=i?Array.from(new Set(t.map(e=>e[i]))):[],s=()=>{if(o.length&&a.length){const e=[];for(const t of o)for(const n of a)e.push({[r]:t,[i]:n});return e}return o.length?o.map(e=>({[r]:e})):a.length?a.map(e=>({[i]:e})):void 0};return s()}};return{data:{type:"inline",value:t,transform:[n]}}}),iz=yL((e,t=oz,n=sz,r=lz,i={})=>{const{data:o,encode:a,children:s,scale:l,x:c=0,y:u=0,shareData:d=!1,key:h}=e,{value:f}=o,{x:p,y:g}=a,{color:m}=l,{domain:v}=m,A=(e,o,a)=>{const{x:l,y:m}=o,{paddingLeft:A,paddingTop:b,marginLeft:y,marginTop:w}=a,{domain:_}=l.getOptions(),{domain:x}=m.getOptions(),E=_m(e),S=e.map(t),C=e.map(({x:e,y:t})=>[l.invert(e),m.invert(t)]),T=C.map(([e,t])=>n=>{const{[p]:r,[g]:i}=n,o=void 0===p||r===e,a=void 0===g||i===t;return o&&a}),k=T.map(e=>f.filter(e)),O=d?k_(k,e=>e.length):void 0,M=C.map(([e,t])=>({columnField:p,columnIndex:_.indexOf(e),columnValue:e,columnValuesLength:_.length,rowField:g,rowIndex:x.indexOf(t),rowValue:t,rowValuesLength:x.length})),I=M.map(e=>Array.isArray(s)?s:[s(e)].flat(1));return E.flatMap(e=>{const[t,o,a,s]=S[e],l=M[e],d=k[e],m=I[e];return m.map(m=>{var _,x,{scale:E,key:S,facet:C=!0,axis:T={},legend:k={}}=m,M=XQ(m,["scale","key","facet","axis","legend"]);const I=(null===(_=null===E||void 0===E?void 0:E.y)||void 0===_?void 0:_.guide)||T.y,D=(null===(x=null===E||void 0===E?void 0:E.x)||void 0===x?void 0:x.guide)||T.x,N={x:{tickCount:p?5:void 0},y:{tickCount:g?5:void 0}},R=C?d:0===d.length?[]:f,L={color:{domain:v}},B={x:cz(D,n)(l,R),y:cz(I,r)(l,R)};return Object.assign(Object.assign({key:`${S}-${e}`,data:R,margin:0,x:t+A+c+y,y:o+b+u+w,parentKey:h,width:a,height:s,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!!R.length,dataDomain:O,scale:P(N,E,L),axis:P({},T,B),legend:!1},M),i)})})};return{children:A}});function oz(e){const{points:t}=e;return Wg(t)}function az(e,t){return t.length?P({title:!1,tick:null,label:null},e):P({title:!1,tick:null,label:null,grid:null},e)}function sz(e){return(t,n)=>{const{rowIndex:r,rowValuesLength:i,columnIndex:o,columnValuesLength:a}=t;if(r!==i-1)return az(e,n);const s=o===a-1&&void 0,l=n.length?void 0:null;return P({title:s,grid:l},e)}}function lz(e){return(t,n)=>{const{rowIndex:r,columnIndex:i}=t;if(0!==i)return az(e,n);const o=0===r&&void 0,a=n.length?void 0:null;return P({title:o,grid:a},e)}}function cz(e,t){return"function"===typeof e?e:null===e||!1===e?()=>null:t(e)}const uz=()=>e=>{const t=qQ.of(e).call(nz).call(ZQ).call(ez).call(JQ).call(tz).call(rz).call(iz).value();return[t]};uz.props={};var dz=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const hz=bL(e=>({scale:{x:{guide:null,paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),fz=yL(e=>{const{data:t,children:n,x:r=0,y:i=0,key:o}=e,a=(e,a,s)=>{const{x:l,y:c}=a,{paddingLeft:u,paddingTop:d,marginLeft:h,marginTop:f}=s,{domain:p}=l.getOptions(),{domain:g}=c.getOptions(),m=_m(e),v=e.map(({points:e})=>Wg(e)),A=e.map(({x:e,y:t})=>[l.invert(e),c.invert(t)]),b=A.map(([e,t])=>({columnField:e,columnIndex:p.indexOf(e),columnValue:e,columnValuesLength:p.length,rowField:t,rowIndex:g.indexOf(t),rowValue:t,rowValuesLength:g.length})),y=b.map(e=>Array.isArray(n)?n:[n(e)].flat(1));return m.flatMap(e=>{const[n,a,s,l]=v[e],[c,p]=A[e],g=b[e],m=y[e];return m.map(m=>{var v,A;const{scale:b,key:y,encode:w,axis:_,interaction:x}=m,E=dz(m,["scale","key","encode","axis","interaction"]),S=null===(v=null===b||void 0===b?void 0:b.y)||void 0===v?void 0:v.guide,C=null===(A=null===b||void 0===b?void 0:b.x)||void 0===A?void 0:A.guide,T={x:{facet:!1},y:{facet:!1}},k={x:gz(C)(g,t),y:mz(S)(g,t)},O={x:{tickCount:5},y:{tickCount:5}};return Object.assign({data:t,parentKey:o,key:`${y}-${e}`,x:n+u+r+h,y:a+d+i+f,width:s,height:l,margin:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!0,scale:P(T,b),axis:P(O,_,k),legend:!1,encode:P({},w,{x:c,y:p}),interaction:P({},x,{legendFilter:!1})},E)})})};return{children:a}}),pz=yL(e=>{const{encode:t}=e,n=dz(e,["encode"]),{position:r=[],x:i=r,y:o=[...r].reverse()}=t,a=dz(t,["position","x","y"]),s=[];for(const l of[i].flat(1))for(const e of[o].flat(1))s.push({$x:l,$y:e});return Object.assign(Object.assign({},n),{data:s,encode:Object.assign(Object.assign({},a),{x:"$x",y:"$y"}),scale:Object.assign(Object.assign({},1===[i].flat(1).length&&{x:{paddingInner:0}}),1===[o].flat(1).length&&{y:{paddingInner:0}})})});function gz(e){return"function"===typeof e?e:null===e?()=>null:(t,n)=>{const{rowIndex:r,rowValuesLength:i}=t;if(r!==i-1)return az(e,n)}}function mz(e){return"function"===typeof e?e:null===e?()=>null:(t,n)=>{const{columnIndex:r}=t;if(0!==r)return az(e,n)}}const vz=()=>e=>{const t=qQ.of(e).call(nz).call(ZQ).call(fz).call(pz).call(ez).call(tz).call(hz).value();return[t]};var Az=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const bz=bL(e=>({scale:{x:{guide:{type:"axisArc"},paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),yz=bL(e=>({coordinate:{type:"polar"}})),wz=e=>{const{encode:t}=e,n=Az(e,["encode"]),{position:r}=t;return Object.assign(Object.assign({},n),{encode:{x:r}})};function _z(e){return e=>null}function xz(e){const{points:t}=e,[n,r,i,o]=t,a=Hg(n,o),s=$g(n,o),l=$g(r,i),c=zg(s,l),u=1/Math.sin(c/2),d=a/(1+u),h=d*Math.sqrt(2),[f,p]=i,g=Qg(s),m=g+c/2,v=d*u,A=f+v*Math.sin(m),b=p-v*Math.cos(m);return[A-h/2,b-h/2,h,h]}const Ez=()=>e=>{const t=qQ.of(e).call(nz).call(wz).call(ZQ).call(yz).call(rz).call(iz,xz,_z,_z,{frame:!1}).call(ez).call(tz).call(bz).value();return[t]};function Sz(e,t,n){const r=0,i=n,o=[r,i],a=[1-i,1-r];return"normal"===e?o:"reverse"===e?a:"alternate"===e?t%2===0?o:a:"reverse-alternate"===e?t%2===0?a:o:void 0}function Cz(e,t,n){const r=[e];while(r.length){const e=r.pop();e.animate=P({enter:{duration:t},update:{duration:t,easing:n,type:"morphing",fill:"both"},exit:{type:"fadeOut",duration:t}},e.animate||{});const{children:i}=e;Array.isArray(i)&&r.push(...i)}return e}const Tz=()=>e=>{const{children:t=[],duration:n=1e3,iterationCount:r=1,direction:i="normal",easing:o="ease-in-out-sine"}=e,a=t.length;if(!Array.isArray(t)||0===a)return[];const{key:s}=t[0],l=t.map(e=>Object.assign(Object.assign({},e),{key:s})).map(e=>Cz(e,n,o));return function*(){let e,t=0;while("infinite"===r||t<r){const[n,r]=Sz(i,t,a);for(let t=n;t<r;t+=1){const n=Math.abs(t);e!==n&&(yield l[n]),e=n}t++}}};function kz(e,t,n){const{encode:r}=n;if(null===e)return[t];const i=Dz(e).map(e=>{var t;return[e,null===(t=Q(r,e))||void 0===t?void 0:t[0]]}).filter(([,e])=>Cg(e)),o=e=>i.map(([,t])=>t[e]).join("-");return Array.from(Lp(t,o).values())}function Oz(e){return Array.isArray(e)?Lz(e):"function"===typeof e?Rz(e):"series"===e?Nz:"value"===e?Bz:"sum"===e?Pz:"maxIndex"===e?Fz:null}function Mz(e,t){for(const n of e)n.sort(t)}function Iz(e,t){return(null===t||void 0===t?void 0:t.domain)||Array.from(new Set(e))}function Dz(e){return Array.isArray(e)?e:[e]}function Nz(e,t,n){return $z(e=>n[e])}function Rz(e){return(t,n,r)=>$z(n=>e(t[n]))}function Lz(e){return(t,n,r)=>(n,r)=>e.reduce((e,i)=>0!==e?e:yD(t[n][i],t[r][i]),0)}function Bz(e,t,n){return $z(e=>t[e])}function Pz(e,t,n){const r=_m(e),i=Array.from(Lp(r,e=>n[+e]).entries()),o=new Map(i.map(([e,n])=>[e,n.reduce((e,n)=>e+ +t[n])]));return $z(e=>o.get(n[e]))}function Fz(e,t,n){const r=_m(e),i=Array.from(Lp(r,e=>n[+e]).entries()),o=new Map(i.map(([e,n])=>[e,SL(n,e=>t[e])]));return $z(e=>o.get(n[e]))}function $z(e){return(t,n)=>yD(e(t),e(n))}Tz.props={};const jz=(e={})=>{const{groupBy:t="x",orderBy:n=null,reverse:r=!1,y:i="y",y1:o="y1",series:a=!0}=e;return(e,s)=>{var l;const{data:c,encode:u,style:d={}}=s,[h,f]=Q(u,"y"),[p,g]=Q(u,"y1"),[m]=a?z(u,"series","color"):Q(u,"color"),v=kz(t,e,s),A=null!==(l=Oz(n))&&void 0!==l?l:()=>null,b=A(c,h,m);b&&Mz(v,b);const y=new Array(e.length),w=new Array(e.length),_=new Array(e.length),x=[],E=[];for(const t of v){r&&t.reverse();const e=p?+p[t[0]]:0,n=[],i=[];for(const r of t){const t=_[r]=+h[r]-e;t<0?i.push(r):t>=0&&n.push(r)}const o=n.length>0?n:i,a=i.length>0?i:n;let s=n.length-1,l=0;while(s>0&&0===h[o[s]])s--;while(l<a.length-1&&0===h[a[l]])l++;x.push(o[s]),E.push(a[l]);let c=e;for(const t of i.reverse()){const e=_[t];c=y[t]=(w[t]=c)+e}let u=e;for(const t of n){const e=_[t];e>0?u=y[t]=(w[t]=u)+e:y[t]=w[t]=u}}const S=new Set(x),C=new Set(E),T="y"===i?y:w,k="y"===o?y:w;let O;return O="point"===s.type?{y0:$(h,f),y:F(T,f)}:{y0:$(h,f),y:F(T,f),y1:F(k,g)},[e,P({},s,{encode:Object.assign({},O),style:Object.assign({first:(e,t)=>S.has(t),last:(e,t)=>C.has(t)},d)})]}};function Hz(e,t){let n=0;if(void 0===t)for(let r of e)null!=r&&(r=+r)>=r&&++n;else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(i=+i)>=i&&++n}return n}function Uz(e,t){let n,r=0,i=0,o=0;if(void 0===t)for(let a of e)null!=a&&(a=+a)>=a&&(n=a-i,i+=n/++r,o+=n*(a-i));else{let a=-1;for(let s of e)null!=(s=t(s,++a,e))&&(s=+s)>=s&&(n=s-i,i+=n/++r,o+=n*(s-i))}if(r>1)return o/(r-1)}function Qz(e,t){const n=Uz(e,t);return n?Math.sqrt(n):n}function zz(e,t,n){const r=Hz(e),i=Qz(e);return r&&i?Math.ceil((n-t)*Math.cbrt(r)/(3.49*i)):1}jz.props={};var Wz=Array.prototype,Gz=Wz.slice;Wz.map;function Vz(e){return()=>e}const Kz=Math.sqrt(50),Yz=Math.sqrt(10),qz=Math.sqrt(2);function Xz(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=Kz?10:o>=Yz?5:o>=qz?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/a,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=n&&n<2?Xz(e,t,2*n):[s,l,c]}function Jz(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?Xz(t,e,n):Xz(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let c=0;c<s;++c)l[c]=(o-c)/-a;else for(let c=0;c<s;++c)l[c]=(o-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(i+c)/-a;else for(let c=0;c<s;++c)l[c]=(i+c)*a;return l}function Zz(e,t,n){return t=+t,e=+e,n=+n,Xz(e,t,n)[2]}function eW(e,t,n){let r;while(1){const i=Zz(e,t,n);if(i===r||0===i||!isFinite(i))return[e,t];i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),r=i}}function tW(e){return Math.max(1,Math.ceil(Math.log(Hz(e))/Math.LN2)+1)}function nW(){var e=Rp,t=ym,n=tW;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a,s=r.length,l=new Array(s);for(i=0;i<s;++i)l[i]=e(r[i],i,r);var c=t(l),u=c[0],d=c[1],h=n(l,u,d);if(!Array.isArray(h)){const e=d,n=+h;if(t===ym&&([u,d]=eW(u,d,n)),h=Jz(u,d,n),h[0]<=u&&(a=Zz(u,d,n)),h[h.length-1]>=d)if(e>=d&&t===ym){const e=Zz(u,d,n);isFinite(e)&&(e>0?d=(Math.floor(d/e)+1)*e:e<0&&(d=(Math.ceil(d*-e)+1)/-e))}else h.pop()}var f=h.length,p=0,g=f;while(h[p]<=u)++p;while(h[g-1]>d)--g;(p||g<f)&&(h=h.slice(p,g),f=g-p);var m,v=new Array(f+1);for(i=0;i<=f;++i)m=v[i]=[],m.x0=i>0?h[i-1]:u,m.x1=i<f?h[i]:d;if(isFinite(a)){if(a>0)for(i=0;i<s;++i)null!=(o=l[i])&&u<=o&&o<=d&&v[Math.min(f,Math.floor((o-u)/a))].push(r[i]);else if(a<0)for(i=0;i<s;++i)if(null!=(o=l[i])&&u<=o&&o<=d){const e=Math.floor((u-o)*a);v[Math.min(f,e+(h[e]<=o))].push(r[i])}}else for(i=0;i<s;++i)null!=(o=l[i])&&u<=o&&o<=d&&v[MD(h,o,0,f)].push(r[i]);return v}return r.value=function(t){return arguments.length?(e="function"===typeof t?t:Vz(t),r):e},r.domain=function(e){return arguments.length?(t="function"===typeof e?e:Vz([e[0],e[1]]),r):t},r.thresholds=function(e){return arguments.length?(n="function"===typeof e?e:Vz(Array.isArray(e)?Gz.call(e):e),r):n},r}function rW(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;i=void 0===i?RD:ND(i);while(r>n){if(r-n>600){const o=r-n+1,a=t-n+1,s=Math.log(o),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(o-l)/o)*(a-o/2<0?-1:1),u=Math.max(n,Math.floor(t-a*l/o+c)),d=Math.min(r,Math.floor(t+(o-a)*l/o+c));rW(e,t,u,d,i)}const o=e[t];let a=n,s=r;iW(e,n,t),i(e[r],o)>0&&iW(e,n,r);while(a<s){iW(e,a,s),++a,--s;while(i(e[a],o)<0)++a;while(i(e[s],o)>0)--s}0===i(e[n],o)?iW(e,n,s):(++s,iW(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function iW(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function oW(e,t=yD){let n,r=!1;if(1===t.length){let i;for(const o of e){const e=t(o);(r?yD(e,i)>0:0===yD(e,e))&&(n=o,i=e,r=!0)}}else for(const i of e)(r?t(i,n)>0:0===t(i,i))&&(n=i,r=!0);return n}function aW(e,t,n){if(e=Float64Array.from(SD(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return T_(e);if(t>=1)return k_(e);var r,i=(r-1)*t,o=Math.floor(i),a=k_(rW(e,o).subarray(0,o+1)),s=T_(e.subarray(o+1));return a+(s-a)*(i-o)}}function sW(e,t,n=ED){if(!isNaN(t=+t)){if(r=Float64Array.from(e,(t,r)=>ED(n(e[r],r,e))),t<=0)return YR(r);if(t>=1)return SL(r);var r,i=Uint32Array.from(e,(e,t)=>t),o=r.length-1,a=Math.floor(o*t);return rW(i,a,0,o,(e,t)=>RD(r[e],r[t])),a=oW(i.subarray(0,a+1),e=>r[e]),a>=0?a:-1}}function lW(e,t){return aW(e,.5,t)}function cW(e,t){return sW(e,.5,t)}function uW(e,t){let n=0;if(void 0===t)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}var dW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function hW(e){return t=>null===t?e:`${e} of ${t}`}function fW(e){if("function"===typeof e)return[e,null];const t={mean:pW,max:mW,count:AW,first:yW,last:wW,sum:bW,min:vW,median:gW},n=t[e];if(!n)throw new Error(`Unknown reducer: ${e}.`);return n()}function pW(){const e=(e,t)=>qR(e,e=>+t[e]),t=hW("mean");return[e,t]}function gW(){const e=(e,t)=>lW(e,e=>+t[e]),t=hW("median");return[e,t]}function mW(){const e=(e,t)=>k_(e,e=>+t[e]),t=hW("max");return[e,t]}function vW(){const e=(e,t)=>T_(e,e=>+t[e]),t=hW("min");return[e,t]}function AW(){const e=(e,t)=>e.length,t=hW("count");return[e,t]}function bW(){const e=(e,t)=>uW(e,e=>+t[e]),t=hW("sum");return[e,t]}function yW(){const e=(e,t)=>t[e[0]],t=hW("first");return[e,t]}function wW(){const e=(e,t)=>t[e[e.length-1]],t=hW("last");return[e,t]}const _W=(e={})=>{const{groupBy:t}=e,n=dW(e,["groupBy"]);return(e,r)=>{const{data:i,encode:o}=r,a=t(e,r);if(!a)return[e,r];const s=(e,t)=>{if(e)return e;const{from:n}=t;if(!n)return e;const[,r]=Q(o,n);return r},l=Object.entries(n).map(([e,t])=>{const[n,r]=fW(t),[l,c]=Q(o,e),u=s(c,t),d=a.map(e=>n(e,null!==l&&void 0!==l?l:i));return[e,Object.assign(Object.assign({},H(d,(null===r||void 0===r?void 0:r(u))||u)),{aggregate:!0})]}),c=Object.keys(o).map(e=>{const[t,n]=Q(o,e),r=a.map(e=>t[e[0]]);return[e,F(r,n)]}),u=a.map(e=>i[e[0]]),d=_m(a);return[d,P({},r,{data:u,encode:Object.fromEntries([...c,...l])})]}};_W.props={};var xW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const EW="thresholds";function SW(e){const[t,n]=ym(e);return Math.min(200,zz(e,t,n))}const CW=(e={})=>{const{groupChannels:t=["color"],binChannels:n=["x","y"]}=e,r=xW(e,["groupChannels","binChannels"]),i={},o=(e,o)=>{const{encode:a}=o,s=n.map(e=>{const[t]=Q(a,e);return t}),l=Og(r,EW),c=e.filter(e=>s.every(t=>Cg(t[e]))),u=[...t.map(e=>{const[t]=Q(a,e);return t}).filter(Cg).map(e=>t=>e[t]),...n.map((e,t)=>{const n=s[t],r=l[e]||SW(n),o=nW().thresholds(r).value(e=>+n[e])(c),a=new Map(o.flatMap(e=>{const{x0:t,x1:n}=e,r=`${t},${n}`;return e.map(e=>[e,r])}));return i[e]=a,e=>a.get(e)})],d=e=>u.map(t=>t(e)).join("-");return Array.from(Lp(c,d).values())};return _W(Object.assign(Object.assign(Object.assign({},Object.fromEntries(Object.entries(r).filter(([e])=>!e.startsWith(EW)))),Object.fromEntries(n.flatMap(e=>{const t=([t])=>+i[e].get(t).split(",")[0],n=([t])=>+i[e].get(t).split(",")[1];return n.from=e,[[e,t],[`${e}1`,n]]}))),{groupBy:o}))};CW.props={};const TW=(e={})=>{const{thresholds:t}=e;return CW(Object.assign(Object.assign({},e),{thresholdsX:t,groupChannels:["color"],binChannels:["x"]}))};TW.props={};var kW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const OW=(e={})=>{const{groupBy:t="x",reverse:n=!1,orderBy:r,padding:i}=e;kW(e,["groupBy","reverse","orderBy","padding"]);return(e,o)=>{const{data:a,encode:s,scale:l}=o,{series:c}=l,[u]=Q(s,"y"),[d]=z(s,"series","color"),h=Iz(d,c),f=P({},o,{scale:{series:{domain:h,paddingInner:i}}}),p=kz(t,e,o),g=Oz(r);if(!g)return[e,P(f,{encode:{series:F(d)}})];const m=g(a,u,d);m&&Mz(p,m);const v=new Array(e.length);for(const t of p){n&&t.reverse();for(let e=0;e<t.length;e++)v[t[e]]=h[e]}return[e,P(f,{encode:{series:F(r?v:d)}})]}};function MW(e,t,n){if(null===e)return[-.5,.5];const r=Iz(e,t),i=new og({domain:r,range:[0,1],padding:n}),o=i.getBandWidth();return[-o/2,o/2]}function IW(e,t,n){return t*(1-e)+n*e}OW.props={};const DW=(e={})=>{const{padding:t=0,paddingX:n=t,paddingY:r=t,random:i=Math.random}=e;return(e,t)=>{const{encode:o,scale:a}=t,{x:s,y:l}=a,[c]=Q(o,"x"),[u]=Q(o,"y"),d=MW(c,s,n),h=MW(u,l,r),f=e.map(()=>IW(i(),...h)),p=e.map(()=>IW(i(),...d));return[e,P({scale:{x:{padding:.5},y:{padding:.5}}},t,{encode:{dy:F(f),dx:F(p)}})]}};DW.props={};const NW=(e={})=>{const{padding:t=0,random:n=Math.random}=e;return(e,r)=>{const{encode:i,scale:o}=r,{x:a}=o,[s]=Q(i,"x"),l=MW(s,a,t),c=e.map(()=>IW(n(),...l));return[e,P({scale:{x:{padding:.5}}},r,{encode:{dx:F(c)}})]}};NW.props={};const RW=(e={})=>{const{padding:t=0,random:n=Math.random}=e;return(e,r)=>{const{encode:i,scale:o}=r,{y:a}=o,[s]=Q(i,"y"),l=MW(s,a,t),c=e.map(()=>IW(n(),...l));return[e,P({scale:{y:{padding:.5}}},r,{encode:{dy:F(c)}})]}};RW.props={};var LW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const BW=(e={})=>{const{groupBy:t="x"}=e;return(e,n)=>{const{encode:r}=n,{x:i}=r,o=LW(r,["x"]),a=Object.entries(o).filter(([e])=>e.startsWith("y")).map(([e])=>[e,Q(r,e)[0]]),s=a.map(([t])=>[t,new Array(e.length)]),l=kz(t,e,n),c=new Array(l.length);for(let t=0;t<l.length;t++){const e=l[t],n=e.flatMap(e=>a.map(([,t])=>+t[e])),[r,i]=ym(n);c[t]=(r+i)/2}const u=Math.max(...c);for(let t=0;t<l.length;t++){const e=u-c[t],n=l[t];for(const t of n)for(let n=0;n<a.length;n++){const[,r]=a[n],[,i]=s[n];i[t]=+r[t]+e}}return[e,P({},n,{encode:Object.fromEntries(s.map(([e,t])=>[e,F(t,Q(r,e)[1])]))})]}};BW.props={};const PW=(e={})=>{const{groupBy:t="x"}=e;return(e,n)=>{const{encode:r}=n,[i]=Q(r,"y"),[o,a]=Q(r,"y1"),s=kz(t,e,n),l=new Array(e.length);for(const t of s){const e=t.map(e=>+i[e]);for(let n=0;n<t.length;n++){const r=t[n],o=Math.max(...e.filter((e,t)=>t!==n));l[r]=+i[r]>o?o:i[r]}}return[e,P({},n,{encode:{y1:F(l,a)}})]}};PW.props={};const FW=e=>{const{groupBy:t=["x"],reducer:n=(e,t)=>t[e[0]],orderBy:r=null,reverse:i=!1,duration:o}=e;return(e,a)=>{const{encode:s}=a,l=Array.isArray(t)?t:[t],c=l.map(e=>[e,Q(s,e)[0]]);if(0===c.length)return[e,a];let u=[e];for(const[,t]of c){const e=[];for(const n of u){const r=Array.from(Lp(n,e=>t[e]).values());e.push(...r)}u=e}if(r){const[e]=Q(s,r);e&&u.sort((t,r)=>n(t,e)-n(r,e)),i&&u.reverse()}const d=(o||3e3)/u.length,[h]=o?[U(e,d)]:z(s,"enterDuration",U(e,d)),[f]=z(s,"enterDelay",U(e,0)),p=new Array(e.length);for(let t=0,n=0;t<u.length;t++){const e=u[t],r=k_(e,e=>+h[e]);for(const t of e)p[t]=+f[t]+n;n+=r}return[e,P({},a,{encode:{enterDuration:j(h),enterDelay:j(p)}})]}};FW.props={};var $W=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function jW(e){if("function"===typeof e)return e;const t={min:(e,t)=>T_(e,e=>t[+e]),max:(e,t)=>k_(e,e=>t[+e]),first:(e,t)=>t[e[0]],last:(e,t)=>t[e[e.length-1]],mean:(e,t)=>qR(e,e=>t[+e]),median:(e,t)=>lW(e,e=>t[+e]),sum:(e,t)=>uW(e,e=>t[+e]),deviation:(e,t)=>Qz(e,e=>t[+e])};return t[e]||k_}const HW=(e={})=>{const{groupBy:t="x",basis:n="max"}=e;return(e,r)=>{const{encode:i,tooltip:o}=r,{x:a}=i,s=$W(i,["x"]),l=Object.entries(s).filter(([e])=>e.startsWith("y")).map(([e])=>[e,Q(i,e)[0]]),[,c]=l.find(([e])=>"y"===e),u=l.map(([t])=>[t,new Array(e.length)]),d=kz(t,e,r),h=jW(n);for(const t of d){const e=h(t,c);for(const n of t)for(let t=0;t<l.length;t++){const[,r]=l[t],[,i]=u[t];i[n]=+r[n]/e}}const f=Lg(o)||(null===o||void 0===o?void 0:o.items)&&0!==(null===o||void 0===o?void 0:o.items.length);return[e,P({},r,Object.assign({encode:Object.fromEntries(u.map(([e,t])=>[e,F(t,Q(i,e)[1])]))},!f&&i.y0&&{tooltip:{items:[{channel:"y0"}]}}))]}};function UW(e,t){return[e[0]]}function QW(e,t){const n=e.length-1;return[e[n]]}function zW(e,t){const n=SL(e,e=>t[e]);return[e[n]]}function WW(e,t){const n=YR(e,e=>t[e]);return[e[n]]}function GW(e){if("function"===typeof e)return e;const t={first:UW,last:QW,max:zW,min:WW};return t[e]||UW}HW.props={};const VW=(e={})=>{const{groupBy:t="series",channel:n,selector:r}=e;return(e,i)=>{const{encode:o}=i,a=kz(t,e,i),[s]=Q(o,n),l=GW(r);return[a.flatMap(e=>l(e,s)),i]}};VW.props={};var KW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const YW=(e={})=>{const{selector:t}=e,n=KW(e,["selector"]);return VW(Object.assign({channel:"x",selector:t},n))};YW.props={};var qW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const XW=(e={})=>{const{selector:t}=e,n=qW(e,["selector"]);return VW(Object.assign({channel:"y",selector:t},n))};XW.props={};var JW=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const ZW=(e={})=>{const{channels:t=["x","y"]}=e,n=JW(e,["channels"]),r=(e,n)=>kz(t,e,n);return _W(Object.assign(Object.assign({},n),{groupBy:r}))};ZW.props={};const eG=(e={})=>ZW(Object.assign(Object.assign({},e),{channels:["x","color","series"]}));eG.props={};const tG=(e={})=>ZW(Object.assign(Object.assign({},e),{channels:["y","color","series"]}));tG.props={};const nG=(e={})=>ZW(Object.assign(Object.assign({},e),{channels:["color"]}));function rG(e,t,n){return(2!==t.length?DD(Pp(e,t,n),([e,t],[n,r])=>yD(t,r)||yD(e,n)):DD(Lp(e,n),([e,n],[r,i])=>t(n,i)||yD(e,r))).map(([e])=>e)}function iG(e,t,n){const{by:r=e,reducer:i="max"}=t,[o]=Q(n,r);if("function"===typeof i)return e=>i(e,o);if("max"===i)return e=>k_(e,e=>+o[e]);if("min"===i)return e=>T_(e,e=>+o[e]);if("sum"===i)return e=>uW(e,e=>+o[e]);if("median"===i)return e=>lW(e,e=>+o[e]);if("mean"===i)return e=>qR(e,e=>+o[e]);if("first"===i)return e=>o[e[0]];if("last"===i)return e=>o[e[e.length-1]];throw new Error(`Unknown reducer: ${i}`)}function oG(e,t,n){if(!Array.isArray(n))return e;const r=new Set(n);return e.filter(e=>r.has(t[e]))}nG.props={};const aG=(e={})=>(t,n)=>{const{reverse:r,slice:i,channel:o,by:a,ordinal:s=!0,reducer:l}=e,{encode:c,scale:u={}}=n,d=u[o].domain,[h]=Q(c,null!==a&&void 0!==a?a:o),[f]=Q(c,o),p=iG(o,{by:a,reducer:l},c),g=oG(t,f,d),m=rG(g,p,e=>f[e]),v=s?t:DD(t,e=>h[e]);r&&(!s&&v.reverse(),m.reverse());const A="number"===typeof i?[0,i]:i,b=i?m.slice(...A):m;return[v,P(n,{scale:{[o]:{domain:b}}})]};aG.props={};const sG=(e={})=>aG(Object.assign(Object.assign({},e),{channel:"x"}));sG.props={};const lG=(e={})=>aG(Object.assign(Object.assign({},e),{channel:"y"}));lG.props={};const cG=(e={})=>aG(Object.assign(Object.assign({},e),{channel:"color"}));function uG(e,t){return"string"===typeof t?e.map(e=>e[t]):e.map(t)}function dG(e,t){if("function"===typeof e)return n=>e(n,t);if("sum"===e)return e=>uW(e,e=>+t[e]);throw new Error(`Unknown reducer: ${e}`)}cG.props={};const hG=(e={})=>{const{field:t,channel:n="y",reducer:r="sum"}=e;return(e,i)=>{const{data:o,encode:a}=i,[s]=Q(a,"x"),l=t?uG(o,t):Q(a,n)[0],c=dG(r,l),u=Fp(e,c,e=>s[e]).map(e=>e[1]);return[e,P({},i,{scale:{x:{flex:u}}})]}};function fG(e){const{padding:t=0,direction:n="col"}=e;return(e,r,i)=>{const o=e.length;if(0===o)return[];const{innerWidth:a,innerHeight:s}=i,l=s/a;let c=Math.ceil(Math.sqrt(r/l)),u=a/c,d=Math.ceil(r/c),h=d*u;while(h>s)c+=1,u=a/c,d=Math.ceil(r/c),h=d*u;const f=s-d*u,p=d<=1?0:f/(d-1),[g,m]=d<=1?[(a-o*u)/(o-1),(s-u)/2]:[0,0];return e.map((e,r)=>{const[i,o,a,s]=Wg(e),l="col"===n?r%c:Math.floor(r/d),h="col"===n?Math.floor(r/c):r%d,v=l*u,A=(d-h-1)*u+f,b=(u-t)/a,y=(u-t)/s,w=v-i+g*l+.5*t,_=A-o-p*h-m+.5*t;return`translate(${w}, ${_}) scale(${b}, ${y})`})}}hG.props={};const pG=e=>(t,n)=>[t,P({},n,{modifier:fG(e),axis:!1})];function gG(e,t,n,r){const i=e.length;if(r>=i||0===r)return e;const o=n=>1*t[e[n]],a=t=>1*n[e[t]],s=[],l=(i-2)/(r-2);let c,u,d,h=0;s.push(h);for(let f=0;f<r-2;f++){let e=0,t=0,n=Math.floor((f+1)*l)+1,r=Math.floor((f+2)*l)+1;r=Math.min(r,i);const p=r-n;for(;n<r;n++)e+=o(n),t+=a(n);e/=p,t/=p;let g=Math.floor((f+0)*l)+1;const m=Math.floor((f+1)*l)+1,v=[o(h),a(h)];for(c=u=-1;g<m;g++)u=.5*Math.abs((v[0]-e)*(o(g)-v[1])-(v[0]-a(g))*(t-v[0])),u>c&&(c=u,d=g);s.push(d),h=d}return s.push(i-1),s.map(t=>e[t])}function mG(e){if("function"===typeof e)return e;if("lttb"===e)return gG;const t={first:e=>[e[0]],last:e=>[e[e.length-1]],min:(e,t,n)=>[e[YR(e,e=>n[e])]],max:(e,t,n)=>[e[SL(e,e=>n[e])]],median:(e,t,n)=>[e[cW(e,e=>n[e])]]},n=t[e]||t.median;return(e,t,r,i)=>{const o=Math.max(1,Math.floor(e.length/i)),a=vG(e,o);return a.flatMap(e=>n(e,t,r))}}function vG(e,t){const n=e.length,r=[];let i=0;while(i<n)r.push(e.slice(i,i+=t));return r}pG.props={};const AG=(e={})=>{const{strategy:t="median",thresholds:n=2e3,groupBy:r=["series","color"]}=e,i=mG(t);return(e,t)=>{const{encode:o}=t,a=kz(r,e,t),[s]=Q(o,"x"),[l]=Q(o,"y");return[a.flatMap(e=>i(e,s,l,n)),t]}};function bG(e){return"object"===typeof e?[e.value,e.ordinal]:[e,!0]}function yG(e){var t;const{encode:n}=e,r=Object.assign(Object.assign({},e),{encode:Object.assign(Object.assign({},e.encode),{y:Object.assign(Object.assign({},e.encode.y),{value:[]})})}),i=null===(t=null===n||void 0===n?void 0:n.color)||void 0===t?void 0:t.field;if(!n||!i)return r;let o;for(const[a,s]of Object.entries(n))"x"!==a&&"y"!==a||s.field!==i||(o=Object.assign(Object.assign({},o),{[a]:Object.assign(Object.assign({},s),{value:[]})}));return o?Object.assign(Object.assign({},e),{encode:Object.assign(Object.assign({},e.encode),o)}):r}AG.props={};const wG=(e={})=>(t,n)=>{const{encode:r,data:i}=n,o=Object.entries(e).map(([e,t])=>{const[n]=Q(r,e);if(!n)return null;const[i,o=!0]=bG(t);if("function"===typeof i)return e=>i(n[e]);if(o){const e=Array.isArray(i)?i:[i];return 0===e.length?null:t=>e.includes(n[t])}{const[e,t]=i;return r=>n[r]>=e&&n[r]<=t}}).filter(Cg),a=e=>o.every(t=>t(e)),s=t.filter(a),l=s.map((e,t)=>t);if(0===o.length){const e=yG(n);return[t,e]}const c=Object.entries(r).map(([e,t])=>[e,Object.assign(Object.assign({},t),{value:l.map(e=>t.value[s[e]]).filter(e=>void 0!==e)})]);return[l,P({},n,{encode:Object.fromEntries(c),data:s.map(e=>i[e])})]};wG.props={};var _G={},xG={},EG=34,SG=10,CG=13;function TG(e){return new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'}).join(",")+"}")}function kG(e,t){var n=TG(e);return function(r,i){return t(n(r),i,e)}}function OG(e){var t=Object.create(null),n=[];return e.forEach(function(e){for(var r in e)r in t||n.push(t[r]=r)}),n}function MG(e,t){var n=e+"",r=n.length;return r<t?new Array(t-r+1).join(0)+n:n}function IG(e){return e<0?"-"+MG(-e,6):e>9999?"+"+MG(e,6):MG(e,4)}function DG(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),r=e.getUTCSeconds(),i=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":IG(e.getUTCFullYear(),4)+"-"+MG(e.getUTCMonth()+1,2)+"-"+MG(e.getUTCDate(),2)+(i?"T"+MG(t,2)+":"+MG(n,2)+":"+MG(r,2)+"."+MG(i,3)+"Z":r?"T"+MG(t,2)+":"+MG(n,2)+":"+MG(r,2)+"Z":n||t?"T"+MG(t,2)+":"+MG(n,2)+"Z":"")}function NG(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function r(e,t){var n,r,o=i(e,function(e,i){if(n)return n(e,i-1);r=e,n=t?kG(e,t):TG(e)});return o.columns=r||[],o}function i(e,t){var r,i=[],o=e.length,a=0,s=0,l=o<=0,c=!1;function u(){if(l)return xG;if(c)return c=!1,_G;var t,r,i=a;if(e.charCodeAt(i)===EG){while(a++<o&&e.charCodeAt(a)!==EG||e.charCodeAt(++a)===EG);return(t=a)>=o?l=!0:(r=e.charCodeAt(a++))===SG?c=!0:r===CG&&(c=!0,e.charCodeAt(a)===SG&&++a),e.slice(i+1,t-1).replace(/""/g,'"')}while(a<o){if((r=e.charCodeAt(t=a++))===SG)c=!0;else if(r===CG)c=!0,e.charCodeAt(a)===SG&&++a;else if(r!==n)continue;return e.slice(i,t)}return l=!0,e.slice(i,o)}e.charCodeAt(o-1)===SG&&--o,e.charCodeAt(o-1)===CG&&--o;while((r=u())!==xG){var d=[];while(r!==_G&&r!==xG)d.push(r),r=u();t&&null==(d=t(d,s++))||i.push(d)}return i}function o(t,n){return t.map(function(t){return n.map(function(e){return u(t[e])}).join(e)})}function a(t,n){return null==n&&(n=OG(t)),[n.map(u).join(e)].concat(o(t,n)).join("\n")}function s(e,t){return null==t&&(t=OG(e)),o(e,t).join("\n")}function l(e){return e.map(c).join("\n")}function c(t){return t.map(u).join(e)}function u(e){return null==e?"":e instanceof Date?DG(e):t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:r,parseRows:i,format:a,formatBody:s,formatRows:l,formatRow:c,formatValue:u}}function RG(e){for(var t in e){var n,r,i=e[t].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;LG&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=n;else i=null;e[t]=i}return e}const LG=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();var BG=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(c4){o(c4)}}function s(e){try{l(r["throw"](e))}catch(c4){o(c4)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})};const PG=e=>{const{value:t,format:n=t.split(".").pop(),delimiter:r=",",autoType:i=!0}=e;return()=>BG(void 0,void 0,void 0,function*(){const e=yield fetch(t);if("csv"===n){const t=yield e.text();return NG(r).parse(t,i?RG:yg)}if("json"===n)return yield e.json();throw new Error(`Unknown format: ${n}.`)})};PG.props={};const FG=e=>{const{value:t}=e;return()=>t};function $G(e,t){return e.map(e=>{if(Array.isArray(e)){const[n,r=t]=e;return[n,r]}return[e,t]})}FG.props={};const jG=e=>{const{fields:t=[]}=e,n=$G(t,!0);return e=>{const t=(e,t)=>n.reduce((n,[r,i=!0])=>0!==n?n:i?e[r]<t[r]?-1:+(e[r]!==t[r]):e[r]>t[r]?-1:+(e[r]!==t[r]),0);return[...e].sort(t)}};jG.props={};const HG=e=>{const{callback:t}=e;return e=>Array.isArray(e)?[...e].sort(t):e};function UG(e){return void 0!==e&&null!==e&&!Number.isNaN(e)}HG.props={};const QG=e=>{const{callback:t=UG}=e;return e=>e.filter(t)};function zG(e,t=[]){return t.reduce((t,n)=>(n in e&&(t[n]=e[n]),t),{})}QG.props={};const WG=e=>{const{fields:t}=e;return e=>e.map(e=>zG(e,t))};function GG(e){return 0===Object.keys(e).length}WG.props={};const VG=e=>t=>{if(!e||GG(e))return t;const n=t=>Object.entries(t).reduce((t,[n,r])=>(t[e[n]||n]=r,t),{});return t.map(n)};function KG(e){return!e||0===Object.keys(e).length}VG.props={};const YG=e=>{const{fields:t,key:n="key",value:r="value"}=e;return e=>KG(t)?e:e.flatMap(e=>t.map(t=>Object.assign(Object.assign({},e),{[n]:t,[r]:e[t]})))};YG.props={};const qG=e=>{const{start:t,end:n}=e;return e=>e.slice(t,n)};qG.props={};const XG=e=>{const{callback:t=yg}=e;return e=>t(e)};XG.props={};const JG=e=>{const{callback:t=yg}=e;return e=>Array.isArray(e)?e.map(t):e};function ZG(e){return"string"===typeof e?t=>t[e]:e}JG.props={};const eV=e=>{const{join:t,on:n,select:r=[],as:i=r,unknown:o=NaN}=e,[a,s]=n,l=ZG(s),c=ZG(a),u=Pp(t,([e])=>e,e=>l(e));return e=>e.map(e=>{const t=u.get(c(e));return Object.assign(Object.assign({},e),r.reduce((e,n,r)=>(e[i[r]]=t?t[n]:o,e),{}))})};eV.props={};var tV=n(22225),nV=n.n(tV);const rV=e=>{const{field:t,groupBy:n,as:r=["y","size"],min:i,max:o,size:a=10,width:s}=e,[l,c]=r;return e=>{const r=Array.from(Lp(e,e=>n.map(t=>e[t]).join("-")).values());return r.map(e=>{const n=nV().create(e.map(e=>e[t]),{min:i,max:o,size:a,width:s}),r=n.map(e=>e.x),u=n.map(e=>e.y);return Object.assign(Object.assign({},e[0]),{[l]:r,[c]:u})})}};rV.props={};const iV=()=>e=>(console.log("G2 data section:",e),e);iV.props={};var oV=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(c4){o(c4)}}function s(e){try{l(r["throw"](e))}catch(c4){o(c4)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})};function aV(e,t){return{set(n,r,i){if(void 0===t[n])return this;const o=r?r.call(null,t[n]):t[n];return i?i.call(null,o):"function"===typeof e[n]?e[n](o):e[n]=o,this},setAsync(n,r,i){return oV(this,void 0,void 0,function*(){if(void 0===t[n])return this;const o=r?yield r.call(null,t[n]):t[n];return i?i.call(null,o):"function"===typeof e[n]?e[n](o):e[n]=o,this})}}}const sV=Math.PI/180,lV=64,cV=2048;function uV(e){return e.text}function dV(){return"serif"}function hV(){return"normal"}function fV(e){return e.value}function pV(){return 90*~~(2*Math.random())}function gV(){return 1}function mV(){}function vV(e,t,n,r){if(t.sprite)return;const i=e.context,o=e.ratio;i.clearRect(0,0,(lV<<5)/o,cV/o);let a=0,s=0,l=0;const c=n.length;--r;while(++r<c){t=n[r],i.save(),i.font=t.style+" "+t.weight+" "+~~((t.size+1)/o)+"px "+t.font;let e=i.measureText(t.text+"m").width*o,c=t.size<<1;if(t.rotate){const n=Math.sin(t.rotate*sV),r=Math.cos(t.rotate*sV),i=e*r,o=e*n,a=c*r,s=c*n;e=Math.max(Math.abs(i+s),Math.abs(i-s))+31>>5<<5,c=~~Math.max(Math.abs(o+a),Math.abs(o-a))}else e=e+31>>5<<5;if(c>l&&(l=c),a+e>=lV<<5&&(a=0,s+=l,l=0),s+c>=cV)break;i.translate((a+(e>>1))/o,(s+(c>>1))/o),t.rotate&&i.rotate(t.rotate*sV),i.fillText(t.text,0,0),t.padding&&(i.lineWidth=2*t.padding,i.strokeText(t.text,0,0)),i.restore(),t.width=e,t.height=c,t.xoff=a,t.yoff=s,t.x1=e>>1,t.y1=c>>1,t.x0=-t.x1,t.y0=-t.y1,t.hasText=!0,a+=e}const u=i.getImageData(0,0,(lV<<5)/o,cV/o).data,d=[];while(--r>=0){if(t=n[r],!t.hasText)continue;const e=t.width,i=e>>5;let o=t.y1-t.y0;for(let t=0;t<o*i;t++)d[t]=0;if(a=t.xoff,null==a)return;s=t.yoff;let l=0,c=-1;for(let n=0;n<o;n++){for(let t=0;t<e;t++){const e=i*n+(t>>5),r=u[(s+n)*(lV<<5)+(a+t)<<2]?1<<31-t%32:0;d[e]|=r,l|=r}l?c=n:(t.y0++,o--,n--,s++)}t.y1=t.y0+c,t.sprite=d.slice(0,(t.y1-t.y0)*i)}}function AV(e,t,n){n>>=5;const r=e.sprite,i=e.width>>5,o=e.x-(i<<4),a=127&o,s=32-a,l=e.y1-e.y0;let c,u=(e.y+e.y0)*n+(o>>5);for(let d=0;d<l;d++){c=0;for(let e=0;e<=i;e++)if((c<<s|(e<i?(c=r[d*i+e])>>>a:0))&t[u+e])return!0;u+=n}return!1}function bV(e,t){const n=e[0],r=e[1];t.x+t.x0<n.x&&(n.x=t.x+t.x0),t.y+t.y0<n.y&&(n.y=t.y+t.y0),t.x+t.x1>r.x&&(r.x=t.x+t.x1),t.y+t.y1>r.y&&(r.y=t.y+t.y1)}function yV(e,t){return e.x+e.x1>t[0].x&&e.x+e.x0<t[1].x&&e.y+e.y1>t[0].y&&e.y+e.y0<t[1].y}function wV(e){const t=e[0]/e[1];return function(e){return[t*(e*=.1)*Math.cos(e),e*Math.sin(e)]}}function _V(e){const t=4,n=t*e[0]/e[1];let r=0,i=0;return function(e){const o=e<0?-1:1;switch(Math.sqrt(1+4*o*e)-o&3){case 0:r+=n;break;case 1:i+=t;break;case 2:r-=n;break;default:i-=t;break}return[r,i]}}function xV(e){const t=[];let n=-1;while(++n<e)t[n]=0;return t}function EV(){return document.createElement("canvas")}function SV(e){return"function"===typeof e?e:function(){return e}}const CV={archimedean:wV,rectangular:_V};function TV(){let e=[256,256],t=uV,n=dV,r=fV,i=hV,o=pV,a=gV,s=wV,l=Math.random,c=mV,u=[],d=null,h=1/0,f=EV;const p=hV,g={};function m(e){e.width=e.height=1;const t=Math.sqrt(e.getContext("2d").getImageData(0,0,1,1).data.length>>2);e.width=(lV<<5)/t,e.height=cV/t;const n=e.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",n.textBaseline="middle",{context:n,ratio:t}}function v(t,n,r){const i=n.x,o=n.y,a=Math.sqrt(e[0]*e[0]+e[1]*e[1]),c=s(e),u=l()<.5?1:-1;let d,h,f,p=-u;while(d=c(p+=u)){if(h=~~d[0],f=~~d[1],Math.min(Math.abs(h),Math.abs(f))>=a)break;if(n.x=i+h,n.y=o+f,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>e[0]||n.y+n.y1>e[1])&&(!r||!AV(n,t,e[0]))&&(!r||yV(n,r))){const r=n.sprite,i=n.width>>5,o=e[0]>>5,a=n.x-(i<<4),s=127&a,l=32-s,c=n.y1-n.y0;let u,d=(n.y+n.y0)*o+(a>>5);for(let e=0;e<c;e++){u=0;for(let n=0;n<=i;n++)t[d+n]|=u<<l|(n<i?(u=r[e*i+n])>>>s:0);d+=o}return delete n.sprite,!0}}return!1}return g.start=function(){const[s,A]=e,b=m(f()),y=g.board?g.board:xV((e[0]>>5)*e[1]),w=u.length,_=[],x=u.map(function(e,s,l){return e.text=t.call(this,e,s,l),e.font=n.call(this,e,s,l),e.style=p.call(this,e,s,l),e.weight=i.call(this,e,s,l),e.rotate=o.call(this,e,s,l),e.size=~~r.call(this,e,s,l),e.padding=a.call(this,e,s,l),e}).sort(function(e,t){return t.size-e.size});let E=-1,S=g.board?[{x:0,y:0},{x:s,y:A}]:void 0;function C(){const t=Date.now();while(Date.now()-t<h&&++E<w){const t=x[E];t.x=s*(l()+.5)>>1,t.y=A*(l()+.5)>>1,vV(b,t,x,E),t.hasText&&v(y,t,S)&&(c.call(null,"word",{cloud:g,word:t}),_.push(t),S?g.hasImage||bV(S,t):S=[{x:t.x+t.x0,y:t.y+t.y0},{x:t.x+t.x1,y:t.y+t.y1}],t.x-=e[0]>>1,t.y-=e[1]>>1)}g._tags=_,g._bounds=S,E>=w&&(g.stop(),c.call(null,"end",{cloud:g,words:_,bounds:S}))}return d&&clearInterval(d),d=setInterval(C,0),C(),g},g.stop=function(){return d&&(clearInterval(d),d=null),g},g.createMask=t=>{const n=document.createElement("canvas"),[r,i]=e;if(!r||!i)return;const o=r>>5,a=xV((r>>5)*i);n.width=r,n.height=i;const s=n.getContext("2d");s.drawImage(t,0,0,t.width,t.height,0,0,r,i);const l=s.getImageData(0,0,r,i).data;for(let e=0;e<i;e++)for(let t=0;t<r;t++){const n=o*e+(t>>5),i=e*r+t<<2,s=l[i]>=250&&l[i+1]>=250&&l[i+2]>=250,c=s?1<<31-t%32:0;a[n]|=c}g.board=a,g.hasImage=!0},g.timeInterval=function(e){h=null==e?1/0:e},g.words=function(e){u=e},g.size=function(t=[]){e=[+t[0],+t[1]]},g.text=function(e){t=SV(e)},g.font=function(e){n=SV(e)},g.fontWeight=function(e){i=SV(e)},g.rotate=function(e){o=SV(e)},g.canvas=function(e){f=SV(e)},g.spiral=function(e){s=CV[e]||e},g.fontSize=function(e){r=SV(e)},g.padding=function(e){a=SV(e)},g.random=function(e){l=SV(e)},g.on=function(e){c=SV(e)},g}var kV=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(c4){o(c4)}}function s(e){try{l(r["throw"](e))}catch(c4){o(c4)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},OV=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const MV={fontSize:[20,60],font:"Impact",padding:2,rotate:function(){return 30*(~~(6*Math.random())-3)}};function IV(e){return new Promise((t,n)=>{if(e instanceof HTMLImageElement)t(e);else{if("string"===typeof e){const r=new Image;return r.crossOrigin="anonymous",r.src=e,r.onload=()=>t(r),void(r.onerror=()=>{console.error(`'image ${e} load failed !!!'`),n()})}n()}})}function DV(e,t){if("function"===typeof e)return e;if(Array.isArray(e)){const[n,r]=e;if(!t)return()=>(r+n)/2;const[i,o]=t;return o===i?()=>(r+n)/2:({value:e})=>(r-n)/(o-i)*(e-i)+n}return()=>e}const NV=(e,t)=>n=>kV(void 0,void 0,void 0,function*(){const r=Object.assign({},MV,e,{canvas:t.createCanvas}),i=TV();yield aV(i,r).set("fontSize",e=>{const t=n.map(e=>e.value);return DV(e,[T_(t),k_(t)])}).set("font").set("fontStyle").set("fontWeight").set("padding").set("rotate").set("size").set("spiral").set("timeInterval").set("random").set("text").set("on").set("canvas").setAsync("imageMask",IV,i.createMask),i.words([...n]);const o=i.start(),[a,s]=r.size,l=[{x:0,y:0},{x:a,y:s}],{_bounds:c=l,_tags:u,hasImage:d}=o,h=u.map(e=>{var{x:t,y:n,font:r}=e,i=OV(e,["x","y","font"]);return Object.assign(Object.assign({},i),{x:t+a/2,y:n+s/2,fontFamily:r})}),[{x:f,y:p},{x:g,y:m}]=c,v={text:"",value:0,opacity:0,fontSize:0};return h.push(Object.assign(Object.assign({},v),{x:d?0:f,y:d?0:p}),Object.assign(Object.assign({},v),{x:d?a:g,y:d?s:m})),h});function RV(e,t){if(t<0||t>1)throw new Error("alpha must be between 0 and 1.");if(0===e.length)return[];let n=e[0];const r=[];for(const i of e){if(null===i||void 0===i){r.push(i),console.warn("EMA：The value is null or undefined",e);continue}null!==n&&void 0!==n||(n=i);const o=n*t+(1-t)*i;r.push(o),n=o}return r}NV.props={};const LV=e=>{const{field:t="y",alpha:n=.6,as:r=t}=e;return e=>{const i=e.map(e=>e[t]),o=RV(i,n);return e.map((e,t)=>Object.assign(Object.assign({},e),{[r]:o[t]}))}};LV.props={};const BV=.01;function PV(e){const{min:t,max:n}=e;return[[t[0],t[1]],[n[0],n[1]]]}function FV(e,t,n=BV){const[r,i]=e,[o,a]=t;return r>=o[0]-n&&r<=a[0]+n&&i>=o[1]-n&&i<=a[1]+n}function $V(e,t,n=BV){const[r,i]=e;return!(FV(r,t,n)&&FV(i,t,n))}function jV(e,t){const[n,r]=e,[i,o]=t;return n[0]<o[0]&&r[0]>i[0]&&n[1]<o[1]&&r[1]>i[1]}const HV=e=>{const{priority:t}=e;return e=>{const n=[];return t&&e.sort(t),e.forEach(e=>{YN(e);const t=e.getLocalBounds(),r=n.some(e=>jV(PV(t),PV(e.getLocalBounds())));r?KN(e):n.push(e)}),e}};function UV([e,t],[n,r]){return r>e&&t>n}function QV(){const e=new Map,t=t=>e.get(t),n=(t,n)=>e.set(t,n);return[t,n]}function zV(e){const t=e.cloneNode(!0),n=t.getElementById("connector");n&&t.removeChild(n);const{min:r,max:i}=t.getRenderBounds();return t.destroy(),{min:r,max:i}}const WV=e=>{const{maxIterations:t=10,maxError:n=.1,padding:r=1}=e;return e=>{const i=e.length;if(i<=1)return e;const[o,a]=QV(),[s,l]=QV(),[c,u]=QV(),[d,h]=QV();for(const t of e){const{min:e,max:n}=zV(t),[r,i]=e,[o,s]=n;a(t,i),l(t,i),u(t,s-i),h(t,[r,o])}for(let f=0;f<t;f++){e.sort((e,t)=>yD(s(e),s(t)));let t=0;for(let n=0;n<i-1;n++){const i=e[n];let o,a=n+1;while((o=e[a])&&!UV(d(i),d(o)))a+=1;if(o){const e=s(i),n=c(i),a=s(o),u=a-(e+n);if(u<r){const n=(r-u)/2;t=Math.max(t,n),l(i,e-n),l(o,a+n)}}}if(t<n)break}for(const t of e)t.style.y+=s(t)-o(t);return e}},GV=()=>e=>(e.forEach(e=>{YN(e);const t=e.attr("bounds"),n=e.getLocalBounds(),r=$V(PV(n),t);r&&KN(e)}),e);function VV(e){return"object"===typeof e?e:sl(e)}function KV(e){let t=e/255;return t=t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4),t}function YV(e,t,n){return.2126*KV(e)+.7152*KV(t)+.0722*KV(n)}function qV(e,t){if(!e||!t||e===t)return 1;const{r:n,g:r,b:i}=e,{r:o,g:a,b:s}=t,l=YV(n,r,i),c=YV(o,a,s);return(Math.max(l,c)+.05)/(Math.min(l,c)+.05)}function XV(e,t){const n=SL(t,t=>qV(e,VV(t)));return t[n]}const JV=e=>{const{threshold:t=4.5,palette:n=["#000","#fff"]}=e;return e=>(e.forEach(e=>{const r=e.attr("dependentElement").parsedStyle.fill,i=e.parsedStyle.fill,o=qV(i,r);o<t&&e.attr("fill",XV(r,n))}),e)};function ZV(e){var t;const n=e.getAnimations();if(!n||0===n.length)return tR(e);const r=e.cloneNode(!0);r.style.visibility="hidden",n.forEach(e=>{const t=e.effect.getKeyframes();t&&t.length>0&&r.attr(t[t.length-1])}),null===(t=e.parentNode)||void 0===t||t.appendChild(r);const i=tR(r);return r.destroy(),i}const eK=e=>{const{palette:t=["#000","#fff"],threshold:n=2}=e;return e=>(e.forEach(e=>{var r,i;const o=e.attr("dependentElement"),a=null!==(i=null!==(r=e.attributes.fill)&&void 0!==r?r:e.parsedStyle.fill)&&void 0!==i?i:"#fff",s=PV(ZV(e)),l=PV(ZV(o));if($V(s,l,n)){const n=XV(VV(a),t);e.attr("stroke",n)}else e.removeAttribute("stroke")}),e)},tK=(e,t)=>{const[[n,r],[i,o]]=t,[[a,s],[l,c]]=e;let u=0,d=0;return a<n?u=n-a:l>i&&(u=i-l),s<r?d=r-s:c>o&&(d=o-c),[u,d]},nK=(e,t)=>({min:[Math.min(e.min[0],t.min[0]),Math.min(e.min[1],t.min[1])],max:[Math.max(e.max[0],t.max[0]),Math.max(e.max[1],t.max[1])]}),rK=(e={})=>(t,{canvas:n,layout:r})=>{const{bounds:i="view",offsetX:o=0,offsetY:a=0}=e,s=()=>{if("main"===i){const{x:e=0,y:t=0,width:n=0,height:i=0,marginLeft:s=0,marginRight:l=0,marginTop:c=0,marginBottom:u=0,paddingLeft:d=0,paddingRight:h=0,paddingTop:f=0,paddingBottom:p=0}=r;return[[e+s+d+o,t+c+f+a],[e+n-l-h-o,t+i-u-p-a]]}{const{x:e=0,y:t=0,width:n=0,height:i=0}=r;return[[e+o,t+a],[e+n-o,t+i-a]]}},l=s();return t.forEach(e=>{YN(e);const{max:t,min:n}=nK(e.getRenderBounds(),e.getBounds()),[r,i]=t,[o,a]=n,s=tK([[o,a],[r,i]],l);e.style.connector&&e.style.connectorPoints&&(e.style.connectorPoints[0][0]-=s[0],e.style.connectorPoints[0][1]-=s[1]),e.style.x+=s[0],e.style.y+=s[1]}),t};function iK(){return{"data.fetch":PG,"data.inline":FG,"data.sortBy":jG,"data.sort":HG,"data.filter":QG,"data.pick":WG,"data.rename":VG,"data.fold":YG,"data.slice":qG,"data.custom":XG,"data.map":JG,"data.join":eV,"data.kde":rV,"data.log":iV,"data.wordCloud":NV,"data.ema":LV,"transform.stackY":jz,"transform.binX":TW,"transform.bin":CW,"transform.dodgeX":OW,"transform.jitter":DW,"transform.jitterX":NW,"transform.jitterY":RW,"transform.symmetryY":BW,"transform.diffY":PW,"transform.stackEnter":FW,"transform.normalizeY":HW,"transform.select":VW,"transform.selectX":YW,"transform.selectY":XW,"transform.groupX":eG,"transform.groupY":tG,"transform.groupColor":nG,"transform.group":ZW,"transform.sortX":sG,"transform.sortY":lG,"transform.sortColor":cG,"transform.flexX":hG,"transform.pack":pG,"transform.sample":AG,"transform.filter":wG,"coordinate.cartesian":l,"coordinate.polar":d,"coordinate.transpose":h,"coordinate.theta":p,"coordinate.parallel":g,"coordinate.fisheye":m,"coordinate.radial":A,"coordinate.radar":b,"coordinate.helix":y,"encode.constant":w,"encode.field":_,"encode.transform":x,"encode.column":E,"mark.interval":kv,"mark.rect":Mv,"mark.line":wA,"mark.point":Ob,"mark.text":Fy,"mark.cell":Hy,"mark.area":tw,"mark.link":gw,"mark.image":bw,"mark.polygon":Tw,"mark.box":Lw,"mark.vector":Pw,"mark.lineX":Ww,"mark.lineY":Kw,"mark.connector":t_,"mark.range":o_,"mark.rangeX":l_,"mark.rangeY":d_,"mark.path":v_,"mark.shape":__,"mark.density":C_,"mark.heatmap":U_,"mark.wordCloud":V_,"palette.category10":K_,"palette.category20":Y_,"scale.linear":q_,"scale.ordinal":X_,"scale.band":J_,"scale.identity":mx,"scale.point":Ax,"scale.time":xE,"scale.log":ME,"scale.pow":LE,"scale.sqrt":PE,"scale.threshold":$E,"scale.quantile":QE,"scale.quantize":WE,"scale.sequential":ZE,"scale.constant":eS,"theme.classic":oS,"theme.classicDark":cS,"theme.academy":hS,"theme.light":iS,"theme.dark":lS,"component.axisX":vO,"component.axisY":AO,"component.legendCategory":EM,"component.legendContinuous":II,"component.legends":DI,"component.title":BI,"component.sliderX":KD,"component.sliderY":YD,"component.scrollbarX":ZD,"component.scrollbarY":eN,"animation.scaleInX":tN,"animation.scaleOutX":nN,"animation.scaleInY":rN,"animation.scaleOutY":iN,"animation.waveIn":oN,"animation.fadeIn":aN,"animation.fadeOut":sN,"animation.zoomIn":lN,"animation.zoomOut":cN,"animation.pathIn":uN,"animation.morphing":ON,"animation.growInX":MN,"animation.growInY":IN,"interaction.elementHighlight":NR,"interaction.elementHighlightByX":RR,"interaction.elementHighlightByColor":LR,"interaction.elementSelect":FR,"interaction.elementSelectByX":$R,"interaction.elementSelectByColor":jR,"interaction.fisheye":QR,"interaction.chartIndex":KR,"interaction.tooltip":oH,"interaction.legendFilter":SH,"interaction.legendHighlight":CH,"interaction.brushHighlight":FH,"interaction.brushXHighlight":jH,"interaction.brushYHighlight":UH,"interaction.brushAxisHighlight":tU,"interaction.brushFilter":aU,"interaction.brushXFilter":sU,"interaction.brushYFilter":lU,"interaction.sliderFilter":pU,"interaction.sliderWheel":gU,"interaction.scrollbarFilter":vU,"interaction.poptip":_U,"interaction.treemapDrillDown":IQ,"interaction.elementPointMove":WQ,"composition.spaceLayer":VQ,"composition.spaceFlex":YQ,"composition.facetRect":uz,"composition.repeatMatrix":vz,"composition.facetCircle":Ez,"composition.timingKeyframe":Tz,"labelTransform.overlapHide":HV,"labelTransform.overlapDodgeY":WV,"labelTransform.overflowHide":GV,"labelTransform.contrastReverse":JV,"labelTransform.overflowStroke":eK,"labelTransform.exceedAdjust":rK}}var oK=e=>e;function aK(e,t){e&&lK.hasOwnProperty(e.type)&&lK[e.type](e,t)}var sK={Feature:function(e,t){aK(e.geometry,t)},FeatureCollection:function(e,t){var n=e.features,r=-1,i=n.length;while(++r<i)aK(n[r].geometry,t)}},lK={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){var n=e.coordinates,r=-1,i=n.length;while(++r<i)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){cK(e.coordinates,t,0)},MultiLineString:function(e,t){var n=e.coordinates,r=-1,i=n.length;while(++r<i)cK(n[r],t,0)},Polygon:function(e,t){uK(e.coordinates,t)},MultiPolygon:function(e,t){var n=e.coordinates,r=-1,i=n.length;while(++r<i)uK(n[r],t)},GeometryCollection:function(e,t){var n=e.geometries,r=-1,i=n.length;while(++r<i)aK(n[r],t)}};function cK(e,t,n){var r,i=-1,o=e.length-n;t.lineStart();while(++i<o)r=e[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function uK(e,t){var n=-1,r=e.length;t.polygonStart();while(++n<r)cK(e[n],t,1);t.polygonEnd()}function dK(e,t){e&&sK.hasOwnProperty(e.type)?sK[e.type](e,t):aK(e,t)}class hK{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials;let n=0;for(let r=0;r<this._n&&r<32;r++){const i=t[r],o=e+i,a=Math.abs(e)<Math.abs(i)?e-(o-i):i-(o-e);a&&(t[n++]=a),e=o}return t[n]=e,this._n=n+1,this}valueOf(){const e=this._partials;let t,n,r,i=this._n,o=0;if(i>0){o=e[--i];while(i>0)if(t=o,n=e[--i],o=t+n,r=n-(o-t),r)break;i>0&&(r<0&&e[i-1]<0||r>0&&e[i-1]>0)&&(n=2*r,t=o+n,n==t-o&&(o=t))}return o}}var fK=1e-6,pK=1e-12,gK=Math.PI,mK=gK/2,vK=gK/4,AK=2*gK,bK=180/gK,yK=gK/180,wK=Math.abs,_K=Math.atan,xK=Math.atan2,EK=Math.cos,SK=Math.ceil,CK=Math.exp,TK=(Math.floor,Math.hypot,Math.log),kK=Math.pow,OK=Math.sin,MK=Math.sign||function(e){return e>0?1:e<0?-1:0},IK=Math.sqrt,DK=Math.tan;function NK(e){return e>1?0:e<-1?gK:Math.acos(e)}function RK(e){return e>1?mK:e<-1?-mK:Math.asin(e)}function LK(){}var BK,PK,FK,$K,jK=new hK,HK=new hK,UK={point:LK,lineStart:LK,lineEnd:LK,polygonStart:function(){UK.lineStart=QK,UK.lineEnd=GK},polygonEnd:function(){UK.lineStart=UK.lineEnd=UK.point=LK,jK.add(wK(HK)),HK=new hK},result:function(){var e=jK/2;return jK=new hK,e}};function QK(){UK.point=zK}function zK(e,t){UK.point=WK,BK=FK=e,PK=$K=t}function WK(e,t){HK.add($K*e-FK*t),FK=e,$K=t}function GK(){WK(BK,PK)}var VK=UK,KK=1/0,YK=KK,qK=-KK,XK=qK,JK={point:ZK,lineStart:LK,lineEnd:LK,polygonStart:LK,polygonEnd:LK,result:function(){var e=[[KK,YK],[qK,XK]];return qK=XK=-(YK=KK=1/0),e}};function ZK(e,t){e<KK&&(KK=e),e>qK&&(qK=e),t<YK&&(YK=t),t>XK&&(XK=t)}var eY,tY,nY,rY,iY=JK,oY=0,aY=0,sY=0,lY=0,cY=0,uY=0,dY=0,hY=0,fY=0,pY={point:gY,lineStart:mY,lineEnd:bY,polygonStart:function(){pY.lineStart=yY,pY.lineEnd=wY},polygonEnd:function(){pY.point=gY,pY.lineStart=mY,pY.lineEnd=bY},result:function(){var e=fY?[dY/fY,hY/fY]:uY?[lY/uY,cY/uY]:sY?[oY/sY,aY/sY]:[NaN,NaN];return oY=aY=sY=lY=cY=uY=dY=hY=fY=0,e}};function gY(e,t){oY+=e,aY+=t,++sY}function mY(){pY.point=vY}function vY(e,t){pY.point=AY,gY(nY=e,rY=t)}function AY(e,t){var n=e-nY,r=t-rY,i=IK(n*n+r*r);lY+=i*(nY+e)/2,cY+=i*(rY+t)/2,uY+=i,gY(nY=e,rY=t)}function bY(){pY.point=gY}function yY(){pY.point=_Y}function wY(){xY(eY,tY)}function _Y(e,t){pY.point=xY,gY(eY=nY=e,tY=rY=t)}function xY(e,t){var n=e-nY,r=t-rY,i=IK(n*n+r*r);lY+=i*(nY+e)/2,cY+=i*(rY+t)/2,uY+=i,i=rY*e-nY*t,dY+=i*(nY+e),hY+=i*(rY+t),fY+=3*i,gY(nY=e,rY=t)}var EY=pY;function SY(e){this._context=e}SY.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,AK);break}},result:LK};var CY,TY,kY,OY,MY,IY=new hK,DY={point:LK,lineStart:function(){DY.point=NY},lineEnd:function(){CY&&RY(TY,kY),DY.point=LK},polygonStart:function(){CY=!0},polygonEnd:function(){CY=null},result:function(){var e=+IY;return IY=new hK,e}};function NY(e,t){DY.point=RY,TY=OY=e,kY=MY=t}function RY(e,t){OY-=e,MY-=t,IY.add(IK(OY*OY+MY*MY)),OY=e,MY=t}var LY=DY;let BY,PY,FY,$Y;class jY{constructor(e){this._append=null==e?HY:UY(e),this._radius=4.5,this._=""}pointRadius(e){return this._radius=+e,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){0===this._line&&(this._+="Z"),this._point=NaN}point(e,t){switch(this._point){case 0:this._append`M${e},${t}`,this._point=1;break;case 1:this._append`L${e},${t}`;break;default:if(this._append`M${e},${t}`,this._radius!==FY||this._append!==PY){const e=this._radius,t=this._;this._="",this._append`m0,${e}a${e},${e} 0 1,1 0,${-2*e}a${e},${e} 0 1,1 0,${2*e}z`,FY=e,PY=this._append,$Y=this._,this._=t}this._+=$Y;break}}result(){const e=this._;return this._="",e.length?e:null}}function HY(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function UY(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return HY;if(t!==BY){const e=10**t;BY=t,PY=function(t){let n=1;this._+=t[0];for(const r=t.length;n<r;++n)this._+=Math.round(arguments[n]*e)/e+t[n]}}return PY}function QY(e,t){let n,r,i=3,o=4.5;function a(e){return e&&("function"===typeof o&&r.pointRadius(+o.apply(this,arguments)),dK(e,n(r))),r.result()}return a.area=function(e){return dK(e,n(VK)),VK.result()},a.measure=function(e){return dK(e,n(LY)),LY.result()},a.bounds=function(e){return dK(e,n(iY)),iY.result()},a.centroid=function(e){return dK(e,n(EY)),EY.result()},a.projection=function(t){return arguments.length?(n=null==t?(e=null,oK):(e=t).stream,a):e},a.context=function(e){return arguments.length?(r=null==e?(t=null,new jY(i)):new SY(t=e),"function"!==typeof o&&r.pointRadius(o),a):t},a.pointRadius=function(e){return arguments.length?(o="function"===typeof e?e:(r.pointRadius(+e),+e),a):o},a.digits=function(e){if(!arguments.length)return i;if(null==e)i=null;else{const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);i=t}return null===t&&(r=new jY(i)),a},a.projection(e).digits(i).context(t)}function zY(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);while(++r<i)o[r]=e+r*n;return o}function WY(e,t,n){var r=zY(e,t-fK,n).concat(t);return function(e){return r.map(function(t){return[e,t]})}}function GY(e,t,n){var r=zY(e,t-fK,n).concat(t);return function(e){return r.map(function(t){return[t,e]})}}function VY(){var e,t,n,r,i,o,a,s,l,c,u,d,h=10,f=h,p=90,g=360,m=2.5;function v(){return{type:"MultiLineString",coordinates:A()}}function A(){return zY(SK(r/p)*p,n,p).map(u).concat(zY(SK(s/g)*g,a,g).map(d)).concat(zY(SK(t/h)*h,e,h).filter(function(e){return wK(e%p)>fK}).map(l)).concat(zY(SK(o/f)*f,i,f).filter(function(e){return wK(e%g)>fK}).map(c))}return v.lines=function(){return A().map(function(e){return{type:"LineString",coordinates:e}})},v.outline=function(){return{type:"Polygon",coordinates:[u(r).concat(d(a).slice(1),u(n).reverse().slice(1),d(s).reverse().slice(1))]}},v.extent=function(e){return arguments.length?v.extentMajor(e).extentMinor(e):v.extentMinor()},v.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),s>a&&(e=s,s=a,a=e),v.precision(m)):[[r,s],[n,a]]},v.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],o=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),o>i&&(n=o,o=i,i=n),v.precision(m)):[[t,o],[e,i]]},v.step=function(e){return arguments.length?v.stepMajor(e).stepMinor(e):v.stepMinor()},v.stepMajor=function(e){return arguments.length?(p=+e[0],g=+e[1],v):[p,g]},v.stepMinor=function(e){return arguments.length?(h=+e[0],f=+e[1],v):[h,f]},v.precision=function(h){return arguments.length?(m=+h,l=WY(o,i,90),c=GY(t,e,m),u=WY(s,a,90),d=GY(r,n,m),v):m},v.extentMajor([[-180,-90+fK],[180,90-fK]]).extentMinor([[-180,-80-fK],[180,80+fK]])}function KY(){return VY()()}function YY(){var e,t=[];return{point:function(t,n,r){e.push([t,n,r])},lineStart:function(){t.push(e=[])},lineEnd:LK,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function qY(e,t){return wK(e[0]-t[0])<fK&&wK(e[1]-t[1])<fK}function XY(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function JY(e,t,n,r,i){var o,a,s=[],l=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n,r=e[0],a=e[t];if(qY(r,a)){if(!r[2]&&!a[2]){for(i.lineStart(),o=0;o<t;++o)i.point((r=e[o])[0],r[1]);return void i.lineEnd()}a[0]+=2*fK}s.push(n=new XY(r,e,null,!0)),l.push(n.o=new XY(r,null,n,!1)),s.push(n=new XY(a,e,null,!1)),l.push(n.o=new XY(a,null,n,!0))}}),s.length){for(l.sort(t),ZY(s),ZY(l),o=0,a=l.length;o<a;++o)l[o].e=n=!n;var c,u,d=s[0];while(1){var h=d,f=!0;while(h.v)if((h=h.n)===d)return;c=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(f)for(o=0,a=c.length;o<a;++o)i.point((u=c[o])[0],u[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(f)for(c=h.p.z,o=c.length-1;o>=0;--o)i.point((u=c[o])[0],u[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,c=h.z,f=!f}while(!h.v);i.lineEnd()}}}function ZY(e){if(t=e.length){var t,n,r=0,i=e[0];while(++r<t)i.n=n=e[r],n.p=i,i=n;i.n=n=e[0],n.p=i}}function eq(e){return[xK(e[1],e[0]),RK(e[2])]}function tq(e){var t=e[0],n=e[1],r=EK(n);return[r*EK(t),r*OK(t),OK(n)]}function nq(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function rq(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function iq(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function oq(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function aq(e){var t=IK(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function sq(e){return wK(e[0])<=gK?e[0]:MK(e[0])*((wK(e[0])+gK)%AK-gK)}function lq(e,t){var n=sq(t),r=t[1],i=OK(r),o=[OK(n),-EK(n),0],a=0,s=0,l=new hK;1===i?r=mK+fK:-1===i&&(r=-mK-fK);for(var c=0,u=e.length;c<u;++c)if(h=(d=e[c]).length)for(var d,h,f=d[h-1],p=sq(f),g=f[1]/2+vK,m=OK(g),v=EK(g),A=0;A<h;++A,p=y,m=_,v=x,f=b){var b=d[A],y=sq(b),w=b[1]/2+vK,_=OK(w),x=EK(w),E=y-p,S=E>=0?1:-1,C=S*E,T=C>gK,k=m*_;if(l.add(xK(k*S*OK(C),v*x+k*EK(C))),a+=T?E+S*AK:E,T^p>=n^y>=n){var O=rq(tq(f),tq(b));aq(O);var M=rq(o,O);aq(M);var I=(T^E>=0?-1:1)*RK(M[2]);(r>I||r===I&&(O[0]||O[1]))&&(s+=T^E>=0?1:-1)}}return(a<-fK||a<fK&&l<-pK)^1&s}function*cq(e){for(const t of e)yield*t}function uq(e){return Array.from(cq(e))}function dq(e,t,n,r){return function(i){var o,a,s,l=t(i),c=YY(),u=t(c),d=!1,h={point:f,lineStart:g,lineEnd:m,polygonStart:function(){h.point=v,h.lineStart=A,h.lineEnd=b,a=[],o=[]},polygonEnd:function(){h.point=f,h.lineStart=g,h.lineEnd=m,a=uq(a);var e=lq(o,r);a.length?(d||(i.polygonStart(),d=!0),JY(a,fq,e,n,i)):e&&(d||(i.polygonStart(),d=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),d&&(i.polygonEnd(),d=!1),a=o=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function f(t,n){e(t,n)&&i.point(t,n)}function p(e,t){l.point(e,t)}function g(){h.point=p,l.lineStart()}function m(){h.point=f,l.lineEnd()}function v(e,t){s.push([e,t]),u.point(e,t)}function A(){u.lineStart(),s=[]}function b(){v(s[0][0],s[0][1]),u.lineEnd();var e,t,n,r,l=u.clean(),h=c.result(),f=h.length;if(s.pop(),o.push(s),s=null,f)if(1&l){if(n=h[0],(t=n.length-1)>0){for(d||(i.polygonStart(),d=!0),i.lineStart(),e=0;e<t;++e)i.point((r=n[e])[0],r[1]);i.lineEnd()}}else f>1&&2&l&&h.push(h.pop().concat(h.shift())),a.push(h.filter(hq))}return h}}function hq(e){return e.length>1}function fq(e,t){return((e=e.x)[0]<0?e[1]-mK-fK:mK-e[1])-((t=t.x)[0]<0?t[1]-mK-fK:mK-t[1])}var pq=dq(function(){return!0},gq,vq,[-gK,-mK]);function gq(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s=o>0?gK:-gK,l=wK(o-n);wK(l-gK)<fK?(e.point(n,r=(r+a)/2>0?mK:-mK),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(o,r),t=0):i!==s&&l>=gK&&(wK(n-i)<fK&&(n-=i*fK),wK(o-s)<fK&&(o-=s*fK),r=mq(n,r,o,a),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=o,r=a),i=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}function mq(e,t,n,r){var i,o,a=OK(e-n);return wK(a)>fK?_K((OK(t)*(o=EK(r))*OK(n)-OK(r)*(i=EK(t))*OK(e))/(i*o*a)):(t+r)/2}function vq(e,t,n,r){var i;if(null==e)i=n*mK,r.point(-gK,i),r.point(0,i),r.point(gK,i),r.point(gK,0),r.point(gK,-i),r.point(0,-i),r.point(-gK,-i),r.point(-gK,0),r.point(-gK,i);else if(wK(e[0]-t[0])>fK){var o=e[0]<t[0]?gK:-gK;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(t[0],t[1])}function Aq(e,t,n,r,i,o){if(n){var a=EK(t),s=OK(t),l=r*n;null==i?(i=t+r*AK,o=t-l/2):(i=bq(a,i),o=bq(a,o),(r>0?i<o:i>o)&&(i+=r*AK));for(var c,u=i;r>0?u>o:u<o;u-=l)c=eq([a,-s*EK(u),-s*OK(u)]),e.point(c[0],c[1])}}function bq(e,t){t=tq(t),t[0]-=e,aq(t);var n=NK(-t[1]);return((-t[2]<0?-n:n)+AK-fK)%AK}function yq(e){var t=EK(e),n=2*yK,r=t>0,i=wK(t)>fK;function o(t,r,i,o){Aq(o,e,n,i,t,r)}function a(e,n){return EK(e)*EK(n)>t}function s(e){var t,n,o,s,u;return{lineStart:function(){s=o=!1,u=1},point:function(d,h){var f,p=[d,h],g=a(d,h),m=r?g?0:c(d,h):g?c(d+(d<0?gK:-gK),h):0;if(!t&&(s=o=g)&&e.lineStart(),g!==o&&(f=l(t,p),(!f||qY(t,f)||qY(p,f))&&(p[2]=1)),g!==o)u=0,g?(e.lineStart(),f=l(p,t),e.point(f[0],f[1])):(f=l(t,p),e.point(f[0],f[1],2),e.lineEnd()),t=f;else if(i&&t&&r^g){var v;m&n||!(v=l(p,t,!0))||(u=0,r?(e.lineStart(),e.point(v[0][0],v[0][1]),e.point(v[1][0],v[1][1]),e.lineEnd()):(e.point(v[1][0],v[1][1]),e.lineEnd(),e.lineStart(),e.point(v[0][0],v[0][1],3)))}!g||t&&qY(t,p)||e.point(p[0],p[1]),t=p,o=g,n=m},lineEnd:function(){o&&e.lineEnd(),t=null},clean:function(){return u|(s&&o)<<1}}}function l(e,n,r){var i=tq(e),o=tq(n),a=[1,0,0],s=rq(i,o),l=nq(s,s),c=s[0],u=l-c*c;if(!u)return!r&&e;var d=t*l/u,h=-t*c/u,f=rq(a,s),p=oq(a,d),g=oq(s,h);iq(p,g);var m=f,v=nq(p,m),A=nq(m,m),b=v*v-A*(nq(p,p)-1);if(!(b<0)){var y=IK(b),w=oq(m,(-v-y)/A);if(iq(w,p),w=eq(w),!r)return w;var _,x=e[0],E=n[0],S=e[1],C=n[1];E<x&&(_=x,x=E,E=_);var T=E-x,k=wK(T-gK)<fK,O=k||T<fK;if(!k&&C<S&&(_=S,S=C,C=_),O?k?S+C>0^w[1]<(wK(w[0]-x)<fK?S:C):S<=w[1]&&w[1]<=C:T>gK^(x<=w[0]&&w[0]<=E)){var M=oq(m,(-v+y)/A);return iq(M,p),[w,eq(M)]}}}function c(t,n){var i=r?e:gK-e,o=0;return t<-i?o|=1:t>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return dq(a,s,o,r?[0,-e]:[-gK,e-gK])}function wq(e,t,n,r,i,o){var a,s=e[0],l=e[1],c=t[0],u=t[1],d=0,h=1,f=c-s,p=u-l;if(a=n-s,f||!(a>0)){if(a/=f,f<0){if(a<d)return;a<h&&(h=a)}else if(f>0){if(a>h)return;a>d&&(d=a)}if(a=i-s,f||!(a<0)){if(a/=f,f<0){if(a>h)return;a>d&&(d=a)}else if(f>0){if(a<d)return;a<h&&(h=a)}if(a=r-l,p||!(a>0)){if(a/=p,p<0){if(a<d)return;a<h&&(h=a)}else if(p>0){if(a>h)return;a>d&&(d=a)}if(a=o-l,p||!(a<0)){if(a/=p,p<0){if(a>h)return;a>d&&(d=a)}else if(p>0){if(a<d)return;a<h&&(h=a)}return d>0&&(e[0]=s+d*f,e[1]=l+d*p),h<1&&(t[0]=s+h*f,t[1]=l+h*p),!0}}}}}var _q=1e9,xq=-_q;function Eq(e,t,n,r){function i(i,o){return e<=i&&i<=n&&t<=o&&o<=r}function o(i,o,s,c){var u=0,d=0;if(null==i||(u=a(i,s))!==(d=a(o,s))||l(i,o)<0^s>0)do{c.point(0===u||3===u?e:n,u>1?r:t)}while((u=(u+s+4)%4)!==d);else c.point(o[0],o[1])}function a(r,i){return wK(r[0]-e)<fK?i>0?0:3:wK(r[0]-n)<fK?i>0?2:1:wK(r[1]-t)<fK?i>0?1:0:i>0?3:2}function s(e,t){return l(e.x,t.x)}function l(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){var l,c,u,d,h,f,p,g,m,v,A,b=a,y=YY(),w={point:_,lineStart:C,lineEnd:T,polygonStart:E,polygonEnd:S};function _(e,t){i(e,t)&&b.point(e,t)}function x(){for(var t=0,n=0,i=c.length;n<i;++n)for(var o,a,s=c[n],l=1,u=s.length,d=s[0],h=d[0],f=d[1];l<u;++l)o=h,a=f,d=s[l],h=d[0],f=d[1],a<=r?f>r&&(h-o)*(r-a)>(f-a)*(e-o)&&++t:f<=r&&(h-o)*(r-a)<(f-a)*(e-o)&&--t;return t}function E(){b=y,l=[],c=[],A=!0}function S(){var e=x(),t=A&&e,n=(l=uq(l)).length;(t||n)&&(a.polygonStart(),t&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),n&&JY(l,s,e,o,a),a.polygonEnd()),b=a,l=c=u=null}function C(){w.point=k,c&&c.push(u=[]),v=!0,m=!1,p=g=NaN}function T(){l&&(k(d,h),f&&m&&y.rejoin(),l.push(y.result())),w.point=_,m&&b.lineEnd()}function k(o,a){var s=i(o,a);if(c&&u.push([o,a]),v)d=o,h=a,f=s,v=!1,s&&(b.lineStart(),b.point(o,a));else if(s&&m)b.point(o,a);else{var l=[p=Math.max(xq,Math.min(_q,p)),g=Math.max(xq,Math.min(_q,g))],y=[o=Math.max(xq,Math.min(_q,o)),a=Math.max(xq,Math.min(_q,a))];wq(l,y,e,t,n,r)?(m||(b.lineStart(),b.point(l[0],l[1])),b.point(y[0],y[1]),s||b.lineEnd(),A=!1):s&&(b.lineStart(),b.point(o,a),A=!1)}p=o,g=a,m=s}return w}}function Sq(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return n=t.invert(n,r),n&&e.invert(n[0],n[1])}),n}function Cq(e,t){return wK(e)>gK&&(e-=Math.round(e/AK)*AK),[e,t]}function Tq(e,t,n){return(e%=AK)?t||n?Sq(Oq(e),Mq(t,n)):Oq(e):t||n?Mq(t,n):Cq}function kq(e){return function(t,n){return t+=e,wK(t)>gK&&(t-=Math.round(t/AK)*AK),[t,n]}}function Oq(e){var t=kq(e);return t.invert=kq(-e),t}function Mq(e,t){var n=EK(e),r=OK(e),i=EK(t),o=OK(t);function a(e,t){var a=EK(t),s=EK(e)*a,l=OK(e)*a,c=OK(t),u=c*n+s*r;return[xK(l*i-u*o,s*n-c*r),RK(u*i+l*o)]}return a.invert=function(e,t){var a=EK(t),s=EK(e)*a,l=OK(e)*a,c=OK(t),u=c*i-l*o;return[xK(l*i+c*o,s*n+u*r),RK(u*n-s*r)]},a}function Iq(e){function t(t){return t=e(t[0]*yK,t[1]*yK),t[0]*=bK,t[1]*=bK,t}return e=Tq(e[0]*yK,e[1]*yK,e.length>2?e[2]*yK:0),t.invert=function(t){return t=e.invert(t[0]*yK,t[1]*yK),t[0]*=bK,t[1]*=bK,t},t}function Dq(e){return function(t){var n=new Nq;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Nq(){}function Rq(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),dK(n,e.stream(iY)),t(iY.result()),null!=r&&e.clipExtent(r),e}function Lq(e,t,n){return Rq(e,function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+t[0][0]+(r-o*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(i-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([a,s])},n)}function Bq(e,t,n){return Lq(e,[[0,0],t],n)}function Pq(e,t,n){return Rq(e,function(n){var r=+t,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];e.scale(150*i).translate([o,a])},n)}function Fq(e,t,n){return Rq(e,function(n){var r=+t,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([o,a])},n)}Cq.invert=Cq,Nq.prototype={constructor:Nq,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var $q=16,jq=EK(30*yK);function Hq(e,t){return+t?Qq(e,t):Uq(e)}function Uq(e){return Dq({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function Qq(e,t){function n(r,i,o,a,s,l,c,u,d,h,f,p,g,m){var v=c-r,A=u-i,b=v*v+A*A;if(b>4*t&&g--){var y=a+h,w=s+f,_=l+p,x=IK(y*y+w*w+_*_),E=RK(_/=x),S=wK(wK(_)-1)<fK||wK(o-d)<fK?(o+d)/2:xK(w,y),C=e(S,E),T=C[0],k=C[1],O=T-r,M=k-i,I=A*O-v*M;(I*I/b>t||wK((v*O+A*M)/b-.5)>.3||a*h+s*f+l*p<jq)&&(n(r,i,o,a,s,l,T,k,S,y/=x,w/=x,_,g,m),m.point(T,k),n(T,k,S,y,w,_,c,u,d,h,f,p,g,m))}}return function(t){var r,i,o,a,s,l,c,u,d,h,f,p,g={point:m,lineStart:v,lineEnd:b,polygonStart:function(){t.polygonStart(),g.lineStart=y},polygonEnd:function(){t.polygonEnd(),g.lineStart=v}};function m(n,r){n=e(n,r),t.point(n[0],n[1])}function v(){u=NaN,g.point=A,t.lineStart()}function A(r,i){var o=tq([r,i]),a=e(r,i);n(u,d,c,h,f,p,u=a[0],d=a[1],c=r,h=o[0],f=o[1],p=o[2],$q,t),t.point(u,d)}function b(){g.point=m,t.lineEnd()}function y(){v(),g.point=w,g.lineEnd=_}function w(e,t){A(r=e,t),i=u,o=d,a=h,s=f,l=p,g.point=A}function _(){n(u,d,c,h,f,p,i,o,r,a,s,l,$q,t),g.lineEnd=b,b()}return g}}var zq=Dq({point:function(e,t){this.stream.point(e*yK,t*yK)}});function Wq(e){return Dq({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function Gq(e,t,n,r,i){function o(o,a){return o*=r,a*=i,[t+e*o,n-e*a]}return o.invert=function(o,a){return[(o-t)/e*r,(n-a)/e*i]},o}function Vq(e,t,n,r,i,o){if(!o)return Gq(e,t,n,r,i);var a=EK(o),s=OK(o),l=a*e,c=s*e,u=a/e,d=s/e,h=(s*n-a*t)/e,f=(s*t+a*n)/e;function p(e,o){return e*=r,o*=i,[l*e-c*o+t,n-c*e-l*o]}return p.invert=function(e,t){return[r*(u*e-d*t+h),i*(f-d*e-u*t)]},p}function Kq(e){return Yq(function(){return e})()}function Yq(e){var t,n,r,i,o,a,s,l,c,u,d=150,h=480,f=250,p=0,g=0,m=0,v=0,A=0,b=0,y=1,w=1,_=null,x=pq,E=null,S=oK,C=.5;function T(e){return l(e[0]*yK,e[1]*yK)}function k(e){return e=l.invert(e[0],e[1]),e&&[e[0]*bK,e[1]*bK]}function O(){var e=Vq(d,0,0,y,w,b).apply(null,t(p,g)),r=Vq(d,h-e[0],f-e[1],y,w,b);return n=Tq(m,v,A),s=Sq(t,r),l=Sq(n,s),a=Hq(s,C),M()}function M(){return c=u=null,T}return T.stream=function(e){return c&&u===e?c:c=zq(Wq(n)(x(a(S(u=e)))))},T.preclip=function(e){return arguments.length?(x=e,_=void 0,M()):x},T.postclip=function(e){return arguments.length?(S=e,E=r=i=o=null,M()):S},T.clipAngle=function(e){return arguments.length?(x=+e?yq(_=e*yK):(_=null,pq),M()):_*bK},T.clipExtent=function(e){return arguments.length?(S=null==e?(E=r=i=o=null,oK):Eq(E=+e[0][0],r=+e[0][1],i=+e[1][0],o=+e[1][1]),M()):null==E?null:[[E,r],[i,o]]},T.scale=function(e){return arguments.length?(d=+e,O()):d},T.translate=function(e){return arguments.length?(h=+e[0],f=+e[1],O()):[h,f]},T.center=function(e){return arguments.length?(p=e[0]%360*yK,g=e[1]%360*yK,O()):[p*bK,g*bK]},T.rotate=function(e){return arguments.length?(m=e[0]%360*yK,v=e[1]%360*yK,A=e.length>2?e[2]%360*yK:0,O()):[m*bK,v*bK,A*bK]},T.angle=function(e){return arguments.length?(b=e%360*yK,O()):b*bK},T.reflectX=function(e){return arguments.length?(y=e?-1:1,O()):y<0},T.reflectY=function(e){return arguments.length?(w=e?-1:1,O()):w<0},T.precision=function(e){return arguments.length?(a=Hq(s,C=e*e),M()):IK(C)},T.fitExtent=function(e,t){return Lq(T,e,t)},T.fitSize=function(e,t){return Bq(T,e,t)},T.fitWidth=function(e,t){return Pq(T,e,t)},T.fitHeight=function(e,t){return Fq(T,e,t)},function(){return t=e.apply(this,arguments),T.invert=t.invert&&k,O()}}function qq(e){var t=0,n=gK/3,r=Yq(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*yK,n=e[1]*yK):[t*bK,n*bK]},i}function Xq(e){var t=EK(e);function n(e,n){return[e*t,OK(n)/t]}return n.invert=function(e,n){return[e/t,RK(n*t)]},n}function Jq(e,t){var n=OK(e),r=(n+OK(t))/2;if(wK(r)<fK)return Xq(e);var i=1+n*(2*r-n),o=IK(i)/r;function a(e,t){var n=IK(i-2*r*OK(t))/r;return[n*OK(e*=r),o-n*EK(e)]}return a.invert=function(e,t){var n=o-t,a=xK(e,wK(n))*MK(n);return n*r<0&&(a-=gK*MK(e)*MK(n)),[a/r,RK((i-(e*e+n*n)*r*r)/(2*r))]},a}function Zq(){return qq(Jq).scale(155.424).center([0,33.6442])}function eX(){return Zq().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function tX(e){var t=e.length;return{point:function(n,r){var i=-1;while(++i<t)e[i].point(n,r)},sphere:function(){var n=-1;while(++n<t)e[n].sphere()},lineStart:function(){var n=-1;while(++n<t)e[n].lineStart()},lineEnd:function(){var n=-1;while(++n<t)e[n].lineEnd()},polygonStart:function(){var n=-1;while(++n<t)e[n].polygonStart()},polygonEnd:function(){var n=-1;while(++n<t)e[n].polygonEnd()}}}function nX(){var e,t,n,r,i,o,a=eX(),s=Zq().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=Zq().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(e,t){o=[e,t]}};function u(e){var t=e[0],a=e[1];return o=null,n.point(t,a),o||(r.point(t,a),o)||(i.point(t,a),o)}function d(){return e=t=null,u}return u.invert=function(e){var t=a.scale(),n=a.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?l:a).invert(e)},u.stream=function(n){return e&&t===n?e:e=tX([a.stream(t=n),s.stream(n),l.stream(n)])},u.precision=function(e){return arguments.length?(a.precision(e),s.precision(e),l.precision(e),d()):a.precision()},u.scale=function(e){return arguments.length?(a.scale(e),s.scale(.35*e),l.scale(e),u.translate(a.translate())):a.scale()},u.translate=function(e){if(!arguments.length)return a.translate();var t=a.scale(),o=+e[0],u=+e[1];return n=a.translate(e).clipExtent([[o-.455*t,u-.238*t],[o+.455*t,u+.238*t]]).stream(c),r=s.translate([o-.307*t,u+.201*t]).clipExtent([[o-.425*t+fK,u+.12*t+fK],[o-.214*t-fK,u+.234*t-fK]]).stream(c),i=l.translate([o-.205*t,u+.212*t]).clipExtent([[o-.214*t+fK,u+.166*t+fK],[o-.115*t-fK,u+.234*t-fK]]).stream(c),d()},u.fitExtent=function(e,t){return Lq(u,e,t)},u.fitSize=function(e,t){return Bq(u,e,t)},u.fitWidth=function(e,t){return Pq(u,e,t)},u.fitHeight=function(e,t){return Fq(u,e,t)},u.scale(1070)}function rX(e){return function(t,n){var r=EK(t),i=EK(n),o=e(r*i);return o===1/0?[2,0]:[o*i*OK(t),o*OK(n)]}}function iX(e){return function(t,n){var r=IK(t*t+n*n),i=e(r),o=OK(i),a=EK(i);return[xK(t*o,r*a),RK(r&&n*o/r)]}}var oX=rX(function(e){return IK(2/(1+e))});function aX(){return Kq(oX).scale(124.75).clipAngle(179.999)}oX.invert=iX(function(e){return 2*RK(e/2)});var sX=rX(function(e){return(e=NK(e))&&e/OK(e)});function lX(){return Kq(sX).scale(79.4188).clipAngle(179.999)}function cX(e,t){return[e,TK(DK((mK+t)/2))]}function uX(){return dX(cX).scale(961/AK)}function dX(e){var t,n,r,i=Kq(e),o=i.center,a=i.scale,s=i.translate,l=i.clipExtent,c=null;function u(){var o=gK*a(),s=i(Iq(i.rotate()).invert([0,0]));return l(null==c?[[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]]:e===cX?[[Math.max(s[0]-o,c),t],[Math.min(s[0]+o,n),r]]:[[c,Math.max(s[1]-o,t)],[n,Math.min(s[1]+o,r)]])}return i.scale=function(e){return arguments.length?(a(e),u()):a()},i.translate=function(e){return arguments.length?(s(e),u()):s()},i.center=function(e){return arguments.length?(o(e),u()):o()},i.clipExtent=function(e){return arguments.length?(null==e?c=t=n=r=null:(c=+e[0][0],t=+e[0][1],n=+e[1][0],r=+e[1][1]),u()):null==c?null:[[c,t],[n,r]]},u()}function hX(e){return DK((mK+e)/2)}function fX(e,t){var n=EK(e),r=e===t?OK(e):TK(n/EK(t))/TK(hX(t)/hX(e)),i=n*kK(hX(e),r)/r;if(!r)return cX;function o(e,t){i>0?t<-mK+fK&&(t=-mK+fK):t>mK-fK&&(t=mK-fK);var n=i/kK(hX(t),r);return[n*OK(r*e),i-n*EK(r*e)]}return o.invert=function(e,t){var n=i-t,o=MK(r)*IK(e*e+n*n),a=xK(e,wK(n))*MK(n);return n*r<0&&(a-=gK*MK(e)*MK(n)),[a/r,2*_K(kK(i/o,1/r))-mK]},o}function pX(){return qq(fX).scale(109.5).parallels([30,30])}function gX(e,t){return[e,t]}function mX(){return Kq(gX).scale(152.63)}function vX(e,t){var n=EK(e),r=e===t?OK(e):(n-EK(t))/(t-e),i=n/r+e;if(wK(r)<fK)return gX;function o(e,t){var n=i-t,o=r*e;return[n*OK(o),i-n*EK(o)]}return o.invert=function(e,t){var n=i-t,o=xK(e,wK(n))*MK(n);return n*r<0&&(o-=gK*MK(e)*MK(n)),[o/r,i-MK(r)*IK(e*e+n*n)]},o}function AX(){return qq(vX).scale(131.154).center([0,13.9389])}sX.invert=iX(function(e){return e}),cX.invert=function(e,t){return[e,2*_K(CK(t))-mK]},gX.invert=gX;var bX=1.340264,yX=-.081106,wX=893e-6,_X=.003796,xX=IK(3)/2,EX=12;function SX(e,t){var n=RK(xX*OK(t)),r=n*n,i=r*r*r;return[e*EK(n)/(xX*(bX+3*yX*r+i*(7*wX+9*_X*r))),n*(bX+yX*r+i*(wX+_X*r))]}function CX(){return Kq(SX).scale(177.158)}function TX(e,t){var n=EK(t),r=EK(e)*n;return[n*OK(e)/r,OK(t)/r]}function kX(){return Kq(TX).scale(144.049).clipAngle(60)}function OX(){var e,t,n,r,i,o,a,s=1,l=0,c=0,u=1,d=1,h=0,f=null,p=1,g=1,m=Dq({point:function(e,t){var n=b([e,t]);this.stream.point(n[0],n[1])}}),v=oK;function A(){return p=s*u,g=s*d,o=a=null,b}function b(n){var r=n[0]*p,i=n[1]*g;if(h){var o=i*e-r*t;r=r*e+i*t,i=o}return[r+l,i+c]}return b.invert=function(n){var r=n[0]-l,i=n[1]-c;if(h){var o=i*e+r*t;r=r*e-i*t,i=o}return[r/p,i/g]},b.stream=function(e){return o&&a===e?o:o=m(v(a=e))},b.postclip=function(e){return arguments.length?(v=e,f=n=r=i=null,A()):v},b.clipExtent=function(e){return arguments.length?(v=null==e?(f=n=r=i=null,oK):Eq(f=+e[0][0],n=+e[0][1],r=+e[1][0],i=+e[1][1]),A()):null==f?null:[[f,n],[r,i]]},b.scale=function(e){return arguments.length?(s=+e,A()):s},b.translate=function(e){return arguments.length?(l=+e[0],c=+e[1],A()):[l,c]},b.angle=function(n){return arguments.length?(h=n%360*yK,t=OK(h),e=EK(h),A()):h*bK},b.reflectX=function(e){return arguments.length?(u=e?-1:1,A()):u<0},b.reflectY=function(e){return arguments.length?(d=e?-1:1,A()):d<0},b.fitExtent=function(e,t){return Lq(b,e,t)},b.fitSize=function(e,t){return Bq(b,e,t)},b.fitWidth=function(e,t){return Pq(b,e,t)},b.fitHeight=function(e,t){return Fq(b,e,t)},b}function MX(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),t*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}function IX(){return Kq(MX).scale(175.295)}function DX(e,t){return[EK(t)*OK(e),OK(t)]}function NX(){return Kq(DX).scale(249.5).clipAngle(90+fK)}function RX(e,t){var n=EK(t),r=1+EK(e)*n;return[n*OK(e)/r,OK(t)/r]}function LX(){return Kq(RX).scale(250).clipAngle(142)}function BX(e,t){return[TK(DK((mK+t)/2)),-e]}function PX(){var e=dX(BX),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90]).scale(159.155)}SX.invert=function(e,t){for(var n,r,i,o=t,a=o*o,s=a*a*a,l=0;l<EX;++l)if(r=o*(bX+yX*a+s*(wX+_X*a))-t,i=bX+3*yX*a+s*(7*wX+9*_X*a),o-=n=r/i,a=o*o,s=a*a*a,wK(n)<pK)break;return[xX*e*(bX+3*yX*a+s*(7*wX+9*_X*a))/EK(o),RK(OK(o)/xX)]},TX.invert=iX(_K),MX.invert=function(e,t){var n,r=t,i=25;do{var o=r*r,a=o*o;r-=n=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-t)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(wK(n)>fK&&--i>0);return[e/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},DX.invert=iX(RK),RX.invert=iX(function(e){return 2*_K(e)}),BX.invert=function(e,t){return[-t,2*_K(CK(e))-mK]};var FX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function $X(e){if("function"===typeof e)return e;const t=`geo${dk(e)}`,n=a[t];if(!n)throw new Error(`Unknown coordinate: ${e}`);return n}function jX(e){return{type:"FeatureCollection",features:e.flatMap(e=>HX(e).features)}}function HX(e){const t={Point:"geometry",MultiPoint:"geometry",LineString:"geometry",MultiLineString:"geometry",Polygon:"geometry",MultiPolygon:"geometry",GeometryCollection:"geometry",Feature:"feature",FeatureCollection:"featureCollection"};if(!e||!e.type)return null;const n=t[e.type];return n?"geometry"===n?{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:e}]}:"feature"===n?{type:"FeatureCollection",features:[e]}:"featureCollection"===n?e:void 0:null}function UX(e,t){var n;for(const[r,i]of Object.entries(t))null===(n=e[r])||void 0===n||n.call(e,i)}function QX(e,t,n,r){const i=()=>{const e=t.filter(VX),n=e.find(e=>e.sphere);return n?{type:"Sphere"}:jX(e.filter(e=>!e.sphere).flatMap(e=>e.data.value))},{outline:o=i()}=r,{size:a="fitExtent"}=r;return"fitExtent"===a?zX(e,o,n):"fitWidth"===a?WX(e,o,n):void 0}function zX(e,t,n){const{x:r,y:i,width:o,height:a}=n;e.fitExtent([[r,i],[o,a]],t)}function WX(e,t,n){const{width:r,height:i}=n,[[o,a],[s,l]]=QY(e.fitWidth(r,t)).bounds(t),c=Math.ceil(l-a),u=Math.min(Math.ceil(s-o),c),d=e.scale()*(u-1)/u,[h,f]=e.translate(),p=f+(i-c)/2;e.scale(d).translate([h,p]).precision(.2)}function GX(e){const{data:t}=e;if(Array.isArray(t))return Object.assign(Object.assign({},e),{data:{value:t}});const{type:n}=t;return"graticule10"===n?Object.assign(Object.assign({},e),{data:{value:[KY()]}}):"sphere"===n?Object.assign(Object.assign({},e),{sphere:!0,data:{value:[{type:"Sphere"}]}}):e}function VX(e){return"geoPath"===e.type}const KX=()=>e=>{const{children:t,coordinate:n={}}=e;if(!Array.isArray(t))return[];const{type:r="equalEarth"}=n,i=FX(n,["type"]),o=$X(r),a=t.map(t=>Object.assign(Object.assign({},t),{data:_L(t.data,e.data)})).map(GX);let s;function l(){return[["custom",(e,t,n,r)=>{const l=o(),c={x:e,y:t,width:n,height:r};QX(l,a,c,i),UX(l,i),s=QY(l);const u=new bm({domain:[e,e+n]}),d=new bm({domain:[t,t+r]}),h=e=>{const t=l(e);if(!t)return[null,null];const[n,r]=t;return[u.map(n),d.map(r)]},f=e=>{if(!e)return null;const[t,n]=e,r=[u.invert(t),d.invert(n)];return l.invert(r)};return{transform:e=>h(e),untransform:e=>f(e)}}]]}function c(e){const{style:t,tooltip:n={}}=e;return Object.assign(Object.assign({},e),{type:"path",tooltip:aL(n,{title:"id",items:[{channel:"color"}]}),style:Object.assign(Object.assign({},t),{d:e=>s(e)||[]})})}const u=e=>VX(e)?c(e):e;return[Object.assign(Object.assign({},e),{type:"view",scale:{x:{type:"identity"},y:{type:"identity"}},axis:!1,coordinate:{type:l},children:a.flatMap(u)})]};KX.props={};var YX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const qX=()=>e=>{const{type:t,data:n,scale:r,encode:i,style:o,animate:a,key:s,state:l,tooltip:c}=e,u=YX(e,["type","data","scale","encode","style","animate","key","state","tooltip"]);return[Object.assign(Object.assign({type:"geoView"},u),{children:[{type:"geoPath",key:`${s}-0`,data:{value:n},scale:r,encode:i,style:o,animate:a,state:l,tooltip:c}]})]};function XX(){return{"composition.geoView":KX,"composition.geoPath":qX}}function JX(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return ZX(this.cover(t,n),t,n,e)}function ZX(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o,a,s,l,c,u,d,h,f=e._root,p={data:r},g=e._x0,m=e._y0,v=e._x1,A=e._y1;if(!f)return e._root=p,e;while(f.length)if((c=t>=(o=(g+v)/2))?g=o:v=o,(u=n>=(a=(m+A)/2))?m=a:A=a,i=f,!(f=f[d=u<<1|c]))return i[d]=p,e;if(s=+e._x.call(null,f.data),l=+e._y.call(null,f.data),t===s&&n===l)return p.next=f,i?i[d]=p:e._root=p,e;do{i=i?i[d]=new Array(4):e._root=new Array(4),(c=t>=(o=(g+v)/2))?g=o:v=o,(u=n>=(a=(m+A)/2))?m=a:A=a}while((d=u<<1|c)===(h=(l>=a)<<1|s>=o));return i[h]=f,i[d]=p,e}function eJ(e){var t,n,r,i,o=e.length,a=new Array(o),s=new Array(o),l=1/0,c=1/0,u=-1/0,d=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||(a[n]=r,s[n]=i,r<l&&(l=r),r>u&&(u=r),i<c&&(c=i),i>d&&(d=i));if(l>u||c>d)return this;for(this.cover(l,c).cover(u,d),n=0;n<o;++n)ZX(this,a[n],s[n],e[n]);return this}function tJ(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{var a,s,l=i-n||1,c=this._root;while(n>e||e>=i||r>t||t>=o)switch(s=(t<r)<<1|e<n,a=new Array(4),a[s]=c,c=a,l*=2,s){case 0:i=n+l,o=r+l;break;case 1:n=i-l,o=r+l;break;case 2:i=n+l,r=o-l;break;case 3:n=i-l,r=o-l;break}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this}function nJ(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e}function rJ(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function iJ(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function oJ(e,t,n){var r,i,o,a,s,l,c,u=this._x0,d=this._y0,h=this._x1,f=this._y1,p=[],g=this._root;g&&p.push(new iJ(g,u,d,h,f)),null==n?n=1/0:(u=e-n,d=t-n,h=e+n,f=t+n,n*=n);while(l=p.pop())if(!(!(g=l.node)||(i=l.x0)>h||(o=l.y0)>f||(a=l.x1)<u||(s=l.y1)<d))if(g.length){var m=(i+a)/2,v=(o+s)/2;p.push(new iJ(g[3],m,v,a,s),new iJ(g[2],i,v,m,s),new iJ(g[1],m,o,a,v),new iJ(g[0],i,o,m,v)),(c=(t>=v)<<1|e>=m)&&(l=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=l)}else{var A=e-+this._x.call(null,g.data),b=t-+this._y.call(null,g.data),y=A*A+b*b;if(y<n){var w=Math.sqrt(n=y);u=e-w,d=t-w,h=e+w,f=t+w,r=g.data}}return r}function aJ(e){if(isNaN(o=+this._x.call(null,e))||isNaN(a=+this._y.call(null,e)))return this;var t,n,r,i,o,a,s,l,c,u,d,h,f=this._root,p=this._x0,g=this._y0,m=this._x1,v=this._y1;if(!f)return this;if(f.length)while(1){if((c=o>=(s=(p+m)/2))?p=s:m=s,(u=a>=(l=(g+v)/2))?g=l:v=l,t=f,!(f=f[d=u<<1|c]))return this;if(!f.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,h=d)}while(f.data!==e)if(r=f,!(f=f.next))return this;return(i=f.next)&&delete f.next,r?(i?r.next=i:delete r.next,this):t?(i?t[d]=i:delete t[d],(f=t[0]||t[1]||t[2]||t[3])&&f===(t[3]||t[2]||t[1]||t[0])&&!f.length&&(n?n[h]=f:this._root=f),this):(this._root=i,this)}function sJ(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function lJ(){return this._root}function cJ(){var e=0;return this.visit(function(t){if(!t.length)do{++e}while(t=t.next)}),e}function uJ(e){var t,n,r,i,o,a,s=[],l=this._root;l&&s.push(new iJ(l,this._x0,this._y0,this._x1,this._y1));while(t=s.pop())if(!e(l=t.node,r=t.x0,i=t.y0,o=t.x1,a=t.y1)&&l.length){var c=(r+o)/2,u=(i+a)/2;(n=l[3])&&s.push(new iJ(n,c,u,o,a)),(n=l[2])&&s.push(new iJ(n,r,u,c,a)),(n=l[1])&&s.push(new iJ(n,c,i,o,u)),(n=l[0])&&s.push(new iJ(n,r,i,c,u))}return this}function dJ(e){var t,n=[],r=[];this._root&&n.push(new iJ(this._root,this._x0,this._y0,this._x1,this._y1));while(t=n.pop()){var i=t.node;if(i.length){var o,a=t.x0,s=t.y0,l=t.x1,c=t.y1,u=(a+l)/2,d=(s+c)/2;(o=i[0])&&n.push(new iJ(o,a,s,u,d)),(o=i[1])&&n.push(new iJ(o,u,s,l,d)),(o=i[2])&&n.push(new iJ(o,a,d,u,c)),(o=i[3])&&n.push(new iJ(o,u,d,l,c))}r.push(t)}while(t=r.pop())e(t.node,t.x0,t.y0,t.x1,t.y1);return this}function hJ(e){return e[0]}function fJ(e){return arguments.length?(this._x=e,this):this._x}function pJ(e){return e[1]}function gJ(e){return arguments.length?(this._y=e,this):this._y}function mJ(e,t,n){var r=new vJ(null==t?hJ:t,null==n?pJ:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function vJ(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function AJ(e){var t={data:e.data},n=t;while(e=e.next)n=n.next={data:e.data};return t}qX.props={};var bJ=mJ.prototype=vJ.prototype;function yJ(e){return function(){return e}}function wJ(e){return 1e-6*(e()-.5)}bJ.copy=function(){var e,t,n=new vJ(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=AJ(r),n;e=[{source:r,target:n._root=new Array(4)}];while(r=e.pop())for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(4)}):r.target[i]=AJ(t));return n},bJ.add=JX,bJ.addAll=eJ,bJ.cover=tJ,bJ.data=nJ,bJ.extent=rJ,bJ.find=oJ,bJ.remove=aJ,bJ.removeAll=sJ,bJ.root=lJ,bJ.size=cJ,bJ.visit=uJ,bJ.visitAfter=dJ,bJ.x=fJ,bJ.y=gJ;var _J={value:()=>{}};function xJ(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new EJ(r)}function EJ(e){this._=e}function SJ(e,t){return e.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}})}function CJ(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function TJ(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=_J,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}EJ.prototype=xJ.prototype={constructor:EJ,on:function(e,t){var n,r=this._,i=SJ(e+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);while(++o<a)if(n=(e=i[o]).type)r[n]=TJ(r[n],e.name,t);else if(null==t)for(n in r)r[n]=TJ(r[n],e.name,null);return this}while(++o<a)if((n=(e=i[o]).type)&&(n=CJ(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new EJ(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],o=0,n=r.length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var kJ,OJ,MJ=xJ,IJ=0,DJ=0,NJ=0,RJ=1e3,LJ=0,BJ=0,PJ=0,FJ="object"===typeof performance&&performance.now?performance:Date,$J="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function jJ(){return BJ||($J(HJ),BJ=FJ.now()+PJ)}function HJ(){BJ=0}function UJ(){this._call=this._time=this._next=null}function QJ(e,t,n){var r=new UJ;return r.restart(e,t,n),r}function zJ(){jJ(),++IJ;var e,t=kJ;while(t)(e=BJ-t._time)>=0&&t._call.call(void 0,e),t=t._next;--IJ}function WJ(){BJ=(LJ=FJ.now())+PJ,IJ=DJ=0;try{zJ()}finally{IJ=0,VJ(),BJ=0}}function GJ(){var e=FJ.now(),t=e-LJ;t>RJ&&(PJ-=t,LJ=e)}function VJ(){var e,t,n=kJ,r=1/0;while(n)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:kJ=t);OJ=e,KJ(r)}function KJ(e){if(!IJ){DJ&&(DJ=clearTimeout(DJ));var t=e-BJ;t>24?(e<1/0&&(DJ=setTimeout(WJ,e-FJ.now()-PJ)),NJ&&(NJ=clearInterval(NJ))):(NJ||(LJ=FJ.now(),NJ=setInterval(GJ,RJ)),IJ=1,$J(WJ))}}UJ.prototype=QJ.prototype={constructor:UJ,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?jJ():+n)+(null==t?0:+t),this._next||OJ===this||(OJ?OJ._next=this:kJ=this,OJ=this),this._call=e,this._time=n,KJ()},stop:function(){this._call&&(this._call=null,this._time=1/0,KJ())}};const YJ=1664525,qJ=1013904223,XJ=4294967296;function JJ(){let e=1;return()=>(e=(YJ*e+qJ)%XJ)/XJ}function ZJ(e){return e.x}function eZ(e){return e.y}var tZ=10,nZ=Math.PI*(3-Math.sqrt(5));function rZ(e){var t,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,s=new Map,l=QJ(d),c=MJ("tick","end"),u=JJ();function d(){h(),c.call("tick",t),n<r&&(l.stop(),c.call("end",t))}function h(r){var l,c,u=e.length;void 0===r&&(r=1);for(var d=0;d<r;++d)for(n+=(o-n)*i,s.forEach(function(e){e(n)}),l=0;l<u;++l)c=e[l],null==c.fx?c.x+=c.vx*=a:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=a:(c.y=c.fy,c.vy=0);return t}function f(){for(var t,n=0,r=e.length;n<r;++n){if(t=e[n],t.index=n,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),isNaN(t.x)||isNaN(t.y)){var i=tZ*Math.sqrt(.5+n),o=n*nZ;t.x=i*Math.cos(o),t.y=i*Math.sin(o)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function p(t){return t.initialize&&t.initialize(e,u),t}return null==e&&(e=[]),f(),t={tick:h,restart:function(){return l.restart(d),t},stop:function(){return l.stop(),t},nodes:function(n){return arguments.length?(e=n,f(),s.forEach(p),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(r=+e,t):r},alphaDecay:function(e){return arguments.length?(i=+e,t):+i},alphaTarget:function(e){return arguments.length?(o=+e,t):o},velocityDecay:function(e){return arguments.length?(a=1-e,t):1-a},randomSource:function(e){return arguments.length?(u=e,s.forEach(p),t):u},force:function(e,n){return arguments.length>1?(null==n?s.delete(e):s.set(e,p(n)),t):s.get(e)},find:function(t,n,r){var i,o,a,s,l,c=0,u=e.length;for(null==r?r=1/0:r*=r,c=0;c<u;++c)s=e[c],i=t-s.x,o=n-s.y,a=i*i+o*o,a<r&&(l=s,r=a);return l},on:function(e,n){return arguments.length>1?(c.on(e,n),t):c.on(e)}}}function iZ(){var e,t,n,r,i,o=yJ(-30),a=1,s=1/0,l=.81;function c(n){var i,o=e.length,a=mJ(e,ZJ,eZ).visitAfter(d);for(r=n,i=0;i<o;++i)t=e[i],a.visit(h)}function u(){if(e){var t,n,r=e.length;for(i=new Array(r),t=0;t<r;++t)n=e[t],i[n.index]=+o(n,t,e)}}function d(e){var t,n,r,o,a,s=0,l=0;if(e.length){for(r=o=a=0;a<4;++a)(t=e[a])&&(n=Math.abs(t.value))&&(s+=t.value,l+=n,r+=n*t.x,o+=n*t.y);e.x=r/l,e.y=o/l}else{t=e,t.x=t.data.x,t.y=t.data.y;do{s+=i[t.data.index]}while(t=t.next)}e.value=s}function h(e,o,c,u){if(!e.value)return!0;var d=e.x-t.x,h=e.y-t.y,f=u-o,p=d*d+h*h;if(f*f/l<p)return p<s&&(0===d&&(d=wJ(n),p+=d*d),0===h&&(h=wJ(n),p+=h*h),p<a&&(p=Math.sqrt(a*p)),t.vx+=d*e.value*r/p,t.vy+=h*e.value*r/p),!0;if(!(e.length||p>=s)){(e.data!==t||e.next)&&(0===d&&(d=wJ(n),p+=d*d),0===h&&(h=wJ(n),p+=h*h),p<a&&(p=Math.sqrt(a*p)));do{e.data!==t&&(f=i[e.data.index]*r/p,t.vx+=d*f,t.vy+=h*f)}while(e=e.next)}}return c.initialize=function(t,r){e=t,n=r,u()},c.strength=function(e){return arguments.length?(o="function"===typeof e?e:yJ(+e),u(),c):o},c.distanceMin=function(e){return arguments.length?(a=e*e,c):Math.sqrt(a)},c.distanceMax=function(e){return arguments.length?(s=e*e,c):Math.sqrt(s)},c.theta=function(e){return arguments.length?(l=e*e,c):Math.sqrt(l)},c}function oZ(e){return e.index}function aZ(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function sZ(e){var t,n,r,i,o,a,s=oZ,l=d,c=yJ(30),u=1;function d(e){return 1/Math.min(i[e.source.index],i[e.target.index])}function h(r){for(var i=0,s=e.length;i<u;++i)for(var l,c,d,h,f,p,g,m=0;m<s;++m)l=e[m],c=l.source,d=l.target,h=d.x+d.vx-c.x-c.vx||wJ(a),f=d.y+d.vy-c.y-c.vy||wJ(a),p=Math.sqrt(h*h+f*f),p=(p-n[m])/p*r*t[m],h*=p,f*=p,d.vx-=h*(g=o[m]),d.vy-=f*g,c.vx+=h*(g=1-g),c.vy+=f*g}function f(){if(r){var a,l,c=r.length,u=e.length,d=new Map(r.map((e,t)=>[s(e,t,r),e]));for(a=0,i=new Array(c);a<u;++a)l=e[a],l.index=a,"object"!==typeof l.source&&(l.source=aZ(d,l.source)),"object"!==typeof l.target&&(l.target=aZ(d,l.target)),i[l.source.index]=(i[l.source.index]||0)+1,i[l.target.index]=(i[l.target.index]||0)+1;for(a=0,o=new Array(u);a<u;++a)l=e[a],o[a]=i[l.source.index]/(i[l.source.index]+i[l.target.index]);t=new Array(u),p(),n=new Array(u),g()}}function p(){if(r)for(var n=0,i=e.length;n<i;++n)t[n]=+l(e[n],n,e)}function g(){if(r)for(var t=0,i=e.length;t<i;++t)n[t]=+c(e[t],t,e)}return null==e&&(e=[]),h.initialize=function(e,t){r=e,a=t,f()},h.links=function(t){return arguments.length?(e=t,f(),h):e},h.id=function(e){return arguments.length?(s=e,h):s},h.iterations=function(e){return arguments.length?(u=+e,h):u},h.strength=function(e){return arguments.length?(l="function"===typeof e?e:yJ(+e),p(),h):l},h.distance=function(e){return arguments.length?(c="function"===typeof e?e:yJ(+e),g(),h):c},h}function lZ(e,t){var n,r=1;function i(){var i,o,a=n.length,s=0,l=0;for(i=0;i<a;++i)o=n[i],s+=o.x,l+=o.y;for(s=(s/a-e)*r,l=(l/a-t)*r,i=0;i<a;++i)o=n[i],o.x-=s,o.y-=l}return null==e&&(e=0),null==t&&(t=0),i.initialize=function(e){n=e},i.x=function(t){return arguments.length?(e=+t,i):e},i.y=function(e){return arguments.length?(t=+e,i):t},i.strength=function(e){return arguments.length?(r=+e,i):r},i}function cZ(e){var t,n,r,i=yJ(.1);function o(e){for(var i,o=0,a=t.length;o<a;++o)i=t[o],i.vx+=(r[o]-i.x)*n[o]*e}function a(){if(t){var o,a=t.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+i(t[o],o,t)}}return"function"!==typeof e&&(e=yJ(null==e?0:+e)),o.initialize=function(e){t=e,a()},o.strength=function(e){return arguments.length?(i="function"===typeof e?e:yJ(+e),a(),o):i},o.x=function(t){return arguments.length?(e="function"===typeof t?t:yJ(+t),a(),o):e},o}function uZ(e){var t,n,r,i=yJ(.1);function o(e){for(var i,o=0,a=t.length;o<a;++o)i=t[o],i.vy+=(r[o]-i.y)*n[o]*e}function a(){if(t){var o,a=t.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+i(t[o],o,t)}}return"function"!==typeof e&&(e=yJ(null==e?0:+e)),o.initialize=function(e){t=e,a()},o.strength=function(e){return arguments.length?(i="function"===typeof e?e:yJ(+e),a(),o):i},o.y=function(t){return arguments.length?(e="function"===typeof t?t:yJ(+t),a(),o):e},o}var dZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const hZ={joint:!0},fZ={type:"link",axis:!1,legend:!1,encode:{x:[e=>e.source.x,e=>e.target.x],y:[e=>e.source.y,e=>e.target.y]},style:{stroke:"#999",strokeOpacity:.6}},pZ={type:"point",axis:!1,legend:!1,encode:{x:"x",y:"y",size:5,color:"group",shape:"point"},style:{stroke:"#fff"}},gZ={text:""};function mZ(e,t,n){const{nodes:r,links:i}=e,{joint:o,nodeStrength:a,linkStrength:s}=t,{nodeKey:l=e=>e.id,linkKey:c=e=>e.id}=n,u=iZ(),d=sZ(i).id(_v(c));"function"===typeof a&&u.strength(a),"function"===typeof s&&d.strength(s);const h=rZ(r).force("link",d).force("charge",u);o?h.force("center",lZ()):h.force("x",cZ()).force("y",uZ()),h.stop();const f=Math.ceil(Math.log(h.alphaMin())/Math.log(1-h.alphaDecay()));for(let p=0;p<f;p++)h.tick();return{nodesData:r,linksData:i}}const vZ=e=>{const{data:t,encode:n={},scale:r,style:i={},layout:o={},nodeLabels:a=[],linkLabels:s=[],animate:l={},tooltip:c={}}=e,{nodeKey:u=e=>e.id,linkKey:d=e=>e.id}=n,h=dZ(n,["nodeKey","linkKey"]),f=Object.assign({nodeKey:u,linkKey:d},h),p=Og(f,"node"),g=Og(f,"link"),{links:m,nodes:v}=Sv(t,f),{nodesData:A,linksData:b}=mZ({links:m,nodes:v},P({},hZ,o),f),y=oL(c,"link",{items:[e=>({name:"source",value:_v(d)(e.source)}),e=>({name:"target",value:_v(d)(e.target)})]}),w=oL(c,"node",{items:[e=>({name:"key",value:_v(u)(e)})]},!0);return[P({},fZ,{data:b,encode:g,labels:s,style:Og(i,"link"),tooltip:y,animate:lL(l,"link")}),P({},pZ,{data:A,encode:Object.assign({},p),scale:r,style:Og(i,"node"),tooltip:w,labels:[Object.assign(Object.assign({},gZ),Og(i,"label")),...a],animate:lL(l,"link")})]};function AZ(e,t){return e.parent===t.parent?1:2}function bZ(e){var t=e.children;return t?t[0]:e.t}function yZ(e){var t=e.children;return t?t[t.length-1]:e.t}function wZ(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function _Z(e){var t,n=0,r=0,i=e.children,o=i.length;while(--o>=0)t=i[o],t.z+=n,t.m+=n,n+=t.s+(r+=t.c)}function xZ(e,t,n){return e.a.parent===t.parent?e.a:n}function EZ(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function SZ(e){var t,n,r,i,o,a=new EZ(e,0),s=[a];while(t=s.pop())if(r=t._.children)for(t.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=t.children[i]=new EZ(r[i],i)),n.parent=t;return(a.parent=new EZ(null,0)).children=[a],a}function CZ(){var e=AZ,t=1,n=1,r=null;function i(i){var s=SZ(i);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(a),r)i.eachBefore(l);else{var c=i,u=i,d=i;i.eachBefore(function(e){e.x<c.x&&(c=e),e.x>u.x&&(u=e),e.depth>d.depth&&(d=e)});var h=c===u?1:e(c,u)/2,f=h-c.x,p=t/(u.x+h+f),g=n/(d.depth||1);i.eachBefore(function(e){e.x=(e.x+f)*p,e.y=e.depth*g})}return i}function o(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){_Z(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=s(t,i,t.parent.A||r[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(t,n,r){if(n){var i,o=t,a=t,s=n,l=o.parent.children[0],c=o.m,u=a.m,d=s.m,h=l.m;while(s=yZ(s),o=bZ(o),s&&o)l=bZ(l),a=yZ(a),a.a=t,i=s.z+d-o.z-c+e(s._,o._),i>0&&(wZ(xZ(s,t,r),t,i),c+=i,u+=i),d+=s.m,c+=o.m,h+=l.m,u+=a.m;s&&!yZ(a)&&(a.t=s,a.m+=d-u),o&&!bZ(l)&&(l.t=o,l.m+=c-h,r=t)}return r}function l(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}function TZ(e,t){return e.parent===t.parent?1:2}function kZ(e){return e.reduce(OZ,0)/e.length}function OZ(e,t){return e+t.x}function MZ(e){return 1+e.reduce(IZ,0)}function IZ(e,t){return Math.max(e,t.y)}function DZ(e){var t;while(t=e.children)e=t[0];return e}function NZ(e){var t;while(t=e.children)e=t[t.length-1];return e}function RZ(){var e=TZ,t=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter(function(t){var n=t.children;n?(t.x=kZ(n),t.y=MZ(n)):(t.x=o?a+=e(t,o):0,t.y=0,o=t)});var s=DZ(i),l=NZ(i),c=s.x-e(s,l)/2,u=l.x+e(l,s)/2;return i.eachAfter(r?function(e){e.x=(e.x-i.x)*t,e.y=(i.y-e.y)*n}:function(e){e.x=(e.x-c)/(u-c)*t,e.y=(1-(i.y?e.y/i.y:1))*n})}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}vZ.props={},EZ.prototype=Object.create(eQ.prototype);const LZ=e=>t=>n=>{const{field:r="value",nodeSize:i,separation:o,sortBy:a,as:s=["x","y"]}=t,[l,c]=s,u=KU(n,e=>e.children).sum(e=>e[r]).sort(a),d=e();d.size([1,1]),i&&d.nodeSize(i),o&&d.separation(o),d(u);const h=[];u.each(e=>{e[l]=e.x,e[c]=e.y,e.name=e.data.name,h.push(e)});const f=u.links();return f.forEach(e=>{e[l]=[e.source[l],e.target[l]],e[c]=[e.source[c],e.target[c]]}),{nodes:h,edges:f}},BZ=e=>LZ(RZ)(e);BZ.props={};const PZ=e=>LZ(CZ)(e);PZ.props={};const FZ={sortBy:(e,t)=>t.value-e.value},$Z={axis:!1,legend:!1,type:"point",encode:{x:"x",y:"y",size:2,shape:"point"}},jZ={type:"link",encode:{x:"x",y:"y",shape:"smooth"}},HZ={text:"",fontSize:10},UZ=e=>{const{data:t,encode:n={},scale:r={},style:i={},layout:o={},nodeLabels:a=[],linkLabels:s=[],animate:l={},tooltip:c={}}=e,u=null===n||void 0===n?void 0:n.value,{nodes:d,edges:h}=PZ(Object.assign(Object.assign(Object.assign({},FZ),o),{field:u}))(t),f=oL(c,"node",{title:"name",items:["value"]},!0),p=oL(c,"link",{title:"",items:[e=>({name:"source",value:e.source.name}),e=>({name:"target",value:e.target.name})]});return[P({},jZ,{data:h,encode:Og(n,"link"),scale:Og(r,"link"),labels:s,style:Object.assign({stroke:"#999"},Og(i,"link")),tooltip:p,animate:lL(l,"link")}),P({},$Z,{data:d,scale:Og(r,"node"),encode:Og(n,"node"),labels:[Object.assign(Object.assign({},HZ),Og(i,"label")),...a],style:Object.assign({},Og(i,"node")),tooltip:f,animate:lL(l,"node")})]};UZ.props={};const QZ=1664525,zZ=1013904223,WZ=4294967296;function GZ(){let e=1;return()=>(e=(QZ*e+zZ)%WZ)/WZ}function VZ(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function KZ(e,t){let n,r,i=e.length;while(i)r=t()*i--|0,n=e[i],e[i]=e[r],e[r]=n;return e}function YZ(e,t){var n,r,i=0,o=(e=KZ(Array.from(e),t)).length,a=[];while(i<o)n=e[i],r&&JZ(r,n)?++i:(r=e0(a=qZ(a,n)),i=0);return r}function qZ(e,t){var n,r;if(ZZ(t,e))return[t];for(n=0;n<e.length;++n)if(XZ(t,e[n])&&ZZ(n0(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(XZ(n0(e[n],e[r]),t)&&XZ(n0(e[n],t),e[r])&&XZ(n0(e[r],t),e[n])&&ZZ(r0(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function XZ(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function JZ(e,t){var n=e.r-t.r+1e-9*Math.max(e.r,t.r,1),r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function ZZ(e,t){for(var n=0;n<t.length;++n)if(!JZ(e,t[n]))return!1;return!0}function e0(e){switch(e.length){case 1:return t0(e[0]);case 2:return n0(e[0],e[1]);case 3:return r0(e[0],e[1],e[2])}}function t0(e){return{x:e.x,y:e.y,r:e.r}}function n0(e,t){var n=e.x,r=e.y,i=e.r,o=t.x,a=t.y,s=t.r,l=o-n,c=a-r,u=s-i,d=Math.sqrt(l*l+c*c);return{x:(n+o+l/d*u)/2,y:(r+a+c/d*u)/2,r:(d+i+s)/2}}function r0(e,t,n){var r=e.x,i=e.y,o=e.r,a=t.x,s=t.y,l=t.r,c=n.x,u=n.y,d=n.r,h=r-a,f=r-c,p=i-s,g=i-u,m=l-o,v=d-o,A=r*r+i*i-o*o,b=A-a*a-s*s+l*l,y=A-c*c-u*u+d*d,w=f*p-h*g,_=(p*y-g*b)/(2*w)-r,x=(g*m-p*v)/w,E=(f*b-h*y)/(2*w)-i,S=(h*v-f*m)/w,C=x*x+S*S-1,T=2*(o+_*x+E*S),k=_*_+E*E-o*o,O=-(Math.abs(C)>1e-6?(T+Math.sqrt(T*T-4*C*k))/(2*C):k/T);return{x:r+_+x*O,y:i+E+S*O,r:O}}function i0(e,t,n){var r,i,o,a,s=e.x-t.x,l=e.y-t.y,c=s*s+l*l;c?(i=t.r+n.r,i*=i,a=e.r+n.r,a*=a,i>a?(r=(c+a-i)/(2*c),o=Math.sqrt(Math.max(0,a/c-r*r)),n.x=e.x-r*s-o*l,n.y=e.y-r*l+o*s):(r=(c+i-a)/(2*c),o=Math.sqrt(Math.max(0,i/c-r*r)),n.x=t.x+r*s-o*l,n.y=t.y+r*l+o*s)):(n.x=t.x+n.r,n.y=t.y)}function o0(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function a0(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function s0(e){this._=e,this.next=null,this.previous=null}function l0(e,t){if(!(o=(e=VZ(e)).length))return 0;var n,r,i,o,a,s,l,c,u,d,h;if(n=e[0],n.x=0,n.y=0,!(o>1))return n.r;if(r=e[1],n.x=-r.r,r.x=n.r,r.y=0,!(o>2))return n.r+r.r;i0(r,n,i=e[2]),n=new s0(n),r=new s0(r),i=new s0(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;e:for(l=3;l<o;++l){i0(n._,r._,i=e[l]),i=new s0(i),c=r.next,u=n.previous,d=r._.r,h=n._.r;do{if(d<=h){if(o0(c._,i._)){r=c,n.next=r,r.previous=n,--l;continue e}d+=c._.r,c=c.next}else{if(o0(u._,i._)){n=u,n.next=r,r.previous=n,--l;continue e}h+=u._.r,u=u.previous}}while(c!==u.next);i.previous=n,i.next=r,n.next=r.previous=r=i,a=a0(n);while((i=i.next)!==r)(s=a0(i))<a&&(n=i,a=s);r=n.next}n=[r._],i=r;while((i=i.next)!==r)n.push(i._);for(i=YZ(n,t),l=0;l<o;++l)n=e[l],n.x-=i.x,n.y-=i.y;return i.r}function c0(e){return Math.sqrt(e.value)}function u0(){var e=null,t=1,n=1,r=bQ;function i(i){const o=GZ();return i.x=t/2,i.y=n/2,e?i.eachBefore(d0(e)).eachAfter(h0(r,.5,o)).eachBefore(f0(1)):i.eachBefore(d0(c0)).eachAfter(h0(bQ,1,o)).eachAfter(h0(r,i.r/Math.min(t,n),o)).eachBefore(f0(Math.min(t,n)/(2*i.r))),i}return i.radius=function(t){return arguments.length?(e=IU(t),i):e},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(e){return arguments.length?(r="function"===typeof e?e:yQ(+e),i):r},i}function d0(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function h0(e,t,n){return function(r){if(i=r.children){var i,o,a,s=i.length,l=e(r)*t||0;if(l)for(o=0;o<s;++o)i[o].r+=l;if(a=l0(i,n),l)for(o=0;o<s;++o)i[o].r-=l;r.r=a+l}}}function f0(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}var p0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const g0=(e,t)=>({size:[e,t],padding:0,sort:(e,t)=>t.value-e.value}),m0=(e,t,n)=>({type:"point",axis:!1,legend:!1,scale:{x:{domain:[0,e]},y:{domain:[0,t]},size:{type:"identity"}},encode:{x:"x",y:"y",size:"r",shape:"point"},style:{fill:n.color?void 0:e=>0===e.height?"#ddd":"#fff",stroke:n.color?void 0:e=>0===e.height?"":"#000"}}),v0={text:"",position:"inside",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:e=>2*e.r},A0={title:e=>e.data.name,items:[{field:"value"}]},b0=(e,t,n)=>{const{value:r}=n,i=S(e)?aQ().path(t.path)(e):KU(e);return r?i.sum(e=>_v(r)(e)).sort(t.sort):i.count(),u0().size(t.size).padding(t.padding)(i),i.descendants()},y0=(e,t)=>{const{width:n,height:r}=t,{data:i,encode:o={},scale:a={},style:s={},layout:l={},labels:c=[],tooltip:u={}}=e,d=p0(e,["data","encode","scale","style","layout","labels","tooltip"]),h=m0(n,r,o),f=b0(i,P({},g0(n,r),l),P({},h["encode"],o)),p=Og(s,"label");return P({},h,Object.assign(Object.assign({data:f,encode:o,scale:a,style:s,labels:[Object.assign(Object.assign({},v0),p),...c]},d),{tooltip:aL(u,A0),axis:!1}))};function w0(e){return e.target.depth}function _0(e){return e.depth}function x0(e,t){return t-1-e.height}function E0(e,t){return e.sourceLinks.length?e.depth:t-1}function S0(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?T_(e.sourceLinks,w0)-1:0}function C0(e){return function(){return e}}function T0(e,t){return O0(e.source,t.source)||e.index-t.index}function k0(e,t){return O0(e.target,t.target)||e.index-t.index}function O0(e,t){return e.y0-t.y0}function M0(e){return e.value}function I0(e){return e.index}function D0(e){return e.nodes}function N0(e){return e.links}function R0(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function L0({nodes:e}){for(const t of e){let e=t.y0,n=e;for(const r of t.sourceLinks)r.y0=e+r.width/2,e+=r.width;for(const r of t.targetLinks)r.y1=n+r.width/2,n+=r.width}}function B0(){let e,t,n,r,i=0,o=0,a=1,s=1,l=24,c=8,u=I0,d=E0,h=D0,f=N0,p=6;function g(e){const t={nodes:h(e),links:f(e)};return m(t),v(t),A(t),b(t),_(t),L0(t),t}function m({nodes:e,links:t}){e.forEach((e,t)=>{e.index=t,e.sourceLinks=[],e.targetLinks=[]});const n=new Map(e.map(e=>[u(e),e]));if(t.forEach((e,t)=>{e.index=t;let{source:r,target:i}=e;"object"!==typeof r&&(r=e.source=R0(n,r)),"object"!==typeof i&&(i=e.target=R0(n,i)),r.sourceLinks.push(e),i.targetLinks.push(e)}),null!=r)for(const{sourceLinks:i,targetLinks:o}of e)i.sort(r),o.sort(r)}function v({nodes:e}){for(const t of e)t.value=void 0===t.fixedValue?Math.max(uW(t.sourceLinks,M0),uW(t.targetLinks,M0)):t.fixedValue}function A({nodes:e}){const n=e.length;let r=new Set(e),i=new Set,o=0;while(r.size){if(r.forEach(e=>{e.depth=o;for(const{target:t}of e.sourceLinks)i.add(t)}),++o>n)throw new Error("circular link");r=i,i=new Set}if(t){const n=Math.max(k_(e,e=>e.depth)+1,0);let r;for(let i=0;i<e.length;i++)r=e[i],r.depth=t.call(null,r,n)}}function b({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,i=0;while(n.size){if(n.forEach(e=>{e.height=i;for(const{source:t}of e.targetLinks)r.add(t)}),++i>t)throw new Error("circular link");n=r,r=new Set}}function y({nodes:e}){const t=Math.max(k_(e,e=>e.depth)+1,0),r=(a-i-l)/(t-1),o=new Array(t).fill(0).map(()=>[]);for(const n of e){const e=Math.max(0,Math.min(t-1,Math.floor(d.call(null,n,t))));n.layer=e,n.x0=i+e*r,n.x1=n.x0+l,o[e]?o[e].push(n):o[e]=[n]}if(n)for(const i of o)i.sort(n);return o}function w(t){const n=T_(t,t=>(s-o-(t.length-1)*e)/uW(t,M0));for(const r of t){let t=o;for(const i of r){i.y0=t,i.y1=t+i.value*n,t=i.y1+e;for(const e of i.sourceLinks)e.width=e.value*n}t=(s-t+e)/(r.length+1);for(let e=0;e<r.length;++e){const n=r[e];n.y0+=t*(e+1),n.y1+=t*(e+1)}O(r)}}function _(t){const n=y(t);e=Math.min(c,(s-o)/(k_(n,e=>e.length)-1)),w(n);for(let e=0;e<p;++e){const t=Math.pow(.99,e),r=Math.max(1-t,(e+1)/p);E(n,t,r),x(n,t,r)}}function x(e,t,r){for(let i=1,o=e.length;i<o;++i){const o=e[i];for(const e of o){let n=0,r=0;for(const{source:t,value:o}of e.targetLinks){const i=o*(e.layer-t.layer);n+=M(t,e)*i,r+=i}if(!(r>0))continue;const i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,k(e)}void 0===n&&o.sort(O0),o.length&&S(o,r)}}function E(e,t,r){for(let i=e.length,o=i-2;o>=0;--o){const i=e[o];for(const e of i){let n=0,r=0;for(const{target:t,value:o}of e.sourceLinks){const i=o*(t.layer-e.layer);n+=I(e,t)*i,r+=i}if(!(r>0))continue;const i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,k(e)}void 0===n&&i.sort(O0),i.length&&S(i,r)}}function S(t,n){const r=t.length>>1,i=t[r];T(t,i.y0-e,r-1,n),C(t,i.y1+e,r+1,n),T(t,s,t.length-1,n),C(t,o,0,n)}function C(t,n,r,i){for(;r<t.length;++r){const o=t[r],a=(n-o.y0)*i;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+e}}function T(t,n,r,i){for(;r>=0;--r){const o=t[r],a=(o.y1-n)*i;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-e}}function k({sourceLinks:e,targetLinks:t}){if(void 0===r){for(const{source:{sourceLinks:e}}of t)e.sort(k0);for(const{target:{targetLinks:t}}of e)t.sort(T0)}}function O(e){if(void 0===r)for(const{sourceLinks:t,targetLinks:n}of e)t.sort(k0),n.sort(T0)}function M(t,n){let r=t.y0-(t.sourceLinks.length-1)*e/2;for(const{target:i,width:o}of t.sourceLinks){if(i===n)break;r+=o+e}for(const{source:e,width:i}of n.targetLinks){if(e===t)break;r-=i}return r}function I(t,n){let r=n.y0-(n.targetLinks.length-1)*e/2;for(const{source:i,width:o}of n.targetLinks){if(i===t)break;r+=o+e}for(const{target:e,width:i}of t.sourceLinks){if(e===n)break;r-=i}return r}return g.update=function(e){return L0(e),e},g.nodeId=function(e){return arguments.length?(u="function"===typeof e?e:C0(e),g):u},g.nodeAlign=function(e){return arguments.length?(d="function"===typeof e?e:C0(e),g):d},g.nodeDepth=function(e){return arguments.length?(t=e,g):t},g.nodeSort=function(e){return arguments.length?(n=e,g):n},g.nodeWidth=function(e){return arguments.length?(l=+e,g):l},g.nodePadding=function(t){return arguments.length?(c=e=+t,g):c},g.nodes=function(e){return arguments.length?(h="function"===typeof e?e:C0(e),g):h},g.links=function(e){return arguments.length?(f="function"===typeof e?e:C0(e),g):f},g.linkSort=function(e){return arguments.length?(r=e,g):r},g.size=function(e){return arguments.length?(i=o=0,a=+e[0],s=+e[1],g):[a-i,s-o]},g.extent=function(e){return arguments.length?(i=+e[0][0],a=+e[1][0],o=+e[0][1],s=+e[1][1],g):[[i,o],[a,s]]},g.iterations=function(e){return arguments.length?(p=+e,g):p},g}y0.props={};const P0={nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodes:e=>e.nodes,links:e=>e.links,nodeSort:void 0,linkSort:void 0,iterations:6},F0={left:_0,right:x0,center:S0,justify:E0};function $0(e){const t=typeof e;return"string"===t?F0[e]||E0:"function"===t?e:E0}const j0=e=>t=>{const{nodeId:n,nodeSort:r,nodeAlign:i,nodeWidth:o,nodePadding:a,nodeDepth:s,nodes:l,links:c,linkSort:u,iterations:d}=Object.assign({},P0,e),h=B0().nodeSort(r).linkSort(u).links(c).nodes(l).nodeWidth(o).nodePadding(a).nodeDepth(s).nodeAlign($0(i)).iterations(d).extent([[0,0],[1,1]]);"function"===typeof n&&h.nodeId(n);const f=h(t),{nodes:p,links:g}=f,m=p.map(e=>{const{x0:t,x1:n,y0:r,y1:i}=e;return Object.assign(Object.assign({},e),{x:[t,n,n,t],y:[r,r,i,i]})}),v=g.map(e=>{const{source:t,target:n}=e,r=t.x1,i=n.x0,o=e.width/2;return Object.assign(Object.assign({},e),{x:[r,r,i,i],y:[e.y0+o,e.y0-o,e.y1+o,e.y1-o]})});return{nodes:m,links:v}};j0.props={};var H0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const U0={nodeId:e=>e.key,nodeWidth:.02,nodePadding:.02},Q0={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{stroke:"#000"}},z0={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{fillOpacity:.5,stroke:void 0}},W0={textAlign:e=>e.x[0]<.5?"start":"end",position:e=>e.x[0]<.5?"right":"left",fontSize:10},G0=e=>{const{data:t,encode:n={},scale:r,style:i={},layout:o={},nodeLabels:a=[],linkLabels:s=[],animate:l={},tooltip:c={},interaction:u,state:d={},viewStyle:h={}}=e,{links:f,nodes:p}=Sv(t,n);if(!f||0===f.length)return[P({},Q0,{data:[],encode:{},scale:r,style:Og(i,"node"),viewStyle:h,labels:[],tooltip:!1,animate:!1,axis:!1,interaction:u,state:{}}),P({},z0,{data:[],encode:{},labels:[],style:Og(i,"link"),tooltip:!1,animate:!1,interaction:u,state:{}})];const g=Og(n,"node"),m=Og(n,"link"),{key:v=e=>e.key,color:A=v}=g,{links:b,nodes:y}=j0(Object.assign(Object.assign(Object.assign({},U0),{nodeId:_v(v)}),o))({links:f,nodes:p}),w=Og(i,"label"),{text:_=v,spacing:x=5}=w,E=H0(w,["text","spacing"]),S=_v(v),C=oL(c,"node",{title:S,items:[{field:"value"}]},!0),T=oL(c,"link",{title:"",items:[e=>({name:"source",value:S(e.source)}),e=>({name:"target",value:S(e.target)})]}),[k,O]=Object.entries(d).reduce((e,[t,n])=>{const r=Dg(n,"node","link"),i=Og(n,"node");e[0][t]=Object.assign(Object.assign({},r),i);const o=Og(n,"link");return e[1][t]=Object.assign(Object.assign({},r),o),e},[{},{}]);return[P({},Q0,{data:y,encode:Object.assign(Object.assign({},g),{color:A}),scale:r,style:Og(i,"node"),viewStyle:h,labels:[Object.assign(Object.assign(Object.assign({},W0),{text:_,dx:e=>e.x[0]<.5?x:-x}),E),...a],tooltip:C,animate:lL(l,"node"),axis:!1,interaction:u,state:k}),P({},z0,{data:b,encode:m,labels:s,style:Object.assign({fill:m.color?void 0:"#aaa",lineWidth:0},Og(i,"link")),tooltip:T,animate:lL(l,"link"),interaction:u,state:O})]};function V0(e,t){return t.value-e.value}function K0(e,t){return t.frequency-e.frequency}function Y0(e,t){return`${e.id}`.localeCompare(`${t.id}`)}function q0(e,t){return`${e.name}`.localeCompare(`${t.name}`)}G0.props={};const X0={y:0,thickness:.05,weight:!1,marginRatio:.1,id:e=>e.id,source:e=>e.source,target:e=>e.target,sourceWeight:e=>e.value||1,targetWeight:e=>e.value||1,sortBy:null};function J0(e){const{y:t,thickness:n,weight:r,marginRatio:i,id:o,source:a,target:l,sourceWeight:c,targetWeight:u,sortBy:d}=Object.assign(Object.assign({},X0),e);function h(e){const t=e.nodes.map(e=>Object.assign({},e)),n=e.edges.map(e=>Object.assign({},e));return f(t,n),p(t,n),g(t,n),m(t,n),{nodes:t,edges:n}}function f(e,t){t.forEach(e=>{e.source=a(e),e.target=l(e),e.sourceWeight=c(e),e.targetWeight=u(e)});const n=Lp(t,e=>e.source),r=Lp(t,e=>e.target);return e.forEach(e=>{e.id=o(e);const t=n.has(e.id)?n.get(e.id):[],i=r.has(e.id)?r.get(e.id):[];e.frequency=t.length+i.length,e.value=uW(t,e=>e.sourceWeight)+uW(i,e=>e.targetWeight)}),{nodes:e,edges:t}}function p(e,t){const n="function"===typeof d?d:s[d];n&&e.sort(n)}function g(e,o){const a=e.length;if(!a)throw Eg("Invalid nodes: it's empty!");if(!r){const n=1/a;return e.forEach((e,r)=>{e.x=(r+.5)*n,e.y=t}),{nodes:e,edges:o}}const s=i/(2*a),l=e.reduce((e,t)=>e+t.value,0);return e.reduce((e,r)=>{r.weight=r.value/l,r.width=r.weight*(1-i),r.height=n;const o=s+e,a=o+r.width,c=t-n/2,u=c+n;return r.x=[o,a,a,o],r.y=[c,c,u,u],e+r.width+2*s},0),{nodes:e,edges:o}}function m(e,n){const i=new Map(e.map(e=>[e.id,e]));if(!r)return n.forEach(e=>{const t=a(e),n=l(e),r=i.get(t),o=i.get(n);r&&o&&(e.x=[r.x,o.x],e.y=[r.y,o.y])}),{nodes:e,edges:n};n.forEach(e=>{e.x=[0,0,0,0],e.y=[t,t,t,t]});const o=Lp(n,e=>e.source),s=Lp(n,e=>e.target);e.forEach(e=>{const{edges:t,width:n,x:r,y:i,value:a,id:l}=e,c=o.get(l)||[],u=s.get(l)||[];let d=0;c.map(e=>{const t=e.sourceWeight/a*n;e.x[0]=r[0]+d,e.x[1]=r[0]+d+t,d+=t}),u.forEach(e=>{const t=e.targetWeight/a*n;e.x[3]=r[0]+d,e.x[2]=r[0]+d+t,d+=t})})}return h}const Z0=e=>t=>J0(e)(t);Z0.props={};var e1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const t1={y:0,thickness:.05,marginRatio:.1,id:e=>e.key,source:e=>e.source,target:e=>e.target,sourceWeight:e=>e.value||1,targetWeight:e=>e.value||1,sortBy:null},n1={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{opacity:1,fillOpacity:1,lineWidth:1}},r1={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{opacity:.5,lineWidth:1}},i1={position:"outside",fontSize:10},o1=(e,t)=>{const{data:n,encode:r={},scale:i,style:o={},layout:a={},nodeLabels:s=[],linkLabels:l=[],animate:c={},tooltip:u={}}=e,{nodes:d,links:h}=Sv(n,r),f=Og(r,"node"),p=Og(r,"link"),{key:g=e=>e.key,color:m=g}=f,{linkEncodeColor:v=e=>e.source}=p,{nodeWidthRatio:A=t1.thickness,nodePaddingRatio:b=t1.marginRatio}=a,y=e1(a,["nodeWidthRatio","nodePaddingRatio"]),{nodes:w,edges:_}=Z0(Object.assign(Object.assign(Object.assign(Object.assign({},t1),{id:_v(g),thickness:A,marginRatio:b}),y),{weight:!0}))({nodes:d,edges:h}),x=Og(o,"label"),{text:E=g}=x,S=e1(x,["text"]),C=oL(u,"node",{title:"",items:[e=>({name:e.key,value:e.value})]},!0),T=oL(u,"link",{title:"",items:[e=>({name:`${e.source} -> ${e.target}`,value:e.value})]}),{height:k,width:O}=t,M=Math.min(k,O);return[P({},r1,{data:_,encode:Object.assign(Object.assign({},p),{color:v}),labels:l,style:Object.assign({fill:v?void 0:"#aaa"},Og(o,"link")),tooltip:T,animate:lL(c,"link")}),P({},n1,{data:w,encode:Object.assign(Object.assign({},f),{color:m}),scale:i,style:Og(o,"node"),coordinate:{type:"polar",outerRadius:(M-20)/M,startAngle:2*-Math.PI,endAngle:0},labels:[Object.assign(Object.assign(Object.assign({},i1),{text:E}),S),...s],tooltip:C,animate:lL(c,"node"),axis:!1})]};o1.props={};var a1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const s1=(e,t)=>({tile:"treemapSquarify",ratio:.5*(1+Math.sqrt(5)),size:[e,t],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,sort:(e,t)=>t.value-e.value,layer:0}),l1=(e,t)=>({type:"rect",axis:!1,encode:{x:"x",y:"y",key:"id",color:e=>e.path[1]},scale:{x:{domain:[0,e],range:[0,1]},y:{domain:[0,t],range:[0,1]}},style:{stroke:"#fff"},state:{active:{opacity:.6},inactive:{opacity:1}}}),c1={fontSize:10,text:e=>Xg(e.path),position:"inside",fill:"#000",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:e=>e.x1-e.x0,isTreemapLabel:!0},u1={title:e=>{var t,n;return null===(n=null===(t=e.path)||void 0===t?void 0:t.join)||void 0===n?void 0:n.call(t,".")},items:[{field:"value"}]},d1={title:e=>Xg(e.path),items:[{field:"value"}]},h1=(e,t)=>{const{width:n,height:r,options:i}=t,{data:o,encode:a={},scale:s,style:l={},layout:c={},labels:u=[],tooltip:d={}}=e,h=a1(e,["data","encode","scale","style","layout","labels","tooltip"]),f=oC(i,["interaction","treemapDrillDown"])||oC(i,["marks",0,"interaction","treemapDrillDown"]),p=P({},s1(n,r),c,{layer:f?e=>1===e.depth:c.layer}),[g,m]=CQ(o,p,a),v=Og(l,"label");return P({},l1(n,r),Object.assign(Object.assign({data:g,scale:s,style:l,labels:[Object.assign(Object.assign(Object.assign({},c1),v),f&&{cursor:"pointer"}),...u]},h),{encode:a,tooltip:aL(d,u1),axis:!1}),f?{interaction:Object.assign(Object.assign({},h.interaction),{treemapDrillDown:f?Object.assign(Object.assign({},f),{originData:m,layout:p}):void 0}),encode:Object.assign({color:e=>Xg(e.path)},a),tooltip:aL(d,d1)}:{})};function f1(){return{"data.arc":Z0,"data.cluster":BZ,"mark.forceGraph":vZ,"mark.tree":UZ,"mark.pack":y0,"mark.sankey":G0,"mark.chord":o1,"mark.treemap":h1}}h1.props={};var p1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function g1(e,t){return T_(e,e=>t[e])}function m1(e,t){return k_(e,e=>t[e])}function v1(e,t){const n=2.5*A1(e,t)-1.5*y1(e,t);return T_(e,e=>t[e]>=n?t[e]:NaN)}function A1(e,t){return aW(e,.25,e=>t[e])}function b1(e,t){return aW(e,.5,e=>t[e])}function y1(e,t){return aW(e,.75,e=>t[e])}function w1(e,t){const n=2.5*y1(e,t)-1.5*A1(e,t);return k_(e,e=>t[e]<=n?t[e]:NaN)}function _1(){return(e,t)=>{const{encode:n}=t,{y:r,x:i}=n,{value:o}=r,{value:a}=i,s=Array.from(Lp(e,e=>a[+e]).values()),l=s.flatMap(e=>{const t=v1(e,o),n=w1(e,o);return e.filter(e=>o[e]<t||o[e]>n)});return[l,t]}}const x1=e=>{const{data:t,encode:n,style:r={},tooltip:i={},transform:o,animate:a}=e,s=p1(e,["data","encode","style","tooltip","transform","animate"]),{point:l=!0}=r,c=p1(r,["point"]),{y:u}=n,d={y:u,y1:u,y2:u,y3:u,y4:u},h={y1:A1,y2:b1,y3:y1},f=oL(i,"box",{items:[{channel:"y",name:"min"},{channel:"y1",name:"q1"},{channel:"y2",name:"q2"},{channel:"y3",name:"q3"},{channel:"y4",name:"max"}]},!0),p=oL(i,"point",{title:{channel:"x"},items:[{name:"outlier",channel:"y"}]});if(!l)return Object.assign({type:"box",data:t,transform:[Object.assign(Object.assign({type:"groupX",y:g1},h),{y4:m1})],encode:Object.assign(Object.assign({},n),d),style:c,tooltip:f},s);const g=Og(c,"box"),m=Og(c,"point");return[Object.assign({type:"box",data:t,transform:[Object.assign(Object.assign({type:"groupX",y:v1},h),{y4:w1})],encode:Object.assign(Object.assign({},n),d),style:g,tooltip:f,animate:lL(a,"box")},s),{type:"point",data:t,transform:[{type:_1}],encode:n,style:Object.assign({},m),tooltip:p,animate:lL(a,"point")}]};x1.props={};const E1=(e,t)=>Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2))/2,S1=(e,t,n)=>{const r=Math.atan2(e[1]-n[1],e[0]-n[0]),i=Math.atan2(t[1]-n[1],t[0]-n[0]);let o=i-r;return o<0&&(o+=2*Math.PI),o},C1=(e,t)=>{if(!t)return;const{coordinate:n}=t;if(!(null===n||void 0===n?void 0:n.getCenter))return;const r=n.getCenter();return(n,i,o)=>{const{document:a}=t.canvas,{color:s,index:l}=i,c=a.createElement("g",{}),u=E1(n[0],n[1]),d=2*E1(n[0],r),h=S1(n[3],n[0],r)>Math.PI,f=a.createElement("path",{style:Object.assign(Object.assign(Object.assign({d:[["M",...n[0]],["A",u,u,0,1,0,...n[1]],["A",d+2*u,d+2*u,0,h?1:0,0,...n[2]],["A",u,u,0,1,0===l?0:1,...n[3]],["A",d,d,0,h?1:0,1,...n[0]],["Z"]]},o),ck(e,["shape","last","first"])),{fill:s||o.color})});return c.appendChild(f),c}};var T1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const k1=(e,t)=>{const{shape:n,radius:r}=e,i=T1(e,["shape","radius"]),o=Og(i,"pointer"),a=Og(i,"pin"),{shape:s}=o,l=T1(o,["shape"]),{shape:c}=a,u=T1(a,["shape"]),{coordinate:d,theme:h}=t;return(e,t)=>{const n=e.map(e=>d.invert(e)),[o,a,f]=Pe(d,"polar"),p=d.clone(),{color:g}=t,m=A({startAngle:o,endAngle:a,innerRadius:f,outerRadius:r});m.push(["cartesian"]),p.update({transformations:m});const v=n.map(e=>p.map(e)),[b,y]=Fm(v),[w,_]=d.getCenter(),x=Object.assign(Object.assign({x1:b,y1:y,x2:w,y2:_,stroke:g},l),i),E=Object.assign(Object.assign({cx:w,cy:_,stroke:g},u),i),S=Pg(new _h);return Lg(s)||("function"===typeof s?S.append(()=>s(v,t,p,h)):S.append("line").call(Om,x).node()),Lg(c)||("function"===typeof c?S.append(()=>c(v,t,p,h)):S.append("circle").call(Om,E).node()),S.node()}},O1={coordinate:{type:"radial",innerRadius:.9,outerRadius:1,startAngle:-1.1*Math.PI,endAngle:.1*Math.PI},axis:{x:!1},legend:!1,tooltip:!1,encode:{x:"x",y:"y",color:"color"},scale:{color:{range:["#30BF78","#D0D0D0"]}}},M1={style:{shape:k1,lineWidth:4,pointerLineCap:"round",pinR:10,pinFill:"#fff",radius:.6}},I1={type:"text",style:{x:"50%",y:"60%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"},tooltip:!1};function D1(e){if(lr(e)){const t=Math.max(0,Math.min(e,1));return{percent:t,target:t,total:1}}return e}function N1(e,t){const{name:n="score",target:r,total:i,percent:o,thresholds:a=[]}=D1(e),s=o||r,l=o?1:i,c=Object.assign({y:{domain:[0,l]}},t);return a.length?{targetData:[{x:n,y:s,color:"target"}],totalData:a.map((e,t)=>({x:n,y:t>=1?e-a[t-1]:e,color:t})),target:s,total:l,scale:c}:{targetData:[{x:n,y:s,color:"target"}],totalData:[{x:n,y:s,color:"target"},{x:n,y:l-s,color:"total"}],target:s,total:l,scale:c}}function R1(e,{target:t,total:n}){const{content:r}=e;return r?r(t,n):t.toString()}const L1=e=>{const{data:t={},scale:n={},style:r={},animate:i={},transform:o=[]}=e,a=T1(e,["data","scale","style","animate","transform"]),{targetData:s,totalData:l,target:c,total:u,scale:d}=N1(t,n),h=Og(r,"text"),{tooltip:f}=h,p=T1(h,["tooltip"]),g=Ig(r,["pointer","pin"]),m=Og(r,"arc"),v=m.shape;return[P({},O1,Object.assign({type:"interval",transform:[{type:"stackY"}],data:l,scale:d,style:"round"===v?Object.assign(Object.assign({},m),{shape:C1}):m,animate:"object"===typeof i?Og(i,"arc"):i},a)),P({},O1,M1,Object.assign({type:"point",data:s,scale:d,style:g,animate:"object"===typeof i?Og(i,"indicator"):i},a)),P({},I1,{style:Object.assign({text:R1(p,{target:c,total:u})},p),tooltip:f,animate:"object"===typeof i?Og(i,"text"):i})]};L1.props={};const B1=5e3;function P1(e,t,n){return e+(t-e)*n}function F1(e,t,n,r){return 0===t?[[e+.5*n/Math.PI/2,r/2],[e+.5*n/Math.PI,r],[e+n/4,r]]:1===t?[[e+.5*n/Math.PI/2*(Math.PI-2),r],[e+.5*n/Math.PI/2*(Math.PI-1),r/2],[e+n/4,0]]:2===t?[[e+.5*n/Math.PI/2,-r/2],[e+.5*n/Math.PI,-r],[e+n/4,-r]]:[[e+.5*n/Math.PI/2*(Math.PI-2),-r],[e+.5*n/Math.PI/2*(Math.PI-1),-r/2],[e+n/4,0]]}function $1(e,t,n,r,i,o,a){const s=4*Math.ceil(2*e/n*4),l=[];let c=r;while(c<2*-Math.PI)c+=2*Math.PI;while(c>0)c-=2*Math.PI;c=c/Math.PI/2*n;const u=o-e+c-2*e;l.push(["M",u,t]);let d=0;for(let h=0;h<s;++h){const e=h%4,r=F1(h*n/4,e,n,i);l.push(["C",r[0][0]+u,-r[0][1]+t,r[1][0]+u,-r[1][1]+t,r[2][0]+u,-r[2][1]+t]),h===s-1&&(d=r[2][0])}return l.push(["L",d+u,a+e]),l.push(["L",u,a+e]),l.push(["Z"]),l}function j1(e,t,n,r,i,o,a,s,l,c,u){const{fill:d,fillOpacity:h,opacity:f}=i;for(let p=0;p<r;p++){const i=r<=1?1:p/(r-1),g=$1(s,a+s*n,l,0,s/40,e,t),m=u.createElement("path",{style:{d:g,fill:d,opacity:P1(.2,.9,i)*Number(f||h)}});o.appendChild(m);try{if(!1===c)return;const e=[{transform:"translate(0, 0)"},{transform:`translate(${2*l}, 0)`}];m.animate(e,{duration:2*P1(.5*B1,B1,i),iterations:1/0})}catch(c4){console.warn("off-screen group animate error!")}}}function H1(e,t,n){return`\n      M ${e} ${t-n} \n      a ${n} ${n} 0 1 0 0 ${2*n}\n      a ${n} ${n} 0 1 0 0 ${2*-n}\n      Z\n    `}function U1(e,t,n){const r=.618,i=n*r;return`\n      M ${e-i} ${t-n}\n      L ${e+i} ${t-n}\n      L ${e+i} ${t+n}\n      L ${e-i} ${t+n}\n      Z\n    `}function Q1(e,t,n){return`\n      M ${e} ${t-n}\n      L ${e+n} ${t}\n      L ${e} ${t+n}\n      L ${e-n} ${t}\n      Z\n    `}function z1(e,t,n){return`\n      M ${e} ${t-n}\n      L ${e+n} ${t+n}\n      L ${e-n} ${t+n}\n      Z\n    `}function W1(e,t,n){const r=4*n/3,i=Math.max(r,2*n),o=r/2,a=e,s=o+t-i/2,l=Math.asin(o/(.85*(i-o))),c=Math.sin(l)*o,u=Math.cos(l)*o,d=a-u,h=s+c,f=e,p=s+o/Math.sin(l);return`\n      M ${d} ${h}\n      A ${o} ${o} 0 1 1 ${d+2*u} ${h}\n      Q ${f} ${p} ${e} ${t+i/2}\n      Q ${f} ${p} ${d} ${h}\n      Z \n    `}const G1={pin:W1,rect:U1,circle:H1,diamond:Q1,triangle:z1};var V1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const K1=(e="circle")=>G1[e]||G1.circle,Y1=(e,t)=>{if(!t)return;const{coordinate:n}=t,{liquidOptions:r,styleOptions:i}=e,{liquidShape:o,percent:a}=r,{background:s,outline:l={},wave:c={}}=i,u=V1(i,["background","outline","wave"]),{border:d=2,distance:h=0}=l,f=V1(l,["border","distance"]),{length:p=192,count:g=3}=c;return(e,r,i)=>{const{document:l}=t.canvas,{color:c,fillOpacity:m}=i,v=Object.assign(Object.assign({fill:c},i),u),A=l.createElement("g",{}),[b,y]=n.getCenter(),w=n.getSize(),_=Math.min(...w)/2,x=ki(o)?o:K1(o),E=x(b,y,_,...w),S=x(b,y,_+d/2,...w);if(Object.keys(s).length){const e=l.createElement("path",{style:Object.assign({d:E,fill:"#fff"},s)});A.appendChild(e)}if(a>0){const e=l.createElement("path",{style:{d:S}});A.appendChild(e),A.style.clipPath=e,j1(b,y,1-a,g,v,A,e.getBBox().y,2*_,p,!0,l)}const C=l.createElement("path",{style:{d:E,fill:"transparent",lineWidth:d+2*h,stroke:"#fff"}}),T=l.createElement("path",{style:Object.assign(Object.assign(Object.assign({d:E,stroke:c,strokeOpacity:m,lineWidth:d},v),f),{fill:"transparent"})});return A.appendChild(C),A.appendChild(T),A}};Y1.props={};var q1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const X1={axis:{x:!1,y:!1},legend:!1,tooltip:!1,encode:{x:"type",y:"percent"},scale:{y:{domain:[0,1]}},style:{shape:Y1},animate:{enter:{type:"fadeIn"}}},J1={type:"text",style:{x:"50%",y:"50%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"},animate:{enter:{type:"fadeIn"}}},Z1=e=>{const{data:t={},style:n={},animate:r}=e,i=q1(e,["data","style","animate"]),o=Math.max(0,lr(t)?t:null===t||void 0===t?void 0:t.percent),a=[{percent:o,type:"liquid"}],s=Object.assign(Object.assign({},Og(n,"text")),Og(n,"content")),l=Og(n,"outline"),c=Og(n,"wave"),u=Og(n,"background");return[P({},X1,Object.assign({type:"interval",data:a,style:{liquidOptions:{percent:o,liquidShape:null===n||void 0===n?void 0:n.shape},styleOptions:Object.assign(Object.assign({},n),{outline:l,wave:c,background:u})},animate:r},i)),P({},J1,{style:Object.assign({text:`${Kg(100*o)} %`},s),animate:r})]};function e2(e){const t=new Array(e);for(let n=0;n<e;++n)t[n]=0;return t}function t2(e,t){return e2(e).map(()=>e2(t))}function n2(e,t){let n=0;for(let r=0;r<e.length;++r)n+=e[r]*t[r];return n}function r2(e){return Math.sqrt(n2(e,e))}function i2(e,t,n){for(let r=0;r<t.length;++r)e[r]=t[r]*n}function o2(e,t,n,r,i){for(let o=0;o<e.length;++o)e[o]=t*n[o]+r*i[o]}function a2(e,t,n){n=n||{};const r=n.maxIterations||200*t.length,i=n.nonZeroDelta||1.05,o=n.zeroDelta||.001,a=n.minErrorDelta||1e-6,s=n.minErrorDelta||1e-5,l=void 0!==n.rho?n.rho:1,c=void 0!==n.chi?n.chi:2,u=void 0!==n.psi?n.psi:-.5,d=void 0!==n.sigma?n.sigma:.5;let h;const f=t.length,p=new Array(f+1);p[0]=t,p[0].fx=e(t),p[0].id=0;for(let w=0;w<f;++w){const n=t.slice();n[w]=n[w]?n[w]*i:o,p[w+1]=n,p[w+1].fx=e(n),p[w+1].id=w+1}function g(e){for(let t=0;t<e.length;t++)p[f][t]=e[t];p[f].fx=e.fx}const m=(e,t)=>e.fx-t.fx,v=t.slice(),A=t.slice(),b=t.slice(),y=t.slice();for(let w=0;w<r;++w){if(p.sort(m),n.history){const e=p.map(e=>{const t=e.slice();return t.fx=e.fx,t.id=e.id,t});e.sort((e,t)=>e.id-t.id),n.history.push({x:p[0].slice(),fx:p[0].fx,simplex:e})}h=0;for(let e=0;e<f;++e)h=Math.max(h,Math.abs(p[0][e]-p[1][e]));if(Math.abs(p[0].fx-p[f].fx)<a&&h<s)break;for(let e=0;e<f;++e){v[e]=0;for(let t=0;t<f;++t)v[e]+=p[t][e];v[e]/=f}const t=p[f];if(o2(A,1+l,v,-l,t),A.fx=e(A),A.fx<p[0].fx)o2(y,1+c,v,-c,t),y.fx=e(y),y.fx<A.fx?g(y):g(A);else if(A.fx>=p[f-1].fx){let n=!1;if(A.fx>t.fx?(o2(b,1+u,v,-u,t),b.fx=e(b),b.fx<t.fx?g(b):n=!0):(o2(b,1-u*l,v,u*l,t),b.fx=e(b),b.fx<A.fx?g(b):n=!0),n){if(d>=1)break;for(let t=1;t<p.length;++t)o2(p[t],1-d,p[0],d,p[t]),p[t].fx=e(p[t])}}else g(A)}return p.sort(m),{fx:p[0].fx,x:p[0]}}function s2(e,t,n,r){r=r||{};const i=r.maxIterations||100,o=r.tolerance||1e-10,a=e(t),s=e(n);let l=n-t;if(a*s>0)throw"Initial bisect points must have opposite signs";if(0===a)return t;if(0===s)return n;for(let c=0;c<i;++c){l/=2;const n=t+l,r=e(n);if(r*a>=0&&(t=n),Math.abs(l)<o||0===r)return n}return t+l}function l2(e,t,n,r,i,o,a){const s=n.fx,l=n2(n.fxprime,t);let c=s,u=s,d=l,h=0;function f(u,h,f){for(let p=0;p<16;++p)if(i=(u+h)/2,o2(r.x,1,n.x,i,t),c=r.fx=e(r.x,r.fxprime),d=n2(r.fxprime,t),c>s+o*i*l||c>=f)h=i;else{if(Math.abs(d)<=-a*l)return i;d*(h-u)>=0&&(h=u),u=i,f=c}return 0}i=i||1,o=o||1e-6,a=a||.1;for(let p=0;p<10;++p){if(o2(r.x,1,n.x,i,t),c=r.fx=e(r.x,r.fxprime),d=n2(r.fxprime,t),c>s+o*i*l||p&&c>=u)return f(h,i,u);if(Math.abs(d)<=-a*l)return i;if(d>=0)return f(i,h,c);u=c,h=i,i*=2}return i}function c2(e,t,n){let r={x:t.slice(),fx:0,fxprime:t.slice()},i={x:t.slice(),fx:0,fxprime:t.slice()};const o=t.slice();let a,s=1;n=n||{};const l=n.maxIterations||20*t.length;r.fx=e(r.x,r.fxprime);const c=r.fxprime.slice();i2(c,r.fxprime,-1);for(let u=0;u<l;++u){if(s=l2(e,c,r,i,s),n.history&&n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:s}),s){o2(o,1,i.fxprime,-1,r.fxprime);const e=n2(r.fxprime,r.fxprime),t=Math.max(0,n2(o,i.fxprime)/e);o2(c,t,c,-1,i.fxprime),a=r,r=i,i=a}else i2(c,r.fxprime,-1);if(r2(r.fxprime)<=1e-5)break}return n.history&&n.history.push({x:r.x.slice(),fx:r.fx,fxprime:r.fxprime.slice(),alpha:s}),r}Z1.props={};const u2=1e-10;function d2(e,t){const n=f2(e),r=n.filter(function(t){return h2(t,e)});let i,o=0,a=0;const s=[];if(r.length>1){const t=A2(r);for(i=0;i<r.length;++i){const e=r[i];e.angle=Math.atan2(e.x-t.x,e.y-t.y)}r.sort(function(e,t){return t.angle-e.angle});let n=r[r.length-1];for(i=0;i<r.length;++i){const t=r[i];a+=(n.x+t.x)*(t.y-n.y);const l={x:(t.x+n.x)/2,y:(t.y+n.y)/2};let c=null;for(let r=0;r<t.parentIndex.length;++r)if(n.parentIndex.indexOf(t.parentIndex[r])>-1){const i=e[t.parentIndex[r]],o=Math.atan2(t.x-i.x,t.y-i.y),a=Math.atan2(n.x-i.x,n.y-i.y);let s=a-o;s<0&&(s+=2*Math.PI);const u=a-s/2;let d=g2(l,{x:i.x+i.radius*Math.sin(u),y:i.y+i.radius*Math.cos(u)});d>2*i.radius&&(d=2*i.radius),(null===c||c.width>d)&&(c={circle:i,width:d,p1:t,p2:n})}null!==c&&(s.push(c),o+=p2(c.circle.radius,c.width),n=t)}}else{let t=e[0];for(i=1;i<e.length;++i)e[i].radius<t.radius&&(t=e[i]);let n=!1;for(i=0;i<e.length;++i)if(g2(e[i],t)>Math.abs(t.radius-e[i].radius)){n=!0;break}n?o=a=0:(o=t.radius*t.radius*Math.PI,s.push({circle:t,p1:{x:t.x,y:t.y+t.radius},p2:{x:t.x-u2,y:t.y+t.radius},width:2*t.radius}))}return a/=2,t&&(t.area=o+a,t.arcArea=o,t.polygonArea=a,t.arcs=s,t.innerPoints=r,t.intersectionPoints=n),o+a}function h2(e,t){for(let n=0;n<t.length;++n)if(g2(e,t[n])>t[n].radius+u2)return!1;return!0}function f2(e){const t=[];for(let n=0;n<e.length;++n)for(let r=n+1;r<e.length;++r){const i=v2(e[n],e[r]);for(let e=0;e<i.length;++e){const o=i[e];o.parentIndex=[n,r],t.push(o)}}return t}function p2(e,t){return e*e*Math.acos(1-t/e)-(e-t)*Math.sqrt(t*(2*e-t))}function g2(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))}function m2(e,t,n){if(n>=e+t)return 0;if(n<=Math.abs(e-t))return Math.PI*Math.min(e,t)*Math.min(e,t);const r=e-(n*n-t*t+e*e)/(2*n),i=t-(n*n-e*e+t*t)/(2*n);return p2(e,r)+p2(t,i)}function v2(e,t){const n=g2(e,t),r=e.radius,i=t.radius;if(n>=r+i||n<=Math.abs(r-i))return[];const o=(r*r-i*i+n*n)/(2*n),a=Math.sqrt(r*r-o*o),s=e.x+o*(t.x-e.x)/n,l=e.y+o*(t.y-e.y)/n,c=-(t.y-e.y)*(a/n),u=-(t.x-e.x)*(a/n);return[{x:s+c,y:l-u},{x:s-c,y:l+u}]}function A2(e){const t={x:0,y:0};for(let n=0;n<e.length;++n)t.x+=e[n].x,t.y+=e[n].y;return t.x/=e.length,t.y/=e.length,t}function b2(e,t){t=t||{},t.maxIterations=t.maxIterations||500;const n=t.initialLayout||S2,r=t.lossFunction||k2;e=_2(e);const i=n(e,t),o=[],a=[];let s;for(s in i)i.hasOwnProperty(s)&&(o.push(i[s].x),o.push(i[s].y),a.push(s));const l=a2(function(t){const n={};for(let e=0;e<a.length;++e){const r=a[e];n[r]={x:t[2*e],y:t[2*e+1],radius:i[r].radius}}return r(n,e)},o,t),c=l.x;for(let u=0;u<a.length;++u)s=a[u],i[s].x=c[2*u],i[s].y=c[2*u+1];return i}const y2=1e-10;function w2(e,t,n){return Math.min(e,t)*Math.min(e,t)*Math.PI<=n+y2?Math.abs(e-t):s2(function(r){return m2(e,t,r)-n},0,e+t)}function _2(e){e=e.slice();const t=[],n={};let r,i,o,a;for(r=0;r<e.length;++r){const i=e[r];1==i.sets.length?t.push(i.sets[0]):2==i.sets.length&&(o=i.sets[0],a=i.sets[1],n[[o,a]]=!0,n[[a,o]]=!0)}for(t.sort((e,t)=>e>t?1:-1),r=0;r<t.length;++r)for(o=t[r],i=r+1;i<t.length;++i)a=t[i],[o,a]in n||e.push({sets:[o,a],size:0});return e}function x2(e,t,n){const r=t2(t.length,t.length),i=t2(t.length,t.length);return e.filter(function(e){return 2==e.sets.length}).map(function(e){const o=n[e.sets[0]],a=n[e.sets[1]],s=Math.sqrt(t[o].size/Math.PI),l=Math.sqrt(t[a].size/Math.PI),c=w2(s,l,e.size);r[o][a]=r[a][o]=c;let u=0;e.size+1e-10>=Math.min(t[o].size,t[a].size)?u=1:e.size<=1e-10&&(u=-1),i[o][a]=i[a][o]=u}),{distances:r,constraints:i}}function E2(e,t,n,r){let i,o=0;for(i=0;i<t.length;++i)t[i]=0;for(i=0;i<n.length;++i){const a=e[2*i],s=e[2*i+1];for(let l=i+1;l<n.length;++l){const c=e[2*l],u=e[2*l+1],d=n[i][l],h=r[i][l],f=(c-a)*(c-a)+(u-s)*(u-s),p=Math.sqrt(f),g=f-d*d;h>0&&p<=d||h<0&&p>=d||(o+=2*g*g,t[2*i]+=4*g*(a-c),t[2*i+1]+=4*g*(s-u),t[2*l]+=4*g*(c-a),t[2*l+1]+=4*g*(u-s))}}return o}function S2(e,t){let n=T2(e,t);const r=t.lossFunction||k2;if(e.length>=8){const i=C2(e,t),o=r(i,e),a=r(n,e);o+1e-8<a&&(n=i)}return n}function C2(e,t){t=t||{};const n=t.restarts||10,r=[],i={};let o;for(o=0;o<e.length;++o){const t=e[o];1==t.sets.length&&(i[t.sets[0]]=r.length,r.push(t))}const a=x2(e,r,i);let s=a.distances;const l=a.constraints,c=r2(s.map(r2))/s.length;s=s.map(function(e){return e.map(function(e){return e/c})});const u=function(e,t){return E2(e,t,s,l)};let d,h;for(o=0;o<n;++o){const e=e2(2*s.length).map(Math.random);h=c2(u,e,t),(!d||h.fx<d.fx)&&(d=h)}const f=d.x,p={};for(o=0;o<r.length;++o){const e=r[o];p[e.sets[0]]={x:f[2*o]*c,y:f[2*o+1]*c,radius:Math.sqrt(e.size/Math.PI)}}if(t.history)for(o=0;o<t.history.length;++o)i2(t.history[o].x,c);return p}function T2(e,t){const n=t&&t.lossFunction?t.lossFunction:k2,r={},i={};let o;for(let d=0;d<e.length;++d){const t=e[d];1==t.sets.length&&(o=t.sets[0],r[o]={x:1e10,y:1e10,rowid:Object.keys(r).length,size:t.size,radius:Math.sqrt(t.size/Math.PI)},i[o]=[])}e=e.filter(function(e){return 2==e.sets.length});for(let d=0;d<e.length;++d){const t=e[d];let n=t.hasOwnProperty("weight")?t.weight:1;const o=t.sets[0],a=t.sets[1];t.size+y2>=Math.min(r[o].size,r[a].size)&&(n=0),i[o].push({set:a,size:t.size,weight:n}),i[a].push({set:o,size:t.size,weight:n})}const a=[];for(o in i)if(i.hasOwnProperty(o)){let e=0;for(let t=0;t<i[o].length;++t)e+=i[o][t].size*i[o][t].weight;a.push({set:o,size:e})}function s(e,t){return t.size-e.size}a.sort(s);const l={};function c(e){return e.set in l}function u(e,t){r[t].x=e.x,r[t].y=e.y,l[t]=!0}u({x:0,y:0},a[0].set);for(let d=1;d<a.length;++d){const t=a[d].set,l=i[t].filter(c);if(o=r[t],l.sort(s),0===l.length)throw"ERROR: missing pairwise overlap information";const h=[];for(let e=0;e<l.length;++e){const t=r[l[e].set],n=w2(o.radius,t.radius,l[e].size);h.push({x:t.x+n,y:t.y}),h.push({x:t.x-n,y:t.y}),h.push({y:t.y+n,x:t.x}),h.push({y:t.y-n,x:t.x});for(let i=e+1;i<l.length;++i){const e=r[l[i].set],a=w2(o.radius,e.radius,l[i].size),s=v2({x:t.x,y:t.y,radius:n},{x:e.x,y:e.y,radius:a});for(let t=0;t<s.length;++t)h.push(s[t])}}let f=1e50,p=h[0];for(let i=0;i<h.length;++i){r[t].x=h[i].x,r[t].y=h[i].y;const o=n(r,e);o<f&&(f=o,p=h[i])}u(p,t)}return r}function k2(e,t){let n=0;function r(t){return t.map(function(t){return e[t]})}for(let i=0;i<t.length;++i){const o=t[i];let a;if(1==o.sets.length)continue;if(2==o.sets.length){const t=e[o.sets[0]],n=e[o.sets[1]];a=m2(t.radius,n.radius,g2(t,n))}else a=d2(r(o.sets));const s=o.hasOwnProperty("weight")?o.weight:1;n+=s*(a-o.size)*(a-o.size)}return n}function O2(e){const t=function(t){const n=Math.max.apply(null,e.map(function(e){return e[t]+e.radius})),r=Math.min.apply(null,e.map(function(e){return e[t]-e.radius}));return{max:n,min:r}};return{xRange:t("x"),yRange:t("y")}}function M2(e,t,n,r){const i=[],o=[];for(const g in e)e.hasOwnProperty(g)&&(o.push(g),i.push(e[g]));t-=2*r,n-=2*r;const a=O2(i),s=a.xRange,l=a.yRange;if(s.max==s.min||l.max==l.min)return console.log("not scaling solution: zero size detected"),e;const c=t/(s.max-s.min),u=n/(l.max-l.min),d=Math.min(u,c),h=(t-(s.max-s.min)*d)/2,f=(n-(l.max-l.min)*d)/2,p={};for(let g=0;g<i.length;++g){const e=i[g];p[o[g]]={radius:d*e.radius,x:r+h+(e.x-s.min)*d,y:r+f+(e.y-l.min)*d}}return p}function I2(e,t,n){const r=[],i=e-n,o=t;return r.push("M",i,o),r.push("A",n,n,0,1,0,i+2*n,o),r.push("A",n,n,0,1,0,i,o),r.join(" ")}function D2(e){const t={};d2(e,t);const n=t.arcs;if(0===n.length)return"M 0 0";if(1==n.length){const e=n[0].circle;return I2(e.x,e.y,e.radius)}{const e=["\nM",n[0].p2.x,n[0].p2.y];for(let t=0;t<n.length;++t){const r=n[t],i=r.circle.radius,o=r.width>i;e.push("\nA",i,i,0,o?1:0,1,r.p1.x,r.p1.y)}return e.join(" ")}}const N2=e=>{const{sets:t="sets",size:n="size",as:r=["key","path"],padding:i=0}=e,[o,a]=r;return e=>{const r=e.map(e=>Object.assign(Object.assign({},e),{sets:e[t],size:e[n],[o]:e.sets.join("&")}));r.sort((e,t)=>e.sets.length-t.sets.length);const s=b2(r);let l;return r.map(e=>{const n=e[t],r=({width:e,height:t})=>{l=l||M2(s,e,t,i);const r=n.map(e=>l[e]);let o=D2(r);return/[zZ]$/.test(o)||(o+=" Z"),o};return Object.assign(Object.assign({},e),{[a]:r})})}};function R2(){return{"data.venn":N2,"mark.boxplot":x1,"mark.gauge":L1,"mark.wordCloud":V_,"mark.liquid":Z1}}function L2(){return Object.assign(Object.assign(Object.assign(Object.assign({},XX()),f1()),R2()),iK())}function B2(e,t){class n extends e{constructor(e){super(Object.assign(Object.assign({},e),{lib:t}))}}return n}
/*!
 * @antv/g-plugin-canvas-path-generator
 * @description A G plugin of path generator with Canvas2D API
 * @version 2.1.22
 * @date 7/30/2025, 1:35:25 PM
 * @author AntVis
 * @docs https://g.antv.antgroup.com/
 */
function P2(e,t){var n=t.cx,r=void 0===n?0:n,i=t.cy,o=void 0===i?0:i,a=t.r;e.arc(r,o,a,0,2*Math.PI,!1)}function F2(e,t){var n=t.cx,r=void 0===n?0:n,i=t.cy,o=void 0===i?0:i,a=t.rx,s=t.ry;if(e.ellipse)e.ellipse(r,o,a,s,0,0,2*Math.PI,!1);else{var l=a>s?a:s,c=a>s?1:a/s,u=a>s?s/a:1;e.save(),e.scale(c,u),e.arc(r,o,l,0,2*Math.PI)}}function $2(e,t){var n,r,i=t.x1,o=t.y1,a=t.x2,s=t.y2,l=t.markerStart,c=t.markerEnd,u=t.markerStartOffset,d=t.markerEndOffset,h=0,f=0,p=0,g=0,m=0;l&&dh(l)&&u&&(n=a-i,r=s-o,m=Math.atan2(r,n),h=Math.cos(m)*(u||0),f=Math.sin(m)*(u||0)),c&&dh(c)&&d&&(n=i-a,r=o-s,m=Math.atan2(r,n),p=Math.cos(m)*(d||0),g=Math.sin(m)*(d||0)),e.moveTo(i+h,o+f),e.lineTo(a+p,s+g)}function j2(e,t){var n,r,i=t.markerStart,o=t.markerEnd,a=t.markerStartOffset,s=t.markerEndOffset,l=t.d,c=l.absolutePath,u=l.segments,d=0,h=0,f=0,p=0,g=0;if(i&&dh(i)&&a){var m=i.parentNode.getStartTangent(),v=at(m,2),A=v[0],b=v[1];n=A[0]-b[0],r=A[1]-b[1],g=Math.atan2(r,n),d=Math.cos(g)*(a||0),h=Math.sin(g)*(a||0)}if(o&&dh(o)&&s){var y=o.parentNode.getEndTangent(),w=at(y,2),_=w[0],x=w[1];n=_[0]-x[0],r=_[1]-x[1],g=Math.atan2(r,n),f=Math.cos(g)*(s||0),p=Math.sin(g)*(s||0)}for(var E=0;E<c.length;E++){var S=c[E],C=S[0],T=c[E+1],k=0===E&&(0!==d||0!==h),O=(E===c.length-1||T&&("M"===T[0]||"Z"===T[0]))&&0!==f&&0!==p,M=k?[d,h]:[0,0],I=at(M,2),D=I[0],N=I[1],R=O?[f,p]:[0,0],L=at(R,2),B=L[0],P=L[1];switch(C){case"M":e.moveTo(S[1]+D,S[2]+N);break;case"L":e.lineTo(S[1]+B,S[2]+P);break;case"Q":e.quadraticCurveTo(S[1],S[2],S[3]+B,S[4]+P);break;case"C":e.bezierCurveTo(S[1],S[2],S[3],S[4],S[5]+B,S[6]+P);break;case"A":var F=u[E].arcParams,$=F.cx,j=F.cy,H=F.rx,U=F.ry,Q=F.startAngle,z=F.endAngle,W=F.xRotation,G=F.sweepFlag;if(e.ellipse)e.ellipse($,j,H,U,W,Q,z,!!(1-G));else{var V=H>U?H:U,K=H>U?1:H/U,Y=H>U?U/H:1;e.translate($,j),e.rotate(W),e.scale(K,Y),e.arc(0,0,V,Q,z,!!(1-G)),e.scale(1/K,1/Y),e.rotate(-W),e.translate(-$,-j)}O&&e.lineTo(S[6]+f,S[7]+p);break;case"Z":e.closePath();break}}}function H2(e,t){var n,r,i=t.markerStart,o=t.markerEnd,a=t.markerStartOffset,s=t.markerEndOffset,l=t.points.points,c=l.length,u=l[0][0],d=l[0][1],h=l[c-1][0],f=l[c-1][1],p=0,g=0,m=0,v=0,A=0;i&&dh(i)&&a&&(n=l[1][0]-l[0][0],r=l[1][1]-l[0][1],A=Math.atan2(r,n),p=Math.cos(A)*(a||0),g=Math.sin(A)*(a||0)),o&&dh(o)&&s&&(n=l[c-1][0]-l[0][0],r=l[c-1][1]-l[0][1],A=Math.atan2(r,n),m=Math.cos(A)*(s||0),v=Math.sin(A)*(s||0)),e.moveTo(u+(p||m),d+(g||v));for(var b=1;b<c-1;b++){var y=l[b];e.lineTo(y[0],y[1])}e.lineTo(h,f)}function U2(e,t){var n,r,i=t.markerStart,o=t.markerEnd,a=t.markerStartOffset,s=t.markerEndOffset,l=t.points.points,c=l.length,u=l[0][0],d=l[0][1],h=l[c-1][0],f=l[c-1][1],p=0,g=0,m=0,v=0,A=0;i&&dh(i)&&a&&(n=l[1][0]-l[0][0],r=l[1][1]-l[0][1],A=Math.atan2(r,n),p=Math.cos(A)*(a||0),g=Math.sin(A)*(a||0)),o&&dh(o)&&s&&(n=l[c-2][0]-l[c-1][0],r=l[c-2][1]-l[c-1][1],A=Math.atan2(r,n),m=Math.cos(A)*(s||0),v=Math.sin(A)*(s||0)),e.moveTo(u+p,d+g);for(var b=1;b<c-1;b++){var y=l[b];e.lineTo(y[0],y[1])}e.lineTo(h+m,f+v)}function Q2(e,t){var n=t.x,r=void 0===n?0:n,i=t.y,o=void 0===i?0:i,a=t.radius,s=t.width,l=t.height,c=s,u=l,d=a&&a.some(function(e){return 0!==e});if(d){var h=s>0?1:-1,f=l>0?1:-1,p=h+f===0,g=a.map(function(e){return fr(e,0,Math.min(Math.abs(c)/2,Math.abs(u)/2))}),m=at(g,4),v=m[0],A=m[1],b=m[2],y=m[3];e.moveTo(h*v+r,o),e.lineTo(c-h*A+r,o),0!==A&&e.arc(c-h*A+r,f*A+o,A,-f*Math.PI/2,h>0?0:Math.PI,p),e.lineTo(c+r,u-f*b+o),0!==b&&e.arc(c-h*b+r,u-f*b+o,b,h>0?0:Math.PI,f>0?Math.PI/2:1.5*Math.PI,p),e.lineTo(h*y+r,u+o),0!==y&&e.arc(h*y+r,u-f*y+o,y,f>0?Math.PI/2:-Math.PI/2,h>0?Math.PI:0,p),e.lineTo(r,f*v+o),0!==v&&e.arc(h*v+r,f*v+o,v,h>0?Math.PI:0,f>0?1.5*Math.PI:Math.PI/2,p)}else e.rect(r,o,c,u)}N2.props={};var z2=function(e){function t(){var e;$e(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=et(this,t,[].concat(r)),e.name="canvas-path-generator",e}return nt(t,e),Ue(t,[{key:"init",value:function(){var e,t=(e={},(0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)(e,_o.CIRCLE,P2),_o.ELLIPSE,F2),_o.RECT,Q2),_o.LINE,$2),_o.POLYLINE,U2),_o.POLYGON,H2),_o.PATH,j2),_o.TEXT,void 0),_o.GROUP,void 0),_o.IMAGE,void 0),(0,Ii.A)((0,Ii.A)((0,Ii.A)(e,_o.HTML,void 0),_o.MESH,void 0),_o.FRAGMENT,void 0));this.context.pathGeneratorFactory=t}},{key:"destroy",value:function(){delete this.context.pathGeneratorFactory}}])}(Eo),W2=ht(),G2=ht(),V2=ht(),K2=Ut(),Y2=function(){function e(){var t=this;$e(this,e),this.isHit=function(e,n,r,i){var o=t.context.pointInPathPickerFactory[e.nodeName];if(o){var a=Yt(K2,r),s=Ot(G2,vt(V2,n[0],n[1],0),a);if(o(e,new Bo(s[0],s[1]),i,t.isPointInPath,t.context,t.runtime))return!0}return!1},this.isPointInPath=function(e,n){var r=t.runtime.offscreenCanvasCreator.getOrCreateContext(t.context.config.offscreenCanvas),i=t.context.pathGeneratorFactory[e.nodeName];return i&&(r.beginPath(),i(r,e.parsedStyle),r.closePath()),r.isPointInPath(n.x,n.y)}}return Ue(e,[{key:"apply",value:function(t,n){var r,i=this,o=t.renderingService,a=t.renderingContext;this.context=t,this.runtime=n;var s=null===(r=a.root)||void 0===r?void 0:r.ownerDocument;o.hooks.pick.tapPromise(e.tag,function(){var e=mo(po().mark(function e(t){return po().wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",i.pick(s,t));case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()),o.hooks.pickSync.tap(e.tag,function(e){return i.pick(s,e)})}},{key:"pick",value:function(e,t){var n,r=t.topmost,i=t.position,o=i.x,a=i.y,s=vt(W2,o,a,0),l=e.elementsFromBBox(s[0],s[1],s[0],s[1]),c=[],u=vo(l);try{for(u.s();!(n=u.n()).done;){var d=n.value,h=d.getWorldTransform(),f=this.isHit(d,s,h,!1);if(f){var p=ru(d);if(p){var g=p.parsedStyle.clipPath,m=this.isHit(g,s,g.getWorldTransform(),!0);if(m){if(r)return t.picked=[d],t;c.push(d)}}else{if(r)return t.picked=[d],t;c.push(d)}}}}catch(v){u.e(v)}finally{u.f()}return t.picked=c,t}}])}();function q2(e,t,n){var r=e.parsedStyle,i=r.cx,o=void 0===i?0:i,a=r.cy,s=void 0===a?0:a,l=r.r,c=r.fill,u=r.stroke,d=r.lineWidth,h=void 0===d?1:d,f=r.increasedLineWidthForHitTesting,p=void 0===f?0:f,g=r.pointerEvents,m=void 0===g?"auto":g,v=(h+p)/2,A=Li(o,s,t.x,t.y),b=fu(m,c,u),y=at(b,2),w=y[0],_=y[1];return w&&_||n?A<=l+v:w?A<=l:!!_&&(A>=l-v&&A<=l+v)}function X2(e,t,n,r){return e/(n*n)+t/(r*r)}function J2(e,t,n){var r=e.parsedStyle,i=r.cx,o=void 0===i?0:i,a=r.cy,s=void 0===a?0:a,l=r.rx,c=r.ry,u=r.fill,d=r.stroke,h=r.lineWidth,f=void 0===h?1:h,p=r.increasedLineWidthForHitTesting,g=void 0===p?0:p,m=r.pointerEvents,v=void 0===m?"auto":m,A=t.x,b=t.y,y=fu(v,u,d),w=at(y,2),_=w[0],x=w[1],E=(f+g)/2,S=(A-o)*(A-o),C=(b-s)*(b-s);return _&&x||n?X2(S,C,l+E,c+E)<=1:_?X2(S,C,l,c)<=1:!!x&&(X2(S,C,l-E,c-E)>=1&&X2(S,C,l+E,c+E)<=1)}function Z2(e,t,n,r,i,o){return i>=e&&i<=e+n&&o>=t&&o<=t+r}function e3(e,t,n,r,i,o,a){var s=i/2;return Z2(e-s,t-s,n,i,o,a)||Z2(e+n-s,t-s,i,r,o,a)||Z2(e+s,t+r-s,n,i,o,a)||Z2(e-s,t+s,i,r,o,a)}function t3(e,t,n,r,i,o,a,s){var l=(Math.atan2(s-t,a-e)+2*Math.PI)%(2*Math.PI),c={x:e+n*Math.cos(l),y:t+n*Math.sin(l)};return Li(c.x,c.y,a,s)<=o/2}function n3(e,t,n,r,i,o,a){var s=Math.min(e,n),l=Math.max(e,n),c=Math.min(t,r),u=Math.max(t,r),d=i/2;return o>=s-d&&o<=l+d&&a>=c-d&&a<=u+d&&Gi(e,t,n,r,o,a)<=i/2}function r3(e,t,n,r,i){var o=e.length;if(o<2)return!1;for(var a=0;a<o-1;a++){var s=e[a][0],l=e[a][1],c=e[a+1][0],u=e[a+1][1];if(n3(s,l,c,u,t,n,r))return!0}if(i){var d=e[0],h=e[o-1];if(n3(d[0],d[1],h[0],h[1],t,n,r))return!0}return!1}Y2.tag="CanvasPicker";var i3=1e-6;function o3(e){return Math.abs(e)<i3?0:e<0?-1:1}function a3(e,t,n){return(n[0]-e[0])*(t[1]-e[1])===(t[0]-e[0])*(n[1]-e[1])&&Math.min(e[0],t[0])<=n[0]&&n[0]<=Math.max(e[0],t[0])&&Math.min(e[1],t[1])<=n[1]&&n[1]<=Math.max(e[1],t[1])}function s3(e,t,n){var r=!1,i=e.length;if(i<=2)return!1;for(var o=0;o<i;o++){var a=e[o],s=e[(o+1)%i];if(a3(a,s,[t,n]))return!0;o3(a[1]-n)>0!==o3(s[1]-n)>0&&o3(t-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(r=!r)}return r}function l3(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];if(r=s3(o,t,n),r)break}return r}function c3(e,t,n){var r=e.parsedStyle,i=r.x1,o=r.y1,a=r.x2,s=r.y2,l=r.lineWidth,c=void 0===l?1:l,u=r.increasedLineWidthForHitTesting,d=void 0===u?0:u,h=r.pointerEvents,f=void 0===h?"auto":h,p=r.fill,g=r.stroke,m=fu(f,p,g),v=at(m,2),A=v[1];return!(!A&&!n||!c)&&n3(i,o,a,s,c+d,t.x,t.y)}function u3(e,t,n,r,i){for(var o=!1,a=t/2,s=0;s<e.length;s++){var l=e[s],c=l.currentPoint,u=l.params,d=l.prePoint,h=l.box;if(!h||Z2(h.x-a,h.y-a,h.width+t,h.height+t,n,r))switch(l.command){case"L":case"Z":if(o=n3(d[0],d[1],c[0],c[1],t,n,r),o)return!0;break;case"Q":var f=io(d[0],d[1],u[1],u[2],u[3],u[4],n,r);if(o=f<=t/2,o)return!0;break;case"C":var p=Xi(d[0],d[1],u[1],u[2],u[3],u[4],u[5],u[6],n,r,i);if(o=p<=t/2,o)return!0;break;case"A":l.cubicParams||(l.cubicParams=li(d[0],d[1],u[1],u[2],u[3],u[4],u[5],u[6],u[7],void 0));for(var g=l.cubicParams,m=d,v=0;v<g.length;v+=6){var A=Xi(m[0],m[1],g[v],g[v+1],g[v+2],g[v+3],g[v+4],g[v+5],n,r,i);if(m=[g[v+4],g[v+5]],o=A<=t/2,o)return!0}break}}return o}function d3(e,t,n,r,i,o){var a=e.parsedStyle,s=a.lineWidth,l=void 0===s?1:s,c=a.increasedLineWidthForHitTesting,u=void 0===c?0:c,d=a.stroke,h=a.fill,f=a.d,p=a.pointerEvents,g=void 0===p?"auto":p,m=f.segments,v=f.hasArc,A=f.polylines,b=f.polygons,y=fu(g,(null===b||void 0===b?void 0:b.length)&&h,d),w=at(y,2),_=w[0],x=w[1],E=Ml(e),S=!1;return _||n?(S=v?r(e,t):l3(b,t.x,t.y)||l3(A,t.x,t.y),S):((x||n)&&(S=u3(m,l+u,t.x,t.y,E)),S)}function h3(e,t,n){var r=e.parsedStyle,i=r.stroke,o=r.fill,a=r.lineWidth,s=void 0===a?1:a,l=r.increasedLineWidthForHitTesting,c=void 0===l?0:l,u=r.points,d=r.pointerEvents,h=void 0===d?"auto":d,f=fu(h,o,i),p=at(f,2),g=p[0],m=p[1],v=!1;return(m||n)&&(v=r3(u.points,s+c,t.x,t.y,!0)),v||!g&&!n||(v=s3(u.points,t.x,t.y)),v}function f3(e,t,n){var r=e.parsedStyle,i=r.lineWidth,o=void 0===i?1:i,a=r.increasedLineWidthForHitTesting,s=void 0===a?0:a,l=r.points,c=r.pointerEvents,u=void 0===c?"auto":c,d=r.fill,h=r.stroke,f=fu(u,d,h),p=at(f,2),g=p[1];return!(!g&&!n||!o)&&r3(l.points,o+s,t.x,t.y,!1)}function p3(e,t,n,r,i){var o=e.parsedStyle,a=o.radius,s=o.fill,l=o.stroke,c=o.lineWidth,u=void 0===c?1:c,d=o.increasedLineWidthForHitTesting,h=void 0===d?0:d,f=o.x,p=void 0===f?0:f,g=o.y,m=void 0===g?0:g,v=o.width,A=o.height,b=o.pointerEvents,y=void 0===b?"auto":b,w=fu(y,s,l),_=at(w,2),x=_[0],E=_[1],S=a&&a.some(function(e){return 0!==e}),C=u+h;if(S){var T=!1;return(E||n)&&(T=g3(p,m,v,A,a.map(function(e){return fr(e,0,Math.min(Math.abs(v)/2,Math.abs(A)/2))}),C,t.x,t.y)),T||!x&&!n||(T=r(e,t)),T}var k=C/2;return x&&E||n?Z2(p-k,m-k,v+k,A+k,t.x,t.y):x?Z2(p,m,v,A,t.x,t.y):!!E&&e3(p,m,v,A,C,t.x,t.y)}function g3(e,t,n,r,i,o,a,s){var l=at(i,4),c=l[0],u=l[1],d=l[2],h=l[3];return n3(e+c,t,e+n-u,t,o,a,s)||n3(e+n,t+u,e+n,t+r-d,o,a,s)||n3(e+n-d,t+r,e+h,t+r,o,a,s)||n3(e,t+r-h,e,t+c,o,a,s)||t3(e+n-u,t+u,u,1.5*Math.PI,2*Math.PI,o,a,s)||t3(e+n-d,t+r-d,d,0,.5*Math.PI,o,a,s)||t3(e+h,t+r-h,h,.5*Math.PI,Math.PI,o,a,s)||t3(e+c,t+c,c,Math.PI,1.5*Math.PI,o,a,s)}function m3(e,t,n,r,i,o){var a=e.parsedStyle,s=a.pointerEvents,l=void 0===s?"auto":s,c=a.x,u=void 0===c?0:c,d=a.y,h=void 0===d?0:d,f=a.width,p=a.height;if("non-transparent-pixel"===l){var g=i.config.offscreenCanvas,m=o.offscreenCanvasCreator.getOrCreateCanvas(g),v=o.offscreenCanvasCreator.getOrCreateContext(g,{willReadFrequently:!0});m.width=f,m.height=p,i.defaultStyleRendererFactory[_o.IMAGE].render(v,(0,Fe.A)((0,Fe.A)({},e.parsedStyle),{},{x:0,y:0}),e,void 0,void 0,void 0);var A=v.getImageData(t.x-u,t.y-h,1,1).data;return A.every(function(e){return 0!==e})}return!0}function v3(e,t,n,r){var i=e.getGeometryBounds();return t.x>=i.min[0]&&t.y>=i.min[1]&&t.x<=i.max[0]&&t.y<=i.max[1]}var A3=function(e){function t(){var e;$e(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=et(this,t,[].concat(r)),e.name="canvas-picker",e}return nt(t,e),Ue(t,[{key:"init",value:function(){var e,t=(e={},(0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)(e,_o.CIRCLE,q2),_o.ELLIPSE,J2),_o.RECT,p3),_o.LINE,c3),_o.POLYLINE,f3),_o.POLYGON,h3),_o.PATH,d3),_o.TEXT,v3),_o.GROUP,null),_o.IMAGE,m3),(0,Ii.A)((0,Ii.A)(e,_o.HTML,null),_o.MESH,null));this.context.pointInPathPickerFactory=t,this.addRenderingPlugin(new Y2)}},{key:"destroy",value:function(){delete this.context.pointInPathPickerFactory,this.removeAllRenderingPlugins()}}])}(Eo);function b3(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var y3=0;function w3(e){return"__private_"+y3+++"_"+e}
/*!
 * @antv/g-plugin-image-loader
 * @description A G plugin for loading image
 * @version 2.1.26
 * @date 7/30/2025, 1:35:52 PM
 * @author AntVis
 * @docs https://g.antv.antgroup.com/
 */
var _3=function(){function e(){$e(this,e),this.cacheStore=new Map}return Ue(e,[{key:"onRefAdded",value:function(e){}},{key:"has",value:function(e){return this.cacheStore.has(e)}},{key:"put",value:function(e,t,n){return!this.cacheStore.has(e)&&(this.cacheStore.set(e,{value:t,counter:new Set([n.entity])}),this.onRefAdded(n),!0)}},{key:"get",value:function(e,t){var n=this.cacheStore.get(e);return n?(n.counter.has(t.entity)||(n.counter.add(t.entity),this.onRefAdded(t)),n.value):null}},{key:"update",value:function(e,t,n){var r=this.cacheStore.get(e);return!!r&&(r.value=(0,Fe.A)((0,Fe.A)({},r.value),t),r.counter.has(n.entity)||(r.counter.add(n.entity),this.onRefAdded(n)),!0)}},{key:"release",value:function(e,t){var n=this.cacheStore.get(e);return!!n&&(n.counter["delete"](t.entity),n.counter.size<=0&&this.cacheStore["delete"](e),!0)}},{key:"releaseRef",value:function(e){var t=this;Array.from(this.cacheStore.keys()).forEach(function(n){t.release(n,e)})}},{key:"getSize",value:function(){return this.cacheStore.size}},{key:"clear",value:function(){this.cacheStore.clear()}}])}(),x3=[],E3=[],S3=function(){function e(){$e(this,e)}return Ue(e,null,[{key:"stop",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.api;e.rafId&&(t.cancelAnimationFrame(e.rafId),e.rafId=null)}},{key:"executeTask",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.api;x3.length<=0&&E3.length<=0||(E3.forEach(function(e){return e()}),E3=x3.splice(0,e.TASK_NUM_PER_FRAME),e.rafId=t.requestAnimationFrame(function(){e.executeTask(t)}))}},{key:"sliceImage",value:function(t,n,r,i){for(var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e.api,s=t.naturalWidth||t.width,l=t.naturalHeight||t.height,c=n-o,u=r-o,d=Math.ceil(s/c),h=Math.ceil(l/u),f={tileSize:[n,r],gridSize:[h,d],tiles:Array(h).fill(null).map(function(){return Array(d).fill(null)})},p=function(e){for(var o=function(o){x3.push(function(){var d=o*c,h=e*u,p=[Math.min(n,s-d),Math.min(r,l-h)],g=p[0],m=p[1],v=a.createCanvas();v.width=n,v.height=r;var A=v.getContext("2d");A.drawImage(t,d,h,g,m,0,0,g,m),f.tiles[e][o]={x:d,y:h,tileX:o,tileY:e,data:v},i()})},h=0;h<d;h++)o(h)},g=0;g<h;g++)p(g);return e.stop(),e.executeTask(),f}}])}();S3.TASK_NUM_PER_FRAME=10;var C3=new _3;C3.onRefAdded=function(e){var t=this;e.addEventListener(yd.DESTROY,function(){t.releaseRef(e)},{once:!0})};var T3=function(){function e(t,n){$e(this,e),this.gradientCache={},this.patternCache={},this.context=t,this.runtime=n}return Ue(e,[{key:"getImageSync",value:function(e,t,n){var r=dr(e)?e:e.src;if(C3.has(r)){var i=C3.get(r,t);if(i.img.complete)return null===n||void 0===n||n(i),i}return this.getOrCreateImage(e,t).then(function(e){null===n||void 0===n||n(e)})["catch"](function(e){console.error(e)}),null}},{key:"getOrCreateImage",value:function(e,t){var n=this,r=dr(e)?e:e.src;if(!dr(e)&&!C3.has(r)){var i={img:e,size:[e.naturalWidth||e.width,e.naturalHeight||e.height],tileSize:k3(e)};C3.put(r,i,t)}if(C3.has(r)){var o=C3.get(r,t);return o.img.complete?Promise.resolve(o):new Promise(function(e,t){o.img.addEventListener("load",function(){o.size=[o.img.naturalWidth||o.img.width,o.img.naturalHeight||o.img.height],o.tileSize=k3(o.img),e(o)}),o.img.addEventListener("error",function(e){t(e)})})}return new Promise(function(e,i){var o=n.context.config.createImage();if(o){var a={img:o,size:[0,0],tileSize:k3(o)};C3.put(r,a,t),o.onload=function(){a.size=[o.naturalWidth||o.width,o.naturalHeight||o.height],a.tileSize=k3(a.img),e(a)},o.onerror=function(e){i(e)},o.crossOrigin="Anonymous",o.src=r}})}},{key:"createDownSampledImage",value:function(){var e=mo(po().mark(function e(t,n){var r,i,o,a,s,l,c,u,d,h,f,p,g,m;return po().wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=1,this.getOrCreateImage(t,n);case 1:if(r=e.sent,"undefined"===typeof r.downSamplingRate){e.next=2;break}return e.abrupt("return",r);case 2:if(i=this.context.config.enableLargeImageOptimization,o="boolean"===typeof i?{}:i,a=o.maxDownSampledImageSize,s=void 0===a?2048:a,l=o.downSamplingRateThreshold,c=void 0===l?.5:l,u=this.runtime.globalThis.createImageBitmap,d=at(r.size,2),h=d[0],f=d[1],p=r.img,g=Math.min((s+s)/(h+f),Math.max(.01,Math.min(c,.5))),m=(0,Fe.A)((0,Fe.A)({},r),{},{downSamplingRate:g}),C3.update(r.img.src,m,n),!u){e.next=7;break}return e.prev=3,e.next=4,u(r.img,{resizeWidth:h*g,resizeHeight:f*g});case 4:p=e.sent,e.next=6;break;case 5:e.prev=5,e["catch"](3),g=1;case 6:e.next=8;break;case 7:g=1;case 8:return m=(0,Fe.A)((0,Fe.A)({},this.getImageSync(t,n)),{},{downSampled:p,downSamplingRate:g}),C3.update(r.img.src,m,n),e.abrupt("return",m);case 9:case"end":return e.stop()}},e,this,[[3,5]])}));function t(t,n){return e.apply(this,arguments)}return t}()},{key:"createImageTiles",value:function(){var e=mo(po().mark(function e(t,n,r,i){var o,a,s,l,c;return po().wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=1,this.getOrCreateImage(t,i);case 1:return o=e.sent,a=i.ownerDocument.defaultView,s=a.requestAnimationFrame,l=a.cancelAnimationFrame,S3.api={requestAnimationFrame:s,cancelAnimationFrame:l,createCanvas:function(){return gd.createCanvas()}},c=(0,Fe.A)((0,Fe.A)({},o),S3.sliceImage(o.img,o.tileSize[0],o.tileSize[0],r)),C3.update(o.img.src,c,i),e.abrupt("return",c);case 2:case"end":return e.stop()}},e,this)}));function t(t,n,r,i){return e.apply(this,arguments)}return t}()},{key:"releaseImage",value:function(e,t){C3.release(dr(e)?e:e.src,t)}},{key:"releaseImageRef",value:function(e){C3.releaseRef(e)}},{key:"getOrCreatePatternSync",value:function(e,t,n,r,i,o,a){var s=this.generatePatternKey(t);if(s&&this.patternCache[s])return this.patternCache[s];var l,c=t.image,u=t.repetition,d=t.transform,h=!1;if(dr(c)){var f=this.getImageSync(c,e,a);l=null===f||void 0===f?void 0:f.img}else r?(l=r,h=!0):l=c;var p,g=l&&n.createPattern(l,u);g&&(p=d?Vu(dc(d),new mh({})):Vt(Ut()),h&&en(p,p,[1/i,1/i,1]),g.setTransform({a:p[0],b:p[1],c:p[4],d:p[5],e:p[12]+o[0],f:p[13]+o[1]}));return s&&g&&(this.patternCache[s]=g),g}},{key:"getOrCreateGradient",value:function(e,t){var n=this.generateGradientKey(e),r=e.type,i=e.steps,o=e.min,a=e.width,s=e.height,l=e.angle,c=e.cx,u=e.cy,d=e.size;if(this.gradientCache[n])return this.gradientCache[n];var h=null;if(r===Cs.LinearGradient){var f=Gs(o,a,s,l),p=f.x1,g=f.y1,m=f.x2,v=f.y2;h=t.createLinearGradient(p,g,m,v)}else if(r===Cs.RadialGradient){var A=Vs(o,a,s,c,u,d),b=A.x,y=A.y,w=A.r;h=t.createRadialGradient(b,y,0,b,y,w)}return h&&(i.forEach(function(e){var t,n=e.offset,r=e.color;n.unit===hs.kPercentage&&(null===(t=h)||void 0===t||t.addColorStop(n.value/100,r.toString()))}),this.gradientCache[n]=h),this.gradientCache[n]}},{key:"generateGradientKey",value:function(e){var t=e.type,n=e.min,r=e.width,i=e.height,o=e.steps,a=e.angle,s=e.cx,l=e.cy,c=e.size;return"gradient-".concat(t,"-").concat((null===a||void 0===a?void 0:a.toString())||0,"-").concat((null===s||void 0===s?void 0:s.toString())||0,"-").concat((null===l||void 0===l?void 0:l.toString())||0,"-").concat((null===c||void 0===c?void 0:c.toString())||0,"-").concat(n[0],"-").concat(n[1],"-").concat(r,"-").concat(i,"-").concat(o.map(function(e){var t=e.offset,n=e.color;return"".concat(t).concat(n)}).join("-"))}},{key:"generatePatternKey",value:function(e){var t=e.image,n=e.repetition;return dr(t)?"pattern-".concat(t,"-").concat(n):"rect"===t.nodeName?"pattern-".concat(t.entity,"-").concat(n):void 0}}])}();function k3(e){if(!e.complete)return[0,0];var t=e.naturalWidth||e.width,n=e.naturalHeight||e.height,r=256;return[256,512].forEach(function(e){var i=Math.ceil(n/e),o=Math.ceil(t/e);i*o<1e3&&(r=e)}),[r,r]}T3.isSupportTile=!!gd.createCanvas();var O3=function(){function e(){$e(this,e)}return Ue(e,[{key:"apply",value:function(t){var n=t.renderingService,r=t.renderingContext,i=t.imagePool,o=r.root.ownerDocument.defaultView,a=function(e,t,n){var r=e.parsedStyle,i=r.width,o=r.height;i&&!o?e.setAttribute("height",n/t*i):!i&&o&&e.setAttribute("width",t/n*o)},s=function(e){var t=e.target,r=t.nodeName,o=t.attributes;if(r===_o.IMAGE){var s=o.src,l=o.keepAspectRatio;i.getImageSync(s,t,function(e){var r=e.img,i=r.width,o=r.height;l&&a(t,i,o),t.renderable.dirty=!0,n.dirtify()})}},l=function(e){var t=e.target,r=e.attrName,o=e.prevValue,s=e.newValue;t.nodeName===_o.IMAGE&&"src"===r&&(o!==s&&i.releaseImage(o,t),dr(s)&&i.getOrCreateImage(s,t).then(function(e){var r=e.img,i=r.width,o=r.height;t.attributes.keepAspectRatio&&a(t,i,o),t.renderable.dirty=!0,n.dirtify()})["catch"](function(){}))};n.hooks.init.tap(e.tag,function(){o.addEventListener(yd.MOUNTED,s),o.addEventListener(yd.ATTR_MODIFIED,l)}),n.hooks.destroy.tap(e.tag,function(){o.removeEventListener(yd.MOUNTED,s),o.removeEventListener(yd.ATTR_MODIFIED,l)})}}])}();O3.tag="LoadImage";var M3=function(e){function t(){var e;$e(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=et(this,t,[].concat(r)),e.name="image-loader",e}return nt(t,e),Ue(t,[{key:"init",value:function(e){this.context.imagePool=new T3(this.context,e),this.addRenderingPlugin(new O3)}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}}])}(Eo),I3=w3("renderState"),D3=function(){function e(t){$e(this,e),this.removedRBushNodeAABBs=[],this.renderQueue=[],Object.defineProperty(this,I3,{writable:!0,value:{restoreStack:[],prevObject:null,currentContext:new Map}}),this.clearFullScreenLastFrame=!1,this.clearFullScreen=!1,this.vpMatrix=Ut(),this.dprMatrix=Ut(),this.tmpMat4=Ut(),this.vec3a=ht(),this.vec3b=ht(),this.vec3c=ht(),this.vec3d=ht(),this.canvasRendererPluginOptions=t}return Ue(e,[{key:"apply",value:function(t,n){var r=this;this.context=t;var i=this.context,o=i.config,a=i.camera,s=i.renderingService,l=i.renderingContext,c=i.rBushRoot,u=i.pathGeneratorFactory,d=o.renderer.getConfig().enableRenderingOptimization;o.renderer.getConfig().enableDirtyCheck=!1,o.renderer.getConfig().enableDirtyRectangleRendering=!1,this.rBush=c,this.pathGeneratorFactory=u;var h=t.contextService,f=l.root.ownerDocument.defaultView,p=function(e){var t=e.target,n=t.rBushNode;null!==n&&void 0!==n&&n.aabb&&r.removedRBushNodeAABBs.push(n.aabb)},g=function(e){var t=e.target,n=t.rBushNode;n.aabb&&r.removedRBushNodeAABBs.push(n.aabb)};s.hooks.init.tap(e.tag,function(){f.addEventListener(yd.UNMOUNTED,p),f.addEventListener(yd.CULLED,g);var e=h.getDPR(),t=o.width,n=o.height,i=h.getContext();r.clearRect(i,0,0,t*e,n*e,o.background)}),s.hooks.destroy.tap(e.tag,function(){f.removeEventListener(yd.UNMOUNTED,p),f.removeEventListener(yd.CULLED,g),r.renderQueue=[],r.removedRBushNodeAABBs=[],b3(r,I3)[I3]={restoreStack:[],prevObject:null,currentContext:null}});var m=function(){var e,t=h.getContext(),n=h.getDPR(),i=o.width,a=o.height,l=r.canvasRendererPluginOptions,c=l.dirtyObjectNumThreshold,u=l.dirtyObjectRatioThreshold,d=s.getStats(),p=d.total,g=d.rendered,m=g/p;r.clearFullScreen=r.clearFullScreenLastFrame||!(null!==(e=f.context.renderingPlugins[1])&&void 0!==e&&e.isFirstTimeRenderingFinished)||s.disableDirtyRectangleRendering()||g>c&&m>u,t&&("function"===typeof t.resetTransform?t.resetTransform():t.setTransform(1,0,0,1,0,0),r.clearFullScreen&&r.clearRect(t,0,0,i*n,a*n,o.background))},v=function(e,t){var i=[e];while(i.length>0){var o,a=i.pop();a.isVisible()&&!a.isCulled()&&(d?r.renderDisplayObjectOptimized(a,t,r.context,b3(r,I3)[I3],n):r.renderDisplayObject(a,t,r.context,b3(r,I3)[I3],n));for(var s=(null===(o=a.sortable)||void 0===o||null===(o=o.sorted)||void 0===o?void 0:o.length)>0?a.sortable.sorted:a.childNodes,l=s.length-1;l>=0;l--)i.push(s[l])}};s.hooks.endFrame.tap(e.tag,function(){if(m(),0!==l.root.childNodes.length){d=o.renderer.getConfig().enableRenderingOptimization,b3(r,I3)[I3]={restoreStack:[],prevObject:null,currentContext:b3(r,I3)[I3].currentContext},b3(r,I3)[I3].currentContext.clear(),r.clearFullScreenLastFrame=!1;var e=h.getContext(),t=h.getDPR();if(sn(r.dprMatrix,[t,t,1]),Jt(r.vpMatrix,r.dprMatrix,a.getOrthoMatrix()),r.clearFullScreen)d?(e.save(),v(l.root,e),e.restore()):v(l.root,e),r.removedRBushNodeAABBs=[];else{var i=r.safeMergeAABB.apply(r,[r.mergeDirtyAABBs(r.renderQueue)].concat(Ke(r.removedRBushNodeAABBs.map(function(e){var t=e.minX,n=e.minY,r=e.maxX,i=e.maxY,o=new Do;return o.setMinMax([t,n,0],[r,i,0]),o}))));if(r.removedRBushNodeAABBs=[],Do.isEmpty(i))return void(r.renderQueue=[]);var s=r.convertAABB2Rect(i),c=s.x,u=s.y,p=s.width,g=s.height,A=Ot(r.vec3a,[c,u,0],r.vpMatrix),b=Ot(r.vec3b,[c+p,u,0],r.vpMatrix),y=Ot(r.vec3c,[c,u+g,0],r.vpMatrix),w=Ot(r.vec3d,[c+p,u+g,0],r.vpMatrix),_=Math.min(A[0],b[0],w[0],y[0]),x=Math.min(A[1],b[1],w[1],y[1]),E=Math.max(A[0],b[0],w[0],y[0]),S=Math.max(A[1],b[1],w[1],y[1]),C=Math.floor(_),T=Math.floor(x),k=Math.ceil(E-_),O=Math.ceil(S-x);e.save(),r.clearRect(e,C,T,k,O,o.background),e.beginPath(),e.rect(C,T,k,O),e.clip(),e.setTransform(r.vpMatrix[0],r.vpMatrix[1],r.vpMatrix[4],r.vpMatrix[5],r.vpMatrix[12],r.vpMatrix[13]);var M=o.renderer.getConfig(),I=M.enableDirtyRectangleRenderingDebug;I&&f.dispatchEvent(new ud(Wh.DIRTY_RECTANGLE,{dirtyRect:{x:C,y:T,width:k,height:O}}));var D=r.searchDirtyObjects(i);D.sort(function(e,t){return e.sortable.renderOrder-t.sortable.renderOrder}).forEach(function(t){t&&t.isVisible()&&!t.isCulled()&&r.renderDisplayObject(t,e,r.context,b3(r,I3)[I3],n)}),e.restore(),r.renderQueue.forEach(function(e){r.saveDirtyAABB(e)}),r.renderQueue=[]}b3(r,I3)[I3].restoreStack.forEach(function(){e.restore()}),b3(r,I3)[I3].restoreStack=[]}else r.clearFullScreenLastFrame=!0}),s.hooks.render.tap(e.tag,function(e){r.clearFullScreen||r.renderQueue.push(e)})}},{key:"clearRect",value:function(e,t,n,r,i,o){e.clearRect(t,n,r,i),o&&(e.fillStyle=o,e.fillRect(t,n,r,i))}},{key:"renderDisplayObjectOptimized",value:function(e,t,n,r,i){var o=e.nodeName,a=!1,s=!1,l=this.context.styleRendererFactory[o],c=this.pathGeneratorFactory[o],u=e.parsedStyle.clipPath;if(u){a=!r.prevObject||!Pn(u.getWorldTransform(),r.prevObject.getWorldTransform()),a&&(this.applyWorldTransform(t,u),r.prevObject=null);var d=this.pathGeneratorFactory[u.nodeName];d&&(t.save(),s=!0,t.beginPath(),d(t,u.parsedStyle),t.closePath(),t.clip())}if(l){a=!r.prevObject||!Pn(e.getWorldTransform(),r.prevObject.getWorldTransform()),a&&this.applyWorldTransform(t,e);var h=!r.prevObject;if(!h){var f=r.prevObject.nodeName;h=o===_o.TEXT?f!==_o.TEXT:o===_o.IMAGE?f!==_o.IMAGE:f===_o.TEXT||f===_o.IMAGE}l.applyStyleToContext(t,e,h,r),r.prevObject=e}c&&(t.beginPath(),c(t,e.parsedStyle),o!==_o.LINE&&o!==_o.PATH&&o!==_o.POLYLINE&&t.closePath()),l&&l.drawToContext(t,e,b3(this,I3)[I3],this,i),s&&t.restore(),e.dirty(!1)}},{key:"renderDisplayObject",value:function(e,t,n,r,i){var o=e.nodeName,a=r.restoreStack[r.restoreStack.length-1];!a||e.compareDocumentPosition(a)&hd.DOCUMENT_POSITION_CONTAINS||(t.restore(),r.restoreStack.pop());var s=this.context.styleRendererFactory[o],l=this.pathGeneratorFactory[o],c=e.parsedStyle.clipPath;if(c){this.applyWorldTransform(t,c);var u=this.pathGeneratorFactory[c.nodeName];u&&(t.save(),r.restoreStack.push(e),t.beginPath(),u(t,c.parsedStyle),t.closePath(),t.clip())}s&&(this.applyWorldTransform(t,e),t.save(),this.applyAttributesToContext(t,e)),l&&(t.beginPath(),l(t,e.parsedStyle),o!==_o.LINE&&o!==_o.PATH&&o!==_o.POLYLINE&&t.closePath()),s&&(s.render(t,e.parsedStyle,e,n,this,i),t.restore()),e.dirty(!1)}},{key:"applyAttributesToContext",value:function(e,t){var n=t.parsedStyle,r=n.stroke,i=n.fill,o=n.opacity,a=n.lineDash,s=n.lineDashOffset;a&&e.setLineDash(a),ur(s)||(e.lineDashOffset=s),ur(o)||(e.globalAlpha*=o),ur(r)||Array.isArray(r)||r.isNone||(e.strokeStyle=t.attributes.stroke),ur(i)||Array.isArray(i)||i.isNone||(e.fillStyle=t.attributes.fill)}},{key:"convertAABB2Rect",value:function(e){var t=e.getMin(),n=e.getMax(),r=Math.floor(t[0]),i=Math.floor(t[1]),o=Math.ceil(n[0]),a=Math.ceil(n[1]),s=o-r,l=a-i;return{x:r,y:i,width:s,height:l}}},{key:"mergeDirtyAABBs",value:function(e){var t=new Do;return e.forEach(function(e){var n=e.getRenderBounds();t.add(n);var r=e.renderable.dirtyRenderBounds;r&&t.add(r)}),t}},{key:"searchDirtyObjects",value:function(e){var t=e.getMin(),n=at(t,2),r=n[0],i=n[1],o=e.getMax(),a=at(o,2),s=a[0],l=a[1],c=this.rBush.search({minX:r,minY:i,maxX:s,maxY:l});return c.map(function(e){var t=e.displayObject;return t})}},{key:"saveDirtyAABB",value:function(e){var t=e.renderable;t.dirtyRenderBounds||(t.dirtyRenderBounds=new Do);var n=e.getRenderBounds();n&&t.dirtyRenderBounds.update(n.center,n.halfExtents)}},{key:"applyWorldTransform",value:function(e,t,n){n?(zt(this.tmpMat4,t.getLocalTransform()),Jt(this.tmpMat4,n,this.tmpMat4),Jt(this.tmpMat4,this.vpMatrix,this.tmpMat4)):(zt(this.tmpMat4,t.getWorldTransform()),Jt(this.tmpMat4,this.vpMatrix,this.tmpMat4)),e.setTransform(this.tmpMat4[0],this.tmpMat4[1],this.tmpMat4[4],this.tmpMat4[5],this.tmpMat4[12],this.tmpMat4[13])}},{key:"safeMergeAABB",value:function(){for(var e=new Do,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.add(t)}),e}}])}();function N3(e,t,n,r,i,o,a){var s,l;if("rect"===e.image.nodeName){var c=e.image.parsedStyle,u=c.width,d=c.height;l=r.contextService.getDPR();var h=r.config.offscreenCanvas;s=o.offscreenCanvasCreator.getOrCreateCanvas(h),s.width=u*l,s.height=d*l;var f=o.offscreenCanvasCreator.getOrCreateContext(h),p={restoreStack:[],prevObject:null,currentContext:new Map};e.image.forEach(function(e){i.renderDisplayObject(e,f,r,p,o)}),p.restoreStack.forEach(function(){f.restore()})}var g=a.getOrCreatePatternSync(t,e,n,s,l,t.getGeometryBounds().min,function(){t.dirty(),r.renderingService.dirtify()});return g}function R3(e,t,n,r){var i;if(e.type===Cs.LinearGradient||e.type===Cs.RadialGradient){var o=t.getGeometryBounds(),a=o&&2*o.halfExtents[0]||1,s=o&&2*o.halfExtents[1]||1,l=o&&o.min||[0,0];i=r.getOrCreateGradient((0,Fe.A)((0,Fe.A)({type:e.type},e.value),{},{min:l,width:a,height:s}),n)}return i}D3.tag="CanvasRenderer";var L3=["shadowBlur","shadowOffsetX","shadowOffsetY"],B3=["lineCap","lineJoin","miterLimit"],P3={globalAlpha:1,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",filter:"none",globalCompositeOperation:"source-over",strokeStyle:"#000",strokeOpacity:1,lineWidth:1,lineDash:[],lineDashOffset:0,lineCap:"butt",lineJoin:"miter",miterLimit:10,fillStyle:"#000",fillOpacity:1},F3={};function $3(e,t,n,r){var i=r.has(t)?r.get(t):P3[t];return i!==n&&("lineDash"===t?e.setLineDash(n):e[t]=n,r.set(t,n)),i}var j3=function(){function e(t){$e(this,e),this.imagePool=t}return Ue(e,[{key:"applyAttributesToContext",value:function(e,t){}},{key:"render",value:function(e,t,n,r,i,o){}},{key:"applyCommonStyleToContext",value:function(e,t,n,r){var i=n?F3:r.prevObject.parsedStyle,o=t.parsedStyle;(n||o.opacity!==i.opacity)&&$3(e,"globalAlpha",ur(o.opacity)?P3.globalAlpha:o.opacity,r.currentContext),(n||o.blend!==i.blend)&&$3(e,"globalCompositeOperation",ur(o.blend)?P3.globalCompositeOperation:o.blend,r.currentContext)}},{key:"applyStrokeFillStyleToContext",value:function(e,t,n,r){var i=n?F3:r.prevObject.parsedStyle,o=t.parsedStyle,a=o.lineWidth,s=void 0===a?P3.lineWidth:a,l=o.fill&&!o.fill.isNone,c=o.stroke&&!o.stroke.isNone&&s>0;if(c){if(n||t.attributes.stroke!==r.prevObject.attributes.stroke){var u=ur(o.stroke)||Array.isArray(o.stroke)||o.stroke.isNone?P3.strokeStyle:t.attributes.stroke;$3(e,"strokeStyle",u,r.currentContext)}(n||o.lineWidth!==i.lineWidth)&&$3(e,"lineWidth",ur(o.lineWidth)?P3.lineWidth:o.lineWidth,r.currentContext),(n||o.lineDash!==i.lineDash)&&$3(e,"lineDash",o.lineDash||P3.lineDash,r.currentContext),(n||o.lineDashOffset!==i.lineDashOffset)&&$3(e,"lineDashOffset",ur(o.lineDashOffset)?P3.lineDashOffset:o.lineDashOffset,r.currentContext);for(var d=0;d<B3.length;d++){var h=B3[d];(n||o[h]!==i[h])&&$3(e,h,ur(o[h])?P3[h]:o[h],r.currentContext)}}if(l&&(n||t.attributes.fill!==r.prevObject.attributes.fill)){var f=ur(o.fill)||Array.isArray(o.fill)||o.fill.isNone?P3.fillStyle:t.attributes.fill;$3(e,"fillStyle",f,r.currentContext)}}},{key:"applyStyleToContext",value:function(e,t,n,r){var i=t.nodeName;this.applyCommonStyleToContext(e,t,n,r),i===_o.IMAGE||this.applyStrokeFillStyleToContext(e,t,n,r)}},{key:"applyShadowAndFilterStyleToContext",value:function(e,t,n,r){var i=t.parsedStyle;if(n){$3(e,"shadowColor",i.shadowColor.toString(),r.currentContext);for(var o=0;o<L3.length;o++){var a=L3[o];$3(e,a,i[a]||P3[a],r.currentContext)}}i.filter&&i.filter.length&&$3(e,"filter",t.attributes.filter,r.currentContext)}},{key:"clearShadowAndFilterStyleForContext",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(t){$3(e,"shadowColor",P3.shadowColor,r.currentContext);for(var o=0;o<L3.length;o++){var a=L3[o];$3(e,a,P3[a],r.currentContext)}}if(n)if(t&&i){var s=e.filter;!ur(s)&&s.indexOf("drop-shadow")>-1&&$3(e,"filter",s.replace(/drop-shadow\([^)]*\)/,"").trim()||P3.filter,r.currentContext)}else $3(e,"filter",P3.filter,r.currentContext)}},{key:"fillToContext",value:function(e,t,n,r,i){var o=this,a=t.parsedStyle,s=a.fill,l=a.fillRule,c=null;if(Array.isArray(s)&&s.length>0)s.forEach(function(r){var i=$3(e,"fillStyle",R3(r,t,e,o.imagePool),n.currentContext);c=null!==c&&void 0!==c?c:i,l?e.fill(l):e.fill()});else{if(ol(s)){var u=N3(s,t,e,t.ownerDocument.defaultView.context,r,i,this.imagePool);u&&(e.fillStyle=u,c=!0)}l?e.fill(l):e.fill()}null!==c&&$3(e,"fillStyle",c,n.currentContext)}},{key:"strokeToContext",value:function(e,t,n,r,i){var o=this,a=t.parsedStyle.stroke,s=null;if(Array.isArray(a)&&a.length>0)a.forEach(function(r){var i=$3(e,"strokeStyle",R3(r,t,e,o.imagePool),n.currentContext);s=null!==s&&void 0!==s?s:i,e.stroke()});else{if(ol(a)){var l=N3(a,t,e,t.ownerDocument.defaultView.context,r,i,this.imagePool);if(l){var c=$3(e,"strokeStyle",l,n.currentContext);s=null!==s&&void 0!==s?s:c}}e.stroke()}null!==s&&$3(e,"strokeStyle",s,n.currentContext)}},{key:"drawToContext",value:function(e,t,n,r,i){var o,a=t.nodeName,s=t.parsedStyle,l=s.opacity,c=void 0===l?P3.globalAlpha:l,u=s.fillOpacity,d=void 0===u?P3.fillOpacity:u,h=s.strokeOpacity,f=void 0===h?P3.strokeOpacity:h,p=s.lineWidth,g=void 0===p?P3.lineWidth:p,m=s.fill&&!s.fill.isNone,v=s.stroke&&!s.stroke.isNone&&g>0;if(m||v){var A=!ur(s.shadowColor)&&s.shadowBlur>0,b="inner"===s.shadowType,y=0===(null===(o=s.fill)||void 0===o?void 0:o.alpha),w=!(!s.filter||!s.filter.length),_=A&&v&&(a===_o.PATH||a===_o.LINE||a===_o.POLYLINE||y||b),x=null;if(m){_||this.applyShadowAndFilterStyleToContext(e,t,A,n);var E=c*d;x=$3(e,"globalAlpha",E,n.currentContext),this.fillToContext(e,t,n,r,i),_||this.clearShadowAndFilterStyleForContext(e,A,w,n)}if(v){var S=!1,C=c*f,T=$3(e,"globalAlpha",C,n.currentContext);if(x=m?x:T,_&&(this.applyShadowAndFilterStyleToContext(e,t,A,n),S=!0,b)){var k=e.globalCompositeOperation;e.globalCompositeOperation="source-atop",this.strokeToContext(e,t,n,r,i),e.globalCompositeOperation=k,this.clearShadowAndFilterStyleForContext(e,A,w,n,!0)}this.strokeToContext(e,t,n,r,i),S&&this.clearShadowAndFilterStyleForContext(e,A,w,n)}null!==x&&$3(e,"globalAlpha",x,n.currentContext)}}}])}(),H3=function(e){function t(){return $e(this,t),et(this,t,arguments)}return nt(t,e),Ue(t,[{key:"render",value:function(e,t,n,r,i,o){var a=t.fill,s=t.fillRule,l=t.opacity,c=void 0===l?1:l,u=t.fillOpacity,d=void 0===u?1:u,h=t.stroke,f=t.strokeOpacity,p=void 0===f?1:f,g=t.lineWidth,m=void 0===g?1:g,v=t.lineCap,A=t.lineJoin,b=t.shadowType,y=t.shadowColor,w=t.shadowBlur,_=t.filter,x=t.miterLimit,E=a&&!a.isNone,S=h&&!h.isNone&&m>0,C=0===(null===a||void 0===a?void 0:a.alpha),T=!(!_||!_.length),k=!ur(y)&&w>0,O=n.nodeName,M="inner"===b,I=S&&k&&(O===_o.PATH||O===_o.LINE||O===_o.POLYLINE||C||M);E&&(e.globalAlpha=c*d,I||U3(n,e,k),Q3(e,n,a,s,r,i,o,this.imagePool),I||this.clearShadowAndFilter(e,T,k)),S&&(e.globalAlpha=c*p,e.lineWidth=m,ur(x)||(e.miterLimit=x),ur(v)||(e.lineCap=v),ur(A)||(e.lineJoin=A),I&&(M&&(e.globalCompositeOperation="source-atop"),U3(n,e,!0),M&&(z3(e,n,h,r,i,o,this.imagePool),e.globalCompositeOperation=P3.globalCompositeOperation,this.clearShadowAndFilter(e,T,!0))),z3(e,n,h,r,i,o,this.imagePool))}},{key:"clearShadowAndFilter",value:function(e,t,n){if(n&&(e.shadowColor="transparent",e.shadowBlur=0),t){var r=e.filter;!ur(r)&&r.indexOf("drop-shadow")>-1&&(e.filter=r.replace(/drop-shadow\([^)]*\)/,"").trim()||"none")}}}])}(j3);function U3(e,t,n){var r=e.parsedStyle,i=r.filter,o=r.shadowColor,a=r.shadowBlur,s=r.shadowOffsetX,l=r.shadowOffsetY;i&&i.length&&(t.filter=e.style.filter),n&&(t.shadowColor=o.toString(),t.shadowBlur=a||0,t.shadowOffsetX=s||0,t.shadowOffsetY=l||0)}function Q3(e,t,n,r,i,o,a,s){var l=arguments.length>8&&void 0!==arguments[8]&&arguments[8];Array.isArray(n)?n.forEach(function(n){e.fillStyle=R3(n,t,e,s),l||(r?e.fill(r):e.fill())}):(ol(n)&&(e.fillStyle=N3(n,t,e,i,o,a,s)),l||(r?e.fill(r):e.fill()))}function z3(e,t,n,r,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];Array.isArray(n)?n.forEach(function(n){e.strokeStyle=R3(n,t,e,a),s||e.stroke()}):(ol(n)&&(e.strokeStyle=N3(n,t,e,r,i,o,a)),s||e.stroke())}function W3(e,t){var n=at(e,4),r=n[0],i=n[1],o=n[2],a=n[3],s=at(t,4),l=s[0],c=s[1],u=s[2],d=s[3],h=Math.max(r,l),f=Math.max(i,c),p=Math.min(r+o,l+u),g=Math.min(i+a,c+d);return p<=h||g<=f?null:[h,f,p-h,g-f]}function G3(e,t){var n=Ot(ht(),[e[0],e[1],0],t),r=Ot(ht(),[e[0]+e[2],e[1],0],t),i=Ot(ht(),[e[0],e[1]+e[3],0],t),o=Ot(ht(),[e[0]+e[2],e[1]+e[3],0],t);return[Math.min(n[0],r[0],i[0],o[0]),Math.min(n[1],r[1],i[1],o[1]),Math.max(n[0],r[0],i[0],o[0])-Math.min(n[0],r[0],i[0],o[0]),Math.max(n[1],r[1],i[1],o[1])-Math.min(n[1],r[1],i[1],o[1])]}var V3=function(e){function t(){return $e(this,t),et(this,t,arguments)}return nt(t,e),Ue(t,[{key:"renderDownSampled",value:function(e,t,n,r){var i=r.src,o=r.imageCache;o.downSampled?e.drawImage(o.downSampled,Math.floor(r.drawRect[0]),Math.floor(r.drawRect[1]),Math.ceil(r.drawRect[2]),Math.ceil(r.drawRect[3])):this.imagePool.createDownSampledImage(i,n).then(function(){n.ownerDocument&&(n.dirty(),n.ownerDocument.defaultView.context.renderingService.dirtify())})["catch"](function(e){console.error(e)})}},{key:"renderTile",value:function(e,t,n,r){var i=r.src,o=r.imageCache,a=r.imageRect,s=r.drawRect,l=o.size,c=e.getTransform(),u=c.a,d=c.b,h=c.c,f=c.d,p=c.e,g=c.f;if(e.resetTransform(),null!==o&&void 0!==o&&o.gridSize){for(var m=[l[0]/a[2],l[1]/a[3]],v=[o.tileSize[0]/m[0],o.tileSize[1]/m[1]],A=[Math.floor((s[0]-a[0])/v[0]),Math.ceil((s[0]+s[2]-a[0])/v[0])],b=A[0],y=A[1],w=[Math.floor((s[1]-a[1])/v[1]),Math.ceil((s[1]+s[3]-a[1])/v[1])],_=w[0],x=w[1],E=_;E<=x;E++)for(var S=b;S<=y;S++){var C=o.tiles[E][S];if(C){var T=[Math.floor(a[0]+C.tileX*v[0]),Math.floor(a[1]+C.tileY*v[1]),Math.ceil(v[0]),Math.ceil(v[1])];e.drawImage(C.data,T[0],T[1],T[2],T[3])}}e.setTransform(u,d,h,f,p,g)}else this.imagePool.createImageTiles(i,[],function(){n.ownerDocument&&(n.dirty(),n.ownerDocument.defaultView.context.renderingService.dirtify())},n)["catch"](function(e){console.error(e)})}},{key:"render",value:function(e,n,r){var i=n.x,o=void 0===i?0:i,a=n.y,s=void 0===a?0:a,l=n.width,c=n.height,u=n.src,d=n.shadowColor,h=n.shadowBlur,f=this.imagePool.getImageSync(u,r),p=null===f||void 0===f?void 0:f.img,g=l,m=c;if(p){g||(g=p.width),m||(m=p.height);var v=!ur(d)&&h>0;U3(r,e,v);try{var A=r.ownerDocument.defaultView.getContextService().getDomElement(),b=A.width,y=A.height,w=e.getTransform(),_=w.a,x=w.b,E=w.c,S=w.d,C=w.e,T=w.f,k=Wt(_,E,0,0,x,S,0,0,0,0,1,0,C,T,0,1),O=G3([o,s,g,m],k),M=W3([0,0,b,y],O);if(!M)return;if(!r.ownerDocument.defaultView.getConfig().enableLargeImageOptimization)return void t.renderFull(e,n,r,{image:p,drawRect:[o,s,g,m]});var I=O[2]/f.size[0];if(I<(f.downSamplingRate||.5))return void this.renderDownSampled(e,n,r,{src:u,imageCache:f,drawRect:[o,s,g,m]});if(!T3.isSupportTile)return void t.renderFull(e,n,r,{image:p,drawRect:[o,s,g,m]});this.renderTile(e,n,r,{src:u,imageCache:f,imageRect:O,drawRect:M})}catch(D){}}}},{key:"drawToContext",value:function(e,t,n,r,i){this.render(e,t.parsedStyle,t)}}],[{key:"renderFull",value:function(e,t,n,r){e.drawImage(r.image,Math.floor(r.drawRect[0]),Math.floor(r.drawRect[1]),Math.ceil(r.drawRect[2]),Math.ceil(r.drawRect[3]))}}])}(H3),K3=function(e){function t(){return $e(this,t),et(this,t,arguments)}return nt(t,e),Ue(t,[{key:"render",value:function(e,t,n,r,i,o){n.getBounds();var a=t.lineWidth,s=void 0===a?1:a,l=t.textAlign,c=void 0===l?"start":l,u=t.textBaseline,d=void 0===u?"alphabetic":u,h=t.lineJoin,f=void 0===h?"miter":h,p=t.miterLimit,g=void 0===p?10:p,m=t.letterSpacing,v=void 0===m?0:m,A=t.stroke,b=t.fill,y=t.fillRule,w=t.fillOpacity,_=void 0===w?1:w,x=t.strokeOpacity,E=void 0===x?1:x,S=t.opacity,C=void 0===S?1:S,T=t.metrics,k=t.x,O=void 0===k?0:k,M=t.y,I=void 0===M?0:M,D=t.dx,N=t.dy,R=t.shadowColor,L=t.shadowBlur,B=T.font,P=T.lines,F=T.height,$=T.lineHeight,j=T.lineMetrics;e.font=B,e.lineWidth=s,e.textAlign="middle"===c?"center":c;var H=d;"alphabetic"===H&&(H="bottom"),e.lineJoin=f,ur(g)||(e.miterLimit=g);var U=I;"middle"===d?U+=-F/2-$/2:"bottom"===d||"alphabetic"===d||"ideographic"===d?U+=-F:"top"!==d&&"hanging"!==d||(U+=-$);var Q=O+(D||0);U+=N||0,1===P.length&&("bottom"===H?(H="middle",U-=.5*F):"top"===H&&(H="middle",U+=.5*F)),e.textBaseline=H;var z=!ur(R)&&L>0;U3(n,e,z);for(var W=0;W<P.length;W++){var G=s/2+Q;U+=$,ur(A)||A.isNone||!s||this.drawLetterSpacing(e,n,P[W],j[W],c,G,U,v,b,y,_,A,E,C,!0,r,i,o),ur(b)||this.drawLetterSpacing(e,n,P[W],j[W],c,G,U,v,b,y,_,A,E,C,!1,r,i,o)}}},{key:"drawLetterSpacing",value:function(e,t,n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v){if(0!==s){var A=e.textAlign;e.textAlign="left";var b=o;"center"===i||"middle"===i?b=o-r.width/2:"right"!==i&&"end"!==i||(b=o-r.width);for(var y=Array.from(n),w=e.measureText(n).width,_=0,x=0;x<y.length;++x){var E=y[x];p?this.strokeText(e,t,E,b,a,d,h,g,m,v):this.fillText(e,t,E,b,a,l,c,u,f,g,m,v),_=e.measureText(n.substring(x+1)).width,b+=w-_+s,w=_}e.textAlign=A}else p?this.strokeText(e,t,n,o,a,d,h,g,m,v):this.fillText(e,t,n,o,a,l,c,u,f,g,m,v)}},{key:"fillText",value:function(e,t,n,r,i,o,a,s,l,c,u,d){var h;Q3(e,t,o,a,c,u,d,this.imagePool,!0);var f=!ur(s)&&1!==s;f&&(h=e.globalAlpha,e.globalAlpha=s*l),e.fillText(n,r,i),f&&(e.globalAlpha=h)}},{key:"strokeText",value:function(e,t,n,r,i,o,a,s,l,c){var u;z3(e,t,o,s,l,c,this.imagePool,!0);var d=!ur(a)&&1!==a;d&&(u=e.globalAlpha,e.globalAlpha=a),e.strokeText(n,r,i),d&&(e.globalAlpha=u)}},{key:"drawToContext",value:function(e,t,n,r,i){this.render(e,t.parsedStyle,t,t.ownerDocument.defaultView.context,r,i)}}])}(H3),Y3=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return $e(this,t),e=et(this,t),e.name="canvas-renderer",e.options=n,e}return nt(t,e),Ue(t,[{key:"init",value:function(){var e,t=(0,Fe.A)({dirtyObjectNumThreshold:500,dirtyObjectRatioThreshold:.8},this.options),n=this.context.imagePool,r=new H3(n),i=(e={},(0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)((0,Ii.A)(e,_o.CIRCLE,r),_o.ELLIPSE,r),_o.RECT,r),_o.IMAGE,new V3(n)),_o.TEXT,new K3(n)),_o.LINE,r),_o.POLYLINE,r),_o.POLYGON,r),_o.PATH,r),_o.GROUP,void 0),(0,Ii.A)((0,Ii.A)((0,Ii.A)(e,_o.HTML,void 0),_o.MESH,void 0),_o.FRAGMENT,void 0));this.context.defaultStyleRendererFactory=i,this.context.styleRendererFactory=i,this.addRenderingPlugin(new D3(t))}},{key:"destroy",value:function(){this.removeAllRenderingPlugins(),delete this.context.defaultStyleRendererFactory,delete this.context.styleRendererFactory}}])}(Eo),q3=function(){function e(){$e(this,e)}return Ue(e,[{key:"apply",value:function(t,n){var r=this,i=t.renderingService,o=t.renderingContext,a=t.config;this.context=t;var s=o.root.ownerDocument.defaultView,l=function(e){i.hooks.pointerMove.call(e)},c=function(e){i.hooks.pointerUp.call(e)},u=function(e){i.hooks.pointerDown.call(e)},d=function(e){i.hooks.pointerOver.call(e)},h=function(e){i.hooks.pointerOut.call(e)},f=function(e){i.hooks.pointerCancel.call(e)},p=function(e){i.hooks.pointerWheel.call(e)},g=function(e){i.hooks.click.call(e)},m=function(e){n.globalThis.document.addEventListener("pointermove",l,!0),e.addEventListener("pointerdown",u,!0),e.addEventListener("pointerleave",h,!0),e.addEventListener("pointerover",d,!0),n.globalThis.addEventListener("pointerup",c,!0),n.globalThis.addEventListener("pointercancel",f,!0)},v=function(e){e.addEventListener("touchstart",u,!0),e.addEventListener("touchend",c,!0),e.addEventListener("touchmove",l,!0),e.addEventListener("touchcancel",f,!0)},A=function(e){n.globalThis.document.addEventListener("mousemove",l,!0),e.addEventListener("mousedown",u,!0),e.addEventListener("mouseout",h,!0),e.addEventListener("mouseover",d,!0),n.globalThis.addEventListener("mouseup",c,!0)},b=function(e){n.globalThis.document.removeEventListener("pointermove",l,!0),e.removeEventListener("pointerdown",u,!0),e.removeEventListener("pointerleave",h,!0),e.removeEventListener("pointerover",d,!0),n.globalThis.removeEventListener("pointerup",c,!0),n.globalThis.removeEventListener("pointercancel",f,!0)},y=function(e){e.removeEventListener("touchstart",u,!0),e.removeEventListener("touchend",c,!0),e.removeEventListener("touchmove",l,!0),e.removeEventListener("touchcancel",f,!0)},w=function(e){n.globalThis.document.removeEventListener("mousemove",l,!0),e.removeEventListener("mousedown",u,!0),e.removeEventListener("mouseout",h,!0),e.removeEventListener("mouseover",d,!0),n.globalThis.removeEventListener("mouseup",c,!0)};i.hooks.init.tap(e.tag,function(){var e=r.context.contextService.getDomElement();n.globalThis.navigator.msPointerEnabled?(e.style.msContentZooming="none",e.style.msTouchAction="none"):s.supportsPointerEvents&&(e.style.touchAction="none"),s.supportsPointerEvents?m(e):A(e),s.supportsTouchEvents&&v(e),a.useNativeClickEvent&&e.addEventListener("click",g,!0),e.addEventListener("wheel",p,{passive:!0,capture:!0})}),i.hooks.destroy.tap(e.tag,function(){var e=r.context.contextService.getDomElement();n.globalThis.navigator.msPointerEnabled?(e.style.msContentZooming="",e.style.msTouchAction=""):s.supportsPointerEvents&&(e.style.touchAction=""),s.supportsPointerEvents?b(e):w(e),s.supportsTouchEvents&&y(e),a.useNativeClickEvent&&e.removeEventListener("click",g,!0),e.removeEventListener("wheel",p,!0)})}}])}();q3.tag="DOMInteraction";var X3=function(e){function t(){var e;$e(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=et(this,t,[].concat(r)),e.name="dom-interaction",e}return nt(t,e),Ue(t,[{key:"init",value:function(){this.addRenderingPlugin(new q3)}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}}])}(Eo),J3="g-canvas-camera",Z3=function(){function e(){$e(this,e),this.displayObjectHTMLElementMap=new WeakMap}return Ue(e,[{key:"joinTransformMatrix",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0];return"matrix(".concat([e[0],e[1],e[4],e[5],e[12]+t[0],e[13]+t[1]].join(","),")")}},{key:"apply",value:function(t,n){var r=this,i=t.camera,o=t.renderingContext,a=t.renderingService;this.context=t;var s=o.root.ownerDocument.defaultView,l=s.context.eventService.nativeHTMLMap,c=function(e,t){t.style.transform=r.joinTransformMatrix(e.getWorldTransform(),e.getOrigin())},u=function(e){var t=e.target;if(t.nodeName===_o.HTML){r.$camera||(r.$camera=r.createCamera(i));var n=r.getOrCreateEl(t);r.$camera.appendChild(n),Object.keys(t.attributes).forEach(function(e){r.updateAttribute(e,t)}),c(t,n),l.set(n,t)}},d=function(e){var t=e.target;if(t.nodeName===_o.HTML&&r.$camera){var n=r.getOrCreateEl(t);n&&(n.remove(),l["delete"](n))}},h=function(e){var t=e.target;if(t.nodeName===_o.HTML){var n=e.attrName;r.updateAttribute(n,t)}},f=function(e){var t=e.target,n=t.nodeName===_o.FRAGMENT?t.childNodes:[t];n.forEach(function(e){if(e.nodeName===_o.HTML){var t=r.getOrCreateEl(e);c(e,t)}})},p=function(){if(r.$camera){var e=r.context.config,t=e.width,n=e.height;r.$camera.parentElement.style.width="".concat(t||0,"px"),r.$camera.parentElement.style.height="".concat(n||0,"px")}};a.hooks.init.tap(e.tag,function(){s.addEventListener(Wh.RESIZE,p),s.addEventListener(yd.MOUNTED,u),s.addEventListener(yd.UNMOUNTED,d),s.addEventListener(yd.ATTR_MODIFIED,h),s.addEventListener(yd.BOUNDS_CHANGED,f)}),a.hooks.endFrame.tap(e.tag,function(){r.$camera&&o.renderReasons.has(md.CAMERA_CHANGED)&&(r.$camera.style.transform=r.joinTransformMatrix(i.getOrthoMatrix()))}),a.hooks.destroy.tap(e.tag,function(){r.$camera&&r.$camera.remove(),s.removeEventListener(Wh.RESIZE,p),s.removeEventListener(yd.MOUNTED,u),s.removeEventListener(yd.UNMOUNTED,d),s.removeEventListener(yd.ATTR_MODIFIED,h),s.removeEventListener(yd.BOUNDS_CHANGED,f)})}},{key:"createCamera",value:function(e){var t=this.context.config,n=t.document,r=t.width,i=t.height,o=this.context.contextService.getDomElement(),a=o.parentNode;if(a){var s=J3,l=a.querySelector("#".concat(s));if(!l){var c=(n||document).createElement("div");c.style.overflow="hidden",c.style.pointerEvents="none",c.style.position="absolute",c.style.left="0px",c.style.top="0px",c.style.width="".concat(r||0,"px"),c.style.height="".concat(i||0,"px");var u=(n||document).createElement("div");l=u,u.id=s,u.style.position="absolute",u.style.left="".concat(o.offsetLeft||0,"px"),u.style.top="".concat(o.offsetTop||0,"px"),u.style.transformOrigin="left top",u.style.transform=this.joinTransformMatrix(e.getOrthoMatrix()),u.style.pointerEvents="none",u.style.width="100%",u.style.height="100%",c.appendChild(u),a.appendChild(c)}return l}return null}},{key:"getOrCreateEl",value:function(e){var t=this.context.config.document,n=this.displayObjectHTMLElementMap.get(e);return n||(n=(t||document).createElement("div"),e.parsedStyle.$el=n,this.displayObjectHTMLElementMap.set(e,n),e.id&&(n.id=e.id),e.name&&n.setAttribute("name",e.name),e.className&&(n.className=e.className),n.style.position="absolute",n.style["will-change"]="transform",n.style.transform=this.joinTransformMatrix(e.getWorldTransform(),e.getOrigin())),n}},{key:"updateAttribute",value:function(e,t){var n=this.getOrCreateEl(t);switch(e){case"innerHTML":var r=t.parsedStyle.innerHTML;dr(r)?n.innerHTML=r:(n.innerHTML="",n.appendChild(r));break;case"x":n.style.left="".concat(t.parsedStyle.x,"px");break;case"y":n.style.top="".concat(t.parsedStyle.y,"px");break;case"transformOrigin":var i=t.parsedStyle.transformOrigin;n.style["transform-origin"]="".concat(i[0].buildCSSText(null,null,"")," ").concat(i[1].buildCSSText(null,null,""));break;case"width":var o=t.parsedStyle.width;n.style.width=lr(o)?"".concat(o,"px"):o.toString();break;case"height":var a=t.parsedStyle.height;n.style.height=lr(a)?"".concat(a,"px"):a.toString();break;case"zIndex":var s=t.parsedStyle.zIndex;n.style["z-index"]="".concat(s);break;case"visibility":var l=t.parsedStyle.visibility;n.style.visibility=l;break;case"pointerEvents":var c=t.parsedStyle.pointerEvents,u=void 0===c?"auto":c;n.style.pointerEvents=u;break;case"opacity":var d=t.parsedStyle.opacity;n.style.opacity="".concat(d);break;case"fill":var h=t.parsedStyle.fill,f="";al(h)?f=h.isNone?"transparent":t.getAttribute("fill"):Array.isArray(h)?f=t.getAttribute("fill"):ol(h),n.style.background=f;break;case"stroke":var p=t.parsedStyle.stroke,g="";al(p)?g=p.isNone?"transparent":t.getAttribute("stroke"):Array.isArray(p)?g=t.getAttribute("stroke"):ol(p),n.style["border-color"]=g,n.style["border-style"]="solid";break;case"lineWidth":var m=t.parsedStyle.lineWidth;n.style["border-width"]="".concat(m||0,"px");break;case"lineDash":n.style["border-style"]="dashed";break;case"filter":var v=t.style.filter;n.style.filter=v;break;default:ur(t.style[e])||""===t.style[e]||(n.style[e]=t.style[e])}}}])}();Z3.tag="HTMLRendering";var e4=function(e){function t(){var e;$e(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=et(this,t,[].concat(r)),e.name="html-renderer",e}return nt(t,e),Ue(t,[{key:"init",value:function(){this.addRenderingPlugin(new Z3)}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}}])}(Eo),t4=function(){function e(t){$e(this,e),this.renderingContext=t.renderingContext,this.canvasConfig=t.config}return Ue(e,[{key:"init",value:function(){var e=this.canvasConfig,t=e.container,n=e.canvas;if(n)this.$canvas=n,t&&n.parentElement!==t&&t.appendChild(n),this.$container=n.parentElement,this.canvasConfig.container=this.$container;else if(t&&(this.$container=dr(t)?document.getElementById(t):t,this.$container)){var r=document.createElement("canvas");this.$container.appendChild(r),this.$container.style.position||(this.$container.style.position="relative"),this.$canvas=r}this.context=this.$canvas.getContext("2d"),this.resize(this.canvasConfig.width,this.canvasConfig.height)}},{key:"getContext",value:function(){return this.context}},{key:"getDomElement",value:function(){return this.$canvas}},{key:"getDPR",value:function(){return this.dpr}},{key:"getBoundingClientRect",value:function(){if(this.$canvas.getBoundingClientRect)return this.$canvas.getBoundingClientRect()}},{key:"destroy",value:function(){this.$container&&this.$canvas&&this.$canvas.parentNode&&this.$container.removeChild(this.$canvas)}},{key:"resize",value:function(e,t){var n=this.canvasConfig.devicePixelRatio;this.dpr=n,this.$canvas&&(this.$canvas.width=this.dpr*e,this.$canvas.height=this.dpr*t,ou(this.$canvas,e,t)),this.renderingContext.renderReasons.add(md.CAMERA_CHANGED)}},{key:"applyCursorStyle",value:function(e){this.$container&&this.$container.style&&(this.$container.style.cursor=e)}},{key:"toDataURL",value:function(){var e=mo(po().mark(function e(){var t,n,r,i=arguments;return po().wrap(function(e){while(1)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},n=t.type,r=t.encoderOptions,e.abrupt("return",this.context.canvas.toDataURL(n,r));case 1:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()}])}(),n4=function(e){function t(){var e;$e(this,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=et(this,t,[].concat(r)),e.name="canvas-context-register",e}return nt(t,e),Ue(t,[{key:"init",value:function(){this.context.ContextService=t4}},{key:"destroy",value:function(){delete this.context.ContextService}}])}(Eo),r4=function(e){function t(e){var n;return $e(this,t),n=et(this,t,[e]),n.registerPlugin(new n4),n.registerPlugin(new M3),n.registerPlugin(new z2),n.registerPlugin(new Y3),n.registerPlugin(new X3),n.registerPlugin(new A3),n.registerPlugin(new e4),n}return nt(t,e),Ue(t)}(So),i4=function(){function e(t){$e(this,e),this.dragndropPluginOptions=t}return Ue(e,[{key:"apply",value:function(t){var n=this,r=t.renderingService,i=t.renderingContext,o=i.root.ownerDocument,a=o.defaultView,s=function(e){var t=e.target,r=t===o,i=r&&n.dragndropPluginOptions.isDocumentDraggable?o:t.closest&&t.closest("[draggable=true]");if(i){var s=!1,l=e.timeStamp,c=[e.clientX,e.clientY],u=null,d=[e.clientX,e.clientY],h=function(){var e=mo(po().mark(function e(a){var h,f,p,g,m,v;return po().wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(s){e.next=2;break}if(h=a.timeStamp-l,f=cr([a.clientX,a.clientY],c),!(h<=n.dragndropPluginOptions.dragstartTimeThreshold||f<=n.dragndropPluginOptions.dragstartDistanceThreshold)){e.next=1;break}return e.abrupt("return");case 1:a.type="dragstart",i.dispatchEvent(a),s=!0;case 2:if(a.type="drag",a.dx=a.clientX-d[0],a.dy=a.clientY-d[1],i.dispatchEvent(a),d=[a.clientX,a.clientY],r){e.next=4;break}return p="pointer"===n.dragndropPluginOptions.overlap?[a.canvasX,a.canvasY]:t.getBounds().center,e.next=3,o.elementsFromPoint(p[0],p[1]);case 3:g=e.sent,m=g[g.indexOf(t)+1],v=(null===m||void 0===m?void 0:m.closest("[droppable=true]"))||(n.dragndropPluginOptions.isDocumentDroppable?o:null),u!==v&&(u&&(a.type="dragleave",a.target=u,u.dispatchEvent(a)),v&&(a.type="dragenter",a.target=v,v.dispatchEvent(a)),u=v,u&&(a.type="dragover",a.target=u,u.dispatchEvent(a)));case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}();a.addEventListener("pointermove",h);var f=function(e){if(s){e.detail={preventClick:!0};var t=e.clone();u&&(t.type="drop",t.target=u,u.dispatchEvent(t)),t.type="dragend",i.dispatchEvent(t),s=!1}a.removeEventListener("pointermove",h)};t.addEventListener("pointerup",f,{once:!0}),t.addEventListener("pointerupoutside",f,{once:!0})}};r.hooks.init.tap(e.tag,function(){a.addEventListener("pointerdown",s)}),r.hooks.destroy.tap(e.tag,function(){a.removeEventListener("pointerdown",s)})}}])}();i4.tag="Dragndrop";var o4=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return $e(this,t),e=et(this,t),e.name="dragndrop",e.options=n,e}return nt(t,e),Ue(t,[{key:"init",value:function(){this.addRenderingPlugin(new i4((0,Fe.A)({overlap:"pointer",isDocumentDraggable:!1,isDocumentDroppable:!1,dragstartDistanceThreshold:0,dragstartTimeThreshold:0},this.options)))}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}},{key:"setOptions",value:function(e){Object.assign(this.plugins[0].dragndropPluginOptions,e)}}])}(Eo),a4="*",s4=function(){function e(){this._events={}}return e.prototype.on=function(e,t,n){return this._events[e]||(this._events[e]=[]),this._events[e].push({callback:t,once:!!n}),this},e.prototype.once=function(e,t){return this.on(e,t,!0)},e.prototype.emit=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this._events[e]||[],o=this._events[a4]||[],a=function(r){for(var i=r.length,o=0;o<i;o++)if(r[o]){var a=r[o],s=a.callback,l=a.once;l&&(r.splice(o,1),0===r.length&&delete t._events[e],i--,o--),s.apply(t,n)}};a(i),a(o)},e.prototype.off=function(e,t){if(e)if(t){for(var n=this._events[e]||[],r=n.length,i=0;i<r;i++)n[i].callback===t&&(n.splice(i,1),r--,i--);0===n.length&&delete this._events[e]}else delete this._events[e];else this._events={};return this},e.prototype.getEvents=function(){return this._events},e}(),l4=s4;const c4={abs:Math.abs,ceil:Math.ceil,floor:Math.floor,max:Math.max,min:Math.min,round:Math.round,sqrt:Math.sqrt,pow:Math.pow};class u4 extends Error{constructor(e,t,n){super(e),this.position=t,this.token=n,this.name="ExpressionError"}}var d4;!function(e){e[e.STRING=0]="STRING",e[e.NUMBER=1]="NUMBER",e[e.BOOLEAN=2]="BOOLEAN",e[e.NULL=3]="NULL",e[e.IDENTIFIER=4]="IDENTIFIER",e[e.OPERATOR=5]="OPERATOR",e[e.FUNCTION=6]="FUNCTION",e[e.DOT=7]="DOT",e[e.BRACKET_LEFT=8]="BRACKET_LEFT",e[e.BRACKET_RIGHT=9]="BRACKET_RIGHT",e[e.PAREN_LEFT=10]="PAREN_LEFT",e[e.PAREN_RIGHT=11]="PAREN_RIGHT",e[e.COMMA=12]="COMMA",e[e.QUESTION=13]="QUESTION",e[e.COLON=14]="COLON",e[e.DOLLAR=15]="DOLLAR"}(d4||(d4={}));const h4=new Set([32,9,10,13]),f4=new Set([43,45,42,47,37,33,38,124,61,60,62]),p4=new Map([["true",d4.BOOLEAN],["false",d4.BOOLEAN],["null",d4.NULL]]),g4=new Map([["===",!0],["!==",!0],["<=",!0],[">=",!0],["&&",!0],["||",!0],["+",!0],["-",!0],["*",!0],["/",!0],["%",!0],["!",!0],["<",!0],[">",!0]]),m4=new Map([[46,d4.DOT],[91,d4.BRACKET_LEFT],[93,d4.BRACKET_RIGHT],[40,d4.PAREN_LEFT],[41,d4.PAREN_RIGHT],[44,d4.COMMA],[63,d4.QUESTION],[58,d4.COLON],[36,d4.DOLLAR]]),v4=new Map;for(const[M8,I8]of m4.entries())v4.set(M8,{type:I8,value:String.fromCharCode(M8)});function A4(e){return e>=48&&e<=57}function b4(e){return e>=97&&e<=122||e>=65&&e<=90||95===e}function y4(e){return b4(e)||A4(e)}function w4(e){return f4.has(e)}var _4;!function(e){e[e.Program=0]="Program",e[e.Literal=1]="Literal",e[e.Identifier=2]="Identifier",e[e.MemberExpression=3]="MemberExpression",e[e.CallExpression=4]="CallExpression",e[e.BinaryExpression=5]="BinaryExpression",e[e.UnaryExpression=6]="UnaryExpression",e[e.ConditionalExpression=7]="ConditionalExpression"}(_4||(_4={}));const x4=new Map([["||",2],["&&",3],["===",4],["!==",4],[">",5],[">=",5],["<",5],["<=",5],["+",6],["-",6],["*",7],["/",7],["%",7],["!",8]]),E4={type:_4.Literal,value:null},S4={type:_4.Literal,value:!0},C4={type:_4.Literal,value:!1},T4=e=>{let t=0;const n=e.length,r=()=>t>=n?null:e[t],i=()=>e[t++],o=e=>{const t=r();return null!==t&&t.type===e},a=e=>e.type===d4.OPERATOR?x4.get(e.value)||-1:e.type===d4.DOT||e.type===d4.BRACKET_LEFT?9:e.type===d4.QUESTION?1:-1,s=e=>{let n,a;if(i().type===d4.DOT){if(!o(d4.IDENTIFIER)){const e=r();throw new u4("Expected property name",t,e?e.value:"<end of input>")}const e=i();n={type:_4.Identifier,name:e.value},a=!1}else{if(n=c(0),!o(d4.BRACKET_RIGHT)){const e=r();throw new u4("Expected closing bracket",t,e?e.value:"<end of input>")}i(),a=!0}return{type:_4.MemberExpression,object:e,property:n,computed:a}},l=()=>{const e=r();if(!e)throw new u4("Unexpected end of input",t,"<end of input>");if(e.type===d4.OPERATOR&&("!"===e.value||"-"===e.value)){i();const t=l();return{type:_4.UnaryExpression,operator:e.value,argument:t,prefix:!0}}switch(e.type){case d4.NUMBER:return i(),{type:_4.Literal,value:Number(e.value)};case d4.STRING:return i(),{type:_4.Literal,value:e.value};case d4.BOOLEAN:return i(),"true"===e.value?S4:C4;case d4.NULL:return i(),E4;case d4.IDENTIFIER:return i(),{type:_4.Identifier,name:e.value};case d4.FUNCTION:return(()=>{const e=i(),n=[];if(!o(d4.PAREN_LEFT)){const e=r();throw new u4("Expected opening parenthesis after function name",t,e?e.value:"<end of input>")}for(i();;){if(o(d4.PAREN_RIGHT)){i();break}if(!r()){const e=r();throw new u4("Expected closing parenthesis",t,e?e.value:"<end of input>")}if(n.length>0){if(!o(d4.COMMA)){const e=r();throw new u4("Expected comma between function arguments",t,e?e.value:"<end of input>")}i()}const e=c(0);n.push(e)}return{type:_4.CallExpression,callee:{type:_4.Identifier,name:e.value},arguments:n}})();case d4.PAREN_LEFT:{i();const e=c(0);if(!o(d4.PAREN_RIGHT)){const e=r();throw new u4("Expected closing parenthesis",t,e?e.value:"<end of input>")}return i(),e}default:throw new u4(`Unexpected token: ${e.type}`,t,e.value)}},c=(u=0)=>{let d=l();for(;t<n;){const n=e[t],l=a(n);if(l<=u)break;if(n.type!==d4.QUESTION)if(n.type!==d4.OPERATOR){if(n.type!==d4.DOT&&n.type!==d4.BRACKET_LEFT)break;d=s(d)}else{i();const e=c(l);d={type:_4.BinaryExpression,operator:n.value,left:d,right:e}}else{i();const e=c(0);if(!o(d4.COLON)){const e=r();throw new u4("Expected : in conditional expression",t,e?e.value:"<end of input>")}i();const n=c(0);d={type:_4.ConditionalExpression,test:d,consequent:e,alternate:n}}}return d},u=c();return{type:_4.Program,body:u}},k4=(e,t,n)=>{let r=t;n&&(r={...t,context:{...t.context,...n}});const i=e=>{switch(e.type){case _4.Literal:return(e=>e.value)(e);case _4.Identifier:return(e=>{if(!(e.name in r.context))throw new u4(`Undefined variable: ${e.name}`);return r.context[e.name]})(e);case _4.MemberExpression:return(e=>{const t=i(e.object);if(null==t)throw new u4("Cannot access property of null or undefined");return t[e.computed?i(e.property):e.property.name]})(e);case _4.CallExpression:return(e=>{const t=r.functions[e.callee.name];if(!t)throw new u4(`Undefined function: ${e.callee.name}`);return t(...e.arguments.map(e=>i(e)))})(e);case _4.BinaryExpression:return(e=>{if("&&"===e.operator){const t=i(e.left);return t?i(e.right):t}if("||"===e.operator)return i(e.left)||i(e.right);const t=i(e.left),n=i(e.right);switch(e.operator){case"+":return t+n;case"-":return t-n;case"*":return t*n;case"/":return t/n;case"%":return t%n;case"===":return t===n;case"!==":return t!==n;case">":return t>n;case">=":return t>=n;case"<":return t<n;case"<=":return t<=n;default:throw new u4(`Unknown operator: ${e.operator}`)}})(e);case _4.UnaryExpression:return(e=>{const t=i(e.argument);if(e.prefix)switch(e.operator){case"!":return!t;case"-":if("number"!=typeof t)throw new u4(`Cannot apply unary - to non-number: ${t}`);return-t;default:throw new u4(`Unknown operator: ${e.operator}`)}throw new u4(`Postfix operators are not supported: ${e.operator}`)})(e);case _4.ConditionalExpression:return(e=>{const t=i(e.test);return i(t?e.consequent:e.alternate)})(e);default:throw new u4(`Evaluation error: Unsupported node type: ${e.type}`)}};return i(e.body)};function O4(e){const t=(e=>{const t=e,n=t.length,r=new Array(Math.ceil(n/3));let i=0,o=0;function a(e){const r=o+1;o++;let i="",a=!1;for(;o<n;){const n=t.charCodeAt(o);if(n===e)return a||(i=t.substring(r,o)),o++,{type:d4.STRING,value:i};92===n?(a||(i=t.substring(r,o),a=!0),o++,i+=t[o]):a&&(i+=t[o]),o++}throw new u4(`Unterminated string starting with ${String.fromCharCode(e)}`,o,t.substring(Math.max(0,o-10),o))}function s(){const e=o;for(45===t.charCodeAt(o)&&o++;o<n&&A4(t.charCodeAt(o));)o++;if(o<n&&46===t.charCodeAt(o))for(o++;o<n&&A4(t.charCodeAt(o));)o++;const r=t.slice(e,o);return{type:d4.NUMBER,value:r}}function l(){o++;const e=o;if(o<n&&b4(t.charCodeAt(o)))for(o++;o<n&&y4(t.charCodeAt(o));)o++;const r=t.slice(e,o);return{type:d4.FUNCTION,value:r}}function c(){const e=o++;for(;o<n&&y4(t.charCodeAt(o));)o++;const r=t.slice(e,o),i=p4.get(r);return i?{type:i,value:r}:{type:d4.IDENTIFIER,value:r}}function u(){if(o+2<n){const e=t.substring(o,o+3);if(g4.has(e))return o+=3,{type:d4.OPERATOR,value:e}}if(o+1<n){const e=t.substring(o,o+2);if(g4.has(e))return o+=2,{type:d4.OPERATOR,value:e}}const e=t[o];if(g4.has(e))return o++,{type:d4.OPERATOR,value:e};throw new u4(`Unknown operator at position ${o}: ${t.substring(o,o+1)}`,o,t.substring(Math.max(0,o-10),o))}for(;o<n;){const e=t.charCodeAt(o);if(d=e,h4.has(d)){o++;continue}const h=v4.get(e);if(h)r[i++]=h,o++;else if(34!==e&&39!==e)if(A4(e)||45===e&&o+1<n&&A4(t.charCodeAt(o+1)))r[i++]=s();else if(64!==e)if(b4(e))r[i++]=c();else{if(!w4(e))throw new u4(`Unexpected character: ${t[o]}`,o,t.substring(Math.max(0,o-10),o));r[i++]=u()}else r[i++]=l();else r[i++]=a(e)}var d;return i===r.length?r:r.slice(0,i)})(e),n=T4(t),r=((e={},t={})=>({context:e,functions:t}))({},c4);return(e={})=>k4(n,r,e)}var M4=function(e){return e},I4=function(e,t){void 0===t&&(t=M4);var n={};return Oi(e)&&!ur(e)&&Object.keys(e).forEach(function(r){n[r]=t(e[r],r)}),n};const D4=["style","encode","labels","children"],N4=M_(e=>{const t=O4(e);return(...e)=>{const n=Array.from({length:e.length},(e,t)=>String.fromCharCode(97+t)),r=Object.fromEntries(e.map((e,t)=>[n[t],e]));return t(Object.assign(Object.assign({},r),{global:Object.assign({},r)}))}},e=>e,128);function R4(e,t=!0){if(Array.isArray(e))return e.map((n,r)=>R4(e[r],t));if("object"===typeof e&&e)return I4(e,(e,n)=>t&&D4.includes(n)?R4(e,"children"===n):t?e:R4(e,!1));if("string"===typeof e){const t=e.trim();if(t.startsWith("{")&&t.endsWith("}"))return N4(t.slice(1,-1))}return e}const L4=[["legendCategory",[[["color","discrete"],["opacity","discrete"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","constant"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","constant"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["shape","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","discrete"]],[["color","discrete"],["opacity","discrete"],["size","constant"]],[["color","discrete"],["opacity","constant"],["shape","discrete"]],[["color","discrete"],["opacity","constant"],["size","constant"]],[["color","discrete"],["shape","constant"],["size","constant"]],[["color","discrete"],["opacity","discrete"],["shape","constant"]],[["color","discrete"],["opacity","constant"],["shape","constant"]],[["color","constant"],["shape","discrete"],["size","constant"]],[["color","constant"],["opacity","discrete"],["shape","discrete"]],[["color","constant"],["opacity","discrete"],["size","constant"]],[["color","constant"],["opacity","constant"],["shape","discrete"]],[["color","constant"],["opacity","discrete"],["shape","constant"]],[["color","discrete"],["shape","discrete"]],[["color","discrete"],["size","constant"]],[["color","discrete"],["opacity","discrete"]],[["color","discrete"],["opacity","constant"]],[["color","discrete"],["shape","constant"]],[["color","constant"],["shape","discrete"]],[["color","constant"],["size","constant"]],[["color","constant"],["opacity","discrete"]],[["color","discrete"]]]],["legendContinuousSize",[[["color","continuous"],["opacity","continuous"],["size","continuous"]],[["color","constant"],["opacity","continuous"],["size","continuous"]],[["color","continuous"],["size","continuous"]],[["color","constant"],["size","continuous"]],[["size","continuous"],["opacity","continuous"]],[["size","continuous"]]]],["legendContinuousBlockSize",[[["color","distribution"],["opacity","distribution"],["size","distribution"]],[["color","distribution"],["size","distribution"]]]],["legendContinuousBlock",[[["color","distribution"],["opacity","continuous"]],[["color","distribution"]]]],["legendContinuous",[[["color","continuous"],["opacity","continuous"]],[["color","continuous"]],[["opacity","continuous"]]]]],B4={linear:"linear",identity:"identity",log:"log",pow:"pow",sqrt:"sqrt",sequential:"sequential"},P4={threshold:"threshold",quantize:"quantize",quantile:"quantile"},F4={ordinal:"ordinal",band:"band",point:"point"},$4={constant:"constant"};var j4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function H4(e,t,n){const{coordinates:r=[],title:i}=t,[,o]=fB("component",n),a=e.filter(({guide:e})=>null!==e),s=[],l=e5(t,e,n);if(s.push(...l),i){const{props:e}=o("title"),{defaultPosition:t,defaultOrientation:n,defaultOrder:r,defaultSize:a,defaultCrossPadding:l}=e,c="string"===typeof i?{title:i}:i;s.push(Object.assign({type:"title",position:t,orientation:n,order:r,crossPadding:l[0],defaultSize:a},c))}const c=K4(a,r);return c.forEach(([e,t])=>{const{props:n}=o(e),{defaultPosition:i,defaultPlane:l="xy",defaultOrientation:c,defaultSize:u,defaultOrder:d,defaultLength:h,defaultPadding:f=[0,0],defaultCrossPadding:p=[0,0]}=n,g=P({},...t),{guide:m,field:v}=g,A=Array.isArray(m)?m:[m];for(const o of A){const[n,g]=J4(e,i,c,o,t,a,r);if(!n&&!g)continue;const m="left"===n||"right"===n,A=m?f[1]:f[0],b=m?p[1]:p[0],{size:y,order:w=d,length:_=h,padding:x=A,crossPadding:E=b}=o;s.push(Object.assign(Object.assign({title:v},o),{defaultSize:u,length:_,position:n,plane:l,orientation:g,padding:x,order:w,crossPadding:E,size:y,type:e,scales:t}))}}),s}function U4(e,t,n,r,i){const[o]=fB("component",r),{scaleInstances:a,scale:s,bbox:l}=e,c=j4(e,["scaleInstances","scale","bbox"]),u={bbox:l,library:r},d=o(c);return d({coordinate:t,library:r,markState:i,scales:a,theme:n,value:u,scale:s})}function Q4(e){return e.map(e=>{const t=P(e,e.style);return delete t.style,t})}function z4(e,t){const n=["left","right","bottom","top"],r=({type:e,position:t,group:r})=>n.includes(t)?void 0===r?e.startsWith("legend")?`legend-${t}`:Symbol("independent"):"independent"===r?Symbol("independent"):r:Symbol("independent"),i=Bp(e,r);return i.flatMap(([,e])=>{if(1===e.length)return e[0];if(void 0!==t){const n=e.filter(e=>void 0!==e.length).map(e=>e.length),r=uW(n);if(r>t)return e.forEach(e=>e.group=Symbol("independent")),e;const i=t-r,o=e.length-n.length,a=i/o;e.forEach(e=>{void 0===e.length&&(e.length=a)})}const n=k_(e,e=>e.size),r=k_(e,e=>e.order),i=k_(e,e=>e.crossPadding),o=e[0].position;return{type:"group",size:n,order:r,position:o,children:e,crossPadding:i}})}function W4(e,t){const n=["shape","size","color","opacity"],r=(e,t)=>"constant"===e&&"size"===t,i=e.filter(({type:e,name:t})=>"string"===typeof e&&n.includes(t)&&!r(e,t)),o=i.filter(({type:e})=>"constant"===e),a=i.filter(({type:e})=>"constant"!==e),s=e=>e.field?e.field:Symbol("independent"),l=Bp(a,s).map(([e,t])=>[e,[...t,...o]]).filter(([,e])=>e.some(e=>"constant"!==e.type)),c=new Map(l);if(0===c.size)return[];const u=e=>e.sort(([e],[t])=>e.localeCompare(t)),d=Array.from(c).map(([,e])=>{const t=km(e).sort((e,t)=>t.length-e.length),n=t.map(e=>({combination:e,option:e.map(e=>[e.name,G4(e)])}));for(const{option:r,combination:i}of n)if(!r.every(e=>"constant"===e[1])&&r.every(e=>"discrete"===e[1]||"constant"===e[1]))return["legendCategory",i];for(const[r,i]of L4)for(const{option:e,combination:t}of n)if(i.some(t=>iD(u(t),u(e))))return[r,t];return null}).filter(Cg);return d}function G4(e){const{type:t}=e;return"string"!==typeof t?null:t in B4?"continuous":t in F4?"discrete":t in P4?"distribution":t in $4?"constant":null}function V4(e,t){return e.map(e=>{const{name:n}=e;if(f$(t)||m$(t))return null;if(p$(t)&&(h$(t)||A$(t)))return null;if(n.startsWith("x"))return h$(t)?["axisArc",[e]]:A$(t)?["axisLinear",[e]]:[p$(t)?"axisY":"axisX",[e]];if(n.startsWith("y"))return h$(t)?["axisLinear",[e]]:A$(t)?["axisArc",[e]]:[p$(t)?"axisX":"axisY",[e]];if(n.startsWith("z"))return["axisZ",[e]];if(n.startsWith("position")){if(b$(t))return["axisRadar",[e]];if(!h$(t))return["axisY",[e]]}return null}).filter(Cg)}function K4(e,t){const n=e.filter(e=>lj(e));return[...W4(n,t),...V4(n,t)]}function Y4(e){const t=d$(e,"polar");if(t.length){const e=t[t.length-1],{startAngle:n,endAngle:r}=u(e);return[n,r]}const n=d$(e,"radial");if(n.length){const e=n[n.length-1],{startAngle:t,endAngle:r}=v(e);return[t,r]}return[-Math.PI/2,Math.PI/2*3]}function q4(e){const t=/position(\d*)/g.exec(e);return t?+t[1]:null}function X4(e,t,n,r,i){const{name:o}=n[0];if("axisRadar"===e){const e=r.filter(e=>e.name.startsWith("position")),t=q4(o);if(null===t)return[null,null];const[n,a]=Y4(i),s=b$(i)?e.length:e.length-1,l=(a-n)/s*t+n;return["center",l]}if("axisY"===e&&g$(i))return p$(i)?["center","horizontal"]:["center","vertical"];if("axisLinear"===e){const[e]=Y4(i);return["center",e]}return"axisArc"===e?"inner"===t[0]?["inner",null]:["outer",null]:h$(i)||A$(i)?["center",null]:"axisX"===e&&v$(i)||"axisX"===e&&y$(i)?["top",null]:t}function J4(e,t,n,r,i,o,a){const[s]=Y4(a),l=[r.position||t,null!==s&&void 0!==s?s:n];return"string"===typeof e&&e.startsWith("axis")?X4(e,l,i,o,a):"string"===typeof e&&e.startsWith("legend")&&h$(a)&&"center"===r.position?["center","vertical"]:l}function Z4(e,t,n=[]){return"x"===e?p$(n)?`${t}Y`:`${t}X`:"y"===e?p$(n)?`${t}X`:`${t}Y`:null}function e5(e,t,n){const[,r]=fB("component",n),{coordinates:i}=e;function o(e,t,n,o){const a=Z4(t,e,i);if(!o||!a)return;const{props:s}=r(a),{defaultPosition:l,defaultSize:c,defaultOrder:u,defaultCrossPadding:[d]}=s;return Object.assign(Object.assign({position:l,defaultSize:c,order:u,type:a,crossPadding:d},o),{scales:[n]})}return t.filter(e=>e.slider||e.scrollbar).flatMap(e=>{const{slider:t,scrollbar:n,name:r}=e;return[o("slider",r,e,t),o("scrollbar",r,e,n)]}).filter(e=>!!e)}function t5(e,t,n,r,i,o){const{type:a}=e,s=["left","right","bottom","top"];if(!s.includes(r))return;if("string"!==typeof a)return;const l=a,c=()=>l.startsWith("axis")?a5:l.startsWith("group")?n5:l.startsWith("legendContinuous")?s5:"legendCategory"===l?l5:l.startsWith("slider")?o5:"title"===l?i5:l.startsWith("scrollbar")?r5:()=>{};return c()(e,t,n,r,i,o)}function n5(e,t,n,r,i,o){const{children:a}=e,s=k_(a,e=>e.crossPadding);a.forEach(e=>e.crossPadding=s),a.forEach(e=>t5(e,t,n,r,i,o));const l=k_(a,e=>e.size);e.size=l,a.forEach(e=>e.size=l)}function r5(e,t,n,r,i,o){const{trackSize:a=6}=P({},i.scrollbar,e);e.size=a}function i5(e,t,n,r,i,o){const a=P({},i.title,e),{title:s,subtitle:l,spacing:c=0}=a,u=j4(a,["title","subtitle","spacing"]);if(s){const t=Og(u,"title"),n=v5(s,t);e.size=n.height}if(l){const t=Og(u,"subtitle"),n=v5(l,t);e.size+=c+n.height}}function o5(e,t,n,r,i,o){const a=()=>{const{slider:t}=i;return P({},t,e)},{trackSize:s,handleIconSize:l}=a(),c=Math.max(s,2.4*l);e.size=c}function a5(e,t,n,r,i,o){var a,s;e.transform=e.transform||[{type:"hide"}];const l="left"===r||"right"===r,c=h5(e,r,i),{tickLength:u=0,labelSpacing:d=0,titleSpacing:h=0,labelAutoRotate:f}=c,p=j4(c,["tickLength","labelSpacing","titleSpacing","labelAutoRotate"]),g=c5(e,o),m=u5(p,g);let v=u;if("function"===typeof e.tickLength){const t=(null===(a=g.getTicks)||void 0===a?void 0:a.call(g))||g.getOptions().domain,n=t.map((t,n,r)=>e.tickLength(t,n,r));v=Math.max(...n,0)}const A=v+d;if(m&&m.length){const r=k_(m,e=>e.width),i=k_(m,e=>e.height);if(l)e.size=r+A;else{const{tickFilter:o,labelTransform:a}=e;m5(g,m,t,n,o)&&!a&&!1!==f&&null!==f?(e.labelTransform="rotate(90)",e.size=r+A):(e.labelTransform=null!==(s=e.labelTransform)&&void 0!==s?s:"rotate(0)",e.size=i+A)}}else e.size=v;const b=d5(p);b&&(e.size+=l?h+b.width:h+b.height)}function s5(e,t,n,r,i,o){const a=()=>{const{legendContinuous:t}=i;return P({},t,e)},s=a(),{labelSpacing:l=0,titleSpacing:c=0}=s,u=j4(s,["labelSpacing","titleSpacing"]),d="left"===r||"right"===r,h=Og(u,"ribbon"),{size:f}=h,p=Og(u,"handleIcon"),{size:g}=p,m=Math.max(f,2.4*g);e.size=m;const v=c5(e,o),A=u5(u,v);if(A){const t=d?"width":"height",n=k_(A,e=>e[t]);e.size+=n+l}const b=d5(u);b&&(d?e.size=Math.max(e.size,b.width):e.size+=c+b.height)}function l5(e,t,n,r,i,o){const a=()=>{const{legendCategory:t}=i,{title:n}=e,[r,o]=Array.isArray(n)?[n,void 0]:[void 0,n];return P({title:r},t,Object.assign(Object.assign({},e),{title:o}))},s=a(),{focus:l,itemSpacing:c,focusMarkerSize:u,itemMarkerSize:d,titleSpacing:h,rowPadding:f,colPadding:p,maxCols:g=1/0,maxRows:m=1/0}=s,v=j4(s,["focus","itemSpacing","focusMarkerSize","itemMarkerSize","titleSpacing","rowPadding","colPadding","maxCols","maxRows"]),{cols:A,length:b}=e,y=e=>Math.min(e,m),w=e=>Math.min(e,g),_="left"===r||"right"===r,x=void 0===b?t+(_?0:n[0]+n[1]):b,E=d5(v),S=c5(e,o),C=u5(v,S,"itemLabel"),T=Math.max(C[0].height,d)+f,k=(e,t=0)=>d+e+c[0]+t+(l?u+c[2]:0),O=()=>{let t=-1/0,n=0,r=1,i=0,o=-1/0,a=-1/0;const s=E?E.height:0,l=x-s;for(const{width:e}of C){const s=k(e,p);t=Math.max(t,s),n+T>l?(r++,o=Math.max(o,i),a=Math.max(a,n),i=1,n=T):(n+=T,i++)}r<=1&&(o=i,a=n),e.size=t*w(r),e.length=a+s,P(e,{cols:w(r),gridRow:o})},M=()=>{const t=Math.ceil(C.length/A),n=k_(C,e=>k(e.width))*A;e.size=T*y(t)-f,e.length=Math.min(n,x)},I=()=>{let t=1,n=0,r=-1/0;for(const{width:e}of C){const i=k(e,p);n+i>x?(r=Math.max(r,n),n=i,t++):n+=i}1===t&&(r=n),e.size=T*y(t)-f,e.length=r};_?O():"number"===typeof A?M():I(),E&&(_?e.size=Math.max(e.size,E.width):e.size+=h+E.height)}function c5(e,t){const[n]=fB("scale",t),{scales:r,tickCount:i,tickMethod:o}=e,a=r.find(e=>"constant"!==e.type&&"identity"!==e.type);return void 0!==i&&(a.tickCount=i),void 0!==o&&(a.tickMethod=o),n(a)}function u5(e,t,n="label"){const{labelFormatter:r,tickFilter:i,label:o=!0}=e,a=j4(e,["labelFormatter","tickFilter","label"]);if(!o)return null;const s=p5(t,r,i),l=Og(a,n),c=s.map((e,t)=>Object.fromEntries(Object.entries(l).map(([n,r])=>[n,"function"===typeof r?r(e,t):r]))),u=s.map((e,t)=>{const n=c[t];return v5(e,n)}),d=c.some(e=>e.transform);if(!d){const t=s.map((e,t)=>t);e.indexBBox=new Map(t.map(e=>[e,[s[e],u[e]]]))}return u}function d5(e){const t=e=>!1===e||null===e,{title:n}=e,r=j4(e,["title"]);if(t(n)||void 0===n)return null;const i=Og(r,"title"),{direction:o,transform:a}=i,s=Array.isArray(n)?n.join(","):n;if("string"!==typeof s)return null;const l=v5(s,Object.assign(Object.assign({},i),{transform:a||("vertical"===o?"rotate(-90)":"")}));return l}function h5(e,t,n){const{title:r}=e,[i,o]=Array.isArray(r)?[r,void 0]:[void 0,r],{axis:a,[`axis${xg(t)}`]:s}=n;return P({title:i},a,s,Object.assign(Object.assign({},e),{title:o}))}function f5(e,t){const n=e.getTicks?e.getTicks():e.getOptions().domain;return t?n.filter(t):n}function p5(e,t,n){const r=f5(e,n),i=r.map(e=>"number"===typeof e?Kg(e):e),o=t?"string"===typeof t?Tk(t):t:e.getFormatter?e.getFormatter():e=>`${e}`;return i.map(o)}function g5(e,t){if(!e.getBandWidth)return 0;const n=e.getBandWidth(t)/2;return n}function m5(e,t,n,r,i){const o=uW(t,e=>e.width);if(o>n)return!0;const a=e.clone();a.update({range:[0,n]});const s=f5(e,i),l=s.map(e=>a.map(e)+g5(a,e)),c=s.map((e,t)=>t),u=-r[0],d=n+r[1],h=(e,t)=>{const{width:n}=t;return[e-n/2,e+n/2]};for(let f=0;f<c.length;f++){const e=l[f],[n,r]=h(e,t[f]);if(n<u||r>d)return!0;const i=l[f+1];if(i){const[e]=h(i,t[f+1]);if(r>e)return!0}}return!1}function v5(e,t){const n=A5(e),{filter:r}=t,i=j4(t,["filter"]);n.attr(Object.assign(Object.assign({},i),{visibility:"none"}));const o=n.getBBox();return o}function A5(e){return e instanceof mh?e:new Bh({style:{text:`${e}`}})}function b5(e){const t=e.find(({type:e})=>"axisX"===e),n=e.find(({type:e})=>"axisY"===e),r=e.find(({type:e})=>"axisZ"===e);t&&n&&r&&(t.plane="xy",n.plane="xy",r.plane="yz",r.origin=[t.bbox.x,t.bbox.y,0],r.eulerAngles=[0,-90,0],r.bbox.x=t.bbox.x,r.bbox.y=t.bbox.y,e.push(Object.assign(Object.assign({},t),{plane:"xz",showLabel:!1,showTitle:!1,origin:[t.bbox.x,t.bbox.y,0],eulerAngles:[-90,0,0]})),e.push(Object.assign(Object.assign({},n),{plane:"yz",showLabel:!1,showTitle:!1,origin:[n.bbox.x+n.bbox.width,n.bbox.y,0],eulerAngles:[0,-90,0]})),e.push(Object.assign(Object.assign({},r),{plane:"xz",actualPosition:"left",showLabel:!1,showTitle:!1,eulerAngles:[90,-90,0]})))}function y5(e,t,n,r){var i,o;const{width:a,height:s,depth:l,x:c=0,y:u=0,z:d=0,inset:h=(null!==(i=n.inset)&&void 0!==i?i:0),insetLeft:f=h,insetTop:p=h,insetBottom:g=h,insetRight:m=h,margin:v=(null!==(o=n.margin)&&void 0!==o?o:0),marginLeft:A=v,marginBottom:b=v,marginTop:y=v,marginRight:w=v,padding:_=n.padding,paddingBottom:x=_,paddingLeft:E=_,paddingRight:S=_,paddingTop:C=_}=_5(e,t,n,r),T=1/4,k=(e,n,r,i,o)=>{const{marks:a}=t;if(0===a.length)return[i,o];const s=e-i-o,l=s-e*T;if(l>0)return[i,o];const c=e*(1-T);return["auto"===n?c*i/(i+o):i,"auto"===r?c*o/(i+o):o]},O=e=>"auto"===e?20:null!==e&&void 0!==e?e:20,M=O(C),I=O(x),D=x5(e,s-M-I,[M+y,I+b],["left","right"],t,n,r),{paddingLeft:N,paddingRight:R}=D,L=a-A-w,[B,P]=k(L,E,S,N,R),F=L-B-P,$=x5(e,F,[B+A,P+w],["bottom","top"],t,n,r),{paddingTop:j,paddingBottom:H}=$,U=s-b-y,[Q,z]=k(U,x,C,H,j),W=U-Q-z;return{width:a,height:s,depth:l,insetLeft:f,insetTop:p,insetBottom:g,insetRight:m,innerWidth:F,innerHeight:W,paddingLeft:B,paddingRight:P,paddingTop:z,paddingBottom:Q,marginLeft:A,marginBottom:b,marginTop:y,marginRight:w,x:c,y:u,z:d}}function w5(e){const{height:t,width:n,padding:r=0,paddingLeft:i=r,paddingRight:o=r,paddingTop:a=r,paddingBottom:s=r,margin:l=16,marginLeft:c=l,marginRight:u=l,marginTop:d=l,marginBottom:h=l,inset:f=0,insetLeft:p=f,insetRight:g=f,insetTop:m=f,insetBottom:v=f}=e,A=e=>"auto"===e?20:e,b=n-A(i)-A(o)-c-u-p-g,y=t-A(a)-A(s)-d-h-m-v;return{width:b,height:y}}function _5(e,t,n,r){const{coordinates:i}=t;if(!h$(i)&&!A$(i))return t;const o=e.filter(e=>"string"===typeof e.type&&e.type.startsWith("axis"));if(0===o.length)return t;const a=o.map(e=>{const t="axisArc"===e.type?"arc":"linear";return h5(e,t,n)}),s=k_(a,e=>{var t;return null!==(t=e.labelSpacing)&&void 0!==t?t:0}),l=o.flatMap((e,t)=>{const n=a[t],i=c5(e,r),o=u5(n,i);return o}).filter(Cg),c=k_(l,e=>e.height)+s,u=o.flatMap((e,t)=>{const n=a[t];return d5(n)}).filter(e=>null!==e),d=0===u.length?0:k_(u,e=>e.height),{inset:h=c,insetLeft:f=h,insetBottom:p=h,insetTop:g=h+d,insetRight:m=h}=t;return Object.assign(Object.assign({},t),{insetLeft:f,insetBottom:p,insetTop:g,insetRight:m})}function x5(e,t,n,r,i,o,a){const s=Lp(e,e=>e.position),{padding:l=o.padding,paddingLeft:c=l,paddingRight:u=l,paddingBottom:d=l,paddingTop:h=l}=i,f={paddingBottom:d,paddingLeft:c,paddingTop:h,paddingRight:u};for(const p of r){const e=`padding${xg(JA(p))}`,r=s.get(p)||[],i=f[e],l=e=>{void 0===e.size&&(e.size=e.defaultSize)},c=e=>{"group"===e.type?(e.children.forEach(l),e.size=k_(e.children,e=>e.size)):e.size=e.defaultSize},u=e=>{e.size||("auto"!==i?c(e):(t5(e,t,n,p,o,a),l(e)))},d=e=>{e.type.startsWith("axis")&&void 0===e.labelAutoHide&&(e.labelAutoHide=!0)},h="bottom"===p||"top"===p,g=T_(r,e=>e.order),m=r.filter(e=>e.type.startsWith("axis")&&e.order==g);if(m.length&&(m[0].crossPadding=0),"number"===typeof i)r.forEach(l),r.forEach(d);else if(0===r.length)f[e]=0;else{const i=h?t+n[0]+n[1]:t,o=z4(r,i);o.forEach(u);const a=o.reduce((e,{size:t,crossPadding:n=12})=>e+t+n,0);f[e]=a}}return f}function E5(e,t,n){const r=Lp(e,e=>`${e.plane||"xy"}-${e.position}`),{paddingLeft:i,paddingRight:o,paddingTop:a,paddingBottom:s,marginLeft:l,marginTop:c,marginBottom:u,marginRight:d,innerHeight:h,innerWidth:f,insetBottom:p,insetLeft:g,insetRight:m,insetTop:v,height:A,width:b,depth:y}=n,w={xy:S5({width:b,height:A,paddingLeft:i,paddingRight:o,paddingTop:a,paddingBottom:s,marginLeft:l,marginTop:c,marginBottom:u,marginRight:d,innerHeight:h,innerWidth:f,insetBottom:p,insetLeft:g,insetRight:m,insetTop:v}),yz:S5({width:y,height:A,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:y,innerHeight:A,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0}),xz:S5({width:b,height:y,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,marginLeft:0,marginTop:0,marginBottom:0,marginRight:0,innerWidth:b,innerHeight:y,insetBottom:0,insetLeft:0,insetRight:0,insetTop:0})};for(const[_,x]of r.entries()){const[e,n]=_.split("-"),r=w[e][n],[i,o]=Cm(x,e=>"string"===typeof e.type&&("center"===n||!(!e.type.startsWith("axis")||!["inner","outer"].includes(n))));i.length&&C5(i,t,r,n),o.length&&L5(x,t,r)}}function S5({width:e,height:t,paddingLeft:n,paddingRight:r,paddingTop:i,paddingBottom:o,marginLeft:a,marginTop:s,marginBottom:l,marginRight:c,innerHeight:u,innerWidth:d,insetBottom:h,insetLeft:f,insetRight:p,insetTop:g}){const m=n+a,v=i+s,A=r+c,b=o+l,y=e-a-c,w=[m+f,v+g,d-f-p,u-g-h,"center",null,null],_={top:[m,0,d,v,"vertical",!0,yD,a,y],right:[e-A,v,A,u,"horizontal",!1,yD],bottom:[m,t-b,d,b,"vertical",!1,yD,a,y],left:[0,v,m,u,"horizontal",!0,yD],"top-left":[m,0,d,v,"vertical",!0,yD],"top-right":[m,0,d,v,"vertical",!0,yD],"bottom-left":[m,t-b,d,b,"vertical",!1,yD],"bottom-right":[m,t-b,d,b,"vertical",!1,yD],center:w,inner:w,outer:w};return _}function C5(e,t,n,r){const[i,o]=Cm(e,e=>!("string"!==typeof e.type||!e.type.startsWith("axis")));T5(i,t,n,r),B5(o,t,n)}function T5(e,t,n,r){"center"===r?Ie(t)?R5(e,t,n,r):Ce(t)?M5(e,t,n):Oe(t)&&I5(e,t,n,e[0].orientation):"inner"===r?k5(e,t,n):"outer"===r&&O5(e,t,n)}function k5(e,t,n){const[r,i,,o]=n,[a,s]=t.getCenter(),[l]=Le(t),c=o/2,u=l*c,d=a-u,h=s-u;for(let f=0;f<e.length;f++){const t=e[f];t.bbox={x:r+d,y:i+h,width:2*u,height:2*u}}}function O5(e,t,n){const[r,i,o,a]=n;for(const s of e)s.bbox={x:r,y:i,width:o,height:a}}function M5(e,t,n){const[r,i,o,a]=n;for(const s of e)s.bbox={x:r,y:i,width:o,height:a}}function I5(e,t,n,r){"horizontal"===r?N5(e,t,n):"vertical"===r&&D5(e,t,n)}function D5(e,t,n){const[r,i,,o]=n,a=new Array(e.length).fill(0),s=t.map(a),l=s.filter((e,t)=>t%2===0).map(e=>e+r);for(let c=0;c<e.length;c++){const t=e[c],n=l[c],r=l[c+1]-n;t.bbox={x:n,y:i,width:r,height:o}}}function N5(e,t,n){const[r,i,o]=n,a=new Array(e.length).fill(0),s=t.map(a),l=s.filter((e,t)=>t%2===1).map(e=>e+i);for(let c=0;c<e.length;c++){const t=e[c],n=l[c],i=l[c+1]-n;t.bbox={x:r,y:n,width:o,height:i}}}function R5(e,t,n,r){const[i,o,a,s]=n;for(const l of e)l.bbox={x:i,y:o,width:a,height:s},l.radar={index:e.indexOf(l),count:e.length}}function L5(e,t,n){const[r,i,o,a,s,l,c,u,d]=n,[h,f,p,g,m,v,A,b]="vertical"===s?["y",i,"x",r,"height",a,"width",o]:["x",r,"y",i,"width",o,"height",a];e.sort((e,t)=>null===c||void 0===c?void 0:c(e.order,t.order));const y=e=>"title"===e||"group"===e||e.startsWith("legend"),w=(e,t,n)=>void 0===n?t:y(e)?n:t,_=(e,t,n)=>void 0===n?t:y(e)?n:t,x=l?f+v:f;for(let S=0,C=x;S<e.length;S++){const t=e[S],{crossPadding:n=0,type:r}=t,{size:i}=t;t.bbox={[h]:l?C-i-n:C+n,[p]:_(r,g,u),[m]:i,[A]:w(r,b,d)},C+=(i+n)*(l?-1:1)}const E=e.filter(e=>"group"===e.type);for(const S of E){const{bbox:e,children:t}=S,n=e[A],r=n/t.length,i=t.reduce((e,t)=>{var n;const r=null===(n=t.layout)||void 0===n?void 0:n.justifyContent;return r||e},"flex-start"),o=t.map((e,n)=>{const{length:i=r,padding:o=0}=e;return i+(n===t.length-1?0:o)}),a=uW(o),s=n-a,l="flex-start"===i?0:"center"===i?s/2:s;for(let c=0,u=e[p]+l;c<t.length;c++){const n=t[c],{padding:r=0}=n,a=c===t.length-1?0:r;n.bbox={[m]:e[m],[h]:e[h],[p]:u,[A]:o[c]-a},P(n,{layout:{justifyContent:i}}),u+=o[c]}}}function B5(e,t,n){if(0===e.length)return;const[r,i,o,a]=n,[s]=Le(t),l=a/2*s/Math.sqrt(2),c=r+o/2,u=i+a/2;for(let d=0;d<e.length;d++){const t=e[d];t.bbox={x:c-l,y:u-l,width:2*l,height:2*l}}}var P5=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(c4){o(c4)}}function s(e){try{l(r["throw"](e))}catch(c4){o(c4)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},F5=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function $5(e,t,n){var r;return P5(this,void 0,void 0,function*(){const{library:i}=n,[o]=fB("composition",i),[a]=fB("interaction",i),s=new Set(Object.keys(i).map(e=>{var t;return null===(t=/mark\.(.*)/.exec(e))||void 0===t?void 0:t[1]}).filter(Cg)),l=new Set(Object.keys(i).map(e=>{var t;return null===(t=/component\.(.*)/.exec(e))||void 0===t?void 0:t[1]}).filter(Cg)),c=e=>{const{type:t}=e;if("function"===typeof t){const{props:e={}}=t,{composite:n=!0}=e;if(n)return"mark"}return"string"!==typeof t?t:s.has(t)||l.has(t)?"mark":t},u=e=>"mark"===c(e),d=e=>"standardView"===c(e),h=e=>{const{type:t}=e;return"string"===typeof t&&!!l.has(t)},f=e=>{if(d(e))return[e];const t=c(e),n=o({type:t,static:h(e)});return n(e)},p=[],g=new Map,m=new Map,v=[e],A=[];while(v.length){const e=v.shift();if(d(e)){const t=m.get(e),[r,o]=t?Y5(t,e,i):yield z5(e,n);g.set(r,e),p.push(r);const a=o.flatMap(f).map(e=>u$(e,i));if(v.push(...a),a.every(d)){const e=yield Promise.all(a.map(e=>V5(e,n)));O$(e);for(let t=0;t<a.length;t++){const n=a[t],r=e[t];m.set(n,r)}}}else{const t=u(e)?e:yield v6(e,n),r=f(t);Array.isArray(r)?v.push(...r):"function"===typeof r&&A.push(r())}}n.emitter.emit(oB.BEFORE_PAINT);const b=new Map,y=new Map,w=[];t.selectAll(w6(PN)).data(p,e=>e.key).join(e=>e.append("g").attr("className",PN).attr("id",e=>e.key).call(j5).each(function(e,t,r){q5(e,Pg(r),w,n),b.set(e,r)}),e=>e.call(j5).each(function(e,t,r){q5(e,Pg(r),w,n),y.set(e,r)}),e=>e.each(function(e,t,n){const r=n["nameInteraction"].values();for(const i of r)i.destroy()}).remove());const _=(e,t,r)=>Array.from(e.entries()).map(([i,o])=>{const a=r||new Map,s=(e,t=e=>e)=>a.set(e,t),l=g.get(i),c=U5(Pg(o),l,n),u={view:i,container:o,options:l,setState:s,update:(n,r)=>P5(this,void 0,void 0,function*(){const i=wg(Array.from(a.values())),o=i(l);return yield c(o,n,()=>{S(r)&&t(e,r,a)})})};return n.externals.update=u.update,n.externals.setState=s,u}),x=(e=y,t,r)=>{var i;const o=_(e,x,r);for(const s of o){const{options:e,container:r}=s,l=r["nameInteraction"];let c=m6(e);t&&(c=c.filter(e=>t.includes(e[0])));for(const t of c){const[e,r]=t,c=l.get(e);if(c&&(null===(i=c.destroy)||void 0===i||i.call(c)),r){const t=K5(s.view,e,r,a),i=t(s,o,n.emitter);l.set(e,{destroy:i})}}}},E=_(b,x);for(const e of E){const{options:t}=e,r=new Map;e.container["nameInteraction"]=r;for(const i of m6(t)){const[t,o]=i;if(o){const i=K5(e.view,t,o,a),s=i(e,E,n.emitter);r.set(t,{destroy:s})}}}x();const{width:C,height:T}=e,k=[];for(const e of A){const r=new Promise(r=>P5(this,void 0,void 0,function*(){for(const r of e){const e=Object.assign({width:C,height:T},r);yield $5(e,t,n)}r()}));k.push(r)}n.views=p,null===(r=n.animations)||void 0===r||r.forEach(e=>null===e||void 0===e?void 0:e.cancel()),n.animations=w,n.emitter.emit(oB.AFTER_PAINT);const O=w.filter(Cg).map(h6).map(e=>e.finished);return Promise.all([...O,...k])})}function j5(e){e.style("transform",e=>`translate(${e.layout.x}, ${e.layout.y})`)}function H5(e){const[,t]=fB("interaction",e);return e=>{const[n,r]=e;try{return[n,t(n)]}catch(FO){return[n,r.type]}}}function U5(e,t,n){const{library:r}=n,i=H5(r),o=e=>e[1]&&e[1].props&&e[1].props.reapplyWhenUpdate,a=m6(t),s=a.map(i).filter(o).map(e=>e[0]);return(t,r,i)=>P5(this,void 0,void 0,function*(){const o=[],[a,l]=yield z5(t,n);q5(a,e,o,n);for(const i of s.filter(e=>e!==r))Q5(i,e,t,a,n);for(const t of l)$5(t,e,n);return i(),{options:t,view:a}})}function Q5(e,t,n,r,i){var o;const{library:a}=i,[s]=fB("interaction",a),l=t.node(),c=l["nameInteraction"],u=m6(n).find(([t])=>t===e),d=c.get(e);if(!d)return;if(null===(o=d.destroy)||void 0===o||o.call(d),!u[1])return;const h=K5(r,e,u[1],s),f={options:n,view:r,container:t.node(),update:e=>Promise.resolve(e)},p=h(f,[],i.emitter);c.set(e,{destroy:p})}function z5(e,t){return P5(this,void 0,void 0,function*(){const{library:n}=t,r=yield G5(e,t),i=W5(r);e.interaction=i.interaction,e.coordinate=i.coordinate,e.marks=[...i.marks,...i.components];const o=u$(i,n),a=yield V5(o,t);return Y5(a,o,n)})}function W5(e){const{coordinate:t={},interaction:n={},style:r={},marks:i}=e,o=F5(e,["coordinate","interaction","style","marks"]),a=i.map(e=>e.coordinate||{}),s=i.map(e=>e.interaction||{}),l=i.map(e=>e.viewStyle||{}),c=[...a,t].reduceRight((e,t)=>P(e,t),{}),u=[n,...s].reduce((e,t)=>P(e,t),{}),d=[...l,r].reduce((e,t)=>P(e,t),{});return Object.assign(Object.assign({},o),{marks:i,coordinate:c,interaction:u,style:d})}function G5(e,t){return P5(this,void 0,void 0,function*(){const{library:n}=t,[r,i]=fB("mark",n),o=new Set(Object.keys(n).map(e=>{var t;return null===(t=/component\.(.*)/.exec(e))||void 0===t?void 0:t[1]}).filter(Cg)),{marks:a}=e,s=[],l=[],c=[...a],{width:u,height:d}=w5(e),h={options:e,width:u,height:d};while(c.length){const[e]=c.splice(0,1),n=yield v6(e,t),{type:a=Eg("G2Mark type is required."),key:u}=n;if(o.has(a))l.push(n);else{const{props:e={}}=i(a),{composite:t=!0}=e;if(t){const{data:e}=n,t=Object.assign(Object.assign({},n),{data:e?Array.isArray(e)?e:e.value:e}),i=yield r(t,h),o=Array.isArray(i)?i:[i];c.unshift(...o.map((e,t)=>Object.assign(Object.assign({},e),{key:`${u}-${t}`})))}else s.push(n)}}return Object.assign(Object.assign({},e),{marks:s,components:l})})}function V5(e,t){return P5(this,void 0,void 0,function*(){const{library:n}=t,[r]=fB("theme",n),[,i]=fB("mark",n),{theme:o,marks:a,coordinates:s=[]}=e,l=r(g6(o)),c=new Map;for(const e of a){const{type:n}=e,{props:r={}}=i(n),o=yield vB(e,r,t);if(o){const[e,t]=o;c.set(e,t)}}const u=Lp(Array.from(c.values()).flatMap(e=>e.channels),({scaleKey:e})=>e);for(const e of u.values()){const t=e.reduce((e,{scale:t})=>P(e,t),{}),{scaleKey:r}=e[0],{values:i}=e[0],o=Array.from(new Set(i.map(e=>e.field).filter(Cg))),a=P({guide:{title:0===o.length?void 0:o},field:o[0]},t),{name:c}=e[0],u=e.flatMap(({values:e})=>e.map(e=>e.value)),d=Object.assign(Object.assign({},_$(c,u,a,s,l,n)),{uid:Symbol("scale"),key:r});e.forEach(e=>e.scale=d)}return c})}function K5(e,t,n,r){const i=e.theme,o="string"===typeof t&&i[t]||{},a=r(P(o,Object.assign({type:t},n)));return a}function Y5(e,t,n){var r;const[i]=fB("mark",n),[o]=fB("theme",n),[a]=fB("labelTransform",n),{key:s,frame:l=!1,theme:c,clip:u,style:d={},labelTransform:h=[]}=t,f=o(g6(c)),p=Array.from(e.values()),g=S$(p,t),m=Q4(H4(x6(Array.from(g),p,e),t,n)),v=y5(m,t,f,n),A=c$(v,t,n),b=l?P({mainLineWidth:1,mainStroke:"#000"},d):d;E5(z4(m),A,v),b5(m);const y=new Map(Array.from(e.values()).flatMap(e=>{const{channels:t}=e;return t.map(({scale:e})=>[e.uid,k$(e,n)])}));E$(e,y);const w={};for(const S of m){const{scales:e=[]}=S,t=[];for(const i of e){const{name:e,uid:o}=i,a=null!==(r=y.get(o))&&void 0!==r?r:k$(i,n);t.push(a),"y"===e&&a.update(Object.assign(Object.assign({},a.getOptions()),{xScale:w.x})),T$(w,{[e]:a})}S.scaleInstances=t}const _=[],x=new Map;for(const[S,C]of e.entries()){const{children:e,dataDomain:t,modifier:n,key:r,data:o}=S;x.set(r,o);const{index:a,channels:l,tooltip:c}=C,u=Object.fromEntries(l.map(({name:e,scale:t})=>[e,t])),d=wm(u,({uid:e})=>y.get(e));T$(w,d);const h=x$(l,d),f=i(S),[p,g,m]=e6(f(a,d,h,A)),b=t||p.length,E=n?n(g,b,v):[],T=e=>{var t,n;return null===(n=null===(t=c.title)||void 0===t?void 0:t[e])||void 0===n?void 0:n.value},k=e=>c.items.map(t=>t[e]),O=p.map((e,t)=>{const n=Object.assign({points:g[t],transform:E[t],index:e,markKey:r,viewKey:s,data:o[e]},c&&{title:T(e),items:k(e)});for(const[r,i]of Object.entries(h))n[r]=i[e],m&&(n[`series${dk(r)}`]=m[t].map(e=>i[e]));return m&&(n["seriesIndex"]=m[t]),m&&c&&(n["seriesItems"]=m[t].map(e=>k(e)),n["seriesTitle"]=m[t].map(e=>T(e))),n});C.data=O,C.index=p;const M=null===e||void 0===e?void 0:e(O,d,v);_.push(...M||[])}const E={layout:v,theme:f,coordinate:A,markState:e,key:s,clip:u,scale:w,style:b,components:m,data:x,options:t,labelTransform:wg(h.map(a))};return[E,_]}function q5(e,t,n,r){return P5(this,void 0,void 0,function*(){const{library:i}=r,{components:o,theme:a,layout:s,markState:l,coordinate:c,key:u,style:d,clip:h,scale:f}=e,{x:p,y:g,width:m,height:v}=s,A=F5(s,["x","y","width","height"]),b=["view","plot","main","content"],y=b.map((e,t)=>t),w=["a","margin","padding","inset"],_=b.map(e=>Mg(Object.assign({},a.view,d),e)),x=w.map(e=>Og(A,e)),E=e=>e.style("x",e=>O[e].x).style("y",e=>O[e].y).style("width",e=>O[e].width).style("height",e=>O[e].height).each(function(e,t,n){E6(Pg(n),_[e])});let S=0,C=0,T=m,k=v;const O=y.map(e=>{const t=x[e],{left:n=0,top:r=0,bottom:i=0,right:o=0}=t;return S+=n,C+=r,T-=n+o,k-=r+i,{x:S,y:C,width:T,height:k}});t.selectAll(w6(HN)).data(y.filter(e=>Cg(_[e])),e=>b[e]).join(e=>e.append("rect").attr("className",HN).style("zIndex",-2).call(E),e=>e.call(E),e=>e.remove());const M=o6(l),I=!!M&&{duration:M[1]};for(const[,e]of Bp(o,e=>`${e.type}-${e.position}`))e.forEach((e,t)=>e.index=t);const D=t.selectAll(w6($N)).data(o,e=>`${e.type}-${e.position}-${e.index}`).join(e=>e.append("g").style("zIndex",({zIndex:e})=>e||-1).attr("className",$N).append(e=>U4(P({animate:I,scale:f},e),c,a,i,l)),e=>e.transition(function(e,t,n){const{preserve:r=!1}=e;if(r)return;const o=U4(P({animate:I,scale:f},e),c,a,i,l),{attributes:s}=o,[u]=n.childNodes;return u.update(s,!1)})).transitions();n.push(...D.flat().filter(Cg));const N=t.selectAll(w6(FN)).data([s],()=>u).join(e=>e.append("rect").style("zIndex",0).style("fill","transparent").attr("className",FN).call(A6).call(y6,Array.from(l.keys())).call(_6,h),e=>e.call(y6,Array.from(l.keys())).call(A6).call(_6,h)).transitions();n.push(...N.flat());for(const[R,L]of l.entries()){const{data:o}=L,{key:a,class:s,type:l}=R,c=t.select(`#${a}`),u=l6(R,L,e,r),d=d6(R,L,e,i),h=f6(R,L,e,i),f=p6(R,L,e,i),p=a6(t,c,s,"element"),g=c.selectAll(w6(BN)).selectFacetAll(p).data(o,e=>e.key,e=>e.groupKey).join(e=>e.append(u).attr("className",BN).attr("markType",l).transition(function(e,t,n){return d(e,[n])}),e=>e.call(e=>{const t=e.parent(),n=Tg(e=>{const[t,n]=e.getBounds().min;return[t,n]});e.transition(function(e,r,i){s6(i,t,n);const o=u(e,r),a=h(e,[i],[o]);return(null===a||void 0===a?void 0:a.length)||(i.nodeName===o.nodeName&&"g"!==o.nodeName?Sg(i,o):(i.parentNode.replaceChild(o,i),o.className=BN,o.markType=l,o.__data__=i.__data__)),a}).each(function(e,t,n){n.__removed__&&(n.__removed__=!1)}).attr("markType",l).attr("className",BN)}),e=>e.each(function(e,t,n){n.__removed__=!0}).transition(function(e,t,n){return f(e,[n])}).remove(),e=>e.append(u).attr("className",BN).attr("markType",l).transition(function(e,t,n){const{__fromElements__:r}=n,i=h(e,r,[n]),o=new Fg(r,null,n.parentNode);return o.transition(i).remove(),i}),e=>e.transition(function(e,t,n){const r=new Fg([],n.__toData__,n.parentNode),i=r.append(u).attr("className",BN).attr("markType",l).nodes();return h(e,[n],i)}).remove()).transitions();n.push(...g.flat())}X5(e,t,n,i,r),Z5(e,t,i,r)})}function X5(e,t,n,r,i){const[o]=fB("labelTransform",r),{markState:a,labelTransform:s}=e,l=t.select(w6(LN)).node(),c=new Map,u=new Map,d=Array.from(a.entries()).flatMap(([n,o])=>{const{labels:a=[],key:s}=n,l=r6(n,o,e,r,i),d=t.select(`#${s}`).selectAll(w6(BN)).nodes().filter(e=>!e.__removed__);return a.flatMap((e,t)=>{const{transform:n=[]}=e,r=F5(e,["transform"]);return d.flatMap(n=>{const i=J5(r,t,n);return i.forEach(t=>{c.set(t,e=>l(Object.assign(Object.assign({},e),{element:n}))),u.set(t,e)}),i})})}),h=Pg(l).selectAll(w6(jN)).data(d,e=>e.key).join(e=>e.append(e=>c.get(e)(e)).attr("className",jN),e=>e.each(function(e,t,n){const r=c.get(e),i=r(e);Sg(n,i)}),e=>e.remove()).nodes(),f=Lp(h,e=>u.get(e.__data__)),{coordinate:p,layout:g}=e,m={canvas:i.canvas,coordinate:p,layout:g};for(const[v,A]of f){const{transform:e=[]}=v,t=wg(e.map(o));t(A,m)}s&&s(h,m)}function J5(e,t,n){const{seriesIndex:r,seriesKey:i,points:o,key:a,index:s}=n.__data__,l=n6(n);if(!r)return[Object.assign(Object.assign({},e),{key:`${a}-${t}`,bounds:l,index:s,points:o,dependentElement:n})];const c=t6(e),u=r.map((r,a)=>Object.assign(Object.assign({},e),{key:`${i[a]}-${t}`,bounds:[o[a]],index:r,points:o,dependentElement:n}));return c?c(u):u}function Z5(e,t,n,r){const i=e.scale,o=oC(i,"y.options.breaks",[]),{document:a}=r.canvas;if([UN,QN].forEach(e=>{a.getElementsByClassName(e).forEach(e=>{e.remove()})}),!o.length)return;const s=t.select(w6(FN)).node(),[l]=fB("shape",n),c=new Map;o.forEach((n,i)=>{c.set(n,l({type:"break"},{view:e,selection:t,context:r}))}),Pg(s).selectAll(w6(UN)).data(o,e=>e.key).join(e=>e.append((e,t)=>c.get(e)(e,t)).attr("className",UN),e=>e.each(function(e,t,n){const r=c.get(e),i=r(e,t);Sg(n,i)}),e=>e.remove()).nodes()}function e6([e,t,n]){if(n)return[e,t,n];const r=[],i=[];for(let o=0;o<e.length;o++){const n=e[o],a=t[o];a.every(([e,t])=>Cg(e)&&Cg(t))&&(r.push(n),i.push(a))}return[r,i]}function t6(e){const{selector:t}=e;if(!t)return null;if("function"===typeof t)return t;if("first"===t)return e=>[e[0]];if("last"===t)return e=>[e[e.length-1]];throw new Error(`Unknown selector: ${t}`)}function n6(e){const t=e.cloneNode(!0),n=e.getAnimations();t.style.visibility="hidden",n.forEach(e=>{const n=e.effect.getKeyframes();t.attr(n[n.length-1])}),e.parentNode.appendChild(t);const r=t.getLocalBounds();t.destroy();const{min:i,max:o}=r;return[i,o]}function r6(e,t,n,r,i){const[o]=fB("shape",r),{data:a,encode:s}=e,{data:l,defaultLabelShape:c}=t,u=l.map(e=>e.points),d=wm(s,e=>e.value),{theme:h,coordinate:f}=n,p=Object.assign(Object.assign({},i),{document:pB(i),theme:h,coordinate:f});return e=>{const{index:t,points:n}=e,r=a[t],{formatter:i=e=>`${e}`,transform:s,style:l,render:f,selector:g,element:m}=e,v=F5(e,["formatter","transform","style","render","selector","element"]),A=wm(Object.assign(Object.assign({},v),l),e=>i6(e,r,t,a,{channel:d,element:m})),{shape:b=c,text:y}=A,w=F5(A,["shape","text"]),_="string"===typeof i?Tk(i):i,x=Object.assign(Object.assign({},w),{text:_(y,r,t,a),datum:r}),E=Object.assign({type:`label.${b}`,render:f},w),S=o(E,p),C=c6(h,"label",b,"label");return S(n,x,C,u)}}function i6(e,t,n,r,i){return"function"===typeof e?e(t,n,r,i):"string"!==typeof e?e:Rg(t)&&void 0!==t[e]?t[e]:e}function o6(e){let t=-1/0,n=1/0;for(const[r,i]of e){const{animate:e={}}=r,{data:o}=i,{enter:a={},update:s={},exit:l={}}=e,{type:c,duration:u=300,delay:d=0}=s,{type:h,duration:f=300,delay:p=0}=a,{type:g,duration:m=300,delay:v=0}=l;for(const r of o){const{updateType:e=c,updateDuration:i=u,updateDelay:o=d,enterType:a=h,enterDuration:s=f,enterDelay:l=p,exitDuration:A=m,exitDelay:b=v,exitType:y=g}=r;(void 0===e||e)&&(t=Math.max(t,i+o),n=Math.min(n,o)),(void 0===y||y)&&(t=Math.max(t,A+b),n=Math.min(n,b)),(void 0===a||a)&&(t=Math.max(t,s+l),n=Math.min(n,l))}}return t===-1/0?null:[n,t-n]}function a6(e,t,n,r){const i=e.node().parentElement;return i&&"function"===typeof i.findAll?i.findAll(e=>void 0!==e.style.facet&&e.style.facet===n&&e!==t.node()).flatMap(e=>e.getElementsByClassName(r)):[]}function s6(e,t,n){if(!e.__facet__)return;const r=e.parentNode.parentNode,i=t.parentNode,[o,a]=n(r),[s,l]=n(i),c=`translate(${o-s}, ${a-l})`;kg(e,c),t.append(e)}function l6(e,t,n,r){const{library:i}=r,[o]=fB("shape",i),{data:a,encode:s}=e,{defaultShape:l,data:c,shape:u}=t,d=wm(s,e=>e.value),h=c.map(e=>e.points),{theme:f,coordinate:p}=n,{type:g,style:m={}}=e,v=Object.assign(Object.assign({},r),{document:pB(r),coordinate:p,theme:f});return t=>{const{shape:n=l}=m,{shape:r=n,points:i,seriesIndex:s,index:c}=t,p=F5(t,["shape","points","seriesIndex","index"]),A=Object.assign(Object.assign({},p),{index:c}),b=s?s.map(e=>a[e]):a[c],y=s||c,w=wm(m,e=>i6(e,b,y,a,{channel:d})),_=u[r]?u[r](w,v):o(Object.assign(Object.assign({},w),{type:b6(e,r)}),v),x=c6(f,g,r,l);return _(i,A,x,h)}}function c6(e,t,n,r){if("string"!==typeof t)return;const{color:i}=e,o=e[t]||{},a=o[n]||o[r];return Object.assign({color:i},a)}function u6(e,t,n,r,i){var o,a;const[,s]=fB("shape",i),[l]=fB("animation",i),{defaultShape:c,shape:u}=n,{theme:d,coordinate:h}=r,f=dk(e),p=`default${f}Animation`,{[p]:g}=(null===(o=u[c])||void 0===o?void 0:o.props)||s(b6(t,c)).props,{[e]:m={}}=d,v=(null===(a=t.animate)||void 0===a?void 0:a[e])||{},A={coordinate:h};return(t,n,r)=>{const{[`${e}Type`]:i,[`${e}Delay`]:o,[`${e}Duration`]:a,[`${e}Easing`]:s}=t,c=Object.assign({type:i||g},v);if(!c.type)return null;const u=l(c,A),d={delay:o,duration:a,easing:s},h=u(n,r,P(m,d));let f=[];return f=Array.isArray(h)?h:[h],f.filter(Boolean)}}function d6(e,t,n,r){return u6("enter",e,t,n,r)}function h6(e){return e.finished.then(()=>{e.cancel()}),e}function f6(e,t,n,r){return u6("update",e,t,n,r)}function p6(e,t,n,r){return u6("exit",e,t,n,r)}function g6(e={}){if("string"===typeof e)return{type:e};const{type:t="light"}=e,n=F5(e,["type"]);return Object.assign(Object.assign({},n),{type:t})}function m6(e){const t={event:!0,tooltip:!0,sliderFilter:!0,legendFilter:!0,scrollbarFilter:!0},{interaction:n={}}=e;return Object.entries(P(t,n)).reverse()}function v6(e,t){return P5(this,void 0,void 0,function*(){const{data:n}=e,r=F5(e,["data"]);if(void 0==n)return e;const[,{data:i}]=yield fj([],{data:n},t);return Object.assign({data:i},r)})}function A6(e){e.style("transform",e=>`translate(${e.paddingLeft+e.marginLeft}, ${e.paddingTop+e.marginTop})`).style("width",e=>e.innerWidth).style("height",e=>e.innerHeight)}function b6(e,t){const{type:n}=e;return"string"===typeof t?`${n}.${t}`:t}function y6(e,t){const n=e=>void 0!==e.class?`${e.class}`:"",r=e.nodes();if(0===r.length)return;e.selectAll(w6(RN)).data(t,e=>e.key).join(e=>e.append("g").attr("className",RN).attr("id",e=>e.key).style("facet",n).style("fill","transparent").style("zIndex",e=>{var t;return null!==(t=e.zIndex)&&void 0!==t?t:0}),e=>e.style("facet",n).style("fill","transparent").style("zIndex",e=>{var t;return null!==(t=e.zIndex)&&void 0!==t?t:0}),e=>e.remove());const i=e.select(w6(LN)).node();i||e.append("g").attr("className",LN).style("zIndex",0)}function w6(...e){return e.map(e=>`.${e}`).join("")}function _6(e,t){e.node()&&e.style("clipPath",e=>{if(!t)return null;const{paddingTop:n,paddingLeft:r,marginLeft:i,marginTop:o,innerWidth:a,innerHeight:s}=e;return new Rh({style:{x:r+i,y:n+o,width:a,height:s}})})}function x6(e,t,n){var r;for(const[c]of n.entries())if("cell"===c.type)return e.filter(e=>"shape"!==e.name);if(1!==t.length||e.some(e=>"shape"===e.name))return e;const{defaultShape:i}=t[0],o=["point","line","rect","hollow"];if(!o.includes(i))return e;const a={point:"point",line:"hyphen",rect:"square",hollow:"hollow"},s=(null===(r=e.find(e=>"color"===e.name))||void 0===r?void 0:r.field)||null,l={field:s,name:"shape",type:"constant",domain:[],range:[a[i]]};return[...e,l]}function E6(e,t){for(const[n,r]of Object.entries(t))e.style(n,r)}function S6(...e){return t=>e.reduce((e,t)=>t(e),t)}function C6(e){const{style:t,scale:n,type:r}=e,i={},o=oC(t,"columnWidthRatio");return o&&"interval"===r&&(i.x=Object.assign(Object.assign({},null===n||void 0===n?void 0:n.x),{padding:1-o})),Object.assign(Object.assign({},e),{scale:Object.assign(Object.assign({},n),i)})}const T6=e=>{if(!e||"string"!==typeof e)return e;const t=e.endsWith("%")?parseFloat(e.slice(0,-1))/100:parseFloat(e);if(isNaN(t)||t<0||t>1)throw new Error(`Invalid gap value: ${e}. It should be between 0 and 1.`);return t};function k6(e){const{axis:t}=e,n=oC(t,"y.breaks");return n&&SO(e,"scale.y.breaks",n.map(e=>Object.assign(Object.assign({key:`break-${e.start}-${e.end}`},e),{gap:T6(e.gap)}))),e}function O6(e){const t=M6(e);return t.children&&Array.isArray(t.children)&&(t.children=t.children.map(e=>O6(e))),t}function M6(e){return S6(C6,k6)(e)}function I6(e){const t=P({},e),n=new Map([[t,null]]),r=new Map([[null,-1]]),i=[t];while(i.length){const e=i.shift();if(void 0===e.key){const t=n.get(e),i=r.get(e),o=null===t?"0":`${t.key}-${i}`;e.key=o}const{children:t=[]}=e;if(Array.isArray(t))for(let o=0;o<t.length;o++){const a=P({},t[o]);t[o]=a,n.set(a,e),r.set(a,o),i.push(a)}}return t}function D6(e,t){const n=new r4;return n.registerPlugin(new o4),new ef({width:e,height:t,container:document.createElement("div"),renderer:n})}function N6(e,t={},n=()=>{},r=e=>{throw e}){const i=R4(e),{width:o=640,height:a=480,depth:s=0}=i,l=O6(i),c=I6(l),{canvas:u=D6(o,a),emitter:d=new l4,library:h}=t;t.canvas=u,t.emitter=d,t.externals={};const{width:f,height:p}=u.getConfig();f===o&&p===a||u.resize(o,a),d.emit(oB.BEFORE_RENDER);const g=Pg(u.document.documentElement);return u.ready.then(()=>$5(Object.assign(Object.assign({},c),{width:o,height:a,depth:s}),g,t)).then(()=>{if(s){const[e,t]=u.document.documentElement.getPosition();u.document.documentElement.setPosition(e,t,-s/2)}u.requestAnimationFrame(()=>{u.requestAnimationFrame(()=>{d.emit(oB.AFTER_RENDER),null===n||void 0===n||n()})})}).catch(e=>{null===r||void 0===r||r(e)}),B6(u.getConfig().container)}function R6(e,t={},n=!1,r=!0){const{canvas:i,emitter:o}=t;i&&(L6(i),n?i.destroy():i.destroyChildren()),r&&o.off()}function L6(e){const t=e.getRoot().querySelectorAll(`.${PN}`);null===t||void 0===t||t.forEach(e=>{const{nameInteraction:t=new Map}=e;(null===t||void 0===t?void 0:t.size)>0&&Array.from(null===t||void 0===t?void 0:t.values()).forEach(e=>{null===e||void 0===e||e.destroy()})})}function B6(e){return"string"===typeof e?document.getElementById(e):e}const P6=e=>e?parseInt(e):0;function F6(e){const t=getComputedStyle(e),n=e.clientWidth||P6(t.width),r=e.clientHeight||P6(t.height),i=P6(t.paddingLeft)+P6(t.paddingRight),o=P6(t.paddingTop)+P6(t.paddingBottom);return{width:n-i,height:r-o}}function $6(e,t){const n=[e];while(n.length){const e=n.shift();t&&t(e);const r=e.children||[];for(const t of r)n.push(t)}}class j6{constructor(e={},t){this.parentNode=null,this.children=[],this.index=0,this.type=t,this.value=e}map(e=e=>e){const t=e(this.value);return this.value=t,this}attr(e,t){return 1===arguments.length?this.value[e]:this.map(n=>(n[e]=t,n))}append(e){const t=new e({});return t.children=[],this.push(t),t}push(e){return e.parentNode=this,e.index=this.children.length,this.children.push(e),this}remove(){const e=this.parentNode;if(e){const{children:t}=e,n=t.findIndex(e=>e===this);t.splice(n,1)}return this}getNodeByKey(e){let t=null;const n=n=>{e===n.attr("key")&&(t=n)};return $6(this,n),t}getNodesByType(e){const t=[],n=n=>{e===n.type&&t.push(n)};return $6(this,n),t}getNodeByType(e){let t=null;return $6(this,n=>{t||e===n.type&&(t=n)}),t}call(e,...t){return e(this.map(),...t),this}getRoot(){let e=this;while(e&&e.parentNode)e=e.parentNode;return e}}var H6=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const U6=["width","height","depth","padding","paddingLeft","paddingRight","paddingBottom","paddingTop","inset","insetLeft","insetRight","insetTop","insetBottom","margin","marginLeft","marginRight","marginTop","marginBottom","autoFit","theme","title","interaction"],Q6="__remove__",z6="__callback__",W6=1,G6=1;function V6(e){if(void 0===e){const e=document.createElement("div");return e[Q6]=!0,e}if("string"===typeof e){const t=document.getElementById(e);return t}return e}function K6(e){const t=e.parentNode;t&&t.removeChild(e)}function Y6(e){if(null!==e.type)return e;const t=e.children[e.children.length-1];for(const n of U6)t.attr(n,e.attr(n));return t}function q6(e){return Object.assign(Object.assign({},e.value),{type:e.type})}function X6(e,t){const{width:n,height:r,autoFit:i,depth:o=0}=e;let a=640,s=480;if(i){const{width:e,height:n}=F6(t);a=e||a,s=n||s}return a=n||a,s=r||s,{width:Math.max(lr(a)?a:W6,W6),height:Math.max(lr(s)?s:G6,G6),depth:o}}function J6(e){const t=Y6(e),n=[t],r=new Map;r.set(t,q6(t));while(n.length){const e=n.pop(),t=r.get(e),{children:i=[]}=e;for(const o of i)if(o.type===z6)t.children=o.value;else{const e=q6(o),{children:i=[]}=t;i.push(e),n.push(o),r.set(o,e),t.children=i}}return r.get(t)}function Z6(e,t){return"function"===typeof e||new Set(Object.keys(t)).has(e)}function e8(e,t){return"function"!==typeof e&&new Set(Object.keys(t)).has(e)}function t8(e,t,n,r,i){const{type:o}=e,{type:a=n||o}=t;if(e8(a,i)){for(const n of U6)void 0!==e.attr(n)&&void 0===t[n]&&(t[n]=e.attr(n));return t}if(Z6(a,r)){const e={type:"view"},n=Object.assign({},t);for(const t of U6)void 0!==n[t]&&(e[t]=n[t],delete n[t]);return Object.assign(Object.assign({},e),{children:[n]})}return t}function n8(e,t,n){if("function"===typeof e)return t.mark;const r=Object.assign(Object.assign({},t),n),i=r[e];if(!i)throw new Error(`Unknown mark: ${e}.`);return i}function r8(e,t,n){if("function"===typeof e){const t=new j6;return t.value=e,t.type=z6,t}const{type:r,children:i}=e,o=H6(e,["type","children"]),a=n8(r,t,n),s=new a;return s.value=o,s.type=r,s}function i8(e,t){const{type:n,children:r}=t,i=H6(t,["type","children"]);e.type===n||void 0===n?Bg(e.value,i):"string"===typeof n&&(e.type=n,e.value=i)}function o8(e,t,n,r){if(!e)return;const i=[[e,t]];while(i.length){const[e,t]=i.shift(),o=r8(t,n,r);Array.isArray(e.children)&&e.push(o);const{children:a}=t;if(Array.isArray(a))for(const n of a)i.push([o,n]);else"function"===typeof a&&i.push([o,a])}}function a8(e,t,n,r,i){const o=t8(e,t,n,r,i),a=[[null,e,o]];while(a.length){const[e,t,n]=a.shift();if(t)if(n){i8(t,n);const{children:e}=n,{children:r}=t;if(Array.isArray(e)&&Array.isArray(r)){const n=Math.max(e.length,r.length);for(let i=0;i<n;i++){const n=e[i],o=r[i];a.push([t,o,n])}}else"function"===typeof e&&a.push([t,null,e])}else t.remove();else o8(e,n,r,i)}}function s8(){let e,t;const n=new Promise((n,r)=>{t=n,e=r});return[n,t,e]}function l8(e,t,{key:n=t}){e.prototype[t]=function(e){return 0===arguments.length?this.attr(n):this.attr(n,e)}}function c8(e,t,{key:n=t}){e.prototype[t]=function(e){if(0===arguments.length)return this.attr(n);if(Array.isArray(e))return this.attr(n,e);const t=[...this.attr(n)||[],e];return this.attr(n,t)}}function u8(e,t,{key:n=t}){e.prototype[t]=function(e,t){if(0===arguments.length)return this.attr(n);if(1===arguments.length&&"string"!==typeof e)return this.attr(n,e);const r=this.attr(n)||{};return r[e]=1===arguments.length||t,this.attr(n,r)}}function d8(e,t,n){e.prototype[t]=function(e){if(0===arguments.length)return this.attr(t);if(Array.isArray(e))return this.attr(t,{items:e});if(Rg(e)&&(void 0!==e.title||void 0!==e.items))return this.attr(t,e);if(null===e||!1===e)return this.attr(t,e);const n=this.attr(t)||{},{items:r=[]}=n;return r.push(e),n.items=r,this.attr(t,n)}}function h8(e,t,{ctor:n}){e.prototype[t]=function(e){const r=this.append(n);return"mark"===t&&(r.type=e),r}}function f8(e,t,{ctor:n}){e.prototype[t]=function(){return this.type=null,this.append(n)}}function p8(e){return t=>{for(const[n,r]of Object.entries(e)){const{type:e}=r;"value"===e?l8(t,n,r):"array"===e?c8(t,n,r):"object"===e?u8(t,n,r):"node"===e?h8(t,n,r):"container"===e?f8(t,n,r):"mix"===e&&d8(t,n,r)}return t}}function g8(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,{type:"node",ctor:t}]))}const m8={encode:{type:"object"},scale:{type:"object"},data:{type:"value"},transform:{type:"array"},style:{type:"object"},animate:{type:"object"},coordinate:{type:"object"},interaction:{type:"object"},label:{type:"array",key:"labels"},axis:{type:"object"},legend:{type:"object"},slider:{type:"object"},scrollbar:{type:"object"},state:{type:"object"},layout:{type:"object"},theme:{type:"object"},title:{type:"value"}},v8=Object.assign(Object.assign({},m8),{tooltip:{type:"mix"},viewStyle:{type:"object"}}),A8=Object.assign(Object.assign({},m8),{labelTransform:{type:"array"}});var b8=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let y8=class extends j6{changeData(e){var t;const n=this.getRoot();if(n)return this.attr("data",e),(null===(t=this.children)||void 0===t?void 0:t.length)&&this.children.forEach(t=>{t.attr("data",e)}),null===n||void 0===n?void 0:n.render()}getView(){const e=this.getRoot(),{views:t}=e.getContext();if(null===t||void 0===t?void 0:t.length)return t.find(e=>e.key===this._key)}getScale(){var e;return null===(e=this.getView())||void 0===e?void 0:e.scale}getScaleByChannel(e){const t=this.getScale();if(t)return t[e]}getCoordinate(){var e;return null===(e=this.getView())||void 0===e?void 0:e.coordinate}getTheme(){var e;return null===(e=this.getView())||void 0===e?void 0:e.theme}getGroup(){const e=this._key;if(!e)return;const t=this.getRoot(),n=t.getContext().canvas.getRoot();return n.getElementById(e)}show(){const e=this.getGroup();e&&!e.isVisible()&&YN(e)}hide(){const e=this.getGroup();e&&e.isVisible()&&KN(e)}};y8=b8([p8(A8)],y8);var w8=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};let _8=class extends j6{changeData(e){const t=this.getRoot();if(t)return this.attr("data",e),null===t||void 0===t?void 0:t.render()}getMark(){var e;const t=null===(e=this.getRoot())||void 0===e?void 0:e.getView();if(!t)return;const{markState:n}=t,r=Array.from(n.keys()).find(e=>e.key===this.attr("key"));return n.get(r)}getScale(){var e;const t=null===(e=this.getRoot())||void 0===e?void 0:e.getView();if(t)return null===t||void 0===t?void 0:t.scale}getScaleByChannel(e){var t,n;const r=null===(t=this.getRoot())||void 0===t?void 0:t.getView();if(r)return null===(n=null===r||void 0===r?void 0:r.scale)||void 0===n?void 0:n[e]}getGroup(){const e=this.attr("key");if(!e)return;const t=this.getRoot(),n=t.getContext().canvas.getRoot();return n.getElementById(e)}};_8=w8([p8(v8)],_8);const x8={};var E8=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},S8=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const C8="G2_CHART_KEY";class T8 extends y8{constructor(e){const{container:t,canvas:n,renderer:r,plugins:i,lib:o,createCanvas:a}=e,s=S8(e,["container","canvas","renderer","plugins","lib","createCanvas"]);super(s,"view"),this._hasBindAutoFit=!1,this._rendering=!1,this._trailingClear=null,this._trailing=!1,this._trailingResolve=null,this._trailingReject=null,this._previousDefinedType=null,this._onResize=kO(()=>{this.forceFit()},300),this._renderer=r||new r4,this._plugins=i||[],this._container=V6(t),this._emitter=new l4,this._context={library:Object.assign(Object.assign({},o),x8),emitter:this._emitter,canvas:n,createCanvas:a},this._create()}render(){if(this._rendering)return this._addToTrailing();this._context.canvas||this._createCanvas(),this._bindAutoFit(),this._rendering=!0;const e=new Promise((e,t)=>N6(this._computedOptions(),this._context,this._createResolve(e),this._createReject(t))),[t,n,r]=s8();return e.then(n).then(()=>{if(this._trailingClear){const e=this.options();this._trailingClear(),this._trailing&&this.options(e)}}).catch(r).then(()=>{this._trailingClear=null,this._renderTrailing()}),t}options(e){if(0===arguments.length)return J6(this);const{type:t}=e;return t&&(this._previousDefinedType=t),a8(this,e,this._previousDefinedType,this._marks,this._compositions),this}getContainer(){return this._container}getContext(){return this._context}on(e,t,n){return this._emitter.on(e,t,n),this}once(e,t){return this._emitter.once(e,t),this}emit(e,...t){return this._emitter.emit(e,...t),this}off(e,t){return this._emitter.off(e,t),this}clear(e=!0){if(this._rendering)return this._trailingClear=()=>{this.clear(e)},void this._reset();const t=this.options();this.emit(oB.BEFORE_CLEAR),this._reset(),R6(t,this._context,!1,e),this.emit(oB.AFTER_CLEAR)}destroy(){const e=this.options();this.emit(oB.BEFORE_DESTROY),this._unbindAutoFit(),this._reset(),R6(e,this._context,!0),this._container[Q6]&&K6(this._container),this.emit(oB.AFTER_DESTROY)}forceFit(){this.options["autoFit"]=!0;const{width:e,height:t}=X6(this.options(),this._container);if(e===this._width&&t===this._height)return Promise.resolve(this);this.emit(oB.BEFORE_CHANGE_SIZE);const n=this.render();return n.then(()=>{this.emit(oB.AFTER_CHANGE_SIZE)}),n}changeSize(e,t){if(e===this._width&&t===this._height)return Promise.resolve(this);this.emit(oB.BEFORE_CHANGE_SIZE),this.attr("width",e),this.attr("height",t);const n=this.render();return n.then(()=>{this.emit(oB.AFTER_CHANGE_SIZE)}),n}getDataByXY(e,t={}){const{shared:n=!1,series:r,facet:i=!1,startX:o=0,startY:a=0}=t,{canvas:s,views:l}=this._context,{document:c}=s,{x:u,y:d}=e,{coordinate:h,scale:f,markState:p,data:g,key:m}=l[0],v=c.getElementsByClassName(BN),A=n?e=>e.__data__.x:e=>e,b=Lp(v,A),y=c.getElementsByClassName(PN)[0],w=eR(y),_=e=>Array.from(e.values()).some(e=>{var t,n;return(null===(t=e.interaction)||void 0===t?void 0:t["seriesTooltip"])||(null===(n=e.channels)||void 0===n?void 0:n.some(e=>"series"===e.name&&void 0!==e.values))}),x=Yj(r,_(p)),E=e=>oC(e,"__data__.data",null),S=e=>e.map(E);try{if(x&&_(p)&&!i){const{selectedData:e}=nH({root:w,event:{offsetX:u,offsetY:d},elements:v,coordinate:h,scale:f,startX:o,startY:a}),t=g.get(`${m}-0`);return e.map(({index:e})=>t[e])}const e=tH({root:w,event:{offsetX:u,offsetY:d},elements:v,coordinate:h,scale:f,shared:n});if(mg(e))return vg(e,g.get(m));const t=A(e),r=b.get(t);return r?S(r):[]}catch(c4){const t=s.document.elementFromPointSync(u,d);return t?E(t):[]}}_create(){const{library:e}=this._context,t=e=>e.startsWith("mark.")||"component.axisX"===e||"component.axisY"===e||"component.legends"===e,n=["mark.mark",...Object.keys(e).filter(t)];this._marks={};for(const i of n){const e=i.split(".").pop();class t extends _8{constructor(){super({},e)}}this._marks[e]=t,this[e]=function(n){const r=this.append(t);return"mark"===e&&(r.type=n),r}}const r=["composition.view",...Object.keys(e).filter(e=>e.startsWith("composition.")&&"composition.mark"!==e)];this._compositions=Object.fromEntries(r.map(e=>{const t=e.split(".").pop();let n=class extends y8{constructor(){super({},t)}};return n=E8([p8(g8(this._marks))],n),[t,n]}));for(const i of Object.values(this._compositions))p8(g8(this._compositions))(i);for(const i of r){const e=i.split(".").pop();this[e]=function(){const t=this._compositions[e];return this.type=null,this.append(t)}}}_reset(){const e=["theme","type","width","height","autoFit"];this.type="view",this.value=Object.fromEntries(Object.entries(this.value).filter(([t])=>t.startsWith("margin")||t.startsWith("padding")||t.startsWith("inset")||e.includes(t))),this.children=[]}_renderTrailing(){this._trailing&&(this._trailing=!1,this.render().then(()=>{const e=this._trailingResolve.bind(this);this._trailingResolve=null,e(this)}).catch(e=>{const t=this._trailingReject.bind(this);this._trailingReject=null,t(e)}))}_createResolve(e){return()=>{this._rendering=!1,e(this)}}_createReject(e){return t=>{this._rendering=!1,e(t)}}_computedOptions(){const e=this.options(),{key:t=C8}=e,{width:n,height:r,depth:i}=X6(e,this._container);return this._width=n,this._height=r,this._key=t,Object.assign(Object.assign({key:this._key},e),{width:n,height:r,depth:i})}_createCanvas(){const{width:e,height:t}=X6(this.options(),this._container);this._plugins.push(new o4),this._plugins.forEach(e=>this._renderer.registerPlugin(e)),this._context.canvas=new ef({container:this._container,width:e,height:t,renderer:this._renderer})}_addToTrailing(){var e;null===(e=this._trailingResolve)||void 0===e||e.call(this,this),this._trailing=!0;const t=new Promise((e,t)=>{this._trailingResolve=e,this._trailingReject=t});return t}_bindAutoFit(){const e=this.options(),{autoFit:t}=e;this._hasBindAutoFit?t||this._unbindAutoFit():t&&(this._hasBindAutoFit=!0,window.addEventListener("resize",this._onResize))}_unbindAutoFit(){this._hasBindAutoFit&&(this._hasBindAutoFit=!1,window.removeEventListener("resize",this._onResize))}}const k8=Object.assign({},L2()),O8=B2(T8,k8)},15847:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},16143:function(e){function t(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",o="<[^<>]+>",a="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional(o)+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+l+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},f=t.optional(i)+e.IDENT_RE+"\\s*\\(",p=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],g=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],m=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],v=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],A=["NULL","false","nullopt","nullptr","true"],b=["_Pragma"],y={type:g,keyword:p,literal:A,built_in:b,_type_hints:m},w={className:"function.dispatch",relevance:0,keywords:{_hint:v},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},_=[w,d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],x={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:y,contains:_.concat([{begin:/\(/,end:/\)/,keywords:y,contains:_.concat(["self"]),relevance:0}]),relevance:0},E={className:"function",begin:"("+a+"[\\*&\\s]+)+"+f,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:y,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:y,relevance:0},{begin:f,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:y,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(x,E,w,_,[d,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:y,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:y},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}e.exports=t},16171:function(e,t,n){"use strict";n(18111),n(7588);var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(49974),l=n(28646),c=n(60674),u=n(38800),d=n(51040),h=n(86157),f=n(44678);const p=()=>({align:(0,f.tK)([String,Object]),justify:(0,f.tK)([String,Object]),prefixCls:String,gutter:(0,f.tK)([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}}),g=(0,o.pM)({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:p(),setup(e,t){let{slots:n,attrs:f}=t;const{prefixCls:p,direction:g}=(0,c.A)("row",e),[m,v]=(0,h.L)(p);let A;const b=(0,l.A)(),y=(0,a.KR)({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),w=(0,a.KR)({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),_=t=>(0,o.EW)(()=>{if("string"===typeof e[t])return e[t];if("object"!==typeof e[t])return"";for(let n=0;n<l.y.length;n++){const r=l.y[n];if(!w.value[r])continue;const i=e[t][r];if(void 0!==i)return i}return""}),x=_("align"),E=_("justify"),S=(0,u.A)();(0,o.sV)(()=>{A=b.value.subscribe(t=>{w.value=t;const n=e.gutter||0;(!Array.isArray(n)&&"object"===typeof n||Array.isArray(n)&&("object"===typeof n[0]||"object"===typeof n[1]))&&(y.value=t)})}),(0,o.xo)(()=>{b.value.unsubscribe(A)});const C=(0,o.EW)(()=>{const t=[void 0,void 0],{gutter:n=0}=e,r=Array.isArray(n)?n:[n,void 0];return r.forEach((e,n)=>{if("object"===typeof e)for(let r=0;r<l.y.length;r++){const i=l.y[r];if(y.value[i]&&void 0!==e[i]){t[n]=e[i];break}}else t[n]=e}),t});(0,d.Ay)({gutter:C,supportFlexGap:S,wrap:(0,o.EW)(()=>e.wrap)});const T=(0,o.EW)(()=>(0,s.A)(p.value,{[`${p.value}-no-wrap`]:!1===e.wrap,[`${p.value}-${E.value}`]:E.value,[`${p.value}-${x.value}`]:x.value,[`${p.value}-rtl`]:"rtl"===g.value},f.class,v.value)),k=(0,o.EW)(()=>{const e=C.value,t={},n=null!=e[0]&&e[0]>0?e[0]/-2+"px":void 0,r=null!=e[1]&&e[1]>0?e[1]/-2+"px":void 0;return n&&(t.marginLeft=n,t.marginRight=n),S.value?t.rowGap=`${e[1]}px`:r&&(t.marginTop=r,t.marginBottom=r),t});return()=>{var e;return m((0,o.bF)("div",(0,r.A)((0,r.A)({},f),{},{class:T.value,style:(0,i.A)((0,i.A)({},k.value),f.style)}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}});t.A=g},16175:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311h-.3v428h472.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM112 528v364c0 17.7 14.3 32 32 32h65V496h-65c-17.7 0-32 14.3-32 32z"}}]},name:"like",theme:"filled"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="LikeFilled",c.inheritAttrs=!1;var u=c},16193:function(e,t,n){"use strict";var r=n(79504),i=Error,o=r("".replace),a=function(e){return String(new i(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!i.prepareStackTrace)while(t--)e=o(e,s,"");return e}},16632:function(e,t,n){"use strict";var r=n(46518),i=n(44576),o=n(59143),a=n(34154),s=i.Uint8Array,l=!s||!s.prototype.setFromBase64||!function(){var e=new s([255,255,255,255,255]);try{return void e.setFromBase64("",null)}catch(t){}try{return void e.setFromBase64("a")}catch(t){}try{e.setFromBase64("MjYyZg===")}catch(t){return 50===e[0]&&54===e[1]&&50===e[2]&&255===e[3]&&255===e[4]}}();s&&r({target:"Uint8Array",proto:!0,forced:l},{setFromBase64:function(e){a(this);var t=o(e,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})},16678:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="LoadingOutlined",c.inheritAttrs=!1;var u=c},16823:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},16995:function(e,t,n){"use strict";n.d(t,{Ay:function(){return ye}});n(44114),n(18111),n(22489),n(7588),n(61701),n(18237),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698);var r=n(51137),i=n(51732),o={animationIterationCount:1,aspectRatio: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},a="comm",s="rule",l="decl",c="@import",u="@namespace",d="@keyframes",h="@layer",f=Math.abs,p=String.fromCharCode;Object.assign;function g(e){return e.trim()}function m(e,t,n){return e.replace(t,n)}function v(e,t,n){return e.indexOf(t,n)}function A(e,t){return 0|e.charCodeAt(t)}function b(e,t,n){return e.slice(t,n)}function y(e){return e.length}function w(e){return e.length}function _(e,t){return t.push(e),e}function x(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function E(e,t,n,r){switch(e.type){case h:if(e.children.length)break;case c:case u:case l:return e.return=e.return||e.value;case a:return"";case d:return e.return=e.value+"{"+x(e.children,r)+"}";case s:if(!y(e.value=e.props.join(",")))return""}return y(n=x(e.children,r))?e.return=e.value+"{"+n+"}":""}var S=1,C=1,T=0,k=0,O=0,M="";function I(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:S,column:C,length:a,return:"",siblings:s}}function D(){return O}function N(){return O=k>0?A(M,--k):0,C--,10===O&&(C=1,S--),O}function R(){return O=k<T?A(M,k++):0,C++,10===O&&(C=1,S++),O}function L(){return A(M,k)}function B(){return k}function P(e,t){return b(M,e,t)}function F(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $(e){return S=C=1,T=y(M=e),k=0,[]}function j(e){return M="",e}function H(e){return g(P(k-1,z(91===e?e+2:40===e?e+1:e)))}function U(e){while(O=L()){if(!(O<33))break;R()}return F(e)>2||F(O)>3?"":" "}function Q(e,t){while(--t&&R())if(O<48||O>102||O>57&&O<65||O>70&&O<97)break;return P(e,B()+(t<6&&32==L()&&32==R()))}function z(e){while(R())switch(O){case e:return k;case 34:case 39:34!==e&&39!==e&&z(O);break;case 40:41===e&&z(e);break;case 92:R();break}return k}function W(e,t){while(R()){if(e+O===57)break;if(e+O===84&&47===L())break}return"/*"+P(t,k-1)+"*"+p(47===e?e:R())}function G(e){while(!F(L()))R();return P(e,k)}function V(e){return j(K("",null,null,null,[""],e=$(e),0,[0],e))}function K(e,t,n,r,i,o,a,s,l){var c=0,u=0,d=a,h=0,g=0,w=0,x=1,E=1,S=1,C=0,T="",k=i,O=o,M=r,I=T;while(E)switch(w=C,C=R()){case 40:if(108!=w&&58==A(I,d-1)){-1!=v(I+=m(H(C),"&","&\f"),"&\f",f(c?s[c-1]:0))&&(S=-1);break}case 34:case 39:case 91:I+=H(C);break;case 9:case 10:case 13:case 32:I+=U(w);break;case 92:I+=Q(B()-1,7);continue;case 47:switch(L()){case 42:case 47:_(q(W(R(),B()),t,n,l),l),5!=F(w||1)&&5!=F(L()||1)||!y(I)||" "===b(I,-1,void 0)||(I+=" ");break;default:I+="/"}break;case 123*x:s[c++]=y(I)*S;case 125*x:case 59:case 0:switch(C){case 0:case 125:E=0;case 59+u:-1==S&&(I=m(I,/\f/g,"")),g>0&&(y(I)-d||0===x&&47===w)&&_(g>32?X(I+";",r,n,d-1,l):X(m(I," ","")+";",r,n,d-2,l),l);break;case 59:I+=";";default:if(_(M=Y(I,t,n,c,u,i,s,T,k=[],O=[],d,o),o),123===C)if(0===u)K(I,t,M,M,k,o,d,s,O);else{switch(h){case 99:if(110===A(I,3))break;case 108:if(97===A(I,2))break;default:u=0;case 100:case 109:case 115:}u?K(e,M,M,r&&_(Y(e,M,M,0,0,i,s,T,i,k=[],d,O),O),i,O,d,s,r?k:O):K(I,M,M,M,[""],O,0,s,O)}}c=u=g=0,x=S=1,T=I="",d=a;break;case 58:d=1+y(I),g=w;default:if(x<1)if(123==C)--x;else if(125==C&&0==x++&&125==N())continue;switch(I+=p(C),C*x){case 38:S=u>0?1:(I+="\f",-1);break;case 44:s[c++]=(y(I)-1)*S,S=1;break;case 64:45===L()&&(I+=H(R())),h=L(),u=d=y(T=I+=G(B())),C++;break;case 45:45===w&&2==y(I)&&(x=0)}}return o}function Y(e,t,n,r,i,o,a,l,c,u,d,h){for(var p=i-1,v=0===i?o:[""],A=w(v),y=0,_=0,x=0;y<r;++y)for(var E=0,S=b(e,p+1,p=f(_=a[y])),C=e;E<A;++E)(C=g(_>0?v[E]+" "+S:m(S,/&\f/g,v[E])))&&(c[x++]=C);return I(e,t,n,0===i?s:l,c,u,d,h)}function q(e,t,n,r){return I(e,t,n,a,p(D()),b(e,2,-2),0,r)}function X(e,t,n,r,i){return I(e,t,n,l,b(e,0,r),b(e,r+1,-1),r,i)}var J=n(87810),Z=n(85198),ee=n(56262),te=n(39258),ne=n(56768),re=n(45887);const ie="data-ant-cssinjs-cache-path",oe="_FILE_STYLE__";let ae,se=!0;function le(){var e;if(!ae&&(ae={},(0,re.A)())){const t=document.createElement("div");t.className=ie,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(e=>{const[t,n]=e.split(":");ae[t]=n});const r=document.querySelector(`style[${ie}]`);r&&(se=!1,null===(e=r.parentNode)||void 0===e||e.removeChild(r)),document.body.removeChild(t)}}function ce(e){return le(),!!ae[e]}function ue(e){const t=ae[e];let n=null;if(t&&(0,re.A)())if(se)n=oe;else{const t=document.querySelector(`style[${J.aH}="${ae[e]}"]`);t?n=t.innerHTML:delete ae[e]}return[n,t]}const de=(0,re.A)(),he="_skip_check_",fe="_multi_value_";function pe(e){const t=x(V(e),E);return t.replace(/\{%%%\:[^;];}/g,";")}function ge(e){return"object"===typeof e&&e&&(he in e||fe in e)}function me(e,t,n){if(!t)return e;const r=`.${t}`,i="low"===n?`:where(${r})`:r,o=e.split(",").map(e=>{var t;const n=e.trim().split(/\s+/);let r=n[0]||"";const o=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return r=`${o}${i}${r.slice(o.length)}`,[r,...n.slice(1)].join(" ")});return o.join(",")}const ve=new Set,Ae=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{root:n,injectHash:i,parentSelectors:a}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:s,layer:l,path:c,hashPriority:u,transformers:d=[],linters:h=[]}=t;let f="",p={};function g(e){const n=e.getName(s);if(!p[n]){const[r]=Ae(e.style,t,{root:!1,parentSelectors:a});p[n]=`@keyframes ${e.getName(s)}${r}`}}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach(e=>{Array.isArray(e)?m(e,t):e&&t.push(e)}),t}const v=m(Array.isArray(e)?e:[e]);if(v.forEach(e=>{const l="string"!==typeof e||n?e:{};if("string"===typeof l)f+=`${l}\n`;else if(l._keyframe)g(l);else{const e=d.reduce((e,t)=>{var n;return(null===(n=null===t||void 0===t?void 0:t.visit)||void 0===n?void 0:n.call(t,e))||e},l);Object.keys(e).forEach(l=>{var c;const d=e[l];if("object"!==typeof d||!d||"animationName"===l&&d._keyframe||ge(d)){function h(e,t){const n=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);let r=t;o[e]||"number"!==typeof r||0===r||(r=`${r}px`),"animationName"===e&&(null===t||void 0===t?void 0:t._keyframe)&&(g(t),r=t.getName(s)),f+=`${n}:${r};`}const m=null!==(c=null===d||void 0===d?void 0:d.value)&&void 0!==c?c:d;"object"===typeof d&&(null===d||void 0===d?void 0:d[fe])&&Array.isArray(m)?m.forEach(e=>{h(l,e)}):h(l,m)}else{let v=!1,A=l.trim(),b=!1;(n||i)&&s?A.startsWith("@")?v=!0:A=me(l,s,u):!n||s||"&"!==A&&""!==A||(A="",b=!0);const[y,w]=Ae(d,t,{root:b,injectHash:v,parentSelectors:[...a,A]});p=(0,r.A)((0,r.A)({},p),w),f+=`${A}${y}`}})}}),n){if(l&&(0,Z.V8)()){const e=l.split(","),t=e[e.length-1].trim();f=`@layer ${t} {${f}}`,e.length>1&&(f=`@layer ${l}{%%%:%}${f}`)}}else f=`{${f}}`;return[f,p]};function be(e,t){return(0,i.A)(`${e.join("%")}${t}`)}function ye(e,t){const n=(0,J.K6)(),r=(0,ne.EW)(()=>e.value.token._tokenKey),i=(0,ne.EW)(()=>[r.value,...e.value.path]);let o=de;return(0,ee.A)("style",i,()=>{const{path:a,hashId:s,layer:l,nonce:c,clientOnly:u,order:d=0}=e.value,h=i.value.join("|");if(ce(h)){const[e,t]=ue(h);if(e)return[e,r.value,t,{},u,d]}const f=t(),{hashPriority:p,container:g,transformers:m,linters:v,cache:A}=n.value,[b,y]=Ae(f,{hashId:s,hashPriority:p,layer:l,path:a.join("-"),transformers:m,linters:v}),w=pe(b),_=be(i.value,w);if(o){const e={mark:J.aH,prepend:"queue",attachTo:g,priority:d},t="function"===typeof c?c():c;t&&(e.csp={nonce:t});const n=(0,te.BD)(w,_,e);n[J.oi]=A.instanceId,n.setAttribute(J.Oc,r.value),Object.keys(y).forEach(e=>{ve.has(e)||(ve.add(e),(0,te.BD)(pe(y[e]),`_effect-${e}`,{mark:J.aH,prepend:"queue",attachTo:g}))})}return[w,r.value,_,y,u,d]},(e,t)=>{let[,,r]=e;(t||n.value.autoClear)&&de&&(0,te.m6)(r,{mark:J.aH})}),e=>e}},16996:function(e){function t(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},a={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,o,a]}}e.exports=t},17099:function(e,t,n){"use strict";n.d(t,{Ay:function(){return F}});var r=n(41034),i=n(56768),o=n(81425),a=n(7403),s=n(87546),l=n(6252),c=(n(18111),n(22489),n(7588),{icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"}),u=c,d=n(4827);function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){f(e,t,n[t])})}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e,t){var n=h({},e,t.attrs);return(0,i.bF)(d.A,h({},n,{icon:u}),null)};p.displayName="WarningFilled",p.inheritAttrs=!1;var g=p;const m=()=>(0,i.bF)("svg",{width:"252",height:"294"},[(0,i.bF)("defs",null,[(0,i.bF)("path",{d:"M0 .387h251.772v251.772H0z"},null)]),(0,i.bF)("g",{fill:"none","fill-rule":"evenodd"},[(0,i.bF)("g",{transform:"translate(0 .012)"},[(0,i.bF)("mask",{fill:"#fff"},null),(0,i.bF)("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),(0,i.bF)("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),(0,i.bF)("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),(0,i.bF)("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),(0,i.bF)("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),(0,i.bF)("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),(0,i.bF)("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),(0,i.bF)("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),(0,i.bF)("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),(0,i.bF)("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),(0,i.bF)("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),(0,i.bF)("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),(0,i.bF)("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),(0,i.bF)("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),(0,i.bF)("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),(0,i.bF)("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),(0,i.bF)("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),(0,i.bF)("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),(0,i.bF)("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),(0,i.bF)("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),(0,i.bF)("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),(0,i.bF)("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),(0,i.bF)("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),(0,i.bF)("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),(0,i.bF)("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),(0,i.bF)("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),(0,i.bF)("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),(0,i.bF)("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),(0,i.bF)("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),(0,i.bF)("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),(0,i.bF)("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),(0,i.bF)("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),(0,i.bF)("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),(0,i.bF)("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),(0,i.bF)("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),(0,i.bF)("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),(0,i.bF)("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),(0,i.bF)("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),(0,i.bF)("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),(0,i.bF)("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),(0,i.bF)("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),(0,i.bF)("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])]);var v=m;const A=()=>(0,i.bF)("svg",{width:"254",height:"294"},[(0,i.bF)("defs",null,[(0,i.bF)("path",{d:"M0 .335h253.49v253.49H0z"},null),(0,i.bF)("path",{d:"M0 293.665h253.49V.401H0z"},null)]),(0,i.bF)("g",{fill:"none","fill-rule":"evenodd"},[(0,i.bF)("g",{transform:"translate(0 .067)"},[(0,i.bF)("mask",{fill:"#fff"},null),(0,i.bF)("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),(0,i.bF)("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),(0,i.bF)("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),(0,i.bF)("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),(0,i.bF)("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),(0,i.bF)("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),(0,i.bF)("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),(0,i.bF)("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),(0,i.bF)("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),(0,i.bF)("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),(0,i.bF)("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),(0,i.bF)("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),(0,i.bF)("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),(0,i.bF)("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),(0,i.bF)("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),(0,i.bF)("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),(0,i.bF)("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),(0,i.bF)("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),(0,i.bF)("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),(0,i.bF)("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),(0,i.bF)("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),(0,i.bF)("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),(0,i.bF)("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),(0,i.bF)("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),(0,i.bF)("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),(0,i.bF)("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),(0,i.bF)("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),(0,i.bF)("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),(0,i.bF)("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),(0,i.bF)("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),(0,i.bF)("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),(0,i.bF)("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),(0,i.bF)("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),(0,i.bF)("mask",{fill:"#fff"},null),(0,i.bF)("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),(0,i.bF)("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),(0,i.bF)("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),(0,i.bF)("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),(0,i.bF)("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),(0,i.bF)("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),(0,i.bF)("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),(0,i.bF)("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),(0,i.bF)("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),(0,i.bF)("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),(0,i.bF)("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])]);var b=A;const y=()=>(0,i.bF)("svg",{width:"251",height:"294"},[(0,i.bF)("g",{fill:"none","fill-rule":"evenodd"},[(0,i.bF)("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),(0,i.bF)("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),(0,i.bF)("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),(0,i.bF)("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),(0,i.bF)("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),(0,i.bF)("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),(0,i.bF)("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),(0,i.bF)("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),(0,i.bF)("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),(0,i.bF)("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),(0,i.bF)("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),(0,i.bF)("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),(0,i.bF)("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),(0,i.bF)("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),(0,i.bF)("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),(0,i.bF)("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),(0,i.bF)("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),(0,i.bF)("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),(0,i.bF)("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),(0,i.bF)("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),(0,i.bF)("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),(0,i.bF)("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),(0,i.bF)("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),(0,i.bF)("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),(0,i.bF)("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),(0,i.bF)("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),(0,i.bF)("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),(0,i.bF)("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),(0,i.bF)("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),(0,i.bF)("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),(0,i.bF)("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),(0,i.bF)("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),(0,i.bF)("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),(0,i.bF)("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),(0,i.bF)("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),(0,i.bF)("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),(0,i.bF)("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),(0,i.bF)("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),(0,i.bF)("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),(0,i.bF)("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])]);var w=y,_=n(60674),x=n(49974),E=n(90112),S=n(9519);const C=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:i,paddingXL:o,paddingXS:a,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${2*s}px ${o}px`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.resultIconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.resultTitleFontSize,lineHeight:n,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.resultSubtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${s}px ${2.5*i}px`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.resultExtraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},T=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},k=e=>[C(e),T(e)],O=e=>k(e);var M=(0,E.A)("Result",e=>{const{paddingLG:t,fontSizeHeading3:n}=e,r=e.fontSize,i=`${t}px 0 0 0`,o=e.colorInfo,a=e.colorError,s=e.colorSuccess,l=e.colorWarning,c=(0,S.h1)(e,{resultTitleFontSize:n,resultSubtitleFontSize:r,resultIconFontSize:3*n,resultExtraMargin:i,resultInfoIconColor:o,resultErrorIconColor:a,resultSuccessIconColor:s,resultWarningIconColor:l});return[O(c)]},{imageWidth:250,imageHeight:295});const I={success:a.A,error:s.A,info:l.A,warning:g},D={404:v,500:b,403:w},N=Object.keys(D),R=()=>({prefixCls:String,icon:o.A.any,status:{type:[Number,String],default:"info"},title:o.A.any,subTitle:o.A.any,extra:o.A.any}),L=(e,t)=>{let{status:n,icon:r}=t;if(N.includes(`${n}`)){const t=D[n];return(0,i.bF)("div",{class:`${e}-icon ${e}-image`},[(0,i.bF)(t,null,null)])}const o=I[n],a=r||(0,i.bF)(o,null,null);return(0,i.bF)("div",{class:`${e}-icon`},[a])},B=(e,t)=>t&&(0,i.bF)("div",{class:`${e}-extra`},[t]),P=(0,i.pM)({compatConfig:{MODE:3},name:"AResult",inheritAttrs:!1,props:R(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:a,direction:s}=(0,_.A)("result",e),[l,c]=M(a),u=(0,i.EW)(()=>(0,x.A)(a.value,c.value,`${a.value}-${e.status}`,{[`${a.value}-rtl`]:"rtl"===s.value}));return()=>{var t,s,c,d,h,f,p,g;const m=null!==(t=e.title)&&void 0!==t?t:null===(s=n.title)||void 0===s?void 0:s.call(n),v=null!==(c=e.subTitle)&&void 0!==c?c:null===(d=n.subTitle)||void 0===d?void 0:d.call(n),A=null!==(h=e.icon)&&void 0!==h?h:null===(f=n.icon)||void 0===f?void 0:f.call(n),b=null!==(p=e.extra)&&void 0!==p?p:null===(g=n.extra)||void 0===g?void 0:g.call(n),y=a.value;return l((0,i.bF)("div",(0,r.A)((0,r.A)({},o),{},{class:[u.value,o.class]}),[L(y,{status:e.status,icon:A}),(0,i.bF)("div",{class:`${y}-title`},[m]),v&&(0,i.bF)("div",{class:`${y}-subtitle`},[v]),B(y,b),n.default&&(0,i.bF)("div",{class:`${y}-content`},[n.default()])]))}}});P.PRESENTED_IMAGE_403=D[403],P.PRESENTED_IMAGE_404=D[404],P.PRESENTED_IMAGE_500=D[500],P.install=function(e){return e.component(P.name,P),e};var F=P},17140:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="CheckCircleOutlined",c.inheritAttrs=!1;var u=c},17195:function(e,t,n){const r=n(15847),i=n(83693);function o(e){if("string"!==typeof e)throw new Error("Param is not a string");const n=e.toLowerCase();switch(n){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return o(e)}catch(r){return n}}},17197:function(e,t,n){"use strict";n.d(t,{A:function(){return A}});n(44114),n(18111),n(22489),n(61701);var r=n(41034),i=n(51137),o=n(56768),a=n(51589),s=n(90144),l=n(45130),c=n(69998),u=n(36504),d=n(49974),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};let f=0;const p=Date.now();function g(){const e=f;return f+=1,`rcNotification_${p}_${e}`}const m=(0,o.pM)({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId"],setup(e,t){let{attrs:n,expose:u,slots:h}=t;const f=new Map,p=(0,s.KR)([]),m=(0,o.EW)(()=>{const{prefixCls:t,animation:n="fade"}=e;let r=e.transitionName;return!r&&n&&(r=`${t}-${n}`),(0,a.zg)(r)}),v=(t,n)=>{const r=t.key||g(),o=(0,i.A)((0,i.A)({},t),{key:r}),{maxCount:a}=e,s=p.value.map(e=>e.notice.key).indexOf(r),l=p.value.concat();-1!==s?l.splice(s,1,{notice:o,holderCallback:n}):(a&&p.value.length>=a&&(o.key=l[0].notice.key,o.updateMark=g(),o.userPassKey=r,l.shift()),l.push({notice:o,holderCallback:n})),p.value=l},A=e=>{p.value=(0,s.ux)(p.value).filter(t=>{let{notice:{key:n,userPassKey:r}}=t;const i=r||n;return i!==e})};return u({add:v,remove:A,notices:p}),()=>{var t;const{prefixCls:a,closeIcon:s=(null===(t=h.closeIcon)||void 0===t?void 0:t.call(h,{prefixCls:a}))}=e,u=p.value.map((t,n)=>{let{notice:l,holderCallback:u}=t;const h=n===p.value.length-1?l.updateMark:void 0,{key:g,userPassKey:m}=l,{content:v}=l,b=(0,i.A)((0,i.A)((0,i.A)({prefixCls:a,closeIcon:"function"===typeof s?s({prefixCls:a}):s},l),l.props),{key:g,noticeKey:m||g,updateMark:h,onClose:e=>{var t;A(e),null===(t=l.onClose)||void 0===t||t.call(l)},onClick:l.onClick});return u?(0,o.bF)("div",{key:g,class:`${a}-hook-holder`,ref:e=>{"undefined"!==typeof g&&(e?(f.set(g,e),u(e,b)):f.delete(g))}},null):(0,o.bF)(c.A,(0,r.A)((0,r.A)({},b),{},{class:(0,d.A)(b.class,e.hashId)}),{default:()=>["function"===typeof v?v({prefixCls:a}):v]})}),g={[a]:1,[n.class]:!!n.class,[e.hashId]:!0};return(0,o.bF)("div",{class:g,style:n.style||{top:"65px",left:"50%"}},[(0,o.bF)(l.F,(0,r.A)({tag:"div"},m.value),{default:()=>[u]})])}}});m.newInstance=function(e,t){const n=e||{},{name:i="notification",getContainer:a,appContext:c,prefixCls:d,rootPrefixCls:f,transitionName:p,hasTransitionName:g,useStyle:v}=n,A=h(n,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),b=document.createElement("div");if(a){const e=a();e.appendChild(b)}else document.body.appendChild(b);const y=(0,o.pM)({compatConfig:{MODE:3},name:"NotificationWrapper",setup(e,n){let{attrs:a}=n;const c=(0,s.IJ)(),h=(0,o.EW)(()=>u.Vm.getPrefixCls(i,d)),[,A]=v(h);return(0,o.sV)(()=>{t({notice(e){var t;null===(t=c.value)||void 0===t||t.add(e)},removeNotice(e){var t;null===(t=c.value)||void 0===t||t.remove(e)},destroy(){(0,l.XX)(null,b),b.parentNode&&b.parentNode.removeChild(b)},component:c})}),()=>{const e=u.Vm,t=e.getRootPrefixCls(f,h.value),n=g?p:`${h.value}-${p}`;return(0,o.bF)(u.Ay,(0,r.A)((0,r.A)({},e),{},{prefixCls:t}),{default:()=>[(0,o.bF)(m,(0,r.A)((0,r.A)({ref:c},a),{},{prefixCls:h.value,transitionName:n,hashId:A.value}),null)]})}}}),w=(0,o.bF)(y,A);w.appContext=c||w.appContext,(0,l.XX)(w,b)};var v=m,A=v},17528:function(e,t){"use strict";function n(e){return function(t){return e(t)}}t.A=n},17580:function(e){function t(e){const t={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},n={className:"string",begin:'"""',end:'"""',relevance:10},r={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},i={className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},o={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},a={begin:e.IDENT_RE+"'",relevance:0},s={className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0};return{name:"Pony",keywords:t,contains:[o,n,r,i,a,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}e.exports=t},17609:function(e){function t(e){const t=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],n="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",r="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",i={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},o=/\w[\w\d]*((-)[\w\d]+)*/,a={begin:"`[\\s\\S]",relevance:0},s={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},l={className:"literal",begin:/\$(null|true|false)\b/},c={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[a,s,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},u={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},d={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},h=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[d]}),f={className:"built_in",variants:[{begin:"(".concat(n,")+(-)[\\w\\d]+")}]},p={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},g={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:o,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[s]}]},m={begin:/using\s/,end:/$/,returnBegin:!0,contains:[c,u,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},v={variants:[{className:"operator",begin:"(".concat(r,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},A={className:"selector-tag",begin:/@\B/,relevance:0},b={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(i.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},y=[b,h,a,e.NUMBER_MODE,c,u,f,s,l,A],w={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",y,{begin:"("+t.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return b.contains.unshift(w),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:i,contains:y.concat(p,g,m,v,w)}}e.exports=t},17642:function(e,t,n){"use strict";var r=n(46518),i=n(83440),o=n(79039),a=n(84916),s=!a("difference",function(e){return 0===e.size}),l=s||o(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var n=e++>1;return t.has(1)&&t.clear(),{done:n,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size});r({target:"Set",proto:!0,real:!0,forced:l},{difference:i})},17652:function(e){function t(e){const t="[a-zA-Z_][\\w.]*",n="<\\?(lasso(script)?|=)",r="\\]|\\?>",i={$pattern:t+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},o=e.COMMENT("\x3c!--","--\x3e",{relevance:0}),a={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[o]}},s={className:"meta",begin:"\\[/noprocess|"+n},l={className:"symbol",begin:"'"+t+"'"},c=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+t},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:t,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+t,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[l]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:t+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:i,contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[|"+n,returnEnd:!0,relevance:0,contains:[o]}},a,s,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:i,contains:[{className:"meta",begin:r,relevance:0,starts:{end:"\\[noprocess\\]|"+n,returnEnd:!0,contains:[o]}},a,s].concat(c)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(c)}}e.exports=t},17657:function(e,t,n){"use strict";var r=n(44678);t.A=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:(0,r.ge)(),overlayInnerStyle:(0,r.ge)(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},arrow:{type:[Boolean,Object],default:!0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:(0,r.ge)(),builtinPlacements:(0,r.ge)(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function})},17694:function(e,t,n){"use strict";n(18111),n(7588);var r=n(51137),i=n(56768),o=n(17197),a=n(16678),s=n(6252),l=n(87546),c=n(7403),u=n(60136),d=n(49974),h=n(23616),f=n(77246);let p,g,m,v=3,A=1,b="",y="move-up",w=!1,_=()=>document.body,x=!1;function E(){return A++}function S(e){void 0!==e.top&&(p=e.top,g=null),void 0!==e.duration&&(v=e.duration),void 0!==e.prefixCls&&(b=e.prefixCls),void 0!==e.getContainer&&(_=e.getContainer,g=null),void 0!==e.transitionName&&(y=e.transitionName,g=null,w=!0),void 0!==e.maxCount&&(m=e.maxCount,g=null),void 0!==e.rtl&&(x=e.rtl)}function C(e,t){g?t(g):o.A.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||b,rootPrefixCls:e.rootPrefixCls,transitionName:y,hasTransitionName:w,style:{top:p},getContainer:_||e.getPopupContainer,maxCount:m,name:"message",useStyle:h.A},e=>{g?t(g):(g=e,t(e))})}const T={info:u.A,success:c.A,error:l.A,warning:s.A,loading:a.A},k=Object.keys(T);function O(e){const t=void 0!==e.duration?e.duration:v,n=e.key||E(),r=new Promise(r=>{const o=()=>("function"===typeof e.onClose&&e.onClose(),r(!0));C(e,r=>{r.notice({key:n,duration:t,style:e.style||{},class:e.class,content:t=>{let{prefixCls:n}=t;const r=T[e.type],o=r?(0,i.bF)(r,null,null):"",a=(0,d.A)(`${n}-custom-content`,{[`${n}-${e.type}`]:e.type,[`${n}-rtl`]:!0===x});return(0,i.bF)("div",{class:a},["function"===typeof e.icon?e.icon():e.icon||o,(0,i.bF)("span",null,["function"===typeof e.content?e.content():e.content])])},onClose:o,onClick:e.onClick})})}),o=()=>{g&&g.removeNotice(n)};return o.then=(e,t)=>r.then(e,t),o.promise=r,o}function M(e){return"[object Object]"===Object.prototype.toString.call(e)&&!!e.content}const I={open:O,config:S,destroy(e){if(g)if(e){const{removeNotice:t}=g;t(e)}else{const{destroy:e}=g;e(),g=null}}};function D(e,t){e[t]=(n,i,o)=>M(n)?e.open((0,r.A)((0,r.A)({},n),{type:t})):("function"===typeof i&&(o=i,i=void 0),e.open({content:n,duration:i,type:t,onClose:o}))}k.forEach(e=>D(I,e)),I.warn=I.warning,I.useMessage=f.A;t.Ay=I},17697:function(e){const t=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],n=["true","false","null","undefined","NaN","Infinity"],r=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],a=[].concat(o,r,i);function s(e){const r=["npm","print"],i=["yes","no","on","off","it","that","void"],o=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],s={keyword:t.concat(o),literal:n.concat(i),built_in:a.concat(r)},l="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",c=e.inherit(e.TITLE_MODE,{begin:l}),u={className:"subst",begin:/#\{/,end:/\}/,keywords:s},d={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:s},h=[e.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u,d]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,u,d]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[u,e.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+l},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];u.contains=h;const f={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:s,contains:["self"].concat(h)}]},p={begin:"(#=>|=>|\\|>>|-?->|!->)"},g={variants:[{match:[/class\s+/,l,/\s+extends\s+/,l]},{match:[/class\s+/,l]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s};return{name:"LiveScript",aliases:["ls"],keywords:s,illegal:/\/\*/,contains:h.concat([e.COMMENT("\\/\\*","\\*\\/"),e.HASH_COMMENT_MODE,p,{className:"function",contains:[c,f],returnBegin:!0,variants:[{begin:"("+l+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+l+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+l+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},g,{begin:l+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}e.exports=s},17998:function(e){function t(e){const t="\\d(_|\\d)*",n="[eE][-+]?"+t,r=t+"(\\."+t+")?("+n+")?",i="\\w+",o=t+"#"+i+"(\\."+i+")?#("+n+")?",a="\\b("+o+"|"+r+")",s=["abs","access","after","alias","all","and","architecture","array","assert","assume","assume_guarantee","attribute","begin","block","body","buffer","bus","case","component","configuration","constant","context","cover","disconnect","downto","default","else","elsif","end","entity","exit","fairness","file","for","force","function","generate","generic","group","guarded","if","impure","in","inertial","inout","is","label","library","linkage","literal","loop","map","mod","nand","new","next","nor","not","null","of","on","open","or","others","out","package","parameter","port","postponed","procedure","process","property","protected","pure","range","record","register","reject","release","rem","report","restrict","restrict_guarantee","return","rol","ror","select","sequence","severity","shared","signal","sla","sll","sra","srl","strong","subtype","then","to","transport","type","unaffected","units","until","use","variable","view","vmode","vprop","vunit","wait","when","while","with","xnor","xor"],l=["boolean","bit","character","integer","time","delay_length","natural","positive","string","bit_vector","file_open_kind","file_open_status","std_logic","std_logic_vector","unsigned","signed","boolean_vector","integer_vector","std_ulogic","std_ulogic_vector","unresolved_unsigned","u_unsigned","unresolved_signed","u_signed","real_vector","time_vector"],c=["false","true","note","warning","error","failure","line","text","side","width"];return{name:"VHDL",case_insensitive:!0,keywords:{keyword:s,built_in:l,literal:c},illegal:/\{/,contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:a,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}}e.exports=t},18014:function(e,t,n){"use strict";var r=n(91291),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},18095:function(e,t,n){"use strict";var r=n(11591),i=n(22799),o="[object Symbol]";function a(e){return"symbol"==typeof e||(0,i.A)(e)&&(0,r.A)(e)==o}t.A=a},18111:function(e,t,n){"use strict";var r=n(46518),i=n(44576),o=n(90679),a=n(28551),s=n(94901),l=n(42787),c=n(62106),u=n(97040),d=n(79039),h=n(39297),f=n(78227),p=n(57657).IteratorPrototype,g=n(43724),m=n(96395),v="constructor",A="Iterator",b=f("toStringTag"),y=TypeError,w=i[A],_=m||!s(w)||w.prototype!==p||!d(function(){w({})}),x=function(){if(o(this,p),l(this)===p)throw new y("Abstract class Iterator not directly constructable")},E=function(e,t){g?c(p,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===p)throw new y("You can't redefine this property");h(this,e)?this[e]=t:u(this,e,t)}}):p[e]=t};h(p,b)||E(b,A),!_&&h(p,v)&&p[v]!==Object||E(v,x),x.prototype=p,r({global:!0,constructor:!0,forced:_},{Iterator:x})},18237:function(e,t,n){"use strict";var r=n(46518),i=n(72652),o=n(79306),a=n(28551),s=n(1767),l=n(9539),c=n(84549),u=n(18745),d=n(79039),h=TypeError,f=d(function(){[].keys().reduce(function(){},void 0)}),p=!f&&c("reduce",h);r({target:"Iterator",proto:!0,real:!0,forced:f||p},{reduce:function(e){a(this);try{o(e)}catch(d){l(this,"throw",d)}var t=arguments.length<2,n=t?void 0:arguments[1];if(p)return u(p,this,t?[e]:[e,n]);var r=s(this),c=0;if(i(r,function(r){t?(t=!1,n=r):n=e(n,r,c),c++},{IS_RECORD:!0}),t)throw new h("Reduce of empty iterator with no initial value");return n}})},18257:function(e,t,n){"use strict";n(44114);var r=n(38809);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},18264:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="StarFilled",c.inheritAttrs=!1;var u=c},18353:function(e,t,n){"use strict";n.d(t,{A:function(){return ae}});n(44114);
/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */const{entries:r,setPrototypeOf:i,isFrozen:o,getPrototypeOf:a,getOwnPropertyDescriptor:s}=Object;let{freeze:l,seal:c,create:u}=Object,{apply:d,construct:h}="undefined"!==typeof Reflect&&Reflect;l||(l=function(e){return e}),c||(c=function(e){return e}),d||(d=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),h||(h=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const f=T(Array.prototype.forEach),p=T(Array.prototype.lastIndexOf),g=T(Array.prototype.pop),m=T(Array.prototype.push),v=T(Array.prototype.splice),A=T(String.prototype.toLowerCase),b=T(String.prototype.toString),y=T(String.prototype.match),w=T(String.prototype.replace),_=T(String.prototype.indexOf),x=T(String.prototype.trim),E=T(Object.prototype.hasOwnProperty),S=T(RegExp.prototype.test),C=k(TypeError);function T(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return d(e,t,r)}}function k(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return h(e,n)}}function O(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A;i&&i(e,null);let r=t.length;while(r--){let i=t[r];if("string"===typeof i){const e=n(i);e!==i&&(o(t)||(t[r]=e),i=e)}e[i]=!0}return e}function M(e){for(let t=0;t<e.length;t++){const n=E(e,t);n||(e[t]=null)}return e}function I(e){const t=u(null);for(const[n,i]of r(e)){const r=E(e,n);r&&(Array.isArray(i)?t[n]=M(i):i&&"object"===typeof i&&i.constructor===Object?t[n]=I(i):t[n]=i)}return t}function D(e,t){while(null!==e){const n=s(e,t);if(n){if(n.get)return T(n.get);if("function"===typeof n.value)return T(n.value)}e=a(e)}function n(){return null}return n}const N=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),R=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),P=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),F=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$=l(["#text"]),j=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),H=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),U=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Q=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=c(/<%[\w\W]*|[\w\W]*%>/gm),G=c(/\$\{[\w\W]*/gm),V=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),K=c(/^aria-[\-\w]+$/),Y=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q=c(/^(?:\w+script|data):/i),X=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=c(/^html$/i),Z=c(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:K,ATTR_WHITESPACE:X,CUSTOM_ELEMENT:Z,DATA_ATTR:V,DOCTYPE_NAME:J,ERB_EXPR:W,IS_ALLOWED_URI:Y,IS_SCRIPT_OR_DATA:q,MUSTACHE_EXPR:z,TMPLIT_EXPR:G});const te={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ne=function(){return"undefined"===typeof window?null:window},re=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch(o){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ie=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function oe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne();const t=e=>oe(e);if(t.version="3.2.7",t.removed=[],!e||!e.document||e.document.nodeType!==te.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const i=n,o=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:c,Element:d,NodeFilter:h,NamedNodeMap:T=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:k,DOMParser:M,trustedTypes:z}=e,W=d.prototype,G=D(W,"cloneNode"),V=D(W,"remove"),K=D(W,"nextSibling"),q=D(W,"childNodes"),X=D(W,"parentNode");if("function"===typeof s){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let Z,ae="";const{implementation:se,createNodeIterator:le,createDocumentFragment:ce,getElementsByTagName:ue}=n,{importNode:de}=i;let he=ie();t.isSupported="function"===typeof r&&"function"===typeof X&&se&&void 0!==se.createHTMLDocument;const{MUSTACHE_EXPR:fe,ERB_EXPR:pe,TMPLIT_EXPR:ge,DATA_ATTR:me,ARIA_ATTR:ve,IS_SCRIPT_OR_DATA:Ae,ATTR_WHITESPACE:be,CUSTOM_ELEMENT:ye}=ee;let{IS_ALLOWED_URI:we}=ee,_e=null;const xe=O({},[...N,...R,...L,...P,...$]);let Ee=null;const Se=O({},[...j,...H,...U,...Q]);let Ce=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,ke=null,Oe=!0,Me=!0,Ie=!1,De=!0,Ne=!1,Re=!0,Le=!1,Be=!1,Pe=!1,Fe=!1,$e=!1,je=!1,He=!0,Ue=!1;const Qe="user-content-";let ze=!0,We=!1,Ge={},Ve=null;const Ke=O({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ye=null;const qe=O({},["audio","video","img","source","image","track"]);let Xe=null;const Je=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",et="http://www.w3.org/2000/svg",tt="http://www.w3.org/1999/xhtml";let nt=tt,rt=!1,it=null;const ot=O({},[Ze,et,tt],b);let at=O({},["mi","mo","mn","ms","mtext"]),st=O({},["annotation-xml"]);const lt=O({},["title","style","font","a","script"]);let ct=null;const ut=["application/xhtml+xml","text/html"],dt="text/html";let ht=null,ft=null;const pt=n.createElement("form"),gt=function(e){return e instanceof RegExp||e instanceof Function},mt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ft||ft!==e){if(e&&"object"===typeof e||(e={}),e=I(e),ct=-1===ut.indexOf(e.PARSER_MEDIA_TYPE)?dt:e.PARSER_MEDIA_TYPE,ht="application/xhtml+xml"===ct?b:A,_e=E(e,"ALLOWED_TAGS")?O({},e.ALLOWED_TAGS,ht):xe,Ee=E(e,"ALLOWED_ATTR")?O({},e.ALLOWED_ATTR,ht):Se,it=E(e,"ALLOWED_NAMESPACES")?O({},e.ALLOWED_NAMESPACES,b):ot,Xe=E(e,"ADD_URI_SAFE_ATTR")?O(I(Je),e.ADD_URI_SAFE_ATTR,ht):Je,Ye=E(e,"ADD_DATA_URI_TAGS")?O(I(qe),e.ADD_DATA_URI_TAGS,ht):qe,Ve=E(e,"FORBID_CONTENTS")?O({},e.FORBID_CONTENTS,ht):Ke,Te=E(e,"FORBID_TAGS")?O({},e.FORBID_TAGS,ht):I({}),ke=E(e,"FORBID_ATTR")?O({},e.FORBID_ATTR,ht):I({}),Ge=!!E(e,"USE_PROFILES")&&e.USE_PROFILES,Oe=!1!==e.ALLOW_ARIA_ATTR,Me=!1!==e.ALLOW_DATA_ATTR,Ie=e.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ne=e.SAFE_FOR_TEMPLATES||!1,Re=!1!==e.SAFE_FOR_XML,Le=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,$e=e.RETURN_DOM_FRAGMENT||!1,je=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,He=!1!==e.SANITIZE_DOM,Ue=e.SANITIZE_NAMED_PROPS||!1,ze=!1!==e.KEEP_CONTENT,We=e.IN_PLACE||!1,we=e.ALLOWED_URI_REGEXP||Y,nt=e.NAMESPACE||tt,at=e.MATHML_TEXT_INTEGRATION_POINTS||at,st=e.HTML_INTEGRATION_POINTS||st,Ce=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&gt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ce.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&gt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ce.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ce.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ne&&(Me=!1),$e&&(Fe=!0),Ge&&(_e=O({},$),Ee=[],!0===Ge.html&&(O(_e,N),O(Ee,j)),!0===Ge.svg&&(O(_e,R),O(Ee,H),O(Ee,Q)),!0===Ge.svgFilters&&(O(_e,L),O(Ee,H),O(Ee,Q)),!0===Ge.mathMl&&(O(_e,P),O(Ee,U),O(Ee,Q))),e.ADD_TAGS&&(_e===xe&&(_e=I(_e)),O(_e,e.ADD_TAGS,ht)),e.ADD_ATTR&&(Ee===Se&&(Ee=I(Ee)),O(Ee,e.ADD_ATTR,ht)),e.ADD_URI_SAFE_ATTR&&O(Xe,e.ADD_URI_SAFE_ATTR,ht),e.FORBID_CONTENTS&&(Ve===Ke&&(Ve=I(Ve)),O(Ve,e.FORBID_CONTENTS,ht)),ze&&(_e["#text"]=!0),Le&&O(_e,["html","head","body"]),_e.table&&(O(_e,["tbody"]),delete Te.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Z=e.TRUSTED_TYPES_POLICY,ae=Z.createHTML("")}else void 0===Z&&(Z=re(z,o)),null!==Z&&"string"===typeof ae&&(ae=Z.createHTML(""));l&&l(e),ft=e}},vt=O({},[...R,...L,...B]),At=O({},[...P,...F]),bt=function(e){let t=X(e);t&&t.tagName||(t={namespaceURI:nt,tagName:"template"});const n=A(e.tagName),r=A(t.tagName);return!!it[e.namespaceURI]&&(e.namespaceURI===et?t.namespaceURI===tt?"svg"===n:t.namespaceURI===Ze?"svg"===n&&("annotation-xml"===r||at[r]):Boolean(vt[n]):e.namespaceURI===Ze?t.namespaceURI===tt?"math"===n:t.namespaceURI===et?"math"===n&&st[r]:Boolean(At[n]):e.namespaceURI===tt?!(t.namespaceURI===et&&!st[r])&&(!(t.namespaceURI===Ze&&!at[r])&&(!At[n]&&(lt[n]||!vt[n]))):!("application/xhtml+xml"!==ct||!it[e.namespaceURI]))},yt=function(e){m(t.removed,{element:e});try{X(e).removeChild(e)}catch(n){V(e)}},wt=function(e,n){try{m(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(r){m(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e)if(Fe||$e)try{yt(n)}catch(r){}else try{n.setAttribute(e,"")}catch(r){}},_t=function(e){let t=null,r=null;if(Pe)e="<remove></remove>"+e;else{const t=y(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===ct&&nt===tt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=Z?Z.createHTML(e):e;if(nt===tt)try{t=(new M).parseFromString(i,ct)}catch(a){}if(!t||!t.documentElement){t=se.createDocument(nt,"template",null);try{t.documentElement.innerHTML=rt?ae:i}catch(a){}}const o=t.body||t.documentElement;return e&&r&&o.insertBefore(n.createTextNode(r),o.childNodes[0]||null),nt===tt?ue.call(t,Le?"html":"body")[0]:Le?t.documentElement:o},xt=function(e){return le.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Et=function(e){return e instanceof k&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof T)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},St=function(e){return"function"===typeof c&&e instanceof c};function Ct(e,n,r){f(e,e=>{e.call(t,n,r,ft)})}const Tt=function(e){let n=null;if(Ct(he.beforeSanitizeElements,e,null),Et(e))return yt(e),!0;const r=ht(e.nodeName);if(Ct(he.uponSanitizeElement,e,{tagName:r,allowedTags:_e}),Re&&e.hasChildNodes()&&!St(e.firstElementChild)&&S(/<[/\w!]/g,e.innerHTML)&&S(/<[/\w!]/g,e.textContent))return yt(e),!0;if(e.nodeType===te.progressingInstruction)return yt(e),!0;if(Re&&e.nodeType===te.comment&&S(/<[/\w]/g,e.data))return yt(e),!0;if(!_e[r]||Te[r]){if(!Te[r]&&Ot(r)){if(Ce.tagNameCheck instanceof RegExp&&S(Ce.tagNameCheck,r))return!1;if(Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(r))return!1}if(ze&&!Ve[r]){const t=X(e)||e.parentNode,n=q(e)||e.childNodes;if(n&&t){const r=n.length;for(let i=r-1;i>=0;--i){const r=G(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,K(e))}}}return yt(e),!0}return e instanceof d&&!bt(e)?(yt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!S(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ne&&e.nodeType===te.text&&(n=e.textContent,f([fe,pe,ge],e=>{n=w(n,e," ")}),e.textContent!==n&&(m(t.removed,{element:e.cloneNode()}),e.textContent=n)),Ct(he.afterSanitizeElements,e,null),!1):(yt(e),!0)},kt=function(e,t,r){if(He&&("id"===t||"name"===t)&&(r in n||r in pt))return!1;if(Me&&!ke[t]&&S(me,t));else if(Oe&&S(ve,t));else if(!Ee[t]||ke[t]){if(!(Ot(e)&&(Ce.tagNameCheck instanceof RegExp&&S(Ce.tagNameCheck,e)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(e))&&(Ce.attributeNameCheck instanceof RegExp&&S(Ce.attributeNameCheck,t)||Ce.attributeNameCheck instanceof Function&&Ce.attributeNameCheck(t,e))||"is"===t&&Ce.allowCustomizedBuiltInElements&&(Ce.tagNameCheck instanceof RegExp&&S(Ce.tagNameCheck,r)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(r))))return!1}else if(Xe[t]);else if(S(we,w(r,be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==_(r,"data:")||!Ye[e]){if(Ie&&!S(Ae,w(r,be,"")));else if(r)return!1}else;return!0},Ot=function(e){return"annotation-xml"!==e&&y(e,ye)},Mt=function(e){Ct(he.beforeSanitizeAttributes,e,null);const{attributes:n}=e;if(!n||Et(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee,forceKeepAttr:void 0};let i=n.length;while(i--){const a=n[i],{name:s,namespaceURI:l,value:c}=a,u=ht(s),d=c;let h="value"===s?d:x(d);if(r.attrName=u,r.attrValue=h,r.keepAttr=!0,r.forceKeepAttr=void 0,Ct(he.uponSanitizeAttribute,e,r),h=r.attrValue,!Ue||"id"!==u&&"name"!==u||(wt(s,e),h=Qe+h),Re&&S(/((--!?|])>)|<\/(style|title|textarea)/i,h)){wt(s,e);continue}if("attributename"===u&&y(h,"href")){wt(s,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){wt(s,e);continue}if(!De&&S(/\/>/i,h)){wt(s,e);continue}Ne&&f([fe,pe,ge],e=>{h=w(h,e," ")});const p=ht(e.nodeName);if(kt(p,u,h)){if(Z&&"object"===typeof z&&"function"===typeof z.getAttributeType)if(l);else switch(z.getAttributeType(p,u)){case"TrustedHTML":h=Z.createHTML(h);break;case"TrustedScriptURL":h=Z.createScriptURL(h);break}if(h!==d)try{l?e.setAttributeNS(l,s,h):e.setAttribute(s,h),Et(e)?yt(e):g(t.removed)}catch(o){wt(s,e)}}else wt(s,e)}Ct(he.afterSanitizeAttributes,e,null)},It=function e(t){let n=null;const r=xt(t);Ct(he.beforeSanitizeShadowDOM,t,null);while(n=r.nextNode())Ct(he.uponSanitizeShadowNode,n,null),Tt(n),Mt(n),n.content instanceof a&&e(n.content);Ct(he.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,s=null,l=null;if(rt=!e,rt&&(e="\x3c!--\x3e"),"string"!==typeof e&&!St(e)){if("function"!==typeof e.toString)throw C("toString is not a function");if(e=e.toString(),"string"!==typeof e)throw C("dirty is not a string, aborting")}if(!t.isSupported)return e;if(Be||mt(n),t.removed=[],"string"===typeof e&&(We=!1),We){if(e.nodeName){const t=ht(e.nodeName);if(!_e[t]||Te[t])throw C("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)r=_t("\x3c!----\x3e"),o=r.ownerDocument.importNode(e,!0),o.nodeType===te.element&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!Fe&&!Ne&&!Le&&-1===e.indexOf("<"))return Z&&je?Z.createHTML(e):e;if(r=_t(e),!r)return Fe?null:je?ae:""}r&&Pe&&yt(r.firstChild);const u=xt(We?e:r);while(s=u.nextNode())Tt(s),Mt(s),s.content instanceof a&&It(s.content);if(We)return e;if(Fe){if($e){l=ce.call(r.ownerDocument);while(r.firstChild)l.appendChild(r.firstChild)}else l=r;return(Ee.shadowroot||Ee.shadowrootmode)&&(l=de.call(i,l,!0)),l}let d=Le?r.outerHTML:r.innerHTML;return Le&&_e["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&S(J,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Ne&&f([fe,pe,ge],e=>{d=w(d,e," ")}),Z&&je?Z.createHTML(d):d},t.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};mt(e),Be=!0},t.clearConfig=function(){ft=null,Be=!1},t.isValidAttribute=function(e,t,n){ft||mt({});const r=ht(e),i=ht(t);return kt(r,i,n)},t.addHook=function(e,t){"function"===typeof t&&m(he[e],t)},t.removeHook=function(e,t){if(void 0!==t){const n=p(he[e],t);return-1===n?void 0:v(he[e],n,1)[0]}return g(he[e])},t.removeHooks=function(e){he[e]=[]},t.removeAllHooks=function(){he=ie()},t}var ae=oe()},18392:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(15416),i=n(51137);const o={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};var a=o;const s={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};var l=s;const c={lang:(0,i.A)({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},a),timePickerLocale:(0,i.A)({},l)};c.lang.ok="确定";var u=c,d=u;const h="${label}不是一个有效的${type}",f={locale:"zh-cn",Pagination:r.A,DatePicker:u,TimePicker:l,Calendar:d,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"（可选）",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:h,method:h,array:h,object:h,number:h,date:h,boolean:h,integer:h,float:h,regexp:h,email:h,url:h,hex:h},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码已过期",refresh:"点击刷新",scanned:"已扫描"}};var p=f},18436:function(e,t,n){"use strict";n.d(t,{Ay:function(){return l},h1:function(){return o}});n(18111),n(7588),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698);const r=typeof CSSINJS_STATISTIC<"u";let i=!0;function o(...e){if(!r)return Object.assign({},...e);i=!1;const t={};return e.forEach(e=>{"object"==typeof e&&Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get:()=>e[n]})})}),i=!0,t}const a={};function s(){}const l=e=>{let t,n=e,o=s;return r&&typeof Proxy<"u"&&(t=new Set,n=new Proxy(e,{get(e,n){return i&&(null==t||t.add(n)),e[n]}}),o=(e,n)=>{var r;a[e]={global:Array.from(t),component:{...null==(r=a[e])?void 0:r.component,...n}}}),{token:n,keys:t,flush:o}}},18437:function(e){function t(e){const t={className:"subst",begin:/\\[tn"\\]/},n={className:"string",begin:'"',end:'"',contains:[t]},r={className:"number",relevance:0,begin:e.C_NUMBER_RE},i={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},o={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[n,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},r,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},o,i,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}e.exports=t},18727:function(e,t,n){"use strict";var r=n(36955);e.exports=function(e){var t=r(e);return"BigInt64Array"===t||"BigUint64Array"===t}},18745:function(e,t,n){"use strict";var r=n(40616),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},19013:function(e){function t(e){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+e.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0  xmm1  xmm2  xmm3  xmm4  xmm5  xmm6  xmm7  xmm8  xmm9 xmm10  xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0  ymm1  ymm2  ymm3  ymm4  ymm5  ymm6  ymm7  ymm8  ymm9 ymm10  ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0  zmm1  zmm2  zmm3  zmm4  zmm5  zmm6  zmm7  zmm8  zmm9 zmm10  zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__  __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__  __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}e.exports=t},19129:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M468 128H160c-17.7 0-32 14.3-32 32v308c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V136c0-4.4-3.6-8-8-8zm-56 284H192V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210H136c-4.4 0-8 3.6-8 8v308c0 17.7 14.3 32 32 32h308c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zm-56 284H192V612h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm590-630H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h332c4.4 0 8-3.6 8-8V160c0-17.7-14.3-32-32-32zm-32 284H612V192h220v220zm-138-74h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm194 210h-48c-4.4 0-8 3.6-8 8v134h-78V556c0-4.4-3.6-8-8-8H556c-4.4 0-8 3.6-8 8v332c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V644h78v102c0 4.4 3.6 8 8 8h190c4.4 0 8-3.6 8-8V556c0-4.4-3.6-8-8-8zM746 832h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm142 0h-48c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}}]},name:"qrcode",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="QrcodeOutlined",c.inheritAttrs=!1;var u=c},19167:function(e,t,n){"use strict";var r=n(44576);e.exports=r},19457:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9z"}}]},name:"fire",theme:"filled"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="FireFilled",c.inheritAttrs=!1;var u=c},19462:function(e,t,n){"use strict";var r=n(69565),i=n(2360),o=n(66699),a=n(56279),s=n(78227),l=n(91181),c=n(55966),u=n(57657).IteratorPrototype,d=n(62529),h=n(9539),f=n(91385),p=s("toStringTag"),g="IteratorHelper",m="WrapForValidIterator",v="normal",A="throw",b=l.set,y=function(e){var t=l.getterFor(e?m:g);return a(i(u),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return d(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:d(r,n.done)}catch(i){throw n.done=!0,i}},return:function(){var n=t(this),i=n.iterator;if(n.done=!0,e){var o=c(i,"return");return o?r(o,i):d(void 0,!0)}if(n.inner)try{h(n.inner.iterator,v)}catch(a){return h(i,A,a)}if(n.openIters)try{f(n.openIters,v)}catch(a){return h(i,A,a)}return i&&h(i,v),d(void 0,!0)}})},w=y(!0),_=y(!1);o(_,p,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?m:g,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,b(this,i)};return r.prototype=t?w:_,r}},19532:function(e){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},19603:function(e){function t(e){const t={className:"string",begin:/"/,end:/"/},n={className:"string",begin:/'/,end:/'/},r={className:"string",begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},i={className:"string",begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0};return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:/\s/,excludeEnd:!0,relevance:10},{className:"built_in",begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:/--(\w+)/,end:/\s/,excludeEnd:!0},t,n,r,i,e.HASH_COMMENT_MODE]}}e.exports=t},19617:function(e,t,n){"use strict";var r=n(25397),i=n(35610),o=n(26198),a=function(e){return function(t,n,a){var s=r(t),l=o(s);if(0===l)return!e&&-1;var c,u=i(a,l);if(e&&n!==n){while(l>u)if(c=s[u++],c!==c)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},19745:function(e,t,n){"use strict";n(18111),n(7588);var r=n(38809),i=n(21446),o=n(95649),a=n(22228),s=n(36409);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){l(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]});var t=e.adapter||a.adapter;return t(e).then(function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},19927:function(e,t,n){function r(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n(79577),n(41549),n(49797),n(49631),n(35623),r.prototype.set=function(e,t,n,r){const i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},r.prototype.get=function(e,t){return this.data[e*this.size+t]},r.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},r.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=r},20034:function(e,t,n){"use strict";var r=n(94901);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},20116:function(e,t,n){"use strict";var r=n(46518),i=n(69565),o=n(72652),a=n(79306),s=n(28551),l=n(1767),c=n(9539),u=n(84549),d=u("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:d},{find:function(e){s(this);try{a(e)}catch(r){c(this,"throw",r)}if(d)return i(d,this,e);var t=l(this),n=0;return o(t,function(t,r){if(e(t,n++))return r(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},20331:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z",fill:e}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zM288 421a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm224 272c-85.5 0-155.6-67.3-160-151.6a8 8 0 018-8.4h48.1c4.2 0 7.8 3.2 8.1 7.4C420 589.9 461.5 629 512 629s92.1-39.1 95.8-88.6c.3-4.2 3.9-7.4 8.1-7.4H664a8 8 0 018 8.4C667.6 625.7 597.5 693 512 693zm176-224a48.01 48.01 0 010-96 48.01 48.01 0 010 96z",fill:t}},{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm376 112h-48.1c-4.2 0-7.8 3.2-8.1 7.4-3.7 49.5-45.3 88.6-95.8 88.6s-92-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4zm-24-112a48 48 0 1096 0 48 48 0 10-96 0z",fill:e}}]}},name:"smile",theme:"twotone"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="SmileTwoTone",c.inheritAttrs=!1;var u=c},20353:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});n(18111),n(61701);var r=n(51137);function i(e,t,n){const{focusElCls:i,focus:o,borderElCls:a}=n,s=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":(0,r.A)((0,r.A)({[l]:{zIndex:2}},i?{[`&${i}`]:{zIndex:2}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function o(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,a=`${n}-compact`;return{[a]:(0,r.A)((0,r.A)({},i(e,a,t)),o(n,a,t))}}},20397:function(e,t,n){"use strict";var r=n(97751);e.exports=r("document","documentElement")},20456:function(e,t,n){"use strict";var r=n(46518),i=n(44576),o=n(79504),a=n(34154),s=n(55169),l=o(1.1.toString),c=i.Uint8Array,u=!c||!c.prototype.toHex||!function(){try{var e=new c([255,255,255,255,255,255,255,255]);return"ffffffffffffffff"===e.toHex()}catch(t){return!1}}();c&&r({target:"Uint8Array",proto:!0,forced:u},{toHex:function(){a(this),s(this.buffer);for(var e="",t=0,n=this.length;t<n;t++){var r=l(this[t],16);e+=1===r.length?"0"+r:r}return e}})},20783:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(51137),i=n(50223);function o(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:a,colorWarning:s,colorError:l,colorInfo:c,colorPrimary:u,colorBgBase:d,colorTextBase:h}=e,f=n(u),p=n(a),g=n(s),m=n(l),v=n(c),A=o(d,h);return(0,r.A)((0,r.A)({},A),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorBgMask:new i.q("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},20881:function(e,t,n){"use strict";let r;function i(e){if("undefined"===typeof document)return 0;if(e||void 0===r){const e=document.createElement("div");e.style.width="100%",e.style.height="200px";const t=document.createElement("div"),n=t.style;n.position="absolute",n.top="0",n.left="0",n.pointerEvents="none",n.visibility="hidden",n.width="200px",n.height="150px",n.overflow="hidden",t.appendChild(e),document.body.appendChild(t);const i=e.offsetWidth;t.style.overflow="scroll";let o=e.offsetWidth;i===o&&(o=t.clientWidth),document.body.removeChild(t),r=i-o}return r}function o(e){const t=e.match(/^(.*)px$/),n=Number(null===t||void 0===t?void 0:t[1]);return Number.isNaN(n)?i():n}function a(e){if("undefined"===typeof document||!e||!(e instanceof Element))return{width:0,height:0};const{width:t,height:n}=getComputedStyle(e,"::-webkit-scrollbar");return{width:o(t),height:o(n)}}n.d(t,{A:function(){return i},V:function(){return a}})},21012:function(e){function t(e){const t={className:"variable",begin:/\b_+[a-zA-Z]\w*/},n={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},r={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},i=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],o=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],a=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateSource","animationNames","animationPhase","animationSourcePhase","animationState","apertureParams","append","apply","armoryPoints","arrayIntersect","asin","ASLToAGL","ASLToATL","assert","assignAsCargo","assignAsCargoIndex","assignAsCommander","assignAsDriver","assignAsGunner","assignAsTurret","assignCurator","assignedCargo","assignedCommander","assignedDriver","assignedGroup","assignedGunner","assignedItems","assignedTarget","assignedTeam","assignedVehicle","assignedVehicleRole","assignedVehicles","assignItem","assignTeam","assignToAirport","atan","atan2","atg","ATLToASL","attachedObject","attachedObjects","attachedTo","attachObject","attachTo","attackEnabled","awake","backpack","backpackCargo","backpackContainer","backpackItems","backpackMagazines","backpackSpaceFor","behaviour","benchmark","bezierInterpolation","binocular","binocularItems","binocularMagazine","boundingBox","boundingBoxReal","boundingCenter","brakesDisabled","briefingName","buildingExit","buildingPos","buldozer_EnableRoadDiag","buldozer_IsEnabledRoadDiag","buldozer_LoadNewRoads","buldozer_reloadOperMap","buttonAction","buttonSetAction","cadetMode","calculatePath","calculatePlayerVisibilityByFriendly","call","callExtension","camCommand","camCommit","camCommitPrepared","camCommitted","camConstuctionSetParams","camCreate","camDestroy","cameraEffect","cameraEffectEnableHUD","cameraInterest","cameraOn","cameraView","campaignConfigFile","camPreload","camPreloaded","camPrepareBank","camPrepareDir","camPrepareDive","camPrepareFocus","camPrepareFov","camPrepareFovRange","camPreparePos","camPrepareRelPos","camPrepareTarget","camSetBank","camSetDir","camSetDive","camSetFocus","camSetFov","camSetFovRange","camSetPos","camSetRelPos","camSetTarget","camTarget","camUseNVG","canAdd","canAddItemToBackpack","canAddItemToUniform","canAddItemToVest","cancelSimpleTaskDestination","canDeployWeapon","canFire","canMove","canSlingLoad","canStand","canSuspend","canTriggerDynamicSimulation","canUnloadInCombat","canVehicleCargo","captive","captiveNum","cbChecked","cbSetChecked","ceil","channelEnabled","cheatsEnabled","checkAIFeature","checkVisibility","className","clear3DENAttribute","clear3DENInventory","clearAllItemsFromBackpack","clearBackpackCargo","clearBackpackCargoGlobal","clearForcesRTD","clearGroupIcons","clearItemCargo","clearItemCargoGlobal","clearItemPool","clearMagazineCargo","clearMagazineCargoGlobal","clearMagazinePool","clearOverlay","clearRadio","clearWeaponCargo","clearWeaponCargoGlobal","clearWeaponPool","clientOwner","closeDialog","closeDisplay","closeOverlay","collapseObjectTree","collect3DENHistory","collectiveRTD","collisionDisabledWith","combatBehaviour","combatMode","commandArtilleryFire","commandChat","commander","commandFire","commandFollow","commandFSM","commandGetOut","commandingMenu","commandMove","commandRadio","commandStop","commandSuppressiveFire","commandTarget","commandWatch","comment","commitOverlay","compatibleItems","compatibleMagazines","compile","compileFinal","compileScript","completedFSM","composeText","configClasses","configFile","configHierarchy","configName","configOf","configProperties","configSourceAddonList","configSourceMod","configSourceModList","confirmSensorTarget","connectTerminalToUAV","connectToServer","controlsGroupCtrl","conversationDisabled","copyFromClipboard","copyToClipboard","copyWaypoints","cos","count","countEnemy","countFriendly","countSide","countType","countUnknown","create3DENComposition","create3DENEntity","createAgent","createCenter","createDialog","createDiaryLink","createDiaryRecord","createDiarySubject","createDisplay","createGearDialog","createGroup","createGuardedPoint","createHashMap","createHashMapFromArray","createLocation","createMarker","createMarkerLocal","createMenu","createMine","createMissionDisplay","createMPCampaignDisplay","createSimpleObject","createSimpleTask","createSite","createSoundSource","createTask","createTeam","createTrigger","createUnit","createVehicle","createVehicleCrew","createVehicleLocal","crew","ctAddHeader","ctAddRow","ctClear","ctCurSel","ctData","ctFindHeaderRows","ctFindRowHeader","ctHeaderControls","ctHeaderCount","ctRemoveHeaders","ctRemoveRows","ctrlActivate","ctrlAddEventHandler","ctrlAngle","ctrlAnimateModel","ctrlAnimationPhaseModel","ctrlAt","ctrlAutoScrollDelay","ctrlAutoScrollRewind","ctrlAutoScrollSpeed","ctrlBackgroundColor","ctrlChecked","ctrlClassName","ctrlCommit","ctrlCommitted","ctrlCreate","ctrlDelete","ctrlEnable","ctrlEnabled","ctrlFade","ctrlFontHeight","ctrlForegroundColor","ctrlHTMLLoaded","ctrlIDC","ctrlIDD","ctrlMapAnimAdd","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone","ctrlMapCursor","ctrlMapMouseOver","ctrlMapPosition","ctrlMapScale","ctrlMapScreenToWorld","ctrlMapSetPosition","ctrlMapWorldToScreen","ctrlModel","ctrlModelDirAndUp","ctrlModelScale","ctrlMousePosition","ctrlParent","ctrlParentControlsGroup","ctrlPosition","ctrlRemoveAllEventHandlers","ctrlRemoveEventHandler","ctrlScale","ctrlScrollValues","ctrlSetActiveColor","ctrlSetAngle","ctrlSetAutoScrollDelay","ctrlSetAutoScrollRewind","ctrlSetAutoScrollSpeed","ctrlSetBackgroundColor","ctrlSetChecked","ctrlSetDisabledColor","ctrlSetEventHandler","ctrlSetFade","ctrlSetFocus","ctrlSetFont","ctrlSetFontH1","ctrlSetFontH1B","ctrlSetFontH2","ctrlSetFontH2B","ctrlSetFontH3","ctrlSetFontH3B","ctrlSetFontH4","ctrlSetFontH4B","ctrlSetFontH5","ctrlSetFontH5B","ctrlSetFontH6","ctrlSetFontH6B","ctrlSetFontHeight","ctrlSetFontHeightH1","ctrlSetFontHeightH2","ctrlSetFontHeightH3","ctrlSetFontHeightH4","ctrlSetFontHeightH5","ctrlSetFontHeightH6","ctrlSetFontHeightSecondary","ctrlSetFontP","ctrlSetFontPB","ctrlSetFontSecondary","ctrlSetForegroundColor","ctrlSetModel","ctrlSetModelDirAndUp","ctrlSetModelScale","ctrlSetMousePosition","ctrlSetPixelPrecision","ctrlSetPosition","ctrlSetPositionH","ctrlSetPositionW","ctrlSetPositionX","ctrlSetPositionY","ctrlSetScale","ctrlSetScrollValues","ctrlSetShadow","ctrlSetStructuredText","ctrlSetText","ctrlSetTextColor","ctrlSetTextColorSecondary","ctrlSetTextSecondary","ctrlSetTextSelection","ctrlSetTooltip","ctrlSetTooltipColorBox","ctrlSetTooltipColorShade","ctrlSetTooltipColorText","ctrlSetTooltipMaxWidth","ctrlSetURL","ctrlSetURLOverlayMode","ctrlShadow","ctrlShow","ctrlShown","ctrlStyle","ctrlText","ctrlTextColor","ctrlTextHeight","ctrlTextSecondary","ctrlTextSelection","ctrlTextWidth","ctrlTooltip","ctrlType","ctrlURL","ctrlURLOverlayMode","ctrlVisible","ctRowControls","ctRowCount","ctSetCurSel","ctSetData","ctSetHeaderTemplate","ctSetRowTemplate","ctSetValue","ctValue","curatorAddons","curatorCamera","curatorCameraArea","curatorCameraAreaCeiling","curatorCoef","curatorEditableObjects","curatorEditingArea","curatorEditingAreaType","curatorMouseOver","curatorPoints","curatorRegisteredObjects","curatorSelected","curatorWaypointCost","current3DENOperation","currentChannel","currentCommand","currentMagazine","currentMagazineDetail","currentMagazineDetailTurret","currentMagazineTurret","currentMuzzle","currentNamespace","currentPilot","currentTask","currentTasks","currentThrowable","currentVisionMode","currentWaypoint","currentWeapon","currentWeaponMode","currentWeaponTurret","currentZeroing","cursorObject","cursorTarget","customChat","customRadio","customWaypointPosition","cutFadeOut","cutObj","cutRsc","cutText","damage","date","dateToNumber","dayTime","deActivateKey","debriefingText","debugFSM","debugLog","decayGraphValues","deg","delete3DENEntities","deleteAt","deleteCenter","deleteCollection","deleteEditorObject","deleteGroup","deleteGroupWhenEmpty","deleteIdentity","deleteLocation","deleteMarker","deleteMarkerLocal","deleteRange","deleteResources","deleteSite","deleteStatus","deleteTeam","deleteVehicle","deleteVehicleCrew","deleteWaypoint","detach","detectedMines","diag_activeMissionFSMs","diag_activeScripts","diag_activeSQFScripts","diag_activeSQSScripts","diag_allMissionEventHandlers","diag_captureFrame","diag_captureFrameToFile","diag_captureSlowFrame","diag_codePerformance","diag_deltaTime","diag_drawmode","diag_dumpCalltraceToLog","diag_dumpScriptAssembly","diag_dumpTerrainSynth","diag_dynamicSimulationEnd","diag_enable","diag_enabled","diag_exportConfig","diag_exportTerrainSVG","diag_fps","diag_fpsmin","diag_frameno","diag_getTerrainSegmentOffset","diag_lightNewLoad","diag_list","diag_localized","diag_log","diag_logSlowFrame","diag_mergeConfigFile","diag_recordTurretLimits","diag_resetFSM","diag_resetshapes","diag_scope","diag_setLightNew","diag_stacktrace","diag_tickTime","diag_toggle","dialog","diarySubjectExists","didJIP","didJIPOwner","difficulty","difficultyEnabled","difficultyEnabledRTD","difficultyOption","direction","directionStabilizationEnabled","directSay","disableAI","disableBrakes","disableCollisionWith","disableConversation","disableDebriefingStats","disableMapIndicators","disableNVGEquipment","disableRemoteSensors","disableSerialization","disableTIEquipment","disableUAVConnectability","disableUserInput","displayAddEventHandler","displayChild","displayCtrl","displayParent","displayRemoveAllEventHandlers","displayRemoveEventHandler","displaySetEventHandler","displayUniqueName","displayUpdate","dissolveTeam","distance","distance2D","distanceSqr","distributionRegion","do3DENAction","doArtilleryFire","doFire","doFollow","doFSM","doGetOut","doMove","doorPhase","doStop","doSuppressiveFire","doTarget","doWatch","drawArrow","drawEllipse","drawIcon","drawIcon3D","drawLaser","drawLine","drawLine3D","drawLink","drawLocation","drawPolygon","drawRectangle","drawTriangle","driver","drop","dynamicSimulationDistance","dynamicSimulationDistanceCoef","dynamicSimulationEnabled","dynamicSimulationSystemEnabled","echo","edit3DENMissionAttributes","editObject","editorSetEventHandler","effectiveCommander","elevatePeriscope","emptyPositions","enableAI","enableAIFeature","enableAimPrecision","enableAttack","enableAudioFeature","enableAutoStartUpRTD","enableAutoTrimRTD","enableCamShake","enableCaustics","enableChannel","enableCollisionWith","enableCopilot","enableDebriefingStats","enableDiagLegend","enableDirectionStabilization","enableDynamicSimulation","enableDynamicSimulationSystem","enableEndDialog","enableEngineArtillery","enableEnvironment","enableFatigue","enableGunLights","enableInfoPanelComponent","enableIRLasers","enableMimics","enablePersonTurret","enableRadio","enableReload","enableRopeAttach","enableSatNormalOnDetail","enableSaving","enableSentences","enableSimulation","enableSimulationGlobal","enableStamina","enableStressDamage","enableTeamSwitch","enableTraffic","enableUAVConnectability","enableUAVWaypoints","enableVehicleCargo","enableVehicleSensor","enableWeaponDisassembly","endLoadingScreen","endMission","engineOn","enginesIsOnRTD","enginesPowerRTD","enginesRpmRTD","enginesTorqueRTD","entities","environmentEnabled","environmentVolume","equipmentDisabled","estimatedEndServerTime","estimatedTimeLeft","evalObjectArgument","everyBackpack","everyContainer","exec","execEditorScript","execFSM","execVM","exp","expectedDestination","exportJIPMessages","eyeDirection","eyePos","face","faction","fadeEnvironment","fadeMusic","fadeRadio","fadeSound","fadeSpeech","failMission","fileExists","fillWeaponsFromPool","find","findAny","findCover","findDisplay","findEditorObject","findEmptyPosition","findEmptyPositionReady","findIf","findNearestEnemy","finishMissionInit","finite","fire","fireAtTarget","firstBackpack","flag","flagAnimationPhase","flagOwner","flagSide","flagTexture","flatten","fleeing","floor","flyInHeight","flyInHeightASL","focusedCtrl","fog","fogForecast","fogParams","forceAddUniform","forceAtPositionRTD","forceCadetDifficulty","forcedMap","forceEnd","forceFlagTexture","forceFollowRoad","forceGeneratorRTD","forceMap","forceRespawn","forceSpeed","forceUnicode","forceWalk","forceWeaponFire","forceWeatherChange","forEachMember","forEachMemberAgent","forEachMemberTeam","forgetTarget","format","formation","formationDirection","formationLeader","formationMembers","formationPosition","formationTask","formatText","formLeader","freeExtension","freeLook","fromEditor","fuel","fullCrew","gearIDCAmmoCount","gearSlotAmmoCount","gearSlotData","gestureState","get","get3DENActionState","get3DENAttribute","get3DENCamera","get3DENConnections","get3DENEntity","get3DENEntityID","get3DENGrid","get3DENIconsVisible","get3DENLayerEntities","get3DENLinesVisible","get3DENMissionAttribute","get3DENMouseOver","get3DENSelected","getAimingCoef","getAllEnv3DSoundControllers","getAllEnvSoundControllers","getAllHitPointsDamage","getAllOwnedMines","getAllPylonsInfo","getAllSoundControllers","getAllUnitTraits","getAmmoCargo","getAnimAimPrecision","getAnimSpeedCoef","getArray","getArtilleryAmmo","getArtilleryComputerSettings","getArtilleryETA","getAssetDLCInfo","getAssignedCuratorLogic","getAssignedCuratorUnit","getAttackTarget","getAudioOptionVolumes","getBackpackCargo","getBleedingRemaining","getBurningValue","getCalculatePlayerVisibilityByFriendly","getCameraViewDirection","getCargoIndex","getCenterOfMass","getClientState","getClientStateNumber","getCompatiblePylonMagazines","getConnectedUAV","getConnectedUAVUnit","getContainerMaxLoad","getCorpse","getCruiseControl","getCursorObjectParams","getCustomAimCoef","getCustomSoundController","getCustomSoundControllerCount","getDammage","getDebriefingText","getDescription","getDir","getDirVisual","getDiverState","getDLCAssetsUsage","getDLCAssetsUsageByName","getDLCs","getDLCUsageTime","getEditorCamera","getEditorMode","getEditorObjectScope","getElevationOffset","getEngineTargetRPMRTD","getEnv3DSoundController","getEnvSoundController","getEventHandlerInfo","getFatigue","getFieldManualStartPage","getForcedFlagTexture","getForcedSpeed","getFriend","getFSMVariable","getFuelCargo","getGraphValues","getGroupIcon","getGroupIconParams","getGroupIcons","getHideFrom","getHit","getHitIndex","getHitPointDamage","getItemCargo","getLighting","getLightingAt","getLoadedModsInfo","getMagazineCargo","getMarkerColor","getMarkerPos","getMarkerSize","getMarkerType","getMass","getMissionConfig","getMissionConfigValue","getMissionDLCs","getMissionLayerEntities","getMissionLayers","getMissionPath","getModelInfo","getMousePosition","getMusicPlayedTime","getNumber","getObjectArgument","getObjectChildren","getObjectDLC","getObjectFOV","getObjectID","getObjectMaterials","getObjectProxy","getObjectScale","getObjectTextures","getObjectType","getObjectViewDistance","getOpticsMode","getOrDefault","getOrDefaultCall","getOxygenRemaining","getPersonUsedDLCs","getPilotCameraDirection","getPilotCameraPosition","getPilotCameraRotation","getPilotCameraTarget","getPiPViewDistance","getPlateNumber","getPlayerChannel","getPlayerID","getPlayerScores","getPlayerUID","getPlayerVoNVolume","getPos","getPosASL","getPosASLVisual","getPosASLW","getPosATL","getPosATLVisual","getPosVisual","getPosWorld","getPosWorldVisual","getPylonMagazines","getRelDir","getRelPos","getRemoteSensorsDisabled","getRepairCargo","getResolution","getRoadInfo","getRotorBrakeRTD","getSensorTargets","getSensorThreats","getShadowDistance","getShotParents","getSlingLoad","getSoundController","getSoundControllerResult","getSpeed","getStamina","getStatValue","getSteamFriendsServers","getSubtitleOptions","getSuppression","getTerrainGrid","getTerrainHeight","getTerrainHeightASL","getTerrainInfo","getText","getTextRaw","getTextureInfo","getTextWidth","getTiParameters","getTotalDLCUsageTime","getTrimOffsetRTD","getTurretLimits","getTurretOpticsMode","getUnitFreefallInfo","getUnitLoadout","getUnitTrait","getUnloadInCombat","getUserInfo","getUserMFDText","getUserMFDValue","getVariable","getVehicleCargo","getVehicleTiPars","getWeaponCargo","getWeaponSway","getWingsOrientationRTD","getWingsPositionRTD","getWPPos","glanceAt","globalChat","globalRadio","goggles","goto","group","groupChat","groupFromNetId","groupIconSelectable","groupIconsVisible","groupID","groupOwner","groupRadio","groups","groupSelectedUnits","groupSelectUnit","gunner","gusts","halt","handgunItems","handgunMagazine","handgunWeapon","handsHit","hashValue","hasInterface","hasPilotCamera","hasWeapon","hcAllGroups","hcGroupParams","hcLeader","hcRemoveAllGroups","hcRemoveGroup","hcSelected","hcSelectGroup","hcSetGroup","hcShowBar","hcShownBar","headgear","hideBody","hideObject","hideObjectGlobal","hideSelection","hint","hintC","hintCadet","hintSilent","hmd","hostMission","htmlLoad","HUDMovementLevels","humidity","image","importAllGroups","importance","in","inArea","inAreaArray","incapacitatedState","inflame","inflamed","infoPanel","infoPanelComponentEnabled","infoPanelComponents","infoPanels","inGameUISetEventHandler","inheritsFrom","initAmbientLife","inPolygon","inputAction","inputController","inputMouse","inRangeOfArtillery","insert","insertEditorObject","intersect","is3DEN","is3DENMultiplayer","is3DENPreview","isAbleToBreathe","isActionMenuVisible","isAgent","isAimPrecisionEnabled","isAllowedCrewInImmobile","isArray","isAutoHoverOn","isAutonomous","isAutoStartUpEnabledRTD","isAutotest","isAutoTrimOnRTD","isAwake","isBleeding","isBurning","isClass","isCollisionLightOn","isCopilotEnabled","isDamageAllowed","isDedicated","isDLCAvailable","isEngineOn","isEqualRef","isEqualTo","isEqualType","isEqualTypeAll","isEqualTypeAny","isEqualTypeArray","isEqualTypeParams","isFilePatchingEnabled","isFinal","isFlashlightOn","isFlatEmpty","isForcedWalk","isFormationLeader","isGameFocused","isGamePaused","isGroupDeletedWhenEmpty","isHidden","isInRemainsCollector","isInstructorFigureEnabled","isIRLaserOn","isKeyActive","isKindOf","isLaserOn","isLightOn","isLocalized","isManualFire","isMarkedForCollection","isMissionProfileNamespaceLoaded","isMultiplayer","isMultiplayerSolo","isNil","isNotEqualRef","isNotEqualTo","isNull","isNumber","isObjectHidden","isObjectRTD","isOnRoad","isPiPEnabled","isPlayer","isRealTime","isRemoteExecuted","isRemoteExecutedJIP","isSaving","isSensorTargetConfirmed","isServer","isShowing3DIcons","isSimpleObject","isSprintAllowed","isStaminaEnabled","isSteamMission","isSteamOverlayEnabled","isStreamFriendlyUIEnabled","isStressDamageEnabled","isText","isTouchingGround","isTurnedOut","isTutHintsEnabled","isUAVConnectable","isUAVConnected","isUIContext","isUniformAllowed","isVehicleCargo","isVehicleRadarOn","isVehicleSensorEnabled","isWalking","isWeaponDeployed","isWeaponRested","itemCargo","items","itemsWithMagazines","join","joinAs","joinAsSilent","joinSilent","joinString","kbAddDatabase","kbAddDatabaseTargets","kbAddTopic","kbHasTopic","kbReact","kbRemoveTopic","kbTell","kbWasSaid","keyImage","keyName","keys","knowsAbout","land","landAt","landResult","language","laserTarget","lbAdd","lbClear","lbColor","lbColorRight","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbPictureRight","lbSelection","lbSetColor","lbSetColorRight","lbSetCurSel","lbSetData","lbSetPicture","lbSetPictureColor","lbSetPictureColorDisabled","lbSetPictureColorSelected","lbSetPictureRight","lbSetPictureRightColor","lbSetPictureRightColorDisabled","lbSetPictureRightColorSelected","lbSetSelectColor","lbSetSelectColorRight","lbSetSelected","lbSetText","lbSetTextRight","lbSetTooltip","lbSetValue","lbSize","lbSort","lbSortBy","lbSortByValue","lbText","lbTextRight","lbTooltip","lbValue","leader","leaderboardDeInit","leaderboardGetRows","leaderboardInit","leaderboardRequestRowsFriends","leaderboardRequestRowsGlobal","leaderboardRequestRowsGlobalAroundUser","leaderboardsRequestUploadScore","leaderboardsRequestUploadScoreKeepBest","leaderboardState","leaveVehicle","libraryCredits","libraryDisclaimers","lifeState","lightAttachObject","lightDetachObject","lightIsOn","lightnings","limitSpeed","linearConversion","lineIntersects","lineIntersectsObjs","lineIntersectsSurfaces","lineIntersectsWith","linkItem","list","listObjects","listRemoteTargets","listVehicleSensors","ln","lnbAddArray","lnbAddColumn","lnbAddRow","lnbClear","lnbColor","lnbColorRight","lnbCurSelRow","lnbData","lnbDeleteColumn","lnbDeleteRow","lnbGetColumnsPosition","lnbPicture","lnbPictureRight","lnbSetColor","lnbSetColorRight","lnbSetColumnsPos","lnbSetCurSelRow","lnbSetData","lnbSetPicture","lnbSetPictureColor","lnbSetPictureColorRight","lnbSetPictureColorSelected","lnbSetPictureColorSelectedRight","lnbSetPictureRight","lnbSetText","lnbSetTextRight","lnbSetTooltip","lnbSetValue","lnbSize","lnbSort","lnbSortBy","lnbSortByValue","lnbText","lnbTextRight","lnbValue","load","loadAbs","loadBackpack","loadConfig","loadFile","loadGame","loadIdentity","loadMagazine","loadOverlay","loadStatus","loadUniform","loadVest","localize","localNamespace","locationPosition","lock","lockCameraTo","lockCargo","lockDriver","locked","lockedCameraTo","lockedCargo","lockedDriver","lockedInventory","lockedTurret","lockIdentity","lockInventory","lockTurret","lockWp","log","logEntities","logNetwork","logNetworkTerminate","lookAt","lookAtPos","magazineCargo","magazines","magazinesAllTurrets","magazinesAmmo","magazinesAmmoCargo","magazinesAmmoFull","magazinesDetail","magazinesDetailBackpack","magazinesDetailUniform","magazinesDetailVest","magazinesTurret","magazineTurretAmmo","mapAnimAdd","mapAnimClear","mapAnimCommit","mapAnimDone","mapCenterOnCamera","mapGridPosition","markAsFinishedOnSteam","markerAlpha","markerBrush","markerChannel","markerColor","markerDir","markerPolyline","markerPos","markerShadow","markerShape","markerSize","markerText","markerType","matrixMultiply","matrixTranspose","max","maxLoad","members","menuAction","menuAdd","menuChecked","menuClear","menuCollapse","menuData","menuDelete","menuEnable","menuEnabled","menuExpand","menuHover","menuPicture","menuSetAction","menuSetCheck","menuSetData","menuSetPicture","menuSetShortcut","menuSetText","menuSetURL","menuSetValue","menuShortcut","menuShortcutText","menuSize","menuSort","menuText","menuURL","menuValue","merge","min","mineActive","mineDetectedBy","missileTarget","missileTargetPos","missionConfigFile","missionDifficulty","missionEnd","missionName","missionNameSource","missionNamespace","missionProfileNamespace","missionStart","missionVersion","mod","modelToWorld","modelToWorldVisual","modelToWorldVisualWorld","modelToWorldWorld","modParams","moonIntensity","moonPhase","morale","move","move3DENCamera","moveInAny","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","moveObjectToEnd","moveOut","moveTime","moveTo","moveToCompleted","moveToFailed","musicVolume","name","namedProperties","nameSound","nearEntities","nearestBuilding","nearestLocation","nearestLocations","nearestLocationWithDubbing","nearestMines","nearestObject","nearestObjects","nearestTerrainObjects","nearObjects","nearObjectsReady","nearRoads","nearSupplies","nearTargets","needReload","needService","netId","netObjNull","newOverlay","nextMenuItemIndex","nextWeatherChange","nMenuItems","not","numberOfEnginesRTD","numberToDate","objectCurators","objectFromNetId","objectParent","objStatus","onBriefingGroup","onBriefingNotes","onBriefingPlan","onBriefingTeamSwitch","onCommandModeChanged","onDoubleClick","onEachFrame","onGroupIconClick","onGroupIconOverEnter","onGroupIconOverLeave","onHCGroupSelectionChanged","onMapSingleClick","onPlayerConnected","onPlayerDisconnected","onPreloadFinished","onPreloadStarted","onShowNewObject","onTeamSwitch","openCuratorInterface","openDLCPage","openGPS","openMap","openSteamApp","openYoutubeVideo","or","orderGetIn","overcast","overcastForecast","owner","param","params","parseNumber","parseSimpleArray","parseText","parsingNamespace","particlesQuality","periscopeElevation","pickWeaponPool","pitch","pixelGrid","pixelGridBase","pixelGridNoUIScale","pixelH","pixelW","playableSlotsNumber","playableUnits","playAction","playActionNow","player","playerRespawnTime","playerSide","playersNumber","playGesture","playMission","playMove","playMoveNow","playMusic","playScriptedMission","playSound","playSound3D","playSoundUI","pose","position","positionCameraToWorld","posScreenToWorld","posWorldToScreen","ppEffectAdjust","ppEffectCommit","ppEffectCommitted","ppEffectCreate","ppEffectDestroy","ppEffectEnable","ppEffectEnabled","ppEffectForceInNVG","precision","preloadCamera","preloadObject","preloadSound","preloadTitleObj","preloadTitleRsc","preprocessFile","preprocessFileLineNumbers","primaryWeapon","primaryWeaponItems","primaryWeaponMagazine","priority","processDiaryLink","productVersion","profileName","profileNamespace","profileNameSteam","progressLoadingScreen","progressPosition","progressSetPosition","publicVariable","publicVariableClient","publicVariableServer","pushBack","pushBackUnique","putWeaponPool","queryItemsPool","queryMagazinePool","queryWeaponPool","rad","radioChannelAdd","radioChannelCreate","radioChannelInfo","radioChannelRemove","radioChannelSetCallSign","radioChannelSetLabel","radioEnabled","radioVolume","rain","rainbow","rainParams","random","rank","rankId","rating","rectangular","regexFind","regexMatch","regexReplace","registeredTasks","registerTask","reload","reloadEnabled","remoteControl","remoteExec","remoteExecCall","remoteExecutedOwner","remove3DENConnection","remove3DENEventHandler","remove3DENLayer","removeAction","removeAll3DENEventHandlers","removeAllActions","removeAllAssignedItems","removeAllBinocularItems","removeAllContainers","removeAllCuratorAddons","removeAllCuratorCameraAreas","removeAllCuratorEditingAreas","removeAllEventHandlers","removeAllHandgunItems","removeAllItems","removeAllItemsWithMagazines","removeAllMissionEventHandlers","removeAllMPEventHandlers","removeAllMusicEventHandlers","removeAllOwnedMines","removeAllPrimaryWeaponItems","removeAllSecondaryWeaponItems","removeAllUserActionEventHandlers","removeAllWeapons","removeBackpack","removeBackpackGlobal","removeBinocularItem","removeCuratorAddons","removeCuratorCameraArea","removeCuratorEditableObjects","removeCuratorEditingArea","removeDiaryRecord","removeDiarySubject","removeDrawIcon","removeDrawLinks","removeEventHandler","removeFromRemainsCollector","removeGoggles","removeGroupIcon","removeHandgunItem","removeHeadgear","removeItem","removeItemFromBackpack","removeItemFromUniform","removeItemFromVest","removeItems","removeMagazine","removeMagazineGlobal","removeMagazines","removeMagazinesTurret","removeMagazineTurret","removeMenuItem","removeMissionEventHandler","removeMPEventHandler","removeMusicEventHandler","removeOwnedMine","removePrimaryWeaponItem","removeSecondaryWeaponItem","removeSimpleTask","removeSwitchableUnit","removeTeamMember","removeUniform","removeUserActionEventHandler","removeVest","removeWeapon","removeWeaponAttachmentCargo","removeWeaponCargo","removeWeaponGlobal","removeWeaponTurret","reportRemoteTarget","requiredVersion","resetCamShake","resetSubgroupDirection","resize","resources","respawnVehicle","restartEditorCamera","reveal","revealMine","reverse","reversedMouseY","roadAt","roadsConnectedTo","roleDescription","ropeAttachedObjects","ropeAttachedTo","ropeAttachEnabled","ropeAttachTo","ropeCreate","ropeCut","ropeDestroy","ropeDetach","ropeEndPosition","ropeLength","ropes","ropesAttachedTo","ropeSegments","ropeUnwind","ropeUnwound","rotorsForcesRTD","rotorsRpmRTD","round","runInitScript","safeZoneH","safeZoneW","safeZoneWAbs","safeZoneX","safeZoneXAbs","safeZoneY","save3DENInventory","saveGame","saveIdentity","saveJoysticks","saveMissionProfileNamespace","saveOverlay","saveProfileNamespace","saveStatus","saveVar","savingEnabled","say","say2D","say3D","scopeName","score","scoreSide","screenshot","screenToWorld","scriptDone","scriptName","scudState","secondaryWeapon","secondaryWeaponItems","secondaryWeaponMagazine","select","selectBestPlaces","selectDiarySubject","selectedEditorObjects","selectEditorObject","selectionNames","selectionPosition","selectionVectorDirAndUp","selectLeader","selectMax","selectMin","selectNoPlayer","selectPlayer","selectRandom","selectRandomWeighted","selectWeapon","selectWeaponTurret","sendAUMessage","sendSimpleCommand","sendTask","sendTaskResult","sendUDPMessage","sentencesEnabled","serverCommand","serverCommandAvailable","serverCommandExecutable","serverName","serverNamespace","serverTime","set","set3DENAttribute","set3DENAttributes","set3DENGrid","set3DENIconsVisible","set3DENLayer","set3DENLinesVisible","set3DENLogicType","set3DENMissionAttribute","set3DENMissionAttributes","set3DENModelsVisible","set3DENObjectType","set3DENSelected","setAccTime","setActualCollectiveRTD","setAirplaneThrottle","setAirportSide","setAmmo","setAmmoCargo","setAmmoOnPylon","setAnimSpeedCoef","setAperture","setApertureNew","setArmoryPoints","setAttributes","setAutonomous","setBehaviour","setBehaviourStrong","setBleedingRemaining","setBrakesRTD","setCameraInterest","setCamShakeDefParams","setCamShakeParams","setCamUseTi","setCaptive","setCenterOfMass","setCollisionLight","setCombatBehaviour","setCombatMode","setCompassOscillation","setConvoySeparation","setCruiseControl","setCuratorCameraAreaCeiling","setCuratorCoef","setCuratorEditingAreaType","setCuratorWaypointCost","setCurrentChannel","setCurrentTask","setCurrentWaypoint","setCustomAimCoef","SetCustomMissionData","setCustomSoundController","setCustomWeightRTD","setDamage","setDammage","setDate","setDebriefingText","setDefaultCamera","setDestination","setDetailMapBlendPars","setDiaryRecordText","setDiarySubjectPicture","setDir","setDirection","setDrawIcon","setDriveOnPath","setDropInterval","setDynamicSimulationDistance","setDynamicSimulationDistanceCoef","setEditorMode","setEditorObjectScope","setEffectCondition","setEffectiveCommander","setEngineRpmRTD","setFace","setFaceanimation","setFatigue","setFeatureType","setFlagAnimationPhase","setFlagOwner","setFlagSide","setFlagTexture","setFog","setForceGeneratorRTD","setFormation","setFormationTask","setFormDir","setFriend","setFromEditor","setFSMVariable","setFuel","setFuelCargo","setGroupIcon","setGroupIconParams","setGroupIconsSelectable","setGroupIconsVisible","setGroupid","setGroupIdGlobal","setGroupOwner","setGusts","setHideBehind","setHit","setHitIndex","setHitPointDamage","setHorizonParallaxCoef","setHUDMovementLevels","setHumidity","setIdentity","setImportance","setInfoPanel","setLeader","setLightAmbient","setLightAttenuation","setLightBrightness","setLightColor","setLightConePars","setLightDayLight","setLightFlareMaxDistance","setLightFlareSize","setLightIntensity","setLightIR","setLightnings","setLightUseFlare","setLightVolumeShape","setLocalWindParams","setMagazineTurretAmmo","setMarkerAlpha","setMarkerAlphaLocal","setMarkerBrush","setMarkerBrushLocal","setMarkerColor","setMarkerColorLocal","setMarkerDir","setMarkerDirLocal","setMarkerPolyline","setMarkerPolylineLocal","setMarkerPos","setMarkerPosLocal","setMarkerShadow","setMarkerShadowLocal","setMarkerShape","setMarkerShapeLocal","setMarkerSize","setMarkerSizeLocal","setMarkerText","setMarkerTextLocal","setMarkerType","setMarkerTypeLocal","setMass","setMaxLoad","setMimic","setMissileTarget","setMissileTargetPos","setMousePosition","setMusicEffect","setMusicEventHandler","setName","setNameSound","setObjectArguments","setObjectMaterial","setObjectMaterialGlobal","setObjectProxy","setObjectScale","setObjectTexture","setObjectTextureGlobal","setObjectViewDistance","setOpticsMode","setOvercast","setOwner","setOxygenRemaining","setParticleCircle","setParticleClass","setParticleFire","setParticleParams","setParticleRandom","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget","setPilotLight","setPiPEffect","setPiPViewDistance","setPitch","setPlateNumber","setPlayable","setPlayerRespawnTime","setPlayerVoNVolume","setPos","setPosASL","setPosASL2","setPosASLW","setPosATL","setPosition","setPosWorld","setPylonLoadout","setPylonsPriority","setRadioMsg","setRain","setRainbow","setRandomLip","setRank","setRectangular","setRepairCargo","setRotorBrakeRTD","setShadowDistance","setShotParents","setSide","setSimpleTaskAlwaysVisible","setSimpleTaskCustomData","setSimpleTaskDescription","setSimpleTaskDestination","setSimpleTaskTarget","setSimpleTaskType","setSimulWeatherLayers","setSize","setSkill","setSlingLoad","setSoundEffect","setSpeaker","setSpeech","setSpeedMode","setStamina","setStaminaScheme","setStatValue","setSuppression","setSystemOfUnits","setTargetAge","setTaskMarkerOffset","setTaskResult","setTaskState","setTerrainGrid","setTerrainHeight","setText","setTimeMultiplier","setTiParameter","setTitleEffect","setTowParent","setTrafficDensity","setTrafficDistance","setTrafficGap","setTrafficSpeed","setTriggerActivation","setTriggerArea","setTriggerInterval","setTriggerStatements","setTriggerText","setTriggerTimeout","setTriggerType","setTurretLimits","setTurretOpticsMode","setType","setUnconscious","setUnitAbility","setUnitCombatMode","setUnitFreefallHeight","setUnitLoadout","setUnitPos","setUnitPosWeak","setUnitRank","setUnitRecoilCoefficient","setUnitTrait","setUnloadInCombat","setUserActionText","setUserMFDText","setUserMFDValue","setVariable","setVectorDir","setVectorDirAndUp","setVectorUp","setVehicleAmmo","setVehicleAmmoDef","setVehicleArmor","setVehicleCargo","setVehicleId","setVehicleLock","setVehiclePosition","setVehicleRadar","setVehicleReceiveRemoteTargets","setVehicleReportOwnPosition","setVehicleReportRemoteTargets","setVehicleTiPars","setVehicleVarName","setVelocity","setVelocityModelSpace","setVelocityTransformation","setViewDistance","setVisibleIfTreeCollapsed","setWantedRPMRTD","setWaves","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointDescription","setWaypointForceBehaviour","setWaypointFormation","setWaypointHousePosition","setWaypointLoiterAltitude","setWaypointLoiterRadius","setWaypointLoiterType","setWaypointName","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","setWeaponReloadingTime","setWeaponZeroing","setWind","setWindDir","setWindForce","setWindStr","setWingForceScaleRTD","setWPPos","show3DIcons","showChat","showCinemaBorder","showCommandingMenu","showCompass","showCuratorCompass","showGps","showHUD","showLegend","showMap","shownArtilleryComputer","shownChat","shownCompass","shownCuratorCompass","showNewEditorObject","shownGps","shownHUD","shownMap","shownPad","shownRadio","shownScoretable","shownSubtitles","shownUAVFeed","shownWarrant","shownWatch","showPad","showRadio","showScoretable","showSubtitles","showUAVFeed","showWarrant","showWatch","showWaypoint","showWaypoints","side","sideChat","sideRadio","simpleTasks","simulationEnabled","simulCloudDensity","simulCloudOcclusion","simulInClouds","simulWeatherSync","sin","size","sizeOf","skill","skillFinal","skipTime","sleep","sliderPosition","sliderRange","sliderSetPosition","sliderSetRange","sliderSetSpeed","sliderSpeed","slingLoadAssistantShown","soldierMagazines","someAmmo","sort","soundVolume","spawn","speaker","speechVolume","speed","speedMode","splitString","sqrt","squadParams","stance","startLoadingScreen","stop","stopEngineRTD","stopped","str","sunOrMoon","supportInfo","suppressFor","surfaceIsWater","surfaceNormal","surfaceTexture","surfaceType","swimInDepth","switchableUnits","switchAction","switchCamera","switchGesture","switchLight","switchMove","synchronizedObjects","synchronizedTriggers","synchronizedWaypoints","synchronizeObjectsAdd","synchronizeObjectsRemove","synchronizeTrigger","synchronizeWaypoint","systemChat","systemOfUnits","systemTime","systemTimeUTC","tan","targetKnowledge","targets","targetsAggregate","targetsQuery","taskAlwaysVisible","taskChildren","taskCompleted","taskCustomData","taskDescription","taskDestination","taskHint","taskMarkerOffset","taskName","taskParent","taskResult","taskState","taskType","teamMember","teamName","teams","teamSwitch","teamSwitchEnabled","teamType","terminate","terrainIntersect","terrainIntersectASL","terrainIntersectAtASL","text","textLog","textLogFormat","tg","time","timeMultiplier","titleCut","titleFadeOut","titleObj","titleRsc","titleText","toArray","toFixed","toLower","toLowerANSI","toString","toUpper","toUpperANSI","triggerActivated","triggerActivation","triggerAmmo","triggerArea","triggerAttachedVehicle","triggerAttachObject","triggerAttachVehicle","triggerDynamicSimulation","triggerInterval","triggerStatements","triggerText","triggerTimeout","triggerTimeoutCurrent","triggerType","trim","turretLocal","turretOwner","turretUnit","tvAdd","tvClear","tvCollapse","tvCollapseAll","tvCount","tvCurSel","tvData","tvDelete","tvExpand","tvExpandAll","tvIsSelected","tvPicture","tvPictureRight","tvSelection","tvSetColor","tvSetCurSel","tvSetData","tvSetPicture","tvSetPictureColor","tvSetPictureColorDisabled","tvSetPictureColorSelected","tvSetPictureRight","tvSetPictureRightColor","tvSetPictureRightColorDisabled","tvSetPictureRightColorSelected","tvSetSelectColor","tvSetSelected","tvSetText","tvSetTooltip","tvSetValue","tvSort","tvSortAll","tvSortByValue","tvSortByValueAll","tvText","tvTooltip","tvValue","type","typeName","typeOf","UAVControl","uiNamespace","uiSleep","unassignCurator","unassignItem","unassignTeam","unassignVehicle","underwater","uniform","uniformContainer","uniformItems","uniformMagazines","uniqueUnitItems","unitAddons","unitAimPosition","unitAimPositionVisual","unitBackpack","unitCombatMode","unitIsUAV","unitPos","unitReady","unitRecoilCoefficient","units","unitsBelowHeight","unitTurret","unlinkItem","unlockAchievement","unregisterTask","updateDrawIcon","updateMenuItem","updateObjectTree","useAIOperMapObstructionTest","useAISteeringComponent","useAudioTimeForMoves","userInputDisabled","values","vectorAdd","vectorCos","vectorCrossProduct","vectorDiff","vectorDir","vectorDirVisual","vectorDistance","vectorDistanceSqr","vectorDotProduct","vectorFromTo","vectorLinearConversion","vectorMagnitude","vectorMagnitudeSqr","vectorModelToWorld","vectorModelToWorldVisual","vectorMultiply","vectorNormalized","vectorUp","vectorUpVisual","vectorWorldToModel","vectorWorldToModelVisual","vehicle","vehicleCargoEnabled","vehicleChat","vehicleMoveInfo","vehicleRadio","vehicleReceiveRemoteTargets","vehicleReportOwnPosition","vehicleReportRemoteTargets","vehicles","vehicleVarName","velocity","velocityModelSpace","verifySignature","vest","vestContainer","vestItems","vestMagazines","viewDistance","visibleCompass","visibleGps","visibleMap","visiblePosition","visiblePositionASL","visibleScoretable","visibleWatch","waves","waypointAttachedObject","waypointAttachedVehicle","waypointAttachObject","waypointAttachVehicle","waypointBehaviour","waypointCombatMode","waypointCompletionRadius","waypointDescription","waypointForceBehaviour","waypointFormation","waypointHousePosition","waypointLoiterAltitude","waypointLoiterRadius","waypointLoiterType","waypointName","waypointPosition","waypoints","waypointScript","waypointsEnabledUAV","waypointShow","waypointSpeed","waypointStatements","waypointTimeout","waypointTimeoutCurrent","waypointType","waypointVisible","weaponAccessories","weaponAccessoriesCargo","weaponCargo","weaponDirection","weaponInertia","weaponLowered","weaponReloadingTime","weapons","weaponsInfo","weaponsItems","weaponsItemsCargo","weaponState","weaponsTurret","weightRTD","WFSideText","wind","windDir","windRTD","windStr","wingsForcesRTD","worldName","worldSize","worldToModel","worldToModelVisual","worldToScreen"],s={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},e.inherit(r,{className:"string"}),{begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:i,built_in:a,literal:o},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,t,n,r,s],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}e.exports=t},21202:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});n(18111),n(61701);function r(e){const t=new Array(10).fill(null).map((t,n)=>{const r=n-1,i=e*Math.pow(2.71828,r/5),o=n>1?Math.floor(i):Math.ceil(i);return 2*Math.floor(o/2)});return t[1]=e,t.map(e=>{const t=e+8;return{size:e,lineHeight:t/e}})}const i=e=>{const t=r(e),n=t.map(e=>e.size),i=t.map(e=>e.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:i[1],lineHeightLG:i[2],lineHeightSM:i[0],lineHeightHeading1:i[6],lineHeightHeading2:i[5],lineHeightHeading3:i[4],lineHeightHeading4:i[3],lineHeightHeading5:i[2]}};var o=i},21220:function(e){function t(e){const t="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",n="далее ",r="возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",i=n+r,o="загрузитьизфайла ",a="вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",s=o+a,l="разделительстраниц разделительстрок символтабуляции ",c="ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон ",u="acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища ",d="wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",h=l+c+u+d,f="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля ",p="автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы ",g="виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента ",m="авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных ",v="использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц ",A="отображениевремениэлементовпланировщика ",b="типфайлаформатированногодокумента ",y="обходрезультатазапроса типзаписизапроса ",w="видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов ",_="доступкфайлу режимдиалогавыборафайла режимоткрытияфайла ",x="типизмеренияпостроителязапроса ",E="видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений ",S="wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson ",C="видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных ",T="важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения ",k="режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации ",O="расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии ",M="кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip ",I="звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp ",D="направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса ",N="httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений ",R="важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",L=f+p+g+m+v+A+b+y+w+_+x+E+S+C+T+k+O+M+I+D+N+R,B="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных ",P="comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",F=B+P,$="null истина ложь неопределено",j=e.inherit(e.NUMBER_MODE),H={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},U={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},Q={match:/[;()+\-:=,]/,className:"punctuation",relevance:0},z=e.inherit(e.C_LINE_COMMENT_MODE),W={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:t,keyword:i+s},contains:[z]},G={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},V={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:t,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:t,keyword:"знач",literal:$},contains:[j,H,U]},z]},e.inherit(e.TITLE_MODE,{begin:t})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:t,keyword:i,built_in:h,class:L,type:F,literal:$},contains:[W,V,z,G,j,H,U,Q]}}e.exports=t},21372:function(e,t,n){"use strict";var r=n(93932),i=n(73553);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},21446:function(e,t,n){"use strict";n(18111),n(7588);var r=n(38809),i=n(22228);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,function(n){e=n.call(o,e,t)}),e}},21656:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="MenuFoldOutlined",c.inheritAttrs=!1;var u=c},21668:function(e){function t(e){const t=["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],n=["true","false","null","missing|5"],r=["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"];return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:t,literal:n,built_in:r},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}e.exports=t},21715:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=n(51137),i=n(58085),o=n(90112),a=n(9519);const s=e=>{const{componentCls:t,width:n,notificationMarginEdge:r}=e,o=new i.A("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),a=new i.A("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),s=new i.A("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}};var l=s,c=n(36068);const u=e=>{const{iconCls:t,componentCls:n,boxShadowSecondary:o,fontSizeLG:a,notificationMarginBottom:s,borderRadiusLG:u,colorSuccess:d,colorInfo:h,colorWarning:f,colorError:p,colorTextHeading:g,notificationBg:m,notificationPadding:v,notificationMarginEdge:A,motionDurationMid:b,motionEaseInOut:y,fontSize:w,lineHeight:_,width:x,notificationIconSize:E}=e,S=`${n}-notice`,C=new i.A("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:x},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),T=new i.A("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:s,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:(0,r.A)((0,r.A)((0,r.A)((0,r.A)({},(0,c.dF)(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:A,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:y,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:y,animationFillMode:"both",animationDuration:b,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:C,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:T,animationPlayState:"running"}}),l(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[S]:{position:"relative",width:x,maxWidth:`calc(100vw - ${2*A}px)`,marginBottom:s,marginInlineStart:"auto",padding:v,overflow:"hidden",lineHeight:_,wordWrap:"break-word",background:m,borderRadius:u,boxShadow:o,[`${n}-close-icon`]:{fontSize:w,cursor:"pointer"},[`${S}-message`]:{marginBottom:e.marginXS,color:g,fontSize:a,lineHeight:e.lineHeightLG},[`${S}-description`]:{fontSize:w},[`&${S}-closable ${S}-message`]:{paddingInlineEnd:e.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+E,fontSize:a},[`${S}-with-icon ${S}-description`]:{marginInlineStart:e.marginSM+E,fontSize:w},[`${S}-icon`]:{position:"absolute",fontSize:E,lineHeight:0,[`&-success${t}`]:{color:d},[`&-info${t}`]:{color:h},[`&-warning${t}`]:{color:f},[`&-error${t}`]:{color:p}},[`${S}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${S}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${S}-pure-panel`]:{margin:0}}]};var d=(0,o.A)("Notification",e=>{const t=e.paddingMD,n=e.paddingLG,r=(0,a.h1)(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:.55*e.controlHeightLG});return[u(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}))},21912:function(e,t,n){"use strict";n(44114),n(18111),n(7588);var r=n(38809),i=n(30113),o=n(48434),a=n(19745),s=n(41904),l=n(8936),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach(function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))});var i,o=[];if(this.interceptors.response.forEach(function(e){o.push(e.fulfilled,e.rejected)}),!r){var u=[a,void 0];Array.prototype.unshift.apply(u,n),u=u.concat(o),i=Promise.resolve(e);while(u.length)i=i.then(u.shift(),u.shift());return i}var d=e;while(n.length){var h=n.shift(),f=n.shift();try{d=h(d)}catch(p){f(p);break}}try{i=a(d)}catch(p){return Promise.reject(p)}while(o.length)i=i.then(o.shift(),o.shift());return i},u.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){u.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}}),r.forEach(["post","put","patch"],function(e){u.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}}),e.exports=u},22039:function(e,t,n){const r=n(41210),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return i[4*(e-1)+0];case r.M:return i[4*(e-1)+1];case r.Q:return i[4*(e-1)+2];case r.H:return i[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}}},22046:function(e,t,n){n(44114);var r={utf8:{stringToBytes:function(e){return r.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(r.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=r},22195:function(e,t,n){"use strict";var r=n(79504),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},22225:function(e,t,n){"use strict";n(44114),n(18111),n(7588);var r=50,i=2,o=Math.log(2),a=e.exports,s=n(98697);function l(e){return 1-Math.abs(e)}function c(e,t){for(var n={},r=0,i=-t;i<=t;i++)r+=e(i/t),n[i]=r;return n}e.exports.getUnifiedMinMax=function(e,t){return a.getUnifiedMinMaxMulti([e],t)},e.exports.getUnifiedMinMaxMulti=function(e,t){t=t||{};var n=!1,o=!1,a=s.isNumber(t.width)?t.width:i,l=s.isNumber(t.size)?t.size:r,c=s.isNumber(t.min)?t.min:(n=!0,s.findMinMulti(e)),u=s.isNumber(t.max)?t.max:(o=!0,s.findMaxMulti(e)),d=u-c,h=d/(l-1);return n&&(c-=2*a*h),o&&(u+=2*a*h),{min:c,max:u}},e.exports.create=function(e,t){if(t=t||{},!e||0===e.length)return[];var n=s.isNumber(t.size)?t.size:r,o=s.isNumber(t.width)?t.width:i,u=a.getUnifiedMinMax(e,{size:n,width:o,min:t.min,max:t.max}),d=u.min,h=u.max,f=h-d,p=f/(n-1);if(0===f)return[{x:d,y:1}];for(var g=[],m=0;m<n;m++)g.push({x:d+m*p,y:0});var v=function(e){return Math.floor((e-d)/p)},A=c(l,o),b=A[o],y=A[o-1]-A[o-2],w=0;e.forEach(function(e){var t=v(e);if(!(t+o<0||t-o>=g.length)){var n=Math.max(t-o,0),r=t,i=Math.min(t+o,g.length-1),a=n-(t-o),l=t+o-i,c=A[-o-1+a]||0,u=A[-o-1+l]||0,d=b/(b-c-u);a>0&&(w+=d*(a-1)*y);var h=Math.max(0,t-o+1);s.inside(0,g.length-1,h)&&(g[h].y+=1*d*y),s.inside(0,g.length-1,r+1)&&(g[r+1].y-=2*d*y),s.inside(0,g.length-1,i+1)&&(g[i+1].y+=1*d*y)}});var _=w,x=0,E=0;return g.forEach(function(e){x+=e.y,_+=x,e.y=_,E+=_}),E>0&&g.forEach(function(e){e.y/=E}),g},e.exports.getExpectedValueFromPdf=function(e){if(e&&0!==e.length){var t=0;return e.forEach(function(e){t+=e.x*e.y}),t}},e.exports.getXWithLeftTailArea=function(e,t){if(e&&0!==e.length){for(var n=0,r=0,i=0;i<e.length;i++)if(r=i,n+=e[i].y,n>=t)break;return e[r].x}},e.exports.getPerplexity=function(e){if(e&&0!==e.length){var t=0;return e.forEach(function(e){var n=Math.log(e.y);isFinite(n)&&(t+=e.y*n)}),t=-t/o,Math.pow(2,t)}}},22228:function(e,t,n){"use strict";n(18111),n(7588);var r=n(38809),i=n(73783),o=n(19532),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function l(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(25099)),e}function c(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}var u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:l(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),c(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw o(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(e){u.headers[e]={}}),r.forEach(["post","put","patch"],function(e){u.headers[e]=r.merge(a)}),e.exports=u},22260:function(e){function t(e){const t="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",n="\\|[^]*?\\|",r="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",i={className:"literal",begin:"\\b(t{1}|nil)\\b"},o={className:"number",variants:[{begin:r,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+r+" +"+r,end:"\\)"}]},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s=e.COMMENT(";","$",{relevance:0}),l={begin:"\\*",end:"\\*"},c={className:"symbol",begin:"[:&]"+t},u={begin:t,relevance:0},d={begin:n},h={begin:"\\(",end:"\\)",contains:["self",i,a,o,u]},f={contains:[o,a,l,c,h,u],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+n}]},p={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},g={begin:"\\(\\s*",end:"\\)"},m={endsWithParent:!0,relevance:0};return g.contains=[{className:"name",variants:[{begin:t,relevance:0},{begin:n}]},m],m.contains=[f,p,g,i,o,a,s,l,c,d,u],{name:"Lisp",illegal:/\S/,contains:[o,e.SHEBANG(),i,a,s,f,p,g,u]}}e.exports=t},22411:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});n(18111),n(7588);const r="accept acceptcharset accesskey action allowfullscreen allowtransparency\nalt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge\ncharset checked classid class colspan cols content contenteditable contextmenu\ncontrols coords crossorigin data datetime default defer dir disabled download draggable\nenctype form formaction formenctype formmethod formnovalidate formtarget frameborder\nheaders height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity\nis keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media\nmediagroup method min minlength multiple muted name novalidate nonce open\noptimum pattern placeholder poster preload radiogroup readonly rel required\nreversed role rowspan rows sandbox scope scoped scrolling seamless selected\nshape size sizes span spellcheck src srcdoc srclang srcset start step style\nsummary tabindex target title type usemap value width wmode wrap",i="onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown\n    onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick\n    onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown\n    onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel\n    onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough\n    onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata\n    onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError",o=`${r} ${i}`.split(/[\s\n]+/),a="aria-",s="data-";function l(e,t){return 0===e.indexOf(t)}function c(e,t=!1){let n;n=!1===t?{aria:!0,data:!0,attr:!0}:!0===t?{aria:!0}:{...t};const r={};return Object.keys(e).forEach(t=>{(n.aria&&("role"===t||l(t,a))||n.data&&l(t,s)||n.attr&&(o.includes(t)||o.includes(t.toLowerCase())))&&(r[t]=e[t])}),r}},22462:function(e,t,n){n(79577),n(41549),n(49797),n(49631),n(35623),function(){var t=n(38018),r=n(22046).utf8,i=n(80167),o=n(22046).bin,a=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?o.stringToBytes(e):r.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var s=t.bytesToWords(e),l=8*e.length,c=1732584193,u=-271733879,d=-1732584194,h=271733878,f=0;f<s.length;f++)s[f]=16711935&(s[f]<<8|s[f]>>>24)|4278255360&(s[f]<<24|s[f]>>>8);s[l>>>5]|=128<<l%32,s[14+(l+64>>>9<<4)]=l;var p=a._ff,g=a._gg,m=a._hh,v=a._ii;for(f=0;f<s.length;f+=16){var A=c,b=u,y=d,w=h;c=p(c,u,d,h,s[f+0],7,-680876936),h=p(h,c,u,d,s[f+1],12,-389564586),d=p(d,h,c,u,s[f+2],17,606105819),u=p(u,d,h,c,s[f+3],22,-1044525330),c=p(c,u,d,h,s[f+4],7,-176418897),h=p(h,c,u,d,s[f+5],12,1200080426),d=p(d,h,c,u,s[f+6],17,-1473231341),u=p(u,d,h,c,s[f+7],22,-45705983),c=p(c,u,d,h,s[f+8],7,1770035416),h=p(h,c,u,d,s[f+9],12,-1958414417),d=p(d,h,c,u,s[f+10],17,-42063),u=p(u,d,h,c,s[f+11],22,-1990404162),c=p(c,u,d,h,s[f+12],7,1804603682),h=p(h,c,u,d,s[f+13],12,-40341101),d=p(d,h,c,u,s[f+14],17,-1502002290),u=p(u,d,h,c,s[f+15],22,1236535329),c=g(c,u,d,h,s[f+1],5,-165796510),h=g(h,c,u,d,s[f+6],9,-1069501632),d=g(d,h,c,u,s[f+11],14,643717713),u=g(u,d,h,c,s[f+0],20,-373897302),c=g(c,u,d,h,s[f+5],5,-701558691),h=g(h,c,u,d,s[f+10],9,38016083),d=g(d,h,c,u,s[f+15],14,-660478335),u=g(u,d,h,c,s[f+4],20,-405537848),c=g(c,u,d,h,s[f+9],5,568446438),h=g(h,c,u,d,s[f+14],9,-1019803690),d=g(d,h,c,u,s[f+3],14,-187363961),u=g(u,d,h,c,s[f+8],20,1163531501),c=g(c,u,d,h,s[f+13],5,-1444681467),h=g(h,c,u,d,s[f+2],9,-51403784),d=g(d,h,c,u,s[f+7],14,1735328473),u=g(u,d,h,c,s[f+12],20,-1926607734),c=m(c,u,d,h,s[f+5],4,-378558),h=m(h,c,u,d,s[f+8],11,-2022574463),d=m(d,h,c,u,s[f+11],16,1839030562),u=m(u,d,h,c,s[f+14],23,-35309556),c=m(c,u,d,h,s[f+1],4,-1530992060),h=m(h,c,u,d,s[f+4],11,1272893353),d=m(d,h,c,u,s[f+7],16,-155497632),u=m(u,d,h,c,s[f+10],23,-1094730640),c=m(c,u,d,h,s[f+13],4,681279174),h=m(h,c,u,d,s[f+0],11,-358537222),d=m(d,h,c,u,s[f+3],16,-722521979),u=m(u,d,h,c,s[f+6],23,76029189),c=m(c,u,d,h,s[f+9],4,-640364487),h=m(h,c,u,d,s[f+12],11,-421815835),d=m(d,h,c,u,s[f+15],16,530742520),u=m(u,d,h,c,s[f+2],23,-995338651),c=v(c,u,d,h,s[f+0],6,-198630844),h=v(h,c,u,d,s[f+7],10,1126891415),d=v(d,h,c,u,s[f+14],15,-1416354905),u=v(u,d,h,c,s[f+5],21,-57434055),c=v(c,u,d,h,s[f+12],6,1700485571),h=v(h,c,u,d,s[f+3],10,-1894986606),d=v(d,h,c,u,s[f+10],15,-1051523),u=v(u,d,h,c,s[f+1],21,-2054922799),c=v(c,u,d,h,s[f+8],6,1873313359),h=v(h,c,u,d,s[f+15],10,-30611744),d=v(d,h,c,u,s[f+6],15,-1560198380),u=v(u,d,h,c,s[f+13],21,1309151649),c=v(c,u,d,h,s[f+4],6,-145523070),h=v(h,c,u,d,s[f+11],10,-1120210379),d=v(d,h,c,u,s[f+2],15,718787259),u=v(u,d,h,c,s[f+9],21,-343485551),c=c+A>>>0,u=u+b>>>0,d=d+y>>>0,h=h+w>>>0}return t.endian([c,u,d,h])};a._ff=function(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},a._gg=function(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},a._hh=function(e,t,n,r,i,o,a){var s=e+(t^n^r)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},a._ii=function(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+(i>>>0)+a;return(s<<o|s>>>32-o)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,n){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(a(e,n));return n&&n.asBytes?r:n&&n.asString?o.bytesToString(r):t.bytesToHex(r)}}()},22489:function(e,t,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),a=n(28551),s=n(1767),l=n(19462),c=n(96319),u=n(96395),d=n(9539),h=n(30684),f=n(84549),p=!u&&!h("filter",function(){}),g=!u&&!p&&f("filter",TypeError),m=u||p||g,v=l(function(){var e,t,n,r=this.iterator,o=this.predicate,s=this.next;while(1){if(e=a(i(s,r)),t=this.done=!!e.done,t)return;if(n=e.value,c(r,o,[n,this.counter++],!0))return n}});r({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(e){a(this);try{o(e)}catch(t){d(this,"throw",t)}return g?i(g,this,e):new v(s(this),{predicate:e})}})},22622:function(e,t,n){"use strict";var r=n(36590);t.A=r.A},22676:function(e,t){"use strict";var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t=null==t?n:t,!!t&&("number"==i||"symbol"!=i&&r.test(e))&&e>-1&&e%1==0&&e<t}t.A=i},22799:function(e,t){"use strict";function n(e){return null!=e&&"object"==typeof e}t.A=n},22812:function(e){"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},23167:function(e,t,n){"use strict";var r=n(94901),i=n(20034),o=n(52967);e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},23402:function(e,t,n){"use strict";n.d(t,{DU:function(){return o}});var r=n(81425),i=n(44678);function o(e){return"danger"===e?{danger:!0}:{type:e}}const a=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:r.A.any,href:String,target:String,title:String,onClick:(0,i.$q)(),onMousedown:(0,i.$q)()});t.Ay=a},23406:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});n(18111),n(7588),n(18237);const r="\n\n",i="\n",o=":",a=e=>""!==(e??"").trim();function s(){let e="";return new TransformStream({transform(t,n){e+=t;const i=e.split(r);i.slice(0,-1).forEach(e=>{a(e)&&n.enqueue(e)}),e=i[i.length-1]},flush(t){a(e)&&t.enqueue(e)}})}function l(){return new TransformStream({transform(e,t){const n=e.split(i).reduce((e,t)=>{const n=t.indexOf(o);if(-1===n)throw new Error(`The key-value separator "${o}" is not found in the sse line chunk!`);const r=t.slice(0,n);if(!a(r))return e;const i=t.slice(n+1);return{...e,[r]:i}},{});0!==Object.keys(n).length&&t.enqueue(n)}})}function c(e){const{readableStream:t,transformStream:n}=e;if(!(t instanceof ReadableStream))throw new Error("The options.readableStream must be an instance of ReadableStream.");const r=new TextDecoderStream,i=n?t.pipeThrough(r).pipeThrough(n):t.pipeThrough(r).pipeThrough(s()).pipeThrough(l());return i[Symbol.asyncIterator]=async function*(){const e=this.getReader();for(;;){const{done:t,value:n}=await e.read();if(t)break;n&&(yield n)}},i}},23452:function(e,t,n){"use strict";var r=n(7162),i=n(39578),o=(0,r.A)(i.A,"Set");t.A=o},23506:function(e,t){"use strict";var n=Array.isArray;t.A=n},23606:function(e,t,n){"use strict";n(44114),n(18111),n(22489),n(7588),n(61701),n(13579);var r=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),i="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,o=function(){return"undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),a=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),s=2;function l(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&c()}function l(){a(o)}function c(){var e=Date.now();if(n){if(e-i<s)return;r=!0}else n=!0,r=!1,setTimeout(l,t);i=e}return c}var c=20,u=["top","right","bottom","left","width","height","size","weight"],d="undefined"!==typeof MutationObserver,h=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=l(this.refresh.bind(this),c)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=u.some(function(e){return!!~n.indexOf(e)});r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||o},g=S(0,0,0,0);function m(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){var r=e["border-"+n+"-width"];return t+m(r)},0)}function A(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],a=e["padding-"+o];n[o]=m(a)}return n}function b(e){var t=e.getBBox();return S(0,0,t.width,t.height)}function y(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return g;var r=p(e).getComputedStyle(e),i=A(r),o=i.left+i.right,a=i.top+i.bottom,s=m(r.width),l=m(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=v(r,"left","right")+o),Math.round(l+a)!==n&&(l-=v(r,"top","bottom")+a)),!_(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return S(i.left,i.top,s,l)}var w=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"===typeof e.getBBox}}();function _(e){return e===p(e).document.documentElement}function x(e){return i?w(e)?b(e):y(e):g}function E(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return f(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function S(e,t,n,r){return{x:e,y:t,width:n,height:r}}var C=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=x(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),T=function(){function e(e,t){var n=E(t);f(this,{target:e,contentRect:n})}return e}(),k=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new C(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new T(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),O="undefined"!==typeof WeakMap?new WeakMap:new r,M=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=h.getInstance(),r=new k(t,n,this);O.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){M.prototype[e]=function(){var t;return(t=O.get(this))[e].apply(t,arguments)}});var I=function(){return"undefined"!==typeof o.ResizeObserver?o.ResizeObserver:M}();t.A=I},23616:function(e,t,n){"use strict";var r=n(51137),i=n(58085),o=n(90112),a=n(9519),s=n(36068);const l=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:o,colorBgElevated:a,colorSuccess:l,colorError:c,colorWarning:u,colorInfo:d,fontSizeLG:h,motionEaseInOutCirc:f,motionDurationSlow:p,marginXS:g,paddingXS:m,borderRadiusLG:v,zIndexPopup:A,messageNoticeContentPadding:b}=e,y=new i.A("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:m,transform:"translateY(0)",opacity:1}}),w=new i.A("MessageMoveOut",{"0%":{maxHeight:e.height,padding:m,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:(0,r.A)((0,r.A)({},(0,s.dF)(e)),{position:"fixed",top:g,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:A,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n        ${t}-move-up-appear,\n        ${t}-move-up-enter\n      `]:{animationName:y,animationDuration:p,animationPlayState:"paused",animationTimingFunction:f},[`\n        ${t}-move-up-appear${t}-move-up-appear-active,\n        ${t}-move-up-enter${t}-move-up-enter-active\n      `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:w,animationDuration:p,animationPlayState:"paused",animationTimingFunction:f},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:m,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:g,fontSize:h},[`${t}-notice-content`]:{display:"inline-block",padding:b,background:a,borderRadius:v,boxShadow:o,pointerEvents:"all"},[`${t}-success ${n}`]:{color:l},[`${t}-error ${n}`]:{color:c},[`${t}-warning ${n}`]:{color:u},[`\n        ${t}-info ${n},\n        ${t}-loading ${n}`]:{color:d}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]};t.A=(0,o.A)("Message",e=>{const t=(0,a.h1)(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[l(t)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10}))},23772:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(33051);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},23805:function(e){function t(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},r={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},i=/\d{1,2}\/\d{1,2}\/\d{4}/,o=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,s=/\d{1,2}(:\d{1,2}){1,2}/,l={className:"literal",variants:[{begin:t.concat(/# */,t.either(o,i),/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,a,/ *#/)},{begin:t.concat(/# */,t.either(o,i),/ +/,t.either(a,s),/ *#/)}]},c={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},u={className:"label",begin:/^\w+:/},d=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),h=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]}),f={className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[h]};return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,r,l,c,u,d,h,f]}}e.exports=t},23933:function(e,t,n){"use strict";n.d(t,{A:function(){return ee}});var r=n(56768),i=n(90144),o=n(73178),a=n(75806),s=n(74789),l=n(30050),c=n(22411),u=n(34002),d=n(4663);const h=Symbol("SenderHeaderContext"),f=(0,i.IJ)(),p=e=>{(0,r.Gt)(h,e),(0,r.wB)(e,()=>{f.value=(0,i.R1)(e),(0,i.mu)(f)},{immediate:!0,deep:!0})},g=()=>(0,r.WQ)(h,(0,r.EW)(()=>f.value||{})),m=(0,r.pM)({props:{value:(0,d.ge)()},setup(e,{slots:t}){return p((0,r.EW)(()=>e.value)),()=>{var e;return null==(e=t.default)?void 0:e.call(t)}}}),v=Symbol("ActionButtonContext"),A=(0,i.IJ)(),b=e=>{(0,r.Gt)(v,e),(0,r.wB)(e,()=>{A.value=(0,i.R1)(e),(0,i.mu)(A)},{immediate:!0,deep:!0})},y=()=>(0,r.WQ)(v,(0,r.EW)(()=>A.value||{})),w=(0,r.pM)({props:{value:(0,d.ge)()},setup(e,{slots:t}){return b((0,r.EW)(()=>e.value)),()=>{var e;return null==(e=t.default)?void 0:e.call(t)}}});var _=n(80816);const x=(0,r.pM)({name:"AXSenderActionButton",__name:"index",props:{action:{},prefixCls:{},type:{default:"text"},htmlType:{},shape:{},size:{},loading:{type:[Boolean,Object]},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean},block:{type:Boolean},danger:{type:Boolean},icon:{},href:{},target:{},title:{},onClick:{},onMousedown:{},audioIcon:{},audioDisabledIcon:{},audioRecordingIcon:{}},setup(e){const t=(0,o.c)(e,["action","type","disabled","onClick"]);(0,i.lW)(e,"disabled");const n=(0,r.Ht)(),a=y(),s=(0,r.EW)(()=>{var t;const n=a.value.disabled,r=null==(t=a.value)?void 0:t[`${e.action}Disabled`];return e.disabled??n??r}),c=(0,r.EW)(()=>a.value.prefixCls);return()=>(0,r.bF)(_.A,(0,r.v6)({type:e.type},t,{onClick:t=>{var n,r;s.value||(null==(r=null==(n=a.value)?void 0:n[e.action])||r.call(n),e.onClick&&!Array.isArray(e.onClick)&&e.onClick(t))},class:(0,l.b)(c.value,{[`${c.value}-disabled`]:s.value})}),{icon:()=>n.default()})}}),E=(0,r.pM)({name:"AXSenderClearButton",__name:"ClearButton",props:(0,r.HF)({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},{disabled:void 0}),setup(e){const t=(0,o.c)(e,["disabled"]);return()=>(0,r.bF)(x,(0,r.v6)({disabled:e.disabled},t,{action:"onClear"}),{default:()=>[(0,r.bF)(l.n,null,null)]})}}),S=(0,r.pM)({name:"AXSenderStopLoading",__name:"StopLoading",props:{className:null},setup(e){const t=e;return()=>(0,r.bF)("svg",{color:"currentColor",viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:t.className},[(0,r.bF)("title",null,[(0,r.eW)("Stop Loading")]),(0,r.bF)("rect",{fill:"currentColor",height:"250",rx:"24",ry:"24",width:"250",x:"375",y:"375"},null),(0,r.bF)("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100",opacity:"0.45"},null),(0,r.bF)("circle",{cx:"500",cy:"500",fill:"none",r:"450",stroke:"currentColor","stroke-width":"100","stroke-dasharray":"600 9999999"},[(0,r.bF)("animateTransform",{attributeName:"transform",dur:"1s",from:"0 500 500",repeatCount:"indefinite",to:"360 500 500",type:"rotate"},null)])])}});var C=n(15383);const T=(0,r.pM)({name:"AXSenderLoadingButton",__name:"LoadingButton",props:(0,r.HF)({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},{type:"primary",shape:"circle",icon:void 0,disabled:void 0}),setup(e){const t=(0,o.c)(e,["type","shape","icon","disabled"]),n=y(),{token:i}=C.A.useToken();return()=>(0,r.bF)(x,(0,r.v6)({type:e.type,disabled:e.disabled,shape:e.shape,icon:e.icon},t,{style:{backgroundColor:"transparent",color:i.value.colorPrimary},class:(0,l.b)(`${n.value.prefixCls}-loading-button`),action:"onCancel"}),{default:()=>[(0,r.bF)(S,{className:`${n.value.prefixCls}-loading-icon`},null)]})}}),k=(0,r.pM)({name:"AXSenderLoadingButton",__name:"SendButton",props:(0,r.HF)({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},{type:"primary",shape:"circle",disabled:void 0}),setup(e){const t=(0,o.c)(e,["type","shape","disabled"]);return()=>(0,r.bF)(x,(0,r.v6)({type:e.type,shape:e.shape,disabled:e.disabled},t,{action:"onSend"}),{default:()=>[(0,r.bF)(l.A,null,null)]})}});n(18111),n(61701);const O=1e3,M=4,I=140,D=250,N=500,R=.8,L=(0,r.pM)({name:"AXSenderRecordingIcon",__name:"RecordingIcon",props:{className:null,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},setup(e){const t=I/2;return()=>(0,r.bF)("svg",{color:"currentColor",viewBox:`0 0 ${O} ${O}`,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",class:e.className},[(0,r.bF)("title",null,[(0,r.eW)("Speech Recording")]),Array.from({length:M}).map((e,n)=>{const i=(O-I*M)/(M-1),o=n*(i+I),a=O/2-D/2,s=O/2-N/2;return(0,r.bF)("rect",{fill:"currentColor",rx:t,ry:t,height:D,width:I,x:o,y:a,key:n},[(0,r.bF)("animate",{attributeName:"height",values:`${D}; ${N}; ${D}`,keyTimes:"0; 0.5; 1",dur:`${R}s`,begin:R/M*n+"s",repeatCount:"indefinite"},null),(0,r.bF)("animate",{attributeName:"y",values:`${a}; ${s}; ${a}`,keyTimes:"0; 0.5; 1",dur:`${R}s`,begin:R/M*n+"s",repeatCount:"indefinite"},null)])})])}}),B=(0,r.pM)({name:"AXSenderSpeechButton",__name:"index",props:(0,r.HF)({prefixCls:null,type:null,htmlType:null,shape:null,size:null,loading:null,disabled:null,ghost:null,block:null,danger:null,icon:null,href:null,target:null,title:null,onClick:null,onMousedown:null,audioIcon:null,audioDisabledIcon:null,audioRecordingIcon:null},{type:"text",disabled:void 0,audioIcon:()=>(0,r.bF)(l.p,null,null),audioDisabledIcon:()=>(0,r.bF)(l.o,null,null),audioRecordingIcon:void 0}),setup(e){const t=(0,o.c)(e,["type","disabled","audioIcon","audioDisabledIcon","audioRecordingIcon"]),n=y(),{token:i}=C.A.useToken(),a=(0,r.EW)(()=>n.value.speechRecording),s=(0,r.EW)(()=>n.value.prefixCls),l=(0,r.EW)(()=>{let t;return t=a.value?e.audioRecordingIcon?e.audioRecordingIcon:(0,r.bF)(L,{className:`${s.value}-recording-icon`},null):n.value.onSpeechDisabled?e.audioDisabledIcon:e.audioIcon,t});return()=>(0,r.bF)(x,(0,r.v6)({type:e.type,disabled:e.disabled},t,{style:{display:"flex",justifyContent:"center",alignItems:"center",color:i.value.colorPrimary},action:"onSpeech"}),{default:()=>[l.value]})}});var P=n(40355),F=n(18436),$=n(90827);const j=e=>{const{componentCls:t,calc:n}=e,r=`${t}-header`;return{[t]:{[r]:{borderBottomWidth:e.lineWidth,borderBottomStyle:"solid",borderBottomColor:e.colorBorder,"&-header":{background:e.colorFillAlter,fontSize:e.fontSize,lineHeight:e.lineHeight,paddingBlock:n(e.paddingSM).sub(e.lineWidthBold).equal(),paddingInlineStart:e.padding,paddingInlineEnd:e.paddingXS,display:"flex",borderRadius:{_skip_check_:!0,value:n(e.borderRadius).mul(2).equal()},borderBottomRightRadius:0,borderBottomLeftRadius:0,[`${r}-title`]:{flex:"auto"}},"&-content":{padding:e.padding},"&-motion":{transition:["height","border"].map(t=>`${t} ${e.motionDurationSlow}`).join(","),overflow:"hidden","&-enter-start, &-leave-active":{borderBottomColor:"transparent"},"&-hidden":{display:"none"}}}}}},H=e=>{const{componentCls:t}=e,n=`${t}-transition-collapse`;return{[t]:{[n]:{"&-enter-active":{transition:["max-height","padding-top","padding-bottom"].map(t=>`${t} ${e.motionDurationSlow} ${e.motionEaseInOut}`).join(",")},"&-leave-active":{transition:["max-height","padding-top","padding-bottom"].map(t=>`${t} ${e.motionDurationSlow} ${e.motionEaseInOut}`).join(",")}}}}},U=e=>{const{componentCls:t,padding:n,paddingSM:r,paddingXS:i,paddingXXS:o,lineWidth:a,lineWidthBold:s,calc:l}=e;return{[t]:{position:"relative",width:"100%",boxSizing:"border-box",boxShadow:`${e.boxShadowTertiary}`,transition:`background ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:l(e.borderRadius).mul(2).equal()},borderColor:e.colorBorder,borderWidth:0,borderStyle:"solid","&:after":{content:'""',position:"absolute",inset:0,pointerEvents:"none",transition:`border-color ${e.motionDurationSlow}`,borderRadius:{_skip_check_:!0,value:"inherit"},borderStyle:"inherit",borderColor:"inherit",borderWidth:a},"&:focus-within":{boxShadow:`${e.boxShadowSecondary}`,borderColor:e.colorPrimary,"&:after":{borderWidth:s}},"&-disabled":{background:e.colorBgContainerDisabled},[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{display:"flex",gap:i,width:"100%",paddingBlock:r,paddingInlineStart:n,paddingInlineEnd:r,boxSizing:"border-box",alignItems:"flex-end"},[`${t}-prefix`]:{flex:"none"},[`${t}-input`]:{padding:0,borderRadius:0,flex:"auto",alignSelf:"center",minHeight:"auto"},[`${t}-actions-list`]:{flex:"none",display:"flex","&-presets":{gap:e.paddingXS}},[`${t}-actions-btn`]:{"&-disabled":{opacity:.45},"&-loading-button":{padding:0,border:0},"&-loading-icon":{height:e.controlHeight,width:e.controlHeight,verticalAlign:"top"},"&-recording-icon":{height:"1.2em",width:"1.2em",verticalAlign:"top"}},[`${t}-footer`]:{paddingInlineStart:n,paddingInlineEnd:r,paddingBlockEnd:r,paddingBlockStart:o,boxSizing:"border-box"}}}},Q=()=>({}),z=(0,$.OF)("Sender",e=>{const{paddingXS:t,calc:n}=e,r=(0,F.h1)(e,{SenderContentMaxWidth:`calc(100% - ${(0,P.zA)(n(t).add(32).equal())})`});return[U(r),j(r),H(r)]},Q);function W(e,t){const{defaultValue:n,value:o=(0,i.KR)()}=t||{};let a="function"==typeof e?e():e;void 0!==o.value&&(a=(0,i.R1)(o)),void 0!==n&&(a="function"==typeof n?n():n);const s=(0,i.KR)(a),l=(0,i.KR)(a);function c(e){const n=l.value;s.value=e,(0,i.ux)(l.value)!==e&&t.onChange&&t.onChange(e,n)}return(0,r.nT)(()=>{let e=void 0!==o.value?o.value:s.value;t.postState&&(e=t.postState(e)),l.value=e}),(0,r.wB)(o,()=>{s.value=o.value}),[l,c]}let G;function V(e,t){const n=e,o=(0,r.EW)(()=>{const e=(0,i.BA)(t);return"object"==typeof e?{controlledRecording:e.recording,onControlledRecordingChange:e.onRecordingChange,speechInControlled:"boolean"==typeof e.recording}:{controlledRecording:void 0,onControlledRecordingChange:void 0,speechInControlled:!1}}),a=(0,r.EW)(()=>o.value.controlledRecording),s=o.value.onControlledRecordingChange,l=o.value.speechInControlled,c=(0,i.KR)(null);(0,r.nT)(()=>{if(typeof navigator<"u"&&"permissions"in navigator){let e=null;navigator.permissions.query({name:"microphone"}).then(t=>{c.value=t.state,t.onchange=function(){c.value=this.state},e=t}),(0,i.ch)(()=>{e&&(e.onchange=null)})}});const u=(0,r.EW)(()=>G&&"denied"!==c.value),d=(0,i.KR)(null),[h,f]=W(!1,{value:a}),p=(0,i.KR)(!1),g=()=>{if(u.value&&!d.value){const e=new G;e.onstart=()=>{f(!0)},e.onend=()=>{f(!1)},e.onresult=e=>{var t,r,i;if(!p.value){const o=null==(i=null==(r=null==(t=e.results)?void 0:t[0])?void 0:r[0])?void 0:i.transcript;n(o)}p.value=!1},d.value=e}};return{speechPermission:u,triggerSpeech:e=>{e&&!h.value||(p.value=e,l?null==s||s(!h.value):(g(),d.value&&(h.value?(d.value.stop(),null==s||s(!1)):(d.value.start(),null==s||s(!0)))))},recording:h}}function K(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}!G&&typeof window<"u"&&(G=window.SpeechRecognition||window.webkitSpeechRecognition);var Y=n(3431);const q=(0,r.pM)({name:"AXSender",__name:"Sender",props:(0,r.HF)({onKeyPress:{type:Function},onFocus:null,onBlur:null,prefixCls:null,defaultValue:null,value:null,loading:{type:Boolean},placeholder:null,readOnly:{type:Boolean},submitType:{type:[String,Boolean]},disabled:{type:Boolean},onSubmit:{type:Function},onChange:{type:Function},onCancel:null,onKeyDown:{type:Function},onPaste:{type:Function},onPasteFile:{type:Function},components:null,styles:null,rootClassName:null,classNames:null,style:null,className:null,actions:{type:[Function,Boolean]},allowSpeech:null,prefix:{type:Function},footer:{type:Function},header:{type:Function},autoSize:null},{styles:()=>({}),classNames:()=>({}),submitType:"enter",actions:void 0,disabled:void 0,autoSize:()=>({maxRows:8})}),emits:["update:value"],setup(e,{expose:t,emit:n}){const d=(0,o.c)(e,["prefixCls","styles","classNames","className","rootClassName","style","defaultValue","value","placeholder","readOnly","submitType","onSubmit","loading","components","onCancel","onChange","actions","onKeyPress","onKeyDown","disabled","allowSpeech","prefix","footer","header","onPaste","onPasteFile","autoSize"]);function h(e,t,n){return K(e,t)||n}(0,i.lW)(e,"prefixCls");const f={SendButton:k,ClearButton:E,LoadingButton:T,SpeechButton:B},p=n,g=(0,r.Ht)(),{direction:v,getPrefixCls:A}=(0,Y.A)(),b=(0,r.EW)(()=>A("sender",e.prefixCls)),y=(0,i.KR)(null),_=(0,i.KR)(null),x=(0,u.A)("sender"),S=(0,r.EW)(()=>`${b.value}-input`),[C,O,M]=z(b.value),I=(0,r.EW)(()=>(0,l.b)(b.value,x.value.className,e.className,e.rootClassName,O.value,M,{[`${b.value}-rtl`]:"rtl"===v.value,[`${b.value}-disabled`]:e.disabled})),D=(0,r.EW)(()=>`${b.value}-actions-btn`),N=(0,r.EW)(()=>`${b.value}-actions-list`),R=(0,i.KR)(e.value??e.defaultValue??""),L=e=>{R.value=e};(0,r.wB)(()=>e.value,()=>{L(e.value)});const P=(t,n)=>{L(t),p("update:value",t),e.onChange&&e.onChange(t,n)},{speechPermission:F,triggerSpeech:$,recording:j}=V(e=>{P(`${R.value} ${e}`)},()=>e.allowSpeech),H=h(e.components,["input"],a.Ay.TextArea),U=(0,r.EW)(()=>(0,c.A)(d,{attr:!0,aria:!0,data:!0})),Q=(0,r.EW)(()=>({...U.value,ref:_})),W=()=>{R.value&&e.onSubmit&&!e.loading&&e.onSubmit(R.value)},G=()=>{P("")},q=(0,i.KR)(!1),X=()=>{q.value=!0},J=()=>{q.value=!1},Z=t=>{const n="Enter"===t.key&&!q.value;switch(e.submitType){case"enter":n&&!t.shiftKey&&(t.preventDefault(),W());break;case"shiftEnter":n&&t.shiftKey&&(t.preventDefault(),W());break}e.onKeyPress&&e.onKeyPress(t)},ee=t=>{var n,r;const i=null==(n=t.clipboardData)?void 0:n.files;null!=i&&i.length&&e.onPasteFile&&(e.onPasteFile(i[0],i),t.preventDefault()),null==(r=e.onPaste)||r.call(e,t)},te=e=>{var t,n;e.target!==(null==(t=y.value)?void 0:t.querySelector(`.${S.value}`))&&e.preventDefault(),null==(n=_.value)||n.focus()},ne=(0,r.EW)(()=>{let t=(0,r.bF)(s.A,{class:`${N.value}-presets`},{default:()=>[e.allowSpeech&&(0,r.bF)(B,"object"==typeof e.allowSpeech?{audioIcon:e.allowSpeech.audioIcon,audioDisabledIcon:e.allowSpeech.audioDisabledIcon,audioRecordingIcon:e.allowSpeech.audioRecordingIcon}:{},null),e.loading?(0,r.bF)(T,null,null):(0,r.bF)(k,null,null)]});const n={components:f};return g.actions?t=g.actions({ori:t,info:n}):"function"==typeof e.actions?t=e.actions(t,n):(e.actions||!1===e.actions)&&(t=e.actions),t}),re=(0,r.EW)(()=>({prefixCls:D.value,onSend:W,onSendDisabled:!R.value,onClear:G,onClearDisabled:!R.value,onCancel:e.onCancel,onCancelDisabled:!e.loading,onSpeech:()=>$(!1),onSpeechDisabled:!F.value,speechRecording:j.value,disabled:e.disabled})),ie=(0,r.EW)(()=>{let t=null;const n={components:f};return g.footer?t=g.footer({info:n}):"function"==typeof e.footer?t=e.footer({components:f}):e.footer&&(t=e.footer),t}),oe=(0,r.EW)(()=>g.header?g.header():"function"==typeof e.header?e.header():e.header),ae=(0,r.EW)(()=>g.prefix?g.prefix():"function"==typeof e.prefix?e.prefix():e.prefix);return t({nativeElement:y.value,focus:e=>{var t;return null==(t=_.value)?void 0:t.focus(e)},blur:()=>{var e;return null==(e=_.value)?void 0:e.blur()}}),()=>C((0,r.bF)("div",{ref:y,class:I.value,style:{...x.value.style,...e.style}},[oe.value&&(0,r.bF)(m,{value:{prefixCls:b.value}},{default:()=>[oe.value]}),(0,r.bF)(w,{value:re.value},{default:()=>[(0,r.bF)("div",{class:`${b.value}-content`,onMousedown:te},[ae.value&&(0,r.bF)("div",{class:(0,l.b)(`${b.value}-prefix`,x.value.classNames.prefix,e.classNames.prefix),style:{...x.value.styles.prefix,...e.styles.prefix}},[ae.value]),(0,r.bF)(H,(0,r.v6)(Q.value,{disabled:e.disabled,style:{...x.value.styles.input,...e.styles.input},class:(0,l.b)(S.value,x.value.classNames.input,e.classNames.input),autoSize:e.autoSize,value:R.value,onChange:e=>{P(e.target.value,e),$(!0)},onPressEnter:Z,onCompositionstart:X,onCompositionend:J,onKeydown:e.onKeyDown,placeholder:e.placeholder,onPaste:ee,bordered:!1,readOnly:e.readOnly}),null),ne.value&&(0,r.bF)("div",{class:(0,l.b)(N.value,x.value.classNames.actions,e.classNames.actions),style:{...x.value.styles.actions,...e.styles.actions}},[ne.value])]),ie.value&&(0,r.bF)("div",{class:(0,l.b)(`${b.value}-footer`,x.value.classNames.footer,e.classNames.footer),style:{...x.value.styles.footer,...e.styles.footer}},[ie.value])]})]))}});var X=n(45130);const J=(0,r.pM)({name:"AXTransitionCollapse",__name:"TransitionCollapse",props:{prefixCls:{default:"ax"}},setup(e){const t=e,n=(0,r.Ht)(),i=(0,r.EW)(()=>t.prefixCls+"-transition-collapse"),o={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.maxHeight="0",e.style.paddingTop="0",e.style.paddingBottom="0"},enter(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.maxHeight=`${e.scrollHeight}px`,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.maxHeight=`${e.dataset.oldMaxHeight||"999"}px`,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldMaxHeight=e.scrollHeight,e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.overflow="hidden",e.style.maxHeight=`${e.scrollHeight}px`},leave(e){0!==e.scrollHeight&&(e.style.maxHeight="0",e.style.paddingTop="0",e.style.paddingBottom="0")},afterLeave(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom}};return()=>(0,r.bF)(X.eB,{name:i.value,onBeforeEnter:o.beforeEnter,onEnter:o.enter,onAfterEnter:o.afterEnter,onBeforeLeave:o.beforeLeave,onLeave:o.leave,onAfterLeave:o.afterLeave},{default:()=>{var e;return[null==(e=n.default)?void 0:e.call(n)]}})}}),Z=(0,r.pM)({name:"AXSenderHeader",inheritAttrs:!1,__name:"SenderHeader",props:(0,r.HF)({forceRender:{type:Boolean},open:{type:Boolean},onOpenChange:{type:Function},title:null,children:null,className:null,style:null,classNames:null,styles:null,closable:{type:Boolean}},{classNames:()=>({}),styles:()=>({})}),setup(e){(0,i.lW)(e,"classNames");const t=(0,r.Ht)(),n=g(),o=(0,r.EW)(()=>`${n.value.prefixCls}-header`),a=(0,r.OA)();return()=>(0,r.bF)(J,{prefixCls:n.value.prefixCls},{default:()=>{var n;return[e.open||e.forceRender?(0,r.bo)((0,r.bF)("div",(0,r.v6)(a,{class:(0,l.b)(o.value,e.className),style:{...e.style}}),[(!1!==e.closable||e.title)&&(0,r.bF)("div",{class:(0,l.b)(`${o.value}-header`,e.classNames.header),style:{...e.styles.header}},[(0,r.bF)("div",{class:`${o.value}-title`},[e.title]),!1!==e.closable&&(0,r.bF)("div",{class:`${o.value}-close`},[(0,r.bF)(_.A,{type:"text",icon:(0,r.bF)(l.l,null,null),size:"small",onClick:()=>{var t;null==(t=e.onOpenChange)||t.call(e,!e.open)}},null)])]),t.default&&(0,r.bF)("div",{class:(0,l.b)(`${o.value}-content`,e.classNames.content),style:{...e.styles.content}},[null==(n=t.default)?void 0:n.call(t)])]),[[X.aG,e.open]]):null]}})}}),ee=Object.assign(q,{Header:Z});ee.install=function(e){return e.component(ee.name,ee),e.component(Z.name,Z),e}},23966:function(e,t,n){"use strict";n.d(t,{A:function(){return w}});n(44114),n(18111),n(22489),n(7588),n(61701);var r=n(51137),i=n(56768),o=n(90144),a=n(41034),s=n(45130),l=n(69998),c=n(51589),u=n(49974),d=n(72928);let h=0;const f=Date.now();function p(){const e=h;return h+=1,`rcNotification_${f}_${e}`}const g=(0,i.pM)({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:n,slots:h}=t;const f=new Map,p=(0,i.EW)(()=>e.notices),g=(0,i.EW)(()=>{let t=e.transitionName;if(!t&&e.animation)switch(typeof e.animation){case"string":t=e.animation;break;case"function":t=e.animation().name;break;case"object":t=e.animation.name;break;default:t=`${e.prefixCls}-fade`;break}return(0,c.zg)(t)}),m=t=>e.remove(t),v=(0,o.KR)({});(0,i.wB)(p,()=>{const t={};Object.keys(v.value).forEach(e=>{t[e]=[]}),e.notices.forEach(e=>{const{placement:n="topRight"}=e.notice;n&&(t[n]=t[n]||[],t[n].push(e))}),v.value=t});const A=(0,i.EW)(()=>Object.keys(v.value));return()=>{var t;const{prefixCls:o,closeIcon:c=(null===(t=h.closeIcon)||void 0===t?void 0:t.call(h,{prefixCls:o}))}=e,b=A.value.map(t=>{var d,h;const A=v.value[t],b=null===(d=e.getClassName)||void 0===d?void 0:d.call(e,t),y=null===(h=e.getStyles)||void 0===h?void 0:h.call(e,t),w=A.map((t,n)=>{let{notice:s,holderCallback:d}=t;const h=n===p.value.length-1?s.updateMark:void 0,{key:g,userPassKey:v}=s,{content:A}=s,b=(0,r.A)((0,r.A)((0,r.A)({prefixCls:o,closeIcon:"function"===typeof c?c({prefixCls:o}):c},s),s.props),{key:g,noticeKey:v||g,updateMark:h,onClose:e=>{var t;m(e),null===(t=s.onClose)||void 0===t||t.call(s)},onClick:s.onClick});return d?(0,i.bF)("div",{key:g,class:`${o}-hook-holder`,ref:e=>{"undefined"!==typeof g&&(e?(f.set(g,e),d(e,b)):f.delete(g))}},null):(0,i.bF)(l.A,(0,a.A)((0,a.A)({},b),{},{class:(0,u.A)(b.class,e.hashId)}),{default:()=>["function"===typeof A?A({prefixCls:o}):A]})}),_={[o]:1,[`${o}-${t}`]:1,[n.class]:!!n.class,[e.hashId]:!0,[b]:!!b};function x(){var n;A.length>0||(Reflect.deleteProperty(v.value,t),null===(n=e.onAllRemoved)||void 0===n||n.call(e))}return(0,i.bF)("div",{key:t,class:_,style:n.style||y||{top:"65px",left:"50%"}},[(0,i.bF)(s.F,(0,a.A)((0,a.A)({tag:"div"},g.value),{},{onAfterLeave:x}),{default:()=>[w]})])});return(0,i.bF)(d.A,{getContainer:e.getContainer},{default:()=>[b]})}}});var m=g,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const A=()=>document.body;let b=0;function y(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(t=>{t&&Object.keys(t).forEach(n=>{const r=t[n];void 0!==r&&(e[n]=r)})}),e}function w(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{getContainer:t=A,motion:n,prefixCls:a,maxCount:s,getClassName:l,getStyles:c,onAllRemoved:u}=e,d=v(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),h=(0,o.IJ)([]),f=(0,o.IJ)(),g=(e,t)=>{const n=e.key||p(),i=(0,r.A)((0,r.A)({},e),{key:n}),o=h.value.map(e=>e.notice.key).indexOf(n),a=h.value.concat();-1!==o?a.splice(o,1,{notice:i,holderCallback:t}):(s&&h.value.length>=s&&(i.key=a[0].notice.key,i.updateMark=p(),i.userPassKey=n,a.shift()),a.push({notice:i,holderCallback:t})),h.value=a},w=e=>{h.value=h.value.filter(t=>{let{notice:{key:n,userPassKey:r}}=t;const i=r||n;return i!==e})},_=()=>{h.value=[]},x=()=>(0,i.bF)(m,{ref:f,prefixCls:a,maxCount:s,notices:h.value,remove:w,getClassName:l,getStyles:c,animation:n,hashId:e.hashId,onAllRemoved:u,getContainer:t},null),E=(0,o.IJ)([]),S={open:e=>{const t=y(d,e);null!==t.key&&void 0!==t.key||(t.key=`vc-notification-${b}`,b+=1),E.value=[...E.value,{type:"open",config:t}]},close:e=>{E.value=[...E.value,{type:"close",key:e}]},destroy:()=>{E.value=[...E.value,{type:"destroy"}]}};return(0,i.wB)(E,()=>{E.value.length&&(E.value.forEach(e=>{switch(e.type){case"open":g(e.config);break;case"close":w(e.key);break;case"destroy":_();break}}),E.value=[])}),[S,x]}},24107:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});n(44114),n(18111),n(22489),n(7588),n(61701),n(18237);function r(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}class i{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={map:this.cache};return e.forEach(e=>{var t;n=n?null===(t=null===n||void 0===n?void 0:n.map)||void 0===t?void 0:t.get(e):void 0}),(null===n||void 0===n?void 0:n.value)&&t&&(n.value[1]=this.cacheCallTimes++),null===n||void 0===n?void 0:n.value}get(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}has(e){return!!this.internalGet(e)}set(e,t){if(!this.has(e)){if(this.size()+1>i.MAX_CACHE_SIZE+i.MAX_CACHE_OFFSET){const[e]=this.keys.reduce((e,t)=>{const[,n]=e;return this.internalGet(t)[1]<n?[t,this.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(e)}let n=this.cache;e.forEach((r,i)=>{if(i===e.length-1)n.set(r,{value:[t,this.cacheCallTimes++]});else{const e=n.get(r);e?e.map||(e.map=new Map):n.set(r,{map:new Map}),n=n.get(r).map}})}deleteByPath(e,t){var n;const r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];const i=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),i}delete(e){if(this.has(e))return this.keys=this.keys.filter(t=>!r(t,e)),this.deleteByPath(this.cache,e)}}i.MAX_CACHE_SIZE=20,i.MAX_CACHE_OFFSET=5;var o=n(64739);const a=new i;function s(e){const t=Array.isArray(e)?e:[e];return a.has(t)||a.set(t,new o.A(t)),a.get(t)}},24149:function(e){"use strict";var t=RangeError;e.exports=function(e){if(e===e)return e;throw new t("NaN is not allowed")}},24232:function(e,t,n){"use strict";n.d(t,{$3:function(){return f},$H:function(){return P},BH:function(){return W},BX:function(){return re},Bm:function(){return w},C4:function(){return X},CE:function(){return g},CP:function(){return c},DY:function(){return F},Gv:function(){return _},J$:function(){return ee},Kg:function(){return y},MZ:function(){return i},Mp:function(){return l},NO:function(){return s},Oj:function(){return o},PT:function(){return D},Qd:function(){return T},Ro:function(){return H},SU:function(){return O},TF:function(){return d},Tg:function(){return R},Tn:function(){return b},Tr:function(){return G},We:function(){return Q},X$:function(){return u},Y2:function(){return te},ZH:function(){return L},Zf:function(){return C},_B:function(){return J},bB:function(){return j},cy:function(){return p},gd:function(){return A},pD:function(){return r},rU:function(){return B},tE:function(){return a},u3:function(){return ie},vM:function(){return m},v_:function(){return ae},yI:function(){return k},yL:function(){return x},yQ:function(){return $}});n(44114),n(18111),n(22489),n(7588);
/**
* @vue/shared v3.5.22
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
function r(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const i={},o=[],a=()=>{},s=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),u=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},h=Object.prototype.hasOwnProperty,f=(e,t)=>h.call(e,t),p=Array.isArray,g=e=>"[object Map]"===S(e),m=e=>"[object Set]"===S(e),v=e=>"[object Date]"===S(e),A=e=>"[object RegExp]"===S(e),b=e=>"function"===typeof e,y=e=>"string"===typeof e,w=e=>"symbol"===typeof e,_=e=>null!==e&&"object"===typeof e,x=e=>(_(e)||b(e))&&b(e.then)&&b(e.catch),E=Object.prototype.toString,S=e=>E.call(e),C=e=>S(e).slice(8,-1),T=e=>"[object Object]"===S(e),k=e=>y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,O=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),M=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},I=/-\w/g,D=M(e=>e.replace(I,e=>e.slice(1).toUpperCase())),N=/\B([A-Z])/g,R=M(e=>e.replace(N,"-$1").toLowerCase()),L=M(e=>e.charAt(0).toUpperCase()+e.slice(1)),B=M(e=>{const t=e?`on${L(e)}`:"";return t}),P=(e,t)=>!Object.is(e,t),F=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},$=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},j=e=>{const t=parseFloat(e);return isNaN(t)?e:t},H=e=>{const t=y(e)?Number(e):NaN;return isNaN(t)?e:t};let U;const Q=()=>U||(U="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{});const z="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",W=r(z);function G(e){if(p(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=y(r)?q(r):G(r);if(i)for(const e in i)t[e]=i[e]}return t}if(y(e)||_(e))return e}const V=/;(?![^(]*\))/g,K=/:([^]+)/,Y=/\/\*[^]*?\*\//g;function q(e){const t={};return e.replace(Y,"").split(V).forEach(e=>{if(e){const n=e.split(K);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function X(e){let t="";if(y(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){const r=X(e[n]);r&&(t+=r+" ")}else if(_(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function J(e){if(!e)return null;let{class:t,style:n}=e;return t&&!y(t)&&(e.class=X(t)),n&&(e.style=G(n)),e}const Z="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ee=r(Z);function te(e){return!!e||""===e}function ne(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=re(e[r],t[r]);return n}function re(e,t){if(e===t)return!0;let n=v(e),r=v(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=w(e),r=w(t),n||r)return e===t;if(n=p(e),r=p(t),n||r)return!(!n||!r)&&ne(e,t);if(n=_(e),r=_(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const n in e){const r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!re(e[n],t[n]))return!1}}return String(e)===String(t)}function ie(e,t){return e.findIndex(e=>re(e,t))}const oe=e=>!(!e||!0!==e["__v_isRef"]),ae=e=>y(e)?e:null==e?"":p(e)||_(e)&&(e.toString===E||!b(e.toString))?oe(e)?ae(e.value):JSON.stringify(e,se,2):String(e),se=(e,t)=>oe(t)?se(e,t.value):g(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[le(t,r)+" =>"]=n,e),{})}:m(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>le(e))}:w(t)?le(t):!_(t)||p(t)||T(t)?t:String(t),le=(e,t="")=>{var n;return w(e)?`Symbol(${null!=(n=e.description)?n:t})`:e}},24389:function(e,t,n){"use strict";n(44114);var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function l(e,t){0===--e._eventsCount?e._events=new o:delete e._events[t]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),c.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},c.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a},c.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,r,o,a){var s=i?i+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,o),!0;case 6:return u.fn.call(u.context,t,n,r,o,a),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,r);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];u[c].fn.apply(u[c].context,l)}}return!0},c.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,r){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return l(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||l(this,o);else{for(var s=0,c=[],u=a.length;s<u;s++)(a[s].fn!==t||r&&!a[s].once||n&&a[s].context!==n)&&c.push(a[s]);c.length?this._events[o]=1===c.length?c[0]:c:l(this,o)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&l(this,t)):(this._events=new o,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=i,c.EventEmitter=c,e.exports=c},24406:function(e){function t(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}e.exports=t},24477:function(e){function t(e){const t=e.regex,n=/[a-zA-Z_][a-zA-Z0-9_]*/,r={className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},i=["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"];return{name:"Tcl",aliases:["tk"],keywords:i,contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:t.concat(/\$/,t.optional(/::/),n,"(::",n,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[r]}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},r]}}e.exports=t},24569:function(e,t,n){function r(e){return e?"string"===typeof e?e:e.source:null}function i(e){return o("(?=",e,")")}function o(...e){const t=e.map(e=>r(e)).join("");return t}function a(e){const t=e[e.length-1];return"object"===typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function s(...e){const t=a(e),n="("+(t.capture?"":"?:")+e.map(e=>r(e)).join("|")+")";return n}n(44114),n(18111),n(20116),n(61701);const l=e=>o(/\b/,e,/\w$/.test(e)?/\b/:/\B/),c=["Protocol","Type"].map(l),u=["init","self"].map(l),d=["Any","Self"],h=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],f=["false","nil","true"],p=["assignment","associativity","higherThan","left","lowerThan","none","right"],g=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],m=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],v=s(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),A=s(v,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),b=o(v,A,"*"),y=s(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),w=s(y,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),_=o(y,w,"*"),x=o(/[A-Z]/,w,"*"),E=["attached","autoclosure",o(/convention\(/,s("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",o(/objc\(/,_,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],S=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function C(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],a={match:[/\./,s(...c,...u)],className:{2:"keyword"}},v={match:o(/\./,s(...h)),relevance:0},y=h.filter(e=>"string"===typeof e).concat(["_|0"]),C=h.filter(e=>"string"!==typeof e).concat(d).map(l),T={variants:[{className:"keyword",match:s(...C,...u)}]},k={$pattern:s(/\b\w+/,/#\w+/),keyword:y.concat(g),literal:f},O=[a,v,T],M={match:o(/\./,s(...m)),relevance:0},I={className:"built_in",match:o(/\b/,s(...m),/(?=\()/)},D=[M,I],N={match:/->/,relevance:0},R={className:"operator",relevance:0,variants:[{match:b},{match:`\\.(\\.|${A})+`}]},L=[N,R],B="([0-9]_*)+",P="([0-9a-fA-F]_*)+",F={className:"number",relevance:0,variants:[{match:`\\b(${B})(\\.(${B}))?([eE][+-]?(${B}))?\\b`},{match:`\\b0x(${P})(\\.(${P}))?([pP][+-]?(${B}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},$=(e="")=>({className:"subst",variants:[{match:o(/\\/,e,/[0\\tnr"']/)},{match:o(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),j=(e="")=>({className:"subst",match:o(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),H=(e="")=>({className:"subst",label:"interpol",begin:o(/\\/,e,/\(/),end:/\)/}),U=(e="")=>({begin:o(e,/"""/),end:o(/"""/,e),contains:[$(e),j(e),H(e)]}),Q=(e="")=>({begin:o(e,/"/),end:o(/"/,e),contains:[$(e),H(e)]}),z={className:"string",variants:[U(),U("#"),U("##"),U("###"),Q(),Q("#"),Q("##"),Q("###")]},W=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],G={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:W},V=e=>{const t=o(e,/\//),n=o(/\//,e);return{begin:t,end:n,contains:[...W,{scope:"comment",begin:`#(?!.*${n})`,end:/$/}]}},K={scope:"regexp",variants:[V("###"),V("##"),V("#"),G]},Y={match:o(/`/,_,/`/)},q={className:"variable",match:/\$\d+/},X={className:"variable",match:`\\$${w}+`},J=[Y,q,X],Z={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:S,contains:[...L,F,z]}]}},ee={scope:"keyword",match:o(/@/,s(...E),i(s(/\(/,/\s+/)))},te={scope:"meta",match:o(/@/,_)},ne=[Z,ee,te],re={match:i(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:o(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,w,"+")},{className:"type",match:x,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:o(/\s+&\s+/,i(x)),relevance:0}]},ie={begin:/</,end:/>/,keywords:k,contains:[...r,...O,...ne,N,re]};re.contains.push(ie);const oe={match:o(_,/\s*:/),keywords:"_|0",relevance:0},ae={begin:/\(/,end:/\)/,relevance:0,keywords:k,contains:["self",oe,...r,K,...O,...D,...L,F,z,...J,...ne,re]},se={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,re]},le={begin:s(i(o(_,/\s*:/)),i(o(_,/\s+/,_,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:_}]},ce={begin:/\(/,end:/\)/,keywords:k,contains:[le,...r,...O,...L,F,z,...ne,re,ae],endsParent:!0,illegal:/["']/},ue={match:[/(func|macro)/,/\s+/,s(Y.match,_,b)],className:{1:"keyword",3:"title.function"},contains:[se,ce,t],illegal:[/\[/,/%/]},de={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[se,ce,t],illegal:/\[|%/},he={match:[/operator/,/\s+/,b],className:{1:"keyword",3:"title"}},fe={begin:[/precedencegroup/,/\s+/,x],className:{1:"keyword",3:"title"},contains:[re],keywords:[...p,...f],end:/}/},pe={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},ge={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},me={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,_,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:k,contains:[se,...O,{begin:/:/,end:/\{/,keywords:k,contains:[{scope:"title.class.inherited",match:x},...O],relevance:0}]};for(const i of z.variants){const e=i.contains.find(e=>"interpol"===e.label);e.keywords=k;const t=[...O,...D,...L,F,z,...J];e.contains=[...t,{begin:/\(/,end:/\)/,contains:["self",...t]}]}return{name:"Swift",keywords:k,contains:[...r,ue,de,pe,ge,me,he,fe,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},K,...O,...D,...L,F,z,...J,...ne,re,ae]}}e.exports=C},24659:function(e,t,n){"use strict";var r=n(79039),i=n(6980);e.exports=!r(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)})},24913:function(e,t,n){"use strict";var r=n(43724),i=n(35917),o=n(48686),a=n(28551),s=n(56969),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",f="writable";t.f=r?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"===typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=u(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:d in n?n[d]:r[d],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return c(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},24923:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});n(18111),n(7588),n(44114);function r(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function i(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function o(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return i(n.overflowY,t)||i(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function a(e,t,n,r,i,o,a,s){return o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0}var s=function(e,t){var n=window,i=t.scrollMode,s=t.block,l=t.inline,c=t.boundary,u=t.skipOverflowHiddenElements,d="function"==typeof c?c:function(e){return e!==c};if(!r(e))throw new TypeError("Invalid target");for(var h,f,p=document.scrollingElement||document.documentElement,g=[],m=e;r(m)&&d(m);){if((m=null==(f=(h=m).parentElement)?h.getRootNode().host||null:f)===p){g.push(m);break}null!=m&&m===document.body&&o(m)&&!o(document.documentElement)||null!=m&&o(m,u)&&g.push(m)}for(var v=n.visualViewport?n.visualViewport.width:innerWidth,A=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,w=e.getBoundingClientRect(),_=w.height,x=w.width,E=w.top,S=w.right,C=w.bottom,T=w.left,k="start"===s||"nearest"===s?E:"end"===s?C:E+_/2,O="center"===l?T+x/2:"end"===l?S:T,M=[],I=0;I<g.length;I++){var D=g[I],N=D.getBoundingClientRect(),R=N.height,L=N.width,B=N.top,P=N.right,F=N.bottom,$=N.left;if("if-needed"===i&&E>=0&&T>=0&&C<=A&&S<=v&&E>=B&&C<=F&&T>=$&&S<=P)return M;var j=getComputedStyle(D),H=parseInt(j.borderLeftWidth,10),U=parseInt(j.borderTopWidth,10),Q=parseInt(j.borderRightWidth,10),z=parseInt(j.borderBottomWidth,10),W=0,G=0,V="offsetWidth"in D?D.offsetWidth-D.clientWidth-H-Q:0,K="offsetHeight"in D?D.offsetHeight-D.clientHeight-U-z:0,Y="offsetWidth"in D?0===D.offsetWidth?0:L/D.offsetWidth:0,q="offsetHeight"in D?0===D.offsetHeight?0:R/D.offsetHeight:0;if(p===D)W="start"===s?k:"end"===s?k-A:"nearest"===s?a(y,y+A,A,U,z,y+k,y+k+_,_):k-A/2,G="start"===l?O:"center"===l?O-v/2:"end"===l?O-v:a(b,b+v,v,H,Q,b+O,b+O+x,x),W=Math.max(0,W+y),G=Math.max(0,G+b);else{W="start"===s?k-B-U:"end"===s?k-F+z+K:"nearest"===s?a(B,F,R,U,z+K,k,k+_,_):k-(B+R/2)+K/2,G="start"===l?O-$-H:"center"===l?O-($+L/2)+V/2:"end"===l?O-P+Q+V:a($,P,L,H,Q+V,O,O+x,x);var X=D.scrollLeft,J=D.scrollTop;k+=J-(W=Math.max(0,Math.min(J+W/q,D.scrollHeight-R/q+K))),O+=X-(G=Math.max(0,Math.min(X+G/Y,D.scrollWidth-L/Y+V)))}M.push({el:D,top:W,left:G})}return M};function l(e){return e===Object(e)&&0!==Object.keys(e).length}function c(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(e){var r=e.el,i=e.top,o=e.left;r.scroll&&n?r.scroll({top:i,left:o,behavior:t}):(r.scrollTop=i,r.scrollLeft=o)})}function u(e){return!1===e?{block:"end",inline:"nearest"}:l(e)?e:{block:"start",inline:"nearest"}}function d(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(l(t)&&"function"===typeof t.behavior)return t.behavior(n?s(e,t):[]);if(n){var r=u(t);return c(s(e,r),r.behavior)}}var h=d},24961:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="MenuUnfoldOutlined",c.inheritAttrs=!1;var u=c},25046:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="EditOutlined",c.inheritAttrs=!1;var u=c},25056:function(e,t,n){function r(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),r=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],i={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},o={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},s={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},l={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},c={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/},u={match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:r},contains:[n,t,u,o,a,i,e.QUOTE_STRING_MODE,l,c,s]}}n(44114),e.exports=r},25099:function(e,t,n){"use strict";n(18111),n(7588),n(64979);var r=n(38809),i=n(62963),o=n(18257),a=n(30113),s=n(21372),l=n(70615),c=n(34811),u=n(52528),d=n(22228),h=n(36409);e.exports=function(e){return new Promise(function(t,n){var f,p=e.data,g=e.headers,m=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}r.isFormData(p)&&delete g["Content-Type"];var A=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(b+":"+y)}var w=s(e.baseURL,e.url);function _(){if(A){var r="getAllResponseHeaders"in A?l(A.getAllResponseHeaders()):null,o=m&&"text"!==m&&"json"!==m?A.response:A.responseText,a={data:o,status:A.status,statusText:A.statusText,headers:r,config:e,request:A};i(function(e){t(e),v()},function(e){n(e),v()},a),A=null}}if(A.open(e.method.toUpperCase(),a(w,e.params,e.paramsSerializer),!0),A.timeout=e.timeout,"onloadend"in A?A.onloadend=_:A.onreadystatechange=function(){A&&4===A.readyState&&(0!==A.status||A.responseURL&&0===A.responseURL.indexOf("file:"))&&setTimeout(_)},A.onabort=function(){A&&(n(u("Request aborted",e,"ECONNABORTED",A)),A=null)},A.onerror=function(){n(u("Network Error",e,null,A)),A=null},A.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",A)),A=null},r.isStandardBrowserEnv()){var x=(e.withCredentials||c(w))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;x&&(g[e.xsrfHeaderName]=x)}"setRequestHeader"in A&&r.forEach(g,function(e,t){"undefined"===typeof p&&"content-type"===t.toLowerCase()?delete g[t]:A.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(A.withCredentials=!!e.withCredentials),m&&"json"!==m&&(A.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&A.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&A.upload&&A.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){A&&(n(!e||e&&e.type?new h("canceled"):e),A.abort(),A=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),p||(p=null),A.send(p)})}},25170:function(e,t,n){"use strict";var r=n(46706),i=n(94402);e.exports=r(i.proto,"size","get")||function(e){return e.size}},25393:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n(44114),e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var o={};if("string"!==typeof e||0===e.length)return o;var a=/\+/g;e=e.split(t);var s=1e3;i&&"number"===typeof i.maxKeys&&(s=i.maxKeys);var l=e.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var u,d,h,f,p=e[c].replace(a,"%20"),g=p.indexOf(n);g>=0?(u=p.substr(0,g),d=p.substr(g+1)):(u=p,d=""),h=decodeURIComponent(u),f=decodeURIComponent(d),r(o,h)?Array.isArray(o[h])?o[h].push(f):o[h]=[o[h],f]:o[h]=f}return o}},25397:function(e,t,n){"use strict";var r=n(47055),i=n(67750);e.exports=function(e){return r(i(e))}},25508:function(e){function t(e){const t="(_?[ui](8|16|32|64|128))?",n="(_?f(32|64))?",r="[a-zA-Z_]\\w*[!?=]?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",o="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",a={$pattern:r,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},s={className:"subst",begin:/#\{/,end:/\}/,keywords:a},l={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},c={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:a};function u(e,t){const n=[{begin:e,end:t}];return n[0].contains=n,n}const d={className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:u("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},h={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%q<",end:">",contains:u("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},f={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},p={className:"regexp",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:"%r\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%r<",end:">",contains:u("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},g={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},m=[c,d,h,p,f,g,l,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:o})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[d,{begin:i}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+n+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+t}],relevance:0}];return s.contains=m,c.contains=m.slice(1),{name:"Crystal",aliases:["cr"],keywords:a,contains:m}}e.exports=t},25644:function(e,t,n){"use strict";var r=n(11591),i=n(69092),o=n(22799),a="[object Object]",s=Function.prototype,l=Object.prototype,c=s.toString,u=l.hasOwnProperty,d=c.call(Object);function h(e){if(!(0,o.A)(e)||(0,r.A)(e)!=a)return!1;var t=(0,i.A)(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}t.A=h},25654:function(e,t,n){"use strict";n.d(t,{A:function(){return S}});n(18111),n(61701);var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(95572),l=n(49974),c=n(81425);const u=Symbol("OverflowContextProviderKey"),d=(0,o.pM)({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return(0,o.Gt)(u,(0,o.EW)(()=>e.value)),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),h=()=>(0,o.WQ)(u,(0,o.EW)(()=>null));var f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const p=void 0;var g=(0,o.pM)({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:c.A.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:c.A.any,invalidate:Boolean},setup(e,t){let{slots:n,expose:i}=t;const c=(0,o.EW)(()=>e.responsive&&!e.display),u=(0,a.KR)();function d(t){e.registerSize(e.itemKey,t)}return i({itemNodeRef:u}),(0,o.hi)(()=>{d(null)}),()=>{var t;const{prefixCls:i,invalidate:a,item:h,renderItem:g,responsive:m,registerSize:v,itemKey:A,display:b,order:y,component:w="div"}=e,_=f(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),x=null===(t=n.default)||void 0===t?void 0:t.call(n),E=g&&h!==p?g(h):x;let S;a||(S={opacity:c.value?0:1,height:c.value?0:p,overflowY:c.value?"hidden":p,order:m?y:p,pointerEvents:c.value?"none":p,position:c.value?"absolute":p});const C={};return c.value&&(C["aria-hidden"]=!0),(0,o.bF)(s.A,{disabled:!m,onResize:e=>{let{offsetWidth:t}=e;d(t)}},{default:()=>(0,o.bF)(w,(0,r.A)((0,r.A)((0,r.A)({class:(0,l.A)(!a&&i),style:S},C),_),{},{ref:u}),{default:()=>[E]})})}}}),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},v=(0,o.pM)({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:c.A.any,title:c.A.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},role:String,tabindex:Number},setup(e,t){let{slots:n,attrs:i}=t;const a=h();return()=>{var t;if(!a.value){const{component:a="div"}=e,s=m(e,["component"]);return(0,o.bF)(a,(0,r.A)((0,r.A)({},s),i),{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]})}const s=a.value,{className:c}=s,u=m(s,["className"]),{class:h}=i,f=m(i,["class"]);return(0,o.bF)(d,{value:null},{default:()=>[(0,o.bF)(g,(0,r.A)((0,r.A)((0,r.A)({class:(0,l.A)(c,h)},u),f),e),n)]})}}}),A=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const b="responsive",y="invalidate";function w(e){return`+ ${e.length} ...`}const _=()=>({id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:c.A.any,component:String,itemComponent:c.A.any,onVisibleChange:Function,ssr:String,onMousedown:Function,role:String}),x=(0,o.pM)({name:"Overflow",inheritAttrs:!1,props:_(),emits:["visibleChange"],setup(e,t){let{attrs:n,emit:c,slots:u}=t;const h=(0,o.EW)(()=>"full"===e.ssr),f=(0,a.IJ)(null),p=(0,o.EW)(()=>f.value||0),m=(0,a.IJ)(new Map),v=(0,a.IJ)(0),_=(0,a.IJ)(0),x=(0,a.IJ)(0),E=(0,a.IJ)(null),S=(0,a.IJ)(null),C=(0,o.EW)(()=>null===S.value&&h.value?Number.MAX_SAFE_INTEGER:S.value||0),T=(0,a.IJ)(!1),k=(0,o.EW)(()=>`${e.prefixCls}-item`),O=(0,o.EW)(()=>Math.max(v.value,_.value)),M=(0,o.EW)(()=>!(!e.data.length||e.maxCount!==b)),I=(0,o.EW)(()=>e.maxCount===y),D=(0,o.EW)(()=>M.value||"number"===typeof e.maxCount&&e.data.length>e.maxCount),N=(0,o.EW)(()=>{let t=e.data;return M.value?t=null===f.value&&h.value?e.data:e.data.slice(0,Math.min(e.data.length,p.value/e.itemWidth)):"number"===typeof e.maxCount&&(t=e.data.slice(0,e.maxCount)),t}),R=(0,o.EW)(()=>M.value?e.data.slice(C.value+1):e.data.slice(N.value.length)),L=(t,n)=>{var r;return"function"===typeof e.itemKey?e.itemKey(t):null!==(r=e.itemKey&&(null===t||void 0===t?void 0:t[e.itemKey]))&&void 0!==r?r:n},B=(0,o.EW)(()=>e.renderItem||(e=>e)),P=(t,n)=>{S.value=t,n||(T.value=t<e.data.length-1,c("visibleChange",t))},F=(e,t)=>{f.value=t.clientWidth},$=(e,t)=>{const n=new Map(m.value);null===t?n.delete(e):n.set(e,t),m.value=n},j=(e,t)=>{v.value=_.value,_.value=t},H=(e,t)=>{x.value=t},U=e=>m.value.get(L(N.value[e],e));return(0,o.wB)([p,m,_,x,()=>e.itemKey,N],()=>{if(p.value&&O.value&&N.value){let t=x.value;const n=N.value.length,r=n-1;if(!n)return P(0),void(E.value=null);for(let e=0;e<n;e+=1){const n=U(e);if(void 0===n){P(e-1,!0);break}if(t+=n,0===r&&t<=p.value||e===r-1&&t+U(r)<=p.value){P(r),E.value=null;break}if(t+O.value>p.value){P(e-1),E.value=t-n-x.value+_.value;break}}e.suffix&&U(0)+x.value>p.value&&(E.value=null)}}),()=>{const t=T.value&&!!R.value.length,{itemComponent:a,renderRawItem:c,renderRawRest:h,renderRest:f,prefixCls:p="rc-overflow",suffix:m,component:v="div",id:b,onMousedown:y}=e,{class:_,style:x}=n,S=A(n,["class","style"]);let O={};null!==E.value&&M.value&&(O={position:"absolute",left:`${E.value}px`,top:0});const P={prefixCls:k.value,responsive:M.value,component:a,invalidate:I.value},U=c?(e,t)=>{const n=L(e,t);return(0,o.bF)(d,{key:n,value:(0,i.A)((0,i.A)({},P),{order:t,item:e,itemKey:n,registerSize:$,display:t<=C.value})},{default:()=>[c(e,t)]})}:(e,t)=>{const n=L(e,t);return(0,o.bF)(g,(0,r.A)((0,r.A)({},P),{},{order:t,key:n,item:e,renderItem:B.value,itemKey:n,registerSize:$,display:t<=C.value}),null)};let Q=()=>null;const z={order:t?C.value:Number.MAX_SAFE_INTEGER,className:`${k.value} ${k.value}-rest`,registerSize:j,display:t};if(h)h&&(Q=()=>(0,o.bF)(d,{value:(0,i.A)((0,i.A)({},P),z)},{default:()=>[h(R.value)]}));else{const e=f||w;Q=()=>(0,o.bF)(g,(0,r.A)((0,r.A)({},P),z),{default:()=>"function"===typeof e?e(R.value):e})}const W=()=>{var t;return(0,o.bF)(v,(0,r.A)({id:b,class:(0,l.A)(!I.value&&p,_),style:x,onMousedown:y,role:e.role},S),{default:()=>[N.value.map(U),D.value?Q():null,m&&(0,o.bF)(g,(0,r.A)((0,r.A)({},P),{},{order:C.value,class:`${k.value}-suffix`,registerSize:H,display:!0,style:O}),{default:()=>m}),null===(t=u.default)||void 0===t?void 0:t.call(u)]})};return(0,o.bF)(s.A,{disabled:!M.value,onResize:F},{default:W})}}});x.Item=v,x.RESPONSIVE=b,x.INVALIDATE=y;var E=x,S=E},25738:function(e,t,n){"use strict";n.d(t,{Ay:function(){return b}});n(18111),n(61701);var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(37890),l=n(44832),c=n(98684);const u=()=>null;u.isSelectOption=!0,u.displayName="AAutoCompleteOption";var d=u;const h=()=>null;h.isSelectOptGroup=!0,h.displayName="AAutoCompleteOptGroup";var f=h,p=n(55107),g=n(60674);function m(e){var t,n;return(null===(t=null===e||void 0===e?void 0:e.type)||void 0===t?void 0:t.isSelectOption)||(null===(n=null===e||void 0===e?void 0:e.type)||void 0===n?void 0:n.isSelectOptGroup)}const v=()=>(0,i.A)((0,i.A)({},(0,p.A)((0,s.nT)(),["loading","mode","optionLabelProp","labelInValue"])),{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0},status:String}),A=(0,o.pM)({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:v(),slots:Object,setup(e,t){let{slots:n,attrs:u,expose:h}=t;(0,c.Ay)(!("dataSource"in n),"AutoComplete","`dataSource` slot is deprecated, please use props `options` instead."),(0,c.Ay)(!("options"in n),"AutoComplete","`options` slot is deprecated, please use props `options` instead."),(0,c.Ay)(!e.dropdownClassName,"AutoComplete","`dropdownClassName` is deprecated, please use `popupClassName` instead.");const f=(0,a.KR)(),v=()=>{var e;const t=(0,l.MI)(null===(e=n.default)||void 0===e?void 0:e.call(n)),r=t.length?t[0]:void 0;return r},A=()=>{var e;null===(e=f.value)||void 0===e||e.focus()},b=()=>{var e;null===(e=f.value)||void 0===e||e.blur()};h({focus:A,blur:b});const{prefixCls:y}=(0,g.A)("select",e);return()=>{var t,a,c;const{size:h,dataSource:g,notFoundContent:A=(null===(t=n.notFoundContent)||void 0===t?void 0:t.call(n))}=e;let b;const{class:w}=u,_={[w]:!!w,[`${y.value}-lg`]:"large"===h,[`${y.value}-sm`]:"small"===h,[`${y.value}-show-search`]:!0,[`${y.value}-auto-complete`]:!0};if(void 0===e.options){const e=(null===(a=n.dataSource)||void 0===a?void 0:a.call(n))||(null===(c=n.options)||void 0===c?void 0:c.call(n))||[];b=e.length&&m(e[0])?e:g?g.map(e=>{if((0,l.zO)(e))return e;switch(typeof e){case"string":return(0,o.bF)(d,{key:e,value:e},{default:()=>[e]});case"object":return(0,o.bF)(d,{key:e.value,value:e.value},{default:()=>[e.text]});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[]}const x=(0,p.A)((0,i.A)((0,i.A)((0,i.A)({},e),u),{mode:s.Ay.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:v,notFoundContent:A,class:_,popupClassName:e.popupClassName||e.dropdownClassName,ref:f}),["dataSource","loading"]);return(0,o.bF)(s.Ay,x,(0,r.A)({default:()=>[b]},(0,p.A)(n,["default","dataSource","options"])))}}});var b=(0,i.A)(A,{Option:d,OptGroup:f,install(e){return e.component(A.name,A),e.component(d.displayName,d),e.component(f.displayName,f),e}})},25745:function(e,t,n){"use strict";var r=n(77629);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},26021:function(e,t,n){"use strict";n.d(t,{Ay:function(){return l}});n(18111),n(7588);var r=n(42529),i=n(61206),o=n(69566),a=n(30094);function s(e,t){o.A.logError("[".concat(e,"] event or callback cant be undefined or null when call ").concat(t))}var l=function(){function e(t){(0,r.xs)(this,e),i.Ay.checkIsFunction(this.beforeCreate)&&this.beforeCreate(t),(0,a.Ay)(this),this.__args=t,this.__events={},this.__onceEvents={},this.config=t.config||{},this.player=null,this.playerConfig={},this.pluginName="",this.__init(t)}return(0,r.j6)(e,[{key:"beforeCreate",value:function(e){}},{key:"afterCreate",value:function(){}},{key:"beforePlayerInit",value:function(){}},{key:"onPluginsReady",value:function(){}},{key:"afterPlayerInit",value:function(){}},{key:"destroy",value:function(){}},{key:"__init",value:function(e){this.player=e.player,this.playerConfig=e.player&&e.player.config,this.pluginName=e.pluginName?e.pluginName.toLowerCase():this.constructor.pluginName.toLowerCase(),this.logger=e.player&&e.player.logger}},{key:"updateLang",value:function(e){e||(e=this.lang)}},{key:"lang",get:function(){return this.player.lang}},{key:"i18n",get:function(){return this.player.i18n}},{key:"i18nKeys",get:function(){return this.player.i18nKeys}},{key:"domEventType",get:function(){var e=i.Ay.checkTouchSupport()?"touch":"mouse";return!this.playerConfig||"touch"!==this.playerConfig.domEventType&&"mouse"!==this.playerConfig.domEventType||(e=this.playerConfig.domEventType),e}},{key:"on",value:function(e,t){var n=this;e&&t&&this.player?"string"===typeof e?(this.__events[e]=t,this.player.on(e,t)):Array.isArray(e)&&e.forEach(function(e){n.__events[e]=t,n.player.on(e,t)}):s(this.pluginName,"plugin.on(event, callback)")}},{key:"once",value:function(e,t){var n=this;e&&t&&this.player?"string"===typeof e?(this.__onceEvents[e]=t,this.player.once(e,t)):Array.isArray(e)&&e.forEach(function(r){n.__onceEvents[r]=t,n.player.once(e,t)}):s(this.pluginName,"plugin.once(event, callback)")}},{key:"off",value:function(e,t){var n=this;e&&t&&this.player?"string"===typeof e?(delete this.__events[e],this.player.off(e,t)):Array.isArray(e)&&e.forEach(function(r){delete n.__events[e],n.player.off(r,t)}):s(this.pluginName,"plugin.off(event, callback)")}},{key:"offAll",value:function(){var e=this;["__events","__onceEvents"].forEach(function(t){Object.keys(e[t]).forEach(function(n){e[t][n]&&e.off(n,e[t][n]),n&&delete e[t][n]})}),this.__events={},this.__onceEvents={}}},{key:"emit",value:function(e){var t;if(this.player){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=this.player).emit.apply(t,[e].concat(r))}}},{key:"emitUserAction",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.player){var i=(0,r.T1)((0,r.T1)({},n),{},{pluginName:this.pluginName});this.player.emitUserAction(e,t,i)}}},{key:"hook",value:function(e,t){return a.A_.call.apply(a.A_,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"useHooks",value:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return a.uQ.call.apply(a.uQ,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"removeHooks",value:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return a.j.call.apply(a.j,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"registerPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(this.player)return n&&(t.pluginName=n),this.player.registerPlugin({plugin:e,options:t})}},{key:"getPlugin",value:function(e){return this.player?this.player.getPlugin(e):null}},{key:"__destroy",value:function(){var e=this,t=this.player,n=this.pluginName;this.offAll(),i.Ay.clearAllTimers(this),i.Ay.checkIsFunction(this.destroy)&&this.destroy(),["player","playerConfig","pluginName","logger","__args","__hooks"].map(function(t){e[t]=null}),t.unRegisterPlugin(n),(0,a.Vj)(this)}}],[{key:"defineGetterOrSetter",value:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&Object.defineProperty(e,n,t[n])}},{key:"defineMethod",value:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&"function"===typeof t[n]&&Object.defineProperty(e,n,{configurable:!0,value:t[n]})}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}]),e}()},26162:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(11591),i=n(22799),o="[object Arguments]";function a(e){return(0,i.A)(e)&&(0,r.A)(e)==o}var s=a,l=Object.prototype,c=l.hasOwnProperty,u=l.propertyIsEnumerable,d=s(function(){return arguments}())?s:function(e){return(0,i.A)(e)&&c.call(e,"callee")&&!u.call(e,"callee")},h=d},26198:function(e,t,n){"use strict";var r=n(18014);e.exports=function(e){return r(e.length)}},26200:function(e,t,n){"use strict";n.d(t,{A:function(){return T}});var r=n(7162),i=n(39578),o=(0,r.A)(i.A,"DataView"),a=o,s=n(76062),l=(0,r.A)(i.A,"Promise"),c=l,u=n(23452),d=(0,r.A)(i.A,"WeakMap"),h=d,f=n(11591),p=n(3534),g="[object Map]",m="[object Object]",v="[object Promise]",A="[object Set]",b="[object WeakMap]",y="[object DataView]",w=(0,p.A)(a),_=(0,p.A)(s.A),x=(0,p.A)(c),E=(0,p.A)(u.A),S=(0,p.A)(h),C=f.A;(a&&C(new a(new ArrayBuffer(1)))!=y||s.A&&C(new s.A)!=g||c&&C(c.resolve())!=v||u.A&&C(new u.A)!=A||h&&C(new h)!=b)&&(C=function(e){var t=(0,f.A)(e),n=t==m?e.constructor:void 0,r=n?(0,p.A)(n):"";if(r)switch(r){case w:return y;case _:return g;case x:return v;case E:return A;case S:return b}return t});var T=C},26269:function(e){"use strict";e.exports={}},26622:function(e){function t(e){const t={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},n={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,t,n]}}e.exports=t},26722:function(e,t){"use strict";t.A={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"}},26841:function(e,t){"use strict";function n(e,t){return e===t||e!==e&&t!==t}t.A=n},27256:function(e,t,n){"use strict";var r=n(7162),i=function(){try{var e=(0,r.A)(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();t.A=i},27318:function(e){function t(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}e.exports=t},27476:function(e,t,n){"use strict";var r=n(22195),i=n(79504);e.exports=function(e){if("Function"===r(e))return i(e)}},27652:function(e){function t(e){const t=/([A-Za-z_][A-Za-z_0-9]*)?/,n=["true","false","in"],r={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:n.join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},i={match:[t,/(?=\()/],scope:{1:"keyword"},contains:[r]};return r.contains.unshift(i),{name:"Leaf",contains:[{match:[/#+/,t,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[r]},{match:[/#+/,t,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}e.exports=t},27740:function(e){function t(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}e.exports=t},27909:function(e,t,n){"use strict";var r=n(51137),i=n(41034),o=n(56768),a=n(49974),s=n(86692),l=n(81425),c=n(93631),u=n(76110),d=n(80816),h=n(23402),f=n(36590),p=n(73429),g=n(44678),m=n(55498),v=n(60674),A=n(51589),b=n(98684),y=n(96902),w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};let _;const x=e=>{_={x:e.pageX,y:e.pageY},setTimeout(()=>_=null,100)};(0,m.qz)()&&(0,c.A)(document.documentElement,"click",x,!0);const E=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:l.A.any,closable:{type:Boolean,default:void 0},closeIcon:l.A.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:l.A.any,okText:l.A.any,okType:String,cancelText:l.A.any,icon:l.A.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:(0,g.ge)(),cancelButtonProps:(0,g.ge)(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:(0,g.ge)(),maskStyle:(0,g.ge)(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:(0,g.ge)()});t.A=(0,o.pM)({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:(0,p.A)(E(),{width:520,confirmLoading:!1,okType:"primary"}),setup(e,t){let{emit:n,slots:l,attrs:c}=t;const[p]=(0,f.n)("Modal"),{prefixCls:g,rootPrefixCls:m,direction:x,getPopupContainer:E}=(0,v.A)("modal",e),[S,C]=(0,y.A)(g);(0,b.Ay)(void 0===e.visible,"Modal","`visible` will be removed in next major version, please use `open` instead.");const T=e=>{n("update:visible",!1),n("update:open",!1),n("cancel",e),n("change",!1)},k=e=>{n("ok",e)},O=()=>{var t,n;const{okText:r=(null===(t=l.okText)||void 0===t?void 0:t.call(l)),okType:a,cancelText:s=(null===(n=l.cancelText)||void 0===n?void 0:n.call(l)),confirmLoading:c}=e;return(0,o.bF)(o.FK,null,[(0,o.bF)(d.A,(0,i.A)({onClick:T},e.cancelButtonProps),{default:()=>[s||p.value.cancelText]}),(0,o.bF)(d.A,(0,i.A)((0,i.A)({},(0,h.DU)(a)),{},{loading:c,onClick:k},e.okButtonProps),{default:()=>[r||p.value.okText]})])};return()=>{var t,n;const{prefixCls:d,visible:h,open:f,wrapClassName:p,centered:v,getContainer:b,closeIcon:y=(null===(t=l.closeIcon)||void 0===t?void 0:t.call(l)),focusTriggerAfterClose:k=!0}=e,M=w(e,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),I=(0,a.A)(p,{[`${g.value}-centered`]:!!v,[`${g.value}-wrap-rtl`]:"rtl"===x.value});return S((0,o.bF)(s.A,(0,i.A)((0,i.A)((0,i.A)({},M),c),{},{rootClassName:C.value,class:(0,a.A)(C.value,c.class),getContainer:b||(null===E||void 0===E?void 0:E.value),prefixCls:g.value,wrapClassName:I,visible:null!==f&&void 0!==f?f:h,onClose:T,focusTriggerAfterClose:k,transitionName:(0,A.by)(m.value,"zoom",e.transitionName),maskTransitionName:(0,A.by)(m.value,"fade",e.maskTransitionName),mousePosition:null!==(n=M.mousePosition)&&void 0!==n?n:_}),(0,r.A)((0,r.A)({},l),{footer:l.footer||O,closeIcon:()=>(0,o.bF)("span",{class:`${g.value}-close-x`},[y||(0,o.bF)(u.A,{class:`${g.value}-close-icon`},null)])})))}}})},27942:function(e,t,n){n(44114),n(18111),n(61701),n(18237);const r=n(17195),i=n(10866),o=n(54772),a=n(90139),s=n(81910),l=n(83693),c=n(79547),u=n(57549);function d(e){return unescape(encodeURIComponent(e)).length}function h(e,t,n){const r=[];let i;while(null!==(i=e.exec(n)))r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function f(e){const t=h(l.NUMERIC,r.NUMERIC,e),n=h(l.ALPHANUMERIC,r.ALPHANUMERIC,e);let i,o;c.isKanjiModeEnabled()?(i=h(l.BYTE,r.BYTE,e),o=h(l.KANJI,r.KANJI,e)):(i=h(l.BYTE_KANJI,r.BYTE,e),o=[]);const a=t.concat(n,i,o);return a.sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function p(e,t){switch(t){case r.NUMERIC:return i.getBitsLength(e);case r.ALPHANUMERIC:return o.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return a.getBitsLength(e)}}function g(e){return e.reduce(function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function m(e){const t=[];for(let n=0;n<e.length;n++){const i=e[n];switch(i.mode){case r.NUMERIC:t.push([i,{data:i.data,mode:r.ALPHANUMERIC,length:i.length},{data:i.data,mode:r.BYTE,length:i.length}]);break;case r.ALPHANUMERIC:t.push([i,{data:i.data,mode:r.BYTE,length:i.length}]);break;case r.KANJI:t.push([i,{data:i.data,mode:r.BYTE,length:d(i.data)}]);break;case r.BYTE:t.push([{data:i.data,mode:r.BYTE,length:d(i.data)}])}}return t}function v(e,t){const n={},i={start:{}};let o=["start"];for(let a=0;a<e.length;a++){const s=e[a],l=[];for(let e=0;e<s.length;e++){const c=s[e],u=""+a+e;l.push(u),n[u]={node:c,lastCount:0},i[u]={};for(let e=0;e<o.length;e++){const a=o[e];n[a]&&n[a].node.mode===c.mode?(i[a][u]=p(n[a].lastCount+c.length,c.mode)-p(n[a].lastCount,c.mode),n[a].lastCount+=c.length):(n[a]&&(n[a].lastCount=c.length),i[a][u]=p(c.length,c.mode)+4+r.getCharCountIndicator(c.mode,t))}}o=l}for(let r=0;r<o.length;r++)i[o[r]].end=0;return{map:i,table:n}}function A(e,t){let n;const l=r.getBestModeForData(e);if(n=r.from(t,l),n!==r.BYTE&&n.bit<l.bit)throw new Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(l));switch(n!==r.KANJI||c.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new i(e);case r.ALPHANUMERIC:return new o(e);case r.KANJI:return new s(e);case r.BYTE:return new a(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"===typeof t?e.push(A(t,null)):t.data&&e.push(A(t.data,t.mode)),e},[])},t.fromString=function(e,n){const r=f(e,c.isKanjiModeEnabled()),i=m(r),o=v(i,n),a=u.find_path(o.map,"start","end"),s=[];for(let t=1;t<a.length-1;t++)s.push(o.table[a[t]].node);return t.fromArray(g(s))},t.rawSplit=function(e){return t.fromArray(f(e,c.isKanjiModeEnabled()))}},28038:function(e){function t(e){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}e.exports=t},28057:function(e){const t=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],i=[...n,...r],o=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),l=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function c(e){const n=e.regex,r=t(e),c={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},u="and or not only",d=/@-?\w[\w]*(-\w+)*/,h="[a-zA-Z-][a-zA-Z0-9_-]*",f=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[r.BLOCK_COMMENT,c,r.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+h,relevance:0},r.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+a.join("|")+")"},{begin:":(:)?("+s.join("|")+")"}]},r.CSS_VARIABLE,{className:"attribute",begin:"\\b("+l.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[r.BLOCK_COMMENT,r.HEXCOLOR,r.IMPORTANT,r.CSS_NUMBER_MODE,...f,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...f,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},r.FUNCTION_DISPATCH]},{begin:n.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:d},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:u,attribute:o.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...f,r.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+i.join("|")+")\\b"}]}}e.exports=c},28228:function(e){function t(e){const t="[a-zA-Z_$][a-zA-Z0-9_$]*",n=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/,r="Int Float String Bool Dynamic Void Array ";return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+r,built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:n,relevance:0},{className:"variable",begin:"\\$"+t},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",beginKeywords:"new",end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[e.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+e.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE]}],illegal:/<\//}}e.exports=t},28250:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="CheckOutlined",c.inheritAttrs=!1;var u=c},28512:function(e){function t(e){const t=e.regex,n="HTTP/([32]|1\\.[01])",r=/[A-Za-z][A-Za-z0-9-]*/,i={className:"attribute",begin:t.concat("^",r,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},o=[i,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+n+" \\d{3})",end:/$/,contains:[{className:"meta",begin:n},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},{begin:"(?=^[A-Z]+ (.*?) "+n+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:n},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},e.inherit(i,{relevance:0})]}}e.exports=t},28527:function(e,t,n){"use strict";var r=n(97080),i=n(94402).has,o=n(25170),a=n(83789),s=n(40507),l=n(9539);e.exports=function(e){var t=r(this),n=a(e);if(o(t)<n.size)return!1;var c=n.getIterator();return!1!==s(c,function(e){if(!i(t,e))return l(c,"normal",!1)})}},28551:function(e,t,n){"use strict";var r=n(20034),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},28646:function(e,t,n){"use strict";n.d(t,{A:function(){return l},y:function(){return a}});n(18111),n(7588);var r=n(51137),i=n(56768),o=n(10707);const a=["xxxl","xxl","xl","lg","md","sm","xs"],s=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`{min-width: ${e.screenXXXL}px}`});function l(){const[,e]=(0,o.rd)();return(0,i.EW)(()=>{const t=s(e.value),n=new Map;let i=-1,o={};return{matchHandlers:{},dispatch(e){return o=e,n.forEach(e=>e(o)),n.size>=1},subscribe(e){return n.size||this.register(),i+=1,n.set(i,e),e(o),i},unsubscribe(e){n.delete(e),n.size||this.unregister()},unregister(){Object.keys(t).forEach(e=>{const n=t[e],r=this.matchHandlers[n];null===r||void 0===r||r.mql.removeListener(null===r||void 0===r?void 0:r.listener)}),n.clear()},register(){Object.keys(t).forEach(e=>{const n=t[e],i=t=>{let{matches:n}=t;this.dispatch((0,r.A)((0,r.A)({},o),{[e]:n}))},a=window.matchMedia(n);a.addListener(i),this.matchHandlers[n]={mql:a,listener:i},i(a)})},responsiveMap:t}})}},28736:function(e){function t(e){const t=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],n=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],r=["doc","by","license","see","throws","tagged"],i={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},o=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[i]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return i.contains=o,{name:"Ceylon",keywords:{keyword:t.concat(n),meta:r},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(o)}}e.exports=t},29309:function(e,t,n){"use strict";var r=n(46518),i=n(44576),o=n(59225).set,a=n(79472),s=i.setImmediate?a(o,!1):o;r({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==s},{setImmediate:s})},29314:function(e,t,n){"use strict";var r=n(46518),i=n(69565),o=n(28551),a=n(1767),s=n(24149),l=n(99590),c=n(9539),u=n(19462),d=n(30684),h=n(84549),f=n(96395),p=!f&&!d("drop",0),g=!f&&!p&&h("drop",RangeError),m=f||p||g,v=u(function(){var e,t,n=this.iterator,r=this.next;while(this.remaining)if(this.remaining--,e=o(i(r,n)),t=this.done=!!e.done,t)return;if(e=o(i(r,n)),t=this.done=!!e.done,!t)return e.value});r({target:"Iterator",proto:!0,real:!0,forced:m},{drop:function(e){var t;o(this);try{t=l(s(+e))}catch(n){c(this,"throw",n)}return g?i(g,this,t):new v(a(this),{remaining:t})}})},29735:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="UploadOutlined",c.inheritAttrs=!1;var u=c},29947:function(e){function t(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}e.exports=t},29966:function(e,t,n){"use strict";n.d(t,{A:function(){return Ne}});var r=n(41034),i=n(56768),o=n(90144),a=n(81425),s=n(98684),l=n(49974),c=(n(44114),n(18111),n(22489),n(7588),n(61701),n(51137));const u=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()},d=function(e){const t=/[height|width]$/;return t.test(e)},h=function(e){let t="";const n=Object.keys(e);return n.forEach(function(r,i){let o=e[r];r=u(r),d(r)&&"number"===typeof o&&(o+="px"),t+=!0===o?r:!1===o?"not "+r:"("+r+": "+o+")",i<n.length-1&&(t+=" and ")}),t};function f(e){let t="";return"string"===typeof e?e:e instanceof Array?(e.forEach(function(n,r){t+=h(n),r<e.length-1&&(t+=", ")}),t):h(e)}var p=n(49570),g=n(82978),m=n(6301),v=n(23606);const A={accessibility:{type:Boolean,default:!0},adaptiveHeight:{type:Boolean,default:!1},afterChange:a.A.any.def(null),arrows:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!1},autoplaySpeed:a.A.number.def(3e3),beforeChange:a.A.any.def(null),centerMode:{type:Boolean,default:!1},centerPadding:a.A.string.def("50px"),cssEase:a.A.string.def("ease"),dots:{type:Boolean,default:!1},dotsClass:a.A.string.def("slick-dots"),draggable:{type:Boolean,default:!0},unslick:{type:Boolean,default:!1},easing:a.A.string.def("linear"),edgeFriction:a.A.number.def(.35),fade:{type:Boolean,default:!1},focusOnSelect:{type:Boolean,default:!1},infinite:{type:Boolean,default:!0},initialSlide:a.A.number.def(0),lazyLoad:a.A.any.def(null),verticalSwiping:{type:Boolean,default:!1},asNavFor:a.A.any.def(null),pauseOnDotsHover:{type:Boolean,default:!1},pauseOnFocus:{type:Boolean,default:!1},pauseOnHover:{type:Boolean,default:!0},responsive:a.A.array,rows:a.A.number.def(1),rtl:{type:Boolean,default:!1},slide:a.A.string.def("div"),slidesPerRow:a.A.number.def(1),slidesToScroll:a.A.number.def(1),slidesToShow:a.A.number.def(1),speed:a.A.number.def(500),swipe:{type:Boolean,default:!0},swipeEvent:a.A.any.def(null),swipeToSlide:{type:Boolean,default:!1},touchMove:{type:Boolean,default:!0},touchThreshold:a.A.number.def(5),useCSS:{type:Boolean,default:!0},useTransform:{type:Boolean,default:!0},variableWidth:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},waitForAnimate:{type:Boolean,default:!0},children:a.A.array,__propsSymbol__:a.A.any};var b=A;const y={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};var w=y;n(81148),n(18237);function _(e,t,n){return Math.max(t,Math.min(e,n))}const x=e=>{const t=["touchstart","touchmove","wheel"];t.includes(e.type)||e.preventDefault()},E=e=>{const t=[],n=S(e),r=C(e);for(let i=n;i<r;i++)e.lazyLoadedList.indexOf(i)<0&&t.push(i);return t},S=e=>e.currentSlide-T(e),C=e=>e.currentSlide+k(e),T=e=>e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0,k=e=>e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow,O=e=>e&&e.offsetWidth||0,M=e=>e&&e.offsetHeight||0,I=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=e.startX-e.curX,i=e.startY-e.curY,o=Math.atan2(i,r);return t=Math.round(180*o/Math.PI),t<0&&(t=360-Math.abs(t)),t<=45&&t>=0||t<=360&&t>=315?"left":t>=135&&t<=225?"right":!0===n?t>=35&&t<=135?"up":"down":"vertical"},D=e=>{let t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},N=(e,t)=>{const n={};return t.forEach(t=>n[t]=e[t]),n},R=e=>{const t=e.children.length,n=e.listRef,r=Math.ceil(O(n)),i=e.trackRef,o=Math.ceil(O(i));let a;if(e.vertical)a=r;else{let t=e.centerMode&&2*parseInt(e.centerPadding);"string"===typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(t*=r/100),a=Math.ceil((r-t)/e.slidesToShow)}const s=n&&M(n.querySelector('[data-index="0"]')),l=s*e.slidesToShow;let u=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(u=t-1-e.initialSlide);let d=e.lazyLoadedList||[];const h=E((0,c.A)((0,c.A)({},e),{currentSlide:u,lazyLoadedList:d}),e);d=d.concat(h);const f={slideCount:t,slideWidth:a,listWidth:r,trackWidth:o,currentSlide:u,slideHeight:s,listHeight:l,lazyLoadedList:d};return null===e.autoplaying&&e.autoplay&&(f["autoplaying"]="playing"),f},L=e=>{const{waitForAnimate:t,animating:n,fade:r,infinite:i,index:o,slideCount:a,lazyLoad:s,currentSlide:l,centerMode:u,slidesToScroll:d,slidesToShow:h,useCSS:f}=e;let{lazyLoadedList:p}=e;if(t&&n)return{};let g,m,v,A=o,b={},y={};const w=i?o:_(o,0,a-1);if(r){if(!i&&(o<0||o>=a))return{};o<0?A=o+a:o>=a&&(A=o-a),s&&p.indexOf(A)<0&&(p=p.concat(A)),b={animating:!0,currentSlide:A,lazyLoadedList:p,targetSlide:A},y={animating:!1,targetSlide:A}}else g=A,A<0?(g=A+a,i?a%d!==0&&(g=a-a%d):g=0):!D(e)&&A>l?A=g=l:u&&A>=a?(A=i?a:a-1,g=i?0:a-1):A>=a&&(g=A-a,i?a%d!==0&&(g=0):g=a-h),!i&&A+h>=a&&(g=a-h),m=V((0,c.A)((0,c.A)({},e),{slideIndex:A})),v=V((0,c.A)((0,c.A)({},e),{slideIndex:g})),i||(m===v&&(A=g),m=v),s&&(p=p.concat(E((0,c.A)((0,c.A)({},e),{currentSlide:A})))),f?(b={animating:!0,currentSlide:g,trackStyle:G((0,c.A)((0,c.A)({},e),{left:m})),lazyLoadedList:p,targetSlide:w},y={animating:!1,currentSlide:g,trackStyle:W((0,c.A)((0,c.A)({},e),{left:v})),swipeLeft:null,targetSlide:w}):b={currentSlide:g,trackStyle:W((0,c.A)((0,c.A)({},e),{left:v})),lazyLoadedList:p,targetSlide:w};return{state:b,nextState:y}},B=(e,t)=>{let n,r,i;const{slidesToScroll:o,slidesToShow:a,slideCount:s,currentSlide:l,targetSlide:u,lazyLoad:d,infinite:h}=e,f=s%o!==0,p=f?0:(s-l)%o;if("previous"===t.message)r=0===p?o:a-p,i=l-r,d&&!h&&(n=l-r,i=-1===n?s-1:n),h||(i=u-o);else if("next"===t.message)r=0===p?o:p,i=l+r,d&&!h&&(i=(l+o)%s+p),h||(i=u+o);else if("dots"===t.message)i=t.index*t.slidesToScroll;else if("children"===t.message){if(i=t.index,h){const n=X((0,c.A)((0,c.A)({},e),{targetSlide:i}));i>t.currentSlide&&"left"===n?i-=s:i<t.currentSlide&&"right"===n&&(i+=s)}}else"index"===t.message&&(i=Number(t.index));return i},P=(e,t,n)=>e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":"",F=(e,t,n)=>("IMG"===e.target.tagName&&x(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}),$=(e,t)=>{const{scrolling:n,animating:r,vertical:i,swipeToSlide:o,verticalSwiping:a,rtl:s,currentSlide:l,edgeFriction:u,edgeDragged:d,onEdge:h,swiped:f,swiping:p,slideCount:g,slidesToScroll:m,infinite:v,touchObject:A,swipeEvent:b,listHeight:y,listWidth:w}=t;if(n)return;if(r)return x(e);let _;i&&o&&a&&x(e);let E={};const S=V(t);A.curX=e.touches?e.touches[0].pageX:e.clientX,A.curY=e.touches?e.touches[0].pageY:e.clientY,A.swipeLength=Math.round(Math.sqrt(Math.pow(A.curX-A.startX,2)));const C=Math.round(Math.sqrt(Math.pow(A.curY-A.startY,2)));if(!a&&!p&&C>10)return{scrolling:!0};a&&(A.swipeLength=C);let T=(s?-1:1)*(A.curX>A.startX?1:-1);a&&(T=A.curY>A.startY?1:-1);const k=Math.ceil(g/m),O=I(t.touchObject,a);let M=A.swipeLength;return v||(0===l&&("right"===O||"down"===O)||l+1>=k&&("left"===O||"up"===O)||!D(t)&&("left"===O||"up"===O))&&(M=A.swipeLength*u,!1===d&&h&&(h(O),E["edgeDragged"]=!0)),!f&&b&&(b(O),E["swiped"]=!0),_=i?S+M*(y/w)*T:s?S-M*T:S+M*T,a&&(_=S+M*T),E=(0,c.A)((0,c.A)({},E),{touchObject:A,swipeLeft:_,trackStyle:W((0,c.A)((0,c.A)({},t),{left:_}))}),Math.abs(A.curX-A.startX)<.8*Math.abs(A.curY-A.startY)||A.swipeLength>10&&(E["swiping"]=!0,x(e)),E},j=(e,t)=>{const{dragging:n,swipe:r,touchObject:i,listWidth:o,touchThreshold:a,verticalSwiping:s,listHeight:l,swipeToSlide:u,scrolling:d,onSwipe:h,targetSlide:f,currentSlide:p,infinite:g}=t;if(!n)return r&&x(e),{};const m=s?l/a:o/a,v=I(i,s),A={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d)return A;if(!i.swipeLength)return A;if(i.swipeLength>m){let n,r;x(e),h&&h(v);const i=g?p:f;switch(v){case"left":case"up":r=i+Q(t),n=u?U(t,r):r,A["currentDirection"]=0;break;case"right":case"down":r=i-Q(t),n=u?U(t,r):r,A["currentDirection"]=1;break;default:n=i}A["triggerSlideHandler"]=n}else{const e=V(t);A["trackStyle"]=G((0,c.A)((0,c.A)({},t),{left:e}))}return A},H=e=>{const t=e.infinite?2*e.slideCount:e.slideCount;let n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0;const i=[];while(n<t)i.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return i},U=(e,t)=>{const n=H(e);let r=0;if(t>n[n.length-1])t=n[n.length-1];else for(const i in n){if(t<n[i]){t=r;break}r=n[i]}return t},Q=e=>{const t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){let n;const r=e.listRef,i=r.querySelectorAll&&r.querySelectorAll(".slick-slide")||[];if(Array.from(i).every(r=>{if(e.vertical){if(r.offsetTop+M(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+O(r)/2>-1*e.swipeLeft)return n=r,!1;return!0}),!n)return 0;const o=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide,a=Math.abs(n.dataset.index-o)||1;return a}return e.slidesToScroll},z=(e,t)=>t.reduce((t,n)=>t&&e.hasOwnProperty(n),!0)?null:console.error("Keys Missing:",e),W=e=>{let t,n;z(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);const r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=q(e)*e.slideWidth;let i={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){const t=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",n=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",r=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";i=(0,c.A)((0,c.A)({},i),{WebkitTransform:t,transform:n,msTransform:r})}else e.vertical?i["top"]=e.left:i["left"]=e.left;return e.fade&&(i={opacity:1}),t&&(i.width=t+"px"),n&&(i.height=n+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?i.marginTop=e.left+"px":i.marginLeft=e.left+"px"),i},G=e=>{z(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);const t=W(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},V=e=>{if(e.unslick)return 0;z(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);const{slideIndex:t,trackRef:n,infinite:r,centerMode:i,slideCount:o,slidesToShow:a,slidesToScroll:s,slideWidth:l,listWidth:c,variableWidth:u,slideHeight:d,fade:h,vertical:f}=e;let p,g,m=0,v=0;if(h||1===e.slideCount)return 0;let A=0;if(r?(A=-K(e),o%s!==0&&t+s>o&&(A=-(t>o?a-(t-o):o%s)),i&&(A+=parseInt(a/2))):(o%s!==0&&t+s>o&&(A=a-o%s),i&&(A=parseInt(a/2))),m=A*l,v=A*d,p=f?t*d*-1+v:t*l*-1+m,!0===u){let o;const a=n;if(o=t+K(e),g=a&&a.childNodes[o],p=g?-1*g.offsetLeft:0,!0===i){o=r?t+K(e):t,g=a&&a.children[o],p=0;for(let e=0;e<o;e++)p-=a&&a.children[e]&&a.children[e].offsetWidth;p-=parseInt(e.centerPadding),p+=g&&(c-g.offsetWidth)/2}}return p},K=e=>e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0),Y=e=>e.unslick||!e.infinite?0:e.slideCount,q=e=>1===e.slideCount?1:K(e)+e.slideCount+Y(e),X=e=>e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+J(e)?"left":"right":e.targetSlide<e.currentSlide-Z(e)?"right":"left",J=e=>{let{slidesToShow:t,centerMode:n,rtl:r,centerPadding:i}=e;if(n){let e=(t-1)/2+1;return parseInt(i)>0&&(e+=1),r&&t%2===0&&(e+=1),e}return r?0:t-1},Z=e=>{let{slidesToShow:t,centerMode:n,rtl:r,centerPadding:i}=e;if(n){let e=(t-1)/2+1;return parseInt(i)>0&&(e+=1),r||t%2!==0||(e+=1),e}return r?t-1:0},ee=()=>!("undefined"===typeof window||!window.document||!window.document.createElement);var te=n(44832);const ne=e=>{let t,n,r,i;i=e.rtl?e.slideCount-1-e.index:e.index;const o=i<0||i>=e.slideCount;let a;e.centerMode?(r=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount===0,i>e.currentSlide-r-1&&i<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=i&&i<e.currentSlide+e.slidesToShow,a=e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide;const s=i===a;return{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":o,"slick-current":s}},re=function(e){const t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth+("number"===typeof e.slideWidth?"px":"")),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight)+"px":t.left=-e.index*parseInt(e.slideWidth)+"px",t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t},ie=(e,t)=>e.key+"-"+t,oe=function(e,t){let n;const r=[],o=[],a=[],s=t.length,u=S(e),d=C(e);return t.forEach((t,h)=>{let f;const p={message:"children",index:h,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};f=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(h)>=0?t:(0,i.bF)("div");const m=re((0,c.A)((0,c.A)({},e),{index:h})),v=f.props.class||"";let A=ne((0,c.A)((0,c.A)({},e),{index:h}));if(r.push((0,g.IV)(f,{key:"original"+ie(f,h),tabindex:"-1","data-index":h,"aria-hidden":!A["slick-active"],class:(0,l.A)(A,v),style:(0,c.A)((0,c.A)({outline:"none"},f.props.style||{}),m),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&!1===e.fade){const r=s-h;r<=K(e)&&s!==e.slidesToShow&&(n=-r,n>=u&&(f=t),A=ne((0,c.A)((0,c.A)({},e),{index:n})),o.push((0,g.IV)(f,{key:"precloned"+ie(f,n),class:(0,l.A)(A,v),tabindex:"-1","data-index":n,"aria-hidden":!A["slick-active"],style:(0,c.A)((0,c.A)({},f.props.style||{}),m),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(p)}}))),s!==e.slidesToShow&&(n=s+h,n<d&&(f=t),A=ne((0,c.A)((0,c.A)({},e),{index:n})),a.push((0,g.IV)(f,{key:"postcloned"+ie(f,n),tabindex:"-1","data-index":n,"aria-hidden":!A["slick-active"],class:(0,l.A)(A,v),style:(0,c.A)((0,c.A)({},f.props.style||{}),m),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(p)}})))}}),e.rtl?o.concat(r,a).reverse():o.concat(r,a)},ae=(e,t)=>{let{attrs:n,slots:r}=t;const o=oe(n,(0,te.MI)(null===r||void 0===r?void 0:r.default())),{onMouseenter:a,onMouseover:s,onMouseleave:l}=n,u={onMouseenter:a,onMouseover:s,onMouseleave:l},d=(0,c.A)({class:"slick-track",style:n.trackStyle},u);return(0,i.bF)("div",d,[o])};ae.inheritAttrs=!1;var se=ae;const le=function(e){let t;return t=e.infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,t},ce=(e,t)=>{let{attrs:n}=t;const{slideCount:r,slidesToScroll:o,slidesToShow:a,infinite:s,currentSlide:u,appendDots:d,customPaging:h,clickHandler:f,dotsClass:p,onMouseenter:m,onMouseover:v,onMouseleave:A}=n,b=le({slideCount:r,slidesToScroll:o,slidesToShow:a,infinite:s}),y={onMouseenter:m,onMouseover:v,onMouseleave:A};let w=[];for(let x=0;x<b;x++){const E=(x+1)*o-1,S=s?E:_(E,0,r-1),C=S-(o-1),T=s?C:_(C,0,r-1),k=(0,l.A)({"slick-active":s?u>=T&&u<=S:u===T}),O={message:"dots",index:x,slidesToScroll:o,currentSlide:u};function M(e){e&&e.preventDefault(),f(O)}w=w.concat((0,i.bF)("li",{key:x,class:k},[(0,g.Ob)(h({i:x}),{onClick:M})]))}return(0,g.Ob)(d({dots:w}),(0,c.A)({class:p},y))};ce.inheritAttrs=!1;var ue=ce;function de(){}function he(e,t,n){n&&n.preventDefault(),t(e,n)}const fe=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,infinite:a,currentSlide:s,slideCount:l,slidesToShow:u}=n,d={"slick-arrow":!0,"slick-prev":!0};let h=function(e){he({message:"previous"},o,e)};!a&&(0===s||l<=u)&&(d["slick-disabled"]=!0,h=de);const f={key:"0","data-role":"none",class:d,style:{display:"block"},onClick:h},p={currentSlide:s,slideCount:l};let m;return m=n.prevArrow?(0,g.Ob)(n.prevArrow((0,c.A)((0,c.A)({},f),p)),{key:"0",class:d,style:{display:"block"},onClick:h},!1):(0,i.bF)("button",(0,r.A)({key:"0",type:"button"},f),[" ",(0,i.eW)("Previous")]),m};fe.inheritAttrs=!1;const pe=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,currentSlide:a,slideCount:s}=n,u={"slick-arrow":!0,"slick-next":!0};let d=function(e){he({message:"next"},o,e)};D(n)||(u["slick-disabled"]=!0,d=de);const h={key:"1","data-role":"none",class:(0,l.A)(u),style:{display:"block"},onClick:d},f={currentSlide:a,slideCount:s};let p;return p=n.nextArrow?(0,g.Ob)(n.nextArrow((0,c.A)((0,c.A)({},h),f)),{key:"1",class:(0,l.A)(u),style:{display:"block"},onClick:d},!1):(0,i.bF)("button",(0,r.A)({key:"1",type:"button"},h),[" ",(0,i.eW)("Next")]),p};pe.inheritAttrs=!1;var ge=n(62573),me=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function ve(){}var Ae={name:"InnerSlider",mixins:[p.A],inheritAttrs:!1,props:(0,c.A)({},b),data(){this.preProps=(0,c.A)({},this.$props),this.list=null,this.track=null,this.callbackTimers=[],this.clickable=!0,this.debouncedResize=null;const e=this.ssrInit();return(0,c.A)((0,c.A)((0,c.A)({},w),{currentSlide:this.initialSlide,slideCount:this.children.length}),e)},watch:{autoplay(e,t){!t&&e?this.handleAutoPlay("playing"):e?this.handleAutoPlay("update"):this.pause("paused")},__propsSymbol__(){const e=this.$props,t=(0,c.A)((0,c.A)({listRef:this.list,trackRef:this.track},e),this.$data);let n=!1;for(const r of Object.keys(this.preProps)){if(!e.hasOwnProperty(r)){n=!0;break}if("object"!==typeof e[r]&&"function"!==typeof e[r]&&"symbol"!==typeof e[r]&&e[r]!==this.preProps[r]){n=!0;break}}this.updateState(t,n,()=>{this.currentSlide>=e.children.length&&this.changeSlide({message:"index",index:e.children.length-e.slidesToShow,currentSlide:this.currentSlide}),!this.preProps.autoplay&&e.autoplay?this.handleAutoPlay("playing"):e.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.preProps=(0,c.A)({},e)}},mounted(){if(this.__emit("init"),this.lazyLoad){const e=E((0,c.A)((0,c.A)({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e))}this.$nextTick(()=>{const e=(0,c.A)({listRef:this.list,trackRef:this.track,children:this.children},this.$props);this.updateState(e,!0,()=>{this.adaptHeight(),this.autoplay&&this.handleAutoPlay("playing")}),"progressive"===this.lazyLoad&&(this.lazyLoadTimer=setInterval(this.progressiveLazyLoad,1e3)),this.ro=new v.A(()=>{this.animating?(this.onWindowResized(!1),this.callbackTimers.push(setTimeout(()=>this.onWindowResized(),this.speed))):this.onWindowResized()}),this.ro.observe(this.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),e=>{e.onfocus=this.$props.pauseOnFocus?this.onSlideFocus:null,e.onblur=this.$props.pauseOnFocus?this.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)})},beforeUnmount(){var e;this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach(e=>clearTimeout(e)),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer),null===(e=this.ro)||void 0===e||e.disconnect()},updated(){if(this.checkImagesLoad(),this.__emit("reInit"),this.lazyLoad){const e=E((0,c.A)((0,c.A)({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad"))}this.adaptHeight()},methods:{listRefHandler(e){this.list=e},trackRefHandler(e){this.track=e},adaptHeight(){if(this.adaptiveHeight&&this.list){const e=this.list.querySelector(`[data-index="${this.currentSlide}"]`);this.list.style.height=M(e)+"px"}},onWindowResized(e){this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=(0,m.A)(()=>this.resizeWindow(e),50),this.debouncedResize()},resizeWindow(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=Boolean(this.track);if(!t)return;const n=(0,c.A)((0,c.A)({listRef:this.list,trackRef:this.track,children:this.children},this.$props),this.$data);this.updateState(n,e,()=>{this.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},updateState(e,t,n){const r=R(e);e=(0,c.A)((0,c.A)((0,c.A)({},e),r),{slideIndex:r.currentSlide});const i=V(e);e=(0,c.A)((0,c.A)({},e),{left:i});const o=W(e);(t||this.children.length!==e.children.length)&&(r["trackStyle"]=o),this.setState(r,n)},ssrInit(){const e=this.children;if(this.variableWidth){let t=0,n=0;const r=[],i=K((0,c.A)((0,c.A)((0,c.A)({},this.$props),this.$data),{slideCount:e.length})),o=Y((0,c.A)((0,c.A)((0,c.A)({},this.$props),this.$data),{slideCount:e.length}));e.forEach(e=>{var n,i;const o=(null===(i=null===(n=e.props.style)||void 0===n?void 0:n.width)||void 0===i?void 0:i.split("px")[0])||0;r.push(o),t+=o});for(let e=0;e<i;e++)n+=r[r.length-1-e],t+=r[r.length-1-e];for(let e=0;e<o;e++)t+=r[e];for(let e=0;e<this.currentSlide;e++)n+=r[e];const a={width:t+"px",left:-n+"px"};if(this.centerMode){const e=`${r[this.currentSlide]}px`;a.left=`calc(${a.left} + (100% - ${e}) / 2 ) `}return{trackStyle:a}}const t=e.length,n=(0,c.A)((0,c.A)((0,c.A)({},this.$props),this.$data),{slideCount:t}),r=K(n)+Y(n)+t,i=100/this.slidesToShow*r,o=100/r;let a=-o*(K(n)+this.currentSlide)*i/100;this.centerMode&&(a+=(100-o*i/100)/2);const s={width:i+"%",left:a+"%"};return{slideWidth:o+"%",trackStyle:s}},checkImagesLoad(){const e=this.list&&this.list.querySelectorAll&&this.list.querySelectorAll(".slick-slide img")||[],t=e.length;let n=0;Array.prototype.forEach.call(e,e=>{const r=()=>++n&&n>=t&&this.onWindowResized();if(e.onclick){const t=e.onclick;e.onclick=()=>{t(),e.parentNode.focus()}}else e.onclick=()=>e.parentNode.focus();e.onload||(this.$props.lazyLoad?e.onload=()=>{this.adaptHeight(),this.callbackTimers.push(setTimeout(this.onWindowResized,this.speed))}:(e.onload=r,e.onerror=()=>{r(),this.__emit("lazyLoadError")}))})},progressiveLazyLoad(){const e=[],t=(0,c.A)((0,c.A)({},this.$props),this.$data);for(let n=this.currentSlide;n<this.slideCount+Y(t);n++)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}for(let n=this.currentSlide-1;n>=-K(t);n--)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),delete this.lazyLoadTimer)},slideHandler(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{asNavFor:n,beforeChange:r,speed:i,afterChange:o}=this.$props,{state:a,nextState:s}=L((0,c.A)((0,c.A)((0,c.A)({index:e},this.$props),this.$data),{trackRef:this.track,useCSS:this.useCSS&&!t}));if(!a)return;r&&r(this.currentSlide,a.currentSlide);const l=a.lazyLoadedList.filter(e=>this.lazyLoadedList.indexOf(e)<0);this.$attrs.onLazyLoad&&l.length>0&&this.__emit("lazyLoad",l),!this.$props.waitForAnimate&&this.animationEndCallback&&(clearTimeout(this.animationEndCallback),o&&o(this.currentSlide),delete this.animationEndCallback),this.setState(a,()=>{n&&this.asNavForIndex!==e&&(this.asNavForIndex=e,n.innerSlider.slideHandler(e)),s&&(this.animationEndCallback=setTimeout(()=>{const{animating:e}=s,t=me(s,["animating"]);this.setState(t,()=>{this.callbackTimers.push(setTimeout(()=>this.setState({animating:e}),10)),o&&o(a.currentSlide),delete this.animationEndCallback})},i))})},changeSlide(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(0,c.A)((0,c.A)({},this.$props),this.$data),r=B(n,e);if((0===r||r)&&(!0===t?this.slideHandler(r,t):this.slideHandler(r),this.$props.autoplay&&this.handleAutoPlay("update"),this.$props.focusOnSelect)){const e=this.list.querySelectorAll(".slick-current");e[0]&&e[0].focus()}},clickHandler(e){!1===this.clickable&&(e.stopPropagation(),e.preventDefault()),this.clickable=!0},keyHandler(e){const t=P(e,this.accessibility,this.rtl);""!==t&&this.changeSlide({message:t})},selectHandler(e){this.changeSlide(e)},disableBodyScroll(){const e=e=>{e=e||window.event,e.preventDefault&&e.preventDefault(),e.returnValue=!1};window.ontouchmove=e},enableBodyScroll(){window.ontouchmove=null},swipeStart(e){this.verticalSwiping&&this.disableBodyScroll();const t=F(e,this.swipe,this.draggable);""!==t&&this.setState(t)},swipeMove(e){const t=$(e,(0,c.A)((0,c.A)((0,c.A)({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));t&&(t["swiping"]&&(this.clickable=!1),this.setState(t))},swipeEnd(e){const t=j(e,(0,c.A)((0,c.A)((0,c.A)({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));if(!t)return;const n=t["triggerSlideHandler"];delete t["triggerSlideHandler"],this.setState(t),void 0!==n&&(this.slideHandler(n),this.$props.verticalSwiping&&this.enableBodyScroll())},touchEnd(e){this.swipeEnd(e),this.clickable=!0},slickPrev(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"previous"}),0))},slickNext(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"next"}),0))},slickGoTo(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"index",index:e,currentSlide:this.currentSlide},t),0))},play(){let e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else{if(!D((0,c.A)((0,c.A)({},this.$props),this.$data)))return!1;e=this.currentSlide+this.slidesToScroll}this.slideHandler(e)},handleAutoPlay(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);const t=this.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.setState({autoplaying:"playing"})},pause(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);const t=this.autoplaying;"paused"===e?this.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||this.setState({autoplaying:"focused"}):"playing"===t&&this.setState({autoplaying:"hovered"})},onDotsOver(){this.autoplay&&this.pause("hovered")},onDotsLeave(){this.autoplay&&"hovered"===this.autoplaying&&this.handleAutoPlay("leave")},onTrackOver(){this.autoplay&&this.pause("hovered")},onTrackLeave(){this.autoplay&&"hovered"===this.autoplaying&&this.handleAutoPlay("leave")},onSlideFocus(){this.autoplay&&this.pause("focused")},onSlideBlur(){this.autoplay&&"focused"===this.autoplaying&&this.handleAutoPlay("blur")},customPaging(e){let{i:t}=e;return(0,i.bF)("button",null,[t+1])},appendDots(e){let{dots:t}=e;return(0,i.bF)("ul",{style:{display:"block"}},[t])}},render(){const e=(0,l.A)("slick-slider",this.$attrs.class,{"slick-vertical":this.vertical,"slick-initialized":!0}),t=(0,c.A)((0,c.A)({},this.$props),this.$data);let n=N(t,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]);const{pauseOnHover:r}=this.$props;let o,a,s;if(n=(0,c.A)((0,c.A)({},n),{focusOnSelect:this.focusOnSelect&&this.clickable?this.selectHandler:null,ref:this.trackRefHandler,onMouseleave:r?this.onTrackLeave:ve,onMouseover:r?this.onTrackOver:ve}),!0===this.dots&&this.slideCount>=this.slidesToShow){let e=N(t,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","infinite","appendDots"]);e.customPaging=this.customPaging,e.appendDots=this.appendDots;const{customPaging:n,appendDots:r}=this.$slots;n&&(e.customPaging=n),r&&(e.appendDots=r);const{pauseOnDotsHover:a}=this.$props;e=(0,c.A)((0,c.A)({},e),{clickHandler:this.changeSlide,onMouseover:a?this.onDotsOver:ve,onMouseleave:a?this.onDotsLeave:ve}),o=(0,i.bF)(ue,e,null)}const u=N(t,["infinite","centerMode","currentSlide","slideCount","slidesToShow"]);u.clickHandler=this.changeSlide;const{prevArrow:d,nextArrow:h}=this.$slots;d&&(u.prevArrow=d),h&&(u.nextArrow=h),this.arrows&&(a=(0,i.bF)(fe,u,null),s=(0,i.bF)(pe,u,null));let f=null;this.vertical&&(f={height:"number"===typeof this.listHeight?`${this.listHeight}px`:this.listHeight});let p=null;!1===this.vertical?!0===this.centerMode&&(p={padding:"0px "+this.centerPadding}):!0===this.centerMode&&(p={padding:this.centerPadding+" 0px"});const g=(0,c.A)((0,c.A)({},f),p),m=this.touchMove;let v={ref:this.listRefHandler,class:"slick-list",style:g,onClick:this.clickHandler,onMousedown:m?this.swipeStart:ve,onMousemove:this.dragging&&m?this.swipeMove:ve,onMouseup:m?this.swipeEnd:ve,onMouseleave:this.dragging&&m?this.swipeEnd:ve,[ge.A?"onTouchstartPassive":"onTouchstart"]:m?this.swipeStart:ve,[ge.A?"onTouchmovePassive":"onTouchmove"]:this.dragging&&m?this.swipeMove:ve,onTouchend:m?this.touchEnd:ve,onTouchcancel:this.dragging&&m?this.swipeEnd:ve,onKeydown:this.accessibility?this.keyHandler:ve},A={class:e,dir:"ltr",style:this.$attrs.style};return this.unslick&&(v={class:"slick-list",ref:this.listRefHandler},A={class:e}),(0,i.bF)("div",A,[this.unslick?"":a,(0,i.bF)("div",v,[(0,i.bF)(se,n,{default:()=>[this.children]})]),this.unslick?"":s,this.unslick?"":o])}},be=(0,i.pM)({name:"Slider",mixins:[p.A],inheritAttrs:!1,props:(0,c.A)({},b),data(){return this._responsiveMediaHandlers=[],{breakpoint:null}},mounted(){if(this.responsive){const e=this.responsive.map(e=>e.breakpoint);e.sort((e,t)=>e-t),e.forEach((t,n)=>{let r;r=f(0===n?{minWidth:0,maxWidth:t}:{minWidth:e[n-1]+1,maxWidth:t}),ee()&&this.media(r,()=>{this.setState({breakpoint:t})})});const t=f({minWidth:e.slice(-1)[0]});ee()&&this.media(t,()=>{this.setState({breakpoint:null})})}},beforeUnmount(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})},methods:{innerSliderRefHandler(e){this.innerSlider=e},media(e,t){const n=window.matchMedia(e),r=e=>{let{matches:n}=e;n&&t()};n.addListener(r),r(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:r})},slickPrev(){var e;null===(e=this.innerSlider)||void 0===e||e.slickPrev()},slickNext(){var e;null===(e=this.innerSlider)||void 0===e||e.slickNext()},slickGoTo(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;null===(n=this.innerSlider)||void 0===n||n.slickGoTo(e,t)},slickPause(){var e;null===(e=this.innerSlider)||void 0===e||e.pause("paused")},slickPlay(){var e;null===(e=this.innerSlider)||void 0===e||e.handleAutoPlay("play")}},render(){var e;let t,n;this.breakpoint?(n=this.responsive.filter(e=>e.breakpoint===this.breakpoint),t="unslick"===n[0].settings?"unslick":(0,c.A)((0,c.A)({},this.$props),n[0].settings)):t=(0,c.A)({},this.$props),t.centerMode&&(t.slidesToScroll,t.slidesToScroll=1),t.fade&&(t.slidesToShow,t.slidesToScroll,t.slidesToShow=1,t.slidesToScroll=1);let o=(0,te.$c)(this)||[];o=o.filter(e=>"string"===typeof e?!!e.trim():!!e),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),t.variableWidth=!1);const a=[];let s=null;for(let r=0;r<o.length;r+=t.rows*t.slidesPerRow){const n=[];for(let a=r;a<r+t.rows*t.slidesPerRow;a+=t.slidesPerRow){const l=[];for(let n=a;n<a+t.slidesPerRow;n+=1){if(t.variableWidth&&(null===(e=o[n].props)||void 0===e?void 0:e.style)&&(s=o[n].props.style.width),n>=o.length)break;l.push((0,g.Ob)(o[n],{key:100*r+10*a+n,tabindex:-1,style:{width:100/t.slidesPerRow+"%",display:"inline-block"}}))}n.push((0,i.bF)("div",{key:10*r+a},[l]))}t.variableWidth?a.push((0,i.bF)("div",{key:r,style:{width:s}},[n])):a.push((0,i.bF)("div",{key:r},[n]))}if("unslick"===t){const e="regular slider "+(this.className||"");return(0,i.bF)("div",{class:e},[o])}a.length<=t.slidesToShow&&(t.unslick=!0);const l=(0,c.A)((0,c.A)((0,c.A)({},this.$attrs),t),{children:a,ref:this.innerSliderRefHandler});return(0,i.bF)(Ae,(0,r.A)((0,r.A)({},l),{},{__propsSymbol__:[]}),this.$slots)}}),ye=be,we=n(44678),_e=n(60674),xe=n(90112),Ee=n(9519),Se=n(36068);const Ce=e=>{const{componentCls:t,antCls:n,carouselArrowSize:r,carouselDotOffset:i,marginXXS:o}=e,a=1.25*-r,s=o;return{[t]:(0,c.A)((0,c.A)({},(0,Se.dF)(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:r,height:r,marginTop:-r/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:a,"&::before":{content:'"←"'}},".slick-next":{insetInlineEnd:a,"&::before":{content:'"→"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,listStyle:"none","&-bottom":{bottom:i},"&-top":{top:i,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:s,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-s,content:'""'}},"&.slick-active":{width:e.dotWidthActive,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},Te=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:r}=e,i={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:(0,c.A)((0,c.A)({},i),{margin:`${r}px 0`,verticalAlign:"baseline",button:i,"&.slick-active":(0,c.A)((0,c.A)({},i),{button:i})})}}}},ke=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]};var Oe=(0,xe.A)("Carousel",e=>{const{controlHeightLG:t,controlHeightSM:n}=e,r=(0,Ee.h1)(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[Ce(r),Te(r),ke(r)]},{dotWidth:16,dotHeight:3,dotWidthActive:24}),Me=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Ie=()=>({effect:(0,we.WO)(),dots:(0,we.HE)(!0),vertical:(0,we.HE)(),autoplay:(0,we.HE)(),easing:String,beforeChange:(0,we.Fg)(),afterChange:(0,we.Fg)(),prefixCls:String,accessibility:(0,we.HE)(),nextArrow:a.A.any,prevArrow:a.A.any,pauseOnHover:(0,we.HE)(),adaptiveHeight:(0,we.HE)(),arrows:(0,we.HE)(!1),autoplaySpeed:Number,centerMode:(0,we.HE)(),centerPadding:String,cssEase:String,dotsClass:String,draggable:(0,we.HE)(!1),fade:(0,we.HE)(),focusOnSelect:(0,we.HE)(),infinite:(0,we.HE)(),initialSlide:Number,lazyLoad:(0,we.WO)(),rtl:(0,we.HE)(),slide:String,slidesToShow:Number,slidesToScroll:Number,speed:Number,swipe:(0,we.HE)(),swipeToSlide:(0,we.HE)(),swipeEvent:(0,we.Fg)(),touchMove:(0,we.HE)(),touchThreshold:Number,variableWidth:(0,we.HE)(),useCSS:(0,we.HE)(),slickGoTo:Number,responsive:Array,dotPosition:(0,we.WO)(),verticalSwiping:(0,we.HE)(!1)}),De=(0,i.pM)({compatConfig:{MODE:3},name:"ACarousel",inheritAttrs:!1,props:Ie(),setup(e,t){let{slots:n,attrs:a,expose:c}=t;const u=(0,o.KR)(),d=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;null===(n=u.value)||void 0===n||n.slickGoTo(e,t)};c({goTo:d,autoplay:e=>{var t,n;null===(n=null===(t=u.value)||void 0===t?void 0:t.innerSlider)||void 0===n||n.handleAutoPlay(e)},prev:()=>{var e;null===(e=u.value)||void 0===e||e.slickPrev()},next:()=>{var e;null===(e=u.value)||void 0===e||e.slickNext()},innerSlider:(0,i.EW)(()=>{var e;return null===(e=u.value)||void 0===e?void 0:e.innerSlider})}),(0,i.nT)(()=>{(0,s.Ay)(void 0===e.vertical,"Carousel","`vertical` is deprecated, please use `dotPosition` instead.")});const{prefixCls:h,direction:f}=(0,_e.A)("carousel",e),[p,g]=Oe(h),m=(0,i.EW)(()=>e.dotPosition?e.dotPosition:void 0!==e.vertical&&e.vertical?"right":"bottom"),v=(0,i.EW)(()=>"left"===m.value||"right"===m.value),A=(0,i.EW)(()=>{const t="slick-dots";return(0,l.A)({[t]:!0,[`${t}-${m.value}`]:!0,[`${e.dotsClass}`]:!!e.dotsClass})});return()=>{const{dots:t,arrows:o,draggable:s,effect:c}=e,{class:d,style:m}=a,b=Me(a,["class","style"]),y="fade"===c||e.fade,w=(0,l.A)(h.value,{[`${h.value}-rtl`]:"rtl"===f.value,[`${h.value}-vertical`]:v.value,[`${d}`]:!!d},g.value);return p((0,i.bF)("div",{class:w,style:m},[(0,i.bF)(ye,(0,r.A)((0,r.A)((0,r.A)({ref:u},e),b),{},{dots:!!t,dotsClass:A.value,arrows:o,draggable:s,fade:y,vertical:v.value}),n)]))}}});var Ne=(0,we.GU)(De)},30050:function(e,t,n){"use strict";n.d(t,{A:function(){return Jt},a:function(){return J},b:function(){return re},c:function(){return G},l:function(){return bn},m:function(){return a},n:function(){return dn},o:function(){return nn},p:function(){return sn},s:function(){return X},u:function(){return s}});n(44114),n(18111),n(22489),n(20116),n(7588),n(61701),n(18237);var r=n(73178),i=n(56768),o=n(90144);function a(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24,t=1540483477*(65535&t)+(59797*(t>>>16)<<16),t^=t>>>24,n=1540483477*(65535&t)+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=1540483477*(65535&n)+(59797*(n>>>16)<<16)}return n^=n>>>13,n=1540483477*(65535&n)+(59797*(n>>>16)<<16),((n^n>>>15)>>>0).toString(36)}var s={animationIterationCount:1,aspectRatio: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,scale: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},l="comm",c="rule",u="decl",d="@import",h="@keyframes",f="@layer",p=Math.abs,g=String.fromCharCode;function m(e){return e.trim()}function v(e,t,n){return e.replace(t,n)}function A(e,t,n){return e.indexOf(t,n)}function b(e,t){return 0|e.charCodeAt(t)}function y(e,t,n){return e.slice(t,n)}function w(e){return e.length}function _(e){return e.length}function x(e,t){return t.push(e),e}var E=1,S=1,C=0,T=0,k=0,O="";function M(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:E,column:S,length:a,return:"",siblings:s}}function I(){return k}function D(){return k=T>0?b(O,--T):0,S--,10===k&&(S=1,E--),k}function N(){return k=T<C?b(O,T++):0,S++,10===k&&(S=1,E++),k}function R(){return b(O,T)}function L(){return T}function B(e,t){return y(O,e,t)}function P(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function F(e){return E=S=1,C=w(O=e),T=0,[]}function $(e){return O="",e}function j(e){return m(B(T-1,Q(91===e?e+2:40===e?e+1:e)))}function H(e){for(;(k=R())&&k<33;)N();return P(e)>2||P(k)>3?"":" "}function U(e,t){for(;--t&&N()&&!(k<48||k>102||k>57&&k<65||k>70&&k<97););return B(e,L()+(t<6&&32==R()&&32==N()))}function Q(e){for(;N();)switch(k){case e:return T;case 34:case 39:34!==e&&39!==e&&Q(k);break;case 40:41===e&&Q(e);break;case 92:N();break}return T}function z(e,t){for(;N()&&e+k!==57;)if(e+k===84&&47===R())break;return"/*"+B(t,T-1)+"*"+g(47===e?e:N())}function W(e){for(;!P(R());)N();return B(e,T)}function G(e){return $(V("",null,null,null,[""],e=F(e),0,[0],e))}function V(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,h=0,f=0,m=0,_=1,E=1,S=1,C=0,T="",k=i,O=o,M=r,I=T;E;)switch(m=C,C=N()){case 40:if(108!=m&&58==b(I,d-1)){-1!=A(I+=v(j(C),"&","&\f"),"&\f",p(c?s[c-1]:0))&&(S=-1);break}case 34:case 39:case 91:I+=j(C);break;case 9:case 10:case 13:case 32:I+=H(m);break;case 92:I+=U(L()-1,7);continue;case 47:switch(R()){case 42:case 47:x(Y(z(N(),L()),t,n,l),l),(5==P(m||1)||5==P(R()||1))&&w(I)&&" "!==y(I,-1,void 0)&&(I+=" ");break;default:I+="/"}break;case 123*_:s[c++]=w(I)*S;case 125*_:case 59:case 0:switch(C){case 0:case 125:E=0;case 59+u:-1==S&&(I=v(I,/\f/g,"")),f>0&&(w(I)-d||0===_&&47===m)&&x(f>32?q(I+";",r,n,d-1,l):q(v(I," ","")+";",r,n,d-2,l),l);break;case 59:I+=";";default:if(x(M=K(I,t,n,c,u,i,s,T,k=[],O=[],d,o),o),123===C)if(0===u)V(I,t,M,M,k,o,d,s,O);else switch(99===h&&110===b(I,3)?100:h){case 100:case 108:case 109:case 115:V(e,M,M,r&&x(K(e,M,M,0,0,i,s,T,i,k=[],d,O),O),i,O,d,s,r?k:O);break;default:V(I,M,M,M,[""],O,0,s,O)}}c=u=f=0,_=S=1,T=I="",d=a;break;case 58:d=1+w(I),f=m;default:if(_<1)if(123==C)--_;else if(125==C&&0==_++&&125==D())continue;switch(I+=g(C),C*_){case 38:S=u>0?1:(I+="\f",-1);break;case 44:s[c++]=(w(I)-1)*S,S=1;break;case 64:45===R()&&(I+=j(N())),h=R(),u=d=w(T=I+=W(L())),C++;break;case 45:45===m&&2==w(I)&&(_=0)}}return o}function K(e,t,n,r,i,o,a,s,l,u,d,h){for(var f=i-1,g=0===i?o:[""],A=_(g),b=0,w=0,x=0;b<r;++b)for(var E=0,S=y(e,f+1,f=p(w=a[b])),C=e;E<A;++E)(C=m(w>0?g[E]+" "+S:v(S,/&\f/g,g[E])))&&(l[x++]=C);return M(e,t,n,0===i?c:s,l,u,d,h)}function Y(e,t,n,r){return M(e,t,n,l,g(I()),y(e,2,-2),0,r)}function q(e,t,n,r,i){return M(e,t,n,u,y(e,0,r),y(e,r+1,-1),r,i)}function X(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function J(e,t,n,r){switch(e.type){case f:if(e.children.length)break;case d:case u:return e.return=e.return||e.value;case l:return"";case h:return e.return=e.value+"{"+X(e.children,r)+"}";case c:if(!w(e.value=e.props.join(",")))return""}return w(n=X(e.children,r))?e.return=e.value+"{"+n+"}":""}var Z,ee={exports:{}};
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/function te(){return Z||(Z=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var o in e)t.call(e,o)&&e[o]&&(r=i(r,o));return r}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(ee)),ee.exports}var ne=te();const re=(0,r.g)(ne);function ie(e,t){oe(e)&&(e="100%");var n=ae(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t)),e)}function oe(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)}function ae(e){return"string"==typeof e&&-1!==e.indexOf("%")}function se(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function le(e){return e<=1?"".concat(100*Number(e),"%"):e}function ce(e){return 1===e.length?"0"+e:String(e)}function ue(e,t,n){return{r:255*ie(e,255),g:255*ie(t,255),b:255*ie(n,255)}}function de(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function he(e,t,n){var r,i,o;if(e=ie(e,360),t=ie(t,100),n=ie(n,100),0===t)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=de(s,a,e+1/3),i=de(s,a,e),o=de(s,a,e-1/3)}return{r:255*r,g:255*i,b:255*o}}function fe(e,t,n){e=ie(e,255),t=ie(t,255),n=ie(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,l=0===r?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4;break}o/=6}return{h:o,s:l,v:a}}function pe(e,t,n){e=6*ie(e,360),t=ie(t,100),n=ie(n,100);var r=Math.floor(e),i=e-r,o=n*(1-t),a=n*(1-i*t),s=n*(1-(1-i)*t),l=r%6,c=[n,a,o,o,s,n][l],u=[s,n,n,a,o,o][l],d=[o,o,s,n,n,a][l];return{r:255*c,g:255*u,b:255*d}}function ge(e,t,n,r){var i=[ce(Math.round(e).toString(16)),ce(Math.round(t).toString(16)),ce(Math.round(n).toString(16))];return i.join("")}function me(e){return ve(e)/255}function ve(e){return parseInt(e,16)}var Ae={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",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",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#663399",red:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function be(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return"string"==typeof e&&(e=Ce(e)),"object"==typeof e&&(Te(e.r)&&Te(e.g)&&Te(e.b)?(t=ue(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):Te(e.h)&&Te(e.s)&&Te(e.v)?(r=le(e.s),i=le(e.v),t=pe(e.h,r,i),a=!0,s="hsv"):Te(e.h)&&Te(e.s)&&Te(e.l)&&(r=le(e.s),o=le(e.l),t=he(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=se(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var ye="[-\\+]?\\d+%?",we="[-\\+]?\\d*\\.\\d+%?",_e="(?:".concat(we,")|(?:").concat(ye,")"),xe="[\\s|\\(]+(".concat(_e,")[,|\\s]+(").concat(_e,")[,|\\s]+(").concat(_e,")\\s*\\)?"),Ee="[\\s|\\(]+(".concat(_e,")[,|\\s]+(").concat(_e,")[,|\\s]+(").concat(_e,")[,|\\s]+(").concat(_e,")\\s*\\)?"),Se={CSS_UNIT:new RegExp(_e),rgb:new RegExp("rgb"+xe),rgba:new RegExp("rgba"+Ee),hsl:new RegExp("hsl"+xe),hsla:new RegExp("hsla"+Ee),hsv:new RegExp("hsv"+xe),hsva:new RegExp("hsva"+Ee),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ce(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(Ae[e])e=Ae[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=Se.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Se.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Se.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Se.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Se.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Se.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Se.hex8.exec(e),n?{r:ve(n[1]),g:ve(n[2]),b:ve(n[3]),a:me(n[4]),format:t?"name":"hex8"}:(n=Se.hex6.exec(e),n?{r:ve(n[1]),g:ve(n[2]),b:ve(n[3]),format:t?"name":"hex"}:(n=Se.hex4.exec(e),n?{r:ve(n[1]+n[1]),g:ve(n[2]+n[2]),b:ve(n[3]+n[3]),a:me(n[4]+n[4]),format:t?"name":"hex8"}:(n=Se.hex3.exec(e),!!n&&{r:ve(n[1]+n[1]),g:ve(n[2]+n[2]),b:ve(n[3]+n[3]),format:t?"name":"hex"})))))))))}function Te(e){return!!Se.CSS_UNIT.exec(String(e))}var ke=2,Oe=.16,Me=.05,Ie=.05,De=.15,Ne=5,Re=4,Le=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Be(e){var t=e.r,n=e.g,r=e.b,i=fe(t,n,r);return{h:360*i.h,s:i.s,v:i.v}}function Pe(e){var t=e.r,n=e.g,r=e.b;return"#".concat(ge(t,n,r))}function Fe(e,t,n){var r=n/100,i={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return i}function $e(e,t,n){var r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-ke*t:Math.round(e.h)+ke*t:n?Math.round(e.h)+ke*t:Math.round(e.h)-ke*t,r<0?r+=360:r>=360&&(r-=360),r}function je(e,t,n){return 0===e.h&&0===e.s?e.s:(r=n?e.s-Oe*t:t===Re?e.s+Oe:e.s+Me*t,r>1&&(r=1),n&&t===Ne&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function He(e,t,n){var r;return r=n?e.v+Ie*t:e.v-De*t,r>1&&(r=1),Number(r.toFixed(2))}function Ue(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=be(e),i=Ne;i>0;i-=1){var o=Be(r),a=Pe(be({h:$e(o,i,!0),s:je(o,i,!0),v:He(o,i,!0)}));n.push(a)}n.push(Pe(r));for(var s=1;s<=Re;s+=1){var l=Be(r),c=Pe(be({h:$e(l,s),s:je(l,s),v:He(l,s)}));n.push(c)}return"dark"===t.theme?Le.map(function(e){var r=e.index,i=e.opacity,o=Pe(Fe(be(t.backgroundColor||"#141414"),be(n[r]),100*i));return o}):n}var Qe={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ze={},We={};Object.keys(Qe).forEach(function(e){ze[e]=Ue(Qe[e]),ze[e].primary=ze[e][5],We[e]=Ue(Qe[e],{theme:"dark",backgroundColor:"#141414"}),We[e].primary=We[e][5]});var Ge=ze.blue,Ve=Symbol("iconContext"),Ke=function(){return(0,i.WQ)(Ve,{prefixCls:(0,o.KR)("anticon"),rootClassName:(0,o.KR)(""),csp:(0,o.KR)()})};function Ye(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function qe(e,t){return!(!e||!e.contains)&&e.contains(t)}var Xe="data-vc-order",Je="vc-icon-key",Ze=new Map;function et(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Je}function tt(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function nt(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function rt(e){return Array.from((Ze.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function it(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ye())return null;var n=t.csp,r=t.prepend,i=document.createElement("style");i.setAttribute(Xe,nt(r)),n&&n.nonce&&(i.nonce=n.nonce),i.innerHTML=e;var o=tt(t),a=o.firstChild;if(r){if("queue"===r){var s=rt(o).filter(function(e){return["prepend","prependQueue"].includes(e.getAttribute(Xe))});if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a)}else o.appendChild(i);return i}function ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=tt(t);return rt(n).find(function(n){return n.getAttribute(et(t))===e})}function at(e,t){var n=Ze.get(e);if(!n||!qe(document,n)){var r=it("",t),i=r.parentNode;Ze.set(e,i),e.removeChild(r)}}function st(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=tt(n);at(r,n);var i=ot(t,n);if(i)return n.csp&&n.csp.nonce&&i.nonce!==n.csp.nonce&&(i.nonce=n.csp.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;var o=it(e,n);return o.setAttribute(et(n),t),o}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ct(e,t,n[t])})}return e}function ct(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ut(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function dt(e,t,n){return n?(0,i.h)(e.tag,lt({key:t},n,e.attrs),(e.children||[]).map(function(n,r){return dt(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})):(0,i.h)(e.tag,lt({key:t},e.attrs),(e.children||[]).map(function(n,r){return dt(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))}function ht(e){return Ue(e)[0]}function ft(e){return e?Array.isArray(e)?e:[e]:[]}var pt="\n.anticon {\n  display: inline-block;\n  color: inherit;\n  font-style: normal;\n  line-height: 0;\n  text-align: center;\n  text-transform: none;\n  vertical-align: -0.125em;\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n  line-height: 1;\n}\n\n.anticon svg {\n  display: inline-block;\n}\n\n.anticon::before {\n  display: none;\n}\n\n.anticon .anticon-icon {\n  display: block;\n}\n\n.anticon[tabindex] {\n  cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n  display: inline-block;\n  -webkit-animation: loadingCircle 1s infinite linear;\n  animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n@keyframes loadingCircle {\n  100% {\n    -webkit-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n";function gt(e){return e&&e.getRootNode&&e.getRootNode()}function mt(e){return!!Ye()&&gt(e)instanceof ShadowRoot}function vt(e){return mt(e)?gt(e):null}var At=function(){var e=Ke(),t=e.prefixCls,n=e.csp,r=(0,i.nI)(),o=pt;t&&(o=o.replace(/anticon/g,t.value)),(0,i.dY)(function(){if(Ye()){var e=r.vnode.el,t=vt(e);st(o,"@ant-design-vue-icons",{prepend:!0,csp:n.value,attachTo:t})}})},bt=["icon","primaryColor","secondaryColor"];function yt(e,t){if(null==e)return{};var n,r,i=wt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wt(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&(i[n]=e[n]);return i}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){xt(e,t,n[t])})}return e}function xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Et=(0,o.Kh)({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function St(e){var t=e.primaryColor,n=e.secondaryColor;Et.primaryColor=t,Et.secondaryColor=n||ht(t),Et.calculated=!!n}function Ct(){return _t({},Et)}var Tt=function(e,t){var n=_t({},e,t.attrs),r=n.icon,i=n.primaryColor,o=n.secondaryColor,a=yt(n,bt),s=Et;if(i&&(s={primaryColor:i,secondaryColor:o||ht(i)}),ut(r),!ut(r))return null;var l=r;return l&&"function"==typeof l.icon&&(l=_t({},l,{icon:l.icon(s.primaryColor,s.secondaryColor)})),dt(l.icon,"svg-".concat(l.name),_t({},a,{"data-icon":l.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};function kt(e,t){return Nt(e)||Dt(e,t)||Mt(e,t)||Ot()}function Ot(){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 Mt(e,t){if(e){if("string"==typeof e)return It(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return It(e,t)}}function It(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dt(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{!a&&null!=n.return&&n.return()}finally{if(s)throw i}}return o}}function Nt(e){if(Array.isArray(e))return e}function Rt(e){var t=ft(e),n=kt(t,2),r=n[0],i=n[1];return Tt.setTwoToneColors({primaryColor:r,secondaryColor:i})}function Lt(){var e=Tt.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}Tt.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Tt.inheritAttrs=!1,Tt.displayName="IconBase",Tt.getTwoToneColors=Ct,Tt.setTwoToneColors=St;var Bt=(0,i.pM)({name:"InsertStyles",setup:function(){return At(),function(){return null}}}),Pt=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Ft(e,t){return Qt(e)||Ut(e,t)||jt(e,t)||$t()}function $t(){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 jt(e,t){if(e){if("string"==typeof e)return Ht(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ht(e,t)}}function Ht(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ut(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{!a&&null!=n.return&&n.return()}finally{if(s)throw i}}return o}}function Qt(e){if(Array.isArray(e))return e}function zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Wt(e,t,n[t])})}return e}function Wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gt(e,t){if(null==e)return{};var n,r,i=Vt(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Vt(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&(i[n]=e[n]);return i}Rt(Ge.primary);var Kt=function(e,t){var n,r=zt({},e,t.attrs),o=r.class,a=r.icon,s=r.spin,l=r.rotate,c=r.tabindex,u=r.twoToneColor,d=r.onClick,h=Gt(r,Pt),f=Ke(),p=f.prefixCls,g=f.rootClassName,m=(n={},Wt(n,g.value,!!g.value),Wt(n,p.value,!0),Wt(n,"".concat(p.value,"-").concat(a.name),!!a.name),Wt(n,"".concat(p.value,"-spin"),!!s||"loading"===a.name),n),v=c;void 0===v&&d&&(v=-1);var A=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,b=ft(u),y=Ft(b,2),w=y[0],_=y[1];return(0,i.bF)("span",zt({role:"img","aria-label":a.name},h,{onClick:d,class:[m,o],tabindex:v}),[(0,i.bF)(Tt,{icon:a,primaryColor:w,secondaryColor:_,style:A},null),(0,i.bF)(Bt,null,null)])};Kt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},Kt.displayName="AntdIcon",Kt.inheritAttrs=!1,Kt.getTwoToneColor=Lt,Kt.setTwoToneColor=Rt;var Yt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"};function qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Xt(e,t,n[t])})}return e}function Xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jt=function(e,t){var n=qt({},e,t.attrs);return(0,i.bF)(Kt,qt({},n,{icon:Yt}),null)};Jt.displayName="ArrowUpOutlined",Jt.inheritAttrs=!1;var Zt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z"}},{tag:"path",attrs:{d:"M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z"}}]},name:"audio-muted",theme:"outlined"};function en(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){tn(e,t,n[t])})}return e}function tn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nn=function(e,t){var n=en({},e,t.attrs);return(0,i.bF)(Kt,en({},n,{icon:Zt}),null)};nn.displayName="AudioMutedOutlined",nn.inheritAttrs=!1;var rn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"};function on(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){an(e,t,n[t])})}return e}function an(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sn=function(e,t){var n=on({},e,t.attrs);return(0,i.bF)(Kt,on({},n,{icon:rn}),null)};sn.displayName="AudioOutlined",sn.inheritAttrs=!1;var ln={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};function cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){un(e,t,n[t])})}return e}function un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dn=function(e,t){var n=cn({},e,t.attrs);return(0,i.bF)(Kt,cn({},n,{icon:ln}),null)};dn.displayName="ClearOutlined",dn.inheritAttrs=!1;var hn={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){pn(e,t,n[t])})}return e}function pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gn=function(e,t){var n=fn({},e,t.attrs);return(0,i.bF)(Kt,fn({},n,{icon:hn}),null)};gn.displayName="CloseCircleFilled",gn.inheritAttrs=!1;var mn={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){An(e,t,n[t])})}return e}function An(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bn=function(e,t){var n=vn({},e,t.attrs);return(0,i.bF)(Kt,vn({},n,{icon:mn}),null)};bn.displayName="CloseOutlined",bn.inheritAttrs=!1;var yn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){_n(e,t,n[t])})}return e}function _n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xn=function(e,t){var n=wn({},e,t.attrs);return(0,i.bF)(Kt,wn({},n,{icon:yn}),null)};xn.displayName="EllipsisOutlined",xn.inheritAttrs=!1;var En={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"};function Sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Cn(e,t,n[t])})}return e}function Cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tn=function(e,t){var n=Sn({},e,t.attrs);return(0,i.bF)(Kt,Sn({},n,{icon:En}),null)};Tn.displayName="FileExcelFilled",Tn.inheritAttrs=!1;var kn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0112.6 0l41.1 52.4 77.8-99.2a8 8 0 0112.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"}}]},name:"file-image",theme:"filled"};function On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Mn(e,t,n[t])})}return e}function Mn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var In=function(e,t){var n=On({},e,t.attrs);return(0,i.bF)(Kt,On({},n,{icon:kn}),null)};In.displayName="FileImageFilled",In.inheritAttrs=!1;var Dn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM426.13 600.93l59.11 132.97a16 16 0 0014.62 9.5h24.06a16 16 0 0014.63-9.51l59.1-133.35V758a16 16 0 0016.01 16H641a16 16 0 0016-16V486a16 16 0 00-16-16h-34.75a16 16 0 00-14.67 9.62L512.1 662.2l-79.48-182.59a16 16 0 00-14.67-9.61H383a16 16 0 00-16 16v272a16 16 0 0016 16h27.13a16 16 0 0016-16V600.93z"}}]},name:"file-markdown",theme:"filled"};function Nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Rn(e,t,n[t])})}return e}function Rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ln=function(e,t){var n=Nn({},e,t.attrs);return(0,i.bF)(Kt,Nn({},n,{icon:Dn}),null)};Ln.displayName="FileMarkdownFilled",Ln.inheritAttrs=!1;var Bn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 015.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 01-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 01-1.12-.15 2.07 2.07 0 01-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 01-1.36 6.31 6.7 6.7 0 01-2.17 1.28z"}}]},name:"file-pdf",theme:"filled"};function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Fn(e,t,n[t])})}return e}function Fn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $n=function(e,t){var n=Pn({},e,t.attrs);return(0,i.bF)(Kt,Pn({},n,{icon:Bn}),null)};$n.displayName="FilePdfFilled",$n.inheritAttrs=!1;var jn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM468.53 760v-91.54h59.27c60.57 0 100.2-39.65 100.2-98.12 0-58.22-39.58-98.34-99.98-98.34H424a12 12 0 00-12 12v276a12 12 0 0012 12h32.53a12 12 0 0012-12zm0-139.33h34.9c47.82 0 67.19-12.93 67.19-50.33 0-32.05-18.12-50.12-49.87-50.12h-52.22v100.45z"}}]},name:"file-ppt",theme:"filled"};function Hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Un(e,t,n[t])})}return e}function Un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qn=function(e,t){var n=Hn({},e,t.attrs);return(0,i.bF)(Kt,Hn({},n,{icon:jn}),null)};Qn.displayName="FilePptFilled",Qn.inheritAttrs=!1;var zn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"};function Wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Gn(e,t,n[t])})}return e}function Gn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vn=function(e,t){var n=Wn({},e,t.attrs);return(0,i.bF)(Kt,Wn({},n,{icon:zn}),null)};Vn.displayName="FileTextFilled",Vn.inheritAttrs=!1;var Kn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM512 566.1l52.81 197a12 12 0 0011.6 8.9h31.77a12 12 0 0011.6-8.88l74.37-276a12 12 0 00.4-3.12 12 12 0 00-12-12h-35.57a12 12 0 00-11.7 9.31l-45.78 199.1-49.76-199.32A12 12 0 00528.1 472h-32.2a12 12 0 00-11.64 9.1L434.6 680.01 388.5 481.3a12 12 0 00-11.68-9.29h-35.39a12 12 0 00-3.11.41 12 12 0 00-8.47 14.7l74.17 276A12 12 0 00415.6 772h31.99a12 12 0 0011.59-8.9l52.81-197z"}}]},name:"file-word",theme:"filled"};function Yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){qn(e,t,n[t])})}return e}function qn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xn=function(e,t){var n=Yn({},e,t.attrs);return(0,i.bF)(Kt,Yn({},n,{icon:Kn}),null)};Xn.displayName="FileWordFilled",Xn.inheritAttrs=!1;var Jn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"}}]},name:"file-zip",theme:"filled"};function Zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){er(e,t,n[t])})}return e}function er(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tr=function(e,t){var n=Zn({},e,t.attrs);return(0,i.bF)(Kt,Zn({},n,{icon:Jn}),null)};tr.displayName="FileZipFilled",tr.inheritAttrs=!1;var nr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function rr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ir(e,t,n[t])})}return e}function ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var or=function(e,t){var n=rr({},e,t.attrs);return(0,i.bF)(Kt,rr({},n,{icon:nr}),null)};or.displayName="LeftOutlined",or.inheritAttrs=!1;var ar={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){lr(e,t,n[t])})}return e}function lr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cr=function(e,t){var n=sr({},e,t.attrs);return(0,i.bF)(Kt,sr({},n,{icon:ar}),null)};cr.displayName="PlusOutlined",cr.inheritAttrs=!1;var ur={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};function dr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){hr(e,t,n[t])})}return e}function hr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fr=function(e,t){var n=dr({},e,t.attrs);return(0,i.bF)(Kt,dr({},n,{icon:ur}),null)};fr.displayName="RightOutlined",fr.inheritAttrs=!1;const pr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&(globalThis,WorkerGlobalScope);pr&&window;Math.round},30094:function(e,t,n){"use strict";n.d(t,{A_:function(){return o},Ay:function(){return d},Eu:function(){return f},Vj:function(){return h},j:function(){return l},oq:function(){return u},tC:function(){return c},uQ:function(){return s}});n(44114),n(18111),n(61701);var r=n(42529);function i(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];var a=t.call.apply(t,[e].concat(i));n&&"function"===typeof n&&(a&&a.then?a.then(function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];n.call.apply(n,[e].concat(r))}):n.call.apply(n,[e].concat(i)))}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{pre:null,next:null};return this.__hooks||(this.__hooks={}),!this.__hooks[e]&&(this.__hooks[e]=null),function(){var o=arguments,a=this;if(n.pre)try{var s;(s=n.pre).call.apply(s,[this].concat(Array.prototype.slice.call(arguments)))}catch(c){throw c.message="[pluginName: ".concat(this.pluginName,":").concat(e,":pre error] >> ").concat(c.message),c}if(this.__hooks&&this.__hooks[e])try{var l=f.apply(void 0,[this,e,t].concat(Array.prototype.slice.call(arguments)));l?l.then?l.then(function(e){!1!==e&&i.apply(void 0,[a,t,n.next].concat((0,r.Og)(o)))}).catch(function(e){throw e}):i.apply(void 0,[this,t,n.next].concat(Array.prototype.slice.call(arguments))):void 0===l&&i.apply(void 0,[this,t,n.next].concat(Array.prototype.slice.call(arguments)))}catch(c){throw c.message="[pluginName: ".concat(this.pluginName,":").concat(e,"] >> ").concat(c.message),c}else i.apply(void 0,[this,t,n.next].concat(Array.prototype.slice.call(arguments)))}.bind(this)}function a(e,t){var n=this.__hooks;if(!n||!Array.isArray(n[e]))return-1;for(var r=n[e],i=0;i<r.length;i++)if(r[i]===t)return i;return-1}function s(e,t){var n=this.__hooks;if(n)return n.hasOwnProperty(e)?(Array.isArray(n[e])||(n[e]=[]),-1===a.call(this,e,t)&&n[e].push(t),!0):(console.warn("has no supported hook which name [".concat(e,"]")),!1)}function l(e,t){var n=this.__hooks;if(n)if(Array.isArray(n[e])){var r=n[e],i=a.call(this,e,t);-1!==i&&r.splice(i,1)}else n[e]&&(n[e]=null)}function c(e){if(this.plugins&&this.plugins[e.toLowerCase()]){for(var t=this.plugins[e.toLowerCase()],n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.useHooks&&t.useHooks.apply(t,r)}}function u(e){if(this.plugins&&this.plugins[e.toLowerCase()]){var t=this.plugins[e.toLowerCase()];if(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.removeHooks&&t.removeHooks.apply(t,r)}}}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.__hooks={},t&&t.map(function(t){e.__hooks[t]=null}),Object.defineProperty(e,"hooks",{get:function(){return e.__hooks&&Object.keys(e.__hooks).map(function(t){if(e.__hooks[t])return t})}})}function h(e){e.__hooks=null}function f(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];if(e.__hooks&&Array.isArray(e.__hooks[t])){var a=e.__hooks[t],s=-1,l=function e(t,n,r){for(var i=arguments.length,o=new Array(i>3?i-3:0),l=3;l<i;l++)o[l-3]=arguments[l];if(s++,0===a.length||s===a.length)return r.call.apply(r,[t,t].concat(o));var c=a[s],u=c.call.apply(c,[t,t].concat(o));return u&&u.then?u.then(function(i){return!1===i?null:e.apply(void 0,[t,n,r].concat(o))}).catch(function(e){console.warn("[runHooks]".concat(n," reject"),e.message)}):!1!==u?e.apply(void 0,[t,n,r].concat(o)):!1!==u&&void 0};return l.apply(void 0,[e,t,n].concat(i))}return n.call.apply(n,[e,e].concat(i))}},30113:function(e,t,n){"use strict";n(44114),n(18111),n(7588);var r=n(38809);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))}))}),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},30226:function(e){function t(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}e.exports=t},30355:function(e,t,n){"use strict";n.d(t,{H:function(){return d},K6:function(){return o},Me:function(){return c},Ob:function(){return u},YL:function(){return s},_:function(){return i},g8:function(){return p},n6:function(){return f},oS:function(){return g},wE:function(){return l}});var r=n(49359);function i(e,t,n){return{r:255*(0,r.Cg)(e,255),g:255*(0,r.Cg)(t,255),b:255*(0,r.Cg)(n,255)}}function o(e,t,n){e=(0,r.Cg)(e,255),t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),a=0,s=0,l=(i+o)/2;if(i===o)s=0,a=0;else{var c=i-o;switch(s=l>.5?c/(2-i-o):c/(i+o),i){case e:a=(t-n)/c+(t<n?6:0);break;case t:a=(n-e)/c+2;break;case n:a=(e-t)/c+4;break;default:break}a/=6}return{h:a,s:s,l:l}}function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function s(e,t,n){var i,o,s;if(e=(0,r.Cg)(e,360),t=(0,r.Cg)(t,100),n=(0,r.Cg)(n,100),0===t)o=n,s=n,i=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=a(c,l,e+1/3),o=a(c,l,e),s=a(c,l,e-1/3)}return{r:255*i,g:255*o,b:255*s}}function l(e,t,n){e=(0,r.Cg)(e,255),t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),a=0,s=i,l=i-o,c=0===i?0:l/i;if(i===o)a=0;else{switch(i){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break;default:break}a/=6}return{h:a,s:c,v:s}}function c(e,t,n){e=6*(0,r.Cg)(e,360),t=(0,r.Cg)(t,100),n=(0,r.Cg)(n,100);var i=Math.floor(e),o=e-i,a=n*(1-t),s=n*(1-o*t),l=n*(1-(1-o)*t),c=i%6,u=[n,s,a,a,l,n][c],d=[l,n,n,s,a,a][c],h=[a,a,l,n,n,s][c];return{r:255*u,g:255*d,b:255*h}}function u(e,t,n,i){var o=[(0,r.wl)(Math.round(e).toString(16)),(0,r.wl)(Math.round(t).toString(16)),(0,r.wl)(Math.round(n).toString(16))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function d(e,t,n,i,o){var a=[(0,r.wl)(Math.round(e).toString(16)),(0,r.wl)(Math.round(t).toString(16)),(0,r.wl)(Math.round(n).toString(16)),(0,r.wl)(h(i))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function h(e){return Math.round(255*parseFloat(e)).toString(16)}function f(e){return p(e)/255}function p(e){return parseInt(e,16)}function g(e){return{r:e>>16,g:(65280&e)>>8,b:255&e}}},30421:function(e){"use strict";e.exports={}},30531:function(e,t,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),a=n(28551),s=n(1767),l=n(48646),c=n(19462),u=n(9539),d=n(96395),h=n(30684),f=n(84549),p=!d&&!h("flatMap",function(){}),g=!d&&!p&&f("flatMap",TypeError),m=d||p||g,v=c(function(){var e,t,n=this.iterator,r=this.mapper;while(1){if(t=this.inner)try{if(e=a(i(t.next,t.iterator)),!e.done)return e.value;this.inner=null}catch(o){u(n,"throw",o)}if(e=a(i(this.next,n)),this.done=!!e.done)return;try{this.inner=l(r(e.value,this.counter++),!1)}catch(o){u(n,"throw",o)}}});r({target:"Iterator",proto:!0,real:!0,forced:m},{flatMap:function(e){a(this);try{o(e)}catch(t){u(this,"throw",t)}return g?i(g,this,e):new v(s(this),{mapper:e,inner:null})}})},30684:function(e){"use strict";e.exports=function(e,t){var n="function"==typeof Iterator&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(r){return!0}}},31158:function(e,t){"use strict";function n(e,t,n,r){var i=e.length,o=n+(r?1:-1);while(r?o--:++o<i)if(t(e[o],o,e))return o;return-1}t.A=n},31254:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attrs:{d:"M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attrs:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]},name:"comment",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="CommentOutlined",c.inheritAttrs=!1;var u=c},31288:function(e,t,n){"use strict";n.d(t,{A:function(){return E}});var r=n(41034),i=n(51137),o=n(56768),a=n(49974),s=n(22622),l=n(10707),c=n(50223);const u=(0,o.pM)({compatConfig:{MODE:3},setup(){const[,e]=(0,l.rd)(),t=(0,o.EW)(()=>{const t=new c.q(e.value.colorBgBase);return t.toHsl().l<.5?{opacity:.65}:{}});return()=>(0,o.bF)("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[(0,o.bF)("g",{fill:"none","fill-rule":"evenodd"},[(0,o.bF)("g",{transform:"translate(24 31.67)"},[(0,o.bF)("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),(0,o.bF)("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"},null),(0,o.bF)("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"},null),(0,o.bF)("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"},null),(0,o.bF)("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"},null)]),(0,o.bF)("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"},null),(0,o.bF)("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[(0,o.bF)("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),(0,o.bF)("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});u.PRESENTED_IMAGE_DEFAULT=!0;var d=u;const h=(0,o.pM)({compatConfig:{MODE:3},setup(){const[,e]=(0,l.rd)(),t=(0,o.EW)(()=>{const{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:i}=e.value;return{borderColor:new c.q(t).onBackground(i).toHexString(),shadowColor:new c.q(n).onBackground(i).toHexString(),contentColor:new c.q(r).onBackground(i).toHexString()}});return()=>(0,o.bF)("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[(0,o.bF)("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[(0,o.bF)("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),(0,o.bF)("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[(0,o.bF)("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),(0,o.bF)("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:t.value.contentColor},null)])])])}});h.PRESENTED_IMAGE_SIMPLE=!0;var f=h,p=n(44832),g=n(44678),m=n(60674),v=n(90112),A=n(9519);const b=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:o,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var y=(0,v.A)("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=(0,A.h1)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[b(r)]}),w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const _=()=>({prefixCls:String,imageStyle:(0,g.ge)(),image:(0,g.ds)(),description:(0,g.ds)()}),x=(0,o.pM)({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:_(),setup(e,t){let{slots:n={},attrs:l}=t;const{direction:c,prefixCls:u}=(0,m.A)("empty",e),[h,f]=y(u);return()=>{var t,g;const m=u.value,v=(0,i.A)((0,i.A)({},e),l),{image:A=(null===(t=n.image)||void 0===t?void 0:t.call(n))||(0,o.h)(d),description:b=(null===(g=n.description)||void 0===g?void 0:g.call(n))||void 0,imageStyle:y,class:_=""}=v,x=w(v,["image","description","imageStyle","class"]),E="function"===typeof A?A():A,S="object"===typeof E&&"type"in E&&E.type.PRESENTED_IMAGE_SIMPLE;return h((0,o.bF)(s.A,{componentName:"Empty",children:e=>{const t="undefined"!==typeof b?b:e.description,i="string"===typeof t?t:"empty";let s=null;return s="string"===typeof E?(0,o.bF)("img",{alt:i,src:E},null):E,(0,o.bF)("div",(0,r.A)({class:(0,a.A)(m,_,f.value,{[`${m}-normal`]:S,[`${m}-rtl`]:"rtl"===c.value})},x),[(0,o.bF)("div",{class:`${m}-image`,style:y},[s]),t&&(0,o.bF)("p",{class:`${m}-description`},[t]),n.default&&(0,o.bF)("div",{class:`${m}-footer`},[(0,p.Gk)(n.default())])])}},null))}}});x.PRESENTED_IMAGE_DEFAULT=()=>(0,o.h)(d),x.PRESENTED_IMAGE_SIMPLE=()=>(0,o.h)(f);var E=(0,g.GU)(x)},31412:function(e){function t(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}e.exports=t},31558:function(e,t,n){n(79577),n(41549),n(49797),n(49631),n(35623);const r=n(2528);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let i=0;i<e.length;i++)for(let o=0;o<t.length;o++)n[i+o]^=r.mul(e[i],t[o]);return n},t.mod=function(e,t){let n=new Uint8Array(e);while(n.length-t.length>=0){const e=n[0];for(let o=0;o<t.length;o++)n[o]^=r.mul(t[o],e);let i=0;while(i<n.length&&0===n[i])i++;n=n.slice(i)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let i=0;i<e;i++)n=t.mul(n,new Uint8Array([1,r.exp(i)]));return n}},31561:function(e){function t(e){const t=["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","new","not","or","repeat","return","static","switch","then","until","var","while","with","xor"],n=["abs","alarm_get","alarm_set","angle_difference","animcurve_channel_evaluate","animcurve_channel_new","animcurve_create","animcurve_destroy","animcurve_exists","animcurve_get","animcurve_get_channel","animcurve_get_channel_index","animcurve_point_new","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_all","array_any","array_concat","array_contains","array_contains_ext","array_copy","array_copy_while","array_create","array_create_ext","array_delete","array_equals","array_filter","array_filter_ext","array_find_index","array_first","array_foreach","array_get","array_get_index","array_insert","array_intersection","array_last","array_length","array_map","array_map_ext","array_pop","array_push","array_reduce","array_resize","array_reverse","array_reverse_ext","array_set","array_shuffle","array_shuffle_ext","array_sort","array_union","array_unique","array_unique_ext","asset_add_tags","asset_clear_tags","asset_get_ids","asset_get_index","asset_get_tags","asset_get_type","asset_has_any_tag","asset_has_tags","asset_remove_tags","audio_bus_clear_emitters","audio_bus_create","audio_bus_get_emitters","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_effect_create","audio_emitter_bus","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_bus","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_get_assets","audio_group_get_gain","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_pause_all","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_sound","audio_play_sound_at","audio_play_sound_ext","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_audio_group","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_loop","audio_sound_get_loop_end","audio_sound_get_loop_start","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_is_playable","audio_sound_length","audio_sound_loop","audio_sound_loop_end","audio_sound_loop_start","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_paused","audio_sync_group_is_playing","audio_system_is_available","audio_system_is_initialised","base64_decode","base64_encode","bool","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_compress","buffer_copy","buffer_copy_from_vertex_buffer","buffer_copy_stride","buffer_crc32","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_decompress","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_set_used_size","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","call_cancel","call_later","camera_apply","camera_copy_transforms","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","db_to_lin","dbg_add_font_glyphs","dbg_button","dbg_checkbox","dbg_color","dbg_colour","dbg_drop_down","dbg_same_line","dbg_section","dbg_section_delete","dbg_section_exists","dbg_slider","dbg_slider_int","dbg_sprite","dbg_text","dbg_text_input","dbg_view","dbg_view_delete","dbg_view_exists","dbg_watch","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_frequency","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_drawevent","draw_enable_skeleton_blendmodes","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_enable_skeleton_blendmodes","draw_get_font","draw_get_halign","draw_get_lighting","draw_get_swf_aa_level","draw_get_valign","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_circle_precision","draw_set_color","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_to_mp_grid","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_is_list","ds_list_is_map","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_is_list","ds_map_is_map","ds_map_keys_to_array","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_values_to_array","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","effect_create_depth","effect_create_layer","environment_get_variable","event_inherited","event_perform","event_perform_async","event_perform_object","event_user","exception_unhandled_handler","exp","extension_exists","extension_get_option_count","extension_get_option_names","extension_get_option_value","extension_get_options","extension_get_version","external_call","external_define","external_free","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_cache_glyph","font_delete","font_enable_effects","font_enable_sdf","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_info","font_get_italic","font_get_last","font_get_name","font_get_sdf_enabled","font_get_sdf_spread","font_get_size","font_get_texture","font_get_uvs","font_replace_sprite","font_replace_sprite_ext","font_sdf_spread","font_set_cache_size","frac","fx_create","fx_get_name","fx_get_parameter","fx_get_parameter_names","fx_get_parameters","fx_get_single_layer","fx_set_parameter","fx_set_parameters","fx_set_single_layer","game_change","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_get_guid","gamepad_get_mapping","gamepad_get_option","gamepad_hat_count","gamepad_hat_value","gamepad_is_connected","gamepad_is_supported","gamepad_remove_mapping","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_option","gamepad_set_vibration","gamepad_test_mapping","gc_collect","gc_enable","gc_get_stats","gc_get_target_frame_time","gc_is_enabled","gc_target_frame_time","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gif_add_surface","gif_open","gif_save","gif_save_buffer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_depth","gpu_get_fog","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_depth","gpu_set_fog","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","handle_parse","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_get_request_crossorigin","http_post_string","http_request","http_set_request_crossorigin","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","instanceof","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_callable","is_debug_overlay_open","is_handle","is_infinity","is_instanceof","is_int32","is_int64","is_keyboard_used_debug_overlay","is_method","is_mouse_over_debug_overlay","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","json_decode","json_encode","json_parse","json_stringify","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_clear_fx","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_enable_fx","layer_exists","layer_force_draw_depth","layer_fx_is_enabled","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_fx","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_sequence_angle","layer_sequence_create","layer_sequence_destroy","layer_sequence_exists","layer_sequence_get_angle","layer_sequence_get_headdir","layer_sequence_get_headpos","layer_sequence_get_instance","layer_sequence_get_length","layer_sequence_get_sequence","layer_sequence_get_speedscale","layer_sequence_get_x","layer_sequence_get_xscale","layer_sequence_get_y","layer_sequence_get_yscale","layer_sequence_headdir","layer_sequence_headpos","layer_sequence_is_finished","layer_sequence_is_paused","layer_sequence_pause","layer_sequence_play","layer_sequence_speedscale","layer_sequence_x","layer_sequence_xscale","layer_sequence_y","layer_sequence_yscale","layer_set_fx","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","lin_to_db","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","method","method_call","method_get_index","method_get_self","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_and_collide","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","nameof","network_connect","network_connect_async","network_connect_raw","network_connect_raw_async","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_check_permission","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","os_request_permission","os_set_orientation_lock","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_delay","part_emitter_destroy","part_emitter_destroy_all","part_emitter_enable","part_emitter_exists","part_emitter_interval","part_emitter_region","part_emitter_relative","part_emitter_stream","part_particles_burst","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_angle","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_color","part_system_colour","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_info","part_system_get_layer","part_system_global_space","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_size_x","part_type_size_y","part_type_speed","part_type_sprite","part_type_step","part_type_subimage","particle_exists","particle_get_info","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","ref_create","rollback_chat","rollback_create_game","rollback_define_extra_network_latency","rollback_define_input","rollback_define_input_frame_delay","rollback_define_mock_input","rollback_define_player","rollback_display_events","rollback_get_info","rollback_get_input","rollback_get_player_prefs","rollback_join_game","rollback_leave_game","rollback_set_player_prefs","rollback_start_game","rollback_sync_on_frame","rollback_use_late_join","rollback_use_manual_start","rollback_use_player_prefs","rollback_use_random_input","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_info","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_camera","room_set_height","room_set_persistent","room_set_view_enabled","room_set_viewport","room_set_width","round","scheduler_resolution_get","scheduler_resolution_set","screen_save","screen_save_part","script_execute","script_execute_ext","script_exists","script_get_name","sequence_create","sequence_destroy","sequence_exists","sequence_get","sequence_get_objects","sequence_instance_override_object","sequence_keyframe_new","sequence_keyframedata_new","sequence_track_new","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_f_buffer","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_message_ext","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_event_frames","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_get_position","skeleton_animation_is_finished","skeleton_animation_is_looping","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_animation_set_position","skeleton_attachment_create","skeleton_attachment_create_color","skeleton_attachment_create_colour","skeleton_attachment_destroy","skeleton_attachment_exists","skeleton_attachment_get","skeleton_attachment_replace","skeleton_attachment_replace_color","skeleton_attachment_replace_colour","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_list","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_find_slot","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_create","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_alpha_get","skeleton_slot_color_get","skeleton_slot_color_set","skeleton_slot_colour_get","skeleton_slot_colour_set","skeleton_slot_data","skeleton_slot_data_instance","skeleton_slot_list","sprite_add","sprite_add_ext","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_mode","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_info","sprite_get_name","sprite_get_nineslice","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_nineslice_create","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_bbox","sprite_set_bbox_mode","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_nineslice","sprite_set_offset","sprite_set_speed","sqr","sqrt","static_get","static_set","string","string_byte_at","string_byte_length","string_char_at","string_concat","string_concat_ext","string_copy","string_count","string_delete","string_digits","string_ends_with","string_ext","string_foreach","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_join","string_join_ext","string_last_pos","string_last_pos_ext","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_pos_ext","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_split","string_split_ext","string_starts_with","string_trim","string_trim_end","string_trim_start","string_upper","string_width","string_width_ext","struct_exists","struct_foreach","struct_get","struct_get_from_hash","struct_get_names","struct_names_count","struct_remove","struct_set","struct_set_from_hash","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_format_is_supported","surface_free","surface_get_depth_disable","surface_get_format","surface_get_height","surface_get_target","surface_get_target_ext","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tag_get_asset_ids","tag_get_assets","tan","texture_debug_messages","texture_flush","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_is_ready","texture_prefetch","texture_set_stage","texturegroup_get_fonts","texturegroup_get_names","texturegroup_get_sprites","texturegroup_get_status","texturegroup_get_textures","texturegroup_get_tilesets","texturegroup_load","texturegroup_set_mode","texturegroup_unload","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_height","tilemap_set_mask","tilemap_set_width","tilemap_tileset","tilemap_x","tilemap_y","tileset_get_info","tileset_get_name","tileset_get_texture","tileset_get_uvs","time_bpm_to_seconds","time_seconds_to_bpm","time_source_create","time_source_destroy","time_source_exists","time_source_get_children","time_source_get_parent","time_source_get_period","time_source_get_reps_completed","time_source_get_reps_remaining","time_source_get_state","time_source_get_time_remaining","time_source_get_units","time_source_pause","time_source_reconfigure","time_source_reset","time_source_resume","time_source_start","time_source_stop","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","uwp_device_touchscreen_available","uwp_livetile_badge_clear","uwp_livetile_badge_notification","uwp_livetile_notification_begin","uwp_livetile_notification_end","uwp_livetile_notification_expiry","uwp_livetile_notification_image_add","uwp_livetile_notification_secondary_begin","uwp_livetile_notification_tag","uwp_livetile_notification_template_add","uwp_livetile_notification_text_add","uwp_livetile_queue_enable","uwp_livetile_tile_clear","uwp_secondarytile_badge_clear","uwp_secondarytile_badge_notification","uwp_secondarytile_delete","uwp_secondarytile_pin","uwp_secondarytile_tile_clear","variable_clone","variable_get_hash","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_names_count","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_format_get_info","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_submit_ext","vertex_texcoord","vertex_ubyte4","vertex_update_buffer_from_buffer","vertex_update_buffer_from_vertex","video_close","video_draw","video_enable_loop","video_get_duration","video_get_format","video_get_position","video_get_status","video_get_volume","video_is_looping","video_open","video_pause","video_resume","video_seek_to","video_set_volume","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","wallpaper_set_config","wallpaper_set_subscriptions","weak_ref_alive","weak_ref_any_alive","weak_ref_create","window_center","window_device","window_enable_borderless_fullscreen","window_get_borderless_fullscreen","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_showborder","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_delta_x","window_mouse_get_delta_y","window_mouse_get_locked","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_mouse_set_locked","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_showborder","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_tile_background_color","winphone_tile_background_colour","zip_add_file","zip_create","zip_save","zip_unzip","zip_unzip_async"],r=["AudioEffect","AudioEffectType","AudioLFOType","GM_build_date","GM_build_type","GM_is_sandboxed","GM_project_filename","GM_runtime_version","GM_version","NaN","_GMFILE_","_GMFUNCTION_","_GMLINE_","alignmentH","alignmentV","all","animcurvetype_bezier","animcurvetype_catmullrom","animcurvetype_linear","asset_animationcurve","asset_font","asset_object","asset_path","asset_room","asset_script","asset_sequence","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3D","audio_bus_main","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_exponent_distance_scaled","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_inverse_distance_scaled","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_stereo","bboxkind_diamond","bboxkind_ellipse","bboxkind_precise","bboxkind_rectangular","bboxmode_automatic","bboxmode_fullimage","bboxmode_manual","bm_add","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_grow","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","c_aqua","c_black","c_blue","c_dkgray","c_dkgrey","c_fuchsia","c_gray","c_green","c_grey","c_lime","c_ltgray","c_ltgrey","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cache_directory","characterSpacing","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","coreColor","coreColour","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","dropShadowEnabled","dropShadowEnabled","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","effectsEnabled","effectsEnabled","ev_alarm","ev_animation_end","ev_animation_event","ev_animation_update","ev_async_audio_playback","ev_async_audio_playback_ended","ev_async_audio_recording","ev_async_dialog","ev_async_push_notification","ev_async_save_load","ev_async_save_load","ev_async_social","ev_async_system_event","ev_async_web","ev_async_web_cloud","ev_async_web_iap","ev_async_web_image_load","ev_async_web_networking","ev_async_web_steam","ev_audio_playback","ev_audio_playback_ended","ev_audio_recording","ev_boundary","ev_boundary_view0","ev_boundary_view1","ev_boundary_view2","ev_boundary_view3","ev_boundary_view4","ev_boundary_view5","ev_boundary_view6","ev_boundary_view7","ev_broadcast_message","ev_cleanup","ev_collision","ev_create","ev_destroy","ev_dialog_async","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_normal","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_outside_view0","ev_outside_view1","ev_outside_view2","ev_outside_view3","ev_outside_view4","ev_outside_view5","ev_outside_view6","ev_outside_view7","ev_pre_create","ev_push_notification","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_social","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_system_event","ev_trigger","ev_user0","ev_user1","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_web_async","ev_web_cloud","ev_web_iap","ev_web_image_load","ev_web_networking","ev_web_sound_load","ev_web_steam","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_none","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","false","frameSizeX","frameSizeY","gamespeed_fps","gamespeed_microseconds","global","glowColor","glowColour","glowEnabled","glowEnabled","glowEnd","glowStart","gp_axis_acceleration_x","gp_axis_acceleration_y","gp_axis_acceleration_z","gp_axis_angular_velocity_x","gp_axis_angular_velocity_y","gp_axis_angular_velocity_z","gp_axis_orientation_w","gp_axis_orientation_x","gp_axis_orientation_y","gp_axis_orientation_z","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","infinity","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sequence","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","lineSpacing","m_axisx","m_axisx_gui","m_axisy","m_axisy_gui","m_scroll_down","m_scroll_up","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mb_side1","mb_side2","mip_markedonly","mip_off","mip_on","network_config_avoid_time_wait","network_config_connect_timeout","network_config_disable_multicast","network_config_disable_reliable_udp","network_config_enable_multicast","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_config_websocket_protocol","network_connect_active","network_connect_blocking","network_connect_nonblocking","network_connect_none","network_connect_passive","network_send_binary","network_send_text","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_socket_ws","network_socket_wss","network_type_connect","network_type_data","network_type_disconnect","network_type_down","network_type_non_blocking_connect","network_type_up","network_type_up_failed","nineslice_blank","nineslice_bottom","nineslice_center","nineslice_centre","nineslice_hide","nineslice_left","nineslice_mirror","nineslice_repeat","nineslice_right","nineslice_stretch","nineslice_top","noone","of_challenge_lose","of_challenge_tie","of_challenge_win","os_android","os_gdk","os_gxgames","os_ios","os_linux","os_macosx","os_operagx","os_permission_denied","os_permission_denied_dont_request","os_permission_granted","os_ps3","os_ps4","os_ps5","os_psvita","os_switch","os_tvos","os_unknown","os_uwp","os_win8native","os_windows","os_winphone","os_xboxone","os_xboxseriesxs","other","outlineColor","outlineColour","outlineDist","outlineEnabled","outlineEnabled","paragraphSpacing","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pointer_invalid","pointer_null","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_mode_burst","ps_mode_stream","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","rollback_chat_message","rollback_connect_error","rollback_connect_info","rollback_connected_to_peer","rollback_connection_rejected","rollback_disconnected_from_peer","rollback_end_game","rollback_game_full","rollback_game_info","rollback_game_interrupted","rollback_game_resumed","rollback_high_latency","rollback_player_prefs","rollback_protocol_rejected","rollback_synchronized_with_peer","rollback_synchronizing_with_peer","self","seqaudiokey_loop","seqaudiokey_oneshot","seqdir_left","seqdir_right","seqinterpolation_assign","seqinterpolation_lerp","seqplay_loop","seqplay_oneshot","seqplay_pingpong","seqtextkey_bottom","seqtextkey_center","seqtextkey_justify","seqtextkey_left","seqtextkey_middle","seqtextkey_right","seqtextkey_top","seqtracktype_audio","seqtracktype_bool","seqtracktype_clipmask","seqtracktype_clipmask_mask","seqtracktype_clipmask_subject","seqtracktype_color","seqtracktype_colour","seqtracktype_empty","seqtracktype_graphic","seqtracktype_group","seqtracktype_instance","seqtracktype_message","seqtracktype_moment","seqtracktype_particlesystem","seqtracktype_real","seqtracktype_sequence","seqtracktype_spriteframes","seqtracktype_string","seqtracktype_text","shadowColor","shadowColour","shadowOffsetX","shadowOffsetY","shadowSoftness","sprite_add_ext_error_cancelled","sprite_add_ext_error_decompressfailed","sprite_add_ext_error_loadfailed","sprite_add_ext_error_setupfailed","sprite_add_ext_error_spritenotfound","sprite_add_ext_error_unknown","spritespeed_framespergameframe","spritespeed_framespersecond","surface_r16float","surface_r32float","surface_r8unorm","surface_rg8unorm","surface_rgba16float","surface_rgba32float","surface_rgba4unorm","surface_rgba8unorm","texturegroup_status_fetched","texturegroup_status_loaded","texturegroup_status_loading","texturegroup_status_unloaded","tf_anisotropic","tf_linear","tf_point","thickness","tile_flip","tile_index_mask","tile_mirror","tile_rotate","time_source_expire_after","time_source_expire_nearest","time_source_game","time_source_global","time_source_state_active","time_source_state_initial","time_source_state_paused","time_source_state_stopped","time_source_units_frames","time_source_units_seconds","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","tm_systemtiming","true","ty_real","ty_string","undefined","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","video_format_rgba","video_format_yuv","video_status_closed","video_status_paused","video_status_playing","video_status_preparing","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f10","vk_f11","vk_f12","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up","wallpaper_config","wallpaper_subscription_data","wrap"],i=["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","colour?ColourTrack","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","drawn_by_sequence","event_action","event_data","event_number","event_object","event_type","font_texture_page_size","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gravity","gravity_direction","health","hspeed","iap_data","id","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","in_collision_tree","in_sequence","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","longMessage","managed","mask_index","message","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","player_avatar_sprite","player_avatar_url","player_id","player_local","player_type","player_user_id","program_directory","rollback_api_server","rollback_confirmed_frame","rollback_current_frame","rollback_event_id","rollback_event_param","rollback_game_running","room","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","script","sequence_instance","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","stacktrace","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_camera","view_current","view_enabled","view_hport","view_surface_id","view_visible","view_wport","view_xport","view_yport","visible","vspeed","webgl_enabled","working_directory","x","xprevious","xstart","y","yprevious","ystart"];return{name:"GML",case_insensitive:!1,keywords:{keyword:t,built_in:n,symbol:r,"variable.language":i},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}e.exports=t},31698:function(e,t,n){"use strict";var r=n(46518),i=n(44204),o=n(39835),a=n(84916),s=!a("union")||!o("union");r({target:"Set",proto:!0,real:!0,forced:s},{union:i})},32033:function(e,t){"use strict";const n=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};t.A=n},32131:function(e){function t(e){const t=["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],n=["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"];return{name:"Coq",keywords:{keyword:t,built_in:n},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}e.exports=t},32173:function(e,t,n){"use strict";n.d(t,{A:function(){return Pe}});n(18111),n(22489),n(61701);var r=n(41034),i=n(51137),o=n(56768),a=(n(7588),n(44114),n(90144)),s=n(32545);function l(e){const t=(0,a.IJ)(),n=(0,a.IJ)(!1);function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];n.value||(s.A.cancel(t.value),t.value=(0,s.A)(()=>{e(...i)}))}return(0,o.xo)(()=>{n.value=!0,s.A.cancel(t.value)}),r}function c(e){const t=(0,a.IJ)([]),n=(0,a.IJ)("function"===typeof e?e():e),r=l(()=>{let e=n.value;t.value.forEach(t=>{e=t(e)}),t.value=[],n.value=e});function i(e){t.value.push(e),r()}return[n,i]}var u=n(81186),d=n(49974),h=(0,o.pM)({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:n,attrs:r}=t;const i=(0,a.KR)();function s(t){var n;(null===(n=e.tab)||void 0===n?void 0:n.disabled)||e.onClick(t)}function l(t){var n;t.preventDefault(),t.stopPropagation(),e.editable.onEdit("remove",{key:null===(n=e.tab)||void 0===n?void 0:n.key,event:t})}n({domRef:i});const c=(0,o.EW)(()=>{var t;return e.editable&&!1!==e.closable&&!(null===(t=e.tab)||void 0===t?void 0:t.disabled)});return()=>{var t;const{prefixCls:n,id:a,active:h,tab:{key:f,tab:p,disabled:g,closeIcon:m},renderWrapper:v,removeAriaLabel:A,editable:b,onFocus:y}=e,w=`${n}-tab`,_=(0,o.bF)("div",{key:f,ref:i,class:(0,d.A)(w,{[`${w}-with-remove`]:c.value,[`${w}-active`]:h,[`${w}-disabled`]:g}),style:r.style,onClick:s},[(0,o.bF)("div",{role:"tab","aria-selected":h,id:a&&`${a}-tab-${f}`,class:`${w}-btn`,"aria-controls":a&&`${a}-panel-${f}`,"aria-disabled":g,tabindex:g?null:0,onClick:e=>{e.stopPropagation(),s(e)},onKeydown:e=>{[u.A.SPACE,u.A.ENTER].includes(e.which)&&(e.preventDefault(),s(e))},onFocus:y},["function"===typeof p?p():p]),c.value&&(0,o.bF)("button",{type:"button","aria-label":A||"remove",tabindex:0,class:`${w}-remove`,onClick:e=>{e.stopPropagation(),l(e)}},[(null===m||void 0===m?void 0:m())||(null===(t=b.removeIcon)||void 0===t?void 0:t.call(b))||"×"])]);return v?v(_):_}}});const f={width:0,height:0,left:0,top:0};function p(e,t){const n=(0,a.KR)(new Map);return(0,o.nT)(()=>{var r,o;const a=new Map,s=e.value,l=t.value.get(null===(r=s[0])||void 0===r?void 0:r.key)||f,c=l.left+l.width;for(let e=0;e<s.length;e+=1){const{key:n}=s[e];let r=t.value.get(n);r||(r=t.value.get(null===(o=s[e-1])||void 0===o?void 0:o.key)||f);const l=a.get(n)||(0,i.A)({},r);l.right=c-l.left-l.width,a.set(n,l)}n.value=new Map(a)}),n}var g=n(12560),m=n(77957),v=n(90776),A=(0,o.pM)({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup(e,t){let{expose:n,attrs:r}=t;const i=(0,a.KR)();return n({domRef:i}),()=>{const{prefixCls:t,editable:n,locale:a}=e;return n&&!1!==n.showAdd?(0,o.bF)("button",{ref:i,type:"button",class:`${t}-nav-add`,style:r.style,"aria-label":(null===a||void 0===a?void 0:a.addAriaLabel)||"Add tab",onClick:e=>{n.onEdit("add",{event:e})}},[n.addIcon?n.addIcon():"+"]):null}}}),b=n(44678),y=n(81425),w=n(83823),_=n(50443),x=n(90938);const E={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:y.A.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:(0,b.Fg)()};var S=(0,o.pM)({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:E,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:n,slots:r}=t;const[i,a]=(0,w.A)(!1),[s,l]=(0,w.A)(null),c=t=>{const n=e.tabs.filter(e=>!e.disabled);let r=n.findIndex(e=>e.key===s.value)||0;const i=n.length;for(let e=0;e<i;e+=1){r=(r+t+i)%i;const e=n[r];if(!e.disabled)return void l(e.key)}},h=t=>{const{which:n}=t;if(i.value)switch(n){case u.A.UP:c(-1),t.preventDefault();break;case u.A.DOWN:c(1),t.preventDefault();break;case u.A.ESC:a(!1);break;case u.A.SPACE:case u.A.ENTER:null!==s.value&&e.onTabClick(s.value,t);break}else[u.A.DOWN,u.A.SPACE,u.A.ENTER].includes(n)&&(a(!0),t.preventDefault())},f=(0,o.EW)(()=>`${e.id}-more-popup`),p=(0,o.EW)(()=>null!==s.value?`${f.value}-${s.value}`:null),b=(t,n)=>{t.preventDefault(),t.stopPropagation(),e.editable.onEdit("remove",{key:n,event:t})};return(0,o.sV)(()=>{(0,o.wB)(s,()=>{const e=document.getElementById(p.value);e&&e.scrollIntoView&&e.scrollIntoView(!1)},{flush:"post",immediate:!0})}),(0,o.wB)(i,()=>{i.value||l(null)}),(0,x.hM)({}),()=>{var t;const{prefixCls:l,id:c,tabs:u,locale:y,mobile:w,moreIcon:x=(null===(t=r.moreIcon)||void 0===t?void 0:t.call(r))||(0,o.bF)(_.A,null,null),moreTransitionName:E,editable:S,tabBarGutter:C,rtl:T,onTabClick:k,popupClassName:O}=e;if(!u.length)return null;const M=`${l}-dropdown`,I=null===y||void 0===y?void 0:y.dropdownAriaLabel,D={[T?"marginRight":"marginLeft"]:C};u.length||(D.visibility="hidden",D.order=1);const N=(0,d.A)({[`${M}-rtl`]:T,[`${O}`]:!0}),R=w?null:(0,o.bF)(v.A,{prefixCls:M,trigger:["hover"],visible:i.value,transitionName:E,onVisibleChange:a,overlayClassName:N,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>(0,o.bF)(g.Ay,{onClick:e=>{let{key:t,domEvent:n}=e;k(t,n),a(!1)},id:f.value,tabindex:-1,role:"listbox","aria-activedescendant":p.value,selectedKeys:[s.value],"aria-label":void 0!==I?I:"expanded dropdown"},{default:()=>[u.map(t=>{var n,r;const i=S&&!1!==t.closable&&!t.disabled;return(0,o.bF)(m.A,{key:t.key,id:`${f.value}-${t.key}`,role:"option","aria-controls":c&&`${c}-panel-${t.key}`,disabled:t.disabled},{default:()=>[(0,o.bF)("span",null,["function"===typeof t.tab?t.tab():t.tab]),i&&(0,o.bF)("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${M}-menu-item-remove`,onClick:e=>{e.stopPropagation(),b(e,t.key)}},[(null===(n=t.closeIcon)||void 0===n?void 0:n.call(t))||(null===(r=S.removeIcon)||void 0===r?void 0:r.call(S))||"×"])]})})]}),default:()=>(0,o.bF)("button",{type:"button",class:`${l}-nav-more`,style:D,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":f.value,id:`${c}-more`,"aria-expanded":i.value,onKeydown:h},[x])});return(0,o.bF)("div",{class:(0,d.A)(`${l}-nav-operations`,n.class),style:n.style},[R,(0,o.bF)(A,{prefixCls:l,locale:y,editable:S},null)])}}});const C=Symbol("tabsContextKey"),T=e=>{(0,o.Gt)(C,e)},k=()=>(0,o.WQ)(C,{tabs:(0,a.KR)([]),prefixCls:(0,a.KR)()});(0,o.pM)({compatConfig:{MODE:3},name:"TabsContextProvider",inheritAttrs:!1,props:{tabs:{type:Object,default:void 0},prefixCls:{type:String,default:void 0}},setup(e,t){let{slots:n}=t;return T((0,a.QW)(e)),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});const O=.1,M=.01,I=20,D=Math.pow(.995,I);function N(e,t){const[n,r]=(0,w.A)(),[i,s]=(0,w.A)(0),[l,c]=(0,w.A)(0),[u,d]=(0,w.A)(),h=(0,a.KR)();function f(e){const{screenX:t,screenY:n}=e.touches[0];r({x:t,y:n}),clearInterval(h.value)}function p(e){if(!n.value)return;e.preventDefault();const{screenX:o,screenY:a}=e.touches[0],l=o-n.value.x,u=a-n.value.y;t(l,u),r({x:o,y:a});const h=Date.now();c(h-i.value),s(h),d({x:l,y:u})}function g(){if(!n.value)return;const e=u.value;if(r(null),d(null),e){const n=e.x/l.value,r=e.y/l.value,i=Math.abs(n),o=Math.abs(r);if(Math.max(i,o)<O)return;let a=n,s=r;h.value=setInterval(()=>{Math.abs(a)<M&&Math.abs(s)<M?clearInterval(h.value):(a*=D,s*=D,t(a*I,s*I))},I)}}const m=(0,a.KR)();function v(e){const{deltaX:n,deltaY:r}=e;let i=0;const o=Math.abs(n),a=Math.abs(r);o===a?i="x"===m.value?n:r:o>a?(i=n,m.value="x"):(i=r,m.value="y"),t(-i,-i)&&e.preventDefault()}const A=(0,a.KR)({onTouchStart:f,onTouchMove:p,onTouchEnd:g,onWheel:v});function b(e){A.value.onTouchStart(e)}function y(e){A.value.onTouchMove(e)}function _(e){A.value.onTouchEnd(e)}function x(e){A.value.onWheel(e)}(0,o.sV)(()=>{var t,n;document.addEventListener("touchmove",y,{passive:!1}),document.addEventListener("touchend",_,{passive:!1}),null===(t=e.value)||void 0===t||t.addEventListener("touchstart",b,{passive:!1}),null===(n=e.value)||void 0===n||n.addEventListener("wheel",x,{passive:!1})}),(0,o.xo)(()=>{document.removeEventListener("touchmove",y),document.removeEventListener("touchend",_)})}function R(e,t){const n=(0,a.KR)(e);function r(e){const r="function"===typeof e?e(n.value):e;r!==n.value&&t(r,n.value),n.value=r}return[n,r]}var L=n(95572),B=n(39058),P=n(78082),F=n(12623),$=n(41018),j=n(79047),H=n(22676),U=n(60168),Q=n(13708);function z(e,t,n,r){if(!(0,U.A)(e))return e;t=(0,j.A)(t,e);var i=-1,o=t.length,a=o-1,s=e;while(null!=s&&++i<o){var l=(0,Q.A)(t[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var u=s[l];c=r?r(u,l,s):void 0,void 0===c&&(c=(0,U.A)(u)?u:(0,H.A)(t[i+1])?[]:{})}(0,$.A)(s,l,c),s=s[l]}return e}var W=z;function G(e,t,n){var r=-1,i=t.length,o={};while(++r<i){var a=t[r],s=(0,F.A)(e,a);n(s,a)&&W(o,(0,j.A)(a,e),s)}return o}var V=G,K=n(6865);function Y(e,t){return V(e,t,function(t,n){return(0,K.A)(e,n)})}var q=Y,X=n(98353),J=(0,X.A)(function(e,t){return null==e?{}:q(e,t)}),Z=J;const ee={width:0,height:0,left:0,top:0,right:0},te=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:(0,b.ge)(),editable:(0,b.ge)(),moreIcon:y.A.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:(0,b.ge)(),popupClassName:String,getPopupContainer:(0,b.Fg)(),onTabClick:{type:Function},onTabScroll:{type:Function}}),ne=(e,t)=>{const{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:o}=e,{width:a,height:s,x:l,y:c}=e.getBoundingClientRect();return Math.abs(a-n)<1?[a,s,l-t.x,c-t.y]:[n,r,o,i]};var re=(0,o.pM)({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:te(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:n,slots:l}=t;const{tabs:u,prefixCls:f}=k(),g=(0,a.IJ)(),m=(0,a.IJ)(),v=(0,a.IJ)(),b=(0,a.IJ)(),[y,_]=(0,P.A)(),x=(0,o.EW)(()=>"top"===e.tabPosition||"bottom"===e.tabPosition),[E,C]=R(0,(t,n)=>{x.value&&e.onTabScroll&&e.onTabScroll({direction:t>n?"left":"right"})}),[T,O]=R(0,(t,n)=>{!x.value&&e.onTabScroll&&e.onTabScroll({direction:t>n?"top":"bottom"})}),[M,I]=(0,w.A)(0),[D,F]=(0,w.A)(0),[$,j]=(0,w.A)(null),[H,U]=(0,w.A)(null),[Q,z]=(0,w.A)(0),[W,G]=(0,w.A)(0),[V,K]=c(new Map),Y=p(u,V),q=(0,o.EW)(()=>`${f.value}-nav-operations-hidden`),X=(0,a.IJ)(0),J=(0,a.IJ)(0);(0,o.nT)(()=>{x.value?e.rtl?(X.value=0,J.value=Math.max(0,M.value-$.value)):(X.value=Math.min(0,$.value-M.value),J.value=0):(X.value=Math.min(0,H.value-D.value),J.value=0)});const te=e=>e<X.value?X.value:e>J.value?J.value:e,re=(0,a.IJ)(),[ie,oe]=(0,w.A)(),ae=()=>{oe(Date.now())},se=()=>{clearTimeout(re.value)},le=(e,t)=>{e(e=>{const n=te(e+t);return n})};N(g,(e,t)=>{if(x.value){if($.value>=M.value)return!1;le(C,e)}else{if(H.value>=D.value)return!1;le(O,t)}return se(),ae(),!0}),(0,o.wB)(ie,()=>{se(),ie.value&&(re.value=setTimeout(()=>{oe(0)},100))});const ce=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.activeKey;const n=Y.value.get(t)||{width:0,height:0,left:0,right:0,top:0};if(x.value){let t=E.value;e.rtl?n.right<E.value?t=n.right:n.right+n.width>E.value+$.value&&(t=n.right+n.width-$.value):n.left<-E.value?t=-n.left:n.left+n.width>-E.value+$.value&&(t=-(n.left+n.width-$.value)),O(0),C(te(t))}else{let e=T.value;n.top<-T.value?e=-n.top:n.top+n.height>-T.value+H.value&&(e=-(n.top+n.height-H.value)),C(0),O(te(e))}},ue=(0,a.IJ)(0),de=(0,a.IJ)(0);(0,o.nT)(()=>{let t,n,r,i,o,a;const s=Y.value;["top","bottom"].includes(e.tabPosition)?(t="width",i=$.value,o=M.value,a=Q.value,n=e.rtl?"right":"left",r=Math.abs(E.value)):(t="height",i=H.value,o=M.value,a=W.value,n="top",r=-T.value);let l=i;o+a>i&&o<i&&(l=i-a);const c=u.value;if(!c.length)return[ue.value,de.value]=[0,0];const d=c.length;let h=d;for(let e=0;e<d;e+=1){const i=s.get(c[e].key)||ee;if(i[n]+i[t]>r+l){h=e-1;break}}let f=0;for(let e=d-1;e>=0;e-=1){const t=s.get(c[e].key)||ee;if(t[n]<r){f=e+1;break}}return[ue.value,de.value]=[f,h]});const he=()=>{K(()=>{var e;const t=new Map,n=null===(e=m.value)||void 0===e?void 0:e.getBoundingClientRect();return u.value.forEach(e=>{let{key:r}=e;const i=_.value.get(r),o=(null===i||void 0===i?void 0:i.$el)||i;if(o){const[e,i,a,s]=ne(o,n);t.set(r,{width:e,height:i,left:a,top:s})}}),t})};(0,o.wB)(()=>u.value.map(e=>e.key).join("%%"),()=>{he()},{flush:"post"});const fe=()=>{var e,t,n,r,i;const o=(null===(e=g.value)||void 0===e?void 0:e.offsetWidth)||0,a=(null===(t=g.value)||void 0===t?void 0:t.offsetHeight)||0,s=(null===(n=b.value)||void 0===n?void 0:n.$el)||{},l=s.offsetWidth||0,c=s.offsetHeight||0;j(o),U(a),z(l),G(c);const u=((null===(r=m.value)||void 0===r?void 0:r.offsetWidth)||0)-l,d=((null===(i=m.value)||void 0===i?void 0:i.offsetHeight)||0)-c;I(u),F(d),he()},pe=(0,o.EW)(()=>[...u.value.slice(0,ue.value),...u.value.slice(de.value+1)]),[ge,me]=(0,w.A)(),ve=(0,o.EW)(()=>Y.value.get(e.activeKey)),Ae=(0,a.IJ)(),be=()=>{s.A.cancel(Ae.value)};(0,o.wB)([ve,x,()=>e.rtl],()=>{const t={};ve.value&&(x.value?(e.rtl?t.right=(0,B.cl)(ve.value.right):t.left=(0,B.cl)(ve.value.left),t.width=(0,B.cl)(ve.value.width)):(t.top=(0,B.cl)(ve.value.top),t.height=(0,B.cl)(ve.value.height))),be(),Ae.value=(0,s.A)(()=>{me(t)})}),(0,o.wB)([()=>e.activeKey,ve,Y,x],()=>{ce()},{flush:"post"}),(0,o.wB)([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>u.value],()=>{fe()},{flush:"post"});const ye=e=>{let{position:t,prefixCls:n,extra:r}=e;if(!r)return null;const i=null===r||void 0===r?void 0:r({position:t});return i?(0,o.bF)("div",{class:`${n}-extra-content`},[i]):null};return(0,o.xo)(()=>{se(),be()}),()=>{const{id:t,animated:a,activeKey:s,rtl:c,editable:p,locale:w,tabPosition:_,tabBarGutter:C,onTabClick:k}=e,{class:O,style:I}=n,N=f.value,R=!!pe.value.length,B=`${N}-nav-wrap`;let P,F,j,U;x.value?c?(F=E.value>0,P=E.value+$.value<M.value):(P=E.value<0,F=-E.value+$.value<M.value):(j=T.value<0,U=-T.value+H.value<D.value);const Q={};"top"===_||"bottom"===_?Q[c?"marginRight":"marginLeft"]="number"===typeof C?`${C}px`:C:Q.marginTop="number"===typeof C?`${C}px`:C;const z=u.value.map((e,n)=>{const{key:r}=e;return(0,o.bF)(h,{id:t,prefixCls:N,key:r,tab:e,style:0===n?void 0:Q,closable:e.closable,editable:p,active:r===s,removeAriaLabel:null===w||void 0===w?void 0:w.removeAriaLabel,ref:y(r),onClick:e=>{k(r,e)},onFocus:()=>{ce(r),ae(),g.value&&(c||(g.value.scrollLeft=0),g.value.scrollTop=0)}},l)});return(0,o.bF)("div",{role:"tablist",class:(0,d.A)(`${N}-nav`,O),style:I,onKeydown:()=>{ae()}},[(0,o.bF)(ye,{position:"left",prefixCls:N,extra:l.leftExtra},null),(0,o.bF)(L.A,{onResize:fe},{default:()=>[(0,o.bF)("div",{class:(0,d.A)(B,{[`${B}-ping-left`]:P,[`${B}-ping-right`]:F,[`${B}-ping-top`]:j,[`${B}-ping-bottom`]:U}),ref:g},[(0,o.bF)(L.A,{onResize:fe},{default:()=>[(0,o.bF)("div",{ref:m,class:`${N}-nav-list`,style:{transform:`translate(${E.value}px, ${T.value}px)`,transition:ie.value?"none":void 0}},[z,(0,o.bF)(A,{ref:b,prefixCls:N,locale:w,editable:p,style:(0,i.A)((0,i.A)({},0===z.length?void 0:Q),{visibility:R?"hidden":null})},null),(0,o.bF)("div",{class:(0,d.A)(`${N}-ink-bar`,{[`${N}-ink-bar-animated`]:a.inkBar}),style:ge.value},null)])]})])]}),(0,o.bF)(S,(0,r.A)((0,r.A)({},e),{},{removeAriaLabel:null===w||void 0===w?void 0:w.removeAriaLabel,ref:v,prefixCls:N,tabs:pe.value,class:!R&&q.value}),Z(l,["moreIcon"])),(0,o.bF)(ye,{position:"right",prefixCls:N,extra:l.rightExtra},null),(0,o.bF)(ye,{position:"right",prefixCls:N,extra:l.tabBarExtraContent},null)])}}}),ie=n(82978),oe=(0,o.pM)({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:n}=k();return()=>{const{id:r,activeKey:i,animated:a,tabPosition:s,rtl:l,destroyInactiveTabPane:c}=e,u=a.tabPane,d=n.value,h=t.value.findIndex(e=>e.key===i);return(0,o.bF)("div",{class:`${d}-content-holder`},[(0,o.bF)("div",{class:[`${d}-content`,`${d}-content-${s}`,{[`${d}-content-animated`]:u}],style:h&&u?{[l?"marginRight":"marginLeft"]:`-${h}00%`}:null},[t.value.map(e=>(0,ie.Ob)(e.node,{key:e.key,prefixCls:d,tabKey:e.key,id:r,animated:u,active:e.key===i,destroyInactiveTabPane:c}))])])}}}),ae=n(44832),se=n(73429),le=n(60674),ce=n(8149),ue=n(53523),de=n(76110),he=n(63536),fe=n(34322),pe=n(55107),ge=n(90112),me=n(9519),ve=n(36068),Ae=n(99778);const be=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,Ae._j)(e,"slide-up"),(0,Ae._j)(e,"slide-down")]]};var ye=be;const we=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:r,tabsCardGutter:i,colorSplit:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${i}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${i}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},_e=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:(0,i.A)((0,i.A)({},(0,ve.dF)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":(0,i.A)((0,i.A)({},ve.L9),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},xe=e=>{const{componentCls:t,margin:n,colorSplit:r}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n            right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n        > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:1.25*e.controlHeight,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Ee=e=>{const{componentCls:t,padding:n}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${n}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${1.5*e.paddingXXS}px ${n}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${n}px ${1.5*e.paddingXXS}px`}}}}}},Se=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:r,iconCls:o,tabsHorizontalGutter:a}=e,s=`${t}-tab`;return{[s]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":(0,i.A)({"&:focus:not(:focus-visible), &:active":{color:n}},(0,ve.K8)(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${a}px`}}}},Ce=e=>{const{componentCls:t,tabsHorizontalGutter:n,iconCls:r,tabsCardGutter:i}=e,o=`${t}-rtl`;return{[o]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:`${i}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Te=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:r,tabsCardGutter:o,tabsHoverColor:a,tabsActiveColor:s,colorSplit:l}=e;return{[t]:(0,i.A)((0,i.A)((0,i.A)((0,i.A)({},(0,ve.dF)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:(0,i.A)({minWidth:`${r}px`,marginLeft:{_skip_check_:!0,value:`${o}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${l}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:s}},(0,ve.K8)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),Se(e)),{[`${t}-content`]:{position:"relative",display:"flex",width:"100%",["&-animated"]:{transition:"margin 0.3s"}},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var ke=(0,ge.A)("Tabs",e=>{const t=e.controlHeightLG,n=(0,me.h1)(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[Ee(n),Ce(n),xe(n),_e(n),we(n),Te(n),ye(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let Oe=0;const Me=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:(0,b.Fg)(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:(0,b.WO)(),animated:(0,b.tK)([Boolean,Object]),renderTabBar:(0,b.Fg)(),tabBarGutter:{type:Number},tabBarStyle:(0,b.ge)(),tabPosition:(0,b.WO)(),destroyInactiveTabPane:(0,b.HE)(),hideAdd:Boolean,type:(0,b.WO)(),size:(0,b.WO)(),centered:Boolean,onEdit:(0,b.Fg)(),onChange:(0,b.Fg)(),onTabClick:(0,b.Fg)(),onTabScroll:(0,b.Fg)(),"onUpdate:activeKey":(0,b.Fg)(),locale:(0,b.ge)(),onPrevClick:(0,b.Fg)(),onNextClick:(0,b.Fg)(),tabBarExtraContent:y.A.any});function Ie(e){return e.map(e=>{if((0,ae.zO)(e)){const t=(0,i.A)({},e.props||{});for(const[e,i]of Object.entries(t))delete t[e],t[(0,B.PT)(e)]=i;const n=e.children||{},r=void 0!==e.key?e.key:void 0,{tab:o=n.tab,disabled:a,forceRender:s,closable:l,animated:c,active:u,destroyInactiveTabPane:d}=t;return(0,i.A)((0,i.A)({key:r},t),{node:e,closeIcon:n.closeIcon,tab:o,disabled:""===a||a,forceRender:""===s||s,closable:""===l||l,animated:""===c||c,active:""===u||u,destroyInactiveTabPane:""===d||d})}return null}).filter(e=>e)}const De=(0,o.pM)({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:(0,i.A)((0,i.A)({},(0,se.A)(Me(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:(0,b.MY)()}),slots:Object,setup(e,t){let{attrs:n,slots:a}=t;(0,fe.A)(!(void 0!==e.onPrevClick)&&!(void 0!==e.onNextClick),"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),(0,fe.A)(!(void 0!==e.tabBarExtraContent),"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),(0,fe.A)(!(void 0!==a.tabBarExtraContent),"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:s,direction:l,size:c,rootPrefixCls:u,getPopupContainer:h}=(0,le.A)("tabs",e),[f,p]=ke(s),g=(0,o.EW)(()=>"rtl"===l.value),m=(0,o.EW)(()=>{const{animated:t,tabPosition:n}=e;return!1===t||["left","right"].includes(n)?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:(0,i.A)({inkBar:!0,tabPane:!1},"object"===typeof t?t:{})}),[v,A]=(0,w.A)(!1);(0,o.sV)(()=>{A((0,ce.A)())});const[b,y]=(0,ue.A)(()=>{var t;return null===(t=e.tabs[0])||void 0===t?void 0:t.key},{value:(0,o.EW)(()=>e.activeKey),defaultValue:e.defaultActiveKey}),[_,x]=(0,w.A)(()=>e.tabs.findIndex(e=>e.key===b.value));(0,o.nT)(()=>{var t;let n=e.tabs.findIndex(e=>e.key===b.value);-1===n&&(n=Math.max(0,Math.min(_.value,e.tabs.length-1)),y(null===(t=e.tabs[n])||void 0===t?void 0:t.key)),x(n)});const[E,S]=(0,ue.A)(null,{value:(0,o.EW)(()=>e.id)}),C=(0,o.EW)(()=>v.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition);(0,o.sV)(()=>{e.id||(S(`rc-tabs-${Oe}`),Oe+=1)});const k=(t,n)=>{var r,i;null===(r=e.onTabClick)||void 0===r||r.call(e,t,n);const o=t!==b.value;y(t),o&&(null===(i=e.onChange)||void 0===i||i.call(e,t))};return T({tabs:(0,o.EW)(()=>e.tabs),prefixCls:s}),()=>{const{id:t,type:l,tabBarGutter:A,tabBarStyle:y,locale:w,destroyInactiveTabPane:_,renderTabBar:x=a.renderTabBar,onTabScroll:S,hideAdd:T,centered:O}=e,M={id:E.value,activeKey:b.value,animated:m.value,tabPosition:C.value,rtl:g.value,mobile:v.value};let I,D;"editable-card"===l&&(I={onEdit:(t,n)=>{let{key:r,event:i}=n;var o;null===(o=e.onEdit)||void 0===o||o.call(e,"add"===t?i:r,t)},removeIcon:()=>(0,o.bF)(de.A,null,null),addIcon:a.addIcon?a.addIcon:()=>(0,o.bF)(he.A,null,null),showAdd:!0!==T});const N=(0,i.A)((0,i.A)({},M),{moreTransitionName:`${u.value}-slide-up`,editable:I,locale:w,tabBarGutter:A,onTabClick:k,onTabScroll:S,style:y,getPopupContainer:h.value,popupClassName:(0,d.A)(e.popupClassName,p.value)});D=x?x((0,i.A)((0,i.A)({},N),{DefaultTabBar:re})):(0,o.bF)(re,N,Z(a,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const R=s.value;return f((0,o.bF)("div",(0,r.A)((0,r.A)({},n),{},{id:t,class:(0,d.A)(R,`${R}-${C.value}`,{[p.value]:!0,[`${R}-${c.value}`]:c.value,[`${R}-card`]:["card","editable-card"].includes(l),[`${R}-editable-card`]:"editable-card"===l,[`${R}-centered`]:O,[`${R}-mobile`]:v.value,[`${R}-editable`]:"editable-card"===l,[`${R}-rtl`]:g.value},n.class)}),[D,(0,o.bF)(oe,(0,r.A)((0,r.A)({destroyInactiveTabPane:_},M),{},{animated:m.value}),null)]))}}});var Ne=(0,o.pM)({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:(0,se.A)(Me(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:n,slots:i,emit:a}=t;const s=e=>{a("update:activeKey",e),a("change",e)};return()=>{var t;const a=Ie((0,ae.MI)(null===(t=i.default)||void 0===t?void 0:t.call(i)));return(0,o.bF)(De,(0,r.A)((0,r.A)((0,r.A)({},(0,pe.A)(e,["onUpdate:activeKey"])),n),{},{onChange:s,tabs:a}),i)}}}),Re=Ne;const Le=()=>({tab:y.A.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}});var Be=(0,o.pM)({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:Le(),slots:Object,setup(e,t){let{attrs:n,slots:r}=t;const i=(0,a.KR)(e.forceRender);(0,o.wB)([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?i.value=!0:e.destroyInactiveTabPane&&(i.value=!1)},{immediate:!0});const s=(0,o.EW)(()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var t;const{prefixCls:a,forceRender:l,id:c,active:u,tabKey:d}=e;return(0,o.bF)("div",{id:c&&`${c}-panel-${d}`,role:"tabpanel",tabindex:u?0:-1,"aria-labelledby":c&&`${c}-tab-${d}`,"aria-hidden":!u,style:[s.value,n.style],class:[`${a}-tabpane`,u&&`${a}-tabpane-active`,n.class]},[(u||i.value||l)&&(null===(t=r.default)||void 0===t?void 0:t.call(r))])}}});Re.TabPane=Be,Re.install=function(e){return e.component(Re.name,Re),e.component(Be.name,Be),e};var Pe=Re},32191:function(e){function t(e){const t=e.regex,n=["do","if","then","else","end","until","while","abort","array","attrib","by","call","cards","cards4","catname","continue","datalines","datalines4","delete","delim","delimiter","display","dm","drop","endsas","error","file","filename","footnote","format","goto","in","infile","informat","input","keep","label","leave","length","libname","link","list","lostcard","merge","missing","modify","options","output","out","page","put","redirect","remove","rename","replace","retain","return","select","set","skip","startsas","stop","title","update","waitsas","where","window","x|0","systask","add","and","alter","as","cascade","check","create","delete","describe","distinct","drop","foreign","from","group","having","index","insert","into","in","key","like","message","modify","msgtype","not","null","on","or","order","primary","references","reset","restrict","select","set","table","unique","update","validate","view","where"],r=["abs","addr","airy","arcos","arsin","atan","attrc","attrn","band","betainv","blshift","bnot","bor","brshift","bxor","byte","cdf","ceil","cexist","cinv","close","cnonct","collate","compbl","compound","compress","cos","cosh","css","curobs","cv","daccdb","daccdbsl","daccsl","daccsyd","dacctab","dairy","date","datejul","datepart","datetime","day","dclose","depdb","depdbsl","depdbsl","depsl","depsl","depsyd","depsyd","deptab","deptab","dequote","dhms","dif","digamma","dim","dinfo","dnum","dopen","doptname","doptnum","dread","dropnote","dsname","erf","erfc","exist","exp","fappend","fclose","fcol","fdelete","fetch","fetchobs","fexist","fget","fileexist","filename","fileref","finfo","finv","fipname","fipnamel","fipstate","floor","fnonct","fnote","fopen","foptname","foptnum","fpoint","fpos","fput","fread","frewind","frlen","fsep","fuzz","fwrite","gaminv","gamma","getoption","getvarc","getvarn","hbound","hms","hosthelp","hour","ibessel","index","indexc","indexw","input","inputc","inputn","int","intck","intnx","intrr","irr","jbessel","juldate","kurtosis","lag","lbound","left","length","lgamma","libname","libref","log","log10","log2","logpdf","logpmf","logsdf","lowcase","max","mdy","mean","min","minute","mod","month","mopen","mort","n","netpv","nmiss","normal","note","npv","open","ordinal","pathname","pdf","peek","peekc","pmf","point","poisson","poke","probbeta","probbnml","probchi","probf","probgam","probhypr","probit","probnegb","probnorm","probt","put","putc","putn","qtr","quote","ranbin","rancau","ranexp","rangam","range","rank","rannor","ranpoi","rantbl","rantri","ranuni","repeat","resolve","reverse","rewind","right","round","saving","scan","sdf","second","sign","sin","sinh","skewness","soundex","spedis","sqrt","std","stderr","stfips","stname","stnamel","substr","sum","symget","sysget","sysmsg","sysprod","sysrc","system","tan","tanh","time","timepart","tinv","tnonct","today","translate","tranwrd","trigamma","trim","trimn","trunc","uniform","upcase","uss","var","varfmt","varinfmt","varlabel","varlen","varname","varnum","varray","varrayx","vartype","verify","vformat","vformatd","vformatdx","vformatn","vformatnx","vformatw","vformatwx","vformatx","vinarray","vinarrayx","vinformat","vinformatd","vinformatdx","vinformatn","vinformatnx","vinformatw","vinformatwx","vinformatx","vlabel","vlabelx","vlength","vlengthx","vname","vnamex","vtype","vtypex","weekday","year","yyq","zipfips","zipname","zipnamel","zipstate"],i=["bquote","nrbquote","cmpres","qcmpres","compstor","datatyp","display","do","else","end","eval","global","goto","if","index","input","keydef","label","left","length","let","local","lowcase","macro","mend","nrbquote","nrquote","nrstr","put","qcmpres","qleft","qlowcase","qscan","qsubstr","qsysfunc","qtrim","quote","qupcase","scan","str","substr","superq","syscall","sysevalf","sysexec","sysfunc","sysget","syslput","sysprod","sysrc","sysrput","then","to","trim","unquote","until","upcase","verify","while","window"],o=["null","missing","_all_","_automatic_","_character_","_infile_","_n_","_name_","_null_","_numeric_","_user_","_webout_"];return{name:"SAS",case_insensitive:!0,keywords:{literal:o,keyword:n},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{begin:[/^\s*/,/datalines;|cards;/,/(?:.*\n)+/,/^\s*;\s*$/],className:{2:"keyword",3:"string"}},{begin:[/%mend|%macro/,/\s+/,/[a-zA-Z_&][a-zA-Z0-9_]*/],className:{1:"built_in",3:"title.function"}},{className:"built_in",begin:"%"+t.either(...i)},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:t.either(...r)+"(?=\\()"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}e.exports=t},32312:function(e){function t(e){const t=["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"];return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:t},contains:[{scope:"string",begin:/"/,end:/"|$/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}e.exports=t},32342:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(26722),i=n(15151),o=i.A,a=n(4898);const s="${label} is not a valid ${type}",l={locale:"en",Pagination:r.A,DatePicker:i.A,TimePicker:a.A,Calendar:o,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"}};var c=l},32475:function(e,t,n){"use strict";var r=n(46518),i=n(28527),o=n(84916),a=!o("isSupersetOf",function(e){return!e});r({target:"Set",proto:!0,real:!0,forced:a},{isSupersetOf:i})},32545:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});let r=e=>setTimeout(e,16),i=e=>clearTimeout(e);"undefined"!==typeof window&&"requestAnimationFrame"in window&&(r=e=>window.requestAnimationFrame(e),i=e=>window.cancelAnimationFrame(e));let o=0;const a=new Map;function s(e){a.delete(e)}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;o+=1;const n=o;function i(t){if(0===t)s(n),e();else{const e=r(()=>{i(t-1)});a.set(n,e)}}return i(t),n}l.cancel=e=>{const t=a.get(e);return s(t),i(t)}},32603:function(e,t,n){"use strict";var r=n(655);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},32687:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 161H699.2c-49.1 0-97.1 14.1-138.4 40.7L512 233l-48.8-31.3A255.2 255.2 0 00324.8 161H96c-17.7 0-32 14.3-32 32v568c0 17.7 14.3 32 32 32h228.8c49.1 0 97.1 14.1 138.4 40.7l44.4 28.6c1.3.8 2.8 1.3 4.3 1.3s3-.4 4.3-1.3l44.4-28.6C602 807.1 650.1 793 699.2 793H928c17.7 0 32-14.3 32-32V193c0-17.7-14.3-32-32-32zM324.8 721H136V233h188.8c35.4 0 69.8 10.1 99.5 29.2l48.8 31.3 6.9 4.5v462c-47.6-25.6-100.8-39-155.2-39zm563.2 0H699.2c-54.4 0-107.6 13.4-155.2 39V298l6.9-4.5 48.8-31.3c29.7-19.1 64.1-29.2 99.5-29.2H888v488zM396.9 361H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm223.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c0-4.1-3.2-7.5-7.1-7.5H627.1c-3.9 0-7.1 3.4-7.1 7.5zM396.9 501H211.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5zm416 0H627.1c-3.9 0-7.1 3.4-7.1 7.5v45c0 4.1 3.2 7.5 7.1 7.5h185.7c3.9 0 7.1-3.4 7.1-7.5v-45c.1-4.1-3.1-7.5-7-7.5z"}}]},name:"read",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="ReadOutlined",c.inheritAttrs=!1;var u=c},32698:function(e,t,n){(function(e){e(n(83800))})(function(e){"use strict";function t(t,r){function i(){t.display.wrapper.offsetHeight?(n(t,r),t.display.lastWrapHeight!=t.display.wrapper.clientHeight&&t.refresh()):r.timeout=setTimeout(i,r.delay)}r.timeout=setTimeout(i,r.delay),r.hurry=function(){clearTimeout(r.timeout),r.timeout=setTimeout(i,50)},e.on(window,"mouseup",r.hurry),e.on(window,"keyup",r.hurry)}function n(t,n){clearTimeout(n.timeout),e.off(window,"mouseup",n.hurry),e.off(window,"keyup",n.hurry)}e.defineOption("autoRefresh",!1,function(e,r){e.state.autoRefresh&&(n(e,e.state.autoRefresh),e.state.autoRefresh=null),r&&0==e.display.wrapper.offsetHeight&&t(e,e.state.autoRefresh={delay:r.delay||250})})})},32805:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="CalendarOutlined",c.inheritAttrs=!1;var u=c},32849:function(e){function t(e){const t=["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"];return{name:"DNS Zone",aliases:["bind","zone"],keywords:t,contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}e.exports=t},32881:function(e,t,n){"use strict";n(18111),n(18237);var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(49974),l=n(81425),c=n(73429),u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const d={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:l.A.any,required:Boolean};t.A=(0,o.pM)({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:(0,c.A)(d,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup(e,t){let{attrs:n,emit:l,expose:c}=t;const d=(0,a.KR)(void 0===e.checked?e.defaultChecked:e.checked),h=(0,a.KR)();(0,o.wB)(()=>e.checked,()=>{d.value=e.checked}),c({focus(){var e;null===(e=h.value)||void 0===e||e.focus()},blur(){var e;null===(e=h.value)||void 0===e||e.blur()}});const f=(0,a.KR)(),p=t=>{if(e.disabled)return;void 0===e.checked&&(d.value=t.target.checked),t.shiftKey=f.value;const n={target:(0,i.A)((0,i.A)({},e),{checked:t.target.checked}),stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t};void 0!==e.checked&&(h.value.checked=!!e.checked),l("change",n),f.value=!1},g=e=>{l("click",e),f.value=e.shiftKey};return()=>{const{prefixCls:t,name:a,id:l,type:c,disabled:f,readonly:m,tabindex:v,autofocus:A,value:b,required:y}=e,w=u(e,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:_,onFocus:x,onBlur:E,onKeydown:S,onKeypress:C,onKeyup:T}=n,k=(0,i.A)((0,i.A)({},w),n),O=Object.keys(k).reduce((e,t)=>((t.startsWith("data-")||t.startsWith("aria-")||"role"===t)&&(e[t]=k[t]),e),{}),M=(0,s.A)(t,_,{[`${t}-checked`]:d.value,[`${t}-disabled`]:f}),I=(0,i.A)((0,i.A)({name:a,id:l,type:c,readonly:m,disabled:f,tabindex:v,class:`${t}-input`,checked:!!d.value,autofocus:A,value:b},O),{onChange:p,onClick:g,onFocus:x,onBlur:E,onKeydown:S,onKeypress:C,onKeyup:T,required:y});return(0,o.bF)("span",{class:M},[(0,o.bF)("input",(0,r.A)({ref:h},I),null),(0,o.bF)("span",{class:`${t}-inner`},null)])}}})},32947:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="MenuOutlined",c.inheritAttrs=!1;var u=c},33041:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=n(51137);const i=e=>({animationDuration:e,animationFillMode:"both"}),o=e=>({animationDuration:e,animationFillMode:"both"}),a=function(e,t,n,a){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const l=s?"&":"";return{[`\n      ${l}${e}-enter,\n      ${l}${e}-appear\n    `]:(0,r.A)((0,r.A)({},i(a)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:(0,r.A)((0,r.A)({},o(a)),{animationPlayState:"paused"}),[`\n      ${l}${e}-enter${e}-enter-active,\n      ${l}${e}-appear${e}-appear-active\n    `]:{animationName:t,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}}},33051:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(54119);function i(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function o(e){var t=i(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},33160:function(e){function t(e){const t=e.regex,n={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},r={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},i=/""|"[^"]+"/,o=/''|'[^']+'/,a=/\[\]|\[[^\]]+\]/,s=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,l=/(\.|\/)/,c=t.either(i,o,a,s),u=t.concat(t.optional(/\.|\.\/|\//),c,t.anyNumberOfTimes(t.concat(l,c))),d=t.concat("(",a,"|",s,")(?==)"),h={begin:u},f=e.inherit(h,{keywords:r}),p={begin:/\(/,end:/\)/},g={className:"attr",begin:d,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,f,p]}}},m={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},v={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,m,g,f,p],returnEnd:!0},A=e.inherit(h,{className:"name",keywords:n,starts:e.inherit(v,{end:/\)/})});p.contains=[A];const b=e.inherit(h,{keywords:n,className:"name",starts:e.inherit(v,{end:/\}\}/})}),y=e.inherit(h,{keywords:n,className:"name"}),w=e.inherit(h,{className:"name",keywords:n,starts:e.inherit(v,{end:/\}\}/})}),_={begin:/\\\{\{/,skip:!0},x={begin:/\\\\(?=\{\{)/,skip:!0};return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[_,x,e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[b],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[y]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[b]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[y]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[w]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[w]}]}}e.exports=t},33392:function(e,t,n){"use strict";var r=n(79504),i=0,o=Math.random(),a=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},33451:function(e,t,n){function r(e){const t={keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",meta:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},n=e.COMMENT("%","$"),r={className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},i=e.inherit(e.APOS_STRING_MODE,{relevance:0}),o=e.inherit(e.QUOTE_STRING_MODE,{relevance:0}),a={className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0};o.contains=o.contains.slice(),o.contains.push(a);const s={className:"built_in",variants:[{begin:"<=>"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},l={className:"built_in",variants:[{begin:":-\\|--\x3e"},{begin:"=",relevance:0}]};return{name:"Mercury",aliases:["m","moo"],keywords:t,contains:[s,l,n,e.C_BLOCK_COMMENT_MODE,r,e.NUMBER_MODE,i,o,{begin:/:-/},{begin:/\.$/}]}}n(44114),e.exports=r},33529:function(e,t,n){"use strict";n(44114);var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function l(e,t){0===--e._eventsCount?e._events=new o:delete e._events[t]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),c.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},c.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a},c.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,r,o,a){var s=i?i+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,o),!0;case 6:return u.fn.call(u.context,t,n,r,o,a),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,r);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];u[c].fn.apply(u[c].context,l)}}return!0},c.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,r){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return l(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||l(this,o);else{for(var s=0,c=[],u=a.length;s<u;s++)(a[s].fn!==t||r&&!a[s].once||n&&a[s].context!==n)&&c.push(a[s]);c.length?this._events[o]=1===c.length?c[0]:c:l(this,o)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&l(this,t)):(this._events=new o,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=i,c.EventEmitter=c,e.exports=c},33535:function(e){function t(e){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},e.HASH_COMMENT_MODE]}}e.exports=t},33625:function(e){function t(e){const t=e.regex,n={keyword:["assert","else","if","in","inherit","let","or","rec","then","with"],literal:["true","false","null"],built_in:["abort","baseNameOf","builtins","derivation","derivationStrict","dirOf","fetchGit","fetchMercurial","fetchTarball","fetchTree","fromTOML","import","isNull","map","placeholder","removeAttrs","scopedImport","throw","toString"]},r={scope:"built_in",match:t.either(...["abort","add","addDrvOutputDependencies","addErrorContext","all","any","appendContext","attrNames","attrValues","baseNameOf","bitAnd","bitOr","bitXor","break","builtins","catAttrs","ceil","compareVersions","concatLists","concatMap","concatStringsSep","convertHash","currentSystem","currentTime","deepSeq","derivation","derivationStrict","dirOf","div","elem","elemAt","false","fetchGit","fetchMercurial","fetchTarball","fetchTree","fetchurl","filter","filterSource","findFile","flakeRefToString","floor","foldl'","fromJSON","fromTOML","functionArgs","genList","genericClosure","getAttr","getContext","getEnv","getFlake","groupBy","hasAttr","hasContext","hashFile","hashString","head","import","intersectAttrs","isAttrs","isBool","isFloat","isFunction","isInt","isList","isNull","isPath","isString","langVersion","length","lessThan","listToAttrs","map","mapAttrs","match","mul","nixPath","nixVersion","null","parseDrvName","parseFlakeRef","partition","path","pathExists","placeholder","readDir","readFile","readFileType","removeAttrs","replaceStrings","scopedImport","seq","sort","split","splitVersion","storeDir","storePath","stringLength","sub","substring","tail","throw","toFile","toJSON","toPath","toString","toXML","trace","traceVerbose","true","tryEval","typeOf","unsafeDiscardOutputDependency","unsafeDiscardStringContext","unsafeGetAttrPos","warn","zipAttrsWith"].map(e=>`builtins\\.${e}`)),relevance:10},i="[A-Za-z_][A-Za-z0-9_'-]*",o={scope:"symbol",match:new RegExp(`<${i}(/${i})*>`)},a="[A-Za-z0-9_\\+\\.-]+",s={scope:"symbol",match:new RegExp(`(\\.\\.|\\.|~)?/(${a})?(/${a})*(?=[\\s;])`)},l=t.either("==","=","\\+\\+","\\+","<=","<\\|","<",">=",">","->","//","/","!=","!","\\|\\|","\\|>","\\?","\\*","&&"),c={scope:"operator",match:t.concat(l,/(?!-)/),relevance:0},u={scope:"number",match:new RegExp(`${e.NUMBER_RE}(?!-)`),relevance:0},d={variants:[{scope:"operator",beforeMatch:/\s/,begin:/-(?!>)/},{begin:[new RegExp(`${e.NUMBER_RE}`),/-/,/(?!>)/],beginScope:{1:"number",2:"operator"}},{begin:[l,/-/,/(?!>)/],beginScope:{1:"operator",2:"operator"}}],relevance:0},h={beforeMatch:/(^|\{|;)\s*/,begin:new RegExp(`${i}(\\.${i})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{scope:"attr",match:new RegExp(`${i}(\\.${i})*(?=\\s*=)`),relevance:.2}]},f={scope:"char.escape",match:/\\\$/},p={scope:"char.escape",match:/''\$/},g={scope:"subst",begin:/\$\{/,end:/\}/,keywords:n},m={scope:"char.escape",match:/'''/},v={scope:"char.escape",match:/\\(?!\$)./},A={scope:"string",variants:[{begin:"''",end:"''",contains:[p,g,m,v]},{begin:'"',end:'"',contains:[f,g,v]}]},b={scope:"params",match:new RegExp(`${i}\\s*:(?=\\s)`)},y=[u,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),r,A,o,s,b,h,d,c];g.contains=y;const w=[{scope:"meta.prompt",match:/^nix-repl>(?=\s)/,relevance:10},{scope:"meta",beforeMatch:/\s+/,begin:/:([a-z]+|\?)/}];return{name:"Nix",aliases:["nixos"],keywords:n,contains:y.concat(w)}}e.exports=t},33636:function(e){function t(e){const t=["if","then","else","do","while","until","for","loop","import","with","is","as","where","when","by","data","constant","integer","real","text","name","boolean","symbol","infix","prefix","postfix","block","tree"],n=["in","mod","rem","and","or","xor","not","abs","sign","floor","ceil","sqrt","sin","cos","tan","asin","acos","atan","exp","expm1","log","log2","log10","log1p","pi","at","text_length","text_range","text_find","text_replace","contains","page","slide","basic_slide","title_slide","title","subtitle","fade_in","fade_out","fade_at","clear_color","color","line_color","line_width","texture_wrap","texture_transform","texture","scale_?x","scale_?y","scale_?z?","translate_?x","translate_?y","translate_?z?","rotate_?x","rotate_?y","rotate_?z?","rectangle","circle","ellipse","sphere","path","line_to","move_to","quad_to","curve_to","theme","background","contents","locally","time","mouse_?x","mouse_?y","mouse_buttons"],r=["ObjectLoader","Animate","MovieCredits","Slides","Filters","Shading","Materials","LensFlare","Mapping","VLCAudioVideo","StereoDecoder","PointCloud","NetworkAccess","RemoteControl","RegExp","ChromaKey","Snowfall","NodeJS","Speech","Charts"],i=["true","false","nil"],o={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:t,literal:i,built_in:n.concat(r)},a={className:"string",begin:'"',end:'"',illegal:"\\n"},s={className:"string",begin:"'",end:"'",illegal:"\\n"},l={className:"string",begin:"<<",end:">>"},c={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},u={beginKeywords:"import",end:"$",keywords:o,contains:[a]},d={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:o}})]};return{name:"XL",aliases:["tao"],keywords:o,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,s,l,d,u,c,e.NUMBER_MODE]}}e.exports=t},33706:function(e,t,n){"use strict";var r=n(79504),i=n(94901),o=n(77629),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},33717:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},33853:function(e,t,n){"use strict";var r=n(46518),i=n(64449),o=n(84916),a=!o("isDisjointFrom",function(e){return!e});r({target:"Set",proto:!0,real:!0,forced:a},{isDisjointFrom:i})},34002:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=n(4663),i=n(90144),o=n(56768);const a=Symbol("XProviderContext"),s=(0,i.IJ)(),l=e=>{(0,o.Gt)(a,e),(0,o.wB)(e,()=>{s.value=(0,i.R1)(e),(0,i.mu)(s)},{immediate:!0,deep:!0})},c=()=>(0,o.WQ)(a,(0,o.EW)(()=>s.value||{})),u=((0,o.pM)({props:{value:(0,r.ge)()},setup(e,{slots:t}){return l((0,o.EW)(()=>e.value)),()=>{var e;return null==(e=t.default)?void 0:e.call(t)}}}),{classNames:{},styles:{},className:"",style:{}}),d=e=>{const t=c();return(0,o.EW)(()=>({...u,...(0,i.R1)(t)[e]}))}},34079:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="DownloadOutlined",c.inheritAttrs=!1;var u=c},34113:function(e,t,n){"use strict";var r=n(44576),i=n(70511),o=n(24913).f,a=n(77347).f,s=r.Symbol;if(i("asyncDispose"),s){var l=a(s,"asyncDispose");l.enumerable&&l.configurable&&l.writable&&o(s,"asyncDispose",{value:l.value,enumerable:!1,configurable:!1,writable:!1})}},34154:function(e,t,n){"use strict";var r=n(36955),i=TypeError;e.exports=function(e){if("Uint8Array"===r(e))return e;throw new i("Argument is not an Uint8Array")}},34162:function(e,t,n){"use strict";n.d(t,{T:function(){return o},v:function(){return a}});var r=n(56768);const i=Symbol("PortalContextKey"),o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inTriggerContext:!0};(0,r.Gt)(i,{inTriggerContext:t.inTriggerContext,shouldRender:(0,r.EW)(()=>{const{sPopupVisible:t,popupRef:n,forceRender:r,autoDestroy:i}=e||{};let o=!1;return(t||n||r)&&(o=!0),!t&&i&&(o=!1),o})})},a=()=>{o({},{inTriggerContext:!1});const e=(0,r.WQ)(i,{shouldRender:(0,r.EW)(()=>!1),inTriggerContext:!1});return{shouldRender:(0,r.EW)(()=>e.shouldRender.value||!1===e.inTriggerContext)}}},34178:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M442.3 677.6l199.4-156.7a11.3 11.3 0 000-17.7L442.3 346.4c-7.4-5.8-18.3-.6-18.3 8.8v313.5c0 9.4 10.9 14.7 18.3 8.9z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"play-square",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="PlaySquareOutlined",c.inheritAttrs=!1;var u=c},34226:function(e,t,n){"use strict";var r=n(46518),i=n(44576),o=n(63463),a=n(34154),s=n(55169),l=n(42303);i.Uint8Array&&r({target:"Uint8Array",proto:!0},{setFromHex:function(e){a(this),o(e),s(this.buffer);var t=l(e,this).read;return{read:t,written:t/2}}})},34322:function(e,t,n){"use strict";var r=n(99899);t.A=(e,t,n)=>{(0,r.Ay)(e,`[ant-design-vue: ${t}] ${n}`)}},34376:function(e,t,n){"use strict";var r=n(22195);e.exports=Array.isArray||function(e){return"Array"===r(e)}},34527:function(e,t,n){"use strict";var r=n(43724),i=n(34376),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!a(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},34804:function(e,t,n){const r=n(79547),i=1335,o=21522,a=r.getBCHDigit(i);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let s=n<<10;while(r.getBCHDigit(s)-a>=0)s^=i<<r.getBCHDigit(s)-a;return(n<<10|s)^o}},34811:function(e,t,n){"use strict";var r=n(38809);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},34988:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="MessageOutlined",c.inheritAttrs=!1;var u=c},35019:function(e,t,n){"use strict";n.d(t,{Ay:function(){return ua}});var r=n(51137),i=(n(18111),n(81148),n(22489),n(20116),n(7588),n(13579),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(41034)),o=n(56768),a=(n(61701),n(44114),n(18237),n(49974));const s=Symbol("TableContextProps"),l=e=>{(0,o.Gt)(s,e)},c=()=>(0,o.WQ)(s,{});var u=n(44832),d=n(90144);const h="RC_TABLE_KEY";function f(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}function p(e,t){if(!t&&"number"!==typeof t)return e;const n=f(t);let r=e;for(let i=0;i<n.length;i+=1){if(!r)return null;const e=n[i];r=r[e]}return r}function g(e){const t=[],n={};return e.forEach(e=>{const{key:r,dataIndex:i}=e||{};let o=r||f(i).join("-")||h;while(n[o])o=`${o}_next`;n[o]=!0,t.push(o)}),t}function m(){const e={};function t(e,n){n&&Object.keys(n).forEach(r=>{const i=n[r];i&&"object"===typeof i?(e[r]=e[r]||{},t(e[r],i)):e[r]=i})}for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return r.forEach(n=>{t(e,n)}),e}function v(e){return null!==e&&void 0!==e}const A=Symbol("SlotsContextProps"),b=e=>{(0,o.Gt)(A,e)},y=()=>(0,o.WQ)(A,(0,o.EW)(()=>({}))),w=Symbol("ContextProps"),_=e=>{(0,o.Gt)(w,e)},x=()=>(0,o.WQ)(w,{onResizeColumn:()=>{}});const E="RC_TABLE_INTERNAL_COL_DEFINE";const S=Symbol("HoverContextProps"),C=e=>{(0,o.Gt)(S,e)},T=()=>(0,o.WQ)(S,{startRow:(0,d.IJ)(-1),endRow:(0,d.IJ)(-1),onHover(){}});var k=n(55498);const O=(0,d.IJ)(!1),M=()=>{(0,o.sV)(()=>{O.value=O.value||(0,k.Ay)("position","sticky")})},I=()=>O;var D=n(88839),N=n(82978),R=n(50888),L=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function B(e,t,n,r){const i=e+t-1;return e<=r&&i>=n}function P(e){return e&&"object"===typeof e&&!Array.isArray(e)&&!(0,o.vv)(e)}var F=(0,o.pM)({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],setup(e,t){let{slots:n}=t;const s=y(),{onHover:l,startRow:c,endRow:h}=T(),f=(0,o.EW)(()=>{var t,n,r,i;return null!==(r=null!==(t=e.colSpan)&&void 0!==t?t:null===(n=e.additionalProps)||void 0===n?void 0:n.colSpan)&&void 0!==r?r:null===(i=e.additionalProps)||void 0===i?void 0:i.colspan}),g=(0,o.EW)(()=>{var t,n,r,i;return null!==(r=null!==(t=e.rowSpan)&&void 0!==t?t:null===(n=e.additionalProps)||void 0===n?void 0:n.rowSpan)&&void 0!==r?r:null===(i=e.additionalProps)||void 0===i?void 0:i.rowspan}),m=(0,D.A)(()=>{const{index:t}=e;return B(t,g.value||1,c.value,h.value)}),A=I(),b=(t,n)=>{var r;const{record:i,index:o,additionalProps:a}=e;i&&l(o,o+n-1),null===(r=null===a||void 0===a?void 0:a.onMouseenter)||void 0===r||r.call(a,t)},w=t=>{var n;const{record:r,additionalProps:i}=e;r&&l(-1,-1),null===(n=null===i||void 0===i?void 0:i.onMouseleave)||void 0===n||n.call(i,t)},_=e=>{const t=(0,u.Gk)(e)[0];return(0,o.vv)(t)?t.type===o.EY?t.children:Array.isArray(t.children)?_(t.children):void 0:t},x=(0,d.IJ)(null);return(0,o.wB)([m,()=>e.prefixCls,x],()=>{const t=(0,u.oK)(x.value);t&&(m.value?(0,R.iQ)(t,`${e.prefixCls}-cell-row-hover`):(0,R.vy)(t,`${e.prefixCls}-cell-row-hover`))}),()=>{var t,l,c,d,h,m;const{prefixCls:y,record:S,index:C,renderIndex:T,dataIndex:k,customRender:O,component:M="td",fixLeft:I,fixRight:D,firstFixLeft:R,lastFixLeft:B,firstFixRight:F,lastFixRight:$,appendNode:j=(null===(t=n.appendNode)||void 0===t?void 0:t.call(n)),additionalProps:H={},ellipsis:U,align:Q,rowType:z,isSticky:W,column:G={},cellType:V}=e,K=`${y}-cell`;let Y,q;const X=null===(l=n.default)||void 0===l?void 0:l.call(n);if(v(X)||"header"===V)q=X;else{const t=p(S,k);if(q=t,O){const e=O({text:t,value:t,record:S,index:C,renderIndex:T,column:G.__originColumn__});P(e)?(q=e.children,Y=e.props):q=e}if(!(E in G)&&"body"===V&&s.value.bodyCell&&!(null===(c=G.slots)||void 0===c?void 0:c.customRender)){const e=(0,N.QK)(s.value,"bodyCell",{text:t,value:t,record:S,index:C,column:G.__originColumn__},()=>{const e=void 0===q?t:q;return["object"===typeof e&&(0,u.zO)(e)||"object"!==typeof e?e:null]});q=(0,u.MI)(e)}e.transformCellText&&(q=e.transformCellText({text:q,record:S,index:C,column:G.__originColumn__}))}if("object"!==typeof q||Array.isArray(q)||(0,o.vv)(q)||(q=null),U&&(B||F)){(function(){})();q=(0,o.bF)("span",{class:`${K}-content`},[q])}Array.isArray(q)&&1===q.length&&(q=q[0]);const J=Y||{},{colSpan:Z,rowSpan:ee,style:te,class:ne}=J,re=L(J,["colSpan","rowSpan","style","class"]),ie=null!==(d=void 0!==Z?Z:f.value)&&void 0!==d?d:1,oe=null!==(h=void 0!==ee?ee:g.value)&&void 0!==h?h:1;if(0===ie||0===oe)return null;const ae={},se="number"===typeof I&&A.value,le="number"===typeof D&&A.value;se&&(ae.position="sticky",ae.left=`${I}px`),le&&(ae.position="sticky",ae.right=`${D}px`);const ce={};let ue;Q&&(ce.textAlign=Q);const de=!0===U?{showTitle:!0}:U;de&&(de.showTitle||"header"===z)&&("string"===typeof q||"number"===typeof q?ue=q.toString():(0,o.vv)(q)&&(ue=_([q])));const he=(0,r.A)((0,r.A)((0,r.A)({title:ue},re),H),{colSpan:1!==ie?ie:null,rowSpan:1!==oe?oe:null,class:(0,a.A)(K,{[`${K}-fix-left`]:se&&A.value,[`${K}-fix-left-first`]:R&&A.value,[`${K}-fix-left-last`]:B&&A.value,[`${K}-fix-right`]:le&&A.value,[`${K}-fix-right-first`]:F&&A.value,[`${K}-fix-right-last`]:$&&A.value,[`${K}-ellipsis`]:U,[`${K}-with-append`]:j,[`${K}-fix-sticky`]:(se||le)&&W&&A.value},H.class,ne),onMouseenter:e=>{b(e,oe)},onMouseleave:w,style:[H.style,ce,ae,te]});return(0,o.bF)(M,(0,i.A)((0,i.A)({},he),{},{ref:x}),{default:()=>[j,q,null===(m=n.dragHandle)||void 0===m?void 0:m.call(n)]})}}});function $(e,t,n,r,i){const o=n[e]||{},a=n[t]||{};let s,l;"left"===o.fixed?s=r.left[e]:"right"===a.fixed&&(l=r.right[t]);let c=!1,u=!1,d=!1,h=!1;const f=n[t+1],p=n[e-1];if("rtl"===i){if(void 0!==s){const e=p&&"left"===p.fixed;h=!e}else if(void 0!==l){const e=f&&"right"===f.fixed;d=!e}}else if(void 0!==s){const e=f&&"left"===f.fixed;c=!e}else if(void 0!==l){const e=p&&"right"===p.fixed;u=!e}return{fixLeft:s,fixRight:l,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:h,isSticky:r.isSticky}}var j=n(93631),H=n(32545),U=n(34322),Q=n(62573);const z={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},W=50;var G=(0,o.pM)({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:W},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup(e){let t=0,n={remove:()=>{}},r={remove:()=>{}};const a=()=>{n.remove(),r.remove()};(0,o.hi)(()=>{a()}),(0,o.nT)(()=>{(0,U.A)(!isNaN(e.width),"Table","width must be a number when use resizable")});const{onResizeColumn:s}=x(),l=(0,o.EW)(()=>"number"!==typeof e.minWidth||isNaN(e.minWidth)?W:e.minWidth),c=(0,o.EW)(()=>"number"!==typeof e.maxWidth||isNaN(e.maxWidth)?1/0:e.maxWidth),u=(0,o.nI)();let h=0;const f=(0,d.IJ)(!1);let p;const g=n=>{let r=0;r=n.touches?n.touches.length?n.touches[0].pageX:n.changedTouches[0].pageX:n.pageX;const i=t-r;let o=Math.max(h-i,l.value);o=Math.min(o,c.value),H.A.cancel(p),p=(0,H.A)(()=>{s(o,e.column.__originColumn__)})},m=e=>{g(e)},v=e=>{f.value=!1,g(e),a()},A=(e,i)=>{f.value=!0,a(),h=u.vnode.el.parentNode.getBoundingClientRect().width,e instanceof MouseEvent&&1!==e.which||(e.stopPropagation&&e.stopPropagation(),t=e.touches?e.touches[0].pageX:e.pageX,n=(0,j.A)(document.documentElement,i.move,m),r=(0,j.A)(document.documentElement,i.stop,v))},b=e=>{e.stopPropagation(),e.preventDefault(),A(e,z.mouse)},y=e=>{e.stopPropagation(),e.preventDefault(),A(e,z.touch)},w=e=>{e.stopPropagation(),e.preventDefault()};return()=>{const{prefixCls:t}=e,n={[Q.A?"onTouchstartPassive":"onTouchstart"]:e=>y(e)};return(0,o.bF)("div",(0,i.A)((0,i.A)({class:`${t}-resize-handle ${f.value?"dragging":""}`,onMousedown:b},n),{},{onClick:w}),[(0,o.bF)("div",{class:`${t}-resize-handle-line`},null)])}}}),V=(0,o.pM)({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup(e){const t=c();return()=>{const{prefixCls:n,direction:r}=t,{cells:a,stickyOffsets:s,flattenColumns:l,rowComponent:c,cellComponent:u,customHeaderRow:d,index:h}=e;let f;d&&(f=d(a.map(e=>e.column),h));const p=g(a.map(e=>e.column));return(0,o.bF)(c,f,{default:()=>[a.map((e,t)=>{const{column:a}=e,c=$(e.colStart,e.colEnd,l,s,r);let d;a&&a.customHeaderCell&&(d=e.column.customHeaderCell(a));const h=a;return(0,o.bF)(F,(0,i.A)((0,i.A)((0,i.A)({},e),{},{cellType:"header",ellipsis:a.ellipsis,align:a.align,component:u,prefixCls:n,key:p[t]},c),{},{additionalProps:d,rowType:"header",column:a}),{default:()=>a.title,dragHandle:()=>h.resizable?(0,o.bF)(G,{prefixCls:n,width:h.width,minWidth:h.minWidth,maxWidth:h.maxWidth,column:h},null):null})})]})}}});function K(e){const t=[];function n(e,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[i]=t[i]||[];let o=r;const s=e.filter(Boolean).map(e=>{const r={key:e.key,class:(0,a.A)(e.className,e.class),column:e,colStart:o};let s=1;const l=e.children;return l&&l.length>0&&(s=n(l,o,i+1).reduce((e,t)=>e+t,0),r.hasSubColumns=!0),"colSpan"in e&&({colSpan:s}=e),"rowSpan"in e&&(r.rowSpan=e.rowSpan),r.colSpan=s,r.colEnd=r.colStart+s-1,t[i].push(r),o+=s,s});return s}n(e,0);const r=t.length;for(let i=0;i<r;i+=1)t[i].forEach(e=>{"rowSpan"in e||e.hasSubColumns||(e.rowSpan=r-i)});return t}var Y=(0,o.pM)({name:"TableHeader",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup(e){const t=c(),n=(0,o.EW)(()=>K(e.columns));return()=>{const{prefixCls:r,getComponent:i}=t,{stickyOffsets:a,flattenColumns:s,customHeaderRow:l}=e,c=i(["header","wrapper"],"thead"),u=i(["header","row"],"tr"),d=i(["header","cell"],"th");return(0,o.bF)(c,{class:`${r}-thead`},{default:()=>[n.value.map((e,t)=>{const n=(0,o.bF)(V,{key:t,flattenColumns:s,cells:e,stickyOffsets:a,rowComponent:u,cellComponent:d,customHeaderRow:l,index:t},null);return n})]})}}});const q=Symbol("ExpandedRowProps"),X=e=>{(0,o.Gt)(q,e)},J=()=>(0,o.WQ)(q,{});var Z=(0,o.pM)({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup(e,t){let{slots:n,attrs:r}=t;const i=c(),a=J(),{fixHeader:s,fixColumn:l,componentWidth:u,horizonScroll:d}=a;return()=>{const{prefixCls:t,component:a,cellComponent:c,expanded:h,colSpan:f,isEmpty:p}=e;return(0,o.bF)(a,{class:r.class,style:{display:h?null:"none"}},{default:()=>[(0,o.bF)(F,{component:c,prefixCls:t,colSpan:f},{default:()=>{var e;let r=null===(e=n.default)||void 0===e?void 0:e.call(n);if(p?d.value:l.value){(function(){})();r=(0,o.bF)("div",{style:{width:u.value-(s.value?i.scrollbarSize:0)+"px",position:"sticky",left:0,overflow:"hidden"},class:`${t}-expanded-row-fixed`},[r])}return r}})]})}}}),ee=n(95572),te=(0,o.pM)({name:"MeasureCell",props:["columnKey"],setup(e,t){let{emit:n}=t;const r=(0,d.KR)();return(0,o.sV)(()=>{r.value&&n("columnResize",e.columnKey,r.value.offsetWidth)}),()=>(0,o.bF)(ee.A,{onResize:t=>{let{offsetWidth:r}=t;n("columnResize",e.columnKey,r)}},{default:()=>[(0,o.bF)("td",{ref:r,style:{padding:0,border:0,height:0}},[(0,o.bF)("div",{style:{height:0,overflow:"hidden"}},[(0,o.eW)(" ")])])]})}});const ne=Symbol("BodyContextProps"),re=e=>{(0,o.Gt)(ne,e)},ie=()=>(0,o.WQ)(ne,{});var oe=(0,o.pM)({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup(e,t){let{attrs:n}=t;const r=c(),s=ie(),l=(0,d.IJ)(!1),u=(0,o.EW)(()=>e.expandedKeys&&e.expandedKeys.has(e.recordKey));(0,o.nT)(()=>{u.value&&(l.value=!0)});const h=(0,o.EW)(()=>"row"===s.expandableType&&(!e.rowExpandable||e.rowExpandable(e.record))),f=(0,o.EW)(()=>"nest"===s.expandableType),p=(0,o.EW)(()=>e.childrenColumnName&&e.record&&e.record[e.childrenColumnName]),m=(0,o.EW)(()=>h.value||f.value),v=(e,t)=>{s.onTriggerExpand(e,t)},A=(0,o.EW)(()=>{var t;return(null===(t=e.customRow)||void 0===t?void 0:t.call(e,e.record,e.index))||{}}),b=function(t){var n,r;s.expandRowByClick&&m.value&&v(e.record,t);for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];null===(r=null===(n=A.value)||void 0===n?void 0:n.onClick)||void 0===r||r.call(n,t,...o)},y=(0,o.EW)(()=>{const{record:t,index:n,indent:r}=e,{rowClassName:i}=s;return"string"===typeof i?i:"function"===typeof i?i(t,n,r):""}),w=(0,o.EW)(()=>g(s.flattenColumns));return()=>{const{class:t,style:c}=n,{record:d,index:g,rowKey:m,indent:_=0,rowComponent:x,cellComponent:E}=e,{prefixCls:S,fixedInfoList:C,transformCellText:T}=r,{flattenColumns:k,expandedRowClassName:O,indentSize:M,expandIcon:I,expandedRowRender:D,expandIconColumnIndex:N}=s,R=(0,o.bF)(x,(0,i.A)((0,i.A)({},A.value),{},{"data-row-key":m,class:(0,a.A)(t,`${S}-row`,`${S}-row-level-${_}`,y.value,A.value.class),style:[c,A.value.style],onClick:b}),{default:()=>[k.map((t,n)=>{const{customRender:r,dataIndex:a,className:s}=t,l=w[n],c=C[n];let h;t.customCell&&(h=t.customCell(d,g,t));const m=n===(N||0)&&f.value?(0,o.bF)(o.FK,null,[(0,o.bF)("span",{style:{paddingLeft:M*_+"px"},class:`${S}-row-indent indent-level-${_}`},null),I({prefixCls:S,expanded:u.value,expandable:p.value,record:d,onExpand:v})]):null;return(0,o.bF)(F,(0,i.A)((0,i.A)({cellType:"body",class:s,ellipsis:t.ellipsis,align:t.align,component:E,prefixCls:S,key:l,record:d,index:g,renderIndex:e.renderIndex,dataIndex:a,customRender:r},c),{},{additionalProps:h,column:t,transformCellText:T,appendNode:m}),null)})]});let L;if(h.value&&(l.value||u.value)){const e=D({record:d,index:g,indent:_+1,expanded:u.value}),t=O&&O(d,g,_);L=(0,o.bF)(Z,{expanded:u.value,class:(0,a.A)(`${S}-expanded-row`,`${S}-expanded-row-level-${_+1}`,t),prefixCls:S,component:x,cellComponent:E,colSpan:k.length,isEmpty:!1},{default:()=>[e]})}return(0,o.bF)(o.FK,null,[R,L])}}});function ae(e,t,n,r,i,o){const a=[];a.push({record:e,indent:t,index:o});const s=i(e),l=null===r||void 0===r?void 0:r.has(s);if(e&&Array.isArray(e[n])&&l)for(let c=0;c<e[n].length;c+=1){const o=ae(e[n][c],t+1,n,r,i,c);a.push(...o)}return a}function se(e,t,n,r){const i=(0,o.EW)(()=>{const i=t.value,o=n.value,a=e.value;if(null===o||void 0===o?void 0:o.size){const e=[];for(let t=0;t<(null===a||void 0===a?void 0:a.length);t+=1){const n=a[t];e.push(...ae(n,0,i,o,r.value,t))}return e}return null===a||void 0===a?void 0:a.map((e,t)=>({record:e,indent:0,index:t}))});return i}const le=Symbol("ResizeContextProps"),ce=e=>{(0,o.Gt)(le,e)},ue=()=>(0,o.WQ)(le,{onColumnResize:()=>{}});var de=(0,o.pM)({name:"TableBody",props:["data","getRowKey","measureColumnWidth","expandedKeys","customRow","rowExpandable","childrenColumnName"],setup(e,t){let{slots:n}=t;const r=ue(),i=c(),a=ie(),s=se((0,d.lW)(e,"data"),(0,d.lW)(e,"childrenColumnName"),(0,d.lW)(e,"expandedKeys"),(0,d.lW)(e,"getRowKey")),l=(0,d.IJ)(-1),u=(0,d.IJ)(-1);let h;return C({startRow:l,endRow:u,onHover:(e,t)=>{clearTimeout(h),h=setTimeout(()=>{l.value=e,u.value=t},100)}}),()=>{var t;const{data:l,getRowKey:c,measureColumnWidth:u,expandedKeys:d,customRow:h,rowExpandable:f,childrenColumnName:p}=e,{onColumnResize:m}=r,{prefixCls:v,getComponent:A}=i,{flattenColumns:b}=a,y=A(["body","wrapper"],"tbody"),w=A(["body","row"],"tr"),_=A(["body","cell"],"td");let x;x=l.length?s.value.map((e,t)=>{const{record:n,indent:r,index:i}=e,a=c(n,t);return(0,o.bF)(oe,{key:a,rowKey:a,record:n,recordKey:a,index:t,renderIndex:i,rowComponent:w,cellComponent:_,expandedKeys:d,customRow:h,getRowKey:c,rowExpandable:f,childrenColumnName:p,indent:r},null)}):(0,o.bF)(Z,{expanded:!0,class:`${v}-placeholder`,prefixCls:v,component:w,cellComponent:_,colSpan:b.length,isEmpty:!0},{default:()=>[null===(t=n.emptyNode)||void 0===t?void 0:t.call(n)]});const E=g(b);return(0,o.bF)(y,{class:`${v}-tbody`},{default:()=>[u&&(0,o.bF)("tr",{"aria-hidden":"true",class:`${v}-measure-row`,style:{height:0,fontSize:0}},[E.map(e=>(0,o.bF)(te,{key:e,columnKey:e,onColumnResize:m},null))]),x]})}}});const he={};var fe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function pe(e){return e.reduce((e,t)=>{const{fixed:n}=t,i=!0===n?"left":n,o=t.children;return o&&o.length>0?[...e,...pe(o).map(e=>(0,r.A)({fixed:i},e))]:[...e,(0,r.A)((0,r.A)({},t),{fixed:i})]},[])}function ge(e){return e.map(e=>{const{fixed:t}=e,n=fe(e,["fixed"]);let i=t;return"left"===t?i="right":"right"===t&&(i="left"),(0,r.A)({fixed:i},n)})}function me(e,t){let{prefixCls:n,columns:r,expandable:i,expandedKeys:a,getRowKey:s,onTriggerExpand:l,expandIcon:c,rowExpandable:u,expandIconColumnIndex:d,direction:h,expandRowByClick:f,expandColumnWidth:p,expandFixed:g}=e;const m=y(),v=(0,o.EW)(()=>{if(i.value){let e=r.value.slice();if(!e.includes(he)){const t=d.value||0;t>=0&&e.splice(t,0,he)}0;const t=e.indexOf(he);e=e.filter((e,n)=>e!==he||n===t);const i=r.value[t];let h;h="left"!==g.value&&!g.value||d.value?"right"!==g.value&&!g.value||d.value!==r.value.length?i?i.fixed:null:"right":"left";const v=a.value,A=u.value,b=c.value,y=n.value,w=f.value,_={[E]:{class:`${n.value}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:(0,N.QK)(m.value,"expandColumnTitle",{},()=>[""]),fixed:h,class:`${n.value}-row-expand-icon-cell`,width:p.value,customRender:e=>{let{record:t,index:n}=e;const r=s.value(t,n),i=v.has(r),a=!A||A(t),c=b({prefixCls:y,expanded:i,expandable:a,record:t,onExpand:l});return w?(0,o.bF)("span",{onClick:e=>e.stopPropagation()},[c]):c}};return e.map(e=>e===he?_:e)}return r.value.filter(e=>e!==he)}),A=(0,o.EW)(()=>{let e=v.value;return t.value&&(e=t.value(e)),e.length||(e=[{customRender:()=>null}]),e}),b=(0,o.EW)(()=>"rtl"===h.value?ge(pe(A.value)):pe(A.value));return[A,b]}var ve=me;function Ae(e){const t=(0,d.IJ)(e);let n;const r=(0,d.IJ)([]);function i(e){r.value.push(e),H.A.cancel(n),n=(0,H.A)(()=>{const e=r.value;r.value=[],e.forEach(e=>{t.value=e(t.value)})})}return(0,o.xo)(()=>{H.A.cancel(n)}),[t,i]}function be(e){const t=(0,d.KR)(e||null),n=(0,d.KR)();function r(){clearTimeout(n.value)}function i(e){t.value=e,r(),n.value=setTimeout(()=>{t.value=null,n.value=void 0},100)}function a(){return t.value}return(0,o.xo)(()=>{r()}),[i,a]}function ye(e,t,n){const r=(0,o.EW)(()=>{const r=[],i=[];let o=0,a=0;const s=e.value,l=t.value,c=n.value;for(let e=0;e<l;e+=1)if("rtl"===c){i[e]=a,a+=s[e]||0;const t=l-e-1;r[t]=o,o+=s[t]||0}else{r[e]=o,o+=s[e]||0;const t=l-e-1;i[t]=a,a+=s[t]||0}return{left:r,right:i}});return r}var we=ye,_e=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function xe(e){let{colWidths:t,columns:n,columCount:r}=e;const a=[],s=r||n.length;let l=!1;for(let c=s-1;c>=0;c-=1){const e=t[c],r=n&&n[c],s=r&&r[E];if(e||s||l){const t=s||{},{columnType:n}=t,r=_e(t,["columnType"]);a.unshift((0,o.bF)("col",(0,i.A)({key:c,style:{width:"number"===typeof e?`${e}px`:e}},r),null)),l=!0}}return(0,o.bF)("colgroup",null,[a])}var Ee=xe;function Se(e,t){let{slots:n}=t;var r;return(0,o.bF)("div",null,[null===(r=n.default)||void 0===r?void 0:r.call(n)])}Se.displayName="Panel";var Ce=Se;let Te=0;const ke=(0,o.pM)({name:"TableSummary",props:["fixed"],setup(e,t){let{slots:n}=t;const r=c(),i="table-summary-uni-key-"+ ++Te,a=(0,o.EW)(()=>""===e.fixed||e.fixed);return(0,o.nT)(()=>{r.summaryCollect(i,a.value)}),(0,o.xo)(()=>{r.summaryCollect(i,!1)}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});var Oe=ke;const Me=Symbol("SummaryContextProps"),Ie=e=>{(0,o.Gt)(Me,e)},De=()=>(0,o.WQ)(Me,{});var Ne=(0,o.pM)({name:"TableFooter",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup(e,t){let{slots:n}=t;const r=c();return Ie((0,d.Kh)({stickyOffsets:(0,d.lW)(e,"stickyOffsets"),flattenColumns:(0,d.lW)(e,"flattenColumns"),scrollColumnIndex:(0,o.EW)(()=>{const t=e.flattenColumns.length-1,n=e.flattenColumns[t];return(null===n||void 0===n?void 0:n.scrollbar)?t:null})})),()=>{var e;const{prefixCls:t}=r;return(0,o.bF)("tfoot",{class:`${t}-summary`},[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}});const Re=Oe;function Le(e){let{prefixCls:t,record:n,onExpand:r,expanded:i,expandable:a}=e;const s=`${t}-row-expand-icon`;if(!a)return(0,o.bF)("span",{class:[s,`${t}-row-spaced`]},null);const l=e=>{r(n,e),e.stopPropagation()};return(0,o.bF)("span",{class:{[s]:!0,[`${t}-row-expanded`]:i,[`${t}-row-collapsed`]:!i},onClick:l},null)}function Be(e,t,n){const r=[];function i(e){(e||[]).forEach((e,o)=>{r.push(t(e,o)),i(e[n])})}return i(e),r}var Pe=n(1147),Fe=n(20881),$e=(0,o.pM)({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup(e,t){let{emit:n,expose:i}=t;const s=c(),l=(0,d.IJ)(0),u=(0,d.IJ)(0),h=(0,d.IJ)(0);(0,o.nT)(()=>{l.value=e.scrollBodySizeInfo.scrollWidth||0,u.value=e.scrollBodySizeInfo.clientWidth||0,h.value=l.value&&u.value*(u.value/l.value)},{flush:"post"});const f=(0,d.IJ)(),[p,g]=Ae({scrollLeft:0,isHiddenScrollBar:!0}),m=(0,d.KR)({delta:0,x:0}),v=(0,d.IJ)(!1),A=()=>{v.value=!1},b=e=>{m.value={delta:e.pageX-p.value.scrollLeft,x:0},v.value=!0,e.preventDefault()},y=e=>{const{buttons:t}=e||(null===window||void 0===window?void 0:window.event);if(!v.value||0===t)return void(v.value&&(v.value=!1));let r=m.value.x+e.pageX-m.value.x-m.value.delta;r<=0&&(r=0),r+h.value>=u.value&&(r=u.value-h.value),n("scroll",{scrollLeft:r/u.value*(l.value+2)}),m.value.x=e.pageX},w=()=>{if(!e.scrollBodyRef.value)return;const t=(0,Pe.A3)(e.scrollBodyRef.value).top,n=t+e.scrollBodyRef.value.offsetHeight,i=e.container===window?document.documentElement.scrollTop+window.innerHeight:(0,Pe.A3)(e.container).top+e.container.clientHeight;n-(0,Fe.A)()<=i||t>=i-e.offsetScroll?g(e=>(0,r.A)((0,r.A)({},e),{isHiddenScrollBar:!0})):g(e=>(0,r.A)((0,r.A)({},e),{isHiddenScrollBar:!1}))},_=e=>{g(t=>(0,r.A)((0,r.A)({},t),{scrollLeft:e/l.value*u.value||0}))};i({setScrollLeft:_});let x=null,E=null,S=null,C=null;(0,o.sV)(()=>{x=(0,j.A)(document.body,"mouseup",A,!1),E=(0,j.A)(document.body,"mousemove",y,!1),S=(0,j.A)(window,"resize",w,!1)}),(0,o.n)(()=>{(0,o.dY)(()=>{w()})}),(0,o.sV)(()=>{setTimeout(()=>{(0,o.wB)([h,v],()=>{w()},{immediate:!0,flush:"post"})})}),(0,o.wB)(()=>e.container,()=>{null===C||void 0===C||C.remove(),C=(0,j.A)(e.container,"scroll",w,!1)},{immediate:!0,flush:"post"}),(0,o.xo)(()=>{null===x||void 0===x||x.remove(),null===E||void 0===E||E.remove(),null===C||void 0===C||C.remove(),null===S||void 0===S||S.remove()}),(0,o.wB)(()=>(0,r.A)({},p.value),(t,n)=>{t.isHiddenScrollBar===(null===n||void 0===n?void 0:n.isHiddenScrollBar)||t.isHiddenScrollBar||g(t=>{const n=e.scrollBodyRef.value;return n?(0,r.A)((0,r.A)({},t),{scrollLeft:n.scrollLeft/n.scrollWidth*n.clientWidth}):t})},{immediate:!0});const T=(0,Fe.A)();return()=>{if(l.value<=u.value||!h.value||p.value.isHiddenScrollBar)return null;const{prefixCls:t}=s;return(0,o.bF)("div",{style:{height:`${T}px`,width:`${u.value}px`,bottom:`${e.offsetScroll}px`},class:`${t}-sticky-scroll`},[(0,o.bF)("div",{onMousedown:b,ref:f,class:(0,a.A)(`${t}-sticky-scroll-bar`,{[`${t}-sticky-scroll-bar-active`]:v.value}),style:{width:`${h.value}px`,transform:`translate3d(${p.value.scrollLeft}px, 0, 0)`}},null)])}}}),je=n(45887);const He=(0,je.A)()?window:null;function Ue(e,t){return(0,o.EW)(()=>{const{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:i=0,getContainer:o=()=>He}="object"===typeof e.value?e.value:{},a=o()||He,s=!!e.value;return{isSticky:s,stickyClassName:s?`${t.value}-sticky-holder`:"",offsetHeader:n,offsetSummary:r,offsetScroll:i,container:a}})}function Qe(e,t){return(0,o.EW)(()=>{const n=[],r=e.value,i=t.value;for(let e=0;e<i;e+=1){const t=r[e];if(void 0===t)return null;n[e]=t}return n})}var ze=(0,o.pM)({name:"FixedHolder",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow","noData","maxContentScroll","colWidths","columCount","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName"],emits:["scroll"],setup(e,t){let{attrs:n,slots:i,emit:s}=t;const l=c(),u=(0,o.EW)(()=>l.isSticky&&!e.fixHeader?0:l.scrollbarSize),h=(0,d.KR)(),f=e=>{const{currentTarget:t,deltaX:n}=e;n&&(s("scroll",{currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())},p=(0,d.KR)();(0,o.sV)(()=>{(0,o.dY)(()=>{p.value=(0,j.A)(h.value,"wheel",f)})}),(0,o.xo)(()=>{var e;null===(e=p.value)||void 0===e||e.remove()});const g=(0,o.EW)(()=>e.flattenColumns.every(e=>e.width&&0!==e.width&&"0px"!==e.width)),m=(0,d.KR)([]),v=(0,d.KR)([]);(0,o.nT)(()=>{const t=e.flattenColumns[e.flattenColumns.length-1],n={fixed:t?t.fixed:null,scrollbar:!0,customHeaderCell:()=>({class:`${l.prefixCls}-cell-scrollbar`})};m.value=u.value?[...e.columns,n]:e.columns,v.value=u.value?[...e.flattenColumns,n]:e.flattenColumns});const A=(0,o.EW)(()=>{const{stickyOffsets:t,direction:n}=e,{right:i,left:o}=t;return(0,r.A)((0,r.A)({},t),{left:"rtl"===n?[...o.map(e=>e+u.value),0]:o,right:"rtl"===n?i:[...i.map(e=>e+u.value),0],isSticky:l.isSticky})}),b=Qe((0,d.lW)(e,"colWidths"),(0,d.lW)(e,"columCount"));return()=>{var t;const{noData:s,columCount:c,stickyTopOffset:d,stickyBottomOffset:f,stickyClassName:p,maxContentScroll:y}=e,{isSticky:w}=l;return(0,o.bF)("div",{style:(0,r.A)({overflow:"hidden"},w?{top:`${d}px`,bottom:`${f}px`}:{}),ref:h,class:(0,a.A)(n.class,{[p]:!!p})},[(0,o.bF)("table",{style:{tableLayout:"fixed",visibility:s||b.value?null:"hidden"}},[(!s||!y||g.value)&&(0,o.bF)(Ee,{colWidths:b.value?[...b.value,u.value]:[],columCount:c+1,columns:v.value},null),null===(t=i.default)||void 0===t?void 0:t.call(i,(0,r.A)((0,r.A)({},e),{stickyOffsets:A.value,columns:m.value,flattenColumns:v.value}))])])}}}),We=n(99899);function Ge(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var i=e[t];r[i[0]]=i[1]}return r}var Ve=Ge;function Ke(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,d.Kh)(Ve(n.map(t=>[t,(0,d.lW)(e,t)])))}var Ye=n(83823),qe=n(39058),Xe=n(53942),Je=n(5220);const Ze=[],et={},tt="rc-table-internal-hook";var nt=(0,o.pM)({name:"VcTable",inheritAttrs:!1,props:["prefixCls","data","columns","rowKey","tableLayout","scroll","rowClassName","title","footer","id","showHeader","components","customRow","customHeaderRow","direction","expandFixed","expandColumnWidth","expandedRowKeys","defaultExpandedRowKeys","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","onUpdate:expandedRowKeys","defaultExpandAllRows","indentSize","expandIconColumnIndex","expandedRowClassName","childrenColumnName","rowExpandable","sticky","transformColumns","internalHooks","internalRefs","canExpandable","onUpdateInternalRefs","transformCellText"],emits:["expand","expandedRowsChange","updateInternalRefs","update:expandedRowKeys"],setup(e,t){let{attrs:n,slots:s,emit:c}=t;const u=(0,o.EW)(()=>e.data||Ze),h=(0,o.EW)(()=>!!u.value.length),f=(0,o.EW)(()=>m(e.components,{})),A=(e,t)=>p(f.value,e)||t,b=(0,o.EW)(()=>{const t=e.rowKey;return"function"===typeof t?t:e=>{const n=e&&e[t];return n}}),y=(0,o.EW)(()=>e.expandIcon||Le),w=(0,o.EW)(()=>e.childrenColumnName||"children"),_=(0,o.EW)(()=>e.expandedRowRender?"row":!(!e.canExpandable&&!u.value.some(e=>e&&"object"===typeof e&&e[w.value]))&&"nest"),x=(0,d.IJ)([]),E=(0,o.nT)(()=>{e.defaultExpandedRowKeys&&(x.value=e.defaultExpandedRowKeys),e.defaultExpandAllRows&&(x.value=Be(u.value,b.value,w.value))});E();const S=(0,o.EW)(()=>new Set(e.expandedRowKeys||x.value||[])),C=e=>{const t=b.value(e,u.value.indexOf(e));let n;const r=S.value.has(t);r?(S.value.delete(t),n=[...S.value]):n=[...S.value,t],x.value=n,c("expand",!r,e),c("update:expandedRowKeys",n),c("expandedRowsChange",n)};const T=(0,d.KR)(0),[k,O]=ve((0,r.A)((0,r.A)({},(0,d.QW)(e)),{expandable:(0,o.EW)(()=>!!e.expandedRowRender),expandedKeys:S,getRowKey:b,onTriggerExpand:C,expandIcon:y}),(0,o.EW)(()=>e.internalHooks===tt?e.transformColumns:null)),I=(0,o.EW)(()=>({columns:k.value,flattenColumns:O.value})),D=(0,d.KR)(),N=(0,d.KR)(),R=(0,d.KR)(),L=(0,d.KR)({scrollWidth:0,clientWidth:0}),B=(0,d.KR)(),[P,F]=(0,Ye.A)(!1),[j,H]=(0,Ye.A)(!1),[U,Q]=Ae(new Map),z=(0,o.EW)(()=>g(O.value)),W=(0,o.EW)(()=>z.value.map(e=>U.value.get(e))),G=(0,o.EW)(()=>O.value.length),V=we(W,G,(0,d.lW)(e,"direction")),K=(0,o.EW)(()=>e.scroll&&v(e.scroll.y)),q=(0,o.EW)(()=>e.scroll&&v(e.scroll.x)||Boolean(e.expandFixed)),J=(0,o.EW)(()=>q.value&&O.value.some(e=>{let{fixed:t}=e;return t})),Z=(0,d.KR)(),te=Ue((0,d.lW)(e,"sticky"),(0,d.lW)(e,"prefixCls")),ne=(0,d.Kh)({}),ie=(0,o.EW)(()=>{const e=Object.values(ne)[0];return(K.value||te.value.isSticky)&&e}),oe=(e,t)=>{t?ne[e]=t:delete ne[e]},ae=(0,d.KR)({}),se=(0,d.KR)({}),le=(0,d.KR)({});(0,o.nT)(()=>{K.value&&(se.value={overflowY:"scroll",maxHeight:(0,qe.cl)(e.scroll.y)}),q.value&&(ae.value={overflowX:"auto"},K.value||(se.value={overflowY:"hidden"}),le.value={width:!0===e.scroll.x?"auto":(0,qe.cl)(e.scroll.x),minWidth:"100%"})});const ue=(e,t)=>{(0,Xe.A)(D.value)&&Q(n=>{if(n.get(e)!==t){const r=new Map(n);return r.set(e,t),r}return n})},[he,fe]=be(null);function pe(e,t){if(!t)return;if("function"===typeof t)return void t(e);const n=t.$el||t;n.scrollLeft!==e&&(n.scrollLeft=e)}const ge=t=>{let{currentTarget:n,scrollLeft:r}=t;var i;const o="rtl"===e.direction,a="number"===typeof r?r:n.scrollLeft,s=n||et;if(fe()&&fe()!==s||(he(s),pe(a,N.value),pe(a,R.value),pe(a,B.value),pe(a,null===(i=Z.value)||void 0===i?void 0:i.setScrollLeft)),n){const{scrollWidth:e,clientWidth:t}=n;o?(F(-a<e-t),H(-a>0)):(F(a>0),H(a<e-t))}},me=()=>{q.value&&R.value?ge({currentTarget:R.value}):(F(!1),H(!1))};let ye;const _e=e=>{e!==T.value&&(me(),T.value=D.value?D.value.offsetWidth:e)},xe=e=>{let{width:t}=e;clearTimeout(ye),0!==T.value?ye=setTimeout(()=>{_e(t)},100):_e(t)};(0,o.wB)([q,()=>e.data,()=>e.columns],()=>{q.value&&me()},{flush:"post"});const[Se,Te]=(0,Ye.A)(0);M(),(0,o.sV)(()=>{(0,o.dY)(()=>{var e,t;me(),Te((0,Fe.V)(R.value).width),L.value={scrollWidth:(null===(e=R.value)||void 0===e?void 0:e.scrollWidth)||0,clientWidth:(null===(t=R.value)||void 0===t?void 0:t.clientWidth)||0}})}),(0,o.$u)(()=>{(0,o.dY)(()=>{var e,t;const n=(null===(e=R.value)||void 0===e?void 0:e.scrollWidth)||0,r=(null===(t=R.value)||void 0===t?void 0:t.clientWidth)||0;L.value.scrollWidth===n&&L.value.clientWidth===r||(L.value={scrollWidth:n,clientWidth:r})})}),(0,o.nT)(()=>{e.internalHooks===tt&&e.internalRefs&&e.onUpdateInternalRefs({body:R.value?R.value.$el||R.value:null})},{flush:"post"});const ke=(0,o.EW)(()=>e.tableLayout?e.tableLayout:J.value?"max-content"===e.scroll.x?"auto":"fixed":K.value||te.value.isSticky||O.value.some(e=>{let{ellipsis:t}=e;return t})?"fixed":"auto"),Oe=()=>{var e;return h.value?null:(null===(e=s.emptyText)||void 0===e?void 0:e.call(s))||"No Data"};l((0,d.Kh)((0,r.A)((0,r.A)({},(0,d.QW)(Ke(e,"prefixCls","direction","transformCellText"))),{getComponent:A,scrollbarSize:Se,fixedInfoList:(0,o.EW)(()=>O.value.map((t,n)=>$(n,n,O.value,V.value,e.direction))),isSticky:(0,o.EW)(()=>te.value.isSticky),summaryCollect:oe}))),re((0,d.Kh)((0,r.A)((0,r.A)({},(0,d.QW)(Ke(e,"rowClassName","expandedRowClassName","expandRowByClick","expandedRowRender","expandIconColumnIndex","indentSize"))),{columns:k,flattenColumns:O,tableLayout:ke,expandIcon:y,expandableType:_,onTriggerExpand:C}))),ce({onColumnResize:ue}),X({componentWidth:T,fixHeader:K,fixColumn:J,horizonScroll:q});const Me=()=>(0,o.bF)(de,{data:u.value,measureColumnWidth:K.value||q.value||te.value.isSticky,expandedKeys:S.value,rowExpandable:e.rowExpandable,getRowKey:b.value,customRow:e.customRow,childrenColumnName:w.value},{emptyNode:Oe}),Ie=()=>(0,o.bF)(Ee,{colWidths:O.value.map(e=>{let{width:t}=e;return t}),columns:O.value},null);return()=>{var t;const{prefixCls:l,scroll:c,tableLayout:d,direction:h,title:f=s.title,footer:p=s.footer,id:g,showHeader:m,customHeaderRow:v}=e,{isSticky:b,offsetHeader:y,offsetSummary:w,offsetScroll:_,stickyClassName:x,container:E}=te.value,S=A(["table"],"table"),C=A(["body"]),T=null===(t=s.summary)||void 0===t?void 0:t.call(s,{pageData:u.value});let M=()=>null;const F={colWidths:W.value,columCount:O.value.length,stickyOffsets:V.value,customHeaderRow:v,fixHeader:K.value,scroll:c};if(K.value||b){let e=()=>null;"function"===typeof C?(e=()=>C(u.value,{scrollbarSize:Se.value,ref:R,onScroll:ge}),F.colWidths=O.value.map((e,t)=>{let{width:n}=e;const r=t===k.value.length-1?n-Se.value:n;return"number"!==typeof r||Number.isNaN(r)?((0,We.$e)(!1,"When use `components.body` with render props. Each column should have a fixed `width` value."),0):r})):e=()=>(0,o.bF)("div",{style:(0,r.A)((0,r.A)({},ae.value),se.value),onScroll:ge,ref:R,class:(0,a.A)(`${l}-body`)},[(0,o.bF)(S,{style:(0,r.A)((0,r.A)({},le.value),{tableLayout:ke.value})},{default:()=>[Ie(),Me(),!ie.value&&T&&(0,o.bF)(Ne,{stickyOffsets:V.value,flattenColumns:O.value},{default:()=>[T]})]})]);const t=(0,r.A)((0,r.A)((0,r.A)({noData:!u.value.length,maxContentScroll:q.value&&"max-content"===c.x},F),I.value),{direction:h,stickyClassName:x,onScroll:ge});M=()=>(0,o.bF)(o.FK,null,[!1!==m&&(0,o.bF)(ze,(0,i.A)((0,i.A)({},t),{},{stickyTopOffset:y,class:`${l}-header`,ref:N}),{default:e=>(0,o.bF)(o.FK,null,[(0,o.bF)(Y,e,null),"top"===ie.value&&(0,o.bF)(Ne,e,{default:()=>[T]})])}),e(),ie.value&&"top"!==ie.value&&(0,o.bF)(ze,(0,i.A)((0,i.A)({},t),{},{stickyBottomOffset:w,class:`${l}-summary`,ref:B}),{default:e=>(0,o.bF)(Ne,e,{default:()=>[T]})}),b&&R.value&&(0,o.bF)($e,{ref:Z,offsetScroll:_,scrollBodyRef:R,onScroll:ge,container:E,scrollBodySizeInfo:L.value},null)])}else M=()=>(0,o.bF)("div",{style:(0,r.A)((0,r.A)({},ae.value),se.value),class:(0,a.A)(`${l}-content`),onScroll:ge,ref:R},[(0,o.bF)(S,{style:(0,r.A)((0,r.A)({},le.value),{tableLayout:ke.value})},{default:()=>[Ie(),!1!==m&&(0,o.bF)(Y,(0,i.A)((0,i.A)({},F),I.value),null),Me(),T&&(0,o.bF)(Ne,{stickyOffsets:V.value,flattenColumns:O.value},{default:()=>[T]})]})]);const $=(0,Je.A)(n,{aria:!0,data:!0}),H=()=>(0,o.bF)("div",(0,i.A)((0,i.A)({},$),{},{class:(0,a.A)(l,{[`${l}-rtl`]:"rtl"===h,[`${l}-ping-left`]:P.value,[`${l}-ping-right`]:j.value,[`${l}-layout-fixed`]:"fixed"===d,[`${l}-fixed-header`]:K.value,[`${l}-fixed-column`]:J.value,[`${l}-scroll-horizontal`]:q.value,[`${l}-has-fix-left`]:O.value[0]&&O.value[0].fixed,[`${l}-has-fix-right`]:O.value[G.value-1]&&"right"===O.value[G.value-1].fixed,[n.class]:n.class}),style:n.style,id:g,ref:D}),[f&&(0,o.bF)(Ce,{class:`${l}-title`},{default:()=>[f(u.value)]}),(0,o.bF)("div",{class:`${l}-container`},[M()]),p&&(0,o.bF)(Ce,{class:`${l}-footer`},{default:()=>[p(u.value)]})]);return q.value?(0,o.bF)(ee.A,{onResize:xe},{default:H}):H()}}}),rt=nt,it=n(35757),ot=n(78187);function at(){const e=(0,r.A)({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach(t=>{const r=n[t];void 0!==r&&(e[t]=r)})}return e}var st=at;const lt=10;function ct(e,t){const n={current:e.current,pageSize:e.pageSize},r=t&&"object"===typeof t?t:{};return Object.keys(r).forEach(t=>{const r=e[t];"function"!==typeof r&&(n[t]=r)}),n}function ut(e,t,n){const i=(0,o.EW)(()=>t.value&&"object"===typeof t.value?t.value:{}),a=(0,o.EW)(()=>i.value.total||0),[s,l]=(0,Ye.A)(()=>({current:"defaultCurrent"in i.value?i.value.defaultCurrent:1,pageSize:"defaultPageSize"in i.value?i.value.defaultPageSize:lt})),c=(0,o.EW)(()=>{const t=st(s.value,i.value,{total:a.value>0?a.value:e.value}),n=Math.ceil((a.value||e.value)/t.pageSize);return t.current>n&&(t.current=n||1),t}),u=(e,n)=>{!1!==t.value&&l({current:null!==e&&void 0!==e?e:1,pageSize:n||c.value.pageSize})},d=(e,r)=>{var o,a;t.value&&(null===(a=(o=i.value).onChange)||void 0===a||a.call(o,e,r)),u(e,r),n(e,r||c.value.pageSize)};return[(0,o.EW)(()=>!1===t.value?{}:(0,r.A)((0,r.A)({},c.value),{onChange:d})),u]}function dt(e,t,n){const r=(0,d.IJ)({});function i(e){return r.value.kvMap.get(e)}return(0,o.wB)([e,t,n],()=>{const i=new Map,o=n.value,a=t.value;function s(e){e.forEach((e,t)=>{const n=o(e,t);i.set(n,e),e&&"object"===typeof e&&a in e&&s(e[a]||[])})}s(e.value),r.value={kvMap:i}},{deep:!0,immediate:!0}),[i]}var ht=n(45389);function ft(e,t){if(!e)return[];const n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function pt(e,t){const n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function gt(e){return e.split("-")}function mt(e,t){return`${e}-${t}`}function vt(e){return e&&e.type&&e.type.isTreeNode}function At(e,t){const n=[],r=t[e];function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach(e=>{let{key:t,children:r}=e;n.push(t),i(r)})}return i(r.children),n}function bt(e){if(e.parent){const t=gt(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function yt(e){const t=gt(e.pos);return 0===Number(t[t.length-1])}function wt(e,t,n,r,i,o,a,s,l,c){var u;const{clientX:d,clientY:h}=e,{top:f,height:p}=e.target.getBoundingClientRect(),g=("rtl"===c?-1:1)*(((null===i||void 0===i?void 0:i.x)||0)-d),m=(g-12)/r;let v=s[n.eventKey];if(h<f+p/2){const e=a.findIndex(e=>e.key===v.key),t=e<=0?0:e-1,n=a[t].key;v=s[n]}const A=v.key,b=v,y=v.key;let w=0,_=0;if(!l.has(A))for(let C=0;C<m;C+=1){if(!bt(v))break;v=v.parent,_+=1}const x=t.eventData,E=v.node;let S=!0;return yt(v)&&0===v.level&&h<f+p/2&&o({dragNode:x,dropNode:E,dropPosition:-1})&&v.key===n.eventKey?w=-1:(b.children||[]).length&&l.has(y)?o({dragNode:x,dropNode:E,dropPosition:0})?w=0:S=!1:0===_?m>-1.5?o({dragNode:x,dropNode:E,dropPosition:1})?w=1:S=!1:o({dragNode:x,dropNode:E,dropPosition:0})?w=0:o({dragNode:x,dropNode:E,dropPosition:1})?w=1:S=!1:o({dragNode:x,dropNode:E,dropPosition:1})?w=1:S=!1,{dropPosition:w,dropLevelOffset:_,dropTargetKey:v.key,dropTargetPos:v.pos,dragOverNodeKey:y,dropContainerKey:0===w?null:(null===(u=v.parent)||void 0===u?void 0:u.key)||null,dropAllowed:S}}function _t(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function xt(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==typeof e)return(0,We.$e)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function Et(e,t){const n=new Set;function r(e){if(n.has(e))return;const i=t[e];if(!i)return;n.add(e);const{parent:o,node:a}=i;a.disabled||o&&r(o.key)}return(e||[]).forEach(e=>{r(e)}),[...n]}function St(e,t){const n=new Set;return e.forEach(e=>{t.has(e)||n.add(e)}),n}function Ct(e){const{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!(!t&&!n)||!1===r}function Tt(e,t,n,r){const i=new Set(e),o=new Set;for(let s=0;s<=n;s+=1){const e=t.get(s)||new Set;e.forEach(e=>{const{key:t,node:n,children:o=[]}=e;i.has(t)&&!r(n)&&o.filter(e=>!r(e.node)).forEach(e=>{i.add(e.key)})})}const a=new Set;for(let s=n;s>=0;s-=1){const e=t.get(s)||new Set;e.forEach(e=>{const{parent:t,node:n}=e;if(r(n)||!e.parent||a.has(e.parent.key))return;if(r(e.parent.node))return void a.add(t.key);let s=!0,l=!1;(t.children||[]).filter(e=>!r(e.node)).forEach(e=>{let{key:t}=e;const n=i.has(t);s&&!n&&(s=!1),l||!n&&!o.has(t)||(l=!0)}),s&&i.add(t.key),l&&o.add(t.key),a.add(t.key)})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(St(o,i))}}function kt(e,t,n,r,i){const o=new Set(e);let a=new Set(t);for(let l=0;l<=r;l+=1){const e=n.get(l)||new Set;e.forEach(e=>{const{key:t,node:n,children:r=[]}=e;o.has(t)||a.has(t)||i(n)||r.filter(e=>!i(e.node)).forEach(e=>{o.delete(e.key)})})}a=new Set;const s=new Set;for(let l=r;l>=0;l-=1){const e=n.get(l)||new Set;e.forEach(e=>{const{parent:t,node:n}=e;if(i(n)||!e.parent||s.has(e.parent.key))return;if(i(e.parent.node))return void s.add(t.key);let r=!0,l=!1;(t.children||[]).filter(e=>!i(e.node)).forEach(e=>{let{key:t}=e;const n=o.has(t);r&&!n&&(r=!1),l||!n&&!a.has(t)||(l=!0)}),r||o.delete(t.key),l&&a.add(t.key),s.add(t.key)})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(St(a,o))}}function Ot(e,t,n,r,i,o){const a=[];let s;s=o||Ct;const l=new Set(e.filter(e=>{const t=!!n[e];return t||a.push(e),t}));let c;return(0,We.N4)(!a.length,`Tree missing follow keys: ${a.slice(0,100).map(e=>`'${e}'`).join(", ")}`),c=!0===t?Tt(l,i,r,s):kt(l,t.halfCheckedKeys,i,r,s),c}var Mt=n(55107),It=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Dt(e,t){return null!==e&&void 0!==e?e:t}function Nt(e){const{title:t,_title:n,key:r,children:i}=e||{},o=t||"title";return{title:o,_title:n||[o],key:r||"key",children:i||"children"}}function Rt(e){function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const n=(0,u.Gk)(e);return n.map(e=>{var n,i,o,a;if(!vt(e))return(0,We.$e)(!e,"Tree/TreeNode can only accept TreeNode as children."),null;const s=e.children||{},l=e.key,c={};for(const[t,r]of Object.entries(e.props))c[(0,qe.PT)(t)]=r;const{isLeaf:u,checkable:d,selectable:h,disabled:f,disableCheckbox:p}=c,g={isLeaf:u||""===u||void 0,checkable:d||""===d||void 0,selectable:h||""===h||void 0,disabled:f||""===f||void 0,disableCheckbox:p||""===p||void 0},m=(0,r.A)((0,r.A)({},c),g),{title:v=(null===(n=s.title)||void 0===n?void 0:n.call(s,m)),icon:A=(null===(i=s.icon)||void 0===i?void 0:i.call(s,m)),switcherIcon:b=(null===(o=s.switcherIcon)||void 0===o?void 0:o.call(s,m))}=c,y=It(c,["title","icon","switcherIcon"]),w=null===(a=s.default)||void 0===a?void 0:a.call(s),_=(0,r.A)((0,r.A)((0,r.A)({},y),{title:v,icon:A,switcherIcon:b,key:l,isLeaf:u}),g),x=t(w);return x.length&&(_.children=x),_})}return t(e)}function Lt(e,t,n){const{_title:i,key:o,children:a}=Nt(n),s=new Set(!0===t?[]:t),l=[];function c(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.map((u,d)=>{const h=mt(n?n.pos:"0",d),f=Dt(u[o],h);let p;for(let e=0;e<i.length;e+=1){const t=i[e];if(void 0!==u[t]){p=u[t];break}}const g=(0,r.A)((0,r.A)({},(0,Mt.A)(u,[...i,o,a])),{title:p,key:f,parent:n,pos:h,children:null,data:u,isStart:[...n?n.isStart:[],0===d],isEnd:[...n?n.isEnd:[],d===e.length-1]});return l.push(g),!0===t||s.has(f)?g.children=c(u[a]||[],g):g.children=[],g})}return c(e),l}function Bt(e,t,n){let r={};r="object"===typeof n?n:{externalGetKey:n},r=r||{};const{childrenPropName:i,externalGetKey:o,fieldNames:a}=r,{key:s,children:l}=Nt(a),c=i||l;let u;function d(n,r,i,o){const a=n?n[c]:e,s=n?mt(i.pos,r):"0",l=n?[...o,n]:[];if(n){const e=u(n,s),o={node:n,index:r,pos:s,key:e,parentPos:i.node?i.pos:null,level:i.level+1,nodes:l};t(o)}a&&a.forEach((e,t)=>{d(e,t,{node:n,pos:s,level:i?i.level+1:-1},l)})}o?"string"===typeof o?u=e=>e[o]:"function"===typeof o&&(u=e=>o(e)):u=(e,t)=>Dt(e[s],t),d(null)}function Pt(e){let{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:i,childrenPropName:o,fieldNames:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;const l=i||s,c={},u={};let d={posEntities:c,keyEntities:u};return t&&(d=t(d)||d),Bt(e,e=>{const{node:t,index:r,pos:i,key:o,parentPos:a,level:s,nodes:l}=e,h={node:t,nodes:l,index:r,key:o,pos:i,level:s},f=Dt(o,i);c[i]=h,u[f]=h,h.parent=c[a],h.parent&&(h.parent.children=h.parent.children||[],h.parent.children.push(h)),n&&n(h,d)},{externalGetKey:l,childrenPropName:o,fieldNames:a}),r&&r(d),d}function Ft(e,t){let{expandedKeysSet:n,selectedKeysSet:r,loadedKeysSet:i,loadingKeysSet:o,checkedKeysSet:a,halfCheckedKeysSet:s,dragOverNodeKey:l,dropPosition:c,keyEntities:u}=t;const d=u[e],h={eventKey:e,expanded:n.has(e),selected:r.has(e),loaded:i.has(e),loading:o.has(e),checked:a.has(e),halfChecked:s.has(e),pos:String(d?d.pos:""),parent:d.parent,dragOver:l===e&&0===c,dragOverGapTop:l===e&&-1===c,dragOverGapBottom:l===e&&1===c};return h}function $t(e){const{data:t,expanded:n,selected:i,checked:o,loaded:a,loading:s,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:h,active:f,eventKey:p}=e,g=(0,r.A)((0,r.A)({dataRef:t},t),{expanded:n,selected:i,checked:o,loaded:a,loading:s,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:h,active:f,eventKey:p,key:p});return"props"in g||Object.defineProperty(g,"props",{get(){return(0,We.$e)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),g}var jt=n(53523),Ht=n(62568),Ut=n(38926),Qt=n(12560),zt=n(97694);function Wt(e){const t=(0,d.KR)(0),n=(0,d.IJ)();return(0,o.nT)(()=>{const r=new Map;let i=0;const o=e.value||{};for(const e in o)if(Object.prototype.hasOwnProperty.call(o,e)){const t=o[e],{level:n}=t;let a=r.get(n);a||(a=new Set,r.set(n,a)),a.add(t),i=Math.max(i,n)}t.value=i,n.value=r}),{maxLevel:t,levelEntities:n}}const Gt={},Vt="SELECT_ALL",Kt="SELECT_INVERT",Yt="SELECT_NONE",qt=[];function Xt(e,t){let n=[];return(t||[]).forEach(t=>{n.push(t),t&&"object"===typeof t&&e in t&&(n=[...n,...Xt(e,t[e])])}),n}function Jt(e,t){const n=(0,o.EW)(()=>{const t=e.value||{},{checkStrictly:n=!0}=t;return(0,r.A)((0,r.A)({},t),{checkStrictly:n})}),[a,s]=(0,jt.A)(n.value.selectedRowKeys||n.value.defaultSelectedRowKeys||qt,{value:(0,o.EW)(()=>n.value.selectedRowKeys)}),l=(0,d.IJ)(new Map),c=e=>{if(n.value.preserveSelectedRowKeys){const n=new Map;e.forEach(e=>{let r=t.getRecordByKey(e);!r&&l.value.has(e)&&(r=l.value.get(e)),n.set(e,r)}),l.value=n}};(0,o.nT)(()=>{c(a.value)});const u=(0,o.EW)(()=>n.value.checkStrictly?null:Pt(t.data.value,{externalGetKey:t.getRowKey.value,childrenPropName:t.childrenColumnName.value}).keyEntities),h=(0,o.EW)(()=>Xt(t.childrenColumnName.value,t.pageData.value)),f=(0,o.EW)(()=>{const e=new Map,r=t.getRowKey.value,i=n.value.getCheckboxProps;return h.value.forEach((t,n)=>{const o=r(t,n),a=(i?i(t):null)||{};e.set(o,a)}),e}),{maxLevel:p,levelEntities:g}=Wt(u),m=e=>{var n;return!!(null===(n=f.value.get(t.getRowKey.value(e)))||void 0===n?void 0:n.disabled)},v=(0,o.EW)(()=>{if(n.value.checkStrictly)return[a.value||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=Ot(a.value,!0,u.value,p.value,g.value,m);return[e||[],t]}),A=(0,o.EW)(()=>v.value[0]),b=(0,o.EW)(()=>v.value[1]),y=(0,o.EW)(()=>{const e="radio"===n.value.type?A.value.slice(0,1):A.value;return new Set(e)}),w=(0,o.EW)(()=>"radio"===n.value.type?new Set:new Set(b.value)),[_,x]=(0,Ye.A)(null),S=e=>{let r,i;c(e);const{preserveSelectedRowKeys:o,onChange:a}=n.value,{getRecordByKey:u}=t;o?(r=e,i=e.map(e=>l.value.get(e))):(r=[],i=[],e.forEach(e=>{const t=u(e);void 0!==t&&(r.push(e),i.push(t))})),s(r),null===a||void 0===a||a(r,i)},C=(e,r,i,o)=>{const{onSelect:a}=n.value,{getRecordByKey:s}=t||{};if(a){const t=i.map(e=>s(e));a(s(e),r,t,o)}S(i)},T=(0,o.EW)(()=>{const{onSelectInvert:e,onSelectNone:r,selections:i,hideSelectAll:o}=n.value,{data:a,pageData:s,getRowKey:l,locale:c}=t;if(!i||o)return null;const u=!0===i?[Vt,Kt,Yt]:i;return u.map(t=>t===Vt?{key:"all",text:c.value.selectionAll,onSelect(){S(a.value.map((e,t)=>l.value(e,t)).filter(e=>{const t=f.value.get(e);return!(null===t||void 0===t?void 0:t.disabled)||y.value.has(e)}))}}:t===Kt?{key:"invert",text:c.value.selectInvert,onSelect(){const t=new Set(y.value);s.value.forEach((e,n)=>{const r=l.value(e,n),i=f.value.get(r);(null===i||void 0===i?void 0:i.disabled)||(t.has(r)?t.delete(r):t.add(r))});const n=Array.from(t);e&&((0,U.A)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),e(n)),S(n)}}:t===Yt?{key:"none",text:c.value.selectNone,onSelect(){null===r||void 0===r||r(),S(Array.from(y.value).filter(e=>{const t=f.value.get(e);return null===t||void 0===t?void 0:t.disabled}))}}:t)}),k=(0,o.EW)(()=>h.value.length),O=a=>{var s;const{onSelectAll:l,onSelectMultiple:c,columnWidth:d,type:v,fixed:b,renderCell:O,hideSelectAll:M,checkStrictly:I}=n.value,{prefixCls:D,getRecordByKey:N,getRowKey:R,expandType:L,getPopupContainer:B}=t;if(!e.value)return a.filter(e=>e!==Gt);let P=a.slice();const F=new Set(y.value),$=h.value.map(R.value).filter(e=>!f.value.get(e).disabled),j=$.every(e=>F.has(e)),H=$.some(e=>F.has(e)),Q=()=>{const e=[];j?$.forEach(t=>{F.delete(t),e.push(t)}):$.forEach(t=>{F.has(t)||(F.add(t),e.push(t))});const t=Array.from(F);null===l||void 0===l||l(!j,t.map(e=>N(e)),e.map(e=>N(e))),S(t)};let z,W;if("radio"!==v){let e;if(T.value){const t=(0,o.bF)(Qt.Ay,{getPopupContainer:B.value},{default:()=>[T.value.map((e,t)=>{const{key:n,text:r,onSelect:i}=e;return(0,o.bF)(Qt.Ay.Item,{key:n||t,onClick:()=>{null===i||void 0===i||i($)}},{default:()=>[r]})})]});e=(0,o.bF)("div",{class:`${D.value}-selection-extra`},[(0,o.bF)(Ut.Ay,{overlay:t,getPopupContainer:B.value},{default:()=>[(0,o.bF)("span",null,[(0,o.bF)(ht.A,null,null)])]})])}const t=h.value.map((e,t)=>{const n=R.value(e,t),i=f.value.get(n)||{};return(0,r.A)({checked:F.has(n)},i)}).filter(e=>{let{disabled:t}=e;return t}),n=!!t.length&&t.length===k.value,i=n&&t.every(e=>{let{checked:t}=e;return t}),a=n&&t.some(e=>{let{checked:t}=e;return t});z=!M&&(0,o.bF)("div",{class:`${D.value}-selection`},[(0,o.bF)(Ht.Ay,{checked:n?i:!!k.value&&j,indeterminate:n?!i&&a:!j&&H,onChange:Q,disabled:0===k.value||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0},null),e])}W="radio"===v?e=>{let{record:t,index:n}=e;const r=R.value(t,n),a=F.has(r);return{node:(0,o.bF)(zt.Ay,(0,i.A)((0,i.A)({},f.value.get(r)),{},{checked:a,onClick:e=>e.stopPropagation(),onChange:e=>{F.has(r)||C(r,!0,[r],e.nativeEvent)}}),null),checked:a}}:e=>{let{record:t,index:n}=e;var r;const a=R.value(t,n),s=F.has(a),l=w.value.has(a),d=f.value.get(a);let h;return"nest"===L.value?(h=l,(0,U.A)("boolean"!==typeof(null===d||void 0===d?void 0:d.indeterminate),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):h=null!==(r=null===d||void 0===d?void 0:d.indeterminate)&&void 0!==r?r:l,{node:(0,o.bF)(Ht.Ay,(0,i.A)((0,i.A)({},d),{},{indeterminate:h,checked:s,skipGroup:!0,onClick:e=>e.stopPropagation(),onChange:e=>{let{nativeEvent:t}=e;const{shiftKey:n}=t;let r=-1,i=-1;if(n&&I){const e=new Set([_.value,a]);$.some((t,n)=>{if(e.has(t)){if(-1!==r)return i=n,!0;r=n}return!1})}if(-1!==i&&r!==i&&I){const e=$.slice(r,i+1),t=[];s?e.forEach(e=>{F.has(e)&&(t.push(e),F.delete(e))}):e.forEach(e=>{F.has(e)||(t.push(e),F.add(e))});const n=Array.from(F);null===c||void 0===c||c(!s,n.map(e=>N(e)),t.map(e=>N(e))),S(n)}else{const e=A.value;if(I){const n=s?ft(e,a):pt(e,a);C(a,!s,n,t)}else{const n=Ot([...e,a],!0,u.value,p.value,g.value,m),{checkedKeys:r,halfCheckedKeys:i}=n;let o=r;if(s){const e=new Set(r);e.delete(a),o=Ot(Array.from(e),{checked:!1,halfCheckedKeys:i},u.value,p.value,g.value,m).checkedKeys}C(a,!s,o,t)}}x(a)}}),null),checked:s}};const G=e=>{let{record:t,index:n}=e;const{node:r,checked:i}=W({record:t,index:n});return O?O(i,t,n,r):r};if(!P.includes(Gt))if(0===P.findIndex(e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[E])||void 0===t?void 0:t.columnType)})){const[e,...t]=P;P=[e,Gt,...t]}else P=[Gt,...P];const V=P.indexOf(Gt);P=P.filter((e,t)=>e!==Gt||t===V);const K=P[V-1],Y=P[V+1];let q=b;void 0===q&&(void 0!==(null===Y||void 0===Y?void 0:Y.fixed)?q=Y.fixed:void 0!==(null===K||void 0===K?void 0:K.fixed)&&(q=K.fixed)),q&&K&&"EXPAND_COLUMN"===(null===(s=K[E])||void 0===s?void 0:s.columnType)&&void 0===K.fixed&&(K.fixed=q);const X={fixed:q,width:d,className:`${D.value}-selection-column`,title:n.value.columnTitle||z,customRender:G,[E]:{class:`${D.value}-selection-col`}};return P.map(e=>e===Gt?X:e)};return[O,y]}var Zt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},en=Zt,tn=n(4827);function nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){rn(e,t,n[t])})}return e}function rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var on=function(e,t){var n=nn({},e,t.attrs);return(0,o.bF)(tn.A,nn({},n,{icon:en}),null)};on.displayName="CaretDownOutlined",on.inheritAttrs=!1;var an=on,sn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},ln=sn;function cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){un(e,t,n[t])})}return e}function un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dn=function(e,t){var n=cn({},e,t.attrs);return(0,o.bF)(tn.A,cn({},n,{icon:ln}),null)};dn.displayName="CaretUpOutlined",dn.inheritAttrs=!1;var hn=dn,fn=n(35678),pn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function gn(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function mn(e,t){return t?`${t}-${e}`:`${e}`}function vn(e,t){return"function"===typeof e?e(t):e}function An(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=(0,u.MI)(e),n=[];return t.forEach(e=>{var t,i,o,a;if(!e)return;const s=e.key,l=(null===(t=e.props)||void 0===t?void 0:t.style)||{},c=(null===(i=e.props)||void 0===i?void 0:i.class)||"",u=e.props||{};for(const[n,r]of Object.entries(u))u[(0,qe.PT)(n)]=r;const d=e.children||{},{default:h}=d,f=pn(d,["default"]),p=(0,r.A)((0,r.A)((0,r.A)({},f),u),{style:l,class:c});if(s&&(p.key=s),null===(o=e.type)||void 0===o?void 0:o.__ANT_TABLE_COLUMN_GROUP)p.children=An("function"===typeof h?h():h);else{const t=null===(a=e.children)||void 0===a?void 0:a.default;p.customRender=p.customRender||t}n.push(p)}),n}var bn=n(81186);const yn="ascend",wn="descend";function _n(e){return"object"===typeof e.sorter&&"number"===typeof e.sorter.multiple&&e.sorter.multiple}function xn(e){return"function"===typeof e?e:!(!e||"object"!==typeof e||!e.compare)&&e.compare}function En(e,t){return t?e[e.indexOf(t)+1]:e[0]}function Sn(e,t,n){let r=[];function i(e,t){r.push({column:e,key:gn(e,t),multiplePriority:_n(e),sortOrder:e.sortOrder})}return(e||[]).forEach((e,o)=>{const a=mn(o,n);e.children?("sortOrder"in e&&i(e,a),r=[...r,...Sn(e.children,t,a)]):e.sorter&&("sortOrder"in e?i(e,a):t&&e.defaultSortOrder&&r.push({column:e,key:gn(e,a),multiplePriority:_n(e),sortOrder:e.defaultSortOrder}))}),r}function Cn(e,t,n,i,s,l,c,u){return(t||[]).map((t,d)=>{const h=mn(d,u);let f=t;if(f.sorter){const u=f.sortDirections||s,d=void 0===f.showSorterTooltip?c:f.showSorterTooltip,p=gn(f,h),g=n.find(e=>{let{key:t}=e;return t===p}),m=g?g.sortOrder:null,v=En(u,m),A=u.includes(yn)&&(0,o.bF)(hn,{class:(0,a.A)(`${e}-column-sorter-up`,{active:m===yn}),role:"presentation"},null),b=u.includes(wn)&&(0,o.bF)(an,{role:"presentation",class:(0,a.A)(`${e}-column-sorter-down`,{active:m===wn})},null),{cancelSort:y,triggerAsc:w,triggerDesc:_}=l||{};let x=y;v===wn?x=_:v===yn&&(x=w);const E="object"===typeof d?d:{title:x};f=(0,r.A)((0,r.A)({},f),{className:(0,a.A)(f.className,{[`${e}-column-sort`]:m}),title:n=>{const r=(0,o.bF)("div",{class:`${e}-column-sorters`},[(0,o.bF)("span",{class:`${e}-column-title`},[vn(t.title,n)]),(0,o.bF)("span",{class:(0,a.A)(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!A||!b)})},[(0,o.bF)("span",{class:`${e}-column-sorter-inner`},[A,b])])]);return d?(0,o.bF)(fn.A,E,{default:()=>[r]}):r},customHeaderCell:n=>{const r=t.customHeaderCell&&t.customHeaderCell(n)||{},o=r.onClick,s=r.onKeydown;return r.onClick=e=>{i({column:t,key:p,sortOrder:v,multiplePriority:_n(t)}),o&&o(e)},r.onKeydown=e=>{e.keyCode===bn.A.ENTER&&(i({column:t,key:p,sortOrder:v,multiplePriority:_n(t)}),null===s||void 0===s||s(e))},m&&(r["aria-sort"]="ascend"===m?"ascending":"descending"),r.class=(0,a.A)(r.class,`${e}-column-has-sorters`),r.tabindex=0,r}})}return"children"in f&&(f=(0,r.A)((0,r.A)({},f),{children:Cn(e,f.children,n,i,s,l,c,h)})),f})}function Tn(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function kn(e){const t=e.filter(e=>{let{sortOrder:t}=e;return t}).map(Tn);return 0===t.length&&e.length?(0,r.A)((0,r.A)({},Tn(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function On(e,t,n){const i=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),o=e.slice(),a=i.filter(e=>{let{column:{sorter:t},sortOrder:n}=e;return xn(t)&&n});return a.length?o.sort((e,t)=>{for(let n=0;n<a.length;n+=1){const r=a[n],{column:{sorter:i},sortOrder:o}=r,s=xn(i);if(s&&o){const n=s(e,t,o);if(0!==n)return o===yn?n:-n}}return 0}).map(e=>{const i=e[n];return i?(0,r.A)((0,r.A)({},e),{[n]:On(i,t,n)}):e}):o}function Mn(e){let{prefixCls:t,mergedColumns:n,onSorterChange:i,sortDirections:a,tableLocale:s,showSorterTooltip:l}=e;const[c,u]=(0,Ye.A)(Sn(n.value,!0)),d=(0,o.EW)(()=>{let e=!0;const t=Sn(n.value,!1);if(!t.length)return c.value;const i=[];function o(t){e?i.push(t):i.push((0,r.A)((0,r.A)({},t),{sortOrder:null}))}let a=null;return t.forEach(t=>{null===a?(o(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:a=!0)):(a&&!1!==t.multiplePriority||(e=!1),o(t))}),i}),h=(0,o.EW)(()=>{const e=d.value.map(e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}});return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}});function f(e){let t;t=!1!==e.multiplePriority&&d.value.length&&!1!==d.value[0].multiplePriority?[...d.value.filter(t=>{let{key:n}=t;return n!==e.key}),e]:[e],u(t),i(kn(t),t)}const p=e=>Cn(t.value,e,d.value,f,a.value,s.value,l.value),g=(0,o.EW)(()=>kn(d.value));return[p,d,h,g]}n(30531);var In={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Dn=In;function Nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Rn(e,t,n[t])})}return e}function Rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ln=function(e,t){var n=Nn({},e,t.attrs);return(0,o.bF)(tn.A,Nn({},n,{icon:Dn}),null)};Ln.displayName="FilterFilled",Ln.inheritAttrs=!1;var Bn=Ln,Pn=n(80816),Fn=n(31288);const $n=e=>{const{keyCode:t}=e;t===bn.A.ENTER&&e.stopPropagation()},jn=(e,t)=>{let{slots:n}=t;var r;return(0,o.bF)("div",{onClick:e=>e.stopPropagation(),onKeydown:$n},[null===(r=n.default)||void 0===r?void 0:r.call(n)])};var Hn=jn,Un=n(60674),Qn=n(57520),zn=n(75806),Wn=n(44678),Gn=(0,o.pM)({compatConfig:{MODE:3},name:"FilterSearch",inheritAttrs:!1,props:{value:(0,Wn.WO)(),onChange:(0,Wn.Fg)(),filterSearch:(0,Wn.tK)([Boolean,Function]),tablePrefixCls:(0,Wn.WO)(),locale:(0,Wn.ge)()},setup(e){return()=>{const{value:t,onChange:n,filterSearch:r,tablePrefixCls:i,locale:a}=e;return r?(0,o.bF)("div",{class:`${i}-filter-dropdown-search`},[(0,o.bF)(zn.Ay,{placeholder:a.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,class:`${i}-filter-dropdown-search-input`},{prefix:()=>(0,o.bF)(Qn.A,null,null)})]):null}}});const Vn=Symbol("TreeContextKey"),Kn=(0,o.pM)({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return(0,o.Gt)(Vn,(0,o.EW)(()=>e.value)),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),Yn=()=>(0,o.WQ)(Vn,(0,o.EW)(()=>({}))),qn=Symbol("KeysStateKey"),Xn=e=>{(0,o.Gt)(qn,e)},Jn=()=>(0,o.WQ)(qn,{expandedKeys:(0,d.IJ)([]),selectedKeys:(0,d.IJ)([]),loadedKeys:(0,d.IJ)([]),loadingKeys:(0,d.IJ)([]),checkedKeys:(0,d.IJ)([]),halfCheckedKeys:(0,d.IJ)([]),expandedKeysSet:(0,o.EW)(()=>new Set),selectedKeysSet:(0,o.EW)(()=>new Set),loadedKeysSet:(0,o.EW)(()=>new Set),loadingKeysSet:(0,o.EW)(()=>new Set),checkedKeysSet:(0,o.EW)(()=>new Set),halfCheckedKeysSet:(0,o.EW)(()=>new Set),flattenNodes:(0,d.IJ)([])});var Zn=n(44733),er=n(45130);const tr=e=>{let{prefixCls:t,level:n,isStart:r,isEnd:i}=e;const a=`${t}-indent-unit`,s=[];for(let l=0;l<n;l+=1)s.push((0,o.bF)("span",{key:l,class:{[a]:!0,[`${a}-start`]:r[l],[`${a}-end`]:i[l]}},null));return(0,o.bF)("span",{"aria-hidden":"true",class:`${t}-indent`},[s])};var nr=tr,rr=n(81425);const ir={eventKey:[String,Number],prefixCls:String,title:rr.A.any,data:{type:Object,default:void 0},parent:{type:Object,default:void 0},isStart:{type:Array},isEnd:{type:Array},active:{type:Boolean,default:void 0},onMousemove:{type:Function},isLeaf:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},selectable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},disableCheckbox:{type:Boolean,default:void 0},icon:rr.A.any,switcherIcon:rr.A.any,domRef:{type:Function}},or={prefixCls:{type:String},motion:{type:Object},focusable:{type:Boolean},activeItem:{type:Object},focused:{type:Boolean},tabindex:{type:Number},checkable:{type:Boolean},selectable:{type:Boolean},disabled:{type:Boolean},height:{type:Number},itemHeight:{type:Number},virtual:{type:Boolean},onScroll:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onActiveChange:{type:Function},onContextmenu:{type:Function},onListChangeStart:{type:Function},onListChangeEnd:{type:Function}},ar=()=>({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:rr.A.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:rr.A.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:rr.A.any,switcherIcon:rr.A.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object});var sr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const lr="open",cr="close",ur="---";var dr=(0,o.pM)({compatConfig:{MODE:3},name:"ATreeNode",inheritAttrs:!1,props:ir,isTreeNode:1,setup(e,t){let{attrs:n,slots:s,expose:l}=t;(0,We.$e)(!("slots"in e.data),`treeData slots is deprecated, please use ${Object.keys(e.data.slots||{}).map(e=>"`v-slot:"+e+"` ")}instead`);const c=(0,d.IJ)(!1),u=Yn(),{expandedKeysSet:h,selectedKeysSet:f,loadedKeysSet:p,loadingKeysSet:g,checkedKeysSet:m,halfCheckedKeysSet:v}=Jn(),{dragOverNodeKey:A,dropPosition:b,keyEntities:y}=u.value,w=(0,o.EW)(()=>Ft(e.eventKey,{expandedKeysSet:h.value,selectedKeysSet:f.value,loadedKeysSet:p.value,loadingKeysSet:g.value,checkedKeysSet:m.value,halfCheckedKeysSet:v.value,dragOverNodeKey:A,dropPosition:b,keyEntities:y})),_=(0,D.A)(()=>w.value.expanded),x=(0,D.A)(()=>w.value.selected),E=(0,D.A)(()=>w.value.checked),S=(0,D.A)(()=>w.value.loaded),C=(0,D.A)(()=>w.value.loading),T=(0,D.A)(()=>w.value.halfChecked),k=(0,D.A)(()=>w.value.dragOver),O=(0,D.A)(()=>w.value.dragOverGapTop),M=(0,D.A)(()=>w.value.dragOverGapBottom),I=(0,D.A)(()=>w.value.pos),N=(0,d.IJ)(),R=(0,o.EW)(()=>{const{eventKey:t}=e,{keyEntities:n}=u.value,{children:r}=n[t]||{};return!!(r||[]).length}),L=(0,o.EW)(()=>{const{isLeaf:t}=e,{loadData:n}=u.value,r=R.value;return!1!==t&&(t||!n&&!r||n&&S.value&&!r)}),B=(0,o.EW)(()=>L.value?null:_.value?lr:cr),P=(0,o.EW)(()=>{const{disabled:t}=e,{disabled:n}=u.value;return!(!n&&!t)}),F=(0,o.EW)(()=>{const{checkable:t}=e,{checkable:n}=u.value;return!(!n||!1===t)&&n}),$=(0,o.EW)(()=>{const{selectable:t}=e,{selectable:n}=u.value;return"boolean"===typeof t?t:n}),j=(0,o.EW)(()=>{const{data:t,active:n,checkable:i,disableCheckbox:o,disabled:a,selectable:s}=e;return(0,r.A)((0,r.A)({active:n,checkable:i,disableCheckbox:o,disabled:a,selectable:s},t),{dataRef:t,data:t,isLeaf:L.value,checked:E.value,expanded:_.value,loading:C.value,selected:x.value,halfChecked:T.value})}),H=(0,o.nI)(),U=(0,o.EW)(()=>{const{eventKey:t}=e,{keyEntities:n}=u.value,{parent:i}=n[t]||{};return(0,r.A)((0,r.A)({},$t((0,r.A)({},e,w.value))),{parent:i})}),Q=(0,d.Kh)({eventData:U,eventKey:(0,o.EW)(()=>e.eventKey),selectHandle:N,pos:I,key:H.vnode.key});l(Q);const z=e=>{const{onNodeDoubleClick:t}=u.value;t(e,U.value)},W=e=>{if(P.value)return;const{onNodeSelect:t}=u.value;e.preventDefault(),t(e,U.value)},G=t=>{if(P.value)return;const{disableCheckbox:n}=e,{onNodeCheck:r}=u.value;if(!F.value||n)return;t.preventDefault();const i=!E.value;r(t,U.value,i)},V=e=>{const{onNodeClick:t}=u.value;t(e,U.value),$.value?W(e):G(e)},K=e=>{const{onNodeMouseEnter:t}=u.value;t(e,U.value)},Y=e=>{const{onNodeMouseLeave:t}=u.value;t(e,U.value)},q=e=>{const{onNodeContextMenu:t}=u.value;t(e,U.value)},X=e=>{const{onNodeDragStart:t}=u.value;e.stopPropagation(),c.value=!0,t(e,Q);try{e.dataTransfer.setData("text/plain","")}catch(n){}},J=e=>{const{onNodeDragEnter:t}=u.value;e.preventDefault(),e.stopPropagation(),t(e,Q)},Z=e=>{const{onNodeDragOver:t}=u.value;e.preventDefault(),e.stopPropagation(),t(e,Q)},ee=e=>{const{onNodeDragLeave:t}=u.value;e.stopPropagation(),t(e,Q)},te=e=>{const{onNodeDragEnd:t}=u.value;e.stopPropagation(),c.value=!1,t(e,Q)},ne=e=>{const{onNodeDrop:t}=u.value;e.preventDefault(),e.stopPropagation(),c.value=!1,t(e,Q)},re=e=>{const{onNodeExpand:t}=u.value;C.value||t(e,U.value)},ie=()=>{const{data:t}=e,{draggable:n}=u.value;return!(!n||n.nodeDraggable&&!n.nodeDraggable(t))},oe=()=>{const{draggable:e,prefixCls:t}=u.value;return e&&(null===e||void 0===e?void 0:e.icon)?(0,o.bF)("span",{class:`${t}-draggable-icon`},[e.icon]):null},ae=()=>{var t,n,r;const{switcherIcon:i=s.switcherIcon||(null===(t=u.value.slots)||void 0===t?void 0:t[null===(r=null===(n=e.data)||void 0===n?void 0:n.slots)||void 0===r?void 0:r.switcherIcon])}=e,{switcherIcon:o}=u.value,a=i||o;return"function"===typeof a?a(j.value):a},se=()=>{const{loadData:e,onNodeLoad:t}=u.value;C.value||e&&_.value&&!L.value&&(R.value||S.value||t(U.value))};(0,o.sV)(()=>{se()}),(0,o.$u)(()=>{se()});const le=()=>{const{prefixCls:e}=u.value,t=ae();if(L.value)return!1!==t?(0,o.bF)("span",{class:(0,a.A)(`${e}-switcher`,`${e}-switcher-noop`)},[t]):null;const n=(0,a.A)(`${e}-switcher`,`${e}-switcher_${_.value?lr:cr}`);return!1!==t?(0,o.bF)("span",{onClick:re,class:n},[t]):null},ce=()=>{var t,n;const{disableCheckbox:r}=e,{prefixCls:i}=u.value,s=P.value,l=F.value;return l?(0,o.bF)("span",{class:(0,a.A)(`${i}-checkbox`,E.value&&`${i}-checkbox-checked`,!E.value&&T.value&&`${i}-checkbox-indeterminate`,(s||r)&&`${i}-checkbox-disabled`),onClick:G},[null===(n=(t=u.value).customCheckable)||void 0===n?void 0:n.call(t)]):null},ue=()=>{const{prefixCls:e}=u.value;return(0,o.bF)("span",{class:(0,a.A)(`${e}-iconEle`,`${e}-icon__${B.value||"docu"}`,C.value&&`${e}-icon_loading`)},null)},de=()=>{const{disabled:t,eventKey:n}=e,{draggable:r,dropLevelOffset:i,dropPosition:o,prefixCls:a,indent:s,dropIndicatorRender:l,dragOverNodeKey:c,direction:d}=u.value,h=!1!==r,f=!t&&h&&c===n;return f?l({dropPosition:o,dropLevelOffset:i,indent:s,prefixCls:a,direction:d}):null},he=()=>{var t,n,r,i,l,d;const{icon:h=s.icon,data:f}=e,p=s.title||(null===(t=u.value.slots)||void 0===t?void 0:t[null===(r=null===(n=e.data)||void 0===n?void 0:n.slots)||void 0===r?void 0:r.title])||(null===(i=u.value.slots)||void 0===i?void 0:i.title)||e.title,{prefixCls:g,showIcon:m,icon:v,loadData:A}=u.value,b=P.value,y=`${g}-node-content-wrapper`;let w,_;if(m){const e=h||(null===(l=u.value.slots)||void 0===l?void 0:l[null===(d=null===f||void 0===f?void 0:f.slots)||void 0===d?void 0:d.icon])||v;w=e?(0,o.bF)("span",{class:(0,a.A)(`${g}-iconEle`,`${g}-icon__customize`)},["function"===typeof e?e(j.value):e]):ue()}else A&&C.value&&(w=ue());_="function"===typeof p?p(j.value):p,_=void 0===_?ur:_;const E=(0,o.bF)("span",{class:`${g}-title`},[_]);return(0,o.bF)("span",{ref:N,title:"string"===typeof p?p:"",class:(0,a.A)(`${y}`,`${y}-${B.value||"normal"}`,!b&&(x.value||c.value)&&`${g}-node-selected`),onMouseenter:K,onMouseleave:Y,onContextmenu:q,onClick:V,onDblclick:z},[w,E,de()])};return()=>{const t=(0,r.A)((0,r.A)({},e),n),{eventKey:s,isLeaf:l,isStart:c,isEnd:d,domRef:h,active:f,data:p,onMousemove:g,selectable:m}=t,v=sr(t,["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"]),{prefixCls:A,filterTreeNode:b,keyEntities:y,dropContainerKey:w,dropTargetKey:S,draggingNodeKey:I}=u.value,D=P.value,N=(0,Je.A)(v,{aria:!0,data:!0}),{level:R}=y[s]||{},L=d[d.length-1],B=ie(),F=!D&&B,$=I===s,j=void 0!==m?{"aria-selected":!!m}:void 0;return(0,o.bF)("div",(0,i.A)((0,i.A)({ref:h,class:(0,a.A)(n.class,`${A}-treenode`,{[`${A}-treenode-disabled`]:D,[`${A}-treenode-switcher-${_.value?"open":"close"}`]:!l,[`${A}-treenode-checkbox-checked`]:E.value,[`${A}-treenode-checkbox-indeterminate`]:T.value,[`${A}-treenode-selected`]:x.value,[`${A}-treenode-loading`]:C.value,[`${A}-treenode-active`]:f,[`${A}-treenode-leaf-last`]:L,[`${A}-treenode-draggable`]:F,dragging:$,"drop-target":S===s,"drop-container":w===s,"drag-over":!D&&k.value,"drag-over-gap-top":!D&&O.value,"drag-over-gap-bottom":!D&&M.value,"filter-node":b&&b(U.value)}),style:n.style,draggable:F,"aria-grabbed":$,onDragstart:F?X:void 0,onDragenter:B?J:void 0,onDragover:B?Z:void 0,onDragleave:B?ee:void 0,onDrop:B?ne:void 0,onDragend:B?te:void 0,onMousemove:g},j),N),[(0,o.bF)(nr,{prefixCls:A,level:R,isStart:c,isEnd:d},null),oe(),le(),ce(),he()])}}}),hr=n(99603),fr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},pr=(0,o.pM)({compatConfig:{MODE:3},name:"MotionTreeNode",inheritAttrs:!1,props:(0,r.A)((0,r.A)({},ir),{active:Boolean,motion:Object,motionNodes:{type:Array},onMotionStart:Function,onMotionEnd:Function,motionType:String}),setup(e,t){let{attrs:n,slots:r}=t;const a=(0,d.IJ)(!0),s=Yn(),l=(0,d.IJ)(!1),c=(0,o.EW)(()=>e.motion?e.motion:(0,hr.A)()),u=(t,n)=>{var r,i,o,a;"appear"===n?null===(i=null===(r=c.value)||void 0===r?void 0:r.onAfterEnter)||void 0===i||i.call(r,t):"leave"===n&&(null===(a=null===(o=c.value)||void 0===o?void 0:o.onAfterLeave)||void 0===a||a.call(o,t)),l.value||e.onMotionEnd(),l.value=!0};return(0,o.wB)(()=>e.motionNodes,()=>{e.motionNodes&&"hide"===e.motionType&&a.value&&(0,o.dY)(()=>{a.value=!1})},{immediate:!0,flush:"post"}),(0,o.sV)(()=>{e.motionNodes&&e.onMotionStart()}),(0,o.xo)(()=>{e.motionNodes&&u()}),()=>{const{motion:t,motionNodes:l,motionType:d,active:h,eventKey:f}=e,p=fr(e,["motion","motionNodes","motionType","active","eventKey"]);return l?(0,o.bF)(er.eB,(0,i.A)((0,i.A)({},c.value),{},{appear:"show"===d,onAfterAppear:e=>u(e,"appear"),onAfterLeave:e=>u(e,"leave")}),{default:()=>[(0,o.bo)((0,o.bF)("div",{class:`${s.value.prefixCls}-treenode-motion`},[l.map(e=>{const t=fr(e.data,[]),{title:n,key:a,isStart:s,isEnd:l}=e;return delete t.children,(0,o.bF)(dr,(0,i.A)((0,i.A)({},t),{},{title:n,active:h,data:e.data,key:a,eventKey:a,isStart:s,isEnd:l}),r)})]),[[er.aG,a.value]])]}):(0,o.bF)(dr,(0,i.A)((0,i.A)({class:n.class,style:n.style},p),{},{active:h,eventKey:f}),r)}}});function gr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function i(e,t){const n=new Map;e.forEach(e=>{n.set(e,!0)});const r=t.filter(e=>!n.has(e));return 1===r.length?r[0]:null}return n<r?{add:!0,key:i(e,t)}:{add:!1,key:i(t,e)}}function mr(e,t,n){const r=e.findIndex(e=>e.key===n),i=e[r+1],o=t.findIndex(e=>e.key===n);if(i){const e=t.findIndex(e=>e.key===i.key);return t.slice(o+1,e)}return t.slice(o+1)}var vr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const Ar={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},br=()=>{},yr=`RC_TREE_MOTION_${Math.random()}`,wr={key:yr},_r={key:yr,level:0,index:0,pos:"0",node:wr,nodes:[wr]},xr={parent:null,children:[],pos:_r.pos,data:wr,title:null,key:yr,isStart:[],isEnd:[]};function Er(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function Sr(e){const{key:t,pos:n}=e;return Dt(t,n)}function Cr(e){let t=String(e.key),n=e;while(n.parent)n=n.parent,t=`${n.key} > ${t}`;return t}var Tr=(0,o.pM)({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:or,setup(e,t){let{expose:n,attrs:a}=t;const s=(0,d.KR)(),l=(0,d.KR)(),{expandedKeys:c,flattenNodes:u}=Jn();n({scrollTo:e=>{s.value.scrollTo(e)},getIndentWidth:()=>l.value.offsetWidth});const h=(0,d.IJ)(u.value),f=(0,d.IJ)([]),p=(0,d.KR)(null);function g(){h.value=u.value,f.value=[],p.value=null,e.onListChangeEnd()}const m=Yn();(0,o.wB)([()=>c.value.slice(),u],(t,n)=>{let[r,i]=t,[o,a]=n;const s=gr(o,r);if(null!==s.key){const{virtual:t,height:n,itemHeight:r}=e;if(s.add){const e=a.findIndex(e=>{let{key:t}=e;return t===s.key}),o=Er(mr(a,i,s.key),t,n,r),l=a.slice();l.splice(e+1,0,xr),h.value=l,f.value=o,p.value="show"}else{const e=i.findIndex(e=>{let{key:t}=e;return t===s.key}),o=Er(mr(i,a,s.key),t,n,r),l=i.slice();l.splice(e+1,0,xr),h.value=l,f.value=o,p.value="hide"}}else a!==i&&(h.value=i)}),(0,o.wB)(()=>m.value.dragging,e=>{e||g()});const v=(0,o.EW)(()=>void 0===e.motion?h.value:u.value),A=()=>{e.onActiveChange(null)};return()=>{const t=(0,r.A)((0,r.A)({},e),a),{prefixCls:n,selectable:c,checkable:u,disabled:d,motion:h,height:m,itemHeight:b,virtual:y,focusable:w,activeItem:_,focused:x,tabindex:E,onKeydown:S,onFocus:C,onBlur:T,onListChangeStart:k,onListChangeEnd:O}=t,M=vr(t,["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"]);return(0,o.bF)(o.FK,null,[x&&_&&(0,o.bF)("span",{style:Ar,"aria-live":"assertive"},[Cr(_)]),(0,o.bF)("div",null,[(0,o.bF)("input",{style:Ar,disabled:!1===w||d,tabindex:!1!==w?E:null,onKeydown:S,onFocus:C,onBlur:T,value:"",onChange:br,"aria-label":"for screen reader"},null)]),(0,o.bF)("div",{class:`${n}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[(0,o.bF)("div",{class:`${n}-indent`},[(0,o.bF)("div",{ref:l,class:`${n}-indent-unit`},null)])]),(0,o.bF)(Zn.A,(0,i.A)((0,i.A)({},(0,Mt.A)(M,["onActiveChange"])),{},{data:v.value,itemKey:Sr,height:m,fullHeight:!1,virtual:y,itemHeight:b,prefixCls:`${n}-list`,ref:s,onVisibleChange:(e,t)=>{const n=new Set(e),r=t.filter(e=>!n.has(e));r.some(e=>Sr(e)===yr)&&g()}}),{default:e=>{const{pos:t}=e,n=vr(e.data,[]),{title:r,key:a,isStart:s,isEnd:l}=e,c=Dt(a,t);return delete n.key,delete n.children,(0,o.bF)(pr,(0,i.A)((0,i.A)({},n),{},{eventKey:c,title:r,active:!!_&&a===_.key,data:e.data,isStart:s,isEnd:l,motion:h,motionNodes:a===yr?f.value:null,motionType:p.value,onMotionStart:k,onMotionEnd:g,onMousemove:A}),null)}})])}}});function kr(e){let{dropPosition:t,dropLevelOffset:n,indent:r}=e;const i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"2px"};switch(t){case-1:i.top=0,i.left=-n*r+"px";break;case 1:i.bottom=0,i.left=-n*r+"px";break;case 0:i.bottom=0,i.left=`${r}`;break}return(0,o.bF)("div",{style:i},null)}var Or=n(73429);const Mr=10;var Ir=(0,o.pM)({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,props:(0,Or.A)(ar(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,expandAction:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:kr,allowDrop:()=>!0}),setup(e,t){let{attrs:n,slots:s,expose:l}=t;const c=(0,d.IJ)(!1);let u={};const h=(0,d.IJ)(),f=(0,d.IJ)([]),p=(0,d.IJ)([]),g=(0,d.IJ)([]),m=(0,d.IJ)([]),v=(0,d.IJ)([]),A=(0,d.IJ)([]),b={},y=(0,d.Kh)({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),w=(0,d.IJ)([]);(0,o.wB)([()=>e.treeData,()=>e.children],()=>{w.value=void 0!==e.treeData?e.treeData.slice():Rt((0,d.ux)(e.children))},{immediate:!0,deep:!0});const _=(0,d.IJ)({}),x=(0,d.IJ)(!1),E=(0,d.IJ)(null),S=(0,d.IJ)(!1),C=(0,o.EW)(()=>Nt(e.fieldNames)),T=(0,d.IJ)();let k=null,O=null,M=null;const I=(0,o.EW)(()=>({expandedKeysSet:D.value,selectedKeysSet:N.value,loadedKeysSet:R.value,loadingKeysSet:L.value,checkedKeysSet:B.value,halfCheckedKeysSet:P.value,dragOverNodeKey:y.dragOverNodeKey,dropPosition:y.dropPosition,keyEntities:_.value})),D=(0,o.EW)(()=>new Set(A.value)),N=(0,o.EW)(()=>new Set(f.value)),R=(0,o.EW)(()=>new Set(m.value)),L=(0,o.EW)(()=>new Set(v.value)),B=(0,o.EW)(()=>new Set(p.value)),P=(0,o.EW)(()=>new Set(g.value));(0,o.nT)(()=>{if(w.value){const e=Pt(w.value,{fieldNames:C.value});_.value=(0,r.A)({[yr]:_r},e.keyEntities)}});let F=!1;(0,o.wB)([()=>e.expandedKeys,()=>e.autoExpandParent,_],(t,n)=>{let[i,o]=t,[a,s]=n,l=A.value;if(void 0!==e.expandedKeys||F&&o!==s)l=e.autoExpandParent||!F&&e.defaultExpandParent?Et(e.expandedKeys,_.value):e.expandedKeys;else if(!F&&e.defaultExpandAll){const e=(0,r.A)({},_.value);delete e[yr],l=Object.keys(e).map(t=>e[t].key)}else!F&&e.defaultExpandedKeys&&(l=e.autoExpandParent||e.defaultExpandParent?Et(e.defaultExpandedKeys,_.value):e.defaultExpandedKeys);l&&(A.value=l),F=!0},{immediate:!0});const $=(0,d.IJ)([]);(0,o.nT)(()=>{$.value=Lt(w.value,A.value,C.value)}),(0,o.nT)(()=>{e.selectable&&(void 0!==e.selectedKeys?f.value=_t(e.selectedKeys,e):!F&&e.defaultSelectedKeys&&(f.value=_t(e.defaultSelectedKeys,e)))});const{maxLevel:j,levelEntities:H}=Wt(_);(0,o.nT)(()=>{if(e.checkable){let t;if(void 0!==e.checkedKeys?t=xt(e.checkedKeys)||{}:!F&&e.defaultCheckedKeys?t=xt(e.defaultCheckedKeys)||{}:w.value&&(t=xt(e.checkedKeys)||{checkedKeys:p.value,halfCheckedKeys:g.value}),t){let{checkedKeys:n=[],halfCheckedKeys:r=[]}=t;if(!e.checkStrictly){const e=Ot(n,!0,_.value,j.value,H.value);({checkedKeys:n,halfCheckedKeys:r}=e)}p.value=n,g.value=r}}}),(0,o.nT)(()=>{e.loadedKeys&&(m.value=e.loadedKeys)});const U=()=>{(0,r.A)(y,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},Q=e=>{T.value.scrollTo(e)};(0,o.wB)(()=>e.activeKey,()=>{void 0!==e.activeKey&&(E.value=e.activeKey)},{immediate:!0}),(0,o.wB)(E,e=>{(0,o.dY)(()=>{null!==e&&Q({key:e})})},{immediate:!0,flush:"post"});const z=t=>{void 0===e.expandedKeys&&(A.value=t)},W=()=>{null!==y.draggingNodeKey&&(0,r.A)(y,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),k=null,M=null},G=(t,n)=>{const{onDragend:r}=e;y.dragOverNodeKey=null,W(),null===r||void 0===r||r({event:t,node:n.eventData}),O=null},V=e=>{G(e,null,!0),window.removeEventListener("dragend",V)},K=(t,n)=>{const{onDragstart:r}=e,{eventKey:i,eventData:o}=n;O=n,k={x:t.clientX,y:t.clientY};const a=ft(A.value,i);y.draggingNodeKey=i,y.dragChildrenKeys=At(i,_.value),h.value=T.value.getIndentWidth(),z(a),window.addEventListener("dragend",V),r&&r({event:t,node:o})},Y=(t,n)=>{const{onDragenter:i,onExpand:o,allowDrop:a,direction:s}=e,{pos:l,eventKey:c}=n;if(M!==c&&(M=c),!O)return void U();const{dropPosition:d,dropLevelOffset:f,dropTargetKey:p,dropContainerKey:g,dropTargetPos:m,dropAllowed:v,dragOverNodeKey:b}=wt(t,O,n,h.value,k,a,$.value,_.value,D.value,s);-1===y.dragChildrenKeys.indexOf(p)&&v?(u||(u={}),Object.keys(u).forEach(e=>{clearTimeout(u[e])}),O.eventKey!==n.eventKey&&(u[l]=window.setTimeout(()=>{if(null===y.draggingNodeKey)return;let e=A.value.slice();const r=_.value[n.eventKey];r&&(r.children||[]).length&&(e=pt(A.value,n.eventKey)),z(e),o&&o(e,{node:n.eventData,expanded:!0,nativeEvent:t})},800)),O.eventKey!==p||0!==f?((0,r.A)(y,{dragOverNodeKey:b,dropPosition:d,dropLevelOffset:f,dropTargetKey:p,dropContainerKey:g,dropTargetPos:m,dropAllowed:v}),i&&i({event:t,node:n.eventData,expandedKeys:A.value})):U()):U()},q=(t,n)=>{const{onDragover:i,allowDrop:o,direction:a}=e;if(!O)return;const{dropPosition:s,dropLevelOffset:l,dropTargetKey:c,dropContainerKey:u,dropAllowed:d,dropTargetPos:f,dragOverNodeKey:p}=wt(t,O,n,h.value,k,o,$.value,_.value,D.value,a);-1===y.dragChildrenKeys.indexOf(c)&&d&&(O.eventKey===c&&0===l?null===y.dropPosition&&null===y.dropLevelOffset&&null===y.dropTargetKey&&null===y.dropContainerKey&&null===y.dropTargetPos&&!1===y.dropAllowed&&null===y.dragOverNodeKey||U():s===y.dropPosition&&l===y.dropLevelOffset&&c===y.dropTargetKey&&u===y.dropContainerKey&&f===y.dropTargetPos&&d===y.dropAllowed&&p===y.dragOverNodeKey||(0,r.A)(y,{dropPosition:s,dropLevelOffset:l,dropTargetKey:c,dropContainerKey:u,dropTargetPos:f,dropAllowed:d,dragOverNodeKey:p}),i&&i({event:t,node:n.eventData}))},X=(t,n)=>{M!==n.eventKey||t.currentTarget.contains(t.relatedTarget)||(U(),M=null);const{onDragleave:r}=e;r&&r({event:t,node:n.eventData})},J=function(t,n){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var o;const{dragChildrenKeys:a,dropPosition:s,dropTargetKey:l,dropTargetPos:c,dropAllowed:u}=y;if(!u)return;const{onDrop:h}=e;if(y.dragOverNodeKey=null,W(),null===l)return;const f=(0,r.A)((0,r.A)({},Ft(l,(0,d.ux)(I.value))),{active:(null===(o=pe.value)||void 0===o?void 0:o.key)===l,data:_.value[l].node}),p=-1!==a.indexOf(l);(0,We.$e)(!p,"Can not drop to dragNode's children node. Maybe this is a bug of ant-design-vue. Please report an issue.");const g=gt(c),m={event:t,node:$t(f),dragNode:O?O.eventData:null,dragNodesKeys:[O.eventKey].concat(a),dropToGap:0!==s,dropPosition:s+Number(g[g.length-1])};i||null===h||void 0===h||h(m),O=null},Z=(e,t)=>{const{expanded:n,key:i}=t,o=$.value.filter(e=>e.key===i)[0],a=$t((0,r.A)((0,r.A)({},Ft(i,I.value)),{data:o.data}));z(n?ft(A.value,i):pt(A.value,i)),ue(e,a)},ee=(t,n)=>{const{onClick:r,expandAction:i}=e;"click"===i&&Z(t,n),r&&r(t,n)},te=(t,n)=>{const{onDblclick:r,expandAction:i}=e;"doubleclick"!==i&&"dblclick"!==i||Z(t,n),r&&r(t,n)},ne=(t,n)=>{let r=f.value;const{onSelect:i,multiple:o}=e,{selected:a}=n,s=n[C.value.key],l=!a;r=l?o?pt(r,s):[s]:ft(r,s);const c=_.value,u=r.map(e=>{const t=c[e];return t?t.node:null}).filter(e=>e);void 0===e.selectedKeys&&(f.value=r),i&&i(r,{event:"select",selected:l,node:n,selectedNodes:u,nativeEvent:t})},re=(t,n,r)=>{const{checkStrictly:i,onCheck:o}=e,a=n[C.value.key];let s;const l={event:"check",node:n,checked:r,nativeEvent:t},c=_.value;if(i){const t=r?pt(p.value,a):ft(p.value,a),n=ft(g.value,a);s={checked:t,halfChecked:n},l.checkedNodes=t.map(e=>c[e]).filter(e=>e).map(e=>e.node),void 0===e.checkedKeys&&(p.value=t)}else{let{checkedKeys:t,halfCheckedKeys:n}=Ot([...p.value,a],!0,c,j.value,H.value);if(!r){const e=new Set(t);e.delete(a),({checkedKeys:t,halfCheckedKeys:n}=Ot(Array.from(e),{checked:!1,halfCheckedKeys:n},c,j.value,H.value))}s=t,l.checkedNodes=[],l.checkedNodesPositions=[],l.halfCheckedKeys=n,t.forEach(e=>{const t=c[e];if(!t)return;const{node:n,pos:r}=t;l.checkedNodes.push(n),l.checkedNodesPositions.push({node:n,pos:r})}),void 0===e.checkedKeys&&(p.value=t,g.value=n)}o&&o(s,l)},ie=t=>{const n=t[C.value.key],r=new Promise((r,i)=>{const{loadData:o,onLoad:a}=e;if(!o||R.value.has(n)||L.value.has(n))return null;const s=o(t);s.then(()=>{const i=pt(m.value,n),o=ft(v.value,n);a&&a(i,{event:"load",node:t}),void 0===e.loadedKeys&&(m.value=i),v.value=o,r()}).catch(t=>{const o=ft(v.value,n);if(v.value=o,b[n]=(b[n]||0)+1,b[n]>=Mr){(0,We.$e)(!1,"Retry for `loadData` many times but still failed. No more retry.");const t=pt(m.value,n);void 0===e.loadedKeys&&(m.value=t),r()}i(t)}),v.value=pt(v.value,n)});return r.catch(()=>{}),r},oe=(t,n)=>{const{onMouseenter:r}=e;r&&r({event:t,node:n})},ae=(t,n)=>{const{onMouseleave:r}=e;r&&r({event:t,node:n})},se=(t,n)=>{const{onRightClick:r}=e;r&&(t.preventDefault(),r({event:t,node:n}))},le=t=>{const{onFocus:n}=e;x.value=!0,n&&n(t)},ce=t=>{const{onBlur:n}=e;x.value=!1,fe(null),n&&n(t)},ue=(t,n)=>{let r=A.value;const{onExpand:i,loadData:o}=e,{expanded:a}=n,s=n[C.value.key];if(S.value)return;const l=r.indexOf(s),c=!a;if((0,We.$e)(a&&-1!==l||!a&&-1===l,"Expand state not sync with index check"),r=c?pt(r,s):ft(r,s),z(r),i&&i(r,{node:n,expanded:c,nativeEvent:t}),c&&o){const e=ie(n);e&&e.then(()=>{}).catch(e=>{const t=ft(A.value,s);z(t),Promise.reject(e)})}},de=()=>{S.value=!0},he=()=>{setTimeout(()=>{S.value=!1})},fe=t=>{const{onActiveChange:n}=e;E.value!==t&&(void 0!==e.activeKey&&(E.value=t),null!==t&&Q({key:t}),n&&n(t))},pe=(0,o.EW)(()=>null===E.value?null:$.value.find(e=>{let{key:t}=e;return t===E.value})||null),ge=e=>{let t=$.value.findIndex(e=>{let{key:t}=e;return t===E.value});-1===t&&e<0&&(t=$.value.length),t=(t+e+$.value.length)%$.value.length;const n=$.value[t];if(n){const{key:e}=n;fe(e)}else fe(null)},me=(0,o.EW)(()=>$t((0,r.A)((0,r.A)({},Ft(E.value,I.value)),{data:pe.value.data,active:!0}))),ve=t=>{const{onKeydown:n,checkable:r,selectable:i}=e;switch(t.which){case bn.A.UP:ge(-1),t.preventDefault();break;case bn.A.DOWN:ge(1),t.preventDefault();break}const o=pe.value;if(o&&o.data){const e=!1===o.data.isLeaf||!!(o.data.children||[]).length,n=me.value;switch(t.which){case bn.A.LEFT:e&&D.value.has(E.value)?ue({},n):o.parent&&fe(o.parent.key),t.preventDefault();break;case bn.A.RIGHT:e&&!D.value.has(E.value)?ue({},n):o.children&&o.children.length&&fe(o.children[0].key),t.preventDefault();break;case bn.A.ENTER:case bn.A.SPACE:!r||n.disabled||!1===n.checkable||n.disableCheckbox?r||!i||n.disabled||!1===n.selectable||ne({},n):re({},n,!B.value.has(E.value));break}}n&&n(t)};return l({onNodeExpand:ue,scrollTo:Q,onKeydown:ve,selectedKeys:(0,o.EW)(()=>f.value),checkedKeys:(0,o.EW)(()=>p.value),halfCheckedKeys:(0,o.EW)(()=>g.value),loadedKeys:(0,o.EW)(()=>m.value),loadingKeys:(0,o.EW)(()=>v.value),expandedKeys:(0,o.EW)(()=>A.value)}),(0,o.hi)(()=>{window.removeEventListener("dragend",V),c.value=!0}),Xn({expandedKeys:A,selectedKeys:f,loadedKeys:m,loadingKeys:v,checkedKeys:p,halfCheckedKeys:g,expandedKeysSet:D,selectedKeysSet:N,loadedKeysSet:R,loadingKeysSet:L,checkedKeysSet:B,halfCheckedKeysSet:P,flattenNodes:$}),()=>{const{draggingNodeKey:t,dropLevelOffset:l,dropContainerKey:c,dropTargetKey:u,dropPosition:d,dragOverNodeKey:f}=y,{prefixCls:p,showLine:g,focusable:m,tabindex:v=0,selectable:A,showIcon:b,icon:w=s.icon,switcherIcon:S,draggable:C,checkable:k,checkStrictly:O,disabled:M,motion:I,loadData:D,filterTreeNode:N,height:R,itemHeight:L,virtual:B,dropIndicatorRender:P,onContextmenu:F,onScroll:$,direction:j,rootClassName:H,rootStyle:U}=e,{class:Q,style:z}=n,W=(0,Je.A)((0,r.A)((0,r.A)({},e),n),{aria:!0,data:!0});let V;return V=!!C&&("object"===typeof C?C:"function"===typeof C?{nodeDraggable:C}:{}),(0,o.bF)(Kn,{value:{prefixCls:p,selectable:A,showIcon:b,icon:w,switcherIcon:S,draggable:V,draggingNodeKey:t,checkable:k,customCheckable:s.checkable,checkStrictly:O,disabled:M,keyEntities:_.value,dropLevelOffset:l,dropContainerKey:c,dropTargetKey:u,dropPosition:d,dragOverNodeKey:f,dragging:null!==t,indent:h.value,direction:j,dropIndicatorRender:P,loadData:D,filterTreeNode:N,onNodeClick:ee,onNodeDoubleClick:te,onNodeExpand:ue,onNodeSelect:ne,onNodeCheck:re,onNodeLoad:ie,onNodeMouseEnter:oe,onNodeMouseLeave:ae,onNodeContextMenu:se,onNodeDragStart:K,onNodeDragEnter:Y,onNodeDragOver:q,onNodeDragLeave:X,onNodeDragEnd:G,onNodeDrop:J,slots:s}},{default:()=>[(0,o.bF)("div",{role:"tree",class:(0,a.A)(p,Q,H,{[`${p}-show-line`]:g,[`${p}-focused`]:x.value,[`${p}-active-focused`]:null!==E.value}),style:U},[(0,o.bF)(Tr,(0,i.A)({ref:T,prefixCls:p,style:z,disabled:M,selectable:A,checkable:!!k,motion:I,height:R,itemHeight:L,virtual:B,focusable:m,focused:x.value,tabindex:v,activeItem:pe.value,onFocus:le,onBlur:ce,onKeydown:ve,onActiveChange:fe,onListChangeStart:de,onListChangeEnd:he,onContextmenu:F,onScroll:$},W),null)])]})}}}),Dr=Ir,Nr=n(16678),Rr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Lr=Rr;function Br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Pr(e,t,n[t])})}return e}function Pr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fr=function(e,t){var n=Br({},e,t.attrs);return(0,o.bF)(tn.A,Br({},n,{icon:Lr}),null)};Fr.displayName="FileOutlined",Fr.inheritAttrs=!1;var $r=Fr,jr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Hr=jr;function Ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Qr(e,t,n[t])})}return e}function Qr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zr=function(e,t){var n=Ur({},e,t.attrs);return(0,o.bF)(tn.A,Ur({},n,{icon:Hr}),null)};zr.displayName="MinusSquareOutlined",zr.inheritAttrs=!1;var Wr=zr,Gr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Vr=Gr;function Kr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Yr(e,t,n[t])})}return e}function Yr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qr=function(e,t){var n=Kr({},e,t.attrs);return(0,o.bF)(tn.A,Kr({},n,{icon:Vr}),null)};qr.displayName="PlusSquareOutlined",qr.inheritAttrs=!1;var Xr=qr,Jr={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Zr=Jr;function ei(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ti(e,t,n[t])})}return e}function ti(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ni=function(e,t){var n=ei({},e,t.attrs);return(0,o.bF)(tn.A,ei({},n,{icon:Zr}),null)};ni.displayName="CaretDownFilled",ni.inheritAttrs=!1;var ri=ni;function ii(e,t,n,i,a){const{isLeaf:s,expanded:l,loading:c}=n;let d,h=t;if(c)return(0,o.bF)(Nr.A,{class:`${e}-switcher-loading-icon`},null);a&&"object"===typeof a&&(d=a.showLeafIcon);let f=null;const p=`${e}-switcher-icon`;return s?a?d&&i?i(n):(f="object"!==typeof a||d?(0,o.bF)($r,{class:`${e}-switcher-line-icon`},null):(0,o.bF)("span",{class:`${e}-switcher-leaf-line`},null),f):null:(f=(0,o.bF)(ri,{class:p},null),a&&(f=l?(0,o.bF)(Wr,{class:`${e}-switcher-line-icon`},null):(0,o.bF)(Xr,{class:`${e}-switcher-line-icon`},null)),"function"===typeof t?h=t((0,r.A)((0,r.A)({},n),{defaultIcon:f,switcherCls:p})):(0,u.zO)(h)&&(h=(0,o.E3)(h,{class:p})),h||f)}const oi=4;function ai(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:i,direction:a="ltr"}=e,s="ltr"===a?"left":"right",l="ltr"===a?"right":"left",c={[s]:`${-n*i+oi}px`,[l]:0};switch(t){case-1:c.top="-3px";break;case 1:c.bottom="-3px";break;default:c.bottom="-3px",c[s]=`${i+oi}px`;break}return(0,o.bF)("div",{style:c,class:`${r}-drop-indicator`},null)}var si=n(58085),li=n(79024),ci=n(43680),ui=n(9519),di=n(90112),hi=n(36068);const fi=new si.A("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),pi=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),gi=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),mi=(e,t)=>{const{treeCls:n,treeNodeCls:i,treeNodePadding:o,treeTitleHeight:a}=t,s=(a-t.fontSizeLG)/2,l=t.paddingXS;return{[n]:(0,r.A)((0,r.A)({},(0,hi.dF)(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:(0,r.A)({},(0,hi.jk)(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${i}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:fi,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${i}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${o}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:(0,r.A)({},(0,hi.jk)(t)),[`&:not(${i}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{width:a,lineHeight:`${a}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${i}:hover &`]:{opacity:.45}},[`&${i}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:(0,r.A)((0,r.A)({},pi(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:`${a}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:a/2,bottom:-o,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:a/2*.8,height:a/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:l,marginBlockStart:s},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${a}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,lineHeight:`${a}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:(0,r.A)({lineHeight:`${a}px`,userSelect:"none"},gi(e,t)),[`${i}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:a/2,bottom:-o,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${i}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:a/2+"px !important"}}}}})}},vi=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{["\n            &:hover::before,\n            &::before\n          "]:{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},Ai=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,i=t.paddingXS/2,o=t.controlHeightSM,a=(0,ui.h1)(t,{treeCls:n,treeNodeCls:r,treeNodePadding:i,treeTitleHeight:o});return[mi(e,a),vi(a)]};var bi=(0,di.A)("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:(0,ci.gd)(`${n}-checkbox`,e)},Ai(n,e),(0,li.A)(e)]});const yi=()=>{const e=ar();return(0,r.A)((0,r.A)({},e),{showLine:(0,Wn.tK)([Boolean,Object]),multiple:(0,Wn.HE)(),autoExpandParent:(0,Wn.HE)(),checkStrictly:(0,Wn.HE)(),checkable:(0,Wn.HE)(),disabled:(0,Wn.HE)(),defaultExpandAll:(0,Wn.HE)(),defaultExpandParent:(0,Wn.HE)(),defaultExpandedKeys:(0,Wn.MY)(),expandedKeys:(0,Wn.MY)(),checkedKeys:(0,Wn.tK)([Array,Object]),defaultCheckedKeys:(0,Wn.MY)(),selectedKeys:(0,Wn.MY)(),defaultSelectedKeys:(0,Wn.MY)(),selectable:(0,Wn.HE)(),loadedKeys:(0,Wn.MY)(),draggable:(0,Wn.HE)(),showIcon:(0,Wn.HE)(),icon:(0,Wn.Fg)(),switcherIcon:rr.A.any,prefixCls:String,replaceFields:(0,Wn.ge)(),blockNode:(0,Wn.HE)(),openAnimation:rr.A.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":(0,Wn.Fg)(),"onUpdate:checkedKeys":(0,Wn.Fg)(),"onUpdate:expandedKeys":(0,Wn.Fg)()})};var wi=(0,o.pM)({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:(0,Or.A)(yi(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:Object,setup(e,t){let{attrs:n,expose:s,emit:l,slots:c}=t;(0,We.$e)(!(void 0===e.treeData&&c.default),"`children` of Tree is deprecated. Please use `treeData` instead.");const{prefixCls:h,direction:f,virtual:p}=(0,Un.A)("tree",e),[g,m]=bi(h),v=(0,d.KR)(),A=e=>{var t;null===(t=v.value)||void 0===t||t.scrollTo(e)};s({treeRef:v,onNodeExpand:function(){var e;null===(e=v.value)||void 0===e||e.onNodeExpand(...arguments)},scrollTo:A,selectedKeys:(0,o.EW)(()=>{var e;return null===(e=v.value)||void 0===e?void 0:e.selectedKeys}),checkedKeys:(0,o.EW)(()=>{var e;return null===(e=v.value)||void 0===e?void 0:e.checkedKeys}),halfCheckedKeys:(0,o.EW)(()=>{var e;return null===(e=v.value)||void 0===e?void 0:e.halfCheckedKeys}),loadedKeys:(0,o.EW)(()=>{var e;return null===(e=v.value)||void 0===e?void 0:e.loadedKeys}),loadingKeys:(0,o.EW)(()=>{var e;return null===(e=v.value)||void 0===e?void 0:e.loadingKeys}),expandedKeys:(0,o.EW)(()=>{var e;return null===(e=v.value)||void 0===e?void 0:e.expandedKeys})}),(0,o.nT)(()=>{(0,U.A)(void 0===e.replaceFields,"Tree","`replaceFields` is deprecated, please use fieldNames instead")});const b=(e,t)=>{l("update:checkedKeys",e),l("check",e,t)},y=(e,t)=>{l("update:expandedKeys",e),l("expand",e,t)},w=(e,t)=>{l("update:selectedKeys",e),l("select",e,t)};return()=>{const{showIcon:t,showLine:s,switcherIcon:l=c.switcherIcon,icon:d=c.icon,blockNode:A,checkable:_,selectable:x,fieldNames:E=e.replaceFields,motion:S=e.openAnimation,itemHeight:C=28,onDoubleclick:T,onDblclick:k}=e,O=(0,r.A)((0,r.A)((0,r.A)({},n),(0,Mt.A)(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{showLine:Boolean(s),dropIndicatorRender:ai,fieldNames:E,icon:d,itemHeight:C}),M=c.default?(0,u.Gk)(c.default()):void 0;return g((0,o.bF)(Dr,(0,i.A)((0,i.A)({},O),{},{virtual:p.value,motion:S,ref:v,prefixCls:h.value,class:(0,a.A)({[`${h.value}-icon-hide`]:!t,[`${h.value}-block-node`]:A,[`${h.value}-unselectable`]:!x,[`${h.value}-rtl`]:"rtl"===f.value},n.class,m.value),direction:f.value,checkable:_,selectable:x,switcherIcon:e=>ii(h.value,l,e,c.leafIcon,s),onCheck:b,onExpand:y,onSelect:w,onDblclick:k||T,children:M}),(0,r.A)((0,r.A)({},c),{checkable:()=>(0,o.bF)("span",{class:`${h.value}-checkbox-inner`},null)})))}}}),_i=n(6301),xi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Ei=xi;function Si(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ci(e,t,n[t])})}return e}function Ci(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ti=function(e,t){var n=Si({},e,t.attrs);return(0,o.bF)(tn.A,Si({},n,{icon:Ei}),null)};Ti.displayName="FolderOpenOutlined",Ti.inheritAttrs=!1;var ki=Ti,Oi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Mi=Oi;function Ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Di(e,t,n[t])})}return e}function Di(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ni=function(e,t){var n=Ii({},e,t.attrs);return(0,o.bF)(tn.A,Ii({},n,{icon:Mi}),null)};Ni.displayName="FolderOutlined",Ni.inheritAttrs=!1;var Ri,Li=Ni;function Bi(e,t,n){function r(e){const r=e[t.key],i=e[t.children];!1!==n(r,e)&&Bi(i||[],t,n)}e.forEach(r)}function Pi(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:i,fieldNames:o={title:"title",key:"key",children:"children"}}=e;const a=[];let s=Ri.None;if(r&&r===i)return[r];if(!r||!i)return[];function l(e){return e===r||e===i}return Bi(t,o,e=>{if(s===Ri.End)return!1;if(l(e)){if(a.push(e),s===Ri.None)s=Ri.Start;else if(s===Ri.Start)return s=Ri.End,!1}else s===Ri.Start&&a.push(e);return n.includes(e)}),a}function Fi(e,t,n){const r=[...t],i=[];return Bi(e,n,(e,t)=>{const n=r.indexOf(e);return-1!==n&&(i.push(t),r.splice(n,1)),!!r.length}),i}(function(e){e[e["None"]=0]="None",e[e["Start"]=1]="Start",e[e["End"]=2]="End"})(Ri||(Ri={}));var $i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const ji=()=>(0,r.A)((0,r.A)({},yi()),{expandAction:(0,Wn.tK)([Boolean,String])});function Hi(e){const{isLeaf:t,expanded:n}=e;return t?(0,o.bF)($r,null,null):n?(0,o.bF)(ki,null,null):(0,o.bF)(Li,null,null)}var Ui=(0,o.pM)({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:(0,Or.A)(ji(),{showIcon:!0,expandAction:"click"}),slots:Object,setup(e,t){let{attrs:n,slots:s,emit:l,expose:c}=t;var h;const f=(0,d.KR)(e.treeData||Rt((0,u.Gk)(null===(h=s.default)||void 0===h?void 0:h.call(s))));(0,o.wB)(()=>e.treeData,()=>{f.value=e.treeData}),(0,o.$u)(()=>{(0,o.dY)(()=>{var t;void 0===e.treeData&&s.default&&(f.value=Rt((0,u.Gk)(null===(t=s.default)||void 0===t?void 0:t.call(s))))})});const p=(0,d.KR)(),g=(0,d.KR)(),m=(0,o.EW)(()=>Nt(e.fieldNames)),v=(0,d.KR)(),A=e=>{var t;null===(t=v.value)||void 0===t||t.scrollTo(e)};c({scrollTo:A,selectedKeys:(0,o.EW)(()=>{var e;return null===(e=v.value)||void 0===e?void 0:e.selectedKeys}),checkedKeys:(0,o.EW)(()=>{var e;return null===(e=v.value)||void 0===e?void 0:e.checkedKeys}),halfCheckedKeys:(0,o.EW)(()=>{var e;return null===(e=v.value)||void 0===e?void 0:e.halfCheckedKeys}),loadedKeys:(0,o.EW)(()=>{var e;return null===(e=v.value)||void 0===e?void 0:e.loadedKeys}),loadingKeys:(0,o.EW)(()=>{var e;return null===(e=v.value)||void 0===e?void 0:e.loadingKeys}),expandedKeys:(0,o.EW)(()=>{var e;return null===(e=v.value)||void 0===e?void 0:e.expandedKeys})});const b=()=>{const{keyEntities:t}=Pt(f.value,{fieldNames:m.value});let n;return n=e.defaultExpandAll?Object.keys(t):e.defaultExpandParent?Et(e.expandedKeys||e.defaultExpandedKeys||[],t):e.expandedKeys||e.defaultExpandedKeys,n},y=(0,d.KR)(e.selectedKeys||e.defaultSelectedKeys||[]),w=(0,d.KR)(b());(0,o.wB)(()=>e.selectedKeys,()=>{void 0!==e.selectedKeys&&(y.value=e.selectedKeys)},{immediate:!0}),(0,o.wB)(()=>e.expandedKeys,()=>{void 0!==e.expandedKeys&&(w.value=e.expandedKeys)},{immediate:!0});const _=(e,t)=>{const{isLeaf:n}=t;n||e.shiftKey||e.metaKey||e.ctrlKey||v.value.onNodeExpand(e,t)},x=(0,_i.A)(_,200,{leading:!0}),E=(t,n)=>{void 0===e.expandedKeys&&(w.value=t),l("update:expandedKeys",t),l("expand",t,n)},S=(t,n)=>{const{expandAction:r}=e;"click"===r&&x(t,n),l("click",t,n)},C=(t,n)=>{const{expandAction:r}=e;"dblclick"!==r&&"doubleclick"!==r||x(t,n),l("doubleclick",t,n),l("dblclick",t,n)},T=(t,n)=>{const{multiple:i}=e,{node:o,nativeEvent:a}=n,s=o[m.value.key],c=(0,r.A)((0,r.A)({},n),{selected:!0}),u=(null===a||void 0===a?void 0:a.ctrlKey)||(null===a||void 0===a?void 0:a.metaKey),d=null===a||void 0===a?void 0:a.shiftKey;let h;i&&u?(h=t,p.value=s,g.value=h,c.selectedNodes=Fi(f.value,h,m.value)):i&&d?(h=Array.from(new Set([...g.value||[],...Pi({treeData:f.value,expandedKeys:w.value,startKey:s,endKey:p.value,fieldNames:m.value})])),c.selectedNodes=Fi(f.value,h,m.value)):(h=[s],p.value=s,g.value=h,c.selectedNodes=Fi(f.value,h,m.value)),l("update:selectedKeys",h),l("select",h,c),void 0===e.selectedKeys&&(y.value=h)},k=(e,t)=>{l("update:checkedKeys",e),l("check",e,t)},{prefixCls:O,direction:M}=(0,Un.A)("tree",e);return()=>{const t=(0,a.A)(`${O.value}-directory`,{[`${O.value}-directory-rtl`]:"rtl"===M.value},n.class),{icon:r=s.icon,blockNode:l=!0}=e,c=$i(e,["icon","blockNode"]);return(0,o.bF)(wi,(0,i.A)((0,i.A)((0,i.A)({},n),{},{icon:r||Hi,ref:v,blockNode:l},c),{},{prefixCls:O.value,class:t,expandedKeys:w.value,selectedKeys:y.value,onSelect:T,onClick:S,onDblclick:C,onExpand:E,onCheck:k}),s)}}});const Qi=dr;var zi=(0,r.A)(wi,{DirectoryTree:Ui,TreeNode:Qi,install:e=>(e.component(wi.name,wi),e.component(Qi.name,Qi),e.component(Ui.name,Ui),e)});function Wi(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=new Set;function i(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const a=r.has(e);if((0,We.Ay)(!a,"Warning: There may be circular references"),a)return!1;if(e===t)return!0;if(n&&o>1)return!1;r.add(e);const s=o+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!i(e[n],t[n],s))return!1;return!0}if(e&&t&&"object"===typeof e&&"object"===typeof t){const n=Object.keys(e);return n.length===Object.keys(t).length&&n.every(n=>i(e[n],t[n],s))}return!1}return i(e,t)}var Gi=Wi;const{SubMenu:Vi,Item:Ki}=Qt.Ay;function Yi(e){return e.some(e=>{let{children:t}=e;return t&&t.length>0})}function qi(e,t){return("string"===typeof t||"number"===typeof t)&&(null===t||void 0===t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function Xi(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:s}=e;return t.map((e,t)=>{const l=String(e.value);if(e.children)return(0,o.bF)(Vi,{key:l||t,title:e.text,popupClassName:`${n}-dropdown-submenu`},{default:()=>[Xi({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:s})]});const c=i?Ht.Ay:zt.Ay,u=(0,o.bF)(Ki,{key:void 0!==e.value?l:t},{default:()=>[(0,o.bF)(c,{checked:r.includes(l)},null),(0,o.bF)("span",null,[e.text])]});return a.trim()?"function"===typeof s?s(a,e)?u:void 0:qi(a,e.text)?u:void 0:u})}var Ji=(0,o.pM)({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup(e,t){let{slots:n}=t;const i=y(),s=(0,o.EW)(()=>{var t;return null!==(t=e.filterMode)&&void 0!==t?t:"menu"}),l=(0,o.EW)(()=>{var t;return null!==(t=e.filterSearch)&&void 0!==t&&t}),c=(0,o.EW)(()=>e.column.filterDropdownOpen||e.column.filterDropdownVisible),u=(0,o.EW)(()=>e.column.onFilterDropdownOpenChange||e.column.onFilterDropdownVisibleChange);const h=(0,d.IJ)(!1),f=(0,o.EW)(()=>{var t;return!(!e.filterState||!(null===(t=e.filterState.filteredKeys)||void 0===t?void 0:t.length)&&!e.filterState.forceFiltered)}),p=(0,o.EW)(()=>{var t;return to(null===(t=e.column)||void 0===t?void 0:t.filters)}),g=(0,o.EW)(()=>{const{filterDropdown:t,slots:n={},customFilterDropdown:r}=e.column;return t||n.filterDropdown&&i.value[n.filterDropdown]||r&&i.value.customFilterDropdown}),m=(0,o.EW)(()=>{const{filterIcon:t,slots:n={}}=e.column;return t||n.filterIcon&&i.value[n.filterIcon]||i.value.customFilterIcon}),v=e=>{var t;h.value=e,null===(t=u.value)||void 0===t||t.call(u,e)},A=(0,o.EW)(()=>"boolean"===typeof c.value?c.value:h.value),b=(0,o.EW)(()=>{var t;return null===(t=e.filterState)||void 0===t?void 0:t.filteredKeys}),w=(0,d.IJ)([]),_=e=>{let{selectedKeys:t}=e;w.value=t},x=(t,n)=>{let{node:r,checked:i}=n;e.filterMultiple?_({selectedKeys:t}):_({selectedKeys:i&&r.key?[r.key]:[]})};(0,o.wB)(b,()=>{h.value&&_({selectedKeys:b.value||[]})},{immediate:!0});const E=(0,d.IJ)([]),S=(0,d.IJ)(),C=e=>{S.value=setTimeout(()=>{E.value=e})},T=()=>{clearTimeout(S.value)};(0,o.xo)(()=>{clearTimeout(S.value)});const k=(0,d.IJ)(""),O=e=>{const{value:t}=e.target;k.value=t};(0,o.wB)(h,()=>{h.value||(k.value="")});const M=t=>{const{column:n,columnKey:r,filterState:i}=e,o=t&&t.length?t:null;return null!==o||i&&i.filteredKeys?Gi(o,null===i||void 0===i?void 0:i.filteredKeys,!0)?null:void e.triggerFilter({column:n,key:r,filteredKeys:o}):null},I=()=>{v(!1),M(w.value)},D=function(){let{confirm:t,closeDropdown:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};t&&M([]),n&&v(!1),k.value="",e.column.filterResetToDefaultFilteredValue?w.value=(e.column.defaultFilteredValue||[]).map(e=>String(e)):w.value=[]},N=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&v(!1),M(w.value)},R=e=>{e&&void 0!==b.value&&(w.value=b.value||[]),v(e),e||g.value||I()},{direction:L}=(0,Un.A)("",e),B=e=>{if(e.target.checked){const e=p.value;w.value=e}else w.value=[]},P=e=>{let{filters:t}=e;return(t||[]).map((e,t)=>{const n=String(e.value),r={title:e.text,key:void 0!==e.value?n:t};return e.children&&(r.children=P({filters:e.children})),r})},F=e=>{var t;return(0,r.A)((0,r.A)({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map(e=>F(e)))||[]})},$=(0,o.EW)(()=>P({filters:e.column.filters})),j=(0,o.EW)(()=>(0,a.A)({[`${e.dropdownPrefixCls}-menu-without-submenu`]:!Yi(e.column.filters||[])})),H=()=>{const t=w.value,{column:n,locale:r,tablePrefixCls:i,filterMultiple:a,dropdownPrefixCls:c,getPopupContainer:u,prefixCls:d}=e;return 0===(n.filters||[]).length?(0,o.bF)(Fn.A,{image:Fn.A.PRESENTED_IMAGE_SIMPLE,description:r.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):"tree"===s.value?(0,o.bF)(o.FK,null,[(0,o.bF)(Gn,{filterSearch:l.value,value:k.value,onChange:O,tablePrefixCls:i,locale:r},null),(0,o.bF)("div",{class:`${i}-filter-dropdown-tree`},[a?(0,o.bF)(Ht.Ay,{class:`${i}-filter-dropdown-checkall`,onChange:B,checked:t.length===p.value.length,indeterminate:t.length>0&&t.length<p.value.length},{default:()=>[r.filterCheckall]}):null,(0,o.bF)(zi,{checkable:!0,selectable:!1,blockNode:!0,multiple:a,checkStrictly:!a,class:`${c}-menu`,onCheck:x,checkedKeys:t,selectedKeys:t,showIcon:!1,treeData:$.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:k.value.trim()?e=>"function"===typeof l.value?l.value(k.value,F(e)):qi(k.value,e.title):void 0},null)])]):(0,o.bF)(o.FK,null,[(0,o.bF)(Gn,{filterSearch:l.value,value:k.value,onChange:O,tablePrefixCls:i,locale:r},null),(0,o.bF)(Qt.Ay,{multiple:a,prefixCls:`${c}-menu`,class:j.value,onClick:T,onSelect:_,onDeselect:_,selectedKeys:t,getPopupContainer:u,openKeys:E.value,onOpenChange:C},{default:()=>Xi({filters:n.filters||[],filterSearch:l.value,prefixCls:d,filteredKeys:w.value,filterMultiple:a,searchValue:k.value})})])},U=(0,o.EW)(()=>{const t=w.value;return e.column.filterResetToDefaultFilteredValue?Gi((e.column.defaultFilteredValue||[]).map(e=>String(e)),t,!0):0===t.length});return()=>{var t;const{tablePrefixCls:r,prefixCls:i,column:s,dropdownPrefixCls:l,locale:c,getPopupContainer:u}=e;let d;d="function"===typeof g.value?g.value({prefixCls:`${l}-custom`,setSelectedKeys:e=>_({selectedKeys:e}),selectedKeys:w.value,confirm:N,clearFilters:D,filters:s.filters,visible:A.value,column:s.__originColumn__,close:()=>{v(!1)}}):g.value?g.value:(0,o.bF)(o.FK,null,[H(),(0,o.bF)("div",{class:`${i}-dropdown-btns`},[(0,o.bF)(Pn.A,{type:"link",size:"small",disabled:U.value,onClick:()=>D()},{default:()=>[c.filterReset]}),(0,o.bF)(Pn.A,{type:"primary",size:"small",onClick:I},{default:()=>[c.filterConfirm]})])]);const h=(0,o.bF)(Hn,{class:`${i}-dropdown`},{default:()=>[d]});let p;return p="function"===typeof m.value?m.value({filtered:f.value,column:s.__originColumn__}):m.value?m.value:(0,o.bF)(Bn,null,null),(0,o.bF)("div",{class:`${i}-column`},[(0,o.bF)("span",{class:`${r}-column-title`},[null===(t=n.default)||void 0===t?void 0:t.call(n)]),(0,o.bF)(Ut.Ay,{overlay:h,trigger:["click"],open:A.value,onOpenChange:R,getPopupContainer:u,placement:"rtl"===L.value?"bottomLeft":"bottomRight"},{default:()=>[(0,o.bF)("span",{role:"button",tabindex:-1,class:(0,a.A)(`${i}-trigger`,{active:f.value}),onClick:e=>{e.stopPropagation()}},[p])]})])}}});function Zi(e,t,n){let r=[];return(e||[]).forEach((e,i)=>{var o,a;const s=mn(i,n),l=e.filterDropdown||(null===(o=null===e||void 0===e?void 0:e.slots)||void 0===o?void 0:o.filterDropdown)||e.customFilterDropdown;if(e.filters||l||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;l||(t=null!==(a=null===t||void 0===t?void 0:t.map(String))&&void 0!==a?a:t),r.push({column:e,key:gn(e,s),filteredKeys:t,forceFiltered:e.filtered})}else r.push({column:e,key:gn(e,s),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(r=[...r,...Zi(e.children,t,s)])}),r}function eo(e,t,n,i,a,s,l,c){return n.map((n,u)=>{var d;const h=mn(u,c),{filterMultiple:f=!0,filterMode:p,filterSearch:g}=n;let m=n;const v=n.filterDropdown||(null===(d=null===n||void 0===n?void 0:n.slots)||void 0===d?void 0:d.filterDropdown)||n.customFilterDropdown;if(m.filters||v){const c=gn(m,h),u=i.find(e=>{let{key:t}=e;return c===t});m=(0,r.A)((0,r.A)({},m),{title:r=>(0,o.bF)(Ji,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:m,columnKey:c,filterState:u,filterMultiple:f,filterMode:p,filterSearch:g,triggerFilter:s,locale:a,getPopupContainer:l},{default:()=>[vn(n.title,r)]})})}return"children"in m&&(m=(0,r.A)((0,r.A)({},m),{children:eo(e,t,m.children,i,a,s,l,h)})),m})}function to(e){let t=[];return(e||[]).forEach(e=>{let{value:n,children:r}=e;t.push(n),r&&(t=[...t,...to(r)])}),t}function no(e){const t={};return e.forEach(e=>{let{key:n,filteredKeys:r,column:i}=e;var o;const a=i.filterDropdown||(null===(o=null===i||void 0===i?void 0:i.slots)||void 0===o?void 0:o.filterDropdown)||i.customFilterDropdown,{filters:s}=i;if(a)t[n]=r||null;else if(Array.isArray(r)){const e=to(s);t[n]=e.filter(e=>r.includes(String(e)))}else t[n]=null}),t}function ro(e,t){return t.reduce((e,t)=>{const{column:{onFilter:n,filters:r},filteredKeys:i}=t;return n&&i&&i.length?e.filter(e=>i.some(t=>{const i=to(r),o=i.findIndex(e=>String(e)===String(t)),a=-1!==o?i[o]:t;return n(a,e)})):e},e)}function io(e){return e.flatMap(e=>"children"in e?[e,...io(e.children||[])]:[e])}function oo(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:i,locale:a,onFilterChange:s,getPopupContainer:l}=e;const c=(0,o.EW)(()=>io(i.value)),[u,d]=(0,Ye.A)(Zi(c.value,!0)),h=(0,o.EW)(()=>{const e=Zi(c.value,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach(e=>{let{filteredKeys:r}=e;void 0!==r?t=!1:n=!1}),t){const e=(c.value||[]).map((e,t)=>gn(e,mn(t)));return u.value.filter(t=>{let{key:n}=t;return e.includes(n)}).map(t=>{const n=c.value[e.findIndex(e=>e===t.key)];return(0,r.A)((0,r.A)({},t),{column:(0,r.A)((0,r.A)({},t.column),n),forceFiltered:n.filtered})})}return(0,U.A)(n,"Table","Columns should all contain `filteredValue` or not contain `filteredValue`."),e}),f=(0,o.EW)(()=>no(h.value)),p=e=>{const t=h.value.filter(t=>{let{key:n}=t;return n!==e.key});t.push(e),d(t),s(no(t),t)},g=e=>eo(t.value,n.value,e,h.value,a.value,p,l.value);return[g,h,f]}var ao=oo;function so(e,t){return e.map(e=>{const n=(0,r.A)({},e);return n.title=vn(n.title,t),"children"in n&&(n.children=so(n.children,t)),n})}function lo(e){const t=t=>so(t,e.value);return[t]}function co(e){return function(t){let{prefixCls:n,onExpand:r,record:i,expanded:s,expandable:l}=t;const c=`${n}-row-expand-icon`;return(0,o.bF)("button",{type:"button",onClick:e=>{r(i,e),e.stopPropagation()},class:(0,a.A)(c,{[`${c}-spaced`]:!l,[`${c}-expanded`]:l&&s,[`${c}-collapsed`]:l&&!s}),"aria-label":s?e.collapse:e.expand,"aria-expanded":s},null)}}var uo=co,ho=n(81998),fo=n(32342),po=n(53627),go=n(36590);function mo(e,t){const n=t.value;return e.map(e=>{var i;if(e===Gt||e===he)return e;const o=(0,r.A)({},e),{slots:a={}}=o;return o.__originColumn__=e,(0,U.A)(!("slots"in o),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(a).forEach(e=>{const t=a[e];void 0===o[e]&&n[t]&&(o[e]=n[t])}),t.value.headerCell&&!(null===(i=e.slots)||void 0===i?void 0:i.title)&&(o.title=(0,N.QK)(t.value,"headerCell",{title:e.title,column:e},()=>[e.title])),"children"in o&&Array.isArray(o.children)&&(o.children=mo(o.children,t)),o})}function vo(e){const t=t=>mo(t,e);return[t]}var Ao=n(50223);const bo=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,i=(n,r,i)=>({[`&${t}-${n}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${r}px -${i+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:(0,r.A)((0,r.A)((0,r.A)({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,[`\n            > ${t}-content,\n            > ${t}-header,\n            > ${t}-body,\n            > ${t}-summary\n          `]:{"> table":{["\n                > thead > tr > th,\n                > tbody > tr > td,\n                > tfoot > tr > th,\n                > tfoot > tr > td\n              "]:{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},["\n                > thead > tr,\n                > tbody > tr,\n                > tfoot > tr\n              "]:{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},"> tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}},[`\n            > ${t}-content,\n            > ${t}-header\n          `]:{"> table":{borderTop:n}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n                > tr${t}-expanded-row,\n                > tr${t}-placeholder\n              `]:{"> td":{borderInlineEnd:0}}}}}},i("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),i("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}}}}};var yo=bo;const wo=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:(0,r.A)((0,r.A)({},hi.L9),{wordBreak:"keep-all",[`\n          &${t}-cell-fix-left-last,\n          &${t}-cell-fix-right-first\n        `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}};var _o=wo;const xo=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > td":{background:e.colorBgContainer}}}}};var Eo=xo,So=n(50483);const Co=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:i,motionDurationSlow:o,lineWidth:a,paddingXS:s,lineType:l,tableBorderColor:c,tableExpandIconBg:u,tableExpandColumnWidth:d,borderRadius:h,fontSize:f,fontSizeSM:p,lineHeight:g,tablePaddingVertical:m,tablePaddingHorizontal:v,tableExpandedRowBg:A,paddingXXS:b}=e,y=i/2-a,w=2*y+3*a,_=`${a}px ${l} ${c}`,x=b-a;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:d},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:(0,r.A)((0,r.A)({},(0,So.Y)(e)),{position:"relative",float:"left",boxSizing:"border-box",width:w,height:w,padding:0,color:"inherit",lineHeight:`${w}px`,background:u,border:_,borderRadius:h,transform:`scale(${i/w})`,transition:`all ${o}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:x,insetInlineStart:x,height:a},"&::after":{top:x,bottom:x,insetInlineStart:y,width:a,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(f*g-3*a)/2-Math.ceil((1.4*p-3*a)/2),marginInlineEnd:s},[`tr${t}-expanded-row`]:{"&, &:hover":{"> td":{background:A}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${m}px -${v}px`,padding:`${m}px ${v}px`}}}};var To=Co;const ko=e=>{const{componentCls:t,antCls:n,iconCls:i,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:a,paddingXXS:s,paddingXS:l,colorText:c,lineWidth:u,lineType:d,tableBorderColor:h,tableHeaderIconColor:f,fontSizeSM:p,tablePaddingHorizontal:g,borderRadius:m,motionDurationSlow:v,colorTextDescription:A,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:w,tableFilterDropdownBg:_,tableFilterDropdownHeight:x,controlItemBgHover:E,controlItemBgActive:S,boxShadowSecondary:C}=e,T=`${n}-dropdown`,k=`${t}-filter-dropdown`,O=`${n}-tree`,M=`${u}px ${d} ${h}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-s,marginInline:`${s}px ${-g/2}px`,padding:`0 ${s}px`,color:f,fontSize:p,borderRadius:m,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:A,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[k]:(0,r.A)((0,r.A)({},(0,hi.dF)(e)),{minWidth:o,backgroundColor:_,borderRadius:m,boxShadow:C,[`${T}-menu`]:{maxHeight:x,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${l}px 0`,color:w,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${k}-tree`]:{paddingBlock:`${l}px 0`,paddingInline:l,[O]:{padding:0},[`${O}-treenode ${O}-node-content-wrapper:hover`]:{backgroundColor:E},[`${O}-treenode-checkbox-checked ${O}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:S}}},[`${k}-search`]:{padding:l,borderBottom:M,"&-input":{input:{minWidth:a},[i]:{color:w}}},[`${k}-checkall`]:{width:"100%",marginBottom:s,marginInlineStart:s},[`${k}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${l-u}px ${l}px`,overflow:"hidden",backgroundColor:"inherit",borderTop:M}})}},{[`${n}-dropdown ${k}, ${k}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]};var Oo=ko;const Mo=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:i,zIndexTableFixed:o,tableBg:a,zIndexTableSticky:s}=e,l=r;return{[`${t}-wrapper`]:{[`\n        ${t}-cell-fix-left,\n        ${t}-cell-fix-right\n      `]:{position:"sticky !important",zIndex:o,background:a},[`\n        ${t}-cell-fix-left-first::after,\n        ${t}-cell-fix-left-last::after\n      `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n        ${t}-cell-fix-right-first::after,\n        ${t}-cell-fix-right-last::after\n      `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:s+1,width:30,transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${l}`}},[`\n          ${t}-cell-fix-left-first::after,\n          ${t}-cell-fix-left-last::after\n        `]:{boxShadow:`inset 10px 0 8px -8px ${l}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${l}`}},[`\n          ${t}-cell-fix-right-first::after,\n          ${t}-cell-fix-right-last::after\n        `]:{boxShadow:`inset -10px 0 8px -8px ${l}`}}}}};var Io=Mo;const Do=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}};var No=Do;const Ro=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,table:{borderRadius:0,"> thead > tr:first-child":{"th:first-child":{borderRadius:0},"th:last-child":{borderRadius:0}}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}};var Lo=Ro;const Bo=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{"&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}}}}};var Po=Bo;const Fo=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:i,paddingXS:o,tableHeaderIconColor:a,tableHeaderIconColorHover:s}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:e.tableSelectionColumnWidth},[`${t}-bordered ${t}-selection-col`]:{width:e.tableSelectionColumnWidth+2*o},[`\n        table tr th${t}-selection-column,\n        table tr td${t}-selection-column\n      `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:e.tablePaddingHorizontal/4+"px",[r]:{color:a,fontSize:i,verticalAlign:"baseline","&:hover":{color:s}}}}}};var $o=Fo;const jo=e=>{const{componentCls:t}=e,n=(n,r,i,o)=>({[`${t}${t}-${n}`]:{fontSize:o,[`\n        ${t}-title,\n        ${t}-footer,\n        ${t}-thead > tr > th,\n        ${t}-tbody > tr > td,\n        tfoot > tr > th,\n        tfoot > tr > td\n      `]:{padding:`${r}px ${i}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${i/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${r}px -${i}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-i}px -${i}px`}},[`${t}-selection-column`]:{paddingInlineStart:i/4+"px"}}});return{[`${t}-wrapper`]:(0,r.A)((0,r.A)({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}};var Ho=jo;const Uo=e=>{const{componentCls:t}=e;return{[`${t}-wrapper ${t}-resize-handle`]:{position:"absolute",top:0,height:"100% !important",bottom:0,left:" auto !important",right:" -8px",cursor:"col-resize",touchAction:"none",userSelect:"auto",width:"16px",zIndex:1,["&-line"]:{display:"block",width:"1px",marginLeft:"7px",height:"100% !important",backgroundColor:e.colorPrimary,opacity:0},["&:hover &-line"]:{opacity:1}},[`${t}-wrapper  ${t}-resize-handle.dragging`]:{overflow:"hidden",[`${t}-resize-handle-line`]:{opacity:1},["&:before"]:{position:"absolute",top:0,bottom:0,content:'" "',width:"200vw",transform:"translateX(-50%)",opacity:0}}}};var Qo=Uo;const zo=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,tableHeaderIconColor:i,tableHeaderIconColorHover:o}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`\n          &${t}-cell-fix-left:hover,\n          &${t}-cell-fix-right:hover\n        `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}};var Wo=zo;const Go=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollThumbSize:o,tableScrollBg:a,zIndexTableSticky:s}=e,l=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${o}px !important`,zIndex:s,display:"flex",alignItems:"center",background:a,borderTop:l,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}};var Vo=Go;const Ko=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r}=e,i=`${n}px ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${r}`}}}};var Yo=Ko;const qo=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:i,tablePaddingHorizontal:o,lineWidth:a,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:d,tableHeaderTextColor:h,motionDurationMid:f,tableHeaderBg:p,tableHeaderCellSplitColor:g,tableRowHoverBg:m,tableSelectedRowBg:v,tableSelectedRowHoverBg:A,tableFooterTextColor:b,tableFooterBg:y,paddingContentVerticalLG:w}=e,_=`${a}px ${s} ${l}`;return{[`${t}-wrapper`]:(0,r.A)((0,r.A)({clear:"both",maxWidth:"100%"},(0,hi.t6)()),{[t]:(0,r.A)((0,r.A)({},(0,hi.dF)(e)),{fontSize:c,background:u,borderRadius:`${d}px ${d}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${d}px ${d}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n          ${t}-thead > tr > th,\n          ${t}-tbody > tr > td,\n          tfoot > tr > th,\n          tfoot > tr > td\n        `]:{position:"relative",padding:`${w}px ${o}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${i}px ${o}px`},[`${t}-thead`]:{["\n          > tr > th,\n          > tr > td\n        "]:{position:"relative",color:h,fontWeight:n,textAlign:"start",background:p,borderBottom:_,transition:`background ${f} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}:not(${t}-bordered)`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderTop:_,borderBottom:"transparent"},"&:last-child > td":{borderBottom:_},[`&:first-child > td,\n              &${t}-measure-row + tr > td`]:{borderTop:"none",borderTopColor:"transparent"}}}},[`${t}${t}-bordered`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderBottom:_}}}},[`${t}-tbody`]:{"> tr":{"> td":{transition:`background ${f}, border-color ${f}`,[`\n              > ${t}-wrapper:only-child,\n              > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n            `]:{[t]:{marginBlock:`-${i}px`,marginInline:`${e.tableExpandColumnWidth-o}px -${o}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},[`\n            &${t}-row:hover > td,\n            > td${t}-cell-row-hover\n          `]:{background:m},[`&${t}-row-selected`]:{"> td":{background:v},"&:hover > td":{background:A}}}},[`${t}-footer`]:{padding:`${i}px ${o}px`,color:b,background:y}})}};var Xo=(0,di.A)("Table",e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:r,colorTextHeading:i,colorSplit:o,colorBorderSecondary:a,fontSize:s,padding:l,paddingXS:c,paddingSM:u,controlHeight:d,colorFillAlter:h,colorIcon:f,colorIconHover:p,opacityLoading:g,colorBgContainer:m,borderRadiusLG:v,colorFillContent:A,colorFillSecondary:b,controlInteractiveSize:y}=e,w=new Ao.q(f),_=new Ao.q(p),x=t,E=2,S=new Ao.q(b).onBackground(m).toHexString(),C=new Ao.q(A).onBackground(m).toHexString(),T=new Ao.q(h).onBackground(m).toHexString(),k=(0,ui.h1)(e,{tableFontSize:s,tableBg:m,tableRadius:v,tablePaddingVertical:l,tablePaddingHorizontal:l,tablePaddingVerticalMiddle:u,tablePaddingHorizontalMiddle:c,tablePaddingVerticalSmall:c,tablePaddingHorizontalSmall:c,tableBorderColor:a,tableHeaderTextColor:i,tableHeaderBg:T,tableFooterTextColor:i,tableFooterBg:T,tableHeaderCellSplitColor:a,tableHeaderSortBg:S,tableHeaderSortHoverBg:C,tableHeaderIconColor:w.clone().setAlpha(w.getAlpha()*g).toRgbString(),tableHeaderIconColorHover:_.clone().setAlpha(_.getAlpha()*g).toRgbString(),tableBodySortBg:T,tableFixedHeaderSortActiveBg:S,tableHeaderFilterActiveBg:A,tableFilterDropdownBg:m,tableRowHoverBg:T,tableSelectedRowBg:x,tableSelectedRowHoverBg:n,zIndexTableFixed:E,zIndexTableSticky:E+1,tableFontSizeMiddle:s,tableFontSizeSmall:s,tableSelectionColumnWidth:d,tableExpandIconBg:m,tableExpandColumnWidth:y+2*e.padding,tableExpandedRowBg:h,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:r,tableScrollThumbBgHover:i,tableScrollBg:o});return[qo(k),No(k),Yo(k),Wo(k),Oo(k),yo(k),Lo(k),To(k),Yo(k),Eo(k),$o(k),Io(k),Vo(k),_o(k),Ho(k),Qo(k),Po(k)]});const Jo=[],Zo=()=>({prefixCls:(0,Wn.WO)(),columns:(0,Wn.MY)(),rowKey:(0,Wn.tK)([String,Function]),tableLayout:(0,Wn.WO)(),rowClassName:(0,Wn.tK)([String,Function]),title:(0,Wn.Fg)(),footer:(0,Wn.Fg)(),id:(0,Wn.WO)(),showHeader:(0,Wn.HE)(),components:(0,Wn.ge)(),customRow:(0,Wn.Fg)(),customHeaderRow:(0,Wn.Fg)(),direction:(0,Wn.WO)(),expandFixed:(0,Wn.tK)([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:(0,Wn.MY)(),defaultExpandedRowKeys:(0,Wn.MY)(),expandedRowRender:(0,Wn.Fg)(),expandRowByClick:(0,Wn.HE)(),expandIcon:(0,Wn.Fg)(),onExpand:(0,Wn.Fg)(),onExpandedRowsChange:(0,Wn.Fg)(),"onUpdate:expandedRowKeys":(0,Wn.Fg)(),defaultExpandAllRows:(0,Wn.HE)(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:(0,Wn.HE)(),expandedRowClassName:(0,Wn.Fg)(),childrenColumnName:(0,Wn.WO)(),rowExpandable:(0,Wn.Fg)(),sticky:(0,Wn.tK)([Boolean,Object]),dropdownPrefixCls:String,dataSource:(0,Wn.MY)(),pagination:(0,Wn.tK)([Boolean,Object]),loading:(0,Wn.tK)([Boolean,Object]),size:(0,Wn.WO)(),bordered:(0,Wn.HE)(),locale:(0,Wn.ge)(),onChange:(0,Wn.Fg)(),onResizeColumn:(0,Wn.Fg)(),rowSelection:(0,Wn.ge)(),getPopupContainer:(0,Wn.Fg)(),scroll:(0,Wn.ge)(),sortDirections:(0,Wn.MY)(),showSorterTooltip:(0,Wn.tK)([Boolean,Object],!0),transformCellText:(0,Wn.Fg)()}),ea=(0,o.pM)({name:"InternalTable",inheritAttrs:!1,props:(0,Or.A)((0,r.A)((0,r.A)({},Zo()),{contextSlots:(0,Wn.ge)()}),{rowKey:"key"}),setup(e,t){let{attrs:n,slots:s,expose:l,emit:c}=t;(0,U.A)(!("function"===typeof e.rowKey&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),b((0,o.EW)(()=>e.contextSlots)),_({onResizeColumn:(e,t)=>{c("resizeColumn",e,t)}});const u=(0,po.A)(),h=(0,o.EW)(()=>{const t=new Set(Object.keys(u.value).filter(e=>u.value[e]));return e.columns.filter(e=>!e.responsive||e.responsive.some(e=>t.has(e)))}),{size:f,renderEmpty:p,direction:g,prefixCls:m,configProvider:v}=(0,Un.A)("table",e),[A,y]=Xo(m),w=(0,o.EW)(()=>{var t;return e.transformCellText||(null===(t=v.transformCellText)||void 0===t?void 0:t.value)}),[x]=(0,go.n)("Table",fo.A.Table,(0,d.lW)(e,"locale")),E=(0,o.EW)(()=>e.dataSource||Jo),S=(0,o.EW)(()=>v.getPrefixCls("dropdown",e.dropdownPrefixCls)),C=(0,o.EW)(()=>e.childrenColumnName||"children"),T=(0,o.EW)(()=>E.value.some(e=>null===e||void 0===e?void 0:e[C.value])?"nest":e.expandedRowRender?"row":null),k=(0,d.Kh)({body:null}),O=e=>{(0,r.A)(k,e)},M=(0,o.EW)(()=>"function"===typeof e.rowKey?e.rowKey:t=>null===t||void 0===t?void 0:t[e.rowKey]),[I]=dt(E,C,M),D={},N=function(t,n){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{pagination:o,scroll:a,onChange:s}=e,l=(0,r.A)((0,r.A)({},D),t);i&&(D.resetPagination(),l.pagination.current&&(l.pagination.current=1),o&&o.onChange&&o.onChange(1,l.pagination.pageSize)),a&&!1!==a.scrollToFirstRowOnChange&&k.body&&(0,ho.A)(0,{getContainer:()=>k.body}),null===s||void 0===s||s(l.pagination,l.filters,l.sorter,{currentDataSource:ro(On(E.value,l.sorterStates,C.value),l.filterStates),action:n})},R=(e,t)=>{N({sorter:e,sorterStates:t},"sort",!1)},[L,B,P,F]=Mn({prefixCls:m,mergedColumns:h,onSorterChange:R,sortDirections:(0,o.EW)(()=>e.sortDirections||["ascend","descend"]),tableLocale:x,showSorterTooltip:(0,d.lW)(e,"showSorterTooltip")}),$=(0,o.EW)(()=>On(E.value,B.value,C.value)),j=(e,t)=>{N({filters:e,filterStates:t},"filter",!0)},[H,Q,z]=ao({prefixCls:m,locale:x,dropdownPrefixCls:S,mergedColumns:h,onFilterChange:j,getPopupContainer:(0,d.lW)(e,"getPopupContainer")}),W=(0,o.EW)(()=>ro($.value,Q.value)),[G]=vo((0,d.lW)(e,"contextSlots")),V=(0,o.EW)(()=>{const e={},t=z.value;return Object.keys(t).forEach(n=>{null!==t[n]&&(e[n]=t[n])}),(0,r.A)((0,r.A)({},P.value),{filters:e})}),[K]=lo(V),Y=(e,t)=>{N({pagination:(0,r.A)((0,r.A)({},D.pagination),{current:e,pageSize:t})},"paginate")},[q,X]=ut((0,o.EW)(()=>W.value.length),(0,d.lW)(e,"pagination"),Y);(0,o.nT)(()=>{D.sorter=F.value,D.sorterStates=B.value,D.filters=z.value,D.filterStates=Q.value,D.pagination=!1===e.pagination?{}:ct(q.value,e.pagination),D.resetPagination=X});const J=(0,o.EW)(()=>{if(!1===e.pagination||!q.value.pageSize)return W.value;const{current:t=1,total:n,pageSize:r=lt}=q.value;return(0,U.A)(t>0,"Table","`current` should be positive number."),W.value.length<n?W.value.length>r?W.value.slice((t-1)*r,t*r):W.value:W.value.slice((t-1)*r,t*r)});(0,o.nT)(()=>{(0,o.dY)(()=>{const{total:e,pageSize:t=lt}=q.value;W.value.length<e&&W.value.length>t&&(0,U.A)(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")})},{flush:"post"});const Z=(0,o.EW)(()=>!1===e.showExpandColumn?-1:"nest"===T.value&&void 0===e.expandIconColumnIndex?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex),ee=(0,d.KR)();(0,o.wB)(()=>e.rowSelection,()=>{ee.value=e.rowSelection?(0,r.A)({},e.rowSelection):e.rowSelection},{deep:!0,immediate:!0});const[te,ne]=Jt(ee,{prefixCls:m,data:W,pageData:J,getRowKey:M,getRecordByKey:I,expandType:T,childrenColumnName:C,locale:x,getPopupContainer:(0,o.EW)(()=>e.getPopupContainer)}),re=(t,n,r)=>{let i;const{rowClassName:o}=e;return i="function"===typeof o?(0,a.A)(o(t,n,r)):(0,a.A)(o),(0,a.A)({[`${m.value}-row-selected`]:ne.value.has(M.value(t,n))},i)};l({selectedKeySet:ne});const ie=(0,o.EW)(()=>"number"===typeof e.indentSize?e.indentSize:15),oe=e=>{const t=K(te(H(L(G(e)))));return t};return()=>{var t;const{expandIcon:l=s.expandIcon||uo(x.value),pagination:c,loading:u,bordered:d}=e;let v,b,_;if(!1!==c&&(null===(t=q.value)||void 0===t?void 0:t.total)){let e;e=q.value.size?q.value.size:"small"===f.value||"middle"===f.value?"small":void 0;const t=t=>(0,o.bF)(ot.Ay,(0,i.A)((0,i.A)({},q.value),{},{class:[`${m.value}-pagination ${m.value}-pagination-${t}`,q.value.class],size:e}),null),n="rtl"===g.value?"left":"right",{position:r}=q.value;if(null!==r&&Array.isArray(r)){const e=r.find(e=>e.includes("top")),i=r.find(e=>e.includes("bottom")),o=r.every(e=>"none"===`${e}`);e||i||o||(b=t(n)),e&&(v=t(e.toLowerCase().replace("top",""))),i&&(b=t(i.toLowerCase().replace("bottom","")))}else b=t(n)}"boolean"===typeof u?_={spinning:u}:"object"===typeof u&&(_=(0,r.A)({spinning:!0},u));const S=(0,a.A)(`${m.value}-wrapper`,{[`${m.value}-wrapper-rtl`]:"rtl"===g.value},n.class,y.value),C=(0,Mt.A)(e,["columns"]);return A((0,o.bF)("div",{class:S,style:n.style},[(0,o.bF)(it.A,(0,i.A)({spinning:!1},_),{default:()=>[v,(0,o.bF)(rt,(0,i.A)((0,i.A)((0,i.A)({},n),C),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:Z.value,indentSize:ie.value,expandIcon:l,columns:h.value,direction:g.value,prefixCls:m.value,class:(0,a.A)({[`${m.value}-middle`]:"middle"===f.value,[`${m.value}-small`]:"small"===f.value,[`${m.value}-bordered`]:d,[`${m.value}-empty`]:0===E.value.length}),data:J.value,rowKey:M.value,rowClassName:re,internalHooks:tt,internalRefs:k,onUpdateInternalRefs:O,transformColumns:oe,transformCellText:w.value}),(0,r.A)((0,r.A)({},s),{emptyText:()=>{var t,n;return(null===(t=s.emptyText)||void 0===t?void 0:t.call(s))||(null===(n=e.locale)||void 0===n?void 0:n.emptyText)||p("Table")}})),b]})]))}}}),ta=(0,o.pM)({name:"ATable",inheritAttrs:!1,props:(0,Or.A)(Zo(),{rowKey:"key"}),slots:Object,setup(e,t){let{attrs:n,slots:a,expose:s}=t;const l=(0,d.KR)();return s({table:l}),()=>{var t;const s=e.columns||An(null===(t=a.default)||void 0===t?void 0:t.call(a));return(0,o.bF)(ea,(0,i.A)((0,i.A)((0,i.A)({ref:l},n),e),{},{columns:s||[],expandedRowRender:a.expandedRowRender||e.expandedRowRender,contextSlots:(0,r.A)({},a)}),a)}}});var na=ta,ra=(0,o.pM)({name:"ATableColumn",slots:Object,render(){return null}}),ia=(0,o.pM)({name:"ATableColumnGroup",slots:Object,__ANT_TABLE_COLUMN_GROUP:!0,render(){return null}}),oa=(0,o.pM)({compatConfig:{MODE:3},name:"ATableSummaryRow",setup(e,t){let{slots:n}=t;return()=>{var e;return(0,o.bF)("tr",null,[null===(e=n.default)||void 0===e?void 0:e.call(n)])}}}),aa=(0,o.pM)({name:"ATableSummaryCell",props:["index","colSpan","rowSpan","align"],setup(e,t){let{attrs:n,slots:r}=t;const a=c(),s=De();return()=>{const{index:t,colSpan:l=1,rowSpan:c,align:u}=e,{prefixCls:d,direction:h}=a,{scrollColumnIndex:f,stickyOffsets:p,flattenColumns:g}=s,m=t+l-1,v=m+1===f?l+1:l,A=$(t,t+v-1,g,p,h);return(0,o.bF)(F,(0,i.A)({class:n.class,index:t,component:"td",prefixCls:d,record:null,dataIndex:null,align:u,colSpan:v,rowSpan:c,customRender:()=>{var e;return null===(e=r.default)||void 0===e?void 0:e.call(r)}},A),null)}}});const sa=oa,la=aa,ca=(0,r.A)(Re,{Cell:la,Row:sa,name:"ATableSummary"});var ua=(0,r.A)(na,{SELECTION_ALL:Vt,SELECTION_INVERT:Kt,SELECTION_NONE:Yt,SELECTION_COLUMN:Gt,EXPAND_COLUMN:he,Column:ra,ColumnGroup:ia,Summary:ca,install:e=>(e.component(ca.name,ca),e.component(la.name,la),e.component(sa.name,sa),e.component(na.name,na),e.component(ra.name,ra),e.component(ia.name,ia),e)})},35031:function(e,t,n){"use strict";var r=n(97751),i=n(79504),o=n(38480),a=n(33717),s=n(28551),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},35061:function(e,t,n){"use strict";var r=n(27256);function i(e,t,n){"__proto__"==t&&r.A?(0,r.A)(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}t.A=i},35263:function(e){function t(e){const t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},n={className:"literal",begin:"false|true|PI|undef"},r={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),o={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},a={className:"params",begin:"\\(",end:"\\)",contains:["self",r,i,t,n]},s={begin:"[*!#%]",relevance:0},l={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[a,e.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,o,i,t,s,l]}}e.exports=t},35318:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});n(44114);function r(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}var i=r,o=n(26162),a=n(23506),s=n(1120),l=n(22676),c=n(14381),u=Object.prototype,d=u.hasOwnProperty;function h(e,t){var n=(0,a.A)(e),r=!n&&(0,o.A)(e),u=!n&&!r&&(0,s.A)(e),h=!n&&!r&&!u&&(0,c.A)(e),f=n||r||u||h,p=f?i(e.length,String):[],g=p.length;for(var m in e)!t&&!d.call(e,m)||f&&("length"==m||u&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||(0,l.A)(m,g))||p.push(m);return p}var f=h},35541:function(e,t,n){"use strict";n.d(t,{A:function(){return s},E:function(){return a}});var r=n(56768),i=n(90144);const o=Symbol("SizeContextKey"),a=()=>(0,r.WQ)(o,(0,i.KR)(void 0)),s=e=>{const t=a();return(0,r.Gt)(o,(0,r.EW)(()=>e.value||t.value)),e}},35566:function(e){function t(e){const t={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},n="(0|[1-9][\\d_]*)",r="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",i="0[bB][01_]+",o="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",a="0[xX]"+o,s="([eE][+-]?"+r+")",l="("+r+"(\\.\\d*|"+s+")|\\d+\\."+r+"|\\."+n+s+"?)",c="(0[xX]("+o+"\\."+o+"|\\.?"+o+")[pP][+-]?"+r+")",u="("+n+"|"+i+"|"+a+")",d="("+c+"|"+l+")",h="\\\\(['\"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};",f={className:"number",begin:"\\b"+u+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},p={className:"number",begin:"\\b("+d+"([fF]|L|i|[fF]i|Li)?|"+u+"(i|[fF]i|Li))",relevance:0},g={className:"string",begin:"'("+h+"|.)",end:"'",illegal:"."},m={begin:h,relevance:0},v={className:"string",begin:'"',contains:[m],end:'"[cwd]?'},A={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},b={className:"string",begin:"`",end:"`[cwd]?"},y={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},w={className:"string",begin:'q"\\{',end:'\\}"'},_={className:"meta",begin:"^#!",end:"$",relevance:5},x={className:"meta",begin:"#(line)",end:"$",relevance:5},E={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},S=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,S,y,v,A,b,w,p,f,g,_,x,E]}}e.exports=t},35610:function(e,t,n){"use strict";var r=n(91291),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},35623:function(e,t,n){"use strict";n(20456)},35678:function(e,t,n){"use strict";var r=n(44678),i=n(62380);t.A=(0,r.GU)(i.Ay)},35753:function(e,t,n){var r,i,o;n(79577),n(41549),n(49797),n(49631),n(35623),n(64979),function(n,a){i=[],r=a,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o)}(0,function(){return function e(t,n,r){var i,o,a=window,s="application/octet-stream",l=r||s,c=t,u=!n&&!r&&c,d=document.createElement("a"),h=function(e){return String(e)},f=a.Blob||a.MozBlob||a.WebKitBlob||h,p=n||"download";if(f=f.call?f.bind(a):Blob,"true"===String(this)&&(c=[c,l],l=c[0],c=c[1]),u&&u.length<2048&&(p=u.split("/").pop().split("?")[0],d.href=u,-1!==d.href.indexOf(u))){var g=new XMLHttpRequest;return g.open("GET",u,!0),g.responseType="blob",g.onload=function(t){e(t.target.response,p,s)},setTimeout(function(){g.send()},0),g}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(c)){if(!(c.length>2096103.424&&f!==h))return navigator.msSaveBlob?navigator.msSaveBlob(b(c),p):y(c);c=b(c),l=c.type||s}else if(/([\x80-\xff])/.test(c)){var m=0,v=new Uint8Array(c.length),A=v.length;for(m;m<A;++m)v[m]=c.charCodeAt(m);c=new f([v],{type:l})}function b(e){var t=e.split(/[:;,]/),n=t[1],r="base64"==t[2]?atob:decodeURIComponent,i=r(t.pop()),o=i.length,a=0,s=new Uint8Array(o);for(a;a<o;++a)s[a]=i.charCodeAt(a);return new f([s],{type:n})}function y(e,t){if("download"in d)return d.href=e,d.setAttribute("download",p),d.className="download-js-link",d.innerHTML="downloading...",d.style.display="none",document.body.appendChild(d),setTimeout(function(){d.click(),document.body.removeChild(d),!0===t&&setTimeout(function(){a.URL.revokeObjectURL(d.href)},250)},66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,s)),window.open(e)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=e),!0;var n=document.createElement("iframe");document.body.appendChild(n),!t&&/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,s)),n.src=e,setTimeout(function(){document.body.removeChild(n)},333)}if(i=c instanceof f?c:new f([c],{type:l}),navigator.msSaveBlob)return navigator.msSaveBlob(i,p);if(a.URL)y(a.URL.createObjectURL(i),!0);else{if("string"===typeof i||i.constructor===h)try{return y("data:"+l+";base64,"+a.btoa(i))}catch(w){return y("data:"+l+","+encodeURIComponent(i))}o=new FileReader,o.onload=function(e){y(this.result)},o.readAsDataURL(i)}return!0}})},35757:function(e,t,n){"use strict";n.d(t,{A:function(){return T}});var r=n(41034),i=n(56768),o=n(90144);function a(e,t,n){var r,i=n||{},o=i.noTrailing,a=void 0!==o&&o,s=i.noLeading,l=void 0!==s&&s,c=i.debounceMode,u=void 0===c?void 0:c,d=!1,h=0;function f(){r&&clearTimeout(r)}function p(e){var t=e||{},n=t.upcomingOnly,r=void 0!==n&&n;f(),d=!r}function g(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var s=this,c=Date.now()-h;function p(){h=Date.now(),t.apply(s,i)}function g(){r=void 0}d||(l||!u||r||p(),f(),void 0===u&&c>e?l?(h=Date.now(),a||(r=setTimeout(u?g:p,e))):p():!0!==a&&(r=setTimeout(u?g:p,void 0===u?e-c:e)))}return g.cancel=p,g}function s(e,t,n){var r=n||{},i=r.atBegin,o=void 0!==i&&i;return a(e,t,{debounceMode:!1!==o})}var l=n(81425),c=n(44832),u=n(73429),d=n(51137),h=n(58085),f=n(90112),p=n(9519),g=n(36068);const m=new h.A("antSpinMove",{to:{opacity:1}}),v=new h.A("antRotate",{to:{transform:"rotate(405deg)"}}),A=e=>({[`${e.componentCls}`]:(0,d.A)((0,d.A)({},(0,g.dF)(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSize/2-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSizeSM/2-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeLG/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-e.spinDotSizeLG/2-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none",["&::after"]:{opacity:.4,pointerEvents:"auto"}}},["&-tip"]:{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:m,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:v,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})});var b=(0,f.A)("Spin",e=>{const t=(0,p.h1)(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:.35*e.controlHeightLG,spinDotSizeLG:e.controlHeight});return[A(t)]},{contentHeight:400}),y=n(60674),w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const _=()=>({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:l.A.any,delay:Number,indicator:l.A.any});let x=null;function E(e,t){return!!e&&!!t&&!isNaN(Number(t))}function S(e){const t=e.indicator;x="function"===typeof t?t:()=>(0,i.bF)(t,null,null)}var C=(0,i.pM)({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:(0,u.A)(_(),{size:"default",spinning:!0,wrapperClassName:""}),setup(e,t){let{attrs:n,slots:a}=t;const{prefixCls:l,size:u,direction:d}=(0,y.A)("spin",e),[h,f]=b(l),p=(0,o.IJ)(e.spinning&&!E(e.spinning,e.delay));let g;return(0,i.wB)([()=>e.spinning,()=>e.delay],()=>{null===g||void 0===g||g.cancel(),g=s(e.delay,()=>{p.value=e.spinning}),null===g||void 0===g||g()},{immediate:!0,flush:"post"}),(0,i.xo)(()=>{null===g||void 0===g||g.cancel()}),()=>{var t,o;const{class:s}=n,g=w(n,["class"]),{tip:m=(null===(t=a.tip)||void 0===t?void 0:t.call(a))}=e,v=null===(o=a.default)||void 0===o?void 0:o.call(a),A={[f.value]:!0,[l.value]:!0,[`${l.value}-sm`]:"small"===u.value,[`${l.value}-lg`]:"large"===u.value,[`${l.value}-spinning`]:p.value,[`${l.value}-show-text`]:!!m,[`${l.value}-rtl`]:"rtl"===d.value,[s]:!!s};function b(t){const n=`${t}-dot`;let r=(0,c.rU)(a,e,"indicator");return null===r?null:(Array.isArray(r)&&(r=1===r.length?r[0]:r),(0,i.vv)(r)?(0,i.E3)(r,{class:n}):x&&(0,i.vv)(x())?(0,i.E3)(x(),{class:n}):(0,i.bF)("span",{class:`${n} ${t}-dot-spin`},[(0,i.bF)("i",{class:`${t}-dot-item`},null),(0,i.bF)("i",{class:`${t}-dot-item`},null),(0,i.bF)("i",{class:`${t}-dot-item`},null),(0,i.bF)("i",{class:`${t}-dot-item`},null)]))}const y=(0,i.bF)("div",(0,r.A)((0,r.A)({},g),{},{class:A,"aria-live":"polite","aria-busy":p.value}),[b(l.value),m?(0,i.bF)("div",{class:`${l.value}-text`},[m]):null]);if(v&&(0,c.Gk)(v).length){const t={[`${l.value}-container`]:!0,[`${l.value}-blur`]:p.value};return h((0,i.bF)("div",{class:[`${l.value}-nested-loading`,e.wrapperClassName,f.value]},[p.value&&(0,i.bF)("div",{key:"loading"},[y]),(0,i.bF)("div",{class:t,key:"container"},[v])]))}return h(y)}}});C.setDefaultIndicator=S,C.install=function(e){return e.component(C.name,C),e};var T=C},35867:function(e,t,n){"use strict";function r(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}n.d(t,{A:function(){return s}});var i=r,o=Math.max;function a(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){var r=arguments,a=-1,s=o(r.length-t,0),l=Array(s);while(++a<s)l[a]=r[t+a];a=-1;var c=Array(t+1);while(++a<t)c[a]=r[a];return c[t]=n(l),i(e,this,c)}}var s=a},35917:function(e,t,n){"use strict";var r=n(43724),i=n(79039),o=n(4055);e.exports=!r&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},36068:function(e,t,n){"use strict";n.d(t,{K8:function(){return d},L9:function(){return i},Nk:function(){return a},av:function(){return l},dF:function(){return o},jk:function(){return u},t6:function(){return s},vj:function(){return c}});var r=n(51137);const i={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},o=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),a=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),s=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),l=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},["&:active,\n  &:hover"]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),c=(e,t)=>{const{fontFamily:n,fontSize:r}=e,i=`[class^="${t}"], [class*=" ${t}"]`;return{[i]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},u=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),d=e=>({"&:focus-visible":(0,r.A)({},u(e))})},36122:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});n(44114),n(18111),n(22489),n(20116),n(7588),n(61701);var r=n(90144),i=n(56768);function o(e,t){const n=(0,r.KR)(e);function i(e){const r="function"==typeof e?e(n.value):e;r!==n.value&&t(r,n.value),n.value=r}return[n,i]}var a=n(45482);function s(e){return Array.isArray(e)?e:[e]}function l(e){const{defaultMessages:t,agent:n,requestFallback:l,requestPlaceholder:c,parser:u,transformMessage:d,transformStream:h,resolveAbortController:f}=e,p=(0,r.KR)(0),g=(0,i.EW)(()=>(t||[]).map((e,t)=>({id:`default_${t}`,status:"local",...e}))),[m,v]=o(g.value,()=>{}),A=(e,t)=>{const n={id:`msg_${p.value}`,message:e,status:t};return p.value+=1,n},b=(0,i.EW)(()=>{const e=[];return m.value.forEach(t=>{const n=u?u(t.message):t.message,r=s(n);r.forEach((n,i)=>{let o=t.id;r.length>1&&(o=`${o}_${i}`),e.push({id:o,message:n,status:t.status})})}),e}),y=e=>e.filter(e=>"loading"!==e.status&&"error"!==e.status).map(e=>e.message),w=()=>y(m.value),_=e=>{const{chunk:t,chunks:n,originMessage:r}=e;if("function"==typeof d)return d(e);if(t)return t;if(Array.isArray(n)){const e=(null==n?void 0:n.length)>0?null==n?void 0:n[(null==n?void 0:n.length)-1]:void 0;return r||e}return n};return{onRequest:(0,a.D)(e=>{if(!n)throw new Error("The agent parameter is required when using the onRequest method in an agent generated by useXAgent.");let t,r=null,i={};if(e&&"object"==typeof e&&"message"in e){const{message:n,...r}=e;t=n,i=r}else t=e;v(e=>{let n=[...e,A(t,"local")];if(c){let e;e="function"==typeof c?c(t,{messages:y(n)}):c;const i=A(e,"loading");r=i.id,n=[...n,i]}return n});let o=null;const a=(e,t,n)=>{let i=m.value.find(e=>e.id===o);if(i)v(r=>r.map(r=>{if(r.id===o){const i=_({originMessage:r.message,chunk:t,chunks:n,status:e});return{...r,message:i,status:e}}return r}));else{const a=_({chunk:t,status:e,chunks:n});i=A(a,e),v(e=>[...e.filter(e=>e.id!==r),i]),o=i.id}return i};n.request({message:t,messages:w(),...i},{onUpdate:e=>{a("loading",e,[])},onSuccess:e=>{a("success",void 0,e)},onError:async e=>{if(l){let n;n="function"==typeof l?await l(t,{error:e,messages:w()}):l,v(e=>[...e.filter(e=>e.id!==r&&e.id!==o),A(n,"error")])}else v(e=>e.filter(e=>e.id!==r&&e.id!==o))},onStream:e=>{null==f||f(e)}},h)}),messages:m,parsedMessages:b,setMessages:v}}},36306:function(e){function t(e){const t="[ \\t\\f]*",n="[ \\t\\f]+",r=t+"[:=]"+t,i=n,o="("+r+"|"+i+")",a="([^\\\\:= \\t\\f\\n]|\\\\.)+",s={end:o,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:a+r},{begin:a+i}],contains:[{className:"attr",begin:a,endsParent:!0}],starts:s},{className:"attr",begin:a+t+"$"}]}}e.exports=t},36361:function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}})},36409:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},36438:function(e){const t=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],i=[...n,...r],o=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),l=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function c(e){const n=t(e),r="and or not only",c={className:"variable",begin:"\\$"+e.IDENT_RE},u=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],d="(?=[.\\s\\n[:,(])",h=["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"];return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+h.join("|")+")",contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+d,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+d,className:"selector-id"},{begin:"\\b("+i.join("|")+")"+d,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+a.join("|")+")"+d},{className:"selector-pseudo",begin:"&?:(:)?("+s.join("|")+")"+d},n.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:r,attribute:o.join(" ")},contains:[n.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+u.join("|")+"))\\b"},c,n.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[n.HEXCOLOR,c,e.APOS_STRING_MODE,n.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE]}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+l.join("|")+")\\b",starts:{end:/;|$/,contains:[n.HEXCOLOR,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,n.CSS_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n.IMPORTANT,n.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},n.FUNCTION_DISPATCH]}}e.exports=c},36504:function(e,t,n){"use strict";n.d(t,{Ay:function(){return G},cr:function(){return z},Vm:function(){return H}});var r=n(51137),i=n(56768),o=n(90144),a=n(5432),s=n(6448),l=n(98684),c=n(44678);const u="internalMark",d=(0,i.pM)({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;(0,l.Ay)(e.ANT_MARK__===u,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");const a=(0,o.Kh)({antLocale:(0,r.A)((0,r.A)({},e.locale),{exist:!0}),ANT_MARK__:u});return(0,i.Gt)("localeData",a),(0,i.wB)(()=>e.locale,e=>{(0,s.L)(e&&e.Modal),a.antLocale=(0,r.A)((0,r.A)({},e),{exist:!0})},{immediate:!0}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});d.install=function(e){return e.component(d.name,d),e};var h=(0,c.GU)(d),f=h,p=n(22622),g=n(17694),m=n(75108),v=(n(18111),n(7588),n(61701),n(50223)),A=n(61935),b=n(39258),y=n(45887);const w=`-ant-${Date.now()}-${Math.random()}`;function _(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null===t||void 0===t?void 0:t(n))||n,n.toRgbString()},i=(e,t)=>{const i=new v.q(e),o=(0,A.cM)(i.toRgbString());n[`${t}-color`]=r(i),n[`${t}-color-disabled`]=o[1],n[`${t}-color-hover`]=o[4],n[`${t}-color-active`]=o[6],n[`${t}-color-outline`]=i.clone().setAlpha(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=o[0],n[`${t}-color-deprecated-border`]=o[2]};if(t.primaryColor){i(t.primaryColor,"primary");const e=new v.q(t.primaryColor),o=(0,A.cM)(e.toRgbString());o.forEach((e,t)=>{n[`primary-${t+1}`]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setAlpha(.12*e.getAlpha()));const a=new v.q(o[0]);n["primary-color-active-deprecated-f-30"]=r(a,e=>e.setAlpha(.3*e.getAlpha())),n["primary-color-active-deprecated-d-02"]=r(a,e=>e.darken(2))}t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info");const o=Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`);return`\n  :root {\n    ${o.join("\n")}\n  }\n  `.trim()}function x(e,t){const n=_(e,t);(0,y.A)()?(0,b.BD)(n,`${w}-dynamic-theme`):(0,l.Ay)(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}var E=n(32342),S=n(16995),C=n(36068),T=n(10707);const k=e=>{const[t,n]=(0,T.rd)();return(0,S.Ay)((0,i.EW)(()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]})),()=>[{[`.${e.value}`]:(0,r.A)((0,r.A)({},(0,C.Nk)()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}])};var O=k;function M(e,t){const n=(0,i.EW)(()=>(null===e||void 0===e?void 0:e.value)||{}),o=(0,i.EW)(()=>!1!==n.value.inherit&&(null===t||void 0===t?void 0:t.value)?t.value:T.sb),a=(0,i.EW)(()=>{if(!(null===e||void 0===e?void 0:e.value))return null===t||void 0===t?void 0:t.value;const i=(0,r.A)({},o.value.components);return Object.keys(e.value.components||{}).forEach(t=>{i[t]=(0,r.A)((0,r.A)({},i[t]),e.value.components[t])}),(0,r.A)((0,r.A)((0,r.A)({},o.value),n.value),{token:(0,r.A)((0,r.A)({},o.value.token),n.value.token),components:i})});return a}var I=n(10734),D=n(99078),N=n(35541),R=n(93758),L=n(24107),B=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const P="ant";function F(){return H.prefixCls||P}function $(){return H.iconPrefixCls||D.pM}const j=(0,o.Kh)({}),H=(0,o.Kh)({});let U;(0,i.nT)(()=>{(0,r.A)(H,j),H.prefixCls=F(),H.iconPrefixCls=$(),H.getPrefixCls=(e,t)=>t||(e?`${H.prefixCls}-${e}`:H.prefixCls),H.getRootPrefixCls=()=>H.prefixCls?H.prefixCls:F()});const Q=e=>{U&&U(),U=(0,i.nT)(()=>{(0,r.A)(j,(0,o.Kh)(e)),(0,r.A)(H,(0,o.Kh)(e))}),e.theme&&x(F(),e.theme)},z=()=>({getPrefixCls:(e,t)=>t||(e?`${F()}-${e}`:F()),getIconPrefixCls:$,getRootPrefixCls:()=>H.prefixCls?H.prefixCls:F()}),W=(0,i.pM)({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:(0,D.yA)(),setup(e,t){let{slots:n}=t;const o=(0,D.OQ)(),s=(t,n)=>{const{prefixCls:r="ant"}=e;if(n)return n;const i=r||o.getPrefixCls("");return t?`${i}-${t}`:i},l=(0,i.EW)(()=>e.iconPrefixCls||o.iconPrefixCls.value||D.pM),c=(0,i.EW)(()=>l.value!==o.iconPrefixCls.value),d=(0,i.EW)(()=>{var t;return e.csp||(null===(t=o.csp)||void 0===t?void 0:t.value)}),h=O(l),v=M((0,i.EW)(()=>e.theme),(0,i.EW)(()=>{var e;return null===(e=o.theme)||void 0===e?void 0:e.value})),A=t=>{const r=e.renderEmpty||n.renderEmpty||o.renderEmpty||a.A;return r(t)},b=(0,i.EW)(()=>{var t,n;return null!==(t=e.autoInsertSpaceInButton)&&void 0!==t?t:null===(n=o.autoInsertSpaceInButton)||void 0===n?void 0:n.value}),y=(0,i.EW)(()=>{var t;return e.locale||(null===(t=o.locale)||void 0===t?void 0:t.value)});(0,i.wB)(y,()=>{j.locale=y.value},{immediate:!0});const w=(0,i.EW)(()=>{var t;return e.direction||(null===(t=o.direction)||void 0===t?void 0:t.value)}),_=(0,i.EW)(()=>{var t,n;return null!==(t=e.space)&&void 0!==t?t:null===(n=o.space)||void 0===n?void 0:n.value}),x=(0,i.EW)(()=>{var t,n;return null!==(t=e.virtual)&&void 0!==t?t:null===(n=o.virtual)||void 0===n?void 0:n.value}),S=(0,i.EW)(()=>{var t,n;return null!==(t=e.dropdownMatchSelectWidth)&&void 0!==t?t:null===(n=o.dropdownMatchSelectWidth)||void 0===n?void 0:n.value}),C=(0,i.EW)(()=>{var t;return void 0!==e.getTargetContainer?e.getTargetContainer:null===(t=o.getTargetContainer)||void 0===t?void 0:t.value}),k=(0,i.EW)(()=>{var t;return void 0!==e.getPopupContainer?e.getPopupContainer:null===(t=o.getPopupContainer)||void 0===t?void 0:t.value}),P=(0,i.EW)(()=>{var t;return void 0!==e.pageHeader?e.pageHeader:null===(t=o.pageHeader)||void 0===t?void 0:t.value}),F=(0,i.EW)(()=>{var t;return void 0!==e.input?e.input:null===(t=o.input)||void 0===t?void 0:t.value}),$=(0,i.EW)(()=>{var t;return void 0!==e.pagination?e.pagination:null===(t=o.pagination)||void 0===t?void 0:t.value}),H=(0,i.EW)(()=>{var t;return void 0!==e.form?e.form:null===(t=o.form)||void 0===t?void 0:t.value}),U=(0,i.EW)(()=>{var t;return void 0!==e.select?e.select:null===(t=o.select)||void 0===t?void 0:t.value}),Q=(0,i.EW)(()=>e.componentSize),z=(0,i.EW)(()=>e.componentDisabled),W=(0,i.EW)(()=>{var t,n;return null!==(t=e.wave)&&void 0!==t?t:null===(n=o.wave)||void 0===n?void 0:n.value}),G={csp:d,autoInsertSpaceInButton:b,locale:y,direction:w,space:_,virtual:x,dropdownMatchSelectWidth:S,getPrefixCls:s,iconPrefixCls:l,theme:(0,i.EW)(()=>{var e,t;return null!==(e=v.value)&&void 0!==e?e:null===(t=o.theme)||void 0===t?void 0:t.value}),renderEmpty:A,getTargetContainer:C,getPopupContainer:k,pageHeader:P,input:F,pagination:$,form:H,select:U,componentSize:Q,componentDisabled:z,transformCellText:(0,i.EW)(()=>e.transformCellText),wave:W},V=(0,i.EW)(()=>{const e=v.value||{},{algorithm:t,token:n}=e,i=B(e,["algorithm","token"]),o=t&&(!Array.isArray(t)||t.length>0)?(0,L.A)(t):void 0;return(0,r.A)((0,r.A)({},i),{theme:o,token:(0,r.A)((0,r.A)({},I.A),n)})}),K=(0,i.EW)(()=>{var t,n;let i={};return y.value&&(i=(null===(t=y.value.Form)||void 0===t?void 0:t.defaultValidateMessages)||(null===(n=E.A.Form)||void 0===n?void 0:n.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(i=(0,r.A)((0,r.A)({},i),e.form.validateMessages)),i});(0,D.GY)(G),(0,D.AR)({validateMessages:K}),(0,N.A)(Q),(0,R.Z)(z);const Y=t=>{var r,o;let a=c.value?h(null===(r=n.default)||void 0===r?void 0:r.call(n)):null===(o=n.default)||void 0===o?void 0:o.call(n);if(e.theme){const e=function(){return a}();a=(0,i.bF)(T.n5,{value:V.value},{default:()=>[e]})}return(0,i.bF)(f,{locale:y.value||t,ANT_MARK__:u},{default:()=>[a]})};return(0,i.nT)(()=>{w.value&&(g.Ay.config({rtl:"rtl"===w.value}),m.A.config({rtl:"rtl"===w.value}))}),()=>(0,i.bF)(p.A,{children:(e,t,n)=>Y(n)},null)}});W.config=Q,W.install=function(e){e.component(W.name,W)};var G=W},36590:function(e,t,n){"use strict";n.d(t,{n:function(){return s}});var r=n(51137),i=n(56768),o=n(90144),a=n(32342);function s(e,t,n){const s=(0,i.WQ)("localeData",{}),l=(0,i.EW)(()=>{const{antLocale:i}=s,l=(0,o.R1)(t)||a.A[e||"global"],c=e&&i?i[e]:{};return(0,r.A)((0,r.A)((0,r.A)({},"function"===typeof l?l():l),c||{}),(0,o.R1)(n)||{})});return[l]}t.A=(0,i.pM)({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:n}=t;const o=(0,i.WQ)("localeData",{}),s=(0,i.EW)(()=>{const{componentName:t="global",defaultLocale:n}=e,i=n||a.A[t||"global"],{antLocale:s}=o,l=t&&s?s[t]:{};return(0,r.A)((0,r.A)({},"function"===typeof i?i():i),l||{})}),l=(0,i.EW)(()=>{const{antLocale:e}=o,t=e&&e.locale;return e&&e.exist&&!t?a.A.locale:t});return()=>{const t=e.children||n.default,{antLocale:r}=o;return null===t||void 0===t?void 0:t(s.value,l.value,r)}}})},36824:function(e,t,n){"use strict";n.d(t,{xI:function(){return V}});var r=n(23772);n(44114),n(18111),n(22489),n(7588),n(61701),n(13579),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698);function i(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let o=i();function a(e){o=e}const s=/[&<>"']/,l=new RegExp(s.source,"g"),c=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,u=new RegExp(c.source,"g"),d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},h=e=>d[e];function f(e,t){if(t){if(s.test(e))return e.replace(l,h)}else if(c.test(e))return e.replace(u,h);return e}const p=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function g(e){return e.replace(p,(e,t)=>(t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const m=/(^|[^\[])\^/g;function v(e,t){e="string"===typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=r.source||r,r=r.replace(m,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const A=/[^\w:]/g,b=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function y(e,t,n){if(e){let e;try{e=decodeURIComponent(g(n)).replace(A,"").toLowerCase()}catch(r){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!b.test(n)&&(n=S(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(r){return null}return n}const w={},_=/^[^:]+:\/*[^/]*$/,x=/^([^:]+:)[\s\S]*$/,E=/^([^:]+:\/*[^/]*)[\s\S]*$/;function S(e,t){w[" "+e]||(_.test(e)?w[" "+e]=e+"/":w[" "+e]=k(e,"/",!0)),e=w[" "+e];const n=-1===e.indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(x,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(E,"$1")+t:e+t}const C={exec:function(){}};function T(e,t){const n=e.replace(/\|/g,(e,t,n)=>{let r=!1,i=t;while(--i>=0&&"\\"===n[i])r=!r;return r?"|":" |"}),r=n.split(/ \|/);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>t)r.splice(t);else while(r.length<t)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(/\\\|/g,"|");return r}function k(e,t,n){const r=e.length;if(0===r)return"";let i=0;while(i<r){const o=e.charAt(r-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.slice(0,r-i)}function O(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,i=0;for(;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return-1}function M(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function I(e,t){if(t<1)return"";let n="";while(t>1)1&t&&(n+=e),t>>=1,e+=e;return n+e}function D(e,t,n,r){const i=t.href,o=t.title?f(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,e}return{type:"image",raw:n,href:i,title:o,text:f(a)}}function N(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map(e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e}).join("\n")}class R{constructor(e){this.options=e||o}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:k(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=N(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=k(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:r,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,i,o,a,s,l,c,u,d,h,f,p=t[1].trim();const g=p.length>1,m={type:"list",raw:"",ordered:g,start:g?+p.slice(0,-1):"",loose:!1,items:[]};p=g?`\\d{1,9}\\${p.slice(-1)}`:`\\${p}`,this.options.pedantic&&(p=g?p:"[*+-]");const v=new RegExp(`^( {0,3}${p})((?:[\t ][^\\n]*)?(?:\\n|$))`);while(e){if(f=!1,!(t=v.exec(e)))break;if(this.rules.block.hr.test(e))break;if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0].replace(/^\t+/,e=>" ".repeat(3*e.length)),u=e.split("\n",1)[0],this.options.pedantic?(o=2,h=c.trimLeft()):(o=t[2].search(/[^ ]/),o=o>4?1:o,h=c.slice(o),o+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),f=!0),!f){const t=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),i=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),a=new RegExp(`^ {0,${Math.min(3,o-1)}}#`);while(e){if(d=e.split("\n",1)[0],u=d,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),i.test(u))break;if(a.test(u))break;if(t.test(u))break;if(r.test(e))break;if(u.search(/[^ ]/)>=o||!u.trim())h+="\n"+u.slice(o);else{if(s)break;if(c.search(/[^ ]/)>=4)break;if(i.test(c))break;if(a.test(c))break;if(r.test(c))break;h+="\n"+u}s||u.trim()||(s=!0),n+=d+"\n",e=e.substring(d.length+1),c=u.slice(o)}}m.loose||(l?m.loose=!0:/\n *\n *$/.test(n)&&(l=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(h),r&&(i="[ ] "!==r[0],h=h.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!r,checked:i,loose:!1,text:h}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=h.trimRight(),m.raw=m.raw.trimRight();const A=m.items.length;for(a=0;a<A;a++)if(this.lexer.state.top=!1,m.items[a].tokens=this.lexer.blockTokens(m.items[a].text,[]),!m.loose){const e=m.items[a].tokens.filter(e=>"space"===e.type),t=e.length>0&&e.some(e=>/\n.*\n/.test(e.raw));m.loose=t}if(m.loose)for(a=0;a<A;a++)m.items[a].loose=!0;return m}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){const n=this.options.sanitizer?this.options.sanitizer(t[0]):f(t[0]);e.type="paragraph",e.text=n,e.tokens=this.lexer.inline(n)}return e}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:T(t[1]).map(e=>({text:e})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,i,o,a=e.align.length;for(n=0;n<a;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(a=e.rows.length,n=0;n<a;n++)e.rows[n]=T(e.rows[n],e.header.length).map(e=>({text:e}));for(a=e.header.length,r=0;r<a;r++)e.header[r].tokens=this.lexer.inline(e.header[r].text);for(a=e.rows.length,r=0;r<a;r++)for(o=e.rows[r],i=0;i<o.length;i++)o[i].tokens=this.lexer.inline(o[i].text);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:f(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):f(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=k(e.slice(0,-1),"\\");if((e.length-t.length)%2===0)return}else{const e=O(t[2],"()");if(e>-1){const n=0===t[0].indexOf("!")?5:4,r=n+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),D(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return D(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let i,o,a=n,s=0;const l="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;l.lastIndex=0,t=t.slice(-1*e.length+n);while(null!=(r=l.exec(t))){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(o=i.length,r[3]||r[4]){a+=o;continue}if((r[5]||r[6])&&n%3&&!((n+o)%3)){s+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a+s);const t=e.slice(0,n+r.index+(r[0].length-i.length)+o);if(Math.min(n,o)%2){const e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}const l=t.slice(2,-2);return{type:"strong",raw:t,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=f(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=f(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=f(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=f(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=f(n[0]),r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):f(n[0]):n[0]:f(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const L={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:C,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};L.def=v(L.def).replace("label",L._label).replace("title",L._title).getRegex(),L.bullet=/(?:[*+-]|\d{1,9}[.)])/,L.listItemStart=v(/^( *)(bull) */).replace("bull",L.bullet).getRegex(),L.list=v(L.list).replace(/bull/g,L.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+L.def.source+")").getRegex(),L._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",L._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,L.html=v(L.html,"i").replace("comment",L._comment).replace("tag",L._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),L.paragraph=v(L._paragraph).replace("hr",L.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L._tag).getRegex(),L.blockquote=v(L.blockquote).replace("paragraph",L.paragraph).getRegex(),L.normal={...L},L.gfm={...L.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},L.gfm.table=v(L.gfm.table).replace("hr",L.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L._tag).getRegex(),L.gfm.paragraph=v(L._paragraph).replace("hr",L.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",L.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",L._tag).getRegex(),L.pedantic={...L.normal,html:v("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",L._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:C,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:v(L.normal._paragraph).replace("hr",L.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",L.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const B={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:C,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:C,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function P(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function F(e){let t,n,r="";const i=e.length;for(t=0;t<i;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}B._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",B.punctuation=v(B.punctuation).replace(/punctuation/g,B._punctuation).getRegex(),B.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,B.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,B._comment=v(L._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),B.emStrong.lDelim=v(B.emStrong.lDelim).replace(/punct/g,B._punctuation).getRegex(),B.emStrong.rDelimAst=v(B.emStrong.rDelimAst,"g").replace(/punct/g,B._punctuation).getRegex(),B.emStrong.rDelimUnd=v(B.emStrong.rDelimUnd,"g").replace(/punct/g,B._punctuation).getRegex(),B._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,B._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,B._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,B.autolink=v(B.autolink).replace("scheme",B._scheme).replace("email",B._email).getRegex(),B._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,B.tag=v(B.tag).replace("comment",B._comment).replace("attribute",B._attribute).getRegex(),B._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,B._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,B._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,B.link=v(B.link).replace("label",B._label).replace("href",B._href).replace("title",B._title).getRegex(),B.reflink=v(B.reflink).replace("label",B._label).replace("ref",L._label).getRegex(),B.nolink=v(B.nolink).replace("ref",L._label).getRegex(),B.reflinkSearch=v(B.reflinkSearch,"g").replace("reflink",B.reflink).replace("nolink",B.nolink).getRegex(),B.normal={...B},B.pedantic={...B.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:v(/^!?\[(label)\]\((.*?)\)/).replace("label",B._label).getRegex(),reflink:v(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",B._label).getRegex()},B.gfm={...B.normal,escape:v(B.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},B.gfm.url=v(B.gfm.url,"i").replace("email",B.gfm._extended_email).getRegex(),B.breaks={...B.gfm,br:v(B.br).replace("{2,}","*").getRegex(),text:v(B.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class ${constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||o,this.options.tokenizer=this.options.tokenizer||new R,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:L.normal,inline:B.normal};this.options.pedantic?(t.block=L.pedantic,t.inline=B.pedantic):this.options.gfm&&(t.block=L.gfm,this.options.breaks?t.inline=B.breaks:t.inline=B.gfm),this.tokenizer.rules=t}static get rules(){return{block:L,inline:B}}static lex(e,t){const n=new $(t);return n.lex(e)}static lexInline(e,t){const n=new $(t);return n.inlineTokens(e)}lex(e){let t;e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);while(t=this.inlineQueue.shift())this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,r,i,o;e=this.options.pedantic?e.replace(/\t/g,"    ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(e,t,n)=>t+"    ".repeat(n.length));while(e)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(i=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach(function(e){r=e.call({lexer:this},n),"number"===typeof r&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i)))r=t[t.length-1],o&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),o=i.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r,i,o,a,s,l=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)while(null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(l)))e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+I("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}while(null!=(o=this.tokenizer.rules.inline.blockSkip.exec(l)))l=l.slice(0,o.index)+"["+I("a",o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);while(null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(l)))l=l.slice(0,o.index+o[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;while(e)if(a||(s=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,l,s))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,F))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,F))){if(i=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach(function(e){r=e.call({lexer:this},n),"number"===typeof r&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i,P))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),a=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class j{constructor(e){this.options=e||o}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+f(r)+'">'+(n?e:f(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:f(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e){return e}heading(e,t,n,r){if(this.options.headerIds){const i=this.options.headerPrefix+r.slug(n);return`<h${t} id="${i}">${e}</h${t}>\n`}return`<h${t}>${e}</h${t}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul",i=t&&1!==n?' start="'+n+'"':"";return"<"+r+i+">\n"+e+"</"+r+">\n"}listitem(e){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const n=t.header?"th":"td",r=t.align?`<${n} align="${t.align}">`:`<${n}>`;return r+e+`</${n}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){if(e=y(this.options.sanitize,this.options.baseUrl,e),null===e)return n;let r='<a href="'+e+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(e=y(this.options.sanitize,this.options.baseUrl,e),null===e)return n;let r=`<img src="${e}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=this.options.xhtml?"/>":">",r}text(e){return e}}class H{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class U{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class Q{constructor(e){this.options=e||o,this.options.renderer=this.options.renderer||new j,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new H,this.slugger=new U}static parse(e,t){const n=new Q(t);return n.parse(e)}static parseInline(e,t){const n=new Q(t);return n.parseInline(e)}parse(e,t=!0){let n,r,i,o,a,s,l,c,u,d,h,f,p,m,v,A,b,y,w,_="";const x=e.length;for(n=0;n<x;n++)if(d=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type]&&(w=this.options.extensions.renderers[d.type].call({parser:this},d),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type)))_+=w||"";else switch(d.type){case"space":continue;case"hr":_+=this.renderer.hr();continue;case"heading":_+=this.renderer.heading(this.parseInline(d.tokens),d.depth,g(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":_+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(c="",l="",o=d.header.length,r=0;r<o;r++)l+=this.renderer.tablecell(this.parseInline(d.header[r].tokens),{header:!0,align:d.align[r]});for(c+=this.renderer.tablerow(l),u="",o=d.rows.length,r=0;r<o;r++){for(s=d.rows[r],l="",a=s.length,i=0;i<a;i++)l+=this.renderer.tablecell(this.parseInline(s[i].tokens),{header:!1,align:d.align[i]});u+=this.renderer.tablerow(l)}_+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(d.tokens),_+=this.renderer.blockquote(u);continue;case"list":for(h=d.ordered,f=d.start,p=d.loose,o=d.items.length,u="",r=0;r<o;r++)v=d.items[r],A=v.checked,b=v.task,m="",v.task&&(y=this.renderer.checkbox(A),p?v.tokens.length>0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=y+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=y+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:y}):m+=y),m+=this.parse(v.tokens,p),u+=this.renderer.listitem(m,b,A);_+=this.renderer.list(u,h,f);continue;case"html":_+=this.renderer.html(d.text);continue;case"paragraph":_+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":u=d.tokens?this.parseInline(d.tokens):d.text;while(n+1<x&&"text"===e[n+1].type)d=e[++n],u+="\n"+(d.tokens?this.parseInline(d.tokens):d.text);_+=t?this.renderer.paragraph(u):u;continue;default:{const e='Token with "'+d.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return _}parseInline(e,t){t=t||this.renderer;let n,r,i,o="";const a=e.length;for(n=0;n<a;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(i=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==i||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))o+=i||"";else switch(r.type){case"escape":o+=t.text(r.text);break;case"html":o+=t.html(r.text);break;case"link":o+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":o+=t.image(r.href,r.title,r.text);break;case"strong":o+=t.strong(this.parseInline(r.tokens,t));break;case"em":o+=t.em(this.parseInline(r.tokens,t));break;case"codespan":o+=t.codespan(r.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(r.tokens,t));break;case"text":o+=t.text(r.text);break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return o}}class z{constructor(e){this.options=e||o}preprocess(e){return e}postprocess(e){return e}}function W(e,t,n){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+f(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):n?void n(null,e):e}if(t)return Promise.reject(r);if(!n)throw r;n(r)}}function G(e,t){return(n,r,i)=>{"function"===typeof r&&(i=r,r=null);const o={...r};r={...V.defaults,...o};const a=W(r.silent,r.async,i);if("undefined"===typeof n||null===n)return a(new Error("marked(): input parameter is undefined or null"));if("string"!==typeof n)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(M(r),r.hooks&&(r.hooks.options=r),i){const o=r.highlight;let l;try{r.hooks&&(n=r.hooks.preprocess(n)),l=e(n,r)}catch(s){return a(s)}const c=function(e){let n;if(!e)try{r.walkTokens&&V.walkTokens(l,r.walkTokens),n=t(l,r),r.hooks&&(n=r.hooks.postprocess(n))}catch(s){e=s}return r.highlight=o,e?a(e):i(null,n)};if(!o||o.length<3)return c();if(delete r.highlight,!l.length)return c();let u=0;return V.walkTokens(l,function(e){"code"===e.type&&(u++,setTimeout(()=>{o(e.text,e.lang,function(t,n){if(t)return c(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),u--,0===u&&c()})},0))}),void(0===u&&c())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then(t=>e(t,r)).then(e=>r.walkTokens?Promise.all(V.walkTokens(e,r.walkTokens)).then(()=>e):e).then(e=>t(e,r)).then(e=>r.hooks?r.hooks.postprocess(e):e).catch(a);try{r.hooks&&(n=r.hooks.preprocess(n));const i=e(n,r);r.walkTokens&&V.walkTokens(i,r.walkTokens);let o=t(i,r);return r.hooks&&(o=r.hooks.postprocess(o)),o}catch(s){return a(s)}}}function V(e,t,n){return G($.lex,Q.parse)(e,t,n)}(0,r.A)(z,"passThroughHooks",new Set(["preprocess","postprocess"])),V.options=V.setOptions=function(e){return V.defaults={...V.defaults,...e},a(V.defaults),V},V.getDefaults=i,V.defaults=o,V.use=function(...e){const t=V.defaults.extensions||{renderers:{},childTokens:{}};e.forEach(e=>{const n={...e};if(n.async=V.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");t[e.level]?t[e.level].unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){const t=V.defaults.renderer||new j;for(const n in e.renderer){const r=t[n];t[n]=(...i)=>{let o=e.renderer[n].apply(t,i);return!1===o&&(o=r.apply(t,i)),o}}n.renderer=t}if(e.tokenizer){const t=V.defaults.tokenizer||new R;for(const n in e.tokenizer){const r=t[n];t[n]=(...i)=>{let o=e.tokenizer[n].apply(t,i);return!1===o&&(o=r.apply(t,i)),o}}n.tokenizer=t}if(e.hooks){const t=V.defaults.hooks||new z;for(const n in e.hooks){const r=t[n];z.passThroughHooks.has(n)?t[n]=i=>{if(V.defaults.async)return Promise.resolve(e.hooks[n].call(t,i)).then(e=>r.call(t,e));const o=e.hooks[n].call(t,i);return r.call(t,o)}:t[n]=(...i)=>{let o=e.hooks[n].apply(t,i);return!1===o&&(o=r.apply(t,i)),o}}n.hooks=t}if(e.walkTokens){const t=V.defaults.walkTokens;n.walkTokens=function(n){let r=[];return r.push(e.walkTokens.call(this,n)),t&&(r=r.concat(t.call(this,n))),r}}V.setOptions(n)})},V.walkTokens=function(e,t){let n=[];for(const r of e)switch(n=n.concat(t.call(V,r)),r.type){case"table":for(const e of r.header)n=n.concat(V.walkTokens(e.tokens,t));for(const e of r.rows)for(const r of e)n=n.concat(V.walkTokens(r.tokens,t));break;case"list":n=n.concat(V.walkTokens(r.items,t));break;default:V.defaults.extensions&&V.defaults.extensions.childTokens&&V.defaults.extensions.childTokens[r.type]?V.defaults.extensions.childTokens[r.type].forEach(function(e){n=n.concat(V.walkTokens(r[e],t))}):r.tokens&&(n=n.concat(V.walkTokens(r.tokens,t)))}return n},V.parseInline=G($.lexInline,Q.parseInline),V.Parser=Q,V.parser=Q.parse,V.Renderer=j,V.TextRenderer=H,V.Lexer=$,V.lexer=$.lex,V.Tokenizer=R,V.Slugger=U,V.Hooks=z,V.parse=V;V.options,V.setOptions,V.use,V.walkTokens,V.parseInline,Q.parse,$.lex},36833:function(e){function t(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}e.exports=t},36840:function(e,t,n){"use strict";var r=n(94901),i=n(24913),o=n(50283),a=n(39433);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&o(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},36955:function(e,t,n){"use strict";var r=n(92140),i=n(94901),o=n(22195),a=n(78227),s=a("toStringTag"),l=Object,c="Arguments"===o(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(n){}};e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=l(e),s))?n:c?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},36995:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M603.3 327.5l-246 178a7.95 7.95 0 000 12.9l246 178c5.3 3.8 12.7 0 12.7-6.5V643c0-10.2-4.9-19.9-13.2-25.9L457.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"left-circle",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="LeftCircleOutlined",c.inheritAttrs=!1;var u=c},37431:function(e,t,n){"use strict";function r(e){return function(){return e}}n.d(t,{A:function(){return g}});var i=r,o=n(27256),a=n(69937),s=o.A?function(e,t){return(0,o.A)(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:a.A,l=s,c=800,u=16,d=Date.now;function h(e){var t=0,n=0;return function(){var r=d(),i=u-(r-n);if(n=r,i>0){if(++t>=c)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var f=h,p=f(l),g=p},37751:function(e){function t(e){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:"string",variants:[{begin:'`"[^\r\n]*?"\''},{begin:'"[^\r\n"]*"'}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ \t]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}e.exports=t},37862:function(e){function t(e){const t={className:"number",begin:/[$%]\d+/},n={className:"number",begin:/\b\d+/},r={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},i={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[r,i,e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{scope:"punctuation",match:/\\\n/},{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",t]},r,n,e.QUOTE_STRING_MODE]}}],illegal:/\S/}}e.exports=t},37890:function(e,t,n){"use strict";n.d(t,{Ay:function(){return Ct},nT:function(){return xt}});var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(49974),l=(n(44114),n(18111),n(22489),n(7588),n(61701),n(13579),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(18237),n(99899));function c(e,t){const{key:n}=e;let r;return"value"in e&&({value:r}=e),null!==n&&void 0!==n?n:void 0!==r?r:`rc-index-key-${t}`}function u(e,t){const{label:n,value:r,options:i}=e||{};return{label:n||(t?"children":"label"),value:r||"value",options:i||"options"}}function d(e){let{fieldNames:t,childrenAsData:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[],{label:i,value:o,options:a}=u(t,!1);function s(e,t){e.forEach(e=>{const l=e[i];if(t||!(a in e)){const n=e[o];r.push({key:c(e,r.length),groupOption:t,data:e,label:l,value:n})}else{let t=l;void 0===t&&n&&(t=e.label),r.push({key:c(e,r.length),group:!0,data:e,label:t}),s(e[a],!0)}})}return s(e,!1),r}function h(e){const t=(0,i.A)({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return(0,l.$e)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function f(e,t){if(!t||!t.length)return null;let n=!1;function r(e,t){let[i,...o]=t;if(!i)return[e];const a=e.split(i);return n=n||a.length>1,a.reduce((e,t)=>[...e,...r(t,o)],[]).filter(e=>e)}const i=r(e,t);return n?i:null}var p=n(60056),g=n(81425),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const v=e=>{const t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},A=(0,o.pM)({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:g.A.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:g.A.oneOfType([Number,Boolean]).def(!0),popupElement:g.A.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:n,attrs:l,expose:c}=t;const u=(0,o.EW)(()=>{const{dropdownMatchSelectWidth:t}=e;return v(t)}),d=(0,a.KR)();return c({getPopupElement:()=>d.value}),()=>{const t=(0,i.A)((0,i.A)({},e),l),{empty:a=!1}=t,c=m(t,["empty"]),{visible:h,dropdownAlign:f,prefixCls:g,popupElement:v,dropdownClassName:A,dropdownStyle:b,direction:y="ltr",placement:w,dropdownMatchSelectWidth:_,containerWidth:x,dropdownRender:E,animation:S,transitionName:C,getPopupContainer:T,getTriggerDOMNode:k,onPopupVisibleChange:O,onPopupMouseEnter:M,onPopupFocusin:I,onPopupFocusout:D}=c,N=`${g}-dropdown`;let R=v;E&&(R=E({menuNode:v,props:e}));const L=S?`${N}-${S}`:C,B=(0,i.A)({minWidth:`${x}px`},b);return"number"===typeof _?B.width=`${_}px`:_&&(B.width=`${x}px`),(0,o.bF)(p.A,(0,r.A)((0,r.A)({},e),{},{showAction:O?["click"]:[],hideAction:O?["click"]:[],popupPlacement:w||("rtl"===y?"bottomRight":"bottomLeft"),builtinPlacements:u.value,prefixCls:N,popupTransitionName:L,popupAlign:f,popupVisible:h,getPopupContainer:T,popupClassName:(0,s.A)(A,{[`${N}-empty`]:a}),popupStyle:B,getTriggerDOMNode:k,onPopupVisibleChange:O}),{default:n.default,popup:()=>(0,o.bF)("div",{ref:d,onMouseenter:M,onFocusin:I,onFocusout:D},[R])})}}});var b=A,y=n(81186);const w=(e,t)=>{let{slots:n}=t;var r;const{class:i,customizeIcon:a,customizeIconProps:s,onMousedown:l,onClick:c}=e;let u;return u="function"===typeof a?a(s):(0,o.vv)(a)?(0,o.E3)(a):a,(0,o.bF)("span",{class:i,onMousedown:e=>{e.preventDefault(),l&&l(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:c,"aria-hidden":!0},[void 0!==u?u:(0,o.bF)("span",{class:i.split(/\s+/).map(e=>`${e}-icon`)},[null===(r=n.default)||void 0===r?void 0:r.call(n)])])};w.inheritAttrs=!1,w.displayName="TransBtn",w.props={class:String,customizeIcon:g.A.any,customizeIconProps:g.A.any,onMousedown:Function,onClick:Function};var _=w,x=n(82978),E=n(81269);const S={inputRef:g.A.any,prefixCls:String,id:String,inputElement:g.A.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:g.A.oneOfType([g.A.number,g.A.string]),attrs:g.A.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},C=(0,o.pM)({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:S,setup(e){let t=null;const n=(0,o.WQ)("VCSelectContainerEvent");return()=>{var r;const{prefixCls:a,id:l,inputElement:c,disabled:u,tabindex:d,autofocus:h,autocomplete:f,editable:p,activeDescendantId:g,value:m,onKeydown:v,onMousedown:A,onChange:b,onPaste:y,onCompositionstart:w,onCompositionend:_,onFocus:S,onBlur:C,open:T,inputRef:k,attrs:O}=e;let M=c||(0,o.bF)(E.A,null,null);const I=M.props||{},{onKeydown:D,onInput:N,onFocus:R,onBlur:L,onMousedown:B,onCompositionstart:P,onCompositionend:F,style:$}=I;return M=(0,x.Ob)(M,(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({type:"search"},I),{id:l,ref:k,disabled:u,tabindex:d,lazy:!1,autocomplete:f||"off",autofocus:h,class:(0,s.A)(`${a}-selection-search-input`,null===(r=null===M||void 0===M?void 0:M.props)||void 0===r?void 0:r.class),role:"combobox","aria-expanded":T,"aria-haspopup":"listbox","aria-owns":`${l}_list`,"aria-autocomplete":"list","aria-controls":`${l}_list`,"aria-activedescendant":g}),O),{value:p?m:"",readonly:!p,unselectable:p?null:"on",style:(0,i.A)((0,i.A)({},$),{opacity:p?null:0}),onKeydown:e=>{v(e),D&&D(e)},onMousedown:e=>{A(e),B&&B(e)},onInput:e=>{b(e),N&&N(e)},onCompositionstart(e){w(e),P&&P(e)},onCompositionend(e){_(e),F&&F(e)},onPaste:y,onFocus:function(){clearTimeout(t),R&&R(arguments.length<=0?void 0:arguments[0]),S&&S(arguments.length<=0?void 0:arguments[0]),null===n||void 0===n||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];t=setTimeout(()=>{L&&L(r[0]),C&&C(r[0]),null===n||void 0===n||n.blur(r[0])},100)}}),"textarea"===M.type?{}:{type:"search"}),!0,!0),M}}});var T=C,k=n(5220),O=n(25654);const M=Symbol("TreeSelectLegacyContextPropsKey");function I(){return(0,o.WQ)(M,{})}const D={id:String,prefixCls:String,values:g.A.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:g.A.any,placeholder:g.A.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:g.A.oneOfType([g.A.number,g.A.string]),compositionStatus:Boolean,removeIcon:g.A.any,choiceTransitionName:String,maxTagCount:g.A.oneOfType([g.A.number,g.A.string]),maxTagTextLength:Number,maxTagPlaceholder:g.A.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},N=e=>{e.preventDefault(),e.stopPropagation()},R=(0,o.pM)({name:"MultipleSelectSelector",inheritAttrs:!1,props:D,setup(e){const t=(0,a.IJ)(),n=(0,a.IJ)(0),r=(0,a.IJ)(!1),i=I(),l=(0,o.EW)(()=>`${e.prefixCls}-selection`),c=(0,o.EW)(()=>e.open||"tags"===e.mode?e.searchValue:""),u=(0,o.EW)(()=>"tags"===e.mode||e.showSearch&&(e.open||r.value)),d=(0,a.KR)("");function h(t,n,r,i,a){return(0,o.bF)("span",{class:(0,s.A)(`${l.value}-item`,{[`${l.value}-item-disabled`]:r}),title:"string"===typeof t||"number"===typeof t?t.toString():void 0},[(0,o.bF)("span",{class:`${l.value}-item-content`},[n]),i&&(0,o.bF)(_,{class:`${l.value}-item-remove`,onMousedown:N,onClick:a,customizeIcon:e.removeIcon},{default:()=>[(0,o.eW)("×")]})])}function f(t,n,r,a,s,l){var c;const u=t=>{N(t),e.onToggleOpen(!open)};let d=l;return i.keyEntities&&(d=(null===(c=i.keyEntities[t])||void 0===c?void 0:c.node)||{}),(0,o.bF)("span",{key:t,onMousedown:u},[e.tagRender({label:n,value:t,disabled:r,closable:a,onClose:s,option:d})])}function p(t){const{disabled:n,label:r,value:i,option:o}=t,a=!e.disabled&&!n;let s=r;if("number"===typeof e.maxTagTextLength&&("string"===typeof r||"number"===typeof r)){const t=String(s);t.length>e.maxTagTextLength&&(s=`${t.slice(0,e.maxTagTextLength)}...`)}const l=n=>{var r;n&&n.stopPropagation(),null===(r=e.onRemove)||void 0===r||r.call(e,t)};return"function"===typeof e.tagRender?f(i,s,n,a,l,o):h(r,s,n,a,l)}function g(t){const{maxTagPlaceholder:n=e=>`+ ${e.length} ...`}=e,r="function"===typeof n?n(t):n;return h(r,r,!1)}(0,o.nT)(()=>{d.value=c.value}),(0,o.sV)(()=>{(0,o.wB)(d,()=>{n.value=t.value.scrollWidth},{flush:"post",immediate:!0})});const m=t=>{const n=t.target.composing;d.value=t.target.value,n||e.onInputChange(t)};return()=>{const{id:i,prefixCls:a,values:s,open:h,inputRef:f,placeholder:v,disabled:A,autofocus:b,autocomplete:y,activeDescendantId:w,tabindex:_,compositionStatus:x,onInputPaste:E,onInputKeyDown:S,onInputMouseDown:C,onInputCompositionStart:M,onInputCompositionEnd:I}=e,D=(0,o.bF)("div",{class:`${l.value}-search`,style:{width:n.value+"px"},key:"input"},[(0,o.bF)(T,{inputRef:f,open:h,prefixCls:a,id:i,inputElement:null,disabled:A,autofocus:b,autocomplete:y,editable:u.value,activeDescendantId:w,value:d.value,onKeydown:S,onMousedown:C,onChange:m,onPaste:E,onCompositionstart:M,onCompositionend:I,tabindex:_,attrs:(0,k.A)(e,!0),onFocus:()=>r.value=!0,onBlur:()=>r.value=!1},null),(0,o.bF)("span",{ref:t,class:`${l.value}-search-mirror`,"aria-hidden":!0},[d.value,(0,o.eW)(" ")])]),N=(0,o.bF)(O.A,{prefixCls:`${l.value}-overflow`,data:s,renderItem:p,renderRest:g,suffix:D,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return(0,o.bF)(o.FK,null,[N,!s.length&&!c.value&&!x&&(0,o.bF)("span",{class:`${l.value}-placeholder`},[v])])}}});var L=R;const B={inputElement:g.A.any,id:String,prefixCls:String,values:g.A.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:g.A.any,placeholder:g.A.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:g.A.oneOfType([g.A.number,g.A.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},P=(0,o.pM)({name:"SingleSelector",setup(e){const t=(0,a.IJ)(!1),n=(0,o.EW)(()=>"combobox"===e.mode),r=(0,o.EW)(()=>n.value||e.showSearch),i=(0,o.EW)(()=>{let r=e.searchValue||"";return n.value&&e.activeValue&&!t.value&&(r=e.activeValue),r}),s=I();(0,o.wB)([n,()=>e.activeValue],()=>{n.value&&(t.value=!1)},{immediate:!0});const l=(0,o.EW)(()=>!("combobox"!==e.mode&&!e.open&&!e.showSearch)&&(!!i.value||e.compositionStatus)),c=(0,o.EW)(()=>{const t=e.values[0];return!t||"string"!==typeof t.label&&"number"!==typeof t.label?void 0:t.label.toString()}),u=()=>{if(e.values[0])return null;const t=l.value?{visibility:"hidden"}:void 0;return(0,o.bF)("span",{class:`${e.prefixCls}-selection-placeholder`,style:t},[e.placeholder])},d=n=>{const r=n.target.composing;r||(t.value=!0,e.onInputChange(n))};return()=>{var t,a,h,f;const{inputElement:p,prefixCls:g,id:m,values:v,inputRef:A,disabled:b,autofocus:y,autocomplete:w,activeDescendantId:_,open:x,tabindex:E,optionLabelRender:S,onInputKeyDown:C,onInputMouseDown:O,onInputPaste:M,onInputCompositionStart:I,onInputCompositionEnd:D}=e,N=v[0];let R=null;if(N&&s.customSlots){const e=null!==(t=N.key)&&void 0!==t?t:N.value,n=(null===(a=s.keyEntities[e])||void 0===a?void 0:a.node)||{};R=s.customSlots[null===(h=n.slots)||void 0===h?void 0:h.title]||s.customSlots.title||N.label,"function"===typeof R&&(R=R(n))}else R=S&&N?S(N.option):null===N||void 0===N?void 0:N.label;return(0,o.bF)(o.FK,null,[(0,o.bF)("span",{class:`${g}-selection-search`},[(0,o.bF)(T,{inputRef:A,prefixCls:g,id:m,open:x,inputElement:p,disabled:b,autofocus:y,autocomplete:w,editable:r.value,activeDescendantId:_,value:i.value,onKeydown:C,onMousedown:O,onChange:d,onPaste:M,onCompositionstart:I,onCompositionend:D,tabindex:E,attrs:(0,k.A)(e,!0)},null)]),!n.value&&N&&!l.value&&(0,o.bF)("span",{class:`${g}-selection-item`,title:c.value},[(0,o.bF)(o.FK,{key:null!==(f=N.key)&&void 0!==f?f:N.value},[R])]),u()])}}});P.props=B,P.inheritAttrs=!1;var F=P;function $(e){return![y.A.ESC,y.A.SHIFT,y.A.BACKSPACE,y.A.TAB,y.A.WIN_KEY,y.A.ALT,y.A.META,y.A.WIN_KEY_RIGHT,y.A.CTRL,y.A.SEMICOLON,y.A.EQUALS,y.A.CAPS_LOCK,y.A.CONTEXT_MENU,y.A.F1,y.A.F2,y.A.F3,y.A.F4,y.A.F5,y.A.F6,y.A.F7,y.A.F8,y.A.F9,y.A.F10,y.A.F11,y.A.F12].includes(e)}function j(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=null;function r(r){(r||null===n)&&(n=r),clearTimeout(e),e=setTimeout(()=>{n=null},t)}return(0,o.xo)(()=>{clearTimeout(e)}),[()=>n,r]}var H=n(84453);const U=(0,o.pM)({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:g.A.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:g.A.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:g.A.oneOfType([g.A.number,g.A.string]),disabled:{type:Boolean,default:void 0},placeholder:g.A.any,removeIcon:g.A.any,maxTagCount:g.A.oneOfType([g.A.number,g.A.string]),maxTagTextLength:Number,maxTagPlaceholder:g.A.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:n}=t;const i=(0,H.Ay)(),s=(0,a.KR)(!1),[l,c]=j(0),u=t=>{const{which:n}=t;n!==y.A.UP&&n!==y.A.DOWN||t.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(t),n!==y.A.ENTER||"tags"!==e.mode||s.value||e.open||e.onSearchSubmit(t.target.value),$(n)&&e.onToggleOpen(!0)},d=()=>{c(!0)};let h=null;const f=t=>{!1!==e.onSearch(t,!0,s.value)&&e.onToggleOpen(!0)},p=()=>{s.value=!0},g=t=>{s.value=!1,"combobox"!==e.mode&&f(t.target.value)},m=t=>{let{target:{value:n}}=t;if(e.tokenWithEnter&&h&&/[\r\n]/.test(h)){const e=h.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");n=n.replace(e,h)}h=null,f(n)},v=e=>{const{clipboardData:t}=e,n=t.getData("text");h=n},A=e=>{let{target:t}=e;if(t!==i.current){const e=void 0!==document.body.style.msTouchAction;e?setTimeout(()=>{i.current.focus()}):i.current.focus()}},b=t=>{const n=l();t.target===i.current||n||t.preventDefault(),("combobox"===e.mode||e.showSearch&&n)&&e.open||(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:()=>{i.current.focus()},blur:()=>{i.current.blur()}}),()=>{const{prefixCls:t,domRef:n,mode:a}=e,l={inputRef:i,onInputKeyDown:u,onInputMouseDown:d,onInputChange:m,onInputPaste:v,compositionStatus:s.value,onInputCompositionStart:p,onInputCompositionEnd:g},c="multiple"===a||"tags"===a?(0,o.bF)(L,(0,r.A)((0,r.A)({},e),l),null):(0,o.bF)(F,(0,r.A)((0,r.A)({},e),l),null);return(0,o.bF)("div",{ref:n,class:`${t}-selector`,onClick:A,onMousedown:b},[c])}}});var Q=U;function z(e,t,n){function r(r){var i,o,a;let s=r.target;s.shadowRoot&&r.composed&&(s=r.composedPath()[0]||s);const l=[null===(i=e[0])||void 0===i?void 0:i.value,null===(a=null===(o=e[1])||void 0===o?void 0:o.value)||void 0===a?void 0:a.getPopupElement()];t.value&&l.every(e=>e&&!e.contains(s)&&e!==s)&&n(!1)}(0,o.sV)(()=>{window.addEventListener("mousedown",r)}),(0,o.xo)(()=>{window.removeEventListener("mousedown",r)})}function W(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=(0,a.IJ)(!1);let n;const r=()=>{clearTimeout(n)};(0,o.sV)(()=>{r()});const i=(i,o)=>{r(),n=setTimeout(()=>{t.value=i,o&&o()},e)};return[t,i,r]}const G=Symbol("BaseSelectContextKey");function V(e){return(0,o.Gt)(G,e)}function K(){return(0,o.WQ)(G,{})}var Y=n(73429),q=n(44832),X=n(8149);function J(e){if(!(0,a.i9)(e))return(0,a.Kh)(e);const t=new Proxy({},{get(t,n,r){return Reflect.get(e.value,n,r)},set(t,n,r){return e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return(0,a.Kh)(t)}var Z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const ee=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],te=()=>({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:g.A.any,emptyOptions:Boolean}),ne=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:g.A.any,placeholder:g.A.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:g.A.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:g.A.any,clearIcon:g.A.any,removeIcon:g.A.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),re=()=>(0,i.A)((0,i.A)({},te()),ne());function ie(e){return"tags"===e||"multiple"===e}var oe=(0,o.pM)({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:(0,Y.A)(re(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:n,expose:l,slots:c}=t;const u=(0,o.EW)(()=>ie(e.mode)),d=(0,o.EW)(()=>void 0!==e.showSearch?e.showSearch:u.value||"combobox"===e.mode),h=(0,a.IJ)(!1);(0,o.sV)(()=>{h.value=(0,X.A)()});const p=I(),g=(0,a.IJ)(null),m=(0,H.Ay)(),v=(0,a.IJ)(null),A=(0,a.IJ)(null),w=(0,a.IJ)(null),E=(0,a.KR)(!1),[S,C,T]=W(),k=()=>{var e;null===(e=A.value)||void 0===e||e.focus()},O=()=>{var e;null===(e=A.value)||void 0===e||e.blur()};l({focus:k,blur:O,scrollTo:e=>{var t;return null===(t=w.value)||void 0===t?void 0:t.scrollTo(e)}});const M=(0,o.EW)(()=>{var t;if("combobox"!==e.mode)return e.searchValue;const n=null===(t=e.displayValues[0])||void 0===t?void 0:t.value;return"string"===typeof n||"number"===typeof n?String(n):""}),D=void 0!==e.open?e.open:e.defaultOpen,N=(0,a.IJ)(D),R=(0,a.IJ)(D),L=t=>{N.value=void 0!==e.open?e.open:t,R.value=N.value};(0,o.wB)(()=>e.open,()=>{L(e.open)});const B=(0,o.EW)(()=>!e.notFoundContent&&e.emptyOptions);(0,o.nT)(()=>{R.value=N.value,(e.disabled||B.value&&R.value&&"combobox"===e.mode)&&(R.value=!1)});const P=(0,o.EW)(()=>!B.value&&R.value),F=t=>{const n=void 0!==t?t:!R.value;R.value===n||e.disabled||(L(n),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(n),!n&&se.value&&(se.value=!1,C(!1,()=>{oe.value=!1,E.value=!1})))},$=(0,o.EW)(()=>(e.tokenSeparators||[]).some(e=>["\n","\r\n"].includes(e))),U=(t,n,r)=>{var i,o;let a=!0,s=t;null===(i=e.onActiveValueChange)||void 0===i||i.call(e,null);const l=r?null:f(t,e.tokenSeparators);return"combobox"!==e.mode&&l&&(s="",null===(o=e.onSearchSplit)||void 0===o||o.call(e,l),F(!1),a=!1),e.onSearch&&M.value!==s&&e.onSearch(s,{source:n?"typing":"effect"}),a},G=t=>{var n;t&&t.trim()&&(null===(n=e.onSearch)||void 0===n||n.call(e,t,{source:"submit"}))};(0,o.wB)(R,()=>{R.value||u.value||"combobox"===e.mode||U("",!1,!1)},{immediate:!0,flush:"post"}),(0,o.wB)(()=>e.disabled,()=>{N.value&&e.disabled&&L(!1),e.disabled&&!E.value&&C(!1)},{immediate:!0});const[K,Y]=j(),te=function(t){var n;const r=K(),{which:i}=t;if(i===y.A.ENTER&&("combobox"!==e.mode&&t.preventDefault(),R.value||F(!0)),Y(!!M.value),i===y.A.BACKSPACE&&!r&&u.value&&!M.value&&e.displayValues.length){const t=[...e.displayValues];let n=null;for(let e=t.length-1;e>=0;e-=1){const r=t[e];if(!r.disabled){t.splice(e,1),n=r;break}}n&&e.onDisplayValuesChange(t,{type:"remove",values:[n]})}for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];R.value&&w.value&&w.value.onKeydown(t,...a),null===(n=e.onKeydown)||void 0===n||n.call(e,t,...a)},ne=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];R.value&&w.value&&w.value.onKeyup(t,...r),e.onKeyup&&e.onKeyup(t,...r)},re=t=>{const n=e.displayValues.filter(e=>e!==t);e.onDisplayValuesChange(n,{type:"remove",values:[t]})},oe=(0,a.IJ)(!1),ae=function(){C(!0),e.disabled||(e.onFocus&&!oe.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&F(!0)),oe.value=!0},se=(0,a.KR)(!1),le=function(){if(se.value)return;if(E.value=!0,C(!1,()=>{oe.value=!1,E.value=!1,F(!1)}),e.disabled)return;const t=M.value;t&&("tags"===e.mode?e.onSearch(t,{source:"submit"}):"multiple"===e.mode&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)},ce=()=>{se.value=!0},ue=()=>{se.value=!1};(0,o.Gt)("VCSelectContainerEvent",{focus:ae,blur:le});const de=[];(0,o.sV)(()=>{de.forEach(e=>clearTimeout(e)),de.splice(0,de.length)}),(0,o.xo)(()=>{de.forEach(e=>clearTimeout(e)),de.splice(0,de.length)});const he=function(t){var n,r;const{target:i}=t,o=null===(n=v.value)||void 0===n?void 0:n.getPopupElement();if(o&&o.contains(i)){const e=setTimeout(()=>{var t;const n=de.indexOf(e);-1!==n&&de.splice(n,1),T(),h.value||o.contains(document.activeElement)||null===(t=A.value)||void 0===t||t.focus()});de.push(e)}for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(r=e.onMousedown)||void 0===r||r.call(e,t,...s)},fe=(0,a.IJ)(null),pe=()=>{};return(0,o.sV)(()=>{(0,o.wB)(P,()=>{var e;if(P.value){const t=Math.ceil(null===(e=g.value)||void 0===e?void 0:e.offsetWidth);fe.value===t||Number.isNaN(t)||(fe.value=t)}},{immediate:!0,flush:"post"})}),z([g,v],P,F),V(J((0,i.A)((0,i.A)({},(0,a.QW)(e)),{open:R,triggerOpen:P,showSearch:d,multiple:u,toggleOpen:F}))),()=>{const t=(0,i.A)((0,i.A)({},e),n),{prefixCls:a,id:l,open:h,defaultOpen:f,mode:y,showSearch:E,searchValue:C,onSearch:T,allowClear:k,clearIcon:O,showArrow:I,inputIcon:D,disabled:N,loading:L,getInputElement:B,getPopupContainer:j,placement:H,animation:z,transitionName:W,dropdownStyle:V,dropdownClassName:K,dropdownMatchSelectWidth:Y,dropdownRender:X,dropdownAlign:J,showAction:ie,direction:oe,tokenSeparators:ae,tagRender:se,optionLabelRender:le,onPopupScroll:de,onDropdownVisibleChange:ge,onFocus:me,onBlur:ve,onKeyup:Ae,onKeydown:be,onMousedown:ye,onClear:we,omitDomProps:_e,getRawInputElement:xe,displayValues:Ee,onDisplayValuesChange:Se,emptyOptions:Ce,activeDescendantId:Te,activeValue:ke,OptionList:Oe}=t,Me=Z(t,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),Ie="combobox"===y&&B&&B()||null,De="function"===typeof xe&&xe(),Ne=(0,i.A)({},Me);let Re;De&&(Re=e=>{F(e)}),ee.forEach(e=>{delete Ne[e]}),null===_e||void 0===_e||_e.forEach(e=>{delete Ne[e]});const Le=void 0!==I?I:L||!u.value&&"combobox"!==y;let Be,Pe;Le&&(Be=(0,o.bF)(_,{class:(0,s.A)(`${a}-arrow`,{[`${a}-arrow-loading`]:L}),customizeIcon:D,customizeIconProps:{loading:L,searchValue:M.value,open:R.value,focused:S.value,showSearch:d.value}},null));const Fe=()=>{null===we||void 0===we||we(),Se([],{type:"clear",values:Ee}),U("",!1,!1)};!N&&k&&(Ee.length||M.value)&&(Pe=(0,o.bF)(_,{class:`${a}-clear`,onMousedown:Fe,customizeIcon:O},{default:()=>[(0,o.eW)("×")]}));const $e=(0,o.bF)(Oe,{ref:w},(0,i.A)((0,i.A)({},p.customSlots),{option:c.option})),je=(0,s.A)(a,n.class,{[`${a}-focused`]:S.value,[`${a}-multiple`]:u.value,[`${a}-single`]:!u.value,[`${a}-allow-clear`]:k,[`${a}-show-arrow`]:Le,[`${a}-disabled`]:N,[`${a}-loading`]:L,[`${a}-open`]:R.value,[`${a}-customize-input`]:Ie,[`${a}-show-search`]:d.value}),He=(0,o.bF)(b,{ref:v,disabled:N,prefixCls:a,visible:P.value,popupElement:$e,containerWidth:fe.value,animation:z,transitionName:W,dropdownStyle:V,dropdownClassName:K,direction:oe,dropdownMatchSelectWidth:Y,dropdownRender:X,dropdownAlign:J,placement:H,getPopupContainer:j,empty:Ce,getTriggerDOMNode:()=>m.current,onPopupVisibleChange:Re,onPopupMouseEnter:pe,onPopupFocusin:ce,onPopupFocusout:ue},{default:()=>De?(0,q.zO)(De)&&(0,x.Ob)(De,{ref:m},!1,!0):(0,o.bF)(Q,(0,r.A)((0,r.A)({},e),{},{domRef:m,prefixCls:a,inputElement:Ie,ref:A,id:l,showSearch:d.value,mode:y,activeDescendantId:Te,tagRender:se,optionLabelRender:le,values:Ee,open:R.value,onToggleOpen:F,activeValue:ke,searchValue:M.value,onSearch:U,onSearchSubmit:G,onRemove:re,tokenWithEnter:$.value}),null)});let Ue;return Ue=De?He:(0,o.bF)("div",(0,r.A)((0,r.A)({},Ne),{},{class:je,ref:g,onMousedown:he,onKeydown:te,onKeyup:ne}),[S.value&&!R.value&&(0,o.bF)("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${Ee.map(e=>{let{label:t,value:n}=e;return["number","string"].includes(typeof t)?t:n}).join(", ")}`]),He,Be,Pe]),Ue}}}),ae=n(44733),se=n(87426);function le(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ce=n(55107);const ue=Symbol("SelectContextKey");function de(e){return(0,o.Gt)(ue,e)}function he(){return(0,o.WQ)(ue,{})}var fe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function pe(e){return"string"===typeof e||"number"===typeof e}const ge=(0,o.pM)({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{expose:n,slots:i}=t;const l=K(),c=he(),u=(0,o.EW)(()=>`${l.prefixCls}-item`),d=(0,se.A)(()=>c.flattenOptions,[()=>l.open,()=>c.flattenOptions],e=>e[0]),h=(0,H.Ay)(),f=e=>{e.preventDefault()},p=e=>{h.current&&h.current.scrollTo("number"===typeof e?{index:e}:e)},g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=d.value.length;for(let r=0;r<n;r+=1){const i=(e+r*t+n)%n,{group:o,data:a}=d.value[i];if(!o&&!a.disabled)return i}return-1},m=(0,a.Kh)({activeIndex:g(0)}),v=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];m.activeIndex=e;const n={source:t?"keyboard":"mouse"},r=d.value[e];r?c.onActiveValue(r.value,e,n):c.onActiveValue(null,-1,n)};(0,o.wB)([()=>d.value.length,()=>l.searchValue],()=>{v(!1!==c.defaultActiveFirstOption?g(0):-1)},{immediate:!0});const A=e=>c.rawValues.has(e)&&"combobox"!==l.mode;(0,o.wB)([()=>l.open,()=>l.searchValue],()=>{if(!l.multiple&&l.open&&1===c.rawValues.size){const e=Array.from(c.rawValues)[0],t=(0,a.ux)(d.value).findIndex(t=>{let{data:n}=t;return n[c.fieldNames.value]===e});-1!==t&&(v(t),(0,o.dY)(()=>{p(t)}))}l.open&&(0,o.dY)(()=>{var e;null===(e=h.current)||void 0===e||e.scrollTo(void 0)})},{immediate:!0,flush:"post"});const b=e=>{void 0!==e&&c.onSelect(e,{selected:!c.rawValues.has(e)}),l.multiple||l.toggleOpen(!1)},w=e=>"function"===typeof e.label?e.label():e.label;function x(e){const t=d.value[e];if(!t)return null;const n=t.data||{},{value:i}=n,{group:a}=t,s=(0,k.A)(n,!0),c=w(t);return t?(0,o.bF)("div",(0,r.A)((0,r.A)({"aria-label":"string"!==typeof c||a?null:c},s),{},{key:e,role:a?"presentation":"option",id:`${l.id}_list_${e}`,"aria-selected":A(i)}),[i]):null}const E=e=>{const{which:t,ctrlKey:n}=e;switch(t){case y.A.N:case y.A.P:case y.A.UP:case y.A.DOWN:{let e=0;if(t===y.A.UP?e=-1:t===y.A.DOWN?e=1:le()&&n&&(t===y.A.N?e=1:t===y.A.P&&(e=-1)),0!==e){const t=g(m.activeIndex+e,e);p(t),v(t,!0)}break}case y.A.ENTER:{const t=d.value[m.activeIndex];t&&!t.data.disabled?b(t.value):b(void 0),l.open&&e.preventDefault();break}case y.A.ESC:l.toggleOpen(!1),l.open&&e.stopPropagation()}},S=()=>{},C=e=>{p(e)};return n({onKeydown:E,onKeyup:S,scrollTo:C}),()=>{const{id:e,notFoundContent:t,onPopupScroll:n}=l,{menuItemSelectedIcon:a,fieldNames:p,virtual:g,listHeight:y,listItemHeight:E}=c,S=i.option,{activeIndex:C}=m,T=Object.keys(p).map(e=>p[e]);return 0===d.value.length?(0,o.bF)("div",{role:"listbox",id:`${e}_list`,class:`${u.value}-empty`,onMousedown:f},[t]):(0,o.bF)(o.FK,null,[(0,o.bF)("div",{role:"listbox",id:`${e}_list`,style:{height:0,width:0,overflow:"hidden"}},[x(C-1),x(C),x(C+1)]),(0,o.bF)(ae.A,{itemKey:"key",ref:h,data:d.value,height:y,itemHeight:E,fullHeight:!1,onMousedown:f,onScroll:n,virtual:g},{default:(e,t)=>{var n;const{group:i,groupOption:l,data:c,value:d}=e,{key:h}=c,f="function"===typeof e.label?e.label():e.label;if(i){const e=null!==(n=c.title)&&void 0!==n?n:pe(f)&&f;return(0,o.bF)("div",{class:(0,s.A)(u.value,`${u.value}-group`),title:e},[S?S(c):void 0!==f?f:h])}const{disabled:p,title:g,children:m,style:y,class:x,className:E}=c,k=fe(c,["disabled","title","children","style","class","className"]),O=(0,ce.A)(k,T),M=A(d),I=`${u.value}-option`,D=(0,s.A)(u.value,I,x,E,{[`${I}-grouped`]:l,[`${I}-active`]:C===t&&!p,[`${I}-disabled`]:p,[`${I}-selected`]:M}),N=w(e),R=!a||"function"===typeof a||M,L="number"===typeof N?N:N||d;let B=pe(L)?L.toString():void 0;return void 0!==g&&(B=g),(0,o.bF)("div",(0,r.A)((0,r.A)({},O),{},{"aria-selected":M,class:D,title:B,onMousemove:e=>{k.onMousemove&&k.onMousemove(e),C===t||p||v(t)},onClick:e=>{p||b(d),k.onClick&&k.onClick(e)},style:y}),[(0,o.bF)("div",{class:`${I}-content`},[S?S(c):L]),(0,q.zO)(a)||M,R&&(0,o.bF)(_,{class:`${u.value}-option-state`,customizeIcon:a,customizeIconProps:{isSelected:M}},{default:()=>[M?"✓":null]})])}})])}}});var me=ge,ve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Ae(e){const t=e,{key:n,children:r}=t,o=t.props,{value:a,disabled:s}=o,l=ve(o,["value","disabled"]),c=null===r||void 0===r?void 0:r.default;return(0,i.A)({key:n,value:void 0!==a?a:n,children:c,disabled:s||""===s},l)}function be(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(0,q.MI)(e).map((e,n)=>{var r;if(!(0,q.zO)(e)||!e.type)return null;const{type:{isSelectOptGroup:o},key:a,children:s,props:l}=e;if(t||!o)return Ae(e);const c=s&&s.default?s.default():void 0,u=(null===l||void 0===l?void 0:l.label)||(null===(r=s.label)||void 0===r?void 0:r.call(s))||a;return(0,i.A)((0,i.A)({key:`__RC_SELECT_GRP__${null===a?n:String(a)}__`},l),{label:u,options:be(c||[])})}).filter(e=>e);return n}function ye(e,t,n){const r=(0,a.IJ)(),i=(0,a.IJ)(),s=(0,a.IJ)(),l=(0,a.IJ)([]);return(0,o.wB)([e,t],()=>{e.value?l.value=(0,a.ux)(e.value).slice():l.value=be(t.value)},{immediate:!0,deep:!0}),(0,o.nT)(()=>{const e=l.value,t=new Map,o=new Map,a=n.value;function c(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(let r=0;r<e.length;r+=1){const i=e[r];!i[a.options]||n?(t.set(i[a.value],i),o.set(i[a.label],i)):c(i[a.options],!0)}}c(e),r.value=e,i.value=t,s.value=o}),{options:r,valueOptions:i,labelOptions:s}}var we=n(45887);let _e=0;const xe=(0,we.A)();function Ee(){let e;return xe?(e=_e,_e+=1):e="TEST_OR_SSR",e}function Se(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,a.KR)("");const t=`rc_select_${Ee()}`;return e.value||t}function Ce(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}"undefined"!==typeof window&&window.document&&window.document.documentElement;function Te(e,t){return Ce(e).join("").toUpperCase().includes(t)}var ke=(e,t,n,r,a)=>(0,o.EW)(()=>{const o=n.value,s=null===a||void 0===a?void 0:a.value,l=null===r||void 0===r?void 0:r.value;if(!o||!1===l)return e.value;const{options:c,label:u,value:d}=t.value,f=[],p="function"===typeof l,g=o.toUpperCase(),m=p?l:(e,t)=>s?Te(t[s],g):t[c]?Te(t["children"!==u?u:"label"],g):Te(t[d],g),v=p?e=>h(e):e=>e;return e.value.forEach(e=>{if(e[c]){const t=m(o,v(e));if(t)f.push(e);else{const t=e[c].filter(e=>m(o,v(e)));t.length&&f.push((0,i.A)((0,i.A)({},e),{[c]:t}))}return}m(o,v(e))&&f.push(e)}),f}),Oe=(e,t)=>{const n=(0,a.IJ)({values:new Map,options:new Map}),r=(0,o.EW)(()=>{const{values:r,options:o}=n.value,a=e.value.map(e=>{var t;return void 0===e.label?(0,i.A)((0,i.A)({},e),{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label}):e}),s=new Map,l=new Map;return a.forEach(e=>{s.set(e.value,e),l.set(e.value,t.value.get(e.value)||o.get(e.value))}),n.value.values=s,n.value.options=l,a}),s=e=>t.value.get(e)||n.value.options.get(e);return[r,s]},Me=n(53523),Ie=n(83823);const De=["inputValue"];function Ne(){return(0,i.A)((0,i.A)({},ne()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:g.A.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:g.A.any,defaultValue:g.A.any,onChange:Function,children:Array})}function Re(e){return!e||"object"!==typeof e}var Le=(0,o.pM)({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:(0,Y.A)(Ne(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:n,attrs:s,slots:l}=t;const c=Se((0,a.lW)(e,"id")),f=(0,o.EW)(()=>ie(e.mode)),p=(0,o.EW)(()=>!(e.options||!e.children)),g=(0,o.EW)(()=>(void 0!==e.filterOption||"combobox"!==e.mode)&&e.filterOption),m=(0,o.EW)(()=>u(e.fieldNames,p.value)),[v,A]=(0,Me.A)("",{value:(0,o.EW)(()=>void 0!==e.searchValue?e.searchValue:e.inputValue),postState:e=>e||""}),b=ye((0,a.lW)(e,"options"),(0,a.lW)(e,"children"),m),{valueOptions:y,labelOptions:w,options:_}=b,x=t=>{const n=Ce(t);return n.map(t=>{var n,r;let i,o,a,s;Re(t)?i=t:(a=t.key,o=t.label,i=null!==(n=t.value)&&void 0!==n?n:a);const l=y.value.get(i);return l&&(void 0===o&&(o=null===l||void 0===l?void 0:l[e.optionLabelProp||m.value.label]),void 0===a&&(a=null!==(r=null===l||void 0===l?void 0:l.key)&&void 0!==r?r:i),s=null===l||void 0===l?void 0:l.disabled),{label:o,value:i,key:a,disabled:s,option:l}})},[E,S]=(0,Me.A)(e.defaultValue,{value:(0,a.lW)(e,"value")}),C=(0,o.EW)(()=>{var t;const n=x(E.value);return"combobox"!==e.mode||(null===(t=n[0])||void 0===t?void 0:t.value)?n:[]}),[T,k]=Oe(C,y),O=(0,o.EW)(()=>{if(!e.mode&&1===T.value.length){const e=T.value[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return T.value.map(e=>{var t;return(0,i.A)((0,i.A)({},e),{label:null!==(t="function"===typeof e.label?e.label():e.label)&&void 0!==t?t:e.value})})}),M=(0,o.EW)(()=>new Set(T.value.map(e=>e.value)));(0,o.nT)(()=>{var t;if("combobox"===e.mode){const e=null===(t=T.value[0])||void 0===t?void 0:t.value;void 0!==e&&null!==e&&A(String(e))}},{flush:"post"});const I=(e,t)=>{const n=null!==t&&void 0!==t?t:e;return{[m.value.value]:e,[m.value.label]:n}},D=(0,a.IJ)();(0,o.nT)(()=>{if("tags"!==e.mode)return void(D.value=_.value);const t=_.value.slice(),n=e=>y.value.has(e);[...T.value].sort((e,t)=>e.value<t.value?-1:1).forEach(e=>{const r=e.value;n(r)||t.push(I(r,e.label))}),D.value=t});const N=ke(D,m,v,g,(0,a.lW)(e,"optionFilterProp")),R=(0,o.EW)(()=>"tags"!==e.mode||!v.value||N.value.some(t=>t[e.optionFilterProp||"value"]===v.value)?N.value:[I(v.value),...N.value]),L=(0,o.EW)(()=>e.filterSort?[...R.value].sort((t,n)=>e.filterSort(t,n)):R.value),B=(0,o.EW)(()=>d(L.value,{fieldNames:m.value,childrenAsData:p.value})),P=t=>{const n=x(t);if(S(n),e.onChange&&(n.length!==T.value.length||n.some((e,t)=>{var n;return(null===(n=T.value[t])||void 0===n?void 0:n.value)!==(null===e||void 0===e?void 0:e.value)}))){const t=e.labelInValue?n.map(e=>(0,i.A)((0,i.A)({},e),{originLabel:e.label,label:"function"===typeof e.label?e.label():e.label})):n.map(e=>e.value),r=n.map(e=>h(k(e.value)));e.onChange(f.value?t:t[0],f.value?r:r[0])}},[F,$]=(0,Ie.A)(null),[j,H]=(0,Ie.A)(0),U=(0,o.EW)(()=>void 0!==e.defaultActiveFirstOption?e.defaultActiveFirstOption:"combobox"!==e.mode),Q=function(t,n){let{source:r="keyboard"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};H(n),e.backfill&&"combobox"===e.mode&&null!==t&&"keyboard"===r&&$(String(t))},z=(t,n)=>{const r=()=>{var n;const r=k(t),i=null===r||void 0===r?void 0:r[m.value.label];return[e.labelInValue?{label:"function"===typeof i?i():i,originLabel:i,value:t,key:null!==(n=null===r||void 0===r?void 0:r.key)&&void 0!==n?n:t}:t,h(r)]};if(n&&e.onSelect){const[t,n]=r();e.onSelect(t,n)}else if(!n&&e.onDeselect){const[t,n]=r();e.onDeselect(t,n)}},W=(t,n)=>{let r;const i=!f.value||n.selected;r=i?f.value?[...T.value,t]:[t]:T.value.filter(e=>e.value!==t),P(r),z(t,i),"combobox"===e.mode?$(""):f.value&&!e.autoClearSearchValue||(A(""),$(""))},G=(e,t)=>{P(e),"remove"!==t.type&&"clear"!==t.type||t.values.forEach(e=>{z(e.value,!1)})},V=(t,n)=>{var r;if(A(t),$(null),"submit"===n.source){const e=(t||"").trim();if(e){const t=Array.from(new Set([...M.value,e]));P(t),z(e,!0),A("")}return}"blur"!==n.source&&("combobox"===e.mode&&P(t),null===(r=e.onSearch)||void 0===r||r.call(e,t))},K=t=>{let n=t;"tags"!==e.mode&&(n=t.map(e=>{const t=w.value.get(e);return null===t||void 0===t?void 0:t.value}).filter(e=>void 0!==e));const r=Array.from(new Set([...M.value,...n]));P(r),r.forEach(e=>{z(e,!0)})},Y=(0,o.EW)(()=>!1!==e.virtual&&!1!==e.dropdownMatchSelectWidth);de(J((0,i.A)((0,i.A)({},b),{flattenOptions:B,onActiveValue:Q,defaultActiveFirstOption:U,onSelect:W,menuItemSelectedIcon:(0,a.lW)(e,"menuItemSelectedIcon"),rawValues:M,fieldNames:m,virtual:Y,listHeight:(0,a.lW)(e,"listHeight"),listItemHeight:(0,a.lW)(e,"listItemHeight"),childrenAsData:p})));const q=(0,a.KR)();n({focus(){var e;null===(e=q.value)||void 0===e||e.focus()},blur(){var e;null===(e=q.value)||void 0===e||e.blur()},scrollTo(e){var t;null===(t=q.value)||void 0===t||t.scrollTo(e)}});const X=(0,o.EW)(()=>(0,ce.A)(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"]));return()=>(0,o.bF)(oe,(0,r.A)((0,r.A)((0,r.A)({},X.value),s),{},{id:c,prefixCls:e.prefixCls,ref:q,omitDomProps:De,mode:e.mode,displayValues:O.value,onDisplayValuesChange:G,searchValue:v.value,onSearch:V,onSearchSplit:K,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:me,emptyOptions:!B.value.length,activeValue:F.value,activeDescendantId:`${c}_list_${j.value}`}),l)}});const Be=()=>null;Be.isSelectOption=!0,Be.displayName="ASelectOption";var Pe=Be;const Fe=()=>null;Fe.isSelectOptGroup=!0,Fe.displayName="ASelectOptGroup";var $e=Fe,je=Le,He=n(45389),Ue=n(16678),Qe=n(28250),ze=n(76110),We=n(87546),Ge=n(57520);function Ve(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{loading:n,multiple:r,prefixCls:i,hasFeedback:a,feedbackIcon:s,showArrow:l}=e,c=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),u=e.clearIcon||t.clearIcon&&t.clearIcon(),d=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),h=e.removeIcon||t.removeIcon&&t.removeIcon(),f=null!==u&&void 0!==u?u:(0,o.bF)(We.A,null,null),p=e=>(0,o.bF)(o.FK,null,[!1!==l&&e,a&&s]);let g=null;if(void 0!==c)g=p(c);else if(n)g=p((0,o.bF)(Ue.A,{spin:!0},null));else{const e=`${i}-suffix`;g=t=>{let{open:n,showSearch:r}=t;return p(n&&r?(0,o.bF)(Ge.A,{class:e},null):(0,o.bF)(He.A,{class:e},null))}}let m=null;m=void 0!==d?d:r?(0,o.bF)(Qe.A,null,null):null;let v=null;return v=void 0!==h?h:(0,o.bF)(ze.A,null,null),{clearIcon:f,suffixIcon:g,itemIcon:m,removeIcon:v}}var Ke=n(60674),Ye=n(5432),qe=n(56405),Xe=n(51589),Je=n(98215),Ze=n(44678),et=n(42472),tt=n(9519),nt=n(90112),rt=n(99778),it=n(45050),ot=n(36068);const at=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},st=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return[{[`${n}-dropdown`]:(0,i.A)((0,i.A)({},(0,ot.dF)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n            &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,\n            &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft\n          `]:{animationName:rt.ox},[`\n            &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,\n            &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft\n          `]:{animationName:rt.nP},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:rt.vR},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:rt.YU},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${r}-empty`]:(0,i.A)((0,i.A)({},at(e)),{color:e.colorTextDisabled}),[`${r}`]:(0,i.A)((0,i.A)({},at(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":(0,i.A)({flex:"auto"},ot.L9),"&-state":{flex:"none"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},(0,rt._j)(e,"slide-up"),(0,rt._j)(e,"slide-down"),(0,it.Mh)(e,"move-up"),(0,it.Mh)(e,"move-down")]};var lt=st;const ct=2;function ut(e){let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const i=(n-t)/2-r,o=Math.ceil(i/2);return[i,o]}function dt(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,a=e.controlHeightSM,[s]=ut(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${s-ct}px ${2*ct}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ct}px 0`,lineHeight:`${a}px`,content:'"\\a0"'}},[`\n        &${n}-show-arrow ${n}-selector,\n        &${n}-allow-clear ${n}-selector\n      `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:ct,marginBottom:ct,lineHeight:a-2*e.lineWidth+"px",background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:2*ct,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":(0,i.A)((0,i.A)({},(0,ot.Nk)()),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-s,["\n          &-input,\n          &-mirror\n        "]:{height:a,fontFamily:e.fontFamily,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function ht(e){const{componentCls:t}=e,n=(0,tt.h1)(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,r]=ut(e);return[dt(e),dt(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:"auto"},[`${t}-selection-search`]:{marginInlineStart:r}}},dt((0,tt.h1)(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function ft(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.controlHeight-2*e.lineWidth,s=Math.ceil(1.25*e.fontSize),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,[`${n}-selector`]:(0,i.A)((0,i.A)({},(0,ot.dF)(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`\n          ${n}-selection-item,\n          ${n}-selection-placeholder\n        `]:{padding:0,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${a}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n        &${n}-show-arrow ${n}-selection-item,\n        &${n}-show-arrow ${n}-selection-placeholder\n      `]:{paddingInlineEnd:s},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function pt(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[ft(e),ft((0,tt.h1)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[`\n            &${t}-show-arrow ${t}-selection-item,\n            &${t}-show-arrow ${t}-selection-placeholder\n          `]:{paddingInlineEnd:1.5*e.fontSize}}}},ft((0,tt.h1)(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}var gt=n(20353);const mt=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},vt=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{componentCls:r,borderHoverColor:o,outlineColor:a,antCls:s}=t,l=n?{[`${r}-selector`]:{borderColor:o}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${s}-pagination-size-changer)`]:(0,i.A)((0,i.A)({},l),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${a}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},At=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},bt=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:(0,i.A)((0,i.A)({},(0,ot.dF)(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:(0,i.A)((0,i.A)({},mt(e)),At(e)),[`${t}-selection-item`]:(0,i.A)({flex:1,fontWeight:"normal"},ot.L9),[`${t}-selection-placeholder`]:(0,i.A)((0,i.A)({},ot.L9),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:(0,i.A)((0,i.A)({},(0,ot.Nk)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},yt=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},bt(e),pt(e),ht(e),lt(e),{[`${t}-rtl`]:{direction:"rtl"}},vt(t,(0,tt.h1)(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),vt(`${t}-status-error`,(0,tt.h1)(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),vt(`${t}-status-warning`,(0,tt.h1)(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),(0,gt.G)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var wt=(0,nt.A)("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=(0,tt.h1)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[yt(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),_t=n(93758);const xt=()=>(0,i.A)((0,i.A)({},(0,ce.A)(Ne(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:(0,Ze.tK)([Array,Object,String,Number]),defaultValue:(0,Ze.tK)([Array,Object,String,Number]),notFoundContent:g.A.any,suffixIcon:g.A.any,itemIcon:g.A.any,size:(0,Ze.WO)(),mode:(0,Ze.WO)(),bordered:(0,Ze.HE)(!0),transitionName:String,choiceTransitionName:(0,Ze.WO)(""),popupClassName:String,dropdownClassName:String,placement:(0,Ze.WO)(),status:(0,Ze.WO)(),"onUpdate:value":(0,Ze.Fg)()}),Et="SECRET_COMBOBOX_MODE_DO_NOT_USE",St=(0,o.pM)({compatConfig:{MODE:3},name:"ASelect",Option:Pe,OptGroup:$e,inheritAttrs:!1,props:(0,Y.A)(xt(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:Et,slots:Object,setup(e,t){let{attrs:n,emit:l,slots:c,expose:u}=t;const d=(0,a.KR)(),h=(0,qe.db)(),f=qe.$W.useInject(),p=(0,o.EW)(()=>(0,Je.v)(f.status,e.status)),g=()=>{var e;null===(e=d.value)||void 0===e||e.focus()},m=()=>{var e;null===(e=d.value)||void 0===e||e.blur()},v=e=>{var t;null===(t=d.value)||void 0===t||t.scrollTo(e)},A=(0,o.EW)(()=>{const{mode:t}=e;if("combobox"!==t)return t===Et?"combobox":t});const{prefixCls:b,direction:y,configProvider:w,renderEmpty:_,size:x,getPrefixCls:E,getPopupContainer:S,disabled:C,select:T}=(0,Ke.A)("select",e),{compactSize:k,compactItemClassnames:O}=(0,et.RQ)(b,y),M=(0,o.EW)(()=>k.value||x.value),I=(0,_t.p)(),D=(0,o.EW)(()=>{var e;return null!==(e=C.value)&&void 0!==e?e:I.value}),[N,R]=wt(b),L=(0,o.EW)(()=>E()),B=(0,o.EW)(()=>void 0!==e.placement?e.placement:"rtl"===y.value?"bottomRight":"bottomLeft"),P=(0,o.EW)(()=>(0,Xe.by)(L.value,(0,Xe.TL)(B.value),e.transitionName)),F=(0,o.EW)(()=>(0,s.A)({[`${b.value}-lg`]:"large"===M.value,[`${b.value}-sm`]:"small"===M.value,[`${b.value}-rtl`]:"rtl"===y.value,[`${b.value}-borderless`]:!e.bordered,[`${b.value}-in-form-item`]:f.isFormItemInput},(0,Je.L)(b.value,p.value,f.hasFeedback),O.value,R.value)),$=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];l("update:value",t[0]),l("change",...t),h.onFieldChange()},j=e=>{l("blur",e),h.onFieldBlur()};u({blur:m,focus:g,scrollTo:v});const H=(0,o.EW)(()=>"multiple"===A.value||"tags"===A.value),U=(0,o.EW)(()=>void 0!==e.showArrow?e.showArrow:e.loading||!(H.value||"combobox"===A.value));return()=>{var t,a,l,u;const{notFoundContent:p,listHeight:g=256,listItemHeight:m=24,popupClassName:v,dropdownClassName:x,virtual:E,dropdownMatchSelectWidth:C,id:k=h.id.value,placeholder:O=(null===(t=c.placeholder)||void 0===t?void 0:t.call(c)),showArrow:M}=e,{hasFeedback:I,feedbackIcon:L}=f,{}=w;let B;B=void 0!==p?p:c.notFoundContent?c.notFoundContent():"combobox"===A.value?null:(null===_||void 0===_?void 0:_("Select"))||(0,o.bF)(Ye.x,{componentName:"Select"},null);const{suffixIcon:Q,itemIcon:z,removeIcon:W,clearIcon:G}=Ve((0,i.A)((0,i.A)({},e),{multiple:H.value,prefixCls:b.value,hasFeedback:I,feedbackIcon:L,showArrow:U.value}),c),V=(0,ce.A)(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),K=(0,s.A)(v||x,{[`${b.value}-dropdown-${y.value}`]:"rtl"===y.value},R.value);return N((0,o.bF)(je,(0,r.A)((0,r.A)((0,r.A)({ref:d,virtual:E,dropdownMatchSelectWidth:C},V),n),{},{showSearch:null!==(a=e.showSearch)&&void 0!==a?a:null===(l=null===T||void 0===T?void 0:T.value)||void 0===l?void 0:l.showSearch,placeholder:O,listHeight:g,listItemHeight:m,mode:A.value,prefixCls:b.value,direction:y.value,inputIcon:Q,menuItemSelectedIcon:z,removeIcon:W,clearIcon:G,notFoundContent:B,class:[F.value,n.class],getPopupContainer:null===S||void 0===S?void 0:S.value,dropdownClassName:K,onChange:$,onBlur:j,id:k,dropdownRender:V.dropdownRender||c.dropdownRender,transitionName:P.value,children:null===(u=c.default)||void 0===u?void 0:u.call(c),tagRender:e.tagRender||c.tagRender,optionLabelRender:c.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||c.maxTagPlaceholder,showArrow:I||M,disabled:D.value}),{option:c.option}))}}});St.install=function(e){return e.component(St.name,St),e.component(St.Option.displayName,St.Option),e.component(St.OptGroup.displayName,St.OptGroup),e};St.Option,St.OptGroup;var Ct=St},38018:function(e,t,n){n(44114),function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var i=e[r]<<16|e[r+1]<<8|e[r+2],o=0;o<4;o++)8*r+6*o<=8*e.length?n.push(t.charAt(i>>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,i=0;r<e.length;i=++r%4)0!=i&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|t.indexOf(e.charAt(r))>>>6-2*i);return n}};e.exports=n}()},38266:function(e){e.exports={version:"0.24.0"}},38280:function(e){function t(e){const t=e.regex,n=["functions","model","data","parameters","quantities","transformed","generated"],r=["for","in","if","else","while","break","continue","return"],i=["array","tuple","complex","int","real","vector","complex_vector","ordered","positive_ordered","simplex","unit_vector","row_vector","complex_row_vector","matrix","complex_matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],o=["abs","acos","acosh","add_diag","algebra_solver","algebra_solver_newton","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bessel_first_kind","bessel_second_kind","binary_log_loss","block","cbrt","ceil","chol2inv","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","complex_schur_decompose","complex_schur_decompose_t","complex_schur_decompose_u","conj","cos","cosh","cov_exp_quad","crossprod","csr_extract","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","dae","dae_tol","determinant","diag_matrix","diagonal","diag_post_multiply","diag_pre_multiply","digamma","dims","distance","dot_product","dot_self","eigendecompose","eigendecompose_sym","eigenvalues","eigenvalues_sym","eigenvectors","eigenvectors_sym","erf","erfc","exp","exp2","expm1","falling_factorial","fdim","fft","fft2","floor","fma","fmax","fmin","fmod","gamma_p","gamma_q","generalized_inverse","get_imag","get_real","head","hmm_hidden_state_prob","hmm_marginal","hypot","identity_matrix","inc_beta","integrate_1d","integrate_ode","integrate_ode_adams","integrate_ode_bdf","integrate_ode_rk45","int_step","inv","inv_cloglog","inv_erfc","inverse","inverse_spd","inv_fft","inv_fft2","inv_inc_beta","inv_logit","inv_Phi","inv_sqrt","inv_square","is_inf","is_nan","lambert_w0","lambert_wm1","lbeta","lchoose","ldexp","lgamma","linspaced_array","linspaced_int_array","linspaced_row_vector","linspaced_vector","lmgamma","lmultiply","log","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_inv_logit_diff","logit","log_mix","log_modified_bessel_first_kind","log_rising_factorial","log_softmax","log_sum_exp","machine_precision","map_rect","matrix_exp","matrix_exp_multiply","matrix_power","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multiply_lower_tri_self_transpose","negative_infinity","norm","norm1","norm2","not_a_number","num_elements","ode_adams","ode_adams_tol","ode_adjoint_tol_ctl","ode_bdf","ode_bdf_tol","ode_ckrk","ode_ckrk_tol","ode_rk45","ode_rk45_tol","one_hot_array","one_hot_int_array","one_hot_row_vector","one_hot_vector","ones_array","ones_int_array","ones_row_vector","ones_vector","owens_t","Phi","Phi_approx","polar","positive_infinity","pow","print","prod","proj","qr","qr_Q","qr_R","qr_thin","qr_thin_Q","qr_thin_R","quad_form","quad_form_diag","quad_form_sym","quantile","rank","reduce_sum","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","reverse","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scale_matrix_exp_multiply","sd","segment","sin","singular_values","sinh","size","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","square","squared_distance","step","sub_col","sub_row","sum","svd","svd_U","svd_V","symmetrize_from_lower_tri","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_complex","to_int","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_simplex","variance","zeros_array","zeros_int_array","zeros_row_vector"],a=["bernoulli","bernoulli_logit","bernoulli_logit_glm","beta","beta_binomial","beta_proportion","binomial","binomial_logit","categorical","categorical_logit","categorical_logit_glm","cauchy","chi_square","dirichlet","discrete_range","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hmm_latent","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","inv_wishart_cholesky","lkj_corr","lkj_corr_cholesky","logistic","loglogistic","lognormal","multi_gp","multi_gp_cholesky","multinomial","multinomial_logit","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_cholesky_t","multi_student_t","multi_student_t_cholesky","neg_binomial","neg_binomial_2","neg_binomial_2_log","neg_binomial_2_log_glm","normal","normal_id_glm","ordered_logistic","ordered_logistic_glm","ordered_probit","pareto","pareto_type_2","poisson","poisson_log","poisson_log_glm","rayleigh","scaled_inv_chi_square","skew_double_exponential","skew_normal","std_normal","std_normal_log","student_t","uniform","von_mises","weibull","wiener","wishart","wishart_cholesky"],s=e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),l={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},e.C_LINE_COMMENT_MODE]},c=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:e.IDENT_RE,title:n,type:i,keyword:r,built_in:o},contains:[e.C_LINE_COMMENT_MODE,l,e.HASH_COMMENT_MODE,s,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:t.concat(/[<,]\s*/,t.either(...c),/\s*=/),keywords:c},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,t.either(...a),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:a,begin:t.concat(/\w*/,t.either(...a),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,t.concat(t.either(...a),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+t.either(...a)+")\b)"],scope:{2:"title.function"}},{scope:"title.function",begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:"number",match:t.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:"string",begin:/"/,end:/"/}]}}e.exports=t},38326:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M793 242H366v-74c0-6.7-7.7-10.4-12.9-6.3l-142 112a8 8 0 000 12.6l142 112c5.2 4.1 12.9.4 12.9-6.3v-74h415v470H175c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h618c35.3 0 64-28.7 64-64V306c0-35.3-28.7-64-64-64z"}}]},name:"rollback",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="RollbackOutlined",c.inheritAttrs=!1;var u=c},38469:function(e,t,n){"use strict";var r=n(79504),i=n(40507),o=n(94402),a=o.Set,s=o.proto,l=r(s.forEach),c=r(s.keys),u=c(new a).next;e.exports=function(e,t,n){return n?i({iterator:c(e),next:u},t):l(e,t)}},38480:function(e,t,n){"use strict";var r=n(61828),i=n(88727),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},38574:function(e,t,n){"use strict";var r=n(84215);e.exports="NODE"===r},38699:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});n(44114);var r=n(23406);const i=async(e,t={})=>{const{fetch:n=globalThis.fetch,middlewares:r={},...i}=t;if("function"!=typeof n)throw new Error("The options.fetch must be a typeof fetch function!");let o=[e,i];"function"==typeof r.onRequest&&(o=await r.onRequest(...o));let a=await n(...o);if("function"==typeof r.onResponse){const e=await r.onResponse(a);if(!(e instanceof Response))throw new Error("The options.onResponse must return a Response instance!");a=e}if(!a.ok)throw new Error(`Fetch failed with status ${a.status}`);if(!a.body)throw new Error("The response body is empty.");return a};var o=n(56768),a=n(90144);class s{constructor(e){this.create=async(e,t,n)=>{var r,o;const a=new AbortController,s={method:"POST",body:JSON.stringify({model:this.model,...e}),headers:this.defaultHeaders,signal:a.signal};null==(r=null==t?void 0:t.onStream)||r.call(t,a);try{const e=await i(this.baseURL,{fetch:this.customOptions.fetch,...s});if(n)return void await this.customResponseHandler(e,t,n);const r=e.headers.get("content-type")||"";switch(r.split(";")[0].trim()){case"text/event-stream":await this.sseResponseHandler(e,t);break;case"application/json":await this.jsonResponseHandler(e,t);break;default:throw new Error(`The response content-type: ${r} is not support!`)}}catch(l){const e=l instanceof Error?l:new Error("Unknown error!");throw null==(o=null==t?void 0:t.onError)||o.call(t,e),e}},this.customResponseHandler=async(e,t,n)=>{var i,o;const a=[];for await(const s of(0,r.A)({readableStream:e.body,transformStream:n}))a.push(s),null==(i=null==t?void 0:t.onUpdate)||i.call(t,s);null==(o=null==t?void 0:t.onSuccess)||o.call(t,a)},this.sseResponseHandler=async(e,t)=>{var n,i;const o=[];for await(const a of(0,r.A)({readableStream:e.body}))o.push(a),null==(n=null==t?void 0:t.onUpdate)||n.call(t,a);null==(i=null==t?void 0:t.onSuccess)||i.call(t,o)},this.jsonResponseHandler=async(e,t)=>{var n,r;const i=await e.json();null==(n=null==t?void 0:t.onUpdate)||n.call(t,i),null==(r=null==t?void 0:t.onSuccess)||r.call(t,[i])};const{baseURL:t,model:n,dangerouslyApiKey:o,...a}=e;this.baseURL=e.baseURL,this.model=e.model,this.defaultHeaders={"Content-Type":"application/json",...e.dangerouslyApiKey&&{Authorization:e.dangerouslyApiKey}},this.customOptions=a}static init(e){if(!e.baseURL||"string"!=typeof e.baseURL)throw new Error("The baseURL is not valid!");return new s(e)}}const l=e=>(0,o.EW)(()=>s.init((0,a.BA)(e)));let c=0;class u{constructor(e){this.requestingMap=(0,a.KR)({}),this.request=(e,t,n)=>{const{request:r}=this.config,{onUpdate:i,onSuccess:o,onError:a,onStream:s}=t,l=c;c+=1,this.requestingMap.value[l]=!0,null==r||r(e,{onStream:e=>{this.requestingMap.value[l]&&(null==s||s(e))},onUpdate:e=>{this.requestingMap.value[l]&&i(e)},onSuccess:e=>{this.requestingMap.value[l]&&(o(e),this.finishRequest(l))},onError:e=>{this.requestingMap.value[l]&&(a(e),this.finishRequest(l))}},n)},this.config=e}finishRequest(e){delete this.requestingMap.value[e]}isRequesting(){return Object.keys(this.requestingMap.value).length>0}}function d(e){return[(0,o.EW)(()=>{const{request:t,...n}=(0,a.BA)(e);return new u({request:t||l({baseURL:n.baseURL,model:n.model,dangerouslyApiKey:n.dangerouslyApiKey}).value.create,...n})})]}},38737:function(e){function t(e){const t=e.regex,n=/[a-zA-Z_$][a-zA-Z0-9_$]*/,r=t.concat(n,t.concat("(\\.",n,")*")),i=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,o={className:"rest_arg",begin:/[.]{3}/,end:n,relevance:10},a=["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],s=["true","false","null","undefined"];return{name:"ActionScript",aliases:["as"],keywords:{keyword:a,literal:s},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.inherit(e.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o]},{begin:t.concat(/:\s*/,i)}]},e.METHOD_GUARD],illegal:/#/}}e.exports=t},38800:function(e,t,n){"use strict";var r=n(56768),i=n(90144),o=n(55498);t.A=()=>{const e=(0,i.IJ)(!1);return(0,r.sV)(()=>{e.value=(0,o.Pu)()}),e}},38809:function(e,t,n){"use strict";var r=n(81735),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===i.call(e)}function c(e){return"undefined"!==typeof FormData&&e instanceof FormData}function u(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function d(e){return"string"===typeof e}function h(e){return"number"===typeof e}function f(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function g(e){return"[object Date]"===i.call(e)}function m(e){return"[object File]"===i.call(e)}function v(e){return"[object Blob]"===i.call(e)}function A(e){return"[object Function]"===i.call(e)}function b(e){return f(e)&&A(e.pipe)}function y(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function w(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function _(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function x(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function E(){var e={};function t(t,n){p(e[n])&&p(t)?e[n]=E(e[n],t):p(t)?e[n]=E({},t):o(t)?e[n]=t.slice():e[n]=t}for(var n=0,r=arguments.length;n<r;n++)x(arguments[n],t);return e}function S(e,t,n){return x(t,function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t}),e}function C(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:o,isArrayBuffer:l,isBuffer:s,isFormData:c,isArrayBufferView:u,isString:d,isNumber:h,isObject:f,isPlainObject:p,isUndefined:a,isDate:g,isFile:m,isBlob:v,isFunction:A,isStream:b,isURLSearchParams:y,isStandardBrowserEnv:_,forEach:x,merge:E,extend:S,trim:w,stripBOM:C}},38926:function(e,t,n){"use strict";var r=n(92817),i=n(97070);r.A.Button=i.A,r.A.install=function(e){return e.component(r.A.name,r.A),e.component(i.A.name,i.A),e},t.Ay=r.A},38961:function(e,t){"use strict";const n=[];t.A=n},39058:function(e,t,n){"use strict";n.d(t,{BM:function(){return y},Ew:function(){return w},Gv:function(){return a},Kg:function(){return o},Mp:function(){return l},PT:function(){return d},Tg:function(){return f},ZH:function(){return p},cl:function(){return b},cy:function(){return i},rQ:function(){return v},xc:function(){return A}});n(18111),n(18237);const r=e=>"function"===typeof e,i=(Symbol("controlDefaultValue"),Array.isArray),o=e=>"string"===typeof e,a=e=>null!==e&&"object"===typeof e,s=/^on[^a-z]/,l=e=>s.test(e),c=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},u=/-(\w)/g,d=c(e=>e.replace(u,(e,t)=>t?t.toUpperCase():"")),h=/\B([A-Z])/g,f=c(e=>e.replace(h,"-$1").toLowerCase()),p=c(e=>e.charAt(0).toUpperCase()+e.slice(1)),g=Object.prototype.hasOwnProperty,m=(e,t)=>g.call(e,t);function v(e,t,n,i){const o=e[n];if(null!=o){const e=m(o,"default");if(e&&void 0===i){const e=o.default;i=o.type!==Function&&r(e)?e():e}o.type===Boolean&&(m(t,n)||e?""===i&&(i=!0):i=!1)}return i}function A(e){return Object.keys(e).reduce((t,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]),t),{})}function b(e){return"number"===typeof e?`${e}px`:e}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return"function"===typeof e?e(t):null!==e&&void 0!==e?e:n}function w(e){let t;const n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{null===t||void 0===t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}},39195:function(e,t,n){"use strict";var r=n(57179);function i(e,t){return(0,r.A)(e,t)}t.A=i},39238:function(e){function t(e){const t=["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],n=["addr","and","as","asm","bind","block","break","case","cast","concept","const","continue","converter","defer","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],r=["stdin","stdout","stderr","result"],i=["true","false"];return{name:"Nim",keywords:{keyword:n,literal:i,type:t,built_in:r},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}e.exports=t},39258:function(e,t,n){"use strict";n.d(t,{BD:function(){return m},m6:function(){return p}});n(18111),n(22489),n(20116);var r=n(45887),i=n(59699);const o="data-vc-order",a="vc-util-key",s=new Map;function l(){let{mark:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:a}function c(e){if(e.attachTo)return e.attachTo;const t=document.querySelector("head");return t||document.body}function u(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function d(e){return Array.from((s.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.A)())return null;const{csp:n,prepend:i}=t,a=document.createElement("style");a.setAttribute(o,u(i)),(null===n||void 0===n?void 0:n.nonce)&&(a.nonce=null===n||void 0===n?void 0:n.nonce),a.innerHTML=e;const s=c(t),{firstChild:l}=s;if(i){if("queue"===i){const e=d(s).filter(e=>["prepend","prependQueue"].includes(e.getAttribute(o)));if(e.length)return s.insertBefore(a,e[e.length-1].nextSibling),a}s.insertBefore(a,l)}else s.appendChild(a);return a}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=c(t);return d(n).find(n=>n.getAttribute(l(t))===e)}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=f(e,t);if(n){const e=c(t);e.removeChild(n)}}function g(e,t){const n=s.get(e);if(!n||!(0,i.A)(document,n)){const n=h("",t),{parentNode:r}=n;s.set(e,r),e.removeChild(n)}}function m(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var r,i,o;const a=c(n);g(a,n);const s=f(t,n);if(s)return(null===(r=n.csp)||void 0===r?void 0:r.nonce)&&s.nonce!==(null===(i=n.csp)||void 0===i?void 0:i.nonce)&&(s.nonce=null===(o=n.csp)||void 0===o?void 0:o.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;const u=h(e,n);return u.setAttribute(l(n),t),u}},39297:function(e,t,n){"use strict";var r=n(79504),i=n(48981),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},39314:function(e,t){"use strict";function n(e,t){return function(n){return e(t(n))}}t.A=n},39433:function(e,t,n){"use strict";var r=n(44576),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},39519:function(e,t,n){"use strict";var r,i,o=n(44576),a=n(82839),s=o.process,l=o.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(r=u.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),e.exports=i},39541:function(e,t,n){"use strict";n.d(t,{RO:function(){return a}});var r=n(30355),i=n(4263),o=n(49359);function a(e){var t={r:0,g:0,b:0},n=1,i=null,a=null,s=null,l=!1,c=!1;return"string"===typeof e&&(e=f(e)),"object"===typeof e&&(p(e.r)&&p(e.g)&&p(e.b)?(t=(0,r._)(e.r,e.g,e.b),l=!0,c="%"===String(e.r).substr(-1)?"prgb":"rgb"):p(e.h)&&p(e.s)&&p(e.v)?(i=(0,o.Px)(e.s),a=(0,o.Px)(e.v),t=(0,r.Me)(e.h,i,a),l=!0,c="hsv"):p(e.h)&&p(e.s)&&p(e.l)&&(i=(0,o.Px)(e.s),s=(0,o.Px)(e.l),t=(0,r.YL)(e.h,i,s),l=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,o.TV)(n),{ok:l,format:e.format||c,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var s="[-\\+]?\\d+%?",l="[-\\+]?\\d*\\.\\d+%?",c="(?:".concat(l,")|(?:").concat(s,")"),u="[\\s|\\(]+(".concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")\\s*\\)?"),d="[\\s|\\(]+(".concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")\\s*\\)?"),h={CSS_UNIT:new RegExp(c),rgb:new RegExp("rgb"+u),rgba:new RegExp("rgba"+d),hsl:new RegExp("hsl"+u),hsla:new RegExp("hsla"+d),hsv:new RegExp("hsv"+u),hsva:new RegExp("hsva"+d),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function f(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(i.D[e])e=i.D[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=h.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=h.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=h.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=h.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=h.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=h.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=h.hex8.exec(e),n?{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),a:(0,r.n6)(n[4]),format:t?"name":"hex8"}:(n=h.hex6.exec(e),n?{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),format:t?"name":"hex"}:(n=h.hex4.exec(e),n?{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),a:(0,r.n6)(n[4]+n[4]),format:t?"name":"hex8"}:(n=h.hex3.exec(e),!!n&&{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),format:t?"name":"hex"})))))))))}function p(e){return Boolean(h.CSS_UNIT.exec(String(e)))}},39578:function(e,t,n){"use strict";var r=n(80339),i="object"==typeof self&&self&&self.Object===Object&&self,o=r.A||i||Function("return this")();t.A=o},39639:function(e){function t(e){const t="foreach do while for if from to step else on-error and or not in",n="global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime",r="add remove enable disable set get print export edit find run debug error info warning",i="true false yes no nothing nil null",o="traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw",a={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,a,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},l={className:"string",begin:/'/,end:/'/};return{name:"MikroTik RouterOS script",aliases:["mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:i,keyword:t+" :"+t.split(" ").join(" :")+" :"+n.split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},e.COMMENT("^#","$"),s,l,a,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[s,l,a,{className:"literal",begin:"\\b("+i.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+r.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+o.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}e.exports=t},39726:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});n(18111),n(20116),n(7588);var r=n(42529),i=n(61206),o=n(84434),a=n(56030),s=n(83752),l=(n(61701),function(){function e(t){(0,r.xs)(this,e),this.config=t.config,this.parent=t.root,this.root=i.Ay.createDom("ul","",{},"xg-options-list xg-list-slide-scroll ".concat(this.config.className)),t.root.appendChild(this.root);var n=this.config.maxHeight;n&&this.setStyle({maxHeight:n}),this.onItemClick=this.onItemClick.bind(this),this.renderItemList();var o="touch"===this.config.domEventType?"touchend":"click";this._delegates=s.Ay.delegate.call(this,this.root,"li",o,this.onItemClick)}return(0,r.j6)(e,[{key:"renderItemList",value:function(e){var t=this,n=this.config,r=this.root;e?n.data=e:e=n.data,n.style&&Object.keys(n.style).map(function(e){r.style[e]=n[e]}),e.length>0&&(this.attrKeys=Object.keys(e[0])),this.root.innerHTML="",e.map(function(e,n){var r=e.selected?"option-item selected":"option-item";e["data-index"]=n,t.root.appendChild(i.Ay.createDom("li","<span>".concat(e.showText,"</span>"),e,r))})}},{key:"onItemClick",value:function(e){e.delegateTarget||(e.delegateTarget=e.target);var t=e.delegateTarget;if(t&&i.Ay.hasClass(t,"selected"))return!1;var n="function"===typeof this.config.onItemClick?this.config.onItemClick:null,r=this.root.querySelector(".selected");i.Ay.addClass(t,"selected"),r&&i.Ay.removeClass(r,"selected"),n(e,{from:r?this.getAttrObj(r,this.attrKeys):null,to:this.getAttrObj(t,this.attrKeys)})}},{key:"getAttrObj",value:function(e,t){if(!e||!t)return{};var n={};t.map(function(t){n[t]=e.getAttribute(t)});var r=e.getAttribute("data-index");return r&&(n.index=Number(r)),n}},{key:"show",value:function(){i.Ay.removeClass(this.root,"hide"),i.Ay.addClass(this.root,"active")}},{key:"hide",value:function(){i.Ay.removeClass(this.root,"active"),i.Ay.addClass(this.root,"hide")}},{key:"setStyle",value:function(e){var t=this;Object.keys(e).forEach(function(n){t.root.style[n]=e[n]})}},{key:"destroy",value:function(){this._delegates&&(this._delegates.map(function(e){e.destroy&&e.destroy()}),this._delegates=null),this.root.innerHTML=null,this.parent.removeChild(this.root),this.root=null}}]),e}()),c={SIDE:"side",MIDDLE:"middle",DEFAULT:"default"},u={CLICK:"click",HOVER:"hover"};function d(e,t){return e===c.SIDE?t===s.lP.CONTROLS_LEFT?"xg-side-list xg-left-side":"xg-side-list xg-right-side":""}var h="mobile"===o.A.device,f=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(e){var i;return(0,r.xs)(this,n),i=t.call(this,e),(0,r.n8)((0,r.V5)(i),"onEnter",function(e){e.stopPropagation(),i.emit("icon_mouseenter",{pluginName:i.pluginName}),i.switchActiveState(e)}),(0,r.n8)((0,r.V5)(i),"switchActiveState",function(e){e.stopPropagation();var t=i.config.toggleMode;t===u.CLICK?i.toggle(!i.isActive):i.toggle(!0)}),(0,r.n8)((0,r.V5)(i),"onLeave",function(e){e.stopPropagation(),i.emit("icon_mouseleave",{pluginName:i.pluginName}),i.config.listType!==c.SIDE&&i.isActive&&i.toggle(!1)}),(0,r.n8)((0,r.V5)(i),"onListEnter",function(e){i.enterType=2}),(0,r.n8)((0,r.V5)(i),"onListLeave",function(e){i.enterType=0,i.isActive&&i.toggle(!1)}),i.isIcons=!1,i.isActive=!1,i.curValue=null,i.curIndex=0,i}return(0,r.j6)(n,[{key:"updateLang",value:function(e){this.renderItemList(this.config.list,this.curIndex)}},{key:"afterCreate",value:function(){var e=this,t=this.config;this.initIcons(),h=h||"touch"===this.domEventType,h&&"mobile"===o.A.device&&t.listType===c.DEFAULT&&(t.listType=c.SIDE),t.hidePortrait&&i.Ay.addClass(this.root,"portrait"),this.on([a.VIDEO_RESIZE,a.FULLSCREEN_CHANGE],function(){e._resizeList()}),this.once(a.CANPLAY,function(){t.list&&t.list.length>0&&(e.renderItemList(t.list),e.show())}),h&&this.on(a.PLAYER_FOCUS,function(){e.isActive&&(e.optionsList&&e.optionsList.hide(),e.isActive=!1)}),h?(t.toggleMode=u.CLICK,this.activeEvent="touchend"):this.activeEvent=t.toggleMode===u.CLICK?"click":"mouseenter",t.toggleMode===u.CLICK?this.bind(this.activeEvent,this.switchActiveState):(this.bind(this.activeEvent,this.onEnter),this.bind("mouseleave",this.onLeave)),this.isIcons&&this.bind("click",this.onIconClick)}},{key:"initIcons",value:function(){var e=this,t=this.icons,n=Object.keys(t),r=!1;n.length>0&&(n.forEach(function(n){e.appendChild(".xgplayer-icon",t[n]),!r&&(r=t[n])}),this.isIcons=r),r||(this.appendChild(".xgplayer-icon",i.Ay.createDom("span","",{},"icon-text")),i.Ay.addClass(this.find(".xgplayer-icon"),"btn-text"))}},{key:"show",value:function(e){!this.config.list||this.config.list.length<2||i.Ay.addClass(this.root,"show")}},{key:"hide",value:function(){i.Ay.removeClass(this.root,"show")}},{key:"getTextByLang",value:function(e,t,n){if(void 0===e)return"";var o=this.config.list;!n&&(n=this.player.lang),t=!t||i.Ay.isUndefined(e[t])?"text":t,"number"===typeof e&&(e=o[e]);try{return"object"===(0,r.uk)(e[t])?e[t][n]||e[t].en:e[t]}catch(a){return console.warn(a),""}}},{key:"toggle",value:function(e){if(e!==this.isActive&&!this.config.disable){var t=this.player.controls,n=this.config.listType;e?(n===c.SIDE?t.blur():t.focus(),this.optionsList&&this.optionsList.show()):(n===c.SIDE?t.focus():t.focusAwhile(),this.optionsList&&this.optionsList.hide()),this.isActive=e}}},{key:"onItemClick",value:function(e,t){e.stopPropagation();var n=this.config,r=n.listType,i=n.list;this.curIndex=t.to.index,this.curItem=i[this.curIndex],this.changeCurrentText();var o=this.config.isItemClickHide;(o||h||r===c.SIDE)&&this.toggle(!1)}},{key:"onIconClick",value:function(e){}},{key:"changeCurrentText",value:function(){if(!this.isIcons){var e=this.config.list,t=this.curIndex<e.length?this.curIndex:0,n=e[t];n&&(this.find(".icon-text").innerHTML=this.getTextByLang(n,"iconText"))}}},{key:"renderItemList",value:function(e,t){var n=this,r=this.config,i=this.optionsList,o=this.player;if("number"===typeof t&&(this.curIndex=t,this.curItem=r.list[t]),i)return i.renderItemList(e),void this.changeCurrentText();var a={config:{data:e||[],className:d(r.listType,r.position),onItemClick:function(e,t){n.onItemClick(e,t)},domEventType:h?"touch":"mouse"},root:r.listType===c.SIDE?o.innerContainer||o.root:this.root};if(this.config.isShowIcon){var s=this.player.root.getBoundingClientRect(),u=s.height,f=r.listType===c.MIDDLE?u-50:u;f&&r.heightLimit&&(a.config.maxHeight="".concat(f,"px")),this.optionsList=new l(a),this.changeCurrentText(),this.show()}this._resizeList()}},{key:"_resizeList",value:function(){if(this.config.heightLimit){var e=this.player.root.getBoundingClientRect(),t=e.height,n=this.config.listType===c.MIDDLE?t-50:t;this.optionsList&&this.optionsList.setStyle({maxHeight:"".concat(n,"px")})}}},{key:"destroy",value:function(){var e=this.config;e.toggleMode===u.CLICK?this.unbind(this.activeEvent,this.switchActiveState):(this.unbind(this.activeEvent,this.onEnter),this.unbind("mouseleave",this.onLeave)),this.isIcons&&this.unbind("click",this.onIconClick),this.optionsList&&(this.optionsList.destroy(),this.optionsList=null)}},{key:"render",value:function(){if(this.config.isShowIcon)return'<xg-icon class="xg-options-icon '.concat(this.config.className||"",'">\n    <div class="xgplayer-icon">\n    </div>\n   </xg-icon>')}}],[{key:"pluginName",get:function(){return"optionsIcon"}},{key:"defaultConfig",get:function(){return{position:s.lP.CONTROLS_RIGHT,index:100,list:[],listType:"default",listStyle:{},hidePortrait:!0,isShowIcon:!1,isItemClickHide:!0,toggleMode:u.HOVER,heightLimit:!0}}}]),n}(s.Ay)},39829:function(e){function t(e){const t={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]},n={variants:[{match:[/(function|method)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},r={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}},i=["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],o=["true","false","null"],a=["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"];return{name:"Monkey",case_insensitive:!0,keywords:{keyword:a,built_in:i,literal:o},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),n,r,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}}e.exports=t},39835:function(e){"use strict";e.exports=function(e){try{var t=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},r=t[e](n);return 1===r.size&&4===r.values().next().value}catch(i){return!1}}},39870:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});n(18111),n(18237);var r=n(51137),i=n(68333);function o(e,t){return i.s.reduce((n,i)=>{const o=e[`${i}-1`],a=e[`${i}-3`],s=e[`${i}-6`],l=e[`${i}-7`];return(0,r.A)((0,r.A)({},n),t(i,{lightColor:o,lightBorderColor:a,darkColor:s,textColor:l}))},{})}},39928:function(e,t,n){"use strict";var r=n(26198),i=n(91291),o=RangeError;e.exports=function(e,t,n,a){var s=r(e),l=i(n),c=l<0?s+l:l;if(c>=s||c<0)throw new o("Incorrect index");for(var u=new t(s),d=0;d<s;d++)u[d]=d===c?a:e[d];return u}},40355:function(e,t,n){"use strict";n.d(t,{Bk:function(){return g},Ki:function(){return v},V8:function(){return p},Y5:function(){return b},g2:function(){return l},zA:function(){return m},zw:function(){return c}});n(18111),n(22489),n(7588),n(61701);var r=n(30050),i=n(56883),o=n(75432),a=n(1128);const s=new WeakMap;function l(e){let t=s.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof a.A?t+=r.id:t+=r&&"object"==typeof r?l(r):r}),s.set(e,t)),t}function c(e,t){return(0,r.m)(`${t}_${l(e)}`)}const u=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),d="_bAmBoO_";function h(e,t,n){var r,a;if((0,o.A)()){(0,i.BD)(e,u);const o=document.createElement("div");o.style.position="fixed",o.style.left="0",o.style.top="0",null==t||t(o),document.body.appendChild(o);const s=n?n(o):null==(r=getComputedStyle(o).content)?void 0:r.includes(d);return null==(a=o.parentNode)||a.removeChild(o),(0,i.m6)(u),s}return!1}let f;function p(){return void 0===f&&(f=h(`@layer ${u} { .${u} { content: "${d}"!important; } }`,e=>{e.className=u})),f}const g=(0,o.A)();function m(e){return"number"==typeof e?`${e}px`:e}const v=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase();const A=(e,t,n)=>Object.keys(e).length?`.${t}${null!=n&&n.scope?`.${n.scope}`:""}{${Object.entries(e).map(([e,t])=>`${e}:${t};`).join("")}}`:"",b=(e,t,n)=>{const r={},i={};return Object.entries(e).forEach(([e,t])=>{var o,a,s;if(null!=(o=null==n?void 0:n.preserve)&&o[e])i[e]=t;else if(("string"==typeof t||"number"==typeof t)&&(null==(a=null==n?void 0:n.ignore)||!a[e])){const o=v(e,null==n?void 0:n.prefix);r[o]="number"!=typeof t||null!=(s=null==n?void 0:n.unitless)&&s[e]?String(t):`${t}px`,i[e]=`var(${o})`}}),[i,A(r,t,{scope:null==n?void 0:n.scope})]}},40416:function(e,t,n){"use strict";n.d(t,{A:function(){return re}});var r=n(41034),i=n(56768),o=n(73429),a=n(76110),s=n(28250),l=n(7403),c=n(87546),u=(n(44114),n(18111),n(7588),n(61701),n(51137)),d=n(61935),h=n(44678);const f=["normal","exception","active","success"],p=()=>({prefixCls:String,type:(0,h.WO)(),percent:Number,format:(0,h.Fg)(),status:(0,h.WO)(),showInfo:(0,h.HE)(),strokeWidth:Number,strokeLinecap:(0,h.WO)(),strokeColor:(0,h.ds)(),trailColor:String,width:Number,success:(0,h.ge)(),gapDegree:Number,gapPosition:(0,h.WO)(),size:(0,h.tK)([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:(0,h.WO)()});var g=n(34322);function m(e){return!e||e<0?0:e>100?100:e}function v(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&((0,g.A)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),r=t.progress),t&&"percent"in t&&(r=t.percent),r}function A(e){let{percent:t,success:n,successPercent:r}=e;const i=m(v({success:n,successPercent:r}));return[i,m(m(t)-i)]}function b(e){let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||d.uy.green,n||null]}const y=(e,t,n)=>{var r,i,o,a;let s=-1,l=-1;if("step"===t){const t=n.steps,r=n.strokeWidth;"string"===typeof e||"undefined"===typeof e?(s="small"===e?2:14,l=null!==r&&void 0!==r?r:8):"number"===typeof e?[s,l]=[e,e]:[s=14,l=8]=e,s*=t}else if("line"===t){const t=null===n||void 0===n?void 0:n.strokeWidth;"string"===typeof e||"undefined"===typeof e?l=t||("small"===e?6:8):"number"===typeof e?[s,l]=[e,e]:[s=-1,l=8]=e}else"circle"!==t&&"dashboard"!==t||("string"===typeof e||"undefined"===typeof e?[s,l]="small"===e?[60,60]:[120,120]:"number"===typeof e?[s,l]=[e,e]:(s=null!==(i=null!==(r=e[0])&&void 0!==r?r:e[1])&&void 0!==i?i:120,l=null!==(a=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==a?a:120));return{width:s,height:l}};var w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const _=()=>(0,u.A)((0,u.A)({},p()),{strokeColor:(0,h.ds)(),direction:(0,h.WO)()}),x=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((e,t)=>e.key-t.key),t.map(e=>{let{key:t,value:n}=e;return`${n} ${t}%`}).join(", ")},E=(e,t)=>{const{from:n=d.uy.blue,to:r=d.uy.blue,direction:i=("rtl"===t?"to left":"to right")}=e,o=w(e,["from","to","direction"]);if(0!==Object.keys(o).length){const e=x(o);return{backgroundImage:`linear-gradient(${i}, ${e})`}}return{backgroundImage:`linear-gradient(${i}, ${n}, ${r})`}};var S=(0,i.pM)({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:_(),setup(e,t){let{slots:n,attrs:o}=t;const a=(0,i.EW)(()=>{const{strokeColor:t,direction:n}=e;return t&&"string"!==typeof t?E(t,n):{backgroundColor:t}}),s=(0,i.EW)(()=>"square"===e.strokeLinecap||"butt"===e.strokeLinecap?0:void 0),l=(0,i.EW)(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),c=(0,i.EW)(()=>{var t;return null!==(t=e.size)&&void 0!==t?t:[-1,e.strokeWidth||("small"===e.size?6:8)]}),d=(0,i.EW)(()=>y(c.value,"line",{strokeWidth:e.strokeWidth}));const h=(0,i.EW)(()=>{const{percent:t}=e;return(0,u.A)({width:`${m(t)}%`,height:`${d.value.height}px`,borderRadius:s.value},a.value)}),f=(0,i.EW)(()=>v(e)),p=(0,i.EW)(()=>{const{success:t}=e;return{width:`${m(f.value)}%`,height:`${d.value.height}px`,borderRadius:s.value,backgroundColor:null===t||void 0===t?void 0:t.strokeColor}}),g={width:d.value.width<0?"100%":d.value.width,height:`${d.value.height}px`};return()=>{var t;return(0,i.bF)(i.FK,null,[(0,i.bF)("div",(0,r.A)((0,r.A)({},o),{},{class:[`${e.prefixCls}-outer`,o.class],style:[o.style,g]}),[(0,i.bF)("div",{class:`${e.prefixCls}-inner`,style:l.value},[(0,i.bF)("div",{class:`${e.prefixCls}-bg`,style:h.value},null),void 0!==f.value?(0,i.bF)("div",{class:`${e.prefixCls}-success-bg`,style:p.value},null):null])]),null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}),C=(n(20116),n(90144));const T={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},k=e=>{const t=(0,C.KR)(null);return(0,i.$u)(()=>{const n=Date.now();let r=!1;e.value.forEach(e=>{const i=(null===e||void 0===e?void 0:e.$el)||e;if(!i)return;r=!0;const o=i.style;o.transitionDuration=".3s, .3s, .3s, .06s",t.value&&n-t.value<100&&(o.transitionDuration="0s, 0s")}),r&&(t.value=Date.now())}),e},O={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};var M=n(78082),I=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};let D=0;function N(e){return+e.replace("%","")}function R(e){return Array.isArray(e)?e:[e]}function L(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5?arguments[5]:void 0;const a=50-r/2;let s=0,l=-a,c=0,u=-2*a;switch(o){case"left":s=-a,l=0,c=2*a,u=0;break;case"right":s=a,l=0,c=-2*a,u=0;break;case"bottom":l=a,u=2*a;break;default:}const d=`M 50,50 m ${s},${l}\n   a ${a},${a} 0 1 1 ${c},${-u}\n   a ${a},${a} 0 1 1 ${-c},${u}`,h=2*Math.PI*a,f={stroke:n,strokeDasharray:`${t/100*(h-i)}px ${h}px`,strokeDashoffset:`-${i/2+e/100*(h-i)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:d,pathStyle:f}}var B=(0,i.pM)({compatConfig:{MODE:3},name:"VCCircle",props:(0,o.A)(O,T),setup(e){D+=1;const t=(0,C.KR)(D),n=(0,i.EW)(()=>R(e.percent)),o=(0,i.EW)(()=>R(e.strokeColor)),[a,s]=(0,M.A)();k(s);const l=()=>{const{prefixCls:s,strokeWidth:l,strokeLinecap:c,gapDegree:u,gapPosition:d}=e;let h=0;return n.value.map((e,n)=>{const f=o.value[n]||o.value[o.value.length-1],p="[object Object]"===Object.prototype.toString.call(f)?`url(#${s}-gradient-${t.value})`:"",{pathString:g,pathStyle:m}=L(h,e,f,l,u,d);h+=e;const v={key:n,d:g,stroke:p,"stroke-linecap":c,"stroke-width":l,opacity:0===e?0:1,"fill-opacity":"0",class:`${s}-circle-path`,style:m};return(0,i.bF)("path",(0,r.A)({ref:a(n)},v),null)})};return()=>{const{prefixCls:n,strokeWidth:a,trailWidth:s,gapDegree:c,gapPosition:u,trailColor:d,strokeLinecap:h,strokeColor:f}=e,p=I(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:g,pathStyle:m}=L(0,100,d,a,c,u);delete p.percent;const v=o.value.find(e=>"[object Object]"===Object.prototype.toString.call(e)),A={d:g,stroke:d,"stroke-linecap":h,"stroke-width":s||a,"fill-opacity":"0",class:`${n}-circle-trail`,style:m};return(0,i.bF)("svg",(0,r.A)({class:`${n}-circle`,viewBox:"0 0 100 100"},p),[v&&(0,i.bF)("defs",null,[(0,i.bF)("linearGradient",{id:`${n}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(v).sort((e,t)=>N(e)-N(t)).map((e,t)=>(0,i.bF)("stop",{key:t,offset:e,"stop-color":v[e]},null))])]),(0,i.bF)("path",A,null),l().reverse()])}}}),P=n(35678);const F=()=>(0,u.A)((0,u.A)({},p()),{strokeColor:(0,h.ds)()}),$=3,j=e=>$/e*100;var H=(0,i.pM)({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:(0,o.A)(F(),{trailColor:null}),setup(e,t){let{slots:n,attrs:o}=t;const a=(0,i.EW)(()=>{var t;return null!==(t=e.width)&&void 0!==t?t:120}),s=(0,i.EW)(()=>{var t;return null!==(t=e.size)&&void 0!==t?t:[a.value,a.value]}),l=(0,i.EW)(()=>y(s.value,"circle")),c=(0,i.EW)(()=>e.gapDegree||0===e.gapDegree?e.gapDegree:"dashboard"===e.type?75:void 0),u=(0,i.EW)(()=>({width:`${l.value.width}px`,height:`${l.value.height}px`,fontSize:.15*l.value.width+6+"px"})),d=(0,i.EW)(()=>{var t;return null!==(t=e.strokeWidth)&&void 0!==t?t:Math.max(j(l.value.width),6)}),h=(0,i.EW)(()=>e.gapPosition||"dashboard"===e.type&&"bottom"||void 0),f=(0,i.EW)(()=>A(e)),p=(0,i.EW)(()=>"[object Object]"===Object.prototype.toString.call(e.strokeColor)),g=(0,i.EW)(()=>b({success:e.success,strokeColor:e.strokeColor})),m=(0,i.EW)(()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:p.value}));return()=>{var t;const a=(0,i.bF)(B,{percent:f.value,strokeWidth:d.value,trailWidth:d.value,strokeColor:g.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:c.value,gapPosition:h.value},null);return(0,i.bF)("div",(0,r.A)((0,r.A)({},o),{},{class:[m.value,o.class],style:[o.style,u.value]}),[l.value.width<=20?(0,i.bF)(P.A,null,{default:()=>[(0,i.bF)("span",null,[a])],title:n.default}):(0,i.bF)(i.FK,null,[a,null===(t=n.default)||void 0===t?void 0:t.call(n)])])}}});const U=()=>(0,u.A)((0,u.A)({},p()),{steps:Number,strokeColor:(0,h.tK)(),trailColor:String});var Q=(0,i.pM)({compatConfig:{MODE:3},name:"Steps",props:U(),setup(e,t){let{slots:n}=t;const r=(0,i.EW)(()=>Math.round(e.steps*((e.percent||0)/100))),o=(0,i.EW)(()=>{var t;return null!==(t=e.size)&&void 0!==t?t:["small"===e.size?2:14,e.strokeWidth||8]}),a=(0,i.EW)(()=>y(o.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8})),s=(0,i.EW)(()=>{const{steps:t,strokeColor:n,trailColor:o,prefixCls:s}=e,l=[];for(let e=0;e<t;e+=1){const c=Array.isArray(n)?n[e]:n,u={[`${s}-steps-item`]:!0,[`${s}-steps-item-active`]:e<=r.value-1};l.push((0,i.bF)("div",{key:e,class:u,style:{backgroundColor:e<=r.value-1?c:o,width:a.value.width/t+"px",height:`${a.value.height}px`}},null))}return l});return()=>{var t;return(0,i.bF)("div",{class:`${e.prefixCls}-steps-outer`},[s.value,null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}),z=n(60674),W=n(58085),G=n(90112),V=n(9519),K=n(36068);const Y=new W.A("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),q=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:(0,u.A)((0,u.A)({},(0,K.dF)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:Y,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},X=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.fontSize/e.fontSizeSM+"em"}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},J=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},Z=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}};var ee=(0,G.A)("Progress",e=>{const t=e.marginXXS/2,n=(0,V.h1)(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[q(n),X(n),J(n),Z(n)]}),te=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},ne=(0,i.pM)({compatConfig:{MODE:3},name:"AProgress",inheritAttrs:!1,props:(0,o.A)(p(),{type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",strokeLinecap:"round"}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:u,direction:d}=(0,z.A)("progress",e),[h,p]=ee(u);const g=(0,i.EW)(()=>Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor),A=(0,i.EW)(()=>{const{percent:t=0}=e,n=v(e);return parseInt(void 0!==n?n.toString():t.toString(),10)}),b=(0,i.EW)(()=>{const{status:t}=e;return!f.includes(t)&&A.value>=100?"success":t||"normal"}),w=(0,i.EW)(()=>{const{type:t,showInfo:n,size:r}=e,i=u.value;return{[i]:!0,[`${i}-inline-circle`]:"circle"===t&&y(r,"circle").width<=20,[`${i}-${"dashboard"===t?"circle":t}`]:!0,[`${i}-status-${b.value}`]:!0,[`${i}-show-info`]:n,[`${i}-${r}`]:r,[`${i}-rtl`]:"rtl"===d.value,[p.value]:!0}}),_=(0,i.EW)(()=>"string"===typeof e.strokeColor||Array.isArray(e.strokeColor)?e.strokeColor:void 0),x=()=>{const{showInfo:t,format:r,type:o,percent:d,title:h}=e,f=v(e);if(!t)return null;let p;const g=r||(null===n||void 0===n?void 0:n.format)||(e=>`${e}%`),A="line"===o;return r||(null===n||void 0===n?void 0:n.format)||"exception"!==b.value&&"success"!==b.value?p=g(m(d),m(f)):"exception"===b.value?p=A?(0,i.bF)(c.A,null,null):(0,i.bF)(a.A,null,null):"success"===b.value&&(p=A?(0,i.bF)(l.A,null,null):(0,i.bF)(s.A,null,null)),(0,i.bF)("span",{class:`${u.value}-text`,title:void 0===h&&"string"===typeof p?p:void 0},[p])};return()=>{const{type:t,steps:n,title:a}=e,{class:s}=o,l=te(o,["class"]),c=x();let f;return"line"===t?f=n?(0,i.bF)(Q,(0,r.A)((0,r.A)({},e),{},{strokeColor:_.value,prefixCls:u.value,steps:n}),{default:()=>[c]}):(0,i.bF)(S,(0,r.A)((0,r.A)({},e),{},{strokeColor:g.value,prefixCls:u.value,direction:d.value}),{default:()=>[c]}):"circle"!==t&&"dashboard"!==t||(f=(0,i.bF)(H,(0,r.A)((0,r.A)({},e),{},{prefixCls:u.value,strokeColor:g.value,progressStatus:b.value}),{default:()=>[c]})),h((0,i.bF)("div",(0,r.A)((0,r.A)({role:"progressbar"},l),{},{class:[w.value,s],title:a}),[f]))}}}),re=(0,h.GU)(ne)},40488:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});var r=n(56768),i=n(81425),o=n(72928),a=n(90144),s=n(45887),l=n(32545),c=n(44678),u=n(39258),d=n(20881);const h=`vc-util-locker-${Date.now()}`;let f=0;function p(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function g(e){const t=(0,r.EW)(()=>!!e&&!!e.value);f+=1;const n=`${h}_${f}`;(0,r.nT)(e=>{if((0,s.A)()){if(t.value){const e=(0,d.A)(),t=p();(0,u.BD)(`\nhtml body {\n  overflow-y: hidden;\n  ${t?`width: calc(100% - ${e}px);`:""}\n}`,n)}else(0,u.m6)(n);e(()=>{(0,u.m6)(n)})}},{flush:"post"})}let m=0;const v=(0,s.A)();const A=e=>{if(!v)return null;if(e){if("string"===typeof e)return document.querySelectorAll(e)[0];if("function"===typeof e)return e();if("object"===typeof e&&e instanceof window.HTMLElement)return e}return document.body};var b=(0,r.pM)({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:i.A.any,visible:{type:Boolean,default:void 0},autoLock:(0,c.HE)(),didUpdate:Function},setup(e,t){let{slots:n}=t;const i=(0,a.IJ)(),c=(0,a.IJ)(),u=(0,a.IJ)(),d=(0,a.IJ)(1),h=(0,s.A)()&&document.createElement("div"),f=()=>{var e,t;i.value===h&&(null===(t=null===(e=i.value)||void 0===e?void 0:e.parentNode)||void 0===t||t.removeChild(i.value)),i.value=null};let p=null;const b=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!(t||i.value&&!i.value.parentNode)||(p=A(e.getContainer),!!p&&(p.appendChild(i.value),!0))},y=()=>v?(i.value||(i.value=h,b(!0)),w(),i.value):null,w=()=>{const{wrapperClassName:t}=e;i.value&&t&&t!==i.value.className&&(i.value.className=t)};return(0,r.$u)(()=>{w(),b()}),g((0,r.EW)(()=>e.autoLock&&e.visible&&(0,s.A)()&&(i.value===document.body||i.value===h))),(0,r.sV)(()=>{let t=!1;(0,r.wB)([()=>e.visible,()=>e.getContainer],(n,r)=>{let[i,o]=n,[a,s]=r;if(v&&(p=A(e.getContainer),p===document.body&&(i&&!a?m+=1:t&&(m-=1))),t){const e="function"===typeof o&&"function"===typeof s;(e?o.toString()!==s.toString():o!==s)&&f()}t=!0},{immediate:!0,flush:"post"}),(0,r.dY)(()=>{b()||(u.value=(0,l.A)(()=>{d.value+=1}))})}),(0,r.xo)(()=>{const{visible:t}=e;v&&p===document.body&&(m=t&&m?m-1:m),f(),l.A.cancel(u.value)}),()=>{const{forceRender:t,visible:i}=e;let a=null;const s={getOpenCount:()=>m,getContainer:y};return d.value&&(t||i||c.value)&&(a=(0,r.bF)(o.A,{getContainer:y,ref:c,didUpdate:e.didUpdate},{default:()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n,s)}})),a}}})},40507:function(e,t,n){"use strict";var r=n(69565);e.exports=function(e,t,n){var i,o,a=n?e:e.iterator,s=e.next;while(!(i=r(s,a)).done)if(o=t(i.value),void 0!==o)return o}},40616:function(e,t,n){"use strict";var r=n(79039);e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},40860:function(e){const t=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],i=[...n,...r],o=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),a=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),s=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),l=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function c(e){const n=t(e),r=s,c=a,u="@[a-z-]+",d="and or not only",h="[a-zA-Z-][a-zA-Z0-9_-]*",f={className:"variable",begin:"(\\$"+h+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+i.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+c.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+r.join("|")+")"},f,{begin:/\(/,end:/\)/,contains:[n.CSS_NUMBER_MODE]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+l.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[n.BLOCK_COMMENT,f,n.HEXCOLOR,n.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,n.IMPORTANT,n.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:u,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:d,attribute:o.join(" ")},contains:[{begin:u,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},f,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,n.HEXCOLOR,n.CSS_NUMBER_MODE]},n.FUNCTION_DISPATCH]}}e.exports=c},41e3:function(e,t,n){n(44114),n(18111),n(20116),function(e){e(n(83800))}(function(e){"use strict";function t(e){e.state.markedSelection&&e.operation(function(){c(e)})}function n(e){e.state.markedSelection&&e.state.markedSelection.length&&e.operation(function(){s(e)})}e.defineOption("styleSelectedText",!1,function(r,i,o){var a=o&&o!=e.Init;i&&!a?(r.state.markedSelection=[],r.state.markedSelectionStyle="string"==typeof i?i:"CodeMirror-selectedtext",l(r),r.on("cursorActivity",t),r.on("change",n)):!i&&a&&(r.off("cursorActivity",t),r.off("change",n),s(r),r.state.markedSelection=r.state.markedSelectionStyle=null)});var r=8,i=e.Pos,o=e.cmpPos;function a(e,t,n,a){if(0!=o(t,n))for(var s=e.state.markedSelection,l=e.state.markedSelectionStyle,c=t.line;;){var u=c==t.line?t:i(c,0),d=c+r,h=d>=n.line,f=h?n:i(d,0),p=e.markText(u,f,{className:l});if(null==a?s.push(p):s.splice(a++,0,p),h)break;c=d}}function s(e){for(var t=e.state.markedSelection,n=0;n<t.length;++n)t[n].clear();t.length=0}function l(e){s(e);for(var t=e.listSelections(),n=0;n<t.length;n++)a(e,t[n].from(),t[n].to())}function c(e){if(!e.somethingSelected())return s(e);if(e.listSelections().length>1)return l(e);var t=e.getCursor("start"),n=e.getCursor("end"),i=e.state.markedSelection;if(!i.length)return a(e,t,n);var c=i[0].find(),u=i[i.length-1].find();if(!c||!u||n.line-t.line<=r||o(t,u.to)>=0||o(n,c.from)<=0)return l(e);while(o(t,c.from)>0)i.shift().clear(),c=i[0].find();o(t,c.from)<0&&(c.to.line-t.line<r?(i.shift().clear(),a(e,t,c.to,0)):a(e,t,c.from,0));while(o(n,u.to)<0)i.pop().clear(),u=i[i.length-1].find();o(n,u.to)>0&&(n.line-u.from.line<r?(i.pop().clear(),a(e,u.from,n)):a(e,u.to,n))}})},41018:function(e,t,n){"use strict";var r=n(35061),i=n(26841),o=Object.prototype,a=o.hasOwnProperty;function s(e,t,n){var o=e[t];a.call(e,t)&&(0,i.A)(o,n)&&(void 0!==n||t in e)||(0,r.A)(e,t,n)}t.A=s},41034:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});n(44114),n(18111),n(22489),n(7588);var r=n(23772);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){(0,r.A)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}},41050:function(e,t,n){"use strict";n.d(t,{ZZ:function(){return s},nP:function(){return a}});n(18111),n(61701);var r=n(68333);const i=r.s.map(e=>`${e}-inverse`),o=["success","processing","error","default","warning"];function a(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?[...i,...r.s].includes(e):r.s.includes(e)}function s(e){return o.includes(e)}},41093:function(e){function t(e){const t={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},n={className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},r="property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii";return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:r,contains:[n,t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)</,end:/>/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*</,end:/>\s*>/,subLanguage:"xml"}]}}e.exports=t},41175:function(e){function t(e){const t=e.regex,n=["lcase","month","vartype","instrrev","ubound","setlocale","getobject","rgb","getref","string","weekdayname","rnd","dateadd","monthname","now","day","minute","isarray","cbool","round","formatcurrency","conversions","csng","timevalue","second","year","space","abs","clng","timeserial","fixs","len","asc","isempty","maths","dateserial","atn","timer","isobject","filter","weekday","datevalue","ccur","isdate","instr","datediff","formatdatetime","replace","isnull","right","sgn","array","snumeric","log","cdbl","hex","chr","lbound","msgbox","ucase","getlocale","cos","cdate","cbyte","rtrim","join","hour","oct","typename","trim","strcomp","int","createobject","loadpicture","tan","formatnumber","mid","split","cint","sin","datepart","ltrim","sqr","time","derived","eval","date","formatpercent","exp","inputbox","left","ascw","chrw","regexp","cstr","err"],r=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],i={begin:t.concat(t.either(...n),"\\s*\\("),relevance:0,keywords:{built_in:n}},o=["true","false","null","nothing","empty"],a=["call","class","const","dim","do","loop","erase","execute","executeglobal","exit","for","each","next","function","if","then","else","on","error","option","explicit","new","private","property","let","get","public","randomize","redim","rem","select","case","set","stop","sub","while","wend","with","end","to","elseif","is","or","xor","and","not","class_initialize","class_terminate","default","preserve","in","me","byval","byref","step","resume","goto"];return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:a,built_in:r,literal:o},illegal:"//",contains:[i,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}e.exports=t},41210:function(e,t){function n(e){if("string"!==typeof e)throw new Error("Param is not a string");const n=e.toLowerCase();switch(n){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&"undefined"!==typeof e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e;try{return n(e)}catch(i){return r}}},41549:function(e,t,n){"use strict";n(16632)},41805:function(e,t,n){"use strict";var r=n(47083),i=n(5351);function o(e){return null!=e&&(0,i.A)(e.length)&&!(0,r.A)(e)}t.A=o},41838:function(e,t,n){function r(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);const l={match:/\\"/},c={className:"string",begin:/'/,end:/'/},u={match:/\\'/},d={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},h=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],f=e.SHEBANG({binary:`(${h.join("|")})`,relevance:10}),p={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},g=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],m=["true","false"],v={match:/(\/[a-z._-]+)+/},A=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],b=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],y=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],w=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:g,literal:m,built_in:[...A,...b,"set","shopt",...y,...w]},contains:[f,e.SHEBANG(),p,d,o,a,v,s,l,c,u,n]}}n(44114),e.exports=r},41904:function(e,t,n){"use strict";n(18111),n(7588);var r=n(38809);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function l(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return r.forEach(Object.keys(e).concat(Object.keys(t)),function(e){var t=c[e]||o,i=t(e);r.isUndefined(i)&&t!==l||(n[e]=i)}),n}},42037:function(e,t,n){"use strict";function r(e){let{prefixCls:t,animation:n,transitionName:r}=e;return n?{name:`${t}-${n}`}:r?{name:r}:{}}n.d(t,{V:function(){return r}})},42061:function(e,t,n){n(44114),function(e){e(n(83800),n(51253),n(90365))}(function(e){"use strict";e.defineMode("markdown",function(t,n){var r=e.getMode(t,"text/html"),i="null"==r.name;function o(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=e.getMode(t,n);return"null"==i.name?null:i}void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.fencedCodeBlockDefaultMode&&(n.fencedCodeBlockDefaultMode="text/plain"),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var a={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var s in a)a.hasOwnProperty(s)&&n.tokenTypeOverrides[s]&&(a[s]=n.tokenTypeOverrides[s]);var l=/^([*\-_])(?:\s*\1){2,}\s*$/,c=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,d=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,h=/^ {0,3}(?:\={1,}|-{2,})\s*$/,f=/^[^#!\[\]*_\\<>` "'(~:]+/,p=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,g=/^\s*\[[^\]]+?\]:.*$/,m=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\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\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\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-\u2E42\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]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,v="    ";function A(e,t,n){return t.f=t.inline=n,n(e,t)}function b(e,t,n){return t.f=t.block=n,n(e,t)}function y(e){return!e||!/\S/.test(e.string)}function w(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==x){var n=i;if(!n){var o=e.innerMode(r,t.htmlState);n="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}n&&(t.f=T,t.block=_,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function _(t,r){var i=t.column()===r.indentation,s=y(r.prevLine.stream),f=r.indentedCode,m=r.prevLine.hr,v=!1!==r.list,b=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var w=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,v)){r.list=null;while(w<r.listStack[r.listStack.length-1])r.listStack.pop(),r.listStack.length?r.indentation=r.listStack[r.listStack.length-1]:r.list=!1;!1!==r.list&&(r.indentationDiff=w-r.listStack[r.listStack.length-1])}var _=!s&&!m&&!r.prevLine.header&&(!v||!f)&&!r.prevLine.fencedCodeEnd,x=(!1===r.list||m||s)&&r.indentation<=b&&t.match(l),C=null;if(r.indentationDiff>=4&&(f||r.prevLine.fencedCodeEnd||r.prevLine.header||s))return t.skipToEnd(),r.indentedCode=!0,a.code;if(t.eatSpace())return null;if(i&&r.indentation<=b&&(C=t.match(d))&&C[1].length<=6)return r.quote=0,r.header=C[1].length,r.thisLine.header=!0,n.highlightFormatting&&(r.formatting="header"),r.f=r.inline,S(r);if(r.indentation<=b&&t.eat(">"))return r.quote=i?1:r.quote+1,n.highlightFormatting&&(r.formatting="quote"),t.eatSpace(),S(r);if(!x&&!r.setext&&i&&r.indentation<=b&&(C=t.match(c))){var T=C[1]?"ol":"ul";return r.indentation=w+t.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,n.taskLists&&t.match(u,!1)&&(r.taskList=!0),r.f=r.inline,n.highlightFormatting&&(r.formatting=["list","list-"+T]),S(r)}return i&&r.indentation<=b&&(C=t.match(p,!0))?(r.quote=0,r.fencedEndRE=new RegExp(C[1]+"+ *$"),r.localMode=n.fencedCodeBlockHighlighting&&o(C[2]||n.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=e.startState(r.localMode)),r.f=r.block=E,n.highlightFormatting&&(r.formatting="code-block"),r.code=-1,S(r)):r.setext||!(_&&v||r.quote||!1!==r.list||r.code||x||g.test(t.string))&&(C=t.lookAhead(1))&&(C=C.match(h))?(r.setext?(r.header=r.setext,r.setext=0,t.skipToEnd(),n.highlightFormatting&&(r.formatting="header")):(r.header="="==C[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,S(r)):x?(t.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,a.hr):"["===t.peek()?A(t,r,D):A(t,r,r.inline)}function x(t,n){var o=r.token(t,n.htmlState);if(!i){var a=e.innerMode(r,n.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=T,n.block=_,n.htmlState=null)}return o}function E(e,t){var r,i=t.listStack[t.listStack.length-1]||0,o=t.indentation<i,s=i+3;return t.fencedEndRE&&t.indentation<=s&&(o||e.match(t.fencedEndRE))?(n.highlightFormatting&&(t.formatting="code-block"),o||(r=S(t)),t.localMode=t.localState=null,t.block=_,t.f=T,t.fencedEndRE=null,t.code=0,t.thisLine.fencedCodeEnd=!0,o?b(e,t,t.block):r):t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),a.code)}function S(e){var t=[];if(e.formatting){t.push(a.formatting),"string"===typeof e.formatting&&(e.formatting=[e.formatting]);for(var r=0;r<e.formatting.length;r++)t.push(a.formatting+"-"+e.formatting[r]),"header"===e.formatting[r]&&t.push(a.formatting+"-"+e.formatting[r]+"-"+e.header),"quote"===e.formatting[r]&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(a.formatting+"-"+e.formatting[r]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(a.linkHref,"url"):(e.strong&&t.push(a.strong),e.em&&t.push(a.em),e.strikethrough&&t.push(a.strikethrough),e.emoji&&t.push(a.emoji),e.linkText&&t.push(a.linkText),e.code&&t.push(a.code),e.image&&t.push(a.image),e.imageAltText&&t.push(a.imageAltText,"link"),e.imageMarker&&t.push(a.imageMarker)),e.header&&t.push(a.header,a.header+"-"+e.header),e.quote&&(t.push(a.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(a.quote+"-"+e.quote):t.push(a.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?t.push(a.list2):t.push(a.list3):t.push(a.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function C(e,t){if(e.match(f,!0))return S(t)}function T(t,i){var o=i.text(t,i);if("undefined"!==typeof o)return o;if(i.list)return i.list=null,S(i);if(i.taskList){var s=" "===t.match(u,!0)[1];return s?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,S(i)}if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),S(i);var l=t.next();if(i.linkTitle){i.linkTitle=!1;var c=l;"("===l&&(c=")"),c=(c+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var d="^\\s*(?:[^"+c+"\\\\]+|\\\\\\\\|\\\\.)"+c;if(t.match(new RegExp(d),!0))return a.linkHref}if("`"===l){var h=i.formatting;n.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var f=t.current().length;if(0!=i.code||i.quote&&1!=f){if(f==i.code){var p=S(i);return i.code=0,p}return i.formatting=h,S(i)}return i.code=f,S(i)}if(i.code)return S(i);if("\\"===l&&(t.next(),n.highlightFormatting)){var g=S(i),v=a.formatting+"-escape";return g?g+" "+v:v}if("!"===l&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),S(i);if("["===l&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),S(i);if("]"===l&&i.imageAltText){n.highlightFormatting&&(i.formatting="image");g=S(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=O,g}if("["===l&&!i.image)return i.linkText&&t.match(/^.*?\]/)||(i.linkText=!0,n.highlightFormatting&&(i.formatting="link")),S(i);if("]"===l&&i.linkText){n.highlightFormatting&&(i.formatting="link");g=S(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?O:T,g}if("<"===l&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=k,n.highlightFormatting&&(i.formatting="link");g=S(i);return g?g+=" ":g="",g+a.linkInline}if("<"===l&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){i.f=i.inline=k,n.highlightFormatting&&(i.formatting="link");g=S(i);return g?g+=" ":g="",g+a.linkEmail}if(n.xml&&"<"===l&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var A=t.string.indexOf(">",t.pos);if(-1!=A){var y=t.string.substring(t.start,A);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(y)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=e.startState(r),b(t,i,x)}if(n.xml&&"<"===l&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===l||"_"===l){var w=1,_=1==t.pos?" ":t.string.charAt(t.pos-2);while(w<3&&t.eat(l))w++;var E=t.peek()||" ",C=!/\s/.test(E)&&(!m.test(E)||/\s/.test(_)||m.test(_)),M=!/\s/.test(_)&&(!m.test(_)||/\s/.test(E)||m.test(E)),I=null,D=null;if(w%2&&(i.em||!C||"*"!==l&&M&&!m.test(_)?i.em!=l||!M||"*"!==l&&C&&!m.test(E)||(I=!1):I=!0),w>1&&(i.strong||!C||"*"!==l&&M&&!m.test(_)?i.strong!=l||!M||"*"!==l&&C&&!m.test(E)||(D=!1):D=!0),null!=D||null!=I){n.highlightFormatting&&(i.formatting=null==I?"strong":null==D?"em":"strong em"),!0===I&&(i.em=l),!0===D&&(i.strong=l);p=S(i);return!1===I&&(i.em=!1),!1===D&&(i.strong=!1),p}}else if(" "===l&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return S(i);t.backUp(1)}if(n.strikethrough)if("~"===l&&t.eatWhile(l)){if(i.strikethrough){n.highlightFormatting&&(i.formatting="strikethrough");p=S(i);return i.strikethrough=!1,p}if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),S(i)}else if(" "===l&&t.match("~~",!0)){if(" "===t.peek())return S(i);t.backUp(2)}if(n.emoji&&":"===l&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var N=S(i);return i.emoji=!1,N}return" "===l&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),S(i)}function k(e,t){var r=e.next();if(">"===r){t.f=t.inline=T,n.highlightFormatting&&(t.formatting="link");var i=S(t);return i?i+=" ":i="",i+a.linkInline}return e.match(/^[^>]+/,!0),a.linkInline}function O(e,t){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(t.f=t.inline=I("("===r?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,S(t)):"error"}var M={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function I(e){return function(t,r){var i=t.next();if(i===e){r.f=r.inline=T,n.highlightFormatting&&(r.formatting="link-string");var o=S(r);return r.linkHref=!1,o}return t.match(M[e]),r.linkHref=!0,S(r)}}function D(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=N,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,S(t)):A(e,t,T)}function N(e,t){if(e.match("]:",!0)){t.f=t.inline=R,n.highlightFormatting&&(t.formatting="link");var r=S(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function R(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),t.f=t.inline=T,a.linkHref+" url")}var L={startState:function(){return{f:_,prevLine:{stream:null},thisLine:{stream:null},block:_,htmlState:null,indentation:0,inline:T,text:C,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return w(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=x)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,v).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==x?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:L}},indent:function(t,n,i){return t.block==x&&r.indent?r.indent(t.htmlState,n,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,i):e.Pass},blankLine:w,getType:S,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return L},"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")})},42303:function(e,t,n){"use strict";var r=n(44576),i=n(79504),o=r.Uint8Array,a=r.SyntaxError,s=r.parseInt,l=Math.min,c=/[^\da-f]/i,u=i(c.exec),d=i("".slice);e.exports=function(e,t){var n=e.length;if(n%2!==0)throw new a("String should be an even number of characters");var r=t?l(t.length,n/2):n/2,i=t||new o(r),h=0,f=0;while(f<r){var p=d(e,h,h+=2);if(u(c,p))throw new a("String should only contain hex characters");i[f++]=s(p,16)}return{bytes:i,read:h}}},42472:function(e,t,n){"use strict";n.d(t,{K6:function(){return O},Ay:function(){return N},RQ:function(){return k}});n(18111),n(61701);var r=n(41034),i=n(56768),o=n(49974),a=n(66139),s=n(60674),l=n(65803),c=n(81425),u=n(44678),d=n(91647),h=n(26200),f=n(26162),p=n(23506),g=n(41805),m=n(1120),v=n(83110),A=n(14381),b="[object Map]",y="[object Set]",w=Object.prototype,_=w.hasOwnProperty;function x(e){if(null==e)return!0;if((0,g.A)(e)&&((0,p.A)(e)||"string"==typeof e||"function"==typeof e.splice||(0,m.A)(e)||(0,A.A)(e)||(0,f.A)(e)))return!e.length;var t=(0,h.A)(e);if(t==b||t==y)return!e.size;if((0,v.A)(e))return!(0,d.A)(e).length;for(var n in e)if(_.call(e,n))return!1;return!0}var E=x,S=n(44832);const C=()=>({compactSize:String,compactDirection:c.A.oneOf((0,u.PV)("horizontal","vertical")).def("horizontal"),isFirstItem:(0,u.HE)(),isLastItem:(0,u.HE)()}),T=(0,a.A)(null),k=(e,t)=>{const n=T.useInject(),r=(0,i.EW)(()=>{if(!n||E(n))return"";const{compactDirection:r,isFirstItem:i,isLastItem:a}=n,s="vertical"===r?"-vertical-":"-";return(0,o.A)({[`${e.value}-compact${s}item`]:!0,[`${e.value}-compact${s}first-item`]:i,[`${e.value}-compact${s}last-item`]:a,[`${e.value}-compact${s}item-rtl`]:"rtl"===t.value})});return{compactSize:(0,i.EW)(()=>null===n||void 0===n?void 0:n.compactSize),compactDirection:(0,i.EW)(()=>null===n||void 0===n?void 0:n.compactDirection),compactItemClassnames:r}},O=(0,i.pM)({name:"NoCompactStyle",setup(e,t){let{slots:n}=t;return T.useProvide(null),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),M=()=>({prefixCls:String,size:{type:String},direction:c.A.oneOf((0,u.PV)("horizontal","vertical")).def("horizontal"),align:c.A.oneOf((0,u.PV)("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),I=(0,i.pM)({name:"CompactItem",props:C(),setup(e,t){let{slots:n}=t;return T.useProvide(e),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),D=(0,i.pM)({name:"ASpaceCompact",inheritAttrs:!1,props:M(),setup(e,t){let{attrs:n,slots:a}=t;const{prefixCls:c,direction:u}=(0,s.A)("space-compact",e),d=T.useInject(),[h,f]=(0,l.A)(c),p=(0,i.EW)(()=>(0,o.A)(c.value,f.value,{[`${c.value}-rtl`]:"rtl"===u.value,[`${c.value}-block`]:e.block,[`${c.value}-vertical`]:"vertical"===e.direction}));return()=>{var t;const o=(0,S.MI)((null===(t=a.default)||void 0===t?void 0:t.call(a))||[]);return 0===o.length?null:h((0,i.bF)("div",(0,r.A)((0,r.A)({},n),{},{class:[p.value,n.class]}),[o.map((t,n)=>{var r;const a=t&&t.key||`${c.value}-item-${n}`,s=!d||E(d);return(0,i.bF)(I,{key:a,compactSize:null!==(r=e.size)&&void 0!==r?r:"middle",compactDirection:e.direction,isFirstItem:0===n&&(s||(null===d||void 0===d?void 0:d.isFirstItem)),isLastItem:n===o.length-1&&(s||(null===d||void 0===d?void 0:d.isLastItem))},{default:()=>[t]})})]))}}});var N=D},42529:function(e,t,n){"use strict";n.d(t,{B:function(){return u},GM:function(){return g},Jt:function(){return A},Og:function(){return b},T1:function(){return i},U6:function(){return d},V5:function(){return p},j6:function(){return l},n8:function(){return c},uk:function(){return o},wf:function(){return m},xs:function(){return a}});n(44114),n(18111),n(22489),n(7588);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C(r.key),r)}}function l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t,n){return t=C(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function f(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){if(t&&("object"===typeof t||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function m(e){var t=f();return function(){var n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g(this,n)}}function v(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=d(e),null===e)break;return e}function A(){return A="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=v(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},A.apply(this,arguments)}function b(e){return y(e)||w(e)||_(e)||E()}function y(e){if(Array.isArray(e))return x(e)}function w(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _(e,t){if(e){if("string"===typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function C(e){var t=S(e,"string");return"symbol"===typeof t?t:String(t)}},42736:function(e){function t(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:"</",contains:[e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}e.exports=t},42787:function(e,t,n){"use strict";var r=n(39297),i=n(94901),o=n(48981),a=n(66119),s=n(12211),l=a("IE_PROTO"),c=Object,u=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=o(e);if(r(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof c?u:null}},42937:function(e,t,n){(function(e){e(n(83800),n(42061),n(5361))})(function(e){"use strict";var t=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;e.defineMode("gfm",function(n,r){var i=0;function o(e){return e.code=!1,null}var a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if("`"===e.peek()){e.next();var o=e.pos;e.eatWhile("`");var a=1+e.pos-o;return n.code?a===i&&(n.code=!1):(i=a,n.code=!0),null}if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,!1!==r.gitHubSpice)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return e.match(t)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(n.combineTokens=!0,"link"):(e.next(),null)},blankLine:o},s={taskLists:!0,strikethrough:!0,emoji:!0};for(var l in r)s[l]=r[l];return s.name="markdown",e.overlayMode(e.getMode(n,s),a)},"markdown"),e.defineMIME("text/x-gfm","gfm")})},42979:function(e){function t(e){const t=e.regex,n="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",r="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",i=["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],o=["false","nil","true"],a={$pattern:n,keyword:i,literal:o},s={className:"subst",begin:/#\{/,end:/\}/,keywords:a},l={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},c=/\\[\s\S]/,u={match:c,scope:"char.escape",relevance:0},d="[/|([{<\"']",h=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],f=e=>({scope:"char.escape",begin:t.concat(/\\/,e),relevance:0}),p={className:"string",begin:"~[a-z](?="+d+")",contains:h.map(t=>e.inherit(t,{contains:[f(t.end),u,s]}))},g={className:"string",begin:"~[A-Z](?="+d+")",contains:h.map(t=>e.inherit(t,{contains:[f(t.end)]}))},m={className:"regex",variants:[{begin:"~r(?="+d+")",contains:h.map(n=>e.inherit(n,{end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[f(n.end),u,s]}))},{begin:"~R(?="+d+")",contains:h.map(n=>e.inherit(n,{end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[f(n.end)]}))}]},v={className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},A={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},b=e.inherit(A,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),y=[v,m,g,p,e.HASH_COMMENT_MODE,b,A,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[v,{begin:r}],relevance:0},{className:"symbol",begin:n+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},l,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return s.contains=y,{name:"Elixir",aliases:["ex","exs"],keywords:a,contains:y}}e.exports=t},43041:function(e){function t(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}e.exports=t},43085:function(e,t,n){"use strict";n.d(t,{p9:function(){return s}});var r=n(58085),i=n(33041);const o=new r.A("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),a=new r.A("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,s=t?"&":"";return[(0,i.b)(r,o,a,e.motionDurationMid,t),{[`\n        ${s}${r}-enter,\n        ${s}${r}-appear\n      `]:{opacity:0,animationTimingFunction:"linear"},[`${s}${r}-leave`]:{animationTimingFunction:"linear"}}]}},43142:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="FormOutlined",c.inheritAttrs=!1;var u=c},43277:function(e,t,n){"use strict";n.d(t,{A:function(){return E}});var r=n(56768),i=n(7403),o=n(87546),a=n(6252),s=n(60136),l=n(49974),c=n(27909),u=n(41034),d=n(90144),h=n(80816),f=n(23402);const p=()=>{const e=(0,d.IJ)(!1);return(0,r.xo)(()=>{e.value=!0}),e};var g=p,m=n(44678),v=n(44832);const A={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:(0,m.ge)(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function b(e){return!(!e||!e.then)}var y=(0,r.pM)({compatConfig:{MODE:3},name:"ActionButton",props:A,setup(e,t){let{slots:n}=t;const i=(0,d.IJ)(!1),o=(0,d.IJ)(),a=(0,d.IJ)(!1);let s;const l=g();(0,r.sV)(()=>{e.autofocus&&(s=setTimeout(()=>{var e,t;return null===(t=null===(e=(0,v.oK)(o.value))||void 0===e?void 0:e.focus)||void 0===t?void 0:t.call(e)}))}),(0,r.xo)(()=>{clearTimeout(s)});const c=function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null===(t=e.close)||void 0===t||t.call(e,...r)},p=e=>{b(e)&&(a.value=!0,e.then(function(){l.value||(a.value=!1),c(...arguments),i.value=!1},e=>(l.value||(a.value=!1),i.value=!1,Promise.reject(e))))},m=t=>{const{actionFn:n}=e;if(i.value)return;if(i.value=!0,!n)return void c();let r;if(e.emitEvent){if(r=n(t),e.quitOnNullishReturnValue&&!b(r))return i.value=!1,void c(t)}else if(n.length)r=n(e.close),i.value=!1;else if(r=n(),!r)return void c();p(r)};return()=>{const{type:t,prefixCls:i,buttonProps:s}=e;return(0,r.bF)(h.A,(0,u.A)((0,u.A)((0,u.A)({},(0,f.DU)(t)),{},{onClick:m,loading:a.value,prefixCls:i},s),{},{ref:o}),n)}}}),w=n(36590),_=n(51589);function x(e){return"function"===typeof e?e():e}var E=(0,r.pM)({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(e,t){let{attrs:n}=t;const[u]=(0,w.n)("Modal");return()=>{const{icon:t,onCancel:d,onOk:h,close:f,okText:p,closable:g=!1,zIndex:m,afterClose:v,keyboard:A,centered:b,getContainer:w,maskStyle:E,okButtonProps:S,cancelButtonProps:C,okCancel:T,width:k=416,mask:O=!0,maskClosable:M=!1,type:I,open:D,title:N,content:R,direction:L,closeIcon:B,modalRender:P,focusTriggerAfterClose:F,rootPrefixCls:$,bodyStyle:j,wrapClassName:H,footer:U}=e;let Q=t;if(!t&&null!==t)switch(I){case"info":Q=(0,r.bF)(s.A,null,null);break;case"success":Q=(0,r.bF)(i.A,null,null);break;case"error":Q=(0,r.bF)(o.A,null,null);break;default:Q=(0,r.bF)(a.A,null,null)}const z=e.okType||"primary",W=e.prefixCls||"ant-modal",G=`${W}-confirm`,V=n.style||{},K=null!==T&&void 0!==T?T:"confirm"===I,Y=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),q=`${W}-confirm`,X=(0,l.A)(q,`${q}-${e.type}`,{[`${q}-rtl`]:"rtl"===L},n.class),J=u.value,Z=K&&(0,r.bF)(y,{actionFn:d,close:f,autofocus:"cancel"===Y,buttonProps:C,prefixCls:`${$}-btn`},{default:()=>[x(e.cancelText)||J.cancelText]});return(0,r.bF)(c.A,{prefixCls:W,class:X,wrapClassName:(0,l.A)({[`${q}-centered`]:!!b},H),onCancel:e=>null===f||void 0===f?void 0:f({triggerCancel:!0},e),open:D,title:"",footer:"",transitionName:(0,_.by)($,"zoom",e.transitionName),maskTransitionName:(0,_.by)($,"fade",e.maskTransitionName),mask:O,maskClosable:M,maskStyle:E,style:V,bodyStyle:j,width:k,zIndex:m,afterClose:v,keyboard:A,centered:b,getContainer:w,closable:g,closeIcon:B,modalRender:P,focusTriggerAfterClose:F},{default:()=>[(0,r.bF)("div",{class:`${G}-body-wrapper`},[(0,r.bF)("div",{class:`${G}-body`},[x(Q),void 0===N?null:(0,r.bF)("span",{class:`${G}-title`},[x(N)]),(0,r.bF)("div",{class:`${G}-content`},[x(R)])]),void 0!==U?x(U):(0,r.bF)("div",{class:`${G}-btns`},[Z,(0,r.bF)(y,{type:z,actionFn:h,close:f,autofocus:"ok"===Y,buttonProps:S,prefixCls:`${$}-btn`},{default:()=>[x(p)||(K?J.okText:J.justOkText)]})])])]})}}})},43448:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="RightOutlined",c.inheritAttrs=!1;var u=c},43680:function(e,t,n){"use strict";n.d(t,{gd:function(){return u}});var r=n(51137),i=n(58085),o=n(90112),a=n(9519),s=n(36068);const l=new i.A("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),c=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:(0,r.A)((0,r.A)({},(0,s.dF)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:(0,r.A)((0,r.A)({},(0,s.dF)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:(0,r.A)((0,r.A)({},(0,s.dF)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:(0,r.A)({},(0,s.jk)(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[`\n        ${n}:not(${n}-disabled),\n        ${t}:not(${t}-disabled)\n      `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:l,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[`\n        ${n}-checked:not(${n}-disabled),\n        ${t}-checked:not(${t}-disabled)\n      `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function u(e,t){const n=(0,a.h1)(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[c(n)]}t.Ay=(0,o.A)("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[u(n,e)]})},43724:function(e,t,n){"use strict";var r=n(79039);e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},44114:function(e,t,n){"use strict";var r=n(46518),i=n(48981),o=n(26198),a=n(34527),s=n(96837),l=n(79039),c=l(function(){return 4294967297!==[].push.call({length:4294967296},1)}),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},d=c||!u();r({target:"Array",proto:!0,arity:1,forced:d},{push:function(e){var t=i(this),n=o(t),r=arguments.length;s(n+r);for(var l=0;l<r;l++)t[n]=arguments[l],n++;return a(t,n),n}})},44152:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var r=n(56768),i=n(90144),o=n(30050),a=n(34002),s=n(18436),l=n(90827);const c=e=>{const{componentCls:t,calc:n}=e,r=n(e.fontSizeHeading3).mul(e.lineHeightHeading3).equal(),i=n(e.fontSize).mul(e.lineHeight).equal();return{[t]:{gap:e.padding,[`${t}-icon`]:{height:n(r).add(i).add(e.paddingXXS).equal(),display:"flex",img:{height:"100%"}},[`${t}-content-wrapper`]:{gap:e.paddingXS,flex:"auto",minWidth:0,[`${t}-title-wrapper`]:{gap:e.paddingXS},[`${t}-title`]:{margin:0},[`${t}-extra`]:{marginInlineStart:"auto"}}}}},u=e=>{const{componentCls:t}=e;return{[t]:{"&-filled":{paddingInline:e.padding,paddingBlock:e.paddingSM,background:e.colorFillContent,borderRadius:e.borderRadiusLG},"&-borderless":{[`${t}-title`]:{fontSize:e.fontSizeHeading3,lineHeight:e.lineHeightHeading3}}}}},d=()=>({}),h=(0,l.OF)("Welcome",e=>{const t=(0,s.h1)(e,{});return[c(t),u(t)]},d);var f=n(10017),p=n(74789),g=n(3431);function m(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!(0,r.vv)(e)}const v=(0,r.pM)({name:"AXWelcome",__name:"Welcome",props:(0,r.HF)({prefixCls:null,rootClassName:null,className:null,style:null,variant:null,classNames:null,styles:null,icon:null,title:null,description:null,extra:null},{variant:"filled",classNames:()=>({}),styles:()=>({})}),setup(e){(0,i.lW)(e,"prefixCls");const t=(0,r.Ht)(),{direction:n,getPrefixCls:s}=(0,g.A)(),l=s("welcome",e.prefixCls),c=(0,a.A)("welcome"),[u,d,v]=h(l),A=(0,r.EW)(()=>{const n=t.icon?t.icon():"function"==typeof e.icon?e.icon():e.icon;if(!n)return null;let i=n;return"string"==typeof n&&n.startsWith("http")&&(i=(0,r.bF)("img",{src:n,alt:"icon"},null)),(0,r.bF)("div",{class:(0,o.b)(`${l}-icon`,c.value.classNames.icon,e.classNames.icon),style:e.styles.icon},[i])}),b=(0,r.EW)(()=>{const n=t.title?t.title():"function"==typeof e.title?e.title():e.title;return n?(0,r.bF)(f.Ay.Title,{level:4,class:(0,o.b)(`${l}-title`,c.value.classNames.title,e.classNames.title),style:e.styles.title},m(n)?n:{default:()=>[n]}):null}),y=(0,r.EW)(()=>t.description?t.description():"function"==typeof e.description?e.description():e.description),w=(0,r.EW)(()=>{const n=t.extra?t.extra():"function"==typeof e.extra?e.extra():e.extra;return n?(0,r.bF)("div",{class:(0,o.b)(`${l}-extra`,c.value.classNames.extra,e.classNames.extra),style:e.styles.extra},[n]):null});return()=>u((0,r.bF)(p.A,{class:(0,o.b)(l,c.value.className,e.className,e.rootClassName,d.value,v,`${l}-${e.variant}`,{[`${l}-rtl`]:"rtl"===n.value}),style:e.style},{default:()=>[A.value,(0,r.bF)(p.A,{vertical:!0,class:`${l}-content-wrapper`},{default:()=>[t.extra||e.extra?(0,r.bF)(p.A,{align:"flex-start",class:`${l}-title-wrapper`},{default:()=>[b.value,w.value]}):b.value,y.value&&(0,r.bF)(f.Ay.Text,{class:(0,o.b)(`${l}-description`,c.value.classNames.description,e.classNames.description),style:e.styles.description},{default:()=>[y.value]})]})]}))}})},44204:function(e,t,n){"use strict";var r=n(97080),i=n(94402).add,o=n(89286),a=n(83789),s=n(40507);e.exports=function(e){var t=r(this),n=a(e).getIterator(),l=o(t);return s(n,function(e){i(l,e)}),l}},44209:function(e,t,n){"use strict";var r=n(78227),i=n(26269),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},44491:function(e,t,n){"use strict";n.d(t,{A:function(){return H}});var r=n(41034),i=n(51137),o=n(56768),a=n(45130),s=n(81425),l=(n(18111),n(61701),n(49974)),c=n(82978),u=n(60674),d=(n(44114),n(90144));function h(e){let t,{prefixCls:n,value:r,current:i,offset:a=0}=e;return a&&(t={position:"absolute",top:`${a}00%`,left:0}),(0,o.bF)("p",{style:t,class:(0,l.A)(`${n}-only-unit`,{current:i})},[r])}function f(e,t,n){let r=e,i=0;while((r+10)%10!==t)r+=n,i+=n;return i}var p=(0,o.pM)({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(e){const t=(0,o.EW)(()=>Number(e.value)),n=(0,o.EW)(()=>Math.abs(e.count)),r=(0,d.Kh)({prevValue:t.value,prevCount:n.value}),a=()=>{r.prevValue=t.value,r.prevCount=n.value},s=(0,d.KR)();return(0,o.wB)(t,()=>{clearTimeout(s.value),s.value=setTimeout(()=>{a()},1e3)},{flush:"post"}),(0,o.hi)(()=>{clearTimeout(s.value)}),()=>{let s,l={};const c=t.value;if(r.prevValue===c||Number.isNaN(c)||Number.isNaN(r.prevValue))s=[h((0,i.A)((0,i.A)({},e),{current:!0}))],l={transition:"none"};else{s=[];const t=c+10,o=[];for(let e=c;e<=t;e+=1)o.push(e);const a=o.findIndex(e=>e%10===r.prevValue);s=o.map((t,n)=>{const r=t%10;return h((0,i.A)((0,i.A)({},e),{value:r,offset:n-a,current:n===a}))});const u=r.prevCount<n.value?1:-1;l={transform:`translateY(${-f(r.prevValue,c,u)}00%)`}}return(0,o.bF)("span",{class:`${e.prefixCls}-only`,style:l,onTransitionend:()=>a()},[s])}}}),g=n(44832),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const v={prefixCls:String,count:s.A.any,component:String,title:s.A.any,show:Boolean};var A=(0,o.pM)({compatConfig:{MODE:3},name:"ScrollNumber",inheritAttrs:!1,props:v,setup(e,t){let{attrs:n,slots:r}=t;const{prefixCls:a}=(0,u.A)("scroll-number",e);return()=>{var t;const s=(0,i.A)((0,i.A)({},e),n),{prefixCls:u,count:d,title:h,show:f,component:v="sup",class:A,style:b}=s,y=m(s,["prefixCls","count","title","show","component","class","style"]),w=(0,i.A)((0,i.A)({},y),{style:b,"data-show":e.show,class:(0,l.A)(a.value,A),title:h});let _=d;if(d&&Number(d)%1===0){const e=String(d).split("");_=e.map((t,n)=>(0,o.bF)(p,{prefixCls:a.value,count:Number(d),value:t,key:e.length-n},null))}b&&b.borderColor&&(w.style=(0,i.A)((0,i.A)({},b),{boxShadow:`0 0 0 1px ${b.borderColor} inset`}));const x=(0,g.Gk)(null===(t=r.default)||void 0===t?void 0:t.call(r));return x&&x.length?(0,c.Ob)(x,{class:(0,l.A)(`${a.value}-custom-component`)},!1):(0,o.bF)(v,w,{default:()=>[_]})}}}),b=n(51589),y=n(58085),w=n(90112),_=n(9519),x=n(39870),E=n(36068);const S=new y.A("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),C=new y.A("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),T=new y.A("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),k=new y.A("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),O=new y.A("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),M=new y.A("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),I=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeFontHeight:o,badgeShadowSize:a,badgeHeightSm:s,motionDurationSlow:l,badgeStatusSize:c,marginXS:u,badgeRibbonOffset:d}=e,h=`${r}-scroll-number`,f=`${r}-ribbon`,p=`${r}-ribbon-wrapper`,g=(0,x.n)(e,(e,n)=>{let{darkColor:r}=n;return{[`&${t} ${t}-color-${e}`]:{background:r,[`&:not(${t}-count)`]:{color:r}}}}),m=(0,x.n)(e,(e,t)=>{let{darkColor:n}=t;return{[`&${f}-color-${e}`]:{background:n,color:n}}});return{[t]:(0,i.A)((0,i.A)((0,i.A)((0,i.A)({},(0,E.dF)(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${a}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:s,height:s,fontSize:e.badgeFontSizeSm,lineHeight:`${s}px`,borderRadius:s/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`},[`${t}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${a}px ${e.badgeShadowColor}`},[`${t}-dot${h}`]:{transition:`background ${l}`},[`${t}-count, ${t}-dot, ${h}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:M,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:c,height:c,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:a,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:S,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:u,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:C,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:T,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:k,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:O,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${h}-custom-component, ${t}-count`]:{transform:"none"},[`${h}-custom-component, ${h}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${h}`]:{overflow:"hidden",[`${h}-only`]:{position:"relative",display:"inline-block",height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${h}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${h}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${h}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${p}`]:{position:"relative"},[`${f}`]:(0,i.A)((0,i.A)((0,i.A)((0,i.A)({},(0,E.dF)(e)),{position:"absolute",top:u,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${o}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${f}-text`]:{color:e.colorTextLightSolid},[`${f}-corner`]:{position:"absolute",top:"100%",width:d,height:d,color:"currentcolor",border:d/2+"px solid",transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),m),{[`&${f}-placement-end`]:{insetInlineEnd:-d,borderEndEndRadius:0,[`${f}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${f}-placement-start`]:{insetInlineStart:-d,borderEndStartRadius:0,[`${f}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}};var D=(0,w.A)("Badge",e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i,marginXS:o,colorBorderBg:a}=e,s=Math.round(t*n),l=i,c="auto",u=s-2*l,d=e.colorBgContainer,h="normal",f=r,p=e.colorError,g=e.colorErrorHover,m=t,v=r/2,A=r,b=r/2,y=(0,_.h1)(e,{badgeFontHeight:s,badgeShadowSize:l,badgeZIndex:c,badgeHeight:u,badgeTextColor:d,badgeFontWeight:h,badgeFontSize:f,badgeColor:p,badgeColorHover:g,badgeShadowColor:a,badgeHeightSm:m,badgeDotSize:v,badgeFontSizeSm:A,badgeStatusSize:b,badgeProcessingDuration:"1.2s",badgeRibbonOffset:o,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[I(y)]}),N=n(41050),R=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const L=()=>({prefix:String,color:{type:String},text:s.A.any,placement:{type:String,default:"end"}});var B=(0,o.pM)({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:L(),slots:Object,setup(e,t){let{attrs:n,slots:a}=t;const{prefixCls:s,direction:l}=(0,u.A)("ribbon",e),[c,d]=D(s),h=(0,o.EW)(()=>(0,N.nP)(e.color,!1)),f=(0,o.EW)(()=>[s.value,`${s.value}-placement-${e.placement}`,{[`${s.value}-rtl`]:"rtl"===l.value,[`${s.value}-color-${e.color}`]:h.value}]);return()=>{var t,l;const{class:u,style:p}=n,g=R(n,["class","style"]),m={},v={};return e.color&&!h.value&&(m.background=e.color,v.color=e.color),c((0,o.bF)("div",(0,r.A)({class:`${s.value}-wrapper ${d.value}`},g),[null===(t=a.default)||void 0===t?void 0:t.call(a),(0,o.bF)("div",{class:[f.value,u,d.value],style:(0,i.A)((0,i.A)({},m),p)},[(0,o.bF)("span",{class:`${s.value}-text`},[e.text||(null===(l=a.text)||void 0===l?void 0:l.call(a))]),(0,o.bF)("div",{class:`${s.value}-corner`,style:v},null)])]))}}});const P=e=>!isNaN(parseFloat(e))&&isFinite(e);var F=P;const $=()=>({count:s.A.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:s.A.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String});var j=(0,o.pM)({compatConfig:{MODE:3},name:"ABadge",Ribbon:B,inheritAttrs:!1,props:$(),slots:Object,setup(e,t){let{slots:n,attrs:s}=t;const{prefixCls:h,direction:f}=(0,u.A)("badge",e),[p,m]=D(h),v=(0,o.EW)(()=>e.count>e.overflowCount?`${e.overflowCount}+`:e.count),y=(0,o.EW)(()=>"0"===v.value||0===v.value),w=(0,o.EW)(()=>null===e.count||y.value&&!e.showZero),_=(0,o.EW)(()=>(null!==e.status&&void 0!==e.status||null!==e.color&&void 0!==e.color)&&w.value),x=(0,o.EW)(()=>e.dot&&!y.value),E=(0,o.EW)(()=>x.value?"":v.value),S=(0,o.EW)(()=>{const t=null===E.value||void 0===E.value||""===E.value;return(t||y.value&&!e.showZero)&&!x.value}),C=(0,d.KR)(e.count),T=(0,d.KR)(E.value),k=(0,d.KR)(x.value);(0,o.wB)([()=>e.count,E,x],()=>{S.value||(C.value=e.count,T.value=E.value,k.value=x.value)},{immediate:!0});const O=(0,o.EW)(()=>(0,N.nP)(e.color,!1)),M=(0,o.EW)(()=>({[`${h.value}-status-dot`]:_.value,[`${h.value}-status-${e.status}`]:!!e.status,[`${h.value}-color-${e.color}`]:O.value})),I=(0,o.EW)(()=>e.color&&!O.value?{background:e.color,color:e.color}:{}),R=(0,o.EW)(()=>({[`${h.value}-dot`]:k.value,[`${h.value}-count`]:!k.value,[`${h.value}-count-sm`]:"small"===e.size,[`${h.value}-multiple-words`]:!k.value&&T.value&&T.value.toString().length>1,[`${h.value}-status-${e.status}`]:!!e.status,[`${h.value}-color-${e.color}`]:O.value}));return()=>{var t,u;const{offset:d,title:v,color:y}=e,w=s.style,x=(0,g.rU)(n,e,"text"),E=h.value,k=C.value;let D=(0,g.MI)(null===(t=n.default)||void 0===t?void 0:t.call(n));D=D.length?D:null;const N=!(S.value&&!n.count),L=(()=>{if(!d)return(0,i.A)({},w);const e={marginTop:F(d[1])?`${d[1]}px`:d[1]};return"rtl"===f.value?e.left=`${parseInt(d[0],10)}px`:e.right=-parseInt(d[0],10)+"px",(0,i.A)((0,i.A)({},e),w)})(),B=null!==v&&void 0!==v?v:"string"===typeof k||"number"===typeof k?k:void 0,P=N||!x?null:(0,o.bF)("span",{class:`${E}-status-text`},[x]),$="object"===typeof k||void 0===k&&n.count?(0,c.Ob)(null!==k&&void 0!==k?k:null===(u=n.count)||void 0===u?void 0:u.call(n),{style:L},!1):null,j=(0,l.A)(E,{[`${E}-status`]:_.value,[`${E}-not-a-wrapper`]:!D,[`${E}-rtl`]:"rtl"===f.value},s.class,m.value);if(!D&&_.value){const e=L.color;return p((0,o.bF)("span",(0,r.A)((0,r.A)({},s),{},{class:j,style:L}),[(0,o.bF)("span",{class:M.value,style:I.value},null),(0,o.bF)("span",{style:{color:e},class:`${E}-status-text`},[x])]))}const H=(0,b.ce)(D?`${E}-zoom`:"",{appear:!1});let U=(0,i.A)((0,i.A)({},L),e.numberStyle);return y&&!O.value&&(U=U||{},U.background=y),p((0,o.bF)("span",(0,r.A)((0,r.A)({},s),{},{class:j}),[D,(0,o.bF)(a.eB,H,{default:()=>[(0,o.bo)((0,o.bF)(A,{prefixCls:e.scrollNumberPrefixCls,show:N,class:R.value,count:T.value,title:B,style:U,key:"scrollNumber"},{default:()=>[$]}),[[a.aG,N]])]}),P]))}}});j.install=function(e){return e.component(j.name,j),e.component(B.name,B),e};var H=j},44514:function(e,t,n){!function(t,r){e.exports=r(n(1576))}(0,function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),r={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(e,t){return"W"===t?e+"周":e+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(e,t){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1100?"上午":n<1300?"中午":n<1800?"下午":"晚上"}};return n.default.locale(r,null,!0),r})},44576:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},44672:function(e,t,n){"use strict";var r=n(1821),i=n(23506);function o(e,t,n){var o=t(e);return(0,i.A)(e)?o:(0,r.A)(o,n(e))}t.A=o},44678:function(e,t,n){"use strict";n.d(t,{$q:function(){return a},Fg:function(){return c},GU:function(){return o},HE:function(){return l},MY:function(){return h},PV:function(){return r},WO:function(){return f},ds:function(){return u},ge:function(){return s},pf:function(){return i},tK:function(){return p},vX:function(){return d}});const r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t},i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t},o=e=>{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function a(){return{type:[Function,Array]}}function s(e){return{type:Object,default:e}}function l(e){return{type:Boolean,default:e}}function c(e){return{type:Function,default:e}}function u(e,t){const n={validator:()=>!0,default:e};return n}function d(){return{validator:()=>!0}}function h(e){return{type:Array,default:e}}function f(e){return{type:String,default:e}}function p(e,t){return e?{type:e,default:t}:u(t)}},44733:function(e,t,n){"use strict";n.d(t,{A:function(){return L}});n(18111),n(61701);var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(49974),l=n(95572);const c=(e,t)=>{let{height:n,offset:r,prefixCls:a,onInnerResize:c}=e,{slots:u}=t;var d;let h={},f={display:"flex",flexDirection:"column"};return void 0!==r&&(h={height:`${n}px`,position:"relative",overflow:"hidden"},f=(0,i.A)((0,i.A)({},f),{transform:`translateY(${r}px)`,position:"absolute",left:0,right:0,top:0})),(0,o.bF)("div",{style:h},[(0,o.bF)(l.A,{onResize:e=>{let{offsetHeight:t}=e;t&&c&&c()}},{default:()=>[(0,o.bF)("div",{style:f,class:(0,s.A)({[`${a}-holder-inner`]:a})},[null===(d=u.default)||void 0===d?void 0:d.call(u)])]})])};c.displayName="Filter",c.inheritAttrs=!1,c.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};var u=c,d=n(44832);const h=(e,t)=>{let{setRef:n}=e,{slots:r}=t;var i;const a=(0,d.MI)(null===(i=r.default)||void 0===i?void 0:i.call(r));return a&&a.length?(0,o.E3)(a[0],{ref:n}):a};h.props={setRef:{type:Function,default:()=>{}}};var f=h,p=n(84453),g=n(32545),m=n(62573);const v=20;function A(e){return"touches"in e?e.touches[0].pageY:e.pageY}var b=(0,o.pM)({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup(){return{moveRaf:null,scrollbarRef:(0,p.Ay)(),thumbRef:(0,p.Ay)(),visibleTimeout:null,state:(0,a.Kh)({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;null===(e=this.scrollbarRef.current)||void 0===e||e.addEventListener("touchstart",this.onScrollbarTouchStart,!!m.A&&{passive:!1}),null===(t=this.thumbRef.current)||void 0===t||t.addEventListener("touchstart",this.onMouseDown,!!m.A&&{passive:!1})},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout(()=>{this.state.visible=!1},2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,!!m.A&&{passive:!1}),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,!!m.A&&{passive:!1}),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,!!m.A&&{passive:!1}),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,!!m.A&&{passive:!1}),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),g.A.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;(0,i.A)(this.state,{dragging:!0,pageY:A(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:n,startTop:r}=this.state,{onScroll:i}=this.$props;if(g.A.cancel(this.moveRaf),t){const t=A(e)-n,o=r+t,a=this.getEnableScrollRange(),s=this.getEnableHeightRange(),l=s?o/s:0,c=Math.ceil(l*a);this.moveRaf=(0,g.A)(()=>{i(c)})}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,scrollHeight:t}=this.$props;let n=e/t*100;return n=Math.max(n,v),n=Math.min(n,e/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props,t=this.getSpinHeight();return e-t||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),n=this.getEnableHeightRange();if(0===e||0===t)return 0;const r=e/t;return r*n},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:n}=this.$props,r=this.getSpinHeight()+"px",i=this.getTop()+"px",a=this.showScroll(),l=a&&t;return(0,o.bF)("div",{ref:this.scrollbarRef,class:(0,s.A)(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:a}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:l?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[(0,o.bF)("div",{ref:this.thumbRef,class:(0,s.A)(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:r,top:i,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});n(7588);function y(e,t,n,r){const i=new Map,s=new Map,l=(0,a.KR)(Symbol("update"));let c;function u(){g.A.cancel(c)}function d(){u(),c=(0,g.A)(()=>{i.forEach((e,t)=>{if(e&&e.offsetParent){const{offsetHeight:n}=e;s.get(t)!==n&&(l.value=Symbol("update"),s.set(t,e.offsetHeight))}})})}function h(e,o){const a=t(e),s=i.get(a);o?(i.set(a,o.$el||o),d()):i.delete(a),!s!==!o&&(o?null===n||void 0===n||n(e):null===r||void 0===r||r(e))}return(0,o.wB)(e,()=>{l.value=Symbol("update")}),(0,o.hi)(()=>{u()}),[h,d,s,l]}function w(e,t,n,r,i,o,a,s){let l;return c=>{if(null===c||void 0===c)return void s();g.A.cancel(l);const u=t.value,d=r.itemHeight;if("number"===typeof c)a(c);else if(c&&"object"===typeof c){let t;const{align:r}=c;"index"in c?({index:t}=c):t=u.findIndex(e=>i(e)===c.key);const{offset:s=0}=c,h=(c,f)=>{if(c<0||!e.value)return;const p=e.value.clientHeight;let m=!1,v=f;if(p){const o=f||r;let l=0,c=0,h=0;const g=Math.min(u.length,t);for(let e=0;e<=g;e+=1){const r=i(u[e]);c=l;const o=n.get(r);h=c+(void 0===o?d:o),l=h,e===t&&void 0===o&&(m=!0)}const A=e.value.scrollTop;let b=null;switch(o){case"top":b=c-s;break;case"bottom":b=h-p+s;break;default:{const e=A+p;c<A?v="top":h>e&&(v="bottom")}}null!==b&&b!==A&&a(b)}l=(0,g.A)(()=>{m&&o(),h(c-1,v)},2)};h(5)}}}const _="object"===typeof navigator&&/Firefox/i.test(navigator.userAgent);var x=_,E=(e,t)=>{let n=!1,r=null;function i(){clearTimeout(r),n=!0,r=setTimeout(()=>{n=!1},50)}return function(o){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const s=o<0&&e.value||o>0&&t.value;return a&&s?(clearTimeout(r),n=!1):s&&!n||i(),!n&&s}};function S(e,t,n,r){let i=0,o=null,a=null,s=!1;const l=E(t,n);function c(t){if(!e.value)return;g.A.cancel(o);const{deltaY:n}=t;i+=n,a=n,l(n)||(x||t.preventDefault(),o=(0,g.A)(()=>{const e=s?10:1;r(i*e),i=0}))}function u(t){e.value&&(s=t.detail===a)}return[c,u]}const C=14/15;function T(e,t,n){let r=!1,i=0,a=null,s=null;const l=()=>{a&&(a.removeEventListener("touchmove",c),a.removeEventListener("touchend",u))},c=e=>{if(r){const t=Math.ceil(e.touches[0].pageY);let r=i-t;i=t,n(r)&&e.preventDefault(),clearInterval(s),s=setInterval(()=>{r*=C,(!n(r,!0)||Math.abs(r)<=.1)&&clearInterval(s)},16)}},u=()=>{r=!1,l()},d=e=>{l(),1!==e.touches.length||r||(r=!0,i=Math.ceil(e.touches[0].pageY),a=e.target,a.addEventListener("touchmove",c,{passive:!1}),a.addEventListener("touchend",u))},h=()=>{};(0,o.sV)(()=>{document.addEventListener("touchmove",h,{passive:!1}),(0,o.wB)(e,e=>{t.value.removeEventListener("touchstart",d),l(),clearInterval(s),e&&t.value.addEventListener("touchstart",d,{passive:!1})},{immediate:!0})}),(0,o.xo)(()=>{document.removeEventListener("touchmove",h)})}var k=n(81425),O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const M=[],I={overflowY:"auto",overflowAnchor:"none"};function D(e,t,n,r,i,a){let{getKey:s}=a;return e.slice(t,n+1).map((e,n)=>{const a=t+n,l=i(e,a,{}),c=s(e);return(0,o.bF)(f,{key:c,setRef:t=>r(e,t)},{default:()=>[l]})})}const N=(0,o.pM)({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:k.A.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:n}=t;const r=(0,o.EW)(()=>{const{height:t,itemHeight:n,virtual:r}=e;return!(!1===r||!t||!n)}),s=(0,o.EW)(()=>{const{height:t,itemHeight:n,data:i}=e;return r.value&&i&&n*i.length>t}),l=(0,a.Kh)({scrollTop:0,scrollMoving:!1}),c=(0,o.EW)(()=>e.data||M),u=(0,a.IJ)([]);(0,o.wB)(c,()=>{u.value=(0,a.ux)(c.value).slice()},{immediate:!0});const d=(0,a.IJ)(e=>{});(0,o.wB)(()=>e.itemKey,e=>{d.value="function"===typeof e?e:t=>null===t||void 0===t?void 0:t[e]},{immediate:!0});const h=(0,a.IJ)(),f=(0,a.IJ)(),p=(0,a.IJ)(),g=e=>d.value(e),v={getKey:g};function A(e){let t;t="function"===typeof e?e(l.scrollTop):e;const n=N(t);h.value&&(h.value.scrollTop=n),l.scrollTop=n}const[b,_,x,C]=y(u,g,null,null),k=(0,a.Kh)({scrollHeight:void 0,start:0,end:0,offset:void 0}),O=(0,a.IJ)(0);(0,o.sV)(()=>{(0,o.dY)(()=>{var e;O.value=(null===(e=f.value)||void 0===e?void 0:e.offsetHeight)||0})}),(0,o.$u)(()=>{(0,o.dY)(()=>{var e;O.value=(null===(e=f.value)||void 0===e?void 0:e.offsetHeight)||0})}),(0,o.wB)([r,u],()=>{r.value||(0,i.A)(k,{scrollHeight:void 0,start:0,end:u.value.length-1,offset:void 0})},{immediate:!0}),(0,o.wB)([r,u,O,s],()=>{r.value&&!s.value&&(0,i.A)(k,{scrollHeight:O.value,start:0,end:u.value.length-1,offset:void 0}),h.value&&(l.scrollTop=h.value.scrollTop)},{immediate:!0}),(0,o.wB)([s,r,()=>l.scrollTop,u,C,()=>e.height,O],()=>{if(!r.value||!s.value)return;let t,n,o,a=0;const c=u.value.length,d=u.value,h=l.scrollTop,{itemHeight:f,height:p}=e,m=h+p;for(let e=0;e<c;e+=1){const r=d[e],i=g(r);let s=x.get(i);void 0===s&&(s=f);const l=a+s;void 0===t&&l>=h&&(t=e,n=a),void 0===o&&l>m&&(o=e),a=l}void 0===t&&(t=0,n=0,o=Math.ceil(p/f)),void 0===o&&(o=c-1),o=Math.min(o+1,c),(0,i.A)(k,{scrollHeight:a,start:t,end:o,offset:n})},{immediate:!0});const D=(0,o.EW)(()=>k.scrollHeight-e.height);function N(e){let t=e;return Number.isNaN(D.value)||(t=Math.min(t,D.value)),t=Math.max(t,0),t}const R=(0,o.EW)(()=>l.scrollTop<=0),L=(0,o.EW)(()=>l.scrollTop>=D.value),B=E(R,L);function P(e){const t=e;A(t)}function F(t){var n;const{scrollTop:r}=t.currentTarget;r!==l.scrollTop&&A(r),null===(n=e.onScroll)||void 0===n||n.call(e,t)}const[$,j]=S(r,R,L,e=>{A(t=>{const n=t+e;return n})});function H(e){r.value&&e.preventDefault()}T(r,h,(e,t)=>!B(e,t)&&($({preventDefault(){},deltaY:e}),!0));const U=()=>{h.value&&(h.value.removeEventListener("wheel",$,!!m.A&&{passive:!1}),h.value.removeEventListener("DOMMouseScroll",j),h.value.removeEventListener("MozMousePixelScroll",H))};(0,o.nT)(()=>{(0,o.dY)(()=>{h.value&&(U(),h.value.addEventListener("wheel",$,!!m.A&&{passive:!1}),h.value.addEventListener("DOMMouseScroll",j),h.value.addEventListener("MozMousePixelScroll",H))})}),(0,o.xo)(()=>{U()});const Q=w(h,u,x,e,g,_,A,()=>{var e;null===(e=p.value)||void 0===e||e.delayHidden()});n({scrollTo:Q});const z=(0,o.EW)(()=>{let t=null;return e.height&&(t=(0,i.A)({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},I),r.value&&(t.overflowY="hidden",l.scrollMoving&&(t.pointerEvents="none"))),t});(0,o.wB)([()=>k.start,()=>k.end,u],()=>{if(e.onVisibleChange){const t=u.value.slice(k.start,k.end+1);e.onVisibleChange(t,u.value)}},{flush:"post"});const W=()=>{var e;null===(e=p.value)||void 0===e||e.delayHidden()};return{state:l,mergedData:u,componentStyle:z,onFallbackScroll:F,onScrollBar:P,componentRef:h,useVirtual:r,calRes:k,collectHeight:_,setInstance:b,sharedConfig:v,scrollBarRef:p,fillerInnerRef:f,delayHideScrollBar:W}},render(){const e=(0,i.A)((0,i.A)({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:n,itemHeight:a,fullHeight:l,data:c,itemKey:d,virtual:h,component:f="div",onScroll:p,children:g=this.$slots.default,style:m,class:v}=e,A=O(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),y=(0,s.A)(t,v),{scrollTop:w}=this.state,{scrollHeight:_,offset:x,start:E,end:S}=this.calRes,{componentStyle:C,onFallbackScroll:T,onScrollBar:k,useVirtual:M,collectHeight:I,sharedConfig:N,setInstance:R,mergedData:L,delayHideScrollBar:B}=this;return(0,o.bF)("div",(0,r.A)({style:(0,i.A)((0,i.A)({},m),{position:"relative"}),class:y},A),[(0,o.bF)(f,{class:`${t}-holder`,style:C,ref:"componentRef",onScroll:T,onMouseenter:B},{default:()=>[(0,o.bF)(u,{prefixCls:t,height:_,offset:x,onInnerResize:I,ref:"fillerInnerRef"},{default:()=>D(L,E,S,R,g,N)})]}),M&&(0,o.bF)(b,{ref:"scrollBarRef",prefixCls:t,scrollTop:w,height:n,scrollHeight:_,count:L.length,onScroll:k,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});var R=N,L=R},44810:function(e){function t(e){const t={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},n="[A-Za-z$_][0-9A-Za-z$_]*",r={className:"subst",begin:/#\{/,end:/\}/,keywords:t},i=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];r.contains=i;const o=e.inherit(e.TITLE_MODE,{begin:n}),a="(\\(.*\\)\\s*)?\\B[-=]>",s={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(i)}]};return{name:"MoonScript",aliases:["moon"],keywords:t,illegal:/\/\*/,contains:i.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+n+"\\s*=\\s*"+a,end:"[-=]>",returnBegin:!0,contains:[o,s]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:a,end:"[-=]>",returnBegin:!0,contains:[s]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[o]},o]},{className:"name",begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}e.exports=t},44832:function(e,t,n){"use strict";n.d(t,{$c:function(){return h},Gk:function(){return w},K6:function(){return y},MI:function(){return d},Oq:function(){return p},Py:function(){return u},QQ:function(){return g},cK:function(){return c},fR:function(){return s},gd:function(){return v},kQ:function(){return m},oK:function(){return f},rU:function(){return x},sG:function(){return b},zO:function(){return _},zv:function(){return A}});n(44114),n(18111),n(81148),n(7588);var r=n(51137),i=n(56768),o=n(39058),a=n(68306);const s=e=>{const t=Object.keys(e),n={},r={},i={};for(let a=0,s=t.length;a<s;a++){const s=t[a];(0,o.Mp)(s)?(n[s[2].toLowerCase()+s.slice(3)]=e[s],r[s]=e[s]):i[s]=e[s]}return{onEvents:r,events:n,extraAttrs:i}},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={},r=/;(?![^(]*\))/g,i=/:(.+)/;return"object"===typeof e?e:(e.split(r).forEach(function(e){if(e){const r=e.split(i);if(r.length>1){const e=t?(0,o.PT)(r[0].trim()):r[0].trim();n[e]=r[1].trim()}}}),n)},c=(e,t)=>void 0!==e[t],u=Symbol("skipFlatten"),d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=Array.isArray(e)?e:[e],r=[];return n.forEach(e=>{Array.isArray(e)?r.push(...d(e,t)):e&&e.type===i.FK?e.key===u?r.push(e):r.push(...d(e.children,t)):e&&(0,i.vv)(e)?t&&!b(e)?r.push(e):t||r.push(e):(0,a.A)(e)&&r.push(e)}),r},h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((0,i.vv)(e))return e.type===i.FK?"default"===t?d(e.children):[]:e.children&&e.children[t]?d(e.children[t](n)):[];{const r=e.$slots[t]&&e.$slots[t](n);return d(r)}},f=e=>{var t;let n=(null===(t=null===e||void 0===e?void 0:e.vnode)||void 0===t?void 0:t.el)||e&&(e.$el||e);while(n&&!n.tagName)n=n.nextSibling;return n},p=e=>{const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach(r=>{const i=e.$props[r],a=(0,o.Tg)(r);(void 0!==i||a in n)&&(t[r]=i)})}else if((0,i.vv)(e)&&"object"===typeof e.type){const n=e.props||{},r={};Object.keys(n).forEach(e=>{r[(0,o.PT)(e)]=n[e]});const i=e.type.props||{};Object.keys(i).forEach(e=>{const n=(0,o.rQ)(i,r,e,r[e]);(void 0!==n||e in r)&&(t[e]=n)})}return t},g=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.$){const i=e[n];if(void 0!==i)return"function"===typeof i&&o?i(r):i;t=e.$slots[n],t=o&&t?t(r):t}else if((0,i.vv)(e)){const a=e.props&&e.props[n];if(void 0!==a&&null!==e.props)return"function"===typeof a&&o?a(r):a;e.type===i.FK?t=e.children:e.children&&e.children[n]&&(t=e.children[n],t=o&&t?t(r):t)}return Array.isArray(t)&&(t=d(t),t=1===t.length?t[0]:t,t=0===t.length?void 0:t),t};function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};return n=e.$?(0,r.A)((0,r.A)({},n),e.$attrs):(0,r.A)((0,r.A)({},n),e.props),s(n)[t?"onEvents":"events"]}function v(e,t){const n=((0,i.vv)(e)?e.props:e.$attrs)||{};let r=n.style||{};if("string"===typeof r)r=l(r,t);else if(t&&r){const e={};return Object.keys(r).forEach(t=>e[(0,o.PT)(t)]=r[t]),e}return r}function A(e){return 1===e.length&&e[0].type===i.FK}function b(e){return e&&(e.type===i.Mw||e.type===i.FK&&0===e.children.length||e.type===i.EY&&""===e.children.trim())}function y(e){return e&&e.type===i.EY}function w(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=[];return e.forEach(e=>{Array.isArray(e)?t.push(...e):(null===e||void 0===e?void 0:e.type)===i.FK?t.push(...w(e.children)):t.push(e)}),t.filter(e=>!b(e))}function _(e){return Array.isArray(e)&&1===e.length&&(e=e[0]),e&&e.__v_isVNode&&"symbol"!==typeof e.type}function x(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default";var r,i;return null!==(r=t[n])&&void 0!==r?r:null===(i=e[n])||void 0===i?void 0:i.call(e)}},45050:function(e,t,n){"use strict";n.d(t,{Mh:function(){return p}});var r=n(58085),i=n(33041);const o=new r.A("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new r.A("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),s=new r.A("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new r.A("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),c=new r.A("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u=new r.A("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),d=new r.A("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),h=new r.A("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),f={"move-up":{inKeyframes:d,outKeyframes:h},"move-down":{inKeyframes:o,outKeyframes:a},"move-left":{inKeyframes:s,outKeyframes:l},"move-right":{inKeyframes:c,outKeyframes:u}},p=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=f[t];return[(0,i.b)(r,o,a,e.motionDurationMid),{[`\n        ${r}-enter,\n        ${r}-appear\n      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},45130:function(e,t,n){"use strict";n.d(t,{D$:function(){return Oe},Ef:function(){return Be},F:function(){return ve},Jo:function(){return Ce},XX:function(){return Le},aG:function(){return F},eB:function(){return y},jR:function(){return Ie}});n(44114),n(18111),n(22489),n(7588),n(61701),n(13579),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698);var r=n(56768),i=n(24232),o=n(90144);
/**
* @vue/runtime-dom v3.5.22
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/
let a;const s="undefined"!==typeof window&&window.trustedTypes;if(s)try{a=s.createPolicy("vue",{createHTML:e=>e})}catch($e){}const l=a?e=>a.createHTML(e):e=>e,c="http://www.w3.org/2000/svg",u="http://www.w3.org/1998/Math/MathML",d="undefined"!==typeof document?document:null,h=d&&d.createElement("template"),f={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i="svg"===t?d.createElementNS(c,e):"mathml"===t?d.createElementNS(u,e):n?d.createElement(e,{is:n}):d.createElement(e);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>d.createTextNode(e),createComment:e=>d.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>d.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const a=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling)){while(1)if(t.insertBefore(i.cloneNode(!0),n),i===o||!(i=i.nextSibling))break}else{h.innerHTML=l("svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e);const i=h.content;if("svg"===r||"mathml"===r){const e=i.firstChild;while(e.firstChild)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},p="transition",g="animation",m=Symbol("_vtc"),v={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},A=(0,i.X$)({},r.QP,v),b=e=>(e.displayName="Transition",e.props=A,e),y=b((e,{slots:t})=>(0,r.h)(r.pR,x(e),t)),w=(e,t=[])=>{(0,i.cy)(e)?e.forEach(e=>e(...t)):e&&e(...t)},_=e=>!!e&&((0,i.cy)(e)?e.some(e=>e.length>1):e.length>1);function x(e){const t={};for(const i in e)i in v||(t[i]=e[i]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:u=s,appearToClass:d=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,g=E(o),m=g&&g[0],A=g&&g[1],{onBeforeEnter:b,onEnter:y,onEnterCancelled:x,onLeave:S,onLeaveCancelled:O,onBeforeAppear:I=b,onAppear:D=y,onAppearCancelled:N=x}=t,L=(e,t,n,r)=>{e._enterCancelled=r,T(e,t?d:l),T(e,t?u:s),n&&n()},B=(e,t)=>{e._isLeaving=!1,T(e,h),T(e,p),T(e,f),t&&t()},P=e=>(t,n)=>{const i=e?D:y,o=()=>L(t,e,n);w(i,[t,o]),k(()=>{T(t,e?c:a),C(t,e?d:l),_(i)||M(t,r,m,o)})};return(0,i.X$)(t,{onBeforeEnter(e){w(b,[e]),C(e,a),C(e,s)},onBeforeAppear(e){w(I,[e]),C(e,c),C(e,u)},onEnter:P(!1),onAppear:P(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>B(e,t);C(e,h),e._enterCancelled?(C(e,f),R(e)):(R(e),C(e,f)),k(()=>{e._isLeaving&&(T(e,h),C(e,p),_(S)||M(e,r,A,n))}),w(S,[e,n])},onEnterCancelled(e){L(e,!1,void 0,!0),w(x,[e])},onAppearCancelled(e){L(e,!0,void 0,!0),w(N,[e])},onLeaveCancelled(e){B(e),w(O,[e])}})}function E(e){if(null==e)return null;if((0,i.Gv)(e))return[S(e.enter),S(e.leave)];{const t=S(e);return[t,t]}}function S(e){const t=(0,i.Ro)(e);return t}function C(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[m]||(e[m]=new Set)).add(t)}function T(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));const n=e[m];n&&(n.delete(t),n.size||(e[m]=void 0))}function k(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let O=0;function M(e,t,n,r){const i=e._endId=++O,o=()=>{i===e._endId&&r()};if(null!=n)return setTimeout(o,n);const{type:a,timeout:s,propCount:l}=I(e,t);if(!a)return r();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,h),o()},h=t=>{t.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},s+1),e.addEventListener(c,h)}function I(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),i=r(`${p}Delay`),o=r(`${p}Duration`),a=D(i,o),s=r(`${g}Delay`),l=r(`${g}Duration`),c=D(s,l);let u=null,d=0,h=0;t===p?a>0&&(u=p,d=a,h=o.length):t===g?c>0&&(u=g,d=c,h=l.length):(d=Math.max(a,c),u=d>0?a>c?p:g:null,h=u?u===p?o.length:l.length:0);const f=u===p&&/\b(?:transform|all)(?:,|$)/.test(r(`${p}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:f}}function D(e,t){while(e.length<t.length)e=e.concat(e);return Math.max(...t.map((t,n)=>N(t)+N(e[n])))}function N(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function R(e){const t=e?e.ownerDocument:document;return t.body.offsetHeight}function L(e,t,n){const r=e[m];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const B=Symbol("_vod"),P=Symbol("_vsh"),F={name:"show",beforeMount(e,{value:t},{transition:n}){e[B]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):$(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!==!n&&(r?t?(r.beforeEnter(e),$(e,!0),r.enter(e)):r.leave(e,()=>{$(e,!1)}):$(e,t))},beforeUnmount(e,{value:t}){$(e,t)}};function $(e,t){e.style.display=t?e[B]:"none",e[P]=!t}const j=Symbol("");const H=/(?:^|;)\s*display\s*:/;function U(e,t,n){const r=e.style,o=(0,i.Kg)(n);let a=!1;if(n&&!o){if(t)if((0,i.Kg)(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&z(r,t,"")}else for(const e in t)null==n[e]&&z(r,e,"");for(const e in n)"display"===e&&(a=!0),z(r,e,n[e])}else if(o){if(t!==n){const e=r[j];e&&(n+=";"+e),r.cssText=n,a=H.test(n)}}else t&&e.removeAttribute("style");B in e&&(e[B]=a?r.display:"",e[P]&&(r.display="none"))}const Q=/\s*!important$/;function z(e,t,n){if((0,i.cy)(n))n.forEach(n=>z(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=V(e,t);Q.test(n)?e.setProperty((0,i.Tg)(r),n.replace(Q,""),"important"):e[r]=n}}const W=["Webkit","Moz","ms"],G={};function V(e,t){const n=G[t];if(n)return n;let r=(0,i.PT)(t);if("filter"!==r&&r in e)return G[t]=r;r=(0,i.ZH)(r);for(let i=0;i<W.length;i++){const n=W[i]+r;if(n in e)return G[t]=n}return t}const K="http://www.w3.org/1999/xlink";function Y(e,t,n,r,o,a=(0,i.J$)(t)){r&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(K,t.slice(6,t.length)):e.setAttributeNS(K,t,n):null==n||a&&!(0,i.Y2)(n)?e.removeAttribute(t):e.setAttribute(t,a?"":(0,i.Bm)(n)?String(n):n)}function q(e,t,n,r,o){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?l(n):n));const a=e.tagName;if("value"===t&&"PROGRESS"!==a&&!a.includes("-")){const r="OPTION"===a?e.getAttribute("value")||"":e.value,i=null==n?"checkbox"===e.type?"on":"":String(n);return r===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),void(e._value=n)}let s=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=(0,i.Y2)(n):null==n&&"string"===r?(n="",s=!0):"number"===r&&(n=0,s=!0)}try{e[t]=n}catch($e){0}s&&e.removeAttribute(o||t)}function X(e,t,n,r){e.addEventListener(t,n,r)}function J(e,t,n,r){e.removeEventListener(t,n,r)}const Z=Symbol("_vei");function ee(e,t,n,r,i=null){const o=e[Z]||(e[Z]={}),a=o[t];if(r&&a)a.value=r;else{const[n,s]=ne(t);if(r){const a=o[t]=ae(r,i);X(e,n,a,s)}else a&&(J(e,n,a,s),o[t]=void 0)}}const te=/(?:Once|Passive|Capture)$/;function ne(e){let t;if(te.test(e)){let n;t={};while(n=e.match(te))e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):(0,i.Tg)(e.slice(2));return[n,t]}let re=0;const ie=Promise.resolve(),oe=()=>re||(ie.then(()=>re=0),re=Date.now());function ae(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();(0,r.qL)(se(e,n.value),t,5,[e])};return n.value=e,n.attached=oe(),n}function se(e,t){if((0,i.cy)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}return t}const le=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ce=(e,t,n,r,o,a)=>{const s="svg"===o;"class"===t?L(e,r,s):"style"===t?U(e,n,r):(0,i.Mp)(t)?(0,i.CP)(t)||ee(e,t,n,r,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):ue(e,t,r,s))?(q(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Y(e,t,r,s,a,"value"!==t)):!e._isVueCE||!/[A-Z]/.test(t)&&(0,i.Kg)(r)?("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),Y(e,t,r,s)):q(e,(0,i.PT)(t),r,a,t)};function ue(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&le(t)&&(0,i.Tn)(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!le(t)||!(0,i.Kg)(n))&&t in e}"undefined"!==typeof HTMLElement&&HTMLElement;const de=new WeakMap,he=new WeakMap,fe=Symbol("_moveCb"),pe=Symbol("_enterCb"),ge=e=>(delete e.props.mode,e),me=ge({name:"TransitionGroup",props:(0,i.X$)({},A,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=(0,r.nI)(),i=(0,r.Gy)();let a,s;return(0,r.$u)(()=>{if(!a.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!we(a[0].el,n.vnode.el,t))return void(a=[]);a.forEach(Ae),a.forEach(be);const r=a.filter(ye);R(n.vnode.el),r.forEach(e=>{const n=e.el,r=n.style;C(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const i=n[fe]=e=>{e&&e.target!==n||e&&!e.propertyName.endsWith("transform")||(n.removeEventListener("transitionend",i),n[fe]=null,T(n,t))};n.addEventListener("transitionend",i)}),a=[]}),()=>{const l=(0,o.ux)(e),c=x(l);let u=l.tag||r.FK;if(a=[],s)for(let e=0;e<s.length;e++){const t=s[e];t.el&&t.el instanceof Element&&(a.push(t),(0,r.MZ)(t,(0,r.OW)(t,c,i,n)),de.set(t,t.el.getBoundingClientRect()))}s=t.default?(0,r.Df)(t.default()):[];for(let e=0;e<s.length;e++){const t=s[e];null!=t.key&&(0,r.MZ)(t,(0,r.OW)(t,c,i,n))}return(0,r.bF)(u,null,s)}}}),ve=me;function Ae(e){const t=e.el;t[fe]&&t[fe](),t[pe]&&t[pe]()}function be(e){he.set(e,e.el.getBoundingClientRect())}function ye(e){const t=de.get(e),n=he.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${i}px)`,t.transitionDuration="0s",e}}function we(e,t,n){const r=e.cloneNode(),i=e[m];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display="none";const o=1===t.nodeType?t:t.parentNode;o.appendChild(r);const{hasTransform:a}=I(r);return o.removeChild(r),a}const _e=e=>{const t=e.props["onUpdate:modelValue"]||!1;return(0,i.cy)(t)?e=>(0,i.DY)(t,e):t};function xe(e){e.target.composing=!0}function Ee(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Se=Symbol("_assign"),Ce={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Se]=_e(o);const a=r||o.props&&"number"===o.props.type;X(e,t?"change":"input",t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),a&&(r=(0,i.bB)(r)),e[Se](r)}),n&&X(e,"change",()=>{e.value=e.value.trim()}),t||(X(e,"compositionstart",xe),X(e,"compositionend",Ee),X(e,"change",Ee))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:a}},s){if(e[Se]=_e(s),e.composing)return;const l=!a&&"number"!==e.type||/^0\d/.test(e.value)?e.value:(0,i.bB)(e.value),c=null==t?"":t;if(l!==c){if(document.activeElement===e&&"range"!==e.type){if(r&&t===n)return;if(o&&e.value.trim()===c)return}e.value=c}}};const Te=["ctrl","shift","alt","meta"],ke={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Te.some(n=>e[`${n}Key`]&&!t.includes(n))},Oe=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e<t.length;e++){const r=ke[t[e]];if(r&&r(n,t))return}return e(n,...r)})},Me={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ie=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;const r=(0,i.Tg)(n.key);return t.some(e=>e===r||Me[e]===r)?e(n):void 0})},De=(0,i.X$)({patchProp:ce},f);let Ne;function Re(){return Ne||(Ne=(0,r.K9)(De))}const Le=(...e)=>{Re().render(...e)},Be=(...e)=>{const t=Re().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=Fe(e);if(!r)return;const o=t._component;(0,i.Tn)(o)||o.render||o.template||(o.template=r.innerHTML),1===r.nodeType&&(r.textContent="");const a=n(r,!1,Pe(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function Pe(e){return e instanceof SVGElement?"svg":"function"===typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Fe(e){if((0,i.Kg)(e)){const t=document.querySelector(e);return t}return e}},45140:function(e){function t(e){const t=e.regex,n={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},r="[a-zA-Z_][a-zA-Z0-9\\._]*",i={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},o={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},a={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:r,returnEnd:!1}},s={begin:r+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:r,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},l={begin:t.concat(r,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:r})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:n,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},o,i,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},a,s,l],illegal:/#/}}e.exports=t},45331:function(e,t,n){"use strict";n.d(t,{Su:function(){return g},Wu:function(){return u},YV:function(){return d},an:function(){return l},lO:function(){return p},vx:function(){return f}});var r=n(51137),i=n(56768),o=n(90144);const a=Symbol("menuContextKey"),s=e=>{(0,i.Gt)(a,e)},l=()=>(0,i.WQ)(a),c=Symbol("ForceRenderKey"),u=e=>{(0,i.Gt)(c,e)},d=()=>(0,i.WQ)(c,!1),h=Symbol("menuFirstLevelContextKey"),f=e=>{(0,i.Gt)(h,e)},p=()=>(0,i.WQ)(h,!0),g=(0,i.pM)({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t;const i=l(),a=(0,r.A)({},i);return void 0!==e.mode&&(a.mode=(0,o.lW)(e,"mode")),void 0!==e.overflowDisabled&&(a.overflowDisabled=(0,o.lW)(e,"overflowDisabled")),s(a),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});t.Ay=s},45389:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="DownOutlined",c.inheritAttrs=!1;var u=c},45482:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(90144);function i(e){const t=(0,r.KR)(e),n=(0,r.KR)(e=>{t.value&&t.value(e)});return t.value=e,n.value}},45617:function(e){function t(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}e.exports=t},45723:function(e){function t(e){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"</",contains:[e.HASH_COMMENT_MODE,e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}e.exports=t},45757:function(e,t,n){"use strict";var r,i;
/*!
 * wordcloud2.js
 * http://timdream.org/wordcloud2.js/
 *
 * Copyright 2011 - 2019 Tim Guan-tin Chien and contributors.
 * Released under the MIT license
 */n(44114),n(18111),n(7588),n(13579),n(59848),window.setImmediate||(window.setImmediate=function(){return window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var e=[void 0],t="zero-timeout-message",n=function(n){var r=e.length;return e.push(n),window.postMessage(t+r.toString(36),"*"),r};return window.addEventListener("message",function(n){if("string"===typeof n.data&&n.data.substr(0,t.length)===t){n.stopImmediatePropagation();var r=parseInt(n.data.substr(t.length),36);e[r]&&(e[r](),e[r]=void 0)}},!0),window.clearImmediate=function(t){e[t]&&(e[t]=void 0)},n}()||function(e){window.setTimeout(e,0)}}()),window.clearImmediate||(window.clearImmediate=function(){return window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(e){window.clearTimeout(e)}}()),function(n){var o=function(){var e=document.createElement("canvas");if(!e||!e.getContext)return!1;var t=e.getContext("2d");return!!t&&(!!t.getImageData&&(!!t.fillText&&(!!Array.prototype.some&&!!Array.prototype.push)))}(),a=function(){if(o){var e,t,n=document.createElement("canvas").getContext("2d"),r=20;while(r){if(n.font=r.toString(10)+"px sans-serif",n.measureText("Ｗ").width===e&&n.measureText("m").width===t)return r+1;e=n.measureText("Ｗ").width,t=n.measureText("m").width,r--}return 0}}(),s=function(e){if(Array.isArray(e)){var t=e.slice();return t.splice(0,2),t}return[]},l=function(e){for(var t,n,r=e.length;r;)t=Math.floor(Math.random()*r),n=e[--r],e[r]=e[t],e[t]=n;return e},c={},u=function(e,t){if(o){var n=Math.floor(Math.random()*Date.now());Array.isArray(e)||(e=[e]),e.forEach(function(t,n){if("string"===typeof t){if(e[n]=document.getElementById(t),!e[n])throw new Error("The element id specified is not found.")}else if(!t.tagName&&!t.appendChild)throw new Error("You must pass valid HTML elements, or ID of the element.")});var r={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationSteps:0,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(t)for(var i in t)i in r&&(r[i]=t[i]);if("function"!==typeof r.weightFactor){var u=r.weightFactor;r.weightFactor=function(e){return e*u}}if("function"!==typeof r.shape)switch(r.shape){case"circle":default:r.shape="circle";break;case"cardioid":r.shape=function(e){return 1-Math.sin(e)};break;case"diamond":r.shape=function(e){var t=e%(2*Math.PI/4);return 1/(Math.cos(t)+Math.sin(t))};break;case"square":r.shape=function(e){return Math.min(1/Math.abs(Math.cos(e)),1/Math.abs(Math.sin(e)))};break;case"triangle-forward":r.shape=function(e){var t=e%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))};break;case"triangle":case"triangle-upright":r.shape=function(e){var t=(e+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))};break;case"pentagon":r.shape=function(e){var t=(e+.955)%(2*Math.PI/5);return 1/(Math.cos(t)+.726543*Math.sin(t))};break;case"star":r.shape=function(e){var t=(e+.955)%(2*Math.PI/10);return(e+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-t)+3.07768*Math.sin(2*Math.PI/10-t)):1/(Math.cos(t)+3.07768*Math.sin(t))};break}r.gridSize=Math.max(Math.floor(r.gridSize),4);var d,h,f,p,g,m,v,A,b=r.gridSize,y=b-r.maskGapWidth,w=Math.abs(r.maxRotation-r.minRotation),_=Math.abs(Math.floor(r.rotationSteps)),x=Math.min(r.maxRotation,r.minRotation);switch(r.color){case"random-dark":v=function(){return Q(10,50)};break;case"random-light":v=function(){return Q(50,90)};break;default:"function"===typeof r.color&&(v=r.color);break}"function"===typeof r.fontWeight&&(A=r.fontWeight);var E=null;"function"===typeof r.classes&&(E=r.classes);var S,C=!1,T=[],k=function(e){var t,n,r=e.currentTarget,i=r.getBoundingClientRect();e.touches?(t=e.touches[0].clientX,n=e.touches[0].clientY):(t=e.clientX,n=e.clientY);var o=t-i.left,a=o<0?0:o,s=n-i.top,l=Math.floor(a*(r.width/i.width||1)/b),c=Math.floor(s*(r.height/i.height||1)/b);return T[l]?T[l][c]:null},O=function(e){var t=k(e);S!==t&&(S=t,t?r.hover(t.item,t.dimension,e):r.hover(void 0,void 0,e))},M=function(e){var t=k(e);t&&(r.click(t.item,t.dimension,e),e.preventDefault())},I=[],D=function(e){if(I[e])return I[e];var t=8*e,n=t,i=[];0===e&&i.push([p[0],p[1],0]);while(n--){var o=1;"circle"!==r.shape&&(o=r.shape(n/t*2*Math.PI)),i.push([p[0]+e*o*Math.cos(-n/t*2*Math.PI),p[1]+e*o*Math.sin(-n/t*2*Math.PI)*r.ellipticity,n/t*2*Math.PI])}return I[e]=i,i},N=function(){return r.abortThreshold>0&&(new Date).getTime()-m>r.abortThreshold},R=function(){return 0===r.rotateRatio||Math.random()>r.rotateRatio?0:0===w?x:_>0?x+Math.floor(Math.random()*_)*w/(_-1):x+Math.random()*w},L=function(e,t,n,i){var o=!1,s=r.weightFactor(t);if(s<=r.minSize)return!1;var l,c=1;s<a&&(c=function(){var e=2;while(e*s<a)e+=2;return e}()),l=A?A(e,t,s,i):r.fontWeight;var u=document.createElement("canvas"),d=u.getContext("2d",{willReadFrequently:!0});d.font=l+" "+(s*c).toString(10)+"px "+r.fontFamily;var h=d.measureText(e).width/c,f=Math.max(s*c,d.measureText("m").width,d.measureText("Ｗ").width)/c,p=h+2*f,g=3*f,m=Math.ceil(p/b),v=Math.ceil(g/b);p=m*b,g=v*b;var y=-h/2,w=.4*-f,_=Math.ceil((p*Math.abs(Math.sin(n))+g*Math.abs(Math.cos(n)))/b),x=Math.ceil((p*Math.abs(Math.cos(n))+g*Math.abs(Math.sin(n)))/b),E=x*b,S=_*b;u.setAttribute("width",E),u.setAttribute("height",S),o&&(document.body.appendChild(u),d.save()),d.scale(1/c,1/c),d.translate(E*c/2,S*c/2),d.rotate(-n),d.font=l+" "+(s*c).toString(10)+"px "+r.fontFamily,d.fillStyle="#000",d.textBaseline="middle",d.fillText(e,y*c,(w+.5*s)*c);var C=d.getImageData(0,0,E,S).data;if(N())return!1;o&&(d.strokeRect(y*c,w,h*c,f*c),d.restore());var T,k,O,M=[],I=x,D=[_/2,x/2,_/2,x/2];while(I--){T=_;while(T--){O=b;e:while(O--){k=b;while(k--)if(C[4*((T*b+O)*E+(I*b+k))+3]){M.push([I,T]),I<D[3]&&(D[3]=I),I>D[1]&&(D[1]=I),T<D[0]&&(D[0]=T),T>D[2]&&(D[2]=T),o&&(d.fillStyle="rgba(255, 0, 0, 0.5)",d.fillRect(I*b,T*b,b-.5,b-.5));break e}}o&&(d.fillStyle="rgba(0, 0, 255, 0.5)",d.fillRect(I*b,T*b,b-.5,b-.5))}}return o&&(d.fillStyle="rgba(0, 255, 0, 0.5)",d.fillRect(D[3]*b,D[0]*b,(D[1]-D[3]+1)*b,(D[2]-D[0]+1)*b)),{mu:c,occupied:M,bounds:D,gw:x,gh:_,fillTextOffsetX:y,fillTextOffsetY:w,fillTextWidth:h,fillTextHeight:f,fontSize:s}},B=function(e,t,n,i,o){var a=o.length;while(a--){var s=e+o[a][0],l=t+o[a][1];if(s>=h||l>=f||s<0||l<0){if(!r.drawOutOfBound)return!1}else if(!d[s][l])return!1}return!0},P=function(t,n,i,o,a,s,l,c,u,d){var h,f,p,g=i.fontSize;h=v?v(o,a,g,s,l,d):r.color,f=A?A(o,a,g,d):r.fontWeight,p=E?E(o,a,g,d):r.classes,e.forEach(function(e){if(e.getContext){var a=e.getContext("2d"),s=i.mu;a.save(),a.scale(1/s,1/s),a.font=f+" "+(g*s).toString(10)+"px "+r.fontFamily,a.fillStyle=h,a.translate((t+i.gw/2)*b*s,(n+i.gh/2)*b*s),0!==c&&a.rotate(-c),a.textBaseline="middle",a.fillText(o,i.fillTextOffsetX*s,(i.fillTextOffsetY+.5*g)*s),a.restore()}else{var l=document.createElement("span"),d="";d="rotate("+-c/Math.PI*180+"deg) ",1!==i.mu&&(d+="translateX(-"+i.fillTextWidth/4+"px) scale("+1/i.mu+")");var m={position:"absolute",display:"block",font:f+" "+g*i.mu+"px "+r.fontFamily,left:(t+i.gw/2)*b+i.fillTextOffsetX+"px",top:(n+i.gh/2)*b+i.fillTextOffsetY+"px",width:i.fillTextWidth+"px",height:i.fillTextHeight+"px",lineHeight:g+"px",whiteSpace:"nowrap",transform:d,webkitTransform:d,msTransform:d,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};for(var v in h&&(m.color=h),l.textContent=o,m)l.style[v]=m[v];if(u)for(var A in u)l.setAttribute(A,u[A]);p&&(l.className+=p),e.appendChild(l)}})},F=function(t,n,r,i,o){if(!(t>=h||n>=f||t<0||n<0)){if(d[t][n]=!1,r){var a=e[0].getContext("2d");a.fillRect(t*b,n*b,y,y)}C&&(T[t][n]={item:o,dimension:i})}},$=function(t,n,i,o,a,s){var l,c,u=a.occupied,d=r.drawMask;if(d&&(l=e[0].getContext("2d"),l.save(),l.fillStyle=r.maskColor),C){var p=a.bounds;c={x:(t+p[3])*b,y:(n+p[0])*b,w:(p[1]-p[3]+1)*b,h:(p[2]-p[0]+1)*b}}var g=u.length;while(g--){var m=t+u[g][0],v=n+u[g][1];m>=h||v>=f||m<0||v<0||F(m,v,d,c,s)}d&&l.restore()},j=function e(t){var n,i,o;Array.isArray(t)?(n=t[0],i=t[1]):(n=t.word,i=t.weight,o=t.attributes);var a=R(),c=s(t),u=L(n,i,a,c);if(!u)return!1;if(N())return!1;if(!r.drawOutOfBound&&!r.shrinkToFit){var d=u.bounds;if(d[1]-d[3]+1>h||d[2]-d[0]+1>f)return!1}var p=g+1,m=function(e){var r=Math.floor(e[0]-u.gw/2),s=Math.floor(e[1]-u.gh/2),l=u.gw,d=u.gh;return!!B(r,s,l,d,u.occupied)&&(P(r,s,u,n,i,g-p,e[2],a,o,c),$(r,s,l,d,u,t),!0)};while(p--){var v=D(g-p);r.shuffle&&(v=[].concat(v),l(v));var A=v.some(m);if(A)return!0}return!!r.shrinkToFit&&(Array.isArray(t)?t[1]=3*t[1]/4:t.weight=3*t.weight/4,e(t))},H=function(t,n,r){if(n)return!e.some(function(e){var n=new CustomEvent(t,{detail:r||{}});return!e.dispatchEvent(n)},this);e.forEach(function(e){var n=new CustomEvent(t,{detail:r||{}});e.dispatchEvent(n)},this)},U=function(){var t=e[0];if(t.getContext)h=Math.ceil(t.width/b),f=Math.ceil(t.height/b);else{var i=t.getBoundingClientRect();h=Math.ceil(i.width/b),f=Math.ceil(i.height/b)}if(H("wordcloudstart",!0)){var o,a,s,l,u;if(p=r.origin?[r.origin[0]/b,r.origin[1]/b]:[h/2,f/2],g=Math.floor(Math.sqrt(h*h+f*f)),d=[],!t.getContext||r.clearCanvas){e.forEach(function(e){if(e.getContext){var t=e.getContext("2d");t.fillStyle=r.backgroundColor,t.clearRect(0,0,h*(b+1),f*(b+1)),t.fillRect(0,0,h*(b+1),f*(b+1))}else e.textContent="",e.style.backgroundColor=r.backgroundColor,e.style.position="relative"}),o=h;while(o--){d[o]=[],a=f;while(a--)d[o][a]=!0}}else{var v=document.createElement("canvas").getContext("2d");v.fillStyle=r.backgroundColor,v.fillRect(0,0,1,1);var A,y,w=v.getImageData(0,0,1,1).data,_=t.getContext("2d").getImageData(0,0,h*b,f*b).data;o=h;while(o--){d[o]=[],a=f;while(a--){y=b;e:while(y--){A=b;while(A--){s=4;while(s--)if(_[4*((a*b+y)*h*b+(o*b+A))+s]!==w[s]){d[o][a]=!1;break e}}}!1!==d[o][a]&&(d[o][a]=!0)}}_=v=w=void 0}if(r.hover||r.click){C=!0,o=h+1;while(o--)T[o]=[];r.hover&&t.addEventListener("mousemove",O),r.click&&(t.addEventListener("click",M),t.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),t.addEventListener("wordcloudstart",function e(){t.removeEventListener("wordcloudstart",e),t.removeEventListener("mousemove",O),t.removeEventListener("click",M),S=void 0})}s=0,0!==r.wait?(l=window.setTimeout,u=window.clearTimeout):(l=window.setImmediate,u=window.clearImmediate);var x=function(t,n){e.forEach(function(e){e.addEventListener(t,n)},this)},E=function(t,n){e.forEach(function(e){e.removeEventListener(t,n)},this)},k=function e(){E("wordcloudstart",e),u(c[n])};x("wordcloudstart",k),c[n]=l(function e(){if(s>=r.list.length)return u(c[n]),H("wordcloudstop",!1),E("wordcloudstart",k),void delete c[n];m=(new Date).getTime();var t=j(r.list[s]),i=!H("wordclouddrawn",!0,{item:r.list[s],drawn:t});if(N()||i)return u(c[n]),r.abort(),H("wordcloudabort",!1),H("wordcloudstop",!1),E("wordcloudstart",k),void delete c[n];s++,c[n]=l(e,r.wait)},r.wait)}};U()}function Q(e,t){return"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(t-e)+e).toFixed()+"%)"}};u.isSupported=o,u.minFontSize=a,u.stop=function(){if(c)for(var e in c)window.clearImmediate(c[e])},n.WordCloud=u,r=[],i=function(){return u}.apply(t,r),void 0===i||(e.exports=i)}(this)},45772:function(e){function t(e){const t=e.regex,n={className:"meta",begin:"@[A-Za-z]+"},r={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},i={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,r]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[r],relevance:10}]},o={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},a={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},s={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[o,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a]},l={className:"function",beginKeywords:"def",end:t.lookahead(/[:={\[(\n;]/),contains:[a]},c={begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},u={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},d=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"}],h={begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}},f={className:"string",begin:/\S+/},p={begin:["//>",/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:"comment",3:"keyword",5:"type"},end:/$/,contains:[f]};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"},contains:[p,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,o,l,s,e.C_NUMBER_MODE,c,u,...d,h,n]}}e.exports=t},45876:function(e,t,n){"use strict";var r=n(46518),i=n(53838),o=n(84916),a=!o("isSubsetOf",function(e){return e});r({target:"Set",proto:!0,real:!0,forced:a},{isSubsetOf:i})},45887:function(e,t){"use strict";function n(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}t.A=n},45966:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="PlayCircleOutlined",c.inheritAttrs=!1;var u=c},45987:function(e,t,n){n(79577),n(41549),n(49797),n(49631),n(35623);const r=n(31558);function i(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}i.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},i.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=r.mod(t,this.genPoly),i=this.degree-n.length;if(i>0){const e=new Uint8Array(this.degree);return e.set(n,i),e}return n},e.exports=i},46111:function(e){function t(e){const t={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},n="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",r={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:n},contains:[t,r,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}e.exports=t},46274:function(e){e.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},46518:function(e,t,n){"use strict";var r=n(44576),i=n(77347).f,o=n(66699),a=n(36840),s=n(39433),l=n(77740),c=n(92796);e.exports=function(e,t){var n,u,d,h,f,p,g=e.target,m=e.global,v=e.stat;if(u=m?r:v?r[g]||s(g,{}):r[g]&&r[g].prototype,u)for(d in t){if(f=t[d],e.dontCallGetSet?(p=i(u,d),h=p&&p.value):h=u[d],n=c(m?d:g+(v?".":"#")+d,e.forced),!n&&void 0!==h){if(typeof f==typeof h)continue;l(f,h)}(e.sham||h&&h.sham)&&o(f,"sham",!0),a(u,d,f,e)}}},46525:function(e){function t(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}e.exports=t},46706:function(e,t,n){"use strict";var r=n(79504),i=n(79306);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(o){}}},46764:function(e,t,n){"use strict";n.d(t,{Ay:function(){return Fo}});n(44114),n(18111),n(22489),n(7588),n(61701);var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(81425),l=n(49974),c=n(98684),u=(n(81148),n(16678)),d=n(87546),h=n(7403),f=n(6252),p=n(12739);function g(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}var m=g,v=n(41018),A=n(35061);function b(e,t,n,r){var i=!n;n||(n={});var o=-1,a=t.length;while(++o<a){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?(0,A.A)(n,s,l):(0,v.A)(n,s,l)}return n}var y=b,w=n(87351);function _(e,t){return e&&y(t,(0,w.A)(t),e)}var x=_,E=n(35318),S=n(60168),C=n(83110);function T(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}var k=T,O=Object.prototype,M=O.hasOwnProperty;function I(e){if(!(0,S.A)(e))return k(e);var t=(0,C.A)(e),n=[];for(var r in e)("constructor"!=r||!t&&M.call(e,r))&&n.push(r);return n}var D=I,N=n(41805);function R(e){return(0,N.A)(e)?(0,E.A)(e,!0):D(e)}var L=R;function B(e,t){return e&&y(t,L(t),e)}var P=B,F=n(39578),$="object"==typeof exports&&exports&&!exports.nodeType&&exports,j=$&&"object"==typeof module&&module&&!module.nodeType&&module,H=j&&j.exports===$,U=H?F.A.Buffer:void 0,Q=U?U.allocUnsafe:void 0;function z(e,t){if(t)return e.slice();var n=e.length,r=Q?Q(n):new e.constructor(n);return e.copy(r),r}var W=z;function G(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}var V=G,K=n(71801);function Y(e,t){return y(e,(0,K.A)(e),t)}var q=Y,X=n(1821),J=n(69092),Z=n(56054),ee=Object.getOwnPropertySymbols,te=ee?function(e){var t=[];while(e)(0,X.A)(t,(0,K.A)(e)),e=(0,J.A)(e);return t}:Z.A,ne=te;function re(e,t){return y(e,ne(e),t)}var ie=re,oe=n(77661),ae=n(44672);function se(e){return(0,ae.A)(e,L,ne)}var le=se,ce=n(26200),ue=Object.prototype,de=ue.hasOwnProperty;function he(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&de.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var fe=he,pe=n(73939);function ge(e){var t=new e.constructor(e.byteLength);return new pe.A(t).set(new pe.A(e)),t}var me=ge;function ve(e,t){var n=t?me(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Ae=ve,be=/\w*$/;function ye(e){var t=new e.constructor(e.source,be.exec(e));return t.lastIndex=e.lastIndex,t}var we=ye,_e=n(72990),xe=_e.A?_e.A.prototype:void 0,Ee=xe?xe.valueOf:void 0;function Se(e){return Ee?Object(Ee.call(e)):{}}var Ce=Se;function Te(e,t){var n=t?me(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var ke=Te,Oe="[object Boolean]",Me="[object Date]",Ie="[object Map]",De="[object Number]",Ne="[object RegExp]",Re="[object Set]",Le="[object String]",Be="[object Symbol]",Pe="[object ArrayBuffer]",Fe="[object DataView]",$e="[object Float32Array]",je="[object Float64Array]",He="[object Int8Array]",Ue="[object Int16Array]",Qe="[object Int32Array]",ze="[object Uint8Array]",We="[object Uint8ClampedArray]",Ge="[object Uint16Array]",Ve="[object Uint32Array]";function Ke(e,t,n){var r=e.constructor;switch(t){case Pe:return me(e);case Oe:case Me:return new r(+e);case Fe:return Ae(e,n);case $e:case je:case He:case Ue:case Qe:case ze:case We:case Ge:case Ve:return ke(e,n);case Ie:return new r;case De:case Le:return new r(e);case Ne:return we(e);case Re:return new r;case Be:return Ce(e)}}var Ye=Ke,qe=Object.create,Xe=function(){function e(){}return function(t){if(!(0,S.A)(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Je=Xe;function Ze(e){return"function"!=typeof e.constructor||(0,C.A)(e)?{}:Je((0,J.A)(e))}var et=Ze,tt=n(23506),nt=n(1120),rt=n(22799),it="[object Map]";function ot(e){return(0,rt.A)(e)&&(0,ce.A)(e)==it}var at=ot,st=n(17528),lt=n(59646),ct=lt.A&&lt.A.isMap,ut=ct?(0,st.A)(ct):at,dt=ut,ht="[object Set]";function ft(e){return(0,rt.A)(e)&&(0,ce.A)(e)==ht}var pt=ft,gt=lt.A&&lt.A.isSet,mt=gt?(0,st.A)(gt):pt,vt=mt,At=1,bt=2,yt=4,wt="[object Arguments]",_t="[object Array]",xt="[object Boolean]",Et="[object Date]",St="[object Error]",Ct="[object Function]",Tt="[object GeneratorFunction]",kt="[object Map]",Ot="[object Number]",Mt="[object Object]",It="[object RegExp]",Dt="[object Set]",Nt="[object String]",Rt="[object Symbol]",Lt="[object WeakMap]",Bt="[object ArrayBuffer]",Pt="[object DataView]",Ft="[object Float32Array]",$t="[object Float64Array]",jt="[object Int8Array]",Ht="[object Int16Array]",Ut="[object Int32Array]",Qt="[object Uint8Array]",zt="[object Uint8ClampedArray]",Wt="[object Uint16Array]",Gt="[object Uint32Array]",Vt={};function Kt(e,t,n,r,i,o){var a,s=t&At,l=t&bt,c=t&yt;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!(0,S.A)(e))return e;var u=(0,tt.A)(e);if(u){if(a=fe(e),!s)return V(e,a)}else{var d=(0,ce.A)(e),h=d==Ct||d==Tt;if((0,nt.A)(e))return W(e,s);if(d==Mt||d==wt||h&&!i){if(a=l||h?{}:et(e),!s)return l?ie(e,P(a,e)):q(e,x(a,e))}else{if(!Vt[d])return i?e:{};a=Ye(e,d,s)}}o||(o=new p.A);var f=o.get(e);if(f)return f;o.set(e,a),vt(e)?e.forEach(function(r){a.add(Kt(r,t,n,r,e,o))}):dt(e)&&e.forEach(function(r,i){a.set(i,Kt(r,t,n,i,e,o))});var g=c?l?le:oe.A:l?L:w.A,A=u?void 0:g(e);return m(A||e,function(r,i){A&&(i=r,r=e[i]),(0,v.A)(a,i,Kt(r,t,n,i,e,o))}),a}Vt[wt]=Vt[_t]=Vt[Bt]=Vt[Pt]=Vt[xt]=Vt[Et]=Vt[Ft]=Vt[$t]=Vt[jt]=Vt[Ht]=Vt[Ut]=Vt[kt]=Vt[Ot]=Vt[Mt]=Vt[It]=Vt[Dt]=Vt[Nt]=Vt[Rt]=Vt[Qt]=Vt[zt]=Vt[Wt]=Vt[Gt]=!0,Vt[St]=Vt[Ct]=Vt[Lt]=!1;var Yt=Kt,qt=1,Xt=4;function Jt(e){return Yt(e,qt|Xt)}var Zt=Jt,en=n(16171),tn=n(44832);n(18237);function nn(){return nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nn.apply(this,arguments)}function rn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,an(e,t)}function on(e){return on=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},on(e)}function an(e,t){return an=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},an(e,t)}function sn(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function ln(e,t,n){return ln=sn()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=Function.bind.apply(e,r),o=new i;return n&&an(o,n.prototype),o},ln.apply(null,arguments)}function cn(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function un(e){var t="function"===typeof Map?new Map:void 0;return un=function(e){if(null===e||!cn(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return ln(e,arguments,on(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),an(n,e)},un(e)}var dn=/%[sdj%]/g,hn=function(){};function fn(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function pn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,o=n.length;if("function"===typeof e)return e.apply(null,n);if("string"===typeof e){var a=e.replace(dn,function(e){if("%%"===e)return"%";if(i>=o)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(t){return"[Circular]"}default:return e}});return a}return e}function gn(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}function mn(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!gn(t)||"string"!==typeof e||e))}function vn(e,t,n){var r=[],i=0,o=e.length;function a(e){r.push.apply(r,e||[]),i++,i===o&&n(r)}e.forEach(function(e){t(e,a)})}function An(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<i?t(e[s],o):n([])}}o([])}function bn(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var yn=function(e){function t(t,n){var r;return r=e.call(this,"Async Validation Error")||this,r.errors=t,r.fields=n,r}return rn(t,e),t}(un(Error));function wn(e,t,n,r,i){if(t.first){var o=new Promise(function(t,o){var a=function(e){return r(e),e.length?o(new yn(e,fn(e))):t(i)},s=bn(e);An(s,n,a)});return o["catch"](function(e){return e}),o}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(t,o){var d=function(e){if(u.push.apply(u,e),c++,c===l)return r(u),u.length?o(new yn(u,fn(u))):t(i)};s.length||(r(u),t(i)),s.forEach(function(t){var r=e[t];-1!==a.indexOf(t)?An(r,n,d):vn(r,n,d)})});return d["catch"](function(e){return e}),d}function _n(e){return!(!e||void 0===e.message)}function xn(e,t){for(var n=e,r=0;r<t.length;r++){if(void 0==n)return n;n=n[t[r]]}return n}function En(e,t){return function(n){var r;return r=e.fullFields?xn(t,e.fullFields):t[n.field||e.fullField],_n(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"===typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function Sn(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===typeof r&&"object"===typeof e[n]?e[n]=nn({},e[n],r):e[n]=r}return e}var Cn,Tn=function(e,t,n,r,i,o){!e.required||n.hasOwnProperty(e.field)&&!mn(t,o||e.type)||r.push(pn(i.messages.required,e.fullField))},kn=function(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(pn(i.messages.whitespace,e.fullField))},On=function(){if(Cn)return Cn;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+i+"$"),l=function(e){return e&&e.exact?o:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+i+t(e)+")","g")};l.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},l.v6=function(e){return e&&e.exact?s:new RegExp(""+t(e)+i+t(e),"g")};var c="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",d=l.v4().source,h=l.v6().source,f="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",p="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",v='(?:[/?#][^\\s"]*)?',A="(?:"+c+"|www\\.)"+u+"(?:localhost|"+d+"|"+h+"|"+f+p+g+")"+m+v;return Cn=new RegExp("(?:^"+A+"$)","i"),Cn},Mn={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},In={integer:function(e){return In.number(e)&&parseInt(e,10)===e},float:function(e){return In.number(e)&&!In.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===typeof e&&!In.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(Mn.email)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(On())},hex:function(e){return"string"===typeof e&&!!e.match(Mn.hex)}},Dn=function(e,t,n,r,i){if(e.required&&void 0===t)Tn(e,t,n,r,i);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=e.type;o.indexOf(a)>-1?In[a](t)||r.push(pn(i.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&r.push(pn(i.messages.types[a],e.fullField,e.type))}},Nn=function(e,t,n,r,i){var o="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,u=null,d="number"===typeof t,h="string"===typeof t,f=Array.isArray(t);if(d?u="number":h?u="string":f&&(u="array"),!u)return!1;f&&(c=t.length),h&&(c=t.replace(l,"_").length),o?c!==e.len&&r.push(pn(i.messages[u].len,e.fullField,e.len)):a&&!s&&c<e.min?r.push(pn(i.messages[u].min,e.fullField,e.min)):s&&!a&&c>e.max?r.push(pn(i.messages[u].max,e.fullField,e.max)):a&&s&&(c<e.min||c>e.max)&&r.push(pn(i.messages[u].range,e.fullField,e.min,e.max))},Rn="enum",Ln=function(e,t,n,r,i){e[Rn]=Array.isArray(e[Rn])?e[Rn]:[],-1===e[Rn].indexOf(t)&&r.push(pn(i.messages[Rn],e.fullField,e[Rn].join(", ")))},Bn=function(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(pn(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var o=new RegExp(e.pattern);o.test(t)||r.push(pn(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}},Pn={required:Tn,whitespace:kn,type:Dn,range:Nn,enum:Ln,pattern:Bn},Fn=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(mn(t,"string")&&!e.required)return n();Pn.required(e,t,r,o,i,"string"),mn(t,"string")||(Pn.type(e,t,r,o,i),Pn.range(e,t,r,o,i),Pn.pattern(e,t,r,o,i),!0===e.whitespace&&Pn.whitespace(e,t,r,o,i))}n(o)},$n=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(mn(t)&&!e.required)return n();Pn.required(e,t,r,o,i),void 0!==t&&Pn.type(e,t,r,o,i)}n(o)},jn=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(""===t&&(t=void 0),mn(t)&&!e.required)return n();Pn.required(e,t,r,o,i),void 0!==t&&(Pn.type(e,t,r,o,i),Pn.range(e,t,r,o,i))}n(o)},Hn=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(mn(t)&&!e.required)return n();Pn.required(e,t,r,o,i),void 0!==t&&Pn.type(e,t,r,o,i)}n(o)},Un=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(mn(t)&&!e.required)return n();Pn.required(e,t,r,o,i),mn(t)||Pn.type(e,t,r,o,i)}n(o)},Qn=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(mn(t)&&!e.required)return n();Pn.required(e,t,r,o,i),void 0!==t&&(Pn.type(e,t,r,o,i),Pn.range(e,t,r,o,i))}n(o)},zn=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(mn(t)&&!e.required)return n();Pn.required(e,t,r,o,i),void 0!==t&&(Pn.type(e,t,r,o,i),Pn.range(e,t,r,o,i))}n(o)},Wn=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if((void 0===t||null===t)&&!e.required)return n();Pn.required(e,t,r,o,i,"array"),void 0!==t&&null!==t&&(Pn.type(e,t,r,o,i),Pn.range(e,t,r,o,i))}n(o)},Gn=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(mn(t)&&!e.required)return n();Pn.required(e,t,r,o,i),void 0!==t&&Pn.type(e,t,r,o,i)}n(o)},Vn="enum",Kn=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(mn(t)&&!e.required)return n();Pn.required(e,t,r,o,i),void 0!==t&&Pn[Vn](e,t,r,o,i)}n(o)},Yn=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(mn(t,"string")&&!e.required)return n();Pn.required(e,t,r,o,i),mn(t,"string")||Pn.pattern(e,t,r,o,i)}n(o)},qn=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(mn(t,"date")&&!e.required)return n();var s;if(Pn.required(e,t,r,o,i),!mn(t,"date"))s=t instanceof Date?t:new Date(t),Pn.type(e,s,r,o,i),s&&Pn.range(e,s.getTime(),r,o,i)}n(o)},Xn=function(e,t,n,r,i){var o=[],a=Array.isArray(t)?"array":typeof t;Pn.required(e,t,r,o,i,a),n(o)},Jn=function(e,t,n,r,i){var o=e.type,a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(mn(t,o)&&!e.required)return n();Pn.required(e,t,r,a,i,o),mn(t,o)||Pn.type(e,t,r,a,i)}n(a)},Zn=function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(mn(t)&&!e.required)return n();Pn.required(e,t,r,o,i)}n(o)},er={string:Fn,method:$n,number:jn,boolean:Hn,regexp:Un,integer:Qn,float:zn,array:Wn,object:Gn,enum:Kn,pattern:Yn,date:qn,url:Jn,hex:Jn,email:Jn,required:Xn,any:Zn};function tr(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var nr=tr(),rr=function(){function e(e){this.rules=null,this._messages=nr,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})},t.messages=function(e){return e&&(this._messages=Sn(tr(),e)),this._messages},t.validate=function(t,n,r){var i=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var o=t,a=n,s=r;if("function"===typeof a&&(s=a,a={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,o),Promise.resolve(o);function l(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var i=0;i<e.length;i++)r(e[i]);t.length?(n=fn(t),s(t,n)):s(null,o)}if(a.messages){var c=this.messages();c===nr&&(c=tr()),Sn(c,a.messages),a.messages=c}else a.messages=this.messages();var u={},d=a.keys||Object.keys(this.rules);d.forEach(function(e){var n=i.rules[e],r=o[e];n.forEach(function(n){var a=n;"function"===typeof a.transform&&(o===t&&(o=nn({},o)),r=o[e]=a.transform(r)),a="function"===typeof a?{validator:a}:nn({},a),a.validator=i.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=i.getType(a),u[e]=u[e]||[],u[e].push({rule:a,value:r,source:o,field:e}))})});var h={};return wn(u,a,function(t,n){var r,i=t.rule,s=("object"===i.type||"array"===i.type)&&("object"===typeof i.fields||"object"===typeof i.defaultField);function l(e,t){return nn({},t,{fullField:i.fullField+"."+e,fullFields:i.fullFields?[].concat(i.fullFields,[e]):[e]})}function c(r){void 0===r&&(r=[]);var c=Array.isArray(r)?r:[r];!a.suppressWarning&&c.length&&e.warning("async-validator:",c),c.length&&void 0!==i.message&&(c=[].concat(i.message));var u=c.map(En(i,o));if(a.first&&u.length)return h[i.field]=1,n(u);if(s){if(i.required&&!t.value)return void 0!==i.message?u=[].concat(i.message).map(En(i,o)):a.error&&(u=[a.error(i,pn(a.messages.required,i.field))]),n(u);var d={};i.defaultField&&Object.keys(t.value).map(function(e){d[e]=i.defaultField}),d=nn({},d,t.rule.fields);var f={};Object.keys(d).forEach(function(e){var t=d[e],n=Array.isArray(t)?t:[t];f[e]=n.map(l.bind(null,e))});var p=new e(f);p.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),p.validate(t.value,t.rule.options||a,function(e){var t=[];u&&u.length&&t.push.apply(t,u),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)})}else n(u)}if(s=s&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator)r=i.asyncValidator(i,t.value,c,t.source,a);else if(i.validator){try{r=i.validator(i,t.value,c,t.source,a)}catch(u){null==console.error||console.error(u),a.suppressValidatorError||setTimeout(function(){throw u},0),c(u.message)}!0===r?c():!1===r?c("function"===typeof i.message?i.message(i.fullField||i.field):i.message||(i.fullField||i.field)+" fails"):r instanceof Array?c(r):r instanceof Error&&c(r.message)}r&&r.then&&r.then(function(){return c()},function(e){return c(e)})},function(e){l(e)},o)},t.getType=function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!er.hasOwnProperty(e.type))throw new Error(pn("Unknown rule type %s",e.type));return e.type||"string"},t.getValidationMethod=function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?er.required:er[this.getType(e)]||void 0},e}();rr.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");er[e]=t},rr.warning=hn,rr.messages=nr,rr.validators=er;var ir=n(99899);n(13579);function or(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}function ar(e,t){let n=e;for(let r=0;r<t.length;r+=1){if(null===n||void 0===n)return;n=n[t[r]]}return n}function sr(e,t,n,r){if(!t.length)return n;const[o,...a]=t;let s;return s=e||"number"!==typeof o?Array.isArray(e)?[...e]:(0,i.A)({},e):[],r&&void 0===n&&1===a.length?delete s[o][a[0]]:s[o]=sr(s[o],a,n,r),s}function lr(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!ar(e,t.slice(0,-1))?e:sr(e,t,n,r)}function cr(e){return or(e)}function ur(e,t){const n=ar(e,t);return n}function dr(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=lr(e,t,n,r);return i}function hr(e,t){return e&&e.some(e=>vr(e,t))}function fr(e){return"object"===typeof e&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function pr(e,t){const n=Array.isArray(e)?[...e]:(0,i.A)({},e);return t?(Object.keys(t).forEach(e=>{const r=n[e],i=t[e],o=fr(r)&&fr(i);n[e]=o?pr(r,i||{}):i}),n):n}function gr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((e,t)=>pr(e,t),e)}function mr(e,t){let n={};return t.forEach(t=>{const r=ur(e,t);n=dr(n,t,r)}),n}function vr(e,t){return!(!e||!t||e.length!==t.length)&&e.every((e,n)=>t[n]===e)}const Ar="'${name}' is not a valid ${type}",br={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Ar,method:Ar,array:Ar,object:Ar,number:Ar,date:Ar,boolean:Ar,integer:Ar,float:Ar,regexp:Ar,email:Ar,url:Ar,hex:Ar},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};var yr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})};const wr=rr;function _r(e,t){return e.replace(/\$\{\w+\}/g,e=>{const n=e.slice(2,-1);return t[n]})}function xr(e,t,n,r,a){return yr(this,void 0,void 0,function*(){const s=(0,i.A)({},n);delete s.ruleIndex,delete s.trigger;let l=null;s&&"array"===s.type&&s.defaultField&&(l=s.defaultField,delete s.defaultField);const c=new wr({[e]:[s]}),u=gr({},br,r.validateMessages);c.messages(u);let d=[];try{yield Promise.resolve(c.validate({[e]:t},(0,i.A)({},r)))}catch(p){p.errors?d=p.errors.map((e,t)=>{let{message:n}=e;return(0,tn.zO)(n)?(0,o.E3)(n,{key:`error_${t}`}):n}):(console.error(p),d=[u.default()])}if(!d.length&&l){const n=yield Promise.all(t.map((t,n)=>xr(`${e}.${n}`,t,l,r,a)));return n.reduce((e,t)=>[...e,...t],[])}const h=(0,i.A)((0,i.A)((0,i.A)({},n),{name:e,enum:(n.enum||[]).join(", ")}),a),f=d.map(e=>"string"===typeof e?_r(e,h):e);return f})}function Er(e,t,n,r,o,a){const s=e.join("."),l=n.map((e,t)=>{const n=e.validator,r=(0,i.A)((0,i.A)({},e),{ruleIndex:t});return n&&(r.validator=(e,t,r)=>{let i=!1;const o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then(()=>{(0,ir.$e)(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r(...t)})},a=n(e,t,o);i=a&&"function"===typeof a.then&&"function"===typeof a.catch,(0,ir.$e)(i,"`callback` is deprecated. Please return a promise instead."),i&&a.then(()=>{r()}).catch(e=>{r(e||" ")})}),r}).sort((e,t)=>{let{warningOnly:n,ruleIndex:r}=e,{warningOnly:i,ruleIndex:o}=t;return!!n===!!i?r-o:n?1:-1});let c;if(!0===o)c=new Promise((e,n)=>yr(this,void 0,void 0,function*(){for(let e=0;e<l.length;e+=1){const i=l[e],o=yield xr(s,t,i,r,a);if(o.length)return void n([{errors:o,rule:i}])}e([])}));else{const e=l.map(e=>xr(s,t,e,r,a).then(t=>({errors:t,rule:e})));c=(o?Cr(e):Sr(e)).then(e=>Promise.reject(e))}return c.catch(e=>e),c}function Sr(e){return yr(this,void 0,void 0,function*(){return Promise.all(e).then(e=>{const t=[].concat(...e);return t})})}function Cr(e){return yr(this,void 0,void 0,function*(){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(r=>{r.errors.length&&n([r]),t+=1,t===e.length&&n([])})})})})}var Tr=n(81449);function kr(e){return function(t,n,r){var i=Object(t);if(!(0,N.A)(t)){var o=(0,Tr.A)(n,3);t=(0,w.A)(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}var Or=kr,Mr=n(31158),Ir=n(10754),Dr=1/0,Nr=17976931348623157e292;function Rr(e){if(!e)return 0===e?e:0;if(e=(0,Ir.A)(e),e===Dr||e===-Dr){var t=e<0?-1:1;return t*Nr}return e===e?e:0}var Lr=Rr;function Br(e){var t=Lr(e),n=t%1;return t===t?n?t-n:t:0}var Pr=Br,Fr=Math.max;function $r(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Pr(n);return i<0&&(i=Fr(r+i,0)),(0,Mr.A)(e,(0,Tr.A)(t,3),i)}var jr=$r,Hr=Or(jr),Ur=Hr,Qr=n(44678),zr=n(60674);const Wr=Symbol("formContextKey"),Gr=e=>{(0,o.Gt)(Wr,e)},Vr=()=>(0,o.WQ)(Wr,{name:(0,o.EW)(()=>{}),labelAlign:(0,o.EW)(()=>"right"),vertical:(0,o.EW)(()=>!1),addField:(e,t)=>{},removeField:e=>{},model:(0,o.EW)(()=>{}),rules:(0,o.EW)(()=>{}),colon:(0,o.EW)(()=>{}),labelWrap:(0,o.EW)(()=>{}),labelCol:(0,o.EW)(()=>{}),requiredMark:(0,o.EW)(()=>!1),validateTrigger:(0,o.EW)(()=>{}),onValidate:()=>{},validateMessages:(0,o.EW)(()=>br)}),Kr=Symbol("formItemPrefixContextKey"),Yr=e=>{(0,o.Gt)(Kr,e)},qr=()=>(0,o.WQ)(Kr,{prefixCls:(0,o.EW)(()=>"")});var Xr=n(73821),Jr=n(36590),Zr=n(32342),ei=n(35678),ti=n(51644);const ni=(e,t)=>{let{slots:n,emit:a,attrs:s}=t;var c,u,d,h,f;const{prefixCls:p,htmlFor:g,labelCol:m,labelAlign:v,colon:A,required:b,requiredMark:y}=(0,i.A)((0,i.A)({},e),s),[w]=(0,Jr.n)("Form"),_=null!==(c=e.label)&&void 0!==c?c:null===(u=n.label)||void 0===u?void 0:u.call(n);if(!_)return null;const{vertical:x,labelAlign:E,labelCol:S,labelWrap:C,colon:T}=Vr(),k=m||(null===S||void 0===S?void 0:S.value)||{},O=v||(null===E||void 0===E?void 0:E.value),M=`${p}-item-label`,I=(0,l.A)(M,"left"===O&&`${M}-left`,k.class,{[`${M}-wrap`]:!!C.value});let D=_;const N=!0===A||!1!==(null===T||void 0===T?void 0:T.value)&&!1!==A,R=N&&!x.value;if(R&&"string"===typeof _&&""!==_.trim()&&(D=_.replace(/[:|：]\s*$/,"")),e.tooltip||n.tooltip){const t=(0,o.bF)("span",{class:`${p}-item-tooltip`},[(0,o.bF)(ei.A,{title:e.tooltip},{default:()=>[(0,o.bF)(ti.A,null,null)]})]);D=(0,o.bF)(o.FK,null,[D,n.tooltip?null===(d=n.tooltip)||void 0===d?void 0:d.call(n,{class:`${p}-item-tooltip`}):t])}"optional"!==y||b||(D=(0,o.bF)(o.FK,null,[D,(0,o.bF)("span",{class:`${p}-item-optional`},[(null===(h=w.value)||void 0===h?void 0:h.optional)||(null===(f=Zr.A.Form)||void 0===f?void 0:f.optional)])]));const L=(0,l.A)({[`${p}-item-required`]:b,[`${p}-item-required-mark-optional`]:"optional"===y,[`${p}-item-no-colon`]:!N});return(0,o.bF)(Xr.A,(0,r.A)((0,r.A)({},k),{},{class:I}),{default:()=>[(0,o.bF)("label",{for:g,class:L,title:"string"===typeof _?_:"",onClick:e=>a("click",e)},[D])]})};ni.displayName="FormItemLabel",ni.inheritAttrs=!1;var ri=ni,ii=n(45130),oi=n(51589),ai=n(99603),si=n(94012),li=n(79024),ci=n(90112),ui=n(9519),di=n(36068);const hi=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut},\n                     opacity ${e.motionDurationSlow} ${e.motionEaseInOut},\n                     transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,["&-active"]:{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}};var fi=hi;const pi=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},["input[type='file']:focus,\n  input[type='radio']:focus,\n  input[type='checkbox']:focus"]:{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),gi=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},mi=e=>{const{componentCls:t}=e;return{[e.componentCls]:(0,i.A)((0,i.A)((0,i.A)({},(0,di.dF)(e)),pi(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":(0,i.A)({},gi(e,e.controlHeightSM)),"&-large":(0,i.A)({},gi(e,e.controlHeightLG))})}},vi=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o}=e;return{[t]:(0,i.A)((0,i.A)({},(0,di.dF)(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n        &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'" "'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:si.nF,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Ai=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${r}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},bi=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:e.margin,marginBottom:0,"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label,\n        > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},yi=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),wi=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:yi(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label,\n          ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},_i=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,\n      .${r}-col-24${n}-label,\n      .${r}-col-xl-24${n}-label`]:yi(e),[`@media (max-width: ${e.screenXSMax}px)`]:[wi(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:yi(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:yi(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:yi(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:yi(e)}}}};var xi=(0,ci.A)("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=(0,ui.h1)(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[mi(r),vi(r),fi(r),Ai(r),bi(r),_i(r),(0,li.A)(r),si.nF]}),Ei=(0,o.pM)({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(e,t){let{attrs:n}=t;const{prefixCls:i,status:s}=qr(),l=(0,o.EW)(()=>`${i.value}-item-explain`),c=(0,o.EW)(()=>!(!e.errors||!e.errors.length)),u=(0,a.KR)(s.value),[,d]=xi(i);return(0,o.wB)([c,s],()=>{c.value&&(u.value=s.value)}),()=>{var t,a;const s=(0,ai.A)(`${i.value}-show-help-item`),c=(0,oi.zg)(`${i.value}-show-help-item`,s);return c.role="alert",c.class=[d.value,l.value,n.class,`${i.value}-show-help`],(0,o.bF)(ii.eB,(0,r.A)((0,r.A)({},(0,oi.ce)(`${i.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[(0,o.bo)((0,o.bF)(ii.F,(0,r.A)((0,r.A)({},c),{},{tag:"div"}),{default:()=>[null===(a=e.errors)||void 0===a?void 0:a.map((e,t)=>(0,o.bF)("div",{key:t,class:u.value?`${l.value}-${u.value}`:""},[e]))]}),[[ii.aG,!!(null===(t=e.errors)||void 0===t?void 0:t.length)]])]})}}});const Si=(0,o.pM)({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(e,t){let{slots:n}=t;const a=Vr(),{wrapperCol:s}=a,c=(0,i.A)({},a);return delete c.labelCol,delete c.wrapperCol,Gr(c),Yr({prefixCls:(0,o.EW)(()=>e.prefixCls),status:(0,o.EW)(()=>e.status)}),()=>{var t,i,a;const{prefixCls:c,wrapperCol:u,marginBottom:d,onErrorVisibleChanged:h,help:f=(null===(t=n.help)||void 0===t?void 0:t.call(n)),errors:p=(0,tn.Gk)(null===(i=n.errors)||void 0===i?void 0:i.call(n)),extra:g=(null===(a=n.extra)||void 0===a?void 0:a.call(n))}=e,m=`${c}-item`,v=u||(null===s||void 0===s?void 0:s.value)||{},A=(0,l.A)(`${m}-control`,v.class);return(0,o.bF)(Xr.A,(0,r.A)((0,r.A)({},v),{},{class:A}),{default:()=>{var e;return(0,o.bF)(o.FK,null,[(0,o.bF)("div",{class:`${m}-control-input`},[(0,o.bF)("div",{class:`${m}-control-input-content`},[null===(e=n.default)||void 0===e?void 0:e.call(n)])]),null!==d||p.length?(0,o.bF)("div",{style:{display:"flex",flexWrap:"nowrap"}},[(0,o.bF)(Ei,{errors:p,help:f,class:`${m}-explain-connected`,onErrorVisibleChanged:h},null),!!d&&(0,o.bF)("div",{style:{width:0,height:`${d}px`}},null)]):null,g?(0,o.bF)("div",{class:`${m}-extra`},[g]):null])}})}}});var Ci=Si,Ti=n(56405);function ki(e){const t=(0,a.IJ)(e.value.slice());let n=null;return(0,o.nT)(()=>{clearTimeout(n),n=setTimeout(()=>{t.value=e.value},e.value.length?0:10)}),t}(0,Qr.PV)("success","warning","error","validating","");const Oi={success:h.A,warning:f.A,error:d.A,validating:u.A};function Mi(e,t,n){let r=e;const i=t;let o=0;try{for(let e=i.length;o<e-1;++o){if(!r&&!n)break;const e=i[o];if(!(e in r)){if(n)throw Error("please transfer a valid name path to form item!");break}r=r[e]}if(n&&!r)throw Error("please transfer a valid name path to form item!")}catch(a){console.error("please transfer a valid name path to form item!")}return{o:r,k:i[o],v:r?r[i[o]]:void 0}}const Ii=()=>({htmlFor:String,prefixCls:String,label:s.A.any,help:s.A.any,extra:s.A.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:s.A.oneOf((0,Qr.PV)("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean,tooltip:String});let Di=0;const Ni="form_item";var Ri=(0,o.pM)({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:Ii(),slots:Object,setup(e,t){let{slots:n,attrs:s,expose:c}=t;(0,ir.$e)(void 0===e.prop,"`prop` is deprecated. Please use `name` instead.");const u="form-item-"+ ++Di,{prefixCls:d}=(0,zr.A)("form",e),[h,f]=xi(d),p=(0,a.IJ)(),g=Vr(),m=(0,o.EW)(()=>e.name||e.prop),v=(0,a.IJ)([]),A=(0,a.IJ)(!1),b=(0,a.IJ)(),y=(0,o.EW)(()=>{const e=m.value;return cr(e)}),w=(0,o.EW)(()=>{if(y.value.length){const e=g.name.value,t=y.value.join("_");return e?`${e}_${t}`:`${Ni}_${t}`}}),_=()=>{const e=g.model.value;return e&&m.value?Mi(e,y.value,!0).v:void 0},x=(0,o.EW)(()=>_()),E=(0,a.IJ)(Zt(x.value)),S=(0,o.EW)(()=>{let t=void 0!==e.validateTrigger?e.validateTrigger:g.validateTrigger.value;return t=void 0===t?"change":t,or(t)}),C=(0,o.EW)(()=>{let t=g.rules.value;const n=e.rules,r=void 0!==e.required?{required:!!e.required,trigger:S.value}:[],i=Mi(t,y.value);t=t?i.o[i.k]||i.v:[];const o=[].concat(n||t||[]);return Ur(o,e=>e.required)?o:o.concat(r)}),T=(0,o.EW)(()=>{const t=C.value;let n=!1;return t&&t.length&&t.every(e=>!e.required||(n=!0,!1)),n||e.required}),k=(0,a.IJ)();(0,o.nT)(()=>{k.value=e.validateStatus});const O=(0,o.EW)(()=>{let t={};return"string"===typeof e.label?t.label=e.label:e.name&&(t.label=String(e.name)),e.messageVariables&&(t=(0,i.A)((0,i.A)({},t),e.messageVariables)),t}),M=t=>{if(0===y.value.length)return;const{validateFirst:n=!1}=e,{triggerName:r}=t||{};let o=C.value;if(r&&(o=o.filter(e=>{const{trigger:t}=e;if(!t&&!S.value.length)return!0;const n=or(t||S.value);return n.includes(r)})),!o.length)return Promise.resolve();const s=Er(y.value,x.value,o,(0,i.A)({validateMessages:g.validateMessages.value},t),n,O.value);return k.value="validating",v.value=[],s.catch(e=>e).then(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if("validating"===k.value){const t=e.filter(e=>e&&e.errors.length);k.value=t.length?"error":"success",v.value=t.map(e=>e.errors),g.onValidate(m.value,!v.value.length,v.value.length?(0,a.ux)(v.value[0]):null)}}),s},I=()=>{M({triggerName:"blur"})},D=()=>{A.value?A.value=!1:M({triggerName:"change"})},N=()=>{k.value=e.validateStatus,A.value=!1,v.value=[]},R=()=>{var t;k.value=e.validateStatus,A.value=!0,v.value=[];const n=g.model.value||{},r=x.value,i=Mi(n,y.value,!0);Array.isArray(r)?i.o[i.k]=[].concat(null!==(t=E.value)&&void 0!==t?t:[]):i.o[i.k]=E.value,(0,o.dY)(()=>{A.value=!1})},L=(0,o.EW)(()=>void 0===e.htmlFor?w.value:e.htmlFor),B=()=>{const e=L.value;if(!e||!b.value)return;const t=b.value.$el.querySelector(`[id="${e}"]`);t&&t.focus&&t.focus()};c({onFieldBlur:I,onFieldChange:D,clearValidate:N,resetField:R}),(0,Ti.dJ)({id:w,onFieldBlur:()=>{e.autoLink&&I()},onFieldChange:()=>{e.autoLink&&D()},clearValidate:N},(0,o.EW)(()=>!!(e.autoLink&&g.model.value&&m.value)));let P=!1;(0,o.wB)(m,e=>{e?P||(P=!0,g.addField(u,{fieldValue:x,fieldId:w,fieldName:m,resetField:R,clearValidate:N,namePath:y,validateRules:M,rules:C})):(P=!1,g.removeField(u))},{immediate:!0}),(0,o.xo)(()=>{g.removeField(u)});const F=ki(v),$=(0,o.EW)(()=>void 0!==e.validateStatus?e.validateStatus:F.value.length?"error":k.value),j=(0,o.EW)(()=>({[`${d.value}-item`]:!0,[f.value]:!0,[`${d.value}-item-has-feedback`]:$.value&&e.hasFeedback,[`${d.value}-item-has-success`]:"success"===$.value,[`${d.value}-item-has-warning`]:"warning"===$.value,[`${d.value}-item-has-error`]:"error"===$.value,[`${d.value}-item-is-validating`]:"validating"===$.value,[`${d.value}-item-hidden`]:e.hidden})),H=(0,a.Kh)({});Ti.$W.useProvide(H),(0,o.nT)(()=>{let t;if(e.hasFeedback){const e=$.value&&Oi[$.value];t=e?(0,o.bF)("span",{class:(0,l.A)(`${d.value}-item-feedback-icon`,`${d.value}-item-feedback-icon-${$.value}`)},[(0,o.bF)(e,null,null)]):null}(0,i.A)(H,{status:$.value,hasFeedback:e.hasFeedback,feedbackIcon:t,isFormItemInput:!0})});const U=(0,a.IJ)(null),Q=(0,a.IJ)(!1),z=()=>{if(p.value){const e=getComputedStyle(p.value);U.value=parseInt(e.marginBottom,10)}};(0,o.sV)(()=>{(0,o.wB)(Q,()=>{Q.value&&z()},{flush:"post",immediate:!0})});const W=e=>{e||(U.value=null)};return()=>{var t,i;if(e.noStyle)return null===(t=n.default)||void 0===t?void 0:t.call(n);const a=null!==(i=e.help)&&void 0!==i?i:n.help?(0,tn.Gk)(n.help()):null,l=!!(void 0!==a&&null!==a&&Array.isArray(a)&&a.length||F.value.length);return Q.value=l,h((0,o.bF)("div",{class:[j.value,l?`${d.value}-item-with-help`:"",s.class],ref:p},[(0,o.bF)(en.A,(0,r.A)((0,r.A)({},s),{},{class:`${d.value}-item-row`,key:"row"}),{default:()=>{var t,i;return(0,o.bF)(o.FK,null,[(0,o.bF)(ri,(0,r.A)((0,r.A)({},e),{},{htmlFor:L.value,required:T.value,requiredMark:g.requiredMark.value,prefixCls:d.value,onClick:B,label:e.label}),{label:n.label,tooltip:n.tooltip}),(0,o.bF)(Ci,(0,r.A)((0,r.A)({},e),{},{errors:void 0!==a&&null!==a?or(a):F.value,marginBottom:U.value,prefixCls:d.value,status:$.value,ref:b,help:a,extra:null!==(t=e.extra)&&void 0!==t?t:null===(i=n.extra)||void 0===i?void 0:i.call(n),onErrorVisibleChanged:W}),{default:n.default})])}}),!!U.value&&(0,o.bF)("div",{class:`${d.value}-margin-offset`,style:{marginBottom:`-${U.value}px`}},null)]))}}});function Li(e){let t=!1,n=e.length;const r=[];return e.length?new Promise((i,o)=>{e.forEach((e,a)=>{e.catch(e=>(t=!0,e)).then(e=>{n-=1,r[a]=e,n>0||(t&&o(r),i(r))})})}):Promise.resolve([])}var Bi=n(39195),Pi=n(24923),Fi=n(73429),$i=n(65347),ji=n(65070),Hi=n(53466),Ui=n(56920),Qi=n(12140),zi=Math.min;function Wi(e,t,n){var r=n?Ui.A:Hi.A,i=e[0].length,o=e.length,a=o,s=Array(o),l=1/0,c=[];while(a--){var u=e[a];a&&t&&(u=(0,$i.A)(u,(0,st.A)(t))),l=zi(u.length,l),s[a]=!n&&(t||i>=120&&u.length>=120)?new ji.A(a&&u):void 0}u=e[0];var d=-1,h=s[0];e:while(++d<i&&c.length<l){var f=u[d],p=t?t(f):f;if(f=n||0!==f?f:0,!(h?(0,Qi.A)(h,p):r(c,p,n))){a=o;while(--a){var g=s[a];if(!(g?(0,Qi.A)(g,p):r(e[a],p,n)))continue e}h&&h.push(p),c.push(f)}}return c}var Gi=Wi,Vi=n(69937),Ki=n(35867),Yi=n(37431);function qi(e,t){return(0,Yi.A)((0,Ki.A)(e,t,Vi.A),e+"")}var Xi=qi;function Ji(e){return(0,rt.A)(e)&&(0,N.A)(e)}var Zi=Ji;function eo(e){return Zi(e)?e:[]}var to=eo,no=Xi(function(e){var t=(0,$i.A)(e,to);return t.length&&t[0]===e[0]?Gi(t):[]}),ro=no,io=n(6301),oo=n(79047);function ao(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var so=ao,lo=n(12623);function co(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;var o=Array(i);while(++r<i)o[r]=e[r+t];return o}var uo=co;function ho(e,t){return t.length<2?e:(0,lo.A)(e,uo(t,0,-1))}var fo=ho,po=n(13708);function go(e,t){return t=(0,oo.A)(t,e),e=fo(e,t),null==e||delete e[(0,po.A)(so(t))]}var mo=go,vo=n(25644);function Ao(e){return(0,vo.A)(e)?void 0:e}var bo=Ao,yo=n(98353),wo=1,_o=2,xo=4,Eo=(0,yo.A)(function(e,t){var n={};if(null==e)return n;var r=!1;t=(0,$i.A)(t,function(t){return t=(0,oo.A)(t,e),r||(r=t.length>1),t}),y(e,le(e),n),r&&(n=Yt(n,wo|_o|xo,bo));var i=t.length;while(i--)mo(n,t[i]);return n}),So=Eo;function Co(e){let t=!1;return e&&e.length&&e.every(e=>!e.required||(t=!0,!1)),t}function To(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}function ko(e,t,n){let r=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");const i=t.split(".");let o=0;for(let a=i.length;o<a-1;++o){if(!r&&!n)break;const e=i[o];if(!(e in r)){if(n)throw new Error("please transfer a valid name path to validate!");break}r=r[e]}return{o:r,k:i[o],v:r?r[i[o]]:null,isValid:r&&i[o]in r}}function Oo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,a.KR)({}),n=arguments.length>2?arguments[2]:void 0;const r=Zt((0,a.R1)(e)),s=(0,a.Kh)({}),l=(0,a.IJ)([]),c=n=>{(0,i.A)((0,a.R1)(e),(0,i.A)((0,i.A)({},Zt(r)),n)),(0,o.dY)(()=>{Object.keys(s).forEach(e=>{s[e]={autoLink:!1,required:Co((0,a.R1)(t)[e])}})})},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return t.length?e.filter(e=>{const n=To(e.trigger||"change");return ro(n,t).length}):e};let d=null;const h=function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;const o=[],s={};for(let d=0;d<n.length;d++){const l=n[d],c=ko((0,a.R1)(e),l,i);if(!c.isValid)continue;s[l]=c.v;const h=u((0,a.R1)(t)[l],To(r&&r.trigger));h.length&&o.push(f(l,c.v,h,r||{}).then(()=>({name:l,errors:[],warnings:[]})).catch(e=>{const t=[],n=[];return e.forEach(e=>{let{rule:{warningOnly:r},errors:i}=e;r?n.push(...i):t.push(...i)}),t.length?Promise.reject({name:l,errors:t,warnings:n}):{name:l,errors:t,warnings:n}}))}const l=Li(o);d=l;const c=l.then(()=>d===l?Promise.resolve(s):Promise.reject([])).catch(e=>{const t=e.filter(e=>e&&e.errors.length);return t.length?Promise.reject({values:s,errorFields:t,outOfDate:d!==l}):Promise.resolve(s)});return c.catch(e=>e),c},f=function(e,t,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const l=Er([e],t,r,(0,i.A)({validateMessages:br},o),!!o.validateFirst);return s[e]?(s[e].validateStatus="validating",l.catch(e=>e).then(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];var r;if("validating"===s[e].validateStatus){const i=t.filter(e=>e&&e.errors.length);s[e].validateStatus=i.length?"error":"success",s[e].help=i.length?i.map(e=>e.errors):null,null===(r=null===n||void 0===n?void 0:n.onValidate)||void 0===r||r.call(n,e,!i.length,i.length?(0,a.ux)(s[e].help[0]):null)}}),l):l.catch(e=>e)},p=(e,t)=>{let n=[],r=!0;e?n=Array.isArray(e)?e:[e]:(r=!1,n=l.value);const i=h(n,t||{},r);return i.catch(e=>e),i},g=e=>{let t=[];t=e?Array.isArray(e)?e:[e]:l.value,t.forEach(e=>{s[e]&&(0,i.A)(s[e],{validateStatus:"",help:null})})},m=e=>{const t={autoLink:!1},n=[],r=Array.isArray(e)?e:[e];for(let i=0;i<r.length;i++){const e=r[i];"error"===(null===e||void 0===e?void 0:e.validateStatus)&&(t.validateStatus="error",e.help&&n.push(e.help)),t.required=t.required||(null===e||void 0===e?void 0:e.required)}return t.help=n,t};let v=r,A=!0;const b=e=>{const t=[];l.value.forEach(r=>{const i=ko(e,r,!1),o=ko(v,r,!1),a=A&&(null===n||void 0===n?void 0:n.immediate)&&i.isValid;!a&&(0,Bi.A)(i.v,o.v)||t.push(r)}),p(t,{trigger:"change"}),A=!1,v=Zt((0,a.ux)(e))},y=null===n||void 0===n?void 0:n.debounce;let w=!0;return(0,o.wB)(t,()=>{l.value=t?Object.keys((0,a.R1)(t)):[],!w&&n&&n.validateOnRuleChange&&p(),w=!1},{deep:!0,immediate:!0}),(0,o.wB)(l,()=>{const e={};l.value.forEach(n=>{e[n]=(0,i.A)({},s[n],{autoLink:!1,required:Co((0,a.R1)(t)[n])}),delete s[n]});for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&delete s[t];(0,i.A)(s,e)},{immediate:!0}),(0,o.wB)(e,y&&y.wait?(0,io.A)(b,y.wait,So(y,["wait"])):b,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:r,validateInfos:s,resetFields:c,validate:p,validateField:f,mergeValidateInfo:m,clearValidate:g}}var Mo=Oo,Io=n(99078),Do=n(35541),No=n(93758);const Ro=()=>({layout:s.A.oneOf((0,Qr.PV)("horizontal","inline","vertical")),labelCol:(0,Qr.ge)(),wrapperCol:(0,Qr.ge)(),colon:(0,Qr.HE)(),labelAlign:(0,Qr.WO)(),labelWrap:(0,Qr.HE)(),prefixCls:String,requiredMark:(0,Qr.tK)([String,Boolean]),hideRequiredMark:(0,Qr.HE)(),model:s.A.object,rules:(0,Qr.ge)(),validateMessages:(0,Qr.ge)(),validateOnRuleChange:(0,Qr.HE)(),scrollToFirstError:(0,Qr.ds)(),onSubmit:(0,Qr.Fg)(),name:String,validateTrigger:(0,Qr.tK)([String,Array]),size:(0,Qr.WO)(),disabled:(0,Qr.HE)(),onValuesChange:(0,Qr.Fg)(),onFieldsChange:(0,Qr.Fg)(),onFinish:(0,Qr.Fg)(),onFinishFailed:(0,Qr.Fg)(),onValidate:(0,Qr.Fg)()});function Lo(e,t){return(0,Bi.A)(or(e),or(t))}const Bo=(0,o.pM)({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:(0,Fi.A)(Ro(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:Ri,useForm:Mo,setup(e,t){let{emit:n,slots:s,expose:u,attrs:d}=t;const{prefixCls:h,direction:f,form:p,size:g,disabled:m}=(0,zr.A)("form",e),v=(0,o.EW)(()=>""===e.requiredMark||e.requiredMark),A=(0,o.EW)(()=>{var t;return void 0!==v.value?v.value:p&&void 0!==(null===(t=p.value)||void 0===t?void 0:t.requiredMark)?p.value.requiredMark:!e.hideRequiredMark});(0,Do.A)(g),(0,No.Z)(m);const b=(0,o.EW)(()=>{var t,n;return null!==(t=e.colon)&&void 0!==t?t:null===(n=p.value)||void 0===n?void 0:n.colon}),{validateMessages:y}=(0,Io.M7)(),w=(0,o.EW)(()=>(0,i.A)((0,i.A)((0,i.A)({},br),y.value),e.validateMessages)),[_,x]=xi(h),E=(0,o.EW)(()=>(0,l.A)(h.value,{[`${h.value}-${e.layout}`]:!0,[`${h.value}-hide-required-mark`]:!1===A.value,[`${h.value}-rtl`]:"rtl"===f.value,[`${h.value}-${g.value}`]:g.value},x.value)),S=(0,a.KR)(),C={},T=(e,t)=>{C[e]=t},k=e=>{delete C[e]},O=e=>{const t=!!e,n=t?or(e).map(cr):[];return t?Object.values(C).filter(e=>n.findIndex(t=>Lo(t,e.fieldName.value))>-1):Object.values(C)},M=t=>{e.model?O(t).forEach(e=>{e.resetField()}):(0,c.Ay)(!1,"Form","model is required for resetFields to work.")},I=e=>{O(e).forEach(e=>{e.clearValidate()})},D=t=>{const{scrollToFirstError:r}=e;if(n("finishFailed",t),r&&t.errorFields.length){let e={};"object"===typeof r&&(e=r),R(t.errorFields[0].name,e)}},N=function(){return P(...arguments)},R=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=O(e?[e]:void 0);if(n.length){const e=n[0].fieldId.value,r=e?document.getElementById(e):null;r&&(0,Pi.A)(r,(0,i.A)({scrollMode:"if-needed",block:"nearest"},t))}},L=function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!0===t){const t=[];return Object.values(C).forEach(e=>{let{namePath:n}=e;t.push(n.value)}),mr(e.model,t)}return mr(e.model,t)},B=(t,n)=>{if((0,c.Ay)(!(t instanceof Function),"Form","validateFields/validateField/validate not support callback, please use promise instead"),!e.model)return(0,c.Ay)(!1,"Form","model is required for validateFields to work."),Promise.reject("Form `model` is required for validateFields to work.");const r=!!t,o=r?or(t).map(cr):[],a=[];Object.values(C).forEach(e=>{var t;if(r||o.push(e.namePath.value),!(null===(t=e.rules)||void 0===t?void 0:t.value.length))return;const s=e.namePath.value;if(!r||hr(o,s)){const t=e.validateRules((0,i.A)({validateMessages:w.value},n));a.push(t.then(()=>({name:s,errors:[],warnings:[]})).catch(e=>{const t=[],n=[];return e.forEach(e=>{let{rule:{warningOnly:r},errors:i}=e;r?n.push(...i):t.push(...i)}),t.length?Promise.reject({name:s,errors:t,warnings:n}):{name:s,errors:t,warnings:n}}))}});const s=Li(a);S.value=s;const l=s.then(()=>S.value===s?Promise.resolve(L(o)):Promise.reject([])).catch(e=>{const t=e.filter(e=>e&&e.errors.length);return Promise.reject({values:L(o),errorFields:t,outOfDate:S.value!==s})});return l.catch(e=>e),l},P=function(){return B(...arguments)},F=t=>{if(t.preventDefault(),t.stopPropagation(),n("submit",t),e.model){const e=B();e.then(e=>{n("finish",e)}).catch(e=>{D(e)})}};return u({resetFields:M,clearValidate:I,validateFields:B,getFieldsValue:L,validate:N,scrollToField:R}),Gr({model:(0,o.EW)(()=>e.model),name:(0,o.EW)(()=>e.name),labelAlign:(0,o.EW)(()=>e.labelAlign),labelCol:(0,o.EW)(()=>e.labelCol),labelWrap:(0,o.EW)(()=>e.labelWrap),wrapperCol:(0,o.EW)(()=>e.wrapperCol),vertical:(0,o.EW)(()=>"vertical"===e.layout),colon:b,requiredMark:A,validateTrigger:(0,o.EW)(()=>e.validateTrigger),rules:(0,o.EW)(()=>e.rules),addField:T,removeField:k,onValidate:(e,t,r)=>{n("validate",e,t,r)},validateMessages:w}),(0,o.wB)(()=>e.rules,()=>{e.validateOnRuleChange&&B()}),()=>{var e;return _((0,o.bF)("form",(0,r.A)((0,r.A)({},d),{},{onSubmit:F,class:[E.value,d.class]}),[null===(e=s.default)||void 0===e?void 0:e.call(s)]))}}});var Po=Bo;Po.useInjectFormItemContext=Ti.db,Po.ItemRest=Ti.Ay,Po.install=function(e){return e.component(Po.name,Po),e.component(Po.Item.name,Po.Item),e.component(Ti.Ay.name,Ti.Ay),e};var Fo=Po},46784:function(e,t,n){"use strict";n.d(t,{Ay:function(){return L}});n(44114),n(18111),n(61701);var r=n(41034),i=n(56768),o=n(73429),a=n(44832),s=n(82978),l=n(44678),c=n(81425);const u=()=>({prefixCls:String,activeKey:(0,l.tK)([Array,Number,String]),defaultActiveKey:(0,l.tK)([Array,Number,String]),accordion:(0,l.HE)(),destroyInactivePanel:(0,l.HE)(),bordered:(0,l.HE)(),expandIcon:(0,l.Fg)(),openAnimation:c.A.object,expandIconPosition:(0,l.WO)(),collapsible:(0,l.WO)(),ghost:(0,l.HE)(),onChange:(0,l.Fg)(),"onUpdate:activeKey":(0,l.Fg)()}),d=()=>({openAnimation:c.A.object,prefixCls:String,header:c.A.any,headerClass:String,showArrow:(0,l.HE)(),isActive:(0,l.HE)(),destroyInactivePanel:(0,l.HE)(),disabled:(0,l.HE)(),accordion:(0,l.HE)(),forceRender:(0,l.HE)(),expandIcon:(0,l.Fg)(),extra:c.A.any,panelKey:(0,l.tK)(),collapsible:(0,l.WO)(),role:String,onItemClick:(0,l.Fg)()});var h=n(39058),f=n(90144),p=n(43448),g=n(59293),m=n(49974),v=n(60674),A=n(99603),b=n(51137),y=n(79024),w=n(90112),_=n(9519),x=n(36068);const E=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:i,collapseHeaderBg:o,collapseHeaderPadding:a,collapsePanelBorderRadius:s,lineWidth:l,lineType:c,colorBorder:u,colorText:d,colorTextHeading:h,colorTextDisabled:f,fontSize:p,lineHeight:g,marginSM:m,paddingSM:v,motionDurationSlow:A,fontSizeIcon:y}=e,w=`${l}px ${c} ${u}`;return{[t]:(0,b.A)((0,b.A)({},(0,x.dF)(e)),{backgroundColor:o,border:w,borderBottom:0,borderRadius:`${s}px`,["&-rtl"]:{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:w,["&:last-child"]:{[`\n            &,\n            & > ${t}-header`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:h,lineHeight:g,cursor:"pointer",transition:`all ${A}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:p*g,display:"flex",alignItems:"center",paddingInlineEnd:m},[`${t}-arrow`]:(0,b.A)((0,b.A)({},(0,x.Nk)()),{fontSize:y,svg:{transition:`transform ${A}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:v}}},[`${t}-content`]:{color:d,backgroundColor:n,borderTop:w,[`& > ${t}-content-box`]:{padding:`${r}px ${i}px`},["&-hidden"]:{display:"none"}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`& ${t}-item-disabled > ${t}-header`]:{["\n          &,\n          & > .arrow\n        "]:{color:f,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:m}}}}})}},S=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},C=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[`\n        > ${t}-item:last-child,\n        > ${t}-item:last-child ${t}-header\n      `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},T=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}};var k=(0,w.A)("Collapse",e=>{const t=(0,_.h1)(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[E(t),C(t),T(t),S(t),(0,y.A)(t)]});function O(e){let t=e;if(!Array.isArray(t)){const e=typeof t;t="number"===e||"string"===e?[t]:[]}return t.map(e=>String(e))}var M=(0,i.pM)({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:(0,o.A)(u(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:l}=t;const c=(0,f.KR)(O((0,g.A)([e.activeKey,e.defaultActiveKey])));(0,i.wB)(()=>e.activeKey,()=>{c.value=O(e.activeKey)},{deep:!0});const{prefixCls:u,direction:d,rootPrefixCls:b}=(0,v.A)("collapse",e),[y,w]=k(u),_=(0,i.EW)(()=>{const{expandIconPosition:t}=e;return void 0!==t?t:"rtl"===d.value?"end":"start"}),x=t=>{const{expandIcon:n=o.expandIcon}=e,r=n?n(t):(0,i.bF)(p.A,{rotate:t.isActive?90:void 0},null);return(0,i.bF)("div",{class:[`${u.value}-expand-icon`,w.value],onClick:()=>["header","icon"].includes(e.collapsible)&&S(t.panelKey)},[(0,a.zO)(Array.isArray(n)?r[0]:r)?(0,s.Ob)(r,{class:`${u.value}-arrow`},!1):r])},E=t=>{void 0===e.activeKey&&(c.value=t);const n=e.accordion?t[0]:t;l("update:activeKey",n),l("change",n)},S=t=>{let n=c.value;if(e.accordion)n=n[0]===t?[]:[t];else{n=[...n];const e=n.indexOf(t),r=e>-1;r?n.splice(e,1):n.push(t)}E(n)},C=(t,n)=>{var r,i,o;if((0,a.sG)(t))return;const l=c.value,{accordion:d,destroyInactivePanel:h,collapsible:f,openAnimation:p}=e,g=p||(0,A.A)(`${b.value}-motion-collapse`),m=String(null!==(r=t.key)&&void 0!==r?r:n),{header:v=(null===(o=null===(i=t.children)||void 0===i?void 0:i.header)||void 0===o?void 0:o.call(i)),headerClass:y,collapsible:w,disabled:_}=t.props||{};let E=!1;E=d?l[0]===m:l.indexOf(m)>-1;let C=null!==w&&void 0!==w?w:f;(_||""===_)&&(C="disabled");const T={key:m,panelKey:m,header:v,headerClass:y,isActive:E,prefixCls:u.value,destroyInactivePanel:h,openAnimation:g,accordion:d,onItemClick:"disabled"===C?null:S,expandIcon:x,collapsible:C};return(0,s.Ob)(t,T)},T=()=>{var e;return(0,a.MI)(null===(e=o.default)||void 0===e?void 0:e.call(o)).map(C)};return()=>{const{accordion:t,bordered:o,ghost:a}=e,s=(0,m.A)(u.value,{[`${u.value}-borderless`]:!o,[`${u.value}-icon-position-${_.value}`]:!0,[`${u.value}-rtl`]:"rtl"===d.value,[`${u.value}-ghost`]:!!a,[n.class]:!!n.class},w.value);return y((0,i.bF)("div",(0,r.A)((0,r.A)({class:s},(0,h.xc)(n)),{},{style:n.style,role:t?"tablist":null}),[T()]))}}}),I=n(45130),D=(0,i.pM)({compatConfig:{MODE:3},name:"PanelContent",props:d(),setup(e,t){let{slots:n}=t;const r=(0,f.IJ)(!1);return(0,i.nT)(()=>{(e.isActive||e.forceRender)&&(r.value=!0)}),()=>{var t;if(!r.value)return null;const{prefixCls:o,isActive:a,role:s}=e;return(0,i.bF)("div",{class:(0,m.A)(`${o}-content`,{[`${o}-content-active`]:a,[`${o}-content-inactive`]:!a}),role:s},[(0,i.bF)("div",{class:`${o}-content-box`},[null===(t=n.default)||void 0===t?void 0:t.call(n)])])}}}),N=n(34322),R=(0,i.pM)({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:(0,o.A)(d(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:a}=t;(0,N.A)(void 0===e.disabled,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:s}=(0,v.A)("collapse",e),l=()=>{o("itemClick",e.panelKey)},c=e=>{"Enter"!==e.key&&13!==e.keyCode&&13!==e.which||l()};return()=>{var t,o;const{header:u=(null===(t=n.header)||void 0===t?void 0:t.call(n)),headerClass:d,isActive:h,showArrow:f,destroyInactivePanel:p,accordion:g,forceRender:v,openAnimation:A,expandIcon:y=n.expandIcon,extra:w=(null===(o=n.extra)||void 0===o?void 0:o.call(n)),collapsible:_}=e,x="disabled"===_,E=s.value,S=(0,m.A)(`${E}-header`,{[d]:d,[`${E}-header-collapsible-only`]:"header"===_,[`${E}-icon-collapsible-only`]:"icon"===_}),C=(0,m.A)({[`${E}-item`]:!0,[`${E}-item-active`]:h,[`${E}-item-disabled`]:x,[`${E}-no-arrow`]:!f,[`${a.class}`]:!!a.class});let T=(0,i.bF)("i",{class:"arrow"},null);f&&"function"===typeof y&&(T=y(e));const k=(0,i.bo)((0,i.bF)(D,{prefixCls:E,isActive:h,forceRender:v,role:g?"tabpanel":null},{default:n.default}),[[I.aG,h]]),O=(0,b.A)({appear:!1,css:!1},A);return(0,i.bF)("div",(0,r.A)((0,r.A)({},a),{},{class:C}),[(0,i.bF)("div",{class:S,onClick:()=>!["header","icon"].includes(_)&&l(),role:g?"tab":"button",tabindex:x?-1:0,"aria-expanded":h,onKeypress:c},[f&&T,(0,i.bF)("span",{onClick:()=>"header"===_&&l(),class:`${E}-header-text`},[u]),w&&(0,i.bF)("div",{class:`${E}-extra`},[w])]),(0,i.bF)(I.eB,O,{default:()=>[!p||h?k:null]})])}}});M.Panel=R,M.install=function(e){return e.component(M.name,M),e.component(R.name,R),e};var L=M},47055:function(e,t,n){"use strict";var r=n(79504),i=n(79039),o=n(22195),a=Object,s=r("".split);e.exports=i(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?s(e,""):a(e)}:a},47083:function(e,t,n){"use strict";var r=n(11591),i=n(60168),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function c(e){if(!(0,i.A)(e))return!1;var t=(0,r.A)(e);return t==a||t==s||t==o||t==l}t.A=c},47528:function(e){function t(e){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}e.exports=t},47553:function(e){function t(e){const t={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[t]},t]}}e.exports=t},47659:function(e,t,n){"use strict";n.d(t,{$8:function(){return l},Wr:function(){return s}});var r=n(51137),i=n(81425),o=n(44678);Symbol();const a=()=>({addonBefore:i.A.any,addonAfter:i.A.any,prefix:i.A.any,suffix:i.A.any,clearIcon:i.A.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),s=()=>(0,r.A)((0,r.A)({},a()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:i.A.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),l=()=>(0,r.A)((0,r.A)({},s()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:(0,o.WO)("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String})},48214:function(e){function t(e){const t=e.regex,n=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],r="false true",i=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],o={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:"string",begin:/(#\d+)+/},s={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},l={className:"string",begin:'"',end:'"'},c={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:n,contains:[o,a,e.NUMBER_MODE]},...i]},u=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],d={match:[/OBJECT/,/\s+/,t.either(...u),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}},h={match:/[\w]+(?=\=)/,scope:"attribute",relevance:0};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:n,literal:r},illegal:/\/\*/,contains:[h,o,a,s,l,e.NUMBER_MODE,d,c]}}e.exports=t},48434:function(e,t,n){"use strict";n(44114),n(18111),n(7588);var r=n(38809);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},48480:function(e,t,n){n(44114);const r=n(79547).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=r(e),i=145===n?26:2*Math.ceil((n-13)/(2*t-2)),o=[n-7];for(let r=1;r<t-1;r++)o[r]=o[r-1]-i;return o.push(6),o.reverse()},t.getPositions=function(e){const n=[],r=t.getRowColCoords(e),i=r.length;for(let t=0;t<i;t++)for(let e=0;e<i;e++)0===t&&0===e||0===t&&e===i-1||t===i-1&&0===e||n.push([r[t],r[e]]);return n}},48646:function(e,t,n){"use strict";var r=n(69565),i=n(28551),o=n(1767),a=n(50851);e.exports=function(e,t){t&&"string"===typeof e||i(e);var n=a(e);return o(i(void 0!==n?r(n,e):e))}},48686:function(e,t,n){"use strict";var r=n(43724),i=n(79039);e.exports=r&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},48773:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},48981:function(e,t,n){"use strict";var r=n(67750),i=Object;e.exports=function(e){return i(r(e))}},49079:function(e){function t(e){const t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",n="(-|\\+)?\\d+([./]\\d+)?",r=n+"[+\\-]"+n+"i",i={$pattern:t,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},o={className:"literal",begin:"(#t|#f|#\\\\"+t+"|#\\\\.)"},a={className:"number",variants:[{begin:n,relevance:0},{begin:r,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},s=e.QUOTE_STRING_MODE,l=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],c={begin:t,relevance:0},u={className:"symbol",begin:"'"+t},d={endsWithParent:!0,relevance:0},h={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",o,s,a,c,u]}]},f={className:"name",relevance:0,begin:t,keywords:i},p={begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[f,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[c]}]},g={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[p,f,d]};return d.contains=[o,a,s,c,u,h,g].concat(l),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[e.SHEBANG(),a,s,u,h,g].concat(l)}}e.exports=t},49359:function(e,t,n){"use strict";function r(e,t){o(e)&&(e="100%");var n=a(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t)),e)}function i(e){return Math.min(1,Math.max(0,e))}function o(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)}function a(e){return"string"===typeof e&&-1!==e.indexOf("%")}function s(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function l(e){return e<=1?"".concat(100*Number(e),"%"):e}function c(e){return 1===e.length?"0"+e:String(e)}n.d(t,{Cg:function(){return r},J$:function(){return i},Px:function(){return l},TV:function(){return s},wl:function(){return c}})},49529:function(e){function t(e){const t="('|\\.')+",n={relevance:0,contains:[{begin:t}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:n},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+t,relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:n},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:n},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:n},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}e.exports=t},49570:function(e,t,n){"use strict";var r=n(51137),i=n(56768),o=n(44832);t.A={methods:{setState(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n="function"===typeof e?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){const e=this.getDerivedStateFromProps((0,o.Oq)(this),(0,r.A)((0,r.A)({},this.$data),n));if(null===e)return;n=(0,r.A)((0,r.A)({},n),e||{})}(0,r.A)(this.$data,n),this._.isMounted&&this.$forceUpdate(),(0,i.dY)(()=>{t&&t()})},__emit(){const e=[].slice.call(arguments,0);let t=e[0];t=`on${t[0].toUpperCase()}${t.substring(1)}`;const n=this.$props[t]||this.$attrs[t];if(e.length&&n)if(Array.isArray(n))for(let r=0,i=n.length;r<i;r++)n[r](...e.slice(1));else n(...e.slice(1))}}}},49599:function(e,t,n){"use strict";n.d(t,{Ay:function(){return ei}});var r=n(51137),i=(n(18111),n(61701),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(1576)),o=n.n(i),a=n(36361),s=n.n(a),l=n(92317),c=n.n(l),u=n(7515),d=n.n(u),h=n(69777),f=n.n(h),p=n(51579),g=n.n(p),m=n(74642),v=n.n(m),A=n(53729),b=n.n(A),y=n(99899);o().extend(b()),o().extend(v()),o().extend(s()),o().extend(c()),o().extend(d()),o().extend(f()),o().extend(g()),o().extend((e,t)=>{const n=t.prototype,r=n.format;n.format=function(e){const t=(e||"").replace("Wo","wo");return r.bind(this)(t)}});const w={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},_=e=>{const t=w[e];return t||e.split("_")[0]},x=()=>{(0,y.g9)(!1,"Not match any format. Please help to fire a issue about this.")},E=/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|k{1,2}|S/g;function S(e,t,n){const r=[...new Set(e.split(n))];let i=0;for(let o=0;o<r.length;o++){const e=r[o];if(i+=e.length,i>t)return e;i+=n.length}}const C=(e,t)=>{if(!e)return null;if(o().isDayjs(e))return e;const n=t.matchAll(E);let r=o()(e,t);if(null===n)return r;for(const i of n){const t=i[0],n=i["index"];if("Q"===t){const t=e.slice(n-1,n),i=S(e,n,t).match(/\d+/)[0];r=r.quarter(parseInt(i))}if("wo"===t.toLowerCase()){const t=e.slice(n-1,n),i=S(e,n,t).match(/\d+/)[0];r=r.week(parseInt(i))}"ww"===t.toLowerCase()&&(r=r.week(parseInt(e.slice(n,n+t.length)))),"w"===t.toLowerCase()&&(r=r.week(parseInt(e.slice(n,n+t.length+1))))}return r},T={getNow:()=>o()(),getFixedDate:e=>o()(e,["YYYY-M-DD","YYYY-MM-DD"]),getEndDate:e=>e.endOf("month"),getWeekDay:e=>{const t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>e.year(),getMonth:e=>e.month(),getDate:e=>e.date(),getHour:e=>e.hour(),getMinute:e=>e.minute(),getSecond:e=>e.second(),addYear:(e,t)=>e.add(t,"year"),addMonth:(e,t)=>e.add(t,"month"),addDate:(e,t)=>e.add(t,"day"),setYear:(e,t)=>e.year(t),setMonth:(e,t)=>e.month(t),setDate:(e,t)=>e.date(t),setHour:(e,t)=>e.hour(t),setMinute:(e,t)=>e.minute(t),setSecond:(e,t)=>e.second(t),isAfter:(e,t)=>e.isAfter(t),isValidate:e=>e.isValid(),locale:{getWeekFirstDay:e=>o()().locale(_(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>t.locale(_(e)).weekday(0),getWeek:(e,t)=>t.locale(_(e)).week(),getShortWeekDays:e=>o()().locale(_(e)).localeData().weekdaysMin(),getShortMonths:e=>o()().locale(_(e)).localeData().monthsShort(),format:(e,t,n)=>t.locale(_(e)).format(n),parse:(e,t,n)=>{const r=_(e);for(let i=0;i<n.length;i+=1){const e=n[i],a=t;if(e.includes("wo")||e.includes("Wo")){const e=a.split("-")[0],t=a.split("-")[1],n=o()(e,"YYYY").startOf("year").locale(r);for(let r=0;r<=52;r+=1){const e=n.add(r,"week");if(e.format("Wo")===t)return e}return x(),null}const s=o()(a,e,!0).locale(r);if(s.isValid())return s}return t||x(),null}},toDate:(e,t)=>Array.isArray(e)?e.map(e=>C(e,t)):C(e,t),toString:(e,t)=>Array.isArray(e)?e.map(e=>o().isDayjs(e)?e.format(t):e):o().isDayjs(e)?e.format(t):e};var k=T,O=n(41034),M=n(56768),I=n(80816);const D=(e,t)=>{let{attrs:n,slots:r}=t;return(0,M.bF)(I.A,(0,O.A)((0,O.A)({size:"small",type:"primary"},e),n),r)};var N=D,R=n(90144),L=n(49974),B=n(81425),P=n(76110),F=n(8982),$=n(41050),j=n(44678),H=n(60674),U=n(90112),Q=n(9519),z=n(39870),W=n(36068),G=n(39058);const V=(e,t,n)=>{const r=(0,G.ZH)(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},K=e=>(0,z.n)(e,(t,n)=>{let{textColor:r,lightBorderColor:i,lightColor:o,darkColor:a}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:o,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),Y=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:i,componentCls:o}=e,a=i-n,s=t-n;return{[o]:(0,r.A)((0,r.A)({},(0,W.dF)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${o}-close-icon`]:{marginInlineStart:s,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}};var q=(0,U.A)("Tag",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,fontSizeIcon:i}=e,o=Math.round(t*n),a=e.fontSizeSM,s=o-2*r,l=e.colorFillAlter,c=e.colorText,u=(0,Q.h1)(e,{tagFontSize:a,tagLineHeight:s,tagDefaultBg:l,tagDefaultColor:c,tagIconSize:i-2*r,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[Y(u),K(u),V(u,"success","Success"),V(u,"processing","Info"),V(u,"error","Error"),V(u,"warning","Warning")]});const X=()=>({prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}),J=(0,M.pM)({compatConfig:{MODE:3},name:"ACheckableTag",inheritAttrs:!1,props:X(),setup(e,t){let{slots:n,emit:r,attrs:i}=t;const{prefixCls:o}=(0,H.A)("tag",e),[a,s]=q(o),l=t=>{const{checked:n}=e;r("update:checked",!n),r("change",!n),r("click",t)},c=(0,M.EW)(()=>(0,L.A)(o.value,s.value,{[`${o.value}-checkable`]:!0,[`${o.value}-checkable-checked`]:e.checked}));return()=>{var e;return a((0,M.bF)("span",(0,O.A)((0,O.A)({},i),{},{class:[c.value,i.class],onClick:l}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}});var Z=J;const ee=()=>({prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:B.A.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},onClick:(0,j.$q)(),"onUpdate:visible":Function,icon:B.A.any,bordered:{type:Boolean,default:!0}}),te=(0,M.pM)({compatConfig:{MODE:3},name:"ATag",inheritAttrs:!1,props:ee(),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:i}=t;const{prefixCls:o,direction:a}=(0,H.A)("tag",e),[s,l]=q(o),c=(0,R.IJ)(!0);(0,M.nT)(()=>{void 0!==e.visible&&(c.value=e.visible)});const u=t=>{t.stopPropagation(),r("update:visible",!1),r("close",t),t.defaultPrevented||void 0===e.visible&&(c.value=!1)},d=(0,M.EW)(()=>(0,$.nP)(e.color)||(0,$.ZZ)(e.color)),h=(0,M.EW)(()=>(0,L.A)(o.value,l.value,{[`${o.value}-${e.color}`]:d.value,[`${o.value}-has-color`]:e.color&&!d.value,[`${o.value}-hidden`]:!c.value,[`${o.value}-rtl`]:"rtl"===a.value,[`${o.value}-borderless`]:!e.bordered})),f=e=>{r("click",e)};return()=>{var t,r,a;const{icon:l=(null===(t=n.icon)||void 0===t?void 0:t.call(n)),color:c,closeIcon:p=(null===(r=n.closeIcon)||void 0===r?void 0:r.call(n)),closable:g=!1}=e,m=()=>g?p?(0,M.bF)("span",{class:`${o.value}-close-icon`,onClick:u},[p]):(0,M.bF)(P.A,{class:`${o.value}-close-icon`,onClick:u},null):null,v={backgroundColor:c&&!d.value?c:void 0},A=l||null,b=null===(a=n.default)||void 0===a?void 0:a.call(n),y=A?(0,M.bF)(M.FK,null,[A,(0,M.bF)("span",null,[b])]):b,w=void 0!==e.onClick,_=(0,M.bF)("span",(0,O.A)((0,O.A)({},i),{},{onClick:f,class:[h.value,i.class],style:[v,i.style]}),[y,m()]);return s(w?(0,M.bF)(F.A,null,{default:()=>[_]}):_)}}});te.CheckableTag=Z,te.install=function(e){return e.component(te.name,te),e.component(Z.name,Z),e};var ne=te;function re(e,t){let{slots:n,attrs:r}=t;return(0,M.bF)(ne,(0,O.A)((0,O.A)({color:"blue"},e),r),n)}var ie=n(32805),oe=n(64695),ae=n(87546);n(22489);function se(e){const t=(0,M.OA)();return(0,r.A)((0,r.A)({},e),t)}const le=Symbol("PanelContextProps"),ce=e=>{(0,M.Gt)(le,e)},ue=()=>(0,M.WQ)(le,{});const de={visibility:"hidden"};function he(e,t){let{slots:n}=t;var r;const i=se(e),{prefixCls:o,prevIcon:a="‹",nextIcon:s="›",superPrevIcon:l="«",superNextIcon:c="»",onSuperPrev:u,onSuperNext:d,onPrev:h,onNext:f}=i,{hideNextBtn:p,hidePrevBtn:g}=ue();return(0,M.bF)("div",{class:o},[u&&(0,M.bF)("button",{type:"button",onClick:u,tabindex:-1,class:`${o}-super-prev-btn`,style:g.value?de:{}},[l]),h&&(0,M.bF)("button",{type:"button",onClick:h,tabindex:-1,class:`${o}-prev-btn`,style:g.value?de:{}},[a]),(0,M.bF)("div",{class:`${o}-view`},[null===(r=n.default)||void 0===r?void 0:r.call(n)]),f&&(0,M.bF)("button",{type:"button",onClick:f,tabindex:-1,class:`${o}-next-btn`,style:p.value?de:{}},[s]),d&&(0,M.bF)("button",{type:"button",onClick:d,tabindex:-1,class:`${o}-super-next-btn`,style:p.value?de:{}},[c])])}he.displayName="Header",he.inheritAttrs=!1;var fe=he;function pe(e){const t=se(e),{prefixCls:n,generateConfig:r,viewDate:i,onPrevDecades:o,onNextDecades:a}=t,{hideHeader:s}=ue();if(s)return null;const l=`${n}-header`,c=r.getYear(i),u=Math.floor(c/Ge)*Ge,d=u+Ge-1;return(0,M.bF)(fe,(0,O.A)((0,O.A)({},t),{},{prefixCls:l,onSuperPrev:o,onSuperNext:a}),{default:()=>[u,(0,M.eW)("-"),d]})}pe.displayName="DecadeHeader",pe.inheritAttrs=!1;var ge=pe;n(44114);function me(e,t,n,r,i){let o=e.setHour(t,n);return o=e.setMinute(o,r),o=e.setSecond(o,i),o}function ve(e,t,n){if(!n)return t;let r=t;return r=e.setHour(r,e.getHour(n)),r=e.setMinute(r,e.getMinute(n)),r=e.setSecond(r,e.getSecond(n)),r}function Ae(e,t,n,r,i,o){const a=Math.floor(e/r)*r;if(a<e)return[a,60-i,60-o];const s=Math.floor(t/i)*i;if(s<t)return[a,s,60-o];const l=Math.floor(n/o)*o;return[a,s,l]}function be(e,t){const n=e.getYear(t),r=e.getMonth(t)+1,i=e.getEndDate(e.getFixedDate(`${n}-${r}-01`)),o=e.getDate(i),a=r<10?`0${r}`:`${r}`;return`${n}-${a}-${o}`}function ye(e){const{prefixCls:t,disabledDate:n,onSelect:i,picker:o,rowNum:a,colNum:s,prefixColumn:l,rowClassName:c,baseDate:u,getCellClassName:d,getCellText:h,getCellNode:f,getCellDate:p,generateConfig:g,titleCell:m,headerCells:v}=se(e),{onDateMouseenter:A,onDateMouseleave:b,mode:y}=ue(),w=`${t}-cell`,_=[];for(let x=0;x<a;x+=1){const e=[];let t;for(let a=0;a<s;a+=1){const c=x*s+a,v=p(u,c),_=dt({cellDate:v,mode:y.value,disabledDate:n,generateConfig:g});0===a&&(t=v,l&&e.push(l(t)));const E=m&&m(v);e.push((0,M.bF)("td",{key:a,title:E,class:(0,L.A)(w,(0,r.A)({[`${w}-disabled`]:_,[`${w}-start`]:1===h(v)||"year"===o&&Number(E)%10===0,[`${w}-end`]:E===be(g,v)||"year"===o&&Number(E)%10===9},d(v))),onClick:e=>{e.stopPropagation(),_||i(v)},onMouseenter:()=>{!_&&A&&A(v)},onMouseleave:()=>{!_&&b&&b(v)}},[f?f(v):(0,M.bF)("div",{class:`${w}-inner`},[h(v)])]))}_.push((0,M.bF)("tr",{key:x,class:c&&c(t)},[e]))}return(0,M.bF)("div",{class:`${t}-body`},[(0,M.bF)("table",{class:`${t}-content`},[v&&(0,M.bF)("thead",null,[(0,M.bF)("tr",null,[v])]),(0,M.bF)("tbody",null,[_])])])}ye.displayName="PanelBody",ye.inheritAttrs=!1;var we=ye;const _e=3,xe=4;function Ee(e){const t=se(e),n=We-1,{prefixCls:r,viewDate:i,generateConfig:o}=t,a=`${r}-cell`,s=o.getYear(i),l=Math.floor(s/We)*We,c=Math.floor(s/Ge)*Ge,u=c+Ge-1,d=o.setYear(i,c-Math.ceil((_e*xe*We-Ge)/2)),h=e=>{const t=o.getYear(e),r=t+n;return{[`${a}-in-view`]:c<=t&&r<=u,[`${a}-selected`]:t===l}};return(0,M.bF)(we,(0,O.A)((0,O.A)({},t),{},{rowNum:xe,colNum:_e,baseDate:d,getCellText:e=>{const t=o.getYear(e);return`${t}-${t+n}`},getCellClassName:h,getCellDate:(e,t)=>o.addYear(e,t*We)}),null)}Ee.displayName="DecadeBody",Ee.inheritAttrs=!1;var Se=Ee,Ce=(n(13579),n(53942)),Te=n(81186),ke=n(32545);const Oe=new Map;function Me(e,t){let n;function r(){(0,Ce.A)(e)?t():n=(0,ke.A)(()=>{r()})}return r(),()=>{ke.A.cancel(n)}}function Ie(e,t,n){if(Oe.get(e)&&ke.A.cancel(Oe.get(e)),n<=0)return void Oe.set(e,(0,ke.A)(()=>{e.scrollTop=t}));const r=t-e.scrollTop,i=r/n*10;Oe.set(e,(0,ke.A)(()=>{e.scrollTop+=i,e.scrollTop!==t&&Ie(e,t,n-10)}))}function De(e,t){let{onLeftRight:n,onCtrlLeftRight:r,onUpDown:i,onPageUpDown:o,onEnter:a}=t;const{which:s,ctrlKey:l,metaKey:c}=e;switch(s){case Te.A.LEFT:if(l||c){if(r)return r(-1),!0}else if(n)return n(-1),!0;break;case Te.A.RIGHT:if(l||c){if(r)return r(1),!0}else if(n)return n(1),!0;break;case Te.A.UP:if(i)return i(-1),!0;break;case Te.A.DOWN:if(i)return i(1),!0;break;case Te.A.PAGE_UP:if(o)return o(-1),!0;break;case Te.A.PAGE_DOWN:if(o)return o(1),!0;break;case Te.A.ENTER:if(a)return a(),!0;break}return!1}function Ne(e,t,n,r){let i=e;if(!i)switch(t){case"time":i=r?"hh:mm:ss a":"HH:mm:ss";break;case"week":i="gggg-wo";break;case"month":i="YYYY-MM";break;case"quarter":i="YYYY-[Q]Q";break;case"year":i="YYYY";break;default:i=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return i}function Re(e,t,n){const r="time"===e?8:10,i="function"===typeof t?t(n.getNow()).length:t.length;return Math.max(r,i)+2}let Le=null;const Be=new Set;function Pe(e){return!Le&&"undefined"!==typeof window&&window.addEventListener&&(Le=e=>{[...Be].forEach(t=>{t(e)})},window.addEventListener("mousedown",Le)),Be.add(e),()=>{Be.delete(e),0===Be.size&&(window.removeEventListener("mousedown",Le),Le=null)}}function Fe(e){var t;const n=e.target;return e.composed&&n.shadowRoot&&(null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])||n}const $e=e=>"month"===e||"date"===e?"year":e,je=e=>"date"===e?"month":e,He=e=>"month"===e||"date"===e?"quarter":e,Ue=e=>"date"===e?"week":e,Qe={year:$e,month:je,quarter:He,week:Ue,time:null,date:null};function ze(e,t){return e.some(e=>e&&e.contains(t))}const We=10,Ge=10*We;function Ve(e){const t=se(e),{prefixCls:n,onViewDateChange:r,generateConfig:i,viewDate:o,operationRef:a,onSelect:s,onPanelChange:l}=t,c=`${n}-decade-panel`;a.value={onKeydown:e=>De(e,{onLeftRight:e=>{s(i.addYear(o,e*We),"key")},onCtrlLeftRight:e=>{s(i.addYear(o,e*Ge),"key")},onUpDown:e=>{s(i.addYear(o,e*We*_e),"key")},onEnter:()=>{l("year",o)}})};const u=e=>{const t=i.addYear(o,e*Ge);r(t),l(null,t)},d=e=>{s(e,"mouse"),l("year",e)};return(0,M.bF)("div",{class:c},[(0,M.bF)(ge,(0,O.A)((0,O.A)({},t),{},{prefixCls:n,onPrevDecades:()=>{u(-1)},onNextDecades:()=>{u(1)}}),null),(0,M.bF)(Se,(0,O.A)((0,O.A)({},t),{},{prefixCls:n,onSelect:d}),null)])}Ve.displayName="DecadePanel",Ve.inheritAttrs=!1;var Ke=Ve;const Ye=7;function qe(e,t){return!e&&!t||!(!e||!t)&&void 0}function Xe(e,t,n){const r=qe(t,n);if("boolean"===typeof r)return r;const i=Math.floor(e.getYear(t)/10),o=Math.floor(e.getYear(n)/10);return i===o}function Je(e,t,n){const r=qe(t,n);return"boolean"===typeof r?r:e.getYear(t)===e.getYear(n)}function Ze(e,t){const n=Math.floor(e.getMonth(t)/3);return n+1}function et(e,t,n){const r=qe(t,n);return"boolean"===typeof r?r:Je(e,t,n)&&Ze(e,t)===Ze(e,n)}function tt(e,t,n){const r=qe(t,n);return"boolean"===typeof r?r:Je(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function nt(e,t,n){const r=qe(t,n);return"boolean"===typeof r?r:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function rt(e,t,n){const r=qe(t,n);return"boolean"===typeof r?r:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}function it(e,t,n,r){const i=qe(n,r);return"boolean"===typeof i?i:e.locale.getWeek(t,n)===e.locale.getWeek(t,r)}function ot(e,t,n){return nt(e,t,n)&&rt(e,t,n)}function at(e,t,n,r){return!!(t&&n&&r)&&(!nt(e,t,r)&&!nt(e,n,r)&&e.isAfter(r,t)&&e.isAfter(n,r))}function st(e,t,n){const r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),o=t.getWeekDay(i);let a=t.addDate(i,r-o);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}function lt(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;switch(t){case"year":return n.addYear(e,10*r);case"quarter":case"month":return n.addYear(e,r);default:return n.addMonth(e,r)}}function ct(e,t){let{generateConfig:n,locale:r,format:i}=t;return"function"===typeof i?i(e):n.locale.format(r.locale,e,i)}function ut(e,t){let{generateConfig:n,locale:r,formatList:i}=t;return e&&"function"!==typeof i[0]?n.locale.parse(r.locale,e,i):null}function dt(e){let{cellDate:t,mode:n,disabledDate:r,generateConfig:i}=e;if(!r)return!1;const o=(e,n,o)=>{let a=n;while(a<=o){let n;switch(e){case"date":if(n=i.setDate(t,a),!r(n))return!1;break;case"month":if(n=i.setMonth(t,a),!dt({cellDate:n,mode:"month",generateConfig:i,disabledDate:r}))return!1;break;case"year":if(n=i.setYear(t,a),!dt({cellDate:n,mode:"year",generateConfig:i,disabledDate:r}))return!1;break}a+=1}return!0};switch(n){case"date":case"week":return r(t);case"month":{const e=1,n=i.getDate(i.getEndDate(t));return o("date",e,n)}case"quarter":{const e=3*Math.floor(i.getMonth(t)/3),n=e+2;return o("month",e,n)}case"year":return o("month",0,11);case"decade":{const e=i.getYear(t),n=Math.floor(e/We)*We,r=n+We-1;return o("year",n,r)}}}function ht(e){const t=se(e),{hideHeader:n}=ue();if(n.value)return null;const{prefixCls:r,generateConfig:i,locale:o,value:a,format:s}=t,l=`${r}-header`;return(0,M.bF)(fe,{prefixCls:l},{default:()=>[a?ct(a,{locale:o,format:s,generateConfig:i}):" "]})}ht.displayName="TimeHeader",ht.inheritAttrs=!1;var ft=ht,pt=(n(7588),(0,M.pM)({name:"TimeUnitColumn",props:["prefixCls","units","onSelect","value","active","hideDisabledOptions"],setup(e){const{open:t}=ue(),n=(0,R.IJ)(null),r=(0,R.KR)(new Map),i=(0,R.KR)();return(0,M.wB)(()=>e.value,()=>{const i=r.value.get(e.value);i&&!1!==t.value&&Ie(n.value,i.offsetTop,120)}),(0,M.xo)(()=>{var e;null===(e=i.value)||void 0===e||e.call(i)}),(0,M.wB)(t,()=>{var o;null===(o=i.value)||void 0===o||o.call(i),(0,M.dY)(()=>{if(t.value){const t=r.value.get(e.value);t&&(i.value=Me(t,()=>{Ie(n.value,t.offsetTop,0)}))}})},{immediate:!0,flush:"post"}),()=>{const{prefixCls:t,units:i,onSelect:o,value:a,active:s,hideDisabledOptions:l}=e,c=`${t}-cell`;return(0,M.bF)("ul",{class:(0,L.A)(`${t}-column`,{[`${t}-column-active`]:s}),ref:n,style:{position:"relative"}},[i.map(e=>l&&e.disabled?null:(0,M.bF)("li",{key:e.value,ref:t=>{r.value.set(e.value,t)},class:(0,L.A)(c,{[`${c}-disabled`]:e.disabled,[`${c}-selected`]:a===e.value}),onClick:()=>{e.disabled||o(e.value)}},[(0,M.bF)("div",{class:`${c}-inner`},[e.label])]))])}}}));function gt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(e);while(r.length<t)r=`${n}${e}`;return r}const mt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t};function vt(e){return null===e||void 0===e?[]:Array.isArray(e)?e:[e]}function At(e){const t={};return Object.keys(e).forEach(n=>{!n.startsWith("data-")&&!n.startsWith("aria-")&&"role"!==n&&"name"!==n||n.startsWith("data-__")||(t[n]=e[n])}),t}function bt(e,t){return e?e[t]:null}function yt(e,t,n){const r=[bt(e,0),bt(e,1)];return r[n]="function"===typeof t?t(r[n]):t,r[0]||r[1]?r:null}var wt=n(82978);function _t(e,t,n,r){const i=[];for(let o=e;o<=t;o+=n)i.push({label:gt(o,2),value:o,disabled:(r||[]).includes(o)});return i}const xt=(0,M.pM)({compatConfig:{MODE:3},name:"TimeBody",inheritAttrs:!1,props:["generateConfig","prefixCls","operationRef","activeColumnIndex","value","showHour","showMinute","showSecond","use12Hours","hourStep","minuteStep","secondStep","disabledHours","disabledMinutes","disabledSeconds","disabledTime","hideDisabledOptions","onSelect"],setup(e){const t=(0,M.EW)(()=>e.value?e.generateConfig.getHour(e.value):-1),n=(0,M.EW)(()=>!!e.use12Hours&&t.value>=12),i=(0,M.EW)(()=>e.use12Hours?t.value%12:t.value),o=(0,M.EW)(()=>e.value?e.generateConfig.getMinute(e.value):-1),a=(0,M.EW)(()=>e.value?e.generateConfig.getSecond(e.value):-1),s=(0,R.KR)(e.generateConfig.getNow()),l=(0,R.KR)(),c=(0,R.KR)(),u=(0,R.KR)();(0,M.Ic)(()=>{s.value=e.generateConfig.getNow()}),(0,M.nT)(()=>{if(e.disabledTime){const t=e.disabledTime(s);[l.value,c.value,u.value]=[t.disabledHours,t.disabledMinutes,t.disabledSeconds]}else[l.value,c.value,u.value]=[e.disabledHours,e.disabledMinutes,e.disabledSeconds]});const d=(t,n,r,i)=>{let o=e.value||e.generateConfig.getNow();const a=Math.max(0,n),s=Math.max(0,r),l=Math.max(0,i);return o=me(e.generateConfig,o,e.use12Hours&&t?a+12:a,s,l),o},h=(0,M.EW)(()=>{var t;return _t(0,23,null!==(t=e.hourStep)&&void 0!==t?t:1,l.value&&l.value())}),f=(0,M.EW)(()=>{if(!e.use12Hours)return[!1,!1];const t=[!0,!0];return h.value.forEach(e=>{let{disabled:n,value:r}=e;n||(r>=12?t[1]=!1:t[0]=!1)}),t}),p=(0,M.EW)(()=>e.use12Hours?h.value.filter(n.value?e=>e.value>=12:e=>e.value<12).map(e=>{const t=e.value%12,n=0===t?"12":gt(t,2);return(0,r.A)((0,r.A)({},e),{label:n,value:t})}):h.value),g=(0,M.EW)(()=>{var n;return _t(0,59,null!==(n=e.minuteStep)&&void 0!==n?n:1,c.value&&c.value(t.value))}),m=(0,M.EW)(()=>{var n;return _t(0,59,null!==(n=e.secondStep)&&void 0!==n?n:1,u.value&&u.value(t.value,o.value))});return()=>{const{prefixCls:t,operationRef:r,activeColumnIndex:s,showHour:l,showMinute:c,showSecond:u,use12Hours:h,hideDisabledOptions:v,onSelect:A}=e,b=[],y=`${t}-content`,w=`${t}-time-panel`;function _(e,t,n,r,i){!1!==e&&b.push({node:(0,wt.Ob)(t,{prefixCls:w,value:n,active:s===b.length,onSelect:i,units:r,hideDisabledOptions:v}),onSelect:i,value:n,units:r})}r.value={onUpDown:e=>{const t=b[s];if(t){const n=t.units.findIndex(e=>e.value===t.value),r=t.units.length;for(let i=1;i<r;i+=1){const o=t.units[(n+e*i+r)%r];if(!0!==o.disabled){t.onSelect(o.value);break}}}}},_(l,(0,M.bF)(pt,{key:"hour"},null),i.value,p.value,e=>{A(d(n.value,e,o.value,a.value),"mouse")}),_(c,(0,M.bF)(pt,{key:"minute"},null),o.value,g.value,e=>{A(d(n.value,i.value,e,a.value),"mouse")}),_(u,(0,M.bF)(pt,{key:"second"},null),a.value,m.value,e=>{A(d(n.value,i.value,o.value,e),"mouse")});let x=-1;return"boolean"===typeof n.value&&(x=n.value?1:0),_(!0===h,(0,M.bF)(pt,{key:"12hours"},null),x,[{label:"AM",value:0,disabled:f.value[0]},{label:"PM",value:1,disabled:f.value[1]}],e=>{A(d(!!e,i.value,o.value,a.value),"mouse")}),(0,M.bF)("div",{class:y},[b.map(e=>{let{node:t}=e;return t})])}}});var Et=xt;const St=e=>e.filter(e=>!1!==e).length;function Ct(e){const t=se(e),{generateConfig:n,format:r="HH:mm:ss",prefixCls:i,active:o,operationRef:a,showHour:s,showMinute:l,showSecond:c,use12Hours:u=!1,onSelect:d,value:h}=t,f=`${i}-time-panel`,p=(0,R.KR)(),g=(0,R.KR)(-1),m=St([s,l,c,u]);return a.value={onKeydown:e=>De(e,{onLeftRight:e=>{g.value=(g.value+e+m)%m},onUpDown:e=>{-1===g.value?g.value=0:p.value&&p.value.onUpDown(e)},onEnter:()=>{d(h||n.getNow(),"key"),g.value=-1}}),onBlur:()=>{g.value=-1}},(0,M.bF)("div",{class:(0,L.A)(f,{[`${f}-active`]:o})},[(0,M.bF)(ft,(0,O.A)((0,O.A)({},t),{},{format:r,prefixCls:i}),null),(0,M.bF)(Et,(0,O.A)((0,O.A)({},t),{},{prefixCls:i,activeColumnIndex:g.value,operationRef:p}),null)])}Ct.displayName="TimePanel",Ct.inheritAttrs=!1;var Tt=Ct;function kt(e){let{cellPrefixCls:t,generateConfig:n,rangedValue:r,hoverRangedValue:i,isInView:o,isSameCell:a,offsetCell:s,today:l,value:c}=e;function u(e){const u=s(e,-1),d=s(e,1),h=bt(r,0),f=bt(r,1),p=bt(i,0),g=bt(i,1),m=at(n,p,g,e);function v(e){return a(h,e)}function A(e){return a(f,e)}const b=a(p,e),y=a(g,e),w=(m||y)&&(!o(u)||A(u)),_=(m||b)&&(!o(d)||v(d));return{[`${t}-in-view`]:o(e),[`${t}-in-range`]:at(n,h,f,e),[`${t}-range-start`]:v(e),[`${t}-range-end`]:A(e),[`${t}-range-start-single`]:v(e)&&!f,[`${t}-range-end-single`]:A(e)&&!h,[`${t}-range-start-near-hover`]:v(e)&&(a(u,p)||at(n,p,g,u)),[`${t}-range-end-near-hover`]:A(e)&&(a(d,g)||at(n,p,g,d)),[`${t}-range-hover`]:m,[`${t}-range-hover-start`]:b,[`${t}-range-hover-end`]:y,[`${t}-range-hover-edge-start`]:w,[`${t}-range-hover-edge-end`]:_,[`${t}-range-hover-edge-start-near-range`]:w&&a(u,f),[`${t}-range-hover-edge-end-near-range`]:_&&a(d,h),[`${t}-today`]:a(l,e),[`${t}-selected`]:a(c,e)}}return u}const Ot=Symbol("RangeContextProps"),Mt=e=>{(0,M.Gt)(Ot,e)},It=()=>(0,M.WQ)(Ot,{rangedValue:(0,R.KR)(),hoverRangedValue:(0,R.KR)(),inRange:(0,R.KR)(),panelPosition:(0,R.KR)()}),Dt=(0,M.pM)({compatConfig:{MODE:3},name:"PanelContextProvider",inheritAttrs:!1,props:{value:{type:Object,default:()=>({})}},setup(e,t){let{slots:n}=t;const r={rangedValue:(0,R.KR)(e.value.rangedValue),hoverRangedValue:(0,R.KR)(e.value.hoverRangedValue),inRange:(0,R.KR)(e.value.inRange),panelPosition:(0,R.KR)(e.value.panelPosition)};return Mt(r),R.lW,(0,M.wB)(()=>e.value,()=>{Object.keys(e.value).forEach(t=>{r[t]&&(r[t].value=e.value[t])})}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});function Nt(e){const t=se(e),{prefixCls:n,generateConfig:r,prefixColumn:i,locale:o,rowCount:a,viewDate:s,value:l,dateRender:c}=t,{rangedValue:u,hoverRangedValue:d}=It(),h=st(o.locale,r,s),f=`${n}-cell`,p=r.locale.getWeekFirstDay(o.locale),g=r.getNow(),m=[],v=o.shortWeekDays||(r.locale.getShortWeekDays?r.locale.getShortWeekDays(o.locale):[]);i&&m.push((0,M.bF)("th",{key:"empty","aria-label":"empty cell"},null));for(let y=0;y<Ye;y+=1)m.push((0,M.bF)("th",{key:y},[v[(y+p)%Ye]]));const A=kt({cellPrefixCls:f,today:g,value:l,generateConfig:r,rangedValue:i?null:u.value,hoverRangedValue:i?null:d.value,isSameCell:(e,t)=>nt(r,e,t),isInView:e=>tt(r,e,s),offsetCell:(e,t)=>r.addDate(e,t)}),b=c?e=>c({current:e,today:g}):void 0;return(0,M.bF)(we,(0,O.A)((0,O.A)({},t),{},{rowNum:a,colNum:Ye,baseDate:h,getCellNode:b,getCellText:r.getDate,getCellClassName:A,getCellDate:r.addDate,titleCell:e=>ct(e,{locale:o,format:"YYYY-MM-DD",generateConfig:r}),headerCells:m}),null)}Nt.displayName="DateBody",Nt.inheritAttrs=!1,Nt.props=["prefixCls","generateConfig","value?","viewDate","locale","rowCount","onSelect","dateRender?","disabledDate?","prefixColumn?","rowClassName?"];var Rt=Nt;function Lt(e){const t=se(e),{prefixCls:n,generateConfig:r,locale:i,viewDate:o,onNextMonth:a,onPrevMonth:s,onNextYear:l,onPrevYear:c,onYearClick:u,onMonthClick:d}=t,{hideHeader:h}=ue();if(h.value)return null;const f=`${n}-header`,p=i.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(i.locale):[]),g=r.getMonth(o),m=(0,M.bF)("button",{type:"button",key:"year",onClick:u,tabindex:-1,class:`${n}-year-btn`},[ct(o,{locale:i,format:i.yearFormat,generateConfig:r})]),v=(0,M.bF)("button",{type:"button",key:"month",onClick:d,tabindex:-1,class:`${n}-month-btn`},[i.monthFormat?ct(o,{locale:i,format:i.monthFormat,generateConfig:r}):p[g]]),A=i.monthBeforeYear?[v,m]:[m,v];return(0,M.bF)(fe,(0,O.A)((0,O.A)({},t),{},{prefixCls:f,onSuperPrev:c,onPrev:s,onNext:a,onSuperNext:l}),{default:()=>[A]})}Lt.displayName="DateHeader",Lt.inheritAttrs=!1;var Bt=Lt;const Pt=6;function Ft(e){const t=se(e),{prefixCls:n,panelName:i="date",keyboardConfig:o,active:a,operationRef:s,generateConfig:l,value:c,viewDate:u,onViewDateChange:d,onPanelChange:h,onSelect:f}=t,p=`${n}-${i}-panel`;s.value={onKeydown:e=>De(e,(0,r.A)({onLeftRight:e=>{f(l.addDate(c||u,e),"key")},onCtrlLeftRight:e=>{f(l.addYear(c||u,e),"key")},onUpDown:e=>{f(l.addDate(c||u,e*Ye),"key")},onPageUpDown:e=>{f(l.addMonth(c||u,e),"key")}},o))};const g=e=>{const t=l.addYear(u,e);d(t),h(null,t)},m=e=>{const t=l.addMonth(u,e);d(t),h(null,t)};return(0,M.bF)("div",{class:(0,L.A)(p,{[`${p}-active`]:a})},[(0,M.bF)(Bt,(0,O.A)((0,O.A)({},t),{},{prefixCls:n,value:c,viewDate:u,onPrevYear:()=>{g(-1)},onNextYear:()=>{g(1)},onPrevMonth:()=>{m(-1)},onNextMonth:()=>{m(1)},onMonthClick:()=>{h("month",u)},onYearClick:()=>{h("year",u)}}),null),(0,M.bF)(Rt,(0,O.A)((0,O.A)({},t),{},{onSelect:e=>f(e,"mouse"),prefixCls:n,value:c,viewDate:u,rowCount:Pt}),null)])}Ft.displayName="DatePanel",Ft.inheritAttrs=!1;var $t=Ft;const jt=mt("date","time");function Ht(e){const t=se(e),{prefixCls:n,operationRef:i,generateConfig:o,value:a,defaultValue:s,disabledTime:l,showTime:c,onSelect:u}=t,d=`${n}-datetime-panel`,h=(0,R.KR)(null),f=(0,R.KR)({}),p=(0,R.KR)({}),g="object"===typeof c?(0,r.A)({},c):{};function m(e){const t=jt.indexOf(h.value)+e,n=jt[t]||null;return n}const v=e=>{p.value.onBlur&&p.value.onBlur(e),h.value=null};i.value={onKeydown:e=>{if(e.which===Te.A.TAB){const t=m(e.shiftKey?-1:1);return h.value=t,t&&e.preventDefault(),!0}if(h.value){const t="date"===h.value?f:p;return t.value&&t.value.onKeydown&&t.value.onKeydown(e),!0}return!![Te.A.LEFT,Te.A.RIGHT,Te.A.UP,Te.A.DOWN].includes(e.which)&&(h.value="date",!0)},onBlur:v,onClose:v};const A=(e,t)=>{let n=e;"date"===t&&!a&&g.defaultValue?(n=o.setHour(n,o.getHour(g.defaultValue)),n=o.setMinute(n,o.getMinute(g.defaultValue)),n=o.setSecond(n,o.getSecond(g.defaultValue))):"time"===t&&!a&&s&&(n=o.setYear(n,o.getYear(s)),n=o.setMonth(n,o.getMonth(s)),n=o.setDate(n,o.getDate(s))),u&&u(n,"mouse")},b=l?l(a||null):{};return(0,M.bF)("div",{class:(0,L.A)(d,{[`${d}-active`]:h.value})},[(0,M.bF)($t,(0,O.A)((0,O.A)({},t),{},{operationRef:f,active:"date"===h.value,onSelect:e=>{A(ve(o,e,a||"object"!==typeof c?null:c.defaultValue),"date")}}),null),(0,M.bF)(Tt,(0,O.A)((0,O.A)((0,O.A)((0,O.A)({},t),{},{format:void 0},g),b),{},{disabledTime:null,defaultValue:void 0,operationRef:p,active:"time"===h.value,onSelect:e=>{A(e,"time")}}),null)])}Ht.displayName="DatetimePanel",Ht.inheritAttrs=!1;var Ut=Ht;function Qt(e){const t=se(e),{prefixCls:n,generateConfig:r,locale:i,value:o}=t,a=`${n}-cell`,s=e=>(0,M.bF)("td",{key:"week",class:(0,L.A)(a,`${a}-week`)},[r.locale.getWeek(i.locale,e)]),l=`${n}-week-panel-row`,c=e=>(0,L.A)(l,{[`${l}-selected`]:it(r,i.locale,o,e)});return(0,M.bF)($t,(0,O.A)((0,O.A)({},t),{},{panelName:"week",prefixColumn:s,rowClassName:c,keyboardConfig:{onLeftRight:null}}),null)}Qt.displayName="WeekPanel",Qt.inheritAttrs=!1;var zt=Qt;function Wt(e){const t=se(e),{prefixCls:n,generateConfig:r,locale:i,viewDate:o,onNextYear:a,onPrevYear:s,onYearClick:l}=t,{hideHeader:c}=ue();if(c.value)return null;const u=`${n}-header`;return(0,M.bF)(fe,(0,O.A)((0,O.A)({},t),{},{prefixCls:u,onSuperPrev:s,onSuperNext:a}),{default:()=>[(0,M.bF)("button",{type:"button",onClick:l,class:`${n}-year-btn`},[ct(o,{locale:i,format:i.yearFormat,generateConfig:r})])]})}Wt.displayName="MonthHeader",Wt.inheritAttrs=!1;var Gt=Wt;const Vt=3,Kt=4;function Yt(e){const t=se(e),{prefixCls:n,locale:r,value:i,viewDate:o,generateConfig:a,monthCellRender:s}=t,{rangedValue:l,hoverRangedValue:c}=It(),u=`${n}-cell`,d=kt({cellPrefixCls:u,value:i,generateConfig:a,rangedValue:l.value,hoverRangedValue:c.value,isSameCell:(e,t)=>tt(a,e,t),isInView:()=>!0,offsetCell:(e,t)=>a.addMonth(e,t)}),h=r.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(r.locale):[]),f=a.setMonth(o,0),p=s?e=>s({current:e,locale:r}):void 0;return(0,M.bF)(we,(0,O.A)((0,O.A)({},t),{},{rowNum:Kt,colNum:Vt,baseDate:f,getCellNode:p,getCellText:e=>r.monthFormat?ct(e,{locale:r,format:r.monthFormat,generateConfig:a}):h[a.getMonth(e)],getCellClassName:d,getCellDate:a.addMonth,titleCell:e=>ct(e,{locale:r,format:"YYYY-MM",generateConfig:a})}),null)}Yt.displayName="MonthBody",Yt.inheritAttrs=!1;var qt=Yt;function Xt(e){const t=se(e),{prefixCls:n,operationRef:r,onViewDateChange:i,generateConfig:o,value:a,viewDate:s,onPanelChange:l,onSelect:c}=t,u=`${n}-month-panel`;r.value={onKeydown:e=>De(e,{onLeftRight:e=>{c(o.addMonth(a||s,e),"key")},onCtrlLeftRight:e=>{c(o.addYear(a||s,e),"key")},onUpDown:e=>{c(o.addMonth(a||s,e*Vt),"key")},onEnter:()=>{l("date",a||s)}})};const d=e=>{const t=o.addYear(s,e);i(t),l(null,t)};return(0,M.bF)("div",{class:u},[(0,M.bF)(Gt,(0,O.A)((0,O.A)({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{l("year",s)}}),null),(0,M.bF)(qt,(0,O.A)((0,O.A)({},t),{},{prefixCls:n,onSelect:e=>{c(e,"mouse"),l("date",e)}}),null)])}Xt.displayName="MonthPanel",Xt.inheritAttrs=!1;var Jt=Xt;function Zt(e){const t=se(e),{prefixCls:n,generateConfig:r,locale:i,viewDate:o,onNextYear:a,onPrevYear:s,onYearClick:l}=t,{hideHeader:c}=ue();if(c.value)return null;const u=`${n}-header`;return(0,M.bF)(fe,(0,O.A)((0,O.A)({},t),{},{prefixCls:u,onSuperPrev:s,onSuperNext:a}),{default:()=>[(0,M.bF)("button",{type:"button",onClick:l,class:`${n}-year-btn`},[ct(o,{locale:i,format:i.yearFormat,generateConfig:r})])]})}Zt.displayName="QuarterHeader",Zt.inheritAttrs=!1;var en=Zt;const tn=4,nn=1;function rn(e){const t=se(e),{prefixCls:n,locale:r,value:i,viewDate:o,generateConfig:a}=t,{rangedValue:s,hoverRangedValue:l}=It(),c=`${n}-cell`,u=kt({cellPrefixCls:c,value:i,generateConfig:a,rangedValue:s.value,hoverRangedValue:l.value,isSameCell:(e,t)=>et(a,e,t),isInView:()=>!0,offsetCell:(e,t)=>a.addMonth(e,3*t)}),d=a.setDate(a.setMonth(o,0),1);return(0,M.bF)(we,(0,O.A)((0,O.A)({},t),{},{rowNum:nn,colNum:tn,baseDate:d,getCellText:e=>ct(e,{locale:r,format:r.quarterFormat||"[Q]Q",generateConfig:a}),getCellClassName:u,getCellDate:(e,t)=>a.addMonth(e,3*t),titleCell:e=>ct(e,{locale:r,format:"YYYY-[Q]Q",generateConfig:a})}),null)}rn.displayName="QuarterBody",rn.inheritAttrs=!1;var on=rn;function an(e){const t=se(e),{prefixCls:n,operationRef:r,onViewDateChange:i,generateConfig:o,value:a,viewDate:s,onPanelChange:l,onSelect:c}=t,u=`${n}-quarter-panel`;r.value={onKeydown:e=>De(e,{onLeftRight:e=>{c(o.addMonth(a||s,3*e),"key")},onCtrlLeftRight:e=>{c(o.addYear(a||s,e),"key")},onUpDown:e=>{c(o.addYear(a||s,e),"key")}})};const d=e=>{const t=o.addYear(s,e);i(t),l(null,t)};return(0,M.bF)("div",{class:u},[(0,M.bF)(en,(0,O.A)((0,O.A)({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{l("year",s)}}),null),(0,M.bF)(on,(0,O.A)((0,O.A)({},t),{},{prefixCls:n,onSelect:e=>{c(e,"mouse")}}),null)])}an.displayName="QuarterPanel",an.inheritAttrs=!1;var sn=an;function ln(e){const t=se(e),{prefixCls:n,generateConfig:r,viewDate:i,onPrevDecade:o,onNextDecade:a,onDecadeClick:s}=t,{hideHeader:l}=ue();if(l.value)return null;const c=`${n}-header`,u=r.getYear(i),d=Math.floor(u/pn)*pn,h=d+pn-1;return(0,M.bF)(fe,(0,O.A)((0,O.A)({},t),{},{prefixCls:c,onSuperPrev:o,onSuperNext:a}),{default:()=>[(0,M.bF)("button",{type:"button",onClick:s,class:`${n}-decade-btn`},[d,(0,M.eW)("-"),h])]})}ln.displayName="YearHeader",ln.inheritAttrs=!1;var cn=ln;const un=3,dn=4;function hn(e){const t=se(e),{prefixCls:n,value:r,viewDate:i,locale:o,generateConfig:a}=t,{rangedValue:s,hoverRangedValue:l}=It(),c=`${n}-cell`,u=a.getYear(i),d=Math.floor(u/pn)*pn,h=d+pn-1,f=a.setYear(i,d-Math.ceil((un*dn-pn)/2)),p=e=>{const t=a.getYear(e);return d<=t&&t<=h},g=kt({cellPrefixCls:c,value:r,generateConfig:a,rangedValue:s.value,hoverRangedValue:l.value,isSameCell:(e,t)=>Je(a,e,t),isInView:p,offsetCell:(e,t)=>a.addYear(e,t)});return(0,M.bF)(we,(0,O.A)((0,O.A)({},t),{},{rowNum:dn,colNum:un,baseDate:f,getCellText:a.getYear,getCellClassName:g,getCellDate:a.addYear,titleCell:e=>ct(e,{locale:o,format:"YYYY",generateConfig:a})}),null)}hn.displayName="YearBody",hn.inheritAttrs=!1;var fn=hn;const pn=10;function gn(e){const t=se(e),{prefixCls:n,operationRef:r,onViewDateChange:i,generateConfig:o,value:a,viewDate:s,sourceMode:l,onSelect:c,onPanelChange:u}=t,d=`${n}-year-panel`;r.value={onKeydown:e=>De(e,{onLeftRight:e=>{c(o.addYear(a||s,e),"key")},onCtrlLeftRight:e=>{c(o.addYear(a||s,e*pn),"key")},onUpDown:e=>{c(o.addYear(a||s,e*un),"key")},onEnter:()=>{u("date"===l?"date":"month",a||s)}})};const h=e=>{const t=o.addYear(s,10*e);i(t),u(null,t)};return(0,M.bF)("div",{class:d},[(0,M.bF)(cn,(0,O.A)((0,O.A)({},t),{},{prefixCls:n,onPrevDecade:()=>{h(-1)},onNextDecade:()=>{h(1)},onDecadeClick:()=>{u("decade",s)}}),null),(0,M.bF)(fn,(0,O.A)((0,O.A)({},t),{},{prefixCls:n,onSelect:e=>{u("date"===l?"date":"month",e),c(e,"mouse")}}),null)])}gn.displayName="YearPanel",gn.inheritAttrs=!1;var mn=gn;function vn(e,t,n){return n?(0,M.bF)("div",{class:`${e}-footer-extra`},[n(t)]):null}function An(e){let t,n,{prefixCls:r,components:i={},needConfirmButton:o,onNow:a,onOk:s,okDisabled:l,showNow:c,locale:u}=e;if(o){const e=i.button||"button";a&&!1!==c&&(t=(0,M.bF)("li",{class:`${r}-now`},[(0,M.bF)("a",{class:`${r}-now-btn`,onClick:a},[u.now])])),n=o&&(0,M.bF)("li",{class:`${r}-ok`},[(0,M.bF)(e,{disabled:l,onClick:e=>{e.stopPropagation(),s&&s()}},{default:()=>[u.ok]})])}return t||n?(0,M.bF)("ul",{class:`${r}-ranges`},[t,n]):null}var bn=n(53523);function yn(){return(0,M.pM)({name:"PickerPanel",inheritAttrs:!1,props:{prefixCls:String,locale:Object,generateConfig:Object,value:Object,defaultValue:Object,pickerValue:Object,defaultPickerValue:Object,disabledDate:Function,mode:String,picker:{type:String,default:"date"},tabindex:{type:[Number,String],default:0},showNow:{type:Boolean,default:void 0},showTime:[Boolean,Object],showToday:Boolean,renderExtraFooter:Function,dateRender:Function,hideHeader:{type:Boolean,default:void 0},onSelect:Function,onChange:Function,onPanelChange:Function,onMousedown:Function,onPickerValueChange:Function,onOk:Function,components:Object,direction:String,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1}},setup(e,t){let{attrs:n}=t;const i=(0,M.EW)(()=>"date"===e.picker&&!!e.showTime||"time"===e.picker),o=(0,M.EW)(()=>24%e.hourStep===0),a=(0,M.EW)(()=>60%e.minuteStep===0),s=(0,M.EW)(()=>60%e.secondStep===0);const l=ue(),{operationRef:c,onSelect:u,hideRanges:d,defaultOpenValue:h}=l,{inRange:f,panelPosition:p,rangedValue:g,hoverRangedValue:m}=It(),v=(0,R.KR)({}),[A,b]=(0,bn.A)(null,{value:(0,R.lW)(e,"value"),defaultValue:e.defaultValue,postState:t=>!t&&(null===h||void 0===h?void 0:h.value)&&"time"===e.picker?h.value:t}),[w,_]=(0,bn.A)(null,{value:(0,R.lW)(e,"pickerValue"),defaultValue:e.defaultPickerValue||A.value,postState:t=>{const{generateConfig:n,showTime:r,defaultValue:i}=e,o=n.getNow();return t?!A.value&&e.showTime?ve(n,Array.isArray(t)?t[0]:t,"object"===typeof r?r.defaultValue||o:i||o):t:o}}),x=t=>{_(t),e.onPickerValueChange&&e.onPickerValueChange(t)},E=t=>{const n=Qe[e.picker];return n?n(t):t},[S,C]=(0,bn.A)(()=>"time"===e.picker?"time":E("date"),{value:(0,R.lW)(e,"mode")});(0,M.wB)(()=>e.picker,()=>{C(e.picker)});const T=(0,R.KR)(S.value),k=e=>{T.value=e},I=(t,n)=>{const{onPanelChange:r,generateConfig:i}=e,o=E(t||S.value);k(S.value),C(o),r&&(S.value!==o||ot(i,w.value,w.value))&&r(n,o)},D=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{picker:i,generateConfig:o,onSelect:a,onChange:s,disabledDate:l}=e;(S.value===i||r)&&(b(t),a&&a(t),u&&u(t,n),!s||ot(o,t,A.value)||(null===l||void 0===l?void 0:l(t))||s(t))},N=e=>v.value&&v.value.onKeydown?([Te.A.LEFT,Te.A.RIGHT,Te.A.UP,Te.A.DOWN,Te.A.PAGE_UP,Te.A.PAGE_DOWN,Te.A.ENTER].includes(e.which)&&e.preventDefault(),v.value.onKeydown(e)):((0,y.$e)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1),B=e=>{v.value&&v.value.onBlur&&v.value.onBlur(e)},P=()=>{const{generateConfig:t,hourStep:n,minuteStep:r,secondStep:i}=e,l=t.getNow(),c=Ae(t.getHour(l),t.getMinute(l),t.getSecond(l),o.value?n:1,a.value?r:1,s.value?i:1),u=me(t,l,c[0],c[1],c[2]);D(u,"submit")},F=(0,M.EW)(()=>{const{prefixCls:t,direction:n}=e;return(0,L.A)(`${t}-panel`,{[`${t}-panel-has-range`]:g&&g.value&&g.value[0]&&g.value[1],[`${t}-panel-has-range-hover`]:m&&m.value&&m.value[0]&&m.value[1],[`${t}-panel-rtl`]:"rtl"===n})});return ce((0,r.A)((0,r.A)({},l),{mode:S,hideHeader:(0,M.EW)(()=>{var t;return void 0!==e.hideHeader?e.hideHeader:null===(t=l.hideHeader)||void 0===t?void 0:t.value}),hidePrevBtn:(0,M.EW)(()=>f.value&&"right"===p.value),hideNextBtn:(0,M.EW)(()=>f.value&&"left"===p.value)})),(0,M.wB)(()=>e.value,()=>{e.value&&_(e.value)}),()=>{const{prefixCls:t="ant-picker",locale:o,generateConfig:a,disabledDate:s,picker:l="date",tabindex:u=0,showNow:h,showTime:f,showToday:g,renderExtraFooter:m,onMousedown:b,onOk:y,components:_}=e;let E;c&&"right"!==p.value&&(c.value={onKeydown:N,onClose:()=>{v.value&&v.value.onClose&&v.value.onClose()}});const C=(0,r.A)((0,r.A)((0,r.A)({},n),e),{operationRef:v,prefixCls:t,viewDate:w.value,value:A.value,onViewDateChange:x,sourceMode:T.value,onPanelChange:I,disabledDate:s});switch(delete C.onChange,delete C.onSelect,S.value){case"decade":E=(0,M.bF)(Ke,(0,O.A)((0,O.A)({},C),{},{onSelect:(e,t)=>{x(e),D(e,t)}}),null);break;case"year":E=(0,M.bF)(mn,(0,O.A)((0,O.A)({},C),{},{onSelect:(e,t)=>{x(e),D(e,t)}}),null);break;case"month":E=(0,M.bF)(Jt,(0,O.A)((0,O.A)({},C),{},{onSelect:(e,t)=>{x(e),D(e,t)}}),null);break;case"quarter":E=(0,M.bF)(sn,(0,O.A)((0,O.A)({},C),{},{onSelect:(e,t)=>{x(e),D(e,t)}}),null);break;case"week":E=(0,M.bF)(zt,(0,O.A)((0,O.A)({},C),{},{onSelect:(e,t)=>{x(e),D(e,t)}}),null);break;case"time":delete C.showTime,E=(0,M.bF)(Tt,(0,O.A)((0,O.A)((0,O.A)({},C),"object"===typeof f?f:null),{},{onSelect:(e,t)=>{x(e),D(e,t)}}),null);break;default:E=f?(0,M.bF)(Ut,(0,O.A)((0,O.A)({},C),{},{onSelect:(e,t)=>{x(e),D(e,t)}}),null):(0,M.bF)($t,(0,O.A)((0,O.A)({},C),{},{onSelect:(e,t)=>{x(e),D(e,t)}}),null)}let k,R,$;if((null===d||void 0===d?void 0:d.value)||(k=vn(t,S.value,m),R=An({prefixCls:t,components:_,needConfirmButton:i.value,okDisabled:!A.value||s&&s(A.value),locale:o,showNow:h,onNow:i.value&&P,onOk:()=>{A.value&&(D(A.value,"submit",!0),y&&y(A.value))}})),g&&"date"===S.value&&"date"===l&&!f){const e=a.getNow(),n=`${t}-today-btn`,r=s&&s(e);$=(0,M.bF)("a",{class:(0,L.A)(n,r&&`${n}-disabled`),"aria-disabled":r,onClick:()=>{r||D(e,"mouse",!0)}},[o.today])}return(0,M.bF)("div",{tabindex:u,class:(0,L.A)(F.value,n.class),style:n.style,onKeydown:N,onBlur:B,onMousedown:b},[E,k||R||$?(0,M.bF)("div",{class:`${t}-footer`},[k,R,$]):null])}}})}const wn=yn();var _n=e=>(0,M.bF)(wn,e),xn=n(60056);const En={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Sn(e,t){let{slots:n}=t;const{prefixCls:r,popupStyle:i,visible:o,dropdownClassName:a,dropdownAlign:s,transitionName:l,getPopupContainer:c,range:u,popupPlacement:d,direction:h}=se(e),f=`${r}-dropdown`,p=()=>void 0!==d?d:"rtl"===h?"bottomRight":"bottomLeft";return(0,M.bF)(xn.A,{showAction:[],hideAction:[],popupPlacement:p(),builtinPlacements:En,prefixCls:f,popupTransitionName:l,popupAlign:s,popupVisible:o,popupClassName:(0,L.A)(a,{[`${f}-range`]:u,[`${f}-rtl`]:"rtl"===h}),popupStyle:i,getPopupContainer:c},{default:n.default,popup:n.popupElement})}var Cn=Sn,Tn=(0,M.pM)({name:"PresetPanel",props:{prefixCls:String,presets:{type:Array,default:()=>[]},onClick:Function,onHover:Function},setup(e){return()=>e.presets.length?(0,M.bF)("div",{class:`${e.prefixCls}-presets`},[(0,M.bF)("ul",null,[e.presets.map((t,n)=>{let{label:r,value:i}=t;return(0,M.bF)("li",{key:n,onClick:t=>{t.stopPropagation(),e.onClick(i)},onMouseenter:()=>{var t;null===(t=e.onHover)||void 0===t||t.call(e,i)},onMouseleave:()=>{var t;null===(t=e.onHover)||void 0===t||t.call(e,null)}},[r])})])]):null}});function kn(e){let{open:t,value:n,isClickOutside:r,triggerOpen:i,forwardKeydown:o,onKeydown:a,blurToCancel:s,onSubmit:l,onCancel:c,onFocus:u,onBlur:d}=e;const h=(0,R.IJ)(!1),f=(0,R.IJ)(!1),p=(0,R.IJ)(!1),g=(0,R.IJ)(!1),m=(0,R.IJ)(!1),v=(0,M.EW)(()=>({onMousedown:()=>{h.value=!0,i(!0)},onKeydown:e=>{const n=()=>{m.value=!0};if(a(e,n),!m.value){switch(e.which){case Te.A.ENTER:return t.value?!1!==l()&&(h.value=!0):i(!0),void e.preventDefault();case Te.A.TAB:return void(h.value&&t.value&&!e.shiftKey?(h.value=!1,e.preventDefault()):!h.value&&t.value&&!o(e)&&e.shiftKey&&(h.value=!0,e.preventDefault()));case Te.A.ESC:return h.value=!0,void c()}t.value||[Te.A.SHIFT].includes(e.which)?h.value||o(e):i(!0)}},onFocus:e=>{h.value=!0,f.value=!0,u&&u(e)},onBlur:e=>{!p.value&&r(document.activeElement)?(s.value?setTimeout(()=>{let{activeElement:e}=document;while(e&&e.shadowRoot)e=e.shadowRoot.activeElement;r(e)&&c()},0):t.value&&(i(!1),g.value&&l()),f.value=!1,d&&d(e)):p.value=!1}}));(0,M.wB)(t,()=>{g.value=!1}),(0,M.wB)(n,()=>{g.value=!0});const A=(0,R.IJ)();return(0,M.sV)(()=>{A.value=Pe(e=>{const n=Fe(e);if(t.value){const e=r(n);e?f.value&&!e||i(!1):(p.value=!0,(0,ke.A)(()=>{p.value=!1}))}})}),(0,M.xo)(()=>{A.value&&A.value()}),[v,{focused:f,typing:h}]}n(81148);function On(e){let{valueTexts:t,onTextChange:n}=e;const r=(0,R.KR)("");function i(e){r.value=e,n(e)}function o(){r.value=t.value[0]}return(0,M.wB)(()=>[...t.value],function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.join("||")!==n.join("||")&&t.value.every(e=>e!==r.value)&&o()},{immediate:!0}),[r,i,o]}var Mn=n(87426),In=n(87986);function Dn(e,t){let{formatList:n,generateConfig:r,locale:i}=t;const o=(0,Mn.A)(()=>{if(!e.value)return[[""],""];let t="";const o=[];for(let a=0;a<n.value.length;a+=1){const s=n.value[a],l=ct(e.value,{generateConfig:r.value,locale:i.value,format:s});o.push(l),0===a&&(t=l)}return[o,t]},[e,n],(e,t)=>t[0]!==e[0]||!(0,In.A)(t[1],e[1])),a=(0,M.EW)(()=>o.value[0]),s=(0,M.EW)(()=>o.value[1]);return[a,s]}function Nn(e,t){let{formatList:n,generateConfig:r,locale:i}=t;const o=(0,R.KR)(null);let a;function s(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ke.A.cancel(a),t?o.value=e:a=(0,ke.A)(()=>{o.value=e})}const[,l]=Dn(o,{formatList:n,generateConfig:r,locale:i});function c(e){s(e)}function u(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s(null,e)}return(0,M.wB)(e,()=>{u(!0)}),(0,M.xo)(()=>{ke.A.cancel(a)}),[l,c,u]}function Rn(e,t){return(0,M.EW)(()=>{if(null===e||void 0===e?void 0:e.value)return e.value;if(null===t||void 0===t?void 0:t.value){(0,y.Ay)(!1,"`ranges` is deprecated. Please use `presets` instead.");const e=Object.keys(t.value);return e.map(e=>{const n=t.value[e],r="function"===typeof n?n():n;return{label:e,value:r}})}return[]})}function Ln(){return(0,M.pM)({name:"Picker",inheritAttrs:!1,props:["prefixCls","id","tabindex","dropdownClassName","dropdownAlign","popupStyle","transitionName","generateConfig","locale","inputReadOnly","allowClear","autofocus","showTime","showNow","showHour","showMinute","showSecond","picker","format","use12Hours","value","defaultValue","open","defaultOpen","defaultOpenValue","suffixIcon","presets","clearIcon","disabled","disabledDate","placeholder","getPopupContainer","panelRender","inputRender","onChange","onOpenChange","onPanelChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onContextmenu","onClick","onKeydown","onSelect","direction","autocomplete","showToday","renderExtraFooter","dateRender","minuteStep","hourStep","secondStep","hideDisabledOptions"],setup(e,t){let{attrs:n,expose:i}=t;const o=(0,R.KR)(null),a=(0,M.EW)(()=>e.presets),s=Rn(a),l=(0,M.EW)(()=>{var t;return null!==(t=e.picker)&&void 0!==t?t:"date"}),c=(0,M.EW)(()=>"date"===l.value&&!!e.showTime||"time"===l.value);const u=(0,M.EW)(()=>vt(Ne(e.format,l.value,e.showTime,e.use12Hours))),d=(0,R.KR)(null),h=(0,R.KR)(null),f=(0,R.KR)(null),[p,g]=(0,bn.A)(null,{value:(0,R.lW)(e,"value"),defaultValue:e.defaultValue}),m=(0,R.KR)(p.value),v=e=>{m.value=e},A=(0,R.KR)(null),[b,w]=(0,bn.A)(!1,{value:(0,R.lW)(e,"open"),defaultValue:e.defaultOpen,postState:t=>!e.disabled&&t,onChange:t=>{e.onOpenChange&&e.onOpenChange(t),!t&&A.value&&A.value.onClose&&A.value.onClose()}}),[_,x]=Dn(m,{formatList:u,generateConfig:(0,R.lW)(e,"generateConfig"),locale:(0,R.lW)(e,"locale")}),[E,S,C]=On({valueTexts:_,onTextChange:t=>{const n=ut(t,{locale:e.locale,formatList:u.value,generateConfig:e.generateConfig});!n||e.disabledDate&&e.disabledDate(n)||v(n)}}),T=t=>{const{onChange:n,generateConfig:r,locale:i}=e;v(t),g(t),n&&!ot(r,p.value,t)&&n(t,t?ct(t,{generateConfig:r,locale:i,format:u.value[0]}):"")},k=t=>{e.disabled&&t||w(t)},I=e=>b.value&&A.value&&A.value.onKeydown?A.value.onKeydown(e):((0,y.$e)(!1,"Picker not correct forward Keydown operation. Please help to fire issue about this."),!1),D=function(){e.onMouseup&&e.onMouseup(...arguments),o.value&&(o.value.focus(),k(!0))},[N,{focused:B,typing:P}]=kn({blurToCancel:c,open:b,value:E,triggerOpen:k,forwardKeydown:I,isClickOutside:e=>!ze([d.value,h.value,f.value],e),onSubmit:()=>!(!m.value||e.disabledDate&&e.disabledDate(m.value))&&(T(m.value),k(!1),C(),!0),onCancel:()=>{k(!1),v(p.value),C()},onKeydown:(t,n)=>{var r;null===(r=e.onKeydown)||void 0===r||r.call(e,t,n)},onFocus:t=>{var n;null===(n=e.onFocus)||void 0===n||n.call(e,t)},onBlur:t=>{var n;null===(n=e.onBlur)||void 0===n||n.call(e,t)}});(0,M.wB)([b,_],()=>{b.value||(v(p.value),_.value.length&&""!==_.value[0]?x.value!==E.value&&C():S(""))}),(0,M.wB)(l,()=>{b.value||C()}),(0,M.wB)(p,()=>{v(p.value)});const[F,$,j]=Nn(E,{formatList:u,generateConfig:(0,R.lW)(e,"generateConfig"),locale:(0,R.lW)(e,"locale")}),H=(e,t)=>{("submit"===t||"key"!==t&&!c.value)&&(T(e),k(!1))};return ce({operationRef:A,hideHeader:(0,M.EW)(()=>"time"===l.value),onSelect:H,open:b,defaultOpenValue:(0,R.lW)(e,"defaultOpenValue"),onDateMouseenter:$,onDateMouseleave:j}),i({focus:()=>{o.value&&o.value.focus()},blur:()=>{o.value&&o.value.blur()}}),()=>{const{prefixCls:t="rc-picker",id:i,tabindex:a,dropdownClassName:l,dropdownAlign:c,popupStyle:g,transitionName:A,generateConfig:y,locale:w,inputReadOnly:_,allowClear:x,autofocus:C,picker:I="date",defaultOpenValue:R,suffixIcon:$,clearIcon:H,disabled:U,placeholder:Q,getPopupContainer:z,panelRender:W,onMousedown:G,onMouseenter:V,onMouseleave:K,onContextmenu:Y,onClick:q,onSelect:X,direction:J,autocomplete:Z="off"}=e,ee=(0,r.A)((0,r.A)((0,r.A)({},e),n),{class:(0,L.A)({[`${t}-panel-focused`]:!P.value}),style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null});let te=(0,M.bF)("div",{class:`${t}-panel-layout`},[(0,M.bF)(Tn,{prefixCls:t,presets:s.value,onClick:e=>{T(e),k(!1)}},null),(0,M.bF)(_n,(0,O.A)((0,O.A)({},ee),{},{generateConfig:y,value:m.value,locale:w,tabindex:-1,onSelect:e=>{null===X||void 0===X||X(e),v(e)},direction:J,onPanelChange:(t,n)=>{const{onPanelChange:r}=e;j(!0),null===r||void 0===r||r(t,n)}}),null)]);W&&(te=W(te));const ne=(0,M.bF)("div",{class:`${t}-panel-container`,ref:d,onMousedown:e=>{e.preventDefault()}},[te]);let re,ie;$&&(re=(0,M.bF)("span",{class:`${t}-suffix`},[$])),x&&p.value&&!U&&(ie=(0,M.bF)("span",{onMousedown:e=>{e.preventDefault(),e.stopPropagation()},onMouseup:e=>{e.preventDefault(),e.stopPropagation(),T(null),k(!1)},class:`${t}-clear`,role:"button"},[H||(0,M.bF)("span",{class:`${t}-clear-btn`},null)]));const oe=(0,r.A)((0,r.A)((0,r.A)((0,r.A)({id:i,tabindex:a,disabled:U,readonly:_||"function"===typeof u.value[0]||!P.value,value:F.value||E.value,onInput:e=>{S(e.target.value)},autofocus:C,placeholder:Q,ref:o,title:E.value},N.value),{size:Re(I,u.value[0],y)}),At(e)),{autocomplete:Z}),ae=e.inputRender?e.inputRender(oe):(0,M.bF)("input",oe,null);const se="rtl"===J?"bottomRight":"bottomLeft";return(0,M.bF)("div",{ref:f,class:(0,L.A)(t,n.class,{[`${t}-disabled`]:U,[`${t}-focused`]:B.value,[`${t}-rtl`]:"rtl"===J}),style:n.style,onMousedown:G,onMouseup:D,onMouseenter:V,onMouseleave:K,onContextmenu:Y,onClick:q},[(0,M.bF)("div",{class:(0,L.A)(`${t}-input`,{[`${t}-input-placeholder`]:!!F.value}),ref:h},[ae,re,ie]),(0,M.bF)(Cn,{visible:b.value,popupStyle:g,prefixCls:t,dropdownClassName:l,dropdownAlign:c,getPopupContainer:z,transitionName:A,popupPlacement:se,direction:J},{default:()=>[(0,M.bF)("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>ne})])}}})}var Bn=Ln(),Pn=Bn,Fn=n(15151);function $n(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function jn(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function Hn(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:"rtl"===e?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}var Un=n(36590);function Qn(){return{id:String,dropdownClassName:String,popupClassName:String,popupStyle:(0,j.ge)(),transitionName:String,placeholder:String,allowClear:(0,j.HE)(),autofocus:(0,j.HE)(),disabled:(0,j.HE)(),tabindex:Number,open:(0,j.HE)(),defaultOpen:(0,j.HE)(),inputReadOnly:(0,j.HE)(),format:(0,j.tK)([String,Function,Array]),getPopupContainer:(0,j.Fg)(),panelRender:(0,j.Fg)(),onChange:(0,j.Fg)(),"onUpdate:value":(0,j.Fg)(),onOk:(0,j.Fg)(),onOpenChange:(0,j.Fg)(),"onUpdate:open":(0,j.Fg)(),onFocus:(0,j.Fg)(),onBlur:(0,j.Fg)(),onMousedown:(0,j.Fg)(),onMouseup:(0,j.Fg)(),onMouseenter:(0,j.Fg)(),onMouseleave:(0,j.Fg)(),onClick:(0,j.Fg)(),onContextmenu:(0,j.Fg)(),onKeydown:(0,j.Fg)(),role:String,name:String,autocomplete:String,direction:(0,j.WO)(),showToday:(0,j.HE)(),showTime:(0,j.tK)([Boolean,Object]),locale:(0,j.ge)(),size:(0,j.WO)(),bordered:(0,j.HE)(),dateRender:(0,j.Fg)(),disabledDate:(0,j.Fg)(),mode:(0,j.WO)(),picker:(0,j.WO)(),valueFormat:String,placement:(0,j.WO)(),status:(0,j.WO)(),disabledHours:(0,j.Fg)(),disabledMinutes:(0,j.Fg)(),disabledSeconds:(0,j.Fg)()}}function zn(){return{defaultPickerValue:(0,j.tK)([Object,String]),defaultValue:(0,j.tK)([Object,String]),value:(0,j.tK)([Object,String]),presets:(0,j.MY)(),disabledTime:(0,j.Fg)(),renderExtraFooter:(0,j.Fg)(),showNow:(0,j.HE)(),monthCellRender:(0,j.Fg)(),monthCellContentRender:(0,j.Fg)()}}function Wn(){return{allowEmpty:(0,j.MY)(),dateRender:(0,j.Fg)(),defaultPickerValue:(0,j.MY)(),defaultValue:(0,j.MY)(),value:(0,j.MY)(),presets:(0,j.MY)(),disabledTime:(0,j.Fg)(),disabled:(0,j.tK)([Boolean,Array]),renderExtraFooter:(0,j.Fg)(),separator:{type:String},showTime:(0,j.tK)([Boolean,Object]),ranges:(0,j.ge)(),placeholder:(0,j.MY)(),mode:(0,j.MY)(),onChange:(0,j.Fg)(),"onUpdate:value":(0,j.Fg)(),onCalendarChange:(0,j.Fg)(),onPanelChange:(0,j.Fg)(),onOk:(0,j.Fg)()}}var Gn=n(56405),Vn=n(98215),Kn=n(42472),Yn=n(50223),qn=n(64675),Xn=n(99778),Jn=n(45050),Zn=n(49752),er=n(20353);const tr=(e,t,n,r)=>{const{lineHeight:i}=e,o=Math.floor(n*i)+2,a=Math.max((t-o)/2,0),s=Math.max(t-o-a,0);return{padding:`${a}px ${r}px ${s}px`}},nr=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerPanelCellHeight:i,motionDurationSlow:o,borderRadiusSM:a,motionDurationMid:s,controlItemBgHover:l,lineWidth:c,lineType:u,colorPrimary:d,controlItemBgActive:h,colorTextLightSolid:f,controlHeightSM:p,pickerDateHoverRangeBorderColor:g,pickerCellBorderGap:m,pickerBasicCellHoverWithRangeColor:v,pickerPanelCellWidth:A,colorTextDisabled:b,colorBgContainerDisabled:y}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:i,transform:"translateY(-50%)",transition:`all ${o}`,content:'""'},[r]:{position:"relative",zIndex:2,display:"inline-block",minWidth:i,height:i,lineHeight:`${i}px`,borderRadius:a,transition:`background ${s}, border ${s}`},[`&:hover:not(${n}-in-view),\n    &:hover:not(${n}-selected):not(${n}-range-start):not(${n}-range-end):not(${n}-range-hover-start):not(${n}-range-hover-end)`]:{[r]:{background:l}},[`&-in-view${n}-today ${r}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${c}px ${u} ${d}`,borderRadius:a,content:'""'}},[`&-in-view${n}-in-range`]:{position:"relative","&::before":{background:h}},[`&-in-view${n}-selected ${r},\n      &-in-view${n}-range-start ${r},\n      &-in-view${n}-range-end ${r}`]:{color:f,background:d},[`&-in-view${n}-range-start:not(${n}-range-start-single),\n      &-in-view${n}-range-end:not(${n}-range-end-single)`]:{"&::before":{background:h}},[`&-in-view${n}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${n}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${n}-range-hover-start:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end),\n      &-in-view${n}-range-hover-end:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end),\n      &-in-view${n}-range-hover-start${n}-range-start-single,\n      &-in-view${n}-range-hover-start${n}-range-start${n}-range-end${n}-range-end-near-hover,\n      &-in-view${n}-range-hover-end${n}-range-start${n}-range-end${n}-range-start-near-hover,\n      &-in-view${n}-range-hover-end${n}-range-end-single,\n      &-in-view${n}-range-hover:not(${n}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:p,borderTop:`${c}px dashed ${g}`,borderBottom:`${c}px dashed ${g}`,transform:"translateY(-50%)",transition:`all ${o}`,content:'""'}},["&-range-hover-start::after,\n      &-range-hover-end::after,\n      &-range-hover::after"]:{insetInlineEnd:0,insetInlineStart:m},[`&-in-view${n}-in-range${n}-range-hover::before,\n      &-in-view${n}-range-start${n}-range-hover::before,\n      &-in-view${n}-range-end${n}-range-hover::before,\n      &-in-view${n}-range-start:not(${n}-range-start-single)${n}-range-hover-start::before,\n      &-in-view${n}-range-end:not(${n}-range-end-single)${n}-range-hover-end::before,\n      ${t}-panel\n      > :not(${t}-date-panel)\n      &-in-view${n}-in-range${n}-range-hover-start::before,\n      ${t}-panel\n      > :not(${t}-date-panel)\n      &-in-view${n}-in-range${n}-range-hover-end::before`]:{background:v},[`&-in-view${n}-range-start:not(${n}-range-start-single):not(${n}-range-end) ${r}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${n}-range-end:not(${n}-range-end-single):not(${n}-range-start) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},[`&-range-hover${n}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${n}-range-hover:first-child::after,\n      tr > &-in-view${n}-range-hover-end:first-child::after,\n      &-in-view${n}-start${n}-range-hover-edge-start${n}-range-hover-edge-start-near-range::after,\n      &-in-view${n}-range-hover-edge-start:not(${n}-range-hover-edge-start-near-range)::after,\n      &-in-view${n}-range-hover-start::after`]:{insetInlineStart:(A-i)/2,borderInlineStart:`${c}px dashed ${g}`,borderStartStartRadius:c,borderEndStartRadius:c},[`tr > &-in-view${n}-range-hover:last-child::after,\n      tr > &-in-view${n}-range-hover-start:last-child::after,\n      &-in-view${n}-end${n}-range-hover-edge-end${n}-range-hover-edge-end-near-range::after,\n      &-in-view${n}-range-hover-edge-end:not(${n}-range-hover-edge-end-near-range)::after,\n      &-in-view${n}-range-hover-end::after`]:{insetInlineEnd:(A-i)/2,borderInlineEnd:`${c}px dashed ${g}`,borderStartEndRadius:c,borderEndEndRadius:c},"&-disabled":{color:b,pointerEvents:"none",[r]:{background:"transparent"},"&::before":{background:y}},[`&-disabled${n}-today ${r}::before`]:{borderColor:b}}},rr=e=>{const{componentCls:t,pickerCellInnerCls:n,pickerYearMonthCellWidth:i,pickerControlIconSize:o,pickerPanelCellWidth:a,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:d,lineType:h,borderRadiusLG:f,colorPrimary:p,colorTextHeading:g,colorSplit:m,pickerControlIconBorderWidth:v,colorIcon:A,pickerTextHeight:b,motionDurationMid:y,colorIconHover:w,fontWeightStrong:_,pickerPanelCellHeight:x,pickerCellPaddingVertical:E,colorTextDisabled:S,colorText:C,fontSize:T,pickerBasicCellHoverWithRangeColor:k,motionDurationSlow:O,pickerPanelWithoutTimeCellHeight:M,pickerQuarterPanelContentHeight:I,colorLink:D,colorLinkActive:N,colorLinkHover:R,pickerDateHoverRangeBorderColor:L,borderRadiusSM:B,colorTextLightSolid:P,borderRadius:F,controlItemBgHover:$,pickerTimePanelColumnHeight:j,pickerTimePanelColumnWidth:H,pickerTimePanelCellHeight:U,controlItemBgActive:Q,marginXXS:z}=e,W=7*a+2*s+4,G=(W-2*l)/3-i-s;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,border:`${d}px ${h} ${m}`,borderRadius:f,outline:"none","&-focused":{borderColor:p},"&-rtl":{direction:"rtl",[`${t}-prev-icon,\n              ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n              ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},["&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel,\n        &-week-panel,\n        &-date-panel,\n        &-time-panel"]:{display:"flex",flexDirection:"column",width:W},"&-header":{display:"flex",padding:`0 ${l}px`,color:g,borderBottom:`${d}px ${h} ${m}`,"> *":{flex:"none"},button:{padding:0,color:A,lineHeight:`${b}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${y}`},"> button":{minWidth:"1.6em",fontSize:T,"&:hover":{color:w}},"&-view":{flex:"auto",fontWeight:_,lineHeight:`${b}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:p}}}},["&-prev-icon,\n        &-next-icon,\n        &-super-prev-icon,\n        &-super-next-icon"]:{position:"relative",display:"inline-block",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:v,borderBlockEndWidth:0,borderInlineStartWidth:v,borderInlineEndWidth:0,content:'""'}},["&-super-prev-icon,\n        &-super-next-icon"]:{"&::after":{position:"absolute",top:Math.ceil(o/2),insetInlineStart:Math.ceil(o/2),display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:v,borderBlockEndWidth:0,borderInlineStartWidth:v,borderInlineEndWidth:0,content:'""'}},["&-prev-icon,\n        &-super-prev-icon"]:{transform:"rotate(-45deg)"},["&-next-icon,\n        &-super-next-icon"]:{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:x,fontWeight:"normal"},th:{height:x+2*E,color:C,verticalAlign:"middle"}},"&-cell":(0,r.A)({padding:`${E}px 0`,color:S,cursor:"pointer","&-in-view":{color:C}},nr(e)),[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${n},\n        &-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:k,transition:`all ${O}`,content:'""'}},[`&-date-panel\n        ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start\n        ${n}::after`]:{insetInlineEnd:-(a-x)/2,insetInlineStart:0},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}::after`]:{insetInlineEnd:0,insetInlineStart:-(a-x)/2},[`&-range-hover${t}-range-start::after`]:{insetInlineEnd:"50%"},["&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel"]:{[`${t}-content`]:{height:4*M},[n]:{padding:`0 ${l}px`}},"&-quarter-panel":{[`${t}-content`]:{height:I}},[`&-panel ${t}-footer`]:{borderTop:`${d}px ${h} ${m}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:b-2*d+"px",textAlign:"center","&-extra":{padding:`0 ${s}`,lineHeight:b-2*d+"px",textAlign:"start","&:not(:last-child)":{borderBottom:`${d}px ${h} ${m}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:D,"&:hover":{color:R},"&:active":{color:N},[`&${t}-today-btn-disabled`]:{color:S,cursor:"not-allowed"}},"&-decade-panel":{[n]:{padding:`0 ${l/2}px`},[`${t}-cell::before`]:{display:"none"}},["&-year-panel,\n        &-quarter-panel,\n        &-month-panel"]:{[`${t}-body`]:{padding:`0 ${l}px`},[n]:{width:i},[`${t}-cell-range-hover-start::after`]:{insetInlineStart:G,borderInlineStart:`${d}px dashed ${L}`,borderStartStartRadius:B,borderBottomStartRadius:B,borderStartEndRadius:0,borderBottomEndRadius:0,[`${t}-panel-rtl &`]:{insetInlineEnd:G,borderInlineEnd:`${d}px dashed ${L}`,borderStartStartRadius:0,borderBottomStartRadius:0,borderStartEndRadius:B,borderBottomEndRadius:B}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:G,borderInlineEnd:`${d}px dashed ${L}`,borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:F,borderEndEndRadius:F,[`${t}-panel-rtl &`]:{insetInlineStart:G,borderInlineStart:`${d}px dashed ${L}`,borderStartStartRadius:F,borderEndStartRadius:F,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-week-panel":{[`${t}-body`]:{padding:`${l}px ${s}px`},[`${t}-cell`]:{[`&:hover ${n},\n            &-selected ${n},\n            ${n}`]:{background:"transparent !important"}},"&-row":{td:{transition:`background ${y}`,"&:first-child":{borderStartStartRadius:B,borderEndStartRadius:B},"&:last-child":{borderStartEndRadius:B,borderEndEndRadius:B}},"&:hover td":{background:$},["&-selected td,\n            &-selected:hover td"]:{background:p,[`&${t}-cell-week`]:{color:new Yn.q(P).setAlpha(.5).toHexString()},[`&${t}-cell-today ${n}::before`]:{borderColor:P},[n]:{color:P}}}},"&-date-panel":{[`${t}-body`]:{padding:`${l}px ${s}px`},[`${t}-content`]:{width:7*a,th:{width:a}}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${d}px ${h} ${m}`},[`${t}-date-panel,\n          ${t}-time-panel`]:{transition:`opacity ${O}`},"&-active":{[`${t}-date-panel,\n            ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:j},"&-column":{flex:"1 0 auto",width:H,margin:`${c}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${y}`,overflowX:"hidden","&::after":{display:"block",height:j-U,content:'""'},"&:not(:first-child)":{borderInlineStart:`${d}px ${h} ${m}`},"&-active":{background:new Yn.q(Q).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:z,[`${t}-time-panel-cell-inner`]:{display:"block",width:H-2*z,height:U,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(H-U)/2,color:C,lineHeight:`${U}px`,borderRadius:B,cursor:"pointer",transition:`background ${y}`,"&:hover":{background:$}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:Q}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:S,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${t}-time-panel-column:after`]:{height:j-U+2*c}}}},ir=e=>{const{componentCls:t,colorBgContainer:n,colorError:i,colorErrorOutline:o,colorWarning:a,colorWarningOutline:s}=e;return{[t]:{[`&-status-error${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:i},"&-focused, &:focus":(0,r.A)({},(0,qn.Ut)((0,Q.h1)(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:o}))),[`${t}-active-bar`]:{background:i}},[`&-status-warning${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:a},"&-focused, &:focus":(0,r.A)({},(0,qn.Ut)((0,Q.h1)(e,{inputBorderActiveColor:a,inputBorderHoverColor:a,controlOutline:s}))),[`${t}-active-bar`]:{background:a}}}}},or=e=>{const{componentCls:t,antCls:n,boxShadowPopoverArrow:i,controlHeight:o,fontSize:a,inputPaddingHorizontal:s,colorBgContainer:l,lineWidth:c,lineType:u,colorBorder:d,borderRadius:h,motionDurationMid:f,colorBgContainerDisabled:p,colorTextDisabled:g,colorTextPlaceholder:m,controlHeightLG:v,fontSizeLG:A,controlHeightSM:b,inputPaddingHorizontalSM:y,paddingXS:w,marginXS:_,colorTextDescription:x,lineWidthBold:E,lineHeight:S,colorPrimary:C,motionDurationSlow:T,zIndexPopup:k,paddingXXS:O,paddingSM:M,pickerTextHeight:I,controlItemBgActive:D,colorPrimaryBorder:N,sizePopupArrow:R,borderRadiusXS:L,borderRadiusOuter:B,colorBgElevated:P,borderRadiusLG:F,boxShadowSecondary:$,borderRadiusSM:j,colorSplit:H,controlItemBgHover:U,presetsWidth:Q,presetsMaxWidth:z}=e;return[{[t]:(0,r.A)((0,r.A)((0,r.A)({},(0,W.dF)(e)),tr(e,o,a,s)),{position:"relative",display:"inline-flex",alignItems:"center",background:l,lineHeight:1,border:`${c}px ${u} ${d}`,borderRadius:h,transition:`border ${f}, box-shadow ${f}`,"&:hover, &-focused":(0,r.A)({},(0,qn.Q)(e)),"&-focused":(0,r.A)({},(0,qn.Ut)(e)),[`&${t}-disabled`]:{background:p,borderColor:d,cursor:"not-allowed",[`${t}-suffix`]:{color:g}},[`&${t}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":(0,r.A)((0,r.A)({},(0,qn.wj)(e)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${t}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:m}}},"&-large":(0,r.A)((0,r.A)({},tr(e,v,A,s)),{[`${t}-input > input`]:{fontSize:A}}),"&-small":(0,r.A)({},tr(e,b,a,y)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:w/2,color:g,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:_}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:g,lineHeight:1,background:l,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top"},"&:hover":{color:x}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:A,color:g,fontSize:A,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:x},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-clear`]:{insetInlineEnd:s},"&:hover":{[`${t}-clear`]:{opacity:1}},[`${t}-active-bar`]:{bottom:-c,height:E,marginInlineStart:s,background:C,opacity:0,transition:`all ${T} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${w}px`,lineHeight:1},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:y},[`${t}-active-bar`]:{marginInlineStart:y}}},"&-dropdown":(0,r.A)((0,r.A)((0,r.A)({},(0,W.dF)(e)),rr(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:k,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,\n          &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,\n          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,\n          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Xn.nP},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,\n          &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,\n          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,\n          &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Xn.ox},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,\n          &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Xn.YU},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,\n          &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Xn.vR},[`${t}-panel > ${t}-time-panel`]:{paddingTop:O},[`${t}-ranges`]:{marginBottom:0,padding:`${O}px ${M}px`,overflow:"hidden",lineHeight:I-2*c-w/2+"px",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${t}-preset > ${n}-tag-blue`]:{color:C,background:D,borderColor:N,cursor:"pointer"},[`${t}-ok`]:{marginInlineStart:"auto"}},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:(0,r.A)({position:"absolute",zIndex:1,display:"none",marginInlineStart:1.5*s,transition:`left ${T} ease-out`},(0,Zn.d)(R,L,B,P,i)),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:P,borderRadius:F,boxShadow:$,transition:`margin ${T}`,[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:Q,maxWidth:z,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:w,borderInlineEnd:`${c}px ${u} ${H}`,li:(0,r.A)((0,r.A)({},W.L9),{borderRadius:j,paddingInline:w,paddingBlock:(b-Math.round(a*S))/2,cursor:"pointer",transition:`all ${T}`,"+ li":{marginTop:_},"&:hover":{background:U}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${t}-panel`]:{borderWidth:`0 0 ${c}px`},"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content,\n            table`]:{textAlign:"center"},"&-focused":{borderColor:d}}}}),"&-dropdown-range":{padding:2*R/3+"px 0","&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,Xn._j)(e,"slide-up"),(0,Xn._j)(e,"slide-down"),(0,Jn.Mh)(e,"move-up"),(0,Jn.Mh)(e,"move-down")]},ar=e=>{const t=28,{componentCls:n,controlHeightLG:r,controlHeightSM:i,colorPrimary:o,paddingXXS:a}=e;return{pickerCellCls:`${n}-cell`,pickerCellInnerCls:`${n}-cell-inner`,pickerTextHeight:r,pickerPanelCellWidth:1.5*i,pickerPanelCellHeight:i,pickerDateHoverRangeBorderColor:new Yn.q(o).lighten(20).toHexString(),pickerBasicCellHoverWithRangeColor:new Yn.q(o).lighten(35).toHexString(),pickerPanelWithoutTimeCellHeight:1.65*r,pickerYearMonthCellWidth:1.5*r,pickerTimePanelColumnHeight:8*t,pickerTimePanelColumnWidth:1.4*r,pickerTimePanelCellHeight:t,pickerQuarterPanelContentHeight:1.4*r,pickerCellPaddingVertical:a,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5}};var sr=(0,U.A)("DatePicker",e=>{const t=(0,Q.h1)((0,qn.C5)(e),ar(e));return[or(t),ir(t),(0,er.G)(e,{focusElCls:`${e.componentCls}-focused`})]},e=>({presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})),lr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function cr(e,t){function n(n,i){const o=(0,r.A)((0,r.A)((0,r.A)({},Qn()),zn()),t);return(0,M.pM)({compatConfig:{MODE:3},name:i,inheritAttrs:!1,props:o,slots:Object,setup(t,i){let{slots:o,expose:a,attrs:s,emit:l}=i;const c=t,u=(0,Gn.db)(),d=Gn.$W.useInject();const{prefixCls:h,direction:f,getPopupContainer:p,size:g,rootPrefixCls:m,disabled:v}=(0,H.A)("picker",c),{compactSize:A,compactItemClassnames:b}=(0,Kn.RQ)(h,f),y=(0,M.EW)(()=>A.value||g.value),[w,_]=sr(h),x=(0,R.KR)();a({focus:()=>{var e;null===(e=x.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=x.value)||void 0===e||e.blur()}});const E=t=>c.valueFormat?e.toString(t,c.valueFormat):t,S=(e,t)=>{const n=E(e);l("update:value",n),l("change",n,t),u.onFieldChange()},C=e=>{l("update:open",e),l("openChange",e)},T=e=>{l("focus",e)},k=e=>{l("blur",e),u.onFieldBlur()},I=(e,t)=>{const n=E(e);l("panelChange",n,t)},D=e=>{const t=E(e);l("ok",t)},[N]=(0,Un.n)("DatePicker",Fn.A),B=(0,M.EW)(()=>c.value?c.valueFormat?e.toDate(c.value,c.valueFormat):c.value:""===c.value?void 0:c.value),P=(0,M.EW)(()=>c.defaultValue?c.valueFormat?e.toDate(c.defaultValue,c.valueFormat):c.defaultValue:""===c.defaultValue?void 0:c.defaultValue),F=(0,M.EW)(()=>c.defaultPickerValue?c.valueFormat?e.toDate(c.defaultPickerValue,c.valueFormat):c.defaultPickerValue:""===c.defaultPickerValue?void 0:c.defaultPickerValue);return()=>{var t,i,a,l,g,A;const E=(0,r.A)((0,r.A)({},N.value),c.locale),R=(0,r.A)((0,r.A)({},c),s),{bordered:$=!0,placeholder:j,suffixIcon:H=(null===(t=o.suffixIcon)||void 0===t?void 0:t.call(o)),showToday:U=!0,transitionName:Q,allowClear:z=!0,dateRender:W=o.dateRender,renderExtraFooter:G=o.renderExtraFooter,monthCellRender:V=o.monthCellRender||c.monthCellContentRender||o.monthCellContentRender,clearIcon:K=(null===(i=o.clearIcon)||void 0===i?void 0:i.call(o)),id:Y=u.id.value}=R,q=lr(R,["bordered","placeholder","suffixIcon","showToday","transitionName","allowClear","dateRender","renderExtraFooter","monthCellRender","clearIcon","id"]),X=""===R.showTime||R.showTime,{format:J}=R;let Z={};n&&(Z.picker=n);const ee=n||R.picker||"date";Z=(0,r.A)((0,r.A)((0,r.A)({},Z),X?Qr((0,r.A)({format:J,picker:ee},"object"===typeof X?X:{})):{}),"time"===ee?Qr((0,r.A)((0,r.A)({format:J},q),{picker:ee})):{});const te=h.value,ne=(0,M.bF)(M.FK,null,[H||("time"===n?(0,M.bF)(oe.A,null,null):(0,M.bF)(ie.A,null,null)),d.hasFeedback&&d.feedbackIcon]);return w((0,M.bF)(Pn,(0,O.A)((0,O.A)((0,O.A)({monthCellRender:V,dateRender:W,renderExtraFooter:G,ref:x,placeholder:$n(E,ee,j),suffixIcon:ne,dropdownAlign:Hn(f.value,c.placement),clearIcon:K||(0,M.bF)(ae.A,null,null),allowClear:z,transitionName:Q||`${m.value}-slide-up`},q),Z),{},{id:Y,picker:ee,value:B.value,defaultValue:P.value,defaultPickerValue:F.value,showToday:U,locale:E.lang,class:(0,L.A)({[`${te}-${y.value}`]:y.value,[`${te}-borderless`]:!$},(0,Vn.L)(te,(0,Vn.v)(d.status,c.status),d.hasFeedback),s.class,_.value,b.value),disabled:v.value,prefixCls:te,getPopupContainer:s.getCalendarContainer||p.value,generateConfig:e,prevIcon:(null===(a=o.prevIcon)||void 0===a?void 0:a.call(o))||(0,M.bF)("span",{class:`${te}-prev-icon`},null),nextIcon:(null===(l=o.nextIcon)||void 0===l?void 0:l.call(o))||(0,M.bF)("span",{class:`${te}-next-icon`},null),superPrevIcon:(null===(g=o.superPrevIcon)||void 0===g?void 0:g.call(o))||(0,M.bF)("span",{class:`${te}-super-prev-icon`},null),superNextIcon:(null===(A=o.superNextIcon)||void 0===A?void 0:A.call(o))||(0,M.bF)("span",{class:`${te}-super-next-icon`},null),components:Hr,direction:f.value,dropdownClassName:(0,L.A)(_.value,c.popupClassName,c.dropdownClassName),onChange:S,onOpenChange:C,onFocus:T,onBlur:k,onPanelChange:I,onOk:D}),null))}}})}const i=n(void 0,"ADatePicker"),o=n("week","AWeekPicker"),a=n("month","AMonthPicker"),s=n("year","AYearPicker"),l=n("time","TimePicker"),c=n("quarter","AQuarterPicker");return{DatePicker:i,WeekPicker:o,MonthPicker:a,YearPicker:s,TimePicker:l,QuarterPicker:c}}var ur={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},dr=ur,hr=n(4827);function fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){pr(e,t,n[t])})}return e}function pr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gr=function(e,t){var n=fr({},e,t.attrs);return(0,M.bF)(hr.A,fr({},n,{icon:dr}),null)};gr.displayName="SwapRightOutlined",gr.inheritAttrs=!1;var mr=gr;function vr(e,t){let{picker:n,locale:r,selectedValue:i,disabledDate:o,disabled:a,generateConfig:s}=e;const l=(0,M.EW)(()=>bt(i.value,0)),c=(0,M.EW)(()=>bt(i.value,1));function u(e){return s.value.locale.getWeekFirstDate(r.value.locale,e)}function d(e){const t=s.value.getYear(e),n=s.value.getMonth(e);return 100*t+n}function h(e){const t=s.value.getYear(e),n=Ze(s.value,e);return 10*t+n}const f=e=>{var r;if(o&&(null===(r=null===o||void 0===o?void 0:o.value)||void 0===r?void 0:r.call(o,e)))return!0;if(a[1]&&c)return!nt(s.value,e,c.value)&&s.value.isAfter(e,c.value);if(t.value[1]&&c.value)switch(n.value){case"quarter":return h(e)>h(c.value);case"month":return d(e)>d(c.value);case"week":return u(e)>u(c.value);default:return!nt(s.value,e,c.value)&&s.value.isAfter(e,c.value)}return!1},p=e=>{var r;if(null===(r=o.value)||void 0===r?void 0:r.call(o,e))return!0;if(a[0]&&l)return!nt(s.value,e,c.value)&&s.value.isAfter(l.value,e);if(t.value[0]&&l.value)switch(n.value){case"quarter":return h(e)<h(l.value);case"month":return d(e)<d(l.value);case"week":return u(e)<u(l.value);default:return!nt(s.value,e,l.value)&&s.value.isAfter(l.value,e)}return!1};return[f,p]}function Ar(e,t,n,r){const i=lt(e,n,r,1);function o(n){return n(e,t)?"same":n(i,t)?"closing":"far"}switch(n){case"year":return o((e,t)=>Xe(r,e,t));case"quarter":case"month":return o((e,t)=>Je(r,e,t));default:return o((e,t)=>tt(r,e,t))}}function br(e,t,n,r){const i=bt(e,0),o=bt(e,1);if(0===t)return i;if(i&&o){const e=Ar(i,o,n,r);switch(e){case"same":return i;case"closing":return i;default:return lt(o,n,r,-1)}}return i}function yr(e){let{values:t,picker:n,defaultDates:r,generateConfig:i}=e;const o=(0,R.KR)([bt(r,0),bt(r,1)]),a=(0,R.KR)(null),s=(0,M.EW)(()=>bt(t.value,0)),l=(0,M.EW)(()=>bt(t.value,1)),c=e=>o.value[e]?o.value[e]:bt(a.value,e)||br(t.value,e,n.value,i.value)||s.value||l.value||i.value.getNow(),u=(0,R.KR)(null),d=(0,R.KR)(null);function h(e,n){if(e){let r=yt(a.value,e,n);o.value=yt(o.value,null,n)||[null,null];const i=(n+1)%2;bt(t.value,i)||(r=yt(r,e,i)),a.value=r}else(s.value||l.value)&&(a.value=null)}return(0,M.nT)(()=>{u.value=c(0),d.value=c(1)}),[u,d,h]}var wr,_r=n(83823);n(18237);function xr(e){return!!(0,R.o5)()&&((0,R.jr)(e),!0)}function Er(e){return"function"===typeof e?e():(0,R.R1)(e)}function Sr(e){var t;const n=Er(e);return null!==(t=null===n||void 0===n?void 0:n.$el)&&void 0!==t?t:n}function Cr(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];(0,M.nI)()?(0,M.sV)(e):t?e():(0,M.dY)(e)}function Tr(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=(0,R.IJ)(),r=()=>n.value=Boolean(e());return r(),Cr(r,t),n}const kr="undefined"!==typeof window,Or=(Object.prototype.toString,kr&&(null===(wr=null===window||void 0===window?void 0:window.navigator)||void 0===wr?void 0:wr.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent),kr?window:void 0);kr&&window.document,kr&&window.navigator,kr&&window.location;var Mr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Ir(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{window:r=Or}=n,i=Mr(n,["window"]);let o;const a=Tr(()=>r&&"ResizeObserver"in r),s=()=>{o&&(o.disconnect(),o=void 0)},l=(0,M.wB)(()=>Sr(e),e=>{s(),a.value&&r&&e&&(o=new ResizeObserver(t),o.observe(e,i))},{immediate:!0,flush:"post"}),c=()=>{s(),l()};return xr(c),{isSupported:a,stop:c}}function Dr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{width:0,height:0},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{box:r="content-box"}=n,i=(0,R.IJ)(t.width),o=(0,R.IJ)(t.height);return Ir(e,e=>{let[t]=e;const n="border-box"===r?t.borderBoxSize:"content-box"===r?t.contentBoxSize:t.devicePixelContentBoxSize;n?(i.value=n.reduce((e,t)=>{let{inlineSize:n}=t;return e+n},0),o.value=n.reduce((e,t)=>{let{blockSize:n}=t;return e+n},0)):(i.value=t.contentRect.width,o.value=t.contentRect.height)},n),(0,M.wB)(()=>Sr(e),e=>{i.value=e?t.width:0,o.value=e?t.height:0}),{width:i,height:o}}function Nr(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function Rr(e,t,n,r){return!!e||(!(!r||!r[t])||!!n[(t+1)%2])}function Lr(){return(0,M.pM)({name:"RangerPicker",inheritAttrs:!1,props:["prefixCls","id","popupStyle","dropdownClassName","transitionName","dropdownAlign","getPopupContainer","generateConfig","locale","placeholder","autofocus","disabled","format","picker","showTime","showNow","showHour","showMinute","showSecond","use12Hours","separator","value","defaultValue","defaultPickerValue","open","defaultOpen","disabledDate","disabledTime","dateRender","panelRender","ranges","allowEmpty","allowClear","suffixIcon","clearIcon","pickerRef","inputReadOnly","mode","renderExtraFooter","onChange","onOpenChange","onPanelChange","onCalendarChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onClick","onOk","onKeydown","components","order","direction","activePickerIndex","autocomplete","minuteStep","hourStep","secondStep","hideDisabledOptions","disabledMinutes","presets","prevIcon","nextIcon","superPrevIcon","superNextIcon"],setup(e,t){let{attrs:n,expose:i}=t;const o=(0,M.EW)(()=>"date"===e.picker&&!!e.showTime||"time"===e.picker),a=(0,M.EW)(()=>e.presets),s=(0,M.EW)(()=>e.ranges),l=Rn(a,s),c=(0,R.KR)({}),u=(0,R.KR)(null),d=(0,R.KR)(null),h=(0,R.KR)(null),f=(0,R.KR)(null),p=(0,R.KR)(null),g=(0,R.KR)(null),m=(0,R.KR)(null),v=(0,R.KR)(null);const A=(0,M.EW)(()=>vt(Ne(e.format,e.picker,e.showTime,e.use12Hours))),[b,w]=(0,bn.A)(0,{value:(0,R.lW)(e,"activePickerIndex")}),_=(0,R.KR)(null),x=(0,M.EW)(()=>{const{disabled:t}=e;return Array.isArray(t)?t:[t||!1,t||!1]}),[E,S]=(0,bn.A)(null,{value:(0,R.lW)(e,"value"),defaultValue:e.defaultValue,postState:t=>"time"!==e.picker||e.order?Nr(t,e.generateConfig):t}),[C,T,k]=yr({values:E,picker:(0,R.lW)(e,"picker"),defaultDates:e.defaultPickerValue,generateConfig:(0,R.lW)(e,"generateConfig")}),[I,D]=(0,bn.A)(E.value,{postState:t=>{let n=t;if(x.value[0]&&x.value[1])return n;for(let r=0;r<2;r+=1)!x.value[r]||bt(n,r)||bt(e.allowEmpty,r)||(n=yt(n,e.generateConfig.getNow(),r));return n}}),[N,B]=(0,bn.A)([e.picker,e.picker],{value:(0,R.lW)(e,"mode")});(0,M.wB)(()=>e.picker,()=>{B([e.picker,e.picker])});const P=(t,n)=>{var r;B(t),null===(r=e.onPanelChange)||void 0===r||r.call(e,n,t)},[F,$]=vr({picker:(0,R.lW)(e,"picker"),selectedValue:I,locale:(0,R.lW)(e,"locale"),disabled:x,disabledDate:(0,R.lW)(e,"disabledDate"),generateConfig:(0,R.lW)(e,"generateConfig")},c),[j,H]=(0,bn.A)(!1,{value:(0,R.lW)(e,"open"),defaultValue:e.defaultOpen,postState:e=>!x.value[b.value]&&e,onChange:t=>{var n;null===(n=e.onOpenChange)||void 0===n||n.call(e,t),!t&&_.value&&_.value.onClose&&_.value.onClose()}}),U=(0,M.EW)(()=>j.value&&0===b.value),Q=(0,M.EW)(()=>j.value&&1===b.value),z=(0,R.KR)(0),W=(0,R.KR)(0),G=(0,R.KR)(0),{width:V}=Dr(u);(0,M.wB)([j,V],()=>{!j.value&&u.value&&(G.value=V.value)});const{width:K}=Dr(d),{width:Y}=Dr(v),{width:q}=Dr(h),{width:X}=Dr(p);(0,M.wB)([b,j,K,Y,q,X,()=>e.direction],()=>{W.value=0,b.value?h.value&&p.value&&(W.value=q.value+X.value,K.value&&Y.value&&W.value>K.value-Y.value-("rtl"===e.direction||v.value.offsetLeft>W.value?0:v.value.offsetLeft)&&(z.value=W.value)):0===b.value&&(z.value=0)},{immediate:!0});const J=(0,R.KR)();function Z(e,t){if(e)clearTimeout(J.value),c.value[t]=!0,w(t),H(e),j.value||k(null,t);else if(b.value===t){H(e);const t=c.value;J.value=setTimeout(()=>{t===c.value&&(c.value={})})}}function ee(e){Z(!0,e),setTimeout(()=>{const t=[g,m][e];t.value&&t.value.focus()},0)}function te(t,n){let r=t,i=bt(r,0),o=bt(r,1);const{generateConfig:a,locale:s,picker:l,order:u,onCalendarChange:d,allowEmpty:h,onChange:f,showTime:p}=e;i&&o&&a.isAfter(i,o)&&("week"===l&&!it(a,s.locale,i,o)||"quarter"===l&&!et(a,i,o)||"week"!==l&&"quarter"!==l&&"time"!==l&&!(p?ot(a,i,o):nt(a,i,o))?(0===n?(r=[i,null],o=null):(i=null,r=[null,o]),c.value={[n]:!0}):"time"===l&&!1===u||(r=Nr(r,a))),D(r);const g=r&&r[0]?ct(r[0],{generateConfig:a,locale:s,format:A.value[0]}):"",m=r&&r[1]?ct(r[1],{generateConfig:a,locale:s,format:A.value[0]}):"";if(d){const e={range:0===n?"start":"end"};d(r,[g,m],e)}const v=Rr(i,0,x.value,h),y=Rr(o,1,x.value,h),w=null===r||v&&y;w&&(S(r),!f||ot(a,bt(E.value,0),i)&&ot(a,bt(E.value,1),o)||f(r,[g,m]));let _=null;0!==n||x.value[1]?1!==n||x.value[0]||(_=0):_=1,null===_||_===b.value||c.value[_]&&bt(r,_)||!bt(r,n)?Z(!1,n):ee(_)}const ne=e=>j&&_.value&&_.value.onKeydown?_.value.onKeydown(e):((0,y.$e)(!1,"Picker not correct forward Keydown operation. Please help to fire issue about this."),!1),re={formatList:A,generateConfig:(0,R.lW)(e,"generateConfig"),locale:(0,R.lW)(e,"locale")},[ie,oe]=Dn((0,M.EW)(()=>bt(I.value,0)),re),[ae,se]=Dn((0,M.EW)(()=>bt(I.value,1)),re),le=(t,n)=>{const r=ut(t,{locale:e.locale,formatList:A.value,generateConfig:e.generateConfig}),i=0===n?F:$;r&&!i(r)&&(D(yt(I.value,r,n)),k(r,n))},[ue,de,he]=On({valueTexts:ie,onTextChange:e=>le(e,0)}),[fe,pe,ge]=On({valueTexts:ae,onTextChange:e=>le(e,1)}),[me,ve]=(0,_r.A)(null),[Ae,be]=(0,_r.A)(null),[ye,we,_e]=Nn(ue,re),[xe,Ee,Se]=Nn(fe,re),Ce=e=>{be(yt(I.value,e,b.value)),0===b.value?we(e):Ee(e)},Te=()=>{be(yt(I.value,null,b.value)),0===b.value?_e():Se()},ke=(t,n)=>({forwardKeydown:ne,onBlur:t=>{var n;null===(n=e.onBlur)||void 0===n||n.call(e,t)},isClickOutside:e=>!ze([d.value,h.value,f.value,u.value],e),onFocus:n=>{var r;w(t),null===(r=e.onFocus)||void 0===r||r.call(e,n)},triggerOpen:e=>{Z(e,t)},onSubmit:()=>{if(!I.value||e.disabledDate&&e.disabledDate(I.value[t]))return!1;te(I.value,t),n()},onCancel:()=>{Z(!1,t),D(E.value),n()}}),[Oe,{focused:Me,typing:Ie}]=kn((0,r.A)((0,r.A)({},ke(0,he)),{blurToCancel:o,open:U,value:ue,onKeydown:(t,n)=>{var r;null===(r=e.onKeydown)||void 0===r||r.call(e,t,n)}})),[De,{focused:Le,typing:Be}]=kn((0,r.A)((0,r.A)({},ke(1,ge)),{blurToCancel:o,open:Q,value:fe,onKeydown:(t,n)=>{var r;null===(r=e.onKeydown)||void 0===r||r.call(e,t,n)}})),Pe=t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),j.value||g.value.contains(t.target)||m.value.contains(t.target)||(x.value[0]?x.value[1]||ee(1):ee(0))},Fe=t=>{var n;null===(n=e.onMousedown)||void 0===n||n.call(e,t),!j.value||!Me.value&&!Le.value||g.value.contains(t.target)||m.value.contains(t.target)||t.preventDefault()},$e=(0,M.EW)(()=>{var t;return(null===(t=E.value)||void 0===t?void 0:t[0])?ct(E.value[0],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""}),je=(0,M.EW)(()=>{var t;return(null===(t=E.value)||void 0===t?void 0:t[1])?ct(E.value[1],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""});(0,M.wB)([j,ie,ae],()=>{j.value||(D(E.value),ie.value.length&&""!==ie.value[0]?oe.value!==ue.value&&he():de(""),ae.value.length&&""!==ae.value[0]?se.value!==fe.value&&ge():pe(""))}),(0,M.wB)([$e,je],()=>{D(E.value)}),i({focus:()=>{g.value&&g.value.focus()},blur:()=>{g.value&&g.value.blur(),m.value&&m.value.blur()}});const He=(0,M.EW)(()=>j.value&&Ae.value&&Ae.value[0]&&Ae.value[1]&&e.generateConfig.isAfter(Ae.value[1],Ae.value[0])?Ae.value:null);function Ue(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{generateConfig:i,showTime:o,dateRender:a,direction:s,disabledTime:l,prefixCls:c,locale:u}=e;let d=o;if(o&&"object"===typeof o&&o.defaultValue){const e=o.defaultValue;d=(0,r.A)((0,r.A)({},o),{defaultValue:bt(e,b.value)||void 0})}let h=null;return a&&(h=e=>{let{current:t,today:n}=e;return a({current:t,today:n,info:{range:b.value?"end":"start"}})}),(0,M.bF)(Dt,{value:{inRange:!0,panelPosition:t,rangedValue:me.value||I.value,hoverRangedValue:He.value}},{default:()=>[(0,M.bF)(_n,(0,O.A)((0,O.A)((0,O.A)({},e),n),{},{dateRender:h,showTime:d,mode:N.value[b.value],generateConfig:i,style:void 0,direction:s,disabledDate:0===b.value?F:$,disabledTime:e=>!!l&&l(e,0===b.value?"start":"end"),class:(0,L.A)({[`${c}-panel-focused`]:0===b.value?!Ie.value:!Be.value}),value:bt(I.value,b.value),locale:u,tabIndex:-1,onPanelChange:(e,n)=>{0===b.value&&_e(!0),1===b.value&&Se(!0),P(yt(N.value,n,b.value),yt(I.value,e,b.value));let r=e;"right"===t&&N.value[b.value]===n&&(r=lt(r,n,i,-1)),k(r,b.value)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:0===b.value?bt(I.value,1):bt(I.value,0)}),null)]})}const Qe=(e,t)=>{const n=yt(I.value,e,b.value);"submit"===t||"key"!==t&&!o.value?(te(n,b.value),0===b.value?_e():Se()):D(n)};return ce({operationRef:_,hideHeader:(0,M.EW)(()=>"time"===e.picker),onDateMouseenter:Ce,onDateMouseleave:Te,hideRanges:(0,M.EW)(()=>!0),onSelect:Qe,open:j}),()=>{const{prefixCls:t="rc-picker",id:i,popupStyle:a,dropdownClassName:s,transitionName:c,dropdownAlign:y,getPopupContainer:w,generateConfig:_,locale:S,placeholder:D,autofocus:R,picker:B="date",showTime:P,separator:F="~",disabledDate:$,panelRender:H,allowClear:U,suffixIcon:Q,clearIcon:V,inputReadOnly:K,renderExtraFooter:Y,onMouseenter:q,onMouseleave:X,onMouseup:J,onOk:ee,components:ne,direction:re,autocomplete:ie="off"}=e,oe="rtl"===re?{right:`${W.value}px`}:{left:`${W.value}px`};function ae(){let e;const n=vn(t,N.value[b.value],Y),r=An({prefixCls:t,components:ne,needConfirmButton:o.value,okDisabled:!bt(I.value,b.value)||$&&$(I.value[b.value]),locale:S,onOk:()=>{bt(I.value,b.value)&&(te(I.value,b.value),ee&&ee(I.value))}});if("time"===B||P)e=Ue();else{const t=0===b.value?C.value:T.value,n=lt(t,B,_),r=N.value[b.value],i=r===B,o=Ue(!!i&&"left",{pickerValue:t,onPickerValueChange:e=>{k(e,b.value)}}),a=Ue("right",{pickerValue:n,onPickerValueChange:e=>{k(lt(e,B,_,-1),b.value)}});e="rtl"===re?(0,M.bF)(M.FK,null,[a,i&&o]):(0,M.bF)(M.FK,null,[o,i&&a])}let i=(0,M.bF)("div",{class:`${t}-panel-layout`},[(0,M.bF)(Tn,{prefixCls:t,presets:l.value,onClick:e=>{te(e,null),Z(!1,b.value)},onHover:e=>{ve(e)}},null),(0,M.bF)("div",null,[(0,M.bF)("div",{class:`${t}-panels`},[e]),(n||r)&&(0,M.bF)("div",{class:`${t}-footer`},[n,r])])]);return H&&(i=H(i)),(0,M.bF)("div",{class:`${t}-panel-container`,style:{marginLeft:`${z.value}px`},ref:d,onMousedown:e=>{e.preventDefault()}},[i])}const se=(0,M.bF)("div",{class:(0,L.A)(`${t}-range-wrapper`,`${t}-${B}-range-wrapper`),style:{minWidth:`${G.value}px`}},[(0,M.bF)("div",{ref:v,class:`${t}-range-arrow`,style:oe},null),ae()]);let le,ce;Q&&(le=(0,M.bF)("span",{class:`${t}-suffix`},[Q])),U&&(bt(E.value,0)&&!x.value[0]||bt(E.value,1)&&!x.value[1])&&(ce=(0,M.bF)("span",{onMousedown:e=>{e.preventDefault(),e.stopPropagation()},onMouseup:e=>{e.preventDefault(),e.stopPropagation();let t=E.value;x.value[0]||(t=yt(t,null,0)),x.value[1]||(t=yt(t,null,1)),te(t,null),Z(!1,b.value)},class:`${t}-clear`},[V||(0,M.bF)("span",{class:`${t}-clear-btn`},null)]));const he={size:Re(B,A.value[0],_)};let ge=0,me=0;h.value&&f.value&&p.value&&(0===b.value?me=h.value.offsetWidth:(ge=W.value,me=f.value.offsetWidth));const Ae="rtl"===re?{right:`${ge}px`}:{left:`${ge}px`};return(0,M.bF)("div",(0,O.A)({ref:u,class:(0,L.A)(t,`${t}-range`,n.class,{[`${t}-disabled`]:x.value[0]&&x.value[1],[`${t}-focused`]:0===b.value?Me.value:Le.value,[`${t}-rtl`]:"rtl"===re}),style:n.style,onClick:Pe,onMouseenter:q,onMouseleave:X,onMousedown:Fe,onMouseup:J},At(e)),[(0,M.bF)("div",{class:(0,L.A)(`${t}-input`,{[`${t}-input-active`]:0===b.value,[`${t}-input-placeholder`]:!!ye.value}),ref:h},[(0,M.bF)("input",(0,O.A)((0,O.A)((0,O.A)({id:i,disabled:x.value[0],readonly:K||"function"===typeof A.value[0]||!Ie.value,value:ye.value||ue.value,onInput:e=>{de(e.target.value)},autofocus:R,placeholder:bt(D,0)||"",ref:g},Oe.value),he),{},{autocomplete:ie}),null)]),(0,M.bF)("div",{class:`${t}-range-separator`,ref:p},[F]),(0,M.bF)("div",{class:(0,L.A)(`${t}-input`,{[`${t}-input-active`]:1===b.value,[`${t}-input-placeholder`]:!!xe.value}),ref:f},[(0,M.bF)("input",(0,O.A)((0,O.A)((0,O.A)({disabled:x.value[1],readonly:K||"function"===typeof A.value[0]||!Be.value,value:xe.value||fe.value,onInput:e=>{pe(e.target.value)},placeholder:bt(D,1)||"",ref:m},De.value),he),{},{autocomplete:ie}),null)]),(0,M.bF)("div",{class:`${t}-active-bar`,style:(0,r.A)((0,r.A)({},Ae),{width:`${me}px`,position:"absolute"})},null),le,ce,(0,M.bF)(Cn,{visible:j.value,popupStyle:a,prefixCls:t,dropdownClassName:s,dropdownAlign:y,getPopupContainer:w,transitionName:c,range:!0,direction:re},{default:()=>[(0,M.bF)("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>se})])}}})}const Br=Lr();var Pr=Br,Fr=n(55107),$r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function jr(e,t){const n=(0,M.pM)({compatConfig:{MODE:3},name:"ARangePicker",inheritAttrs:!1,props:(0,r.A)((0,r.A)((0,r.A)({},Qn()),Wn()),t),slots:Object,setup(t,n){let{expose:i,slots:o,attrs:a,emit:s}=n;const l=t,c=(0,Gn.db)(),u=Gn.$W.useInject();const{prefixCls:d,direction:h,getPopupContainer:f,size:p,rootPrefixCls:g,disabled:m}=(0,H.A)("picker",l),{compactSize:v,compactItemClassnames:A}=(0,Kn.RQ)(d,h),b=(0,M.EW)(()=>v.value||p.value),[y,w]=sr(d),_=(0,R.KR)();i({focus:()=>{var e;null===(e=_.value)||void 0===e||e.focus()},blur:()=>{var e;null===(e=_.value)||void 0===e||e.blur()}});const x=t=>l.valueFormat?e.toString(t,l.valueFormat):t,E=(e,t)=>{const n=x(e);s("update:value",n),s("change",n,t),c.onFieldChange()},S=e=>{s("update:open",e),s("openChange",e)},C=e=>{s("focus",e)},T=e=>{s("blur",e),c.onFieldBlur()},k=(e,t)=>{const n=x(e);s("panelChange",n,t)},I=e=>{const t=x(e);s("ok",t)},D=(e,t,n)=>{const r=x(e);s("calendarChange",r,t,n)},[N]=(0,Un.n)("DatePicker",Fn.A),B=(0,M.EW)(()=>l.value&&l.valueFormat?e.toDate(l.value,l.valueFormat):l.value),P=(0,M.EW)(()=>l.defaultValue&&l.valueFormat?e.toDate(l.defaultValue,l.valueFormat):l.defaultValue),F=(0,M.EW)(()=>l.defaultPickerValue&&l.valueFormat?e.toDate(l.defaultPickerValue,l.valueFormat):l.defaultPickerValue);return()=>{var t,n,i,s,p,v,x;const R=(0,r.A)((0,r.A)({},N.value),l.locale),$=(0,r.A)((0,r.A)({},l),a),{prefixCls:j,bordered:H=!0,placeholder:U,suffixIcon:Q=(null===(t=o.suffixIcon)||void 0===t?void 0:t.call(o)),picker:z="date",transitionName:W,allowClear:G=!0,dateRender:V=o.dateRender,renderExtraFooter:K=o.renderExtraFooter,separator:Y=(null===(n=o.separator)||void 0===n?void 0:n.call(o)),clearIcon:q=(null===(i=o.clearIcon)||void 0===i?void 0:i.call(o)),id:X=c.id.value}=$,J=$r($,["prefixCls","bordered","placeholder","suffixIcon","picker","transitionName","allowClear","dateRender","renderExtraFooter","separator","clearIcon","id"]);delete J["onUpdate:value"],delete J["onUpdate:open"];const{format:Z,showTime:ee}=$;let te={};te=(0,r.A)((0,r.A)((0,r.A)({},te),ee?Qr((0,r.A)({format:Z,picker:z},ee)):{}),"time"===z?Qr((0,r.A)((0,r.A)({format:Z},(0,Fr.A)(J,["disabledTime"])),{picker:z})):{});const ne=d.value,re=(0,M.bF)(M.FK,null,[Q||("time"===z?(0,M.bF)(oe.A,null,null):(0,M.bF)(ie.A,null,null)),u.hasFeedback&&u.feedbackIcon]);return y((0,M.bF)(Pr,(0,O.A)((0,O.A)((0,O.A)({dateRender:V,renderExtraFooter:K,separator:Y||(0,M.bF)("span",{"aria-label":"to",class:`${ne}-separator`},[(0,M.bF)(mr,null,null)]),ref:_,dropdownAlign:Hn(h.value,l.placement),placeholder:jn(R,z,U),suffixIcon:re,clearIcon:q||(0,M.bF)(ae.A,null,null),allowClear:G,transitionName:W||`${g.value}-slide-up`},J),te),{},{disabled:m.value,id:X,value:B.value,defaultValue:P.value,defaultPickerValue:F.value,picker:z,class:(0,L.A)({[`${ne}-${b.value}`]:b.value,[`${ne}-borderless`]:!H},(0,Vn.L)(ne,(0,Vn.v)(u.status,l.status),u.hasFeedback),a.class,w.value,A.value),locale:R.lang,prefixCls:ne,getPopupContainer:a.getCalendarContainer||f.value,generateConfig:e,prevIcon:(null===(s=o.prevIcon)||void 0===s?void 0:s.call(o))||(0,M.bF)("span",{class:`${ne}-prev-icon`},null),nextIcon:(null===(p=o.nextIcon)||void 0===p?void 0:p.call(o))||(0,M.bF)("span",{class:`${ne}-next-icon`},null),superPrevIcon:(null===(v=o.superPrevIcon)||void 0===v?void 0:v.call(o))||(0,M.bF)("span",{class:`${ne}-super-prev-icon`},null),superNextIcon:(null===(x=o.superNextIcon)||void 0===x?void 0:x.call(o))||(0,M.bF)("span",{class:`${ne}-super-next-icon`},null),components:Hr,direction:h.value,dropdownClassName:(0,L.A)(w.value,l.popupClassName,l.dropdownClassName),onChange:E,onOpenChange:S,onFocus:C,onBlur:T,onPanelChange:k,onOk:I,onCalendarChange:D}),null))}}});return n}const Hr={button:N,rangeItem:re};function Ur(e){return e?Array.isArray(e)?e:[e]:[]}function Qr(e){const{format:t,picker:n,showHour:i,showMinute:o,showSecond:a,use12Hours:s}=e,l=Ur(t)[0],c=(0,r.A)({},e);return l&&"string"===typeof l&&(l.includes("s")||void 0!==a||(c.showSecond=!1),l.includes("m")||void 0!==o||(c.showMinute=!1),l.includes("H")||l.includes("h")||void 0!==i||(c.showHour=!1),(l.includes("a")||l.includes("A"))&&void 0===s&&(c.use12Hours=!0)),"time"===n?c:("function"===typeof l&&delete c.format,{showTime:c})}function zr(e,t){const{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:o,TimePicker:a,QuarterPicker:s}=cr(e,t),l=jr(e,t);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:o,TimePicker:a,QuarterPicker:s,RangePicker:l}}var Wr=zr;const{DatePicker:Gr,WeekPicker:Vr,MonthPicker:Kr,YearPicker:Yr,TimePicker:qr,QuarterPicker:Xr,RangePicker:Jr}=Wr(k);var Zr=(0,r.A)(Gr,{WeekPicker:Vr,MonthPicker:Kr,YearPicker:Yr,RangePicker:Jr,TimePicker:qr,QuarterPicker:Xr,install:e=>(e.component(Gr.name,Gr),e.component(Jr.name,Jr),e.component(Kr.name,Kr),e.component(Vr.name,Vr),e.component(Xr.name,Xr),e)}),ei=Zr},49613:function(e){function t(e){const t={className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},n={className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},r={className:"variable",begin:/%[_a-zA-Z0-9:]+%/},i={className:"symbol",begin:/\\u[a-fA-F0-9]{4}/},o={className:"symbol",begin:/\\[\\nt$%,()]/};return{name:"Tagger Script",contains:[t,n,r,o,i]}}e.exports=t},49631:function(e,t,n){"use strict";n(9486)},49752:function(e,t,n){"use strict";n.d(t,{d:function(){return r}});const r=(e,t,n,r,i)=>{const o=e/2,a=0,s=o,l=1*n/Math.sqrt(2),c=o-n*(1-1/Math.sqrt(2)),u=o-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),h=2*o-u,f=d,p=2*o-l,g=c,m=2*o-a,v=s,A=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),b=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::after":{content:'""',position:"absolute",width:A,height:A,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:i,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${b}px 100%, 50% ${b}px, ${2*o-b}px 100%, ${b}px 100%)`,`path('M ${a} ${s} A ${n} ${n} 0 0 0 ${l} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${h} ${f} L ${p} ${g} A ${n} ${n} 0 0 0 ${m} ${v} Z')`]},content:'""'}}}},49797:function(e,t,n){"use strict";n(34226)},49895:function(e){function t(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=e.inherit(o,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,l,s,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,a,l,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}e.exports=t},49974:function(e,t,n){"use strict";n(44114);var r=n(39058);function i(){const e=[];for(let t=0;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];if(n)if((0,r.Kg)(n))e.push(n);else if((0,r.cy)(n))for(let t=0;t<n.length;t++){const r=i(n[t]);r&&e.push(r)}else if((0,r.Gv)(n))for(const t in n)n[t]&&e.push(t)}return e.join(" ")}t.A=i},50223:function(e,t,n){"use strict";n.d(t,{q:function(){return s}});n(44114);var r=n(30355),i=n(4263),o=n(39541),a=n(49359),s=function(){function e(t,n){var i;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=(0,r.oS)(t)),this.originalInput=t;var a=(0,o.RO)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(i=n.format)&&void 0!==i?i:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e,t,n,r=this.toRgb(),i=r.r/255,o=r.g/255,a=r.b/255;return e=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),t=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),n=a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4),.2126*e+.7152*t+.0722*n},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.TV)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var e=this.toHsl().s;return 0===e},e.prototype.toHsv=function(){var e=(0,r.wE)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.wE)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.K6)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.K6)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.Ob)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.H)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.Cg)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.Cg)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.Ob)(this.r,this.g,this.b,!1),t=0,n=Object.entries(i.D);t<n.length;t++){var o=n[t],a=o[0],s=o[1];if(e===s)return a}return!1},e.prototype.toString=function(e){var t=Boolean(e);e=null!==e&&void 0!==e?e:this.format;var n=!1,r=this.a<1&&this.a>=0,i=!t&&r&&(e.startsWith("hex")||"name"===e);return i?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.J$)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.J$)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.J$)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.J$)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new e(a)},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;while(t--)a.push(new e({h:r,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,a=1;a<t;a++)i.push(new e({h:(r+a*o)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}()},50283:function(e,t,n){"use strict";var r=n(79504),i=n(79039),o=n(94901),a=n(39297),s=n(43724),l=n(10350).CONFIGURABLE,c=n(33706),u=n(91181),d=u.enforce,h=u.get,f=String,p=Object.defineProperty,g=r("".slice),m=r("".replace),v=r([].join),A=s&&!i(function(){return 8!==p(function(){},"length",{value:8}).length}),b=String(String).split("String"),y=e.exports=function(e,t,n){"Symbol("===g(f(t),0,7)&&(t="["+m(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),A&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=d(e);return a(r,"source")||(r.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=y(function(){return o(this)&&h(this).source||c(this)},"toString")},50443:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="EllipsisOutlined",c.inheritAttrs=!1;var u=c},50452:function(e,t,n){"use strict";var r=n(69565),i=n(36840),o=n(97751),a=n(55966),s=n(39297),l=n(78227),c=n(53982),u=l("asyncDispose"),d=o("Promise");s(c,u)||i(c,u,function(){var e=this;return new d(function(t,n){var i=a(e,"return");i?d.resolve(r(i,e)).then(function(){t(void 0)},n):t(void 0)})})},50483:function(e,t,n){"use strict";n.d(t,{Y:function(){return r}});const r=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}})},50788:function(e,t,n){e.exports=n(92690)},50851:function(e,t,n){"use strict";var r=n(36955),i=n(55966),o=n(64117),a=n(26269),s=n(78227),l=s("iterator");e.exports=function(e){if(!o(e))return i(e,l)||i(e,"@@iterator")||a[r(e)]}},50888:function(e,t,n){"use strict";function r(e,t){if(e.classList)return e.classList.contains(t);const n=e.className;return` ${n} `.indexOf(` ${t} `)>-1}function i(e,t){e.classList?e.classList.add(t):r(e,t)||(e.className=`${e.className} ${t}`)}function o(e,t){if(e.classList)e.classList.remove(t);else if(r(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}n.d(t,{iQ:function(){return i},vy:function(){return o}})},51006:function(e,t,n){n(18111),n(7588);const r=n(79547),i=n(22039),o=n(41210),a=n(17195),s=n(15847),l=7973,c=r.getBCHDigit(l);function u(e,n,r){for(let i=1;i<=40;i++)if(n<=t.getCapacity(i,r,e))return i}function d(e,t){return a.getCharCountIndicator(e,t)+4}function h(e,t){let n=0;return e.forEach(function(e){const r=d(e.mode,t);n+=r+e.getBitsLength()}),n}function f(e,n){for(let r=1;r<=40;r++){const i=h(e,r);if(i<=t.getCapacity(r,n,a.MIXED))return r}}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=a.BYTE);const o=r.getSymbolTotalCodewords(e),l=i.getTotalCodewordsCount(e,t),c=8*(o-l);if(n===a.MIXED)return c;const u=c-d(n,e);switch(n){case a.NUMERIC:return Math.floor(u/10*3);case a.ALPHANUMERIC:return Math.floor(u/11*2);case a.KANJI:return Math.floor(u/13);case a.BYTE:default:return Math.floor(u/8)}},t.getBestVersionForData=function(e,t){let n;const r=o.from(t,o.M);if(Array.isArray(e)){if(e.length>1)return f(e,r);if(0===e.length)return 1;n=e[0]}else n=e;return u(n.mode,n.getLength(),r)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;while(r.getBCHDigit(t)-c>=0)t^=l<<r.getBCHDigit(t)-c;return e<<12|t}},51040:function(e,t,n){"use strict";n.d(t,{hF:function(){return a}});var r=n(56768);const i=Symbol("rowContextKey"),o=e=>{(0,r.Gt)(i,e)},a=()=>(0,r.WQ)(i,{gutter:(0,r.EW)(()=>{}),wrap:(0,r.EW)(()=>{}),supportFlexGap:(0,r.EW)(()=>{})});t.Ay=o},51137:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:function(){return r}})},51253:function(e,t,n){n(44114),function(e){e(n(83800))}(function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(r,i){var o,a,s=r.indentUnit,l={},c=i.htmlMode?t:n;for(var u in c)l[u]=c[u];for(var u in i)l[u]=i[u];function d(e,t){function n(n){return t.tokenize=n,n(e,t)}var r,i=e.next();return"<"==i?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(p("atom","]]>")):null:e.match("--")?n(p("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(g(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=h,"tag bracket"):"&"==i?(r=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),r?"atom":"error"):(e.eatWhile(/[^&<]/),null)}function h(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=d,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){t.tokenize=d,t.state=y,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=f(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function f(e){var t=function(t,n){while(!t.eol())if(t.next()==e){n.tokenize=h;break}return"string"};return t.isInAttribute=!0,t}function p(e,t){return function(n,r){while(!n.eol()){if(n.match(t)){r.tokenize=d;break}n.next()}return e}}function g(e){return function(t,n){var r;while(null!=(r=t.next())){if("<"==r)return n.tokenize=g(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=d;break}return n.tokenize=g(e-1),n.tokenize(t,n)}}return"meta"}}function m(e){return e&&e.toLowerCase()}function v(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function A(e){e.context&&(e.context=e.context.prev)}function b(e,t){var n;while(1){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(m(n))||!l.contextGrabbers[m(n)].hasOwnProperty(m(t)))return;A(e)}}function y(e,t,n){return"openTag"==e?(n.tagStart=t.column(),w):"closeTag"==e?_:y}function w(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",S):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",S(e,t,n)):(a="error",w)}function _(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(m(n.context.tagName))&&A(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",x):(a="tag error",E)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",x(e,t,n)):(a="error",E)}function x(e,t,n){return"endTag"!=e?(a="error",x):(A(n),y)}function E(e,t,n){return a="error",x(e,t,n)}function S(e,t,n){if("word"==e)return a="attribute",C;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(m(r))?b(n,r):(b(n,r),n.context=new v(n,r,i==n.indented)),y}return a="error",S}function C(e,t,n){return"equals"==e?T:(l.allowMissing||(a="error"),S(e,t,n))}function T(e,t,n){return"string"==e?k:"word"==e&&l.allowUnquoted?(a="string",S):(a="error",S(e,t,n))}function k(e,t,n){return"string"==e?k:S(e,t,n)}return d.isInText=!0,{startState:function(e){var t={tokenize:d,state:y,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=h&&t.tokenize!=d)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])while(i){if(i.tagName==o[2]){i=i.prev;break}if(!l.implicitlyClosed.hasOwnProperty(m(i.tagName)))break;i=i.prev}else if(o)while(i){var a=l.contextGrabbers[m(i.tagName)];if(!a||!a.hasOwnProperty(m(o[2])))break;i=i.prev}while(i&&i.prev&&!i.startOfLine)i=i.prev;return i?i.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==T&&(e.state=S)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})})},51579:function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";var e="month",t="quarter";return function(n,r){var i=r.prototype;i.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var o=i.add;i.add=function(n,r){return n=Number(n),this.$utils().p(r)===t?this.add(3*n,e):o.bind(this)(n,r)};var a=i.startOf;i.startOf=function(n,r){var i=this.$utils(),o=!!i.u(r)||r;if(i.p(n)===t){var s=this.quarter()-1;return o?this.month(3*s).startOf(e).startOf("day"):this.month(3*s+2).endOf(e).endOf("day")}return a.bind(this)(n,r)}}})},51589:function(e,t,n){"use strict";n.d(t,{TL:function(){return o},by:function(){return l},ce:function(){return a},zg:function(){return s}});var r=n(51137),i=n(44678);(0,i.PV)("bottomLeft","bottomRight","topLeft","topRight");const o=e=>void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down",a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e?(0,r.A)({name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`},t):(0,r.A)({css:!1},t);return n},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e?(0,r.A)({name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`},t):(0,r.A)({css:!1},t);return n},l=(e,t,n)=>void 0!==n?n:`${e}-${t}`},51644:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="QuestionCircleOutlined",c.inheritAttrs=!1;var u=c},51675:function(e){function t(e){const t={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[t],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[t]}]}}e.exports=t},51732:function(e,t,n){"use strict";function r(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24,t=1540483477*(65535&t)+(59797*(t>>>16)<<16),t^=t>>>24,n=1540483477*(65535&t)+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=1540483477*(65535&n)+(59797*(n>>>16)<<16)}return n^=n>>>13,n=1540483477*(65535&n)+(59797*(n>>>16)<<16),((n^n>>>15)>>>0).toString(36)}n.d(t,{A:function(){return r}})},51927:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="ArrowUpOutlined",c.inheritAttrs=!1;var u=c},51999:function(e,t,n){"use strict";n.d(t,{Vv:function(){return gw},wZ:function(){return eA}});n(44114),n(18111),n(81148),n(22489),n(20116),n(7588),n(61701),n(18237),n(13579);var r=n(90144),i=n(56768),o=n(24232),a=n(45130);function s(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function l(e){var t=s(e).Element;return e instanceof t||e instanceof Element}function c(e){var t=s(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function u(e){if("undefined"===typeof ShadowRoot)return!1;var t=s(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var d=Math.max,h=Math.min,f=Math.round;function p(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function g(){return!/^((?!chrome|android).)*safari/i.test(p())}function m(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&c(e)&&(i=e.offsetWidth>0&&f(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&f(r.height)/e.offsetHeight||1);var a=l(e)?s(e):window,u=a.visualViewport,d=!g()&&n,h=(r.left+(d&&u?u.offsetLeft:0))/i,p=(r.top+(d&&u?u.offsetTop:0))/o,m=r.width/i,v=r.height/o;return{width:m,height:v,top:p,right:h+m,bottom:p+v,left:h,x:h,y:p}}function v(e){var t=s(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function A(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function b(e){return e!==s(e)&&c(e)?A(e):v(e)}function y(e){return e?(e.nodeName||"").toLowerCase():null}function w(e){return((l(e)?e.ownerDocument:e.document)||window.document).documentElement}function _(e){return m(w(e)).left+v(e).scrollLeft}function x(e){return s(e).getComputedStyle(e)}function E(e){var t=x(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function S(e){var t=e.getBoundingClientRect(),n=f(t.width)/e.offsetWidth||1,r=f(t.height)/e.offsetHeight||1;return 1!==n||1!==r}function C(e,t,n){void 0===n&&(n=!1);var r=c(t),i=c(t)&&S(t),o=w(t),a=m(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==y(t)||E(o))&&(s=b(t)),c(t)?(l=m(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=_(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function T(e){var t=m(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function k(e){return"html"===y(e)?e:e.assignedSlot||e.parentNode||(u(e)?e.host:null)||w(e)}function O(e){return["html","body","#document"].indexOf(y(e))>=0?e.ownerDocument.body:c(e)&&E(e)?e:O(k(e))}function M(e,t){var n;void 0===t&&(t=[]);var r=O(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=s(r),a=i?[o].concat(o.visualViewport||[],E(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(M(k(a)))}function I(e){return["table","td","th"].indexOf(y(e))>=0}function D(e){return c(e)&&"fixed"!==x(e).position?e.offsetParent:null}function N(e){var t=/firefox/i.test(p()),n=/Trident/i.test(p());if(n&&c(e)){var r=x(e);if("fixed"===r.position)return null}var i=k(e);u(i)&&(i=i.host);while(c(i)&&["html","body"].indexOf(y(i))<0){var o=x(i);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return i;i=i.parentNode}return null}function R(e){var t=s(e),n=D(e);while(n&&I(n)&&"static"===x(n).position)n=D(n);return n&&("html"===y(n)||"body"===y(n)&&"static"===x(n).position)?t:n||N(e)||t}n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698);var L="top",B="bottom",P="right",F="left",$="auto",j=[L,B,P,F],H="start",U="end",Q="clippingParents",z="viewport",W="popper",G="reference",V=j.reduce(function(e,t){return e.concat([t+"-"+H,t+"-"+U])},[]),K=[].concat(j,[$]).reduce(function(e,t){return e.concat([t,t+"-"+H,t+"-"+U])},[]),Y="beforeRead",q="read",X="afterRead",J="beforeMain",Z="main",ee="afterMain",te="beforeWrite",ne="write",re="afterWrite",ie=[Y,q,X,J,Z,ee,te,ne,re];function oe(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name);var o=[].concat(e.requires||[],e.requiresIfExists||[]);o.forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),r}function ae(e){var t=oe(e);return ie.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function se(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function le(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var ce={placement:"bottom",modifiers:[],strategy:"absolute"};function ue(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"===typeof e.getBoundingClientRect)})}function de(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?ce:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},ce,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,c={state:i,setOptions:function(n){var a="function"===typeof n?n(i.options):n;d(),i.options=Object.assign({},o,i.options,a),i.scrollParents={reference:l(e)?M(e):e.contextElement?M(e.contextElement):[],popper:M(t)};var s=ae(le([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),u(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(ue(t,n)){i.rects={reference:C(t,R(n),"fixed"===i.options.strategy),popper:T(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,l=o.options,u=void 0===l?{}:l,d=o.name;"function"===typeof a&&(i=a({state:i,options:u,name:d,instance:c})||i)}else i.reset=!1,r=-1}}},update:se(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){d(),s=!0}};if(!ue(e,t))return c;function u(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var s=o({state:i,name:t,instance:c,options:r}),l=function(){};a.push(s||l)}})}function d(){a.forEach(function(e){return e()}),a=[]}return c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)}),c}}var he={passive:!0};function fe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,l=void 0===a||a,c=s(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(e){e.addEventListener("scroll",n.update,he)}),l&&c.addEventListener("resize",n.update,he),function(){o&&u.forEach(function(e){e.removeEventListener("scroll",n.update,he)}),l&&c.removeEventListener("resize",n.update,he)}}var pe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fe,data:{}};function ge(e){return e.split("-")[0]}function me(e){return e.split("-")[1]}function ve(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ae(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?ge(i):null,a=i?me(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case L:t={x:s,y:n.y-r.height};break;case B:t={x:s,y:n.y+n.height};break;case P:t={x:n.x+n.width,y:l};break;case F:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?ve(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case H:t[c]=t[c]-(n[u]/2-r[u]/2);break;case U:t[c]=t[c]+(n[u]/2-r[u]/2);break;default:}}return t}function be(e){var t=e.state,n=e.name;t.modifiersData[n]=Ae({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var ye={name:"popperOffsets",enabled:!0,phase:"read",fn:be,data:{}},we={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _e(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:f(n*i)/i||0,y:f(r*i)/i||0}}function xe(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,h=e.isFixed,f=a.x,p=void 0===f?0:f,g=a.y,m=void 0===g?0:g,v="function"===typeof d?d({x:p,y:m}):{x:p,y:m};p=v.x,m=v.y;var A=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=F,_=L,E=window;if(u){var S=R(n),C="clientHeight",T="clientWidth";if(S===s(n)&&(S=w(n),"static"!==x(S).position&&"absolute"===l&&(C="scrollHeight",T="scrollWidth")),i===L||(i===F||i===P)&&o===U){_=B;var k=h&&S===E&&E.visualViewport?E.visualViewport.height:S[C];m-=k-r.height,m*=c?1:-1}if(i===F||(i===L||i===B)&&o===U){y=P;var O=h&&S===E&&E.visualViewport?E.visualViewport.width:S[T];p-=O-r.width,p*=c?1:-1}}var M,I=Object.assign({position:l},u&&we),D=!0===d?_e({x:p,y:m},s(n)):{x:p,y:m};return p=D.x,m=D.y,c?Object.assign({},I,(M={},M[_]=b?"0":"",M[y]=A?"0":"",M.transform=(E.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",M)):Object.assign({},I,(t={},t[_]=b?m+"px":"",t[y]=A?p+"px":"",t.transform="",t))}function Ee(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,l=void 0===s||s,c={placement:ge(t.placement),variation:me(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,xe(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,xe(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Se={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ee,data:{}};function Ce(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];c(i)&&y(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})}function Te(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),a=o.reduce(function(e,t){return e[t]="",e},{});c(r)&&y(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var ke={name:"applyStyles",enabled:!0,phase:"write",fn:Ce,effect:Te,requires:["computeStyles"]};function Oe(e,t,n){var r=ge(e),i=[F,L].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[F,P].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Me(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=K.reduce(function(e,n){return e[n]=Oe(n,t.rects,o),e},{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}var Ie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Me},De={left:"right",right:"left",bottom:"top",top:"bottom"};function Ne(e){return e.replace(/left|right|bottom|top/g,function(e){return De[e]})}var Re={start:"end",end:"start"};function Le(e){return e.replace(/start|end/g,function(e){return Re[e]})}function Be(e,t){var n=s(e),r=w(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){o=i.width,a=i.height;var u=g();(u||!u&&"fixed"===t)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:l+_(e),y:c}}function Pe(e){var t,n=w(e),r=v(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=d(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=d(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+_(e),l=-r.scrollTop;return"rtl"===x(i||n).direction&&(s+=d(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function Fe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&u(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function $e(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function je(e,t){var n=m(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function He(e,t,n){return t===z?$e(Be(e,n)):l(t)?je(t,n):$e(Pe(w(e)))}function Ue(e){var t=M(k(e)),n=["absolute","fixed"].indexOf(x(e).position)>=0,r=n&&c(e)?R(e):e;return l(r)?t.filter(function(e){return l(e)&&Fe(e,r)&&"body"!==y(e)}):[]}function Qe(e,t,n,r){var i="clippingParents"===t?Ue(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(t,n){var i=He(e,n,r);return t.top=d(i.top,t.top),t.right=h(i.right,t.right),t.bottom=h(i.bottom,t.bottom),t.left=d(i.left,t.left),t},He(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ze(){return{top:0,right:0,bottom:0,left:0}}function We(e){return Object.assign({},ze(),e)}function Ge(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function Ve(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,c=void 0===s?Q:s,u=n.rootBoundary,d=void 0===u?z:u,h=n.elementContext,f=void 0===h?W:h,p=n.altBoundary,g=void 0!==p&&p,v=n.padding,A=void 0===v?0:v,b=We("number"!==typeof A?A:Ge(A,j)),y=f===W?G:W,_=e.rects.popper,x=e.elements[g?y:f],E=Qe(l(x)?x:x.contextElement||w(e.elements.popper),c,d,a),S=m(e.elements.reference),C=Ae({reference:S,element:_,strategy:"absolute",placement:i}),T=$e(Object.assign({},_,C)),k=f===W?T:S,O={top:E.top-k.top+b.top,bottom:k.bottom-E.bottom+b.bottom,left:E.left-k.left+b.left,right:k.right-E.right+b.right},M=e.modifiersData.offset;if(f===W&&M){var I=M[i];Object.keys(O).forEach(function(e){var t=[P,B].indexOf(e)>=0?1:-1,n=[L,B].indexOf(e)>=0?"y":"x";O[e]+=I[n]*t})}return O}function Ke(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?K:l,u=me(r),d=u?s?V:V.filter(function(e){return me(e)===u}):j,h=d.filter(function(e){return c.indexOf(e)>=0});0===h.length&&(h=d);var f=h.reduce(function(t,n){return t[n]=Ve(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[ge(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}function Ye(e){if(ge(e)===$)return[];var t=Ne(e);return[Le(e),t,Le(t)]}function qe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,p=void 0===f||f,g=n.allowedAutoPlacements,m=t.options.placement,v=ge(m),A=v===m,b=l||(A||!p?[Ne(m)]:Ye(m)),y=[m].concat(b).reduce(function(e,n){return e.concat(ge(n)===$?Ke(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}):n)},[]),w=t.rects.reference,_=t.rects.popper,x=new Map,E=!0,S=y[0],C=0;C<y.length;C++){var T=y[C],k=ge(T),O=me(T)===H,M=[L,B].indexOf(k)>=0,I=M?"width":"height",D=Ve(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),N=M?O?P:F:O?B:L;w[I]>_[I]&&(N=Ne(N));var R=Ne(N),j=[];if(o&&j.push(D[k]<=0),s&&j.push(D[N]<=0,D[R]<=0),j.every(function(e){return e})){S=T,E=!1;break}x.set(T,j)}if(E)for(var U=p?3:1,Q=function(e){var t=y.find(function(t){var n=x.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return S=t,"break"},z=U;z>0;z--){var W=Q(z);if("break"===W)break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}}var Xe={name:"flip",enabled:!0,phase:"main",fn:qe,requiresIfExists:["offset"],data:{_skip:!1}};function Je(e){return"x"===e?"y":"x"}function Ze(e,t,n){return d(e,h(t,n))}function et(e,t,n){var r=Ze(e,t,n);return r>n?n:r}function tt(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,p=n.tether,g=void 0===p||p,m=n.tetherOffset,v=void 0===m?0:m,A=Ve(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),b=ge(t.placement),y=me(t.placement),w=!y,_=ve(b),x=Je(_),E=t.modifiersData.popperOffsets,S=t.rects.reference,C=t.rects.popper,k="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,O="number"===typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(E){if(o){var D,N="y"===_?L:F,$="y"===_?B:P,j="y"===_?"height":"width",U=E[_],Q=U+A[N],z=U-A[$],W=g?-C[j]/2:0,G=y===H?S[j]:C[j],V=y===H?-C[j]:-S[j],K=t.elements.arrow,Y=g&&K?T(K):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ze(),X=q[N],J=q[$],Z=Ze(0,S[j],Y[j]),ee=w?S[j]/2-W-Z-X-O.mainAxis:G-Z-X-O.mainAxis,te=w?-S[j]/2+W+Z+J+O.mainAxis:V+Z+J+O.mainAxis,ne=t.elements.arrow&&R(t.elements.arrow),re=ne?"y"===_?ne.clientTop||0:ne.clientLeft||0:0,ie=null!=(D=null==M?void 0:M[_])?D:0,oe=U+ee-ie-re,ae=U+te-ie,se=Ze(g?h(Q,oe):Q,U,g?d(z,ae):z);E[_]=se,I[_]=se-U}if(s){var le,ce="x"===_?L:F,ue="x"===_?B:P,de=E[x],he="y"===x?"height":"width",fe=de+A[ce],pe=de-A[ue],Ae=-1!==[L,F].indexOf(b),be=null!=(le=null==M?void 0:M[x])?le:0,ye=Ae?fe:de-S[he]-C[he]-be+O.altAxis,we=Ae?de+S[he]+C[he]-be-O.altAxis:pe,_e=g&&Ae?et(ye,de,we):Ze(g?ye:fe,de,g?we:pe);E[x]=_e,I[x]=_e-de}t.modifiersData[r]=I}}var nt={name:"preventOverflow",enabled:!0,phase:"main",fn:tt,requiresIfExists:["offset"]},rt=function(e,t){return e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,We("number"!==typeof e?e:Ge(e,j))};function it(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ge(n.placement),l=ve(s),c=[F,P].indexOf(s)>=0,u=c?"height":"width";if(o&&a){var d=rt(i.padding,n),h=T(o),f="y"===l?L:F,p="y"===l?B:P,g=n.rects.reference[u]+n.rects.reference[l]-a[l]-n.rects.popper[u],m=a[l]-n.rects.reference[l],v=R(o),A=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,b=g/2-m/2,y=d[f],w=A-h[u]-d[p],_=A/2-h[u]/2+b,x=Ze(y,_,w),E=l;n.modifiersData[r]=(t={},t[E]=x,t.centerOffset=x-_,t)}}function ot(e){var t=e.state,n=e.options,r=n.element,i=void 0===r?"[data-popper-arrow]":r;null!=i&&("string"!==typeof i||(i=t.elements.popper.querySelector(i),i))&&Fe(t.elements.popper,i)&&(t.elements.arrow=i)}var at={name:"arrow",enabled:!0,phase:"main",fn:it,effect:ot,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function st(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function lt(e){return[L,P,B,F].some(function(t){return e[t]>=0})}function ct(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Ve(t,{elementContext:"reference"}),s=Ve(t,{altBoundary:!0}),l=st(a,r),c=st(s,i,o),u=lt(l),d=lt(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var ut={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ct},dt=[pe,ye,Se,ke,Ie,Xe,nt,at,ut],ht=de({defaultModifiers:dt}),ft=Object.defineProperty,pt=(e,t,n)=>t in e?ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gt=(e,t,n)=>(pt(e,"symbol"!==typeof t?t+"":t,n),n),mt="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};function vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var At=Object.prototype,bt=At.hasOwnProperty;function yt(e,t){return null!=e&&bt.call(e,t)}var wt=yt,_t=Array.isArray,xt=_t,Et="object"==typeof mt&&mt&&mt.Object===Object&&mt,St=Et,Ct=St,Tt="object"==typeof self&&self&&self.Object===Object&&self,kt=Ct||Tt||Function("return this")(),Ot=kt,Mt=Ot,It=Mt.Symbol,Dt=It,Nt=Dt,Rt=Object.prototype,Lt=Rt.hasOwnProperty,Bt=Rt.toString,Pt=Nt?Nt.toStringTag:void 0;function Ft(e){var t=Lt.call(e,Pt),n=e[Pt];try{e[Pt]=void 0;var r=!0}catch(o){}var i=Bt.call(e);return r&&(t?e[Pt]=n:delete e[Pt]),i}var $t=Ft,jt=Object.prototype,Ht=jt.toString;function Ut(e){return Ht.call(e)}var Qt=Ut,zt=Dt,Wt=$t,Gt=Qt,Vt="[object Null]",Kt="[object Undefined]",Yt=zt?zt.toStringTag:void 0;function qt(e){return null==e?void 0===e?Kt:Vt:Yt&&Yt in Object(e)?Wt(e):Gt(e)}var Xt=qt;function Jt(e){return null!=e&&"object"==typeof e}var Zt=Jt,en=Xt,tn=Zt,nn="[object Symbol]";function rn(e){return"symbol"==typeof e||tn(e)&&en(e)==nn}var on=rn,an=xt,sn=on,ln=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cn=/^\w*$/;function un(e,t){if(an(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!sn(e))||(cn.test(e)||!ln.test(e)||null!=t&&e in Object(t))}var dn=un;function hn(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var fn=hn,pn=Xt,gn=fn,mn="[object AsyncFunction]",vn="[object Function]",An="[object GeneratorFunction]",bn="[object Proxy]";function yn(e){if(!gn(e))return!1;var t=pn(e);return t==vn||t==An||t==mn||t==bn}var wn=yn,_n=Ot,xn=_n["__core-js_shared__"],En=xn,Sn=En,Cn=function(){var e=/[^.]+$/.exec(Sn&&Sn.keys&&Sn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Tn(e){return!!Cn&&Cn in e}var kn=Tn,On=Function.prototype,Mn=On.toString;function In(e){if(null!=e){try{return Mn.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Dn=In,Nn=wn,Rn=kn,Ln=fn,Bn=Dn,Pn=/[\\^$.*+?()[\]{}|]/g,Fn=/^\[object .+?Constructor\]$/,$n=Function.prototype,jn=Object.prototype,Hn=$n.toString,Un=jn.hasOwnProperty,Qn=RegExp("^"+Hn.call(Un).replace(Pn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zn(e){if(!Ln(e)||Rn(e))return!1;var t=Nn(e)?Qn:Fn;return t.test(Bn(e))}var Wn=zn;function Gn(e,t){return null==e?void 0:e[t]}var Vn=Gn,Kn=Wn,Yn=Vn;function qn(e,t){var n=Yn(e,t);return Kn(n)?n:void 0}var Xn=qn,Jn=Xn,Zn=Jn(Object,"create"),er=Zn,tr=er;function nr(){this.__data__=tr?tr(null):{},this.size=0}var rr=nr;function ir(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var or=ir,ar=er,sr="__lodash_hash_undefined__",lr=Object.prototype,cr=lr.hasOwnProperty;function ur(e){var t=this.__data__;if(ar){var n=t[e];return n===sr?void 0:n}return cr.call(t,e)?t[e]:void 0}var dr=ur,hr=er,fr=Object.prototype,pr=fr.hasOwnProperty;function gr(e){var t=this.__data__;return hr?void 0!==t[e]:pr.call(t,e)}var mr=gr,vr=er,Ar="__lodash_hash_undefined__";function br(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=vr&&void 0===t?Ar:t,this}var yr=br,wr=rr,_r=or,xr=dr,Er=mr,Sr=yr;function Cr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}Cr.prototype.clear=wr,Cr.prototype["delete"]=_r,Cr.prototype.get=xr,Cr.prototype.has=Er,Cr.prototype.set=Sr;var Tr=Cr;function kr(){this.__data__=[],this.size=0}var Or=kr;function Mr(e,t){return e===t||e!==e&&t!==t}var Ir=Mr,Dr=Ir;function Nr(e,t){var n=e.length;while(n--)if(Dr(e[n][0],t))return n;return-1}var Rr=Nr,Lr=Rr,Br=Array.prototype,Pr=Br.splice;function Fr(e){var t=this.__data__,n=Lr(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Pr.call(t,n,1),--this.size,!0}var $r=Fr,jr=Rr;function Hr(e){var t=this.__data__,n=jr(t,e);return n<0?void 0:t[n][1]}var Ur=Hr,Qr=Rr;function zr(e){return Qr(this.__data__,e)>-1}var Wr=zr,Gr=Rr;function Vr(e,t){var n=this.__data__,r=Gr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Kr=Vr,Yr=Or,qr=$r,Xr=Ur,Jr=Wr,Zr=Kr;function ei(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}ei.prototype.clear=Yr,ei.prototype["delete"]=qr,ei.prototype.get=Xr,ei.prototype.has=Jr,ei.prototype.set=Zr;var ti=ei,ni=Xn,ri=Ot,ii=ni(ri,"Map"),oi=ii,ai=Tr,si=ti,li=oi;function ci(){this.size=0,this.__data__={hash:new ai,map:new(li||si),string:new ai}}var ui=ci;function di(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var hi=di,fi=hi;function pi(e,t){var n=e.__data__;return fi(t)?n["string"==typeof t?"string":"hash"]:n.map}var gi=pi,mi=gi;function vi(e){var t=mi(this,e)["delete"](e);return this.size-=t?1:0,t}var Ai=vi,bi=gi;function yi(e){return bi(this,e).get(e)}var wi=yi,_i=gi;function xi(e){return _i(this,e).has(e)}var Ei=xi,Si=gi;function Ci(e,t){var n=Si(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var Ti=Ci,ki=ui,Oi=Ai,Mi=wi,Ii=Ei,Di=Ti;function Ni(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}Ni.prototype.clear=ki,Ni.prototype["delete"]=Oi,Ni.prototype.get=Mi,Ni.prototype.has=Ii,Ni.prototype.set=Di;var Ri=Ni,Li=Ri,Bi="Expected a function";function Pi(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(Bi);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Pi.Cache||Li),n}Pi.Cache=Li;var Fi=Pi,$i=Fi,ji=500;function Hi(e){var t=$i(e,function(e){return n.size===ji&&n.clear(),e}),n=t.cache;return t}var Ui=Hi,Qi=Ui,zi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wi=/\\(\\)?/g,Gi=Qi(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(zi,function(e,n,r,i){t.push(r?i.replace(Wi,"$1"):n||e)}),t}),Vi=Gi;function Ki(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}var Yi=Ki,qi=Dt,Xi=Yi,Ji=xt,Zi=on,eo=1/0,to=qi?qi.prototype:void 0,no=to?to.toString:void 0;function ro(e){if("string"==typeof e)return e;if(Ji(e))return Xi(e,ro)+"";if(Zi(e))return no?no.call(e):"";var t=e+"";return"0"==t&&1/e==-eo?"-0":t}var io=ro,oo=io;function ao(e){return null==e?"":oo(e)}var so=ao,lo=xt,co=dn,uo=Vi,ho=so;function fo(e,t){return lo(e)?e:co(e,t)?[e]:uo(ho(e))}var po=fo,go=Xt,mo=Zt,vo="[object Arguments]";function Ao(e){return mo(e)&&go(e)==vo}var bo=Ao,yo=bo,wo=Zt,_o=Object.prototype,xo=_o.hasOwnProperty,Eo=_o.propertyIsEnumerable,So=yo(function(){return arguments}())?yo:function(e){return wo(e)&&xo.call(e,"callee")&&!Eo.call(e,"callee")},Co=So,To=9007199254740991,ko=/^(?:0|[1-9]\d*)$/;function Oo(e,t){var n=typeof e;return t=null==t?To:t,!!t&&("number"==n||"symbol"!=n&&ko.test(e))&&e>-1&&e%1==0&&e<t}var Mo=Oo,Io=9007199254740991;function Do(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Io}var No=Do,Ro=on,Lo=1/0;function Bo(e){if("string"==typeof e||Ro(e))return e;var t=e+"";return"0"==t&&1/e==-Lo?"-0":t}var Po=Bo,Fo=po,$o=Co,jo=xt,Ho=Mo,Uo=No,Qo=Po;function zo(e,t,n){t=Fo(t,e);var r=-1,i=t.length,o=!1;while(++r<i){var a=Qo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=null==e?0:e.length,!!i&&Uo(i)&&Ho(a,i)&&(jo(e)||$o(e)))}var Wo=zo,Go=wt,Vo=Wo;function Ko(e,t){return null!=e&&Vo(e,t,Go)}var Yo=Ko,qo=Xt,Xo=Zt,Jo="[object Date]";function Zo(e){return Xo(e)&&qo(e)==Jo}var ea=Zo;function ta(e){return function(t){return e(t)}}var na=ta,ra={},ia={get exports(){return ra},set exports(e){ra=e}};(function(e,t){var n=St,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s})(ia,ra);var oa=ea,aa=na,sa=ra,la=sa&&sa.isDate,ca=la?aa(la):oa,ua=ca,da=Xt,ha=xt,fa=Zt,pa="[object String]";function ga(e){return"string"==typeof e||!ha(e)&&fa(e)&&da(e)==pa}var ma=ga;function va(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var Aa=va,ba=ti;function ya(){this.__data__=new ba,this.size=0}var wa=ya;function _a(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}var xa=_a;function Ea(e){return this.__data__.get(e)}var Sa=Ea;function Ca(e){return this.__data__.has(e)}var Ta=Ca,ka=ti,Oa=oi,Ma=Ri,Ia=200;function Da(e,t){var n=this.__data__;if(n instanceof ka){var r=n.__data__;if(!Oa||r.length<Ia-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ma(r)}return n.set(e,t),this.size=n.size,this}var Na=Da,Ra=ti,La=wa,Ba=xa,Pa=Sa,Fa=Ta,$a=Na;function ja(e){var t=this.__data__=new Ra(e);this.size=t.size}ja.prototype.clear=La,ja.prototype["delete"]=Ba,ja.prototype.get=Pa,ja.prototype.has=Fa,ja.prototype.set=$a;var Ha=ja,Ua="__lodash_hash_undefined__";function Qa(e){return this.__data__.set(e,Ua),this}var za=Qa;function Wa(e){return this.__data__.has(e)}var Ga=Wa,Va=Ri,Ka=za,Ya=Ga;function qa(e){var t=-1,n=null==e?0:e.length;this.__data__=new Va;while(++t<n)this.add(e[t])}qa.prototype.add=qa.prototype.push=Ka,qa.prototype.has=Ya;var Xa=qa;function Ja(e,t){return e.has(t)}var Za=Ja,es=Xa,ts=Aa,ns=Za,rs=1,is=2;function os(e,t,n,r,i,o){var a=n&rs,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,f=n&is?new es:void 0;o.set(e,t),o.set(t,e);while(++d<s){var p=e[d],g=t[d];if(r)var m=a?r(g,p,d,t,e,o):r(p,g,d,e,t,o);if(void 0!==m){if(m)continue;h=!1;break}if(f){if(!ts(t,function(e,t){if(!ns(f,t)&&(p===e||i(p,e,n,r,o)))return f.push(t)})){h=!1;break}}else if(p!==g&&!i(p,g,n,r,o)){h=!1;break}}return o["delete"](e),o["delete"](t),h}var as=os,ss=Ot,ls=ss.Uint8Array,cs=ls;function us(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}var ds=us;function hs(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var fs=hs,ps=Dt,gs=cs,ms=Ir,vs=as,As=ds,bs=fs,ys=1,ws=2,_s="[object Boolean]",xs="[object Date]",Es="[object Error]",Ss="[object Map]",Cs="[object Number]",Ts="[object RegExp]",ks="[object Set]",Os="[object String]",Ms="[object Symbol]",Is="[object ArrayBuffer]",Ds="[object DataView]",Ns=ps?ps.prototype:void 0,Rs=Ns?Ns.valueOf:void 0;function Ls(e,t,n,r,i,o,a){switch(n){case Ds:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Is:return!(e.byteLength!=t.byteLength||!o(new gs(e),new gs(t)));case _s:case xs:case Cs:return ms(+e,+t);case Es:return e.name==t.name&&e.message==t.message;case Ts:case Os:return e==t+"";case Ss:var s=As;case ks:var l=r&ys;if(s||(s=bs),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=ws,a.set(e,t);var u=vs(s(e),s(t),r,i,o,a);return a["delete"](e),u;case Ms:if(Rs)return Rs.call(e)==Rs.call(t)}return!1}var Bs=Ls;function Ps(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}var Fs=Ps,$s=Fs,js=xt;function Hs(e,t,n){var r=t(e);return js(e)?r:$s(r,n(e))}var Us=Hs;function Qs(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var zs=Qs;function Ws(){return[]}var Gs=Ws,Vs=zs,Ks=Gs,Ys=Object.prototype,qs=Ys.propertyIsEnumerable,Xs=Object.getOwnPropertySymbols,Js=Xs?function(e){return null==e?[]:(e=Object(e),Vs(Xs(e),function(t){return qs.call(e,t)}))}:Ks,Zs=Js;function el(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}var tl=el,nl={},rl={get exports(){return nl},set exports(e){nl=e}};function il(){return!1}var ol=il;(function(e,t){var n=Ot,r=ol,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||r;e.exports=c})(rl,nl);var al=Xt,sl=No,ll=Zt,cl="[object Arguments]",ul="[object Array]",dl="[object Boolean]",hl="[object Date]",fl="[object Error]",pl="[object Function]",gl="[object Map]",ml="[object Number]",vl="[object Object]",Al="[object RegExp]",bl="[object Set]",yl="[object String]",wl="[object WeakMap]",_l="[object ArrayBuffer]",xl="[object DataView]",El="[object Float32Array]",Sl="[object Float64Array]",Cl="[object Int8Array]",Tl="[object Int16Array]",kl="[object Int32Array]",Ol="[object Uint8Array]",Ml="[object Uint8ClampedArray]",Il="[object Uint16Array]",Dl="[object Uint32Array]",Nl={};function Rl(e){return ll(e)&&sl(e.length)&&!!Nl[al(e)]}Nl[El]=Nl[Sl]=Nl[Cl]=Nl[Tl]=Nl[kl]=Nl[Ol]=Nl[Ml]=Nl[Il]=Nl[Dl]=!0,Nl[cl]=Nl[ul]=Nl[_l]=Nl[dl]=Nl[xl]=Nl[hl]=Nl[fl]=Nl[pl]=Nl[gl]=Nl[ml]=Nl[vl]=Nl[Al]=Nl[bl]=Nl[yl]=Nl[wl]=!1;var Ll=Rl,Bl=Ll,Pl=na,Fl=ra,$l=Fl&&Fl.isTypedArray,jl=$l?Pl($l):Bl,Hl=jl,Ul=tl,Ql=Co,zl=xt,Wl=nl,Gl=Mo,Vl=Hl,Kl=Object.prototype,Yl=Kl.hasOwnProperty;function ql(e,t){var n=zl(e),r=!n&&Ql(e),i=!n&&!r&&Wl(e),o=!n&&!r&&!i&&Vl(e),a=n||r||i||o,s=a?Ul(e.length,String):[],l=s.length;for(var c in e)!t&&!Yl.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Gl(c,l))||s.push(c);return s}var Xl=ql,Jl=Object.prototype;function Zl(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||Jl;return e===n}var ec=Zl;function tc(e,t){return function(n){return e(t(n))}}var nc=tc,rc=nc,ic=rc(Object.keys,Object),oc=ic,ac=ec,sc=oc,lc=Object.prototype,cc=lc.hasOwnProperty;function uc(e){if(!ac(e))return sc(e);var t=[];for(var n in Object(e))cc.call(e,n)&&"constructor"!=n&&t.push(n);return t}var dc=uc,hc=wn,fc=No;function pc(e){return null!=e&&fc(e.length)&&!hc(e)}var gc=pc,mc=Xl,vc=dc,Ac=gc;function bc(e){return Ac(e)?mc(e):vc(e)}var yc=bc,wc=Us,_c=Zs,xc=yc;function Ec(e){return wc(e,xc,_c)}var Sc=Ec,Cc=Sc,Tc=1,kc=Object.prototype,Oc=kc.hasOwnProperty;function Mc(e,t,n,r,i,o){var a=n&Tc,s=Cc(e),l=s.length,c=Cc(t),u=c.length;if(l!=u&&!a)return!1;var d=l;while(d--){var h=s[d];if(!(a?h in t:Oc.call(t,h)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var g=!0;o.set(e,t),o.set(t,e);var m=a;while(++d<l){h=s[d];var v=e[h],A=t[h];if(r)var b=a?r(A,v,h,t,e,o):r(v,A,h,e,t,o);if(!(void 0===b?v===A||i(v,A,n,r,o):b)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var y=e.constructor,w=t.constructor;y==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w||(g=!1)}return o["delete"](e),o["delete"](t),g}var Ic=Mc,Dc=Xn,Nc=Ot,Rc=Dc(Nc,"DataView"),Lc=Rc,Bc=Xn,Pc=Ot,Fc=Bc(Pc,"Promise"),$c=Fc,jc=Xn,Hc=Ot,Uc=jc(Hc,"Set"),Qc=Uc,zc=Xn,Wc=Ot,Gc=zc(Wc,"WeakMap"),Vc=Gc,Kc=Lc,Yc=oi,qc=$c,Xc=Qc,Jc=Vc,Zc=Xt,eu=Dn,tu="[object Map]",nu="[object Object]",ru="[object Promise]",iu="[object Set]",ou="[object WeakMap]",au="[object DataView]",su=eu(Kc),lu=eu(Yc),cu=eu(qc),uu=eu(Xc),du=eu(Jc),hu=Zc;(Kc&&hu(new Kc(new ArrayBuffer(1)))!=au||Yc&&hu(new Yc)!=tu||qc&&hu(qc.resolve())!=ru||Xc&&hu(new Xc)!=iu||Jc&&hu(new Jc)!=ou)&&(hu=function(e){var t=Zc(e),n=t==nu?e.constructor:void 0,r=n?eu(n):"";if(r)switch(r){case su:return au;case lu:return tu;case cu:return ru;case uu:return iu;case du:return ou}return t});var fu=hu,pu=Ha,gu=as,mu=Bs,vu=Ic,Au=fu,bu=xt,yu=nl,wu=Hl,_u=1,xu="[object Arguments]",Eu="[object Array]",Su="[object Object]",Cu=Object.prototype,Tu=Cu.hasOwnProperty;function ku(e,t,n,r,i,o){var a=bu(e),s=bu(t),l=a?Eu:Au(e),c=s?Eu:Au(t);l=l==xu?Su:l,c=c==xu?Su:c;var u=l==Su,d=c==Su,h=l==c;if(h&&yu(e)){if(!yu(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new pu),a||wu(e)?gu(e,t,n,r,i,o):mu(e,t,l,n,r,i,o);if(!(n&_u)){var f=u&&Tu.call(e,"__wrapped__"),p=d&&Tu.call(t,"__wrapped__");if(f||p){var g=f?e.value():e,m=p?t.value():t;return o||(o=new pu),i(g,m,n,r,o)}}return!!h&&(o||(o=new pu),vu(e,t,n,r,i,o))}var Ou=ku,Mu=Ou,Iu=Zt;function Du(e,t,n,r,i){return e===t||(null==e||null==t||!Iu(e)&&!Iu(t)?e!==e&&t!==t:Mu(e,t,n,r,Du,i))}var Nu=Du,Ru=Ha,Lu=Nu,Bu=1,Pu=2;function Fu(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;e=Object(e);while(i--){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}while(++i<o){s=n[i];var l=s[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new Ru;if(r)var h=r(c,u,l,e,t,d);if(!(void 0===h?Lu(u,c,Bu|Pu,r,d):h))return!1}}return!0}var $u=Fu,ju=fn;function Hu(e){return e===e&&!ju(e)}var Uu=Hu,Qu=Uu,zu=yc;function Wu(e){var t=zu(e),n=t.length;while(n--){var r=t[n],i=e[r];t[n]=[r,i,Qu(i)]}return t}var Gu=Wu;function Vu(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}var Ku=Vu,Yu=$u,qu=Gu,Xu=Ku;function Ju(e){var t=qu(e);return 1==t.length&&t[0][2]?Xu(t[0][0],t[0][1]):function(n){return n===e||Yu(n,e,t)}}var Zu=Ju,ed=po,td=Po;function nd(e,t){t=ed(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[td(t[n++])];return n&&n==r?e:void 0}var rd=nd,id=rd;function od(e,t,n){var r=null==e?void 0:id(e,t);return void 0===r?n:r}var ad=od;function sd(e,t){return null!=e&&t in Object(e)}var ld=sd,cd=ld,ud=Wo;function dd(e,t){return null!=e&&ud(e,t,cd)}var hd=dd,fd=Nu,pd=ad,gd=hd,md=dn,vd=Uu,Ad=Ku,bd=Po,yd=1,wd=2;function _d(e,t){return md(e)&&vd(t)?Ad(bd(e),t):function(n){var r=pd(n,e);return void 0===r&&r===t?gd(n,e):fd(t,r,yd|wd)}}var xd=_d;function Ed(e){return e}var Sd=Ed;function Cd(e){return function(t){return null==t?void 0:t[e]}}var Td=Cd,kd=rd;function Od(e){return function(t){return kd(t,e)}}var Md=Od,Id=Td,Dd=Md,Nd=dn,Rd=Po;function Ld(e){return Nd(e)?Id(Rd(e)):Dd(e)}var Bd=Ld,Pd=Zu,Fd=xd,$d=Sd,jd=xt,Hd=Bd;function Ud(e){return"function"==typeof e?e:null==e?$d:"object"==typeof e?jd(e)?Fd(e[0],e[1]):Pd(e):Hd(e)}var Qd=Ud;function zd(e){return function(t,n,r){var i=-1,o=Object(t),a=r(t),s=a.length;while(s--){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}var Wd=zd,Gd=Wd,Vd=Gd(),Kd=Vd,Yd=Kd,qd=yc;function Xd(e,t){return e&&Yd(e,t,qd)}var Jd=Xd,Zd=gc;function eh(e,t){return function(n,r){if(null==n)return n;if(!Zd(n))return e(n,r);var i=n.length,o=t?i:-1,a=Object(n);while(t?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}var th=eh,nh=Jd,rh=th,ih=rh(nh),oh=ih,ah=oh;function sh(e,t){var n;return ah(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}var lh=sh,ch=Ir,uh=gc,dh=Mo,hh=fn;function fh(e,t,n){if(!hh(n))return!1;var r=typeof t;return!!("number"==r?uh(n)&&dh(t,n.length):"string"==r&&t in n)&&ch(n[t],e)}var ph=fh,gh=Aa,mh=Qd,vh=lh,Ah=xt,bh=ph;function yh(e,t,n){var r=Ah(e)?gh:vh;return n&&bh(e,t,n)&&(t=void 0),r(e,mh(t))}var wh=yh,_h=Xt,xh=Zt,Eh="[object Boolean]";function Sh(e){return!0===e||!1===e||xh(e)&&_h(e)==Eh}var Ch=Sh,Th=Xt,kh=Zt,Oh="[object Number]";function Mh(e){return"number"==typeof e||kh(e)&&Th(e)==Oh}var Ih=Mh,Dh=Xn,Nh=function(){try{var e=Dh(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),Rh=Nh,Lh=Rh;function Bh(e,t,n){"__proto__"==t&&Lh?Lh(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Ph=Bh,Fh=Ph,$h=Ir,jh=Object.prototype,Hh=jh.hasOwnProperty;function Uh(e,t,n){var r=e[t];Hh.call(e,t)&&$h(r,n)&&(void 0!==n||t in e)||Fh(e,t,n)}var Qh=Uh,zh=Ph,Wh=Jd,Gh=Qd;function Vh(e,t){var n={};return t=Gh(t),Wh(e,function(e,r,i){zh(n,r,t(e,r,i))}),n}var Kh=Vh;function Yh(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var qh=Yh,Xh=qh,Jh=Math.max;function Zh(e,t,n){return t=Jh(void 0===t?e.length-1:t,0),function(){var r=arguments,i=-1,o=Jh(r.length-t,0),a=Array(o);while(++i<o)a[i]=r[t+i];i=-1;var s=Array(t+1);while(++i<t)s[i]=r[i];return s[t]=n(a),Xh(e,this,s)}}var ef=Zh;function tf(e){return function(){return e}}var nf=tf,rf=nf,of=Rh,af=Sd,sf=of?function(e,t){return of(e,"toString",{configurable:!0,enumerable:!1,value:rf(t),writable:!0})}:af,lf=sf,cf=800,uf=16,df=Date.now;function hf(e){var t=0,n=0;return function(){var r=df(),i=uf-(r-n);if(n=r,i>0){if(++t>=cf)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var ff=hf,pf=lf,gf=ff,mf=gf(pf),vf=mf,Af=Sd,bf=ef,yf=vf;function wf(e,t){return yf(bf(e,t,Af),e+"")}var _f=wf;function xf(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}var Ef=xf,Sf=fn,Cf=ec,Tf=Ef,kf=Object.prototype,Of=kf.hasOwnProperty;function Mf(e){if(!Sf(e))return Tf(e);var t=Cf(e),n=[];for(var r in e)("constructor"!=r||!t&&Of.call(e,r))&&n.push(r);return n}var If=Mf,Df=Xl,Nf=If,Rf=gc;function Lf(e){return Rf(e)?Df(e,!0):Nf(e)}var Bf=Lf,Pf=_f,Ff=Ir,$f=ph,jf=Bf,Hf=Object.prototype,Uf=Hf.hasOwnProperty,Qf=Pf(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;i&&$f(t[0],t[1],i)&&(r=1);while(++n<r){var o=t[n],a=jf(o),s=-1,l=a.length;while(++s<l){var c=a[s],u=e[c];(void 0===u||Ff(u,Hf[c])&&!Uf.call(e,c))&&(e[c]=o[c])}}return e}),zf=Qf,Wf=Ph,Gf=Ir;function Vf(e,t,n){(void 0!==n&&!Gf(e[t],n)||void 0===n&&!(t in e))&&Wf(e,t,n)}var Kf=Vf,Yf={},qf={get exports(){return Yf},set exports(e){Yf=e}};(function(e,t){var n=Ot,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}e.exports=l})(qf,Yf);var Xf=cs;function Jf(e){var t=new e.constructor(e.byteLength);return new Xf(t).set(new Xf(e)),t}var Zf=Jf,ep=Zf;function tp(e,t){var n=t?ep(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var np=tp;function rp(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}var ip=rp,op=fn,ap=Object.create,sp=function(){function e(){}return function(t){if(!op(t))return{};if(ap)return ap(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),lp=sp,cp=nc,up=cp(Object.getPrototypeOf,Object),dp=up,hp=lp,fp=dp,pp=ec;function gp(e){return"function"!=typeof e.constructor||pp(e)?{}:hp(fp(e))}var mp=gp,vp=gc,Ap=Zt;function bp(e){return Ap(e)&&vp(e)}var yp=bp,wp=Xt,_p=dp,xp=Zt,Ep="[object Object]",Sp=Function.prototype,Cp=Object.prototype,Tp=Sp.toString,kp=Cp.hasOwnProperty,Op=Tp.call(Object);function Mp(e){if(!xp(e)||wp(e)!=Ep)return!1;var t=_p(e);if(null===t)return!0;var n=kp.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Tp.call(n)==Op}var Ip=Mp;function Dp(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Np=Dp,Rp=Qh,Lp=Ph;function Bp(e,t,n,r){var i=!n;n||(n={});var o=-1,a=t.length;while(++o<a){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?Lp(n,s,l):Rp(n,s,l)}return n}var Pp=Bp,Fp=Pp,$p=Bf;function jp(e){return Fp(e,$p(e))}var Hp=jp,Up=Kf,Qp=Yf,zp=np,Wp=ip,Gp=mp,Vp=Co,Kp=xt,Yp=yp,qp=nl,Xp=wn,Jp=fn,Zp=Ip,eg=Hl,tg=Np,ng=Hp;function rg(e,t,n,r,i,o,a){var s=tg(e,n),l=tg(t,n),c=a.get(l);if(c)Up(e,n,c);else{var u=o?o(s,l,n+"",e,t,a):void 0,d=void 0===u;if(d){var h=Kp(l),f=!h&&qp(l),p=!h&&!f&&eg(l);u=l,h||f||p?Kp(s)?u=s:Yp(s)?u=Wp(s):f?(d=!1,u=Qp(l,!0)):p?(d=!1,u=zp(l,!0)):u=[]:Zp(l)||Vp(l)?(u=s,Vp(s)?u=ng(s):Jp(s)&&!Xp(s)||(u=Gp(l))):d=!1}d&&(a.set(l,u),i(u,l,r,o,a),a["delete"](l)),Up(e,n,u)}}var ig=rg,og=Ha,ag=Kf,sg=Kd,lg=ig,cg=fn,ug=Bf,dg=Np;function hg(e,t,n,r,i){e!==t&&sg(t,function(o,a){if(i||(i=new og),cg(o))lg(e,t,a,n,hg,r,i);else{var s=r?r(dg(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),ag(e,a,s)}},ug)}var fg=hg,pg=fg,gg=fn;function mg(e,t,n,r,i,o){return gg(e)&&gg(t)&&(o.set(t,e),pg(e,t,void 0,mg,o),o["delete"](t)),e}var vg=mg,Ag=_f,bg=ph;function yg(e){return Ag(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&bg(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);while(++r<i){var s=n[r];s&&e(t,s,r,o)}return t})}var wg=yg,_g=fg,xg=wg,Eg=xg(function(e,t,n,r){_g(e,t,n,r)}),Sg=Eg,Cg=qh,Tg=_f,kg=vg,Og=Sg,Mg=Tg(function(e){return e.push(void 0,kg),Cg(Og,void 0,e)}),Ig=Mg;function Dg(e){return e&&e.length?e[0]:void 0}var Ng=Dg;function Rg(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Lg=Rg;const Bg=e=>Object.prototype.toString.call(e).slice(8,-1),Pg=e=>ua(e)&&!isNaN(e.getTime()),Fg=e=>"Object"===Bg(e),$g=Yo,jg=(e,t)=>wh(t,t=>Yo(e,t)),Hg=(e,t,n="0")=>{e=null!==e&&void 0!==e?String(e):"",t=t||2;while(e.length<t)e=`${n}${e}`;return e},Ug=e=>Array.isArray(e),Qg=e=>Ug(e)&&e.length>0,zg=e=>null==e?null:document&&ma(e)?document.querySelector(e):e.$el??e,Wg=(e,t,n,r=void 0)=>{e.removeEventListener(t,n,r)},Gg=(e,t,n,r=void 0)=>(e.addEventListener(t,n,r),()=>Wg(e,t,n,r)),Vg=(e,t)=>!!e&&!!t&&(e===t||e.contains(t)),Kg=(e,t)=>{" "!==e.key&&"Enter"!==e.key||(t(e),e.preventDefault())},Yg=(e,...t)=>{const n={};let r;for(r in e)t.includes(r)||(n[r]=e[r]);return n},qg=(e,t)=>{const n={};return t.forEach(t=>{t in e&&(n[t]=e[t])}),n};function Xg(e,t,n){return Math.min(Math.max(e,t),n)}var Jg={},Zg={get exports(){return Jg},set exports(e){Jg=e}};(function(e,t){function n(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default})(Zg,Jg);const em=vt(Jg);var tm={},nm={get exports(){return tm},set exports(e){tm=e}};(function(e,t){function n(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default})(nm,tm);const rm=vt(tm);function im(e,t){var n=cm(t);return n.formatToParts?am(n,e):sm(n,e)}var om={year:0,month:1,day:2,hour:3,minute:4,second:5};function am(e,t){try{for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var o=om[n[i].type];o>=0&&(r[o]=parseInt(n[i].value,10))}return r}catch(a){if(a instanceof RangeError)return[NaN];throw a}}function sm(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var lm={};function cm(e){if(!lm[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00"===t;lm[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return lm[e]}function um(e,t,n,r,i,o,a){var s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,i,o,a),s}var dm=36e5,hm=6e4,fm={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function pm(e,t,n){var r,i,o;if(!e)return 0;if(r=fm.timezoneZ.exec(e),r)return 0;if(r=fm.timezoneHH.exec(e),r)return o=parseInt(r[1],10),Am(o)?-o*dm:NaN;if(r=fm.timezoneHHMM.exec(e),r){o=parseInt(r[1],10);var a=parseInt(r[2],10);return Am(o,a)?(i=Math.abs(o)*dm+a*hm,o>0?-i:i):NaN}if(ym(e)){t=new Date(t||Date.now());var s=n?t:gm(t),l=mm(s,e),c=n?l:vm(t,l,e);return-c}return NaN}function gm(e){return um(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function mm(e,t){var n=im(e,t),r=um(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),i=e.getTime(),o=i%1e3;return i-=o>=0?o:1e3+o,r-i}function vm(e,t,n){var r=e.getTime(),i=r-t,o=mm(new Date(i),n);if(t===o)return t;i-=o-t;var a=mm(new Date(i),n);return o===a?o:Math.max(o,a)}function Am(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var bm={};function ym(e){if(bm[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),bm[e]=!0,!0}catch(t){return!1}}var wm=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;const _m=wm;var xm=36e5,Em=6e4,Sm=2,Cm={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:_m};function Tm(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},r=null==n.additionalDigits?Sm:em(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"===typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var i=km(e),o=Om(i.date,r),a=o.year,s=o.restDateString,l=Mm(s,a);if(isNaN(l))return new Date(NaN);if(l){var c,u=l.getTime(),d=0;if(i.time&&(d=Im(i.time),isNaN(d)))return new Date(NaN);if(i.timeZone||n.timeZone){if(c=pm(i.timeZone||n.timeZone,new Date(u+d)),isNaN(c))return new Date(NaN)}else c=rm(new Date(u+d)),c=rm(new Date(u+d+c));return new Date(u+d+c)}return new Date(NaN)}function km(e){var t,n={},r=Cm.dateTimePattern.exec(e);if(r?(n.date=r[1],t=r[3]):(r=Cm.datePattern.exec(e),r?(n.date=r[1],t=r[2]):(n.date=null,t=e)),t){var i=Cm.timeZone.exec(t);i?(n.time=t.replace(i[1],""),n.timeZone=i[1].trim()):n.time=t}return n}function Om(e,t){var n,r=Cm.YYY[t],i=Cm.YYYYY[t];if(n=Cm.YYYY.exec(e)||i.exec(e),n){var o=n[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(n=Cm.YY.exec(e)||r.exec(e),n){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}function Mm(e,t){if(null===t)return null;var n,r,i,o;if(0===e.length)return r=new Date(0),r.setUTCFullYear(t),r;if(n=Cm.MM.exec(e),n)return r=new Date(0),i=parseInt(n[1],10)-1,Bm(t,i)?(r.setUTCFullYear(t,i),r):new Date(NaN);if(n=Cm.DDD.exec(e),n){r=new Date(0);var a=parseInt(n[1],10);return Pm(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=Cm.MMDD.exec(e),n){r=new Date(0),i=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return Bm(t,i,s)?(r.setUTCFullYear(t,i,s),r):new Date(NaN)}if(n=Cm.Www.exec(e),n)return o=parseInt(n[1],10)-1,Fm(t,o)?Dm(t,o):new Date(NaN);if(n=Cm.WwwD.exec(e),n){o=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return Fm(t,o,l)?Dm(t,o,l):new Date(NaN)}return null}function Im(e){var t,n,r;if(t=Cm.HH.exec(e),t)return n=parseFloat(t[1].replace(",",".")),$m(n)?n%24*xm:NaN;if(t=Cm.HHMM.exec(e),t)return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),$m(n,r)?n%24*xm+r*Em:NaN;if(t=Cm.HHMMSS.exec(e),t){n=parseInt(t[1],10),r=parseInt(t[2],10);var i=parseFloat(t[3].replace(",","."));return $m(n,r,i)?n%24*xm+r*Em+1e3*i:NaN}return null}function Dm(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=7*t+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}var Nm=[31,28,31,30,31,30,31,31,30,31,30,31],Rm=[31,29,31,30,31,30,31,31,30,31,30,31];function Lm(e){return e%400===0||e%4===0&&e%100!==0}function Bm(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var r=Lm(e);if(r&&n>Rm[t])return!1;if(!r&&n>Nm[t])return!1}return!0}function Pm(e,t){if(t<1)return!1;var n=Lm(e);return!(n&&t>366)&&!(!n&&t>365)}function Fm(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function $m(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}function jm(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Hm(e){return Hm="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hm(e)}function Um(e){jm(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Hm(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Qm(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}var zm={};function Wm(){return zm}function Gm(e,t){var n,r,i,o,a,s,l,c;jm(1,arguments);var u=Wm(),d=Qm(null!==(n=null!==(r=null!==(i=null!==(o=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==o?o:null===t||void 0===t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Um(e),f=h.getDay(),p=(f<d?7:0)+f-d;return h.setDate(h.getDate()-p),h.setHours(0,0,0,0),h}function Vm(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var Km=6048e5;function Ym(e,t,n){jm(2,arguments);var r=Gm(e,n),i=Gm(t,n),o=r.getTime()-Vm(r),a=i.getTime()-Vm(i);return Math.round((o-a)/Km)}function qm(e){jm(1,arguments);var t=Um(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function Xm(e){jm(1,arguments);var t=Um(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Jm(e,t){return jm(1,arguments),Ym(qm(e),Xm(e),t)+1}function Zm(e,t){var n,r,i,o,a,s,l,c;jm(1,arguments);var u=Um(e),d=u.getFullYear(),h=Wm(),f=Qm(null!==(n=null!==(r=null!==(i=null!==(o=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null===t||void 0===t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==i?i:h.firstWeekContainsDate)&&void 0!==r?r:null===(l=h.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setFullYear(d+1,0,f),p.setHours(0,0,0,0);var g=Gm(p,t),m=new Date(0);m.setFullYear(d,0,f),m.setHours(0,0,0,0);var v=Gm(m,t);return u.getTime()>=g.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}function ev(e,t){var n,r,i,o,a,s,l,c;jm(1,arguments);var u=Wm(),d=Qm(null!==(n=null!==(r=null!==(i=null!==(o=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null===t||void 0===t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==i?i:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),h=Zm(e,t),f=new Date(0);f.setFullYear(h,0,d),f.setHours(0,0,0,0);var p=Gm(f,t);return p}var tv=6048e5;function nv(e,t){jm(1,arguments);var n=Um(e),r=Gm(n,t).getTime()-ev(n,t).getTime();return Math.round(r/tv)+1}function rv(e){return jm(1,arguments),Gm(e,{weekStartsOn:1})}function iv(e){jm(1,arguments);var t=Um(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var i=rv(r),o=new Date(0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);var a=rv(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function ov(e){jm(1,arguments);var t=iv(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=rv(n);return r}var av=6048e5;function sv(e){jm(1,arguments);var t=Um(e),n=rv(t).getTime()-ov(t).getTime();return Math.round(n/av)+1}function lv(e,t){jm(2,arguments);var n=Um(e),r=Qm(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function cv(e,t){jm(2,arguments);var n=Um(e),r=Qm(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function uv(e,t){jm(2,arguments);var n=Qm(t);return cv(e,12*n)}const dv={daily:["year","month","day"],weekly:["year","month","week"],monthly:["year","month"]};function hv({monthComps:e,prevMonthComps:t,nextMonthComps:n},r){const i=[],{firstDayOfWeek:o,firstWeekday:a,isoWeeknumbers:s,weeknumbers:l,numDays:c,numWeeks:u}=e,d=a+(a<o?SA:0)-o;let h=!0,f=!1,p=!1,g=0;const m=new Intl.DateTimeFormat(r.id,{weekday:"long",year:"numeric",month:"short",day:"numeric"});let v=t.numDays-d+1,A=t.numDays-v+1,b=Math.floor((v-1)/SA+1),y=1,w=t.numWeeks,_=1,x=t.month,E=t.year;const S=new Date,C=S.getDate(),T=S.getMonth()+1,k=S.getFullYear();for(let O=1;O<=CA;O++){for(let t=1,d=o;t<=SA;t++,d+=d===SA?1-SA:1){h&&d===a&&(v=1,A=e.numDays,b=Math.floor((v-1)/SA+1),y=Math.floor((c-v)/SA+1),w=1,_=u,x=e.month,E=e.year,h=!1,f=!0);const o=r.getDateFromParams(E,x,v,0,0,0,0),S=r.getDateFromParams(E,x,v,12,0,0,0),M=r.getDateFromParams(E,x,v,23,59,59,999),I=o,D=`${Hg(E,4)}-${Hg(x,2)}-${Hg(v,2)}`,N=t,R=SA-t,L=l[O-1],B=s[O-1],P=v===C&&x===T&&E===k,F=f&&1===v,$=f&&v===c,j=1===O,H=O===u,U=1===t,Q=t===SA,z=VA(E,x,v);i.push({locale:r,id:D,position:++g,label:v.toString(),ariaLabel:m.format(new Date(E,x-1,v)),day:v,dayFromEnd:A,weekday:d,weekdayPosition:N,weekdayPositionFromEnd:R,weekdayOrdinal:b,weekdayOrdinalFromEnd:y,week:w,weekFromEnd:_,weekPosition:O,weeknumber:L,isoWeeknumber:B,month:x,year:E,date:I,startDate:o,endDate:M,noonDate:S,dayIndex:z,isToday:P,isFirstDay:F,isLastDay:$,isDisabled:!f,isFocusable:!f,isFocused:!1,inMonth:f,inPrevMonth:h,inNextMonth:p,onTop:j,onBottom:H,onLeft:U,onRight:Q,classes:[`id-${D}`,`day-${v}`,`day-from-end-${A}`,`weekday-${d}`,`weekday-position-${N}`,`weekday-ordinal-${b}`,`weekday-ordinal-from-end-${y}`,`week-${w}`,`week-from-end-${_}`,{"is-today":P,"is-first-day":F,"is-last-day":$,"in-month":f,"in-prev-month":h,"in-next-month":p,"on-top":j,"on-bottom":H,"on-left":U,"on-right":Q}]}),f&&$?(f=!1,p=!0,v=1,A=c,b=1,y=Math.floor((c-v)/SA+1),w=1,_=n.numWeeks,x=n.month,E=n.year):(v++,A--,b=Math.floor((v-1)/SA+1),y=Math.floor((c-v)/SA+1))}w++,_--}return i}function fv(e,t,n,r){const i=e.reduce((e,r,i)=>{const o=Math.floor(i/7);let a=e[o];return a||(a={id:`week-${o+1}`,title:"",week:r.week,weekPosition:r.weekPosition,weeknumber:r.weeknumber,isoWeeknumber:r.isoWeeknumber,weeknumberDisplay:t?r.weeknumber:n?r.isoWeeknumber:void 0,days:[]},e[o]=a),a.days.push(r),e},Array(e.length/SA));return i.forEach(e=>{const t=e.days[0],n=e.days[e.days.length-1];t.month===n.month?e.title=`${r.formatDate(t.date,"MMMM YYYY")}`:t.year===n.year?e.title=`${r.formatDate(t.date,"MMM")} - ${r.formatDate(n.date,"MMM YYYY")}`:e.title=`${r.formatDate(t.date,"MMM YYYY")} - ${r.formatDate(n.date,"MMM YYYY")}`}),i}function pv(e,t){return e.days.map(e=>({label:t.formatDate(e.date,t.masks.weekdays),weekday:e.weekday}))}function gv(e,t){return`${t}.${Hg(e,2)}`}function mv(e,t,n){return qg(n.getDateParts(n.toDate(e)),dv[t])}function vv({day:e,week:t,month:n,year:r},i,o,a){if("daily"===o&&e){const t=new Date(r,n-1,e),o=lv(t,i);return{day:o.getDate(),month:o.getMonth()+1,year:o.getFullYear()}}if("weekly"===o&&t){const e=a.getMonthParts(n,r),o=e.firstDayOfMonth,s=lv(o,7*(t-1+i)),l=a.getDateParts(s);return{week:l.week,month:l.month,year:l.year}}{const e=new Date(r,n-1,1),t=cv(e,i);return{month:t.getMonth()+1,year:t.getFullYear()}}}function Av(e){return null!=e&&null!=e.month&&null!=e.year}function bv(e,t){return!(!Av(e)||!Av(t))&&(e.year!==t.year?e.year<t.year:e.month&&t.month&&e.month!==t.month?e.month<t.month:e.week&&t.week&&e.week!==t.week?e.week<t.week:!(!e.day||!t.day||e.day===t.day)&&e.day<t.day)}function yv(e,t){return!(!Av(e)||!Av(t))&&(e.year!==t.year?e.year>t.year:e.month&&t.month&&e.month!==t.month?e.month>t.month:e.week&&t.week&&e.week!==t.week?e.week>t.week:!(!e.day||!t.day||e.day===t.day)&&e.day>t.day)}function wv(e,t,n){return!!e&&!bv(e,t)&&!yv(e,n)}function _v(e,t){return!(!e&&t)&&(!(e&&!t)&&(!e&&!t||e.year===t.year&&e.month===t.month&&e.week===t.week&&e.day===t.day))}function xv(e,t,n,r){if(!Av(e)||!Av(t))return[];const i=[];while(!yv(e,t))i.push(e),e=vv(e,1,n,r);return i}function Ev(e){const{day:t,week:n,month:r,year:i}=e;let o=`${i}-${Hg(r,2)}`;return n&&(o=`${o}-w${n}`),t&&(o=`${o}-${Hg(t,2)}`),o}function Sv(e,t){const{month:n,year:r,showWeeknumbers:i,showIsoWeeknumbers:o}=e,a=new Date(r,n-1,15),s=t.getMonthParts(n,r),l=t.getPrevMonthParts(n,r),c=t.getNextMonthParts(n,r),u=hv({monthComps:s,prevMonthComps:l,nextMonthComps:c},t),d=fv(u,i,o,t),h=pv(d[0],t);return{id:Ev(e),month:n,year:r,monthTitle:t.formatDate(a,t.masks.title),shortMonthLabel:t.formatDate(a,"MMM"),monthLabel:t.formatDate(a,"MMMM"),shortYearLabel:r.toString().substring(2),yearLabel:r.toString(),monthComps:s,prevMonthComps:l,nextMonthComps:c,days:u,weeks:d,weekdays:h}}function Cv(e,t){const{day:n,week:r,view:i,trimWeeks:o}=e,a={...t,...e,title:"",viewDays:[],viewWeeks:[]};switch(i){case"daily":{let e=a.days.find(e=>e.inMonth);n?e=a.days.find(e=>e.day===n&&e.inMonth)||e:r&&(e=a.days.find(e=>e.week===r&&e.inMonth));const t=a.weeks[e.week-1];a.viewWeeks=[t],a.viewDays=[e],a.week=e.week,a.weekTitle=t.title,a.day=e.day,a.dayTitle=e.ariaLabel,a.title=a.dayTitle;break}case"weekly":{a.week=r||1;const e=a.weeks[a.week-1];a.viewWeeks=[e],a.viewDays=e.days,a.weekTitle=e.title,a.title=a.weekTitle;break}default:a.title=a.monthTitle,a.viewWeeks=a.weeks.slice(0,o?a.monthComps.numWeeks:void 0),a.viewDays=a.days;break}return a}class Tv{constructor(e,t,n){gt(this,"keys",[]),gt(this,"store",{}),this.size=e,this.createKey=t,this.createItem=n}get(...e){const t=this.createKey(...e);return this.store[t]}getOrSet(...e){const t=this.createKey(...e);if(this.store[t])return this.store[t];const n=this.createItem(...e);if(this.keys.length>=this.size){const e=this.keys.shift();null!=e&&delete this.store[e]}return this.keys.push(t),this.store[t]=n,n}}class kv{constructor(e,t=new iA){var n;gt(this,"order"),gt(this,"locale"),gt(this,"start",null),gt(this,"end",null),gt(this,"repeat",null),this.locale=t;const{start:r,end:i,span:o,order:a,repeat:s}=e;Pg(r)&&(this.start=t.getDateParts(r)),Pg(i)?this.end=t.getDateParts(i):null!=this.start&&o&&(this.end=t.getDateParts(lv(this.start.date,o-1))),this.order=a??0,s&&(this.repeat=new AA({from:null==(n=this.start)?void 0:n.date,...s},{locale:this.locale}))}static fromMany(e,t){return(Ug(e)?e:[e]).filter(e=>e).map(e=>kv.from(e,t))}static from(e,t){if(e instanceof kv)return e;const n={start:null,end:null};return null!=e&&(Ug(e)?(n.start=e[0]??null,n.end=e[1]??null):Fg(e)?Object.assign(n,e):(n.start=e,n.end=e)),null!=n.start&&(n.start=new Date(n.start)),null!=n.end&&(n.end=new Date(n.end)),new kv(n,t)}get opts(){const{order:e,locale:t}=this;return{order:e,locale:t}}get hasRepeat(){return!!this.repeat}get isSingleDay(){const{start:e,end:t}=this;return e&&t&&e.year===t.year&&e.month===t.month&&e.day===t.day}get isMultiDay(){return!this.isSingleDay}get daySpan(){return null==this.start||null==this.end?this.hasRepeat?1:1/0:this.end.dayIndex-this.start.dayIndex}startsOnDay(e){var t,n;return(null==(t=this.start)?void 0:t.dayIndex)===e.dayIndex||!!(null==(n=this.repeat)?void 0:n.passes(e))}intersectsDay(e){return this.intersectsDayRange(e,e)}intersectsRange(e){var t,n;return this.intersectsDayRange((null==(t=e.start)?void 0:t.dayIndex)??-1/0,(null==(n=e.end)?void 0:n.dayIndex)??1/0)}intersectsDayRange(e,t){return!(this.start&&this.start.dayIndex>t)&&!(this.end&&this.end.dayIndex<e)}}class Ov{constructor(){gt(this,"records",{})}render(e,t,n){var r,i,o,a;let s=null;const l=n[0].dayIndex,c=n[n.length-1].dayIndex;return t.hasRepeat?n.forEach(n=>{var r,i;if(t.startsOnDay(n)){const o=t.daySpan<1/0?t.daySpan:1;s={startDay:n.dayIndex,startTime:(null==(r=t.start)?void 0:r.time)??0,endDay:n.dayIndex+o-1,endTime:(null==(i=t.end)?void 0:i.time)??MA},this.getRangeRecords(e).push(s)}}):t.intersectsDayRange(l,c)&&(s={startDay:(null==(r=t.start)?void 0:r.dayIndex)??-1/0,startTime:(null==(i=t.start)?void 0:i.time)??-1/0,endDay:(null==(o=t.end)?void 0:o.dayIndex)??1/0,endTime:(null==(a=t.end)?void 0:a.time)??1/0},this.getRangeRecords(e).push(s)),s}getRangeRecords(e){let t=this.records[e.key];return t||(t={ranges:[],data:e},this.records[e.key]=t),t.ranges}getCell(e,t){const n=this.getCells(t),r=n.find(t=>t.data.key===e);return r}cellExists(e,t){const n=this.records[e];return null!=n&&n.ranges.some(e=>e.startDay<=t&&e.endDay>=t)}getCells(e){const t=Object.values(this.records),n=[],{dayIndex:r}=e;return t.forEach(({data:t,ranges:i})=>{i.filter(e=>e.startDay<=r&&e.endDay>=r).forEach(i=>{const o=r===i.startDay,a=r===i.endDay,s=o?i.startTime:0,l=new Date(e.startDate.getTime()+s),c=a?i.endTime:MA,u=new Date(e.endDate.getTime()+c),d=0===s&&c===MA,h=t.order||0;n.push({...i,data:t,onStart:o,onEnd:a,startTime:s,startDate:l,endTime:c,endDate:u,allDay:d,order:h})})}),n.sort((e,t)=>e.order-t.order),n}}const Mv={ar:{dow:7,L:"D/‏M/‏YYYY"},bg:{dow:2,L:"D.MM.YYYY"},ca:{dow:2,L:"DD/MM/YYYY"},"zh-CN":{dow:2,L:"YYYY/MM/DD"},"zh-TW":{dow:1,L:"YYYY/MM/DD"},hr:{dow:2,L:"DD.MM.YYYY"},cs:{dow:2,L:"DD.MM.YYYY"},da:{dow:2,L:"DD.MM.YYYY"},nl:{dow:2,L:"DD-MM-YYYY"},"en-US":{dow:1,L:"MM/DD/YYYY"},"en-AU":{dow:2,L:"DD/MM/YYYY"},"en-CA":{dow:1,L:"YYYY-MM-DD"},"en-GB":{dow:2,L:"DD/MM/YYYY"},"en-IE":{dow:2,L:"DD-MM-YYYY"},"en-NZ":{dow:2,L:"DD/MM/YYYY"},"en-ZA":{dow:1,L:"YYYY/MM/DD"},eo:{dow:2,L:"YYYY-MM-DD"},et:{dow:2,L:"DD.MM.YYYY"},fi:{dow:2,L:"DD.MM.YYYY"},fr:{dow:2,L:"DD/MM/YYYY"},"fr-CA":{dow:1,L:"YYYY-MM-DD"},"fr-CH":{dow:2,L:"DD.MM.YYYY"},de:{dow:2,L:"DD.MM.YYYY"},he:{dow:1,L:"DD.MM.YYYY"},id:{dow:2,L:"DD/MM/YYYY"},it:{dow:2,L:"DD/MM/YYYY"},ja:{dow:1,L:"YYYY年M月D日"},ko:{dow:1,L:"YYYY.MM.DD"},lv:{dow:2,L:"DD.MM.YYYY"},lt:{dow:2,L:"DD.MM.YYYY"},mk:{dow:2,L:"D.MM.YYYY"},nb:{dow:2,L:"D. MMMM YYYY"},nn:{dow:2,L:"D. MMMM YYYY"},pl:{dow:2,L:"DD.MM.YYYY"},pt:{dow:2,L:"DD/MM/YYYY"},ro:{dow:2,L:"DD.MM.YYYY"},ru:{dow:2,L:"DD.MM.YYYY"},sk:{dow:2,L:"DD.MM.YYYY"},"es-ES":{dow:2,L:"DD/MM/YYYY"},"es-MX":{dow:2,L:"DD/MM/YYYY"},sv:{dow:2,L:"YYYY-MM-DD"},th:{dow:1,L:"DD/MM/YYYY"},tr:{dow:2,L:"DD.MM.YYYY"},uk:{dow:2,L:"DD.MM.YYYY"},vi:{dow:2,L:"DD/MM/YYYY"}};Mv.en=Mv["en-US"],Mv.es=Mv["es-ES"],Mv.no=Mv.nb,Mv.zh=Mv["zh-CN"];const Iv=Object.entries(Mv).reduce((e,[t,{dow:n,L:r}])=>(e[t]={id:t,firstDayOfWeek:n,masks:{L:r}},e),{}),Dv="MMMM YYYY",Nv="W",Rv="MMM",Lv="h A",Bv=["L","YYYY-MM-DD","YYYY/MM/DD"],Pv=["L h:mm A","YYYY-MM-DD h:mm A","YYYY/MM/DD h:mm A"],Fv=["L HH:mm","YYYY-MM-DD HH:mm","YYYY/MM/DD HH:mm"],$v=["h:mm A"],jv=["HH:mm"],Hv="WWW, MMM D, YYYY",Uv=["L","YYYY-MM-DD","YYYY/MM/DD"],Qv="iso",zv="YYYY-MM-DDTHH:mm:ss.SSSZ",Wv={title:Dv,weekdays:Nv,navMonths:Rv,hours:Lv,input:Bv,inputDateTime:Pv,inputDateTime24hr:Fv,inputTime:$v,inputTime24hr:jv,dayPopover:Hv,data:Uv,model:Qv,iso:zv},Gv=300,Vv=60,Kv=80,Yv={maxSwipeTime:Gv,minHorizontalSwipeDistance:Vv,maxVerticalSwipeDistance:Kv},qv={componentPrefix:"V",color:"blue",isDark:!1,navVisibility:"click",titlePosition:"center",transition:"slide-h",touch:Yv,masks:Wv,locales:Iv,datePicker:{updateOnInput:!0,inputDebounce:1e3,popover:{visibility:"hover-focus",placement:"bottom-start",isInteractive:!0}}},Xv=(0,r.Kh)(qv),Jv=(0,i.EW)(()=>Kh(Xv.locales,e=>(e.masks=Ig(e.masks,Xv.masks),e))),Zv=e=>"undefined"!==typeof window&&$g(window.__vcalendar__,e)?ad(window.__vcalendar__,e):ad(Xv,e),eA=(e,t)=>(e.config.globalProperties.$VCalendar=Xv,Object.assign(Xv,Ig(t,Xv))),tA=12,nA=5;function rA(e,t){const n=(new Intl.DateTimeFormat).resolvedOptions().locale;let r;ma(e)?r=e:$g(e,"id")&&(r=e.id),r=(r||n).toLowerCase();const i=Object.keys(t),o=e=>i.find(t=>t.toLowerCase()===e);r=o(r)||o(r.substring(0,2))||n;const a={...t["en-IE"],...t[r],id:r,monthCacheSize:tA,pageCacheSize:nA},s=Fg(e)?Ig(e,a):a;return s}class iA{constructor(e=void 0,t){gt(this,"id"),gt(this,"daysInWeek"),gt(this,"firstDayOfWeek"),gt(this,"masks"),gt(this,"timezone"),gt(this,"hourLabels"),gt(this,"dayNames"),gt(this,"dayNamesShort"),gt(this,"dayNamesShorter"),gt(this,"dayNamesNarrow"),gt(this,"monthNames"),gt(this,"monthNamesShort"),gt(this,"relativeTimeNames"),gt(this,"amPm",["am","pm"]),gt(this,"monthCache"),gt(this,"pageCache");const{id:n,firstDayOfWeek:r,masks:i,monthCacheSize:o,pageCacheSize:a}=rA(e,Jv.value);this.monthCache=new Tv(o,eb,tb),this.pageCache=new Tv(a,Ev,Sv),this.id=n,this.daysInWeek=SA,this.firstDayOfWeek=Xg(r,1,SA),this.masks=i,this.timezone=t||void 0,this.hourLabels=this.getHourLabels(),this.dayNames=rb("long",this.id),this.dayNamesShort=rb("short",this.id),this.dayNamesShorter=this.dayNamesShort.map(e=>e.substring(0,2)),this.dayNamesNarrow=rb("narrow",this.id),this.monthNames=sb("long",this.id),this.monthNamesShort=sb("short",this.id),this.relativeTimeNames=ob(this.id)}formatDate(e,t){return pb(e,t,this)}parseDate(e,t){return fb(e,t,this)}toDate(e,t={}){const n=new Date(NaN);let r=n;const{fillDate:i,mask:o,patch:a,rules:s}=t;if(Ih(e)?(t.type="number",r=new Date(+e)):ma(e)?(t.type="string",r=e?fb(e,o||"iso",this):n):Pg(e)?(t.type="date",r=new Date(e.getTime())):WA(e)&&(t.type="object",r=this.getDateFromParts(e)),r&&(a||s)){let e=this.getDateParts(r);if(a&&null!=i){const t=this.getDateParts(this.toDate(i));e=this.getDateParts(this.toDate({...t,...qg(e,EA[a])}))}s&&(e=hb(e,s)),r=this.getDateFromParts(e)}return r||n}toDateOrNull(e,t={}){const n=this.toDate(e,t);return isNaN(n.getTime())?null:n}fromDate(e,{type:t,mask:n}={}){switch(t){case"number":return e?e.getTime():NaN;case"string":return e?this.formatDate(e,n||"iso"):"";case"object":return e?this.getDateParts(e):null;default:return e?new Date(e):null}}range(e){return kv.from(e,this)}ranges(e){return kv.fromMany(e,this)}getDateParts(e){return ZA(e,this)}getDateFromParts(e){return JA(e,this.timezone)}getDateFromParams(e,t,n,r,i,o,a){return this.getDateFromParts({year:e,month:t,day:n,hours:r,minutes:i,seconds:o,milliseconds:a})}getPage(e){const t=this.pageCache.getOrSet(e,this);return Cv(e,t)}getMonthParts(e,t){const{firstDayOfWeek:n}=this;return this.monthCache.getOrSet(e,t,n)}getThisMonthParts(){const e=new Date;return this.getMonthParts(e.getMonth()+1,e.getFullYear())}getPrevMonthParts(e,t){return 1===e?this.getMonthParts(12,t-1):this.getMonthParts(e-1,t)}getNextMonthParts(e,t){return 12===e?this.getMonthParts(1,t+1):this.getMonthParts(e+1,t)}getHourLabels(){return ib().map(e=>this.formatDate(e,this.masks.hours))}getDayId(e){return this.formatDate(e,"YYYY-MM-DD")}}var oA=(e=>(e["Any"]="any",e["All"]="all",e))(oA||{}),aA=(e=>(e["Days"]="days",e["Weeks"]="weeks",e["Months"]="months",e["Years"]="years",e))(aA||{}),sA=(e=>(e["Days"]="days",e["Weekdays"]="weekdays",e["Weeks"]="weeks",e["Months"]="months",e["Years"]="years",e))(sA||{}),lA=(e=>(e["OrdinalWeekdays"]="ordinalWeekdays",e))(lA||{});class cA{constructor(e,t,n){gt(this,"validated",!0),this.type=e,this.interval=t,this.from=n,this.from||(console.error('A valid "from" date is required for date interval rule. This rule will be skipped.'),this.validated=!1)}passes(e){if(!this.validated)return!0;const{date:t}=e;switch(this.type){case"days":return KA(this.from.date,t)%this.interval===0;case"weeks":return YA(this.from.date,t)%this.interval===0;case"months":return XA(this.from.date,t)%this.interval===0;case"years":return qA(this.from.date,t)%this.interval===0;default:return!1}}}class uA{constructor(e,t,n,r){gt(this,"components",[]),this.type=e,this.validator=n,this.getter=r,this.components=this.normalizeComponents(t)}static create(e,t){switch(e){case"days":return new dA(t);case"weekdays":return new hA(t);case"weeks":return new fA(t);case"months":return new pA(t);case"years":return new gA(t)}}normalizeComponents(e){if(this.validator(e))return[e];if(!Ug(e))return[];const t=[];return e.forEach(e=>{this.validator(e)?t.push(e):console.error(`Component value ${e} in invalid for "${this.type}" rule. This rule will be skipped.`)}),t}passes(e){const t=this.getter(e),n=t.some(e=>this.components.includes(e));return n}}class dA extends uA{constructor(e){super("days",e,bA,({day:e,dayFromEnd:t})=>[e,-t])}}class hA extends uA{constructor(e){super("weekdays",e,yA,({weekday:e})=>[e])}}class fA extends uA{constructor(e){super("weeks",e,wA,({week:e,weekFromEnd:t})=>[e,-t])}}class pA extends uA{constructor(e){super("months",e,_A,({month:e})=>[e])}}class gA extends uA{constructor(e){super("years",e,Ih,({year:e})=>[e])}}class mA{constructor(e,t){gt(this,"components"),this.type=e,this.components=this.normalizeComponents(t)}normalizeArrayConfig(e){const t=[];return e.forEach((n,r)=>{if(Ih(n)){if(0===r)return;if(!xA(e[0]))return void console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);if(!yA(n))return void console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);t.push([e[0],n])}else Ug(n)&&t.push(...this.normalizeArrayConfig(n))}),t}normalizeComponents(e){const t=[];return e.forEach((n,r)=>{if(Ih(n)){if(0===r)return;if(!xA(e[0]))return void console.error(`Ordinal range for "${this.type}" rule is from -5 to -1 or 1 to 5. This rule will be skipped.`);if(!yA(n))return void console.error(`Acceptable range for "${this.type}" rule is from 1 to 5. This rule will be skipped`);t.push([e[0],n])}else Ug(n)&&t.push(...this.normalizeArrayConfig(n))}),t}passes(e){const{weekday:t,weekdayOrdinal:n,weekdayOrdinalFromEnd:r}=e;return this.components.some(([e,i])=>(e===n||e===-r)&&t===i)}}class vA{constructor(e){gt(this,"type","function"),gt(this,"validated",!0),this.fn=e,wn(e)||(console.error("The function rule requires a valid function. This rule will be skipped."),this.validated=!1)}passes(e){return!this.validated||this.fn(e)}}class AA{constructor(e,t={},n){gt(this,"validated",!0),gt(this,"config"),gt(this,"type",oA.Any),gt(this,"from"),gt(this,"until"),gt(this,"rules",[]),gt(this,"locale",new iA),this.parent=n,t.locale&&(this.locale=t.locale),this.config=e,wn(e)?(this.type=oA.All,this.rules=[new vA(e)]):Ug(e)?(this.type=oA.Any,this.rules=e.map(e=>new AA(e,t,this))):Fg(e)?(this.type=oA.All,this.from=e.from?this.locale.getDateParts(e.from):null==n?void 0:n.from,this.until=e.until?this.locale.getDateParts(e.until):null==n?void 0:n.until,this.rules=this.getObjectRules(e)):(console.error("Rule group configuration must be an object or an array."),this.validated=!1)}getObjectRules(e){const t=[];if(e.every&&(ma(e.every)&&(e.every=[1,`${e.every}s`]),Ug(e.every))){const[n=1,r=aA.Days]=e.every;t.push(new cA(r,n,this.from))}return Object.values(sA).forEach(n=>{n in e&&t.push(uA.create(n,e[n]))}),Object.values(lA).forEach(n=>{n in e&&t.push(new mA(n,e[n]))}),null!=e.on&&(Ug(e.on)||(e.on=[e.on]),t.push(new AA(e.on,{locale:this.locale},this.parent))),t}passes(e){return!this.validated||!(this.from&&e.dayIndex<=this.from.dayIndex)&&(!(this.until&&e.dayIndex>=this.until.dayIndex)&&(this.type===oA.Any?this.rules.some(t=>t.passes(e)):this.rules.every(t=>t.passes(e))))}}function bA(e){return!!Ih(e)&&(e>=1&&e<=31)}function yA(e){return!!Ih(e)&&(e>=1&&e<=7)}function wA(e){return!!Ih(e)&&(e>=-6&&e<=-1||e>=1&&e<=6)}function _A(e){return!!Ih(e)&&(e>=1&&e<=12)}function xA(e){return!!Ih(e)&&!(e<-5||e>5||0===e)}const EA={dateTime:["year","month","day","hours","minutes","seconds","milliseconds"],date:["year","month","day"],time:["hours","minutes","seconds","milliseconds"]},SA=7,CA=6,TA=1e3,kA=60*TA,OA=60*kA,MA=24*OA,IA=[31,28,31,30,31,30,31,31,30,31,30,31],DA=["L","iso"],NA={milliseconds:[0,999,3],seconds:[0,59,2],minutes:[0,59,2],hours:[0,23,2]},RA=/d{1,2}|W{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|Z{1,4}|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,LA=/\[([^]*?)\]/gm,BA={D(e){return e.day},DD(e){return Hg(e.day,2)},d(e){return e.weekday-1},dd(e){return Hg(e.weekday-1,2)},W(e,t){return t.dayNamesNarrow[e.weekday-1]},WW(e,t){return t.dayNamesShorter[e.weekday-1]},WWW(e,t){return t.dayNamesShort[e.weekday-1]},WWWW(e,t){return t.dayNames[e.weekday-1]},M(e){return e.month},MM(e){return Hg(e.month,2)},MMM(e,t){return t.monthNamesShort[e.month-1]},MMMM(e,t){return t.monthNames[e.month-1]},YY(e){return String(e.year).substr(2)},YYYY(e){return Hg(e.year,4)},h(e){return e.hours%12||12},hh(e){return Hg(e.hours%12||12,2)},H(e){return e.hours},HH(e){return Hg(e.hours,2)},m(e){return e.minutes},mm(e){return Hg(e.minutes,2)},s(e){return e.seconds},ss(e){return Hg(e.seconds,2)},S(e){return Math.round(e.milliseconds/100)},SS(e){return Hg(Math.round(e.milliseconds/10),2)},SSS(e){return Hg(e.milliseconds,3)},a(e,t){return e.hours<12?t.amPm[0]:t.amPm[1]},A(e,t){return e.hours<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},Z(){return"Z"},ZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${Hg(Math.floor(Math.abs(t)/60),2)}`},ZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${Hg(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}`},ZZZZ(e){const t=e.timezoneOffset;return`${t>0?"-":"+"}${Hg(Math.floor(Math.abs(t)/60),2)}:${Hg(Math.abs(t)%60,2)}`}},PA=/\d\d?/,FA=/\d{3}/,$A=/\d{4}/,jA=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF/]+(\s*?[\u0600-\u06FF]+){1,2}/i,HA=()=>{},UA=e=>(t,n,r)=>{const i=r[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~i&&(t.month=i)},QA={D:[PA,(e,t)=>{e.day=t}],Do:[new RegExp(PA.source+jA.source),(e,t)=>{e.day=parseInt(t,10)}],d:[PA,HA],W:[jA,HA],M:[PA,(e,t)=>{e.month=t-1}],MMM:[jA,UA("monthNamesShort")],MMMM:[jA,UA("monthNames")],YY:[PA,(e,t)=>{const n=new Date,r=+n.getFullYear().toString().substr(0,2);e.year=+`${t>68?r-1:r}${t}`}],YYYY:[$A,(e,t)=>{e.year=t}],S:[/\d/,(e,t)=>{e.milliseconds=100*t}],SS:[/\d{2}/,(e,t)=>{e.milliseconds=10*t}],SSS:[FA,(e,t)=>{e.milliseconds=t}],h:[PA,(e,t)=>{e.hours=t}],m:[PA,(e,t)=>{e.minutes=t}],s:[PA,(e,t)=>{e.seconds=t}],a:[jA,(e,t,n)=>{const r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],Z:[/[^\s]*?[+-]\d\d:?\d\d|[^\s]*?Z?/,(e,t)=>{"Z"===t&&(t="+00:00");const n=`${t}`.match(/([+-]|\d\d)/gi);if(n){const t=60*+n[1]+parseInt(n[2],10);e.timezoneOffset="+"===n[0]?t:-t}}]};function zA(e,t){return(Qg(e)&&e||[ma(e)&&e||"YYYY-MM-DD"]).map(e=>DA.reduce((e,n)=>e.replace(n,t.masks[n]||""),e))}function WA(e){return Fg(e)&&"year"in e&&"month"in e&&"day"in e}function GA(e,t=1){const n=e.getDay()+1,r=n>=t?t-n:-(7-(t-n));return lv(e,r)}function VA(e,t,n){const r=Date.UTC(e,t-1,n);return KA(new Date(0),new Date(r))}function KA(e,t){return Math.round((t.getTime()-e.getTime())/MA)}function YA(e,t){return Math.ceil(KA(GA(e),GA(t))/7)}function qA(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}function XA(e,t){return 12*qA(e,t)+(t.getMonth()-e.getMonth())}function JA(e,t=""){const n=new Date,{year:r=n.getFullYear(),month:i=n.getMonth()+1,day:o=n.getDate(),hours:a=0,minutes:s=0,seconds:l=0,milliseconds:c=0}=e;if(t){const e=`${Hg(r,4)}-${Hg(i,2)}-${Hg(o,2)}T${Hg(a,2)}:${Hg(s,2)}:${Hg(l,2)}.${Hg(c,3)}`;return Tm(e,{timeZone:t})}return new Date(r,i-1,o,a,s,l,c)}function ZA(e,t){let n=new Date(e.getTime());t.timezone&&(n=new Date(e.toLocaleString("en-US",{timeZone:t.timezone})),n.setMilliseconds(e.getMilliseconds()));const r=n.getMilliseconds(),i=n.getSeconds(),o=n.getMinutes(),a=n.getHours(),s=r+i*TA+o*kA+a*OA,l=n.getMonth()+1,c=n.getFullYear(),u=t.getMonthParts(l,c),d=n.getDate(),h=u.numDays-d+1,f=n.getDay()+1,p=Math.floor((d-1)/7+1),g=Math.floor((u.numDays-d)/7+1),m=Math.ceil((d+Math.abs(u.firstWeekday-u.firstDayOfWeek))/7),v=u.numWeeks-m+1,A=u.weeknumbers[m],b=VA(c,l,d),y={milliseconds:r,seconds:i,minutes:o,hours:a,time:s,day:d,dayFromEnd:h,weekday:f,weekdayOrdinal:p,weekdayOrdinalFromEnd:g,week:m,weekFromEnd:v,weeknumber:A,month:l,year:c,date:n,dateTime:n.getTime(),dayIndex:b,timezoneOffset:0,isValid:!0};return y}function eb(e,t,n){return`${t}-${e}-${n}`}function tb(e,t,n){const r=t%4===0&&t%100!==0||t%400===0,i=new Date(t,e-1,1),o=i.getDay()+1,a=2===e&&r?29:IA[e-1],s=n-1,l=Jm(i,{weekStartsOn:s}),c=[],u=[];for(let d=0;d<l;d++){const e=lv(i,7*d);c.push(nv(e,{weekStartsOn:s})),u.push(sv(e))}return{firstDayOfWeek:n,firstDayOfMonth:i,inLeapYear:r,firstWeekday:o,numDays:a,numWeeks:l,month:e,year:t,weeknumbers:c,isoWeeknumbers:u}}function nb(){const e=[],t=2020,n=1,r=5;for(let i=0;i<SA;i++)e.push(JA({year:t,month:n,day:r+i,hours:12}));return e}function rb(e,t=void 0){const n=new Intl.DateTimeFormat(t,{weekday:e});return nb().map(e=>n.format(e))}function ib(){const e=[];for(let t=0;t<=24;t++)e.push(new Date(2e3,0,1,t));return e}function ob(e=void 0){const t=["second","minute","hour","day","week","month","quarter","year"],n=new Intl.RelativeTimeFormat(e);return t.reduce((e,t)=>{const r=n.formatToParts(100,t);return e[t]=r[1].unit,e},{})}function ab(){const e=[];for(let t=0;t<12;t++)e.push(new Date(2e3,t,15));return e}function sb(e,t=void 0){const n=new Intl.DateTimeFormat(t,{month:e,timeZone:"UTC"});return ab().map(e=>n.format(e))}function lb(e,t,n){return Ih(t)?t===e:Ug(t)?t.includes(e):wn(t)?t(e,n):!(null!=t.min&&t.min>e)&&(!(null!=t.max&&t.max<e)&&(null==t.interval||e%t.interval===0))}function cb(e,t,n){const r=[],[i,o,a]=t;for(let s=i;s<=o;s++)(null==n||lb(s,n,e))&&r.push({value:s,label:Hg(s,a)});return r}function ub(e,t){return{milliseconds:cb(e,NA.milliseconds,t.milliseconds),seconds:cb(e,NA.seconds,t.seconds),minutes:cb(e,NA.minutes,t.minutes),hours:cb(e,NA.hours,t.hours)}}function db(e,t,n,r){const i=cb(e,t,r),o=i.reduce((e,t)=>{if(t.disabled)return e;if(isNaN(e))return t.value;const r=Math.abs(e-n),i=Math.abs(t.value-n);return i<r?t.value:e},NaN);return isNaN(o)?n:o}function hb(e,t){const n={...e};return Object.entries(t).forEach(([t,r])=>{const i=NA[t],o=e[t];n[t]=db(e,i,o,r)}),n}function fb(e,t,n){const r=zA(t,n);return r.map(t=>{if("string"!==typeof t)throw new Error("Invalid mask");let r=e;if(r.length>1e3)return!1;let i=!0;const o={};if(t.replace(RA,e=>{if(QA[e]){const t=QA[e],a=r.search(t[0]);~a?r.replace(t[0],e=>(t[1](o,e,n),r=r.substr(a+e.length),e)):i=!1}return QA[e]?"":e.slice(1,e.length-1)}),!i)return!1;const a=new Date;let s;return null!=o.hours&&(!0===o.isPm&&12!==+o.hours?o.hours=+o.hours+12:!1===o.isPm&&12===+o.hours&&(o.hours=0)),null!=o.timezoneOffset?(o.minutes=+(o.minutes||0)-+o.timezoneOffset,s=new Date(Date.UTC(o.year||a.getFullYear(),o.month||0,o.day||1,o.hours||0,o.minutes||0,o.seconds||0,o.milliseconds||0))):s=n.getDateFromParts({year:o.year||a.getFullYear(),month:(o.month||0)+1,day:o.day||1,hours:o.hours||0,minutes:o.minutes||0,seconds:o.seconds||0,milliseconds:o.milliseconds||0}),s}).find(e=>e)||new Date(e)}function pb(e,t,n){if(null==e)return"";let r=zA(t,n)[0];/Z$/.test(r)&&(n.timezone="utc");const i=[];r=r.replace(LA,(e,t)=>(i.push(t),"??"));const o=n.getDateParts(e);return r=r.replace(RA,e=>e in BA?BA[e](o,n):e.slice(1,e.length-1)),r.replace(/\?\?/g,()=>i.shift())}QA.DD=QA.D,QA.dd=QA.d,QA.WWWW=QA.WWW=QA.WW=QA.W,QA.MM=QA.M,QA.mm=QA.m,QA.hh=QA.H=QA.HH=QA.h,QA.ss=QA.s,QA.A=QA.a,QA.ZZZZ=QA.ZZZ=QA.ZZ=QA.Z;let gb=0;class mb{constructor(e,t,n){gt(this,"key",""),gt(this,"hashcode",""),gt(this,"highlight",null),gt(this,"content",null),gt(this,"dot",null),gt(this,"bar",null),gt(this,"event",null),gt(this,"popover",null),gt(this,"customData",null),gt(this,"ranges"),gt(this,"hasRanges",!1),gt(this,"order",0),gt(this,"pinPage",!1),gt(this,"maxRepeatSpan",0),gt(this,"locale");const{dates:r}=Object.assign(this,{hashcode:"",order:0,pinPage:!1},e);this.key||(this.key=++gb),this.locale=n,t.normalizeGlyphs(this),this.ranges=n.ranges(r??[]),this.hasRanges=!!Qg(this.ranges),this.maxRepeatSpan=this.ranges.filter(e=>e.hasRepeat).map(e=>e.daySpan).reduce((e,t)=>Math.max(e,t),0)}intersectsRange({start:e,end:t}){if(null==e||null==t)return!1;const n=this.ranges.filter(e=>!e.hasRepeat);for(const o of n)if(o.intersectsDayRange(e.dayIndex,t.dayIndex))return!0;const r=this.ranges.filter(e=>e.hasRepeat);if(!r.length)return!1;let i=e;this.maxRepeatSpan>1&&(i=this.locale.getDateParts(lv(i.date,-this.maxRepeatSpan)));while(i.dayIndex<=t.dayIndex){for(const e of r)if(e.startsOnDay(i))return!0;i=this.locale.getDateParts(lv(i.date,1))}return!1}}function vb(e){document&&document.dispatchEvent(new CustomEvent("show-popover",{detail:e}))}function Ab(e){document&&document.dispatchEvent(new CustomEvent("hide-popover",{detail:e}))}function bb(e){document&&document.dispatchEvent(new CustomEvent("toggle-popover",{detail:e}))}function yb(e){const{visibility:t}=e,n="click"===t,r="hover"===t,i="hover-focus"===t,o="focus"===t;e.autoHide=!n;let a=!1,s=!1;const l=t=>{n&&(bb({...e,target:e.target||t.currentTarget}),t.stopPropagation())},c=t=>{a||(a=!0,(r||i)&&vb({...e,target:e.target||t.currentTarget}))},u=()=>{a&&(a=!1,(r||i&&!s)&&Ab(e))},d=t=>{s||(s=!0,(o||i)&&vb({...e,target:e.target||t.currentTarget}))},h=t=>{s&&!Vg(t.currentTarget,t.relatedTarget)&&(s=!1,(o||i&&!a)&&Ab(e))},f={};switch(e.visibility){case"click":f.click=l;break;case"hover":f.mousemove=c,f.mouseleave=u;break;case"focus":f.focusin=d,f.focusout=h;break;case"hover-focus":f.mousemove=c,f.mouseleave=u,f.focusin=d,f.focusout=h;break}return f}const wb=e=>{const t=zg(e);if(null==t)return;const n=t.popoverHandlers;n&&n.length&&(n.forEach(e=>e()),delete t.popoverHandlers)},_b=(e,t)=>{const n=zg(e);if(null==n)return;const r=[],i=yb(t);Object.entries(i).forEach(([e,t])=>{r.push(Gg(n,e,t))}),n.popoverHandlers=r},xb={mounted(e,t){const{value:n}=t;n&&_b(e,n)},updated(e,t){const{oldValue:n,value:r}=t,i=null==n?void 0:n.visibility,o=null==r?void 0:r.visibility;i!==o&&(i&&(wb(e),o||Ab(n)),o&&_b(e,r))},unmounted(e){wb(e)}},Eb=(e,t,{maxSwipeTime:n,minHorizontalSwipeDistance:r,maxVerticalSwipeDistance:i})=>{if(!e||!e.addEventListener||!wn(t))return null;let o=0,a=0,s=null,l=!1;function c(e){const t=e.changedTouches[0];o=t.screenX,a=t.screenY,s=(new Date).getTime(),l=!0}function u(e){if(!l||!s)return;l=!1;const c=e.changedTouches[0],u=c.screenX-o,d=c.screenY-a,h=(new Date).getTime()-s;if(h<n&&Math.abs(u)>=r&&Math.abs(d)<=i){const e={toLeft:!1,toRight:!1};u<0?e.toLeft=!0:e.toRight=!0,t(e)}}return Gg(e,"touchstart",c,{passive:!0}),Gg(e,"touchend",u,{passive:!0}),()=>{Wg(e,"touchstart",c),Wg(e,"touchend",u)}},Sb={},Cb=(e,t=10)=>{Sb[e]=Date.now()+t},Tb=(e,t)=>{if(e in Sb){const t=Sb[e];if(Date.now()<t)return;delete Sb[e]}t()};function kb(){return"undefined"!==typeof window}function Ob(e){return kb()&&e in window}function Mb(e){const t=(0,r.KR)(!1),n=(0,i.EW)(()=>t.value?"dark":"light");let o,a;function s(e){t.value=e.matches}function l(){Ob("matchMedia")&&(o=window.matchMedia("(prefers-color-scheme: dark)"),o.addEventListener("change",s),t.value=o.matches)}function c(){const{selector:n=":root",darkClass:r="dark"}=e.value,i=document.querySelector(n);t.value=i.classList.contains(r)}function u(e){const{selector:n=":root",darkClass:r="dark"}=e;if(kb()&&n&&r){const e=document.querySelector(n);e&&(a=new MutationObserver(c),a.observe(e,{attributes:!0,attributeFilter:["class"]}),t.value=e.classList.contains(r))}}function d(){f();const n=typeof e.value;"string"===n&&"system"===e.value.toLowerCase()?l():"object"===n?u(e.value):t.value=!!e.value}const h=(0,i.wB)(()=>e.value,()=>d(),{immediate:!0});function f(){o&&(o.removeEventListener("change",s),o=void 0),a&&(a.disconnect(),a=void 0)}function p(){f(),h()}return(0,i.hi)(()=>p()),{isDark:t,displayMode:n,cleanup:p}}const Ib=["base","start","end","startEnd"],Db=["class","wrapperClass","contentClass","style","contentStyle","color","fillMode"],Nb={base:{},start:{},end:{}};function Rb(e,t,n=Nb){let r=e,i={};!0===t||ma(t)?(r=ma(t)?t:r,i={...n}):Fg(t)&&(i=jg(t,Ib)?{...t}:{base:{...t},start:{...t},end:{...t}});const o=Ig(i,{start:i.startEnd,end:i.startEnd},n);return Object.entries(o).forEach(([e,t])=>{let n=r;!0===t||ma(t)?(n=ma(t)?t:n,o[e]={color:n}):Fg(t)&&(jg(t,Db)?o[e]={...t}:o[e]={}),Ig(o[e],{color:n})}),o}class Lb{constructor(){gt(this,"type","highlight")}normalizeConfig(e,t){return Rb(e,t,{base:{fillMode:"light"},start:{fillMode:"solid"},end:{fillMode:"solid"}})}prepareRender(e){e.highlights=[],e.content||(e.content=[])}render({data:e,onStart:t,onEnd:n},r){const{key:i,highlight:o}=e;if(!o)return;const{highlights:a}=r,{base:s,start:l,end:c}=o;t&&n?a.push({...l,key:i,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-bg-${l.fillMode}`,l.class],contentClass:[`vc-attr vc-highlight-content-${l.fillMode} vc-${l.color}`,l.contentClass]}):t?(a.push({...s,key:`${i}-base`,wrapperClass:`vc-day-layer vc-day-box-right-center vc-attr vc-${s.color}`,class:[`vc-highlight vc-highlight-base-start vc-highlight-bg-${s.fillMode}`,s.class]}),a.push({...l,key:i,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${l.color}`,class:[`vc-highlight vc-highlight-bg-${l.fillMode}`,l.class],contentClass:[`vc-attr vc-highlight-content-${l.fillMode} vc-${l.color}`,l.contentClass]})):n?(a.push({...s,key:`${i}-base`,wrapperClass:`vc-day-layer vc-day-box-left-center vc-attr vc-${s.color}`,class:[`vc-highlight vc-highlight-base-end vc-highlight-bg-${s.fillMode}`,s.class]}),a.push({...c,key:i,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${c.color}`,class:[`vc-highlight vc-highlight-bg-${c.fillMode}`,c.class],contentClass:[`vc-attr vc-highlight-content-${c.fillMode} vc-${c.color}`,c.contentClass]})):a.push({...s,key:`${i}-middle`,wrapperClass:`vc-day-layer vc-day-box-center-center vc-attr vc-${s.color}`,class:[`vc-highlight vc-highlight-base-middle vc-highlight-bg-${s.fillMode}`,s.class],contentClass:[`vc-attr vc-highlight-content-${s.fillMode} vc-${s.color}`,s.contentClass]})}}class Bb{constructor(e,t){gt(this,"type",""),gt(this,"collectionType",""),this.type=e,this.collectionType=t}normalizeConfig(e,t){return Rb(e,t)}prepareRender(e){e[this.collectionType]=[]}render({data:e,onStart:t,onEnd:n},r){const{key:i}=e,o=e[this.type];if(!i||!o)return;const a=r[this.collectionType],{base:s,start:l,end:c}=o;t?a.push({...l,key:i,class:[`vc-${this.type} vc-${this.type}-start vc-${l.color} vc-attr`,l.class]}):n?a.push({...c,key:i,class:[`vc-${this.type} vc-${this.type}-end vc-${c.color} vc-attr`,c.class]}):a.push({...s,key:i,class:[`vc-${this.type} vc-${this.type}-base vc-${s.color} vc-attr`,s.class]})}}class Pb extends Bb{constructor(){super("content","content")}normalizeConfig(e,t){return Rb("base",t)}}class Fb extends Bb{constructor(){super("dot","dots")}}class $b extends Bb{constructor(){super("bar","bars")}}class jb{constructor(e){gt(this,"color"),gt(this,"renderers",[new Pb,new Lb,new Fb,new $b]),this.color=e}normalizeGlyphs(e){this.renderers.forEach(t=>{const n=t.type;null!=e[n]&&(e[n]=t.normalizeConfig(this.color,e[n]))})}prepareRender(e={}){return this.renderers.forEach(t=>{t.prepareRender(e)}),e}render(e,t){this.renderers.forEach(n=>{n.render(e,t)})}}const Hb=Symbol("__vc_base_context__"),Ub={color:{type:String,default:()=>Zv("color")},isDark:{type:[Boolean,String,Object],default:()=>Zv("isDark")},firstDayOfWeek:Number,masks:Object,locale:[String,Object],timezone:String,minDate:null,maxDate:null,disabledDates:null};function Qb(e){const t=(0,i.EW)(()=>e.color??""),n=(0,i.EW)(()=>e.isDark??!1),{displayMode:r}=Mb(n),o=(0,i.EW)(()=>new jb(t.value)),a=(0,i.EW)(()=>{if(e.locale instanceof iA)return e.locale;const t=Fg(e.locale)?e.locale:{id:e.locale,firstDayOfWeek:e.firstDayOfWeek,masks:e.masks};return new iA(t,e.timezone)}),s=(0,i.EW)(()=>a.value.masks),l=(0,i.EW)(()=>e.minDate),c=(0,i.EW)(()=>e.maxDate),u=(0,i.EW)(()=>{const t=e.disabledDates?[...e.disabledDates]:[];return null!=l.value&&t.push({start:null,end:lv(a.value.toDate(l.value),-1)}),null!=c.value&&t.push({start:lv(a.value.toDate(c.value),1),end:null}),a.value.ranges(t)}),d=(0,i.EW)(()=>new mb({key:"disabled",dates:u.value,order:100},o.value,a.value)),h={color:t,isDark:n,displayMode:r,theme:o,locale:a,masks:s,minDate:l,maxDate:c,disabledDates:u,disabledAttribute:d};return(0,i.Gt)(Hb,h),h}function zb(e){return(0,i.WQ)(Hb,()=>Qb(e),!0)}function Wb(e){return`__vc_slot_${e}__`}function Gb(e,t={}){Object.keys(e).forEach(n=>{(0,i.Gt)(Wb(t[n]??n),e[n])})}function Vb(e){return(0,i.WQ)(Wb(e),null)}const Kb={...Ub,view:{type:String,default:"monthly",validator(e){return["daily","weekly","monthly"].includes(e)}},rows:{type:Number,default:1},columns:{type:Number,default:1},step:Number,titlePosition:{type:String,default:()=>Zv("titlePosition")},navVisibility:{type:String,default:()=>Zv("navVisibility")},showWeeknumbers:[Boolean,String],showIsoWeeknumbers:[Boolean,String],expanded:Boolean,borderless:Boolean,transparent:Boolean,initialPage:Object,initialPagePosition:{type:Number,default:1},minPage:Object,maxPage:Object,transition:String,attributes:Array,trimWeeks:Boolean,disablePageSwipe:Boolean},Yb=["dayclick","daymouseenter","daymouseleave","dayfocusin","dayfocusout","daykeydown","weeknumberclick","transition-start","transition-end","did-move","update:view","update:pages"],qb=Symbol("__vc_calendar_context__");function Xb(e,{slots:t,emit:n}){const o=(0,r.KR)(null),a=(0,r.KR)(null),s=(0,r.KR)((new Date).getDate()),l=(0,r.KR)(!1),c=(0,r.KR)(Symbol()),u=(0,r.KR)(Symbol()),d=(0,r.KR)(e.view),h=(0,r.KR)([]),f=(0,r.KR)("");let p=null,g=null;Gb(t);const{theme:m,color:v,displayMode:A,locale:b,masks:y,minDate:w,maxDate:_,disabledAttribute:x,disabledDates:E}=zb(e),S=(0,i.EW)(()=>e.rows*e.columns),C=(0,i.EW)(()=>e.step||S.value),T=(0,i.EW)(()=>Ng(h.value)??null),k=(0,i.EW)(()=>Lg(h.value)??null),O=(0,i.EW)(()=>e.minPage||(w.value?j(w.value):null)),M=(0,i.EW)(()=>e.maxPage||(_.value?j(_.value):null)),I=(0,i.EW)(()=>e.navVisibility),D=(0,i.EW)(()=>!!e.showWeeknumbers),N=(0,i.EW)(()=>!!e.showIsoWeeknumbers),R=(0,i.EW)(()=>"monthly"===d.value),L=(0,i.EW)(()=>"weekly"===d.value),B=(0,i.EW)(()=>"daily"===d.value),P=()=>{l.value=!0,n("transition-start")},F=()=>{l.value=!1,n("transition-end"),p&&(p.resolve(!0),p=null)},$=(e,t,n=d.value)=>vv(e,t,n,b.value),j=e=>mv(e,d.value,b.value),H=e=>{x.value&&V.value&&(e.isDisabled=V.value.cellExists(x.value.key,e.dayIndex))},U=e=>{e.isFocusable=e.inMonth&&e.day===s.value},Q=(e,t)=>{for(const n of e)for(const e of n.days)if(!1===t(e))return},z=(0,i.EW)(()=>h.value.reduce((e,t)=>(e.push(...t.viewDays),e),[])),W=(0,i.EW)(()=>{const t=[];return(e.attributes||[]).forEach((e,n)=>{e&&e.dates&&t.push(new mb({...e,order:e.order||0},m.value,b.value))}),x.value&&t.push(x.value),t}),G=(0,i.EW)(()=>Qg(W.value)),V=(0,i.EW)(()=>{const e=new Ov;return W.value.forEach(t=>{t.ranges.forEach(n=>{e.render(t,n,z.value)})}),e}),K=(0,i.EW)(()=>z.value.reduce((e,t)=>(e[t.dayIndex]={day:t,cells:[]},e[t.dayIndex].cells.push(...V.value.getCells(t)),e),{})),Y=(t,n)=>{const r=e.showWeeknumbers||e.showIsoWeeknumbers;return null==r?"":Ch(r)?r?"left":"":r.startsWith("right")?n>1?"right":r:t>1?"left":r},q=()=>{var e,t;if(!G.value)return null;const n=W.value.find(e=>e.pinPage)||W.value[0];if(!n||!n.hasRanges)return null;const[r]=n.ranges,i=(null==(e=r.start)?void 0:e.date)||(null==(t=r.end)?void 0:t.date);return i?j(i):null},X=()=>{if(Av(T.value))return T.value;const e=q();return Av(e)?e:j(new Date)},J=(e,t={})=>{const{view:n=d.value,position:r=1,force:i}=t,o=r>0?1-r:-(S.value+r);let a=$(e,o,n),s=$(a,S.value-1,n);return i||(bv(a,O.value)?a=O.value:yv(s,M.value)&&(a=$(M.value,1-S.value)),s=$(a,S.value-1)),{fromPage:a,toPage:s}},Z=(e,t,n="")=>{if("none"===n||"fade"===n)return n;if((null==e?void 0:e.view)!==(null==t?void 0:t.view))return"fade";const r=yv(t,e),i=bv(t,e);return r||i?"slide-v"===n?i?"slide-down":"slide-up":i?"slide-right":"slide-left":"fade"},ee=(t={})=>new Promise((n,r)=>{const{position:i=1,force:o=!1,transition:a}=t,s=Av(t.page)?t.page:X(),{fromPage:l}=J(s,{position:i,force:o}),c=[];for(let t=0;t<S.value;t++){const n=$(l,t),r=t+1,i=Math.ceil(r/e.columns),o=e.rows-i+1,a=r%e.columns||e.columns,s=e.columns-a+1,u=Y(a,s);c.push(b.value.getPage({...n,view:d.value,titlePosition:e.titlePosition,trimWeeks:e.trimWeeks,position:r,row:i,rowFromEnd:o,column:a,columnFromEnd:s,showWeeknumbers:D.value,showIsoWeeknumbers:N.value,weeknumberPosition:u}))}f.value=Z(h.value[0],c[0],a),h.value=c,f.value&&"none"!==f.value?p={resolve:n,reject:r}:n(!0)}),te=e=>{const t=T.value??j(new Date);return $(t,e)},ne=(e,t={})=>{const n=Av(e)?e:j(e);Object.assign(t,J(n,{...t,force:!0}));const r=xv(t.fromPage,t.toPage,d.value,b.value).map(e=>wv(e,O.value,M.value));return r.some(e=>e)},re=(e,t={})=>ne(te(e),t),ie=(0,i.EW)(()=>re(-C.value)),oe=(0,i.EW)(()=>re(C.value)),ae=async(e,t={})=>!(!t.force&&!ne(e,t))&&(t.fromPage&&!_v(t.fromPage,T.value)&&(Ab({id:c.value,hideDelay:0}),t.view&&(Cb("view",10),d.value=t.view),await ee({...t,page:t.fromPage,position:1,force:!0}),n("did-move",h.value)),!0),se=(e,t={})=>ae(te(e),t),le=()=>se(-C.value),ce=()=>se(C.value),ue=e=>{const t=R.value?".in-month":"",n=`.id-${b.value.getDayId(e)}${t}`,r=`${n}.vc-focusable, ${n} .vc-focusable`,i=o.value;if(i){const e=i.querySelector(r);if(e)return e.focus(),!0}return!1},de=async(e,t={})=>!!ue(e)||(await ae(e,t),ue(e)),he=(e,t)=>{s.value=e.day,n("dayclick",e,t)},fe=(e,t)=>{n("daymouseenter",e,t)},pe=(e,t)=>{n("daymouseleave",e,t)},ge=(e,t)=>{s.value=e.day,a.value=e,e.isFocused=!0,n("dayfocusin",e,t)},me=(e,t)=>{a.value=null,e.isFocused=!1,n("dayfocusout",e,t)},ve=(e,t)=>{n("daykeydown",e,t);const r=e.noonDate;let i=null;switch(t.key){case"ArrowLeft":i=lv(r,-1);break;case"ArrowRight":i=lv(r,1);break;case"ArrowUp":i=lv(r,-7);break;case"ArrowDown":i=lv(r,7);break;case"Home":i=lv(r,1-e.weekdayPosition);break;case"End":i=lv(r,e.weekdayPositionFromEnd);break;case"PageUp":i=t.altKey?uv(r,-1):cv(r,-1);break;case"PageDown":i=t.altKey?uv(r,1):cv(r,1);break}i&&(t.preventDefault(),de(i).catch())},Ae=e=>{const t=a.value;null!=t&&ve(t,e)},be=(e,t)=>{n("weeknumberclick",e,t)};ee({page:e.initialPage,position:e.initialPagePosition}),(0,i.sV)(()=>{!e.disablePageSwipe&&o.value&&(g=Eb(o.value,({toLeft:e=!1,toRight:t=!1})=>{e?ce():t&&le()},Zv("touch")))}),(0,i.hi)(()=>{h.value=[],g&&g()}),(0,i.wB)(()=>b.value,()=>{ee()}),(0,i.wB)(()=>S.value,()=>ee()),(0,i.wB)(()=>e.view,()=>d.value=e.view),(0,i.wB)(()=>d.value,()=>{Tb("view",()=>{ee()}),n("update:view",d.value)}),(0,i.wB)(()=>s.value,()=>{Q(h.value,e=>U(e))}),(0,i.nT)(()=>{n("update:pages",h.value),Q(h.value,e=>{H(e),U(e)})});const ye={emit:n,containerRef:o,focusedDay:a,inTransition:l,navPopoverId:c,dayPopoverId:u,view:d,pages:h,transitionName:f,theme:m,color:v,displayMode:A,locale:b,masks:y,attributes:W,disabledAttribute:x,disabledDates:E,attributeContext:V,days:z,dayCells:K,count:S,step:C,firstPage:T,lastPage:k,canMovePrev:ie,canMoveNext:oe,minPage:O,maxPage:M,isMonthly:R,isWeekly:L,isDaily:B,navVisibility:I,showWeeknumbers:D,showIsoWeeknumbers:N,getDateAddress:j,canMove:ne,canMoveBy:re,move:ae,moveBy:se,movePrev:le,moveNext:ce,onTransitionBeforeEnter:P,onTransitionAfterEnter:F,tryFocusDate:ue,focusDate:de,onKeydown:Ae,onDayKeydown:ve,onDayClick:he,onDayMouseenter:fe,onDayMouseleave:pe,onDayFocusin:ge,onDayFocusout:me,onWeeknumberClick:be};return(0,i.Gt)(qb,ye),ye}function Jb(){const e=(0,i.WQ)(qb);if(e)return e;throw new Error("Calendar context missing. Please verify this component is nested within a valid context provider.")}const Zb=(0,i.pM)({inheritAttrs:!1,emits:["before-show","after-show","before-hide","after-hide"],props:{id:{type:[Number,String,Symbol],required:!0},showDelay:{type:Number,default:0},hideDelay:{type:Number,default:110},boundarySelector:{type:String}},setup(e,{emit:t}){let n;const o=(0,r.KR)();let a=null,s=null;const l=(0,r.Kh)({isVisible:!1,target:null,data:null,transition:"slide-fade",placement:"bottom",direction:"",positionFixed:!1,modifiers:[],isInteractive:!0,visibility:"click",isHovered:!1,isFocused:!1,autoHide:!1,force:!1});function c(e){e&&(l.direction=e.split("-")[0])}function u({placement:e,options:t}){c(e||(null==t?void 0:t.placement))}const d=(0,i.EW)(()=>({placement:l.placement,strategy:l.positionFixed?"fixed":"absolute",boundary:"",modifiers:[{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:u},...l.modifiers||[]],onFirstUpdate:u})),h=(0,i.EW)(()=>{const e="left"===l.direction||"right"===l.direction;let t="";if(l.placement){const e=l.placement.split("-");e.length>1&&(t=e[1])}return["start","top","left"].includes(t)?e?"top":"left":["end","bottom","right"].includes(t)?e?"bottom":"right":e?"middle":"center"});function f(){s&&(s.destroy(),s=null)}function p(){(0,i.dY)(()=>{const e=zg(l.target);e&&o.value&&(s&&s.state.elements.reference!==e&&f(),s?s.update():s=ht(e,o.value,d.value))})}function g(e){Object.assign(l,Yg(e,"force"))}function m(e,t){clearTimeout(n),e>0?n=setTimeout(t,e):t()}function v(e){if(!e||!s)return!1;const t=zg(e);return t===s.state.elements.reference}async function A(t={}){l.force||(t.force&&(l.force=!0),m(t.showDelay??e.showDelay,()=>{l.isVisible&&(l.force=!1),g({...t,isVisible:!0}),p()}))}function b(t={}){s&&(t.target&&!v(t.target)||l.force||(t.force&&(l.force=!0),m(t.hideDelay??e.hideDelay,()=>{l.isVisible||(l.force=!1),l.isVisible=!1})))}function y(e={}){null!=e.target&&(l.isVisible&&v(e.target)?b(e):A(e))}function w(e){if(!s)return;const t=s.state.elements.reference;if(!o.value||!t)return;const n=e.target;Vg(o.value,n)||Vg(t,n)||b({force:!0})}function _(e){"Esc"!==e.key&&"Escape"!==e.key||b()}function x({detail:t}){t.id&&t.id===e.id&&A(t)}function E({detail:t}){t.id&&t.id===e.id&&b(t)}function S({detail:t}){t.id&&t.id===e.id&&y(t)}function C(){Gg(document,"keydown",_),Gg(document,"click",w),Gg(document,"show-popover",x),Gg(document,"hide-popover",E),Gg(document,"toggle-popover",S)}function T(){Wg(document,"keydown",_),Wg(document,"click",w),Wg(document,"show-popover",x),Wg(document,"hide-popover",E),Wg(document,"toggle-popover",S)}function k(e){t("before-show",e)}function O(e){l.force=!1,t("after-show",e)}function M(e){t("before-hide",e)}function I(e){l.force=!1,f(),t("after-hide",e)}function D(e){e.stopPropagation()}function N(){l.isHovered=!0,l.isInteractive&&["hover","hover-focus"].includes(l.visibility)&&A()}function R(){if(l.isHovered=!1,!s)return;const e=s.state.elements.reference;!l.autoHide||l.isFocused||e&&e===document.activeElement||!["hover","hover-focus"].includes(l.visibility)||b()}function L(){l.isFocused=!0,l.isInteractive&&["focus","hover-focus"].includes(l.visibility)&&A()}function B(e){!["focus","hover-focus"].includes(l.visibility)||e.relatedTarget&&Vg(o.value,e.relatedTarget)||(l.isFocused=!1,!l.isHovered&&l.autoHide&&b())}function P(){null!=a&&(a.disconnect(),a=null)}return(0,i.wB)(()=>o.value,e=>{P(),e&&(a=new ResizeObserver(()=>{s&&s.update()}),a.observe(e))}),(0,i.wB)(()=>l.placement,c,{immediate:!0}),(0,i.sV)(()=>{C()}),(0,i.hi)(()=>{f(),P(),T()}),{...(0,r.QW)(l),popoverRef:o,alignment:h,hide:b,setupPopper:p,beforeEnter:k,afterEnter:O,beforeLeave:M,afterLeave:I,onClick:D,onMouseOver:N,onMouseLeave:R,onFocusIn:L,onFocusOut:B}}}),ey=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};function ty(e,t,n,r,s,l){return(0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["vc-popover-content-wrapper",{"is-interactive":e.isInteractive}]),ref:"popoverRef",onClick:t[0]||(t[0]=(...t)=>e.onClick&&e.onClick(...t)),onMouseover:t[1]||(t[1]=(...t)=>e.onMouseOver&&e.onMouseOver(...t)),onMouseleave:t[2]||(t[2]=(...t)=>e.onMouseLeave&&e.onMouseLeave(...t)),onFocusin:t[3]||(t[3]=(...t)=>e.onFocusIn&&e.onFocusIn(...t)),onFocusout:t[4]||(t[4]=(...t)=>e.onFocusOut&&e.onFocusOut(...t))},[(0,i.bF)(a.eB,{name:`vc-${e.transition}`,appear:"",onBeforeEnter:e.beforeEnter,onAfterEnter:e.afterEnter,onBeforeLeave:e.beforeLeave,onAfterLeave:e.afterLeave},{default:(0,i.k6)(()=>[e.isVisible?((0,i.uX)(),(0,i.CE)("div",(0,i.v6)({key:0,tabindex:"-1",class:`vc-popover-content direction-${e.direction}`},e.$attrs),[(0,i.RG)(e.$slots,"default",{direction:e.direction,alignment:e.alignment,data:e.data,hide:e.hide},()=>[(0,i.eW)((0,o.v_)(e.data),1)]),(0,i.Lk)("span",{class:(0,o.C4)(["vc-popover-caret",`direction-${e.direction}`,`align-${e.alignment}`])},null,2)],16)):(0,i.Q3)("",!0)]),_:3},8,["name","onBeforeEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],34)}const ny=ey(Zb,[["render",ty]]),ry={class:"vc-day-popover-row"},iy={key:0,class:"vc-day-popover-row-indicator"},oy={class:"vc-day-popover-row-label"},ay=(0,i.pM)({__name:"PopoverRow",props:{attribute:null},setup(e){const t=e,n=(0,i.EW)(()=>{const{content:e,highlight:n,dot:r,bar:i,popover:o}=t.attribute;return o&&o.hideIndicator?null:e?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${e.base.color}`}:n?{class:`vc-highlight-bg-solid vc-day-popover-row-highlight vc-attr vc-${n.base.color}`}:r?{class:`vc-dot vc-attr vc-${r.base.color}`}:i?{class:`vc-bar vc-day-popover-row-bar vc-attr vc-${i.base.color}`}:null});return(t,a)=>((0,i.uX)(),(0,i.CE)("div",ry,[(0,r.R1)(n)?((0,i.uX)(),(0,i.CE)("div",iy,[(0,i.Lk)("span",{class:(0,o.C4)((0,r.R1)(n).class)},null,2)])):(0,i.Q3)("",!0),(0,i.Lk)("div",oy,[(0,i.RG)(t.$slots,"default",{},()=>[(0,i.eW)((0,o.v_)(e.attribute.popover?e.attribute.popover.label:"No content provided"),1)])])]))}}),sy={inheritAttrs:!1},ly=(0,i.pM)({...sy,__name:"CalendarSlot",props:{name:null},setup(e){const t=e,n=Vb(t.name);return(e,t)=>(0,r.R1)(n)?((0,i.uX)(),(0,i.Wv)((0,i.$y)((0,r.R1)(n)),(0,o._B)((0,i.v6)({key:0},e.$attrs)),null,16)):(0,i.RG)(e.$slots,"default",{key:1})}}),cy={class:"vc-day-popover-container"},uy={key:0,class:"vc-day-popover-header"},dy=(0,i.pM)({__name:"CalendarDayPopover",setup(e){const{dayPopoverId:t,displayMode:n,color:a,masks:s,locale:l}=Jb();function c(e,t){return l.value.formatDate(e,t)}function u(e){return l.value.formatDate(e.date,s.value.dayPopover)}return(e,l)=>((0,i.uX)(),(0,i.Wv)(ny,{id:(0,r.R1)(t),class:(0,o.C4)([`vc-${(0,r.R1)(a)}`,`vc-${(0,r.R1)(n)}`])},{default:(0,i.k6)(({data:{day:e,attributes:t},hide:n})=>[(0,i.bF)(ly,{name:"day-popover",day:e,"day-title":u(e),attributes:t,format:c,masks:(0,r.R1)(s),hide:n},{default:(0,i.k6)(()=>[(0,i.Lk)("div",cy,[(0,r.R1)(s).dayPopover?((0,i.uX)(),(0,i.CE)("div",uy,(0,o.v_)(u(e)),1)):(0,i.Q3)("",!0),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(t,e=>((0,i.uX)(),(0,i.Wv)(ay,{key:e.key,attribute:e},null,8,["attribute"]))),128))])]),_:2},1032,["day","day-title","attributes","masks","hide"])]),_:1},8,["id","class"]))}}),hy={},fy={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},py=(0,i.Lk)("polyline",{points:"9 18 15 12 9 6"},null,-1),gy=[py];function my(e,t){return(0,i.uX)(),(0,i.CE)("svg",fy,gy)}const vy=ey(hy,[["render",my]]),Ay={},by={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},yy=(0,i.Lk)("polyline",{points:"15 18 9 12 15 6"},null,-1),wy=[yy];function _y(e,t){return(0,i.uX)(),(0,i.CE)("svg",by,wy)}const xy=ey(Ay,[["render",_y]]),Ey={},Sy={"stroke-linecap":"round","stroke-linejoin":"round",viewBox:"0 0 24 24"},Cy=(0,i.Lk)("polyline",{points:"6 9 12 15 18 9"},null,-1),Ty=[Cy];function ky(e,t){return(0,i.uX)(),(0,i.CE)("svg",Sy,Ty)}const Oy=ey(Ey,[["render",ky]]),My={},Iy={fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},Dy=(0,i.Lk)("path",{d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),Ny=[Dy];function Ry(e,t){return(0,i.uX)(),(0,i.CE)("svg",Iy,Ny)}const Ly=ey(My,[["render",Ry]]),By=Object.freeze(Object.defineProperty({__proto__:null,IconChevronDown:Oy,IconChevronLeft:xy,IconChevronRight:vy,IconClock:Ly},Symbol.toStringTag,{value:"Module"})),Py=(0,i.pM)({__name:"BaseIcon",props:{name:{type:String,required:!0},width:{type:String},height:{type:String},size:{type:String,default:"26"},viewBox:{type:String}},setup(e){const t=e,n=(0,i.EW)(()=>t.width||t.size),o=(0,i.EW)(()=>t.height||t.size),a=(0,i.EW)(()=>By[`Icon${t.name}`]);return(e,t)=>((0,i.uX)(),(0,i.Wv)((0,i.$y)((0,r.R1)(a)),{width:(0,r.R1)(n),height:(0,r.R1)(o),class:"vc-base-icon"},null,8,["width","height"]))}}),Fy=["disabled"],$y={key:1,class:"vc-title-wrapper"},jy={type:"button",class:"vc-title"},Hy=["disabled"],Uy=(0,i.pM)({__name:"CalendarHeader",props:{page:null,layout:null,isLg:{type:Boolean},isXl:{type:Boolean},is2xl:{type:Boolean},hideTitle:{type:Boolean},hideArrows:{type:Boolean}},setup(e){const t=e,{navPopoverId:n,navVisibility:s,canMovePrev:l,movePrev:c,canMoveNext:u,moveNext:d}=Jb(),h=(0,i.EW)(()=>{switch(t.page.titlePosition){case"left":return"bottom-start";case"right":return"bottom-end";default:return"bottom"}}),f=(0,i.EW)(()=>{const{page:e}=t;return{id:n.value,visibility:s.value,placement:h.value,modifiers:[{name:"flip",options:{fallbackPlacements:["bottom"]}}],data:{page:e},isInteractive:!0}}),p=(0,i.EW)(()=>t.page.titlePosition.includes("left")),g=(0,i.EW)(()=>t.page.titlePosition.includes("right")),m=(0,i.EW)(()=>t.layout?t.layout:p.value?"tu-pn":g.value?"pn-tu":"p-tu-n;"),v=(0,i.EW)(()=>({prev:m.value.includes("p")&&!t.hideArrows,title:m.value.includes("t")&&!t.hideTitle,next:m.value.includes("n")&&!t.hideArrows})),A=(0,i.EW)(()=>{const e=m.value.split("").map(e=>{switch(e){case"p":return"[prev] auto";case"n":return"[next] auto";case"t":return"[title] auto";case"-":return"1fr";default:return""}}).join(" ");return{gridTemplateColumns:e}});return(t,n)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["vc-header",{"is-lg":e.isLg,"is-xl":e.isXl,"is-2xl":e.is2xl}]),style:(0,o.Tr)((0,r.R1)(A))},[(0,r.R1)(v).prev?((0,i.uX)(),(0,i.CE)("button",{key:0,type:"button",class:"vc-arrow vc-prev vc-focus",disabled:!(0,r.R1)(l),onClick:n[0]||(n[0]=(...e)=>(0,r.R1)(c)&&(0,r.R1)(c)(...e)),onKeydown:n[1]||(n[1]=(0,a.jR)((...e)=>(0,r.R1)(c)&&(0,r.R1)(c)(...e),["space","enter"]))},[(0,i.bF)(ly,{name:"header-prev-button",disabled:!(0,r.R1)(l)},{default:(0,i.k6)(()=>[(0,i.bF)(Py,{name:"ChevronLeft",size:"24"})]),_:1},8,["disabled"])],40,Fy)):(0,i.Q3)("",!0),(0,r.R1)(v).title?((0,i.uX)(),(0,i.CE)("div",$y,[(0,i.bF)(ly,{name:"header-title-wrapper"},{default:(0,i.k6)(()=>[(0,i.bo)(((0,i.uX)(),(0,i.CE)("button",jy,[(0,i.bF)(ly,{name:"header-title",title:e.page.title},{default:(0,i.k6)(()=>[(0,i.Lk)("span",null,(0,o.v_)(e.page.title),1)]),_:1},8,["title"])])),[[(0,r.R1)(xb),(0,r.R1)(f)]])]),_:1})])):(0,i.Q3)("",!0),(0,r.R1)(v).next?((0,i.uX)(),(0,i.CE)("button",{key:2,type:"button",class:"vc-arrow vc-next vc-focus",disabled:!(0,r.R1)(u),onClick:n[2]||(n[2]=(...e)=>(0,r.R1)(d)&&(0,r.R1)(d)(...e)),onKeydown:n[3]||(n[3]=(0,a.jR)((...e)=>(0,r.R1)(d)&&(0,r.R1)(d)(...e),["space","enter"]))},[(0,i.bF)(ly,{name:"header-next-button",disabled:!(0,r.R1)(u)},{default:(0,i.k6)(()=>[(0,i.bF)(Py,{name:"ChevronRight",size:"24"})]),_:1},8,["disabled"])],40,Hy)):(0,i.Q3)("",!0)],6))}}),Qy=Symbol("__vc_page_context__");function zy(e){const{locale:t,getDateAddress:n,canMove:r}=Jb();function o(i,o){const{month:a,year:s}=n(new Date);return ab().map((n,l)=>{const c=l+1;return{month:c,year:i,id:gv(c,i),label:t.value.formatDate(n,o),ariaLabel:t.value.formatDate(n,"MMMM"),isActive:c===e.value.month&&i===e.value.year,isCurrent:c===a&&i===s,isDisabled:!r({month:c,year:i},{position:e.value.position})}})}function a(t,i){const{year:o}=n(new Date),{position:a}=e.value,s=[];for(let n=t;n<=i;n+=1){const t=[...Array(12).keys()].some(e=>r({month:e+1,year:n},{position:a}));s.push({year:n,id:n.toString(),label:n.toString(),ariaLabel:n.toString(),isActive:n===e.value.year,isCurrent:n===o,isDisabled:!t})}return s}const s={page:e,getMonthItems:o,getYearItems:a};return(0,i.Gt)(Qy,s),s}function Wy(){const e=(0,i.WQ)(Qy);if(e)return e;throw new Error("Page context missing. Please verify this component is nested within a valid context provider.")}const Gy={class:"vc-nav-header"},Vy=["disabled"],Ky=["disabled"],Yy={class:"vc-nav-items"},qy=["data-id","aria-label","disabled","onClick","onKeydown"],Xy=(0,i.pM)({__name:"CalendarNav",setup(e){const{masks:t,move:n}=Jb(),{page:a,getMonthItems:s,getYearItems:l}=Wy(),c=(0,r.KR)(!0),u=12,d=(0,r.KR)(a.value.year),h=(0,r.KR)(g(a.value.year)),f=(0,r.KR)(null);function p(){setTimeout(()=>{if(null==f.value)return;const e=f.value.querySelector(".vc-nav-item:not(:disabled)");e&&e.focus()},10)}function g(e){return Math.floor(e/u)}function m(){c.value=!c.value}function v(e){return e*u}function A(e){return u*(e+1)-1}function b(){B.value&&(c.value&&w(),x())}function y(){P.value&&(c.value&&_(),E())}function w(){d.value--}function _(){d.value++}function x(){h.value--}function E(){h.value++}const S=(0,i.EW)(()=>s(d.value,t.value.navMonths).map(e=>({...e,click:()=>n({month:e.month,year:e.year},{position:a.value.position})}))),C=(0,i.EW)(()=>s(d.value-1,t.value.navMonths)),T=(0,i.EW)(()=>C.value.some(e=>!e.isDisabled)),k=(0,i.EW)(()=>s(d.value+1,t.value.navMonths)),O=(0,i.EW)(()=>k.value.some(e=>!e.isDisabled)),M=(0,i.EW)(()=>l(v(h.value),A(h.value)).map(e=>({...e,click:()=>{d.value=e.year,c.value=!0,p()}}))),I=(0,i.EW)(()=>l(v(h.value-1),A(h.value-1))),D=(0,i.EW)(()=>I.value.some(e=>!e.isDisabled)),N=(0,i.EW)(()=>l(v(h.value+1),A(h.value+1))),R=(0,i.EW)(()=>N.value.some(e=>!e.isDisabled)),L=(0,i.EW)(()=>c.value?S.value:M.value),B=(0,i.EW)(()=>c.value?T.value:D.value),P=(0,i.EW)(()=>c.value?O.value:R.value),F=(0,i.EW)(()=>Ng(M.value.map(e=>e.year))),$=(0,i.EW)(()=>Lg(M.value.map(e=>e.year))),j=(0,i.EW)(()=>c.value?d.value:`${F.value} - ${$.value}`);return(0,i.nT)(()=>{d.value=a.value.year,p()}),(0,i.wB)(()=>d.value,e=>h.value=g(e)),(0,i.sV)(()=>p()),(e,t)=>((0,i.uX)(),(0,i.CE)("div",{class:"vc-nav-container",ref_key:"navContainer",ref:f},[(0,i.Lk)("div",Gy,[(0,i.Lk)("button",{type:"button",class:"vc-nav-arrow is-left vc-focus",disabled:!(0,r.R1)(B),onClick:b,onKeydown:t[0]||(t[0]=e=>(0,r.R1)(Kg)(e,b))},[(0,i.bF)(ly,{name:"nav-prev-button",move:b,disabled:!(0,r.R1)(B)},{default:(0,i.k6)(()=>[(0,i.bF)(Py,{name:"ChevronLeft",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,Vy),(0,i.Lk)("button",{type:"button",class:"vc-nav-title vc-focus",onClick:m,onKeydown:t[1]||(t[1]=e=>(0,r.R1)(Kg)(e,m))},(0,o.v_)((0,r.R1)(j)),33),(0,i.Lk)("button",{type:"button",class:"vc-nav-arrow is-right vc-focus",disabled:!(0,r.R1)(P),onClick:y,onKeydown:t[2]||(t[2]=e=>(0,r.R1)(Kg)(e,y))},[(0,i.bF)(ly,{name:"nav-next-button",move:y,disabled:!(0,r.R1)(P)},{default:(0,i.k6)(()=>[(0,i.bF)(Py,{name:"ChevronRight",width:"22px",height:"24px"})]),_:1},8,["disabled"])],40,Ky)]),(0,i.Lk)("div",Yy,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)((0,r.R1)(L),e=>((0,i.uX)(),(0,i.CE)("button",{key:e.label,type:"button","data-id":e.id,"aria-label":e.ariaLabel,class:(0,o.C4)(["vc-nav-item vc-focus",[e.isActive?"is-active":e.isCurrent?"is-current":""]]),disabled:e.isDisabled,onClick:e.click,onKeydown:t=>(0,r.R1)(Kg)(t,e.click)},(0,o.v_)(e.label),43,qy))),128))])],512))}}),Jy=(0,i.pM)({__name:"CalendarPageProvider",props:{page:null},setup(e){const t=e;return zy((0,r.lW)(t,"page")),(e,t)=>(0,i.RG)(e.$slots,"default")}}),Zy=(0,i.pM)({__name:"CalendarNavPopover",setup(e){const{navPopoverId:t,color:n,displayMode:a}=Jb();return(e,s)=>((0,i.uX)(),(0,i.Wv)(ny,{id:(0,r.R1)(t),class:(0,o.C4)(["vc-nav-popover-container",`vc-${(0,r.R1)(n)}`,`vc-${(0,r.R1)(a)}`])},{default:(0,i.k6)(({data:e})=>[(0,i.bF)(Jy,{page:e.page},{default:(0,i.k6)(()=>[(0,i.bF)(ly,{name:"nav"},{default:(0,i.k6)(()=>[(0,i.bF)(Xy)]),_:1})]),_:2},1032,["page"])]),_:1},8,["id","class"]))}}),ew=(0,i.pM)({directives:{popover:xb},components:{CalendarSlot:ly},props:{day:{type:Object,required:!0}},setup(e){const{locale:t,theme:n,attributeContext:r,dayPopoverId:o,onDayClick:a,onDayMouseenter:s,onDayMouseleave:l,onDayFocusin:c,onDayFocusout:u,onDayKeydown:d}=Jb(),h=(0,i.EW)(()=>e.day),f=(0,i.EW)(()=>r.value.getCells(h.value)),p=(0,i.EW)(()=>f.value.map(e=>e.data)),g=(0,i.EW)(()=>({...h.value,attributes:p.value,attributeCells:f.value}));function m({data:e},{popovers:t}){const{key:n,customData:r,popover:i}=e;if(!i)return;const o=zf({key:n,customData:r,attribute:e},{...i},{visibility:i.label?"hover":"click",placement:"bottom",isInteractive:!i.label});t.splice(0,0,o)}const v=(0,i.EW)(()=>{const e={...n.value.prepareRender({}),popovers:[]};return f.value.forEach(t=>{n.value.render(t,e),m(t,e)}),e}),A=(0,i.EW)(()=>v.value.highlights),b=(0,i.EW)(()=>!!Qg(A.value)),y=(0,i.EW)(()=>v.value.content),w=(0,i.EW)(()=>v.value.dots),_=(0,i.EW)(()=>!!Qg(w.value)),x=(0,i.EW)(()=>v.value.bars),E=(0,i.EW)(()=>!!Qg(x.value)),S=(0,i.EW)(()=>v.value.popovers),C=(0,i.EW)(()=>S.value.map(e=>e.attribute)),T=Vb("day-content"),k=(0,i.EW)(()=>["vc-day",...h.value.classes,{"vc-day-box-center-center":!T},{"is-not-in-month":!e.day.inMonth}]),O=(0,i.EW)(()=>{let e;e=h.value.isFocusable?"0":"-1";const t=["vc-day-content vc-focusable vc-focus vc-attr",{"vc-disabled":h.value.isDisabled},ad(Lg(A.value),"contentClass"),ad(Lg(y.value),"class")||""],n={...ad(Lg(A.value),"contentStyle"),...ad(Lg(y.value),"style")};return{class:t,style:n,tabindex:e,"aria-label":h.value.ariaLabel,"aria-disabled":!!h.value.isDisabled,role:"button"}}),M=(0,i.EW)(()=>({click(e){a(g.value,e)},mouseenter(e){s(g.value,e)},mouseleave(e){l(g.value,e)},focusin(e){c(g.value,e)},focusout(e){u(g.value,e)},keydown(e){d(g.value,e)}})),I=(0,i.EW)(()=>Qg(S.value)?zf({id:o.value,data:{day:h,attributes:C.value}},...S.value):null);return{attributes:p,attributeCells:f,bars:x,dayClasses:k,dayContentProps:O,dayContentEvents:M,dayPopover:I,glyphs:v,dots:w,hasDots:_,hasBars:E,highlights:A,hasHighlights:b,locale:t,popovers:S}}}),tw={key:0,class:"vc-highlights vc-day-layer"},nw={key:1,class:"vc-day-layer vc-day-box-center-bottom"},rw={class:"vc-dots"},iw={key:2,class:"vc-day-layer vc-day-box-center-bottom"},ow={class:"vc-bars"};function aw(e,t,n,r,a,s){const l=(0,i.g2)("CalendarSlot"),c=(0,i.gN)("popover");return(0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(e.dayClasses)},[e.hasHighlights?((0,i.uX)(),(0,i.CE)("div",tw,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.highlights,({key:e,wrapperClass:t,class:n,style:r})=>((0,i.uX)(),(0,i.CE)("div",{key:e,class:(0,o.C4)(t)},[(0,i.Lk)("div",{class:(0,o.C4)(n),style:(0,o.Tr)(r)},null,6)],2))),128))])):(0,i.Q3)("",!0),(0,i.bF)(l,{name:"day-content",day:e.day,attributes:e.attributes,"attribute-cells":e.attributeCells,dayProps:e.dayContentProps,dayEvents:e.dayContentEvents,locale:e.locale},{default:(0,i.k6)(()=>[(0,i.bo)(((0,i.uX)(),(0,i.CE)("div",(0,i.v6)(e.dayContentProps,(0,i.Tb)(e.dayContentEvents,!0)),[(0,i.eW)((0,o.v_)(e.day.label),1)],16)),[[c,e.dayPopover]])]),_:1},8,["day","attributes","attribute-cells","dayProps","dayEvents","locale"]),e.hasDots?((0,i.uX)(),(0,i.CE)("div",nw,[(0,i.Lk)("div",rw,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.dots,({key:e,class:t,style:n})=>((0,i.uX)(),(0,i.CE)("span",{key:e,class:(0,o.C4)(t),style:(0,o.Tr)(n)},null,6))),128))])])):(0,i.Q3)("",!0),e.hasBars?((0,i.uX)(),(0,i.CE)("div",iw,[(0,i.Lk)("div",ow,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.bars,({key:e,class:t,style:n})=>((0,i.uX)(),(0,i.CE)("span",{key:e,class:(0,o.C4)(t),style:(0,o.Tr)(n)},null,6))),128))])])):(0,i.Q3)("",!0)],2)}const sw=ey(ew,[["render",aw]]),lw={class:"vc-weekdays"},cw=["onClick"],uw={inheritAttrs:!1},dw=(0,i.pM)({...uw,__name:"CalendarPage",setup(e){const{page:t}=Wy(),{onWeeknumberClick:n}=Jb();return(e,a)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["vc-pane",`row-${(0,r.R1)(t).row}`,`row-from-end-${(0,r.R1)(t).rowFromEnd}`,`column-${(0,r.R1)(t).column}`,`column-from-end-${(0,r.R1)(t).columnFromEnd}`]),ref:"pane"},[(0,i.bF)(Uy,{page:(0,r.R1)(t),"is-lg":"","hide-arrows":""},null,8,["page"]),(0,i.Lk)("div",{class:(0,o.C4)(["vc-weeks",{[`vc-show-weeknumbers-${(0,r.R1)(t).weeknumberPosition}`]:(0,r.R1)(t).weeknumberPosition}])},[(0,i.Lk)("div",lw,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)((0,r.R1)(t).weekdays,({weekday:e,label:t},n)=>((0,i.uX)(),(0,i.CE)("div",{key:n,class:(0,o.C4)(`vc-weekday vc-weekday-${e}`)},(0,o.v_)(t),3))),128))]),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)((0,r.R1)(t).viewWeeks,e=>((0,i.uX)(),(0,i.CE)("div",{key:`weeknumber-${e.weeknumber}`,class:"vc-week"},[(0,r.R1)(t).weeknumberPosition?((0,i.uX)(),(0,i.CE)("div",{key:0,class:(0,o.C4)(["vc-weeknumber",`is-${(0,r.R1)(t).weeknumberPosition}`])},[(0,i.Lk)("span",{class:(0,o.C4)(["vc-weeknumber-content"]),onClick:t=>(0,r.R1)(n)(e,t)},(0,o.v_)(e.weeknumberDisplay),9,cw)],2)):(0,i.Q3)("",!0),((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.days,e=>((0,i.uX)(),(0,i.Wv)(sw,{key:e.id,day:e},null,8,["day"]))),128))]))),128))],2)],2))}}),hw=(0,i.pM)({components:{CalendarHeader:Uy,CalendarPage:dw,CalendarNavPopover:Zy,CalendarDayPopover:dy,CalendarPageProvider:Jy,CalendarSlot:ly},props:Kb,emit:Yb,setup(e,{emit:t,slots:n}){return Xb(e,{emit:t,slots:n})}}),fw={class:"vc-pane-header-wrapper"};function pw(e,t,n,r,s,l){const c=(0,i.g2)("CalendarHeader"),u=(0,i.g2)("CalendarPage"),d=(0,i.g2)("CalendarSlot"),h=(0,i.g2)("CalendarPageProvider"),f=(0,i.g2)("CalendarDayPopover"),p=(0,i.g2)("CalendarNavPopover");return(0,i.uX)(),(0,i.CE)(i.FK,null,[(0,i.Lk)("div",(0,i.v6)({"data-helptext":"Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year"},e.$attrs,{class:["vc-container",`vc-${e.view}`,`vc-${e.color}`,`vc-${e.displayMode}`,{"vc-expanded":e.expanded,"vc-bordered":!e.borderless,"vc-transparent":e.transparent}],onMouseup:t[0]||(t[0]=(0,a.D$)(()=>{},["prevent"])),ref:"containerRef"}),[(0,i.Lk)("div",{class:(0,o.C4)(["vc-pane-container",{"in-transition":e.inTransition}])},[(0,i.Lk)("div",fw,[e.firstPage?((0,i.uX)(),(0,i.Wv)(c,{key:0,page:e.firstPage,"is-lg":"","hide-title":""},null,8,["page"])):(0,i.Q3)("",!0)]),(0,i.bF)(a.eB,{name:`vc-${e.transitionName}`,onBeforeEnter:e.onTransitionBeforeEnter,onAfterEnter:e.onTransitionAfterEnter},{default:(0,i.k6)(()=>[((0,i.uX)(),(0,i.CE)("div",{key:e.pages[0].id,class:"vc-pane-layout",style:(0,o.Tr)({gridTemplateColumns:`repeat(${e.columns}, 1fr)`})},[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.pages,e=>((0,i.uX)(),(0,i.Wv)(h,{key:e.id,page:e},{default:(0,i.k6)(()=>[(0,i.bF)(d,{name:"page",page:e},{default:(0,i.k6)(()=>[(0,i.bF)(u)]),_:2},1032,["page"])]),_:2},1032,["page"]))),128))],4))]),_:1},8,["name","onBeforeEnter","onAfterEnter"]),(0,i.bF)(d,{name:"footer"})],2)],16),(0,i.bF)(f),(0,i.bF)(p)],64)}const gw=ey(hw,[["render",pw]]),mw=Symbol("__vc_date_picker_context__"),vw={...Ub,mode:{type:String,default:"date"},modelValue:{type:[Number,String,Date,Object]},modelModifiers:{type:Object,default:()=>({})},rules:[String,Object],is24hr:Boolean,hideTimeHeader:Boolean,timeAccuracy:{type:Number,default:2},isRequired:Boolean,isRange:Boolean,updateOnInput:{type:Boolean,default:()=>Zv("datePicker.updateOnInput")},inputDebounce:{type:Number,default:()=>Zv("datePicker.inputDebounce")},popover:{type:[Boolean,Object],default:!0},dragAttribute:Object,selectAttribute:Object,attributes:[Object,Array]},Aw=["update:modelValue","drag","dayclick","daykeydown","popover-will-show","popover-did-show","popover-will-hide","popover-did-hide"];function bw(e,{emit:t,slots:n}){Gb(n,{footer:"dp-footer"});const o=Qb(e),{locale:a,masks:s,disabledAttribute:l}=o,c=(0,r.KR)(!1),u=(0,r.KR)(Symbol()),d=(0,r.KR)(null),h=(0,r.KR)(null),f=(0,r.KR)(["",""]),p=(0,r.KR)(null),g=(0,r.KR)(null);let m,v,A=!0;const b=(0,i.EW)(()=>e.isRange||!0===e.modelModifiers.range),y=(0,i.EW)(()=>b.value&&null!=d.value?d.value.start:null),w=(0,i.EW)(()=>b.value&&null!=d.value?d.value.end:null),_=(0,i.EW)(()=>"date"===e.mode.toLowerCase()),x=(0,i.EW)(()=>"datetime"===e.mode.toLowerCase()),E=(0,i.EW)(()=>"time"===e.mode.toLowerCase()),S=(0,i.EW)(()=>!!h.value),C=(0,i.EW)(()=>{let t="date";e.modelModifiers.number&&(t="number"),e.modelModifiers.string&&(t="string");const n=s.value.modelValue||"iso";return H({type:t,mask:n})}),T=(0,i.EW)(()=>re(h.value??d.value)),k=(0,i.EW)(()=>E.value?e.is24hr?s.value.inputTime24hr:s.value.inputTime:x.value?e.is24hr?s.value.inputDateTime24hr:s.value.inputDateTime:s.value.input),O=(0,i.EW)(()=>/[Hh]/g.test(k.value)),M=(0,i.EW)(()=>/[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(k.value)),I=(0,i.EW)(()=>O.value&&M.value?"dateTime":M.value?"date":O.value?"time":void 0),D=(0,i.EW)(()=>{var t;const n=(null==(t=p.value)?void 0:t.$el.previousElementSibling)??void 0;return Ig({},e.popover,Zv("datePicker.popover"),{target:n})}),N=(0,i.EW)(()=>yb({...D.value,id:u.value})),R=(0,i.EW)(()=>b.value?{start:f.value[0],end:f.value[1]}:f.value[0]),L=(0,i.EW)(()=>{const t=["start","end"].map(t=>({input:ee(t),change:te(t),keyup:ne,...e.popover&&N.value}));return b.value?{start:t[0],end:t[1]}:t[0]}),B=(0,i.EW)(()=>{if(!W(d.value))return null;const t={key:"select-drag",...e.selectAttribute,dates:d.value,pinPage:!0},{dot:n,bar:r,highlight:i,content:o}=t;return n||r||i||o||(t.highlight=!0),t}),P=(0,i.EW)(()=>{if(!b.value||!W(h.value))return null;const t={key:"select-drag",...e.dragAttribute,dates:h.value},{dot:n,bar:r,highlight:i,content:o}=t;return n||r||i||o||(t.highlight={startEnd:{fillMode:"outline"}}),t}),F=(0,i.EW)(()=>{const t=Ug(e.attributes)?[...e.attributes]:[];return P.value?t.unshift(P.value):B.value&&t.unshift(B.value),t}),$=(0,i.EW)(()=>H("auto"===e.rules?j():e.rules??{}));function j(){const t={ms:[0,999],sec:[0,59],min:[0,59],hr:[0,23]},n=_.value?0:e.timeAccuracy;return[0,1].map(e=>{switch(n){case 0:return{hours:t.hr[e],minutes:t.min[e],seconds:t.sec[e],milliseconds:t.ms[e]};case 1:return{minutes:t.min[e],seconds:t.sec[e],milliseconds:t.ms[e]};case 3:return{milliseconds:t.ms[e]};case 4:return{};default:return{seconds:t.sec[e],milliseconds:t.ms[e]}}})}function H(e){return Ug(e)?1===e.length?[e[0],e[0]]:e:[e,e]}function U(e){return H(e).map((e,t)=>({...e,rules:$.value[t]}))}function Q(e){return null!=e&&(Ih(e)?!isNaN(e):Pg(e)?!isNaN(e.getTime()):ma(e)?""!==e:WA(e))}function z(e){return Fg(e)&&"start"in e&&"end"in e&&Q(e.start??null)&&Q(e.end??null)}function W(e){return z(e)||Q(e)}function G(e,t){if(null==e&&null==t)return!0;if(null==e||null==t)return!1;const n=Pg(e),r=Pg(t);return n&&r?e.getTime()===t.getTime():!n&&!r&&(G(e.start,t.start)&&G(e.end,t.end))}function V(e){return!(!W(e)||!l.value)&&l.value.intersectsRange(a.value.range(e))}function K(e,t,n,r){if(!W(e))return null;if(z(e)){const i=a.value.toDate(e.start,{...t[0],fillDate:y.value??void 0,patch:n}),o=a.value.toDate(e.end,{...t[1],fillDate:w.value??void 0,patch:n});return me({start:i,end:o},r)}return a.value.toDateOrNull(e,{...t[0],fillDate:d.value,patch:n})}function Y(e,t){return z(e)?{start:a.value.fromDate(e.start,t[0]),end:a.value.fromDate(e.end,t[1])}:b.value?null:a.value.fromDate(e,t[0])}function q(e,t={}){return clearTimeout(m),new Promise(n=>{const{debounce:r=0,...i}=t;r>0?m=window.setTimeout(()=>{n(X(e,i))},r):n(X(e,i))})}function X(n,{config:r=C.value,patch:o="dateTime",clearIfEqual:a=!1,formatInput:s=!0,hidePopover:l=!1,dragging:c=S.value,targetPriority:u,moveToValue:f=!1}={}){const p=U(r);let g=K(n,p,o,u);const m=V(g);if(m){if(c)return null;g=d.value,l=!1}else null==g&&e.isRequired?g=d.value:null!=g&&G(d.value,g)&&a&&(g=null);const v=c?h:d,b=!G(v.value,g);v.value=g,c||(h.value=null);const y=Y(g,C.value);return b&&(A=!1,t(c?"drag":"update:modelValue",y),(0,i.dY)(()=>A=!0)),l&&!c&&pe(),s&&J(),f&&(0,i.dY)(()=>be(u??"start")),y}function J(){(0,i.dY)(()=>{const e=U({type:"string",mask:k.value}),t=Y(h.value??d.value,e);b.value?f.value=[t&&t.start,t&&t.end]:f.value=[t,""]})}function Z(e,t,n){f.value.splice("start"===t?0:1,1,e);const r=b.value?{start:f.value[0],end:f.value[1]||f.value[0]}:e,i={type:"string",mask:k.value};q(r,{...n,config:i,patch:I.value,targetPriority:t,moveToValue:!0})}function ee(t){return n=>{e.updateOnInput&&Z(n.currentTarget.value,t,{formatInput:!1,hidePopover:!1,debounce:e.inputDebounce})}}function te(e){return t=>{Z(t.currentTarget.value,e,{formatInput:!0,hidePopover:!1})}}function ne(e){"Escape"===e.key&&q(d.value,{formatInput:!0,hidePopover:!0})}function re(e){return b.value?[e&&e.start?a.value.getDateParts(e.start):null,e&&e.end?a.value.getDateParts(e.end):null]:[e?a.value.getDateParts(e):null]}function ie(){h.value=null,J()}function oe(e){t("popover-will-show",e)}function ae(e){t("popover-did-show",e)}function se(e){ie(),t("popover-will-hide",e)}function le(e){t("popover-did-hide",e)}function ce(t){const n={patch:"date",formatInput:!0,hidePopover:!0};if(b.value){const e=!S.value;e?v={start:t.startDate,end:t.endDate}:null!=v&&(v.end=t.date),q(v,{...n,dragging:e})}else q(t.date,{...n,clearIfEqual:!e.isRequired})}function ue(e,n){ce(e),t("dayclick",e,n)}function de(e,n){switch(n.key){case" ":case"Enter":ce(e),n.preventDefault();break;case"Escape":pe()}t("daykeydown",e,n)}function he(e,t){S.value&&null!=v&&(v.end=e.date,q(me(v),{patch:"date",formatInput:!0}))}function fe(e={}){vb({...D.value,...e,isInteractive:!0,id:u.value})}function pe(e={}){Ab({hideDelay:10,force:!0,...D.value,...e,id:u.value})}function ge(e){bb({...D.value,...e,isInteractive:!0,id:u.value})}function me(e,t){const{start:n,end:r}=e;if(n>r)switch(t){case"start":return{start:n,end:n};case"end":return{start:r,end:r};default:return{start:r,end:n}}return{start:n,end:r}}async function ve(e,t={}){return null!=g.value&&g.value.move(e,t)}async function Ae(e,t={}){return null!=g.value&&g.value.moveBy(e,t)}async function be(e,t={}){const n=d.value;if(null==g.value||!W(n))return!1;const r="end"!==e,i=r?1:-1,o=z(n)?r?n.start:n.end:n,s=mv(o,"monthly",a.value);return g.value.move(s,{position:i,...t})}(0,i.wB)(()=>e.isRange,e=>{e&&console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.")},{immediate:!0}),(0,i.wB)(()=>b.value,()=>{X(null,{formatInput:!0})}),(0,i.wB)(()=>k.value,()=>J()),(0,i.wB)(()=>e.modelValue,e=>{A&&X(e,{formatInput:!0,hidePopover:!1})}),(0,i.wB)(()=>$.value,()=>{Fg(e.rules)&&X(e.modelValue,{formatInput:!0,hidePopover:!1})}),(0,i.wB)(()=>e.timezone,()=>{X(d.value,{formatInput:!0})});const ye=H(C.value);d.value=K(e.modelValue??null,ye,"dateTime"),(0,i.sV)(()=>{X(e.modelValue,{formatInput:!0,hidePopover:!1})}),(0,i.dY)(()=>c.value=!0);const we={...o,showCalendar:c,datePickerPopoverId:u,popoverRef:p,popoverEvents:N,calendarRef:g,isRange:b,isTimeMode:E,isDateTimeMode:x,is24hr:(0,r.lW)(e,"is24hr"),hideTimeHeader:(0,r.lW)(e,"hideTimeHeader"),timeAccuracy:(0,r.lW)(e,"timeAccuracy"),isDragging:S,inputValue:R,inputEvents:L,dateParts:T,attributes:F,rules:$,move:ve,moveBy:Ae,moveToValue:be,updateValue:q,showPopover:fe,hidePopover:pe,togglePopover:ge,onDayClick:ue,onDayKeydown:de,onDayMouseEnter:he,onPopoverBeforeShow:oe,onPopoverAfterShow:ae,onPopoverBeforeHide:se,onPopoverAfterHide:le};return(0,i.Gt)(mw,we),we}function yw(){const e=(0,i.WQ)(mw);if(e)return e;throw new Error("DatePicker context missing. Please verify this component is nested within a valid context provider.")}const ww=[{value:0,label:"12"},{value:1,label:"1"},{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"},{value:5,label:"5"},{value:6,label:"6"},{value:7,label:"7"},{value:8,label:"8"},{value:9,label:"9"},{value:10,label:"10"},{value:11,label:"11"}],_w=[{value:12,label:"12"},{value:13,label:"1"},{value:14,label:"2"},{value:15,label:"3"},{value:16,label:"4"},{value:17,label:"5"},{value:18,label:"6"},{value:19,label:"7"},{value:20,label:"8"},{value:21,label:"9"},{value:22,label:"10"},{value:23,label:"11"}];function xw(e){const t=yw(),{locale:n,isRange:r,isTimeMode:o,dateParts:a,rules:s,is24hr:l,hideTimeHeader:c,timeAccuracy:u,updateValue:d}=t;function h(e){e=Object.assign(p.value,e);let t=null;if(r.value){const n=f.value?e:a.value[0],r=f.value?a.value[1]:e;t={start:n,end:r}}else t=e;d(t,{patch:"time",targetPriority:f.value?"start":"end",moveToValue:!0})}const f=(0,i.EW)(()=>0===e.position),p=(0,i.EW)(()=>a.value[e.position]||{isValid:!1}),g=(0,i.EW)(()=>WA(p.value)),m=(0,i.EW)(()=>!!p.value.isValid),v=(0,i.EW)(()=>!c.value&&m.value),A=(0,i.EW)(()=>{if(!g.value)return null;let e=n.value.toDate(p.value);return 24===p.value.hours&&(e=new Date(e.getTime()-1)),e}),b=(0,i.EW)({get(){return p.value.hours},set(e){h({hours:e})}}),y=(0,i.EW)({get(){return p.value.minutes},set(e){h({minutes:e})}}),w=(0,i.EW)({get(){return p.value.seconds},set(e){h({seconds:e})}}),_=(0,i.EW)({get(){return p.value.milliseconds},set(e){h({milliseconds:e})}}),x=(0,i.EW)({get(){return p.value.hours<12},set(e){e="true"==String(e).toLowerCase();let t=b.value;e&&t>=12?t-=12:!e&&t<12&&(t+=12),h({hours:t})}}),E=(0,i.EW)(()=>ub(p.value,s.value[e.position])),S=(0,i.EW)(()=>ww.filter(e=>E.value.hours.some(t=>t.value===e.value))),C=(0,i.EW)(()=>_w.filter(e=>E.value.hours.some(t=>t.value===e.value))),T=(0,i.EW)(()=>l.value?E.value.hours:x.value?S.value:C.value),k=(0,i.EW)(()=>{const e=[];return Qg(S.value)&&e.push({value:!0,label:"AM"}),Qg(C.value)&&e.push({value:!1,label:"PM"}),e});return{...t,showHeader:v,timeAccuracy:u,parts:p,isValid:m,date:A,hours:b,minutes:y,seconds:w,milliseconds:_,options:E,hourOptions:T,isAM:x,isAMOptions:k,is24hr:l}}const Ew=["value"],Sw=["value","disabled"],Cw={key:1,class:"vc-base-sizer","aria-hidden":"true"},Tw={inheritAttrs:!1},kw=(0,i.pM)({...Tw,__name:"BaseSelect",props:{options:null,modelValue:null,alignRight:{type:Boolean},alignLeft:{type:Boolean},showIcon:{type:Boolean},fitContent:{type:Boolean}},emits:["update:modelValue"],setup(e){const t=e,n=(0,i.EW)(()=>{const e=t.options.find(e=>e.value===t.modelValue);return null==e?void 0:e.label});return(t,a)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["vc-base-select",{"vc-fit-content":e.fitContent,"vc-has-icon":e.showIcon}])},[(0,i.Lk)("select",(0,i.v6)(t.$attrs,{value:e.modelValue,class:["vc-focus",{"vc-align-right":e.alignRight,"vc-align-left":e.alignLeft}],onChange:a[0]||(a[0]=e=>t.$emit("update:modelValue",e.target.value))}),[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(e.options,e=>((0,i.uX)(),(0,i.CE)("option",{key:e.value,value:e.value,disabled:e.disabled},(0,o.v_)(e.label),9,Sw))),128))],16,Ew),e.showIcon?((0,i.uX)(),(0,i.Wv)(Py,{key:0,name:"ChevronDown",size:"18"})):(0,i.Q3)("",!0),e.fitContent?((0,i.uX)(),(0,i.CE)("div",Cw,(0,o.v_)((0,r.R1)(n)),1)):(0,i.Q3)("",!0)],2))}}),Ow={key:0,class:"vc-time-header"},Mw={class:"vc-time-weekday"},Iw={class:"vc-time-month"},Dw={class:"vc-time-day"},Nw={class:"vc-time-year"},Rw={class:"vc-time-select-group"},Lw=(0,i.Lk)("span",{class:"vc-time-colon"},":",-1),Bw=(0,i.Lk)("span",{class:"vc-time-colon"},":",-1),Pw=(0,i.Lk)("span",{class:"vc-time-decimal"},".",-1),Fw=(0,i.pM)({__name:"TimePicker",props:{position:null},setup(e,{expose:t}){const n=e,a=xw(n);t(a);const{locale:s,isValid:l,date:c,hours:u,minutes:d,seconds:h,milliseconds:f,options:p,hourOptions:g,isTimeMode:m,isAM:v,isAMOptions:A,is24hr:b,showHeader:y,timeAccuracy:w}=a;return(e,t)=>((0,i.uX)(),(0,i.CE)("div",{class:(0,o.C4)(["vc-time-picker",[{"vc-invalid":!(0,r.R1)(l),"vc-attached":!(0,r.R1)(m)}]])},[(0,i.bF)(ly,{name:"time-header"},{default:(0,i.k6)(()=>[(0,r.R1)(y)&&(0,r.R1)(c)?((0,i.uX)(),(0,i.CE)("div",Ow,[(0,i.Lk)("span",Mw,(0,o.v_)((0,r.R1)(s).formatDate((0,r.R1)(c),"WWW")),1),(0,i.Lk)("span",Iw,(0,o.v_)((0,r.R1)(s).formatDate((0,r.R1)(c),"MMM")),1),(0,i.Lk)("span",Dw,(0,o.v_)((0,r.R1)(s).formatDate((0,r.R1)(c),"D")),1),(0,i.Lk)("span",Nw,(0,o.v_)((0,r.R1)(s).formatDate((0,r.R1)(c),"YYYY")),1)])):(0,i.Q3)("",!0)]),_:1}),(0,i.Lk)("div",Rw,[(0,i.bF)(Py,{name:"Clock",size:"17"}),(0,i.bF)(kw,{modelValue:(0,r.R1)(u),"onUpdate:modelValue":t[0]||(t[0]=e=>(0,r.i9)(u)?u.value=e:null),modelModifiers:{number:!0},options:(0,r.R1)(g),class:"vc-time-select-hours","align-right":""},null,8,["modelValue","options"]),(0,r.R1)(w)>1?((0,i.uX)(),(0,i.CE)(i.FK,{key:0},[Lw,(0,i.bF)(kw,{modelValue:(0,r.R1)(d),"onUpdate:modelValue":t[1]||(t[1]=e=>(0,r.i9)(d)?d.value=e:null),modelModifiers:{number:!0},options:(0,r.R1)(p).minutes,class:"vc-time-select-minutes","align-left":2===(0,r.R1)(w)},null,8,["modelValue","options","align-left"])],64)):(0,i.Q3)("",!0),(0,r.R1)(w)>2?((0,i.uX)(),(0,i.CE)(i.FK,{key:1},[Bw,(0,i.bF)(kw,{modelValue:(0,r.R1)(h),"onUpdate:modelValue":t[2]||(t[2]=e=>(0,r.i9)(h)?h.value=e:null),modelModifiers:{number:!0},options:(0,r.R1)(p).seconds,class:"vc-time-select-seconds","align-left":3===(0,r.R1)(w)},null,8,["modelValue","options","align-left"])],64)):(0,i.Q3)("",!0),(0,r.R1)(w)>3?((0,i.uX)(),(0,i.CE)(i.FK,{key:2},[Pw,(0,i.bF)(kw,{modelValue:(0,r.R1)(f),"onUpdate:modelValue":t[3]||(t[3]=e=>(0,r.i9)(f)?f.value=e:null),modelModifiers:{number:!0},options:(0,r.R1)(p).milliseconds,class:"vc-time-select-milliseconds","align-left":""},null,8,["modelValue","options"])],64)):(0,i.Q3)("",!0),(0,r.R1)(b)?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.Wv)(kw,{key:3,modelValue:(0,r.R1)(v),"onUpdate:modelValue":t[4]||(t[4]=e=>(0,r.i9)(v)?v.value=e:null),options:(0,r.R1)(A)},null,8,["modelValue","options"]))])],2))}}),$w=(0,i.pM)({__name:"DatePickerBase",setup(e){const{attributes:t,calendarRef:n,color:a,displayMode:s,isDateTimeMode:l,isTimeMode:c,isRange:u,onDayClick:d,onDayMouseEnter:h,onDayKeydown:f}=yw(),p=u.value?[0,1]:[0];return(e,u)=>(0,r.R1)(c)?((0,i.uX)(),(0,i.CE)("div",{key:0,class:(0,o.C4)(`vc-container vc-bordered vc-${(0,r.R1)(a)} vc-${(0,r.R1)(s)}`)},[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)((0,r.R1)(p),e=>((0,i.uX)(),(0,i.Wv)(Fw,{key:e,position:e},null,8,["position"]))),128))],2)):((0,i.uX)(),(0,i.Wv)(gw,{key:1,attributes:(0,r.R1)(t),ref_key:"calendarRef",ref:n,onDayclick:(0,r.R1)(d),onDaymouseenter:(0,r.R1)(h),onDaykeydown:(0,r.R1)(f)},{footer:(0,i.k6)(()=>[(0,r.R1)(l)?((0,i.uX)(!0),(0,i.CE)(i.FK,{key:0},(0,i.pI)((0,r.R1)(p),e=>((0,i.uX)(),(0,i.Wv)(Fw,{key:e,position:e},null,8,["position"]))),128)):(0,i.Q3)("",!0),(0,i.bF)(ly,{name:"dp-footer"})]),_:1},8,["attributes","onDayclick","onDaymouseenter","onDaykeydown"]))}}),jw={inheritAttrs:!1},Hw=(0,i.pM)({...jw,__name:"DatePickerPopover",setup(e){const{datePickerPopoverId:t,color:n,displayMode:a,popoverRef:s,onPopoverBeforeShow:l,onPopoverAfterShow:c,onPopoverBeforeHide:u,onPopoverAfterHide:d}=yw();return(e,h)=>((0,i.uX)(),(0,i.Wv)(ny,{id:(0,r.R1)(t),placement:"bottom-start",class:(0,o.C4)(`vc-date-picker-content vc-${(0,r.R1)(n)} vc-${(0,r.R1)(a)}`),ref_key:"popoverRef",ref:s,onBeforeShow:(0,r.R1)(l),onAfterShow:(0,r.R1)(c),onBeforeHide:(0,r.R1)(u),onAfterHide:(0,r.R1)(d)},{default:(0,i.k6)(()=>[(0,i.bF)($w,(0,o._B)((0,i.Ng)(e.$attrs)),null,16)]),_:1},8,["id","class","onBeforeShow","onAfterShow","onBeforeHide","onAfterHide"]))}}),Uw=(0,i.pM)({inheritAttrs:!1,emits:Aw,props:vw,components:{DatePickerBase:$w,DatePickerPopover:Hw},setup(e,t){const n=bw(e,t),i=(0,r.Kh)(Yg(n,"calendarRef","popoverRef"));return{...n,slotCtx:i}}});function Qw(e,t,n,r,a,s){const l=(0,i.g2)("DatePickerPopover"),c=(0,i.g2)("DatePickerBase");return e.$slots.default?((0,i.uX)(),(0,i.CE)(i.FK,{key:0},[(0,i.RG)(e.$slots,"default",(0,o._B)((0,i.Ng)(e.slotCtx))),(0,i.bF)(l,(0,o._B)((0,i.Ng)(e.$attrs)),null,16)],64)):((0,i.uX)(),(0,i.Wv)(c,(0,o._B)((0,i.v6)({key:1},e.$attrs)),null,16))}const zw=ey(Uw,[["render",Qw]]);Symbol.toStringTag},52281:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="DeleteOutlined",c.inheritAttrs=!1;var u=c},52528:function(e,t,n){"use strict";var r=n(19532);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},52827:function(e,t,n){"use strict";n.d(t,{Ay:function(){return j}});n(18111),n(81148);var r=n(56768),i=n(90144),o=n(73178),a=n(82890),s=n(34002);function l(e){const t="function"==typeof e?e():e,n=(0,i.KR)(t);function r(e){n.value=e}return[n,r]}function c(e){return"string"==typeof e}const u=(e,t,n,o)=>{const[a,s]=l(""),[u,d]=l(1),h=(0,r.EW)(()=>t.value&&c(e.value));return(0,r.wB)(e,()=>{const t=(0,i.R1)(a);s(e.value),!h.value&&c(e.value)?d(e.value.length):c(e.value)&&c(t)&&0!==e.value.indexOf(t)&&d(1)},{immediate:!0}),(0,r.wB)([u,t,e],()=>{if(h.value&&c(e.value)&&(0,i.R1)(u)<e.value.length){const e=setTimeout(()=>{d((0,i.R1)(u)+n.value)},o.value);(0,i.ch)(()=>{clearTimeout(e)})}},{immediate:!0}),[(0,r.EW)(()=>h.value&&c(e.value)?e.value.slice(0,(0,i.R1)(u)):e.value),(0,r.EW)(()=>h.value&&c(e.value)&&(0,i.R1)(u)<e.value.length)]};function d(e){const t=(0,r.EW)(()=>!!(0,i.BA)(e)),n={step:1,interval:50,suffix:null},o=(0,r.EW)(()=>{const t=(0,i.BA)(e);return{...n,..."object"==typeof t?t:{}}});return[t,(0,r.EW)(()=>o.value.step),(0,r.EW)(()=>o.value.interval),(0,r.EW)(()=>o.value.suffix)]}const h=(0,r.pM)({name:"AXBubbleLoading",__name:"loading",props:{prefixCls:null},setup(e){return()=>(0,r.bF)("span",{class:`${e.prefixCls}-dot`},[(0,r.bF)("i",{class:`${e.prefixCls}-dot-item`,key:"item-1"},null),(0,r.bF)("i",{class:`${e.prefixCls}-dot-item`,key:"item-2"},null),(0,r.bF)("i",{class:`${e.prefixCls}-dot-item`,key:"item-3"},null)])}});var f=n(40355);class p{constructor(e,t){this._keyframe=!0,this.name=e,this.style=t}getName(e=""){return e?`${e}-${this.name}`:this.name}}var g=n(18436),m=n(90827);const v=e=>{const{componentCls:t,paddingSM:n,padding:r}=e;return{[t]:{[`${t}-content`]:{"&-filled,&-outlined,&-shadow":{padding:`${(0,f.zA)(n)} ${(0,f.zA)(r)}`,borderRadius:e.borderRadiusLG},"&-filled":{backgroundColor:e.colorFillContent},"&-outlined":{border:`1px solid ${e.colorBorderSecondary}`},"&-shadow":{boxShadow:e.boxShadowTertiary}}}}},A=e=>{const{componentCls:t,fontSize:n,lineHeight:r,paddingSM:i,padding:o,calc:a}=e,s=a(n).mul(r).div(2).add(i).equal(),l=`${t}-content`;return{[t]:{[l]:{"&-round":{borderRadius:{_skip_check_:!0,value:s},paddingInline:a(o).mul(1.25).equal()}},[`&-start ${l}-corner`]:{borderStartStartRadius:e.borderRadiusXS},[`&-end ${l}-corner`]:{borderStartEndRadius:e.borderRadiusXS}}}},b=e=>{const{componentCls:t,padding:n}=e;return{[`${t}-list`]:{display:"flex",flexDirection:"column",gap:n,overflowY:"auto","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`}}}},y=new p("loadingMove",{"0%":{transform:"translateY(0)"},"10%":{transform:"translateY(4px)"},"20%":{transform:"translateY(0)"},"30%":{transform:"translateY(-4px)"},"40%":{transform:"translateY(0)"}}),w=new p("cursorBlink",{"0%":{opacity:1},"50%":{opacity:0},"100%":{opacity:1}}),_=e=>{const{componentCls:t,fontSize:n,lineHeight:r,paddingSM:i,colorText:o,calc:a}=e;return{[t]:{display:"flex",columnGap:i,[`&${t}-end`]:{justifyContent:"end",flexDirection:"row-reverse",[`& ${t}-content-wrapper`]:{alignItems:"flex-end"}},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-typing ${t}-content:last-child::after`]:{content:'"|"',fontWeight:900,userSelect:"none",opacity:1,marginInlineStart:"0.1em",animationName:w,animationDuration:"0.8s",animationIterationCount:"infinite",animationTimingFunction:"linear"},[`& ${t}-avatar`]:{display:"inline-flex",justifyContent:"center",alignSelf:"flex-start"},[`& ${t}-header, & ${t}-footer`]:{fontSize:n,lineHeight:r,color:e.colorText},[`& ${t}-header`]:{marginBottom:e.paddingXXS},[`& ${t}-footer`]:{marginTop:i},[`& ${t}-content-wrapper`]:{flex:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:0,maxWidth:"100%"},[`& ${t}-content`]:{position:"relative",boxSizing:"border-box",minWidth:0,maxWidth:"100%",color:o,fontSize:e.fontSize,lineHeight:e.lineHeight,minHeight:a(i).mul(2).add(a(r).mul(n)).equal(),wordBreak:"break-word",[`& ${t}-dot`]:{position:"relative",height:"100%",display:"flex",alignItems:"center",columnGap:e.marginXS,padding:`0 ${(0,f.zA)(e.paddingXXS)}`,"&-item":{backgroundColor:e.colorPrimary,borderRadius:"100%",width:4,height:4,animationName:y,animationDuration:"2s",animationIterationCount:"infinite",animationTimingFunction:"linear","&:nth-child(1)":{animationDelay:"0s"},"&:nth-child(2)":{animationDelay:"0.2s"},"&:nth-child(3)":{animationDelay:"0.4s"}}}}}}},x=()=>({}),E=(0,m.OF)("Bubble",e=>{const t=(0,g.h1)(e,{});return[_(t),b(t),v(t),A(t)]},x);var S=n(4663);const C=Symbol("BubbleContext"),T=(0,i.IJ)(),k=e=>{(0,r.Gt)(C,e),(0,r.wB)(e,()=>{T.value=(0,i.R1)(e),(0,i.mu)(T)},{immediate:!0,deep:!0})},O=()=>(0,r.WQ)(C,(0,r.EW)(()=>T.value||{})),M=(0,r.pM)({props:{value:(0,S.ge)()},setup(e,{slots:t}){return k((0,r.EW)(()=>e.value)),()=>{var e;return null==(e=t.default)?void 0:e.call(t)}}});var I=n(3431);const D=(0,r.pM)({name:"AXBubble",__name:"Bubble",props:{prefixCls:{},rootClassName:{},styles:{default:()=>({})},classNames:{default:()=>({})},avatar:{},placement:{default:"start"},loading:{type:Boolean,default:!1},typing:{},content:{default:""},messageRender:{},loadingRender:{},variant:{default:"filled"},shape:{},_key:{},onTypingComplete:{},header:{},footer:{}},setup(e,{expose:t}){const n=(0,o.c)(e,["prefixCls","rootClassName","classNames","styles","avatar","placement","loading","loadingRender","typing","content","messageRender","variant","shape","onTypingComplete","header","footer","_key"]);(0,i.lW)(e,"content"),(0,i.lW)(e,"prefixCls");const l=(0,r.Ht)(),c=(0,i.KR)(e.content);(0,r.wB)(()=>e.content,()=>{c.value=e.content});const{onUpdate:f}=(0,i.R1)(O()),p=(0,i.KR)(null),{direction:g,getPrefixCls:m}=(0,I.A)(),v=m("bubble",e.prefixCls),A=(0,s.A)("bubble"),[b,y,w,_]=d(()=>e.typing),[x,S]=u(c,b,y,w),C=(0,i.KR)(!1);(0,r.wB)(x,()=>{null==f||f()}),(0,r.nT)(()=>{var t;S.value||e.loading?C.value=!1:C.value||(C.value=!0,null==(t=e.onTypingComplete)||t.call(e))});const[T,k,M]=E(()=>v),D=(0,r.EW)(()=>[v,e.rootClassName,A.value.className,k.value,M,`${v}-${e.placement}`,{[`${v}-rtl`]:"rtl"===g.value},{[`${v}-typing`]:S.value&&!e.loading&&!e.messageRender&&!l.message&&!_.value}]),N=e=>Array.isArray(e)&&e.every(r.vv),R=(0,r.EW)(()=>l.avatar?l.avatar():"function"==typeof e.avatar?e.avatar():(0,r.vv)(e.avatar)||N(e.avatar)?e.avatar:(0,r.bF)(a.Ay,e.avatar,null)),L=(0,r.EW)(()=>l.message?l.message({content:x.value}):e.messageRender?e.messageRender(x.value):x.value),B=(0,r.EW)(()=>e.loading?l.loading?l.loading():e.loadingRender?e.loadingRender():(0,r.bF)(h,{prefixCls:v},null):(0,r.bF)(r.FK,null,[L.value,S.value&&(0,i.BA)(_)])),P=(0,r.EW)(()=>{const t=(0,r.bF)("div",{style:{...A.value.styles.content,...e.styles.content},class:[`${v}-content`,`${v}-content-${e.variant}`,{[`${v}-content-${e.shape}`]:e.shape},A.value.classNames.content,e.classNames.content]},[(0,i.BA)(B)]),n=l.header?l.header({content:x.value,info:{key:e._key}}):"function"==typeof e.header?e.header(x.value,{key:e._key}):e.header,o=l.footer?l.footer({content:x.value,info:{key:e._key}}):"function"==typeof e.footer?e.footer(x.value,{key:e._key}):e.footer;return n||o?(0,r.bF)("div",{class:`${v}-content-wrapper`},[n&&(0,r.bF)("div",{class:[`${v}-header`,A.value.classNames.header,e.classNames.header],style:{...A.value.styles.header,...e.styles.header}},[n]),t,o&&(0,r.bF)("div",{class:[`${v}-footer`,A.value.classNames.footer,e.classNames.footer],style:{...A.value.styles.footer,...e.styles.footer}},[o])]):t});return t({nativeElement:p}),()=>T((0,r.bF)("div",(0,r.v6)({style:{...A.value.style},class:(0,i.BA)(D)},n,{ref:p}),[(l.avatar||e.avatar)&&(0,r.bF)("div",{style:{...A.value.styles.avatar,...e.styles.avatar},class:[`${v}-avatar`,A.value.classNames.avatar,e.classNames.avatar]},[(0,i.BA)(R)]),(0,i.BA)(P)]))}});var N=n(30050),R=n(45482),L=n(22411);function B(e){const[t,n]=l(e.value.length),o=(0,r.EW)(()=>e.value.slice(0,(0,i.R1)(t))),a=(0,r.EW)(()=>{const e=(0,i.R1)(o)[(0,i.R1)(o).length-1];return e?e.key:null});(0,r.wB)(e,()=>{var t;if(n(e.value.length),!(0,i.R1)(o).length||!(0,i.R1)(o).every((t,n)=>{var r;return t.key===(null==(r=e.value[n])?void 0:r.key)}))if(0===(0,i.R1)(o).length)n(1);else for(let r=0;r<(0,i.R1)(o).length;r+=1)if((0,i.R1)(o)[r].key!==(null==(t=e.value[r])?void 0:t.key)){n(r);break}},{immediate:!0,deep:!0});const s=(0,R.D)(e=>{e===(0,i.R1)(a)&&n((0,i.R1)(t)+1)});return[o,s]}n(61701);function P(e,t){const n=(e,n)=>{var r;return"function"==typeof t.value?t.value(e,n):t&&(null==(r=t.value)?void 0:r[e.role])||{}};return(0,r.EW)(()=>(e.value||[]).map((e,t)=>{const r=e.key??`preset_${t}`;return{...n(e,t),...e,key:r}}))}const F=1,$=(0,r.pM)({name:"AXBubbleList",inheritAttrs:!1,__name:"BubbleList",props:(0,r.HF)({prefixCls:null,rootClassName:null,items:null,autoScroll:{type:Boolean},roles:null},{autoScroll:!0}),setup(e,{expose:t}){const n=(0,o.c)(e,["prefixCls","rootClassName","items","autoScroll","roles"]);(0,i.lW)(e,"roles"),(0,i.lW)(e,"items"),(0,i.lW)(e,"prefixCls");const a=(0,r.OA)(),s=(0,r.Ht)(),c=(0,r.EW)(()=>(0,L.A)((0,r.v6)(n,a),{attr:!0,aria:!0})),u=(0,i.KR)(e.items),d=(0,i.KR)(e.roles);(0,r.wB)(()=>e.items,()=>{u.value=e.items}),(0,r.wB)(()=>e.roles,()=>{d.value=e.roles});const h=(0,i.KR)(null),f=(0,i.KR)({}),{getPrefixCls:p}=(0,I.A)(),g=p("bubble",e.prefixCls),m=`${g}-list`,[v,A,b]=E(g),[y,w]=l(!1);(0,r.p9)(()=>{w(!0),(0,i.ch)(()=>{w(!1)})});const _=P(u,d),[x,S]=B(_),[C,T]=l(!0),[k,O]=l(0),$=e=>{const t=e.target;T(t.scrollHeight-Math.abs(t.scrollTop)-t.clientHeight<=F)};(0,r.wB)(k,()=>{e.autoScroll&&(0,i.R1)(h)&&(0,i.R1)(C)&&(0,r.dY)(()=>{(0,i.R1)(h).scrollTo({top:(0,i.R1)(h).scrollHeight})})}),(0,r.wB)(()=>(0,i.R1)(x).length,()=>{var t;if(e.autoScroll){const e=null==(t=(0,i.R1)(x)[(0,i.R1)(x).length-2])?void 0:t.key,n=(0,i.R1)(f)[e];if(n){const{nativeElement:e}=n,{top:t=0,bottom:r=0}=(null==e?void 0:e.getBoundingClientRect())??{},{top:o,bottom:a}=(0,i.R1)(h).getBoundingClientRect();t<a&&r>o&&(O((0,i.R1)(k)+1),T(!0))}}});const j=(0,R.D)(()=>{e.autoScroll&&O((0,i.R1)(k)+1)}),H=(0,r.EW)(()=>({onUpdate:j}));return t({nativeElement:h,scrollTo:({key:e,offset:t,behavior:n="smooth",block:r})=>{if("number"==typeof t)(0,i.R1)(h).scrollTo({top:t,behavior:n});else if(void 0!==e){const t=(0,i.R1)(f)[e];if(t){const o=(0,i.R1)(x).findIndex(t=>t.key===e);T(o===(0,i.R1)(x).length-1),t.nativeElement.scrollIntoView({behavior:n,block:r})}}}}),()=>v((0,r.bF)(M,{value:H.value},{default:()=>[(0,r.bF)("div",(0,r.v6)(c.value,{class:(0,N.b)(m,e.rootClassName,A.value,b,{[`${m}-reach-end`]:C.value}),ref:h,onScroll:$}),[(0,r.pI)((0,i.R1)(x),({key:e,onTypingComplete:t,...n})=>{var i,o,a;return(0,r.bF)(D,(0,r.v6)(n,{avatar:s.avatar?()=>{var t;return null==(t=s.avatar)?void 0:t.call(s,{item:{key:e,...n}})}:n.avatar,header:(null==(i=s.header)?void 0:i.call(s,{item:{key:e,...n}}))??n.header,footer:(null==(o=s.footer)?void 0:o.call(s,{item:{key:e,...n}}))??n.footer,loadingRender:s.loading?()=>s.loading({item:{key:e,...n}}):n.loadingRender,content:(null==(a=s.message)?void 0:a.call(s,{item:{key:e,...n}}))??n.content,key:e,ref:t=>{t?f.value[e]=t:delete f.value[e]},typing:!!y.value&&n.typing,onTypingComplete:()=>{null==t||t(),S(e)}}),null)})])]}))}}),j=Object.assign(D,{List:$});j.install=function(e){return e.component(j.name,j),e.component($.name,$),e}},52967:function(e,t,n){"use strict";var r=n(46706),i=n(20034),o=n(67750),a=n(73506);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(s){}return function(n,r){return o(n),a(r),i(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},53114:function(e){function t(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}e.exports=t},53182:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"}}]},name:"undo",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="UndoOutlined",c.inheritAttrs=!1;var u=c},53466:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=n(31158);function i(e){return e!==e}var o=i;function a(e,t,n){var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}var s=a;function l(e,t,n){return t===t?s(e,t,n):(0,r.A)(e,o,n)}var c=l;function u(e,t){var n=null==e?0:e.length;return!!n&&c(e,t,0)>-1}var d=u},53491:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="InboxOutlined",c.inheritAttrs=!1;var u=c},53523:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(56768),i=n(90144);function o(e,t){const{defaultValue:n,value:o=(0,i.KR)()}=t||{};let a="function"===typeof e?e():e;void 0!==o.value&&(a=(0,i.R1)(o)),void 0!==n&&(a="function"===typeof n?n():n);const s=(0,i.KR)(a),l=(0,i.KR)(a);function c(e){const n=l.value;s.value=e,(0,i.ux)(l.value)!==e&&t.onChange&&t.onChange(e,n)}return(0,r.nT)(()=>{let e=void 0!==o.value?o.value:s.value;t.postState&&(e=t.postState(e)),l.value=e}),(0,r.wB)(o,()=>{s.value=o.value}),[l,c]}},53627:function(e,t,n){"use strict";var r=n(56768),i=n(90144),o=n(28646);function a(){const e=(0,i.IJ)({});let t=null;const n=(0,o.A)();return(0,r.sV)(()=>{t=n.value.subscribe(t=>{e.value=t})}),(0,r.hi)(()=>{n.value.unsubscribe(t)}),e}t.A=a},53707:function(e){var t=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function r(e,n){while(e&&e.nodeType!==t){if("function"===typeof e.matches&&e.matches(n))return e;e=e.parentNode}}e.exports=r},53729:function(e,t,n){n(18111),n(61701),function(t,n){e.exports=n()}(0,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,a={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},h={A:[o,function(e){this.afternoon=d(e,!1)}],a:[o,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,l("seconds")],ss:[i,l("seconds")],m:[i,l("minutes")],mm:[i,l("minutes")],H:[i,l("hours")],h:[i,l("hours")],HH:[i,l("hours")],hh:[i,l("hours")],D:[i,l("day")],DD:[r,l("day")],Do:[o,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[i,l("week")],ww:[r,l("week")],M:[i,l("month")],MM:[r,l("month")],MMM:[o,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function f(n){var r,i;r=n,i=a&&a.formats;for(var o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),s=o.length,l=0;l<s;l+=1){var c=o[l],u=h[c],d=u&&u[0],f=u&&u[1];o[l]=f?{regex:d,parser:f}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=o[n];if("string"==typeof i)r+=i.length;else{var a=i.regex,l=i.parser,c=e.slice(r),u=a.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var s=o[1];if("string"==typeof s){var l=!0===o[2],c=!0===o[3],u=l||c,d=o[2];c&&(d=o[2]),a=this.$locale(),!l&&d&&(a=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=f(t)(e),o=i.year,a=i.month,s=i.day,l=i.hours,c=i.minutes,u=i.seconds,d=i.milliseconds,h=i.zone,p=i.week,g=new Date,m=s||(o||a?1:g.getDate()),v=o||g.getFullYear(),A=0;o&&!a||(A=a>0?a-1:g.getMonth());var b,y=l||0,w=c||0,_=u||0,x=d||0;return h?new Date(Date.UTC(v,A,m,y,w,_,x+60*h.offset*1e3)):n?new Date(Date.UTC(v,A,m,y,w,_,x)):(b=new Date(v,A,m,y,w,_,x),p&&(b=r(b).week(p).toDate()),b)}catch(e){return new Date("")}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var h=s.length,p=1;p<=h;p+=1){o[1]=s[p-1];var g=n.apply(this,o);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}p===h&&(this.$d=new Date(""))}else i.call(this,e)}}})},53838:function(e,t,n){"use strict";var r=n(97080),i=n(25170),o=n(38469),a=n(83789);e.exports=function(e){var t=r(this),n=a(e);return!(i(t)>n.size)&&!1!==o(t,function(e){if(!n.includes(e))return!1},!0)}},53942:function(e,t){"use strict";t.A=e=>{if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){const t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){const t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1}},53955:function(e){function t(e){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}e.exports=t},53982:function(e,t,n){"use strict";var r,i,o=n(44576),a=n(77629),s=n(94901),l=n(2360),c=n(42787),u=n(36840),d=n(78227),h=n(96395),f="USE_FUNCTION_CONSTRUCTOR",p=d("asyncIterator"),g=o.AsyncIterator,m=a.AsyncIteratorPrototype;if(m)r=m;else if(s(g))r=g.prototype;else if(a[f]||o[f])try{i=c(c(c(Function("return async function*(){}()")()))),c(i)===Object.prototype&&(r=i)}catch(v){}r?h&&(r=l(r)):r={},s(r[p])||u(r,p,function(){return this}),e.exports=r},54095:function(e){function t(e){const t={className:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},n={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:e.C_NUMBER_RE}],relevance:0},r={className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef ifdef ifndef"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[e.inherit(t,{className:"string"}),{className:"string",begin:"<",end:">",illegal:"\\n"}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i={className:"variable",begin:/&[a-z\d_]*\b/},o={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},a={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},s={className:"params",relevance:0,begin:"<",end:">",contains:[n,i]},l={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},c={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},u={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},d={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},h={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[c,i,o,a,l,d,u,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t,r,h,{begin:e.IDENT_RE+"::",keywords:""}]}}e.exports=t},54119:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:function(){return r}})},54467:function(e,t,n){"use strict";n(18111),n(61701);var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(81425),l=n(44832),c=n(44678),u=n(60674),d=n(38800),h=n(49974),f=n(42472),p=n(65803);const g={small:8,middle:16,large:24},m=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:s.A.oneOf((0,c.PV)("horizontal","vertical")).def("horizontal"),align:s.A.oneOf((0,c.PV)("start","end","center","baseline")),wrap:(0,c.HE)()});function v(e){return"string"===typeof e?g[e]:e||0}const A=(0,o.pM)({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:m(),slots:Object,setup(e,t){let{slots:n,attrs:s}=t;const{prefixCls:c,space:f,direction:g}=(0,u.A)("space",e),[m,A]=(0,p.A)(c),b=(0,d.A)(),y=(0,o.EW)(()=>{var t,n,r;return null!==(r=null!==(t=e.size)&&void 0!==t?t:null===(n=null===f||void 0===f?void 0:f.value)||void 0===n?void 0:n.size)&&void 0!==r?r:"small"}),w=(0,a.KR)(),_=(0,a.KR)();(0,o.wB)(y,()=>{[w.value,_.value]=(Array.isArray(y.value)?y.value:[y.value,y.value]).map(e=>v(e))},{immediate:!0});const x=(0,o.EW)(()=>void 0===e.align&&"horizontal"===e.direction?"center":e.align),E=(0,o.EW)(()=>(0,h.A)(c.value,A.value,`${c.value}-${e.direction}`,{[`${c.value}-rtl`]:"rtl"===g.value,[`${c.value}-align-${x.value}`]:x.value})),S=(0,o.EW)(()=>"rtl"===g.value?"marginLeft":"marginRight"),C=(0,o.EW)(()=>{const t={};return b.value&&(t.columnGap=`${w.value}px`,t.rowGap=`${_.value}px`),(0,i.A)((0,i.A)({},t),e.wrap&&{flexWrap:"wrap",marginBottom:-_.value+"px"})});return()=>{var t,a;const{wrap:u,direction:d="horizontal"}=e,h=null===(t=n.default)||void 0===t?void 0:t.call(n),f=(0,l.Gk)(h),p=f.length;if(0===p)return null;const g=null===(a=n.split)||void 0===a?void 0:a.call(n),v=`${c.value}-item`,A=w.value,y=p-1;return(0,o.bF)("div",(0,r.A)((0,r.A)({},s),{},{class:[E.value,s.class],style:[C.value,s.style]}),[f.map((e,t)=>{let n=h.indexOf(e);-1===n&&(n=`$$space-${t}`);let r={};return b.value||("vertical"===d?t<y&&(r={marginBottom:A/(g?2:1)+"px"}):r=(0,i.A)((0,i.A)({},t<y&&{[S.value]:A/(g?2:1)+"px"}),u&&{paddingBottom:`${_.value}px`})),m((0,o.bF)(o.FK,{key:n},[(0,o.bF)("div",{class:v,style:r},[e]),t<y&&g&&(0,o.bF)("span",{class:`${v}-split`,style:r},[g])]))})])}}});A.Compact=f.Ay,A.install=function(e){return e.component(A.name,A),e.component(f.Ay.name,f.Ay),e},t.Ay=A},54503:function(e,t,n){"use strict";n.d(t,{Ay:function(){return Ve}});var r=n(41034),i=n(51137),o=n(56768),a=(n(18111),n(7588),n(90144)),s=n(11591),l=n(22799),c="[object Number]";function u(e){return"number"==typeof e||(0,l.A)(e)&&(0,s.A)(e)==c}var d=u,h=n(49974),f=n(81425),p=n(1147),g=n(53523),m=n(86692),v=n(2392),A=n(93631),b=n(81186),y=n(99899),w=(n(44114),n(32545));function _(e){const t=(0,a.KR)(null),n=(0,a.Kh)((0,i.A)({},e)),r=(0,a.KR)([]),s=e=>{null===t.value&&(r.value=[],t.value=(0,w.A)(()=>{let e;r.value.forEach(t=>{e=(0,i.A)((0,i.A)({},e),t)}),(0,i.A)(n,e),t.value=null})),r.value.push(e)};return(0,o.sV)(()=>{t.value&&w.A.cancel(t.value)}),[n,s]}function x(e,t,n,r){const i=t+n,o=(n-r)/2;if(n>r){if(t>0)return{[e]:o};if(t<0&&i<r)return{[e]:-o}}else if(t<0||i>r)return{[e]:t<0?o:-o};return{}}function E(e,t,n,r){const{width:o,height:a}=(0,p.XV)();let s=null;return e<=o&&t<=a?s={x:0,y:0}:(e>o||t>a)&&(s=(0,i.A)((0,i.A)({},x("x",n,e,o)),x("y",r,t,a))),s}n(22489),n(61701);var S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const C=Symbol("previewGroupContext"),T={provide:e=>{(0,o.Gt)(C,e)},inject:()=>(0,o.WQ)(C,{isPreviewGroup:(0,a.IJ)(!1),previewUrls:(0,o.EW)(()=>new Map),setPreviewUrls:()=>{},current:(0,a.KR)(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""})},k=()=>({previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}}),O=(0,o.pM)({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:k(),setup(e,t){let{slots:n}=t;const i=(0,o.EW)(()=>{const t={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return"object"===typeof e.preview?P(e.preview,t):t}),s=(0,a.Kh)(new Map),l=(0,a.KR)(),c=(0,o.EW)(()=>i.value.visible),u=(0,o.EW)(()=>i.value.getContainer),d=(e,t)=>{var n,r;null===(r=(n=i.value).onVisibleChange)||void 0===r||r.call(n,e,t)},[h,f]=(0,g.A)(!!c.value,{value:c,onChange:d}),p=(0,a.KR)(null),m=(0,o.EW)(()=>void 0!==c.value),v=(0,o.EW)(()=>Array.from(s.keys())),A=(0,o.EW)(()=>v.value[i.value.current]),b=(0,o.EW)(()=>new Map(Array.from(s).filter(e=>{let[,{canPreview:t}]=e;return!!t}).map(e=>{let[t,{url:n}]=e;return[t,n]}))),y=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];s.set(e,{url:t,canPreview:n})},w=e=>{l.value=e},_=e=>{p.value=e},x=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=()=>{s.delete(e)};return s.set(e,{url:t,canPreview:n}),r},E=e=>{null===e||void 0===e||e.stopPropagation(),f(!1),_(null)};return(0,o.wB)(A,e=>{w(e)},{immediate:!0,flush:"post"}),(0,o.nT)(()=>{h.value&&m.value&&w(A.value)},{flush:"post"}),T.provide({isPreviewGroup:(0,a.IJ)(!0),previewUrls:b,setPreviewUrls:y,current:l,setCurrent:w,setShowPreview:f,setMousePosition:_,registerImage:x}),()=>{const t=S(i.value,[]);return(0,o.bF)(o.FK,null,[n.default&&n.default(),(0,o.bF)(R,(0,r.A)((0,r.A)({},t),{},{"ria-hidden":!h.value,visible:h.value,prefixCls:e.previewPrefixCls,onClose:E,mousePosition:p.value,src:b.value.get(l.value),icons:e.icons,getContainer:u.value}),null)])}}});var M=O;const I={x:0,y:0},D=(0,i.A)((0,i.A)({},(0,v.j)()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),N=(0,o.pM)({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:D,emits:["close","afterClose"],setup(e,t){let{emit:n,attrs:s}=t;const{rotateLeft:l,rotateRight:c,zoomIn:u,zoomOut:d,close:f,left:g,right:v,flipX:w,flipY:x}=(0,a.Kh)(e.icons),S=(0,a.IJ)(1),C=(0,a.IJ)(0),k=(0,a.Kh)({x:1,y:1}),[O,M]=_(I),D=()=>n("close"),N=(0,a.IJ)(),R=(0,a.Kh)({originX:0,originY:0,deltaX:0,deltaY:0}),L=(0,a.IJ)(!1),B=T.inject(),{previewUrls:P,current:F,isPreviewGroup:$,setCurrent:j}=B,H=(0,o.EW)(()=>P.value.size),U=(0,o.EW)(()=>Array.from(P.value.keys())),Q=(0,o.EW)(()=>U.value.indexOf(F.value)),z=(0,o.EW)(()=>$.value?P.value.get(F.value):e.src),W=(0,o.EW)(()=>$.value&&H.value>1),G=(0,a.IJ)({wheelDirection:0}),V=()=>{S.value=1,C.value=0,k.x=1,k.y=1,M(I),n("afterClose")},K=e=>{e?S.value+=.5:S.value++,M(I)},Y=e=>{S.value>1&&(e?S.value-=.5:S.value--),M(I)},q=()=>{C.value+=90},X=()=>{C.value-=90},J=()=>{k.x=-k.x},Z=()=>{k.y=-k.y},ee=e=>{e.preventDefault(),e.stopPropagation(),Q.value>0&&j(U.value[Q.value-1])},te=e=>{e.preventDefault(),e.stopPropagation(),Q.value<H.value-1&&j(U.value[Q.value+1])},ne=(0,h.A)({[`${e.prefixCls}-moving`]:L.value}),re=`${e.prefixCls}-operations-operation`,ie=`${e.prefixCls}-operations-icon`,oe=[{icon:f,onClick:D,type:"close"},{icon:u,onClick:()=>K(),type:"zoomIn"},{icon:d,onClick:()=>Y(),type:"zoomOut",disabled:(0,o.EW)(()=>1===S.value)},{icon:c,onClick:q,type:"rotateRight"},{icon:l,onClick:X,type:"rotateLeft"},{icon:w,onClick:J,type:"flipX"},{icon:x,onClick:Z,type:"flipY"}],ae=()=>{if(e.visible&&L.value){const e=N.value.offsetWidth*S.value,t=N.value.offsetHeight*S.value,{left:n,top:r}=(0,p.A3)(N.value),o=C.value%180!==0;L.value=!1;const a=E(o?t:e,o?e:t,n,r);a&&M((0,i.A)({},a))}},se=e=>{0===e.button&&(e.preventDefault(),e.stopPropagation(),R.deltaX=e.pageX-O.x,R.deltaY=e.pageY-O.y,R.originX=O.x,R.originY=O.y,L.value=!0)},le=t=>{e.visible&&L.value&&M({x:t.pageX-R.deltaX,y:t.pageY-R.deltaY})},ce=t=>{if(!e.visible)return;t.preventDefault();const n=t.deltaY;G.value={wheelDirection:n}},ue=t=>{e.visible&&W.value&&(t.preventDefault(),t.keyCode===b.A.LEFT?Q.value>0&&j(U.value[Q.value-1]):t.keyCode===b.A.RIGHT&&Q.value<H.value-1&&j(U.value[Q.value+1]))},de=()=>{e.visible&&(1!==S.value&&(S.value=1),O.x===I.x&&O.y===I.y||M(I))};let he=()=>{};return(0,o.sV)(()=>{(0,o.wB)([()=>e.visible,L],()=>{let e,t;he();const n=(0,A.A)(window,"mouseup",ae,!1),r=(0,A.A)(window,"mousemove",le,!1),i=(0,A.A)(window,"wheel",ce,{passive:!1}),o=(0,A.A)(window,"keydown",ue,!1);try{window.top!==window.self&&(e=(0,A.A)(window.top,"mouseup",ae,!1),t=(0,A.A)(window.top,"mousemove",le,!1))}catch(a){(0,y.$e)(!1,`[vc-image] ${a}`)}he=()=>{n.remove(),r.remove(),i.remove(),o.remove(),e&&e.remove(),t&&t.remove()}},{flush:"post",immediate:!0}),(0,o.wB)([G],()=>{const{wheelDirection:e}=G.value;e>0?Y(!0):e<0&&K(!0)})}),(0,o.hi)(()=>{he()}),()=>{const{visible:t,prefixCls:n,rootClassName:i}=e;return(0,o.bF)(m.A,(0,r.A)((0,r.A)({},s),{},{transitionName:e.transitionName,maskTransitionName:e.maskTransitionName,closable:!1,keyboard:!0,prefixCls:n,onClose:D,afterClose:V,visible:t,wrapClassName:ne,rootClassName:i,getContainer:e.getContainer}),{default:()=>[(0,o.bF)("div",{class:[`${e.prefixCls}-operations-wrapper`,i]},[(0,o.bF)("ul",{class:`${e.prefixCls}-operations`},[oe.map(t=>{let{icon:n,onClick:r,type:i,disabled:a}=t;return(0,o.bF)("li",{class:(0,h.A)(re,{[`${e.prefixCls}-operations-operation-disabled`]:a&&(null===a||void 0===a?void 0:a.value)}),onClick:r,key:i},[(0,o.E3)(n,{class:ie})])})])]),(0,o.bF)("div",{class:`${e.prefixCls}-img-wrapper`,style:{transform:`translate3d(${O.x}px, ${O.y}px, 0)`}},[(0,o.bF)("img",{onMousedown:se,onDblclick:de,ref:N,class:`${e.prefixCls}-img`,src:z.value,alt:e.alt,style:{transform:`scale3d(${k.x*S.value}, ${k.y*S.value}, 1) rotate(${C.value}deg)`}},null)]),W.value&&(0,o.bF)("div",{class:(0,h.A)(`${e.prefixCls}-switch-left`,{[`${e.prefixCls}-switch-left-disabled`]:Q.value<=0}),onClick:ee},[g]),W.value&&(0,o.bF)("div",{class:(0,h.A)(`${e.prefixCls}-switch-right`,{[`${e.prefixCls}-switch-right-disabled`]:Q.value>=H.value-1}),onClick:te},[v])]})}}});var R=N,L=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const B=()=>({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,width:[Number,String],height:[Number,String],previewMask:{type:[Boolean,Function],default:void 0},placeholder:f.A.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),P=(e,t)=>{const n=(0,i.A)({},e);return Object.keys(t).forEach(r=>{void 0===e[r]&&(n[r]=t[r])}),n};let F=0;const $=(0,o.pM)({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:B(),emits:["click","error"],setup(e,t){let{attrs:n,slots:s,emit:l}=t;const c=(0,o.EW)(()=>e.prefixCls),u=(0,o.EW)(()=>`${c.value}-preview`),f=(0,o.EW)(()=>{const t={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return"object"===typeof e.preview?P(e.preview,t):t}),m=(0,o.EW)(()=>{var t;return null!==(t=f.value.src)&&void 0!==t?t:e.src}),v=(0,o.EW)(()=>e.placeholder&&!0!==e.placeholder||s.placeholder),A=(0,o.EW)(()=>f.value.visible),b=(0,o.EW)(()=>f.value.getContainer),y=(0,o.EW)(()=>void 0!==A.value),w=(e,t)=>{var n,r;null===(r=(n=f.value).onVisibleChange)||void 0===r||r.call(n,e,t)},[_,x]=(0,g.A)(!!A.value,{value:A,onChange:w}),E=(0,a.KR)(v.value?"loading":"normal");(0,o.wB)(()=>e.src,()=>{E.value=v.value?"loading":"normal"});const S=(0,a.KR)(null),C=(0,o.EW)(()=>"error"===E.value),k=T.inject(),{isPreviewGroup:O,setCurrent:M,setShowPreview:I,setMousePosition:D,registerImage:N}=k,B=(0,a.KR)(F++),$=(0,o.EW)(()=>e.preview&&!C.value),j=()=>{E.value="normal"},H=e=>{E.value="error",l("error",e)},U=e=>{if(!y.value){const{left:t,top:n}=(0,p.A3)(e.target);O.value?(M(B.value),D({x:t,y:n})):S.value={x:t,y:n}}O.value?I(!0):x(!0),l("click",e)},Q=()=>{x(!1),y.value||(S.value=null)},z=(0,a.KR)(null);(0,o.wB)(()=>z,()=>{"loading"===E.value&&z.value.complete&&(z.value.naturalWidth||z.value.naturalHeight)&&j()});let W=()=>{};(0,o.sV)(()=>{(0,o.wB)([m,$],()=>{if(W(),!O.value)return()=>{};W=N(B.value,m.value,$.value),$.value||W()},{flush:"post",immediate:!0})}),(0,o.hi)(()=>{W()});const G=e=>d(e)?e+"px":e;return()=>{const{prefixCls:t,wrapperClassName:a,fallback:c,src:d,placeholder:p,wrapperStyle:g,rootClassName:v,width:A,height:y,crossorigin:w,decoding:x,alt:T,sizes:k,srcset:M,usemap:I,class:D,style:N}=(0,i.A)((0,i.A)({},e),n),B=f.value,{icons:P,maskClassName:F}=B,W=L(B,["icons","maskClassName"]),V=(0,h.A)(t,a,v,{[`${t}-error`]:C.value}),K=C.value&&c?c:m.value,Y={crossorigin:w,decoding:x,alt:T,sizes:k,srcset:M,usemap:I,width:A,height:y,class:(0,h.A)(`${t}-img`,{[`${t}-img-placeholder`]:!0===p},D),style:(0,i.A)({height:G(y)},N)};return(0,o.bF)(o.FK,null,[(0,o.bF)("div",{class:V,onClick:$.value?U:e=>{l("click",e)},style:(0,i.A)({width:G(A),height:G(y)},g)},[(0,o.bF)("img",(0,r.A)((0,r.A)((0,r.A)({},Y),C.value&&c?{src:c}:{onLoad:j,onError:H,src:d}),{},{ref:z}),null),"loading"===E.value&&(0,o.bF)("div",{"aria-hidden":"true",class:`${t}-placeholder`},[p||s.placeholder&&s.placeholder()]),s.previewMask&&$.value&&(0,o.bF)("div",{class:[`${t}-mask`,F]},[s.previewMask()])]),!O.value&&$.value&&(0,o.bF)(R,(0,r.A)((0,r.A)({},W),{},{"aria-hidden":!_.value,visible:_.value,prefixCls:u.value,onClose:Q,mousePosition:S.value,src:K,alt:T,getContainer:b.value,icons:P,rootClassName:v}),null)])}}});$.PreviewGroup=M;var j=$,H=j,U=n(32342),Q=n(60674),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},W=z,G=n(4827);function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){K(e,t,n[t])})}return e}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Y=function(e,t){var n=V({},e,t.attrs);return(0,o.bF)(G.A,V({},n,{icon:W}),null)};Y.displayName="RotateLeftOutlined",Y.inheritAttrs=!1;var q=Y,X={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},J=X;function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ee(e,t,n[t])})}return e}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var te=function(e,t){var n=Z({},e,t.attrs);return(0,o.bF)(G.A,Z({},n,{icon:J}),null)};te.displayName="RotateRightOutlined",te.inheritAttrs=!1;var ne=te,re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},ie=re;function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ae(e,t,n[t])})}return e}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var se=function(e,t){var n=oe({},e,t.attrs);return(0,o.bF)(G.A,oe({},n,{icon:ie}),null)};se.displayName="ZoomInOutlined",se.inheritAttrs=!1;var le=se,ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},ue=ce;function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){he(e,t,n[t])})}return e}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fe=function(e,t){var n=de({},e,t.attrs);return(0,o.bF)(G.A,de({},n,{icon:ue}),null)};fe.displayName="ZoomOutOutlined",fe.inheritAttrs=!1;var pe=fe,ge=n(76110),me=n(99163),ve=n(43448),Ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},be=Ae;function ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){we(e,t,n[t])})}return e}function we(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _e=function(e,t){var n=ye({},e,t.attrs);return(0,o.bF)(G.A,ye({},n,{icon:be}),null)};_e.displayName="SwapOutlined",_e.inheritAttrs=!1;var xe=_e,Ee=n(51589),Se=n(50223),Ce=n(96902),Te=n(94012),ke=n(43085),Oe=n(90112),Me=n(9519),Ie=n(36068);const De=e=>({position:e||"absolute",inset:0}),Ne=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new Se.q("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:(0,i.A)((0,i.A)({},Ie.L9),{padding:`0 ${r}px`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},Re=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,previewOperationColorDisabled:o,motionDurationSlow:a}=e,s=new Se.q(n).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${t}-operations`]:(0,i.A)((0,i.A)({},(0,Ie.dF)(e)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:e.previewOperationColor,listStyle:"none",background:s.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{color:o,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:e.previewOperationSize}})}},Le=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:o,motionDurationSlow:a}=e,s=new Se.q(t).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:o+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:l.toRgbString()},["&-disabled"]:{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}},Be=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:(0,i.A)((0,i.A)({},De()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":(0,i.A)((0,i.A)({},De()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:e.zIndexPopup+1,width:"100%"},"&":[Re(e),Le(e)]}]},Pe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:(0,i.A)({},Ne(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:(0,i.A)({},De())}}},Fe=e=>{const{previewCls:t}=e;return{[`${t}-root`]:(0,Te.aB)(e,"zoom"),["&"]:(0,ke.p9)(e,!0)}};var $e=(0,Oe.A)("Image",e=>{const t=`${e.componentCls}-preview`,n=(0,Me.h1)(e,{previewCls:t,modalMaskBg:new Se.q("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Pe(n),Be(n),(0,Ce.D)((0,Me.h1)(n,{componentCls:t})),Fe(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Se.q(e.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new Se.q(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon})),je=n(44678);const He={rotateLeft:(0,o.bF)(q,null,null),rotateRight:(0,o.bF)(ne,null,null),zoomIn:(0,o.bF)(le,null,null),zoomOut:(0,o.bF)(pe,null,null),close:(0,o.bF)(ge.A,null,null),left:(0,o.bF)(me.A,null,null),right:(0,o.bF)(ve.A,null,null),flipX:(0,o.bF)(xe,null,null),flipY:(0,o.bF)(xe,{rotate:90},null)},Ue=()=>({previewPrefixCls:String,preview:(0,je.ds)()}),Qe=(0,o.pM)({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:Ue(),setup(e,t){let{attrs:n,slots:a}=t;const{prefixCls:s,rootPrefixCls:l}=(0,Q.A)("image",e),c=(0,o.EW)(()=>`${s.value}-preview`),[u,d]=$e(s),h=(0,o.EW)(()=>{const{preview:t}=e;if(!1===t)return t;const n="object"===typeof t?t:{};return(0,i.A)((0,i.A)({},n),{rootClassName:d.value,transitionName:(0,Ee.by)(l.value,"zoom",n.transitionName),maskTransitionName:(0,Ee.by)(l.value,"fade",n.maskTransitionName)})});return()=>u((0,o.bF)(M,(0,r.A)((0,r.A)({},(0,i.A)((0,i.A)({},n),e)),{},{preview:h.value,icons:He,previewPrefixCls:c.value}),a))}});var ze=Qe,We=n(4501);const Ge=(0,o.pM)({name:"AImage",inheritAttrs:!1,props:B(),setup(e,t){let{slots:n,attrs:a}=t;const{prefixCls:s,rootPrefixCls:l,configProvider:c}=(0,Q.A)("image",e),[u,d]=$e(s),f=(0,o.EW)(()=>{const{preview:t}=e;if(!1===t)return t;const n="object"===typeof t?t:{};return(0,i.A)((0,i.A)({icons:He},n),{transitionName:(0,Ee.by)(l.value,"zoom",n.transitionName),maskTransitionName:(0,Ee.by)(l.value,"fade",n.maskTransitionName)})});return()=>{var t,l;const p=(null===(l=null===(t=c.locale)||void 0===t?void 0:t.value)||void 0===l?void 0:l.Image)||U.A.Image,g=()=>(0,o.bF)("div",{class:`${s.value}-mask-info`},[(0,o.bF)(We.A,null,null),null===p||void 0===p?void 0:p.preview]),{previewMask:m=n.previewMask||g}=e;return u((0,o.bF)(H,(0,r.A)((0,r.A)({},(0,i.A)((0,i.A)((0,i.A)({},a),e),{prefixCls:s.value})),{},{preview:f.value,rootClassName:(0,h.A)(e.rootClassName,d.value)}),(0,i.A)((0,i.A)({},n),{previewMask:"function"===typeof m?m:null})))}}});Ge.PreviewGroup=ze,Ge.install=function(e){return e.component(Ge.name,Ge),e.component(Ge.PreviewGroup.name,Ge.PreviewGroup),e};var Ve=Ge},54772:function(e,t,n){const r=n(17195),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(e){this.mode=r.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*i.indexOf(this.data[t]);n+=i.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(i.indexOf(this.data[t]),6)},e.exports=o},54841:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});n(79577),n(41549),n(49797),n(49631),n(35623);let r;const i=new Uint8Array(16);function o(){if(!r){if("undefined"===typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");r=crypto.getRandomValues.bind(crypto)}return r(i)}n(44114);const a=[];for(let f=0;f<256;++f)a.push((f+256).toString(16).slice(1));function s(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}const l={};function c(e,t,n){var r;let i;const a=(null===(r=e)||void 0===r?void 0:r._v6)??!1;if(e){const t=Object.keys(e);1===t.length&&"_v6"===t[0]&&(e=void 0)}if(e){var c,h;i=d(e.random??(null===(c=(h=e).rng)||void 0===c?void 0:c.call(h))??o(),e.msecs,e.nsecs,e.clockseq,e.node,t,n)}else{const e=Date.now(),r=o();u(l,e,r),i=d(r,l.msecs,l.nsecs,a?void 0:l.clockseq,a?void 0:l.node,t,n)}return t??s(i)}function u(e,t,n){return e.msecs??=-1/0,e.nsecs??=0,t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t<e.msecs&&(e.node=void 0),e.node||(e.node=n.slice(10,16),e.node[0]|=1,e.clockseq=16383&(n[8]<<8|n[9])),e.msecs=t,e}function d(e,t,n,r,i,o,a=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(o){if(a<0||a+16>o.length)throw new RangeError(`UUID byte range ${a}:${a+15} is out of buffer bounds`)}else o=new Uint8Array(16),a=0;t??=Date.now(),n??=0,r??=16383&(e[8]<<8|e[9]),i??=e.slice(10,16),t+=122192928e5;const s=(1e4*(268435455&t)+n)%4294967296;o[a++]=s>>>24&255,o[a++]=s>>>16&255,o[a++]=s>>>8&255,o[a++]=255&s;const l=t/4294967296*1e4&268435455;o[a++]=l>>>8&255,o[a++]=255&l,o[a++]=l>>>24&15|16,o[a++]=l>>>16&255,o[a++]=r>>>8|128,o[a++]=255&r;for(let c=0;c<6;++c)o[a++]=i[c];return o}var h=c},55002:function(e){"use strict";e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},55071:function(e){function t(e){const t=["package","import","option","optional","required","repeated","group","oneof"],n=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],r={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:t,type:n,literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}e.exports=t},55107:function(e,t,n){"use strict";var r=n(51137);function i(e,t){const n=(0,r.A)({},e);for(let r=0;r<t.length;r+=1){const e=t[r];delete n[e]}return n}t.A=i},55169:function(e,t,n){"use strict";var r=n(3238),i=TypeError;e.exports=function(e){if(r(e))throw new i("ArrayBuffer is detached");return e}},55205:function(e,t,n){var r=n(55395),i=n(72327),o=Object.hasOwnProperty,a=Object.create(null);for(var s in r)o.call(r,s)&&(a[r[s]]=s);var l=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n,r=e.substring(0,3).toLowerCase();switch(r){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb";break}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,i,a=/^#([a-f0-9]{3,4})$/i,s=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,l=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,u=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,d=/^(\w+)$/,h=[0,0,0,1];if(t=e.match(s)){for(i=t[2],t=t[1],n=0;n<3;n++){var f=2*n;h[n]=parseInt(t.slice(f,f+2),16)}i&&(h[3]=parseInt(i,16)/255)}else if(t=e.match(a)){for(t=t[1],i=t[3],n=0;n<3;n++)h[n]=parseInt(t[n]+t[n],16);i&&(h[3]=parseInt(i+i,16)/255)}else if(t=e.match(l)){for(n=0;n<3;n++)h[n]=parseInt(t[n+1],0);t[4]&&(t[5]?h[3]=.01*parseFloat(t[4]):h[3]=parseFloat(t[4]))}else{if(!(t=e.match(u)))return(t=e.match(d))?"transparent"===t[1]?[0,0,0,0]:o.call(r,t[1])?(h=r[t[1]],h[3]=1,h):null:null;for(n=0;n<3;n++)h[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?h[3]=.01*parseFloat(t[4]):h[3]=parseFloat(t[4]))}for(n=0;n<3;n++)h[n]=c(h[n],0,255);return h[3]=c(h[3],0,1),h},l.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),i=(parseFloat(n[1])%360+360)%360,o=c(parseFloat(n[2]),0,100),a=c(parseFloat(n[3]),0,100),s=c(isNaN(r)?1:r,0,1);return[i,o,a,s]}return null},l.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),i=(parseFloat(n[1])%360+360)%360,o=c(parseFloat(n[2]),0,100),a=c(parseFloat(n[3]),0,100),s=c(isNaN(r)?1:r,0,1);return[i,o,a,s]}return null},l.to.hex=function(){var e=i(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=i(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=i(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=i(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return a[e.slice(0,3)]}},55226:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="CloseCircleOutlined",c.inheritAttrs=!1;var u=c},55395:function(e){"use strict";e.exports={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]}},55475:function(e){function t(e){const t=e.regex,n={begin:"^'{3,}[ \\t]*$",relevance:10},r=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],i=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:t.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],o=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:t.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],a={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},s={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ \t].+?([ \t]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},s,a,...r,...i,...o,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},n,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}e.exports=t},55498:function(e,t,n){"use strict";n.d(t,{Fq:function(){return s},Pu:function(){return c},qz:function(){return i}});n(18111),n(13579);var r=n(45887);const i=()=>(0,r.A)()&&window.document.documentElement,o=e=>{if((0,r.A)()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(e=>e in n.style)}return!1},a=(e,t)=>{if(!o(e))return!1;const n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function s(e,t){return Array.isArray(e)||void 0===t?o(e):a(e,t)}let l;const c=()=>{if(!i())return!1;if(void 0!==l)return l;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),l=1===e.scrollHeight,document.body.removeChild(e),l};t.Ay=s},55573:function(e,t,n){"use strict";n.d(t,{F4:function(){return c},OL:function(){return o},bk:function(){return a},gS:function(){return l},pt:function(){return s}});var r=n(44832);const i=e=>void 0!==e&&null!==e&&(!Array.isArray(e)||(0,r.Gk)(e).length);function o(e){return i(e.prefix)||i(e.suffix)||i(e.allowClear)}function a(e){return i(e.addonBefore)||i(e.addonAfter)}function s(e){return"undefined"===typeof e||null===e?"":String(e)}function l(e,t,n,r){if(!n)return;const i=t;if("click"===t.type){Object.defineProperty(i,"target",{writable:!0}),Object.defineProperty(i,"currentTarget",{writable:!0});const t=e.cloneNode(!0);return i.target=t,i.currentTarget=t,t.value="",void n(i)}if(void 0!==r)return Object.defineProperty(i,"target",{writable:!0}),Object.defineProperty(i,"currentTarget",{writable:!0}),i.target=e,i.currentTarget=e,e.value=r,void n(i);n(i)}function c(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const t=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}},55603:function(e){function t(e){const t=["abs","acos","ambient","area","asin","atan","atmosphere","attribute","calculatenormal","ceil","cellnoise","clamp","comp","concat","cos","degrees","depth","Deriv","diffuse","distance","Du","Dv","environment","exp","faceforward","filterstep","floor","format","fresnel","incident","length","lightsource","log","match","max","min","mod","noise","normalize","ntransform","opposite","option","phong","pnoise","pow","printf","ptlined","radians","random","reflect","refract","renderinfo","round","setcomp","setxcomp","setycomp","setzcomp","shadow","sign","sin","smoothstep","specular","specularbrdf","spline","sqrt","step","tan","texture","textureinfo","trace","transform","vtransform","xcomp","ycomp","zcomp"],n=["matrix","float","color","point","normal","vector"],r=["while","for","if","do","return","else","break","extern","continue"],i={match:[/(surface|displacement|light|volume|imager)/,/\s+/,e.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:r,built_in:t,type:n},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},i,{beginKeywords:"illuminate illuminance gather",end:"\\("}]}}e.exports=t},55798:function(e,t,n){"use strict";n.d(t,{Ay:function(){return l},Di:function(){return s},Zs:function(){return a}});n(18111),n(61701);var r=n(51137),i=n(49752);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.map(e=>`${t}${e}`).join(",")}const a=8;function s(e){const t=a,{sizePopupArrow:n,contentRadius:r,borderRadiusOuter:i,limitVerticalRadius:o}=e,s=n/2-Math.ceil(i*(Math.sqrt(2)-1)),l=(r>12?r+2:12)-s,c=o?t-s:l;return{dropdownArrowOffset:l,dropdownArrowOffsetVertical:c}}function l(e,t){const{componentCls:n,sizePopupArrow:a,marginXXS:l,borderRadiusXS:c,borderRadiusOuter:u,boxShadowPopoverArrow:d}=e,{colorBg:h,showArrowCls:f,contentRadius:p=e.borderRadiusLG,limitVerticalRadius:g}=t,{dropdownArrowOffsetVertical:m,dropdownArrowOffset:v}=s({sizePopupArrow:a,contentRadius:p,borderRadiusOuter:u,limitVerticalRadius:g}),A=a/2+l;return{[n]:{[`${n}-arrow`]:[(0,r.A)((0,r.A)({position:"absolute",zIndex:1,display:"block"},(0,i.d)(a,c,u,h,d)),{"&:before":{background:h}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:v}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:v}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:v}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:v}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:m},[`&-placement-leftBottom ${n}-arrow`]:{bottom:m},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:m},[`&-placement-rightBottom ${n}-arrow`]:{bottom:m},[o(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map(e=>e+":not(&-arrow-hidden)"),f)]:{paddingBottom:A},[o(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map(e=>e+":not(&-arrow-hidden)"),f)]:{paddingTop:A},[o(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map(e=>e+":not(&-arrow-hidden)"),f)]:{paddingRight:{_skip_check_:!0,value:A}},[o(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map(e=>e+":not(&-arrow-hidden)"),f)]:{paddingLeft:{_skip_check_:!0,value:A}}}}}},55966:function(e,t,n){"use strict";var r=n(79306),i=n(64117);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},56030:function(e,t,n){"use strict";n.r(t),n.d(t,{ABORT:function(){return E},AFTER_DEFINITION_CHANGE:function(){return W},AUTOPLAY_PREVENTED:function(){return I},AUTOPLAY_STARTED:function(){return M},BEFORE_DEFINITION_CHANGE:function(){return z},BUFFER_CHANGE:function(){return S},CANPLAY:function(){return h},CANPLAY_THROUGH:function(){return f},COMPLETE:function(){return D},CSS_FULLSCREEN_CHANGE:function(){return H},DEFINITION_CHANGE:function(){return Q},DESTROY:function(){return R},DOWNLOAD_SPEED_CHANGE:function(){return B},DURATION_CHANGE:function(){return p},EMPTIED:function(){return w},ENDED:function(){return o},ENTER_PLAYER:function(){return F},ERROR:function(){return s},FPS_STUCK:function(){return le},FULLSCREEN_CHANGE:function(){return j},LEAVE_PLAYER:function(){return P},LOADED_DATA:function(){return m},LOADED_METADATA:function(){return v},LOADING:function(){return $},LOAD_START:function(){return y},MINI_STATE_CHANGE:function(){return U},PAUSE:function(){return a},PIP_CHANGE:function(){return Y},PLAY:function(){return r},PLAYER_BLUR:function(){return T},PLAYER_FOCUS:function(){return C},PLAYING:function(){return i},PLAYNEXT:function(){return J},PROGRESS:function(){return b},RATE_CHANGE:function(){return A},READY:function(){return k},REPLAY:function(){return N},RESET:function(){return ne},RETRY:function(){return V},ROTATE:function(){return q},SCREEN_SHOT:function(){return X},SEEKED:function(){return c},SEEKING:function(){return l},SEI_PARSED:function(){return G},SHORTCUT:function(){return Z},SOURCE_ERROR:function(){return re},SOURCE_SUCCESS:function(){return ie},STALLED:function(){return _},STATS_EVENTS:function(){return se},SUSPEND:function(){return x},SWITCH_SUBTITLE:function(){return oe},TIME_UPDATE:function(){return u},URL_CHANGE:function(){return L},URL_NULL:function(){return O},USER_ACTION:function(){return te},VIDEO_EVENTS:function(){return ae},VIDEO_RESIZE:function(){return K},VOLUME_CHANGE:function(){return g},WAITING:function(){return d},XGLOG:function(){return ee}});var r="play",i="playing",o="ended",a="pause",s="error",l="seeking",c="seeked",u="timeupdate",d="waiting",h="canplay",f="canplaythrough",p="durationchange",g="volumechange",m="loadeddata",v="loadedmetadata",A="ratechange",b="progress",y="loadstart",w="emptied",_="stalled",x="suspend",E="abort",S="bufferedChange",C="focus",T="blur",k="ready",O="urlNull",M="autoplay_started",I="autoplay_was_prevented",D="complete",N="replay",R="destroy",L="urlchange",B="download_speed_change",P="leaveplayer",F="enterplayer",$="loading",j="fullscreen_change",H="cssFullscreen_change",U="mini_state_change",Q="definition_change",z="before_definition_change",W="after_definition_change",G="SEI_PARSED",V="retry",K="video_resize",Y="pip_change",q="rotate",X="screenShot",J="playnext",Z="shortcut",ee="xglog",te="user_action",ne="reset",re="source_error",ie="source_success",oe="switch_subtitle",ae=["play","playing","ended","pause","error","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","volumechange","loadeddata","loadedmetadata","ratechange","progress","loadstart","emptied","stalled","suspend","abort","lowdecode"],se={STATS_INFO:"stats_info",STATS_DOWNLOAD:"stats_download",STATS_RESET:"stats_reset"},le="fps_stuck"},56054:function(e,t){"use strict";function n(){return[]}t.A=n},56202:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M666.7 505.5l-246-178A8 8 0 00408 334v46.9c0 10.2 4.9 19.9 13.2 25.9L566.6 512 421.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5l246-178c4.4-3.2 4.4-9.8 0-13z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"right-circle",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="RightCircleOutlined",c.inheritAttrs=!1;var u=c},56262:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(87810);function i(){return!1}var o=i;var a=n(90144),s=n(56768);function l(e,t,n,i){const l=(0,r.K6)(),c=(0,a.IJ)(""),u=(0,a.IJ)();(0,s.nT)(()=>{c.value=[e,...t.value].join("%")});o();const d=e=>{l.value.cache.update(e,e=>{const[t=0,n]=e||[],r=t-1;return 0===r?(null===i||void 0===i||i(n,!1),null):[t-1,n]})};return(0,s.wB)(c,(e,t)=>{t&&d(t),l.value.cache.update(e,e=>{const[t=0,r]=e||[];let i=r;const o=i||n();return[t+1,o]}),u.value=l.value.cache.get(c.value)[1]},{immediate:!0}),(0,s.xo)(()=>{d(c.value)}),u}},56279:function(e,t,n){"use strict";var r=n(36840);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},56405:function(e,t,n){"use strict";n.d(t,{$W:function(){return h},dJ:function(){return l},db:function(){return d},yx:function(){return f}});var r=n(56768),i=n(90144),o=n(66139);const a=Symbol("ContextProps"),s=Symbol("InternalContextProps"),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,r.EW)(()=>!0);const n=(0,i.KR)(new Map),o=(e,t)=>{n.value.set(e,t),n.value=new Map(n.value)},l=e=>{n.value.delete(e),n.value=new Map(n.value)};(0,r.nI)();(0,r.wB)([t,n],()=>{0}),(0,r.Gt)(a,e),(0,r.Gt)(s,{addFormItemField:o,removeFormItemField:l})},c={id:(0,r.EW)(()=>{}),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},u={addFormItemField:()=>{},removeFormItemField:()=>{}},d=()=>{const e=(0,r.WQ)(s,u),t=Symbol("FormItemFieldKey"),n=(0,r.nI)();return e.addFormItemField(t,n.type),(0,r.xo)(()=>{e.removeFormItemField(t)}),(0,r.Gt)(s,u),(0,r.Gt)(a,c),(0,r.WQ)(a,c)};t.Ay=(0,r.pM)({compatConfig:{MODE:3},name:"AFormItemRest",setup(e,t){let{slots:n}=t;return(0,r.Gt)(s,u),(0,r.Gt)(a,c),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}});const h=(0,o.A)({}),f=(0,r.pM)({name:"NoFormStatus",setup(e,t){let{slots:n}=t;return h.useProvide({}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}})},56498:function(e){function t(e){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},e.COMMENT("^\\s*(!=#|=#|-#|/).*$",null,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",end:/$/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}e.exports=t},56588:function(e){function t(e){const t=e.regex,n={className:"params",begin:"\\(",end:"\\)"},r=/(_[a-z_\d]+)?/,i=/([de][+-]?\d+)?/,o={className:"number",variants:[{begin:t.concat(/\b\d+/,/\.(\d*)/,i,r)},{begin:t.concat(/\b\d+/,i,r)},{begin:t.concat(/\.\d+/,i,r)}],relevance:0},a={literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated  c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"};return{name:"IRPF90",case_insensitive:!0,keywords:a,illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,n]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),o]}}e.exports=t},56682:function(e){function t(e){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$"}]}}e.exports=t},56751:function(e,t,n){n(18111),n(22489);const r=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],i=["true","false","null","undefined","NaN","Infinity"],o=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],a=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],l=[].concat(s,o,a);function c(e){const t=["npm","print"],n=["yes","no","on","off"],o=["then","unless","until","loop","by","when","and","or","is","isnt","not"],a=["var","const","let","function","static"],s=e=>t=>!e.includes(t),c={keyword:r.concat(o).filter(s(a)),literal:i.concat(n),built_in:l.concat(t)},u="[A-Za-z$_][0-9A-Za-z$_]*",d={className:"subst",begin:/#\{/,end:/\}/,keywords:c},h=[e.BINARY_NUMBER_MODE,e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,d]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,d]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[d,e.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+u},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];d.contains=h;const f=e.inherit(e.TITLE_MODE,{begin:u}),p="(\\(.*\\)\\s*)?\\B[-=]>",g={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:c,contains:["self"].concat(h)}]},m={variants:[{match:[/class\s+/,u,/\s+extends\s+/,u]},{match:[/class\s+/,u]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:c};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:c,illegal:/\/\*/,contains:[...h,e.COMMENT("###","###"),e.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+u+"\\s*=\\s*"+p,end:"[-=]>",returnBegin:!0,contains:[f,g]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:p,end:"[-=]>",returnBegin:!0,contains:[g]}]},m,{begin:u+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}e.exports=c},56768:function(e,t,n){"use strict";n.d(t,{$u:function(){return Ce},$y:function(){return Pe},CE:function(){return Mn},Df:function(){return ie},E3:function(){return jn},EW:function(){return vr},EY:function(){return yn},FK:function(){return bn},Fv:function(){return Un},Gt:function(){return yt},Gy:function(){return G},HF:function(){return et},Ht:function(){return qe},Ic:function(){return Se},Im:function(){return H},K9:function(){return Ut},KC:function(){return xe},Lk:function(){return Bn},MZ:function(){return re},Mw:function(){return wn},Ng:function(){return $n},OA:function(){return Xe},OW:function(){return ee},PR:function(){return fe},Q3:function(){return Qn},QP:function(){return K},RG:function(){return Qe},Tb:function(){return We},WQ:function(){return wt},Wv:function(){return In},Y4:function(){return me},bF:function(){return Pn},bo:function(){return O},dY:function(){return m},eW:function(){return Hn},eX:function(){return Ue},g2:function(){return Le},gN:function(){return Fe},h:function(){return Ar},hi:function(){return ke},k6:function(){return k},n:function(){return ge},nI:function(){return Zn},nT:function(){return Zt},p9:function(){return en},pI:function(){return He},pM:function(){return oe},pR:function(){return J},qL:function(){return a},sV:function(){return Ee},uX:function(){return Sn},v6:function(){return Vn},vv:function(){return Dn},wB:function(){return tn},xo:function(){return Te}});n(44114),n(18111),n(81148),n(22489),n(7588),n(61701),n(18237),n(13579),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698);var r=n(90144),i=n(24232);function o(e,t,n,r){try{return r?e(...r):e()}catch(i){s(i,t,n)}}function a(e,t,n,r){if((0,i.Tn)(e)){const a=o(e,t,n,r);return a&&(0,i.yL)(a)&&a.catch(e=>{s(e,t,n)}),a}if((0,i.cy)(e)){const i=[];for(let o=0;o<e.length;o++)i.push(a(e[o],t,n,r));return i}}function s(e,t,n,a=!0){const s=t?t.vnode:null,{errorHandler:c,throwUnhandledErrorInProduction:u}=t&&t.appContext.config||i.MZ;if(t){let i=t.parent;const a=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;while(i){const t=i.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,a,s))return;i=i.parent}if(c)return(0,r.C4)(),o(c,null,10,[e,a,s]),void(0,r.bl)()}l(e,n,s,a,u)}function l(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const c=[];let u=-1;const d=[];let h=null,f=0;const p=Promise.resolve();let g=null;function m(e){const t=g||p;return e?t.then(this?e.bind(this):e):t}function v(e){let t=u+1,n=c.length;while(t<n){const r=t+n>>>1,i=c[r],o=x(i);o<e||o===e&&2&i.flags?t=r+1:n=r}return t}function A(e){if(!(1&e.flags)){const t=x(e),n=c[c.length-1];!n||!(2&e.flags)&&t>=x(n)?c.push(e):c.splice(v(t),0,e),e.flags|=1,b()}}function b(){g||(g=p.then(E))}function y(e){(0,i.cy)(e)?d.push(...e):h&&-1===e.id?h.splice(f+1,0,e):1&e.flags||(d.push(e),e.flags|=1),b()}function w(e,t,n=u+1){for(0;n<c.length;n++){const t=c[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;0,c.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function _(e){if(d.length){const e=[...new Set(d)].sort((e,t)=>x(e)-x(t));if(d.length=0,h)return void h.push(...e);for(h=e,f=0;f<h.length;f++){const e=h[f];0,4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}h=null,f=0}}const x=e=>null==e.id?2&e.flags?-1:1/0:e.id;function E(e){i.tE;try{for(u=0;u<c.length;u++){const e=c[u];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),o(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;u<c.length;u++){const e=c[u];e&&(e.flags&=-2)}u=-1,c.length=0,_(e),g=null,(c.length||d.length)&&E(e)}}let S=null,C=null;function T(e){const t=S;return S=e,C=e&&e.type.__scopeId||null,t}function k(e,t=S,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&kn(-1);const i=T(t);let o;try{o=e(...n)}finally{T(i),r._d&&kn(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function O(e,t){if(null===S)return e;const n=pr(S),o=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[e,s,l,c=i.MZ]=t[a];e&&((0,i.Tn)(e)&&(e={mounted:e,updated:e}),e.deep&&(0,r.hV)(s),o.push({dir:e,instance:n,value:s,oldValue:void 0,arg:l,modifiers:c}))}return e}function M(e,t,n,i){const o=e.dirs,s=t&&t.dirs;for(let l=0;l<o.length;l++){const c=o[l];s&&(c.oldValue=s[l].value);let u=c.dir[i];u&&((0,r.C4)(),a(u,n,8,[e.el,c,e,t]),(0,r.bl)())}}const I=Symbol("_vte"),D=e=>e.__isTeleport,N=e=>e&&(e.disabled||""===e.disabled),R=e=>e&&(e.defer||""===e.defer),L=e=>"undefined"!==typeof SVGElement&&e instanceof SVGElement,B=e=>"function"===typeof MathMLElement&&e instanceof MathMLElement,P=(e,t)=>{const n=e&&e.to;if((0,i.Kg)(n)){if(t){const e=t(n);return e}return null}return n},F={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,o,a,s,l,c){const{mc:u,pc:d,pbc:h,o:{insert:f,querySelector:p,createText:g,createComment:m}}=c,v=N(t.props);let{shapeFlag:A,children:b,dynamicChildren:y}=t;if(null==e){const e=t.el=g(""),c=t.anchor=g("");f(e,n,r),f(c,n,r);const d=(e,t)=>{16&A&&u(b,e,t,i,o,a,s,l)},h=()=>{const e=t.target=P(t.props,p),n=Q(e,t,g,f);e&&("svg"!==a&&L(e)?a="svg":"mathml"!==a&&B(e)&&(a="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(e),v||(d(e,n),U(t,!1)))};v&&(d(n,c),U(t,!0)),R(t.props)?(t.el.__isMounted=!1,Ht(()=>{h(),delete t.el.__isMounted},o)):h()}else{if(R(t.props)&&!1===e.el.__isMounted)return void Ht(()=>{F.process(e,t,n,r,i,o,a,s,l,c)},o);t.el=e.el,t.targetStart=e.targetStart;const u=t.anchor=e.anchor,f=t.target=e.target,g=t.targetAnchor=e.targetAnchor,m=N(e.props),A=m?n:f,b=m?u:g;if("svg"===a||L(f)?a="svg":("mathml"===a||B(f))&&(a="mathml"),y?(h(e.dynamicChildren,y,A,i,o,a,s),Vt(e,t,!0)):l||d(e,t,A,b,i,o,a,s,!1),v)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):$(t,n,u,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=P(t.props,p);e&&$(t,e,null,c,0)}else m&&$(t,f,g,c,1);U(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},o){const{shapeFlag:a,children:s,anchor:l,targetStart:c,targetAnchor:u,target:d,props:h}=e;if(d&&(i(c),i(u)),o&&i(l),16&a){const e=o||!N(h);for(let i=0;i<s.length;i++){const o=s[i];r(o,t,n,e,!!o.dynamicChildren)}}},move:$,hydrate:j};function $(e,t,n,{o:{insert:r},m:i},o=2){0===o&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:c,props:u}=e,d=2===o;if(d&&r(a,t,n),(!d||N(u))&&16&l)for(let h=0;h<c.length;h++)i(c[h],t,n,2);d&&r(s,t,n)}function j(e,t,n,r,i,o,{o:{nextSibling:a,parentNode:s,querySelector:l,insert:c,createText:u}},d){function h(e,t,l,c){t.anchor=d(a(e),t,s(e),n,r,i,o),t.targetStart=l,t.targetAnchor=c}const f=t.target=P(t.props,l),p=N(t.props);if(f){const s=f._lpa||f.firstChild;if(16&t.shapeFlag)if(p)h(e,t,s,s&&a(s));else{t.anchor=a(e);let l=s;while(l){if(l&&8===l.nodeType)if("teleport start anchor"===l.data)t.targetStart=l;else if("teleport anchor"===l.data){t.targetAnchor=l,f._lpa=t.targetAnchor&&a(t.targetAnchor);break}l=a(l)}t.targetAnchor||Q(f,t,u,c),d(s&&a(s),t,f,n,r,i,o)}U(t,p)}else p&&16&t.shapeFlag&&h(e,t,e,a(e));return t.anchor&&a(t.anchor)}const H=F;function U(e,t){const n=e.ctx;if(n&&n.ut){let r,i;t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);while(r&&r!==i)1===r.nodeType&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Q(e,t,n,r){const i=t.targetStart=n(""),o=t.targetAnchor=n("");return i[I]=o,e&&(r(i,e),r(o,e)),o}const z=Symbol("_leaveCb"),W=Symbol("_enterCb");function G(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ee(()=>{e.isMounted=!0}),Te(()=>{e.isUnmounting=!0}),e}const V=[Function,Array],K={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:V,onEnter:V,onAfterEnter:V,onEnterCancelled:V,onBeforeLeave:V,onLeave:V,onAfterLeave:V,onLeaveCancelled:V,onBeforeAppear:V,onAppear:V,onAfterAppear:V,onAppearCancelled:V},Y=e=>{const t=e.subTree;return t.component?Y(t.component):t},q={name:"BaseTransition",props:K,setup(e,{slots:t}){const n=Zn(),i=G();return()=>{const o=t.default&&ie(t.default(),!0);if(!o||!o.length)return;const a=X(o),s=(0,r.ux)(e),{mode:l}=s;if(i.isLeaving)return te(a);const c=ne(a);if(!c)return te(a);let u=ee(c,s,i,n,e=>u=e);c.type!==wn&&re(c,u);let d=n.subTree&&ne(n.subTree);if(d&&d.type!==wn&&!Nn(d,c)&&Y(n).type!==wn){let e=ee(d,s,i,n);if(re(d,e),"out-in"===l&&c.type!==wn)return i.isLeaving=!0,e.afterLeave=()=>{i.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,d=void 0},te(a);"in-out"===l&&c.type!==wn?e.delayLeave=(e,t,n)=>{const r=Z(i,d);r[String(d.key)]=d,e[z]=()=>{t(),e[z]=void 0,delete u.delayedLeave,d=void 0},u.delayedLeave=()=>{n(),delete u.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return a}}};function X(e){let t=e[0];if(e.length>1){let n=!1;for(const r of e)if(r.type!==wn){0,t=r,n=!0;break}}return t}const J=q;function Z(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ee(e,t,n,r,o){const{appear:s,mode:l,persisted:c=!1,onBeforeEnter:u,onEnter:d,onAfterEnter:h,onEnterCancelled:f,onBeforeLeave:p,onLeave:g,onAfterLeave:m,onLeaveCancelled:v,onBeforeAppear:A,onAppear:b,onAfterAppear:y,onAppearCancelled:w}=t,_=String(e.key),x=Z(n,e),E=(e,t)=>{e&&a(e,r,9,t)},S=(e,t)=>{const n=t[1];E(e,t),(0,i.cy)(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},C={mode:l,persisted:c,beforeEnter(t){let r=u;if(!n.isMounted){if(!s)return;r=A||u}t[z]&&t[z](!0);const i=x[_];i&&Nn(e,i)&&i.el[z]&&i.el[z](),E(r,[t])},enter(e){let t=d,r=h,i=f;if(!n.isMounted){if(!s)return;t=b||d,r=y||h,i=w||f}let o=!1;const a=e[W]=t=>{o||(o=!0,E(t?i:r,[e]),C.delayedLeave&&C.delayedLeave(),e[W]=void 0)};t?S(t,[e,a]):a()},leave(t,r){const i=String(e.key);if(t[W]&&t[W](!0),n.isUnmounting)return r();E(p,[t]);let o=!1;const a=t[z]=n=>{o||(o=!0,r(),E(n?v:m,[t]),t[z]=void 0,x[i]===e&&delete x[i])};x[i]=e,g?S(g,[t,a]):a()},clone(e){const i=ee(e,t,n,r,o);return o&&o(i),i}};return C}function te(e){if(de(e))return e=jn(e),e.children=null,e}function ne(e){if(!de(e))return D(e.type)&&e.children?X(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&(0,i.Tn)(n.default))return n.default()}}function re(e,t){6&e.shapeFlag&&e.component?(e.transition=t,re(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ie(e,t=!1,n){let r=[],i=0;for(let o=0;o<e.length;o++){let a=e[o];const s=null==n?a.key:String(n)+String(null!=a.key?a.key:o);a.type===bn?(128&a.patchFlag&&i++,r=r.concat(ie(a.children,t,s))):(t||a.type!==wn)&&r.push(null!=s?jn(a,{key:s}):a)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function oe(e,t){return(0,i.Tn)(e)?(()=>(0,i.X$)({name:e.name},t,{setup:e}))():e}function ae(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const se=new WeakMap;function le(e,t,n,a,s=!1){if((0,i.cy)(e))return void e.forEach((e,r)=>le(e,t&&((0,i.cy)(t)?t[r]:t),n,a,s));if(ue(a)&&!s)return void(512&a.shapeFlag&&a.type.__asyncResolved&&a.component.subTree.component&&le(e,t,n,a.component.subTree));const l=4&a.shapeFlag?pr(a.component):a.el,c=s?null:l,{i:u,r:d}=e;const h=t&&t.r,f=u.refs===i.MZ?u.refs={}:u.refs,p=u.setupState,g=(0,r.ux)(p),m=p===i.MZ?i.NO:e=>(0,i.$3)(g,e),v=e=>!0;if(null!=h&&h!==d)if(ce(t),(0,i.Kg)(h))f[h]=null,m(h)&&(p[h]=null);else if((0,r.i9)(h)){v(h)&&(h.value=null);const e=t;e.k&&(f[e.k]=null)}if((0,i.Tn)(d))o(d,u,12,[c,f]);else{const t=(0,i.Kg)(d),o=(0,r.i9)(d);if(t||o){const r=()=>{if(e.f){const n=t?m(d)?p[d]:f[d]:v(d)||!e.k?d.value:f[e.k];if(s)(0,i.cy)(n)&&(0,i.TF)(n,l);else if((0,i.cy)(n))n.includes(l)||n.push(l);else if(t)f[d]=[l],m(d)&&(p[d]=f[d]);else{const t=[l];v(d)&&(d.value=t),e.k&&(f[e.k]=t)}}else t?(f[d]=c,m(d)&&(p[d]=c)):o&&(v(d)&&(d.value=c),e.k&&(f[e.k]=c))};if(c){const t=()=>{r(),se.delete(e)};t.id=-1,se.set(e,t),Ht(t,n)}else ce(e),r()}else 0}}function ce(e){const t=se.get(e);t&&(t.flags|=8,se.delete(e))}(0,i.We)().requestIdleCallback,(0,i.We)().cancelIdleCallback;const ue=e=>!!e.type.__asyncLoader;const de=e=>e.type.__isKeepAlive,he={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Zn(),r=n.ctx;if(!r.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const o=new Map,a=new Set;let s=null;const l=n.suspense,{renderer:{p:c,m:u,um:d,o:{createElement:h}}}=r,f=h("div");function p(e){be(e),d(e,n,l,!0)}function g(e){o.forEach((t,n)=>{const r=gr(t.type);r&&!e(r)&&m(n)})}function m(e){const t=o.get(e);!t||s&&Nn(t,s)?s&&be(s):p(t),o.delete(e),a.delete(e)}r.activate=(e,t,n,r,o)=>{const a=e.component;u(e,t,n,0,l),c(a.vnode,e,t,n,a,l,r,e.slotScopeIds,o),Ht(()=>{a.isDeactivated=!1,a.a&&(0,i.DY)(a.a);const t=e.props&&e.props.onVnodeMounted;t&&Kn(t,a.parent,e)},l)},r.deactivate=e=>{const t=e.component;qt(t.m),qt(t.a),u(e,f,null,1,l),Ht(()=>{t.da&&(0,i.DY)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&Kn(n,t.parent,e),t.isDeactivated=!0},l)},tn(()=>[e.include,e.exclude],([e,t])=>{e&&g(t=>pe(e,t)),t&&g(e=>!pe(t,e))},{flush:"post",deep:!0});let v=null;const A=()=>{null!=v&&(vn(n.subTree.type)?Ht(()=>{o.set(v,ye(n.subTree))},n.subTree.suspense):o.set(v,ye(n.subTree)))};return Ee(A),Ce(A),Te(()=>{o.forEach(e=>{const{subTree:t,suspense:r}=n,i=ye(t);if(e.type===i.type&&e.key===i.key){be(i);const e=i.component.da;return void(e&&Ht(e,r))}p(e)})}),()=>{if(v=null,!t.default)return s=null;const n=t.default(),r=n[0];if(n.length>1)return s=null,n;if(!Dn(r)||!(4&r.shapeFlag)&&!(128&r.shapeFlag))return s=null,r;let i=ye(r);if(i.type===wn)return s=null,i;const l=i.type,c=gr(ue(i)?i.type.__asyncResolved||{}:l),{include:u,exclude:d,max:h}=e;if(u&&(!c||!pe(u,c))||d&&c&&pe(d,c))return i.shapeFlag&=-257,s=i,r;const f=null==i.key?l:i.key,p=o.get(f);return i.el&&(i=jn(i),128&r.shapeFlag&&(r.ssContent=i)),v=f,p?(i.el=p.el,i.component=p.component,i.transition&&re(i,i.transition),i.shapeFlag|=512,a.delete(f),a.add(f)):(a.add(f),h&&a.size>parseInt(h,10)&&m(a.values().next().value)),i.shapeFlag|=256,s=i,vn(r.type)?r:i}}},fe=he;function pe(e,t){return(0,i.cy)(e)?e.some(e=>pe(e,t)):(0,i.Kg)(e)?e.split(",").includes(t):!!(0,i.gd)(e)&&(e.lastIndex=0,e.test(t))}function ge(e,t){ve(e,"a",t)}function me(e,t){ve(e,"da",t)}function ve(e,t,n=Jn){const r=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(we(t,r,n),n){let e=n.parent;while(e&&e.parent)de(e.parent.vnode)&&Ae(r,t,n,e),e=e.parent}}function Ae(e,t,n,r){const o=we(t,e,r,!0);ke(()=>{(0,i.TF)(r[t],o)},n)}function be(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ye(e){return 128&e.shapeFlag?e.ssContent:e}function we(e,t,n=Jn,i=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{(0,r.C4)();const o=nr(n),s=a(t,n,e,i);return o(),(0,r.bl)(),s});return i?o.unshift(s):o.push(s),s}}const _e=e=>(t,n=Jn)=>{sr&&"sp"!==e||we(e,(...e)=>t(...e),n)},xe=_e("bm"),Ee=_e("m"),Se=_e("bu"),Ce=_e("u"),Te=_e("bum"),ke=_e("um"),Oe=_e("sp"),Me=_e("rtg"),Ie=_e("rtc");function De(e,t=Jn){we("ec",e,t)}const Ne="components",Re="directives";function Le(e,t){return $e(Ne,e,!0,t)||e}const Be=Symbol.for("v-ndc");function Pe(e){return(0,i.Kg)(e)?$e(Ne,e,!1)||e:e||Be}function Fe(e){return $e(Re,e)}function $e(e,t,n=!0,r=!1){const o=S||Jn;if(o){const n=o.type;if(e===Ne){const e=gr(n,!1);if(e&&(e===t||e===(0,i.PT)(t)||e===(0,i.ZH)((0,i.PT)(t))))return n}const a=je(o[e]||n[e],t)||je(o.appContext[e],t);return!a&&r?n:a}}function je(e,t){return e&&(e[t]||e[(0,i.PT)(t)]||e[(0,i.ZH)((0,i.PT)(t))])}function He(e,t,n,o){let a;const s=n&&n[o],l=(0,i.cy)(e);if(l||(0,i.Kg)(e)){const n=l&&(0,r.g8)(e);let i=!1,o=!1;n&&(i=!(0,r.fE)(e),o=(0,r.Tm)(e),e=(0,r.qA)(e)),a=new Array(e.length);for(let l=0,c=e.length;l<c;l++)a[l]=t(i?o?(0,r.a1)((0,r.lJ)(e[l])):(0,r.lJ)(e[l]):e[l],l,void 0,s&&s[l])}else if("number"===typeof e){0,a=new Array(e);for(let n=0;n<e;n++)a[n]=t(n+1,n,void 0,s&&s[n])}else if((0,i.Gv)(e))if(e[Symbol.iterator])a=Array.from(e,(e,n)=>t(e,n,void 0,s&&s[n]));else{const n=Object.keys(e);a=new Array(n.length);for(let r=0,i=n.length;r<i;r++){const i=n[r];a[r]=t(e[i],i,r,s&&s[r])}}else a=[];return n&&(n[o]=a),a}function Ue(e,t){for(let n=0;n<t.length;n++){const r=t[n];if((0,i.cy)(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function Qe(e,t,n={},r,o){if(S.ce||S.parent&&ue(S.parent)&&S.parent.ce){const e=Object.keys(n).length>0;return"default"!==t&&(n.name=t),Sn(),In(bn,null,[Pn("slot",n,r&&r())],e?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),Sn();const s=a&&ze(a(n)),l=n.key||s&&s.key,c=In(bn,{key:(l&&!(0,i.Bm)(l)?l:`_${t}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&1===e._?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),a&&a._c&&(a._d=!0),c}function ze(e){return e.some(e=>!Dn(e)||e.type!==wn&&!(e.type===bn&&!ze(e.children)))?e:null}function We(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:(0,i.rU)(r)]=e[r];return n}const Ge=e=>e?ir(e)?pr(e):Ge(e.parent):null,Ve=(0,i.X$)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ge(e.parent),$root:e=>Ge(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>at(e),$forceUpdate:e=>e.f||(e.f=()=>{A(e.update)}),$nextTick:e=>e.n||(e.n=m.bind(e.proxy)),$watch:e=>rn.bind(e)}),Ke=(e,t)=>e!==i.MZ&&!e.__isScriptSetup&&(0,i.$3)(e,t),Ye={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:o,data:a,props:s,accessCache:l,type:c,appContext:u}=e;let d;if("$"!==t[0]){const r=l[t];if(void 0!==r)switch(r){case 1:return o[t];case 2:return a[t];case 4:return n[t];case 3:return s[t]}else{if(Ke(o,t))return l[t]=1,o[t];if(a!==i.MZ&&(0,i.$3)(a,t))return l[t]=2,a[t];if((d=e.propsOptions[0])&&(0,i.$3)(d,t))return l[t]=3,s[t];if(n!==i.MZ&&(0,i.$3)(n,t))return l[t]=4,n[t];tt&&(l[t]=0)}}const h=Ve[t];let f,p;return h?("$attrs"===t&&(0,r.u4)(e.attrs,"get",""),h(e)):(f=c.__cssModules)&&(f=f[t])?f:n!==i.MZ&&(0,i.$3)(n,t)?(l[t]=4,n[t]):(p=u.config.globalProperties,(0,i.$3)(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:r,setupState:o,ctx:a}=e;return Ke(o,t)?(o[t]=n,!0):r!==i.MZ&&(0,i.$3)(r,t)?(r[t]=n,!0):!(0,i.$3)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:a,type:s}},l){let c,u;return!!(n[l]||e!==i.MZ&&"$"!==l[0]&&(0,i.$3)(e,l)||Ke(t,l)||(c=a[0])&&(0,i.$3)(c,l)||(0,i.$3)(r,l)||(0,i.$3)(Ve,l)||(0,i.$3)(o.config.globalProperties,l)||(u=s.__cssModules)&&u[l])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,i.$3)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function qe(){return Je("useSlots").slots}function Xe(){return Je("useAttrs").attrs}function Je(e){const t=Zn();return t.setupContext||(t.setupContext=fr(t))}function Ze(e){return(0,i.cy)(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function et(e,t){const n=Ze(e);for(const r in t){if(r.startsWith("__skip"))continue;let e=n[r];e?(0,i.cy)(e)||(0,i.Tn)(e)?e=n[r]={type:e,default:t[r]}:e.default=t[r]:null===e&&(e=n[r]={default:t[r]}),e&&t[`__skip_${r}`]&&(e.skipFactory=!0)}return n}let tt=!0;function nt(e){const t=at(e),n=e.proxy,o=e.ctx;tt=!1,t.beforeCreate&&it(t.beforeCreate,e,"bc");const{data:a,computed:s,methods:l,watch:c,provide:u,inject:d,created:h,beforeMount:f,mounted:p,beforeUpdate:g,updated:m,activated:v,deactivated:A,beforeDestroy:b,beforeUnmount:y,destroyed:w,unmounted:_,render:x,renderTracked:E,renderTriggered:S,errorCaptured:C,serverPrefetch:T,expose:k,inheritAttrs:O,components:M,directives:I,filters:D}=t,N=null;if(d&&rt(d,o,N),l)for(const r in l){const e=l[r];(0,i.Tn)(e)&&(o[r]=e.bind(n))}if(a){0;const t=a.call(n,n);0,(0,i.Gv)(t)&&(e.data=(0,r.Kh)(t))}if(tt=!0,s)for(const r in s){const e=s[r],t=(0,i.Tn)(e)?e.bind(n,n):(0,i.Tn)(e.get)?e.get.bind(n,n):i.tE;0;const a=!(0,i.Tn)(e)&&(0,i.Tn)(e.set)?e.set.bind(n):i.tE,l=vr({get:t,set:a});Object.defineProperty(o,r,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(c)for(const r in c)ot(c[r],o,n,r);if(u){const e=(0,i.Tn)(u)?u.call(n):u;Reflect.ownKeys(e).forEach(t=>{yt(t,e[t])})}function R(e,t){(0,i.cy)(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(h&&it(h,e,"c"),R(xe,f),R(Ee,p),R(Se,g),R(Ce,m),R(ge,v),R(me,A),R(De,C),R(Ie,E),R(Me,S),R(Te,y),R(ke,_),R(Oe,T),(0,i.cy)(k))if(k.length){const t=e.exposed||(e.exposed={});k.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});x&&e.render===i.tE&&(e.render=x),null!=O&&(e.inheritAttrs=O),M&&(e.components=M),I&&(e.directives=I),T&&ae(e)}function rt(e,t,n=i.tE){(0,i.cy)(e)&&(e=dt(e));for(const o in e){const n=e[o];let a;a=(0,i.Gv)(n)?"default"in n?wt(n.from||o,n.default,!0):wt(n.from||o):wt(n),(0,r.i9)(a)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e}):t[o]=a}}function it(e,t,n){a((0,i.cy)(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function ot(e,t,n,r){let o=r.includes(".")?on(n,r):()=>n[r];if((0,i.Kg)(e)){const n=t[e];(0,i.Tn)(n)&&tn(o,n)}else if((0,i.Tn)(e))tn(o,e.bind(n));else if((0,i.Gv)(e))if((0,i.cy)(e))e.forEach(e=>ot(e,t,n,r));else{const r=(0,i.Tn)(e.handler)?e.handler.bind(n):t[e.handler];(0,i.Tn)(r)&&tn(o,r,e)}else 0}function at(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,l=a.get(t);let c;return l?c=l:o.length||n||r?(c={},o.length&&o.forEach(e=>st(c,e,s,!0)),st(c,t,s)):c=t,(0,i.Gv)(t)&&a.set(t,c),c}function st(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&st(e,o,n,!0),i&&i.forEach(t=>st(e,t,n,!0));for(const a in t)if(r&&"expose"===a);else{const r=lt[a]||n&&n[a];e[a]=r?r(e[a],t[a]):t[a]}return e}const lt={data:ct,props:pt,emits:pt,methods:ft,computed:ft,beforeCreate:ht,created:ht,beforeMount:ht,mounted:ht,beforeUpdate:ht,updated:ht,beforeDestroy:ht,beforeUnmount:ht,destroyed:ht,unmounted:ht,activated:ht,deactivated:ht,errorCaptured:ht,serverPrefetch:ht,components:ft,directives:ft,watch:gt,provide:ct,inject:ut};function ct(e,t){return t?e?function(){return(0,i.X$)((0,i.Tn)(e)?e.call(this,this):e,(0,i.Tn)(t)?t.call(this,this):t)}:t:e}function ut(e,t){return ft(dt(e),dt(t))}function dt(e){if((0,i.cy)(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ht(e,t){return e?[...new Set([].concat(e,t))]:t}function ft(e,t){return e?(0,i.X$)(Object.create(null),e,t):t}function pt(e,t){return e?(0,i.cy)(e)&&(0,i.cy)(t)?[...new Set([...e,...t])]:(0,i.X$)(Object.create(null),Ze(e),Ze(null!=t?t:{})):t}function gt(e,t){if(!e)return t;if(!t)return e;const n=(0,i.X$)(Object.create(null),e);for(const r in t)n[r]=ht(e[r],t[r]);return n}function mt(){return{app:null,config:{isNativeTag:i.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let vt=0;function At(e,t){return function(n,r=null){(0,i.Tn)(n)||(n=(0,i.X$)({},n)),null==r||(0,i.Gv)(r)||(r=null);const o=mt(),s=new WeakSet,l=[];let c=!1;const u=o.app={_uid:vt++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:br,get config(){return o.config},set config(e){0},use(e,...t){return s.has(e)||(e&&(0,i.Tn)(e.install)?(s.add(e),e.install(u,...t)):(0,i.Tn)(e)&&(s.add(e),e(u,...t))),u},mixin(e){return o.mixins.includes(e)||o.mixins.push(e),u},component(e,t){return t?(o.components[e]=t,u):o.components[e]},directive(e,t){return t?(o.directives[e]=t,u):o.directives[e]},mount(i,a,s){if(!c){0;const l=u._ceVNode||Pn(n,r);return l.appContext=o,!0===s?s="svg":!1===s&&(s=void 0),a&&t?t(l,i):e(l,i,s),c=!0,u._container=i,i.__vue_app__=u,pr(l.component)}},onUnmount(e){l.push(e)},unmount(){c&&(a(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(e,t){return o.provides[e]=t,u},runWithContext(e){const t=bt;bt=u;try{return e()}finally{bt=t}}};return u}}let bt=null;function yt(e,t){if(Jn){let n=Jn.provides;const r=Jn.parent&&Jn.parent.provides;r===n&&(n=Jn.provides=Object.create(r)),n[e]=t}else 0}function wt(e,t,n=!1){const r=Zn();if(r||bt){let o=bt?bt._context.provides:r?null==r.parent||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&(0,i.Tn)(t)?t.call(r&&r.proxy):t}else 0}const _t={},xt=()=>Object.create(_t),Et=e=>Object.getPrototypeOf(e)===_t;function St(e,t,n,i=!1){const o={},a=xt();e.propsDefaults=Object.create(null),Tt(e,t,o,a);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=i?o:(0,r.Gc)(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function Ct(e,t,n,o){const{props:a,attrs:s,vnode:{patchFlag:l}}=e,c=(0,r.ux)(a),[u]=e.propsOptions;let d=!1;if(!(o||l>0)||16&l){let r;Tt(e,t,a,s)&&(d=!0);for(const o in c)t&&((0,i.$3)(t,o)||(r=(0,i.Tg)(o))!==o&&(0,i.$3)(t,r))||(u?!n||void 0===n[o]&&void 0===n[r]||(a[o]=kt(u,c,o,void 0,e,!0)):delete a[o]);if(s!==c)for(const e in s)t&&(0,i.$3)(t,e)||(delete s[e],d=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(un(e.emitsOptions,o))continue;const l=t[o];if(u)if((0,i.$3)(s,o))l!==s[o]&&(s[o]=l,d=!0);else{const t=(0,i.PT)(o);a[t]=kt(u,c,t,l,e,!1)}else l!==s[o]&&(s[o]=l,d=!0)}}d&&(0,r.hZ)(e.attrs,"set","")}function Tt(e,t,n,o){const[a,s]=e.propsOptions;let l,c=!1;if(t)for(let r in t){if((0,i.SU)(r))continue;const u=t[r];let d;a&&(0,i.$3)(a,d=(0,i.PT)(r))?s&&s.includes(d)?(l||(l={}))[d]=u:n[d]=u:un(e.emitsOptions,r)||r in o&&u===o[r]||(o[r]=u,c=!0)}if(s){const t=(0,r.ux)(n),o=l||i.MZ;for(let r=0;r<s.length;r++){const l=s[r];n[l]=kt(a,t,l,o[l],e,!(0,i.$3)(o,l))}}return c}function kt(e,t,n,r,o,a){const s=e[n];if(null!=s){const e=(0,i.$3)(s,"default");if(e&&void 0===r){const e=s.default;if(s.type!==Function&&!s.skipFactory&&(0,i.Tn)(e)){const{propsDefaults:i}=o;if(n in i)r=i[n];else{const a=nr(o);r=i[n]=e.call(null,t),a()}}else r=e;o.ce&&o.ce._setProp(n,r)}s[0]&&(a&&!e?r=!1:!s[1]||""!==r&&r!==(0,i.Tg)(n)||(r=!0))}return r}const Ot=new WeakMap;function Mt(e,t,n=!1){const r=n?Ot:t.propsCache,o=r.get(e);if(o)return o;const a=e.props,s={},l=[];let c=!1;if(!(0,i.Tn)(e)){const r=e=>{c=!0;const[n,r]=Mt(e,t,!0);(0,i.X$)(s,n),r&&l.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!a&&!c)return(0,i.Gv)(e)&&r.set(e,i.Oj),i.Oj;if((0,i.cy)(a))for(let d=0;d<a.length;d++){0;const e=(0,i.PT)(a[d]);It(e)&&(s[e]=i.MZ)}else if(a){0;for(const e in a){const t=(0,i.PT)(e);if(It(t)){const n=a[e],r=s[t]=(0,i.cy)(n)||(0,i.Tn)(n)?{type:n}:(0,i.X$)({},n),o=r.type;let c=!1,u=!0;if((0,i.cy)(o))for(let e=0;e<o.length;++e){const t=o[e],n=(0,i.Tn)(t)&&t.name;if("Boolean"===n){c=!0;break}"String"===n&&(u=!1)}else c=(0,i.Tn)(o)&&"Boolean"===o.name;r[0]=c,r[1]=u,(c||(0,i.$3)(r,"default"))&&l.push(t)}}}const u=[s,l];return(0,i.Gv)(e)&&r.set(e,u),u}function It(e){return"$"!==e[0]&&!(0,i.SU)(e)}const Dt=e=>"_"===e||"_ctx"===e||"$stable"===e,Nt=e=>(0,i.cy)(e)?e.map(zn):[zn(e)],Rt=(e,t,n)=>{if(t._n)return t;const r=k((...e)=>Nt(t(...e)),n);return r._c=!1,r},Lt=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Dt(o))continue;const n=e[o];if((0,i.Tn)(n))t[o]=Rt(o,n,r);else if(null!=n){0;const e=Nt(n);t[o]=()=>e}}},Bt=(e,t)=>{const n=Nt(t);e.slots.default=()=>n},Pt=(e,t,n)=>{for(const r in t)!n&&Dt(r)||(e[r]=t[r])},Ft=(e,t,n)=>{const r=e.slots=xt();if(32&e.vnode.shapeFlag){const e=t._;e?(Pt(r,t,n),n&&(0,i.yQ)(r,"_",e,!0)):Lt(t,r)}else t&&Bt(e,t)},$t=(e,t,n)=>{const{vnode:r,slots:o}=e;let a=!0,s=i.MZ;if(32&r.shapeFlag){const e=t._;e?n&&1===e?a=!1:Pt(o,t,n):(a=!t.$stable,Lt(t,o)),s=t}else t&&(Bt(e,t),s={default:1});if(a)for(const i in o)Dt(i)||null!=s[i]||delete o[i]};function jt(){}const Ht=An;function Ut(e){return Qt(e)}function Qt(e,t){jt();const n=(0,i.We)();n.__VUE__=!0;const{insert:o,remove:a,patchProp:s,createElement:l,createText:c,createComment:u,setText:d,setElementText:h,parentNode:f,nextSibling:p,setScopeId:g=i.tE,insertStaticContent:m}=e,v=(e,t,n,r=null,i=null,o=null,a=void 0,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Nn(e,t)&&(r=X(e),G(e,i,o,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case yn:b(e,t,n,r);break;case wn:y(e,t,n,r);break;case _n:null==e&&x(t,n,r,a);break;case bn:L(e,t,n,r,i,o,a,s,l);break;default:1&d?C(e,t,n,r,i,o,a,s,l):6&d?B(e,t,n,r,i,o,a,s,l):(64&d||128&d)&&c.process(e,t,n,r,i,o,a,s,l,ee)}null!=u&&i?le(u,e&&e.ref,o,t||e,!t):null==u&&e&&null!=e.ref&&le(e.ref,null,o,e,!0)},b=(e,t,n,r)=>{if(null==e)o(t.el=c(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},y=(e,t,n,r)=>{null==e?o(t.el=u(t.children||""),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},E=({el:e,anchor:t},n,r)=>{let i;while(e&&e!==t)i=p(e),o(e,n,r),e=i;o(t,n,r)},S=({el:e,anchor:t})=>{let n;while(e&&e!==t)n=p(e),a(e),e=n;a(t)},C=(e,t,n,r,i,o,a,s,l)=>{"svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e?T(t,n,r,i,o,a,s,l):D(e,t,i,o,a,s,l)},T=(e,t,n,r,a,c,u,d)=>{let f,p;const{props:g,shapeFlag:m,transition:v,dirs:A}=e;if(f=e.el=l(e.type,c,g&&g.is,g),8&m?h(f,e.children):16&m&&O(e.children,f,null,r,a,zt(e,c),u,d),A&&M(e,null,r,"created"),k(f,e,e.scopeId,u,r),g){for(const e in g)"value"===e||(0,i.SU)(e)||s(f,e,null,g[e],c,r);"value"in g&&s(f,"value",null,g.value,c),(p=g.onVnodeBeforeMount)&&Kn(p,r,e)}A&&M(e,null,r,"beforeMount");const b=Gt(a,v);b&&v.beforeEnter(f),o(f,t,n),((p=g&&g.onVnodeMounted)||b||A)&&Ht(()=>{p&&Kn(p,r,e),b&&v.enter(f),A&&M(e,null,r,"mounted")},a)},k=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let o=0;o<r.length;o++)g(e,r[o]);if(i){let n=i.subTree;if(t===n||vn(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=i.vnode;k(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},O=(e,t,n,r,i,o,a,s,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=s?Wn(e[c]):zn(e[c]);v(null,l,t,n,r,i,o,a,s)}},D=(e,t,n,r,o,a,l)=>{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=16&e.patchFlag;const p=e.props||i.MZ,g=t.props||i.MZ;let m;if(n&&Wt(n,!1),(m=g.onVnodeBeforeUpdate)&&Kn(m,n,t,e),f&&M(t,e,n,"beforeUpdate"),n&&Wt(n,!0),(p.innerHTML&&null==g.innerHTML||p.textContent&&null==g.textContent)&&h(c,""),d?N(e.dynamicChildren,d,c,n,r,zt(t,o),a):l||H(e,t,c,null,n,r,zt(t,o),a,!1),u>0){if(16&u)R(c,p,g,n,o);else if(2&u&&p.class!==g.class&&s(c,"class",null,g.class,o),4&u&&s(c,"style",p.style,g.style,o),8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const r=e[t],i=p[r],a=g[r];a===i&&"value"!==r||s(c,r,i,a,o,n)}}1&u&&e.children!==t.children&&h(c,t.children)}else l||null!=d||R(c,p,g,n,o);((m=g.onVnodeUpdated)||f)&&Ht(()=>{m&&Kn(m,n,t,e),f&&M(t,e,n,"updated")},r)},N=(e,t,n,r,i,o,a)=>{for(let s=0;s<t.length;s++){const l=e[s],c=t[s],u=l.el&&(l.type===bn||!Nn(l,c)||198&l.shapeFlag)?f(l.el):n;v(l,c,u,null,r,i,o,a,!0)}},R=(e,t,n,r,o)=>{if(t!==n){if(t!==i.MZ)for(const a in t)(0,i.SU)(a)||a in n||s(e,a,t[a],null,o,r);for(const a in n){if((0,i.SU)(a))continue;const l=n[a],c=t[a];l!==c&&"value"!==a&&s(e,a,c,l,o,r)}"value"in n&&s(e,"value",t.value,n.value,o)}},L=(e,t,n,r,i,a,s,l,u)=>{const d=t.el=e?e.el:c(""),h=t.anchor=e?e.anchor:c("");let{patchFlag:f,dynamicChildren:p,slotScopeIds:g}=t;g&&(l=l?l.concat(g):g),null==e?(o(d,n,r),o(h,n,r),O(t.children||[],n,h,i,a,s,l,u)):f>0&&64&f&&p&&e.dynamicChildren?(N(e.dynamicChildren,p,n,i,a,s,l),(null!=t.key||i&&t===i.subTree)&&Vt(e,t,!0)):H(e,t,n,h,i,a,s,l,u)},B=(e,t,n,r,i,o,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,a,l):P(t,n,r,i,o,a,l):F(e,t,l)},P=(e,t,n,r,i,o,a)=>{const s=e.component=Xn(e,r,i);if(de(e)&&(s.ctx.renderer=ee),lr(s,!1,a),s.asyncDep){if(i&&i.registerDep(s,$,a),!e.el){const r=s.subTree=Pn(wn);y(null,r,t,n),e.placeholder=r.el}}else $(s,e,t,n,i,o,a)},F=(e,t,n)=>{const r=t.component=e.component;if(pn(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void j(r,t,n);r.next=t,r.update()}else t.el=e.el,r.vnode=t},$=(e,t,n,o,a,s,l)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:o,vnode:u}=e;{const n=Yt(e);if(n)return t&&(t.el=u.el,j(e,t,l)),void n.asyncDep.then(()=>{e.isUnmounted||c()})}let d,h=t;0,Wt(e,!1),t?(t.el=u.el,j(e,t,l)):t=u,n&&(0,i.DY)(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Kn(d,o,t,u),Wt(e,!0);const p=dn(e);0;const g=e.subTree;e.subTree=p,v(g,p,f(g.el),X(g),e,a,s),t.el=p.el,null===h&&mn(e,p.el),r&&Ht(r,a),(d=t.props&&t.props.onVnodeUpdated)&&Ht(()=>Kn(d,o,t,u),a)}else{let r;const{el:l,props:c}=t,{bm:u,m:d,parent:h,root:f,type:p}=e,g=ue(t);if(Wt(e,!1),u&&(0,i.DY)(u),!g&&(r=c&&c.onVnodeBeforeMount)&&Kn(r,h,t),Wt(e,!0),l&&ne){const t=()=>{e.subTree=dn(e),ne(l,e.subTree,e,a,null)};g&&p.__asyncHydrate?p.__asyncHydrate(l,e,t):t()}else{f.ce&&!1!==f.ce._def.shadowRoot&&f.ce._injectChildStyle(p);const r=e.subTree=dn(e);0,v(null,r,n,o,e,a,s),t.el=r.el}if(d&&Ht(d,a),!g&&(r=c&&c.onVnodeMounted)){const e=t;Ht(()=>Kn(r,h,e),a)}(256&t.shapeFlag||h&&ue(h.vnode)&&256&h.vnode.shapeFlag)&&e.a&&Ht(e.a,a),e.isMounted=!0,t=n=o=null}};e.scope.on();const u=e.effect=new r.X2(c);e.scope.off();const d=e.update=u.run.bind(u),h=e.job=u.runIfDirty.bind(u);h.i=e,h.id=e.uid,u.scheduler=()=>A(h),Wt(e,!0),d()},j=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,Ct(e,t.props,i,n),$t(e,t.children,n),(0,r.C4)(),w(e),(0,r.bl)()},H=(e,t,n,r,i,o,a,s,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:p}=t;if(f>0){if(128&f)return void Q(c,d,n,r,i,o,a,s,l);if(256&f)return void U(c,d,n,r,i,o,a,s,l)}8&p?(16&u&&q(c,i,o),d!==c&&h(n,d)):16&u?16&p?Q(c,d,n,r,i,o,a,s,l):q(c,i,o,!0):(8&u&&h(n,""),16&p&&O(d,n,r,i,o,a,s,l))},U=(e,t,n,r,o,a,s,l,c)=>{e=e||i.Oj,t=t||i.Oj;const u=e.length,d=t.length,h=Math.min(u,d);let f;for(f=0;f<h;f++){const r=t[f]=c?Wn(t[f]):zn(t[f]);v(e[f],r,n,null,o,a,s,l,c)}u>d?q(e,o,a,!0,!1,h):O(t,n,r,o,a,s,l,c,h)},Q=(e,t,n,r,o,a,s,l,c)=>{let u=0;const d=t.length;let h=e.length-1,f=d-1;while(u<=h&&u<=f){const r=e[u],i=t[u]=c?Wn(t[u]):zn(t[u]);if(!Nn(r,i))break;v(r,i,n,null,o,a,s,l,c),u++}while(u<=h&&u<=f){const r=e[h],i=t[f]=c?Wn(t[f]):zn(t[f]);if(!Nn(r,i))break;v(r,i,n,null,o,a,s,l,c),h--,f--}if(u>h){if(u<=f){const e=f+1,i=e<d?t[e].el:r;while(u<=f)v(null,t[u]=c?Wn(t[u]):zn(t[u]),n,i,o,a,s,l,c),u++}}else if(u>f)while(u<=h)G(e[u],o,a,!0),u++;else{const p=u,g=u,m=new Map;for(u=g;u<=f;u++){const e=t[u]=c?Wn(t[u]):zn(t[u]);null!=e.key&&m.set(e.key,u)}let A,b=0;const y=f-g+1;let w=!1,_=0;const x=new Array(y);for(u=0;u<y;u++)x[u]=0;for(u=p;u<=h;u++){const r=e[u];if(b>=y){G(r,o,a,!0);continue}let i;if(null!=r.key)i=m.get(r.key);else for(A=g;A<=f;A++)if(0===x[A-g]&&Nn(r,t[A])){i=A;break}void 0===i?G(r,o,a,!0):(x[i-g]=u+1,i>=_?_=i:w=!0,v(r,t[i],n,null,o,a,s,l,c),b++)}const E=w?Kt(x):i.Oj;for(A=E.length-1,u=y-1;u>=0;u--){const e=g+u,i=t[e],h=t[e+1],f=e+1<d?h.el||h.placeholder:r;0===x[u]?v(null,i,n,f,o,a,s,l,c):w&&(A<0||u!==E[A]?W(i,n,f,2):A--)}}},W=(e,t,n,r,i=null)=>{const{el:s,type:l,transition:c,children:u,shapeFlag:d}=e;if(6&d)return void W(e.component.subTree,t,n,r);if(128&d)return void e.suspense.move(t,n,r);if(64&d)return void l.move(e,t,n,ee);if(l===bn){o(s,t,n);for(let e=0;e<u.length;e++)W(u[e],t,n,r);return void o(e.anchor,t,n)}if(l===_n)return void E(e,t,n);const h=2!==r&&1&d&&c;if(h)if(0===r)c.beforeEnter(s),o(s,t,n),Ht(()=>c.enter(s),i);else{const{leave:r,delayLeave:i,afterLeave:l}=c,u=()=>{e.ctx.isUnmounted?a(s):o(s,t,n)},d=()=>{s._isLeaving&&s[z](!0),r(s,()=>{u(),l&&l()})};i?i(s,u,d):d()}else o(s,t,n)},G=(e,t,n,i=!1,o=!1)=>{const{type:a,props:s,ref:l,children:c,dynamicChildren:u,shapeFlag:d,patchFlag:h,dirs:f,cacheIndex:p}=e;if(-2===h&&(o=!1),null!=l&&((0,r.C4)(),le(l,null,n,e,!0),(0,r.bl)()),null!=p&&(t.renderCache[p]=void 0),256&d)return void t.ctx.deactivate(e);const g=1&d&&f,m=!ue(e);let v;if(m&&(v=s&&s.onVnodeBeforeUnmount)&&Kn(v,t,e),6&d)Y(e.component,n,i);else{if(128&d)return void e.suspense.unmount(n,i);g&&M(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,n,ee,i):u&&!u.hasOnce&&(a!==bn||h>0&&64&h)?q(u,t,n,!1,!0):(a===bn&&384&h||!o&&16&d)&&q(c,t,n),i&&V(e)}(m&&(v=s&&s.onVnodeUnmounted)||g)&&Ht(()=>{v&&Kn(v,t,e),g&&M(e,null,t,"unmounted")},n)},V=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===bn)return void K(n,r);if(t===_n)return void S(e);const o=()=>{a(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,a=()=>t(n,o);r?r(e.el,o,a):a()}else o()},K=(e,t)=>{let n;while(e!==t)n=p(e),a(e),e=n;a(t)},Y=(e,t,n)=>{const{bum:r,scope:o,job:a,subTree:s,um:l,m:c,a:u}=e;qt(c),qt(u),r&&(0,i.DY)(r),o.stop(),a&&(a.flags|=8,G(s,e,t,n)),l&&Ht(l,t),Ht(()=>{e.isUnmounted=!0},t)},q=(e,t,n,r=!1,i=!1,o=0)=>{for(let a=o;a<e.length;a++)G(e[a],t,n,r,i)},X=e=>{if(6&e.shapeFlag)return X(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=p(e.anchor||e.el),n=t&&t[I];return n?p(n):t};let J=!1;const Z=(e,t,n)=>{null==e?t._vnode&&G(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,J||(J=!0,w(),_(),J=!1)},ee={p:v,um:G,m:W,r:V,mt:P,mc:O,pc:H,pbc:N,n:X,o:e};let te,ne;return t&&([te,ne]=t(ee)),{render:Z,hydrate:te,createApp:At(Z,te)}}function zt({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Wt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Gt(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vt(e,t,n=!1){const r=e.children,o=t.children;if((0,i.cy)(r)&&(0,i.cy)(o))for(let i=0;i<r.length;i++){const e=r[i];let t=o[i];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=o[i]=Wn(o[i]),t.el=e.el),n||-2===t.patchFlag||Vt(e,t)),t.type===yn&&-1!==t.patchFlag&&(t.el=e.el),t.type!==wn||t.el||(t.el=e.el)}}function Kt(e){const t=e.slice(),n=[0];let r,i,o,a,s;const l=e.length;for(r=0;r<l;r++){const l=e[r];if(0!==l){if(i=n[n.length-1],e[i]<l){t[r]=i,n.push(r);continue}o=0,a=n.length-1;while(o<a)s=o+a>>1,e[n[s]]<l?o=s+1:a=s;l<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}o=n.length,a=n[o-1];while(o-- >0)n[o]=a,a=t[a];return n}function Yt(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Yt(t)}function qt(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Xt=Symbol.for("v-scx"),Jt=()=>{{const e=wt(Xt);return e}};function Zt(e,t){return nn(e,null,t)}function en(e,t){return nn(e,null,{flush:"post"})}function tn(e,t,n){return nn(e,t,n)}function nn(e,t,n=i.MZ){const{immediate:o,deep:s,flush:l,once:c}=n;const u=(0,i.X$)({},n);const d=t&&o||!t&&"post"!==l;let h;if(sr)if("sync"===l){const e=Jt();h=e.__watcherHandles||(e.__watcherHandles=[])}else if(!d){const e=()=>{};return e.stop=i.tE,e.resume=i.tE,e.pause=i.tE,e}const f=Jn;u.call=(e,t,n)=>a(e,f,t,n);let p=!1;"post"===l?u.scheduler=e=>{Ht(e,f&&f.suspense)}:"sync"!==l&&(p=!0,u.scheduler=(e,t)=>{t?e():A(e)}),u.augmentJob=e=>{t&&(e.flags|=4),p&&(e.flags|=2,f&&(e.id=f.uid,e.i=f))};const g=(0,r.wB)(e,t,u);return sr&&(h?h.push(g):d&&g()),g}function rn(e,t,n){const r=this.proxy,o=(0,i.Kg)(e)?e.includes(".")?on(r,e):()=>r[e]:e.bind(r,r);let a;(0,i.Tn)(t)?a=t:(a=t.handler,n=t);const s=nr(this),l=nn(o,a.bind(r),n);return s(),l}function on(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const an=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${(0,i.PT)(t)}Modifiers`]||e[`${(0,i.Tg)(t)}Modifiers`];function sn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||i.MZ;let o=n;const s=t.startsWith("update:"),l=s&&an(r,t.slice(7));let c;l&&(l.trim&&(o=n.map(e=>(0,i.Kg)(e)?e.trim():e)),l.number&&(o=n.map(i.bB)));let u=r[c=(0,i.rU)(t)]||r[c=(0,i.rU)((0,i.PT)(t))];!u&&s&&(u=r[c=(0,i.rU)((0,i.Tg)(t))]),u&&a(u,e,6,o);const d=r[c+"Once"];if(d){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,a(d,e,6,o)}}const ln=new WeakMap;function cn(e,t,n=!1){const r=n?ln:t.emitsCache,o=r.get(e);if(void 0!==o)return o;const a=e.emits;let s={},l=!1;if(!(0,i.Tn)(e)){const r=e=>{const n=cn(e,t,!0);n&&(l=!0,(0,i.X$)(s,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return a||l?((0,i.cy)(a)?a.forEach(e=>s[e]=null):(0,i.X$)(s,a),(0,i.Gv)(e)&&r.set(e,s),s):((0,i.Gv)(e)&&r.set(e,null),null)}function un(e,t){return!(!e||!(0,i.Mp)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,i.$3)(e,t[0].toLowerCase()+t.slice(1))||(0,i.$3)(e,(0,i.Tg)(t))||(0,i.$3)(e,t))}function dn(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[a],slots:l,attrs:c,emit:u,render:d,renderCache:h,props:f,data:p,setupState:g,ctx:m,inheritAttrs:v}=e,A=T(e);let b,y;try{if(4&n.shapeFlag){const e=o||r,t=e;b=zn(d.call(t,e,h,f,g,p,m)),y=c}else{const e=t;0,b=zn(e.length>1?e(f,{attrs:c,slots:l,emit:u}):e(f,null)),y=t.props?c:hn(c)}}catch(_){xn.length=0,s(_,e,1),b=Pn(wn)}let w=b;if(y&&!1!==v){const e=Object.keys(y),{shapeFlag:t}=w;e.length&&7&t&&(a&&e.some(i.CP)&&(y=fn(y,a)),w=jn(w,y,!1,!0))}return n.dirs&&(w=jn(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&re(w,n.transition),b=w,T(A),b}const hn=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,i.Mp)(n))&&((t||(t={}))[n]=e[n]);return t},fn=(e,t)=>{const n={};for(const r in e)(0,i.CP)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function pn(e,t,n){const{props:r,children:i,component:o}=e,{props:a,children:s,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!i&&!s||s&&s.$stable)||r!==a&&(r?!a||gn(r,a,c):!!a);if(1024&l)return!0;if(16&l)return r?gn(r,a,c):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==r[n]&&!un(c,n))return!0}}return!1}function gn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!un(n,o))return!0}return!1}function mn({vnode:e,parent:t},n){while(t){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r!==e)break;(e=t.vnode).el=n,t=t.parent}}const vn=e=>e.__isSuspense;function An(e,t){t&&t.pendingBranch?(0,i.cy)(e)?t.effects.push(...e):t.effects.push(e):y(e)}const bn=Symbol.for("v-fgt"),yn=Symbol.for("v-txt"),wn=Symbol.for("v-cmt"),_n=Symbol.for("v-stc"),xn=[];let En=null;function Sn(e=!1){xn.push(En=e?null:[])}function Cn(){xn.pop(),En=xn[xn.length-1]||null}let Tn=1;function kn(e,t=!1){Tn+=e,e<0&&En&&t&&(En.hasOnce=!0)}function On(e){return e.dynamicChildren=Tn>0?En||i.Oj:null,Cn(),Tn>0&&En&&En.push(e),e}function Mn(e,t,n,r,i,o){return On(Bn(e,t,n,r,i,o,!0))}function In(e,t,n,r,i){return On(Pn(e,t,n,r,i,!0))}function Dn(e){return!!e&&!0===e.__v_isVNode}function Nn(e,t){return e.type===t.type&&e.key===t.key}const Rn=({key:e})=>null!=e?e:null,Ln=({ref:e,ref_key:t,ref_for:n})=>("number"===typeof e&&(e=""+e),null!=e?(0,i.Kg)(e)||(0,r.i9)(e)||(0,i.Tn)(e)?{i:S,r:e,k:t,f:!!n}:e:null);function Bn(e,t=null,n=null,r=0,o=null,a=(e===bn?0:1),s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Rn(t),ref:t&&Ln(t),scopeId:C,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:S};return l?(Gn(c,n),128&a&&e.normalize(c)):n&&(c.shapeFlag|=(0,i.Kg)(n)?8:16),Tn>0&&!s&&En&&(c.patchFlag>0||6&a)&&32!==c.patchFlag&&En.push(c),c}const Pn=Fn;function Fn(e,t=null,n=null,o=0,a=null,s=!1){if(e&&e!==Be||(e=wn),Dn(e)){const r=jn(e,t,!0);return n&&Gn(r,n),Tn>0&&!s&&En&&(6&r.shapeFlag?En[En.indexOf(e)]=r:En.push(r)),r.patchFlag=-2,r}if(mr(e)&&(e=e.__vccOpts),t){t=$n(t);let{class:e,style:n}=t;e&&!(0,i.Kg)(e)&&(t.class=(0,i.C4)(e)),(0,i.Gv)(n)&&((0,r.ju)(n)&&!(0,i.cy)(n)&&(n=(0,i.X$)({},n)),t.style=(0,i.Tr)(n))}const l=(0,i.Kg)(e)?1:vn(e)?128:D(e)?64:(0,i.Gv)(e)?4:(0,i.Tn)(e)?2:0;return Bn(e,t,n,o,a,l,s,!0)}function $n(e){return e?(0,r.ju)(e)||Et(e)?(0,i.X$)({},e):e:null}function jn(e,t,n=!1,r=!1){const{props:o,ref:a,patchFlag:s,children:l,transition:c}=e,u=t?Vn(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Rn(u),ref:t&&t.ref?n&&a?(0,i.cy)(a)?a.concat(Ln(t)):[a,Ln(t)]:Ln(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==bn?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&jn(e.ssContent),ssFallback:e.ssFallback&&jn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&re(d,c.clone(d)),d}function Hn(e=" ",t=0){return Pn(yn,null,e,t)}function Un(e,t){const n=Pn(_n,null,e);return n.staticCount=t,n}function Qn(e="",t=!1){return t?(Sn(),In(wn,null,e)):Pn(wn,null,e)}function zn(e){return null==e||"boolean"===typeof e?Pn(wn):(0,i.cy)(e)?Pn(bn,null,e.slice()):Dn(e)?Wn(e):Pn(yn,null,String(e))}function Wn(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:jn(e)}function Gn(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if((0,i.cy)(t))n=16;else if("object"===typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Gn(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Et(t)?3===r&&S&&(1===S.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=S}}else(0,i.Tn)(t)?(t={default:t,_ctx:S},n=32):(t=String(t),64&r?(n=16,t=[Hn(t)]):n=8);e.children=t,e.shapeFlag|=n}function Vn(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=(0,i.C4)([t.class,r.class]));else if("style"===e)t.style=(0,i.Tr)([t.style,r.style]);else if((0,i.Mp)(e)){const n=t[e],o=r[e];!o||n===o||(0,i.cy)(n)&&n.includes(o)||(t[e]=n?[].concat(n,o):o)}else""!==e&&(t[e]=r[e])}return t}function Kn(e,t,n,r=null){a(e,t,7,[n,r])}const Yn=mt();let qn=0;function Xn(e,t,n){const o=e.type,a=(t?t.appContext:e.appContext)||Yn,s={uid:qn++,vnode:e,type:o,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new r.yC(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Mt(o,a),emitsOptions:cn(o,a),emit:null,emitted:null,propsDefaults:i.MZ,inheritAttrs:o.inheritAttrs,ctx:i.MZ,data:i.MZ,props:i.MZ,attrs:i.MZ,slots:i.MZ,refs:i.MZ,setupState:i.MZ,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=sn.bind(null,s),e.ce&&e.ce(s),s}let Jn=null;const Zn=()=>Jn||S;let er,tr;{const e=(0,i.We)(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};er=t("__VUE_INSTANCE_SETTERS__",e=>Jn=e),tr=t("__VUE_SSR_SETTERS__",e=>sr=e)}const nr=e=>{const t=Jn;return er(e),e.scope.on(),()=>{e.scope.off(),er(t)}},rr=()=>{Jn&&Jn.scope.off(),er(null)};function ir(e){return 4&e.vnode.shapeFlag}let or,ar,sr=!1;function lr(e,t=!1,n=!1){t&&tr(t);const{props:r,children:i}=e.vnode,o=ir(e);St(e,r,o,t),Ft(e,i,n||t);const a=o?cr(e,t):void 0;return t&&tr(!1),a}function cr(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ye);const{setup:a}=n;if(a){(0,r.C4)();const n=e.setupContext=a.length>1?fr(e):null,l=nr(e),c=o(a,e,0,[e.props,n]),u=(0,i.yL)(c);if((0,r.bl)(),l(),!u&&!e.sp||ue(e)||ae(e),u){if(c.then(rr,rr),t)return c.then(n=>{ur(e,n,t)}).catch(t=>{s(t,e,0)});e.asyncDep=c}else ur(e,c,t)}else dr(e,t)}function ur(e,t,n){(0,i.Tn)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,i.Gv)(t)&&(e.setupState=(0,r.Pr)(t)),dr(e,n)}function dr(e,t,n){const o=e.type;if(!e.render){if(!t&&or&&!o.render){const t=o.template||at(e).template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:s}=o,l=(0,i.X$)((0,i.X$)({isCustomElement:n,delimiters:a},r),s);o.render=or(t,l)}}e.render=o.render||i.tE,ar&&ar(e)}{const t=nr(e);(0,r.C4)();try{nt(e)}finally{(0,r.bl)(),t()}}}const hr={get(e,t){return(0,r.u4)(e,"get",""),e[t]}};function fr(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,hr),slots:e.slots,emit:e.emit,expose:t}}function pr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy((0,r.Pr)((0,r.IG)(e.exposed)),{get(t,n){return n in t?t[n]:n in Ve?Ve[n](e):void 0},has(e,t){return t in e||t in Ve}})):e.proxy}function gr(e,t=!0){return(0,i.Tn)(e)?e.displayName||e.name:e.name||t&&e.__name}function mr(e){return(0,i.Tn)(e)&&"__vccOpts"in e}const vr=(e,t)=>{const n=(0,r.EW)(e,t,sr);return n};function Ar(e,t,n){try{kn(-1);const r=arguments.length;return 2===r?(0,i.Gv)(t)&&!(0,i.cy)(t)?Dn(t)?Pn(e,null,[t]):Pn(e,t):Pn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Dn(n)&&(n=[n]),Pn(e,t,n))}finally{kn(1)}}const br="3.5.22"},56878:function(e,t,n){n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698);const r=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","AcousticAbsorbingValue","AcousticImpedanceValue","AcousticNormalVelocityValue","AcousticPDEComponent","AcousticPressureCondition","AcousticRadiationValue","AcousticSoundHardValue","AcousticSoundSoftCondition","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","Adjugate","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirSoundAttenuation","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowChatServices","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimatedImage","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","AnimationVideo","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","Antihermitian","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Application","Apply","ApplyReaction","ApplySides","ApplyTo","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ArgumentsOptions","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayPlot3D","ArrayQ","ArrayReduce","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssessmentFunction","AssessmentResultObject","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstroAngularSeparation","AstroBackground","AstroCenter","AstroDistance","AstroGraphics","AstroGridLines","AstroGridLinesStyle","AstronomicalData","AstroPosition","AstroProjection","AstroRange","AstroRangePadding","AstroReferenceFrame","AstroStyling","AstroZoomLevel","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticExpectation","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProbability","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomLabels","AtomLabelStyle","AtomList","AtomQ","AttachCell","AttachedCell","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTrackApply","AudioTrackSelection","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoOperatorRenderings","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","Axis3DBox","Axis3DBoxOptions","AxisBox","AxisBoxOptions","AxisLabel","AxisObject","AxisStyle","BabyMonsterGroupB","Back","BackFaceColor","BackFaceGlowColor","BackFaceOpacity","BackFaceSpecularColor","BackFaceSpecularExponent","BackFaceSurfaceAppearance","BackFaceTexture","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesagL","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","Beveled","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","BilateralLaplaceTransform","BilateralZTransform","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","BinnedVariogramList","Binomial","BinomialDistribution","BinomialPointProcess","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BioSequence","BioSequenceBackTranslateList","BioSequenceComplement","BioSequenceInstances","BioSequenceModify","BioSequencePlot","BioSequenceQ","BioSequenceReverseComplement","BioSequenceTranscribe","BioSequenceTranslate","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitRate","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockDiagonalMatrix","BlockLowerTriangularMatrix","BlockMap","BlockRandom","BlockUpperTriangularMatrix","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","Blurring","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondLabels","BondLabelStyle","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuckyballGraph","BuildCompiledComponent","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayFormatQ","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalizeRegion","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Canvas","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CaputoD","CardinalBSplineBasis","CarlemanLinearize","CarlsonRC","CarlsonRD","CarlsonRE","CarlsonRF","CarlsonRG","CarlsonRJ","CarlsonRK","CarlsonRM","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Cast","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyMatrix","CauchyPointProcess","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDingbatMargin","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellFrameStyle","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellInsertionPointCell","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellTrayPosition","CellTrayWidgets","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CenteredInterval","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","CheckArguments","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalConvert","ChemicalData","ChemicalFormula","ChemicalInstance","ChemicalReaction","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularArcThrough","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","ClickToCopy","ClickToCopyEnabled","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringMeasurements","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","CollinearPoints","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionBinning","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinatorB","CombinatorC","CombinatorI","CombinatorK","CombinatorS","CombinatorW","CombinatorY","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledComponent","CompiledExpressionDeclaration","CompiledFunction","CompiledLayer","CompilerCallback","CompilerEnvironment","CompilerEnvironmentAppend","CompilerEnvironmentAppendTo","CompilerEnvironmentObject","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteIntegral","CompleteKaryTree","CompletionsListPacket","Complex","ComplexArrayPlot","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","ConcaveHullMesh","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","Confirm","ConfirmAssert","ConfirmBy","ConfirmMatch","ConfirmQuiet","ConformationMethod","ConformAudio","ConformImages","Congruent","ConicGradientFilling","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegion3DBoxOptions","ConicHullRegionBox","ConicHullRegionBoxOptions","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnectSystemModelController","ConnesWindow","ConoverTest","ConservativeConvectionPDETerm","ConsoleMessage","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentDetectorFunction","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","ConvectionPDETerm","Convergents","ConversionOptions","ConversionRules","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexHullRegion","ConvexOptimization","ConvexPolygonQ","ConvexPolyhedronQ","ConvexRegionQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoplanarPoints","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyFunction","CopyTag","CopyToClipboard","CoreNilpotentDecomposition","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","CoulombF","CoulombG","CoulombH1","CoulombH2","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateCompilerEnvironment","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateLicenseEntitlement","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateTypeInstance","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CSGRegion","CSGRegionQ","CSGRegionTree","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","CuboidBoxOptions","Cumulant","CumulantGeneratingFunction","CumulativeFeatureImpactPlot","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylinderBoxOptions","CylindricalDecomposition","CylindricalDecompositionFunction","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinSubmit","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DatasetTheme","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateGranularity","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateScale","DateSelect","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareCompiledComponent","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","Default2DTool","Default3DTool","DefaultAttachedCellStyle","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDockedCellStyle","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAdjacentDuplicates","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteElements","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterAutoMatching","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivativePDETerm","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DiffusionPDETerm","DiggleGatesPointProcess","DiggleGrattonPointProcess","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","DirectionalLight","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteInputOutputModel","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskBoxOptions","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCell","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DominatorTreeGraph","DominatorVertexList","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DownValuesFunction","DragAndDrop","DrawBackFaces","DrawEdges","DrawFrontFaces","DrawHighlighted","DrazinInverse","Drop","DropoutLayer","DropShadowing","DSolve","DSolveChangeVariables","DSolveValue","Dt","DualLinearProgramming","DualPlanarGraph","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoEvaluation","EchoFunction","EchoLabel","EchoTiming","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeChromaticNumber","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeTransitiveGraphQ","EdgeValueRange","EdgeValueSizes","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddedSQLEntityClass","EmbeddedSQLExpression","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EmptySpaceF","EnableConsolePrintPacket","Enabled","Enclose","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedPointNormals","EstimatedPointProcess","EstimatedProcess","EstimatedVariogramModel","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","EvaluationPrivileges","EvaluationRateLimit","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedContexts","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionTree","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FaceRecognize","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureImpactPlot","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FeatureValueDependencyPlot","FeatureValueImpactPlot","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileFormatProperties","FileFormatQ","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FileNameToFormatList","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileSystemTree","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","FilledTorus","FillForm","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeColoring","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindIsomers","FindIsomorphicSubgraph","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPlanarColoring","FindPointProcessParameters","FindPostmanTour","FindProcessParameters","FindRegionTransform","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSubgraphIsomorphism","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexColoring","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","FlatShading","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlightData","FlipView","Floor","FlowPolynomial","Fold","FoldList","FoldPair","FoldPairList","FoldWhile","FoldWhileList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForAllType","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormProtectionMethod","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","ForwardCloudCredentials","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FoxH","FoxHReduce","FractionalBrownianMotionProcess","FractionalD","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameListVideo","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDateString","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRawPointer","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceGlowColor","FrontFaceOpacity","FrontFaceSpecularColor","FrontFaceSpecularExponent","FrontFaceSurfaceAppearance","FrontFaceTexture","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionAnalytic","FunctionBijective","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionContinuous","FunctionConvexity","FunctionDeclaration","FunctionDiscontinuities","FunctionDomain","FunctionExpand","FunctionInjective","FunctionInterpolation","FunctionLayer","FunctionMeromorphic","FunctionMonotonicity","FunctionPeriod","FunctionPoles","FunctionRange","FunctionSign","FunctionSingularities","FunctionSpace","FunctionSurjective","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedAssetFormat","GeneratedAssetLocation","GeneratedCell","GeneratedCellStyles","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundary","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBoundsRegionBoundary","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeodesicPolyhedron","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeoGraphPlot","GeoGraphValuePlot","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricStep","GeometricStylingRules","GeometricTest","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoOrientationData","GeoPath","GeoPolygon","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetContext","GetEnvironment","GetFileName","GetLinebreakInformationPacket","GibbsPointProcess","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","GouraudShading","Grad","Gradient","GradientFilter","GradientFittedMesh","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphJoin","GraphLayerLabels","GraphLayers","GraphLayerStyle","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphProduct","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphSum","GraphTree","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","GreekStyle","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GridVideo","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOpenerColor","GroupOpenerInsideFrame","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HardcorePointProcess","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","Headers","HeaderSize","HeaderStyle","Heads","HeatFluxValue","HeatInsulationValue","HeatOutflowValue","HeatRadiationValue","HeatSymmetryValue","HeatTemperatureCondition","HeatTransferPDEComponent","HeatTransferValue","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelmholtzPDEComponent","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","HelpViewerSettings","Here","HermiteDecomposition","HermiteH","Hermitian","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighlightString","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramPointDensity","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IfCompiled","IgnoreCase","IgnoreDiacritics","IgnoreIsotopes","IgnorePunctuation","IgnoreSpellCheck","IgnoreStereochemistry","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEditMode","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageStitch","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImageVectorscopePlot","ImageWaveformPlot","ImagingDevice","ImplicitD","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportedObject","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","InactiveStyle","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludedContexts","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularSolutions","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InertEvaluate","InertExpression","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfiniteLineThrough","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonPointProcess","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObject","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputPorts","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","IntegrateChangeVariables","Interactive","InteractiveTradingChart","InterfaceSwitched","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseBilateralLaplaceTransform","InverseBilateralZTransform","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsomorphicSubgraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiEpsilon","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JacobiZN","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelConfiguration","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LameC","LameCPrime","LameEigenvalueA","LameEigenvalueB","LameS","LameSPrime","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","LaplacianPDETerm","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayeredGraphPlot3D","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapVariant","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LexicographicOrder","LexicographicSort","LibraryDataType","LibraryFunction","LibraryFunctionDeclaration","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseEntitlementObject","LicenseEntitlements","LicenseID","LicensingSettings","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientFilling","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLinePlot3D","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListStreamPlot3D","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorDisplacementPlot","ListVectorDisplacementPlot3D","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LiteralType","LoadCompiledComponent","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalEvaluate","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrix","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapApply","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MassConcentrationCondition","MassFluxValue","MassImpermeableBoundaryValue","MassOutflowValue","MassSymmetryValue","MassTransferValue","MassTransportPDEComponent","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MaterialShading","MaternPointProcess","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDisplayedChildren","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanPointDensity","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","MIMETypeToFormatList","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinPointSeparation","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MissingValueSynthesis","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","ModelPredictiveController","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeAlign","MoleculeContainsQ","MoleculeDraw","MoleculeEquivalentQ","MoleculeFreeQ","MoleculeGraph","MoleculeMatchQ","MoleculeMaximumCommonSubstructure","MoleculeModify","MoleculeName","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeSubstructureCount","MoleculeValue","Moment","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","MultiaxisArrangement","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","MultiscriptBoxOptions","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NCaputoD","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborG","NearestNeighborGraph","NearestTo","NebulaData","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativelyOrientedPoints","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestTree","NestWhile","NestWhileList","NetAppend","NetArray","NetArrayLayer","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExternalObject","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetUnfold","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NeymanScottPointProcess","NFractionalD","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalScale","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookBrowseDirectory","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookGet","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookPath","NotebookPrint","NotebookPut","NotebookRead","Notebooks","NotebookSave","NotebookSelection","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSolveValues","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberDigit","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObjectExistsQ","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrdinalScale","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputPorts","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","OverlayVideo","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletSymbol","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairCorrelationG","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalettesMenuSettings","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelAxisPlot","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelKernels","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricConvexOptimization","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentEdgeLabel","ParentEdgeLabelFunction","ParentEdgeLabelStyle","ParentEdgeShapeFunction","ParentEdgeStyle","ParentEdgeStyleFunction","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternReaction","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PenttinenPointProcess","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMatrix","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentSymbol","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhongShading","PhysicalSystemData","Pi","Pick","PickedElements","PickMode","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderLayer","PlaceholderReplace","Plain","PlanarAngle","PlanarFaceList","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlaybackSettings","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointCountDistribution","PointDensity","PointDensityFunction","PointFigureChart","PointLegend","PointLight","PointProcessEstimator","PointProcessFitTest","PointProcessParameterAssumptions","PointProcessParameterQ","PointSize","PointStatisticFunction","PointValuePlot","PoissonConsulDistribution","PoissonDistribution","PoissonPDEComponent","PoissonPointProcess","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronBox","PolyhedronBoxOptions","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExpressionQ","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PolynomialSumOfSquaresList","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","PositionLargest","PositionSmallest","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositivelyOrientedPoints","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","PreferencesSettings","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","ProgressReporting","Projection","Prolog","PromptForm","ProofObject","PropagateAborts","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QuestionGenerator","QuestionInterface","QuestionObject","QuestionSelector","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","QuietEcho","Quit","Quotient","QuotientRemainder","RadialAxisPlot","RadialGradientFilling","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomArrayLayer","RandomChoice","RandomColor","RandomComplex","RandomDate","RandomEntity","RandomFunction","RandomGeneratorState","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPointConfiguration","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomTime","RandomTree","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalExpressionQ","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","ReactionBalance","ReactionBalancedQ","ReactionPDETerm","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecalibrationFunction","RecognitionPrior","RecognitionThreshold","ReconstructionMesh","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionCongruent","RegionConvert","RegionDifference","RegionDilation","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionErosion","RegionFillingStyle","RegionFit","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSimilar","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteBatchJobAbort","RemoteBatchJobObject","RemoteBatchJobs","RemoteBatchMapSubmit","RemoteBatchSubmissionEnvironment","RemoteBatchSubmit","RemoteConnect","RemoteConnectionObject","RemoteEvaluate","RemoteFile","RemoteInputFiles","RemoteKernelObject","RemoteProviderSettings","RemoteRun","RemoteRunProcess","RemovalConditions","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceAt","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetScheduledTask","ReshapeLayer","Residue","ResidueSum","ResizeLayer","Resolve","ResolveContextAliases","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnCreatesNewCell","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RipleyK","RipleyRassonRegion","RiskAchievementImportance","RiskReductionImportance","RobustConvexOptimization","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","RootTree","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","RulesTree","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameAs","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SecurityCertificate","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceIndicesLayer","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetFileDate","SetFileFormatProperties","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideShowVideo","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SmoothPointDensity","SnDispersion","Snippet","SnippetsVideo","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolarTime","SolidAngle","SolidBoundaryLoadValue","SolidData","SolidDisplacementCondition","SolidFixedCondition","SolidMechanicsPDEComponent","SolidMechanicsStrain","SolidMechanicsStress","SolidRegionQ","Solve","SolveAlways","SolveDelayed","SolveValues","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","SourcePDETerm","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SparseArrayQ","SpatialBinnedPointData","SpatialBoundaryCorrection","SpatialEstimate","SpatialEstimatorFunction","SpatialGraphDistribution","SpatialJ","SpatialMedian","SpatialNoiseLevel","SpatialObservationRegionQ","SpatialPointData","SpatialPointSelect","SpatialRandomnessTest","SpatialTransformationLayer","SpatialTrendFunction","Speak","SpeakerMatchQ","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","Sphere","SphereBox","SphereBoxOptions","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","SpotLight","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StraussHardcorePointProcess","StraussPointProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPlot3D","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","StrictInequalities","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFormatQ","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTakeDrop","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripStyleOnPaste","StripWrapperBoxes","StrokeForm","Struckthrough","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTrackSelection","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricDifference","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelMeasurements","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelControllerData","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxAlignment","TableViewBoxBackground","TableViewBoxHeaders","TableViewBoxItemSize","TableViewBoxItemStyle","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TerminatedEvaluation","TernaryListPlot","TernaryPlotCorners","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThomasPointProcess","ThompsonGroupTh","Thread","Threaded","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","TickDirection","TickLabelOrientation","TickLabelPositioning","TickLabels","TickLengths","TickPositions","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeSystem","TimeSystemConvert","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRawPointer","ToRules","Torus","TorusGraph","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","TourVideo","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackCellChangeTimes","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainImageContentDetector","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TrainTextContentDetector","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapEnterKey","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","Tree","TreeCases","TreeChildren","TreeCount","TreeData","TreeDelete","TreeDepth","TreeElementCoordinates","TreeElementLabel","TreeElementLabelFunction","TreeElementLabelStyle","TreeElementShape","TreeElementShapeFunction","TreeElementSize","TreeElementSizeFunction","TreeElementStyle","TreeElementStyleFunction","TreeExpression","TreeExtract","TreeFold","TreeForm","TreeGraph","TreeGraphQ","TreeInsert","TreeLayout","TreeLeafCount","TreeLeafQ","TreeLeaves","TreeLevel","TreeMap","TreeMapAt","TreeOutline","TreePlot","TreePosition","TreeQ","TreeReplacePart","TreeRules","TreeScan","TreeSelect","TreeSize","TreeTraversalOrder","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeDeclaration","TypeEvaluate","TypeHint","TypeOf","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UniqueElements","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","UnlabeledTree","UnmanageObject","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","Until","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrix","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseEmbeddedLibrary","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValenceFilling","ValidationLength","ValidationSet","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","VandermondeMatrix","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceGammaPointProcess","VarianceTest","VariogramFunction","VariogramModel","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorDisplacementPlot","VectorDisplacementPlot3D","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","VersionedPreferences","VertexAdd","VertexCapacity","VertexChromaticNumber","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInComponentGraph","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutComponentGraph","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexTransitiveGraphQ","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoCapture","VideoCombine","VideoDelete","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoGenerator","VideoInsert","VideoIntervals","VideoJoin","VideoMap","VideoMapList","VideoMapTimeSeries","VideoPadding","VideoPause","VideoPlay","VideoQ","VideoRecord","VideoReplace","VideoScreenCapture","VideoSplit","VideoStop","VideoStream","VideoStreams","VideoTimeStretch","VideoTrackSelection","VideoTranscode","VideoTransparency","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WavePDEComponent","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebColumn","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebItem","WebPageMetaInformation","WebRow","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WholeCellGroupOpener","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WithCleanup","WithLock","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframCloudSettings","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$CompilerEnvironment","$ConditionHold","$ConfiguredKernels","$Context","$ContextAliases","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CryptographicEllipticCurveNames","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultKernels","$DefaultLocalBase","$DefaultLocalKernel","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultRemoteBatchSubmissionEnvironment","$DefaultRemoteKernel","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeneratedAssetLocation","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxDisplayedChildren","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$ProgressReporting","$PublisherID","$RandomGeneratorState","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterCloudUserID","$RequesterCloudUserUUID","$RequesterWolframID","$RequesterWolframUUID","$ResourceSystemBase","$ResourceSystemPath","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TargetSystems","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];function i(e){const t=e.regex,n=/([2-9]|[1-2]\d|[3][0-5])\^\^/,i=/(\w*\.\w+|\w+\.\w*|\w+)/,o=/(\d*\.\d+|\d+\.\d*|\d+)/,a=t.either(t.concat(n,i),o),s=/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,l=/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/,c=t.either(s,l),u=/\*\^[+-]?\d+/,d=t.concat(a,t.optional(c),t.optional(u)),h={className:"number",relevance:0,begin:d},f=/[a-zA-Z$][a-zA-Z0-9$]*/,p=new Set(r),g={variants:[{className:"builtin-symbol",begin:f,"on:begin":(e,t)=>{p.has(e[0])||t.ignoreMatch()}},{className:"symbol",relevance:0,begin:f}]},m={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},v={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},A={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},b={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},y={className:"brace",relevance:0,begin:/[[\](){}]/},w={className:"message-name",relevance:0,begin:t.concat("::",f)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[e.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),A,b,w,g,m,e.QUOTE_STRING_MODE,h,v,y]}}e.exports=i},56883:function(e,t,n){"use strict";n.d(t,{m6:function(){return p},BD:function(){return m}});n(18111),n(22489),n(20116);var r=n(75432);function i(e,t){return!(!e||!e.contains)&&e.contains(t)}const o="data-vc-order",a="vc-util-key",s=new Map;function l({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:a}function c(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function u(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function d(e){return Array.from((s.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function h(e,t={}){if(!(0,r.A)())return null;const{csp:n,prepend:i}=t,a=document.createElement("style");a.setAttribute(o,u(i)),null!=n&&n.nonce&&(a.nonce=null==n?void 0:n.nonce),a.innerHTML=e;const s=c(t),{firstChild:l}=s;if(i){if("queue"===i){const e=d(s).filter(e=>["prepend","prependQueue"].includes(e.getAttribute(o)));if(e.length)return s.insertBefore(a,e[e.length-1].nextSibling),a}s.insertBefore(a,l)}else s.appendChild(a);return a}function f(e,t={}){const n=c(t);return d(n).find(n=>n.getAttribute(l(t))===e)}function p(e,t={}){const n=f(e,t);n&&c(t).removeChild(n)}function g(e,t){const n=s.get(e);if(!n||!i(document,n)){const n=h("",t),{parentNode:r}=n;s.set(e,r),e.removeChild(n)}}function m(e,t,n={}){var r,i,o;const a=c(n);g(a,n);const s=f(t,n);if(s)return null!=(r=n.csp)&&r.nonce&&s.nonce!==(null==(i=n.csp)?void 0:i.nonce)&&(s.nonce=null==(o=n.csp)?void 0:o.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;const u=h(e,n);return u.setAttribute(l(n),t),u}},56920:function(e,t){"use strict";function n(e,t,n){var r=-1,i=null==e?0:e.length;while(++r<i)if(n(t,e[r]))return!0;return!1}t.A=n},56969:function(e,t,n){"use strict";var r=n(72777),i=n(10757);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},57179:function(e,t,n){"use strict";n.d(t,{A:function(){return te}});var r=n(12739),i=(n(44114),n(65070));function o(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var a=o,s=n(12140),l=1,c=2;function u(e,t,n,r,o,u){var d=n&l,h=e.length,f=t.length;if(h!=f&&!(d&&f>h))return!1;var p=u.get(e),g=u.get(t);if(p&&g)return p==t&&g==e;var m=-1,v=!0,A=n&c?new i.A:void 0;u.set(e,t),u.set(t,e);while(++m<h){var b=e[m],y=t[m];if(r)var w=d?r(y,b,m,t,e,u):r(b,y,m,e,t,u);if(void 0!==w){if(w)continue;v=!1;break}if(A){if(!a(t,function(e,t){if(!(0,s.A)(A,t)&&(b===e||o(b,e,n,r,u)))return A.push(t)})){v=!1;break}}else if(b!==y&&!o(b,y,n,r,u)){v=!1;break}}return u["delete"](e),u["delete"](t),v}var d=u,h=n(72990),f=n(73939),p=n(26841);n(18111),n(7588);function g(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}var m=g,v=n(5704),A=1,b=2,y="[object Boolean]",w="[object Date]",_="[object Error]",x="[object Map]",E="[object Number]",S="[object RegExp]",C="[object Set]",T="[object String]",k="[object Symbol]",O="[object ArrayBuffer]",M="[object DataView]",I=h.A?h.A.prototype:void 0,D=I?I.valueOf:void 0;function N(e,t,n,r,i,o,a){switch(n){case M:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case O:return!(e.byteLength!=t.byteLength||!o(new f.A(e),new f.A(t)));case y:case w:case E:return(0,p.A)(+e,+t);case _:return e.name==t.name&&e.message==t.message;case S:case T:return e==t+"";case x:var s=m;case C:var l=r&A;if(s||(s=v.A),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=b,a.set(e,t);var u=d(s(e),s(t),r,i,o,a);return a["delete"](e),u;case k:if(D)return D.call(e)==D.call(t)}return!1}var R=N,L=n(77661),B=1,P=Object.prototype,F=P.hasOwnProperty;function $(e,t,n,r,i,o){var a=n&B,s=(0,L.A)(e),l=s.length,c=(0,L.A)(t),u=c.length;if(l!=u&&!a)return!1;var d=l;while(d--){var h=s[d];if(!(a?h in t:F.call(t,h)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var g=!0;o.set(e,t),o.set(t,e);var m=a;while(++d<l){h=s[d];var v=e[h],A=t[h];if(r)var b=a?r(A,v,h,t,e,o):r(v,A,h,e,t,o);if(!(void 0===b?v===A||i(v,A,n,r,o):b)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var y=e.constructor,w=t.constructor;y==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w||(g=!1)}return o["delete"](e),o["delete"](t),g}var j=$,H=n(26200),U=n(23506),Q=n(1120),z=n(14381),W=1,G="[object Arguments]",V="[object Array]",K="[object Object]",Y=Object.prototype,q=Y.hasOwnProperty;function X(e,t,n,i,o,a){var s=(0,U.A)(e),l=(0,U.A)(t),c=s?V:(0,H.A)(e),u=l?V:(0,H.A)(t);c=c==G?K:c,u=u==G?K:u;var h=c==K,f=u==K,p=c==u;if(p&&(0,Q.A)(e)){if(!(0,Q.A)(t))return!1;s=!0,h=!1}if(p&&!h)return a||(a=new r.A),s||(0,z.A)(e)?d(e,t,n,i,o,a):R(e,t,c,n,i,o,a);if(!(n&W)){var g=h&&q.call(e,"__wrapped__"),m=f&&q.call(t,"__wrapped__");if(g||m){var v=g?e.value():e,A=m?t.value():t;return a||(a=new r.A),o(v,A,n,i,a)}}return!!p&&(a||(a=new r.A),j(e,t,n,i,o,a))}var J=X,Z=n(22799);function ee(e,t,n,r,i){return e===t||(null==e||null==t||!(0,Z.A)(e)&&!(0,Z.A)(t)?e!==e&&t!==t:J(e,t,n,r,ee,i))}var te=ee},57318:function(e){function t(e){const t={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},n=e.COMMENT("#","$"),r="([A-Za-z_]|::)(\\w|::)*",i=e.inherit(e.TITLE_MODE,{begin:r}),o={className:"variable",begin:"\\$"+r},a={className:"string",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[n,o,a,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[i,n]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:t,relevance:0,contains:[a,n,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},o]}],relevance:0}]}}e.exports=t},57433:function(e,t,n){"use strict";function r(){this.__data__=[],this.size=0}n.d(t,{A:function(){return b}});var i=r,o=n(26841);function a(e,t){var n=e.length;while(n--)if((0,o.A)(e[n][0],t))return n;return-1}var s=a,l=Array.prototype,c=l.splice;function u(e){var t=this.__data__,n=s(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():c.call(t,n,1),--this.size,!0}var d=u;function h(e){var t=this.__data__,n=s(t,e);return n<0?void 0:t[n][1]}var f=h;function p(e){return s(this.__data__,e)>-1}var g=p;n(44114);function m(e,t){var n=this.__data__,r=s(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var v=m;function A(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}A.prototype.clear=i,A.prototype["delete"]=d,A.prototype.get=f,A.prototype.has=g,A.prototype.set=v;var b=A},57520:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="SearchOutlined",c.inheritAttrs=!1;var u=c},57549:function(e,t,n){"use strict";n(44114);var r={single_source_shortest_paths:function(e,t,n){var i={},o={};o[t]=0;var a,s,l,c,u,d,h,f,p,g=r.PriorityQueue.make();g.push(t,0);while(!g.empty())for(l in a=g.pop(),s=a.value,c=a.cost,u=e[s]||{},u)u.hasOwnProperty(l)&&(d=u[l],h=c+d,f=o[l],p="undefined"===typeof o[l],(p||f>h)&&(o[l]=h,g.push(l,h),i[l]=s));if("undefined"!==typeof n&&"undefined"===typeof o[n]){var m=["Could not find a path from ",t," to ",n,"."].join("");throw new Error(m)}return i},extract_shortest_path_from_predecessor_list:function(e,t){var n=[],r=t;while(r)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,n){var i=r.single_source_shortest_paths(e,t,n);return r.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(e){var t,n=r.PriorityQueue,i={};for(t in e=e||{},n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i.queue=[],i.sorter=e.sorter||n.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=r},57657:function(e,t,n){"use strict";var r,i,o,a=n(79039),s=n(94901),l=n(20034),c=n(2360),u=n(42787),d=n(36840),h=n(78227),f=n(96395),p=h("iterator"),g=!1;[].keys&&(o=[].keys(),"next"in o?(i=u(u(o)),i!==Object.prototype&&(r=i)):g=!0);var m=!l(r)||a(function(){var e={};return r[p].call(e)!==e});m?r={}:f&&(r=c(r)),s(r[p])||d(r,p,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},57846:function(e,t,n){function r(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function i(e){return e?"string"===typeof e?e:e.source:null}function o(e){return a("(?=",e,")")}function a(...e){const t=e.map(e=>i(e)).join("");return t}function s(e){const t=e[e.length-1];return"object"===typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function l(...e){const t=s(e),n="("+(t.capture?"":"?:")+e.map(e=>i(e)).join("|")+")";return n}function c(e){const t=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],n={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},i=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],s=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],c=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],u=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],d=["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],h={keyword:t,literal:s,built_in:d,"variable.constant":c},f=e.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),p={variants:[f,e.C_LINE_COMMENT_MODE]},g=/[a-zA-Z_](\w|')*/,m={scope:"variable",begin:/``/,end:/``/},v=/\B('|\^)/,A={scope:"symbol",variants:[{match:a(v,/``.*?``/)},{match:a(v,e.UNDERSCORE_IDENT_RE)}],relevance:0},b=function({includeEqual:e}){let t;t=e?"!%&*+-/<=>@^|~?":"!%&*+-/<>@^|~?";const n=Array.from(t),i=a("[",...n.map(r),"]"),s=l(i,/\./),c=a(s,o(s)),u=l(a(c,s,"*"),a(i,"+"));return{scope:"operator",match:l(u,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},y=b({includeEqual:!0}),w=b({includeEqual:!1}),_=function(t,n){return{begin:a(t,o(a(/\s*/,l(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:n,end:o(l(/\n/,/=/)),relevance:0,keywords:e.inherit(h,{type:u}),contains:[p,A,e.inherit(m,{scope:null}),w]}},x=_(/:/,"operator"),E=_(/\bof\b/,"keyword"),S={begin:[/(^|\s+)/,/type/,/\s+/,g],beginScope:{2:"keyword",4:"title.class"},end:o(/\(|=|$/),keywords:h,contains:[p,e.inherit(m,{scope:null}),A,{scope:"operator",match:/<|>/},x]},C={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},T={begin:[/^\s*/,a(/#/,l(...i)),/\b/],beginScope:{2:"meta"},end:o(/\s|$/)},k={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},O={scope:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},M={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},e.BACKSLASH_ESCAPE]},I={scope:"string",begin:/"""/,end:/"""/,relevance:2},D={scope:"subst",begin:/\{/,end:/\}/,keywords:h},N={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},e.BACKSLASH_ESCAPE,D]},R={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},e.BACKSLASH_ESCAPE,D]},L={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},D],relevance:2},B={scope:"string",match:a(/'/,l(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};D.contains=[R,N,M,O,B,n,p,m,x,C,T,k,A,y];const P={variants:[L,R,N,I,M,O,B]};return{name:"F#",aliases:["fs","f#"],keywords:h,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[n,P,p,m,S,{scope:"meta",begin:/\[</,end:/>\]/,relevance:2,contains:[m,I,M,O,B,k]},E,x,C,T,k,A,y]}}n(18111),n(61701),e.exports=c},58004:function(e,t,n){"use strict";var r=n(46518),i=n(79039),o=n(68750),a=n(84916),s=!a("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||i(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))});r({target:"Set",proto:!0,real:!0,forced:s},{intersection:o})},58085:function(e,t){"use strict";class n{constructor(e,t){this._keyframe=!0,this.name=e,this.style=t}getName(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?`${e}-${this.name}`:this.name}}t.A=n},58088:function(e){function t(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,r=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),i=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,o=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[i,r]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,r]},{scope:{1:"punctuation",2:"number"},match:[o,r]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,r]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:i},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:o},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}e.exports=t},58283:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});n(44114),n(18111),n(22489),n(61701),n(13579);var r=n(51137),i=n(56768),o=n(90144),a=n(81192),s=n(41034),l=n(99078),c=n(36590),u=n(32342),d=n(43277),h=n(73429);const f=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean});var p=(0,i.pM)({name:"HookModal",inheritAttrs:!1,props:(0,h.A)(f(),{config:{width:520,okType:"primary"}}),setup(e,t){let{expose:n}=t;var r;const o=(0,i.EW)(()=>e.open),a=(0,i.EW)(()=>e.config),{direction:h,getPrefixCls:f}=(0,l.OQ)(),p=f("modal"),g=f(),m=()=>{var t,n;null===e||void 0===e||e.afterClose(),null===(n=(t=a.value).afterClose)||void 0===n||n.call(t)},v=function(){e.destroyAction(...arguments)};n({destroy:v});const A=null!==(r=a.value.okCancel)&&void 0!==r?r:"confirm"===a.value.type,[b]=(0,c.n)("Modal",u.A.Modal);return()=>(0,i.bF)(d.A,(0,s.A)((0,s.A)({prefixCls:p,rootPrefixCls:g},a.value),{},{close:v,open:o.value,afterClose:m,okText:a.value.okText||(A?null===b||void 0===b?void 0:b.value.okText:null===b||void 0===b?void 0:b.value.justOkText),direction:a.value.direction||h.value,cancelText:a.value.cancelText||(null===b||void 0===b?void 0:b.value.cancelText)}),null)}}),g=n(38961);let m=0;const v=(0,i.pM)({name:"ElementsHolder",inheritAttrs:!1,setup(e,t){let{expose:n}=t;const r=(0,o.IJ)([]),i=e=>(r.value.push(e),r.value=r.value.slice(),()=>{r.value=r.value.filter(t=>t!==e)});return n({addModal:i}),()=>r.value.map(e=>e())}});function A(){const e=(0,o.IJ)(null),t=(0,o.IJ)([]);(0,i.wB)(t,()=>{if(t.value.length){const e=[...t.value];e.forEach(e=>{e()}),t.value=[]}},{immediate:!0});const n=n=>function(a){var s;m+=1;const l=(0,o.IJ)(!0),c=(0,o.IJ)(null),u=(0,o.IJ)((0,o.R1)(a)),d=(0,o.IJ)({});(0,i.wB)(()=>a,e=>{A((0,r.A)((0,r.A)({},(0,o.i9)(e)?e.value:e),d.value))});const h=function(){l.value=!1;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.some(e=>e&&e.triggerCancel);u.value.onCancel&&r&&u.value.onCancel(()=>{},...t.slice(1))};let f;const v=()=>(0,i.bF)(p,{key:`modal-${m}`,config:n(u.value),ref:c,open:l.value,destroyAction:h,afterClose:()=>{null===f||void 0===f||f()}},null);f=null===(s=e.value)||void 0===s?void 0:s.addModal(v),f&&g.A.push(f);const A=e=>{u.value=(0,r.A)((0,r.A)({},u.value),e)},b=()=>{c.value?h():t.value=[...t.value,h]},y=e=>{d.value=e,c.value?A(e):t.value=[...t.value,()=>A(e)]};return{destroy:b,update:y}},s=(0,i.EW)(()=>({info:n(a.$D),success:n(a.Ej),error:n(a.jT),warning:n(a.fp),confirm:n(a.lr)})),l=Symbol("modalHolderKey");return[s.value,()=>(0,i.bF)(v,{key:l,ref:e},null)]}var b=A},58285:function(e){function t(e){const t={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}e.exports=t},58456:function(e){function t(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},a={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},s={begin:/\[/,end:/\]/,contains:[r,o,i,a,n,"self"],relevance:0},l=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,u=/'[^']*'/,d=t.either(l,c,u),h=t.concat(d,"(\\s*\\.\\s*",d,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:h,className:"attr",starts:{end:/$/,contains:[r,s,o,i,a,n]}}]}}e.exports=t},58491:function(e,t,n){"use strict";n.d(t,{rc:function(){return l}});var r=n(51137),i=n(55107),o=n(44678),a=n(47659);Symbol();const s=()=>(0,i.A)((0,a.$8)(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]);t.Ay=s;const l=()=>(0,r.A)((0,r.A)({},(0,i.A)(s(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:(0,o.$q)(),onCompositionend:(0,o.$q)(),valueModifiers:Object})},58622:function(e,t,n){"use strict";var r=n(44576),i=n(94901),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},59143:function(e,t,n){"use strict";var r=n(44576),i=n(79504),o=n(83972),a=n(63463),s=n(39297),l=n(92804),c=n(944),u=n(55169),d=l.c2i,h=l.c2iUrl,f=r.SyntaxError,p=r.TypeError,g=i("".charAt),m=function(e,t){for(var n=e.length;t<n;t++){var r=g(e,t);if(" "!==r&&"\t"!==r&&"\n"!==r&&"\f"!==r&&"\r"!==r)break}return t},v=function(e,t,n){var r=e.length;r<4&&(e+=2===r?"AA":"A");var i=(t[g(e,0)]<<18)+(t[g(e,1)]<<12)+(t[g(e,2)]<<6)+t[g(e,3)],o=[i>>16&255,i>>8&255,255&i];if(2===r){if(n&&0!==o[1])throw new f("Extra bits");return[o[0]]}if(3===r){if(n&&0!==o[2])throw new f("Extra bits");return[o[0],o[1]]}return o},A=function(e,t,n){for(var r=t.length,i=0;i<r;i++)e[n+i]=t[i];return n+r};e.exports=function(e,t,n,r){a(e),o(t);var i="base64"===c(t)?d:h,l=t?t.lastChunkHandling:void 0;if(void 0===l&&(l="loose"),"loose"!==l&&"strict"!==l&&"stop-before-partial"!==l)throw new p("Incorrect `lastChunkHandling` option");n&&u(n.buffer);var b=e.length,y=n||[],w=0,_=0,x="",E=0;if(r)while(1){if(E=m(e,E),E===b){if(x.length>0){if("stop-before-partial"===l)break;if("loose"!==l)throw new f("Missing padding");if(1===x.length)throw new f("Malformed padding: exactly one additional character");w=A(y,v(x,i,!1),w)}_=b;break}var S=g(e,E);if(++E,"="===S){if(x.length<2)throw new f("Padding is too early");if(E=m(e,E),2===x.length){if(E===b){if("stop-before-partial"===l)break;throw new f("Malformed padding: only one =")}"="===g(e,E)&&(++E,E=m(e,E))}if(E<b)throw new f("Unexpected character after padding");w=A(y,v(x,i,"strict"===l),w),_=b;break}if(!s(i,S))throw new f("Unexpected character");var C=r-w;if(1===C&&2===x.length||2===C&&3===x.length)break;if(x+=S,4===x.length&&(w=A(y,v(x,i,!1),w),x="",_=E,w===r))break}return{bytes:y,read:_,written:w}}},59225:function(e,t,n){"use strict";var r,i,o,a,s=n(44576),l=n(18745),c=n(76080),u=n(94901),d=n(39297),h=n(79039),f=n(20397),p=n(67680),g=n(4055),m=n(22812),v=n(89544),A=n(38574),b=s.setImmediate,y=s.clearImmediate,w=s.process,_=s.Dispatch,x=s.Function,E=s.MessageChannel,S=s.String,C=0,T={},k="onreadystatechange";h(function(){r=s.location});var O=function(e){if(d(T,e)){var t=T[e];delete T[e],t()}},M=function(e){return function(){O(e)}},I=function(e){O(e.data)},D=function(e){s.postMessage(S(e),r.protocol+"//"+r.host)};b&&y||(b=function(e){m(arguments.length,1);var t=u(e)?e:x(e),n=p(arguments,1);return T[++C]=function(){l(t,void 0,n)},i(C),C},y=function(e){delete T[e]},A?i=function(e){w.nextTick(M(e))}:_&&_.now?i=function(e){_.now(M(e))}:E&&!v?(o=new E,a=o.port2,o.port1.onmessage=I,i=c(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(D)?(i=D,s.addEventListener("message",I,!1)):i=k in g("script")?function(e){f.appendChild(g("script"))[k]=function(){f.removeChild(this),O(e)}}:function(e){setTimeout(M(e),0)}),e.exports={set:b,clear:y}},59293:function(e,t){"use strict";function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];for(let t=0,n=e.length;t<n;t++)if(void 0!==e[t])return e[t]}t.A=n},59646:function(e,t,n){"use strict";var r=n(80339),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,a=o&&o.exports===i,s=a&&r.A.process,l=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();t.A=l},59699:function(e,t,n){"use strict";function r(e,t){return!!e&&(!!e.contains&&e.contains(t))}n.d(t,{A:function(){return r}})},59804:function(e,t,n){"use strict";var r=n(27909),i=n(81192),o=n(58283),a=n(38961);function s(e){return(0,i.Ay)((0,i.fp)(e))}r.A.useModal=o.A,r.A.info=function(e){return(0,i.Ay)((0,i.$D)(e))},r.A.success=function(e){return(0,i.Ay)((0,i.Ej)(e))},r.A.error=function(e){return(0,i.Ay)((0,i.jT)(e))},r.A.warning=s,r.A.warn=s,r.A.confirm=function(e){return(0,i.Ay)((0,i.lr)(e))},r.A.destroyAll=function(){while(a.A.length){const e=a.A.pop();e&&e()}},r.A.install=function(e){return e.component(r.A.name,r.A),e},t.A=r.A},59848:function(e,t,n){"use strict";n(86368),n(29309)},60056:function(e,t,n){"use strict";n.d(t,{A:function(){return yt}});n(44114);var r=n(51137),i=n(56768),o=n(90144),a=n(81425);function s(){return""}function l(e){return e?e.ownerDocument:window.document}function c(){}const u=()=>({action:a.A.oneOfType([a.A.string,a.A.arrayOf(a.A.string)]).def([]),showAction:a.A.any.def([]),hideAction:a.A.any.def([]),getPopupClassNameFromAlign:a.A.any.def(s),onPopupVisibleChange:Function,afterPopupVisibleChange:a.A.func.def(c),popup:a.A.any,arrow:a.A.bool.def(!0),popupStyle:{type:Object,default:void 0},prefixCls:a.A.string.def("rc-trigger-popup"),popupClassName:a.A.string.def(""),popupPlacement:String,builtinPlacements:a.A.object,popupTransitionName:String,popupAnimation:a.A.any,mouseEnterDelay:a.A.number.def(0),mouseLeaveDelay:a.A.number.def(.1),zIndex:Number,focusDelay:a.A.number.def(0),blurDelay:a.A.number.def(.15),getPopupContainer:Function,getDocument:a.A.func.def(l),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:a.A.object.def(()=>({})),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function});var d=n(59699),h=n(32545),f=n(44832),p=n(93631),g=n(41034);const m={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,arrow:{type:Boolean,default:!0},animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},v=(0,r.A)((0,r.A)({},m),{mobile:{type:Object}}),A=(0,r.A)((0,r.A)({},m),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});var b=n(45130),y=n(42037);function w(e){const{prefixCls:t,visible:n,zIndex:r,mask:o,maskAnimation:a,maskTransitionName:s}=e;if(!o)return null;let l={};return(s||a)&&(l=(0,y.V)({prefixCls:t,transitionName:s,animation:a})),(0,i.bF)(b.eB,(0,g.A)({appear:!0},l),{default:()=>[(0,i.bo)((0,i.bF)("div",{style:{zIndex:r},class:`${t}-mask`},null),[[(0,i.gN)("if"),n]])]})}w.displayName="Mask";var _=n(49974),x=(0,i.pM)({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:v,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,slots:a}=t;const s=(0,o.KR)();return n({forceAlign:()=>{},getElement:()=>s.value}),()=>{var t;const{zIndex:n,visible:o,prefixCls:l,mobile:{popupClassName:c,popupStyle:u,popupMotion:d={},popupRender:h}={}}=e,p=(0,r.A)({zIndex:n},u);let m=(0,f.MI)(null===(t=a.default)||void 0===t?void 0:t.call(a));if(m.length>1){(function(){})();m=(0,i.bF)("div",{class:`${l}-content`},[m])}h&&(m=h(m));const v=(0,_.A)(l,c);return(0,i.bF)(b.eB,(0,g.A)({ref:s},d),{default:()=>[o?(0,i.bF)("div",{class:v,style:p},[m]):null]})}}}),E=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})};const S=["measure","align",null,"motion"];var C,T=(e,t)=>{const n=(0,o.IJ)(null),r=(0,o.IJ)(),a=(0,o.IJ)(!1);function s(e){a.value||(n.value=e)}function l(){h.A.cancel(r.value)}function c(e){l(),r.value=(0,h.A)(()=>{let t=n.value;switch(n.value){case"align":t="motion";break;case"motion":t="stable";break;default:}s(t),null===e||void 0===e||e()})}return(0,i.wB)(e,()=>{s("measure")},{immediate:!0,flush:"post"}),(0,i.sV)(()=>{(0,i.wB)(n,()=>{switch(n.value){case"measure":t();break;default:}n.value&&(r.value=(0,h.A)(()=>E(void 0,void 0,void 0,function*(){const e=S.indexOf(n.value),t=S[e+1];t&&-1!==e&&s(t)})))},{immediate:!0,flush:"post"})}),(0,i.xo)(()=>{a.value=!0,l()}),[n,c]},k=e=>{const t=(0,o.IJ)({width:0,height:0});function n(e){t.value={width:e.offsetWidth,height:e.offsetHeight}}const r=(0,i.EW)(()=>{const n={};if(e.value){const{width:r,height:i}=t.value;-1!==e.value.indexOf("height")&&i?n.height=`${i}px`:-1!==e.value.indexOf("minHeight")&&i&&(n.minHeight=`${i}px`),-1!==e.value.indexOf("width")&&r?n.width=`${r}px`:-1!==e.value.indexOf("minWidth")&&r&&(n.minWidth=`${r}px`)}return n});return[r,n]};n(18111),n(22489),n(7588),n(61701);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach(function(t){D(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function R(){if(void 0!==C)return C;C="";var e=document.createElement("p").style,t="Transform";for(var n in N)n+t in e&&(C=n);return C}function L(){return R()?"".concat(R(),"TransitionProperty"):"transitionProperty"}function B(){return R()?"".concat(R(),"Transform"):"transform"}function P(e,t){var n=L();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function F(e,t){var n=B();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}function $(e){return e.style.transitionProperty||e.style[L()]}function j(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(B());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}var H=/matrix\((.*)\)/,U=/matrix3d\((.*)\)/;function Q(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(B());if(r&&"none"!==r){var i,o=r.match(H);if(o)o=o[1],i=o.split(",").map(function(e){return parseFloat(e,10)}),i[4]=t.x,i[5]=t.y,F(e,"matrix(".concat(i.join(","),")"));else{var a=r.match(U)[1];i=a.split(",").map(function(e){return parseFloat(e,10)}),i[12]=t.x,i[13]=t.y,F(e,"matrix3d(".concat(i.join(","),")"))}}else F(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}var z,W=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;function G(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function V(e,t,n){var r=n;if("object"!==I(t))return"undefined"!==typeof r?("number"===typeof r&&(r="".concat(r,"px")),void(e.style[t]=r)):z(e,t);for(var i in t)t.hasOwnProperty(i)&&V(e,i,t[i])}function K(e){var t,n,r,i=e.ownerDocument,o=i.body,a=i&&i.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),n-=a.clientLeft||o.clientLeft||0,r-=a.clientTop||o.clientTop||0,{left:n,top:r}}function Y(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!==typeof n){var i=e.document;n=i.documentElement[r],"number"!==typeof n&&(n=i.body[r])}return n}function q(e){return Y(e)}function X(e){return Y(e,!0)}function J(e){var t=K(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=q(r),t.top+=X(r),t}function Z(e){return null!==e&&void 0!==e&&e==e.window}function ee(e){return Z(e)?e.document:9===e.nodeType?e:e.ownerDocument}function te(e,t,n){var r=n,i="",o=ee(e);return r=r||o.defaultView.getComputedStyle(e,null),r&&(i=r.getPropertyValue(t)||r[t]),i}var ne=new RegExp("^(".concat(W,")(?!px)[a-z%]+$"),"i"),re=/^(top|right|bottom|left)$/,ie="currentStyle",oe="runtimeStyle",ae="left",se="px";function le(e,t){var n=e[ie]&&e[ie][t];if(ne.test(n)&&!re.test(t)){var r=e.style,i=r[ae],o=e[oe][ae];e[oe][ae]=e[ie][ae],r[ae]="fontSize"===t?"1em":n||0,n=r.pixelLeft+se,r[ae]=i,e[oe][ae]=o}return""===n?"auto":n}function ce(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ue(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function de(e,t,n){"static"===V(e,"position")&&(e.style.position="relative");var r=-999,i=-999,o=ce("left",n),a=ce("top",n),s=ue(o),l=ue(a);"left"!==o&&(r=999),"top"!==a&&(i=999);var c="",u=J(e);("left"in t||"top"in t)&&(c=$(e)||"",P(e,"none")),"left"in t&&(e.style[s]="",e.style[o]="".concat(r,"px")),"top"in t&&(e.style[l]="",e.style[a]="".concat(i,"px")),G(e);var d=J(e),h={};for(var f in t)if(t.hasOwnProperty(f)){var p=ce(f,n),g="left"===f?r:i,m=u[f]-d[f];h[p]=p===f?g+m:g-m}V(e,h),G(e),("left"in t||"top"in t)&&P(e,c);var v={};for(var A in t)if(t.hasOwnProperty(A)){var b=ce(A,n),y=t[A]-u[A];v[b]=A===b?h[b]+y:h[b]-y}V(e,v)}function he(e,t){var n=J(e),r=j(e),i={x:r.x,y:r.y};"left"in t&&(i.x=r.x+t.left-n.left),"top"in t&&(i.y=r.y+t.top-n.top),Q(e,i)}function fe(e,t,n){if(n.ignoreShake){var r=J(e),i=r.left.toFixed(0),o=r.top.toFixed(0),a=t.left.toFixed(0),s=t.top.toFixed(0);if(i===a&&o===s)return}n.useCssRight||n.useCssBottom?de(e,t,n):n.useCssTransform&&B()in document.body.style?he(e,t):de(e,t,n)}function pe(e,t){for(var n=0;n<e.length;n++)t(e[n])}function ge(e){return"border-box"===z(e,"boxSizing")}"undefined"!==typeof window&&(z=window.getComputedStyle?te:le);var me=["margin","border","padding"],ve=-1,Ae=2,be=1,ye=0;function we(e,t,n){var r,i={},o=e.style;for(r in t)t.hasOwnProperty(r)&&(i[r]=o[r],o[r]=t[r]);for(r in n.call(e),t)t.hasOwnProperty(r)&&(o[r]=i[r])}function _e(e,t,n){var r,i,o,a=0;for(i=0;i<t.length;i++)if(r=t[i],r)for(o=0;o<n.length;o++){var s=void 0;s="border"===r?"".concat(r).concat(n[o],"Width"):r+n[o],a+=parseFloat(z(e,s))||0}return a}var xe={getParent:function(e){var t=e;do{t=11===t.nodeType&&t.host?t.host:t.parentNode}while(t&&1!==t.nodeType&&9!==t.nodeType);return t}};function Ee(e,t,n){var r=n;if(Z(e))return"width"===t?xe.viewportWidth(e):xe.viewportHeight(e);if(9===e.nodeType)return"width"===t?xe.docWidth(e):xe.docHeight(e);var i="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?Math.floor(e.getBoundingClientRect().width):Math.floor(e.getBoundingClientRect().height),a=ge(e),s=0;(null===o||void 0===o||o<=0)&&(o=void 0,s=z(e,t),(null===s||void 0===s||Number(s)<0)&&(s=e.style[t]||0),s=Math.floor(parseFloat(s))||0),void 0===r&&(r=a?be:ve);var l=void 0!==o||a,c=o||s;return r===ve?l?c-_e(e,["border","padding"],i):s:l?r===be?c:c+(r===Ae?-_e(e,["border"],i):_e(e,["margin"],i)):s+_e(e,me.slice(r),i)}pe(["Width","Height"],function(e){xe["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],xe["viewport".concat(e)](n))},xe["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,i=r.body,o=r.documentElement,a=o[n];return"CSS1Compat"===r.compatMode&&a||i&&i[n]||a}});var Se={position:"absolute",visibility:"hidden",display:"block"};function Ce(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=t[0];return 0!==i.offsetWidth?r=Ee.apply(void 0,t):we(i,Se,function(){r=Ee.apply(void 0,t)}),r}function Te(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}pe(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);xe["outer".concat(t)]=function(t,n){return t&&Ce(t,e,n?ye:be)};var n="width"===e?["Left","Right"]:["Top","Bottom"];xe[e]=function(t,r){var i=r;if(void 0===i)return t&&Ce(t,e,ve);if(t){var o=ge(t);return o&&(i+=_e(t,["padding","border"],n)),V(t,e,i)}}});var ke={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:ee,offset:function(e,t,n){if("undefined"===typeof t)return J(e);fe(e,t,n||{})},isWindow:Z,each:pe,css:V,clone:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);var r=e.overflow;if(r)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:Te,getWindowScrollLeft:function(e){return q(e)},getWindowScrollTop:function(e){return X(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)ke.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};Te(ke,xe);var Oe=ke.getParent;function Me(e){if(ke.isWindow(e)||9===e.nodeType)return null;var t,n=ke.getDocument(e),r=n.body,i=ke.css(e,"position"),o="fixed"===i||"absolute"===i;if(!o)return"html"===e.nodeName.toLowerCase()?null:Oe(e);for(t=Oe(e);t&&t!==r&&9!==t.nodeType;t=Oe(t))if(i=ke.css(t,"position"),"static"!==i)return t;return null}var Ie=ke.getParent;function De(e){if(ke.isWindow(e)||9===e.nodeType)return!1;var t=ke.getDocument(e),n=t.body,r=null;for(r=Ie(e);r&&r!==n&&r!==t;r=Ie(r)){var i=ke.css(r,"position");if("fixed"===i)return!0}return!1}function Ne(e,t){var n={left:0,right:1/0,top:0,bottom:1/0},r=Me(e),i=ke.getDocument(e),o=i.defaultView||i.parentWindow,a=i.body,s=i.documentElement;while(r){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===r.clientWidth||r===a||r===s||"visible"===ke.css(r,"overflow")){if(r===a||r===s)break}else{var l=ke.offset(r);l.left+=r.clientLeft,l.top+=r.clientTop,n.top=Math.max(n.top,l.top),n.right=Math.min(n.right,l.left+r.clientWidth),n.bottom=Math.min(n.bottom,l.top+r.clientHeight),n.left=Math.max(n.left,l.left)}r=Me(r)}var c=null;if(!ke.isWindow(e)&&9!==e.nodeType){c=e.style.position;var u=ke.css(e,"position");"absolute"===u&&(e.style.position="fixed")}var d=ke.getWindowScrollLeft(o),h=ke.getWindowScrollTop(o),f=ke.viewportWidth(o),p=ke.viewportHeight(o),g=s.scrollWidth,m=s.scrollHeight,v=window.getComputedStyle(a);if("hidden"===v.overflowX&&(g=o.innerWidth),"hidden"===v.overflowY&&(m=o.innerHeight),e.style&&(e.style.position=c),t||De(e))n.left=Math.max(n.left,d),n.top=Math.max(n.top,h),n.right=Math.min(n.right,d+f),n.bottom=Math.min(n.bottom,h+p);else{var A=Math.max(g,d+f);n.right=Math.min(n.right,A);var b=Math.max(m,h+p);n.bottom=Math.min(n.bottom,b)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Re(e,t,n,r){var i=ke.clone(e),o={width:t.width,height:t.height};return r.adjustX&&i.left<n.left&&(i.left=n.left),r.resizeWidth&&i.left>=n.left&&i.left+o.width>n.right&&(o.width-=i.left+o.width-n.right),r.adjustX&&i.left+o.width>n.right&&(i.left=Math.max(n.right-o.width,n.left)),r.adjustY&&i.top<n.top&&(i.top=n.top),r.resizeHeight&&i.top>=n.top&&i.top+o.height>n.bottom&&(o.height-=i.top+o.height-n.bottom),r.adjustY&&i.top+o.height>n.bottom&&(i.top=Math.max(n.bottom-o.height,n.top)),ke.mix(i,o)}function Le(e){var t,n,r;if(ke.isWindow(e)||9===e.nodeType){var i=ke.getWindow(e);t={left:ke.getWindowScrollLeft(i),top:ke.getWindowScrollTop(i)},n=ke.viewportWidth(i),r=ke.viewportHeight(i)}else t=ke.offset(e),n=ke.outerWidth(e),r=ke.outerHeight(e);return t.width=n,t.height=r,t}function Be(e,t){var n=t.charAt(0),r=t.charAt(1),i=e.width,o=e.height,a=e.left,s=e.top;return"c"===n?s+=o/2:"b"===n&&(s+=o),"c"===r?a+=i/2:"r"===r&&(a+=i),{left:a,top:s}}function Pe(e,t,n,r,i){var o=Be(t,n[1]),a=Be(e,n[0]),s=[a.left-o.left,a.top-o.top];return{left:Math.round(e.left-s[0]+r[0]-i[0]),top:Math.round(e.top-s[1]+r[1]-i[1])}}function Fe(e,t,n){return e.left<n.left||e.left+t.width>n.right}function $e(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function je(e,t,n){return e.left>n.right||e.left+t.width<n.left}function He(e,t,n){return e.top>n.bottom||e.top+t.height<n.top}function Ue(e,t,n){var r=[];return ke.each(e,function(e){r.push(e.replace(t,function(e){return n[e]}))}),r}function Qe(e,t){return e[t]=-e[t],e}function ze(e,t){var n;return n=/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10),n||0}function We(e,t){e[0]=ze(e[0],t.width),e[1]=ze(e[1],t.height)}function Ge(e,t,n,r){var i=n.points,o=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,l=n.source||e;o=[].concat(o),a=[].concat(a),s=s||{};var c={},u=0,d=!(!s||!s.alwaysByViewport),h=Ne(l,d),f=Le(l);We(o,f),We(a,t);var p=Pe(f,t,i,o,a),g=ke.merge(f,p);if(h&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&Fe(p,f,h)){var m=Ue(i,/[lr]/gi,{l:"r",r:"l"}),v=Qe(o,0),A=Qe(a,0),b=Pe(f,t,m,v,A);je(b,f,h)||(u=1,i=m,o=v,a=A)}if(s.adjustY&&$e(p,f,h)){var y=Ue(i,/[tb]/gi,{t:"b",b:"t"}),w=Qe(o,1),_=Qe(a,1),x=Pe(f,t,y,w,_);He(x,f,h)||(u=1,i=y,o=w,a=_)}u&&(p=Pe(f,t,i,o,a),ke.mix(g,p));var E=Fe(p,f,h),S=$e(p,f,h);if(E||S){var C=i;E&&(C=Ue(i,/[lr]/gi,{l:"r",r:"l"})),S&&(C=Ue(i,/[tb]/gi,{t:"b",b:"t"})),i=C,o=n.offset||[0,0],a=n.targetOffset||[0,0]}c.adjustX=s.adjustX&&E,c.adjustY=s.adjustY&&S,(c.adjustX||c.adjustY)&&(g=Re(p,f,h,c))}return g.width!==f.width&&ke.css(l,"width",ke.width(l)+g.width-f.width),g.height!==f.height&&ke.css(l,"height",ke.height(l)+g.height-f.height),ke.offset(l,{left:g.left,top:g.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:o,targetOffset:a,overflow:c}}function Ve(e,t){var n=Ne(e,t),r=Le(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}function Ke(e,t,n){var r=n.target||t,i=Le(r),o=!Ve(r,n.overflow&&n.overflow.alwaysByViewport);return Ge(e,i,n,o)}function Ye(e,t,n){var r,i,o=ke.getDocument(e),a=o.defaultView||o.parentWindow,s=ke.getWindowScrollLeft(a),l=ke.getWindowScrollTop(a),c=ke.viewportWidth(a),u=ke.viewportHeight(a);r="pageX"in t?t.pageX:s+t.clientX,i="pageY"in t?t.pageY:l+t.clientY;var d={left:r,top:i,width:0,height:0},h=r>=0&&r<=s+c&&i>=0&&i<=l+u,f=[n.points[0],"cc"];return Ge(e,d,M(M({},n),{},{points:f}),h)}Ke.__getOffsetParent=Me,Ke.__getVisibleRectForElement=Ne;var qe=n(82978),Xe=n(53942),Je=n(23606);function Ze(e,t){return e===t||!(!e||!t)&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&(e.clientX===t.clientX&&e.clientY===t.clientY))}function et(e,t){e!==document.activeElement&&(0,d.A)(t,e)&&"function"===typeof e.focus&&e.focus()}function tt(e,t){let n=null,r=null;function i(e){let[{target:i}]=e;if(!document.documentElement.contains(i))return;const{width:o,height:a}=i.getBoundingClientRect(),s=Math.floor(o),l=Math.floor(a);n===s&&r===l||Promise.resolve().then(()=>{t({width:s,height:l})}),n=s,r=l}const o=new Je.A(i);return e&&o.observe(e),()=>{o.disconnect()}}var nt=(e,t)=>{let n=!1,r=null;function i(){clearTimeout(r)}function o(a){if(n&&!0!==a)i(),r=setTimeout(()=>{n=!1,o()},t.value);else{if(!1===e())return;n=!0,i(),r=setTimeout(()=>{n=!1},t.value)}}return[o,()=>{n=!1,i()}]},rt=n(39195);const it={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function ot(e){return"function"!==typeof e?null:e()}function at(e){return"object"===typeof e&&e?e:null}var st=(0,i.pM)({compatConfig:{MODE:3},name:"Align",props:it,emits:["align"],setup(e,t){let{expose:n,slots:r}=t;const a=(0,o.KR)({}),s=(0,o.KR)(),[l,c]=nt(()=>{const{disabled:t,target:n,align:r,onAlign:i}=e;if(!t&&n&&s.value){const e=s.value;let t;const o=ot(n),l=at(n);a.value.element=o,a.value.point=l,a.value.align=r;const{activeElement:c}=document;return o&&(0,Xe.A)(o)?t=Ke(e,o,r):l&&(t=Ye(e,l,r)),et(c,e),i&&t&&i(e,t),!0}return!1},(0,i.EW)(()=>e.monitorBufferTime)),u=(0,o.KR)({cancel:()=>{}}),d=(0,o.KR)({cancel:()=>{}}),h=()=>{const t=e.target,n=ot(t),r=at(t);s.value!==d.value.element&&(d.value.cancel(),d.value.element=s.value,d.value.cancel=tt(s.value,l)),a.value.element===n&&Ze(a.value.point,r)&&(0,rt.A)(a.value.align,e.align)||(l(),u.value.element!==n&&(u.value.cancel(),u.value.element=n,u.value.cancel=tt(n,l)))};(0,i.sV)(()=>{(0,i.dY)(()=>{h()})}),(0,i.$u)(()=>{(0,i.dY)(()=>{h()})}),(0,i.wB)(()=>e.disabled,e=>{e?c():l()},{immediate:!0,flush:"post"});const f=(0,o.KR)(null);return(0,i.wB)(()=>e.monitorWindowResize,e=>{e?f.value||(f.value=(0,p.A)(window,"resize",l)):f.value&&(f.value.remove(),f.value=null)},{flush:"post"}),(0,i.hi)(()=>{u.value.cancel(),d.value.cancel(),f.value&&f.value.remove(),c()}),n({forceAlign:()=>l(!0)}),()=>{const e=null===r||void 0===r?void 0:r.default();return e?(0,qe.Ob)(e[0],{ref:s},!0,!0):null}}}),lt=n(51589),ct=n(62573),ut=(0,i.pM)({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:m,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,attrs:a,slots:s}=t;const l=(0,o.IJ)(),c=(0,o.IJ)(),u=(0,o.IJ)(),[d,h]=k((0,o.lW)(e,"stretch")),p=()=>{e.stretch&&h(e.getRootDomNode())},m=(0,o.IJ)(!1);let v;(0,i.wB)(()=>e.visible,t=>{clearTimeout(v),t?v=setTimeout(()=>{m.value=e.visible}):m.value=!1},{immediate:!0});const[A,w]=T(m,p),x=(0,o.IJ)(),E=()=>e.point?e.point:e.getRootDomNode,S=()=>{var e;null===(e=l.value)||void 0===e||e.forceAlign()},C=(t,n)=>{var r;const i=e.getClassNameFromAlign(n),o=u.value;u.value!==i&&(u.value=i),"align"===A.value&&(o!==i?Promise.resolve().then(()=>{S()}):w(()=>{var e;null===(e=x.value)||void 0===e||e.call(x)}),null===(r=e.onAlign)||void 0===r||r.call(e,t,n))},O=(0,i.EW)(()=>{const t="object"===typeof e.animation?e.animation:(0,y.V)(e);return["onAfterEnter","onAfterLeave"].forEach(e=>{const n=t[e];t[e]=e=>{w(),A.value="stable",null===n||void 0===n||n(e)}}),t}),M=()=>new Promise(e=>{x.value=e});(0,i.wB)([O,A],()=>{O.value||"motion"!==A.value||w()},{immediate:!0}),n({forceAlign:S,getElement:()=>c.value.$el||c.value});const I=(0,i.EW)(()=>{var t;return!(null===(t=e.align)||void 0===t?void 0:t.points)||"align"!==A.value&&"stable"!==A.value});return()=>{var t;const{zIndex:n,align:o,prefixCls:h,destroyPopupOnHide:p,onMouseenter:v,onMouseleave:y,onTouchstart:w=()=>{},onMousedown:x}=e,S=A.value,T=[(0,r.A)((0,r.A)({},d.value),{zIndex:n,opacity:"motion"!==S&&"stable"!==S&&m.value?0:null,pointerEvents:m.value||"stable"===S?null:"none"}),a.style];let k=(0,f.MI)(null===(t=s.default)||void 0===t?void 0:t.call(s,{visible:e.visible}));if(k.length>1){(function(){})();k=(0,i.bF)("div",{class:`${h}-content`},[k])}const D=(0,_.A)(h,a.class,u.value,!e.arrow&&`${h}-arrow-hidden`),N=m.value||!e.visible,R=N?(0,lt.ce)(O.value.name,O.value):{};return(0,i.bF)(b.eB,(0,g.A)((0,g.A)({ref:c},R),{},{onBeforeEnter:M}),{default:()=>!p||e.visible?(0,i.bo)((0,i.bF)(st,{target:E(),key:"popup",ref:l,monitorWindowResize:!0,disabled:I.value,align:o,onAlign:C},{default:()=>(0,i.bF)("div",{class:D,onMouseenter:v,onMouseleave:y,onMousedown:(0,b.D$)(x,["capture"]),[ct.A?"onTouchstartPassive":"onTouchstart"]:(0,b.D$)(w,["capture"]),style:T},[k])}),[[b.aG,m.value]]):null})}}}),dt=(0,i.pM)({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:A,setup(e,t){let{attrs:n,slots:a,expose:s}=t;const l=(0,o.IJ)(!1),c=(0,o.IJ)(!1),u=(0,o.IJ)(),d=(0,o.IJ)();return(0,i.wB)([()=>e.visible,()=>e.mobile],()=>{l.value=e.visible,e.visible&&e.mobile&&(c.value=!0)},{immediate:!0,flush:"post"}),s({forceAlign:()=>{var e;null===(e=u.value)||void 0===e||e.forceAlign()},getElement:()=>{var e;return null===(e=u.value)||void 0===e?void 0:e.getElement()}}),()=>{const t=(0,r.A)((0,r.A)((0,r.A)({},e),n),{visible:l.value}),o=c.value?(0,i.bF)(x,(0,g.A)((0,g.A)({},t),{},{mobile:e.mobile,ref:u}),{default:a.default}):(0,i.bF)(ut,(0,g.A)((0,g.A)({},t),{},{ref:u}),{default:a.default});return(0,i.bF)("div",{ref:d},[(0,i.bF)(w,t,null),o])}}});function ht(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function ft(e,t,n){const i=e[t]||{};return(0,r.A)((0,r.A)({},i),n)}function pt(e,t,n,r){const{points:i}=n,o=Object.keys(e);for(let a=0;a<o.length;a+=1){const n=o[a];if(ht(e[n].points,i,r))return`${t}-placement-${n}`}return""}var gt=n(49570),mt=n(40488),vt=n(34162);const At=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"];var bt=(0,i.pM)({compatConfig:{MODE:3},name:"Trigger",mixins:[gt.A],inheritAttrs:!1,props:u(),setup(e){const t=(0,i.EW)(()=>{const{popupPlacement:t,popupAlign:n,builtinPlacements:r}=e;return t&&r?ft(r,t,n):n}),n=(0,o.IJ)(null),r=e=>{n.value=e};return{vcTriggerContext:(0,i.WQ)("vcTriggerContext",{}),popupRef:n,setPopupRef:r,triggerRef:(0,o.IJ)(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const e=this.$props;let t;return t=void 0!==this.popupVisible?!!e.popupVisible:!!e.defaultPopupVisible,At.forEach(e=>{this[`fire${e}`]=t=>{this.fireEvents(e,t)}}),{prevPopupVisible:t,sPopupVisible:t,point:null}},watch:{popupVisible(e){void 0!==e&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created(){(0,i.Gt)("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),(0,vt.T)(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),h.A.cancel(this.attachId)},methods:{updatedCal(){const e=this.$props,t=this.$data;if(t.sPopupVisible){let t;this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextmenuToShow()||(t=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=(0,p.A)(t,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(t=t||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=(0,p.A)(t,"touchstart",this.onDocumentClick,!!ct.A&&{passive:!1})),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(t=t||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=(0,p.A)(t,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=(0,p.A)(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(e){const{mouseEnterDelay:t}=this.$props;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:e={}}=this;e.onPopupMouseenter&&e.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(e){var t;if(e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,d.A)(null===(t=this.popupRef)||void 0===t?void 0:t.getElement(),e.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(e)},onFocus(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur(e){(0,d.A)(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(e){if(this.fireEvents("onClick",e),this.focusTime){let e;if(this.preClickTime&&this.preTouchTime?e=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?e=this.preClickTime:this.preTouchTime&&(e=this.preTouchTime),Math.abs(e-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();const t=!this.$data.sPopupVisible;(this.isClickToHide()&&!t||t&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown(){const{vcTriggerContext:e={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(()=>{this.hasPopupMouseDown=!1},0),e.onPopupMouseDown&&e.onPopupMouseDown(...arguments)},onDocumentClick(e){if(this.$props.mask&&!this.$props.maskClosable)return;const t=e.target,n=this.getRootDomNode(),r=this.getPopupDomNode();(0,d.A)(n,t)&&!this.isContextMenuOnly()||(0,d.A)(r,t)||this.hasPopupMouseDown||this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var e;return(null===(e=this.popupRef)||void 0===e?void 0:e.getElement())||null},getRootDomNode(){var e,t,n,r;const{getTriggerDOMNode:i}=this.$props;if(i){const n="#comment"===(null===(t=null===(e=this.triggerRef)||void 0===e?void 0:e.$el)||void 0===t?void 0:t.nodeName)?null:(0,f.oK)(this.triggerRef);return(0,f.oK)(i(n))}try{const e="#comment"===(null===(r=null===(n=this.triggerRef)||void 0===n?void 0:n.$el)||void 0===r?void 0:r.nodeName)?null:(0,f.oK)(this.triggerRef);if(e)return e}catch(o){}return(0,f.oK)(this)},handleGetPopupClassFromAlign(e){const t=[],n=this.$props,{popupPlacement:r,builtinPlacements:i,prefixCls:o,alignPoint:a,getPopupClassNameFromAlign:s}=n;return r&&i&&t.push(pt(i,o,e,a)),s&&t.push(s(e)),t.join(" ")},getPopupAlign(){const e=this.$props,{popupPlacement:t,popupAlign:n,builtinPlacements:r}=e;return t&&r?ft(r,t,n):n},getComponent(){const e={};this.isMouseEnterToShow()&&(e.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(e.onMouseleave=this.onPopupMouseleave),e.onMousedown=this.onPopupMouseDown,e[ct.A?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:t,getRootDomNode:n,$attrs:o}=this,{prefixCls:a,destroyPopupOnHide:s,popupClassName:l,popupAnimation:u,popupTransitionName:d,popupStyle:h,mask:p,maskAnimation:g,maskTransitionName:m,zIndex:v,stretch:A,alignPoint:b,mobile:y,arrow:w,forceRender:_}=this.$props,{sPopupVisible:x,point:E}=this.$data,S=(0,r.A)((0,r.A)({prefixCls:a,arrow:w,destroyPopupOnHide:s,visible:x,point:b?E:null,align:this.align,animation:u,getClassNameFromAlign:t,stretch:A,getRootDomNode:n,mask:p,zIndex:v,transitionName:d,maskAnimation:g,maskTransitionName:m,class:l,style:h,onAlign:o.onPopupAlign||c},e),{ref:this.setPopupRef,mobile:y,forceRender:_});return(0,i.bF)(dt,S,{default:this.$slots.popup||(()=>(0,f.QQ)(this,"popup"))})},attachParent(e){h.A.cancel(this.attachId);const{getPopupContainer:t,getDocument:n}=this.$props,r=this.getRootDomNode();let i;t?(r||0===t.length)&&(i=t(r)):i=n(this.getRootDomNode()).body,i?i.appendChild(e):this.attachId=(0,h.A)(()=>{this.attachParent(e)})},getContainer(){const{$props:e}=this,{getDocument:t}=e,n=t(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(e,t){const{alignPoint:n,sPopupVisible:r,onPopupVisibleChange:i}=this;this.clearDelayTimer(),r!==e&&((0,f.cK)(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:r}),i&&i(e)),n&&t&&e&&this.setPoint(t)},setPoint(e){const{alignPoint:t}=this.$props;t&&e&&this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(e,t,n){const r=1e3*t;if(this.clearDelayTimer(),r){const t=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(e,t),this.clearDelayTimer()},r)}else this.setPopupVisible(e,n)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(e){let t=()=>{};const n=(0,f.kQ)(this);return this.childOriginEvents[e]&&n[e]?this[`fire${e}`]:(t=this.childOriginEvents[e]||n[e]||t,t)},isClickToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("click")||-1!==t.indexOf("click")},isContextMenuOnly(){const{action:e}=this.$props;return"contextmenu"===e||1===e.length&&"contextmenu"===e[0]},isContextmenuToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("contextmenu")||-1!==t.indexOf("contextmenu")},isClickToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("click")||-1!==t.indexOf("click")},isMouseEnterToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("hover")||-1!==t.indexOf("mouseenter")},isMouseLeaveToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("hover")||-1!==t.indexOf("mouseleave")},isFocusToShow(){const{action:e,showAction:t}=this.$props;return-1!==e.indexOf("focus")||-1!==t.indexOf("focus")},isBlurToHide(){const{action:e,hideAction:t}=this.$props;return-1!==e.indexOf("focus")||-1!==t.indexOf("blur")},forcePopupAlign(){var e;this.$data.sPopupVisible&&(null===(e=this.popupRef)||void 0===e||e.forceAlign())},fireEvents(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);const n=this.$props[e]||this.$attrs[e];n&&n(t)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:e}=this,t=(0,f.Gk)((0,f.$c)(this)),{alignPoint:n,getPopupContainer:o}=this.$props,a=t[0];this.childOriginEvents=(0,f.kQ)(a);const s={key:"trigger"};this.isContextmenuToShow()?s.onContextmenu=this.onContextmenu:s.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(s.onClick=this.onClick,s.onMousedown=this.onMousedown,s[ct.A?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(s.onClick=this.createTwoChains("onClick"),s.onMousedown=this.createTwoChains("onMousedown"),s[ct.A?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(s.onMouseenter=this.onMouseenter,n&&(s.onMousemove=this.onMouseMove)):s.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?s.onMouseleave=this.onMouseleave:s.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(s.onFocus=this.onFocus,s.onBlur=this.onBlur):(s.onFocus=this.createTwoChains("onFocus"),s.onBlur=e=>{!e||e.relatedTarget&&(0,d.A)(e.target,e.relatedTarget)||this.createTwoChains("onBlur")(e)});const l=(0,_.A)(a&&a.props&&a.props.class,e.class);l&&(s.class=l);const c=(0,qe.Ob)(a,(0,r.A)((0,r.A)({},s),{ref:"triggerRef"}),!0,!0),u=(0,i.bF)(mt.A,{key:"portal",getContainer:o&&(()=>o(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return(0,i.bF)(i.FK,null,[c,u])}}),yt=bt},60136:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="InfoCircleFilled",c.inheritAttrs=!1;var u=c},60168:function(e,t){"use strict";function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t.A=n},60547:function(e){function t(e){const t=e.UNDERSCORE_IDENT_RE,n=["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],r=["default","false","null","true"],i=["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],o={keyword:i,built_in:n,literal:r},a={variants:[{match:[/(class|interface)\s+/,t,/\s+(extends|implements)\s+/,t]},{match:[/class\s+/,t]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o};return{name:"X++",aliases:["x++"],keywords:o,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},a]}}e.exports=t},60594:function(){},60674:function(e,t,n){"use strict";var r=n(51137),i=n(56768),o=n(99078),a=n(93758),s=n(5432),l=n(35541);t.A=(e,t)=>{const n=(0,l.E)(),c=(0,a.p)(),u=(0,i.WQ)(o.zL,(0,r.A)((0,r.A)({},o.VG),{renderEmpty:e=>(0,i.h)(s.x,{componentName:e})})),d=(0,i.EW)(()=>u.getPrefixCls(e,t.prefixCls)),h=(0,i.EW)(()=>{var e,n;return null!==(e=t.direction)&&void 0!==e?e:null===(n=u.direction)||void 0===n?void 0:n.value}),f=(0,i.EW)(()=>{var e;return null!==(e=t.iconPrefixCls)&&void 0!==e?e:u.iconPrefixCls.value}),p=(0,i.EW)(()=>u.getPrefixCls()),g=(0,i.EW)(()=>{var e;return null===(e=u.autoInsertSpaceInButton)||void 0===e?void 0:e.value}),m=u.renderEmpty,v=u.space,A=u.pageHeader,b=u.form,y=(0,i.EW)(()=>{var e,n;return null!==(e=t.getTargetContainer)&&void 0!==e?e:null===(n=u.getTargetContainer)||void 0===n?void 0:n.value}),w=(0,i.EW)(()=>{var e,n,r;return null!==(n=null!==(e=t.getContainer)&&void 0!==e?e:t.getPopupContainer)&&void 0!==n?n:null===(r=u.getPopupContainer)||void 0===r?void 0:r.value}),_=(0,i.EW)(()=>{var e,n;return null!==(e=t.dropdownMatchSelectWidth)&&void 0!==e?e:null===(n=u.dropdownMatchSelectWidth)||void 0===n?void 0:n.value}),x=(0,i.EW)(()=>{var e;return(void 0===t.virtual?!1!==(null===(e=u.virtual)||void 0===e?void 0:e.value):!1!==t.virtual)&&!1!==_.value}),E=(0,i.EW)(()=>t.size||n.value),S=(0,i.EW)(()=>{var e,n,r;return null!==(e=t.autocomplete)&&void 0!==e?e:null===(r=null===(n=u.input)||void 0===n?void 0:n.value)||void 0===r?void 0:r.autocomplete}),C=(0,i.EW)(()=>{var e;return null!==(e=t.disabled)&&void 0!==e?e:c.value}),T=(0,i.EW)(()=>{var e;return null!==(e=t.csp)&&void 0!==e?e:u.csp}),k=(0,i.EW)(()=>{var e,n;return null!==(e=t.wave)&&void 0!==e?e:null===(n=u.wave)||void 0===n?void 0:n.value});return{configProvider:u,prefixCls:d,direction:h,size:E,getTargetContainer:y,getPopupContainer:w,space:v,pageHeader:A,form:b,autoInsertSpaceInButton:g,renderEmpty:m,virtual:x,dropdownMatchSelectWidth:_,rootPrefixCls:p,getPrefixCls:u.getPrefixCls,autocomplete:S,csp:T,iconPrefixCls:f,disabled:C,select:u.select,wave:k}}},60776:function(e,t,n){"use strict";n.d(t,{A:function(){return g}});n(18111),n(61701);var r=n(41034),i=n(56768),o=n(81425),a=n(44832),s=n(44678),l=n(60674),c=n(90112),u=n(9519);const d=e=>{const{componentCls:t,commentBg:n,commentPaddingBase:r,commentNestIndent:i,commentFontSizeBase:o,commentFontSizeSm:a,commentAuthorNameColor:s,commentAuthorTimeColor:l,commentActionColor:c,commentActionHoverColor:u,commentActionsMarginBottom:d,commentActionsMarginTop:h,commentContentDetailPMarginBottom:f}=e;return{[t]:{position:"relative",backgroundColor:n,[`${t}-inner`]:{display:"flex",padding:r},[`${t}-avatar`]:{position:"relative",flexShrink:0,marginRight:e.marginSM,cursor:"pointer",["img"]:{width:"32px",height:"32px",borderRadius:"50%"}},[`${t}-content`]:{position:"relative",flex:"1 1 auto",minWidth:"1px",fontSize:o,wordWrap:"break-word",["&-author"]:{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginBottom:e.marginXXS,fontSize:o,["& > a,& > span"]:{paddingRight:e.paddingXS,fontSize:a,lineHeight:"18px"},["&-name"]:{color:s,fontSize:o,transition:`color ${e.motionDurationSlow}`,["> *"]:{color:s,["&:hover"]:{color:s}}},["&-time"]:{color:l,whiteSpace:"nowrap",cursor:"auto"}},["&-detail p"]:{marginBottom:f,whiteSpace:"pre-wrap"}},[`${t}-actions`]:{marginTop:h,marginBottom:d,paddingLeft:0,["> li"]:{display:"inline-block",color:c,["> span"]:{marginRight:"10px",color:c,fontSize:a,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,userSelect:"none",["&:hover"]:{color:u}}}},[`${t}-nested`]:{marginLeft:i},"&-rtl":{direction:"rtl"}}}};var h=(0,c.A)("Comment",e=>{const t=(0,u.h1)(e,{commentBg:"inherit",commentPaddingBase:`${e.paddingMD}px 0`,commentNestIndent:"44px",commentFontSizeBase:e.fontSize,commentFontSizeSm:e.fontSizeSM,commentAuthorNameColor:e.colorTextTertiary,commentAuthorTimeColor:e.colorTextPlaceholder,commentActionColor:e.colorTextTertiary,commentActionHoverColor:e.colorTextSecondary,commentActionsMarginBottom:"inherit",commentActionsMarginTop:e.marginSM,commentContentDetailPMarginBottom:"inherit"});return[d(t)]});const f=()=>({actions:Array,author:o.A.any,avatar:o.A.any,content:o.A.any,prefixCls:String,datetime:o.A.any}),p=(0,i.pM)({compatConfig:{MODE:3},name:"AComment",inheritAttrs:!1,props:f(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:s,direction:c}=(0,l.A)("comment",e),[u,d]=h(s),f=(e,t)=>(0,i.bF)("div",{class:`${e}-nested`},[t]),p=e=>{if(!e||!e.length)return null;const t=e.map((e,t)=>(0,i.bF)("li",{key:`action-${t}`},[e]));return t};return()=>{var t,l,h,g,m,v,A,b,y,w,_;const x=s.value,E=null!==(t=e.actions)&&void 0!==t?t:null===(l=n.actions)||void 0===l?void 0:l.call(n),S=null!==(h=e.author)&&void 0!==h?h:null===(g=n.author)||void 0===g?void 0:g.call(n),C=null!==(m=e.avatar)&&void 0!==m?m:null===(v=n.avatar)||void 0===v?void 0:v.call(n),T=null!==(A=e.content)&&void 0!==A?A:null===(b=n.content)||void 0===b?void 0:b.call(n),k=null!==(y=e.datetime)&&void 0!==y?y:null===(w=n.datetime)||void 0===w?void 0:w.call(n),O=(0,i.bF)("div",{class:`${x}-avatar`},["string"===typeof C?(0,i.bF)("img",{src:C,alt:"comment-avatar"},null):C]),M=E?(0,i.bF)("ul",{class:`${x}-actions`},[p(Array.isArray(E)?E:[E])]):null,I=(0,i.bF)("div",{class:`${x}-content-author`},[S&&(0,i.bF)("span",{class:`${x}-content-author-name`},[S]),k&&(0,i.bF)("span",{class:`${x}-content-author-time`},[k])]),D=(0,i.bF)("div",{class:`${x}-content`},[I,(0,i.bF)("div",{class:`${x}-content-detail`},[T]),M]),N=(0,i.bF)("div",{class:`${x}-inner`},[O,D]),R=(0,a.MI)(null===(_=n.default)||void 0===_?void 0:_.call(n));return u((0,i.bF)("div",(0,r.A)((0,r.A)({},o),{},{class:[x,{[`${x}-rtl`]:"rtl"===c.value},o.class,d.value]}),[N,R&&R.length?f(x,R):null]))}}});var g=(0,s.GU)(p)},60782:function(e,t,n){"use strict";n.d(t,{y$:function(){return te},PY:function(){return oe},aH:function(){return ie},Pj:function(){return v}});n(44114),n(18111),n(22489),n(7588),n(61701),n(18237);var r=n(56768),i=n(90144);function o(){return a().__VUE_DEVTOOLS_GLOBAL_HOOK__}function a(){return"undefined"!==typeof navigator&&"undefined"!==typeof window?window:"undefined"!==typeof globalThis?globalThis:{}}const s="function"===typeof Proxy,l="devtools-plugin:setup",c="plugin:settings:set";let u,d;function h(){var e;return void 0!==u||("undefined"!==typeof window&&window.performance?(u=!0,d=window.performance):"undefined"!==typeof globalThis&&(null===(e=globalThis.perf_hooks)||void 0===e?void 0:e.performance)?(u=!0,d=globalThis.perf_hooks.performance):u=!1),u}function f(){return h()?d.now():Date.now()}class p{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const a in e.settings){const t=e.settings[a];n[a]=t.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},n);try{const e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(i,t)}catch(o){}this.fallbacks={getSettings(){return i},setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(o){}i=e},now(){return f()}},t&&t.on(c,(e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)}),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise(n=>{this.targetQueue.push({method:t,args:e,resolve:n})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function g(e,t){const n=e,r=a(),i=o(),c=s&&n.enableEarlyProxy;if(!i||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&c){const e=c?new p(n,i):null,o=r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[];o.push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else i.emit(l,e,t)}
/*!
 * vuex v4.1.0
 * (c) 2022 Evan You
 * @license MIT
 */
var m="store";function v(e){return void 0===e&&(e=null),(0,r.WQ)(null!==e?e:m)}function A(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function b(e){return null!==e&&"object"===typeof e}function y(e){return e&&"function"===typeof e.then}function w(e,t){return function(){return e(t)}}function _(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function x(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;S(e,n,[],e._modules.root,!0),E(e,n,t)}function E(e,t,n){var o=e._state,a=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var s=e._wrappedGetters,l={},c={},u=(0,i.uY)(!0);u.run(function(){A(s,function(t,n){l[n]=w(t,e),c[n]=(0,r.EW)(function(){return l[n]()}),Object.defineProperty(e.getters,n,{get:function(){return c[n].value},enumerable:!0})})}),e._state=(0,i.Kh)({data:t}),e._scope=u,e.strict&&I(e),o&&n&&e._withCommit(function(){o.data=null}),a&&a.stop()}function S(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=D(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){s[l]=r.state})}var c=r.context=C(e,a,n);r.forEachMutation(function(t,n){var r=a+n;k(e,r,t,c)}),r.forEachAction(function(t,n){var r=t.root?n:a+n,i=t.handler||t;O(e,r,i,c)}),r.forEachGetter(function(t,n){var r=a+n;M(e,r,t,c)}),r.forEachChild(function(r,o){S(e,t,n.concat(o),r,i)})}function C(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=N(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:r?e.commit:function(n,r,i){var o=N(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return T(e,t)}},state:{get:function(){return D(e.state,n)}}}),i}function T(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function k(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(t){n.call(e,r.state,t)})}function O(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return y(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch(function(t){throw e._devtoolHook.emit("vuex:error",t),t}):i})}function M(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function I(e){(0,r.wB)(function(){return e._state.data},function(){0},{deep:!0,flush:"sync"})}function D(e,t){return t.reduce(function(e,t){return e[t]},e)}function N(e,t,n){return b(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var R="vuex bindings",L="vuex:mutations",B="vuex:actions",P="vuex",F=0;function $(e,t){g({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[R]},function(n){n.addTimelineLayer({id:L,label:"Vuex Mutations",color:j}),n.addTimelineLayer({id:B,label:"Vuex Actions",color:j}),n.addInspector({id:P,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(n){if(n.app===e&&n.inspectorId===P)if(n.filter){var r=[];G(r,t._modules.root,n.filter,""),n.rootNodes=r}else n.rootNodes=[W(t._modules.root,"")]}),n.on.getInspectorState(function(n){if(n.app===e&&n.inspectorId===P){var r=n.nodeId;T(t,r),n.state=V(Y(t._modules,r),"root"===r?t.getters:t._makeLocalGettersCache,r)}}),n.on.editInspectorState(function(n){if(n.app===e&&n.inspectorId===P){var r=n.nodeId,i=n.path;"root"!==r&&(i=r.split("/").filter(Boolean).concat(i)),t._withCommit(function(){n.set(t._state.data,i,n.state.value)})}}),t.subscribe(function(e,t){var r={};e.payload&&(r.payload=e.payload),r.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(P),n.sendInspectorState(P),n.addTimelineEvent({layerId:L,event:{time:Date.now(),title:e.type,data:r}})}),t.subscribeAction({before:function(e,t){var r={};e.payload&&(r.payload=e.payload),e._id=F++,e._time=Date.now(),r.state=t,n.addTimelineEvent({layerId:B,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:r}})},after:function(e,t){var r={},i=Date.now()-e._time;r.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},e.payload&&(r.payload=e.payload),r.state=t,n.addTimelineEvent({layerId:B,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:r}})}})})}var j=8702998,H=6710886,U=16777215,Q={label:"namespaced",textColor:U,backgroundColor:H};function z(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function W(e,t){return{id:t||"root",label:z(t),tags:e.namespaced?[Q]:[],children:Object.keys(e._children).map(function(n){return W(e._children[n],t+n+"/")})}}function G(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[Q]:[]}),Object.keys(t._children).forEach(function(i){G(e,t._children[i],n,r+i+"/")})}function V(e,t,n){t="root"===n?t:t[n];var r=Object.keys(t),i={state:Object.keys(e.state).map(function(t){return{key:t,editable:!0,value:e.state[t]}})};if(r.length){var o=K(t);i.getters=Object.keys(o).map(function(e){return{key:e.endsWith("/")?z(e):e,editable:!1,value:q(function(){return o[e]})}})}return i}function K(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var i=t,o=r.pop();r.forEach(function(e){i[e]||(i[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),i=i[e]._custom.value}),i[o]=q(function(){return e[n]})}else t[n]=q(function(){return e[n]})}),t}function Y(e,t){var n=t.split("/").filter(function(e){return e});return n.reduce(function(e,r,i){var o=e[r];if(!o)throw new Error('Missing module "'+r+'" for path "'+t+'".');return i===n.length-1?o:o._children},"root"===t?e:e.root._children)}function q(e){try{return e()}catch(t){return t}}var X=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},J={namespaced:{configurable:!0}};J.namespaced.get=function(){return!!this._rawModule.namespaced},X.prototype.addChild=function(e,t){this._children[e]=t},X.prototype.removeChild=function(e){delete this._children[e]},X.prototype.getChild=function(e){return this._children[e]},X.prototype.hasChild=function(e){return e in this._children},X.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},X.prototype.forEachChild=function(e){A(this._children,e)},X.prototype.forEachGetter=function(e){this._rawModule.getters&&A(this._rawModule.getters,e)},X.prototype.forEachAction=function(e){this._rawModule.actions&&A(this._rawModule.actions,e)},X.prototype.forEachMutation=function(e){this._rawModule.mutations&&A(this._rawModule.mutations,e)},Object.defineProperties(X.prototype,J);var Z=function(e){this.register([],e,!1)};function ee(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;ee(e.concat(r),t.getChild(r),n.modules[r])}}Z.prototype.get=function(e){return e.reduce(function(e,t){return e.getChild(t)},this.root)},Z.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")},"")},Z.prototype.update=function(e){ee([],this.root,e)},Z.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new X(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&A(t.modules,function(t,i){r.register(e.concat(i),t,n)})},Z.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},Z.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};function te(e){return new ne(e)}var ne=function(e){var t=this;void 0===e&&(e={});var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1);var i=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Z(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=i;var o=this,a=this,s=a.dispatch,l=a.commit;this.dispatch=function(e,t){return s.call(o,e,t)},this.commit=function(e,t,n){return l.call(o,e,t,n)},this.strict=r;var c=this._modules.root.state;S(this,c,[],this._modules.root),E(this,c),n.forEach(function(e){return e(t)})},re={state:{configurable:!0}};ne.prototype.install=function(e,t){e.provide(t||m,this),e.config.globalProperties.$store=this;var n=void 0!==this._devtools&&this._devtools;n&&$(e,this)},re.state.get=function(){return this._state.data},re.state.set=function(e){0},ne.prototype.commit=function(e,t,n){var r=this,i=N(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit(function(){l.forEach(function(e){e(a)})}),this._subscribers.slice().forEach(function(e){return e(s,r.state)}))},ne.prototype.dispatch=function(e,t){var n=this,r=N(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter(function(e){return e.before}).forEach(function(e){return e.before(a,n.state)})}catch(c){0}var l=s.length>1?Promise.all(s.map(function(e){return e(o)})):s[0](o);return new Promise(function(e,t){l.then(function(t){try{n._actionSubscribers.filter(function(e){return e.after}).forEach(function(e){return e.after(a,n.state)})}catch(c){0}e(t)},function(e){try{n._actionSubscribers.filter(function(e){return e.error}).forEach(function(t){return t.error(a,n.state,e)})}catch(c){0}t(e)})})}},ne.prototype.subscribe=function(e,t){return _(e,this._subscribers,t)},ne.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return _(n,this._actionSubscribers,t)},ne.prototype.watch=function(e,t,n){var i=this;return(0,r.wB)(function(){return e(i.state,i.getters)},t,Object.assign({},n))},ne.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._state.data=e})},ne.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),S(this,this.state,e,this._modules.get(e),n.preserveState),E(this,this.state)},ne.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var n=D(t.state,e.slice(0,-1));delete n[e[e.length-1]]}),x(this)},ne.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},ne.prototype.hotUpdate=function(e){this._modules.update(e),x(this,!0)},ne.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(ne.prototype,re);var ie=le(function(e,t){var n={};return ae(t).forEach(function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=ce(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0}),n}),oe=le(function(e,t){var n={};return ae(t).forEach(function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=ce(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}}),n});le(function(e,t){var n={};return ae(t).forEach(function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||ce(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0}),n}),le(function(e,t){var n={};return ae(t).forEach(function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=ce(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}}),n});function ae(e){return se(e)?Array.isArray(e)?e.map(function(e){return{key:e,val:e}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function se(e){return Array.isArray(e)||b(e)}function le(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function ce(e,t,n){var r=e._modulesNamespaceMap[n];return r}},60946:function(e,t,n){"use strict";n.d(t,{A:function(){return U}});var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(49974),l=n(87546),c=n(81425),u=n(82978),d=n(44678),h=n(44832);const f=e=>void 0!==e&&null!==e&&(!Array.isArray(e)||(0,h.Gk)(e).length);function p(e){return f(e.addonBefore)||f(e.addonAfter)}var g=n(56405),m=n(98215);const v=["text","input"];var A=(0,o.pM)({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:c.A.oneOf((0,d.PV)("text","input")),value:(0,d.ds)(),defaultValue:(0,d.ds)(),allowClear:{type:Boolean,default:void 0},element:(0,d.ds)(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:(0,d.ds)(),prefix:(0,d.ds)(),addonBefore:(0,d.ds)(),addonAfter:(0,d.ds)(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,t){let{slots:n,attrs:r}=t;const i=g.$W.useInject(),a=t=>{const{value:r,disabled:i,readonly:a,handleReset:c,suffix:u=n.suffix}=e,d=!i&&!a&&r,h=`${t}-clear-icon`;return(0,o.bF)(l.A,{onClick:c,onMousedown:e=>e.preventDefault(),class:(0,s.A)({[`${h}-hidden`]:!d,[`${h}-has-suffix`]:!!u},h),role:"button"},null)},c=(t,l)=>{const{value:c,allowClear:d,direction:h,bordered:f,hidden:g,status:v,addonAfter:A=n.addonAfter,addonBefore:b=n.addonBefore,hashId:y}=e,{status:w,hasFeedback:_}=i;if(!d)return(0,u.Ob)(l,{value:c,disabled:e.disabled});const x=(0,s.A)(`${t}-affix-wrapper`,`${t}-affix-wrapper-textarea-with-clear-btn`,(0,m.L)(`${t}-affix-wrapper`,(0,m.v)(w,v),_),{[`${t}-affix-wrapper-rtl`]:"rtl"===h,[`${t}-affix-wrapper-borderless`]:!f,[`${r.class}`]:!p({addonAfter:A,addonBefore:b})&&r.class},y);return(0,o.bF)("span",{class:x,style:r.style,hidden:g},[(0,u.Ob)(l,{style:null,value:c,disabled:e.disabled}),a(t)])};return()=>{var t;const{prefixCls:r,inputType:i,element:o=(null===(t=n.element)||void 0===t?void 0:t.call(n))}=e;return i===v[0]?c(r,o):null}}}),b=(n(44114),n(95572)),y=n(32545),w=n(98684),_=n(55107),x=n(58491);const E="\n  min-height:0 !important;\n  max-height:none !important;\n  height:0 !important;\n  visibility:hidden !important;\n  overflow:hidden !important;\n  position:absolute !important;\n  z-index:-1000 !important;\n  top:0 !important;\n  right:0 !important;\n  pointer-events: none !important;\n",S=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],C={};let T;function k(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&C[n])return C[n];const r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=S.map(e=>`${e}:${r.getPropertyValue(e)}`).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:i};return t&&n&&(C[n]=l),l}function O(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;T||(T=document.createElement("textarea"),T.setAttribute("tab-index","-1"),T.setAttribute("aria-hidden","true"),document.body.appendChild(T)),e.getAttribute("wrap")?T.setAttribute("wrap",e.getAttribute("wrap")):T.removeAttribute("wrap");const{paddingSize:i,borderSize:o,boxSizing:a,sizingStyle:s}=k(e,t);let l,c,u;T.setAttribute("style",`${s};${E}`),T.value=e.value||e.placeholder||"";let d=T.scrollHeight;if("border-box"===a?d+=o:"content-box"===a&&(d-=i),null!==n||null!==r){T.value=" ";const e=T.scrollHeight-i;null!==n&&(l=e*n,"border-box"===a&&(l=l+i+o),d=Math.max(l,d)),null!==r&&(c=e*r,"border-box"===a&&(c=c+i+o),u=d>c?"":"hidden",d=Math.min(c,d))}const h={height:`${d}px`,overflowY:u,resize:"none"};return l&&(h.minHeight=`${l}px`),c&&(h.maxHeight=`${c}px`),h}var M=n(81269);const I=0,D=1,N=2,R=(0,o.pM)({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:(0,x.rc)(),setup(e,t){let n,l,{attrs:c,emit:u,expose:d}=t;const h=(0,a.KR)(),f=(0,a.KR)({}),p=(0,a.KR)(N);(0,o.xo)(()=>{y.A.cancel(n),y.A.cancel(l)});const g=()=>{try{if(h.value&&document.activeElement===h.value.input){const e=h.value.getSelectionStart(),t=h.value.getSelectionEnd(),n=h.value.getScrollTop();h.value.setSelectionRange(e,t),h.value.setScrollTop(n)}}catch(e){}},m=(0,a.KR)(),v=(0,a.KR)();(0,o.nT)(()=>{const t=e.autoSize||e.autosize;t?(m.value=t.minRows,v.value=t.maxRows):(m.value=void 0,v.value=void 0)});const A=(0,o.EW)(()=>!(!e.autoSize&&!e.autosize)),x=()=>{p.value=I};(0,o.wB)([()=>e.value,m,v,A],()=>{A.value&&x()},{immediate:!0});const E=(0,a.KR)();(0,o.wB)([p,h],()=>{if(h.value)if(p.value===I)p.value=D;else if(p.value===D){const e=O(h.value.input,!1,m.value,v.value);p.value=N,E.value=e}else g()},{immediate:!0,flush:"post"});const S=(0,o.nI)(),C=(0,a.KR)(),T=()=>{y.A.cancel(C.value)},k=e=>{p.value===N&&(u("resize",e),A.value&&(T(),C.value=(0,y.A)(()=>{x()})))};(0,o.xo)(()=>{T()});const R=()=>{x()};d({resizeTextarea:R,textArea:(0,o.EW)(()=>{var e;return null===(e=h.value)||void 0===e?void 0:e.input}),instance:S}),(0,w.Ay)(void 0===e.autosize,"Input.TextArea","autosize is deprecated, please use autoSize instead.");const L=()=>{const{prefixCls:t,disabled:n}=e,a=(0,_.A)(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","maxlength","valueModifiers"]),l=(0,s.A)(t,c.class,{[`${t}-disabled`]:n}),u=A.value?E.value:null,d=[c.style,f.value,u],g=(0,i.A)((0,i.A)((0,i.A)({},a),c),{style:d,class:l});return p.value!==I&&p.value!==D||d.push({overflowX:"hidden",overflowY:"hidden"}),g.autofocus||delete g.autofocus,0===g.rows&&delete g.rows,(0,o.bF)(b.A,{onResize:k,disabled:!A.value},{default:()=>[(0,o.bF)(M.A,(0,r.A)((0,r.A)({},g),{},{ref:h,tag:"textarea"}),null)]})};return()=>L()}});var L=R,B=n(55573),P=n(60674),F=n(64675),$=n(93758);function j(e,t){return[...e||""].slice(0,t).join("")}function H(e,t,n,r){let i=n;return e?i=j(n,r):[...t||""].length<n.length&&[...n||""].length>r&&(i=t),i}var U=(0,o.pM)({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:(0,x.rc)(),setup(e,t){let{attrs:n,expose:l,emit:c}=t;var u;const d=(0,g.db)(),h=g.$W.useInject(),f=(0,o.EW)(()=>(0,m.v)(h.status,e.status)),p=(0,a.IJ)(null!==(u=e.value)&&void 0!==u?u:e.defaultValue),v=(0,a.IJ)(),b=(0,a.IJ)(""),{prefixCls:y,size:w,direction:x}=(0,P.A)("input",e),[E,S]=(0,F.Ay)(y),C=(0,$.p)(),T=(0,o.EW)(()=>""===e.showCount||e.showCount||!1),k=(0,o.EW)(()=>Number(e.maxlength)>0),O=(0,a.IJ)(!1),M=(0,a.IJ)(),I=(0,a.IJ)(0),D=e=>{O.value=!0,M.value=b.value,I.value=e.currentTarget.selectionStart,c("compositionstart",e)},N=t=>{var n;O.value=!1;let r=t.currentTarget.value;if(k.value){const t=I.value>=e.maxlength+1||I.value===(null===(n=M.value)||void 0===n?void 0:n.length);r=H(t,M.value,r,e.maxlength)}r!==b.value&&(z(r),(0,B.gS)(t.currentTarget,t,V,r)),c("compositionend",t)},R=(0,o.nI)();(0,o.wB)(()=>e.value,()=>{var t;R.vnode.props,p.value=null!==(t=e.value)&&void 0!==t?t:""});const U=e=>{var t;(0,B.F4)(null===(t=v.value)||void 0===t?void 0:t.textArea,e)},Q=()=>{var e,t;null===(t=null===(e=v.value)||void 0===e?void 0:e.textArea)||void 0===t||t.blur()},z=(t,n)=>{p.value!==t&&(void 0===e.value?p.value=t:(0,o.dY)(()=>{var e,t,n;v.value.textArea.value!==b.value&&(null===(n=null===(e=v.value)||void 0===e?void 0:(t=e.instance).update)||void 0===n||n.call(t))}),(0,o.dY)(()=>{n&&n()}))},W=e=>{13===e.keyCode&&c("pressEnter",e),c("keydown",e)},G=t=>{const{onBlur:n}=e;null===n||void 0===n||n(t),d.onFieldBlur()},V=e=>{c("update:value",e.target.value),c("change",e),c("input",e),d.onFieldChange()},K=e=>{(0,B.gS)(v.value.textArea,e,V),z("",()=>{U()})},Y=t=>{let n=t.target.value;if(p.value!==n){if(k.value){const r=t.target,i=r.selectionStart>=e.maxlength+1||r.selectionStart===n.length||!r.selectionStart;n=H(i,b.value,n,e.maxlength)}(0,B.gS)(t.currentTarget,t,V,n),z(n)}},q=()=>{var t,a;const{class:s}=n,{bordered:l=!0}=e,c=(0,i.A)((0,i.A)((0,i.A)({},(0,_.A)(e,["allowClear"])),n),{class:[{[`${y.value}-borderless`]:!l,[`${s}`]:s&&!T.value,[`${y.value}-sm`]:"small"===w.value,[`${y.value}-lg`]:"large"===w.value},(0,m.L)(y.value,f.value),S.value],disabled:C.value,showCount:null,prefixCls:y.value,onInput:Y,onChange:Y,onBlur:G,onKeydown:W,onCompositionstart:D,onCompositionend:N});return(null===(t=e.valueModifiers)||void 0===t?void 0:t.lazy)&&delete c.onInput,(0,o.bF)(L,(0,r.A)((0,r.A)({},c),{},{id:null!==(a=null===c||void 0===c?void 0:c.id)&&void 0!==a?a:d.id.value,ref:v,maxlength:e.maxlength,lazy:e.lazy}),null)};return l({focus:U,blur:Q,resizableTextArea:v}),(0,o.nT)(()=>{let t=(0,B.pt)(p.value);O.value||!k.value||null!==e.value&&void 0!==e.value||(t=j(t,e.maxlength)),b.value=t}),()=>{var t;const{maxlength:a,bordered:l=!0,hidden:c}=e,{style:u,class:d}=n,f=(0,i.A)((0,i.A)((0,i.A)({},e),n),{prefixCls:y.value,inputType:"text",handleReset:K,direction:x.value,bordered:l,style:T.value?void 0:u,hashId:S.value,disabled:null!==(t=e.disabled)&&void 0!==t?t:C.value});let p=(0,o.bF)(A,(0,r.A)((0,r.A)({},f),{},{value:b.value,status:e.status}),{element:q});if(T.value||h.hasFeedback){const e=[...b.value].length;let t="";t="object"===typeof T.value?T.value.formatter({value:b.value,count:e,maxlength:a}):`${e}${k.value?` / ${a}`:""}`,p=(0,o.bF)("div",{hidden:c,class:(0,s.A)(`${y.value}-textarea`,{[`${y.value}-textarea-rtl`]:"rtl"===x.value,[`${y.value}-textarea-show-count`]:T.value,[`${y.value}-textarea-in-form-item`]:h.isFormItemInput},`${y.value}-textarea-show-count`,d,S.value),style:u,"data-count":"object"!==typeof t?t:void 0},[p,h.hasFeedback&&(0,o.bF)("span",{class:`${y.value}-textarea-suffix`},[h.feedbackIcon])])}return E(p)}}})},60956:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]},name:"star",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="StarOutlined",c.inheritAttrs=!1;var u=c},61088:function(e,t,n){"use strict";n.d(t,{EC:function(){return c},Qy:function(){return s}});var r=n(51137),i=n(81425),o=n(23402),a=n(44678);const s=()=>({arrow:(0,a.tK)([Boolean,Object]),trigger:{type:[Array,String]},menu:(0,a.ge)(),overlay:i.A.any,visible:(0,a.HE)(),open:(0,a.HE)(),disabled:(0,a.HE)(),danger:(0,a.HE)(),autofocus:(0,a.HE)(),align:(0,a.ge)(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:(0,a.ge)(),forceRender:(0,a.HE)(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:(0,a.HE)(),destroyPopupOnHide:(0,a.HE)(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),l=(0,o.Ay)(),c=()=>(0,r.A)((0,r.A)({},s()),{type:l.type,size:String,htmlType:l.htmlType,href:String,disabled:(0,a.HE)(),prefixCls:String,icon:i.A.any,title:String,loading:l.loading,onClick:(0,a.$q)()})},61206:function(e,t,n){"use strict";n.d(t,{Dq:function(){return h},Ay:function(){return a},Xo:function(){return d},nF:function(){return u}});n(44114),n(18111),n(7588),n(61701);var r=n(42529),i=n(69566),o=function(){function e(t){(0,r.xs)(this,e),this.bufferedList=t}return(0,r.j6)(e,[{key:"start",value:function(e){return this.bufferedList[e].start}},{key:"end",value:function(e){return this.bufferedList[e].end}},{key:"length",get:function(){return this.bufferedList.length}}]),e}(),a={};function s(e,t){for(var n=0,r=t.length;n<r;n++)if(e.indexOf(t[n])>-1)return!0;return!1}function l(e){var t=(0,r.uk)(e);return null!==e&&("object"===t||"function"===t)}function c(e,t,n){var r,i,o,a,s,c,u=0,d=!1,h=!1,f=!0,p=!t&&0!==t&&"function"===typeof window.requestAnimationFrame;if("function"!==typeof e)throw new TypeError("Expected a function");function g(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n),a}function m(e,t){return p?(window.cancelAnimationFrame(s),window.requestAnimationFrame(e)):setTimeout(e,t)}function v(e){if(p)return window.cancelAnimationFrame(e);clearTimeout(e)}function A(e){return u=e,s=m(w,t),d?g(e):a}function b(e){var n=e-c,r=e-u,i=t-n;return h?Math.min(i,o-r):i}function y(e){var n=e-c,r=e-u;return void 0===c||n>=t||n<0||h&&r>=o}function w(){var e=Date.now();if(y(e))return _(e);s=m(w,b(e))}function _(e){return s=void 0,f&&r?g(e):(r=i=void 0,a)}function x(){void 0!==s&&v(s),u=0,r=c=i=s=void 0}function E(){return void 0===s?a:_(Date.now())}function S(){return void 0!==s}function C(){for(var e=Date.now(),n=y(e),o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];if(r=l,i=this,c=e,n){if(void 0===s)return A(c);if(h)return s=m(w,t),g(c)}return void 0===s&&(s=m(w,t)),a}return t=+t||0,l(n)&&(d=!!n.leading,h="maxWait"in n,o=h?Math.max(+n.maxWait||0,t):o,f="trailing"in n?!!n.trailing:f),C.cancel=x,C.flush=E,C.pending=S,C}function u(e,t,n){var r=!0,i=!0;if("function"!==typeof e)throw new TypeError("Expected a function");return l(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),c(e,t,{leading:r,trailing:i,maxWait:t})}function d(){var e=(document.documentElement.getAttribute("lang")||navigator.language||"zh-cn").toLocaleLowerCase();return"zh-cn"===e&&(e="zh"),e}function h(e,t,n){if(e){var r=e.getAttribute(n);return!(!r||r!==t||"VIDEO"!==e.tagName&&"AUDIO"!==e.tagName)}}a.createDom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=document.createElement(e);return i.className=r,i.innerHTML=t,Object.keys(n).forEach(function(t){var r=t,o=n[t];"video"===e||"audio"===e||"live-video"===e?o&&i.setAttribute(r,o):i.setAttribute(r,o)}),i},a.createDomFromHtml=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";try{var r=document.createElement("div");r.innerHTML=e;var o=r.children;return r=null,o.length>0?(o=o[0],n&&a.addClass(o,n),t&&Object.keys(t).forEach(function(e){o.setAttribute(e,t[e])}),o):null}catch(s){return i.A.logError("util.createDomFromHtml",s),null}},a.hasClass=function(e,t){if(!e||!t)return!1;try{return Array.prototype.some.call(e.classList,function(e){return e===t})}catch(i){var n=e.className&&"object"===(0,r.uk)(e.className)?e.getAttribute("class"):e.className;return n&&!!n.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}},a.addClass=function(e,t){if(e&&t)try{t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(t){t&&e.classList.add(t)})}catch(n){a.hasClass(e,t)||(e.className&&"object"===(0,r.uk)(e.className)?e.setAttribute("class",e.getAttribute("class")+" "+t):e.className+=" "+t)}},a.removeClass=function(e,t){if(e&&t)try{t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(t){t&&e.classList.remove(t)})}catch(n){a.hasClass(e,t)&&t.split(/\s+/g).forEach(function(t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className&&"object"===(0,r.uk)(e.className)?e.setAttribute("class",e.getAttribute("class").replace(n," ")):e.className=e.className.replace(n," ")})}},a.toggleClass=function(e,t){e&&t.split(/\s+/g).forEach(function(t){a.hasClass(e,t)?a.removeClass(e,t):a.addClass(e,t)})},a.classNames=function(){for(var e=arguments,t=[],n=function(n){"String"===a.typeOf(e[n])?t.push(e[n]):"Object"===a.typeOf(e[n])&&Object.keys(e[n]).map(function(r){e[n][r]&&t.push(r)})},r=0;r<arguments.length;r++)n(r);return t.join(" ")},a.findDom=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,n=arguments.length>1?arguments[1]:void 0;try{e=t.querySelector(n)}catch(r){i.A.logError("util.findDom",r),0===n.indexOf("#")&&(e=t.getElementById(n.slice(1)))}return e},a.getCss=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,!1)[t]},a.padStart=function(e,t,n){var r=String(n),i=t|0,o=Math.ceil(i/r.length),a=[],s=String(e);while(o--)a.push(r);return a.join("").substring(0,i-s.length)+s},a.format=function(e){if(window.isNaN(e))return"";e=Math.round(e);var t=a.padStart(Math.floor(e/3600),2,0),n=a.padStart(Math.floor((e-3600*t)/60),2,0),r=a.padStart(Math.floor(e-3600*t-60*n),2,0);return("00"===t?[n,r]:[t,n,r]).join(":")},a.event=function(e){if(e.touches){var t=e.touches[0]||e.changedTouches[0];e.clientX=t.clientX||0,e.clientY=t.clientY||0,e.offsetX=t.pageX-t.target.offsetLeft,e.offsetY=t.pageY-t.target.offsetTop}e._target=e.target||e.srcElement},a.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},a.deepCopy=function(e,t){if("Object"===a.typeOf(t)&&"Object"===a.typeOf(e))return Object.keys(t).forEach(function(n){"Object"!==a.typeOf(t[n])||t[n]instanceof Node?"Array"===a.typeOf(t[n])?e[n]="Array"===a.typeOf(e[n])?e[n].concat(t[n]):t[n]:e[n]=t[n]:void 0===e[n]||void 0===e[n]?e[n]=t[n]:a.deepCopy(e[n],t[n])}),e},a.deepMerge=function(e,t){return Object.keys(t).map(function(n){var i;"Array"===a.typeOf(t[n])&&"Array"===a.typeOf(e[n])?"Array"===a.typeOf(e[n])&&(i=e[n]).push.apply(i,(0,r.Og)(t[n])):a.typeOf(e[n])!==a.typeOf(t[n])||null===e[n]||"Object"!==a.typeOf(e[n])||t[n]instanceof window.Node?null!==t[n]&&(e[n]=t[n]):a.deepMerge(e[n],t[n])}),e},a.getBgImage=function(e){var t=(e.currentStyle||window.getComputedStyle(e,null)).backgroundImage;if(!t||"none"===t)return"";var n=document.createElement("a");return n.href=t.replace(/url\("|"\)/g,""),n.href},a.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return Array.prototype.forEach.call(e.attributes,function(e){t.setAttribute(e.name,e.value)}),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},a.setInterval=function(e,t,n,r){e._interval[t]||(e._interval[t]=window.setInterval(n.bind(e),r))},a.clearInterval=function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},a.setTimeout=function(e,t,n){e._timers||(e._timers=[]);var r=setTimeout(function(){t(),a.clearTimeout(e,r)},n);return e._timers.push(r),r},a.clearTimeout=function(e,t){var n=e._timers;if("Array"===a.typeOf(n)){for(var r=0;r<n.length;r++)if(n[r]===t){n.splice(r,1),clearTimeout(t);break}}else clearTimeout(t)},a.clearAllTimers=function(e){var t=e._timers;"Array"===a.typeOf(t)&&(t.map(function(e){clearTimeout(e)}),e._timerIds=[])},a.createImgBtn=function(e,t,n,r){var i,o,s,l=a.createDom("xg-".concat(e),"",{},"xgplayer-".concat(e,"-img"));(l.style.backgroundImage='url("'.concat(t,'")'),n&&r)&&(["px","rem","em","pt","dp","vw","vh","vm","%"].every(function(e){return!(n.indexOf(e)>-1&&r.indexOf(e)>-1)||(i=parseFloat(n.slice(0,n.indexOf(e)).trim()),o=parseFloat(r.slice(0,r.indexOf(e)).trim()),s=e,!1)}),l.style.width="".concat(i).concat(s),l.style.height="".concat(o).concat(s),l.style.backgroundSize="".concat(i).concat(s," ").concat(o).concat(s),l.style.margin="start"===e?"-".concat(o/2).concat(s," auto auto -").concat(i/2).concat(s):"auto 5px auto 5px");return l},a.Hex2RGBA=function(e,t){var n=[];if(/^\#[0-9A-F]{3}$/i.test(e)){var r="#";e.replace(/[0-9A-F]/gi,function(e){r+=e+e}),e=r}return/^#[0-9A-F]{6}$/i.test(e)?(e.replace(/[0-9A-F]{2}/gi,function(e){n.push(parseInt(e,16))}),"rgba(".concat(n.join(","),", ").concat(t,")")):"rgba(255, 255, 255, 0.1)"},a.getFullScreenEl=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},a.checkIsFunction=function(e){return e&&"function"===typeof e},a.checkIsObject=function(e){return null!==e&&"object"===(0,r.uk)(e)},a.hide=function(e){e.style.display="none"},a.show=function(e,t){e.style.display=t||"block"},a.isUndefined=function(e){if("undefined"===typeof e||null===e)return!0},a.isNotNull=function(e){return!(void 0===e||null===e)},a.setStyleFromCsstext=function(e,t){if(t)if("String"===a.typeOf(t)){var n=t.replace(/\s+/g,"").split(";");n.map(function(t){if(t){var n=t.split(":");n.length>1&&(e.style[n[0]]=n[1])}})}else Object.keys(t).map(function(n){e.style[n]=t[n]})},a.filterStyleFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["width","height","top","left","bottom","right","position","z-index","padding","margin","transform"],n=e.style.cssText;if(!n)return{};var r=n.replace(/\s+/g,"").split(";"),i={},o={};return r.map(function(e){if(e){var n=e.split(":");n.length>1&&(s(n[0],t)?i[n[0]]=n[1]:o[n[0]]=n[1])}}),e.setAttribute("style",""),Object.keys(o).map(function(t){e.style[t]=o[t]}),i},a.getStyleFromCsstext=function(e){var t=e.style.cssText;if(!t)return{};var n=t.replace(/\s+/g,"").split(";"),r={};return n.map(function(e){if(e){var t=e.split(":");t.length>1&&(r[t[0]]=t[1])}}),r},a.preloadImg=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if(e){var r=new window.Image;r.onload=function(e){r=null,t&&t(e)},r.onerror=function(e){r=null,n&&n(e)},r.src=e}},a.stopPropagation=function(e){e&&e.stopPropagation()},a.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},a.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},a.checkTouchSupport=function(){return"ontouchstart"in window},a.getBuffered2=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5,n=[],r=0;r<e.length;r++)n.push({start:e.start(r)<.5?0:e.start(r),end:e.end(r)});n.sort(function(e,t){var n=e.start-t.start;return n||t.end-e.end});var i=[];if(t)for(var a=0;a<n.length;a++){var s=i.length;if(s){var l=i[s-1].end;n[a].start-l<t?n[a].end>l&&(i[s-1].end=n[a].end):i.push(n[a])}else i.push(n[a])}else i=n;return new o(i)},a.getEventPos=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.touches&&e.touches.length>0&&(e=e.touches[0]),{x:e.x/t,y:e.y/t,clientX:e.clientX/t,clientY:e.clientY/t,offsetX:e.offsetX/t,offsetY:e.offsetY/t,pageX:e.pageX/t,pageY:e.pageY/t}},a.requestAnimationFrame=function(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(t)return t(e)},a.getHostFromUrl=function(e){if("String"!==a.typeOf(e))return"";var t=e.split("/"),n="";return t.length>3&&t[2]&&(n=t[2]),n},a.cancelAnimationFrame=function(e){var t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.cancelRequestAnimationFrame;t&&t(e)},a.isMSE=function(e){return e.media&&(e=e.media),!!(e&&e instanceof HTMLMediaElement)&&(/^blob/.test(e.currentSrc)||/^blob/.test(e.src))},a.isBlob=function(e){return"string"===typeof e&&/^blob/.test(e)},a.generateSessionId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(new Date).getTime();try{e=parseInt(e)}catch(r){e=0}t+=e,window.performance&&"function"===typeof window.performance.now&&(t+=parseInt(window.performance.now()));var n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?n:3&n|8).toString(16)});return n},a.createEvent=function(e){var t;return"function"===typeof window.Event?t=new Event(e):(t=document.createEvent("Event"),t.initEvent(e,!0,!0)),t},a.adjustTimeByDuration=function(e,t,n){return t&&e&&(e>t||n&&e<t)?t:e},a.createPositionBar=function(e,t){var n=a.createDom("xg-bar","",{"data-index":-1},e);return t.appendChild(n),n},a.getTransformStyle=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{x:0,y:0,scale:1,rotate:0},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n={scale:"".concat(e.scale||1),translate:"".concat(e.x||0,"%, ").concat(e.y||0,"%"),rotate:"".concat(e.rotate||0,"deg")},r=Object.keys(n);return r.forEach(function(e){var r=new RegExp("".concat(e,"\\([^\\(]+\\)"),"g"),i="".concat(e,"(").concat(n[e],")");r.test(t)?(r.lastIndex=-1,t=t.replace(r,i)):t+="".concat(i," ")}),t},a.convertDeg=function(e){return Math.abs(e)<=1?360*e:e%360},a.getIndexByTime=function(e,t){var n=t.length,r=-1;if(n<1)return r;if(e<=t[0].end||n<2)r=0;else if(e>t[n-1].end)r=n-1;else for(var i=1;i<n;i++)if(e>t[i-1].end&&e<=t[i].end){r=i;break}return r},a.getOffsetCurrentTime=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=-1;if(r=n>=0&&n<t.length?n:a.getIndexByTime(e,t),r<0)return-1;var i=t.length,o=t[r],s=o.start,l=o.end,c=o.cTime,u=o.offset;return e<s?c:e>=s&&e<=l?e-u:e>l&&r>=i-1?l:-1},a.getCurrentTimeByOffset=function(e,t){var n=-1;if(!t||t.length<0)return e;for(var r=0;r<t.length;r++)if(e<=t[r].duration){n=r;break}if(-1!==n){var i=t[n].start;return n-1<0?i+e:i+(e-t[n-1].duration)}return e}},61603:function(e,t,n){"use strict";n.d(t,{Ay:function(){return _}});n(44114),n(18111),n(61701),n(13579);var r=n(41034),i=n(56768),o=n(49974),a=n(81425),s=n(44832),l=n(73429),c=n(44678),u=n(60674);const d=()=>({prefixCls:String,color:String,dot:a.A.any,pending:(0,c.HE)(),position:a.A.oneOf((0,c.PV)("left","right","")).def(""),label:a.A.any});var h=(0,i.pM)({compatConfig:{MODE:3},name:"ATimelineItem",props:(0,l.A)(d(),{color:"blue",pending:!1}),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:r}=(0,u.A)("timeline",e),o=(0,i.EW)(()=>({[`${r.value}-item`]:!0,[`${r.value}-item-pending`]:e.pending})),a=(0,i.EW)(()=>/blue|red|green|gray/.test(e.color||"")?void 0:e.color||"blue"),s=(0,i.EW)(()=>({[`${r.value}-item-head`]:!0,[`${r.value}-item-head-${e.color||"blue"}`]:!a.value}));return()=>{var t,l,c;const{label:u=(null===(t=n.label)||void 0===t?void 0:t.call(n)),dot:d=(null===(l=n.dot)||void 0===l?void 0:l.call(n))}=e;return(0,i.bF)("li",{class:o.value},[u&&(0,i.bF)("div",{class:`${r.value}-item-label`},[u]),(0,i.bF)("div",{class:`${r.value}-item-tail`},null),(0,i.bF)("div",{class:[s.value,!!d&&`${r.value}-item-head-custom`],style:{borderColor:a.value,color:a.value}},[d]),(0,i.bF)("div",{class:`${r.value}-item-content`},[null===(c=n.default)||void 0===c?void 0:c.call(n)])])}}}),f=n(16678),p=n(51137),g=n(90112),m=n(9519),v=n(36068);const A=e=>{const{componentCls:t}=e;return{[t]:(0,p.A)((0,p.A)({},(0,v.dF)(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.timeLineItemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize,insetInlineStart:(e.timeLineItemHeadSize-e.timeLineItemTailWidth)/2,height:`calc(100% - ${e.timeLineItemHeadSize}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px ${e.lineType} ${e.colorSplit}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.timeLineItemHeadSize,height:e.timeLineItemHeadSize,backgroundColor:e.colorBgContainer,border:`${e.timeLineHeadBorderWidth}px ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize/2,insetInlineStart:e.timeLineItemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.timeLineItemCustomHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.timeLineItemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:1.2*e.controlHeightLG}}},[`&${t}-alternate,\n        &${t}-right,\n        &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${e.marginXXS}px`,"&-custom":{marginInlineStart:e.timeLineItemTailWidth/2}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${e.marginXXS}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${e.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail,\n            ${t}-item-head,\n            ${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(e.timeLineItemHeadSize+e.timeLineItemTailWidth)/2}px)`},[`${t}-item-content`]:{width:`calc(100% - ${e.timeLineItemHeadSize+e.marginXS}px)`}}},[`&${t}-pending\n        ${t}-item-last\n        ${t}-item-tail`]:{display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`&${t}-reverse\n        ${t}-item-last\n        ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`${t}-item-content`]:{minHeight:1.2*e.controlHeightLG}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.timeLineItemTailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}};var b=(0,g.A)("Timeline",e=>{const t=(0,m.h1)(e,{timeLineItemPaddingBottom:1.25*e.padding,timeLineItemHeadSize:10,timeLineItemCustomHeadPaddingVertical:e.paddingXXS,timeLinePaddingInlineEnd:2,timeLineItemTailWidth:e.lineWidthBold,timeLineHeadBorderWidth:e.wireframe?e.lineWidthBold:3*e.lineWidth});return[A(t)]});const y=()=>({prefixCls:String,pending:a.A.any,pendingDot:a.A.any,reverse:(0,c.HE)(),mode:a.A.oneOf((0,c.PV)("left","alternate","right",""))});var w=(0,i.pM)({compatConfig:{MODE:3},name:"ATimeline",inheritAttrs:!1,props:(0,l.A)(y(),{reverse:!1,mode:""}),slots:Object,setup(e,t){let{slots:n,attrs:a}=t;const{prefixCls:l,direction:c}=(0,u.A)("timeline",e),[d,p]=b(l),g=(t,n)=>{const r=t.props||{};return"alternate"===e.mode?"right"===r.position?`${l.value}-item-right`:"left"===r.position||n%2===0?`${l.value}-item-left`:`${l.value}-item-right`:"left"===e.mode?`${l.value}-item-left`:"right"===e.mode||"right"===r.position?`${l.value}-item-right`:""};return()=>{var t,u,m;const{pending:v=(null===(t=n.pending)||void 0===t?void 0:t.call(n)),pendingDot:A=(null===(u=n.pendingDot)||void 0===u?void 0:u.call(n)),reverse:b,mode:y}=e,w="boolean"===typeof v?null:v,_=(0,s.Gk)(null===(m=n.default)||void 0===m?void 0:m.call(n)),x=v?(0,i.bF)(h,{pending:!!v,dot:A||(0,i.bF)(f.A,null,null)},{default:()=>[w]}):null;x&&_.push(x);const E=b?_.reverse():_,S=E.length,C=`${l.value}-item-last`,T=E.map((e,t)=>{const n=t===S-2?C:"",r=t===S-1?C:"";return(0,i.E3)(e,{class:(0,o.A)([!b&&v?n:r,g(e,t)])})}),k=E.some(e=>{var t,n;return!(!(null===(t=e.props)||void 0===t?void 0:t.label)&&!(null===(n=e.children)||void 0===n?void 0:n.label))}),O=(0,o.A)(l.value,{[`${l.value}-pending`]:!!v,[`${l.value}-reverse`]:!!b,[`${l.value}-${y}`]:!!y&&!k,[`${l.value}-label`]:k,[`${l.value}-rtl`]:"rtl"===c.value},a.class,p.value);return d((0,i.bF)("ul",(0,r.A)((0,r.A)({},a),{},{class:O}),[T]))}}});w.Item=h,w.install=function(e){return e.component(w.name,w),e.component(h.name,h),e};var _=w},61701:function(e,t,n){"use strict";var r=n(46518),i=n(69565),o=n(79306),a=n(28551),s=n(1767),l=n(19462),c=n(96319),u=n(9539),d=n(30684),h=n(84549),f=n(96395),p=!f&&!d("map",function(){}),g=!f&&!p&&h("map",TypeError),m=f||p||g,v=l(function(){var e=this.iterator,t=a(i(this.next,e)),n=this.done=!!t.done;if(!n)return c(e,this.mapper,[t.value,this.counter++],!0)});r({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(e){a(this);try{o(e)}catch(t){u(this,"throw",t)}return g?i(g,this,e):new v(s(this),{mapper:e})}})},61806:function(e,t,n){"use strict";var r=n(46518),i=n(28551),o=n(72652),a=n(1767),s=[].push;r({target:"Iterator",proto:!0,real:!0},{toArray:function(){var e=[];return o(a(i(this)),s,{that:e,IS_RECORD:!0}),e}})},61828:function(e,t,n){"use strict";var r=n(79504),i=n(39297),o=n(25397),a=n(19617).indexOf,s=n(30421),l=r([].push);e.exports=function(e,t){var n,r=o(e),c=0,u=[];for(n in r)!i(s,n)&&i(r,n)&&l(u,n);while(t.length>c)i(r,n=t[c++])&&(~a(u,n)||l(u,n));return u}},61900:function(e){function t(e){const t="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",n=["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],r=["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],i=["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"],o={$pattern:t,keyword:n,literal:r,built_in:i},a={keywords:o,illegal:/<\//},s={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},l={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},c={className:"subst",begin:/\$\(/,end:/\)/,keywords:o},u={className:"variable",begin:"\\$"+t},d={className:"string",contains:[e.BACKSLASH_ESCAPE,c,u],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},h={className:"string",contains:[e.BACKSLASH_ESCAPE,c,u],begin:"`",end:"`"},f={className:"meta",begin:"@"+t},p={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return a.name="Julia",a.contains=[s,l,d,h,f,p,e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],c.contains=a.contains,a}e.exports=t},61935:function(e,t,n){"use strict";n.d(t,{bK:function(){return x},cM:function(){return b},uy:function(){return y},z1:function(){return E}});n(44114),n(18111),n(7588);var r=n(39541),i=n(30355),o=2,a=.16,s=.05,l=.05,c=.15,u=5,d=4,h=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function f(e){var t=e.r,n=e.g,r=e.b,o=(0,i.wE)(t,n,r);return{h:360*o.h,s:o.s,v:o.v}}function p(e){var t=e.r,n=e.g,r=e.b;return"#".concat((0,i.Ob)(t,n,r,!1))}function g(e,t,n){var r=n/100,i={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return i}function m(e,t,n){var r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-o*t:Math.round(e.h)+o*t:n?Math.round(e.h)+o*t:Math.round(e.h)-o*t,r<0?r+=360:r>=360&&(r-=360),r}function v(e,t,n){return 0===e.h&&0===e.s?e.s:(r=n?e.s-a*t:t===d?e.s+a:e.s+s*t,r>1&&(r=1),n&&t===u&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function A(e,t,n){var r;return r=n?e.v+l*t:e.v-c*t,r>1&&(r=1),Number(r.toFixed(2))}function b(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],i=(0,r.RO)(e),o=u;o>0;o-=1){var a=f(i),s=p((0,r.RO)({h:m(a,o,!0),s:v(a,o,!0),v:A(a,o,!0)}));n.push(s)}n.push(p(i));for(var l=1;l<=d;l+=1){var c=f(i),b=p((0,r.RO)({h:m(c,l),s:v(c,l),v:A(c,l)}));n.push(b)}return"dark"===t.theme?h.map(function(e){var i=e.index,o=e.opacity,a=p(g((0,r.RO)(t.backgroundColor||"#141414"),(0,r.RO)(n[i]),100*o));return a}):n}var y={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},w={},_={};Object.keys(y).forEach(function(e){w[e]=b(y[e]),w[e].primary=w[e][5],_[e]=b(y[e],{theme:"dark",backgroundColor:"#141414"}),_[e].primary=_[e][5]});w.red,w.volcano;var x=w.gold,E=(w.orange,w.yellow,w.lime,w.green,w.cyan,w.blue);w.geekblue,w.purple,w.magenta,w.grey},61969:function(e,t,n){function r(e){const t=e.COMMENT("--","$"),n="[a-zA-Z_][a-zA-Z_0-9$]*",r="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",i="<<\\s*"+n+"\\s*>>",o="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",a="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",s="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",l="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",c=l.trim().split(" ").map(function(e){return e.split("|")[0]}).join("|"),u="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",d="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",h="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",f="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ",p=f.trim().split(" ").map(function(e){return e.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:o+s+a,built_in:u+d+h},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+p+")\\s*\\("},{begin:"\\.("+c+")\\b"},{begin:"\\b("+c+")\\s+PATH\\b",keywords:{keyword:"PATH",type:l.replace("PATH ","")}},{className:"type",begin:"\\b("+c+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:r,end:r,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:i,relevance:10}]}}n(18111),n(61701),e.exports=r},62076:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="InfoCircleOutlined",c.inheritAttrs=!1;var u=c},62106:function(e,t,n){"use strict";var r=n(50283),i=n(24913);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},62142:function(e){function t(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}e.exports=t},62355:function(e,t,n){"use strict";n.d(t,{A:function(){return mt}});var r=n(51137),i=(n(18111),n(22489),n(7588),n(61701),n(13579),n(41034)),o=n(56768),a=n(90144),s=n(73429);function l(e,t){const n=`cannot ${e.method} ${e.action} ${t.status}'`,r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function c(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function u(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});const n=new FormData;e.data&&Object.keys(e.data).forEach(t=>{const r=e.data[t];Array.isArray(r)?r.forEach(e=>{n.append(`${t}[]`,e)}):n.append(t,r)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(l(e,t),c(t)):e.onSuccess(c(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(e=>{null!==r[e]&&t.setRequestHeader(e,r[e])}),t.send(n),{abort(){t.abort()}}}const d=+new Date;let h=0;function f(){return`vc-upload-${d}-${++h}`}var p=n(99899),g=(e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=e.type||"",o=i.replace(/\/.*$/,"");return n.some(e=>{const t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){const e=r.toLowerCase(),n=t.toLowerCase();let i=[n];return".jpg"!==n&&".jpeg"!==n||(i=[".jpg",".jpeg"]),i.some(t=>e.endsWith(t))}return/\/\*$/.test(t)?o===t.replace(/\/.*$/,""):i===t||!!/^\w+$/.test(t)&&((0,p.$e)(!1,`Upload takes an invalidate 'accept' type '${t}'.Skip for check.`),!0)})}return!0};function m(e,t){const n=e.createReader();let r=[];function i(){n.readEntries(e=>{const n=Array.prototype.slice.apply(e);r=r.concat(n);const o=!n.length;o?t(r):i()})}i()}const v=(e,t,n)=>{const r=(e,i)=>{e.path=i||"",e.isFile?e.file(r=>{n(r)&&(e.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=e.fullPath.replace(/^\//,""),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),t([r]))}):e.isDirectory&&m(e,t=>{t.forEach(t=>{r(t,`${i}${e.name}/`)})})};e.forEach(e=>{r(e.webkitGetAsEntry())})};var A=v;const b=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function});var y=n(5220);n(44114);function w(e,t,n,r){var i=-1,o=null==e?0:e.length;while(++i<o){var a=e[i];t(r,a,n(a),e)}return r}var _=w;function x(e){return function(t,n,r){var i=-1,o=Object(t),a=r(t),s=a.length;while(s--){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}var E=x,S=E(),C=S,T=n(87351);function k(e,t){return e&&C(e,t,T.A)}var O=k,M=n(41805);function I(e,t){return function(n,r){if(null==n)return n;if(!(0,M.A)(n))return e(n,r);var i=n.length,o=t?i:-1,a=Object(n);while(t?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}var D=I,N=D(O),R=N;function L(e,t,n,r){return R(e,function(e,i,o){t(r,e,n(e),o)}),r}var B=L,P=n(81449),F=n(23506);function $(e,t){return function(n,r){var i=(0,F.A)(n)?_:B,o=t?t():{};return i(n,e,(0,P.A)(r,2),o)}}var j=$,H=j(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),U=H,Q=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},W=(0,o.pM)({compatConfig:{MODE:3},name:"AjaxUploader",inheritAttrs:!1,props:b(),setup(e,t){let{slots:n,attrs:r,expose:s}=t;const l=(0,a.KR)(f()),c={},d=(0,a.KR)();let h=!1;const p=(t,n)=>Q(this,void 0,void 0,function*(){const{beforeUpload:r}=e;let i=t;if(r){try{i=yield r(t,n)}catch(h){i=!1}if(!1===i)return{origin:t,parsedFile:null,action:null,data:null}}const{action:o}=e;let a;a="function"===typeof o?yield o(t):o;const{data:s}=e;let l;l="function"===typeof s?yield s(t):s;const c="object"!==typeof i&&"string"!==typeof i||!i?t:i;let u;u=c instanceof File?c:new File([c],t.name,{type:t.type});const d=u;return d.uid=t.uid,{origin:t,data:l,parsedFile:d,action:a}}),m=t=>{let{data:n,origin:r,action:i,parsedFile:o}=t;if(!h)return;const{onStart:a,customRequest:s,name:l,headers:d,withCredentials:f,method:p}=e,{uid:g}=r,m=s||u,v={action:i,filename:l,data:n,file:o,headers:d,withCredentials:f,method:p||"post",onProgress:t=>{const{onProgress:n}=e;null===n||void 0===n||n(t,o)},onSuccess:(t,n)=>{const{onSuccess:r}=e;null===r||void 0===r||r(t,o,n),delete c[g]},onError:(t,n)=>{const{onError:r}=e;null===r||void 0===r||r(t,n,o),delete c[g]}};a(r),c[g]=m(v)},v=()=>{l.value=f()},b=e=>{if(e){const t=e.uid?e.uid:e;c[t]&&c[t].abort&&c[t].abort(),delete c[t]}else Object.keys(c).forEach(e=>{c[e]&&c[e].abort&&c[e].abort(),delete c[e]})};(0,o.sV)(()=>{h=!0}),(0,o.xo)(()=>{h=!1,b()});const w=t=>{const n=[...t],r=n.map(e=>(e.uid=f(),p(e,n)));Promise.all(r).then(t=>{const{onBatchStart:n}=e;null===n||void 0===n||n(t.map(e=>{let{origin:t,parsedFile:n}=e;return{file:t,parsedFile:n}})),t.filter(e=>null!==e.parsedFile).forEach(e=>{m(e)})})},_=t=>{const{accept:n,directory:r}=e,{files:i}=t.target,o=[...i].filter(e=>!r||g(e,n));w(o),v()},x=t=>{const n=d.value;if(!n)return;const{onClick:r}=e;n.click(),r&&r(t)},E=e=>{"Enter"===e.key&&x(e)},S=t=>{const{multiple:n}=e;if(t.preventDefault(),"dragover"!==t.type)if(e.directory)A(Array.prototype.slice.call(t.dataTransfer.items),w,t=>g(t,e.accept));else{const r=U(Array.prototype.slice.call(t.dataTransfer.files),t=>g(t,e.accept));let i=r[0];const o=r[1];!1===n&&(i=i.slice(0,1)),w(i),o.length&&e.onReject&&e.onReject(o)}};return s({abort:b}),()=>{var t;const{componentTag:a,prefixCls:s,disabled:c,id:u,multiple:h,accept:f,capture:p,directory:g,openFileDialogOnClick:m,onMouseenter:v,onMouseleave:A}=e,b=z(e,["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"]),w={[s]:!0,[`${s}-disabled`]:c,[r.class]:!!r.class},C=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},T=c?{}:{onClick:m?x:()=>{},onKeydown:m?E:()=>{},onMouseenter:v,onMouseleave:A,onDrop:S,onDragover:S,tabindex:"0"};return(0,o.bF)(a,(0,i.A)((0,i.A)({},T),{},{class:w,role:"button",style:r.style}),{default:()=>[(0,o.bF)("input",(0,i.A)((0,i.A)((0,i.A)({},(0,y.A)(b,{aria:!0,data:!0})),{},{id:u,type:"file",ref:d,onClick:e=>e.stopPropagation(),onCancel:e=>e.stopPropagation(),key:l.value,style:{display:"none"},accept:f},C),{},{multiple:h,onChange:_},null!=p?{capture:p}:{}),null),null===(t=n.default)||void 0===t?void 0:t.call(n)]})}}});function G(){}var V=(0,o.pM)({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:(0,s.A)(b(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:G,onError:G,onSuccess:G,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:n,attrs:r,expose:s}=t;const l=(0,a.KR)(),c=e=>{var t;null===(t=l.value)||void 0===t||t.abort(e)};return s({abort:c}),()=>(0,o.bF)(W,(0,i.A)((0,i.A)((0,i.A)({},e),r),{},{ref:l}),n)}}),K=V,Y=n(45130),q=n(16678),X=n(83178),J={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:t}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:t}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:e}}]}},name:"picture",theme:"twotone"},Z=J,ee=n(4827);function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ne(e,t,n[t])})}return e}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var re=function(e,t){var n=te({},e,t.attrs);return(0,o.bF)(ee.A,te({},n,{icon:Z}),null)};re.displayName="PictureTwoTone",re.inheritAttrs=!1;var ie=re,oe={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:t}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:e}}]}},name:"file",theme:"twotone"},ae=oe;function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){le(e,t,n[t])})}return e}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ce=function(e,t){var n=se({},e,t.attrs);return(0,o.bF)(ee.A,se({},n,{icon:ae}),null)};ce.displayName="FileTwoTone",ce.inheritAttrs=!1;var ue=ce,de=n(44678);function he(){return{capture:(0,de.tK)([Boolean,String]),type:(0,de.WO)(),name:String,defaultFileList:(0,de.MY)(),fileList:(0,de.MY)(),action:(0,de.tK)([String,Function]),directory:(0,de.HE)(),data:(0,de.tK)([Object,Function]),method:(0,de.WO)(),headers:(0,de.ge)(),showUploadList:(0,de.tK)([Boolean,Object]),multiple:(0,de.HE)(),accept:String,beforeUpload:(0,de.Fg)(),onChange:(0,de.Fg)(),"onUpdate:fileList":(0,de.Fg)(),onDrop:(0,de.Fg)(),listType:(0,de.WO)(),onPreview:(0,de.Fg)(),onDownload:(0,de.Fg)(),onReject:(0,de.Fg)(),onRemove:(0,de.Fg)(),remove:(0,de.Fg)(),supportServerRender:(0,de.HE)(),disabled:(0,de.HE)(),prefixCls:String,customRequest:(0,de.Fg)(),withCredentials:(0,de.HE)(),openFileDialogOnClick:(0,de.HE)(),locale:(0,de.ge)(),id:String,previewFile:(0,de.Fg)(),transformFile:(0,de.Fg)(),iconRender:(0,de.Fg)(),isImageUrl:(0,de.Fg)(),progress:(0,de.ge)(),itemRender:(0,de.Fg)(),maxCount:Number,height:(0,de.tK)([Number,String]),removeIcon:(0,de.Fg)(),downloadIcon:(0,de.Fg)(),previewIcon:(0,de.Fg)()}}function fe(){return{listType:(0,de.WO)(),onPreview:(0,de.Fg)(),onDownload:(0,de.Fg)(),onRemove:(0,de.Fg)(),items:(0,de.MY)(),progress:(0,de.ge)(),prefixCls:(0,de.WO)(),showRemoveIcon:(0,de.HE)(),showDownloadIcon:(0,de.HE)(),showPreviewIcon:(0,de.HE)(),removeIcon:(0,de.Fg)(),downloadIcon:(0,de.Fg)(),previewIcon:(0,de.Fg)(),locale:(0,de.ge)(void 0),previewFile:(0,de.Fg)(),iconRender:(0,de.Fg)(),isImageUrl:(0,de.Fg)(),appendAction:(0,de.Fg)(),appendActionVisible:(0,de.HE)(),itemRender:(0,de.Fg)()}}function pe(e){return(0,r.A)((0,r.A)({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function ge(e,t){const n=[...t],r=n.findIndex(t=>{let{uid:n}=t;return n===e.uid});return-1===r?n.push(e):n[r]=e,n}function me(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter(t=>t[n]===e[n])[0]}function ve(e,t){const n=void 0!==e.uid?"uid":"name",r=t.filter(t=>t[n]!==e[n]);return r.length===t.length?null:r}const Ae=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=e.split("/"),n=t[t.length-1],r=n.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},be=e=>0===e.indexOf("image/"),ye=e=>{if(e.type&&!e.thumbUrl)return be(e.type);const t=e.thumbUrl||e.url||"",n=Ae(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n))||!/^data:/.test(t)&&!n},we=200;function _e(e){return new Promise(t=>{if(!e.type||!be(e.type))return void t("");const n=document.createElement("canvas");n.width=we,n.height=we,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${we}px; height: ${we}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:e,height:o}=i;let a=we,s=we,l=0,c=0;e>o?(s=o*(we/e),c=-(s-a)/2):(a=e*(we/o),l=-(a-s)/2),r.drawImage(i,l,c,a,s);const u=n.toDataURL();document.body.removeChild(n),t(u)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.addEventListener("load",()=>{t.result&&(i.src=t.result)}),t.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}var xe=n(80816),Ee=n(4501),Se=n(52281),Ce=n(34079),Te=n(35678),ke=n(40416),Oe=n(60674),Me=n(51589);const Ie=()=>({prefixCls:String,locale:(0,de.ge)(void 0),file:(0,de.ge)(),items:(0,de.MY)(),listType:(0,de.WO)(),isImgUrl:(0,de.Fg)(),showRemoveIcon:(0,de.HE)(),showDownloadIcon:(0,de.HE)(),showPreviewIcon:(0,de.HE)(),removeIcon:(0,de.Fg)(),downloadIcon:(0,de.Fg)(),previewIcon:(0,de.Fg)(),iconRender:(0,de.Fg)(),actionIconRender:(0,de.Fg)(),itemRender:(0,de.Fg)(),onPreview:(0,de.Fg)(),onClose:(0,de.Fg)(),onDownload:(0,de.Fg)(),progress:(0,de.ge)()});var De=(0,o.pM)({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:Ie(),setup(e,t){let{slots:n,attrs:r}=t;var s;const l=(0,a.IJ)(!1),c=(0,a.IJ)();(0,o.sV)(()=>{c.value=setTimeout(()=>{l.value=!0},300)}),(0,o.xo)(()=>{clearTimeout(c.value)});const u=(0,a.IJ)(null===(s=e.file)||void 0===s?void 0:s.status);(0,o.wB)(()=>{var t;return null===(t=e.file)||void 0===t?void 0:t.status},e=>{"removed"!==e&&(u.value=e)});const{rootPrefixCls:d}=(0,Oe.A)("upload",e),h=(0,o.EW)(()=>(0,Me.ce)(`${d.value}-fade`));return()=>{var t,a;const{prefixCls:s,locale:c,listType:d,file:f,items:p,progress:g,iconRender:m=n.iconRender,actionIconRender:v=n.actionIconRender,itemRender:A=n.itemRender,isImgUrl:b,showPreviewIcon:y,showRemoveIcon:w,showDownloadIcon:_,previewIcon:x=n.previewIcon,removeIcon:E=n.removeIcon,downloadIcon:S=n.downloadIcon,onPreview:C,onDownload:T,onClose:k}=e,{class:O,style:M}=r,I=m({file:f});let D=(0,o.bF)("div",{class:`${s}-text-icon`},[I]);if("picture"===d||"picture-card"===d)if("uploading"===u.value||!f.thumbUrl&&!f.url){const e={[`${s}-list-item-thumbnail`]:!0,[`${s}-list-item-file`]:"uploading"!==u.value};D=(0,o.bF)("div",{class:e},[I])}else{const e=(null===b||void 0===b?void 0:b(f))?(0,o.bF)("img",{src:f.thumbUrl||f.url,alt:f.name,class:`${s}-list-item-image`,crossorigin:f.crossOrigin},null):I,t={[`${s}-list-item-thumbnail`]:!0,[`${s}-list-item-file`]:b&&!b(f)};D=(0,o.bF)("a",{class:t,onClick:e=>C(f,e),href:f.url||f.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[e])}const N={[`${s}-list-item`]:!0,[`${s}-list-item-${u.value}`]:!0},R="string"===typeof f.linkProps?JSON.parse(f.linkProps):f.linkProps,L=w?v({customIcon:E?E({file:f}):(0,o.bF)(Se.A,null,null),callback:()=>k(f),prefixCls:s,title:c.removeFile}):null,B=_&&"done"===u.value?v({customIcon:S?S({file:f}):(0,o.bF)(Ce.A,null,null),callback:()=>T(f),prefixCls:s,title:c.downloadFile}):null,P="picture-card"!==d&&(0,o.bF)("span",{key:"download-delete",class:[`${s}-list-item-actions`,{picture:"picture"===d}]},[B,L]),F=`${s}-list-item-name`,$=f.url?[(0,o.bF)("a",(0,i.A)((0,i.A)({key:"view",target:"_blank",rel:"noopener noreferrer",class:F,title:f.name},R),{},{href:f.url,onClick:e=>C(f,e)}),[f.name]),P]:[(0,o.bF)("span",{key:"view",class:F,onClick:e=>C(f,e),title:f.name},[f.name]),P],j={pointerEvents:"none",opacity:.5},H=y?(0,o.bF)("a",{href:f.url||f.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:f.url||f.thumbUrl?void 0:j,onClick:e=>C(f,e),title:c.previewFile},[x?x({file:f}):(0,o.bF)(Ee.A,null,null)]):null,U="picture-card"===d&&"uploading"!==u.value&&(0,o.bF)("span",{class:`${s}-list-item-actions`},[H,"done"===u.value&&B,L]),Q=(0,o.bF)("div",{class:N},[D,$,U,l.value&&(0,o.bF)(Y.eB,h.value,{default:()=>[(0,o.bo)((0,o.bF)("div",{class:`${s}-list-item-progress`},["percent"in f?(0,o.bF)(ke.A,(0,i.A)((0,i.A)({},g),{},{type:"line",percent:f.percent}),null):null]),[[Y.aG,"uploading"===u.value]])]})]),z={[`${s}-list-item-container`]:!0,[`${O}`]:!!O},W=f.response&&"string"===typeof f.response?f.response:(null===(t=f.error)||void 0===t?void 0:t.statusText)||(null===(a=f.error)||void 0===a?void 0:a.message)||c.uploadError,G="error"===u.value?(0,o.bF)(Te.A,{title:W,getPopupContainer:e=>e.parentNode},{default:()=>[Q]}):Q;return(0,o.bF)("div",{class:z,style:M},[A?A({originNode:G,file:f,fileList:p,actions:{download:T.bind(null,f),preview:C.bind(null,f),remove:k.bind(null,f)}}):G])}}}),Ne=n(44832),Re=n(99603);const Le=(e,t)=>{let{slots:n}=t;var r;return(0,Ne.Gk)(null===(r=n.default)||void 0===r?void 0:r.call(n))[0]};var Be=(0,o.pM)({compatConfig:{MODE:3},name:"AUploadList",props:(0,s.A)(fe(),{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:_e,isImageUrl:ye,items:[],appendActionVisible:!0}),setup(e,t){let{slots:n,expose:s}=t;const l=(0,a.IJ)(!1);(0,o.sV)(()=>{l.value});const c=(0,a.IJ)([]);(0,o.wB)(()=>e.items,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];c.value=e.slice()},{immediate:!0,deep:!0}),(0,o.nT)(()=>{if("picture"!==e.listType&&"picture-card"!==e.listType)return;let t=!1;(e.items||[]).forEach((n,r)=>{"undefined"!==typeof document&&"undefined"!==typeof window&&window.FileReader&&window.File&&(n.originFileObj instanceof File||n.originFileObj instanceof Blob)&&void 0===n.thumbUrl&&(n.thumbUrl="",e.previewFile&&e.previewFile(n.originFileObj).then(e=>{const i=e||"";i!==n.thumbUrl&&(c.value[r].thumbUrl=i,t=!0)}))}),t&&(0,a.mu)(c)});const u=(t,n)=>{if(e.onPreview)return null===n||void 0===n||n.preventDefault(),e.onPreview(t)},d=t=>{"function"===typeof e.onDownload?e.onDownload(t):t.url&&window.open(t.url)},h=t=>{var n;null===(n=e.onRemove)||void 0===n||n.call(e,t)},f=t=>{let{file:r}=t;const i=e.iconRender||n.iconRender;if(i)return i({file:r,listType:e.listType});const a="uploading"===r.status,s=e.isImageUrl&&e.isImageUrl(r)?(0,o.bF)(ie,null,null):(0,o.bF)(ue,null,null);let l=a?(0,o.bF)(q.A,null,null):(0,o.bF)(X.A,null,null);return"picture"===e.listType?l=a?(0,o.bF)(q.A,null,null):s:"picture-card"===e.listType&&(l=a?e.locale.uploading:s),l},p=e=>{const{customIcon:t,callback:n,prefixCls:r,title:i}=e,a={type:"text",size:"small",title:i,onClick:()=>{n()},class:`${r}-list-item-action`};return(0,Ne.zO)(t)?(0,o.bF)(xe.A,a,{icon:()=>t}):(0,o.bF)(xe.A,a,{default:()=>[(0,o.bF)("span",null,[t])]})};s({handlePreview:u,handleDownload:d});const{prefixCls:g,rootPrefixCls:m}=(0,Oe.A)("upload",e),v=(0,o.EW)(()=>({[`${g.value}-list`]:!0,[`${g.value}-list-${e.listType}`]:!0})),A=(0,o.EW)(()=>{const t=(0,r.A)({},(0,Re.A)(`${m.value}-motion-collapse`));delete t.onAfterAppear,delete t.onAfterEnter,delete t.onAfterLeave;const n=(0,r.A)((0,r.A)({},(0,Me.zg)(`${g.value}-${"picture-card"===e.listType?"animate-inline":"animate"}`)),{class:v.value,appear:l.value});return"picture-card"!==e.listType?(0,r.A)((0,r.A)({},t),n):n});return()=>{const{listType:t,locale:a,isImageUrl:s,showPreviewIcon:l,showRemoveIcon:m,showDownloadIcon:v,removeIcon:b,previewIcon:y,downloadIcon:w,progress:_,appendAction:x,itemRender:E,appendActionVisible:S}=e,C=null===x||void 0===x?void 0:x(),T=c.value;return(0,o.bF)(Y.F,(0,i.A)((0,i.A)({},A.value),{},{tag:"div"}),{default:()=>[T.map(e=>{const{uid:i}=e;return(0,o.bF)(De,{key:i,locale:a,prefixCls:g.value,file:e,items:T,progress:_,listType:t,isImgUrl:s,showPreviewIcon:l,showRemoveIcon:m,showDownloadIcon:v,onPreview:u,onDownload:d,onClose:h,removeIcon:b,previewIcon:y,downloadIcon:w,itemRender:E},(0,r.A)((0,r.A)({},n),{iconRender:f,actionIconRender:p}))}),x?(0,o.bo)((0,o.bF)(Le,{key:"__ant_upload_appendAction"},{default:()=>C}),[[Y.aG,!!S]]):null]})}}}),Pe=n(36590),Fe=n(32342),$e=n(53523),je=n(34322),He=n(49974),Ue=n(56405),Qe=n(90112),ze=n(9519);const We=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${n},\n            p${t}-text,\n            p${t}-hint\n          `]:{color:e.colorTextDisabled}}}}}};var Ge=We,Ve=n(36068);const Ke=e=>{const{componentCls:t,antCls:n,iconCls:i,fontSize:o,lineHeight:a}=e,s=`${t}-list-item`,l=`${s}-actions`,c=`${s}-action`,u=Math.round(o*a);return{[`${t}-wrapper`]:{[`${t}-list`]:(0,r.A)((0,r.A)({},(0,Ve.t6)()),{lineHeight:e.lineHeight,[s]:{position:"relative",height:e.lineHeight*o,marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${s}-name`]:(0,r.A)((0,r.A)({},Ve.L9),{padding:`0 ${e.paddingXS}px`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{[c]:{opacity:0},[`${c}${n}-btn-sm`]:{height:u,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`\n              ${c}:focus,\n              &.picture ${c}\n            `]:{opacity:1},[i]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${i}`]:{color:e.colorText}},[`${t}-icon ${i}`]:{color:e.colorTextDescription,fontSize:o},[`${s}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:o+e.paddingXS,fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${s}:hover ${c}`]:{opacity:1,color:e.colorText},[`${s}-error`]:{color:e.colorError,[`${s}-name, ${t}-icon ${i}`]:{color:e.colorError},[l]:{[`${i}, ${i}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}};var Ye=Ke,qe=n(58085);const Xe=new qe.A("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Je=new qe.A("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),Ze=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:Xe},[`${n}-leave`]:{animationName:Je}}},Xe,Je]};var et=Ze,tt=n(50223);const nt=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:i,uploadProgressOffset:o}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[`${a}${a}-picture, ${a}${a}-picture-card`]:{[s]:{position:"relative",height:i+2*e.lineWidth+2*e.paddingXS,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:(0,r.A)((0,r.A)({},Ve.L9),{width:i,height:i,lineHeight:`${i+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:o,width:`calc(100% - ${2*e.paddingSM}px)`,marginTop:0,paddingInlineStart:i+e.paddingXS}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{["svg path[fill='#e6f7ff']"]:{fill:e.colorErrorBg},["svg path[fill='#1890ff']"]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:o}}}}}},rt=e=>{const{componentCls:t,iconCls:n,fontSizeLG:i,colorTextLightSolid:o}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:(0,r.A)((0,r.A)({},(0,Ve.t6)()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:l,height:l,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card`]:{[`${a}-item-container`]:{display:"inline-block",width:l,height:l,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${2*e.paddingXS}px)`,height:`calc(100% - ${2*e.paddingXS}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:i,margin:`0 ${e.marginXXS}px`,fontSize:i,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${s}-actions, ${s}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new tt.q(o).setAlpha(.65).toRgbString(),"&:hover":{color:o}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${2*e.paddingXS}px)`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${2*e.paddingXS}px)`,paddingInlineStart:0}}})}},it=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};var ot=it,at=n(79024);const st=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:(0,r.A)((0,r.A)({},(0,Ve.dF)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}};var lt=(0,Qe.A)("Upload",e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightLG:o}=e,a=Math.round(n*r),s=(0,ze.h1)(e,{uploadThumbnailSize:2*t,uploadProgressOffset:a/2+i,uploadPicCardSize:2.55*o});return[st(s),Ge(s),nt(s),rt(s),Ye(s),et(s),ot(s),(0,at.A)(s)]}),ct=n(93758),ut=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},dt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const ht=`__LIST_IGNORE_${Date.now()}__`;var ft=(0,o.pM)({compatConfig:{MODE:3},name:"AUpload",inheritAttrs:!1,props:(0,s.A)(he(),{type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",supportServerRender:!0}),setup(e,t){let{slots:n,attrs:s,expose:l}=t;const c=(0,Ue.db)(),{prefixCls:u,direction:d,disabled:h}=(0,Oe.A)("upload",e),[f,p]=lt(u),g=(0,ct.p)(),m=(0,o.EW)(()=>{var e;return null!==(e=h.value)&&void 0!==e?e:g.value}),[v,A]=(0,$e.A)(e.defaultFileList||[],{value:(0,a.lW)(e,"fileList"),postState:e=>{const t=Date.now();return(null!==e&&void 0!==e?e:[]).map((e,n)=>(e.uid||Object.isFrozen(e)||(e.uid=`__AUTO__${t}_${n}__`),e))}}),b=(0,a.KR)("drop"),y=(0,a.KR)(null);(0,o.sV)(()=>{(0,je.A)(void 0!==e.fileList||void 0===s.value,"Upload","`value` is not a valid prop, do you mean `fileList`?"),(0,je.A)(void 0===e.transformFile,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),(0,je.A)(void 0===e.remove,"Upload","`remove` props is deprecated. Please use `remove` event.")});const w=(t,n,r)=>{var i,o;let a=[...n];1===e.maxCount?a=a.slice(-1):e.maxCount&&(a=a.slice(0,e.maxCount)),A(a);const s={file:t,fileList:a};r&&(s.event=r),null===(i=e["onUpdate:fileList"])||void 0===i||i.call(e,s.fileList),null===(o=e.onChange)||void 0===o||o.call(e,s),c.onFieldChange()},_=(t,n)=>ut(this,void 0,void 0,function*(){const{beforeUpload:r,transformFile:i}=e;let o=t;if(r){const e=yield r(t,n);if(!1===e)return!1;if(delete t[ht],e===ht)return Object.defineProperty(t,ht,{value:!0,configurable:!0}),!1;"object"===typeof e&&e&&(o=e)}return i&&(o=yield i(o)),o}),x=e=>{const t=e.filter(e=>!e.file[ht]);if(!t.length)return;const n=t.map(e=>pe(e.file));let r=[...v.value];n.forEach(e=>{r=ge(e,r)}),n.forEach((e,n)=>{let i=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(o){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,i=n}w(i,r)})},E=(e,t,n)=>{try{"string"===typeof e&&(e=JSON.parse(e))}catch(o){}if(!me(t,v.value))return;const r=pe(t);r.status="done",r.percent=100,r.response=e,r.xhr=n;const i=ge(r,v.value);w(r,i)},S=(e,t)=>{if(!me(t,v.value))return;const n=pe(t);n.status="uploading",n.percent=e.percent;const r=ge(n,v.value);w(n,r,e)},C=(e,t,n)=>{if(!me(n,v.value))return;const r=pe(n);r.error=e,r.response=t,r.status="error";const i=ge(r,v.value);w(r,i)},T=t=>{let n;const i=e.onRemove||e.remove;Promise.resolve("function"===typeof i?i(t):i).then(e=>{var i,o;if(!1===e)return;const a=ve(t,v.value);a&&(n=(0,r.A)((0,r.A)({},t),{status:"removed"}),null===(i=v.value)||void 0===i||i.forEach(e=>{const t=void 0!==n.uid?"uid":"name";e[t]!==n[t]||Object.isFrozen(e)||(e.status="removed")}),null===(o=y.value)||void 0===o||o.abort(n),w(n,a))})},k=t=>{var n;b.value=t.type,"drop"===t.type&&(null===(n=e.onDrop)||void 0===n||n.call(e,t))};l({onBatchStart:x,onSuccess:E,onProgress:S,onError:C,fileList:v,upload:y});const[O]=(0,Pe.n)("Upload",Fe.A.Upload,(0,o.EW)(()=>e.locale)),M=(t,i)=>{const{removeIcon:a,previewIcon:s,downloadIcon:l,previewFile:c,onPreview:d,onDownload:h,isImageUrl:f,progress:p,itemRender:g,iconRender:A,showUploadList:b}=e,{showDownloadIcon:y,showPreviewIcon:w,showRemoveIcon:_}="boolean"===typeof b?{}:b;return b?(0,o.bF)(Be,{prefixCls:u.value,listType:e.listType,items:v.value,previewFile:c,onPreview:d,onDownload:h,onRemove:T,showRemoveIcon:!m.value&&_,showPreviewIcon:w,showDownloadIcon:y,removeIcon:a,previewIcon:s,downloadIcon:l,iconRender:A,locale:O.value,isImageUrl:f,progress:p,itemRender:g,appendActionVisible:i,appendAction:t},(0,r.A)({},n)):null===t||void 0===t?void 0:t()};return()=>{var t,a,l;const{listType:h,type:g}=e,{class:A,style:w}=s,T=dt(s,["class","style"]),O=(0,r.A)((0,r.A)((0,r.A)({onBatchStart:x,onError:C,onProgress:S,onSuccess:E},T),e),{id:null!==(t=e.id)&&void 0!==t?t:c.id.value,prefixCls:u.value,beforeUpload:_,onChange:void 0,disabled:m.value});delete O.remove,n.default&&!m.value||delete O.id;const I={[`${u.value}-rtl`]:"rtl"===d.value};if("drag"===g){const e=(0,He.A)(u.value,{[`${u.value}-drag`]:!0,[`${u.value}-drag-uploading`]:v.value.some(e=>"uploading"===e.status),[`${u.value}-drag-hover`]:"dragover"===b.value,[`${u.value}-disabled`]:m.value,[`${u.value}-rtl`]:"rtl"===d.value},s.class,p.value);return f((0,o.bF)("span",(0,i.A)((0,i.A)({},s),{},{class:(0,He.A)(`${u.value}-wrapper`,I,A,p.value)}),[(0,o.bF)("div",{class:e,onDrop:k,onDragover:k,onDragleave:k,style:s.style},[(0,o.bF)(K,(0,i.A)((0,i.A)({},O),{},{ref:y,class:`${u.value}-btn`}),(0,i.A)({default:()=>[(0,o.bF)("div",{class:`${u.value}-drag-container`},[null===(a=n.default)||void 0===a?void 0:a.call(n)])]},n))]),M()]))}const D=(0,He.A)(u.value,{[`${u.value}-select`]:!0,[`${u.value}-select-${h}`]:!0,[`${u.value}-disabled`]:m.value,[`${u.value}-rtl`]:"rtl"===d.value}),N=(0,Ne.MI)(null===(l=n.default)||void 0===l?void 0:l.call(n)),R=e=>(0,o.bF)("div",{class:D,style:e},[(0,o.bF)(K,(0,i.A)((0,i.A)({},O),{},{ref:y}),n)]);return f("picture-card"===h?(0,o.bF)("span",(0,i.A)((0,i.A)({},s),{},{class:(0,He.A)(`${u.value}-wrapper`,`${u.value}-picture-card-wrapper`,I,s.class,p.value)}),[M(R,!(!N||!N.length))]):(0,o.bF)("span",(0,i.A)((0,i.A)({},s),{},{class:(0,He.A)(`${u.value}-wrapper`,I,s.class,p.value)}),[R(N&&N.length?void 0:{display:"none"}),M()]))}}}),pt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},gt=(0,o.pM)({compatConfig:{MODE:3},name:"AUploadDragger",inheritAttrs:!1,props:he(),setup(e,t){let{slots:n,attrs:i}=t;return()=>{const{height:t}=e,a=pt(e,["height"]),{style:s}=i,l=pt(i,["style"]),c=(0,r.A)((0,r.A)((0,r.A)({},a),l),{type:"drag",style:(0,r.A)((0,r.A)({},s),{height:"number"===typeof t?`${t}px`:t})});return(0,o.bF)(ft,c,n)}}});var mt=(0,r.A)(ft,{Dragger:gt,LIST_IGNORE:ht,install(e){return e.component(ft.name,ft),e.component(gt.name,gt),e}})},62380:function(e,t,n){"use strict";n.d(t,{Ay:function(){return F},jZ:function(){return P}});n(18111),n(20116),n(7588);var r=n(51137),i=n(56768),o=n(90144),a=n(81425),s=n(60056),l=n(1471);const c={prefixCls:String,id:String,overlayInnerStyle:a.A.any};var u=(0,i.pM)({compatConfig:{MODE:3},name:"TooltipContent",props:c,setup(e,t){let{slots:n}=t;return()=>{var t;return(0,i.bF)("div",{class:`${e.prefixCls}-inner`,id:e.id,role:"tooltip",style:e.overlayInnerStyle},[null===(t=n.overlay)||void 0===t?void 0:t.call(n)])}}}),d=n(44832),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function f(){}var p=(0,i.pM)({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:a.A.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:a.A.string.def("right"),transitionName:String,animation:a.A.any,afterVisibleChange:a.A.func.def(()=>{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:a.A.string.def("rc-tooltip"),mouseEnterDelay:a.A.number.def(.1),mouseLeaveDelay:a.A.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:a.A.object.def(()=>({})),arrowContent:a.A.any.def(null),tipId:String,builtinPlacements:a.A.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function,arrow:{type:Boolean,default:!0}},setup(e,t){let{slots:n,attrs:a,expose:c}=t;const p=(0,o.IJ)(),g=()=>{const{prefixCls:t,tipId:r,overlayInnerStyle:o}=e;return[e.arrow?(0,i.bF)("div",{class:`${t}-arrow`,key:"arrow"},[(0,d.rU)(n,e,"arrowContent")]):null,(0,i.bF)(u,{key:"content",prefixCls:t,id:r,overlayInnerStyle:o},{overlay:n.overlay})]},m=()=>p.value.getPopupDomNode();c({getPopupDomNode:m,triggerDOM:p,forcePopupAlign:()=>{var e;return null===(e=p.value)||void 0===e?void 0:e.forcePopupAlign()}});const v=(0,o.IJ)(!1),A=(0,o.IJ)(!1);return(0,i.nT)(()=>{const{destroyTooltipOnHide:t}=e;if("boolean"===typeof t)v.value=t;else if(t&&"object"===typeof t){const{keepParent:e}=t;v.value=!0===e,A.value=!1===e}}),()=>{const{overlayClassName:t,trigger:o,mouseEnterDelay:c,mouseLeaveDelay:u,overlayStyle:d,prefixCls:m,afterVisibleChange:b,transitionName:y,animation:w,placement:_,align:x,destroyTooltipOnHide:E,defaultVisible:S}=e,C=h(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),T=(0,r.A)({},C);void 0!==e.visible&&(T.popupVisible=e.visible);const k=(0,r.A)((0,r.A)((0,r.A)({popupClassName:t,prefixCls:m,action:o,builtinPlacements:l.D,popupPlacement:_,popupAlign:x,afterPopupVisibleChange:b,popupTransitionName:y,popupAnimation:w,defaultPopupVisible:S,destroyPopupOnHide:v.value,autoDestroy:A.value,mouseLeaveDelay:u,popupStyle:d,mouseEnterDelay:c},T),a),{onPopupVisibleChange:e.onVisibleChange||f,onPopupAlign:e.onPopupAlign||f,ref:p,arrow:!!e.arrow,popup:g()});return(0,i.bF)(s.A,k,{default:n.default})}}}),g=p,m=n(49974),v=n(73429),A=n(82978),b=n(17657),y=n(60674),w=n(9818),_=n(59293),x=n(32545),E=n(41050);function S(e,t){const n=(0,E.nP)(t),r=(0,m.A)({[`${e}-${t}`]:t&&n}),i={},o={};return t&&!n&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:o}}var C=n(94012),T=n(9519),k=n(90112),O=n(36068),M=n(39870),I=n(55798);const D=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:i,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d,tooltipRadiusOuter:h}=e;return[{[t]:(0,r.A)((0,r.A)((0,r.A)((0,r.A)({},(0,O.dF)(e)),{position:"absolute",zIndex:s,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${u/2}px ${d}px`,color:i,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:c},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(a,I.Zs)}},[`${t}-content`]:{position:"relative"}}),(0,M.n)(e,(e,n)=>{let{darkColor:r}=n;return{[`&${t}-${e}`]:{[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{"--antd-arrow-background-color":r}}}})),{"&-rtl":{direction:"rtl"}})},(0,I.Ay)((0,T.h1)(e,{borderRadiusOuter:h}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]};var N=(e,t)=>{const n=(0,k.A)("Tooltip",e=>{if(!1===(null===t||void 0===t?void 0:t.value))return[];const{borderRadius:n,colorTextLightSolid:r,colorBgDefault:i,borderRadiusOuter:o}=e,a=(0,T.h1)(e,{tooltipMaxWidth:250,tooltipColor:r,tooltipBorderRadius:n,tooltipBg:i,tooltipRadiusOuter:o>4?4:o});return[D(a),(0,C.aB)(e,"zoom-big-fast")]},e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}});return n(e)},R=n(51589);const L=(e,t)=>{const n={},i=(0,r.A)({},e);return t.forEach(t=>{e&&t in e&&(n[t]=e[t],delete i[t])}),{picked:n,omitted:i}},B=()=>(0,r.A)((0,r.A)({},(0,b.A)()),{title:a.A.any}),P=()=>({trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0});var F=(0,i.pM)({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:(0,v.A)(B(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(e,t){let{slots:n,emit:a,attrs:s,expose:l}=t;const{prefixCls:c,getPopupContainer:u,direction:h,rootPrefixCls:f}=(0,y.A)("tooltip",e),p=(0,i.EW)(()=>{var t;return null!==(t=e.open)&&void 0!==t?t:e.visible}),v=(0,o.KR)((0,_.A)([e.open,e.visible])),b=(0,o.KR)();let E;(0,i.wB)(p,e=>{x.A.cancel(E),E=(0,x.A)(()=>{v.value=!!e})});const C=()=>{var t;const r=null!==(t=e.title)&&void 0!==t?t:n.title;return!r&&0!==r},T=e=>{const t=C();void 0===p.value&&(v.value=!t&&e),t||(a("update:visible",e),a("visibleChange",e),a("update:open",e),a("openChange",e))},k=()=>b.value.getPopupDomNode();l({getPopupDomNode:k,open:v,forcePopupAlign:()=>{var e;return null===(e=b.value)||void 0===e?void 0:e.forcePopupAlign()}});const O=(0,i.EW)(()=>{var t;const{builtinPlacements:n,autoAdjustOverflow:r,arrow:i,arrowPointAtCenter:o}=e;let a=o;return"object"===typeof i&&(a=null!==(t=i.pointAtCenter)&&void 0!==t?t:o),n||(0,w.A)({arrowPointAtCenter:a,autoAdjustOverflow:r})}),M=e=>e||""===e,I=e=>{const t=e.type;if("object"===typeof t&&e.props&&((!0===t.__ANT_BUTTON||"button"===t)&&M(e.props.disabled)||!0===t.__ANT_SWITCH&&(M(e.props.disabled)||M(e.props.loading))||!0===t.__ANT_RADIO&&M(e.props.disabled))){const{picked:t,omitted:n}=L((0,d.gd)(e),["position","left","right","top","bottom","float","display","zIndex"]),o=(0,r.A)((0,r.A)({display:"inline-block"},t),{cursor:"not-allowed",lineHeight:1,width:e.props&&e.props.block?"100%":void 0}),a=(0,r.A)((0,r.A)({},n),{pointerEvents:"none"}),s=(0,A.Ob)(e,{style:a},!0);return(0,i.bF)("span",{style:o,class:`${c.value}-disabled-compatible-wrapper`},[s])}return e},D=()=>{var t,r;return null!==(t=e.title)&&void 0!==t?t:null===(r=n.title)||void 0===r?void 0:r.call(n)},B=(e,t)=>{const n=O.value,r=Object.keys(n).find(e=>{var r,i;return n[e].points[0]===(null===(r=t.points)||void 0===r?void 0:r[0])&&n[e].points[1]===(null===(i=t.points)||void 0===i?void 0:i[1])});if(r){const n=e.getBoundingClientRect(),i={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?i.top=n.height-t.offset[1]+"px":(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top=-t.offset[1]+"px"),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left=n.width-t.offset[0]+"px":(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left=-t.offset[0]+"px"),e.style.transformOrigin=`${i.left} ${i.top}`}},P=(0,i.EW)(()=>S(c.value,e.color)),F=(0,i.EW)(()=>s["data-popover-inject"]),[$,j]=N(c,(0,i.EW)(()=>!F.value));return()=>{var t,o;const{openClassName:a,overlayClassName:l,overlayStyle:y,overlayInnerStyle:w}=e;let _=null!==(o=(0,d.Gk)(null===(t=n.default)||void 0===t?void 0:t.call(n)))&&void 0!==o?o:null;_=1===_.length?_[0]:_;let x=v.value;if(void 0===p.value&&C()&&(x=!1),!_)return null;const E=I((0,d.zO)(_)&&!(0,d.zv)(_)?_:(0,i.bF)("span",null,[_])),S=(0,m.A)({[a||`${c.value}-open`]:!0,[E.props&&E.props.class]:E.props&&E.props.class}),k=(0,m.A)(l,{[`${c.value}-rtl`]:"rtl"===h.value},P.value.className,j.value),M=(0,r.A)((0,r.A)({},P.value.overlayStyle),w),N=P.value.arrowStyle,L=(0,r.A)((0,r.A)((0,r.A)({},s),e),{prefixCls:c.value,arrow:!!e.arrow,getPopupContainer:null===u||void 0===u?void 0:u.value,builtinPlacements:O.value,visible:x,ref:b,overlayClassName:k,overlayStyle:(0,r.A)((0,r.A)({},N),y),overlayInnerStyle:M,onVisibleChange:T,onPopupAlign:B,transitionName:(0,R.by)(f.value,"zoom-big-fast",e.transitionName)});return $((0,i.bF)(g,L,{default:()=>[v.value?(0,A.Ob)(E,{class:S}):E],arrowContent:()=>(0,i.bF)("span",{class:`${c.value}-arrow-content`},null),overlay:D}))}}})},62395:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n={N1:3,N2:3,N3:40,N4:10};function r(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return r%3===0;case t.Patterns.PATTERN011:return(n+r)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2===0;case t.Patterns.PATTERN101:return n*r%2+n*r%3===0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2===0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let r=0,i=0,o=0,a=null,s=null;for(let l=0;l<t;l++){i=o=0,a=s=null;for(let c=0;c<t;c++){let t=e.get(l,c);t===a?i++:(i>=5&&(r+=n.N1+(i-5)),a=t,i=1),t=e.get(c,l),t===s?o++:(o>=5&&(r+=n.N1+(o-5)),s=t,o=1)}i>=5&&(r+=n.N1+(i-5)),o>=5&&(r+=n.N1+(o-5))}return r},t.getPenaltyN2=function(e){const t=e.size;let r=0;for(let n=0;n<t-1;n++)for(let i=0;i<t-1;i++){const t=e.get(n,i)+e.get(n,i+1)+e.get(n+1,i)+e.get(n+1,i+1);4!==t&&0!==t||r++}return r*n.N2},t.getPenaltyN3=function(e){const t=e.size;let r=0,i=0,o=0;for(let n=0;n<t;n++){i=o=0;for(let a=0;a<t;a++)i=i<<1&2047|e.get(n,a),a>=10&&(1488===i||93===i)&&r++,o=o<<1&2047|e.get(a,n),a>=10&&(1488===o||93===o)&&r++}return r*n.N3},t.getPenaltyN4=function(e){let t=0;const r=e.data.length;for(let n=0;n<r;n++)t+=e.data[n];const i=Math.abs(Math.ceil(100*t/r/5)-10);return i*n.N4},t.applyMask=function(e,t){const n=t.size;for(let i=0;i<n;i++)for(let o=0;o<n;o++)t.isReserved(o,i)||t.xor(o,i,r(e,o,i))},t.getBestMask=function(e,n){const r=Object.keys(t.Patterns).length;let i=0,o=1/0;for(let a=0;a<r;a++){n(a),t.applyMask(a,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),r<o&&(o=r,i=a)}return i}},62529:function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},62568:function(e,t,n){"use strict";n.d(t,{Ay:function(){return S}});var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(49974),l=n(32881),c=n(44832),u=n(98684),d=n(56405),h=n(60674),f=n(93758),p=n(81425),g=n(44678);const m=()=>({name:String,prefixCls:String,options:(0,g.MY)([]),disabled:Boolean,id:String}),v=()=>(0,i.A)((0,i.A)({},m()),{defaultValue:(0,g.MY)(),value:(0,g.MY)(),onChange:(0,g.Fg)(),"onUpdate:value":(0,g.Fg)()}),A=()=>({prefixCls:String,defaultChecked:(0,g.HE)(),checked:(0,g.HE)(),disabled:(0,g.HE)(),isGroup:(0,g.HE)(),value:p.A.any,name:String,id:String,indeterminate:(0,g.HE)(),type:(0,g.WO)("checkbox"),autofocus:(0,g.HE)(),onChange:(0,g.Fg)(),"onUpdate:checked":(0,g.Fg)(),onClick:(0,g.Fg)(),skipGroup:(0,g.HE)(!1)}),b=()=>(0,i.A)((0,i.A)({},A()),{indeterminate:(0,g.HE)(!1)}),y=Symbol("CheckboxGroupContext");var w=n(43680),_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},x=(0,o.pM)({compatConfig:{MODE:3},name:"ACheckbox",inheritAttrs:!1,__ANT_CHECKBOX:!0,props:b(),setup(e,t){let{emit:n,attrs:p,slots:g,expose:m}=t;const v=(0,d.db)(),A=d.$W.useInject(),{prefixCls:b,direction:x,disabled:E}=(0,h.A)("checkbox",e),S=(0,f.p)(),[C,T]=(0,w.Ay)(b),k=(0,o.WQ)(y,void 0),O=Symbol("checkboxUniId"),M=(0,o.EW)(()=>(null===k||void 0===k?void 0:k.disabled.value)||E.value);(0,o.nT)(()=>{!e.skipGroup&&k&&k.registerValue(O,e.value)}),(0,o.xo)(()=>{k&&k.cancelValue(O)}),(0,o.sV)(()=>{(0,u.Ay)(!(void 0===e.checked&&!k&&void 0!==e.value),"Checkbox","`value` is not validate prop, do you mean `checked`?")});const I=e=>{const t=e.target.checked;n("update:checked",t),n("change",e),v.onFieldChange()},D=(0,a.KR)(),N=()=>{var e;null===(e=D.value)||void 0===e||e.focus()},R=()=>{var e;null===(e=D.value)||void 0===e||e.blur()};return m({focus:N,blur:R}),()=>{var t;const a=(0,c.MI)(null===(t=g.default)||void 0===t?void 0:t.call(g)),{indeterminate:u,skipGroup:d,id:h=v.id.value}=e,f=_(e,["indeterminate","skipGroup","id"]),{onMouseenter:m,onMouseleave:y,onInput:w,class:E,style:O}=p,N=_(p,["onMouseenter","onMouseleave","onInput","class","style"]),R=(0,i.A)((0,i.A)((0,i.A)((0,i.A)({},f),{id:h,prefixCls:b.value}),N),{disabled:M.value});k&&!d?(R.onChange=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];n("change",...r),k.toggleOption({label:a,value:e.value})},R.name=k.name.value,R.checked=k.mergedValue.value.includes(e.value),R.disabled=M.value||S.value,R.indeterminate=u):R.onChange=I;const L=(0,s.A)({[`${b.value}-wrapper`]:!0,[`${b.value}-rtl`]:"rtl"===x.value,[`${b.value}-wrapper-checked`]:R.checked,[`${b.value}-wrapper-disabled`]:R.disabled,[`${b.value}-wrapper-in-form-item`]:A.isFormItemInput},E,T.value),B=(0,s.A)({[`${b.value}-indeterminate`]:u},T.value),P=u?"mixed":void 0;return C((0,o.bF)("label",{class:L,style:O,onMouseenter:m,onMouseleave:y},[(0,o.bF)(l.A,(0,r.A)((0,r.A)({"aria-checked":P},R),{},{class:B,ref:D}),null),a.length?(0,o.bF)("span",null,[a]):null]))}}}),E=(n(44114),n(18111),n(61701),(0,o.pM)({compatConfig:{MODE:3},name:"ACheckboxGroup",inheritAttrs:!1,props:v(),setup(e,t){let{slots:n,attrs:i,emit:s,expose:l}=t;const c=(0,d.db)(),{prefixCls:u,direction:f}=(0,h.A)("checkbox",e),p=(0,o.EW)(()=>`${u.value}-group`),[g,m]=(0,w.Ay)(p),v=(0,a.KR)((void 0===e.value?e.defaultValue:e.value)||[]);(0,o.wB)(()=>e.value,()=>{v.value=e.value||[]});const A=(0,o.EW)(()=>e.options.map(e=>"string"===typeof e||"number"===typeof e?{label:e,value:e}:e)),b=(0,a.KR)(Symbol()),_=(0,a.KR)(new Map),E=e=>{_.value.delete(e),b.value=Symbol()},S=(e,t)=>{_.value.set(e,t),b.value=Symbol()},C=(0,a.KR)(new Map);(0,o.wB)(b,()=>{const e=new Map;for(const t of _.value.values())e.set(t,!0);C.value=e});const T=t=>{const n=v.value.indexOf(t.value),r=[...v.value];-1===n?r.push(t.value):r.splice(n,1),void 0===e.value&&(v.value=r);const i=r.filter(e=>C.value.has(e)).sort((e,t)=>{const n=A.value.findIndex(t=>t.value===e),r=A.value.findIndex(e=>e.value===t);return n-r});s("update:value",i),s("change",i),c.onFieldChange()};return(0,o.Gt)(y,{cancelValue:E,registerValue:S,toggleOption:T,mergedValue:v,name:(0,o.EW)(()=>e.name),disabled:(0,o.EW)(()=>e.disabled)}),l({mergedValue:v}),()=>{var t;const{id:a=c.id.value}=e;let s=null;return A.value&&A.value.length>0&&(s=A.value.map(t=>{var r;return(0,o.bF)(x,{prefixCls:u.value,key:t.value.toString(),disabled:"disabled"in t?t.disabled:e.disabled,indeterminate:t.indeterminate,value:t.value,checked:-1!==v.value.indexOf(t.value),onChange:t.onChange,class:`${p.value}-item`},{default:()=>[void 0!==n.label?null===(r=n.label)||void 0===r?void 0:r.call(n,t):t.label]})})),g((0,o.bF)("div",(0,r.A)((0,r.A)({},i),{},{class:[p.value,{[`${p.value}-rtl`]:"rtl"===f.value},i.class,m.value],id:a}),[s||(null===(t=n.default)||void 0===t?void 0:t.call(n))]))}}}));x.Group=E,x.install=function(e){return e.component(x.name,x),e.component(E.name,E),e};var S=x},62573:function(e,t){"use strict";let n=!1;try{const e=Object.defineProperty({},"passive",{get(){n=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(r){}t.A=n},62598:function(e){function t(e){const t=["from","maintainer","expose","env","arg","user","onbuild","stopsignal"];return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:t,contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}e.exports=t},62963:function(e,t,n){"use strict";var r=n(52528);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},63025:function(e){function t(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}e.exports=t},63048:function(e,t,n){n(44114),n(18111),n(7588),n(61701),n(18237),n(79577),function(e,n){n(t)}(0,function(e){"use strict";function t(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function n(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function r(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function i(e){return a(e,"Function")}var o={}.toString,a=function(e,t){return o.call(e)==="[object "+t+"]"},s=function(e){return Array.isArray?Array.isArray(e):a(e,"Array")},l=function(e){if("object"!=typeof(t=e)||null===t||!a(e,"Object"))return!1;var t;if(null===Object.getPrototypeOf(e))return!0;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n},c=function(e){return a(e,"Number")},u=Object.values?function(e){return Object.values(e)}:function(e){var t,n=[],r=e,o=function(t,r){i(e)&&"prototype"===r||n.push(t)};if(r)if(s(r))for(var a=0,l=r.length;a<l&&!1!==o(r[a],a);a++);else if(t=typeof r,null!==r&&"object"==t||"function"==t)for(var c in r)if(r.hasOwnProperty(c)&&!1===o(r[c],c))break;return n},d=5;function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r+=1)!function e(t,n,r,i){for(var o in r=r||0,i=i||d,n){var a;n.hasOwnProperty(o)&&(null!==(a=n[o])&&l(a)?(l(t[o])||(t[o]={}),r<i?e(t[o],a,r+1,i):t[o]=n[o]):s(a)?(t[o]=[],t[o]=t[o].concat(a)):void 0!==a&&(t[o]=a))}}(e,t[r]);return e}function f(e){return e}!function(e,t){var n;if(i(e))return(n=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o,a=t?t.apply(this,r):r[0],s=n.cache;return s.has(a)?s.get(a):(o=e.apply(this,r),s.set(a,o),o)}).cache=new Map;throw new TypeError("Expected a function")}(function(e,t){var n=(t=void 0===t?{}:t).fontSize,r=t.fontFamily,i=t.fontWeight,o=t.fontStyle;t=t.fontVariant;return(p=p||document.createElement("canvas").getContext("2d")).font=[o,t,i,n+"px",r].join(" "),p.measureText(a(e,"String")?e:"").width},function(e,t){return function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}([e],u(t=void 0===t?{}:t)).join("")});var p,g="undefined"!=typeof Float32Array?Float32Array:Array;function m(){var e=new g(9);return g!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});var v=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=(t=t[8],n[0]),h=n[1],f=n[2],p=n[3],g=n[4],m=n[5],v=n[6],A=n[7];n=n[8];return e[0]=d*r+h*a+f*c,e[1]=d*i+h*s+f*u,e[2]=d*o+h*l+f*t,e[3]=p*r+g*a+m*c,e[4]=p*i+g*s+m*u,e[5]=p*o+g*l+m*t,e[6]=v*r+A*a+n*c,e[7]=v*i+A*s+n*u,e[8]=v*o+A*l+n*t,e};function A(){var e=new g(16);return g!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e}var b=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],h=t[9],f=t[10],p=t[11],g=t[12],m=t[13],v=t[14],A=(t=t[15],n[0]),b=n[1],y=n[2],w=n[3];return e[0]=A*r+b*s+y*d+w*g,e[1]=A*i+b*l+y*h+w*m,e[2]=A*o+b*c+y*f+w*v,e[3]=A*a+b*u+y*p+w*t,A=n[4],b=n[5],y=n[6],w=n[7],e[4]=A*r+b*s+y*d+w*g,e[5]=A*i+b*l+y*h+w*m,e[6]=A*o+b*c+y*f+w*v,e[7]=A*a+b*u+y*p+w*t,A=n[8],b=n[9],y=n[10],w=n[11],e[8]=A*r+b*s+y*d+w*g,e[9]=A*i+b*l+y*h+w*m,e[10]=A*o+b*c+y*f+w*v,e[11]=A*a+b*u+y*p+w*t,A=n[12],b=n[13],y=n[14],w=n[15],e[12]=A*r+b*s+y*d+w*g,e[13]=A*i+b*l+y*h+w*m,e[14]=A*o+b*c+y*f+w*v,e[15]=A*a+b*u+y*p+w*t,e};function y(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e?t.reduce(function(e,t){return function(n){return t(e(n))}},e):f}function w(e){return e instanceof Float32Array||e instanceof Array}function _(e,t,n){for(;e<t;)e+=2*Math.PI;for(;n<e;)e-=2*Math.PI;return e}function x(e,t,r,i,o){var a=(e=n(e,2))[0],s=(e=e[1],m());return a=[a,e],(e=s)[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=a[0],e[7]=a[1],e[8]=1,e}function E(e,...t){return t.reduce((e,t)=>n=>e(t(n)),e)}function S(e,t){return t-e?n=>(n-e)/(t-e):e=>.5}R=new g(3),g!=Float32Array&&(R[0]=0,R[1]=0,R[2]=0),R=new g(4),g!=Float32Array&&(R[0]=0,R[1]=0,R[2]=0,R[3]=0);const C=Math.sqrt(50),T=Math.sqrt(10),k=Math.sqrt(2);function O(e,t,n){return t=(t-e)/Math.max(0,n),e=Math.floor(Math.log(t)/Math.LN10),n=t/10**e,0<=e?(n>=C?10:n>=T?5:n>=k?2:1)*10**e:-(10**-e)/(n>=C?10:n>=T?5:n>=k?2:1)}const M=(e,t,n=5)=>{e=[e,t];let r,i=0,o=e.length-1,a=e[i],s=e[o];return s<a&&([a,s]=[s,a],[i,o]=[o,i]),0<(r=O(a,s,n))?(a=Math.floor(a/r)*r,s=Math.ceil(s/r)*r,r=O(a,s,n)):r<0&&(a=Math.ceil(a*r)/r,s=Math.floor(s*r)/r,r=O(a,s,n)),0<r?(e[i]=Math.floor(a/r)*r,e[o]=Math.ceil(s/r)*r):r<0&&(e[i]=Math.ceil(a*r)/r,e[o]=Math.floor(s*r)/r),e};function I(e){return null!=e&&!Number.isNaN(e)}function D(e,t){return n=>{n.prototype.rescale=function(){this.initRange(),this.nice();var[e]=this.chooseTransforms();this.composeOutput(e,this.chooseClamp(e))},n.prototype.initRange=function(){var t=this.options["interpolator"];this.options.range=e(t)},n.prototype.composeOutput=function(e,n){var r,{domain:i,interpolator:o,round:a}=this.getOptions(),i=t(i.map(e)),a=a?(r=o,e=>(e=r(e),c(e)?Math.round(e):e)):o;this.output=E(a,i,n,e)},n.prototype.invert=void 0}}var N,R={exports:{}},L={exports:{}},B=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||0<=e.length&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))},P=Array.prototype.concat,F=Array.prototype.slice,$=L.exports=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];B(i)?t=P.call(t,F.call(i)):t.push(i)}return t},j=($.wrap=function(e){return function(){return e($(arguments))}},{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]}),H=L.exports,U=Object.hasOwnProperty,Q=Object.create(null);for(N in j)U.call(j,N)&&(Q[j[N]]=N);var z=R.exports={to:{},get:{}};function W(e,t,n){return Math.min(Math.max(t,e),n)}function G(e){return e=Math.round(e).toString(16).toUpperCase(),e.length<2?"0"+e:e}z.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=z.get.hsl(e),n="hsl";break;case"hwb":t=z.get.hwb(e),n="hwb";break;default:t=z.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},z.get.rgb=function(e){if(!e)return null;var t,n,r,i=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(r=t[2],t=t[1],n=0;n<3;n++){var o=2*n;i[n]=parseInt(t.slice(o,2+o),16)}r&&(i[3]=parseInt(r,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(r=(t=t[1])[3],n=0;n<3;n++)i[n]=parseInt(t[n]+t[n],16);r&&(i[3]=parseInt(r+r,16)/255)}else{if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/))for(n=0;n<3;n++)i[n]=parseInt(t[n+1],0);else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:U.call(j,t[1])?((i=j[t[1]])[3]=1,i):null:null;for(n=0;n<3;n++)i[n]=Math.round(2.55*parseFloat(t[n+1]))}t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}for(n=0;n<3;n++)i[n]=W(i[n],0,255);return i[3]=W(i[3],0,1),i},z.get.hsl=function(e){var t;return(e=e&&e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/))?(t=parseFloat(e[4]),[(parseFloat(e[1])%360+360)%360,W(parseFloat(e[2]),0,100),W(parseFloat(e[3]),0,100),W(isNaN(t)?1:t,0,1)]):null},z.get.hwb=function(e){var t;return(e=e&&e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/))?(t=parseFloat(e[4]),[(parseFloat(e[1])%360+360)%360,W(parseFloat(e[2]),0,100),W(parseFloat(e[3]),0,100),W(isNaN(t)?1:t,0,1)]):null},z.to.hex=function(){var e=H(arguments);return"#"+G(e[0])+G(e[1])+G(e[2])+(e[3]<1?G(Math.round(255*e[3])):"")},z.to.rgb=function(){var e=H(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},z.to.rgb.percent=function(){var e=H(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},z.to.hsl=function(){var e=H(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},z.to.hwb=function(){var e=H(arguments),t="";return 4<=e.length&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},z.to.keyword=function(e){return Q[e.slice(0,3)]};var V=R.exports;function K(e,t,n){let r=n;return r<0&&(r+=1),1<r&&--r,r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Y(e){var t,n,r;e=V.get(e);return e?(({model:e,value:t}=e),"rgb"===e?t:"hsl"===e?(t=(e=t)[0]/360,n=e[1]/100,r=e[2]/100,e=e[3],0==n?[255*r,255*r,255*r,e]:[255*K(n=2*r-(r=r<.5?r*(1+n):r+n-r*n),r,t+1/3),255*K(n,r,t),255*K(n,r,t-1/3),e]):null):null}const q=(e,t)=>n=>e*(1-n)+t*n,X=(e,t)=>{if("number"==typeof e&&"number"==typeof t)return q(e,t);if("string"!=typeof e||"string"!=typeof t)return()=>e;{var n=e,r=t;const i=Y(n),o=Y(r);return null===i||null===o?i?()=>n:()=>r:e=>{var t=new Array(4);for(let u=0;u<4;u+=1){var n=i[u],r=o[u];t[u]=n*(1-e)+r*e}var[a,s,l,c]=t;return`rgba(${Math.round(a)}, ${Math.round(s)}, ${Math.round(l)}, ${c})`}}},J=(e,t)=>{const n=q(e,t);return e=>Math.round(n(e))};function Z({map:e,initKey:t},n){return t=t(n),e.has(t)?e.get(t):n}function ee(e){return"object"==typeof e?e.valueOf():e}class te extends Map{constructor(e){if(super(),this.map=new Map,this.initKey=ee,null!==e)for(var[t,n]of e)this.set(t,n)}get(e){return super.get(Z({map:this.map,initKey:this.initKey},e))}has(e){return super.has(Z({map:this.map,initKey:this.initKey},e))}set(e,t){return super.set(([{map:e,initKey:n},r]=[{map:this.map,initKey:this.initKey},e],n=n(r),e.has(n)?e.get(n):(e.set(n,r),r)),t);var n,r}delete(e){return super.delete(([{map:e,initKey:t},n]=[{map:this.map,initKey:this.initKey},e],t=t(n),e.has(t)&&(n=e.get(t),e.delete(t)),n));var t,n}}class ne{constructor(e){this.options=h({},this.getDefaultOptions()),this.update(e)}getOptions(){return this.options}update(e={}){this.options=h({},this.options,e),this.rescale(e)}rescale(e){}}const re=Symbol("defaultUnknown");function ie(e,t,n){for(let r=0;r<t.length;r+=1)e.has(t[r])||e.set(n(t[r]),r)}function oe(e){var{value:e,from:t,to:n,mapper:r,notFoundReturn:i}=e;let o=r.get(e);if(void 0===o){if(i!==re)return i;o=t.push(e)-1,r.set(e,o)}return n[o%n.length]}function ae(e){return e instanceof Date?e=>""+e:"object"==typeof e?e=>JSON.stringify(e):e=>e}class se extends ne{getDefaultOptions(){return{domain:[],range:[],unknown:re}}constructor(e){super(e)}map(e){return 0===this.domainIndexMap.size&&ie(this.domainIndexMap,this.getDomain(),this.domainKey),oe({value:this.domainKey(e),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(e){return 0===this.rangeIndexMap.size&&ie(this.rangeIndexMap,this.getRange(),this.rangeKey),oe({value:this.rangeKey(e),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(e){var[t]=this.options.domain,[n]=this.options.range;this.domainKey=ae(t),this.rangeKey=ae(n),this.rangeIndexMap?(e&&!e.range||this.rangeIndexMap.clear(),e&&!e.domain&&!e.compare||(this.domainIndexMap.clear(),this.sortedDomain=void 0)):(this.rangeIndexMap=new Map,this.domainIndexMap=new Map)}clone(){return new se(this.options)}getRange(){return this.options.range}getDomain(){var e,t;return this.sortedDomain||(({domain:e,compare:t}=this.options),this.sortedDomain=t?[...e].sort(t):e),this.sortedDomain}}function le(e){const{domain:t,range:n,paddingOuter:r,paddingInner:i,flex:o,round:a,align:s}=e;var l=t.length,c=0<(c=(e=l)-(u=o).length)?[...u,...new Array(c).fill(1)]:c<0?u.slice(0,e):u,[e,u]=n,u=u-e,d=u/(2/l*r+1-1/l*i);const h=d*i/l;d-=l*h;const f=function(e){const t=Math.min(...e);return e.map(e=>e/t)}(c),p=d/f.reduce((e,t)=>e+t);c=new te(t.map((e,t)=>(t=f[t]*p,[e,a?Math.floor(t):t])));var g=new te(t.map((e,t)=>(t=f[t]*p+h,[e,a?Math.floor(t):t])));d=Array.from(g.values()).reduce((e,t)=>e+t),e+=(u-(d-d/l*i))*s;let m=a?Math.round(e):e;var v=new Array(l);for(let b=0;b<l;b+=1){v[b]=(A=m,Math.round(1e12*A)/1e12);var A=t[b];m+=g.get(A)}return{valueBandWidth:c,valueStep:g,adjustedRange:v}}class ce extends se{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:re,flex:[]}}constructor(e){super(e)}clone(){return new ce(this.options)}getStep(e){return void 0===this.valueStep?1:"number"==typeof this.valueStep?this.valueStep:void 0===e?Array.from(this.valueStep.values())[0]:this.valueStep.get(e)}getBandWidth(e){return void 0===this.valueBandWidth?1:"number"==typeof this.valueBandWidth?this.valueBandWidth:void 0===e?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(e)}getRange(){return this.adjustedRange}getPaddingInner(){var{padding:e,paddingInner:t}=this.options;return 0<e?e:t}getPaddingOuter(){var{padding:e,paddingOuter:t}=this.options;return 0<e?e:t}rescale(){super.rescale();var{align:e,domain:t,range:n,round:r,flex:i}=this.options,{adjustedRange:e,valueBandWidth:n,valueStep:r}=function(e){var t=e["domain"];if(0===(t=t.length))return{valueBandWidth:void 0,valueStep:void 0,adjustedRange:[]};if(null!=(n=e.flex)&&n.length)return le(e);var{range:n,paddingOuter:e,paddingInner:r,round:i,align:o}=e;let a,s,l=n[0];return n=n[1]-l,a=n/Math.max(1,2*e+(t-r)),i&&(a=Math.floor(a)),l+=(n-a*(t-r))*o,s=a*(1-r),i&&(l=Math.round(l),s=Math.round(s)),e=new Array(t).fill(0).map((e,t)=>l+t*a),{valueStep:a,valueBandWidth:s,adjustedRange:e}}({align:e,range:n,round:r,flex:i,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:t});this.valueStep=r,this.valueBandWidth=n,this.adjustedRange=e}}const ue=(e,t,n)=>{let r,i,o=e,a=t;if(o===a&&0<n)return[o];let s=O(o,a,n);if(0===s||!Number.isFinite(s))return[];if(0<s){o=Math.ceil(o/s),a=Math.floor(a/s),i=new Array(r=Math.ceil(a-o+1));for(let e=0;e<r;e+=1)i[e]=(o+e)*s}else{s=-s,o=Math.ceil(o*s),a=Math.floor(a*s),i=new Array(r=Math.ceil(a-o+1));for(let e=0;e<r;e+=1)i[e]=(o+e)/s}return i},de=(e,t,n)=>{var[e,r]=e,[t,i]=t;let o,a;return E(a=e<r?(o=S(e,r),n(t,i)):(o=S(r,e),n(i,t)),o)},he=(e,t,n)=>{const r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r);var a=e[0]>e[r],s=a?[...e].reverse():e,l=a?[...t].reverse():t;for(let c=0;c<r;c+=1)i[c]=S(s[c],s[c+1]),o[c]=n(l[c],l[c+1]);return t=>{var n=function(e,t,n,r,i){let o=n||0,a=r||e.length;for(var s=i||(e=>e);o<a;){var l=Math.floor((o+a)/2);s(e[l])>t?a=l:o=l+1}return o}(e,t,1,r)-1,a=i[n];return E(o[n],a)(t)}},fe=(e,t,n,r)=>(2<Math.min(e.length,t.length)?he:de)(e,t,r?J:n);class pe extends ne{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:q,tickCount:5}}map(e){return I(e)?this.output(e):this.options.unknown}invert(e){return I(e)?this.input(e):this.options.unknown}nice(){var e,t,n,r;this.options.nice&&([e,t,n,...r]=this.getTickMethodOptions(),this.options.domain=this.chooseNice()(e,t,n,...r))}getTicks(){var e=this.options["tickMethod"],[t,n,r,...i]=this.getTickMethodOptions();return e(t,n,r,...i)}getTickMethodOptions(){var{domain:e,tickCount:t}=this.options;return[e[0],e[e.length-1],t]}chooseNice(){return M}rescale(){this.nice();var[e,t]=this.chooseTransforms();this.composeOutput(e,this.chooseClamp(e)),this.composeInput(e,t,this.chooseClamp(t))}chooseClamp(e){var{clamp:t,range:n}=this.options,n=(e=this.options.domain.map(e),Math.min(e.length,n.length));if(t){t=e[0],e=e[n-1];const r=e<t?e:t,i=e<t?t:e;return e=>Math.min(Math.max(r,e),i)}return f}composeOutput(e,t){var{domain:n,range:r,round:i,interpolate:o}=this.options,n=fe(n.map(e),r,o,i);this.output=E(n,t,e)}composeInput(e,t,n){var{domain:r,range:i}=this.options,i=fe(i,r.map(e),q);this.input=E(t,n,i)}}class ge extends pe{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:X,tickMethod:ue,tickCount:5}}chooseTransforms(){return[f,f]}clone(){return new ge(this.options)}}class me extends ce{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:re,paddingInner:1,paddingOuter:0}}constructor(e){super(e)}getPaddingInner(){return 1}clone(){return new me(this.options)}update(e){super.update(e)}getPaddingOuter(){return this.options.padding}}function ve(e,t){for(var n=[],r=0,i=e.length;r<i;r++)n.push(e[r].substr(0,t));return n}L=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],R=["January","February","March","April","May","June","July","August","September","October","November","December"];var Ae,be,ye=ve(R,3);!function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o,a=i[r];for(o in a)e[o]=a[o]}}({},{dayNamesShort:ve(L,3),dayNames:L,monthNamesShort:ye,monthNames:R,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][3<e%10?0:(e-e%10!=10?1:0)*e%10]}});let we=Ae=class extends ge{getDefaultOptions(){return{domain:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:f,tickMethod:ue,tickCount:5}}constructor(e){super(e)}clone(){return new Ae(this.options)}};we=Ae=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(o<3?i(a):3<o?i(t,n,a):i(t,n))||a);return 3<o&&a&&Object.defineProperty(t,n,a),a}([D(function(e){return[e(0),e(1)]},e=>{var[e,t]=e;return E(q(0,1),S(e,t))})],we);let _e=be=class extends ge{getDefaultOptions(){return{domain:[0,.5,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:f,tickMethod:ue,tickCount:5}}constructor(e){super(e)}clone(){return new be(this.options)}};function xe(e,t,r,i,o){var a=new ge({range:[t,t+i]}),s=new ge({range:[r,r+o]});return{transform:function(e){e=n(e,2);var t=e[0];e=e[1];return[a.map(t),s.map(e)]},untransform:function(e){e=n(e,2);var t=e[0];e=e[1];return[a.invert(t),s.invert(e)]}}}function Ee(e,t,r,i,o){return(0,n(e,1)[0])(t,r,i,o)}function Se(e,t,r,i,o){return n(e,1)[0]}function Ce(e,t,r,i,o){var a=(e=n(e,4))[0],s=e[1],l=e[2],c=(e=e[3],new ge({range:[l,e]})),u=new ge({range:[a,s]}),d=1<(l=o/i)?1:l,h=1<l?1/l:1;return{transform:function(e){e=n(e,2);var t=e[0];e=e[1],t=u.map(t),e=c.map(e);return[e*Math.cos(t)*d*.5+.5,e*Math.sin(t)*h*.5+.5]},untransform:function(e){e=n(e,2);var t=e[0],r=(e=e[1],t=2*(t-.5)/d,e=2*(e-.5)/h,Math.sqrt(Math.pow(t,2)+Math.pow(e,2)));e=_(Math.atan2(e,t),a,s);return[u.invert(e),c.invert(r)]}}}function Te(e,t,r,i,o){return{transform:function(e){e=n(e,2);var t=e[0];return[e[1],t]},untransform:function(e){e=n(e,2);var t=e[0];return[e[1],t]}}}function ke(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return Re.apply(void 0,r([[-1,-1]],n(t),!1))}function Oe(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return Re.apply(void 0,r([[-1,1]],n(t),!1))}function Me(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return Re.apply(void 0,r([[1,-1]],n(t),!1))}function Ie(e,t,r,i,o){e=n(e,1)[0];var a,s=m();return a=Math.sin(e),e=Math.cos(e),s[0]=e,s[1]=a,s[2]=0,s[3]=-a,s[4]=e,s[5]=0,s[6]=0,s[7]=0,s[8]=1,s}function De(e,t,r,i,o){var a=(e=n(e,4))[0],s=e[1],l=e[2],c=(e[3]-l)/(+s/(2*Math.PI)+1),u=c/(2*Math.PI),d=new ge({range:[l,l+.99*c]}),h=new ge({range:[a,s]}),f=1<(e=o/i)?1:e,p=1<e?1/e:1;return{transform:function(e){e=n(e,2);var t=e[0];e=e[1],t=h.map(t),e=d.map(e);return[Math.cos(t)*(u*t+e)*f*.5+.5,Math.sin(t)*(u*t+e)*p*.5+.5]},untransform:function(e){e=n(e,2);var t=e[0],r=(e=e[1],t=2*(t-.5)/f,e=2*(e-.5)/p,Math.sqrt(Math.pow(t,2)+Math.pow(e,2)));e=_(Math.atan2(e,t)+Math.floor(r/c)*Math.PI*2,a,s),t=r-u*e;return[h.invert(e),d.invert(t)]}}}function Ne(e,t,r,i,o){var a=(e=n(e,4))[0],s=e[1],l=e[2],c=(e=e[3],new ge({range:[l,e]}));return{transform:function(e){for(var t=[],n=e.length,r=new me({domain:new Array(n).fill(0).map(function(e,t){return t}),range:[a,s]}),i=0;i<n;i++){var o=e[i],l=r.map(i);o=c.map(o);t.push(l,o)}return t},untransform:function(e){for(var t=[],n=0;n<e.length;n+=2){var r=e[n+1];t.push(c.invert(r))}return t}}}_e=be=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;0<=s;s--)(i=e[s])&&(a=(o<3?i(a):3<o?i(t,n,a):i(t,n))||a);return 3<o&&a&&Object.defineProperty(t,n,a),a}([D(function(e){return[e(0),e(.5),e(1)]},e=>{const[t,n,r]=e,i=E(q(0,.5),S(t,n)),o=E(q(.5,1),S(n,r));return e=>(t>r?e<n?o:i:e<n?i:o)(e)})],_e);var Re=function(e,t,r,i,o){e=n(e,2);var a=e[0],s=(e=e[1],m());return a=[a,e],(e=s)[0]=a[0],e[1]=0,e[2]=0,e[3]=0,e[4]=a[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e};function Le(e){return 1/Math.tan(e)}function Be(e,t,r,i,o){var a=Le(n(e,1)[0]);return{transform:function(e){e=n(e,2);var t=e[0];e=e[1];return[t+e*a,e]},untransform:function(e){e=n(e,2);var t=e[0];e=e[1];return[t-e*a,e]}}}function Pe(e,t,r,i,o){var a=Le(n(e,1)[0]);return{transform:function(e){e=n(e,2);var t=e[0];return[t,e[1]+t*a]},untransform:function(e){e=n(e,2);var t=e[0];return[t,e[1]-t*a]}}}function Fe(e,t,n,r,i){var o=e<t;i=(o?t-r:i-t)||i-r,r=o?-1:1;return r*i*(n+1)/(n+i/((e-t)*r))+t}function $e(e,t,n,r,i){var o=e<t;i=(o?t-r:i-t)||i-r;return i/(i*(n+1)/(e-t)-n*(o?-1:1))+t}function je(e,t,n){return n?new ge({range:[0,1],domain:[0,t]}).map(e):e}function He(e,t,r,i,o){var a=(e=n(e,3))[0],s=e[1],l=(e=e[2],je(a,i,void 0!==e&&e));return{transform:function(e){e=n(e,2);var t=e[0];e=e[1];return[Fe(t,l,s,0,1),e]},untransform:function(e){e=n(e,2);var t=e[0];e=e[1];return[$e(t,l,s,0,1),e]}}}function Ue(e,t,r,i,o){var a=(e=n(e,3))[0],s=e[1],l=(e=e[2],je(a,o,void 0!==e&&e));return{transform:function(e){return e=n(e,2),[e[0],Fe(e[1],l,s,0,1)]},untransform:function(e){return e=n(e,2),[e[0],$e(e[1],l,s,0,1)]}}}function Qe(e,t,r,i,o){var a=(e=n(e,5))[0],s=e[1],l=e[2],c=e[3],u=(e=e[4],je(a,i,e=void 0!==e&&e)),d=je(s,o,e);return{transform:function(e){e=n(e,2);var t=e[0];e=e[1];return[Fe(t,u,l,0,1),Fe(e,d,c,0,1)]},untransform:function(e){e=n(e,2);var t=e[0];e=e[1];return[$e(t,u,l,0,1),$e(e,d,c,0,1)]}}}function ze(e,t,r,i,o){var a=(e=n(e,5))[0],s=e[1],l=e[2],c=e[3],u=(e=void 0!==(e=e[4])&&e,new ge({range:[0,i]})),d=new ge({range:[0,o]}),h=e?a:u.map(a),f=e?s:d.map(s);return{transform:function(e){e=n(e,2);var t=e[0],r=(e=e[1],u.map(t)-h),i=d.map(e)-f,o=Math.sqrt(r*r+i*i);return l<o?[t,e]:(t=Fe(o,0,c,0,l),e=Math.atan2(i,r),o=h+t*Math.cos(e),i=f+t*Math.sin(e),[u.invert(o),d.invert(i)])},untransform:function(e){e=n(e,2);var t=e[0],r=(e=e[1],u.map(t)-h),i=d.map(e)-f,o=Math.sqrt(r*r+i*i);return l<o?[t,e]:(t=$e(o,0,c,0,l),e=Math.atan2(i,r),o=h+t*Math.cos(e),i=f+t*Math.sin(e),[u.invert(o),d.invert(i)])}}}function We(e,t,r,i,o,a,s){var l=new ge({range:[t,t+o]}),c=new ge({range:[r,r+a]}),u=new ge({range:[i,i+s]});return{transform:function(e){e=n(e,3);var t=e[0],r=e[1];e=e[2];return[l.map(t),c.map(r),u.map(e)]},untransform:function(e){e=n(e,3);var t=e[0],r=e[1];e=e[2];return[l.invert(t),c.invert(r),u.invert(e)]}}}function Ge(e,t,r,i,o,a,s){var l,c=(e=n(e,3))[0],u=e[1];e=e[2];return l=A(),c=[c,u,e],l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=1,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=1,l[11]=0,l[12]=c[0],l[13]=c[1],l[14]=c[2],l[15]=1,l}function Ve(e,t,r,i,o,a,s){return{transform:function(e){e=n(e,3);var t=e[0];return[e[1],t,e[2]]},untransform:function(e){e=n(e,3);var t=e[0];return[e[1],t,e[2]]}}}function Ke(e,t,r,i,o,a,s){var l,c=(e=n(e,3))[0],u=e[1];e=e[2];return l=A(),c=[c,u,e],l[0]=c[0],l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=c[1],l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=c[2],l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}function Ye(e){this.options={x:0,y:0,width:300,height:150,transformations:[]},this.transformers={cartesian:xe,translate:x,custom:Ee,matrix:Se,polar:Ce,transpose:Te,scale:Re,"shear.x":Be,"shear.y":Pe,reflect:ke,"reflect.x":Oe,"reflect.y":Me,rotate:Ie,helix:De,parallel:Ne,fisheye:Qe,"fisheye.x":He,"fisheye.y":Ue,"fisheye.circular":ze},this.update(e)}function qe(e){this.options={x:0,y:0,z:0,width:300,height:150,depth:150,transformations:[]},this.transformers={cartesian3D:We,translate3D:Ge,scale3D:Ke,transpose3D:Ve},this.update(e)}Ye.prototype.update=function(e){this.options=h({},this.options,e),this.recoordinate()},Ye.prototype.clone=function(){return new Ye(this.options)},Ye.prototype.getOptions=function(){return this.options},Ye.prototype.clear=function(){this.update({transformations:[]})},Ye.prototype.getSize=function(){var e=this.options;return[e.width,e.height]},Ye.prototype.getCenter=function(){var e=this.options,t=e.x,n=e.y;return[(2*t+e.width)/2,(2*n+e.height)/2]},Ye.prototype.transform=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=this.options.transformations;return this.update({transformations:r(r([],n(i),!1),[r([],n(e),!1)],!1)}),this},Ye.prototype.map=function(e){return this.output(e)},Ye.prototype.invert=function(e){return this.input(e)},Ye.prototype.recoordinate=function(){this.output=this.compose(),this.input=this.compose(!0)},Ye.prototype.compose=function(e){function i(e,t){var i;u.push((t=void 0===t||t)?(i=e,function(e){for(var t=[],o=0;o<e.length-1;o+=2){var a=[e[o],e[o+1]];a=i(a);t.push.apply(t,r([],n(a),!1))}return t}):e)}var o,a,s=(e=void 0!==e&&e)?r([],n(this.options.transformations),!1).reverse():this.options.transformations,l=e?function(e){return e.untransform}:function(e){return e.transform},c=[],u=[];try{for(var d=t(s),h=d.next();!h.done;h=d.next()){var p,g,m,v,A,b,_=n(h.value),x=_[0],E=_.slice(1),S=this.transformers[x];S&&(g=(p=this.options).x,m=p.y,v=p.width,A=p.height,w(b=S(r([],n(E),!1),g,m,v,A))?c.push(b):(c.length&&(i(this.createMatrixTransform(c,e)),c.splice(0,c.length)),i(l(b)||f,"parallel"!==x)))}}catch(e){o={error:e}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}return c.length&&i(this.createMatrixTransform(c,e)),y.apply(void 0,r([],n(u),!1))},Ye.prototype.createMatrixTransform=function(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p=m();return t&&e.reverse(),e.forEach(function(e){return v(p,p,e)}),t&&(t=e=p,(f=new g(9))[0]=t[0],f[1]=t[1],f[2]=t[2],f[3]=t[3],f[4]=t[4],f[5]=t[5],f[6]=t[6],f[7]=t[7],f[8]=t[8],f=(t=f)[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=(t=t[8])*o-a*l,h=f*c+n*(u=-t*i+a*s)+r*(d=l*i-o*s))&&(e[0]=c*(h=1/h),e[1]=(-t*n+r*l)*h,e[2]=(a*n-r*o)*h,e[3]=u*h,e[4]=(t*f-r*s)*h,e[5]=(-a*f+r*i)*h,e[6]=d*h,e[7]=(-l*f+n*s)*h,e[8]=(o*f-n*i)*h),function(e){var t,n,r,i,o;e=[e[0],e[1],1];return r=p,i=(n=t=e)[0],o=n[1],n=n[2],t[0]=i*r[0]+o*r[3]+n*r[6],t[1]=i*r[1]+o*r[4]+n*r[7],t[2]=i*r[2]+o*r[5]+n*r[8],[e[0],e[1]]}},L=Ye,qe.prototype.update=function(e){this.options=h({},this.options,e),this.recoordinate()},qe.prototype.clone=function(){return new qe(this.options)},qe.prototype.getOptions=function(){return this.options},qe.prototype.clear=function(){this.update({transformations:[]})},qe.prototype.getSize=function(){var e=this.options;return[e.width,e.height,e.depth]},qe.prototype.getCenter=function(){var e=this.options,t=e.x,n=e.y,r=e.z;return[(2*t+e.width)/2,(2*n+e.height)/2,(2*r+e.depth)/2]},qe.prototype.transform=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=this.options.transformations;return this.update({transformations:r(r([],n(i),!1),[r([],n(e),!1)],!1)}),this},qe.prototype.map=function(e){return this.output(e)},qe.prototype.invert=function(e){return this.input(e)},qe.prototype.recoordinate=function(){this.output=this.compose(),this.input=this.compose(!0)},qe.prototype.compose=function(e){function i(e,t){var i;u.push((t=void 0===t||t)?(i=e,function(e){for(var t=[],o=0;o<e.length-1;o+=3){var a=[e[o],e[o+1],e[o+2]];a=i(a);t.push.apply(t,r([],n(a),!1))}return t}):e)}var o,a,s=(e=void 0!==e&&e)?r([],n(this.options.transformations),!1).reverse():this.options.transformations,l=e?function(e){return e.untransform}:function(e){return e.transform},c=[],u=[];try{for(var d=t(s),h=d.next();!h.done;h=d.next()){var p,g,m,v,A,b,_,x,E=n(h.value),S=E[0],C=E.slice(1),T=this.transformers[S];T&&(g=(p=this.options).x,m=p.y,v=p.z,A=p.width,b=p.height,_=p.depth,w(x=T(r([],n(C),!1),g,m,v,A,b,_))?c.push(x):(c.length&&(i(this.createMatrixTransform(c,e)),c.splice(0,c.length)),i(l(x)||f,!0)))}}catch(e){o={error:e}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}return c.length&&i(this.createMatrixTransform(c,e)),y.apply(void 0,r([],n(u),!1))},qe.prototype.createMatrixTransform=function(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,m,v,y,w,_,x,E,S,C,T,k,O,M,I,D,N=A();return t&&e.reverse(),e.forEach(function(e){return b(N,N,e)}),t&&(t=e=N,(D=new g(16))[0]=t[0],D[1]=t[1],D[2]=t[2],D[3]=t[3],D[4]=t[4],D[5]=t[5],D[6]=t[6],D[7]=t[7],D[8]=t[8],D[9]=t[9],D[10]=t[10],D[11]=t[11],D[12]=t[12],D[13]=t[13],D[14]=t[14],D[15]=t[15],D=(t=D)[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7],c=t[8],u=t[9],d=t[10],h=t[11],f=t[12],p=t[13],m=t[14],t=t[15],I=(v=D*a-n*o)*(M=d*t-h*m)-(y=D*s-r*o)*(O=u*t-h*p)+(w=D*l-i*o)*(k=u*m-d*p)+(_=n*s-r*a)*(T=c*t-h*f)-(x=n*l-i*a)*(C=c*m-d*f)+(E=r*l-i*s)*(S=c*p-u*f))&&(e[0]=(a*M-s*O+l*k)*(I=1/I),e[1]=(r*O-n*M-i*k)*I,e[2]=(p*E-m*x+t*_)*I,e[3]=(d*x-u*E-h*_)*I,e[4]=(s*T-o*M-l*C)*I,e[5]=(D*M-r*T+i*C)*I,e[6]=(m*w-f*E-t*y)*I,e[7]=(c*E-d*w+h*y)*I,e[8]=(o*O-a*T+l*S)*I,e[9]=(n*T-D*O-i*S)*I,e[10]=(f*x-p*w+t*v)*I,e[11]=(u*w-c*x-h*v)*I,e[12]=(a*C-o*k-s*S)*I,e[13]=(D*k-n*C+r*S)*I,e[14]=(p*y-f*_-m*v)*I,e[15]=(c*_-u*y+d*v)*I),function(e){var t,n,r,i,o,a;e=[e[0],e[1],e[2],1];return r=N,i=(n=t=e)[0],o=n[1],a=n[2],n=n[3],t[0]=r[0]*i+r[4]*o+r[8]*a+r[12]*n,t[1]=r[1]*i+r[5]*o+r[9]*a+r[13]*n,t[2]=r[2]*i+r[6]*o+r[10]*a+r[14]*n,t[3]=r[3]*i+r[7]*o+r[11]*a+r[15]*n,[e[0],e[1],e[2]]}},ye=qe,e.Coordinate=L,e.Coordinate3D=ye,Object.defineProperty(e,"__esModule",{value:!0})})},63241:function(e){function t(e){const t={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},t,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}e.exports=t},63463:function(e){"use strict";var t=TypeError;e.exports=function(e){if("string"==typeof e)return e;throw new t("Argument is not a string")}},63499:function(e,t,n){function r(e){const t={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},n=e.COMMENT("@","@"),r={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n]},i={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},o=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,i]}],a={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},s=function(t,r,i){const s=e.inherit({className:"function",beginKeywords:t,end:r,excludeEnd:!0,contains:[].concat(o)},{});return s.contains.push(a),s.contains.push(e.C_NUMBER_MODE),s.contains.push(e.C_BLOCK_COMMENT_MODE),s.contains.push(n),s},l={className:"built_in",begin:"\\b("+t.built_in.split(" ").join("|")+")\\b"},c={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},u={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},l,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},d={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,l,u,c,"self"]};return u.contains.push(d),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,c,r,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},s("proc keyword",";"),s("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,n,d]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},u,i]}}n(44114),e.exports=r},63530:function(e,t,n){n(44114),n(18111),n(20116),function(e){e(n(83800))}(function(e){"use strict";var t,n,r=e.Pos;function i(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function o(e,t){for(var n=i(e),r=n,o=0;o<t.length;o++)-1==r.indexOf(t.charAt(o))&&(r+=t.charAt(o));return n==r?e:new RegExp(e.source,r)}function a(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function s(e,t,n){t=o(t,"g");for(var i=n.line,a=n.ch,s=e.lastLine();i<=s;i++,a=0){t.lastIndex=a;var l=e.getLine(i),c=t.exec(l);if(c)return{from:r(i,c.index),to:r(i,c.index+c[0].length),match:c}}}function l(e,t,n){if(!a(t))return s(e,t,n);t=o(t,"gm");for(var i,l=1,c=n.line,u=e.lastLine();c<=u;){for(var d=0;d<l;d++){if(c>u)break;var h=e.getLine(c++);i=null==i?h:i+"\n"+h}l*=2,t.lastIndex=n.ch;var f=t.exec(i);if(f){var p=i.slice(0,f.index).split("\n"),g=f[0].split("\n"),m=n.line+p.length-1,v=p[p.length-1].length;return{from:r(m,v),to:r(m+g.length-1,1==g.length?v+g[0].length:g[g.length-1].length),match:f}}}}function c(e,t,n){var r,i=0;while(i<=e.length){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function u(e,t,n){t=o(t,"g");for(var i=n.line,a=n.ch,s=e.firstLine();i>=s;i--,a=-1){var l=e.getLine(i),u=c(l,t,a<0?0:l.length-a);if(u)return{from:r(i,u.index),to:r(i,u.index+u[0].length),match:u}}}function d(e,t,n){if(!a(t))return u(e,t,n);t=o(t,"gm");for(var i,s=1,l=e.getLine(n.line).length-n.ch,d=n.line,h=e.firstLine();d>=h;){for(var f=0;f<s&&d>=h;f++){var p=e.getLine(d--);i=null==i?p:p+"\n"+i}s*=2;var g=c(i,t,l);if(g){var m=i.slice(0,g.index).split("\n"),v=g[0].split("\n"),A=d+m.length,b=m[m.length-1].length;return{from:r(A,b),to:r(A+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:g}}}}function h(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function f(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var c=o.line,u=o.ch,d=e.lastLine()+1-l.length;c<=d;c++,u=0){var f=e.getLine(c).slice(u),p=s(f);if(1==l.length){var g=p.indexOf(l[0]);if(-1==g)continue e;o=h(f,p,g,s)+u;return{from:r(c,h(f,p,g,s)+u),to:r(c,h(f,p,g+l[0].length,s)+u)}}var m=p.length-l[0].length;if(p.slice(m)==l[0]){for(var v=1;v<l.length-1;v++)if(s(e.getLine(c+v))!=l[v])continue e;var A=e.getLine(c+l.length-1),b=s(A),y=l[l.length-1];if(b.slice(0,y.length)==y)return{from:r(c,h(f,p,m,s)+u),to:r(c+l.length-1,h(A,b,y.length,s))}}}}function p(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var c=o.line,u=o.ch,d=e.firstLine()-1+l.length;c>=d;c--,u=-1){var f=e.getLine(c);u>-1&&(f=f.slice(0,u));var p=s(f);if(1==l.length){var g=p.lastIndexOf(l[0]);if(-1==g)continue e;return{from:r(c,h(f,p,g,s)),to:r(c,h(f,p,g+l[0].length,s))}}var m=l[l.length-1];if(p.slice(0,m.length)==m){var v=1;for(o=c-l.length+1;v<l.length-1;v++)if(s(e.getLine(o+v))!=l[v])continue e;var A=e.getLine(c+1-l.length),b=s(A);if(b.slice(b.length-l[0].length)==l[0])return{from:r(c+1-l.length,h(A,b,A.length-l[0].length,s)),to:r(c,h(f,p,m.length,s))}}}}function g(e,t,n,i){var a;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof i?a=i.caseFold:(a=i,i=null),"string"==typeof t?(null==a&&(a=!1),this.matches=function(n,r){return(n?p:f)(e,t,r,a)}):(t=o(t,"gm"),i&&!1===i.multiline?this.matches=function(n,r){return(n?u:s)(e,t,r)}:this.matches=function(n,r){return(n?d:l)(e,t,r)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),g.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var n=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(n=r(n.line,n.ch),t?(n.ch--,n.ch<0&&(n.line--,n.ch=(this.doc.getLine(n.line)||"").length)):(n.ch++,n.ch>(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,t,n){return new g(this.doc,e,t,n)}),e.defineDocExtension("getSearchCursor",function(e,t,n){return new g(this,e,t,n)}),e.defineExtension("selectMatches",function(t,n){var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);while(i.findNext()){if(e.cmpPos(i.to(),this.getCursor("to"))>0)break;r.push({anchor:i.from(),head:i.to()})}r.length&&this.setSelections(r,0)})})},63536:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="PlusOutlined",c.inheritAttrs=!1;var u=c},64089:function(e,t,n){"use strict";var r=n(16171),i=n(44678);t.A=(0,i.GU)(r.A)},64117:function(e){"use strict";e.exports=function(e){return null===e||void 0===e}},64288:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 00-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"}}]},name:"question-circle",theme:"filled"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="QuestionCircleFilled",c.inheritAttrs=!1;var u=c},64449:function(e,t,n){"use strict";var r=n(97080),i=n(94402).has,o=n(25170),a=n(83789),s=n(38469),l=n(40507),c=n(9539);e.exports=function(e){var t=r(this),n=a(e);if(o(t)<=n.size)return!1!==s(t,function(e){if(n.includes(e))return!1},!0);var u=n.getIterator();return!1!==l(u,function(e){if(i(t,e))return c(u,"normal",!1)})}},64675:function(e,t,n){"use strict";n.d(t,{BZ:function(){return f},C5:function(){return _},Q:function(){return c},Ut:function(){return u},wj:function(){return g}});var r=n(51137),i=n(90112),o=n(9519),a=n(36068),s=n(20353);const l=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),c=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),u=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),d=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":(0,r.A)({},c((0,o.h1)(e,{inputBorderHoverColor:e.colorBorder})))}),h=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:i,inputPaddingHorizontalLG:o}=e;return{padding:`${t}px ${o}px`,fontSize:n,lineHeight:r,borderRadius:i}},f=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),p=(e,t)=>{const{componentCls:n,colorError:i,colorWarning:a,colorErrorOutline:s,colorWarningOutline:l,colorErrorBorderHover:c,colorWarningBorderHover:d}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:i,"&:hover":{borderColor:c},"&:focus, &-focused":(0,r.A)({},u((0,o.h1)(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:s}))),[`${n}-prefix`]:{color:i}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:a,"&:hover":{borderColor:d},"&:focus, &-focused":(0,r.A)({},u((0,o.h1)(e,{inputBorderActiveColor:a,inputBorderHoverColor:a,controlOutline:l}))),[`${n}-prefix`]:{color:a}}}},g=e=>(0,r.A)((0,r.A)({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},l(e.colorTextPlaceholder)),{"&:hover":(0,r.A)({},c(e)),"&:focus, &-focused":(0,r.A)({},u(e)),"&-disabled, &[disabled]":(0,r.A)({},d(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":(0,r.A)({},h(e)),"&-sm":(0,r.A)({},f(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),m=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,["&[class*='col-']"]:{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:(0,r.A)({},h(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:(0,r.A)({},f(e)),[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{["&-addon, &-wrap"]:{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:(0,r.A)((0,r.A)({display:"block"},(0,a.t6)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n      & > ${n}-select-auto-complete ${t},\n      & > ${n}-cascader-picker ${t},\n      & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n      & > ${n}-select:first-child > ${n}-select-selector,\n      & > ${n}-select-auto-complete:first-child ${t},\n      & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n      & > ${n}-select:last-child > ${n}-select-selector,\n      & > ${n}-cascader-picker:last-child ${t},\n      & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}),[`&&-sm ${n}-btn`]:{fontSize:e.fontSizeSM,height:e.controlHeightSM,lineHeight:"normal"},[`&&-lg ${n}-btn`]:{fontSize:e.fontSizeLG,height:e.controlHeightLG,lineHeight:"normal"},[`&&-lg ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightLG}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:e.controlHeightLG-2+"px"},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightLG}px`}},[`&&-sm ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightSM}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:e.controlHeightSM-2+"px"},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightSM}px`}}}},v=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:i}=e,o=16,s=(n-2*i-o)/2;return{[t]:(0,r.A)((0,r.A)((0,r.A)((0,r.A)({},(0,a.dF)(e)),g(e)),p(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:s,paddingBottom:s}}})}},A=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${t}-clear-icon`]:{position:"absolute",insetBlockStart:e.paddingXS,insetInlineEnd:e.paddingXS,zIndex:1}}}},b=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:i,motionDurationSlow:o,colorIcon:a,colorIconHover:s,iconCls:l}=e;return{[`${t}-affix-wrapper`]:(0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({},g(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:(0,r.A)((0,r.A)({},c(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:i},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),A(e)),{[`${l}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:s}}}),p(e,`${t}-affix-wrapper`))}},y=e=>{const{componentCls:t,colorError:n,colorSuccess:i,borderRadiusLG:o,borderRadiusSM:s}=e;return{[`${t}-group`]:(0,r.A)((0,r.A)((0,r.A)({},(0,a.dF)(e)),m(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-sm":{[`${t}-group-addon`]:{borderRadius:s}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon:last-child`]:{color:i,borderColor:i}}}})}},w=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n        > ${t},\n        ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function _(e){return(0,o.h1)(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const x=e=>{const{componentCls:t,inputPaddingHorizontal:n,paddingLG:r}=e,i=`${t}-textarea`;return{[i]:{position:"relative",[`${i}-suffix`]:{position:"absolute",top:0,insetInlineEnd:n,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},["&-status-error,\n        &-status-warning,\n        &-status-success,\n        &-status-validating"]:{[`&${i}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:r}}},"&-show-count":{[`> ${t}`]:{height:"100%"},"&::after":{color:e.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}};t.Ay=(0,i.A)("Input",e=>{const t=_(e);return[v(t),x(t),b(t),y(t),w(t),(0,s.G)(t)]})},64695:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="ClockCircleOutlined",c.inheritAttrs=!1;var u=c},64739:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});n(18111),n(18237);var r=n(98684);let i=0;class o{constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=i,0===e.length&&(0,r.Ay)(e.length>0,"[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."),i+=1}getDerivativeToken(e){return this.derivatives.reduce((t,n)=>n(e,t),void 0)}}},64837:function(e){function t(e){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}e.exports=t},64846:function(e){function t(e){const t="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",n=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],r="True False And Null Not Or Default",i="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",o={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},a={begin:"\\$[A-z0-9_]+"},s={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},l={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},c={className:"meta",begin:"#",end:"$",keywords:{keyword:n},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[s,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},s,o]},u={className:"symbol",begin:"@[A-z0-9_]+"},d={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[a,s,l]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:t,built_in:i,literal:r},contains:[o,a,s,l,c,u,d]}}e.exports=t},64979:function(e,t,n){"use strict";var r=n(46518),i=n(44576),o=n(97751),a=n(6980),s=n(24913).f,l=n(39297),c=n(90679),u=n(23167),d=n(32603),h=n(55002),f=n(16193),p=n(43724),g=n(96395),m="DOMException",v=o("Error"),A=o(m),b=function(){c(this,y);var e=arguments.length,t=d(e<1?void 0:arguments[0]),n=d(e<2?void 0:arguments[1],"Error"),r=new A(t,n),i=new v(t);return i.name=m,s(r,"stack",a(1,f(i.stack,1))),u(r,this,b),r},y=b.prototype=A.prototype,w="stack"in new v(m),_="stack"in new A(1,2),x=A&&p&&Object.getOwnPropertyDescriptor(i,m),E=!!x&&!(x.writable&&x.configurable),S=w&&!E&&!_;r({global:!0,constructor:!0,forced:g||S},{DOMException:S?b:A});var C=o(m),T=C.prototype;if(T.constructor!==C)for(var k in g||s(T,"constructor",a(1,C)),h)if(l(h,k)){var O=h[k],M=O.s;l(C,M)||s(C,M,a(6,O.c))}},65070:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(44114);var r=n(67788),i="__lodash_hash_undefined__";function o(e){return this.__data__.set(e,i),this}var a=o;function s(e){return this.__data__.has(e)}var l=s;function c(e){var t=-1,n=null==e?0:e.length;this.__data__=new r.A;while(++t<n)this.add(e[t])}c.prototype.add=c.prototype.push=a,c.prototype.has=l;var u=c},65084:function(e){function t(e){const t=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},i={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={className:"number",relevance:0,variants:[{match:/\b\d[\d_]*(\.\d[\d_]*)?/},{match:/\$[\dA-Fa-f_]+/},{match:/\$/,relevance:0},{match:/&[0-7][0-7_]*/},{match:/%[01_]+/},{match:/%/,relevance:0}]},a={className:"string",variants:[{match:/#\d[\d_]*/},{match:/#\$[\dA-Fa-f][\dA-Fa-f_]*/},{match:/#&[0-7][0-7_]*/},{match:/#%[01][01_]*/}]},s={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},l={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[i,a,r].concat(n)},r].concat(n)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,a,o,s,l,r].concat(n)}}e.exports=t},65172:function(e,t,n){function r(e,t){if(e=e.replace(/\s+/g,""),t=t.replace(/\s+/g,""),e===t)return 1;if(e.length<2||t.length<2)return 0;let n=new Map;for(let i=0;i<e.length-1;i++){const t=e.substring(i,i+2),r=n.has(t)?n.get(t)+1:1;n.set(t,r)}let r=0;for(let i=0;i<t.length-1;i++){const e=t.substring(i,i+2),o=n.has(e)?n.get(e):0;o>0&&(n.set(e,o-1),r++)}return 2*r/(e.length+t.length-2)}function i(e,t){if(!o(e,t))throw new Error("Bad arguments: First argument should be a string, second should be an array of strings");const n=[];let i=0;for(let o=0;o<t.length;o++){const a=t[o],s=r(e,a);n.push({target:a,rating:s}),s>n[i].rating&&(i=o)}const a=n[i];return{ratings:n,bestMatch:a,bestMatchIndex:i}}function o(e,t){return"string"===typeof e&&(!!Array.isArray(t)&&(!!t.length&&!t.find(function(e){return"string"!==typeof e})))}n(44114),n(18111),n(20116),e.exports={compareTwoStrings:r,findBestMatch:i}},65347:function(e,t){"use strict";function n(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}t.A=n},65736:function(e,t,n){n(18111),n(7588),function(t,n){e.exports=n()}(0,function(){"use strict";return function(e,t,n){n.updateLocale=function(e,t){var r=n.Ls[e];if(r)return(t?Object.keys(t):[]).forEach(function(e){r[e]=t[e]}),r}}})},65803:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(90112);const i=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};var o=i;const a=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item`]:{"&:empty":{display:"none"}}}}};var s=(0,r.A)("Space",e=>[a(e),o(e)])},66119:function(e,t,n){"use strict";var r=n(25745),i=n(33392),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},66139:function(e,t,n){"use strict";var r=n(51137),i=n(56768),o=n(90144);function a(e){const t=Symbol("contextKey"),n=(e,n)=>{const a=(0,o.Kh)({});return(0,i.Gt)(t,a),(0,i.nT)(()=>{(0,r.A)(a,e,n||{})}),a},a=()=>(0,i.WQ)(t,e)||{};return{useProvide:n,useInject:a}}t.A=a},66180:function(e){function t(e){const t={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},n={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},r={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},i={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[e.inherit(e.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),i,r,t,n]}}e.exports=t},66699:function(e,t,n){"use strict";var r=n(43724),i=n(24913),o=n(6980);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},66750:function(e,t,n){"use strict";n(44114);var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function l(e,t){0===--e._eventsCount?e._events=new o:delete e._events[t]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),c.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},c.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a},c.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,r,o,a){var s=i?i+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,o),!0;case 6:return u.fn.call(u.context,t,n,r,o,a),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,r);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];u[c].fn.apply(u[c].context,l)}}return!0},c.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,r){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return l(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||l(this,o);else{for(var s=0,c=[],u=a.length;s<u;s++)(a[s].fn!==t||r&&!a[s].once||n&&a[s].context!==n)&&c.push(a[s]);c.length?this._events[o]=1===c.length?c[0]:c:l(this,o)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&l(this,t)):(this._events=new o,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=i,c.EventEmitter=c,e.exports=c},66889:function(e,t,n){function r(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},u={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},d=e.inherit(c,{contains:[]}),h=e.inherit(u,{contains:[]});c.contains.push(h),u.contains.push(d);let f=[n,l];[c,u,d,h].forEach(e=>{e.contains=e.contains.concat(f)}),f=f.concat(c,u);const p={className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:f},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:f}]}]},g={className:"quote",begin:"^>\\s+",contains:f,end:"$"},m={scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/};return{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[p,n,o,c,u,g,i,r,l,a,m]}}n(44114),e.exports=r},66917:function(e,t,n){"use strict";n.d(t,{A:function(){return l},L:function(){return a}});n(18111),n(61701);var r=n(42529),i=n(95975),o=n(61206),a={1:"media",2:"media",3:"media",4:"media",5:"media",6:"media"},s={1:5101,2:5102,3:5103,4:5104,5:5105,6:5106},l=(0,r.j6)(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{errorType:"",errorCode:0,errorMessage:"",originError:"",ext:{},mediaError:null};(0,r.xs)(this,e);var a=t&&t.i18n?t.i18n.ERROR_TYPES:null;if(t.media){var l=n.mediaError?n.mediaError:t.media.error||{},c=t.duration,u=t.currentTime,d=t.ended,h=t.src,f=t.currentSrc,p=t.media,g=p.readyState,m=p.networkState,v=n.errorCode||l.code;s[v]&&(v=s[v]);var A={playerVersion:i.A,currentTime:u,duration:c,ended:d,readyState:g,networkState:m,src:h||f,errorType:n.errorType,errorCode:v,message:n.errorMessage||l.message,mediaError:l,originError:n.originError?n.originError.stack:"",host:o.Ay.getHostFromUrl(h||f)};return n.ext&&Object.keys(n.ext).map(function(e){A[e]=n.ext[e]}),A}if(arguments.length>1){for(var b={playerVersion:i.A,domain:document.domain},y=["errorType","currentTime","duration","networkState","readyState","src","currentSrc","ended","errd","errorCode","mediaError"],w=0;w<arguments.length;w++)b[y[w]]=arguments[w];return b.ex=a?(a[arguments[0]]||{}).msg:"",b}})},67394:function(e,t,n){"use strict";var r=n(44576),i=n(46706),o=n(22195),a=r.ArrayBuffer,s=r.TypeError;e.exports=a&&i(a.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==o(e))throw new s("ArrayBuffer expected");return e.byteLength}},67431:function(e){function t(e){const t=["bool","byte","i16","i32","i64","double","string","binary"],n=["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"];return{name:"Thrift",keywords:{keyword:n,type:t,literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...t,"set","list","map"]},end:">",contains:["self"]}]}}e.exports=t},67595:function(e){function t(e){const t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}e.exports=t},67676:function(e,t,n){const r=n(77027);function i(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}function o(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}t.render=function(e,t,n){let a=n,s=t;"undefined"!==typeof a||t&&t.getContext||(a=t,t=void 0),t||(s=o()),a=r.getOptions(a);const l=r.getImageWidth(e.modules.size,a),c=s.getContext("2d"),u=c.createImageData(l,l);return r.qrToImageData(u.data,e,a),i(c,s,l),c.putImageData(u,0,0),s},t.renderToDataURL=function(e,n,r){let i=r;"undefined"!==typeof i||n&&n.getContext||(i=n,n=void 0),i||(i={});const o=t.render(e,n,i),a=i.type||"image/png",s=i.rendererOpts||{};return o.toDataURL(a,s.quality)}},67680:function(e,t,n){"use strict";var r=n(79504);e.exports=r([].slice)},67750:function(e,t,n){"use strict";var r=n(64117),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},67788:function(e,t,n){"use strict";n.d(t,{A:function(){return H}});var r=n(7162),i=(0,r.A)(Object,"create"),o=i;function a(){this.__data__=o?o(null):{},this.size=0}var s=a;function l(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var c=l,u="__lodash_hash_undefined__",d=Object.prototype,h=d.hasOwnProperty;function f(e){var t=this.__data__;if(o){var n=t[e];return n===u?void 0:n}return h.call(t,e)?t[e]:void 0}var p=f,g=Object.prototype,m=g.hasOwnProperty;function v(e){var t=this.__data__;return o?void 0!==t[e]:m.call(t,e)}var A=v,b="__lodash_hash_undefined__";function y(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=o&&void 0===t?b:t,this}var w=y;function _(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}_.prototype.clear=s,_.prototype["delete"]=c,_.prototype.get=p,_.prototype.has=A,_.prototype.set=w;var x=_,E=n(57433),S=n(76062);function C(){this.size=0,this.__data__={hash:new x,map:new(S.A||E.A),string:new x}}var T=C;n(18111),n(61701);function k(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var O=k;function M(e,t){var n=e.__data__;return O(t)?n["string"==typeof t?"string":"hash"]:n.map}var I=M;function D(e){var t=I(this,e)["delete"](e);return this.size-=t?1:0,t}var N=D;function R(e){return I(this,e).get(e)}var L=R;function B(e){return I(this,e).has(e)}var P=B;function F(e,t){var n=I(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var $=F;function j(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}j.prototype.clear=T,j.prototype["delete"]=N,j.prototype.get=L,j.prototype.has=P,j.prototype.set=$;var H=j},67839:function(e,t,n){"use strict";n.d(t,{Ay:function(){return B}});n(18111),n(61701);var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(49974),l=n(35757),c=n(78187),u=n(16171),d=(n(7588),n(81425)),h=n(44832),f=n(73821),p=n(82978),g=n(60674);const m=()=>({avatar:d.A.any,description:d.A.any,prefixCls:String,title:d.A.any});var v=(0,o.pM)({compatConfig:{MODE:3},name:"AListItemMeta",props:m(),displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:r}=(0,g.A)("list",e);return()=>{var t,i,a,s,l,c;const u=`${r.value}-item-meta`,d=null!==(t=e.title)&&void 0!==t?t:null===(i=n.title)||void 0===i?void 0:i.call(n),h=null!==(a=e.description)&&void 0!==a?a:null===(s=n.description)||void 0===s?void 0:s.call(n),f=null!==(l=e.avatar)&&void 0!==l?l:null===(c=n.avatar)||void 0===c?void 0:c.call(n),p=(0,o.bF)("div",{class:`${r.value}-item-meta-content`},[d&&(0,o.bF)("h4",{class:`${r.value}-item-meta-title`},[d]),h&&(0,o.bF)("div",{class:`${r.value}-item-meta-description`},[h])]);return(0,o.bF)("div",{class:u},[f&&(0,o.bF)("div",{class:`${r.value}-item-meta-avatar`},[f]),(d||h)&&p])}}});const A=Symbol("ListContextKey");var b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const y=()=>({prefixCls:String,extra:d.A.any,actions:d.A.array,grid:Object,colStyle:{type:Object,default:void 0}});var w=(0,o.pM)({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:v,props:y(),slots:Object,setup(e,t){let{slots:n,attrs:i}=t;const{itemLayout:l,grid:c}=(0,o.WQ)(A,{grid:(0,a.KR)(),itemLayout:(0,a.KR)()}),{prefixCls:u}=(0,g.A)("list",e),d=()=>{var e;const t=(null===(e=n.default)||void 0===e?void 0:e.call(n))||[];let r;return t.forEach(e=>{(0,h.K6)(e)&&!(0,h.sG)(e)&&(r=!0)}),r&&t.length>1},m=()=>{var t,r;const i=null!==(t=e.extra)&&void 0!==t?t:null===(r=n.extra)||void 0===r?void 0:r.call(n);return"vertical"===l.value?!!i:!d()};return()=>{var t,a,d,g,v;const{class:A}=i,y=b(i,["class"]),w=u.value,_=null!==(t=e.extra)&&void 0!==t?t:null===(a=n.extra)||void 0===a?void 0:a.call(n),x=null===(d=n.default)||void 0===d?void 0:d.call(n);let E=null!==(g=e.actions)&&void 0!==g?g:(0,h.MI)(null===(v=n.actions)||void 0===v?void 0:v.call(n));E=E&&!Array.isArray(E)?[E]:E;const S=E&&E.length>0&&(0,o.bF)("ul",{class:`${w}-item-action`,key:"actions"},[E.map((e,t)=>(0,o.bF)("li",{key:`${w}-item-action-${t}`},[e,t!==E.length-1&&(0,o.bF)("em",{class:`${w}-item-action-split`},null)]))]),C=c.value?"div":"li",T=(0,o.bF)(C,(0,r.A)((0,r.A)({},y),{},{class:(0,s.A)(`${w}-item`,{[`${w}-item-no-flex`]:!m()},A)}),{default:()=>["vertical"===l.value&&_?[(0,o.bF)("div",{class:`${w}-item-main`,key:"content"},[x,S]),(0,o.bF)("div",{class:`${w}-item-extra`,key:"extra"},[_])]:[x,S,(0,p.Ob)(_,{key:"extra"})]]});return c.value?(0,o.bF)(f.A,{flex:1,style:e.colStyle},{default:()=>[T]}):T}}}),_=n(73429),x=n(44678),E=n(53627),S=n(28646),C=n(88839),T=n(90112),k=n(9519),O=n(36068);const M=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,padding:o,listItemPaddingSM:a,marginLG:s,borderRadiusLG:l}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:l,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${i}px ${s}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:`${o}px ${r}px`}}}},I=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:o,margin:a}=e;return{[`@media screen and (max-width:${r})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${a}px`}}}}}},D=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:a,marginLG:s,padding:l,listItemPadding:c,colorPrimary:u,listItemPaddingSM:d,listItemPaddingLG:h,paddingXS:f,margin:p,colorText:g,colorTextDescription:m,motionDurationSlow:v,lineWidth:A}=e;return{[`${t}`]:(0,i.A)((0,i.A)({},(0,O.dF)(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:s,textAlign:"end",[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:c,color:g,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:l},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:g},[`${t}-item-meta-title`]:{marginBottom:e.marginXXS,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:g,transition:`all ${v}`,["&:hover"]:{color:u}}},[`${t}-item-meta-description`]:{color:m,fontSize:e.fontSize,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none",["& > li"]:{position:"relative",display:"inline-block",padding:`0 ${f}px`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center",["&:first-child"]:{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:A,height:Math.ceil(e.fontSize*e.lineHeight)-2*e.marginXXS,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${l}px 0`,color:m,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:l,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:s},[`${t}-item-meta`]:{marginBlockEnd:l,[`${t}-item-meta-title`]:{marginBlockEnd:a,color:g,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${l}px`,["&:first-child"]:{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,["&:last-child"]:{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:h},[`${t}-sm ${t}-item`]:{padding:d},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}};var N=(0,T.A)("List",e=>{const t=(0,k.h1)(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px ${e.paddingContentHorizontalLG}px`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[D(t),M(t),I(t)]},{contentWidth:220});const R=()=>({bordered:(0,x.HE)(),dataSource:(0,x.MY)(),extra:(0,x.vX)(),grid:(0,x.ge)(),itemLayout:String,loading:(0,x.tK)([Boolean,Object]),loadMore:(0,x.vX)(),pagination:(0,x.tK)([Boolean,Object]),prefixCls:String,rowKey:(0,x.tK)([String,Number,Function]),renderItem:(0,x.Fg)(),size:String,split:(0,x.HE)(),header:(0,x.vX)(),footer:(0,x.vX)(),locale:(0,x.ge)()}),L=(0,o.pM)({compatConfig:{MODE:3},name:"AList",inheritAttrs:!1,Item:w,props:(0,_.A)(R(),{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(e,t){let{slots:n,attrs:d}=t;var f,p;(0,o.Gt)(A,{grid:(0,a.lW)(e,"grid"),itemLayout:(0,a.lW)(e,"itemLayout")});const m={current:1,total:0},{prefixCls:v,direction:b,renderEmpty:y}=(0,g.A)("list",e),[w,_]=N(v),x=(0,o.EW)(()=>e.pagination&&"object"===typeof e.pagination?e.pagination:{}),T=(0,a.KR)(null!==(f=x.value.defaultCurrent)&&void 0!==f?f:1),k=(0,a.KR)(null!==(p=x.value.defaultPageSize)&&void 0!==p?p:10);(0,o.wB)(x,()=>{"current"in x.value&&(T.value=x.value.current),"pageSize"in x.value&&(k.value=x.value.pageSize)});const O=[],M=e=>(t,n)=>{T.value=t,k.value=n,x.value[e]&&x.value[e](t,n)},I=M("onChange"),D=M("onShowSizeChange"),R=(0,o.EW)(()=>"boolean"===typeof e.loading?{spinning:e.loading}:e.loading),L=(0,o.EW)(()=>R.value&&R.value.spinning),B=(0,o.EW)(()=>{let t="";switch(e.size){case"large":t="lg";break;case"small":t="sm";break;default:break}return t}),P=(0,o.EW)(()=>({[`${v.value}`]:!0,[`${v.value}-vertical`]:"vertical"===e.itemLayout,[`${v.value}-${B.value}`]:B.value,[`${v.value}-split`]:e.split,[`${v.value}-bordered`]:e.bordered,[`${v.value}-loading`]:L.value,[`${v.value}-grid`]:!!e.grid,[`${v.value}-rtl`]:"rtl"===b.value})),F=(0,o.EW)(()=>{const t=(0,i.A)((0,i.A)((0,i.A)({},m),{total:e.dataSource.length,current:T.value,pageSize:k.value}),e.pagination||{}),n=Math.ceil(t.total/t.pageSize);return t.current>n&&(t.current=n),t}),$=(0,o.EW)(()=>{let t=[...e.dataSource];return e.pagination&&e.dataSource.length>(F.value.current-1)*F.value.pageSize&&(t=[...e.dataSource].splice((F.value.current-1)*F.value.pageSize,F.value.pageSize)),t}),j=(0,E.A)(),H=(0,C.A)(()=>{for(let e=0;e<S.y.length;e+=1){const t=S.y[e];if(j.value[t])return t}}),U=(0,o.EW)(()=>{if(!e.grid)return;const t=H.value&&e.grid[H.value]?e.grid[H.value]:e.grid.column;return t?{width:100/t+"%",maxWidth:100/t+"%"}:void 0}),Q=(t,r)=>{var i;const o=null!==(i=e.renderItem)&&void 0!==i?i:n.renderItem;if(!o)return null;let a;const s=typeof e.rowKey;return a="function"===s?e.rowKey(t):"string"===s||"number"===s?t[e.rowKey]:t.key,a||(a=`list-item-${r}`),O[r]=a,o({item:t,index:r})};return()=>{var t,a,f,p,g,m,A,b;const x=null!==(t=e.loadMore)&&void 0!==t?t:null===(a=n.loadMore)||void 0===a?void 0:a.call(n),E=null!==(f=e.footer)&&void 0!==f?f:null===(p=n.footer)||void 0===p?void 0:p.call(n),S=null!==(g=e.header)&&void 0!==g?g:null===(m=n.header)||void 0===m?void 0:m.call(n),C=(0,h.MI)(null===(A=n.default)||void 0===A?void 0:A.call(n)),T=!!(x||e.pagination||E),k=(0,s.A)((0,i.A)((0,i.A)({},P.value),{[`${v.value}-something-after-last-item`]:T}),d.class,_.value),M=e.pagination?(0,o.bF)("div",{class:`${v.value}-pagination`},[(0,o.bF)(c.Ay,(0,r.A)((0,r.A)({},F.value),{},{onChange:I,onShowSizeChange:D}),null)]):null;let N=L.value&&(0,o.bF)("div",{style:{minHeight:"53px"}},null);if($.value.length>0){O.length=0;const t=$.value.map((e,t)=>Q(e,t)),n=t.map((e,t)=>(0,o.bF)("div",{key:O[t],style:U.value},[e]));N=e.grid?(0,o.bF)(u.A,{gutter:e.grid.gutter},{default:()=>[n]}):(0,o.bF)("ul",{class:`${v.value}-items`},[t])}else C.length||L.value||(N=(0,o.bF)("div",{class:`${v.value}-empty-text`},[(null===(b=e.locale)||void 0===b?void 0:b.emptyText)||y("List")]));const B=F.value.position||"bottom";return w((0,o.bF)("div",(0,r.A)((0,r.A)({},d),{},{class:k}),[("top"===B||"both"===B)&&M,S&&(0,o.bF)("div",{class:`${v.value}-header`},[S]),(0,o.bF)(l.A,R.value,{default:()=>[N,C]}),E&&(0,o.bF)("div",{class:`${v.value}-footer`},[E]),x||("bottom"===B||"both"===B)&&M]))}}});L.install=function(e){return e.component(L.name,L),e.component(L.Item.name,L.Item),e.component(L.Item.Meta.name,L.Item.Meta),e};var B=L},67968:function(e,t,n){"use strict";n.d(t,{Ay:function(){return ae}});var r=n(41034),i=n(56768),o=n(49974),a=n(90144),s=n(35678),l=n(44491),c=(n(18111),n(22489),n(7588),{icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"}),u=c,d=n(4827);function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){f(e,t,n[t])})}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e,t){var n=h({},e,t.attrs);return(0,i.bF)(d.A,h({},n,{icon:u}),null)};p.displayName="FileTextOutlined",p.inheritAttrs=!1;var g=p,m=n(51137),v=n(81425),A=n(44678);const b=()=>({prefixCls:String,description:v.A.any,type:(0,A.WO)("default"),shape:(0,A.WO)("circle"),tooltip:v.A.any,href:String,target:String,badge:(0,A.ge)(),onClick:(0,A.Fg)()}),y=()=>({prefixCls:(0,A.WO)()}),w=()=>(0,m.A)((0,m.A)({},b()),{trigger:(0,A.WO)(),open:(0,A.HE)(),onOpenChange:(0,A.Fg)(),"onUpdate:open":(0,A.Fg)()}),_=()=>(0,m.A)((0,m.A)({},b()),{prefixCls:String,duration:Number,target:(0,A.Fg)(),visibilityHeight:Number,onClick:(0,A.Fg)()});var x=n(44832);const E=(0,i.pM)({compatConfig:{MODE:3},name:"AFloatButtonContent",inheritAttrs:!1,props:y(),setup(e,t){let{attrs:n,slots:o}=t;return()=>{var t;const{prefixCls:a}=e,s=(0,x.Gk)(null===(t=o.description)||void 0===t?void 0:t.call(o));return(0,i.bF)("div",(0,r.A)((0,r.A)({},n),{},{class:[n.class,`${a}-content`]}),[o.icon||s.length?(0,i.bF)(i.FK,null,[o.icon&&(0,i.bF)("div",{class:`${a}-icon`},[o.icon()]),s.length?(0,i.bF)("div",{class:`${a}-description`},[s]):null]):(0,i.bF)("div",{class:`${a}-icon`},[(0,i.bF)(g,null,null)])])}}});var S=E,C=n(60674);const T=Symbol("floatButtonGroupContext"),k=e=>((0,i.Gt)(T,e),e),O=()=>(0,i.WQ)(T,{shape:(0,a.KR)()});var M=n(73429),I=n(58085),D=n(90112),N=n(9519),R=n(43085),L=n(36068),B=n(33041);const P=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2);var F=P;const $=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:r,motionEaseInOutCirc:i}=e,o=`${t}-group`,a=new I.A("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new I.A("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${o}-wrap`]:(0,m.A)({},(0,B.b)(`${o}-wrap`,a,s,r,!0))},{[`${o}-wrap`]:{[`\n          &${o}-wrap-enter,\n          &${o}-wrap-appear\n        `]:{opacity:0,animationTimingFunction:i},[`&${o}-wrap-leave`]:{animationTimingFunction:i}}}]},j=e=>{const{antCls:t,componentCls:n,floatButtonSize:r,margin:i,borderRadiusLG:o,borderRadiusSM:a,badgeOffset:s,floatButtonBodyPadding:l}=e,c=`${n}-group`;return{[c]:(0,m.A)((0,m.A)({},(0,L.dF)(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:r,height:"auto",boxShadow:"none",minHeight:r,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:o,[`${c}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:i},[`&${c}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${c}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:r,height:r,borderRadius:"50%"}}},[`${c}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:o,borderStartEndRadius:o},"&:last-child":{borderEndStartRadius:o,borderEndEndRadius:o},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:-(l+s),insetInlineEnd:-(l+s)}}},[`${c}-wrap`]:{display:"block",borderRadius:o,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:l,"&:first-child":{borderStartStartRadius:o,borderStartEndRadius:o},"&:last-child":{borderEndStartRadius:o,borderEndEndRadius:o},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${c}-circle-shadow`]:{boxShadow:"none"},[`${c}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:l,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:a}}}}},H=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:r,floatButtonIconSize:i,floatButtonSize:o,borderRadiusLG:a,badgeOffset:s,dotOffsetInSquare:l,dotOffsetInCircle:c}=e;return{[n]:(0,m.A)((0,m.A)({},(0,L.dF)(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",justifyContent:"center",alignItems:"center",width:o,height:o,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:-s,insetInlineEnd:-s}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:o,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${r/2}px ${r}px`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:i,fontSize:i,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:o,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:o,borderRadius:a,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:l,insetInlineEnd:l}},[`${n}-body`]:{height:"auto",borderRadius:a}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}};var U=(0,D.A)("FloatButton",e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:r,marginXXL:i,marginLG:o,fontSize:a,fontSizeIcon:s,controlItemBgHover:l,paddingXXS:c,borderRadiusLG:u}=e,d=(0,N.h1)(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:l,floatButtonFontSize:a,floatButtonIconSize:1.5*s,floatButtonSize:r,floatButtonInsetBlockEnd:i,floatButtonInsetInlineEnd:o,floatButtonBodySize:r-2*c,floatButtonBodyPadding:c,badgeOffset:1.5*c,dotOffsetInCircle:F(r/2),dotOffsetInSquare:F(u)});return[j(d),H(d),(0,R.p9)(e),$(d)]}),Q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const z="float-btn",W=(0,i.pM)({compatConfig:{MODE:3},name:"AFloatButton",inheritAttrs:!1,props:(0,M.A)(b(),{type:"default",shape:"circle"}),setup(e,t){let{attrs:n,slots:c}=t;const{prefixCls:u,direction:d}=(0,C.A)(z,e),[h,f]=U(u),{shape:p}=O(),g=(0,a.KR)(null),m=(0,i.EW)(()=>(null===p||void 0===p?void 0:p.value)||e.shape);return()=>{var t;const{prefixCls:a,type:p="default",shape:v="circle",description:A=(null===(t=c.description)||void 0===t?void 0:t.call(c)),tooltip:b,badge:y={}}=e,w=Q(e,["prefixCls","type","shape","description","tooltip","badge"]),_=(0,o.A)(u.value,`${u.value}-${p}`,`${u.value}-${m.value}`,{[`${u.value}-rtl`]:"rtl"===d.value},n.class,f.value),x=(0,i.bF)(s.A,{placement:"left"},{title:c.tooltip||b?()=>c.tooltip&&c.tooltip()||b:void 0,default:()=>(0,i.bF)(l.A,y,{default:()=>[(0,i.bF)("div",{class:`${u.value}-body`},[(0,i.bF)(S,{prefixCls:u.value},{icon:c.icon,description:()=>A})])]})});return h(e.href?(0,i.bF)("a",(0,r.A)((0,r.A)((0,r.A)({ref:g},n),w),{},{class:_}),[x]):(0,i.bF)("button",(0,r.A)((0,r.A)((0,r.A)({ref:g},n),w),{},{class:_,type:"button"}),[x]))}}});var G=W,V=n(45130),K=n(76110),Y=n(51589),q=n(45887),X=n(53523);const J=(0,i.pM)({compatConfig:{MODE:3},name:"AFloatButtonGroup",inheritAttrs:!1,props:(0,M.A)(w(),{type:"default",shape:"circle"}),setup(e,t){let{attrs:n,slots:s,emit:l}=t;const{prefixCls:c,direction:u}=(0,C.A)(z,e),[d,h]=U(c),[f,p]=(0,X.A)(!1,{value:(0,i.EW)(()=>e.open)}),m=(0,a.KR)(null),v=(0,a.KR)(null);k({shape:(0,i.EW)(()=>e.shape)});const A={onMouseenter(){var t;p(!0),l("update:open",!0),null===(t=e.onOpenChange)||void 0===t||t.call(e,!0)},onMouseleave(){var t;p(!1),l("update:open",!1),null===(t=e.onOpenChange)||void 0===t||t.call(e,!1)}},b=(0,i.EW)(()=>"hover"===e.trigger?A:{}),y=()=>{var t;const n=!f.value;l("update:open",n),null===(t=e.onOpenChange)||void 0===t||t.call(e,n),p(n)},w=t=>{var n,r,i;(null===(n=m.value)||void 0===n?void 0:n.contains(t.target))?(null===(r=(0,x.oK)(v.value))||void 0===r?void 0:r.contains(t.target))&&y():(p(!1),l("update:open",!1),null===(i=e.onOpenChange)||void 0===i||i.call(e,!1))};return(0,i.wB)((0,i.EW)(()=>e.trigger),e=>{(0,q.A)()&&(document.removeEventListener("click",w),"click"===e&&document.addEventListener("click",w))},{immediate:!0}),(0,i.xo)(()=>{document.removeEventListener("click",w)}),()=>{var t;const{shape:a="circle",type:l="default",tooltip:p,description:A,trigger:y}=e,w=`${c.value}-group`,_=(0,o.A)(w,h.value,n.class,{[`${w}-rtl`]:"rtl"===u.value,[`${w}-${a}`]:a,[`${w}-${a}-shadow`]:!y}),x=(0,o.A)(h.value,`${w}-wrap`),E=(0,Y.ce)(`${w}-wrap`);return d((0,i.bF)("div",(0,r.A)((0,r.A)({ref:m},n),{},{class:_},b.value),[y&&["click","hover"].includes(y)?(0,i.bF)(i.FK,null,[(0,i.bF)(V.eB,E,{default:()=>[(0,i.bo)((0,i.bF)("div",{class:x},[s.default&&s.default()]),[[V.aG,f.value]])]}),(0,i.bF)(G,{ref:v,type:l,shape:a,tooltip:p,description:A},{icon:()=>{var e,t;return f.value?(null===(e=s.closeIcon)||void 0===e?void 0:e.call(s))||(0,i.bF)(K.A,null,null):(null===(t=s.icon)||void 0===t?void 0:t.call(s))||(0,i.bF)(g,null,null)},tooltip:s.tooltip,description:s.description})]):null===(t=s.default)||void 0===t?void 0:t.call(s)]))}}});var Z=J,ee=n(99298),te=n(9761),ne=n(81998),re=n(86136);const ie=(0,i.pM)({compatConfig:{MODE:3},name:"ABackTop",inheritAttrs:!1,props:(0,M.A)(_(),{visibilityHeight:400,target:()=>window,duration:450,type:"default",shape:"circle"}),setup(e,t){let{slots:n,attrs:o,emit:s}=t;const{prefixCls:l,direction:c}=(0,C.A)(z,e),[u]=U(l),d=(0,a.KR)(),h=(0,a.Kh)({visible:0===e.visibilityHeight,scrollEvent:null}),f=()=>d.value&&d.value.ownerDocument?d.value.ownerDocument:window,p=t=>{const{target:n=f,duration:r}=e;(0,ne.A)(0,{getContainer:n,duration:r}),s("click",t)},g=(0,re.A)(t=>{const{visibilityHeight:n}=e,r=(0,te.A)(t.target,!0);h.visible=r>=n}),v=()=>{const{target:t}=e,n=t||f,r=n();g({target:r}),null===r||void 0===r||r.addEventListener("scroll",g)},A=()=>{const{target:t}=e,n=t||f,r=n();g.cancel(),null===r||void 0===r||r.removeEventListener("scroll",g)};(0,i.wB)(()=>e.target,()=>{A(),(0,i.dY)(()=>{v()})}),(0,i.sV)(()=>{(0,i.dY)(()=>{v()})}),(0,i.n)(()=>{(0,i.dY)(()=>{v()})}),(0,i.Y4)(()=>{A()}),(0,i.xo)(()=>{A()});const b=O();return()=>{const{description:t,type:a,shape:s,tooltip:f,badge:g}=e,v=(0,m.A)((0,m.A)({},o),{shape:(null===b||void 0===b?void 0:b.shape.value)||s,onClick:p,class:{[`${l.value}`]:!0,[`${o.class}`]:o.class,[`${l.value}-rtl`]:"rtl"===c.value},description:t,type:a,tooltip:f,badge:g}),A=(0,Y.ce)("fade");return u((0,i.bF)(V.eB,A,{default:()=>[(0,i.bo)((0,i.bF)(G,(0,r.A)((0,r.A)({},v),{},{ref:d}),{icon:()=>{var e;return(null===(e=n.icon)||void 0===e?void 0:e.call(n))||(0,i.bF)(ee.A,null,null)}}),[[V.aG,h.visible]])]}))}}});var oe=ie;G.Group=Z,G.BackTop=oe,G.install=function(e){return e.component(G.name,G),e.component(Z.name,Z),e.component(oe.name,oe),e};var ae=G},68031:function(e,t,n){"use strict";n(25393),t.stringify=n(71673)},68131:function(e,t,n){(function(e){e(n(83800))})(function(e){"use strict";function t(e){var t=e.getWrapperElement();e.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:t.style.width,height:t.style.height},t.style.width="",t.style.height="auto",t.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",e.refresh()}function n(e){var t=e.getWrapperElement();t.className=t.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var n=e.state.fullScreenRestore;t.style.width=n.width,t.style.height=n.height,window.scrollTo(n.scrollLeft,n.scrollTop),e.refresh()}e.defineOption("fullScreen",!1,function(r,i,o){o==e.Init&&(o=!1),!o!=!i&&(i?t(r):n(r))})})},68306:function(e,t){"use strict";const n=e=>void 0!==e&&null!==e&&""!==e;t.A=n},68333:function(e,t,n){"use strict";n.d(t,{s:function(){return r}});const r=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},68337:function(e){function t(e){const t=e.regex,n=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),r={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,n]},i=e.COMMENT(/--/,/$/),o=e.COMMENT(/\(\*/,/\*\)/,{contains:["self",i]}),a=[i,o,e.HASH_COMMENT_MODE],s=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],l=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[n,e.C_NUMBER_MODE,{className:"built_in",begin:t.concat(/\b/,t.either(...l),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:t.concat(/\b/,t.either(...s),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,r]},...a],illegal:/\/\/|->|=>|\[\[/}}e.exports=t},68487:function(e){function t(e){const t=e.regex,n=["displayHeight","displayWidth","mouseY","mouseX","mousePressed","pmouseX","pmouseY","key","keyCode","pixels","focused","frameCount","frameRate","height","width","size","createGraphics","beginDraw","createShape","loadShape","PShape","arc","ellipse","line","point","quad","rect","triangle","bezier","bezierDetail","bezierPoint","bezierTangent","curve","curveDetail","curvePoint","curveTangent","curveTightness","shape","shapeMode","beginContour","beginShape","bezierVertex","curveVertex","endContour","endShape","quadraticVertex","vertex","ellipseMode","noSmooth","rectMode","smooth","strokeCap","strokeJoin","strokeWeight","mouseClicked","mouseDragged","mouseMoved","mousePressed","mouseReleased","mouseWheel","keyPressed","keyPressedkeyReleased","keyTyped","print","println","save","saveFrame","day","hour","millis","minute","month","second","year","background","clear","colorMode","fill","noFill","noStroke","stroke","alpha","blue","brightness","color","green","hue","lerpColor","red","saturation","modelX","modelY","modelZ","screenX","screenY","screenZ","ambient","emissive","shininess","specular","add","createImage","beginCamera","camera","endCamera","frustum","ortho","perspective","printCamera","printProjection","cursor","frameRate","noCursor","exit","loop","noLoop","popStyle","pushStyle","redraw","binary","boolean","byte","char","float","hex","int","str","unbinary","unhex","join","match","matchAll","nf","nfc","nfp","nfs","split","splitTokens","trim","append","arrayCopy","concat","expand","reverse","shorten","sort","splice","subset","box","sphere","sphereDetail","createInput","createReader","loadBytes","loadJSONArray","loadJSONObject","loadStrings","loadTable","loadXML","open","parseXML","saveTable","selectFolder","selectInput","beginRaw","beginRecord","createOutput","createWriter","endRaw","endRecord","PrintWritersaveBytes","saveJSONArray","saveJSONObject","saveStream","saveStrings","saveXML","selectOutput","popMatrix","printMatrix","pushMatrix","resetMatrix","rotate","rotateX","rotateY","rotateZ","scale","shearX","shearY","translate","ambientLight","directionalLight","lightFalloff","lights","lightSpecular","noLights","normal","pointLight","spotLight","image","imageMode","loadImage","noTint","requestImage","tint","texture","textureMode","textureWrap","blend","copy","filter","get","loadPixels","set","updatePixels","blendMode","loadShader","PShaderresetShader","shader","createFont","loadFont","text","textFont","textAlign","textLeading","textMode","textSize","textWidth","textAscent","textDescent","abs","ceil","constrain","dist","exp","floor","lerp","log","mag","map","max","min","norm","pow","round","sq","sqrt","acos","asin","atan","atan2","cos","degrees","radians","sin","tan","noise","noiseDetail","noiseSeed","random","randomGaussian","randomSeed"],r=e.IDENT_RE,i={variants:[{match:t.concat(t.either(...n),t.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:t.concat(/\b(?!for|if|while)/,r,t.lookahead(/\s*\(/)),className:"title.function"}]},o={match:[/new\s+/,r],className:{1:"keyword",2:"class.title"}},a={relevance:0,match:[/\./,r],className:{2:"property"}},s={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,r]},{match:[/class/,/\s+/,r]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},l=["boolean","byte","char","color","double","float","int","long","short"],c=["BufferedReader","PVector","PFont","PImage","PGraphics","HashMap","String","Array","FloatDict","ArrayList","FloatList","IntDict","IntList","JSONArray","JSONObject","Object","StringDict","StringList","Table","TableRow","XML"],u=["abstract","assert","break","case","catch","const","continue","default","else","enum","final","finally","for","if","import","instanceof","long","native","new","package","private","private","protected","protected","public","public","return","static","strictfp","switch","synchronized","throw","throws","transient","try","void","volatile","while"];return{name:"Processing",aliases:["pde"],keywords:{keyword:[...u],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...n,...c],type:l},contains:[s,o,i,a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}e.exports=t},68750:function(e,t,n){"use strict";var r=n(97080),i=n(94402),o=n(25170),a=n(83789),s=n(38469),l=n(40507),c=i.Set,u=i.add,d=i.has;e.exports=function(e){var t=r(this),n=a(e),i=new c;return o(t)>n.size?l(n.getIterator(),function(e){d(t,e)&&u(i,e)}):s(t,function(e){n.includes(e)&&u(i,e)}),i}},68912:function(e,t,n){var r,i="/";n(44114),function(){"use strict";r=function(e,t,n,r){r=r||{},this.dictionary=null,this.rules={},this.dictionaryTable={},this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=r.flags||{},this.memoized={},this.loaded=!1;var o,a,s,l,c,u=this;if(e)if(u.dictionary=e,t&&n)g();else if("undefined"!==typeof window&&(window.chrome&&window.chrome.runtime||window.browser&&window.browser.runtime)){var d=window.chrome&&window.chrome.runtime?window.chrome.runtime:window.browser.runtime;o=r.dictionaryPath?r.dictionaryPath:"typo/dictionaries",t||h(d.getURL(o+"/"+e+"/"+e+".aff"),f),n||h(d.getURL(o+"/"+e+"/"+e+".dic"),p)}else o=r.dictionaryPath?r.dictionaryPath:i+"/dictionaries",t||h(o+"/"+e+"/"+e+".aff",f),n||h(o+"/"+e+"/"+e+".dic",p);function h(e,t){var n=u._readFile(e,null,null===r||void 0===r?void 0:r.asyncLoad);(null===r||void 0===r?void 0:r.asyncLoad)?n.then(function(e){t(e)}):t(n)}function f(e){t=e,n&&g()}function p(e){n=e,t&&g()}function g(){for(u.rules=u._parseAFF(t),u.compoundRuleCodes={},a=0,l=u.compoundRules.length;a<l;a++){var e=u.compoundRules[a];for(s=0,c=e.length;s<c;s++)u.compoundRuleCodes[e[s]]=[]}for(a in"ONLYINCOMPOUND"in u.flags&&(u.compoundRuleCodes[u.flags.ONLYINCOMPOUND]=[]),u.dictionaryTable=u._parseDIC(n),u.compoundRuleCodes)0===u.compoundRuleCodes[a].length&&delete u.compoundRuleCodes[a];for(a=0,l=u.compoundRules.length;a<l;a++){var i=u.compoundRules[a],o="";for(s=0,c=i.length;s<c;s++){var d=i[s];d in u.compoundRuleCodes?o+="("+u.compoundRuleCodes[d].join("|")+")":o+=d}u.compoundRules[a]=new RegExp("^"+o+"$","i")}u.loaded=!0,(null===r||void 0===r?void 0:r.asyncLoad)&&(null===r||void 0===r?void 0:r.loadedCallback)&&r.loadedCallback(u)}return this},r.prototype={load:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);return this},_readFile:function(e,t,r){var i;if(t=t||"utf8","undefined"!==typeof XMLHttpRequest){var o=new XMLHttpRequest;if(o.open("GET",e,!!r),null===(i=o.overrideMimeType)||void 0===i||i.call(o,"text/plain; charset="+t),r){var a=new Promise(function(e,t){o.onload=function(){200===o.status?e(o.responseText):t(o.statusText)},o.onerror=function(){t(o.statusText)}});return o.send(null),a}return o.send(null),o.responseText}var s=n(28986);try{if(s.existsSync(e))return s.readFileSync(e,t);console.log("Path "+e+" does not exist.")}catch(l){console.log(l)}return""},_parseAFF:function(e){var t,n,r,i,o,a,s,l,c={},u=e.split(/\r?\n/);for(o=0,s=u.length;o<s;o++)if(t=this._removeAffixComments(u[o]),t=t.trim(),t){var d=t.split(/\s+/),h=d[0];if("PFX"===h||"SFX"===h){var f=d[1],p=d[2];r=parseInt(d[3],10);var g=[];for(a=o+1,l=o+1+r;a<l;a++){n=u[a],i=n.split(/\s+/);var m=i[2],v=i[3].split("/"),A=v[0];"0"===A&&(A="");var b=this.parseRuleCodes(v[1]),y=i[4],w={add:A};b.length>0&&(w.continuationClasses=b),"."!==y&&(w.match="SFX"===h?new RegExp(y+"$"):new RegExp("^"+y)),"0"!=m&&(w.remove="SFX"===h?new RegExp(m+"$"):m),g.push(w)}c[f]={type:h,combineable:"Y"===p,entries:g},o+=r}else if("COMPOUNDRULE"===h){for(r=parseInt(d[1],10),a=o+1,l=o+1+r;a<l;a++)t=u[a],i=t.split(/\s+/),this.compoundRules.push(i[1]);o+=r}else"REP"===h?(i=t.split(/\s+/),3===i.length&&this.replacementTable.push([i[1],i[2]])):this.flags[h]=d[1]}return c},_removeAffixComments:function(e){return e.match(/^\s*#/)?"":e},_parseDIC:function(e){e=this._removeDicComments(e);var t=e.split(/\r?\n/),n={};function r(e,t){n.hasOwnProperty(e)||(n[e]=null),t.length>0&&(null===n[e]&&(n[e]=[]),n[e].push(t))}for(var i=1,o=t.length;i<o;i++){var a=t[i];if(a){var s=a.replace(/\s.*$/,""),l=s.split("/",2),c=l[0];if(l.length>1){var u=this.parseRuleCodes(l[1]);"NEEDAFFIX"in this.flags&&-1!==u.indexOf(this.flags.NEEDAFFIX)||r(c,u);for(var d=0,h=u.length;d<h;d++){var f=u[d],p=this.rules[f];if(p)for(var g=this._applyRule(c,p),m=0,v=g.length;m<v;m++){var A=g[m];if(r(A,[]),p.combineable)for(var b=d+1;b<h;b++){var y=u[b],w=this.rules[y];if(w&&w.combineable&&p.type!=w.type)for(var _=this._applyRule(A,w),x=0,E=_.length;x<E;x++){var S=_[x];r(S,[])}}}f in this.compoundRuleCodes&&this.compoundRuleCodes[f].push(c)}}else r(c.trim(),[])}}return n},_removeDicComments:function(e){return e=e.replace(/^\t.*$/gm,""),e},parseRuleCodes:function(e){if(e){if("FLAG"in this.flags){if("long"===this.flags.FLAG){for(var t=[],n=0,r=e.length;n<r;n+=2)t.push(e.substr(n,2));return t}return"num"===this.flags.FLAG?e.split(","):"UTF-8"===this.flags.FLAG?Array.from(e):e.split("")}return e.split("")}return[]},_applyRule:function(e,t){for(var n=t.entries,r=[],i=0,o=n.length;i<o;i++){var a=n[i];if(!a.match||e.match(a.match)){var s=e;if(a.remove&&(s=s.replace(a.remove,"")),"SFX"===t.type?s+=a.add:s=a.add+s,r.push(s),"continuationClasses"in a)for(var l=0,c=a.continuationClasses.length;l<c;l++){var u=this.rules[a.continuationClasses[l]];u&&(r=r.concat(this._applyRule(s,u)))}}}return r},check:function(e){if(!this.loaded)throw"Dictionary not loaded.";if(!e)return!1;var t=e.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(this.checkExact(t))return!0;if(t.toUpperCase()===t){var n=t[0]+t.substring(1).toLowerCase();if(this.hasFlag(n,"KEEPCASE"))return!1;if(this.checkExact(n))return!0;if(this.checkExact(t.toLowerCase()))return!0}var r=t[0].toLowerCase()+t.substring(1);if(r!==t){if(this.hasFlag(r,"KEEPCASE"))return!1;if(this.checkExact(r))return!0}return!1},checkExact:function(e){if(!this.loaded)throw"Dictionary not loaded.";var t,n,r=this.dictionaryTable[e];if("undefined"===typeof r){if("COMPOUNDMIN"in this.flags&&e.length>=this.flags.COMPOUNDMIN)for(t=0,n=this.compoundRules.length;t<n;t++)if(e.match(this.compoundRules[t]))return!0}else{if(null===r)return!0;if("object"===typeof r)for(t=0,n=r.length;t<n;t++)if(!this.hasFlag(e,"ONLYINCOMPOUND",r[t]))return!0}return!1},hasFlag:function(e,t,n){if(!this.loaded)throw"Dictionary not loaded.";return!(!(t in this.flags)||("undefined"===typeof n&&(n=Array.prototype.concat.apply([],this.dictionaryTable[e])),!n||-1===n.indexOf(this.flags[t])))},alphabet:"",suggest:function(e,t){if(!this.loaded)throw"Dictionary not loaded.";if(t=t||5,this.memoized.hasOwnProperty(e)){var n=this.memoized[e]["limit"];if(t<=n||this.memoized[e]["suggestions"].length<n)return this.memoized[e]["suggestions"].slice(0,t)}if(this.check(e))return[];for(var r=0,i=this.replacementTable.length;r<i;r++){var o=this.replacementTable[r];if(-1!==e.indexOf(o[0])){var a=e.replace(o[0],o[1]);if(this.check(a))return[a]}}if(!this.alphabet){this.alphabet="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","TRY"in this.flags&&(this.alphabet+=this.flags["TRY"]),"WORDCHARS"in this.flags&&(this.alphabet+=this.flags["WORDCHARS"]);var s=this.alphabet.split("");s.sort();var l={};for(r=0;r<s.length;r++)l[s[r]]=!0;for(var r in this.alphabet="",l)this.alphabet+=r}var c=this;function u(e,t){var n,r,i,o,a={},s=c.alphabet.length;for(var l in e)for(n=0,i=l.length+1;n<i;n++){var u=[l.substring(0,n),l.substring(n)];if(u[1]&&(o=u[0]+u[1].substring(1),t&&!c.check(o)||(o in a?a[o]+=1:a[o]=1)),u[1].length>1&&u[1][1]!==u[1][0]&&(o=u[0]+u[1][1]+u[1][0]+u[1].substring(2),t&&!c.check(o)||(o in a?a[o]+=1:a[o]=1)),u[1]){var d=u[1].substring(0,1).toUpperCase()===u[1].substring(0,1)?"uppercase":"lowercase";for(r=0;r<s;r++){var h=c.alphabet[r];"uppercase"===d&&(h=h.toUpperCase()),h!=u[1].substring(0,1)&&(o=u[0]+h+u[1].substring(1),t&&!c.check(o)||(o in a?a[o]+=1:a[o]=1))}}if(u[1])for(r=0;r<s;r++){d=u[0].substring(-1).toUpperCase()===u[0].substring(-1)&&u[1].substring(0,1).toUpperCase()===u[1].substring(0,1)?"uppercase":"lowercase",h=c.alphabet[r];"uppercase"===d&&(h=h.toUpperCase()),o=u[0]+h+u[1],t&&!c.check(o)||(o in a?a[o]+=1:a[o]=1)}}return a}function d(e){var n,r,i=u((n={},n[e]=!0,n)),o=u(i,!0),a=o;for(var s in i)c.check(s)&&(s in a?a[s]+=i[s]:a[s]=i[s]);var l=[];for(r in a)a.hasOwnProperty(r)&&(c.hasFlag(r,"PRIORITYSUGGEST")&&(a[r]+=1e3),l.push([r,a[r]]));function d(e,t){var n=e[1],r=t[1];return n<r?-1:n>r?1:t[0].localeCompare(e[0])}l.sort(d).reverse();var h=[],f="lowercase";e.toUpperCase()===e?f="uppercase":e.substr(0,1).toUpperCase()+e.substr(1).toLowerCase()===e&&(f="capitalized");var p=t;for(r=0;r<Math.min(p,l.length);r++)"uppercase"===f?l[r][0]=l[r][0].toUpperCase():"capitalized"===f&&(l[r][0]=l[r][0].substr(0,1).toUpperCase()+l[r][0].substr(1)),c.hasFlag(l[r][0],"NOSUGGEST")||-1!==h.indexOf(l[r][0])?p++:h.push(l[r][0]);return h}return this.memoized[e]={suggestions:d(e),limit:t},this.memoized[e]["suggestions"]}}}(),e.exports=r},68933:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"unordered-list",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="UnorderedListOutlined",c.inheritAttrs=!1;var u=c},68953:function(e){function t(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}e.exports=t},69092:function(e,t,n){"use strict";var r=n(39314),i=(0,r.A)(Object.getPrototypeOf,Object);t.A=i},69565:function(e,t,n){"use strict";var r=n(40616),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},69566:function(e,t,n){"use strict";n.d(t,{A:function(){return a},P:function(){return s}});var r="undefined"!==typeof window&&window.location&&window.location.href.indexOf("xgplayerdebugger=1")>-1,i={info:"color: #525252; background-color: #90ee90;",error:"color: #525252; background-color: red;",warn:"color: #525252; background-color: yellow; "},o="%c[xgplayer]",a={config:{debug:r?3:0},logInfo:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];this.config.debug>=3&&(t=console).log.apply(t,[o,i.info,e].concat(r))},logWarn:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];this.config.debug>=1&&(t=console).warn.apply(t,[o,i.warn,e].concat(r))},logError:function(e){var t;if(!(this.config.debug<1)){for(var n=this.config.debug>=2?"trace":"error",r=arguments.length,a=new Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];(t=console)[n].apply(t,[o,i.error,e].concat(a))}}};function s(e){e.logInfo=a.logInfo.bind(e),e.logWarn=a.logWarn.bind(e),e.logError=a.logError.bind(e)}},69777:function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}})},69886:function(e){function t(e){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[e.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,e.IDENT_RE],className:{1:"keyword",3:"title"},end:"$",relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}e.exports=t},69937:function(e,t){"use strict";function n(e){return e}t.A=n},69998:function(e,t,n){"use strict";n(18111),n(18237);var r=n(41034),i=n(56768),o=n(49974);t.A=(0,i.pM)({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let n,{attrs:a,slots:s}=t,l=!1;const c=(0,i.EW)(()=>void 0===e.duration?4.5:e.duration),u=()=>{c.value&&!l&&(n=setTimeout(()=>{h()},1e3*c.value))},d=()=>{n&&(clearTimeout(n),n=null)},h=t=>{t&&t.stopPropagation(),d();const{onClose:n,noticeKey:r}=e;n&&n(r)},f=()=>{d(),u()};return(0,i.sV)(()=>{u()}),(0,i.hi)(()=>{l=!0,d()}),(0,i.wB)([c,()=>e.updateMark,()=>e.visible],(e,t)=>{let[n,r,i]=e,[o,a,s]=t;(n!==o||r!==a||i!==s&&s)&&f()},{flush:"post"}),()=>{var t,n;const{prefixCls:l,closable:c,closeIcon:f=(null===(t=s.closeIcon)||void 0===t?void 0:t.call(s)),onClick:p,holder:g}=e,{class:m,style:v}=a,A=`${l}-notice`,b=Object.keys(a).reduce((e,t)=>((t.startsWith("data-")||t.startsWith("aria-")||"role"===t)&&(e[t]=a[t]),e),{}),y=(0,i.bF)("div",(0,r.A)({class:(0,o.A)(A,m,{[`${A}-closable`]:c}),style:v,onMouseenter:d,onMouseleave:u,onClick:p},b),[(0,i.bF)("div",{class:`${A}-content`},[null===(n=s.default)||void 0===n?void 0:n.call(s)]),c?(0,i.bF)("a",{tabindex:0,onClick:h,class:`${A}-close`},[f||(0,i.bF)("span",{class:`${A}-close-x`},null)]):null]);return g?(0,i.bF)(i.Im,{to:g},{default:()=>y}):y}}})},70042:function(e){function t(e){const t={begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]},n={className:"params",begin:/\(/,end:/\)/,contains:[t],relevance:0},r={className:"function",begin:/:[\w\-.]+/,relevance:0},i={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},o={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,o,r,i,n]}}e.exports=t},70081:function(e,t,n){"use strict";var r=n(69565),i=n(79306),o=n(28551),a=n(16823),s=n(50851),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return o(r(n,e));throw new l(a(e)+" is not iterable")}},70485:function(e){function t(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},n={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},r={className:"number",relevance:0,variants:[{match:/\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/},{match:/\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/}]},i={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,n]}]};n.contains=[r,i];const o=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],a=o.map(e=>`${e}?`),s=["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],l={keyword:s,built_in:o.concat(a).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/};return{name:"Dart",keywords:l,contains:[i,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},r,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}e.exports=t},70511:function(e,t,n){"use strict";var r=n(19167),i=n(39297),o=n(1951),a=n(24913).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},70615:function(e,t,n){"use strict";n(18111),n(7588);var r=n(38809),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},70641:function(){},70706:function(e){function t(e){const t=e.regex,n={$pattern:/[A-Z]+|%/,keyword:["THEN","ELSE","ENDIF","IF","GOTO","DO","WHILE","WH","END","CALL","SUB","ENDSUB","EQ","NE","LT","GT","LE","GE","AND","OR","XOR","%"],built_in:["ATAN","ABS","ACOS","ASIN","COS","EXP","FIX","FUP","ROUND","LN","SIN","SQRT","TAN","EXISTS"]},r=/\b/;function i(e,t){if(0===e.index)return;const n=e.input[e.index-1];n>="0"&&n<="9"||"_"!==n&&t.ignoreMatch()}const o=/[+-]?((\.\d+)|(\d+)(\.\d*)?)/,a=/[GM]\s*\d+(\.\d+)?/,s=/T\s*\d+/,l=/O\s*\d+/,c=/O<.+>/,u=/[ABCUVWXYZ]\s*/,d=/[FHIJKPQRS]\s*/,h=[e.COMMENT(/\(/,/\)/),e.COMMENT(/;/,/$/),e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{scope:"title.function",variants:[{match:t.concat(r,a)},{begin:a,"on:begin":i},{match:t.concat(r,s)},{begin:s,"on:begin":i}]},{scope:"symbol",variants:[{match:t.concat(r,l)},{begin:l,"on:begin":i},{match:t.concat(r,c)},{begin:c,"on:begin":i},{match:/\*\s*\d+\s*$/}]},{scope:"operator",match:/^N\s*\d+/},{scope:"variable",match:/-?#\s*\d+/},{scope:"property",variants:[{match:t.concat(r,u,o)},{begin:t.concat(u,o),"on:begin":i}]},{scope:"params",variants:[{match:t.concat(r,d,o)},{begin:t.concat(d,o),"on:begin":i}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,disableAutodetect:!0,keywords:n,contains:h}}e.exports=t},70742:function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";var e="day";return function(t,n,r){var i=function(t){return t.add(4-t.isoWeekday(),e)},o=n.prototype;o.isoWeekYear=function(){return i(this).year()},o.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var n,o,a,s,l=i(this),c=(n=this.isoWeekYear(),o=this.$u,a=(o?r.utc:r)().year(n).startOf("year"),s=4-a.isoWeekday(),a.isoWeekday()>4&&(s+=7),a.add(s,e));return l.diff(c,"week")+1},o.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=o.startOf;o.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return"isoweek"===n.p(e)?r?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):a.bind(this)(e,t)}}})},71072:function(e,t,n){"use strict";var r=n(61828),i=n(88727);e.exports=Object.keys||function(e){return r(e,i)}},71191:function(e,t,n){"use strict";var r=n(23506),i=n(18095),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function s(e,t){if((0,r.A)(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!(0,i.A)(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}t.A=s},71241:function(e,t){"use strict";t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n}},71673:function(e,t,n){"use strict";n(18111),n(22489),n(61701);var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,i){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===typeof e?Object.keys(e).map(function(i){var o=encodeURIComponent(r(i))+n;return Array.isArray(e[i])?e[i].map(function(e){return o+encodeURIComponent(r(e))}).join(t):o+encodeURIComponent(r(e[i]))}).filter(Boolean).join(t):i?encodeURIComponent(r(i))+n+encodeURIComponent(r(e)):""}},71801:function(e,t,n){"use strict";function r(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}n.d(t,{A:function(){return u}});var i=r,o=n(56054),a=Object.prototype,s=a.propertyIsEnumerable,l=Object.getOwnPropertySymbols,c=l?function(e){return null==e?[]:(e=Object(e),i(l(e),function(t){return s.call(e,t)}))}:o.A,u=c},71831:function(e){function t(e){const t={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},n={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},r={begin:/\(/,end:/\)/,relevance:0},i={begin:/\[/,end:/\]/},o={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},a={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},s={className:"string",begin:/0'(\\'|.)/},l={className:"string",begin:/0'\\s/},c={begin:/:-/},u=[t,n,r,c,i,o,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,a,s,l,e.C_NUMBER_MODE];return r.contains=u,i.contains=u,{name:"Prolog",contains:u.concat([{begin:/\.$/}])}}e.exports=t},72327:function(e,t,n){"use strict";n(44114);var r=n(9485),i=Array.prototype.concat,o=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n<a;n++){var s=e[n];r(s)?t=i.call(t,o.call(s)):t.push(s)}return t};a.wrap=function(e){return function(){return e(a(arguments))}}},72474:function(e){function t(e){const t=["true","false","iota","nil"],n=["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"],r=["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],i=["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],o={keyword:i,type:r,literal:t,built_in:n};return{name:"Go",aliases:["golang"],keywords:o,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,illegal:/["']/}]}]}}e.exports=t},72647:function(e){function t(e){const t=["println","readln","print","import","module","function","local","return","let","var","while","for","foreach","times","in","case","when","match","with","break","continue","augment","augmentation","each","find","filter","reduce","if","then","else","otherwise","try","catch","finally","raise","throw","orIfNull","DynamicObject|10","DynamicVariable","struct","Observable","map","set","vector","list","array"];return{name:"Golo",keywords:{keyword:t,literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}e.exports=t},72652:function(e,t,n){"use strict";var r=n(76080),i=n(69565),o=n(28551),a=n(16823),s=n(44209),l=n(26198),c=n(1625),u=n(70081),d=n(50851),h=n(9539),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;e.exports=function(e,t,n){var m,v,A,b,y,w,_,x=n&&n.that,E=!(!n||!n.AS_ENTRIES),S=!(!n||!n.IS_RECORD),C=!(!n||!n.IS_ITERATOR),T=!(!n||!n.INTERRUPTED),k=r(t,x),O=function(e){return m&&h(m,"normal"),new p(!0,e)},M=function(e){return E?(o(e),T?k(e[0],e[1],O):k(e[0],e[1])):T?k(e,O):k(e)};if(S)m=e.iterator;else if(C)m=e;else{if(v=d(e),!v)throw new f(a(e)+" is not iterable");if(s(v)){for(A=0,b=l(e);b>A;A++)if(y=M(e[A]),y&&c(g,y))return y;return new p(!1)}m=u(e,v)}w=S?e.next:m.next;while(!(_=i(w,m)).done){try{y=M(_.value)}catch(I){h(m,"throw",I)}if("object"==typeof y&&y&&c(g,y))return y}return new p(!1)}},72653:function(e,t,n){"use strict";n(44114);var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function l(e,t){0===--e._eventsCount?e._events=new o:delete e._events[t]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),c.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},c.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a},c.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,r,o,a){var s=i?i+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,o),!0;case 6:return u.fn.call(u.context,t,n,r,o,a),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,r);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];u[c].fn.apply(u[c].context,l)}}return!0},c.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,r){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return l(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||l(this,o);else{for(var s=0,c=[],u=a.length;s<u;s++)(a[s].fn!==t||r&&!a[s].once||n&&a[s].context!==n)&&c.push(a[s]);c.length?this._events[o]=1===c.length?c[0]:c:l(this,o)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&l(this,t)):(this._events=new o,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=i,c.EventEmitter=c,e.exports=c},72777:function(e,t,n){"use strict";var r=n(69565),i=n(20034),o=n(10757),a=n(55966),s=n(84270),l=n(78227),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,l=a(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!i(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},72928:function(e,t,n){"use strict";var r=n(56768),i=n(81425),o=n(34162);t.A=(0,r.pM)({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:i.A.func.isRequired,didUpdate:Function},setup(e,t){let n,{slots:i}=t,a=!0;const{shouldRender:s}=(0,o.v)();function l(){s.value&&(n=e.getContainer())}(0,r.KC)(()=>{a=!1,l()}),(0,r.sV)(()=>{n||l()});const c=(0,r.wB)(s,()=>{s.value&&!n&&(n=e.getContainer()),n&&c()});return(0,r.$u)(()=>{(0,r.dY)(()=>{var t;s.value&&(null===(t=e.didUpdate)||void 0===t||t.call(e,e))})}),()=>{var e;return s.value?a?null===(e=i.default)||void 0===e?void 0:e.call(i):n?(0,r.bF)(r.Im,{to:n},i):null:null}}})},72956:function(e){function t(e){const t=["module","schema","namespace","boundary-space","preserve","no-preserve","strip","default","collation","base-uri","ordering","context","decimal-format","decimal-separator","copy-namespaces","empty-sequence","except","exponent-separator","external","grouping-separator","inherit","no-inherit","lax","minus-sign","per-mille","percent","schema-attribute","schema-element","strict","unordered","zero-digit","declare","import","option","function","validate","variable","for","at","in","let","where","order","group","by","return","if","then","else","tumbling","sliding","window","start","when","only","end","previous","next","stable","ascending","descending","allowing","empty","greatest","least","some","every","satisfies","switch","case","typeswitch","try","catch","and","or","to","union","intersect","instance","of","treat","as","castable","cast","map","array","delete","insert","into","replace","value","rename","copy","modify","update"],n=["item","document-node","node","attribute","document","element","comment","namespace","namespace-node","processing-instruction","text","construction","xs:anyAtomicType","xs:untypedAtomic","xs:duration","xs:time","xs:decimal","xs:float","xs:double","xs:gYearMonth","xs:gYear","xs:gMonthDay","xs:gMonth","xs:gDay","xs:boolean","xs:base64Binary","xs:hexBinary","xs:anyURI","xs:QName","xs:NOTATION","xs:dateTime","xs:dateTimeStamp","xs:date","xs:string","xs:normalizedString","xs:token","xs:language","xs:NMTOKEN","xs:Name","xs:NCName","xs:ID","xs:IDREF","xs:ENTITY","xs:integer","xs:nonPositiveInteger","xs:negativeInteger","xs:long","xs:int","xs:short","xs:byte","xs:nonNegativeInteger","xs:unisignedLong","xs:unsignedInt","xs:unsignedShort","xs:unsignedByte","xs:positiveInteger","xs:yearMonthDuration","xs:dayTimeDuration"],r=["eq","ne","lt","le","gt","ge","is","self::","child::","descendant::","descendant-or-self::","attribute::","following::","following-sibling::","parent::","ancestor::","ancestor-or-self::","preceding::","preceding-sibling::","NaN"],i={className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^</$:'"-]\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\b/},{begin:/\blocal:/,end:/\(/,excludeEnd:!0},{begin:/\bzip:/,end:/(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\b/},{begin:/\b(?:util|db|functx|app|xdmp|xmldb):/,end:/\(/,excludeEnd:!0}]},o={className:"title",begin:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,end:/;/},a={className:"variable",begin:/[$][\w\-:]+/},s={className:"number",begin:/(\b0[0-7_]+)|(\b0x[0-9a-fA-F_]+)|(\b[1-9][0-9_]*(\.[0-9_]+)?)|[0_]\b/,relevance:0},l={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},c={className:"meta",begin:/%[\w\-:]+/},u={className:"comment",begin:/\(:/,end:/:\)/,relevance:10,contains:[{className:"doctag",begin:/@\w+/}]},d={beginKeywords:"element attribute comment document processing-instruction",end:/\{/,excludeEnd:!0},h={begin:/<([\w._:-]+)(\s+\S*=('|").*('|"))?>/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]},f=[a,i,l,s,u,c,o,d,h];return{name:"XQuery",aliases:["xpath","xq","xqm"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:t,type:n,literal:r},contains:f}}e.exports=t},72990:function(e,t,n){"use strict";var r=n(39578),i=r.A.Symbol;t.A=i},73178:function(e,t,n){"use strict";function r(e,t){const n=Object.create(null);for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}n.d(t,{c:function(){return r},g:function(){return i}})},73268:function(e){function t(e){const t=[e.C_NUMBER_MODE,{className:"string",begin:"'|\"",end:"'|\"",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:t},e.COMMENT("//","$")].concat(t)}}e.exports=t},73429:function(e,t,n){"use strict";n(18111),n(7588);var r=n(51137);const i=(e,t)=>{const n=(0,r.A)({},e);return Object.keys(t).forEach(e=>{const r=n[e];if(!r)throw new Error(`not have ${e} prop`);r.type||r.default?r.default=t[e]:r.def?r.def(t[e]):n[e]={type:r,default:t[e]}}),n};t.A=i},73503:function(e,t,n){"use strict";n.d(t,{x3:function(){return B}});n(44114),n(18111),n(61701);var r="text/plain",i=e=>{};function o(e){i(e)}function a(){(console.warn||console.log).apply(console,arguments)}a.bind("[clipboard-polyfill]");var s,l,c,u="undefined"===typeof window?void 0:window,d="undefined"===typeof globalThis?void 0:globalThis,h=null!=(c=null==(s=u)?void 0:s.Promise)?c:null==(l=d)?void 0:l.Promise;function f(){if(!h)throw new Error("No `Promise` implementation available for `clipboard-polyfill`. Consider using: https://github.com/lgarron/clipboard-polyfill#flat-file-version-with-promise-included");return h}var p,g,m,v,A,b="undefined"===typeof navigator?void 0:navigator,y=null==b?void 0:b.clipboard,w=(null==(p=null==y?void 0:y.read)||p.bind(y),null==(g=null==y?void 0:y.readText)||g.bind(y),null==(m=null==y?void 0:y.write)||m.bind(y),null==(v=null==y?void 0:y.writeText)?void 0:v.bind(y)),_=(null==(A=u)||A.ClipboardItem,f()),x=u;function E(){return"undefined"===typeof ClipboardEvent&&"undefined"!==typeof(null==x?void 0:x.clipboardData)&&"undefined"!==typeof(null==x?void 0:x.clipboardData.setData)}function S(e){if(!x.clipboardData)return!1;var t=x.clipboardData.setData("Text",e);return t&&o("writeTextIE worked"),t}function C(e,t,n){for(var i in o("listener called"),e.success=!0,t){var a=t[i],s=n.clipboardData;s.setData(i,a),i===r&&s.getData(i)!==a&&(o("setting text/plain failed"),e.success=!1)}n.preventDefault()}function T(e){var t={success:!1},n=C.bind(this,t,e);document.addEventListener("copy",n);try{document.execCommand("copy")}finally{document.removeEventListener("copy",n)}return t.success}function k(e,t){I(e);var n=T(t);return D(),n}function O(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important"),t.textContent="temporary element",document.body.appendChild(t);var n=k(t,e);return document.body.removeChild(t),n}function M(e){o("copyTextUsingDOM");var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important");var n=t;t.attachShadow&&(o("Using shadow DOM."),n=t.attachShadow({mode:"open"}));var r=document.createElement("span");r.innerText=e,n.appendChild(r),document.body.appendChild(t),I(r);var i=document.execCommand("copy");return D(),document.body.removeChild(t),i}function I(e){var t=document.getSelection();if(t){var n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}}function D(){var e=document.getSelection();e&&e.removeAllRanges()}function N(e){var t=r in e;if(E()){if(!t)throw new Error("No `text/plain` value was specified.");if(S(e[r]))return!0;throw new Error("Copying failed, possibly because the user rejected it.")}return T(e)?(o("regular execCopy worked"),!0):navigator.userAgent.indexOf("Edge")>-1?(o('UA "Edge" => assuming success'),!0):k(document.body,e)?(o("copyUsingTempSelection worked"),!0):O(e)?(o("copyUsingTempElem worked"),!0):!!M(e[r])&&(o("copyTextUsingDOM worked"),!0)}_.resolve(),_.resolve(!1);function R(e){return new _((t,n)=>{try{t(e())}catch(r){n(r)}})}function L(e){var t={};return t[r]=e,t}function B(e){return w?(o("Using `navigator.clipboard.writeText()`."),w(e).catch(()=>P(e))):P(e)}function P(e){return R(()=>_.resolve(F(e)))}function F(e){if(!N(L(e)))throw new Error("writeText() failed")}},73506:function(e,t,n){"use strict";var r=n(13925),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},73553:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},73586:function(e){function t(e){const t=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],n=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],r=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+r.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+t.join("|")+")\\s"},{begin:"\\s("+t.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+n.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:"L[^(;:\n]*;",relevance:0},{begin:"[vp][0-9]+"}]}}e.exports=t},73686:function(e){function t(e){const t=e.regex,n=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:t.concat(/"/,t.either(...n)),end:/"/,keywords:n,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}e.exports=t},73772:function(e){function t(e){const t=e.regex,n={$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf|0","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate|5","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],literal:["null"],built_in:["$finish","$stop","$exit","$fatal","$error","$warning","$info","$realtime","$time","$printtimescale","$bitstoreal","$bitstoshortreal","$itor","$signed","$cast","$bits","$stime","$timeformat","$realtobits","$shortrealtobits","$rtoi","$unsigned","$asserton","$assertkill","$assertpasson","$assertfailon","$assertnonvacuouson","$assertoff","$assertcontrol","$assertpassoff","$assertfailoff","$assertvacuousoff","$isunbounded","$sampled","$fell","$changed","$past_gclk","$fell_gclk","$changed_gclk","$rising_gclk","$steady_gclk","$coverage_control","$coverage_get","$coverage_save","$set_coverage_db_name","$rose","$stable","$past","$rose_gclk","$stable_gclk","$future_gclk","$falling_gclk","$changing_gclk","$display","$coverage_get_max","$coverage_merge","$get_coverage","$load_coverage_db","$typename","$unpacked_dimensions","$left","$low","$increment","$clog2","$ln","$log10","$exp","$sqrt","$pow","$floor","$ceil","$sin","$cos","$tan","$countbits","$onehot","$isunknown","$fatal","$warning","$dimensions","$right","$high","$size","$asin","$acos","$atan","$atan2","$hypot","$sinh","$cosh","$tanh","$asinh","$acosh","$atanh","$countones","$onehot0","$error","$info","$random","$dist_chi_square","$dist_erlang","$dist_exponential","$dist_normal","$dist_poisson","$dist_t","$dist_uniform","$q_initialize","$q_remove","$q_exam","$async$and$array","$async$nand$array","$async$or$array","$async$nor$array","$sync$and$array","$sync$nand$array","$sync$or$array","$sync$nor$array","$q_add","$q_full","$psprintf","$async$and$plane","$async$nand$plane","$async$or$plane","$async$nor$plane","$sync$and$plane","$sync$nand$plane","$sync$or$plane","$sync$nor$plane","$system","$display","$displayb","$displayh","$displayo","$strobe","$strobeb","$strobeh","$strobeo","$write","$readmemb","$readmemh","$writememh","$value$plusargs","$dumpvars","$dumpon","$dumplimit","$dumpports","$dumpportson","$dumpportslimit","$writeb","$writeh","$writeo","$monitor","$monitorb","$monitorh","$monitoro","$writememb","$dumpfile","$dumpoff","$dumpall","$dumpflush","$dumpportsoff","$dumpportsall","$dumpportsflush","$fclose","$fdisplay","$fdisplayb","$fdisplayh","$fdisplayo","$fstrobe","$fstrobeb","$fstrobeh","$fstrobeo","$swrite","$swriteb","$swriteh","$swriteo","$fscanf","$fread","$fseek","$fflush","$feof","$fopen","$fwrite","$fwriteb","$fwriteh","$fwriteo","$fmonitor","$fmonitorb","$fmonitorh","$fmonitoro","$sformat","$sformatf","$fgetc","$ungetc","$fgets","$sscanf","$rewind","$ftell","$ferror"]},r=["__FILE__","__LINE__"],i=["begin_keywords","celldefine","default_nettype","default_decay_time","default_trireg_strength","define","delay_mode_distributed","delay_mode_path","delay_mode_unit","delay_mode_zero","else","elsif","end_keywords","endcelldefine","endif","ifdef","ifndef","include","line","nounconnected_drive","pragma","resetall","timescale","unconnected_drive","undef","undefineall"];return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:n,contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{scope:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{scope:"variable.constant",match:t.concat(/`/,t.either(...r))},{scope:"meta",begin:t.concat(/`/,t.either(...i)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:i}]}}e.exports=t},73783:function(e,t,n){"use strict";n(18111),n(7588);var r=n(38809);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},73821:function(e,t,n){"use strict";n(44114);var r=n(41034),i=n(51137),o=n(56768),a=n(49974),s=n(60674),l=n(51040),c=n(86157);function u(e){return"number"===typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const d=()=>({span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}),h=["xs","sm","md","lg","xl","xxl"];t.A=(0,o.pM)({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:d(),setup(e,t){let{slots:n,attrs:d}=t;const{gutter:f,supportFlexGap:p,wrap:g}=(0,l.hF)(),{prefixCls:m,direction:v}=(0,s.A)("col",e),[A,b]=(0,c.x)(m),y=(0,o.EW)(()=>{const{span:t,order:n,offset:r,push:o,pull:s}=e,l=m.value;let c={};return h.forEach(t=>{let n={};const r=e[t];"number"===typeof r?n.span=r:"object"===typeof r&&(n=r||{}),c=(0,i.A)((0,i.A)({},c),{[`${l}-${t}-${n.span}`]:void 0!==n.span,[`${l}-${t}-order-${n.order}`]:n.order||0===n.order,[`${l}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${l}-${t}-push-${n.push}`]:n.push||0===n.push,[`${l}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${l}-rtl`]:"rtl"===v.value})}),(0,a.A)(l,{[`${l}-${t}`]:void 0!==t,[`${l}-order-${n}`]:n,[`${l}-offset-${r}`]:r,[`${l}-push-${o}`]:o,[`${l}-pull-${s}`]:s},c,d.class,b.value)}),w=(0,o.EW)(()=>{const{flex:t}=e,n=f.value,r={};if(n&&n[0]>0){const e=n[0]/2+"px";r.paddingLeft=e,r.paddingRight=e}if(n&&n[1]>0&&!p.value){const e=n[1]/2+"px";r.paddingTop=e,r.paddingBottom=e}return t&&(r.flex=u(t),!1!==g.value||r.minWidth||(r.minWidth=0)),r});return()=>{var e;return A((0,o.bF)("div",(0,r.A)((0,r.A)({},d),{},{class:y.value,style:[w.value,d.style]}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}})},73931:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});n(18111),n(61701);var r=n(56768),i=n(90144),o=n(73178),a=n(30050),s=n(90827),l=n(40355),c=n(18436);const u=e=>{const{componentCls:t}=e;return{[t]:{"&, & *":{boxSizing:"border-box"},maxWidth:"100%",[`&${t}-rtl`]:{direction:"rtl"},[`& ${t}-title`]:{marginBlockStart:0,fontWeight:"normal",color:e.colorTextTertiary},[`& ${t}-list`]:{display:"flex",gap:e.paddingSM,overflowX:"auto",scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"},listStyle:"none",paddingInlineStart:0,marginBlock:0,alignItems:"stretch","&-wrap":{flexWrap:"wrap"},"&-vertical":{flexDirection:"column",alignItems:"flex-start"}},[`${t}-item`]:{flex:"none",display:"flex",gap:e.paddingXS,height:"auto",paddingBlock:e.paddingSM,paddingInline:e.padding,alignItems:"flex-start",justifyContent:"flex-start",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,transition:["border","background"].map(t=>`${t} ${e.motionDurationSlow}`).join(","),border:`${(0,l.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,[`&:not(${t}-item-has-nest)`]:{"&:hover":{cursor:"pointer",background:e.colorFillTertiary},"&:active":{background:e.colorFill}},[`${t}-content`]:{flex:"auto",minWidth:0,display:"flex",gap:e.paddingXXS,flexDirection:"column",alignItems:"flex-start"},[`${t}-icon, ${t}-label, ${t}-desc`]:{margin:0,padding:0,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start",whiteSpace:"normal"},[`${t}-label`]:{color:e.colorTextHeading,fontWeight:500},[`${t}-label + ${t}-desc`]:{color:e.colorTextTertiary},[`&${t}-item-disabled`]:{pointerEvents:"none",background:e.colorBgContainerDisabled,[`${t}-label, ${t}-desc`]:{color:e.colorTextTertiary}}}}}},d=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-item-has-nest`]:{[`> ${t}-content`]:{[`> ${t}-label`]:{fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}}},[`&${t}-nested`]:{marginTop:e.paddingXS,alignSelf:"stretch",[`${t}-list`]:{alignItems:"stretch"},[`${t}-item`]:{border:0,background:e.colorFillQuaternary}}}}},h=()=>({}),f=(0,s.OF)("Prompts",e=>{const t=(0,c.h1)(e,{});return[u(t),d(t)]},h);var p=n(34002),g=n(10017),m=n(3431);const v=(0,r.pM)({name:"AXPrompts",__name:"Prompts",props:(0,r.HF)({items:null,title:{type:Function},onItemClick:{type:Function},vertical:{type:Boolean},wrap:{type:Boolean},styles:null,classNames:null,prefixCls:null,rootClassName:null},{styles:()=>({}),classNames:()=>({})}),setup(e){const t=(0,o.c)(e,["prefixCls","title","class","items","onItemClick","vertical","wrap","rootClassName","styles","classNames","style"]);(0,i.lW)(e,"class"),(0,i.lW)(e,"prefixCls");const n=(0,r.Ht)(),{getPrefixCls:s,direction:l}=(0,m.A)(),c=s("prompts",e.prefixCls),u=(0,p.A)("prompts"),[d,h,A]=f(c),b=(0,r.EW)(()=>(0,a.b)(c,u.value.className,e.class,e.rootClassName,h.value,A,{[`${c}-rtl`]:"rtl"===l.value})),y=(0,r.EW)(()=>(0,a.b)(`${c}-list`,u.value.classNames.list,e.classNames.list,{[`${c}-list-wrap`]:e.wrap},{[`${c}-list-vertical`]:e.vertical})),w=(0,r.EW)(()=>n.title?n.title():"function"==typeof e.title?e.title():e.title);return()=>{var n;return d((0,r.bF)("div",(0,r.v6)(t,{class:b.value,style:{..."object"==typeof e.style?e.style:{},..."object"==typeof u.value.style?u.value.style:{}}}),[w.value&&(0,r.bF)(g.Ay.Title,{level:5,class:(0,a.b)(`${c}-title`,u.value.classNames.title,e.classNames.title),style:{...u.value.styles.title,...e.styles.title}},{default:()=>[w.value]}),(0,r.bF)("div",{class:y.value,style:{...u.value.styles.list,...e.styles.list}},[null==(n=e.items)?void 0:n.map((t,n)=>{const i=t.children&&t.children.length>0;return(0,r.bF)("div",{key:t.key||`key_${n}`,style:{...u.value.styles.item,...e.styles.item},class:(0,a.b)(`${c}-item`,u.value.classNames.item,e.classNames.item,{[`${c}-item-disabled`]:t.disabled,[`${c}-item-has-nest`]:i}),onClick:()=>{!i&&e.onItemClick&&e.onItemClick({data:t})}},[t.icon&&(0,r.bF)("div",{class:`${c}-icon`},[t.icon]),(0,r.bF)("div",{class:(0,a.b)(`${c}-content`,u.value.classNames.itemContent,e.classNames.itemContent),style:{...u.value.styles.itemContent,...e.styles.itemContent}},[t.label&&(0,r.bF)("h6",{class:`${c}-label`},[t.label]),t.description&&(0,r.bF)("p",{class:`${c}-desc`},[t.description]),i&&(0,r.bF)(v,{class:`${c}-nested`,items:t.children,vertical:!0,onItemClick:e.onItemClick,classNames:{list:e.classNames.subList,item:e.classNames.subItem},styles:{list:e.styles.subList,item:e.styles.subItem}},null)])])})])]))}}})},73939:function(e,t,n){"use strict";var r=n(39578),i=r.A.Uint8Array;t.A=i},74285:function(e,t,n){"use strict";n.d(t,{Lk:function(){return a},W_:function(){return u},fn:function(){return c},zC:function(){return i}});var r=n(56768);const i="$$__vc-menu-more__key",o=Symbol("KeyPathContext"),a=()=>(0,r.WQ)(o,{parentEventKeys:(0,r.EW)(()=>[]),parentKeys:(0,r.EW)(()=>[]),parentInfo:{}}),s=(e,t,n)=>{const{parentEventKeys:i,parentKeys:s}=a(),l=(0,r.EW)(()=>[...i.value,e]),c=(0,r.EW)(()=>[...s.value,t]);return(0,r.Gt)(o,{parentEventKeys:l,parentKeys:c,parentInfo:n}),c},l=Symbol("measure"),c=(0,r.pM)({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return(0,r.Gt)(l,!0),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),u=()=>(0,r.WQ)(l,!1);t.Ay=s},74406:function(e){function t(e){const t=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[t]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}e.exports=t},74572:function(e){function t(e){const t=e.regex,n=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],r=["get","set","args","call"];return{name:"AspectJ",keywords:n,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:n.concat(r),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:n,illegal:/["\[\]]/,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:n.concat(r),relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:n,excludeEnd:!0,contains:[{begin:t.concat(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:n,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}e.exports=t},74642:function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),o=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return i.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return i.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return i.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return r.bind(this)(o)}}})},74667:function(e){function t(e){const t=e.COMMENT(/\(\*/,/\*\)/),n={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},r={className:"meta",begin:/\?.*\?/},i={begin:/=/,end:/[.;]/,contains:[t,r,{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[t,n,i]}}e.exports=t},74789:function(e,t,n){"use strict";n.d(t,{A:function(){return I}});var r=n(41034),i=n(56768),o=n(99078),a=n(60674),s=(n(18111),n(7588),n(90112)),l=n(9519),c=n(51137),u=n(49974);const d=["wrap","nowrap","wrap-reverse"],h=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],f=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],p=(e,t)=>{const n={};return d.forEach(r=>{n[`${e}-wrap-${r}`]=t.wrap===r}),n},g=(e,t)=>{const n={};return f.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},m=(e,t)=>{const n={};return h.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function v(e,t){return(0,u.A)((0,c.A)((0,c.A)((0,c.A)({},p(e,t)),g(e,t)),m(e,t)))}var A=v;const b=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},y=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},w=e=>{const{componentCls:t}=e,n={};return d.forEach(e=>{n[`${t}-wrap-${e}`]={flexWrap:e}}),n},_=e=>{const{componentCls:t}=e,n={};return f.forEach(e=>{n[`${t}-align-${e}`]={alignItems:e}}),n},x=e=>{const{componentCls:t}=e,n={};return h.forEach(e=>{n[`${t}-justify-${e}`]={justifyContent:e}}),n};var E=(0,s.A)("Flex",e=>{const t=(0,l.h1)(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[b(t),y(t),w(t),_(t),x(t)]});function S(e){return["small","middle","large"].includes(e)}var C=n(55107),T=n(44678);const k=()=>({prefixCls:(0,T.WO)(),vertical:(0,T.HE)(),wrap:(0,T.WO)(),justify:(0,T.WO)(),align:(0,T.WO)(),flex:(0,T.tK)([Number,String]),gap:(0,T.tK)([Number,String]),component:(0,T.ds)()});var O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const M=(0,i.pM)({name:"AFlex",inheritAttrs:!1,props:k(),setup(e,t){let{slots:n,attrs:s}=t;const{flex:l,direction:c}=(0,o.OQ)(),{prefixCls:u}=(0,a.A)("flex",e),[d,h]=E(u),f=(0,i.EW)(()=>{var t;return[u.value,h.value,A(u.value,e),{[`${u.value}-rtl`]:"rtl"===c.value,[`${u.value}-gap-${e.gap}`]:S(e.gap),[`${u.value}-vertical`]:null!==(t=e.vertical)&&void 0!==t?t:null===l||void 0===l?void 0:l.value.vertical}]});return()=>{var t;const{flex:o,gap:a,component:l="div"}=e,c=O(e,["flex","gap","component"]),u={};return o&&(u.flex=o),a&&!S(a)&&(u.gap=`${a}px`),d((0,i.bF)(l,(0,r.A)({class:[s.class,f.value],style:[s.style,u]},(0,C.A)(c,["justify","wrap","align","vertical"])),{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]}))}}});var I=(0,T.GU)(M)},75108:function(e,t,n){"use strict";n(18111),n(7588);var r=n(51137),i=n(56768),o=n(17197),a=n(17140),s=n(62076),l=n(55226),c=n(88416),u=n(76110),d=n(39058),h=n(36504),f=n(49974),p=n(21715),g=n(9138),m=n(93958);const v={};let A,b=4.5,y="24px",w="24px",_="",x="topRight",E=()=>document.body,S=null,C=!1;function T(e){const{duration:t,placement:n,bottom:r,top:i,getContainer:o,closeIcon:a,prefixCls:s}=e;void 0!==s&&(_=s),void 0!==t&&(b=t),void 0!==n&&(x=n),void 0!==r&&(w="number"===typeof r?`${r}px`:r),void 0!==i&&(y="number"===typeof i?`${i}px`:i),void 0!==o&&(E=o),void 0!==a&&(S=a),void 0!==e.rtl&&(C=e.rtl),void 0!==e.maxCount&&(A=e.maxCount)}function k(e,t){let{prefixCls:n,placement:r=x,getContainer:a=E,top:s,bottom:l,closeIcon:c=S,appContext:g}=e;const{getPrefixCls:b}=(0,h.cr)(),T=b("notification",n||_),k=`${T}-${r}-${C}`,O=v[k];if(O)return void Promise.resolve(O).then(e=>{t(e)});const M=(0,f.A)(`${T}-${r}`,{[`${T}-rtl`]:!0===C});o.A.newInstance({name:"notification",prefixCls:n||_,useStyle:p.A,class:M,style:(0,m.n)(r,null!==s&&void 0!==s?s:y,null!==l&&void 0!==l?l:w),appContext:g,getContainer:a,closeIcon:e=>{let{prefixCls:t}=e;const n=(0,i.bF)("span",{class:`${t}-close-x`},[(0,d.BM)(c,{},(0,i.bF)(u.A,{class:`${t}-close-icon`},null))]);return n},maxCount:A,hasTransitionName:!0},e=>{v[k]=e,t(e)})}const O={success:a.A,info:s.A,error:l.A,warning:c.A};function M(e){const{icon:t,type:n,description:r,message:o,btn:a}=e,s=void 0===e.duration?b:e.duration;k(e,l=>{l.notice({content:e=>{let{prefixCls:s}=e;const l=`${s}-notice`;let c=null;if(t)c=()=>(0,i.bF)("span",{class:`${l}-icon`},[(0,d.BM)(t)]);else if(n){const e=O[n];c=()=>(0,i.bF)(e,{class:`${l}-icon ${l}-icon-${n}`},null)}return(0,i.bF)("div",{class:c?`${l}-with-icon`:""},[c&&c(),(0,i.bF)("div",{class:`${l}-message`},[!r&&c?(0,i.bF)("span",{class:`${l}-message-single-line-auto-margin`},null):null,(0,d.BM)(o)]),(0,i.bF)("div",{class:`${l}-description`},[(0,d.BM)(r)]),a?(0,i.bF)("span",{class:`${l}-btn`},[(0,d.BM)(a)]):null])},duration:s,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})})}const I={open:M,close(e){Object.keys(v).forEach(t=>Promise.resolve(v[t]).then(t=>{t.removeNotice(e)}))},config:T,destroy(){Object.keys(v).forEach(e=>{Promise.resolve(v[e]).then(e=>{e.destroy()}),delete v[e]})}},D=["success","info","warning","error"];D.forEach(e=>{I[e]=t=>I.open((0,r.A)((0,r.A)({},t),{type:e}))}),I.warn=I.warning,I.useNotification=g.A;t.A=I},75432:function(e,t,n){"use strict";function r(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}n.d(t,{A:function(){return r}})},75696:function(e){function t(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}e.exports=t},75806:function(e,t,n){"use strict";n.d(t,{Ay:function(){return V}});n(44114),n(18111),n(7588);var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(49974),l=n(56405),c=n(60674),u=n(98215),d=n(55573),h=n(55107),f=n(47659),p=n(82978),g=(0,o.pM)({name:"BaseInput",inheritAttrs:!1,props:(0,f.Wr)(),setup(e,t){let{slots:n,attrs:r}=t;const i=(0,a.KR)(),l=t=>{var n;if(null===(n=i.value)||void 0===n?void 0:n.contains(t.target)){const{triggerFocus:t}=e;null===t||void 0===t||t()}},c=()=>{var t;const{allowClear:r,value:i,disabled:a,readonly:l,handleReset:c,suffix:u=n.suffix,prefixCls:d}=e;if(!r)return null;const h=!a&&!l&&i,f=`${d}-clear-icon`,p=(null===(t=n.clearIcon)||void 0===t?void 0:t.call(n))||"*";return(0,o.bF)("span",{onClick:c,onMousedown:e=>e.preventDefault(),class:(0,s.A)({[`${f}-hidden`]:!h,[`${f}-has-suffix`]:!!u},f),role:"button",tabindex:-1},[p])};return()=>{var t,a;const{focused:u,value:h,disabled:f,allowClear:g,readonly:m,hidden:v,prefixCls:A,prefix:b=(null===(t=n.prefix)||void 0===t?void 0:t.call(n)),suffix:y=(null===(a=n.suffix)||void 0===a?void 0:a.call(n)),addonAfter:w=n.addonAfter,addonBefore:_=n.addonBefore,inputElement:x,affixWrapperClassName:E,wrapperClassName:S,groupClassName:C}=e;let T=(0,p.Ob)(x,{value:h,hidden:v});if((0,d.OL)({prefix:b,suffix:y,allowClear:g})){const e=`${A}-affix-wrapper`,t=(0,s.A)(e,{[`${e}-disabled`]:f,[`${e}-focused`]:u,[`${e}-readonly`]:m,[`${e}-input-with-clear-btn`]:y&&g&&h},!(0,d.bk)({addonAfter:w,addonBefore:_})&&r.class,E),n=(y||g)&&(0,o.bF)("span",{class:`${A}-suffix`},[c(),y]);T=(0,o.bF)("span",{class:t,style:r.style,hidden:!(0,d.bk)({addonAfter:w,addonBefore:_})&&v,onMousedown:l,ref:i},[b&&(0,o.bF)("span",{class:`${A}-prefix`},[b]),(0,p.Ob)(x,{style:null,value:h,hidden:null}),n])}if((0,d.bk)({addonAfter:w,addonBefore:_})){const e=`${A}-group`,t=`${e}-addon`,n=(0,s.A)(`${A}-wrapper`,e,S),i=(0,s.A)(`${A}-group-wrapper`,r.class,C);return(0,o.bF)("span",{class:i,style:r.style,hidden:v},[(0,o.bF)("span",{class:n},[_&&(0,o.bF)("span",{class:t},[_]),(0,p.Ob)(T,{style:null,hidden:null}),w&&(0,o.bF)("span",{class:t},[w])])])}return T}}}),m=n(81269),v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},A=(0,o.pM)({name:"VCInput",inheritAttrs:!1,props:(0,f.$8)(),setup(e,t){let{slots:n,attrs:l,expose:c,emit:u}=t;const f=(0,a.IJ)(void 0===e.value?e.defaultValue:e.value),p=(0,a.IJ)(!1),A=(0,a.IJ)(),b=(0,a.IJ)();(0,o.wB)(()=>e.value,()=>{f.value=e.value}),(0,o.wB)(()=>e.disabled,()=>{e.disabled&&(p.value=!1)});const y=e=>{A.value&&(0,d.F4)(A.value.input,e)},w=()=>{var e;null===(e=A.value.input)||void 0===e||e.blur()},_=(e,t,n)=>{var r;null===(r=A.value.input)||void 0===r||r.setSelectionRange(e,t,n)},x=()=>{var e;null===(e=A.value.input)||void 0===e||e.select()};c({focus:y,blur:w,input:(0,o.EW)(()=>{var e;return null===(e=A.value.input)||void 0===e?void 0:e.input}),stateValue:f,setSelectionRange:_,select:x});const E=e=>{u("change",e)},S=(t,n)=>{f.value!==t&&(void 0===e.value?f.value=t:(0,o.dY)(()=>{var e;A.value.input.value!==f.value&&(null===(e=b.value)||void 0===e||e.$forceUpdate())}),(0,o.dY)(()=>{n&&n()}))},C=e=>{const{value:t}=e.target;if(f.value===t)return;const n=e.target.value;(0,d.gS)(A.value.input,e,E),S(n)},T=e=>{13===e.keyCode&&u("pressEnter",e),u("keydown",e)},k=e=>{p.value=!0,u("focus",e)},O=e=>{p.value=!1,u("blur",e)},M=e=>{(0,d.gS)(A.value.input,e,E),S("",()=>{y()})},I=()=>{var t,r;const{addonBefore:a=n.addonBefore,addonAfter:c=n.addonAfter,disabled:u,valueModifiers:f={},htmlSize:p,autocomplete:g,prefixCls:v,inputClassName:b,prefix:y=(null===(t=n.prefix)||void 0===t?void 0:t.call(n)),suffix:w=(null===(r=n.suffix)||void 0===r?void 0:r.call(n)),allowClear:_,type:x="text"}=e,E=(0,h.A)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),S=(0,i.A)((0,i.A)((0,i.A)({},E),l),{autocomplete:g,onChange:C,onInput:C,onFocus:k,onBlur:O,onKeydown:T,class:(0,s.A)(v,{[`${v}-disabled`]:u},b,!(0,d.bk)({addonAfter:c,addonBefore:a})&&!(0,d.OL)({prefix:y,suffix:w,allowClear:_})&&l.class),ref:A,key:"ant-input",size:p,type:x,lazy:e.lazy});f.lazy&&delete S.onInput,S.autofocus||delete S.autofocus;const M=(0,o.bF)(m.A,(0,h.A)(S,["size"]),null);return M},D=()=>{var t;const{maxlength:r,suffix:i=(null===(t=n.suffix)||void 0===t?void 0:t.call(n)),showCount:a,prefixCls:l}=e,c=Number(r)>0;if(i||a){const e=[...(0,d.pt)(f.value)].length,t="object"===typeof a?a.formatter({count:e,maxlength:r}):`${e}${c?` / ${r}`:""}`;return(0,o.bF)(o.FK,null,[!!a&&(0,o.bF)("span",{class:(0,s.A)(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!i})},[t]),i])}return null};return(0,o.sV)(()=>{0}),()=>{const{prefixCls:t,disabled:i}=e,a=v(e,["prefixCls","disabled"]);return(0,o.bF)(g,(0,r.A)((0,r.A)((0,r.A)({},a),l),{},{ref:b,prefixCls:t,inputElement:I(),handleReset:M,value:(0,d.pt)(f.value),focused:p.value,triggerFocus:y,suffix:D(),disabled:i}),n)}}}),b=n(58491),y=n(87546),w=n(42472),_=n(64675),x=n(93758),E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},S=(0,o.pM)({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:(0,b.Ay)(),setup(e,t){let{slots:n,attrs:f,expose:p,emit:g}=t;const m=(0,a.KR)(),v=(0,l.db)(),b=l.$W.useInject(),S=(0,o.EW)(()=>(0,u.v)(b.status,e.status)),{direction:C,prefixCls:T,size:k,autocomplete:O}=(0,c.A)("input",e),{compactSize:M,compactItemClassnames:I}=(0,w.RQ)(T,C),D=(0,o.EW)(()=>M.value||k.value),[N,R]=(0,_.Ay)(T),L=(0,x.p)(),B=e=>{var t;null===(t=m.value)||void 0===t||t.focus(e)},P=()=>{var e;null===(e=m.value)||void 0===e||e.blur()},F=(e,t,n)=>{var r;null===(r=m.value)||void 0===r||r.setSelectionRange(e,t,n)},$=()=>{var e;null===(e=m.value)||void 0===e||e.select()};p({focus:B,blur:P,input:m,setSelectionRange:F,select:$});const j=(0,a.KR)([]),H=()=>{j.value.push(setTimeout(()=>{var e,t,n,r;(null===(e=m.value)||void 0===e?void 0:e.input)&&"password"===(null===(t=m.value)||void 0===t?void 0:t.input.getAttribute("type"))&&(null===(n=m.value)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(r=m.value)||void 0===r||r.input.removeAttribute("value"))}))};(0,o.sV)(()=>{H()}),(0,o.Ic)(()=>{j.value.forEach(e=>clearTimeout(e))}),(0,o.xo)(()=>{j.value.forEach(e=>clearTimeout(e))});const U=e=>{H(),g("blur",e),v.onFieldBlur()},Q=e=>{H(),g("focus",e)},z=e=>{g("update:value",e.target.value),g("change",e),g("input",e),v.onFieldChange()};return()=>{var t,a,c,p,g,_;const{hasFeedback:x,feedbackIcon:k}=b,{allowClear:M,bordered:B=!0,prefix:P=(null===(t=n.prefix)||void 0===t?void 0:t.call(n)),suffix:F=(null===(a=n.suffix)||void 0===a?void 0:a.call(n)),addonAfter:$=(null===(c=n.addonAfter)||void 0===c?void 0:c.call(n)),addonBefore:j=(null===(p=n.addonBefore)||void 0===p?void 0:p.call(n)),id:H=(null===(g=v.id)||void 0===g?void 0:g.value)}=e,W=E(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),G=(x||F)&&(0,o.bF)(o.FK,null,[F,x&&k]),V=T.value,K=(0,d.OL)({prefix:P,suffix:F})||!!x,Y=n.clearIcon||(()=>(0,o.bF)(y.A,null,null));return N((0,o.bF)(A,(0,r.A)((0,r.A)((0,r.A)({},f),(0,h.A)(W,["onUpdate:value","onChange","onInput"])),{},{onChange:z,id:H,disabled:null!==(_=e.disabled)&&void 0!==_?_:L.value,ref:m,prefixCls:V,autocomplete:O.value,onBlur:U,onFocus:Q,prefix:P,suffix:G,allowClear:M,addonAfter:$&&(0,o.bF)(w.K6,null,{default:()=>[(0,o.bF)(l.yx,null,{default:()=>[$]})]}),addonBefore:j&&(0,o.bF)(w.K6,null,{default:()=>[(0,o.bF)(l.yx,null,{default:()=>[j]})]}),class:[f.class,I.value],inputClassName:(0,s.A)({[`${V}-sm`]:"small"===D.value,[`${V}-lg`]:"large"===D.value,[`${V}-rtl`]:"rtl"===C.value,[`${V}-borderless`]:!B},!K&&(0,u.L)(V,S.value),R.value),affixWrapperClassName:(0,s.A)({[`${V}-affix-wrapper-sm`]:"small"===D.value,[`${V}-affix-wrapper-lg`]:"large"===D.value,[`${V}-affix-wrapper-rtl`]:"rtl"===C.value,[`${V}-affix-wrapper-borderless`]:!B},(0,u.L)(`${V}-affix-wrapper`,S.value,x),R.value),wrapperClassName:(0,s.A)({[`${V}-group-rtl`]:"rtl"===C.value},R.value),groupClassName:(0,s.A)({[`${V}-group-wrapper-sm`]:"small"===D.value,[`${V}-group-wrapper-lg`]:"large"===D.value,[`${V}-group-wrapper-rtl`]:"rtl"===C.value},(0,u.L)(`${V}-group-wrapper`,S.value,x),R.value)}),(0,i.A)((0,i.A)({},n),{clearIcon:Y})))}}}),C=(0,o.pM)({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:i}=t;const{prefixCls:a,direction:u,getPrefixCls:d}=(0,c.A)("input-group",e),h=l.$W.useInject();l.$W.useProvide(h,{isFormItemInput:!1});const f=(0,o.EW)(()=>d("input")),[p,g]=(0,_.Ay)(f),m=(0,o.EW)(()=>{const t=a.value;return{[`${t}`]:!0,[g.value]:!0,[`${t}-lg`]:"large"===e.size,[`${t}-sm`]:"small"===e.size,[`${t}-compact`]:e.compact,[`${t}-rtl`]:"rtl"===u.value}});return()=>{var e;return p((0,o.bF)("span",(0,r.A)((0,r.A)({},i),{},{class:(0,s.A)(m.value,i.class)}),[null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}}),T=n(57520),k=n(80816),O=n(81425),M=n(25644),I=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},D=(0,o.pM)({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:(0,i.A)((0,i.A)({},(0,b.Ay)()),{inputPrefixCls:String,enterButton:O.A.any,onSearch:{type:Function}}),setup(e,t){let{slots:n,attrs:l,expose:u,emit:d}=t;const f=(0,a.IJ)(),g=(0,a.IJ)(!1),m=()=>{var e;null===(e=f.value)||void 0===e||e.focus()},v=()=>{var e;null===(e=f.value)||void 0===e||e.blur()};u({focus:m,blur:v});const A=e=>{d("update:value",e.target.value),e&&e.target&&"click"===e.type&&d("search",e.target.value,e),d("change",e)},b=e=>{var t;document.activeElement===(null===(t=f.value)||void 0===t?void 0:t.input)&&e.preventDefault()},y=e=>{var t,n;d("search",null===(n=null===(t=f.value)||void 0===t?void 0:t.input)||void 0===n?void 0:n.stateValue,e)},w=t=>{g.value||e.loading||y(t)},_=e=>{g.value=!0,d("compositionstart",e)},x=e=>{g.value=!1,d("compositionend",e)},{prefixCls:E,getPrefixCls:C,direction:O,size:D}=(0,c.A)("input-search",e),N=(0,o.EW)(()=>C("input",e.inputPrefixCls));return()=>{var t,a,c,u;const{disabled:d,loading:g,addonAfter:m=(null===(t=n.addonAfter)||void 0===t?void 0:t.call(n)),suffix:v=(null===(a=n.suffix)||void 0===a?void 0:a.call(n))}=e,C=I(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:R=null!==(u=null===(c=n.enterButton)||void 0===c?void 0:c.call(n))&&void 0!==u&&u}=e;R=R||""===R;const L="boolean"===typeof R?(0,o.bF)(T.A,null,null):null,B=`${E.value}-button`,P=Array.isArray(R)?R[0]:R;let F;const $=P.type&&(0,M.A)(P.type)&&P.type.__ANT_BUTTON;if($||"button"===P.tagName)F=(0,p.Ob)(P,(0,i.A)({onMousedown:b,onClick:y,key:"enterButton"},$?{class:B,size:D.value}:{}),!1);else{const e=L&&!R;F=(0,o.bF)(k.A,{class:B,type:R?"primary":void 0,size:D.value,disabled:d,key:"enterButton",onMousedown:b,onClick:y,loading:g,icon:e?L:null},{default:()=>[e?null:L||R]})}m&&(F=[F,m]);const j=(0,s.A)(E.value,{[`${E.value}-rtl`]:"rtl"===O.value,[`${E.value}-${D.value}`]:!!D.value,[`${E.value}-with-button`]:!!R},l.class);return(0,o.bF)(S,(0,r.A)((0,r.A)((0,r.A)({ref:f},(0,h.A)(C,["onUpdate:value","onSearch","enterButton"])),l),{},{onPressEnter:w,onCompositionstart:_,onCompositionend:x,size:D.value,prefixCls:N.value,addonAfter:F,suffix:v,onChange:A,class:j,disabled:d}),n)}}}),N=n(60946),R=n(44832),L=n(4501),B=(n(22489),{icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"}),P=B,F=n(4827);function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){j(e,t,n[t])})}return e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H=function(e,t){var n=$({},e,t.attrs);return(0,o.bF)(F.A,$({},n,{icon:P}),null)};H.displayName="EyeInvisibleOutlined",H.inheritAttrs=!1;var U=H,Q=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const z={click:"onClick",hover:"onMouseover"},W=e=>e?(0,o.bF)(L.A,null,null):(0,o.bF)(U,null,null);var G=(0,o.pM)({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:(0,i.A)((0,i.A)({},(0,b.Ay)()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(e,t){let{slots:n,attrs:l,expose:u,emit:d}=t;const f=(0,a.IJ)(!1),g=()=>{const{disabled:t}=e;t||(f.value=!f.value,d("update:visible",f.value))};(0,o.nT)(()=>{void 0!==e.visible&&(f.value=!!e.visible)});const m=(0,a.IJ)(),v=()=>{var e;null===(e=m.value)||void 0===e||e.focus()},A=()=>{var e;null===(e=m.value)||void 0===e||e.blur()};u({focus:v,blur:A});const b=t=>{const{action:r,iconRender:i=n.iconRender||W}=e,a=z[r]||"",s=i(f.value),l={[a]:g,class:`${t}-icon`,key:"passwordIcon",onMousedown:e=>{e.preventDefault()},onMouseup:e=>{e.preventDefault()}};return(0,p.Ob)((0,R.zO)(s)?s:(0,o.bF)("span",null,[s]),l)},{prefixCls:y,getPrefixCls:w}=(0,c.A)("input-password",e),_=(0,o.EW)(()=>w("input",e.inputPrefixCls)),x=()=>{const{size:t,visibilityToggle:a}=e,c=Q(e,["size","visibilityToggle"]),u=a&&b(y.value),d=(0,s.A)(y.value,l.class,{[`${y.value}-${t}`]:!!t}),p=(0,i.A)((0,i.A)((0,i.A)({},(0,h.A)(c,["suffix","iconRender","action"])),l),{type:f.value?"text":"password",class:d,prefixCls:_.value,suffix:u});return t&&(p.size=t),(0,o.bF)(S,(0,r.A)({ref:m},p),n)};return()=>x()}});S.Group=C,S.Search=D,S.TextArea=N.A,S.Password=G,S.install=function(e){return e.component(S.name,S),e.component(S.Group.name,S.Group),e.component(S.Search.name,S.Search),e.component(S.TextArea.name,S.TextArea),e.component(S.Password.name,S.Password),e};var V=S},75854:function(e,t,n){"use strict";var r=n(72777),i=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new i("Can't convert number to bigint");return BigInt(t)}},76041:function(e){function t(e){const t=e.regex,n=/([-a-zA-Z$._][\w$.-]*)/,r={className:"type",begin:/\bi\d+(?=\s|\b)/},i={className:"operator",relevance:0,begin:/=/},o={className:"punctuation",relevance:0,begin:/,/},a={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},s={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},l={className:"variable",variants:[{begin:t.concat(/%/,n)},{begin:/%\d+/},{begin:/#\d+/}]},c={className:"title",variants:[{begin:t.concat(/@/,n)},{begin:/@\d+/},{begin:t.concat(/!/,n)},{begin:t.concat(/!\d+/,n)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:{keyword:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly",type:"void half bfloat float double fp128 x86_fp80 ppc_fp128 x86_amx x86_mmx ptr label token metadata opaque"},contains:[r,e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},c,o,i,l,s,a]}}e.exports=t},76053:function(e){function t(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}e.exports=t},76062:function(e,t,n){"use strict";var r=n(7162),i=n(39578),o=(0,r.A)(i.A,"Map");t.A=o},76080:function(e,t,n){"use strict";var r=n(27476),i=n(79306),o=n(40616),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},76110:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="CloseOutlined",c.inheritAttrs=!1;var u=c},76295:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(56768),i=n(45331);function o(e){const{mode:t,rtl:n,inlineIndent:o}=(0,i.an)();return(0,r.EW)(()=>"inline"!==t.value?null:n.value?{paddingRight:e.value*o.value+"px"}:{paddingLeft:e.value*o.value+"px"})}},76382:function(e,t,n){"use strict";var r=n(69565),i=n(36840),o=n(55966),a=n(39297),s=n(78227),l=n(57657).IteratorPrototype,c=s("dispose");a(l,c)||i(l,c,function(){var e=o(this,"return");e&&r(e,this)})},76697:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="UserOutlined",c.inheritAttrs=!1;var u=c},76753:function(e,t,n){"use strict";n(44114);var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function l(e,t){0===--e._eventsCount?e._events=new o:delete e._events[t]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),c.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},c.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a},c.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,r,o,a){var s=i?i+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,o),!0;case 6:return u.fn.call(u.context,t,n,r,o,a),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,r);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];u[c].fn.apply(u[c].context,l)}}return!0},c.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,r){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return l(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||l(this,o);else{for(var s=0,c=[],u=a.length;s<u;s++)(a[s].fn!==t||r&&!a[s].once||n&&a[s].context!==n)&&c.push(a[s]);c.length?this._events[o]=1===c.length?c[0]:c:l(this,o)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&l(this,t)):(this._events=new o,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=i,c.EventEmitter=c,e.exports=c},76807:function(e,t,n){n(18111),n(7588),n(61701),n(18237),function(t,n){e.exports=n()}(0,function(){"use strict";var e,t,n=1e3,r=6e4,i=36e5,o=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,l=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u={years:s,months:l,days:o,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof A},h=function(e,t,n){return new A(e,n,t.$l)},f=function(e){return t.p(e)+"s"},p=function(e){return e<0},g=function(e){return p(e)?Math.ceil(e):Math.floor(e)},m=function(e){return Math.abs(e)},v=function(e,t){return e?p(e)?{negative:!0,format:""+m(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},A=function(){function p(e,t,n){var r=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return h(e*u[f(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach(function(t){r.$d[f(t)]=e[t]}),this.calMilliseconds(),this;if("string"==typeof e){var i=e.match(c);if(i){var o=i.slice(2).map(function(e){return null!=e?Number(e):0});return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var m=p.prototype;return m.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(t,n){return t+(e.$d[n]||0)*u[n]},0)},m.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=g(e/s),e%=s,this.$d.months=g(e/l),e%=l,this.$d.days=g(e/o),e%=o,this.$d.hours=g(e/i),e%=i,this.$d.minutes=g(e/r),e%=r,this.$d.seconds=g(e/n),e%=n,this.$d.milliseconds=e},m.toISOString=function(){var e=v(this.$d.years,"Y"),t=v(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=v(n,"D"),i=v(this.$d.hours,"H"),o=v(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var s=v(a,"S"),l=e.negative||t.negative||r.negative||i.negative||o.negative||s.negative,c=i.format||o.format||s.format?"T":"",u=(l?"-":"")+"P"+e.format+t.format+r.format+c+i.format+o.format+s.format;return"P"===u||"-P"===u?"P0D":u},m.toJSON=function(){return this.toISOString()},m.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return n.replace(a,function(e,t){return t||String(r[e])})},m.as=function(e){return this.$ms/u[f(e)]},m.get=function(e){var t=this.$ms,n=f(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?g(t/u[n]):this.$d[n],t||0},m.add=function(e,t,n){var r;return r=t?e*u[f(t)]:d(e)?e.$ms:h(e,this).$ms,h(this.$ms+r*(n?-1:1),this)},m.subtract=function(e,t){return this.add(e,t,!0)},m.locale=function(e){var t=this.clone();return t.$l=e,t},m.clone=function(){return h(this.$ms,this)},m.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},m.valueOf=function(){return this.asMilliseconds()},m.milliseconds=function(){return this.get("milliseconds")},m.asMilliseconds=function(){return this.as("milliseconds")},m.seconds=function(){return this.get("seconds")},m.asSeconds=function(){return this.as("seconds")},m.minutes=function(){return this.get("minutes")},m.asMinutes=function(){return this.as("minutes")},m.hours=function(){return this.get("hours")},m.asHours=function(){return this.as("hours")},m.days=function(){return this.get("days")},m.asDays=function(){return this.as("days")},m.weeks=function(){return this.get("weeks")},m.asWeeks=function(){return this.as("weeks")},m.months=function(){return this.get("months")},m.asMonths=function(){return this.as("months")},m.years=function(){return this.get("years")},m.asYears=function(){return this.as("years")},p}(),b=function(e,t,n){return e.add(t.years()*n,"y").add(t.months()*n,"M").add(t.days()*n,"d").add(t.hours()*n,"h").add(t.minutes()*n,"m").add(t.seconds()*n,"s").add(t.milliseconds()*n,"ms")};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){var n=i.locale();return h(e,{$l:n},t)},i.isDuration=d;var o=r.prototype.add,a=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?b(this,e,1):o.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?b(this,e,-1):a.bind(this)(e,t)}}})},77027:function(e,t,n){function r(e){if("number"===typeof e&&(e=e.toString()),"string"!==typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}n(44114),n(18111),n(61701),t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t="undefined"===typeof e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:n,scale:n?4:i,margin:t,color:{dark:r(e.color.dark||"#000000ff"),light:r(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const i=n.modules.size,o=n.modules.data,a=t.getScale(i,r),s=Math.floor((i+2*r.margin)*a),l=r.margin*a,c=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let n=0;n<s;n++){let u=4*(t*s+n),d=r.color.light;if(t>=l&&n>=l&&t<s-l&&n<s-l){const e=Math.floor((t-l)/a),r=Math.floor((n-l)/a);d=c[o[e*i+r]?1:0]}e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},77246:function(e,t,n){"use strict";n.d(t,{A:function(){return O}});var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(23966),l=n(76110),c=n(23616),u=n(69998),d=n(16678),h=n(6252),f=n(87546),p=n(7403),g=n(60136),m=n(49974),v=n(99078);const A={info:(0,o.bF)(g.A,null,null),success:(0,o.bF)(p.A,null,null),error:(0,o.bF)(f.A,null,null),warning:(0,o.bF)(h.A,null,null),loading:(0,o.bF)(d.A,null,null)},b=(0,o.pM)({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:n}=t;return()=>{var t;return(0,o.bF)("div",{class:(0,m.A)(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||A[e.type],(0,o.bF)("span",null,[null===(t=n.default)||void 0===t?void 0:t.call(n)])])}}});(0,o.pM)({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","class","type","icon","content"],setup(e,t){let{slots:n,attrs:i}=t;var a;const{getPrefixCls:s}=(0,v.OQ)(),l=(0,o.EW)(()=>e.prefixCls||s("message")),[,d]=(0,c.A)(l);return(0,o.bF)(u.A,(0,r.A)((0,r.A)({},i),{},{prefixCls:l.value,class:(0,m.A)(d.value,`${l.value}-notice-pure-panel`),noticeKey:"pure",duration:null}),{default:()=>[(0,o.bF)(b,{prefixCls:l.value,type:e.type,icon:e.icon},{default:()=>[null===(a=n.default)||void 0===a?void 0:a.call(n)]})]})}});var y=n(42037),w=n(39058),_=n(60674),x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const E=8,S=3,C=(0,o.pM)({name:"Holder",inheritAttrs:!1,props:["top","prefixCls","getContainer","maxCount","duration","rtl","transitionName","onAllRemoved","animation","staticGetContainer"],setup(e,t){let{expose:n}=t;var r,a;const{getPrefixCls:u,getPopupContainer:d}=(0,_.A)("message",e),h=(0,o.EW)(()=>u("message",e.prefixCls)),[,f]=(0,c.A)(h),p=()=>{var t;const n=null!==(t=e.top)&&void 0!==t?t:E;return{left:"50%",transform:"translateX(-50%)",top:"number"===typeof n?`${n}px`:n}},g=()=>(0,m.A)(f.value,e.rtl?`${h.value}-rtl`:""),v=()=>{var t;return(0,y.V)({prefixCls:h.value,animation:null!==(t=e.animation)&&void 0!==t?t:"move-up",transitionName:e.transitionName})},A=(0,o.bF)("span",{class:`${h.value}-close-x`},[(0,o.bF)(l.A,{class:`${h.value}-close-icon`},null)]),[b,w]=(0,s.A)({getStyles:p,prefixCls:h.value,getClassName:g,motion:v,closable:!1,closeIcon:A,duration:null!==(r=e.duration)&&void 0!==r?r:S,getContainer:null!==(a=e.staticGetContainer)&&void 0!==a?a:d.value,maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return n((0,i.A)((0,i.A)({},b),{prefixCls:h,hashId:f})),w}});let T=0;function k(e){const t=(0,a.IJ)(null),n=Symbol("messageHolderKey"),s=e=>{var n;null===(n=t.value)||void 0===n||n.close(e)},l=e=>{if(!t.value){const e=()=>{};return e.then=()=>{},e}const{open:n,prefixCls:r,hashId:a}=t.value,l=`${r}-notice`,{content:c,icon:u,type:d,key:h,class:f,onClose:p}=e,g=x(e,["content","icon","type","key","class","onClose"]);let v=h;return void 0!==v&&null!==v||(T+=1,v=`antd-message-${T}`),(0,w.Ew)(e=>(n((0,i.A)((0,i.A)({},g),{key:v,content:()=>(0,o.bF)(b,{prefixCls:r,type:d,icon:"function"===typeof u?u():u},{default:()=>["function"===typeof c?c():c]}),placement:"top",class:(0,m.A)(d&&`${l}-${d}`,a,f),onClose:()=>{null===p||void 0===p||p(),e()}})),()=>{s(v)}))},c=e=>{var n;void 0!==e?s(e):null===(n=t.value)||void 0===n||n.destroy()},u={open:l,destroy:c},d=["info","success","warning","error","loading"];return d.forEach(e=>{const t=(t,n,r)=>{let o,a,s;o=t&&"object"===typeof t&&"content"in t?t:{content:t},"function"===typeof n?s=n:(a=n,s=r);const c=(0,i.A)((0,i.A)({onClose:s,duration:a},o),{type:e});return l(c)};u[e]=t}),[u,()=>(0,o.bF)(C,(0,r.A)((0,r.A)({key:n},e),{},{ref:t}),null)]}function O(e){return k(e)}},77347:function(e,t,n){"use strict";var r=n(43724),i=n(69565),o=n(48773),a=n(6980),s=n(25397),l=n(56969),c=n(39297),u=n(35917),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(n){}if(c(e,t))return a(!i(o.f,e,t),e[t])}},77398:function(e,t,n){"use strict";n.d(t,{PMY:function(){return B}});n(44114),n(18111),n(81148),n(22489),n(20116),n(30531),n(7588),n(61701),n(18237),n(13579),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(79577),n(41549),n(49797),n(49631),n(35623),n(64979);var r=n(90144);var i;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const o="undefined"!==typeof window,a=(Object.prototype.toString,e=>"string"===typeof e),s=()=>{};o&&(null==(i=null==window?void 0:window.navigator)?void 0:i.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function l(e){return"function"===typeof e?e():(0,r.R1)(e)}function c(e){return e}function u(e){return!!(0,r.o5)()&&((0,r.jr)(e),!0)}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var d=Object.defineProperty,h=Object.defineProperties,f=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,v=(e,t,n)=>t in e?d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t)=>{for(var n in t||(t={}))g.call(t,n)&&v(e,n,t[n]);if(p)for(var n of p(t))m.call(t,n)&&v(e,n,t[n]);return e},b=(e,t)=>h(e,f(t));function y(e){if(!(0,r.i9)(e))return(0,r.QW)(e);const t=Array.isArray(e.value)?new Array(e.value.length):{};for(const n in e.value)t[n]=(0,r.rY)(()=>({get(){return e.value[n]},set(t){if(Array.isArray(e.value)){const r=[...e.value];r[n]=t,e.value=r}else{const r=b(A({},e.value),{[n]:t});Object.setPrototypeOf(r,e.value),e.value=r}}}));return t}Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var w=n(56768);function _(e){var t;const n=l(e);return null!=(t=null==n?void 0:n.$el)?t:n}const x=o?window:void 0;o&&window.document,o&&window.navigator,o&&window.location;function E(...e){let t,n,r,i;if(a(e[0])||Array.isArray(e[0])?([n,r,i]=e,t=x):[t,n,r,i]=e,!t)return s;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],c=()=>{o.forEach(e=>e()),o.length=0},d=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),h=(0,w.wB)(()=>[_(t),l(i)],([e,t])=>{c(),e&&o.push(...n.flatMap(n=>r.map(r=>d(e,n,r,t))))},{immediate:!0,flush:"post"}),f=()=>{h(),c()};return u(f),f}Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;const S="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},C="__vueuse_ssr_handlers__";S[C]=S[C]||{};S[C];Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var T=Object.defineProperty,k=Object.defineProperties,O=Object.getOwnPropertyDescriptors,M=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,N=(e,t,n)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R=(e,t)=>{for(var n in t||(t={}))I.call(t,n)&&N(e,n,t[n]);if(M)for(var n of M(t))D.call(t,n)&&N(e,n,t[n]);return e},L=(e,t)=>k(e,O(t));function B(e,t={}){var n,i,a;const s=null!=(n=t.draggingElement)?n:x,c=null!=(i=t.handle)?i:e,u=(0,r.KR)(null!=(a=l(t.initialValue))?a:{x:0,y:0}),d=(0,r.KR)(),h=e=>!t.pointerTypes||t.pointerTypes.includes(e.pointerType),f=e=>{l(t.preventDefault)&&e.preventDefault(),l(t.stopPropagation)&&e.stopPropagation()},p=n=>{var r;if(!h(n))return;if(l(t.exact)&&n.target!==l(e))return;const i=l(e).getBoundingClientRect(),o={x:n.clientX-i.left,y:n.clientY-i.top};!1!==(null==(r=t.onStart)?void 0:r.call(t,o,n))&&(d.value=o,f(n))},g=e=>{var n;h(e)&&d.value&&(u.value={x:e.clientX-d.value.x,y:e.clientY-d.value.y},null==(n=t.onMove)||n.call(t,u.value,e),f(e))},m=e=>{var n;h(e)&&d.value&&(d.value=void 0,null==(n=t.onEnd)||n.call(t,u.value,e),f(e))};return o&&(E(c,"pointerdown",p,!0),E(s,"pointermove",g,!0),E(s,"pointerup",m,!0)),L(R({},y(u)),{position:u,isDragging:(0,w.EW)(()=>!!d.value),style:(0,w.EW)(()=>`left:${u.value.x}px;top:${u.value.y}px;`)})}Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;new Map;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var P;(function(e){e["UP"]="UP",e["RIGHT"]="RIGHT",e["DOWN"]="DOWN",e["LEFT"]="LEFT",e["NONE"]="NONE"})(P||(P={}));Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var F=Object.defineProperty,$=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable,U=(e,t,n)=>t in e?F(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q=(e,t)=>{for(var n in t||(t={}))j.call(t,n)&&U(e,n,t[n]);if($)for(var n of $(t))H.call(t,n)&&U(e,n,t[n]);return e};const z={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Q({linear:c},z)},77629:function(e,t,n){"use strict";var r=n(96395),i=n(44576),o=n(39433),a="__core-js_shared__",s=e.exports=i[a]||o(a,{});(s.versions||(s.versions=[])).push({version:"3.45.1",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"})},77661:function(e,t,n){"use strict";var r=n(44672),i=n(71801),o=n(87351);function a(e){return(0,r.A)(e,o.A,i.A)}t.A=a},77662:function(e){function t(e){const t="a-zA-Z_\\-!.?+*=<>&'",n="[#]?["+t+"]["+t+"0-9/;:$#]*",r="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",i={$pattern:n,built_in:r+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},o={begin:n,relevance:0},a={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},s={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},l={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),u={scope:"punctuation",match:/,/,relevance:0},d=e.COMMENT(";","$",{relevance:0}),h={className:"literal",begin:/\b(true|false|nil)\b/},f={begin:"\\[|(#::?"+n+")?\\{",end:"[\\]\\}]",relevance:0},p={className:"symbol",begin:"[:]{1,2}"+n},g={begin:"\\(",end:"\\)"},m={endsWithParent:!0,relevance:0},v={keywords:i,className:"name",begin:n,relevance:0,starts:m},A=[u,g,s,l,c,d,p,f,a,h,o],b={beginKeywords:r,keywords:{$pattern:n,keyword:r},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:n,relevance:0,excludeEnd:!0,endsParent:!0}].concat(A)};return g.contains=[b,v,m],m.contains=A,f.contains=A,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[u,g,s,l,c,d,p,f,a,h]}}e.exports=t},77688:function(e){function t(e){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}e.exports=t},77740:function(e,t,n){"use strict";var r=n(39297),i=n(35031),o=n(77347),a=n(24913);e.exports=function(e,t,n){for(var s=i(t),l=a.f,c=o.f,u=0;u<s.length;u++){var d=s[u];r(e,d)||n&&r(n,d)||l(e,d,c(t,d))}}},77811:function(e){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},77957:function(e,t,n){"use strict";n(18111),n(20116);var r=n(41034),i=n(51137),o=n(56768),a=n(44832),s=n(81425),l=n(90144),c=n(74285),u=n(45331),d=n(82978),h=n(35678),f=n(81186),p=n(76295),g=n(25654),m=n(34322),v=n(44678);let A=0;const b=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:s.A.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:(0,v.ge)()});t.A=(0,o.pM)({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:b(),slots:Object,setup(e,t){let{slots:n,emit:s,attrs:v}=t;const b=(0,o.nI)(),y=(0,c.W_)(),w="symbol"===typeof b.vnode.key?String(b.vnode.key):b.vnode.key;(0,m.A)("symbol"!==typeof b.vnode.key,"MenuItem",`MenuItem \`:key="${String(w)}"\` not support Symbol type`);const _=`menu_item_${++A}_$$_${w}`,{parentEventKeys:x,parentKeys:E}=(0,c.Lk)(),{prefixCls:S,activeKeys:C,disabled:T,changeActiveKeys:k,rtl:O,inlineCollapsed:M,siderCollapsed:I,onItemClick:D,selectedKeys:N,registerMenuInfo:R,unRegisterMenuInfo:L}=(0,u.an)(),B=(0,u.lO)(),P=(0,l.IJ)(!1),F=(0,o.EW)(()=>[...E.value,w]),$={eventKey:_,key:w,parentEventKeys:x,parentKeys:E,isLeaf:!0};R(_,$),(0,o.xo)(()=>{L(_)}),(0,o.wB)(C,()=>{P.value=!!C.value.find(e=>e===w)},{immediate:!0});const j=(0,o.EW)(()=>T.value||e.disabled),H=(0,o.EW)(()=>N.value.includes(w)),U=(0,o.EW)(()=>{const t=`${S.value}-item`;return{[`${t}`]:!0,[`${t}-danger`]:e.danger,[`${t}-active`]:P.value,[`${t}-selected`]:H.value,[`${t}-disabled`]:j.value}}),Q=t=>({key:w,eventKey:_,keyPath:F.value,eventKeyPath:[...x.value,_],domEvent:t,item:(0,i.A)((0,i.A)({},e),v)}),z=e=>{if(j.value)return;const t=Q(e);s("click",e),D(t)},W=e=>{j.value||(k(F.value),s("mouseenter",e))},G=e=>{j.value||(k([]),s("mouseleave",e))},V=e=>{if(s("keydown",e),e.which===f.A.ENTER){const t=Q(e);s("click",e),D(t)}},K=e=>{k(F.value),s("focus",e)},Y=(e,t)=>{const n=(0,o.bF)("span",{class:`${S.value}-title-content`},[t]);return(!e||(0,a.zO)(t)&&"span"===t.type)&&t&&M.value&&B&&"string"===typeof t?(0,o.bF)("div",{class:`${S.value}-inline-collapsed-noicon`},[t.charAt(0)]):n},q=(0,p.A)((0,o.EW)(()=>F.value.length));return()=>{var t,s,l,c,u;if(y)return null;const f=null!==(t=e.title)&&void 0!==t?t:null===(s=n.title)||void 0===s?void 0:s.call(n),p=(0,a.MI)(null===(l=n.default)||void 0===l?void 0:l.call(n)),m=p.length;let A=f;"undefined"===typeof f?A=B&&m?p:"":!1===f&&(A="");const b={title:A};I.value||M.value||(b.title=null,b.open=!1);const _={};"option"===e.role&&(_["aria-selected"]=H.value);const x=null!==(c=e.icon)&&void 0!==c?c:null===(u=n.icon)||void 0===u?void 0:u.call(n,e);return(0,o.bF)(h.A,(0,r.A)((0,r.A)({},b),{},{placement:O.value?"left":"right",overlayClassName:`${S.value}-inline-collapsed-tooltip`}),{default:()=>[(0,o.bF)(g.A.Item,(0,r.A)((0,r.A)((0,r.A)({component:"li"},v),{},{id:e.id,style:(0,i.A)((0,i.A)({},v.style||{}),q.value),class:[U.value,{[`${v.class}`]:!!v.class,[`${S.value}-item-only-child`]:1===(x?m+1:m)}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":w,"aria-disabled":e.disabled},_),{},{onMouseenter:W,onMouseleave:G,onClick:z,onKeydown:V,onFocus:K,title:"string"===typeof f?f:void 0}),{default:()=>[(0,d.Ob)("function"===typeof x?x(e.originItemValue):x,{class:`${S.value}-item-icon`},!1),Y(x,p)]})]})}}})},78082:function(e,t,n){"use strict";var r=n(56768),i=n(90144);const o=()=>{const e=(0,i.KR)(new Map),t=t=>n=>{e.value.set(t,n)};return(0,r.Ic)(()=>{e.value=new Map}),[t,e]};t.A=o},78143:function(e,t,n){"use strict";n.d(t,{A:function(){return A}});n(18111),n(61701),n(18237);var r=n(51137),i=n(61935),o=n(32033);function a(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}var s=n(10734),l=n(20783);const c=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};var u=c;function d(e){const{motionUnit:t,motionBase:n,borderRadius:i,lineWidth:o}=e;return(0,r.A)({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},u(i))}var h=n(50223);const f=(e,t)=>new h.q(e).setAlpha(t).toRgbString(),p=(e,t)=>{const n=new h.q(e);return n.darken(t).toHexString()},g=e=>{const t=(0,i.cM)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},m=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:f(r,.88),colorTextSecondary:f(r,.65),colorTextTertiary:f(r,.45),colorTextQuaternary:f(r,.25),colorFill:f(r,.15),colorFillSecondary:f(r,.06),colorFillTertiary:f(r,.04),colorFillQuaternary:f(r,.02),colorBgLayout:p(n,4),colorBgContainer:p(n,0),colorBgElevated:p(n,0),colorBgSpotlight:f(r,.85),colorBorder:p(n,15),colorBorderSecondary:p(n,6)}};var v=n(21202);function A(e){const t=Object.keys(s.r).map(t=>{const n=(0,i.cM)(e[t]);return new Array(10).fill(1).reduce((e,r,i)=>(e[`${t}-${i+1}`]=n[i],e),{})}).reduce((e,t)=>(e=(0,r.A)((0,r.A)({},e),t),e),{});return(0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({},e),t),(0,l.A)(e,{generateColorPalettes:g,generateNeutralColorPalettes:m})),(0,v.A)(e.fontSize)),a(e)),(0,o.A)(e)),d(e))}},78187:function(e,t,n){"use strict";n.d(t,{Ay:function(){return se}});var r=n(51137),i=n(56768),o=n(90144),a=n(99163),s=n(43448),l=(n(18111),n(22489),n(7588),{icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"}),c=l,u=n(4827);function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){h(e,t,n[t])})}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e,t){var n=d({},e,t.attrs);return(0,i.bF)(u.A,d({},n,{icon:c}),null)};f.displayName="DoubleLeftOutlined",f.inheritAttrs=!1;var p=f,g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},m=g;function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){A(e,t,n[t])})}return e}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e,t){var n=v({},e,t.attrs);return(0,i.bF)(u.A,v({},n,{icon:m}),null)};b.displayName="DoubleRightOutlined",b.inheritAttrs=!1;var y=b,w=n(37890),_=(0,i.pM)({name:"MiniSelect",compatConfig:{MODE:3},inheritAttrs:!1,props:(0,w.nT)(),Option:w.Ay.Option,setup(e,t){let{attrs:n,slots:o}=t;return()=>{const t=(0,r.A)((0,r.A)((0,r.A)({},e),{size:"small"}),n);return(0,i.bF)(w.Ay,t,o)}}});const x=(0,i.pM)({name:"MiddleSelect",inheritAttrs:!1,props:(0,w.nT)(),Option:w.Ay.Option,setup(e,t){let{attrs:n,slots:o}=t;return()=>{const t=(0,r.A)((0,r.A)((0,r.A)({},e),{size:"middle"}),n);return(0,i.bF)(w.Ay,t,o)}}});var E=n(36590),S=(n(44114),n(41034)),C=n(81425),T=n(49570),k=n(44832),O=n(49974),M=(0,i.pM)({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:C.A.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:n,attrs:r}=t;const o=()=>{n("click",e.page)},a=t=>{n("keypress",t,o,e.page)};return()=>{const{showTitle:t,page:n,itemRender:s}=e,{class:l,style:c}=r,u=`${e.rootPrefixCls}-item`,d=(0,O.A)(u,`${u}-${e.page}`,{[`${u}-active`]:e.active,[`${u}-disabled`]:!e.page},l);return(0,i.bF)("li",{onClick:o,onKeypress:a,title:t?String(n):null,tabindex:"0",class:d,style:c},[s({page:n,type:"page",originalElement:(0,i.bF)("a",{rel:"nofollow"},[n])})])}}}),I=(n(61701),n(13579),{ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40}),D=n(81269),N=(0,i.pM)({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:C.A.any,current:Number,pageSizeOptions:C.A.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:C.A.object,rootPrefixCls:String,selectPrefixCls:String,goButton:C.A.any},setup(e){const t=(0,o.KR)(""),n=(0,i.EW)(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),r=t=>`${t.value} ${e.locale.items_per_page}`,a=e=>{const{value:n}=e.target;t.value!==n&&(t.value=n)},s=r=>{const{goButton:i,quickGo:o,rootPrefixCls:a}=e;i||""===t.value||(r.relatedTarget&&(r.relatedTarget.className.indexOf(`${a}-item-link`)>=0||r.relatedTarget.className.indexOf(`${a}-item`)>=0)||o(n.value),t.value="")},l=r=>{""!==t.value&&(r.keyCode!==I.ENTER&&"click"!==r.type||(e.quickGo(n.value),t.value=""))},c=(0,i.EW)(()=>{const{pageSize:t,pageSizeOptions:n}=e;return n.some(e=>e.toString()===t.toString())?n:n.concat([t.toString()]).sort((e,t)=>{const n=isNaN(Number(e))?0:Number(e),r=isNaN(Number(t))?0:Number(t);return n-r})});return()=>{const{rootPrefixCls:n,locale:o,changeSize:u,quickGo:d,goButton:h,selectComponentClass:f,selectPrefixCls:p,pageSize:g,disabled:m}=e,v=`${n}-options`;let A=null,b=null,y=null;if(!u&&!d)return null;if(u&&f){const t=e.buildOptionText||r,n=c.value.map((e,n)=>(0,i.bF)(f.Option,{key:n,value:e},{default:()=>[t({value:e})]}));A=(0,i.bF)(f,{disabled:m,prefixCls:p,showSearch:!1,class:`${v}-size-changer`,optionLabelProp:"children",value:(g||c.value[0]).toString(),onChange:e=>u(Number(e)),getPopupContainer:e=>e.parentNode},{default:()=>[n]})}return d&&(h&&(y="boolean"===typeof h?(0,i.bF)("button",{type:"button",onClick:l,onKeyup:l,disabled:m,class:`${v}-quick-jumper-button`},[o.jump_to_confirm]):(0,i.bF)("span",{onClick:l,onKeyup:l},[h])),b=(0,i.bF)("div",{class:`${v}-quick-jumper`},[o.jump_to,(0,i.bF)(D.A,{disabled:m,type:"text",value:t.value,onInput:a,onChange:a,onKeyup:l,onBlur:s},null),o.page,y])),(0,i.bF)("li",{class:`${v}`},[A,b])}}}),R=n(15416),L=n(82978),B=n(59293),P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function F(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e}function $(e){let{originalElement:t}=e;return t}function j(e,t,n){const r="undefined"===typeof e?t.statePageSize:e;return Math.floor((n.total-1)/r)+1}var H=(0,i.pM)({compatConfig:{MODE:3},name:"Pagination",mixins:[T.A],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:C.A.string.def("rc-pagination"),selectPrefixCls:C.A.string.def("rc-select"),current:Number,defaultCurrent:C.A.number.def(1),total:C.A.number.def(0),pageSize:Number,defaultPageSize:C.A.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:C.A.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:C.A.oneOfType([C.A.looseBool,C.A.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:C.A.arrayOf(C.A.oneOfType([C.A.number,C.A.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:C.A.object.def(R.A),itemRender:C.A.func.def($),prevIcon:C.A.any,nextIcon:C.A.any,jumpPrevIcon:C.A.any,jumpNextIcon:C.A.any,totalBoundaryShowSizeChanger:C.A.number.def(50)},data(){const e=this.$props;let t=(0,B.A)([this.current,this.defaultCurrent]);const n=(0,B.A)([this.pageSize,this.defaultPageSize]);return t=Math.min(t,j(n,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:n}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let n=this.stateCurrent;const r=j(e,this.$data,this.$props);n=n>r?r:n,(0,k.cK)(this,"current")||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){const e=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);e&&document.activeElement===e&&e.blur()}})},total(){const e={},t=j(this.pageSize,this.$data,this.$props);if((0,k.cK)(this,"current")){const n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{let n=this.stateCurrent;n=0===n&&t>0?1:Math.min(this.stateCurrent,t),e.stateCurrent=n}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(j(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:n}=this.$props,r=(0,k.QQ)(this,e,this.$props)||(0,i.bF)("button",{type:"button","aria-label":t,class:`${n}-item-link`},null);return r},getValidValue(e){const t=e.target.value,n=j(void 0,this.$data,this.$props),{stateCurrentInputValue:r}=this.$data;let i;return i=""===t?t:isNaN(Number(t))?r:t>=n?n:Number(t),i},isValid(e){return F(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:n}=this.$props;return!(n<=t)&&e},handleKeyDown(e){e.keyCode!==I.ARROW_UP&&e.keyCode!==I.ARROW_DOWN||e.preventDefault()},handleKeyUp(e){const t=this.getValidValue(e),n=this.stateCurrentInputValue;t!==n&&this.setState({stateCurrentInputValue:t}),e.keyCode===I.ENTER?this.handleChange(t):e.keyCode===I.ARROW_UP?this.handleChange(t-1):e.keyCode===I.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const n=t,r=j(e,this.$data,this.$props);t=t>r?r:t,0===r&&(t=this.stateCurrent),"number"===typeof e&&((0,k.cK)(this,"pageSize")||this.setState({statePageSize:e}),(0,k.cK)(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==n&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let n=e;if(this.isValid(n)&&!t){const e=j(void 0,this.$data,this.$props);return n>e?n=e:n<1&&(n=1),(0,k.cK)(this,"current")||this.setState({stateCurrent:n,stateCurrentInputValue:n}),this.__emit("update:current",n),this.__emit("change",n,this.statePageSize),n}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrent<j(void 0,this.$data,this.$props)},getShowSizeChanger(){const{showSizeChanger:e,total:t,totalBoundaryShowSizeChanger:n}=this.$props;return"undefined"!==typeof e?e:t>n},runIfEnter(e,t){if("Enter"===e.key||13===e.charCode){e.preventDefault();for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];t(...r)}},runIfEnterPrev(e){this.runIfEnter(e,this.prev)},runIfEnterNext(e){this.runIfEnter(e,this.next)},runIfEnterJumpPrev(e){this.runIfEnter(e,this.jumpPrev)},runIfEnterJumpNext(e){this.runIfEnter(e,this.jumpNext)},handleGoTO(e){e.keyCode!==I.ENTER&&"click"!==e.type||this.handleChange(this.stateCurrentInputValue)},renderPrev(e){const{itemRender:t}=this.$props,n=t({page:e,type:"prev",originalElement:this.getItemIcon("prevIcon","prev page")}),r=!this.hasPrev();return(0,k.zO)(n)?(0,L.Ob)(n,r?{disabled:r}:{}):n},renderNext(e){const{itemRender:t}=this.$props,n=t({page:e,type:"next",originalElement:this.getItemIcon("nextIcon","next page")}),r=!this.hasNext();return(0,k.zO)(n)?(0,L.Ob)(n,r?{disabled:r}:{}):n}},render(){const{prefixCls:e,disabled:t,hideOnSinglePage:n,total:r,locale:o,showQuickJumper:a,showLessItems:s,showTitle:l,showTotal:c,simple:u,itemRender:d,showPrevNextJumpers:h,jumpPrevIcon:f,jumpNextIcon:p,selectComponentClass:g,selectPrefixCls:m,pageSizeOptions:v}=this.$props,{stateCurrent:A,statePageSize:b}=this,y=(0,k.fR)(this.$attrs).extraAttrs,{class:w}=y,_=P(y,["class"]);if(!0===n&&this.total<=b)return null;const x=j(void 0,this.$data,this.$props),E=[];let C=null,T=null,I=null,R=null,L=null;const B=a&&a.goButton,F=s?1:2,$=A-1>0?A-1:0,H=A+1<x?A+1:x,U=this.hasPrev(),Q=this.hasNext();if(u){if(B){L="boolean"===typeof B?(0,i.bF)("button",{type:"button",onClick:this.handleGoTO,onKeyup:this.handleGoTO},[o.jump_to_confirm]):(0,i.bF)("span",{onClick:this.handleGoTO,onKeyup:this.handleGoTO},[B]);(function(){})();L=(0,i.bF)("li",{title:l?`${o.jump_to}${A}/${x}`:null,class:`${e}-simple-pager`},[L])}return(0,i.bF)("ul",(0,S.A)({class:(0,O.A)(`${e} ${e}-simple`,{[`${e}-disabled`]:t},w)},_),[(0,i.bF)("li",{title:l?o.prev_page:null,onClick:this.prev,tabindex:U?0:null,onKeypress:this.runIfEnterPrev,class:(0,O.A)(`${e}-prev`,{[`${e}-disabled`]:!U}),"aria-disabled":!U},[this.renderPrev($)]),(0,i.bF)("li",{title:l?`${A}/${x}`:null,class:`${e}-simple-pager`},[(0,i.bF)(D.A,{type:"text",value:this.stateCurrentInputValue,disabled:t,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onInput:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"},null),(0,i.bF)("span",{class:`${e}-slash`},[(0,i.eW)("／")]),x]),(0,i.bF)("li",{title:l?o.next_page:null,onClick:this.next,tabindex:Q?0:null,onKeypress:this.runIfEnterNext,class:(0,O.A)(`${e}-next`,{[`${e}-disabled`]:!Q}),"aria-disabled":!Q},[this.renderNext(H)]),L])}if(x<=3+2*F){const t={locale:o,rootPrefixCls:e,showTitle:l,itemRender:d,onClick:this.handleChange,onKeypress:this.runIfEnter};x||E.push((0,i.bF)(M,(0,S.A)((0,S.A)({},t),{},{key:"noPager",page:1,class:`${e}-item-disabled`}),null));for(let e=1;e<=x;e+=1){const n=A===e;E.push((0,i.bF)(M,(0,S.A)((0,S.A)({},t),{},{key:e,page:e,active:n}),null))}}else{const t=s?o.prev_3:o.prev_5,n=s?o.next_3:o.next_5;h&&(C=(0,i.bF)("li",{title:this.showTitle?t:null,key:"prev",onClick:this.jumpPrev,tabindex:"0",onKeypress:this.runIfEnterJumpPrev,class:(0,O.A)(`${e}-jump-prev`,{[`${e}-jump-prev-custom-icon`]:!!f})},[d({page:this.getJumpPrevPage(),type:"jump-prev",originalElement:this.getItemIcon("jumpPrevIcon","prev page")})]),T=(0,i.bF)("li",{title:this.showTitle?n:null,key:"next",tabindex:"0",onClick:this.jumpNext,onKeypress:this.runIfEnterJumpNext,class:(0,O.A)(`${e}-jump-next`,{[`${e}-jump-next-custom-icon`]:!!p})},[d({page:this.getJumpNextPage(),type:"jump-next",originalElement:this.getItemIcon("jumpNextIcon","next page")})])),R=(0,i.bF)(M,{locale:o,last:!0,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:x,page:x,active:!1,showTitle:l,itemRender:d},null),I=(0,i.bF)(M,{locale:o,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:1,page:1,active:!1,showTitle:l,itemRender:d},null);let r=Math.max(1,A-F),a=Math.min(A+F,x);A-1<=F&&(a=1+2*F),x-A<=F&&(r=x-2*F);for(let s=r;s<=a;s+=1){const t=A===s;E.push((0,i.bF)(M,{locale:o,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:s,page:s,active:t,showTitle:l,itemRender:d},null))}A-1>=2*F&&3!==A&&(E[0]=(0,i.bF)(M,{locale:o,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:r,page:r,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:d},null),E.unshift(C)),x-A>=2*F&&A!==x-2&&(E[E.length-1]=(0,i.bF)(M,{locale:o,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:a,page:a,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:d},null),E.push(T)),1!==r&&E.unshift(I),a!==x&&E.push(R)}let z=null;c&&(z=(0,i.bF)("li",{class:`${e}-total-text`},[c(r,[0===r?0:(A-1)*b+1,A*b>r?r:A*b])]));const W=!U||!x,G=!Q||!x,V=this.buildOptionText||this.$slots.buildOptionText;return(0,i.bF)("ul",(0,S.A)((0,S.A)({unselectable:"on",ref:"paginationNode"},_),{},{class:(0,O.A)({[`${e}`]:!0,[`${e}-disabled`]:t},w)}),[z,(0,i.bF)("li",{title:l?o.prev_page:null,onClick:this.prev,tabindex:W?null:0,onKeypress:this.runIfEnterPrev,class:(0,O.A)(`${e}-prev`,{[`${e}-disabled`]:W}),"aria-disabled":W},[this.renderPrev($)]),E,(0,i.bF)("li",{title:l?o.next_page:null,onClick:this.next,tabindex:G?null:0,onKeypress:this.runIfEnterNext,class:(0,O.A)(`${e}-next`,{[`${e}-disabled`]:G}),"aria-disabled":G},[this.renderNext(H)]),(0,i.bF)(N,{disabled:t,locale:o,rootPrefixCls:e,selectComponentClass:g,selectPrefixCls:m,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:A,pageSize:b,pageSizeOptions:v,buildOptionText:V||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:B},null)])}}),U=n(26722),Q=n(60674),z=n(53627),W=n(44678),G=n(64675),V=n(90112),K=n(9519),Y=n(36068);const q=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`&${t}-mini`]:{[`\n          &:hover ${t}-item:not(${t}-item-active),\n          &:active ${t}-item:not(${t}-item-active),\n          &:hover ${t}-item-link,\n          &:active ${t}-item-link\n        `]:{backgroundColor:"transparent"}},[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},X=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:e.paginationItemSizeSM-2+"px"},[`&${t}-mini ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`,[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}},[`\n    &${t}-mini ${t}-prev ${t}-item-link,\n    &${t}-mini ${t}-next ${t}-item-link\n    `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,["&-size-changer"]:{top:e.paginationMiniOptionsSizeChangerTop},["&-quick-jumper"]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:(0,r.A)((0,r.A)({},(0,G.BZ)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},J=e=>{const{componentCls:t}=e;return{[`\n    &${t}-simple ${t}-prev,\n    &${t}-simple ${t}-next\n    `]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.paginationItemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Z=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},"&:focus-visible":(0,r.A)({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,Y.jk)(e))},[`\n    ${t}-prev,\n    ${t}-jump-prev,\n    ${t}-jump-next\n    `]:{marginInlineEnd:e.marginXS},[`\n    ${t}-prev,\n    ${t}-next,\n    ${t}-jump-prev,\n    ${t}-jump-next\n    `]:{display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:(0,r.A)({},(0,Y.jk)(e)),[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:(0,r.A)((0,r.A)({},(0,G.wj)(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},ee=e=>{const{componentCls:t}=e;return{[`${t}-item`]:(0,r.A)((0,r.A)({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:e.paginationItemSize-2+"px",textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},(0,Y.K8)(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},te=e=>{const{componentCls:t}=e;return{[t]:(0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({},(0,Y.dF)(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:e.paginationItemSize-2+"px",verticalAlign:"middle"}}),ee(e)),Z(e)),J(e)),X(e)),q(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},ne=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.paginationItemDisabledBgActive}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[t]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}};var re=(0,V.A)("Pagination",e=>{const t=(0,K.h1)(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 0",paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:1.1*e.controlHeightLG,paginationItemPaddingInline:1.5*e.marginXXS,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,G.C5)(e));return[te(t),e.wireframe&&ne(t)]}),ie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const oe=()=>({total:Number,defaultCurrent:Number,disabled:(0,W.HE)(),current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:(0,W.HE)(),showSizeChanger:(0,W.HE)(),pageSizeOptions:(0,W.MY)(),buildOptionText:(0,W.Fg)(),showQuickJumper:(0,W.tK)([Boolean,Object]),showTotal:(0,W.Fg)(),size:(0,W.WO)(),simple:(0,W.HE)(),locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:(0,W.Fg)(),role:String,responsive:Boolean,showLessItems:(0,W.HE)(),onChange:(0,W.Fg)(),onShowSizeChange:(0,W.Fg)(),"onUpdate:current":(0,W.Fg)(),"onUpdate:pageSize":(0,W.Fg)()});var ae=(0,i.pM)({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:oe(),setup(e,t){let{slots:n,attrs:l}=t;const{prefixCls:c,configProvider:u,direction:d,size:h}=(0,Q.A)("pagination",e),[f,g]=re(c),m=(0,i.EW)(()=>u.getPrefixCls("select",e.selectPrefixCls)),v=(0,z.A)(),[A]=(0,E.n)("Pagination",U.A,(0,o.lW)(e,"locale")),b=e=>{const t=(0,i.bF)("span",{class:`${e}-item-ellipsis`},[(0,i.eW)("•••")]),n=(0,i.bF)("button",{class:`${e}-item-link`,type:"button",tabindex:-1},["rtl"===d.value?(0,i.bF)(s.A,null,null):(0,i.bF)(a.A,null,null)]),r=(0,i.bF)("button",{class:`${e}-item-link`,type:"button",tabindex:-1},["rtl"===d.value?(0,i.bF)(a.A,null,null):(0,i.bF)(s.A,null,null)]),o=(0,i.bF)("a",{rel:"nofollow",class:`${e}-item-link`},[(0,i.bF)("div",{class:`${e}-item-container`},["rtl"===d.value?(0,i.bF)(y,{class:`${e}-item-link-icon`},null):(0,i.bF)(p,{class:`${e}-item-link-icon`},null),t])]),l=(0,i.bF)("a",{rel:"nofollow",class:`${e}-item-link`},[(0,i.bF)("div",{class:`${e}-item-container`},["rtl"===d.value?(0,i.bF)(p,{class:`${e}-item-link-icon`},null):(0,i.bF)(y,{class:`${e}-item-link-icon`},null),t])]);return{prevIcon:n,nextIcon:r,jumpPrevIcon:o,jumpNextIcon:l}};return()=>{var t;const{itemRender:o=n.itemRender,buildOptionText:a=n.buildOptionText,selectComponentClass:s,responsive:u}=e,p=ie(e,["itemRender","buildOptionText","selectComponentClass","responsive"]),y="small"===h.value||!(!(null===(t=v.value)||void 0===t?void 0:t.xs)||h.value||!u),w=(0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({},p),b(c.value)),{prefixCls:c.value,selectPrefixCls:m.value,selectComponentClass:s||(y?_:x),locale:A.value,buildOptionText:a}),l),{class:(0,O.A)({[`${c.value}-mini`]:y,[`${c.value}-rtl`]:"rtl"===d.value},l.class,g.value),itemRender:o});return f((0,i.bF)(H,w,null))}}}),se=(0,W.GU)(ae)},78227:function(e,t,n){"use strict";var r=n(44576),i=n(25745),o=n(39297),a=n(33392),s=n(4495),l=n(7040),c=r.Symbol,u=i("wks"),d=l?c["for"]||c:c&&c.withoutSetter||a;e.exports=function(e){return o(u,e)||(u[e]=s&&o(c,e)?c[e]:d("Symbol."+e)),u[e]}},78355:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 000 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm62.6-651.7l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9zm60.16 186.23a48 48 0 1067.88-67.89 48 48 0 10-67.88 67.89zM889.7 539.8l-39.6-39.5a8.03 8.03 0 00-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 00-11.3 0l-39.6 39.5a8.03 8.03 0 000 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z"}}]},name:"tags",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="TagsOutlined",c.inheritAttrs=!1;var u=c},78420:function(e,t,n){const r=n(46274),i=n(1954),o=n(67676),a=n(95934);function s(e,t,n,o,a){const s=[].slice.call(arguments,1),l=s.length,c="function"===typeof s[l-1];if(!c&&!r())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=t,t=o=void 0):2!==l||t.getContext||(o=n,n=t,t=void 0),new Promise(function(r,a){try{const a=i.create(n,o);r(e(a,t,o))}catch(s){a(s)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=t,t=o=void 0):3===l&&(t.getContext&&"undefined"===typeof a?(a=o,o=void 0):(a=o,o=n,n=t,t=void 0));try{const r=i.create(n,o);a(null,e(r,t,o))}catch(u){a(u)}}t.create=i.create,t.toCanvas=s.bind(null,o.render),t.toDataURL=s.bind(null,o.renderToDataURL),t.toString=s.bind(null,function(e,t,n){return a.render(e,n)})},78973:function(e){function t(e){const t={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},n=e.COMMENT(/\{/,/\}/,{relevance:0}),r=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),i={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},o={className:"string",begin:"(#\\d+)+"},a={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.inherit(e.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:t,contains:[i,o]},n,r]},s={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[n,r,e.C_LINE_COMMENT_MODE,i,o,e.NUMBER_MODE,a,s]}}e.exports=t},78978:function(e){function t(e,t={}){return t.variants=e,t}function n(e){const n=e.regex,r="[A-Za-z0-9_$]+",i=t([e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),o={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[e.BACKSLASH_ESCAPE]},a=t([e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]),s=t([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE],{className:"string"}),l={match:[/(class|interface|trait|enum|record|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE],scope:{1:"keyword",3:"title.class"}},c=["byte","short","char","int","long","boolean","float","double","void"],u=["def","as","in","assert","trait","abstract","static","volatile","transient","public","private","protected","synchronized","final","class","interface","enum","if","else","for","while","switch","case","break","default","continue","throw","throws","try","catch","finally","implements","extends","new","import","package","return","instanceof","var"];return{name:"Groovy",keywords:{"variable.language":"this super",literal:"true false null",type:c,keyword:u},contains:[e.SHEBANG({binary:"groovy",relevance:10}),i,s,o,a,l,{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:r+"[ \t]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[i,s,o,a,"self"]},{className:"symbol",begin:"^[ \t]*"+n.lookahead(r+":"),excludeBegin:!0,end:r+":",relevance:0}],illegal:/#|<\//}}e.exports=n},79024:function(e,t){"use strict";const n=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}});t.A=n},79039:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},79047:function(e,t,n){"use strict";n.d(t,{A:function(){return T}});var r=n(23506),i=n(71191),o=(n(44114),n(67788)),a="Expected a function";function s(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(a);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(s.Cache||o.A),n}s.Cache=o.A;var l=s,c=500;function u(e){var t=l(e,function(e){return n.size===c&&n.clear(),e}),n=t.cache;return t}var d=u,h=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f=/\\(\\)?/g,p=d(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(h,function(e,n,r,i){t.push(r?i.replace(f,"$1"):n||e)}),t}),g=p,m=n(72990),v=n(65347),A=n(18095),b=1/0,y=m.A?m.A.prototype:void 0,w=y?y.toString:void 0;function _(e){if("string"==typeof e)return e;if((0,r.A)(e))return(0,v.A)(e,_)+"";if((0,A.A)(e))return w?w.call(e):"";var t=e+"";return"0"==t&&1/e==-b?"-0":t}var x=_;function E(e){return null==e?"":x(e)}var S=E;function C(e,t){return(0,r.A)(e)?e:(0,i.A)(e,t)?[e]:g(S(e))}var T=C},79306:function(e,t,n){"use strict";var r=n(94901),i=n(16823),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},79351:function(){},79472:function(e,t,n){"use strict";var r=n(44576),i=n(18745),o=n(94901),a=n(84215),s=n(82839),l=n(67680),c=n(22812),u=r.Function,d=/MSIE .\./.test(s)||"BUN"===a&&function(){var e=r.Bun.version.split(".");return e.length<3||"0"===e[0]&&(e[1]<3||"3"===e[1]&&"0"===e[2])}();e.exports=function(e,t){var n=t?2:1;return d?function(r,a){var s=c(arguments.length,1)>n,d=o(r)?r:u(r),h=s?l(arguments,n):[],f=s?function(){i(d,this,h)}:d;return t?e(f,a):e(f)}:e}},79504:function(e,t,n){"use strict";var r=n(40616),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},79547:function(e,t){let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;while(0!==e)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!==typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return"undefined"!==typeof n},t.toSJIS=function(e){return n(e)}},79577:function(e,t,n){"use strict";var r=n(39928),i=n(94644),o=n(18727),a=n(91291),s=n(75854),l=i.aTypedArray,c=i.getTypedArrayConstructor,u=i.exportTypedArrayMethod,d=function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}(),h=d&&function(){try{new Int8Array(1)["with"](-.5,1)}catch(e){return!0}}();u("with",{with:function(e,t){var n=l(this),i=a(e),u=o(n)?s(t):+t;return r(n,c(n),i,u)}}["with"],!d||h)},79947:function(e){function t(e){const t=e.regex,n=["ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"],r=["ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY"],i=["addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"],o={className:"variable.constant",begin:t.concat(/\$/,t.either(...n))},a={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},s={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},l={className:"variable",begin:/\$+\([\w^.:!-]+\)/},c={className:"params",begin:t.either(...r)},u={className:"keyword",begin:t.concat(/!/,t.either(...i))},d={className:"char.escape",begin:/\$(\\[nrt]|\$)/},h={className:"title.function",begin:/\w+::\w+/},f={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[d,o,a,s,l]},p=["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],g=["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"],m={match:[/Function/,/\s+/,t.concat(/(\.)?/,e.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},v=/[A-Za-z][\w.]*/,A={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,v],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:p,literal:g},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),A,m,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},f,u,a,s,l,c,h,e.NUMBER_MODE]}}e.exports=t},80167:function(e){function t(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function n(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&t(e.slice(0,0))}
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
e.exports=function(e){return null!=e&&(t(e)||n(e)||!!e._isBuffer)}},80339:function(e,t){"use strict";var n="object"==typeof global&&global&&global.Object===Object&&global;t.A=n},80547:function(e,t,n){var r=n(83800);r.commands.tabAndIndentMarkdownList=function(e){var t=e.listSelections(),n=t[0].head,r=e.getStateAfter(n.line),i=!1!==r.list;if(i)e.execCommand("indentMore");else if(e.options.indentWithTabs)e.execCommand("insertTab");else{var o=Array(e.options.tabSize+1).join(" ");e.replaceSelection(o)}},r.commands.shiftTabAndUnindentMarkdownList=function(e){var t=e.listSelections(),n=t[0].head,r=e.getStateAfter(n.line),i=!1!==r.list;if(i)e.execCommand("indentLess");else if(e.options.indentWithTabs)e.execCommand("insertTab");else{var o=Array(e.options.tabSize+1).join(" ");e.replaceSelection(o)}}},80566:function(e){function t(e){const t={className:"string",begin:"\\[\n(multipart)?",end:"\\]\n"},n={className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},r={className:"string",begin:"(\\+|-)\\d+"},i={className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]};return{name:"SubUnit",case_insensitive:!0,contains:[t,n,r,i]}}e.exports=t},80652:function(e){function t(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}e.exports=t},80741:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},80747:function(e,t,n){"use strict";var r=n(66699),i=n(16193),o=n(24659),a=Error.captureStackTrace;e.exports=function(e,t,n,s){o&&(a?a(e,t):r(e,"stack",i(n,s)))}},80816:function(e,t,n){"use strict";n.d(t,{A:function(){return le}});n(18111),n(61701);var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(8982),l=n(23402),c=n(73429),u=n(44832),d=n(60674),h=n(93758),f=n(34322),p=n(45130),g=n(16678);const m=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},v=e=>{(0,o.dY)(()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")})},A=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)};var b=(0,o.pM)({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(e){return()=>{const{existIcon:t,prefixCls:n,loading:r}=e;if(t)return(0,o.bF)("span",{class:`${n}-loading-icon`},[(0,o.bF)(g.A,null,null)]);const i=!!r;return(0,o.bF)(p.eB,{name:`${n}-loading-icon-motion`,onBeforeEnter:m,onEnter:v,onAfterEnter:A,onBeforeLeave:v,onLeave:e=>{setTimeout(()=>{m(e)})},onAfterLeave:A},{default:()=>[i?(0,o.bF)("span",{class:`${n}-loading-icon`},[(0,o.bF)(g.A,null,null)]):null]})}}}),y=n(9519),w=n(90112);const _=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),x=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:i,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,["&:hover,\n          &:focus,\n          &:active"]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},_(`${t}-primary`,i),_(`${t}-danger`,o)]}};var E=x,S=n(36068),C=n(20353);function T(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function k(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function O(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:(0,i.A)((0,i.A)({},T(e,t)),k(e.componentCls,t))}}const M=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":(0,i.A)({},(0,S.K8)(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},I=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),D=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),N=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),R=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),L=(e,t,n,r,o,a,s)=>({[`&${e}-background-ghost`]:(0,i.A)((0,i.A)({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},I((0,i.A)({backgroundColor:"transparent"},a),(0,i.A)({backgroundColor:"transparent"},s))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),B=e=>({"&:disabled":(0,i.A)({},R(e))}),P=e=>(0,i.A)({},B(e)),F=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),$=e=>(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({},P(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),I({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),L(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:(0,i.A)((0,i.A)((0,i.A)({color:e.colorError,borderColor:e.colorError},I({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),L(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),B(e))}),j=e=>(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({},P(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),I({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),L(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:(0,i.A)((0,i.A)((0,i.A)({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},I({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),L(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),B(e))}),H=e=>(0,i.A)((0,i.A)({},$(e)),{borderStyle:"dashed"}),U=e=>(0,i.A)((0,i.A)((0,i.A)({color:e.colorLink},I({color:e.colorLinkHover},{color:e.colorLinkActive})),F(e)),{[`&${e.componentCls}-dangerous`]:(0,i.A)((0,i.A)({color:e.colorError},I({color:e.colorErrorHover},{color:e.colorErrorActive})),F(e))}),Q=e=>(0,i.A)((0,i.A)((0,i.A)({},I({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),F(e)),{[`&${e.componentCls}-dangerous`]:(0,i.A)((0,i.A)({color:e.colorError},F(e)),I({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),z=e=>(0,i.A)((0,i.A)({},R(e)),{[`&${e.componentCls}:hover`]:(0,i.A)({},R(e))}),W=e=>{const{componentCls:t}=e;return{[`${t}-default`]:$(e),[`${t}-primary`]:j(e),[`${t}-dashed`]:H(e),[`${t}-link`]:U(e),[`${t}-text`]:Q(e),[`${t}-disabled`]:z(e)}},G=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,iconCls:r,controlHeight:i,fontSize:o,lineHeight:a,lineWidth:s,borderRadius:l,buttonPaddingHorizontal:c}=e,u=Math.max(0,(i-o*a)/2-s),d=c-s,h=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:o,height:i,padding:`${u}px ${d}px`,borderRadius:l,[`&${h}`]:{width:i,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${h}) ${n}-loading-icon > ${r}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:D(e)},{[`${n}${n}-round${t}`]:N(e)}]},V=e=>G(e),K=e=>{const t=(0,y.h1)(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return G(t,`${e.componentCls}-sm`)},Y=e=>{const t=(0,y.h1)(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return G(t,`${e.componentCls}-lg`)},q=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}};var X=(0,w.A)("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=(0,y.h1)(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[M(r),K(r),V(r),Y(r),q(r),W(r),E(r),(0,C.G)(e,{focus:!1}),O(e)]}),J=n(10707),Z=n(66139);const ee=()=>({prefixCls:String,size:{type:String}}),te=(0,Z.A)();var ne=(0,o.pM)({compatConfig:{MODE:3},name:"AButtonGroup",props:ee(),setup(e,t){let{slots:n}=t;const{prefixCls:r,direction:i}=(0,d.A)("btn-group",e),[,,s]=(0,J.rd)();te.useProvide((0,a.Kh)({size:(0,o.EW)(()=>e.size)}));const l=(0,o.EW)(()=>{const{size:t}=e;let n="";switch(t){case"large":n="lg";break;case"small":n="sm";break;case"middle":case void 0:break;default:(0,f.A)(!t,"Button.Group","Invalid prop `size`.")}return{[`${r.value}`]:!0,[`${r.value}-${n}`]:n,[`${r.value}-rtl`]:"rtl"===i.value,[s.value]:!0}});return()=>{var e;return(0,o.bF)("div",{class:l.value},[(0,u.MI)(null===(e=n.default)||void 0===e?void 0:e.call(n))])}}}),re=n(42472);const ie=/^[\u4e00-\u9fa5]{2}$/,oe=ie.test.bind(ie);function ae(e){return"text"===e||"link"===e}var se=(0,o.pM)({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:(0,c.A)((0,l.Ay)(),{type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:l,emit:c,expose:p}=t;const{prefixCls:g,autoInsertSpaceInButton:m,direction:v,size:A}=(0,d.A)("btn",e),[y,w]=X(g),_=te.useInject(),x=(0,h.p)(),E=(0,o.EW)(()=>{var t;return null!==(t=e.disabled)&&void 0!==t?t:x.value}),S=(0,a.IJ)(null),C=(0,a.IJ)(void 0);let T=!1;const k=(0,a.IJ)(!1),O=(0,a.IJ)(!1),M=(0,o.EW)(()=>!1!==m.value),{compactSize:I,compactItemClassnames:D}=(0,re.RQ)(g,v),N=(0,o.EW)(()=>"object"===typeof e.loading&&e.loading.delay?e.loading.delay||!0:!!e.loading);(0,o.wB)(N,e=>{clearTimeout(C.value),"number"===typeof N.value?C.value=setTimeout(()=>{k.value=e},N.value):k.value=e},{immediate:!0});const R=(0,o.EW)(()=>{const{type:t,shape:n="default",ghost:r,block:i,danger:o}=e,a=g.value,s={large:"lg",small:"sm",middle:void 0},l=I.value||(null===_||void 0===_?void 0:_.size)||A.value,c=l&&s[l]||"";return[D.value,{[w.value]:!0,[`${a}`]:!0,[`${a}-${n}`]:"default"!==n&&n,[`${a}-${t}`]:t,[`${a}-${c}`]:c,[`${a}-loading`]:k.value,[`${a}-background-ghost`]:r&&!ae(t),[`${a}-two-chinese-chars`]:O.value&&M.value,[`${a}-block`]:i,[`${a}-dangerous`]:!!o,[`${a}-rtl`]:"rtl"===v.value}]}),L=()=>{const e=S.value;if(!e||!1===m.value)return;const t=e.textContent;T&&oe(t)?O.value||(O.value=!0):O.value&&(O.value=!1)},B=e=>{k.value||E.value?e.preventDefault():c("click",e)},P=e=>{c("mousedown",e)},F=(e,t)=>{const n=t?" ":"";if(e.type===o.EY){let t=e.children.trim();return oe(t)&&(t=t.split("").join(n)),(0,o.bF)("span",null,[t])}return e};(0,o.nT)(()=>{(0,f.A)(!(e.ghost&&ae(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),(0,o.sV)(L),(0,o.$u)(L),(0,o.xo)(()=>{C.value&&clearTimeout(C.value)});const $=()=>{var e;null===(e=S.value)||void 0===e||e.focus()},j=()=>{var e;null===(e=S.value)||void 0===e||e.blur()};return p({focus:$,blur:j}),()=>{var t,a;const{icon:c=(null===(t=n.icon)||void 0===t?void 0:t.call(n))}=e,d=(0,u.MI)(null===(a=n.default)||void 0===a?void 0:a.call(n));T=1===d.length&&!c&&!ae(e.type);const{type:h,htmlType:f,href:p,title:m,target:v}=e,A=k.value?"loading":c,w=(0,i.A)((0,i.A)({},l),{title:m,disabled:E.value,class:[R.value,l.class,{[`${g.value}-icon-only`]:0===d.length&&!!A}],onClick:B,onMousedown:P});E.value||delete w.disabled;const _=c&&!k.value?c:(0,o.bF)(b,{existIcon:!!c,prefixCls:g.value,loading:!!k.value},null),x=d.map(e=>F(e,T&&M.value));if(void 0!==p)return y((0,o.bF)("a",(0,r.A)((0,r.A)({},w),{},{href:p,target:v,ref:S}),[_,x]));let C=(0,o.bF)("button",(0,r.A)((0,r.A)({},w),{},{ref:S,type:f}),[_,x]);if(!ae(h)){const e=function(){return C}();C=(0,o.bF)(s.A,{ref:"wave",disabled:!!k.value},{default:()=>[e]})}return y(C)}}});se.Group=ne,se.install=function(e){return e.component(se.name,se),e.component(ne.name,ne),e};var le=se},80854:function(e,t,n){function r(e){const t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},o=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],c=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],u=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],h=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],f=u,p=[...c,...l].filter(e=>!u.includes(e)),g={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},m={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},v={match:t.concat(/\b/,t.either(...f),/\s*\(/),relevance:0,keywords:{built_in:f}};function A(e){return t.concat(/\b/,t.either(...e.map(e=>e.replace(/\s+/,"\\s+"))),/\b/)}const b={scope:"keyword",match:A(h),relevance:0};function y(e,{exceptions:t,when:n}={}){const r=n;return t=t||[],e.map(e=>e.match(/\|\d+$/)||t.includes(e)?e:r(e)?`${e}|0`:e)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:y(p,{when:e=>e.length<3}),literal:o,type:s,built_in:d},contains:[{scope:"type",match:A(a)},b,v,g,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,m]}}n(18111),n(61701),e.exports=r},81074:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9zM713 808.5c-53.7 53.2-125 82.4-201 82.4s-147.3-29.2-201-82.4c-53.5-53.1-83-123.5-83-198.4 0-43.5 9.8-85.2 29.1-124 18.8-37.9 46.8-71.8 80.8-97.9a349.6 349.6 0 0058.6-56.8c25-30.5 44.6-64.5 58.2-101a240 240 0 0012.1-46.5c24.1 22.2 44.3 49 61.2 80.4 33.4 62.6 48.8 118.3 45.8 165.7a74.01 74.01 0 0024.4 59.8 73.36 73.36 0 0053.4 18.8c19.7-1 37.8-9.7 51-24.4 13.3-14.9 24.8-30.1 34.4-45.6 14 17.9 25.7 37.4 35 58.4 15.9 35.8 24 73.9 24 113.1 0 74.9-29.5 145.4-83 198.4z"}}]},name:"fire",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="FireOutlined",c.inheritAttrs=!1;var u=c},81109:function(e,t,n){"use strict";var r=n(12750);t.A=r},81148:function(e,t,n){"use strict";var r=n(46518),i=n(69565),o=n(72652),a=n(79306),s=n(28551),l=n(1767),c=n(9539),u=n(84549),d=u("every",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:d},{every:function(e){s(this);try{a(e)}catch(r){c(this,"throw",r)}if(d)return i(d,this,e);var t=l(this),n=0;return!o(t,function(t,r){if(!e(t,n++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},81186:function(e,t){"use strict";const n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){const{keyCode:t}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE)return!0;if(e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY)return!0;if(e>=n.A&&e<=n.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.A=n},81192:function(e,t,n){"use strict";n.d(t,{$D:function(){return g},Ej:function(){return m},fp:function(){return p},jT:function(){return v},lr:function(){return A}});n(44114),n(18111),n(13579);var r=n(41034),i=n(51137),o=n(56768),a=n(45130),s=n(43277),l=n(36504),c=n(55107),u=n(82978),d=n(6448),h=n(38961);const f=e=>{const t=document.createDocumentFragment();let n=(0,i.A)((0,i.A)({},(0,c.A)(e,["parentContext","appContext"])),{close:g,open:!0}),f=null;function p(){f&&((0,a.XX)(null,t),f=null);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];const o=r.some(e=>e&&e.triggerCancel);e.onCancel&&o&&e.onCancel(()=>{},...r.slice(1));for(let e=0;e<h.A.length;e++){const t=h.A[e];if(t===g){h.A.splice(e,1);break}}}function g(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];n=(0,i.A)((0,i.A)({},n),{open:!1,afterClose:()=>{"function"===typeof e.afterClose&&e.afterClose(),p.apply(this,r)}}),n.visible&&delete n.visible,m(n)}function m(e){n="function"===typeof e?e(n):(0,i.A)((0,i.A)({},n),e),f&&(0,u.OJ)(f,n,t)}const v=e=>{const t=l.Vm,n=t.prefixCls,i=e.prefixCls||`${n}-modal`,a=t.iconPrefixCls,c=(0,d.l)();return(0,o.bF)(l.Ay,(0,r.A)((0,r.A)({},t),{},{prefixCls:n}),{default:()=>[(0,o.bF)(s.A,(0,r.A)((0,r.A)({},e),{},{rootPrefixCls:n,prefixCls:i,iconPrefixCls:a,locale:c,cancelText:e.cancelText||c.cancelText}),null)]})};function A(n){const r=(0,o.bF)(v,(0,i.A)({},n));return r.appContext=e.parentContext||e.appContext||r.appContext,(0,a.XX)(r,t),r}return f=A(n),h.A.push(g),{destroy:g,update:m}};function p(e){return(0,i.A)((0,i.A)({},e),{type:"warning"})}function g(e){return(0,i.A)((0,i.A)({},e),{type:"info"})}function m(e){return(0,i.A)((0,i.A)({},e),{type:"success"})}function v(e){return(0,i.A)((0,i.A)({},e),{type:"error"})}function A(e){return(0,i.A)((0,i.A)({},e),{type:"confirm"})}t.Ay=f},81219:function(e,t,n){function r(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},a={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},s=e.inherit(a,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),l="[0-9]{4}(-[0-9][0-9]){0,2}",c="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",u="(\\.[0-9]*)?",d="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",h={className:"number",begin:"\\b"+l+c+u+d+"\\b"},f={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},p={begin:/\{/,end:/\}/,contains:[f],illegal:"\\n",relevance:0},g={begin:"\\[",end:"\\]",contains:[f],illegal:"\\n",relevance:0},m=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},h,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},p,g,o,a],v=[...m];return v.pop(),v.push(s),f.contains=v,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:m}}n(44114),e.exports=r},81269:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var r=n(41034),i=n(56768),o=n(90144),a=n(81425),s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const l=(0,i.pM)({compatConfig:{MODE:3},props:{disabled:a.A.looseBool,type:a.A.string,value:a.A.any,tag:{type:String,default:"input"},size:a.A.string,onChange:Function,onInput:Function,onBlur:Function,onFocus:Function,onKeydown:Function,onCompositionstart:Function,onCompositionend:Function,onKeyup:Function,onPaste:Function,onMousedown:Function},emits:["change","input","blur","keydown","focus","compositionstart","compositionend","keyup","paste","mousedown"],setup(e,t){let{expose:n}=t;const a=(0,o.IJ)(null),l=()=>{a.value&&a.value.focus()},c=()=>{a.value&&a.value.blur()},u=(e,t,n)=>{var r;null===(r=a.value)||void 0===r||r.setSelectionRange(e,t,n)},d=()=>{var e;null===(e=a.value)||void 0===e||e.select()};return n({focus:l,blur:c,input:a,setSelectionRange:u,select:d,getSelectionStart:()=>{var e;return null===(e=a.value)||void 0===e?void 0:e.selectionStart},getSelectionEnd:()=>{var e;return null===(e=a.value)||void 0===e?void 0:e.selectionEnd},getScrollTop:()=>{var e;return null===(e=a.value)||void 0===e?void 0:e.scrollTop}}),()=>{const{tag:t,value:n}=e,o=s(e,["tag","value"]);return(0,i.bF)(t,(0,r.A)((0,r.A)({},o),{},{ref:a,value:n}),null)}}});var c=l,u=n(1147),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const h=(0,i.pM)({compatConfig:{MODE:3},inheritAttrs:!1,props:{disabled:a.A.looseBool,type:a.A.string,value:a.A.any,lazy:a.A.bool.def(!0),tag:{type:String,default:"input"},size:a.A.string,style:a.A.oneOfType([String,Object]),class:a.A.string},emits:["change","input","blur","keydown","focus","compositionstart","compositionend","keyup","paste","mousedown"],setup(e,t){let{emit:n,attrs:a,expose:s}=t;const l=(0,o.IJ)(null),h=(0,o.KR)(),f=(0,o.KR)(!1);(0,i.wB)([()=>e.value,f],()=>{f.value||(h.value=e.value)},{immediate:!0});const p=e=>{n("change",e)},g=e=>{f.value=!0,e.target.composing=!0,n("compositionstart",e)},m=e=>{f.value=!1,e.target.composing=!1,n("compositionend",e);const t=document.createEvent("HTMLEvents");t.initEvent("input",!0,!0),e.target.dispatchEvent(t),p(e)},v=t=>{f.value&&e.lazy?h.value=t.target.value:n("input",t)},A=e=>{n("blur",e)},b=e=>{n("focus",e)},y=()=>{l.value&&l.value.focus()},w=()=>{l.value&&l.value.blur()},_=e=>{n("keydown",e)},x=e=>{n("keyup",e)},E=(e,t,n)=>{var r;null===(r=l.value)||void 0===r||r.setSelectionRange(e,t,n)},S=()=>{var e;null===(e=l.value)||void 0===e||e.select()};s({focus:y,blur:w,input:(0,i.EW)(()=>{var e;return null===(e=l.value)||void 0===e?void 0:e.input}),setSelectionRange:E,select:S,getSelectionStart:()=>{var e;return null===(e=l.value)||void 0===e?void 0:e.getSelectionStart()},getSelectionEnd:()=>{var e;return null===(e=l.value)||void 0===e?void 0:e.getSelectionEnd()},getScrollTop:()=>{var e;return null===(e=l.value)||void 0===e?void 0:e.getScrollTop()}});const C=e=>{n("mousedown",e)},T=e=>{n("paste",e)},k=(0,i.EW)(()=>e.style&&"string"!==typeof e.style?(0,u.Xf)(e.style):e.style);return()=>{const{style:t,lazy:n}=e,o=d(e,["style","lazy"]);return(0,i.bF)(c,(0,r.A)((0,r.A)((0,r.A)({},o),a),{},{style:k.value,onInput:v,onChange:p,onBlur:A,onFocus:b,ref:l,value:h.value,onCompositionstart:g,onCompositionend:m,onKeyup:x,onKeydown:_,onPaste:T,onMousedown:C}),null)}}});var f=h},81387:function(e,t,n){"use strict";n.d(t,{LA:function(){return le},aE:function(){return it},lq:function(){return st},rd:function(){return at}});n(44114),n(18111),n(81148),n(22489),n(20116),n(7588),n(61701),n(18237),n(13579),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698);var r=n(56768),i=n(90144);
/*!
  * vue-router v4.5.1
  * (c) 2025 Eduardo San Martin Morote
  * @license MIT
  */
const o="undefined"!==typeof document;function a(e){return"object"===typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function s(e){return e.__esModule||"Module"===e[Symbol.toStringTag]||e.default&&a(e.default)}const l=Object.assign;function c(e,t){const n={};for(const r in t){const i=t[r];n[r]=d(i)?i.map(e):e(i)}return n}const u=()=>{},d=Array.isArray;const h=/#/g,f=/&/g,p=/\//g,g=/=/g,m=/\?/g,v=/\+/g,A=/%5B/g,b=/%5D/g,y=/%5E/g,w=/%60/g,_=/%7B/g,x=/%7C/g,E=/%7D/g,S=/%20/g;function C(e){return encodeURI(""+e).replace(x,"|").replace(A,"[").replace(b,"]")}function T(e){return C(e).replace(_,"{").replace(E,"}").replace(y,"^")}function k(e){return C(e).replace(v,"%2B").replace(S,"+").replace(h,"%23").replace(f,"%26").replace(w,"`").replace(_,"{").replace(E,"}").replace(y,"^")}function O(e){return k(e).replace(g,"%3D")}function M(e){return C(e).replace(h,"%23").replace(m,"%3F")}function I(e){return null==e?"":M(e).replace(p,"%2F")}function D(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const N=/\/$/,R=e=>e.replace(N,"");function L(e,t,n="/"){let r,i={},o="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,s>-1?s:t.length),i=e(o)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=Q(null!=r?r:t,n),{fullPath:r+(o&&"?")+o+a,path:r,query:i,hash:D(a)}}function B(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function P(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function F(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&$(t.matched[r],n.matched[i])&&j(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function $(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function j(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!H(e[n],t[n]))return!1;return!0}function H(e,t){return d(e)?U(e,t):d(t)?U(t,e):e===t}function U(e,t){return d(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):1===e.length&&e[0]===t}function Q(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];".."!==i&&"."!==i||r.push("");let o,a,s=n.length-1;for(o=0;o<r.length;o++)if(a=r[o],"."!==a){if(".."!==a)break;s>1&&s--}return n.slice(0,s).join("/")+"/"+r.slice(o).join("/")}const z={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var W,G;(function(e){e["pop"]="pop",e["push"]="push"})(W||(W={})),function(e){e["back"]="back",e["forward"]="forward",e["unknown"]=""}(G||(G={}));function V(e){if(!e)if(o){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),R(e)}const K=/^[^#]+#/;function Y(e,t){return e.replace(K,"#")+t}function q(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const X=()=>({left:window.scrollX,top:window.scrollY});function J(e){let t;if("el"in e){const n=e.el,r="string"===typeof n&&n.startsWith("#");0;const i="string"===typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=q(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function Z(e,t){const n=history.state?history.state.position-t:-1;return n+e}const ee=new Map;function te(e,t){ee.set(e,t)}function ne(e){const t=ee.get(e);return ee.delete(e),t}let re=()=>location.protocol+"//"+location.host;function ie(e,t){const{pathname:n,search:r,hash:i}=t,o=e.indexOf("#");if(o>-1){let t=i.includes(e.slice(o))?e.slice(o).length:1,n=i.slice(t);return"/"!==n[0]&&(n="/"+n),P(n,"")}const a=P(n,e);return a+r+i}function oe(e,t,n,r){let i=[],o=[],a=null;const s=({state:o})=>{const s=ie(e,location),l=n.value,c=t.value;let u=0;if(o){if(n.value=s,t.value=o,a&&a===l)return void(a=null);u=c?o.position-c.position:0}else r(s);i.forEach(e=>{e(n.value,l,{delta:u,type:W.pop,direction:u?u>0?G.forward:G.back:G.unknown})})};function c(){a=n.value}function u(e){i.push(e);const t=()=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)};return o.push(t),t}function d(){const{history:e}=window;e.state&&e.replaceState(l({},e.state,{scroll:X()}),"")}function h(){for(const e of o)e();o=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:c,listen:u,destroy:h}}function ae(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?X():null}}function se(e){const{history:t,location:n}=window,r={value:ie(e,n)},i={value:t.state};function o(r,o,a){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+r:re()+e+r;try{t[a?"replaceState":"pushState"](o,"",l),i.value=o}catch(c){console.error(c),n[a?"replace":"assign"](l)}}function a(e,n){const a=l({},t.state,ae(i.value.back,e,i.value.forward,!0),n,{position:i.value.position});o(e,a,!0),r.value=e}function s(e,n){const a=l({},i.value,t.state,{forward:e,scroll:X()});o(a.current,a,!0);const s=l({},ae(r.value,e,null),{position:a.position+1},n);o(e,s,!1),r.value=e}return i.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:i,push:s,replace:a}}function le(e){e=V(e);const t=se(e),n=oe(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}const i=l({location:"",base:e,go:r,createHref:Y.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function ce(e){return"string"===typeof e||e&&"object"===typeof e}function ue(e){return"string"===typeof e||"symbol"===typeof e}const de=Symbol("");var he;(function(e){e[e["aborted"]=4]="aborted",e[e["cancelled"]=8]="cancelled",e[e["duplicated"]=16]="duplicated"})(he||(he={}));function fe(e,t){return l(new Error,{type:e,[de]:!0},t)}function pe(e,t){return e instanceof Error&&de in e&&(null==t||!!(e.type&t))}const ge="[^/]+?",me={sensitive:!1,strict:!1,start:!0,end:!0},ve=/[.+*?^${}()[\]/\\]/g;function Ae(e,t){const n=l({},me,t),r=[];let i=n.start?"^":"";const o=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(i+="/");for(let t=0;t<l.length;t++){const r=l[t];let a=40+(n.sensitive?.25:0);if(0===r.type)t||(i+="/"),i+=r.value.replace(ve,"\\$&"),a+=40;else if(1===r.type){const{value:e,repeatable:n,optional:s,regexp:c}=r;o.push({name:e,repeatable:n,optional:s});const d=c||ge;if(d!==ge){a+=10;try{new RegExp(`(${d})`)}catch(u){throw new Error(`Invalid custom RegExp for param "${e}" (${d}): `+u.message)}}let h=n?`((?:${d})(?:/(?:${d}))*)`:`(${d})`;t||(h=s&&l.length<2?`(?:/${h})`:"/"+h),s&&(h+="?"),i+=h,a+=20,s&&(a+=-8),n&&(a+=-20),".*"===d&&(a+=-50)}e.push(a)}r.push(e)}if(n.strict&&n.end){const e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const a=new RegExp(i,n.sensitive?"":"i");function s(e){const t=e.match(a),n={};if(!t)return null;for(let r=1;r<t.length;r++){const e=t[r]||"",i=o[r-1];n[i.name]=e&&i.repeatable?e.split("/"):e}return n}function c(t){let n="",r=!1;for(const i of e){r&&n.endsWith("/")||(n+="/"),r=!1;for(const e of i)if(0===e.type)n+=e.value;else if(1===e.type){const{value:o,repeatable:a,optional:s}=e,l=o in t?t[o]:"";if(d(l)&&!a)throw new Error(`Provided param "${o}" is an array but it is not repeatable (* or + modifiers)`);const c=d(l)?l.join("/"):l;if(!c){if(!s)throw new Error(`Missing required param "${o}"`);i.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0)}n+=c}}return n||"/"}return{re:a,score:r,keys:o,parse:s,stringify:c}}function be(e,t){let n=0;while(n<e.length&&n<t.length){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function ye(e,t){let n=0;const r=e.score,i=t.score;while(n<r.length&&n<i.length){const e=be(r[n],i[n]);if(e)return e;n++}if(1===Math.abs(i.length-r.length)){if(we(r))return 1;if(we(i))return-1}return i.length-r.length}function we(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const _e={type:0,value:""},xe=/[a-zA-Z0-9_]/;function Ee(e){if(!e)return[[]];if("/"===e)return[[_e]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${c}": ${e}`)}let n=0,r=n;const i=[];let o;function a(){o&&i.push(o),o=[]}let s,l=0,c="",u="";function d(){c&&(0===n?o.push({type:0,value:c}):1===n||2===n||3===n?(o.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),c="")}function h(){c+=s}while(l<e.length)if(s=e[l++],"\\"!==s||2===n)switch(n){case 0:"/"===s?(c&&d(),a()):":"===s?(d(),n=1):h();break;case 4:h(),n=r;break;case 1:"("===s?n=2:xe.test(s)?h():(d(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--);break;case 2:")"===s?"\\"==u[u.length-1]?u=u.slice(0,-1)+s:n=3:u+=s;break;case 3:d(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--,u="";break;default:t("Unknown state");break}else r=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${c}"`),d(),a(),i}function Se(e,t,n){const r=Ae(Ee(e.path),n);const i=l(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf===!t.record.aliasOf&&t.children.push(i),i}function Ce(e,t){const n=[],r=new Map;function i(e){return r.get(e)}function o(e,n,r){const i=!r,s=ke(e);s.aliasOf=r&&r.record;const d=De(t,e),h=[s];if("alias"in e){const t="string"===typeof e.alias?[e.alias]:e.alias;for(const e of t)h.push(ke(l({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let f,p;for(const t of h){const{path:l}=t;if(n&&"/"!==l[0]){const e=n.record.path,r="/"===e[e.length-1]?"":"/";t.path=n.record.path+(l&&r+l)}if(f=Se(t,n,d),r?r.alias.push(f):(p=p||f,p!==f&&p.alias.push(f),i&&e.name&&!Me(f)&&a(e.name)),Le(f)&&c(f),s.children){const e=s.children;for(let t=0;t<e.length;t++)o(e[t],f,r&&r.children[t])}r=r||f}return p?()=>{a(p)}:u}function a(e){if(ue(e)){const t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(a),t.alias.forEach(a))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(a),e.alias.forEach(a))}}function s(){return n}function c(e){const t=Ne(e,n);n.splice(t,0,e),e.record.name&&!Me(e)&&r.set(e.record.name,e)}function d(e,t){let i,o,a,s={};if("name"in e&&e.name){if(i=r.get(e.name),!i)throw fe(1,{location:e});0,a=i.record.name,s=l(Te(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Te(e.params,i.keys.map(e=>e.name))),o=i.stringify(s)}else if(null!=e.path)o=e.path,i=n.find(e=>e.re.test(o)),i&&(s=i.parse(o),a=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw fe(1,{location:e,currentLocation:t});a=i.record.name,s=l({},t.params,e.params),o=i.stringify(s)}const c=[];let u=i;while(u)c.unshift(u.record),u=u.parent;return{name:a,path:o,params:s,matched:c,meta:Ie(c)}}function h(){n.length=0,r.clear()}return t=De({strict:!1,end:!0,sensitive:!1},t),e.forEach(e=>o(e)),{addRoute:o,resolve:d,removeRoute:a,clearRoutes:h,getRoutes:s,getRecordMatcher:i}}function Te(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ke(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Oe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Oe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="object"===typeof n?n[r]:n;return t}function Me(e){while(e){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ie(e){return e.reduce((e,t)=>l(e,t.meta),{})}function De(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Ne(e,t){let n=0,r=t.length;while(n!==r){const i=n+r>>1,o=ye(e,t[i]);o<0?r=i:n=i+1}const i=Re(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Re(e){let t=e;while(t=t.parent)if(Le(t)&&0===ye(e,t))return t}function Le({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Be(e){const t={};if(""===e||"?"===e)return t;const n="?"===e[0],r=(n?e.slice(1):e).split("&");for(let i=0;i<r.length;++i){const e=r[i].replace(v," "),n=e.indexOf("="),o=D(n<0?e:e.slice(0,n)),a=n<0?null:D(e.slice(n+1));if(o in t){let e=t[o];d(e)||(e=t[o]=[e]),e.push(a)}else t[o]=a}return t}function Pe(e){let t="";for(let n in e){const r=e[n];if(n=O(n),null==r){void 0!==r&&(t+=(t.length?"&":"")+n);continue}const i=d(r)?r.map(e=>e&&k(e)):[r&&k(r)];i.forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})}return t}function Fe(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=d(r)?r.map(e=>null==e?null:""+e):null==r?r:""+r)}return t}const $e=Symbol(""),je=Symbol(""),He=Symbol(""),Ue=Symbol(""),Qe=Symbol("");function ze(){let e=[];function t(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function We(e,t,n,r,i,o=e=>e()){const a=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const c=e=>{!1===e?l(fe(4,{from:n,to:t})):e instanceof Error?l(e):ce(e)?l(fe(2,{from:t,to:e})):(a&&r.enterCallbacks[i]===a&&"function"===typeof e&&a.push(e),s())},u=o(()=>e.call(r&&r.instances[i],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(e=>l(e))})}function Ge(e,t,n,r,i=e=>e()){const o=[];for(const l of e){0;for(const e in l.components){let c=l.components[e];if("beforeRouteEnter"===t||l.instances[e])if(a(c)){const a=c.__vccOpts||c,s=a[t];s&&o.push(We(s,n,r,l,e,i))}else{let a=c();0,o.push(()=>a.then(o=>{if(!o)throw new Error(`Couldn't resolve component "${e}" at "${l.path}"`);const a=s(o)?o.default:o;l.mods[e]=o,l.components[e]=a;const c=a.__vccOpts||a,u=c[t];return u&&We(u,n,r,l,e,i)()}))}}}return o}function Ve(e){const t=(0,r.WQ)(He),n=(0,r.WQ)(Ue);const o=(0,r.EW)(()=>{const n=(0,i.R1)(e.to);return t.resolve(n)}),a=(0,r.EW)(()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const a=i.findIndex($.bind(null,r));if(a>-1)return a;const s=Ze(e[t-2]);return t>1&&Ze(r)===s&&i[i.length-1].path!==s?i.findIndex($.bind(null,e[t-2])):a}),s=(0,r.EW)(()=>a.value>-1&&Je(n.params,o.value.params)),l=(0,r.EW)(()=>a.value>-1&&a.value===n.matched.length-1&&j(n.params,o.value.params));function c(n={}){if(Xe(n)){const n=t[(0,i.R1)(e.replace)?"replace":"push"]((0,i.R1)(e.to)).catch(u);return e.viewTransition&&"undefined"!==typeof document&&"startViewTransition"in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:o,href:(0,r.EW)(()=>o.value.href),isActive:s,isExactActive:l,navigate:c}}function Ke(e){return 1===e.length?e[0]:e}const Ye=(0,r.pM)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Ve,setup(e,{slots:t}){const n=(0,i.Kh)(Ve(e)),{options:o}=(0,r.WQ)(He),a=(0,r.EW)(()=>({[et(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[et(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&Ke(t.default(n));return e.custom?i:(0,r.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},i)}}}),qe=Ye;function Xe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Je(e,t){for(const n in t){const r=t[n],i=e[n];if("string"===typeof r){if(r!==i)return!1}else if(!d(i)||i.length!==r.length||r.some((e,t)=>e!==i[t]))return!1}return!0}function Ze(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const et=(e,t,n)=>null!=e?e:null!=t?t:n,tt=(0,r.pM)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=(0,r.WQ)(Qe),a=(0,r.EW)(()=>e.route||o.value),s=(0,r.WQ)(je,0),c=(0,r.EW)(()=>{let e=(0,i.R1)(s);const{matched:t}=a.value;let n;while((n=t[e])&&!n.components)e++;return e}),u=(0,r.EW)(()=>a.value.matched[c.value]);(0,r.Gt)(je,(0,r.EW)(()=>c.value+1)),(0,r.Gt)($e,u),(0,r.Gt)(Qe,a);const d=(0,i.KR)();return(0,r.wB)(()=>[d.value,u.value,e.name],([e,t,n],[r,i,o])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&$(t,i)&&r||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const i=a.value,o=e.name,s=u.value,c=s&&s.components[o];if(!c)return nt(n.default,{Component:c,route:i});const h=s.props[o],f=h?!0===h?i.params:"function"===typeof h?h(i):h:null,p=e=>{e.component.isUnmounted&&(s.instances[o]=null)},g=(0,r.h)(c,l({},f,t,{onVnodeUnmounted:p,ref:d}));return nt(n.default,{Component:g,route:i})||g}}});function nt(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const rt=tt;function it(e){const t=Ce(e.routes,e),n=e.parseQuery||Be,a=e.stringifyQuery||Pe,s=e.history;const h=ze(),f=ze(),p=ze(),g=(0,i.IJ)(z);let m=z;o&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const v=c.bind(null,e=>""+e),A=c.bind(null,I),b=c.bind(null,D);function y(e,n){let r,i;return ue(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function w(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function _(){return t.getRoutes().map(e=>e.record)}function x(e){return!!t.getRecordMatcher(e)}function E(e,r){if(r=l({},r||g.value),"string"===typeof e){const i=L(n,e,r.path),o=t.resolve({path:i.path},r),a=s.createHref(i.fullPath);return l(i,o,{params:b(o.params),hash:D(i.hash),redirectedFrom:void 0,href:a})}let i;if(null!=e.path)i=l({},e,{path:L(n,e.path,r.path).path});else{const t=l({},e.params);for(const e in t)null==t[e]&&delete t[e];i=l({},e,{params:A(t)}),r.params=A(r.params)}const o=t.resolve(i,r),c=e.hash||"";o.params=v(b(o.params));const u=B(a,l({},e,{hash:T(c),path:o.path})),d=s.createHref(u);return l({fullPath:u,hash:c,query:a===Pe?Fe(e.query):e.query||{}},o,{redirectedFrom:void 0,href:d})}function S(e){return"string"===typeof e?L(n,e,g.value.path):l({},e)}function C(e,t){if(m!==e)return fe(8,{from:t,to:e})}function k(e){return N(e)}function O(e){return k(l(S(e),{replace:!0}))}function M(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let r="function"===typeof n?n(e):n;return"string"===typeof r&&(r=r.includes("?")||r.includes("#")?r=S(r):{path:r},r.params={}),l({query:e.query,hash:e.hash,params:null!=r.path?{}:e.params},r)}}function N(e,t){const n=m=E(e),r=g.value,i=e.state,o=e.force,s=!0===e.replace,c=M(n);if(c)return N(l(S(c),{state:"object"===typeof c?l({},i,c.state):i,force:o,replace:s}),t||n);const u=n;let d;return u.redirectedFrom=t,!o&&F(a,r,n)&&(d=fe(16,{to:u,from:r}),re(r,r,!0,!1)),(d?Promise.resolve(d):$(u,r)).catch(e=>pe(e)?pe(e,2)?e:ee(e):Y(e,u,r)).then(e=>{if(e){if(pe(e,2))return N(l({replace:s},S(e.to),{state:"object"===typeof e.to?l({},i,e.to.state):i,force:o}),t||u)}else e=H(u,r,!0,s,i);return j(u,r,e),e})}function R(e,t){const n=C(e,t);return n?Promise.reject(n):Promise.resolve()}function P(e){const t=ae.values().next().value;return t&&"function"===typeof t.runWithContext?t.runWithContext(e):e()}function $(e,t){let n;const[r,i,o]=ot(e,t);n=Ge(r.reverse(),"beforeRouteLeave",e,t);for(const s of r)s.leaveGuards.forEach(r=>{n.push(We(r,e,t))});const a=R.bind(null,e,t);return n.push(a),le(n).then(()=>{n=[];for(const r of h.list())n.push(We(r,e,t));return n.push(a),le(n)}).then(()=>{n=Ge(i,"beforeRouteUpdate",e,t);for(const r of i)r.updateGuards.forEach(r=>{n.push(We(r,e,t))});return n.push(a),le(n)}).then(()=>{n=[];for(const r of o)if(r.beforeEnter)if(d(r.beforeEnter))for(const i of r.beforeEnter)n.push(We(i,e,t));else n.push(We(r.beforeEnter,e,t));return n.push(a),le(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Ge(o,"beforeRouteEnter",e,t,P),n.push(a),le(n))).then(()=>{n=[];for(const r of f.list())n.push(We(r,e,t));return n.push(a),le(n)}).catch(e=>pe(e,8)?e:Promise.reject(e))}function j(e,t,n){p.list().forEach(r=>P(()=>r(e,t,n)))}function H(e,t,n,r,i){const a=C(e,t);if(a)return a;const c=t===z,u=o?history.state:{};n&&(r||c?s.replace(e.fullPath,l({scroll:c&&u&&u.scroll},i)):s.push(e.fullPath,i)),g.value=e,re(e,t,n,c),ee()}let U;function Q(){U||(U=s.listen((e,t,n)=>{if(!se.listening)return;const r=E(e),i=M(r);if(i)return void N(l(i,{replace:!0,force:!0}),r).catch(u);m=r;const a=g.value;o&&te(Z(a.fullPath,n.delta),X()),$(r,a).catch(e=>pe(e,12)?e:pe(e,2)?(N(l(S(e.to),{force:!0}),r).then(e=>{pe(e,20)&&!n.delta&&n.type===W.pop&&s.go(-1,!1)}).catch(u),Promise.reject()):(n.delta&&s.go(-n.delta,!1),Y(e,r,a))).then(e=>{e=e||H(r,a,!1),e&&(n.delta&&!pe(e,8)?s.go(-n.delta,!1):n.type===W.pop&&pe(e,20)&&s.go(-1,!1)),j(r,a,e)}).catch(u)}))}let G,V=ze(),K=ze();function Y(e,t,n){ee(e);const r=K.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function q(){return G&&g.value!==z?Promise.resolve():new Promise((e,t)=>{V.add([e,t])})}function ee(e){return G||(G=!e,Q(),V.list().forEach(([t,n])=>e?n(e):t()),V.reset()),e}function re(t,n,i,a){const{scrollBehavior:s}=e;if(!o||!s)return Promise.resolve();const l=!i&&ne(Z(t.fullPath,0))||(a||!i)&&history.state&&history.state.scroll||null;return(0,r.dY)().then(()=>s(t,n,l)).then(e=>e&&J(e)).catch(e=>Y(e,t,n))}const ie=e=>s.go(e);let oe;const ae=new Set,se={currentRoute:g,listening:!0,addRoute:y,removeRoute:w,clearRoutes:t.clearRoutes,hasRoute:x,getRoutes:_,resolve:E,options:e,push:k,replace:O,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:h.add,beforeResolve:f.add,afterEach:p.add,onError:K.add,isReady:q,install(e){const t=this;e.component("RouterLink",qe),e.component("RouterView",rt),e.config.globalProperties.$router=t,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,i.R1)(g)}),o&&!oe&&g.value===z&&(oe=!0,k(s.location).catch(e=>{0}));const n={};for(const i in z)Object.defineProperty(n,i,{get:()=>g.value[i],enumerable:!0});e.provide(He,t),e.provide(Ue,(0,i.Gc)(n)),e.provide(Qe,g);const r=e.unmount;ae.add(e),e.unmount=function(){ae.delete(e),ae.size<1&&(m=z,U&&U(),U=null,g.value=z,oe=!1,G=!1),r()}}};function le(e){return e.reduce((e,t)=>e.then(()=>P(t)),Promise.resolve())}return se}function ot(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;a<o;a++){const o=t.matched[a];o&&(e.matched.find(e=>$(e,o))?r.push(o):n.push(o));const s=e.matched[a];s&&(t.matched.find(e=>$(e,s))||i.push(s))}return[n,r,i]}function at(){return(0,r.WQ)(He)}function st(e){return(0,r.WQ)(Ue)}},81425:function(e,t,n){"use strict";n.d(t,{A:function(){return K}});n(44114),n(18111),n(81148),n(22489),n(7588),n(61701),n(18237),n(13579);function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function s(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}function l(e){return 1==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t))&&"[object Object]"===Object.prototype.toString.call(e);var t}var c=Object.prototype,u=c.toString,d=c.hasOwnProperty,h=/^\s*function (\w+)/;function f(e){var t,n=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(n){var r=n.toString().match(h);return r?r[1]:""}return""}var p=function(e){var t,n;return!1!==l(e)&&"function"==typeof(t=e.constructor)&&!1!==l(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")},g=function(e){return e},m=g,v=function(e,t){return d.call(e,t)},A=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},b=Array.isArray||function(e){return"[object Array]"===u.call(e)},y=function(e){return"[object Function]"===u.call(e)},w=function(e){return p(e)&&v(e,"_vueTypes_name")},_=function(e){return p(e)&&(v(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return v(e,t)}))};function x(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function E(e,t,n){var r;void 0===n&&(n=!1);var i=!0,o="";r=p(e)?e:{type:e};var a=w(r)?r._vueTypes_name+" - ":"";if(_(r)&&null!==r.type){if(void 0===r.type||!0===r.type)return i;if(!r.required&&void 0===t)return i;b(r.type)?(i=r.type.some(function(e){return!0===E(e,t,!0)}),o=r.type.map(function(e){return f(e)}).join(" or ")):i="Array"===(o=f(r))?b(t):"Object"===o?p(t):"String"===o||"Number"===o||"Boolean"===o||"Function"===o?function(e){if(null==e)return"";var t=e.constructor.toString().match(h);return t?t[1]:""}(t)===o:t instanceof r.type}if(!i){var s=a+'value "'+t+'" should be of type "'+o+'"';return!1===n?(m(s),!1):s}if(v(r,"validator")&&y(r.validator)){var l=m,c=[];if(m=function(e){c.push(e)},i=r.validator(t),m=l,!i){var u=(c.length>1?"* ":"")+c.join("\n* ");return c.length=0,!1===n?(m(u),i):u}}return i}function S(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(e){return void 0!==e||this.default?y(e)||!0===E(this,e,!0)?(this.default=b(e)?function(){return[].concat(e)}:p(e)?function(){return Object.assign({},e)}:e,this):(m(this._vueTypes_name+' - invalid default value: "'+e+'"'),this):this}}}),r=n.validator;return y(r)&&(n.validator=x(r,n)),n}function C(e,t){var n=S(e,t);return Object.defineProperty(n,"validate",{value:function(e){return y(this.validator)&&m(this._vueTypes_name+" - calling .validate() will overwrite the current custom validator function. Validator info:\n"+JSON.stringify(this)),this.validator=x(e,this),this}})}function T(e,t,n){var r,i,o=(r=t,i={},Object.getOwnPropertyNames(r).forEach(function(e){i[e]=Object.getOwnPropertyDescriptor(r,e)}),Object.defineProperties({},i));if(o._vueTypes_name=e,!p(n))return o;var a,l,c=n.validator,u=s(n,["validator"]);if(y(c)){var d=o.validator;d&&(d=null!==(l=(a=d).__original)&&void 0!==l?l:a),o.validator=x(d?function(e){return d.call(this,e)&&c.call(this,e)}:c,o)}return Object.assign(o,u)}function k(e){return e.replace(/^(?!\s*$)/gm,"  ")}var O=function(){return C("any",{})},M=function(){return C("function",{type:Function})},I=function(){return C("boolean",{type:Boolean})},D=function(){return C("string",{type:String})},N=function(){return C("number",{type:Number})},R=function(){return C("array",{type:Array})},L=function(){return C("object",{type:Object})},B=function(){return S("integer",{type:Number,validator:function(e){return A(e)}})},P=function(){return S("symbol",{validator:function(e){return"symbol"==typeof e}})};function F(e,t){if(void 0===t&&(t="custom validation failed"),"function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return S(e.name||"<<anonymous function>>",{validator:function(n){var r=e(n);return r||m(this._vueTypes_name+" - "+t),r}})}function $(e){if(!b(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce(function(e,t){if(null!=t){var n=t.constructor;-1===e.indexOf(n)&&e.push(n)}return e},[]);return S("oneOf",{type:n.length>0?n:void 0,validator:function(n){var r=-1!==e.indexOf(n);return r||m(t),r}})}function j(e){if(!b(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],r=0;r<e.length;r+=1){var i=e[r];if(_(i)){if(w(i)&&"oneOf"===i._vueTypes_name){n=n.concat(i.type);continue}if(y(i.validator)&&(t=!0),!0!==i.type&&i.type){n=n.concat(i.type);continue}}n.push(i)}return n=n.filter(function(e,t){return n.indexOf(e)===t}),S("oneOfType",t?{type:n,validator:function(t){var n=[],r=e.some(function(e){var r=E(w(e)&&"oneOf"===e._vueTypes_name?e.type||null:e,t,!0);return"string"==typeof r&&n.push(r),!0===r});return r||m("oneOfType - provided value does not match any of the "+n.length+" passed-in validators:\n"+k(n.join("\n"))),r}}:{type:n})}function H(e){return S("arrayOf",{type:Array,validator:function(t){var n,r=t.every(function(t){return!0===(n=E(e,t,!0))});return r||m("arrayOf - value validation error:\n"+k(n)),r}})}function U(e){return S("instanceOf",{type:e})}function Q(e){return S("objectOf",{type:Object,validator:function(t){var n,r=Object.keys(t).every(function(r){return!0===(n=E(e,t[r],!0))});return r||m("objectOf - value validation error:\n"+k(n)),r}})}function z(e){var t=Object.keys(e),n=t.filter(function(t){var n;return!!(null===(n=e[t])||void 0===n?void 0:n.required)}),r=S("shape",{type:Object,validator:function(r){var i=this;if(!p(r))return!1;var o=Object.keys(r);if(n.length>0&&n.some(function(e){return-1===o.indexOf(e)})){var a=n.filter(function(e){return-1===o.indexOf(e)});return m(1===a.length?'shape - required property "'+a[0]+'" is not defined.':'shape - required properties "'+a.join('", "')+'" are not defined.'),!1}return o.every(function(n){if(-1===t.indexOf(n))return!0===i._vueTypes_isLoose||(m('shape - shape definition does not include a "'+n+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var o=E(e[n],r[n],!0);return"string"==typeof o&&m('shape - "'+n+'" property validation error:\n '+k(o)),!0===o})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var W=function(){function e(){}return e.extend=function(e){var t=this;if(b(e))return e.forEach(function(e){return t.extend(e)}),this;var n=e.name,r=e.validate,i=void 0!==r&&r,o=e.getter,a=void 0!==o&&o,l=s(e,["name","validate","getter"]);if(v(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var c,u=l.type;return w(u)?(delete l.type,Object.defineProperty(this,n,a?{get:function(){return T(n,u,l)}}:{value:function(){var e,t=T(n,u,l);return t.validator&&(t.validator=(e=t.validator).bind.apply(e,[t].concat([].slice.call(arguments)))),t}})):(c=a?{get:function(){var e=Object.assign({},l);return i?C(n,e):S(n,e)},enumerable:!0}:{value:function(){var e,t,r=Object.assign({},l);return e=i?C(n,r):S(n,r),r.validator&&(e.validator=(t=r.validator).bind.apply(t,[e].concat([].slice.call(arguments)))),e},enumerable:!0},Object.defineProperty(this,n,c))},i(e,null,[{key:"any",get:function(){return O()}},{key:"func",get:function(){return M().def(this.defaults.func)}},{key:"bool",get:function(){return I().def(this.defaults.bool)}},{key:"string",get:function(){return D().def(this.defaults.string)}},{key:"number",get:function(){return N().def(this.defaults.number)}},{key:"array",get:function(){return R().def(this.defaults.array)}},{key:"object",get:function(){return L().def(this.defaults.object)}},{key:"integer",get:function(){return B().def(this.defaults.integer)}},{key:"symbol",get:function(){return P()}}]),e}();function G(e){var t;return void 0===e&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(t){function n(){return t.apply(this,arguments)||this}return a(n,t),i(n,null,[{key:"sensibleDefaults",get:function(){return o({},this.defaults)},set:function(t){this.defaults=!1!==t?o({},!0!==t?t:e):{}}}]),n}(W)).defaults=o({},e),t}W.defaults={},W.custom=F,W.oneOf=$,W.instanceOf=U,W.oneOfType=j,W.arrayOf=H,W.objectOf=Q,W.shape=z,W.utils={validate:function(e,t){return!0===E(t,e,!0)},toType:function(e,t,n){return void 0===n&&(n=!1),n?C(e,t):S(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}a(t,e)})(G());const V=G({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});V.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);var K=V},81449:function(e,t,n){"use strict";n.d(t,{A:function(){return F}});var r=n(12739),i=n(57179),o=1,a=2;function s(e,t,n,s){var l=n.length,c=l,u=!s;if(null==e)return!c;e=Object(e);while(l--){var d=n[l];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}while(++l<c){d=n[l];var h=d[0],f=e[h],p=d[1];if(u&&d[2]){if(void 0===f&&!(h in e))return!1}else{var g=new r.A;if(s)var m=s(f,p,h,e,t,g);if(!(void 0===m?(0,i.A)(p,f,o|a,s,g):m))return!1}}return!0}var l=s,c=n(60168);function u(e){return e===e&&!(0,c.A)(e)}var d=u,h=n(87351);function f(e){var t=(0,h.A)(e),n=t.length;while(n--){var r=t[n],i=e[r];t[n]=[r,i,d(i)]}return t}var p=f;function g(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}var m=g;function v(e){var t=p(e);return 1==t.length&&t[0][2]?m(t[0][0],t[0][1]):function(n){return n===e||l(n,e,t)}}var A=v,b=n(12623);function y(e,t,n){var r=null==e?void 0:(0,b.A)(e,t);return void 0===r?n:r}var w=y,_=n(6865),x=n(71191),E=n(13708),S=1,C=2;function T(e,t){return(0,x.A)(e)&&d(t)?m((0,E.A)(e),t):function(n){var r=w(n,e);return void 0===r&&r===t?(0,_.A)(n,e):(0,i.A)(t,r,S|C)}}var k=T,O=n(69937),M=n(23506);function I(e){return function(t){return null==t?void 0:t[e]}}var D=I;function N(e){return function(t){return(0,b.A)(t,e)}}var R=N;function L(e){return(0,x.A)(e)?D((0,E.A)(e)):R(e)}var B=L;function P(e){return"function"==typeof e?e:null==e?O.A:"object"==typeof e?(0,M.A)(e)?k(e[0],e[1]):A(e):B(e)}var F=P},81566:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(7588);var r=n(51137),i=n(50223);function o(e){return e>=0&&e<=255}function a(e,t){const{r:n,g:r,b:a,a:s}=new i.q(e).toRgb();if(s<1)return e;const{r:l,g:c,b:u}=new i.q(t).toRgb();for(let d=.01;d<=1;d+=.01){const e=Math.round((n-l*(1-d))/d),t=Math.round((r-c*(1-d))/d),s=Math.round((a-u*(1-d))/d);if(o(e)&&o(t)&&o(s))return new i.q({r:e,g:t,b:s,a:Math.round(100*d)/100}).toRgbString()}return new i.q({r:n,g:r,b:a,a:1}).toRgbString()}var s=a,l=n(10734),c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function u(e){const{override:t}=e,n=c(e,["override"]),o=(0,r.A)({},t);Object.keys(l.A).forEach(e=>{delete o[e]});const a=(0,r.A)((0,r.A)({},n),o),u=480,d=576,h=768,f=992,p=1200,g=1600,m=2e3,v=(0,r.A)((0,r.A)((0,r.A)({},a),{colorLink:a.colorInfoText,colorLinkHover:a.colorInfoHover,colorLinkActive:a.colorInfoActive,colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:s(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:s(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:s(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidth:a.lineWidth,controlOutlineWidth:2*a.lineWidth,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:s(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:"\n      0 1px 2px 0 rgba(0, 0, 0, 0.03),\n      0 1px 6px -1px rgba(0, 0, 0, 0.02),\n      0 2px 4px 0 rgba(0, 0, 0, 0.02)\n    ",boxShadowSecondary:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowTertiary:"\n      0 1px 2px 0 rgba(0, 0, 0, 0.03),\n      0 1px 6px -1px rgba(0, 0, 0, 0.02),\n      0 2px 4px 0 rgba(0, 0, 0, 0.02)\n    ",screenXS:u,screenXSMin:u,screenXSMax:d-1,screenSM:d,screenSMMin:d,screenSMMax:h-1,screenMD:h,screenMDMin:h,screenMDMax:f-1,screenLG:f,screenLGMin:f,screenLGMax:p-1,screenXL:p,screenXLMin:p,screenXLMax:g-1,screenXXL:g,screenXXLMin:g,screenXXLMax:m-1,screenXXXL:m,screenXXXLMin:m,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:`\n      0 1px 2px -2px ${new i.q("rgba(0, 0, 0, 0.16)").toRgbString()},\n      0 3px 6px 0 ${new i.q("rgba(0, 0, 0, 0.12)").toRgbString()},\n      0 5px 12px 4px ${new i.q("rgba(0, 0, 0, 0.09)").toRgbString()}\n    `,boxShadowDrawerRight:"\n      -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerLeft:"\n      6px 0 16px 0 rgba(0, 0, 0, 0.08),\n      3px 0 6px -4px rgba(0, 0, 0, 0.12),\n      9px 0 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerUp:"\n      0 6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowDrawerDown:"\n      0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n      0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n      0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n    ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),o);return v}},81735:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},81910:function(e,t,n){const r=n(17195),i=n(79547);function o(e){this.mode=r.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=i.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=o},81934:function(e){function t(e){const t=e.regex,n={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},r=["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"],i={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:r},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},n]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:i.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:i}],relevance:0}],illegal:"[^\\s\\}\\{]"}}e.exports=t},81973:function(e){function t(e){const t="primitive rsc_template",n="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml",r="property rsc_defaults op_defaults",i="params meta operations op rule attributes utilization",o="read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\",a="number string",s="Master Started Slave Stopped start promote demote stop monitor true false";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:i+" "+o+" "+a,literal:s},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:t,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+n.split(" ").join("|")+")\\s+",keywords:n,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:r,starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"</?",end:"/?>",relevance:0}]}}e.exports=t},81998:function(e,t,n){"use strict";n.d(t,{A:function(){return a}});var r=n(32545);function i(e,t,n,r){const i=n-t;return e/=r/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}var o=n(9761);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=()=>window,callback:a,duration:s=450}=t,l=n(),c=(0,o.A)(l,!0),u=Date.now(),d=()=>{const t=Date.now(),n=t-u,h=i(n>s?s:n,c,e,s);(0,o.l)(l)?l.scrollTo(window.scrollX,h):l instanceof Document?l.documentElement.scrollTop=h:l.scrollTop=h,n<s?(0,r.A)(d):"function"===typeof a&&a()};(0,r.A)(d)}},82233:function(){},82334:function(e){function t(e){const t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),o={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},a="([ui](8|16|32|64|128|size)|f(32|64))?",s=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],l=["true","false","Some","None","Ok","Err"],c=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],u=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:u,keyword:s,literal:l,built_in:c},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+a},{begin:"\\b0o([0-7_]+)"+a},{begin:"\\b0x([A-Fa-f0-9_]+)"+a},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+a}],relevance:0},{begin:[/fn/,/\s+/,r],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:c,type:u}},{className:"punctuation",begin:"->"},o]}}e.exports=t},82839:function(e,t,n){"use strict";var r=n(44576),i=r.navigator,o=i&&i.userAgent;e.exports=o?String(o):""},82890:function(e,t,n){"use strict";n.d(t,{Ay:function(){return I}});n(18111),n(20116);var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(44832),l=n(81425),c=n(53627),u=n(28646),d=n(60674),h=n(95572),f=n(88839),p=n(90112),g=n(9519),m=n(36068);const v=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:a,containerSize:s,containerSizeLG:l,containerSizeSM:c,textFontSize:u,textFontSizeLG:d,textFontSizeSM:h,borderRadius:f,borderRadiusLG:p,borderRadiusSM:g,lineWidth:v,lineType:A}=e,b=(e,t,i)=>({width:e,height:e,lineHeight:e-2*v+"px",borderRadius:"50%",[`&${n}-square`]:{borderRadius:i},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:t,[`> ${r}`]:{margin:0}}});return{[n]:(0,i.A)((0,i.A)((0,i.A)((0,i.A)({},(0,m.dF)(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${v}px ${A} transparent`,["&-image"]:{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),b(s,u,f)),{["&-lg"]:(0,i.A)({},b(l,d,p)),["&-sm"]:(0,i.A)({},b(c,h,g)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},A=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:i}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},["> *:not(:first-child)"]:{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}};var b=(0,p.A)("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=(0,g.h1)(e,{avatarBg:n,avatarColor:t});return[v(r),A(r)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:i,fontSizeLG:o,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((o+a)/2),textFontSizeLG:s,textFontSizeSM:i,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}});const y=Symbol("AvatarContextKey"),w=()=>(0,o.WQ)(y,{}),_=e=>(0,o.Gt)(y,e),x=()=>({prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:l.A.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}),E=(0,o.pM)({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:x(),slots:Object,setup(e,t){let{slots:n,attrs:l}=t;const p=(0,a.IJ)(!0),g=(0,a.IJ)(!1),m=(0,a.IJ)(1),v=(0,a.IJ)(null),A=(0,a.IJ)(null),{prefixCls:y}=(0,d.A)("avatar",e),[_,x]=b(y),E=w(),S=(0,o.EW)(()=>"default"===e.size?E.size:e.size),C=(0,c.A)(),T=(0,f.A)(()=>{if("object"!==typeof e.size)return;const t=u.y.find(e=>C.value[e]),n=e.size[t];return n}),k=e=>T.value?{width:`${T.value}px`,height:`${T.value}px`,lineHeight:`${T.value}px`,fontSize:(e?T.value/2:18)+"px"}:{},O=()=>{if(!v.value||!A.value)return;const t=v.value.offsetWidth,n=A.value.offsetWidth;if(0!==t&&0!==n){const{gap:r=4}=e;2*r<n&&(m.value=n-2*r<t?(n-2*r)/t:1)}},M=()=>{const{loadError:t}=e,n=null===t||void 0===t?void 0:t();!1!==n&&(p.value=!1)};return(0,o.wB)(()=>e.src,()=>{(0,o.dY)(()=>{p.value=!0,m.value=1})}),(0,o.wB)(()=>e.gap,()=>{(0,o.dY)(()=>{O()})}),(0,o.sV)(()=>{(0,o.dY)(()=>{O(),g.value=!0})}),()=>{var t,a;const{shape:c,src:u,alt:d,srcset:f,draggable:b,crossOrigin:w}=e,C=null!==(t=E.shape)&&void 0!==t?t:c,T=(0,s.rU)(n,e,"icon"),I=y.value,D={[`${l.class}`]:!!l.class,[I]:!0,[`${I}-lg`]:"large"===S.value,[`${I}-sm`]:"small"===S.value,[`${I}-${C}`]:!0,[`${I}-image`]:u&&p.value,[`${I}-icon`]:T,[x.value]:!0},N="number"===typeof S.value?{width:`${S.value}px`,height:`${S.value}px`,lineHeight:`${S.value}px`,fontSize:T?S.value/2+"px":"18px"}:{},R=null===(a=n.default)||void 0===a?void 0:a.call(n);let L;if(u&&p.value)L=(0,o.bF)("img",{draggable:b,src:u,srcset:f,onError:M,alt:d,crossorigin:w},null);else if(T)L=T;else if(g.value||1!==m.value){const e=`scale(${m.value}) translateX(-50%)`,t={msTransform:e,WebkitTransform:e,transform:e},n="number"===typeof S.value?{lineHeight:`${S.value}px`}:{};L=(0,o.bF)(h.A,{onResize:O},{default:()=>[(0,o.bF)("span",{class:`${I}-string`,ref:v,style:(0,i.A)((0,i.A)({},n),t)},[R])]})}else L=(0,o.bF)("span",{class:`${I}-string`,ref:v,style:{opacity:0}},[R]);return _((0,o.bF)("span",(0,r.A)((0,r.A)({},l),{},{ref:A,class:D,style:[N,k(!!T),l.style]}),[L]))}}});var S=E,C=(n(44114),n(61701),n(82978)),T=n(91328);const k=()=>({prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"},shape:{type:String,default:"circle"}}),O=(0,o.pM)({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:k(),setup(e,t){let{slots:n,attrs:i}=t;const{prefixCls:a,direction:l}=(0,d.A)("avatar",e),c=(0,o.EW)(()=>`${a.value}-group`),[u,h]=b(a);return(0,o.nT)(()=>{const t={size:e.size,shape:e.shape};_(t)}),()=>{const{maxPopoverPlacement:t="top",maxCount:a,maxStyle:d,maxPopoverTrigger:f="hover",shape:p}=e,g={[c.value]:!0,[`${c.value}-rtl`]:"rtl"===l.value,[`${i.class}`]:!!i.class,[h.value]:!0},m=(0,s.rU)(n,e),v=(0,s.MI)(m).map((e,t)=>(0,C.Ob)(e,{key:`avatar-key-${t}`})),A=v.length;if(a&&a<A){const e=v.slice(0,a),n=v.slice(a,A);return e.push((0,o.bF)(T.A,{key:"avatar-popover-key",content:n,trigger:f,placement:t,overlayClassName:`${c.value}-popover`},{default:()=>[(0,o.bF)(S,{style:d,shape:p},{default:()=>["+"+(A-a)]})]})),u((0,o.bF)("div",(0,r.A)((0,r.A)({},i),{},{class:g,style:i.style}),[e]))}return u((0,o.bF)("div",(0,r.A)((0,r.A)({},i),{},{class:g,style:i.style}),[v]))}}});var M=O;S.Group=M,S.install=function(e){return e.component(S.name,S),e.component(M.name,M),e};var I=S},82978:function(e,t,n){"use strict";n.d(t,{IV:function(){return c},OJ:function(){return u},Ob:function(){return l},QK:function(){return h}});n(18111),n(61701),n(13579);var r=n(51137),i=n(44832),o=n(45130),a=n(56768),s=n(98684);function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=e;if(Array.isArray(e)&&(l=(0,i.Gk)(e)[0]),!l)return null;const c=(0,a.E3)(l,t,o);return c.props=n?(0,r.A)((0,r.A)({},c.props),t):c.props,(0,s.Ay)("object"!==typeof c.props.class,"class must be string"),c}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(e))return e.map(e=>c(e,t,n,r));{if(!(0,a.vv)(e))return e;const i=l(e,t,n,r);return Array.isArray(i.children)&&(i.children=c(i.children)),i}}function u(e,t,n){(0,o.XX)((0,a.E3)(e,(0,r.A)({},t)),n)}const d=e=>(e||[]).some(e=>!(0,a.vv)(e)||e.type!==a.Mw&&!(e.type===a.FK&&!d(e.children)))?e:null;function h(e,t,n,r){var i;const o=null===(i=e[t])||void 0===i?void 0:i.call(e,n);return d(o)?o:null===r||void 0===r?void 0:r()}},83048:function(e){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},83110:function(e,t){"use strict";var n=Object.prototype;function r(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||n;return e===r}t.A=r},83178:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="PaperClipOutlined",c.inheritAttrs=!1;var u=c},83313:function(e,t,n){"use strict";n.d(t,{A:function(){return M}});var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(49974),l=n(95572),c=n(86136),u=n(44678),d=(n(44114),n(18111),n(22489),n(20116),n(7588),n(13579),n(93631)),h=n(62573);function f(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function p(e,t,n){if(void 0!==n&&t.top>e.top-n)return`${n+t.top}px`}function g(e,t,n){if(void 0!==n&&t.bottom<e.bottom+n){const e=window.innerHeight-t.bottom;return`${n+e}px`}}const m=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];let v=[];function A(e,t){if(!e)return;let n=v.find(t=>t.target===e);n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},v.push(n),m.forEach(t=>{n.eventHandlers[t]=(0,d.A)(e,t,()=>{n.affixList.forEach(e=>{const{lazyUpdatePosition:t}=e.exposed;t()},!("touchstart"!==t&&"touchmove"!==t||!h.A)&&{passive:!0})})}))}function b(e){const t=v.find(t=>{const n=t.affixList.some(t=>t===e);return n&&(t.affixList=t.affixList.filter(t=>t!==e)),n});t&&0===t.affixList.length&&(v=v.filter(e=>e!==t),m.forEach(e=>{const n=t.eventHandlers[e];n&&n.remove&&n.remove()}))}var y=n(60674),w=n(55107),_=n(90112),x=n(9519);const E=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var S,C=(0,_.A)("Affix",e=>{const t=(0,x.h1)(e,{zIndexPopup:e.zIndexBase+10});return[E(t)]});function T(){return"undefined"!==typeof window?window:null}(function(e){e[e["None"]=0]="None",e[e["Prepare"]=1]="Prepare"})(S||(S={}));const k=()=>({offsetTop:Number,offsetBottom:Number,target:{type:Function,default:T},prefixCls:String,onChange:Function,onTestUpdatePosition:Function}),O=(0,o.pM)({compatConfig:{MODE:3},name:"AAffix",inheritAttrs:!1,props:k(),setup(e,t){let{slots:n,emit:u,expose:d,attrs:h}=t;const m=(0,a.IJ)(),v=(0,a.IJ)(),_=(0,a.Kh)({affixStyle:void 0,placeholderStyle:void 0,status:S.None,lastAffix:!1,prevTarget:null,timeout:null}),x=(0,o.nI)(),E=(0,o.EW)(()=>void 0===e.offsetBottom&&void 0===e.offsetTop?0:e.offsetTop),T=(0,o.EW)(()=>e.offsetBottom),k=()=>{const{status:t,lastAffix:n}=_,{target:r}=e;if(t!==S.Prepare||!v.value||!m.value||!r)return;const o=r();if(!o)return;const a={status:S.None},s=f(m.value);if(0===s.top&&0===s.left&&0===s.width&&0===s.height)return;const l=f(o),c=p(s,l,E.value),d=g(s,l,T.value);if(0!==s.top||0!==s.left||0!==s.width||0!==s.height){if(void 0!==c){const e=`${s.width}px`,t=`${s.height}px`;a.affixStyle={position:"fixed",top:c,width:e,height:t},a.placeholderStyle={width:e,height:t}}else if(void 0!==d){const e=`${s.width}px`,t=`${s.height}px`;a.affixStyle={position:"fixed",bottom:d,width:e,height:t},a.placeholderStyle={width:e,height:t}}a.lastAffix=!!a.affixStyle,n!==a.lastAffix&&u("change",a.lastAffix),(0,i.A)(_,a)}},O=()=>{(0,i.A)(_,{status:S.Prepare,affixStyle:void 0,placeholderStyle:void 0})},M=(0,c.A)(()=>{O()}),I=(0,c.A)(()=>{const{target:t}=e,{affixStyle:n}=_;if(t&&n){const e=t();if(e&&m.value){const t=f(e),r=f(m.value),i=p(r,t,E.value),o=g(r,t,T.value);if(void 0!==i&&n.top===i||void 0!==o&&n.bottom===o)return}}O()});d({updatePosition:M,lazyUpdatePosition:I}),(0,o.wB)(()=>e.target,e=>{const t=(null===e||void 0===e?void 0:e())||null;_.prevTarget!==t&&(b(x),t&&(A(t,x),M()),_.prevTarget=t)}),(0,o.wB)(()=>[e.offsetTop,e.offsetBottom],M),(0,o.sV)(()=>{const{target:t}=e;t&&(_.timeout=setTimeout(()=>{A(t(),x),M()}))}),(0,o.$u)(()=>{k()}),(0,o.hi)(()=>{clearTimeout(_.timeout),b(x),M.cancel(),I.cancel()});const{prefixCls:D}=(0,y.A)("affix",e),[N,R]=C(D);return()=>{var t;const{affixStyle:i,placeholderStyle:a,status:c}=_,u=(0,s.A)({[D.value]:i,[R.value]:!0}),d=(0,w.A)(e,["prefixCls","offsetTop","offsetBottom","target","onChange","onTestUpdatePosition"]);return N((0,o.bF)(l.A,{onResize:M},{default:()=>[(0,o.bF)("div",(0,r.A)((0,r.A)((0,r.A)({},d),h),{},{ref:m,"data-measure-status":c}),[i&&(0,o.bF)("div",{style:a,"aria-hidden":"true"},null),(0,o.bF)("div",{class:u,ref:v,style:i},[null===(t=n.default)||void 0===t?void 0:t.call(n)])])]}))}}});var M=(0,u.GU)(O)},83367:function(e){function t(e){const t="if then else elseif for thru do while unless step in and or not",n="true false unknown inf minf ind und %e %i %pi %phi %gamma",r=" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",i="_ __ %|0 %%|0";return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:t,literal:n,built_in:r,symbol:i},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}e.exports=t},83440:function(e,t,n){"use strict";var r=n(97080),i=n(94402),o=n(89286),a=n(25170),s=n(83789),l=n(38469),c=n(40507),u=i.has,d=i.remove;e.exports=function(e){var t=r(this),n=s(e),i=o(t);return a(t)<=n.size?l(t,function(e){n.includes(e)&&d(i,e)}):c(n.getIterator(),function(e){u(i,e)&&d(i,e)}),i}},83650:function(e,t,n){"use strict";var r=n(97080),i=n(94402),o=n(89286),a=n(83789),s=n(40507),l=i.add,c=i.has,u=i.remove;e.exports=function(e){var t=r(this),n=a(e).getIterator(),i=o(t);return s(n,function(e){c(t,e)?u(i,e):l(i,e)}),i}},83693:function(e,t){const n="[0-9]+",r="[A-Z $%*+\\-./:]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+")(?:.|[\r\n]))+";t.KANJI=new RegExp(i,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(o,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp(r,"g");const a=new RegExp("^"+i+"$"),s=new RegExp("^"+n+"$"),l=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return a.test(e)},t.testNumeric=function(e){return s.test(e)},t.testAlphanumeric=function(e){return l.test(e)}},83752:function(e,t,n){"use strict";n.d(t,{Ay:function(){return A},lP:function(){return u}});n(44114),n(18111),n(20116),n(7588),n(61701);var r=n(42529),i=n(26021),o=n(92357),a=n.n(o),s=n(69566),l=n(61206),c={CONTROLS:"controls",ROOT:"root"},u={ROOT:"root",ROOT_LEFT:"rootLeft",ROOT_RIGHT:"rootRight",ROOT_TOP:"rootTop",CONTROLS_LEFT:"controlsLeft",CONTROLS_RIGTH:"controlsRight",CONTROLS_RIGHT:"controlsRight",CONTROLS_CENTER:"controlsCenter",CONTROLS:"controls"},d={ICON_DISABLE:"xg-icon-disable",ICON_HIDE:"xg-icon-hide"};function h(e){return!!e&&(e.indexOf&&/^(?:http|data:|\/)/.test(e))}function f(e,t){return"object"===(0,r.uk)(e)&&e.class&&"string"===typeof e.class?"".concat(t," ").concat(e.class):t}function p(e,t){return"object"===(0,r.uk)(e)&&e.attr&&"object"===(0,r.uk)(e.attr)&&Object.keys(e.attr).map(function(n){t[n]=e.attr[n]}),t}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=null;if(e instanceof window.Element)return l.Ay.addClass(e,n),Object.keys(r).map(function(t){e.setAttribute(t,r[t])}),e;if(h(e)||h(e.url))return r.src=h(e)?e:e.url||"",o=l.Ay.createDom(e.tag||"img","",r,"xg-img ".concat(n)),o;if("function"===typeof e)try{return o=e(),o instanceof window.Element?(l.Ay.addClass(o,n),Object.keys(r).map(function(e){o.setAttribute(e,r[e])}),o):(s.A.logWarn("warn>>icons.".concat(t," in config of plugin named [").concat(i,"] is a function mast return an Element Object")),null)}catch(a){return s.A.logError("Plugin named [".concat(i,"]:createIcon"),a),null}return"string"===typeof e?l.Ay.createDomFromHtml(e,r,n):(s.A.logWarn("warn>>icons.".concat(t," in config of plugin named [").concat(i,"] is invalid")),null)}function m(e,t){var n=t.config.icons||t.playerConfig.icons;Object.keys(e).map(function(r){var i=e[r],o=i&&i.class?i.class:"",a=i&&i.attr?i.attr:{},s=null;n&&n[r]&&(o=f(n[r],o),a=p(n[r],a),s=g(n[r],r,o,a,t.pluginName)),!s&&i&&(s=g(i.icon?i.icon:i,a,o,{},t.pluginName)),t.icons[r]=s})}function v(e,t){Object.keys(e).map(function(n){Object.defineProperty(t.langText,n,{get:function(){var r=t.lang,i=t.i18n;return i[n]?i[n]:e[n]&&e[n][r]||""}})})}var A=function(e){(0,r.B)(n,e);var t=(0,r.wf)(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.xs)(this,n),e=t.call(this,i),e.__delegates=[],e}return(0,r.j6)(n,[{key:"__init",value:function(e){if((0,r.Jt)((0,r.U6)(n.prototype),"__init",this).call(this,e),e.root){var t=e.root,i=null;this.icons={},this.root=null,this.parent=null,this.extraEls=[];var o=this.registerIcons()||{};m(o,this),this.langText={};var a=this.registerLanguageTexts()||{};v(a,this);var c="";try{c=this.render()}catch(h){throw s.A.logError("Plugin:".concat(this.pluginName,":render"),h),new Error("Plugin:".concat(this.pluginName,":render:").concat(h.message))}if(c)i=n.insert(c,t,e.index),i.setAttribute("data-index",e.index);else{if(!e.tag)return;i=l.Ay.createDom(e.tag,"",e.attr,e.name),i.setAttribute("data-index",e.index),t.appendChild(i)}this.root=i,this.parent=t;var u=this.config.attr||{},d=this.config.style||{};this.setAttr(u),this.setStyle(d),this.config.index&&this.root.setAttribute("data-index",this.config.index),this.__registerChildren()}}},{key:"__registerChildren",value:function(){var e=this;if(this.root){this._children=[];var t=this.children();t&&"object"===(0,r.uk)(t)&&Object.keys(t).length>0&&Object.keys(t).map(function(n){var i,o,a=n,s=t[a],c={root:e.root};"function"===typeof s?(i=e.config[a]||{},o=s):"object"===(0,r.uk)(s)&&"function"===typeof s.plugin&&(i=s.options?l.Ay.deepCopy(e.config[a]||{},s.options):e.config[a]||{},o=s.plugin),c.config=i,void 0!==i.index&&(c.index=i.index),i.root&&(c.root=i.root),e.registerPlugin(o,c,a)})}}},{key:"updateLang",value:function(e){function t(e,n){for(var r=0;r<e.children.length;r++)e.children[r].children.length>0?t(e.children[r],n):n(e.children[r])}e||(e=this.lang);var n=this.root,r=this.i18n,i=this.langText;n&&t(n,function(t){var n=t.getAttribute&&t.getAttribute("lang-key");if(n){var o=r[n.toUpperCase()]||i[n];o&&(t.innerHTML="function"===typeof o?o(e):o)}})}},{key:"lang",get:function(){return this.player.lang}},{key:"changeLangTextKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=this.i18n||{},r=this.langText;e.setAttribute&&e.setAttribute("lang-key",t);var i=n[t]||r[t]||"";i&&(e.innerHTML=i)}},{key:"plugins",value:function(){return this._children}},{key:"disable",value:function(){this.config.disable=!0,l.Ay.addClass(this.find(".xgplayer-icon"),d.ICON_DISABLE)}},{key:"enable",value:function(){this.config.disable=!1,l.Ay.removeClass(this.find(".xgplayer-icon"),d.ICON_DISABLE)}},{key:"children",value:function(){return{}}},{key:"registerPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";t.root=t.root||this.root;var o=(0,r.Jt)((0,r.U6)(n.prototype),"registerPlugin",this).call(this,e,t,i);return this._children.push(o),o}},{key:"registerIcons",value:function(){return{}}},{key:"registerLanguageTexts",value:function(){return{}}},{key:"find",value:function(e){if(this.root)return this.root.querySelector(e)}},{key:"bind",value:function(e,t,r){var i=this;if(arguments.length<3&&"function"===typeof t)Array.isArray(e)?e.forEach(function(e){i.bindEL(e,t)}):this.bindEL(e,t);else{var o=n.delegate.call(this,this.root,e,t,r);this.__delegates=this.__delegates.concat(o)}}},{key:"unbind",value:function(e,t){var n=this;if(arguments.length<3&&"function"===typeof t)Array.isArray(e)?e.forEach(function(e){n.unbindEL(e,t)}):this.unbindEL(e,t);else for(var r="".concat(e,"_").concat(t),i=0;i<this.__delegates.length;i++)if(this.__delegates[i].key===r){this.__delegates[i].destroy(),this.__delegates.splice(i,1);break}}},{key:"setStyle",value:function(e,t){var n=this;if(this.root)return"String"===l.Ay.typeOf(e)?this.root.style[e]=t:void("Object"===l.Ay.typeOf(e)&&Object.keys(e).map(function(t){n.root.style[t]=e[t]}))}},{key:"setAttr",value:function(e,t){var n=this;if(this.root)return"String"===l.Ay.typeOf(e)?this.root.setAttribute(e,t):void("Object"===l.Ay.typeOf(e)&&Object.keys(e).map(function(t){n.root.setAttribute(t,e[t])}))}},{key:"setHtml",value:function(e,t){this.root&&(this.root.innerHTML=e,"function"===typeof t&&t())}},{key:"bindEL",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.root&&"on".concat(e)in this.root&&"function"===typeof t&&this.root.addEventListener(e,t,n)}},{key:"unbindEL",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.root&&"on".concat(e)in this.root&&"function"===typeof t&&this.root.removeEventListener(e,t,n)}},{key:"show",value:function(e){if(this.root){this.root.style.display=void 0!==e?e:"block";var t=window.getComputedStyle(this.root,null),n=t.getPropertyValue("display");return"none"===n?this.root.style.display="block":void 0}}},{key:"hide",value:function(){this.root&&(this.root.style.display="none")}},{key:"appendChild",value:function(e,t){if(!this.root)return null;if(arguments.length<2&&arguments[0]instanceof window.Element)return this.root.appendChild(arguments[0]);if(!t||!(t instanceof window.Element))return null;try{return"string"===typeof e?this.find(e).appendChild(t):e.appendChild(t)}catch(n){return s.A.logError("Plugin:appendChild",n),null}}},{key:"render",value:function(){return""}},{key:"destroy",value:function(){}},{key:"__destroy",value:function(){var e=this,t=this.player;this.__delegates.map(function(e){e.destroy()}),this.__delegates=[],this._children instanceof Array&&(this._children.map(function(e){t.unRegisterPlugin(e.pluginName)}),this._children=null),this.root&&(this.root.hasOwnProperty("remove")?this.root.remove():this.root.parentNode&&this.root.parentNode.removeChild(this.root)),(0,r.Jt)((0,r.U6)(n.prototype),"__destroy",this).call(this),this.icons={},["root","parent"].map(function(t){e[t]=null}),this.extraEls=[]}}],[{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=t.children.length,i=Number(n),o=e instanceof window.Node;if(r){for(var a=0,s=null,l="";a<r;a++){s=t.children[a];var c=Number(s.getAttribute("data-index"));if(c>=i){l="beforebegin";break}c<i&&(l="afterend")}return o?"afterend"===l?t.appendChild(e):t.insertBefore(e,s):s.insertAdjacentHTML(l,e),"afterend"===l?t.children[t.children.length-1]:t.children[a]}return o?t.appendChild(e):t.insertAdjacentHTML("beforeend",e),t.children[t.children.length-1]}},{key:"defaultConfig",get:function(){return{}}},{key:"delegate",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=[];if(e instanceof window.Node&&"function"===typeof r)if(Array.isArray(n))n.forEach(function(n){var s=a()(e,t,n,r,i);s.key="".concat(t,"_").concat(n),o.push(s)});else{var s=a()(e,t,n,r,i);s.key="".concat(t,"_").concat(n),o.push(s)}return o}},{key:"ROOT_TYPES",get:function(){return c}},{key:"POSITIONS",get:function(){return u}}]),n}(i.Ay)},83762:function(e,t,n){function r(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),o=t.concat(/[A-Z]+/,n),a={scope:"variable",match:"\\$+"+r},s={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},l={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},c=e.inherit(e.APOS_STRING_MODE,{illegal:null}),u=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(l)}),d={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(l),"on:begin":(e,t)=>{t.data._beginMatch=e[1]||e[2]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}},h=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),f="[ \t\n]",p={scope:"string",variants:[u,c,d,h]},g={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},m=["false","null","true"],v=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],A=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],b=e=>{const t=[];return e.forEach(e=>{t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())}),t},y={keyword:v,literal:b(m),built_in:A},w=e=>e.map(e=>e.replace(/\|\d+$/,"")),_={variants:[{match:[/new/,t.concat(f,"+"),t.concat("(?!",w(A).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},x=t.concat(r,"\\b(?!\\()"),E={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),x],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),x],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},S={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},C={relevance:0,begin:/\(/,end:/\)/,keywords:y,contains:[S,a,E,e.C_BLOCK_COMMENT_MODE,p,g,_]},T={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",w(v).join("\\b|"),"|",w(A).join("\\b|"),"\\b)"),r,t.concat(f,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[C]};C.contains.push(T);const k=[S,E,e.C_BLOCK_COMMENT_MODE,p,g,_],O={begin:t.concat(/#\[\s*\\?/,t.either(i,o)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:m,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:m,keyword:["new","array"]},contains:["self",...k]},...k,{scope:"meta",variants:[{match:i},{match:o}]}]};return{case_insensitive:!1,keywords:y,contains:[O,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},s,{scope:"variable.language",match:/\$this\b/},a,T,E,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},_,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:y,contains:["self",O,a,E,e.C_BLOCK_COMMENT_MODE,p,g]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},p,g]}}n(44114),n(18111),n(7588),n(61701),e.exports=r},83789:function(e,t,n){"use strict";var r=n(79306),i=n(28551),o=n(69565),a=n(91291),s=n(1767),l="Invalid size",c=RangeError,u=TypeError,d=Math.max,h=function(e,t){this.set=e,this.size=d(t,0),this.has=r(e.has),this.keys=r(e.keys)};h.prototype={getIterator:function(){return s(i(o(this.keys,this.set)))},includes:function(e){return o(this.has,this.set,e)}},e.exports=function(e){i(e);var t=+e.size;if(t!==t)throw new u(l);var n=a(t);if(n<0)throw new c(l);return new h(e,n)}},83800:function(e,t,n){n(44114),n(18111),n(29314),n(22489),n(20116),n(61701),function(t,n){e.exports=n()}(0,function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\/(\d+)/.exec(e),d=u&&+u[1],h=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),g=/PhantomJS/.test(e),m=f&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),A=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=m||/Mac/.test(t),y=/\bCrOS\b/.test(e),w=/win/i.test(t),_=h&&e.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(h=!1,l=!0);var x=b&&(c||h&&(null==_||_<12.11)),E=n||a&&s>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var C,T=function(e,t){var n=e.className,r=S(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function k(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return k(e).appendChild(t)}function M(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function I(e,t,n,r){var i=M(e,t,n,r);return i.setAttribute("role","presentation"),i}function D(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function N(e){var t,n=e.ownerDocument||e;try{t=e.activeElement}catch(r){t=n.body||null}while(t&&t.shadowRoot&&t.shadowRoot.activeElement)t=t.shadowRoot.activeElement;return t}function R(e,t){var n=e.className;S(t).test(n)||(e.className+=(n?" ":"")+t)}function L(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!S(n[r]).test(t)&&(t+=" "+n[r]);return t}C=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(i){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var B=function(e){e.select()};function P(e){return e.display.wrapper.ownerDocument}function F(e){return $(e.display.wrapper)}function $(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function j(e){return P(e).defaultView}function H(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function U(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function Q(e,t,n,r,i){null==t&&(t=e.search(/[^\s\u00a0]/),-1==t&&(t=e.length));for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?B=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(B=function(e){try{e.select()}catch(t){}});var z=function(){this.id=null,this.f=null,this.time=0,this.handler=H(this.onTimeout,this)};function W(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}z.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},z.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var G=50,V={toString:function(){return"CodeMirror.Pass"}},K={scroll:!1},Y={origin:"*mouse"},q={origin:"+move"};function X(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var J=[""];function Z(e){while(J.length<=e)J.push(ee(J)+" ");return J[e]}function ee(e){return e[e.length-1]}function te(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function ne(e,t,n){var r=0,i=n(t);while(r<e.length&&n(e[r])<=i)r++;e.splice(r,0,t)}function re(){}function ie(e,t){var n;return Object.create?n=Object.create(e):(re.prototype=e,n=new re),t&&U(t,n),n}var oe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ae(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||oe.test(e))}function se(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ae(e))||t.test(e):ae(e)}function le(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ce=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ue(e){return e.charCodeAt(0)>=768&&ce.test(e)}function de(e,t,n){while((n<0?t>0:t<e.length)&&ue(e.charAt(t)))t+=n;return t}function he(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function fe(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var pe=null;function ge(e,t,n){var r;pe=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:pe=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:pe=i)}return null!=r?r:pe}var me=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var u=e.length,d=[],h=0;h<u;++h)d.push(n(e.charCodeAt(h)));for(var f=0,p=c;f<u;++f){var g=d[f];"m"==g?d[f]=p:p=g}for(var m=0,v=c;m<u;++m){var A=d[m];"1"==A&&"r"==v?d[m]="n":o.test(A)&&(v=A,"r"==A&&(d[m]="R"))}for(var b=1,y=d[0];b<u-1;++b){var w=d[b];"+"==w&&"1"==y&&"1"==d[b+1]?d[b]="1":","!=w||y!=d[b+1]||"1"!=y&&"n"!=y||(d[b]=y),y=w}for(var _=0;_<u;++_){var x=d[_];if(","==x)d[_]="N";else if("%"==x){var E=void 0;for(E=_+1;E<u&&"%"==d[E];++E);for(var S=_&&"!"==d[_-1]||E<u&&"1"==d[E]?"1":"N",C=_;C<E;++C)d[C]=S;_=E-1}}for(var T=0,k=c;T<u;++T){var O=d[T];"L"==k&&"1"==O?d[T]="L":o.test(O)&&(k=O)}for(var M=0;M<u;++M)if(i.test(d[M])){var I=void 0;for(I=M+1;I<u&&i.test(d[I]);++I);for(var D="L"==(M?d[M-1]:c),N="L"==(I<u?d[I]:c),R=D==N?D?"L":"R":c,L=M;L<I;++L)d[L]=R;M=I-1}for(var B,P=[],F=0;F<u;)if(a.test(d[F])){var $=F;for(++F;F<u&&a.test(d[F]);++F);P.push(new l(0,$,F))}else{var j=F,H=P.length,U="rtl"==t?1:0;for(++F;F<u&&"L"!=d[F];++F);for(var Q=j;Q<F;)if(s.test(d[Q])){j<Q&&(P.splice(H,0,new l(1,j,Q)),H+=U);var z=Q;for(++Q;Q<F&&s.test(d[Q]);++Q);P.splice(H,0,new l(2,z,Q)),H+=U,j=Q}else++Q;j<F&&P.splice(H,0,new l(1,j,F))}return"ltr"==t&&(1==P[0].level&&(B=e.match(/^\s+/))&&(P[0].from=B[0].length,P.unshift(new l(0,0,B[0].length))),1==ee(P).level&&(B=e.match(/\s+$/))&&(ee(P).to-=B[0].length,P.push(new l(0,u-B[0].length,u)))),"rtl"==t?P.reverse():P}}();function ve(e,t){var n=e.order;return null==n&&(n=e.order=me(e.text,t)),n}var Ae=[],be=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||Ae).concat(n)}};function ye(e,t){return e._handlers&&e._handlers[t]||Ae}function we(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=W(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function _e(e,t){var n=ye(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function xe(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),_e(e,n||t.type,e,t),Oe(t)||t.codemirrorIgnore}function Ee(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==W(n,t[r])&&n.push(t[r])}function Se(e,t){return ye(e,t).length>0}function Ce(e){e.prototype.on=function(e,t){be(this,e,t)},e.prototype.off=function(e,t){we(this,e,t)}}function Te(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ke(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Oe(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Me(e){Te(e),ke(e)}function Ie(e){return e.target||e.srcElement}function De(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Ne,Re,Le=function(){if(a&&s<9)return!1;var e=M("div");return"draggable"in e||"dragDrop"in e}();function Be(e){if(null==Ne){var t=M("span","​");O(e,M("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ne=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Ne?M("span","​"):M("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Pe(e){if(null!=Re)return Re;var t=O(e,document.createTextNode("AخA")),n=C(t,0,1).getBoundingClientRect(),r=C(t,1,2).getBoundingClientRect();return k(e),!(!n||n.left==n.right)&&(Re=r.right-n.right<3)}var Fe=3!="\n\nb".split(/\n/).length?function(e){var t=0,n=[],r=e.length;while(t<=r){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},$e=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},je=function(){var e=M("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),He=null;function Ue(e){if(null!=He)return He;var t=O(e,M("span","x")),n=t.getBoundingClientRect(),r=C(t,0,1).getBoundingClientRect();return He=Math.abs(n.left-r.left)>1}var Qe={},ze={};function We(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Qe[e]=t}function Ge(e,t){ze[e]=t}function Ve(e){if("string"==typeof e&&ze.hasOwnProperty(e))e=ze[e];else if(e&&"string"==typeof e.name&&ze.hasOwnProperty(e.name)){var t=ze[e.name];"string"==typeof t&&(t={name:t}),e=ie(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ve("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ve("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ke(e,t){t=Ve(t);var n=Qe[t.name];if(!n)return Ke(e,"text/plain");var r=n(e,t);if(Ye.hasOwnProperty(t.name)){var i=Ye[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ye={};function qe(e,t){var n=Ye.hasOwnProperty(e)?Ye[e]:Ye[e]={};U(t,n)}function Xe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Je(e,t){var n;while(e.innerMode){if(n=e.innerMode(t),!n||n.mode==e)break;t=n.state,e=n.mode}return n||{mode:e,state:t}}function Ze(e,t,n){return!e.startState||e.startState(t,n)}var et=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function tt(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");var n=e;while(!n.lines)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function nt(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i}),r}function rt(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function it(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function ot(e){if(null==e.parent)return null;for(var t=e.parent,n=W(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;;++i){if(r.children[i]==t)break;n+=r.children[i].chunkSize()}return n+t.first}function at(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a],l=s.height;if(t<l)break;t-=l}return n+a}function st(e,t){return t>=e.first&&t<e.first+e.size}function lt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ct(e,t,n){if(void 0===n&&(n=null),!(this instanceof ct))return new ct(e,t,n);this.line=e,this.ch=t,this.sticky=n}function ut(e,t){return e.line-t.line||e.ch-t.ch}function dt(e,t){return e.sticky==t.sticky&&0==ut(e,t)}function ht(e){return ct(e.line,e.ch)}function ft(e,t){return ut(e,t)<0?t:e}function pt(e,t){return ut(e,t)<0?e:t}function gt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function mt(e,t){if(t.line<e.first)return ct(e.first,0);var n=e.first+e.size-1;return t.line>n?ct(n,tt(e,n).text.length):vt(t,tt(e,t.line).text.length)}function vt(e,t){var n=e.ch;return null==n||n>t?ct(e.line,t):n<0?ct(e.line,0):e}function At(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=mt(e,t[r]);return n}et.prototype.eol=function(){return this.pos>=this.string.length},et.prototype.sol=function(){return this.pos==this.lineStart},et.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},et.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},et.prototype.eat=function(e){var t,n=this.string.charAt(this.pos);if(t="string"==typeof e?n==e:n&&(e.test?e.test(n):e(n)),t)return++this.pos,n},et.prototype.eatWhile=function(e){var t=this.pos;while(this.eat(e));return this.pos>t},et.prototype.eatSpace=function(){var e=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>e},et.prototype.skipToEnd=function(){this.pos=this.string.length},et.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},et.prototype.backUp=function(e){this.pos-=e},et.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Q(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Q(this.string,this.lineStart,this.tabSize):0)},et.prototype.indentation=function(){return Q(this.string,null,this.tabSize)-(this.lineStart?Q(this.string,this.lineStart,this.tabSize):0)},et.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e},o=this.string.substr(this.pos,e.length);if(i(o)==i(e))return!1!==t&&(this.pos+=e.length),!0},et.prototype.current=function(){return this.string.slice(this.start,this.pos)},et.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},et.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},et.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var bt=function(e,t){this.state=e,this.lookAhead=t},yt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function wt(e,t,n,r){var i=[e.state.modeGen],o={};Mt(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,c=0;n.state=!0,Mt(e,t.text,s.mode,n,function(e,t){var n=l;while(c<e){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,c=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}},o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function _t(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=xt(e,ot(t)),i=t.text.length>e.options.maxHighlightLength&&Xe(e.doc.mode,r.state),o=wt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function xt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new yt(r,!0,t);var o=It(e,t,n),a=o>r.first&&tt(r,o-1).stateAfter,s=a?yt.fromSaved(r,a,o):new yt(r,Ze(r.mode),o);return r.iter(o,t,function(n){Et(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()}),n&&(r.modeFrontier=s.line),s}function Et(e,t,n,r){var i=e.doc.mode,o=new et(t,e.options.tabSize,n);o.start=o.pos=r||0,""==t&&St(i,n.state);while(!o.eol())Ct(i,o,n.state),o.start=o.pos}function St(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Je(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function Ct(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Je(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}yt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},yt.prototype.baseToken=function(e){if(!this.baseTokens)return null;while(this.baseTokens[this.baseTokenPos]<=e)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},yt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},yt.fromSaved=function(e,t,n){return t instanceof bt?new yt(e,Xe(e.mode,t.state),n,t.lookAhead):new yt(e,Xe(e.mode,t),n)},yt.prototype.save=function(e){var t=!1!==e?Xe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new bt(t,this.maxLookAhead):t};var Tt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function kt(e,t,n,r){var i,o=e.doc,a=o.mode;t=mt(o,t);var s,l=tt(o,t.line),c=xt(e,t.line,n),u=new et(l.text,e.options.tabSize,c);r&&(s=[]);while((r||u.pos<t.ch)&&!u.eol())u.start=u.pos,i=Ct(a,u,c.state),r&&s.push(new Tt(u,i,Xe(o.mode,c.state)));return r?s:new Tt(u,i,c.state)}function Ot(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Mt(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,c=0,u=null,d=new et(t,e.options.tabSize,r),h=e.options.addModeClass&&[null];""==t&&Ot(St(n,r.state),o);while(!d.eol()){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&Et(e,t,r,d.pos),d.pos=t.length,l=null):l=Ot(Ct(n,d,r.state,h),o),h){var f=h[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||u!=l){while(c<d.start)c=Math.min(d.start,c+5e3),i(c,u);u=l}d.start=d.pos}while(c<d.pos){var p=Math.min(d.pos,c+5e3);i(p,u),c=p}}function It(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=tt(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof bt?c.lookAhead:0)<=o.modeFrontier))return s;var u=Q(l.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}function Dt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=tt(e,r).stateAfter;if(i&&(!(i instanceof bt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Nt=!1,Rt=!1;function Lt(){Nt=!0}function Bt(){Rt=!0}function Pt(e,t,n){this.marker=e,this.from=t,this.to=n}function Ft(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function $t(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function jt(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function Ht(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);if(s||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var l=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Pt(a,o.from,l?null:o.to))}}return r}function Ut(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);if(s||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Pt(a,l?null:o.from-t,null==o.to?null:o.to-t))}}return r}function Qt(e,t){if(t.full)return null;var n=st(e,t.from.line)&&tt(e,t.from.line).markedSpans,r=st(e,t.to.line)&&tt(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==ut(t.from,t.to),s=Ht(n,i,a),l=Ut(r,o,a),c=1==t.text.length,u=ee(t.text).length+(c?i:0);if(s)for(var d=0;d<s.length;++d){var h=s[d];if(null==h.to){var f=Ft(l,h.marker);f?c&&(h.to=null==f.to?null:f.to+u):h.to=i}}if(l)for(var p=0;p<l.length;++p){var g=l[p];if(null!=g.to&&(g.to+=u),null==g.from){var m=Ft(s,g.marker);m||(g.from=u,c&&(s||(s=[])).push(g))}else g.from+=u,c&&(s||(s=[])).push(g)}s&&(s=zt(s)),l&&l!=s&&(l=zt(l));var v=[s];if(!c){var A,b=t.text.length-2;if(b>0&&s)for(var y=0;y<s.length;++y)null==s[y].to&&(A||(A=[])).push(new Pt(s[y].marker,null,null));for(var w=0;w<b;++w)v.push(A);v.push(l)}return v}function zt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Wt(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=W(r,n)||(r||(r=[])).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var c=i[l];if(!(ut(c.to,s.from)<0||ut(c.from,s.to)>0)){var u=[l,1],d=ut(c.from,s.from),h=ut(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(h>0||!a.inclusiveRight&&!h)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}function Gt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Vt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Kt(e){return e.inclusiveLeft?-1:0}function Yt(e){return e.inclusiveRight?1:0}function qt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=ut(r.from,i.from)||Kt(e)-Kt(t);if(o)return-o;var a=ut(r.to,i.to)||Yt(e)-Yt(t);return a||t.id-e.id}function Xt(e,t){var n,r=Rt&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)i=r[o],i.marker.collapsed&&null==(t?i.from:i.to)&&(!n||qt(n,i.marker)<0)&&(n=i.marker);return n}function Jt(e){return Xt(e,!0)}function Zt(e){return Xt(e,!1)}function en(e,t){var n,r=Rt&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||qt(n,o.marker)<0)&&(n=o.marker)}return n}function tn(e,t,n,r,i){var o=tt(e,t),a=Rt&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=ut(c.from,n)||Kt(l.marker)-Kt(i),d=ut(c.to,r)||Yt(l.marker)-Yt(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ut(c.to,n)>=0:ut(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ut(c.from,r)<=0:ut(c.from,r)<0)))return!0}}}function nn(e){var t;while(t=Jt(e))e=t.find(-1,!0).line;return e}function rn(e){var t;while(t=Zt(e))e=t.find(1,!0).line;return e}function on(e){var t,n;while(t=Zt(e))e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function an(e,t){var n=tt(e,t),r=nn(n);return n==r?t:ot(r)}function sn(e,t){if(t>e.lastLine())return t;var n,r=tt(e,t);if(!ln(e,r))return t;while(n=Zt(r))r=n.find(1,!0).line;return ot(r)+1}function ln(e,t){var n=Rt&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if(r=n[i],r.marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&cn(e,t,r))return!0}}function cn(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return cn(e,r.line,Ft(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if(i=t.markedSpans[o],i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&cn(e,t,i))return!0}function un(e){e=nn(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;n=o,o=n.parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function dn(e){if(0==e.height)return 0;var t,n=e.text.length,r=e;while(t=Jt(r)){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}r=e;while(t=Zt(r)){var o=t.find(0,!0);n-=r.text.length-o.from.ch,r=o.to.line,n+=r.text.length-o.to.ch}return n}function hn(e){var t=e.display,n=e.doc;t.maxLine=tt(n,n.first),t.maxLineLength=dn(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=dn(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var fn=function(e,t,n){this.text=e,Vt(this,t),this.height=n?n(this):1};function pn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Gt(e),Vt(e,n);var i=r?r(e):1;i!=e.height&&it(e,i)}function gn(e){e.parent=null,Gt(e)}fn.prototype.lineNo=function(){return ot(this)},Ce(fn);var mn={},vn={};function An(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?vn:mn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function bn(e,t){var n=I("span",null,null,l?"padding-right: .1px":null),r={pre:I("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=wn,Pe(e.display.measure)&&(a=ve(o,e.doc.direction))&&(r.addToken=xn(r.addToken,a)),r.map=[];var s=t!=e.display.externalMeasured&&ot(o);Sn(o,r,_t(e,o,s)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=L(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=L(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Be(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var c=r.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return _e(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=L(r.pre.className,r.textClass||"")),r}function yn(e){var t=M("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function wn(e,t,n,r,i,o,l){if(t){var c,u=e.splitSpaces?_n(t,e.trailingSpace):t,d=e.cm.state.specialChars,h=!1;if(d.test(t)){c=document.createDocumentFragment();var f=0;while(1){d.lastIndex=f;var p=d.exec(t),g=p?p.index-f:t.length-f;if(g){var m=document.createTextNode(u.slice(f,f+g));a&&s<9?c.appendChild(M("span",[m])):c.appendChild(m),e.map.push(e.pos,e.pos+g,m),e.col+=g,e.pos+=g}if(!p)break;f+=g+1;var v=void 0;if("\t"==p[0]){var A=e.cm.options.tabSize,b=A-e.col%A;v=c.appendChild(M("span",Z(b),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==p[0]||"\n"==p[0]?(v=c.appendChild(M("span","\r"==p[0]?"␍":"␤","cm-invalidchar")),v.setAttribute("cm-text",p[0]),e.col+=1):(v=e.cm.options.specialCharPlaceholder(p[0]),v.setAttribute("cm-text",p[0]),a&&s<9?c.appendChild(M("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(h=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||h||o||l){var y=n||"";r&&(y+=r),i&&(y+=i);var w=M("span",[c],y,o);if(l)for(var _ in l)l.hasOwnProperty(_)&&"style"!=_&&"class"!=_&&w.setAttribute(_,l[_]);return e.content.appendChild(w)}e.content.appendChild(c)}}function _n(e,t){if(e.length>1&&!/  /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}function xn(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var d=void 0,h=0;h<t.length;h++)if(d=t[h],d.to>c&&d.from<=c)break;if(d.to>=u)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-c),i,o,null,s,l),o=null,r=r.slice(d.to-c),c=d.to}}}function En(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Sn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,c,u,d,h,f=i.length,p=0,g=1,m="",v=0;;){if(v==p){l=c=u=s="",h=null,d=null,v=1/0;for(var A=[],b=void 0,y=0;y<r.length;++y){var w=r[y],_=w.marker;if("bookmark"==_.type&&w.from==p&&_.widgetNode)A.push(_);else if(w.from<=p&&(null==w.to||w.to>p||_.collapsed&&w.to==p&&w.from==p)){if(null!=w.to&&w.to!=p&&v>w.to&&(v=w.to,c=""),_.className&&(l+=" "+_.className),_.css&&(s=(s?s+";":"")+_.css),_.startStyle&&w.from==p&&(u+=" "+_.startStyle),_.endStyle&&w.to==v&&(b||(b=[])).push(_.endStyle,w.to),_.title&&((h||(h={})).title=_.title),_.attributes)for(var x in _.attributes)(h||(h={}))[x]=_.attributes[x];_.collapsed&&(!d||qt(d.marker,_)<0)&&(d=w)}else w.from>p&&v>w.from&&(v=w.from)}if(b)for(var E=0;E<b.length;E+=2)b[E+1]==v&&(c+=" "+b[E]);if(!d||d.from==p)for(var S=0;S<A.length;++S)En(t,0,A[S]);if(d&&(d.from||0)==p){if(En(t,(null==d.to?f+1:d.to)-p,d.marker,null==d.from),null==d.to)return;d.to==p&&(d=!1)}}if(p>=f)break;var C=Math.min(f,v);while(1){if(m){var T=p+m.length;if(!d){var k=T>C?m.slice(0,C-p):m;t.addToken(t,k,a?a+l:l,u,p+k.length==v?c:"",s,h)}if(T>=C){m=m.slice(C-p),p=C;break}p=T,u=""}m=i.slice(o,o=n[g++]),a=An(n[g++],t.cm.options)}}else for(var O=1;O<n.length;O+=2)t.addToken(t,i.slice(o,o=n[O]),An(n[O+1],t.cm.options))}function Cn(e,t,n){this.line=t,this.rest=on(t),this.size=this.rest?ot(ee(this.rest))-n+1:1,this.node=this.text=null,this.hidden=ln(e,t)}function Tn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new Cn(e.doc,tt(e.doc,o),o);r=o+a.size,i.push(a)}return i}var kn=null;function On(e){kn?kn.ops.push(e):e.ownsGroup=kn={ops:[e],delayedCallbacks:[]}}function Mn(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)while(i.cursorActivityCalled<i.cursorActivityHandlers.length)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function In(e,t){var n=e.ownsGroup;if(n)try{Mn(n)}finally{kn=null,t(n)}}var Dn=null;function Nn(e,t){var n=ye(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);kn?r=kn.delayedCallbacks:Dn?r=Dn:(r=Dn=[],setTimeout(Rn,0));for(var o=function(e){r.push(function(){return n[e].apply(null,i)})},a=0;a<n.length;++a)o(a)}}function Rn(){var e=Dn;Dn=null;for(var t=0;t<e.length;++t)e[t]()}function Ln(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?$n(e,t):"gutter"==o?Hn(e,t,n,r):"class"==o?jn(e,t):"widget"==o&&Un(e,t,r)}t.changes=null}function Bn(e){return e.node==e.text&&(e.node=M("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function Pn(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=Bn(t);t.background=r.insertBefore(M("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Fn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):bn(e,t)}function $n(e,t){var n=t.text.className,r=Fn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,jn(e,t)):n&&(t.text.className=n)}function jn(e,t){Pn(e,t),t.line.wrapClass?Bn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Hn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=Bn(t);t.gutterBackground=M("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=Bn(t),s=t.gutter=M("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(M("div",lt(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var c=e.display.gutterSpecs[l].className,u=o.hasOwnProperty(c)&&o[c];u&&s.appendChild(M("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function Un(e,t,n){t.alignable&&(t.alignable=null);for(var r=S("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);zn(e,t,n)}function Qn(e,t,n,r){var i=Fn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),jn(e,t),Hn(e,t,n,r),zn(e,t,r),t.node}function zn(e,t,n){if(Wn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Wn(e,t.rest[r],t,n,!1)}function Wn(e,t,n,r,i){if(t.widgets)for(var o=Bn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],c=M("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Gn(l,c,n,r),e.display.input.setUneditable(c),i&&l.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),Nn(l,"redraw")}}function Gn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Vn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!D(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),O(t.display.measure,M("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Kn(e,t){for(var n=Ie(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Yn(e){return e.lineSpace.offsetTop}function qn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Xn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=O(e.measure,M("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Jn(e){return G-e.display.nativeBarWidth}function Zn(e){return e.display.scroller.clientWidth-Jn(e)-e.display.barWidth}function er(e){return e.display.scroller.clientHeight-Jn(e)-e.display.barHeight}function tr(e,t,n){var r=e.options.lineWrapping,i=r&&Zn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function nr(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(ot(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function rr(e,t){t=nn(t);var n=ot(t),r=e.display.externalMeasured=new Cn(e.doc,t,n);r.lineN=n;var i=r.built=bn(e,r);return r.text=i.pre,O(e.display.lineMeasure,i.pre),r}function ir(e,t,n,r){return sr(e,ar(e,t),n,r)}function or(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[jr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function ar(e,t){var n=ot(t),r=or(e,n);r&&!r.text?r=null:r&&r.changes&&(Ln(e,r,n,Lr(e)),e.curOp.forceUpdate=!0),r||(r=rr(e,t));var i=nr(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function sr(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(tr(e,t.view,t.rect),t.hasHeights=!0),o=hr(e,t,n,r),o.bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var lr,cr={left:0,right:0,top:0,bottom:0};function ur(e,t,n){for(var r,i,o,a,s,l,c=0;c<e.length;c+=3)if(s=e[c],l=e[c+1],t<s?(i=0,o=1,a="left"):t<l?(i=t-s,o=i+1):(c==e.length-3||t==l&&e[c+3]>t)&&(o=l-s,i=o-1,t>=l&&(a="right")),null!=i){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)while(c&&e[c-2]==e[c-3]&&e[c-1].insertLeft)r=e[2+(c-=3)],a="left";if("right"==n&&i==l-s)while(c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft)r=e[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function dr(e,t){var n=cr;if("left"==t){for(var r=0;r<e.length;r++)if((n=e[r]).left!=n.right)break}else for(var i=e.length-1;i>=0;i--)if((n=e[i]).left!=n.right)break;return n}function hr(e,t,n,r){var i,o=ur(t.map,n,r),l=o.node,c=o.start,u=o.end,d=o.collapse;if(3==l.nodeType){for(var h=0;h<4;h++){while(c&&ue(t.line.text.charAt(o.coverStart+c)))--c;while(o.coverStart+u<o.coverEnd&&ue(t.line.text.charAt(o.coverStart+u)))++u;if(i=a&&s<9&&0==c&&u==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():dr(C(l,c,u).getClientRects(),r),i.left||i.right||0==c)break;u=c,c-=1,d="right"}a&&s<11&&(i=fr(e.display.measure,i))}else{var f;c>0&&(d=r="right"),i=e.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==r?f.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var p=l.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Rr(e.display),top:p.top,bottom:p.bottom}:cr}for(var g=i.top-t.rect.top,m=i.bottom-t.rect.top,v=(g+m)/2,A=t.view.measure.heights,b=0;b<A.length-1;b++)if(v<A[b])break;var y=b?A[b-1]:0,w=A[b],_={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:y,bottom:w};return i.left||i.right||(_.bogus=!0),e.options.singleCursorHeightPerLine||(_.rtop=g,_.rbottom=m),_}function fr(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Ue(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function pr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function gr(e){e.display.externalMeasure=null,k(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)pr(e.display.view[t])}function mr(e){gr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function vr(e){return u&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function Ar(e){return u&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function br(e){var t=nn(e),n=t.widgets,r=0;if(n)for(var i=0;i<n.length;++i)n[i].above&&(r+=Vn(n[i]));return r}function yr(e,t,n,r,i){if(!i){var o=br(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=un(t);if("local"==r?a+=Yn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:Ar(P(e)));var l=s.left+("window"==r?0:vr(P(e)));n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function wr(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=vr(P(e)),i-=Ar(P(e));else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function _r(e,t,n,r,i){return r||(r=tt(e.doc,t.line)),yr(e,r,ir(e,r,t.ch,i),n)}function xr(e,t,n,r,i,o){function a(t,a){var s=sr(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,yr(e,r,s,n)}r=r||tt(e.doc,t.line),i||(i=ar(e,r));var s=ve(r,e.doc.direction),l=t.ch,c=t.sticky;if(l>=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(e,t,n){var r=s[t],i=1==r.level;return a(n?e-1:e,i!=n)}var d=ge(s,l,c),h=pe,f=u(l,d,"before"==c);return null!=h&&(f.other=u(l,h,"before"!=c)),f}function Er(e,t){var n=0;t=mt(e.doc,t),e.options.lineWrapping||(n=Rr(e.display)*t.ch);var r=tt(e.doc,t.line),i=un(r)+Yn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Sr(e,t,n,r,i){var o=ct(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Cr(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return Sr(r.first,0,null,-1,-1);var i=at(r,n),o=r.first+r.size-1;if(i>o)return Sr(r.first+r.size-1,tt(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=tt(r,i);;){var s=Mr(e,a,i,t,n),l=en(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;a=tt(r,i=c.line)}}function Tr(e,t,n,r){r-=br(t);var i=t.text.length,o=he(function(t){return sr(e,n,t-1).bottom<=r},i,0);return i=he(function(t){return sr(e,n,t).top>r},o,i),{begin:o,end:i}}function kr(e,t,n,r){n||(n=ar(e,t));var i=yr(e,t,sr(e,n,r),"line").top;return Tr(e,t,n,i)}function Or(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Mr(e,t,n,r,i){i-=un(t);var o=ar(e,t),a=br(t),s=0,l=t.text.length,c=!0,u=ve(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?Dr:Ir)(e,t,n,o,u,r,i);c=1!=d.level,s=c?d.from:d.to-1,l=c?d.to:d.from-1}var h,f,p=null,g=null,m=he(function(t){var n=sr(e,o,t);return n.top+=a,n.bottom+=a,!!Or(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,g=n),!0)},s,l),v=!1;if(g){var A=r-g.left<g.right-r,b=A==c;m=p+(b?0:1),f=b?"after":"before",h=A?g.left:g.right}else{c||m!=l&&m!=s||m++,f=0==m?"after":m==t.text.length?"before":sr(e,o,m-(c?1:0)).bottom+a<=i==c?"after":"before";var y=xr(e,ct(n,m,f),"line",t,o);h=y.left,v=i<y.top?-1:i>=y.bottom?1:0}return m=de(t.text,m,1),Sr(n,m,f,v,r-h)}function Ir(e,t,n,r,i,o,a){var s=he(function(s){var l=i[s],c=1!=l.level;return Or(xr(e,ct(n,c?l.to:l.from,c?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=xr(e,ct(n,c?l.from:l.to,c?"after":"before"),"line",t,r);Or(u,o,a,!0)&&u.top>a&&(l=i[s-1])}return l}function Dr(e,t,n,r,i,o,a){var s=Tr(e,t,r,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,h=0;h<i.length;h++){var f=i[h];if(!(f.from>=c||f.to<=l)){var p=1!=f.level,g=sr(e,r,p?Math.min(c,f.to)-1:Math.max(l,f.from)).right,m=g<o?o-g+1e9:g-o;(!u||d>m)&&(u=f,d=m)}}return u||(u=i[i.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function Nr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==lr){lr=M("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)lr.appendChild(document.createTextNode("x")),lr.appendChild(M("br"));lr.appendChild(document.createTextNode("x"))}O(e.measure,lr);var n=lr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),k(e.measure),n||1}function Rr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=M("span","xxxxxxxxxx"),n=M("pre",[t],"CodeMirror-line-like");O(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Lr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Br(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Br(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Pr(e){var t=Nr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Rr(e.display)-3);return function(i){if(ln(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Fr(e){var t=e.doc,n=Pr(e);t.iter(function(e){var t=n(e);t!=e.height&&it(e,t)})}function $r(e,t,n,r){var i=e.display;if(!n&&"true"==Ie(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(d){return null}var l,c=Cr(e,o,a);if(r&&c.xRel>0&&(l=tt(e.doc,c.line).text).length==c.ch){var u=Q(l,l.length,e.options.tabSize)-l.length;c=ct(c.line,Math.max(0,Math.round((o-Xn(e.display).left)/Rr(e.display))-u))}return c}function jr(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if(t-=n[r].size,t<0)return r}function Hr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Rt&&an(e.doc,t)<i.viewTo&&Qr(e);else if(n<=i.viewFrom)Rt&&sn(e.doc,n+r)>i.viewFrom?Qr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Qr(e);else if(t<=i.viewFrom){var o=zr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Qr(e)}else if(n>=i.viewTo){var a=zr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Qr(e)}else{var s=zr(e,t,t,-1),l=zr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(Tn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Qr(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function Ur(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[jr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==W(a,n)&&a.push(n)}}}function Qr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function zr(e,t,n,r){var i,o=jr(e,t),a=e.display.view;if(!Rt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}while(an(e.doc,n)!=n){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Wr(e,t,n){var r=e.display,i=r.view;0==i.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Tn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Tn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(jr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(Tn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,jr(e,n)))),r.viewTo=n}function Gr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Vr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Kr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var c=l.empty();if(a){var u=a(e,l);u&&Yr(e,u,i)}else(c||e.options.showCursorWhenSelecting)&&Yr(e,l.head,i);c||Xr(e,l,o)}}return r}function Yr(e,t,n){var r=xr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(M("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=_r(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(M("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function qr(e,t){return e.top-t.top||e.left-t.left}function Xr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Xn(e.display),s=a.left,l=Math.max(r.sizerWidth,Zn(e)-r.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(M("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n                             top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n                             height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=tt(i,t),h=d.text.length;function f(n,r){return _r(e,ct(t,n),"div",d,r)}function p(t,n,r){var i=kr(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right",a="after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1);return f(a,o)[o]}var g=ve(d,i.direction);return fe(g,n||0,null==r?h:r,function(e,t,i,d){var m="ltr"==i,v=f(e,m?"left":"right"),A=f(t-1,m?"right":"left"),b=null==n&&0==e,y=null==r&&t==h,w=0==d,_=!g||d==g.length-1;if(A.top-v.top<=3){var x=(c?b:y)&&w,E=(c?y:b)&&_,S=x?s:(m?v:A).left,C=E?l:(m?A:v).right;u(S,v.top,C-S,v.bottom)}else{var T,k,O,M;m?(T=c&&b&&w?s:v.left,k=c?l:p(e,i,"before"),O=c?s:p(t,i,"after"),M=c&&y&&_?l:A.right):(T=c?p(e,i,"before"):s,k=!c&&b&&w?l:v.right,O=!c&&y&&_?s:A.left,M=c?p(t,i,"after"):l),u(T,v.top,k-T,v.bottom),v.bottom<A.top&&u(s,v.bottom,null,A.top),u(O,A.top,M-O,A.bottom)}(!o||qr(v,o)<0)&&(o=v),qr(A,o)<0&&(o=A),(!a||qr(v,a)<0)&&(a=v),qr(A,a)<0&&(a=A)}),{start:o,end:a}}var h=t.from(),f=t.to();if(h.line==f.line)d(h.line,h.ch,f.ch);else{var p=tt(i,h.line),g=tt(i,f.line),m=nn(p)==nn(g),v=d(h.line,h.ch,m?p.text.length+1:null).end,A=d(f.line,m?0:null,f.ch).start;m&&(v.top<A.top-2?(u(v.right,v.top,null,v.bottom),u(s,A.top,A.left,A.bottom)):u(v.right,v.top,A.left-v.right,v.bottom)),v.bottom<A.top&&u(s,v.bottom,null,A.top)}n.appendChild(o)}function Jr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||ni(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Zr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ti(e))}function ei(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ni(e))},100)}function ti(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(_e(e,"focus",e,t),e.state.focused=!0,R(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Jr(e))}function ni(e,t){e.state.delayingBlurEvent||(e.state.focused&&(_e(e,"blur",e,t),e.state.focused=!1,T(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function ri(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l<t.view.length;l++){var c=t.view[l],u=e.options.lineWrapping,d=void 0,h=0;if(!c.hidden){if(i+=c.line.height,a&&s<8){var f=c.node.offsetTop+c.node.offsetHeight;d=f-n,n=f}else{var p=c.node.getBoundingClientRect();d=p.bottom-p.top,!u&&c.text.firstChild&&(h=c.text.firstChild.getBoundingClientRect().right-p.left-1)}var g=c.line.height-d;if((g>.005||g<-.005)&&(i<r&&(o-=g),it(c.line,d),ii(c.line),c.rest))for(var m=0;m<c.rest.length;m++)ii(c.rest[m]);if(h>e.display.sizerWidth){var v=Math.ceil(h/Rr(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function ii(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function oi(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Yn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=at(t,r),a=at(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=at(t,un(tt(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=at(t,un(tt(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function ai(e,t){if(!xe(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!g){var a=M("div","​",null,"position: absolute;\n                         top: "+(t.top-n.viewOffset-Yn(e.display))+"px;\n                         height: "+(t.bottom-t.top+Jn(e)+n.barHeight)+"px;\n                         left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}function si(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?ct(t.line,t.ch+1,"before"):t,t=t.ch?ct(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=xr(e,t),l=n&&n!=t?xr(e,n):s;i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r};var c=ci(e,i),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(mi(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(Ai(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}function li(e,t){var n=ci(e,t);null!=n.scrollTop&&mi(e,n.scrollTop),null!=n.scrollLeft&&Ai(e,n.scrollLeft)}function ci(e,t){var n=e.display,r=Nr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=er(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+qn(n),l=t.top<r,c=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,f=Zn(e)-n.gutters.offsetWidth,p=t.right-t.left>f;return p&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.left<h?a.scrollLeft=Math.max(0,t.left+d-(p?0:10)):t.right>f+h-3&&(a.scrollLeft=t.right+(p?0:10)-f),a}function ui(e,t){null!=t&&(pi(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function di(e){pi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function hi(e,t,n){null==t&&null==n||pi(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function fi(e,t){pi(e),e.curOp.scrollToPos=t}function pi(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=Er(e,t.from),r=Er(e,t.to);gi(e,n,r,t.margin)}}function gi(e,t,n,r){var i=ci(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});hi(e,i.scrollLeft,i.scrollTop)}function mi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Vi(e,{top:t}),vi(e,t,!0),n&&Vi(e),$i(e,100))}function vi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Ai(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Xi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function bi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+qn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Jn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var yi=function(e,t,n){this.cm=n;var r=this.vert=M("div",[M("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=M("div",[M("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),be(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),be(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};yi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},yi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},yi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},yi.prototype.zeroWidthHack=function(){var e=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new z,this.disableVert=new z},yi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect(),o="vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.visibility="hidden":t.set(1e3,r)}e.style.visibility="",t.set(1e3,r)},yi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var wi=function(){};function _i(e,t){t||(t=bi(e));var n=e.display.barWidth,r=e.display.barHeight;xi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&ri(e),xi(e,bi(e)),n=e.display.barWidth,r=e.display.barHeight}function xi(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}wi.prototype.update=function(){return{bottom:0,right:0}},wi.prototype.setScrollLeft=function(){},wi.prototype.setScrollTop=function(){},wi.prototype.clear=function(){};var Ei={native:yi,null:wi};function Si(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&T(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Ei[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),be(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?Ai(e,t):mi(e,t)},e),e.display.scrollbars.addClass&&R(e.display.wrapper,e.display.scrollbars.addClass)}var Ci=0;function Ti(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ci,markArrays:null},On(e.curOp)}function ki(e){var t=e.curOp;t&&In(t,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Oi(e)})}function Oi(e){for(var t=e.ops,n=0;n<t.length;n++)Mi(t[n]);for(var r=0;r<t.length;r++)Ii(t[r]);for(var i=0;i<t.length;i++)Di(t[i]);for(var o=0;o<t.length;o++)Ni(t[o]);for(var a=0;a<t.length;a++)Ri(t[a])}function Mi(e){var t=e.cm,n=t.display;Ui(t),e.updateMaxLine&&hn(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Hi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ii(e){e.updatedDisplay=e.mustUpdate&&Wi(e.cm,e.update)}function Di(e){var t=e.cm,n=t.display;e.updatedDisplay&&ri(t),e.barMeasure=bi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ir(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Jn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Zn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Ni(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Ai(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==N(F(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&_i(t,e.barMeasure),e.updatedDisplay&&qi(t,e.barMeasure),e.selectionChanged&&Jr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Zr(e.cm)}function Ri(e){var t=e.cm,n=t.display,r=t.doc;if(e.updatedDisplay&&Gi(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&vi(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Ai(t,e.scrollLeft,!0,!0),e.scrollToPos){var i=si(t,mt(r,e.scrollToPos.from),mt(r,e.scrollToPos.to),e.scrollToPos.margin);ai(t,i)}var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var s=0;s<o.length;++s)o[s].lines.length||_e(o[s],"hide");if(a)for(var l=0;l<a.length;++l)a[l].lines.length&&_e(a[l],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&_e(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Li(e,t){if(e.curOp)return t();Ti(e);try{return t()}finally{ki(e)}}function Bi(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Ti(e);try{return t.apply(e,arguments)}finally{ki(e)}}}function Pi(e){return function(){if(this.curOp)return e.apply(this,arguments);Ti(this);try{return e.apply(this,arguments)}finally{ki(this)}}}function Fi(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Ti(t);try{return e.apply(this,arguments)}finally{ki(t)}}}function $i(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,H(ji,e))}function ji(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=xt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Xe(t.mode,r.state):null,l=wt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),h=0;!d&&h<a.length;++h)d=a[h]!=o.styles[h];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&Et(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return $i(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Li(e,function(){for(var t=0;t<i.length;t++)Ur(e,i[t],"text")})}}var Hi=function(e,t,n){var r=e.display;this.viewport=t,this.visible=oi(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Zn(e),this.force=n,this.dims=Lr(e),this.events=[]};function Ui(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Jn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Jn(e)+"px",t.scrollbarsClipped=!0)}function Qi(e){if(e.hasFocus())return null;var t=N(F(e));if(!t||!D(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=j(e).getSelection();r.anchorNode&&r.extend&&D(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function zi(e){if(e&&e.activeElt&&e.activeElt!=N($(e.activeElt))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}function Wi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Qr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Gr(e))return!1;Ji(e)&&(Qr(e),t.dims=Lr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Rt&&(o=an(e.doc,o),a=sn(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Wr(e,o,a),n.viewOffset=un(tt(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Gr(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Qi(e);return l>4&&(n.lineDiv.style.display="none"),Ki(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,zi(c),k(n.cursorDiv),k(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,$i(e,400)),n.updateLineNumbers=null,!0}function Gi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Zn(e))r&&(t.visible=oi(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+qn(e.display)-er(e),n.top)}),t.visible=oi(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Wi(e,t))break;ri(e);var i=bi(e);Vr(e),_i(e,i),qi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Vi(e,t){var n=new Hi(e,t);if(Wi(e,n)){ri(e),Gi(e,n);var r=bi(e);Vr(e),_i(e,r),qi(e,r),n.finish()}}function Ki(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,d=0;d<c.length;d++){var h=c[d];if(h.hidden);else if(h.node&&h.node.parentNode==o){while(a!=h.node)a=s(a);var f=i&&null!=t&&t<=u&&h.lineNumber;h.changes&&(W(h.changes,"gutter")>-1&&(f=!1),Ln(e,h,u,n)),f&&(k(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(lt(e.options,u)))),a=h.node.nextSibling}else{var p=Qn(e,h,u,n);o.insertBefore(p,a)}u+=h.size}while(a)a=s(a)}function Yi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Nn(e,"gutterChanged",e)}function qi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Jn(e)+"px"}function Xi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Br(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Ji(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=lt(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(M("div",[M("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Yi(e.display),!0}return!1}function Zi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function eo(e){var t=e.gutters,n=e.gutterSpecs;k(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(M("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Yi(e)}function to(e){eo(e.display),Hr(e),Xi(e)}function no(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=M("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=M("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=I("div",null,"CodeMirror-code"),o.selectionDiv=M("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=M("div",null,"CodeMirror-cursors"),o.measure=M("div",null,"CodeMirror-measure"),o.lineMeasure=M("div",null,"CodeMirror-measure"),o.lineSpace=I("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var c=I("div",[o.lineSpace],"CodeMirror-lines");o.mover=M("div",[c],null,"position: relative"),o.sizer=M("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=M("div",null,null,"position: absolute; height: "+G+"px; width: 1px;"),o.gutters=M("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=M("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=M("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),u&&105===d&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&A||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Zi(i.gutters,i.lineNumbers),eo(o),r.init(o)}Hi.prototype.signal=function(e,t){Se(e,t)&&this.events.push(arguments)},Hi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)_e.apply(null,this.events[e])};var ro=0,io=null;function oo(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function ao(e){var t=oo(e);return t.x*=io,t.y*=io,t}function so(e,t){u&&102==d&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var r=oo(t),i=r.x,o=r.y,a=io;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,a=1);var s=e.display,c=s.scroller,f=c.scrollWidth>c.clientWidth,p=c.scrollHeight>c.clientHeight;if(i&&f||o&&p){if(o&&b&&l)e:for(var g=t.target,m=s.view;g!=c;g=g.parentNode)for(var v=0;v<m.length;v++)if(m[v].node==g){e.display.currentWheelTarget=g;break e}if(i&&!n&&!h&&null!=a)return o&&p&&mi(e,Math.max(0,c.scrollTop+o*a)),Ai(e,Math.max(0,c.scrollLeft+i*a)),(!o||o&&p)&&Te(t),void(s.wheelStartX=null);if(o&&null!=a){var A=o*a,y=e.doc.scrollTop,w=y+s.wrapper.clientHeight;A<0?y=Math.max(0,y+A-50):w=Math.min(e.doc.height,w+A+50),Vi(e,{top:y,bottom:w})}ro<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=c.scrollLeft,s.wheelStartY=c.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout(function(){if(null!=s.wheelStartX){var e=c.scrollLeft-s.wheelStartX,t=c.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(io=(io*ro+n)/(ro+1),++ro)}},200)):(s.wheelDX+=i,s.wheelDY+=o))}}a?io=-.53:n?io=15:u?io=-.7:f&&(io=-1/3);var lo=function(e,t){this.ranges=e,this.primIndex=t};lo.prototype.primary=function(){return this.ranges[this.primIndex]},lo.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!dt(n.anchor,r.anchor)||!dt(n.head,r.head))return!1}return!0},lo.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new co(ht(this.ranges[t].anchor),ht(this.ranges[t].head));return new lo(e,this.primIndex)},lo.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},lo.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(ut(t,r.from())>=0&&ut(e,r.to())<=0)return n}return-1};var co=function(e,t){this.anchor=e,this.head=t};function uo(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(e,t){return ut(e.from(),t.from())}),n=W(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=ut(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var c=pt(s.from(),a.from()),u=ft(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new co(d?u:c,d?c:u))}}return new lo(t,n)}function ho(e,t){return new lo([new co(e,t||e)],0)}function fo(e){return e.text?ct(e.from.line+e.text.length-1,ee(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function po(e,t){if(ut(e,t.from)<0)return e;if(ut(e,t.to)<=0)return fo(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=fo(t).ch-t.to.ch),ct(n,r)}function go(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new co(po(i.anchor,t),po(i.head,t)))}return uo(e.cm,n,e.sel.primIndex)}function mo(e,t,n){return e.line==t.line?ct(n.line,e.ch-t.ch+n.ch):ct(n.line+(e.line-t.line),e.ch)}function vo(e,t,n){for(var r=[],i=ct(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=mo(s.from,i,o),c=mo(fo(s),i,o);if(i=s.to,o=c,"around"==n){var u=e.sel.ranges[a],d=ut(u.head,u.anchor)<0;r[a]=new co(d?c:l,d?l:c)}else r[a]=new co(l,l)}return new lo(r,e.sel.primIndex)}function Ao(e){e.doc.mode=Ke(e.options,e.doc.modeOption),bo(e)}function bo(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,$i(e,100),e.state.modeGen++,e.curOp&&Hr(e)}function yo(e,t){return 0==t.from.ch&&0==t.to.ch&&""==ee(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function wo(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){pn(e,n,i,r),Nn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new fn(c[o],i(o),r));return n}var s=t.from,l=t.to,c=t.text,u=tt(e,s.line),d=tt(e,l.line),h=ee(c),f=i(c.length-1),p=l.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(yo(e,t)){var g=a(0,c.length-1);o(d,d.text,f),p&&e.remove(s.line,p),g.length&&e.insert(s.line,g)}else if(u==d)if(1==c.length)o(u,u.text.slice(0,s.ch)+h+u.text.slice(l.ch),f);else{var m=a(1,c.length-1);m.push(new fn(h+u.text.slice(l.ch),f,r)),o(u,u.text.slice(0,s.ch)+c[0],i(0)),e.insert(s.line+1,m)}else if(1==c.length)o(u,u.text.slice(0,s.ch)+c[0]+d.text.slice(l.ch),i(0)),e.remove(s.line+1,p);else{o(u,u.text.slice(0,s.ch)+c[0],i(0)),o(d,h+d.text.slice(l.ch),f);var v=a(1,c.length-1);p>1&&e.remove(s.line+1,p-1),e.insert(s.line+1,v)}Nn(e,"change",e,t)}function _o(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),r(s.doc,e,l))}}}r(e,null,!0)}function xo(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Fr(e),Ao(e),Eo(e),e.options.direction=t.direction,e.options.lineWrapping||hn(e),e.options.mode=t.modeOption,Hr(e)}function Eo(e){("rtl"==e.doc.direction?R:T)(e.display.lineDiv,"CodeMirror-rtl")}function So(e){Li(e,function(){Eo(e),Hr(e)})}function Co(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function To(e,t){var n={from:ht(t.from),to:fo(t),text:nt(e,t.from,t.to)};return Ro(e,n,t.from.line,t.to.line+1),_o(e,function(e){return Ro(e,n,t.from.line,t.to.line+1)},!0),n}function ko(e){while(e.length){var t=ee(e);if(!t.ranges)break;e.pop()}}function Oo(e,t){return t?(ko(e.done),ee(e.done)):e.done.length&&!ee(e.done).ranges?ee(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),ee(e.done)):void 0}function Mo(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=Oo(i,i.lastOp==r)))a=ee(o.changes),0==ut(t.from,t.to)&&0==ut(t.from,a.to)?a.to=fo(t):o.changes.push(To(e,t));else{var l=ee(i.done);l&&l.ranges||No(e.sel,i.done),o={changes:[To(e,t)],generation:i.generation},i.done.push(o);while(i.done.length>i.undoDepth)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||_e(e,"historyAdded")}function Io(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Do(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Io(e,o,ee(i.done),t))?i.done[i.done.length-1]=t:No(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&ko(i.undone)}function No(e,t){var n=ee(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ro(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function Lo(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Bo(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Lo(n[i]));return r}function Po(e,t){var n=Bo(e,t),r=Qt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Fo(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?lo.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var d in c)(u=d.match(/^spans_(\d+)$/))&&W(t,Number(u[1]))>-1&&(ee(s)[d]=c[d],delete c[d])}}}return r}function $o(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ut(t,i)<0;o!=ut(n,i)<0?(i=t,t=n):o!=ut(t,n)<0&&(t=n)}return new co(i,t)}return new co(n||t,t)}function jo(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Go(e,new lo([$o(e.sel.primary(),t,n,i)],0),r)}function Ho(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=$o(e.sel.ranges[o],t[o],null,i);var a=uo(e.cm,r,e.sel.primIndex);Go(e,a,n)}function Uo(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Go(e,uo(e.cm,i,e.sel.primIndex),r)}function Qo(e,t,n,r){Go(e,ho(t,n),r)}function zo(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new co(mt(e,t[n].anchor),mt(e,t[n].head))},origin:n&&n.origin};return _e(e,"beforeSelectionChange",e,r),e.cm&&_e(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?uo(e.cm,r.ranges,r.ranges.length-1):t}function Wo(e,t,n){var r=e.history.done,i=ee(r);i&&i.ranges?(r[r.length-1]=t,Vo(e,t,n)):Go(e,t,n)}function Go(e,t,n){Vo(e,t,n),Do(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Vo(e,t,n){(Se(e,"beforeSelectionChange")||e.cm&&Se(e.cm,"beforeSelectionChange"))&&(t=zo(e,t,n));var r=n&&n.bias||(ut(t.primary().head,e.sel.primary().head)<0?-1:1);Ko(e,qo(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||di(e.cm)}function Ko(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ee(e.cm)),Nn(e,"cursorActivity",e))}function Yo(e){Ko(e,qo(e,e.sel,null,!1))}function qo(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=Jo(e,a.anchor,s&&s.anchor,n,r),c=a.head==a.anchor?l:Jo(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new co(l,c))}return i?uo(e.cm,i,t.primIndex):t}function Xo(e,t,n,r,i){var o=tt(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u?s.to>=t.ch:s.to>t.ch))){if(i&&(_e(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),h=void 0;if((r<0?u:c)&&(d=Zo(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(h=ut(d,n))&&(r<0?h<0:h>0))return Xo(e,d,t,r,i)}var f=l.find(r<0?-1:1);return(r<0?c:u)&&(f=Zo(e,f,r,f.line==t.line?o:null)),f?Xo(e,f,t,r,i):null}}return t}function Jo(e,t,n,r,i){var o=r||1,a=Xo(e,t,n,o,i)||!i&&Xo(e,t,n,o,!0)||Xo(e,t,n,-o,i)||!i&&Xo(e,t,n,-o,!0);return a||(e.cantEdit=!0,ct(e.first,0))}function Zo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?mt(e,ct(t.line-1)):null:n>0&&t.ch==(r||tt(e,t.line)).text.length?t.line<e.first+e.size-1?ct(t.line+1,0):null:new ct(t.line,t.ch+n)}function ea(e){e.setSelection(ct(e.firstLine(),0),ct(e.lastLine()),K)}function ta(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=mt(e,t)),n&&(r.to=mt(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),_e(e,"beforeChange",e,r),e.cm&&_e(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function na(e,t,n){if(e.cm){if(!e.cm.curOp)return Bi(e.cm,na)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Se(e,"beforeChange")||e.cm&&Se(e.cm,"beforeChange"))||(t=ta(e,t,!0),t)){var r=Nt&&!n&&Wt(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)ra(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else ra(e,t)}}function ra(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ut(t.from,t.to)){var n=go(e,t);Mo(e,t,n,e.cm?e.cm.curOp.id:NaN),aa(e,t,n,Qt(e,t));var r=[];_o(e,function(e,n){n||-1!=W(r,e.history)||(da(e.history,t),r.push(e.history)),aa(e,t,null,Qt(e,t))})}}function ia(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,c=0;c<s.length;c++)if(i=s[c],n?i.ranges&&!i.equals(e.sel):!i.ranges)break;if(c!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(i=s.pop(),!i.ranges){if(r)return void s.push(i);break}if(No(i,l),n&&!i.equals(e.sel))return void Go(e,i,{clearRedo:!1});a=i}var u=[];No(a,l),l.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=Se(e,"beforeChange")||e.cm&&Se(e.cm,"beforeChange"),h=function(n){var r=i.changes[n];if(r.origin=t,d&&!ta(e,r,!1))return s.length=0,{};u.push(To(e,r));var o=n?go(e,r):ee(s);aa(e,r,o,Po(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:fo(r)});var a=[];_o(e,function(e,t){t||-1!=W(a,e.history)||(da(e.history,r),a.push(e.history)),aa(e,r,null,Po(e,r))})},f=i.changes.length-1;f>=0;--f){var p=h(f);if(p)return p.v}}}}function oa(e,t){if(0!=t&&(e.first+=t,e.sel=new lo(te(e.sel.ranges,function(e){return new co(ct(e.anchor.line+t,e.anchor.ch),ct(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Hr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Ur(e.cm,r,"gutter")}}function aa(e,t,n,r){if(e.cm&&!e.cm.curOp)return Bi(e.cm,aa)(e,t,n,r);if(t.to.line<e.first)oa(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);oa(e,i),t={from:ct(e.first,0),to:ct(t.to.line+i,t.to.ch),text:[ee(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:ct(o,tt(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=nt(e,t.from,t.to),n||(n=go(e,t)),e.cm?sa(e.cm,t,r):wo(e,t,r),Vo(e,n,K),e.cantEdit&&Jo(e,ct(e.firstLine(),0))&&(e.cantEdit=!1)}}function sa(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=ot(nn(tt(r,o.line))),r.iter(l,a.line+1,function(e){if(e==i.maxLine)return s=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Ee(e),wo(r,t,n,Pr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,function(e){var t=dn(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),Dt(r,o.line),$i(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?Hr(e):o.line!=a.line||1!=t.text.length||yo(e.doc,t)?Hr(e,o.line,a.line+1,c):Ur(e,o.line,"text");var u=Se(e,"changes"),d=Se(e,"change");if(d||u){var h={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&Nn(e,"change",e,h),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function la(e,t,n,r,i){var o;r||(r=n),ut(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),na(e,{from:n,to:r,text:t,origin:i})}function ca(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function ua(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||(o=e[i]=o.deepCopy(),o.copied=!0);for(var s=0;s<o.ranges.length;s++)ca(o.ranges[s].anchor,t,n,r),ca(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var c=o.changes[l];if(n<c.from.line)c.from=ct(c.from.line+r,c.from.ch),c.to=ct(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function da(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;ua(e.done,n,r,i),ua(e.undone,n,r,i)}function ha(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=tt(e,gt(e,t)):i=ot(t),null==i?null:(r(o,i)&&e.cm&&Ur(e.cm,i,n),o)}function fa(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function pa(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}co.prototype.from=function(){return pt(this.anchor,this.head)},co.prototype.to=function(){return ft(this.anchor,this.head)},co.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},fa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,gn(i),Nn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},pa.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof fa))){var s=[];this.collapse(s),this.children=[new fa(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new fa(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),n=new pa(t);if(e.parent){e.size-=n.size,e.height-=n.height;var r=W(e.parent.children,e);e.parent.children.splice(r+1,0,n)}else{var i=new pa(e.children);i.parent=e,e.children=[i,n],e=i}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var ga=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function ma(e,t,n){un(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ui(e,n)}function va(e,t,n,r){var i=new ga(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),ha(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!ln(e,t)){var r=un(t)<e.scrollTop;it(t,t.height+Vn(i)),r&&ui(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&Nn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:ot(t)),i}ga.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=ot(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=Vn(this);it(n,Math.max(0,n.height-o)),e&&(Li(e,function(){ma(e,n,-o),Ur(e,r,"widget")}),Nn(e,"lineWidgetCleared",e,this,r))}},ga.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Vn(this)-t;i&&(ln(this.doc,r)||it(r,r.height+i),n&&Li(n,function(){n.curOp.forceUpdate=!0,ma(n,r,i),Nn(n,"lineWidgetChanged",n,e,ot(r))}))},Ce(ga);var Aa=0,ba=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Aa};function ya(e,t,n,r,i){if(r&&r.shared)return _a(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return Bi(e.cm,ya)(e,t,n,r,i);var o=new ba(e,i),a=ut(t,n);if(r&&U(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=I("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(tn(e,t.line,t,n,o)||t.line!=n.line&&tn(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Bt()}o.addToHistory&&Mo(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,function(r){c&&o.collapsed&&!c.options.lineWrapping&&nn(r)==c.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&it(r,0),jt(r,new Pt(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l}),o.collapsed&&e.iter(t.line,n.line+1,function(t){ln(e,t)&&it(t,0)}),o.clearOnEnter&&be(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Lt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Aa,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)Hr(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)Ur(c,u,"text");o.atomic&&Yo(c.doc),Nn(c,"markerAdded",c,o)}return o}ba.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ti(e),Se(this,"clear")){var n=this.find();n&&Nn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Ft(a.markedSpans,this);e&&!this.collapsed?Ur(e,ot(a),"text"):e&&(null!=s.to&&(i=ot(a)),null!=s.from&&(r=ot(a))),a.markedSpans=$t(a.markedSpans,s),null==s.from&&this.collapsed&&!ln(this.doc,a)&&e&&it(a,Nr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=nn(this.lines[l]),u=dn(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Hr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Yo(e.doc)),e&&Nn(e,"markerCleared",e,this,r,i),t&&ki(e),this.parent&&this.parent.clear()}},ba.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Ft(o.markedSpans,this);if(null!=a.from&&(n=ct(t?o:ot(o),a.from),-1==e))return n;if(null!=a.to&&(r=ct(t?o:ot(o),a.to),1==e))return r}return n&&{from:n,to:r}},ba.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Li(r,function(){var i=t.line,o=ot(t.line),a=or(r,o);if(a&&(pr(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!ln(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=Vn(n)-s;l&&it(i,i.height+l)}Nn(r,"markerChanged",r,e)})},ba.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=W(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ba.prototype.detachLine=function(e){if(this.lines.splice(W(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Ce(ba);var wa=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function _a(e,t,n,r,i){r=U(r),r.shared=!1;var o=[ya(e,t,n,r,i)],a=o[0],s=r.widgetNode;return _o(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(ya(e,mt(e,t),mt(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=ee(o)}),new wa(o,a)}function xa(e){return e.findMarks(ct(e.first,0),e.clipPos(ct(e.lastLine())),function(e){return e.parent})}function Ea(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(ut(o,a)){var s=ya(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function Sa(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];_o(n.primary.doc,function(e){return r.push(e)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==W(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}wa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Nn(this,"clear")}},wa.prototype.find=function(e,t){return this.primary.find(e,t)},Ce(wa);var Ca=0,Ta=function(e,t,n,r,i){if(!(this instanceof Ta))return new Ta(e,t,n,r,i);null==n&&(n=0),pa.call(this,[new fa([new fn("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=ct(n,0);this.sel=ho(o),this.history=new Co(null),this.id=++Ca,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),wo(this,{from:o,to:o,text:e}),Go(this,ho(o),K)};Ta.prototype=ie(pa.prototype,{constructor:Ta,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=rt(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Fi(function(e){var t=ct(this.first,0),n=this.first+this.size-1;na(this,{from:t,to:ct(n,tt(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&hi(this.cm,0,0),Go(this,ho(t),K)}),replaceRange:function(e,t,n,r){t=mt(this,t),n=n?mt(this,n):t,la(this,e,t,n,r)},getRange:function(e,t,n){var r=nt(this,mt(this,e),mt(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(st(this,e))return tt(this,e)},getLineNumber:function(e){return ot(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=tt(this,e)),nn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return mt(this,e)},getCursor:function(e){var t,n=this.sel.primary();return t=null==e||"head"==e?n.head:"anchor"==e?n.anchor:"end"==e||"to"==e||!1===e?n.to():n.from(),t},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Fi(function(e,t,n){Qo(this,mt(this,"number"==typeof e?ct(e,t||0):e),null,n)}),setSelection:Fi(function(e,t,n){Qo(this,mt(this,e),mt(this,t||e),n)}),extendSelection:Fi(function(e,t,n){jo(this,mt(this,e),t&&mt(this,t),n)}),extendSelections:Fi(function(e,t){Ho(this,At(this,e),t)}),extendSelectionsBy:Fi(function(e,t){var n=te(this.sel.ranges,e);Ho(this,At(this,n),t)}),setSelections:Fi(function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new co(mt(this,e[i].anchor),mt(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Go(this,uo(this.cm,r,t),n)}}),addSelection:Fi(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new co(mt(this,e),mt(this,t||e))),Go(this,uo(this.cm,r,r.length-1),n)}),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=nt(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=nt(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Fi(function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&vo(this,r,t),l=r.length-1;l>=0;l--)na(this,r[l]);s?Wo(this,s):this.cm&&di(this.cm)}),undo:Fi(function(){ia(this,"undo")}),redo:Fi(function(){ia(this,"redo")}),undoSelection:Fi(function(){ia(this,"undo",!0)}),redoSelection:Fi(function(){ia(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Co(this.history),_o(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Fo(this.history.done),undone:Fo(this.history.undone)}},setHistory:function(e){var t=this.history=new Co(this.history);t.done=Fo(e.done.slice(0),null,!0),t.undone=Fo(e.undone.slice(0),null,!0)},setGutterMarker:Fi(function(e,t,n){return ha(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&le(r)&&(e.gutterMarkers=null),!0})}),clearGutter:Fi(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&ha(t,n,"gutter",function(){return n.gutterMarkers[e]=null,le(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!st(this,e))return null;if(t=e,e=tt(this,e),!e)return null}else if(t=ot(e),null==t)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Fi(function(e,t,n){return ha(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(S(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0})}),removeLineClass:Fi(function(e,t,n){return ha(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(S(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0})}),addLineWidget:Fi(function(e,t,n){return va(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ya(this,mt(this,e),mt(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=mt(this,e),ya(this,e,e,n,"bookmark")},findMarksAt:function(e){e=mt(this,e);var t=[],n=tt(this,e.line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=mt(this,e),t=mt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n}),mt(this,ct(n,t))},indexFromPos:function(e){e=mt(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new Ta(rt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Ta(rt(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Ea(r,xa(this)),r},unlinkDoc:function(e){if(e instanceof Hs&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var n=this.linked[t];if(n.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Sa(xa(this));break}}if(e.history==this.history){var r=[e.id];_o(e,function(e){return r.push(e.id)},!0),e.history=new Co(null),e.history.done=Fo(this.history.done,r),e.history.undone=Fo(this.history.undone,r)}},iterLinkedDocs:function(e){_o(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Fe(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Fi(function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&So(this.cm))})}),Ta.prototype.eachLine=Ta.prototype.iter;var ka=0;function Oa(e){var t=this;if(Da(t),!xe(t,e)&&!Kn(t.display,e)){Te(e),a&&(ka=+new Date);var n=$r(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&Bi(t,function(){n=mt(t.doc,n);var e={from:n,to:n,text:t.doc.splitLines(o.filter(function(e){return null!=e}).join(t.doc.lineSeparator())),origin:"paste"};na(t.doc,e),Wo(t.doc,ho(mt(t.doc,n),mt(t.doc,fo(e))))})()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==W(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},r.readAsText(e)}},u=0;u<r.length;u++)c(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var d=e.dataTransfer.getData("Text");if(d){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),Vo(t.doc,ho(n,n)),h)for(var f=0;f<h.length;++f)la(t.doc,"",h[f].anchor,h[f].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(p){}}}}function Ma(e,t){if(a&&(!e.state.draggingText||+new Date-ka<100))Me(t);else if(!xe(e,t)&&!Kn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=M("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",h&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),h&&n.parentNode.removeChild(n)}}function Ia(e,t){var n=$r(e,t);if(n){var r=document.createDocumentFragment();Yr(e,n,r),e.display.dragCursor||(e.display.dragCursor=M("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),O(e.display.dragCursor,r)}}function Da(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Na(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation(function(){for(var t=0;t<n.length;t++)e(n[t])})}}var Ra=!1;function La(){Ra||(Ba(),Ra=!0)}function Ba(){var e;be(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,Na(Pa)},100))}),be(window,"blur",function(){return Na(ni)})}function Pa(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Fa={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},$a=0;$a<10;$a++)Fa[$a+48]=Fa[$a+96]=String($a);for(var ja=65;ja<=90;ja++)Fa[ja]=String.fromCharCode(ja);for(var Ha=1;Ha<=12;Ha++)Fa[Ha+111]=Fa[Ha+63235]="F"+Ha;var Ua={};function Qa(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function za(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=te(n.split(" "),Qa),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function Wa(e,t,n,r){t=Ya(t);var i=t.call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Wa(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Wa(e,t.fallthrough[o],n,r);if(a)return a}}}function Ga(e){var t="string"==typeof e?e:Fa[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Va(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(x?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(x?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Ka(e,t){if(h&&34==e.keyCode&&e["char"])return!1;var n=Fa[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Va(n,e,t))}function Ya(e){return"string"==typeof e?Ua[e]:e}function qa(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){var o=t(n[i]);while(r.length&&ut(o.from,ee(r).to)<=0){var a=r.pop();if(ut(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Li(e,function(){for(var t=r.length-1;t>=0;t--)la(e.doc,"",r[t].from,r[t].to,"+delete");di(e)})}function Xa(e,t,n){var r=de(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ja(e,t,n){var r=Xa(e,t.ch,n);return null==r?null:new ct(t.line,r,n<0?"after":"before")}function Za(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=ve(n,t.doc.direction);if(o){var a,s=i<0?ee(o):o[0],l=i<0==(1==s.level),c=l?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=ar(t,n);a=i<0?n.text.length-1:0;var d=sr(t,u,a).top;a=he(function(e){return sr(t,u,e).top==d},i<0==(1==s.level)?s.from:s.to-1,a),"before"==c&&(a=Xa(n,a,1))}else a=i<0?s.to:s.from;return new ct(r,a,c)}}return new ct(r,i<0?n.text.length:0,i<0?"before":"after")}function es(e,t,n,r){var i=ve(t,e.doc.direction);if(!i)return Ja(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ge(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Ja(t,n,r);var s,l=function(e,n){return Xa(t,e instanceof ct?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(s=s||ar(e,t),kr(e,t,s,n)):{begin:0,end:t.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,h=l(n,d?1:-1);if(null!=h&&(d?h<=a.to&&h<=u.end:h>=a.from&&h>=u.begin)){var f=d?"before":"after";return new ct(n.line,h,f)}}var p=function(e,t,r){for(var o=function(e,t){return t?new ct(n.line,l(e,1),"before"):new ct(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c<a.to)return o(c,s);if(c=s?a.from:l(a.to,-1),r.begin<=c&&c<r.end)return o(c,s)}},g=p(o+r,r,u);if(g)return g;var m=r>0?u.end:l(u.begin,-1);return null==m||r>0&&m==t.text.length||(g=p(r>0?0:i.length-1,r,c(m)),!g)?null:g}Ua.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ua.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ua.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ua.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ua["default"]=b?Ua.macDefault:Ua.pcDefault;var ts={selectAll:ea,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),K)},killLine:function(e){return qa(e,function(t){if(t.empty()){var n=tt(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:ct(t.head.line+1,0)}:{from:t.head,to:ct(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return qa(e,function(t){return{from:ct(t.from().line,0),to:mt(e.doc,ct(t.to().line+1,0))}})},delLineLeft:function(e){return qa(e,function(e){return{from:ct(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return qa(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return{from:r,to:t.from()}})},delWrappedLineRight:function(e){return qa(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ct(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ct(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return ns(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return is(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return rs(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},q)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},q)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?is(e,t.head):r},q)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=Q(e.getLine(o.line),o.ch,r);t.push(Z(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Li(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=tt(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new ct(i.line,i.ch-1)),i.ch>0)i=new ct(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ct(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=tt(e.doc,i.line-1).text;a&&(i=new ct(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ct(i.line-1,a.length-1),i,"+transpose"))}n.push(new co(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Li(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);di(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ns(e,t){var n=tt(e.doc,t),r=nn(n);return r!=n&&(t=ot(r)),Za(!0,e,r,t,1)}function rs(e,t){var n=tt(e.doc,t),r=rn(n);return r!=n&&(t=ot(r)),Za(!0,e,n,t,-1)}function is(e,t){var n=ns(e,t.line),r=tt(e.doc,n.line),i=ve(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return ct(n.line,a?0:o,n.sticky)}return n}function os(e,t,n){if("string"==typeof t&&(t=ts[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=V}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function as(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Wa(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Wa(t,e.options.extraKeys,n,e)||Wa(t,e.options.keyMap,n,e)}var ss=new z;function ls(e,t,n,r){var i=e.state.keySeq;if(i){if(Ga(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ss.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),cs(e,i+" "+t,n,r))return!0}return cs(e,t,n,r)}function cs(e,t,n,r){var i=as(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&Nn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(Te(n),Jr(e)),!!i}function us(e,t){var n=Ka(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?ls(e,"Shift-"+n,t,function(t){return os(e,t,!0)})||ls(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return os(e,t)}):ls(e,n,t,function(t){return os(e,t)}))}function ds(e,t,n){return ls(e,"'"+n+"'",t,function(t){return os(e,t,!0)})}var hs=null;function fs(e){var t=this;if((!e.target||e.target==t.display.input.getField())&&(t.curOp.focus=N(F(t)),!xe(t,e))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=us(t,e);h&&(hs=i?r:null,i||88!=r||je||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||ps(t)}}function ps(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(T(t,"CodeMirror-crosshair"),we(document,"keyup",n),we(document,"mouseover",n))}R(t,"CodeMirror-crosshair"),be(document,"keyup",n),be(document,"mouseover",n)}function gs(e){16==e.keyCode&&(this.doc.sel.shift=!1),xe(this,e)}function ms(e){var t=this;if((!e.target||e.target==t.display.input.getField())&&!(Kn(t.display,e)||xe(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(h&&n==hs)return hs=null,void Te(e);if(!h||e.which&&!(e.which<10)||!us(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(ds(t,e,i)||t.display.input.onKeyPress(e))}}}var vs,As,bs=400,ys=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ws(e,t){var n=+new Date;return As&&As.compare(n,e,t)?(vs=As=null,"triple"):vs&&vs.compare(n,e,t)?(As=new ys(n,e,t),vs=null,"double"):(vs=new ys(n,e,t),As=null,"single")}function _s(e){var t=this,n=t.display;if(!(xe(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Kn(n,e))l||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));else if(!Is(t,e)){var r=$r(t,e),i=De(e),o=r?ws(r,i):"single";j(t).focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&xs(t,i,r,o,e)||(1==i?r?Ss(t,r,o,e):Ie(e)==n.scroller&&Te(e):2==i?(r&&jo(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(E?t.display.input.onContextMenu(e):ei(t)))}}function xs(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),o=(1==t?"Left":2==t?"Middle":"Right")+o,ls(e,Va(o,i),i,function(t){if("string"==typeof t&&(t=ts[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=V}finally{e.state.suppressEdits=!1}return r})}function Es(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=y?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}function Ss(e,t,n,r){a?setTimeout(H(Zr,e),0):e.curOp.focus=N(F(e));var i,o=Es(e,n,r),s=e.doc.sel;e.options.dragDrop&&Le&&!e.isReadOnly()&&"single"==n&&(i=s.contains(t))>-1&&(ut((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(ut(i.to(),t)>0||t.xRel<0)?Cs(e,r,t,o):ks(e,r,t,o)}function Cs(e,t,n,r){var i=e.display,o=!1,c=Bi(e,function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:ei(e)),we(i.wrapper.ownerDocument,"mouseup",c),we(i.wrapper.ownerDocument,"mousemove",u),we(i.scroller,"dragstart",d),we(i.scroller,"drop",c),o||(Te(t),r.addNew||jo(e.doc,n,null,null,r.extend),l&&!f||a&&9==s?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,be(i.wrapper.ownerDocument,"mouseup",c),be(i.wrapper.ownerDocument,"mousemove",u),be(i.scroller,"dragstart",d),be(i.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Ts(e,t,n){if("char"==n)return new co(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new co(ct(t.line,0),mt(e.doc,ct(t.line+1,0)));var r=n(e,t);return new co(r.from,r.to)}function ks(e,t,n,r){a&&ei(e);var i=e.display,o=e.doc;Te(t);var s,l,c=o.sel,u=c.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?u[l]:new co(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new co(n,n)),n=$r(e,t,!0,!0),l=-1;else{var d=Ts(e,n,r.unit);s=r.extend?$o(s,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=u.length,Go(o,uo(e,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==r.unit&&!r.extend?(Go(o,uo(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):Uo(o,l,s,Y):(l=0,Go(o,new lo([s],0),Y),c=o.sel);var h=n;function f(t){if(0!=ut(h,t))if(h=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,u=Q(tt(o,n.line).text,n.ch,a),d=Q(tt(o,t.line).text,t.ch,a),f=Math.min(u,d),p=Math.max(u,d),g=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=m;g++){var v=tt(o,g).text,A=X(v,f,a);f==p?i.push(new co(ct(g,A),ct(g,A))):v.length>A&&i.push(new co(ct(g,A),ct(g,X(v,p,a))))}i.length||i.push(new co(n,n)),Go(o,uo(e,c.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,y=s,w=Ts(e,t,r.unit),_=y.anchor;ut(w.anchor,_)>0?(b=w.head,_=pt(y.from(),w.anchor)):(b=w.anchor,_=ft(y.to(),w.head));var x=c.ranges.slice(0);x[l]=Os(e,new co(mt(o,_),b)),Go(o,uo(e,x,l),Y)}}var p=i.wrapper.getBoundingClientRect(),g=0;function m(t){var n=++g,a=$r(e,t,!0,"rectangle"==r.unit);if(a)if(0!=ut(a,h)){e.curOp.focus=N(F(e)),f(a);var s=oi(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout(Bi(e,function(){g==n&&m(t)}),150)}else{var l=t.clientY<p.top?-20:t.clientY>p.bottom?20:0;l&&setTimeout(Bi(e,function(){g==n&&(i.scroller.scrollTop+=l,m(t))}),50)}}function v(t){e.state.selectingText=!1,g=1/0,t&&(Te(t),i.input.focus()),we(i.wrapper.ownerDocument,"mousemove",A),we(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var A=Bi(e,function(e){0!==e.buttons&&De(e)?m(e):v(e)}),b=Bi(e,v);e.state.selectingText=b,be(i.wrapper.ownerDocument,"mousemove",A),be(i.wrapper.ownerDocument,"mouseup",b)}function Os(e,t){var n=t.anchor,r=t.head,i=tt(e.doc,n.line);if(0==ut(n,r)&&n.sticky==r.sticky)return t;var o=ve(i);if(!o)return t;var a=ge(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=ge(o,r.ch,r.sticky),d=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var h=o[c+(l?-1:0)],f=l==(1==h.level),p=f?h.from:h.to,g=f?"after":"before";return n.ch==p&&n.sticky==g?t:new co(new ct(n.line,p,g),r)}function Ms(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(h){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Te(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Se(e,n))return Oe(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=i){var u=at(e.doc,o),d=e.display.gutterSpecs[l];return _e(e,n,e,u,d.className,t),Oe(t)}}}function Is(e,t){return Ms(e,t,"gutterClick",!0)}function Ds(e,t){Kn(e.display,t)||Ns(e,t)||xe(e,t,"contextmenu")||E||e.display.input.onContextMenu(t)}function Ns(e,t){return!!Se(e,"gutterContextMenu")&&Ms(e,t,"gutterContextMenu",!1)}function Rs(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),mr(e)}ys.prototype.compare=function(e,t,n){return this.time+bs>e&&0==ut(t,this.pos)&&n==this.button};var Ls={toString:function(){return"CodeMirror.Init"}},Bs={},Ps={};function Fs(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Ls&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Ls,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,Ao(e)},!0),n("indentUnit",2,Ao,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){bo(e),mr(e),Hr(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(ct(r,o))}r++});for(var i=n.length-1;i>=0;i--)la(e.doc,t,n[i],ct(n[i].line,n[i].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ls&&e.refresh()}),n("specialCharPlaceholder",yn,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",A?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),n("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){Rs(e),to(e)},!0),n("keyMap","default",function(e,t,n){var r=Ya(t),i=n!=Ls&&Ya(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,js,!0),n("gutters",[],function(e,t){e.display.gutterSpecs=Zi(t,e.options.lineNumbers),to(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?Br(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return _i(e)},!0),n("scrollbarStyle","native",function(e){Si(e),_i(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e,t){e.display.gutterSpecs=Zi(e.options.gutters,t),to(e)},!0),n("firstLineNumber",1,to,!0),n("lineNumberFormatter",function(e){return e},to,!0),n("showCursorWhenSelecting",!1,Vr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(e,t){"nocursor"==t&&(ni(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("screenReaderLabel",null,function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,$s),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Vr,!0),n("singleCursorHeightPerLine",!0,Vr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,bo,!0),n("addModeClass",!1,bo,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,bo,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),n("phrases",null)}function $s(e,t,n){var r=n&&n!=Ls;if(!t!=!r){var i=e.display.dragFunctions,o=t?be:we;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function js(e){e.options.lineWrapping?(R(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(T(e.display.wrapper,"CodeMirror-wrap"),hn(e)),Fr(e),Hr(e),mr(e),setTimeout(function(){return _i(e)},100)}function Hs(e,t){var n=this;if(!(this instanceof Hs))return new Hs(e,t);this.options=t=t?U(t):{},U(Bs,t,!1);var r=t.value;"string"==typeof r?r=new Ta(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Hs.inputStyles[t.inputStyle](this),o=this.display=new no(e,r,i,t);for(var c in o.wrapper.CodeMirror=this,Rs(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Si(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new z,keySeq:null,specialChars:null},t.autofocus&&!A&&o.input.focus(),a&&s<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Us(this),La(),Ti(this),this.curOp.forceUpdate=!0,xo(this,r),t.autofocus&&!A||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&ti(n)},20):ni(this),Ps)Ps.hasOwnProperty(c)&&Ps[c](this,t[c],Ls);Ji(this),t.finishInit&&t.finishInit(this);for(var u=0;u<Qs.length;++u)Qs[u](this);ki(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Us(e){var t=e.display;be(t.scroller,"mousedown",Bi(e,_s)),be(t.scroller,"dblclick",a&&s<11?Bi(e,function(t){if(!xe(e,t)){var n=$r(e,t);if(n&&!Is(e,t)&&!Kn(e.display,t)){Te(t);var r=e.findWordAt(n);jo(e.doc,r.anchor,r.head)}}}):function(t){return xe(e,t)||Te(t)}),be(t.scroller,"contextmenu",function(t){return Ds(e,t)}),be(t.input.getField(),"contextmenu",function(n){t.scroller.contains(n.target)||Ds(e,n)});var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),r=t.activeTouch,r.end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}be(t.scroller,"touchstart",function(i){if(!xe(e,i)&&!o(i)&&!Is(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),be(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),be(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!Kn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||l(r,r.prev)?new co(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new co(ct(a.line,0),mt(e.doc,ct(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Te(n)}i()}),be(t.scroller,"touchcancel",i),be(t.scroller,"scroll",function(){t.scroller.clientHeight&&(mi(e,t.scroller.scrollTop),Ai(e,t.scroller.scrollLeft,!0),_e(e,"scroll",e))}),be(t.scroller,"mousewheel",function(t){return so(e,t)}),be(t.scroller,"DOMMouseScroll",function(t){return so(e,t)}),be(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){xe(e,t)||Me(t)},over:function(t){xe(e,t)||(Ia(e,t),Me(t))},start:function(t){return Ma(e,t)},drop:Bi(e,Oa),leave:function(t){xe(e,t)||Da(e)}};var c=t.input.getField();be(c,"keyup",function(t){return gs.call(e,t)}),be(c,"keydown",Bi(e,fs)),be(c,"keypress",Bi(e,ms)),be(c,"focus",function(t){return ti(e,t)}),be(c,"blur",function(t){return ni(e,t)})}Hs.defaults=Bs,Hs.optionHandlers=Ps;var Qs=[];function zs(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=xt(e,t).state:n="prev");var a=e.options.tabSize,s=tt(o,t),l=Q(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&(c=o.mode.indent(i,s.text.slice(u.length),s.text),c==V||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?Q(tt(o,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",h=0;if(e.options.indentWithTabs)for(var f=Math.floor(c/a);f;--f)h+=a,d+="\t";if(h<c&&(d+=Z(c-h)),d!=u)return la(o,d,ct(t,0),ct(t,u.length),"+input"),s.stateAfter=null,!0;for(var p=0;p<o.sel.ranges.length;p++){var g=o.sel.ranges[p];if(g.head.line==t&&g.head.ch<u.length){var m=ct(t,u.length);Uo(o,p,new co(m,m));break}}}Hs.defineInitHook=function(e){return Qs.push(e)};var Ws=null;function Gs(e){Ws=e}function Vs(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Fe(t),c=null;if(s&&r.ranges.length>1)if(Ws&&Ws.text.join("\n")==t){if(r.ranges.length%Ws.text.length==0){c=[];for(var u=0;u<Ws.text.length;u++)c.push(o.splitLines(Ws.text[u]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=te(l,function(e){return[e]}));for(var d=e.curOp.updateInput,h=r.ranges.length-1;h>=0;h--){var f=r.ranges[h],p=f.from(),g=f.to();f.empty()&&(n&&n>0?p=ct(p.line,p.ch-n):e.state.overwrite&&!s?g=ct(g.line,Math.min(tt(o,g.line).text.length,g.ch+ee(l).length)):s&&Ws&&Ws.lineWise&&Ws.text.join("\n")==l.join("\n")&&(p=g=ct(p.line,0)));var m={from:p,to:g,text:c?c[h%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};na(e.doc,m),Nn(e,"inputRead",e,m)}t&&!s&&Ys(e,t),di(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ks(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Li(t,function(){return Vs(t,n,0,null,"paste")}),!0}function Ys(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=zs(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(tt(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=zs(e,i.head.line,"smart"));a&&Nn(e,"electricInput",e,i.head.line)}}}function qs(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:ct(i,0),head:ct(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Xs(e,t,n,r){e.setAttribute("autocorrect",n?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function Js(){var e=M("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=M("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),t}function Zs(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){j(this).focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Bi(this,t[e])(this,n,i),_e(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Ya(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Pi(function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");ne(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,Hr(this)}),removeOverlay:Pi(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Hr(this)}}),indentLine:Pi(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),st(this.doc,e)&&zs(this,e,t,n)}),indentSelection:Pi(function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(zs(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&di(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)zs(this,l,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&Uo(this.doc,r,new co(o,c[r].to()),K)}}}),getTokenAt:function(e,t){return kt(this,e,t)},getLineTokens:function(e,t){return kt(this,ct(e),t,!0)},getTokenTypeAt:function(e){e=mt(this.doc,e);var t,n=_t(this,tt(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var c=i._global[l];c.pred(o,this)&&-1==W(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return e=gt(n,null==e?n.first+n.size-1:e),xt(this,e+1,t).state},cursorCoords:function(e,t){var n,r=this.doc.sel.primary();return n=null==e?r.head:"object"==typeof e?mt(this.doc,e):e?r.from():r.to(),xr(this,n,t||"page")},charCoords:function(e,t){return _r(this,mt(this.doc,e),t||"page")},coordsChar:function(e,t){return e=wr(this,e,t||"page"),Cr(this,e.left,e.top)},lineAtHeight:function(e,t){return e=wr(this,{top:e,left:0},t||"page").top,at(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=tt(this.doc,e)}else r=e;return yr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-un(r):0)},defaultTextHeight:function(){return Nr(this.display)},defaultCharWidth:function(){return Rr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display;e=xr(this,mt(this.doc,e));var a=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&li(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Pi(fs),triggerOnKeyPress:Pi(ms),triggerOnKeyUp:gs,triggerOnMouseDown:Pi(_s),execCommand:function(e){if(ts.hasOwnProperty(e))return ts[e].call(null,this)},triggerElectric:Pi(function(e){Ys(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=mt(this.doc,e),a=0;a<t;++a)if(o=el(this.doc,o,i,n,r),o.hitSide)break;return o},moveH:Pi(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?el(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},q)}),deleteH:Pi(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):qa(this,function(n){var i=el(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}})}),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=mt(this.doc,e),s=0;s<t;++s){var l=xr(this,a,"div");if(null==o?o=l.left:l.left=o,a=tl(this,l,i,n),a.hitSide)break}return a},moveV:Pi(function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(a){if(o)return e<0?a.from():a.to();var s=xr(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=tl(n,s,e,t);return"page"==t&&a==r.sel.primary()&&ui(n,_r(n,l,"div").top-s.top),l},q),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]}),findWordAt:function(e){var t=this.doc,n=tt(t,e.line).text,r=e.ch,i=e.ch;if(n){var o=this.getHelper(e,"wordChars");"before"!=e.sticky&&i!=n.length||!r?++i:--r;var a=n.charAt(r),s=se(a,o)?function(e){return se(e,o)}:/\s/.test(a)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!se(e)};while(r>0&&s(n.charAt(r-1)))--r;while(i<n.length&&s(n.charAt(i)))++i}return new co(ct(e.line,r),ct(e.line,i))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?R(this.display.cursorDiv,"CodeMirror-overwrite"):T(this.display.cursorDiv,"CodeMirror-overwrite"),_e(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==N(F(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Pi(function(e,t){hi(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Jn(this)-this.display.barHeight,width:e.scrollWidth-Jn(this)-this.display.barWidth,clientHeight:er(this),clientWidth:Zn(this)}},scrollIntoView:Pi(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:ct(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?fi(this,e):gi(this,e.from,e.to,e.margin)}),setSize:Pi(function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&gr(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Ur(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,_e(this,"refresh",this)}),operation:function(e){return Li(this,e)},startOperation:function(){return Ti(this)},endOperation:function(){return ki(this)},refresh:Pi(function(){var e=this.display.cachedTextHeight;Hr(this),this.curOp.forceUpdate=!0,mr(this),hi(this,this.doc.scrollLeft,this.doc.scrollTop),Yi(this.display),(null==e||Math.abs(e-Nr(this.display))>.5||this.options.lineWrapping)&&Fr(this),_e(this,"refresh",this)}),swapDoc:Pi(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),xo(this,e),mr(this),this.display.input.reset(),hi(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Nn(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ce(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function el(e,t,n,r,i){var o=t,a=n,s=tt(e,t.line),l=i&&"rtl"==e.direction?-n:n;function c(){var n=t.line+l;return!(n<e.first||n>=e.first+e.size)&&(t=new ct(n,t.ch,t.sticky),s=tt(e,n))}function u(o){var a;if("codepoint"==r){var u=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))a=null;else{var d=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new ct(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(d?2:1))),-n)}}else a=i?es(e.cm,s,t,n):Ja(s,t,n);if(null==a){if(o||!c())return!1;t=Za(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var d=null,h="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;;p=!1){if(n<0&&!u(!p))break;var g=s.text.charAt(t.ch)||"\n",m=se(g,f)?"w":h&&"\n"==g?"n":!h||/\s/.test(g)?null:"p";if(!h||p||m||(m="s"),d&&d!=m){n<0&&(n=1,u(),t.sticky="after");break}if(m&&(d=m),n>0&&!u(!p))break}var v=Jo(e,t,o,a,!0);return dt(o,v)&&(v.hitSide=!0),v}function tl(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,j(e).innerHeight||a(e).documentElement.clientHeight),c=Math.max(l-.5*Nr(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;;){if(o=Cr(e,s,i),!o.outside)break;if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var nl=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new z,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function rl(e,t){var n=or(e,t.line);if(!n||n.hidden)return null;var r=tt(e.doc,t.line),i=nr(n,r,t.line),o=ve(r,e.doc.direction),a="left";if(o){var s=ge(o,t.ch);a=s%2?"right":"left"}var l=ur(i.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function il(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ol(e,t){return t&&(e.bad=!0),e}function al(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function c(e){return function(t){return t.id==e}}function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function d(e){e&&(u(),o+=e)}function h(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void d(n);var o,f=t.getAttribute("cm-marker");if(f){var p=e.findMarks(ct(r,0),ct(i+1,0),c(+f));return void(p.length&&(o=p[0].find(0))&&d(nt(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;g&&u();for(var m=0;m<t.childNodes.length;m++)h(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),g&&(a=!0)}else 3==t.nodeType&&d(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;;){if(h(t),t==n)break;t=t.nextSibling,l=!1}return o}function sl(e,t,n){var r;if(t==e.display.lineDiv){if(r=e.display.lineDiv.childNodes[n],!r)return ol(e.clipPos(ct(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return ll(o,t,n)}}function ll(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!D(r,t))return ol(ct(ot(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?ee(e.rest):e.line;return ol(ct(ot(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));while(s.parentNode!=r)s=s.parentNode;var l=e.measure,c=l.maps;function u(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?l.map:c[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var u=ot(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),ct(u,d)}}}var d=u(a,s,n);if(d)return ol(d,i);for(var h=s.nextSibling,f=a?a.nodeValue.length-n:0;h;h=h.nextSibling){if(d=u(h,h.firstChild,0),d)return ol(ct(d.line,d.ch-f),i);f+=h.textContent.length}for(var p=s.previousSibling,g=n;p;p=p.previousSibling){if(d=u(p,p.firstChild,-1),d)return ol(ct(d.line,d.ch+g),i);g+=p.textContent.length}}nl.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!xe(r,e)){if(r.somethingSelected())Gs({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=qs(r);Gs({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation(function(){r.setSelections(t.ranges,0,K),r.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var a=Ws.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Js(),l=s.firstChild;Xs(l),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Ws.text.join("\n");var c=N($(i));B(l),setTimeout(function(){r.display.lineSpace.removeChild(s),c.focus(),c==i&&n.showPrimarySelection()},50)}}i.contentEditable=!0,Xs(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),be(i,"paste",function(e){!o(e)||xe(r,e)||Ks(e,r)||s<=11&&setTimeout(Bi(r,function(){return t.updateFromDOM()}),20)}),be(i,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),be(i,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),be(i,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),be(i,"touchstart",function(){return n.forceCompositionEnd()}),be(i,"input",function(){t.composing||t.readFromDOMSoon()}),be(i,"copy",a),be(i,"cut",a)},nl.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},nl.prototype.prepareSelection=function(){var e=Kr(this.cm,!1);return e.focus=N($(this.div))==this.div,e},nl.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},nl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},nl.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=sl(t,e.anchorNode,e.anchorOffset),s=sl(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=ut(pt(a,s),i)||0!=ut(ft(a,s),o)){var l=t.display.view,c=i.line>=t.display.viewFrom&&rl(t,i)||{node:l[0].measure.map[2],offset:0},u=o.line<t.display.viewTo&&rl(t,o);if(!u){var d=l[l.length-1].measure,h=d.maps?d.maps[d.maps.length-1]:d.map;u={node:h[h.length-1],offset:h[h.length-2]-h[h.length-3]}}if(c&&u){var f,p=e.rangeCount&&e.getRangeAt(0);try{f=C(c.node,c.offset,u.offset,u.node)}catch(g){}f&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),f.collapsed||(e.removeAllRanges(),e.addRange(f))):(e.removeAllRanges(),e.addRange(f)),p&&null==e.anchorNode?e.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},nl.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},nl.prototype.showMultipleSelections=function(e){O(this.cm.display.cursorDiv,e.cursors),O(this.cm.display.selectionDiv,e.selection)},nl.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},nl.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return D(this.div,t)},nl.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&N($(this.div))==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},nl.prototype.blur=function(){this.div.blur()},nl.prototype.getField=function(){return this.div},nl.prototype.supportsTouch=function(){return!0},nl.prototype.receivedFocus=function(){var e=this,t=this;function n(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,n))}this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Li(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,n)},nl.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},nl.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&u&&this.cm.display.gutterSpecs.length&&il(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=sl(t,e.anchorNode,e.anchorOffset),r=sl(t,e.focusNode,e.focusOffset);n&&r&&Li(t,function(){Go(t.doc,ho(n,r),K),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},nl.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=ct(a.line-1,tt(r.doc,a.line-1).length)),s.ch==tt(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=ct(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=jr(r,a.line))?(t=ot(i.view[0].line),n=i.view[0].node):(t=ot(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,c,u=jr(r,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=ot(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;var d=r.doc.splitLines(al(r,n,c,t,l)),h=nt(r.doc,ct(t,0),ct(l,tt(r.doc,l).text.length));while(d.length>1&&h.length>1)if(ee(d)==ee(h))d.pop(),h.pop(),l--;else{if(d[0]!=h[0])break;d.shift(),h.shift(),t++}var f=0,p=0,g=d[0],m=h[0],v=Math.min(g.length,m.length);while(f<v&&g.charCodeAt(f)==m.charCodeAt(f))++f;var A=ee(d),b=ee(h),y=Math.min(A.length-(1==d.length?f:0),b.length-(1==h.length?f:0));while(p<y&&A.charCodeAt(A.length-p-1)==b.charCodeAt(b.length-p-1))++p;if(1==d.length&&1==h.length&&t==a.line)while(f&&f>a.ch&&A.charCodeAt(A.length-p-1)==b.charCodeAt(b.length-p-1))f--,p++;d[d.length-1]=A.slice(0,A.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(f).replace(/\u200b+$/,"");var w=ct(t,f),_=ct(l,h.length?ee(h).length-p:0);return d.length>1||d[0]||ut(w,_)?(la(r.doc,d,w,_,"+input"),!0):void 0},nl.prototype.ensurePolled=function(){this.forceCompositionEnd()},nl.prototype.reset=function(){this.forceCompositionEnd()},nl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},nl.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},nl.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Li(this.cm,function(){return Hr(e.cm)})},nl.prototype.setUneditable=function(e){e.contentEditable="false"},nl.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Bi(this.cm,Vs)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},nl.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},nl.prototype.onContextMenu=function(){},nl.prototype.resetPosition=function(){},nl.prototype.needsContentAttribute=!0;var cl=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new z,this.hasSelection=!1,this.composing=null,this.resetting=!1};function ul(e,t){if(t=t?U(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=N($(e));t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(be(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(l){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(we(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Hs(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s}function dl(e){e.off=we,e.on=be,e.wheelEventPixels=ao,e.Doc=Ta,e.splitLines=Fe,e.countColumn=Q,e.findColumn=X,e.isWordChar=ae,e.Pass=V,e.signal=_e,e.Line=fn,e.changeEnd=fo,e.scrollbarModel=Ei,e.Pos=ct,e.cmpPos=ut,e.modes=Qe,e.mimeModes=ze,e.resolveMode=Ve,e.getMode=Ke,e.modeExtensions=Ye,e.extendMode=qe,e.copyState=Xe,e.startState=Ze,e.innerMode=Je,e.commands=ts,e.keyMap=Ua,e.keyName=Ka,e.isModifierKey=Ga,e.lookupKey=Wa,e.normalizeKeyMap=za,e.StringStream=et,e.SharedTextMarker=wa,e.TextMarker=ba,e.LineWidget=ga,e.e_preventDefault=Te,e.e_stopPropagation=ke,e.e_stop=Me,e.addClass=R,e.contains=D,e.rmClass=T,e.keyNames=Fa}cl.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!xe(r,e)){if(r.somethingSelected())Gs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=qs(r);Gs({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,K):(n.prevInput="",i.value=t.text.join("\n"),B(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),be(i,"input",function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),be(i,"paste",function(e){xe(r,e)||Ks(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())}),be(i,"cut",o),be(i,"copy",o),be(e.scroller,"paste",function(t){if(!Kn(e,t)&&!xe(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}}),be(e.lineSpace,"selectstart",function(t){Kn(e,t)||Te(t)}),be(i,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),be(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},cl.prototype.createField=function(e){this.wrapper=Js(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Xs(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},cl.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},cl.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Kr(e);if(e.options.moveInputWithCursor){var i=xr(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},cl.prototype.showSelection=function(e){var t=this.cm,n=t.display;O(n.cursorDiv,e.cursors),O(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},cl.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&B(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},cl.prototype.getField=function(){return this.textarea},cl.prototype.supportsTouch=function(){return!1},cl.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!A||N($(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(e){}},cl.prototype.blur=function(){this.textarea.blur()},cl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},cl.prototype.receivedFocus=function(){this.slowPoll()},cl.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},cl.prototype.fastPoll=function(){var e=!1,t=this;function n(){var r=t.poll();r||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},cl.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||$e(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}var l=0,c=Math.min(r.length,i.length);while(l<c&&r.charCodeAt(l)==i.charCodeAt(l))++l;return Li(t,function(){Vs(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},cl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},cl.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},cl.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=$r(n,e),c=r.scroller.scrollTop;if(o&&!h){var u=n.options.resetSelectionOnContextMenu;u&&-1==n.doc.sel.contains(o)&&Bi(n,Go)(n.doc,ho(o),K);var d,f=i.style.cssText,p=t.wrapper.style.cssText,g=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(e.clientY-g.top-5)+"px; left: "+(e.clientX-g.left-5)+"px;\n      z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(d=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,d),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=A,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&v(),E){Me(e);var m=function(){we(window,"mouseup",m),setTimeout(A,20)};be(window,"mouseup",m)}else setTimeout(A,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function A(){if(t.contextMenuPending==A&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=f,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&v();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Bi(n,ea)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},cl.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},cl.prototype.setUneditable=function(){},cl.prototype.needsContentAttribute=!1,Fs(Hs),Zs(Hs);var hl="iter insert remove copy getEditor constructor".split(" ");for(var fl in Ta.prototype)Ta.prototype.hasOwnProperty(fl)&&W(hl,fl)<0&&(Hs.prototype[fl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ta.prototype[fl]));return Ce(Ta),Hs.inputStyles={textarea:cl,contenteditable:nl},Hs.defineMode=function(e){Hs.defaults.mode||"null"==e||(Hs.defaults.mode=e),We.apply(this,arguments)},Hs.defineMIME=Ge,Hs.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Hs.defineMIME("text/plain","null"),Hs.defineExtension=function(e,t){Hs.prototype[e]=t},Hs.defineDocExtension=function(e,t){Ta.prototype[e]=t},Hs.fromTextArea=ul,dl(Hs),Hs.version="5.65.20",Hs})},83821:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="PlayCircleFilled",c.inheritAttrs=!1;var u=c},83823:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(90144);function i(e){const t="function"===typeof e?e():e,n=(0,r.KR)(t);function i(e){n.value=e}return[n,i]}},83972:function(e,t,n){"use strict";var r=n(20034),i=String,o=TypeError;e.exports=function(e){if(void 0===e||r(e))return e;throw new o(i(e)+" is not an object or undefined")}},84215:function(e,t,n){"use strict";var r=n(44576),i=n(82839),o=n(22195),a=function(e){return i.slice(0,e.length)===e};e.exports=function(){return a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"}()},84270:function(e,t,n){"use strict";var r=n(69565),i=n(94901),o=n(20034),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},84339:function(e,t,n){n(44114),n(18111),n(20116);const r="[A-Za-z$_][0-9A-Za-z$_]*",i=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],o=["true","false","null","undefined","NaN","Infinity"],a=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],l=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],c=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],u=[].concat(l,a,s);function d(e){const t=e.regex,n=(e,{after:t})=>{const n="</"+e[0].slice(1),r=e.input.indexOf(n,t);return-1!==r},d=r,h={begin:"<>",end:"</>"},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,p={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const r=e[0].length+e.index,i=e.input[r];if("<"===i||","===i)return void t.ignoreMatch();let o;">"===i&&(n(e,{after:r})||t.ignoreMatch());const a=e.input.substring(r);((o=a.match(/^\s*=/))||(o=a.match(/^\s+extends\s+/))&&0===o.index)&&t.ignoreMatch()}},g={$pattern:r,keyword:i,literal:o,built_in:u,"variable.language":c},m="[0-9](_?[0-9])*",v=`\\.(${m})`,A="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",b={className:"number",variants:[{begin:`(\\b(${A})((${v})|\\.)?|(${v}))[eE][+-]?(${m})\\b`},{begin:`\\b(${A})\\b((${v})\\b|\\.)?|(${v})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},y={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},w={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"xml"}},_={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"css"}},x={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"graphql"}},E={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,y]},S=e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:d+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),C={className:"comment",variants:[S,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},T=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,w,_,x,E,{match:/\$\d+/},b];y.contains=T.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(T)});const k=[].concat(C,y.contains),O=k.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat(k)}]),M={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:O},I={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,t.concat(d,"(",t.concat(/\./,d),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,d],scope:{1:"keyword",3:"title.class"}}]},D={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...a,...s]}},N={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},R={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[M],illegal:/%/},L={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function B(e){return t.concat("(?!",e.join("|"),")")}const P={match:t.concat(/\b/,B([...l,"super","import"].map(e=>`${e}\\s*\\(`)),d,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},F={begin:t.concat(/\./,t.lookahead(t.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},$={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},M]},j="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",H={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(j)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[M]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:D},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),N,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,w,_,x,E,C,{match:/\$\d+/},b,D,{scope:"attr",match:d+t.lookahead(":"),relevance:0},H,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,e.REGEXP_MODE,{className:"function",begin:j,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:h.begin,end:h.end},{match:f},{begin:p.begin,"on:begin":p.isTrulyOpeningTag,end:p.end}],subLanguage:"xml",contains:[{begin:p.begin,end:p.end,skip:!0,contains:["self"]}]}]},R,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[M,e.inherit(e.TITLE_MODE,{begin:d,className:"title.function"})]},{match:/\.\.\./,relevance:0},F,{match:"\\$"+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[M]},P,L,I,$,{match:/\$[(.]/}]}}function h(e){const t=e.regex,n=d(e),a=r,s=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],l={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},h={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:s},contains:[n.exports.CLASS_REFERENCE]},f={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},p=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],g={$pattern:r,keyword:i.concat(p),literal:o,built_in:u.concat(s),"variable.language":c},m={className:"meta",begin:"@"+a},v=(e,t,n)=>{const r=e.contains.findIndex(e=>e.label===t);if(-1===r)throw new Error("can not find mode to replace");e.contains.splice(r,1,n)};Object.assign(n.keywords,g),n.exports.PARAMS_CONTAINS.push(m);const A=n.contains.find(e=>"attr"===e.scope),b=Object.assign({},A,{match:t.concat(a,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,A,b]),n.contains=n.contains.concat([m,l,h,b]),v(n,"shebang",e.SHEBANG()),v(n,"use_strict",f);const y=n.contains.find(e=>"func.def"===e.label);return y.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}e.exports=h},84356:function(e){function t(e){const t=e.regex,n="[A-Za-z_][0-9A-Za-z_]*",r={keyword:["break","case","catch","continue","debugger","do","else","export","for","function","if","import","in","new","of","return","switch","try","var","void","while"],literal:["BackSlash","DoubleQuote","ForwardSlash","Infinity","NaN","NewLine","PI","SingleQuote","Tab","TextFormatting","false","null","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","ChangeTimeZone","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","ConvexHull","Cos","Count","Crosses","Cut","Date|0","DateAdd","DateDiff","DateOnly","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","DistanceToCoordinate","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureInFilter","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipClass","FeatureSetByRelationshipName","Filter","FilterBySubtypeCode","Find","First|0","Floor","FromCharCode","FromCodePoint","FromJSON","Front","GdbVersion","Generalize","Geometry","GetEnvironment","GetFeatureSet","GetFeatureSetInfo","GetUser","GroupBy","Guid","HasKey","HasValue","Hash","Hour","IIf","ISOMonth","ISOWeek","ISOWeekday","ISOYear","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","IsSelfIntersecting","IsSimple","KnowledgeGraphByPortalItem","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","MeasureToCoordinate","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NearestCoordinate","NearestVertex","NextSequenceValue","None","Now","Number","Offset","OrderBy","Overlaps","Point","PointToCoordinate","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","QueryGraph","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","StandardizeFilename","StandardizeGuid","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Time","TimeZone","TimeZoneOffset","Timestamp","ToCharCode","ToCodePoint","ToHex","ToLocal","ToUTC","Today","Top|0","Touches","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When|0","Within","Year|0"]},i=["aggregatedFeatures","analytic","config","datapoint","datastore","editcontext","feature","featureSet","feedfeature","fencefeature","fencenotificationtype","graph","join","layer","locationupdate","map","measure","measure","originalFeature","record","reference","rowindex","sourcedatastore","sourcefeature","sourcelayer","target","targetdatastore","targetfeature","targetlayer","userInput","value","variables","view"],o={className:"symbol",begin:"\\$"+t.either(...i)},a={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},s={className:"subst",begin:"\\$\\{",end:"\\}",keywords:r,contains:[]},l={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,s]};s.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,a,e.REGEXP_MODE];const c=s.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:r,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,a,{begin:/[{,]\s*/,relevance:0,contains:[{begin:n+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:n,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+n+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:c}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{className:"title.function",begin:n}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:c}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}e.exports=t},84434:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});n(18111),n(22489);var r={android:/(Android)\s([\d.]+)/,ios:/(Version)\/([\d.]+)/},i=["avc1.42E01E, mp4a.40.2","avc1.58A01E, mp4a.40.2","avc1.4D401E, mp4a.40.2","avc1.64001E, mp4a.40.2","avc1.42E01E","mp4v.20.8","mp4v.20.8, mp4a.40.2","mp4v.20.240, mp4a.40.2"],o={get device(){var e=o.os;return e.isPc?"pc":"mobile"},get browser(){if("undefined"===typeof navigator)return"";var e=navigator.userAgent.toLowerCase(),t={ie:/rv:([\d.]+)\) like gecko/,firefox:/firefox\/([\d.]+)/,chrome:/chrome\/([\d.]+)/,opera:/opera.([\d.]+)/,safari:/version\/([\d.]+).*safari/};return[].concat(Object.keys(t).filter(function(n){return t[n].test(e)}))[0]},get os(){if("undefined"===typeof navigator)return{};var e=navigator.userAgent,t=/(?:Windows Phone)/.test(e),n=/(?:SymbianOS)/.test(e)||t,r=/(?:Tizen)/gi.test(e),i=/(?:Web0S)/gi.test(e),o=/(?:Android)/.test(e),a=/(?:Firefox)/.test(e),s=/(?:iPad|PlayBook)/.test(e)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,l=s||o&&!/(?:Mobile)/.test(e)||a&&/(?:Tablet)/.test(e),c=/(?:iPhone)/.test(e)&&!l,u=!c&&!o&&!n&&!l;return{isTablet:l,isPhone:c,isIpad:s,isIos:c||s,isAndroid:o,isPc:u,isSymbian:n,isWindowsPhone:t,isFireFox:a,isTizen:r,isWebOS:i}},get osVersion(){if("undefined"===typeof navigator)return 0;var e=navigator.userAgent,t="";t=/(?:iPhone)|(?:iPad|PlayBook)/.test(e)?r.ios:r.android;var n=t?t.exec(e):[];if(n&&n.length>=3){var i=n[2].split(".");return i.length>0?parseInt(i[0]):0}return 0},get isWeixin(){if("undefined"===typeof navigator)return!1;var e=/(micromessenger)\/([\d.]+)/,t=e.exec(navigator.userAgent.toLocaleLowerCase());return!!t},isSupportMP4:function(){var e={isSupport:!1,mime:""};if("undefined"===typeof document)return e;if(this.supportResult)return this.supportResult;var t=document.createElement("video");return"function"===typeof t.canPlayType&&i.map(function(n){"probably"===t.canPlayType('video/mp4; codecs="'.concat(n,'"'))&&(e.isSupport=!0,e.mime+="||".concat(n))}),this.supportResult=e,t=null,e},isMSESupport:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'video/mp4; codecs="avc1.42E01E,mp4a.40.2"';if("undefined"===typeof MediaSource||!MediaSource)return!1;try{return MediaSource.isTypeSupported(e)}catch(t){return this._logger.error(e,t),!1}},isHevcSupported:function(){return!("undefined"===typeof MediaSource||!MediaSource.isTypeSupported)&&(MediaSource.isTypeSupported('video/mp4;codecs="hev1.1.6.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.2.4.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.3.E.L120.90"')||MediaSource.isTypeSupported('video/mp4;codecs="hev1.4.10.L120.90"'))},probeConfigSupported:function(e){var t={supported:!1,smooth:!1,powerEfficient:!1};if(!e||"undefined"===typeof navigator)return Promise.resolve(t);if(navigator.mediaCapabilities&&navigator.mediaCapabilities.decodingInfo)return navigator.mediaCapabilities.decodingInfo(e);var n=e.video||{},r=e.audio||{};try{var i=MediaSource.isTypeSupported(n.contentType),o=MediaSource.isTypeSupported(r.contentType);return Promise.resolve({supported:i&&o,smooth:!1,powerEfficient:!1})}catch(a){return Promise.resolve(t)}}}},84453:function(e,t,n){"use strict";n(18111),n(7588);function r(){const e=t=>{e.current=t};return e}t.Ay=r},84549:function(e,t,n){"use strict";var r=n(44576);e.exports=function(e,t){var n=r.Iterator,i=n&&n.prototype,o=i&&i[e],a=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(s){s instanceof t||(a=!1)}if(!a)return o}},84916:function(e,t,n){"use strict";var r=n(97751),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},o=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var n=r("Set");try{(new n)[e](i(0));try{return(new n)[e](i(-1)),!1}catch(s){if(!t)return!0;try{return(new n)[e](o(-1/0)),!1}catch(l){var a=new n;return a.add(1),a.add(2),t(a[e](o(1/0)))}}}catch(l){return!1}}},85198:function(e,t,n){"use strict";n.d(t,{V8:function(){return p},g2:function(){return l},zw:function(){return c}});n(18111),n(7588);var r=n(51732),i=n(39258),o=n(45887),a=n(64739);const s=new WeakMap;function l(e){let t=s.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof a.A?t+=r.id:t+=r&&"object"===typeof r?l(r):r}),s.set(e,t)),t}function c(e,t){return(0,r.A)(`${t}_${l(e)}`)}const u=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),d="_bAmBoO_";function h(e,t,n){var r,a;if((0,o.A)()){(0,i.BD)(e,u);const o=document.createElement("div");o.style.position="fixed",o.style.left="0",o.style.top="0",null===t||void 0===t||t(o),document.body.appendChild(o);const s=n?n(o):null===(r=getComputedStyle(o).content)||void 0===r?void 0:r.includes(d);return null===(a=o.parentNode)||void 0===a||a.removeChild(o),(0,i.m6)(u),s}return!1}let f;function p(){return void 0===f&&(f=h(`@layer ${u} { .${u} { content: "${d}"!important; } }`,e=>{e.className=u})),f}},85492:function(e,t,n){n(44114),n(18111),n(22489),n(7588),n(79577),n(41549),n(49797),n(49631),n(35623),n(64979),
/*!
 * Cropper.js v1.6.2
 * https://fengyuanchen.github.io/cropperjs
 *
 * Copyright 2015-present Chen Fengyuan
 * Released under the MIT license
 *
 * Date: 2024-04-21T07:43:05.335Z
 */
function(t,n){e.exports=n()}(0,function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function t(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach(function(e){l(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function n(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function r(e){var t=n(e,"string");return"symbol"==typeof t?t:t+""}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,n){return t=r(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){return u(e)||d(e)||h(e)||p()}function u(e){if(Array.isArray(e))return f(e)}function d(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function h(e,t){if(e){if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var g="undefined"!==typeof window&&"undefined"!==typeof window.document,m=g?window:{},v=!(!g||!m.document.documentElement)&&"ontouchstart"in m.document.documentElement,A=!!g&&"PointerEvent"in m,b="cropper",y="all",w="crop",_="move",x="zoom",E="e",S="w",C="s",T="n",k="ne",O="nw",M="se",I="sw",D="".concat(b,"-crop"),N="".concat(b,"-disabled"),R="".concat(b,"-hidden"),L="".concat(b,"-hide"),B="".concat(b,"-invisible"),P="".concat(b,"-modal"),F="".concat(b,"-move"),$="".concat(b,"Action"),j="".concat(b,"Preview"),H="crop",U="move",Q="none",z="crop",W="cropend",G="cropmove",V="cropstart",K="dblclick",Y=v?"touchstart":"mousedown",q=v?"touchmove":"mousemove",X=v?"touchend touchcancel":"mouseup",J=A?"pointerdown":Y,Z=A?"pointermove":q,ee=A?"pointerup pointercancel":X,te="ready",ne="resize",re="wheel",ie="zoom",oe="image/jpeg",ae=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,se=/^data:/,le=/^data:image\/jpeg;base64,/,ce=/^img|canvas$/i,ue=200,de=100,he={viewMode:0,dragMode:H,initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:ue,minContainerHeight:de,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},fe='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>',pe=Number.isNaN||m.isNaN;function ge(e){return"number"===typeof e&&!pe(e)}var me=function(e){return e>0&&e<1/0};function ve(e){return"undefined"===typeof e}function Ae(e){return"object"===i(e)&&null!==e}var be=Object.prototype.hasOwnProperty;function ye(e){if(!Ae(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&be.call(n,"isPrototypeOf")}catch(r){return!1}}function we(e){return"function"===typeof e}var _e=Array.prototype.slice;function xe(e){return Array.from?Array.from(e):_e.call(e)}function Ee(e,t){return e&&we(t)&&(Array.isArray(e)||ge(e.length)?xe(e).forEach(function(n,r){t.call(e,n,r,e)}):Ae(e)&&Object.keys(e).forEach(function(n){t.call(e,e[n],n,e)})),e}var Se=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Ae(e)&&n.length>0&&n.forEach(function(t){Ae(t)&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e},Ce=/\.\d*(?:0|9){12}\d*$/;function Te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return Ce.test(e)?Math.round(e*t)/t:e}var ke=/^width|height|left|top|marginLeft|marginTop$/;function Oe(e,t){var n=e.style;Ee(t,function(e,t){ke.test(t)&&ge(e)&&(e="".concat(e,"px")),n[t]=e})}function Me(e,t){return e.classList?e.classList.contains(t):e.className.indexOf(t)>-1}function Ie(e,t){if(t)if(ge(e.length))Ee(e,function(e){Ie(e,t)});else if(e.classList)e.classList.add(t);else{var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function De(e,t){t&&(ge(e.length)?Ee(e,function(e){De(e,t)}):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function Ne(e,t,n){t&&(ge(e.length)?Ee(e,function(e){Ne(e,t,n)}):n?Ie(e,t):De(e,t))}var Re=/([a-z\d])([A-Z])/g;function Le(e){return e.replace(Re,"$1-$2").toLowerCase()}function Be(e,t){return Ae(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(Le(t)))}function Pe(e,t,n){Ae(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(Le(t)),n)}function Fe(e,t){if(Ae(e[t]))try{delete e[t]}catch(n){e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch(n){e.dataset[t]=void 0}else e.removeAttribute("data-".concat(Le(t)))}var $e=/\s\s*/,je=function(){var e=!1;if(g){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});m.addEventListener("test",n,r),m.removeEventListener("test",n,r)}return e}();function He(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split($e).forEach(function(t){if(!je){var o=e.listeners;o&&o[t]&&o[t][n]&&(i=o[t][n],delete o[t][n],0===Object.keys(o[t]).length&&delete o[t],0===Object.keys(o).length&&delete e.listeners)}e.removeEventListener(t,i,r)})}function Ue(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split($e).forEach(function(t){if(r.once&&!je){var o=e.listeners,a=void 0===o?{}:o;i=function(){delete a[t][n],e.removeEventListener(t,i,r);for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];n.apply(e,s)},a[t]||(a[t]={}),a[t][n]&&e.removeEventListener(t,a[t][n],r),a[t][n]=i,e.listeners=a}e.addEventListener(t,i,r)})}function Qe(e,t,n){var r;return we(Event)&&we(CustomEvent)?r=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent"),r.initCustomEvent(t,!0,!0,n)),e.dispatchEvent(r)}function ze(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var We=m.location,Ge=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function Ve(e){var t=e.match(Ge);return null!==t&&(t[1]!==We.protocol||t[2]!==We.hostname||t[3]!==We.port)}function Ke(e){var t="timestamp=".concat((new Date).getTime());return e+(-1===e.indexOf("?")?"?":"&")+t}function Ye(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,i=e.translateX,o=e.translateY,a=[];ge(i)&&0!==i&&a.push("translateX(".concat(i,"px)")),ge(o)&&0!==o&&a.push("translateY(".concat(o,"px)")),ge(t)&&0!==t&&a.push("rotate(".concat(t,"deg)")),ge(n)&&1!==n&&a.push("scaleX(".concat(n,")")),ge(r)&&1!==r&&a.push("scaleY(".concat(r,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function qe(e){var n=t({},e),r=0;return Ee(e,function(e,t){delete n[t],Ee(n,function(t){var n=Math.abs(e.startX-t.startX),i=Math.abs(e.startY-t.startY),o=Math.abs(e.endX-t.endX),a=Math.abs(e.endY-t.endY),s=Math.sqrt(n*n+i*i),l=Math.sqrt(o*o+a*a),c=(l-s)/s;Math.abs(c)>Math.abs(r)&&(r=c)})}),r}function Xe(e,n){var r=e.pageX,i=e.pageY,o={endX:r,endY:i};return n?o:t({startX:r,startY:i},o)}function Je(e){var t=0,n=0,r=0;return Ee(e,function(e){var i=e.startX,o=e.startY;t+=i,n+=o,r+=1}),t/=r,n/=r,{pageX:t,pageY:n}}function Ze(e){var t=e.aspectRatio,n=e.height,r=e.width,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",o=me(r),a=me(n);if(o&&a){var s=n*t;"contain"===i&&s>r||"cover"===i&&s<r?n=r/t:r=n*t}else o?n=r/t:a&&(r=n*t);return{width:r,height:n}}function et(e){var t=e.width,n=e.height,r=e.degree;if(r=Math.abs(r)%180,90===r)return{width:n,height:t};var i=r%90*Math.PI/180,o=Math.sin(i),a=Math.cos(i),s=t*a+n*o,l=t*o+n*a;return r>90?{width:l,height:s}:{width:s,height:l}}function tt(e,t,n,r){var i=t.aspectRatio,o=t.naturalWidth,a=t.naturalHeight,s=t.rotate,l=void 0===s?0:s,u=t.scaleX,d=void 0===u?1:u,h=t.scaleY,f=void 0===h?1:h,p=n.aspectRatio,g=n.naturalWidth,m=n.naturalHeight,v=r.fillColor,A=void 0===v?"transparent":v,b=r.imageSmoothingEnabled,y=void 0===b||b,w=r.imageSmoothingQuality,_=void 0===w?"low":w,x=r.maxWidth,E=void 0===x?1/0:x,S=r.maxHeight,C=void 0===S?1/0:S,T=r.minWidth,k=void 0===T?0:T,O=r.minHeight,M=void 0===O?0:O,I=document.createElement("canvas"),D=I.getContext("2d"),N=Ze({aspectRatio:p,width:E,height:C}),R=Ze({aspectRatio:p,width:k,height:M},"cover"),L=Math.min(N.width,Math.max(R.width,g)),B=Math.min(N.height,Math.max(R.height,m)),P=Ze({aspectRatio:i,width:E,height:C}),F=Ze({aspectRatio:i,width:k,height:M},"cover"),$=Math.min(P.width,Math.max(F.width,o)),j=Math.min(P.height,Math.max(F.height,a)),H=[-$/2,-j/2,$,j];return I.width=Te(L),I.height=Te(B),D.fillStyle=A,D.fillRect(0,0,L,B),D.save(),D.translate(L/2,B/2),D.rotate(l*Math.PI/180),D.scale(d,f),D.imageSmoothingEnabled=y,D.imageSmoothingQuality=_,D.drawImage.apply(D,[e].concat(c(H.map(function(e){return Math.floor(Te(e))})))),D.restore(),I}var nt=String.fromCharCode;function rt(e,t,n){var r="";n+=t;for(var i=t;i<n;i+=1)r+=nt(e.getUint8(i));return r}var it=/^data:.*,/;function ot(e){var t=e.replace(it,""),n=atob(t),r=new ArrayBuffer(n.length),i=new Uint8Array(r);return Ee(i,function(e,t){i[t]=n.charCodeAt(t)}),r}function at(e,t){var n=[],r=8192,i=new Uint8Array(e);while(i.length>0)n.push(nt.apply(null,xe(i.subarray(0,r)))),i=i.subarray(r);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}function st(e){var t,n=new DataView(e);try{var r,i,o;if(255===n.getUint8(0)&&216===n.getUint8(1)){var a=n.byteLength,s=2;while(s+1<a){if(255===n.getUint8(s)&&225===n.getUint8(s+1)){i=s;break}s+=1}}if(i){var l=i+4,c=i+10;if("Exif"===rt(n,l,4)){var u=n.getUint16(c);if(r=18761===u,(r||19789===u)&&42===n.getUint16(c+2,r)){var d=n.getUint32(c+4,r);d>=8&&(o=c+d)}}}if(o){var h,f,p=n.getUint16(o,r);for(f=0;f<p;f+=1)if(h=o+12*f+2,274===n.getUint16(h,r)){h+=8,t=n.getUint16(h,r),n.setUint16(h,1,r);break}}}catch(g){t=1}return t}function lt(e){var t=0,n=1,r=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90;break}return{rotate:t,scaleX:n,scaleY:r}}var ct={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,n=this.container,r=this.cropper,i=Number(t.minContainerWidth),o=Number(t.minContainerHeight);Ie(r,R),De(e,R);var a={width:Math.max(n.offsetWidth,i>=0?i:ue),height:Math.max(n.offsetHeight,o>=0?o:de)};this.containerData=a,Oe(r,{width:a.width,height:a.height}),Ie(e,R),De(r,R)},initCanvas:function(){var e=this.containerData,t=this.imageData,n=this.options.viewMode,r=Math.abs(t.rotate)%180===90,i=r?t.naturalHeight:t.naturalWidth,o=r?t.naturalWidth:t.naturalHeight,a=i/o,s=e.width,l=e.height;e.height*a>e.width?3===n?s=e.height*a:l=e.width/a:3===n?l=e.width/a:s=e.height*a;var c={aspectRatio:a,naturalWidth:i,naturalHeight:o,width:s,height:l};this.canvasData=c,this.limited=1===n||2===n,this.limitCanvas(!0,!0),c.width=Math.min(Math.max(c.width,c.minWidth),c.maxWidth),c.height=Math.min(Math.max(c.height,c.minHeight),c.maxHeight),c.left=(e.width-c.width)/2,c.top=(e.height-c.height)/2,c.oldLeft=c.left,c.oldTop=c.top,this.initialCanvasData=Se({},c)},limitCanvas:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=n.viewMode,s=i.aspectRatio,l=this.cropped&&o;if(e){var c=Number(n.minCanvasWidth)||0,u=Number(n.minCanvasHeight)||0;a>1?(c=Math.max(c,r.width),u=Math.max(u,r.height),3===a&&(u*s>c?c=u*s:u=c/s)):a>0&&(c?c=Math.max(c,l?o.width:0):u?u=Math.max(u,l?o.height:0):l&&(c=o.width,u=o.height,u*s>c?c=u*s:u=c/s));var d=Ze({aspectRatio:s,width:c,height:u});c=d.width,u=d.height,i.minWidth=c,i.minHeight=u,i.maxWidth=1/0,i.maxHeight=1/0}if(t)if(a>(l?0:1)){var h=r.width-i.width,f=r.height-i.height;i.minLeft=Math.min(0,h),i.minTop=Math.min(0,f),i.maxLeft=Math.max(0,h),i.maxTop=Math.max(0,f),l&&this.limited&&(i.minLeft=Math.min(o.left,o.left+(o.width-i.width)),i.minTop=Math.min(o.top,o.top+(o.height-i.height)),i.maxLeft=o.left,i.maxTop=o.top,2===a&&(i.width>=r.width&&(i.minLeft=Math.min(0,h),i.maxLeft=Math.max(0,h)),i.height>=r.height&&(i.minTop=Math.min(0,f),i.maxTop=Math.max(0,f))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=r.width,i.maxTop=r.height},renderCanvas:function(e,t){var n=this.canvasData,r=this.imageData;if(t){var i=et({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),o=i.width,a=i.height,s=n.width*(o/n.naturalWidth),l=n.height*(a/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(l-n.height)/2,n.width=s,n.height=l,n.aspectRatio=o/a,n.naturalWidth=o,n.naturalHeight=a,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCanvas(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,Oe(this.canvas,Se({width:n.width,height:n.height},Ye({translateX:n.left,translateY:n.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,n=this.imageData,r=n.naturalWidth*(t.width/t.naturalWidth),i=n.naturalHeight*(t.height/t.naturalHeight);Se(n,{width:r,height:i,left:(t.width-r)/2,top:(t.height-i)/2}),Oe(this.image,Se({width:n.width,height:n.height},Ye(Se({translateX:n.left,translateY:n.top},n)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,n=e.aspectRatio||e.initialAspectRatio,r=Number(e.autoCropArea)||.8,i={width:t.width,height:t.height};n&&(t.height*n>t.width?i.height=i.width/n:i.width=i.height*n),this.cropBoxData=i,this.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*r),i.height=Math.max(i.minHeight,i.height*r),i.left=t.left+(t.width-i.width)/2,i.top=t.top+(t.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=Se({},i)},limitCropBox:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=this.limited,s=n.aspectRatio;if(e){var l=Number(n.minCropBoxWidth)||0,c=Number(n.minCropBoxHeight)||0,u=a?Math.min(r.width,i.width,i.width+i.left,r.width-i.left):r.width,d=a?Math.min(r.height,i.height,i.height+i.top,r.height-i.top):r.height;l=Math.min(l,r.width),c=Math.min(c,r.height),s&&(l&&c?c*s>l?c=l/s:l=c*s:l?c=l/s:c&&(l=c*s),d*s>u?d=u/s:u=d*s),o.minWidth=Math.min(l,u),o.minHeight=Math.min(c,d),o.maxWidth=u,o.maxHeight=d}t&&(a?(o.minLeft=Math.max(0,i.left),o.minTop=Math.max(0,i.top),o.maxLeft=Math.min(r.width,i.left+i.width)-o.width,o.maxTop=Math.min(r.height,i.top+i.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=r.width-o.width,o.maxTop=r.height-o.height))},renderCropBox:function(){var e=this.options,t=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCropBox(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,e.movable&&e.cropBoxMovable&&Pe(this.face,$,n.width>=t.width&&n.height>=t.height?_:y),Oe(this.cropBox,Se({width:n.width,height:n.height},Ye({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),Qe(this.element,z,this.getData())}},ut={initPreview:function(){var e=this.element,t=this.crossOrigin,n=this.options.preview,r=t?this.crossOriginUrl:this.url,i=e.alt||"The image to preview",o=document.createElement("img");if(t&&(o.crossOrigin=t),o.src=r,o.alt=i,this.viewBox.appendChild(o),this.viewBoxImage=o,n){var a=n;"string"===typeof n?a=e.ownerDocument.querySelectorAll(n):n.querySelector&&(a=[n]),this.previews=a,Ee(a,function(e){var n=document.createElement("img");Pe(e,j,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),t&&(n.crossOrigin=t),n.src=r,n.alt=i,n.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',e.innerHTML="",e.appendChild(n)})}},resetPreview:function(){Ee(this.previews,function(e){var t=Be(e,j);Oe(e,{width:t.width,height:t.height}),e.innerHTML=t.html,Fe(e,j)})},preview:function(){var e=this.imageData,t=this.canvasData,n=this.cropBoxData,r=n.width,i=n.height,o=e.width,a=e.height,s=n.left-t.left-e.left,l=n.top-t.top-e.top;this.cropped&&!this.disabled&&(Oe(this.viewBoxImage,Se({width:o,height:a},Ye(Se({translateX:-s,translateY:-l},e)))),Ee(this.previews,function(t){var n=Be(t,j),c=n.width,u=n.height,d=c,h=u,f=1;r&&(f=c/r,h=i*f),i&&h>u&&(f=u/i,d=r*f,h=u),Oe(t,{width:d,height:h}),Oe(t.getElementsByTagName("img")[0],Se({width:o*f,height:a*f},Ye(Se({translateX:-s*f,translateY:-l*f},e))))}))}},dt={bind:function(){var e=this.element,t=this.options,n=this.cropper;we(t.cropstart)&&Ue(e,V,t.cropstart),we(t.cropmove)&&Ue(e,G,t.cropmove),we(t.cropend)&&Ue(e,W,t.cropend),we(t.crop)&&Ue(e,z,t.crop),we(t.zoom)&&Ue(e,ie,t.zoom),Ue(n,J,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&Ue(n,re,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&Ue(n,K,this.onDblclick=this.dblclick.bind(this)),Ue(e.ownerDocument,Z,this.onCropMove=this.cropMove.bind(this)),Ue(e.ownerDocument,ee,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&Ue(window,ne,this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,n=this.cropper;we(t.cropstart)&&He(e,V,t.cropstart),we(t.cropmove)&&He(e,G,t.cropmove),we(t.cropend)&&He(e,W,t.cropend),we(t.crop)&&He(e,z,t.crop),we(t.zoom)&&He(e,ie,t.zoom),He(n,J,this.onCropStart),t.zoomable&&t.zoomOnWheel&&He(n,re,this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&He(n,K,this.onDblclick),He(e.ownerDocument,Z,this.onCropMove),He(e.ownerDocument,ee,this.onCropEnd),t.responsive&&He(window,ne,this.onResize)}},ht={resize:function(){if(!this.disabled){var e,t,n=this.options,r=this.container,i=this.containerData,o=r.offsetWidth/i.width,a=r.offsetHeight/i.height,s=Math.abs(o-1)>Math.abs(a-1)?o:a;if(1!==s)n.restore&&(e=this.getCanvasData(),t=this.getCropBoxData()),this.render(),n.restore&&(this.setCanvasData(Ee(e,function(t,n){e[n]=t*s})),this.setCropBoxData(Ee(t,function(e,n){t[n]=e*s})))}},dblclick:function(){this.disabled||this.options.dragMode===Q||this.setDragMode(Me(this.dragBox,D)?U:H)},wheel:function(e){var t=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(e.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50),e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*n,e)))},cropStart:function(e){var t=e.buttons,n=e.button;if(!(this.disabled||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(ge(t)&&1!==t||ge(n)&&0!==n||e.ctrlKey))){var r,i=this.options,o=this.pointers;e.changedTouches?Ee(e.changedTouches,function(e){o[e.identifier]=Xe(e)}):o[e.pointerId||0]=Xe(e),r=Object.keys(o).length>1&&i.zoomable&&i.zoomOnTouch?x:Be(e.target,$),ae.test(r)&&!1!==Qe(this.element,V,{originalEvent:e,action:r})&&(e.preventDefault(),this.action=r,this.cropping=!1,r===w&&(this.cropping=!0,Ie(this.dragBox,P)))}},cropMove:function(e){var t=this.action;if(!this.disabled&&t){var n=this.pointers;e.preventDefault(),!1!==Qe(this.element,G,{originalEvent:e,action:t})&&(e.changedTouches?Ee(e.changedTouches,function(e){Se(n[e.identifier]||{},Xe(e,!0))}):Se(n[e.pointerId||0]||{},Xe(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var t=this.action,n=this.pointers;e.changedTouches?Ee(e.changedTouches,function(e){delete n[e.identifier]}):delete n[e.pointerId||0],t&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,Ne(this.dragBox,P,this.cropped&&this.options.modal)),Qe(this.element,W,{originalEvent:e,action:t}))}}},ft={change:function(e){var t,n=this.options,r=this.canvasData,i=this.containerData,o=this.cropBoxData,a=this.pointers,s=this.action,l=n.aspectRatio,c=o.left,u=o.top,d=o.width,h=o.height,f=c+d,p=u+h,g=0,m=0,v=i.width,A=i.height,b=!0;!l&&e.shiftKey&&(l=d&&h?d/h:1),this.limited&&(g=o.minLeft,m=o.minTop,v=g+Math.min(i.width,r.width,r.left+r.width),A=m+Math.min(i.height,r.height,r.top+r.height));var D=a[Object.keys(a)[0]],N={x:D.endX-D.startX,y:D.endY-D.startY},L=function(e){switch(e){case E:f+N.x>v&&(N.x=v-f);break;case S:c+N.x<g&&(N.x=g-c);break;case T:u+N.y<m&&(N.y=m-u);break;case C:p+N.y>A&&(N.y=A-p);break}};switch(s){case y:c+=N.x,u+=N.y;break;case E:if(N.x>=0&&(f>=v||l&&(u<=m||p>=A))){b=!1;break}L(E),d+=N.x,d<0&&(s=S,d=-d,c-=d),l&&(h=d/l,u+=(o.height-h)/2);break;case T:if(N.y<=0&&(u<=m||l&&(c<=g||f>=v))){b=!1;break}L(T),h-=N.y,u+=N.y,h<0&&(s=C,h=-h,u-=h),l&&(d=h*l,c+=(o.width-d)/2);break;case S:if(N.x<=0&&(c<=g||l&&(u<=m||p>=A))){b=!1;break}L(S),d-=N.x,c+=N.x,d<0&&(s=E,d=-d,c-=d),l&&(h=d/l,u+=(o.height-h)/2);break;case C:if(N.y>=0&&(p>=A||l&&(c<=g||f>=v))){b=!1;break}L(C),h+=N.y,h<0&&(s=T,h=-h,u-=h),l&&(d=h*l,c+=(o.width-d)/2);break;case k:if(l){if(N.y<=0&&(u<=m||f>=v)){b=!1;break}L(T),h-=N.y,u+=N.y,d=h*l}else L(T),L(E),N.x>=0?f<v?d+=N.x:N.y<=0&&u<=m&&(b=!1):d+=N.x,N.y<=0?u>m&&(h-=N.y,u+=N.y):(h-=N.y,u+=N.y);d<0&&h<0?(s=I,h=-h,d=-d,u-=h,c-=d):d<0?(s=O,d=-d,c-=d):h<0&&(s=M,h=-h,u-=h);break;case O:if(l){if(N.y<=0&&(u<=m||c<=g)){b=!1;break}L(T),h-=N.y,u+=N.y,d=h*l,c+=o.width-d}else L(T),L(S),N.x<=0?c>g?(d-=N.x,c+=N.x):N.y<=0&&u<=m&&(b=!1):(d-=N.x,c+=N.x),N.y<=0?u>m&&(h-=N.y,u+=N.y):(h-=N.y,u+=N.y);d<0&&h<0?(s=M,h=-h,d=-d,u-=h,c-=d):d<0?(s=k,d=-d,c-=d):h<0&&(s=I,h=-h,u-=h);break;case I:if(l){if(N.x<=0&&(c<=g||p>=A)){b=!1;break}L(S),d-=N.x,c+=N.x,h=d/l}else L(C),L(S),N.x<=0?c>g?(d-=N.x,c+=N.x):N.y>=0&&p>=A&&(b=!1):(d-=N.x,c+=N.x),N.y>=0?p<A&&(h+=N.y):h+=N.y;d<0&&h<0?(s=k,h=-h,d=-d,u-=h,c-=d):d<0?(s=M,d=-d,c-=d):h<0&&(s=O,h=-h,u-=h);break;case M:if(l){if(N.x>=0&&(f>=v||p>=A)){b=!1;break}L(E),d+=N.x,h=d/l}else L(C),L(E),N.x>=0?f<v?d+=N.x:N.y>=0&&p>=A&&(b=!1):d+=N.x,N.y>=0?p<A&&(h+=N.y):h+=N.y;d<0&&h<0?(s=O,h=-h,d=-d,u-=h,c-=d):d<0?(s=I,d=-d,c-=d):h<0&&(s=k,h=-h,u-=h);break;case _:this.move(N.x,N.y),b=!1;break;case x:this.zoom(qe(a),e),b=!1;break;case w:if(!N.x||!N.y){b=!1;break}t=ze(this.cropper),c=D.startX-t.left,u=D.startY-t.top,d=o.minWidth,h=o.minHeight,N.x>0?s=N.y>0?M:k:N.x<0&&(c-=d,s=N.y>0?I:O),N.y<0&&(u-=h),this.cropped||(De(this.cropBox,R),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0));break}b&&(o.width=d,o.height=h,o.left=c,o.top=u,this.action=s,this.renderCropBox()),Ee(a,function(e){e.startX=e.endX,e.startY=e.endY})}},pt={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&Ie(this.dragBox,P),De(this.cropBox,R),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=Se({},this.initialImageData),this.canvasData=Se({},this.initialCanvasData),this.cropBoxData=Se({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(Se(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),De(this.dragBox,P),Ie(this.cropBox,R)),this},replace:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,Ee(this.previews,function(t){t.getElementsByTagName("img")[0].src=e}))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,De(this.cropper,N)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Ie(this.cropper,N)),this},destroy:function(){var e=this.element;return e[b]?(e[b]=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=n.left,i=n.top;return this.moveTo(ve(e)?e:r+Number(e),ve(t)?t:i+Number(t))},moveTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(ge(e)&&(n.left=e,r=!0),ge(t)&&(n.top=t,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(e,t){var n=this.canvasData;return e=Number(e),e=e<0?1/(1-e):1+e,this.zoomTo(n.width*e/n.naturalWidth,null,t)},zoomTo:function(e,t,n){var r=this.options,i=this.canvasData,o=i.width,a=i.height,s=i.naturalWidth,l=i.naturalHeight;if(e=Number(e),e>=0&&this.ready&&!this.disabled&&r.zoomable){var c=s*e,u=l*e;if(!1===Qe(this.element,ie,{ratio:e,oldRatio:o/s,originalEvent:n}))return this;if(n){var d=this.pointers,h=ze(this.cropper),f=d&&Object.keys(d).length?Je(d):{pageX:n.pageX,pageY:n.pageY};i.left-=(c-o)*((f.pageX-h.left-i.left)/o),i.top-=(u-a)*((f.pageY-h.top-i.top)/a)}else ye(t)&&ge(t.x)&&ge(t.y)?(i.left-=(c-o)*((t.x-i.left)/o),i.top-=(u-a)*((t.y-i.top)/a)):(i.left-=(c-o)/2,i.top-=(u-a)/2);i.width=c,i.height=u,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return e=Number(e),ge(e)&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,ge(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(ge(t)?t:1,e)},scale:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(ge(e)&&(n.scaleX=e,r=!0),ge(t)&&(n.scaleY=t,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,r=this.imageData,i=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){e={x:o.left-i.left,y:o.top-i.top,width:o.width,height:o.height};var a=r.width/r.naturalWidth;if(Ee(e,function(t,n){e[n]=t/a}),t){var s=Math.round(e.y+e.height),l=Math.round(e.x+e.width);e.x=Math.round(e.x),e.y=Math.round(e.y),e.width=l-e.x,e.height=s-e.y}}else e={x:0,y:0,width:0,height:0};return n.rotatable&&(e.rotate=r.rotate||0),n.scalable&&(e.scaleX=r.scaleX||1,e.scaleY=r.scaleY||1),e},setData:function(e){var t=this.options,n=this.imageData,r=this.canvasData,i={};if(this.ready&&!this.disabled&&ye(e)){var o=!1;t.rotatable&&ge(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,o=!0),t.scalable&&(ge(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,o=!0),ge(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var a=n.width/n.naturalWidth;ge(e.x)&&(i.left=e.x*a+r.left),ge(e.y)&&(i.top=e.y*a+r.top),ge(e.width)&&(i.width=e.width*a),ge(e.height)&&(i.height=e.height*a),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?Se({},this.containerData):{}},getImageData:function(){return this.sized?Se({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,t={};return this.ready&&Ee(["left","top","width","height","naturalWidth","naturalHeight"],function(n){t[n]=e[n]}),t},setCanvasData:function(e){var t=this.canvasData,n=t.aspectRatio;return this.ready&&!this.disabled&&ye(e)&&(ge(e.left)&&(t.left=e.left),ge(e.top)&&(t.top=e.top),ge(e.width)?(t.width=e.width,t.height=e.width/n):ge(e.height)&&(t.height=e.height,t.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e,t=this.cropBoxData;return this.ready&&this.cropped&&(e={left:t.left,top:t.top,width:t.width,height:t.height}),e||{}},setCropBoxData:function(e){var t,n,r=this.cropBoxData,i=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&ye(e)&&(ge(e.left)&&(r.left=e.left),ge(e.top)&&(r.top=e.top),ge(e.width)&&e.width!==r.width&&(t=!0,r.width=e.width),ge(e.height)&&e.height!==r.height&&(n=!0,r.height=e.height),i&&(t?r.height=r.width/i:n&&(r.width=r.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var t=this.canvasData,n=tt(this.image,this.imageData,t,e);if(!this.cropped)return n;var r=this.getData(e.rounded),i=r.x,o=r.y,a=r.width,s=r.height,l=n.width/Math.floor(t.naturalWidth);1!==l&&(i*=l,o*=l,a*=l,s*=l);var u=a/s,d=Ze({aspectRatio:u,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),h=Ze({aspectRatio:u,width:e.minWidth||0,height:e.minHeight||0},"cover"),f=Ze({aspectRatio:u,width:e.width||(1!==l?n.width:a),height:e.height||(1!==l?n.height:s)}),p=f.width,g=f.height;p=Math.min(d.width,Math.max(h.width,p)),g=Math.min(d.height,Math.max(h.height,g));var m=document.createElement("canvas"),v=m.getContext("2d");m.width=Te(p),m.height=Te(g),v.fillStyle=e.fillColor||"transparent",v.fillRect(0,0,p,g);var A=e.imageSmoothingEnabled,b=void 0===A||A,y=e.imageSmoothingQuality;v.imageSmoothingEnabled=b,y&&(v.imageSmoothingQuality=y);var w,_,x,E,S,C,T=n.width,k=n.height,O=i,M=o;O<=-a||O>T?(O=0,w=0,x=0,S=0):O<=0?(x=-O,O=0,w=Math.min(T,a+O),S=w):O<=T&&(x=0,w=Math.min(a,T-O),S=w),w<=0||M<=-s||M>k?(M=0,_=0,E=0,C=0):M<=0?(E=-M,M=0,_=Math.min(k,s+M),C=_):M<=k&&(E=0,_=Math.min(s,k-M),C=_);var I=[O,M,w,_];if(S>0&&C>0){var D=p/a;I.push(x*D,E*D,S*D,C*D)}return v.drawImage.apply(v,[n].concat(c(I.map(function(e){return Math.floor(Te(e))})))),m},setAspectRatio:function(e){var t=this.options;return this.disabled||ve(e)||(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t=this.options,n=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var i=e===H,o=t.movable&&e===U;e=i||o?e:Q,t.dragMode=e,Pe(n,$,e),Ne(n,D,i),Ne(n,F,o),t.cropBoxMovable||(Pe(r,$,e),Ne(r,D,i),Ne(r,F,o))}return this}},gt=m.Cropper,mt=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o(this,e),!t||!ce.test(t.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=t,this.options=Se({},he,ye(n)&&n),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}return s(e,[{key:"init",value:function(){var e,t=this.element,n=t.tagName.toLowerCase();if(!t[b]){if(t[b]=this,"img"===n){if(this.isImg=!0,e=t.getAttribute("src")||"",this.originalUrl=e,!e)return;e=t.src}else"canvas"===n&&window.HTMLCanvasElement&&(e=t.toDataURL());this.load(e)}}},{key:"load",value:function(e){var t=this;if(e){this.url=e,this.imageData={};var n=this.element,r=this.options;if(r.rotatable||r.scalable||(r.checkOrientation=!1),r.checkOrientation&&window.ArrayBuffer)if(se.test(e))le.test(e)?this.read(ot(e)):this.clone();else{var i=new XMLHttpRequest,o=this.clone.bind(this);this.reloading=!0,this.xhr=i,i.onabort=o,i.onerror=o,i.ontimeout=o,i.onprogress=function(){i.getResponseHeader("content-type")!==oe&&i.abort()},i.onload=function(){t.read(i.response)},i.onloadend=function(){t.reloading=!1,t.xhr=null},r.checkCrossOrigin&&Ve(e)&&n.crossOrigin&&(e=Ke(e)),i.open("GET",e,!0),i.responseType="arraybuffer",i.withCredentials="use-credentials"===n.crossOrigin,i.send()}else this.clone()}}},{key:"read",value:function(e){var t=this.options,n=this.imageData,r=st(e),i=0,o=1,a=1;if(r>1){this.url=at(e,oe);var s=lt(r);i=s.rotate,o=s.scaleX,a=s.scaleY}t.rotatable&&(n.rotate=i),t.scalable&&(n.scaleX=o,n.scaleY=a),this.clone()}},{key:"clone",value:function(){var e=this.element,t=this.url,n=e.crossOrigin,r=t;this.options.checkCrossOrigin&&Ve(t)&&(n||(n="anonymous"),r=Ke(t)),this.crossOrigin=n,this.crossOriginUrl=r;var i=document.createElement("img");n&&(i.crossOrigin=n),i.src=r||t,i.alt=e.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),Ie(i,L),e.parentNode.insertBefore(i,e.nextSibling)}},{key:"start",value:function(){var e=this,t=this.image;t.onload=null,t.onerror=null,this.sizing=!0;var n=m.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(m.navigator.userAgent),r=function(t,n){Se(e.imageData,{naturalWidth:t,naturalHeight:n,aspectRatio:t/n}),e.initialImageData=Se({},e.imageData),e.sizing=!1,e.sized=!0,e.build()};if(!t.naturalWidth||n){var i=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){r(i.width,i.height),n||o.removeChild(i)},i.src=t.src,n||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(i))}else r(t.naturalWidth,t.naturalHeight)}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var e=this.element,t=this.options,n=this.image,r=e.parentNode,i=document.createElement("div");i.innerHTML=fe;var o=i.querySelector(".".concat(b,"-container")),a=o.querySelector(".".concat(b,"-canvas")),s=o.querySelector(".".concat(b,"-drag-box")),l=o.querySelector(".".concat(b,"-crop-box")),c=l.querySelector(".".concat(b,"-face"));this.container=r,this.cropper=o,this.canvas=a,this.dragBox=s,this.cropBox=l,this.viewBox=o.querySelector(".".concat(b,"-view-box")),this.face=c,a.appendChild(n),Ie(e,R),r.insertBefore(o,e.nextSibling),De(n,L),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,Ie(l,R),t.guides||Ie(l.getElementsByClassName("".concat(b,"-dashed")),R),t.center||Ie(l.getElementsByClassName("".concat(b,"-center")),R),t.background&&Ie(o,"".concat(b,"-bg")),t.highlight||Ie(c,B),t.cropBoxMovable&&(Ie(c,F),Pe(c,$,y)),t.cropBoxResizable||(Ie(l.getElementsByClassName("".concat(b,"-line")),R),Ie(l.getElementsByClassName("".concat(b,"-point")),R)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),we(t.ready)&&Ue(e,te,t.ready,{once:!0}),Qe(e,te)}}},{key:"unbuild",value:function(){if(this.ready){this.ready=!1,this.unbind(),this.resetPreview();var e=this.cropper.parentNode;e&&e.removeChild(this.cropper),De(this.element,R)}}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}],[{key:"noConflict",value:function(){return window.Cropper=gt,e}},{key:"setDefaults",value:function(e){Se(he,ye(e)&&e)}}])}();return Se(mt.prototype,ct,ut,dt,ht,ft,pt),mt})},86135:function(e,t,n){"use strict";var r=n(73821),i=n(44678);t.A=(0,i.GU)(r.A)},86136:function(e,t,n){"use strict";var r=n(32545);function i(e){let t;const n=n=>()=>{t=null,e(...n)},i=function(){if(null==t){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];t=(0,r.A)(n(i))}};return i.cancel=()=>{r.A.cancel(t),t=null},i}t.A=i},86157:function(e,t,n){"use strict";n.d(t,{L:function(){return d},x:function(){return h}});n(18111),n(61701),n(18237);var r=n(51137),i=n(90112),o=n(9519);const a=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around ":{justifyContent:"space-around"},"&-space-evenly ":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},s=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},l=(e,t)=>{const{componentCls:n,gridColumns:r}=e,i={};for(let o=r;o>=0;o--)0===o?(i[`${n}${t}-${o}`]={display:"none"},i[`${n}-push-${o}`]={insetInlineStart:"auto"},i[`${n}-pull-${o}`]={insetInlineEnd:"auto"},i[`${n}${t}-push-${o}`]={insetInlineStart:"auto"},i[`${n}${t}-pull-${o}`]={insetInlineEnd:"auto"},i[`${n}${t}-offset-${o}`]={marginInlineEnd:0},i[`${n}${t}-order-${o}`]={order:0}):(i[`${n}${t}-${o}`]={display:"block",flex:`0 0 ${o/r*100}%`,maxWidth:o/r*100+"%"},i[`${n}${t}-push-${o}`]={insetInlineStart:o/r*100+"%"},i[`${n}${t}-pull-${o}`]={insetInlineEnd:o/r*100+"%"},i[`${n}${t}-offset-${o}`]={marginInlineStart:o/r*100+"%"},i[`${n}${t}-order-${o}`]={order:o});return i},c=(e,t)=>l(e,t),u=(e,t,n)=>({[`@media (min-width: ${t}px)`]:(0,r.A)({},c(e,n))}),d=(0,i.A)("Grid",e=>[a(e)]),h=(0,i.A)("Grid",e=>{const t=(0,o.h1)(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[s(t),c(t,""),c(t,"-xs"),Object.keys(n).map(e=>u(t,n[e],e)).reduce((e,t)=>(0,r.A)((0,r.A)({},e),t),{})]})},86280:function(e){function t(e){const t={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},n=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],r=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),i=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[t,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[i,r],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,r].concat(n),illegal:";$|^\\[|^=|&|\\{"}}e.exports=t},86368:function(e,t,n){"use strict";var r=n(46518),i=n(44576),o=n(59225).clear;r({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},86692:function(e,t,n){"use strict";n.d(t,{A:function(){return I}});var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(59699),l=n(49974),c=n(81186),u=n(55107),d=n(5220),h=n(73429),f=n(45130),p=n(51589),g=n(2392);function m(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}let v=-1;function A(){return v+=1,v}function b(e,t){let n=e[`page${t?"Y":"X"}Offset`];const r="scroll"+(t?"Top":"Left");if("number"!==typeof n){const t=e.document;n=t.documentElement[r],"number"!==typeof n&&(n=t.body[r])}return n}function y(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=b(i),n.top+=b(i,!0),n}const w={width:0,height:0,overflow:"hidden",outline:"none"},_={outline:"none"};var x=(0,o.pM)({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:(0,i.A)((0,i.A)({},(0,g.A)()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:n,slots:i,attrs:s}=t;const l=(0,a.KR)(),c=(0,a.KR)(),u=(0,a.KR)();n({focus:()=>{var e;null===(e=l.value)||void 0===e||e.focus({preventScroll:!0})},changeActive:e=>{const{activeElement:t}=document;e&&t===c.value?l.value.focus({preventScroll:!0}):e||t!==l.value||c.value.focus({preventScroll:!0})}});const d=(0,a.KR)(),h=(0,o.EW)(()=>{const{width:t,height:n}=e,r={};return void 0!==t&&(r.width="number"===typeof t?`${t}px`:t),void 0!==n&&(r.height="number"===typeof n?`${n}px`:n),d.value&&(r.transformOrigin=d.value),r}),g=()=>{(0,o.dY)(()=>{if(u.value){const t=y(u.value);d.value=e.mousePosition?`${e.mousePosition.x-t.left}px ${e.mousePosition.y-t.top}px`:""}})},m=t=>{e.onVisibleChanged(t)};return()=>{var t,n,a,d;const{prefixCls:v,footer:A=(null===(t=i.footer)||void 0===t?void 0:t.call(i)),title:b=(null===(n=i.title)||void 0===n?void 0:n.call(i)),ariaId:y,closable:x,closeIcon:E=(null===(a=i.closeIcon)||void 0===a?void 0:a.call(i)),onClose:S,bodyStyle:C,bodyProps:T,onMousedown:k,onMouseup:O,visible:M,modalRender:I=i.modalRender,destroyOnClose:D,motionName:N}=e;let R,L,B;A&&(R=(0,o.bF)("div",{class:`${v}-footer`},[A])),b&&(L=(0,o.bF)("div",{class:`${v}-header`},[(0,o.bF)("div",{class:`${v}-title`,id:y},[b])])),x&&(B=(0,o.bF)("button",{type:"button",onClick:S,"aria-label":"Close",class:`${v}-close`},[E||(0,o.bF)("span",{class:`${v}-close-x`},null)]));const P=(0,o.bF)("div",{class:`${v}-content`},[B,L,(0,o.bF)("div",(0,r.A)({class:`${v}-body`,style:C},T),[null===(d=i.default)||void 0===d?void 0:d.call(i)]),R]),F=(0,p.ce)(N);return(0,o.bF)(f.eB,(0,r.A)((0,r.A)({},F),{},{onBeforeEnter:g,onAfterEnter:()=>m(!0),onAfterLeave:()=>m(!1)}),{default:()=>[M||!D?(0,o.bo)((0,o.bF)("div",(0,r.A)((0,r.A)({},s),{},{ref:u,key:"dialog-element",role:"document",style:[h.value,s.style],class:[v,s.class],onMousedown:k,onMouseup:O}),[(0,o.bF)("div",{tabindex:0,ref:l,style:_},[I?I({originVNode:P}):P]),(0,o.bF)("div",{tabindex:0,ref:c,style:w},null)]),[[f.aG,M]]):null]})}}}),E=(0,o.pM)({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(e,t){let{}=t;return()=>{const{prefixCls:t,visible:n,maskProps:i,motionName:a}=e,s=(0,p.ce)(a);return(0,o.bF)(f.eB,s,{default:()=>[(0,o.bo)((0,o.bF)("div",(0,r.A)({class:`${t}-mask`},i),null),[[f.aG,n]])]})}}}),S=(0,o.pM)({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:(0,h.A)((0,i.A)((0,i.A)({},(0,g.A)()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,t){let{attrs:n,slots:h}=t;const f=(0,a.IJ)(),p=(0,a.IJ)(),g=(0,a.IJ)(),v=(0,a.IJ)(e.visible),b=(0,a.IJ)(`vcDialogTitle${A()}`),y=t=>{var n,r;if(t)(0,s.A)(p.value,document.activeElement)||(f.value=document.activeElement,null===(n=g.value)||void 0===n||n.focus());else{const t=v.value;if(v.value=!1,e.mask&&f.value&&e.focusTriggerAfterClose){try{f.value.focus({preventScroll:!0})}catch(i){}f.value=null}t&&(null===(r=e.afterClose)||void 0===r||r.call(e))}},w=t=>{var n;null===(n=e.onClose)||void 0===n||n.call(e,t)},_=(0,a.IJ)(!1),S=(0,a.IJ)(),C=()=>{clearTimeout(S.value),_.value=!0},T=()=>{S.value=setTimeout(()=>{_.value=!1})},k=t=>{if(!e.maskClosable)return null;_.value?_.value=!1:p.value===t.target&&w(t)},O=t=>{if(e.keyboard&&t.keyCode===c.A.ESC)return t.stopPropagation(),void w(t);e.visible&&t.keyCode===c.A.TAB&&g.value.changeActive(!t.shiftKey)};return(0,o.wB)(()=>e.visible,()=>{e.visible&&(v.value=!0)},{flush:"post"}),(0,o.xo)(()=>{var t;clearTimeout(S.value),null===(t=e.scrollLocker)||void 0===t||t.unLock()}),(0,o.nT)(()=>{var t,n;null===(t=e.scrollLocker)||void 0===t||t.unLock(),v.value&&(null===(n=e.scrollLocker)||void 0===n||n.lock())}),()=>{const{prefixCls:t,mask:a,visible:s,maskTransitionName:c,maskAnimation:f,zIndex:A,wrapClassName:_,rootClassName:S,wrapStyle:M,closable:I,maskProps:D,maskStyle:N,transitionName:R,animation:L,wrapProps:B,title:P=h.title}=e,{style:F,class:$}=n;return(0,o.bF)("div",(0,r.A)({class:[`${t}-root`,S]},(0,d.A)(e,{data:!0})),[(0,o.bF)(E,{prefixCls:t,visible:a&&s,motionName:m(t,c,f),style:(0,i.A)({zIndex:A},N),maskProps:D},null),(0,o.bF)("div",(0,r.A)({tabIndex:-1,onKeydown:O,class:(0,l.A)(`${t}-wrap`,_),ref:p,onClick:k,role:"dialog","aria-labelledby":P?b.value:null,style:(0,i.A)((0,i.A)({zIndex:A},M),{display:v.value?null:"none"})},B),[(0,o.bF)(x,(0,r.A)((0,r.A)({},(0,u.A)(e,["scrollLocker"])),{},{style:F,class:$,onMousedown:C,onMouseup:T,ref:g,closable:I,ariaId:b.value,prefixCls:t,visible:s,onClose:w,onVisibleChanged:y,motionName:m(t,R,L)}),h)])])}}}),C=n(40488),T=n(34162);const k=(0,g.A)(),O=(0,o.pM)({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:(0,h.A)(k,{visible:!1}),setup(e,t){let{attrs:n,slots:s}=t;const l=(0,a.KR)(e.visible);return(0,T.T)({},{inTriggerContext:!1}),(0,o.wB)(()=>e.visible,()=>{e.visible&&(l.value=!0)},{flush:"post"}),()=>{const{visible:t,getContainer:a,forceRender:c,destroyOnClose:u=!1,afterClose:d}=e;let h=(0,i.A)((0,i.A)((0,i.A)({},e),n),{ref:"_component",key:"dialog"});return!1===a?(0,o.bF)(S,(0,r.A)((0,r.A)({},h),{},{getOpenCount:()=>2}),s):c||!u||l.value?(0,o.bF)(C.A,{autoLock:!0,visible:t,forceRender:c,getContainer:a},{default:e=>(h=(0,i.A)((0,i.A)((0,i.A)({},h),e),{afterClose:()=>{null===d||void 0===d||d(),l.value=!1}}),(0,o.bF)(S,h,s))}):null}}});var M=O,I=M},86847:function(e,t,n){"use strict";n.d(t,{Ay:function(){return MZ}});n(44114),n(18111),n(29314),n(81148),n(22489),n(20116),n(7588),n(61701),n(18237),n(13579),n(61806),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(79577),n(41549),n(49797),n(49631),n(35623),n(64979),n(59848);var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var a,s,l,u,d,h,f,p,g,m,v,A,b,y,w,_,x={};function E(){if(s)return a;s=1;var e=function(e){return e&&e.Math===Math&&e};return a=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof r&&r)||e("object"==typeof a&&a)||function(){return this}()||Function("return this")()}function S(){return u?l:(u=1,l=function(e){try{return!!e()}catch(e){return!0}})}function C(){return h?d:(h=1,d=!S()(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))}function T(){if(p)return f;p=1;var e=C(),t=Function.prototype,n=t.apply,r=t.call;return f="object"==typeof Reflect&&Reflect.apply||(e?r.bind(n):function(){return r.apply(n,arguments)}),f}function k(){if(m)return g;m=1;var e=C(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return g=e?r:function(e){return function(){return n.apply(e,arguments)}},g}function O(){if(A)return v;A=1;var e=k(),t=e({}.toString),n=e("".slice);return v=function(e){return n(t(e),8,-1)}}function M(){if(y)return b;y=1;var e=O(),t=k();return b=function(n){if("Function"===e(n))return t(n)}}function I(){if(_)return w;_=1;var e="object"==typeof document&&document.all;return w=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}var D,N,R,L,B={};function P(){return N?D:(N=1,D=!S()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function F(){if(L)return R;L=1;var e=C(),t=Function.prototype.call;return R=e?t.bind(t):function(){return t.apply(t,arguments)},R}var $,j,H,U,Q,z,W,G,V,K,Y,q,X,J,Z,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,de,he,fe,pe,ge,me,ve,Ae,be,ye,we,_e={};function xe(){if($)return _e;$=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return _e.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,_e}function Ee(){return H?j:(H=1,j=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function Se(){if(Q)return U;Q=1;var e=k(),t=S(),n=O(),r=Object,i=e("".split);return U=t(function(){return!r("z").propertyIsEnumerable(0)})?function(e){return"String"===n(e)?i(e,""):r(e)}:r}function Ce(){return W?z:(W=1,z=function(e){return null==e})}function Te(){if(V)return G;V=1;var e=Ce(),t=TypeError;return G=function(n){if(e(n))throw new t("Can't call method on "+n);return n}}function ke(){if(Y)return K;Y=1;var e=Se(),t=Te();return K=function(n){return e(t(n))}}function Oe(){if(X)return q;X=1;var e=I();return q=function(t){return"object"==typeof t?null!==t:e(t)}}function Me(){return Z?J:(Z=1,J={})}function Ie(){if(te)return ee;te=1;var e=Me(),t=E(),n=I(),r=function(e){return n(e)?e:void 0};return ee=function(n,i){return arguments.length<2?r(e[n])||r(t[n]):e[n]&&e[n][i]||t[n]&&t[n][i]},ee}function De(){return re?ne:(re=1,ne=k()({}.isPrototypeOf))}function Ne(){return oe?ie:(oe=1,ie="undefined"!=typeof navigator&&String(navigator.userAgent)||"")}function Re(){if(se)return ae;se=1;var e,t,n=E(),r=Ne(),i=n.process,o=n.Deno,a=i&&i.versions||o&&o.version,s=a&&a.v8;return s&&(t=(e=s.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),ae=t}function Le(){if(ce)return le;ce=1;var e=Re(),t=S(),n=E().String;return le=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}),le}function Be(){return de?ue:(de=1,ue=Le()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function Pe(){if(fe)return he;fe=1;var e=Ie(),t=I(),n=De(),r=Object;return he=Be()?function(e){return"symbol"==typeof e}:function(i){var o=e("Symbol");return t(o)&&n(o.prototype,r(i))}}function Fe(){if(ge)return pe;ge=1;var e=String;return pe=function(t){try{return e(t)}catch(e){return"Object"}}}function $e(){if(ve)return me;ve=1;var e=I(),t=Fe(),n=TypeError;return me=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function je(){if(be)return Ae;be=1;var e=$e(),t=Ce();return Ae=function(n,r){var i=n[r];return t(i)?void 0:e(i)}}function He(){if(we)return ye;we=1;var e=F(),t=I(),n=Oe(),r=TypeError;return ye=function(i,o){var a,s;if("string"===o&&t(a=i.toString)&&!n(s=e(a,i)))return s;if(t(a=i.valueOf)&&!n(s=e(a,i)))return s;if("string"!==o&&t(a=i.toString)&&!n(s=e(a,i)))return s;throw new r("Can't convert object to primitive value")}}var Ue,Qe,ze,We,Ge,Ve,Ke,Ye,qe,Xe,Je,Ze,et,tt,nt,rt,it,ot,at,st,lt,ct,ut,dt,ht,ft,pt,gt,mt={exports:{}};function vt(){return Qe?Ue:(Qe=1,Ue=!0)}function At(){if(We)return ze;We=1;var e=E(),t=Object.defineProperty;return ze=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r},ze}function bt(){if(Ge)return mt.exports;Ge=1;var e=vt(),t=E(),n=At(),r="__core-js_shared__",i=mt.exports=t[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.37.1",mode:e?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"}),mt.exports}function yt(){if(Ke)return Ve;Ke=1;var e=bt();return Ve=function(t,n){return e[t]||(e[t]=n||{})},Ve}function wt(){if(qe)return Ye;qe=1;var e=Te(),t=Object;return Ye=function(n){return t(e(n))}}function _t(){if(Je)return Xe;Je=1;var e=k(),t=wt(),n=e({}.hasOwnProperty);return Xe=Object.hasOwn||function(e,r){return n(t(e),r)},Xe}function xt(){if(et)return Ze;et=1;var e=k(),t=0,n=Math.random(),r=e(1..toString);return Ze=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)},Ze}function Et(){if(nt)return tt;nt=1;var e=E(),t=yt(),n=_t(),r=xt(),i=Le(),o=Be(),a=e.Symbol,s=t("wks"),l=o?a.for||a:a&&a.withoutSetter||r;return tt=function(e){return n(s,e)||(s[e]=i&&n(a,e)?a[e]:l("Symbol."+e)),s[e]}}function St(){if(it)return rt;it=1;var e=F(),t=Oe(),n=Pe(),r=je(),i=He(),o=TypeError,a=Et()("toPrimitive");return rt=function(s,l){if(!t(s)||n(s))return s;var c,u=r(s,a);if(u){if(void 0===l&&(l="default"),c=e(u,s,l),!t(c)||n(c))return c;throw new o("Can't convert object to primitive value")}return void 0===l&&(l="number"),i(s,l)}}function Ct(){if(at)return ot;at=1;var e=St(),t=Pe();return ot=function(n){var r=e(n,"string");return t(r)?r:r+""},ot}function Tt(){if(lt)return st;lt=1;var e=E(),t=Oe(),n=e.document,r=t(n)&&t(n.createElement);return st=function(e){return r?n.createElement(e):{}}}function kt(){if(ut)return ct;ut=1;var e=P(),t=S(),n=Tt();return ct=!e&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function Ot(){if(dt)return B;dt=1;var e=P(),t=F(),n=xe(),r=Ee(),i=ke(),o=Ct(),a=_t(),s=kt(),l=Object.getOwnPropertyDescriptor;return B.f=e?l:function(e,c){if(e=i(e),c=o(c),s)try{return l(e,c)}catch(e){}if(a(e,c))return r(!t(n.f,e,c),e[c])},B}function Mt(){if(ft)return ht;ft=1;var e=S(),t=I(),n=/#|\.prototype\./,r=function(n,r){var l=o[i(n)];return l===s||l!==a&&(t(r)?e(r):!!r)},i=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},o=r.data={},a=r.NATIVE="N",s=r.POLYFILL="P";return ht=r}function It(){if(gt)return pt;gt=1;var e=M(),t=$e(),n=C(),r=e(e.bind);return pt=function(e,i){return t(e),void 0===i?e:n?r(e,i):function(){return e.apply(i,arguments)}},pt}var Dt,Nt,Rt,Lt,Bt,Pt,Ft,$t,jt,Ht,Ut,Qt,zt,Wt,Gt,Vt,Kt,Yt,qt,Xt,Jt,Zt,en,tn={};function nn(){return Nt?Dt:(Nt=1,Dt=P()&&S()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function rn(){if(Lt)return Rt;Lt=1;var e=Oe(),t=String,n=TypeError;return Rt=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function on(){if(Bt)return tn;Bt=1;var e=P(),t=kt(),n=nn(),r=rn(),i=Ct(),o=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l="enumerable",c="configurable",u="writable";return tn.f=e?n?function(e,t,n){if(r(e),t=i(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&u in n&&!n[u]){var o=s(e,t);o&&o[u]&&(e[t]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:l in n?n[l]:o[l],writable:!1})}return a(e,t,n)}:a:function(e,n,s){if(r(e),n=i(n),r(s),t)try{return a(e,n,s)}catch(e){}if("get"in s||"set"in s)throw new o("Accessors not supported");return"value"in s&&(e[n]=s.value),e},tn}function an(){if(Ft)return Pt;Ft=1;var e=P(),t=on(),n=Ee();return Pt=e?function(e,r,i){return t.f(e,r,n(1,i))}:function(e,t,n){return e[t]=n,e},Pt}function sn(){if(jt)return $t;jt=1;var e=E(),t=T(),n=M(),r=I(),i=Ot().f,o=Mt(),a=Me(),s=It(),l=an(),c=_t(),u=function(e){var n=function(r,i,o){if(this instanceof n){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,i)}return new e(r,i,o)}return t(e,this,arguments)};return n.prototype=e.prototype,n};return $t=function(t,d){var h,f,p,g,m,v,A,b,y,w=t.target,_=t.global,x=t.stat,E=t.proto,S=_?e:x?e[w]:e[w]&&e[w].prototype,C=_?a:a[w]||l(a,w,{})[w],T=C.prototype;for(g in d)f=!(h=o(_?g:w+(x?".":"#")+g,t.forced))&&S&&c(S,g),v=C[g],f&&(A=t.dontCallGetSet?(y=i(S,g))&&y.value:S[g]),m=f&&A?A:d[g],(h||E||typeof v!=typeof m)&&(b=t.bind&&f?s(m,e):t.wrap&&f?u(m):E&&r(m)?n(m):m,(t.sham||m&&m.sham||v&&v.sham)&&l(b,"sham",!0),l(C,g,b),E&&(c(a,p=w+"Prototype")||l(a,p,{}),l(a[p],g,m),t.real&&T&&(h||!T[g])&&l(T,g,m)))},$t}function ln(){return Ut?Ht:(Ut=1,Ht=k()([].slice))}function cn(){if(zt)return Qt;zt=1;var e=k(),t=$e(),n=Oe(),r=_t(),i=ln(),o=C(),a=Function,s=e([].concat),l=e([].join),c={};return Qt=o?a.bind:function(e){var o=t(this),u=o.prototype,d=i(arguments,1),h=function(){var t=s(d,i(arguments));return this instanceof h?function(e,t,n){if(!r(c,t)){for(var i=[],o=0;o<t;o++)i[o]="a["+o+"]";c[t]=a("C,a","return new C("+l(i,",")+")")}return c[t](e,n)}(o,t.length,t):o.apply(e,t)};return n(u)&&(h.prototype=u),h},Qt}function un(){if(Gt)return Wt;Gt=1;var e={};return e[Et()("toStringTag")]="z",Wt="[object z]"===String(e)}function dn(){if(Kt)return Vt;Kt=1;var e=un(),t=I(),n=O(),r=Et()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return Vt=e?n:function(e){var a,s,l;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(a=i(e),r))?s:o?n(a):"Object"===(l=n(a))&&t(a.callee)?"Arguments":l},Vt}function hn(){if(qt)return Yt;qt=1;var e=k(),t=I(),n=bt(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),Yt=n.inspectSource}function fn(){if(Jt)return Xt;Jt=1;var e=k(),t=S(),n=I(),r=dn(),i=Ie(),o=hn(),a=function(){},s=i("Reflect","construct"),l=/^\s*(?:class|function)\b/,c=e(l.exec),u=!l.test(a),d=function(e){if(!n(e))return!1;try{return s(a,[],e),!0}catch(e){return!1}},h=function(e){if(!n(e))return!1;switch(r(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return u||!!c(l,o(e))}catch(e){return!0}};return h.sham=!0,Xt=!s||t(function(){var e;return d(d.call)||!d(Object)||!d(function(){e=!0})||e})?h:d}function pn(){if(en)return Zt;en=1;var e=fn(),t=Fe(),n=TypeError;return Zt=function(r){if(e(r))return r;throw new n(t(r)+" is not a constructor")}}var gn,mn,vn,An,bn,yn,wn,_n,xn,En,Sn,Cn,Tn,kn,On,Mn,In,Dn,Nn,Rn,Ln,Bn,Pn,Fn,$n,jn,Hn,Un,Qn,zn,Wn,Gn,Vn,Kn,Yn={};function qn(){if(mn)return gn;mn=1;var e=Math.ceil,t=Math.floor;return gn=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},gn}function Xn(){if(An)return vn;An=1;var e=qn();return vn=function(t){var n=+t;return n!=n||0===n?0:e(n)},vn}function Jn(){if(yn)return bn;yn=1;var e=Xn(),t=Math.max,n=Math.min;return bn=function(r,i){var o=e(r);return o<0?t(o+i,0):n(o,i)},bn}function Zn(){if(_n)return wn;_n=1;var e=Xn(),t=Math.min;return wn=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function er(){if(En)return xn;En=1;var e=Zn();return xn=function(t){return e(t.length)}}function tr(){if(Cn)return Sn;Cn=1;var e=ke(),t=Jn(),n=er(),r=function(r){return function(i,o,a){var s=e(i),l=n(s);if(0===l)return!r&&-1;var c,u=t(a,l);if(r&&o!=o){for(;l>u;)if((c=s[u++])!=c)return!0}else for(;l>u;u++)if((r||u in s)&&s[u]===o)return r||u||0;return!r&&-1}};return Sn={includes:r(!0),indexOf:r(!1)}}function nr(){return kn?Tn:(kn=1,Tn={})}function rr(){if(Mn)return On;Mn=1;var e=k(),t=_t(),n=ke(),r=tr().indexOf,i=nr(),o=e([].push);return On=function(e,a){var s,l=n(e),c=0,u=[];for(s in l)!t(i,s)&&t(l,s)&&o(u,s);for(;a.length>c;)t(l,s=a[c++])&&(~r(u,s)||o(u,s));return u},On}function ir(){return Dn?In:(Dn=1,In=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function or(){if(Rn)return Nn;Rn=1;var e=rr(),t=ir();return Nn=Object.keys||function(n){return e(n,t)}}function ar(){if(Ln)return Yn;Ln=1;var e=P(),t=nn(),n=on(),r=rn(),i=ke(),o=or();return Yn.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var a,s=i(t),l=o(t),c=l.length,u=0;c>u;)n.f(e,a=l[u++],s[a]);return e},Yn}function sr(){return Pn?Bn:(Pn=1,Bn=Ie()("document","documentElement"))}function lr(){if($n)return Fn;$n=1;var e=yt(),t=xt(),n=e("keys");return Fn=function(e){return n[e]||(n[e]=t(e))},Fn}function cr(){if(Hn)return jn;Hn=1;var e,t=rn(),n=ar(),r=ir(),i=nr(),o=sr(),a=Tt(),s="prototype",l="script",c=lr()("IE_PROTO"),u=function(){},d=function(e){return"<"+l+">"+e+"</"+l+">"},h=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},f=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,n,i;f="undefined"!=typeof document?document.domain&&e?h(e):(n=a("iframe"),i="java"+l+":",n.style.display="none",o.appendChild(n),n.src=String(i),(t=n.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):h(e);for(var c=r.length;c--;)delete f[s][r[c]];return f()};return i[c]=!0,jn=Object.create||function(e,r){var i;return null!==e?(u[s]=t(e),i=new u,u[s]=null,i[c]=e):i=f(),void 0===r?i:n.f(i,r)}}function ur(){return zn?Qn:(zn=1,function(){if(Un)return x;Un=1;var e=sn(),t=Ie(),n=T(),r=cn(),i=pn(),o=rn(),a=Oe(),s=cr(),l=S(),c=t("Reflect","construct"),u=Object.prototype,d=[].push,h=l(function(){function e(){}return!(c(function(){},[],e)instanceof e)}),f=!l(function(){c(function(){})}),p=h||f;e({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(e,t){i(e),o(t);var l=arguments.length<3?e:i(arguments[2]);if(f&&!h)return c(e,t,l);if(e===l){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var p=[null];return n(d,p,t),new(n(r,e,p))}var g=l.prototype,m=s(a(g)?g:u),v=n(e,m,t);return a(v)?v:m}})}(),Qn=Me().Reflect.construct)}function dr(){return Gn?Wn:(Gn=1,Wn=ur())}var hr,fr,pr=i(Kn?Vn:(Kn=1,Vn=dr())),gr={},mr={};function vr(){if(fr)return hr;fr=1;var e=dn(),t=String;return hr=function(n){if("Symbol"===e(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}var Ar,br={};function yr(){if(Ar)return br;Ar=1;var e=rr(),t=ir().concat("length","prototype");return br.f=Object.getOwnPropertyNames||function(n){return e(n,t)},br}var wr,_r={};function xr(){if(wr)return _r;wr=1;var e=O(),t=ke(),n=yr().f,r=ln(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return _r.f=function(o){return i&&"Window"===e(o)?function(e){try{return n(e)}catch(e){return r(i)}}(o):n(t(o))},_r}var Er,Sr,Cr,Tr,kr,Or={};function Mr(){return Er||(Er=1,Or.f=Object.getOwnPropertySymbols),Or}function Ir(){if(Cr)return Sr;Cr=1;var e=an();return Sr=function(t,n,r,i){return i&&i.enumerable?t[n]=r:e(t,n,r),t},Sr}function Dr(){if(kr)return Tr;kr=1;var e=on();return Tr=function(t,n,r){return e.f(t,n,r)}}var Nr,Rr,Lr,Br,Pr,Fr,$r,jr,Hr,Ur,Qr,zr,Wr,Gr,Vr,Kr,Yr,qr,Xr,Jr,Zr,ei,ti={};function ni(){if(Nr)return ti;Nr=1;var e=Et();return ti.f=e,ti}function ri(){if(Lr)return Rr;Lr=1;var e=Me(),t=_t(),n=ni(),r=on().f;return Rr=function(i){var o=e.Symbol||(e.Symbol={});t(o,i)||r(o,i,{value:n.f(i)})}}function ii(){if(Pr)return Br;Pr=1;var e=F(),t=Ie(),n=Et(),r=Ir();return Br=function(){var i=t("Symbol"),o=i&&i.prototype,a=o&&o.valueOf,s=n("toPrimitive");o&&!o[s]&&r(o,s,function(t){return e(a,this)},{arity:1})}}function oi(){if($r)return Fr;$r=1;var e=un(),t=dn();return Fr=e?{}.toString:function(){return"[object "+t(this)+"]"}}function ai(){if(Hr)return jr;Hr=1;var e=un(),t=on().f,n=an(),r=_t(),i=oi(),o=Et()("toStringTag");return jr=function(a,s,l,c){var u=l?a:a&&a.prototype;u&&(r(u,o)||t(u,o,{configurable:!0,value:s}),c&&!e&&n(u,"toString",i))}}function si(){if(Qr)return Ur;Qr=1;var e=E(),t=I(),n=e.WeakMap;return Ur=t(n)&&/native code/.test(String(n))}function li(){if(Wr)return zr;Wr=1;var e,t,n,r=si(),i=E(),o=Oe(),a=an(),s=_t(),l=bt(),c=lr(),u=nr(),d="Object already initialized",h=i.TypeError,f=i.WeakMap;if(r||l.state){var p=l.state||(l.state=new f);p.get=p.get,p.has=p.has,p.set=p.set,e=function(e,t){if(p.has(e))throw new h(d);return t.facade=e,p.set(e,t),t},t=function(e){return p.get(e)||{}},n=function(e){return p.has(e)}}else{var g=c("state");u[g]=!0,e=function(e,t){if(s(e,g))throw new h(d);return t.facade=e,a(e,g,t),t},t=function(e){return s(e,g)?e[g]:{}},n=function(e){return s(e,g)}}return zr={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!o(n)||(r=t(n)).type!==e)throw new h("Incompatible receiver, "+e+" required");return r}}},zr}function ci(){if(Vr)return Gr;Vr=1;var e=O();return Gr=Array.isArray||function(t){return"Array"===e(t)}}function ui(){if(Yr)return Kr;Yr=1;var e=ci(),t=fn(),n=Oe(),r=Et()("species"),i=Array;return Kr=function(o){var a;return e(o)&&(a=o.constructor,(t(a)&&(a===i||e(a.prototype))||n(a)&&null===(a=a[r]))&&(a=void 0)),void 0===a?i:a}}function di(){if(Xr)return qr;Xr=1;var e=ui();return qr=function(t,n){return new(e(t))(0===n?0:n)},qr}function hi(){if(Zr)return Jr;Zr=1;var e=It(),t=k(),n=Se(),r=wt(),i=er(),o=di(),a=t([].push),s=function(t){var s=1===t,l=2===t,c=3===t,u=4===t,d=6===t,h=7===t,f=5===t||d;return function(p,g,m,v){for(var A,b,y=r(p),w=n(y),_=i(w),x=e(g,m),E=0,S=v||o,C=s?S(p,_):l||h?S(p,0):void 0;_>E;E++)if((f||E in w)&&(b=x(A=w[E],E,y),t))if(s)C[E]=b;else if(b)switch(t){case 3:return!0;case 5:return A;case 6:return E;case 2:a(C,A)}else switch(t){case 4:return!1;case 7:a(C,A)}return d?-1:c||u?u:C}};return Jr={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}}var fi,pi,gi,mi={};function vi(){return pi?fi:(pi=1,fi=Le()&&!!Symbol.for&&!!Symbol.keyFor)}var Ai,bi,yi,wi,_i={},xi={};function Ei(){if(yi)return bi;yi=1;var e=k(),t=ci(),n=I(),r=O(),i=vr(),o=e([].push);return bi=function(e){if(n(e))return e;if(t(e)){for(var a=e.length,s=[],l=0;l<a;l++){var c=e[l];"string"==typeof c?o(s,c):"number"!=typeof c&&"Number"!==r(c)&&"String"!==r(c)||o(s,i(c))}var u=s.length,d=!0;return function(e,n){if(d)return d=!1,n;if(t(this))return n;for(var r=0;r<u;r++)if(s[r]===e)return n}}},bi}function Si(){if(wi)return xi;wi=1;var e=sn(),t=Ie(),n=T(),r=F(),i=k(),o=S(),a=I(),s=Pe(),l=ln(),c=Ei(),u=Le(),d=String,h=t("JSON","stringify"),f=i(/./.exec),p=i("".charAt),g=i("".charCodeAt),m=i("".replace),v=i(1..toString),A=/[\uD800-\uDFFF]/g,b=/^[\uD800-\uDBFF]$/,y=/^[\uDC00-\uDFFF]$/,w=!u||o(function(){var e=t("Symbol")("stringify detection");return"[null]"!==h([e])||"{}"!==h({a:e})||"{}"!==h(Object(e))}),_=o(function(){return'"\\udf06\\ud834"'!==h("\udf06\ud834")||'"\\udead"'!==h("\udead")}),x=function(e,t){var i=l(arguments),o=c(t);if(a(o)||void 0!==e&&!s(e))return i[1]=function(e,t){if(a(o)&&(t=r(o,this,d(e),t)),!s(t))return t},n(h,null,i)},E=function(e,t,n){var r=p(n,t-1),i=p(n,t+1);return f(b,e)&&!f(y,i)||f(y,e)&&!f(b,r)?"\\u"+v(g(e,0),16):e};return h&&e({target:"JSON",stat:!0,arity:3,forced:w||_},{stringify:function(e,t,r){var i=l(arguments),o=n(w?x:h,null,i);return _&&"string"==typeof o?m(o,A,E):o}}),xi}var Ci,Ti,ki,Oi,Mi,Ii,Di,Ni,Ri={};function Li(){return Ti||(Ti=1,function(){if(ei)return mr;ei=1;var e=sn(),t=E(),n=F(),r=k(),i=vt(),o=P(),a=Le(),s=S(),l=_t(),c=De(),u=rn(),d=ke(),h=Ct(),f=vr(),p=Ee(),g=cr(),m=or(),v=yr(),A=xr(),b=Mr(),y=Ot(),w=on(),_=ar(),x=xe(),C=Ir(),T=Dr(),O=yt(),M=lr(),I=nr(),D=xt(),N=Et(),R=ni(),L=ri(),B=ii(),$=ai(),j=li(),H=hi().forEach,U=M("hidden"),Q="Symbol",z="prototype",W=j.set,G=j.getterFor(Q),V=Object[z],K=t.Symbol,Y=K&&K[z],q=t.RangeError,X=t.TypeError,J=t.QObject,Z=y.f,ee=w.f,te=A.f,ne=x.f,re=r([].push),ie=O("symbols"),oe=O("op-symbols"),ae=O("wks"),se=!J||!J[z]||!J[z].findChild,le=function(e,t,n){var r=Z(V,t);r&&delete V[t],ee(e,t,n),r&&e!==V&&ee(V,t,r)},ce=o&&s(function(){return 7!==g(ee({},"a",{get:function(){return ee(this,"a",{value:7}).a}})).a})?le:ee,ue=function(e,t){var n=ie[e]=g(Y);return W(n,{type:Q,tag:e,description:t}),o||(n.description=t),n},de=function(e,t,n){e===V&&de(oe,t,n),u(e);var r=h(t);return u(n),l(ie,r)?(n.enumerable?(l(e,U)&&e[U][r]&&(e[U][r]=!1),n=g(n,{enumerable:p(0,!1)})):(l(e,U)||ee(e,U,p(1,g(null))),e[U][r]=!0),ce(e,r,n)):ee(e,r,n)},he=function(e,t){u(e);var r=d(t),i=m(r).concat(me(r));return H(i,function(t){o&&!n(fe,r,t)||de(e,t,r[t])}),e},fe=function(e){var t=h(e),r=n(ne,this,t);return!(this===V&&l(ie,t)&&!l(oe,t))&&(!(r||!l(this,t)||!l(ie,t)||l(this,U)&&this[U][t])||r)},pe=function(e,t){var n=d(e),r=h(t);if(n!==V||!l(ie,r)||l(oe,r)){var i=Z(n,r);return!i||!l(ie,r)||l(n,U)&&n[U][r]||(i.enumerable=!0),i}},ge=function(e){var t=te(d(e)),n=[];return H(t,function(e){l(ie,e)||l(I,e)||re(n,e)}),n},me=function(e){var t=e===V,n=te(t?oe:d(e)),r=[];return H(n,function(e){!l(ie,e)||t&&!l(V,e)||re(r,ie[e])}),r};a||(K=function(){if(c(Y,this))throw new X("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?f(arguments[0]):void 0,r=D(e),i=function(e){var o=void 0===this?t:this;o===V&&n(i,oe,e),l(o,U)&&l(o[U],r)&&(o[U][r]=!1);var a=p(1,e);try{ce(o,r,a)}catch(e){if(!(e instanceof q))throw e;le(o,r,a)}};return o&&se&&ce(V,r,{configurable:!0,set:i}),ue(r,e)},C(Y=K[z],"toString",function(){return G(this).tag}),C(K,"withoutSetter",function(e){return ue(D(e),e)}),x.f=fe,w.f=de,_.f=he,y.f=pe,v.f=A.f=ge,b.f=me,R.f=function(e){return ue(N(e),e)},o&&(T(Y,"description",{configurable:!0,get:function(){return G(this).description}}),i||C(V,"propertyIsEnumerable",fe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!a,sham:!a},{Symbol:K}),H(m(ae),function(e){L(e)}),e({target:Q,stat:!0,forced:!a},{useSetter:function(){se=!0},useSimple:function(){se=!1}}),e({target:"Object",stat:!0,forced:!a,sham:!o},{create:function(e,t){return void 0===t?g(e):he(g(e),t)},defineProperty:de,defineProperties:he,getOwnPropertyDescriptor:pe}),e({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:ge}),B(),$(K,Q),I[U]=!0}(),function(){if(gi)return mi;gi=1;var e=sn(),t=Ie(),n=_t(),r=vr(),i=yt(),o=vi(),a=i("string-to-symbol-registry"),s=i("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!o},{for:function(e){var i=r(e);if(n(a,i))return a[i];var o=t("Symbol")(i);return a[i]=o,s[o]=i,o}})}(),function(){if(Ai)return _i;Ai=1;var e=sn(),t=_t(),n=Pe(),r=Fe(),i=yt(),o=vi(),a=i("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!o},{keyFor:function(e){if(!n(e))throw new TypeError(r(e)+" is not a symbol");if(t(a,e))return a[e]}})}(),Si(),function(){if(Ci)return Ri;Ci=1;var e=sn(),t=Le(),n=S(),r=Mr(),i=wt();e({target:"Object",stat:!0,forced:!t||n(function(){r.f(1)})},{getOwnPropertySymbols:function(e){var t=r.f;return t?t(i(e)):[]}})}()),gr}function Bi(){return Oi?ki:(Oi=1,Li(),ki=Me().Object.getOwnPropertySymbols)}function Pi(){return Ii?Mi:(Ii=1,Mi=Bi())}var Fi,$i,ji,Hi,Ui,Qi,zi,Wi,Gi,Vi,Ki,Yi,qi,Xi=i(Ni?Di:(Ni=1,Di=Pi())),Ji={};function Zi(){if($i)return Fi;$i=1;var e=S(),t=Et(),n=Re(),r=t("species");return Fi=function(t){return n>=51||!e(function(){var e=[];return(e.constructor={})[r]=function(){return{foo:1}},1!==e[t](Boolean).foo})},Fi}function eo(){if(Ui)return Hi;Ui=1;var e=E(),t=Me();return Hi=function(n,r){var i=t[n+"Prototype"],o=i&&i[r];if(o)return o;var a=e[n],s=a&&a.prototype;return s&&s[r]}}function to(){return zi?Qi:(zi=1,function(){if(ji)return Ji;ji=1;var e=sn(),t=hi().filter;e({target:"Array",proto:!0,forced:!Zi()("filter")},{filter:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})}(),Qi=eo()("Array","filter"))}function no(){if(Gi)return Wi;Gi=1;var e=De(),t=to(),n=Array.prototype;return Wi=function(r){var i=r.filter;return r===n||e(n,r)&&i===n.filter?t:i}}function ro(){return Ki?Vi:(Ki=1,Vi=no())}var io,oo,ao,so,lo,co,uo=i(qi?Yi:(qi=1,Yi=ro())),ho={exports:{}},fo={};function po(){if(oo)return ho.exports;oo=1,function(){if(io)return fo;io=1;var e=sn(),t=S(),n=ke(),r=Ot().f,i=P();e({target:"Object",stat:!0,forced:!i||t(function(){r(1)}),sham:!i},{getOwnPropertyDescriptor:function(e,t){return r(n(e),t)}})}();var e=Me().Object,t=ho.exports=function(t,n){return e.getOwnPropertyDescriptor(t,n)};return e.getOwnPropertyDescriptor.sham&&(t.sham=!0),ho.exports}function go(){return so?ao:(so=1,ao=po())}var mo,vo,Ao,bo,yo,wo,_o,xo,Eo,So,Co,To=i(co?lo:(co=1,lo=go())),ko={};function Oo(){if(vo)return mo;vo=1;var e=Ie(),t=k(),n=yr(),r=Mr(),i=rn(),o=t([].concat);return mo=e("Reflect","ownKeys")||function(e){var t=n.f(i(e)),a=r.f;return a?o(t,a(e)):t},mo}function Mo(){if(bo)return Ao;bo=1;var e=P(),t=on(),n=Ee();return Ao=function(r,i,o){e?t.f(r,i,n(0,o)):r[i]=o},Ao}function Io(){return _o?wo:(_o=1,function(){if(yo)return ko;yo=1;var e=sn(),t=P(),n=Oo(),r=ke(),i=Ot(),o=Mo();e({target:"Object",stat:!0,sham:!t},{getOwnPropertyDescriptors:function(e){for(var t,a,s=r(e),l=i.f,c=n(s),u={},d=0;c.length>d;)void 0!==(a=l(s,t=c[d++]))&&o(u,t,a);return u}})}(),wo=Me().Object.getOwnPropertyDescriptors)}function Do(){return Eo?xo:(Eo=1,xo=Io())}var No,Ro,Lo,Bo,Po,Fo,$o=i(Co?So:(Co=1,So=Do())),jo={exports:{}},Ho={};function Uo(){if(No)return Ho;No=1;var e=sn(),t=P(),n=ar().f;return e({target:"Object",stat:!0,forced:Object.defineProperties!==n,sham:!t},{defineProperties:n}),Ho}function Qo(){if(Ro)return jo.exports;Ro=1,Uo();var e=Me().Object,t=jo.exports=function(t,n){return e.defineProperties(t,n)};return e.defineProperties.sham&&(t.sham=!0),jo.exports}function zo(){return Bo?Lo:(Bo=1,Lo=Qo())}var Wo,Go,Vo,Ko,Yo,qo,Xo=i(Fo?Po:(Fo=1,Po=zo())),Jo={exports:{}},Zo={};function ea(){if(Wo)return Zo;Wo=1;var e=sn(),t=P(),n=on().f;return e({target:"Object",stat:!0,forced:Object.defineProperty!==n,sham:!t},{defineProperty:n}),Zo}function ta(){if(Go)return Jo.exports;Go=1,ea();var e=Me().Object,t=Jo.exports=function(t,n,r){return e.defineProperty(t,n,r)};return e.defineProperty.sham&&(t.sham=!0),Jo.exports}function na(){return Ko?Vo:(Ko=1,Vo=ta())}var ra,ia,oa,aa,sa,la,ca=i(qo?Yo:(qo=1,Yo=na()));function ua(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function da(){return ia?ra:(ia=1,ra=na())}function ha(){return aa?oa:(aa=1,oa=da())}function fa(){return la?sa:(la=1,sa=ha())}var pa,ga,ma,va,Aa,ba,ya=i(fa()),wa={};function _a(){if(ga)return pa;ga=1;var e=TypeError;return pa=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}}function xa(){if(ma)return wa;ma=1;var e=sn(),t=S(),n=ci(),r=Oe(),i=wt(),o=er(),a=_a(),s=Mo(),l=di(),c=Zi(),u=Et(),d=Re(),h=u("isConcatSpreadable"),f=d>=51||!t(function(){var e=[];return e[h]=!1,e.concat()[0]!==e}),p=function(e){if(!r(e))return!1;var t=e[h];return void 0!==t?!!t:n(e)};return e({target:"Array",proto:!0,arity:1,forced:!f||!c("concat")},{concat:function(e){var t,n,r,c,u,d=i(this),h=l(d,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(p(u=-1===t?d:arguments[t]))for(c=o(u),a(f+c),n=0;n<c;n++,f++)n in u&&s(h,f,u[n]);else a(f+1),s(h,f++,u);return h.length=f,h}}),wa}var Ea,Sa,Ca,Ta,ka,Oa,Ma,Ia={};function Da(){return Ea||(Ea=1,ri()("iterator")),Ia}var Na,Ra={};function La(){if(Na)return Ra;Na=1;var e=ri(),t=ii();return e("toPrimitive"),t(),Ra}var Ba,Pa,Fa,$a,ja,Ha={},Ua={};function Qa(){return ja?$a:(ja=1,xa(),Li(),va||(va=1,ri()("asyncIterator")),Aa||(Aa=1,ri()("hasInstance")),ba||(ba=1,ri()("isConcatSpreadable")),Da(),Sa||(Sa=1,ri()("match")),Ca||(Ca=1,ri()("matchAll")),Ta||(Ta=1,ri()("replace")),ka||(ka=1,ri()("search")),Oa||(Oa=1,ri()("species")),Ma||(Ma=1,ri()("split")),La(),function(){if(Ba)return Ha;Ba=1;var e=Ie(),t=ri(),n=ai();t("toStringTag"),n(e("Symbol"),"Symbol")}(),Pa||(Pa=1,ri()("unscopables")),function(){if(Fa)return Ua;Fa=1;var e=E();ai()(e.JSON,"JSON",!0)}(),$a=Me().Symbol)}var za,Wa,Ga,Va,Ka,Ya,qa,Xa,Ja,Za,es,ts,ns,rs,is,os,as,ss,ls,cs,us,ds,hs,fs,ps,gs,ms,vs,As,bs,ys,ws,_s,xs={};function Es(){return Wa?za:(Wa=1,za=function(){})}function Ss(){return Va?Ga:(Va=1,Ga={})}function Cs(){if(Ya)return Ka;Ya=1;var e=P(),t=_t(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,i=t(n,"name"),o=i&&"something"===function(){}.name,a=i&&(!e||e&&r(n,"name").configurable);return Ka={EXISTS:i,PROPER:o,CONFIGURABLE:a}}function Ts(){return Xa?qa:(Xa=1,qa=!S()(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))}function ks(){if(Za)return Ja;Za=1;var e=_t(),t=I(),n=wt(),r=lr(),i=Ts(),o=r("IE_PROTO"),a=Object,s=a.prototype;return Ja=i?a.getPrototypeOf:function(r){var i=n(r);if(e(i,o))return i[o];var l=i.constructor;return t(l)&&i instanceof l?l.prototype:i instanceof a?s:null},Ja}function Os(){if(ts)return es;ts=1;var e,t,n,r=S(),i=I(),o=Oe(),a=cr(),s=ks(),l=Ir(),c=Et(),u=vt(),d=c("iterator"),h=!1;return[].keys&&("next"in(n=[].keys())?(t=s(s(n)))!==Object.prototype&&(e=t):h=!0),!o(e)||r(function(){var t={};return e[d].call(t)!==t})?e={}:u&&(e=a(e)),i(e[d])||l(e,d,function(){return this}),es={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}}function Ms(){if(rs)return ns;rs=1;var e=Os().IteratorPrototype,t=cr(),n=Ee(),r=ai(),i=Ss(),o=function(){return this};return ns=function(a,s,l,c){var u=s+" Iterator";return a.prototype=t(e,{next:n(+!c,l)}),r(a,u,!1,!0),i[u]=o,a}}function Is(){if(os)return is;os=1;var e=k(),t=$e();return is=function(n,r,i){try{return e(t(Object.getOwnPropertyDescriptor(n,r)[i]))}catch(e){}},is}function Ds(){if(ss)return as;ss=1;var e=Oe();return as=function(t){return e(t)||null===t}}function Ns(){if(cs)return ls;cs=1;var e=Ds(),t=String,n=TypeError;return ls=function(r){if(e(r))return r;throw new n("Can't set "+t(r)+" as a prototype")}}function Rs(){if(ds)return us;ds=1;var e=Is(),t=Oe(),n=Te(),r=Ns();return us=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,a={};try{(i=e(Object.prototype,"__proto__","set"))(a,[]),o=a instanceof Array}catch(e){}return function(e,a){return n(e),r(a),t(e)?(o?i(e,a):e.__proto__=a,e):e}}():void 0)}function Ls(){if(fs)return hs;fs=1;var e=sn(),t=F(),n=vt(),r=Cs(),i=I(),o=Ms(),a=ks(),s=Rs(),l=ai(),c=an(),u=Ir(),d=Et(),h=Ss(),f=Os(),p=r.PROPER,g=r.CONFIGURABLE,m=f.IteratorPrototype,v=f.BUGGY_SAFARI_ITERATORS,A=d("iterator"),b="keys",y="values",w="entries",_=function(){return this};return hs=function(r,d,f,x,E,S,C){o(f,d,x);var T,k,O,M=function(e){if(e===E&&L)return L;if(!v&&e&&e in N)return N[e];switch(e){case b:case y:case w:return function(){return new f(this,e)}}return function(){return new f(this)}},I=d+" Iterator",D=!1,N=r.prototype,R=N[A]||N["@@iterator"]||E&&N[E],L=!v&&R||M(E),B="Array"===d&&N.entries||R;if(B&&(T=a(B.call(new r)))!==Object.prototype&&T.next&&(n||a(T)===m||(s?s(T,m):i(T[A])||u(T,A,_)),l(T,I,!0,!0),n&&(h[I]=_)),p&&E===y&&R&&R.name!==y&&(!n&&g?c(N,"name",y):(D=!0,L=function(){return t(R,this)})),E)if(k={values:M(y),keys:S?L:M(b),entries:M(w)},C)for(O in k)(v||D||!(O in N))&&u(N,O,k[O]);else e({target:d,proto:!0,forced:v||D},k);return n&&!C||N[A]===L||u(N,A,L,{name:E}),h[d]=L,k}}function Bs(){return gs?ps:(gs=1,ps=function(e,t){return{value:e,done:t}})}function Ps(){if(vs)return ms;vs=1;var e=ke(),t=Es(),n=Ss(),r=li(),i=on().f,o=Ls(),a=Bs(),s=vt(),l=P(),c="Array Iterator",u=r.set,d=r.getterFor(c);ms=o(Array,"Array",function(t,n){u(this,{type:c,target:e(t),index:0,kind:n})},function(){var e=d(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,a(void 0,!0);switch(e.kind){case"keys":return a(n,!1);case"values":return a(t[n],!1)}return a([n,t[n]],!1)},"values");var h=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!s&&l&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(e){}return ms}function Fs(){return bs?As:(bs=1,As={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 $s(){if(ys)return xs;ys=1,Ps();var e=Fs(),t=E(),n=ai(),r=Ss();for(var i in e)n(t[i],i),r[i]=r.Array;return xs}function js(){if(_s)return ws;_s=1;var e=Qa();return $s(),ws=e}var Hs,Us,Qs,zs,Ws,Gs,Vs,Ks,Ys,qs,Xs,Js,Zs,el,tl,nl,rl,il,ol,al,sl,ll,cl,ul,dl={};function hl(){if(Gs)return Ws;Gs=1;var e=js();return function(){if(Hs)return dl;Hs=1;var e=Et(),t=on().f,n=e("metadata"),r=Function.prototype;void 0===r[n]&&t(r,n,{value:null})}(),Us||(Us=1,ri()("asyncDispose")),Qs||(Qs=1,ri()("dispose")),zs||(zs=1,ri()("metadata")),Ws=e}function fl(){if(Ks)return Vs;Ks=1;var e=Ie(),t=k(),n=e("Symbol"),r=n.keyFor,i=t(n.prototype.valueOf);return Vs=n.isRegisteredSymbol||function(e){try{return void 0!==r(i(e))}catch(e){return!1}}}function pl(){if(Xs)return qs;Xs=1;for(var e=yt(),t=Ie(),n=k(),r=Pe(),i=Et(),o=t("Symbol"),a=o.isWellKnownSymbol,s=t("Object","getOwnPropertyNames"),l=n(o.prototype.valueOf),c=e("wks"),u=0,d=s(o),h=d.length;u<h;u++)try{var f=d[u];r(o[f])&&i(f)}catch(e){}return qs=function(e){if(a&&a(e))return!0;try{for(var t=l(e),n=0,r=s(c),i=r.length;n<i;n++)if(c[r[n]]==t)return!0}catch(e){}return!1},qs}function gl(){if(ll)return sl;ll=1;var e=hl();return Ys||(Ys=1,sn()({target:"Symbol",stat:!0},{isRegisteredSymbol:fl()})),Js||(Js=1,sn()({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:pl()})),Zs||(Zs=1,ri()("customMatcher")),el||(el=1,ri()("observable")),tl||(tl=1,sn()({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:fl()})),nl||(nl=1,sn()({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:pl()})),rl||(rl=1,ri()("matcher")),il||(il=1,ri()("metadataKey")),ol||(ol=1,ri()("patternMatch")),al||(al=1,ri()("replaceAll")),sl=e}function ml(){return ul?cl:(ul=1,cl=gl())}var vl,Al,bl,yl,wl,_l,xl,El,Sl,Cl,Tl,kl,Ol,Ml=i(ml()),Il={};function Dl(){if(Al)return vl;Al=1;var e=k(),t=Xn(),n=vr(),r=Te(),i=e("".charAt),o=e("".charCodeAt),a=e("".slice),s=function(e){return function(s,l){var c,u,d=n(r(s)),h=t(l),f=d.length;return h<0||h>=f?e?"":void 0:(c=o(d,h))<55296||c>56319||h+1===f||(u=o(d,h+1))<56320||u>57343?e?i(d,h):c:e?a(d,h,h+2):u-56320+(c-55296<<10)+65536}};return vl={codeAt:s(!1),charAt:s(!0)}}function Nl(){if(bl)return Il;bl=1;var e=Dl().charAt,t=vr(),n=li(),r=Ls(),i=Bs(),o="String Iterator",a=n.set,s=n.getterFor(o);return r(String,"String",function(e){a(this,{type:o,string:t(e),index:0})},function(){var t,n=s(this),r=n.string,o=n.index;return o>=r.length?i(void 0,!0):(t=e(r,o),n.index+=t.length,i(t,!1))}),Il}function Rl(){return wl?yl:(wl=1,Ps(),Nl(),Da(),yl=ni().f("iterator"))}function Ll(){if(xl)return _l;xl=1;var e=Rl();return $s(),_l=e}function Bl(){return Sl?El:(Sl=1,El=Ll())}function Pl(){return Tl?Cl:(Tl=1,Cl=Bl())}function Fl(){return Ol?kl:(Ol=1,kl=Pl())}var $l,jl,Hl,Ul,Ql,zl,Wl,Gl,Vl,Kl,Yl=i(Fl());function ql(e){return ql="function"==typeof Ml&&"symbol"==typeof Yl?function(e){return typeof e}:function(e){return e&&"function"==typeof Ml&&e.constructor===Ml&&e!==Ml.prototype?"symbol":typeof e},ql(e)}function Xl(){return jl?$l:(jl=1,La(),$l=ni().f("toPrimitive"))}function Jl(){return Ul?Hl:(Ul=1,Hl=Xl())}function Zl(){return zl?Ql:(zl=1,Ql=Jl())}function ec(){return Gl?Wl:(Gl=1,Wl=Zl())}function tc(){return Kl?Vl:(Kl=1,Vl=ec())}var nc,rc,ic,oc,ac,sc,lc,cc,uc,dc,hc,fc=i(tc());function pc(e){var t=function(e,t){if("object"!=ql(e)||!e)return e;var n=e[fc];if(void 0!==n){var r=n.call(e,t);if("object"!=ql(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ql(t)?t:t+""}function gc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),ya(e,pc(r.key),r)}}function mc(e,t,n){return t&&gc(e.prototype,t),n&&gc(e,n),ya(e,"prototype",{writable:!1}),e}function vc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ac(e,t){if(t&&("object"==ql(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vc(e)}function bc(){return ic?rc:(ic=1,nc||(nc=1,sn()({target:"Object",stat:!0},{setPrototypeOf:Rs()})),rc=Me().Object.setPrototypeOf)}function yc(){return ac?oc:(ac=1,oc=bc())}function wc(){return lc?sc:(lc=1,sc=yc())}function _c(){return uc?cc:(uc=1,cc=wc())}function xc(){return hc?dc:(hc=1,dc=_c())}var Ec,Sc,Cc,Tc,kc,Oc,Mc,Ic,Dc,Nc,Rc,Lc,Bc,Pc=i(xc()),Fc={};function $c(){return Cc?Sc:(Cc=1,function(){if(Ec)return Fc;Ec=1;var e=sn(),t=cn();e({target:"Function",proto:!0,forced:Function.bind!==t},{bind:t})}(),Sc=eo()("Function","bind"))}function jc(){if(kc)return Tc;kc=1;var e=De(),t=$c(),n=Function.prototype;return Tc=function(r){var i=r.bind;return r===n||e(n,r)&&i===n.bind?t:i}}function Hc(){return Mc?Oc:(Mc=1,Oc=jc())}function Uc(){return Dc?Ic:(Dc=1,Ic=Hc())}function Qc(){return Rc?Nc:(Rc=1,Nc=Uc())}function zc(){return Bc?Lc:(Bc=1,Lc=Qc())}var Wc,Gc,Vc,Kc,Yc,qc,Xc,Jc,Zc,eu,tu,nu=i(zc()),ru={};function iu(){return Vc?Gc:(Vc=1,function(){if(Wc)return ru;Wc=1;var e=sn(),t=S(),n=wt(),r=ks(),i=Ts();e({target:"Object",stat:!0,forced:t(function(){r(1)}),sham:!i},{getPrototypeOf:function(e){return r(n(e))}})}(),Gc=Me().Object.getPrototypeOf)}function ou(){return Yc?Kc:(Yc=1,Kc=iu())}function au(){return Xc?qc:(Xc=1,qc=ou())}function su(){return Zc?Jc:(Zc=1,Jc=au())}function lu(){return tu?eu:(tu=1,eu=su())}var cu,uu,du,hu,fu,pu,gu,mu,vu,Au,bu,yu=i(lu());function wu(e){var t;return wu=Pc?nu(t=yu).call(t):function(e){return e.__proto__||yu(e)},wu(e)}function _u(){if(du)return uu;du=1,cu||(cu=1,sn()({target:"Object",stat:!0,sham:!P()},{create:cr()}));var e=Me().Object;return uu=function(t,n){return e.create(t,n)}}function xu(){return fu?hu:(fu=1,hu=_u())}function Eu(){return gu?pu:(gu=1,pu=xu())}function Su(){return vu?mu:(vu=1,mu=Eu())}function Cu(){return bu?Au:(bu=1,Au=Su())}var Tu,ku,Ou,Mu,Iu,Du,Nu,Ru,Lu=i(Cu());function Bu(e,t){var n;return Bu=Pc?nu(n=Pc).call(n):function(e,t){return e.__proto__=t,e},Bu(e,t)}function Pu(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Lu(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),ya(e,"prototype",{writable:!1}),t&&Bu(e,t)}function Fu(e,t,n){return(t=pc(t))in e?ya(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $u(){return ku?Tu:(ku=1,xa(),Tu=eo()("Array","concat"))}function ju(){if(Mu)return Ou;Mu=1;var e=De(),t=$u(),n=Array.prototype;return Ou=function(r){var i=r.concat;return r===n||e(n,r)&&i===n.concat?t:i}}function Hu(){return Du?Iu:(Du=1,Iu=ju())}var Uu,Qu,zu,Wu,Gu,Vu,Ku,Yu,qu,Xu=i(Ru?Nu:(Ru=1,Nu=Hu())),Ju=i(Qu?Uu:(Qu=1,Uu=Hc())),Zu={},ed={};function td(){return Wu?zu:(Wu=1,zu="function"==typeof Bun&&Bun&&"string"==typeof Bun.version)}function nd(){if(Vu)return Gu;Vu=1;var e=TypeError;return Gu=function(t,n){if(t<n)throw new e("Not enough arguments");return t}}function rd(){if(Yu)return Ku;Yu=1;var e=E(),t=T(),n=I(),r=td(),i=Ne(),o=ln(),a=nd(),s=e.Function,l=/MSIE .\./.test(i)||r&&function(){var t=e.Bun.version.split(".");return t.length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2])}();return Ku=function(e,r){var i=r?2:1;return l?function(l,c){var u=a(arguments.length,1)>i,d=n(l)?l:s(l),h=u?o(arguments,i):[],f=u?function(){t(d,this,h)}:d;return r?e(f,c):e(f)}:e},Ku}var id,od,ad,sd,ld,cd,ud={};function dd(){return od||(od=1,function(){if(qu)return ed;qu=1;var e=sn(),t=E(),n=rd()(t.setInterval,!0);e({global:!0,bind:!0,forced:t.setInterval!==n},{setInterval:n})}(),function(){if(id)return ud;id=1;var e=sn(),t=E(),n=rd()(t.setTimeout,!0);e({global:!0,bind:!0,forced:t.setTimeout!==n},{setTimeout:n})}()),Zu}function hd(){return sd?ad:(sd=1,dd(),ad=Me().setTimeout)}var fd,pd,gd,md,vd,Ad,bd,yd,wd,_d=i(cd?ld:(cd=1,ld=hd())),xd={};function Ed(){if(pd)return fd;pd=1;var e=P(),t=k(),n=F(),r=S(),i=or(),o=Mr(),a=xe(),s=wt(),l=Se(),c=Object.assign,u=Object.defineProperty,d=t([].concat);return fd=!c||r(function(){if(e&&1!==c({b:1},c(u({},"a",{enumerable:!0,get:function(){u(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach(function(e){n[e]=e}),7!==c({},t)[r]||i(c({},n)).join("")!==o})?function(t,r){for(var c=s(t),u=arguments.length,h=1,f=o.f,p=a.f;u>h;)for(var g,m=l(arguments[h++]),v=f?d(i(m),f(m)):i(m),A=v.length,b=0;A>b;)g=v[b++],e&&!n(p,m,g)||(c[g]=m[g]);return c}:c,fd}function Sd(){return vd?md:(vd=1,function(){if(gd)return xd;gd=1;var e=sn(),t=Ed();e({target:"Object",stat:!0,arity:2,forced:Object.assign!==t},{assign:t})}(),md=Me().Object.assign)}function Cd(){return bd?Ad:(bd=1,Ad=Sd())}var Td,kd,Od,Md=i(wd?yd:(wd=1,yd=Cd())),Id={};function Dd(){return Od?kd:(Od=1,function(){if(Td)return Id;Td=1;var e=sn(),t=tr().includes,n=S(),r=Es();e({target:"Array",proto:!0,forced:n(function(){return!Array(1).includes()})},{includes:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")}(),kd=eo()("Array","includes"))}var Nd,Rd,Ld,Bd,Pd,Fd,$d,jd,Hd,Ud,Qd,zd,Wd,Gd,Vd,Kd={};function Yd(){if(Rd)return Nd;Rd=1;var e=Oe(),t=O(),n=Et()("match");return Nd=function(r){var i;return e(r)&&(void 0!==(i=r[n])?!!i:"RegExp"===t(r))}}function qd(){if(Bd)return Ld;Bd=1;var e=Yd(),t=TypeError;return Ld=function(n){if(e(n))throw new t("The method doesn't accept regular expressions");return n}}function Xd(){if(Fd)return Pd;Fd=1;var e=Et()("match");return Pd=function(t){var n=/./;try{"/./"[t](n)}catch(a){try{return n[e]=!1,"/./"[t](n)}catch(e){}}return!1}}function Jd(){return Hd?jd:(Hd=1,function(){if($d)return Kd;$d=1;var e=sn(),t=k(),n=qd(),r=Te(),i=vr(),o=Xd(),a=t("".indexOf);e({target:"String",proto:!0,forced:!o("includes")},{includes:function(e){return!!~a(i(r(this)),i(n(e)),arguments.length>1?arguments[1]:void 0)}})}(),jd=eo()("String","includes"))}function Zd(){if(Qd)return Ud;Qd=1;var e=De(),t=Dd(),n=Jd(),r=Array.prototype,i=String.prototype;return Ud=function(o){var a=o.includes;return o===r||e(r,o)&&a===r.includes?t:"string"==typeof o||o===i||e(i,o)&&a===i.includes?n:a}}function eh(){return Wd?zd:(Wd=1,zd=Zd())}var th,nh,rh,ih,oh,ah,sh,lh,ch,uh=i(Vd?Gd:(Vd=1,Gd=eh())),dh={};function hh(){return rh?nh:(rh=1,function(){if(th)return dh;th=1;var e=sn(),t=hi().map;e({target:"Array",proto:!0,forced:!Zi()("map")},{map:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})}(),nh=eo()("Array","map"))}function fh(){if(oh)return ih;oh=1;var e=De(),t=hh(),n=Array.prototype;return ih=function(r){var i=r.map;return r===n||e(n,r)&&i===n.map?t:i}}function ph(){return sh?ah:(sh=1,ah=fh())}var gh,mh,vh,Ah,bh,yh,wh,_h=i(ch?lh:(ch=1,lh=ph())),xh={};function Eh(){return vh?mh:(vh=1,function(){if(gh)return xh;gh=1;var e=sn(),t=wt(),n=or();e({target:"Object",stat:!0,forced:S()(function(){n(1)})},{keys:function(e){return n(t(e))}})}(),mh=Me().Object.keys)}function Sh(){return bh?Ah:(bh=1,Ah=Eh())}var Ch,Th,kh,Oh,Mh,Ih,Dh,Nh,Rh,Lh,Bh,Ph,Fh,$h=i(wh?yh:(wh=1,yh=Sh())),jh={};function Hh(){if(Th)return Ch;Th=1;var e=S();return Ch=function(t,n){var r=[][t];return!!r&&e(function(){r.call(null,n||function(){return 1},1)})}}function Uh(){if(Oh)return kh;Oh=1;var e=hi().forEach,t=Hh()("forEach");return kh=t?[].forEach:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)},kh}function Qh(){return Dh?Ih:(Dh=1,function(){if(Mh)return jh;Mh=1;var e=sn(),t=Uh();e({target:"Array",proto:!0,forced:[].forEach!==t},{forEach:t})}(),Ih=eo()("Array","forEach"))}function zh(){return Rh?Nh:(Rh=1,Nh=Qh())}function Wh(){if(Bh)return Lh;Bh=1;var e=dn(),t=_t(),n=De(),r=zh(),i=Array.prototype,o={DOMTokenList:!0,NodeList:!0};return Lh=function(a){var s=a.forEach;return a===i||n(i,a)&&s===i.forEach||t(o,e(a))?r:s}}var Gh,Vh,Kh,Yh,qh,Xh,Jh,Zh,ef,tf,nf,rf,of,af,sf,lf,cf,uf,df,hf,ff,pf,gf=i(Fh?Ph:(Fh=1,Ph=Wh())),mf={};function vf(){if(Vh)return Gh;Vh=1;var e=rn();return Gh=function(){var t=e(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n}}function Af(){if(Yh)return Kh;Yh=1;var e=F(),t=_t(),n=De(),r=vf(),i=RegExp.prototype;return Kh=function(o){var a=o.flags;return void 0!==a||"flags"in i||t(o,"flags")||!n(i,o)?a:e(r,o)}}function bf(){if(Xh)return qh;Xh=1;var e=k(),t=wt(),n=Math.floor,r=e("".charAt),i=e("".replace),o=e("".slice),a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return qh=function(e,l,c,u,d,h){var f=c+e.length,p=u.length,g=s;return void 0!==d&&(d=t(d),g=a),i(h,g,function(t,i){var a;switch(r(i,0)){case"$":return"$";case"&":return e;case"`":return o(l,0,c);case"'":return o(l,f);case"<":a=d[o(i,1,-1)];break;default:var s=+i;if(0===s)return t;if(s>p){var h=n(s/10);return 0===h?t:h<=p?void 0===u[h-1]?r(i,1):u[h-1]+r(i,1):t}a=u[s-1]}return void 0===a?"":a})},qh}function yf(){if(Jh)return mf;Jh=1;var e=sn(),t=F(),n=k(),r=Te(),i=I(),o=Ce(),a=Yd(),s=vr(),l=je(),c=Af(),u=bf(),d=Et(),h=vt(),f=d("replace"),p=TypeError,g=n("".indexOf),m=n("".replace),v=n("".slice),A=Math.max;return e({target:"String",proto:!0},{replaceAll:function(e,n){var d,b,y,w,_,x,E,S,C,T=r(this),k=0,O=0,M="";if(!o(e)){if((d=a(e))&&(b=s(r(c(e))),!~g(b,"g")))throw new p("`.replaceAll` does not allow non-global regexes");if(y=l(e,f))return t(y,e,T,n);if(h&&d)return m(s(T),e,n)}for(w=s(T),_=s(e),(x=i(n))||(n=s(n)),E=_.length,S=A(1,E),k=g(w,_);-1!==k;)C=x?s(n(_,k,w)):u(_,w,k,[],void 0,n),M+=v(w,O,k)+C,O=k+E,k=k+S>w.length?-1:g(w,_,k+S);return O<w.length&&(M+=v(w,O)),M}}),mf}function wf(){return tf?ef:(tf=1,yf(),ef=eo()("String","replaceAll"))}function _f(){if(rf)return nf;rf=1;var e=De(),t=wf(),n=String.prototype;return nf=function(r){var i=r.replaceAll;return"string"==typeof r||r===n||e(n,r)&&i===n.replaceAll?t:i}}function xf(){return af?of:(af=1,of=_f())}function Ef(){return lf?sf:(lf=1,sf=xf())}function Sf(){return uf?cf:(uf=1,Zh||(Zh=1,yf()),cf=Ef())}function Cf(){return hf?df:(hf=1,df=Sf())}var Tf,kf,Of,Mf,If,Df,Nf,Rf,Lf,Bf,Pf,Ff,$f,jf,Hf,Uf,Qf,zf,Wf,Gf,Vf,Kf,Yf,qf,Xf,Jf,Zf,ep,tp,np,rp,ip,op,ap,sp,lp,cp,up,dp,hp,fp,pp,gp,mp,vp,Ap,bp,yp,wp,_p,xp,Ep,Sp,Cp,Tp,kp,Op,Mp,Ip,Dp,Np,Rp,Lp,Bp,Pp,Fp,$p,jp,Hp,Up,Qp,zp,Wp,Gp,Vp,Kp,Yp,qp,Xp,Jp,Zp,eg,tg,ng,rg,ig,og,ag,sg,lg,cg,ug,dg,hg,fg,pg,gg,mg,vg=i(pf?ff:(pf=1,ff=Cf()));function Ag(){return Mf?Of:(Mf=1,Of=function(e,t){return e===t||e!=e&&t!=t})}function bg(){if(Df)return If;Df=1;var e=Ag();return If=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1},If}function yg(){if(Uf)return Hf;Uf=1;var e=kf?Tf:(kf=1,Tf=function(){this.__data__=[],this.size=0}),t=function(){if(Rf)return Nf;Rf=1;var e=bg(),t=Array.prototype.splice;return Nf=function(n){var r=this.__data__,i=e(r,n);return!(i<0||(i==r.length-1?r.pop():t.call(r,i,1),--this.size,0))},Nf}(),n=function(){if(Bf)return Lf;Bf=1;var e=bg();return Lf=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]},Lf}(),r=function(){if(Ff)return Pf;Ff=1;var e=bg();return Pf=function(t){return e(this.__data__,t)>-1},Pf}(),i=function(){if(jf)return $f;jf=1;var e=bg();return $f=function(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this},$f}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Hf=o}function wg(){if(Jf)return Xf;Jf=1;var e="object"==typeof r&&r&&r.Object===Object&&r;return Xf=e}function _g(){if(ep)return Zf;ep=1;var e=wg(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Zf=n}function xg(){if(np)return tp;np=1;var e=_g().Symbol;return tp=e}function Eg(){if(lp)return sp;lp=1;var e=xg(),t=function(){if(ip)return rp;ip=1;var e=xg(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;return rp=function(e){var t=n.call(e,i),o=e[i];try{e[i]=void 0;var a=!0}catch(e){}var s=r.call(e);return a&&(t?e[i]=o:delete e[i]),s}}(),n=function(){if(ap)return op;ap=1;var e=Object.prototype.toString;return op=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return sp=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function Sg(){return up||(up=1,cp=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}),cp}function Cg(){if(hp)return dp;hp=1;var e=Eg(),t=Sg();return dp=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function Tg(){if(mp)return gp;mp=1;var e=function(){if(pp)return fp;pp=1;var e=_g()["__core-js_shared__"];return fp=e}(),t=function(){var t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();return gp=function(e){return!!t&&t in e}}function kg(){if(Ap)return vp;Ap=1;var e=Function.prototype.toString;return vp=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function Og(){if(Ep)return xp;Ep=1;var e=function(){if(yp)return bp;yp=1;var e=Cg(),t=Tg(),n=Sg(),r=kg(),i=/^\[object .+?Constructor\]$/,o=Function.prototype,a=Object.prototype,s=o.toString,l=a.hasOwnProperty,c=RegExp("^"+s.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return bp=function(o){return!(!n(o)||t(o))&&(e(o)?c:i).test(r(o))}}(),t=(_p||(_p=1,wp=function(e,t){return null==e?void 0:e[t]}),wp);return xp=function(n,r){var i=t(n,r);return e(i)?i:void 0},xp}function Mg(){if(Cp)return Sp;Cp=1;var e=Og()(_g(),"Map");return Sp=e}function Ig(){if(kp)return Tp;kp=1;var e=Og()(Object,"create");return Tp=e}function Dg(){if(jp)return $p;jp=1;var e=function(){if(Mp)return Op;Mp=1;var e=Ig();return Op=function(){this.__data__=e?e(null):{},this.size=0}}(),t=(Dp||(Dp=1,Ip=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),Ip),n=function(){if(Rp)return Np;Rp=1;var e=Ig(),t=Object.prototype.hasOwnProperty;return Np=function(n){var r=this.__data__;if(e){var i=r[n];return"__lodash_hash_undefined__"===i?void 0:i}return t.call(r,n)?r[n]:void 0},Np}(),r=function(){if(Bp)return Lp;Bp=1;var e=Ig(),t=Object.prototype.hasOwnProperty;return Lp=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)},Lp}(),i=function(){if(Fp)return Pp;Fp=1;var e=Ig();return Pp=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this},Pp}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,$p=o}function Ng(){if(Gp)return Wp;Gp=1;var e=(zp||(zp=1,Qp=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}),Qp);return Wp=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map},Wp}function Rg(){if(ng)return tg;ng=1;var e=function(){if(Up)return Hp;Up=1;var e=Dg(),t=yg(),n=Mg();return Hp=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}(),t=function(){if(Kp)return Vp;Kp=1;var e=Ng();return Vp=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n},Vp}(),n=function(){if(qp)return Yp;qp=1;var e=Ng();return Yp=function(t){return e(this,t).get(t)},Yp}(),r=function(){if(Jp)return Xp;Jp=1;var e=Ng();return Xp=function(t){return e(this,t).has(t)},Xp}(),i=function(){if(eg)return Zp;eg=1;var e=Ng();return Zp=function(t,n){var r=e(this,t),i=r.size;return r.set(t,n),this.size+=r.size==i?0:1,this},Zp}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,tg=o}function Lg(){if(ag)return og;ag=1;var e=yg(),t=function(){if(zf)return Qf;zf=1;var e=yg();return Qf=function(){this.__data__=new e,this.size=0}}(),n=(Gf||(Gf=1,Wf=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}),Wf),r=(Kf||(Kf=1,Vf=function(e){return this.__data__.get(e)}),Vf),i=(qf||(qf=1,Yf=function(e){return this.__data__.has(e)}),Yf),o=function(){if(ig)return rg;ig=1;var e=yg(),t=Mg(),n=Rg();return rg=function(r,i){var o=this.__data__;if(o instanceof e){var a=o.__data__;if(!t||a.length<199)return a.push([r,i]),this.size=++o.size,this;o=this.__data__=new n(a)}return o.set(r,i),this.size=o.size,this},rg}();function a(t){var n=this.__data__=new e(t);this.size=n.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=o,og=a}function Bg(){if(lg)return sg;lg=1;var e=Og(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();return sg=t}function Pg(){if(ug)return cg;ug=1;var e=Bg();return cg=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r},cg}function Fg(){if(hg)return dg;hg=1;var e=Pg(),t=Ag();return dg=function(n,r,i){(void 0!==i&&!t(n[r],i)||void 0===i&&!(r in n))&&e(n,r,i)},dg}function $g(){if(mg)return gg;mg=1;var e=(pg||(pg=1,fg=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}),fg),t=e();return gg=t}var jg,Hg,Ug,Qg,zg,Wg,Gg,Vg,Kg,Yg,qg,Xg,Jg,Zg,em,tm,nm,rm,im,om,am,sm,lm,cm,um,dm,hm,fm,pm,gm,mm,vm,Am,bm={exports:{}};function ym(){return jg||(jg=1,function(e,t){var n=_g(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}(bm,bm.exports)),bm.exports}function wm(){if(zg)return Qg;zg=1;var e=function(){if(Ug)return Hg;Ug=1;var e=_g().Uint8Array;return Hg=e}();return Qg=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n}}function _m(){if(Gg)return Wg;Gg=1;var e=wm();return Wg=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}function xm(){return Kg||(Kg=1,Vg=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}),Vg}function Em(){return Jg?Xg:(Jg=1,Xg=function(e,t){return function(n){return e(t(n))}})}function Sm(){if(em)return Zg;em=1;var e=Em()(Object.getPrototypeOf,Object);return Zg=e}function Cm(){if(nm)return tm;nm=1;var e=Object.prototype;return tm=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function Tm(){if(im)return rm;im=1;var e=function(){if(qg)return Yg;qg=1;var e=Sg(),t=Object.create,n=function(){function n(){}return function(r){if(!e(r))return{};if(t)return t(r);n.prototype=r;var i=new n;return n.prototype=void 0,i}}();return Yg=n}(),t=Sm(),n=Cm();return rm=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))},rm}function km(){return am?om:(am=1,om=function(e){return null!=e&&"object"==typeof e})}function Om(){if(um)return cm;um=1;var e=function(){if(lm)return sm;lm=1;var e=Eg(),t=km();return sm=function(n){return t(n)&&"[object Arguments]"==e(n)}}(),t=km(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!i.call(e,"callee")};return cm=o}function Mm(){if(hm)return dm;hm=1;var e=Array.isArray;return dm=e}function Im(){return pm?fm:(pm=1,fm=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991})}function Dm(){if(mm)return gm;mm=1;var e=Cg(),t=Im();return gm=function(n){return null!=n&&t(n.length)&&!e(n)}}var Nm,Rm,Lm,Bm,Pm,Fm,$m,jm,Hm,Um={exports:{}};function Qm(){return Lm||(Lm=1,function(e,t){var n=_g(),r=Rm?Nm:(Rm=1,Nm=function(){return!1}),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}(Um,Um.exports)),Um.exports}function zm(){return Hm?jm:(Hm=1,jm=function(e){return function(t){return e(t)}})}var Wm,Gm,Vm,Km,Ym,qm,Xm,Jm,Zm,ev,tv,nv,rv,iv,ov,av,sv,lv,cv,uv,dv,hv,fv,pv,gv,mv,vv,Av,bv,yv,wv,_v,xv,Ev,Sv,Cv,Tv,kv,Ov,Mv,Iv,Dv,Nv,Rv,Lv,Bv,Pv,Fv,$v,jv={exports:{}};function Hv(){return Wm||(Wm=1,function(e,t){var n=wg(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}(jv,jv.exports)),jv.exports}function Uv(){if(Vm)return Gm;Vm=1;var e=function(){if($m)return Fm;$m=1;var e=Eg(),t=Im(),n=km(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,Fm=function(i){return n(i)&&t(i.length)&&!!r[e(i)]}}(),t=zm(),n=Hv(),r=n&&n.isTypedArray,i=r?t(r):e;return Gm=i}function Qv(){return Ym||(Ym=1,Km=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}),Km}function zv(){if(Xm)return qm;Xm=1;var e=Pg(),t=Ag(),n=Object.prototype.hasOwnProperty;return qm=function(r,i,o){var a=r[i];n.call(r,i)&&t(a,o)&&(void 0!==o||i in r)||e(r,i,o)},qm}function Wv(){if(Zm)return Jm;Zm=1;var e=zv(),t=Pg();return Jm=function(n,r,i,o){var a=!i;i||(i={});for(var s=-1,l=r.length;++s<l;){var c=r[s],u=o?o(i[c],n[c],c,i,n):void 0;void 0===u&&(u=n[c]),a?t(i,c,u):e(i,c,u)}return i},Jm}function Gv(){if(rv)return nv;rv=1;var e=/^(?:0|[1-9]\d*)$/;return nv=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n},nv}function Vv(){if(ov)return iv;ov=1;var e=tv?ev:(tv=1,ev=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}),t=Om(),n=Mm(),r=Qm(),i=Gv(),o=Uv(),a=Object.prototype.hasOwnProperty;return iv=function(s,l){var c=n(s),u=!c&&t(s),d=!c&&!u&&r(s),h=!c&&!u&&!d&&o(s),f=c||u||d||h,p=f?e(s.length,String):[],g=p.length;for(var m in s)!l&&!a.call(s,m)||f&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||i(m,g))||p.push(m);return p},iv}function Kv(){if(cv)return lv;cv=1;var e=Sg(),t=Cm(),n=(sv||(sv=1,av=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}),av),r=Object.prototype.hasOwnProperty;return lv=function(i){if(!e(i))return n(i);var o=t(i),a=[];for(var s in i)("constructor"!=s||!o&&r.call(i,s))&&a.push(s);return a},lv}function Yv(){if(dv)return uv;dv=1;var e=Vv(),t=Kv(),n=Dm();return uv=function(r){return n(r)?e(r,!0):t(r)},uv}function qv(){if(gv)return pv;gv=1;var e=Fg(),t=ym(),n=_m(),r=xm(),i=Tm(),o=Om(),a=Mm(),s=function(){if(Am)return vm;Am=1;var e=Dm(),t=km();return vm=function(n){return t(n)&&e(n)}}(),l=Qm(),c=Cg(),u=Sg(),d=function(){if(Pm)return Bm;Pm=1;var e=Eg(),t=Sm(),n=km(),r=Function.prototype,i=Object.prototype,o=r.toString,a=i.hasOwnProperty,s=o.call(Object);return Bm=function(r){if(!n(r)||"[object Object]"!=e(r))return!1;var i=t(r);if(null===i)return!0;var l=a.call(i,"constructor")&&i.constructor;return"function"==typeof l&&l instanceof l&&o.call(l)==s}}(),h=Uv(),f=Qv(),p=function(){if(fv)return hv;fv=1;var e=Wv(),t=Yv();return hv=function(n){return e(n,t(n))}}();return pv=function(g,m,v,A,b,y,w){var _=f(g,v),x=f(m,v),E=w.get(x);if(E)e(g,v,E);else{var S=y?y(_,x,v+"",g,m,w):void 0,C=void 0===S;if(C){var T=a(x),k=!T&&l(x),O=!T&&!k&&h(x);S=x,T||k||O?a(_)?S=_:s(_)?S=r(_):k?(C=!1,S=t(x,!0)):O?(C=!1,S=n(x,!0)):S=[]:d(x)||o(x)?(S=_,o(_)?S=p(_):u(_)&&!c(_)||(S=i(x))):C=!1}C&&(w.set(x,S),b(S,x,A,y,w),w.delete(x)),e(g,v,S)}},pv}function Xv(){return bv?Av:(bv=1,Av=function(e){return e})}function Jv(){if(xv)return _v;xv=1;var e=wv?yv:(wv=1,yv=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}),t=Math.max;return _v=function(n,r,i){return r=t(void 0===r?n.length-1:r,0),function(){for(var o=arguments,a=-1,s=t(o.length-r,0),l=Array(s);++a<s;)l[a]=o[r+a];a=-1;for(var c=Array(r+1);++a<r;)c[a]=o[a];return c[r]=i(l),e(n,this,c)}},_v}function Zv(){if(Tv)return Cv;Tv=1;var e=Sv?Ev:(Sv=1,Ev=function(e){return function(){return e}}),t=Bg(),n=Xv();return Cv=t?function(n,r){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:n}function eA(){if(Iv)return Mv;Iv=1;var e=Zv(),t=function(){if(Ov)return kv;Ov=1;var e=Date.now;return kv=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}},kv}(),n=t(e);return Mv=n}function tA(){if(Pv)return Bv;Pv=1;var e=function(){if(Nv)return Dv;Nv=1;var e=Xv(),t=Jv(),n=eA();return Dv=function(r,i){return n(t(r,i,e),r+"")},Dv}(),t=function(){if(Lv)return Rv;Lv=1;var e=Ag(),t=Dm(),n=Gv(),r=Sg();return Rv=function(i,o,a){if(!r(a))return!1;var s=typeof o;return!!("number"==s?t(a)&&n(o,a.length):"string"==s&&o in a)&&e(a[o],i)},Rv}();return Bv=function(n){return e(function(e,r){var i=-1,o=r.length,a=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(a=n.length>3&&"function"==typeof a?(o--,a):void 0,s&&t(r[0],r[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++i<o;){var l=r[i];l&&n(e,l,i,a)}return e})},Bv}var nA,rA,iA,oA,aA,sA,lA=function(){if($v)return Fv;$v=1;var e=function(){if(vv)return mv;vv=1;var e=Lg(),t=Fg(),n=$g(),r=qv(),i=Sg(),o=Yv(),a=Qv();return mv=function s(l,c,u,d,h){l!==c&&n(c,function(n,o){if(h||(h=new e),i(n))r(l,c,o,u,s,d,h);else{var f=d?d(a(l,o),n,o+"",l,c,h):void 0;void 0===f&&(f=n),t(l,o,f)}},o)},mv}(),t=tA()(function(t,n,r,i){e(t,n,r,i)});return Fv=t}(),cA=i(lA);function uA(){return rA?nA:(rA=1,nA=Pi())}function dA(){return oA?iA:(oA=1,iA=uA())}function hA(){return sA?aA:(sA=1,aA=dA())}var fA,pA,gA,mA,vA,AA,bA,yA,wA,_A,xA,EA,SA,CA=i(hA()),TA={};function kA(){return gA?pA:(gA=1,function(){if(fA)return TA;fA=1;var e=sn(),t=M(),n=tr().indexOf,r=Hh(),i=t([].indexOf),o=!!i&&1/i([1],1,-0)<0;e({target:"Array",proto:!0,forced:o||!r("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return o?i(this,e,t)||0:n(this,e,t)}})}(),pA=eo()("Array","indexOf"))}function OA(){if(vA)return mA;vA=1;var e=De(),t=kA(),n=Array.prototype;return mA=function(r){var i=r.indexOf;return r===n||e(n,r)&&i===n.indexOf?t:i}}function MA(){return bA?AA:(bA=1,AA=OA())}function IA(){return wA?yA:(wA=1,yA=MA())}function DA(){return xA?_A:(xA=1,_A=IA())}function NA(){return SA?EA:(SA=1,EA=DA())}var RA,LA,BA,PA,FA,$A,jA,HA,UA,QA,zA,WA=i(NA());function GA(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(WA(t).call(t,r)>=0)continue;n[r]=e[r]}return n}(e,t);if(CA){var o=CA(e);for(r=0;r<o.length;r++)n=o[r],WA(t).call(t,n)>=0||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function VA(){return BA?LA:(BA=1,RA||(RA=1,sn()({target:"Array",stat:!0},{isArray:ci()})),LA=Me().Array.isArray)}function KA(){return FA?PA:(FA=1,PA=VA())}function YA(){return jA?$A:(jA=1,$A=KA())}function qA(){return UA?HA:(UA=1,HA=YA())}function XA(){return zA?QA:(zA=1,QA=qA())}var JA,ZA,eb,tb,nb,rb,ib,ob,ab,sb,lb,cb,ub=i(XA());function db(e){if(ub(e))return e}function hb(){if(ZA)return JA;ZA=1;var e=dn(),t=je(),n=Ce(),r=Ss(),i=Et()("iterator");return JA=function(o){if(!n(o))return t(o,i)||t(o,"@@iterator")||r[e(o)]}}function fb(){return tb?eb:(tb=1,Ps(),Nl(),eb=hb())}function pb(){if(rb)return nb;rb=1;var e=fb();return $s(),nb=e}function gb(){return ob?ib:(ob=1,ib=pb())}function mb(){return sb?ab:(sb=1,ab=gb())}function vb(){return cb?lb:(cb=1,lb=mb())}var Ab,bb,yb,wb,_b,xb,Eb,Sb,Cb,Tb,kb,Ob,Mb,Ib,Db,Nb=i(vb()),Rb={};function Lb(){if(bb)return Ab;bb=1;var e=P(),t=ci(),n=TypeError,r=Object.getOwnPropertyDescriptor,i=e&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();return Ab=i?function(e,i){if(t(e)&&!r(e,"length").writable)throw new n("Cannot set read only .length");return e.length=i}:function(e,t){return e.length=t},Ab}function Bb(){return _b?wb:(_b=1,function(){if(yb)return Rb;yb=1;var e=sn(),t=wt(),n=er(),r=Lb(),i=_a();e({target:"Array",proto:!0,arity:1,forced:S()(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var o=t(this),a=n(o),s=arguments.length;i(a+s);for(var l=0;l<s;l++)o[a]=arguments[l],a++;return r(o,a),a}})}(),wb=eo()("Array","push"))}function Pb(){if(Eb)return xb;Eb=1;var e=De(),t=Bb(),n=Array.prototype;return xb=function(r){var i=r.push;return r===n||e(n,r)&&i===n.push?t:i}}function Fb(){return Cb?Sb:(Cb=1,Sb=Pb())}function $b(){return kb?Tb:(kb=1,Tb=Fb())}function jb(){return Mb?Ob:(Mb=1,Ob=$b())}function Hb(){return Db?Ib:(Db=1,Ib=jb())}var Ub,Qb,zb,Wb,Gb,Vb,Kb,Yb,qb,Xb,Jb,Zb,ey,ty=i(Hb()),ny={};function ry(){return zb?Qb:(zb=1,function(){if(Ub)return ny;Ub=1;var e=sn(),t=ci(),n=fn(),r=Oe(),i=Jn(),o=er(),a=ke(),s=Mo(),l=Et(),c=Zi(),u=ln(),d=c("slice"),h=l("species"),f=Array,p=Math.max;e({target:"Array",proto:!0,forced:!d},{slice:function(e,l){var c,d,g,m=a(this),v=o(m),A=i(e,v),b=i(void 0===l?v:l,v);if(t(m)&&(c=m.constructor,(n(c)&&(c===f||t(c.prototype))||r(c)&&null===(c=c[h]))&&(c=void 0),c===f||void 0===c))return u(m,A,b);for(d=new(void 0===c?f:c)(p(b-A,0)),g=0;A<b;A++,g++)A in m&&s(d,g,m[A]);return d.length=g,d}})}(),Qb=eo()("Array","slice"))}function iy(){if(Gb)return Wb;Gb=1;var e=De(),t=ry(),n=Array.prototype;return Wb=function(r){var i=r.slice;return r===n||e(n,r)&&i===n.slice?t:i}}function oy(){return Kb?Vb:(Kb=1,Vb=iy())}function ay(){return qb?Yb:(qb=1,Yb=oy())}function sy(){return Jb?Xb:(Jb=1,Xb=ay())}function ly(){return ey?Zb:(ey=1,Zb=sy())}var cy,uy,dy,hy,fy,py,gy,my,vy,Ay,by,yy,wy,_y,xy,Ey,Sy,Cy,Ty,ky,Oy,My,Iy,Dy=i(ly()),Ny={};function Ry(){if(uy)return cy;uy=1;var e=F(),t=rn(),n=je();return cy=function(r,i,o){var a,s;t(r);try{if(!(a=n(r,"return"))){if("throw"===i)throw o;return o}a=e(a,r)}catch(e){s=!0,a=e}if("throw"===i)throw o;if(s)throw a;return t(a),o},cy}function Ly(){if(hy)return dy;hy=1;var e=rn(),t=Ry();return dy=function(n,r,i,o){try{return o?r(e(i)[0],i[1]):r(i)}catch(e){t(n,"throw",e)}},dy}function By(){if(py)return fy;py=1;var e=Et(),t=Ss(),n=e("iterator"),r=Array.prototype;return fy=function(e){return void 0!==e&&(t.Array===e||r[n]===e)}}function Py(){if(my)return gy;my=1;var e=F(),t=$e(),n=rn(),r=Fe(),i=hb(),o=TypeError;return gy=function(a,s){var l=arguments.length<2?i(a):s;if(t(l))return n(e(l,a));throw new o(r(a)+" is not iterable")},gy}function Fy(){if(Ay)return vy;Ay=1;var e=It(),t=F(),n=wt(),r=Ly(),i=By(),o=fn(),a=er(),s=Mo(),l=Py(),c=hb(),u=Array;return vy=function(d){var h=n(d),f=o(this),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g;m&&(g=e(g,p>2?arguments[2]:void 0));var v,A,b,y,w,_,x=c(h),E=0;if(!x||this===u&&i(x))for(v=a(h),A=f?new this(v):u(v);v>E;E++)_=m?g(h[E],E):h[E],s(A,E,_);else for(A=f?new this:[],w=(y=l(h,x)).next;!(b=t(w,y)).done;E++)_=m?r(y,g,[b.value,E],!0):b.value,s(A,E,_);return A.length=E,A},vy}function $y(){if(yy)return by;yy=1;var e=Et()("iterator"),t=!1;try{var n=0,r={next:function(){return{done:!!n++}},return:function(){t=!0}};r[e]=function(){return this},Array.from(r,function(){throw 2})}catch(e){}return by=function(n,r){try{if(!r&&!t)return!1}catch(e){return!1}var i=!1;try{var o={};o[e]=function(){return{next:function(){return{done:i=!0}}}},n(o)}catch(e){}return i},by}function jy(){return xy?_y:(xy=1,Nl(),function(){if(wy)return Ny;wy=1;var e=sn(),t=Fy();e({target:"Array",stat:!0,forced:!$y()(function(e){Array.from(e)})},{from:t})}(),_y=Me().Array.from)}function Hy(){return Sy?Ey:(Sy=1,Ey=jy())}function Uy(){return Ty?Cy:(Ty=1,Cy=Hy())}function Qy(){return Oy?ky:(Oy=1,ky=Uy())}function zy(){return Iy?My:(Iy=1,My=Qy())}var Wy=i(zy());function Gy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Vy(e,t){if(e){var n;if("string"==typeof e)return Gy(e,t);var r=Dy(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Wy(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gy(e,t):void 0}}function Ky(){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 Yy(e,t){return db(e)||function(e,t){var n=null==e?null:void 0!==Ml&&Nb(e)||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(ty(s).call(s,r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||Vy(e,t)||Ky()}var qy,Xy,Jy,Zy,ew,tw,nw,rw,iw,ow,aw,sw,lw,cw={};function uw(){if(Xy)return qy;Xy=1;var e=Xn(),t=vr(),n=Te(),r=RangeError;return qy=function(i){var o=t(n(this)),a="",s=e(i);if(s<0||s===1/0)throw new r("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(o+=o))1&s&&(a+=o);return a},qy}function dw(){if(Zy)return Jy;Zy=1;var e=k(),t=Zn(),n=vr(),r=uw(),i=Te(),o=e(r),a=e("".slice),s=Math.ceil,l=function(e){return function(r,l,c){var u,d,h=n(i(r)),f=t(l),p=h.length,g=void 0===c?" ":n(c);return f<=p||""===g?h:((d=o(g,s((u=f-p)/g.length))).length>u&&(d=a(d,0,u)),e?h+d:d+h)}};return Jy={start:l(!1),end:l(!0)}}function hw(){if(tw)return ew;tw=1;var e=k(),t=S(),n=dw().start,r=RangeError,i=isFinite,o=Math.abs,a=Date.prototype,s=a.toISOString,l=e(a.getTime),c=e(a.getUTCDate),u=e(a.getUTCFullYear),d=e(a.getUTCHours),h=e(a.getUTCMilliseconds),f=e(a.getUTCMinutes),p=e(a.getUTCMonth),g=e(a.getUTCSeconds);return ew=t(function(){return"0385-07-25T07:06:39.999Z"!==s.call(new Date(-50000000000001))})||!t(function(){s.call(new Date(NaN))})?function(){if(!i(l(this)))throw new r("Invalid time value");var e=this,t=u(e),a=h(e),s=t<0?"-":t>9999?"+":"";return s+n(o(t),s?6:4,0)+"-"+n(p(e)+1,2,0)+"-"+n(c(e),2,0)+"T"+n(d(e),2,0)+":"+n(f(e),2,0)+":"+n(g(e),2,0)+"."+n(a,3,0)+"Z"}:s,ew}function fw(){if(iw)return rw;iw=1,function(){if(nw)return cw;nw=1;var e=sn(),t=F(),n=wt(),r=St(),i=hw(),o=O();e({target:"Date",proto:!0,forced:S()(function(){return null!==new Date(NaN).toJSON()||1!==t(Date.prototype.toJSON,{toISOString:function(){return 1}})})},{toJSON:function(e){var a=n(this),s=r(a,"number");return"number"!=typeof s||isFinite(s)?"toISOString"in a||"Date"!==o(a)?a.toISOString():t(i,a):null}})}(),Si();var e=Me(),t=T();return e.JSON||(e.JSON={stringify:JSON.stringify}),rw=function(n,r,i){return t(e.JSON.stringify,null,arguments)},rw}function pw(){return aw?ow:(aw=1,ow=fw())}var gw,mw,vw,Aw,bw,yw,ww,_w,xw,Ew=i(lw?sw:(lw=1,sw=pw())),Sw={};function Cw(){return vw?mw:(vw=1,function(){if(gw)return Sw;gw=1;var e=sn(),t=hi().find,n=Es(),r="find",i=!0;r in[]&&Array(1)[r](function(){i=!1}),e({target:"Array",proto:!0,forced:i},{find:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),n(r)}(),mw=eo()("Array","find"))}function Tw(){if(bw)return Aw;bw=1;var e=De(),t=Cw(),n=Array.prototype;return Aw=function(r){var i=r.find;return r===n||e(n,r)&&i===n.find?t:i}}function kw(){return ww?yw:(ww=1,yw=Tw())}var Ow,Mw,Iw,Dw,Nw,Rw,Lw,Bw,Pw,Fw,$w,jw,Hw,Uw,Qw,zw=i(xw?_w:(xw=1,_w=kw())),Ww={};function Gw(){return Mw?Ow:(Mw=1,Ow="\t\n\v\f\r                　\u2028\u2029\ufeff")}function Vw(){if(Dw)return Iw;Dw=1;var e=k(),t=Te(),n=vr(),r=Gw(),i=e("".replace),o=RegExp("^["+r+"]+"),a=RegExp("(^|[^"+r+"])["+r+"]+$"),s=function(e){return function(r){var s=n(t(r));return 1&e&&(s=i(s,o,"")),2&e&&(s=i(s,a,"$1")),s}};return Iw={start:s(1),end:s(2),trim:s(3)}}function Kw(){if(Rw)return Nw;Rw=1;var e=Cs().PROPER,t=S(),n=Gw();return Nw=function(r){return t(function(){return!!n[r]()||"​᠎"!=="​᠎"[r]()||e&&n[r].name!==r})}}function Yw(){return Pw?Bw:(Pw=1,function(){if(Lw)return Ww;Lw=1;var e=sn(),t=Vw().trim;e({target:"String",proto:!0,forced:Kw()("trim")},{trim:function(){return t(this)}})}(),Bw=eo()("String","trim"))}function qw(){if($w)return Fw;$w=1;var e=De(),t=Yw(),n=String.prototype;return Fw=function(r){var i=r.trim;return"string"==typeof r||r===n||e(n,r)&&i===n.trim?t:i}}function Xw(){return Hw?jw:(Hw=1,jw=qw())}var Jw,Zw,e_,t_,n_,r_,i_,o_,a_,s_,l_,c_=i(Qw?Uw:(Qw=1,Uw=Xw())),u_=i(Zw?Jw:(Zw=1,Jw=Hy())),d_={};function h_(){return n_?t_:(n_=1,function(){if(e_)return d_;e_=1;var e,t=sn(),n=M(),r=Ot().f,i=Zn(),o=vr(),a=qd(),s=Te(),l=Xd(),c=vt(),u=n("".slice),d=Math.min,h=l("startsWith");t({target:"String",proto:!0,forced:!(!c&&!h&&(e=r(String.prototype,"startsWith"),e&&!e.writable)||h)},{startsWith:function(e){var t=o(s(this));a(e);var n=i(d(arguments.length>1?arguments[1]:void 0,t.length)),r=o(e);return u(t,n,n+r.length)===r}})}(),t_=eo()("String","startsWith"))}function f_(){if(i_)return r_;i_=1;var e=De(),t=h_(),n=String.prototype;return r_=function(r){var i=r.startsWith;return"string"==typeof r||r===n||e(n,r)&&i===n.startsWith?t:i}}function p_(){return a_?o_:(a_=1,o_=f_())}var g_,m_=i(l_?s_:(l_=1,s_=p_())),v_={exports:{}};function A_(){return g_||(g_=1,v_.exports=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\//.test(e),d=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),p=/PhantomJS/.test(e),g=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),m=/Android/.test(e),v=g||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),A=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),y=/win/i.test(t),w=d&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(d=!1,l=!0);var _=A&&(c||d&&(null==w||w<12.11)),x=n||a&&s>=9;function E(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var S,C=function(e,t){var n=e.className,r=E(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function T(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function k(e,t){return T(e).appendChild(t)}function O(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function M(e,t,n,r){var i=O(e,t,n,r);return i.setAttribute("role","presentation"),i}function I(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function D(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function N(e,t){var n=e.className;E(t).test(n)||(e.className+=(n?" ":"")+t)}function R(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!E(n[r]).test(t)&&(t+=" "+n[r]);return t}S=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var L=function(e){e.select()};function B(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function P(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function F(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?L=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(L=function(e){try{e.select()}catch(e){}});var $=function(){this.id=null,this.f=null,this.time=0,this.handler=B(this.onTimeout,this)};function j(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}$.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},$.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var H=50,U={toString:function(){return"CodeMirror.Pass"}},Q={scroll:!1},z={origin:"*mouse"},W={origin:"+move"};function G(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var V=[""];function K(e){for(;V.length<=e;)V.push(Y(V)+" ");return V[e]}function Y(e){return e[e.length-1]}function q(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function X(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function J(){}function Z(e,t){var n;return Object.create?n=Object.create(e):(J.prototype=e,n=new J),t&&P(t,n),n}var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function te(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ie=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&ie.test(e)}function ae(e,t,n){for(;(n<0?t>0:t<e.length)&&oe(e.charAt(t));)t+=n;return t}function se(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function le(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var ce=null;function ue(e,t,n){var r;ce=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ce=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ce=i)}return null!=r?r:ce}var de=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var u=e.length,d=[],h=0;h<u;++h)d.push(n(e.charCodeAt(h)));for(var f=0,p=c;f<u;++f){var g=d[f];"m"==g?d[f]=p:p=g}for(var m=0,v=c;m<u;++m){var A=d[m];"1"==A&&"r"==v?d[m]="n":o.test(A)&&(v=A,"r"==A&&(d[m]="R"))}for(var b=1,y=d[0];b<u-1;++b){var w=d[b];"+"==w&&"1"==y&&"1"==d[b+1]?d[b]="1":","!=w||y!=d[b+1]||"1"!=y&&"n"!=y||(d[b]=y),y=w}for(var _=0;_<u;++_){var x=d[_];if(","==x)d[_]="N";else if("%"==x){var E=void 0;for(E=_+1;E<u&&"%"==d[E];++E);for(var S=_&&"!"==d[_-1]||E<u&&"1"==d[E]?"1":"N",C=_;C<E;++C)d[C]=S;_=E-1}}for(var T=0,k=c;T<u;++T){var O=d[T];"L"==k&&"1"==O?d[T]="L":o.test(O)&&(k=O)}for(var M=0;M<u;++M)if(i.test(d[M])){var I=void 0;for(I=M+1;I<u&&i.test(d[I]);++I);for(var D="L"==(M?d[M-1]:c),N=D==("L"==(I<u?d[I]:c))?D?"L":"R":c,R=M;R<I;++R)d[R]=N;M=I-1}for(var L,B=[],P=0;P<u;)if(a.test(d[P])){var F=P;for(++P;P<u&&a.test(d[P]);++P);B.push(new l(0,F,P))}else{var $=P,j=B.length,H="rtl"==t?1:0;for(++P;P<u&&"L"!=d[P];++P);for(var U=$;U<P;)if(s.test(d[U])){$<U&&(B.splice(j,0,new l(1,$,U)),j+=H);var Q=U;for(++U;U<P&&s.test(d[U]);++U);B.splice(j,0,new l(2,Q,U)),j+=H,$=U}else++U;$<P&&B.splice(j,0,new l(1,$,P))}return"ltr"==t&&(1==B[0].level&&(L=e.match(/^\s+/))&&(B[0].from=L[0].length,B.unshift(new l(0,0,L[0].length))),1==Y(B).level&&(L=e.match(/\s+$/))&&(Y(B).to-=L[0].length,B.push(new l(0,u-L[0].length,u)))),"rtl"==t?B.reverse():B}}();function he(e,t){var n=e.order;return null==n&&(n=e.order=de(e.text,t)),n}var fe=[],pe=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||fe).concat(n)}};function ge(e,t){return e._handlers&&e._handlers[t]||fe}function me(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=j(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ve(e,t){var n=ge(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function Ae(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ve(e,n||t.type,e,t),Ee(t)||t.codemirrorIgnore}function be(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==j(n,t[r])&&n.push(t[r])}function ye(e,t){return ge(e,t).length>0}function we(e){e.prototype.on=function(e,t){pe(this,e,t)},e.prototype.off=function(e,t){me(this,e,t)}}function _e(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function xe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ee(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Se(e){_e(e),xe(e)}function Ce(e){return e.target||e.srcElement}function Te(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),A&&e.ctrlKey&&1==t&&(t=3),t}var ke,Oe,Me=function(){if(a&&s<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}();function Ie(e){if(null==ke){var t=O("span","​");k(e,O("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(ke=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=ke?O("span","​"):O("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function De(e){if(null!=Oe)return Oe;var t=k(e,document.createTextNode("AخA")),n=S(t,0,1).getBoundingClientRect(),r=S(t,1,2).getBoundingClientRect();return T(e),!(!n||n.left==n.right)&&(Oe=r.right-n.right<3)}var Ne,Re=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Le=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Be="oncopy"in(Ne=O("div"))||(Ne.setAttribute("oncopy","return;"),"function"==typeof Ne.oncopy),Pe=null;function Fe(e){if(null!=Pe)return Pe;var t=k(e,O("span","x")),n=t.getBoundingClientRect(),r=S(t,0,1).getBoundingClientRect();return Pe=Math.abs(n.left-r.left)>1}var $e={},je={};function He(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),$e[e]=t}function Ue(e,t){je[e]=t}function Qe(e){if("string"==typeof e&&je.hasOwnProperty(e))e=je[e];else if(e&&"string"==typeof e.name&&je.hasOwnProperty(e.name)){var t=je[e.name];"string"==typeof t&&(t={name:t}),(e=Z(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Qe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Qe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function ze(e,t){t=Qe(t);var n=$e[t.name];if(!n)return ze(e,"text/plain");var r=n(e,t);if(We.hasOwnProperty(t.name)){var i=We[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var We={};function Ge(e,t){P(t,We.hasOwnProperty(e)?We[e]:We[e]={})}function Ve(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ke(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ye(e,t,n){return!e.startState||e.startState(t,n)}var qe=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Xe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Je(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i}),r}function Ze(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function et(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function tt(e){if(null==e.parent)return null;for(var t=e.parent,n=j(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function nt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function rt(e,t){return t>=e.first&&t<e.first+e.size}function it(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ot(e,t,n){if(void 0===n&&(n=null),!(this instanceof ot))return new ot(e,t,n);this.line=e,this.ch=t,this.sticky=n}function at(e,t){return e.line-t.line||e.ch-t.ch}function st(e,t){return e.sticky==t.sticky&&0==at(e,t)}function lt(e){return ot(e.line,e.ch)}function ct(e,t){return at(e,t)<0?t:e}function ut(e,t){return at(e,t)<0?e:t}function dt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ht(e,t){if(t.line<e.first)return ot(e.first,0);var n=e.first+e.size-1;return t.line>n?ot(n,Xe(e,n).text.length):ft(t,Xe(e,t.line).text.length)}function ft(e,t){var n=e.ch;return null==n||n>t?ot(e.line,t):n<0?ot(e.line,0):e}function pt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ht(e,t[r]);return n}qe.prototype.eol=function(){return this.pos>=this.string.length},qe.prototype.sol=function(){return this.pos==this.lineStart},qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},qe.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},qe.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},qe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},qe.prototype.skipToEnd=function(){this.pos=this.string.length},qe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},qe.prototype.backUp=function(e){this.pos-=e},qe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=F(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?F(this.string,this.lineStart,this.tabSize):0)},qe.prototype.indentation=function(){return F(this.string,null,this.tabSize)-(this.lineStart?F(this.string,this.lineStart,this.tabSize):0)},qe.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},qe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},qe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},qe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var gt=function(e,t){this.state=e,this.lookAhead=t},mt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function vt(e,t,n,r){var i=[e.state.modeGen],o={};Ct(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,c=0;n.state=!0,Ct(e,t.text,s.mode,n,function(e,t){for(var n=l;c<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,c=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}},o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function At(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=bt(e,tt(t)),i=t.text.length>e.options.maxHighlightLength&&Ve(e.doc.mode,r.state),o=vt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function bt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new mt(r,!0,t);var o=Tt(e,t,n),a=o>r.first&&Xe(r,o-1).stateAfter,s=a?mt.fromSaved(r,a,o):new mt(r,Ye(r.mode),o);return r.iter(o,t,function(n){yt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()}),n&&(r.modeFrontier=s.line),s}function yt(e,t,n,r){var i=e.doc.mode,o=new qe(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&wt(i,n.state);!o.eol();)_t(i,o,n.state),o.start=o.pos}function wt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ke(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function _t(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ke(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}mt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},mt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},mt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},mt.fromSaved=function(e,t,n){return t instanceof gt?new mt(e,Ve(e.mode,t.state),n,t.lookAhead):new mt(e,Ve(e.mode,t),n)},mt.prototype.save=function(e){var t=!1!==e?Ve(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new gt(t,this.maxLookAhead):t};var xt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Et(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Xe(a,(t=ht(a,t)).line),c=bt(e,t.line,n),u=new qe(l.text,e.options.tabSize,c);for(r&&(o=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=_t(s,u,c.state),r&&o.push(new xt(u,i,Ve(a.mode,c.state)));return r?o:new xt(u,i,c.state)}function St(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Ct(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,c=0,u=null,d=new qe(t,e.options.tabSize,r),h=e.options.addModeClass&&[null];for(""==t&&St(wt(n,r.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&yt(e,t,r,d.pos),d.pos=t.length,l=null):l=St(_t(n,d,r.state,h),o),h){var f=h[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||u!=l){for(;c<d.start;)i(c=Math.min(d.start,c+5e3),u);u=l}d.start=d.pos}for(;c<d.pos;){var p=Math.min(d.pos,c+5e3);i(p,u),c=p}}function Tt(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=Xe(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof gt?c.lookAhead:0)<=o.modeFrontier))return s;var u=F(l.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}function kt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Xe(e,r).stateAfter;if(i&&(!(i instanceof gt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Ot=!1,Mt=!1;function It(){Ot=!0}function Dt(){Mt=!0}function Nt(e,t,n){this.marker=e,this.from=t,this.to=n}function Rt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Lt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Bt(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function Pt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Nt(a,o.from,s?null:o.to))}}return r}function Ft(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Nt(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}function $t(e,t){if(t.full)return null;var n=rt(e,t.from.line)&&Xe(e,t.from.line).markedSpans,r=rt(e,t.to.line)&&Xe(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==at(t.from,t.to),s=Pt(n,i,a),l=Ft(r,o,a),c=1==t.text.length,u=Y(t.text).length+(c?i:0);if(s)for(var d=0;d<s.length;++d){var h=s[d];if(null==h.to){var f=Rt(l,h.marker);f?c&&(h.to=null==f.to?null:f.to+u):h.to=i}}if(l)for(var p=0;p<l.length;++p){var g=l[p];null!=g.to&&(g.to+=u),null==g.from?Rt(s,g.marker)||(g.from=u,c&&(s||(s=[])).push(g)):(g.from+=u,c&&(s||(s=[])).push(g))}s&&(s=jt(s)),l&&l!=s&&(l=jt(l));var m=[s];if(!c){var v,A=t.text.length-2;if(A>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new Nt(s[b].marker,null,null));for(var y=0;y<A;++y)m.push(v);m.push(l)}return m}function jt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Ht(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=j(r,n)||(r||(r=[])).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var c=i[l];if(!(at(c.to,s.from)<0||at(c.from,s.to)>0)){var u=[l,1],d=at(c.from,s.from),h=at(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(h>0||!a.inclusiveRight&&!h)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}function Ut(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Qt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function zt(e){return e.inclusiveLeft?-1:0}function Wt(e){return e.inclusiveRight?1:0}function Gt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=at(r.from,i.from)||zt(e)-zt(t);if(o)return-o;var a=at(r.to,i.to)||Wt(e)-Wt(t);return a||t.id-e.id}function Vt(e,t){var n,r=Mt&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Gt(n,i.marker)<0)&&(n=i.marker);return n}function Kt(e){return Vt(e,!0)}function Yt(e){return Vt(e,!1)}function qt(e,t){var n,r=Mt&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Gt(n,o.marker)<0)&&(n=o.marker)}return n}function Xt(e,t,n,r,i){var o=Xe(e,t),a=Mt&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=at(c.from,n)||zt(l.marker)-zt(i),d=at(c.to,r)||Wt(l.marker)-Wt(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?at(c.to,n)>=0:at(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?at(c.from,r)<=0:at(c.from,r)<0)))return!0}}}function Jt(e){for(var t;t=Kt(e);)e=t.find(-1,!0).line;return e}function Zt(e){for(var t;t=Yt(e);)e=t.find(1,!0).line;return e}function en(e){for(var t,n;t=Yt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function tn(e,t){var n=Xe(e,t),r=Jt(n);return n==r?t:tt(r)}function nn(e,t){if(t>e.lastLine())return t;var n,r=Xe(e,t);if(!rn(e,r))return t;for(;n=Yt(r);)r=n.find(1,!0).line;return tt(r)+1}function rn(e,t){var n=Mt&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&on(e,t,r))return!0}}function on(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return on(e,r.line,Rt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&on(e,t,i))return!0}function an(e){for(var t=0,n=(e=Jt(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function sn(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Kt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Yt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function ln(e){var t=e.display,n=e.doc;t.maxLine=Xe(n,n.first),t.maxLineLength=sn(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=sn(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var cn=function(e,t,n){this.text=e,Qt(this,t),this.height=n?n(this):1};function un(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Ut(e),Qt(e,n);var i=r?r(e):1;i!=e.height&&et(e,i)}function dn(e){e.parent=null,Ut(e)}cn.prototype.lineNo=function(){return tt(this)},we(cn);var hn={},fn={};function pn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?fn:hn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function gn(e,t){var n=M("span",null,null,l?"padding-right: .1px":null),r={pre:M("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=vn,De(e.display.measure)&&(a=he(o,e.doc.direction))&&(r.addToken=bn(r.addToken,a)),r.map=[],wn(o,r,At(e,o,t!=e.display.externalMeasured&&tt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=R(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=R(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ie(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ve(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=R(r.pre.className,r.textClass||"")),r}function mn(e){var t=O("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function vn(e,t,n,r,i,o,l){if(t){var c,u=e.splitSpaces?An(t,e.trailingSpace):t,d=e.cm.state.specialChars,h=!1;if(d.test(t)){c=document.createDocumentFragment();for(var f=0;;){d.lastIndex=f;var p=d.exec(t),g=p?p.index-f:t.length-f;if(g){var m=document.createTextNode(u.slice(f,f+g));a&&s<9?c.appendChild(O("span",[m])):c.appendChild(m),e.map.push(e.pos,e.pos+g,m),e.col+=g,e.pos+=g}if(!p)break;f+=g+1;var v=void 0;if("\t"==p[0]){var A=e.cm.options.tabSize,b=A-e.col%A;(v=c.appendChild(O("span",K(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==p[0]||"\n"==p[0]?((v=c.appendChild(O("span","\r"==p[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",p[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),a&&s<9?c.appendChild(O("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(h=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||h||o||l){var y=n||"";r&&(y+=r),i&&(y+=i);var w=O("span",[c],y,o);if(l)for(var _ in l)l.hasOwnProperty(_)&&"style"!=_&&"class"!=_&&w.setAttribute(_,l[_]);return e.content.appendChild(w)}e.content.appendChild(c)}}function An(e,t){if(e.length>1&&!/  /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}function bn(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var d=void 0,h=0;h<t.length&&!((d=t[h]).to>c&&d.from<=c);h++);if(d.to>=u)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-c),i,o,null,s,l),o=null,r=r.slice(d.to-c),c=d.to}}}function yn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function wn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,c,u,d,h,f=i.length,p=0,g=1,m="",v=0;;){if(v==p){l=c=u=s="",h=null,d=null,v=1/0;for(var A=[],b=void 0,y=0;y<r.length;++y){var w=r[y],_=w.marker;if("bookmark"==_.type&&w.from==p&&_.widgetNode)A.push(_);else if(w.from<=p&&(null==w.to||w.to>p||_.collapsed&&w.to==p&&w.from==p)){if(null!=w.to&&w.to!=p&&v>w.to&&(v=w.to,c=""),_.className&&(l+=" "+_.className),_.css&&(s=(s?s+";":"")+_.css),_.startStyle&&w.from==p&&(u+=" "+_.startStyle),_.endStyle&&w.to==v&&(b||(b=[])).push(_.endStyle,w.to),_.title&&((h||(h={})).title=_.title),_.attributes)for(var x in _.attributes)(h||(h={}))[x]=_.attributes[x];_.collapsed&&(!d||Gt(d.marker,_)<0)&&(d=w)}else w.from>p&&v>w.from&&(v=w.from)}if(b)for(var E=0;E<b.length;E+=2)b[E+1]==v&&(c+=" "+b[E]);if(!d||d.from==p)for(var S=0;S<A.length;++S)yn(t,0,A[S]);if(d&&(d.from||0)==p){if(yn(t,(null==d.to?f+1:d.to)-p,d.marker,null==d.from),null==d.to)return;d.to==p&&(d=!1)}}if(p>=f)break;for(var C=Math.min(f,v);;){if(m){var T=p+m.length;if(!d){var k=T>C?m.slice(0,C-p):m;t.addToken(t,k,a?a+l:l,u,p+k.length==v?c:"",s,h)}if(T>=C){m=m.slice(C-p),p=C;break}p=T,u=""}m=i.slice(o,o=n[g++]),a=pn(n[g++],t.cm.options)}}else for(var O=1;O<n.length;O+=2)t.addToken(t,i.slice(o,o=n[O]),pn(n[O+1],t.cm.options))}function _n(e,t,n){this.line=t,this.rest=en(t),this.size=this.rest?tt(Y(this.rest))-n+1:1,this.node=this.text=null,this.hidden=rn(e,t)}function xn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new _n(e.doc,Xe(e.doc,o),o);r=o+a.size,i.push(a)}return i}var En=null;function Sn(e){En?En.ops.push(e):e.ownsGroup=En={ops:[e],delayedCallbacks:[]}}function Cn(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function Tn(e,t){var n=e.ownsGroup;if(n)try{Cn(n)}finally{En=null,t(n)}}var kn=null;function On(e,t){var n=ge(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);En?r=En.delayedCallbacks:kn?r=kn:(r=kn=[],setTimeout(Mn,0));for(var o=function(e){r.push(function(){return n[e].apply(null,i)})},a=0;a<n.length;++a)o(a)}}function Mn(){var e=kn;kn=null;for(var t=0;t<e.length;++t)e[t]()}function In(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?Ln(e,t):"gutter"==o?Pn(e,t,n,r):"class"==o?Bn(e,t):"widget"==o&&Fn(e,t,r)}t.changes=null}function Dn(e){return e.node==e.text&&(e.node=O("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function Nn(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=Dn(t);t.background=r.insertBefore(O("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Rn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):gn(e,t)}function Ln(e,t){var n=t.text.className,r=Rn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Bn(e,t)):n&&(t.text.className=n)}function Bn(e,t){Nn(e,t),t.line.wrapClass?Dn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Pn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=Dn(t);t.gutterBackground=O("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=Dn(t),s=t.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(O("div",it(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var c=e.display.gutterSpecs[l].className,u=o.hasOwnProperty(c)&&o[c];u&&s.appendChild(O("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function Fn(e,t,n){t.alignable&&(t.alignable=null);for(var r=E("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);jn(e,t,n)}function $n(e,t,n,r){var i=Rn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Bn(e,t),Pn(e,t,n,r),jn(e,t,r),t.node}function jn(e,t,n){if(Hn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Hn(e,t.rest[r],t,n,!1)}function Hn(e,t,n,r,i){if(t.widgets)for(var o=Dn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],c=O("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Un(l,c,n,r),e.display.input.setUneditable(c),i&&l.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),On(l,"redraw")}}function Un(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Qn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!I(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),k(t.display.measure,O("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function zn(e,t){for(var n=Ce(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Wn(e){return e.lineSpace.offsetTop}function Gn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Vn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=k(e.measure,O("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Kn(e){return H-e.display.nativeBarWidth}function Yn(e){return e.display.scroller.clientWidth-Kn(e)-e.display.barWidth}function qn(e){return e.display.scroller.clientHeight-Kn(e)-e.display.barHeight}function Xn(e,t,n){var r=e.options.lineWrapping,i=r&&Yn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Jn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(tt(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Zn(e,t){var n=tt(t=Jt(t)),r=e.display.externalMeasured=new _n(e.doc,t,n);r.lineN=n;var i=r.built=gn(e,r);return r.text=i.pre,k(e.display.lineMeasure,i.pre),r}function er(e,t,n,r){return rr(e,nr(e,t),n,r)}function tr(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Br(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function nr(e,t){var n=tt(t),r=tr(e,n);r&&!r.text?r=null:r&&r.changes&&(In(e,r,n,Ir(e)),e.curOp.forceUpdate=!0),r||(r=Zn(e,t));var i=Jn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function rr(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Xn(e,t.view,t.rect),t.hasHeights=!0),(o=lr(e,t,n,r)).bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var ir,or={left:0,right:0,top:0,bottom:0};function ar(e,t,n){for(var r,i,o,a,s,l,c=0;c<e.length;c+=3)if(s=e[c],l=e[c+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(c==e.length-3||t==l&&e[c+3]>t)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&i==l-s)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function sr(e,t){var n=or;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function lr(e,t,n,r){var i,o=ar(t.map,n,r),l=o.node,c=o.start,u=o.end,d=o.collapse;if(3==l.nodeType){for(var h=0;h<4;h++){for(;c&&oe(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u<o.coverEnd&&oe(t.line.text.charAt(o.coverStart+u));)++u;if((i=a&&s<9&&0==c&&u==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():sr(S(l,c,u).getClientRects(),r)).left||i.right||0==c)break;u=c,c-=1,d="right"}a&&s<11&&(i=cr(e.display.measure,i))}else{var f;c>0&&(d=r="right"),i=e.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==r?f.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var p=l.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Mr(e.display),top:p.top,bottom:p.bottom}:or}for(var g=i.top-t.rect.top,m=i.bottom-t.rect.top,v=(g+m)/2,A=t.view.measure.heights,b=0;b<A.length-1&&!(v<A[b]);b++);var y=b?A[b-1]:0,w=A[b],_={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:y,bottom:w};return i.left||i.right||(_.bogus=!0),e.options.singleCursorHeightPerLine||(_.rtop=g,_.rbottom=m),_}function cr(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Fe(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function ur(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function dr(e){e.display.externalMeasure=null,T(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)ur(e.display.view[t])}function hr(e){dr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function fr(){return u&&m?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function pr(){return u&&m?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function gr(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=Qn(e.widgets[n]));return t}function mr(e,t,n,r,i){if(!i){var o=gr(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=an(t);if("local"==r?a+=Wn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:pr());var l=s.left+("window"==r?0:fr());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function vr(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=fr(),i-=pr();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Ar(e,t,n,r,i){return r||(r=Xe(e.doc,t.line)),mr(e,r,er(e,r,t.ch,i),n)}function br(e,t,n,r,i,o){function a(t,a){var s=rr(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,mr(e,r,s,n)}r=r||Xe(e.doc,t.line),i||(i=nr(e,r));var s=he(r,e.doc.direction),l=t.ch,c=t.sticky;if(l>=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var d=ue(s,l,c),h=ce,f=u(l,d,"before"==c);return null!=h&&(f.other=u(l,h,"before"!=c)),f}function yr(e,t){var n=0;t=ht(e.doc,t),e.options.lineWrapping||(n=Mr(e.display)*t.ch);var r=Xe(e.doc,t.line),i=an(r)+Wn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function wr(e,t,n,r,i){var o=ot(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function _r(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return wr(r.first,0,null,-1,-1);var i=nt(r,n),o=r.first+r.size-1;if(i>o)return wr(r.first+r.size-1,Xe(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Xe(r,i);;){var s=Cr(e,a,i,t,n),l=qt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;a=Xe(r,i=c.line)}}function xr(e,t,n,r){r-=gr(t);var i=t.text.length,o=se(function(t){return rr(e,n,t-1).bottom<=r},i,0);return{begin:o,end:i=se(function(t){return rr(e,n,t).top>r},o,i)}}function Er(e,t,n,r){return n||(n=nr(e,t)),xr(e,t,n,mr(e,t,rr(e,n,r),"line").top)}function Sr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Cr(e,t,n,r,i){i-=an(t);var o=nr(e,t),a=gr(t),s=0,l=t.text.length,c=!0,u=he(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?kr:Tr)(e,t,n,o,u,r,i);s=(c=1!=d.level)?d.from:d.to-1,l=c?d.to:d.from-1}var h,f,p=null,g=null,m=se(function(t){var n=rr(e,o,t);return n.top+=a,n.bottom+=a,!!Sr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,g=n),!0)},s,l),v=!1;if(g){var A=r-g.left<g.right-r,b=A==c;m=p+(b?0:1),f=b?"after":"before",h=A?g.left:g.right}else{c||m!=l&&m!=s||m++,f=0==m?"after":m==t.text.length?"before":rr(e,o,m-(c?1:0)).bottom+a<=i==c?"after":"before";var y=br(e,ot(n,m,f),"line",t,o);h=y.left,v=i<y.top?-1:i>=y.bottom?1:0}return wr(n,m=ae(t.text,m,1),f,v,r-h)}function Tr(e,t,n,r,i,o,a){var s=se(function(s){var l=i[s],c=1!=l.level;return Sr(br(e,ot(n,c?l.to:l.from,c?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=br(e,ot(n,c?l.from:l.to,c?"after":"before"),"line",t,r);Sr(u,o,a,!0)&&u.top>a&&(l=i[s-1])}return l}function kr(e,t,n,r,i,o,a){var s=xr(e,t,r,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,h=0;h<i.length;h++){var f=i[h];if(!(f.from>=c||f.to<=l)){var p=rr(e,r,1!=f.level?Math.min(c,f.to)-1:Math.max(l,f.from)).right,g=p<o?o-p+1e9:p-o;(!u||d>g)&&(u=f,d=g)}}return u||(u=i[i.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function Or(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==ir){ir=O("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)ir.appendChild(document.createTextNode("x")),ir.appendChild(O("br"));ir.appendChild(document.createTextNode("x"))}k(e.measure,ir);var n=ir.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),T(e.measure),n||1}function Mr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=O("span","xxxxxxxxxx"),n=O("pre",[t],"CodeMirror-line-like");k(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Ir(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Dr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Dr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Nr(e){var t=Or(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Mr(e.display)-3);return function(i){if(rn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function Rr(e){var t=e.doc,n=Nr(e);t.iter(function(e){var t=n(e);t!=e.height&&et(e,t)})}function Lr(e,t,n,r){var i=e.display;if(!n&&"true"==Ce(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,c=_r(e,o,a);if(r&&c.xRel>0&&(l=Xe(e.doc,c.line).text).length==c.ch){var u=F(l,l.length,e.options.tabSize)-l.length;c=ot(c.line,Math.max(0,Math.round((o-Vn(e.display).left)/Mr(e.display))-u))}return c}function Br(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function Pr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Mt&&tn(e.doc,t)<i.viewTo&&$r(e);else if(n<=i.viewFrom)Mt&&nn(e.doc,n+r)>i.viewFrom?$r(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)$r(e);else if(t<=i.viewFrom){var o=jr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):$r(e)}else if(n>=i.viewTo){var a=jr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):$r(e)}else{var s=jr(e,t,t,-1),l=jr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(xn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):$r(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function Fr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Br(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==j(a,n)&&a.push(n)}}}function $r(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function jr(e,t,n,r){var i,o=Br(e,t),a=e.display.view;if(!Mt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;tn(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Hr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=xn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=xn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Br(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(xn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Br(e,n)))),r.viewTo=n}function Ur(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Qr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function zr(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var l=s.empty();(l||e.options.showCursorWhenSelecting)&&Wr(e,s.head,i),l||Vr(e,s,o)}}return r}function Wr(e,t,n){var r=br(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(O("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(O("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Gr(e,t){return e.top-t.top||e.left-t.left}function Vr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Vn(e.display),s=a.left,l=Math.max(r.sizerWidth,Yn(e)-r.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n                             top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n                             height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=Xe(i,t),h=d.text.length;function f(n,r){return Ar(e,ot(t,n),"div",d,r)}function p(t,n,r){var i=Er(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right";return f("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}var g=he(d,i.direction);return le(g,n||0,null==r?h:r,function(e,t,i,d){var m="ltr"==i,v=f(e,m?"left":"right"),A=f(t-1,m?"right":"left"),b=null==n&&0==e,y=null==r&&t==h,w=0==d,_=!g||d==g.length-1;if(A.top-v.top<=3){var x=(c?y:b)&&_,E=(c?b:y)&&w?s:(m?v:A).left,S=x?l:(m?A:v).right;u(E,v.top,S-E,v.bottom)}else{var C,T,k,O;m?(C=c&&b&&w?s:v.left,T=c?l:p(e,i,"before"),k=c?s:p(t,i,"after"),O=c&&y&&_?l:A.right):(C=c?p(e,i,"before"):s,T=!c&&b&&w?l:v.right,k=!c&&y&&_?s:A.left,O=c?p(t,i,"after"):l),u(C,v.top,T-C,v.bottom),v.bottom<A.top&&u(s,v.bottom,null,A.top),u(k,A.top,O-k,A.bottom)}(!o||Gr(v,o)<0)&&(o=v),Gr(A,o)<0&&(o=A),(!a||Gr(v,a)<0)&&(a=v),Gr(A,a)<0&&(a=A)}),{start:o,end:a}}var h=t.from(),f=t.to();if(h.line==f.line)d(h.line,h.ch,f.ch);else{var p=Xe(i,h.line),g=Xe(i,f.line),m=Jt(p)==Jt(g),v=d(h.line,h.ch,m?p.text.length+1:null).end,A=d(f.line,m?0:null,f.ch).start;m&&(v.top<A.top-2?(u(v.right,v.top,null,v.bottom),u(s,A.top,A.left,A.bottom)):u(v.right,v.top,A.left-v.right,v.bottom)),v.bottom<A.top&&u(s,v.bottom,null,A.top)}n.appendChild(o)}function Kr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Jr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Yr(e){e.state.focused||(e.display.input.focus(),Xr(e))}function qr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Jr(e))},100)}function Xr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ve(e,"focus",e,t),e.state.focused=!0,N(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Kr(e))}function Jr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ve(e,"blur",e,t),e.state.focused=!1,C(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Zr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=e.options.lineWrapping,l=void 0,c=0;if(!i.hidden){if(a&&s<8){var u=i.node.offsetTop+i.node.offsetHeight;l=u-n,n=u}else{var d=i.node.getBoundingClientRect();l=d.bottom-d.top,!o&&i.text.firstChild&&(c=i.text.firstChild.getBoundingClientRect().right-d.left-1)}var h=i.line.height-l;if((h>.005||h<-.005)&&(et(i.line,l),ei(i.line),i.rest))for(var f=0;f<i.rest.length;f++)ei(i.rest[f]);if(c>e.display.sizerWidth){var p=Math.ceil(c/Mr(e.display));p>e.display.maxLineLength&&(e.display.maxLineLength=p,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function ei(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ti(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Wn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=nt(t,r),a=nt(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=nt(t,an(Xe(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=nt(t,an(Xe(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function ni(e,t){if(!Ae(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!p){var o=O("div","​",null,"position: absolute;\n                         top: "+(t.top-n.viewOffset-Wn(e.display))+"px;\n                         height: "+(t.bottom-t.top+Kn(e)+n.barHeight)+"px;\n                         left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function ri(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?ot(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?ot(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=br(e,t),l=n&&n!=t?br(e,n):s,c=oi(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(hi(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(pi(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}function ii(e,t){var n=oi(e,t);null!=n.scrollTop&&hi(e,n.scrollTop),null!=n.scrollLeft&&pi(e,n.scrollLeft)}function oi(e,t){var n=e.display,r=Or(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=qn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Gn(n),l=t.top<r,c=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,f=Yn(e)-n.gutters.offsetWidth,p=t.right-t.left>f;return p&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.left<h?a.scrollLeft=Math.max(0,t.left+d-(p?0:10)):t.right>f+h-3&&(a.scrollLeft=t.right+(p?0:10)-f),a}function ai(e,t){null!=t&&(ui(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function si(e){ui(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function li(e,t,n){null==t&&null==n||ui(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function ci(e,t){ui(e),e.curOp.scrollToPos=t}function ui(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,di(e,yr(e,t.from),yr(e,t.to),t.margin))}function di(e,t,n,r){var i=oi(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});li(e,i.scrollLeft,i.scrollTop)}function hi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Qi(e,{top:t}),fi(e,t,!0),n&&Qi(e),Li(e,100))}function fi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function pi(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Vi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function gi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Gn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Kn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var mi=function(e,t,n){this.cm=n;var r=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),pe(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),pe(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};mi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},mi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},mi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},mi.prototype.zeroWidthHack=function(){var e=A&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new $,this.disableVert=new $},mi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},mi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var vi=function(){};function Ai(e,t){t||(t=gi(e));var n=e.display.barWidth,r=e.display.barHeight;bi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Zr(e),bi(e,gi(e)),n=e.display.barWidth,r=e.display.barHeight}function bi(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}vi.prototype.update=function(){return{bottom:0,right:0}},vi.prototype.setScrollLeft=function(){},vi.prototype.setScrollTop=function(){},vi.prototype.clear=function(){};var yi={native:mi,null:vi};function wi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&C(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new yi[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),pe(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?pi(e,t):hi(e,t)},e),e.display.scrollbars.addClass&&N(e.display.wrapper,e.display.scrollbars.addClass)}var _i=0;function xi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++_i},Sn(e.curOp)}function Ei(e){var t=e.curOp;t&&Tn(t,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Si(e)})}function Si(e){for(var t=e.ops,n=0;n<t.length;n++)Ci(t[n]);for(var r=0;r<t.length;r++)Ti(t[r]);for(var i=0;i<t.length;i++)ki(t[i]);for(var o=0;o<t.length;o++)Oi(t[o]);for(var a=0;a<t.length;a++)Mi(t[a])}function Ci(e){var t=e.cm,n=t.display;Fi(t),e.updateMaxLine&&ln(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Pi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ti(e){e.updatedDisplay=e.mustUpdate&&Hi(e.cm,e.update)}function ki(e){var t=e.cm,n=t.display;e.updatedDisplay&&Zr(t),e.barMeasure=gi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=er(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Kn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Yn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Oi(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&pi(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==D();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Ai(t,e.barMeasure),e.updatedDisplay&&Gi(t,e.barMeasure),e.selectionChanged&&Kr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Yr(e.cm)}function Mi(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&Ui(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&fi(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&pi(t,e.scrollLeft,!0,!0),e.scrollToPos&&ni(t,ri(t,ht(r,e.scrollToPos.from),ht(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||ve(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&ve(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ve(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Ii(e,t){if(e.curOp)return t();xi(e);try{return t()}finally{Ei(e)}}function Di(e,t){return function(){if(e.curOp)return t.apply(e,arguments);xi(e);try{return t.apply(e,arguments)}finally{Ei(e)}}}function Ni(e){return function(){if(this.curOp)return e.apply(this,arguments);xi(this);try{return e.apply(this,arguments)}finally{Ei(this)}}}function Ri(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);xi(t);try{return e.apply(this,arguments)}finally{Ei(t)}}}function Li(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,B(Bi,e))}function Bi(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=bt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ve(t.mode,r.state):null,l=vt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),h=0;!d&&h<a.length;++h)d=a[h]!=o.styles[h];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&yt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Li(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Ii(e,function(){for(var t=0;t<i.length;t++)Fr(e,i[t],"text")})}}var Pi=function(e,t,n){var r=e.display;this.viewport=t,this.visible=ti(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Yn(e),this.force=n,this.dims=Ir(e),this.events=[]};function Fi(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Kn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Kn(e)+"px",t.scrollbarsClipped=!0)}function $i(e){if(e.hasFocus())return null;var t=D();if(!t||!I(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&I(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function ji(e){if(e&&e.activeElt&&e.activeElt!=D()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&I(document.body,e.anchorNode)&&I(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}function Hi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return $r(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Ur(e))return!1;Ki(e)&&($r(e),t.dims=Ir(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Mt&&(o=tn(e.doc,o),a=nn(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Hr(e,o,a),n.viewOffset=an(Xe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Ur(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=$i(e);return l>4&&(n.lineDiv.style.display="none"),zi(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,ji(c),T(n.cursorDiv),T(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Li(e,400)),n.updateLineNumbers=null,!0}function Ui(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Yn(e))r&&(t.visible=ti(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Gn(e.display)-qn(e),n.top)}),t.visible=ti(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Hi(e,t))break;Zr(e);var i=gi(e);Qr(e),Ai(e,i),Gi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Qi(e,t){var n=new Pi(e,t);if(Hi(e,n)){Zr(e),Ui(e,n);var r=gi(e);Qr(e),Ai(e,r),Gi(e,r),n.finish()}}function zi(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&A&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,d=0;d<c.length;d++){var h=c[d];if(h.hidden);else if(h.node&&h.node.parentNode==o){for(;a!=h.node;)a=s(a);var f=i&&null!=t&&t<=u&&h.lineNumber;h.changes&&(j(h.changes,"gutter")>-1&&(f=!1),In(e,h,u,n)),f&&(T(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(it(e.options,u)))),a=h.node.nextSibling}else{var p=$n(e,h,u,n);o.insertBefore(p,a)}u+=h.size}for(;a;)a=s(a)}function Wi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Gi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Kn(e)+"px"}function Vi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Dr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Ki(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=it(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(O("div",[O("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Wi(e.display),!0}return!1}function Yi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function qi(e){var t=e.gutters,n=e.gutterSpecs;T(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(O("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Wi(e)}function Xi(e){qi(e.display),Pr(e),Vi(e)}function Ji(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=M("div",null,"CodeMirror-code"),o.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=O("div",null,"CodeMirror-cursors"),o.measure=O("div",null,"CodeMirror-measure"),o.lineMeasure=O("div",null,"CodeMirror-measure"),o.lineSpace=M("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var c=M("div",[o.lineSpace],"CodeMirror-lines");o.mover=O("div",[c],null,"position: relative"),o.sizer=O("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=O("div",null,null,"position: absolute; height: "+H+"px; width: 1px;"),o.gutters=O("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=O("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=O("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&v||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Yi(i.gutters,i.lineNumbers),qi(o),r.init(o)}Pi.prototype.signal=function(e,t){ye(e,t)&&this.events.push(arguments)},Pi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ve.apply(null,this.events[e])};var Zi=0,eo=null;function to(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function no(e){var t=to(e);return t.x*=eo,t.y*=eo,t}function ro(e,t){var r=to(t),i=r.x,o=r.y,a=e.display,s=a.scroller,c=s.scrollWidth>s.clientWidth,u=s.scrollHeight>s.clientHeight;if(i&&c||o&&u){if(o&&A&&l)e:for(var h=t.target,f=a.view;h!=s;h=h.parentNode)for(var p=0;p<f.length;p++)if(f[p].node==h){e.display.currentWheelTarget=h;break e}if(i&&!n&&!d&&null!=eo)return o&&u&&hi(e,Math.max(0,s.scrollTop+o*eo)),pi(e,Math.max(0,s.scrollLeft+i*eo)),(!o||o&&u)&&_e(t),void(a.wheelStartX=null);if(o&&null!=eo){var g=o*eo,m=e.doc.scrollTop,v=m+a.wrapper.clientHeight;g<0?m=Math.max(0,m+g-50):v=Math.min(e.doc.height,v+g+50),Qi(e,{top:m,bottom:v})}Zi<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout(function(){if(null!=a.wheelStartX){var e=s.scrollLeft-a.wheelStartX,t=s.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(eo=(eo*Zi+n)/(Zi+1),++Zi)}},200)):(a.wheelDX+=i,a.wheelDY+=o))}}a?eo=-.53:n?eo=15:u?eo=-.7:h&&(eo=-1/3);var io=function(e,t){this.ranges=e,this.primIndex=t};io.prototype.primary=function(){return this.ranges[this.primIndex]},io.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!st(n.anchor,r.anchor)||!st(n.head,r.head))return!1}return!0},io.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new oo(lt(this.ranges[t].anchor),lt(this.ranges[t].head));return new io(e,this.primIndex)},io.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},io.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(at(t,r.from())>=0&&at(e,r.to())<=0)return n}return-1};var oo=function(e,t){this.anchor=e,this.head=t};function ao(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(e,t){return at(e.from(),t.from())}),n=j(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=at(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var c=ut(s.from(),a.from()),u=ct(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new oo(d?u:c,d?c:u))}}return new io(t,n)}function so(e,t){return new io([new oo(e,t||e)],0)}function lo(e){return e.text?ot(e.from.line+e.text.length-1,Y(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function co(e,t){if(at(e,t.from)<0)return e;if(at(e,t.to)<=0)return lo(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=lo(t).ch-t.to.ch),ot(n,r)}function uo(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new oo(co(i.anchor,t),co(i.head,t)))}return ao(e.cm,n,e.sel.primIndex)}function ho(e,t,n){return e.line==t.line?ot(n.line,e.ch-t.ch+n.ch):ot(n.line+(e.line-t.line),e.ch)}function fo(e,t,n){for(var r=[],i=ot(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=ho(s.from,i,o),c=ho(lo(s),i,o);if(i=s.to,o=c,"around"==n){var u=e.sel.ranges[a],d=at(u.head,u.anchor)<0;r[a]=new oo(d?c:l,d?l:c)}else r[a]=new oo(l,l)}return new io(r,e.sel.primIndex)}function po(e){e.doc.mode=ze(e.options,e.doc.modeOption),go(e)}function go(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Li(e,100),e.state.modeGen++,e.curOp&&Pr(e)}function mo(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Y(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function vo(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){un(e,n,i,r),On(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new cn(c[o],i(o),r));return n}var s=t.from,l=t.to,c=t.text,u=Xe(e,s.line),d=Xe(e,l.line),h=Y(c),f=i(c.length-1),p=l.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(mo(e,t)){var g=a(0,c.length-1);o(d,d.text,f),p&&e.remove(s.line,p),g.length&&e.insert(s.line,g)}else if(u==d)if(1==c.length)o(u,u.text.slice(0,s.ch)+h+u.text.slice(l.ch),f);else{var m=a(1,c.length-1);m.push(new cn(h+u.text.slice(l.ch),f,r)),o(u,u.text.slice(0,s.ch)+c[0],i(0)),e.insert(s.line+1,m)}else if(1==c.length)o(u,u.text.slice(0,s.ch)+c[0]+d.text.slice(l.ch),i(0)),e.remove(s.line+1,p);else{o(u,u.text.slice(0,s.ch)+c[0],i(0)),o(d,h+d.text.slice(l.ch),f);var v=a(1,c.length-1);p>1&&e.remove(s.line+1,p-1),e.insert(s.line+1,v)}On(e,"change",e,t)}function Ao(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),r(s.doc,e,l))}}}r(e,null,!0)}function bo(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Rr(e),po(e),yo(e),e.options.lineWrapping||ln(e),e.options.mode=t.modeOption,Pr(e)}function yo(e){("rtl"==e.doc.direction?N:C)(e.display.lineDiv,"CodeMirror-rtl")}function wo(e){Ii(e,function(){yo(e),Pr(e)})}function _o(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function xo(e,t){var n={from:lt(t.from),to:lo(t),text:Je(e,t.from,t.to)};return Mo(e,n,t.from.line,t.to.line+1),Ao(e,function(e){return Mo(e,n,t.from.line,t.to.line+1)},!0),n}function Eo(e){for(;e.length&&Y(e).ranges;)e.pop()}function So(e,t){return t?(Eo(e.done),Y(e.done)):e.done.length&&!Y(e.done).ranges?Y(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Y(e.done)):void 0}function Co(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=So(i,i.lastOp==r)))a=Y(o.changes),0==at(t.from,t.to)&&0==at(t.from,a.to)?a.to=lo(t):o.changes.push(xo(e,t));else{var l=Y(i.done);for(l&&l.ranges||Oo(e.sel,i.done),o={changes:[xo(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||ve(e,"historyAdded")}function To(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ko(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||To(e,o,Y(i.done),t))?i.done[i.done.length-1]=t:Oo(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Eo(i.undone)}function Oo(e,t){var n=Y(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Mo(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function Io(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Do(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Io(n[i]));return r}function No(e,t){var n=Do(e,t),r=$t(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Ro(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?io.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var d in c)(u=d.match(/^spans_(\d+)$/))&&j(t,Number(u[1]))>-1&&(Y(s)[d]=c[d],delete c[d])}}}return r}function Lo(e,t,n,r){if(r){var i=e.anchor;if(n){var o=at(t,i)<0;o!=at(n,i)<0?(i=t,t=n):o!=at(t,n)<0&&(t=n)}return new oo(i,t)}return new oo(n||t,t)}function Bo(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Uo(e,new io([Lo(e.sel.primary(),t,n,i)],0),r)}function Po(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Lo(e.sel.ranges[o],t[o],null,i);Uo(e,ao(e.cm,r,e.sel.primIndex),n)}function Fo(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Uo(e,ao(e.cm,i,e.sel.primIndex),r)}function $o(e,t,n,r){Uo(e,so(t,n),r)}function jo(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new oo(ht(e,t[n].anchor),ht(e,t[n].head))},origin:n&&n.origin};return ve(e,"beforeSelectionChange",e,r),e.cm&&ve(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?ao(e.cm,r.ranges,r.ranges.length-1):t}function Ho(e,t,n){var r=e.history.done,i=Y(r);i&&i.ranges?(r[r.length-1]=t,Qo(e,t,n)):Uo(e,t,n)}function Uo(e,t,n){Qo(e,t,n),ko(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Qo(e,t,n){(ye(e,"beforeSelectionChange")||e.cm&&ye(e.cm,"beforeSelectionChange"))&&(t=jo(e,t,n));var r=n&&n.bias||(at(t.primary().head,e.sel.primary().head)<0?-1:1);zo(e,Go(e,t,r,!0)),n&&!1===n.scroll||!e.cm||si(e.cm)}function zo(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,be(e.cm)),On(e,"cursorActivity",e))}function Wo(e){zo(e,Go(e,e.sel,null,!1))}function Go(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=Ko(e,a.anchor,s&&s.anchor,n,r),c=Ko(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new oo(l,c))}return i?ao(e.cm,i,t.primIndex):t}function Vo(e,t,n,r,i){var o=Xe(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u?s.to>=t.ch:s.to>t.ch))){if(i&&(ve(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),h=void 0;if((r<0?u:c)&&(d=Yo(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(h=at(d,n))&&(r<0?h<0:h>0))return Vo(e,d,t,r,i)}var f=l.find(r<0?-1:1);return(r<0?c:u)&&(f=Yo(e,f,r,f.line==t.line?o:null)),f?Vo(e,f,t,r,i):null}}return t}function Ko(e,t,n,r,i){var o=r||1,a=Vo(e,t,n,o,i)||!i&&Vo(e,t,n,o,!0)||Vo(e,t,n,-o,i)||!i&&Vo(e,t,n,-o,!0);return a||(e.cantEdit=!0,ot(e.first,0))}function Yo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ht(e,ot(t.line-1)):null:n>0&&t.ch==(r||Xe(e,t.line)).text.length?t.line<e.first+e.size-1?ot(t.line+1,0):null:new ot(t.line,t.ch+n)}function qo(e){e.setSelection(ot(e.firstLine(),0),ot(e.lastLine()),Q)}function Xo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=ht(e,t)),n&&(r.to=ht(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),ve(e,"beforeChange",e,r),e.cm&&ve(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Jo(e,t,n){if(e.cm){if(!e.cm.curOp)return Di(e.cm,Jo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(ye(e,"beforeChange")||e.cm&&ye(e.cm,"beforeChange"))||(t=Xo(e,t,!0))){var r=Ot&&!n&&Ht(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)Zo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Zo(e,t)}}function Zo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=at(t.from,t.to)){var n=uo(e,t);Co(e,t,n,e.cm?e.cm.curOp.id:NaN),na(e,t,n,$t(e,t));var r=[];Ao(e,function(e,n){n||-1!=j(r,e.history)||(sa(e.history,t),r.push(e.history)),na(e,t,null,$t(e,t))})}}function ea(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,c=0;c<s.length&&(i=s[c],n?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Oo(i,l),n&&!i.equals(e.sel))return void Uo(e,i,{clearRedo:!1});a=i}var u=[];Oo(a,l),l.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=ye(e,"beforeChange")||e.cm&&ye(e.cm,"beforeChange"),h=function(n){var r=i.changes[n];if(r.origin=t,d&&!Xo(e,r,!1))return s.length=0,{};u.push(xo(e,r));var o=n?uo(e,r):Y(s);na(e,r,o,No(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:lo(r)});var a=[];Ao(e,function(e,t){t||-1!=j(a,e.history)||(sa(e.history,r),a.push(e.history)),na(e,r,null,No(e,r))})},f=i.changes.length-1;f>=0;--f){var p=h(f);if(p)return p.v}}}}function ta(e,t){if(0!=t&&(e.first+=t,e.sel=new io(q(e.sel.ranges,function(e){return new oo(ot(e.anchor.line+t,e.anchor.ch),ot(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Pr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Fr(e.cm,r,"gutter")}}function na(e,t,n,r){if(e.cm&&!e.cm.curOp)return Di(e.cm,na)(e,t,n,r);if(t.to.line<e.first)ta(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ta(e,i),t={from:ot(e.first,0),to:ot(t.to.line+i,t.to.ch),text:[Y(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:ot(o,Xe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Je(e,t.from,t.to),n||(n=uo(e,t)),e.cm?ra(e.cm,t,r):vo(e,t,r),Qo(e,n,Q),e.cantEdit&&Ko(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function ra(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=tt(Jt(Xe(r,o.line))),r.iter(l,a.line+1,function(e){if(e==i.maxLine)return s=!0,!0})),r.sel.contains(t.from,t.to)>-1&&be(e),vo(r,t,n,Nr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,function(e){var t=sn(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),kt(r,o.line),Li(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?Pr(e):o.line!=a.line||1!=t.text.length||mo(e.doc,t)?Pr(e,o.line,a.line+1,c):Fr(e,o.line,"text");var u=ye(e,"changes"),d=ye(e,"change");if(d||u){var h={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&On(e,"change",e,h),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function ia(e,t,n,r,i){var o;r||(r=n),at(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Jo(e,{from:n,to:r,text:t,origin:i})}function oa(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function aa(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)oa(o.ranges[s].anchor,t,n,r),oa(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var c=o.changes[l];if(n<c.from.line)c.from=ot(c.from.line+r,c.from.ch),c.to=ot(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function sa(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;aa(e.done,n,r,i),aa(e.undone,n,r,i)}function la(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Xe(e,dt(e,t)):i=tt(t),null==i?null:(r(o,i)&&e.cm&&Fr(e.cm,i,n),o)}function ca(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function ua(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}oo.prototype.from=function(){return ut(this.anchor,this.head)},oo.prototype.to=function(){return ct(this.anchor,this.head)},oo.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},ca.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,dn(i),On(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},ua.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof ca))){var s=[];this.collapse(s),this.children=[new ca(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new ca(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new ua(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=j(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new ua(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var da=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function ha(e,t,n){an(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ai(e,n)}function fa(e,t,n,r){var i=new da(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),la(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!rn(e,t)){var r=an(t)<e.scrollTop;et(t,t.height+Qn(i)),r&&ai(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&On(o,"lineWidgetAdded",o,i,"number"==typeof t?t:tt(t)),i}da.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=tt(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=Qn(this);et(n,Math.max(0,n.height-o)),e&&(Ii(e,function(){ha(e,n,-o),Fr(e,r,"widget")}),On(e,"lineWidgetCleared",e,this,r))}},da.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Qn(this)-t;i&&(rn(this.doc,r)||et(r,r.height+i),n&&Ii(n,function(){n.curOp.forceUpdate=!0,ha(n,r,i),On(n,"lineWidgetChanged",n,e,tt(r))}))},we(da);var pa=0,ga=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++pa};function ma(e,t,n,r,i){if(r&&r.shared)return Aa(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return Di(e.cm,ma)(e,t,n,r,i);var o=new ga(e,i),a=at(t,n);if(r&&P(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=M("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Xt(e,t.line,t,n,o)||t.line!=n.line&&Xt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Dt()}o.addToHistory&&Co(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,function(e){c&&o.collapsed&&!c.options.lineWrapping&&Jt(e)==c.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&et(e,0),Bt(e,new Nt(o,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l}),o.collapsed&&e.iter(t.line,n.line+1,function(t){rn(e,t)&&et(t,0)}),o.clearOnEnter&&pe(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(It(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++pa,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)Pr(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)Fr(c,u,"text");o.atomic&&Wo(c.doc),On(c,"markerAdded",c,o)}return o}ga.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&xi(e),ye(this,"clear")){var n=this.find();n&&On(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Rt(a.markedSpans,this);e&&!this.collapsed?Fr(e,tt(a),"text"):e&&(null!=s.to&&(i=tt(a)),null!=s.from&&(r=tt(a))),a.markedSpans=Lt(a.markedSpans,s),null==s.from&&this.collapsed&&!rn(this.doc,a)&&e&&et(a,Or(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=Jt(this.lines[l]),u=sn(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Pr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Wo(e.doc)),e&&On(e,"markerCleared",e,this,r,i),t&&Ei(e),this.parent&&this.parent.clear()}},ga.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Rt(o.markedSpans,this);if(null!=a.from&&(n=ot(t?o:tt(o),a.from),-1==e))return n;if(null!=a.to&&(r=ot(t?o:tt(o),a.to),1==e))return r}return n&&{from:n,to:r}},ga.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Ii(r,function(){var i=t.line,o=tt(t.line),a=tr(r,o);if(a&&(ur(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!rn(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=Qn(n)-s;l&&et(i,i.height+l)}On(r,"markerChanged",r,e)})},ga.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=j(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ga.prototype.detachLine=function(e){if(this.lines.splice(j(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},we(ga);var va=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function Aa(e,t,n,r,i){(r=P(r)).shared=!1;var o=[ma(e,t,n,r,i)],a=o[0],s=r.widgetNode;return Ao(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(ma(e,ht(e,t),ht(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=Y(o)}),new va(o,a)}function ba(e){return e.findMarks(ot(e.first,0),e.clipPos(ot(e.lastLine())),function(e){return e.parent})}function ya(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(at(o,a)){var s=ma(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function wa(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Ao(n.primary.doc,function(e){return r.push(e)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==j(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}va.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();On(this,"clear")}},va.prototype.find=function(e,t){return this.primary.find(e,t)},we(va);var _a=0,xa=function(e,t,n,r,i){if(!(this instanceof xa))return new xa(e,t,n,r,i);null==n&&(n=0),ua.call(this,[new ca([new cn("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=ot(n,0);this.sel=so(o),this.history=new _o(null),this.id=++_a,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),vo(this,{from:o,to:o,text:e}),Uo(this,so(o),Q)};xa.prototype=Z(ua.prototype,{constructor:xa,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Ze(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Ri(function(e){var t=ot(this.first,0),n=this.first+this.size-1;Jo(this,{from:t,to:ot(n,Xe(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&li(this.cm,0,0),Uo(this,so(t),Q)}),replaceRange:function(e,t,n,r){ia(this,e,t=ht(this,t),n=n?ht(this,n):t,r)},getRange:function(e,t,n){var r=Je(this,ht(this,e),ht(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(rt(this,e))return Xe(this,e)},getLineNumber:function(e){return tt(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Xe(this,e)),Jt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ht(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Ri(function(e,t,n){$o(this,ht(this,"number"==typeof e?ot(e,t||0):e),null,n)}),setSelection:Ri(function(e,t,n){$o(this,ht(this,e),ht(this,t||e),n)}),extendSelection:Ri(function(e,t,n){Bo(this,ht(this,e),t&&ht(this,t),n)}),extendSelections:Ri(function(e,t){Po(this,pt(this,e),t)}),extendSelectionsBy:Ri(function(e,t){Po(this,pt(this,q(this.sel.ranges,e)),t)}),setSelections:Ri(function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new oo(ht(this,e[i].anchor),ht(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Uo(this,ao(this.cm,r,t),n)}}),addSelection:Ri(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new oo(ht(this,e),ht(this,t||e))),Uo(this,ao(this.cm,r,r.length-1),n)}),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Je(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Je(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Ri(function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&fo(this,r,t),l=r.length-1;l>=0;l--)Jo(this,r[l]);s?Ho(this,s):this.cm&&si(this.cm)}),undo:Ri(function(){ea(this,"undo")}),redo:Ri(function(){ea(this,"redo")}),undoSelection:Ri(function(){ea(this,"undo",!0)}),redoSelection:Ri(function(){ea(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new _o(this.history.maxGeneration),Ao(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Ro(this.history.done),undone:Ro(this.history.undone)}},setHistory:function(e){var t=this.history=new _o(this.history.maxGeneration);t.done=Ro(e.done.slice(0),null,!0),t.undone=Ro(e.undone.slice(0),null,!0)},setGutterMarker:Ri(function(e,t,n){return la(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&re(r)&&(e.gutterMarkers=null),!0})}),clearGutter:Ri(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&la(t,n,"gutter",function(){return n.gutterMarkers[e]=null,re(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!rt(this,e))return null;if(t=e,!(e=Xe(this,e)))return null}else if(null==(t=tt(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Ri(function(e,t,n){return la(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(E(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0})}),removeLineClass:Ri(function(e,t,n){return la(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(E(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0})}),addLineWidget:Ri(function(e,t,n){return fa(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ma(this,ht(this,e),ht(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return ma(this,e=ht(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Xe(this,(e=ht(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ht(this,e),t=ht(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n}),ht(this,ot(n,t))},indexFromPos:function(e){var t=(e=ht(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new xa(Ze(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new xa(Ze(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],ya(r,ba(this)),r},unlinkDoc:function(e){if(e instanceof Ps&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),wa(ba(this));break}if(e.history==this.history){var n=[e.id];Ao(e,function(e){return n.push(e.id)},!0),e.history=new _o(null),e.history.done=Ro(this.history.done,n),e.history.undone=Ro(this.history.undone,n)}},iterLinkedDocs:function(e){Ao(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Re(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Ri(function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&wo(this.cm))})}),xa.prototype.eachLine=xa.prototype.iter;var Ea=0;function Sa(e){var t=this;if(ka(t),!Ae(t,e)&&!zn(t.display,e)){_e(e),a&&(Ea=+new Date);var n=Lr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&Di(t,function(){var e={from:n=ht(t.doc,n),to:n,text:t.doc.splitLines(o.filter(function(e){return null!=e}).join(t.doc.lineSeparator())),origin:"paste"};Jo(t.doc,e),Ho(t.doc,so(ht(t.doc,n),ht(t.doc,lo(e))))})()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==j(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},r.readAsText(e)}},u=0;u<r.length;u++)c(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var d=e.dataTransfer.getData("Text");if(d){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),Qo(t.doc,so(n,n)),h)for(var f=0;f<h.length;++f)ia(t.doc,"",h[f].anchor,h[f].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Ca(e,t){if(a&&(!e.state.draggingText||+new Date-Ea<100))Se(t);else if(!Ae(e,t)&&!zn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!h)){var n=O("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}function Ta(e,t){var n=Lr(e,t);if(n){var r=document.createDocumentFragment();Wr(e,n,r),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),k(e.display.dragCursor,r)}}function ka(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Oa(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation(function(){for(var t=0;t<n.length;t++)e(n[t])})}}var Ma=!1;function Ia(){Ma||(Da(),Ma=!0)}function Da(){var e;pe(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,Oa(Na)},100))}),pe(window,"blur",function(){return Oa(Jr)})}function Na(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Ra={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},La=0;La<10;La++)Ra[La+48]=Ra[La+96]=String(La);for(var Ba=65;Ba<=90;Ba++)Ra[Ba]=String.fromCharCode(Ba);for(var Pa=1;Pa<=12;Pa++)Ra[Pa+111]=Ra[Pa+63235]="F"+Pa;var Fa={};function $a(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function ja(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=q(n.split(" "),$a),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function Ha(e,t,n,r){var i=(t=Wa(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Ha(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Ha(e,t.fallthrough[o],n,r);if(a)return a}}}function Ua(e){var t="string"==typeof e?e:Ra[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Qa(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(_?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(_?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function za(e,t){if(d&&34==e.keyCode&&e.char)return!1;var n=Ra[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Qa(n,e,t))}function Wa(e){return"string"==typeof e?Fa[e]:e}function Ga(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&at(o.from,Y(r).to)<=0;){var a=r.pop();if(at(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Ii(e,function(){for(var t=r.length-1;t>=0;t--)ia(e.doc,"",r[t].from,r[t].to,"+delete");si(e)})}function Va(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ka(e,t,n){var r=Va(e,t.ch,n);return null==r?null:new ot(t.line,r,n<0?"after":"before")}function Ya(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=he(n,t.doc.direction);if(o){var a,s=i<0?Y(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=nr(t,n);a=i<0?n.text.length-1:0;var u=rr(t,c,a).top;a=se(function(e){return rr(t,c,e).top==u},i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Va(n,a,1))}else a=i<0?s.to:s.from;return new ot(r,a,l)}}return new ot(r,i<0?n.text.length:0,i<0?"before":"after")}function qa(e,t,n,r){var i=he(t,e.doc.direction);if(!i)return Ka(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ue(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Ka(t,n,r);var s,l=function(e,n){return Va(t,e instanceof ot?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(s=s||nr(e,t),Er(e,t,s,n)):{begin:0,end:t.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,h=l(n,d?1:-1);if(null!=h&&(d?h<=a.to&&h<=u.end:h>=a.from&&h>=u.begin)){var f=d?"before":"after";return new ot(n.line,h,f)}}var p=function(e,t,r){for(var o=function(e,t){return t?new ot(n.line,l(e,1),"before"):new ot(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c<a.to)return o(c,s);if(c=s?a.from:l(a.to,-1),r.begin<=c&&c<r.end)return o(c,s)}},g=p(o+r,r,u);if(g)return g;var m=r>0?u.end:l(u.begin,-1);return null==m||r>0&&m==t.text.length||!(g=p(r>0?0:i.length-1,r,c(m)))?null:g}Fa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Fa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Fa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Fa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Fa.default=A?Fa.macDefault:Fa.pcDefault;var Xa={selectAll:qo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Q)},killLine:function(e){return Ga(e,function(t){if(t.empty()){var n=Xe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:ot(t.head.line+1,0)}:{from:t.head,to:ot(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Ga(e,function(t){return{from:ot(t.from().line,0),to:ht(e.doc,ot(t.to().line+1,0))}})},delLineLeft:function(e){return Ga(e,function(e){return{from:ot(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return Ga(e,function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}})},delWrappedLineRight:function(e){return Ga(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ot(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ot(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Ja(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return es(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return Za(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},W)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},W)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?es(e,t.head):r},W)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=F(e.getLine(o.line),o.ch,r);t.push(K(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ii(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Xe(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new ot(i.line,i.ch-1)),i.ch>0)i=new ot(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ot(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Xe(e.doc,i.line-1).text;a&&(i=new ot(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ot(i.line-1,a.length-1),i,"+transpose"))}n.push(new oo(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Ii(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);si(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Ja(e,t){var n=Xe(e.doc,t),r=Jt(n);return r!=n&&(t=tt(r)),Ya(!0,e,r,t,1)}function Za(e,t){var n=Xe(e.doc,t),r=Zt(n);return r!=n&&(t=tt(r)),Ya(!0,e,n,t,-1)}function es(e,t){var n=Ja(e,t.line),r=Xe(e.doc,n.line),i=he(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return ot(n.line,a?0:o,n.sticky)}return n}function ts(e,t,n){if("string"==typeof t&&!(t=Xa[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=U}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function ns(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Ha(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Ha(t,e.options.extraKeys,n,e)||Ha(t,e.options.keyMap,n,e)}var rs=new $;function is(e,t,n,r){var i=e.state.keySeq;if(i){if(Ua(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:rs.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),os(e,i+" "+t,n,r))return!0}return os(e,t,n,r)}function os(e,t,n,r){var i=ns(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&On(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(_e(n),Kr(e)),!!i}function as(e,t){var n=za(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?is(e,"Shift-"+n,t,function(t){return ts(e,t,!0)})||is(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ts(e,t)}):is(e,n,t,function(t){return ts(e,t)}))}function ss(e,t,n){return is(e,"'"+n+"'",t,function(t){return ts(e,t,!0)})}var ls=null;function cs(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=D(),Ae(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=as(t,e);d&&(ls=i?r:null,i||88!=r||Be||!(A?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!A&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||us(t)}}function us(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(C(t,"CodeMirror-crosshair"),me(document,"keyup",n),me(document,"mouseover",n))}N(t,"CodeMirror-crosshair"),pe(document,"keyup",n),pe(document,"mouseover",n)}function ds(e){16==e.keyCode&&(this.doc.sel.shift=!1),Ae(this,e)}function hs(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||zn(t.display,e)||Ae(t,e)||e.ctrlKey&&!e.altKey||A&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(d&&n==ls)return ls=null,void _e(e);if(!d||e.which&&!(e.which<10)||!as(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(ss(t,e,i)||t.display.input.onKeyPress(e))}}}var fs,ps,gs=400,ms=function(e,t,n){this.time=e,this.pos=t,this.button=n};function vs(e,t){var n=+new Date;return ps&&ps.compare(n,e,t)?(fs=ps=null,"triple"):fs&&fs.compare(n,e,t)?(ps=new ms(n,e,t),fs=null,"double"):(fs=new ms(n,e,t),ps=null,"single")}function As(e){var t=this,n=t.display;if(!(Ae(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,zn(n,e))l||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));else if(!Ts(t,e)){var r=Lr(t,e),i=Te(e),o=r?vs(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&bs(t,i,r,o,e)||(1==i?r?ws(t,r,o,e):Ce(e)==n.scroller&&_e(e):2==i?(r&&Bo(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(x?t.display.input.onContextMenu(e):qr(t)))}}function bs(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),is(e,Qa(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,function(t){if("string"==typeof t&&(t=Xa[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=U}finally{e.state.suppressEdits=!1}return r})}function ys(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=b?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=A?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(A?n.altKey:n.ctrlKey)),i}function ws(e,t,n,r){a?setTimeout(B(Yr,e),0):e.curOp.focus=D();var i,o=ys(e,n,r),s=e.doc.sel;e.options.dragDrop&&Me&&!e.isReadOnly()&&"single"==n&&(i=s.contains(t))>-1&&(at((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(at(i.to(),t)>0||t.xRel<0)?_s(e,r,t,o):Es(e,r,t,o)}function _s(e,t,n,r){var i=e.display,o=!1,c=Di(e,function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,me(i.wrapper.ownerDocument,"mouseup",c),me(i.wrapper.ownerDocument,"mousemove",u),me(i.scroller,"dragstart",d),me(i.scroller,"drop",c),o||(_e(t),r.addNew||Bo(e.doc,n,null,null,r.extend),l&&!h||a&&9==s?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),pe(i.wrapper.ownerDocument,"mouseup",c),pe(i.wrapper.ownerDocument,"mousemove",u),pe(i.scroller,"dragstart",d),pe(i.scroller,"drop",c),qr(e),setTimeout(function(){return i.input.focus()},20)}function xs(e,t,n){if("char"==n)return new oo(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new oo(ot(t.line,0),ht(e.doc,ot(t.line+1,0)));var r=n(e,t);return new oo(r.from,r.to)}function Es(e,t,n,r){var i=e.display,o=e.doc;_e(t);var a,s,l=o.sel,c=l.ranges;if(r.addNew&&!r.extend?(s=o.sel.contains(n),a=s>-1?c[s]:new oo(n,n)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(a=new oo(n,n)),n=Lr(e,t,!0,!0),s=-1;else{var u=xs(e,n,r.unit);a=r.extend?Lo(a,u.anchor,u.head,r.extend):u}r.addNew?-1==s?(s=c.length,Uo(o,ao(e,c.concat([a]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==r.unit&&!r.extend?(Uo(o,ao(e,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Fo(o,s,a,z):(s=0,Uo(o,new io([a],0),z),l=o.sel);var d=n;function h(t){if(0!=at(d,t))if(d=t,"rectangle"==r.unit){for(var i=[],c=e.options.tabSize,u=F(Xe(o,n.line).text,n.ch,c),h=F(Xe(o,t.line).text,t.ch,c),f=Math.min(u,h),p=Math.max(u,h),g=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=m;g++){var v=Xe(o,g).text,A=G(v,f,c);f==p?i.push(new oo(ot(g,A),ot(g,A))):v.length>A&&i.push(new oo(ot(g,A),ot(g,G(v,p,c))))}i.length||i.push(new oo(n,n)),Uo(o,ao(e,l.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,y=a,w=xs(e,t,r.unit),_=y.anchor;at(w.anchor,_)>0?(b=w.head,_=ut(y.from(),w.anchor)):(b=w.anchor,_=ct(y.to(),w.head));var x=l.ranges.slice(0);x[s]=Ss(e,new oo(ht(o,_),b)),Uo(o,ao(e,x,s),z)}}var f=i.wrapper.getBoundingClientRect(),p=0;function g(t){var n=++p,a=Lr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=at(a,d)){e.curOp.focus=D(),h(a);var s=ti(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout(Di(e,function(){p==n&&g(t)}),150)}else{var l=t.clientY<f.top?-20:t.clientY>f.bottom?20:0;l&&setTimeout(Di(e,function(){p==n&&(i.scroller.scrollTop+=l,g(t))}),50)}}function m(t){e.state.selectingText=!1,p=1/0,t&&(_e(t),i.input.focus()),me(i.wrapper.ownerDocument,"mousemove",v),me(i.wrapper.ownerDocument,"mouseup",A),o.history.lastSelOrigin=null}var v=Di(e,function(e){0!==e.buttons&&Te(e)?g(e):m(e)}),A=Di(e,m);e.state.selectingText=A,pe(i.wrapper.ownerDocument,"mousemove",v),pe(i.wrapper.ownerDocument,"mouseup",A)}function Ss(e,t){var n=t.anchor,r=t.head,i=Xe(e.doc,n.line);if(0==at(n,r)&&n.sticky==r.sticky)return t;var o=he(i);if(!o)return t;var a=ue(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=ue(o,r.ch,r.sticky),d=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var h=o[c+(l?-1:0)],f=l==(1==h.level),p=f?h.from:h.to,g=f?"after":"before";return n.ch==p&&n.sticky==g?t:new oo(new ot(n.line,p,g),r)}function Cs(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&_e(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!ye(e,n))return Ee(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=i)return ve(e,n,e,nt(e.doc,o),e.display.gutterSpecs[l].className,t),Ee(t)}}function Ts(e,t){return Cs(e,t,"gutterClick",!0)}function ks(e,t){zn(e.display,t)||Os(e,t)||Ae(e,t,"contextmenu")||x||e.display.input.onContextMenu(t)}function Os(e,t){return!!ye(e,"gutterContextMenu")&&Cs(e,t,"gutterContextMenu",!1)}function Ms(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),hr(e)}ms.prototype.compare=function(e,t,n){return this.time+gs>e&&0==at(t,this.pos)&&n==this.button};var Is={toString:function(){return"CodeMirror.Init"}},Ds={},Ns={};function Rs(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Is&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Is,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,po(e)},!0),n("indentUnit",2,po,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){go(e),hr(e),Pr(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(ot(r,o))}r++});for(var i=n.length-1;i>=0;i--)ia(e.doc,t,n[i],ot(n[i].line,n[i].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Is&&e.refresh()}),n("specialCharPlaceholder",mn,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),n("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),n("rtlMoveVisually",!y),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){Ms(e),Xi(e)},!0),n("keyMap","default",function(e,t,n){var r=Wa(t),i=n!=Is&&Wa(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Bs,!0),n("gutters",[],function(e,t){e.display.gutterSpecs=Yi(t,e.options.lineNumbers),Xi(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?Dr(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Ai(e)},!0),n("scrollbarStyle","native",function(e){wi(e),Ai(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e,t){e.display.gutterSpecs=Yi(e.options.gutters,t),Xi(e)},!0),n("firstLineNumber",1,Xi,!0),n("lineNumberFormatter",function(e){return e},Xi,!0),n("showCursorWhenSelecting",!1,Qr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(e,t){"nocursor"==t&&(Jr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("screenReaderLabel",null,function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,Ls),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Qr,!0),n("singleCursorHeightPerLine",!0,Qr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,go,!0),n("addModeClass",!1,go,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,go,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),n("phrases",null)}function Ls(e,t,n){if(!t!=!(n&&n!=Is)){var r=e.display.dragFunctions,i=t?pe:me;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Bs(e){e.options.lineWrapping?(N(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(C(e.display.wrapper,"CodeMirror-wrap"),ln(e)),Rr(e),Pr(e),hr(e),setTimeout(function(){return Ai(e)},100)}function Ps(e,t){var n=this;if(!(this instanceof Ps))return new Ps(e,t);this.options=t=t?P(t):{},P(Ds,t,!1);var r=t.value;"string"==typeof r?r=new xa(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ps.inputStyles[t.inputStyle](this),o=this.display=new Ji(e,r,i,t);for(var c in o.wrapper.CodeMirror=this,Ms(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),wi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new $,keySeq:null,specialChars:null},t.autofocus&&!v&&o.input.focus(),a&&s<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Fs(this),Ia(),xi(this),this.curOp.forceUpdate=!0,bo(this,r),t.autofocus&&!v||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&Xr(n)},20):Jr(this),Ns)Ns.hasOwnProperty(c)&&Ns[c](this,t[c],Is);Ki(this),t.finishInit&&t.finishInit(this);for(var u=0;u<$s.length;++u)$s[u](this);Ei(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Fs(e){var t=e.display;pe(t.scroller,"mousedown",Di(e,As)),pe(t.scroller,"dblclick",a&&s<11?Di(e,function(t){if(!Ae(e,t)){var n=Lr(e,t);if(n&&!Ts(e,t)&&!zn(e.display,t)){_e(t);var r=e.findWordAt(n);Bo(e.doc,r.anchor,r.head)}}}):function(t){return Ae(e,t)||_e(t)}),pe(t.scroller,"contextmenu",function(t){return ks(e,t)}),pe(t.input.getField(),"contextmenu",function(n){t.scroller.contains(n.target)||ks(e,n)});var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),(r=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}pe(t.scroller,"touchstart",function(i){if(!Ae(e,i)&&!o(i)&&!Ts(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),pe(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),pe(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!zn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||l(r,r.prev)?new oo(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new oo(ot(a.line,0),ht(e.doc,ot(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),_e(n)}i()}),pe(t.scroller,"touchcancel",i),pe(t.scroller,"scroll",function(){t.scroller.clientHeight&&(hi(e,t.scroller.scrollTop),pi(e,t.scroller.scrollLeft,!0),ve(e,"scroll",e))}),pe(t.scroller,"mousewheel",function(t){return ro(e,t)}),pe(t.scroller,"DOMMouseScroll",function(t){return ro(e,t)}),pe(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){Ae(e,t)||Se(t)},over:function(t){Ae(e,t)||(Ta(e,t),Se(t))},start:function(t){return Ca(e,t)},drop:Di(e,Sa),leave:function(t){Ae(e,t)||ka(e)}};var c=t.input.getField();pe(c,"keyup",function(t){return ds.call(e,t)}),pe(c,"keydown",Di(e,cs)),pe(c,"keypress",Di(e,hs)),pe(c,"focus",function(t){return Xr(e,t)}),pe(c,"blur",function(t){return Jr(e,t)})}Ps.defaults=Ds,Ps.optionHandlers=Ns;var $s=[];function js(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=bt(e,t).state:n="prev");var a=e.options.tabSize,s=Xe(o,t),l=F(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(i,s.text.slice(u.length),s.text))==U||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?F(Xe(o,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",h=0;if(e.options.indentWithTabs)for(var f=Math.floor(c/a);f;--f)h+=a,d+="\t";if(h<c&&(d+=K(c-h)),d!=u)return ia(o,d,ot(t,0),ot(t,u.length),"+input"),s.stateAfter=null,!0;for(var p=0;p<o.sel.ranges.length;p++){var g=o.sel.ranges[p];if(g.head.line==t&&g.head.ch<u.length){var m=ot(t,u.length);Fo(o,p,new oo(m,m));break}}}Ps.defineInitHook=function(e){return $s.push(e)};var Hs=null;function Us(e){Hs=e}function Qs(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Re(t),c=null;if(s&&r.ranges.length>1)if(Hs&&Hs.text.join("\n")==t){if(r.ranges.length%Hs.text.length==0){c=[];for(var u=0;u<Hs.text.length;u++)c.push(o.splitLines(Hs.text[u]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=q(l,function(e){return[e]}));for(var d=e.curOp.updateInput,h=r.ranges.length-1;h>=0;h--){var f=r.ranges[h],p=f.from(),g=f.to();f.empty()&&(n&&n>0?p=ot(p.line,p.ch-n):e.state.overwrite&&!s?g=ot(g.line,Math.min(Xe(o,g.line).text.length,g.ch+Y(l).length)):s&&Hs&&Hs.lineWise&&Hs.text.join("\n")==l.join("\n")&&(p=g=ot(p.line,0)));var m={from:p,to:g,text:c?c[h%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};Jo(e.doc,m),On(e,"inputRead",e,m)}t&&!s&&Ws(e,t),si(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function zs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Ii(t,function(){return Qs(t,n,0,null,"paste")}),!0}function Ws(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=js(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Xe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=js(e,i.head.line,"smart"));a&&On(e,"electricInput",e,i.head.line)}}}function Gs(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:ot(i,0),head:ot(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Vs(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Ks(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),Vs(e),t}function Ys(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Di(this,t[e])(this,n,i),ve(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Wa(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:Ni(function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");X(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,Pr(this)}),removeOverlay:Ni(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Pr(this)}}),indentLine:Ni(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),rt(this.doc,e)&&js(this,e,t,n)}),indentSelection:Ni(function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(js(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&si(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)js(this,l,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&Fo(this.doc,r,new oo(o,c[r].to()),Q)}}}),getTokenAt:function(e,t){return Et(this,e,t)},getLineTokens:function(e,t){return Et(this,ot(e),t,!0)},getTokenTypeAt:function(e){e=ht(this.doc,e);var t,n=At(this,Xe(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var c=i._global[l];c.pred(o,this)&&-1==j(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return bt(this,(e=dt(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return br(this,null==e?n.head:"object"==typeof e?ht(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Ar(this,ht(this.doc,e),t||"page")},coordsChar:function(e,t){return _r(this,(e=vr(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=vr(this,{top:e,left:0},t||"page").top,nt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Xe(this.doc,e)}else r=e;return mr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-an(r):0)},defaultTextHeight:function(){return Or(this.display)},defaultCharWidth:function(){return Mr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=br(this,ht(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&ii(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Ni(cs),triggerOnKeyPress:Ni(hs),triggerOnKeyUp:ds,triggerOnMouseDown:Ni(As),execCommand:function(e){if(Xa.hasOwnProperty(e))return Xa[e].call(null,this)},triggerElectric:Ni(function(e){Ws(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ht(this.doc,e),a=0;a<t&&!(o=qs(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:Ni(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?qs(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},W)}),deleteH:Ni(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Ga(this,function(n){var i=qs(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}})}),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=ht(this.doc,e),s=0;s<t;++s){var l=br(this,a,"div");if(null==o?o=l.left:l.left=o,(a=Xs(this,l,i,n)).hitSide)break}return a},moveV:Ni(function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(a){if(o)return e<0?a.from():a.to();var s=br(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Xs(n,s,e,t);return"page"==t&&a==r.sel.primary()&&ai(n,Ar(n,l,"div").top-s.top),l},W),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]}),findWordAt:function(e){var t=Xe(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=ne(o,i)?function(e){return ne(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ne(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new oo(ot(e.line,n),ot(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?N(this.display.cursorDiv,"CodeMirror-overwrite"):C(this.display.cursorDiv,"CodeMirror-overwrite"),ve(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==D()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:Ni(function(e,t){li(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Kn(this)-this.display.barHeight,width:e.scrollWidth-Kn(this)-this.display.barWidth,clientHeight:qn(this),clientWidth:Yn(this)}},scrollIntoView:Ni(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:ot(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?ci(this,e):di(this,e.from,e.to,e.margin)}),setSize:Ni(function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&dr(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Fr(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,ve(this,"refresh",this)}),operation:function(e){return Ii(this,e)},startOperation:function(){return xi(this)},endOperation:function(){return Ei(this)},refresh:Ni(function(){var e=this.display.cachedTextHeight;Pr(this),this.curOp.forceUpdate=!0,hr(this),li(this,this.doc.scrollLeft,this.doc.scrollTop),Wi(this.display),(null==e||Math.abs(e-Or(this.display))>.5||this.options.lineWrapping)&&Rr(this),ve(this,"refresh",this)}),swapDoc:Ni(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),bo(this,e),hr(this),this.display.input.reset(),li(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,On(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},we(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function qs(e,t,n,r,i){var o=t,a=n,s=Xe(e,t.line),l=i&&"rtl"==e.direction?-n:n;function c(){var n=t.line+l;return!(n<e.first||n>=e.first+e.size)&&(t=new ot(n,t.ch,t.sticky),s=Xe(e,n))}function u(o){var a;if("codepoint"==r){var u=s.text.charCodeAt(t.ch+(r>0?0:-1));a=isNaN(u)?null:new ot(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(u>=55296&&u<56320?2:1))),-n)}else a=i?qa(e.cm,s,t,n):Ka(s,t,n);if(null==a){if(o||!c())return!1;t=Ya(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var d=null,h="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||u(!p);p=!1){var g=s.text.charAt(t.ch)||"\n",m=ne(g,f)?"w":h&&"\n"==g?"n":!h||/\s/.test(g)?null:"p";if(!h||p||m||(m="s"),d&&d!=m){n<0&&(n=1,u(),t.sticky="after");break}if(m&&(d=m),n>0&&!u(!p))break}var v=Ko(e,t,o,a,!0);return st(o,v)&&(v.hitSide=!0),v}function Xs(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*Or(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=_r(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Js=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new $,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Zs(e,t){var n=tr(e,t.line);if(!n||n.hidden)return null;var r=Xe(e.doc,t.line),i=Jn(n,r,t.line),o=he(r,e.doc.direction),a="left";o&&(a=ue(o,t.ch)%2?"right":"left");var s=ar(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function el(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function tl(e,t){return t&&(e.bad=!0),e}function nl(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function c(e){return function(t){return t.id==e}}function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function d(e){e&&(u(),o+=e)}function h(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void d(n);var o,f=t.getAttribute("cm-marker");if(f){var p=e.findMarks(ot(r,0),ot(i+1,0),c(+f));return void(p.length&&(o=p[0].find(0))&&d(Je(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;g&&u();for(var m=0;m<t.childNodes.length;m++)h(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),g&&(a=!0)}else 3==t.nodeType&&d(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;h(t),t!=n;)t=t.nextSibling,l=!1;return o}function rl(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return tl(e.clipPos(ot(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return il(o,t,n)}}function il(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!I(r,t))return tl(ot(tt(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?Y(e.rest):e.line;return tl(ot(tt(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,c=l.maps;function u(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?l.map:c[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var u=tt(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),ot(u,d)}}}var d=u(a,s,n);if(d)return tl(d,i);for(var h=s.nextSibling,f=a?a.nodeValue.length-n:0;h;h=h.nextSibling){if(d=u(h,h.firstChild,0))return tl(ot(d.line,d.ch-f),i);f+=h.textContent.length}for(var p=s.previousSibling,g=n;p;p=p.previousSibling){if(d=u(p,p.firstChild,-1))return tl(ot(d.line,d.ch+g),i);g+=p.textContent.length}}Js.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!Ae(r,e)){if(r.somethingSelected())Us({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Gs(r);Us({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation(function(){r.setSelections(t.ranges,0,Q),r.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var a=Hs.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Ks(),l=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Hs.text.join("\n");var c=document.activeElement;L(l),setTimeout(function(){r.display.lineSpace.removeChild(s),c.focus(),c==i&&n.showPrimarySelection()},50)}}Vs(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),pe(i,"paste",function(e){!o(e)||Ae(r,e)||zs(e,r)||s<=11&&setTimeout(Di(r,function(){return t.updateFromDOM()}),20)}),pe(i,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),pe(i,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),pe(i,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),pe(i,"touchstart",function(){return n.forceCompositionEnd()}),pe(i,"input",function(){t.composing||t.readFromDOMSoon()}),pe(i,"copy",a),pe(i,"cut",a)},Js.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Js.prototype.prepareSelection=function(){var e=zr(this.cm,!1);return e.focus=document.activeElement==this.div,e},Js.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Js.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Js.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=rl(t,e.anchorNode,e.anchorOffset),s=rl(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=at(ut(a,s),i)||0!=at(ct(a,s),o)){var l=t.display.view,c=i.line>=t.display.viewFrom&&Zs(t,i)||{node:l[0].measure.map[2],offset:0},u=o.line<t.display.viewTo&&Zs(t,o);if(!u){var d=l[l.length-1].measure,h=d.maps?d.maps[d.maps.length-1]:d.map;u={node:h[h.length-1],offset:h[h.length-2]-h[h.length-3]}}if(c&&u){var f,p=e.rangeCount&&e.getRangeAt(0);try{f=S(c.node,c.offset,u.offset,u.node)}catch(e){}f&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),f.collapsed||(e.removeAllRanges(),e.addRange(f))):(e.removeAllRanges(),e.addRange(f)),p&&null==e.anchorNode?e.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Js.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Js.prototype.showMultipleSelections=function(e){k(this.cm.display.cursorDiv,e.cursors),k(this.cm.display.selectionDiv,e.selection)},Js.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Js.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return I(this.div,t)},Js.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Js.prototype.blur=function(){this.div.blur()},Js.prototype.getField=function(){return this.div},Js.prototype.supportsTouch=function(){return!0},Js.prototype.receivedFocus=function(){var e=this;function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.selectionInEditor()?this.pollSelection():Ii(this.cm,function(){return e.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,t)},Js.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Js.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(m&&u&&this.cm.display.gutterSpecs.length&&el(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=rl(t,e.anchorNode,e.anchorOffset),r=rl(t,e.focusNode,e.focusOffset);n&&r&&Ii(t,function(){Uo(t.doc,so(n,r),Q),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},Js.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=ot(a.line-1,Xe(r.doc,a.line-1).length)),s.ch==Xe(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=ot(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Br(r,a.line))?(t=tt(i.view[0].line),n=i.view[0].node):(t=tt(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,c,u=Br(r,s.line);if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=tt(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(nl(r,n,c,t,l)),h=Je(r.doc,ot(t,0),ot(l,Xe(r.doc,l).text.length));d.length>1&&h.length>1;)if(Y(d)==Y(h))d.pop(),h.pop(),l--;else{if(d[0]!=h[0])break;d.shift(),h.shift(),t++}for(var f=0,p=0,g=d[0],m=h[0],v=Math.min(g.length,m.length);f<v&&g.charCodeAt(f)==m.charCodeAt(f);)++f;for(var A=Y(d),b=Y(h),y=Math.min(A.length-(1==d.length?f:0),b.length-(1==h.length?f:0));p<y&&A.charCodeAt(A.length-p-1)==b.charCodeAt(b.length-p-1);)++p;if(1==d.length&&1==h.length&&t==a.line)for(;f&&f>a.ch&&A.charCodeAt(A.length-p-1)==b.charCodeAt(b.length-p-1);)f--,p++;d[d.length-1]=A.slice(0,A.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(f).replace(/\u200b+$/,"");var w=ot(t,f),_=ot(l,h.length?Y(h).length-p:0);return d.length>1||d[0]||at(w,_)?(ia(r.doc,d,w,_,"+input"),!0):void 0},Js.prototype.ensurePolled=function(){this.forceCompositionEnd()},Js.prototype.reset=function(){this.forceCompositionEnd()},Js.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Js.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Js.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Ii(this.cm,function(){return Pr(e.cm)})},Js.prototype.setUneditable=function(e){e.contentEditable="false"},Js.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Di(this.cm,Qs)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Js.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Js.prototype.onContextMenu=function(){},Js.prototype.resetPosition=function(){},Js.prototype.needsContentAttribute=!0;var ol=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new $,this.hasSelection=!1,this.composing=null};function al(e,t){if((t=t?P(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=D();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(pe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(me(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Ps(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s}function sl(e){e.off=me,e.on=pe,e.wheelEventPixels=no,e.Doc=xa,e.splitLines=Re,e.countColumn=F,e.findColumn=G,e.isWordChar=te,e.Pass=U,e.signal=ve,e.Line=cn,e.changeEnd=lo,e.scrollbarModel=yi,e.Pos=ot,e.cmpPos=at,e.modes=$e,e.mimeModes=je,e.resolveMode=Qe,e.getMode=ze,e.modeExtensions=We,e.extendMode=Ge,e.copyState=Ve,e.startState=Ye,e.innerMode=Ke,e.commands=Xa,e.keyMap=Fa,e.keyName=za,e.isModifierKey=Ua,e.lookupKey=Ha,e.normalizeKeyMap=ja,e.StringStream=qe,e.SharedTextMarker=va,e.TextMarker=ga,e.LineWidget=da,e.e_preventDefault=_e,e.e_stopPropagation=xe,e.e_stop=Se,e.addClass=N,e.contains=I,e.rmClass=C,e.keyNames=Ra}ol.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!Ae(r,e)){if(r.somethingSelected())Us({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Gs(r);Us({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,Q):(n.prevInput="",i.value=t.text.join("\n"),L(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),pe(i,"input",function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),pe(i,"paste",function(e){Ae(r,e)||zs(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())}),pe(i,"cut",o),pe(i,"copy",o),pe(e.scroller,"paste",function(t){if(!zn(e,t)&&!Ae(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}}),pe(e.lineSpace,"selectstart",function(t){zn(e,t)||_e(t)}),pe(i,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),pe(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},ol.prototype.createField=function(e){this.wrapper=Ks(),this.textarea=this.wrapper.firstChild},ol.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ol.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=zr(e);if(e.options.moveInputWithCursor){var i=br(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},ol.prototype.showSelection=function(e){var t=this.cm.display;k(t.cursorDiv,e.cursors),k(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ol.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&L(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},ol.prototype.getField=function(){return this.textarea},ol.prototype.supportsTouch=function(){return!1},ol.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||D()!=this.textarea))try{this.textarea.focus()}catch(e){}},ol.prototype.blur=function(){this.textarea.blur()},ol.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ol.prototype.receivedFocus=function(){this.slowPoll()},ol.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},ol.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},ol.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Le(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||A&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(r.length,i.length);l<c&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return Ii(t,function(){Qs(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ol.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ol.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},ol.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Lr(n,e),c=r.scroller.scrollTop;if(o&&!d){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Di(n,Uo)(n.doc,so(o),Q);var u,h=i.style.cssText,f=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n      z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=window.scrollY),r.input.focus(),l&&window.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&m(),x){Se(e);var g=function(){me(window,"mouseup",g),setTimeout(v,20)};pe(window,"mouseup",g)}else setTimeout(v,50)}function m(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,i.style.cssText=h,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&m();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Di(n,qo)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},ol.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},ol.prototype.setUneditable=function(){},ol.prototype.needsContentAttribute=!1,Rs(Ps),Ys(Ps);var ll="iter insert remove copy getEditor constructor".split(" ");for(var cl in xa.prototype)xa.prototype.hasOwnProperty(cl)&&j(ll,cl)<0&&(Ps.prototype[cl]=function(e){return function(){return e.apply(this.doc,arguments)}}(xa.prototype[cl]));return we(xa),Ps.inputStyles={textarea:ol,contenteditable:Js},Ps.defineMode=function(e){Ps.defaults.mode||"null"==e||(Ps.defaults.mode=e),He.apply(this,arguments)},Ps.defineMIME=Ue,Ps.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ps.defineMIME("text/plain","null"),Ps.defineExtension=function(e,t){Ps.prototype[e]=t},Ps.defineDocExtension=function(e,t){xa.prototype[e]=t},Ps.fromTextArea=al,sl(Ps),Ps.version="5.58.2",Ps}()),v_.exports}var b_,y_,w_,__=i(A_()),x_={},E_={};function S_(){return b_||(b_=1,e=A_(),t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1},e.defineMode("xml",function(r,i){var o,a,s=r.indentUnit,l={},c=i.htmlMode?t:n;for(var u in c)l[u]=c[u];for(var u in i)l[u]=i[u];function d(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(p("atom","]]>")):null:e.match("--")?n(p("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(g(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=h,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function h(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=d,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){t.tokenize=d,t.state=b,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=f(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function f(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=h;break}return"string"};return t.isInAttribute=!0,t}function p(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=d;break}n.next()}return e}}function g(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=g(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=d;break}return n.tokenize=g(e-1),n.tokenize(t,n)}}return"meta"}}function m(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function v(e){e.context&&(e.context=e.context.prev)}function A(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(n)||!l.contextGrabbers[n].hasOwnProperty(t))return;v(e)}}function b(e,t,n){return"openTag"==e?(n.tagStart=t.column(),y):"closeTag"==e?w:b}function y(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",E):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",E(e,t,n)):(a="error",y)}function w(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(n.context.tagName)&&v(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",_):(a="tag error",x)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",_(e,t,n)):(a="error",x)}function _(e,t,n){return"endTag"!=e?(a="error",_):(v(n),b)}function x(e,t,n){return a="error",_(e,t,n)}function E(e,t,n){if("word"==e)return a="attribute",S;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(r)?A(n,r):(A(n,r),n.context=new m(n,r,i==n.indented)),b}return a="error",E}function S(e,t,n){return"equals"==e?C:(l.allowMissing||(a="error"),E(e,t,n))}function C(e,t,n){return"string"==e?T:"word"==e&&l.allowUnquoted?(a="string",E):(a="error",E(e,t,n))}function T(e,t,n){return"string"==e?T:E(e,t,n)}return d.isInText=!0,{startState:function(e){var t={tokenize:d,state:b,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=h&&t.tokenize!=d)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])for(;i;){if(i.tagName==o[2]){i=i.prev;break}if(!l.implicitlyClosed.hasOwnProperty(i.tagName))break;i=i.prev}else if(o)for(;i;){var a=l.contextGrabbers[i.tagName];if(!a||!a.hasOwnProperty(o[2]))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==C&&(e.state=E)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)n.tagName&&t.push(n.tagName);return t.reverse()}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})),E_;var e,t,n}function C_(){return w_||(w_=1,e=A_(),S_(),y_||(y_=1,function(e){e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t<e.modeInfo.length;t++){var n=e.modeInfo[t];n.mimes&&(n.mime=n.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.mime==t)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==t)return r}return/\+xml$/.test(t)?e.findModeByMIME("application/xml"):/\+json$/.test(t)?e.findModeByMIME("application/json"):void 0},e.findModeByExtension=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==t)return r}},e.findModeByFileName=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.file&&r.file.test(t))return r}var i=t.lastIndexOf("."),o=i>-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.name.toLowerCase()==t)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==t)return r}}}(A_())),e.defineMode("markdown",function(t,n){var r=e.getMode(t,"text/html"),i="null"==r.name;function o(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=e.getMode(t,n);return"null"==i.name?null:i}void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.fencedCodeBlockDefaultMode&&(n.fencedCodeBlockDefaultMode="text/plain"),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var a={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var s in a)a.hasOwnProperty(s)&&n.tokenTypeOverrides[s]&&(a[s]=n.tokenTypeOverrides[s]);var l=/^([*\-_])(?:\s*\1){2,}\s*$/,c=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,d=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,h=/^ {0,3}(?:\={1,}|-{2,})\s*$/,f=/^[^#!\[\]*_\\<>` "'(~:]+/,p=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,g=/^\s*\[[^\]]+?\]:.*$/,m=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\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\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\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-\u2E42\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]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,v="    ";function A(e,t,n){return t.f=t.inline=n,n(e,t)}function b(e,t,n){return t.f=t.block=n,n(e,t)}function y(e){return!e||!/\S/.test(e.string)}function w(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==x){var n=i;if(!n){var o=e.innerMode(r,t.htmlState);n="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}n&&(t.f=T,t.block=_,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function _(t,r){var i=t.column()===r.indentation,s=y(r.prevLine.stream),f=r.indentedCode,m=r.prevLine.hr,v=!1!==r.list,b=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var w=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,v)){for(r.list=null;w<r.listStack[r.listStack.length-1];)r.listStack.pop(),r.listStack.length?r.indentation=r.listStack[r.listStack.length-1]:r.list=!1;!1!==r.list&&(r.indentationDiff=w-r.listStack[r.listStack.length-1])}var _=!(s||m||r.prevLine.header||v&&f||r.prevLine.fencedCodeEnd),x=(!1===r.list||m||s)&&r.indentation<=b&&t.match(l),C=null;if(r.indentationDiff>=4&&(f||r.prevLine.fencedCodeEnd||r.prevLine.header||s))return t.skipToEnd(),r.indentedCode=!0,a.code;if(t.eatSpace())return null;if(i&&r.indentation<=b&&(C=t.match(d))&&C[1].length<=6)return r.quote=0,r.header=C[1].length,r.thisLine.header=!0,n.highlightFormatting&&(r.formatting="header"),r.f=r.inline,S(r);if(r.indentation<=b&&t.eat(">"))return r.quote=i?1:r.quote+1,n.highlightFormatting&&(r.formatting="quote"),t.eatSpace(),S(r);if(!x&&!r.setext&&i&&r.indentation<=b&&(C=t.match(c))){var T=C[1]?"ol":"ul";return r.indentation=w+t.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,n.taskLists&&t.match(u,!1)&&(r.taskList=!0),r.f=r.inline,n.highlightFormatting&&(r.formatting=["list","list-"+T]),S(r)}return i&&r.indentation<=b&&(C=t.match(p,!0))?(r.quote=0,r.fencedEndRE=new RegExp(C[1]+"+ *$"),r.localMode=n.fencedCodeBlockHighlighting&&o(C[2]||n.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=e.startState(r.localMode)),r.f=r.block=E,n.highlightFormatting&&(r.formatting="code-block"),r.code=-1,S(r)):r.setext||!(_&&v||r.quote||!1!==r.list||r.code||x||g.test(t.string))&&(C=t.lookAhead(1))&&(C=C.match(h))?(r.setext?(r.header=r.setext,r.setext=0,t.skipToEnd(),n.highlightFormatting&&(r.formatting="header")):(r.header="="==C[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,S(r)):x?(t.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,a.hr):"["===t.peek()?A(t,r,D):A(t,r,r.inline)}function x(t,n){var o=r.token(t,n.htmlState);if(!i){var a=e.innerMode(r,n.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=T,n.block=_,n.htmlState=null)}return o}function E(e,t){var r,i=t.listStack[t.listStack.length-1]||0,o=t.indentation<i,s=i+3;return t.fencedEndRE&&t.indentation<=s&&(o||e.match(t.fencedEndRE))?(n.highlightFormatting&&(t.formatting="code-block"),o||(r=S(t)),t.localMode=t.localState=null,t.block=_,t.f=T,t.fencedEndRE=null,t.code=0,t.thisLine.fencedCodeEnd=!0,o?b(e,t,t.block):r):t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),a.code)}function S(e){var t=[];if(e.formatting){t.push(a.formatting),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var r=0;r<e.formatting.length;r++)t.push(a.formatting+"-"+e.formatting[r]),"header"===e.formatting[r]&&t.push(a.formatting+"-"+e.formatting[r]+"-"+e.header),"quote"===e.formatting[r]&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(a.formatting+"-"+e.formatting[r]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(a.linkHref,"url"):(e.strong&&t.push(a.strong),e.em&&t.push(a.em),e.strikethrough&&t.push(a.strikethrough),e.emoji&&t.push(a.emoji),e.linkText&&t.push(a.linkText),e.code&&t.push(a.code),e.image&&t.push(a.image),e.imageAltText&&t.push(a.imageAltText,"link"),e.imageMarker&&t.push(a.imageMarker)),e.header&&t.push(a.header,a.header+"-"+e.header),e.quote&&(t.push(a.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(a.quote+"-"+e.quote):t.push(a.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?t.push(a.list2):t.push(a.list3):t.push(a.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function C(e,t){if(e.match(f,!0))return S(t)}function T(t,i){var o=i.text(t,i);if(void 0!==o)return o;if(i.list)return i.list=null,S(i);if(i.taskList)return" "===t.match(u,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,S(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),S(i);var s=t.next();if(i.linkTitle){i.linkTitle=!1;var l=s;"("===s&&(l=")");var c="^\\s*(?:[^"+(l=(l+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+l;if(t.match(new RegExp(c),!0))return a.linkHref}if("`"===s){var d=i.formatting;n.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var h=t.current().length;if(0!=i.code||i.quote&&1!=h){if(h==i.code){var f=S(i);return i.code=0,f}return i.formatting=d,S(i)}return i.code=h,S(i)}if(i.code)return S(i);if("\\"===s&&(t.next(),n.highlightFormatting)){var p=S(i),g=a.formatting+"-escape";return p?p+" "+g:g}if("!"===s&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),S(i);if("["===s&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),S(i);if("]"===s&&i.imageAltText){n.highlightFormatting&&(i.formatting="image");p=S(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=O,p}if("["===s&&!i.image)return i.linkText&&t.match(/^.*?\]/)||(i.linkText=!0,n.highlightFormatting&&(i.formatting="link")),S(i);if("]"===s&&i.linkText){n.highlightFormatting&&(i.formatting="link");p=S(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?O:T,p}if("<"===s&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=k,n.highlightFormatting&&(i.formatting="link"),(p=S(i))?p+=" ":p="",p+a.linkInline;if("<"===s&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=k,n.highlightFormatting&&(i.formatting="link"),(p=S(i))?p+=" ":p="",p+a.linkEmail;if(n.xml&&"<"===s&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var v=t.string.indexOf(">",t.pos);if(-1!=v){var A=t.string.substring(t.start,v);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(A)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=e.startState(r),b(t,i,x)}if(n.xml&&"<"===s&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===s||"_"===s){for(var y=1,w=1==t.pos?" ":t.string.charAt(t.pos-2);y<3&&t.eat(s);)y++;var _=t.peek()||" ",E=!/\s/.test(_)&&(!m.test(_)||/\s/.test(w)||m.test(w)),C=!/\s/.test(w)&&(!m.test(w)||/\s/.test(_)||m.test(_)),M=null,I=null;if(y%2&&(i.em||!E||"*"!==s&&C&&!m.test(w)?i.em!=s||!C||"*"!==s&&E&&!m.test(_)||(M=!1):M=!0),y>1&&(i.strong||!E||"*"!==s&&C&&!m.test(w)?i.strong!=s||!C||"*"!==s&&E&&!m.test(_)||(I=!1):I=!0),null!=I||null!=M)return n.highlightFormatting&&(i.formatting=null==M?"strong":null==I?"em":"strong em"),!0===M&&(i.em=s),!0===I&&(i.strong=s),f=S(i),!1===M&&(i.em=!1),!1===I&&(i.strong=!1),f}else if(" "===s&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return S(i);t.backUp(1)}if(n.strikethrough)if("~"===s&&t.eatWhile(s)){if(i.strikethrough)return n.highlightFormatting&&(i.formatting="strikethrough"),f=S(i),i.strikethrough=!1,f;if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),S(i)}else if(" "===s&&t.match(/^~~/,!0)){if(" "===t.peek())return S(i);t.backUp(2)}if(n.emoji&&":"===s&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var D=S(i);return i.emoji=!1,D}return" "===s&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),S(i)}function k(e,t){if(">"===e.next()){t.f=t.inline=T,n.highlightFormatting&&(t.formatting="link");var r=S(t);return r?r+=" ":r="",r+a.linkInline}return e.match(/^[^>]+/,!0),a.linkInline}function O(e,t){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(t.f=t.inline=I("("===r?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,S(t)):"error"}var M={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function I(e){return function(t,r){if(t.next()===e){r.f=r.inline=T,n.highlightFormatting&&(r.formatting="link-string");var i=S(r);return r.linkHref=!1,i}return t.match(M[e]),r.linkHref=!0,S(r)}}function D(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=N,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,S(t)):A(e,t,T)}function N(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=R,n.highlightFormatting&&(t.formatting="link");var r=S(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function R(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=T,a.linkHref+" url")}var L={startState:function(){return{f:_,prevLine:{stream:null},thisLine:{stream:null},block:_,htmlState:null,indentation:0,inline:T,text:C,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return w(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=x)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,v).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==x?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:L}},indent:function(t,n,i){return t.block==x&&r.indent?r.indent(t.htmlState,n,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,i):e.Pass},blankLine:w,getType:S,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return L},"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")),x_;var e}var T_,k_,O_,M_,I_={};function D_(){return T_||(T_=1,(e=A_()).overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:e.copyState(t,r.base),overlay:e.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(e,i){return(e!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<e.start)&&(i.streamSeen=e,i.basePos=i.overlayPos=e.start),e.start==i.basePos&&(i.baseCur=t.token(e,i.base),i.basePos=e.pos),e.start==i.overlayPos&&(e.pos=e.start,i.overlayCur=n.token(e,i.overlay),i.overlayPos=e.pos),e.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||r&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:t.indent&&function(e,n,r){return t.indent(e.base,n,r)},electricChars:t.electricChars,innerMode:function(e){return{state:e.base,mode:t}},blankLine:function(e){var i,o;return t.blankLine&&(i=t.blankLine(e.base)),n.blankLine&&(o=n.blankLine(e.overlay)),null==o?i:r&&null!=i?i+" "+o:o}}}),I_;var e}k_||(k_=1,O_=A_(),C_(),D_(),M_=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i,O_.defineMode("gfm",function(e,t){var n=0;function r(e){return e.code=!1,null}var i={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,r){if(r.combineTokens=null,r.codeBlock)return e.match(/^```+/)?(r.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(r.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),r.codeBlock=!0,null;if("`"===e.peek()){e.next();var i=e.pos;e.eatWhile("`");var o=1+e.pos-i;return r.code?o===n&&(r.code=!1):(n=o,r.code=!0),null}if(r.code)return e.next(),null;if(e.eatSpace())return r.ateSpace=!0,null;if((e.sol()||r.ateSpace)&&(r.ateSpace=!1,!1!==t.gitHubSpice)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return r.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return r.combineTokens=!0,"link"}return e.match(M_)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(r.combineTokens=!0,"link"):(e.next(),null)},blankLine:r},o={taskLists:!0,strikethrough:!0,emoji:!0};for(var a in t)o[a]=t[a];return o.name="markdown",O_.overlayMode(O_.getMode(e,o),i)},"markdown"),O_.defineMIME("text/x-gfm","gfm"));var N_,R_,L_,B_={};function P_(){return N_||(N_=1,function(e){e.defineMode("yaml",function(){var e=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i");return{token:function(t,n){var r=t.peek(),i=n.escaped;if(n.escaped=!1,"#"==r&&(0==t.pos||/\s/.test(t.string.charAt(t.pos-1))))return t.skipToEnd(),"comment";if(t.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(n.literal&&t.indentation()>n.keyCol)return t.skipToEnd(),"string";if(n.literal&&(n.literal=!1),t.sol()){if(n.keyCol=0,n.pair=!1,n.pairStart=!1,t.match(/---/))return"def";if(t.match(/\.\.\./))return"def";if(t.match(/\s*-\s+/))return"meta"}if(t.match(/^(\{|\}|\[|\])/))return"{"==r?n.inlinePairs++:"}"==r?n.inlinePairs--:"["==r?n.inlineList++:n.inlineList--,"meta";if(n.inlineList>0&&!i&&","==r)return t.next(),"meta";if(n.inlinePairs>0&&!i&&","==r)return n.keyCol=0,n.pair=!1,n.pairStart=!1,t.next(),"meta";if(n.pairStart){if(t.match(/^\s*(\||\>)\s*/))return n.literal=!0,"meta";if(t.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(0==n.inlinePairs&&t.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(n.inlinePairs>0&&t.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(t.match(e))return"keyword"}return!n.pair&&t.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(n.pair=!0,n.keyCol=t.indentation(),"atom"):n.pair&&t.match(/^:\s*/)?(n.pairStart=!0,"meta"):(n.pairStart=!1,n.escaped="\\"==r,t.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),e.defineMIME("text/x-yaml","yaml"),e.defineMIME("text/yaml","yaml")}(A_())),B_}R_||(R_=1,function(e){var t=0,n=1,r=2;e.defineMode("yaml-frontmatter",function(i,o){var a=e.getMode(i,"yaml"),s=e.getMode(i,o&&o.base||"gfm");function l(e){return e.state==r?s:a}return{startState:function(){return{state:t,inner:e.startState(a)}},copyState:function(t){return{state:t.state,inner:e.copyState(l(t),t.inner)}},token:function(i,o){if(o.state==t)return i.match(/---/,!1)?(o.state=n,a.token(i,o.inner)):(o.state=r,o.inner=e.startState(s),s.token(i,o.inner));if(o.state==n){var l=i.sol()&&i.match(/(---|\.\.\.)/,!1),c=a.token(i,o.inner);return l&&(o.state=r,o.inner=e.startState(s)),c}return s.token(i,o.inner)},innerMode:function(e){return{mode:l(e),state:e.inner}},blankLine:function(e){var t=l(e);if(t.blankLine)return t.blankLine(e.inner)}}})}(A_(),P_())),L_||(L_=1,function(e){var t=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;function i(e,n){var r=n.line,i=0,o=0,a=t.exec(e.getLine(r)),s=a[1];do{var l=r+(i+=1),c=e.getLine(l),u=t.exec(c);if(u){var d=u[1],h=parseInt(a[3],10)+i-o,f=parseInt(u[3],10),p=f;if(s!==d||isNaN(f)){if(s.length>d.length)return;if(s.length<d.length&&1===i)return;o+=1}else h===f&&(p=f+1),h>f&&(p=h+1),e.replaceRange(c.replace(t,d+p+u[4]+u[5]),{line:l,ch:0},{line:l,ch:c.length})}}while(u)}e.commands.newlineAndIndentContinueMarkdownList=function(o){if(o.getOption("disableInput"))return e.Pass;for(var a=o.listSelections(),s=[],l=0;l<a.length;l++){var c=a[l].head,u=o.getStateAfter(c.line),d=e.innerMode(o.getMode(),u);if("markdown"!==d.mode.name)return void o.execCommand("newlineAndIndent");var h=!1!==(u=d.state).list,f=0!==u.quote,p=o.getLine(c.line),g=t.exec(p),m=/^\s*$/.test(p.slice(0,c.ch));if(!a[l].empty()||!h&&!f||!g||m)return void o.execCommand("newlineAndIndent");if(n.test(p)){var v=f&&/>\s*$/.test(p),A=!/>\s*$/.test(p);(v||A)&&o.replaceRange("",{line:c.line,ch:0},{line:c.line,ch:c.ch+1}),s[l]="\n"}else{var b=g[1],y=g[5],w=!(r.test(g[2])||g[2].indexOf(">")>=0),_=w?parseInt(g[3],10)+1+g[4]:g[2].replace("x"," ");s[l]="\n"+b+_+y,w&&i(o,c)}}o.replaceSelections(s)}}(A_()));var F_,$_,j_,H_,U_={};function Q_(){return F_||(F_=1,function(e){var t=e.Pos;function n(e,t){return e.line-t.line||e.ch-t.ch}var r="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i=new RegExp("<(/?)(["+r+"]["+r+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");function o(e,t,n,r){this.line=t,this.ch=n,this.cm=e,this.text=e.getLine(t),this.min=r?Math.max(r.from,e.firstLine()):e.firstLine(),this.max=r?Math.min(r.to-1,e.lastLine()):e.lastLine()}function a(e,n){var r=e.cm.getTokenTypeAt(t(e.line,n));return r&&/\btag\b/.test(r)}function s(e){if(!(e.line>=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function l(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function c(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(s(e))continue;return}if(a(e,t+1)){var n=e.text.lastIndexOf("/",t),r=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t+1}}function u(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(l(e))continue;return}if(a(e,t+1)){i.lastIndex=t,e.ch=t;var n=i.exec(e.text);if(n&&n.index==t)return n}else e.ch=t}}function d(e){for(;;){i.lastIndex=e.ch;var t=i.exec(e.text);if(!t){if(s(e))continue;return}if(a(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}function h(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(l(e))continue;return}if(a(e,t+1)){var n=e.text.lastIndexOf("/",t),r=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t}}function f(e,n){for(var r=[];;){var i,o=d(e),a=e.line,s=e.ch-(o?o[0].length:0);if(!o||!(i=c(e)))return;if("selfClose"!=i)if(o[1]){for(var l=r.length-1;l>=0;--l)if(r[l]==o[2]){r.length=l;break}if(l<0&&(!n||n==o[2]))return{tag:o[2],from:t(a,s),to:t(e.line,e.ch)}}else r.push(o[2])}}function p(e,n){for(var r=[];;){var i=h(e);if(!i)return;if("selfClose"!=i){var o=e.line,a=e.ch,s=u(e);if(!s)return;if(s[1])r.push(s[2]);else{for(var l=r.length-1;l>=0;--l)if(r[l]==s[2]){r.length=l;break}if(l<0&&(!n||n==s[2]))return{tag:s[2],from:t(e.line,e.ch),to:t(o,a)}}}else u(e)}}e.registerHelper("fold","xml",function(e,r){for(var i=new o(e,r.line,0);;){var a=d(i);if(!a||i.line!=r.line)return;var s=c(i);if(!s)return;if(!a[1]&&"selfClose"!=s){var l=t(i.line,i.ch),u=f(i,a[2]);return u&&n(u.from,l)>0?{from:l,to:u.from}:null}}}),e.findMatchingTag=function(e,r,i){var a=new o(e,r.line,r.ch,i);if(-1!=a.text.indexOf(">")||-1!=a.text.indexOf("<")){var s=c(a),l=s&&t(a.line,a.ch),d=s&&u(a);if(s&&d&&!(n(a,r)>0)){var h={from:t(a.line,a.ch),to:l,tag:d[2]};return"selfClose"==s?{open:h,close:null,at:"open"}:d[1]?{open:p(a,d[2]),close:h,at:"close"}:{open:h,close:f(a=new o(e,l.line,l.ch,i),d[2]),at:"open"}}}},e.findEnclosingTag=function(e,t,n,r){for(var i=new o(e,t.line,t.ch,n);;){var a=p(i,r);if(!a)break;var s=f(new o(e,t.line,t.ch,n),a.tag);if(s)return{open:a,close:s}}},e.scanForClosingTag=function(e,t,n,r){return f(new o(e,t.line,t.ch,r?{from:0,to:r}:null),n)}}(A_())),U_}$_||($_=1,function(e){e.defineOption("autoCloseTags",!1,function(t,n,i){if(i!=e.Init&&i&&t.removeKeyMap("autoCloseTags"),n){var a={name:"autoCloseTags"};"object"==typeof n&&!1===n.whenClosing||(a["'/'"]=function(e){return o(e)}),"object"==typeof n&&!1===n.whenOpening||(a["'>'"]=function(e){return r(e)}),t.addKeyMap(a)}});var t=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],n=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function r(r){if(r.getOption("disableInput"))return e.Pass;for(var i=r.listSelections(),o=[],l=r.getOption("autoCloseTags"),c=0;c<i.length;c++){if(!i[c].empty())return e.Pass;var u=i[c].head,d=r.getTokenAt(u),h=e.innerMode(r.getMode(),d.state),f=h.state,p=h.mode.xmlCurrentTag&&h.mode.xmlCurrentTag(f),g=p&&p.name;if(!g)return e.Pass;var m="html"==h.mode.configuration,v="object"==typeof l&&l.dontCloseTags||m&&t,A="object"==typeof l&&l.indentTags||m&&n;d.end>u.ch&&(g=g.slice(0,g.length-d.end+u.ch));var b=g.toLowerCase();if(!g||"string"==d.type&&(d.end!=u.ch||!/[\"\']/.test(d.string.charAt(d.string.length-1))||1==d.string.length)||"tag"==d.type&&p.close||d.string.indexOf("/")==u.ch-d.start-1||v&&a(v,b)>-1||s(r,h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(f)||[],g,u,!0))return e.Pass;var y="object"==typeof l&&l.emptyTags;if(y&&a(y,g)>-1)o[c]={text:"/>",newPos:e.Pos(u.line,u.ch+2)};else{var w=A&&a(A,b)>-1;o[c]={indent:w,text:">"+(w?"\n\n":"")+"</"+g+">",newPos:w?e.Pos(u.line+1,0):e.Pos(u.line,u.ch+1)}}}var _="object"==typeof l&&l.dontIndentOnAutoClose;for(c=i.length-1;c>=0;c--){var x=o[c];r.replaceRange(x.text,i[c].head,i[c].anchor,"+insert");var E=r.listSelections().slice(0);E[c]={head:x.newPos,anchor:x.newPos},r.setSelections(E),!_&&x.indent&&(r.indentLine(x.newPos.line,null,!0),r.indentLine(x.newPos.line+1,null,!0))}}function i(t,n){for(var r=t.listSelections(),i=[],o=n?"/":"</",a=t.getOption("autoCloseTags"),l="object"==typeof a&&a.dontIndentOnSlash,c=0;c<r.length;c++){if(!r[c].empty())return e.Pass;var u=r[c].head,d=t.getTokenAt(u),h=e.innerMode(t.getMode(),d.state),f=h.state;if(n&&("string"==d.type||"<"!=d.string.charAt(0)||d.start!=u.ch-1))return e.Pass;var p,g="xml"!=h.mode.name&&"htmlmixed"==t.getMode().name;if(g&&"javascript"==h.mode.name)p=o+"script";else if(g&&"css"==h.mode.name)p=o+"style";else{var m=h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(f);if(!m||m.length&&s(t,m,m[m.length-1],u))return e.Pass;p=o+m[m.length-1]}">"!=t.getLine(u.line).charAt(d.end)&&(p+=">"),i[c]=p}if(t.replaceSelections(i),r=t.listSelections(),!l)for(c=0;c<r.length;c++)(c==r.length-1||r[c].head.line<r[c+1].head.line)&&t.indentLine(r[c].head.line)}function o(t){return t.getOption("disableInput")?e.Pass:i(t,!0)}function a(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;++n)if(e[n]==t)return n;return-1}function s(t,n,r,i,o){if(!e.scanForClosingTag)return!1;var a=Math.min(t.lastLine()+1,i.line+500),s=e.scanForClosingTag(t,i,null,a);if(!s||s.tag!=r)return!1;for(var l=o?1:0,c=n.length-1;c>=0&&n[c]==r;c--)++l;for(i=s.to,c=1;c<l;c++){var u=e.scanForClosingTag(t,i,null,a);if(!u||u.tag!=r)return!1;i=u.to}return!0}e.commands.closeTag=function(e){return i(e)}}(A_(),Q_())),Q_(),j_||(j_=1,function(e){function t(e){e.state.tagHit&&e.state.tagHit.clear(),e.state.tagOther&&e.state.tagOther.clear(),e.state.tagHit=e.state.tagOther=null}function n(n){n.state.failedTagMatch=!1,n.operation(function(){if(t(n),!n.somethingSelected()){var r=n.getCursor(),i=n.getViewport();i.from=Math.min(i.from,r.line),i.to=Math.max(r.line+1,i.to);var o=e.findMatchingTag(n,r,i);if(o){if(n.state.matchBothTags){var a="open"==o.at?o.open:o.close;a&&(n.state.tagHit=n.markText(a.from,a.to,{className:"CodeMirror-matchingtag"}))}var s="close"==o.at?o.open:o.close;s?n.state.tagOther=n.markText(s.from,s.to,{className:"CodeMirror-matchingtag"}):n.state.failedTagMatch=!0}}})}function r(e){e.state.failedTagMatch&&n(e)}e.defineOption("matchTags",!1,function(i,o,a){a&&a!=e.Init&&(i.off("cursorActivity",n),i.off("viewportChange",r),t(i)),o&&(i.state.matchBothTags="object"==typeof o&&o.bothTags,i.on("cursorActivity",n),i.on("viewportChange",r),n(i))}),e.commands.toMatchingTag=function(t){var n=e.findMatchingTag(t,t.getCursor());if(n){var r="close"==n.at?n.open:n.close;r&&t.extendSelection(r.to,r.from)}}}(A_(),Q_())),H_||(H_=1,function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function n(e){t(e);var n=e.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=e.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var r=e.getOption("placeholder");"string"==typeof r&&(r=document.createTextNode(r)),n.appendChild(r),e.display.lineSpace.insertBefore(n,e.display.lineSpace.firstChild)}function r(e){setTimeout(function(){var r=!1,i=e.getInputField();"TEXTAREA"==i.nodeName?r=!i.value:1==e.lineCount()&&(r=!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)),r?n(e):t(e)},20)}function i(e){a(e)&&n(e)}function o(e){var r=e.getWrapperElement(),i=a(e);r.className=r.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?n(e):t(e)}function a(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",function(n,a,s){var l=s&&s!=e.Init;if(a&&!l)n.on("blur",i),n.on("change",o),n.on("swapDoc",o),e.on(n.getInputField(),"compositionupdate",n.state.placeholderCompose=function(){r(n)}),o(n);else if(!a&&l){n.off("blur",i),n.off("change",o),n.off("swapDoc",o),e.off(n.getInputField(),"compositionupdate",n.state.placeholderCompose),t(n);var c=n.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}a&&!n.hasFocus()&&i(n)})}(A_()));var z_,W_={};function G_(){return z_||(z_=1,function(e){var t,n,r=e.Pos;function i(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function o(e,t){for(var n=i(e),r=n,o=0;o<t.length;o++)-1==r.indexOf(t.charAt(o))&&(r+=t.charAt(o));return n==r?e:new RegExp(e.source,r)}function a(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function s(e,t,n){t=o(t,"g");for(var i=n.line,a=n.ch,s=e.lastLine();i<=s;i++,a=0){t.lastIndex=a;var l=e.getLine(i),c=t.exec(l);if(c)return{from:r(i,c.index),to:r(i,c.index+c[0].length),match:c}}}function l(e,t,n){if(!a(t))return s(e,t,n);t=o(t,"gm");for(var i,l=1,c=n.line,u=e.lastLine();c<=u;){for(var d=0;d<l&&!(c>u);d++){var h=e.getLine(c++);i=null==i?h:i+"\n"+h}l*=2,t.lastIndex=n.ch;var f=t.exec(i);if(f){var p=i.slice(0,f.index).split("\n"),g=f[0].split("\n"),m=n.line+p.length-1,v=p[p.length-1].length;return{from:r(m,v),to:r(m+g.length-1,1==g.length?v+g[0].length:g[g.length-1].length),match:f}}}}function c(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function u(e,t,n){t=o(t,"g");for(var i=n.line,a=n.ch,s=e.firstLine();i>=s;i--,a=-1){var l=e.getLine(i),u=c(l,t,a<0?0:l.length-a);if(u)return{from:r(i,u.index),to:r(i,u.index+u[0].length),match:u}}}function d(e,t,n){if(!a(t))return u(e,t,n);t=o(t,"gm");for(var i,s=1,l=e.getLine(n.line).length-n.ch,d=n.line,h=e.firstLine();d>=h;){for(var f=0;f<s&&d>=h;f++){var p=e.getLine(d--);i=null==i?p:p+"\n"+i}s*=2;var g=c(i,t,l);if(g){var m=i.slice(0,g.index).split("\n"),v=g[0].split("\n"),A=d+m.length,b=m[m.length-1].length;return{from:r(A,b),to:r(A+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:g}}}}function h(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function f(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var c=o.line,u=o.ch,d=e.lastLine()+1-l.length;c<=d;c++,u=0){var f=e.getLine(c).slice(u),p=s(f);if(1==l.length){var g=p.indexOf(l[0]);if(-1==g)continue e;return o=h(f,p,g,s)+u,{from:r(c,h(f,p,g,s)+u),to:r(c,h(f,p,g+l[0].length,s)+u)}}var m=p.length-l[0].length;if(p.slice(m)==l[0]){for(var v=1;v<l.length-1;v++)if(s(e.getLine(c+v))!=l[v])continue e;var A=e.getLine(c+l.length-1),b=s(A),y=l[l.length-1];if(b.slice(0,y.length)==y)return{from:r(c,h(f,p,m,s)+u),to:r(c+l.length-1,h(A,b,y.length,s))}}}}function p(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var c=o.line,u=o.ch,d=e.firstLine()-1+l.length;c>=d;c--,u=-1){var f=e.getLine(c);u>-1&&(f=f.slice(0,u));var p=s(f);if(1==l.length){var g=p.lastIndexOf(l[0]);if(-1==g)continue e;return{from:r(c,h(f,p,g,s)),to:r(c,h(f,p,g+l[0].length,s))}}var m=l[l.length-1];if(p.slice(0,m.length)==m){var v=1;for(o=c-l.length+1;v<l.length-1;v++)if(s(e.getLine(o+v))!=l[v])continue e;var A=e.getLine(c+1-l.length),b=s(A);if(b.slice(b.length-l[0].length)==l[0])return{from:r(c+1-l.length,h(A,b,A.length-l[0].length,s)),to:r(c,h(f,p,m.length,s))}}}}function g(e,t,n,i){var a;this.atOccurrence=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof i?a=i.caseFold:(a=i,i=null),"string"==typeof t?(null==a&&(a=!1),this.matches=function(n,r){return(n?p:f)(e,t,r,a)}):(t=o(t,"gm"),i&&!1===i.multiline?this.matches=function(n,r){return(n?u:s)(e,t,r)}:this.matches=function(n,r){return(n?d:l)(e,t,r)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),g.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){for(var n=this.matches(t,this.doc.clipPos(t?this.pos.from:this.pos.to));n&&0==e.cmpPos(n.from,n.to);)t?n.from.ch?n.from=r(n.from.line,n.from.ch-1):n=n.from.line==this.doc.firstLine()?null:this.matches(t,this.doc.clipPos(r(n.from.line-1))):n.to.ch<this.doc.getLine(n.to.line).length?n.to=r(n.to.line,n.to.ch+1):n=n.to.line==this.doc.lastLine()?null:this.matches(t,r(n.to.line+1,0));if(n)return this.pos=n,this.atOccurrence=!0,this.pos.match||!0;var i=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:i,to:i},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,t,n){return new g(this.doc,e,t,n)}),e.defineDocExtension("getSearchCursor",function(e,t,n){return new g(this,e,t,n)}),e.defineExtension("selectMatches",function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)})}(A_())),W_}var V_,K_,Y_={};function q_(){return V_||(V_=1,function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,c=o&&o.afterCursor;null==c&&(c=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var u=i(o),d=!c&&l>=0&&u.test(s.text.charAt(l))&&r[s.text.charAt(l)]||u.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!d)return null;var h=">"==d.charAt(1)?1:-1;if(o&&o.strict&&h>0!=(l==t.ch))return null;var f=e.getTokenTypeAt(n(t.line,l+1)),p=a(e,n(t.line,l+(h>0?1:0)),h,f||null,o);return null==p?null:{from:n(t.line,l),to:p&&p.pos,match:p&&p.ch==d.charAt(0),forward:h>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,c=s&&s.maxScanLines||1e3,u=[],d=i(s),h=o>0?Math.min(t.line+c,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-c),f=t.line;f!=h;f+=o){var p=e.getLine(f);if(p){var g=o>0?0:p.length-1,m=o>0?p.length:-1;if(!(p.length>l))for(f==t.line&&(g=t.ch-(o<0?1:0));g!=m;g+=o){var v=p.charAt(g);if(d.test(v)&&(void 0===a||e.getTokenTypeAt(n(f,g+1))==a)){var A=r[v];if(A&&">"==A.charAt(1)==o>0)u.push(v);else{if(!u.length)return{pos:n(f,g),ch:v};u.pop()}}}}}return f-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=[],l=e.listSelections(),c=0;c<l.length;c++){var u=l[c].empty()&&o(e,l[c].head,i);if(u&&e.getLine(u.from.line).length<=a){var d=u.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";s.push(e.markText(u.from,n(u.from.line,u.from.ch+1),{className:d})),u.to&&e.getLine(u.to.line).length<=a&&s.push(e.markText(u.to,n(u.to.line,u.to.ch+1),{className:d}))}}if(s.length){t&&e.state.focused&&e.focus();var h=function(){e.operation(function(){for(var e=0;e<s.length;e++)s[e].clear()})};if(!r)return h;setTimeout(h,800)}}function l(e){e.operation(function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=s(e,!1,e.state.matchBrackets)})}e.defineOption("matchBrackets",!1,function(t,n,r){function i(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}r&&r!=e.Init&&(t.off("cursorActivity",l),t.off("focus",l),t.off("blur",i),i(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",l),t.on("focus",l),t.on("blur",i))}),e.defineExtension("matchBrackets",function(){s(this,!0)}),e.defineExtension("findMatchingBracket",function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),o(this,e,t)}),e.defineExtension("scanForBracket",function(e,t,n,r){return a(this,e,t,n,r)})}(A_())),Y_}K_||(K_=1,function(e){var t=e.commands,n=e.Pos;function r(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,c=l,u=i<0?0:o.length,d=0;c!=u;c+=i,d++){var h=o.charAt(i<0?c-1:c),f="_"!=h&&e.isWordChar(h)?"w":"o";if("w"==f&&h.toUpperCase()==h&&(f="W"),"start"==s)"o"!=f?(s="in",a=f):l=c+i;else if("in"==s&&a!=f){if("w"==a&&"W"==f&&i<0&&c--,"W"==a&&"w"==f&&i>0){if(c==l+1){a="w";continue}c--}break}}return n(r.line,c)}function i(e,t){e.extendSelectionsBy(function(n){return e.display.shift||e.doc.extend||n.empty()?r(e.doc,n.head,t):t<0?n.from():n.to()})}function o(t,r){if(t.isReadOnly())return e.Pass;t.operation(function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a<e;a++){var s=t.listSelections()[a].head;if(!(s.line<=o)){var l=n(s.line+(r?0:1),0);t.replaceRange("\n",l,null,"+insertLine"),t.indentLine(l.line,null,!0),i.push({head:l,anchor:l}),o=s.line+1}}t.setSelections(i)}),t.execCommand("indentAuto")}function a(t,r){for(var i=r.ch,o=i,a=t.getLine(r.line);i&&e.isWordChar(a.charAt(i-1));)--i;for(;o<a.length&&e.isWordChar(a.charAt(o));)++o;return{from:n(r.line,i),to:n(r.line,o),word:a.slice(i,o)}}function s(e,t){for(var n=e.listSelections(),r=[],i=0;i<n.length;i++){var o=n[i],a=e.findPosV(o.anchor,t,"line",o.anchor.goalColumn),s=e.findPosV(o.head,t,"line",o.head.goalColumn);a.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:e.cursorCoords(o.anchor,"div").left,s.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:e.cursorCoords(o.head,"div").left;var l={anchor:a,head:s};r.push(o),r.push(l)}e.setSelections(r)}function l(t,n,r){for(var i=0;i<t.length;i++)if(0==e.cmpPos(t[i].from(),n)&&0==e.cmpPos(t[i].to(),r))return!0;return!1}t.goSubwordLeft=function(e){i(e,-1)},t.goSubwordRight=function(e){i(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++)for(var o=t[i].from(),a=t[i].to(),s=o.line;s<=a.line;++s)a.line>o.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){var o=t[i];r.push({anchor:n(o.from().line,0),head:n(o.to().line+1,0)})}e.setSelections(r)},t.insertLineAfter=function(e){return o(e,!1)},t.insertLineBefore=function(e){return o(e,!0)},t.selectNextOccurrence=function(t){var r=t.getCursor("from"),i=t.getCursor("to"),o=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,i)){var s=a(t,r);if(!s.word)return;t.setSelection(s.from,s.to),o=!0}else{var c=t.getRange(r,i),u=o?new RegExp("\\b"+c+"\\b"):c,d=t.getSearchCursor(u,i),h=d.findNext();if(h||(h=(d=t.getSearchCursor(u,n(t.firstLine(),0))).findNext()),!h||l(t.listSelections(),d.from(),d.to()))return;t.addSelection(d.from(),d.to())}o&&(t.state.sublimeFindFullWord=t.doc.sel)},t.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),i=n.getCursor("head");t.selectNextOccurrence(n),0!=e.cmpPos(r,i)&&n.doc.setSelections(n.doc.listSelections().filter(function(e){return e.anchor!=r||e.head!=i}))},t.addCursorToPrevLine=function(e){s(e,-1)},t.addCursorToNextLine=function(e){s(e,1)};var c="(){}[]";function u(t){for(var r=t.listSelections(),i=[],o=0;o<r.length;o++){var a=r[o],s=a.head,l=t.scanForBracket(s,-1);if(!l)return!1;for(;;){var u=t.scanForBracket(s,1);if(!u)return!1;if(u.ch==c.charAt(c.indexOf(l.ch)+1)){var d=n(l.pos.line,l.pos.ch+1);if(0!=e.cmpPos(d,a.from())||0!=e.cmpPos(u.pos,a.to())){i.push({anchor:d,head:u.pos});break}if(!(l=t.scanForBracket(l.pos,-1)))return!1}s=n(u.pos.line,u.pos.ch+1)}}return t.setSelections(i),!0}function d(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}function h(t,r){if(t.isReadOnly())return e.Pass;for(var i,o=t.listSelections(),a=[],s=0;s<o.length;s++){var l=o[s];if(!l.empty()){for(var c=l.from().line,u=l.to().line;s<o.length-1&&o[s+1].from().line==u;)u=o[++s].to().line;o[s].to().ch||u--,a.push(c,u)}}a.length?i=!0:a.push(t.firstLine(),t.lastLine()),t.operation(function(){for(var e=[],o=0;o<a.length;o+=2){var s=a[o],l=a[o+1],c=n(s,0),u=n(l),d=t.getRange(c,u,!1);r?d.sort():d.sort(function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-1:e==t?0:1}),t.replaceRange(d,c,u),i&&e.push({anchor:c,head:n(l+1,0)})}i&&t.setSelections(e,0)})}function f(t,n){t.operation(function(){for(var r=t.listSelections(),i=[],o=[],s=0;s<r.length;s++)(c=r[s]).empty()?(i.push(s),o.push("")):o.push(n(t.getRange(c.from(),c.to())));var l;for(t.replaceSelections(o,"around","case"),s=i.length-1;s>=0;s--){var c=r[i[s]];if(!(l&&e.cmpPos(c.head,l)>0)){var u=a(t,c.head);l=u.from,t.replaceRange(n(u.word),u.from,u.to)}}})}function p(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=a(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function g(e,t){var r=p(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){u(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!u(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy(function(r){var i=t.scanForBracket(r.head,1,d(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,d(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head})},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;s<r.length;s++){var l=r[s],c=l.from().line-1,u=l.to().line;a.push({anchor:n(l.anchor.line-1,l.anchor.ch),head:n(l.head.line-1,l.head.ch)}),0!=l.to().ch||l.empty()||--u,c>o?i.push(c,u):i.length&&(i[i.length-1]=u),o=u}t.operation(function(){for(var e=0;e<i.length;e+=2){var r=i[e],o=i[e+1],s=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>t.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()})},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,c=s.from().line;0!=s.to().ch||s.empty()||l--,l<o?i.push(l,c):i.length&&(i[i.length-1]=c),o=c}t.operation(function(){for(var e=i.length-2;e>=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()})},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){for(var o=t[i],a=o.from(),s=a.line,l=o.to().line;i<t.length-1&&t[i+1].from().line==l;)l=t[++i].to().line;r.push({start:s,end:l,anchor:!o.empty()&&a})}e.operation(function(){for(var t=0,i=[],o=0;o<r.length;o++){for(var a,s=r[o],l=s.anchor&&n(s.anchor.line-t,s.anchor.ch),c=s.start;c<=s.end;c++){var u=c-t;c==s.end&&(a=n(u,e.getLine(u).length+1)),u<e.lastLine()&&(e.replaceRange(" ",n(u),n(u+1,/^\s*/.exec(e.getLine(u+1))[0].length)),++t)}i.push({anchor:l||a,head:a})}e.setSelections(i,0)})},t.duplicateLine=function(e){e.operation(function(){for(var t=e.listSelections().length,r=0;r<t;r++){var i=e.listSelections()[r];i.empty()?e.replaceRange(e.getLine(i.head.line)+"\n",n(i.head.line,0)):e.replaceRange(e.getRange(i.from(),i.to()),i.from())}e.scrollIntoView()})},t.sortLines=function(e){h(e,!0)},t.sortLinesInsensitive=function(e){h(e,!1)},t.nextBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},t.prevBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},t.toggleBookmark=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),a=t[r].empty()?e.findMarksAt(i):e.findMarks(i,o),s=0;s<a.length;s++)if(a[s].sublimeBookmark){a[s].clear();for(var l=0;l<n.length;l++)n[l]==a[s]&&n.splice(l--,1);break}s==a.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},t.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation(function(){for(var r=t.listSelections(),i=t.getOption("indentUnit"),o=r.length-1;o>=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption("tabSize")),c=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var u=new n(a.line,e.findColumn(s,l-i,i));u.ch!=a.ch&&(c=u)}t.replaceRange("",c,a,"+delete")}})},t.delLineRight=function(e){e.operation(function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()})},t.upcaseAtCursor=function(e){f(e,function(e){return e.toUpperCase()})},t.downcaseAtCursor=function(e){f(e,function(e){return e.toLowerCase()})},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){g(e,!0)},t.findUnderPrevious=function(e){g(e,!1)},t.findAllUnder=function(e){var t=p(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var m=e.keyMap;m.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Cmd-F5":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(m.macSublime),m.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Ctrl-F9":"sortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(m.pcSublime);var v=m.default==m.macDefault;m.sublime=v?m.macSublime:m.pcSublime}(A_(),G_(),q_()));var X_,J_,Z_={};function ex(){return X_||(X_=1,function(e){function t(t,n,r){var i,o=t.getWrapperElement();return(i=o.appendChild(document.createElement("div"))).className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?i.innerHTML=n:i.appendChild(n),e.addClass(o,"dialog-opened"),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,l=this;function c(t){if("string"==typeof t)d.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var u,d=a.getElementsByTagName("input")[0];return d?(d.focus(),o.value&&(d.value=o.value,!1!==o.selectValueOnOpen&&d.select()),o.onInput&&e.on(d,"input",function(e){o.onInput(e,d.value,c)}),o.onKeyUp&&e.on(d,"keyup",function(e){o.onKeyUp(e,d.value,c)}),e.on(d,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,d.value,c)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(d.blur(),e.e_stop(t),c()),13==t.keyCode&&i(d.value,t))}),!1!==o.closeOnBlur&&e.on(a,"focusout",function(e){null!==e.relatedTarget&&c()})):(u=a.getElementsByTagName("button")[0])&&(e.on(u,"click",function(){c(),l.focus()}),!1!==o.closeOnBlur&&e.on(u,"blur",c),u.focus()),c}),e.defineExtension("openConfirm",function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,c=this,u=1;function d(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),c.focus())}s[0].focus();for(var h=0;h<s.length;++h){var f=s[h];!function(t){e.on(f,"click",function(n){e.e_preventDefault(n),d(),t&&t(c)})}(i[h]),e.on(f,"blur",function(){--u,setTimeout(function(){u<=0&&d()},200)}),e.on(f,"focus",function(){++u})}}),e.defineExtension("openNotification",function(r,i){n(this,c);var o,a=t(this,r,i&&i.bottom),s=!1,l=i&&void 0!==i.duration?i.duration:5e3;function c(){s||(s=!0,clearTimeout(o),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",function(t){e.e_preventDefault(t),c()}),l&&(o=setTimeout(c,l)),c})}(A_())),Z_}J_||(J_=1,function(e){var t=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"<Del>",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<character>",type:"action",action:"replayMacro"},{keys:"q<character>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<character>",type:"action",action:"setMark"},{keys:'"<character>',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<character>",type:"motion",motion:"textObjectManipulation"},{keys:"i<character>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],n=t.length,r=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"global",shortName:"g"}],i=e.Pos,o=function(){function o(t){t.setOption("disableInput",!0),t.setOption("showCursorWhenSelecting",!1),e.signal(t,"vim-mode-change",{mode:"normal"}),t.on("cursorActivity",Ut),z(t),e.on(t.getInputField(),"paste",v(t))}function a(t){t.setOption("disableInput",!1),t.off("cursorActivity",Ut),e.off(t.getInputField(),"paste",v(t)),t.state.vim=null}function s(t,n){this==e.keyMap.vim&&(e.rmClass(t.getWrapperElement(),"cm-fat-cursor"),"contenteditable"==t.getOption("inputStyle")&&null!=document.body.style.caretColor&&(h(t),t.getInputField().style.caretColor="")),n&&n.attach==l||a(t)}function l(t,n){this==e.keyMap.vim&&(e.addClass(t.getWrapperElement(),"cm-fat-cursor"),"contenteditable"==t.getOption("inputStyle")&&null!=document.body.style.caretColor&&(d(t),t.getInputField().style.caretColor="transparent")),n&&n.attach==l||o(t)}function c(e){if(e.state.fatCursorMarks){u(e);for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){var o=t[r];if(o.empty()){var a=e.getLine(o.anchor.line).length;o.anchor.ch<a?n.push(e.markText(o.anchor,i(o.anchor.line,o.anchor.ch+1),{className:"cm-fat-cursor-mark"})):n.push(e.markText(i(o.anchor.line,a-1),i(o.anchor.line,a),{className:"cm-fat-cursor-mark"}))}}e.state.fatCursorMarks=n}}function u(e){var t=e.state.fatCursorMarks;if(t)for(var n=0;n<t.length;n++)t[n].clear()}function d(e){e.state.fatCursorMarks=[],c(e),e.on("cursorActivity",c)}function h(e){u(e),e.off("cursorActivity",c),e.state.fatCursorMarks=null}function f(t,n){if(n){if(this[t])return this[t];var r=m(t);if(!r)return!1;var i=e.Vim.findKey(n,r);return"function"==typeof i&&e.signal(n,"vim-keypress",r),i}}e.defineOption("vimMode",!1,function(t,n,r){n&&"vim"!=t.getOption("keyMap")?t.setOption("keyMap","vim"):!n&&r!=e.Init&&/^vim/.test(t.getOption("keyMap"))&&t.setOption("keyMap","default")});var p={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A"},g={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"};function m(e){if("'"==e.charAt(0))return e.charAt(1);var t=e.split(/-(?!$)/),n=t[t.length-1];if(1==t.length&&1==t[0].length)return!1;if(2==t.length&&"Shift"==t[0]&&1==n.length)return!1;for(var r=!1,i=0;i<t.length;i++){var o=t[i];o in p?t[i]=p[o]:r=!0,o in g&&(t[i]=g[o])}return!!r&&(I(n)&&(t[t.length-1]=n.toLowerCase()),"<"+t.join("-")+">")}function v(e){var t=e.state.vim;return t.onPasteFn||(t.onPasteFn=function(){t.insertMode||(e.setCursor(ce(e.getCursor(),0,1)),oe.enterInsertMode(e,{},t))}),t.onPasteFn}var A=/[\d]/,b=[e.isWordChar,function(t){return t&&!e.isWordChar(t)&&!/\s/.test(t)}],y=[function(e){return/\S/.test(e)}];function w(e,t){for(var n=[],r=e;r<e+t;r++)n.push(String.fromCharCode(r));return n}var _=w(65,26),x=w(97,26),E=w(48,10),S=[].concat(_,x,E,["<",">"]),C=[].concat(_,x,E,["-",'"',".",":","_","/"]);function T(e,t){return t>=e.firstLine()&&t<=e.lastLine()}function k(e){return/^[a-z]$/.test(e)}function O(e){return-1!="()[]{}".indexOf(e)}function M(e){return A.test(e)}function I(e){return/^[A-Z]$/.test(e)}function D(e){return/^\s*$/.test(e)}function N(e){return-1!=".?!".indexOf(e)}function R(e,t){for(var n=0;n<t.length;n++)if(t[n]==e)return!0;return!1}var L={};function B(e,t,n,r,i){if(void 0===t&&!i)throw Error("defaultValue is required unless callback is provided");if(n||(n="string"),L[e]={type:n,defaultValue:t,callback:i},r)for(var o=0;o<r.length;o++)L[r[o]]=L[e];t&&P(e,t)}function P(e,t,n,r){var i=L[e],o=(r=r||{}).scope;if(!i)return new Error("Unknown option: "+e);if("boolean"==i.type){if(t&&!0!==t)return new Error("Invalid argument: "+e+"="+t);!1!==t&&(t=!0)}i.callback?("local"!==o&&i.callback(t,void 0),"global"!==o&&n&&i.callback(t,n)):("local"!==o&&(i.value="boolean"==i.type?!!t:t),"global"!==o&&n&&(n.state.vim.options[e]={value:t}))}function F(e,t,n){var r=L[e],i=(n=n||{}).scope;if(!r)return new Error("Unknown option: "+e);if(r.callback){var o=t&&r.callback(void 0,t);return"global"!==i&&void 0!==o?o:"local"!==i?r.callback():void 0}return((o="global"!==i&&t&&t.state.vim.options[e])||"local"!==i&&r||{}).value}B("filetype",void 0,"string",["ft"],function(e,t){if(void 0!==t){if(void 0===e)return"null"==(n=t.getOption("mode"))?"":n;var n=""==e?"null":e;t.setOption("mode",n)}});var $,j,H=function(){var e=100,t=-1,n=0,r=0,i=new Array(e);function o(o,a,s){var l=i[t%e];function c(n){var r=++t%e,a=i[r];a&&a.clear(),i[r]=o.setBookmark(n)}if(l){var u=l.find();u&&!ge(u,a)&&c(a)}else c(a);c(s),n=t,(r=t-e+1)<0&&(r=0)}function a(o,a){(t+=a)>n?t=n:t<r&&(t=r);var s=i[(e+t)%e];if(s&&!s.find()){var l,c=a>0?1:-1,u=o.getCursor();do{if((s=i[(e+(t+=c))%e])&&(l=s.find())&&!ge(u,l))break}while(t<n&&t>r)}return s}function s(e,n){var r=t,i=a(e,n);return t=r,i&&i.find()}return{cachedCursor:void 0,add:o,find:s,move:a}},U=function(e){return e?{changes:e.changes,expectCursorActivityForChange:e.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};function Q(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=U()}function z(e){return e.state.vim||(e.state.vim={inputState:new V,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},fakeCursor:null,insertMode:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),e.state.vim}function W(){for(var e in $={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:H(),macroModeState:new Q,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new X({}),searchHistoryController:new J,exCommandHistoryController:new J},L){var t=L[e];t.value=t.defaultValue}}Q.prototype={exitMacroRecordMode:function(){var e=$.macroModeState;e.onRecordingDone&&e.onRecordingDone(),e.onRecordingDone=void 0,e.isRecording=!1},enterMacroRecordMode:function(e,t){var n=$.registerController.getRegister(t);n&&(n.clear(),this.latestRegister=t,e.openDialog&&(this.onRecordingDone=e.openDialog("(recording)["+t+"]",null,{bottom:!0})),this.isRecording=!0)}};var G={buildKeyMap:function(){},getRegisterController:function(){return $.registerController},resetVimGlobalState_:W,getVimGlobalState_:function(){return $},maybeInitVimState_:z,suppressErrorLogging:!1,InsertModeKey:Gt,map:function(e,t,n){Dt.map(e,t,n)},unmap:function(e,t){Dt.unmap(e,t)},noremap:function(e,r,i){function o(e){return e?[e]:["normal","insert","visual"]}for(var a=o(i),s=t.length,l=s-n;l<s&&a.length;l++){var c=t[l];if(!(c.keys!=r||i&&c.context&&c.context!==i||"ex"===c.type.substr(0,2)||"key"===c.type.substr(0,3))){var u={};for(var d in c)u[d]=c[d];u.keys=e,i&&!u.context&&(u.context=i),this._mapCommand(u);var h=o(c.context);a=a.filter(function(e){return-1===h.indexOf(e)})}}},mapclear:function(e){var r=t.length,i=n,o=t.slice(0,r-i);if(t=t.slice(r-i),e)for(var a=o.length-1;a>=0;a--){var s=o[a];if(e!==s.context)if(s.context)this._mapCommand(s);else{var l=["normal","insert","visual"];for(var c in l)if(l[c]!==e){var u={};for(var d in s)u[d]=s[d];u.context=l[c],this._mapCommand(u)}}}},setOption:P,getOption:F,defineOption:B,defineEx:function(e,t,n){if(t){if(0!==e.indexOf(t))throw new Error('(Vim.defineEx) "'+t+'" is not a prefix of "'+e+'", command not registered')}else t=e;It[e]=n,Dt.commandMap_[t]={name:e,shortName:t,type:"api"}},handleKey:function(e,t,n){var r=this.findKey(e,t,n);if("function"==typeof r)return r()},findKey:function(n,r,i){var o,a=z(n);function s(){var e=$.macroModeState;if(e.isRecording){if("q"==r)return e.exitMacroRecordMode(),K(n),!0;"mapping"!=i&&Ft(e,r)}}function l(){if("<Esc>"==r)return K(n),a.visualMode?Ne(n):a.insertMode&&Rt(n),!0}function c(t){for(var i;t;)i=/<\w+-.+?>|<\w+>|./.exec(t),r=i[0],t=t.substring(i.index+r.length),e.Vim.handleKey(n,r,"mapping")}function u(){if(l())return!0;for(var e=a.inputState.keyBuffer=a.inputState.keyBuffer+r,i=1==r.length,o=Z.matchCommand(e,t,a.inputState,"insert");e.length>1&&"full"!=o.type;){e=a.inputState.keyBuffer=e.slice(1);var s=Z.matchCommand(e,t,a.inputState,"insert");"none"!=s.type&&(o=s)}if("none"==o.type)return K(n),!1;if("partial"==o.type)return j&&window.clearTimeout(j),j=window.setTimeout(function(){a.insertMode&&a.inputState.keyBuffer&&K(n)},F("insertModeEscKeysTimeout")),!i;if(j&&window.clearTimeout(j),i){for(var c=n.listSelections(),u=0;u<c.length;u++){var d=c[u].head;n.replaceRange("",ce(d,0,-(e.length-1)),d,"+input")}$.macroModeState.lastInsertModeChanges.changes.pop()}return K(n),o.command}function d(){if(s()||l())return!0;var e=a.inputState.keyBuffer=a.inputState.keyBuffer+r;if(/^[1-9]\d*$/.test(e))return!0;if(!(i=/^(\d*)(.*)$/.exec(e)))return K(n),!1;var i,o=a.visualMode?"visual":"normal",c=Z.matchCommand(i[2]||i[1],t,a.inputState,o);return"none"==c.type?(K(n),!1):"partial"==c.type||(a.inputState.keyBuffer="",(i=/^(\d*)(.*)$/.exec(e))[1]&&"0"!=i[1]&&a.inputState.pushRepeatDigit(i[1]),c.command)}return!1===(o=a.insertMode?u():d())?a.insertMode||1!==r.length?void 0:function(){return!0}:!0===o?function(){return!0}:function(){return n.operation(function(){n.curOp.isVimOp=!0;try{"keyToKey"==o.type?c(o.toKeys):Z.processCommand(n,a,o)}catch(t){throw n.state.vim=void 0,z(n),e.Vim.suppressErrorLogging,t}return!0})}},handleEx:function(e,t){Dt.processCommand(e,t)},defineMotion:te,defineAction:ae,defineOperator:ie,mapCommand:Bt,_mapCommand:Lt,defineRegister:q,exitVisualMode:Ne,exitInsertMode:Rt};function V(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null}function K(t,n){t.state.vim.inputState=new V,e.signal(t,"vim-command-done",n)}function Y(e,t,n){this.clear(),this.keyBuffer=[e||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!t,this.blockwise=!!n}function q(e,t){var n=$.registerController.registers;if(!e||1!=e.length)throw Error("Register name must be 1 character");if(n[e])throw Error("Register already defined "+e);n[e]=t,C.push(e)}function X(e){this.registers=e,this.unnamedRegister=e['"']=new Y,e["."]=new Y,e[":"]=new Y,e["/"]=new Y}function J(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}V.prototype.pushRepeatDigit=function(e){this.operator?this.motionRepeat=this.motionRepeat.concat(e):this.prefixRepeat=this.prefixRepeat.concat(e)},V.prototype.getRepeat=function(){var e=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(e=1,this.prefixRepeat.length>0&&(e*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(e*=parseInt(this.motionRepeat.join(""),10))),e},Y.prototype={setText:function(e,t,n){this.keyBuffer=[e||""],this.linewise=!!t,this.blockwise=!!n},pushText:function(e,t){t&&(this.linewise||this.keyBuffer.push("\n"),this.linewise=!0),this.keyBuffer.push(e)},pushInsertModeChanges:function(e){this.insertModeChanges.push(U(e))},pushSearchQuery:function(e){this.searchQueries.push(e)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},X.prototype={pushText:function(e,t,n,r,i){if("_"!==e){r&&"\n"!==n.charAt(n.length-1)&&(n+="\n");var o=this.isValidRegister(e)?this.getRegister(e):null;if(o)I(e)?o.pushText(n,r):o.setText(n,r,i),this.unnamedRegister.setText(o.toString(),r);else{switch(t){case"yank":this.registers[0]=new Y(n,r,i);break;case"delete":case"change":-1==n.indexOf("\n")?this.registers["-"]=new Y(n,r):(this.shiftNumericRegisters_(),this.registers[1]=new Y(n,r))}this.unnamedRegister.setText(n,r,i)}}},getRegister:function(e){return this.isValidRegister(e)?(e=e.toLowerCase(),this.registers[e]||(this.registers[e]=new Y),this.registers[e]):this.unnamedRegister},isValidRegister:function(e){return e&&R(e,C)},shiftNumericRegisters_:function(){for(var e=9;e>=2;e--)this.registers[e]=this.getRegister(""+(e-1))}},J.prototype={nextMatch:function(e,t){var n=this.historyBuffer,r=t?-1:1;null===this.initialPrefix&&(this.initialPrefix=e);for(var i=this.iterator+r;t?i>=0:i<n.length;i+=r)for(var o=n[i],a=0;a<=o.length;a++)if(this.initialPrefix==o.substring(0,a))return this.iterator=i,o;return i>=n.length?(this.iterator=n.length,this.initialPrefix):i<0?e:void 0},pushInput:function(e){var t=this.historyBuffer.indexOf(e);t>-1&&this.historyBuffer.splice(t,1),e.length&&this.historyBuffer.push(e)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var Z={matchCommand:function(e,t,n,r){var i,o=ue(e,t,r,n);if(!o.full&&!o.partial)return{type:"none"};if(!o.full&&o.partial)return{type:"partial"};for(var a=0;a<o.full.length;a++){var s=o.full[a];i||(i=s)}if("<character>"==i.keys.slice(-11)){var l=he(e);if(!l)return{type:"none"};n.selectedCharacter=l}return{type:"full",command:i}},processCommand:function(e,t,n){switch(t.inputState.repeatOverride=n.repeatOverride,n.type){case"motion":this.processMotion(e,t,n);break;case"operator":this.processOperator(e,t,n);break;case"operatorMotion":this.processOperatorMotion(e,t,n);break;case"action":this.processAction(e,t,n);break;case"search":this.processSearch(e,t,n);break;case"ex":case"keyToEx":this.processEx(e,t,n)}},processMotion:function(e,t,n){t.inputState.motion=n.motion,t.inputState.motionArgs=le(n.motionArgs),this.evalInput(e,t)},processOperator:function(e,t,n){var r=t.inputState;if(r.operator){if(r.operator==n.operator)return r.motion="expandToLine",r.motionArgs={linewise:!0},void this.evalInput(e,t);K(e)}r.operator=n.operator,r.operatorArgs=le(n.operatorArgs),n.exitVisualBlock&&(t.visualBlock=!1,Me(e)),t.visualMode&&this.evalInput(e,t)},processOperatorMotion:function(e,t,n){var r=t.visualMode,i=le(n.operatorMotionArgs);i&&r&&i.visualLine&&(t.visualLine=!0),this.processOperator(e,t,n),r||this.processMotion(e,t,n)},processAction:function(e,t,n){var r=t.inputState,i=r.getRepeat(),o=!!i,a=le(n.actionArgs)||{};r.selectedCharacter&&(a.selectedCharacter=r.selectedCharacter),n.operator&&this.processOperator(e,t,n),n.motion&&this.processMotion(e,t,n),(n.motion||n.operator)&&this.evalInput(e,t),a.repeat=i||1,a.repeatIsExplicit=o,a.registerName=r.registerName,K(e),t.lastMotion=null,n.isEdit&&this.recordLastEdit(t,r,n),oe[n.action](e,a,t)},processSearch:function(t,n,r){if(t.getSearchCursor){var i=r.searchArgs.forward,o=r.searchArgs.wholeWordOnly;nt(t).setReversed(!i);var a=i?"/":"?",s=nt(t).getQuery(),l=t.getScrollInfo();switch(r.searchArgs.querySrc){case"prompt":var c=$.macroModeState;c.isPlaying?f(h=c.replaySearchQueries.shift(),!0,!1):vt(t,{onClose:p,prefix:a,desc:mt,onKeyUp:g,onKeyDown:m});break;case"wordUnderCursor":var u=Pe(t,!1,!0,!1,!0),d=!0;if(u||(u=Pe(t,!1,!0,!1,!1),d=!1),!u)return;var h=t.getLine(u.start.line).substring(u.start.ch,u.end.ch);h=d&&o?"\\b"+h+"\\b":_e(h),$.jumpList.cachedCursor=t.getCursor(),t.setCursor(u.start),f(h,!0,!1)}}function f(e,i,o){$.searchHistoryController.pushInput(e),$.searchHistoryController.reset();try{bt(t,e,i,o)}catch(n){return pt(t,"Invalid regex: "+e),void K(t)}Z.processMotion(t,n,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:r.searchArgs.toJumplist}})}function p(e){t.scrollTo(l.left,l.top),f(e,!0,!0);var n=$.macroModeState;n.isRecording&&jt(n,e)}function g(n,r,o){var a,s,c,u=e.keyName(n);"Up"==u||"Down"==u?(a="Up"==u,s=n.target?n.target.selectionEnd:0,o(r=$.searchHistoryController.nextMatch(r,a)||""),s&&n.target&&(n.target.selectionEnd=n.target.selectionStart=Math.min(s,n.target.value.length))):"Left"!=u&&"Right"!=u&&"Ctrl"!=u&&"Alt"!=u&&"Shift"!=u&&$.searchHistoryController.reset();try{c=bt(t,r,!0,!0)}catch(n){}c?t.scrollIntoView(xt(t,!i,c),30):(St(t),t.scrollTo(l.left,l.top))}function m(n,r,i){var o=e.keyName(n);"Esc"==o||"Ctrl-C"==o||"Ctrl-["==o||"Backspace"==o&&""==r?($.searchHistoryController.pushInput(r),$.searchHistoryController.reset(),bt(t,s),St(t),t.scrollTo(l.left,l.top),e.e_stop(n),K(t),i(),t.focus()):"Up"==o||"Down"==o?e.e_stop(n):"Ctrl-U"==o&&(e.e_stop(n),i(""))}},processEx:function(t,n,r){function i(e){$.exCommandHistoryController.pushInput(e),$.exCommandHistoryController.reset(),Dt.processCommand(t,e)}function o(n,r,i){var o,a,s=e.keyName(n);("Esc"==s||"Ctrl-C"==s||"Ctrl-["==s||"Backspace"==s&&""==r)&&($.exCommandHistoryController.pushInput(r),$.exCommandHistoryController.reset(),e.e_stop(n),K(t),i(),t.focus()),"Up"==s||"Down"==s?(e.e_stop(n),o="Up"==s,a=n.target?n.target.selectionEnd:0,i(r=$.exCommandHistoryController.nextMatch(r,o)||""),a&&n.target&&(n.target.selectionEnd=n.target.selectionStart=Math.min(a,n.target.value.length))):"Ctrl-U"==s?(e.e_stop(n),i("")):"Left"!=s&&"Right"!=s&&"Ctrl"!=s&&"Alt"!=s&&"Shift"!=s&&$.exCommandHistoryController.reset()}"keyToEx"==r.type?Dt.processCommand(t,r.exArgs.input):n.visualMode?vt(t,{onClose:i,prefix:":",value:"'<,'>",onKeyDown:o}):vt(t,{onClose:i,prefix:":",onKeyDown:o})},evalInput:function(e,t){var n,r,o,a=t.inputState,s=a.motion,l=a.motionArgs||{},c=a.operator,u=a.operatorArgs||{},d=a.registerName,h=t.sel,f=pe(t.visualMode?se(e,h.head):e.getCursor("head")),p=pe(t.visualMode?se(e,h.anchor):e.getCursor("anchor")),g=pe(f),m=pe(p);if(c&&this.recordLastEdit(t,a),(o=void 0!==a.repeatOverride?a.repeatOverride:a.getRepeat())>0&&l.explicitRepeat?l.repeatIsExplicit=!0:(l.noRepeat||!l.explicitRepeat&&0===o)&&(o=1,l.repeatIsExplicit=!1),a.selectedCharacter&&(l.selectedCharacter=u.selectedCharacter=a.selectedCharacter),l.repeat=o,K(e),s){var v=ee[s](e,f,l,t,a);if(t.lastMotion=ee[s],!v)return;if(l.toJumplist){var A=$.jumpList,b=A.cachedCursor;b?($e(e,b,v),delete A.cachedCursor):$e(e,f,v)}v instanceof Array?(r=v[0],n=v[1]):n=v,n||(n=pe(f)),t.visualMode?(t.visualBlock&&n.ch===1/0||(n=se(e,n)),r&&(r=se(e,r)),r=r||m,h.anchor=r,h.head=n,Me(e),Ye(e,t,"<",me(r,n)?r:n),Ye(e,t,">",me(r,n)?n:r)):c||(n=se(e,n),e.setCursor(n.line,n.ch))}if(c){if(u.lastSel){r=m;var y=u.lastSel,w=Math.abs(y.head.line-y.anchor.line),_=Math.abs(y.head.ch-y.anchor.ch);n=y.visualLine?i(m.line+w,m.ch):y.visualBlock?i(m.line+w,m.ch+_):y.head.line==y.anchor.line?i(m.line,m.ch+_):i(m.line+w,m.ch),t.visualMode=!0,t.visualLine=y.visualLine,t.visualBlock=y.visualBlock,h=t.sel={anchor:r,head:n},Me(e)}else t.visualMode&&(u.lastSel={anchor:pe(h.anchor),head:pe(h.head),visualBlock:t.visualBlock,visualLine:t.visualLine});var x,E,S,C,T;if(t.visualMode){if(x=ve(h.head,h.anchor),E=Ae(h.head,h.anchor),S=t.visualLine||u.linewise,T=Ie(e,{anchor:x,head:E},C=t.visualBlock?"block":S?"line":"char"),S){var k=T.ranges;if("block"==C)for(var O=0;O<k.length;O++)k[O].head.ch=ye(e,k[O].head.line);else"line"==C&&(k[0].head=i(k[0].head.line+1,0))}}else{if(x=pe(r||m),me(E=pe(n||g),x)){var M=x;x=E,E=M}(S=l.linewise||u.linewise)?Le(e,x,E):l.forward&&Re(e,x,E),T=Ie(e,{anchor:x,head:E},C="char",!l.inclusive||S)}e.setSelections(T.ranges,T.primary),t.lastMotion=null,u.repeat=o,u.registerName=d,u.linewise=S;var I=re[c](e,u,T.ranges,m,n);t.visualMode&&Ne(e,null!=I),I&&e.setCursor(I)}},recordLastEdit:function(e,t,n){var r=$.macroModeState;r.isPlaying||(e.lastEditInputState=t,e.lastEditActionCommand=n,r.lastInsertModeChanges.changes=[],r.lastInsertModeChanges.expectCursorActivityForChange=!1,r.lastInsertModeChanges.visualBlock=e.visualBlock?e.sel.head.line-e.sel.anchor.line:0)}},ee={moveToTopLine:function(e,t,n){var r=Tt(e).top+n.repeat-1;return i(r,Be(e.getLine(r)))},moveToMiddleLine:function(e){var t=Tt(e),n=Math.floor(.5*(t.top+t.bottom));return i(n,Be(e.getLine(n)))},moveToBottomLine:function(e,t,n){var r=Tt(e).bottom-n.repeat+1;return i(r,Be(e.getLine(r)))},expandToLine:function(e,t,n){return i(t.line+n.repeat-1,1/0)},findNext:function(e,t,n){var r=nt(e),i=r.getQuery();if(i){var o=!n.forward;return o=r.isReversed()?!o:o,_t(e,i),xt(e,o,i,n.repeat)}},findAndSelectNextInclusive:function(t,n,r,o,a){var s=nt(t),l=s.getQuery();if(l){var c=!r.forward,u=Et(t,c=s.isReversed()?!c:c,l,r.repeat,o);if(u){if(a.operator)return u;var d=u[0],h=i(u[1].line,u[1].ch-1);if(o.visualMode){(o.visualLine||o.visualBlock)&&(o.visualLine=!1,o.visualBlock=!1,e.signal(t,"vim-mode-change",{mode:"visual",subMode:""}));var f=o.sel.anchor;if(f)return s.isReversed()?r.forward?[f,d]:[f,h]:r.forward?[f,h]:[f,d]}else o.visualMode=!0,o.visualLine=!1,o.visualBlock=!1,e.signal(t,"vim-mode-change",{mode:"visual",subMode:""});return c?[h,d]:[d,h]}}},goToMark:function(e,t,n,r){var i=kt(e,r,n.selectedCharacter);return i?n.linewise?{line:i.line,ch:Be(e.getLine(i.line))}:i:null},moveToOtherHighlightedEnd:function(e,t,n,r){if(r.visualBlock&&n.sameLine){var o=r.sel;return[se(e,i(o.anchor.line,o.head.ch)),se(e,i(o.head.line,o.anchor.ch))]}return[r.sel.head,r.sel.anchor]},jumpToMark:function(e,t,n,r){for(var o=t,a=0;a<n.repeat;a++){var s=o;for(var l in r.marks)if(k(l)){var c=r.marks[l].find();if(!((n.forward?me(c,s):me(s,c))||n.linewise&&c.line==s.line)){var u=ge(s,o),d=n.forward?be(s,c,o):be(o,c,s);(u||d)&&(o=c)}}}return n.linewise&&(o=i(o.line,Be(e.getLine(o.line)))),o},moveByCharacters:function(e,t,n){var r=t,o=n.repeat,a=n.forward?r.ch+o:r.ch-o;return i(r.line,a)},moveByLines:function(e,t,n,r){var o=t,a=o.ch;switch(r.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:a=r.lastHPos;break;default:r.lastHPos=a}var s=n.repeat+(n.repeatOffset||0),l=n.forward?o.line+s:o.line-s,c=e.firstLine(),u=e.lastLine(),d=e.findPosV(o,n.forward?s:-s,"line",r.lastHSPos);return(n.forward?d.line>l:d.line<l)&&(l=d.line,a=d.ch),l<c&&o.line==c?this.moveToStartOfLine(e,t,n,r):l>u&&o.line==u?Ge(e,t,n,r,!0):(n.toFirstChar&&(a=Be(e.getLine(l)),r.lastHPos=a),r.lastHSPos=e.charCoords(i(l,a),"div").left,i(l,a))},moveByDisplayLines:function(e,t,n,r){var o=t;switch(r.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:r.lastHSPos=e.charCoords(o,"div").left}var a=n.repeat;if((l=e.findPosV(o,n.forward?a:-a,"line",r.lastHSPos)).hitSide)if(n.forward)var s={top:e.charCoords(l,"div").top+8,left:r.lastHSPos},l=e.coordsChar(s,"div");else{var c=e.charCoords(i(e.firstLine(),0),"div");c.left=r.lastHSPos,l=e.coordsChar(c,"div")}return r.lastHPos=l.ch,l},moveByPage:function(e,t,n){var r=t,i=n.repeat;return e.findPosV(r,n.forward?i:-i,"page")},moveByParagraph:function(e,t,n){var r=n.forward?1:-1;return Xe(e,t,n.repeat,r)},moveBySentence:function(e,t,n){var r=n.forward?1:-1;return Je(e,t,n.repeat,r)},moveByScroll:function(e,t,n,r){var i=e.getScrollInfo(),o=null,a=n.repeat;a||(a=i.clientHeight/(2*e.defaultTextHeight()));var s=e.charCoords(t,"local");if(n.repeat=a,!(o=ee.moveByDisplayLines(e,t,n,r)))return null;var l=e.charCoords(o,"local");return e.scrollTo(null,i.top+l.top-s.top),o},moveByWords:function(e,t,n){return We(e,t,n.repeat,!!n.forward,!!n.wordEnd,!!n.bigWord)},moveTillCharacter:function(e,t,n){var r=Ve(e,n.repeat,n.forward,n.selectedCharacter),i=n.forward?-1:1;return je(i,n),r?(r.ch+=i,r):null},moveToCharacter:function(e,t,n){var r=n.repeat;return je(0,n),Ve(e,r,n.forward,n.selectedCharacter)||t},moveToSymbol:function(e,t,n){return Qe(e,n.repeat,n.forward,n.selectedCharacter)||t},moveToColumn:function(e,t,n,r){var i=n.repeat;return r.lastHPos=i-1,r.lastHSPos=e.charCoords(t,"div").left,Ke(e,i)},moveToEol:function(e,t,n,r){return Ge(e,t,n,r,!1)},moveToFirstNonWhiteSpaceCharacter:function(e,t){var n=t;return i(n.line,Be(e.getLine(n.line)))},moveToMatchedSymbol:function(e,t){for(var n,r=t,o=r.line,a=r.ch,s=e.getLine(o);a<s.length;a++)if((n=s.charAt(a))&&O(n)){var l=e.getTokenTypeAt(i(o,a+1));if("string"!==l&&"comment"!==l)break}if(a<s.length){var c="<"===a||">"===a?/[(){}[\]<>]/:/[(){}[\]]/;return e.findMatchingBracket(i(o,a),{bracketRegex:c}).to}return r},moveToStartOfLine:function(e,t){return i(t.line,0)},moveToLineOrEdgeOfDocument:function(e,t,n){var r=n.forward?e.lastLine():e.firstLine();return n.repeatIsExplicit&&(r=n.repeat-e.getOption("firstLineNumber")),i(r,Be(e.getLine(r)))},textObjectManipulation:function(e,t,n,r){var i={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},o={"'":!0,'"':!0,"`":!0},a=n.selectedCharacter;"b"==a?a="(":"B"==a&&(a="{");var s,l=!n.textObjectInner;if(i[a])s=Ze(e,t,a,l);else if(o[a])s=et(e,t,a,l);else if("W"===a)s=Pe(e,l,!0,!0);else if("w"===a)s=Pe(e,l,!0,!1);else if("p"===a)if(s=Xe(e,t,n.repeat,0,l),n.linewise=!0,r.visualMode)r.visualLine||(r.visualLine=!0);else{var c=r.inputState.operatorArgs;c&&(c.linewise=!0),s.end.line--}else{if("t"!==a)return null;s=Fe(e,t,l)}return e.state.vim.visualMode?Oe(e,s.start,s.end):[s.start,s.end]},repeatLastCharacterSearch:function(e,t,n){var r=$.lastCharacterSearch,i=n.repeat,o=n.forward===r.forward,a=(r.increment?1:0)*(o?-1:1);e.moveH(-a,"char"),n.inclusive=!!o;var s=Ve(e,i,o,r.selectedCharacter);return s?(s.ch+=a,s):(e.moveH(a,"char"),t)}};function te(e,t){ee[e]=t}function ne(e,t){for(var n=[],r=0;r<t;r++)n.push(e);return n}var re={change:function(t,n,r){var o,a,s=t.state.vim,l=r[0].anchor,c=r[0].head;if(s.visualMode)if(n.fullLine)c.ch=Number.MAX_VALUE,c.line--,t.setSelection(l,c),a=t.getSelection(),t.replaceSelection(""),o=l;else{a=t.getSelection();var u=ne("",r.length);t.replaceSelections(u),o=ve(r[0].head,r[0].anchor)}else{a=t.getRange(l,c);var d=s.lastEditInputState||{};if("moveByWords"==d.motion&&!D(a)){var h=/\s+$/.exec(a);h&&d.motionArgs&&d.motionArgs.forward&&(c=ce(c,0,-h[0].length),a=a.slice(0,-h[0].length))}var f=new i(l.line-1,Number.MAX_VALUE),p=t.firstLine()==t.lastLine();c.line>t.lastLine()&&n.linewise&&!p?t.replaceRange("",f,c):t.replaceRange("",l,c),n.linewise&&(p||(t.setCursor(f),e.commands.newlineAndIndent(t)),l.ch=Number.MAX_VALUE),o=l}$.registerController.pushText(n.registerName,"change",a,n.linewise,r.length>1),oe.enterInsertMode(t,{head:o},t.state.vim)},delete:function(e,t,n){var r,o,a=e.state.vim;if(a.visualBlock){o=e.getSelection();var s=ne("",n.length);e.replaceSelections(s),r=n[0].anchor}else{var l=n[0].anchor,c=n[0].head;t.linewise&&c.line!=e.firstLine()&&l.line==e.lastLine()&&l.line==c.line-1&&(l.line==e.firstLine()?l.ch=0:l=i(l.line-1,ye(e,l.line-1))),o=e.getRange(l,c),e.replaceRange("",l,c),r=l,t.linewise&&(r=ee.moveToFirstNonWhiteSpaceCharacter(e,l))}return $.registerController.pushText(t.registerName,"delete",o,t.linewise,a.visualBlock),se(e,r)},indent:function(e,t,n){var r=e.state.vim,i=n[0].anchor.line,o=r.visualBlock?n[n.length-1].anchor.line:n[0].head.line,a=r.visualMode?t.repeat:1;t.linewise&&o--;for(var s=i;s<=o;s++)for(var l=0;l<a;l++)e.indentLine(s,t.indentRight);return ee.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},indentAuto:function(e,t,n){return e.execCommand("indentAuto"),ee.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},changeCase:function(e,t,n,r,i){for(var o=e.getSelections(),a=[],s=t.toLower,l=0;l<o.length;l++){var c=o[l],u="";if(!0===s)u=c.toLowerCase();else if(!1===s)u=c.toUpperCase();else for(var d=0;d<c.length;d++){var h=c.charAt(d);u+=I(h)?h.toLowerCase():h.toUpperCase()}a.push(u)}return e.replaceSelections(a),t.shouldMoveCursor?i:!e.state.vim.visualMode&&t.linewise&&n[0].anchor.line+1==n[0].head.line?ee.moveToFirstNonWhiteSpaceCharacter(e,r):t.linewise?r:ve(n[0].anchor,n[0].head)},yank:function(e,t,n,r){var i=e.state.vim,o=e.getSelection(),a=i.visualMode?ve(i.sel.anchor,i.sel.head,n[0].head,n[0].anchor):r;return $.registerController.pushText(t.registerName,"yank",o,t.linewise,i.visualBlock),a}};function ie(e,t){re[e]=t}var oe={jumpListWalk:function(e,t,n){if(!n.visualMode){var r=t.repeat,i=t.forward,o=$.jumpList.move(e,i?r:-r),a=o?o.find():void 0;a=a||e.getCursor(),e.setCursor(a)}},scroll:function(e,t,n){if(!n.visualMode){var r=t.repeat||1,i=e.defaultTextHeight(),o=e.getScrollInfo().top,a=i*r,s=t.forward?o+a:o-a,l=pe(e.getCursor()),c=e.charCoords(l,"local");if(t.forward)s>c.top?(l.line+=(s-c.top)/i,l.line=Math.ceil(l.line),e.setCursor(l),c=e.charCoords(l,"local"),e.scrollTo(null,c.top)):e.scrollTo(null,s);else{var u=s+e.getScrollInfo().clientHeight;u<c.bottom?(l.line-=(c.bottom-u)/i,l.line=Math.floor(l.line),e.setCursor(l),c=e.charCoords(l,"local"),e.scrollTo(null,c.bottom-e.getScrollInfo().clientHeight)):e.scrollTo(null,s)}}},scrollToCursor:function(e,t){var n=e.getCursor().line,r=e.charCoords(i(n,0),"local"),o=e.getScrollInfo().clientHeight,a=r.top,s=r.bottom-a;switch(t.position){case"center":a=a-o/2+s;break;case"bottom":a=a-o+s}e.scrollTo(null,a)},replayMacro:function(e,t,n){var r=t.selectedCharacter,i=t.repeat,o=$.macroModeState;for("@"==r?r=o.latestRegister:o.latestRegister=r;i--;)Pt(e,n,o,r)},enterMacroRecordMode:function(e,t){var n=$.macroModeState,r=t.selectedCharacter;$.registerController.isValidRegister(r)&&n.enterMacroRecordMode(e,r)},toggleOverwrite:function(t){t.state.overwrite?(t.toggleOverwrite(!1),t.setOption("keyMap","vim-insert"),e.signal(t,"vim-mode-change",{mode:"insert"})):(t.toggleOverwrite(!0),t.setOption("keyMap","vim-replace"),e.signal(t,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(t,n,r){if(!t.getOption("readOnly")){r.insertMode=!0,r.insertModeRepeat=n&&n.repeat||1;var o=n?n.insertAt:null,a=r.sel,s=n.head||t.getCursor("head"),l=t.listSelections().length;if("eol"==o)s=i(s.line,ye(t,s.line));else if("bol"==o)s=i(s.line,0);else if("charAfter"==o)s=ce(s,0,1);else if("firstNonBlank"==o)s=ee.moveToFirstNonWhiteSpaceCharacter(t,s);else if("startOfSelectedArea"==o){if(!r.visualMode)return;r.visualBlock?(s=i(Math.min(a.head.line,a.anchor.line),Math.min(a.head.ch,a.anchor.ch)),l=Math.abs(a.head.line-a.anchor.line)+1):s=a.head.line<a.anchor.line?a.head:i(a.anchor.line,0)}else if("endOfSelectedArea"==o){if(!r.visualMode)return;r.visualBlock?(s=i(Math.min(a.head.line,a.anchor.line),Math.max(a.head.ch+1,a.anchor.ch)),l=Math.abs(a.head.line-a.anchor.line)+1):s=a.head.line>=a.anchor.line?ce(a.head,0,1):i(a.anchor.line,0)}else if("inplace"==o){if(r.visualMode)return}else"lastEdit"==o&&(s=Ot(t)||s);t.setOption("disableInput",!1),n&&n.replace?(t.toggleOverwrite(!0),t.setOption("keyMap","vim-replace"),e.signal(t,"vim-mode-change",{mode:"replace"})):(t.toggleOverwrite(!1),t.setOption("keyMap","vim-insert"),e.signal(t,"vim-mode-change",{mode:"insert"})),$.macroModeState.isPlaying||(t.on("change",Ht),e.on(t.getInputField(),"keydown",Vt)),r.visualMode&&Ne(t),Se(t,s,l)}},toggleVisualMode:function(t,n,r){var o,a=n.repeat,s=t.getCursor();r.visualMode?r.visualLine^n.linewise||r.visualBlock^n.blockwise?(r.visualLine=!!n.linewise,r.visualBlock=!!n.blockwise,e.signal(t,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""}),Me(t)):Ne(t):(r.visualMode=!0,r.visualLine=!!n.linewise,r.visualBlock=!!n.blockwise,o=se(t,i(s.line,s.ch+a-1)),r.sel={anchor:s,head:o},e.signal(t,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""}),Me(t),Ye(t,r,"<",ve(s,o)),Ye(t,r,">",Ae(s,o)))},reselectLastSelection:function(t,n,r){var i=r.lastSelection;if(r.visualMode&&ke(t,r),i){var o=i.anchorMark.find(),a=i.headMark.find();if(!o||!a)return;r.sel={anchor:o,head:a},r.visualMode=!0,r.visualLine=i.visualLine,r.visualBlock=i.visualBlock,Me(t),Ye(t,r,"<",ve(o,a)),Ye(t,r,">",Ae(o,a)),e.signal(t,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""})}},joinLines:function(e,t,n){var r,o;if(n.visualMode){if(r=e.getCursor("anchor"),me(o=e.getCursor("head"),r)){var a=o;o=r,r=a}o.ch=ye(e,o.line)-1}else{var s=Math.max(t.repeat,2);r=e.getCursor(),o=se(e,i(r.line+s-1,1/0))}for(var l=0,c=r.line;c<o.line;c++){l=ye(e,r.line),a=i(r.line+1,ye(e,r.line+1));var u=e.getRange(r,a);u=t.keepSpaces?u.replace(/\n\r?/g,""):u.replace(/\n\s*/g," "),e.replaceRange(u,r,a)}var d=i(r.line,l);n.visualMode&&Ne(e,!1),e.setCursor(d)},newLineAndEnterInsertMode:function(t,n,r){r.insertMode=!0;var o=pe(t.getCursor());o.line!==t.firstLine()||n.after?(o.line=n.after?o.line:o.line-1,o.ch=ye(t,o.line),t.setCursor(o),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(t)):(t.replaceRange("\n",i(t.firstLine(),0)),t.setCursor(t.firstLine(),0)),this.enterInsertMode(t,{repeat:n.repeat},r)},paste:function(e,t,n){var r=pe(e.getCursor()),o=$.registerController.getRegister(t.registerName);if(f=o.toString()){if(t.matchIndent){var a=e.getOption("tabSize"),s=function(e){var t=e.split("\t").length-1,n=e.split(" ").length-1;return t*a+1*n},l=e.getLine(e.getCursor().line),c=s(l.match(/^\s*/)[0]),u=f.replace(/\n$/,""),d=f!==u,h=s(f.match(/^\s*/)[0]),f=u.replace(/^\s*/gm,function(t){var n=c+(s(t)-h);if(n<0)return"";if(e.getOption("indentWithTabs")){var r=Math.floor(n/a);return Array(r+1).join("\t")}return Array(n+1).join(" ")});f+=d?"\n":""}t.repeat>1&&(f=Array(t.repeat+1).join(f));var p,g,m=o.linewise,v=o.blockwise;if(v){f=f.split("\n"),m&&f.pop();for(var A=0;A<f.length;A++)f[A]=""==f[A]?" ":f[A];r.ch+=t.after?1:0,r.ch=Math.min(ye(e,r.line),r.ch)}else m?n.visualMode?f=n.visualLine?f.slice(0,-1):"\n"+f.slice(0,f.length-1)+"\n":t.after?(f="\n"+f.slice(0,f.length-1),r.ch=ye(e,r.line)):r.ch=0:r.ch+=t.after?1:0;if(n.visualMode){var b;n.lastPastedText=f;var y=Te(e,n),w=y[0],_=y[1],x=e.getSelection(),E=e.listSelections(),S=new Array(E.length).join("1").split("1");n.lastSelection&&(b=n.lastSelection.headMark.find()),$.registerController.unnamedRegister.setText(x),v?(e.replaceSelections(S),_=i(w.line+f.length-1,w.ch),e.setCursor(w),Ee(e,_),e.replaceSelections(f),p=w):n.visualBlock?(e.replaceSelections(S),e.setCursor(w),e.replaceRange(f,w,w),p=w):(e.replaceRange(f,w,_),p=e.posFromIndex(e.indexFromPos(w)+f.length-1)),b&&(n.lastSelection.headMark=e.setBookmark(b)),m&&(p.ch=0)}else if(v){for(e.setCursor(r),A=0;A<f.length;A++){var C=r.line+A;C>e.lastLine()&&e.replaceRange("\n",i(C,0)),ye(e,C)<r.ch&&xe(e,C,r.ch)}e.setCursor(r),Ee(e,i(r.line+f.length-1,r.ch)),e.replaceSelections(f),p=r}else e.replaceRange(f,r),m&&t.after?p=i(r.line+1,Be(e.getLine(r.line+1))):m&&!t.after?p=i(r.line,Be(e.getLine(r.line))):!m&&t.after?(g=e.indexFromPos(r),p=e.posFromIndex(g+f.length-1)):(g=e.indexFromPos(r),p=e.posFromIndex(g+f.length));n.visualMode&&Ne(e,!1),e.setCursor(p)}},undo:function(t,n){t.operation(function(){fe(t,e.commands.undo,n.repeat)(),t.setCursor(t.getCursor("anchor"))})},redo:function(t,n){fe(t,e.commands.redo,n.repeat)()},setRegister:function(e,t,n){n.inputState.registerName=t.selectedCharacter},setMark:function(e,t,n){Ye(e,n,t.selectedCharacter,e.getCursor())},replace:function(t,n,r){var o,a,s=n.selectedCharacter,l=t.getCursor(),c=t.listSelections();if(r.visualMode)l=t.getCursor("start"),a=t.getCursor("end");else{var u=t.getLine(l.line);(o=l.ch+n.repeat)>u.length&&(o=u.length),a=i(l.line,o)}if("\n"==s)r.visualMode||t.replaceRange("",l,a),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(t);else{var d=t.getRange(l,a);if(d=d.replace(/[^\n]/g,s),r.visualBlock){var h=new Array(t.getOption("tabSize")+1).join(" ");d=(d=t.getSelection()).replace(/\t/g,h).replace(/[^\n]/g,s).split("\n"),t.replaceSelections(d)}else t.replaceRange(d,l,a);r.visualMode?(l=me(c[0].anchor,c[0].head)?c[0].anchor:c[0].head,t.setCursor(l),Ne(t,!1)):t.setCursor(ce(a,0,-1))}},incrementNumberToken:function(e,t){for(var n,r,o,a,s=e.getCursor(),l=e.getLine(s.line),c=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi;null!==(n=c.exec(l))&&(o=(r=n.index)+n[0].length,!(s.ch<o)););if((t.backtrack||!(o<=s.ch))&&n){var u=n[2]||n[4],d=n[3]||n[5],h=t.increase?1:-1,f={"0b":2,0:8,"":10,"0x":16}[u.toLowerCase()];a=(parseInt(n[1]+d,f)+h*t.repeat).toString(f);var p=u?new Array(d.length-a.length+1+n[1].length).join("0"):"";a="-"===a.charAt(0)?"-"+u+p+a.substr(1):u+p+a;var g=i(s.line,r),m=i(s.line,o);e.replaceRange(a,g,m),e.setCursor(i(s.line,r+a.length-1))}},repeatLastEdit:function(e,t,n){if(n.lastEditInputState){var r=t.repeat;r&&t.repeatIsExplicit?n.lastEditInputState.repeatOverride=r:r=n.lastEditInputState.repeatOverride||r,Kt(e,n,r,!1)}},indent:function(e,t){e.indentLine(e.getCursor().line,t.indentRight)},exitInsertMode:Rt};function ae(e,t){oe[e]=t}function se(e,t){var n=e.state.vim,r=n.insertMode||n.visualMode,o=Math.min(Math.max(e.firstLine(),t.line),e.lastLine()),a=ye(e,o)-1+!!r,s=Math.min(Math.max(0,t.ch),a);return i(o,s)}function le(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function ce(e,t,n){return"object"==typeof t&&(n=t.ch,t=t.line),i(e.line+t,e.ch+n)}function ue(e,t,n,r){for(var i,o=[],a=[],s=0;s<t.length;s++){var l=t[s];"insert"==n&&"insert"!=l.context||l.context&&l.context!=n||r.operator&&"action"==l.type||!(i=de(e,l.keys))||("partial"==i&&o.push(l),"full"==i&&a.push(l))}return{partial:o.length&&o,full:a.length&&a}}function de(e,t){if("<character>"==t.slice(-11)){var n=t.length-11,r=e.slice(0,n),i=t.slice(0,n);return r==i&&e.length>n?"full":0==i.indexOf(r)&&"partial"}return e==t?"full":0==t.indexOf(e)&&"partial"}function he(e){var t=/^.*(<[^>]+>)$/.exec(e),n=t?t[1]:e.slice(-1);if(n.length>1)switch(n){case"<CR>":n="\n";break;case"<Space>":n=" ";break;default:n=""}return n}function fe(e,t,n){return function(){for(var r=0;r<n;r++)t(e)}}function pe(e){return i(e.line,e.ch)}function ge(e,t){return e.ch==t.ch&&e.line==t.line}function me(e,t){return e.line<t.line||e.line==t.line&&e.ch<t.ch}function ve(e,t){return arguments.length>2&&(t=ve.apply(void 0,Array.prototype.slice.call(arguments,1))),me(e,t)?e:t}function Ae(e,t){return arguments.length>2&&(t=Ae.apply(void 0,Array.prototype.slice.call(arguments,1))),me(e,t)?t:e}function be(e,t,n){var r=me(e,t),i=me(t,n);return r&&i}function ye(e,t){return e.getLine(t).length}function we(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function _e(e){return e.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function xe(e,t,n){var r=ye(e,t),o=new Array(n-r+1).join(" ");e.setCursor(i(t,r)),e.replaceRange(o,e.getCursor())}function Ee(e,t){var n=[],r=e.listSelections(),o=pe(e.clipPos(t)),a=!ge(t,o),s=Ce(r,e.getCursor("head")),l=ge(r[s].head,r[s].anchor),c=r.length-1,u=c-s>s?c:0,d=r[u].anchor,h=Math.min(d.line,o.line),f=Math.max(d.line,o.line),p=d.ch,g=o.ch,m=r[u].head.ch-p,v=g-p;m>0&&v<=0?(p++,a||g--):m<0&&v>=0?(p--,l||g++):m<0&&-1==v&&(p--,g++);for(var A=h;A<=f;A++){var b={anchor:new i(A,p),head:new i(A,g)};n.push(b)}return e.setSelections(n),t.ch=g,d.ch=p,d}function Se(e,t,n){for(var r=[],i=0;i<n;i++){var o=ce(t,i,0);r.push({anchor:o,head:o})}e.setSelections(r,0)}function Ce(e,t,n){for(var r=0;r<e.length;r++){var i=ge(e[r].anchor,t),o=ge(e[r].head,t);if(i||o)return r}return-1}function Te(e,t){var n=t.lastSelection,r=function(){var t=e.listSelections(),n=t[0],r=t[t.length-1];return[me(n.anchor,n.head)?n.anchor:n.head,me(r.anchor,r.head)?r.head:r.anchor]},o=function(){var t=e.getCursor(),r=e.getCursor(),o=n.visualBlock;if(o){var a=o.width,s=o.height;r=i(t.line+s,t.ch+a);for(var l=[],c=t.line;c<r.line;c++){var u={anchor:i(c,t.ch),head:i(c,r.ch)};l.push(u)}e.setSelections(l)}else{var d=n.anchorMark.find(),h=n.headMark.find(),f=h.line-d.line,p=h.ch-d.ch;r={line:r.line+f,ch:f?r.ch:p+r.ch},n.visualLine&&(t=i(t.line,0),r=i(r.line,ye(e,r.line))),e.setSelection(t,r)}return[t,r]};return t.visualMode?r():o()}function ke(e,t){var n=t.sel.anchor,r=t.sel.head;t.lastPastedText&&(r=e.posFromIndex(e.indexFromPos(n)+t.lastPastedText.length),t.lastPastedText=null),t.lastSelection={anchorMark:e.setBookmark(n),headMark:e.setBookmark(r),anchor:pe(n),head:pe(r),visualMode:t.visualMode,visualLine:t.visualLine,visualBlock:t.visualBlock}}function Oe(e,t,n){var r,o=e.state.vim.sel,a=o.head,s=o.anchor;return me(n,t)&&(r=n,n=t,t=r),me(a,s)?(a=ve(t,a),s=Ae(s,n)):(s=ve(t,s),-1==(a=ce(a=Ae(a,n),0,-1)).ch&&a.line!=e.firstLine()&&(a=i(a.line-1,ye(e,a.line-1)))),[s,a]}function Me(e,t,n){var r=e.state.vim,i=Ie(e,t=t||r.sel,n=n||r.visualLine?"line":r.visualBlock?"block":"char");e.setSelections(i.ranges,i.primary),Qt(e)}function Ie(e,t,n,r){var o=pe(t.head),a=pe(t.anchor);if("char"==n){var s=r||me(t.head,t.anchor)?0:1,l=me(t.head,t.anchor)?1:0;return o=ce(t.head,0,s),{ranges:[{anchor:a=ce(t.anchor,0,l),head:o}],primary:0}}if("line"==n){if(me(t.head,t.anchor))o.ch=0,a.ch=ye(e,a.line);else{a.ch=0;var c=e.lastLine();o.line>c&&(o.line=c),o.ch=ye(e,o.line)}return{ranges:[{anchor:a,head:o}],primary:0}}if("block"==n){for(var u=Math.min(a.line,o.line),d=Math.min(a.ch,o.ch),h=Math.max(a.line,o.line),f=Math.max(a.ch,o.ch)+1,p=h-u+1,g=o.line==u?0:p-1,m=[],v=0;v<p;v++)m.push({anchor:i(u+v,d),head:i(u+v,f)});return{ranges:m,primary:g}}}function De(e){var t=e.getCursor("head");return 1==e.getSelection().length&&(t=ve(t,e.getCursor("anchor"))),t}function Ne(t,n){var r=t.state.vim;!1!==n&&t.setCursor(se(t,r.sel.head)),ke(t,r),r.visualMode=!1,r.visualLine=!1,r.visualBlock=!1,r.insertMode||e.signal(t,"vim-mode-change",{mode:"normal"}),zt(r)}function Re(e,t,n){var r=e.getRange(t,n);if(/\n\s*$/.test(r)){var i=r.split("\n");i.pop();for(var o=i.pop();i.length>0&&o&&D(o);o=i.pop())n.line--,n.ch=0;o?(n.line--,n.ch=ye(e,n.line)):n.ch=0}}function Le(e,t,n){t.ch=0,n.ch=0,n.line++}function Be(e){if(!e)return 0;var t=e.search(/\S/);return-1==t?e.length:t}function Pe(e,t,n,r,o){for(var a=De(e),s=e.getLine(a.line),l=a.ch,c=o?b[0]:y[0];!c(s.charAt(l));)if(++l>=s.length)return null;r?c=y[0]:(c=b[0])(s.charAt(l))||(c=b[1]);for(var u=l,d=l;c(s.charAt(u))&&u<s.length;)u++;for(;c(s.charAt(d))&&d>=0;)d--;if(d++,t){for(var h=u;/\s/.test(s.charAt(u))&&u<s.length;)u++;if(h==u){for(var f=d;/\s/.test(s.charAt(d-1))&&d>0;)d--;d||(d=f)}}return{start:i(a.line,d),end:i(a.line,u)}}function Fe(t,n,r){var i=n;if(!e.findMatchingTag||!e.findEnclosingTag)return{start:i,end:i};var o=e.findMatchingTag(t,n)||e.findEnclosingTag(t,n);return o&&o.open&&o.close?r?{start:o.open.from,end:o.close.to}:{start:o.open.to,end:o.close.from}:{start:i,end:i}}function $e(e,t,n){ge(t,n)||$.jumpList.add(e,t,n)}function je(e,t){$.lastCharacterSearch.increment=e,$.lastCharacterSearch.forward=t.forward,$.lastCharacterSearch.selectedCharacter=t.selectedCharacter}var He={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},Ue={bracket:{isComplete:function(e){if(e.nextCh===e.symb){if(e.depth++,e.depth>=1)return!0}else e.nextCh===e.reverseSymb&&e.depth--;return!1}},section:{init:function(e){e.curMoveThrough=!0,e.symb=(e.forward?"]":"[")===e.symb?"{":"}"},isComplete:function(e){return 0===e.index&&e.nextCh===e.symb}},comment:{isComplete:function(e){var t="*"===e.lastCh&&"/"===e.nextCh;return e.lastCh=e.nextCh,t}},method:{init:function(e){e.symb="m"===e.symb?"{":"}",e.reverseSymb="{"===e.symb?"}":"{"},isComplete:function(e){return e.nextCh===e.symb}},preprocess:{init:function(e){e.index=0},isComplete:function(e){if("#"===e.nextCh){var t=e.lineText.match(/#(\w+)/)[1];if("endif"===t){if(e.forward&&0===e.depth)return!0;e.depth++}else if("if"===t){if(!e.forward&&0===e.depth)return!0;e.depth--}if("else"===t&&0===e.depth)return!0}return!1}}};function Qe(e,t,n,r){var o=pe(e.getCursor()),a=n?1:-1,s=n?e.lineCount():-1,l=o.ch,c=o.line,u=e.getLine(c),d={lineText:u,nextCh:u.charAt(l),lastCh:null,index:l,symb:r,reverseSymb:(n?{")":"(","}":"{"}:{"(":")","{":"}"})[r],forward:n,depth:0,curMoveThrough:!1},h=He[r];if(!h)return o;var f=Ue[h].init,p=Ue[h].isComplete;for(f&&f(d);c!==s&&t;){if(d.index+=a,d.nextCh=d.lineText.charAt(d.index),!d.nextCh){if(c+=a,d.lineText=e.getLine(c)||"",a>0)d.index=0;else{var g=d.lineText.length;d.index=g>0?g-1:0}d.nextCh=d.lineText.charAt(d.index)}p(d)&&(o.line=c,o.ch=d.index,t--)}return d.nextCh||d.curMoveThrough?i(c,d.index):o}function ze(e,t,n,r,i){var o=t.line,a=t.ch,s=e.getLine(o),l=n?1:-1,c=r?y:b;if(i&&""==s){if(o+=l,s=e.getLine(o),!T(e,o))return null;a=n?0:s.length}for(;;){if(i&&""==s)return{from:0,to:0,line:o};for(var u=l>0?s.length:-1,d=u,h=u;a!=u;){for(var f=!1,p=0;p<c.length&&!f;++p)if(c[p](s.charAt(a))){for(d=a;a!=u&&c[p](s.charAt(a));)a+=l;if(f=d!=(h=a),d==t.ch&&o==t.line&&h==d+l)continue;return{from:Math.min(d,h+1),to:Math.max(d,h),line:o}}f||(a+=l)}if(!T(e,o+=l))return null;s=e.getLine(o),a=l>0?0:s.length}}function We(e,t,n,r,o,a){var s=pe(t),l=[];(r&&!o||!r&&o)&&n++;for(var c=!(r&&o),u=0;u<n;u++){var d=ze(e,t,r,a,c);if(!d){var h=ye(e,e.lastLine());l.push(r?{line:e.lastLine(),from:h,to:h}:{line:0,from:0,to:0});break}l.push(d),t=i(d.line,r?d.to-1:d.from)}var f=l.length!=n,p=l[0],g=l.pop();return r&&!o?(f||p.from==s.ch&&p.line==s.line||(g=l.pop()),i(g.line,g.from)):r&&o?i(g.line,g.to-1):!r&&o?(f||p.to==s.ch&&p.line==s.line||(g=l.pop()),i(g.line,g.to)):i(g.line,g.from)}function Ge(e,t,n,r,o){var a=i(t.line+n.repeat-1,1/0),s=e.clipPos(a);return s.ch--,o||(r.lastHPos=1/0,r.lastHSPos=e.charCoords(s,"div").left),a}function Ve(e,t,n,r){for(var o,a=e.getCursor(),s=a.ch,l=0;l<t;l++){if(-1==(o=qe(s,e.getLine(a.line),r,n)))return null;s=o}return i(e.getCursor().line,o)}function Ke(e,t){var n=e.getCursor().line;return se(e,i(n,t-1))}function Ye(e,t,n,r){R(n,S)&&(t.marks[n]&&t.marks[n].clear(),t.marks[n]=e.setBookmark(r))}function qe(e,t,n,r,i){return r?t.indexOf(n,e+1):t.lastIndexOf(n,e-1)}function Xe(e,t,n,r,o){var a,s=t.line,l=e.firstLine(),c=e.lastLine(),u=s;function d(t){return!e.getLine(t)}function h(e,t,n){return n?d(e)!=d(e+t):!d(e)&&d(e+t)}if(r){for(;l<=u&&u<=c&&n>0;)h(u,r)&&n--,u+=r;return new i(u,0)}var f=e.state.vim;if(f.visualLine&&h(s,1,!0)){var p=f.sel.anchor;h(p.line,-1,!0)&&(o&&p.line==s||(s+=1))}var g=d(s);for(u=s;u<=c&&n;u++)h(u,1,!0)&&(o&&d(u)==g||n--);for(a=new i(u,0),u>c&&!g?g=!0:o=!1,u=s;u>l&&(o&&d(u)!=g&&u!=s||!h(u,-1,!0));u--);return{start:new i(u,0),end:a}}function Je(e,t,n,r){function o(e,t){if(t.pos+t.dir<0||t.pos+t.dir>=t.line.length){if(t.ln+=t.dir,!T(e,t.ln))return t.line=null,t.ln=null,void(t.pos=null);t.line=e.getLine(t.ln),t.pos=t.dir>0?0:t.line.length-1}else t.pos+=t.dir}function a(e,t,n,r){var i=""===(c=e.getLine(t)),a={line:c,ln:t,pos:n,dir:r},s={ln:a.ln,pos:a.pos},l=""===a.line;for(o(e,a);null!==a.line;){if(s.ln=a.ln,s.pos=a.pos,""===a.line&&!l)return{ln:a.ln,pos:a.pos};if(i&&""!==a.line&&!D(a.line[a.pos]))return{ln:a.ln,pos:a.pos};!N(a.line[a.pos])||i||a.pos!==a.line.length-1&&!D(a.line[a.pos+1])||(i=!0),o(e,a)}var c=e.getLine(s.ln);s.pos=0;for(var u=c.length-1;u>=0;--u)if(!D(c[u])){s.pos=u;break}return s}function s(e,t,n,r){var i={line:l=e.getLine(t),ln:t,pos:n,dir:r},a={ln:i.ln,pos:null},s=""===i.line;for(o(e,i);null!==i.line;){if(""===i.line&&!s)return null!==a.pos?a:{ln:i.ln,pos:i.pos};if(N(i.line[i.pos])&&null!==a.pos&&(i.ln!==a.ln||i.pos+1!==a.pos))return a;""===i.line||D(i.line[i.pos])||(s=!1,a={ln:i.ln,pos:i.pos}),o(e,i)}var l=e.getLine(a.ln);a.pos=0;for(var c=0;c<l.length;++c)if(!D(l[c])){a.pos=c;break}return a}for(var l={ln:t.line,pos:t.ch};n>0;)l=r<0?s(e,l.ln,l.pos,r):a(e,l.ln,l.pos,r),n--;return i(l.ln,l.pos)}function Ze(e,t,n,r){var o,a,s=t,l={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[n],c={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[n],u=e.getLine(s.line).charAt(s.ch)===c?1:0;if(o=e.scanForBracket(i(s.line,s.ch+u),-1,void 0,{bracketRegex:l}),a=e.scanForBracket(i(s.line,s.ch+u),1,void 0,{bracketRegex:l}),!o||!a)return{start:s,end:s};if(o=o.pos,a=a.pos,o.line==a.line&&o.ch>a.ch||o.line>a.line){var d=o;o=a,a=d}return r?a.ch+=1:o.ch+=1,{start:o,end:a}}function et(e,t,n,r){var o,a,s,l,c=pe(t),u=e.getLine(c.line).split(""),d=u.indexOf(n);if(c.ch<d?c.ch=d:d<c.ch&&u[c.ch]==n&&(a=c.ch,--c.ch),u[c.ch]!=n||a)for(s=c.ch;s>-1&&!o;s--)u[s]==n&&(o=s+1);else o=c.ch+1;if(o&&!a)for(s=o,l=u.length;s<l&&!a;s++)u[s]==n&&(a=s);return o&&a?(r&&(--o,++a),{start:i(c.line,o),end:i(c.line,a)}):{start:c,end:c}}function tt(){}function nt(e){var t=e.state.vim;return t.searchState_||(t.searchState_=new tt)}function rt(e,t,n,r,i){e.openDialog?e.openDialog(t,r,{bottom:!0,value:i.value,onKeyDown:i.onKeyDown,onKeyUp:i.onKeyUp,selectValueOnOpen:!1}):r(prompt(n,""))}function it(e){return at(e,"/")}function ot(e){return st(e,"/")}function at(e,t){var n=st(e,t)||[];if(!n.length)return[];var r=[];if(0===n[0]){for(var i=0;i<n.length;i++)"number"==typeof n[i]&&r.push(e.substring(n[i]+1,n[i+1]));return r}}function st(e,t){t||(t="/");for(var n=!1,r=[],i=0;i<e.length;i++){var o=e.charAt(i);n||o!=t||r.push(i),n=!n&&"\\"==o}return r}function lt(e){for(var t="|(){",n="}",r=!1,i=[],o=-1;o<e.length;o++){var a=e.charAt(o)||"",s=e.charAt(o+1)||"",l=s&&-1!=t.indexOf(s);r?("\\"===a&&l||i.push(a),r=!1):"\\"===a?(r=!0,s&&-1!=n.indexOf(s)&&(l=!0),l&&"\\"!==s||i.push(a)):(i.push(a),l&&"\\"!==s&&i.push("\\"))}return i.join("")}B("pcre",!0,"boolean"),tt.prototype={getQuery:function(){return $.query},setQuery:function(e){$.query=e},getOverlay:function(){return this.searchOverlay},setOverlay:function(e){this.searchOverlay=e},isReversed:function(){return $.isReversed},setReversed:function(e){$.isReversed=e},getScrollbarAnnotate:function(){return this.annotate},setScrollbarAnnotate:function(e){this.annotate=e}};var ct={"\\n":"\n","\\r":"\r","\\t":"\t"};function ut(e){for(var t=!1,n=[],r=-1;r<e.length;r++){var i=e.charAt(r)||"",o=e.charAt(r+1)||"";ct[i+o]?(n.push(ct[i+o]),r++):t?(n.push(i),t=!1):"\\"===i?(t=!0,M(o)||"$"===o?n.push("$"):"/"!==o&&"\\"!==o&&n.push("\\")):("$"===i&&n.push("$"),n.push(i),"/"===o&&n.push("\\"))}return n.join("")}var dt={"\\/":"/","\\\\":"\\","\\n":"\n","\\r":"\r","\\t":"\t","\\&":"&"};function ht(t){for(var n=new e.StringStream(t),r=[];!n.eol();){for(;n.peek()&&"\\"!=n.peek();)r.push(n.next());var i=!1;for(var o in dt)if(n.match(o,!0)){i=!0,r.push(dt[o]);break}i||r.push(n.next())}return r.join("")}function ft(e,t,n){if($.registerController.getRegister("/").setText(e),e instanceof RegExp)return e;var r,i,o=ot(e);return o.length?(r=e.substring(0,o[0]),i=-1!=e.substring(o[0]).indexOf("i")):r=e,r?(F("pcre")||(r=lt(r)),n&&(t=/^[^A-Z]*$/.test(r)),new RegExp(r,t||i?"i":void 0)):null}function pt(e,t){e.openNotification?e.openNotification('<span style="color: red">'+t+"</span>",{bottom:!0,duration:5e3}):alert(t)}function gt(e,t){var n='<span style="font-family: monospace; white-space: pre">'+(e||"")+'<input type="text" autocorrect="off" autocapitalize="off" spellcheck="false"></span>';return t&&(n+=' <span style="color: #888">'+t+"</span>"),n}var mt="(Javascript regexp)";function vt(e,t){var n=(t.prefix||"")+" "+(t.desc||"");rt(e,gt(t.prefix,t.desc),n,t.onClose,t)}function At(e,t){if(e instanceof RegExp&&t instanceof RegExp){for(var n=["global","multiline","ignoreCase","source"],r=0;r<n.length;r++){var i=n[r];if(e[i]!==t[i])return!1}return!0}return!1}function bt(e,t,n,r){if(t){var i=nt(e),o=ft(t,!!n,!!r);if(o)return _t(e,o),At(o,i.getQuery())||i.setQuery(o),o}}function yt(e){if("^"==e.source.charAt(0))var t=!0;return{token:function(n){if(!t||n.sol()){var r=n.match(e,!1);if(r)return 0==r[0].length?(n.next(),"searching"):n.sol()||(n.backUp(1),e.exec(n.next()+r[0]))?(n.match(e),"searching"):(n.next(),null);for(;!n.eol()&&(n.next(),!n.match(e,!1)););}else n.skipToEnd()},query:e}}var wt=0;function _t(e,t){clearTimeout(wt),wt=setTimeout(function(){var n=nt(e),r=n.getOverlay();r&&t==r.query||(r&&e.removeOverlay(r),r=yt(t),e.addOverlay(r),e.showMatchesOnScrollbar&&(n.getScrollbarAnnotate()&&n.getScrollbarAnnotate().clear(),n.setScrollbarAnnotate(e.showMatchesOnScrollbar(t))),n.setOverlay(r))},50)}function xt(e,t,n,r){return void 0===r&&(r=1),e.operation(function(){for(var o=e.getCursor(),a=e.getSearchCursor(n,o),s=0;s<r;s++){var l=a.find(t);if(0==s&&l&&ge(a.from(),o)&&(l=a.find(t)),!l&&!(a=e.getSearchCursor(n,t?i(e.lastLine()):i(e.firstLine(),0))).find(t))return}return a.from()})}function Et(e,t,n,r,o){return void 0===r&&(r=1),e.operation(function(){var a=e.getCursor(),s=e.getSearchCursor(n,a),l=s.find(!t);!o.visualMode&&l&&ge(s.from(),a)&&s.find(!t);for(var c=0;c<r;c++)if(!(l=s.find(t))&&!(s=e.getSearchCursor(n,t?i(e.lastLine()):i(e.firstLine(),0))).find(t))return;return[s.from(),s.to()]})}function St(e){var t=nt(e);e.removeOverlay(nt(e).getOverlay()),t.setOverlay(null),t.getScrollbarAnnotate()&&(t.getScrollbarAnnotate().clear(),t.setScrollbarAnnotate(null))}function Ct(e,t,n){return"number"!=typeof e&&(e=e.line),t instanceof Array?R(e,t):n?e>=t&&e<=n:e==t}function Tt(e){var t=e.getScrollInfo(),n=6,r=10,i=e.coordsChar({left:0,top:n+t.top},"local"),o=t.clientHeight-r+t.top,a=e.coordsChar({left:0,top:o},"local");return{top:i.line,bottom:a.line}}function kt(e,t,n){if("'"==n||"`"==n)return $.jumpList.find(e,-1)||i(0,0);if("."==n)return Ot(e);var r=t.marks[n];return r&&r.find()}function Ot(e){for(var t=e.doc.history.done,n=t.length;n--;)if(t[n].changes)return pe(t[n].changes[0].to)}var Mt=function(){this.buildCommandMap_()};Mt.prototype={processCommand:function(e,t,n){var r=this;e.operation(function(){e.curOp.isVimOp=!0,r._processCommand(e,t,n)})},_processCommand:function(t,n,r){var i=t.state.vim,o=$.registerController.getRegister(":"),a=o.toString();i.visualMode&&Ne(t);var s=new e.StringStream(n);o.setText(n);var l,c,u=r||{};u.input=n;try{this.parseInput_(t,s,u)}catch(e){throw pt(t,e),e}if(u.commandName){if(l=this.matchCommand_(u.commandName)){if(c=l.name,l.excludeFromCommandHistory&&o.setText(a),this.parseCommandArgs_(s,u,l),"exToKey"==l.type){for(var d=0;d<l.toKeys.length;d++)e.Vim.handleKey(t,l.toKeys[d],"mapping");return}if("exToEx"==l.type)return void this.processCommand(t,l.toInput)}}else void 0!==u.line&&(c="move");if(c)try{It[c](t,u),l&&l.possiblyAsync||!u.callback||u.callback()}catch(e){throw pt(t,e),e}else pt(t,'Not an editor command ":'+n+'"')},parseInput_:function(e,t,n){t.eatWhile(":"),t.eat("%")?(n.line=e.firstLine(),n.lineEnd=e.lastLine()):(n.line=this.parseLineSpec_(e,t),void 0!==n.line&&t.eat(",")&&(n.lineEnd=this.parseLineSpec_(e,t)));var r=t.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return n.commandName=r?r[1]:t.match(/.*/)[0],n},parseLineSpec_:function(e,t){var n=t.match(/^(\d+)/);if(n)return parseInt(n[1],10)-1;switch(t.next()){case".":return this.parseLineSpecOffset_(t,e.getCursor().line);case"$":return this.parseLineSpecOffset_(t,e.lastLine());case"'":var r=t.next(),i=kt(e,e.state.vim,r);if(!i)throw new Error("Mark not set");return this.parseLineSpecOffset_(t,i.line);case"-":case"+":return t.backUp(1),this.parseLineSpecOffset_(t,e.getCursor().line);default:return void t.backUp(1)}},parseLineSpecOffset_:function(e,t){var n=e.match(/^([+-])?(\d+)/);if(n){var r=parseInt(n[2],10);"-"==n[1]?t-=r:t+=r}return t},parseCommandArgs_:function(e,t,n){if(!e.eol()){t.argString=e.match(/.*/)[0];var r=n.argDelimiter||/\s+/,i=we(t.argString).split(r);i.length&&i[0]&&(t.args=i)}},matchCommand_:function(e){for(var t=e.length;t>0;t--){var n=e.substring(0,t);if(this.commandMap_[n]){var r=this.commandMap_[n];if(0===r.name.indexOf(e))return r}}return null},buildCommandMap_:function(){this.commandMap_={};for(var e=0;e<r.length;e++){var t=r[e],n=t.shortName||t.name;this.commandMap_[n]=t}},map:function(e,n,r){if(":"!=e&&":"==e.charAt(0)){if(r)throw Error("Mode not supported for ex mappings");var i=e.substring(1);":"!=n&&":"==n.charAt(0)?this.commandMap_[i]={name:i,type:"exToEx",toInput:n.substring(1),user:!0}:this.commandMap_[i]={name:i,type:"exToKey",toKeys:n,user:!0}}else if(":"!=n&&":"==n.charAt(0)){var o={keys:e,type:"keyToEx",exArgs:{input:n.substring(1)}};r&&(o.context=r),t.unshift(o)}else o={keys:e,type:"keyToKey",toKeys:n},r&&(o.context=r),t.unshift(o)},unmap:function(e,n){if(":"!=e&&":"==e.charAt(0)){if(n)throw Error("Mode not supported for ex mappings");var r=e.substring(1);if(this.commandMap_[r]&&this.commandMap_[r].user)return void delete this.commandMap_[r]}else for(var i=e,o=0;o<t.length;o++)if(i==t[o].keys&&t[o].context===n)return void t.splice(o,1);throw Error("No such mapping.")}};var It={colorscheme:function(e,t){!t.args||t.args.length<1?pt(e,e.getOption("theme")):e.setOption("theme",t.args[0])},map:function(e,t,n){var r=t.args;!r||r.length<2?e&&pt(e,"Invalid mapping: "+t.input):Dt.map(r[0],r[1],n)},imap:function(e,t){this.map(e,t,"insert")},nmap:function(e,t){this.map(e,t,"normal")},vmap:function(e,t){this.map(e,t,"visual")},unmap:function(e,t,n){var r=t.args;!r||r.length<1?e&&pt(e,"No such mapping: "+t.input):Dt.unmap(r[0],n)},move:function(e,t){Z.processCommand(e,e.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:t.line+1})},set:function(e,t){var n=t.args,r=t.setCfg||{};if(!n||n.length<1)e&&pt(e,"Invalid mapping: "+t.input);else{var i=n[0].split("="),o=i[0],a=i[1],s=!1;if("?"==o.charAt(o.length-1)){if(a)throw Error("Trailing characters: "+t.argString);o=o.substring(0,o.length-1),s=!0}void 0===a&&"no"==o.substring(0,2)&&(o=o.substring(2),a=!1);var l=L[o]&&"boolean"==L[o].type;if(l&&null==a&&(a=!0),!l&&void 0===a||s){var c=F(o,e,r);c instanceof Error?pt(e,c.message):pt(e,!0===c||!1===c?" "+(c?"":"no")+o:"  "+o+"="+c)}else{var u=P(o,a,e,r);u instanceof Error&&pt(e,u.message)}}},setlocal:function(e,t){t.setCfg={scope:"local"},this.set(e,t)},setglobal:function(e,t){t.setCfg={scope:"global"},this.set(e,t)},registers:function(e,t){var n=t.args,r=$.registerController.registers,i="----------Registers----------<br><br>";if(n){n=n.join("");for(var o=0;o<n.length;o++)a=n.charAt(o),$.registerController.isValidRegister(a)&&(i+='"'+a+"    "+(r[a]||new Y).toString()+"<br>")}else for(var a in r){var s=r[a].toString();s.length&&(i+='"'+a+"    "+s+"<br>")}pt(e,i)},sort:function(t,n){var r,o,a,s,l;function c(){if(n.argString){var t=new e.StringStream(n.argString);if(t.eat("!")&&(r=!0),t.eol())return;if(!t.eatSpace())return"Invalid arguments";var i=t.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!i&&!t.eol())return"Invalid arguments";if(i[1]){o=-1!=i[1].indexOf("i"),a=-1!=i[1].indexOf("u");var c=-1!=i[1].indexOf("d")||-1!=i[1].indexOf("n")&&1,u=-1!=i[1].indexOf("x")&&1,d=-1!=i[1].indexOf("o")&&1;if(c+u+d>1)return"Invalid arguments";s=(c?"decimal":u&&"hex")||d&&"octal"}i[2]&&(l=new RegExp(i[2].substr(1,i[2].length-2),o?"i":""))}}var u=c();if(u)pt(t,u+": "+n.argString);else{var d=n.line||t.firstLine(),h=n.lineEnd||n.line||t.lastLine();if(d!=h){var f=i(d,0),p=i(h,ye(t,h)),g=t.getRange(f,p).split("\n"),m=l||("decimal"==s?/(-?)([\d]+)/:"hex"==s?/(-?)(?:0x)?([0-9a-f]+)/i:"octal"==s?/([0-7]+)/:null),v="decimal"==s?10:"hex"==s?16:"octal"==s?8:null,A=[],b=[];if(s||l)for(var y=0;y<g.length;y++){var w=l?g[y].match(l):null;w&&""!=w[0]?A.push(w):!l&&m.exec(g[y])?A.push(g[y]):b.push(g[y])}else b=g;if(A.sort(l?S:E),l)for(y=0;y<A.length;y++)A[y]=A[y].input;else s||b.sort(E);if(g=r?A.concat(b):b.concat(A),a){var _,x=g;for(g=[],y=0;y<x.length;y++)x[y]!=_&&g.push(x[y]),_=x[y]}t.replaceRange(g.join("\n"),f,p)}}function E(e,t){var n;r&&(n=e,e=t,t=n),o&&(e=e.toLowerCase(),t=t.toLowerCase());var i=s&&m.exec(e),a=s&&m.exec(t);return i?(i=parseInt((i[1]+i[2]).toLowerCase(),v))-(a=parseInt((a[1]+a[2]).toLowerCase(),v)):e<t?-1:1}function S(e,t){var n;return r&&(n=e,e=t,t=n),o&&(e[0]=e[0].toLowerCase(),t[0]=t[0].toLowerCase()),e[0]<t[0]?-1:1}},global:function(e,t){var n=t.argString;if(n){var r,i=void 0!==t.line?t.line:e.firstLine(),o=t.lineEnd||t.line||e.lastLine(),a=it(n),s=n;if(a.length&&(s=a[0],r=a.slice(1,a.length).join("/")),s)try{bt(e,s,!0,!0)}catch(t){return void pt(e,"Invalid regex: "+s)}for(var l=nt(e).getQuery(),c=[],u="",d=i;d<=o;d++)l.test(e.getLine(d))&&(c.push(d+1),u+=e.getLine(d)+"<br>");if(r){var h=0,f=function(){if(h<c.length){var t=c[h]+r;Dt.processCommand(e,t,{callback:f})}h++};f()}else pt(e,u)}else pt(e,"Regular Expression missing from global")},substitute:function(e,t){if(!e.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var n,r,o,a,s=t.argString,l=s?at(s,s[0]):[],c="",u=!1,d=!1;if(l.length)n=l[0],F("pcre")&&""!==n&&(n=new RegExp(n).source),c=l[1],n&&"$"===n[n.length-1]&&(n=n.slice(0,n.length-1)+"\\n",c=c?c+"\n":"\n"),void 0!==c&&(c=F("pcre")?ht(c.replace(/([^\\])&/g,"$1$$&")):ut(c),$.lastSubstituteReplacePart=c),r=l[2]?l[2].split(" "):[];else if(s&&s.length)return void pt(e,"Substitutions should be of the form :s/pattern/replace/");if(r&&(o=r[0],a=parseInt(r[1]),o&&(-1!=o.indexOf("c")&&(u=!0,o.replace("c","")),-1!=o.indexOf("g")&&(d=!0,o.replace("g","")),n=F("pcre")?n+"/"+o:n.replace(/\//g,"\\/")+"/"+o)),n)try{bt(e,n,!0,!0)}catch(t){return void pt(e,"Invalid regex: "+n)}if(void 0!==(c=c||$.lastSubstituteReplacePart)){var h=nt(e).getQuery(),f=void 0!==t.line?t.line:e.getCursor().line,p=t.lineEnd||f;f==e.firstLine()&&p==e.lastLine()&&(p=1/0),a&&(p=(f=p)+a-1);var g=se(e,i(f,0)),m=e.getSearchCursor(h,g);Nt(e,u,d,f,p,m,h,c,t.callback)}else pt(e,"No previous substitute regular expression")},redo:e.commands.redo,undo:e.commands.undo,write:function(t){e.commands.save?e.commands.save(t):t.save&&t.save()},nohlsearch:function(e){St(e)},yank:function(e){var t=pe(e.getCursor()).line,n=e.getLine(t);$.registerController.pushText("0","yank",n,!0,!0)},delmarks:function(t,n){if(n.argString&&we(n.argString))for(var r=t.state.vim,i=new e.StringStream(we(n.argString));!i.eol();){i.eatSpace();var o=i.pos;if(!i.match(/[a-zA-Z]/,!1))return void pt(t,"Invalid argument: "+n.argString.substring(o));var a=i.next();if(i.match("-",!0)){if(!i.match(/[a-zA-Z]/,!1))return void pt(t,"Invalid argument: "+n.argString.substring(o));var s=a,l=i.next();if(!(k(s)&&k(l)||I(s)&&I(l)))return void pt(t,"Invalid argument: "+s+"-");var c=s.charCodeAt(0),u=l.charCodeAt(0);if(c>=u)return void pt(t,"Invalid argument: "+n.argString.substring(o));for(var d=0;d<=u-c;d++){var h=String.fromCharCode(c+d);delete r.marks[h]}}else delete r.marks[a]}else pt(t,"Argument required")}},Dt=new Mt;function Nt(t,n,r,i,o,a,s,l,c){t.state.vim.exMode=!0;var u=!1,d=a.from();function h(){t.operation(function(){for(;!u;)f(),p();g()})}function f(){var e=t.getRange(a.from(),a.to()).replace(s,l);a.replace(e)}function p(){for(;a.findNext()&&Ct(a.from(),i,o);)if(r||!d||a.from().line!=d.line)return t.scrollIntoView(a.from(),30),t.setSelection(a.from(),a.to()),d=a.from(),void(u=!1);u=!0}function g(e){if(e&&e(),t.focus(),d){t.setCursor(d);var n=t.state.vim;n.exMode=!1,n.lastHPos=n.lastHSPos=d.ch}c&&c()}function m(n,r,i){switch(e.e_stop(n),e.keyName(n)){case"Y":f(),p();break;case"N":p();break;case"A":var o=c;c=void 0,t.operation(h),c=o;break;case"L":f();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":g(i)}return u&&g(i),!0}if(p(),!u)return n?void vt(t,{prefix:"replace with <strong>"+l+"</strong> (y/n/a/q/l)",onKeyDown:m}):(h(),void(c&&c()));pt(t,"No matches for "+s.source)}function Rt(t){var n=t.state.vim,r=$.macroModeState,i=$.registerController.getRegister("."),o=r.isPlaying,a=r.lastInsertModeChanges;o||(t.off("change",Ht),e.off(t.getInputField(),"keydown",Vt)),!o&&n.insertModeRepeat>1&&(Kt(t,n,n.insertModeRepeat-1,!0),n.lastEditInputState.repeatOverride=n.insertModeRepeat),delete n.insertModeRepeat,n.insertMode=!1,t.setCursor(t.getCursor().line,t.getCursor().ch-1),t.setOption("keyMap","vim"),t.setOption("disableInput",!0),t.toggleOverwrite(!1),i.setText(a.changes.join("")),e.signal(t,"vim-mode-change",{mode:"normal"}),r.isRecording&&$t(r)}function Lt(e){t.unshift(e)}function Bt(e,t,n,r,i){var o={keys:e,type:t};for(var a in o[t]=n,o[t+"Args"]=r,i)o[a]=i[a];Lt(o)}function Pt(t,n,r,i){var o=$.registerController.getRegister(i);if(":"==i)return o.keyBuffer[0]&&Dt.processCommand(t,o.keyBuffer[0]),void(r.isPlaying=!1);var a=o.keyBuffer,s=0;r.isPlaying=!0,r.replaySearchQueries=o.searchQueries.slice(0);for(var l=0;l<a.length;l++)for(var c,u,d=a[l];d;)if(u=(c=/<\w+-.+?>|<\w+>|./.exec(d))[0],d=d.substring(c.index+u.length),e.Vim.handleKey(t,u,"macro"),n.insertMode){var h=o.insertModeChanges[s++].changes;$.macroModeState.lastInsertModeChanges.changes=h,Yt(t,h,1),Rt(t)}r.isPlaying=!1}function Ft(e,t){if(!e.isPlaying){var n=e.latestRegister,r=$.registerController.getRegister(n);r&&r.pushText(t)}}function $t(e){if(!e.isPlaying){var t=e.latestRegister,n=$.registerController.getRegister(t);n&&n.pushInsertModeChanges&&n.pushInsertModeChanges(e.lastInsertModeChanges)}}function jt(e,t){if(!e.isPlaying){var n=e.latestRegister,r=$.registerController.getRegister(n);r&&r.pushSearchQuery&&r.pushSearchQuery(t)}}function Ht(e,t){var n=$.macroModeState,r=n.lastInsertModeChanges;if(!n.isPlaying)for(;t;){if(r.expectCursorActivityForChange=!0,r.ignoreCount>1)r.ignoreCount--;else if("+input"==t.origin||"paste"==t.origin||void 0===t.origin){var i=e.listSelections().length;i>1&&(r.ignoreCount=i);var o=t.text.join("\n");r.maybeReset&&(r.changes=[],r.maybeReset=!1),o&&(e.state.overwrite&&!/\n/.test(o)?r.changes.push([o]):r.changes.push(o))}t=t.next}}function Ut(e){var t=e.state.vim;if(t.insertMode){var n=$.macroModeState;if(n.isPlaying)return;var r=n.lastInsertModeChanges;r.expectCursorActivityForChange?r.expectCursorActivityForChange=!1:r.maybeReset=!0}else e.curOp.isVimOp||Wt(e,t);t.visualMode&&Qt(e)}function Qt(e){var t="cm-animate-fat-cursor",n=e.state.vim,r=se(e,pe(n.sel.head)),i=ce(r,0,1);if(zt(n),r.ch==e.getLine(r.line).length){var o=document.createElement("span");o.textContent=" ",o.className=t,n.fakeCursorBookmark=e.setBookmark(r,{widget:o})}else n.fakeCursor=e.markText(r,i,{className:t})}function zt(e){e.fakeCursor&&(e.fakeCursor.clear(),e.fakeCursor=null),e.fakeCursorBookmark&&(e.fakeCursorBookmark.clear(),e.fakeCursorBookmark=null)}function Wt(t,n){var r=t.getCursor("anchor"),i=t.getCursor("head");if(n.visualMode&&!t.somethingSelected()?Ne(t,!1):n.visualMode||n.insertMode||!t.somethingSelected()||(n.visualMode=!0,n.visualLine=!1,e.signal(t,"vim-mode-change",{mode:"visual"})),n.visualMode){var o=me(i,r)?0:-1,a=me(i,r)?-1:0;i=ce(i,0,o),r=ce(r,0,a),n.sel={anchor:r,head:i},Ye(t,n,"<",ve(i,r)),Ye(t,n,">",Ae(i,r))}else n.insertMode||(n.lastHPos=t.getCursor().ch)}function Gt(e){this.keyName=e}function Vt(t){var n=$.macroModeState.lastInsertModeChanges,r=e.keyName(t);function i(){return n.maybeReset&&(n.changes=[],n.maybeReset=!1),n.changes.push(new Gt(r)),!0}r&&(-1==r.indexOf("Delete")&&-1==r.indexOf("Backspace")||e.lookupKey(r,"vim-insert",i))}function Kt(e,t,n,r){var i=$.macroModeState;i.isPlaying=!0;var o=!!t.lastEditActionCommand,a=t.inputState;function s(){o?Z.processAction(e,t,t.lastEditActionCommand):Z.evalInput(e,t)}function l(n){if(i.lastInsertModeChanges.changes.length>0){n=t.lastEditActionCommand?n:1;var r=i.lastInsertModeChanges;Yt(e,r.changes,n)}}if(t.inputState=t.lastEditInputState,o&&t.lastEditActionCommand.interlaceInsertRepeat)for(var c=0;c<n;c++)s(),l(1);else r||s(),l(n);t.inputState=a,t.insertMode&&!r&&Rt(e),i.isPlaying=!1}function Yt(t,n,r){function i(n){return"string"==typeof n?e.commands[n](t):n(t),!0}var o=t.getCursor("head"),a=$.macroModeState.lastInsertModeChanges.visualBlock;a&&(Se(t,o,a+1),r=t.listSelections().length,t.setCursor(o));for(var s=0;s<r;s++){a&&t.setCursor(ce(o,s,0));for(var l=0;l<n.length;l++){var c=n[l];if(c instanceof Gt)e.lookupKey(c.keyName,"vim-insert",i);else if("string"==typeof c){var u=t.getCursor();t.replaceRange(c,u,u)}else{var d=t.getCursor(),h=ce(d,0,c[0].length);t.replaceRange(c[0],d,h)}}}a&&t.setCursor(ce(o,0,1))}return e.keyMap.vim={attach:l,detach:s,call:f},B("insertModeEscKeysTimeout",200,"number"),e.keyMap["vim-insert"]={fallthrough:["default"],attach:l,detach:s,call:f},e.keyMap["vim-replace"]={Backspace:"goCharLeft",fallthrough:["vim-insert"],attach:l,detach:s,call:f},W(),G};e.Vim=o()}(A_(),G_(),ex(),q_())),G_();var tx,nx,rx,ix,ox={};function ax(){return tx||(tx=1,function(e){function t(e,t){function n(e){clearTimeout(r.doRedraw),r.doRedraw=setTimeout(function(){r.redraw()},e)}this.cm=e,this.options=t,this.buttonHeight=t.scrollButtonHeight||e.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=e.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var r=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(r.doUpdate),r.doUpdate=setTimeout(function(){r.computeScale()&&n(20)},100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),!1!==t.listenForChanges&&e.on("changes",this.changeHandler=function(){n(250)})}e.defineExtension("annotateScrollbar",function(e){return"string"==typeof e&&(e={className:e}),new t(this,e)}),e.defineOption("scrollButtonHeight",0),t.prototype.computeScale=function(){var e=this.cm,t=(e.getWrapperElement().clientHeight-e.display.barHeight-2*this.buttonHeight)/e.getScrollerElement().scrollHeight;if(t!=this.hScale)return this.hScale=t,!0},t.prototype.update=function(e){this.annotations=e,this.redraw()},t.prototype.redraw=function(e){!1!==e&&this.computeScale();var t=this.cm,n=this.hScale,r=document.createDocumentFragment(),i=this.annotations,o=t.getOption("lineWrapping"),a=o&&1.5*t.defaultTextHeight(),s=null,l=null;function c(e,n){if(s!=e.line){s=e.line,l=t.getLineHandle(e.line);var r=t.getLineHandleVisualStart(l);r!=l&&(s=t.getLineNumber(r),l=r)}return l.widgets&&l.widgets.length||o&&l.height>a?t.charCoords(e,"local")[n?"top":"bottom"]:t.heightAtLine(l,"local")+(n?0:l.height)}var u=t.lastLine();if(t.display.barWidth)for(var d,h=0;h<i.length;h++){var f=i[h];if(!(f.to.line>u)){for(var p=d||c(f.from,!0)*n,g=c(f.to,!1)*n;h<i.length-1&&!(i[h+1].to.line>u)&&!((d=c(i[h+1].from,!0)*n)>g+.9);)g=c((f=i[++h]).to,!1)*n;if(g!=p){var m=Math.max(g-p,3),v=r.appendChild(document.createElement("div"));v.style.cssText="position: absolute; right: 0px; width: "+Math.max(t.display.barWidth-1,2)+"px; top: "+(p+this.buttonHeight)+"px; height: "+m+"px",v.className=this.options.className,f.id&&v.setAttribute("annotation-id",f.id)}}}this.div.textContent="",this.div.appendChild(r)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}}(A_())),ox}ax(),nx||(nx=1,function(e){function t(e,t,n,r){this.cm=e,this.options=r;var i={listenForChanges:!1};for(var o in r)i[o]=r[o];i.className||(i.className="CodeMirror-search-match"),this.annotation=e.annotateScrollbar(i),this.query=t,this.caseFold=n,this.gap={from:e.firstLine(),to:e.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var a=this;e.on("change",this.changeHandler=function(e,t){a.onChange(t)})}e.defineExtension("showMatchesOnScrollbar",function(e,n,r){return"string"==typeof r&&(r={className:r}),r||(r={}),new t(this,e,n,r)});var n=1e3;function r(e,t,n){return e<=t?e:Math.max(t,e+n)}t.prototype.findMatches=function(){if(this.gap){for(var t=0;t<this.matches.length&&!((o=this.matches[t]).from.line>=this.gap.to);t++)o.to.line>=this.gap.from&&this.matches.splice(t--,1);for(var r=this.cm.getSearchCursor(this.query,e.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),i=this.options&&this.options.maxMatches||n;r.findNext();){var o;if((o={from:r.from(),to:r.to()}).from.line>=this.gap.to)break;if(this.matches.splice(t++,0,o),this.matches.length>i)break}this.gap=null}},t.prototype.onChange=function(t){var n=t.from.line,i=e.changeEnd(t).line,o=i-t.to.line;if(this.gap?(this.gap.from=Math.min(r(this.gap.from,n,o),t.from.line),this.gap.to=Math.max(r(this.gap.to,n,o),t.from.line)):this.gap={from:t.from.line,to:i+1},o)for(var a=0;a<this.matches.length;a++){var s=this.matches[a],l=r(s.from.line,n,o);l!=s.from.line&&(s.from=e.Pos(l,s.from.ch));var c=r(s.to.line,n,o);c!=s.to.line&&(s.to=e.Pos(c,s.to.ch))}clearTimeout(this.update);var u=this;this.update=setTimeout(function(){u.updateAfterChange()},250)},t.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},t.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}}(A_(),G_(),ax()));var sx,lx,cx,ux,dx,hx,fx,px,gx,mx,vx,Ax,bx,yx=i(ix?rx:(ix=1,rx=MA())),wx=i(lx?sx:(lx=1,sx=xu())),_x=i(ux?cx:(ux=1,cx=oy())),xx={};function Ex(){if(hx)return dx;hx=1;var e=E(),t=S(),n=k(),r=vr(),i=Vw().trim,o=Gw(),a=e.parseInt,s=e.Symbol,l=s&&s.iterator,c=/^[+-]?0x/i,u=n(c.exec),d=8!==a(o+"08")||22!==a(o+"0x16")||l&&!t(function(){a(Object(l))});return dx=d?function(e,t){var n=i(r(e));return a(n,t>>>0||(u(c,n)?16:10))}:a}function Sx(){return gx?px:(gx=1,function(){if(fx)return xx;fx=1;var e=sn(),t=Ex();e({global:!0,forced:parseInt!==t},{parseInt:t})}(),px=Me().parseInt)}function Cx(){return vx?mx:(vx=1,mx=Sx())}var Tx,kx,Ox,Mx,Ix,Dx,Nx,Rx,Lx,Bx=i(bx?Ax:(bx=1,Ax=Cx()));function Px(){return Ox?kx:(Ox=1,Tx||(Tx=1,sn()({target:"String",proto:!0},{repeat:uw()})),kx=eo()("String","repeat"))}function Fx(){if(Ix)return Mx;Ix=1;var e=De(),t=Px(),n=String.prototype;return Mx=function(r){var i=r.repeat;return"string"==typeof r||r===n||e(n,r)&&i===n.repeat?t:i}}function $x(){return Nx?Dx:(Nx=1,Dx=Fx())}var jx,Hx,Ux,Qx,zx,Wx,Gx=i(Lx?Rx:(Lx=1,Rx=$x())),Vx={run:function(e){var t,n="<div>".concat(e,"</div>");this.tagParser.formatEngine=this.mdFormatEngine,n=n.replace(/<!--[\s\S]*?-->/g,"");var r=this.htmlParser.parseHtml(n);return r=this.paragraphStyleClear(r),c_(t=this.$dealHtml(r).replace(/\n{3,}/g,"\n\n\n").replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&")).call(t,"\n")},$dealHtml:function(e){for(var t="",n=0;n<e.length;n++){var r=e[n];"tag"===r.type?t=this.$handleTagObject(r,t):"text"===r.type&&r.content.length>0&&(t+=r.content.replace(/&nbsp;/g," ").replace(/[\n]+/g,"\n").replace(/^[ \t\n]+\n\s*$/,"\n"))}return t},$handleTagObject:function(e,t){var n,r=t;return e.attrs.class&&/(ch-icon-square|ch-icon-check)/.test(e.attrs.class)?yx(n=e.attrs.class).call(n,"ch-icon-check")>=0?r+="[x]":r+="[ ]":e.attrs.class&&/cherry-code-preview-lang-select/.test(e.attrs.class)?r+="":r+=this.$dealTag(e),r},$dealTag:function(e){var t=this,n="";return e.children&&(n=t.$dealHtml(e.children)),/(style|meta|link|script)/.test(e.name)?"":"code"===e.name||"pre"===e.name?t.tagParser.codeParser(e,t.$dealCodeTag(e),"pre"===e.name):"function"==typeof t.tagParser["".concat(e.name,"Parser")]?t.tagParser["".concat(e.name,"Parser")](e,n):n},$dealCodeTag:function(e){if(e.children.length<0)return"";for(var t="",n=0;n<e.children.length;n++){var r=e.children[n];"text"!==r.type?("li"===r.name&&(t+="\n"),"br"===r.name&&(t+="\n"),t+=this.$dealCodeTag(r)):t+=r.content}return t},htmlParser:{attrRE:/([\w-]+)|['"]{1}([^'"]*)['"]{1}/g,lookup:{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,video:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},tagRE:/<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>/g,empty:wx?wx(null):{},parseTags:function(e){var t,n=this,r=0,i={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(this.attrRE,function(o){r%2?t=o:0===r?((n.lookup[o]||"/"===e.charAt(e.length-2))&&(i.voidElement=!0),i.name=o):i.attrs[t]=o.replace(/['"]/g,""),r+=1}),i},parseHtml:function(e,t){var n=this,r=t||{};r.components||(r.components=this.empty);var i,o=[],a=-1,s=[],l={},c=!1;return e.replace(this.tagRE,function(t,u){if(c){if(t!=="</".concat(i.name,">"))return;c=!1}var d,h="/"!==t.charAt(1),f=u+t.length,p=e.charAt(f);h&&(a+=1,"tag"===(i=n.parseTags(t)).type&&r.components[i.name]&&(i.type="component",c=!0),i.voidElement||c||!p||"<"===p||i.children.push({type:"text",content:_x(e).call(e,f,yx(e).call(e,"<",f))}),l[i.tagName]=i,0===a&&o.push(i),(d=s[a-1])&&d.children.push(i),s[a]=i),h&&!i.voidElement||(a-=1,!c&&"<"!==p&&p&&s[a]&&s[a].children.push({type:"text",content:_x(e).call(e,f,yx(e).call(e,"<",f))}))}),o}},tagParser:{formatEngine:{},pParser:function(e,t){var n=t;return/\n$/.test(n)?n:"".concat(n,"\n")},divParser:function(e,t){var n=t;return/\n$/.test(n)?n:"".concat(n,"\n")},spanParser:function(e,t){var n=t.replace(/\t/g,"").replace(/\n/g," ");return e.attrs&&e.attrs.style,n},codeParser:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.formatEngine.convertCode(t,n)},brParser:function(e,t){return this.formatEngine.convertBr(t,"\n")},imgParser:function(e,t){return e.attrs&&"tapd-graph"===e.attrs["data-control"]?this.formatEngine.convertGraph(e.attrs.title,e.attrs.src,e.attrs["data-origin-xml"],e):e.attrs&&e.attrs.src?this.formatEngine.convertImg(e.attrs.alt,e.attrs.src):void 0},videoParser:function(e,t){if(e.attrs&&e.attrs.src)return this.formatEngine.convertVideo(t,e.attrs.src,e.attrs.poster,e.attrs.title)},bParser:function(e,t){for(var n=t.split("\n"),r=[],i=0;i<n.length;i++)r.push(this.formatEngine.convertB(n[i]));return r.join("\n")},iParser:function(e,t){for(var n=t.split("\n"),r=[],i=0;i<n.length;i++)r.push(this.formatEngine.convertI(n[i]));return r.join("\n")},strikeParser:function(e,t){for(var n=t.split("\n"),r=[],i=0;i<n.length;i++)r.push(this.formatEngine.convertStrike(n[i]));return r.join("\n")},delParser:function(e,t){for(var n=t.split("\n"),r=[],i=0;i<n.length;i++)r.push(this.formatEngine.convertDel(n[i]));return r.join("\n")},uParser:function(e,t){for(var n=t.split("\n"),r=[],i=0;i<n.length;i++)r.push(this.formatEngine.convertU(n[i]));return r.join("\n")},aParser:function(e,t){return e.attrs&&e.attrs.href?this.formatEngine.convertA(t,e.attrs.href):""},supParser:function(e,t){return this.formatEngine.convertSup(t)},subParser:function(e,t){return this.formatEngine.convertSub(t)},tdParser:function(e,t){return this.formatEngine.convertTd(t)},trParser:function(e,t){return this.formatEngine.convertTr(t)},thParser:function(e,t){return this.formatEngine.convertTh(t)},theadParser:function(e,t){return this.formatEngine.convertThead(t)},tableParser:function(e,t){return this.formatEngine.convertTable(t)},liParser:function(e,t){return this.formatEngine.convertLi(t)},ulParser:function(e,t){return this.formatEngine.convertUl(t)},olParser:function(e,t){return this.formatEngine.convertOl(t)},strongParser:function(e,t){return this.formatEngine.convertStrong(t)},hrParser:function(e,t){return this.formatEngine.convertHr(t)},h1Parser:function(e,t){return this.formatEngine.convertH1(t)},h2Parser:function(e,t){return this.formatEngine.convertH2(t)},h3Parser:function(e,t){return this.formatEngine.convertH3(t)},h4Parser:function(e,t){return this.formatEngine.convertH4(t)},h5Parser:function(e,t){return this.formatEngine.convertH5(t)},h6Parser:function(e,t){return this.formatEngine.convertH6(t)},blockquoteParser:function(e,t){return this.formatEngine.convertBlockquote(t.replace(/\n+/g,"\n"))},addressParser:function(e,t){return this.formatEngine.convertAddress(t.replace(/\n+/g,"\n"))},styleParser:{colorAttrParser:function(e){var t=e.match(/color:\s*(#[a-zA-Z0-9]{3,6});/);return t&&t[1]?t[1]:""},sizeAttrParser:function(e){var t=e.match(/font-size:\s*([a-zA-Z0-9-]+?);/);if(t&&t[1]){var n,r=0;if(/[0-9]+px/.test(t[1]))r=c_(n=t[1].replace(/px/,"")).call(n);else switch(t[1]){case"x-small":r=10;break;case"small":r=12;break;case"medium":r=16;break;case"large":r=18;break;case"x-large":r=24;break;case"xx-large":r=32;break;default:r=""}return r>0?r:""}return""},bgColorAttrParser:function(e){var t=e.match(/background-color:\s*([^;]+?);/);if(t&&t[1]){var n="";if(/rgb\([ 0-9]+,[ 0-9]+,[ 0-9]+\)/.test(t[1])){var r,i,o,a,s,l=t[1].match(/rgb\(([ 0-9]+),([ 0-9]+),([ 0-9]+)\)/);l[1]&&l[2]&&l[3]&&(l[1]=Bx(c_(r=l[1]).call(r),10),l[2]=Bx(c_(i=l[2]).call(i),10),l[3]=Bx(c_(o=l[3]).call(o),10),n=Xu(a=Xu(s="#".concat(l[1].toString(16))).call(s,l[2].toString(16))).call(a,l[3].toString(16)))}else n=Yy(t,2)[1];return n}return""}}},mdFormatEngine:{convertColor:function(e,t){var n,r=c_(e).call(e);return!r||/\n/.test(r)?r:t?Xu(n="!!".concat(t," ")).call(n,r,"!!"):r},convertSize:function(e,t){var n,r=c_(e).call(e);return!r||/\n/.test(r)?r:t?Xu(n="!".concat(t," ")).call(n,r,"!"):r},convertBgColor:function(e,t){var n,r=c_(e).call(e);return!r||/\n/.test(r)?r:t?Xu(n="!!!".concat(t," ")).call(n,r,"!!!"):r},convertBr:function(e,t){return e+t},convertCode:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return/\n/.test(e)||t?"```\n".concat(e.replace(/\n+$/,""),"\n```"):"`".concat(e.replace(/`/g,"\\`"),"`")},convertB:function(e){return/^\s*$/.test(e)?"":"**".concat(e,"**")},convertI:function(e){return/^\s*$/.test(e)?"":"*".concat(e,"*")},convertU:function(e){return/^\s*$/.test(e)?"":" /".concat(e,"/ ")},convertImg:function(e,t){var n,r=e&&e.length>0?e:"image";return Xu(n="![".concat(r,"](")).call(n,t,")")},convertGraph:function(e,t,n,r){var i,o,a,s=e&&e.length>0?e:"graph",l="";if(r)try{var c,u=r.attrs;gf(c=$h(u)).call(c,function(e){var t;Object.prototype.hasOwnProperty.call(u,e)&&yx(e).call(e,"data-graph-")>=0&&u[e]&&(l+=Xu(t=" ".concat(e,"=")).call(t,u[e]))})}catch(e){}return Xu(i=Xu(o=Xu(a="![".concat(s,"](")).call(a,t,"){data-control=tapd-graph data-origin-xml=")).call(o,n)).call(i,l,"}")},convertVideo:function(e,t,n,r){var i,o,a=r&&r.length>0?r:"video";return Xu(i=Xu(o="!video[".concat(a,"](")).call(o,t,"){poster=")).call(i,n,"}")},convertA:function(e,t){var n;if(e===t)return"".concat(e," ");var r=c_(e).call(e);return r?Xu(n="[".concat(r,"](")).call(n,t,")"):r},convertSup:function(e){return"^".concat(c_(e).call(e).replace(/\^/g,"\\^"),"^")},convertSub:function(e){return"^^".concat(c_(e).call(e).replace(/\^\^/g,"\\^\\^"),"^^")},convertTd:function(e){return"~|".concat(c_(e).call(e).replace(/\n{1,}/g,"<br>").replace(/ /g,"~s~")," ~|")},convertTh:function(e){return/^\s*$/.test(e)?"":"~|".concat(c_(e).call(e).replace(/\n{1,}/g,"<br>")," ~|")},convertTr:function(e){return/^\s*$/.test(e)?"":"".concat(c_(e).call(e).replace(/\n/g,""),"\n")},convertThead:function(e){var t,n="".concat(e.replace(/[ \t]+/g,"").replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n"),r=n.match(/\|/g).length-1;return Xu(t="".concat(n,"|")).call(t,Gx(":-:|").call(":-:|",r),"\n")},convertTable:function(e){var t="\n".concat(e.replace(/[ \t]+/g,"").replace(/~\|~\|/g,"~|").replace(/~\|/g,"|"),"\n").replace(/\n{2,}/g,"\n").replace(/\n[ \t]+\n/g,"\n").replace(/~s~/g," ");if(!/\|:-:\|/.test(t)){var n=t.match(/^\n[^\n]+\n/);if(n){var r=n[0].match(/\|/g);if(r){var i,o,a=r.length-1;t=Xu(i=Xu(o="\n|".concat(Gx(" |").call(" |",a),"\n|")).call(o,Gx(":-:|").call(":-:|",a))).call(i,t)}}}return t},convertLi:function(e){return"- ".concat(e.replace(/^\n/,"").replace(/\n+$/,"").replace(/\n+/g,"\n\t"),"\n")},convertUl:function(e){return"".concat(e,"\n")},convertOl:function(e){for(var t=e.split("\n"),n=1,r=0;r<t.length;r++)/^- /.test(t[r])&&(t[r]=t[r].replace(/^- /,"".concat(n,". ")),n+=1);var i=t.join("\n");return"".concat(i,"\n")},convertStrong:function(e){return/^\s*$/.test(e)?"":"**".concat(e,"**")},convertStrike:function(e){return/^\s*$/.test(e)?"":"~~".concat(e,"~~")},convertDel:function(e){return/^\s*$/.test(e)?"":"~~".concat(e,"~~")},convertHr:function(e){return/^\s*$/.test(e)?"\n\n----\n":"\n\n----\n".concat(e)},convertH1:function(e){return"# ".concat(c_(e).call(e).replace(/\n+$/,""),"\n\n")},convertH2:function(e){return"## ".concat(c_(e).call(e).replace(/\n+$/,""),"\n\n")},convertH3:function(e){return"### ".concat(c_(e).call(e).replace(/\n+$/,""),"\n\n")},convertH4:function(e){return"#### ".concat(c_(e).call(e).replace(/\n+$/,""),"\n\n")},convertH5:function(e){return"##### ".concat(c_(e).call(e).replace(/\n+$/,""),"\n\n")},convertH6:function(e){return"###### ".concat(c_(e).call(e).replace(/\n+$/,""),"\n\n")},convertBlockquote:function(e){return">".concat(c_(e).call(e),"\n\n")},convertAddress:function(e){return">".concat(c_(e).call(e),"\n\n")}},paragraphStyleClear:function(e){for(var t=0;t<e[0].children.length;t++){for(var n=[e[0].children[t]],r=[];n.length;){var i=n.shift(),o=this.notEmptyTagCount(i);if(1===o)r.push(i);else if(o>1)for(var a=0;a<i.children.length;a++)n.push(i.children[a]);else 1===r.length&&this.clearChildColorAttrs(r.pop()),r=[]}1===r.length&&this.clearChildColorAttrs(r.pop())}return e},notEmptyTagCount:function(e){if(!e||e.voidElement||"tag"===e.type&&!e.children.length||"text"===e.type&&!e.content.replace(/(\r|\n|\s)+/g,""))return 0;if(e.children&&e.children.length){for(var t=0,n=0;n<e.children.length;n++)t+=this.notEmptyTagCount(e.children[n]);return t}return 1},clearChildColorAttrs:function(e){var t=this;this.forEachHtmlParsedItems(e,function(e){t.clearSelfNodeColorAttrs(e)})},clearSelfNodeColorAttrs:function(e){if(e.attrs&&e.attrs.style){for(var t=e.attrs.style.split(";"),n=[],r=0;r<t.length;r++){var i;t[r]&&-1===yx(i=t[r]).call(i,"color")&&n.push(t[r])}n.length?e.attrs.style="".concat(n.join(";"),";"):delete e.attrs.style}},forEachHtmlParsedItems:function(e,t){if(e&&(t(e),e.children&&e.children.length))for(var n=0;n<e.children.length;n++)this.forEachHtmlParsedItems(e.children[n],t)}};function Kx(){return Hx?jx:(Hx=1,jx=Cd())}function Yx(){return Qx?Ux:(Qx=1,Ux=Kx())}function qx(){return Wx?zx:(Wx=1,zx=Yx())}var Xx=i(qx());function Jx(){var e;return Jx=Xx?nu(e=Xx).call(e):function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jx.apply(null,arguments)}var Zx,eE,tE,nE,rE,iE,oE,aE,sE,lE={};function cE(){if(eE)return Zx;eE=1;var e=E(),t=S(),n=k(),r=vr(),i=Vw().trim,o=Gw(),a=n("".charAt),s=e.parseFloat,l=e.Symbol,c=l&&l.iterator,u=1/s(o+"-0")!=-1/0||c&&!t(function(){s(Object(c))});return Zx=u?function(e){var t=i(r(e)),n=s(t);return 0===n&&"-"===a(t,0)?-0:n}:s}function uE(){return rE?nE:(rE=1,function(){if(tE)return lE;tE=1;var e=sn(),t=cE();e({global:!0,forced:parseFloat!==t},{parseFloat:t})}(),nE=Me().parseFloat)}function dE(){return oE?iE:(oE=1,iE=uE())}var hE,fE,pE,gE,mE,vE,AE,bE,yE,wE,_E,xE,EE,SE,CE,TE,kE=i(sE?aE:(sE=1,aE=dE())),OE={},ME={};function IE(){if(fE)return hE;fE=1;var e=_t(),t=Oo(),n=Ot(),r=on();return hE=function(i,o,a){for(var s=t(o),l=r.f,c=n.f,u=0;u<s.length;u++){var d=s[u];e(i,d)||a&&e(a,d)||l(i,d,c(o,d))}},hE}function DE(){if(gE)return pE;gE=1;var e=Oe(),t=an();return pE=function(n,r){e(r)&&"cause"in r&&t(n,"cause",r.cause)},pE}function NE(){if(vE)return mE;vE=1;var e=Error,t=k()("".replace),n=String(new e("zxcasd").stack),r=/\n\s*at [^:]*:[^\n]*/,i=r.test(n);return mE=function(n,o){if(i&&"string"==typeof n&&!e.prepareStackTrace)for(;o--;)n=t(n,r,"");return n}}function RE(){if(bE)return AE;bE=1;var e=S(),t=Ee();return AE=!e(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",t(1,7)),7!==e.stack)})}function LE(){if(wE)return yE;wE=1;var e=an(),t=NE(),n=RE(),r=Error.captureStackTrace;return yE=function(i,o,a,s){n&&(r?r(i,o):e(i,"stack",t(a,s)))}}function BE(){if(xE)return _E;xE=1;var e=It(),t=F(),n=rn(),r=Fe(),i=By(),o=er(),a=De(),s=Py(),l=hb(),c=Ry(),u=TypeError,d=function(e,t){this.stopped=e,this.result=t},h=d.prototype;return _E=function(f,p,g){var m,v,A,b,y,w,_,x=g&&g.that,E=!(!g||!g.AS_ENTRIES),S=!(!g||!g.IS_RECORD),C=!(!g||!g.IS_ITERATOR),T=!(!g||!g.INTERRUPTED),k=e(p,x),O=function(e){return m&&c(m,"normal",e),new d(!0,e)},M=function(e){return E?(n(e),T?k(e[0],e[1],O):k(e[0],e[1])):T?k(e,O):k(e)};if(S)m=f.iterator;else if(C)m=f;else{if(!(v=l(f)))throw new u(r(f)+" is not iterable");if(i(v)){for(A=0,b=o(f);b>A;A++)if((y=M(f[A]))&&a(h,y))return y;return new d(!1)}m=s(f,v)}for(w=S?f.next:m.next;!(_=t(w,m)).done;){try{y=M(_.value)}catch(e){c(m,"throw",e)}if("object"==typeof y&&y&&a(h,y))return y}return new d(!1)},_E}function PE(){if(SE)return EE;SE=1;var e=vr();return EE=function(t,n){return void 0===t?arguments.length<2?"":n:e(t)},EE}function FE(){return TE||(TE=1,function(){if(CE)return ME;CE=1;var e=sn(),t=De(),n=ks(),r=Rs(),i=IE(),o=cr(),a=an(),s=Ee(),l=DE(),c=LE(),u=BE(),d=PE(),h=Et()("toStringTag"),f=Error,p=[].push,g=function(e,i){var s,v=t(m,this);r?s=r(new f,v?n(this):m):(s=v?this:o(m),a(s,h,"Error")),void 0!==i&&a(s,"message",d(i)),c(s,g,s.stack,1),arguments.length>2&&l(s,arguments[2]);var A=[];return u(e,p,{that:A}),a(s,"errors",A),s};r?r(g,f):i(g,f,{name:!0});var m=g.prototype=o(f.prototype,{constructor:s(1,g),message:s(1,""),name:s(1,"AggregateError")});e({global:!0,constructor:!0,arity:2},{AggregateError:g})}()),OE}var $E,jE,HE,UE,QE,zE,WE,GE,VE,KE,YE,qE,XE,JE,ZE,eS,tS,nS,rS,iS,oS,aS,sS,lS,cS,uS,dS,hS,fS,pS,gS,mS,vS,AS,bS={},yS={};function wS(){if(jE)return $E;jE=1;var e=E();return $E="process"===O()(e.process)}function _S(){if(UE)return HE;UE=1;var e=Ie(),t=Dr(),n=Et(),r=P(),i=n("species");return HE=function(n){var o=e(n);r&&o&&!o[i]&&t(o,i,{configurable:!0,get:function(){return this}})}}function xS(){if(zE)return QE;zE=1;var e=De(),t=TypeError;return QE=function(n,r){if(e(r,n))return n;throw new t("Incorrect invocation")}}function ES(){if(GE)return WE;GE=1;var e=rn(),t=pn(),n=Ce(),r=Et()("species");return WE=function(i,o){var a,s=e(i).constructor;return void 0===s||n(a=e(s)[r])?o:t(a)}}function SS(){return KE?VE:(KE=1,VE=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ne()))}function CS(){if(qE)return YE;qE=1;var e,t,n,r,i=E(),o=T(),a=It(),s=I(),l=_t(),c=S(),u=sr(),d=ln(),h=Tt(),f=nd(),p=SS(),g=wS(),m=i.setImmediate,v=i.clearImmediate,A=i.process,b=i.Dispatch,y=i.Function,w=i.MessageChannel,_=i.String,x=0,C={},k="onreadystatechange";c(function(){e=i.location});var O=function(e){if(l(C,e)){var t=C[e];delete C[e],t()}},M=function(e){return function(){O(e)}},D=function(e){O(e.data)},N=function(t){i.postMessage(_(t),e.protocol+"//"+e.host)};return m&&v||(m=function(e){f(arguments.length,1);var n=s(e)?e:y(e),r=d(arguments,1);return C[++x]=function(){o(n,void 0,r)},t(x),x},v=function(e){delete C[e]},g?t=function(e){A.nextTick(M(e))}:b&&b.now?t=function(e){b.now(M(e))}:w&&!p?(r=(n=new w).port2,n.port1.onmessage=D,t=a(r.postMessage,r)):i.addEventListener&&s(i.postMessage)&&!i.importScripts&&e&&"file:"!==e.protocol&&!c(N)?(t=N,i.addEventListener("message",D,!1)):t=k in h("script")?function(e){u.appendChild(h("script"))[k]=function(){u.removeChild(this),O(e)}}:function(e){setTimeout(M(e),0)}),YE={set:m,clear:v}}function TS(){if(JE)return XE;JE=1;var e=E(),t=P(),n=Object.getOwnPropertyDescriptor;return XE=function(r){if(!t)return e[r];var i=n(e,r);return i&&i.value}}function kS(){if(eS)return ZE;eS=1;var e=function(){this.head=null,this.tail=null};return e.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},ZE=e}function OS(){return nS?tS:(nS=1,tS=/ipad|iphone|ipod/i.test(Ne())&&"undefined"!=typeof Pebble)}function MS(){return iS?rS:(iS=1,rS=/web0s(?!.*chrome)/i.test(Ne()))}function IS(){if(aS)return oS;aS=1;var e,t,n,r,i,o=E(),a=TS(),s=It(),l=CS().set,c=kS(),u=SS(),d=OS(),h=MS(),f=wS(),p=o.MutationObserver||o.WebKitMutationObserver,g=o.document,m=o.process,v=o.Promise,A=a("queueMicrotask");if(!A){var b=new c,y=function(){var t,n;for(f&&(t=m.domain)&&t.exit();n=b.get();)try{n()}catch(t){throw b.head&&e(),t}t&&t.enter()};u||f||h||!p||!g?!d&&v&&v.resolve?((r=v.resolve(void 0)).constructor=v,i=s(r.then,r),e=function(){i(y)}):f?e=function(){m.nextTick(y)}:(l=s(l,o),e=function(){l(y)}):(t=!0,n=g.createTextNode(""),new p(y).observe(n,{characterData:!0}),e=function(){n.data=t=!t}),A=function(t){b.head||e(),b.add(t)}}return oS=A}function DS(){return lS||(lS=1,sS=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}),sS}function NS(){return uS?cS:(uS=1,cS=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}})}function RS(){return hS?dS:(hS=1,dS=E().Promise)}function LS(){return pS?fS:(pS=1,fS="object"==typeof Deno&&Deno&&"object"==typeof Deno.version)}function BS(){return mS?gS:(mS=1,gS=!LS()&&!wS()&&"object"==typeof window&&"object"==typeof document)}function PS(){if(AS)return vS;AS=1;var e=E(),t=RS(),n=I(),r=Mt(),i=hn(),o=Et(),a=BS(),s=LS(),l=vt(),c=Re(),u=t&&t.prototype,d=o("species"),h=!1,f=n(e.PromiseRejectionEvent),p=r("Promise",function(){var e=i(t),n=e!==String(t);if(!n&&66===c)return!0;if(l&&(!u.catch||!u.finally))return!0;if(!c||c<51||!/native code/.test(e)){var r=new t(function(e){e(1)}),o=function(e){e(function(){},function(){})};if((r.constructor={})[d]=o,!(h=r.then(function(){})instanceof o))return!0}return!n&&(a||s)&&!f});return vS={CONSTRUCTOR:p,REJECTION_EVENT:f,SUBCLASSING:h}}var FS,$S,jS={};function HS(){if(FS)return jS;FS=1;var e=$e(),t=TypeError,n=function(n){var r,i;this.promise=new n(function(e,n){if(void 0!==r||void 0!==i)throw new t("Bad Promise constructor");r=e,i=n}),this.resolve=e(r),this.reject=e(i)};return jS.f=function(e){return new n(e)},jS}var US,QS,zS,WS={};function GS(){if(QS)return US;QS=1;var e=RS(),t=$y(),n=PS().CONSTRUCTOR;return US=n||!t(function(t){e.all(t).then(void 0,function(){})})}var VS,KS,YS,qS,XS,JS,ZS,eC={},tC={},nC={},rC={};function iC(){if(XS)return qS;XS=1;var e=rn(),t=Oe(),n=HS();return qS=function(r,i){if(e(r),t(i)&&i.constructor===r)return i;var o=n.f(r);return(0,o.resolve)(i),o.promise},qS}function oC(){return ZS||(ZS=1,function(){if($S)return yS;$S=1;var e,t,n,r=sn(),i=vt(),o=wS(),a=E(),s=F(),l=Ir(),c=Rs(),u=ai(),d=_S(),h=$e(),f=I(),p=Oe(),g=xS(),m=ES(),v=CS().set,A=IS(),b=DS(),y=NS(),w=kS(),_=li(),x=RS(),S=PS(),C=HS(),T="Promise",k=S.CONSTRUCTOR,O=S.REJECTION_EVENT,M=S.SUBCLASSING,D=_.getterFor(T),N=_.set,R=x&&x.prototype,L=x,B=R,P=a.TypeError,$=a.document,j=a.process,H=C.f,U=H,Q=!!($&&$.createEvent&&a.dispatchEvent),z="unhandledrejection",W=function(e){var t;return!(!p(e)||!f(t=e.then))&&t},G=function(e,t){var n,r,i,o=t.value,a=1===t.state,l=a?e.ok:e.fail,c=e.resolve,u=e.reject,d=e.domain;try{l?(a||(2===t.rejection&&X(t),t.rejection=1),!0===l?n=o:(d&&d.enter(),n=l(o),d&&(d.exit(),i=!0)),n===e.promise?u(new P("Promise-chain cycle")):(r=W(n))?s(r,n,c,u):c(n)):u(o)}catch(e){d&&!i&&d.exit(),u(e)}},V=function(e,t){e.notified||(e.notified=!0,A(function(){for(var n,r=e.reactions;n=r.get();)G(n,e);e.notified=!1,t&&!e.rejection&&Y(e)}))},K=function(e,t,n){var r,i;Q?((r=$.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),a.dispatchEvent(r)):r={promise:t,reason:n},!O&&(i=a["on"+e])?i(r):e===z&&b("Unhandled promise rejection",n)},Y=function(e){s(v,a,function(){var t,n=e.facade,r=e.value;if(q(e)&&(t=y(function(){o?j.emit("unhandledRejection",r,n):K(z,n,r)}),e.rejection=o||q(e)?2:1,t.error))throw t.value})},q=function(e){return 1!==e.rejection&&!e.parent},X=function(e){s(v,a,function(){var t=e.facade;o?j.emit("rejectionHandled",t):K("rejectionhandled",t,e.value)})},J=function(e,t,n){return function(r){e(t,r,n)}},Z=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,V(e,!0))},ee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new P("Promise can't be resolved itself");var r=W(t);r?A(function(){var n={done:!1};try{s(r,t,J(ee,n,e),J(Z,n,e))}catch(t){Z(n,t,e)}}):(e.value=t,e.state=1,V(e,!1))}catch(t){Z({done:!1},t,e)}}};if(k&&(B=(L=function(t){g(this,B),h(t),s(e,this);var n=D(this);try{t(J(ee,n),J(Z,n))}catch(e){Z(n,e)}}).prototype,(e=function(e){N(this,{type:T,done:!1,notified:!1,parent:!1,reactions:new w,rejection:!1,state:0,value:void 0})}).prototype=l(B,"then",function(e,t){var n=D(this),r=H(m(this,L));return n.parent=!0,r.ok=!f(e)||e,r.fail=f(t)&&t,r.domain=o?j.domain:void 0,0===n.state?n.reactions.add(r):A(function(){G(r,n)}),r.promise}),t=function(){var t=new e,n=D(t);this.promise=t,this.resolve=J(ee,n),this.reject=J(Z,n)},C.f=H=function(e){return e===L||void 0===e?new t(e):U(e)},!i&&f(x)&&R!==Object.prototype)){n=R.then,M||l(R,"then",function(e,t){var r=this;return new L(function(e,t){s(n,r,e,t)}).then(e,t)},{unsafe:!0});try{delete R.constructor}catch(e){}c&&c(R,B)}r({global:!0,constructor:!0,wrap:!0,forced:k},{Promise:L}),u(L,T,!1,!0),d(T)}(),function(){if(zS)return WS;zS=1;var e=sn(),t=F(),n=$e(),r=HS(),i=NS(),o=BE();e({target:"Promise",stat:!0,forced:GS()},{all:function(e){var a=this,s=r.f(a),l=s.resolve,c=s.reject,u=i(function(){var r=n(a.resolve),i=[],s=0,u=1;o(e,function(e){var n=s++,o=!1;u++,t(r,a,e).then(function(e){o||(o=!0,i[n]=e,--u||l(i))},c)}),--u||l(i)});return u.error&&c(u.value),s.promise}})}(),function(){if(VS)return eC;VS=1;var e=sn(),t=vt(),n=PS().CONSTRUCTOR,r=RS(),i=Ie(),o=I(),a=Ir(),s=r&&r.prototype;if(e({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(e){return this.then(void 0,e)}}),!t&&o(r)){var l=i("Promise").prototype.catch;s.catch!==l&&a(s,"catch",l,{unsafe:!0})}}(),function(){if(KS)return tC;KS=1;var e=sn(),t=F(),n=$e(),r=HS(),i=NS(),o=BE();e({target:"Promise",stat:!0,forced:GS()},{race:function(e){var a=this,s=r.f(a),l=s.reject,c=i(function(){var r=n(a.resolve);o(e,function(e){t(r,a,e).then(s.resolve,l)})});return c.error&&l(c.value),s.promise}})}(),function(){if(YS)return nC;YS=1;var e=sn(),t=HS();e({target:"Promise",stat:!0,forced:PS().CONSTRUCTOR},{reject:function(e){var n=t.f(this);return(0,n.reject)(e),n.promise}})}(),function(){if(JS)return rC;JS=1;var e=sn(),t=Ie(),n=vt(),r=RS(),i=PS().CONSTRUCTOR,o=iC(),a=t("Promise"),s=n&&!i;e({target:"Promise",stat:!0,forced:n||i},{resolve:function(e){return o(s&&this===a?r:this,e)}})}()),bS}var aC,sC={};function lC(){if(aC)return sC;aC=1;var e=sn(),t=F(),n=$e(),r=HS(),i=NS(),o=BE();return e({target:"Promise",stat:!0,forced:GS()},{allSettled:function(e){var a=this,s=r.f(a),l=s.resolve,c=s.reject,u=i(function(){var r=n(a.resolve),i=[],s=0,c=1;o(e,function(e){var n=s++,o=!1;c++,t(r,a,e).then(function(e){o||(o=!0,i[n]={status:"fulfilled",value:e},--c||l(i))},function(e){o||(o=!0,i[n]={status:"rejected",reason:e},--c||l(i))})}),--c||l(i)});return u.error&&c(u.value),s.promise}}),sC}var cC,uC={};function dC(){if(cC)return uC;cC=1;var e=sn(),t=F(),n=$e(),r=Ie(),i=HS(),o=NS(),a=BE(),s="No one promise resolved";return e({target:"Promise",stat:!0,forced:GS()},{any:function(e){var l=this,c=r("AggregateError"),u=i.f(l),d=u.resolve,h=u.reject,f=o(function(){var r=n(l.resolve),i=[],o=0,u=1,f=!1;a(e,function(e){var n=o++,a=!1;u++,t(r,l,e).then(function(e){a||f||(f=!0,d(e))},function(e){a||f||(a=!0,i[n]=e,--u||h(new c(i,s)))})}),--u||h(new c(i,s))});return f.error&&h(f.value),u.promise}}),uC}var hC,fC={};function pC(){if(hC)return fC;hC=1;var e=sn(),t=HS();return e({target:"Promise",stat:!0},{withResolvers:function(){var e=t.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}}),fC}var gC,mC,vC,AC,bC,yC,wC,_C={};function xC(){return vC?mC:(vC=1,FE(),Ps(),oC(),lC(),dC(),pC(),function(){if(gC)return _C;gC=1;var e=sn(),t=vt(),n=RS(),r=S(),i=Ie(),o=I(),a=ES(),s=iC(),l=Ir(),c=n&&n.prototype;if(e({target:"Promise",proto:!0,real:!0,forced:!!n&&r(function(){c.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=a(this,i("Promise")),n=o(e);return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}}),!t&&o(n)){var u=i("Promise").prototype.finally;c.finally!==u&&l(c,"finally",u,{unsafe:!0})}}(),Nl(),mC=Me().Promise)}function EC(){if(bC)return AC;bC=1;var e=xC();return $s(),AC=e}var SC=i(wC?yC:(wC=1,yC=EC()));function CC(e,t){var n=kE(e),r=kE(t);return r>=0?n:n>=0?n+r:Math.min(n,r)}function TC(e){var t=e.previousElementSibling,n=e.nextElementSibling;if(!t){var r=getComputedStyle(e),i=e.getBoundingClientRect();if(!n)return{height:Math.max(kE(r.marginTop)+i.height+kE(r.marginBottom),0),offsetTop:e.offsetTop-Math.abs(kE(r.marginTop))};var o=getComputedStyle(n),a=CC(r.marginBottom,o.marginTop);return{height:Math.max(kE(r.marginTop)+i.height+a,0),offsetTop:e.offsetTop-Math.abs(kE(r.marginTop))}}var s=getComputedStyle(e),l=e.getBoundingClientRect(),c=function(e,t){var n=kE(e),r=kE(t);return r<0?0:n>=0?Math.max(r-n,0):r}(getComputedStyle(t).marginBottom,s.marginTop);if(!n)return{height:Math.max(c+l.height+kE(s.marginBottom),0),offsetTop:e.offsetTop-Math.abs(kE(s.marginTop))};var u=getComputedStyle(n),d=CC(s.marginBottom,u.marginTop);return{height:Math.max(c+l.height+d,0),offsetTop:e.offsetTop-Math.abs(c)}}function kC(e,t){if(!e||!e.tagName)return"";var n,r,i=document.createElement("div");return i.appendChild(e.cloneNode(!1)),n=i.innerHTML,r=yx(n).call(n,">")+1,i=null,n.substring(0,r)+e.innerHTML+n.substring(r)}function OC(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=document.createElement(e);return i.className=n,void 0!==r&&gf(t=$h(r)).call(t,function(e){var t=r[e];if(m_(e).call(e,"data-")){var n=e.replace(/^data-/,"");i.dataset[n]=t}else i.setAttribute(e,t)}),i}function MC(e,t){return new SC(function(n,r){if(document.getElementById(t))n();else{var i=document.createElement("script");i.src=e,i.async=!0,i.onload=n,i.onerror=r,document.head.appendChild(i)}})}var IC={showSwitchBtnAfterPasteHtml:function(e,t,n,r,i){c_(r).call(r)!==c_(i).call(i)&&(this.init(e,t,n,r,i),this.setSelection(),this.bindListener(),this.initBubble(),this.showBubble(),"text"===this.getTypeFromLocalStorage()&&this.switchTextClick())},init:function(e,t,n,r,i){this.$cherry=e,this.html=r,this.md=i,this.codemirror=n,this.currentCursor=t,this.locale=e.locale},getTypeFromLocalStorage:function(){return"undefined"==typeof localStorage?"md":localStorage.getItem("cherry-paste-type")||"md"},setTypeToLocalStorage:function(e){"undefined"!=typeof localStorage&&localStorage.setItem("cherry-paste-type",e)},setSelection:function(){var e=this.codemirror.getCursor(),t=Jx({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e)),n=this.currentCursor;this.codemirror.setSelection(n,t)},bindListener:function(){var e=this;if(this.hasBindListener)return!0;this.hasBindListener=!0,this.codemirror.on("beforeSelectionChange",function(t,n){e.hideBubble()}),this.codemirror.on("beforeChange",function(t,n){e.hideBubble()}),this.codemirror.on("scroll",function(t){e.updatePositionWhenScroll()})},isHidden:function(){return"none"===this.bubbleDom.style.display},toggleBubbleDisplay:function(){this.isHidden()?this.bubbleDom.style.display="":this.bubbleDom.style.display="none"},hideBubble:function(){if(this.noHide)return!0;this.isHidden()||this.toggleBubbleDisplay()},updatePositionWhenScroll:function(){if(!this.isHidden()){var e=this.bubbleDom.dataset.scrollTop-this.getScrollTop();this.bubbleDom.style.marginTop="".concat(e,"px")}},getScrollTop:function(){return this.codemirror.getScrollInfo().top},showBubble:function(){var e=this.getLastSelectedPosition().top;this.isHidden()&&(this.toggleBubbleDisplay(),this.bubbleDom.style.marginTop="0",this.bubbleDom.dataset.scrollTop=this.getScrollTop()),e>this.codemirror.getWrapperElement().clientHeight-this.bubbleDom.getBoundingClientRect().height-15?(this.bubbleDom.style.top="",this.bubbleDom.style.bottom="".concat(15,"px")):(this.bubbleDom.style.top="".concat(e,"px"),this.bubbleDom.style.bottom="")},initBubble:function(){var e,t,n,r;if(this.bubbleDom)return this.bubbleDom.setAttribute("data-type","md"),null===(n=this.switchMd)||void 0===n||n.classList.add("active"),null===(r=this.switchText)||void 0===r||r.classList.remove("active"),!0;var i=OC("div","cherry-bubble cherry-bubble--centered cherry-switch-paste");i.style.display="none";var o=OC("span","cherry-toolbar-button cherry-text-btn",{title:this.locale.pastePlain});o.innerText="TEXT";var a=OC("span","cherry-toolbar-button cherry-md-btn",{title:this.locale.pasteMarkdown});a.innerText="Markdown",this.bubbleDom=i,this.switchText=o,this.switchMd=a,this.bubbleDom.appendChild(o),this.bubbleDom.appendChild(a),this.bubbleDom.setAttribute("data-type","md"),this.codemirror.getWrapperElement().appendChild(this.bubbleDom),this.switchMd.addEventListener("click",Ju(e=this.switchMDClick).call(e,this)),this.switchText.addEventListener("click",Ju(t=this.switchTextClick).call(t,this)),"text"===this.getTypeFromLocalStorage()?(this.switchText.classList.add("active"),this.switchMd.classList.remove("active"),this.bubbleDom.setAttribute("data-type","text")):(this.switchMd.classList.add("active"),this.switchText.classList.remove("active"),this.bubbleDom.setAttribute("data-type","md"))},switchMDClick:function(e){this.setTypeToLocalStorage("md"),"md"!==this.bubbleDom.getAttribute("data-type")&&(this.noHide=!0,this.bubbleDom.setAttribute("data-type","md"),this.codemirror.doc.replaceSelection(this.md),this.setSelection(),this.showBubble(),this.switchMd.classList.add("active"),this.switchText.classList.remove("active"),this.noHide=!1)},switchTextClick:function(e){this.setTypeToLocalStorage("text"),"text"!==this.bubbleDom.getAttribute("data-type")&&(this.noHide=!0,this.bubbleDom.setAttribute("data-type","text"),this.codemirror.doc.replaceSelection(this.html),this.setSelection(),this.showBubble(),this.switchText.classList.add("active"),this.switchMd.classList.remove("active"),this.noHide=!1)},getLastSelectedPosition:function(){var e=u_(this.codemirror.getWrapperElement().getElementsByClassName("CodeMirror-selected")),t=0,n=0;if(e.length<=0)return this.hideBubble(),{};for(var r=0;r<e.length;r++){var i=e[r].getBoundingClientRect(),o=i.left+i.width/2,a=i.top+i.height;a>n&&o>=t&&(n=a),o>t&&(t=o)}return{top:n}}};function DC(e,t,n,r){return e.addEventListener?(e.addEventListener(t,n,r),!0):e.attachEvent?e.attachEvent("on".concat(t),n):void(e["on".concat(t)]=n)}function NC(e,t,n,r){if(e.removeEventListener)e.removeEventListener(t,n,r);else{if(e.detachEvent)return e.detachEvent("on".concat(t),n);e["on".concat(t)]=null}}var RC,LC,BC,PC,FC,$C,jC=new Proxy({},{get:function(e,t,n){return function(){}}}),HC=i(LC?RC:(LC=1,RC=js())),UC=i(PC?BC:(PC=1,BC=vb())),QC=i($C?FC:($C=1,FC=KA()));function zC(e,t){var n=void 0!==HC&&UC(e)||e["@@iterator"];if(!n){if(QC(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return WC(e,t);var r=_x(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u_(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?WC(e,t):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function WC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function GC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"*",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=document.createElement("input"),o=e.$cherry.options.multipleFileSelection||!1;i.type="file",i.id="fileUpload",i.value="",i.style.display="none",i.accept=n,i.multiple=o,i.addEventListener("change",function(n){var i=n.target.files;e.$cherry.options.callback.fileUploadMulti(i,function(n){if(0!==n.length){if(r)return r(n);var o,a="",s=zC(i);try{for(s.s();!(o=s.n()).done;){var l=o.value,c=l.url;a+="".concat(KC(t,l,c),"/n")}}catch(e){s.e(e)}finally{s.f()}e.editor.doc.replaceSelection(a)}})}),i.click()}function VC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"image",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"*",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=document.createElement("input");i.type="file",i.id="fileUpload",i.value="",i.style.display="none",i.accept=n,i.addEventListener("change",function(n){var i=Yy(n.target.files,1)[0];e.$cherry.options.callback.fileUpload(i,function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof n&&n){if(r)return r(i.name,n,o);var a;a=KC(t,i,n),e.editor.doc.replaceSelection(a)}})}),i.click()}var KC=function(e,t,n){var r,i,o,a;return"image"===e?Xu(i="![".concat(t.name,"](")).call(i,n,")"):"video"===e?Xu(o="!video[".concat(t.name,"](")).call(o,n,")"):"audio"===e?Xu(a="!audio[".concat(t.name,"](")).call(a,n,")"):Xu(r="[".concat(t.name,"](")).call(r,n,")")};function YC(e){var t=[];return null!=e&&e.isBorder&&t.push("#B"),null!=e&&e.isShadow&&t.push("#S"),null!=e&&e.isRadius&&t.push("#R"),null!=e&&e.width&&t.push("#".concat(e.width)),null!=e&&e.height&&(e.width||t.push("#auto"),t.push("#".concat(e.height))),t.join(" ")}function qC(e,t,n){var r,i,o,a,s,l,c,u=null!==(r=null==t?void 0:t.name)&&void 0!==r?r:n.name,d="",h="";/video/i.test(n.type)&&(d="!video",h=null!=t&&t.poster?"{poster=".concat(t.poster,"}"):""),/audio/i.test(n.type)&&(d="!audio"),/image/i.test(n.type)&&(d="!");var f=d?YC(t):"",p=t.before,g=void 0===p?"":p,m=t.after,v=void 0===m?"":m;return Xu(i=Xu(o=Xu(a=Xu(s=Xu(l=Xu(c="".concat(g)).call(c,d,"[")).call(l,u)).call(s,f,"](")).call(a,e,")")).call(o,h)).call(i,v)}function XC(e,t){var n=$h(e);if(Xi){var r=Xi(e);t&&(r=uo(r).call(r,function(t){return To(e,t).enumerable})),n.push.apply(n,r)}return n}function JC(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?gf(n=XC(Object(i),!0)).call(n,function(t){Fu(e,t,i[t])}):$o?Xo(e,$o(i)):gf(r=XC(Object(i))).call(r,function(t){ca(e,t,To(i,t))})}return e}function ZC(e,t,n){var r=e.begin+e.content+e.end;return n&&(r=r.replace(/\[\\h\]/g,tT).replace(/\\h/g,tT)),new RegExp(r,t||"g")}function eT(){try{return new RegExp("(?<=.)"),!0}catch(r){}return!1}var tT="[ \\t\\u00a0]",nT="(?:[^\\n]*?\\S[^\\n]*?)",rT="[\\u0021-\\u002F\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e]",iT="[\\u0021-\\u002F\\u003a-\\u0040\\u005b\\u005d\\u005e\\u0060\\u007b-\\u007e \\t\\n！“”¥‘’（），。—：；《》？【】「」·～｜]",oT=new RegExp([/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+/.source,"@",/[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*/.source].join("")),aT=new RegExp("^".concat(oT.source,"$")),sT=new RegExp('(?:\\S+(?::\\S*)?@)?(?:(?:1\\d\\d|2[01]\\d|22[0-3]|[1-9]\\d?)(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:1\\d\\d|2[0-4]\\d|25[0-4]|[1-9]\\d?))|(?![-_])(?:[-\\w\\xa1-\\xff]{0,63}[^-_]\\.)+(?:[a-zA-Z\\xa1-\\xff]{2,}\\.?))(?::\\d{2,5})?(?:[/?#][^\\s<>\\x00-\\x1f"\\(\\)]*)?'),lT=new RegExp("(?:\\/\\/)".concat(sT.source)),cT=new RegExp("^".concat(sT.source,"$")),uT=new RegExp("^".concat(lT.source,"$")),dT=/^([ \t]*)([*+-][ ](\[[ x]\])?|[0-9一二三四五六七八九十零]+\.|[a-z]\.|\b(?:M{0,3}(?:CM|CD|D?C{0,3})(?:XC|XL|L?X{0,3})(?:IX|IV|V?I{0,3}))\b\.)([^\r\n]*)/;function hT(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n={begin:"(?:^|\\n)(\\n*)",content:["(\\h*\\|[^\\n]+\\|?\\h*)","\\n","(?:(?:\\h*\\|\\h*:?[-]{1,}:?\\h*)+\\|?\\h*)","((\\n\\h*\\|[^\\n]+\\|?\\h*)*)"].join(""),end:"(?=$|\\n)"};n.reg=ZC(n,"g",!0);var r={begin:"(?:^|\\n)(\\n*)",content:["(\\|?[^\\n|]+(\\|[^\\n|]+)+\\|?)","\\n","(?:\\|?\\h*:?[-]{1,}:?[\\h]*(?:\\|[\\h]*:?[-]{1,}:?\\h*)+\\|?)","((\\n\\|?([^\\n|]+(\\|[^\\n|]*)+)\\|?)*)"].join(""),end:"(?=$|\\n)"};return r.reg=ZC(r,"g",!0),!1===t?{strict:n,loose:r}:ZC({begin:"",content:Xu(e="(?:".concat(n.begin+n.content+n.end,"|")).call(e,r.begin+r.content+r.end,")"),end:""},"g",!0)}function fT(){var e={begin:/(?:^|\n)(\n*((?:>[\t ]*)*)(?:[^\S\n]*))(`{3,})([^`]*?)\n/,content:/([\w\W]*?)/,end:/[^\S\n]*\3[ \t]*(?=$|\n+)/,reg:new RegExp("")};return e.reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),JC(JC({},e),{},{begin:e.begin.source,content:e.content.source,end:e.end.source})}function pT(e,t){var n=e||"Item 1\n    Item 1.1\nItem 2";n=n.replace(/^\n+/,"").replace(/\n+$/,"");var r="1.";switch(t){case"ol":r="1.";break;case"ul":r="-";break;case"checklist":r="- [x]"}if(n=n.replace(/^(\s*)([0-9a-zA-Z]+\.|- \[x\]|- \[ \]|-) /gm,"$1"),"1."===r){var i={};n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,function(e,t,n){var r,o,a,s=(null===(r=t.match(/[ \t]/g))||void 0===r?void 0:r.length)||0;return i[s]=i[s]?i[s]+1:1,Xu(o=Xu(a="".concat(t)).call(a,i[s],". ")).call(o,n)})}else n=n.replace(/^(\s*)(\S[\s\S]*?)$/gm,"$1".concat(r," $2"));return n}function gT(){var e={begin:/(?:^|\n)(\n*(?:[^\S\n]*)):::([^:][^\n]+?)\s*\n/,content:/([\w\W]*?)/,end:/\n[ \t]*:::[ \t]*(?=$|\n+)/};return e.reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),e}function mT(){var e={begin:/(?:^|\n)(\n*(?:[^\S\n]*))\+\+\+([-]{0,1})\s+([^\n]+)\n/,content:/([\w\W]+?)/,end:/\n[ \t]*\+\+\+[ \t]*(?=$|\n+)/};return e.reg=new RegExp(e.begin.source+e.content.source+e.end.source,"g"),e}var vT=/(\[[^\n]*?\]\(data:image\/[a-z]{1,10};base64,)([^)]+)\)/g,AT=/(data:image\/[a-z]{1,10};base64,)([0-9a-zA-Z+/]+)/g,bT=/([^\n]{100})([^\n|`\s]{5900,})/g,yT=/(!\[[^\n]*?\]\([^)]+\)\{[^}]* data-xml=)([^}]+)\}/g,wT=/(!\[[^\n]*?\]\(data:image\/[a-z]{1,10};base64,[^)]+\)\{data-type=drawio data-xml=[^}]+\})/g,_T=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(fT().reg,function(e){return e.replace(/^.*$/gm,"/n")}).replace(/(`+)(.+?(?:\n.+?)*?)\1/g,function(e){return e.replace(/[![\]()]/g,".")})};function xT(e){(function(e){var t=/^(\s*)([I一二三四五六七八九十]+)\.(\s+)/,n=/^(\s*)([I一二三四五六七八九十]+)\.(\s+)$/;if(e.getOption("disableInput"))return!1;for(var r=e.listSelections(),i=[],o=0;o<r.length;o++){var a=r[o].head,s=e.getLine(a.line),l=t.exec(s),c=/^\s*$/.test(_x(s).call(s,0,a.ch));if(!r[o].empty()||c||!l)return;if(n.test(s))e.replaceRange("",{line:a.line,ch:0},{line:a.line,ch:a.ch+1}),i[o]="\n";else{var u,d=l[1],h=l[3];i[o]=Xu(u="\n".concat(d,"I.")).call(u,h)}}return e.replaceSelections(i),!0})(e)||e.execCommand("newlineAndIndentContinueMarkdownList")}var ET,ST,CT,TT,kT,OT,MT,IT,DT=["codemirror"],NT=function(){return mc(function e(t){var n=this;ua(this,e),Fu(this,"disableShortcut",function(){arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?n.editor.setOption("keyMap",n.options.keyMap):n.editor.setOption("keyMap","default")}),Fu(this,"dealSpecialWords",function(){if("hide"!==n.$cherry.status.editor){if(n.formatBigData2Mark(AT,"cm-url base64"),n.formatBigData2Mark(yT,"cm-url drawio"),n.formatBigData2Mark(bT,"cm-url long-text"),n.$cherry.options.editor.maxUrlLength>10){var e=function(e){var t="(\\]\\()([a-z][a-z0-9+.-]{1,31}:(?:\\/\\/)?[^\\s)]{".concat(e-10,",})\\)"),n="(\\]\\()(www\\.[^\\s)]{".concat(e-4,",})\\)");return[new RegExp(t,"g"),new RegExp(n,"g")]}(n.$cherry.options.editor.maxUrlLength),t=Yy(e,2),r=t[0],i=t[1];n.formatBigData2Mark(r,"cm-url url-truncated"),n.formatBigData2Mark(i,"cm-url url-truncated")}n.formatFullWidthMark()}}),Fu(this,"formatBigData2Mark",function(e,t){for(var r=n.editor,i=r.getSearchCursor(e),o=i.findNext();!1!==o;o=i.findNext()){var a,s,l=i.from();if(l){var c=null!==(a=o[2])&&void 0!==a?a:"",u=l.ch+(null===(s=o[1])||void 0===s?void 0:s.length),d=u+c.length,h=l.line,f={line:h,ch:u},p={line:h,ch:d};if(!(r.findMarks(f,p).length>0)){var g=OC("span","cm-string ".concat(t),{title:c});g.textContent=c,r.markText(f,p,{replacedWith:g,atomic:!0})}}}}),Fu(this,"onKeyup",function(e,t){var r=t.getCursor().line;n.previewer.highlightLine(r+1)}),Fu(this,"onScroll",function(e){if(n.$cherry.$event.emit("cleanAllSubMenus"),n.disableScrollListener)n.disableScrollListener=!1;else{var t=e.getScrollerElement();if(t.scrollTop<=0)n.previewer.scrollToLineNum(0);else if(t.scrollTop+t.clientHeight>=t.scrollHeight-20)n.previewer.scrollToLineNum(null);else{var r=e.getScrollInfo().top,i=e.lineAtHeight(r,"local"),o=e.charCoords({line:i,ch:0},"local"),a=e.getLineHandle(i).height,s=100*(r-(o.bottom-a))/a/100;n.previewer.scrollToLineNum(i+1,s)}}}),Fu(this,"onMouseDown",function(e,t){n.$cherry.$event.emit("cleanAllSubMenus");var r=e.getCursor().line,i=Math.abs(t.y-e.getWrapperElement().getBoundingClientRect().y);n.previewer.scrollToLineNumWithOffset(r+1,i),n.toHalfWidth(e,t)}),Fu(this,"onCursorActivity",function(){n.refreshWritingStatus()}),this.options={id:"code",name:"code",autoSave2Textarea:!1,editorDom:document.createElement("div"),wrapperDom:null,autoScrollByCursor:!0,convertWhenPaste:!0,keyMap:"sublime",showFullWidthMark:!0,showSuggestList:!0,codemirror:{lineNumbers:!1,cursorHeight:.85,indentUnit:4,tabSize:4,mode:{name:"yaml-frontmatter",base:{name:"gfm",gitHubSpice:!1}},lineWrapping:!0,indentWithTabs:!0,autofocus:!0,theme:"default",autoCloseTags:!0,extraKeys:{Enter:xT},matchTags:{bothTags:!0},placeholder:"",keyMap:"sublime"},toolbars:{},onKeydown:function(){},onChange:function(){},onFocus:function(){},onBlur:function(){},onPaste:this.onPaste,onScroll:this.onScroll},this.animation={},this.selectAll=!1;var r=t.codemirror,i=GA(t,DT);r&&Md(this.options.codemirror,r),Md(this.options,i),this.options.codemirror.keyMap=this.options.keyMap,this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId()},[{key:"formatFullWidthMark",value:function(){var e;if(this.options.showFullWidthMark){var t=this.editor,n=/[·￥、：“”【】（）《》]/,r=t.getSearchCursor(n),i=r.findNext();for(gf(e=t.getAllMarks()).call(e,function(e){if("cm-fullWidth"===e.className){var r=JSON.parse(Ew(zw(e).call(e))),i=t.getRange(r.from,r.to);n.test(i)||e.clear()}});!1!==i;i=r.findNext()){var o,a=r.from();if(a){var s={line:a.line,ch:a.ch},l={line:a.line,ch:a.ch+1};0===uo(o=t.findMarks(s,l)).call(o,function(e){return"cm-fullWidth"===e.className}).length&&t.markText(s,l,{className:"cm-fullWidth",title:"按住Ctrl/Cmd点击切换成半角（Hold down Ctrl/Cmd and click to switch to half-width）"})}}}}},{key:"toHalfWidth",value:function(e,t){var n=t.target;if(n instanceof HTMLElement&&n.classList.contains("cm-fullWidth")&&(t.ctrlKey||t.metaKey)&&1===t.buttons){var r=n.getBoundingClientRect(),i=e.coordsChar({left:r.left,top:r.top}),o={line:i.line,ch:i.ch+1};e.setSelection(i,o),e.replaceSelection(n.innerText.replace("·","`").replace("￥","$").replace("、","/").replace("：",":").replace("“",'"').replace("”",'"').replace("【","[").replace("】","]").replace("（","(").replace("）",")").replace("《","<").replace("》",">"))}}},{key:"onPaste",value:function(e,t){var n=e.clipboardData;n||(n=window.clipboardData),this.handlePaste(e,n,t)}},{key:"handlePaste",value:function(e,t,n){var r,i,o=this,a=this.$cherry.options.callback.onPaste(t,this.$cherry);if(!1!==a&&"string"==typeof a)return e.preventDefault(),void n.replaceSelection(a);var s=t.getData("Text/Html"),l=t.items;s=(s=s.replace(/^[\s\S]*<!--StartFragment-->|<!--EndFragment-->[\s\S]*$/g,"")).replace(/<!--[^>]+>/g,""),/<body>\s*<img [^>]+>\s*<\/body>/.test(s)&&"file"===(null===(r=l[1])||void 0===r?void 0:r.kind)&&null!==(i=l[1])&&void 0!==i&&i.type.match(/^image\//i)&&(s="");var c=n.getDoc();this.fileUploadCount=0;for(var u=function(){var t=l[d];if(t&&"file"===t.kind&&t.type.match(/^image\//i)){var n=t.getAsFile();o.$cherry.options.callback.fileUpload(n,function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o.fileUploadCount+=1,"string"==typeof e){var i=Xu(t="".concat(o.fileUploadCount>1?"\n":"")).call(t,qC(e,r,n));c.replaceSelection(i)}}),e.preventDefault()}},d=0;!s&&d<l.length;d++)u();var h=t.getData("text/plain");if(!s||!this.options.convertWhenPaste)return!0;var f=document.createElement("DIV");f.innerHTML=s,s=f.innerHTML;var p=Vx.run(s);if("string"==typeof p&&c_(p).call(p).length>0){var g=n.listSelections();if(n.getSelections().length<=1&&g[0]&&g[0].anchor){var m={};m.line=g[0].anchor.line,m.ch=g[0].anchor.ch,c.replaceSelection(p),IC.showSwitchBtnAfterPasteHtml(this.$cherry,m,n,h,p)}else c.replaceSelection(p);e.preventDefault()}f=null}},{key:"init",value:function(e){var t=this,n=this.options.editorDom.querySelector("#".concat(this.options.id));if(!(n instanceof HTMLTextAreaElement))throw new Error("The specific element is not a textarea.");var r=__.fromTextArea(n,this.options.codemirror);this.previewer=e,this.disableScrollListener=!1,this.options.value&&r.setOption("value",this.options.value),r.on("blur",function(e,n){t.options.onBlur(n,e),t.$cherry.$event.emit("blur",{evt:n,cherry:t.$cherry})}),r.on("focus",function(e,n){t.options.onFocus(n,e),t.$cherry.$event.emit("focus",{evt:n,cherry:t.$cherry})}),r.on("change",function(e,n){t.options.onChange(n,e),t.dealSpecialWords(),t.options.autoSave2Textarea&&e.save()}),r.on("keydown",function(e,n){t.options.onKeydown(n,e)}),r.on("keyup",function(e,n){t.onKeyup(n,e)}),r.on("paste",function(e,n){t.options.onPaste.call(t,n,e)}),this.options.autoScrollByCursor&&r.on("mousedown",function(e,n){_d(function(){t.onMouseDown(e,n)})}),r.on("drop",function(e,n){var r=n.dataTransfer.files||[];r&&r.length>0&&_d(function(){for(var n=function(n){var i=r[n],o=i.type||"";if(/\.(text|md)/.test(i.name)||/^text/i.test(o))return 1;t.$cherry.options.callback.fileUpload(i,function(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof r){e.setSelection(e.getCursor());var a=qC(r,o,i),s=n>0?"\n".concat(a," "):"".concat(a," ");e.replaceSelection(s),t.dealSpecialWords()}})},i=0;i<r.length;i++)n(i)},50)}),r.on("scroll",function(e){t.options.onScroll(e),"focus"===t.options.writingStyle&&t.refreshWritingStatus()}),r.on("cursorActivity",function(){t.onCursorActivity()}),r.on("beforeChange",function(e){t.selectAll=t.editor.getValue()===e.getSelection()}),DC(this.getEditorDom(),"wheel",function(){t.disableScrollListener=!1,cancelAnimationFrame(t.animation.timer),t.animation.timer=0},!1),this.editor=r,"normal"!==this.options.writingStyle&&this.initWritingStyle(),this.dealSpecialWords(),this.domWidth=this.getEditorDom().offsetWidth,new ResizeObserver(function(e){t.getEditorDom().offsetWidth!==t.domWidth&&"show"===t.$cherry.status.editor&&(t.domWidth=t.getEditorDom().offsetWidth,t.editor.refresh())}).observe(this.getEditorDom())}},{key:"jumpToLine",value:function(e,t,n){var r=this;if(null===e)return cancelAnimationFrame(this.animation.timer),this.disableScrollListener=!0,this.editor.scrollIntoView({line:this.editor.lineCount()-1,ch:1}),void(this.animation.timer=0);var i=this.editor.charCoords({line:e,ch:0},"local"),o=i.top;if(o+=(this.editor.charCoords({line:e+t,ch:0},"local").top-i.top)*n,this.animation.destinationTop=Math.ceil(o-15),!this.animation.timer){var a=function(){var e=r.editor.getScrollInfo().top,t=r.animation.destinationTop-e,n=Math.ceil(Math.min(Math.abs(t),Math.max(1,Math.abs(t)/(100/16.7))));if(t>0){if(e>=r.animation.destinationTop)return void(r.animation.timer=0);r.disableScrollListener=!0,r.editor.scrollTo(null,e+n)}else{if(!(t<0))return void(r.animation.timer=0);if(e<=r.animation.destinationTop||e<=0)return void(r.animation.timer=0);r.disableScrollListener=!0,r.editor.scrollTo(null,e-n)}e===r.editor.getScrollInfo().top||n>=Math.abs(t)?r.animation.timer=0:r.animation.timer=requestAnimationFrame(a)};this.animation.timer=requestAnimationFrame(a)}}},{key:"scrollToLineNum",value:function(e,t,n){if(null!==e){var r=Math.max(0,e);this.jumpToLine(r,t,n),jC.log("滚动预览区域，左侧应scroll to ",r)}else this.jumpToLine(null)}},{key:"getEditorDom",value:function(){return this.options.editorDom}},{key:"addListener",value:function(e,t){this.editor.on(e,t)}},{key:"initWritingStyle",value:function(){var e,t,n=this.options.writingStyle,r="cherry-editor-writing-style--".concat(n),i=this.getEditorDom();gf(e=uo(t=u_(i.classList)).call(t,function(e){return m_(e).call(e,"cherry-editor-writing-style--")})).call(e,function(e){return i.classList.remove(e)}),"normal"!==n&&(i.classList.add(r),this.refreshWritingStatus())}},{key:"refreshWritingStatus",value:function(){var e,t,n=this.options.writingStyle;if("focus"===n||"typewriter"===n){var r="cherry-editor-writing-style--".concat(n),i=document.querySelector("#cherry-editor-writing-style")||document.createElement("style");i.id="cherry-editor-writing-style",zw(e=u_(document.head.childNodes)).call(e,function(e){return e===i})||document.head.appendChild(i);var o=i.sheet;if(gf(t=u_(Array(o.cssRules.length))).call(t,function(){return o.deleteRule(0)}),"focus"===n){var a,s,l=this.getEditorDom().getBoundingClientRect(),c=this.editor.charCoords(this.editor.getCursor()),u=c.top,d=c.bottom,h=u-l.top,f=l.height-(d-l.top);o.insertRule(Xu(a=".".concat(r,"::before { height: ")).call(a,h>0?h:0,"px; }"),0),o.insertRule(Xu(s=".".concat(r,"::after { height: ")).call(s,f>0?f:0,"px; }"),0)}if("typewriter"===n){var p,g,m=this.editor.getScrollInfo().clientHeight/2;o.insertRule(Xu(p=".".concat(r," .CodeMirror-lines::before { height: ")).call(p,m,"px; }"),0),o.insertRule(Xu(g=".".concat(r," .CodeMirror-lines::after { height: ")).call(g,m,"px; }"),0),this.editor.scrollTo(null,this.editor.cursorCoords(null,"local").top-m)}}}},{key:"setWritingStyle",value:function(e){this.options.writingStyle=e,this.initWritingStyle()}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.editor.setOption("value",e)}}])}();function RT(){return ST?ET:(ST=1,Ps(),ET=eo()("Array","keys"))}function LT(){return TT?CT:(TT=1,CT=RT())}function BT(){if(OT)return kT;OT=1,$s();var e=dn(),t=_t(),n=De(),r=LT(),i=Array.prototype,o={DOMTokenList:!0,NodeList:!0};return kT=function(a){var s=a.keys;return a===i||n(i,a)&&s===i.keys||t(o,e(a))?r:s}}var PT,FT,$T,jT,HT,UT,QT,zT,WT,GT=i(IT?MT:(IT=1,MT=BT())),VT={};function KT(){return $T?FT:($T=1,function(){if(PT)return VT;PT=1;var e=sn(),t=hi().findIndex,n=Es(),r="findIndex",i=!0;r in[]&&Array(1)[r](function(){i=!1}),e({target:"Array",proto:!0,forced:i},{findIndex:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),n(r)}(),FT=eo()("Array","findIndex"))}function YT(){if(HT)return jT;HT=1;var e=De(),t=KT(),n=Array.prototype;return jT=function(r){var i=r.findIndex;return r===n||e(n,r)&&i===n.findIndex?t:i}}function qT(){return QT?UT:(QT=1,UT=YT())}var XT,JT,ZT,ek,tk,nk,rk,ik,ok,ak,sk,lk=i(WT?zT:(WT=1,zT=qT())),ck={};function uk(){if(JT)return XT;JT=1;var e=Fe(),t=TypeError;return XT=function(n,r){if(!delete n[r])throw new t("Cannot delete property "+e(r)+" of "+e(n))}}function dk(){return tk?ek:(tk=1,function(){if(ZT)return ck;ZT=1;var e=sn(),t=wt(),n=Jn(),r=Xn(),i=er(),o=Lb(),a=_a(),s=di(),l=Mo(),c=uk(),u=Zi()("splice"),d=Math.max,h=Math.min;e({target:"Array",proto:!0,forced:!u},{splice:function(e,u){var f,p,g,m,v,A,b=t(this),y=i(b),w=n(e,y),_=arguments.length;for(0===_?f=p=0:1===_?(f=0,p=y-w):(f=_-2,p=h(d(r(u),0),y-w)),a(y+f-p),g=s(b,p),m=0;m<p;m++)(v=w+m)in b&&l(g,m,b[v]);if(g.length=p,f<p){for(m=w;m<y-p;m++)A=m+f,(v=m+p)in b?b[A]=b[v]:c(b,A);for(m=y;m>y-p+f;m--)c(b,m-1)}else if(f>p)for(m=y-p;m>w;m--)A=m+f-1,(v=m+p-1)in b?b[A]=b[v]:c(b,A);for(m=0;m<f;m++)b[m+w]=arguments[m+2];return o(b,y-p+f),g}})}(),ek=eo()("Array","splice"))}function hk(){if(rk)return nk;rk=1;var e=De(),t=dk(),n=Array.prototype;return nk=function(r){var i=r.splice;return r===n||e(n,r)&&i===n.splice?t:i}}function fk(){return ok?ik:(ok=1,ik=hk())}var pk=i(sk?ak:(sk=1,ak=fk())),gk=!1,mk={SEN:"sentence",PAR:"paragraph",DEFAULT:"sentence"},vk=function(){return mc(function e(t){ua(this,e),Fu(this,"$engine",void 0),Fu(this,"$locale",void 0),Fu(this,"$externals",void 0),this.RULE=this.rule(t)},[{key:"getType",value:function(){return this.constructor.HOOK_TYPE||mk.DEFAULT}},{key:"getName",value:function(){return this.constructor.HOOK_NAME}},{key:"afterInit",value:function(e){"function"==typeof e&&e()}},{key:"setLocale",value:function(e){this.$locale=e}},{key:"beforeMakeHtml",value:function(e){return e}},{key:"makeHtml",value:function(e){return e}},{key:"afterMakeHtml",value:function(e){return e}},{key:"onKeyDown",value:function(e,t){}},{key:"getOnKeyDown",value:function(){return this.onKeyDown||!1}},{key:"getAttributesTest",value:function(){return/^(color|fontSize|font-size|id|title|class|target|underline|line-through|overline|sub|super)$/}},{key:"$testAttributes",value:function(e,t){this.getAttributesTest().test(e)&&t()}},{key:"getAttributes",value:function(e){return{attrs:{},str:e}}},{key:"test",value:function(e){return!!this.RULE.reg&&this.RULE.reg.test(e)}},{key:"rule",value:function(e){return{begin:"",end:"",content:"",reg:new RegExp("")}}},{key:"mounted",value:function(){}}],[{key:"getMathJaxConfig",value:function(){return gk}},{key:"setMathJaxConfig",value:function(e){gk=e}}])}();function Ak(e,t){var n,r,i,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return/^\n/.test(e)?o?(null!==(n=null===(r=e.match(/^\n+/g))||void 0===r||null===(i=r[0])||void 0===i?void 0:i.length)&&void 0!==n?n:0)>1?"\n\n".concat(t):"\n".concat(t):"\n\n".concat(t):t}function bk(e,t){var n=(e.match(/\n/g)||[]).length;return""!==e&&(n-=2),n+t}function yk(e,t){if(QC(t))return t}function wk(e){return"undefined"!=typeof localStorage&&null!==localStorage.getItem("cherry-".concat(e))}function _k(){var e="false";return"undefined"!=typeof localStorage&&(e=localStorage.getItem("cherry-classicBr")),"true"===e}function xk(e,t){var n;return"undefined"!=typeof localStorage&&!!localStorage.getItem(Xu(n="".concat(e,"-")).call(n,t))}function Ek(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"cherry",n="default";if("undefined"!=typeof localStorage){var r=localStorage.getItem("".concat(t,"-theme"));r&&(n=r)}return e?"theme__".concat(n):n}function Sk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=(t||Ek(!1,e.nameSpace)).replace(/^.*theme__/,""),r=" theme__".concat(n);e.wrapperDom.className=e.wrapperDom.className.replace(/ theme__[^ $]+?( |$)/g," ")+r,e.previewer.getDomContainer().className=e.previewer.getDomContainer().className.replace(/ theme__[^ $]+?( |$)/g," ")+r,function(e,t){"undefined"!=typeof localStorage&&localStorage.setItem("".concat(e,"-theme"),t)}(e.nameSpace,n)}function Ck(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cherry",t="default";if("undefined"!=typeof localStorage){var n=localStorage.getItem("".concat(e,"-codeTheme"));n&&(t=n)}return t}function Tk(e,t){var n=t||Ck(e.nameSpace);e.wrapperDom.setAttribute("data-code-block-theme",n),function(e,t){"undefined"!=typeof localStorage&&localStorage.setItem("".concat(e,"-codeTheme"),t)}(e.nameSpace,n)}Fu(vk,"HOOK_NAME","default"),Fu(vk,"HOOK_TYPE",mk.DEFAULT);var kk,Ok,Mk,Ik,Dk,Nk,Rk,Lk={};function Bk(){return Mk?Ok:(Mk=1,function(){if(kk)return Lk;kk=1;var e=sn(),t=k(),n=Jn(),r=RangeError,i=String.fromCharCode,o=String.fromCodePoint,a=t([].join);e({target:"String",stat:!0,arity:1,forced:!!o&&1!==o.length},{fromCodePoint:function(e){for(var t,o=[],s=arguments.length,l=0;s>l;){if(t=+arguments[l++],n(t,1114111)!==t)throw new r(t+" is not a valid code point");o[l]=t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320)}return a(o,"")}})}(),Ok=Me().String.fromCodePoint)}function Pk(){return Dk?Ik:(Dk=1,Ik=Bk())}var Fk,$k,jk=i(Rk?Nk:(Rk=1,Nk=Pk()));function Hk(e,t){var n=$h(e);if(Xi){var r=Xi(e);t&&(r=uo(r).call(r,function(t){return To(e,t).enumerable})),n.push.apply(n,r)}return n}function Uk(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?gf(n=Hk(Object(i),!0)).call(n,function(t){Fu(e,t,i[t])}):$o?Xo(e,$o(i)):gf(r=Hk(Object(i))).call(r,function(t){ca(e,t,To(i,t))})}return e}var Qk={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#x27;"},zk={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},Wk=Uk(Uk(Uk(Uk(Uk(Uk({},{34:"&quot;",38:"&amp;",39:"&apos;",60:"&lt;",62:"&gt;"}),{192:"&Agrave;",193:"&Aacute;",194:"&Acirc;",195:"&Atilde;",196:"&Auml;",197:"&Aring;",198:"&AElig;",199:"&Ccedil;",200:"&Egrave;",201:"&Eacute;",202:"&Ecirc;",203:"&Euml;",204:"&Igrave;",205:"&Iacute;",206:"&Icirc;",207:"&Iuml;",208:"&ETH;",209:"&Ntilde;",210:"&Ograve;",211:"&Oacute;",212:"&Ocirc;",213:"&Otilde;",214:"&Ouml;",216:"&Oslash;",217:"&Ugrave;",218:"&Uacute;",219:"&Ucirc;",220:"&Uuml;",221:"&Yacute;",222:"&THORN;",223:"&szlig;",224:"&agrave;",225:"&aacute;",226:"&acirc;",227:"&atilde;",228:"&auml;",229:"&aring;",230:"&aelig;",231:"&ccedil;",232:"&egrave;",233:"&eacute;",234:"&ecirc;",235:"&euml;",236:"&igrave;",237:"&iacute;",238:"&icirc;",239:"&iuml;",240:"&eth;",241:"&ntilde;",242:"&ograve;",243:"&oacute;",244:"&ocirc;",245:"&otilde;",246:"&ouml;",248:"&oslash;",249:"&ugrave;",250:"&uacute;",251:"&ucirc;",252:"&uuml;",253:"&yacute;",254:"&thorn;",255:"&yuml;"}),{160:"&nbsp;",161:"&iexcl;",162:"&cent;",163:"&pound;",164:"&curren;",165:"&yen;",166:"&brvbar;",167:"&sect;",168:"&uml;",169:"&copy;",170:"&ordf;",171:"&laquo;",172:"&not;",173:"&shy;",174:"&reg;",175:"&macr;",176:"&deg;",177:"&plusmn;",178:"&sup2;",179:"&sup3;",180:"&acute;",181:"&micro;",182:"&para;",184:"&cedil;",185:"&sup1;",186:"&ordm;",187:"&raquo;",188:"&frac14;",189:"&frac12;",190:"&frac34;",191:"&iquest;",215:"&times;",247:"&divide;"}),{8704:"&forall;",8706:"&part;",8707:"&exist;",8709:"&empty;",8711:"&nabla;",8712:"&isin;",8713:"&notin;",8715:"&ni;",8719:"&prod;",8721:"&sum;",8722:"&minus;",8727:"&lowast;",8730:"&radic;",8733:"&prop;",8734:"&infin;",8736:"&ang;",8743:"&and;",8744:"&or;",8745:"&cap;",8746:"&cup;",8747:"&int;",8756:"&there4;",8764:"&sim;",8773:"&cong;",8776:"&asymp;",8800:"&ne;",8801:"&equiv;",8804:"&le;",8805:"&ge;",8834:"&sub;",8835:"&sup;",8836:"&nsub;",8838:"&sube;",8839:"&supe;",8853:"&oplus;",8855:"&otimes;",8869:"&perp;",8901:"&sdot;"}),{913:"&Alpha;",914:"&Beta;",915:"&Gamma;",916:"&Delta;",917:"&Epsilon;",918:"&Zeta;",919:"&Eta;",920:"&Theta;",921:"&Iota;",922:"&Kappa;",923:"&Lambda;",924:"&Mu;",925:"&Nu;",926:"&Xi;",927:"&Omicron;",928:"&Pi;",929:"&Rho;",931:"&Sigma;",932:"&Tau;",933:"&Upsilon;",934:"&Phi;",935:"&Chi;",936:"&Psi;",937:"&Omega;",945:"&alpha;",946:"&beta;",947:"&gamma;",948:"&delta;",949:"&epsilon;",950:"&zeta;",951:"&eta;",952:"&theta;",953:"&iota;",954:"&kappa;",955:"&lambda;",956:"&mu;",957:"&nu;",958:"&xi;",959:"&omicron;",960:"&pi;",961:"&rho;",962:"&sigmaf;",963:"&sigma;",964:"&tau;",965:"&upsilon;",966:"&phi;",967:"&chi;",968:"&psi;",969:"&omega;",977:"&thetasym;",978:"&upsih;",982:"&piv;"}),{338:"&OElig;",339:"&oelig;",352:"&Scaron;",353:"&scaron;",376:"&Yuml;",402:"&fnof;",710:"&circ;",732:"&tilde;",8194:"&ensp;",8195:"&emsp;",8201:"&thinsp;",8204:"&zwnj;",8205:"&zwj;",8206:"&lrm;",8207:"&rlm;",8211:"&ndash;",8212:"&mdash;",8216:"&lsquo;",8217:"&rsquo;",8218:"&sbquo;",8220:"&ldquo;",8221:"&rdquo;",8222:"&bdquo;",8224:"&dagger;",8225:"&Dagger;",8226:"&bull;",8230:"&hellip;",8240:"&permil;",8242:"&prime;",8243:"&Prime;",8249:"&lsaquo;",8250:"&rsaquo;",8254:"&oline;",8364:"&euro;",8482:"&trade;",8592:"&larr;",8593:"&uarr;",8594:"&rarr;",8595:"&darr;",8596:"&harr;",8629:"&crarr;",8968:"&lceil;",8969:"&rceil;",8970:"&lfloor;",8971:"&rfloor;",9674:"&loz;",9824:"&spades;",9827:"&clubs;",9829:"&hearts;",9830:"&diams;"}),Gk=$h(Wk),Vk=_h(Gk).call(Gk,function(e){return Wk[e].replace(/^&(\w+);$/g,function(e,t){return t.toLowerCase()})}),Kk=function(e){return"string"!=typeof e||e.length<=0},Yk=function(e){try{var t=jk(e);return!Kk(t)}catch(e){return!1}},qk=["h1|h2|h3|h4|h5|h6","ul|ol|li|dd|dl|dt","table|thead|tbody|tfoot|col|colgroup|th|td|tr","div|article|section|footer|aside|details|summary|code|audio|video|canvas|figure","address|center|cite|p|pre|blockquote|marquee|caption|figcaption|track|source|output|svg"].join("|"),Xk=["span|a|link|b|s|i|del|u|em|strong|sup|sub|kbd","nav|font|bdi|samp|map|area|small|time|bdo|var|wbr|meter|dfn","ruby|rt|rp|mark|q|progress|input|textarea|select|ins"].join("|"),Jk=new RegExp(Xu(Fk=Xu($k="^(".concat(qk,"|")).call($k,Xk,"|")).call(Fk,"br|img|hr",")( |$|/)"),"i");function Zk(e,t){return"string"!=typeof e?"":e.replace(/[<>&"']/g,function(e){return Qk[e]||e})}function eO(e,t){if("string"!=typeof e)return"";var n=tO(e);return n=function(e){return"string"!=typeof e?"":e.replace(/&(\w+);?/g,function(e,t){return zk[t]||e})}(n),Zk(n)}function tO(e){return e.replace(/&#(\d+);?/g,function(e,t){return Wk[t]||e})}function nO(e){var t=function(e){return e.replace(/&#x([0-9a-f]+);?/gi,function(e,t){var n=Bx("0x".concat(t),16);try{return jk(n)}catch(t){return e}})}(function(e){return e.replace(/&#(\d+);?/g,function(e,t){try{return jk(t)}catch(t){return e}})}(e)).match(/^\s*([\w\W]+?)(?=:)/i);if(!t)return!0;var n=["javascript","data"],r=t[1].replace(/[\s]/g,"");return-1===yx(n).call(n,r.toLowerCase())}function rO(e){return encodeURI(e).replace(/%25/g,"%")}function iO(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(iO=function(){return!!e})()}var oO=0,aO=function(){function e(){var t,n,r,i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{needCache:!1},a=o.needCache,s=o.defaultCache,l=void 0===s?{}:s;return ua(this,e),n=this,i=[{}],r=wu(r=e),(t=Ac(n,iO()?pr(r,i||[],wu(n).constructor):r.apply(n,i))).needCache=!!a,t.sign="",a&&(t.cache=l||{},t.cacheKey="~~C".concat(oO),oO+=1),t.failedResetCacheTimes=0,t}return Pu(e,vk),mc(e,[{key:"initBrReg",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.classicBr=wk("classicBr")?_k():e,this.removeBrAfterBlock=null,this.removeBrBeforeBlock=null,this.removeNewlinesBetweenTags=null}},{key:"$cleanParagraph",value:function(e){var t=e.replace(/^\n+/,"").replace(/\n+$/,"");return this.classicBr?t:this.joinRawHtml(t).replace(/\n/g,"<br>").replace(/\r/g,"\n")}},{key:"joinRawHtml",value:function(e){if(!this.removeBrAfterBlock){var t,n,r,i,o=null!==(t=null===(n=this.$engine.htmlWhiteListAppend)||void 0===n?void 0:n.split("|"))&&void 0!==t?t:[];o=uo(r=_h(o).call(o,function(e){return/[a-z-]+/gi.test(e)?e:null})).call(r,function(e){return null!==e});var a=Xu(o).call(o,qk).join("|");this.removeBrAfterBlock=new RegExp("<(".concat(a,")(>| [^>]*?>)[^\\S\\n]*?\\n"),"ig"),this.removeBrBeforeBlock=new RegExp("\\n[^\\S\\n]*?<\\/(".concat(a,")>[^\\S\\n]*?\\n"),"ig"),this.removeNewlinesBetweenTags=new RegExp(Xu(i="<\\/(".concat(a,")>[^\\S\\n]*?\\n([^\\S\\n]*?)<(")).call(i,a,")(>| [^>]*?>)"),"ig")}return e.replace(this.removeBrAfterBlock,"<$1$2").replace(this.removeBrBeforeBlock,"</$1>").replace(this.removeNewlinesBetweenTags,"</$1>\r$2<$3$4")}},{key:"toHtml",value:function(e,t){return e}},{key:"beforeMakeHtml",value:function(e){return e}},{key:"makeHtml",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return{sign:"",html:e}};return this.needCache?e:t(e).html}},{key:"afterMakeHtml",value:function(e){return this.restoreCache(e)}},{key:"isContainsCache",value:function(t,n){if(n){var r=/^(\s*~~C\d+I\w+\$\s*)+$/g.test(t),i=new RegExp("~~C\\d+I".concat(e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,"\\w+\\$"),"g").test(t);return r&&!i}return new RegExp("~~C\\d+I(?!".concat(e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")\\w+\\$"),"g").test(t)}},{key:"$splitHtmlByCache",value:function(t){var n=new RegExp("\\n*~~C\\d+I(?!".concat(e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")\\w+\\$\\n?"),"g");return{caches:t.match(n),contents:t.split(n)}}},{key:"makeExcludingCached",value:function(e,t){for(var n=this.$splitHtmlByCache(e),r=n.caches,i=n.contents,o=_h(i).call(i,t),a="",s=0;s<o.length;s++){var l;a+=o[s],r&&r[s]&&(a+=c_(l=r[s]).call(l))}return a}},{key:"getCacheWithSpace",value:function(e,t){var n,r,i,o,a,s,l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=null!==(n=null===(r=t.match(/^\n+/))||void 0===r?void 0:r[0])&&void 0!==n?n:"",u=null!==(i=null===(o=t.match(/\n+$/))||void 0===o?void 0:o[0])&&void 0!==i?i:"";return l?Ak(t,e):Xu(a=Xu(s="".concat(c)).call(s,e)).call(a,u)}},{key:"getLineCount",value:function(t){var n,r,i,o=t,a=null!==(n=null===(r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"").match(/^\n+/g))||void 0===r||null===(i=r[0])||void 0===i?void 0:i.length)&&void 0!==n?n:0;a=1===a?1:0,o=o.replace(/^\n+/g,"");var s=new RegExp("\n*~~C\\d+I(?:".concat(e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+?_L(\\d+)\\$"),"g"),l=0;return o=o.replace(s,function(e,t){return l+=Bx(t,10),e.replace(/^\n+/g,"")}),a+l+(o.match(/\n/g)||[]).length+1}},{key:"pushCache",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.needCache){var o=r||this.$engine.hash(e),a=Xu(t=Xu(n="".concat(this.cacheKey,"I")).call(n,o,"_L")).call(t,i,"$");return this.cache[o]={content:e,key:a},a}}},{key:"popCache",value:function(e){if(this.needCache)return this.cache[e].content||""}},{key:"testHasCache",value:function(e){return!(!this.needCache||!this.cache[e])&&this.cache[e].key}},{key:"resetCache",value:function(){this.needCache&&(this.cache={})}},{key:"restoreCache",value:function(t){var n,r=this;if(!this.needCache)return t;var i=new RegExp(Xu(n="".concat(this.cacheKey,"I((?:")).call(n,e.IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX,")?\\w+)\\$"),"g"),o=t.replace(i,function(e,t){return r.popCache(t.replace(/_L\d+$/,""))});return this.timer&&(clearTimeout(this.timer),this.failedResetCacheTimes+=1,this.timer=null),this.timer=_d(function(){r.resetCache()},500),this.failedResetCacheTimes>5&&(this.failedResetCacheTimes=0,_d(function(){r.resetCache()},500)),o}},{key:"checkCache",value:function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.sign=this.$engine.hash(e),this.cache[this.sign]?Xu(n=Xu(r="".concat(this.cacheKey,"I")).call(r,this.sign,"_L")).call(n,i,"$"):this.toHtml(e,t)}},{key:"mounted",value:function(){}},{key:"signWithCache",value:function(e){return!1}}])}();Fu(aO,"HOOK_TYPE",mk.PAR),Fu(aO,"IN_PARAGRAPH_CACHE_KEY_PREFIX","!"),Fu(aO,"IN_PARAGRAPH_CACHE_KEY_PREFIX_REGEX","\\!");var sO,lO,cO,uO,dO,hO,fO,pO,gO,mO,vO,AO,bO,yO,wO,_O={},xO={exports:{}};function EO(){return lO?sO:(lO=1,sO=S()(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))}function SO(){if(uO)return cO;uO=1;var e=S(),t=Oe(),n=O(),r=EO(),i=Object.isExtensible,o=e(function(){});return cO=o||r?function(e){return!!t(e)&&(!r||"ArrayBuffer"!==n(e))&&(!i||i(e))}:i}function CO(){return hO?dO:(hO=1,dO=!S()(function(){return Object.isExtensible(Object.preventExtensions({}))}))}function TO(){if(fO)return xO.exports;fO=1;var e=sn(),t=k(),n=nr(),r=Oe(),i=_t(),o=on().f,a=yr(),s=xr(),l=SO(),c=xt(),u=CO(),d=!1,h=c("meta"),f=0,p=function(e){o(e,h,{value:{objectID:"O"+f++,weakData:{}}})},g=xO.exports={enable:function(){g.enable=function(){},d=!0;var n=a.f,r=t([].splice),i={};i[h]=1,n(i).length&&(a.f=function(e){for(var t=n(e),i=0,o=t.length;i<o;i++)if(t[i]===h){r(t,i,1);break}return t},e({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:s.f}))},fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,h)){if(!l(e))return"F";if(!t)return"E";p(e)}return e[h].objectID},getWeakData:function(e,t){if(!i(e,h)){if(!l(e))return!0;if(!t)return!1;p(e)}return e[h].weakData},onFreeze:function(e){return u&&d&&l(e)&&!i(e,h)&&p(e),e}};return n[h]=!0,xO.exports}function kO(){if(gO)return pO;gO=1;var e=sn(),t=E(),n=TO(),r=S(),i=an(),o=BE(),a=xS(),s=I(),l=Oe(),c=Ce(),u=ai(),d=on().f,h=hi().forEach,f=P(),p=li(),g=p.set,m=p.getterFor;return pO=function(p,v,A){var b,y=-1!==p.indexOf("Map"),w=-1!==p.indexOf("Weak"),_=y?"set":"add",x=t[p],E=x&&x.prototype,S={};if(f&&s(x)&&(w||E.forEach&&!r(function(){(new x).entries().next()}))){var C=(b=v(function(e,t){g(a(e,C),{type:p,collection:new x}),c(t)||o(t,e[_],{that:e,AS_ENTRIES:y})})).prototype,T=m(p);h(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(e){var t="add"===e||"set"===e;!(e in E)||w&&"clear"===e||i(C,e,function(n,r){var i=T(this).collection;if(!t&&w&&!l(n))return"get"===e&&void 0;var o=i[e](0===n?0:n,r);return t?this:o})}),w||d(C,"size",{configurable:!0,get:function(){return T(this).collection.size}})}else b=A.getConstructor(v,p,y,_),n.enable();return u(b,p,!1,!0),S[p]=b,e({global:!0,forced:!0},S),w||A.setStrong(b,p,y),b},pO}function OO(){if(vO)return mO;vO=1;var e=Ir();return mO=function(t,n,r){for(var i in n)r&&r.unsafe&&t[i]?t[i]=n[i]:e(t,i,n[i],r);return t},mO}function MO(){if(bO)return AO;bO=1;var e=cr(),t=Dr(),n=OO(),r=It(),i=xS(),o=Ce(),a=BE(),s=Ls(),l=Bs(),c=_S(),u=P(),d=TO().fastKey,h=li(),f=h.set,p=h.getterFor;return AO={getConstructor:function(s,l,c,h){var g=s(function(t,n){i(t,m),f(t,{type:l,index:e(null),first:void 0,last:void 0,size:0}),u||(t.size=0),o(n)||a(n,t[h],{that:t,AS_ENTRIES:c})}),m=g.prototype,v=p(l),A=function(e,t,n){var r,i,o=v(e),a=b(e,t);return a?a.value=n:(o.last=a={index:i=d(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),u?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},b=function(e,t){var n,r=v(e),i=d(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===t)return n};return n(m,{clear:function(){for(var t=v(this),n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),n=n.next;t.first=t.last=void 0,t.index=e(null),u?t.size=0:this.size=0},delete:function(e){var t=this,n=v(t),r=b(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first===r&&(n.first=i),n.last===r&&(n.last=o),u?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=v(this),i=r(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(i(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),n(m,c?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return A(this,0===e?0:e,t)}}:{add:function(e){return A(this,e=0===e?0:e,e)}}),u&&t(m,"size",{configurable:!0,get:function(){return v(this).size}}),g},setStrong:function(e,t,n){var r=t+" Iterator",i=p(t),o=p(r);s(e,t,function(e,t){f(this,{type:r,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?l("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=void 0,l(void 0,!0))},n?"entries":"values",!n,!0),c(t)}},AO}function IO(){return wO||(wO=1,yO||(yO=1,kO()("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},MO()))),_O}var DO,NO,RO,LO,BO,PO,FO,$O,jO,HO,UO,QO,zO={};function WO(){return NO||(NO=1,DO=function(e,t){return 1===t?function(t,n){return t[e](n)}:function(t,n,r){return t[e](n,r)}}),DO}function GO(){if(LO)return RO;LO=1;var e=Ie(),t=WO(),n=e("Map");return RO={Map:n,set:t("set",2),get:t("get",1),has:t("has",1),remove:t("delete",1),proto:n.prototype}}function VO(){if(BO)return zO;BO=1;var e=sn(),t=k(),n=$e(),r=Te(),i=BE(),o=GO(),a=vt(),s=S(),l=o.Map,c=o.has,u=o.get,d=o.set,h=t([].push),f=a||s(function(){return 1!==l.groupBy("ab",function(e){return e}).get("a").length});return e({target:"Map",stat:!0,forced:a||f},{groupBy:function(e,t){r(e),n(t);var o=new l,a=0;return i(e,function(e){var n=t(e,a++);c(o,n)?h(u(o,n),e):d(o,n,[e])}),o}}),zO}function KO(){return FO?PO:(FO=1,Ps(),IO(),VO(),Nl(),PO=Me().Map)}function YO(){if(jO)return $O;jO=1;var e=KO();return $s(),$O=e}function qO(){if(QO)return UO;QO=1;var e=YO();return HO||(HO=1,VO()),UO=e}var XO,JO,ZO,eM={};function tM(){if(JO)return XO;JO=1;var e=It(),t=rn(),n=wt(),r=BE();return XO=function(i,o,a){return function(s){var l=n(s),c=arguments.length,u=c>1?arguments[1]:void 0,d=void 0!==u,h=d?e(u,c>2?arguments[2]:void 0):void 0,f=new i,p=0;return r(l,function(e){var n=d?h(e,p++):e;a?o(f,t(n)[0],n[1]):o(f,n)}),f}},XO}var nM,rM,iM,oM={};function aM(){if(rM)return nM;rM=1;var e=rn();return nM=function(t,n,r){return function(){for(var i=new t,o=arguments.length,a=0;a<o;a++){var s=arguments[a];r?n(i,e(s)[0],s[1]):n(i,s)}return i}},nM}var sM,lM,cM,uM={};function dM(){if(lM)return sM;lM=1;var e=Fe(),t=TypeError;return sM=function(n){if("object"==typeof n&&"size"in n&&"has"in n&&"get"in n&&"set"in n&&"delete"in n&&"entries"in n)return n;throw new t(e(n)+" is not a map")}}var hM,fM,pM,gM,mM,vM,AM={},bM={};function yM(){if(pM)return fM;pM=1;var e=F();return fM=function(t,n,r){for(var i,o,a=r?t:t.iterator,s=t.next;!(i=e(s,a)).done;)if(void 0!==(o=n(i.value)))return o},fM}function wM(){if(mM)return gM;mM=1;var e=yM();return gM=function(t,n,r){return r?e(t.entries(),function(e){return n(e[1],e[0])},!0):t.forEach(n)},gM}var _M,xM,EM,SM,CM,TM,kM={},OM={},MM={},IM={};function DM(){return CM||(CM=1,SM=function(e,t){return e===t||e!=e&&t!=t}),SM}var NM,RM,LM,BM,PM,FM,$M,jM,HM,UM,QM,zM,WM,GM,VM,KM,YM={},qM={},XM={},JM={},ZM={},eI={},tI={},nI={};function rI(){if(UM)return HM;UM=1;var e=F(),t=$e(),n=I(),r=rn(),i=TypeError;return HM=function(o,a){var s,l=r(this),c=t(l.get),u=t(l.has),d=t(l.set),h=arguments.length>2?arguments[2]:void 0;if(!n(a)&&!n(h))throw new i("At least one callback required");return e(u,l,o)?(s=e(c,l,o),n(a)&&(s=a(s),e(d,l,o,s))):n(h)&&(s=h(),e(d,l,o,s)),s},HM}function iI(){if(GM)return WM;GM=1;var e=qO();return function(){if(ZO)return eM;ZO=1;var e=sn(),t=GO();e({target:"Map",stat:!0,forced:!0},{from:tM()(t.Map,t.set,!0)})}(),function(){if(iM)return oM;iM=1;var e=sn(),t=GO();e({target:"Map",stat:!0,forced:!0},{of:aM()(t.Map,t.set,!0)})}(),function(){if(cM)return uM;cM=1;var e=sn(),t=dM(),n=GO().remove;e({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,r=t(this),i=!0,o=0,a=arguments.length;o<a;o++)e=n(r,arguments[o]),i=i&&e;return!!i}})}(),function(){if(hM)return AM;hM=1;var e=sn(),t=dM(),n=GO(),r=n.get,i=n.has,o=n.set;e({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,n){var a,s,l=t(this);return i(l,e)?(a=r(l,e),"update"in n&&(a=n.update(a,e,l),o(l,e,a)),a):(s=n.insert(e,l),o(l,e,s),s)}})}(),function(){if(vM)return bM;vM=1;var e=sn(),t=It(),n=dM(),r=wM();e({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var i=n(this),o=t(e,arguments.length>1?arguments[1]:void 0);return!1!==r(i,function(e,t){if(!o(e,t,i))return!1},!0)}})}(),function(){if(_M)return kM;_M=1;var e=sn(),t=It(),n=dM(),r=GO(),i=wM(),o=r.Map,a=r.set;e({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var r=n(this),s=t(e,arguments.length>1?arguments[1]:void 0),l=new o;return i(r,function(e,t){s(e,t,r)&&a(l,t,e)}),l}})}(),function(){if(xM)return OM;xM=1;var e=sn(),t=It(),n=dM(),r=wM();e({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var i=n(this),o=t(e,arguments.length>1?arguments[1]:void 0),a=r(i,function(e,t){if(o(e,t,i))return{value:e}},!0);return a&&a.value}})}(),function(){if(EM)return MM;EM=1;var e=sn(),t=It(),n=dM(),r=wM();e({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var i=n(this),o=t(e,arguments.length>1?arguments[1]:void 0),a=r(i,function(e,t){if(o(e,t,i))return{key:t}},!0);return a&&a.key}})}(),function(){if(TM)return IM;TM=1;var e=sn(),t=DM(),n=dM(),r=wM();e({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===r(n(this),function(n){if(t(n,e))return!0},!0)}})}(),function(){if(NM)return YM;NM=1;var e=sn(),t=F(),n=BE(),r=I(),i=$e(),o=GO().Map;e({target:"Map",stat:!0,forced:!0},{keyBy:function(e,a){var s=new(r(this)?this:o);i(a);var l=i(s.set);return n(e,function(e){t(l,s,a(e),e)}),s}})}(),function(){if(RM)return qM;RM=1;var e=sn(),t=dM(),n=wM();e({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var r=n(t(this),function(t,n){if(t===e)return{key:n}},!0);return r&&r.key}})}(),function(){if(LM)return XM;LM=1;var e=sn(),t=It(),n=dM(),r=GO(),i=wM(),o=r.Map,a=r.set;e({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var r=n(this),s=t(e,arguments.length>1?arguments[1]:void 0),l=new o;return i(r,function(e,t){a(l,s(e,t,r),e)}),l}})}(),function(){if(BM)return JM;BM=1;var e=sn(),t=It(),n=dM(),r=GO(),i=wM(),o=r.Map,a=r.set;e({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var r=n(this),s=t(e,arguments.length>1?arguments[1]:void 0),l=new o;return i(r,function(e,t){a(l,t,s(e,t,r))}),l}})}(),function(){if(PM)return ZM;PM=1;var e=sn(),t=dM(),n=BE(),r=GO().set;e({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var i=t(this),o=arguments.length,a=0;a<o;)n(arguments[a++],function(e,t){r(i,e,t)},{AS_ENTRIES:!0});return i}})}(),function(){if(FM)return eI;FM=1;var e=sn(),t=$e(),n=dM(),r=wM(),i=TypeError;e({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var o=n(this),a=arguments.length<2,s=a?void 0:arguments[1];if(t(e),r(o,function(t,n){a?(a=!1,s=t):s=e(s,t,n,o)}),a)throw new i("Reduce of empty map with no initial value");return s}})}(),function(){if($M)return tI;$M=1;var e=sn(),t=It(),n=dM(),r=wM();e({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var i=n(this),o=t(e,arguments.length>1?arguments[1]:void 0);return!0===r(i,function(e,t){if(o(e,t,i))return!0},!0)}})}(),function(){if(jM)return nI;jM=1;var e=sn(),t=$e(),n=dM(),r=GO(),i=TypeError,o=r.get,a=r.has,s=r.set;e({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,r){var l=n(this),c=arguments.length;t(r);var u=a(l,e);if(!u&&c<3)throw new i("Updating absent value");var d=u?o(l,e):t(c>2?arguments[2]:void 0)(e,l);return s(l,e,r(d,e,l)),l}})}(),QM||(QM=1,sn()({target:"Map",proto:!0,real:!0,forced:!0},{upsert:rI()})),zM||(zM=1,sn()({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:rI()})),WM=e}function oI(){return KM?VM:(KM=1,VM=iI())}var aI,sI,lI,cI,uI,dI,hI=i(oI());function fI(){return sI?aI:(sI=1,aI=dr())}function pI(){return cI?lI:(cI=1,lI=fI())}function gI(){return dI?uI:(dI=1,uI=pI())}var mI=i(gI());function vI(){try{var e=!Boolean.prototype.valueOf.call(mI(Boolean,[],function(){}))}catch(e){}return(vI=function(){return!!e})()}function AI(e,t,n){if(vI())return mI.apply(null,arguments);var r=[null];ty(r).apply(r,t);var i=new(nu(e).apply(e,r));return n&&Bu(i,n.prototype),i}function bI(e){var t="function"==typeof hI?new hI:void 0;return bI=function(e){if(null===e||!function(e){try{var t;return-1!==WA(t=Function.toString.call(e)).call(t,"[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return AI(e,arguments,wu(this).constructor)}return n.prototype=Lu(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Bu(n,e)},bI(e)}function yI(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(yI=function(){return!!e})()}var wI=function(e,t){if(!QC(e)&&ql(e)!==t.name.toLowerCase()||!QC(e)&&"array"===t.name.toLowerCase())throw new TypeError("parameter given must be ".concat(t.name));return!0},_I=function(e,t){if(!(e instanceof t))throw new Error("the hook does not correctly inherit");return!0},xI=function(e){if("object"!==ql(e))throw new Error("the hook must be a instance, not a class");return!0},EI=function(){function e(t,n){var r,i,o,a;return ua(this,e),i=this,a=[t],o=wu(o=e),(r=Ac(i,yI()?pr(o,a||[],wu(i).constructor):o.apply(i,a))).name="Error",r.stack=r.buildStackTrace(n),r}return Pu(e,bI(Error)),mc(e,[{key:"buildStackTrace",value:function(e){var t,n=e&&e.stack?e.stack:"";return Xu(t="".concat(this.stack,"\nCaused By: ")).call(t,n)}}])}();function SI(e,t,n){var r,i;if(-1===e)jC.warn(Xu(r=Xu(i="Duplicate hook name [".concat(t.HOOK_NAME,"] found, hook [")).call(i,t.toString(),"] ")).call(r,isNaN(n)?"":"at index [".concat(n,"] "),"will not take effect."));else if(-2===e){var o;jC.warn(Xu(o="Hook [".concat(t.toString(),"] ")).call(o,isNaN(n)?"":"at index [".concat(n,"] "),"is not a valid hook, and will not take effect."))}}function CI(e){return TI(e)||kI(e)}function TI(e){return Object.prototype.isPrototypeOf.call(vk,e)}function kI(e){return Object.prototype.isPrototypeOf.call(aO,e)}function OI(e){return CI(e)&&!0===(null==e?void 0:e.Cherry$$CUSTOM)}var MI=function(){return mc(function e(t,n,r){ua(this,e),this.$locale=r.locale,this.$cherry=r,this.hookList={},this.hookNameList={},wI(t,Array),this.registerInternalHooks(t,n),this.registerCustomHooks(n.engine.customSyntax,n)},[{key:"registerInternalHooks",value:function(e,t){var n=this;gf(e).call(e,function(e,r){SI(n.register(e,t),e,r)})}},{key:"registerCustomHooks",value:function(e,t){var n=this;if(e){var r=$h(e);gf(r).call(r,function(r){var i,o,a,s,l={},c=e[r];if(TI(c))o=c;else{if(!TI(s=null==(a=c)?void 0:a.syntaxClass)&&!kI(s))return;o=c.syntaxClass,l.force=Boolean(c.force),c.before?l.before=c.before:c.after&&(l.after=c.after)}CI(o)?(ca(o,"Cherry$$CUSTOM",{enumerable:!1,configurable:!1,writable:!1,value:!0}),i=n.register(o,t,l)):i=-2,SI(i,o,void 0)})}}},{key:"getHookList",value:function(){return this.hookList}},{key:"getHookNameList",value:function(){return this.hookNameList}},{key:"register",value:function(e,t,n){var r,i,o=this,a=t.externals,s=t.engine,l=s.syntax,c=this.$cherry;if(CI(e)){i=e.HOOK_NAME;var u=(null==l?void 0:l[i])||{};(r=new e({externals:a,config:u,globalConfig:s.global,cherry:c,needCache:!1})).$externals=a,r.afterInit(function(){r.setLocale(o.$locale)})}else{if("function"!=typeof e)return-2;if(!(r=e(t))||!CI(r.constructor))return-2;i=r.getName()}if(!1!==l[i]||OI(e)){var d=r.getType();if(this.hookNameList[i]){var h;if(!OI(e))return-1;if(!n.force)return-1;var f=this.hookNameList[i].type;this.hookList[f]=uo(h=this.hookList[f]).call(h,function(e){return e.getName()!==i})}if(this.hookNameList[i]={type:d},this.hookList[d]=this.hookList[d]||[],OI(e)){var p,g,m,v=-1;if(n.before)-1===(v=lk(p=this.hookList[d]).call(p,function(e){return e.getName()===n.before}))&&jC.warn(Xu(g="Cannot find hook named [".concat(n.before,"],\n            custom hook [")).call(g,i,"] will append to the end of the hooks."));else if(n.after){var A,b;-1===(v=lk(A=this.hookList[d]).call(A,function(e){return e.getName()===n.after}))?jC.warn(Xu(b="Cannot find hook named [".concat(n.after,"],\n              custom hook [")).call(b,i,"] will append to the end of the hooks.")):v+=1}v<0||v>=this.hookList[d].length?this.hookList[d].push(r):pk(m=this.hookList[d]).call(m,v,0,r)}else this.hookList[d].push(r)}}}])}();function II(e){if(void 0!==Ml&&null!=Nb(e)||null!=e["@@iterator"])return Wy(e)}function DI(e){return function(e){if(ub(e))return Gy(e)}(e)||II(e)||Vy(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NI(e){return db(e)||II(e)||Vy(e)||Ky()}function RI(e,t){var n=$h(e);if(Xi){var r=Xi(e);t&&(r=uo(r).call(r,function(t){return To(e,t).enumerable})),n.push.apply(n,r)}return n}function LI(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?gf(n=RI(Object(i),!0)).call(n,function(t){Fu(e,t,i[t])}):$o?Xo(e,$o(i)):gf(r=RI(Object(i))).call(r,function(t){ca(e,t,To(i,t))})}return e}function BI(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;if(!t)return e;t.lastIndex=0;for(var a=0,s=[];null!==(r=t.exec(e));){var l={begin:r.index,length:r[0].length};if(i&&r.index===a-o){var c,u=NI(r),d=u[0],h=_x(u).call(u,2);s.push({begin:l.begin+o,length:l.length-o,replacedText:n.apply(void 0,Xu(c=[_x(d).call(d,o),""]).call(c,DI(h)))})}else s.push(LI(LI({},l),{},{replacedText:n.apply(void 0,DI(r))}));a=t.lastIndex,t.lastIndex-=o}return t.lastIndex=0,function(e,t){if(!t.length)return e;var n=[],r=0;return gf(t).call(t,function(i,o){n.push(_x(e).call(e,r,i.begin)),n.push(i.replacedText),r=i.begin+i.length,o===t.length-1&&n.push(_x(e).call(e,r))}),n.join("")}(e,s)}function PI(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(PI=function(){return!!e})()}var FI=function(){function e(){return ua(this,e),t=this,r=arguments,n=wu(n=e),Ac(t,PI()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,vk),mc(e,[{key:"toHtml",value:function(e,t,n,r){var i,o;return Xu(i=Xu(o="".concat(t,'<span style="color:')).call(o,n,'">')).call(i,r,"</span>")}},{key:"makeHtml",value:function(e){return eT()?e.replace(this.RULE.reg,this.toHtml):BI(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:eT()?"((?<!\\\\))!!":"(^|[^\\\\])!!",end:"!!",content:"(#[0-9a-zA-Z]{3,6}|[a-z]{3,20})[\\s]([\\w\\W]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}])}();function $I(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return($I=function(){return!!e})()}Fu(FI,"HOOK_NAME","fontColor");var jI=function(){function e(){return ua(this,e),t=this,r=arguments,n=wu(n=e),Ac(t,$I()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,vk),mc(e,[{key:"toHtml",value:function(e,t,n,r){var i,o;return Xu(i=Xu(o="".concat(t,'<span style="background-color:')).call(o,n,'">')).call(i,r,"</span>")}},{key:"makeHtml",value:function(e){return eT()?e.replace(this.RULE.reg,this.toHtml):BI(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:eT()?"((?<!\\\\))!!!":"(^|[^\\\\])!!!",end:"!!!",content:"(#[0-9a-zA-Z]{3,6}|[a-z]{3,10})[\\s]([\\w\\W]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}])}();function HI(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(HI=function(){return!!e})()}Fu(jI,"HOOK_NAME","bgColor");var UI=function(){function e(){return ua(this,e),t=this,r=arguments,n=wu(n=e),Ac(t,HI()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,vk),mc(e,[{key:"toHtml",value:function(e,t,n,r){var i,o;return Xu(i=Xu(o="".concat(t,'<span style="font-size:')).call(o,n,'px;line-height:1em;">')).call(i,r,"</span>")}},{key:"makeHtml",value:function(e){return this.test(e)?eT()?e.replace(this.RULE.reg,this.toHtml):BI(e,this.RULE.reg,this.toHtml,!0,1):e}},{key:"rule",value:function(){var e={begin:eT()?"((?<!\\\\))!":"(^|[^\\\\])!",end:"!",content:"([0-9]{1,2})[\\s]([\\w\\W]*?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}])}();function QI(e,t){var n=$h(e);if(Xi){var r=Xi(e);t&&(r=uo(r).call(r,function(t){return To(e,t).enumerable})),n.push.apply(n,r)}return n}function zI(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?gf(n=QI(Object(i),!0)).call(n,function(t){Fu(e,t,i[t])}):$o?Xo(e,$o(i)):gf(r=QI(Object(i))).call(r,function(t){ca(e,t,To(i,t))})}return e}function WI(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(WI=function(){return!!e})()}Fu(UI,"HOOK_NAME","fontSize");var GI=function(){function e(){var t,n,r,i,o=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;return ua(this,e),n=this,i=[{config:o}],r=wu(r=e),t=Ac(n,WI()?pr(r,i||[],wu(n).constructor):r.apply(n,i)),o?(t.needWhitespace=!!o.needWhitespace,t):Ac(t)}return Pu(e,vk),mc(e,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,"$1<del>$2</del>"):e}},{key:"rule",value:function(){var e={};return(e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config.needWhitespace?zI(zI({},e),{},{begin:"(^|[\\s])\\~T\\~T",end:"\\~T\\~T(?=\\s|$)",content:"([\\w\\W]+?)"}):zI(zI({},e),{},{begin:"(^|[^\\\\])\\~T\\~T",end:"\\~T\\~T",content:"([\\w\\W]+?)"})).reg=new RegExp(e.begin+e.content+e.end,"g"),e}}])}();function VI(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(VI=function(){return!!e})()}Fu(GI,"HOOK_NAME","strikethrough");var KI=function(){function e(){return ua(this,e),t=this,r=arguments,n=wu(n=e),Ac(t,VI()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,vk),mc(e,[{key:"toHtml",value:function(e,t,n){var r;return Xu(r="".concat(t,"<sup>")).call(r,n,"</sup>")}},{key:"makeHtml",value:function(e){return eT()?e.replace(this.RULE.reg,this.toHtml):BI(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:eT()?"((?<!\\\\))\\^":"(^|[^\\\\])\\^",end:"\\^",content:"([\\w\\W]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}])}();function YI(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(YI=function(){return!!e})()}Fu(KI,"HOOK_NAME","sup");var qI=function(){function e(){return ua(this,e),t=this,r=arguments,n=wu(n=e),Ac(t,YI()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,vk),mc(e,[{key:"toHtml",value:function(e,t,n){var r;return Xu(r="".concat(t,"<sub>")).call(r,n,"</sub>")}},{key:"makeHtml",value:function(e){return eT()?e.replace(this.RULE.reg,this.toHtml):BI(e,this.RULE.reg,this.toHtml,!0,1)}},{key:"rule",value:function(){var e={begin:eT()?"((?<!\\\\))\\^\\^":"(^|[^\\\\])\\^\\^",end:"\\^\\^",content:"([\\w\\W]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}])}();Fu(qI,"HOOK_NAME","sub");var XI,JI={exports:{}},ZI=(XI||(XI=1,function(e){var t=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,o;switch(n=n||{},i.util.type(t)){case"Object":if(o=i.util.objId(t),n[o])return n[o];for(var a in r={},n[o]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return o=i.util.objId(t),n[o]?n[o]:(r=[],n[o]=r,t.forEach(function(t,i){r[i]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var o=(r=r||i.languages)[e],a={};for(var s in o)if(o.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(a[l]=n[l]);n.hasOwnProperty(s)||(a[s]=o[s])}var c=r[e];return r[e]=a,i.languages.DFS(i.languages,function(t,n){n===c&&t!=e&&(this[t]=a)}),a},DFS:function e(t,n,r,o){o=o||{};var a=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var l=t[s],c=i.util.type(l);"Object"!==c||o[a(l)]?"Array"!==c||o[a(l)]||(o[a(l)]=!0,e(l,n,s,o)):(o[a(l)]=!0,e(l,n,null,o))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var o,a=0;o=r.elements[a++];)i.highlightElement(o,!0===t,r.callback)},highlightElement:function(t,n,r){var o=i.util.getLanguage(t),a=i.languages[o];i.util.setLanguage(t,o);var s=t.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&i.util.setLanguage(s,o);var l={element:t,language:o,grammar:a,code:t.textContent};function c(e){l.highlightedCode=e,i.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,i.hooks.run("after-highlight",l),i.hooks.run("complete",l),r&&r.call(l.element)}if(i.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return i.hooks.run("complete",l),void(r&&r.call(l.element));if(i.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var u=new Worker(i.filename);u.onmessage=function(e){c(e.data)},u.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(i.highlight(l.code,l.grammar,l.language));else c(i.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),o.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new l;return c(i,i.head,e),s(e,i,t,i.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,o=0;r=n[o++];)r(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function s(e,t,n,r,l,d){for(var h in n)if(n.hasOwnProperty(h)&&n[h]){var f=n[h];f=Array.isArray(f)?f:[f];for(var p=0;p<f.length;++p){if(d&&d.cause==h+","+p)return;var g=f[p],m=g.inside,v=!!g.lookbehind,A=!!g.greedy,b=g.alias;if(A&&!g.pattern.global){var y=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,y+"g")}for(var w=g.pattern||g,_=r.next,x=l;_!==t.tail&&!(d&&x>=d.reach);x+=_.value.length,_=_.next){var E=_.value;if(t.length>e.length)return;if(!(E instanceof o)){var S,C=1;if(A){if(!(S=a(w,x,e,v))||S.index>=e.length)break;var T=S.index,k=S.index+S[0].length,O=x;for(O+=_.value.length;T>=O;)O+=(_=_.next).value.length;if(x=O-=_.value.length,_.value instanceof o)continue;for(var M=_;M!==t.tail&&(O<k||"string"==typeof M.value);M=M.next)C++,O+=M.value.length;C--,E=e.slice(x,O),S.index-=x}else if(!(S=a(w,0,E,v)))continue;T=S.index;var I=S[0],D=E.slice(0,T),N=E.slice(T+I.length),R=x+E.length;d&&R>d.reach&&(d.reach=R);var L=_.prev;if(D&&(L=c(t,L,D),x+=D.length),u(t,L,C),_=c(t,L,new o(h,m?i.tokenize(I,m):I,b,I)),N&&c(t,_,N),C>1){var B={cause:h+","+p,reach:R};s(e,t,n,_.prev,x,B),d&&B.reach>d.reach&&(d.reach=B.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}function u(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}if(e.Prism=i,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var o={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(o.classes,a):o.classes.push(a)),i.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},!e.document)return e.addEventListener?(i.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,o=n.code,a=n.immediateClose;e.postMessage(i.highlight(o,i.languages[r],r)),a&&e.close()},!1),i):i;var d=i.util.currentScript();function h(){i.manual||i.highlightAll()}if(d&&(i.filename=d.src,d.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var f=document.readyState;"loading"===f||"interactive"===f&&d&&d.defer?document.addEventListener("DOMContentLoaded",h):window.requestAnimationFrame?window.requestAnimationFrame(h):window.setTimeout(h,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=t),void 0!==r&&(r.Prism=t)}(JI)),JI.exports),eD=i(ZI);function tD(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(tD=function(){return!!e})()}Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.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:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.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}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.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:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.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:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.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:Prism.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"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.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")),Prism.languages.js=Prism.languages.javascript,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),eD.manual=!0;var nD={figure:"figure"},rD=function(){function e(t){var n,r,i,o,a,s,l,c,u,d,h;t.externals;var f,p,g,m,v,A=t.config,b=t.cherry;return ua(this,e),f=this,g=[{needCache:!0}],p=wu(p=e),h=Ac(f,tD()?pr(p,g||[],wu(f).constructor):p.apply(f,g)),e.inlineCodeCache={},h.codeCache={},h.codeCacheList=[],h.customLang=[],h.customParser={},h.lineNumber=A.lineNumber,h.copyCode=A.copyCode,h.expandCode=A.expandCode,h.editCode=A.editCode,h.changeLang=A.changeLang,h.selfClosing=A.selfClosing,h.mermaid=A.mermaid,h.indentedCodeBlock=void 0===A.indentedCodeBlock||A.indentedCodeBlock,h.INLINE_CODE_REGEX=/(`+)(.+?(?:\n.+?)*?)\1/g,A&&A.customRenderer&&(h.customLang=_h(m=$h(A.customRenderer)).call(m,function(e){return e.toLowerCase()}),gf(v=$h(A.customRenderer)).call(v,function(e){h.customParser[e.toLowerCase()]=A.customRenderer[e]})),h.customHighlighter=A.highlighter,h.failedCleanCacheTimes=0,h.codeTimer=null,h.$cherry=b,h.needCleanFlowCursor=(null==b||null===(n=b.options)||void 0===n||null===(r=n.engine)||void 0===r||null===(i=r.global)||void 0===i?void 0:i.flowSessionContext)&&(null==b||null===(o=b.options)||void 0===o||null===(a=o.engine)||void 0===a||null===(s=a.global)||void 0===s?void 0:s.flowSessionCursor),h.showInlineColor=void 0===(null==b||null===(l=b.options)||void 0===l||null===(c=l.engine)||void 0===c||null===(u=c.syntax)||void 0===u||null===(d=u.inlineCode)||void 0===d?void 0:d.showColor)||b.options.engine.syntax.inlineCode.showColor,h}return Pu(e,aO),mc(e,[{key:"afterMakeHtml",value:function(e){var t=this;return this.codeTimer&&(clearTimeout(this.codeTimer),this.failedCleanCacheTimes+=1,this.codeTimer=null),this.codeTimer=_d(function(){t.$resetCache()},500),this.failedCleanCacheTimes>5&&(this.failedCleanCacheTimes=0,_d(function(){t.$resetCache()},500)),this.restoreCache(e)}},{key:"$resetCache",value:function(){if(this.codeCacheList.length>100){for(var e,t=0;t<this.codeCacheList.length-100;t++)delete this.codeCache[this.codeCacheList[t]];this.codeCacheList=_x(e=this.codeCacheList).call(e,-100)}}},{key:"$codeReplace",value:function(e,t,n,r){var i=e.replace(/~X/g,"\\`");return(i=this.renderCodeBlock(i,t,n,r)).replace(/\\/g,"\\\\")}},{key:"$codeCache",value:function(e,t){if(e&&t&&(this.codeCacheList.push(e),this.codeCache[e]=t),this.codeCache[e]){for(var n=0;n<this.codeCacheList.length-100;n++)if(this.codeCacheList[n]===e){var r;pk(r=this.codeCacheList).call(r,n,1),this.codeCacheList.push(e);break}return this.codeCache[e]}return!1}},{key:"parseCustomLanguage",value:function(e,t,n){var r=this,i=this.customParser[e];if(!i||"function"!=typeof i.render)return!1;var o=nD[i.constructor.TYPE]||"div",a=function(t){var r,i,a,s,l;return Xu(r=Xu(i=Xu(a=Xu(s=Xu(l="<".concat(o,' data-sign="')).call(l,n.sign,'" data-type="')).call(s,e,'" data-lines="')).call(a,n.lines,'">')).call(i,t,"</")).call(r,o,">")},s="",l=this.needCleanFlowCursor?t.replace(/CHERRYFLOWSESSIONCURSOR/,""):t;return!!(s="all"===e?i.render(l,n.sign,this.$engine,n.lang):i.render(l,n.sign,this.$engine,{mermaidConfig:this.mermaid,updateCache:function(e){r.$codeCache(n.sign,a(e)),r.pushCache(a(e),n.sign,n.lines)},fallback:function(){return r.$codeReplace(l,e,n.sign,n.lines)}}))&&a(s)}},{key:"fillTag",value:function(e){var t=[];return _h(e).call(e,function(e){if(!e)return"";for(var n=e;t.length;){var r,i=t.pop();n=Xu(r="".concat(i)).call(r,n)}var o=n.match(/<span class="(.+?)">|<\/span>/g),a=0;if(!o)return n;for(;o.length;){var s=o.pop();/<\/span>/.test(s)?a+=1:a?a-=1:t.unshift(s.match(/<span class="(.+?)">/)[0])}for(var l=0;l<t.length;l++)n="".concat(n,"</span>");return n})}},{key:"renderLineNumber",value:function(e){if(!this.lineNumber)return e;var t=e.split("\n");return t.pop(),t=this.fillTag(t),'<span class="code-line">'.concat(t.join('</span>\n<span class="code-line">'),"</span>")}},{key:"isInternalCustomLangCovered",value:function(e){var t;return-1!==yx(t=this.customLang).call(t,e)}},{key:"computeLines",value:function(e,t,n){var r=t,i=this.getLineCount(e,r);return{sign:this.$engine.hash(e.replace(/^\n+/,"")+i),lines:i}}},{key:"appendMermaid",value:function(e,t){var n=e,r=t;if(/^flow([ ](TD|LR))?$/i.test(r)&&!this.isInternalCustomLangCovered(r)){var i,o=r.match(/^flow(?:[ ](TD|LR))?$/i)||[];n=Xu(i="graph ".concat(o[1]||"TD","\n")).call(i,n),r="mermaid"}return/^seq$/i.test(r)&&!this.isInternalCustomLangCovered(r)&&(n="sequenceDiagram\n".concat(n),r="mermaid"),"mermaid"===r&&(n=n.replace(/(^[\s]*)stateDiagram-v2\n/,"$1stateDiagram\n")),[n,r]}},{key:"wrapCode",value:function(e,t){var n;return Xu(n='<code class="language-'.concat(t,'">')).call(n,e,"</code>")}},{key:"renderCodeBlock",value:function(e,t,n,r){var i,o,a,s,l,c,u,d,h,f,p=e,g=t;/\s*CHERRY_FLOW_SESSION_CURSOR/.test(g)&&(g=g.replace(/\s*CHERRY_FLOW_SESSION_CURSOR/,""));var m=g=g.toLowerCase();this.customHighlighter?p=this.customHighlighter(p,g):(g&&eD.languages[g]||(g="javascript"),p=eD.highlight(p,eD.languages[g],g),p=this.renderLineNumber(p));var v=this.expandCode&&(null===(i=e.match(/\n/g))||void 0===i?void 0:i.length)>10,A=Xu(o='<pre class="language-'.concat(g,'">')).call(o,this.wrapCode(p,g),"</pre>");return p=Xu(a=Xu(s=Xu(l=Xu(c=Xu(u=Xu(d=Xu(h=Xu(f='<div\n        data-sign="'.concat(n,'"\n        data-type="codeBlock"\n        data-lines="')).call(f,r,'" \n        data-edit-code="')).call(h,this.editCode,'" \n        data-copy-code="')).call(d,this.copyCode,'"\n        data-expand-code="')).call(u,this.expandCode,'"\n        data-change-lang="')).call(c,this.changeLang,'"\n        data-lang="')).call(l,g,'"\n        style="position:relative"\n        class="')).call(s,v?"cherry-code-unExpand":"cherry-code-expand",'"\n      >\n      ')).call(a,this.customWrapperRender(m,p,A),"\n      "),v&&(p+='<div class="cherry-mask-code-block">\n        <div class="expand-btn ">\n          <i class="ch-icon ch-icon-expand"></i>\n        </div>\n      </div>'),p+"</div>"}},{key:"customWrapperRender",value:function(e,t,n){var r,i=null!==(r=this.$cherry.options.engine.syntax.codeBlock.wrapperRender)&&void 0!==r&&r;return"function"==typeof i?i(e,t,n):n}},{key:"$getIndentedCodeReg",value:function(){return new RegExp("(?:^|\\n\\s*\\n)(?: {4}|\\t)([\\s\\S]+?)(?=$|\\n( {0,3}[^ \\t\\n]|\\n[^ \\t\\n]))","g")}},{key:"$getIndentCodeBlock",value:function(e){var t=this;return this.indentedCodeBlock?this.$recoverCodeInIndent(e).replace(this.$getIndentedCodeReg(),function(e,n){var r,i,o=(e.match(/\n/g)||[]).length,a=t.$engine.hash(e),s=Xu(r=Xu(i='<pre data-sign="'.concat(a,'" data-lines="')).call(i,o,'"><code class="indent-code">')).call(r,Zk(n.replace(/\n( {4}|\t)/g,"\n")),"</code></pre>");return Ak(e,t.pushCache(s,a,o))}):e}},{key:"$replaceCodeInIndent",value:function(e){return this.indentedCodeBlock?e.replace(this.$getIndentedCodeReg(),function(e){return e.replace(/`/g,"~~~IndentCode")}):e}},{key:"$recoverCodeInIndent",value:function(e){return this.indentedCodeBlock?e.replace(this.$getIndentedCodeReg(),function(e){return e.replace(/~~~IndentCode/g,"`")}):e}},{key:"$dealUnclosingCode",value:function(e){var t=e.match(/(?:^|\n)(\n*((?:>[\t ]*)*)(?:[^\S\n]*))(`{3,})([^`]*?)(?=CHERRY_FLOW_SESSION_CURSOR|$|\n)/g);if(!t||t.length<=0)return e;var n=!1,r=uo(t).call(t,function(e){return!1===n?(n=!0,!0):!/```[^`\s]+/.test(e)&&(n=!1,!0)});if(r.length%2==1){var i,o=r[r.length-1].replace(/(`)[^`]+$/,"$1").replace(/\n+/,""),a=e.replace(/\n+$/,"").replace(/\n`{1,2}$/,"");return Xu(i="".concat(a,"\n")).call(i,o,"\n")}return e}},{key:"beforeMakeHtml",value:function(e,t,n){var r=this,i=e;return(this.selfClosing||this.$cherry.options.engine.global.flowSessionContext)&&(i=this.$dealUnclosingCode(i)),i=(i=this.$replaceCodeInIndent(i)).replace(this.RULE.reg,function(e,t,n,i,o,a){var s,l;function c(e){if(n){var t=new RegExp("^\n*",""),r=e.match(t)[0];e=r+n+e.replace(t,function(e){return""})}return e}var u=a,d=r.computeLines(e,t,a),h=d.sign,f=d.lines,p=r.$codeCache(h);if(p&&""!==p)return c(r.getCacheWithSpace(r.pushCache(p,h,f),e));u=(u=(u=r.$recoverCodeInIndent(u)).replace(/~D/g,"$")).replace(/~T/g,"~");var g=null!==(s=null==t||null===(l=t.match(/[ ]/g))||void 0===l?void 0:l.length)&&void 0!==s?s:0;if(g>0){var m=new RegExp("(^|\\n)[ ]{1,".concat(g,"}"),"g");u=u.replace(m,"$1")}if(n){var v=new RegExp("(^|\\n)".concat(n),"g");u=u.replace(v,"$1")}var A=c_(o).call(o).toLowerCase();if(/^(math|katex|latex)$/i.test(A)&&!r.isInternalCustomLangCovered(A)){var b,y=e.match(/^\s*/g);return Xu(b="".concat(y,"~D~D\n")).call(b,u,"~D~D")}var w=Yy(r.appendMermaid(u,A),2);u=w[0];var _=A=w[1];return A=r.formatLang(A),r.isInternalCustomLangCovered(A)&&(p=r.parseCustomLanguage(A,u,{lines:f,sign:h,match:e,addBlockQuoteSignToResult:c,lang:_}))&&""!==p?(r.$codeCache(h,p),r.getCacheWithSpace(r.pushCache(p,h,f),e)):(p=r.$codeReplace(u,A,h,f),c(r.getCacheWithSpace(r.pushCache(p,h,f),e)))}),i=i.replace(hT(!0),function(e){var t;return _h(t=e.replace(/\\\|/g,"~CHERRYNormalLine").split("|")).call(t,function(e){return r.makeInlineCode(e,!1).replace("~CHERRYNormalLine","\\|")}).join("|").replace(/`/g,"\\`")}),i=this.makeInlineCode(i,!0),this.$getIndentCodeBlock(i)}},{key:"formatLang",value:function(e){var t;return-1!==yx(t=this.customLang).call(t,"all")&&"mermaid"!==e?"all":e}},{key:"makeInlineCode",value:function(t){var n=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t;if(this.INLINE_CODE_REGEX.test(i)&&(i=(i=i.replace(/\\`/g,"~~not~inlineCode")).replace(this.INLINE_CODE_REGEX,function(t,r,i){if("`"===c_(i).call(i))return t;var o=i.replace(/~~not~inlineCode/g,"\\`");o=(o=(o=n.$replaceSpecialChar(o)).replace("~CHERRYNormalLine","|")).replace(/\\/g,"\\\\");var a=c_(o).call(o),s=/^#([0-9a-fA-F]{6})$/i.test(a),l=/^rgb\(\s*\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}\s*\)$/i.test(a),c=/^hsl\(\s*\d{1,3}\s*,\s*\d{1,3}%\s*,\s*\d{1,3}%\s*\)$/i.test(a),u=Zk(o),d="";if(n.showInlineColor&&(s||l||c)){var h,f=a;d=Xu(h="<code>".concat(u,'<span class="ch-inline-color" style="background:')).call(h,f,';"></span></code>')}else d="<code>".concat(u,"</code>");var p=n.$engine.hash(d);return e.inlineCodeCache[p]=d,"~~CODE".concat(p,"$")}),i=i.replace(/~~not~inlineCode/g,"\\`")),r&&(this.$cherry.options.engine.syntax.inlineCode.selfClosing||this.$cherry.options.engine.global.flowSessionContext)){var o=!1;i=i.replace(/(^|\n)([^\n]+)(\n$)/,function(e,t,n,r){var i,a,s,l,c=n.replace(/\\`/g,"~~not~inlineCode").replace(/`+$/,"");return(o=/(`+)([^`]+)$/.test(c)&&!/(`+)([^`]*~~CODE[^`]+)$/.test(c))?(c=c.replace(/(`+)([^`]+)$/,"$1$2$1").replace(/~~not~inlineCode/g,"\\`"),Xu(i=Xu(a="".concat(t)).call(a,c)).call(i,r)):(c=c.replace(/~~not~inlineCode/g,"\\`"),Xu(s=Xu(l="".concat(t)).call(l,c)).call(s,r))}),o&&(i=this.makeInlineCode(i,!1))}return i}},{key:"makeHtml",value:function(e){return e}},{key:"$replaceSpecialChar",value:function(e){var t=e.replace(/~Q/g,"\\~");return(t=(t=(t=t.replace(/~Y/g,"\\!")).replace(/~Z/g,"\\#")).replace(/~&/g,"\\&")).replace(/~K/g,"\\/")}},{key:"rule",value:function(){return fT()}}])}();function iD(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(iD=function(){return!!e})()}Fu(rD,"HOOK_NAME","codeBlock"),Fu(rD,"inlineCodeCache",{});var oD=function(){function e(){return ua(this,e),t=this,r=arguments,n=wu(n=e),Ac(t,iD()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,aO),mc(e,[{key:"makeHtml",value:function(e){return e}},{key:"afterMakeHtml",value:function(e){var t=e;return $h(rD.inlineCodeCache).length>0&&(t=t.replace(/~~CODE([0-9a-zA-Z]+)\$/g,function(e,t){return rD.inlineCodeCache[t]})),t}},{key:"$cleanCache",value:function(){rD.inlineCodeCache={}}},{key:"rule",value:function(){var e={begin:"(`+)[ ]*",end:"[ ]*\\1",content:"(.+?(?:\\n.+?)*?)"};return e.reg=ZC(e,"g"),e}}])}();Fu(oD,"HOOK_NAME","inlineCode");var aD={exports:{}};function sD(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var lD,cD={exports:{}},uD=o(Object.freeze({__proto__:null,default:{}}));function dD(){return lD||(lD=1,cD.exports=function(){var e=e||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r&&r.crypto&&(n=r.crypto),!n)try{n=uD}catch(r){}var i=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(r){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(r){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},s=a.lib={},l=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=s.WordArray=l.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s<i;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(i());return new c.init(t,e)}}),u=a.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(n,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(n,t)}},f=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},p=s.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*l,o);if(l){for(var d=0;d<l;d+=a)this._doProcessBlock(i,d);n=i.splice(0,l),r.sigBytes-=u}return new c.init(n,u)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});s.Hasher=p.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new g.HMAC.init(e,n).finalize(t)}}});var g=a.algo={};return a}(Math);return e}()),cD.exports}var hD,fD={exports:{}};function pD(){return hD||(hD=1,fD.exports=function(e){return r=(n=e).lib,i=r.Base,o=r.WordArray,(a=n.x64={}).Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}}),e;var t,n,r,i,o,a}(dD())),fD.exports}var gD,mD={exports:{}};function vD(){return gD||(gD=1,mD.exports=function(e){return function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init,r=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],i=0;i<t;i++)r[i>>>2]|=e[i]<<24-i%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=t}}(),e.lib.WordArray}(dD())),mD.exports}var AD,bD={exports:{}};function yD(){return AD||(AD=1,bD.exports=function(e){return function(){var t=e,n=t.lib.WordArray,r=t.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var o=t[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return n.create(r,2*t)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var a=i(t[o>>>2]>>>16-o%4*8&65535);r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o++)r[o>>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16}(dD())),bD.exports}var wD,_D={exports:{}};function xD(){return wD||(wD=1,_D.exports=function(e){return function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return n.create(i,o)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)i.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return r(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(dD())),_D.exports}var ED,SD={exports:{}};function CD(){return ED||(ED=1,SD.exports=function(e){return function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2|r[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return n.create(i,o)}t.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,r=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a<r;a+=3)for(var s=(n[a>>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,l=0;l<4&&a+.75*l<r;l++)o.push(i.charAt(s>>>6*(3-l)&63));var c=i.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e,t){void 0===t&&(t=!0);var n=e.length,i=t?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<i.length;a++)o[i.charCodeAt(a)]=a}var s=i.charAt(64);if(s){var l=e.indexOf(s);-1!==l&&(n=l)}return r(e,n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),e.enc.Base64url}(dD())),SD.exports}var TD,kD={exports:{}};function OD(){return TD||(TD=1,kD.exports=function(e){return function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],l=e[t+1],f=e[t+2],p=e[t+3],g=e[t+4],m=e[t+5],v=e[t+6],A=e[t+7],b=e[t+8],y=e[t+9],w=e[t+10],_=e[t+11],x=e[t+12],E=e[t+13],S=e[t+14],C=e[t+15],T=o[0],k=o[1],O=o[2],M=o[3];T=c(T,k,O,M,a,7,s[0]),M=c(M,T,k,O,l,12,s[1]),O=c(O,M,T,k,f,17,s[2]),k=c(k,O,M,T,p,22,s[3]),T=c(T,k,O,M,g,7,s[4]),M=c(M,T,k,O,m,12,s[5]),O=c(O,M,T,k,v,17,s[6]),k=c(k,O,M,T,A,22,s[7]),T=c(T,k,O,M,b,7,s[8]),M=c(M,T,k,O,y,12,s[9]),O=c(O,M,T,k,w,17,s[10]),k=c(k,O,M,T,_,22,s[11]),T=c(T,k,O,M,x,7,s[12]),M=c(M,T,k,O,E,12,s[13]),O=c(O,M,T,k,S,17,s[14]),T=u(T,k=c(k,O,M,T,C,22,s[15]),O,M,l,5,s[16]),M=u(M,T,k,O,v,9,s[17]),O=u(O,M,T,k,_,14,s[18]),k=u(k,O,M,T,a,20,s[19]),T=u(T,k,O,M,m,5,s[20]),M=u(M,T,k,O,w,9,s[21]),O=u(O,M,T,k,C,14,s[22]),k=u(k,O,M,T,g,20,s[23]),T=u(T,k,O,M,y,5,s[24]),M=u(M,T,k,O,S,9,s[25]),O=u(O,M,T,k,p,14,s[26]),k=u(k,O,M,T,b,20,s[27]),T=u(T,k,O,M,E,5,s[28]),M=u(M,T,k,O,f,9,s[29]),O=u(O,M,T,k,A,14,s[30]),T=d(T,k=u(k,O,M,T,x,20,s[31]),O,M,m,4,s[32]),M=d(M,T,k,O,b,11,s[33]),O=d(O,M,T,k,_,16,s[34]),k=d(k,O,M,T,S,23,s[35]),T=d(T,k,O,M,l,4,s[36]),M=d(M,T,k,O,g,11,s[37]),O=d(O,M,T,k,A,16,s[38]),k=d(k,O,M,T,w,23,s[39]),T=d(T,k,O,M,E,4,s[40]),M=d(M,T,k,O,a,11,s[41]),O=d(O,M,T,k,p,16,s[42]),k=d(k,O,M,T,v,23,s[43]),T=d(T,k,O,M,y,4,s[44]),M=d(M,T,k,O,x,11,s[45]),O=d(O,M,T,k,C,16,s[46]),T=h(T,k=d(k,O,M,T,f,23,s[47]),O,M,a,6,s[48]),M=h(M,T,k,O,A,10,s[49]),O=h(O,M,T,k,S,15,s[50]),k=h(k,O,M,T,m,21,s[51]),T=h(T,k,O,M,x,6,s[52]),M=h(M,T,k,O,p,10,s[53]),O=h(O,M,T,k,w,15,s[54]),k=h(k,O,M,T,l,21,s[55]),T=h(T,k,O,M,b,6,s[56]),M=h(M,T,k,O,C,10,s[57]),O=h(O,M,T,k,v,15,s[58]),k=h(k,O,M,T,E,21,s[59]),T=h(T,k,O,M,g,6,s[60]),M=h(M,T,k,O,_,10,s[61]),O=h(O,M,T,k,f,15,s[62]),k=h(k,O,M,T,y,21,s[63]),o[0]=o[0]+T|0,o[1]=o[1]+k|0,o[2]=o[2]+O|0,o[3]=o[3]+M|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var o=t.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<<o|s>>>32-o)+t}function u(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<<o|s>>>32-o)+t}function h(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<<o|s>>>32-o)+t}n.MD5=o._createHelper(l),n.HmacMD5=o._createHmacHelper(l)}(Math),e.MD5}(dD())),kD.exports}var MD,ID={exports:{}};function DD(){return MD||(MD=1,ID.exports=function(e){return n=(t=e).lib,r=n.WordArray,i=n.Hasher,o=t.algo,a=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)a[c]=0|e[t+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var d=(r<<5|r>>>27)+l+a[c];d+=c<20?1518500249+(i&o|~i&s):c<40?1859775393+(i^o^s):c<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,l=s,s=o,o=i<<30|i>>>2,i=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s),e.SHA1;var t,n,r,i,o,a,s}(dD())),ID.exports}var ND,RD={exports:{}};function LD(){return ND||(ND=1,RD.exports=function(e){return function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.algo,s=[],l=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(s[i]=n(t.pow(r,.5))),l[i]=n(t.pow(r,1/3)),i++),r++}();var c=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],d=n[6],h=n[7],f=0;f<64;f++){if(f<16)c[f]=0|e[t+f];else{var p=c[f-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=c[f-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[f]=g+c[f-7]+v+c[f-16]}var A=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),y=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[f]+c[f];h=d,d=u,u=s,s=a+y|0,a=o,o=i,i=r,r=y+(b+A)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=o._createHelper(u),n.HmacSHA256=o._createHmacHelper(u)}(Math),e.SHA256}(dD())),RD.exports}var BD,PD,FD={exports:{}},$D={exports:{}};function jD(){return PD||(PD=1,$D.exports=function(e){return function(){var t=e,n=t.lib.Hasher,r=t.x64,i=r.Word,o=r.WordArray,a=t.algo;function s(){return i.create.apply(i,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=a.SHA512=n.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],d=n[6],h=n[7],f=r.high,p=r.low,g=i.high,m=i.low,v=o.high,A=o.low,b=a.high,y=a.low,w=s.high,_=s.low,x=u.high,E=u.low,S=d.high,C=d.low,T=h.high,k=h.low,O=f,M=p,I=g,D=m,N=v,R=A,L=b,B=y,P=w,F=_,$=x,j=E,H=S,U=C,Q=T,z=k,W=0;W<80;W++){var G,V,K=c[W];if(W<16)V=K.high=0|e[t+2*W],G=K.low=0|e[t+2*W+1];else{var Y=c[W-15],q=Y.high,X=Y.low,J=(q>>>1|X<<31)^(q>>>8|X<<24)^q>>>7,Z=(X>>>1|q<<31)^(X>>>8|q<<24)^(X>>>7|q<<25),ee=c[W-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=c[W-7],ae=oe.high,se=oe.low,le=c[W-16],ce=le.high,ue=le.low;V=(V=(V=J+ae+((G=Z+se)>>>0<Z>>>0?1:0))+re+((G+=ie)>>>0<ie>>>0?1:0))+ce+((G+=ue)>>>0<ue>>>0?1:0),K.high=V,K.low=G}var de,he=P&$^~P&H,fe=F&j^~F&U,pe=O&I^O&N^I&N,ge=M&D^M&R^D&R,me=(O>>>28|M<<4)^(O<<30|M>>>2)^(O<<25|M>>>7),ve=(M>>>28|O<<4)^(M<<30|O>>>2)^(M<<25|O>>>7),Ae=(P>>>14|F<<18)^(P>>>18|F<<14)^(P<<23|F>>>9),be=(F>>>14|P<<18)^(F>>>18|P<<14)^(F<<23|P>>>9),ye=l[W],we=ye.high,_e=ye.low,xe=Q+Ae+((de=z+be)>>>0<z>>>0?1:0),Ee=ve+ge;Q=H,z=U,H=$,U=j,$=P,j=F,P=L+(xe=(xe=(xe=xe+he+((de+=fe)>>>0<fe>>>0?1:0))+we+((de+=_e)>>>0<_e>>>0?1:0))+V+((de+=G)>>>0<G>>>0?1:0))+((F=B+de|0)>>>0<B>>>0?1:0)|0,L=N,B=R,N=I,R=D,I=O,D=M,O=xe+(me+pe+(Ee>>>0<ve>>>0?1:0))+((M=de+Ee|0)>>>0<de>>>0?1:0)|0}p=r.low=p+M,r.high=f+O+(p>>>0<M>>>0?1:0),m=i.low=m+D,i.high=g+I+(m>>>0<D>>>0?1:0),A=o.low=A+R,o.high=v+N+(A>>>0<R>>>0?1:0),y=a.low=y+B,a.high=b+L+(y>>>0<B>>>0?1:0),_=s.low=_+F,s.high=w+P+(_>>>0<F>>>0?1:0),E=u.low=E+j,u.high=x+$+(E>>>0<j>>>0?1:0),C=d.low=C+U,d.high=S+H+(C>>>0<U>>>0?1:0),k=h.low=k+z,h.high=T+Q+(k>>>0<z>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(u),t.HmacSHA512=n._createHmacHelper(u)}(),e.SHA512}(dD(),pD())),$D.exports}var HD,UD,QD={exports:{}},zD={exports:{}};function WD(){return UD||(UD=1,zD.exports=function(e){return function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.x64.Word,s=n.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,d=0,h=0;h<7;h++){if(1&i){var f=(1<<h)-1;f<32?d^=1<<f:s^=1<<f-32}128&i?i=i<<1^113:i<<=1}u[o]=a.create(s,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=a.create()}();var h=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var o=e[t+2*i],a=e[t+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(k=n[i]).high^=a,k.low^=o}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var f=0,p=0,g=0;g<5;g++)f^=(k=n[h+5*g]).high,p^=k.low;var m=d[h];m.high=f,m.low=p}for(h=0;h<5;h++){var v=d[(h+4)%5],A=d[(h+1)%5],b=A.high,y=A.low;for(f=v.high^(b<<1|y>>>31),p=v.low^(y<<1|b>>>31),g=0;g<5;g++)(k=n[h+5*g]).high^=f,k.low^=p}for(var w=1;w<25;w++){var _=(k=n[w]).high,x=k.low,E=l[w];E<32?(f=_<<E|x>>>32-E,p=x<<E|_>>>32-E):(f=x<<E-32|_>>>64-E,p=_<<E-32|x>>>64-E);var S=d[c[w]];S.high=f,S.low=p}var C=d[0],T=n[0];for(C.high=T.high,C.low=T.low,h=0;h<5;h++)for(g=0;g<5;g++){var k=n[w=h+5*g],O=d[w],M=d[(h+1)%5+5*g],I=d[(h+2)%5+5*g];k.high=O.high^~M.high&I.high,k.low=O.low^~M.low&I.low}k=n[0];var D=u[s];k.high^=D.high,k.low^=D.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=a[u],h=d.high,f=d.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),c.push(f),c.push(h)}return new i.init(c,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=o._createHelper(h),n.HmacSHA3=o._createHmacHelper(h)}(Math),e.SHA3}(dD(),pD())),zD.exports}var GD,VD,KD={exports:{}},YD={exports:{}};function qD(){return VD||(VD=1,YD.exports=function(e){var t,n,r;n=(t=e).lib.Base,r=t.enc.Utf8,t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,l=a.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}(dD())),YD.exports}var XD,JD,ZD={exports:{}},eN={exports:{}};function tN(){return JD||(JD=1,eN.exports=function(e){return n=(t=e).lib,r=n.Base,i=n.WordArray,o=t.algo,a=o.MD5,s=o.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,r=this.cfg,o=r.hasher.create(),a=i.create(),s=a.words,l=r.keySize,c=r.iterations;s.length<l;){n&&o.update(n),n=o.update(e).finalize(t),o.reset();for(var u=1;u<c;u++)n=o.finalize(n),o.reset();a.concat(n)}return a.sigBytes=4*l,a}}),t.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)},e.EvpKDF;var t,n,r,i,o,a,s}(dD(),DD(),qD())),eN.exports}var nN,rN={exports:{}};function iN(){return nN||(nN=1,rN.exports=function(e){e.lib.Cipher||function(t){var n=e,r=n.lib,i=r.Base,o=r.WordArray,a=r.BufferedBlockAlgorithm,s=n.enc;s.Utf8;var l=s.Base64,c=n.algo.EvpKDF,u=r.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:v}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()});r.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var d=n.mode={},h=r.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),f=d.CBC=function(){var e=h.extend();function n(e,n,r){var i,o=this._iv;o?(i=o,this._iv=t):i=this._prevBlock;for(var a=0;a<r;a++)e[n+a]^=i[a]}return e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),e.Decryptor=e.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=e.slice(t,t+i);r.decryptBlock(e,t),n.call(this,e,t,i),this._prevBlock=o}}),e}(),p=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,i=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(i);var l=o.create(a,r);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:f,padding:p}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var g=r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),m=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),g.create({ciphertext:n,salt:t})}},v=r.SerializableCipher=i.extend({cfg:i.extend({format:m}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),a=i.cfg;return g.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),A=(n.kdf={}).OpenSSL={execute:function(e,t,n,r,i){if(r||(r=o.random(8)),i)a=c.create({keySize:t+n,hasher:i}).compute(e,r);else var a=c.create({keySize:t+n}).compute(e,r);var s=o.create(a.words.slice(t),4*n);return a.sigBytes=4*t,g.create({key:a,iv:s,salt:r})}},b=r.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:A}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize,r.salt,r.hasher);r.iv=i.iv;var o=v.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt,r.hasher);return r.iv=i.iv,v.decrypt.call(this,e,t,i.key,r)}})}()}(dD(),tN())),rN.exports}var oN,aN={exports:{}};function sN(){return oN||(oN=1,aN.exports=function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var a=0;a<n;a++)e[t+a]^=i[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i,r),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=e.slice(t,t+i);n.call(this,e,t,i,r),this._prevBlock=o}}),t}(),e.mode.CFB}(dD(),iN())),aN.exports}var lN,cN={exports:{}};function uN(){return lN||(lN=1,cN.exports=function(e){return e.mode.CTR=(t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[r-1]=o[r-1]+1|0;for(var s=0;s<r;s++)e[t+s]^=a[s]}}),t.Decryptor=n,t),e.mode.CTR;var t,n}(dD(),iN())),cN.exports}var dN,hN={exports:{}};function fN(){return dN||(dN=1,hN.exports=function(e){return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var i=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),r(a);var s=a.slice(0);n.encryptBlock(s,0);for(var l=0;l<i;l++)e[t+l]^=s[l]}});return t.Decryptor=i,t}(),e.mode.CTRGladman}(dD(),iN())),hN.exports}var pN,gN={exports:{}};function mN(){return pN||(pN=1,gN.exports=function(e){return e.mode.OFB=(t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var a=0;a<r;a++)e[t+a]^=o[a]}}),t.Decryptor=n,t),e.mode.OFB;var t,n}(dD(),iN())),gN.exports}var vN,AN,bN,yN,wN,_N,xN,EN,SN,CN={exports:{}},TN={exports:{}},kN={exports:{}},ON={exports:{}},MN={exports:{}},IN={exports:{}},DN={exports:{}},NN={exports:{}},RN={exports:{}};function LN(){return SN||(SN=1,RN.exports=function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=n.BlockCipher,o=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=a[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var c=i[o]=[],u=l[o];for(n=0;n<24;n++)c[n/6|0]|=t[(s[n]-1+u)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(s[n+24]-1+u)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=i[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),h.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],o=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^i[l])&u[l])>>>0];this._lBlock=a,this._rBlock=o^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function f(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=i._createHelper(d);var p=o.TripleDES=i.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(r.create(t)),this._des2=d.createEncryptor(r.create(n)),this._des3=d.createEncryptor(r.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),e.TripleDES}(dD(),xD(),OD(),tN(),iN())),RN.exports}var BN,PN,FN,$N,jN,HN={exports:{}},UN={exports:{}},QN={exports:{}},zN={exports:{}};function WN(){return $N||($N=1,zN.exports=function(e){return function(){var t=e,n=t.lib.BlockCipher,r=t.algo;const i=16,o=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function l(e,t){let n=t>>24&255,r=t>>16&255,i=t>>8&255,o=255&t,a=e.sbox[0][n]+e.sbox[1][r];return a^=e.sbox[2][i],a+=e.sbox[3][o],a}function c(e,t,n){let r,o=t,a=n;for(let s=0;s<i;++s)o^=e.pbox[s],a=l(e,o)^a,r=o,o=a,a=r;return r=o,o=a,a=r,a^=e.pbox[i],o^=e.pbox[i+1],{left:o,right:a}}function u(e,t,n){let r,o=t,a=n;for(let s=i+1;s>1;--s)o^=e.pbox[s],a=l(e,o)^a,r=o,o=a,a=r;return r=o,o=a,a=r,a^=e.pbox[1],o^=e.pbox[0],{left:o,right:a}}function d(e,t,n){for(let i=0;i<4;i++){e.sbox[i]=[];for(let t=0;t<256;t++)e.sbox[i][t]=a[i][t]}let r=0;for(let a=0;a<i+2;a++)e.pbox[a]=o[a]^t[r],r++,r>=n&&(r=0);let s=0,l=0,u=0;for(let o=0;o<i+2;o+=2)u=c(e,s,l),s=u.left,l=u.right,e.pbox[o]=s,e.pbox[o+1]=l;for(let i=0;i<4;i++)for(let t=0;t<256;t+=2)u=c(e,s,l),s=u.left,l=u.right,e.sbox[i][t]=s,e.sbox[i][t+1]=l;return!0}var h=r.Blowfish=n.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;d(s,t,n)}},encryptBlock:function(e,t){var n=c(s,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=u(s,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=n._createHelper(h)}(),e.Blowfish}(dD(),xD(),OD(),tN(),iN())),zN.exports}var GN=(jN||(jN=1,aD.exports=function(e){return e}(dD(),pD(),vD(),yD(),xD(),CD(),OD(),DD(),LD(),BD||(BD=1,FD.exports=function(e){return n=(t=e).lib.WordArray,r=t.algo,i=r.SHA256,o=r.SHA224=i.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}}),t.SHA224=i._createHelper(o),t.HmacSHA224=i._createHmacHelper(o),e.SHA224;var t,n,r,i,o}(dD(),LD())),jD(),HD||(HD=1,QD.exports=function(e){return n=(t=e).x64,r=n.Word,i=n.WordArray,o=t.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}}),t.SHA384=a._createHelper(s),t.HmacSHA384=a._createHmacHelper(s),e.SHA384;var t,n,r,i,o,a,s}(dD(),pD(),jD())),WD(),GD||(GD=1,KD.exports=function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=n.Hasher,o=t.algo,a=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=r.create([0,1518500249,1859775393,2400959708,2840853838]),d=r.create([1352829926,1548603684,1836072691,2053994217,0]),h=o.RIPEMD160=i.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,h,b,y,w,_,x,E,S,C,T,k=this._hash.words,O=u.words,M=d.words,I=a.words,D=s.words,N=l.words,R=c.words;for(_=o=k[0],x=h=k[1],E=b=k[2],S=y=k[3],C=w=k[4],n=0;n<80;n+=1)T=o+e[t+I[n]]|0,T+=n<16?f(h,b,y)+O[0]:n<32?p(h,b,y)+O[1]:n<48?g(h,b,y)+O[2]:n<64?m(h,b,y)+O[3]:v(h,b,y)+O[4],T=(T=A(T|=0,N[n]))+w|0,o=w,w=y,y=A(b,10),b=h,h=T,T=_+e[t+D[n]]|0,T+=n<16?v(x,E,S)+M[0]:n<32?m(x,E,S)+M[1]:n<48?g(x,E,S)+M[2]:n<64?p(x,E,S)+M[3]:f(x,E,S)+M[4],T=(T=A(T|=0,R[n]))+C|0,_=C,C=S,S=A(E,10),E=x,x=T;T=k[1]+b+S|0,k[1]=k[2]+y+C|0,k[2]=k[3]+w+_|0,k[3]=k[4]+o+x|0,k[4]=k[0]+h+E|0,k[0]=T},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,n){return e^t^n}function p(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function m(e,t,n){return e&n|t&~n}function v(e,t,n){return e^(t|~n)}function A(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(h),t.HmacRIPEMD160=i._createHmacHelper(h)}(),e.RIPEMD160}(dD())),qD(),XD||(XD=1,ZD.exports=function(e){return r=(n=(t=e).lib).Base,i=n.WordArray,a=(o=t.algo).SHA256,s=o.HMAC,l=o.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=s.create(n.hasher,e),o=i.create(),a=i.create([1]),l=o.words,c=a.words,u=n.keySize,d=n.iterations;l.length<u;){var h=r.update(t).finalize(a);r.reset();for(var f=h.words,p=f.length,g=h,m=1;m<d;m++){g=r.finalize(g),r.reset();for(var v=g.words,A=0;A<p;A++)f[A]^=v[A]}o.concat(h),c[0]++}return o.sigBytes=4*u,o}}),t.PBKDF2=function(e,t,n){return l.create(n).compute(e,t)},e.PBKDF2;var t,n,r,i,o,a,s,l}(dD(),LD(),qD())),tN(),iN(),sN(),uN(),fN(),mN(),vN||(vN=1,CN.exports=function(e){return e.mode.ECB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t),e.mode.ECB;var t}(dD(),iN())),AN||(AN=1,TN.exports=function(e){return e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,i=r-n%r,o=n+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923}(dD(),iN())),bN||(bN=1,kN.exports=function(e){return e.pad.Iso10126={pad:function(t,n){var r=4*n,i=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126}(dD(),iN())),yN||(yN=1,ON.exports=function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971}(dD(),iN())),wN||(wN=1,MN.exports=function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},e.pad.ZeroPadding}(dD(),iN())),_N||(_N=1,IN.exports=function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding}(dD(),iN())),xN||(xN=1,DN.exports=function(e){return function(){var t=e,n=t.lib.CipherParams,r=t.enc.Hex;t.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var t=r.parse(e);return n.create({ciphertext:t})}}}(),e.format.Hex}(dD(),iN())),EN||(EN=1,NN.exports=function(e){return function(){var t=e,n=t.lib.BlockCipher,r=t.algo,i=[],o=[],a=[],s=[],l=[],c=[],u=[],d=[],h=[],f=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,i[n]=p,o[p]=n;var g=e[n],m=e[g],v=e[m],A=257*e[p]^16843008*p;a[n]=A<<24|A>>>8,s[n]=A<<16|A>>>16,l[n]=A<<8|A>>>24,c[n]=A,A=16843009*v^65537*m^257*g^16843008*n,u[p]=A<<24|A>>>8,d[p]=A<<16|A>>>16,h[p]=A<<8|A>>>24,f[p]=A,n?(n=g^e[e[e[v^g]]],r^=e[e[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],a=0;a<r;a++)a<n?o[a]=t[a]:(c=o[a-1],a%n?n>6&&a%n==4&&(c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c]):(c=i[(c=c<<8|c>>>24)>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c],c^=p[a/n|0]<<24),o[a]=o[a-n]^c);for(var s=this._invKeySchedule=[],l=0;l<r;l++){if(a=r-l,l%4)var c=o[a];else c=o[a-4];s[l]=l<4||a<=4?c:u[i[c>>>24]]^d[i[c>>>16&255]]^h[i[c>>>8&255]]^f[i[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,l,c,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,h,f,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],h=e[t+3]^n[3],f=4,p=1;p<l;p++){var g=r[c>>>24]^i[u>>>16&255]^o[d>>>8&255]^a[255&h]^n[f++],m=r[u>>>24]^i[d>>>16&255]^o[h>>>8&255]^a[255&c]^n[f++],v=r[d>>>24]^i[h>>>16&255]^o[c>>>8&255]^a[255&u]^n[f++],A=r[h>>>24]^i[c>>>16&255]^o[u>>>8&255]^a[255&d]^n[f++];c=g,u=m,d=v,h=A}g=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[f++],m=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[f++],v=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[f++],A=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[f++],e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=A},keySize:8});t.AES=n._createHelper(g)}(),e.AES}(dD(),xD(),OD(),tN(),iN())),LN(),BN||(BN=1,HN.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var o=0;i<256;i++){var a=i%n,s=t[a>>>2]>>>24-a%4*8&255;o=(o+r[i]+s)%256;var l=r[i];r[i]=r[o],r[o]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[n],e[n]=o,r|=e[(e[t]+e[n])%256]<<24-8*i}return this._i=t,this._j=n,r}t.RC4=n._createHelper(i);var a=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});t.RC4Drop=n._createHelper(a)}(),e.RC4}(dD(),xD(),OD(),tN(),iN())),PN||(PN=1,UN.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=[],o=[],a=[],s=r.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,a=o[0],s=o[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(i[0]^=c,i[1]^=d,i[2]^=u,i[3]^=h,i[4]^=c,i[5]^=d,i[6]^=u,i[7]^=h,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=n._createHelper(s)}(),e.Rabbit}(dD(),xD(),OD(),tN(),iN())),FN||(FN=1,QN.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=[],o=[],a=[],s=r.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)l.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(r[0]^=c,r[1]^=d,r[2]^=u,r[3]^=h,r[4]^=c,r[5]^=d,r[6]^=u,r[7]^=h,i=0;i<4;i++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,s=r>>>16,l=((i*i>>>17)+i*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=l^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=n._createHelper(s)}(),e.RabbitLegacy}(dD(),xD(),OD(),tN(),iN())),WN())),aD.exports),VN=i(GN),KN={},YN=/^cherry-inner:\/\/([0-9a-f]+)$/i;function qN(e){return function(t,n,r){if(XN.isInnerLink(t)){var i=e(XN.get(t),n,r);return XN.replace(t,i)}return e(t,n,r)}}var XN=function(){function e(){ua(this,e)}return mc(e,null,[{key:"isInnerLink",value:function(e){return YN.test(e)}},{key:"set",value:function(e){var t=VN.SHA256(e).toString();return KN[t]=e,"cherry-inner://".concat(t)}},{key:"get",value:function(e){var t,n=Yy(null!==(t=e.match(YN))&&void 0!==t?t:[],2)[1];if(n)return KN[n]}},{key:"replace",value:function(e,t){var n,r=Yy(null!==(n=e.match(YN))&&void 0!==n?n:[],2)[1];if(r)return KN[r]=t,e}},{key:"restoreAll",value:function(t){return t.replace(/cherry-inner:\/\/([0-9a-f]+)/gi,function(t){return e.get(t)||t})}},{key:"clear",value:function(){KN={}}}])}();function JN(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(JN=function(){return!!e})()}var ZN=function(){function e(t){var n,r,i,o,a=t.config;return t.globalConfig,ua(this,e),r=this,o=[{config:a}],i=wu(i=e),(n=Ac(r,JN()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).target=a.target?'target="'.concat(a.target,'"'):a.openNewPage?'target="_blank"':"",n.rel=a.rel?'rel="'.concat(a.rel,'"'):"",n}return Pu(e,vk),mc(e,[{key:"checkBrackets",value:function(e){for(var t=[],n="[".concat(e,"]"),r=function(e){return 1&_x(n).call(n,0,e).match(/\\*$/)[0].length},i=n.length-1;n[i]&&(i!==n.length-1||!r(i));i--)if("]"!==n[i]||r(i)||t.push("]"),"["===n[i]&&!r(i)&&(t.pop(),!t.length))return{isValid:!0,coreText:_x(n).call(n,i+1,n.length-1),extraLeadingChar:_x(n).call(n,0,i)};return{isValid:!1,coreText:e,extraLeadingChar:""}}},{key:"toHtml",value:function(e,t,n,r,i,o,a){var s=void 0===r?"ref":"url",l="";if("ref"===s)return e;if("url"===s){var c,u=this.checkBrackets(n),d=u.isValid,h=u.coreText,f=u.extraLeadingChar;if(!d)return e;l=i&&""!==c_(i).call(i)?' title="'.concat(Zk(i.replace(/["']/g,"")),'"'):"",a?l+=' target="'.concat(a.replace(/{target\s*=\s*(.*?)}/,"$1"),'"'):this.target&&(l+=" ".concat(this.target));var p=c_(r).call(r).replace(/~1D/g,"~D"),g=h.replace(/~1D/g,"~D");if(nO(p)){var m,v,A,b,y,w;p=rO(p=this.$engine.urlProcessor(p,"link"));var _=null!==(m=this.$engine.$cherry.options.engine.syntax.link.attrRender(g,p))&&void 0!==m?m:"";return Xu(v=Xu(A=Xu(b=Xu(y=Xu(w="".concat(t+f,'<a href="')).call(w,XN.set(p),'" ')).call(y,"string"==typeof _?_:""," ")).call(b,this.rel," ")).call(A,l,">")).call(v,g,"</a>")}return Xu(c="".concat(t+f,"<span>")).call(c,n,"</span>")}return e}},{key:"toStdMarkdown",value:function(e){return e}},{key:"makeHtml",value:function(e){var t,n,r=e.replace(this.RULE.reg,function(e){return e.replace(/~D/g,"~1D")});return r=eT()?r.replace(this.RULE.reg,Ju(t=this.toHtml).call(t,this)):BI(r,this.RULE.reg,Ju(n=this.toHtml).call(n,this),!0,1),r.replace(this.RULE.reg,function(e){return e.replace(/~1D/g,"~D")})}},{key:"rule",value:function(){var e,t={begin:eT()?"((?<!\\\\))":"(^|[^\\\\])",content:["\\[([^\\n]*?)\\]","[ \\t]*",Xu(e="".concat("(?:\\(((?:[^\\s()]*\\([^\\s()]*\\)[^\\s()]*)+|[^\\s)]+)(?:[ \\t]((?:\".*?\")|(?:'.*?')))?\\)|\\[(")).call(e,nT,")\\]")+")","(\\{target\\s*=\\s*(_blank|_parent|_self|_top)\\})?"].join(""),end:""};return t.reg=ZC(t,"g"),t}}])}();function eR(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(eR=function(){return!!e})()}Fu(ZN,"HOOK_NAME","link");var tR=function(){function e(){var t,n,r,i,o=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;return ua(this,e),n=this,i=[{config:o}],r=wu(r=e),t=Ac(n,eR()?pr(r,i||[],wu(n).constructor):r.apply(n,i)),o?(t.allowWhitespace=!!o.allowWhitespace,t):Ac(t)}return Pu(e,vk),mc(e,[{key:"makeHtml",value:function(e,t){var n=function(e,n,r,i){var o,a,s,l=r.length%2==1?"em":"strong",c=Math.floor(r.length/2),u=Gx("<strong>").call("<strong>",c),d=Gx("</strong>").call("</strong>",c);return"em"===l&&(/[\u4e00-\u9fa5]$/.test(i)?u+='<em class="cherry-right-padding">':u+="<em>",d="</em>".concat(d)),Xu(o=Xu(a=Xu(s="".concat(n)).call(s,u)).call(a,t(i).html.replace(/_/g,"~U"))).call(o,d)},r=e;return r=(r=this.allowWhitespace?(r=(r=r.replace(/(^[\s]*|\n[\s]*)(\*)([^\s*](?:.*?)(?:(?:\n.*?)*?))\*/g,n)).replace(/(^[\s]*|\n[\s]*)(\*{2,})((?:.*?)(?:(?:\n.*?)*?))\2/g,n)).replace(/([^\n*\\\s][ ]*)(\*+)((?:.*?)(?:(?:\n.*?)*?))\2/g,n):r.replace(this.RULE.asterisk.reg,n)).replace(this.RULE.underscore.reg,function(e,n,r,i,o,a){var s,l,c;if(""===c_(i).call(i))return e;var u=r.length%2==1?"em":"strong",d=Math.floor(r.length/2),h=Gx("<strong>").call("<strong>",d),f=Gx("</strong>").call("</strong>",d),p=t(i).html;return"em"===u&&(h+="<em>",f="</em>".concat(f)),Xu(s=Xu(l=Xu(c="".concat(n)).call(c,h)).call(l,p)).call(s,f)}),r.replace(/~U/g,"_")}},{key:"test",value:function(e,t){return this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config,t=!!e&&!!e.allowWhitespace,n=function(e,t){var n,r,i,o="[^".concat(t,"\\s]");return e?"(?:.*?)(?:(?:\\n.*?)*?)":Xu(n=Xu(r=Xu(i="(".concat(o,"|")).call(i,o,"(.*?(\n")).call(r,o,".*)*)")).call(n,o,")")},r={begin:"(^|[^\\\\])([*]+)",content:"(".concat(n(t,"*"),")"),end:"\\2"},i={begin:"(^|".concat(iT,")(_+)"),content:"(".concat(n(t,"_"),")"),end:"\\2(?=".concat(iT,"|$)")};return r.reg=ZC(r,"g"),i.reg=ZC(i,"g"),{asterisk:r,underscore:i}}}])}();function nR(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(nR=function(){return!!e})()}Fu(tR,"HOOK_NAME","fontEmphasis");var rR=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,i=wu(i=e),(n=Ac(r,nR()?pr(i,[],wu(r).constructor):i.apply(r,o))).initBrReg(t.globalConfig.classicBr),n}return Pu(e,aO),mc(e,[{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)?e.replace(this.RULE.reg,function(e,r,i){var o;if(n.isContainsCache(e,!0))return e;var a,s=function(e){var r,i,o,a,s,l;if(""===c_(e).call(e))return"";var c=t(e),u=c.sign,d=c.html,h="p";new RegExp("<(".concat(qk,")[^>]*>"),"i").test(d)&&(h="div");var f=n.getLineCount(e,e);return Xu(r=Xu(i=Xu(o=Xu(a=Xu(s=Xu(l="<".concat(h,' data-sign="')).call(l,u)).call(s,f,'" data-type="')).call(a,h,'" data-lines="')).call(o,f,'">')).call(i,n.$cleanParagraph(d),"</")).call(r,h,">")};return n.isContainsCache(i)?n.makeExcludingCached(Xu(a="".concat(r)).call(a,i),s):s(Xu(o="".concat(r)).call(o,i))}):e}},{key:"rule",value:function(){var e={begin:"(?:^|\\n)(\\n*)",end:"(?=\\s*$|\\n\\n)",content:"([\\s\\S]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}])}();Fu(rR,"HOOK_NAME","normalParagraph");var iR,oR,aR,sR,lR,cR,uR,dR,hR,fR,pR,gR,mR,vR={};function AR(){if(oR)return iR;oR=1;var e=_t();return iR=function(t){return void 0!==t&&(e(t,"value")||e(t,"writable"))}}function bR(){return lR?sR:(lR=1,function(){if(aR)return vR;aR=1;var e=sn(),t=F(),n=Oe(),r=rn(),i=AR(),o=Ot(),a=ks();e({target:"Reflect",stat:!0},{get:function e(s,l){var c,u,d=arguments.length<3?s:arguments[2];return r(s)===d?s[l]:(c=o.f(s,l))?i(c)?c.value:void 0===c.get?void 0:t(c.get,d):n(u=a(s))?e(u,l,d):void 0}})}(),sR=Me().Reflect.get)}function yR(){return uR?cR:(uR=1,cR=bR())}function wR(){return hR?dR:(hR=1,dR=yR())}function _R(){return pR?fR:(pR=1,fR=wR())}function xR(){return mR?gR:(mR=1,gR=_R())}var ER,SR,CR,TR,kR,OR,MR=i(xR());function IR(){return SR?ER:(SR=1,ER=go())}function DR(){return TR?CR:(TR=1,CR=IR())}function NR(){return OR?kR:(OR=1,kR=DR())}var RR=i(NR());function LR(){var e;return LR="undefined"!=typeof Reflect&&MR?nu(e=MR).call(e):function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=wu(e)););return e}(e,t);if(r){var i=RR(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},LR.apply(null,arguments)}function BR(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(BR=function(){return!!e})()}var PR="atx",FR="setext",$R=/[\s\-_]/,jR=/[A-Za-z]/,HR=/[0-9]/,UR=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0,externals:void 0,cherry:void 0};n.externals;var r,i,o,a=n.config,s=n.cherry;return ua(this,e),r=this,o=[{needCache:!0}],i=wu(i=e),(t=Ac(r,BR()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).strict=!a||!!a.strict,t.RULE=t.rule(),t.headerIDCache=[],t.headerIDCounter={},t.config=a||{},t.$cherry=s,t}return Pu(e,aO),mc(e,[{key:"$parseTitleText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"string"!=typeof e?"":e.replace(/<.*?>/g,"").replace(/&#60;/g,"<").replace(/&#62;/g,">")}},{key:"$generateId",value:function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.length,r="",i=0;i<n;i++){var o=e.charAt(i);if(jR.test(o))r+=t?o.toLowerCase():o;else if(HR.test(o))r+=o;else if($R.test(o))r+=r.length<1||"-"!==r.charAt(r.length-1)?"-":"";else if(o.charCodeAt(0)>255)try{r+=encodeURIComponent(o)}catch(e){}}return r}},{key:"generateIDNoDup",value:function(e){var t,n=e.replace(/&#60;/g,"<").replace(/&#62;/g,">"),r=this.$generateId(n,!0),i=yx(t=this.headerIDCache).call(t,r);if(-1!==i)this.headerIDCounter[i]+=1,r+="-".concat(this.headerIDCounter[i]+1);else{var o=this.headerIDCache.push(r);this.headerIDCounter[o-1]=1}return r}},{key:"$wrapHeader",value:function(e,t,n,r){var i,o,a,s,l,c,u,d,h,f,p,g=e,m=r(g=null!==(i=this.$cherry)&&void 0!==i&&null!==(o=i.options)&&void 0!==o&&null!==(a=o.engine)&&void 0!==a&&null!==(s=a.syntax)&&void 0!==s&&s.space?g.replace(/^\s/,""):c_(g).call(g)),v=m.html,A=v.match(/\s+\{#([A-Za-z0-9-]+)\}$/);null!==A&&(v=v.substring(0,A.index),p=Yy(A,2)[1]);var b=this.$parseTitleText(v);p||(p=this.generateIDNoDup(b.replace(/~fn#([0-9]+)#/g,"")));var y="safe_".concat(p),w=this.$engine.hash(Xu(l=Xu(c=Xu(u="".concat(t,"-")).call(u,m.sign,"-")).call(c,p,"-")).call(l,n));return{html:[Xu(d=Xu(h=Xu(f="<h".concat(t,' id="')).call(f,y,'" data-sign="')).call(h,w,'" data-lines="')).call(d,n,'">'),this.$getAnchor(p),"".concat(v),"</h".concat(t,">")].join(""),sign:"".concat(w)}}},{key:"$getAnchor",value:function(e){return"none"===(this.config.anchorStyle||"default")?"":'<a class="anchor" href="#'.concat(e,'"></a>')}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return(this.$engine.$cherry.options.engine.global.flowSessionContext||this.$engine.$cherry.options.engine.syntax.header&&this.$engine.$cherry.options.engine.syntax.header.selfClosing)&&(n=(n=(n=n.replace(/(\n\s*-{1,})\s*$/,"$1 ")).replace(/(^\s*|\n\s*)#{1,}\s*CHERRYFLOWSESSIONCURSOR\s*$/,"$1CHERRYFLOWSESSIONCURSOR")).replace(/(^\s*|\n\s*)#{1,}\s*$/,"$1")),this.test(n,PR)&&(n=n.replace(this.RULE[PR].reg,function(e,n,r,i){return""===c_(i).call(i)?e:t.getCacheWithSpace(t.pushCache(e),e,!0)})),this.test(n,FR)&&(n=n.replace(this.RULE[FR].reg,function(e,n,r){return""===c_(r).call(r)||t.isContainsCache(r)?e:t.getCacheWithSpace(t.pushCache(e),e,!0)})),n}},{key:"makeHtml",value:function(e,t){var n=this,r=this.restoreCache(e);return this.test(r,PR)&&(r=r.replace(this.RULE[PR].reg,function(e,r,i,o){var a=bk(r,n.getLineCount(e.replace(/^\n+/,""))),s=o.replace(/\s+#+\s*$/,""),l=n.$wrapHeader(s,i.length,a,t),c=l.html,u=l.sign;return n.getCacheWithSpace(n.pushCache(c,u,a),e,!0)})),this.test(r,FR)&&(r=r.replace(this.RULE[FR].reg,function(e,r,i,o){if(n.isContainsCache(i))return e;var a=bk(r,n.getLineCount(e.replace(/^\n+/,""))),s="-"===o[0]?2:1,l=n.$wrapHeader(i,s,a,t),c=l.html,u=l.sign;return n.getCacheWithSpace(n.pushCache(c,u,a),e,!0)})),r}},{key:"afterMakeHtml",value:function(t){var n,r,i,o,a=(n="afterMakeHtml",r=this,i=3,o=LR(wu(e.prototype),n,r),2&i&&"function"==typeof o?function(e){return o.apply(r,e)}:o)([t]);return this.headerIDCache=[],this.headerIDCounter={},a}},{key:"test",value:function(e,t){return this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){var e={begin:"(?:^|\\n)(\\n*)",content:["(?:\\h*","(.+)",")\\n","(?:\\h*","([=]+|[-]+)",")"].join(""),end:"(?=$|\\n)"};e.reg=ZC(e,"g",!0);var t={begin:"(?:^|\\n)(\\n*)(?:\\h*(#{1,6}))",content:"(.+?)",end:"(?=$|\\n)"};return this.strict&&(t.begin+="(?=\\h+)"),t.reg=ZC(t,"g",!0),{setext:e,atx:t}}}])}();function QR(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(QR=function(){return!!e})()}Fu(UR,"HOOK_NAME","header");var zR=function(){function e(){return ua(this,e),t=this,r=arguments,n=wu(n=e),Ac(t,QR()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,vk),mc(e,[{key:"rule",value:function(){return{begin:"",content:"",end:"",reg:new RegExp("")}}},{key:"beforeMakeHtml",value:function(e){return e.replace(/\\\n/g,"\\ \n")}},{key:"afterMakeHtml",value:function(e){var t=e.replace(/~Q/g,"~");return(t=(t=(t=(t=t.replace(/~X/g,"`")).replace(/~Y/g,"!")).replace(/~Z/g,"#")).replace(/~&/g,"&")).replace(/~K/g,"/")}}])}();Fu(zR,"HOOK_NAME","transfer");var WR,GR,VR,KR,YR,qR,XR,JR,ZR,eL,tL,nL={};function rL(){if(GR)return WR;GR=1;var e=$e(),t=wt(),n=Se(),r=er(),i=TypeError,o="Reduce of empty array with no initial value",a=function(a){return function(s,l,c,u){var d=t(s),h=n(d),f=r(d);if(e(l),0===f&&c<2)throw new i(o);var p=a?f-1:0,g=a?-1:1;if(c<2)for(;;){if(p in h){u=h[p],p+=g;break}if(p+=g,a?p<0:f<=p)throw new i(o)}for(;a?p>=0:f>p;p+=g)p in h&&(u=l(u,h[p],p,d));return u}};return WR={left:a(!1),right:a(!0)}}function iL(){return YR?KR:(YR=1,function(){if(VR)return nL;VR=1;var e=sn(),t=rL().left,n=Hh(),r=Re();e({target:"Array",proto:!0,forced:!wS()&&r>79&&r<83||!n("reduce")},{reduce:function(e){var n=arguments.length;return t(this,e,n,n>1?arguments[1]:void 0)}})}(),KR=eo()("Array","reduce"))}function oL(){if(XR)return qR;XR=1;var e=De(),t=iL(),n=Array.prototype;return qR=function(r){var i=r.reduce;return r===n||e(n,r)&&i===n.reduce?t:i}}function aL(){return ZR?JR:(ZR=1,JR=oL())}var sL=i(tL?eL:(tL=1,eL=aL()));function lL(e,t){var n=void 0!==HC&&UC(e)||e["@@iterator"];if(!n){if(QC(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return cL(e,t);var r=_x(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u_(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cL(e,t):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function cL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uL(e,t){var n=$h(e);if(Xi){var r=Xi(e);t&&(r=uo(r).call(r,function(t){return To(e,t).enumerable})),n.push.apply(n,r)}return n}function dL(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?gf(n=uL(Object(i),!0)).call(n,function(t){Fu(e,t,i[t])}):$o?Xo(e,$o(i)):gf(r=uL(Object(i))).call(r,function(t){ca(e,t,To(i,t))})}return e}function hL(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(hL=function(){return!!e})()}var fL="loose",pL="strict",gL=function(){function e(t){var n,r,i,o,a=t.externals,s=t.config,l=t.cherry;ua(this,e),r=this,o=[{needCache:!0}],i=wu(i=e),n=Ac(r,hL()?pr(i,o||[],wu(r).constructor):i.apply(r,o));var c=s.enableChart,u=s.selfClosing,d=s.chartRenderEngine,h=s.externals,f=s.chartEngineOptions,p=void 0===f?{}:f;if(n.chartRenderEngine=null,n.selfClosing=u,!0===c)try{n.chartRenderEngine=new d(dL(dL(dL({},a&&h instanceof Array&&sL(h).call(h,function(e,t){return delete p[t],dL(dL({},e),{},Fu({},t,a[t]))},{})),{},{renderer:"svg",width:500,height:300},p),{},{cherryOptions:l?l.options:null,cherry:l}))}catch(e){console.warn(e)}return n}return Pu(e,aO),mc(e,[{key:"$extendColumns",value:function(e,t){var n=t-e.length;return n<1?e:Xu(e).call(e,Gx("&nbsp;|").call("&nbsp;|",n).split("|",n))}},{key:"$parseChartOptions",value:function(e){if(jC.log("Parsing chart options for cell:",e),!this.chartRenderEngine)return jC.log("Chart render engine not available"),null;var t=/^:(\w+):(?:[ ]*{(.*?)}[ ]*)?$/;if(!t.test(e))return jC.log("Cell does not match chart regex:",e),null;var n=Yy(e.match(t),3),r=n[1],i=n[2],o={type:r,options:i?this.$parseProps(i):{}};return jC.log("Parsed chart options:",o),o}},{key:"$parseProps",value:function(e){if(!e||!c_(e).call(e))return{};var t=c_(e).call(e);if(!m_(t).call(t,'"')){var n,r,i,o={},a=/^(\w+|\s*".*?"\s*|\s*'.*?'\s*)\s*:\s*(.+?)$/,s=lL(uo(n=_h(r=t.split(",")).call(r,function(e){return c_(e).call(e)})).call(n,Boolean));try{for(s.s();!(i=s.n()).done;){var l=i.value.match(a);if(l){var c,u,d=c_(c=l[1]).call(c).replace(/^["']|["']$/g,""),h=c_(u=l[2]).call(u);h=/^-?\d+(\.\d+)?$/.test(h)?Number(h):"true"===h||"false"!==h&&h.replace(/^["']|["']$/g,""),o[d]=h}}}catch(e){s.e(e)}finally{s.f()}return $h(o).length>0&&jC.warn("DEPRECATION WARNING: The chart options syntax is outdated and will be removed in a future version. Please switch to standard JSON format.\ne.g., Change '{ title: My Chart }' to '{ \"title\": \"My Chart\" }'.\nOffending string:",e),o}var f="{".concat(t,"}");try{return JSON.parse(f,function(e,t){if("__proto__"!==e&&"constructor"!==e&&"prototype"!==e)return t})}catch(e){return jC.error("Invalid JSON format in chart options. Please check your syntax. Common errors include missing quotes on keys, using single quotes for strings, or a trailing comma.\n"+"Error: ".concat(e.message,"\n")+"Attempted to parse:",f),{}}}},{key:"$parseColumnAlignRules",value:function(e){var t=["U","L","R","C"];return{textAlignRules:_h(e).call(e,function(e){var n=0;return/^:/.test(e)&&(n+=1),/:$/.test(e)&&(n+=2),t[n]}),COLUMN_ALIGN_MAP:{L:"left",R:"right",C:"center"}}}},{key:"$parseTable",value:function(e,t,n){var r,i,o=this,a=0,s=_h(e).call(e,function(e,t){var n=e.replace(/\\\|/g,"~CS").split("|");return""===n[0]&&n.shift(),""===n[n.length-1]&&n.pop(),1!==t&&(a=Math.max(a,n.length)),_h(n).call(n,function(e){return c_(e).call(e)})}),l=this.$parseColumnAlignRules(s[1]),c=l.textAlignRules,u=l.COLUMN_ALIGN_MAP,d={header:[],rows:[],colLength:a,rowLength:s.length-2},h=this.$parseChartOptions(s[0][0]),f=this.$engine.hash(s[0][0]);h&&(s[0][0]="");var p=_h(r=this.$extendColumns(s[0],a)).call(r,function(e,n){var r;d.header.push(e.replace(/~CS/g,"\\|"));var i=t(e.replace(/~CS/g,"\\|")).html;return Xu(r="~CTH".concat(c[n]||"U"," ")).call(r,i," ~CTH$")}).join(""),g=sL(s).call(s,function(e,n,r){var i;if(r<=1)return e;var s=r-2;d.rows[s]=[];var l=_h(i=o.$extendColumns(n,a)).call(i,function(e,n){var r;d.rows[s].push(e.replace(/~CS/g,"\\|"));var i=t(e.replace(/~CS/g,"\\|")).html;return Xu(r="~CTD".concat(c[n]||"U"," ")).call(r,i," ~CTD$")});return e.push("~CTR".concat(l.join(""),"~CTR$")),e},[]).join(""),m=this.$renderTable(u,p,g,n);if(!h)return m;var v=this.chartRenderEngine.render(h.type,h.options,d),A='<figure class="cherry-table-figure">'.concat(v,"</figure>"),b=Xu(i="".concat(m.sign)).call(i,f);return{html:m.html.replace(/(^<div .*?>)/,"$1".concat(A)).replace(/(^<div .*? data-sign=")[^"]+?"/,"$1".concat(b,'"')),sign:b}}},{key:"$testHeadEmpty",value:function(e){var t=e.replace(/&nbsp;/g,"").replace(/\s/g,"").replace(/(~CTH\$|~CTHU|~CTHL|~CTHR|~CTHC)/g,"");return(null==t?void 0:t.length)>0}},{key:"$renderTable",value:function(e,t,n,r){var i,o,a,s,l=this.$testHeadEmpty(t)?Xu(i="~CTHD".concat(t,"~CTHD$~CTBD")).call(i,n,"~CTBD$"):"~CTBD".concat(n,"~CTBD$"),c=this.$engine.hash(l),u=l.replace(/~CTHD\$/g,"</thead>").replace(/~CTHD/g,"<thead>").replace(/~CTBD\$/g,"</tbody>").replace(/~CTBD/g,"</tbody>").replace(/~CTR\$/g,"</tr>").replace(/~CTR/g,"<tr>").replace(/[ ]?~CTH\$/g,"</th>").replace(/[ ]?~CTD\$/g,"</td>").replace(/~CT(D|H)(L|R|C|U)[ ]?/g,function(t,n,r){var i="<t".concat(n);return i+("U"===r?">":' align="'.concat(e[r],'">'))}).replace(/\\\|/g,"|");return{html:Xu(o=Xu(a=Xu(s='<div class="cherry-table-container" data-sign="'.concat(c)).call(s,r,'" data-lines="')).call(a,r,'">\n        <table class="cherry-table">')).call(o,u,"</table></div>"),sign:c}}},{key:"makeHtml",value:function(e,t){var n=this,r=e;return(this.$engine.$cherry.options.engine.global.flowSessionContext||this.selfClosing)&&/(^|^(\s*[^|\s])[^\n]*\n|\n\n|\n(\s*[^|\s])[^\n]*\n)\s*\|[^\n]+\n{0,1}[|:-\s]*\n*$/.test(r)&&(r="".concat(r.replace(/\n[|:-\s]*\n*$/,""),"\n|-|")),this.test(r,pL)&&(r=r.replace(this.RULE[pL].reg,function(e,i){var o,a=n.getLineCount(e,i),s=_h(o=c_(e).call(e).split(/\n/)).call(o,function(e){var t;return c_(t=String(e)).call(t)}),l=n.$parseTable(s,t,a,r),c=l.html,u=l.sign;return n.getCacheWithSpace(n.pushCache(c,u,a),e)})),this.test(r,fL)&&(r=r.replace(this.RULE[fL].reg,function(e,i){var o,a=n.getLineCount(e,i),s=_h(o=c_(e).call(e).split(/\n/)).call(o,function(e){var t;return c_(t=String(e)).call(t)}),l=n.$parseTable(s,t,a,r),c=l.html,u=l.sign;return n.getCacheWithSpace(n.pushCache(c,u,a),e)})),r}},{key:"test",value:function(e,t){return this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){return hT()}}])}();function mL(){return"object"===("undefined"==typeof window?"undefined":ql(window))}function vL(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(vL=function(){return!!e})()}Fu(gL,"HOOK_NAME","table");var AL=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[{needCache:!0}],i=wu(i=e),(n=Ac(r,vL()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).classicBr=wk("classicBr")?_k():t.globalConfig.classicBr,n}return Pu(e,aO),mc(e,[{key:"beforeMakeHtml",value:function(e){var t=this;return this.test(e)?e.replace(this.RULE.reg,function(e,n,r){var i,o;if(0===r)return e;var a,s,l=null!==(i=null===(o=n.match(/\n/g))||void 0===o?void 0:o.length)&&void 0!==i?i:0,c="br".concat(l),u="";u=mL()?t.classicBr?Xu(a='<span data-sign="'.concat(c,'" data-type="br" data-lines="')).call(a,l,'"></span>'):Xu(s='<p data-sign="'.concat(c,'" data-type="br" data-lines="')).call(s,l,'">&nbsp;</p>'):t.classicBr?"":"<br/>";var d=t.pushCache(u,c,l);return"\n\n".concat(d,"\n")}):e}},{key:"makeHtml",value:function(e,t){return e}},{key:"rule",value:function(){var e={begin:"(?:\\n)",end:"",content:"((?:\\h*\\n){2,})"};return e.reg=ZC(e,"g",!0),e}}])}();function bL(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(bL=function(){return!!e})()}Fu(AL,"HOOK_NAME","br");var yL=function(){function e(){return ua(this,e),t=this,r=[{needCache:!0}],n=wu(n=e),Ac(t,bL()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,aO),mc(e,[{key:"beforeMakeHtml",value:function(e){var t=this;return e.replace(this.RULE.reg,function(e,n){var r,i=(n.match(/\n/g)||[]).length+1,o="hr".concat(i);return Ak(e,t.pushCache(Xu(r='<hr data-sign="'.concat(o,'" data-lines="')).call(r,i,'" />'),o))})}},{key:"makeHtml",value:function(e,t){return e}},{key:"rule",value:function(){var e={begin:"(?:^|\\n)(\\n*)[ ]*",end:"(?=$|\\n)",content:"((?:-[ \\t]*){3,}|(?:\\*[ \\t]*){3,}|(?:_[ \\t]*){3,})"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}])}();Fu(yL,"HOOK_NAME","hr");var wL={processExtendAttributesInAlt:function(e){var t=e.match(/#([0-9]+(px|em|pt|pc|in|mm|cm|ex|%)|auto)/g);if(!t)return"";var n="",r=Yy(t,2),i=r[0],o=r[1];return i&&(n="width:".concat(i.replace(/[ #]*/g,""),";")),o&&(n+="height:".concat(o.replace(/[ #]*/g,""),";")),n},processExtendStyleInAlt:function(e){var t={extendStyles:"",extendClasses:""};return this.$addDecorationStyle(t,e),this.$addAlignmentStyle(t,e),t},$addDecorationStyle:function(e,t){var n=t.match(/#(border|shadow|radius|B|S|R)/g);if(n)for(var r=0;r<n.length;r++)switch(n[r]){case"#border":case"#B":e.extendStyles+="border:1px solid #888888;padding: 2px;box-sizing: border-box;",e.extendClasses+=" cherry-img-deco-border";break;case"#shadow":case"#S":e.extendStyles+="box-shadow:0 2px 15px -5px rgb(0 0 0 / 50%);",e.extendClasses+=" cherry-img-deco-shadow";break;case"#radius":case"#R":e.extendStyles+="border-radius: 15px;",e.extendClasses+=" cherry-img-deco-radius"}},$getAlignment:function(e){var t=e.match(/#(center|right|left|float-right|float-left)/i);return t?t[1]:""},$addAlignmentStyle:function(e,t){var n=this.$getAlignment(t);if(n)switch(n){case"center":return e.extendStyles+="transform:translateX(-50%);margin-left:50%;display:block;",void(e.extendClasses+=" cherry-img-align-center");case"right":return e.extendStyles+="transform:translateX(-100%);margin-left:100%;margin-right:-100%;display:block;",void(e.extendClasses+=" cherry-img-align-right");case"left":return e.extendStyles+="transform:translateX(0);margin-left:0;display:block;",void(e.extendClasses+=" cherry-img-align-left");case"float-right":return e.extendStyles+="float:right;transform:translateX(0);margin-left:0;display:block;",void(e.extendClasses+=" cherry-img-align-float-left");case"float-left":return e.extendStyles+="float:left;transform:translateX(0);margin-left:0;display:block;",void(e.extendClasses+=" cherry-img0align-float-right");default:return}}};function _L(e,t){var n=$h(e);if(Xi){var r=Xi(e);t&&(r=uo(r).call(r,function(t){return To(e,t).enumerable})),n.push.apply(n,r)}return n}function xL(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(xL=function(){return!!e})()}var EL=function(){function e(t){var n,r,i,o,a=t.config;return t.globalConfig,ua(this,e),r=this,o=[null],i=wu(i=e),(n=Ac(r,xL()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).config=a,n.extendMedia={tag:["video","audio"]},n.RULE=n.rule(n.extendMedia),n}return Pu(e,vk),mc(e,[{key:"replaceToHtml",value:function(e,t,n,r,i,o,a){var s=void 0===i?"ref":"url",l="";if("ref"===s)return t;if("url"===s){var c,u,d,h,f,p,g,m,v=wL.processExtendAttributesInAlt(r),A=wL.processExtendStyleInAlt(r),b=A.extendStyles,y=A.extendClasses;(v||b)&&(b=Xu(m='style="'.concat(v)).call(m,b,'"')),y&&(y=' class="'.concat(y,'" ')),l=o&&""!==c_(o).call(o)?' title="'.concat(eO(o),'"'):"",a&&(l+=' poster="'.concat(rO(a),'"'));var w=this.$engine.urlProcessor(i,e),_=Xu(c=Xu(u=Xu(d=Xu(h=Xu(f=Xu(p="<".concat(e,' src="')).call(p,XN.set(rO(w)),'"')).call(f,l," ")).call(h,b," ")).call(d,y,' controls="controls">')).call(u,eO(r||""),"</")).call(c,e,">");return Xu(g="".concat(n)).call(g,this.config.videoWrapper?this.config.videoWrapper(i,e,_):_)}return t}},{key:"toHtml",value:function(e,t,n,r,i,o,a){var s=void 0===r?"ref":"url",l="";if("ref"===s)return e;if("url"===s){var c,u,d,h,f,p,g,m,v=wL.processExtendAttributesInAlt(n),A=wL.processExtendStyleInAlt(n),b=A.extendStyles,y=A.extendClasses;(v||b)&&(b=Xu(m='style="'.concat(v)).call(m,b,'"')),y&&(y=' class="'.concat(y,'" ')),l=i&&""!==c_(i).call(i)?' title="'.concat(eO(i.replace(/["']/g,"")),'"'):"";var w,_="src",x=this.$engine.$cherry.options;if(x.callback&&x.callback.beforeImageMounted){var E=x.callback.beforeImageMounted(_,r);_=E.srcProp||_,w=E.src||r}var S=a?a.replace(/[{}]/g,"").replace(/([^=\s]+)=([^\s]+)/g,'$1="$2"').replace(/&/g,"&amp;"):"";return Xu(c=Xu(u=Xu(d=Xu(h=Xu(f=Xu(p=Xu(g="".concat(t,"<img ")).call(g,_,'="')).call(p,XN.set(rO(this.$engine.urlProcessor(w,"image"))),'" ')).call(f,b," ")).call(h,y,' alt="')).call(d,eO(n||""),'"')).call(u,l," ")).call(c,S,"/>")}return e}},{key:"toMediaHtml",value:function(e,t,n,r,i,o,a,s,l){return/(video|audio)/.test(n)?this.replaceToHtml(n,e,t,r,i,o,l):e}},{key:"makeHtml",value:function(e){var t,n,r,i,o=e;return this.test(o)&&(o=eT()?o.replace(this.RULE.reg,Ju(t=this.toHtml).call(t,this)):BI(o,this.RULE.reg,Ju(n=this.toHtml).call(n,this),!0,1)),this.testMedia(o)&&(o=eT()?o.replace(this.RULE.regExtend,Ju(r=this.toMediaHtml).call(r,this)):BI(o,this.RULE.regExtend,Ju(i=this.toMediaHtml).call(i,this),!0,1)),o}},{key:"testMedia",value:function(e){return this.RULE.regExtend&&this.RULE.regExtend.test(e)}},{key:"rule",value:function(e){var t,n={begin:eT()?"((?<!\\\\))!":"(^|[^\\\\])!",content:["\\[([^\\n]*?)\\]","[ \\t]*",Xu(t="".concat('(?:\\(((?:[^\\s()]*\\([^\\s()]*\\)[^\\s()]*)+|(?:[^"][^\\s]+?))(?:[ \\t]((?:".*?")|(?:\'.*?\')))?\\)|\\[(')).call(t,nT,")\\]")+")"].join(""),end:"({[^{}]+?})?"};if(e){var r=function(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?gf(n=_L(Object(i),!0)).call(n,function(t){Fu(e,t,i[t])}):$o?Xo(e,$o(i)):gf(r=_L(Object(i))).call(r,function(t){ca(e,t,To(i,t))})}return e}({},n);r.begin=eT()?"((?<!\\\\))!(".concat(e.tag.join("|"),")"):"(^|[^\\\\])!(".concat(e.tag.join("|"),")"),r.end="({poster=(.*)})?",n.regExtend=ZC(r,"g")}return n.reg=ZC(n,"g"),n}}])}();function SL(e,t){var n=$h(e);if(Xi){var r=Xi(e);t&&(r=uo(r).call(r,function(t){return To(e,t).enumerable})),n.push.apply(n,r)}return n}function CL(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?gf(n=SL(Object(i),!0)).call(n,function(t){Fu(e,t,i[t])}):$o?Xo(e,$o(i)):gf(r=SL(Object(i))).call(r,function(t){ca(e,t,To(i,t))})}return e}function TL(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(TL=function(){return!!e})()}function kL(e){var t;if("object"!==ql(e)&&$h(e).length<1)return"";var n=[""];return gf(t=$h(e)).call(t,function(t){var r;n.push(Xu(r="".concat(t,'="')).call(r,e[t],'"'))}),n.join(" ")}function OL(e,t){for(var n=/^(\t|[ ])/,r=e;n.test(r);)t.space+="\t"===r[0]?4:1,r=r.replace(n,"");return r}function ML(e,t){var n=/^((([*+-]|\d+[.]|en-[a-z]\.|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)([^\r]*?)($|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.]|en-[a-z]\.|[a-z]\.|[I一二三四五六七八九十]+\.)[ \t]+)))/;return n.test(e)?e.replace(n,function(e,n,r,i,o){return t.type=r.search(/[*+-]/g)>-1?"ul":"ol",t.listStyle=function(e){return/^en-[a-z]/.test(e)?"lower-alpha":/^[a-z]/.test(e)?"lower-greek":/^[一二三四五六七八九十]/.test(e)?"cjk-ideographic":/^I/.test(e)?"upper-roman":/^\+/.test(e)?"circle":/^\*/.test(e)?"square":"default"}(r),t.start=Number(r.replace(".",""))?Number(r.replace(".","")):1,o}):(t.type="blank",e)}Fu(EL,"HOOK_NAME","image");var IL=mc(function e(){ua(this,e),this.index=0,this.space=0,this.type="",this.start=1,this.listStyle="",this.strs=[],this.children=[],this.lines=0}),DL=function(){function e(t){var n,r,i,o,a=t.config;return ua(this,e),r=this,o=[{needCache:!0}],i=wu(i=e),(n=Ac(r,TL()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).config=a||{},n.tree=[],n.emptyLines=0,n.indentSpace=Math.max(n.config.indentSpace,2),n}return Pu(e,aO),mc(e,[{key:"addNode",value:function(e,t,n,r){"blank"===e.type?this.tree[r].strs.push(e.strs[0]):(this.tree[n].children.push(t),this.tree[t]=CL(CL({},e),{},{parent:n}))}},{key:"buildTree",value:function(e,t){var n=e.split("\n");this.tree=[],n.unshift("");for(var r=e.match(/\n*$/g)[0].length,i=0;i<n.length-r;i++){var o=new IL;if(n[i]=OL(n[i],o),n[i]=ML(n[i],o),o.strs.push(t(n[i]).html),o.index=i,0!==i){for(var a=i-1;!this.tree[a];)a-=1;if("blank"===o.type)this.addNode(o,i,this.tree[a].parent,a);else{for(;!this.tree[a]||this.tree[a].space>o.space;)a-=1;var s=o.space,l=this.tree[a].space;s<l+this.indentSpace?this.config.listNested&&this.tree[a].type!==o.type?this.addNode(o,i,a):this.addNode(o,i,this.tree[a].parent):s<l+this.indentSpace+4?this.addNode(o,i,a):(o.type="blank",this.addNode(o,i,this.tree[a].parent,a))}}else o.space=-2,this.tree.push(o)}}},{key:"renderSubTree",value:function(e,t,n){var r,i,o,a=this,s=0,l={},c=sL(t).call(t,function(t,n){var r,i,o,l=a.tree[n],c={class:"cherry-list-item"},u="<p>".concat(l.strs.join("<br>"),"</p>");l.lines+=a.getLineCount(l.strs.join("\n"));var d=l.children.length?a.renderTree(n):"";return e.lines+=l.lines,s+=l.lines,/<span class="ch-icon ch-icon-(square|check)"><\/span>/.test(u)&&(c.class+=" check-list-item"),Xu(r=Xu(i=Xu(o="".concat(t,"<li")).call(o,kL(c),">")).call(i,u)).call(r,d,"</li>")},"");return void 0===e.parent&&(l["data-lines"]=0===e.index?s+this.emptyLines:s,l["data-sign"]=this.sign),t[0]&&"ol"===n&&(l.start=this.tree[t[0]].start),l.class="cherry-list__".concat(this.tree[t[0]].listStyle),Xu(r=Xu(i=Xu(o="<".concat(n)).call(o,kL(l),">")).call(i,c,"</")).call(r,n,">")}},{key:"renderTree",value:function(e){var t=this,n=0,r=this.tree[e],i=r.children;return sL(i).call(i,function(e,o,a){if(0===a)return e;if(t.tree[i[a]].type===t.tree[i[a-1]].type)return e;var s=t.renderSubTree(r,_x(i).call(i,n,a),t.tree[i[a-1]].type);return n=a,e+s},"")+(i.length?this.renderSubTree(r,_x(i).call(i,n,i.length),this.tree[i[i.length-1]].type):"")}},{key:"toHtml",value:function(e,t){var n,r;this.emptyLines=null!==(n=null===(r=e.match(/^\n\n/))||void 0===r?void 0:r.length)&&void 0!==n?n:0;var i=e.replace(/~0$/g,"").replace(/^\n+/,"");this.buildTree(function(e){return e.replace(/^((?:|[\t ]+)[*+-]\s+)\[(\s|x)\]/gm,function(e,t,n){var r,i=/\s/.test(n)?'<span class="ch-icon ch-icon-square"></span>':'<span class="ch-icon ch-icon-check"></span>';return Xu(r="".concat(t)).call(r,i)})}(i),t);var o=this.renderTree(0);return this.pushCache(o,this.sign,this.$getLineNum(e))}},{key:"$getLineNum",value:function(e){var t,n,r,i,o=null!==(t=null===(n=e.match(/^\n\n/))||void 0===n?void 0:n.length)&&void 0!==t?t:0;return null!==(r=null===(i=e.replace(/^\n+/,"").replace(/\n+$/,"\n").match(/\n/g))||void 0===i?void 0:i.length)&&void 0!==r?r:0+o}},{key:"makeHtml",value:function(e,t){var n=this,r="".concat(e,"~0");return this.test(r)&&(r=r.replace(this.RULE.reg,function(e){return n.getCacheWithSpace(n.checkCache(e,t,n.$getLineNum(e)),e)})),r.replace(/~0$/g,"")}},{key:"rule",value:function(){var e={begin:"(?:^|\n)(\n*)(([ ]{0,3}([*+-]|\\d+[.]|en-[a-z]\\.|[a-z]\\.|[I一二三四五六七八九十]+\\.)[ \\t]+)",content:"([^\\r]+?)",end:"(~0|\\n{2,}(?=\\S)(?![ \\t]*(?:[*+-]|\\d+[.]|en-[a-z]\\.|[a-z]\\.|[I一二三四五六七八九十]+\\.)[ \\t]+)))"};return e.reg=new RegExp(e.begin+e.content+e.end,"gm"),e}}])}();function NL(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(NL=function(){return!!e})()}Fu(DL,"HOOK_NAME","list");var RL=function(){function e(){return ua(this,e),t=this,r=[{needCache:!0}],n=wu(n=e),Ac(t,NL()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,aO),mc(e,[{key:"handleMatch",value:function(e,t){var n=this;return e.replace(this.RULE.reg,function(e,t,r){var i,o,a,s=n.getLineCount(e,t),l=n.$engine.hash(e),c=n.testHasCache(l);if(!1!==c)return n.getCacheWithSpace(c,e);var u=Xu(i=Xu(o='<blockquote data-sign="'.concat(l,"_")).call(o,s,'" data-lines="')).call(i,s,'">'),d=r.split(/\n</),h="";d.length>1&&(h="\n<".concat(_x(d).call(d,1).join("\n<")));var f=d[0].replace(/^([ \t]*>)/gm,""),p=n.$engine.makeHtmlForBlockquote(f);return u+=p=p.replace(/(<h[1-6]\s)/g,'$1data-in-blockquote="true" '),u+="</blockquote>",Xu(a="".concat(n.getCacheWithSpace(n.pushCache(u,l,s),e))).call(a,h)})}},{key:"makeHtml",value:function(e,t){return this.handleMatch(e,t)}},{key:"rule",value:function(){var e={begin:"(?:^|\\n)(\\s*)",content:["(",">(?:.+?\\n(?![*+-]|\\d+[.]|[a-z]\\.))(?:>*.+?\\n(?![*+-]|\\d+[.]|[a-z]\\.))*(?:>*.+?)","|",">(?:.+?)",")"].join(""),end:"(?=(\\n)|$)"};return e.reg=ZC(e,"g"),e}}])}();function LL(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(LL=function(){return!!e})()}Fu(RL,"HOOK_NAME","blockquote");var BL=function(){function e(t){var n,r,i,o,a=t.config;return t.globalConfig,ua(this,e),r=this,o=[{config:a}],i=wu(i=e),(n=Ac(r,LL()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).enableShortLink=!!a.enableShortLink,n.shortLinkLength=a.shortLinkLength,n.target=a.target?'target="'.concat(a.target,'"'):a.openNewPage?'target="_blank"':"",n.rel=a.rel?'rel="'.concat(a.rel,'"'):"",n}return Pu(e,vk),mc(e,[{key:"isLinkInHtmlAttribute",value:function(e,t,n){for(var r,i=new RegExp(["<","([a-zA-Z][a-zA-Z0-9-]*)","(",["\\s+[a-zA-Z_:][a-zA-Z0-9_.:-]*","(",["\\s*=\\s*","(",["([^\\s\"'=<>`]+)","('[^']*')",'("[^"]*")'].join("|"),")"].join(""),")?"].join(""),")*","\\s*[/]?>"].join(""),"g");null!==(r=i.exec(e))&&!(r.index>t+n);)if(r.index<t&&r.index+r[0].length>=t+n)return!0;return!1}},{key:"isLinkInATag",value:function(e,t,n){for(var r,i=/<a.*>[^<]*<\/a>/g;null!==(r=i.exec(e))&&!(r.index>t+n);)if(r.index<t&&r.index+r[0].length>=t+n)return!0;return!1}},{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)&&(oT.test(e)||sT.test(e))?e.replace(this.RULE.reg,function(e,t,r,i,o,a,s){var l,c,u,d=null==i?void 0:i.replace(/CHERRYFLOWSESSIONCURSOR/g,"");if(n.isLinkInHtmlAttribute(s,a,r.length+d.length)||n.isLinkInATag(s,a,r.length+d.length))return e;var h=r.toLowerCase(),f="",p="",g=!0;if(("<"!==t&&"&#60;"!==t||">"!==o&&"&#62;"!==o)&&(f=t,p=o,g=!1),""===c_(d).call(d)||!g&&""===h&&!/www\./.test(d))return e;switch(h){case"javascript:":return e;case"mailto:":var m,v,A,b,y,w;return aT.test(d)?Xu(m=Xu(v=Xu(A=Xu(b=Xu(y="".concat(f,'<a href="')).call(y,rO(Xu(w="".concat(h)).call(w,d)),'" ')).call(b,n.target," ")).call(A,n.rel,">")).call(v,eO(d),"</a>")).call(m,p):e;case"":var _,x,E,S,C,T,k,O,M,I;if(f===p||!g)return aT.test(d)?Xu(_=Xu(x=Xu(E=Xu(S=Xu(C="".concat(f,'<a href="mailto:')).call(C,rO(d),'" ')).call(S,n.target," ")).call(E,n.rel,">")).call(x,eO(d),"</a>")).call(_,p):cT.test(d)?Xu(T=Xu(k="".concat(f)).call(k,n.renderLink("//".concat(d),d))).call(T,p):e;if(g)return aT.test(d)?Xu(O=Xu(M=Xu(I='<a href="mailto:'.concat(rO(d),'" ')).call(I,n.target," ")).call(M,n.rel,">")).call(O,eO(d),"</a>"):uT.test(d)||cT.test(d)?n.renderLink(d):e;default:return uT.test(d)?Xu(l=Xu(c="".concat(f)).call(c,n.renderLink(Xu(u="".concat(h)).call(u,d)))).call(l,p):e}return e}):e}},{key:"rule",value:function(){var e,t={begin:"(<?)",content:["((?:[a-z][a-z0-9+.-]{1,31}:)?)",Xu(e="((?:".concat(lT.source,")|(?:")).call(e,oT.source,"))")].join(""),end:"(>?)"};return t.reg=ZC(t,"ig"),t}},{key:"renderLink",value:function(t,n){var r,i,o,a,s,l,c=null==n?void 0:n.replace(/CHERRYFLOWSESSIONCURSOR/g,"");if("string"!=typeof c)if(this.enableShortLink){var u,d=t.replace(/^https?:\/\//i,"");c=Xu(u="".concat(d.substring(0,this.shortLinkLength))).call(u,d.length>this.shortLinkLength?"...":"")}else c=t;var h=this.$engine.urlProcessor(t,"autolink"),f=rO(h),p=eO(c),g=uo(r=[this.target,this.rel]).call(r,Boolean).join(" "),m=null!==(i=this.$engine.$cherry.options.engine.syntax.autoLink.attrRender(h,h))&&void 0!==i?i:"";return Xu(o=Xu(a=Xu(s=Xu(l='<a href="'.concat(e.escapePreservedSymbol(f),'" title="')).call(l,e.escapePreservedSymbol(eO(t)),'" ')).call(s,"string"==typeof m?m:"","  ")).call(a,g,">")).call(o,e.escapePreservedSymbol(p),"</a>")}}])}();function PL(){var e,t,n,r;if(mL()){var i=this;i.katex=null!==(e=null===(t=i.$externals)||void 0===t?void 0:t.katex)&&void 0!==e?e:window.katex,i.MathJax=null!==(n=null===(r=i.$externals)||void 0===r?void 0:r.MathJax)&&void 0!==n?n:window.MathJax}}Fu(BL,"HOOK_NAME","autoLink"),Fu(BL,"escapePreservedSymbol",function(e){return e.replace(/_/g,"&#x5f;").replace(/\*/g,"&#x2a;")});var FL=["&","<",">",'"',"'"],$L=function(e){return e.replace(new RegExp(rT,"g"),function(e){return-1!==yx(FL).call(FL,e)?Zk(e):"\\".concat(e)})};function jL(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(jL=function(){return!!e})()}var HL=function(){function e(t){var n,r,i,o,a,s=t.config,l=t.cherry;return ua(this,e),i=this,a=[{needCache:!0}],o=wu(o=e),Fu(r=Ac(i,jL()?pr(o,a||[],wu(i).constructor):o.apply(i,a)),"engine","MathJax"),Fu(r,"katex",void 0),Fu(r,"MathJax",void 0),r.engine=mL()?null!==(n=s.engine)&&void 0!==n?n:"MathJax":"node",r.$cherry=l,r.lastCode="",r}return Pu(e,aO),mc(e,[{key:"toHtml",value:function(e,t,n,r){var i;Ju(PL).call(PL,this)("engine");var o=e.replace(/^[ \f\r\t\v]*/,"").replace(/\s*$/,""),a=t.replace(/^[ \f\r\t\v]*\n/,""),s=this.$engine.hash(e),l=this.getLineCount(o,a);/\n/.test(t)||(l-=1),/\n\s*$/.test(e)||(l-=1),l=l>0?l:0;var c="",u=r.replace(/\\~D/g,"$").replace(/\\~T/g,"~").replace(/~T/g,"~");if("katex"===this.engine)if(this.katex){var d,h,f=this.katex.renderToString(u,{throwOnError:!1,displayMode:!0});this.isSelfClosing()&&(/class="katex-error"/.test(f)&&this.lastCode&&(f=this.lastCode),this.lastCode=f),c=Xu(d=Xu(h='<div data-sign="'.concat(s,'" class="Cherry-Math" data-type="mathBlock"\n              data-lines="')).call(h,l,'">')).call(d,f,"</div>")}else{var p,g;c=Xu(p=Xu(g='<div data-sign="'.concat(s,'" class="Cherry-Math cherry-katex-need-render" data-type="mathBlock" data-lines="')).call(g,l,'" data-content="')).call(p,encodeURI(u),'"></div>'),this.$engine.asyncRenderHandler.add("math-block-".concat(s))}else if(null!==(i=this.MathJax)&&void 0!==i&&i.tex2svg){var m,v,A=kC(this.MathJax.tex2svg(u));this.isSelfClosing()&&(/data-mml-node="merror"/.test(A)&&this.lastCode&&(A=this.lastCode),this.lastCode=A),c=Xu(m=Xu(v='<div data-sign="'.concat(s,'" class="Cherry-Math" data-type="mathBlock"\n            data-lines="')).call(v,l,'">')).call(m,A,"</div>")}else{var b,y;c=Xu(b=Xu(y='<div data-sign="'.concat(s,'" class="Cherry-Math" data-type="mathBlock"\n      data-lines="')).call(y,l,'">$$')).call(b,$L(r),"$$</div>")}return n+this.getCacheWithSpace(this.pushCache(c,s,l),e)}},{key:"isSelfClosing",value:function(){return this.$cherry.options.engine.syntax.mathBlock&&this.$cherry.options.engine.syntax.mathBlock.selfClosing||this.$cherry.options.engine.global.flowSessionContext}},{key:"$dealUnclosingMath",value:function(e){var t=e.replace(/(^|[^\\])(~D|~D~D)(CHERRYFLOWSESSIONCURSOR\n*|\n*)$/,"$1$3");return/(^|[^\\])~D~D/.test(t)&&(t=t.replace(/(CHERRYFLOWSESSIONCURSOR\n*|\n*)$/,"~D~D$1")),t}},{key:"makeMath",value:function(e){var t,n;return eT()?e.replace(this.RULE.reg,Ju(n=this.toHtml).call(n,this)):BI(e,this.RULE.reg,Ju(t=this.toHtml).call(t,this),!0,1)}},{key:"beforeMakeHtml",value:function(e){var t=this.makeMath(e);return this.isSelfClosing()&&t!==(t=this.$dealUnclosingMath(t))&&(t=this.makeMath(t)),t}},{key:"makeHtml",value:function(e){return e}},{key:"rule",value:function(){var e={begin:eT()?"(\\s*)((?<!\\\\))~D~D\\s*":"(\\s*)(^|[^\\\\])~D~D\\s*",content:"([\\w\\W]*?)",end:"(\\s*)~D~D(?:\\s{0,1})"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}])}();function UL(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(UL=function(){return!!e})()}Fu(HL,"HOOK_NAME","mathBlock");var QL=function(){function e(t){var n,r,i,o,a,s=t.config,l=t.cherry;return ua(this,e),i=this,a=[{needCache:!0}],o=wu(o=e),Fu(r=Ac(i,UL()?pr(o,a||[],wu(i).constructor):o.apply(i,a)),"engine","MathJax"),Fu(r,"katex",void 0),Fu(r,"MathJax",void 0),r.engine=mL()?null!==(n=s.engine)&&void 0!==n?n:"MathJax":"node",r.$cherry=l,r.lastCode="",r}return Pu(e,aO),mc(e,[{key:"toHtml",value:function(e,t,n){var r;if(!n)return e;Ju(PL).call(PL,this)("engine");var i=n.match(/\n/g),o=i?i.length+2:2,a=this.$engine.hash(e),s=n.replace(/\\~D/g,"$").replace(/\\~T/g,"~").replace(/~T/g,"~"),l="";if("katex"===this.engine)if(this.katex){var c,u,d=this.katex.renderToString(s,{throwOnError:!1});this.isSelfClosing()&&(/class="katex-error"/.test(d)&&this.lastCode&&(d=this.lastCode),this.lastCode=d),l=Xu(c=Xu(u="".concat(t,'<span class="Cherry-InlineMath" data-type="mathBlock" data-lines="')).call(u,o,'">')).call(c,d,"</span>")}else{var h,f,p;l=Xu(h=Xu(f=Xu(p="".concat(t,'<span data-sign="')).call(p,a,'" class="Cherry-InlineMath cherry-katex-need-render" data-type="mathBlock" data-lines="')).call(f,o,'" data-content="')).call(h,encodeURI(s),'"></span>'),this.$engine.asyncRenderHandler.add("math-inline-".concat(a))}else if(null!==(r=this.MathJax)&&void 0!==r&&r.tex2svg){var g,m,v=kC(this.MathJax.tex2svg(s,{em:12,ex:6,display:!1}));this.isSelfClosing()&&(/data-mml-node="merror"/.test(v)&&this.lastCode&&(v=this.lastCode),this.lastCode=v),l=Xu(g=Xu(m="".concat(t,'<span class="Cherry-InlineMath" data-type="mathBlock" data-lines="')).call(m,o,'">')).call(g,v,"</span>")}else{var A,b;l=Xu(A=Xu(b="".concat(t,'<span class="Cherry-InlineMath" data-type="mathBlock"\n        data-lines="')).call(b,o,'">$')).call(A,$L(n),"$</span>")}return this.pushCache(l,aO.IN_PARAGRAPH_CACHE_KEY_PREFIX+a)}},{key:"isSelfClosing",value:function(){return this.$cherry.options.engine.syntax.inlineMath&&this.$cherry.options.engine.syntax.inlineMath.selfClosing||this.$cherry.options.engine.global.flowSessionContext}},{key:"$dealUnclosingMath",value:function(e){var t=e.replace(/(^|[^\\])(~D)(CHERRYFLOWSESSIONCURSOR\n*|\n*)$/,"$1$3"),n=t.replace(/(^|[^\\])~D~D/g,"");return/(^|[^\\])~D/.test(n)&&(t=t.replace(/(CHERRYFLOWSESSIONCURSOR\n*|\n*)$/,"~D$1")),t}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return n=n.replace(hT(!0),function(e){var n;return _h(n=e.split("|")).call(n,function(e){return t.makeInlineMath(e)}).join("|").replace(/\\~D/g,"~D").replace(/~D/g,"\\~D")}),n=this.makeInlineMath(n),this.isSelfClosing()&&n!==(n=this.$dealUnclosingMath(n))&&(n=this.makeInlineMath(n)),n}},{key:"makeInlineMath",value:function(e){var t,n;return this.test(e)?eT()?e.replace(this.RULE.reg,Ju(n=this.toHtml).call(n,this)):BI(e,this.RULE.reg,Ju(t=this.toHtml).call(t,this),!0,1):e}},{key:"makeHtml",value:function(e){return e}},{key:"rule",value:function(){var e={begin:eT()?"((?<!\\\\))~D\\n?":"(^|[^\\\\])~D\\n?",content:"(.*?)\\n?",end:eT()?"((?<!\\\\))~D":"[^\\\\]~D"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}])}();Fu(QL,"HOOK_NAME","inlineMath");var zL,WL,GL,VL,KL,YL,qL,XL,JL,ZL,eB,tB={};function nB(){if(WL)return zL;WL=1;var e=wt(),t=Jn(),n=er();return zL=function(r){for(var i=e(this),o=n(i),a=arguments.length,s=t(a>1?arguments[1]:void 0,o),l=a>2?arguments[2]:void 0,c=void 0===l?o:t(l,o);c>s;)i[s++]=r;return i},zL}function rB(){return KL?VL:(KL=1,function(){if(GL)return tB;GL=1;var e=sn(),t=nB(),n=Es();e({target:"Array",proto:!0},{fill:t}),n("fill")}(),VL=eo()("Array","fill"))}function iB(){if(qL)return YL;qL=1;var e=De(),t=rB(),n=Array.prototype;return YL=function(r){var i=r.fill;return r===n||e(n,r)&&i===n.fill?t:i}}function oB(){return JL?XL:(JL=1,XL=iB())}var aB=i(eB?ZL:(eB=1,ZL=oB()));function sB(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(sB=function(){return!!e})()}function lB(e){return e}var cB={tocStyle:"plain",tocNodeClass:"toc-li",tocContainerClass:"toc",tocTitleClass:"toc-title",linkProcessor:lB,showAutoNumber:!1},uB='<p data-sign="empty-toc" data-lines="1">&nbsp;</p>',dB=function(){function e(t){var n,r;t.externals;var i,o,a,s=t.config;return ua(this,e),i=this,a=[{needCache:!0}],o=wu(o=e),Fu(r=Ac(i,sB()?pr(o,a||[],wu(i).constructor):o.apply(i,a)),"tocStyle","nested"),Fu(r,"tocNodeClass","toc-li"),Fu(r,"tocContainerClass","toc"),Fu(r,"tocTitleClass","toc-title"),Fu(r,"linkProcessor",lB),Fu(r,"baseLevel",1),Fu(r,"isFirstTocToken",!0),Fu(r,"allowMultiToc",!1),Fu(r,"showAutoNumber",!1),gf(n=$h(cB)).call(n,function(e){r[e]=s[e]||cB[e]}),r}return Pu(e,aO),mc(e,[{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return this.test(n,"extend")&&(n=n.replace(this.RULE.extend.reg,function(e,n,r){var i;if(!t.allowMultiToc&&!t.isFirstTocToken)return Xu(i="\n".concat(n)).call(i,uB);var o=t.pushCache(e);return t.isFirstTocToken=!1,Ak(e,o)})),this.test(n,"standard")&&(n=n.replace(this.RULE.standard.reg,function(e,n,r){var i;return t.allowMultiToc||t.isFirstTocToken?(t.isFirstTocToken=!1,Ak(e,t.pushCache(e))):Xu(i="\n".concat(n)).call(i,uB)})),n}},{key:"makeHtml",value:function(e){return e}},{key:"$makeLevel",value:function(e){for(var t="",n=this.baseLevel;n<e;n++)t+="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";return t}},{key:"$makeTocItem",value:function(e,t){var n,r,i,o,a,s,l,c=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],u="",d="";t&&(u=this.$makeLevel(e.level));var h=this.linkProcessor("#".concat(e.id).replace(/safe_/g,""));e.isInBlockquote&&(d='<i class="cherry-toc-in-blockquote ch-icon ch-icon-blockquote"></i>');var f=c?"</li>":"";return Xu(n=Xu(r=Xu(i=Xu(o=Xu(a=Xu(s=Xu(l='<li class="'.concat(this.tocNodeClass)).call(l,this.showAutoNumber?" toc-li-".concat(e.level):"",'">\n    ')).call(s,u)).call(a,d,'<a href="')).call(o,h,'" class="level-')).call(i,e.level,'" target="_self">')).call(r,e.text,"</a>")).call(n,f)}},{key:"$makePlainToc",value:function(e){var t=this,n=_h(e).call(e,function(e){return t.$makeTocItem(e,!0)});return n.join("")}},{key:"$makeNestedToc",value:function(e){var t,n,r=this,i=0,o=aB(t=new Array(7)).call(t,!1),a=aB(n=new Array(7)).call(n,!1),s="";gf(e).call(e,function(e){var t=e.level;if(0===i){for(var n=t;n>=r.baseLevel;n--)s+="<ul>",a[n]=!0;return s+=r.$makeTocItem(e,!1,!1),o[t]=!0,void(i=t)}if(t<i){for(var l=i;l>=t;l--)o[l]&&(s+="</li>",o[l]=!1),a[l]&&l>t&&(s+="</ul>",a[l]=!1);o[t]=!0,s+=r.$makeTocItem(e,!1,!1),i=t}else if(t===i)o[i]&&(s+="</li>"),s+=r.$makeTocItem(e,!1,!1),o[t]=!0,a[t]=!0;else{for(var c=i+1;c<=t;c++)s+="<ul>",a[c]=!0;o[t]=!0,s+=r.$makeTocItem(e,!1,!1),i=t}});for(var l=i;l>=this.baseLevel;l--)o[l]&&(s+="</li>",o[l]=!1),a[l]&&(s+="</ul>",a[l]=!1);return s}},{key:"$makeToc",value:function(e,t,n){var r,i,o,a,s,l,c,u=bk(n,1),d=Xu(r=Xu(i=Xu(o=Xu(a='<div class="'.concat(this.tocContainerClass)).call(a,this.showAutoNumber?" auto-num-toc":"",'"\n      data-sign="')).call(o,t,"-")).call(i,u,'" data-lines="')).call(r,u,'">');return d+=Xu(s='<p class="'.concat(this.tocTitleClass,'">')).call(s,null!==(l=null===(c=this.$locale)||void 0===c?void 0:c.toc)&&void 0!==l?l:"目录","</p>"),e.length<=0?"":(this.baseLevel=Math.min.apply(Math,DI(_h(e).call(e,function(e){return e.level}))),"nested"===this.tocStyle?d+=this.$makeNestedToc(e):d+=this.$makePlainToc(e),d+="</div>")}},{key:"afterMakeHtml",value:function(t){var n,r,i,o,a=this,s=(n="afterMakeHtml",r=this,i=3,o=LR(wu(e.prototype),n,r),2&i&&"function"==typeof o?function(e){return o.apply(r,e)}:o)([t]),l=[],c="";return s.replace(/<h([1-6])([^>]*?) id="([^"]+?)"[^>]*?>(?:<a[^/]+?\/a>|)(.+?)<\/h\1>/g,function(e,t,n,r,i){var o,a,s=i.replace(/~fn#[0-9]+#/g,""),u=uh(n).call(n,'data-in-blockquote="true"');l.push({level:+t,id:r,text:s,isInBlockquote:u}),c+=Xu(o=Xu(a="".concat(t)).call(a,i)).call(o,u)}),c=this.$engine.hash(c),s=(s=(s=s.replace(/(?:^|\n)(\[\[|\[|【【)(toc|TOC)(\]\]|\]|】】)([<~])/,function(e){return e.replace(/(\]\]|\]|】】)([<~])/,"$1\n$2")})).replace(this.RULE.extend.reg,function(e,t){return a.$makeToc(l,c,t)})).replace(this.RULE.standard.reg,function(e,t){return a.$makeToc(l,c,t)}),this.isFirstTocToken=!0,s}},{key:"test",value:function(e,t){return!!this.RULE[t].reg&&this.RULE[t].reg.test(e)}},{key:"rule",value:function(){var e={begin:"(?:^|\\n)(\\n*)",end:"(?=$|\\n)",content:"[ ]*((?:【【|\\[\\[)(?:toc|TOC)(?:\\]\\]|】】))[ ]*"};e.reg=new RegExp(e.begin+e.content+e.end,"g");var t={begin:"(?:^|\\n)(\\n*)",end:"(?=$|\\n)",content:"[ ]*(\\[(?:toc|TOC)\\])[ ]*"};return t.reg=new RegExp(t.begin+t.content+t.end,"g"),{extend:e,standard:t}}}])}();function hB(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(hB=function(){return!!e})()}Fu(dB,"HOOK_NAME","toc");var fB=function(){function e(t){var n;t.externals;var r,i,o,a=t.config,s=t.cherry;return ua(this,e),r=this,i=wu(i=e),(n=Ac(r,hB()?pr(i,[],wu(r).constructor):i.apply(r,o))).config=a,n.$cherry=s,n.footnoteCache={},n.footnoteMap={},n.footnote=[],n}return Pu(e,aO),mc(e,[{key:"$cleanCache",value:function(){this.footnoteCache={},this.footnoteMap={},this.footnote=[]}},{key:"pushFootnoteCache",value:function(e,t){this.footnoteCache[e]=t}},{key:"getFootnoteCache",value:function(e){return this.footnoteCache[e]||null}},{key:"pushFootNote",value:function(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m=this;if(this.footnoteMap[e])return this.footnoteMap[e];var v=e.replace(/"/g,"'"),A=this.footnote.length+1,b={},y=this.config.refNumber.render(A,v)||"[".concat(A,"]"),w=(null===(n=this.config.refNumber)||void 0===n?void 0:n.appendClass)||"",_=null===(r=this.config.refList)||void 0===r||null===(i=r.listItem)||void 0===i?void 0:i.render(A,v,t,function(){var e,t,n,r,i=m.config.refNumber.render(A,v)||"[".concat(A,"]");return Xu(e=Xu(t=Xu(n=Xu(r='<a href="#fnref:'.concat(A,'" id="fn:')).call(r,A,'" title="')).call(n,v,'" class="footnote-ref ')).call(t,w,'">')).call(e,i,"</a>")});b.fnref=Xu(o=Xu(a=Xu(s=Xu(l='<a href="#fnref:'.concat(A,'" id="fn:')).call(l,A,'" title="')).call(s,v,'" class="footnote-ref ')).call(a,w,'">')).call(o,y,"</a>"),b.num=A,b.note=_||b.fnref+c_(t).call(t),b.note=this.$engine.makeHtmlForFootnote(b.note);var x=this.config.bubbleCard?"cherry-show-bubble-card":"",E=Xu(c="footnote ".concat(w," ")).call(c,x).replace(/ {2,}/g," ");b.fn=Xu(u=Xu(d=Xu(h=Xu(f=Xu(p=Xu(g='<sup class="cherry-footnote-number"><a href="#fn:'.concat(A,'" id="fnref:')).call(g,A,'" title="')).call(p,v,'" data-index="')).call(f,A,'" data-key="')).call(h,v,'" class="')).call(d,E,'">')).call(u,y,"</a></sup>"),this.footnote.push(b);var S="\0~fn#".concat(A-1,"#\0");return this.footnoteMap[e]=S,S}},{key:"getFootNote",value:function(){return this.footnote}},{key:"formatFootNote",value:function(){var e,t,n,r,i,o,a,s,l,c,u,d,h,f,p,g,m=this.getFootNote();if(m.length<=0)return"";var v=(null===(e=this.config.refList)||void 0===e||null===(t=e.listItem)||void 0===t?void 0:t.appendClass)||"",A=_h(m).call(m,function(e,t){var n,r;return Xu(n=Xu(r='<div data-index="'.concat(t+1,'" class="one-footnote ')).call(r,v,'">')).call(n,e.note,"</div>")}).join(""),b=this.$engine.hash(A),y=(null===(n=this.config.refList)||void 0===n||null===(r=n.title)||void 0===r?void 0:r.render())||(null!==(i=null===(o=this.$engine)||void 0===o||null===(a=o.$cherry)||void 0===a||null===(s=a.locale)||void 0===s?void 0:s.footnoteTitle)&&void 0!==i?i:"title"),w=this.config.refList?"":"hidden",_=(null===(l=this.config.refList)||void 0===l?void 0:l.appendClass)||"",x=(null===(c=this.config.refList)||void 0===c||null===(u=c.title)||void 0===u?void 0:u.appendClass)||"";return Xu(d=Xu(h=Xu(f=Xu(p=Xu(g='<div class="footnote '.concat(_," ")).call(g,w,'" data-sign="')).call(p,b,'" data-lines="0"><div class="footnote-title ')).call(f,x,'">')).call(h,y,"</div>")).call(d,A,"</div>")}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;n=n.replace(this.RULE.reg,function(e,n,r,i){return t.pushFootnoteCache(r,i),(e.match(/\n/g)||[]).join("")});var r=[];return n=n.replace(/\[\^([^\]]+?)\](?!:)/g,function(e,n){var i=t.getFootnoteCache(n);if(i)return t.pushFootNote(n,i);if(t.config.selfClosing||t.$cherry.options.engine.global.flowSessionContext){var o,a,s,l,c=n.replace(/"/g,"'");-1===yx(r).call(r,c)&&r.push(c);var u=t.footnote.length+yx(r).call(r,c)+1,d=(null===(o=t.config.refNumber)||void 0===o?void 0:o.appendClass)||"",h="footnote ".concat(d),f=t.config.refNumber.render(u,c)||"[".concat(u,"]");return Xu(a=Xu(s=Xu(l='<sup class="cherry-footnote-number"><a href="#fn:'.concat(u,'" id="fnref:')).call(l,u,'" class="')).call(s,h,'">')).call(a,f,"</a></sup>")}return e}),n+this.formatFootNote()}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){var t=this.getFootNote();return e.replace(/\0~fn#([0-9]+)#\0/g,function(e,n){return t[n].fn})}},{key:"rule",value:function(){var e={begin:"(^|\\n)[ \t]*",content:["\\[\\^([^\\]]+?)\\]:\\h*","([\\s\\S]+?)"].join(""),end:"(?=\\s*$|\\n\\n)"};return e.reg=ZC(e,"g",!0),e}}])}();function pB(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(pB=function(){return!!e})()}Fu(fB,"HOOK_NAME","footnote");var gB=function(){function e(t){var n,r,i,o;return t.externals,t.config,ua(this,e),r=this,i=wu(i=e),(n=Ac(r,pB()?pr(i,[],wu(r).constructor):i.apply(r,o))).commentCache={},n}return Pu(e,aO),mc(e,[{key:"$cleanCache",value:function(){this.commentCache={}}},{key:"pushCommentReferenceCache",value:function(e,t){var n,r=NI(t.split(/[ ]+/g)),i=r[0],o=_x(r).call(r,1),a=XN.set(i);this.commentCache["".concat(e).toLowerCase()]=Xu(n=[a]).call(n,DI(o)).join(" ")}},{key:"getCommentReferenceCache",value:function(e){return this.commentCache["".concat(e).toLowerCase()]||null}},{key:"beforeMakeHtml",value:function(e){var t=this,n=e;return this.test(n)&&(n=n.replace(this.RULE.reg,function(e,n,r,i){var o;return t.pushCommentReferenceCache(r,i),(null!==(o=e.match(/\n/g))&&void 0!==o?o:[]).join("")}),n=n.replace(/(\[[^\]\n]+?\])?(?:\[([^\]\n]+?)\])/g,function(e,n,r){var i,o,a=t.getCommentReferenceCache(r);return a?n?Xu(o="".concat(n,"(")).call(o,a,")"):Xu(i="[".concat(r,"](")).call(i,a,")"):e}),this.$cleanCache()),n}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){return XN.restoreAll(e)}},{key:"rule",value:function(){var e={begin:"(^|\\n)[ \t]*",content:["\\[([^^][^\\]]*?)\\]:\\h*","([^\\n]+?)"].join(""),end:"(?=$|\\n)"};return e.reg=ZC(e,"g",!0),e}}])}();Fu(gB,"HOOK_NAME","commentReference");var mB,vB,AB,bB,yB,wB,_B,xB,EB,SB={};function CB(){return AB?vB:(AB=1,function(){if(mB)return SB;mB=1;var e=sn(),t=hi().some;e({target:"Array",proto:!0,forced:!Hh()("some")},{some:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})}(),vB=eo()("Array","some"))}function TB(){if(yB)return bB;yB=1;var e=De(),t=CB(),n=Array.prototype;return bB=function(r){var i=r.some;return r===n||e(n,r)&&i===n.some?t:i}}function kB(){return _B?wB:(_B=1,wB=TB())}var OB=i(EB?xB:(EB=1,xB=kB()));const{entries:MB,setPrototypeOf:IB,isFrozen:DB,getPrototypeOf:NB,getOwnPropertyDescriptor:RB}=Object;let{freeze:LB,seal:BB,create:PB}=Object,{apply:FB,construct:$B}="undefined"!=typeof Reflect&&Reflect;LB||(LB=function(e){return e}),BB||(BB=function(e){return e}),FB||(FB=function(e,t,n){return e.apply(t,n)}),$B||($B=function(e,t){return new e(...t)});const jB=tP(Array.prototype.forEach),HB=tP(Array.prototype.lastIndexOf),UB=tP(Array.prototype.pop),QB=tP(Array.prototype.push),zB=tP(Array.prototype.splice),WB=tP(String.prototype.toLowerCase),GB=tP(String.prototype.toString),VB=tP(String.prototype.match),KB=tP(String.prototype.replace),YB=tP(String.prototype.indexOf),qB=tP(String.prototype.trim),XB=tP(Object.prototype.hasOwnProperty),JB=tP(RegExp.prototype.test),ZB=(eP=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $B(eP,t)});var eP;function tP(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return FB(e,t,r)}}function nP(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:WB;IB&&IB(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(DB(t)||(t[r]=e),i=e)}e[i]=!0}return e}function rP(e){for(let t=0;t<e.length;t++)XB(e,t)||(e[t]=null);return e}function iP(e){const t=PB(null);for(const[n,r]of MB(e))XB(e,n)&&(Array.isArray(r)?t[n]=rP(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=iP(r):t[n]=r);return t}function oP(e,t){for(;null!==e;){const n=RB(e,t);if(n){if(n.get)return tP(n.get);if("function"==typeof n.value)return tP(n.value)}e=NB(e)}return function(){return null}}const aP=LB(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),sP=LB(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),lP=LB(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),cP=LB(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),uP=LB(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),dP=LB(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),hP=LB(["#text"]),fP=LB(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),pP=LB(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),gP=LB(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),mP=LB(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),vP=BB(/\{\{[\w\W]*|[\w\W]*\}\}/gm),AP=BB(/<%[\w\W]*|[\w\W]*%>/gm),bP=BB(/\$\{[\w\W]*/gm),yP=BB(/^data-[\-\w.\u00B7-\uFFFF]+$/),wP=BB(/^aria-[\-\w]+$/),_P=BB(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xP=BB(/^(?:\w+script|data):/i),EP=BB(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),SP=BB(/^html$/i),CP=BB(/^[a-z][.\w]*(-[.\w]+)+$/i);var TP=Object.freeze({__proto__:null,ARIA_ATTR:wP,ATTR_WHITESPACE:EP,CUSTOM_ELEMENT:CP,DATA_ATTR:yP,DOCTYPE_NAME:SP,ERB_EXPR:AP,IS_ALLOWED_URI:_P,IS_SCRIPT_OR_DATA:xP,MUSTACHE_EXPR:vP,TMPLIT_EXPR:bP});const kP=1,OP=3,MP=7,IP=8,DP=9,NP=function(){return"undefined"==typeof window?null:window};var RP=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:NP();const n=t=>e(t);if(n.version="3.2.6",n.removed=[],!t||!t.document||t.document.nodeType!==DP||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const i=r,o=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:p}=t,g=c.prototype,m=oP(g,"cloneNode"),v=oP(g,"remove"),A=oP(g,"nextSibling"),b=oP(g,"childNodes"),y=oP(g,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let w,_="";const{implementation:x,createNodeIterator:E,createDocumentFragment:S,getElementsByTagName:C}=r,{importNode:T}=i;let k={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof MB&&"function"==typeof y&&x&&void 0!==x.createHTMLDocument;const{MUSTACHE_EXPR:O,ERB_EXPR:M,TMPLIT_EXPR:I,DATA_ATTR:D,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:R,ATTR_WHITESPACE:L,CUSTOM_ELEMENT:B}=TP;let{IS_ALLOWED_URI:P}=TP,F=null;const $=nP({},[...aP,...sP,...lP,...uP,...hP]);let j=null;const H=nP({},[...fP,...pP,...gP,...mP]);let U=Object.seal(PB(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Q=null,z=null,W=!0,G=!0,V=!1,K=!0,Y=!1,q=!0,X=!1,J=!1,Z=!1,ee=!1,te=!1,ne=!1,re=!0,ie=!1,oe=!0,ae=!1,se={},le=null;const ce=nP({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const de=nP({},["audio","video","img","source","image","track"]);let he=null;const fe=nP({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pe="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let ve=me,Ae=!1,be=null;const ye=nP({},[pe,ge,me],GB);let we=nP({},["mi","mo","mn","ms","mtext"]),_e=nP({},["annotation-xml"]);const xe=nP({},["title","style","font","a","script"]);let Ee=null;const Se=["application/xhtml+xml","text/html"];let Ce=null,Te=null;const ke=r.createElement("form"),Oe=function(e){return e instanceof RegExp||e instanceof Function},Me=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Te||Te!==e){if(e&&"object"==typeof e||(e={}),e=iP(e),Ee=-1===Se.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ce="application/xhtml+xml"===Ee?GB:WB,F=XB(e,"ALLOWED_TAGS")?nP({},e.ALLOWED_TAGS,Ce):$,j=XB(e,"ALLOWED_ATTR")?nP({},e.ALLOWED_ATTR,Ce):H,be=XB(e,"ALLOWED_NAMESPACES")?nP({},e.ALLOWED_NAMESPACES,GB):ye,he=XB(e,"ADD_URI_SAFE_ATTR")?nP(iP(fe),e.ADD_URI_SAFE_ATTR,Ce):fe,ue=XB(e,"ADD_DATA_URI_TAGS")?nP(iP(de),e.ADD_DATA_URI_TAGS,Ce):de,le=XB(e,"FORBID_CONTENTS")?nP({},e.FORBID_CONTENTS,Ce):ce,Q=XB(e,"FORBID_TAGS")?nP({},e.FORBID_TAGS,Ce):iP({}),z=XB(e,"FORBID_ATTR")?nP({},e.FORBID_ATTR,Ce):iP({}),se=!!XB(e,"USE_PROFILES")&&e.USE_PROFILES,W=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,K=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Y=e.SAFE_FOR_TEMPLATES||!1,q=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Z=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,ie=e.SANITIZE_NAMED_PROPS||!1,oe=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,P=e.ALLOWED_URI_REGEXP||_P,ve=e.NAMESPACE||me,we=e.MATHML_TEXT_INTEGRATION_POINTS||we,_e=e.HTML_INTEGRATION_POINTS||_e,U=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Oe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(U.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Oe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(U.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(U.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(G=!1),te&&(ee=!0),se&&(F=nP({},hP),j=[],!0===se.html&&(nP(F,aP),nP(j,fP)),!0===se.svg&&(nP(F,sP),nP(j,pP),nP(j,mP)),!0===se.svgFilters&&(nP(F,lP),nP(j,pP),nP(j,mP)),!0===se.mathMl&&(nP(F,uP),nP(j,gP),nP(j,mP))),e.ADD_TAGS&&(F===$&&(F=iP(F)),nP(F,e.ADD_TAGS,Ce)),e.ADD_ATTR&&(j===H&&(j=iP(j)),nP(j,e.ADD_ATTR,Ce)),e.ADD_URI_SAFE_ATTR&&nP(he,e.ADD_URI_SAFE_ATTR,Ce),e.FORBID_CONTENTS&&(le===ce&&(le=iP(le)),nP(le,e.FORBID_CONTENTS,Ce)),oe&&(F["#text"]=!0),X&&nP(F,["html","head","body"]),F.table&&(nP(F,["tbody"]),delete Q.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw ZB('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw ZB('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,_=w.createHTML("")}else void 0===w&&(w=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(p,o)),null!==w&&"string"==typeof _&&(_=w.createHTML(""));LB&&LB(e),Te=e}},Ie=nP({},[...sP,...lP,...cP]),De=nP({},[...uP,...dP]),Ne=function(e){QB(n.removed,{element:e});try{y(e).removeChild(e)}catch(t){v(e)}},Re=function(e,t){try{QB(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){QB(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Ne(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){let t=null,n=null;if(Z)e="<remove></remove>"+e;else{const t=VB(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ee&&ve===me&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=w?w.createHTML(e):e;if(ve===me)try{t=(new f).parseFromString(i,Ee)}catch(e){}if(!t||!t.documentElement){t=x.createDocument(ve,"template",null);try{t.documentElement.innerHTML=Ae?_:i}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),ve===me?C.call(t,X?"html":"body")[0]:X?t.documentElement:o},Be=function(e){return E.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Pe=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Fe=function(e){return"function"==typeof l&&e instanceof l};function $e(e,t,r){jB(e,e=>{e.call(n,t,r,Te)})}const je=function(e){let t=null;if($e(k.beforeSanitizeElements,e,null),Pe(e))return Ne(e),!0;const r=Ce(e.nodeName);if($e(k.uponSanitizeElement,e,{tagName:r,allowedTags:F}),q&&e.hasChildNodes()&&!Fe(e.firstElementChild)&&JB(/<[/\w!]/g,e.innerHTML)&&JB(/<[/\w!]/g,e.textContent))return Ne(e),!0;if(e.nodeType===MP)return Ne(e),!0;if(q&&e.nodeType===IP&&JB(/<[/\w]/g,e.data))return Ne(e),!0;if(!F[r]||Q[r]){if(!Q[r]&&Ue(r)){if(U.tagNameCheck instanceof RegExp&&JB(U.tagNameCheck,r))return!1;if(U.tagNameCheck instanceof Function&&U.tagNameCheck(r))return!1}if(oe&&!le[r]){const t=y(e)||e.parentNode,n=b(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const i=m(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,A(e))}}return Ne(e),!0}return e instanceof c&&!function(e){let t=y(e);t&&t.tagName||(t={namespaceURI:ve,tagName:"template"});const n=WB(e.tagName),r=WB(t.tagName);return!!be[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===me?"svg"===n:t.namespaceURI===pe?"svg"===n&&("annotation-xml"===r||we[r]):Boolean(Ie[n]):e.namespaceURI===pe?t.namespaceURI===me?"math"===n:t.namespaceURI===ge?"math"===n&&_e[r]:Boolean(De[n]):e.namespaceURI===me?!(t.namespaceURI===ge&&!_e[r])&&!(t.namespaceURI===pe&&!we[r])&&!De[n]&&(xe[n]||!Ie[n]):!("application/xhtml+xml"!==Ee||!be[e.namespaceURI]))}(e)?(Ne(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!JB(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y&&e.nodeType===OP&&(t=e.textContent,jB([O,M,I],e=>{t=KB(t,e," ")}),e.textContent!==t&&(QB(n.removed,{element:e.cloneNode()}),e.textContent=t)),$e(k.afterSanitizeElements,e,null),!1):(Ne(e),!0)},He=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in ke))return!1;if(G&&!z[t]&&JB(D,t));else if(W&&JB(N,t));else if(!j[t]||z[t]){if(!(Ue(e)&&(U.tagNameCheck instanceof RegExp&&JB(U.tagNameCheck,e)||U.tagNameCheck instanceof Function&&U.tagNameCheck(e))&&(U.attributeNameCheck instanceof RegExp&&JB(U.attributeNameCheck,t)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(t))||"is"===t&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&JB(U.tagNameCheck,n)||U.tagNameCheck instanceof Function&&U.tagNameCheck(n))))return!1}else if(he[t]);else if(JB(P,KB(n,L,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==YB(n,"data:")||!ue[e])if(V&&!JB(R,KB(n,L,"")));else if(n)return!1;return!0},Ue=function(e){return"annotation-xml"!==e&&VB(e,B)},Qe=function(e){$e(k.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Pe(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0};let i=t.length;for(;i--;){const o=t[i],{name:a,namespaceURI:s,value:l}=o,c=Ce(a),u=l;let d="value"===a?u:qB(u);if(r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,$e(k.uponSanitizeAttribute,e,r),d=r.attrValue,!ie||"id"!==c&&"name"!==c||(Re(a,e),d="user-content-"+d),q&&JB(/((--!?|])>)|<\/(style|title)/i,d)){Re(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Re(a,e);continue}if(!K&&JB(/\/>/i,d)){Re(a,e);continue}Y&&jB([O,M,I],e=>{d=KB(d,e," ")});const h=Ce(e.nodeName);if(He(h,c,d)){if(w&&"object"==typeof p&&"function"==typeof p.getAttributeType)if(s);else switch(p.getAttributeType(h,c)){case"TrustedHTML":d=w.createHTML(d);break;case"TrustedScriptURL":d=w.createScriptURL(d)}if(d!==u)try{s?e.setAttributeNS(s,a,d):e.setAttribute(a,d),Pe(e)?Ne(e):UB(n.removed)}catch(t){Re(a,e)}}else Re(a,e)}$e(k.afterSanitizeAttributes,e,null)},ze=function e(t){let n=null;const r=Be(t);for($e(k.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)$e(k.uponSanitizeShadowNode,n,null),je(n),Qe(n),n.content instanceof a&&e(n.content);$e(k.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,s=null,c=null;if(Ae=!e,Ae&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Fe(e)){if("function"!=typeof e.toString)throw ZB("toString is not a function");if("string"!=typeof(e=e.toString()))throw ZB("dirty is not a string, aborting")}if(!n.isSupported)return e;if(J||Me(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Ce(e.nodeName);if(!F[t]||Q[t])throw ZB("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Le("\x3c!----\x3e"),o=r.ownerDocument.importNode(e,!0),o.nodeType===kP&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!ee&&!Y&&!X&&-1===e.indexOf("<"))return w&&ne?w.createHTML(e):e;if(r=Le(e),!r)return ee?null:ne?_:""}r&&Z&&Ne(r.firstChild);const u=Be(ae?e:r);for(;s=u.nextNode();)je(s),Qe(s),s.content instanceof a&&ze(s.content);if(ae)return e;if(ee){if(te)for(c=S.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(j.shadowroot||j.shadowrootmode)&&(c=T.call(i,c,!0)),c}let d=X?r.outerHTML:r.innerHTML;return X&&F["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&JB(SP,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Y&&jB([O,M,I],e=>{d=KB(d,e," ")}),w&&ne?w.createHTML(d):d},n.setConfig=function(){Me(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},n.clearConfig=function(){Te=null,J=!1},n.isValidAttribute=function(e,t,n){Te||Me({});const r=Ce(e),i=Ce(t);return He(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&QB(k[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=HB(k[e],t);return-1===n?void 0:zB(k[e],n,1)[0]}return UB(k[e])},n.removeHooks=function(e){k[e]=[]},n.removeAllHooks=function(){k={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),LP=RP(window);function BP(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(BP=function(){return!!e})()}var PP=["href","src"];LP.addHook("afterSanitizeAttributes",function(e){gf(PP).call(PP,function(t){if(e.hasAttribute(t)){var n=e.getAttribute(t);e.setAttribute(t,n.replace(/\\/g,"%5c"))}})});var FP=function(){function e(t){var n,r,i,o,a=t.config;return ua(this,e),r=this,o=[{needCache:!0}],i=wu(i=e),(n=Ac(r,BP()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).filterStyle=a.filterStyle||!1,n.removeTrailingNewline=a.removeTrailingNewline||!1,n}return Pu(e,aO),mc(e,[{key:"isAutoLinkTag",value:function(e){var t=[/^<([a-z][a-z0-9+.-]{1,31}:\/\/[^<> `]+)>$/i,/^<(mailto:[^<> `]+)>$/i,/^<([^()<>[\]:'@\\,"\s`]+@[^()<>[\]:'@\\,"\s`.]+\.[^()<>[\]:'@\\,"\s`]+)>$/i];return OB(t).call(t,function(t){return t.test(e)})}},{key:"isHtmlComment",value:function(e){return/^<!--.*?-->$/.test(e)}},{key:"beforeMakeHtml",value:function(e,t){var n=this;this.$engine.htmlWhiteListAppend?(this.htmlWhiteListAppend=new RegExp("^(".concat(this.$engine.htmlWhiteListAppend,")( |$|/)"),"i"),this.htmlWhiteList=this.$engine.htmlWhiteListAppend.split("|")):(this.htmlWhiteListAppend=!1,this.htmlWhiteList=[]);var r=/^[ ]+/i;this.$engine.htmlBlackList&&(r=/\*/.test(this.$engine.htmlBlackList)?/^[^ ]+( |$|\/)/i:new RegExp("^(".concat(this.$engine.htmlBlackList,")( |$|/)"),"i"));var i=e;return i=(i=(i=(i=(i=(i=function(e){if("string"!=typeof e)return"";var t=e.replace(/&(\w+);?/g,function(e,t){return-1===yx(e).call(e,";")||-1===yx(Vk).call(Vk,t.toLowerCase())?e.replace(/&/g,"&amp;"):e});return(t=t.replace(/&#(?!x)(\d*);?/gi,function(e,t){return Kk(t)||-1===yx(e).call(e,";")||t.length>7||!Yk(t)?e.replace(/&/g,"&amp;"):e})).replace(/&#x([0-9a-f]*);?/gi,function(e,t){if(Kk(t))return e.replace(/&/g,"&amp;");var n="0x".concat(t),r=Bx(n,16);return isNaN(r)||-1===yx(e).call(e,";")||t.length>6||!Yk(n)?e.replace(/&/g,"&amp;"):e})}(i=tO(i))).replace(/<[/]?([^<]*?)>/g,function(e,t){if(r&&r.test(t)&&!n.isAutoLinkTag(e)&&!n.isHtmlComment(e))return e.replace(/</g,"&#60;").replace(/>/g,"&#62;");if(!(Jk.test(t)||n.isAutoLinkTag(e)||n.isHtmlComment(e)||!1!==n.htmlWhiteListAppend&&n.htmlWhiteListAppend.test(t)))return e.replace(/</g,"&#60;").replace(/>/g,"&#62;");var i=e;return t.replace(/^a .*? href="([^"]+)"/,function(e,t){var r=n.$engine.urlProcessor(t,"link");i=i.replace(/ href="[^"]+"/,' href="'.concat(r,'"'))}),t.replace(/^a href="([^"]+)"/,function(e,t){var r=n.$engine.urlProcessor(t,"link");i=i.replace(/ href="[^"]+"/,' href="'.concat(r,'"'))}),t.replace(/^img .*? src="([^"]+)"/,function(e,t){var r=n.$engine.urlProcessor(t,"image");i=i.replace(/ src="[^"]+"/,' src="'.concat(r,'"'))}),t.replace(/^img src="([^"]+)"/,function(e,t){var r=n.$engine.urlProcessor(t,"image");i=i.replace(/ src="[^"]+"/,' src="'.concat(r,'"'))}),i.replace(/</g,"$#60;").replace(/>/g,"$#62;")})).replace(/<(?=(\w|\n|$))/g,"&#60;")).replace(/<\//g,"&#60;/")).replace(/\$#60;/g,"<").replace(/\$#62;/g,">")).replace(/\\&#60;/g,"&lt;").replace(/\\&#62;/g,"&gt;").replace(/\\</g,"&lt;").replace(/\\>/g,"&gt;"),this.filterStyle&&(i=(i=i.replace(/<([^/][^>]+?) style="[^>\n]+?"([^>\n]*)>/gi,"<$1$2>")).replace(/<([^/][^>]+?) style='[^>\n]+?'([^>\n]*)>/gi,"<$1$2>")),this.removeTrailingNewline&&(i=i.replace(/(<\/[^>\n]+>)\s*\n\s*\n+/g,"$1\n")),i}},{key:"makeHtml",value:function(e,t){return e}},{key:"afterMakeHtml",value:function(e){var t,n,r,i=e,o={ALLOW_UNKNOWN_PROTOCOLS:!0,ADD_ATTR:["target"]},a=this.$engine.$cherry.options.engine.global.htmlAttrWhiteList;if((o.ADD_ATTR=Xu(t=o.ADD_ATTR).call(t,null!==(n=null==a?void 0:a.split(/[;,|]/))&&void 0!==n?n:[]),!1!==this.htmlWhiteListAppend)&&(o.ADD_TAGS=this.htmlWhiteList,(this.htmlWhiteListAppend.test("style")||this.htmlWhiteListAppend.test("ALL"))&&(i=i.replace(/<style(>| [^>]*>).*?<\/style>/gi,function(e){return e.replace(/<br>/gi,"")})),(this.htmlWhiteListAppend.test("iframe")||this.htmlWhiteListAppend.test("ALL"))&&(o.ADD_ATTR=Xu(r=o.ADD_ATTR).call(r,["align","frameborder","height","longdesc","marginheight","marginwidth","name","sandbox","scrolling","seamless","src","srcdoc","width"]),o.SANITIZE_DOM=!1,i=i.replace(/<iframe(>| [^>]*>).*?<\/iframe>/gi,function(e){return e.replace(/<br>/gi,"").replace(/\n/g,"")})),this.htmlWhiteListAppend.test("script")||this.htmlWhiteListAppend.test("ALL")))return i.replace(/<script(>| [^>]*>).*?<\/script>/gi,function(e){return e.replace(/<br>/gi,"")});return mL()||(o.FORBID_ATTR=["data-sign","data-lines"]),o.ADD_TAGS||(o.ADD_TAGS=[]),"string"==typeof o.ADD_TAGS?o.ADD_TAGS+="|foreignObject":QC(o.ADD_TAGS)&&o.ADD_TAGS.push("foreignObject"),o.HTML_INTEGRATION_POINTS||(o.HTML_INTEGRATION_POINTS={}),o.HTML_INTEGRATION_POINTS.foreignobject=!0,LP.sanitize(i,o)}}])}();Fu(FP,"HOOK_NAME","htmlBlock");var $P={"+1":"1f44d","-1":"1f44e",100:"1f4af",1234:"1f522","1st_place_medal":"1f947","2nd_place_medal":"1f948","3rd_place_medal":"1f949","8ball":"1f3b1",a:"1f170",ab:"1f18e",abacus:"1f9ee",abc:"1f524",abcd:"1f521",accept:"1f251",adhesive_bandage:"1fa79",adult:"1f9d1",aerial_tramway:"1f6a1",afghanistan:"1f1e6-1f1eb",airplane:"2708",aland_islands:"1f1e6-1f1fd",alarm_clock:"23f0",albania:"1f1e6-1f1f1",alembic:"2697",algeria:"1f1e9-1f1ff",alien:"1f47d",ambulance:"1f691",american_samoa:"1f1e6-1f1f8",amphora:"1f3fa",anchor:"2693",andorra:"1f1e6-1f1e9",angel:"1f47c",anger:"1f4a2",angola:"1f1e6-1f1f4",angry:"1f620",anguilla:"1f1e6-1f1ee",anguished:"1f627",ant:"1f41c",antarctica:"1f1e6-1f1f6",antigua_barbuda:"1f1e6-1f1ec",apple:"1f34e",aquarius:"2652",argentina:"1f1e6-1f1f7",aries:"2648",armenia:"1f1e6-1f1f2",arrow_backward:"25c0",arrow_double_down:"23ec",arrow_double_up:"23eb",arrow_down:"2b07",arrow_down_small:"1f53d",arrow_forward:"25b6",arrow_heading_down:"2935",arrow_heading_up:"2934",arrow_left:"2b05",arrow_lower_left:"2199",arrow_lower_right:"2198",arrow_right:"27a1",arrow_right_hook:"21aa",arrow_up:"2b06",arrow_up_down:"2195",arrow_up_small:"1f53c",arrow_upper_left:"2196",arrow_upper_right:"2197",arrows_clockwise:"1f503",arrows_counterclockwise:"1f504",art:"1f3a8",articulated_lorry:"1f69b",artificial_satellite:"1f6f0",artist:"1f9d1-1f3a8",aruba:"1f1e6-1f1fc",ascension_island:"1f1e6-1f1e8",asterisk:"002a-20e3",astonished:"1f632",astronaut:"1f9d1-1f680",athletic_shoe:"1f45f",atm:"1f3e7",atom_symbol:"269b",australia:"1f1e6-1f1fa",austria:"1f1e6-1f1f9",auto_rickshaw:"1f6fa",avocado:"1f951",axe:"1fa93",azerbaijan:"1f1e6-1f1ff",b:"1f171",baby:"1f476",baby_bottle:"1f37c",baby_chick:"1f424",baby_symbol:"1f6bc",back:"1f519",bacon:"1f953",badger:"1f9a1",badminton:"1f3f8",bagel:"1f96f",baggage_claim:"1f6c4",baguette_bread:"1f956",bahamas:"1f1e7-1f1f8",bahrain:"1f1e7-1f1ed",balance_scale:"2696",bald_man:"1f468-1f9b2",bald_woman:"1f469-1f9b2",ballet_shoes:"1fa70",balloon:"1f388",ballot_box:"1f5f3",ballot_box_with_check:"2611",bamboo:"1f38d",banana:"1f34c",bangbang:"203c",bangladesh:"1f1e7-1f1e9",banjo:"1fa95",bank:"1f3e6",bar_chart:"1f4ca",barbados:"1f1e7-1f1e7",barber:"1f488",baseball:"26be",basket:"1f9fa",basketball:"1f3c0",basketball_man:"26f9-2642",basketball_woman:"26f9-2640",bat:"1f987",bath:"1f6c0",bathtub:"1f6c1",battery:"1f50b",beach_umbrella:"1f3d6",bear:"1f43b",bearded_person:"1f9d4",bed:"1f6cf",bee:"1f41d",beer:"1f37a",beers:"1f37b",beetle:"1f41e",beginner:"1f530",belarus:"1f1e7-1f1fe",belgium:"1f1e7-1f1ea",belize:"1f1e7-1f1ff",bell:"1f514",bellhop_bell:"1f6ce",benin:"1f1e7-1f1ef",bento:"1f371",bermuda:"1f1e7-1f1f2",beverage_box:"1f9c3",bhutan:"1f1e7-1f1f9",bicyclist:"1f6b4",bike:"1f6b2",biking_man:"1f6b4-2642",biking_woman:"1f6b4-2640",bikini:"1f459",billed_cap:"1f9e2",biohazard:"2623",bird:"1f426",birthday:"1f382",black_circle:"26ab",black_flag:"1f3f4",black_heart:"1f5a4",black_joker:"1f0cf",black_large_square:"2b1b",black_medium_small_square:"25fe",black_medium_square:"25fc",black_nib:"2712",black_small_square:"25aa",black_square_button:"1f532",blond_haired_man:"1f471-2642",blond_haired_person:"1f471",blond_haired_woman:"1f471-2640",blonde_woman:"1f471-2640",blossom:"1f33c",blowfish:"1f421",blue_book:"1f4d8",blue_car:"1f699",blue_heart:"1f499",blue_square:"1f7e6",blush:"1f60a",boar:"1f417",boat:"26f5",bolivia:"1f1e7-1f1f4",bomb:"1f4a3",bone:"1f9b4",book:"1f4d6",bookmark:"1f516",bookmark_tabs:"1f4d1",books:"1f4da",boom:"1f4a5",boot:"1f462",bosnia_herzegovina:"1f1e7-1f1e6",botswana:"1f1e7-1f1fc",bouncing_ball_man:"26f9-2642",bouncing_ball_person:"26f9",bouncing_ball_woman:"26f9-2640",bouquet:"1f490",bouvet_island:"1f1e7-1f1fb",bow:"1f647",bow_and_arrow:"1f3f9",bowing_man:"1f647-2642",bowing_woman:"1f647-2640",bowl_with_spoon:"1f963",bowling:"1f3b3",boxing_glove:"1f94a",boy:"1f466",brain:"1f9e0",brazil:"1f1e7-1f1f7",bread:"1f35e",breast_feeding:"1f931",bricks:"1f9f1",bride_with_veil:"1f470",bridge_at_night:"1f309",briefcase:"1f4bc",british_indian_ocean_territory:"1f1ee-1f1f4",british_virgin_islands:"1f1fb-1f1ec",broccoli:"1f966",broken_heart:"1f494",broom:"1f9f9",brown_circle:"1f7e4",brown_heart:"1f90e",brown_square:"1f7eb",brunei:"1f1e7-1f1f3",bug:"1f41b",building_construction:"1f3d7",bulb:"1f4a1",bulgaria:"1f1e7-1f1ec",bullettrain_front:"1f685",bullettrain_side:"1f684",burkina_faso:"1f1e7-1f1eb",burrito:"1f32f",burundi:"1f1e7-1f1ee",bus:"1f68c",business_suit_levitating:"1f574",busstop:"1f68f",bust_in_silhouette:"1f464",busts_in_silhouette:"1f465",butter:"1f9c8",butterfly:"1f98b",cactus:"1f335",cake:"1f370",calendar:"1f4c6",call_me_hand:"1f919",calling:"1f4f2",cambodia:"1f1f0-1f1ed",camel:"1f42b",camera:"1f4f7",camera_flash:"1f4f8",cameroon:"1f1e8-1f1f2",camping:"1f3d5",canada:"1f1e8-1f1e6",canary_islands:"1f1ee-1f1e8",cancer:"264b",candle:"1f56f",candy:"1f36c",canned_food:"1f96b",canoe:"1f6f6",cape_verde:"1f1e8-1f1fb",capital_abcd:"1f520",capricorn:"2651",car:"1f697",card_file_box:"1f5c3",card_index:"1f4c7",card_index_dividers:"1f5c2",caribbean_netherlands:"1f1e7-1f1f6",carousel_horse:"1f3a0",carrot:"1f955",cartwheeling:"1f938",cat:"1f431",cat2:"1f408",cayman_islands:"1f1f0-1f1fe",cd:"1f4bf",central_african_republic:"1f1e8-1f1eb",ceuta_melilla:"1f1ea-1f1e6",chad:"1f1f9-1f1e9",chains:"26d3",chair:"1fa91",champagne:"1f37e",chart:"1f4b9",chart_with_downwards_trend:"1f4c9",chart_with_upwards_trend:"1f4c8",checkered_flag:"1f3c1",cheese:"1f9c0",cherries:"1f352",cherry_blossom:"1f338",chess_pawn:"265f",chestnut:"1f330",chicken:"1f414",child:"1f9d2",children_crossing:"1f6b8",chile:"1f1e8-1f1f1",chipmunk:"1f43f",chocolate_bar:"1f36b",chopsticks:"1f962",christmas_island:"1f1e8-1f1fd",christmas_tree:"1f384",church:"26ea",cinema:"1f3a6",circus_tent:"1f3aa",city_sunrise:"1f307",city_sunset:"1f306",cityscape:"1f3d9",cl:"1f191",clamp:"1f5dc",clap:"1f44f",clapper:"1f3ac",classical_building:"1f3db",climbing:"1f9d7",climbing_man:"1f9d7-2642",climbing_woman:"1f9d7-2640",clinking_glasses:"1f942",clipboard:"1f4cb",clipperton_island:"1f1e8-1f1f5",clock1:"1f550",clock10:"1f559",clock1030:"1f565",clock11:"1f55a",clock1130:"1f566",clock12:"1f55b",clock1230:"1f567",clock130:"1f55c",clock2:"1f551",clock230:"1f55d",clock3:"1f552",clock330:"1f55e",clock4:"1f553",clock430:"1f55f",clock5:"1f554",clock530:"1f560",clock6:"1f555",clock630:"1f561",clock7:"1f556",clock730:"1f562",clock8:"1f557",clock830:"1f563",clock9:"1f558",clock930:"1f564",closed_book:"1f4d5",closed_lock_with_key:"1f510",closed_umbrella:"1f302",cloud:"2601",cloud_with_lightning:"1f329",cloud_with_lightning_and_rain:"26c8",cloud_with_rain:"1f327",cloud_with_snow:"1f328",clown_face:"1f921",clubs:"2663",cn:"1f1e8-1f1f3",coat:"1f9e5",cocktail:"1f378",coconut:"1f965",cocos_islands:"1f1e8-1f1e8",coffee:"2615",coffin:"26b0",cold_face:"1f976",cold_sweat:"1f630",collision:"1f4a5",colombia:"1f1e8-1f1f4",comet:"2604",comoros:"1f1f0-1f1f2",compass:"1f9ed",computer:"1f4bb",computer_mouse:"1f5b1",confetti_ball:"1f38a",confounded:"1f616",confused:"1f615",congo_brazzaville:"1f1e8-1f1ec",congo_kinshasa:"1f1e8-1f1e9",congratulations:"3297",construction:"1f6a7",construction_worker:"1f477",construction_worker_man:"1f477-2642",construction_worker_woman:"1f477-2640",control_knobs:"1f39b",convenience_store:"1f3ea",cook:"1f9d1-1f373",cook_islands:"1f1e8-1f1f0",cookie:"1f36a",cool:"1f192",cop:"1f46e",copyright:"00a9",corn:"1f33d",costa_rica:"1f1e8-1f1f7",cote_divoire:"1f1e8-1f1ee",couch_and_lamp:"1f6cb",couple:"1f46b",couple_with_heart:"1f491",couple_with_heart_man_man:"1f468-2764-1f468",couple_with_heart_woman_man:"1f469-2764-1f468",couple_with_heart_woman_woman:"1f469-2764-1f469",couplekiss:"1f48f",couplekiss_man_man:"1f468-2764-1f48b-1f468",couplekiss_man_woman:"1f469-2764-1f48b-1f468",couplekiss_woman_woman:"1f469-2764-1f48b-1f469",cow:"1f42e",cow2:"1f404",cowboy_hat_face:"1f920",crab:"1f980",crayon:"1f58d",credit_card:"1f4b3",crescent_moon:"1f319",cricket:"1f997",cricket_game:"1f3cf",croatia:"1f1ed-1f1f7",crocodile:"1f40a",croissant:"1f950",crossed_fingers:"1f91e",crossed_flags:"1f38c",crossed_swords:"2694",crown:"1f451",cry:"1f622",crying_cat_face:"1f63f",crystal_ball:"1f52e",cuba:"1f1e8-1f1fa",cucumber:"1f952",cup_with_straw:"1f964",cupcake:"1f9c1",cupid:"1f498",curacao:"1f1e8-1f1fc",curling_stone:"1f94c",curly_haired_man:"1f468-1f9b1",curly_haired_woman:"1f469-1f9b1",curly_loop:"27b0",currency_exchange:"1f4b1",curry:"1f35b",cursing_face:"1f92c",custard:"1f36e",customs:"1f6c3",cut_of_meat:"1f969",cyclone:"1f300",cyprus:"1f1e8-1f1fe",czech_republic:"1f1e8-1f1ff",dagger:"1f5e1",dancer:"1f483",dancers:"1f46f",dancing_men:"1f46f-2642",dancing_women:"1f46f-2640",dango:"1f361",dark_sunglasses:"1f576",dart:"1f3af",dash:"1f4a8",date:"1f4c5",de:"1f1e9-1f1ea",deaf_man:"1f9cf-2642",deaf_person:"1f9cf",deaf_woman:"1f9cf-2640",deciduous_tree:"1f333",deer:"1f98c",denmark:"1f1e9-1f1f0",department_store:"1f3ec",derelict_house:"1f3da",desert:"1f3dc",desert_island:"1f3dd",desktop_computer:"1f5a5",detective:"1f575",diamond_shape_with_a_dot_inside:"1f4a0",diamonds:"2666",diego_garcia:"1f1e9-1f1ec",disappointed:"1f61e",disappointed_relieved:"1f625",diving_mask:"1f93f",diya_lamp:"1fa94",dizzy:"1f4ab",dizzy_face:"1f635",djibouti:"1f1e9-1f1ef",dna:"1f9ec",do_not_litter:"1f6af",dog:"1f436",dog2:"1f415",dollar:"1f4b5",dolls:"1f38e",dolphin:"1f42c",dominica:"1f1e9-1f1f2",dominican_republic:"1f1e9-1f1f4",door:"1f6aa",doughnut:"1f369",dove:"1f54a",dragon:"1f409",dragon_face:"1f432",dress:"1f457",dromedary_camel:"1f42a",drooling_face:"1f924",drop_of_blood:"1fa78",droplet:"1f4a7",drum:"1f941",duck:"1f986",dumpling:"1f95f",dvd:"1f4c0","e-mail":"1f4e7",eagle:"1f985",ear:"1f442",ear_of_rice:"1f33e",ear_with_hearing_aid:"1f9bb",earth_africa:"1f30d",earth_americas:"1f30e",earth_asia:"1f30f",ecuador:"1f1ea-1f1e8",egg:"1f95a",eggplant:"1f346",egypt:"1f1ea-1f1ec",eight:"0038-20e3",eight_pointed_black_star:"2734",eight_spoked_asterisk:"2733",eject_button:"23cf",el_salvador:"1f1f8-1f1fb",electric_plug:"1f50c",elephant:"1f418",elf:"1f9dd",elf_man:"1f9dd-2642",elf_woman:"1f9dd-2640",email:"2709",end:"1f51a",england:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",envelope:"2709",envelope_with_arrow:"1f4e9",equatorial_guinea:"1f1ec-1f1f6",eritrea:"1f1ea-1f1f7",es:"1f1ea-1f1f8",estonia:"1f1ea-1f1ea",ethiopia:"1f1ea-1f1f9",eu:"1f1ea-1f1fa",euro:"1f4b6",european_castle:"1f3f0",european_post_office:"1f3e4",european_union:"1f1ea-1f1fa",evergreen_tree:"1f332",exclamation:"2757",exploding_head:"1f92f",expressionless:"1f611",eye:"1f441",eye_speech_bubble:"1f441-1f5e8",eyeglasses:"1f453",eyes:"1f440",face_with_head_bandage:"1f915",face_with_thermometer:"1f912",facepalm:"1f926",facepunch:"1f44a",factory:"1f3ed",factory_worker:"1f9d1-1f3ed",fairy:"1f9da",fairy_man:"1f9da-2642",fairy_woman:"1f9da-2640",falafel:"1f9c6",falkland_islands:"1f1eb-1f1f0",fallen_leaf:"1f342",family:"1f46a",family_man_boy:"1f468-1f466",family_man_boy_boy:"1f468-1f466-1f466",family_man_girl:"1f468-1f467",family_man_girl_boy:"1f468-1f467-1f466",family_man_girl_girl:"1f468-1f467-1f467",family_man_man_boy:"1f468-1f468-1f466",family_man_man_boy_boy:"1f468-1f468-1f466-1f466",family_man_man_girl:"1f468-1f468-1f467",family_man_man_girl_boy:"1f468-1f468-1f467-1f466",family_man_man_girl_girl:"1f468-1f468-1f467-1f467",family_man_woman_boy:"1f468-1f469-1f466",family_man_woman_boy_boy:"1f468-1f469-1f466-1f466",family_man_woman_girl:"1f468-1f469-1f467",family_man_woman_girl_boy:"1f468-1f469-1f467-1f466",family_man_woman_girl_girl:"1f468-1f469-1f467-1f467",family_woman_boy:"1f469-1f466",family_woman_boy_boy:"1f469-1f466-1f466",family_woman_girl:"1f469-1f467",family_woman_girl_boy:"1f469-1f467-1f466",family_woman_girl_girl:"1f469-1f467-1f467",family_woman_woman_boy:"1f469-1f469-1f466",family_woman_woman_boy_boy:"1f469-1f469-1f466-1f466",family_woman_woman_girl:"1f469-1f469-1f467",family_woman_woman_girl_boy:"1f469-1f469-1f467-1f466",family_woman_woman_girl_girl:"1f469-1f469-1f467-1f467",farmer:"1f9d1-1f33e",faroe_islands:"1f1eb-1f1f4",fast_forward:"23e9",fax:"1f4e0",fearful:"1f628",feet:"1f43e",female_detective:"1f575-2640",female_sign:"2640",ferris_wheel:"1f3a1",ferry:"26f4",field_hockey:"1f3d1",fiji:"1f1eb-1f1ef",file_cabinet:"1f5c4",file_folder:"1f4c1",film_projector:"1f4fd",film_strip:"1f39e",finland:"1f1eb-1f1ee",fire:"1f525",fire_engine:"1f692",fire_extinguisher:"1f9ef",firecracker:"1f9e8",firefighter:"1f9d1-1f692",fireworks:"1f386",first_quarter_moon:"1f313",first_quarter_moon_with_face:"1f31b",fish:"1f41f",fish_cake:"1f365",fishing_pole_and_fish:"1f3a3",fist:"270a",fist_left:"1f91b",fist_oncoming:"1f44a",fist_raised:"270a",fist_right:"1f91c",five:"0035-20e3",flags:"1f38f",flamingo:"1f9a9",flashlight:"1f526",flat_shoe:"1f97f",fleur_de_lis:"269c",flight_arrival:"1f6ec",flight_departure:"1f6eb",flipper:"1f42c",floppy_disk:"1f4be",flower_playing_cards:"1f3b4",flushed:"1f633",flying_disc:"1f94f",flying_saucer:"1f6f8",fog:"1f32b",foggy:"1f301",foot:"1f9b6",football:"1f3c8",footprints:"1f463",fork_and_knife:"1f374",fortune_cookie:"1f960",fountain:"26f2",fountain_pen:"1f58b",four:"0034-20e3",four_leaf_clover:"1f340",fox_face:"1f98a",fr:"1f1eb-1f1f7",framed_picture:"1f5bc",free:"1f193",french_guiana:"1f1ec-1f1eb",french_polynesia:"1f1f5-1f1eb",french_southern_territories:"1f1f9-1f1eb",fried_egg:"1f373",fried_shrimp:"1f364",fries:"1f35f",frog:"1f438",frowning:"1f626",frowning_face:"2639",frowning_man:"1f64d-2642",frowning_person:"1f64d",frowning_woman:"1f64d-2640",fu:"1f595",fuelpump:"26fd",full_moon:"1f315",full_moon_with_face:"1f31d",funeral_urn:"26b1",gabon:"1f1ec-1f1e6",gambia:"1f1ec-1f1f2",game_die:"1f3b2",garlic:"1f9c4",gb:"1f1ec-1f1e7",gear:"2699",gem:"1f48e",gemini:"264a",genie:"1f9de",genie_man:"1f9de-2642",genie_woman:"1f9de-2640",georgia:"1f1ec-1f1ea",ghana:"1f1ec-1f1ed",ghost:"1f47b",gibraltar:"1f1ec-1f1ee",gift:"1f381",gift_heart:"1f49d",giraffe:"1f992",girl:"1f467",globe_with_meridians:"1f310",gloves:"1f9e4",goal_net:"1f945",goat:"1f410",goggles:"1f97d",golf:"26f3",golfing:"1f3cc",golfing_man:"1f3cc-2642",golfing_woman:"1f3cc-2640",gorilla:"1f98d",grapes:"1f347",greece:"1f1ec-1f1f7",green_apple:"1f34f",green_book:"1f4d7",green_circle:"1f7e2",green_heart:"1f49a",green_salad:"1f957",green_square:"1f7e9",greenland:"1f1ec-1f1f1",grenada:"1f1ec-1f1e9",grey_exclamation:"2755",grey_question:"2754",grimacing:"1f62c",grin:"1f601",grinning:"1f600",guadeloupe:"1f1ec-1f1f5",guam:"1f1ec-1f1fa",guard:"1f482",guardsman:"1f482-2642",guardswoman:"1f482-2640",guatemala:"1f1ec-1f1f9",guernsey:"1f1ec-1f1ec",guide_dog:"1f9ae",guinea:"1f1ec-1f1f3",guinea_bissau:"1f1ec-1f1fc",guitar:"1f3b8",gun:"1f52b",guyana:"1f1ec-1f1fe",haircut:"1f487",haircut_man:"1f487-2642",haircut_woman:"1f487-2640",haiti:"1f1ed-1f1f9",hamburger:"1f354",hammer:"1f528",hammer_and_pick:"2692",hammer_and_wrench:"1f6e0",hamster:"1f439",hand:"270b",hand_over_mouth:"1f92d",handbag:"1f45c",handball_person:"1f93e",handshake:"1f91d",hankey:"1f4a9",hash:"0023-20e3",hatched_chick:"1f425",hatching_chick:"1f423",headphones:"1f3a7",health_worker:"1f9d1-2695",hear_no_evil:"1f649",heard_mcdonald_islands:"1f1ed-1f1f2",heart:"2764",heart_decoration:"1f49f",heart_eyes:"1f60d",heart_eyes_cat:"1f63b",heartbeat:"1f493",heartpulse:"1f497",hearts:"2665",heavy_check_mark:"2714",heavy_division_sign:"2797",heavy_dollar_sign:"1f4b2",heavy_exclamation_mark:"2757",heavy_heart_exclamation:"2763",heavy_minus_sign:"2796",heavy_multiplication_x:"2716",heavy_plus_sign:"2795",hedgehog:"1f994",helicopter:"1f681",herb:"1f33f",hibiscus:"1f33a",high_brightness:"1f506",high_heel:"1f460",hiking_boot:"1f97e",hindu_temple:"1f6d5",hippopotamus:"1f99b",hocho:"1f52a",hole:"1f573",honduras:"1f1ed-1f1f3",honey_pot:"1f36f",honeybee:"1f41d",hong_kong:"1f1ed-1f1f0",horse:"1f434",horse_racing:"1f3c7",hospital:"1f3e5",hot_face:"1f975",hot_pepper:"1f336",hotdog:"1f32d",hotel:"1f3e8",hotsprings:"2668",hourglass:"231b",hourglass_flowing_sand:"23f3",house:"1f3e0",house_with_garden:"1f3e1",houses:"1f3d8",hugs:"1f917",hungary:"1f1ed-1f1fa",hushed:"1f62f",ice_cream:"1f368",ice_cube:"1f9ca",ice_hockey:"1f3d2",ice_skate:"26f8",icecream:"1f366",iceland:"1f1ee-1f1f8",id:"1f194",ideograph_advantage:"1f250",imp:"1f47f",inbox_tray:"1f4e5",incoming_envelope:"1f4e8",india:"1f1ee-1f1f3",indonesia:"1f1ee-1f1e9",infinity:"267e",information_desk_person:"1f481",information_source:"2139",innocent:"1f607",interrobang:"2049",iphone:"1f4f1",iran:"1f1ee-1f1f7",iraq:"1f1ee-1f1f6",ireland:"1f1ee-1f1ea",isle_of_man:"1f1ee-1f1f2",israel:"1f1ee-1f1f1",it:"1f1ee-1f1f9",izakaya_lantern:"1f3ee",jack_o_lantern:"1f383",jamaica:"1f1ef-1f1f2",japan:"1f5fe",japanese_castle:"1f3ef",japanese_goblin:"1f47a",japanese_ogre:"1f479",jeans:"1f456",jersey:"1f1ef-1f1ea",jigsaw:"1f9e9",jordan:"1f1ef-1f1f4",joy:"1f602",joy_cat:"1f639",joystick:"1f579",jp:"1f1ef-1f1f5",judge:"1f9d1-2696",juggling_person:"1f939",kaaba:"1f54b",kangaroo:"1f998",kazakhstan:"1f1f0-1f1ff",kenya:"1f1f0-1f1ea",key:"1f511",keyboard:"2328",keycap_ten:"1f51f",kick_scooter:"1f6f4",kimono:"1f458",kiribati:"1f1f0-1f1ee",kiss:"1f48b",kissing:"1f617",kissing_cat:"1f63d",kissing_closed_eyes:"1f61a",kissing_heart:"1f618",kissing_smiling_eyes:"1f619",kite:"1fa81",kiwi_fruit:"1f95d",kneeling_man:"1f9ce-2642",kneeling_person:"1f9ce",kneeling_woman:"1f9ce-2640",knife:"1f52a",koala:"1f428",koko:"1f201",kosovo:"1f1fd-1f1f0",kr:"1f1f0-1f1f7",kuwait:"1f1f0-1f1fc",kyrgyzstan:"1f1f0-1f1ec",lab_coat:"1f97c",label:"1f3f7",lacrosse:"1f94d",lantern:"1f3ee",laos:"1f1f1-1f1e6",large_blue_circle:"1f535",large_blue_diamond:"1f537",large_orange_diamond:"1f536",last_quarter_moon:"1f317",last_quarter_moon_with_face:"1f31c",latin_cross:"271d",latvia:"1f1f1-1f1fb",laughing:"1f606",leafy_green:"1f96c",leaves:"1f343",lebanon:"1f1f1-1f1e7",ledger:"1f4d2",left_luggage:"1f6c5",left_right_arrow:"2194",left_speech_bubble:"1f5e8",leftwards_arrow_with_hook:"21a9",leg:"1f9b5",lemon:"1f34b",leo:"264c",leopard:"1f406",lesotho:"1f1f1-1f1f8",level_slider:"1f39a",liberia:"1f1f1-1f1f7",libra:"264e",libya:"1f1f1-1f1fe",liechtenstein:"1f1f1-1f1ee",light_rail:"1f688",link:"1f517",lion:"1f981",lips:"1f444",lipstick:"1f484",lithuania:"1f1f1-1f1f9",lizard:"1f98e",llama:"1f999",lobster:"1f99e",lock:"1f512",lock_with_ink_pen:"1f50f",lollipop:"1f36d",loop:"27bf",lotion_bottle:"1f9f4",lotus_position:"1f9d8",lotus_position_man:"1f9d8-2642",lotus_position_woman:"1f9d8-2640",loud_sound:"1f50a",loudspeaker:"1f4e2",love_hotel:"1f3e9",love_letter:"1f48c",love_you_gesture:"1f91f",low_brightness:"1f505",luggage:"1f9f3",luxembourg:"1f1f1-1f1fa",lying_face:"1f925",m:"24c2",macau:"1f1f2-1f1f4",macedonia:"1f1f2-1f1f0",madagascar:"1f1f2-1f1ec",mag:"1f50d",mag_right:"1f50e",mage:"1f9d9",mage_man:"1f9d9-2642",mage_woman:"1f9d9-2640",magnet:"1f9f2",mahjong:"1f004",mailbox:"1f4eb",mailbox_closed:"1f4ea",mailbox_with_mail:"1f4ec",mailbox_with_no_mail:"1f4ed",malawi:"1f1f2-1f1fc",malaysia:"1f1f2-1f1fe",maldives:"1f1f2-1f1fb",male_detective:"1f575-2642",male_sign:"2642",mali:"1f1f2-1f1f1",malta:"1f1f2-1f1f9",man:"1f468",man_artist:"1f468-1f3a8",man_astronaut:"1f468-1f680",man_cartwheeling:"1f938-2642",man_cook:"1f468-1f373",man_dancing:"1f57a",man_facepalming:"1f926-2642",man_factory_worker:"1f468-1f3ed",man_farmer:"1f468-1f33e",man_firefighter:"1f468-1f692",man_health_worker:"1f468-2695",man_in_manual_wheelchair:"1f468-1f9bd",man_in_motorized_wheelchair:"1f468-1f9bc",man_in_tuxedo:"1f935",man_judge:"1f468-2696",man_juggling:"1f939-2642",man_mechanic:"1f468-1f527",man_office_worker:"1f468-1f4bc",man_pilot:"1f468-2708",man_playing_handball:"1f93e-2642",man_playing_water_polo:"1f93d-2642",man_scientist:"1f468-1f52c",man_shrugging:"1f937-2642",man_singer:"1f468-1f3a4",man_student:"1f468-1f393",man_teacher:"1f468-1f3eb",man_technologist:"1f468-1f4bb",man_with_gua_pi_mao:"1f472",man_with_probing_cane:"1f468-1f9af",man_with_turban:"1f473-2642",mandarin:"1f34a",mango:"1f96d",mans_shoe:"1f45e",mantelpiece_clock:"1f570",manual_wheelchair:"1f9bd",maple_leaf:"1f341",marshall_islands:"1f1f2-1f1ed",martial_arts_uniform:"1f94b",martinique:"1f1f2-1f1f6",mask:"1f637",massage:"1f486",massage_man:"1f486-2642",massage_woman:"1f486-2640",mate:"1f9c9",mauritania:"1f1f2-1f1f7",mauritius:"1f1f2-1f1fa",mayotte:"1f1fe-1f1f9",meat_on_bone:"1f356",mechanic:"1f9d1-1f527",mechanical_arm:"1f9be",mechanical_leg:"1f9bf",medal_military:"1f396",medal_sports:"1f3c5",medical_symbol:"2695",mega:"1f4e3",melon:"1f348",memo:"1f4dd",men_wrestling:"1f93c-2642",menorah:"1f54e",mens:"1f6b9",mermaid:"1f9dc-2640",merman:"1f9dc-2642",merperson:"1f9dc",metal:"1f918",metro:"1f687",mexico:"1f1f2-1f1fd",microbe:"1f9a0",micronesia:"1f1eb-1f1f2",microphone:"1f3a4",microscope:"1f52c",middle_finger:"1f595",milk_glass:"1f95b",milky_way:"1f30c",minibus:"1f690",minidisc:"1f4bd",mobile_phone_off:"1f4f4",moldova:"1f1f2-1f1e9",monaco:"1f1f2-1f1e8",money_mouth_face:"1f911",money_with_wings:"1f4b8",moneybag:"1f4b0",mongolia:"1f1f2-1f1f3",monkey:"1f412",monkey_face:"1f435",monocle_face:"1f9d0",monorail:"1f69d",montenegro:"1f1f2-1f1ea",montserrat:"1f1f2-1f1f8",moon:"1f314",moon_cake:"1f96e",morocco:"1f1f2-1f1e6",mortar_board:"1f393",mosque:"1f54c",mosquito:"1f99f",motor_boat:"1f6e5",motor_scooter:"1f6f5",motorcycle:"1f3cd",motorized_wheelchair:"1f9bc",motorway:"1f6e3",mount_fuji:"1f5fb",mountain:"26f0",mountain_bicyclist:"1f6b5",mountain_biking_man:"1f6b5-2642",mountain_biking_woman:"1f6b5-2640",mountain_cableway:"1f6a0",mountain_railway:"1f69e",mountain_snow:"1f3d4",mouse:"1f42d",mouse2:"1f401",movie_camera:"1f3a5",moyai:"1f5ff",mozambique:"1f1f2-1f1ff",mrs_claus:"1f936",muscle:"1f4aa",mushroom:"1f344",musical_keyboard:"1f3b9",musical_note:"1f3b5",musical_score:"1f3bc",mute:"1f507",myanmar:"1f1f2-1f1f2",nail_care:"1f485",name_badge:"1f4db",namibia:"1f1f3-1f1e6",national_park:"1f3de",nauru:"1f1f3-1f1f7",nauseated_face:"1f922",nazar_amulet:"1f9ff",necktie:"1f454",negative_squared_cross_mark:"274e",nepal:"1f1f3-1f1f5",nerd_face:"1f913",netherlands:"1f1f3-1f1f1",neutral_face:"1f610",new:"1f195",new_caledonia:"1f1f3-1f1e8",new_moon:"1f311",new_moon_with_face:"1f31a",new_zealand:"1f1f3-1f1ff",newspaper:"1f4f0",newspaper_roll:"1f5de",next_track_button:"23ed",ng:"1f196",ng_man:"1f645-2642",ng_woman:"1f645-2640",nicaragua:"1f1f3-1f1ee",niger:"1f1f3-1f1ea",nigeria:"1f1f3-1f1ec",night_with_stars:"1f303",nine:"0039-20e3",niue:"1f1f3-1f1fa",no_bell:"1f515",no_bicycles:"1f6b3",no_entry:"26d4",no_entry_sign:"1f6ab",no_good:"1f645",no_good_man:"1f645-2642",no_good_woman:"1f645-2640",no_mobile_phones:"1f4f5",no_mouth:"1f636",no_pedestrians:"1f6b7",no_smoking:"1f6ad","non-potable_water":"1f6b1",norfolk_island:"1f1f3-1f1eb",north_korea:"1f1f0-1f1f5",northern_mariana_islands:"1f1f2-1f1f5",norway:"1f1f3-1f1f4",nose:"1f443",notebook:"1f4d3",notebook_with_decorative_cover:"1f4d4",notes:"1f3b6",nut_and_bolt:"1f529",o:"2b55",o2:"1f17e",ocean:"1f30a",octopus:"1f419",oden:"1f362",office:"1f3e2",office_worker:"1f9d1-1f4bc",oil_drum:"1f6e2",ok:"1f197",ok_hand:"1f44c",ok_man:"1f646-2642",ok_person:"1f646",ok_woman:"1f646-2640",old_key:"1f5dd",older_adult:"1f9d3",older_man:"1f474",older_woman:"1f475",om:"1f549",oman:"1f1f4-1f1f2",on:"1f51b",oncoming_automobile:"1f698",oncoming_bus:"1f68d",oncoming_police_car:"1f694",oncoming_taxi:"1f696",one:"0031-20e3",one_piece_swimsuit:"1fa71",onion:"1f9c5",open_book:"1f4d6",open_file_folder:"1f4c2",open_hands:"1f450",open_mouth:"1f62e",open_umbrella:"2602",ophiuchus:"26ce",orange:"1f34a",orange_book:"1f4d9",orange_circle:"1f7e0",orange_heart:"1f9e1",orange_square:"1f7e7",orangutan:"1f9a7",orthodox_cross:"2626",otter:"1f9a6",outbox_tray:"1f4e4",owl:"1f989",ox:"1f402",oyster:"1f9aa",package:"1f4e6",page_facing_up:"1f4c4",page_with_curl:"1f4c3",pager:"1f4df",paintbrush:"1f58c",pakistan:"1f1f5-1f1f0",palau:"1f1f5-1f1fc",palestinian_territories:"1f1f5-1f1f8",palm_tree:"1f334",palms_up_together:"1f932",panama:"1f1f5-1f1e6",pancakes:"1f95e",panda_face:"1f43c",paperclip:"1f4ce",paperclips:"1f587",papua_new_guinea:"1f1f5-1f1ec",parachute:"1fa82",paraguay:"1f1f5-1f1fe",parasol_on_ground:"26f1",parking:"1f17f",parrot:"1f99c",part_alternation_mark:"303d",partly_sunny:"26c5",partying_face:"1f973",passenger_ship:"1f6f3",passport_control:"1f6c2",pause_button:"23f8",paw_prints:"1f43e",peace_symbol:"262e",peach:"1f351",peacock:"1f99a",peanuts:"1f95c",pear:"1f350",pen:"1f58a",pencil:"1f4dd",pencil2:"270f",penguin:"1f427",pensive:"1f614",people_holding_hands:"1f9d1-1f91d-1f9d1",performing_arts:"1f3ad",persevere:"1f623",person_bald:"1f9d1-1f9b2",person_curly_hair:"1f9d1-1f9b1",person_fencing:"1f93a",person_in_manual_wheelchair:"1f9d1-1f9bd",person_in_motorized_wheelchair:"1f9d1-1f9bc",person_red_hair:"1f9d1-1f9b0",person_white_hair:"1f9d1-1f9b3",person_with_probing_cane:"1f9d1-1f9af",person_with_turban:"1f473",peru:"1f1f5-1f1ea",petri_dish:"1f9eb",philippines:"1f1f5-1f1ed",phone:"260e",pick:"26cf",pie:"1f967",pig:"1f437",pig2:"1f416",pig_nose:"1f43d",pill:"1f48a",pilot:"1f9d1-2708",pinching_hand:"1f90f",pineapple:"1f34d",ping_pong:"1f3d3",pirate_flag:"1f3f4-2620",pisces:"2653",pitcairn_islands:"1f1f5-1f1f3",pizza:"1f355",place_of_worship:"1f6d0",plate_with_cutlery:"1f37d",play_or_pause_button:"23ef",pleading_face:"1f97a",point_down:"1f447",point_left:"1f448",point_right:"1f449",point_up:"261d",point_up_2:"1f446",poland:"1f1f5-1f1f1",police_car:"1f693",police_officer:"1f46e",policeman:"1f46e-2642",policewoman:"1f46e-2640",poodle:"1f429",poop:"1f4a9",popcorn:"1f37f",portugal:"1f1f5-1f1f9",post_office:"1f3e3",postal_horn:"1f4ef",postbox:"1f4ee",potable_water:"1f6b0",potato:"1f954",pouch:"1f45d",poultry_leg:"1f357",pound:"1f4b7",pout:"1f621",pouting_cat:"1f63e",pouting_face:"1f64e",pouting_man:"1f64e-2642",pouting_woman:"1f64e-2640",pray:"1f64f",prayer_beads:"1f4ff",pregnant_woman:"1f930",pretzel:"1f968",previous_track_button:"23ee",prince:"1f934",princess:"1f478",printer:"1f5a8",probing_cane:"1f9af",puerto_rico:"1f1f5-1f1f7",punch:"1f44a",purple_circle:"1f7e3",purple_heart:"1f49c",purple_square:"1f7ea",purse:"1f45b",pushpin:"1f4cc",put_litter_in_its_place:"1f6ae",qatar:"1f1f6-1f1e6",question:"2753",rabbit:"1f430",rabbit2:"1f407",raccoon:"1f99d",racehorse:"1f40e",racing_car:"1f3ce",radio:"1f4fb",radio_button:"1f518",radioactive:"2622",rage:"1f621",railway_car:"1f683",railway_track:"1f6e4",rainbow:"1f308",rainbow_flag:"1f3f3-1f308",raised_back_of_hand:"1f91a",raised_eyebrow:"1f928",raised_hand:"270b",raised_hand_with_fingers_splayed:"1f590",raised_hands:"1f64c",raising_hand:"1f64b",raising_hand_man:"1f64b-2642",raising_hand_woman:"1f64b-2640",ram:"1f40f",ramen:"1f35c",rat:"1f400",razor:"1fa92",receipt:"1f9fe",record_button:"23fa",recycle:"267b",red_car:"1f697",red_circle:"1f534",red_envelope:"1f9e7",red_haired_man:"1f468-1f9b0",red_haired_woman:"1f469-1f9b0",red_square:"1f7e5",registered:"00ae",relaxed:"263a",relieved:"1f60c",reminder_ribbon:"1f397",repeat:"1f501",repeat_one:"1f502",rescue_worker_helmet:"26d1",restroom:"1f6bb",reunion:"1f1f7-1f1ea",revolving_hearts:"1f49e",rewind:"23ea",rhinoceros:"1f98f",ribbon:"1f380",rice:"1f35a",rice_ball:"1f359",rice_cracker:"1f358",rice_scene:"1f391",right_anger_bubble:"1f5ef",ring:"1f48d",ringed_planet:"1fa90",robot:"1f916",rocket:"1f680",rofl:"1f923",roll_eyes:"1f644",roll_of_paper:"1f9fb",roller_coaster:"1f3a2",romania:"1f1f7-1f1f4",rooster:"1f413",rose:"1f339",rosette:"1f3f5",rotating_light:"1f6a8",round_pushpin:"1f4cd",rowboat:"1f6a3",rowing_man:"1f6a3-2642",rowing_woman:"1f6a3-2640",ru:"1f1f7-1f1fa",rugby_football:"1f3c9",runner:"1f3c3",running:"1f3c3",running_man:"1f3c3-2642",running_shirt_with_sash:"1f3bd",running_woman:"1f3c3-2640",rwanda:"1f1f7-1f1fc",sa:"1f202",safety_pin:"1f9f7",safety_vest:"1f9ba",sagittarius:"2650",sailboat:"26f5",sake:"1f376",salt:"1f9c2",samoa:"1f1fc-1f1f8",san_marino:"1f1f8-1f1f2",sandal:"1f461",sandwich:"1f96a",santa:"1f385",sao_tome_principe:"1f1f8-1f1f9",sari:"1f97b",sassy_man:"1f481-2642",sassy_woman:"1f481-2640",satellite:"1f4e1",satisfied:"1f606",saudi_arabia:"1f1f8-1f1e6",sauna_man:"1f9d6-2642",sauna_person:"1f9d6",sauna_woman:"1f9d6-2640",sauropod:"1f995",saxophone:"1f3b7",scarf:"1f9e3",school:"1f3eb",school_satchel:"1f392",scientist:"1f9d1-1f52c",scissors:"2702",scorpion:"1f982",scorpius:"264f",scotland:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",scream:"1f631",scream_cat:"1f640",scroll:"1f4dc",seat:"1f4ba",secret:"3299",see_no_evil:"1f648",seedling:"1f331",selfie:"1f933",senegal:"1f1f8-1f1f3",serbia:"1f1f7-1f1f8",service_dog:"1f415-1f9ba",seven:"0037-20e3",seychelles:"1f1f8-1f1e8",shallow_pan_of_food:"1f958",shamrock:"2618",shark:"1f988",shaved_ice:"1f367",sheep:"1f411",shell:"1f41a",shield:"1f6e1",shinto_shrine:"26e9",ship:"1f6a2",shirt:"1f455",poo:"1f4a9",shoe:"1f45e",shopping:"1f6cd",shopping_cart:"1f6d2",shorts:"1fa73",shower:"1f6bf",shrimp:"1f990",shrug:"1f937",shushing_face:"1f92b",sierra_leone:"1f1f8-1f1f1",signal_strength:"1f4f6",singapore:"1f1f8-1f1ec",singer:"1f9d1-1f3a4",sint_maarten:"1f1f8-1f1fd",six:"0036-20e3",six_pointed_star:"1f52f",skateboard:"1f6f9",ski:"1f3bf",skier:"26f7",skull:"1f480",skull_and_crossbones:"2620",skunk:"1f9a8",sled:"1f6f7",sleeping:"1f634",sleeping_bed:"1f6cc",sleepy:"1f62a",slightly_frowning_face:"1f641",slightly_smiling_face:"1f642",slot_machine:"1f3b0",sloth:"1f9a5",slovakia:"1f1f8-1f1f0",slovenia:"1f1f8-1f1ee",small_airplane:"1f6e9",small_blue_diamond:"1f539",small_orange_diamond:"1f538",small_red_triangle:"1f53a",small_red_triangle_down:"1f53b",smile:"1f604",smile_cat:"1f638",smiley:"1f603",smiley_cat:"1f63a",smiling_face_with_three_hearts:"1f970",smiling_imp:"1f608",smirk:"1f60f",smirk_cat:"1f63c",smoking:"1f6ac",snail:"1f40c",snake:"1f40d",sneezing_face:"1f927",snowboarder:"1f3c2",snowflake:"2744",snowman:"26c4",snowman_with_snow:"2603",soap:"1f9fc",sob:"1f62d",soccer:"26bd",socks:"1f9e6",softball:"1f94e",solomon_islands:"1f1f8-1f1e7",somalia:"1f1f8-1f1f4",soon:"1f51c",sos:"1f198",sound:"1f509",south_africa:"1f1ff-1f1e6",south_georgia_south_sandwich_islands:"1f1ec-1f1f8",south_sudan:"1f1f8-1f1f8",space_invader:"1f47e",spades:"2660",spaghetti:"1f35d",sparkle:"2747",sparkler:"1f387",sparkles:"2728",sparkling_heart:"1f496",speak_no_evil:"1f64a",speaker:"1f508",speaking_head:"1f5e3",speech_balloon:"1f4ac",speedboat:"1f6a4",spider:"1f577",spider_web:"1f578",spiral_calendar:"1f5d3",spiral_notepad:"1f5d2",sponge:"1f9fd",spoon:"1f944",squid:"1f991",sri_lanka:"1f1f1-1f1f0",st_barthelemy:"1f1e7-1f1f1",st_helena:"1f1f8-1f1ed",st_kitts_nevis:"1f1f0-1f1f3",st_lucia:"1f1f1-1f1e8",st_martin:"1f1f2-1f1eb",st_pierre_miquelon:"1f1f5-1f1f2",st_vincent_grenadines:"1f1fb-1f1e8",stadium:"1f3df",standing_man:"1f9cd-2642",standing_person:"1f9cd",standing_woman:"1f9cd-2640",star:"2b50",star2:"1f31f",star_and_crescent:"262a",star_of_david:"2721",star_struck:"1f929",stars:"1f320",station:"1f689",statue_of_liberty:"1f5fd",steam_locomotive:"1f682",stethoscope:"1fa7a",stew:"1f372",stop_button:"23f9",stop_sign:"1f6d1",stopwatch:"23f1",straight_ruler:"1f4cf",strawberry:"1f353",stuck_out_tongue:"1f61b",stuck_out_tongue_closed_eyes:"1f61d",stuck_out_tongue_winking_eye:"1f61c",student:"1f9d1-1f393",studio_microphone:"1f399",stuffed_flatbread:"1f959",sudan:"1f1f8-1f1e9",sun_behind_large_cloud:"1f325",sun_behind_rain_cloud:"1f326",sun_behind_small_cloud:"1f324",sun_with_face:"1f31e",sunflower:"1f33b",sunglasses:"1f60e",sunny:"2600",sunrise:"1f305",sunrise_over_mountains:"1f304",superhero:"1f9b8",superhero_man:"1f9b8-2642",superhero_woman:"1f9b8-2640",supervillain:"1f9b9",supervillain_man:"1f9b9-2642",supervillain_woman:"1f9b9-2640",surfer:"1f3c4",surfing_man:"1f3c4-2642",surfing_woman:"1f3c4-2640",suriname:"1f1f8-1f1f7",sushi:"1f363",suspension_railway:"1f69f",svalbard_jan_mayen:"1f1f8-1f1ef",swan:"1f9a2",swaziland:"1f1f8-1f1ff",sweat:"1f613",sweat_drops:"1f4a6",sweat_smile:"1f605",sweden:"1f1f8-1f1ea",sweet_potato:"1f360",swim_brief:"1fa72",swimmer:"1f3ca",swimming_man:"1f3ca-2642",swimming_woman:"1f3ca-2640",switzerland:"1f1e8-1f1ed",symbols:"1f523",synagogue:"1f54d",syria:"1f1f8-1f1fe",syringe:"1f489","t-rex":"1f996",taco:"1f32e",tada:"1f389",taiwan:"1f1f9-1f1fc",tajikistan:"1f1f9-1f1ef",takeout_box:"1f961",tanabata_tree:"1f38b",tangerine:"1f34a",tanzania:"1f1f9-1f1ff",taurus:"2649",taxi:"1f695",tea:"1f375",teacher:"1f9d1-1f3eb",technologist:"1f9d1-1f4bb",teddy_bear:"1f9f8",telephone:"260e",telephone_receiver:"1f4de",telescope:"1f52d",tennis:"1f3be",tent:"26fa",test_tube:"1f9ea",thailand:"1f1f9-1f1ed",thermometer:"1f321",thinking:"1f914",thought_balloon:"1f4ad",thread:"1f9f5",three:"0033-20e3",thumbsdown:"1f44e",thumbsup:"1f44d",ticket:"1f3ab",tickets:"1f39f",tiger:"1f42f",tiger2:"1f405",timer_clock:"23f2",timor_leste:"1f1f9-1f1f1",tipping_hand_man:"1f481-2642",tipping_hand_person:"1f481",tipping_hand_woman:"1f481-2640",tired_face:"1f62b",tm:"2122",togo:"1f1f9-1f1ec",toilet:"1f6bd",tokelau:"1f1f9-1f1f0",tokyo_tower:"1f5fc",tomato:"1f345",tonga:"1f1f9-1f1f4",tongue:"1f445",toolbox:"1f9f0",tooth:"1f9b7",top:"1f51d",tophat:"1f3a9",tornado:"1f32a",tr:"1f1f9-1f1f7",trackball:"1f5b2",tractor:"1f69c",traffic_light:"1f6a5",train:"1f68b",train2:"1f686",tram:"1f68a",triangular_flag_on_post:"1f6a9",triangular_ruler:"1f4d0",trident:"1f531",trinidad_tobago:"1f1f9-1f1f9",tristan_da_cunha:"1f1f9-1f1e6",triumph:"1f624",trolleybus:"1f68e",trophy:"1f3c6",tropical_drink:"1f379",tropical_fish:"1f420",truck:"1f69a",trumpet:"1f3ba",tshirt:"1f455",tulip:"1f337",tumbler_glass:"1f943",tunisia:"1f1f9-1f1f3",turkey:"1f983",turkmenistan:"1f1f9-1f1f2",turks_caicos_islands:"1f1f9-1f1e8",turtle:"1f422",tuvalu:"1f1f9-1f1fb",tv:"1f4fa",twisted_rightwards_arrows:"1f500",two:"0032-20e3",two_hearts:"1f495",two_men_holding_hands:"1f46c",two_women_holding_hands:"1f46d",u5272:"1f239",u5408:"1f234",u55b6:"1f23a",u6307:"1f22f",u6708:"1f237",u6709:"1f236",u6e80:"1f235",u7121:"1f21a",u7533:"1f238",u7981:"1f232",u7a7a:"1f233",uganda:"1f1fa-1f1ec",uk:"1f1ec-1f1e7",ukraine:"1f1fa-1f1e6",umbrella:"2614",unamused:"1f612",underage:"1f51e",unicorn:"1f984",united_arab_emirates:"1f1e6-1f1ea",united_nations:"1f1fa-1f1f3",unlock:"1f513",up:"1f199",upside_down_face:"1f643",uruguay:"1f1fa-1f1fe",us:"1f1fa-1f1f8",us_outlying_islands:"1f1fa-1f1f2",us_virgin_islands:"1f1fb-1f1ee",uzbekistan:"1f1fa-1f1ff",v:"270c",vampire:"1f9db",vampire_man:"1f9db-2642",vampire_woman:"1f9db-2640",vanuatu:"1f1fb-1f1fa",vatican_city:"1f1fb-1f1e6",venezuela:"1f1fb-1f1ea",vertical_traffic_light:"1f6a6",vhs:"1f4fc",vibration_mode:"1f4f3",video_camera:"1f4f9",video_game:"1f3ae",vietnam:"1f1fb-1f1f3",violin:"1f3bb",virgo:"264d",volcano:"1f30b",volleyball:"1f3d0",vomiting_face:"1f92e",vs:"1f19a",vulcan_salute:"1f596",waffle:"1f9c7",wales:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",walking:"1f6b6",walking_man:"1f6b6-2642",walking_woman:"1f6b6-2640",wallis_futuna:"1f1fc-1f1eb",waning_crescent_moon:"1f318",waning_gibbous_moon:"1f316",warning:"26a0",wastebasket:"1f5d1",watch:"231a",water_buffalo:"1f403",water_polo:"1f93d",watermelon:"1f349",wave:"1f44b",wavy_dash:"3030",waxing_crescent_moon:"1f312",waxing_gibbous_moon:"1f314",wc:"1f6be",weary:"1f629",wedding:"1f492",weight_lifting:"1f3cb",weight_lifting_man:"1f3cb-2642",weight_lifting_woman:"1f3cb-2640",western_sahara:"1f1ea-1f1ed",whale:"1f433",whale2:"1f40b",wheel_of_dharma:"2638",wheelchair:"267f",white_check_mark:"2705",white_circle:"26aa",white_flag:"1f3f3",white_flower:"1f4ae",white_haired_man:"1f468-1f9b3",white_haired_woman:"1f469-1f9b3",white_heart:"1f90d",white_large_square:"2b1c",white_medium_small_square:"25fd",white_medium_square:"25fb",white_small_square:"25ab",white_square_button:"1f533",wilted_flower:"1f940",wind_chime:"1f390",wind_face:"1f32c",wine_glass:"1f377",wink:"1f609",wolf:"1f43a",woman:"1f469",woman_artist:"1f469-1f3a8",woman_astronaut:"1f469-1f680",woman_cartwheeling:"1f938-2640",woman_cook:"1f469-1f373",woman_dancing:"1f483",woman_facepalming:"1f926-2640",woman_factory_worker:"1f469-1f3ed",woman_farmer:"1f469-1f33e",woman_firefighter:"1f469-1f692",woman_health_worker:"1f469-2695",woman_in_manual_wheelchair:"1f469-1f9bd",woman_in_motorized_wheelchair:"1f469-1f9bc",woman_judge:"1f469-2696",woman_juggling:"1f939-2640",woman_mechanic:"1f469-1f527",woman_office_worker:"1f469-1f4bc",woman_pilot:"1f469-2708",woman_playing_handball:"1f93e-2640",woman_playing_water_polo:"1f93d-2640",woman_scientist:"1f469-1f52c",woman_shrugging:"1f937-2640",woman_singer:"1f469-1f3a4",woman_student:"1f469-1f393",woman_teacher:"1f469-1f3eb",woman_technologist:"1f469-1f4bb",woman_with_headscarf:"1f9d5",woman_with_probing_cane:"1f469-1f9af",woman_with_turban:"1f473-2640",womans_clothes:"1f45a",womans_hat:"1f452",women_wrestling:"1f93c-2640",womens:"1f6ba",woozy_face:"1f974",world_map:"1f5fa",worried:"1f61f",wrench:"1f527",wrestling:"1f93c",writing_hand:"270d",x:"274c",yarn:"1f9f6",yawning_face:"1f971",yellow_circle:"1f7e1",yellow_heart:"1f49b",yellow_square:"1f7e8",yemen:"1f1fe-1f1ea",yen:"1f4b4",yin_yang:"262f",yo_yo:"1fa80",yum:"1f60b",zambia:"1f1ff-1f1f2",zany_face:"1f92a",zap:"26a1",zebra:"1f993",zero:"0030-20e3",zimbabwe:"1f1ff-1f1fc",zipper_mouth_face:"1f910",zombie:"1f9df",zombie_man:"1f9df-2642",zombie_woman:"1f9df-2640",zzz:"1f4a4"};function jP(e,t){var n=$h(e);if(Xi){var r=Xi(e);t&&(r=uo(r).call(r,function(t){return To(e,t).enumerable})),n.push.apply(n,r)}return n}function HP(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?gf(n=jP(Object(i),!0)).call(n,function(t){Fu(e,t,i[t])}):$o?Xo(e,$o(i)):gf(r=jP(Object(i))).call(r,function(t){ca(e,t,To(i,t))})}return e}function UP(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(UP=function(){return!!e})()}function QP(){for(var e=[],t=0,n="",r=0,i=arguments.length;r!==i;++r){var o=+(r<0||arguments.length<=r?void 0:arguments[r]);if(!(o<1114111&&o>>>0===o))throw new RangeError("Invalid code point: ".concat(o));o<=65535?t=e.push(o):(o-=65536,t=e.push(55296+(o>>10),o%1024+56320)),t>=16383&&(n+=String.fromCharCode.apply(null,e),e.length=0)}return n+String.fromCharCode.apply(null,e)}var zP=function(){function e(){var t,n,r,i,o=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{config:void 0}).config;if(ua(this,e),n=this,i=[{config:o}],r=wu(r=e),(t=Ac(n,UP()?pr(r,i||[],wu(n).constructor):r.apply(n,i))).options={useUnicode:!0,upperCase:!1,customHandled:!1,resourceURL:"https://github.githubassets.com/images/icons/emoji/unicode/${code}.png?v8",emojis:HP({},$P)},"object"!==ql(o))return Ac(t);var a=o.useUnicode,s=o.customResourceURL,l=o.customRenderer,c=o.upperCase;return t.options.useUnicode="boolean"==typeof a?a:t.options.useUnicode,t.options.upperCase="boolean"==typeof c?c:t.options.upperCase,!1===a&&"string"==typeof s&&(t.options.resourceURL=s),"function"==typeof l&&(t.options.customHandled=!0,t.options.customRenderer=l),t}return Pu(e,vk),mc(e,[{key:"makeHtml",value:function(e,t){var n=this;return this.test(e)?e.replace(this.RULE.reg,function(e,t){var r;if(n.options.customHandled&&"function"==typeof n.options.customRenderer)return n.options.customRenderer(t);var i=n.options.emojis[t];if("string"!=typeof i)return e;if(n.options.useUnicode){var o,a=_h(o=i.split("-")).call(o,function(e){return"0x".concat(e)});return QP.apply(void 0,DI(a))}n.options.upperCase&&(i=i.toUpperCase());var s=n.options.resourceURL.replace(/\$\{code\}/g,i);return Xu(r='<img class="emoji" src="'.concat(s,'" alt="')).call(r,eO(t),'" />')}):e}},{key:"rule",value:function(){var e={begin:":",content:"([a-zA-Z0-9+_]+?)",end:":"};return e.reg=ZC(e,"g"),e}}])}();function WP(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(WP=function(){return!!e})()}Fu(zP,"HOOK_NAME","emoji");var GP=function(){function e(){return ua(this,e),t=this,r=arguments,n=wu(n=e),Ac(t,WP()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,vk),mc(e,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,'$1<span style="text-decoration: underline;">$2</span>$3'):e}},{key:"rule",value:function(){var e={begin:"(^| )\\/",end:"\\/( |$)",content:"([^\\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}])}();function VP(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(VP=function(){return!!e})()}Fu(GP,"HOOK_NAME","underline");var KP=function(){function e(){return ua(this,e),t=this,r=arguments,n=wu(n=e),Ac(t,VP()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,vk),mc(e,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,"$1<mark>$2</mark>$3"):e}},{key:"rule",value:function(){var e={begin:"(^| )==",end:"==( |$|\\n)",content:"([^\\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}])}();Fu(KP,"HOOK_NAME","highLight");var YP,qP,XP,JP,ZP,eF,tF,nF,rF,iF={};function oF(){return XP?qP:(XP=1,function(){if(YP)return iF;YP=1;var e,t=sn(),n=M(),r=Ot().f,i=Zn(),o=vr(),a=qd(),s=Te(),l=Xd(),c=vt(),u=n("".slice),d=Math.min,h=l("endsWith");t({target:"String",proto:!0,forced:!(!c&&!h&&(e=r(String.prototype,"endsWith"),e&&!e.writable)||h)},{endsWith:function(e){var t=o(s(this));a(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,l=void 0===n?r:d(i(n),r),c=o(e);return u(t,l-c.length,l)===c}})}(),qP=eo()("String","endsWith"))}function aF(){if(ZP)return JP;ZP=1;var e=De(),t=oF(),n=String.prototype;return JP=function(r){var i=r.endsWith;return"string"==typeof r||r===n||e(n,r)&&i===n.endsWith?t:i}}function sF(){return tF?eF:(tF=1,eF=aF())}var lF,cF,uF,dF,hF,fF,pF,gF,mF,vF,AF=i(rF?nF:(rF=1,nF=sF()));function bF(){if(dF)return uF;dF=1;var e=Eg(),t=km();return uF=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function yF(){if(fF)return hF;fF=1;var e=xg(),t=(cF||(cF=1,lF=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}),lF),n=Mm(),r=bF(),i=e?e.prototype:void 0,o=i?i.toString:void 0;return hF=function e(i){if("string"==typeof i)return i;if(n(i))return t(i,e)+"";if(r(i))return o?o.call(i):"";var a=i+"";return"0"==a&&1/i==-1/0?"-0":a},hF}var wF,_F=function(){if(vF)return mF;vF=1;var e=function(){if(gF)return pF;gF=1;var e=yF();return pF=function(t){return null==t?"":e(t)}}(),t=/[\\^$.*+?()[\]{}|]/g,n=RegExp(t.source);return mF=function(r){return(r=e(r))&&n.test(r)?r.replace(t,"\\$&"):r}}(),xF=i(_F),EF=["javascript","typescript","html","css","shell","python","golang","java","c","c++","c#","php","ruby","swift","kotlin","scala","rust","dart","elixir","haskell","lua","perl","r","sql","xml","svg","adoc","asciidoc","asm6502","aspnet","atom","awk","bash","basic","batch","c","clike","cmake","context","cpp","cs","csharp","css","csv","dart","diff","django","dns-zone","dns-zone-file","docker","dockerfile","dotnet","extend","ftl","git","glsl","go","go-mod","go-module","graphql","haml","html","http","ini","insertBefore","java","javadoc","javadoclike","javascript","javastacktrace","jinja2","js","jsdoc","json","json5","jsonp","jsstacktrace","jsx","latex","less","linker-script","lua","makefile","markdown","markup","markup-templating","mathml","matlab","md","mermaid","mongodb","nasm","nginx","nsis","objc","objectivec","objectpascal","pascal","perl","php","phpdoc","plain","plaintext","plant-uml","plsql","powershell","properties","protobuf","py","python","r","rb","regex","rss","ruby","rust","sas","sass","scala","scheme","scss","sh-session","shell","shell-session","shellsession","smali","splunk-spl","sql","ssml","svg","swift","systemd","tex","text","textile","ts","tsx","txt","typescript","uri","url","vb","vba","vbnet","vim","visual-basic","wasm","webmanifest","wiki","xml","yaml","yml"],SF=uo(EF).call(EF,function(e,t){return yx(EF).call(EF,e)===t});function CF(e,t){var n=$h(e);if(Xi){var r=Xi(e);t&&(r=uo(r).call(r,function(t){return To(e,t).enumerable})),n.push.apply(n,r)}return n}function TF(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?gf(n=CF(Object(i),!0)).call(n,function(t){Fu(e,t,i[t])}):$o?Xo(e,$o(i)):gf(r=CF(Object(i))).call(r,function(t){ca(e,t,To(i,t))})}return e}function kF(e,t){var n=void 0!==HC&&UC(e)||e["@@iterator"];if(!n){if(QC(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return OF(e,t);var r=_x(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u_(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?OF(e,t):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function OF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var MF,IF,DF="/·、：“”【】（）《》`$¥￥".concat("#"),NF=[{icon:"h1",label:"heading1",keyword:"head1",value:"# "},{icon:"h2",label:"heading2",keyword:"head2",value:"## "},{icon:"h3",label:"heading3",keyword:"head3",value:"### "},{icon:"table",label:"table",keyword:"table",value:"| Header | Header | Header |\n| --- | --- | --- |\n| Content | Content | Content |\n"},{icon:"code",label:"code",keyword:"code",value:"```\n\n```\n"},{icon:"link",label:"link",keyword:"link",value:"[title](https://url)",selection:{from:19,to:14}},{icon:"checklist",label:"checklist",keyword:"checklist",value:"- [ ] item\n- [x] item"},{icon:"tips",label:"panel",keyword:"panel tips info warning danger success",value:"::: primary title\ncontent\n:::\n"},{icon:"insertFlow",label:"detail",keyword:"detail",value:"+++ 点击展开更多\n内容\n++- 默认展开\n内容\n++ 默认收起\n内容\n+++\n"}],RF=[{icon:"FullWidth",label:"`",keyword:"···",value:"`"},{icon:"FullWidth",label:"$",keyword:"￥",value:"$"},{icon:"FullWidth",label:"/",keyword:"、",value:"/"},{icon:"FullWidth",label:"\\",keyword:"、",value:"\\"},{icon:"FullWidth",label:'"',keyword:"“",value:'"'},{icon:"FullWidth",label:'"',keyword:"”",value:'"'},{icon:"FullWidth",label:"[",keyword:"【",value:"["},{icon:"FullWidth",label:"]",keyword:"】",value:"]"},{icon:"FullWidth",label:"(",keyword:"（",value:"("},{icon:"FullWidth",label:")",keyword:"）",value:")"},{icon:"FullWidth",label:"<",keyword:"《",value:"<"},{icon:"FullWidth",label:">",keyword:"》",value:">"}],LF=[{icon:"FullWidth",label:"[]",keyword:"【】",value:"[]",goLeft:1},{icon:"FullWidth",label:"【】",keyword:"【",value:"【】",goLeft:1},{icon:"link",label:"link",keyword:"【】",value:"[title](https://url)",selection:{from:19,to:14}},{icon:"FullWidth",label:"()",keyword:"（",value:"()",goLeft:1},{icon:"FullWidth",label:"（）",keyword:"（",value:"（）",goLeft:1},{icon:"FullWidth",label:"<>",keyword:"《》",value:"<>",goLeft:1},{icon:"FullWidth",label:"《》",keyword:"《》",value:"《》",goLeft:1},{icon:"FullWidth",label:'""',keyword:"“”",value:'""',goLeft:1},{icon:"FullWidth",label:"“”",keyword:"“”",value:"”“",goLeft:1},{icon:"FullWidth",label:"inlineCode",keyword:"`",value:"``",goLeft:1},{icon:"FullWidth",label:"codeBlock",keyword:"`",value:"```\n\n```\n",goTop:2},{icon:"FullWidth",label:"inlineMath",keyword:"$",value:"$$",goLeft:1},{icon:"FullWidth",label:"mathBlock",keyword:"$",value:"$$\n\n$$\n",goTop:2},{icon:"FullWidth",label:"inlineMath",keyword:"¥",value:"$$",goLeft:1},{icon:"FullWidth",label:"mathBlock",keyword:"¥",value:"$$\n\n$$\n",goTop:2},{icon:"FullWidth",label:"inlineMath",keyword:"￥",value:"$$",goLeft:1},{icon:"FullWidth",label:"mathBlock",keyword:"￥",value:"$$\n\n$$\n",goTop:2}],BF=(MF=_h(SF).call(SF,function(e){return{icon:"FullWidth",label:e,keyword:"```",value:"```".concat(e,"\n\n```\n"),goTop:2,exactMatch:!0}}),IF=[],gf(SF).call(SF,function(e){var t,n="",r=kF(e);try{for(r.s();!(t=r.n()).done;)n+=t.value,IF.push({icon:"FullWidth",label:e,keyword:"```".concat(n),value:"```".concat(e,"\n\n```\n"),goTop:2,exactMatch:!0})}catch(e){r.e(e)}finally{r.f()}}),Xu(MF).call(MF,IF)),PF=Xu(wF=Xu(RF).call(RF,LF)).call(wF,BF),FF=function(){return"CodeMirror.Pass"};function $F(e,t){var n=void 0!==HC&&UC(e)||e["@@iterator"];if(!n){if(QC(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return jF(e,t);var r=_x(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u_(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jF(e,t):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function jF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function HF(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(HF=function(){return!!e})()}var UF=function(){function e(t){var n,r,i,o,a=t.config,s=t.cherry;return ua(this,e),r=this,o=[{needCache:!0}],i=wu(i=e),(n=Ac(r,HF()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).config=a,n.$cherry=s,n.suggesterPanel=new QF(s),n.inited||n.initConfig(n.config),n.RULE=n.rule(),n}return Pu(e,vk),mc(e,[{key:"afterInit",value:function(e){mL()&&"function"==typeof e&&e()}},{key:"initConfig",value:function(e){var t=this,n=(this.$cherry.options.editor.suggester||{}).suggester;this.suggester={};var r,i=[],o=this,a=$F(DF);try{var s=function(){var e=r.value;i.push({keyword:e,suggestList:function(t,n){var r=t.toLowerCase(),i=function(e,t,n){var r,i=NF;n&&QC(n.systemSuggestList)&&n.systemSuggestList.length>0?i=n.systemSuggestList:n&&QC(n.extendSystemSuggestList)&&n.extendSystemSuggestList.length>0&&(i=Xu(NF).call(NF,n.extendSystemSuggestList));var o=_h(i).call(i,function(e){return TF(TF({},e),{},{label:t[e.label]||e.label})}),a=_h(PF).call(PF,function(e){return TF(TF({},e),{},{label:t[e.label]||e.label})});return("/"===e[0]||"、"===e[0]||uh("#").call("#",e[0]))&&gf(o).call(o,function(t){t.keyword="".concat(e[0],t.keyword)}),uo(r=Xu(a).call(a,o)).call(r,function(t){var n;return m_(n=t.keyword).call(n,e[0])})}(e,o.$cherry.locale,o.$cherry.options.editor.suggester);if(/^\s$/.test(r))n(!1);else{var a=r.replace(/\s+/g,"").replace(new RegExp("^".concat(e),"g"),"").replace(/^[#]+/,"#").replace(/^[/]+/,"/").split("").join(".*?"),s=new RegExp("^.*?".concat(a,".*?$"),"i"),l=uo(i).call(i,function(e){return e.exactMatch?!r||e.keyword===r:!r||s.test(e.keyword)});n(0!==l.length&&l)}},echo:function(){return""}})};for(a.s();!(r=a.n()).done;)s()}catch(e){a.e(e)}finally{a.f()}n=n?Xu(i).call(i,n):i,gf(n).call(n,function(e){e.suggestList?(e.keyword||(e.keyword="@"),t.suggester[e.keyword]=e):console.warn("[cherry-suggester]: the suggestList of config is missing.")}),this.suggesterPanel.hasEditor()&&(this.suggesterPanel.editor=null),this.inited=!0}},{key:"makeHtml",value:function(e){var t,n;if(!this.RULE.reg)return e;if(!this.suggesterPanel.hasEditor()&&mL()){var r=this.$engine.$cherry.editor;this.suggesterPanel.setEditor(r),this.suggesterPanel.setSuggester(this.suggester),this.suggesterPanel.bindEvent()}return eT()?e.replace(this.RULE.reg,Ju(n=this.toHtml).call(n,this)):BI(e,this.RULE.reg,Ju(t=this.toHtml).call(t,this),!0,1)}},{key:"toHtml",value:function(e,t,n,r){var i,o,a,s,l;return r?(null===(o=this.suggester[n])||void 0===o||null===(a=o.echo)||void 0===a?void 0:a.call(this,r))||Xu(s=Xu(l="".concat(t,'<span class="cherry-suggestion">')).call(l,n)).call(s,r,"</span>"):!1===(null===(i=this.suggester[n])||void 0===i?void 0:i.echo)?"".concat(t):this.suggester[n]?r?t+r:"".concat(t):t+r}},{key:"rule",value:function(){var e,t,n,r,i,o,a,s=this;if(null===(e=this.config)||void 0===e||!e.suggester||$h(null===(t=this.config)||void 0===t?void 0:t.suggester).length<=0)return{};i=QC(this.config.suggester)?_h(o=this.config.suggester).call(o,function(e){return e.keyword||""}):_h(a=$h(this.config.suggester)).call(a,function(e){return s.config.suggester[e].keyword||""});var l=_h(i).call(i,function(e){return xF(e)}).join("|");return{reg:new RegExp(Xu(n=Xu(r="".concat(eT()?"((?<!\\\\))[ ]":"(^|[^\\\\])[ ]","(")).call(r,l,")(([^")).call(n,l,"\\s])+)"),"g")}}},{key:"mounted",value:function(){if(!this.suggesterPanel.hasEditor()&&mL()){var e=this.$engine.$cherry.editor;this.suggesterPanel.setEditor(e),this.suggesterPanel.setSuggester(this.suggester),this.suggesterPanel.bindEvent()}}}])}();Fu(UF,"HOOK_NAME","suggester");var QF=function(){return mc(function e(t){ua(this,e),Fu(this,"panelWrap",'<div class="cherry-suggester-panel"></div>'),this.searchCache=!1,this.searchKeyCache=[],this.optionList=[],this.cursorMove=!0,this.suggesterConfig={},this.$cherry=t,this.panelPosition="below"},[{key:"tryCreatePanel",value:function(){!this.$suggesterPanel&&mL()&&document&&(this.$cherry.wrapperDom.appendChild(this.createDom(this.panelWrap)),this.$suggesterPanel=this.$cherry.wrapperDom.querySelector(".cherry-suggester-panel"))}},{key:"hasEditor",value:function(){return!!this.editor&&!!this.editor.editor.display&&!!this.editor.editor.display.wrapper}},{key:"setEditor",value:function(e){this.editor=e}},{key:"setSuggester",value:function(e){this.suggesterConfig=e}},{key:"bindEvent",value:function(){var e=this;if(this.editor.options.showSuggestList){var t=!1;this.editor.editor.on("change",function(n,r){t=!0,e.onCodeMirrorChange(n,r)}),this.editor.editor.on("keydown",function(n,r){t=!0,e.enableRelate()&&e.onKeyDown(n,r)}),this.editor.editor.on("cursorActivity",function(){t||e.stopRelate(),t=!1});var n=this.editor.editor.getOption("extraKeys"),r=["Up","Down","Enter"];gf(r).call(r,function(t){if("function"==typeof n[t]){var r=n[t];n[t]=function(t){if(e.cursorMove){var n=r.call(t,t);if(n)return n}}}else if(n[t]){if("string"==typeof n[t]){var i=n[t];n[t]=function(t){e.cursorMove&&e.editor.editor.execCommand(i)}}}else n[t]=function(){if(e.cursorMove)return FF()}}),this.editor.editor.setOption("extraKeys",n),this.editor.editor.on("scroll",function(t,n){e.searchCache&&e.relocatePanel(e.editor.editor)}),this.onClickPanelItem()}}},{key:"onClickPanelItem",value:function(){var e=this;this.tryCreatePanel(),this.$suggesterPanel.addEventListener("click",function(t){var n=function(e,t){var n,r=-1;return gf(n=e.childNodes).call(n,function(e,n){return e===t?r=n:""}),r}(e.$suggesterPanel,t.target);n>-1&&(e.editor.editor.focus(),e.pasteSelectResult(n)),e.stopRelate()},!1)}},{key:"showSuggesterPanel",value:function(e){var t=e.left,n=e.top,r=e.items;this.tryCreatePanel(),!this.$suggesterPanel&&mL()&&(this.$cherry.wrapperDom.appendChild(this.createDom(this.panelWrap)),this.$suggesterPanel=this.$cherry.wrapperDom.querySelector(".cherry-suggester-panel")),this.updatePanel(r),this.$suggesterPanel.style.left="".concat(t,"px"),this.$suggesterPanel.style.top="".concat(n,"px"),this.$suggesterPanel.style.display="block",this.$suggesterPanel.style.position="absolute",this.$suggesterPanel.style.zIndex="100"}},{key:"hideSuggesterPanel",value:function(){this.tryCreatePanel(),this.$suggesterPanel&&(this.$suggesterPanel.style.display="none")}},{key:"updatePanel",value:function(e){var t=this;this.tryCreatePanel();var n=_h(e).call(e,function(e,n){if("object"===ql(e)&&null!==e){var r,i=e.label;return null!=e&&e.icon&&(i=Xu(r='<i class="ch-icon ch-icon-'.concat(e.icon,'"></i>')).call(r,i)),t.renderPanelItem(i,!1)}return t.renderPanelItem(e,!1)}).join(""),r=this.suggesterConfig[this.keyword];r&&"function"==typeof r.suggestListRender&&(n=r.suggestListRender.call(this,e)||n),this.$suggesterPanel.innerHTML="","string"==typeof n?this.$suggesterPanel.innerHTML=n:QC(n)&&n.length>0?gf(n).call(n,function(e){t.$suggesterPanel.appendChild(e)}):"object"===ql(n)&&1===n.nodeType&&this.$suggesterPanel.appendChild(n)}},{key:"renderPanelItem",value:function(e,t){return t?'<div class="cherry-suggester-panel__item cherry-suggester-panel__item--selected">'.concat(e,"</div>"):'<div class="cherry-suggester-panel__item">'.concat(e,"</div>")}},{key:"createDom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.template||(this.template=document.createElement("div")),this.template.innerHTML=c_(e).call(e);var t=document.createDocumentFragment();return _h(Array.prototype).call(this.template.childNodes,function(e,n){t.appendChild(e)}),t}},{key:"relocatePanel",value:function(e){var t=this.$cherry.wrapperDom.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(t||(t=this.$cherry.wrapperDom.querySelector(".CodeMirror-selected")),!t)return!1;var n,r=this.$cherry.wrapperDom.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.left-r.left,a=i.top-r.top,s=i.height;n="below"===this.panelPosition?a+s+5:a-(this.$suggesterPanel?this.$suggesterPanel.offsetHeight:380)-5,this.showSuggesterPanel({left:o,top:n,items:this.optionList})}},{key:"getCursorPos",value:function(e){var t=document.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(!t)return null;var n=e.getCursor(),r=e.lineInfo(n.line).handle.height,i=t.getBoundingClientRect(),o=i.top+r;return{left:i.left,top:o}}},{key:"startRelate",value:function(e,t,n){var r=this;this.cursorFrom=n,this.keyword=t,this.searchCache=!0,requestAnimationFrame(function(){r.relocatePanelWithBoundaryCheck()})}},{key:"relocatePanelWithBoundaryCheck",value:function(){this.tryCreatePanel(),this.updatePanel(this.optionList),this.$suggesterPanel.style.visibility="hidden",this.$suggesterPanel.style.display="block",this.$suggesterPanel.style.position="absolute";var e=this.$suggesterPanel.offsetHeight||380,t=this.$cherry.wrapperDom.querySelector(".CodeMirror-cursors .CodeMirror-cursor");if(t||(t=this.$cherry.wrapperDom.querySelector(".CodeMirror-selected")),!t)return this.$suggesterPanel.style.display="none",!1;var n,r=this.$cherry.wrapperDom.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.left-r.left,a=i.top-r.top,s=a+i.height,l=this.$cherry.wrapperDom.clientHeight-s,c=a;l>=e+10?(n=s+5,this.panelPosition="below"):c>=e+10?(n=a-e-5,this.panelPosition="above"):l>c?(n=s+5,this.panelPosition="below"):(n=Math.max(10,a-e-5),this.panelPosition="above"),this.$suggesterPanel.style.left="".concat(o,"px"),this.$suggesterPanel.style.top="".concat(n,"px"),this.$suggesterPanel.style.visibility="visible",this.$suggesterPanel.style.zIndex="100"}},{key:"stopRelate",value:function(){this.hideSuggesterPanel(),this.cursorFrom=null,this.cursorTo=null,this.keyword="",this.searchKeyCache=[],this.searchCache=!1,this.cursorMove=!0,this.optionList=[],this.panelPosition="below"}},{key:"pasteSelectResult",value:function(e,t){var n=this.cursorFrom;if(n){var r,i=QC(this.searchKeyCache)?this.searchKeyCache.join("").length:0;if(r=i>0?{line:n.line,ch:n.ch+i}:this.cursorTo?{line:this.cursorTo.line,ch:this.cursorTo.ch}:{line:n.line,ch:n.ch},this.optionList[e]){var o,a,s="";if("object"===ql(this.optionList[e])&&null!==this.optionList[e]&&"string"==typeof this.optionList[e].value)s=this.optionList[e].value;else if("object"===ql(this.optionList[e])&&null!==this.optionList[e]&&"function"==typeof this.optionList[e].value)s=this.optionList[e].value();else{var l;s=Xu(l=" ".concat(this.keyword)).call(l,this.optionList[e]," ")}if(AF(s).call(s," ")&&null!==(o=this.editor)&&void 0!==o&&null!==(a=o.editor)&&void 0!==a&&a.getLine&&r&&null!==r.ch&&" "===(this.editor.editor.getLine(r.line)||"")[r.ch]&&(r={line:r.line,ch:r.ch+1}),s&&this.editor.editor.replaceRange(s,n,r),this.optionList[e].goLeft){var c=this.editor.editor.getCursor();this.editor.editor.setCursor(c.line,c.ch-this.optionList[e].goLeft)}if(this.optionList[e].goTop){var u=this.editor.editor.getCursor();this.editor.editor.setCursor(u.line-this.optionList[e].goTop,u.ch)}if(this.optionList[e].selection){var d=this.editor.editor.getCursor().line,h=this.editor.editor.getCursor().ch;this.editor.editor.setSelection({line:d,ch:h-this.optionList[e].selection.from},{line:d,ch:h-this.optionList[e].selection.to})}}}}},{key:"findSelectedItemIndex",value:function(){return lk(Array.prototype).call(this.$suggesterPanel.childNodes,function(e){return e.classList.contains("cherry-suggester-panel__item--selected")})}},{key:"enableRelate",value:function(){return this.searchCache}},{key:"onCodeMirrorChange",value:function(e,t){var n=this,r=t.text,i=t.from,o=t.to,a=t.origin,s=1===r.length?r[0]:"";if(!this.enableRelate()&&this.suggesterConfig[s]&&this.startRelate(e,s,i),this.enableRelate()&&(s||"+delete"===a)){var l;if(this.cursorTo=o,s)this.searchKeyCache.push(s);else if("+delete"===a&&(this.searchKeyCache.pop(),0===this.searchKeyCache.length))return void this.stopRelate();"function"==typeof(null===(l=this.suggesterConfig[this.keyword])||void 0===l?void 0:l.suggestList)&&this.suggesterConfig[this.keyword].suggestList(this.searchKeyCache.join(""),function(e){!1!==e?(n.optionList=e&&e.length?e:[],n.updatePanel(n.optionList)):n.stopRelate()})}}},{key:"onKeyDown",value:function(e,t){var n,r=this;if(this.tryCreatePanel(),!this.$suggesterPanel)return!1;var i=t.keyCode;if(uh(n=[38,40]).call(n,i)){if(0===this.optionList.length)return void _d(function(){r.stopRelate()},0);this.cursorMove=!1;var o=this.$suggesterPanel.querySelector(".cherry-suggester-panel__item--selected"),a=o||null,s=null;if(o?(38!==i||a.previousElementSibling?40!==i||a.nextElementSibling?38===i?s=a.previousElementSibling:40===i&&(s=a.nextElementSibling):s=this.$suggesterPanel.firstElementChild:s=this.$suggesterPanel.lastElementChild,a&&a.classList&&a.classList.remove("cherry-suggester-panel__item--selected")):38===i?s=this.$suggesterPanel.lastElementChild:40===i&&(s=this.$suggesterPanel.firstElementChild),!s)return void _d(function(){r.stopRelate()},0);s.classList.add("cherry-suggester-panel__item--selected");var l=this.$suggesterPanel.offsetHeight,c=this.$suggesterPanel.scrollTop,u=c+l,d=s.offsetTop,h=s.offsetHeight;(d<c||d+h>u)&&(this.$suggesterPanel.scrollTop=d-l/2)}else if(13===i){var f=this.findSelectedItemIndex();f>=0&&(t.stopPropagation(),this.cursorMove=!1,this.pasteSelectResult(f,t),e.focus()),_d(function(){r.stopRelate()},0)}else 27!==i&&37!==i&&39!==i||(t.stopPropagation(),e.focus(),_d(function(){r.stopRelate()},0))}}])}();function zF(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(zF=function(){return!!e})()}var WF=function(){function e(){return ua(this,e),t=this,r=arguments,n=wu(n=e),Ac(t,zF()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,vk),mc(e,[{key:"makeHtml",value:function(e){return this.test(e)?e.replace(this.RULE.reg,"$1<ruby>$2<rt>$3</rt></ruby>$4"):e}},{key:"rule",value:function(){var e={begin:"(^| )\\{",end:"\\}( |$)",content:"([^\n]+?)\\|([^\n]+?)"};return e.reg=new RegExp(e.begin+e.content+e.end,"g"),e}}])}();function GF(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(GF=function(){return!!e})()}Fu(WF,"HOOK_NAME","ruby");var VF=function(){function e(t){var n,r,i,o;ua(this,e),r=this,o=[{needCache:!0}],i=wu(i=e),n=Ac(r,GF()?pr(i,o||[],wu(r).constructor):i.apply(r,o));var a=t.config,s=a.enableJustify,l=void 0!==s&&s,c=a.enableAlign,u=void 0!==c&&c,d=a.enablePanel,h=void 0===d||d;return n.enableAlign=l||u,n.enablePanel=h,n.initBrReg(t.globalConfig.classicBr),n}return Pu(e,aO),mc(e,[{key:"makeHtml",value:function(e,t){var n=this;return e.replace(this.RULE.reg,function(e,r,i,o){var a,s,l,c,u,d=n.$getTargetType(i);if(!n.enablePanel&&/primary|info|warning|danger|success/i.test(d))return e;if(!n.enableAlign&&/(left|right|center|justify)/i.test(d))return e;var h=n.getLineCount(e,r),f=n.$engine.hash(e),p=n.testHasCache(f);if(!1!==p)return Ak(e,p);var g=n.$getPanelInfo(i,o,t),m=g.title,v=g.body,A=g.appendStyle,b=g.className;return Ak(e,n.pushCache(Xu(a=Xu(s=Xu(l=Xu(c=Xu(u='<div class="'.concat(b,'" data-sign="')).call(u,f,'" data-lines="')).call(c,h,'" ')).call(l,A,">")).call(s,m)).call(a,v,"</div>"),f,h))})}},{key:"$getClassByType",value:function(e){return/(left|right|center|justify)/i.test(e)?"cherry-text-align cherry-text-align__".concat(e):"cherry-panel cherry-panel__".concat(e)}},{key:"$getPanelInfo",value:function(e,t,n){var r,i=this,o={type:this.$getTargetType(e),title:n(this.$getTitle(e)).html,body:t,appendStyle:"",className:""};o.className=this.$getClassByType(o.type),/(left|right|center|justify)/i.test(o.type)&&(o.appendStyle='style="text-align:'.concat(o.type,';"')),o.title=Xu(r='<div class="cherry-panel--title '.concat(o.title?"cherry-panel--title__not-empty":"",'">')).call(r,o.title,"</div>");var a=function(e){var t,r;if(""===c_(e).call(e))return"";var o=n(e).html,a="p";return new RegExp("<(".concat(qk,")[^>]*>"),"i").test(o)&&(a="div"),Xu(t=Xu(r="<".concat(a,">")).call(r,i.$cleanParagraph(o),"</")).call(t,a,">")},s="";return s=this.isContainsCache(o.body)?this.makeExcludingCached(o.body,a):a(o.body),o.body='<div class="cherry-panel--body">'.concat(s,"</div>"),o}},{key:"$getTitle",value:function(e){var t=c_(e).call(e);return/\s/.test(t)?t.replace(/[^\s]+\s/,""):""}},{key:"$getTargetType",value:function(e){var t=/\s/.test(c_(e).call(e))?c_(e).call(e).replace(/\s.*$/,""):e;switch(c_(t).call(t).toLowerCase()){case"primary":case"p":default:return"primary";case"info":case"i":return"info";case"warning":case"w":return"warning";case"danger":case"d":return"danger";case"success":case"s":return"success";case"right":case"r":return"right";case"center":case"c":return"center";case"left":case"l":return"left";case"justify":case"j":return"justify"}}},{key:"rule",value:function(){return gT()}}])}();function KF(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(KF=function(){return!!e})()}Fu(VF,"HOOK_NAME","panel");var YF=function(){function e(){return ua(this,e),t=this,r=[{needCache:!0}],n=wu(n=e),Ac(t,KF()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,aO),mc(e,[{key:"makeHtml",value:function(e,t){var n=this;return e.replace(this.RULE.reg,function(e,r,i,o,a){var s,l,c,u=n.getLineCount(e,r),d=n.$engine.hash(e),h=n.testHasCache(d);if(!1!==h)return Ak(e,h);var f=n.$getDetailInfo(i,o,a,t),p=f.type,g=f.html;return Ak(e,n.pushCache(Xu(s=Xu(l=Xu(c='<div class="cherry-detail cherry-detail__'.concat(p,'" data-sign="')).call(c,d,'" data-lines="')).call(l,u,'" >')).call(s,g,"</div>"),d,u))})}},{key:"$getDetailInfo",value:function(e,t,n,r){var i=this,o=/\n\s*(\+\+|\+\+-)\s*[^\n]+\n/.test(n)?"multiple":"single",a=n.split(/\n\s*(\+\+[-]{0,1}\s*[^\n]+)\n/),s="-"===e,l=t,c="";return"multiple"===o?gf(a).call(a,function(e){if(/^\s*\+\+/.test(e))return s=/^\s*\+\+-/.test(e),l=e.replace(/\+\+[-]{0,1}\s*([^\n]+)$/,"$1"),!0;c+=i.$getDetailHtml(s,l,e,r)}):c=this.$getDetailHtml(s,l,n,r),{type:o,html:c}}},{key:"$getDetailHtml",value:function(e,t,n,r){var i=this,o="<details ".concat(e?"open":"",">"),a=function(e){var t,n;if(""===c_(e).call(e))return"";var o=r(e).html,a="p";return new RegExp("<(".concat(qk,")[^>]*>"),"i").test(o)&&(a="div"),Xu(t=Xu(n="<".concat(a,">")).call(n,i.$cleanParagraph(o),"</")).call(t,a,">")};o+="<summary>".concat(r(t).html,"</summary>");var s="";return s=this.isContainsCache(n)?this.makeExcludingCached(n,a):a(n),o+='<div class="cherry-detail-body">'.concat(s,"</div>"),o+"</details>"}},{key:"rule",value:function(){return mT()}}])}();function qF(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(qF=function(){return!!e})()}Fu(YF,"HOOK_NAME","detail");var XF=function(){function e(t){return ua(this,e),n=this,i=[{needCache:!0}],r=wu(r=e),Ac(n,qF()?pr(r,i||[],wu(n).constructor):r.apply(n,i));var n,r,i}return Pu(e,aO),mc(e,[{key:"beforeMakeHtml",value:function(e){var t=this;return e.replace(this.RULE.reg,function(e,n){var r,i,o,a,s,l=null!==(r=null===(i=e.match(/\n/g))||void 0===i?void 0:i.length)&&void 0!==r?r:0,c="fontMatter".concat(l);try{s=JSON.parse(c_(n).call(n))}catch(e){var u=c_(n).call(n).split("\n");s={},gf(u).call(u,function(e){var t=Yy(e.split(":"),2),n=t[0],r=t[1];if("string"==typeof n&&"string"==typeof r){if(n.length>1024)return;s[c_(n).call(n)]=c_(r).call(r)}})}if($h(s).length<=0)return e;("font-size"in s||"fontSize"in s)&&(t.$engine.$cherry.previewer.getDom().style.fontSize=s["font-size"]||s.fontSize);var d=Xu(o=Xu(a='<p data-sign="'.concat(c,'" data-type="frontMatter" data-lines="')).call(a,l,'" data-content="')).call(o,Zk(Ew(s)),'"></p>'),h=t.pushCache(d,c,l);return"".concat(h,"\n")})}},{key:"makeHtml",value:function(e,t){return e}},{key:"rule",value:function(){var e={begin:"^\\s*-{3}[^\\n]*\\n",end:"\\n-{3}[^\\n]*\\n",content:"([\\s\\S]+?)"};return e.reg=ZC(e,"g",!0),e}}])}();function JF(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(JF=function(){return!!e})()}Fu(XF,"HOOK_NAME","frontMatter");var ZF=function(){function e(){return ua(this,e),t=this,r=arguments,n=wu(n=e),Ac(t,JF()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,vk),mc(e,[{key:"makeHtml",value:function(e,t){return e.replace(this.RULE.reg,function(e){return Gx("&nbsp;").call("&nbsp;",e.length)})}},{key:"rule",value:function(){var e={begin:"",end:"",content:"",reg:/\s{2,}/g};return e}}])}();function e$(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(e$=function(){return!!e})()}Fu(ZF,"HOOK_NAME","space");var t$=function(){function e(t){var n;t.config;var r,i,o,a=t.cherry;return ua(this,e),r=this,o=[{needCache:!1}],i=wu(i=e),(n=Ac(r,e$()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).$cherry=a,n}return Pu(e,aO),mc(e,[{key:"$dealEmphasis",value:function(e){if(!(this.$cherry.options.engine.syntax.fontEmphasis&&this.$cherry.options.engine.syntax.fontEmphasis.selfClosing||this.$cherry.options.engine.global.flowSessionContext))return e;var t=e;if(/(^|\n)[^\n]*\*{1,3}[^\n]*$/.test(t)&&t.match(/(^|\n)([^\n]+)$/)){t=t.replace(/(~D{1,2})([^\n]+?)\1/g,function(e,t,n){var r,i;return Xu(r=Xu(i="".concat(t)).call(i,n.replace(/\*/g,"Σ*CONTENT*TMP"))).call(r,t)});for(var n=t.match(/(^|\n)([^\n]+)$/)[2].split(/(\*{1,3})/g),r=[],i=0;i<n.length;i++)if((1!==i||"*"!==n[i]||!n[i+1]||!/^\s+/.test(n[i+1]))&&/\*{1,3}/.test(n[i])){var o=n[i];r.length<=0?r.push(o):r[r.length-1]===o?r.pop():r.push(o)}1===r.length&&(t=/\*\s*$/.test(t)?t.replace(/\*+\s*$/,""):t.replace(/(\*{1,3})(\s*)([^*\n]+?)$/,"$1$2$3$2$1")),2===r.length&&(t=t.replace(/(\*{1,3})(\s*)([^*\n]+?)\*{0,2}$/,"$1$2$3$2$1")),t=t.replace(/(~D{1,2})([^\n]+?)\1/g,function(e,t,n){var r,i;return Xu(r=Xu(i="".concat(t)).call(i,n.replace(/Σ\*CONTENT\*TMP/g,"*"))).call(r,t)})}return t}},{key:"dealMedia",value:function(e){if(!(this.$cherry.options.engine.syntax.image&&this.$cherry.options.engine.syntax.image.selfClosing||this.$cherry.options.engine.global.flowSessionContext))return e;var t=e,n=!(!this.$cherry.options.engine.syntax.image||!this.$cherry.options.engine.syntax.image.selfClosingRender)&&this.$cherry.options.engine.syntax.image.selfClosingRender;return t=t.replace(/([^[]*?)!(video|audio|)\[([^\n\]]*?)(\]\([^)]*|\]|)$/,function(e,t,r,i,o){var a,s,l,c="",u=/(video|audio)/.test(r)?r:"img";if("function"==typeof n){var d=o?o.replace(/^\(/,""):"";c=n(u,i,d)}return c?Xu(l="".concat(t)).call(l,c):Xu(a=Xu(s="".concat(t,"<")).call(s,u," src></")).call(a,u,">")}),t}},{key:"dealLink",value:function(e){var t;return this.$cherry.options.engine.syntax.link&&null!==(t=this.$cherry.options.engine.syntax.link)&&void 0!==t&&t.selfClosing||this.$cherry.options.engine.global.flowSessionContext?e.replace(/([^[]*?)\[([^\n\]]*?)(\]\([^)]*|\]|)$/,function(e,t,n,r){var i,o,a=r?r.replace(/^(\]\(|\])/,""):"";return Xu(i=Xu(o="".concat(t,'<a href="')).call(o,a,'">')).call(i,n,"</a>")}):e}},{key:"makeHtml",value:function(e,t){var n=/\n$/.test(e)?"\n":"",r=e.replace(/\n$/,""),i=/CHERRYFLOWSESSIONCURSOR([*_~^]*)$/.test(r)?"CHERRYFLOWSESSIONCURSOR":"";return r=r.replace(/CHERRYFLOWSESSIONCURSOR([*_~^]*)$/g,"$1"),r=this.$dealEmphasis(r),r=this.dealMedia(r),(r=this.dealLink(r))+i+n}}])}();Fu(t$,"HOOK_NAME","aiFlowAutoClose");var n$,r$,i$=[XF,rD,oD,QL,HL,t$,FP,fB,gB,zR,AL,gL,dB,RL,UR,yL,DL,YF,VF,rR,zP,EL,ZN,BL,tR,jI,FI,UI,qI,KI,WF,GI,GP,KP,UF,ZF],o$={};function a$(){return r$||(r$=1,n$||(n$=1,kO()("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},MO()))),o$}var s$,l$,c$,u$,d$,h$,f$,p$,g$,m$,v$,A$,b$,y$,w$,_$,x$,E$,S$,C$={};function T$(){if(l$)return s$;l$=1;var e=Fe(),t=TypeError;return s$=function(n){if("object"==typeof n&&"size"in n&&"has"in n&&"add"in n&&"delete"in n&&"keys"in n)return n;throw new t(e(n)+" is not a set")}}function k$(){if(u$)return c$;u$=1;var e=Ie(),t=WO(),n=e("Set"),r=n.prototype;return c$={Set:n,add:t("add",1),has:t("has",1),remove:t("delete",1),proto:r}}function O$(){if(h$)return d$;h$=1;var e=yM();return d$=function(t,n,r){return r?e(t.keys(),n,!0):t.forEach(n)},d$}function M$(){if(p$)return f$;p$=1;var e=k$(),t=O$(),n=e.Set,r=e.add;return f$=function(e){var i=new n;return t(e,function(e){r(i,e)}),i},f$}function I$(){return m$||(m$=1,g$=function(e){return e.size}),g$}function D$(){return A$?v$:(A$=1,v$=function(e){return{iterator:e,next:e.next,done:!1}})}function N$(){if(y$)return b$;y$=1;var e=$e(),t=rn(),n=F(),r=Xn(),i=D$(),o="Invalid size",a=RangeError,s=TypeError,l=Math.max,c=function(t,n){this.set=t,this.size=l(n,0),this.has=e(t.has),this.keys=e(t.keys)};return c.prototype={getIterator:function(){return i(t(n(this.keys,this.set)))},includes:function(e){return n(this.has,this.set,e)}},b$=function(e){t(e);var n=+e.size;if(n!=n)throw new s(o);var i=r(n);if(i<0)throw new a(o);return new c(e,i)}}function R$(){if(_$)return w$;_$=1;var e=T$(),t=k$(),n=M$(),r=I$(),i=N$(),o=O$(),a=yM(),s=t.has,l=t.remove;return w$=function(t){var c=e(this),u=i(t),d=n(c);return r(c)<=u.size?o(c,function(e){u.includes(e)&&l(d,e)}):a(u.getIterator(),function(e){s(c,e)&&l(d,e)}),d}}function L$(){return E$?x$:(E$=1,x$=function(){return!1})}var B$,P$,F$,$$={};function j$(){if(P$)return B$;P$=1;var e=T$(),t=k$(),n=I$(),r=N$(),i=O$(),o=yM(),a=t.Set,s=t.add,l=t.has;return B$=function(t){var c=e(this),u=r(t),d=new a;return n(c)>u.size?o(u.getIterator(),function(e){l(c,e)&&s(d,e)}):i(c,function(e){u.includes(e)&&s(d,e)}),d}}var H$,U$,Q$,z$={};function W$(){if(U$)return H$;U$=1;var e=T$(),t=k$().has,n=I$(),r=N$(),i=O$(),o=yM(),a=Ry();return H$=function(s){var l=e(this),c=r(s);if(n(l)<=c.size)return!1!==i(l,function(e){if(c.includes(e))return!1},!0);var u=c.getIterator();return!1!==o(u,function(e){if(t(l,e))return a(u,"normal",!1)})},H$}var G$,V$,K$,Y$={};function q$(){if(V$)return G$;V$=1;var e=T$(),t=I$(),n=O$(),r=N$();return G$=function(i){var o=e(this),a=r(i);return!(t(o)>a.size)&&!1!==n(o,function(e){if(!a.includes(e))return!1},!0)}}var X$,J$,Z$,ej={};function tj(){if(J$)return X$;J$=1;var e=T$(),t=k$().has,n=I$(),r=N$(),i=yM(),o=Ry();return X$=function(a){var s=e(this),l=r(a);if(n(s)<l.size)return!1;var c=l.getIterator();return!1!==i(c,function(e){if(!t(s,e))return o(c,"normal",!1)})},X$}var nj,rj,ij,oj={};function aj(){if(rj)return nj;rj=1;var e=T$(),t=k$(),n=M$(),r=N$(),i=yM(),o=t.add,a=t.has,s=t.remove;return nj=function(t){var l=e(this),c=r(t).getIterator(),u=n(l);return i(c,function(e){a(l,e)?s(u,e):o(u,e)}),u}}var sj,lj,cj,uj,dj,hj,fj,pj,gj,mj={};function vj(){if(lj)return sj;lj=1;var e=T$(),t=k$().add,n=M$(),r=N$(),i=yM();return sj=function(o){var a=e(this),s=r(o).getIterator(),l=n(a);return i(s,function(e){t(l,e)}),l}}function Aj(){return dj?uj:(dj=1,Ps(),a$(),function(){if(S$)return C$;S$=1;var e=sn(),t=R$();e({target:"Set",proto:!0,real:!0,forced:!L$()("difference")},{difference:t})}(),function(){if(F$)return $$;F$=1;var e=sn(),t=S(),n=j$();e({target:"Set",proto:!0,real:!0,forced:!L$()("intersection")||t(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:n})}(),function(){if(Q$)return z$;Q$=1;var e=sn(),t=W$();e({target:"Set",proto:!0,real:!0,forced:!L$()("isDisjointFrom")},{isDisjointFrom:t})}(),function(){if(K$)return Y$;K$=1;var e=sn(),t=q$();e({target:"Set",proto:!0,real:!0,forced:!L$()("isSubsetOf")},{isSubsetOf:t})}(),function(){if(Z$)return ej;Z$=1;var e=sn(),t=tj();e({target:"Set",proto:!0,real:!0,forced:!L$()("isSupersetOf")},{isSupersetOf:t})}(),function(){if(ij)return oj;ij=1;var e=sn(),t=aj();e({target:"Set",proto:!0,real:!0,forced:!L$()("symmetricDifference")},{symmetricDifference:t})}(),function(){if(cj)return mj;cj=1;var e=sn(),t=vj();e({target:"Set",proto:!0,real:!0,forced:!L$()("union")},{union:t})}(),Nl(),uj=Me().Set)}function bj(){if(fj)return hj;fj=1;var e=Aj();return $s(),hj=e}var yj=i(gj?pj:(gj=1,pj=bj())),wj=function(){return mc(function e(t){ua(this,e),Fu(this,"pendingRenderers",new yj),Fu(this,"originMd",""),Fu(this,"md",""),this.$cherry=t},[{key:"handleSyncRenderStart",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.originMd=e}},{key:"handleSyncRenderCompleted",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.md=e,0===this.pendingRenderers.size&&this.handleAllCompleted()}},{key:"add",value:function(e){this.pendingRenderers.add(e)}},{key:"done",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).replacer,n=void 0===t?function(e){return e}:t;this.pendingRenderers.has(e)&&(this.pendingRenderers.delete(e),this.md=n(this.md),0===this.pendingRenderers.size&&this.handleAllCompleted())}},{key:"clear",value:function(){this.pendingRenderers.clear(),this.originMd="",this.md=""}},{key:"handleAllCompleted",value:function(){var e,t;this.$cherry.$event?this.$cherry.$event.emit("afterAsyncRender",{markdownText:this.originMd,html:this.md}):null===(e=this.$cherry.options.callback)||void 0===e||null===(t=e.afterAsyncRender)||void 0===t||t.call(e,this.originMd,this.md)}}])}();const _j=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTǇǋǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉ǲኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻ǲᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤĳạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ﬃɩᾹ\0\0᾽g;耀ﬀig;耀ﬄ;쀀𝔣lig;耀ﬁlig;쀀fjƀaltῙ῜ῡt;晭ig;耀ﬂns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒α‚‰‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସǳ⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗǈⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼ǲ㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),xj=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Ej;const Sj=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Cj=null!==(Ej=String.fromCodePoint)&&void 0!==Ej?Ej:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};var Tj,kj,Oj,Mj,Ij,Dj,Nj;function Rj(e){return e>=Tj.ZERO&&e<=Tj.NINE}function Lj(e){return e===Tj.EQUALS||function(e){return e>=Tj.UPPER_A&&e<=Tj.UPPER_Z||e>=Tj.LOWER_A&&e<=Tj.LOWER_Z||Rj(e)}(e)}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(Tj||(Tj={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(kj||(kj={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(Oj||(Oj={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(Mj||(Mj={}));class Bj{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=Oj.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Mj.Strict}startEntity(e){this.decodeMode=e,this.state=Oj.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case Oj.EntityStart:return e.charCodeAt(t)===Tj.NUM?(this.state=Oj.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Oj.NamedEntity,this.stateNamedEntity(e,t));case Oj.NumericStart:return this.stateNumericStart(e,t);case Oj.NumericDecimal:return this.stateNumericDecimal(e,t);case Oj.NumericHex:return this.stateNumericHex(e,t);case Oj.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===Tj.LOWER_X?(this.state=Oj.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Oj.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const i=n-t;this.result=this.result*Math.pow(r,i)+Number.parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const i=e.charCodeAt(t);if(!(Rj(i)||(r=i,r>=Tj.UPPER_A&&r<=Tj.UPPER_F||r>=Tj.LOWER_A&&r<=Tj.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3);t+=1}var r;return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!Rj(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Tj.SEMI)this.consumed+=1;else if(this.decodeMode===Mj.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=Sj.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==Tj.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],i=(r&kj.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const o=e.charCodeAt(t);if(this.treeIndex=Pj(n,r,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return 0===this.result||this.decodeMode===Mj.Attribute&&(0===i||Lj(o))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&kj.VALUE_LENGTH)>>14,0!==i){if(o===Tj.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Mj.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&kj.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~kj.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case Oj.NamedEntity:return 0===this.result||this.decodeMode===Mj.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case Oj.NumericDecimal:return this.emitNumericEntity(0,2);case Oj.NumericHex:return this.emitNumericEntity(0,3);case Oj.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Oj.EntityStart:return 0}}}function Pj(e,t,n,r){const i=(t&kj.BRANCH_LENGTH)>>7,o=t&kj.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){const t=r-o;return t<0||t>=i?-1:e[n+t]-1}let a=n,s=a+i-1;for(;a<=s;){const t=a+s>>>1,n=e[t];if(n<r)a=t+1;else{if(!(n>r))return e[t+i];s=t-1}}return-1}function Fj(e){return e===Ij.Space||e===Ij.NewLine||e===Ij.Tab||e===Ij.FormFeed||e===Ij.CarriageReturn}function $j(e){return e===Ij.Slash||e===Ij.Gt||Fj(e)}!function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"}(Ij||(Ij={})),function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.BeforeSpecialT=23]="BeforeSpecialT",e[e.SpecialStartSequence=24]="SpecialStartSequence",e[e.InSpecialTag=25]="InSpecialTag",e[e.InEntity=26]="InEntity"}(Dj||(Dj={})),function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"}(Nj||(Nj={}));const jj={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97]),XmpEnd:new Uint8Array([60,47,120,109,112])};class Hj{constructor({xmlMode:e=!1,decodeEntities:t=!0},n){this.cbs=n,this.state=Dj.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=Dj.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=e,this.decodeEntities=t,this.entityDecoder=new Bj(e?xj:_j,(e,t)=>this.emitCodePoint(e,t))}reset(){this.state=Dj.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=Dj.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(e){e===Ij.Lt||!this.decodeEntities&&this.fastForwardTo(Ij.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=Dj.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===Ij.Amp&&this.startEntity()}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?$j(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=Dj.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===Ij.Gt||Fj(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.isSpecial=!1,this.sectionStart=t+2,void this.stateInClosingTagName(e)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===jj.TitleEnd?this.decodeEntities&&e===Ij.Amp&&this.startEntity():this.fastForwardTo(Ij.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===Ij.Lt)}stateCDATASequence(e){e===jj.Cdata[this.sequenceIndex]?++this.sequenceIndex===jj.Cdata.length&&(this.state=Dj.InCommentLike,this.currentSequence=jj.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=Dj.InDeclaration,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===jj.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=Dj.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!$j(e):function(e){return e>=Ij.LowerA&&e<=Ij.LowerZ||e>=Ij.UpperA&&e<=Ij.UpperZ}(e)}startSpecial(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=Dj.SpecialStartSequence}stateBeforeTagName(e){if(e===Ij.ExclamationMark)this.state=Dj.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===Ij.Questionmark)this.state=Dj.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){const t=32|e;this.sectionStart=this.index,this.xmlMode?this.state=Dj.InTagName:t===jj.ScriptEnd[2]?this.state=Dj.BeforeSpecialS:t===jj.TitleEnd[2]||t===jj.XmpEnd[2]?this.state=Dj.BeforeSpecialT:this.state=Dj.InTagName}else e===Ij.Slash?this.state=Dj.BeforeClosingTagName:(this.state=Dj.Text,this.stateText(e))}stateInTagName(e){$j(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=Dj.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){Fj(e)||(e===Ij.Gt?this.state=Dj.Text:(this.state=this.isTagStartChar(e)?Dj.InClosingTagName:Dj.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===Ij.Gt||Fj(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=Dj.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===Ij.Gt||this.fastForwardTo(Ij.Gt))&&(this.state=Dj.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===Ij.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=Dj.InSpecialTag,this.sequenceIndex=0):this.state=Dj.Text,this.sectionStart=this.index+1):e===Ij.Slash?this.state=Dj.InSelfClosingTag:Fj(e)||(this.state=Dj.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===Ij.Gt?(this.cbs.onselfclosingtag(this.index),this.state=Dj.Text,this.sectionStart=this.index+1,this.isSpecial=!1):Fj(e)||(this.state=Dj.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===Ij.Eq||$j(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=Dj.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===Ij.Eq?this.state=Dj.BeforeAttributeValue:e===Ij.Slash||e===Ij.Gt?(this.cbs.onattribend(Nj.NoValue,this.sectionStart),this.sectionStart=-1,this.state=Dj.BeforeAttributeName,this.stateBeforeAttributeName(e)):Fj(e)||(this.cbs.onattribend(Nj.NoValue,this.sectionStart),this.state=Dj.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===Ij.DoubleQuote?(this.state=Dj.InAttributeValueDq,this.sectionStart=this.index+1):e===Ij.SingleQuote?(this.state=Dj.InAttributeValueSq,this.sectionStart=this.index+1):Fj(e)||(this.sectionStart=this.index,this.state=Dj.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===Ij.DoubleQuote?Nj.Double:Nj.Single,this.index+1),this.state=Dj.BeforeAttributeName):this.decodeEntities&&e===Ij.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,Ij.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,Ij.SingleQuote)}stateInAttributeValueNoQuotes(e){Fj(e)||e===Ij.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(Nj.Unquoted,this.index),this.state=Dj.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===Ij.Amp&&this.startEntity()}stateBeforeDeclaration(e){e===Ij.OpeningSquareBracket?(this.state=Dj.CDATASequence,this.sequenceIndex=0):this.state=e===Ij.Dash?Dj.BeforeComment:Dj.InDeclaration}stateInDeclaration(e){(e===Ij.Gt||this.fastForwardTo(Ij.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=Dj.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===Ij.Gt||this.fastForwardTo(Ij.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=Dj.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===Ij.Dash?(this.state=Dj.InCommentLike,this.currentSequence=jj.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=Dj.InDeclaration}stateInSpecialComment(e){(e===Ij.Gt||this.fastForwardTo(Ij.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=Dj.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){const t=32|e;t===jj.ScriptEnd[3]?this.startSpecial(jj.ScriptEnd,4):t===jj.StyleEnd[3]?this.startSpecial(jj.StyleEnd,4):(this.state=Dj.InTagName,this.stateInTagName(e))}stateBeforeSpecialT(e){switch(32|e){case jj.TitleEnd[3]:this.startSpecial(jj.TitleEnd,4);break;case jj.TextareaEnd[3]:this.startSpecial(jj.TextareaEnd,4);break;case jj.XmpEnd[3]:this.startSpecial(jj.XmpEnd,4);break;default:this.state=Dj.InTagName,this.stateInTagName(e)}}startEntity(){this.baseState=this.state,this.state=Dj.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?Mj.Strict:this.baseState===Dj.Text||this.baseState===Dj.InSpecialTag?Mj.Legacy:Mj.Attribute)}stateInEntity(){const e=this.entityDecoder.write(this.buffer,this.index-this.offset);e>=0?(this.state=this.baseState,0===e&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===Dj.Text||this.state===Dj.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==Dj.InAttributeValueDq&&this.state!==Dj.InAttributeValueSq&&this.state!==Dj.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case Dj.Text:this.stateText(e);break;case Dj.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case Dj.InSpecialTag:this.stateInSpecialTag(e);break;case Dj.CDATASequence:this.stateCDATASequence(e);break;case Dj.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case Dj.InAttributeName:this.stateInAttributeName(e);break;case Dj.InCommentLike:this.stateInCommentLike(e);break;case Dj.InSpecialComment:this.stateInSpecialComment(e);break;case Dj.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case Dj.InTagName:this.stateInTagName(e);break;case Dj.InClosingTagName:this.stateInClosingTagName(e);break;case Dj.BeforeTagName:this.stateBeforeTagName(e);break;case Dj.AfterAttributeName:this.stateAfterAttributeName(e);break;case Dj.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case Dj.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case Dj.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case Dj.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case Dj.BeforeSpecialS:this.stateBeforeSpecialS(e);break;case Dj.BeforeSpecialT:this.stateBeforeSpecialT(e);break;case Dj.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case Dj.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case Dj.InDeclaration:this.stateInDeclaration(e);break;case Dj.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case Dj.BeforeComment:this.stateBeforeComment(e);break;case Dj.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case Dj.InEntity:this.stateInEntity()}this.index++}this.cleanup()}finish(){this.state===Dj.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length+this.offset;this.sectionStart>=e||(this.state===Dj.InCommentLike?this.currentSequence===jj.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===Dj.InTagName||this.state===Dj.BeforeAttributeName||this.state===Dj.BeforeAttributeValue||this.state===Dj.AfterAttributeName||this.state===Dj.InAttributeName||this.state===Dj.InAttributeValueSq||this.state===Dj.InAttributeValueDq||this.state===Dj.InAttributeValueNq||this.state===Dj.InClosingTagName||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){this.baseState!==Dj.Text&&this.baseState!==Dj.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.onattribentity(e)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.ontextentity(e,this.sectionStart))}}const Uj=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Qj=new Set(["p"]),zj=new Set(["thead","tbody"]),Wj=new Set(["dd","dt"]),Gj=new Set(["rt","rp"]),Vj=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",Qj],["h1",Qj],["h2",Qj],["h3",Qj],["h4",Qj],["h5",Qj],["h6",Qj],["select",Uj],["input",Uj],["output",Uj],["button",Uj],["datalist",Uj],["textarea",Uj],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Wj],["dt",Wj],["address",Qj],["article",Qj],["aside",Qj],["blockquote",Qj],["details",Qj],["div",Qj],["dl",Qj],["fieldset",Qj],["figcaption",Qj],["figure",Qj],["footer",Qj],["form",Qj],["header",Qj],["hr",Qj],["main",Qj],["nav",Qj],["ol",Qj],["pre",Qj],["section",Qj],["table",Qj],["ul",Qj],["rt",Gj],["rp",Gj],["tbody",zj],["tfoot",zj]]),Kj=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Yj=new Set(["math","svg"]),qj=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),Xj=/\s|\//;class Jj{constructor(e,t={}){var n,r,i,o,a,s;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:this.htmlMode,this.lowerCaseAttributeNames=null!==(r=t.lowerCaseAttributeNames)&&void 0!==r?r:this.htmlMode,this.recognizeSelfClosing=null!==(i=t.recognizeSelfClosing)&&void 0!==i?i:!this.htmlMode,this.tokenizer=new(null!==(o=t.Tokenizer)&&void 0!==o?o:Hj)(this.options,this),this.foreignContext=[!this.htmlMode],null===(s=(a=this.cbs).onparserinit)||void 0===s||s.call(a,this)}ontext(e,t){var n,r;const i=this.getSlice(e,t);this.endIndex=t-1,null===(r=(n=this.cbs).ontext)||void 0===r||r.call(n,i),this.startIndex=t}ontextentity(e,t){var n,r;this.endIndex=t-1,null===(r=(n=this.cbs).ontext)||void 0===r||r.call(n,Cj(e)),this.startIndex=t}isVoidElement(e){return this.htmlMode&&Kj.has(e)}onopentagname(e,t){this.endIndex=t;let n=this.getSlice(e,t);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)}emitOpenTag(e){var t,n,r,i;this.openTagStart=this.startIndex,this.tagname=e;const o=this.htmlMode&&Vj.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[0]);){const e=this.stack.shift();null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,e,!0)}this.isVoidElement(e)||(this.stack.unshift(e),this.htmlMode&&(Yj.has(e)?this.foreignContext.unshift(!0):qj.has(e)&&this.foreignContext.unshift(!1))),null===(i=(r=this.cbs).onopentagname)||void 0===i||i.call(r,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&(null===(n=(t=this.cbs).onopentag)||void 0===n||n.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){var n,r,i,o,a,s,l,c;this.endIndex=t;let u=this.getSlice(e,t);if(this.lowerCaseTagNames&&(u=u.toLowerCase()),this.htmlMode&&(Yj.has(u)||qj.has(u))&&this.foreignContext.shift(),this.isVoidElement(u))this.htmlMode&&"br"===u&&(null===(o=(i=this.cbs).onopentagname)||void 0===o||o.call(i,"br"),null===(s=(a=this.cbs).onopentag)||void 0===s||s.call(a,"br",{},!0),null===(c=(l=this.cbs).onclosetag)||void 0===c||c.call(l,"br",!1));else{const e=this.stack.indexOf(u);if(-1!==e)for(let t=0;t<=e;t++){const i=this.stack.shift();null===(r=(n=this.cbs).onclosetag)||void 0===r||r.call(n,i,t!==e)}else this.htmlMode&&"p"===u&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var t,n;const r=this.tagname;this.endOpenTag(e),this.stack[0]===r&&(null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,r,!e),this.stack.shift())}onattribname(e,t){this.startIndex=e;const n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=Cj(e)}onattribend(e,t){var n,r;this.endIndex=t,null===(r=(n=this.cbs).onattribute)||void 0===r||r.call(n,this.attribname,this.attribvalue,e===Nj.Double?'"':e===Nj.Single?"'":e===Nj.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(e){const t=e.search(Xj);let n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(e,t){this.endIndex=t;const n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){const e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`!${e}`,`!${n}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;const n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){const e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`?${e}`,`?${n}`)}this.startIndex=t+1}oncomment(e,t,n){var r,i,o,a;this.endIndex=t,null===(i=(r=this.cbs).oncomment)||void 0===i||i.call(r,this.getSlice(e,t-n)),null===(a=(o=this.cbs).oncommentend)||void 0===a||a.call(o),this.startIndex=t+1}oncdata(e,t,n){var r,i,o,a,s,l,c,u,d,h;this.endIndex=t;const f=this.getSlice(e,t-n);!this.htmlMode||this.options.recognizeCDATA?(null===(i=(r=this.cbs).oncdatastart)||void 0===i||i.call(r),null===(a=(o=this.cbs).ontext)||void 0===a||a.call(o,f),null===(l=(s=this.cbs).oncdataend)||void 0===l||l.call(s)):(null===(u=(c=this.cbs).oncomment)||void 0===u||u.call(c,`[CDATA[${f}]]`),null===(h=(d=this.cbs).oncommentend)||void 0===h||h.call(d)),this.startIndex=t+1}onend(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=0;e<this.stack.length;e++)this.cbs.onclosetag(this.stack[e],!0)}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)}reset(){var e,t,n,r;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))}end(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(e){this.write(e)}done(e){this.end(e)}}var Zj;!function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(Zj||(Zj={})),Zj.Root,Zj.Text,Zj.Directive,Zj.Comment,Zj.Script,Zj.Style,Zj.Tag,Zj.CDATA,Zj.Doctype;let eH=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return uH(this,e)}};class tH extends eH{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class nH extends tH{constructor(){super(...arguments),this.type=Zj.Text}get nodeType(){return 3}}class rH extends tH{constructor(){super(...arguments),this.type=Zj.Comment}get nodeType(){return 8}}class iH extends tH{constructor(e,t){super(t),this.name=e,this.type=Zj.Directive}get nodeType(){return 1}}class oH extends eH{constructor(e){super(),this.children=e}get firstChild(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class aH extends oH{constructor(){super(...arguments),this.type=Zj.CDATA}get nodeType(){return 4}}class sH extends oH{constructor(){super(...arguments),this.type=Zj.Root}get nodeType(){return 9}}let lH=class extends oH{constructor(e,t,n=[],r=("script"===e?Zj.Script:"style"===e?Zj.Style:Zj.Tag)){super(n),this.name=e,this.attribs=t,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var t,n;return{name:e,value:this.attribs[e],namespace:null===(t=this["x-attribsNamespace"])||void 0===t?void 0:t[e],prefix:null===(n=this["x-attribsPrefix"])||void 0===n?void 0:n[e]}})}};function cH(e){return(t=e).type===Zj.Tag||t.type===Zj.Script||t.type===Zj.Style;var t}function uH(e,t=!1){let n;if(function(e){return e.type===Zj.Text}(e))n=new nH(e.data);else if(function(e){return e.type===Zj.Comment}(e))n=new rH(e.data);else if(cH(e)){const r=t?dH(e.children):[],i=new lH(e.name,{...e.attribs},r);r.forEach(e=>e.parent=i),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=i}else if(function(e){return e.type===Zj.CDATA}(e)){const r=t?dH(e.children):[],i=new aH(r);r.forEach(e=>e.parent=i),n=i}else if(function(e){return e.type===Zj.Root}(e)){const r=t?dH(e.children):[],i=new sH(r);r.forEach(e=>e.parent=i),e["x-mode"]&&(i["x-mode"]=e["x-mode"]),n=i}else{if(!function(e){return e.type===Zj.Directive}(e))throw new Error(`Not implemented yet: ${e.type}`);{const t=new iH(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),n=t}}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function dH(e){const t=e.map(e=>uH(e,!0));for(let n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}const hH={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class fH{constructor(e,t,n){this.dom=[],this.root=new sH(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=hH),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:hH,this.elementCB=null!=n?n:null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new sH(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;const e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){const n=this.options.xmlMode?Zj.Tag:void 0,r=new lH(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)}ontext(e){const{lastNode:t}=this;if(t&&t.type===Zj.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{const t=new nH(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===Zj.Comment)return void(this.lastNode.data+=e);const t=new rH(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){const e=new nH(""),t=new aH([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){const n=new iH(e,t);this.addNode(n)}handleCallback(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e}addNode(e){const t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null}}var pH,gH,mH,vH,AH,bH,yH,wH,_H,xH,EH=i(gH?pH:(gH=1,pH=YO()));function SH(){return vH?mH:(vH=1,Ps(),mH=eo()("Array","values"))}function CH(){return bH?AH:(bH=1,AH=SH())}function TH(){if(wH)return yH;wH=1,$s();var e=dn(),t=_t(),n=De(),r=CH(),i=Array.prototype,o={DOMTokenList:!0,NodeList:!0};return yH=function(a){var s=a.values;return a===i||n(i,a)&&s===i.values||t(o,e(a))?r:s}}var kH,OH,MH,IH,DH,NH,RH,LH,BH=i(xH?_H:(xH=1,_H=TH()));function PH(){return OH?kH:(OH=1,Ps(),kH=eo()("Array","entries"))}function FH(){return IH?MH:(IH=1,MH=PH())}function $H(){if(NH)return DH;NH=1,$s();var e=dn(),t=_t(),n=De(),r=FH(),i=Array.prototype,o={DOMTokenList:!0,NodeList:!0};return DH=function(a){var s=a.entries;return a===i||n(i,a)&&s===i.entries||t(o,e(a))?r:s}}var jH,HH,UH,QH,zH,WH,GH,VH,KH,YH,qH,XH,JH,ZH,eU,tU,nU,rU,iU,oU,aU,sU,lU,cU,uU,dU,hU,fU,pU,gU,mU,vU,AU,bU,yU,wU,_U=i(LH?RH:(LH=1,RH=$H())),xU=function(){return mc(function e(t){ua(this,e),this.capacity=t,this.cache=new EH},[{key:"get",value:function(e){if(this.cache.has(e)){var t=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,t),t}}},{key:"set",value:function(e,t){if(this.cache.has(e)&&this.cache.delete(e),this.cache.size>=this.capacity)for(var n,r=GT(n=this.cache).call(n),i=Math.min(100,this.cache.size),o=0;o<i;o++){var a=r.next();if(a.done)break;var s=a.value;this.cache.delete(s)}this.cache.set(e,t)}},{key:"has",value:function(e){return this.cache.has(e)}},{key:"delete",value:function(e){return this.cache.delete(e)}},{key:"clear",value:function(){this.cache.clear()}},{key:"keys",value:function(){var e;return u_(GT(e=this.cache).call(e))}},{key:"values",value:function(){var e;return u_(BH(e=this.cache).call(e))}},{key:"entries",value:function(){var e;return u_(_U(e=this.cache).call(e))}},{key:"size",get:function(){return this.cache.size}}])}(),EU=function(){return mc(function e(t,n){ua(this,e),this.$cherry=n,ca(this,"_cherry",{get:function(){return jC.warn("`_engine._cherry` is deprecated. Use `$engine.$cherry` instead."),this.$cherry}}),this.initMath(t),this.$configInit(t),this.hookCenter=new MI(i$,t,n),this.hooks=this.hookCenter.getHookList(),this.asyncRenderHandler=new wj(n),this.hashCache=new xU(2e4),this.hashStrMap=new xU(2e3),this.cachedBigData={},this.urlProcessorMap={},this.markdownParams=t,this.currentStrMd5=[],this.globalConfig=t.engine.global,this.htmlWhiteListAppend=this.globalConfig.htmlWhiteList,this.htmlBlackList=this.globalConfig.htmlBlackList},[{key:"reMakeHtml",value:function(){var e=this;this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=_d(function(){e.$cherry.lastMarkdownText="",e.hashCache.clear();var t=e.$cherry.editor.editor.getValue(),n=e.makeHtml(t);e.$cherry.previewer.refresh(n),e.$cherry.$event.emit("afterChange",{markdownText:t,html:n})},1e3)}},{key:"urlProcessor",value:function(e,t){var n,r=this,i=Xu(n="".concat(t,"_")).call(n,e);if(this.urlProcessorMap[i])return this.urlProcessorMap[i];var o=this.dealAfterMakeHtml(e);o=o.replace(/&amp;/g,"&");var a=this.$cherry.options.callback.urlProcessor(o,t,function(e){e?r.urlProcessorMap[i]||(r.urlProcessorMap[i]=e,r.reMakeHtml()):delete r.urlProcessorMap[i]});return a&&a!==o?a:e}},{key:"initMath",value:function(e){var t=this,n=e.externals,r=e.engine.syntax,i=r.mathBlock.plugins;if(mL()&&(r.mathBlock.src||r.inlineMath.src||r.mathBlock.engine||r.inlineMath.engine)){if("MathJax"===r.mathBlock.engine||"MathJax"===r.inlineMath.engine){if(n.MathJax||window.MathJax)return;!function(e){if(mL()){var t=e?["input/asciimath","[tex]/noerrors","[tex]/cancel","[tex]/color","[tex]/boldsymbol","ui/safe"]:["ui/safe"];window.MathJax={startup:{elements:[".Cherry-Math",".Cherry-InlineMath"],typeset:!0},tex:{inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],tags:"ams",packages:{"[+]":["noerrors","cancel","color"]},macros:{bm:["{\\boldsymbol{#1}}",1]}},options:{skipHtmlTags:["script","noscript","style","textarea","pre","code","a"],ignoreHtmlClass:"tex2jax_ignore",processHtmlClass:"tex2jax_process",enableMenu:!1},loader:{load:t}}}}(i),(r.mathBlock.src||r.inlineMath.src)&&MC(r.mathBlock.src?r.mathBlock.src:r.inlineMath.src,"mathjax-js")}if("katex"===r.mathBlock.engine||"katex"===r.inlineMath.engine){if(window.katex)return;r.mathBlock.css&&function(e,t){if(!document.getElementById(t)){var n=document.createElement("link");n.rel="stylesheet",n.href=e,n.type="text/css",document.head.appendChild(n)}}(r.mathBlock.css,"katex-css"),r.mathBlock.src&&MC(r.mathBlock.src,"katex-js").then(function(){var e;gf(e=t.$cherry.previewer.getDom().querySelectorAll(".cherry-katex-need-render")).call(e,function(e){var t=e.classList.contains("Cherry-Math");e.innerHTML=window.katex.renderToString(decodeURI(e.getAttribute("data-content")),{throwOnError:!1,displayMode:t}),e.classList.remove("cherry-katex-need-render")});var n=[];t.asyncRenderHandler.md=t.asyncRenderHandler.md.replace(/<(div|span) data-sign="([^"]+?)" class="([^"]+?) cherry-katex-need-render" ([^>]+? data-lines="[^"]+?") data-content="([\s\S]+?)"><\/\1>/g,function(e,t,r,i,o,a){var s,l,c,u,d,h="div"===t,f="div"===t?"math-block-".concat(r):"math-inline-".concat(r),p=window.katex.renderToString(decodeURI(a),{throwOnError:!1,displayMode:h});return n.push(f),Xu(s=Xu(l=Xu(c=Xu(u=Xu(d="<".concat(t,' data-sign="')).call(d,r,'" class="')).call(u,i,'" ')).call(c,o,">")).call(l,p,"</")).call(s,t,">")}),gf(n).call(n,function(e){t.asyncRenderHandler.done(e)}),t.$cherry.previewer.isPreviewerHidden()&&(t.$cherry.previewer.options.previewerCache.html=t.asyncRenderHandler.md)})}}}},{key:"$configInit",value:function(e){if(e.hooksConfig&&wI(e.hooksConfig.hooksList,Array))for(var t=0;t<e.hooksConfig.hooksList.length;t++){var n=e.hooksConfig.hooksList[t];try{"sentence"===n.getType()&&_I(n,vk),"paragraph"===n.getType()&&_I(n,aO),xI(n),i$.push(n)}catch(e){throw new Error("the hook does not correctly inherit")}}}},{key:"$prepareMakeHtml",value:function(e){this.asyncRenderHandler.clear(),this.asyncRenderHandler.handleSyncRenderStart(e)}},{key:"$completeMakeHtml",value:function(e){this.asyncRenderHandler.handleSyncRenderCompleted(e)}},{key:"$beforeMakeHtml",value:function(e){var t,n=e.replace(/~/g,"~T");return"\n"!==(n=(n=(n=n.replace(/\$/g,"~D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n"))[n.length-1]&&(n+="\n"),n=this.$fireHookAction(n,"sentence","beforeMakeHtml"),this.$fireHookAction(n,"paragraph","beforeMakeHtml",Ju(t=this.$dealSentenceByCache).call(t,this))}},{key:"dealAfterMakeHtml",value:function(e){var t=e.replace(/~D/g,"$");return(t=(t=(t=(t=t.replace(/~T/g,"~")).replace(/\\<\//g,"\\ </")).replace(new RegExp("\\\\(".concat(rT,")"),"g"),function(e,t){return"&"===t?e:Zk(t)}).replace(/\\&(?!(amp|lt|gt|quot|apos);)/,function(){return"&amp;"})).replace(/\\ <\//g,"\\</")).replace(/id="safe_(?=.*?")/g,'id="')}},{key:"$afterMakeHtml",value:function(e){var t,n=this.$fireHookAction(e,"paragraph","afterMakeHtml",Ju(t=this.$dealSentenceByCache).call(t,this));return n=this.dealAfterMakeHtml(n),XN.restoreAll(n)}},{key:"$dealSentenceByCache",value:function(e){var t=this;return this.$checkCache(e,function(e){return t.$dealSentence(e)})}},{key:"$dealSentence",value:function(e){var t;return this.$fireHookAction(e,"sentence","makeHtml",Ju(t=this.$dealSentenceByCache).call(t,this))}},{key:"$fireHookAction",value:function(e,t,n,r){var i=this,o=e,a=(null==r?void 0:r.before)||"",s="afterMakeHtml"===n?"reduceRight":"reduce";if(!this.hooks&&!this.hooks[t]&&!this.hooks[t][s])return o;try{var l=!0;o=this.hooks[t][s](function(e,o){return l?(o.$engine||(o.$engine=i,ca(o,"_engine",{get:function(){return jC.warn("`this._engine` is deprecated. Use `this.$engine` instead."),this.$engine}})),o[n]?(a&&"paragraph"===t&&"afterMakeHtml"===n&&o.getName()===a&&(l=!1),o[n](e,r,i.markdownParams)):e):e},o)}catch(e){throw new EI(e)}return o}},{key:"md5",value:function(e){return this.hash(e)}},{key:"hash",value:function(e){var t=this;if(this.hashStrMap.size>2e3){var n,r,i=_x(n=u_(GT(r=this.hashStrMap).call(r))).call(n,0,200);gf(i).call(i,function(e){return t.hashStrMap.delete(e)})}return this.hashStrMap.get(e)||this.hashStrMap.set(e,VN.SHA256(e).toString()),this.hashStrMap.get(e)}},{key:"$checkCache",value:function(e,t){var n=this.hash(e);return void 0===this.hashCache.get(n)&&this.hashCache.set(n,t(e)),{sign:n,html:this.hashCache.get(n)}}},{key:"$dealParagraph",value:function(e){var t;return this.$fireHookAction(e,"paragraph","makeHtml",Ju(t=this.$dealSentenceByCache).call(t,this))}},{key:"$cacheBigData",value:function(e){var t=this,n=e.replace(vT,function(e,n,r){var i,o="bigDataBegin".concat(t.hash(r),"bigDataEnd");return t.cachedBigData[o]=r,Xu(i="".concat(n)).call(i,o,")")});return n=n.replace(yT,function(e,n,r){var i,o="bigDataBegin".concat(t.hash(r),"bigDataEnd");return t.cachedBigData[o]=r,Xu(i="".concat(n)).call(i,o,"}")}),n.replace(bT,function(e,n,r){var i,o="bigDataBegin".concat(t.hash(r),"bigDataEnd");return t.cachedBigData[o]=r,Xu(i="".concat(n)).call(i,o,"}")})}},{key:"$deCacheBigData",value:function(e){var t=this;return e.replace(/bigDataBegin[^\n]+?bigDataEnd/g,function(e){return t.cachedBigData[e]})}},{key:"$setFlowSessionCursorCache",value:function(e){return this.$cherry.options.engine.global.flowSessionContext&&this.$cherry.options.engine.global.flowSessionCursor?/[*_~^]+\n*$/.test(e)?e.replace(/([*_~^]+\n*)$/,"CHERRYFLOWSESSIONCURSOR$1"):/:::\s*\n*$/.test(e)||/\+\+[+-]*\s*\n*$/.test(e)?e:/\n\s*`{1,}\s*\n*$/.test(e)?e.replace(/(\n\s*`{1,}\s*\n*)$/,"CHERRYFLOWSESSIONCURSOR$1"):/\n\s*[-*]$/.test(e)?e.replace(/(\n\s*[-*])$/,"CHERRYFLOWSESSIONCURSOR$1"):/\|[\s-:]+\|*\n*$/.test(e)?e:/\|\n*$/.test(e)?e.replace(/(\|\n*)$/,"CHERRYFLOWSESSIONCURSOR$1"):/\n+$/.test(e)?e.replace(/(\n+)$/,"CHERRYFLOWSESSIONCURSOR$1"):"".concat(e,"CHERRYFLOWSESSIONCURSOR"):e}},{key:"$clearFlowSessionCursorCache",value:function(e){var t=this;return this.$cherry.options.engine.global.flowSessionCursor?(this.clearCursorTimer&&clearTimeout(this.clearCursorTimer),this.clearCursorTimer=_d(function(){t.$cherry.clearFlowSessionCursor()},2560),e.replace(/CHERRYFLOWSESSIONCURSOR/g,this.$cherry.options.engine.global.flowSessionCursor)):e}},{key:"makeHtml",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"string";this.$prepareMakeHtml(e);var n=this.$setFlowSessionCursorCache(e);return n=this.$cacheBigData(n),n=this.$beforeMakeHtml(n),n=this.$dealParagraph(n),n=this.$afterMakeHtml(n),this.$fireHookAction(n,"paragraph","$cleanCache"),n=this.$deCacheBigData(n),n=this.$clearFlowSessionCursorCache(n),this.$completeMakeHtml(n),"object"===t?function(e,t){const n=new fH(void 0,t);return new Jj(n,t).end(e),n.root}(n.replace(/\n/g,"")):n}},{key:"makeHtmlForBlockquote",value:function(e){var t=e;return t=this.$dealParagraph(t),this.$fireHookAction(t,"paragraph","afterMakeHtml",{before:"blockquote"})}},{key:"makeHtmlForFootnote",value:function(e){var t=e;return t=this.$dealParagraph(t),this.$fireHookAction(t,"paragraph","afterMakeHtml",{before:"footnote"})}},{key:"mounted",value:function(){this.$fireHookAction("","sentence","mounted"),this.$fireHookAction("","paragraph","mounted")}},{key:"makeMarkdown",value:function(e){return Vx.run(e)}}])}();function SU(){if(HH)return jH;HH=1;var e=Array.isArray,t=Object.prototype.toString;return jH=e||function(e){return"[object Array]"===t.call(e)}}function CU(){return QH?UH:(QH=1,UH="2")}function TU(){if(WH)return zH;WH=1;var e=CU();return zH=function(t){return t&&"VirtualNode"===t.type&&t.version===e},zH}function kU(){return VH||(VH=1,GH=function(e){return e&&"Widget"===e.type}),GH}function OU(){return YH?KH:(YH=1,KH=function(e){return e&&"Thunk"===e.type})}function MU(){return XH?qH:(XH=1,qH=function(e){return e&&("function"==typeof e.hook&&!e.hasOwnProperty("hook")||"function"==typeof e.unhook&&!e.hasOwnProperty("unhook"))})}function IU(){if(rU)return nU;rU=1;var e=CU();return nU=function(t){return t&&"VirtualText"===t.type&&t.version===e},nU}function DU(){if(sU)return aU;sU=1;var e=(oU||(oU=1,iU=function(e){var t,n=String.prototype.split,r=/()??/.exec("")[1]===e;return t=function(t,i,o){if("[object RegExp]"!==Object.prototype.toString.call(i))return n.call(t,i,o);var a,s,l,c,u=[],d=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.extended?"x":"")+(i.sticky?"y":""),h=0;for(i=new RegExp(i.source,d+"g"),t+="",r||(a=new RegExp("^"+i.source+"$(?!\\s)",d)),o=o===e?-1>>>0:o>>>0;(s=i.exec(t))&&!((l=s.index+s[0].length)>h&&(u.push(t.slice(h,s.index)),!r&&s.length>1&&s[0].replace(a,function(){for(var t=1;t<arguments.length-2;t++)arguments[t]===e&&(s[t]=e)}),s.length>1&&s.index<t.length&&Array.prototype.push.apply(u,s.slice(1)),c=s[0].length,h=l,u.length>=o));)i.lastIndex===s.index&&i.lastIndex++;return h===t.length?!c&&i.test("")||u.push(""):u.push(t.slice(h)),u.length>o?u.slice(0,o):u},t}()),iU),t=/([\.#]?[a-zA-Z0-9\u007F-\uFFFF_:-]+)/,n=/^\.|#/;return aU=function(r,i){if(!r)return"DIV";var o,a,s,l,c=!i.hasOwnProperty("id"),u=e(r,t),d=null;for(n.test(u[1])&&(d="DIV"),l=0;l<u.length;l++)(a=u[l])&&(s=a.charAt(0),d?"."===s?(o=o||[]).push(a.substring(1,a.length)):"#"===s&&c&&(i.id=a.substring(1,a.length)):d=a);return o&&(i.className&&o.push(i.className),i.className=o.join(" ")),i.namespace?d:d.toUpperCase()},aU}function NU(){if(cU)return lU;function e(t){if(!(this instanceof e))return new e(t);this.value=t}return cU=1,lU=e,e.prototype.hook=function(e,t){e[t]!==this.value&&(e[t]=this.value)},lU}function RU(){if(fU)return hU;fU=1;var e=function(){if(dU)return uU;dU=1;var e="undefined"!=typeof window?window:void 0!==r?r:{};return uU=function(t,n){return t in e?e[t]:(e[t]=n,n)},uU}();return hU=function(t,n,r){var i="__INDIVIDUAL_ONE_VERSION_"+t,o=i+"_ENFORCE_SINGLETON",a=e(o,n);if(a!==n)throw new Error("Can only have one copy of "+t+".\nYou already have version "+a+" installed.\nThis means you cannot install version "+n);return e(i,r)},hU}function LU(){if(vU)return mU;vU=1;var e=function(){if(gU)return pU;gU=1,RU()("ev-store","7");var e="__EV_STORE_KEY@7";return pU=function(t){var n=t[e];return n||(n=t[e]={}),n}}();function t(e){if(!(this instanceof t))return new t(e);this.value=e}return mU=t,t.prototype.hook=function(t,n){e(t)[n.substr(3)]=this.value},t.prototype.unhook=function(t,n){e(t)[n.substr(3)]=void 0},mU}function BU(){if(bU)return AU;bU=1;var e=SU(),t=function(){if(ZH)return JH;ZH=1;var e=CU(),t=TU(),n=kU(),r=OU(),i=MU();JH=s;var o={},a=[];function s(e,s,l,c,u){this.tagName=e,this.properties=s||o,this.children=l||a,this.key=null!=c?String(c):void 0,this.namespace="string"==typeof u?u:null;var d,h=l&&l.length||0,f=0,p=!1,g=!1,m=!1;for(var v in s)if(s.hasOwnProperty(v)){var A=s[v];i(A)&&A.unhook&&(d||(d={}),d[v]=A)}for(var b=0;b<h;b++){var y=l[b];t(y)?(f+=y.count||0,!p&&y.hasWidgets&&(p=!0),!g&&y.hasThunks&&(g=!0),m||!y.hooks&&!y.descendantHooks||(m=!0)):!p&&n(y)?"function"==typeof y.destroy&&(p=!0):!g&&r(y)&&(g=!0)}this.count=h+f,this.hasWidgets=p,this.hasThunks=g,this.hooks=d,this.descendantHooks=m}return s.prototype.version=e,s.prototype.type="VirtualNode",JH}(),n=function(){if(tU)return eU;tU=1;var e=CU();function t(e){this.text=String(e)}return eU=t,t.prototype.version=e,t.prototype.type="VirtualText",eU}(),r=TU(),i=IU(),o=kU(),a=MU(),s=OU(),l=DU(),c=NU(),u=LU();function d(t,r,i,o){if("string"==typeof t)r.push(new n(t));else if("number"==typeof t)r.push(new n(String(t)));else if(h(t))r.push(t);else{if(!e(t)){if(null==t)return;throw s={foreignObject:t,parentVnode:{tagName:i,properties:o}},(l=new Error).type="virtual-hyperscript.unexpected.virtual-element",l.message="Unexpected virtual child passed to h().\nExpected a VNode / Vthunk / VWidget / string but:\ngot:\n"+f(s.foreignObject)+".\nThe parent vnode is:\n"+f(s.parentVnode),l.foreignObject=s.foreignObject,l.parentVnode=s.parentVnode,l}for(var a=0;a<t.length;a++)d(t[a],r,i,o)}var s,l}function h(e){return r(e)||i(e)||o(e)||s(e)}function f(e){try{return JSON.stringify(e,null,"    ")}catch(t){return String(e)}}return AU=function(n,r,i){var o,s,f,p,g=[];return!i&&function(t){return"string"==typeof t||e(t)||h(t)}(r)&&(i=r,s={}),o=l(n,s=s||r||{}),s.hasOwnProperty("key")&&(f=s.key,s.key=void 0),s.hasOwnProperty("namespace")&&(p=s.namespace,s.namespace=void 0),"INPUT"!==o||p||!s.hasOwnProperty("value")||void 0===s.value||a(s.value)||(s.value=c(s.value)),function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];if(a(n))continue;"ev-"===t.substr(0,3)&&(e[t]=u(n))}}(s),null!=i&&d(i,g,o,s),new t(o,s,g,f,p)},AU}var PU,FU,$U,jU,HU,UU,QU,zU,WU,GU,VU,KU,YU=i(function(){if(wU)return yU;wU=1;var e=BU();return yU=e}());function qU(){if(FU)return PU;FU=1;var e=CU();function t(e,t,n){this.type=Number(e),this.vNode=t,this.patch=n}return t.NONE=0,t.VTEXT=1,t.VNODE=2,t.WIDGET=3,t.PROPS=4,t.ORDER=5,t.INSERT=6,t.REMOVE=7,t.THUNK=8,PU=t,t.prototype.version=e,t.prototype.type="VirtualPatch",PU}function XU(){if(jU)return $U;jU=1;var e=TU(),t=IU(),n=kU(),r=OU();function i(r,i){var o=r.vnode;if(o||(o=r.vnode=r.render(i)),!(e(o)||t(o)||n(o)))throw new Error("thunk did not return a valid node");return o}return $U=function(e,t){var n=e,o=t;return r(t)&&(o=i(t,e)),r(e)&&(n=i(e,null)),{a:n,b:o}}}function JU(){return UU||(UU=1,HU=function(e){return"object"==typeof e&&null!==e}),HU}function ZU(){if(GU)return WU;GU=1;var e=SU(),t=qU(),n=TU(),r=IU(),i=kU(),o=OU(),a=XU(),s=function(){if(zU)return QU;zU=1;var e=JU(),t=MU();function n(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}return QU=function r(i,o){var a;for(var s in i){s in o||((a=a||{})[s]=void 0);var l=i[s],c=o[s];if(l!==c)if(e(l)&&e(c))if(n(c)!==n(l))(a=a||{})[s]=c;else if(t(c))(a=a||{})[s]=c;else{var u=r(l,c);u&&((a=a||{})[s]=u)}else(a=a||{})[s]=c}for(var d in o)d in i||((a=a||{})[d]=o[d]);return a},QU}();function l(e,t){var n={a:e};return c(e,t,n,0),n}function c(e,a,l,d){if(e!==a){var f=l[d],v=!1;if(o(e)||o(a))h(e,a,l,d);else if(null==a)i(e)||(u(e,l,d),f=l[d]),f=m(f,new t(t.REMOVE,e,a));else if(n(a))if(n(e))if(e.tagName===a.tagName&&e.namespace===a.namespace&&e.key===a.key){var A=s(e.properties,a.properties);A&&(f=m(f,new t(t.PROPS,e,A))),f=function(e,r,i,o,a){for(var s=e.children,l=function(e,t){var n=g(t),r=n.keys,i=n.free;if(i.length===t.length)return{children:t,moves:null};var o=g(e),a=o.keys;if(o.free.length===e.length)return{children:t,moves:null};for(var s=[],l=0,c=i.length,u=0,d=0;d<e.length;d++){var h,f=e[d];f.key?r.hasOwnProperty(f.key)?(h=r[f.key],s.push(t[h])):(h=d-u++,s.push(null)):l<c?(h=i[l++],s.push(t[h])):(h=d-u++,s.push(null))}for(var m=l>=i.length?t.length:i[l],v=0;v<t.length;v++){var A=t[v];A.key?a.hasOwnProperty(A.key)||s.push(A):v>=m&&s.push(A)}for(var b,y=s.slice(),w=0,_=[],x=[],E=0;E<t.length;){var S=t[E];for(b=y[w];null===b&&y.length;)_.push(p(y,w,null)),b=y[w];b&&b.key===S.key?(w++,E++):S.key?(b&&b.key&&r[b.key]!==E+1?(_.push(p(y,w,b.key)),(b=y[w])&&b.key===S.key?w++:x.push({key:S.key,to:E})):x.push({key:S.key,to:E}),E++):b&&b.key&&_.push(p(y,w,b.key))}for(;w<y.length;)b=y[w],_.push(p(y,w,b&&b.key));return _.length!==u||x.length?{children:s,moves:{removes:_,inserts:x}}:{children:s,moves:null}}(s,r.children),u=l.children,d=s.length,h=u.length,f=d>h?d:h,v=0;v<f;v++){var A=s[v],b=u[v];a+=1,A?c(A,b,i,a):b&&(o=m(o,new t(t.INSERT,null,b))),n(A)&&A.count&&(a+=A.count)}return l.moves&&(o=m(o,new t(t.ORDER,e,l.moves))),o}(e,a,l,f,d)}else f=m(f,new t(t.VNODE,e,a)),v=!0;else f=m(f,new t(t.VNODE,e,a)),v=!0;else r(a)?r(e)?e.text!==a.text&&(f=m(f,new t(t.VTEXT,e,a))):(f=m(f,new t(t.VTEXT,e,a)),v=!0):i(a)&&(i(e)||(v=!0),f=m(f,new t(t.WIDGET,e,a)));f&&(l[d]=f),v&&u(e,l,d)}}function u(e,t,n){f(e,t,n),d(e,t,n)}function d(e,r,a){if(i(e))"function"==typeof e.destroy&&(r[a]=m(r[a],new t(t.REMOVE,e,null)));else if(n(e)&&(e.hasWidgets||e.hasThunks))for(var s=e.children,l=s.length,c=0;c<l;c++){var u=s[c];d(u,r,a+=1),n(u)&&u.count&&(a+=u.count)}else o(e)&&h(e,null,r,a)}function h(e,n,r,i){var o=a(e,n),s=l(o.a,o.b);(function(e){for(var t in e)if("a"!==t)return!0;return!1})(s)&&(r[i]=new t(t.THUNK,null,s))}function f(e,r,i){if(n(e)){if(e.hooks&&(r[i]=m(r[i],new t(t.PROPS,e,function(e){var t={};for(var n in e)t[n]=void 0;return t}(e.hooks)))),e.descendantHooks||e.hasThunks)for(var a=e.children,s=a.length,l=0;l<s;l++){var c=a[l];f(c,r,i+=1),n(c)&&c.count&&(i+=c.count)}}else o(e)&&h(e,null,r,i)}function p(e,t,n){return e.splice(t,1),{from:t,key:n}}function g(e){for(var t={},n=[],r=e.length,i=0;i<r;i++){var o=e[i];o.key?t[o.key]=i:n.push(i)}return{keys:t,free:n}}function m(t,n){return t?(e(t)?t.push(n):t=[t,n],t):n}return WU=l}var eQ,tQ,nQ,rQ,iQ,oQ,aQ,sQ,lQ,cQ,uQ,dQ,hQ,fQ,pQ,gQ,mQ=function(){if(KU)return VU;KU=1;var e=ZU();return VU=e}(),vQ=i(mQ);function AQ(){if(tQ)return eQ;tQ=1;var e,t=void 0!==r?r:"undefined"!=typeof window?window:{},n=uD;return"undefined"!=typeof document?e=document:(e=t["__GLOBAL_DOCUMENT_CACHE@4"])||(e=t["__GLOBAL_DOCUMENT_CACHE@4"]=n),eQ=e}function bQ(){if(rQ)return nQ;rQ=1;var e=JU(),t=MU();function n(e,n,r,i){if(i){var o=i[n];if(t(o))o.unhook&&o.unhook(e,n,r);else if("attributes"===n)for(var a in o)e.removeAttribute(a);else if("style"===n)for(var s in o)e.style[s]="";else e[n]="string"==typeof o?"":null}}function r(t,n,r,o,a){var s=r?r[o]:void 0;if("attributes"!==o)if(s&&e(s)&&i(s)!==i(a))t[o]=a;else{e(t[o])||(t[o]={});var l="style"===o?"":void 0;for(var c in a){var u=a[c];t[o][c]=void 0===u?l:u}}else for(var d in a){var h=a[d];void 0===h?t.removeAttribute(d):t.setAttribute(d,h)}}function i(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__?e.__proto__:e.constructor?e.constructor.prototype:void 0}return nQ=function(i,o,a){for(var s in o){var l=o[s];void 0===l?n(i,s,l,a):t(l)?(n(i,s,l,a),l.hook&&l.hook(i,s,a?a[s]:void 0)):e(l)?r(i,o,a,s,l):i[s]=l}},nQ}function yQ(){if(sQ)return aQ;sQ=1;var e={};function t(r,i,o,a,s){if(a=a||{},r){n(o,s,s)&&(a[s]=r);var l=i.children;if(l)for(var c=r.childNodes,u=0;u<i.children.length;u++){s+=1;var d=l[u]||e,h=s+(d.count||0);n(o,s,h)&&t(c[u],d,o,a,s),s=h}}return a}function n(e,t,n){if(0===e.length)return!1;for(var r,i,o=0,a=e.length-1;o<=a;){if(i=e[r=(a+o)/2|0],o===a)return i>=t&&i<=n;if(i<t)o=r+1;else{if(!(i>n))return!0;a=r-1}}return!1}function r(e,t){return e>t?1:-1}return aQ=function(e,n,i,o){return i&&0!==i.length?(i.sort(r),t(e,n,i,o,0)):{}},aQ}function wQ(){if(dQ)return uQ;dQ=1;var e=bQ(),t=kU(),n=qU(),r=function(){if(cQ)return lQ;cQ=1;var e=kU();return lQ=function(t,n){return!(!e(t)||!e(n))&&("name"in t&&"name"in n?t.id===n.id:t.init===n.init)}}();function i(e,n){"function"==typeof n.destroy&&t(n)&&n.destroy(e)}return uQ=function(t,o,a){var s=t.type,l=t.vNode,c=t.patch;switch(s){case n.REMOVE:return function(e,t){var n=e.parentNode;return n&&n.removeChild(e),i(e,t),null}(o,l);case n.INSERT:return function(e,t,n){var r=n.render(t,n);return e&&e.appendChild(r),e}(o,c,a);case n.VTEXT:return function(e,t,n,r){var i;if(3===e.nodeType)e.replaceData(0,e.length,n.text),i=e;else{var o=e.parentNode;i=r.render(n,r),o&&i!==e&&o.replaceChild(i,e)}return i}(o,0,c,a);case n.WIDGET:return function(e,t,n,o){var a,s=r(t,n);a=s?n.update(t,e)||e:o.render(n,o);var l=e.parentNode;return l&&a!==e&&l.replaceChild(a,e),s||i(e,t),a}(o,l,c,a);case n.VNODE:return function(e,t,n,r){var i=e.parentNode,o=r.render(n,r);return i&&o!==e&&i.replaceChild(o,e),o}(o,0,c,a);case n.ORDER:return function(e,t){for(var n,r,i,o=e.childNodes,a={},s=0;s<t.removes.length;s++)n=o[(r=t.removes[s]).from],r.key&&(a[r.key]=n),e.removeChild(n);for(var l=o.length,c=0;c<t.inserts.length;c++)n=a[(i=t.inserts[c]).key],e.insertBefore(n,i.to>=l++?null:o[i.to])}(o,c),o;case n.PROPS:return e(o,c,l.properties),o;case n.THUNK:return function(e,t){return e&&t&&e!==t&&e.parentNode&&e.parentNode.replaceChild(t,e),t}(o,a.patch(o,c,a));default:return o}},uQ}function _Q(){if(fQ)return hQ;fQ=1;var e=AQ(),t=SU(),n=function(){if(oQ)return iQ;oQ=1;var e=AQ(),t=bQ(),n=TU(),r=IU(),i=kU(),o=XU();return iQ=function a(s,l){var c=l&&l.document||e,u=l?l.warn:null;if(s=o(s).a,i(s))return s.init();if(r(s))return c.createTextNode(s.text);if(!n(s))return u&&u("Item is not a valid virtual dom node",s),null;var d=null===s.namespace?c.createElement(s.tagName):c.createElementNS(s.namespace,s.tagName),h=s.properties;t(d,h);for(var f=s.children,p=0;p<f.length;p++){var g=a(f[p],l);g&&d.appendChild(g)}return d},iQ}(),r=yQ(),i=wQ();function o(t,n,i){var o=function(e){var t=[];for(var n in e)"a"!==n&&t.push(Number(n));return t}(n);if(0===o.length)return t;var s=r(t,n.a,o),l=t.ownerDocument;i.document||l===e||(i.document=l);for(var c=0;c<o.length;c++){var u=o[c];t=a(t,s[u],n[u],i)}return t}function a(e,n,r,o){if(!n)return e;var a;if(t(r))for(var s=0;s<r.length;s++)a=i(r[s],n,o),n===e&&(e=a);else a=i(r,n,o),n===e&&(e=a);return e}return hQ=function e(t,r,i){return(i=i||{}).patch=i.patch&&i.patch!==e?i.patch:o,i.render=i.render||n,i.patch(t,r,i)},hQ}var xQ,EQ,SQ,CQ,TQ,kQ,OQ=i(function(){if(gQ)return pQ;gQ=1;var e=_Q();return pQ=e}()),MQ=function(){return mc(function e(t,n,r){ua(this,e),this.options={newObj:t,oldObj:n,getElement:r}},[{key:"doDiff",value:function(){var e=this.findSnakes(this.options.newObj,this.options.oldObj);return this.assembleResult(e,this.options.newObj,this.options.oldObj)}},{key:"getElement",value:function(e,t){return"function"==typeof this.options.getElement?this.options.getElement(e,t):e[t]}},{key:"findSnakes",value:function(e,t){for(var n=e.length||0,r=t.length||0,i=n+r,o={1:0},a={0:{1:0}},s=0;s<=i;s++){for(var l={},c=-s;c<=s;c+=2){for(var u=c===-s||c!==s&&o[c-1]<o[c+1],d=o[u?c+1:c-1],h=u?d:d+1,f=h,p=h-c;f<r&&p<n&&this.getElement(t,f)===this.getElement(e,p);)f+=1,p+=1;if(o[c]=f,l[c]=f,f>=r&&p>=n)return a[s]=l,this.$backtraceSnakes(a,n,r,s)}a[s]=l}return[]}},{key:"$backtraceSnakes",value:function(e,t,n,r){for(var i=[],o={x:n,y:t},a=r;a>0;a--){var s=e[a],l=e[a-1],c=o.x-o.y,u=s[c],d=c===-a||c!==a&&l[c+1]>l[c-1],h=d?c+1:c-1,f=l[h],p=f-h,g=d?f:f+1;i.unshift({xStart:f,xMid:g,xEnd:u}),o.x=f,o.y=p}return i}},{key:"assembleResult",value:function(e,t,n){var r,i=this,o="color: gray",a="",s=[],l=0,c=[],u={},d={},h={};return gf(e).call(e,function(e,r){var f=e.xStart;if(0===r&&0!==e.xStart)for(var p=0;p<e.xStart;p++)a+="%c".concat(i.getElement(n,p),", "),s.push(o),l+=1;e.xMid-e.xStart==1?(u={type:"delete",oldIndex:e.xStart,newIndex:0},"delete"===d.type&&d.oldIndex===u.oldIndex-1&&(h=h?d:h),c.push(u),d=u,a+="%c".concat(i.getElement(n,e.xStart),", "),s.push("color: red"),f=e.xMid):(u={type:"insert",oldIndex:e.xStart,newIndex:l},"delete"===d.type&&d.oldIndex===u.oldIndex-1?(c.pop(),u={type:"update",oldIndex:(h=h?d:h).oldIndex,newIndex:l},s.push("color: blue")):s.push("color: green"),h={},c.push(u),d=u,a+="%c".concat(i.getElement(t,l),", "),l+=1);for(var g=0;g<e.xEnd-f;g++)a+="%c".concat(i.getElement(n,f+g),", "),s.push(o),l+=1}),jC.log.apply(jC,Xu(r=[a]).call(r,s)),c}}])}();function IQ(){if(EQ)return xQ;EQ=1;var e=S(),t=Et(),n=P(),r=vt(),i=t("iterator");return xQ=!e(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,o=new URLSearchParams("a=1&a=2&b=3"),a="";return e.pathname="c%20d",t.forEach(function(e,n){t.delete("b"),a+=n+e}),o.delete("a",2),o.delete("b",void 0),r&&(!e.toJSON||!o.has("a",1)||o.has("a",2)||!o.has("a",void 0)||o.has("b"))||!t.size&&(r||!n)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==a||"x"!==new URL("http://x",void 0).host}),xQ}function DQ(){if(CQ)return SQ;CQ=1;var e=ln(),t=Math.floor,n=function(r,i){var o=r.length;if(o<8)for(var a,s,l=1;l<o;){for(s=l,a=r[l];s&&i(r[s-1],a)>0;)r[s]=r[--s];s!==l++&&(r[s]=a)}else for(var c=t(o/2),u=n(e(r,0,c),i),d=n(e(r,c),i),h=u.length,f=d.length,p=0,g=0;p<h||g<f;)r[p+g]=p<h&&g<f?i(u[p],d[g])<=0?u[p++]:d[g++]:p<h?u[p++]:d[g++];return r};return SQ=n}var NQ,RQ,LQ,BQ,PQ={};function FQ(){if(RQ)return NQ;RQ=1;var e=k(),t=2147483647,n=/[^\0-\u007E]/,r=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",o=RangeError,a=e(r.exec),s=Math.floor,l=String.fromCharCode,c=e("".charCodeAt),u=e([].join),d=e([].push),h=e("".replace),f=e("".split),p=e("".toLowerCase),g=function(e){return e+22+75*(e<26)},m=function(e,t,n){var r=0;for(e=n?s(e/700):e>>1,e+=s(e/t);e>455;)e=s(e/35),r+=36;return s(r+36*e/(e+38))},v=function(e){var n=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=c(e,n++);if(i>=55296&&i<=56319&&n<r){var o=c(e,n++);56320==(64512&o)?d(t,((1023&i)<<10)+(1023&o)+65536):(d(t,i),n--)}else d(t,i)}return t}(e);var r,a,h=e.length,f=128,p=0,v=72;for(r=0;r<e.length;r++)(a=e[r])<128&&d(n,l(a));var A=n.length,b=A;for(A&&d(n,"-");b<h;){var y=t;for(r=0;r<e.length;r++)(a=e[r])>=f&&a<y&&(y=a);var w=b+1;if(y-f>s((t-p)/w))throw new o(i);for(p+=(y-f)*w,f=y,r=0;r<e.length;r++){if((a=e[r])<f&&++p>t)throw new o(i);if(a===f){for(var _=p,x=36;;){var E=x<=v?1:x>=v+26?26:x-v;if(_<E)break;var S=_-E,C=36-E;d(n,l(g(E+S%C))),_=s(S/C),x+=36}d(n,l(g(_))),v=m(p,w,b===A),p=0,b++}}p++,f++}return u(n,"")};return NQ=function(e){var t,i,o=[],s=f(h(p(e),r,"."),".");for(t=0;t<s.length;t++)i=s[t],d(o,a(n,i)?"xn--"+v(i):i);return u(o,".")},NQ}function $Q(){if(LQ)return PQ;LQ=1,Nl();var e,t=sn(),n=P(),r=IQ(),i=E(),o=It(),a=k(),s=Ir(),l=Dr(),c=xS(),u=_t(),d=Ed(),h=Fy(),f=ln(),p=Dl().codeAt,g=FQ(),m=vr(),v=ai(),A=nd(),b=function(){if(kQ)return TQ;kQ=1,Ps();var e=sn(),t=E(),n=TS(),r=F(),i=k(),o=P(),a=IQ(),s=Ir(),l=Dr(),c=OO(),u=ai(),d=Ms(),h=li(),f=xS(),p=I(),g=_t(),m=It(),v=dn(),A=rn(),b=Oe(),y=vr(),w=cr(),_=Ee(),x=Py(),S=hb(),C=Bs(),T=nd(),O=Et(),M=DQ(),D=O("iterator"),N="URLSearchParams",R=N+"Iterator",L=h.set,B=h.getterFor(N),$=h.getterFor(R),j=n("fetch"),H=n("Request"),U=n("Headers"),Q=H&&H.prototype,z=U&&U.prototype,W=t.RegExp,G=t.TypeError,V=t.decodeURIComponent,K=t.encodeURIComponent,Y=i("".charAt),q=i([].join),X=i([].push),J=i("".replace),Z=i([].shift),ee=i([].splice),te=i("".split),ne=i("".slice),re=/\+/g,ie=Array(4),oe=function(e){return ie[e-1]||(ie[e-1]=W("((?:%[\\da-f]{2}){"+e+"})","gi"))},ae=function(e){try{return V(e)}catch(t){return e}},se=function(e){var t=J(e,re," "),n=4;try{return V(t)}catch(e){for(;n;)t=J(t,oe(n--),ae);return t}},le=/[!'()~]|%20/g,ce={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ue=function(e){return ce[e]},de=function(e){return J(K(e),le,ue)},he=d(function(e,t){L(this,{type:R,target:B(e).entries,index:0,kind:t})},N,function(){var e=$(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,C(void 0,!0);var r=t[n];switch(e.kind){case"keys":return C(r.key,!1);case"values":return C(r.value,!1)}return C([r.key,r.value],!1)},!0),fe=function(e){this.entries=[],this.url=null,void 0!==e&&(b(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Y(e,0)?ne(e,1):e:y(e)))};fe.prototype={type:N,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,i,o,a,s,l,c=this.entries,u=S(e);if(u)for(n=(t=x(e,u)).next;!(i=r(n,t)).done;){if(a=(o=x(A(i.value))).next,(s=r(a,o)).done||(l=r(a,o)).done||!r(a,o).done)throw new G("Expected sequence with length 2");X(c,{key:y(s.value),value:y(l.value)})}else for(var d in e)g(e,d)&&X(c,{key:d,value:y(e[d])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,i=te(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(n=te(t,"="),X(r,{key:se(Z(n)),value:se(q(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],X(n,de(e.key)+"="+de(e.value));return q(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var pe=function(){f(this,ge);var e=L(this,new fe(arguments.length>0?arguments[0]:void 0));o||(this.size=e.entries.length)},ge=pe.prototype;if(c(ge,{append:function(e,t){var n=B(this);T(arguments.length,2),X(n.entries,{key:y(e),value:y(t)}),o||this.length++,n.updateURL()},delete:function(e){for(var t=B(this),n=T(arguments.length,1),r=t.entries,i=y(e),a=n<2?void 0:arguments[1],s=void 0===a?a:y(a),l=0;l<r.length;){var c=r[l];if(c.key!==i||void 0!==s&&c.value!==s)l++;else if(ee(r,l,1),void 0!==s)break}o||(this.size=r.length),t.updateURL()},get:function(e){var t=B(this).entries;T(arguments.length,1);for(var n=y(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=B(this).entries;T(arguments.length,1);for(var n=y(e),r=[],i=0;i<t.length;i++)t[i].key===n&&X(r,t[i].value);return r},has:function(e){for(var t=B(this).entries,n=T(arguments.length,1),r=y(e),i=n<2?void 0:arguments[1],o=void 0===i?i:y(i),a=0;a<t.length;){var s=t[a++];if(s.key===r&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var n=B(this);T(arguments.length,1);for(var r,i=n.entries,a=!1,s=y(e),l=y(t),c=0;c<i.length;c++)(r=i[c]).key===s&&(a?ee(i,c--,1):(a=!0,r.value=l));a||X(i,{key:s,value:l}),o||(this.size=i.length),n.updateURL()},sort:function(){var e=B(this);M(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=B(this).entries,r=m(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new he(this,"keys")},values:function(){return new he(this,"values")},entries:function(){return new he(this,"entries")}},{enumerable:!0}),s(ge,D,ge.entries,{name:"entries"}),s(ge,"toString",function(){return B(this).serialize()},{enumerable:!0}),o&&l(ge,"size",{get:function(){return B(this).entries.length},configurable:!0,enumerable:!0}),u(pe,N),e({global:!0,constructor:!0,forced:!a},{URLSearchParams:pe}),!a&&p(U)){var me=i(z.has),ve=i(z.set),Ae=function(e){if(b(e)){var t,n=e.body;if(v(n)===N)return t=e.headers?new U(e.headers):new U,me(t,"content-type")||ve(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),w(e,{body:_(0,y(n)),headers:_(0,t)})}return e};if(p(j)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return j(e,arguments.length>1?Ae(arguments[1]):{})}}),p(H)){var be=function(e){return f(this,Q),new H(e,arguments.length>1?Ae(arguments[1]):{})};Q.constructor=be,be.prototype=Q,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:be})}}return TQ={URLSearchParams:pe,getState:B}}(),y=li(),w=y.set,_=y.getterFor("URL"),x=b.URLSearchParams,S=b.getState,C=i.URL,T=i.TypeError,O=i.parseInt,M=Math.floor,D=Math.pow,N=a("".charAt),R=a(/./.exec),L=a([].join),B=a(1..toString),$=a([].pop),j=a([].push),H=a("".replace),U=a([].shift),Q=a("".split),z=a("".slice),W=a("".toLowerCase),G=a([].unshift),V="Invalid scheme",K="Invalid host",Y="Invalid port",q=/[a-z]/i,X=/[\d+-.a-z]/i,J=/\d/,Z=/^0x/i,ee=/^[0-7]+$/,te=/^\d+$/,ne=/^[\da-f]+$/i,re=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ie=/[\0\t\n\r #/:<>?@[\\\]^|]/,oe=/^[\u0000-\u0020]+/,ae=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,se=/[\t\n\r]/g,le=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)G(t,e%256),e=M(e/256);return L(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=B(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ce={},ue=d({},ce,{" ":1,'"':1,"<":1,">":1,"`":1}),de=d({},ue,{"#":1,"?":1,"{":1,"}":1}),he=d({},de,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(e,t){var n=p(e,0);return n>32&&n<127&&!u(t,e)?e:encodeURIComponent(e)},pe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ge=function(e,t){var n;return 2===e.length&&R(q,N(e,0))&&(":"===(n=N(e,1))||!t&&"|"===n)},me=function(e){var t;return e.length>1&&ge(z(e,0,2))&&(2===e.length||"/"===(t=N(e,2))||"\\"===t||"?"===t||"#"===t)},ve=function(e){return"."===e||"%2e"===W(e)},Ae={},be={},ye={},we={},_e={},xe={},Se={},Ce={},Te={},ke={},Me={},Ie={},De={},Ne={},Re={},Le={},Be={},Pe={},Fe={},$e={},je={},He=function(e,t,n){var r,i,o,a=m(e);if(t){if(i=this.parse(a))throw new T(i);this.searchParams=null}else{if(void 0!==n&&(r=new He(n,!0)),i=this.parse(a,null,r))throw new T(i);(o=S(new x)).bindURL(this),this.searchParams=o}};He.prototype={type:"URL",parse:function(t,n,r){var i,o,a,s,l,c=this,d=n||Ae,p=0,g="",v=!1,A=!1,b=!1;for(t=m(t),n||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=H(t,oe,""),t=H(t,ae,"$1")),t=H(t,se,""),i=h(t);p<=i.length;){switch(o=i[p],d){case Ae:if(!o||!R(q,o)){if(n)return V;d=ye;continue}g+=W(o),d=be;break;case be:if(o&&(R(X,o)||"+"===o||"-"===o||"."===o))g+=W(o);else{if(":"!==o){if(n)return V;g="",d=ye,p=0;continue}if(n&&(c.isSpecial()!==u(pe,g)||"file"===g&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=g,n)return void(c.isSpecial()&&pe[c.scheme]===c.port&&(c.port=null));g="","file"===c.scheme?d=Ne:c.isSpecial()&&r&&r.scheme===c.scheme?d=we:c.isSpecial()?d=Ce:"/"===i[p+1]?(d=_e,p++):(c.cannotBeABaseURL=!0,j(c.path,""),d=Fe)}break;case ye:if(!r||r.cannotBeABaseURL&&"#"!==o)return V;if(r.cannotBeABaseURL&&"#"===o){c.scheme=r.scheme,c.path=f(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,d=je;break}d="file"===r.scheme?Ne:xe;continue;case we:if("/"!==o||"/"!==i[p+1]){d=xe;continue}d=Te,p++;break;case _e:if("/"===o){d=ke;break}d=Pe;continue;case xe:if(c.scheme=r.scheme,o===e)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=f(r.path),c.query=r.query;else if("/"===o||"\\"===o&&c.isSpecial())d=Se;else if("?"===o)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=f(r.path),c.query="",d=$e;else{if("#"!==o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=f(r.path),c.path.length--,d=Pe;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=f(r.path),c.query=r.query,c.fragment="",d=je}break;case Se:if(!c.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,d=Pe;continue}d=ke}else d=Te;break;case Ce:if(d=Te,"/"!==o||"/"!==N(g,p+1))continue;p++;break;case Te:if("/"!==o&&"\\"!==o){d=ke;continue}break;case ke:if("@"===o){v&&(g="%40"+g),v=!0,a=h(g);for(var y=0;y<a.length;y++){var w=a[y];if(":"!==w||b){var _=fe(w,he);b?c.password+=_:c.username+=_}else b=!0}g=""}else if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(v&&""===g)return"Invalid authority";p-=h(g).length+1,g="",d=Me}else g+=o;break;case Me:case Ie:if(n&&"file"===c.scheme){d=Le;continue}if(":"!==o||A){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(c.isSpecial()&&""===g)return K;if(n&&""===g&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(g))return s;if(g="",d=Be,n)return;continue}"["===o?A=!0:"]"===o&&(A=!1),g+=o}else{if(""===g)return K;if(s=c.parseHost(g))return s;if(g="",d=De,n===Ie)return}break;case De:if(!R(J,o)){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()||n){if(""!==g){var x=O(g,10);if(x>65535)return Y;c.port=c.isSpecial()&&x===pe[c.scheme]?null:x,g=""}if(n)return;d=Be;continue}return Y}g+=o;break;case Ne:if(c.scheme="file","/"===o||"\\"===o)d=Re;else{if(!r||"file"!==r.scheme){d=Pe;continue}switch(o){case e:c.host=r.host,c.path=f(r.path),c.query=r.query;break;case"?":c.host=r.host,c.path=f(r.path),c.query="",d=$e;break;case"#":c.host=r.host,c.path=f(r.path),c.query=r.query,c.fragment="",d=je;break;default:me(L(f(i,p),""))||(c.host=r.host,c.path=f(r.path),c.shortenPath()),d=Pe;continue}}break;case Re:if("/"===o||"\\"===o){d=Le;break}r&&"file"===r.scheme&&!me(L(f(i,p),""))&&(ge(r.path[0],!0)?j(c.path,r.path[0]):c.host=r.host),d=Pe;continue;case Le:if(o===e||"/"===o||"\\"===o||"?"===o||"#"===o){if(!n&&ge(g))d=Pe;else if(""===g){if(c.host="",n)return;d=Be}else{if(s=c.parseHost(g))return s;if("localhost"===c.host&&(c.host=""),n)return;g="",d=Be}continue}g+=o;break;case Be:if(c.isSpecial()){if(d=Pe,"/"!==o&&"\\"!==o)continue}else if(n||"?"!==o)if(n||"#"!==o){if(o!==e&&(d=Pe,"/"!==o))continue}else c.fragment="",d=je;else c.query="",d=$e;break;case Pe:if(o===e||"/"===o||"\\"===o&&c.isSpecial()||!n&&("?"===o||"#"===o)){if(".."===(l=W(l=g))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(c.shortenPath(),"/"===o||"\\"===o&&c.isSpecial()||j(c.path,"")):ve(g)?"/"===o||"\\"===o&&c.isSpecial()||j(c.path,""):("file"===c.scheme&&!c.path.length&&ge(g)&&(c.host&&(c.host=""),g=N(g,0)+":"),j(c.path,g)),g="","file"===c.scheme&&(o===e||"?"===o||"#"===o))for(;c.path.length>1&&""===c.path[0];)U(c.path);"?"===o?(c.query="",d=$e):"#"===o&&(c.fragment="",d=je)}else g+=fe(o,de);break;case Fe:"?"===o?(c.query="",d=$e):"#"===o?(c.fragment="",d=je):o!==e&&(c.path[0]+=fe(o,ce));break;case $e:n||"#"!==o?o!==e&&("'"===o&&c.isSpecial()?c.query+="%27":c.query+="#"===o?"%23":fe(o,ce)):(c.fragment="",d=je);break;case je:o!==e&&(c.fragment+=fe(o,ue))}p++}},parseHost:function(e){var t,n,r;if("["===N(e,0)){if("]"!==N(e,e.length-1))return K;if(t=function(e){var t,n,r,i,o,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,h=function(){return N(e,d)};if(":"===h()){if(":"!==N(e,1))return;d+=2,u=++c}for(;h();){if(8===c)return;if(":"!==h()){for(t=n=0;n<4&&R(ne,h());)t=16*t+O(h(),16),d++,n++;if("."===h()){if(0===n)return;if(d-=n,c>6)return;for(r=0;h();){if(i=null,r>0){if(!("."===h()&&r<4))return;d++}if(!R(J,h()))return;for(;R(J,h());){if(o=O(h(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;d++}l[c]=256*l[c]+i,2!=++r&&4!==r||c++}if(4!==r)return;break}if(":"===h()){if(d++,!h())return}else if(h())return;l[c++]=t}else{if(null!==u)return;d++,u=++c}}if(null!==u)for(a=c-u,c=7;0!==c&&a>0;)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s;else if(8!==c)return;return l}(z(e,1,-1)),!t)return K;this.host=t}else if(this.isSpecial()){if(e=g(e),R(re,e))return K;if(t=function(e){var t,n,r,i,o,a,s,l=Q(e,".");if(l.length&&""===l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(n=[],r=0;r<t;r++){if(""===(i=l[r]))return e;if(o=10,i.length>1&&"0"===N(i,0)&&(o=R(Z,i)?16:8,i=z(i,8===o?1:2)),""===i)a=0;else{if(!R(10===o?te:8===o?ee:ne,i))return e;a=O(i,o)}j(n,a)}for(r=0;r<t;r++)if(a=n[r],r===t-1){if(a>=D(256,5-t))return null}else if(a>255)return null;for(s=$(n),r=0;r<n.length;r++)s+=n[r]*D(256,3-r);return s}(e),null===t)return K;this.host=t}else{if(R(ie,e))return K;for(t="",n=h(e),r=0;r<n.length;r++)t+=fe(n[r],ce);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return u(pe,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&ge(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=le(i),null!==o&&(c+=":"+o)):"file"===t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+L(a,"/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},setHref:function(e){var t=this.parse(e);if(t)throw new T(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new Ue(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+le(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(m(e)+":",Ae)},getUsername:function(){return this.username},setUsername:function(e){var t=h(m(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=fe(t[n],he)}},getPassword:function(){return this.password},setPassword:function(e){var t=h(m(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=fe(t[n],he)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?le(e):le(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Me)},getHostname:function(){var e=this.host;return null===e?"":le(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ie)},getPort:function(){var e=this.port;return null===e?"":m(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=m(e))?this.port=null:this.parse(e,De))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+L(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Be))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=m(e))?this.query=null:("?"===N(e,0)&&(e=z(e,1)),this.query="",this.parse(e,$e)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=m(e))?("#"===N(e,0)&&(e=z(e,1)),this.fragment="",this.parse(e,je)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ue=function(e){var t=c(this,Qe),r=A(arguments.length,1)>1?arguments[1]:void 0,i=w(t,new He(e,!1,r));n||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},Qe=Ue.prototype,ze=function(e,t){return{get:function(){return _(this)[e]()},set:t&&function(e){return _(this)[t](e)},configurable:!0,enumerable:!0}};if(n&&(l(Qe,"href",ze("serialize","setHref")),l(Qe,"origin",ze("getOrigin")),l(Qe,"protocol",ze("getProtocol","setProtocol")),l(Qe,"username",ze("getUsername","setUsername")),l(Qe,"password",ze("getPassword","setPassword")),l(Qe,"host",ze("getHost","setHost")),l(Qe,"hostname",ze("getHostname","setHostname")),l(Qe,"port",ze("getPort","setPort")),l(Qe,"pathname",ze("getPathname","setPathname")),l(Qe,"search",ze("getSearch","setSearch")),l(Qe,"searchParams",ze("getSearchParams")),l(Qe,"hash",ze("getHash","setHash"))),s(Qe,"toJSON",function(){return _(this).serialize()},{enumerable:!0}),s(Qe,"toString",function(){return _(this).serialize()},{enumerable:!0}),C){var We=C.createObjectURL,Ge=C.revokeObjectURL;We&&s(Ue,"createObjectURL",o(We,C)),Ge&&s(Ue,"revokeObjectURL",o(Ge,C))}return v(Ue,"URL"),t({global:!0,constructor:!0,forced:!r,sham:!n},{URL:Ue}),PQ}var jQ,HQ,UQ,QQ,zQ,WQ,GQ,VQ,KQ={},YQ={};function qQ(){return QQ?UQ:(QQ=1,BQ||(BQ=1,$Q()),function(){if(jQ)return KQ;jQ=1;var e=sn(),t=Ie(),n=S(),r=nd(),i=vr(),o=IQ(),a=t("URL"),s=o&&n(function(){a.canParse()}),l=n(function(){return 1!==a.canParse.length});e({target:"URL",stat:!0,forced:!s||l},{canParse:function(e){var t=r(arguments.length,1),n=i(e),o=t<2||void 0===arguments[1]?void 0:i(arguments[1]);try{return!!new a(n,o)}catch(e){return!1}}})}(),function(){if(HQ)return YQ;HQ=1;var e=sn(),t=Ie(),n=nd(),r=vr(),i=IQ(),o=t("URL");e({target:"URL",stat:!0,forced:!i},{parse:function(e){var t=n(arguments.length,1),i=r(e),a=t<2||void 0===arguments[1]?void 0:r(arguments[1]);try{return new o(i,a)}catch(e){return null}}})}(),UQ=Me().URL)}function XQ(){return WQ?zQ:(WQ=1,zQ=qQ())}var JQ,ZQ,ez,tz,nz,rz,iz=i(VQ?GQ:(VQ=1,GQ=XQ())),oz={exports:{}},az=(JQ||(JQ=1,oz.exports=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};function t(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};function r(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(t,n){function o(e){try{s(r.next(e))}catch(e){n(e)}}function a(e){try{s(r.throw(e))}catch(e){n(e)}}function s(e){e.done?t(e.value):i(e.value).then(o,a)}s((r=r.apply(e,[])).next())})}function i(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function o(e,t,n){if(2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||t)}for(var a=function(){function e(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}return e.prototype.add=function(t,n,r,i){return new e(this.left+t,this.top+n,this.width+r,this.height+i)},e.fromClientRect=function(t,n){return new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height)},e.fromDOMRectList=function(t,n){var r=Array.from(n).find(function(e){return 0!==e.width});return r?new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),s=function(e,t){return a.fromClientRect(e,t.getBoundingClientRect())},l=function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),i=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new a(0,0,r,i)},c=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t},u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],i=-1,o="";++i<n;){var a=e[i];a<=65535?r.push(a):(a-=65536,r.push(55296+(a>>10),a%1024+56320)),(i+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h="undefined"==typeof Uint8Array?[]:new Uint8Array(256),f=0;f<d.length;f++)h[d.charCodeAt(f)]=f;for(var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g="undefined"==typeof Uint8Array?[]:new Uint8Array(256),m=0;m<p.length;m++)g[p.charCodeAt(m)]=m;for(var v=function(e){var t,n,r,i,o,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(a):new Array(a),u=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<s;t+=4)n=g[e.charCodeAt(t)],r=g[e.charCodeAt(t+1)],i=g[e.charCodeAt(t+2)],o=g[e.charCodeAt(t+3)],u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|i>>2,u[l++]=(3&i)<<6|63&o;return c},A=function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n},b=function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n},y=5,w=11,_=2,x=65536>>y,E=(1<<y)-1,S=x+(1024>>y)+32,C=65536>>w,T=(1<<w-y)-1,k=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},O=function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))},M=function(e,t){var n=v(e),r=Array.isArray(n)?b(n):new Uint32Array(n),i=Array.isArray(n)?A(n):new Uint16Array(n),o=24,a=k(i,o/2,r[4]/2),s=2===r[5]?k(i,(o+r[4])/2):O(r,Math.ceil((o+r[4])/4));return new I(r[0],r[1],r[2],r[3],a,s)},I=function(){function e(e,t,n,r,i,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=o}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>y])<<_)+(e&E),this.data[t];if(e<=65535)return t=((t=this.index[x+(e-55296>>y)])<<_)+(e&E),this.data[t];if(e<this.highStart)return t=S-C+(e>>w),t=this.index[t],t+=e>>y&T,t=((t=this.index[t])<<_)+(e&E),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N="undefined"==typeof Uint8Array?[]:new Uint8Array(256),R=0;R<D.length;R++)N[D.charCodeAt(R)]=R;var L=50,B=1,P=2,F=3,$=4,j=5,H=7,U=8,Q=9,z=10,W=11,G=12,V=13,K=14,Y=15,q=16,X=17,J=18,Z=19,ee=20,te=21,ne=22,re=23,ie=24,oe=25,ae=26,se=27,le=28,ce=29,ue=30,de=31,he=32,fe=33,pe=34,ge=35,me=36,ve=37,Ae=38,be=39,ye=40,we=41,_e=42,xe=43,Ee=[9001,65288],Se="!",Ce="×",Te="÷",ke=M("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="),Oe=[ue,me],Me=[B,P,F,j],Ie=[z,U],De=[se,ae],Ne=Me.concat(Ie),Re=[Ae,be,ye,pe,ge],Le=[Y,V],Be=function(e,t){void 0===t&&(t="strict");var n=[],r=[],i=[];return e.forEach(function(e,o){var a=ke.get(e);if(a>L?(i.push(!0),a-=L):i.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(o),n.push(q);if(a===$||a===W){if(0===o)return r.push(o),n.push(ue);var s=n[o-1];return-1===Ne.indexOf(s)?(r.push(r[o-1]),n.push(s)):(r.push(o),n.push(ue))}return r.push(o),a===de?n.push("strict"===t?te:ve):a===_e||a===ce?n.push(ue):a===xe?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(ve):n.push(ue):void n.push(a)}),[r,n,i]},Pe=function(e,t,n,r){var i=r[n];if(Array.isArray(e)?-1!==e.indexOf(i):e===i)for(var o=n;o<=r.length;){if((l=r[++o])===t)return!0;if(l!==z)break}if(i===z)for(o=n;o>0;){var a=r[--o];if(Array.isArray(e)?-1!==e.indexOf(a):e===a)for(var s=n;s<=r.length;){var l;if((l=r[++s])===t)return!0;if(l!==z)break}if(a!==z)break}return!1},Fe=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r!==z)return r;n--}return 0},$e=function(e,t,n,r,i){if(0===n[r])return Ce;var o=r-1;if(Array.isArray(i)&&!0===i[o])return Ce;var a=o-1,s=o+1,l=t[o],c=a>=0?t[a]:0,u=t[s];if(l===P&&u===F)return Ce;if(-1!==Me.indexOf(l))return Se;if(-1!==Me.indexOf(u))return Ce;if(-1!==Ie.indexOf(u))return Ce;if(Fe(o,t)===U)return Te;if(ke.get(e[o])===W)return Ce;if((l===he||l===fe)&&ke.get(e[s])===W)return Ce;if(l===H||u===H)return Ce;if(l===Q)return Ce;if(-1===[z,V,Y].indexOf(l)&&u===Q)return Ce;if(-1!==[X,J,Z,ie,le].indexOf(u))return Ce;if(Fe(o,t)===ne)return Ce;if(Pe(re,ne,o,t))return Ce;if(Pe([X,J],te,o,t))return Ce;if(Pe(G,G,o,t))return Ce;if(l===z)return Te;if(l===re||u===re)return Ce;if(u===q||l===q)return Te;if(-1!==[V,Y,te].indexOf(u)||l===K)return Ce;if(c===me&&-1!==Le.indexOf(l))return Ce;if(l===le&&u===me)return Ce;if(u===ee)return Ce;if(-1!==Oe.indexOf(u)&&l===oe||-1!==Oe.indexOf(l)&&u===oe)return Ce;if(l===se&&-1!==[ve,he,fe].indexOf(u)||-1!==[ve,he,fe].indexOf(l)&&u===ae)return Ce;if(-1!==Oe.indexOf(l)&&-1!==De.indexOf(u)||-1!==De.indexOf(l)&&-1!==Oe.indexOf(u))return Ce;if(-1!==[se,ae].indexOf(l)&&(u===oe||-1!==[ne,Y].indexOf(u)&&t[s+1]===oe)||-1!==[ne,Y].indexOf(l)&&u===oe||l===oe&&-1!==[oe,le,ie].indexOf(u))return Ce;if(-1!==[oe,le,ie,X,J].indexOf(u))for(var d=o;d>=0;){if((h=t[d])===oe)return Ce;if(-1===[le,ie].indexOf(h))break;d--}if(-1!==[se,ae].indexOf(u))for(d=-1!==[X,J].indexOf(l)?a:o;d>=0;){var h;if((h=t[d])===oe)return Ce;if(-1===[le,ie].indexOf(h))break;d--}if(Ae===l&&-1!==[Ae,be,pe,ge].indexOf(u)||-1!==[be,pe].indexOf(l)&&-1!==[be,ye].indexOf(u)||-1!==[ye,ge].indexOf(l)&&u===ye)return Ce;if(-1!==Re.indexOf(l)&&-1!==[ee,ae].indexOf(u)||-1!==Re.indexOf(u)&&l===se)return Ce;if(-1!==Oe.indexOf(l)&&-1!==Oe.indexOf(u))return Ce;if(l===ie&&-1!==Oe.indexOf(u))return Ce;if(-1!==Oe.concat(oe).indexOf(l)&&u===ne&&-1===Ee.indexOf(e[s])||-1!==Oe.concat(oe).indexOf(u)&&l===J)return Ce;if(l===we&&u===we){for(var f=n[o],p=1;f>0&&t[--f]===we;)p++;if(p%2!=0)return Ce}return l===he&&u===fe?Ce:Te},je=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=Be(e,t.lineBreak),r=n[0],i=n[1],o=n[2];"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(i=i.map(function(e){return-1!==[oe,ue,_e].indexOf(e)?ve:e}));var a="keep-all"===t.wordBreak?o.map(function(t,n){return t&&e[n]>=19968&&e[n]<=40959}):void 0;return[r,i,a]},He=function(){function e(e,t,n,r){this.codePoints=e,this.required=t===Se,this.start=n,this.end=r}return e.prototype.slice=function(){return u.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),Ue=function(e,t){var n=c(e),r=je(n,t),i=r[0],o=r[1],a=r[2],s=n.length,l=0,u=0;return{next:function(){if(u>=s)return{done:!0,value:null};for(var e=Ce;u<s&&(e=$e(n,o,i,++u,a))===Ce;);if(e!==Ce||u===s){var t=new He(n,e,l,u);return l=u,{value:t,done:!1}}return{done:!0,value:null}}}},Qe=1,ze=2,We=4,Ge=8,Ve=10,Ke=47,Ye=92,qe=9,Xe=32,Je=34,Ze=61,et=35,tt=36,nt=37,rt=39,it=40,ot=41,at=95,st=45,lt=33,ct=60,ut=62,dt=64,ht=91,ft=93,pt=61,gt=123,mt=63,vt=125,At=124,bt=126,yt=128,wt=65533,_t=42,xt=43,Et=44,St=58,Ct=59,Tt=46,kt=0,Ot=8,Mt=11,It=14,Dt=31,Nt=127,Rt=-1,Lt=48,Bt=97,Pt=101,Ft=102,$t=117,jt=122,Ht=65,Ut=69,Qt=70,zt=85,Wt=90,Gt=function(e){return e>=Lt&&e<=57},Vt=function(e){return e>=55296&&e<=57343},Kt=function(e){return Gt(e)||e>=Ht&&e<=Qt||e>=Bt&&e<=Ft},Yt=function(e){return e>=Bt&&e<=jt},qt=function(e){return e>=Ht&&e<=Wt},Xt=function(e){return Yt(e)||qt(e)},Jt=function(e){return e>=yt},Zt=function(e){return e===Ve||e===qe||e===Xe},en=function(e){return Xt(e)||Jt(e)||e===at},tn=function(e){return en(e)||Gt(e)||e===st},nn=function(e){return e>=kt&&e<=Ot||e===Mt||e>=It&&e<=Dt||e===Nt},rn=function(e,t){return e===Ye&&t!==Ve},on=function(e,t,n){return e===st?en(t)||rn(t,n):!!en(e)||!(e!==Ye||!rn(e,t))},an=function(e,t,n){return e===xt||e===st?!!Gt(t)||t===Tt&&Gt(n):Gt(e===Tt?t:e)},sn=function(e){var t=0,n=1;e[t]!==xt&&e[t]!==st||(e[t]===st&&(n=-1),t++);for(var r=[];Gt(e[t]);)r.push(e[t++]);var i=r.length?parseInt(u.apply(void 0,r),10):0;e[t]===Tt&&t++;for(var o=[];Gt(e[t]);)o.push(e[t++]);var a=o.length,s=a?parseInt(u.apply(void 0,o),10):0;e[t]!==Ut&&e[t]!==Pt||t++;var l=1;e[t]!==xt&&e[t]!==st||(e[t]===st&&(l=-1),t++);for(var c=[];Gt(e[t]);)c.push(e[t++]);var d=c.length?parseInt(u.apply(void 0,c),10):0;return n*(i+s*Math.pow(10,-a))*Math.pow(10,l*d)},ln={type:2},cn={type:3},un={type:4},dn={type:13},hn={type:8},fn={type:21},pn={type:9},gn={type:10},mn={type:11},vn={type:12},An={type:14},bn={type:23},yn={type:1},wn={type:25},_n={type:24},xn={type:26},En={type:27},Sn={type:28},Cn={type:29},Tn={type:31},kn={type:32},On=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(c(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==kn;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case Je:return this.consumeStringToken(Je);case et:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(tn(t)||rn(n,r)){var i=on(t,n,r)?ze:Qe;return{type:5,value:this.consumeName(),flags:i}}break;case tt:if(this.peekCodePoint(0)===Ze)return this.consumeCodePoint(),dn;break;case rt:return this.consumeStringToken(rt);case it:return ln;case ot:return cn;case _t:if(this.peekCodePoint(0)===Ze)return this.consumeCodePoint(),An;break;case xt:if(an(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Et:return un;case st:var o=e,a=this.peekCodePoint(0),s=this.peekCodePoint(1);if(an(o,a,s))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(on(o,a,s))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(a===st&&s===ut)return this.consumeCodePoint(),this.consumeCodePoint(),_n;break;case Tt:if(an(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Ke:if(this.peekCodePoint(0)===_t)for(this.consumeCodePoint();;){var l=this.consumeCodePoint();if(l===_t&&(l=this.consumeCodePoint())===Ke)return this.consumeToken();if(l===Rt)return this.consumeToken()}break;case St:return xn;case Ct:return En;case ct:if(this.peekCodePoint(0)===lt&&this.peekCodePoint(1)===st&&this.peekCodePoint(2)===st)return this.consumeCodePoint(),this.consumeCodePoint(),wn;break;case dt:var c=this.peekCodePoint(0),d=this.peekCodePoint(1),h=this.peekCodePoint(2);if(on(c,d,h))return{type:7,value:this.consumeName()};break;case ht:return Sn;case Ye:if(rn(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case ft:return Cn;case pt:if(this.peekCodePoint(0)===Ze)return this.consumeCodePoint(),hn;break;case gt:return mn;case vt:return vn;case $t:case zt:var f=this.peekCodePoint(0),p=this.peekCodePoint(1);return f!==xt||!Kt(p)&&p!==mt||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case At:if(this.peekCodePoint(0)===Ze)return this.consumeCodePoint(),pn;if(this.peekCodePoint(0)===At)return this.consumeCodePoint(),fn;break;case bt:if(this.peekCodePoint(0)===Ze)return this.consumeCodePoint(),gn;break;case Rt:return kn}return Zt(e)?(this.consumeWhiteSpace(),Tn):Gt(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):en(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:u(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();Kt(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;t===mt&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n)return{type:30,start:parseInt(u.apply(void 0,e.map(function(e){return e===mt?Lt:e})),16),end:parseInt(u.apply(void 0,e.map(function(e){return e===mt?Qt:e})),16)};var r=parseInt(u.apply(void 0,e),16);if(this.peekCodePoint(0)===st&&Kt(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var i=[];Kt(t)&&i.length<6;)i.push(t),t=this.consumeCodePoint();return{type:30,start:r,end:parseInt(u.apply(void 0,i),16)}}return{type:30,start:r,end:r}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&this.peekCodePoint(0)===it?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===it?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Rt)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===rt||t===Je){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Rt||this.peekCodePoint(0)===ot)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),bn)}for(;;){var r=this.consumeCodePoint();if(r===Rt||r===ot)return{type:22,value:u.apply(void 0,e)};if(Zt(r))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Rt||this.peekCodePoint(0)===ot?(this.consumeCodePoint(),{type:22,value:u.apply(void 0,e)}):(this.consumeBadUrlRemnants(),bn);if(r===Je||r===rt||r===it||nn(r))return this.consumeBadUrlRemnants(),bn;if(r===Ye){if(!rn(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),bn;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;Zt(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===ot||e===Rt)return;rn(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t=5e4,n="";e>0;){var r=Math.min(t,e);n+=u.apply(void 0,this._value.splice(0,r)),e-=r}return this._value.shift(),n},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var r=this._value[n];if(r===Rt||void 0===r||r===e)return{type:0,value:t+=this.consumeStringSlice(n)};if(r===Ve)return this._value.splice(0,n),yn;if(r===Ye){var i=this._value[n+1];i!==Rt&&void 0!==i&&(i===Ve?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):rn(r,i)&&(t+=this.consumeStringSlice(n),t+=u(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=We,n=this.peekCodePoint(0);for(n!==xt&&n!==st||e.push(this.consumeCodePoint());Gt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(n===Tt&&Gt(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=Ge;Gt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((n===Ut||n===Pt)&&((r===xt||r===st)&&Gt(i)||Gt(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=Ge;Gt(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[sn(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),o=this.peekCodePoint(2);return on(r,i,o)?{type:15,number:t,flags:n,unit:this.consumeName()}:r===nt?(this.consumeCodePoint(),{type:16,number:t,flags:n}):{type:17,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Kt(e)){for(var t=u(e);Kt(this.peekCodePoint(0))&&t.length<6;)t+=u(this.consumeCodePoint());Zt(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||Vt(n)||n>1114111?wt:n}return e===Rt?wt:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(tn(t))e+=u(t);else{if(!rn(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=u(this.consumeEscapedCodePoint())}}},e}(),Mn=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new On;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();31===e.type;)e=this.consumeToken();if(32===e.type)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(31===e.type);if(32===e.type)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(32===t.type)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(32===n.type||$n(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?kn:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),In=function(e){return 15===e.type},Dn=function(e){return 17===e.type},Nn=function(e){return 20===e.type},Rn=function(e){return 0===e.type},Ln=function(e,t){return Nn(e)&&e.value===t},Bn=function(e){return 31!==e.type},Pn=function(e){return 31!==e.type&&4!==e.type},Fn=function(e){var t=[],n=[];return e.forEach(function(e){if(4===e.type){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}31!==e.type&&n.push(e)}),n.length&&t.push(n),t},$n=function(e,t){return 11===t&&12===e.type||28===t&&29===e.type||2===t&&3===e.type},jn=function(e){return 17===e.type||15===e.type},Hn=function(e){return 16===e.type||jn(e)},Un=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Qn={type:17,number:0,flags:We},zn={type:16,number:50,flags:We},Wn={type:16,number:100,flags:We},Gn=function(e,t,n){var r=e[0],i=e[1];return[Vn(r,t),Vn(void 0!==i?i:r,n)]},Vn=function(e,t){if(16===e.type)return e.number/100*t;if(In(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},Kn="deg",Yn="grad",qn="rad",Xn="turn",Jn={name:"angle",parse:function(e,t){if(15===t.type)switch(t.unit){case Kn:return Math.PI*t.number/180;case Yn:return Math.PI/200*t.number;case qn:return t.number;case Xn:return 2*Math.PI*t.number}throw new Error("Unsupported angle type")}},Zn=function(e){return 15===e.type&&(e.unit===Kn||e.unit===Yn||e.unit===qn||e.unit===Xn)},er=function(e){switch(e.filter(Nn).map(function(e){return e.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Qn,Qn];case"to top":case"bottom":return tr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Qn,Wn];case"to right":case"left":return tr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Wn,Wn];case"to bottom":case"top":return tr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Wn,Qn];case"to left":case"right":return tr(270)}return 0},tr=function(e){return Math.PI*e/180},nr={name:"color",parse:function(e,t){if(18===t.type){var n=ur[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return n(e,t.values)}if(5===t.type){if(3===t.value.length){var r=t.value.substring(0,1),i=t.value.substring(1,2),o=t.value.substring(2,3);return or(parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16),1)}if(4===t.value.length){r=t.value.substring(0,1),i=t.value.substring(1,2),o=t.value.substring(2,3);var a=t.value.substring(3,4);return or(parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16),parseInt(a+a,16)/255)}if(6===t.value.length)return r=t.value.substring(0,2),i=t.value.substring(2,4),o=t.value.substring(4,6),or(parseInt(r,16),parseInt(i,16),parseInt(o,16),1);if(8===t.value.length)return r=t.value.substring(0,2),i=t.value.substring(2,4),o=t.value.substring(4,6),a=t.value.substring(6,8),or(parseInt(r,16),parseInt(i,16),parseInt(o,16),parseInt(a,16)/255)}if(20===t.type){var s=hr[t.value.toUpperCase()];if(void 0!==s)return s}return hr.TRANSPARENT}},rr=function(e){return!(255&e)},ir=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,i=255&e>>24;return t<255?"rgba("+i+","+r+","+n+","+t/255+")":"rgb("+i+","+r+","+n+")"},or=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(255*r))>>>0},ar=function(e,t){if(17===e.type)return e.number;if(16===e.type){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},sr=function(e,t){var n=t.filter(Pn);if(3===n.length){var r=n.map(ar),i=r[0],o=r[1],a=r[2];return or(i,o,a,1)}if(4===n.length){var s=n.map(ar),l=(i=s[0],o=s[1],a=s[2],s[3]);return or(i,o,a,l)}return 0};function lr(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var cr=function(e,t){var n=t.filter(Pn),r=n[0],i=n[1],o=n[2],a=n[3],s=(17===r.type?tr(r.number):Jn.parse(e,r))/(2*Math.PI),l=Hn(i)?i.number/100:0,c=Hn(o)?o.number/100:0,u=void 0!==a&&Hn(a)?Vn(a,1):1;if(0===l)return or(255*c,255*c,255*c,1);var d=c<=.5?c*(l+1):c+l-c*l,h=2*c-d,f=lr(h,d,s+1/3),p=lr(h,d,s),g=lr(h,d,s-1/3);return or(255*f,255*p,255*g,u)},ur={hsl:cr,hsla:cr,rgb:sr,rgba:sr},dr=function(e,t){return nr.parse(e,Mn.create(t).parseComponentValue())},hr={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},fr={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(Nn(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},pr={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},gr=function(e,t){var n=nr.parse(e,t[0]),r=t[1];return r&&Hn(r)?{color:n,stop:r}:{color:n,stop:null}},mr=function(e,t){var n=e[0],r=e[e.length-1];null===n.stop&&(n.stop=Qn),null===r.stop&&(r.stop=Wn);for(var i=[],o=0,a=0;a<e.length;a++){var s=e[a].stop;if(null!==s){var l=Vn(s,t);l>o?i.push(l):i.push(o),o=l}else i.push(null)}var c=null;for(a=0;a<i.length;a++){var u=i[a];if(null===u)null===c&&(c=a);else if(null!==c){for(var d=a-c,h=(u-i[c-1])/(d+1),f=1;f<=d;f++)i[c+f-1]=h*f;c=null}}return e.map(function(e,n){return{color:e.color,stop:Math.max(Math.min(1,i[n]/t),0)}})},vr=function(e,t,n){var r=t/2,i=n/2,o=Vn(e[0],t)-r,a=i-Vn(e[1],n);return(Math.atan2(a,o)+2*Math.PI)%(2*Math.PI)},Ar=function(e,t,n){var r="number"==typeof e?e:vr(e,t,n),i=Math.abs(t*Math.sin(r))+Math.abs(n*Math.cos(r)),o=t/2,a=n/2,s=i/2,l=Math.sin(r-Math.PI/2)*s,c=Math.cos(r-Math.PI/2)*s;return[i,o-c,o+c,a-l,a+l]},br=function(e,t){return Math.sqrt(e*e+t*t)},yr=function(e,t,n,r,i){return[[0,0],[0,t],[e,0],[e,t]].reduce(function(e,t){var o=t[0],a=t[1],s=br(n-o,r-a);return(i?s<e.optimumDistance:s>e.optimumDistance)?{optimumCorner:t,optimumDistance:s}:e},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},wr=function(e,t,n,r,i){var o=0,a=0;switch(e.size){case 0:0===e.shape?o=a=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):1===e.shape&&(o=Math.min(Math.abs(t),Math.abs(t-r)),a=Math.min(Math.abs(n),Math.abs(n-i)));break;case 2:if(0===e.shape)o=a=Math.min(br(t,n),br(t,n-i),br(t-r,n),br(t-r,n-i));else if(1===e.shape){var s=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(t),Math.abs(t-r)),l=yr(r,i,t,n,!0),c=l[0],u=l[1];a=s*(o=br(c-t,(u-n)/s))}break;case 1:0===e.shape?o=a=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):1===e.shape&&(o=Math.max(Math.abs(t),Math.abs(t-r)),a=Math.max(Math.abs(n),Math.abs(n-i)));break;case 3:if(0===e.shape)o=a=Math.max(br(t,n),br(t,n-i),br(t-r,n),br(t-r,n-i));else if(1===e.shape){s=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(t),Math.abs(t-r));var d=yr(r,i,t,n,!1);c=d[0],u=d[1],a=s*(o=br(c-t,(u-n)/s))}}return Array.isArray(e.size)&&(o=Vn(e.size[0],r),a=2===e.size.length?Vn(e.size[1],i):o),[o,a]},_r=function(e,t){var n=tr(180),r=[];return Fn(t).forEach(function(t,i){if(0===i){var o=t[0];if(20===o.type&&"to"===o.value)return void(n=er(t));if(Zn(o))return void(n=Jn.parse(e,o))}var a=gr(e,t);r.push(a)}),{angle:n,stops:r,type:1}},xr=function(e,t){var n=tr(180),r=[];return Fn(t).forEach(function(t,i){if(0===i){var o=t[0];if(20===o.type&&-1!==["top","left","right","bottom"].indexOf(o.value))return void(n=er(t));if(Zn(o))return void(n=(Jn.parse(e,o)+tr(270))%tr(360))}var a=gr(e,t);r.push(a)}),{angle:n,stops:r,type:1}},Er=function(e,t){var n=tr(180),r=[],i=1,o=0,a=3,s=[];return Fn(t).forEach(function(t,n){var o=t[0];if(0===n){if(Nn(o)&&"linear"===o.value)return void(i=1);if(Nn(o)&&"radial"===o.value)return void(i=2)}if(18===o.type)if("from"===o.name){var a=nr.parse(e,o.values[0]);r.push({stop:Qn,color:a})}else if("to"===o.name)a=nr.parse(e,o.values[0]),r.push({stop:Wn,color:a});else if("color-stop"===o.name){var s=o.values.filter(Pn);if(2===s.length){a=nr.parse(e,s[1]);var l=s[0];Dn(l)&&r.push({stop:{type:16,number:100*l.number,flags:l.flags},color:a})}}}),1===i?{angle:(n+tr(180))%tr(360),stops:r,type:i}:{size:a,shape:o,stops:r,position:s,type:i}},Sr="closest-side",Cr="farthest-side",Tr="closest-corner",kr="farthest-corner",Or="circle",Mr="ellipse",Ir="cover",Dr="contain",Nr=function(e,t){var n=0,r=3,i=[],o=[];return Fn(t).forEach(function(t,a){var s=!0;if(0===a){var l=!1;s=t.reduce(function(e,t){if(l)if(Nn(t))switch(t.value){case"center":return o.push(zn),e;case"top":case"left":return o.push(Qn),e;case"right":case"bottom":return o.push(Wn),e}else(Hn(t)||jn(t))&&o.push(t);else if(Nn(t))switch(t.value){case Or:return n=0,!1;case Mr:return n=1,!1;case"at":return l=!0,!1;case Sr:return r=0,!1;case Ir:case Cr:return r=1,!1;case Dr:case Tr:return r=2,!1;case kr:return r=3,!1}else if(jn(t)||Hn(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},s)}if(s){var c=gr(e,t);i.push(c)}}),{size:r,shape:n,stops:i,position:o,type:2}},Rr=function(e,t){var n=0,r=3,i=[],o=[];return Fn(t).forEach(function(t,a){var s=!0;if(0===a?s=t.reduce(function(e,t){if(Nn(t))switch(t.value){case"center":return o.push(zn),!1;case"top":case"left":return o.push(Qn),!1;case"right":case"bottom":return o.push(Wn),!1}else if(Hn(t)||jn(t))return o.push(t),!1;return e},s):1===a&&(s=t.reduce(function(e,t){if(Nn(t))switch(t.value){case Or:return n=0,!1;case Mr:return n=1,!1;case Dr:case Sr:return r=0,!1;case Cr:return r=1,!1;case Tr:return r=2,!1;case Ir:case kr:return r=3,!1}else if(jn(t)||Hn(t))return Array.isArray(r)||(r=[]),r.push(t),!1;return e},s)),s){var l=gr(e,t);i.push(l)}}),{size:r,shape:n,stops:i,position:o,type:2}},Lr=function(e){return 1===e.type},Br=function(e){return 2===e.type},Pr={name:"image",parse:function(e,t){if(22===t.type){var n={url:t.value,type:0};return e.cache.addImage(t.value),n}if(18===t.type){var r=jr[t.name];if(void 0===r)throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function Fr(e){return!(20===e.type&&"none"===e.value||18===e.type&&!jr[e.name])}var $r,jr={"linear-gradient":_r,"-moz-linear-gradient":xr,"-ms-linear-gradient":xr,"-o-linear-gradient":xr,"-webkit-linear-gradient":xr,"radial-gradient":Nr,"-moz-radial-gradient":Rr,"-ms-radial-gradient":Rr,"-o-radial-gradient":Rr,"-webkit-radial-gradient":Rr,"-webkit-gradient":Er},Hr={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t.filter(function(e){return Pn(e)&&Fr(e)}).map(function(t){return Pr.parse(e,t)})}},Ur={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(e){if(Nn(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Qr={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return Fn(t).map(function(e){return e.filter(Hn)}).map(Un)}},zr={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return Fn(t).map(function(e){return e.filter(Nn).map(function(e){return e.value}).join(" ")}).map(Wr)}},Wr=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}($r||($r={}));var Gr,Vr={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return Fn(t).map(function(e){return e.filter(Kr)})}},Kr=function(e){return Nn(e)||Hn(e)},Yr=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},qr=Yr("top"),Xr=Yr("right"),Jr=Yr("bottom"),Zr=Yr("left"),ei=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return Un(t.filter(Hn))}}},ti=ei("top-left"),ni=ei("top-right"),ri=ei("bottom-right"),ii=ei("bottom-left"),oi=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},ai=oi("top"),si=oi("right"),li=oi("bottom"),ci=oi("left"),ui=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return In(t)?t.number:0}}},di=ui("top"),hi=ui("right"),fi=ui("bottom"),pi=ui("left"),gi={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},mi={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){return"rtl"===t?1:0}},vi={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Nn).reduce(function(e,t){return e|Ai(t.value)},0)}},Ai=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},bi={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},yi={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return 20===t.type&&"normal"===t.value?0:17===t.type||15===t.type?t.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(Gr||(Gr={}));var wi,_i={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"strict"===t?Gr.STRICT:Gr.NORMAL}},xi={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ei=function(e,t){return Nn(e)&&"normal"===e.value?1.2*t:17===e.type?t*e.number:Hn(e)?Vn(e,t):t},Si={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return 20===t.type&&"none"===t.value?null:Pr.parse(e,t)}},Ci={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){return"inside"===t?0:1}},Ti={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},ki=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Oi=ki("top"),Mi=ki("right"),Ii=ki("bottom"),Di=ki("left"),Ni={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Nn).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Ri={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){return"break-word"===t?"break-word":"normal"}},Li=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Bi=Li("top"),Pi=Li("right"),Fi=Li("bottom"),$i=Li("left"),ji={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},Hi={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Ui={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Ln(t[0],"none")?[]:Fn(t).map(function(t){for(var n={color:hr.TRANSPARENT,offsetX:Qn,offsetY:Qn,blur:Qn},r=0,i=0;i<t.length;i++){var o=t[i];jn(o)?(0===r?n.offsetX=o:1===r?n.offsetY=o:n.blur=o,r++):n.color=nr.parse(e,o)}return n})}},Qi={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},zi={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(20===t.type&&"none"===t.value)return null;if(18===t.type){var n=Vi[t.name];if(void 0===n)throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return n(t.values)}return null}},Wi=function(e){var t=e.filter(function(e){return 17===e.type}).map(function(e){return e.number});return 6===t.length?t:null},Gi=function(e){var t=e.filter(function(e){return 17===e.type}).map(function(e){return e.number}),n=t[0],r=t[1];t[2],t[3];var i=t[4],o=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var a=t[12],s=t[13];return t[14],t[15],16===t.length?[n,r,i,o,a,s]:null},Vi={matrix:Wi,matrix3d:Gi},Ki={type:16,number:50,flags:We},Yi=[Ki,Ki],qi={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var n=t.filter(Hn);return 2!==n.length?Yi:[n[0],n[1]]}},Xi={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;default:return 0}}};!function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"}(wi||(wi={}));for(var Ji={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return wi.BREAK_ALL;case"keep-all":return wi.KEEP_ALL;default:return wi.NORMAL}}},Zi={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(20===t.type)return{auto:!0,order:0};if(Dn(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},eo={name:"time",parse:function(e,t){if(15===t.type)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},to={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return Dn(t)?t.number:1}},no={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ro={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(Nn).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return 0!==e})}},io={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var n=[],r=[];return t.forEach(function(e){switch(e.type){case 20:case 0:n.push(e.value);break;case 17:n.push(e.number.toString());break;case 4:r.push(n.join(" ")),n.length=0}}),n.length&&r.push(n.join(" ")),r.map(function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"})}},oo={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ao={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){return Dn(t)?t.number:Nn(t)&&"bold"===t.value?700:400}},so={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(Nn).map(function(e){return e.value})}},lo={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},co=function(e,t){return!!(e&t)},uo={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(0===t.length)return[];var n=t[0];return 20===n.type&&"none"===n.value?[]:t}},ho={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;for(var r=[],i=t.filter(Bn),o=0;o<i.length;o++){var a=i[o],s=i[o+1];if(20===a.type){var l=s&&Dn(s)?s.number:1;r.push({counter:a.value,increment:l})}}return r}},fo={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return[];for(var n=[],r=t.filter(Bn),i=0;i<r.length;i++){var o=r[i],a=r[i+1];if(Nn(o)&&"none"!==o.value){var s=a&&Dn(a)?a.number:0;n.push({counter:o.value,reset:s})}}return n}},po={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(In).map(function(t){return eo.parse(e,t)})}},go={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(0===t.length)return null;var n=t[0];if(20===n.type&&"none"===n.value)return null;var r=[],i=t.filter(Rn);if(i.length%2!=0)return null;for(var o=0;o<i.length;o+=2){var a=i[o].value,s=i[o+1].value;r.push({open:a,close:s})}return r}},mo=function(e,t,n){if(!e)return"";var r=e[Math.min(t,e.length-1)];return r?n?r.open:r.close:""},vo={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return 1===t.length&&Ln(t[0],"none")?[]:Fn(t).map(function(t){for(var n={color:255,offsetX:Qn,offsetY:Qn,blur:Qn,spread:Qn,inset:!1},r=0,i=0;i<t.length;i++){var o=t[i];Ln(o,"inset")?n.inset=!0:jn(o)?(0===r?n.offsetX=o:1===r?n.offsetY=o:2===r?n.blur=o:n.spread=o,r++):n.color=nr.parse(e,o)}return n})}},Ao={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var n=[0,1,2],r=[];return t.filter(Nn).forEach(function(e){switch(e.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2)}}),n.forEach(function(e){-1===r.indexOf(e)&&r.push(e)}),r}},bo={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},yo={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return In(t)?t.number:0}},wo=function(){function e(e,t){var n,r;this.animationDuration=Eo(e,po,t.animationDuration),this.backgroundClip=Eo(e,fr,t.backgroundClip),this.backgroundColor=Eo(e,pr,t.backgroundColor),this.backgroundImage=Eo(e,Hr,t.backgroundImage),this.backgroundOrigin=Eo(e,Ur,t.backgroundOrigin),this.backgroundPosition=Eo(e,Qr,t.backgroundPosition),this.backgroundRepeat=Eo(e,zr,t.backgroundRepeat),this.backgroundSize=Eo(e,Vr,t.backgroundSize),this.borderTopColor=Eo(e,qr,t.borderTopColor),this.borderRightColor=Eo(e,Xr,t.borderRightColor),this.borderBottomColor=Eo(e,Jr,t.borderBottomColor),this.borderLeftColor=Eo(e,Zr,t.borderLeftColor),this.borderTopLeftRadius=Eo(e,ti,t.borderTopLeftRadius),this.borderTopRightRadius=Eo(e,ni,t.borderTopRightRadius),this.borderBottomRightRadius=Eo(e,ri,t.borderBottomRightRadius),this.borderBottomLeftRadius=Eo(e,ii,t.borderBottomLeftRadius),this.borderTopStyle=Eo(e,ai,t.borderTopStyle),this.borderRightStyle=Eo(e,si,t.borderRightStyle),this.borderBottomStyle=Eo(e,li,t.borderBottomStyle),this.borderLeftStyle=Eo(e,ci,t.borderLeftStyle),this.borderTopWidth=Eo(e,di,t.borderTopWidth),this.borderRightWidth=Eo(e,hi,t.borderRightWidth),this.borderBottomWidth=Eo(e,fi,t.borderBottomWidth),this.borderLeftWidth=Eo(e,pi,t.borderLeftWidth),this.boxShadow=Eo(e,vo,t.boxShadow),this.color=Eo(e,gi,t.color),this.direction=Eo(e,mi,t.direction),this.display=Eo(e,vi,t.display),this.float=Eo(e,bi,t.cssFloat),this.fontFamily=Eo(e,io,t.fontFamily),this.fontSize=Eo(e,oo,t.fontSize),this.fontStyle=Eo(e,lo,t.fontStyle),this.fontVariant=Eo(e,so,t.fontVariant),this.fontWeight=Eo(e,ao,t.fontWeight),this.letterSpacing=Eo(e,yi,t.letterSpacing),this.lineBreak=Eo(e,_i,t.lineBreak),this.lineHeight=Eo(e,xi,t.lineHeight),this.listStyleImage=Eo(e,Si,t.listStyleImage),this.listStylePosition=Eo(e,Ci,t.listStylePosition),this.listStyleType=Eo(e,Ti,t.listStyleType),this.marginTop=Eo(e,Oi,t.marginTop),this.marginRight=Eo(e,Mi,t.marginRight),this.marginBottom=Eo(e,Ii,t.marginBottom),this.marginLeft=Eo(e,Di,t.marginLeft),this.opacity=Eo(e,to,t.opacity);var i=Eo(e,Ni,t.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=Eo(e,Ri,t.overflowWrap),this.paddingTop=Eo(e,Bi,t.paddingTop),this.paddingRight=Eo(e,Pi,t.paddingRight),this.paddingBottom=Eo(e,Fi,t.paddingBottom),this.paddingLeft=Eo(e,$i,t.paddingLeft),this.paintOrder=Eo(e,Ao,t.paintOrder),this.position=Eo(e,Hi,t.position),this.textAlign=Eo(e,ji,t.textAlign),this.textDecorationColor=Eo(e,no,null!==(n=t.textDecorationColor)&&void 0!==n?n:t.color),this.textDecorationLine=Eo(e,ro,null!==(r=t.textDecorationLine)&&void 0!==r?r:t.textDecoration),this.textShadow=Eo(e,Ui,t.textShadow),this.textTransform=Eo(e,Qi,t.textTransform),this.transform=Eo(e,zi,t.transform),this.transformOrigin=Eo(e,qi,t.transformOrigin),this.visibility=Eo(e,Xi,t.visibility),this.webkitTextStrokeColor=Eo(e,bo,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Eo(e,yo,t.webkitTextStrokeWidth),this.wordBreak=Eo(e,Ji,t.wordBreak),this.zIndex=Eo(e,Zi,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},e.prototype.isTransparent=function(){return rr(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return 0!==this.position},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return 0!==this.float},e.prototype.isInlineLevel=function(){return co(this.display,4)||co(this.display,33554432)||co(this.display,268435456)||co(this.display,536870912)||co(this.display,67108864)||co(this.display,134217728)},e}(),_o=function(){function e(e,t){this.content=Eo(e,uo,t.content),this.quotes=Eo(e,go,t.quotes)}return e}(),xo=function(){function e(e,t){this.counterIncrement=Eo(e,ho,t.counterIncrement),this.counterReset=Eo(e,fo,t.counterReset)}return e}(),Eo=function(e,t,n){var r=new On,i=null!=n?n.toString():t.initialValue;r.write(i);var o=new Mn(r.read());switch(t.type){case 2:var a=o.parseComponentValue();return t.parse(e,Nn(a)?a.value:t.initialValue);case 0:return t.parse(e,o.parseComponentValue());case 1:return t.parse(e,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(t.format){case"angle":return Jn.parse(e,o.parseComponentValue());case"color":return nr.parse(e,o.parseComponentValue());case"image":return Pr.parse(e,o.parseComponentValue());case"length":var s=o.parseComponentValue();return jn(s)?s:Qn;case"length-percentage":var l=o.parseComponentValue();return Hn(l)?l:Qn;case"time":return eo.parse(e,o.parseComponentValue())}}},So="data-html2canvas-debug",Co=function(e){switch(e.getAttribute(So)){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},To=function(e,t){var n=Co(e);return 1===n||t===n},ko=function(){function e(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,To(t,3),this.styles=new wo(e,window.getComputedStyle(t,null)),gs(t)&&(this.styles.animationDuration.some(function(e){return e>0})&&(t.style.animationDuration="0s"),null!==this.styles.transform&&(t.style.transform="none")),this.bounds=s(this.context,t),To(t,4)&&(this.flags|=16)}return e}(),Oo="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Mo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Io="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Do=0;Do<Mo.length;Do++)Io[Mo.charCodeAt(Do)]=Do;for(var No=function(e){var t,n,r,i,o,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(a):new Array(a),u=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<s;t+=4)n=Io[e.charCodeAt(t)],r=Io[e.charCodeAt(t+1)],i=Io[e.charCodeAt(t+2)],o=Io[e.charCodeAt(t+3)],u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|i>>2,u[l++]=(3&i)<<6|63&o;return c},Ro=function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n},Lo=function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n},Bo=5,Po=11,Fo=2,$o=65536>>Bo,jo=(1<<Bo)-1,Ho=$o+(1024>>Bo)+32,Uo=65536>>Po,Qo=(1<<Po-Bo)-1,zo=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},Wo=function(e,t,n){return e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n))},Go=function(e,t){var n=No(e),r=Array.isArray(n)?Lo(n):new Uint32Array(n),i=Array.isArray(n)?Ro(n):new Uint16Array(n),o=24,a=zo(i,o/2,r[4]/2),s=2===r[5]?zo(i,(o+r[4])/2):Wo(r,Math.ceil((o+r[4])/4));return new Vo(r[0],r[1],r[2],r[3],a,s)},Vo=function(){function e(e,t,n,r,i,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=o}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>Bo])<<Fo)+(e&jo),this.data[t];if(e<=65535)return t=((t=this.index[$o+(e-55296>>Bo)])<<Fo)+(e&jo),this.data[t];if(e<this.highStart)return t=Ho-Uo+(e>>Po),t=this.index[t],t+=e>>Bo&Qo,t=((t=this.index[t])<<Fo)+(e&jo),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),Ko="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yo="undefined"==typeof Uint8Array?[]:new Uint8Array(256),qo=0;qo<Ko.length;qo++)Yo[Ko.charCodeAt(qo)]=qo;var Xo,Jo=1,Zo=2,ea=3,ta=4,na=5,ra=7,ia=8,oa=9,aa=10,sa=11,la=12,ca=13,ua=14,da=15,ha=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t},fa=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],i=-1,o="";++i<n;){var a=e[i];a<=65535?r.push(a):(a-=65536,r.push(55296+(a>>10),a%1024+56320)),(i+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},pa=Go(Oo),ga="×",ma="÷",va=function(e){return pa.get(e)},Aa=function(e,t,n){var r=n-2,i=t[r],o=t[n-1],a=t[n];if(o===Zo&&a===ea)return ga;if(o===Zo||o===ea||o===ta)return ma;if(a===Zo||a===ea||a===ta)return ma;if(o===ia&&-1!==[ia,oa,sa,la].indexOf(a))return ga;if(!(o!==sa&&o!==oa||a!==oa&&a!==aa))return ga;if((o===la||o===aa)&&a===aa)return ga;if(a===ca||a===na)return ga;if(a===ra)return ga;if(o===Jo)return ga;if(o===ca&&a===ua){for(;i===na;)i=t[--r];if(i===ua)return ga}if(o===da&&a===da){for(var s=0;i===da;)s++,i=t[--r];if(s%2==0)return ga}return ma},ba=function(e){var t=ha(e),n=t.length,r=0,i=0,o=t.map(va);return{next:function(){if(r>=n)return{done:!0,value:null};for(var e=ga;r<n&&(e=Aa(t,o,++r))===ga;);if(e!==ga||r===n){var a=fa.apply(null,t.slice(i,r));return i=r,{value:a,done:!1}}return{done:!0,value:null}}}},ya=function(e){for(var t,n=ba(e),r=[];!(t=n.next()).done;)t.value&&r.push(t.value.slice());return r},wa=function(e){var t=123;if(e.createRange){var n=e.createRange();if(n.getBoundingClientRect){var r=e.createElement("boundtest");r.style.height=t+"px",r.style.display="block",e.body.appendChild(r),n.selectNode(r);var i=n.getBoundingClientRect(),o=Math.round(i.height);if(e.body.removeChild(r),o===t)return!0}}return!1},_a=function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var n=e.createRange();t.innerHTML="function"==typeof"".repeat?"&#128104;".repeat(10):"";var r=t.firstChild,i=c(r.data).map(function(e){return u(e)}),o=0,a={},s=i.every(function(e,t){n.setStart(r,o),n.setEnd(r,o+e.length);var i=n.getBoundingClientRect();o+=e.length;var s=i.x>a.x||i.y>a.y;return a=i,0===t||s});return e.body.removeChild(t),s},xa=function(){return void 0!==(new Image).crossOrigin},Ea=function(){return"string"==typeof(new XMLHttpRequest).responseType},Sa=function(e){var t=new Image,n=e.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),n.toDataURL()}catch(e){return!1}return!0},Ca=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},Ta=function(e){var t=e.createElement("canvas"),n=100;t.width=n,t.height=n;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,n,n);var i=new Image,o=t.toDataURL();i.src=o;var a=ka(n,n,0,0,i);return r.fillStyle="red",r.fillRect(0,0,n,n),Oa(a).then(function(t){r.drawImage(t,0,0);var i=r.getImageData(0,0,n,n).data;r.fillStyle="red",r.fillRect(0,0,n,n);var a=e.createElement("div");return a.style.backgroundImage="url("+o+")",a.style.height=n+"px",Ca(i)?Oa(ka(n,n,0,0,a)):Promise.reject(!1)}).then(function(e){return r.drawImage(e,0,0),Ca(r.getImageData(0,0,n,n).data)}).catch(function(){return!1})},ka=function(e,t,n,r,i){var o="http://www.w3.org/2000/svg",a=document.createElementNS(o,"svg"),s=document.createElementNS(o,"foreignObject");return a.setAttributeNS(null,"width",e.toString()),a.setAttributeNS(null,"height",t.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",n.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(s),s.appendChild(i),a},Oa=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},Ma={get SUPPORT_RANGE_BOUNDS(){var e=wa(document);return Object.defineProperty(Ma,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Ma.SUPPORT_RANGE_BOUNDS&&_a(document);return Object.defineProperty(Ma,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=Sa(document);return Object.defineProperty(Ma,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?Ta(document):Promise.resolve(!1);return Object.defineProperty(Ma,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=xa();return Object.defineProperty(Ma,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=Ea();return Object.defineProperty(Ma,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ma,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!("undefined"==typeof Intl||!Intl.Segmenter);return Object.defineProperty(Ma,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Ia=function(){function e(e,t){this.text=e,this.bounds=t}return e}(),Da=function(e,t,n,r){var i=Pa(t,n),o=[],s=0;return i.forEach(function(t){if(n.textDecorationLine.length||t.trim().length>0)if(Ma.SUPPORT_RANGE_BOUNDS){var i=Ra(r,s,t.length).getClientRects();if(i.length>1){var l=La(t),c=0;l.forEach(function(t){o.push(new Ia(t,a.fromDOMRectList(e,Ra(r,c+s,t.length).getClientRects()))),c+=t.length})}else o.push(new Ia(t,a.fromDOMRectList(e,i)))}else{var u=r.splitText(t.length);o.push(new Ia(t,Na(e,r))),r=u}else Ma.SUPPORT_RANGE_BOUNDS||(r=r.splitText(t.length));s+=t.length}),o},Na=function(e,t){var n=t.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var i=t.parentNode;if(i){i.replaceChild(r,t);var o=s(e,r);return r.firstChild&&i.replaceChild(r.firstChild,r),o}}return a.EMPTY},Ra=function(e,t,n){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var i=r.createRange();return i.setStart(e,t),i.setEnd(e,t+n),i},La=function(e){if(Ma.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(e){return e.segment})}return ya(e)},Ba=function(e,t){if(Ma.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(e)).map(function(e){return e.segment})}return $a(e,t)},Pa=function(e,t){return 0!==t.letterSpacing?La(e):Ba(e,t)},Fa=[32,160,4961,65792,65793,4153,4241],$a=function(e,t){for(var n,r=Ue(e,{lineBreak:t.lineBreak,wordBreak:"break-word"===t.overflowWrap?"break-word":t.wordBreak}),i=[],o=function(){if(n.value){var e=n.value.slice(),t=c(e),r="";t.forEach(function(e){-1===Fa.indexOf(e)?r+=u(e):(r.length&&i.push(r),i.push(u(e)),r="")}),r.length&&i.push(r)}};!(n=r.next()).done;)o();return i},ja=function(){function e(e,t,n){this.text=Ha(t.data,n.textTransform),this.textBounds=Da(e,this.text,n,t)}return e}(),Ha=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(Ua,Qa);case 2:return e.toUpperCase();default:return e}},Ua=/(^|\s|:|-|\(|\))([a-z])/g,Qa=function(e,t,n){return e.length>0?t+n.toUpperCase():e},za=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return t(n,e),n}(ko),Wa=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return t(n,e),n}(ko),Ga=function(e){function n(t,n){var r=e.call(this,t,n)||this,i=new XMLSerializer,o=s(t,n);return n.setAttribute("width",o.width+"px"),n.setAttribute("height",o.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return t(n,e),n}(ko),Va=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(ko),Ka=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return t(n,e),n}(ko),Ya=[{type:15,flags:0,unit:"px",number:3}],qa=[{type:16,flags:0,number:50}],Xa=function(e){return e.width>e.height?new a(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new a(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},Ja=function(e){var t=e.type===ts?new Array(e.value.length+1).join("•"):e.value;return 0===t.length?e.placeholder||"":t},Za="checkbox",es="radio",ts="password",ns=707406591,rs=function(e){function n(t,n){var r=e.call(this,t,n)||this;switch(r.type=n.type.toLowerCase(),r.checked=n.checked,r.value=Ja(n),r.type!==Za&&r.type!==es||(r.styles.backgroundColor=3739148031,r.styles.borderTopColor=r.styles.borderRightColor=r.styles.borderBottomColor=r.styles.borderLeftColor=2779096575,r.styles.borderTopWidth=r.styles.borderRightWidth=r.styles.borderBottomWidth=r.styles.borderLeftWidth=1,r.styles.borderTopStyle=r.styles.borderRightStyle=r.styles.borderBottomStyle=r.styles.borderLeftStyle=1,r.styles.backgroundClip=[0],r.styles.backgroundOrigin=[0],r.bounds=Xa(r.bounds)),r.type){case Za:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=Ya;break;case es:r.styles.borderTopRightRadius=r.styles.borderTopLeftRadius=r.styles.borderBottomRightRadius=r.styles.borderBottomLeftRadius=qa}return r}return t(n,e),n}(ko),is=function(e){function n(t,n){var r=e.call(this,t,n)||this,i=n.options[n.selectedIndex||0];return r.value=i&&i.text||"",r}return t(n,e),n}(ko),os=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.value=n.value,r}return t(n,e),n}(ko),as=function(e){function n(t,n){var r=e.call(this,t,n)||this;r.src=n.src,r.width=parseInt(n.width,10)||0,r.height=parseInt(n.height,10)||0,r.backgroundColor=r.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){r.tree=us(t,n.contentWindow.document.documentElement);var i=n.contentWindow.document.documentElement?dr(t,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):hr.TRANSPARENT,o=n.contentWindow.document.body?dr(t,getComputedStyle(n.contentWindow.document.body).backgroundColor):hr.TRANSPARENT;r.backgroundColor=rr(i)?rr(o)?r.styles.backgroundColor:o:i}}catch(e){}return r}return t(n,e),n}(ko),ss=["OL","UL","MENU"],ls=function(e,t,n,r){for(var i=t.firstChild,o=void 0;i;i=o)if(o=i.nextSibling,fs(i)&&i.data.trim().length>0)n.textNodes.push(new ja(e,i,n.styles));else if(ps(i))if(Is(i)&&i.assignedNodes)i.assignedNodes().forEach(function(t){return ls(e,t,n,r)});else{var a=cs(e,i);a.styles.isVisible()&&(ds(i,a,r)?a.flags|=4:hs(a.styles)&&(a.flags|=2),-1!==ss.indexOf(i.tagName)&&(a.flags|=8),n.elements.push(a),i.slot,i.shadowRoot?ls(e,i.shadowRoot,a,r):Os(i)||ws(i)||Ms(i)||ls(e,i,a,r))}},cs=function(e,t){return Ss(t)?new za(e,t):xs(t)?new Wa(e,t):ws(t)?new Ga(e,t):vs(t)?new Va(e,t):As(t)?new Ka(e,t):bs(t)?new rs(e,t):Ms(t)?new is(e,t):Os(t)?new os(e,t):Cs(t)?new as(e,t):new ko(e,t)},us=function(e,t){var n=cs(e,t);return n.flags|=4,ls(e,t,n,n),n},ds=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||_s(e)&&n.styles.isTransparent()},hs=function(e){return e.isPositioned()||e.isFloating()},fs=function(e){return e.nodeType===Node.TEXT_NODE},ps=function(e){return e.nodeType===Node.ELEMENT_NODE},gs=function(e){return ps(e)&&void 0!==e.style&&!ms(e)},ms=function(e){return"object"==typeof e.className},vs=function(e){return"LI"===e.tagName},As=function(e){return"OL"===e.tagName},bs=function(e){return"INPUT"===e.tagName},ys=function(e){return"HTML"===e.tagName},ws=function(e){return"svg"===e.tagName},_s=function(e){return"BODY"===e.tagName},xs=function(e){return"CANVAS"===e.tagName},Es=function(e){return"VIDEO"===e.tagName},Ss=function(e){return"IMG"===e.tagName},Cs=function(e){return"IFRAME"===e.tagName},Ts=function(e){return"STYLE"===e.tagName},ks=function(e){return"SCRIPT"===e.tagName},Os=function(e){return"TEXTAREA"===e.tagName},Ms=function(e){return"SELECT"===e.tagName},Is=function(e){return"SLOT"===e.tagName},Ds=function(e){return e.tagName.indexOf("-")>0},Ns=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},e.prototype.pop=function(e){var t=this;e.forEach(function(e){return t.counters[e].pop()})},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,r=e.counterReset,i=!0;null!==n&&n.forEach(function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(i=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=e.increment)});var o=[];return i&&r.forEach(function(e){var n=t.counters[e.counter];o.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)}),o},e}(),Rs={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Ls={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Bs={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Ps={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Fs=function(e,t,n,r,i,o){return e<t||e>n?Xs(e,i,o.length>0):r.integers.reduce(function(t,n,i){for(;e>=n;)e-=n,t+=r.values[i];return t},"")+o},$s=function(e,t,n,r){var i="";do{n||e--,i=r(e)+i,e/=t}while(e*t>=t);return i},js=function(e,t,n,r,i){var o=n-t+1;return(e<0?"-":"")+($s(Math.abs(e),o,r,function(e){return u(Math.floor(e%o)+t)})+i)},Hs=function(e,t,n){void 0===n&&(n=". ");var r=t.length;return $s(Math.abs(e),r,!1,function(e){return t[Math.floor(e%r)]})+n},Us=1,Qs=2,zs=4,Ws=8,Gs=function(e,t,n,r,i,o){if(e<-9999||e>9999)return Xs(e,4,i.length>0);var a=Math.abs(e),s=i;if(0===a)return t[0]+s;for(var l=0;a>0&&l<=4;l++){var c=a%10;0===c&&co(o,Us)&&""!==s?s=t[c]+s:c>1||1===c&&0===l||1===c&&1===l&&co(o,Qs)||1===c&&1===l&&co(o,zs)&&e>100||1===c&&l>1&&co(o,Ws)?s=t[c]+(l>0?n[l-1]:"")+s:1===c&&l>0&&(s=n[l-1]+s),a=Math.floor(a/10)}return(e<0?r:"")+s},Vs="十百千萬",Ks="拾佰仟萬",Ys="マイナス",qs="마이너스",Xs=function(e,t,n){var r=n?". ":"",i=n?"、":"",o=n?", ":"",a=n?" ":"";switch(t){case 0:return"•"+a;case 1:return"◦"+a;case 2:return"◾"+a;case 5:var s=js(e,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return Hs(e,"〇一二三四五六七八九",i);case 6:return Fs(e,1,3999,Rs,3,r).toLowerCase();case 7:return Fs(e,1,3999,Rs,3,r);case 8:return js(e,945,969,!1,r);case 9:return js(e,97,122,!1,r);case 10:return js(e,65,90,!1,r);case 11:return js(e,1632,1641,!0,r);case 12:case 49:return Fs(e,1,9999,Ls,3,r);case 35:return Fs(e,1,9999,Ls,3,r).toLowerCase();case 13:return js(e,2534,2543,!0,r);case 14:case 30:return js(e,6112,6121,!0,r);case 15:return Hs(e,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return Hs(e,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return Gs(e,"零一二三四五六七八九",Vs,"負",i,Qs|zs|Ws);case 47:return Gs(e,"零壹貳參肆伍陸柒捌玖",Ks,"負",i,Us|Qs|zs|Ws);case 42:return Gs(e,"零一二三四五六七八九",Vs,"负",i,Qs|zs|Ws);case 41:return Gs(e,"零壹贰叁肆伍陆柒捌玖",Ks,"负",i,Us|Qs|zs|Ws);case 26:return Gs(e,"〇一二三四五六七八九","十百千万",Ys,i,0);case 25:return Gs(e,"零壱弐参四伍六七八九","拾百千万",Ys,i,Us|Qs|zs);case 31:return Gs(e,"영일이삼사오육칠팔구","십백천만",qs,o,Us|Qs|zs);case 33:return Gs(e,"零一二三四五六七八九","十百千萬",qs,o,0);case 32:return Gs(e,"零壹貳參四五六七八九","拾百千",qs,o,Us|Qs|zs);case 18:return js(e,2406,2415,!0,r);case 20:return Fs(e,1,19999,Ps,3,r);case 21:return js(e,2790,2799,!0,r);case 22:return js(e,2662,2671,!0,r);case 22:return Fs(e,1,10999,Bs,3,r);case 23:return Hs(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Hs(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return js(e,3302,3311,!0,r);case 28:return Hs(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return Hs(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return js(e,3792,3801,!0,r);case 37:return js(e,6160,6169,!0,r);case 38:return js(e,4160,4169,!0,r);case 39:return js(e,2918,2927,!0,r);case 40:return js(e,1776,1785,!0,r);case 43:return js(e,3046,3055,!0,r);case 44:return js(e,3174,3183,!0,r);case 45:return js(e,3664,3673,!0,r);case 46:return js(e,3872,3881,!0,r);default:return js(e,48,57,!0,r)}},Js="data-html2canvas-ignore",Zs=function(){function e(e,t,n){if(this.context=e,this.options=n,this.scrolledElements=[],this.referenceElement=t,this.counters=new Ns,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(e,t){var n=this,o=tl(e,t);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var a=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,l=o.contentWindow,c=l.document,u=il(o).then(function(){return r(n,void 0,void 0,function(){var e,n;return i(this,function(r){switch(r.label){case 0:return this.scrolledElements.forEach(cl),l&&(l.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||l.scrollY===t.top&&l.scrollX===t.left||(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(l.scrollX-t.left,l.scrollY-t.top,0,0))),e=this.options.onclone,void 0===(n=this.clonedReferenceElement)?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:r.sent(),r.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,rl(c)]:[3,4];case 3:r.sent(),r.label=4;case 4:return"function"==typeof e?[2,Promise.resolve().then(function(){return e(c,n)}).then(function(){return o})]:[2,o]}})})});return c.open(),c.write(sl(document.doctype)+"<html></html>"),ll(this.referenceElement.ownerDocument,a,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},e.prototype.createElementClone=function(e){if(To(e,2),xs(e))return this.createCanvasClone(e);if(Es(e))return this.createVideoClone(e);if(Ts(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Ss(t)&&(Ss(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),"lazy"===t.loading&&(t.loading="eager")),Ds(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return al(e.style,t),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e},""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(e){if(this.context.logger.error("Unable to access cssRules property",e),"SecurityError"!==e.name)throw e}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var n=e.ownerDocument.createElement("img");try{return n.src=e.toDataURL(),n}catch(t){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var r=e.cloneNode(!1);try{r.width=e.width,r.height=e.height;var i=e.getContext("2d"),o=r.getContext("2d");if(o)if(!this.options.allowTaint&&i)o.putImageData(i.getImageData(0,0,e.width,e.height),0,0);else{var a=null!==(t=e.getContext("webgl2"))&&void 0!==t?t:e.getContext("webgl");if(a){var s=a.getContextAttributes();!1===(null==s?void 0:s.preserveDrawingBuffer)&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}o.drawImage(e,0,0)}return r}catch(t){this.context.logger.info("Unable to clone canvas as it is tainted",e)}return r},e.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var n=t.getContext("2d");try{return n&&(n.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||n.getImageData(0,0,t.width,t.height)),t}catch(t){this.context.logger.info("Unable to clone video as it is tainted",e)}var r=e.ownerDocument.createElement("canvas");return r.width=e.offsetWidth,r.height=e.offsetHeight,r},e.prototype.appendChildNode=function(e,t,n){ps(t)&&(ks(t)||t.hasAttribute(Js)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(t))||this.options.copyStyles&&ps(t)&&Ts(t)||e.appendChild(this.cloneNode(t,n))},e.prototype.cloneChildNodes=function(e,t,n){for(var r=this,i=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;i;i=i.nextSibling)if(ps(i)&&Is(i)&&"function"==typeof i.assignedNodes){var o=i.assignedNodes();o.length&&o.forEach(function(e){return r.appendChildNode(t,e,n)})}else this.appendChildNode(t,i,n)},e.prototype.cloneNode=function(e,t){if(fs(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var n=e.ownerDocument.defaultView;if(n&&ps(e)&&(gs(e)||ms(e))){var r=this.createElementClone(e);r.style.transitionProperty="none";var i=n.getComputedStyle(e),o=n.getComputedStyle(e,":before"),a=n.getComputedStyle(e,":after");this.referenceElement===e&&gs(r)&&(this.clonedReferenceElement=r),_s(r)&&gl(r);var s=this.counters.parse(new xo(this.context,i)),l=this.resolvePseudoContent(e,r,o,Xo.BEFORE);Ds(e)&&(t=!0),Es(e)||this.cloneChildNodes(e,r,t),l&&r.insertBefore(l,r.firstChild);var c=this.resolvePseudoContent(e,r,a,Xo.AFTER);return c&&r.appendChild(c),this.counters.pop(s),(i&&(this.options.copyStyles||ms(e))&&!Cs(e)||t)&&al(i,r),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([r,e.scrollLeft,e.scrollTop]),(Os(e)||Ms(e))&&(Os(r)||Ms(r))&&(r.value=e.value),r}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,r){var i=this;if(n){var o=n.content,a=t.ownerDocument;if(a&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==n.display){this.counters.parse(new xo(this.context,n));var s=new _o(this.context,n),l=a.createElement("html2canvaspseudoelement");al(n,l),s.content.forEach(function(t){if(0===t.type)l.appendChild(a.createTextNode(t.value));else if(22===t.type){var n=a.createElement("img");n.src=t.value,n.style.opacity="1",l.appendChild(n)}else if(18===t.type){if("attr"===t.name){var r=t.values.filter(Nn);r.length&&l.appendChild(a.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var o=t.values.filter(Pn),c=o[0],u=o[1];if(c&&Nn(c)){var d=i.counters.getCounterValue(c.value),h=u&&Nn(u)?Ti.parse(i.context,u.value):3;l.appendChild(a.createTextNode(Xs(d,h,!1)))}}else if("counters"===t.name){var f=t.values.filter(Pn),p=(c=f[0],f[1]);if(u=f[2],c&&Nn(c)){var g=i.counters.getCounterValues(c.value),m=u&&Nn(u)?Ti.parse(i.context,u.value):3,v=p&&0===p.type?p.value:"",A=g.map(function(e){return Xs(e,m,!1)}).join(v);l.appendChild(a.createTextNode(A))}}}else if(20===t.type)switch(t.value){case"open-quote":l.appendChild(a.createTextNode(mo(s.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(a.createTextNode(mo(s.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(a.createTextNode(t.value))}}),l.className=hl+" "+fl;var c=r===Xo.BEFORE?" "+hl:" "+fl;return ms(t)?t.className.baseValue+=c:t.className+=c,l}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(Xo||(Xo={}));var el,tl=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute(Js,"true"),e.body.appendChild(n),n},nl=function(e){return new Promise(function(t){e.complete?t():e.src?(e.onload=t,e.onerror=t):t()})},rl=function(e){return Promise.all([].slice.call(e.images,0).map(nl))},il=function(e){return new Promise(function(t,n){var r=e.contentWindow;if(!r)return n("No window assigned for iframe");var i=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval(function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(n),t(e))},50)}})},ol=["all","d","content"],al=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);-1===ol.indexOf(r)&&t.style.setProperty(r,e.getPropertyValue(r))}return t},sl=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},ll=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},cl=function(e){var t=e[0],n=e[1],r=e[2];t.scrollLeft=n,t.scrollTop=r},ul=":before",dl=":after",hl="___html2canvas___pseudoelement_before",fl="___html2canvas___pseudoelement_after",pl='{\n    content: "" !important;\n    display: none !important;\n}',gl=function(e){ml(e,"."+hl+ul+pl+"\n         ."+fl+dl+pl)},ml=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},vl=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),Al=function(){function e(e,t){this.context=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Sl(e)||_l(e)?((this._cache[e]=this.loadImage(e)).catch(function(){}),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,a=this;return i(this,function(i){switch(i.label){case 0:return t=vl.isSameOrigin(e),n=!xl(e)&&!0===this._options.useCORS&&Ma.SUPPORT_CORS_IMAGES&&!t,r=!xl(e)&&!t&&!Sl(e)&&"string"==typeof this._options.proxy&&Ma.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||xl(e)||Sl(e)||r||n?(o=e,r?[4,this.proxy(o)]:[3,2]):[2];case 1:o=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(El(o)||n)&&(r.crossOrigin="anonymous"),r.src=o,!0===r.complete&&setTimeout(function(){return e(r)},500),a._options.imageTimeout>0&&setTimeout(function(){return t("Timed out ("+a._options.imageTimeout+"ms) loading image")},a._options.imageTimeout)})];case 3:return[2,i.sent()]}})})},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(i,o){var a=Ma.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status)if("text"===a)i(s.response);else{var e=new FileReader;e.addEventListener("load",function(){return i(e.result)},!1),e.addEventListener("error",function(e){return o(e)},!1),e.readAsDataURL(s.response)}else o("Failed to proxy resource "+r+" with status code "+s.status)},s.onerror=o;var l=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+l+"url="+encodeURIComponent(e)+"&responseType="+a),"text"!==a&&s instanceof XMLHttpRequest&&(s.responseType=a),t._options.imageTimeout){var c=t._options.imageTimeout;s.timeout=c,s.ontimeout=function(){return o("Timed out ("+c+"ms) proxying "+r)}}s.send()})},e}(),bl=/^data:image\/svg\+xml/i,yl=/^data:image\/.*;base64,/i,wl=/^data:image\/.*/i,_l=function(e){return Ma.SUPPORT_SVG_DRAWING||!Cl(e)},xl=function(e){return wl.test(e)},El=function(e){return yl.test(e)},Sl=function(e){return"blob"===e.substr(0,4)},Cl=function(e){return"svg"===e.substr(-3).toLowerCase()||bl.test(e)},Tl=function(){function e(e,t){this.type=0,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),kl=function(e,t,n){return new Tl(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Ol=function(){function e(e,t,n,r){this.type=1,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=kl(this.start,this.startControl,t),i=kl(this.startControl,this.endControl,t),o=kl(this.endControl,this.end,t),a=kl(r,i,t),s=kl(i,o,t),l=kl(a,s,t);return n?new e(this.start,r,a,l):new e(l,s,o,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Ml=function(e){return 1===e.type},Il=function(){function e(e){var t=e.styles,n=e.bounds,r=Gn(t.borderTopLeftRadius,n.width,n.height),i=r[0],o=r[1],a=Gn(t.borderTopRightRadius,n.width,n.height),s=a[0],l=a[1],c=Gn(t.borderBottomRightRadius,n.width,n.height),u=c[0],d=c[1],h=Gn(t.borderBottomLeftRadius,n.width,n.height),f=h[0],p=h[1],g=[];g.push((i+s)/n.width),g.push((f+u)/n.width),g.push((o+p)/n.height),g.push((l+d)/n.height);var m=Math.max.apply(Math,g);m>1&&(i/=m,o/=m,s/=m,l/=m,u/=m,d/=m,f/=m,p/=m);var v=n.width-s,A=n.height-d,b=n.width-u,y=n.height-p,w=t.borderTopWidth,_=t.borderRightWidth,x=t.borderBottomWidth,E=t.borderLeftWidth,S=Vn(t.paddingTop,e.bounds.width),C=Vn(t.paddingRight,e.bounds.width),T=Vn(t.paddingBottom,e.bounds.width),k=Vn(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||o>0?Dl(n.left+E/3,n.top+w/3,i-E/3,o-w/3,el.TOP_LEFT):new Tl(n.left+E/3,n.top+w/3),this.topRightBorderDoubleOuterBox=i>0||o>0?Dl(n.left+v,n.top+w/3,s-_/3,l-w/3,el.TOP_RIGHT):new Tl(n.left+n.width-_/3,n.top+w/3),this.bottomRightBorderDoubleOuterBox=u>0||d>0?Dl(n.left+b,n.top+A,u-_/3,d-x/3,el.BOTTOM_RIGHT):new Tl(n.left+n.width-_/3,n.top+n.height-x/3),this.bottomLeftBorderDoubleOuterBox=f>0||p>0?Dl(n.left+E/3,n.top+y,f-E/3,p-x/3,el.BOTTOM_LEFT):new Tl(n.left+E/3,n.top+n.height-x/3),this.topLeftBorderDoubleInnerBox=i>0||o>0?Dl(n.left+2*E/3,n.top+2*w/3,i-2*E/3,o-2*w/3,el.TOP_LEFT):new Tl(n.left+2*E/3,n.top+2*w/3),this.topRightBorderDoubleInnerBox=i>0||o>0?Dl(n.left+v,n.top+2*w/3,s-2*_/3,l-2*w/3,el.TOP_RIGHT):new Tl(n.left+n.width-2*_/3,n.top+2*w/3),this.bottomRightBorderDoubleInnerBox=u>0||d>0?Dl(n.left+b,n.top+A,u-2*_/3,d-2*x/3,el.BOTTOM_RIGHT):new Tl(n.left+n.width-2*_/3,n.top+n.height-2*x/3),this.bottomLeftBorderDoubleInnerBox=f>0||p>0?Dl(n.left+2*E/3,n.top+y,f-2*E/3,p-2*x/3,el.BOTTOM_LEFT):new Tl(n.left+2*E/3,n.top+n.height-2*x/3),this.topLeftBorderStroke=i>0||o>0?Dl(n.left+E/2,n.top+w/2,i-E/2,o-w/2,el.TOP_LEFT):new Tl(n.left+E/2,n.top+w/2),this.topRightBorderStroke=i>0||o>0?Dl(n.left+v,n.top+w/2,s-_/2,l-w/2,el.TOP_RIGHT):new Tl(n.left+n.width-_/2,n.top+w/2),this.bottomRightBorderStroke=u>0||d>0?Dl(n.left+b,n.top+A,u-_/2,d-x/2,el.BOTTOM_RIGHT):new Tl(n.left+n.width-_/2,n.top+n.height-x/2),this.bottomLeftBorderStroke=f>0||p>0?Dl(n.left+E/2,n.top+y,f-E/2,p-x/2,el.BOTTOM_LEFT):new Tl(n.left+E/2,n.top+n.height-x/2),this.topLeftBorderBox=i>0||o>0?Dl(n.left,n.top,i,o,el.TOP_LEFT):new Tl(n.left,n.top),this.topRightBorderBox=s>0||l>0?Dl(n.left+v,n.top,s,l,el.TOP_RIGHT):new Tl(n.left+n.width,n.top),this.bottomRightBorderBox=u>0||d>0?Dl(n.left+b,n.top+A,u,d,el.BOTTOM_RIGHT):new Tl(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=f>0||p>0?Dl(n.left,n.top+y,f,p,el.BOTTOM_LEFT):new Tl(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||o>0?Dl(n.left+E,n.top+w,Math.max(0,i-E),Math.max(0,o-w),el.TOP_LEFT):new Tl(n.left+E,n.top+w),this.topRightPaddingBox=s>0||l>0?Dl(n.left+Math.min(v,n.width-_),n.top+w,v>n.width+_?0:Math.max(0,s-_),Math.max(0,l-w),el.TOP_RIGHT):new Tl(n.left+n.width-_,n.top+w),this.bottomRightPaddingBox=u>0||d>0?Dl(n.left+Math.min(b,n.width-E),n.top+Math.min(A,n.height-x),Math.max(0,u-_),Math.max(0,d-x),el.BOTTOM_RIGHT):new Tl(n.left+n.width-_,n.top+n.height-x),this.bottomLeftPaddingBox=f>0||p>0?Dl(n.left+E,n.top+Math.min(y,n.height-x),Math.max(0,f-E),Math.max(0,p-x),el.BOTTOM_LEFT):new Tl(n.left+E,n.top+n.height-x),this.topLeftContentBox=i>0||o>0?Dl(n.left+E+k,n.top+w+S,Math.max(0,i-(E+k)),Math.max(0,o-(w+S)),el.TOP_LEFT):new Tl(n.left+E+k,n.top+w+S),this.topRightContentBox=s>0||l>0?Dl(n.left+Math.min(v,n.width+E+k),n.top+w+S,v>n.width+E+k?0:s-E+k,l-(w+S),el.TOP_RIGHT):new Tl(n.left+n.width-(_+C),n.top+w+S),this.bottomRightContentBox=u>0||d>0?Dl(n.left+Math.min(b,n.width-(E+k)),n.top+Math.min(A,n.height+w+S),Math.max(0,u-(_+C)),d-(x+T),el.BOTTOM_RIGHT):new Tl(n.left+n.width-(_+C),n.top+n.height-(x+T)),this.bottomLeftContentBox=f>0||p>0?Dl(n.left+E+k,n.top+y,Math.max(0,f-(E+k)),p-(x+T),el.BOTTOM_LEFT):new Tl(n.left+E+k,n.top+n.height-(x+T))}return e}();!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(el||(el={}));var Dl=function(e,t,n,r,i){var o=(Math.sqrt(2)-1)/3*4,a=n*o,s=r*o,l=e+n,c=t+r;switch(i){case el.TOP_LEFT:return new Ol(new Tl(e,c),new Tl(e,c-s),new Tl(l-a,t),new Tl(l,t));case el.TOP_RIGHT:return new Ol(new Tl(e,t),new Tl(e+a,t),new Tl(l,c-s),new Tl(l,c));case el.BOTTOM_RIGHT:return new Ol(new Tl(l,t),new Tl(l,t+s),new Tl(e+a,c),new Tl(e,c));case el.BOTTOM_LEFT:default:return new Ol(new Tl(l,c),new Tl(l-a,c),new Tl(e,t+s),new Tl(e,t))}},Nl=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Rl=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Ll=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Bl=function(){function e(e,t,n){this.offsetX=e,this.offsetY=t,this.matrix=n,this.type=0,this.target=6}return e}(),Pl=function(){function e(e,t){this.path=e,this.target=t,this.type=1}return e}(),Fl=function(){function e(e){this.opacity=e,this.type=2,this.target=6}return e}(),$l=function(e){return 0===e.type},jl=function(e){return 1===e.type},Hl=function(e){return 2===e.type},Ul=function(e,t){return e.length===t.length&&e.some(function(e,n){return e===t[n]})},Ql=function(e,t,n,r,i){return e.map(function(e,o){switch(o){case 0:return e.add(t,n);case 1:return e.add(t+r,n);case 2:return e.add(t+r,n+i);case 3:return e.add(t,n+i)}return e})},zl=function(){function e(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),Wl=function(){function e(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Il(this.container),this.container.styles.opacity<1&&this.effects.push(new Fl(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new Bl(n,r,i))}if(0!==this.container.styles.overflowX){var o=Nl(this.curves),a=Ll(this.curves);Ul(o,a)?this.effects.push(new Pl(o,6)):(this.effects.push(new Pl(o,2)),this.effects.push(new Pl(a,4)))}}return e.prototype.getEffects=function(e){for(var t=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(e){return!jl(e)});if(t||0!==n.container.styles.position||!n.parent){if(r.unshift.apply(r,i),t=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var o=Nl(n.curves),a=Ll(n.curves);Ul(o,a)||r.unshift(new Pl(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(t){return co(t.target,e)})},e}(),Gl=function(e,t,n,r){e.container.elements.forEach(function(i){var o=co(i.flags,4),a=co(i.flags,2),s=new Wl(i,e);co(i.styles.display,2048)&&r.push(s);var l=co(i.flags,8)?[]:r;if(o||a){var c=o||i.styles.isPositioned()?n:t,u=new zl(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var d=i.styles.zIndex.order;if(d<0){var h=0;c.negativeZIndex.some(function(e,t){return d>e.element.container.styles.zIndex.order?(h=t,!1):h>0}),c.negativeZIndex.splice(h,0,u)}else if(d>0){var f=0;c.positiveZIndex.some(function(e,t){return d>=e.element.container.styles.zIndex.order?(f=t+1,!1):f>0}),c.positiveZIndex.splice(f,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);Gl(s,u,o?u:n,l)}else i.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),Gl(s,t,n,l);co(i.flags,8)&&Vl(i,l)})},Vl=function(e,t){for(var n=e instanceof Ka?e.start:1,r=e instanceof Ka&&e.reversed,i=0;i<t.length;i++){var o=t[i];o.container instanceof Va&&"number"==typeof o.container.value&&0!==o.container.value&&(n=o.container.value),o.listValue=Xs(n,o.container.styles.listStyleType,!0),n+=r?-1:1}},Kl=function(e){var t=new Wl(e,null),n=new zl(t),r=[];return Gl(t,n,n,r),Vl(t.container,r),n},Yl=function(e,t){switch(t){case 0:return ec(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return ec(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return ec(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);default:return ec(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},ql=function(e,t){switch(t){case 0:return ec(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return ec(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return ec(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);default:return ec(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},Xl=function(e,t){switch(t){case 0:return ec(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return ec(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return ec(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);default:return ec(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},Jl=function(e,t){switch(t){case 0:return Zl(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Zl(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Zl(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);default:return Zl(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Zl=function(e,t){var n=[];return Ml(e)?n.push(e.subdivide(.5,!1)):n.push(e),Ml(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},ec=function(e,t,n,r){var i=[];return Ml(e)?i.push(e.subdivide(.5,!1)):i.push(e),Ml(n)?i.push(n.subdivide(.5,!0)):i.push(n),Ml(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),Ml(t)?i.push(t.subdivide(.5,!1).reverse()):i.push(t),i},tc=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},nc=function(e){var t=e.styles,n=e.bounds,r=Vn(t.paddingLeft,n.width),i=Vn(t.paddingRight,n.width),o=Vn(t.paddingTop,n.width),a=Vn(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,o+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+i),-(t.borderTopWidth+t.borderBottomWidth+o+a))},rc=function(e,t){return 0===e?t.bounds:2===e?nc(t):tc(t)},ic=function(e,t){return 0===e?t.bounds:2===e?nc(t):tc(t)},oc=function(e,t,n){var r=rc(cc(e.styles.backgroundOrigin,t),e),i=ic(cc(e.styles.backgroundClip,t),e),o=lc(cc(e.styles.backgroundSize,t),n,r),a=o[0],s=o[1],l=Gn(cc(e.styles.backgroundPosition,t),r.width-a,r.height-s);return[uc(cc(e.styles.backgroundRepeat,t),l,o,r,i),Math.round(r.left+l[0]),Math.round(r.top+l[1]),a,s]},ac=function(e){return Nn(e)&&e.value===$r.AUTO},sc=function(e){return"number"==typeof e},lc=function(e,t,n){var r=t[0],i=t[1],o=t[2],a=e[0],s=e[1];if(!a)return[0,0];if(Hn(a)&&s&&Hn(s))return[Vn(a,n.width),Vn(s,n.height)];var l=sc(o);if(Nn(a)&&(a.value===$r.CONTAIN||a.value===$r.COVER))return sc(o)?n.width/n.height<o!=(a.value===$r.COVER)?[n.width,n.width/o]:[n.height*o,n.height]:[n.width,n.height];var c=sc(r),u=sc(i),d=c||u;if(ac(a)&&(!s||ac(s)))return c&&u?[r,i]:l||d?d&&l?[c?r:i*o,u?i:r/o]:[c?r:n.width,u?i:n.height]:[n.width,n.height];if(l){var h=0,f=0;return Hn(a)?h=Vn(a,n.width):Hn(s)&&(f=Vn(s,n.height)),ac(a)?h=f*o:s&&!ac(s)||(f=h/o),[h,f]}var p=null,g=null;if(Hn(a)?p=Vn(a,n.width):s&&Hn(s)&&(g=Vn(s,n.height)),null===p||s&&!ac(s)||(g=c&&u?p/r*i:n.height),null!==g&&ac(a)&&(p=c&&u?g/i*r:n.width),null!==p&&null!==g)return[p,g];throw new Error("Unable to calculate background-size for element")},cc=function(e,t){var n=e[t];return void 0===n?e[0]:n},uc=function(e,t,n,r,i){var o=t[0],a=t[1],s=n[0],l=n[1];switch(e){case 2:return[new Tl(Math.round(r.left),Math.round(r.top+a)),new Tl(Math.round(r.left+r.width),Math.round(r.top+a)),new Tl(Math.round(r.left+r.width),Math.round(l+r.top+a)),new Tl(Math.round(r.left),Math.round(l+r.top+a))];case 3:return[new Tl(Math.round(r.left+o),Math.round(r.top)),new Tl(Math.round(r.left+o+s),Math.round(r.top)),new Tl(Math.round(r.left+o+s),Math.round(r.height+r.top)),new Tl(Math.round(r.left+o),Math.round(r.height+r.top))];case 1:return[new Tl(Math.round(r.left+o),Math.round(r.top+a)),new Tl(Math.round(r.left+o+s),Math.round(r.top+a)),new Tl(Math.round(r.left+o+s),Math.round(r.top+a+l)),new Tl(Math.round(r.left+o),Math.round(r.top+a+l))];default:return[new Tl(Math.round(i.left),Math.round(i.top)),new Tl(Math.round(i.left+i.width),Math.round(i.top)),new Tl(Math.round(i.left+i.width),Math.round(i.height+i.top)),new Tl(Math.round(i.left),Math.round(i.height+i.top))]}},dc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",hc="Hidden Text",fc=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),o=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",o.appendChild(n),r.src=dc,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(hc)),n.appendChild(i),n.appendChild(r);var a=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(hc)),n.style.lineHeight="normal",r.style.verticalAlign="super";var s=r.offsetTop-n.offsetTop+2;return o.removeChild(n),{baseline:a,middle:s}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),pc=function(){function e(e,t){this.context=e,this.options=t}return e}(),gc=1e4,mc=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new fc(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return t(n,e),n.prototype.applyEffects=function(e){for(var t=this;this._activeEffects.length;)this.popEffect();e.forEach(function(e){return t.applyEffect(e)})},n.prototype.applyEffect=function(e){this.ctx.save(),Hl(e)&&(this.ctx.globalAlpha=e.opacity),$l(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),jl(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},n.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},n.prototype.renderStack=function(e){return r(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return e.element.container.styles.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},n.prototype.renderNode=function(e){return r(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return co(e.container.flags,16),e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},n.prototype.renderTextWithLetterSpacing=function(e,t,n){var r=this;0===t?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n):La(e.text).reduce(function(t,i){return r.ctx.fillText(i,t,e.bounds.top+n),t+r.ctx.measureText(i).width},e.bounds.left)},n.prototype.createFontStyle=function(e){var t=e.fontVariant.filter(function(e){return"normal"===e||"small-caps"===e}).join(""),n=wc(e.fontFamily).join(", "),r=In(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,r,n].join(" "),n,r]},n.prototype.renderTextNode=function(e,t){return r(this,void 0,void 0,function(){var n,r,o,a,s,l,c,u,d=this;return i(this,function(i){return n=this.createFontStyle(t),r=n[0],o=n[1],a=n[2],this.ctx.font=r,this.ctx.direction=1===t.direction?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",s=this.fontMetrics.getMetrics(o,a),l=s.baseline,c=s.middle,u=t.paintOrder,e.textBounds.forEach(function(e){u.forEach(function(n){switch(n){case 0:d.ctx.fillStyle=ir(t.color),d.renderTextWithLetterSpacing(e,t.letterSpacing,l);var r=t.textShadow;r.length&&e.text.trim().length&&(r.slice(0).reverse().forEach(function(n){d.ctx.shadowColor=ir(n.color),d.ctx.shadowOffsetX=n.offsetX.number*d.options.scale,d.ctx.shadowOffsetY=n.offsetY.number*d.options.scale,d.ctx.shadowBlur=n.blur.number,d.renderTextWithLetterSpacing(e,t.letterSpacing,l)}),d.ctx.shadowColor="",d.ctx.shadowOffsetX=0,d.ctx.shadowOffsetY=0,d.ctx.shadowBlur=0),t.textDecorationLine.length&&(d.ctx.fillStyle=ir(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(t){switch(t){case 1:d.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+l),e.bounds.width,1);break;case 2:d.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:d.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+c),e.bounds.width,1)}}));break;case 1:t.webkitTextStrokeWidth&&e.text.trim().length&&(d.ctx.strokeStyle=ir(t.webkitTextStrokeColor),d.ctx.lineWidth=t.webkitTextStrokeWidth,d.ctx.lineJoin=window.chrome?"miter":"round",d.ctx.strokeText(e.text,e.bounds.left,e.bounds.top+l)),d.ctx.strokeStyle="",d.ctx.lineWidth=0,d.ctx.lineJoin="miter"}})}),[2]})})},n.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var r=nc(e),i=Ll(t);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},n.prototype.renderNodeContent=function(e){return r(this,void 0,void 0,function(){var t,r,o,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w;return i(this,function(i){switch(i.label){case 0:this.applyEffects(e.getEffects(4)),t=e.container,r=e.curves,o=t.styles,s=0,l=t.textNodes,i.label=1;case 1:return s<l.length?(c=l[s],[4,this.renderTextNode(c,o)]):[3,4];case 2:i.sent(),i.label=3;case 3:return s++,[3,1];case 4:if(!(t instanceof za))return[3,8];i.label=5;case 5:return i.trys.push([5,7,,8]),[4,this.context.cache.match(t.src)];case 6:return A=i.sent(),this.renderReplacedElement(t,r,A),[3,8];case 7:return i.sent(),this.context.logger.error("Error loading image "+t.src),[3,8];case 8:if(t instanceof Wa&&this.renderReplacedElement(t,r,t.canvas),!(t instanceof Ga))return[3,12];i.label=9;case 9:return i.trys.push([9,11,,12]),[4,this.context.cache.match(t.svg)];case 10:return A=i.sent(),this.renderReplacedElement(t,r,A),[3,12];case 11:return i.sent(),this.context.logger.error("Error loading svg "+t.svg.substring(0,255)),[3,12];case 12:return t instanceof as&&t.tree?[4,new n(this.context,{scale:this.options.scale,backgroundColor:t.backgroundColor,x:0,y:0,width:t.width,height:t.height}).render(t.tree)]:[3,14];case 13:u=i.sent(),t.width&&t.height&&this.ctx.drawImage(u,0,0,t.width,t.height,t.bounds.left,t.bounds.top,t.bounds.width,t.bounds.height),i.label=14;case 14:if(t instanceof rs&&(d=Math.min(t.bounds.width,t.bounds.height),t.type===Za?t.checked&&(this.ctx.save(),this.path([new Tl(t.bounds.left+.39363*d,t.bounds.top+.79*d),new Tl(t.bounds.left+.16*d,t.bounds.top+.5549*d),new Tl(t.bounds.left+.27347*d,t.bounds.top+.44071*d),new Tl(t.bounds.left+.39694*d,t.bounds.top+.5649*d),new Tl(t.bounds.left+.72983*d,t.bounds.top+.23*d),new Tl(t.bounds.left+.84*d,t.bounds.top+.34085*d),new Tl(t.bounds.left+.39363*d,t.bounds.top+.79*d)]),this.ctx.fillStyle=ir(ns),this.ctx.fill(),this.ctx.restore()):t.type===es&&t.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.bounds.left+d/2,t.bounds.top+d/2,d/4,0,2*Math.PI,!0),this.ctx.fillStyle=ir(ns),this.ctx.fill(),this.ctx.restore())),vc(t)&&t.value.length){switch(h=this.createFontStyle(o),y=h[0],f=h[1],p=this.fontMetrics.getMetrics(y,f).baseline,this.ctx.font=y,this.ctx.fillStyle=ir(o.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=bc(t.styles.textAlign),w=nc(t),g=0,t.styles.textAlign){case 1:g+=w.width/2;break;case 2:g+=w.width}m=w.add(g,0,0,-w.height/2+1),this.ctx.save(),this.path([new Tl(w.left,w.top),new Tl(w.left+w.width,w.top),new Tl(w.left+w.width,w.top+w.height),new Tl(w.left,w.top+w.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ia(t.value,m),o.letterSpacing,p),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!co(t.styles.display,2048))return[3,20];if(null===t.styles.listStyleImage)return[3,19];if(0!==(v=t.styles.listStyleImage).type)return[3,18];A=void 0,b=v.url,i.label=15;case 15:return i.trys.push([15,17,,18]),[4,this.context.cache.match(b)];case 16:return A=i.sent(),this.ctx.drawImage(A,t.bounds.left-(A.width+10),t.bounds.top),[3,18];case 17:return i.sent(),this.context.logger.error("Error loading list-style-image "+b),[3,18];case 18:return[3,20];case 19:e.listValue&&-1!==t.styles.listStyleType&&(y=this.createFontStyle(o)[0],this.ctx.font=y,this.ctx.fillStyle=ir(o.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",w=new a(t.bounds.left,t.bounds.top+Vn(t.styles.paddingTop,t.bounds.width),t.bounds.width,Ei(o.lineHeight,o.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ia(e.listValue,w),o.letterSpacing,Ei(o.lineHeight,o.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),i.label=20;case 20:return[2]}})})},n.prototype.renderStackContent=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,a,s,l,c,u,d,h,f,p,g,m;return i(this,function(i){switch(i.label){case 0:return co(e.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:i.sent(),t=0,n=e.negativeZIndex,i.label=2;case 2:return t<n.length?(m=n[t],[4,this.renderStack(m)]):[3,5];case 3:i.sent(),i.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:i.sent(),r=0,o=e.nonInlineLevel,i.label=7;case 7:return r<o.length?(m=o[r],[4,this.renderNode(m)]):[3,10];case 8:i.sent(),i.label=9;case 9:return r++,[3,7];case 10:a=0,s=e.nonPositionedFloats,i.label=11;case 11:return a<s.length?(m=s[a],[4,this.renderStack(m)]):[3,14];case 12:i.sent(),i.label=13;case 13:return a++,[3,11];case 14:l=0,c=e.nonPositionedInlineLevel,i.label=15;case 15:return l<c.length?(m=c[l],[4,this.renderStack(m)]):[3,18];case 16:i.sent(),i.label=17;case 17:return l++,[3,15];case 18:u=0,d=e.inlineLevel,i.label=19;case 19:return u<d.length?(m=d[u],[4,this.renderNode(m)]):[3,22];case 20:i.sent(),i.label=21;case 21:return u++,[3,19];case 22:h=0,f=e.zeroOrAutoZIndexOrTransformedOrOpacity,i.label=23;case 23:return h<f.length?(m=f[h],[4,this.renderStack(m)]):[3,26];case 24:i.sent(),i.label=25;case 25:return h++,[3,23];case 26:p=0,g=e.positiveZIndex,i.label=27;case 27:return p<g.length?(m=g[p],[4,this.renderStack(m)]):[3,30];case 28:i.sent(),i.label=29;case 29:return p++,[3,27];case 30:return[2]}})})},n.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},n.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},n.prototype.formatPath=function(e){var t=this;e.forEach(function(e,n){var r=Ml(e)?e.start:e;0===n?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),Ml(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})},n.prototype.renderRepeat=function(e,t,n,r){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},n.prototype.resizeImage=function(e,t,n){var r;if(e.width===t&&e.height===n)return e;var i=(null!==(r=this.canvas.ownerDocument)&&void 0!==r?r:document).createElement("canvas");return i.width=Math.max(1,t),i.height=Math.max(1,n),i.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t,n),i},n.prototype.renderBackgroundImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,a,s;return i(this,function(l){switch(l.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C,T,k,O,M,I,D,N,R,L;return i(this,function(i){switch(i.label){case 0:if(0!==n.type)return[3,5];o=void 0,a=n.url,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.context.cache.match(a)];case 2:return o=i.sent(),[3,4];case 3:return i.sent(),r.context.logger.error("Error loading background-image "+a),[3,4];case 4:return o&&(s=oc(e,t,[o.width,o.height,o.width/o.height]),y=s[0],C=s[1],T=s[2],x=s[3],E=s[4],A=r.ctx.createPattern(r.resizeImage(o,x,E),"repeat"),r.renderRepeat(y,A,C,T)),[3,6];case 5:Lr(n)?(l=oc(e,t,[null,null,null]),y=l[0],C=l[1],T=l[2],x=l[3],E=l[4],c=Ar(n.angle,x,E),u=c[0],d=c[1],h=c[2],f=c[3],p=c[4],(g=document.createElement("canvas")).width=x,g.height=E,m=g.getContext("2d"),v=m.createLinearGradient(d,f,h,p),mr(n.stops,u).forEach(function(e){return v.addColorStop(e.stop,ir(e.color))}),m.fillStyle=v,m.fillRect(0,0,x,E),x>0&&E>0&&(A=r.ctx.createPattern(g,"repeat"),r.renderRepeat(y,A,C,T))):Br(n)&&(b=oc(e,t,[null,null,null]),y=b[0],w=b[1],_=b[2],x=b[3],E=b[4],S=0===n.position.length?[zn]:n.position,C=Vn(S[0],x),T=Vn(S[S.length-1],E),k=wr(n,C,T,x,E),O=k[0],M=k[1],O>0&&M>0&&(I=r.ctx.createRadialGradient(w+C,_+T,0,w+C,_+T,O),mr(n.stops,2*O).forEach(function(e){return I.addColorStop(e.stop,ir(e.color))}),r.path(y),r.ctx.fillStyle=I,O!==M?(D=e.bounds.left+.5*e.bounds.width,N=e.bounds.top+.5*e.bounds.height,L=1/(R=M/O),r.ctx.save(),r.ctx.translate(D,N),r.ctx.transform(1,0,0,R,0,0),r.ctx.translate(-D,-N),r.ctx.fillRect(w,L*(_-N)+N,x,E*L),r.ctx.restore()):r.ctx.fill())),i.label=6;case 6:return t--,[2]}})},r=this,o=0,a=e.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return o<a.length?(s=a[o],[5,n(s)]):[3,4];case 2:l.sent(),l.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},n.prototype.renderSolidBorder=function(e,t,n){return r(this,void 0,void 0,function(){return i(this,function(r){return this.path(Yl(n,t)),this.ctx.fillStyle=ir(e),this.ctx.fill(),[2]})})},n.prototype.renderDoubleBorder=function(e,t,n,o){return r(this,void 0,void 0,function(){var r,a;return i(this,function(i){switch(i.label){case 0:return t<3?[4,this.renderSolidBorder(e,n,o)]:[3,2];case 1:return i.sent(),[2];case 2:return r=ql(o,n),this.path(r),this.ctx.fillStyle=ir(e),this.ctx.fill(),a=Xl(o,n),this.path(a),this.ctx.fill(),[2]}})})},n.prototype.renderNodeBackgroundAndBorders=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,a,s,l,c,u=this;return i(this,function(i){switch(i.label){case 0:return this.applyEffects(e.getEffects(2)),t=e.container.styles,n=!rr(t.backgroundColor)||t.backgroundImage.length,r=[{style:t.borderTopStyle,color:t.borderTopColor,width:t.borderTopWidth},{style:t.borderRightStyle,color:t.borderRightColor,width:t.borderRightWidth},{style:t.borderBottomStyle,color:t.borderBottomColor,width:t.borderBottomWidth},{style:t.borderLeftStyle,color:t.borderLeftColor,width:t.borderLeftWidth}],o=Ac(cc(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),rr(t.backgroundColor)||(this.ctx.fillStyle=ir(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:i.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(t){u.ctx.save();var n=Nl(e.curves),r=t.inset?0:gc,i=Ql(n,-r+(t.inset?1:-1)*t.spread.number,(t.inset?1:-1)*t.spread.number,t.spread.number*(t.inset?-2:2),t.spread.number*(t.inset?-2:2));t.inset?(u.path(n),u.ctx.clip(),u.mask(i)):(u.mask(n),u.ctx.clip(),u.path(i)),u.ctx.shadowOffsetX=t.offsetX.number+r,u.ctx.shadowOffsetY=t.offsetY.number,u.ctx.shadowColor=ir(t.color),u.ctx.shadowBlur=t.blur.number,u.ctx.fillStyle=t.inset?ir(t.color):"rgba(0,0,0,1)",u.ctx.fill(),u.ctx.restore()}),i.label=2;case 2:a=0,s=0,l=r,i.label=3;case 3:return s<l.length?0!==(c=l[s]).style&&!rr(c.color)&&c.width>0?2!==c.style?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,a,e.curves,2)]:[3,11]:[3,13];case 4:return i.sent(),[3,11];case 5:return 3!==c.style?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,a,e.curves,3)];case 6:return i.sent(),[3,11];case 7:return 4!==c.style?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,a,e.curves)];case 8:return i.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,a,e.curves)];case 10:i.sent(),i.label=11;case 11:a++,i.label=12;case 12:return s++,[3,3];case 13:return[2]}})})},n.prototype.renderDashedDottedBorder=function(e,t,n,o,a){return r(this,void 0,void 0,function(){var r,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w;return i(this,function(i){return this.ctx.save(),r=Jl(o,n),s=Yl(o,n),2===a&&(this.path(s),this.ctx.clip()),Ml(s[0])?(l=s[0].start.x,c=s[0].start.y):(l=s[0].x,c=s[0].y),Ml(s[1])?(u=s[1].end.x,d=s[1].end.y):(u=s[1].x,d=s[1].y),h=0===n||2===n?Math.abs(l-u):Math.abs(c-d),this.ctx.beginPath(),3===a?this.formatPath(r):this.formatPath(s.slice(0,2)),f=t<3?3*t:2*t,p=t<3?2*t:t,3===a&&(f=t,p=t),g=!0,h<=2*f?g=!1:h<=2*f+p?(f*=m=h/(2*f+p),p*=m):(v=Math.floor((h+p)/(f+p)),A=(h-v*f)/(v-1),p=(b=(h-(v+1)*f)/v)<=0||Math.abs(p-A)<Math.abs(p-b)?A:b),g&&(3===a?this.ctx.setLineDash([0,f+p]):this.ctx.setLineDash([f,p])),3===a?(this.ctx.lineCap="round",this.ctx.lineWidth=t):this.ctx.lineWidth=2*t+1.1,this.ctx.strokeStyle=ir(e),this.ctx.stroke(),this.ctx.setLineDash([]),2===a&&(Ml(s[0])&&(y=s[3],w=s[0],this.ctx.beginPath(),this.formatPath([new Tl(y.end.x,y.end.y),new Tl(w.start.x,w.start.y)]),this.ctx.stroke()),Ml(s[1])&&(y=s[1],w=s[2],this.ctx.beginPath(),this.formatPath([new Tl(y.end.x,y.end.y),new Tl(w.start.x,w.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},n.prototype.render=function(e){return r(this,void 0,void 0,function(){var t;return i(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ir(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),t=Kl(e),[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},n}(pc),vc=function(e){return e instanceof os||e instanceof is||e instanceof rs&&e.type!==es&&e.type!==Za},Ac=function(e,t){switch(e){case 0:return Nl(t);case 2:return Rl(t);default:return Ll(t)}},bc=function(e){switch(e){case 1:return"center";case 2:return"right";default:return"left"}},yc=["-apple-system","system-ui"],wc=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(e){return-1===yc.indexOf(e)}):e},_c=function(e){function n(t,n){var r=e.call(this,t,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return t(n,e),n.prototype.render=function(e){return r(this,void 0,void 0,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return t=ka(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,xc(t)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ir(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},n}(pc),xc=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},Ec=function(){function e(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,o([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,o([this.id,this.getTime()+"ms"],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.warn?console.warn.apply(console,o([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,o([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},e.instances={},e}(),Sc=function(){function e(t,n){var r;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new Ec({id:this.instanceName,enabled:t.logging}),this.cache=null!==(r=t.cache)&&void 0!==r?r:new Al(this,t)}return e.instanceCount=1,e}(),Cc=function(e,t){return void 0===t&&(t={}),Tc(e,t)};"undefined"!=typeof window&&vl.setContext(window);var Tc=function(e,t){return r(void 0,void 0,void 0,function(){var r,o,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C,T,k,O,M,I,D,N,R,L,B,P,F,$,j,H,U,Q,z;return i(this,function(i){switch(i.label){case 0:if(!e||"object"!=typeof e)return[2,Promise.reject("Invalid element provided as first argument")];if(!(r=e.ownerDocument))throw new Error("Element is not attached to a Document");if(!(o=r.defaultView))throw new Error("Document is not attached to a Window");return c={allowTaint:null!==(k=t.allowTaint)&&void 0!==k&&k,imageTimeout:null!==(O=t.imageTimeout)&&void 0!==O?O:15e3,proxy:t.proxy,useCORS:null!==(M=t.useCORS)&&void 0!==M&&M},u=n({logging:null===(I=t.logging)||void 0===I||I,cache:t.cache},c),d={windowWidth:null!==(D=t.windowWidth)&&void 0!==D?D:o.innerWidth,windowHeight:null!==(N=t.windowHeight)&&void 0!==N?N:o.innerHeight,scrollX:null!==(R=t.scrollX)&&void 0!==R?R:o.pageXOffset,scrollY:null!==(L=t.scrollY)&&void 0!==L?L:o.pageYOffset},h=new a(d.scrollX,d.scrollY,d.windowWidth,d.windowHeight),f=new Sc(u,h),p=null!==(B=t.foreignObjectRendering)&&void 0!==B&&B,g={allowTaint:null!==(P=t.allowTaint)&&void 0!==P&&P,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:p,copyStyles:p},f.logger.debug("Starting document clone with size "+h.width+"x"+h.height+" scrolled to "+-h.left+","+-h.top),m=new Zs(f,e,g),(v=m.clonedReferenceElement)?[4,m.toIFrame(r,h)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return A=i.sent(),b=_s(v)||ys(v)?l(v.ownerDocument):s(f,v),y=b.width,w=b.height,_=b.left,x=b.top,E=kc(f,v,t.backgroundColor),S={canvas:t.canvas,backgroundColor:E,scale:null!==($=null!==(F=t.scale)&&void 0!==F?F:o.devicePixelRatio)&&void 0!==$?$:1,x:(null!==(j=t.x)&&void 0!==j?j:0)+_,y:(null!==(H=t.y)&&void 0!==H?H:0)+x,width:null!==(U=t.width)&&void 0!==U?U:Math.ceil(y),height:null!==(Q=t.height)&&void 0!==Q?Q:Math.ceil(w)},p?(f.logger.debug("Document cloned, using foreign object rendering"),[4,new _c(f,S).render(v)]):[3,3];case 2:return C=i.sent(),[3,5];case 3:return f.logger.debug("Document cloned, element located at "+_+","+x+" with size "+y+"x"+w+" using computed rendering"),f.logger.debug("Starting DOM parsing"),T=us(f,v),E===T.styles.backgroundColor&&(T.styles.backgroundColor=hr.TRANSPARENT),f.logger.debug("Starting renderer for element at "+S.x+","+S.y+" with size "+S.width+"x"+S.height),[4,new mc(f,S).render(T)];case 4:C=i.sent(),i.label=5;case 5:return(null===(z=t.removeContainer)||void 0===z||z)&&(Zs.destroy(A)||f.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),f.logger.debug("Finished rendering"),[2,C]}})})},kc=function(e,t,n){var r=t.ownerDocument,i=r.documentElement?dr(e,getComputedStyle(r.documentElement).backgroundColor):hr.TRANSPARENT,o=r.body?dr(e,getComputedStyle(r.body).backgroundColor):hr.TRANSPARENT,a="string"==typeof n?dr(e,n):null===n?hr.TRANSPARENT:4294967295;return t===r.documentElement?rr(i)?rr(o)?a:o:i:a};return Cc}()),oz.exports),sz=i(az);function lz(){if(tz)return ez;tz=1;var e=EC();return ZQ||(ZQ=1,pC()),ez=e}var cz,uz,dz,hz,fz,pz,gz={};function mz(){if(hz)return dz;hz=1;var e=lz();return nz||(nz=1,FE()),rz||(rz=1,lC()),function(){if(cz)return gz;cz=1;var e=sn(),t=T(),n=ln(),r=HS(),i=$e(),o=NS();e({target:"Promise",stat:!0,forced:!0},{try:function(e){var a=n(arguments,1),s=r.f(this),l=o(function(){return t(i(e),void 0,a)});return(l.error?s.reject:s.resolve)(l.value),s.promise}})}(),uz||(uz=1,dC()),dz=e}function vz(){return pz?fz:(pz=1,fz=mz())}var Az=i(vz());function bz(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Az.resolve(l).then(r,i)}function yz(e){return function(){var t=this,n=arguments;return new Az(function(r,i){var o=e.apply(t,n);function a(e){bz(o,r,i,a,s,"next",e)}function s(e){bz(o,r,i,a,s,"throw",e)}a(void 0)})}}var wz,_z,xz,Ez,Sz,Cz,Tz,kz={exports:{}},Oz={exports:{}};function Mz(){return wz||(wz=1,function(e){var t=ml(),n=Fl();function r(i){return e.exports=r="function"==typeof t&&"symbol"==typeof n?function(e){return typeof e}:function(e){return e&&"function"==typeof t&&e.constructor===t&&e!==t.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Oz)),Oz.exports}function Iz(){return xz?_z:(xz=1,_z=Wh())}function Dz(){return Sz?Ez:(Sz=1,Ez=Iz())}function Nz(){return Tz?Cz:(Tz=1,Cz=Dz())}var Rz,Lz,Bz,Pz,Fz,$z,jz,Hz,Uz,Qz,zz,Wz,Gz,Vz,Kz,Yz,qz={};function Xz(){return Bz?Lz:(Bz=1,function(){if(Rz)return qz;Rz=1;var e=sn(),t=k(),n=ci(),r=t([].reverse),i=[1,2];e({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return n(this)&&(this.length=this.length),r(this)}})}(),Lz=eo()("Array","reverse"))}function Jz(){if(Fz)return Pz;Fz=1;var e=De(),t=Xz(),n=Array.prototype;return Pz=function(r){var i=r.reverse;return r===n||e(n,r)&&i===n.reverse?t:i}}function Zz(){return jz?$z:(jz=1,$z=Jz())}function eW(){return Uz?Hz:(Uz=1,Hz=Zz())}function tW(){return zz?Qz:(zz=1,Qz=eW())}function nW(){return Gz?Wz:(Gz=1,Wz=tW())}var rW=function(){if(Yz)return Kz;Yz=1;var e=(Vz||(Vz=1,function(e){var t=Mz().default,n=fa(),r=ml(),i=Cu(),o=lu(),a=Nz(),s=Hb(),l=xc(),c=vz(),u=nW(),d=ly();function h(){e.exports=h=function(){return p},e.exports.__esModule=!0,e.exports.default=e.exports;var f,p={},g=Object.prototype,m=g.hasOwnProperty,v=n||function(e,t,n){e[t]=n.value},A="function"==typeof r?r:{},b=A.iterator||"@@iterator",y=A.asyncIterator||"@@asyncIterator",w=A.toStringTag||"@@toStringTag";function _(e,t,r){return n(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{_({},"")}catch(f){_=function(e,t,n){return e[t]=n}}function x(e,t,n,r){var o=t&&t.prototype instanceof M?t:M,a=i(o.prototype),s=new U(r||[]);return v(a,"_invoke",{value:F(e,n,s)}),a}function E(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}p.wrap=x;var S="suspendedStart",C="suspendedYield",T="executing",k="completed",O={};function M(){}function I(){}function D(){}var N={};_(N,b,function(){return this});var R=o&&o(o(Q([])));R&&R!==g&&m.call(R,b)&&(N=R);var L=D.prototype=M.prototype=i(N);function B(e){var t;a(t=["next","throw","return"]).call(t,function(t){_(e,t,function(e){return this._invoke(t,e)})})}function P(e,n){function r(i,o,a,s){var l=E(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==t(u)&&m.call(u,"__await")?n.resolve(u.__await).then(function(e){r("next",e,a,s)},function(e){r("throw",e,a,s)}):n.resolve(u).then(function(e){c.value=e,a(c)},function(e){return r("throw",e,a,s)})}s(l.arg)}var i;v(this,"_invoke",{value:function(e,t){function o(){return new n(function(n,i){r(e,t,n,i)})}return i=i?i.then(o,o):o()}})}function F(e,t,n){var r=S;return function(i,o){if(r===T)throw Error("Generator is already running");if(r===k){if("throw"===i)throw o;return{value:f,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=$(a,n);if(s){if(s===O)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===S)throw r=k,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=T;var l=E(e,t,n);if("normal"===l.type){if(r=n.done?k:C,l.arg===O)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=k,n.method="throw",n.arg=l.arg)}}}function $(e,t){var n=t.method,r=e.iterator[n];if(r===f)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=f,$(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),O;var i=E(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,O;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=f),t.delegate=null,O):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,O)}function j(e){var t,n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),s(t=this.tryEntries).call(t,n)}function H(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function U(e){this.tryEntries=[{tryLoc:"root"}],a(e).call(e,j,this),this.reset(!0)}function Q(e){if(e||""===e){var n=e[b];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(m.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=f,t.done=!0,t};return i.next=i}}throw new TypeError(t(e)+" is not iterable")}return I.prototype=D,v(L,"constructor",{value:D,configurable:!0}),v(D,"constructor",{value:I,configurable:!0}),I.displayName=_(D,w,"GeneratorFunction"),p.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===I||"GeneratorFunction"===(t.displayName||t.name))},p.mark=function(e){return l?l(e,D):(e.__proto__=D,_(e,w,"GeneratorFunction")),e.prototype=i(L),e},p.awrap=function(e){return{__await:e}},B(P.prototype),_(P.prototype,y,function(){return this}),p.AsyncIterator=P,p.async=function(e,t,n,r,i){void 0===i&&(i=c);var o=new P(x(e,t,n,r),i);return p.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},B(L),_(L,w,"Generator"),_(L,b,function(){return this}),_(L,"toString",function(){return"[object Generator]"}),p.keys=function(e){var t=Object(e),n=[];for(var r in t)s(n).call(n,r);return u(n).call(n),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},p.values=Q,U.prototype={constructor:U,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=f,this.done=!1,this.delegate=null,this.method="next",this.arg=f,a(t=this.tryEntries).call(t,H),!e)for(var n in this)"t"===n.charAt(0)&&m.call(this,n)&&!isNaN(+d(n).call(n,1))&&(this[n]=f)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=f),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=m.call(i,"catchLoc"),s=m.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&m.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,O):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),O},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),H(n),O}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;H(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:Q(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=f),O}},p}e.exports=h,e.exports.__esModule=!0,e.exports.default=e.exports}(kz)),kz.exports)();Kz=e;try{regeneratorRuntime=e}catch(i){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}return Kz}(),iW=i(rW);function oW(e,t){var n=document.createElement("a");n.href=e,n.download=t,n.click(),n.remove()}function aW(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("svg"!==t.format){var n=t.width,r=void 0===n?e.width.baseVal.value:n,i=t.height,o=void 0===i?e.height.baseVal.value:i,a=t.scale,s=void 0===a?5:a,l=t.quality,c=void 0===l?1:l,u=t.backgroundColor,d=void 0===u?"white":u,h=t.filename,f=void 0===h?"formula":h,p=t.format,g=void 0===p?"png":p,m=t.mimeType,v=void 0===m?"image/png":m,A=sW(e),b=document.createElement("canvas"),y=b.getContext("2d"),w=new Image;w.src="data:image/svg+xml;base64,".concat(btoa(unescape(encodeURIComponent(A)))),w.onload=function(){b.width=r*s,b.height=o*s,y.fillStyle=d,y.fillRect(0,0,b.width,b.height),y.drawImage(w,0,0,b.width,b.height),b.toBlob(function(e){var t,n=iz.createObjectURL(e);oW(n,Xu(t="".concat(f,".")).call(t,g)),iz.revokeObjectURL(n)},v,c)}}else{var _;!function(e,t){var n=sW(e),r=new Blob([n],{type:"image/svg+xml;charset=utf-8"}),i=iz.createObjectURL(r);oW(i,t),iz.revokeObjectURL(i)}(e,null!==(_=t.filename)&&void 0!==_?_:"formula.svg")}}function sW(e){return(new XMLSerializer).serializeToString(e)}function lW(e,t){var n=void 0!==HC&&UC(e)||e["@@iterator"];if(!n){if(QC(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return cW(e,t);var r=_x(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u_(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cW(e,t):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function cW(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uW(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"block",i=document.createElement("img");return i.src=e,i.width=t,i.height=n,i.style.maxWidth="100%",i.style.height="auto",i.style.display=r,i}var dW=['[data-type="mermaid"]','[data-type="mathBlock"]'];function hW(e,t,n){return new SC(function(r,i){try{var o=sW(e),a=document.createElement("canvas"),s=a.getContext("2d");a.width=2*t,a.height=2*n;var l=new Image;l.onload=function(){try{s&&s.drawImage(l,0,0,a.width,a.height),r(a.toDataURL("image/png"))}catch(e){jC.log("SVG 绘制到 Canvas 失败：",e),i(e)}},l.onerror=function(e){jC.log("SVG 图片加载失败：",e),i(e)},l.src="data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(o))}catch(e){i(e)}})}function fW(e,t){return pW.apply(this,arguments)}function pW(){return pW=yz(iW.mark(function e(t,n){var r,i,o,a,s,l;return iW.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((r=t.querySelector("svg"))instanceof SVGSVGElement){e.next=3;break}return e.abrupt("return",!1);case 3:return i=r.getBoundingClientRect(),o=Math.max(1,Math.round(i.width)),a=Math.max(1,Math.round(i.height)),e.next=8,hW(r,o,a);case 8:return s=e.sent,l=uW(s,o,a,n),t.replaceWith(l),e.abrupt("return",!0);case 12:case"end":return e.stop()}},e)})),pW.apply(this,arguments)}function gW(e){return mW.apply(this,arguments)}function mW(){return mW=yz(iW.mark(function e(t){var n,r,i,o,a,s,l,c,u;return iW.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=document.createElement("div"),Md(n.style,{position:"fixed",left:"-100000px",top:"0",visibility:"hidden",pointerEvents:"none",width:"".concat(document.documentElement.clientWidth||document.body.clientWidth||1e3,"px")}),(r=document.createElement("div")).className="cherry-export-word-container",r.innerHTML=t,n.appendChild(r),document.body.appendChild(n),i=u_(r.querySelectorAll(dW.join(","))),o=lW(i),e.prev=9,o.s();case 11:if((a=o.n()).done){e.next=25;break}return s=a.value,e.prev=13,l=s.getAttribute("data-type"),c="mathBlock"===l?"inline-block":"block",e.next=18,fW(s,c);case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(13),jC.log("[exportWord] 处理节点失败，已跳过该节点：",e.t0);case 23:e.next=11;break;case 25:e.next=30;break;case 27:e.prev=27,e.t1=e.catch(9),o.e(e.t1);case 30:return e.prev=30,o.f(),e.finish(30);case 33:return u=r.innerHTML,n.remove(),e.abrupt("return",u);case 36:case"end":return e.stop()}},e,null,[[9,27,30,33],[13,20]])})),mW.apply(this,arguments)}function vW(){return vW=yz(iW.mark(function e(t,n){var r,i,o,a;return iW.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=t,e.prev=1,e.next=4,gW(t);case 4:i=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),jC.warn("[exportWord] 预处理失败，降级为原始 HTML：",e.t0);case 10:if(o=Xu(r='<!DOCTYPE html>\n<html>\n<head>\n    <meta charset="UTF-8" />\n    <meta name="viewport" content="width=device-width, initial-scale=1.0" />\n    <title>'.concat(n,"</title>\n    <style>\n        body { \n            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;\n            line-height: 1.6;\n            color: #333;\n            max-width: none;\n            margin: 0;\n            padding: 20px;\n        }\n        img { max-width: 100%; height: auto; }\n        table { border-collapse: collapse; width: 100%; }\n        table, th, td { border: 1px solid #ddd; padding: 8px; }\n        th { background-color: #f2f2f2; }\n        code { \n            background-color: #f4f4f4; \n            padding: 2px 4px; \n            border-radius: 3px; \n            font-family: 'Monaco', 'Consolas', monospace;\n        }\n        pre { \n            background-color: #f4f4f4; \n            padding: 10px; \n            border-radius: 5px; \n            overflow-x: auto;\n        }\n        blockquote {\n            border-left: 4px solid #ddd;\n            margin: 0;\n            padding-left: 16px;\n            color: #666;\n        }\n    </style>\n</head>\n<body>\n")).call(r,i,"\n</body>\n</html>"),!navigator.clipboard||!navigator.clipboard.write){e.next=18;break}return a=new ClipboardItem({"text/html":new Blob([o],{type:"text/html"})}),e.next=15,navigator.clipboard.write([a]);case 15:AW(),e.next=19;break;case 18:throw new Error("浏览器未授权粘贴板或不支持剪贴板写入");case 19:case"end":return e.stop()}},e,null,[[1,7]])})),vW.apply(this,arguments)}function AW(){var e=document.createElement("div");e.className="cherry",e.innerHTML='\n    <div style="\n      position: fixed;\n      top: 50%;\n      left: 50%;\n      transform: translate(-50%, -50%);\n      background: var(--base-editor-bg);\n      border: 1px solid var(--base-border-color);\n      border-radius: var(--radius-xl);\n      padding: var(--spacing-lg);\n      box-shadow: var(--shadow-lg);\n      z-index: 99999;\n      max-width: 400px;\n      text-align: center;\n      font-family: var(--font-family-base, -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, sans-serif);\n    ">\n      <h3 style="margin: 0 0 var(--spacing-md) 0; color: var(--base-font-color);">内容已复制到剪贴板</h3>\n      <p style="margin: 0 0 var(--spacing-md) 0; color: var(--base-sub-font-color); line-height: var(--line-height-relaxed);">\n        请打开 Microsoft Word，然后按 <strong>Ctrl+V</strong>（Windows）或 <strong>Cmd+V</strong>（Mac）粘贴内容。\n      </p>\n      <p style="margin: 0 0 var(--spacing-lg) 0; color: var(--base-sub-font-color); font-size: var(--font-size-sm);">\n        部分样式可能会丢失或变更\n      </p>\n      <button onclick="this.parentElement.parentElement.remove()" style="\n        background: var(--secondary-color);\n        color: var(--primary-color);\n        border: none;\n        padding: var(--spacing-sm) var(--spacing-md);\n        border-radius: var(--radius-md);\n        cursor: pointer;\n        font-size: var(--font-size-sm);\n        height: var(--height-button);\n      ">了解</button>\n    </div>\n    <div style="\n      position: fixed;\n      top: 0;\n      left: 0;\n      width: 100%;\n      height: 100%;\n      background: rgba(0,0,0,0.3);\n      z-index: 99998;\n    " onclick="this.parentElement.remove();"></div>\n  ',document.body.appendChild(e)}var bW=function(e,t){var n=e.cloneNode(!0);n.className=n.className.replace("cherry-previewer--hidden",""),n.style.width="100%",n.style.height="auto",n.style.maxHeight="none";var r=n.querySelectorAll("mjx-assistive-mml");gf(r).call(r,function(e){e instanceof HTMLElement&&e.style.setProperty("visibility","hidden")});var i=document.createElement("div");i.className="cherry-export-wrapper";var o,a=e.closest(".cherry");a&&(i.className=Xu(o="".concat(i.className," ")).call(o,a.className)),i.appendChild(n),document.body.appendChild(i);var s=document.body.style.overflow;document.body.style.overflow="visible",t(n,function(){i.remove(),document.body.style.overflow=s})};function yW(e,t){bW(e,function(e,n){window.scrollTo(0,0),e.innerHTML=e.innerHTML.replace(/<audio [^>]+?>([^\n]*?)<\/audio>/g,"$1"),e.innerHTML=e.innerHTML.replace(/<video [^>]+?>([^\n]*?)<\/video>/g,"$1"),e.innerHTML=e.innerHTML.replace(/class="cherry-code-unExpand("| )/g,'class="cherry-code-expand$1'),sz(e,{allowTaint:!0,height:e.clientHeight,width:e.clientWidth,scrollY:0,scrollX:0}).then(function(e){!function(e,t){var n=document.createElement("a");n.style.display="none",n.href=e,n.download="".concat(t,".png"),document.body.appendChild(n),n.click(),document.body.removeChild(n)}(e.toDataURL("image/jpeg"),t),n()})})}var wW,_W,xW,EW,SW,CW,TW,kW,OW,MW={};function IW(){if(_W)return wW;_W=1;var e=P(),t=S(),n=k(),r=ks(),i=or(),o=ke(),a=n(xe().f),s=n([].push),l=e&&t(function(){var e=Object.create(null);return e[2]=2,!a(e,2)}),c=function(t){return function(n){for(var c,u=o(n),d=i(u),h=l&&null===r(u),f=d.length,p=0,g=[];f>p;)c=d[p++],e&&!(h?c in u:a(u,c))||s(g,t?[c,u[c]]:u[c]);return g}};return wW={entries:c(!0),values:c(!1)}}function DW(){return SW?EW:(SW=1,function(){if(xW)return MW;xW=1;var e=sn(),t=IW().values;e({target:"Object",stat:!0},{values:function(e){return t(e)}})}(),EW=Me().Object.values)}function NW(){return TW?CW:(TW=1,CW=DW())}var RW,LW,BW,PW,FW,$W,jW,HW=i(OW?kW:(OW=1,kW=NW())),UW={};function QW(){return BW?LW:(BW=1,function(){if(RW)return UW;RW=1;var e=sn(),t=IW().entries;e({target:"Object",stat:!0},{entries:function(e){return t(e)}})}(),LW=Me().Object.entries)}function zW(){return FW?PW:(FW=1,PW=QW())}var WW=i(jW?$W:(jW=1,$W=zW())),GW={mouseResize:{},getImgPosition:function(){var e=this.img.getBoundingClientRect(),t=this.previewerDom.parentNode.getBoundingClientRect(),n=kE(this.img.style.padding)||0,r=this.img.getAttribute("alt")||"",i=wL.$getAlignment(r);return{bottom:e.bottom-t.bottom,top:e.top-t.top+1.5*n,height:e.height,width:e.width,right:e.right-t.right,left:e.left-t.left+1.5*n,x:e.x-t.x,y:e.y-t.y,alignment:i}},initBubbleButtons:function(){var e=this.getImgPosition();return{points:{arr:["leftTop","leftBottom","rightTop","rightBottom","leftMiddle","middleBottom","middleTop","rightMiddle"],arrInfo:{leftTop:{name:"20",left:0,top:0},leftBottom:{name:"00",left:0,top:0},rightTop:{name:"22",left:0,top:0},rightBottom:{name:"02",left:0,top:0},leftMiddle:{name:"10",left:0,top:0},middleBottom:{name:"01",left:0,top:0},middleTop:{name:"21",left:0,top:0},rightMiddle:{name:"12",left:0,top:0}}},style:{width:this.img.width,height:this.img.height,left:e.left-1,top:e.top-1,marginTop:0,marginLeft:0},scrollTop:this.previewerDom.scrollTop,position:e}},showBubble:function(e,t,n){this.$isResizing()||(this.img=e,this.previewerDom=n,this.container=t,this.buts=this.initBubbleButtons(),this.drawBubbleButs())},emit:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(e){case"mousedown":return this.resizeBegin(t);case"mouseup":return this.resizeStop(t);case"mousemove":return this.resizeWorking(t);case"scroll":return this.dealScroll(t);case"remove":return this.remove()}},previewUpdate:function(e){this.$isResizing()||(this.remove(),e())},drawBubbleButs:function(){var e,t=this;return this.butsLayout||(this.butsLayout=this.container,this.butsPoints={},gf(e=$h(this.buts.points.arr)).call(e,function(e){var n=t.buts.points.arr[e],r=document.createElement("div");r.className=["cherry-previewer-img-size-handler__points","cherry-previewer-img-size-handler__points-".concat(n)].join(" "),r.dataset.name=n,t.butsLayout.appendChild(r),t.butsPoints["pints-".concat(n)]=r})),this.updateBubbleButs()},remove:function(){this.butsLayout=!1},updateBubbleButs:function(){var e,t,n=this;this.$updatePointsInfo(),gf(e=$h(this.buts.style)).call(e,function(e){n.butsLayout.style[e]="".concat(n.buts.style[e],"px")}),gf(t=$h(this.buts.points.arr)).call(t,function(e){var t=n.buts.points.arr[e];n.butsPoints["pints-".concat(t)].style.top="".concat(n.buts.points.arrInfo[t].top,"px"),n.butsPoints["pints-".concat(t)].style.left="".concat(n.buts.points.arrInfo[t].left,"px")})},$updatePointsInfo:function(){var e,t=this,n=this.buts.style.width,r=this.buts.style.height,i=this.$getPointsInfo(n,r);gf(e=$h(this.buts.points.arr)).call(e,function(e){var n=t.buts.points.arr[e];t.buts.points.arrInfo[n].left!==i[n].left&&(t.buts.points.arrInfo[n].left=i[n].left),t.buts.points.arrInfo[n].top!==i[n].top&&(t.buts.points.arrInfo[n].top=i[n].top)})},$getPointsInfo:function(e,t){return{leftTop:{left:0,top:0},leftBottom:{left:0,top:t},rightTop:{left:e,top:0},rightBottom:{left:e,top:t},leftMiddle:{left:0,top:t/2},middleBottom:{left:e/2,top:t},middleTop:{left:e/2,top:0},rightMiddle:{left:e,top:t/2}}},$isResizing:function(){return this.mouseResize.resize},dealScroll:function(e){var t=this.getImgPosition();this.butsLayout.style.marginTop!==t.top-this.buts.position.top&&(this.butsLayout.style.marginTop="".concat(t.top-this.buts.position.top,"px"),this.buts.style.marginTop="".concat(t.top-this.buts.position.top,"px")),this.butsLayout.style.marginLeft!==t.left-this.buts.position.left&&(this.butsLayout.style.marginLeft="".concat(t.left-this.buts.position.left,"px"),this.buts.style.marginLeft="".concat(t.left-this.buts.position.left,"px"))},initMouse:function(){return{left:0,top:0,resize:!1,name:""}},resizeBegin:function(e){var t=e.target;if(!t.classList.contains("cherry-previewer-img-size-handler__points"))return!1;this.mouseResize.left=e.clientX,this.mouseResize.top=e.clientY,this.mouseResize.resize=!0,this.mouseResize.name=t.getAttribute("data-name"),this.previewerDom.classList.add("doing-resize-img"),this.originalDraggable=this.img.draggable,this.img.draggable=!1},resizeStop:function(e,t,n,r){if(!this.$isResizing())return!1;this.img.style.width="".concat(this.buts.style.width,"px"),this.img.style.height="".concat(this.buts.style.height,"px"),this.buts.style.marginTop=0,this.buts.style.marginLeft=0,this.updateBubbleButs(),this.mouseResize.resize=!1,this.previewerDom.classList.remove("doing-resize-img"),this.img.draggable=void 0===this.originalDraggable||this.originalDraggable,this.change(),this.updatePosition()},resizeWorking:function(e,t){if(this.$isResizing()){var n=e.clientX-this.mouseResize.left,r=e.clientY-this.mouseResize.top,i=this.buts.position,o=i.width,a=i.left,s=i.alignment,l={};switch(this.mouseResize.name){case"leftTop":case"leftBottom":case"leftMiddle":l=this.$getChange(n,r,"x"),this.buts.style.width=o-l.changeX,"leftMiddle"!==this.mouseResize.name&&(this.buts.style.height=this.buts.position.height-l.changeY);break;case"rightTop":case"rightBottom":case"rightMiddle":l=this.$getChange(n,r,"x"),this.buts.style.width=o+l.changeX,"rightMiddle"!==this.mouseResize.name&&(this.buts.style.height=this.buts.position.height+l.changeY);break;case"middleTop":l=this.$getChange(n,r,"y"),this.buts.style.height=this.buts.position.height-l.changeY;break;case"middleBottom":l=this.$getChange(n,r,"y"),this.buts.style.height=this.buts.position.height+l.changeY}var c=this.buts.style.width-o;"center"===s?this.buts.style.left=a-c/2:"right"===s&&(this.buts.style.left=a-c),this.updateBubbleButs(),this.change()}},change:function(){this.emitChange(this.img,{width:this.buts.style.width,height:this.buts.style.height})},bindChange:function(e){this.emitChange=e},$getChange:function(e,t,n){var r={changeX:0,changeY:0};return"y"===n?(r.changeY=t,r.changeX=t*this.buts.position.width/this.buts.position.height):(r.changeX=e,r.changeY=e*this.buts.position.height/this.buts.position.width),r},updatePosition:function(){if(this.img&&this.butsLayout&&this.previewerDom&&!this.$isResizing()){var e=this.getImgPosition();this.buts.position=e,this.buts.style.left=e.left-1,this.buts.style.top=e.top-1,this.buts.style.marginTop=0,this.buts.style.marginLeft=0,this.updateBubbleButs()}}};function VW(e,t){var n=$h(e);if(Xi){var r=Xi(e);t&&(r=uo(r).call(r,function(t){return To(e,t).enumerable})),n.push.apply(n,r)}return n}var KW={mouseResize:{},position:{x:0,y:0},getImgPosition:function(){var e=this.img.getBoundingClientRect(),t=this.previewerDom.parentNode.getBoundingClientRect(),n=kE(this.img.style.padding)||0;return{bottom:e.bottom-t.bottom,top:e.top-t.top+1.5*n,height:e.height,width:e.width,right:e.right-t.right,left:e.left-t.left+1.5*n,x:e.x-t.x,y:e.y-t.y}},showBubble:function(e,t,n,r,i){var o=this;this.img=e,this.previewerDom=n,this.container=t;var a=[{text:i.border,type:"border",active:!1},{text:i.shadow,type:"shadow",active:!1},{text:i.radius,type:"radius",active:!1}],s=document.createElement("div");s.className="img-tool-group";var l=function(e){return"img-tool-button".concat(e.active?" active":"")};this.container.appendChild(s),gf(a).call(a,function(e){e.active=o.img.className.match("cherry-img-deco-".concat(e.type));var t=document.createElement("div"),n=document.createElement("i");t.appendChild(n),n.className="img-tool-icon ch-icon ch-icon-imgDeco".concat(YW(e.type)),t.className=l(e),t.title=e.text,t.addEventListener("click",function(n){n.preventDefault(),n.stopPropagation(),e.active=!e.active,t.className=l(e),o.emitChange(o.img,e.type)}),s.append(t)});var c=document.createElement("div");c.className="img-tool-divider",this.container.appendChild(c);var u=[{text:i.alignLeft,type:"left"},{text:i.alignCenter,type:"center"},{text:i.alignRight,type:"right"},{text:i.alignFloatLeft,type:"float-left"},{text:i.alignFloatRight,type:"float-right"}],d=document.createElement("div");d.className="img-tool-group",this.container.appendChild(d),gf(u).call(u,function(e,t){e.active=o.img.className.match("cherry-img-align-".concat(e.type));var n=document.createElement("div"),r=document.createElement("i");e.div=n,n.appendChild(r),r.className="img-tool-icon ch-icon ch-icon-imgAlign".concat(function(e){var t;return e?_h(t=e.split("-")).call(t,function(e){return YW(e)}).join(""):""}(e.type)),n.className=l(e),n.title=e.text,n.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation(),e.active=!e.active,gf(u).call(u,function(t){return t!==e&&((t.active=!1)||(t.div.className="img-tool-button"))}),n.className=l(e),o.emitChange(o.img,e.active?e.type:"clear-align"),GW.showBubble(o.img,o.container,o.previewerDom),_d(function(){GW.updatePosition()},150)}),d.append(n)});var h=this.previewerDom.parentNode.getBoundingClientRect(),f=this.getImgPosition();this.container.style.visibility="hidden",this.container.style.left="0px",this.container.style.top="0px";var p=this.container.getBoundingClientRect(),g=p.width,m=p.height;this.container.style.visibility="";var v,A,b=r.x-h.left,y=r.y-h.top;f.width<g+16||f.height<m+16?(v=f.left+(f.width-g)/2,A=f.top+f.height+8):(A=y,y<f.top+8?A=f.top+8:y+m>f.top+f.height-8&&(A=f.top+f.height-m-8),v=b,b+g>f.left+f.width-8&&(v=f.left+f.width-g-8),v<f.left+8&&(v=f.left+8)),this.container.style.left="".concat(v,"px"),this.container.style.top="".concat(A,"px"),this.position=function(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?gf(n=VW(Object(i),!0)).call(n,function(t){Fu(e,t,i[t])}):$o?Xo(e,$o(i)):gf(r=VW(Object(i))).call(r,function(t){ca(e,t,To(i,t))})}return e}({},f)},emit:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("scroll"===e)return this.dealScroll(t)},previewUpdate:function(e){this.$isResizing()||(this.remove(),e())},remove:function(){this.butsLayout=!1},$isResizing:function(){return this.mouseResize.resize},dealScroll:function(e){var t=this.getImgPosition();this.container.style.marginTop!==t.top-this.position.top&&(this.container.style.marginTop="".concat(t.top-this.position.top,"px")),this.container.style.marginLeft!==t.left-this.position.left&&(this.container.style.marginLeft="".concat(t.left-this.position.left,"px"))},change:function(){this.emitChange(this.img,{width:this.buts.style.width,height:this.buts.style.height})},bindChange:function(e){this.emitChange=e}};function YW(e){return e?e.replace(/^\w/,function(e){return e.toUpperCase()}):""}var qW,XW,JW,ZW,eG,tG,nG,rG,iG,oG,aG,sG,lG,cG,uG,dG={};function hG(){if(XW)return qW;XW=1;var e=Ne().match(/firefox\/(\d+)/i);return qW=!!e&&+e[1]}function fG(){return ZW?JW:(ZW=1,JW=/MSIE|Trident/.test(Ne()))}function pG(){if(tG)return eG;tG=1;var e=Ne().match(/AppleWebKit\/(\d+)\./);return eG=!!e&&+e[1]}function gG(){if(nG)return dG;nG=1;var e=sn(),t=k(),n=$e(),r=wt(),i=er(),o=uk(),a=vr(),s=S(),l=DQ(),c=Hh(),u=hG(),d=fG(),h=Re(),f=pG(),p=[],g=t(p.sort),m=t(p.push),v=s(function(){p.sort(void 0)}),A=s(function(){p.sort(null)}),b=c("sort"),y=!s(function(){if(h)return h<70;if(!(u&&u>3)){if(d)return!0;if(f)return f<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)p.push({k:t+r,v:n})}for(p.sort(function(e,t){return t.v-e.v}),r=0;r<p.length;r++)t=p[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}});return e({target:"Array",proto:!0,forced:v||!A||!b||!y},{sort:function(e){void 0!==e&&n(e);var t=r(this);if(y)return void 0===e?g(t):g(t,e);var s,c,u=[],d=i(t);for(c=0;c<d;c++)c in t&&m(u,t[c]);for(l(u,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:a(t)>a(n)?1:-1}}(e)),s=i(u),c=0;c<s;)t[c]=u[c++];for(;c<d;)o(t,c++);return t}}),dG}function mG(){return iG?rG:(iG=1,gG(),rG=eo()("Array","sort"))}function vG(){if(aG)return oG;aG=1;var e=De(),t=mG(),n=Array.prototype;return oG=function(r){var i=r.sort;return r===n||e(n,r)&&i===n.sort?t:i}}function AG(){return lG?sG:(lG=1,sG=vG())}var bG=i(uG?cG:(uG=1,cG=AG()));function yG(e,t){var n=void 0!==HC&&UC(e)||e["@@iterator"];if(!n){if(QC(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return wG(e,t);var r=_x(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u_(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wG(e,t):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function wG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var _G=function(){return mc(function e(t,n,r,i,o,a,s){ua(this,e),Fu(this,"tableEditor",void 0),this.tableEditor={info:{},tableCodes:[],footnoteTableCodes:[],editorDom:{}},this.trigger=t,this.target=n,this.previewerDom=i,this.container=r,this.codeMirror=o,this.$initReg(),this.$findTableInEditor(),this.tableElement=a,this.$cherry=s},[{key:"emit",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};switch(e){case"keyup":return"click"===this.trigger&&this.$onInputChange(t);case"remove":return this.$remove();case"scroll":case"previewUpdate":return this.$refreshPosition();case"mousedown":return;case"mouseup":return"click"===this.trigger&&this.$tryRemoveMe(t,n)}}},{key:"$tryRemoveMe",value:function(e,t){/textarea/i.test(e.target.tagName)||(this.$remove(),t())}},{key:"$getPosition",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tableEditor.info.tdNode).getBoundingClientRect(),t=this.previewerDom.parentNode.getBoundingClientRect();return{top:e.top-t.top,height:e.height,width:e.width,left:e.left-t.left,maxHeight:t.height}}},{key:"setStyle",value:function(e,t,n){e.style[t]=n}},{key:"$validateBounds",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return!(e<0||e>=t)||(console.error("Index out of bounds in ".concat(n,":"),e,"max:",t),!1)}},{key:"$setInputOffset",value:function(){var e=this.$getPosition(),t=this.tableEditor.editorDom.inputDiv;this.setStyle(t,"width","".concat(e.width,"px")),this.setStyle(t,"height","".concat(e.height,"px")),this.setStyle(t,"top","".concat(e.top,"px")),this.setStyle(t,"left","".concat(e.left,"px"));var n=e.top>=0&&e.top+e.height<=e.maxHeight;this.setStyle(t,"display",n?"":"none")}},{key:"$refreshPosition",value:function(){var e,t;"click"!==this.trigger?(this.$updateBoundaryTriggerPosition(),null!==(e=this.tableEditor)&&void 0!==e&&null!==(t=e.editorDom)&&void 0!==t&&t.menuContainer&&this.$setMenuButtonPosition()):this.$setInputOffset()}},{key:"$remove",value:function(){var e,t,n;if(this.boundaryTableRef&&this.boundaryMouseMoveHandlerRef)try{this.boundaryTableRef.removeEventListener("mousemove",this.boundaryMouseMoveHandlerRef)}catch(e){}if(this.boundaryGlobalMoveRef)try{document.removeEventListener("mousemove",this.boundaryGlobalMoveRef,!0)}catch(e){}if(null!==(e=this.tableEditor)&&void 0!==e&&null!==(t=e.editorDom)&&void 0!==t&&null!==(n=t.symbolContainer)&&void 0!==n&&n.parentNode)try{this.tableEditor.editorDom.symbolContainer.parentNode.removeChild(this.tableEditor.editorDom.symbolContainer)}catch(e){}this.boundaryCache=null,this.boundaryTableRef=null,this.boundaryMouseMoveHandlerRef=null,this.boundaryGlobalMoveRef=null,this.tableEditor={info:{},tableCodes:[],editorDom:{},footnoteTableCodes:[]}}},{key:"$collectTableCode",value:function(){for(var e,t=[],n=[],r=this.codeMirror.getValue(),i=[],o=/(^|\n)[ \t]*\[\^([^\]]+?)\]:[ \t]*([\s\S]+?)(?=\s*$|\n\n)/g;null!==(e=o.exec(r));){var a=e.index,s=e.index+e[0].length;i.push({start:a,end:s,id:e[2],content:e[3],fullMatch:e[0]})}var l=function(e){return OB(i).call(i,function(t){return e>=t.start&&e<t.end})};r.replace(this.codeBlockReg,function(e){return e.replace(/\|/g,".")}).replace(this.tableReg,function(e){var r,i=e.replace(/^\n*/,""),o=((r=(arguments.length<=1?0:arguments.length-1)-2+1)<1||arguments.length<=r?void 0:arguments[r])+e.match(/^\n*/)[0].length,a={code:i,offset:o,type:"markdown"};return l(o)?n.push(a):t.push(a),e.replace(/\|/g,".")});for(var c,u=/(^|\n)(>\s*)+\|[^\n]+\|[^\n]*\n(>\s*)+\|\s*:?[-]+:?[^\n]*\n((>\s*)+\|[^\n]+\|[^\n]*\n?)*/gm;null!==(c=u.exec(r));){var d=c[0],h=c.index+(c[1]?c[1].length:0);t.push({code:d,offset:h,type:"blockquote-markdown"})}this.$collectHtmlTableCode(r,t,n,l),bG(t).call(t,function(e,t){return e.offset-t.offset}),bG(n).call(n,function(e,t){return e.offset-t.offset}),this.tableEditor.tableCodes=t,this.tableEditor.footnoteTableCodes=n}},{key:"$collectTableDom",value:function(){var e,t,n=this.$getClosestNode(this.target,"TABLE");if(!1===n)return!1;var r,i=u_(this.previewerDom.querySelectorAll("div.one-footnote table")),o=uh(i).call(i,n),a=[];a=o?i:uo(r=u_(this.previewerDom.querySelectorAll("table"))).call(r,function(e){return!uh(i).call(i,e)});var s=uo(e=u_(this.target.parentElement.childNodes)).call(e,function(e){return e.tagName&&("td"===e.tagName.toLowerCase()||"th"===e.tagName.toLowerCase())}),l=s.length,c=yx(s).call(s,this.target),u=!n.classList.contains("cherry-table");this.tableEditor.info={tableNode:n,tdNode:this.target,trNode:this.target.parentElement,tdIndex:c,trIndex:yx(t=u_(this.target.parentElement.parentElement.childNodes)).call(t,this.target.parentElement),isTHead:"TBODY"!==this.target.parentElement.parentElement.tagName,totalTables:a.length,tableIndex:yx(a).call(a,n),tableText:n.textContent.replace(/[\s]/g,""),columns:l,isHtmlTable:u,isInFootnote:o}}},{key:"$setSelection",value:function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"table",o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=this.tableEditor.info,s=a.isInFootnote?this.tableEditor.footnoteTableCodes[e]:this.tableEditor.tableCodes[e],l=this.codeMirror.getValue(),c=null!==(t=null===(n=_x(l).call(l,0,s.offset).match(/\n/g))||void 0===n?void 0:n.length)&&void 0!==t?t:0,u="html"===s.type?this.$getHtmlTdOffset(s.code,a.trIndex,a.tdIndex):"blockquote-html"===s.type?this.$getBlockquoteHtmlTdOffset(s.code,a.trIndex,a.tdIndex):"blockquote-markdown"===s.type?this.$getBlockquoteTdOffset(s.code,a.isTHead,a.trIndex,a.tdIndex):this.$getTdOffset(s.code,a.isTHead,a.trIndex,a.tdIndex),d=u.preLine,h=u.preCh,f=u.plusCh,p=u.currentTd;if("table"===i){var g=c+s.code.match(/\n/g).length,m=s.code.match(/[^\n]+\n*$/)[0].length;this.tableEditor.info.selection=[{line:c,ch:0},{line:g,ch:m}]}else this.tableEditor.info.selection=[{line:c+d,ch:h},{line:c+d,ch:h+f}];o&&(r=this.codeMirror).setSelection.apply(r,DI(this.tableEditor.info.selection)),this.tableEditor.info.code=p}},{key:"$getTdOffset",value:function(e,t,n,r){for(var i=t?0:n+2,o=e.split(/\n/)[i].split(/\|/),a=/^\s*$/.test(o[0]),s=a?r+1:r,l=o[s],c=[],u=0;u<s;u++)c.push(o[u]);var d=c_(l).call(l),h=d.length>0?l.match(/^\s*/)[0].length:Math.floor(l.match(/^\s*/)[0].length/2);return{preLine:i,preCh:(a?c.join("|").length+1:c.join("|").length)+h,plusCh:d.length,currentTd:d}}},{key:"$getBlockquoteTdOffset",value:function(e,t,n,r){var i=e.split(/\n/),o=t?0:n+2;if(!this.$validateBounds(o,i.length,"getBlockquoteTdOffset targetTr"))return{preLine:0,preCh:0,plusCh:0,currentTd:""};var a,s,l,c=o+1;c<i.length?(l=(a=i[c]).match(/^(?:>+\s*)+/),s=a.replace(/^(?:>+\s*)+/,"").split(/\|/)):(l=(a=i[o]).match(/^(?:>+\s*)+/),s=a.replace(/^(?:>+\s*)+/,"").split(/\|/));var u=/^\s*$/.test(s[0]),d=u?r+1:r;if(!this.$validateBounds(d,s.length,"getBlockquoteTdOffset targetTd"))return{preLine:o,preCh:0,plusCh:0,currentTd:""};var h=s[d],f=l?l[0].length:0;u&&(f+=1);for(var p=u?1:0;p<d;p++)f+=s[p].length,f+=1;var g=c_(h).call(h),m=f+h.match(/^\s*/)[0].length;return{preLine:(c<i.length?c:o)-1,preCh:m,plusCh:g.length,currentTd:g}}},{key:"$getHtmlTdOffset",value:function(e,t,n){for(var r=e.split(/\n/),i=0,o=0,a=0;a<r.length;a++){var s=r[a];if(s.match(/<tr[^>]*>/gi)){if(i===t){for(var l=/<(td|th)[^>]*>([\s\S]*?)<\/(td|th)>/gi,c=void 0;null!==(c=l.exec(s))&&o<=n;){if(o===n){var u,d=c[2]||"";return{preLine:a,preCh:c.index+yx(u=c[0]).call(u,">")+1,plusCh:d.length,currentTd:d}}o+=1}break}i+=1}}return{preLine:0,preCh:0,plusCh:e.length,currentTd:""}}},{key:"$findTableInEditor",value:function(){if(this.$collectTableDom(),this.$collectTableCode(),this.tableEditor.info.totalTables!==this.tableEditor.tableCodes.length){var e=this.$findTableByContent();return-1!==e&&(this.$setSelection(e,"td","click"===this.trigger),!0)}return this.$setSelection(this.tableEditor.info.tableIndex,"td","click"===this.trigger),!0}},{key:"$initReg",value:function(){this.tableReg=this.tableReg?this.tableReg:hT(!0),this.codeBlockReg=this.codeBlockReg?this.codeBlockReg:fT().reg,this.htmlTableReg=/<table[^>]*>[\s\S]*?<\/table>/gi,this.blockquoteHtmlTableReg=/(^>\s*<table[\s\S]*?^>\s*<\/table>)/gim}},{key:"$collectHtmlTableCode",value:function(e,t,n,r){var i;for(this.htmlTableReg.lastIndex=0;null!==(i=this.htmlTableReg.exec(e));){var o={code:i[0],offset:i.index,type:"html"};r(i.index)?n.push(o):t.push(o)}for(this.blockquoteHtmlTableReg.lastIndex=0;null!==(i=this.blockquoteHtmlTableReg.exec(e));)t.push({code:i[0],offset:i.index,type:"blockquote-html"})}},{key:"$findTableByContent",value:function(){for(var e=this.tableEditor.info.tableText,t=0;t<this.tableEditor.tableCodes.length;t++){var n=this.tableEditor.tableCodes[t],r="";if("html"===n.type)r=this.$extractHtmlTableText(n.code);else if("blockquote-html"===n.type){var i=n.code.replace(/^>\s*/gm,"");r=this.$extractHtmlTableText(i)}else r="blockquote-markdown"===n.type?n.code.replace(/^>\s*/gm,"").replace(/[\s|\-:]/g,""):n.code.replace(/[\s|\-:]/g,"");if(r===e)return t}return-1}},{key:"$extractHtmlTableText",value:function(e){var t=document.createElement("div");t.innerHTML=e;var n=t.querySelector("table");return n?n.textContent.replace(/[\s]/g,""):""}},{key:"$getBlockquoteHtmlTdOffset",value:function(e,t,n){for(var r,i=e.split(/\n/),o=_h(i).call(i,function(e){return e.replace(/^>\s*/,"")}).join("\n"),a=/<tr[^>]*>/gi,s=[];null!==(r=a.exec(o));)s.push({index:r.index,match:r[0]});if(t>=s.length)return{preLine:0,preCh:0,plusCh:e.length,currentTd:""};for(var l,c=s[t].index,u=t+1<s.length?s[t+1].index:o.length,d=o.substring(c,u),h=/<(td|th)[^>]*>([\s\S]*?)<\/(td|th)>/gi,f=0;null!==(l=h.exec(d));){if(f===n){for(var p,g=l[2]||"",m=c+l.index+yx(p=l[0]).call(p,">")+1,v=0,A=0,b=0,y=0;y<i.length;y++){var w=i[y].replace(/^>\s*/,"");if(v+w.length+1>m){A=y;var _=i[y].match(/^>\s*/);b=(_?_[0].length:0)+(m-v);break}v+=w.length+1}return{preLine:A,preCh:b,plusCh:g.length,currentTd:g}}f+=1}return{preLine:0,preCh:0,plusCh:e.length,currentTd:""}}},{key:"showBubble",value:function(){"click"!==this.trigger?(this.$drawSymbol(),this.$drawMenu()):this.$drawEditor()}},{key:"$drawEditor",value:function(){var e=document.createElement("div");e.className="cherry-previewer-table-content-handler__input";var t=document.createElement("textarea");e.appendChild(t),this.tableEditor.editorDom.inputDiv=e,this.tableEditor.editorDom.inputDom=t,this.$updateEditorPosition(),this.container.appendChild(this.tableEditor.editorDom.inputDiv),this.tableEditor.editorDom.inputDom.value=this.tableEditor.info.code.replace(/<br>/g,"\n"),this.tableEditor.editorDom.inputDom.focus()}},{key:"$onInputChange",value:function(e){"TEXTAREA"===e.target.tagName&&this.codeMirror.replaceSelection(e.target.value.replace(/\n/g,"<br>"),"around")}},{key:"$updateEditorPosition",value:function(){this.$setInputOffset();var e=getComputedStyle(this.tableEditor.info.tdNode);this.tableEditor.editorDom.inputDom.style.textAlign=e.textAlign||"left",this.tableEditor.editorDom.inputDom.style.fontSize=e.fontSize||"16px",this.tableEditor.editorDom.inputDom.style.fontFamily=e.fontFamily,this.tableEditor.editorDom.inputDom.style.lineHeight=e.lineHeight,this.tableEditor.editorDom.inputDom.style.padding=e.padding;var t={paddingRight:"0px"},n={paddingLeft:"0px"},r={paddingLeft:"0px",paddingRight:"0px"},i=e.textAlign||"";uh(i).call(i,"left")?Md(this.tableEditor.editorDom.inputDom.style,t):uh(i).call(i,"right")?Md(this.tableEditor.editorDom.inputDom.style,n):uh(i).call(i,"center")&&Md(this.tableEditor.editorDom.inputDom.style,r),this.tableEditor.editorDom.inputDom.style.paddingBottom="0px"}},{key:"$getClosestNode",value:function(e,t){return!(!e||!e.tagName)&&(e.tagName===t?e:"BODY"!==e.parentNode.tagName&&this.$getClosestNode(e.parentNode,t))}},{key:"$drawSymbol",value:function(){var e=this,t=this.tableEditor.info.tableNode;if(t){var n=document.createElement("div");n.className="cherry-previewer-table-hover-handler-container cherry-previewer-table-hover-handler-container--boundary-trigger";var r=document.createElement("div");r.className="cherry-previewer-table-hover-handler__symbol cherry-previewer-table-hover-handler__symbol--boundary-trigger",r.style.position="absolute",r.style.display="none",r.innerHTML="+",r.title=this.$cherry.locale.addCol||"+";var i=[],o=document.createElement("div");o.className="cherry-previewer-table-hover-handler__symbol cherry-previewer-table-hover-handler__symbol--boundary-trigger",o.style.position="absolute",o.style.display="none",o.innerHTML="+",o.title=this.$cherry.locale.addRow||"+",o.dataset.side="left";var a=document.createElement("div");a.className="cherry-previewer-table-hover-handler__symbol cherry-previewer-table-hover-handler__symbol--boundary-trigger",a.style.position="absolute",a.style.display="none",a.innerHTML="+",a.title=this.$cherry.locale.addRow||"+",a.dataset.side="right",i.push(o,a);var s=document.createElement("div");s.className="cherry-previewer-table-boundary-trigger-line cherry-previewer-table-boundary-trigger-line--v",s.style.display="none";var l=document.createElement("div");l.className="cherry-previewer-table-boundary-trigger-line cherry-previewer-table-boundary-trigger-line--h",l.style.display="none",n.appendChild(r),gf(i).call(i,function(e){return n.appendChild(e)}),n.appendChild(s),n.appendChild(l),this.tableEditor.editorDom.symbolContainer=n,this.container.appendChild(n),this.tableEditor.editorDom.boundaryTriggerSymbol={col:{el:r,index:null},rows:_h(i).call(i,function(e){return{el:e,index:null}})};var c=null,u=null,d=null,h=null,f=!1,p=function(t){f||(f=!0,requestAnimationFrame(function(){f=!1,function(t){var n,o;if(null!==(n=e.tableEditor)&&void 0!==n&&null!==(o=n.editorDom)&&void 0!==o&&o.boundaryTriggerSymbol){if(d){var a=d.pos-t.left-6;r.style.left="".concat(a,"px"),r.style.top="-20px",r.style.display="",e.tableEditor.editorDom.boundaryTriggerSymbol.col.index=d.index,s.style.left="".concat(d.pos-t.left,"px"),s.style.display="",c=d}else r.style.display="none",s.style.display="none",e.tableEditor.editorDom.boundaryTriggerSymbol.col.index=null,c=null;if(h){var f=h.pos-t.top-6;gf(i).call(i,function(n,r){n.style.top="".concat(f,"px"),n.style.left=0===r?"-20px":"".concat(t.width+4,"px"),n.style.display="",e.tableEditor.editorDom.boundaryTriggerSymbol.rows[r].index=h.index}),u=h,l.style.top="".concat(h.pos-t.top,"px"),l.style.display=""}else{var p;gf(i).call(i,function(e){e.style.display="none"}),gf(p=e.tableEditor.editorDom.boundaryTriggerSymbol.rows).call(p,function(e){e.index=null}),u=null,l.style.display="none"}d=null,h=null}}(t)}))},g=function(n){e.$updateBoundaryTriggerPosition();var o=t.getBoundingClientRect(),a=n.clientX,f=n.clientY;if(a<o.left||a>o.right||f<o.top||f>o.bottom)c||u||(r.style.display="none",gf(i).call(i,function(e){return e.style.display="none"}),s.style.display="none",l.style.display="none");else{var g=t.rows[0];if(g){!function(n,r){e.boundaryCache||(e.boundaryCache={});var i=t.tBodies[0],o=i?i.rows.length:0;if(function(){if(!e.boundaryCache.tableRect)return!0;var t=e.boundaryCache;return t.firstRowCellCount!==r.cells.length||t.rowCount!==o||t.tableRect.width!==n.width||t.tableRect.height!==n.height||t.tableRect.top!==n.top||t.tableRect.left!==n.left}()){var a=[],s=r.cells[0].getBoundingClientRect();a.push({index:0,pos:s.left});for(var l=1;l<r.cells.length;l++){var c=r.cells[l].getBoundingClientRect();a.push({index:l,pos:c.left})}var u=r.cells[r.cells.length-1].getBoundingClientRect();a.push({index:r.cells.length,pos:u.right});var d=[];if(i){var h=u_(i.rows);if(h.length){var f=h[0].getBoundingClientRect();d.push({index:0,pos:f.top});for(var p=1;p<h.length;p++){var g=h[p].getBoundingClientRect();d.push({index:p,pos:g.top})}var m=h[h.length-1].getBoundingClientRect();d.push({index:h.length,pos:m.bottom})}}e.boundaryCache={tableRect:{top:n.top,left:n.left,width:n.width,height:n.height},colBoundaries:a,rowBoundaries:d,firstRowCellCount:r.cells.length,rowCount:o}}}(o,g);var m=e.boundaryCache,v=m.colBoundaries,A=m.rowBoundaries;if(c&&Math.abs(a-c.pos)<=14)d=c;else{c=null;var b,y=null,w=1/0,_=yG(v);try{for(_.s();!(b=_.n()).done;){var x=b.value,E=Math.abs(a-x.pos);E<=6&&E<w&&(w=E,y=x)}}catch(e){_.e(e)}finally{_.f()}d=y}if(u&&Math.abs(f-u.pos)<=14)h=u;else{u=null;var S,C=null,T=1/0,k=yG(A);try{for(k.s();!(S=k.n()).done;){var O=S.value,M=Math.abs(f-O.pos);M<=6&&M<T&&(T=M,C=O)}}catch(e){k.e(e)}finally{k.f()}h=C}p(o)}}};t.addEventListener("mousemove",g),this.boundaryMouseMoveHandlerRef=g,this.boundaryTableRef=t,this.$updateBoundaryTriggerPosition();var m=function(e){var n="none"!==r.style.display||OB(i).call(i,function(e){return"none"!==e.style.display});if(n){var o=t.getBoundingClientRect();if(!(e.clientX>=o.left&&e.clientX<=o.right&&e.clientY>=o.top&&e.clientY<=o.bottom)){var a=function(t){if("none"===t.style.display)return!1;var n=t.getBoundingClientRect();return e.clientX>=n.left-60&&e.clientX<=n.right+60&&e.clientY>=n.top-60&&e.clientY<=n.bottom+60},d=a(r)||OB(i).call(i,function(e){return a(e)});d||(r.style.display="none",gf(i).call(i,function(e){return e.style.display="none"}),s.style.display="none",l.style.display="none",c=null,u=null)}}};document.addEventListener("mousemove",m,!0),this.boundaryGlobalMoveRef=m,r.addEventListener("click",function(){var t=e.tableEditor.editorDom.boundaryTriggerSymbol.col;if(null!==t.index&&void 0!==t.index){var n=e.tableEditor.info.columns;0===t.index?e.tableEditor.info.tdIndex=-1:t.index===n?e.tableEditor.info.tdIndex=n-1:e.tableEditor.info.tdIndex=t.index-1,e.$insertCol(),e.$afterTableOperation()}}),gf(i).call(i,function(t,n){t.addEventListener("click",function(){var t=e.tableEditor.editorDom.boundaryTriggerSymbol.rows[n];if(null!==t.index&&void 0!==t.index){var r,i=e.tableEditor.info.tableNode.tBodies[0],o=i?i.rows.length:0;r=0===t.index?"top":t.index===o?"bottom":t.index,e.$insertRow(r),e.$afterTableOperation()}})})}}},{key:"$updateBoundaryTriggerPosition",value:function(){var e=this.tableEditor.info.tableNode;if(e){var t=this.$getPosition(e);this.setStyle(this.container,"width","".concat(t.width,"px")),this.setStyle(this.container,"height","".concat(t.height,"px")),this.setStyle(this.container,"top","".concat(t.top,"px")),this.setStyle(this.container,"left","".concat(t.left,"px"))}}},{key:"$afterTableOperation",value:function(){this.boundaryCache=null,this.$findTableInEditor(),this.$setSelection(this.tableEditor.info.tableIndex,"table")}},{key:"$insertRow",value:function(e){if(!this.tableEditor.info.isHtmlTable){var t=this.tableEditor.info,n=t.tableIndex,r=t.columns;this.$setSelection(n,"table");var i=this.codeMirror.getSelection().split("\n");if(!(i.length<3)){var o,a=Yy(this.tableEditor.info.selection,1)[0].line,s="".concat(Gx("|  ").call("|  ",r).replace(/  $/,""),"\n");if("top"===e)o=a+2;else if("bottom"===e)o=a+i.length;else{if("number"!=typeof e)return;var l=i.length-2;if(e<1||e>=l)return;o=a+2+e}this.codeMirror.replaceRange(s,{line:o,ch:0}),this.$afterTableOperation()}}}},{key:"$getTdAlign",value:function(e,t,n){if(1!==t)return"  ";var r=n<0?0:n;return"string"==typeof e[r]?e[r]:" ------ "}},{key:"$insertCol",value:function(){var e=this;this.$setSelection(this.tableEditor.info.tableIndex,"table");var t=this.codeMirror.getSelection().split("\n"),n=_h(t).call(t,function(t,n){var r=/^\s*\|/.test(t)?"type1":"type2",i=t.split("|"),o=0,a=0;if("type1"===r){o=(o=e.tableEditor.info.tdIndex+1)<1?1:o;var s=e.tableEditor.info.tdIndex+2;a=s<1?1:s}else{o=e.tableEditor.info.tdIndex;var l=e.tableEditor.info.tdIndex+1;a=l<0?0:l}var c=e.$getTdAlign(i,n,o);return pk(i).call(i,a,0,c),i.join("|")}),r=n.join("\n");this.codeMirror.replaceSelection(r),this.$afterTableOperation()}},{key:"$drawMenu",value:function(){var e=this,t=["top","left"],n=_h(t).call(t,function(e){return[e]}),r=document.createElement("div");r.className="cherry-previewer-table-hover-handler-menu-container",gf(n).call(n,function(t){var n=Yy(t,1)[0],i=document.createElement("button");i.setAttribute("type","button"),i.setAttribute("data-type",n),i.className="cherry-previewer-table-hover-handler__menu ch-icon ch-icon-menu",i.title="菜单";var o=e.$createMenuBubble(n);i.appendChild(o),i.addEventListener("click",function(t){t.stopPropagation(),e.$toggleMenuBubble(i,o)}),e.$addDragFunctionalityToMenuButton(i,n),r.appendChild(i)}),this.tableEditor.editorDom.menuContainer=r,this.container.appendChild(this.tableEditor.editorDom.menuContainer),this.$setMenuButtonPosition()}},{key:"$addDragFunctionalityToMenuButton",value:function(e,t){"left"===t?this.$addRowDragFunctionality(e):"top"===t&&this.$addColumnDragFunctionality(e)}},{key:"$addRowDragFunctionality",value:function(e){var t=this;e.draggable=!0,e.title="拖拽移动行",e.addEventListener("mouseover",function(){t.$applyRowHighlight(!0)}),e.addEventListener("mouseleave",function(){t.$applyRowHighlight(!1)}),e.addEventListener("mousedown",function(e){t.$setSelection(t.tableEditor.info.tableIndex,"table"),t.$dragLine()})}},{key:"$addColumnDragFunctionality",value:function(e){var t=this;e.draggable=!0,e.title="拖拽移动列",e.addEventListener("mouseover",function(){t.$highlightCurrentColumn()}),e.addEventListener("mouseleave",function(){t.$unhighlightCurrentColumn()}),e.addEventListener("mousedown",function(e){t.$setSelection(t.tableEditor.info.tableIndex,"table"),t.$dragCol()})}},{key:"$highlightCurrentColumn",value:function(){var e,t=this.tableEditor.info.tdNode;if(t){this.$clearAllBorders(),t.draggable=!0;var n=yx(e=u_(t.parentNode.children)).call(e,t);if(-1!==n){var r=t.closest("table");if(r){var i=r.querySelectorAll("tr");gf(i).call(i,function(e){var t=e.querySelectorAll("td, th");t[n]&&t[n].classList.add("table-highlight-col")})}}}}},{key:"$unhighlightCurrentColumn",value:function(){var e=this.tableEditor.info.tdNode;e&&(e.draggable=!1,this.$clearAllBorders())}},{key:"$clearAllBorders",value:function(){var e,t=null===(e=this.tableEditor.info)||void 0===e?void 0:e.tableNode;t&&this.$clearTableHighlights(t)}},{key:"$clearTableHighlights",value:function(e){if(e){var t=e.querySelectorAll("td, th");gf(t).call(t,function(e){e.classList.remove("table-highlight-row","table-highlight-col"),e.classList.remove("table-highlight-border-reorder-right","table-highlight-border-reorder-left","table-highlight-border-reorder-top","table-highlight-border-reorder-bottom"),e instanceof HTMLElement&&(e.style.border="",e.style.borderLeft="",e.style.borderRight="",e.style.borderTop="",e.style.borderBottom="",e.style.background="")});var n=e.querySelectorAll("tr");gf(n).call(n,function(e){e.classList.remove("table-highlight-border-reorder-right","table-highlight-border-reorder-left","table-highlight-border-reorder-top","table-highlight-border-reorder-bottom"),e instanceof HTMLElement&&(e.style.border="",e.style.background="")})}}},{key:"$highlightColumnCellsDom",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tableEditor.info.tdIndex,t=arguments.length>1?arguments[1]:void 0,n=this.tableEditor.info.tableNode.rows,r=0;r<n.length;r++)if(n[r].cells[e]){var i=n[r].cells[e];"left"===t?i.classList.add("table-highlight-border-reorder-left"):"right"===t?i.classList.add("table-highlight-border-reorder-right"):"top"===t?i.classList.add("table-highlight-border-reorder-top"):"bottom"===t&&i.classList.add("table-highlight-border-reorder-bottom")}}},{key:"$highlightColumn",value:function(){var e=this.tableEditor.info,t=e.tableNode,n=e.tdIndex;if(t)for(var r=t.rows,i=0;i<r.length;i++){var o=r[i].cells[n];o&&o.classList.add("table-highlight-col")}}},{key:"$cancelHighlightColumn",value:function(){var e=this.tableEditor.info,t=e.tableNode,n=e.tdIndex;if(t)for(var r=t.rows,i=0;i<r.length;i++){var o=r[i].cells[n];o&&o.classList.remove("table-highlight-col")}}},{key:"$highlightRow",value:function(){this.$applyRowHighlight(!0)}},{key:"$cancelHighlightRow",value:function(){this.$applyRowHighlight(!1)}},{key:"$applyRowHighlight",value:function(e){var t=this.tableEditor.info.trNode;if(t)for(var n=t.cells,r=0;r<n.length;r++)e?n[r].classList.add("table-highlight-row"):n[r].classList.remove("table-highlight-row")}},{key:"$setMenuButtonPosition",value:function(){var e,t=this,n=this.tableEditor.editorDom.menuContainer,r=this.tableEditor.info,i=r.tableNode,o=r.tdNode,a=r.isTHead,s=this.$getPosition(i),l=this.$getPosition(o);this.setStyle(this.container,"width","".concat(s.width,"px")),this.setStyle(this.container,"height","".concat(s.height,"px")),this.setStyle(this.container,"top","".concat(s.top,"px")),this.setStyle(this.container,"left","".concat(s.left,"px")),gf(e=n.childNodes).call(e,function(e){var n=e.dataset.type,r=5,i=1;"left"===n?(a&&t.setStyle(e,"display","none"),t.setStyle(e,"top","".concat(l.top-s.top+l.height/2-e.offsetHeight/2,"px")),t.setStyle(e,"left","-".concat((e.offsetWidth-i)/2,"px"))):"top"===n&&(t.setStyle(e,"top","-".concat(r+i,"px")),t.setStyle(e,"left","".concat(l.left-s.left+l.width/2-e.offsetWidth/2,"px")))})}},{key:"$createMenuBubble",value:function(e){var t=this,n=document.createElement("div"),r="left"===e?"cherry-previewer-table-menu-bubble cherry-previewer-table-menu-bubble--vertical cherry-previewer-table-menu-bubble--hidden":"cherry-previewer-table-menu-bubble cherry-previewer-table-menu-bubble--horizontal cherry-previewer-table-menu-bubble--hidden";n.className=r;var i=this.$getMenuConfig(e);return gf(i).call(i,function(r){var i=t.$createMenuOption(r,e);n.appendChild(i)}),n}},{key:"$getMenuConfig",value:function(e){var t="left"===e,n=[{id:"delete",icon:"ch-icon-cherry-table-delete",title:t?this.$cherry.locale.deleteRow:this.$cherry.locale.deleteColumn,action:t?"deleteRow":"deleteColumn",highlight:t?"row":"column",showIn:["row","column"]},{id:"align-left",icon:"ch-icon-alignLeft",title:"左对齐",action:"alignLeft",showIn:["column"]},{id:"align-center",icon:"ch-icon-alignCenter",title:"居中",action:"alignCenter",showIn:["column"]},{id:"align-right",icon:"ch-icon-alignRight",title:"右对齐",action:"alignRight",showIn:["column"]}],r=t?"row":"column",i=uo(n).call(n,function(e){var t;return uh(t=e.showIn).call(t,r)});return i}},{key:"$createMenuOption",value:function(e,t){var n=this,r=document.createElement("div");r.className="cherry-previewer-table-menu-option",r.setAttribute("data-action",e.action),r.title=e.title;var i=document.createElement("span");return i.className="ch-icon ".concat(e.icon),r.appendChild(i),r.addEventListener("click",function(){n.$executeMenuAction(e.action,t),n.$hideMenuBubble(r.closest(".cherry-previewer-table-menu-bubble"))}),e.highlight&&(r.addEventListener("mouseover",function(){n.$highlightElement(e.highlight)}),r.addEventListener("mouseout",function(){n.$cancelHighlightElement(e.highlight)})),r}},{key:"$executeMenuAction",value:function(e,t){switch(e){case"deleteRow":this.$deleteCurrentRow();break;case"deleteColumn":this.$deleteCurrentColumn();break;case"alignLeft":this.$alignColumn("left");break;case"alignCenter":this.$alignColumn("center");break;case"alignRight":this.$alignColumn("right");break;default:console.warn("Unknown menu action: ".concat(e))}}},{key:"$alignColumn",value:function(e){var t=this.tableEditor.info,n=t.tableIndex,r=t.tdIndex;this.$setSelection(n,"table");var i=this.codeMirror.getSelection().split("\n");this.$alignColumnInMarkdownTable(i,r,e),this.$afterTableOperation()}},{key:"$alignColumnInMarkdownTable",value:function(e,t,n){var r,i;if(!(e.length<2)){var o=e[1],a=m_(r=c_(o).call(o)).call(r,">"),s="",l=o;if(a){var c=o.match(/^(>\s*)+/);s=c?c[0]:"> ",l=o.substring(s.length)}var u=_x(i=l.split("|")).call(i,1,-1);if(t>=0&&t<u.length){var d,h;switch(n){case"left":d=":---";break;case"center":d=":---:";break;case"right":d="---:";break;default:d="---"}u[t]=d,e[1]=a?Xu(h="".concat(s,"|")).call(h,u.join("|"),"|"):"|".concat(u.join("|"),"|");var f=e.join("\n");this.codeMirror.replaceSelection(f)}}}},{key:"$highlightElement",value:function(e){switch(e){case"row":this.$highlightRow();break;case"column":this.$highlightColumn();break;default:console.warn("Unknown highlight type: ".concat(e))}}},{key:"$cancelHighlightElement",value:function(e){switch(e){case"row":this.$cancelHighlightRow();break;case"column":this.$cancelHighlightColumn();break;default:console.warn("Unknown highlight type: ".concat(e))}}},{key:"$toggleMenuBubble",value:function(e,t){t.classList.contains("cherry-previewer-table-menu-bubble--hidden")?this.$showMenuBubble(e,t):this.$hideMenuBubble(t)}},{key:"$showMenuBubble",value:function(e,t){var n=this,r=this.container.querySelectorAll(".cherry-previewer-table-menu-bubble");gf(r).call(r,function(e){e!==t&&e.classList.add("cherry-previewer-table-menu-bubble--hidden")}),t.classList.remove("cherry-previewer-table-menu-bubble--hidden");var i=e.dataset.type;"left"===i?(t.style.top="350%",t.style.transform="translateY(-50%) rotate(-90deg)"):"top"===i&&(t.style.top="-450%",t.style.left="50%",t.style.transform="translateX(-50%)");var o=function(r){t.contains(r.target)||e.contains(r.target)||(n.$hideMenuBubble(t),document.removeEventListener("click",o))};_d(function(){document.addEventListener("click",o)},0)}},{key:"$hideMenuBubble",value:function(e){e.classList.add("cherry-previewer-table-menu-bubble--hidden")}},{key:"$deleteCurrentRow",value:function(){var e=this.tableEditor.info,t=e.tableIndex,n=e.trIndex;this.$setSelection(t,"table");var r=this.codeMirror.getSelection().split("\n");pk(r).call(r,n+2,1);var i=r.join("\n");this.codeMirror.replaceSelection(i),this.$afterTableOperation()}},{key:"$deleteCurrentColumn",value:function(){var e=this.tableEditor.info,t=e.tableIndex,n=e.tdIndex;this.$setSelection(t,"table");var r=this.codeMirror.getSelection().split("\n"),i=OB(r).call(r,function(e){var t;return m_(t=c_(e).call(e)).call(t,">")});if(i){var o=_h(r).call(r,function(e){var t=c_(e).call(e);if(m_(t).call(t,">")){var n,r=t.match(/^(>\s*)+/),i=r?r[0]:"> ",o=t.substring(i.length);return{quotePrefix:i,cells:_x(n=o.split("|")).call(n,1,-1)}}return{quotePrefix:"",cells:[]}});gf(o).call(o,function(e){var t;n>=0&&n<e.cells.length&&pk(t=e.cells).call(t,n,1)});var a=_h(o).call(o,function(e){var t;return 0===e.cells.length?"":Xu(t="".concat(e.quotePrefix,"|")).call(t,e.cells.join("|"),"|")}).join("\n");this.codeMirror.replaceSelection(a)}else{var s=_h(r).call(r,function(e){var t;return _x(t=e.split("|")).call(t,1,-1)});gf(s).call(s,function(e){n>=0&&n<e.length&&pk(e).call(e,n,1)});var l=_h(s).call(s,function(e){return 0===e.length?"":"|".concat(e.join("|"),"|")}).join("\n");this.codeMirror.replaceSelection(l)}this.$afterTableOperation()}},{key:"$dragCol",value:function(){var e=this.tableEditor.info.tdIndex,t=this.target.parentElement,n=this.codeMirror.getSelection().split(/\n/),r=this.tableEditor.info.tdNode,i=this;function o(e){i.$clearAllBorders()}function a(n){var r;n.preventDefault();var o=yx(r=u_(n.target.parentElement.childNodes)).call(r,n.target);i.$dragSymbol(n.target,e,o,"Col"),t.setAttribute("draggable",!1)}function s(t){var r;t.preventDefault();var o=yx(r=u_(t.target.parentElement.childNodes)).call(r,t.target);if(e===o)return i.$clearAllBorders(),void l();var a=_h(n).call(n,function(t,n){var r,a;if(!c_(t).call(t))return t;var s=_x(r=_h(a=t.split("|")).call(a,function(e){return""===e?"CHERRY_MARKDOWN_PENDING_TEXT_FOR_EMPTY_CELL":e})).call(r,1,-1);return e>=0&&e<s.length&&o>=0&&o<s.length?"|".concat(i.$operateLines(e,o,s).join("|"),"|"):t}),s=a.join("\n").replace(/CHERRY_MARKDOWN_PENDING_TEXT_FOR_EMPTY_CELL/g,"");i.codeMirror.replaceSelection(s),i.$clearAllBorders(),i.$findTableInEditor(),i.$setSelection(i.tableEditor.info.tableIndex,"table"),l()}function l(){t.removeEventListener("dragleave",o),t.removeEventListener("dragover",a),t.removeEventListener("drop",s),r.removeAttribute("draggable"),i.$clearAllBorders()}r.hasAttribute("draggable")||r.setAttribute("draggable",!0),t.addEventListener("dragleave",o),t.addEventListener("dragover",a),t.addEventListener("drop",s,{once:!0})}},{key:"$dragLine",value:function(){var e=this.tableEditor.info.trNode;e.hasAttribute("draggable")||e.setAttribute("draggable",!0),this.$setSelection(this.tableEditor.info.tableIndex,"table");var t=this.tableEditor.info.trIndex+2,n=e.parentElement,r=this.codeMirror.getSelection().split(/\n/),i=this;function o(e){i.$clearAllBorders()}function a(n){var r;n.preventDefault();var o=yx(r=u_(n.target.parentElement.parentElement.childNodes)).call(r,n.target.parentElement)+2;i.$dragSymbol(n.target,t,o,"Line"),e.setAttribute("draggable",!1)}function s(e){var n;e.preventDefault();var o=yx(n=u_(e.target.parentElement.parentElement.childNodes)).call(n,e.target.parentElement)+2;if(t===o)return i.$clearAllBorders(),void l();var a=i.$operateLines(t,o,r).join("\n");i.codeMirror.replaceSelection(a),i.$findTableInEditor(),i.$setSelection(i.tableEditor.info.tableIndex,"table"),i.$clearAllBorders(),l()}function l(){n.removeEventListener("dragleave",o),n.removeEventListener("dragover",a),n.removeEventListener("drop",s),e.removeAttribute("draggable"),i.$clearAllBorders()}n.addEventListener("dragleave",o),n.addEventListener("dragover",a),n.addEventListener("drop",s,{once:!0})}},{key:"$dragSymbol",value:function(e,t,n,r){var i=this.target;i!==e&&t!==n&&("TH"!==i.tagName&&"TD"!==i.tagName||"Col"!==r?"TD"===i.tagName&&"Line"===r&&this.$showRowDragFeedback(e,t,n):this.$showColumnDragFeedback(e,t,n))}},{key:"$showColumnDragFeedback",value:function(e,t,n){this.$clearAllBorders(),t<n?this.$highlightColumnCellsDom(n,"right"):t>n&&this.$highlightColumnCellsDom(n,"left")}},{key:"$showRowDragFeedback",value:function(e,t,n){this.$clearAllBorders(),t<n?e.parentElement.classList.add("table-highlight-border-reorder-bottom"):t>n&&e.parentElement.classList.add("table-highlight-border-reorder-top")}},{key:"$operateLines",value:function(e,t,n){if(e<t)pk(n).call(n,t+1,0,n[e]),pk(n).call(n,e,1);else if(e>t){var r=n[e];pk(n).call(n,e,1),pk(n).call(n,t,0,r)}return n}}])}(),xG=function(){return mc(function e(t,n,r,i,o){ua(this,e),Fu(this,"bubbleCard",{refNum:0,refTitle:"",content:""}),this.trigger=t,this.target=n,this.aElement=n,this.previewerDom=i.previewer.getDomContainer(),this.container=r,this.$cherry=i,this.bubbleConfig=o},[{key:"emit",value:function(e){switch(e){case"remove":return this.$remove();case"scroll":case"previewUpdate":return this.$refreshPosition()}}},{key:"$refreshPosition",value:function(){if(this.isShowBubble){var e=this.$getPosition(),t=e.top,n=e.left,r=e.width,i=e.height,o=e.maxLeft,a=this.container,s=a.offsetWidth,l=t-a.offsetHeight-5;l<0&&(l=t+i+5);var c=Math.min(Math.max(0,n+r/2-s/2),o-s-5);this.setStyle(a,"top","".concat(l,"px")),this.setStyle(a,"left","".concat(c,"px"))}}},{key:"showBubble",value:function(){var e,t,n,r,i,o;this.isShowBubble=!0,this.bubbleCard.refNum=this.target.getAttribute("data-index"),this.bubbleCard.refTitle=this.target.getAttribute("data-key"),this.bubbleCard.content=null!==(e=this.previewerDom.querySelector('.one-footnote[data-index="'.concat(this.bubbleCard.refNum,'"]')).innerHTML)&&void 0!==e?e:"";var a=null!==(t=this.previewerDom.className)&&void 0!==t?t:"",s=/theme__[^\s]+/.test(a)&&null!==(n=a.match(/theme__[^\s]+/)[0])&&void 0!==n?n:"";this.container.className=Xu(r="".concat(this.container.className.replace(/(^|\s)theme__[^\s]+/g,"")," ")).call(r,s);var l=null!==(i=null===(o=this.bubbleConfig)||void 0===o?void 0:o.render(this.bubbleCard.refNum,this.bubbleCard.refTitle,this.bubbleCard.content.replace(/<a class="footnote-ref[^>]+?>[^<]+<\/a>/,"")))&&void 0!==i?i:"";this.container.innerHTML=l||this.$render(),this.$refreshPosition()}},{key:"$render",value:function(){var e,t,n=this.bubbleCard,r=n.refNum,i=n.refTitle,o=n.content;return Xu(e=Xu(t='\n      <div class="cherry-ref-bubble-card__title">'.concat(r,". ")).call(t,i,'</div>\n      <div class="cherry-ref-bubble-card__content">')).call(e,o,'</div>\n      <div class="cherry-ref-bubble-card__foot"></div>\n    ')}},{key:"$tryRemoveMe",value:function(e,t){/textarea/i.test(e.target.tagName)||(this.$remove(),t())}},{key:"$getPosition",value:function(){var e=this.target.getBoundingClientRect(),t=this.previewerDom.parentNode.getBoundingClientRect();return{top:e.top-t.top,left:e.left-t.left,width:e.width,height:e.height,maxLeft:t.width+t.left}}},{key:"setStyle",value:function(e,t,n){e.getBoundingClientRect()[t]!==n&&(e.style[t]=n)}},{key:"$remove",value:function(){this.bubbleCard={refNum:0,refTitle:"",content:""}}}])}();function EG(e,t){return SG.apply(this,arguments)}function SG(){return SG=yz(iW.mark(function e(t,n){var r,i;return iW.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=function(e){t&&e.clipboardData.setData("text/plain",t),n&&e.clipboardData.setData("text/html",n),e.preventDefault()},t||n){e.next=3;break}throw new Error("没有提供任何内容进行复制");case 3:if(!navigator.clipboard||!window.ClipboardItem){e.next=16;break}return e.prev=4,r={},t&&(r["text/plain"]=new Blob([t],{type:"text/plain"})),n&&(r["text/html"]=new Blob([n],{type:"text/html"})),e.next=10,navigator.clipboard.write([new ClipboardItem(r)]);case 10:return e.abrupt("return");case 13:e.prev=13,e.t0=e.catch(4),console.warn("Clipboard API failed, falling back to execCommand:",e.t0);case 16:if(document.addEventListener("copy",i),e.prev=17,document.execCommand("copy")){e.next=21;break}throw new Error("Copy command was unsuccessful");case 21:return e.prev=21,document.removeEventListener("copy",i),e.finish(21);case 24:case"end":return e.stop()}},e,null,[[4,13],[17,,21,24]])})),SG.apply(this,arguments)}var CG,TG,kG,OG,MG,IG,DG,NG,RG,LG,BG=function(){return mc(function e(t,n,r,i,o,a){ua(this,e),Fu(this,"codeBlockEditor",{info:{},editorDom:{}}),this.trigger=t,this.target=n,this.previewerDom=i,this.container=r,this.codeMirror=o,this.$cherry=a.previewer.$cherry,this.parent=a,this.$initReg()},[{key:"$initReg",value:function(){this.codeBlockReg=this.codeBlockReg?this.codeBlockReg:fT().reg}},{key:"emit",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};switch(e){case"remove":return this.$remove();case"scroll":case"resize":return this.$updateContainerPosition();case"previewUpdate":return this.$updateContainerPosition(),void(this.editing&&this.$setInputOffset());case"mouseup":return this.$tryRemoveMe(t,n)}}},{key:"$remove",value:function(){this.codeBlockEditor={info:{},codeBlockCodes:[],editorDom:{}}}},{key:"$tryRemoveMe",value:function(e,t){var n=this.codeBlockEditor.editorDom.inputDiv;this.editing&&n&&!n.contains(e.target)&&(this.editing=!1,this.$remove(),t())}},{key:"$findCodeInEditor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.$collectCodeBlockDom(),this.$collectCodeBlockCode(),e?this.$setLangSelection(this.codeBlockEditor.info.codeBlockIndex):this.$setBlockSelection(this.codeBlockEditor.info.codeBlockIndex)}},{key:"$collectCodeBlockDom",value:function(){var e=u_(this.previewerDom.querySelectorAll('[data-type="codeBlock"]'));this.codeBlockEditor.info={codeBlockNode:this.target,codeBlockIndex:yx(e).call(e,this.target)}}},{key:"$collectCodeBlockCode",value:function(){var e=[];this.codeMirror.getValue().replace(this.codeBlockReg,function(t){var n,r=t.replace(/^\n*/,""),i=((n=(arguments.length<=1?0:arguments.length-1)-2+1)<1||arguments.length<=n?void 0:arguments[n])+t.match(/^\n*/)[0].length;m_(r).call(r,"```mermaid")||e.push({code:r,offset:i})}),this.codeBlockEditor.codeBlockCodes=e}},{key:"$setBlockSelection",value:function(e){var t,n,r,i,o=this.codeBlockEditor.codeBlockCodes[e],a=this.codeMirror.getValue(),s=null!==(t=null===(n=_x(a).call(a,0,o.offset).match(/\n/g))||void 0===n?void 0:n.length)&&void 0!==t?t:0,l=s+o.code.match(/\n/g).length,c=_x(r=o.code).call(r,0,-3).match(/[^\n]+\n*$/)[0].length;this.codeBlockEditor.info.selection=[{line:l-1,ch:c},{line:s+1,ch:0}],(i=this.codeMirror).setSelection.apply(i,DI(this.codeBlockEditor.info.selection))}},{key:"$setLangSelection",value:function(e){var t,n,r,i,o=this.codeBlockEditor.codeBlockCodes[e],a=this.codeMirror.getValue(),s=null!==(t=null===(n=_x(a).call(a,0,o.offset).match(/\n/g))||void 0===n?void 0:n.length)&&void 0!==t?t:0,l=(null!==(r=o.code.match(/```\s*[^\n]+/)[0])&&void 0!==r?r:"```").length;this.codeBlockEditor.info.selection=[{line:s,ch:3},{line:s,ch:l}],(i=this.codeMirror).setSelection.apply(i,DI(this.codeBlockEditor.info.selection))}},{key:"showBubble",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.$updateContainerPosition(),"hover"===this.trigger&&this.$showBtn(t),"click"===this.trigger&&this.$showContentEditor(),this.container.addEventListener("wheel",function(t){t.stopPropagation(),t.preventDefault(),e.previewerDom.scrollTop+=t.deltaY/3})}},{key:"$showContentEditor",value:function(){this.editing=!0,this.$findCodeInEditor(),this.$drawEditor()}},{key:"$showBtn",value:function(e){var t=this,n=this.target.dataset,r=n.changeLang,i=n.editCode,o=n.copyCode,a=n.lang,s=n.expandCode;if(this.container.innerHTML="","true"===r&&e){this.container.innerHTML=function(e){var t,n=_h(SF).call(SF,function(t){var n,r;return e===t?Xu(r='<option value="'.concat(t,'" selected="selected">')).call(r,t,"</option>"):Xu(n='<option value="'.concat(t,'">')).call(n,t,"</option>")});return Xu(t='<select id="code-preview-lang-select" class="'.concat("cherry-code-preview-lang-select",'">\n      <option value="" selected disabled hidden>Choose here</option>\n      ')).call(t,n.join(""),"\n    </select>")}(a);var l=this.container.querySelector("#code-preview-lang-select");this.changeLangDom=l,this.changeLangDom.addEventListener("change",function(e){e.preventDefault(),e.stopPropagation(),t.parent.$removeAllPreviewerBubbles("click"),t.$changeLang(e.target.value||"")})}var c=.5;if("true"===i&&e){var u=document.createElement("div");u.className="cherry-edit-code-block",u.innerHTML='<i class="ch-icon ch-icon-edit"></i>',u.style.right="".concat(c,"em"),this.container.appendChild(u),u.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),t.$expandCodeBlock(!0,e),t.$hideAllBtn(),t.parent.$removeAllPreviewerBubbles("click"),t.parent.showCodeBlockPreviewerBubbles("click",t.target)}),this.editDom=u,c+=.5}if("true"===o){var d=document.createElement("div");d.className="cherry-copy-code-block",d.innerHTML='<i class="ch-icon ch-icon-copy"></i>',d.style.right="".concat(c,"em"),this.container.appendChild(d),d.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),t.parent.$removeAllPreviewerBubbles("click"),t.$copyCodeBlock()}),this.copyDom=d,c+=.5}var h=this.$cherry.options.engine.syntax.codeBlock.customBtns;if(h&&(this.codeBlockCustomBtns=[],gf(h).call(h,function(e){var n=document.createElement("div");n.className="cherry-code-block-custom-btn",n.innerHTML=e.html,n.style.right="".concat(c,"em"),t.container.appendChild(n),n.addEventListener("click",function(n){var r;n.preventDefault(),n.stopPropagation();var i=t.target.querySelector("pre").innerText,o=null!==(r=t.target.dataset.lang)&&void 0!==r?r:"";e.onClick(n,i,o,t.target)}),t.codeBlockCustomBtns.push(n),c+=.5})),"true"===s){var f=this.target.classList.contains("cherry-code-expand"),p=this.target.querySelector(".cherry-mask-code-block"),g=document.createElement("div");g.className="cherry-unExpand-code-block",g.innerHTML='<i class="ch-icon ch-icon-unExpand"></i>',g.style.right="".concat(c,"em"),f&&p||g.classList.add("hidden"),this.container.appendChild(g),g.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),t.parent.$removeAllPreviewerBubbles("click"),t.$expandCodeBlock(!1,e)}),this.unExpandDom=g,c+=.5}}},{key:"$hideAllBtn",value:function(){var e,t,n,r,i,o,a,s;null!==(e=this.changeLangDom)&&void 0!==e&&null!==(t=e.style)&&void 0!==t&&t.display&&(this.changeLangDom.style.display="none"),null!==(n=this.editDom)&&void 0!==n&&null!==(r=n.style)&&void 0!==r&&r.display&&(this.editDom.style.display="none"),null!==(i=this.copyDom)&&void 0!==i&&null!==(o=i.style)&&void 0!==o&&o.display&&(this.copyDom.style.display="none"),null!==(a=this.unExpandDom)&&void 0!==a&&null!==(s=a.style)&&void 0!==s&&s.display&&(this.unExpandDom.style.display="none")}},{key:"$changeLang",value:function(e){this.$findCodeInEditor(!0),this.codeMirror.replaceSelection(e,"around")}},{key:"$drawEditor",value:function(){var e=document.createElement("div");e.className="cherry-previewer-codeBlock-content-handler__input";var t=document.createElement("textarea");t.id="codeMirrorEditor",e.appendChild(t);var n=__.fromTextArea(t,{mode:"",theme:"default",scrollbarStyle:"null",lineNumbers:!0,autofocus:!0,lineWrapping:!0,cursorHeight:.85,indentUnit:4,tabSize:4,keyMap:"sublime"}),r=this.codeMirror;n.on("change",function(){r.replaceSelection(n.getValue(),"around")}),this.codeBlockEditor.editorDom.inputDiv=e,this.codeBlockEditor.editorDom.inputDom=n,this.$updateEditorPosition(),this.container.appendChild(this.codeBlockEditor.editorDom.inputDiv),this.codeBlockEditor.editorDom.inputDom.focus(),this.codeBlockEditor.editorDom.inputDom.refresh(),n.setValue(this.codeMirror.getSelection())}},{key:"$expandCodeBlock",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;if(this.unExpandDom){this.target.classList.remove("cherry-code-unExpand"),this.target.classList.remove("cherry-code-expand"),this.unExpandDom.classList.remove("hidden");var n=this.target.querySelector("pre").innerText;e?(this.$cherry.options.callback.onExpandCode&&this.$cherry.options.callback.onUnExpandCode(t,n),this.target.classList.add("cherry-code-expand")):(this.$cherry.options.callback.onExpandCode&&this.$cherry.options.callback.onExpandCode(t,n),this.unExpandDom.classList.add("hidden"),this.target.classList.add("cherry-code-unExpand"))}}},{key:"$copyCodeBlock",value:function(){var e=this.target.querySelector("pre").innerText,t=this.$cherry.options.callback.onCopyCode({target:this.target},e);if(!1===t)return!1;var n=this.copyDom.querySelector("i.ch-icon-copy");n&&(n.className=n.className.replace("copy","ok"),_d(function(){n.className=n.className.replace("ok","copy")},1e3)),EG(t)}},{key:"$updateContainerPosition",value:function(){this.codeBlockEditor.info.codeBlockNode=this.target;var e=this.$getPosition();this.setStyle(this.container,"width","".concat(e.width,"px")),this.setStyle(this.container,"top","".concat(e.top,"px")),this.setStyle(this.container,"left","".concat(e.left,"px"))}},{key:"$updateEditorPosition",value:function(){this.$setInputOffset();var e=getComputedStyle(this.codeBlockEditor.info.codeBlockNode),t=this.codeBlockEditor.editorDom.inputDom.getWrapperElement();this.setStyle(t,"fontSize",e.fontSize||"16px"),this.setStyle(t,"fontFamily",e.fontFamily),this.setStyle(t,"lineHeight","1.8em"),this.setStyle(t,"zIndex","1")}},{key:"$setInputOffset",value:function(){var e=this.$getPosition(),t=this.codeBlockEditor.editorDom.inputDiv;this.setStyle(t,"width","".concat(e.width,"px")),this.setStyle(t,"height","".concat(e.height+10,"px"))}},{key:"setStyle",value:function(e,t,n){e.getBoundingClientRect()[t]!==n&&(e.style[t]=n)}},{key:"$getPosition",value:function(){var e=this.codeBlockEditor.info.codeBlockNode.getBoundingClientRect(),t=this.previewerDom.parentNode.getBoundingClientRect();return{top:e.top-t.top,height:e.height,width:e.width,left:e.left-t.left,maxHeight:t.height}}}])}(),PG=function(e,t,n){return Math.min(Math.max(e,t),n)},FG={open:function(){this.resetStyle(),this.dom.style.display="block",this.postMessage("ready?")},close:function(){this.dom.style.display="none"},postMessage:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";null===(t=this.iframeDom)||void 0===t||null===(n=t.contentWindow)||void 0===n||n.postMessage({eventName:e,value:r},"*")},resetStyle:function(){var e=this.dom;e.style.left="10%",e.style.top="10%"},bindEvents:function(){this.bindClickEvents(),this.bindDNDEvents()},bindClickEvents:function(){var e=this;this.headCloseButton.addEventListener("click",function(){e.close()}),this.footSureButton.addEventListener("click",function(){e.postMessage("getData")})},bindDNDEvents:function(){var e,t,n=this.dom,r=this.head,i=this.body,o=function(r){r.preventDefault();var i=PG(r.clientX-e,0,window.innerWidth-16),o=PG(r.clientY-t,0,window.innerHeight-16);n.style.left="".concat(i,"px"),n.style.top="".concat(o,"px")},a=function(e){r.style.cursor="grab",i.style.pointerEvents=null,document.removeEventListener("mousemove",o),document.removeEventListener("mousemove",a)};r.addEventListener("mousedown",function(s){s.target.classList.contains("cherry-dialog--close")||(e=s.clientX-n.offsetLeft,t=s.clientY-n.offsetTop,r.style.cursor="grabbing",i.style.pointerEvents="none",document.addEventListener("mousemove",o),document.addEventListener("mouseup",a))})},draw:function(e,t,n){var r=this,i=e.iframeSrc,o=e.iframeStyle,a=e.title;if(this.onSubmit=n,this.onReady=t,this.dom)return new RegExp("".concat(i,"$"),"i").test(this.iframeDom.src)||(this.iframeDom.src=i),void this.open();window.addEventListener("message",function(e){if(e.data&&e.data.eventName)switch(e.data.eventName){case"getData:success":r.onSubmit(e.data.value),r.close();case"ready":r.onReady()}}),this.iframeDom=OC("iframe","cherry-dialog-iframe",{src:i,style:o}),this.dom=OC("div","cherry-dialog",{style:["z-index:9999","display: block","position: absolute","top: 10%;left: 10%;width: 80%;height: 80%;","background-color: #FFF","box-shadow: 0px 50px 100px -12px rgba(0,0,0,.05),0px 30px 60px -30px rgba(0,0,0,.1)","border-radius: 6px","border: 1px solid #ddd;"].join(";")}),this.head=OC("div","cherry-dialog--head",{style:["height: 30px","line-height: 30px","padding-left: 10px","padding-right: 10px","cursor: grab;"].join(";")}),this.body=OC("div","cherry-dialog--body",{style:["position: absolute","bottom: 30px","top: 30px","left: 0","right: 0","overflow: hidden"].join(";")}),this.foot=OC("div","cherry-dialog--foot",{style:["height: 30px","line-height: 30px","padding-left: 10px","padding-right: 10px","position: absolute","bottom: 0","left: 0","right: 0"].join(";")}),this.headTitle=OC("span","cherry-dialog--title",{style:"user-select:none;"}),this.headCloseButton=OC("i","cherry-dialog--close ch-icon ch-icon-close",{style:"float: right;font-size: 12px;cursor: pointer;"}),this.footSureButton=OC("button","cherry-dialog--sure",{style:["float: right","cursor: pointer","margin: 3px","background-color: #4d90fe","color: #FFF","border: 1px solid #4d90fe","border-radius: 2px","padding: 2px 15px","user-select:none"].join(";")}),this.headCloseButton.title="关闭",this.footSureButton.textContent="确定",this.headTitle.textContent=a,this.head.appendChild(this.headTitle),this.head.appendChild(this.headCloseButton),this.foot.appendChild(this.footSureButton),this.body.appendChild(this.iframeDom),this.dom.appendChild(this.head),this.dom.appendChild(this.body),this.dom.appendChild(this.foot),this.bindEvents(),document.body.appendChild(this.dom)}};function $G(){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,n={iframeSrc:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",iframeStyle:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",title:"draw.io"};FG.draw(n,function(){FG.postMessage("setData",e)},function(e){t(e)})}function jG(){if(IG)return MG;IG=1;var e=function(){if(OG)return kG;OG=1;var e=/\s/;return kG=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}}(),t=/^\s+/;return MG=function(n){return n?n.slice(0,e(n)+1).replace(t,""):n}}var HG,UG,QG,zG,WG=function(){if(LG)return RG;LG=1;var e=Sg(),t=function(){if(TG)return CG;TG=1;var e=_g();return CG=function(){return e.Date.now()}}(),n=function(){if(NG)return DG;NG=1;var e=jG(),t=Sg(),n=bF(),r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt;return DG=function(s){if("number"==typeof s)return s;if(n(s))return NaN;if(t(s)){var l="function"==typeof s.valueOf?s.valueOf():s;s=t(l)?l+"":l}if("string"!=typeof s)return 0===s?s:+s;s=e(s);var c=i.test(s);return c||o.test(s)?a(s.slice(2),c?2:8):r.test(s)?NaN:+s},DG}(),r=Math.max,i=Math.min;return RG=function(o,a,s){var l,c,u,d,h,f,p=0,g=!1,m=!1,v=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function A(e){var t=l,n=c;return l=c=void 0,p=e,d=o.apply(n,t)}function b(e){var t=e-f;return void 0===f||t>=a||t<0||m&&e-p>=u}function y(){var e=t();if(b(e))return w(e);h=setTimeout(y,function(e){var t=a-(e-f);return m?i(t,u-(e-p)):t}(e))}function w(e){return h=void 0,v&&l?A(e):(l=c=void 0,d)}function _(){var e=t(),n=b(e);if(l=arguments,c=this,f=e,n){if(void 0===h)return function(e){return p=e,h=setTimeout(y,a),g?A(e):d}(f);if(m)return clearTimeout(h),h=setTimeout(y,a),A(f)}return void 0===h&&(h=setTimeout(y,a)),d}return a=n(a)||0,e(s)&&(g=!!s.leading,u=(m="maxWait"in s)?r(n(s.maxWait)||0,a):u,v="trailing"in s?!!s.trailing:v),_.cancel=function(){void 0!==h&&clearTimeout(h),p=0,l=f=c=h=void 0},_.flush=function(){return void 0===h?d:w(t())},_},RG}(),GG=i(WG),VG=function(){return mc(function e(t,n,r,i,o){ua(this,e),Fu(this,"bubbleContainer",null),this.trigger=t,this.target=n,this.container=r,this.previewerDom=i,this.editor=o},[{key:"emit",value:function(e,t){switch(e){case"remove":case"scroll":return this.remove()}}},{key:"drawBubble",value:function(){var e,t,n,r=document.createElement("div");r.innerHTML='<div class="formula-utils-btn formula-utils-img">\n    <button>输出图片</button>\n    <div class="formula-utils-submenu formula-utils-img-submenu">\n      <div class="formula-utils-submenu-btn formula-utils-img-svg">\n        <button data-name="svg">svg</button>\n      </div>\n      <div class="formula-utils-submenu-btn formula-utils-img-png">\n        <button data-name="png">png</button>\n      </div>\n      <div class="formula-utils-submenu-btn formula-utils-img-jpg">\n        <button data-name="jpg">jpg</button>\n      </div>\n    </div>\n  </div>\n  <div class="formula-utils-btn formula-utils-code">\n    <button>输出代码</button>\n    <div class="formula-utils-submenu formula-utils-code-submenu">\n      <div class="formula-utils-submenu-btn formula-utils-code-latex">\n        <button data-name="latex">latex</button>\n      </div>\n      <div class="formula-utils-submenu-btn formula-utils-code-html">\n        <button data-name="html">html</button>\n      </div>\n      <div class="formula-utils-submenu-btn formula-utils-code-svgcode">\n        <button data-name="svgcode">svgcode</button>\n      </div>\n    </div>\n  </div>\n  <div class="formula-utils-btn formula-utils-word">\n    <button>输出mathml</button>\n    <div class="formula-utils-submenu formula-utils-word-submenu">\n      <div class="formula-utils-submenu-btn formula-utils-word-mathml">\n        <button data-name="mathml">mathml</button>\n      </div>\n    </div>\n  </div>\n  <div class="formula-utils-btn formula-utils-transfer">\n    <button>转义</button>\n    <div class="formula-utils-submenu formula-utils-transfer-submenu">\n      <div class="formula-utils-submenu-btn formula-utils-transfer-backslash">\n        <button data-name="\\">反斜杠</button>\n      </div>\n      <div class="formula-utils-submenu-btn formula-utils-transfer-dollar">\n        <button data-name="$">$包裹</button>\n      </div>\n      <div class="formula-utils-submenu-btn formula-utils-transfer-double-dollar">\n        <button data-name="$$">$$包裹</button>\n      </div>\n    </div>\n  </div>',r.id="formula-utils-bubble-container",r.className=["formula-utils-bubble-container"].join(" "),this.bubbleContainer=r,null==this||null===(e=this.editor)||void 0===e||null===(t=e.$cherry)||void 0===t||null===(n=t.wrapperDom)||void 0===n||n.appendChild(r)}},{key:"showBubble",value:function(e,t){var n,r,i,o,a,s=null==this||null===(n=this.editor)||void 0===n||null===(r=n.$cherry)||void 0===r||null===(i=r.wrapperDom)||void 0===i||null===(o=i.children)||void 0===o?void 0:o.namedItem("formula-utils-bubble-container"),l=this.target.getBoundingClientRect();s instanceof HTMLElement?this.bubbleContainer=s:this.drawBubble(),this.bubbleContainer.style.display="flex",this.bubbleContainer.style.top="".concat(t||l.top,"px"),this.bubbleContainer.style.left="".concat(e||l.left,"px"),this.bubbleContainer.addEventListener("click",Ju(a=this.bubbleClickHandler).call(a,this),{once:!0}),this.collectFormulaCode()}},{key:"collectFormulaCode",value:function(){var e=[];this.editor.editor.getValue().replace(/(\$+)\s*([\w\W]*?)\s*(\1)/g,function(t,n,r,i,o){e.push({code:r,offset:o})}),this.formulaCode=e}},{key:"remove",value:function(){this.bubbleContainer&&(this.bubbleContainer.style.display="none")}},{key:"bubbleClickHandler",value:function(e){var t=this;e.preventDefault(),e.stopPropagation();var n=e.target;if(n instanceof HTMLButtonElement){var r=n.dataset.name,i=void 0===r?"":r;switch(i){case"svg":case"png":case"jpg":this.target instanceof SVGSVGElement&&aW(this.target,{format:i});break;case"html":case"svgcode":if(this.target instanceof SVGSVGElement)if("svgcode"===i)EG(sW(this.target));else{var o=this.target.parentElement.querySelector("math");o.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),EG(void 0,o.outerHTML)}break;case"\\":case"$":case"$$":case"latex":case"mathml":case"docx":var a=this.previewerDom.querySelectorAll("mjx-container"),s=-1;if(gf(a).call(a,function(e,n){e===t.target.parentElement&&(s=n)}),s>=0&&this.formulaCode[s]){var l=this.formulaCode[s].code;if("mathml"===i||"docx"===i){var c,u,d,h,f=zw(c=this.editor.$cherry.engine.hooks.paragraph).call(c,function(e){return e instanceof HL});f&&"MathJax"===f.engine&&(null===(u=window.MathJax)||void 0===u||u.texReset(),null===(d=window.MathJax)||void 0===d||null===(h=d.tex2mmlPromise)||void 0===h||h.call(d,l,{display:!0}).then(function(e){"mathml"===i&&EG(e)}))}else if("latex"===i)EG(l);else if("$"===i){var p,g;EG(Xu(p=Xu(g="".concat(i)).call(g,l)).call(p,i))}else if("$$"===i){var m,v;EG(Xu(m=Xu(v="".concat(i,"\n")).call(v,l,"\n")).call(m,i))}else"\\"===i&&EG("\\".concat(l))}}}this.remove()}}])}(),KG=function(){return mc(function e(t,n,r,i,o){var a,s;ua(this,e),Fu(this,"bubbleContainer",null),Fu(this,"regList",dT),Fu(this,"range",[]),Fu(this,"position",{line:0,ch:0}),Fu(this,"input",!1),Fu(this,"isCheckbox",!1),this.trigger=t,this.target=n,this.container=r,this.previewerDom=i,this.editor=o,this.insertLineBreak=!1,this.handleEditablesInputBinded=Ju(a=this.handleEditablesInput).call(a,this),this.handleEditablesUnfocusBinded=Ju(s=this.handleEditablesUnfocus).call(s,this),this.target.addEventListener("input",this.handleEditablesInputBinded,!1),this.target.addEventListener("focusout",this.handleEditablesUnfocusBinded,!1),this.setSelection()},[{key:"emit",value:function(e,t){if("remove"===e)return this.remove()}},{key:"remove",value:function(){this.bubbleContainer&&(this.bubbleContainer.style.display="none",this.bubbleContainer.children[0]instanceof HTMLTextAreaElement&&(this.bubbleContainer.children[0].value="")),this.target.removeAttribute("contenteditable"),this.target.removeEventListener("input",this.handleEditablesInputBinded,!1),this.target.removeEventListener("focusout",this.handleEditablesUnfocusBinded,!1);var e=this.editor.editor.getCursor();this.editor.editor.setSelection(e,e)}},{key:"setSelection",value:function(){var e,t,n,r=this,i=u_(this.previewerDom.querySelectorAll("li.cherry-list-item")),o=lk(i).call(i,function(e){return e===r.target.parentElement});if(-1!==o){for(var a=null!==(e=null===(t=_T(null==this?void 0:this.editor.editor.getValue()))||void 0===t?void 0:t.split("\n"))&&void 0!==e?e:[],s=0,l=-1,c=-1,u=[],d=0;d<a.length;d++){var h=a[d];if(!h||"/n"===h){if(u.length<=0)continue;break}var f=this.regList.exec(h);if(null!==f){if(u.length>0)break;var p=Yy(f,5),g=p[1],m=p[2],v=p[3],A=p[4];s===o&&void 0!==g&&(l=d,u.push(A),c=yx(h).call(h,A),null!=m&&AF(m).call(m,".")&&(c+=1),v&&(this.isCheckbox=!0)),s+=1}else u.length>0&&u.push(h)}var b={line:l,ch:c},y={line:l+u.length-1,ch:c+(null===(n=u[u.length-1])||void 0===n?void 0:n.length)};this.editor.editor.setSelection(b,y),this.range=[b,y],this.position=this.editor.editor.getCursor()}}},{key:"handleEditablesInput",value:function(e){this.input=!0,e.stopPropagation(),e.preventDefault(),e.target instanceof HTMLParagraphElement&&("insertParagraph"!==e.inputType&&"insertLineBreak"!==e.inputType||(this.insertLineBreak=!0,this.handleInsertLineBreak(e)))}},{key:"handleEditablesUnfocus",value:function(e){if(e.stopPropagation(),e.preventDefault(),e.target instanceof HTMLParagraphElement){if(this.input){if(!this.insertLineBreak){var t=this.isCheckbox?e.target.innerHTML.replace(/<span class="ch-icon ch-icon-(square|check)"><\/span>/,""):e.target.innerHTML,n=this.editor.$cherry.engine.makeMarkdown(t),r=Yy(this.range,2),i=r[0],o=r[1];this.editor.editor.replaceRange(n,i,o)}this.isCheckbox=!1,this.input=!1,this.insertLineBreak=!1}this.remove()}}},{key:"handleInsertLineBreak",value:function(e){var t,n,r,i=[];"innerText"in e.target&&"string"==typeof e.target.innerText&&(i=e.target.innerText.split("\n"));var o,a,s=NI(i),l=s[0],c=_x(s).call(s,1),u=this.editor.editor.getCursor(),d=this.editor.editor.getLine(u.line),h=this.regList.exec(d),f="\n- ";null!==h&&(f=Xu(o="\n".concat(h[1])).call(o,null===(a=h[2])||void 0===a?void 0:a.replace("[x]","[ ] "))),f+=null!==(t=null==c?void 0:c.join(""))&&void 0!==t?t:"",this.editor.editor.replaceRange(l,{line:u.line,ch:null!==(n=null===(r=h[2])||void 0===r?void 0:r.length)&&void 0!==n?n:0},{line:u.line,ch:d.length}),this.editor.editor.replaceRange(f,{line:u.line,ch:d.length}),this.editor.editor.setCursor({line:u.line+1,ch:f.length+1}),this.editor.editor.focus(),this.remove()}}])}(),YG=function(){return mc(function e(t){ua(this,e),this.previewer=t,this.editor=t.editor,this.previewerDom=this.previewer.getDom(),this.$cherry=t.$cherry,this.bubble={},this.bubbleHandler={},this.init()},[{key:"init",value:function(){var e,t,n,r=this;this.oldWrapperDomOverflow=this.previewer.$cherry.wrapperDom.style.overflow,this.previewerDom.addEventListener("click",Ju(e=this.$onClick).call(e,this)),this.previewerDom.addEventListener("mouseover",Ju(t=this.$onMouseOver).call(t,this)),document.addEventListener("mousedown",function(e){var t;gf(t=HW(r.bubbleHandler)).call(t,function(t){return t.emit("mousedown",e)})}),document.addEventListener("mouseup",function(e){var t;gf(t=HW(r.bubbleHandler)).call(t,function(t){return t.emit("mouseup",e,function(){return r.$removeAllPreviewerBubbles("click")})})}),document.addEventListener("mousemove",function(e){var t;gf(t=HW(r.bubbleHandler)).call(t,function(t){return t.emit("mousemove",e)})}),document.addEventListener("keyup",function(e){var t;gf(t=HW(r.bubbleHandler)).call(t,function(t){return t.emit("keyup",e)})}),this.$cherry.$event.on("editor.size.change",function(){var e;gf(e=HW(r.bubbleHandler)).call(e,function(e){return e.emit("resize",{})})}),this.previewerDom.addEventListener("scroll",function(e){var t;gf(t=HW(r.bubbleHandler)).call(t,function(t){return t.emit("scroll",e)})},!0),this.$cherry.$event.on("previewerClose",function(){return r.$removeAllPreviewerBubbles()}),this.previewer.options.afterUpdateCallBack.push(function(){var e;r.$checkAndRecreateTableHandlers(),gf(e=HW(r.bubbleHandler)).call(e,function(e){return e.emit("previewUpdate",function(){return r.$removeAllPreviewerBubbles()})})}),this.previewerDom.addEventListener("change",Ju(n=this.$onChange).call(n,this)),this.removeHoverBubble=GG(function(){return r.$removeAllPreviewerBubbles("hover")},400)}},{key:"isCherryCodeBlock",value:function(e){if(Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t;){if(t.matches(e))return t;t=t.parentElement}return null}),!1!==this.$getClosestNode(e,"BLOCKQUOTE"))return!1;var t=e.closest('div[data-type="codeBlock"]');return t||!1}},{key:"isCherryTable",value:function(e){var t=this.$getClosestNode(e,"TABLE");if(!t)return!1;var n=this.$getClosestNode(e,"DIV");return(!n||!/simple-table/.test(n.className))&&t}},{key:"$isEnableBubbleAndEditorShow",value:function(){return!!this.previewer.options.enablePreviewerBubble&&"hide"!==this.previewer.$cherry.getStatus().editor}},{key:"$onMouseOver",value:function(e){var t,n,r,i,o,a,s=e.target;if(s instanceof Element&&void 0!==s.tagName){switch(s.tagName){case"TD":case"TH":if(!this.$isEnableBubbleAndEditorShow())return;var l=this.isCherryTable(e.target);if(!1===l)return;return this.removeHoverBubble.cancel(),this.$removeAllPreviewerBubbles("hover"),void this.$showTablePreviewerBubbles("hover",e.target,l);case"PRE":case"CODE":case"SPAN":case"DIV":var c=this.isCherryCodeBlock(e.target);if(!1===c)return;return void this.showCodeBlockPreviewerBubbles("hover",c);case"A":var u=(null===(t=this.previewer)||void 0===t||null===(n=t.$cherry)||void 0===n||null===(r=n.options)||void 0===r||null===(i=r.engine)||void 0===i||null===(o=i.syntax)||void 0===o||null===(a=o.footnote)||void 0===a?void 0:a.bubbleCard)||!1;if(!1!==u&&/cherry-show-bubble-card/.test(e.target.className))return this.removeHoverBubble.cancel(),this.$removeAllPreviewerBubbles("hover"),void this.$showFootNoteBubbleCardPreviewerBubbles("hover",e.target,u)}this.removeHoverBubble()}}},{key:"$onMouseOut",value:function(){this.previewer.options.enablePreviewerBubble&&this.previewer.$cherry.getStatus().editor}},{key:"$dealCheckboxClick",value:function(e){var t=this,n=e.target,r=u_(this.previewerDom.querySelectorAll(".ch-icon-square, .ch-icon-check"));this.checkboxIdx=yx(r).call(r,n);var i=_T(this.editor.editor.getValue()).split("\n"),o=0,a=-1,s=-1;gf(i).call(i,function(e,n){var r=c_(e).call(e);(m_(r).call(r,"- [ ]")||m_(r).call(r,"- [x]"))&&(o===t.checkboxIdx&&(a=n,s=yx(e).call(e,"- [")+3),o+=1)}),-1!==a&&(this.editor.editor.setSelection({line:a,ch:s},{line:a,ch:s+1}),this.editor.editor.replaceSelection(" "===this.editor.editor.getSelection()?"x":" ","around"))}},{key:"$onClick",value:function(e){var t,n,r=this;if(this.previewer.$cherry.options.callback.onClickPreview){var i=this.previewer.$cherry.options.callback.onClickPreview(e);if(!1===i)return i}var o=e.target;if(o instanceof Element)if(o instanceof HTMLImageElement&&"IMG"===o.tagName&&"drawio"===o.getAttribute("data-type")&&"show"===this.$cherry.status.editor){if(!this.beginChangeDrawioImg(o))return;var a=decodeURI(o.getAttribute("data-xml"));$G(this.previewer.$cherry.options.drawioIframeUrl,this.previewer.$cherry.options.drawioIframeStyle,a,function(e){var t,n=e.xmlData,i=e.base64;r.editor.editor.replaceSelection(Xu(t="(".concat(i,"){data-type=drawio data-xml=")).call(t,encodeURI(n),"}"),"around")})}else{if("expand-btn "===o.className||"ch-icon ch-icon-expand"===o.className){var s,l,c=this.$getClosestNode(o,"DIV");if(c.parentNode.parentNode.classList.remove("cherry-code-unExpand"),c.parentNode.parentNode.classList.add("cherry-code-expand"),this.$cherry.options.callback.onExpandCode){var u=c.parentNode.parentNode.innerText;this.$cherry.options.callback.onUnExpandCode(e,u)}null!==(s=this.bubbleHandler)&&void 0!==s&&null!==(l=s.hover)&&void 0!==l&&l.unExpandDom&&this.bubbleHandler.hover.unExpandDom.classList.remove("hidden")}if("A"===o.tagName){if(!1===(null===(t=this.previewer.$cherry.options.toolbars.toc)||void 0===t?void 0:t.updateLocationHash)&&o instanceof Element&&"A"===o.nodeName&&/level-\d+/.test(o.className)){var d,h=o.parentElement,f=yx(d=u_(h.parentElement.children)).call(d,h)-1;this.previewer.scrollToHeadByIndex(f),e.stopPropagation(),e.preventDefault()}if(o instanceof Element&&"A"===o.nodeName&&/(footnote|footnote-ref)/.test(o.className)){var p,g,m,v,A;if(null!==(p=this.previewer.$cherry.options.engine)&&void 0!==p&&null!==(g=p.syntax)&&void 0!==g&&null!==(m=g.footnote)&&void 0!==m&&null!==(v=m.refNumber)&&void 0!==v&&v.clickRefNumberCallback){var b,y=o.getAttribute("data-index"),w=o.getAttribute("data-key"),_=null!==(b=this.previewer.getDomContainer().querySelector('.one-footnote[data-index="'.concat(y,'"]')).innerHTML)&&void 0!==b?b:"",x=this.previewer.$cherry.options.engine.syntax.footnote.refNumber.clickRefNumberCallback(e,y,w,_);if(!1===x)return e.stopPropagation(),e.preventDefault(),x}if(!1===(null===(A=this.previewer.$cherry.options.toolbars.toc)||void 0===A?void 0:A.updateLocationHash)){var E=o.getAttribute("href");this.previewer.scrollToId(E),e.stopPropagation(),e.preventDefault()}}}if(this.previewer.options.enablePreviewerBubble&&("ch-icon ch-icon-square"!==o.className&&"ch-icon ch-icon-check"!==o.className||this.$dealCheckboxClick(e),this.$removeAllPreviewerBubbles("click"),void 0!==o.tagName))switch(o.tagName){case"IMG":o instanceof HTMLImageElement&&this.$showImgPreviewerBubbles(o,e);break;case"TD":case"TH":if(o instanceof HTMLElement){var S=this.isCherryTable(o);if(!1===S)return;this.$showTablePreviewerBubbles("click",o,S)}break;case"svg":"MJX-CONTAINER"===(null==o||null===(n=o.parentElement)||void 0===n?void 0:n.tagName)&&this.$showFormulaPreviewerBubbles("click",o,{x:e.pageX,y:e.pageY});break;case"A":e.stopPropagation();break;case"P":o instanceof HTMLParagraphElement&&o.parentElement instanceof HTMLLIElement&&!1===this.$getClosestNode(o,"BLOCKQUOTE")&&(0!==o.children.length&&(e.preventDefault(),e.stopPropagation()),o.setAttribute("contenteditable","true"),o.focus(),this.$showListPreviewerBubbles("click",o))}}}},{key:"$onChange",value:function(e){}},{key:"$getClosestNode",value:function(e,t){return!(!e||!e.tagName)&&(e.tagName===t?e:"BODY"!==e.parentNode.tagName&&this.$getClosestNode(e.parentNode,t))}},{key:"$removeAllPreviewerBubbles",value:function(){var e,t,n,r,i=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";gf(e=uo(t=WW(this.bubble)).call(t,function(e){var t=Yy(e,1)[0];return!o||o===t})).call(e,function(e){var t=Yy(e,2),n=t[0];t[1].remove(),delete i.bubble[n]}),gf(n=uo(r=WW(this.bubbleHandler)).call(r,function(e){var t=Yy(e,1)[0];return!o||o===t})).call(n,function(e){var t=Yy(e,2),n=t[0];t[1].emit("remove"),delete i.bubbleHandler[n]}),$h(this.bubbleHandler).length<=0&&(this.previewer.$cherry.wrapperDom.style.overflow=this.oldWrapperDomOverflow||"")}},{key:"$checkAndRecreateTableHandlers",value:function(){var e,t=this;gf(e=WW(this.bubbleHandler)).call(e,function(e){var n=Yy(e,2),r=n[0],i=n[1];i instanceof _G&&(t.$isTableHandlerValid(i)||t.$removePreviewerBubble(r))})}},{key:"$isTableHandlerValid",value:function(e){var t;if(!e.target||!document.contains(e.target))return!1;var n=e.$getClosestNode(e.target,"TABLE");return!1!==n&&!!this.previewerDom.contains(n)&&!(!n.textContent||""===c_(t=n.textContent).call(t))}},{key:"$removePreviewerBubble",value:function(e){this.bubble[e]&&(this.bubble[e].remove(),delete this.bubble[e]),this.bubbleHandler[e]&&(this.bubbleHandler[e].emit("remove"),delete this.bubbleHandler[e]),$h(this.bubbleHandler).length<=0&&(this.previewer.$cherry.wrapperDom.style.overflow=this.oldWrapperDomOverflow||"")}},{key:"$showFootNoteBubbleCardPreviewerBubbles",value:function(e,t,n){var r,i;if(this.bubbleHandler[e]&&(null===(i=this.bubbleHandler[e])||void 0===i?void 0:i.aElement)===t)this.bubbleHandler[e].showBubble();else{this.$createPreviewerBubbles(e,"footnote-ref-hover-handler cherry-markdown ".concat(null!==(r=n.appendClass)&&void 0!==r?r:""));var o=new xG(e,t,this.bubble[e],this.previewer.$cherry,n);o.showBubble(),this.bubbleHandler[e]=o}}},{key:"$showTablePreviewerBubbles",value:function(e,t,n){if(this.bubbleHandler[e]&&this.bubbleHandler[e].tableElement===n)this.bubbleHandler[e].showBubble();else{this.$createPreviewerBubbles(e,"click"===e?"table-content-handler":"table-hover-handler");var r=new _G(e,t,this.bubble[e],this.previewerDom,this.editor.editor,n,this.previewer.$cherry);r.showBubble(),this.bubbleHandler[e]=r}}},{key:"showCodeBlockPreviewerBubbles",value:function(e,t){if(this.bubbleHandler[e]&&this.bubbleHandler[e].target===t)this.removeHoverBubble.cancel();else{this.$removeAllPreviewerBubbles("hover"),this.$createPreviewerBubbles(e,"codeBlock-".concat(e,"-handler"));var n=new BG(e,t,this.bubble[e],this.previewerDom,this.editor.editor,this);n.showBubble(this.$isEnableBubbleAndEditorShow()),this.bubbleHandler[e]=n}}},{key:"$showImgPreviewerBubbles",value:function(e,t){var n,r,i,o=this;this.$createPreviewerBubbles("click","img-handler");var a=u_(this.previewerDom.querySelectorAll("img"));if(this.totalImgs=a.length,this.imgIndex=yx(a).call(a,e),!this.beginChangeImgValue(e))return{emit:function(){}};var s=document.createElement("div");s.className="cherry-previewer-img-size-handler",this.bubble.click.appendChild(s),GW.showBubble(e,s,this.previewerDom),GW.bindChange(Ju(n=this.changeImgSize).call(n,this));var l=document.createElement("div");l.className="cherry-previewer-img-tool-handler",this.bubble.click.appendChild(l),KW.showBubble(e,l,this.previewerDom,t,this.previewer.$cherry.getLocales()),KW.bindChange(Ju(r=this.changeImgStyle).call(r,this));var c=Ju(i=GW.updatePosition).call(i,GW);this.$cherry.$event.on("editor.size.change",c);var u=GW.remove;GW.remove=function(){return o.$cherry.$event.off("editor.size.change",c),u.call(GW)},this.bubbleHandler.click=GW,this.bubbleHandler.imgTool=KW}},{key:"$showFormulaPreviewerBubbles",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.$createPreviewerBubbles(e,"formula-hover-handler");var r=new VG(e,t,this.bubble[e],this.previewerDom,this.editor);r.showBubble((null==n?void 0:n.x)||0,(null==n?void 0:n.y)||0),this.bubbleHandler[e]=r}},{key:"$showListPreviewerBubbles",value:function(e,t){this.$createPreviewerBubbles(e,"list-hover-handler");var n=new KG(e,t,this.bubble[e],this.previewerDom,this.editor);this.bubbleHandler[e]=n}},{key:"beginChangeDrawioImg",value:function(e){var t,n=u_(this.previewerDom.querySelectorAll('img[data-type="drawio"]')),r=n.length,i=yx(n).call(n,e),o=_T(this.editor.editor.getValue()),a=o.match(wT),s=a[i]?c_(t=a[i].replace(/^!\[.*?\]\((.*?)\)/,"$1")).call(t):"";if(a.length===r||e.getAttribute("src")===s)for(var l=o.split(wT),c=0,u=0,d=0,h=0,f=0;f<l.length;f++){var p=l[f];if(p===a[h]){if(h===i)return d=u+p.length,u+=p.replace(/^(!\[[^\]]*])[^\n]*$/,"$1").length,this.editor.editor.setSelection({line:c,ch:u},{line:c,ch:d}),this.editor.dealSpecialWords(),!0;h+=1}else{var g,m;c+=null!==(g=null===(m=p.match(/\n/g))||void 0===m?void 0:m.length)&&void 0!==g?g:0,/\n/.test(p)?u=p.replace(/^[\w\W]*\n([^\n]*)$/,"$1").length:u+=p.length}}return!1}},{key:"beginChangeImgValue",value:function(e){var t,n=_T(this.editor.editor.getValue()),r=e.getAttribute("src"),i=/(!\[[^\n]*?\]\([^)]+\))/g,o=n.match(i),a=o[this.imgIndex]?c_(t=o[this.imgIndex].replace(/^!\[.*?\]\((.*?)\)/,"$1")).call(t):"";if(o.length===this.totalImgs||r===a)for(var s=n.split(i),l=/(#border|#B|#shadow|#S|#radius|#R)/g,c=/(#center|#right|#left|#float-right|#float-left)/g,u=/^!\[.*?((?:(?:#[0-9]+(px|em|pt|pc|in|mm|cm|ex|%)|auto) *)+).*?\].*$/,d=0,h=0,f=0,p=0,g=0;g<s.length;g++){var m,v,A=s[g];if(A===o[p]){if(p===this.imgIndex)return this.imgDeco=l.test(A)?A.match(l).join(" "):"",this.imgAlign=c.test(A)?A.match(c).join(" "):"",this.imgSize=u.test(A)?A.replace(u,"$1"):"",f=(h+=A.replace(/^(!\[[^#\]]*).*$/,"$1").length)+A.replace(/^(!\[[^#\]]*)([^\]]*?)\].*$/,"$2").length,this.editor.editor.setSelection({line:d,ch:h},{line:d,ch:f}),!0;p+=1}d+=null!==(m=null===(v=A.match(/\n/g))||void 0===v?void 0:v.length)&&void 0!==m?m:0,/\n/.test(A)?h=A.replace(/^[\w\W]*\n([^\n]*)$/,"$1").length:h+=A.length}return!1}},{key:"changeImgSize",value:function(e,t){var n;this.imgSize=Xu(n="#".concat(Math.round(t.width),"px #")).call(n,Math.round(t.height),"px"),this.changeImgValue()}},{key:"changeImgStyle",value:function(e,t){switch(t){case"border":case"shadow":case"radius":this.changeImgDecorationStyle(e,t);break;case"left":case"right":case"center":case"float-left":case"float-right":case"clear-align":this.changeImgAlignmentStyle(e,t)}}},{key:"changeImgDecorationStyle",value:function(e,t){var n,r={border:{reg:/#(border|B) */g,v:"B"},shadow:{reg:/#(shadow|S) */g,v:"S"},radius:{reg:/#(radius|R) */g,v:"R"}},i=r[t].reg;i.test(this.imgDeco)?this.imgDeco=vg(n=this.imgDeco).call(n,i,""):this.imgDeco+="#".concat(r[t].v),this.changeImgValue()}},{key:"changeImgAlignmentStyle",value:function(e,t){this.imgAlign="clear-align"===t?"":"#".concat(t),this.changeImgValue()}},{key:"changeImgValue",value:function(){var e;this.editor.editor.replaceSelection(uo(e=[this.imgSize,this.imgDeco,this.imgAlign]).call(e,function(e){return e}).join(" "),"around")}},{key:"$createPreviewerBubbles",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"click",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"img-size-handler";this.bubble[e]||(this.bubble[e]=document.createElement("div"),this.bubble[e].className="cherry-previewer-".concat(t),this.previewerDom.after(this.bubble[e]),"hover"===e&&(this.bubble[e].addEventListener("mouseover",this.removeHoverBubble.cancel),this.bubble[e].addEventListener("mouseout",this.removeHoverBubble)),this.previewer.$cherry.wrapperDom.style.overflow="hidden")}},{key:"$showBorderBubbles",value:function(){}},{key:"$showBtnBubbles",value:function(){}}])}();function qG(){return UG?HG:(UG=1,dd(),HG=Me().setInterval)}var XG=i(zG?QG:(zG=1,QG=qG())),JG=function(){return mc(function e(t,n){ua(this,e),Fu(this,"options",{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(e){},failLoadOneImgCallback:function(e){},afterLoadOneImgCallback:function(e){},afterLoadAllImgCallback:function(){}}),Md(this.options,t),this.previewer=n,this.srcLoadedList=[],this.srcFailLoadedList={},this.srcLoadingList=[],this.srcList=[],this.loadingImgNum=0,this.lastLoadAllNum=0,this.previewerDom=this.previewer.getDomContainer()},[{key:"isLoaded",value:function(e){var t;return uh(t=this.srcLoadedList).call(t,e)}},{key:"isLoading",value:function(e){var t;return uh(t=this.srcLoadingList).call(t,e)}},{key:"loadFailed",value:function(e){this.srcFailLoadedList[e]=this.srcFailLoadedList[e]?this.srcFailLoadedList[e]+1:1}},{key:"isFailLoadedMax",value:function(e){return this.srcFailLoadedList[e]&&this.srcFailLoadedList[e]>this.options.maxTryTimesPerSrc}},{key:"isLoadedAllDone",value:function(){var e=this.previewerDom.querySelectorAll("img[data-src]"),t=this.srcLoadedList.length;return e.length<=0&&this.lastLoadAllNum<t&&(this.lastLoadAllNum=t,this.options.afterLoadAllImgCallback(),!0)}},{key:"loadOneImg",value:function(){for(var e,t,n,r=this,i=this.previewerDom.querySelectorAll("img[data-src]"),o=this.previewerDom.getBoundingClientRect(),a=o.height,s=o.top,l=a+s+100,c=null!==(e=null===(t=window)||void 0===t?void 0:t.innerHeight)&&void 0!==e?e:100,u=Math.min(l,c),d=s-30,h=this.options.autoLoadImgNum,f=function(){var e=i[p],t=e.getBoundingClientRect(),n=t.top>=d&&t.top<=u,o=r.srcList.length<h;if(!n&&!o)return 0;var a=e.getAttribute("data-src");if(!a)return 0;if((r.isLoaded(a)||r.isFailLoadedMax(a))&&(e.setAttribute("src",a),e.removeAttribute("data-src")),r.isLoading(a))return 0;if(r.loadingImgNum>=r.options.maxNumPerTime)return{v:!1};var s,l=r.options.beforeLoadOneImgCallback(e);if(void 0!==l&&!l)return r.loadFailed(a),0;a=null!==(s=e.getAttribute("data-src"))&&void 0!==s?s:a,r.loadingImgNum+=1,r.srcList.push(a),r.srcLoadingList.push(a),r.tryLoadOneImg(a,function(){var t,n;e.setAttribute("src",a),e.removeAttribute("data-src"),r.srcLoadedList.push(a),r.loadingImgNum-=1,pk(t=r.srcLoadingList).call(t,yx(n=r.srcLoadingList).call(n,a),1),r.options.afterLoadOneImgCallback(e),r.loadOneImg()},function(){var t,n;r.loadFailed(a),r.loadingImgNum-=1,pk(t=r.srcLoadingList).call(t,yx(n=r.srcLoadingList).call(n,a),1),r.options.failLoadOneImgCallback(e),r.loadOneImg()})},p=0;p<i.length;p++)if(0!==(n=f())&&n)return n.v;return!1}},{key:"tryLoadOneImg",value:function(e,t,n){var r=document.createElement("img");r.onload=function(){t(),r.remove()},r.onerror=function(){n(),r.remove()},r.setAttribute("src",e)}},{key:"doLazyLoad",value:function(){var e=this;if(!this.isRunning){this.isRunning=!0;var t=this.options.maxNumPerTime,n=function(){e.loadOneImg();for(var r=1;r<t;r++)e.loadOneImg();_d(n,200)};n(),XG(function(){e.isLoadedAllDone()},1e3)}}},{key:"changeDataSrc2Src",value:function(e){var t=this;return e.replace(/<img ([^>]*?)data-src="([^"]+)"([^>]*?)>/g,function(e,n,r,i){var o,a;return Xu(o=Xu(a="<img ".concat(t.$removeSrc(n),' src="')).call(a,r,'" ')).call(o,t.$removeSrc(i),">").replace(/ {2,}/g," ")})}},{key:"changeLoadedDataSrc2Src",value:function(e){var t=this;return e.replace(/<img ([^>]*?)data-src="([^"]+)"([^>]*?)>/g,function(e,n,r,i){var o,a;return t.isLoaded(r)?Xu(o=Xu(a="<img ".concat(t.$removeSrc(n),' src="')).call(a,r,'" ')).call(o,t.$removeSrc(i),">").replace(/ {2,}/g," "):e})}},{key:"$removeSrc",value:function(e){return" ".concat(e).replace(/^(.*?) src=".*?"(.*?$)/,"$1$2")}},{key:"changeSrc2DataSrc",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.options.loadingImgPath,i=this.options.noLoadImgNum,o=0;return e.replace(/<img ([^>]*?)src="([^"]+)"([^>]*?)>/g,function(e,a,s,l){var c,u,d,h,f;if(/data-src="/.test(e)||!/ src="/.test(e)||i<0)return e;if(!1===n){if(o<i)return o+=1,e;if(t.isLoaded(s))return e}return r?Xu(d=Xu(h=Xu(f="<img ".concat(a,'src="')).call(f,r,'" data-src="')).call(h,s,'"')).call(d,l,">"):Xu(c=Xu(u="<img ".concat(a,'data-src="')).call(u,s,'"')).call(c,l,">")})}}])}(),ZG=function(){},eV=function(){return mc(function e(t){ua(this,e),Fu(this,"applyingDomChanges",!1),Fu(this,"syncScrollLockTimer",0),Fu(this,"isMobilePreview",!1),this.options={previewerDom:document.createElement("div"),virtualDragLineDom:document.createElement("div"),editorMaskDom:document.createElement("div"),previewerMaskDom:document.createElement("div"),minBlockPercentage:.2,value:"",enablePreviewerBubble:!0,floatWhenClosePreviewer:!1,afterUpdateCallBack:[],isPreviewOnly:!1,previewerCache:{html:"",htmlChanged:!1,layout:{}},lazyLoadImg:{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(e){},failLoadOneImgCallback:function(e){},afterLoadOneImgCallback:function(e){},afterLoadAllImgCallback:function(){}}},Md(this.options,t),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.getInstanceId(),this.animation={}},[{key:"init",value:function(e){this.disableScrollListener=!1,this.bindScroll(),this.editor=e,this.bindDrag(),this.$initPreviewerBubble(),this.lazyLoadImg=new JG(this.options.lazyLoadImg,this),this.lazyLoadImg.doLazyLoad(),this.bindClick(),this.onMouseDown(),this.onSizeChange(),this.$cherry.options.previewer.isMobilePreview&&this.changePreviewToMobile(!0)}},{key:"onSizeChange",value:function(){var e=this;new ResizeObserver(function(){e.syncVirtualLayoutFromReal(),e.subMenusPositionChange(),e.$cherry.$event.emit("editor.size.change")}).observe(this.$cherry.wrapperDom)}},{key:"subMenusPositionChange",value:function(){var e,t=this;gf(e=["toolbar","sidebar","toolbarRight"]).call(e,function(e){t.$cherry[e]&&t.$cherry[e].updateSubMenuPosition()})}},{key:"$initPreviewerBubble",value:function(){this.previewerBubble=new YG(this)}},{key:"getDomContainer",value:function(){return this.isMobilePreview?this.options.previewerDom.querySelector(".cherry-mobile-previewer-content"):this.options.previewerDom}},{key:"getDom",value:function(){return this.options.previewerDom}},{key:"getValue",value:function(){var e,t,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r="";if(r=this.isPreviewerHidden()?this.options.previewerCache.html:this.getDomContainer().innerHTML,r=this.lazyLoadImg.changeDataSrc2Src(r),!n||!this.$cherry.wrapperDom)return r;var i=this.$cherry.wrapperDom.getAttribute("data-inline-code-theme"),o=this.$cherry.wrapperDom.getAttribute("data-code-block-theme");return Xu(e=Xu(t='<div data-inline-code-theme="'.concat(i,'" data-code-block-theme="')).call(t,o,'">')).call(e,r,"</div>")}},{key:"isPreviewerHidden",value:function(){return this.options.previewerDom.classList.contains("cherry-previewer--hidden")}},{key:"isPreviewerFloat",value:function(){var e=this.$cherry.cherryDom.querySelector(".float-previewer-wrap");return this.$cherry.cherryDom.contains(e)}},{key:"isPreviewerNeedFloat",value:function(){return this.options.floatWhenClosePreviewer}},{key:"calculateRealLayout",value:function(e){var t=+(e/(this.editor.options.editorDom.getBoundingClientRect().width+this.options.previewerDom.getBoundingClientRect().width)).toFixed(3);t<this.options.minBlockPercentage?t=+this.options.minBlockPercentage.toFixed(3):t>1-this.options.minBlockPercentage&&(t=+(1-this.options.minBlockPercentage).toFixed(3));var n=+(1-t).toFixed(3);return{editorPercentage:"".concat(100*t,"%"),previewerPercentage:"".concat(100*n,"%")}}},{key:"setRealLayout",value:function(e,t){var n=e,r=t;n&&r||(n="50%",r="50%"),this.editor.options.editorDom.style.width=n,this.options.previewerDom.style.width=r,this.syncVirtualLayoutFromReal()}},{key:"syncVirtualLayoutFromReal",value:function(){var e=this.editor.options.editorDom.getBoundingClientRect(),t=this.options.previewerDom.getBoundingClientRect(),n=e.height,r=this.editor.options.editorDom.offsetTop,i=e.left,o=e.width,a=t.left?t.left-i:0,s=t.width||0,l=this.options,c=l.editorMaskDom,u=l.previewerMaskDom,d=l.virtualDragLineDom;this.$tryChangeValue(d,"top","".concat(r,"px")),this.$tryChangeValue(d,"left","".concat(a,"px")),this.$tryChangeValue(d,"bottom","0px"),this.$tryChangeValue(c,"height","".concat(n,"px")),this.$tryChangeValue(c,"top","".concat(r,"px")),this.$tryChangeValue(c,"left","0px"),this.$tryChangeValue(c,"width","".concat(o,"px")),this.$tryChangeValue(u,"height","".concat(n,"px")),this.$tryChangeValue(u,"top","".concat(r,"px")),this.$tryChangeValue(u,"left","".concat(a,"px")),this.$tryChangeValue(u,"width","".concat(s,"px"))}},{key:"$tryChangeValue",value:function(e,t,n){e.style[t]!==n&&(e.style[t]=n)}},{key:"calculateVirtualLayout",value:function(e,t){var n=this.editor.options.editorDom.getBoundingClientRect().width+this.options.previewerDom.getBoundingClientRect().width,r=e.toFixed(0),i=t-e;i<n*this.options.minBlockPercentage?i=+(n*this.options.minBlockPercentage).toFixed(0):i>n*(1-this.options.minBlockPercentage)&&(i=+(n*(1-this.options.minBlockPercentage)).toFixed(0));var o=n-i;return{startWidth:Bx(r,10),leftWidth:i,rightWidth:o}}},{key:"setVirtualLayout",value:function(e,t,n){var r=this.options,i=r.editorMaskDom,o=r.previewerMaskDom,a=r.virtualDragLineDom;i.style.left="".concat(0,"px"),i.style.width="".concat(t,"px"),a.style.left="".concat(0+t,"px"),o.style.left="".concat(0+t,"px"),o.style.width="".concat(n,"px")}},{key:"bindDrag",value:function(){var e,t=this,n=function(e){e&&e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():window.event.returnValue=!1;var n=t.editor.options.editorDom.getBoundingClientRect().left,r=e.clientX,i=t.calculateVirtualLayout(n,r);return t.setVirtualLayout(i.startWidth,i.leftWidth,i.rightWidth),!1},r=function(e){e&&e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():window.event.returnValue=!1;var i=t.editor.options.editorDom.getBoundingClientRect().left,o=e.clientX,a=t.calculateRealLayout(o-i);return t.setRealLayout(a.editorPercentage,a.previewerPercentage),t.editor.options.editorDom.classList.remove("no-select"),t.options.previewerDom.classList.remove("no-select"),t.options.editorMaskDom.classList.remove("cherry-editor-mask--show"),t.options.previewerMaskDom.classList.remove("cherry-previewer-mask--show"),t.options.virtualDragLineDom.classList.remove("cherry-drag--show"),t.editor.editor.refresh(),NC(document,"mousemove",n,!1),NC(document,"mouseup",r,!1),!1};DC(this.options.virtualDragLineDom,"mousedown",function(e){e&&e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():window.event.returnValue=!1,t.syncVirtualLayoutFromReal();var i=t.editor.options.editorDom.getBoundingClientRect().left,o=e.clientX,a=t.calculateVirtualLayout(i,o);return t.setVirtualLayout(a.startWidth,a.leftWidth,a.rightWidth),t.options.virtualDragLineDom.classList.contains("cherry-drag--show")||(t.options.virtualDragLineDom.classList.add("cherry-drag--show"),t.options.editorMaskDom.classList.add("cherry-editor-mask--show"),t.options.previewerMaskDom.classList.add("cherry-previewer-mask--show"),t.options.previewerDom.classList.add("no-select"),t.editor.options.editorDom.classList.add("no-select"),DC(document,"mousemove",n,!1),DC(document,"mouseup",r,!1)),!1},!1),DC(window,"resize",Ju(e=this.syncVirtualLayoutFromReal).call(e,this),!1),this.setRealLayout()}},{key:"bindScroll",value:function(){var e=this,t=this.getDomContainer();ZG=function(){if(e.applyingDomChanges)jC.log(new Date,"sync scroll locked");else if(e.disableScrollListener)e.disableScrollListener=!1;else if(t.scrollTop<=0)e.editor.scrollToLineNum(0,0,1);else if(t.scrollTop+t.offsetHeight+10>t.scrollHeight)e.editor.scrollToLineNum(null);else{for(var n,r=t.getBoundingClientRect(),i=0,o=t.children,a=0;a<o.length;a++){var s,l=o[a];if(!(l.getBoundingClientRect().top<r.top))break;n=l,i+=+(null!==(s=l.getAttribute("data-lines"))&&void 0!==s?s:0)}if(n){var c=getComputedStyle(n),u=kE(c.marginTop),d=kE(c.marginBottom),h=n.getBoundingClientRect(),f=h.height+u+d,p=h.y-u-r.y,g=+n.getAttribute("data-lines"),m=100*Math.abs(p)/f/100;return e.editor.scrollToLineNum(i-g,g,m)}e.editor.scrollToLineNum(0,0,1)}},DC(t,"scroll",ZG,!1),DC(t,"wheel",function(){e.disableScrollListener=!1,cancelAnimationFrame(e.animation.timer),e.animation.timer=0},!1)}},{key:"removeScroll",value:function(){NC(this.getDomContainer(),"scroll",ZG,!1)}},{key:"$html2H",value:function(e){if(void 0===e)return YU("span",{},[]);if(!e.tagName)return e.textContent;var t=e.tagName,n="true"===e.getAttribute("data-cm-atomic"),r=this.$getAttrsForH(e.attributes),i=[];if(!n&&e.childNodes&&e.childNodes.length>0)for(var o=0;o<e.childNodes.length;o++)i.push(this.$html2H(e.childNodes[o]));return YU(t,r,i)}},{key:"$getAttrsForH",value:function(e){if(!e)return{};for(var t={dataset:{}},n=0;n<e.length;n++){var r,i=e[n].name,o=e[n].value;/^(width|height)$/i.test(i)&&isNaN(o)?(t.style=t.style?t.style:[],t.style.push(Xu(r="".concat(i,":")).call(r,o))):/^(class|id|href|rel|target|src|title|controls|align|width|height|style|open|contenteditable)$/i.test(i)?"style"===(i="contenteditable"===(i="class"===i?"className":i)?"contentEditable":i)?(t.style=t.style?t.style:[],t.style.push(o)):t[i]="open"===i||o:("colspan"===i?i="colSpan":"rowspan"===i&&(i="rowSpan"),/^data-/i.test(i)?i=i.replace(/^data-/i,""):t[i]=o,t.dataset[i]=o)}return t.style&&(t.style={cssText:t.style.join(";")}),t}},{key:"$updateDom",value:function(e,t){var n=vQ(this.$html2H(t),this.$html2H(e));return OQ(t,n)}},{key:"$testChild",value:function(e){return!e.parentNode||!!e.parentNode.classList.contains("cherry-previewer")||!e.parentNode.getAttribute("data-sign")&&this.$testChild(e.parentNode)}},{key:"_testMaxIndex",value:function(e,t){if(!t)return!1;for(var n=0;n<t.length;n++)if(e<=t[n])return!0;return!1}},{key:"$getSignData",value:function(e){for(var t={list:[],signs:{}},n=0;n<e.length;n++)if(e[n].getAttribute("data-sign")){var r=e[n].getAttribute("data-sign");t.list.push({sign:r,dom:e[n]}),t.signs[r]||(t.signs[r]=[]),t.signs[r].push(n)}return t}},{key:"_hasNewSign",value:function(e,t,n){var r;return e.length>0&&(gf(e).call(e,function(e,i){var o;_x(o=e.sign).call(o,0,12)===_x(t).call(t,0,12)&&i>n&&(r={index:i>n?i:n,sign:t})}),r)}},{key:"$dealWithMyersDiffResult",value:function(e,t,n,r){var i=this;gf(e).call(e,function(e){switch(n[e.newIndex].dom&&(n[e.newIndex].dom.innerHTML=i.lazyLoadImg.changeLoadedDataSrc2Src(n[e.newIndex].dom.innerHTML)),e.type){case"delete":r.removeChild(t[e.oldIndex].dom);break;case"insert":t[e.oldIndex]?r.insertBefore(n[e.newIndex].dom,t[e.oldIndex].dom):r.appendChild(n[e.newIndex].dom);break;case"update":try{var o=!1;if("cherry-table-container"===n[e.newIndex].dom.className&&n[e.newIndex].dom.querySelector(".cherry-table-figure")&&t[e.oldIndex].dom.querySelector(".cherry-table-figure"))t[e.oldIndex].dom.querySelector(".cherry-table-figure").replaceWith(n[e.newIndex].dom.querySelector(".cherry-table-figure")),t[e.oldIndex].dom.dataset.sign=n[e.oldIndex].dom.dataset.sign,i.$updateDom(n[e.newIndex].dom.querySelector(".cherry-table"),t[e.oldIndex].dom.querySelector(".cherry-table")),o=!0;else if(n[e.newIndex].dom.querySelector("svg"))throw new Error;o||i.$updateDom(n[e.newIndex].dom,t[e.oldIndex].dom)}catch(i){r.insertBefore(n[e.newIndex].dom,t[e.oldIndex].dom),r.removeChild(t[e.oldIndex].dom)}}})}},{key:"$dealUpdate",value:function(e,t,n){if(n.list!==t.list)if(n.list.length&&t.list.length){var r=new MQ(n.list,t.list,function(e,t){return e[t].sign}).doDiff();jC.log(r),this.$dealWithMyersDiffResult(r,t.list,n.list,e)}else if(n.list.length&&!t.list.length){var i;jC.log("add all"),gf(i=n.list).call(i,function(t){e.appendChild(t.dom)})}else if(!n.list.length&&t.list.length){var o;jC.log("delete all"),gf(o=t.list).call(o,function(t){e.removeChild(t.dom)})}}},{key:"refresh",value:function(e){this.getDomContainer().innerHTML=e}},{key:"update",value:function(e){var t=this,n=this.lazyLoadImg.changeSrc2DataSrc(e);if(this.isPreviewerHidden())this.doHtmlCache(n);else{window.clearTimeout(this.syncScrollLockTimer),this.applyingDomChanges=!0;var r=this.getDomContainer();this.editor.selectAll&&(r.innerHTML="");var i=null;void 0!==window.DOMParser?i=(new DOMParser).parseFromString(n,"text/html").querySelector("body"):(i=document.createElement("div")).innerHTML=n;var o=this.$getSignData(i.children),a=this.$getSignData(r.children);try{this.$dealUpdate(r,a,o),this.afterUpdate()}finally{this.syncScrollLockTimer=_d(function(){t.applyingDomChanges=!1},50)}}}},{key:"$dealEditAndPreviewOnly",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n={editorPercentage:"0%",previewerPercentage:"100%"};t&&(n={editorPercentage:"100%",previewerPercentage:"0%"});var r=this.editor.options.editorDom.getBoundingClientRect().width,i=this.calculateRealLayout(r);this.options.previewerCache.layout=i,this.setRealLayout(n.editorPercentage,n.previewerPercentage),this.options.virtualDragLineDom.classList.add("cherry-drag--hidden");var o,a=this.options.previewerDom,s=this.editor.options.editorDom;t?(a.classList.add("cherry-previewer--hidden"),s.classList.add("cherry-editor--full"),a.classList.remove("cherry-preview--full"),s.classList.remove("cherry-editor--hidden")):(a.classList.add("cherry-preview--full"),s.classList.add("cherry-editor--hidden"),a.classList.remove("cherry-previewer--hidden"),s.classList.remove("cherry-editor--full"),this.$cherry.options.engine.global.flowSessionContext&&!this.options.enablePreviewerBubble&&(s.remove(),this.$cherry.toolbar.options.dom.remove(),gf(o=this.$cherry.wrapperDom.querySelectorAll(".cherry-dropdown,.cherry-drag,.cherry-editor-mask,.cherry-previewer-mask,.cherry-suggester-panel")).call(o,function(e){return e.remove()}))),_d(function(){return e.editor.editor.refresh()},0)}},{key:"previewOnly",value:function(){this.$dealEditAndPreviewOnly(!1),this.options.previewerCache.htmlChanged&&this.update(this.options.previewerCache.html),this.cleanHtmlCache(),this.$cherry.$event.emit("previewerOpen"),this.$cherry.$event.emit("editorClose")}},{key:"editOnly",value:function(){var e=this.options.previewerCache.html?this.options.previewerCache.html:this.getDomContainer().innerHTML;this.doHtmlCache(e),this.$dealEditAndPreviewOnly(!0),this.$cherry.$event.emit("previewerClose"),this.$cherry.$event.emit("editorOpen")}},{key:"floatPreviewer",value:function(){var e="100%",t="100%",n=this.editor.options.editorDom.getBoundingClientRect().width,r=this.calculateRealLayout(n);this.options.previewerCache.layout=r,this.setRealLayout(e,t),this.options.virtualDragLineDom.classList.add("cherry-drag--hidden"),this.$cherry.createFloatPreviewer()}},{key:"recoverFloatPreviewer",value:function(){this.recoverPreviewer(!0),this.$cherry.clearFloatPreviewer()}},{key:"recoverPreviewer",value:function(){var e=this;this.options.previewerDom.classList.remove("cherry-previewer--hidden"),this.options.virtualDragLineDom.classList.remove("cherry-drag--hidden"),this.editor.options.editorDom.classList.remove("cherry-editor--full");var t=this.options.previewerCache.layout;this.setRealLayout(t.editorPercentage,t.previewerPercentage),this.options.previewerCache.htmlChanged&&this.update(this.options.previewerCache.html),this.cleanHtmlCache(),this.$cherry.$event.emit("previewerOpen"),this.$cherry.$event.emit("editorOpen"),_d(function(){return e.editor.editor.refresh()},0)}},{key:"doHtmlCache",value:function(e){this.options.previewerCache.html=e,this.options.previewerCache.htmlChanged=!0}},{key:"cleanHtmlCache",value:function(){this.options.previewerCache.html="",this.options.previewerCache.htmlChanged=!1,this.options.previewerCache.layout={}}},{key:"afterUpdate",value:function(){var e;_h(e=this.options.afterUpdateCallBack).call(e,function(e){return e()}),void 0===this.highlightLineNum&&(this.highlightLineNum=0),this.highlightLine(this.highlightLineNum)}},{key:"registerAfterUpdate",value:function(e){if(QC(e)){var t;this.options.afterUpdateCallBack=Xu(t=this.options.afterUpdateCallBack).call(t,e)}else{if(!e)throw new Error("[markdown error]: Previewer registerAfterUpdate params are undefined");this.options.afterUpdateCallBack.push(e)}}},{key:"$getTopByLineNum",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.getDomContainer();if(null===e)return n.scrollHeight;for(var r="number"==typeof e?e:Bx(e,10),i=n.querySelectorAll("[data-sign]"),o=0,a=n.offsetTop,s=0;s<i.length;s++)if(i[s].parentNode===n){var l=Bx(i[s].getAttribute("data-lines"),10);if(!(o+l<r)){var c=TC(i[s]),u=c.height,d=c.offsetTop-a,h=d+u*t;return l>1&&(h=d+(l-Math.abs(r-(o+l))-1)/l*u+u/l*t),h}o+=l}return n.scrollHeight}},{key:"highlightLine",value:function(e){var t,n,r,i,o,a=this.getDomContainer();if(gf(t=a.querySelectorAll(".cherry-highlight-line")).call(t,function(e){e.classList.remove("cherry-highlight-line")}),"show"===(null===(n=this.$cherry)||void 0===n||null===(r=n.status)||void 0===r?void 0:r.previewer)&&"show"===(null===(i=this.$cherry)||void 0===i||null===(o=i.status)||void 0===o?void 0:o.editor))for(var s=a.querySelectorAll("[data-sign]"),l=0,c=0;c<s.length;c++)if(s[c].parentNode===a){var u=Bx(s[c].getAttribute("data-lines"),10);if(!(l+u<e))return this.highlightLineNum=e,void s[c].classList.add("cherry-highlight-line");l+=u}}},{key:"scrollToLineNumWithOffset",value:function(e,t){var n=this.$getTopByLineNum(e)-t;this.$scrollAnimation(n),this.highlightLine(e)}},{key:"scrollToTop",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",n=this.getDomContainer();this.getDomCanScroll(n).scrollTo({top:e,left:0,behavior:t})}},{key:"scrollToId",value:function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"smooth",o=this.getDomContainer(),a=this.getDomCanScroll(o),s=o.getElementsByTagName("img"),l=new yj,c=!1;gf(t=u_(s)).call(t,function(e){e.hasAttribute("width")||e.hasAttribute("height")||e.style.width||e.style.height||l.add(e)});var u=c_(n=e.replace(/^\s*#/,"")).call(n);u=/[%:]/.test(u)?u:encodeURIComponent(u);var d=null!==(r=o.querySelector('[id="'.concat(u,'"]')))&&void 0!==r&&r;if(!1===d)return!1;var h=0;h="HTML"===a.nodeName?a.scrollTop+d.getBoundingClientRect().y-10:a.scrollTop+d.getBoundingClientRect().y-a.getBoundingClientRect().y-10;var f=function(){l.clear();var e=0;e="HTML"===a.nodeName?a.scrollTop+d.getBoundingClientRect().y-10:a.scrollTop+d.getBoundingClientRect().y-a.getBoundingClientRect().y-10,Math.abs(e-h)>5&&a.scrollTo({top:e,left:0,behavior:"instant"})},p=function(){c||(c=!0,a.removeEventListener("scrollend",p),_d(function(){var e,t=_h(e=u_(l)).call(e,function(e){return e.complete?SC.resolve():new SC(function(t){var n=function(){e.removeEventListener("load",n),e.removeEventListener("error",n),t()};e.addEventListener("load",n),e.addEventListener("error",n)})});SC.all(t).then(function(){requestAnimationFrame(f)})},100))};return a.addEventListener("scrollend",p),_d(function(){a.removeEventListener("scrollend",p),p()},1e3),a.scrollTo({top:h,left:0,behavior:i}),!0}},{key:"$scrollAnimation",value:function(e){var t=this;if(this.animation.destinationTop=e,!this.animation.timer){var n=function(){var e=t.getDomContainer(),r=e.scrollTop,i=t.animation.destinationTop-r,o=Math.ceil(Math.min(Math.abs(i),Math.max(1,Math.abs(i)/(100/16.7))));if(0===i||r>=e.scrollHeight||o>Math.abs(i))return cancelAnimationFrame(t.animation.timer),void(t.animation.timer=0);t.disableScrollListener=!0,t.getDomContainer().scrollTo(null,r+i/Math.abs(i)*o),t.animation.timer=requestAnimationFrame(n)};this.animation.timer=requestAnimationFrame(n)}}},{key:"scrollToLineNum",value:function(e,t){var n=this.$getTopByLineNum(e,t);this.$scrollAnimation(n)}},{key:"getDomCanScroll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getDomContainer();return e.scrollHeight>e.clientHeight||e.clientHeight<window.innerHeight?e:e.parentElement?"BODY"===e.nodeName?document.documentElement.scrollHeight>document.documentElement.clientHeight?document.documentElement:e:this.getDomCanScroll(e.parentElement):void 0}},{key:"scrollToHeadByIndex",value:function(e){var t,n=null!==(t=this.getDomContainer().querySelectorAll("h1,h2,h3,h4,h5,h6,h7,h8")[e])&&void 0!==t&&t;!1!==n&&this.scrollToId(n.id)}},{key:"bindClick",value:function(){}},{key:"onMouseDown",value:function(){var e=this;DC(this.getDomContainer(),"mousedown",function(){_d(function(){e.$cherry.$event.emit("cleanAllSubMenus")})})}},{key:"export",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pdf",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t||this.$cherry.getFirstLineText("cherry-export");"pdf"===e?function(e,t){var n=document.title;document.title=t,bW(e,function(e,t){var r=document.documentElement,i=r.classList.contains("cherry-export-only");i||r.classList.add("cherry-export-only"),e.innerHTML=e.innerHTML.replace(/class="cherry-code-unExpand("| )/g,'class="cherry-code-expand$1');try{window.print()}finally{t(),i||r.classList.remove("cherry-export-only"),document.title=n}})}(this.getDomContainer(),n):"screenShot"===e||"img"===e?yW(this.getDomContainer(),n):"markdown"===e?function(e,t){var n=new Blob([e],{type:"text/markdown;charset=utf-8"}),r=document.createElement("a");r.style.display="none",r.href=iz.createObjectURL(n),r.download="".concat(t,".md"),document.body.appendChild(r),r.click(),document.body.removeChild(r)}(this.$cherry.getMarkdown(),n):"html"===e?function(e,t){var n=new Blob([e],{type:"text/markdown;charset=utf-8"}),r=document.createElement("a");r.style.display="none",r.href=iz.createObjectURL(n),r.download="".concat(t,".html"),document.body.appendChild(r),r.click(),document.body.removeChild(r)}(this.getValue(),n):"word"===e&&function(e,t){vW.apply(this,arguments)}(this.getValue(),n)}},{key:"changePreviewToMobile",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.getDomContainer();e?t.innerHTML="<div class='cherry-mobile-previewer-content'>".concat(t.innerHTML,"</div>"):t.parentNode.innerHTML=t.innerHTML,this.isMobilePreview=e}}])}();function tV(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"absolute",n=e.getBoundingClientRect();return"fixed"===t?n:"sidebar"===t?{left:nV.getTargetParentByButton(e).offsetLeft-130+n.width,top:e.offsetTop+n.height/2,width:n.width,height:n.height}:{left:e.offsetLeft,top:e.offsetTop,width:n.width,height:n.height}}var nV=function(){function e(t){var n,r,i;ua(this,e),Fu(this,"_onClick",void 0),this.$cherry=t,this.bubbleMenu=!1,this.subMenu=null,this.$currentMenuOptions=t.$currentMenuOptions,this.name=null!==(n=null===(r=t.$currentMenuOptions)||void 0===r?void 0:r.name)&&void 0!==n?n:"","string"==typeof(null===(i=t.$currentMenuOptions)||void 0===i?void 0:i.icon)&&(this.iconName=t.$currentMenuOptions.icon),this.iconType=null,this.editor=t.editor,this.locale=t.locale,this.dom=null,this.updateMarkdown=!0,this.subMenuConfig=[],this.noIcon=!1,this.cacheOnce=!1,this.positionModel="absolute","function"==typeof this._onClick&&(jC.warn("`MenuBase._onClick` is deprecated. Override `fire` instead"),this.fire=this._onClick),this.shortcutKeyMap={}}return mc(e,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"setName",value:function(e,t){this.name=e,this.iconName=t,this.$currentMenuOptions={name:e,icon:t}}},{key:"setCacheOnce",value:function(e){this.cacheOnce=e}},{key:"getAndCleanCacheOnce",value:function(){this.updateMarkdown=!0;var e=this.cacheOnce;return this.cacheOnce=!1,e}},{key:"hasCacheOnce",value:function(){return!1!==this.cacheOnce}},{key:"createIconFontIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=OC("i","ch-icon ch-icon-".concat(e));return"string"==typeof(null==t?void 0:t.className)&&n.classList.add(t.className),n}},{key:"createSvgIcon",value:function(e){if("svg"!==e.type)throw new Error('except options.type is "svg", but get "${options.type}"');try{var t,n=null===(t=(new DOMParser).parseFromString(e.content,"image/svg+xml"))||void 0===t?void 0:t.lastElementChild;return e.iconStyle&&n.setAttribute("style",e.iconStyle),e.iconClassName&&n.setAttribute("class",e.iconClassName),n}catch(e){throw new EI(e)}}},{key:"createImageIcon",value:function(e){if("image"!==e.type)throw new Error('except options.type is "image", but get "${options.type}"');return OC("img","ch-icon".concat(e.iconClassName?" ".concat(e.iconClassName):""),{src:e.content,style:e.iconStyle})}},{key:"createBtn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=OC("span",e?"cherry-dropdown-item":"cherry-toolbar-button cherry-toolbar-".concat(this.iconName?this.iconName:this.name),{title:this.locale[this.name]||eO(this.name)});if(!this.noIcon){var n=null,r=this.$currentMenuOptions.icon;if("string"==typeof r)n=this.createIconFontIcon(this.iconName!==this.name?this.iconName:r),this.iconType="iconfont";else if(r instanceof HTMLElement)n=r,this.iconType="element";else if("object"===ql(r)){var i=r.type;if("svg"===i)n=this.createSvgIcon(r),this.iconType="svg";else if("image"===i)n=this.createImageIcon(r),this.iconType="image";else{if("iconfont"!==i)throw new Error('except customIcon.type is "svg", "image", "iconfont", but get "'.concat(i,'"'));n=this.createIconFontIcon(r.content),this.iconType="iconfont"}}null!==n&&(n.classList.add("cherry-menu-".concat(this.name)),t.appendChild(n))}return(e||this.noIcon)&&(t.innerHTML+=this.locale[this.name]||eO(this.name)),e||this.dom||(this.dom=t),t}},{key:"createSubBtnByConfig",value:function(e){if("object"===ql(e)&&"|"===e.name)return OC("div","cherry-dropdown-separator");var t=e.name,n=e.iconName,r=e.icon,i=e.onclick,o=OC("span","cherry-dropdown-item",{title:this.locale[t]||eO(t)});if(n){var a=OC("i","ch-icon ch-icon-".concat(n));o.appendChild(a)}else if(r){var s=OC("img","ch-icon",{src:r,style:"width: 16px; height: 16px; vertical-align: sub;"});o.appendChild(s)}return o.innerHTML+=this.locale[t]||eO(t),o.addEventListener("click",i,!1),o}},{key:"fire",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(null==e||e.stopPropagation(),"function"==typeof this.onClick){var r=this.editor.editor.getSelections();this.isSelections=r.length>1;var i=_h(r).call(r,function(r,i,o){return t.onClick(r,n,e)||o[i]});!this.bubbleMenu&&this.updateMarkdown&&(OB(i).call(i,function(e){return e instanceof SC})?SC.all(_h(i).call(i,function(e){return e instanceof SC?e:SC.resolve(e)})).then(function(e){var n=_h(e).call(e,function(e,t){return null==e?r[t]:String(e)});t.editor.editor.replaceSelections(n,"around"),t.editor.editor.focus(),t.$afterClick()}):(this.editor.editor.replaceSelections(i,"around"),this.editor.editor.focus(),this.$afterClick()))}}},{key:"$getSelectionRange",value:function(){var e=this.editor.editor.listSelections()[0],t=e.anchor,n=e.head;return t.line===n.line&&t.ch>n.ch||t.line>n.line?{begin:n,end:t}:{begin:t,end:n}}},{key:"registerAfterClickCb",value:function(e){this.afterClickCb=e}},{key:"$afterClick",value:function(){"function"!=typeof this.afterClickCb||this.isSelections||(this.afterClickCb(),this.afterClickCb=null)}},{key:"setLessSelection",value:function(e,t){var n,r,i,o,a=this.editor.editor,s=this.$getSelectionRange(),l=s.begin,c=s.end,u={line:(null===(n=e.match(/\n/g))||void 0===n?void 0:n.length)>0?l.line+e.match(/\n/g).length:l.line,ch:(null===(r=e.match(/\n/g))||void 0===r?void 0:r.length)>0?e.replace(/^[\s\S]*?\n([^\n]*)$/,"$1").length:l.ch+e.length},d=(null===(i=t.match(/\n/g))||void 0===i?void 0:i.length)>0?c.line-t.match(/\n/g).length:c.line,h={line:d,ch:(null===(o=t.match(/\n/g))||void 0===o?void 0:o.length)>0?a.getLine(d).length:c.ch-t.length};a.setSelection(u,h)}},{key:"getMoreSelection",value:function(e,t,n){var r=this.editor.editor,i=this.$getSelectionRange(),o=i.begin,a=i.end,s=/\n/.test(e)?0:o.ch-e.length;s=s<0?0:s;var l,c=/\n/.test(e)?o.line-e.match(/\n/g).length:o.line,u={line:c=c<0?0:c,ch:s},d=a.line,h=a.ch;/\n/.test(t)?(d=a.line+t.match(/\n/g).length,h=null===(l=r.getLine(d))||void 0===l?void 0:l.length):h=r.getLine(a.line).length<a.ch+t.length?r.getLine(a.line).length:a.ch+t.length;var f={line:d,ch:h};r.setSelection(u,f),!1===n()&&r.setSelection(o,a)}},{key:"getSelection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"word",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.editor.editor;if(this.isSelections)return e;if(e&&!n)return e;if("line"===t){var i=this.$getSelectionRange(),o=i.begin,a=i.end;return r.setSelection({line:o.line,ch:0},{line:a.line,ch:r.getLine(a.line).length}),r.getSelection()}if("word"===t){var s=r.findWordAt(r.getCursor()),l=s.anchor,c=s.head;return r.setSelection(l,c),r.getSelection()}}},{key:"bindSubClick",value:function(e,t){return this.fire(null,e)}},{key:"onClick",value:function(e,t,n){return e}},{key:"shortcutKeys",get:function(){return[]}},{key:"updateMenuIcon",value:function(e){if(this.noIcon)return!1;var t;if("string"==typeof e)return"iconfont"===this.iconType&&(null===(t=this.dom.querySelector("i"))||void 0===t||t.classList.replace("ch-icon-".concat(this.iconName),"ch-icon-".concat(e)),this.iconName=e,this.$currentMenuOptions.icon=e,this.iconType="iconfont",!0);if(e instanceof HTMLElement)return e.classList.add("ch-icon cherry-menu-".concat(this.name)),this.dom.replaceChildren(e),this.iconType="element",!0;var n=this.iconName;switch(e.type){case"iconfont":if("iconfont"===this.iconType){var r;n=e.content,null===(r=this.dom.querySelector("i"))||void 0===r||r.classList.replace("ch-icon-".concat(this.iconName),"ch-icon-".concat(n)),this.iconName=n}else{var i=this.createIconFontIcon(e.content,{className:"cherry-menu-".concat(this.name)});e.iconClassName&&i.classList.add(e.iconClassName),e.iconStyle&&i.setAttribute("style",e.iconStyle),this.dom.replaceChildren(i)}this.iconType="iconfont";break;case"svg":this.dom.replaceChildren(this.createSvgIcon(e)),this.iconType="svg";break;case"image":this.dom.replaceChildren(this.createImageIcon(e)),this.iconType="image";break;case"element":throw Error("except the options argument instance of HTMLElement, but get a type of ".concat(ql(e)))}}},{key:"getMenuPosition",value:function(){var t=e.getTargetParentByButton(this.dom),n=/cherry-sidebar/.test(t.className);return/cherry-bubble/.test(t.className)||/cherry-floatmenu/.test(t.className)?this.positionModel="fixed":this.positionModel=n?"sidebar":"absolute",tV(this.dom,this.positionModel)}},{key:"hide",value:function(){this.dom.style.display="none"}},{key:"show",value:function(){this.dom.style.display="block"}},{key:"getActiveSubMenuIndex",value:function(e){return-1}}],[{key:"getTargetParentByButton",value:function(e){var t=e.parentElement;return/toolbar-(left|right)/.test(t.className)&&(t=t.parentElement),t}}])}(),rV=navigator.userAgent,iV=navigator.platform,oV=/MSIE \d/.test(rV),aV=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(rV),sV=/Edge\/(\d+)/.exec(rV);(oV||aV||sV)&&(oV?document.documentMode:(sV||aV)[1]);var lV,cV=/Opera\//.test(rV),uV=!sV&&/AppleWebKit/.test(rV)&&/Mobile\/\w+/.test(rV)||/Mac/.test(iV),dV=cV&&rV.match(/Version\/(\d*\.\d*)/);dV&&(dV=Number(dV[1])),dV&&dV>=15&&(cV=!1);var hV="Shift",fV="Alt",pV="Control",gV="Meta",mV="Enter",vV=Fu(Fu(Fu(Fu({},hV,function(e){return{text:"⇧",tip:"Shift"}}),pV,function(e){return e?{text:"⌃",tip:"Control"}:{text:"Ctrl",tip:"Control"}}),fV,function(e){return e?{text:"⌥",tip:"Option"}:{text:"Alt",tip:"Alt"}}),gV,function(e){return e?{text:"⌘",tip:"Command"}:{text:"⊞",tip:"Windows"}}),AV=Xu(lV=[]).call(lV,["Backspace","Clear","Copy","CrSel","Cut","Delete","EraseEof","ExSel","Insert","Paste","Redo","Undo"],["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp"],[" ","Tab","Enter"]),bV=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Xu(t=[]).call(t,DI(AV),DI(n)),i=[],o=e.metaKey||e.ctrlKey||e.altKey||e.shiftKey;if(uh(r).call(r,e.key))return i;if(o&&(e.metaKey&&i.push(gV),e.ctrlKey&&i.push(pV),e.altKey&&i.push(fV),e.shiftKey&&i.push(hV)),!uh(i).call(i,e.key)){if(Gx(e))return i.push(e.code),i;i.push(e.code)}return i},yV=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"disable";window.localStorage.setItem("".concat(e,"-disable-cherry-shortcut-key"),t)},wV=function(e){return"disable"!==window.localStorage.getItem("".concat(e,"-disable-cherry-shortcut-key"))},_V=function(e,t){if(!t||"object"!==ql(t))throw new Error("keyMap must be a object");return window.localStorage.setItem("".concat(e,"-cherry-shortcut-keymap"),Ew(t))},xV=function(e){var t=window.localStorage.getItem("".concat(e,"-cherry-shortcut-keymap"));if(t)try{return JSON.parse(t)}catch(e){return console.error(e),null}return null},EV=function(e){if(!QC(e))throw new Error("keyStack must be a array");return e.join("-")},SV=function(e){if("number"==typeof e)return"Digit".concat(e);if("string"!=typeof e)throw new Error("key must be a string or number");if(e.length>1)throw new Error("key length must be 1, but get ".concat(e.length));var t=e.toUpperCase();return/\d/.test(t)?"Digit".concat(t):/[A-Z]/.test(t)?"Key".concat(t):void 0},CV=function(){return uV?gV:pV};function TV(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(TV=function(){return!!e})()}var kV=function(){function e(t){var n,r,i,o,a;return ua(this,e),i=this,a=[t],o=wu(o=e),(r=Ac(i,TV()?pr(o,a||[],wu(i).constructor):o.apply(i,a))).setName("bold","bold"),r.shortcutKeyMap=Fu({},Xu(n="".concat(CV(),"-")).call(n,SV("b")),{hookName:r.name,aliasName:r.name}),r}return Pu(e,nV),mc(e,[{key:"$testIsBold",value:function(e){return/^\s*(\*\*|__)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t=this,n=this.getSelection(e)||this.locale.bold;return this.isSelections||this.$testIsBold(n)||this.getMoreSelection("**","**",function(){var e=t.editor.editor.getSelection(),r=t.$testIsBold(e);return r&&(n=e),r}),this.$testIsBold(n)?n.replace(/(^)(\s*)(\*\*|__)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb(function(){t.setLessSelection("**","**")}),n.replace(/(^)([^\n]+)($)/gm,"$1**$2**$3"))}}])}();function OV(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(OV=function(){return!!e})()}var MV=function(){function e(t){var n,r,i,o,a;return ua(this,e),i=this,a=[t],o=wu(o=e),(r=Ac(i,OV()?pr(o,a||[],wu(i).constructor):o.apply(i,a))).setName("italic","italic"),r.shortcutKeyMap=Fu({},Xu(n="".concat(CV(),"-")).call(n,SV("i")),{hookName:r.name,aliasName:r.name}),r}return Pu(e,nV),mc(e,[{key:"$testIsItalic",value:function(e){return/^\s*(\*|_)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t=this,n=this.getSelection(e)||this.locale.italic;return this.isSelections||this.$testIsItalic(n)||this.getMoreSelection("*","*",function(){var e=t.editor.editor.getSelection(),r=t.$testIsItalic(e);return r&&(n=e),r}),this.$testIsItalic(n)?n.replace(/(^)(\s*)(\*|_)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb(function(){t.setLessSelection("*","*")}),n.replace(/(^)([^\n]+)($)/gm,"$1*$2*$3"))}}])}();function IV(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(IV=function(){return!!e})()}var DV=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,IV()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("split","|"),n}return Pu(e,nV),mc(e,[{key:"createBtn",value:function(){var e=document.createElement("i");return e.className="cherry-toolbar-button cherry-toolbar-split",e}}])}();function NV(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"word",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(e.getSelections().length>1)return t;if(t&&!r)return t;if("line"===n){var i=e.listSelections()[0],o=i.anchor,a=i.head;return o.line===a.line&&o.ch>a.ch||o.line>a.line?e.setSelection({line:a.line,ch:0},{line:o.line,ch:e.getLine(o.line).length}):e.setSelection({line:o.line,ch:0},{line:a.line,ch:e.getLine(a.line).length}),e.getSelection()}if("word"===n){var s=e.findWordAt(e.getCursor()),l=s.anchor,c=s.head;return e.setSelection(l,c),e.getSelection()}}function RV(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(RV=function(){return!!e})()}var LV=function(){function e(t){var n,r,i,o,a;return ua(this,e),i=this,a=[t],o=wu(o=e),(r=Ac(i,RV()?pr(o,a||[],wu(i).constructor):o.apply(i,a))).setName("strikethrough","strike"),r.shortcutKeyMap=Fu({},Xu(n="".concat(CV(),"-")).call(n,SV("d")),{hookName:r.name,aliasName:r.name}),r}return Pu(e,nV),mc(e,[{key:"$testIsStrike",value:function(e){return/(~~)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t,n,r,i,o,a,s=this,l=NV(this.editor.editor,e)||this.locale.strikethrough,c=(null===(t=this.$cherry)||void 0===t||null===(n=t.options)||void 0===n||null===(r=n.engine)||void 0===r||null===(i=r.syntax)||void 0===i||null===(o=i.strikethrough)||void 0===o?void 0:o.needWhitespace)?" ":"";return this.isSelections||this.$testIsStrike(l)||this.getMoreSelection("".concat(c,"~~"),"~~".concat(c),function(){var e=s.editor.editor.getSelection(),t=s.$testIsStrike(e);return t&&(l=e),t}),this.$testIsStrike(l)?e.replace(/[\s]*(~~)([\s\S]+)(\1)[\s]*/g,"$2"):(this.registerAfterClickCb(function(){s.setLessSelection("".concat(c,"~~"),"~~".concat(c))}),l.replace(/(^)[\s]*([\s\S]+?)[\s]*($)/g,Xu(a="$1".concat(c,"~~$2~~")).call(a,c,"$3")))}}])}();function BV(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(BV=function(){return!!e})()}var PV=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,BV()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("sub","sub"),n}return Pu(e,nV),mc(e,[{key:"$testIsSub",value:function(e){return/^\s*(\^\^)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t=this,n=NV(this.editor.editor,e)||this.locale.sub;return this.isSelections||this.$testIsSub(n)||this.getMoreSelection("^^","^^",function(){var e=t.editor.editor.getSelection(),r=t.$testIsSub(e);return r&&(n=e),r}),this.$testIsSub(n)?n.replace(/(^)(\s*)(\^\^)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb(function(){t.setLessSelection("^^","^^")}),n.replace(/(^)([^\n]+)($)/gm,"$1^^$2^^$3"))}}])}();function FV(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(FV=function(){return!!e})()}var $V=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,FV()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("sup","sup"),n}return Pu(e,nV),mc(e,[{key:"$testIsSup",value:function(e){return/^\s*(\^)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t=this,n=NV(this.editor.editor,e)||this.locale.sup;return this.isSelections||this.$testIsSup(n)||this.getMoreSelection("^","^",function(){var e=t.editor.editor.getSelection(),r=t.$testIsSup(e);return r&&(n=e),r}),this.$testIsSup(n)?e.replace(/(^)(\s*)(\^)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb(function(){t.setLessSelection("^","^")}),n.replace(/(^)([^\n]+)($)/gm,"$1^$2^$3"))}}])}();function jV(e,t,n){var r;return"#".concat(_x(r=((1<<24)+(e<<16)+(t<<8)+n).toString(16)).call(r,1))}function HV(e,t,n){var r,i,o,a=n*t,s=a*(1-Math.abs(e/60%2-1)),l=n-a;return e>=0&&e<60?(r=a,i=s,o=0):e>=60&&e<120?(r=s,i=a,o=0):e>=120&&e<180?(r=0,i=a,o=s):e>=180&&e<240?(r=0,i=s,o=a):e>=240&&e<300?(r=s,i=0,o=a):(r=a,i=0,o=s),{r:Math.round(255*(r+l)),g:Math.round(255*(i+l)),b:Math.round(255*(o+l))}}function UV(e,t){var n=$h(e);if(Xi){var r=Xi(e);t&&(r=uo(r).call(r,function(t){return To(e,t).enumerable})),n.push.apply(n,r)}return n}function QV(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?gf(n=UV(Object(i),!0)).call(n,function(t){Fu(e,t,i[t])}):$o?Xo(e,$o(i)):gf(r=UV(Object(i))).call(r,function(t){ca(e,t,To(i,t))})}return e}function zV(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(zV=function(){return!!e})()}var WV=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,zV()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("color","color"),n.bubbleColor=new GV(t),n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;if(this.hasCacheOnce()||this.$testIsShortKey(t)){var r=NV(this.editor.editor,e)||this.locale.color,i=this.$getTypeAndColor(t);if("object"===ql(i)&&i){if("clear"===i.type)return this.bubbleColor.toggle({forceHide:!0}),r?this.parseAppliedColors(r).text:"";var o=i.type,a=i.color,s=this.parseAppliedColors(r);return"text"===o?s.textColor=a:"background-color"===o&&(s.bgColor=a),this.buildStyleString(s.textColor,s.bgColor,s.text)}}else{var l=this.calculatePickerPosition(n);this.updateMarkdown=!1,this.bubbleColor.toggle(QV(QV({},l),{},{$color:this}))}}},{key:"calculatePickerPosition",value:function(e){var t=e.target.closest(".cherry-bubble"),n=e.target.closest(".cherry-toolbar-color");if(t){var r=t.getBoundingClientRect();return{top:r.top+t.offsetHeight+8,left:Math.max(64,n.offsetLeft+r.left)}}var i=n.getBoundingClientRect();return{top:i.top+n.offsetHeight,left:i.left}}},{key:"parseAppliedColors",value:function(e){for(var t=0,n=[{regex:/^\s*!!([#\w]+)\s+!!!([#\w]+)\s+([\s\S]+?)\s*!!!!!\s*$/,map:function(e){return{textColor:e[1],bgColor:e[2],text:e[3]}}},{regex:/^\s*!!!([#\w]+)\s+!!([#\w]+)\s+([\s\S]+?)\s*!!!!!\s*$/,map:function(e){return{bgColor:e[1],textColor:e[2],text:e[3]}}},{regex:/^\s*!!!([#\w]+)\s+([\s\S]+?)\s*!!!\s*$/,map:function(e){return{bgColor:e[1],textColor:null,text:e[2]}}},{regex:/^\s*!!([#\w]+)\s+([\s\S]+?)\s*!!\s*$/,map:function(e){return{textColor:e[1],bgColor:null,text:e[2]}}}];t<n.length;t++){var r=n[t],i=r.regex,o=_h(r),a=e.match(i);if(a)return o(a)}return{textColor:null,bgColor:null,text:e}}},{key:"buildStyleString",value:function(e,t,n){if(!n)return"";var r,i,o=n;return t&&(o=Xu(r="!!!".concat(t," ")).call(r,o,"!!!")),e&&(o=Xu(i="!!".concat(e," ")).call(i,o,"!!")),o}},{key:"$testIsShortKey",value:function(e){return/(color|background-color)\s*:/.test(e)}},{key:"$getTypeAndColor",value:function(e){var t;return this.$testIsShortKey(e)?{type:/background-color\s*:/.test(e)?"background-color":"text",color:c_(t=e.replace(/(color|background-color)\s*:\s*([#0-9a-zA-Z]+)[^#0-9a-zA-Z]*$/,"$2")).call(t)}:this.getAndCleanCacheOnce()}},{key:"hideOtherSubMenu",value:function(e){var t=this.bubbleColor.dom.style.display||"none";e(),this.bubbleColor.dom.style.display=t}}])}(),GV=function(){return mc(function e(t){ua(this,e),Fu(this,"presetColors",[["#e6f3ff","#cce7ff","#99d6ff","#66c5ff","#33b4ff","#0099ff","#0080e6","#0066cc","#004d99","#003366"],["#ffe6e6","#ffcccc","#ff9999","#ff6666","#ff3333","#ff0000","#e60000","#cc0000","#990000","#660000"],["#fff2e6","#ffe6cc","#ffcc99","#ffb366","#ff9933","#ff8000","#e6730d","#cc6600","#995500","#663300"],["#e6ffe6","#ccffcc","#99ff99","#66ff66","#33ff33","#00ff00","#00e600","#00cc00","#009900","#006600"],["#fafafa","#f5f5f5","#e5e5e5","#d4d4d4","#a3a3a3","#737373","#525252","#404040","#262626","#171717"]]),this.editor=t.editor,this.$cherry=t,this.locale=t.locale,this.currentColor="#ff0000",this.currentType="text",this.currentHue=0,this.currentSaturation=1,this.currentBrightness=1,this.isDragging="",this.cachedElements=new EH,this.recentColors=this.getRecentColors(),this.init(),this.initAction()},[{key:"init",value:function(){this.dom=this.getDom(),this.editor.options.wrapperDom.appendChild(this.dom)}},{key:"getElement",value:function(e){if(!this.cachedElements.has(e)){var t=this.dom.querySelector(e);this.cachedElements.set(e,t)}return this.cachedElements.get(e)}},{key:"clearElementCache",value:function(){this.cachedElements.clear()}},{key:"getDom",value:function(){var e,t,n,r,i,o=document.createElement("div");return o.classList.add("cherry-color-wrap"),o.classList.add("cherry-dropdown"),o.innerHTML=Xu(e=Xu(t=Xu(n=Xu(r=Xu(i='\n      <div class="cherry-color-tabs">\n        <div class="cherry-color-tab-group">\n          <div class="cherry-color-tab active" data-type="text">'.concat(this.locale.colorPickerText,'</div>\n          <div class="cherry-color-tab" data-type="background">')).call(i,this.locale.colorPickerBackground,'</div>\n        </div>\n        <div class="cherry-color-clear">')).call(r,this.locale.colorPickerClear,"</div>\n      </div>\n      ")).call(n,this.createColorPicker(),"\n      ")).call(t,this.createRecentColors(),"\n      ")).call(e,this.createPresetColors(),"\n    "),o}},{key:"createColorPicker",value:function(){return'\n      <div class="cherry-color-picker">\n        <div class="cherry-color-main" style="background: linear-gradient(to right, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);">\n          <div class="cherry-color-saturation" style="background: linear-gradient(to top, #000 0%, transparent 100%), linear-gradient(to right, #fff 0%, transparent 100%);">\n            <div class="cherry-color-pointer" style="left: 100%; top: 0%;"></div>\n          </div>\n        </div>\n        <div class="cherry-color-hue-container">\n          <div class="cherry-color-hue">\n            <div class="cherry-color-hue-pointer" style="left: 0%;"></div>\n          </div>\n          <div class="cherry-color-preview" style="background-color: #ff0000;"></div>\n        </div>\n      </div>\n    '}},{key:"createColorItem",value:function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"cherry-color-item",a=i?"cherry-color-recent-empty":"cherry-color-recent-item",s=i?"":Xu(t='data-color="'.concat(e,'" style="background-color: ')).call(t,e,';"');return Xu(n=Xu(r='<div class="'.concat(o," ")).call(r,a,'" ')).call(n,s,"></div>")}},{key:"createRecentColors",value:function(){var e,t,n,r,i=this,o=_h(e=this.recentColors).call(e,function(e){return i.createColorItem(e)}).join(""),a=aB(t=Array(Math.max(0,6-this.recentColors.length))).call(t,this.createColorItem("",!0)).join("");return Xu(n=Xu(r='\n      <div class="cherry-color-recent">\n        <div class="cherry-color-section-title">'.concat(this.locale.colorPickerRecentColors,'</div>\n        <div class="cherry-color-recent-grid">\n          ')).call(r,o)).call(n,a,"\n        </div>\n      </div>\n    ")}},{key:"createPresetColors",value:function(){var e,t,n=this,r=_h(e=this.presetColors).call(e,function(e){return'<div class="cherry-color-preset-row">\n          '.concat(_h(e).call(e,function(e){return n.createColorItem(e,!1,"cherry-color-item cherry-color-preset-item")}).join(""),"\n        </div>")}).join("");return Xu(t='\n      <div class="cherry-color-presets">\n        <div class="cherry-color-section-title">'.concat(this.locale.colorPickerPresetColors,'</div>\n        <div class="cherry-color-preset-grid">\n          ')).call(t,r,"\n        </div>\n      </div>\n    ")}},{key:"initAction",value:function(){this.setupMouseInteractions(),this.setupClickHandlers()}},{key:"setupMouseInteractions",value:function(){var e=this;this.dom.addEventListener("mousedown",function(t){var n=t.target;e.isColorPickerElement(n,"saturation")?e.handleColorInteraction(t,"saturation"):e.isColorPickerElement(n,"hue")&&e.handleColorInteraction(t,"hue")}),document.addEventListener("mousemove",function(t){e.isDragging&&e.handleColorInteraction(t,e.isDragging)}),document.addEventListener("mouseup",function(){e.isDragging&&e.saveRecentColor(e.currentColor),e.isDragging=""})}},{key:"isColorPickerElement",value:function(e,t){var n;return OB(n={saturation:[".cherry-color-saturation",".cherry-color-pointer"],hue:[".cherry-color-hue",".cherry-color-hue-pointer"]}[t]).call(n,function(t){return e.classList.contains(_x(t).call(t,1))||e.closest(t)})}},{key:"handleColorInteraction",value:function(e,t){this.isDragging=t;var n="saturation"===t?this.getColorFromPicker(e):this.getHueFromPicker(e);this.updateColorSelection(n),e.preventDefault()}},{key:"setupClickHandlers",value:function(){var e=this;this.dom.addEventListener("click",function(t){var n=t.target;n.classList.contains("cherry-color-tab")?e.handleTabSwitch(n):n.classList.contains("cherry-color-clear")?e.handleClearColor():(n.classList.contains("cherry-color-preset-item")||n.classList.contains("cherry-color-recent-item"))&&e.handleColorItemClick(n)})}},{key:"handleTabSwitch",value:function(e){var t;gf(t=this.dom.querySelectorAll(".cherry-color-tab")).call(t,function(e){return e.classList.remove("active")}),e.classList.add("active"),this.currentType=e.dataset.type}},{key:"handleClearColor",value:function(){this.$color.setCacheOnce({type:"clear"}),this.$color.fire(null)}},{key:"handleColorItemClick",value:function(e){var t=e.dataset.color;this.setColor(t),this.updateColorSelection(t),this.saveRecentColor(t)}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.left,n=e.top,r=e.$color,i=e.forceHide,o=void 0!==i&&i,a="none"!==this.dom.style.display&&""!==this.dom.style.display;if(o||a)return this.dom.style.display="none",void this.clearElementCache();this.dom.style.left="".concat(t,"px"),this.dom.style.top="".concat(n,"px"),this.dom.style.display="block",this.$color=r,this.setColor(this.currentColor),this.updateRecentColorsDisplay()}},{key:"setColor",value:function(e){this.currentColor=e;var t=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:Bx(t[1],16),g:Bx(t[2],16),b:Bx(t[3],16)}:null}(e),n=function(e,t,n){var r=e/255,i=t/255,o=n/255,a=Math.max(r,i,o),s=a-Math.min(r,i,o),l=0,c=0===a?0:s/a,u=a;if(0!==s)switch(a){case r:l=((i-o)/s+(i<o?6:0))/6;break;case i:l=((o-r)/s+2)/6;break;case o:l=((r-i)/s+4)/6}return{h:360*l,s:c,v:u}}(t.r,t.g,t.b);this.currentHue=n.h,this.currentSaturation=n.s,this.currentBrightness=n.v,this.updateColorDisplay(e)}},{key:"updateColorDisplay",value:function(e){this.currentColor=e;var t=this.getElement(".cherry-color-preview");this.getElement(".cherry-color-hue-pointer").style.backgroundColor=e,t.style.backgroundColor=e,this.updateHueBackground(),this.updatePointers()}},{key:"updateColorFromHsv",value:function(){var e=HV(this.currentHue,this.currentSaturation,this.currentBrightness);this.currentColor=jV(e.r,e.g,e.b),this.updateColorDisplay(this.currentColor)}},{key:"getColorFromPicker",value:function(e){var t=this.getElement(".cherry-color-saturation").getBoundingClientRect(),n=Math.max(0,Math.min(t.width,e.clientX-t.left)),r=Math.max(0,Math.min(t.height,e.clientY-t.top));return this.currentSaturation=n/t.width,this.currentBrightness=1-r/t.height,this.updateColorFromHsv(),this.currentColor}},{key:"getHueFromPicker",value:function(e){var t=this.getElement(".cherry-color-hue").getBoundingClientRect(),n=Math.max(7,Math.min(t.width-7,e.clientX-t.left));return this.currentHue=(n-7)/(t.width-14)*360,this.updateColorFromHsv(),this.currentColor}},{key:"updateColorSelection",value:function(e){var t="text"===this.currentType?"text":"background-color";this.$color.setCacheOnce({type:t,color:e}),this.$color.fire(null)}},{key:"updatePointers",value:function(){var e=this.getElement(".cherry-color-pointer"),t=this.getElement(".cherry-color-hue-pointer");e.style.left="".concat(100*this.currentSaturation,"%"),e.style.top="".concat(100*(1-this.currentBrightness),"%");var n=this.getElement(".cherry-color-hue").getBoundingClientRect().width-14,r=7+this.currentHue/360*n;t.style.left="".concat(r,"px")}},{key:"updateHueBackground",value:function(){var e,t=this.getElement(".cherry-color-saturation"),n=HV(this.currentHue,1,1),r=jV(n.r,n.g,n.b);t.parentElement.style.background=Xu(e="linear-gradient(to right, ".concat(r," 0%, ")).call(e,r," 100%)")}},{key:"updateRecentColorsDisplay",value:function(){var e,t,n,r=this,i=this.getElement(".cherry-color-recent-grid"),o=_h(e=this.recentColors).call(e,function(e){return r.createColorItem(e)}).join(""),a=aB(t=Array(Math.max(0,6-this.recentColors.length))).call(t,this.createColorItem("",!0)).join("");i.innerHTML=Xu(n="".concat(o)).call(n,a)}},{key:"getRecentColors",value:function(){return JSON.parse(localStorage.getItem("cherry-recent-colors")||"[]")}},{key:"saveRecentColor",value:function(e){var t,n,r;this.recentColors=_x(t=Xu(n=[e]).call(n,DI(uo(r=this.recentColors).call(r,function(t){return t!==e})))).call(t,0,6),localStorage.setItem("cherry-recent-colors",Ew(this.recentColors)),this.updateRecentColorsDisplay()}}])}();function VV(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(VV=function(){return!!e})()}var KV=function(){function e(t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g;return ua(this,e),f=this,g=[t],p=wu(p=e),(h=Ac(f,VV()?pr(p,g||[],wu(f).constructor):p.apply(f,g))).setName("header","header"),h.subMenuConfig=[{iconName:"h1",name:"h1",onclick:Ju(n=h.bindSubClick).call(n,h,"1")},{iconName:"h2",name:"h2",onclick:Ju(r=h.bindSubClick).call(r,h,"2")},{iconName:"h3",name:"h3",onclick:Ju(i=h.bindSubClick).call(i,h,"3")},{iconName:"h4",name:"h4",onclick:Ju(o=h.bindSubClick).call(o,h,"4")},{iconName:"h5",name:"h5",onclick:Ju(a=h.bindSubClick).call(a,h,"5")}],h.shortcutKeyMap=Fu(Fu(Fu(Fu(Fu({},Xu(s="".concat(CV(),"-")).call(s,SV(1)),{hookName:h.name,aliasName:"h1"}),Xu(l="".concat(CV(),"-")).call(l,SV(2)),{hookName:h.name,aliasName:"h2"}),Xu(c="".concat(CV(),"-")).call(c,SV(3)),{hookName:h.name,aliasName:"h3"}),Xu(u="".concat(CV(),"-")).call(u,SV(4)),{hookName:h.name,aliasName:"h4"}),Xu(d="".concat(CV(),"-")).call(d,SV(5)),{hookName:h.name,aliasName:"h5"}),h}return Pu(e,nV),mc(e,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"$getFlagStr",value:function(e){var t=+("string"==typeof e?e.replace(/[^0-9]+([0-9])/g,"$1"):e);return Gx("#").call("#",t||1)}},{key:"$testIsHead",value:function(e){return/^\s*(#+)\s*.+/.test(e)}},{key:"onClick",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=NV(this.editor.editor,e,"line",!0)||this.locale.header,i=this.$getFlagStr(n);if(this.$testIsHead(r)){var o=!0,a=r.replace(/(^\s*)(#+)(\s*)(.+$)/gm,function(e,t,n,r,a){var s,l,c;return o=!!o&&n.length===i.length,Xu(s=Xu(l=Xu(c="".concat(t)).call(c,i)).call(l,r)).call(s,a)});return o?r.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb(function(){t.setLessSelection("".concat(i," "),"")}),a)}return this.registerAfterClickCb(function(){t.setLessSelection("".concat(i," "),"")}),r.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(i," $3$4"))}}])}(),YV=function(e,t){var n,r=document.createElement("td");return r.className=t,gf(n=$h(e)).call(n,function(t){r.dataset[t]=e[t]}),r},qV=function(){return mc(function e(t,n){var r=t.row,i=t.col;ua(this,e),this.init(r,i,n),this.initEventListeners(),this.afterClick=function(){}},[{key:"init",value:function(e,t,n){var r=this,i=document.createElement("table"),o=[];i.className=["cherry-insert-table-menu","cherry-dropdown"].join(" ");for(var a=1;a<=e;a++){var s=document.createElement("tr");s.className="cherry-insert-table-menu-row",o[a-1]=[];for(var l=1;l<=t;l++){var c=YV({row:a,col:l},"cherry-insert-table-menu-item");s.appendChild(c),o[a-1][l-1]=c}i.appendChild(s)}return i.style.display="none",i.addEventListener("EditorHideToolbarSubMenu",function(){r.hide()}),this.dom=i,this.cell=o,this.maxRow=e,this.maxCol=t,this.activeRow=0,this.activeCol=0,this.dom}},{key:"initEventListeners",value:function(){var e,t;this.dom.addEventListener("mousemove",Ju(e=this.handleMouseMove).call(e,this),!1),this.dom.addEventListener("mouseup",Ju(t=this.handleMouseUp).call(t,this))}},{key:"setActiveCell",value:function(e,t){if(this.activeRow!==e||this.activeCol!==t){var n=Math.min(this.activeRow,e),r=Math.max(this.activeRow,e);if(n!==r)for(var i=r;i>n;i--)for(var o=1;o<=this.activeCol;o++)this.cell[i-1][o-1].classList.toggle("active");var a=Math.min(this.activeCol,t),s=Math.max(this.activeCol,t);if(a!==s)for(var l=s;l>a;l--)for(var c=1;c<=e;c++)this.cell[c-1][l-1].classList.toggle("active");this.activeRow=e,this.activeCol=t}}},{key:"handleMouseMove",value:function(e){var t=e.target;t!==this.dom&&(t.classList.contains("cherry-insert-table-menu-item")||(t=t.querySelector(".cherry-insert-table-menu-item")),t&&this.setActiveCell(t.dataset.row,t.dataset.col))}},{key:"handleMouseUp",value:function(e){var t=e.target;return t===this.dom||t.classList.contains("cherry-insert-table-menu-item")||(t=t.querySelector(".cherry-insert-table-menu-item")),this.afterClick(this.activeRow,this.activeCol),void this.hide()}},{key:"show",value:function(e){this.dom.style.display="block",this.afterClick=e}},{key:"hide",value:function(){this.dom.style.display="none";for(var e=0;e<this.maxRow;e++)for(var t=0;t<this.maxCol;t++)this.cell[e][t].classList.remove("active");this.activeRow=0,this.activeCol=0}}])}();function XV(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(XV=function(){return!!e})()}var JV=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,XV()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("insert","insert"),n.noIcon=!0,n.subBubbleTableMenu=new qV({row:9,col:9}),t.editor.options.wrapperDom.appendChild(n.subBubbleTableMenu.dom),n}return Pu(e,nV),mc(e,[{key:"handleUpload",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"image",n=document.createElement("input");n.type="file",n.id="fileUpload",n.value="",n.style.display="none",n.addEventListener("change",function(n){var r=Yy(n.target.files,1)[0];e.$cherry.options.callback.fileUpload(r,function(n){if("string"==typeof n&&n){var i,o="";if("image"===t)o=Xu(i="![".concat(r.name,"](")).call(i,n,")");else if("video"===t){var a;o=Xu(a="!video[".concat(r.name,"](")).call(a,n,")")}else if("audio"===t){var s;o=Xu(s="!audio[".concat(r.name,"](")).call(s,n,")")}else{var l;o=Xu(l="[".concat(r.name,"](")).call(l,n,")")}e.$cherry.$cherry.doc.replaceSelection(o)}})}),n.click()}},{key:"onClick",value:function(e){var t,n,r,i,o,a,s,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2?arguments[2]:void 0;if(/normal-table/.test(l)){var u,d,h,f=l.match(/([0-9]+)[^0-9]([0-9]+)/),p=f?+f[1]:3,g=f?+f[2]:5,m=Gx(" Header |").call(" Header |",g),v=Gx(" ------ |").call(" ------ |",g),A="\n|".concat(Gx(" Sample |").call(" Sample |",g));return Xu(u=Xu(d=Xu(h="".concat(e,"\n\n|")).call(h,m,"\n|")).call(d,v)).call(u,Gx(A).call(A,p),"\n\n")}var b=NV(this.editor.editor,e);switch(l){case"hr":return"".concat(e,"\n\n---\n");case"br":return"".concat(e,"<br>");case"code":return"\n``` \n".concat(e||"code...","\n```\n");case"formula":return"".concat(e,"\n\n$ e=mc^2 $\n\n");case"checklist":return"".concat(e,"\n\n- [x] Item 1\n- [ ] Item 2\n- [ ] Item 3\n");case"toc":return"".concat(e,"\n\n[[toc]]\n");case"link":return Xu(t="".concat(e,"[")).call(t,this.locale.link,"](http://url.com) ");case"image":return this.handleUpload("image"),e;case"video":return this.handleUpload("video"),e;case"audio":return this.handleUpload("audio"),e;case"table":return this.subBubbleTableMenu.dom.style.left=this.subMenu.dom.style.left,this.subBubbleTableMenu.dom.style.top=this.subMenu.dom.style.top,void this.subBubbleTableMenu.show(function(t,n){var r,i,o,a=Gx(" Header |").call(" Header |",n),s=Gx(" ------ |").call(" ------ |",n),l="\n|".concat(Gx(" Sample |").call(" Sample |",n)),u=Xu(r=Xu(i=Xu(o="".concat(e,"\n\n|")).call(o,a,"\n|")).call(i,s)).call(r,Gx(l).call(l,t),"\n\n");c(u)});case"line-table":return Xu(n="".concat(e,"\n\n")).call(n,["| :line: {title: 折线图,} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n");case"bar-table":return Xu(r="".concat(e,"\n\n")).call(r,["| :bar: {title: 柱状图,} | a | b | c |","| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n");case"map-table":return Xu(i="".concat(e,"\n\n")).call(i,["| :map: {title: 地图, mapDataSource: https://geo.datav.aliyun.com/areas_v3/bound/100000_full.json,} | 数值 |","| :-: | :-: |","| 北京 | 100 |","| 上海 | 200 |","| 广东 | 300 |","| 四川 | 150 |","| 湖南 | 120 |"].join("\n"),"\n\n");case"radar-table":return Xu(o="".concat(e,"\n\n")).call(o,["| :radar: {title: 雷达图,} | 技能1 | 技能2 | 技能3 | 技能4 | 技能5 |","| :-: | :-: | :-: | :-: | :-: | :-: |","| 用户A | 90 | 85 | 75 | 80 | 88 |","| 用户B | 75 | 90 | 88 | 85 | 78 |","| 用户C | 85 | 78 | 90 | 88 | 85 |"].join("\n"),"\n\n");case"headlessTable":return this.subBubbleTableMenu.dom.style.left=this.subMenu.dom.style.left,this.subBubbleTableMenu.dom.style.top=this.subMenu.dom.style.top,void this.subBubbleTableMenu.show(function(t,n){var r,i,o,a=Xu(r=Xu(i="".concat(e,"\n\n||")).call(i,Gx(" ~Header ||").call(" ~Header ||",n))).call(r,Gx(o="\n||".concat(Gx(" SampleT ||").call(" SampleT ||",n))).call(o,t-1),"\n\n");c(a)});case"pdf":return this.handleUpload("pdf"),e;case"word":return this.handleUpload("word"),e;case"ruby":return/^\s*\{[\s\S]+\|[\s\S]+\}/.test(b)?b.replace(/^\s*\{\s*([\s\S]+?)\s*\|[\s\S]+\}\s*/gm,"$1"):Xu(a=" { ".concat(b," | ")).call(a,c_(s=this.editor.$cherry.options.callback.changeString2Pinyin(b)).call(s)," } ")}}}])}();function ZV(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(ZV=function(){return!!e})()}var eK=function(){function e(t){var n,r,i,o,a,s,l;return ua(this,e),a=this,l=[t],s=wu(s=e),(o=Ac(a,ZV()?pr(s,l||[],wu(a).constructor):s.apply(a,l))).setName("list","list"),o.subMenuConfig=[{iconName:"ol",name:"ol",onclick:Ju(n=o.bindSubClick).call(n,o,"1")},{iconName:"ul",name:"ul",onclick:Ju(r=o.bindSubClick).call(r,o,"2")},{iconName:"checklist",name:"checklist",onclick:Ju(i=o.bindSubClick).call(i,o,"3")}],o}return Pu(e,nV),mc(e,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"onClick",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=[null,"ol","ul","checklist"],o=NV(this.editor.editor,e,"line",!0),a=Yy(o.match(/^\n*/),1)[0],s=Yy(o.match(/\n*$/),1)[0],l=i[r]?i[r]:r;return l&&/^(ol|ul|checklist)$/.test(l)?Xu(t=Xu(n="".concat(a)).call(n,pT(o,l))).call(t,s):o}}])}();function tK(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(tK=function(){return!!e})()}var nK=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,tK()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("ol","ol"),n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){var t,n,r=NV(this.editor.editor,e,"line",!0)||"Item 1\n    Item 1.1\nItem 2",i=Yy(r.match(/^\n*/),1)[0],o=Yy(r.match(/\n*$/),1)[0];return Xu(t=Xu(n="".concat(i)).call(n,pT(r,"ol"))).call(t,o)}}])}();function rK(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(rK=function(){return!!e})()}var iK=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,rK()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("ul","ul"),n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){var t,n,r=NV(this.editor.editor,e,"line",!0)||"Item 1\n    Item 1.1\nItem 2",i=Yy(r.match(/^\n*/),1)[0],o=Yy(r.match(/\n*$/),1)[0];return Xu(t=Xu(n="".concat(i)).call(n,pT(r,"ul"))).call(t,o)}}])}();function oK(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(oK=function(){return!!e})()}var aK=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,oK()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("checklist","checklist"),n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){var t,n,r=NV(this.editor.editor,e,"line",!0)||"Item 1\n    Item 1.1\nItem 2",i=Yy(r.match(/^\n*/),1)[0],o=Yy(r.match(/\n*$/),1)[0];return Xu(t=Xu(n="".concat(i)).call(n,pT(r,"checklist"))).call(t,o)}}])}();function sK(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(sK=function(){return!!e})()}function lK(e,t){return[e,"```mermaid",t,"```"].join("\n")}var cK=["\tA[公司] --\x3e| 下 班 | B(菜市场)","\tB --\x3e C{看见<br>卖西瓜的}","\tC --\x3e|Yes| D[买一个包子]","\tC --\x3e|No| E[买一斤包子]"].join("\n"),uK=["\tA[Company] --\x3e| Finish work | B(Grocery Store)","\tB --\x3e C{See<br>Watermelon Seller}","\tC --\x3e|Yes| D[Buy a bun]","\tC --\x3e|No| E[Buy a kilogram of buns]"].join("\n"),dK={flow:["FlowChart",lK("左右结构","graph LR\n".concat(cK)),lK("上下结构","graph TD\n".concat(cK))].join("\n"),sequence:lK("SequenceDiagram",["sequenceDiagram","autonumber","A--\x3eA: 文本1","A->>B: 文本2","loop 循环1","loop 循环2","A->B: 文本3","end","loop 循环3","B --\x3e>A: 文本4","end","B --\x3e> B: 文本5","end"].join("\n")),state:lK("StateDiagram",["stateDiagram-v2","[*] --\x3e A","A --\x3e B","A --\x3e C","state A {","  \t[*] --\x3e D","  \tD --\x3e [*]","}","B --\x3e [*]","C --\x3e [*]"].join("\n")),class:lK("ClassDiagram",["classDiagram","Base <|-- One","Base <|-- Two","Base : +String name","Base: +getName()","Base: +setName(String name)","class One{","  \t+String newName","  \t+getNewName()","}","class Two{","  \t-int id","  \t-getId()","}"].join("\n")),pie:lK("PieChart",["pie","title 饼图",'"A" : 100','"B" : 80','"C" : 40','"D" : 30'].join("\n")),gantt:lK("GanttChart",["gantt","\ttitle 敏捷研发流程","\tsection 迭代前","\t\t交互设计     :a1, 2020-03-01, 4d","\t\tUI设计        :after a1, 5d","\t\t需求评审     : 1d","\tsection 迭代中","\t\t详细设计      :a2, 2020-03-11, 2d","\t\t开发          :2020-03-15, 7d","\t\t测试          :2020-03-22, 5d","\tsection 迭代后","\t\t发布: 1d","\t\t验收: 2d","\t\t回顾: 1d"].join("\n"))},hK={flow:["FlowChart",lK("Left-right structure","graph LR\n".concat(uK)),lK("Top-bottom structure","graph TD\n".concat(uK))].join("\n"),sequence:lK("SequenceDiagram",["sequenceDiagram","autonumber","A--\x3eA: text1","A->>B: text2","loop loop1","loop loop2","A->B: text3","end","loop loop3","B --\x3e>A: text4","end","B --\x3e> B: text5","end"].join("\n")),state:lK("StateDiagram",["stateDiagram-v2","[*] --\x3e A","A --\x3e B","A --\x3e C","state A {","  \t[*] --\x3e D","  \tD --\x3e [*]","}","B --\x3e [*]","C --\x3e [*]"].join("\n")),class:lK("ClassDiagram",["classDiagram","Base <|-- One","Base <|-- Two","Base : +String name","Base: +getName()","Base: +setName(String name)","class One{","  \t+String newName","  \t+getNewName()","}","class Two{","  \t-int id","  \t-getId()","}"].join("\n")),pie:lK("PieChart",["pie","title pie",'"A" : 100','"B" : 80','"C" : 40','"D" : 30'].join("\n")),gantt:lK("GanttChart",["gantt","\ttitle work","\tsection session 1","\t\twork1     :a1, 2020-03-01, 4d","\t\twork2        :after a1, 5d","\t\twork3     : 1d","\tsection session 2","\t\twork4      :a2, 2020-03-11, 2d","\t\twork5          :2020-03-15, 7d","\t\twork6          :2020-03-22, 5d","\tsection session 3","\t\twork7: 1d","\t\twork8: 2d","\t\twork9: 1d"].join("\n"))},fK=function(){function e(t){var n,r,i,o,a,s,l,c,u,d;return ua(this,e),c=this,d=[t],u=wu(u=e),(l=Ac(c,sK()?pr(u,d||[],wu(c).constructor):u.apply(c,d))).setName("graph","insertChart"),l.noIcon=!0,l.localeName=t.options.locale,l.subMenuConfig=[{iconName:"insertFlow",name:"insertFlow",onclick:Ju(n=l.bindSubClick).call(n,l,"1")},{iconName:"insertSeq",name:"insertSeq",onclick:Ju(r=l.bindSubClick).call(r,l,"2")},{iconName:"insertState",name:"insertState",onclick:Ju(i=l.bindSubClick).call(i,l,"3")},{iconName:"insertClass",name:"insertClass",onclick:Ju(o=l.bindSubClick).call(o,l,"4")},{iconName:"insertPie",name:"insertPie",onclick:Ju(a=l.bindSubClick).call(a,l,"5")},{iconName:"insertGantt",name:"insertGantt",onclick:Ju(s=l.bindSubClick).call(s,l,"6")}],l}return Pu(e,nV),mc(e,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"onClick",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[null,"flow","sequence","state","class","pie","gantt"],i=r[n]?r[n]:n;if(i&&/^(flow|sequence|state|class|pie|gantt)$/.test(i))return this.registerAfterClickCb(function(){t.setLessSelection("\n\n\n\n\n","\n\n")}),"\n\n".concat(this.$getSampleCode(i),"\n")}},{key:"$getSampleCode",value:function(e){var t,n;return"zh-CN"!==this.localeName&&"zh_CN"!==this.localeName?null===(n=hK[e])||void 0===n?void 0:n.replace(/\t/g,"    "):null===(t=dK[e])||void 0===t?void 0:t.replace(/\t/g,"    ")}}])}();function pK(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(pK=function(){return!!e})()}var gK=function(){function e(t){var n,r,i,o,a,s,l,c,u,d,h,f;return ua(this,e),d=this,f=[t],h=wu(h=e),(u=Ac(d,pK()?pr(h,f||[],wu(d).constructor):h.apply(d,f))).setName("size","size"),u.subMenuConfig=[{name:u.$cherry.locale.small,noIcon:!0,onclick:Ju(n=u.bindSubClick).call(n,u,"12")},{name:u.$cherry.locale.medium,noIcon:!0,onclick:Ju(r=u.bindSubClick).call(r,u,"17")},{name:u.$cherry.locale.large,noIcon:!0,onclick:Ju(i=u.bindSubClick).call(i,u,"24")},{name:u.$cherry.locale.superLarge,noIcon:!0,onclick:Ju(o=u.bindSubClick).call(o,u,"32")}],u.shortKeyMap={"Alt-Digit1":"12","Alt-Digit2":"17","Alt-Digit3":"24","Alt-Digit4":"32"},u.shortcutKeyMap=Fu(Fu(Fu(Fu({},Xu(a="".concat(fV,"-")).call(a,SV(1)),{hookName:u.name,aliasName:"".concat(u.name,"-small")}),Xu(s="".concat(fV,"-")).call(s,SV(2)),{hookName:u.name,aliasName:"".concat(u.name,"-medium")}),Xu(l="".concat(fV,"-")).call(l,SV(3)),{hookName:u.name,aliasName:"".concat(u.name,"-large")}),Xu(c="".concat(fV,"-")).call(c,SV(4)),{hookName:u.name,aliasName:"".concat(u.name,"-superLarge")}),u}return Pu(e,nV),mc(e,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"_getFlagStr",value:function(e){for(var t=e.replace(/[^0-9]+([0-9])/g,"$1"),n="#",r=1;r<t;r++)n+="#";return n}},{key:"$testIsSize",value:function(e){return/^\s*(![0-9]+) [\s\S]+!/.test(e)}},{key:"$getSizeByShortKey",value:function(e){return/^[0-9]+$/.test(e)?e:this.shortKeyMap[e]||"17"}},{key:"onClick",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"17",r=this.$getSizeByShortKey(n),i=NV(this.editor.editor,e)||"字号";if(this.isSelections||this.$testIsSize(i)||this.getMoreSelection("!32 ","!",function(){var e=t.editor.editor.getSelection();return!!t.$testIsSize(e)&&(i=e,!0)}),this.$testIsSize(i)){var o=!0,a=i.replace(/(^)(\s*)(![0-9]+)([^\n]+)(!)(\s*)($)/gm,function(e,t,n,i,a,s,l,c){var u,d,h,f,p,g;return o=!!o&&i==="!".concat(r),Xu(u=Xu(d=Xu(h=Xu(f=Xu(p=Xu(g="".concat(t)).call(g,n,"!")).call(p,r)).call(f,a)).call(h,s)).call(d,l)).call(u,c)});return o?i.replace(/(^)(\s*)(![0-9]+\s*)([^\n]+)(!)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb(function(){t.setLessSelection("!".concat(r," "),"!")}),a)}return this.registerAfterClickCb(function(){t.setLessSelection("!".concat(r," "),"!")}),i.replace(/(^)([^\n]+)($)/gm,"$1!".concat(r," $2!$3"))}}])}();function mK(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(mK=function(){return!!e})()}var vK=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,mK()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("h1","h1"),n}return Pu(e,nV),mc(e,[{key:"$testIsHead",value:function(e){return/^\s*(#+)\s*.+/.test(e)}},{key:"onClick",value:function(e){var t=this,n=NV(this.editor.editor,e,"line",!0)||this.locale.h1,r="#";if(this.$testIsHead(n)){var i=!0,o=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,function(e,t,n,o,a){var s,l,c;return i=!!i&&1===n.length,Xu(s=Xu(l=Xu(c="".concat(t)).call(c,r)).call(l,o)).call(s,a)});return i?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb(function(){t.setLessSelection("".concat(r," "),"")}),o)}return this.registerAfterClickCb(function(){t.setLessSelection("".concat(r," "),"")}),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(r," $3$4"))}}])}();function AK(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(AK=function(){return!!e})()}var bK=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,AK()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("h2","h2"),n}return Pu(e,nV),mc(e,[{key:"$testIsHead",value:function(e){return/^\s*(#+)\s*.+/.test(e)}},{key:"onClick",value:function(e){var t=this,n=NV(this.editor.editor,e,"line",!0)||this.locale.h2,r="##";if(this.$testIsHead(n)){var i=!0,o=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,function(e,t,n,o,a){var s,l,c;return i=!!i&&2===n.length,Xu(s=Xu(l=Xu(c="".concat(t)).call(c,r)).call(l,o)).call(s,a)});return i?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb(function(){t.setLessSelection("".concat(r," "),"")}),o)}return this.registerAfterClickCb(function(){t.setLessSelection("".concat(r," "),"")}),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(r," $3$4"))}}])}();function yK(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(yK=function(){return!!e})()}var wK,_K,xK,EK,SK,CK,TK,kK,OK,MK=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,yK()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("h3","h3"),n}return Pu(e,nV),mc(e,[{key:"$testIsHead",value:function(e){return/^\s*(#+)\s*.+/.test(e)}},{key:"onClick",value:function(e){var t=this,n=NV(this.editor.editor,e,"line",!0)||this.locale.h3,r="###";if(this.$testIsHead(n)){var i=!0,o=n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,function(e,t,n,o,a){var s,l,c;return i=!!i&&3===n.length,Xu(s=Xu(l=Xu(c="".concat(t)).call(c,r)).call(l,o)).call(s,a)});return i?n.replace(/(^\s*)(#+)(\s*)(.+$)/gm,"$1$4"):(this.registerAfterClickCb(function(){t.setLessSelection("".concat(r," "),"")}),o)}return this.registerAfterClickCb(function(){t.setLessSelection("".concat(r," "),"")}),n.replace(/(^)([\s]*)([^\n]+)($)/gm,"$1".concat(r," $3$4"))}}])}(),IK={};function DK(){return xK?_K:(xK=1,function(){if(wK)return IK;wK=1;var e=sn(),t=hi().every;e({target:"Array",proto:!0,forced:!Hh()("every")},{every:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}})}(),_K=eo()("Array","every"))}function NK(){if(SK)return EK;SK=1;var e=De(),t=DK(),n=Array.prototype;return EK=function(r){var i=r.every;return r===n||e(n,r)&&i===n.every?t:i}}function RK(){return TK?CK:(TK=1,CK=NK())}var LK=i(OK?kK:(OK=1,kK=RK()));function BK(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(BK=function(){return!!e})()}var PK=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,BK()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("quote","blockquote"),n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){var t,n=this,r=NV(this.editor.editor,e,"line",!0)||this.locale.quote,i=LK(t=r.split("\n")).call(t,function(e){return/^\s*>[^\n]+$/.exec(e)});return i?r.replace(/(^\s*)>\s*([^\n]+)($)/gm,"$1$2$3").replace(/\n+$/,"\n\n"):(this.registerAfterClickCb(function(){n.setLessSelection("> ","")}),r.replace(/(^)([^\n]+)($)/gm,"$1> $2$3").replace(/\n+$/,"\n\n"))}}])}();function FK(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(FK=function(){return!!e})()}var $K=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,FK()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("quickTable","table"),n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){return"".concat(e,"| LeftAlignedCol | CenterAlignedCol | RightAlignedCol |\n")+"| :--- | :---: | ---: |\n| sampleText | sampleText | sampleText |\n| **left**Text | centered Text | *right*Text |\n"}}])}();function jK(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(jK=function(){return!!e})()}var HK=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),Fu(n=Ac(r,jK()?pr(i,o||[],wu(r).constructor):i.apply(r,o)),"$previewerHidden",!1),n.setName("previewClose","previewClose"),n.instanceId=t.instanceId,n.updateMarkdown=!1,n.attachEventListeners(),n}return Pu(e,nV),mc(e,[{key:"attachEventListeners",value:function(){var e=this;this.$cherry.$event.on("previewerClose",function(){e.isHidden=!0}),this.$cherry.$event.on("previewerOpen",function(){e.isHidden=!1})}},{key:"isHidden",get:function(){return this.$previewerHidden},set:function(e){if(e!==this.$previewerHidden){var t=this.dom.querySelector("i");e?(t.classList.toggle("ch-icon-previewClose",!1),t.classList.toggle("ch-icon-preview",!0),t.title=this.locale.togglePreview):(t.classList.toggle("ch-icon-previewClose",!0),t.classList.toggle("ch-icon-preview",!1),t.title=this.locale.previewClose),this.$previewerHidden=e,this.$cherry.$event.emit("togglePreviewHidden",e)}}},{key:"onClick",value:function(){this.editor.previewer.isPreviewerNeedFloat()?this.editor.previewer.isPreviewerFloat()?(this.editor.previewer.recoverFloatPreviewer(!0),this.isHidden=!1):(this.editor.previewer.floatPreviewer(),this.isHidden=!0):this.editor.previewer.isPreviewerHidden()?(this.editor.previewer.recoverPreviewer(!0),this.isHidden=!1):(this.editor.previewer.editOnly(!0),this.isHidden=!0)}}])}();function UK(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(UK=function(){return!!e})()}var QK=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,UK()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).updateMarkdown=!1,n.setName("fullScreen","fullscreen"),n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(){for(var e=this.editor.options.editorDom.parentElement.classList,t=document.querySelector(".cherry-toolbar-fullscreen");t&&t.firstChild;)t.removeChild(t.firstChild);if(e.contains("fullscreen")){var n=OC("i","ch-icon ch-icon-fullscreen");t&&t.appendChild(n),e.remove("fullscreen")}else{var r=OC("i","ch-icon ch-icon-minscreen");t&&t.appendChild(r),e.add("fullscreen")}this.editor.editor.refresh()}}])}();function zK(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(zK=function(){return!!e})()}var WK=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,zK()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("undo","undo"),n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(){this.editor.editor.undo()}}])}();function GK(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(GK=function(){return!!e})()}var VK=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,GK()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("redo","redo"),n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(){this.editor.editor.redo()}}])}();function KK(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(KK=function(){return!!e})()}var YK=function(){function e(t){var n,r,i,o,a;return ua(this,e),i=this,a=[t],o=wu(o=e),(r=Ac(i,KK()?pr(o,a||[],wu(i).constructor):o.apply(i,a))).setName("codeBlock","codeBlock"),r.shortcutKeyMap=Fu({},Xu(n="".concat(CV(),"-")).call(n,SV("k")),{hookName:"code",aliasName:r.name}),r}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){var t=this,n=e||"code...";return this.registerAfterClickCb(function(){t.setLessSelection("\n``` \n","\n```\n")}),"\n``` \n".concat(n,"\n```\n")}}])}();function qK(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(qK=function(){return!!e})()}var XK=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,qK()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("inlineCode","code"),n.shortcutKeyMap=Fu({},"".concat(pV,"-Backquote"),{hookName:n.name,aliasName:n.name}),n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){var t,n=this;return e?uh(e).call(e,"\n")?_h(t=e.split("\n")).call(t,function(e){return"`".concat(e,"`")}).join("\n"):(this.registerAfterClickCb(function(){return n.setLessSelection("`","`")}),"`".concat(e,"`")):(this.registerAfterClickCb(function(){return n.setLessSelection("`","`")}),"``")}}])}();function JK(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(JK=function(){return!!e})()}var ZK=function(){function e(t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v;return ua(this,e),g=this,v=[t],m=wu(m=e),(p=Ac(g,JK()?pr(m,v||[],wu(g).constructor):m.apply(g,v))).setName("codeTheme"),p.updateMarkdown=!1,p.noIcon=!0,p.subMenuConfig=[{noIcon:!1,name:"autoWrap",iconName:"br",onclick:Ju(n=p.bindSubClick).call(n,p,"wrap")},{noIcon:!0,name:"|",onclick:function(){}},{noIcon:!0,name:"light",onclick:Ju(r=p.bindSubClick).call(r,p,"default")},{noIcon:!0,name:"dark",onclick:Ju(i=p.bindSubClick).call(i,p,"dark")},{noIcon:!0,name:"one light",onclick:Ju(o=p.bindSubClick).call(o,p,"one-light")},{noIcon:!0,name:"one dark",onclick:Ju(a=p.bindSubClick).call(a,p,"one-dark")},{noIcon:!0,name:"vs light",onclick:Ju(s=p.bindSubClick).call(s,p,"vs-light")},{noIcon:!0,name:"vs dark",onclick:Ju(l=p.bindSubClick).call(l,p,"vs-dark")},{noIcon:!0,name:"solarized light",onclick:Ju(c=p.bindSubClick).call(c,p,"solarized-light")},{noIcon:!0,name:"tomorrow dark",onclick:Ju(u=p.bindSubClick).call(u,p,"tomorrow-night")},{noIcon:!0,name:"okaidia",onclick:Ju(d=p.bindSubClick).call(d,p,"okaidia")},{noIcon:!0,name:"twilight",onclick:Ju(h=p.bindSubClick).call(h,p,"twilight")},{noIcon:!0,name:"coy",onclick:Ju(f=p.bindSubClick).call(f,p,"coy")}],p}return Pu(e,nV),mc(e,[{key:"getActiveSubMenuIndex",value:function(e){var t=this.$cherry.getCodeWrap(),n=Ck(this.$cherry.nameSpace),r=[];"wrap"===t&&r.push(0);var i={default:1,dark:2,"one-light":3,"one-dark":4,"vs-light":5,"vs-dark":6,"solarized-light":7,"tomorrow-night":8,okaidia:9,twilight:10,coy:11}[n];return void 0!==i&&r.push(i),r}},{key:"onClick",value:function(){var e=arguments.length>1?arguments[1]:void 0;if("wrap"===e){var t="wrap"===this.$cherry.getCodeWrap()?"nowrap":"wrap";return this.$cherry.wrapperDom.dataset.codeWrap=t,void this.$cherry.setCodeWrap(t)}this.$cherry.$event.emit("changeCodeBlockTheme",e),Tk(this.$cherry,e)}}])}();function eY(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(eY=function(){return!!e})()}var tY=function(){function e(t){var n,r,i,o,a,s,l,c,u;return ua(this,e),s=this,c=[t],l=wu(l=e),(a=Ac(s,eY()?pr(l,c||[],wu(s).constructor):l.apply(s,c))).setName("export"),a.noIcon=!0,a.updateMarkdown=!1,a.subMenuConfig=[],"undefined"!=typeof window&&"function"==typeof window.print&&a.subMenuConfig.push({noIcon:!0,name:"exportToPdf",onclick:Ju(u=a.bindSubClick).call(u,a,"pdf")}),a.subMenuConfig.push({noIcon:!0,name:"exportScreenshot",onclick:Ju(n=a.bindSubClick).call(n,a,"screenShot")},{noIcon:!0,name:"exportMarkdownFile",onclick:Ju(r=a.bindSubClick).call(r,a,"markdown")},{noIcon:!0,name:"exportHTMLFile",onclick:Ju(i=a.bindSubClick).call(i,a,"html")},{noIcon:!0,name:"exportWordFile",onclick:Ju(o=a.bindSubClick).call(o,a,"word")}),a}return Pu(e,nV),mc(e,[{key:"onClick",value:function(){var e=arguments.length>1?arguments[1]:void 0;document.querySelector(".cherry-dropdown[name=export]")&&(document.querySelector(".cherry-dropdown[name=export]").style.display="none");var t=this.$cherry.previewer,n="";if(n=t.isPreviewerHidden()?t.options.previewerCache.html:t.getDomContainer().innerHTML,n=t.lazyLoadImg.changeDataSrc2Src(n),t.refresh(n),t.export(e),"undefined"!=typeof window&&"function"==typeof window.dispatchEvent){var r=new CustomEvent("cherry:export:done",{detail:{type:e}});window.dispatchEvent(r)}}}])}(),nY=["hookName","aliasName"],rY=function(){return mc(function e(t){var n=this;ua(this,e),this.$cherry=t,this.shortcutUlClassName="cherry-shortcut-key-config-panel-ul",this.shortcutUlId=this.shortcutUlClassName,this.shortcutConfigPanelKbdClassName="shortcut-key-config-panel-kbd",this.shortcutKeyboardKeyClassName="keyboard-key",this.activeTab="custom",this.editingItem=null,this.keyStack=[],this.originalKeyStack=null,this.handleTabClick=function(e){if(e.target instanceof HTMLElement){var t=e.target.closest(".shortcut-tab");if(t instanceof HTMLElement){var r=t.dataset.tab;r&&n.switchTab(r)}}},this.handleEditBtnClick=function(e,t){e.preventDefault(),e.stopPropagation(),n.editingItem&&n.editingItem!==t&&n.cancelEdit(n.editingItem),n.startEdit(t)},this.handleDbClick=function(e){if(e.target instanceof HTMLElement&&wV(n.$cherry.nameSpace)){var t=e.target.closest(".shortcut-key-item");t instanceof HTMLElement&&"static"!==n.activeTab&&(n.editingItem&&n.editingItem!==t&&n.cancelEdit(n.editingItem),n.startEdit(t))}},this.handleSaveBtnClick=function(e,t){e.preventDefault(),e.stopPropagation(),n.saveEdit(t)},this.handleCancelBtnClick=function(e,t){e.preventDefault(),e.stopPropagation(),n.cancelEdit(t)},this.handleKeyDown=function(e){if(n.editingItem){if(e.preventDefault(),e.stopPropagation(),e.key===mV||"Backspace"===e.key){if(e.key===mV)return void n.saveEdit(n.editingItem);if(1===n.keyStack.length)return void n.cancelEdit(n.editingItem);n.keyStack.pop(),n.updateEditingKeys()}var t=bV(e);!function(e){if(!QC(e)||2!==e.length)return!1;var t=uh(e).call(e,hV),n=uh(e).call(e,fV);return(!t||!n||2!==e.length)&&(t||n)&&!uh(e).call(e,gV)&&!uh(e).call(e,pV)}(t)&&QC(t)&&t.length>=2&&(n.keyStack=t,n.updateEditingKeys())}},this.clickSettingsDisableBtn=function(){n.editingItem&&n.cancelEdit(n.editingItem);var e=wV(n.$cherry.nameSpace);e?(yV(n.$cherry.nameSpace,"disable"),n.dom.classList.add("disable"),n.$cherry.editor.disableShortcut(!0),n.updateTipText()):(yV(n.$cherry.nameSpace,"enable"),n.dom.classList.remove("disable"),n.$cherry.editor.disableShortcut(!1),n.updateTipText("static"===n.activeTab?"static":"default"));var t,r=n.dom.querySelector(".j-shortcut-settings-disable-btn");r instanceof HTMLElement&&(r.innerHTML=Xu(t='<i class="ch-icon '.concat(e?"ch-icon-command":"ch-icon-cherry-table-delete",'"></i> ')).call(t,e?n.$cherry.locale.enableShortcut:n.$cherry.locale.disableShortcut))},this.clickSettingsRecoverBtn=function(){var e;n.editingItem&&n.cancelEdit(n.editingItem),yV(n.$cherry.nameSpace,"enable"),n.dom.classList.remove("disable"),n.$cherry.editor.disableShortcut(!1),n.$cherry.toolbar.shortcutKeyMap={},n.$cherry.toolbar.collectShortcutKey(!1),_V(n.$cherry.nameSpace,n.$cherry.toolbar.shortcutKeyMap),n.dom.innerHTML=n.generateShortcutKeyConfigPanelHtmlStr(),n.show(),n.updateTipText("static"===n.activeTab?"static":"default"),e=n.$cherry.nameSpace,window.localStorage.removeItem("".concat(e,"-cherry-shortcut-keymap"))},this.init()},[{key:"startEdit",value:function(e){var t=this;this.editingItem=e,e.classList.add("editing");var n,r,i=e.querySelector(".".concat(this.shortcutConfigPanelKbdClassName));i&&(this.originalKeyStack=uo(n=_h(r=u_(i.children)).call(r,function(e){return e instanceof HTMLElement&&e.dataset.code||""})).call(n,Boolean),this.keyStack=DI(this.originalKeyStack)),this.updateTipText("editing"),document.addEventListener("keydown",this.handleKeyDown),this.handleClickOutside=function(n){n.target instanceof HTMLElement&&(n.target.closest(".shortcut-key-item.editing")||t.cancelEdit(e))},document.addEventListener("click",this.handleClickOutside)}},{key:"processKeyToSpan",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e===this.$cherry.locale.leftMouseButton)return e;var n=function(e,t){if(e in vV){var n=vV[e];if("function"==typeof n)return n(t)}var r=e.replace(/Key|Digit/g,"");return{text:r,tip:r}}(e,uV),r=null!=n?n:{text:e,tip:e};return this.generateKeyboardKeySpan({title:r.tip,code:t?e:void 0,text:r.text})}},{key:"processKeysToHtml",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return _h(e).call(e,function(e){return t.processKeyToSpan(e,n)}).join('<span class="shortcut-split">+</span>')}},{key:"updateKeyboardContainer",value:function(e,t){e instanceof HTMLElement&&(e.innerHTML=this.processKeysToHtml(t))}},{key:"updateTipText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t=this.dom.querySelector(".shortcut-panel-tips");if(t instanceof HTMLElement)if(wV(this.$cherry.nameSpace))switch(e){case"editing":t.innerHTML=this.$cherry.locale.editingShortcutKeyConfigTip;break;case"static":t.innerHTML=this.$cherry.locale.staticShortcutTip;break;default:t.innerHTML=this.$cherry.locale.editShortcutKeyConfigTip}else t.innerHTML=this.$cherry.locale.disabledShortcutTip}},{key:"cancelEdit",value:function(e){if(e.classList.remove("editing"),this.editingItem===e){var t=e.querySelector(".".concat(this.shortcutConfigPanelKbdClassName));t instanceof HTMLElement&&this.originalKeyStack&&this.updateKeyboardContainer(t,this.originalKeyStack),this.editingItem=null,this.keyStack=[],this.originalKeyStack=null,document.removeEventListener("keydown",this.handleKeyDown),this.handleClickOutside&&(document.removeEventListener("click",this.handleClickOutside),this.handleClickOutside=null),this.updateTipText("static"===this.activeTab?"static":"default")}}},{key:"saveEdit",value:function(e){if(this.editingItem&&this.keyStack.length){var t=e.querySelector(".".concat(this.shortcutConfigPanelKbdClassName));if(t instanceof HTMLElement){var n,r,i=e.dataset.hookname;void 0!==i&&i&&(null===(n=this.$cherry)||void 0===n||null===(r=n.toolbar)||void 0===r||r.updateShortcutKeyMap(EV(this.originalKeyStack||[]),EV(this.keyStack)),this.updateKeyboardContainer(t,this.keyStack)),this.editingItem=null,this.keyStack=[],this.originalKeyStack=null,document.removeEventListener("keydown",this.handleKeyDown),this.handleClickOutside&&(document.removeEventListener("click",this.handleClickOutside),this.handleClickOutside=null),e.classList.remove("editing"),this.updateTipText("static"===this.activeTab?"static":"default")}}}},{key:"updateEditingKeys",value:function(){if(this.editingItem){var e=this.editingItem.querySelector(".".concat(this.shortcutConfigPanelKbdClassName));e instanceof HTMLElement&&this.updateKeyboardContainer(e,this.keyStack)}}},{key:"switchTab",value:function(e){this.activeTab=e;var t=this.dom.querySelectorAll(".shortcut-tab"),n=this.dom.querySelectorAll(".shortcut-panel");gf(t).call(t,function(t){t instanceof HTMLElement&&t.dataset.tab===e?t.classList.add("active"):t instanceof HTMLElement&&t.classList.remove("active")}),gf(n).call(n,function(t){t instanceof HTMLElement&&t.dataset.panel===e?t.classList.add("active"):t instanceof HTMLElement&&t.classList.remove("active")}),"static"===e?this.updateTipText("static"):this.editingItem?this.updateTipText("editing"):this.updateTipText("default")}},{key:"init",value:function(){var e,t;null!==(e=this.$cherry)&&void 0!==e&&null!==(t=e.toolbar)&&void 0!==t&&t.shortcutKeyMap&&(this.dom=document.createElement("div"),this.dom.className=["cherry-dropdown","cherry-shortcut-key-config-panel","cherry-shortcut-key-config-panel-wrapper"].join(" "),this.dom.innerHTML=this.generateShortcutKeyConfigPanelHtmlStr(),this.dom.style.display="none",wV(this.$cherry.nameSpace)||this.dom.classList.add("disable"),this.$cherry.wrapperDom.append(this.dom))}},{key:"generateKeyboardKeySpan",value:function(e){var t=e.title,n=e.code,r=e.text,i={title:t};n&&(i["data-code"]=n);var o=OC("span",this.shortcutKeyboardKeyClassName,i);return o.textContent=r,o.outerHTML}},{key:"getAliasLocale",value:function(e){var t=this,n=e.split("-");return _h(n).call(n,function(e){return t.$cherry.locale[e]||e}).join("-")}},{key:"generateShortcutKeyConfigPanelHtmlStr",value:function(){var e,t,n,r,i,o,a,s,l,c,u,d,h=this,f=_h(e=uo(t=WW(null!==(n=this.$cherry.toolbar.shortcutKeyMap)&&void 0!==n?n:{})).call(t,function(e){var t=Yy(e,2);t[0];var n=t[1];return"object"===ql(n)&&n})).call(e,function(e){var t,n,r,i,o,a,s,l,c=Yy(e,2),u=c[0],d=c[1],f=d.hookName,p=d.aliasName,g=GA(d,nY),m="";return g&&"object"===ql(g)&&(m=_h(l=WW(g)).call(l,function(e){var t,n=Yy(e,2),r=n[0],i=n[1];return Xu(t="data-".concat(r,"=")).call(t,i)}).join(" ")),Xu(t=Xu(n=Xu(r=Xu(i=Xu(o=Xu(a=Xu(s='<li class="cherry-dropdown-item shortcut-key-item" data-hookname='.concat(f," ")).call(s,m,'>\n          <div class="shortcut-key-config-panel-name">')).call(a,h.getAliasLocale(p),'</div>\n          <div class="shortcut-key-right">\n            <div class="edit-btn" title="')).call(o,h.$cherry.locale.edit,'">\n              <i class="ch-icon ch-icon-pen-fill"></i>\n            </div>\n            <div class="edit-actions">\n              <div class="action-btn save" title="')).call(i,h.$cherry.locale.save,'">\n                <i class="ch-icon ch-icon-ok"></i>\n              </div>\n              <div class="action-btn cancel" title="')).call(r,h.$cherry.locale.cancel,'">\n                <i class="ch-icon ch-icon-close"></i>\n              </div>\n            </div>\n            <div class="')).call(n,h.shortcutConfigPanelKbdClassName,'">\n              ')).call(t,h.processKeysToHtml(u.split("-")),"\n            </div>\n          </div>\n        </li>")}).join("");return Xu(r=Xu(i=Xu(o=Xu(a=Xu(s=Xu(l=Xu(c=Xu(u=Xu(d='\n      <div class="cherry-shortcut-key-config-panel-inner">\n        <div class="shortcut-panel-settings">\n          <btn class="shortcut-settings-btn j-shortcut-settings-disable-btn"><i class="ch-icon '.concat(wV(this.$cherry.nameSpace)?"ch-icon-cherry-table-delete":"ch-icon-command",'"></i> ')).call(d,wV(this.$cherry.nameSpace)?this.$cherry.locale.disableShortcut:this.$cherry.locale.enableShortcut,'</btn>\n          <btn class="shortcut-settings-btn j-shortcut-settings-recover-btn"><i class="ch-icon ch-icon-undo"></i> ')).call(u,this.$cherry.locale.recoverShortcut,'</btn>\n        </div>\n        <div class="shortcut-tabs">\n          <div class="shortcut-tab active" data-tab="custom">')).call(c,this.$cherry.locale.customShortcut,'</div>\n          <div class="shortcut-tab" data-tab="static">')).call(l,this.$cherry.locale.staticShortcut,'</div>\n        </div>\n        <div class="shortcut-panels">\n          <div class="shortcut-panel active" data-panel="custom">\n            <ul class="')).call(s,this.shortcutUlClassName,'" id="')).call(a,this.shortcutUlId,'">')).call(o,f,'</ul>\n          </div>\n          <div class="shortcut-panel" data-panel="static">\n            ')).call(i,this.$getStaticShortcut(),'\n          </div>\n        </div>\n        <div class="shortcut-panel-tips">')).call(r,this.$cherry.locale.editShortcutKeyConfigTip,"</div>\n      </div>")}},{key:"$getStaticShortcut",value:function(){if("vim"===this.$cherry.options.editor.keyMap)return"";for(var e=[{name:this.$cherry.locale.shortcutStatic1,key:"Control+["},{name:this.$cherry.locale.shortcutStatic2,key:"Control+]"},{name:this.$cherry.locale.shortcutStatic3,key:"Control+Shift+D"},{name:this.$cherry.locale.shortcutStatic4,key:"Control+Enter"},{name:this.$cherry.locale.shortcutStatic5,key:"Control+Shift+Enter"},{name:this.$cherry.locale.shortcutStatic6,key:"Control+Shift+↑"},{name:this.$cherry.locale.shortcutStatic7,key:"Control+Shift+↓"},{name:this.$cherry.locale.shortcutStatic8,key:"Control+Shift+K"},{name:this.$cherry.locale.shortcutStatic9,key:"Control+Shift+←"},{name:this.$cherry.locale.shortcutStatic10,key:"Control+Shift+→"},{name:this.$cherry.locale.shortcutStatic11,key:"Control+Backspace"},{name:this.$cherry.locale.shortcutStatic12,key:"Control+Shift+M"},{name:this.$cherry.locale.shortcutStatic13,key:"Control+".concat(this.$cherry.locale.leftMouseButton)},{name:this.$cherry.locale.shortcutStatic14,key:"Control+Shift+L"},{name:this.$cherry.locale.shortcutStatic16,key:"Alt+F3"},{name:this.$cherry.locale.shortcutStatic17,key:"Control+Z"},{name:this.$cherry.locale.shortcutStatic18,key:"Control+Y"}],t=[{name:this.$cherry.locale.shortcutStatic1,key:"Meta+["},{name:this.$cherry.locale.shortcutStatic2,key:"Meta+]"},{name:this.$cherry.locale.shortcutStatic3,key:"Meta+Shift+D"},{name:this.$cherry.locale.shortcutStatic4,key:"Meta+Enter"},{name:this.$cherry.locale.shortcutStatic5,key:"Meta+Shift+Enter"},{name:this.$cherry.locale.shortcutStatic6,key:"Control+Meta+↑"},{name:this.$cherry.locale.shortcutStatic7,key:"Control+Meta+↓"},{name:this.$cherry.locale.shortcutStatic8,key:"Control+Shift+K"},{name:this.$cherry.locale.shortcutStatic9,key:"Control+Shift+←"},{name:this.$cherry.locale.shortcutStatic10,key:"Control+Shift+→"},{name:this.$cherry.locale.shortcutStatic11,key:"Alt+Backspace"},{name:this.$cherry.locale.shortcutStatic12,key:"Meta+Shift+M"},{name:this.$cherry.locale.shortcutStatic13,key:"Meta+".concat(this.$cherry.locale.leftMouseButton)},{name:this.$cherry.locale.shortcutStatic14,key:"Meta+Shift+L"},{name:this.$cherry.locale.shortcutStatic16,key:"Alt+F3"},{name:this.$cherry.locale.shortcutStatic17,key:"Meta+Z"},{name:this.$cherry.locale.shortcutStatic18,key:"Meta+Y"}],n=uV?t:e,r=[],i=0;i<n.length;i++){var o,a,s=n[i];r.push(Xu(o=Xu(a='\n        <li class="cherry-dropdown-item shortcut-key-item">\n          <div class="shortcut-key-config-panel-name">'.concat(s.name,'</div>\n          <div class="shortcut-key-right-static">\n            <div class="')).call(a,this.shortcutConfigPanelKbdClassName,'">\n              ')).call(o,this.processKeysToHtml(s.key.split("+"),!1),"\n            </div>\n          </div>\n        </li>\n      "))}return'<ul class="cherry-shortcut-key-config-panel-ul">'.concat(r.join(""),"</ul>")}},{key:"show",value:function(){var e=this;this.dom.style.removeProperty("display");var t=this.dom.querySelector("#".concat(this.shortcutUlId));if(t instanceof HTMLUListElement){t.addEventListener("dblclick",this.handleDbClick);var n=function(t){if(t.target instanceof HTMLElement){var n=t.target.closest(".edit-btn"),r=t.target.closest(".action-btn.save"),i=t.target.closest(".action-btn.cancel"),o=t.target.closest(".shortcut-key-item");o instanceof HTMLElement&&(n?e.handleEditBtnClick(t,o):r?e.handleSaveBtnClick(t,o):i&&e.handleCancelBtnClick(t,o))}};t.addEventListener("click",n),this.handleClick=n}var r=this.dom.querySelector(".j-shortcut-settings-disable-btn");r instanceof HTMLElement&&r.addEventListener("click",this.clickSettingsDisableBtn);var i=this.dom.querySelector(".j-shortcut-settings-recover-btn");i instanceof HTMLElement&&i.addEventListener("click",this.clickSettingsRecoverBtn);var o=this.dom.querySelector(".shortcut-tabs");o instanceof HTMLElement&&o.addEventListener("click",this.handleTabClick),this.switchTab(this.activeTab)}},{key:"hide",value:function(){this.editingItem&&this.cancelEdit(this.editingItem),this.dom.style.display="none";var e=this.dom.querySelector("#".concat(this.shortcutUlId));e instanceof HTMLUListElement&&this.handleClick&&(e.removeEventListener("dblclick",this.handleDbClick),e.removeEventListener("click",this.handleClick));var t=this.dom.querySelector(".j-shortcut-settings-disable-btn");t instanceof HTMLElement&&t.removeEventListener("click",this.clickSettingsDisableBtn);var n=this.dom.querySelector(".j-shortcut-settings-recover-btn");n instanceof HTMLElement&&n.removeEventListener("click",this.clickSettingsRecoverBtn);var r=this.dom.querySelector(".shortcut-tabs");r instanceof HTMLElement&&r.removeEventListener("click",this.handleTabClick)}},{key:"isShow",value:function(){return"block"===this.dom.style.display}},{key:"isHide",value:function(){return"none"===this.dom.style.display}},{key:"toggle",value:function(e){if(!(e instanceof HTMLElement))throw new Error("settingsDom must be an instance of HTMLElement, but got: ".concat(e));var t=e.getBoundingClientRect(),n=this.$cherry.wrapperDom.getBoundingClientRect();if(this.isHide()){this.dom.style.left="".concat(t.left-n.left+t.width/2,"px"),this.dom.style.top="".concat(t.top-n.top+t.height,"px"),this.show();var r=this.dom.getBoundingClientRect();return this.dom.style.marginLeft="0px",this.dom.style.left="".concat(t.left-n.left+t.width/2-r.width/2,"px"),void(r.left+r.width>window.innerWidth&&(this.dom.style.left="".concat(window.innerWidth-r.width-5,"px")))}return this.hide()}}])}();function iY(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(iY=function(){return!!e})()}var oY=function(){function e(t){var n,r,i,o,a,s,l,c,u;ua(this,e),l=this,u=[t],c=wu(c=e),(s=Ac(l,iY()?pr(c,u||[],wu(l).constructor):c.apply(l,u))).setName("settings","settings"),s.updateMarkdown=!1,s.engine=t.engine;var d=wk("classicBr")?_k():null===(n=s.engine.$cherry.options.engine.global)||void 0===n?void 0:n.classicBr,h=t.editor.options.defaultModel,f=d?"br":"normal",p=d?"classicBr":"normalBr",g="editOnly"===h?"preview":"previewClose",m="editOnly"===h?"togglePreview":"previewClose";return s.instanceId=t.instanceId,s.subMenuConfig=[{iconName:f,name:p,onclick:Ju(r=s.bindSubClick).call(r,s,"classicBr")},{iconName:g,name:m,onclick:Ju(i=s.bindSubClick).call(i,s,"previewClose")},{iconName:"",name:"hide",onclick:Ju(o=s.bindSubClick).call(o,s,"toggleToolbar")}],s.attachEventListeners(),s.shortcutKeyMap=Fu({},Xu(a="".concat(CV(),"-")).call(a,SV("0")),{hookName:s.name,sub:"toggleToolbar",aliasName:"hide"}),s}return Pu(e,nV),mc(e,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"bindSubClick",value:function(e,t,n,r){return n?this.onClick(t,e,r):this.onClick(t,e)}},{key:"togglePreviewBtn",value:function(e){var t=this,n=e?"previewClose":"preview",r=e?"previewClose":"togglePreview";if(this.subMenu){var i=document.querySelector('.cherry-dropdown[name="settings"]');if(i){var o=i.querySelector(".ch-icon-previewClose,.ch-icon-preview");o.classList.toggle("ch-icon-previewClose"),o.classList.toggle("ch-icon-preview"),o.title=this.locale[r],o.parentElement.innerHTML=o.parentElement.innerHTML.replace(/<\/i>.+$/,"</i>".concat(this.locale[r]))}}else{var a;this.subMenuConfig=_h(a=this.subMenuConfig).call(a,function(e){var i;return"previewClose"===e.iconName||"preview"===e.iconName?{iconName:n,name:r,onclick:Ju(i=t.bindSubClick).call(i,t,"previewClose")}:e})}}},{key:"attachEventListeners",value:function(){var e=this;this.$cherry.$event.on("previewerClose",function(){e.togglePreviewBtn(!1)}),this.$cherry.$event.on("previewerOpen",function(){e.togglePreviewBtn(!0)})}},{key:"onClick",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("classicBr"===(n=this.matchShortcutKey(n))){var r,i=!_k();t=i,"undefined"!=typeof localStorage&&localStorage.setItem("cherry-classicBr",t?"true":"false"),this.engine.$cherry.options.engine.global.classicBr=i,gf(r=this.engine.hookCenter.hookList.paragraph).call(r,function(e){e.classicBr=i});var o=this.$cherry.wrapperDom.querySelector(".cherry-dropdown .ch-icon-normal");o=o||this.$cherry.wrapperDom.querySelector(".cherry-dropdown .ch-icon-br"),i?(o.classList.replace("ch-icon-normal","ch-icon-br"),o.parentElement.childNodes[1].textContent=this.locale.classicBr):(o.classList.replace("ch-icon-br","ch-icon-normal"),o.parentElement.childNodes[1].textContent=this.locale.normalBr),this.engine.$cherry.previewer.update(""),this.engine.$cherry.initText(this.engine.$cherry.editor.editor)}else if("previewClose"===n){if(this.editor.previewer.isPreviewerNeedFloat())return void(this.editor.previewer.isPreviewerFloat()?this.editor.previewer.recoverFloatPreviewer(!0):this.editor.previewer.floatPreviewer());this.editor.previewer.isPreviewerHidden()?this.editor.previewer.recoverPreviewer(!0):this.editor.previewer.editOnly(!0)}else if("toggleToolbar"===n)this.toggleToolbar();else if("shortcutKey"===n){var a,s,l,c;this.shortcutKeyConfigPanel||(this.shortcutKeyConfigPanel=new rY(this.engine.$cherry));var u=null===(a=this.engine)||void 0===a||null===(s=a.$cherry)||void 0===s||null===(l=s.toolbar)||void 0===l||null===(c=l.subMenus)||void 0===c?void 0:c[this.name];u instanceof HTMLElement&&(u.style.display="none"),this.shortcutKeyConfigPanel.toggle(this.dom)}return e}},{key:"matchShortcutKey",value:function(e){var t,n=zw(t=HW(this.shortcutKeyMap)).call(t,function(t){return t.sub===e});if(void 0===n){var r=xV(this.$cherry.nameSpace),i=null==r?void 0:r[e];return i?String(i.sub):e}return n.sub}},{key:"toggleToolbar",value:function(){var e,t=this.engine.$cherry.wrapperDom;t instanceof HTMLDivElement&&(yx(e=t.className).call(e,"cherry--no-toolbar")>-1?(t.classList.remove("cherry--no-toolbar"),this.$cherry.$event.emit("toolbarShow")):(t.classList.add("cherry--no-toolbar"),this.$cherry.$event.emit("toolbarHide")))}}])}();function aY(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(aY=function(){return!!e})()}var sY=function(){function e(t){var n,r,i,o,a;return ua(this,e),i=this,a=[t],o=wu(o=e),(r=Ac(i,aY()?pr(o,a||[],wu(i).constructor):o.apply(i,a))).setName("underline","underline"),r.shortcutKeyMap=Fu({},Xu(n="".concat(CV(),"-")).call(n,SV("u")),{hookName:r.name,aliasName:r.name}),r}return Pu(e,nV),mc(e,[{key:"$testIsUnderline",value:function(e){return/^\s*(\/)[\s\S]+(\1)/.test(e)}},{key:"onClick",value:function(e){var t=this,n=e||this.locale.underline;return this.isSelections||this.$testIsUnderline(n)||this.getMoreSelection(" /","/ ",function(){var e=t.editor.editor.getSelection(),r=t.$testIsUnderline(e);return r&&(n=e),r}),this.$testIsUnderline(n)?n.replace(/(^)(\s*)(\/)([^\n]+)(\3)(\s*)($)/gm,"$1$4$7"):(this.registerAfterClickCb(function(){t.setLessSelection(" /","/ ")}),n.replace(/(^)([^\n]+)($)/gm,"$1 /$2/ $3"))}}])}();function lY(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(lY=function(){return!!e})()}var cY=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,lY()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("switchPreview"),n.instanceId=t.instanceId,n.attachEventListeners(),n}return Pu(e,nV),mc(e,[{key:"attachEventListeners",value:function(){var e=this;this.$cherry.$event.on("toolbarHide",function(){e.dom.textContent=e.locale.switchEdit}),this.$cherry.$event.on("toolbarShow",function(){e.dom.textContent=e.locale.switchPreview})}},{key:"onClick",value:function(){this.editor.previewer.isPreviewerHidden()?(this.editor.previewer.previewOnly(),this.dom.parentElement.parentElement.classList.add("preview-only"),this.dom.textContent=this.locale.switchEdit):(this.editor.previewer.editOnly(!0),this.dom.parentElement.parentElement.classList.remove("preview-only"),this.dom.textContent=this.locale.switchPreview)}}])}();function uY(e,t){var n=void 0!==HC&&UC(e)||e["@@iterator"];if(!n){if(QC(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return dY(e,t);var r=_x(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u_(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dY(e,t):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function dY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hY(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(hY=function(){return!!e})()}var fY=function(){function e(t){var n,r,i,o,a;return ua(this,e),i=this,a=[t],o=wu(o=e),(r=Ac(i,hY()?pr(o,a||[],wu(i).constructor):o.apply(i,a))).setName("image","image"),r.shortcutKeyMap=Fu({},Xu(n="".concat(CV(),"-")).call(n,SV("g")),{hookName:r.name,aliasName:r.name}),r}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){var t,n,r,i,o,a,s=this,l=null!==(t=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.image)&&void 0!==t?t:"*";if(null!==(i=null===(o=this.$cherry)||void 0===o||null===(a=o.options.multipleFileSelection)||void 0===a?void 0:a.image)&&void 0!==i&&i){if(this.hasCacheOnce()){var c,u=this.getAndCleanCacheOnce(),d="",h=uY(u);try{var f=function(){var e,t,n,r=c.value,i=r.url,o=r.params,a="](".concat(i,")");s.registerAfterClickCb(function(){s.setLessSelection("![",a)});var l=o.name?o.name:name;d+=Xu(e=Xu(t=Xu(n="".concat("![")).call(n,l)).call(t,YC(o))).call(e,a,"\n")};for(h.s();!(c=h.n()).done;)f()}catch(e){h.e(e)}finally{h.f()}return d}return GC(this.editor,"image",l,function(e){s.setCacheOnce(e),s.fire(null)}),this.updateMarkdown=!1,e}if(this.hasCacheOnce()){var p,g,m,v=this.getAndCleanCacheOnce(),A=v.name,b=v.url,y=v.params,w="](".concat(b,")");this.registerAfterClickCb(function(){s.setLessSelection("![",w)});var _=y.name?y.name:A;return Xu(p=Xu(g=Xu(m="".concat("![")).call(m,_)).call(g,YC(y))).call(p,w)}return VC(this.editor,"image",l,function(e,t,n){s.setCacheOnce({name:e,url:t,params:n}),s.fire(null)}),this.updateMarkdown=!1,e}}])}();function pY(e,t){var n=void 0!==HC&&UC(e)||e["@@iterator"];if(!n){if(QC(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return gY(e,t);var r=_x(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u_(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gY(e,t):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function gY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mY(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(mY=function(){return!!e})()}var vY=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,mY()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("audio","video"),n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){var t,n,r,i,o,a,s=this,l=null!==(t=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.audio)&&void 0!==t?t:"*";if(null!==(i=null===(o=this.$cherry)||void 0===o||null===(a=o.options.multipleFileSelection)||void 0===a?void 0:a.audio)&&void 0!==i&&i){if(this.hasCacheOnce()){var c,u=this.getAndCleanCacheOnce(),d="",h=pY(u);try{var f=function(){var e,t,n,r=c.value,i=r.url,o=r.params,a="!audio[",l="](".concat(i,")");s.registerAfterClickCb(function(){s.setLessSelection(a,l)});var u=o.name?o.name:name;d+=Xu(e=Xu(t=Xu(n="".concat(a)).call(n,u)).call(t,YC(o))).call(e,l,"\n")};for(h.s();!(c=h.n()).done;)f()}catch(e){h.e(e)}finally{h.f()}return d}return GC(this.editor,"audio",l,function(e){s.setCacheOnce(e),s.fire(null)}),this.updateMarkdown=!1,e}if(this.hasCacheOnce()){var p,g,m,v=this.getAndCleanCacheOnce(),A=v.name,b=v.url,y=v.params,w="!audio[",_="](".concat(b,")");this.registerAfterClickCb(function(){s.setLessSelection(w,_)});var x=y.name?y.name:A;return Xu(p=Xu(g=Xu(m="".concat(w)).call(m,x)).call(g,YC(y))).call(p,_)}return VC(this.editor,"audio",l,function(e,t,n){s.setCacheOnce({name:e,url:t,params:n}),s.fire(null)}),this.updateMarkdown=!1,e}}])}();function AY(e,t){var n=void 0!==HC&&UC(e)||e["@@iterator"];if(!n){if(QC(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return bY(e,t);var r=_x(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u_(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bY(e,t):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function bY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yY(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(yY=function(){return!!e})()}var wY=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,yY()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("video","video"),n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){var t,n,r,i,o,a,s=this,l=null!==(t=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.video)&&void 0!==t?t:"*";if(null!==(i=null===(o=this.$cherry)||void 0===o||null===(a=o.options.multipleFileSelection)||void 0===a?void 0:a.video)&&void 0!==i&&i){if(this.hasCacheOnce()){var c,u=this.getAndCleanCacheOnce(),d="",h=AY(u);try{var f=function(){var e,t,n,r,i=c.value,o=i.url,a=i.params,l="!video[",u=a.poster?Xu(e="](".concat(o,"){poster=")).call(e,a.poster,"}"):"](".concat(o,")");s.registerAfterClickCb(function(){s.setLessSelection(l,u)});var h=a.name?a.name:name;d+=Xu(t=Xu(n=Xu(r="".concat(l)).call(r,h)).call(n,YC(a))).call(t,u,"\n")};for(h.s();!(c=h.n()).done;)f()}catch(e){h.e(e)}finally{h.f()}return d}return GC(this.editor,"video",l,function(e){s.setCacheOnce(e),s.fire(null)}),this.updateMarkdown=!1,e}if(this.hasCacheOnce()){var p,g,m,v,A=this.getAndCleanCacheOnce(),b=A.name,y=A.url,w=A.params,_="!video[",x=w.poster?Xu(p="](".concat(y,"){poster=")).call(p,w.poster,"}"):"](".concat(y,")");this.registerAfterClickCb(function(){s.setLessSelection(_,x)});var E=w.name?w.name:b;return Xu(g=Xu(m=Xu(v="".concat(_)).call(v,E)).call(m,YC(w))).call(g,x)}return VC(this.editor,"video",l,function(e,t,n){s.setCacheOnce({name:e,url:t,params:n}),s.fire(null)}),this.updateMarkdown=!1,e}}])}();function _Y(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(_Y=function(){return!!e})()}var xY=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,_Y()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("br","br"),n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){return"".concat(e,"<br>")}}])}();function EY(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(EY=function(){return!!e})()}var SY=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,EY()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("hr","line"),n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){return"".concat(e,"\n\n---\n")}}])}();function CY(e,t){var n=void 0!==HC&&UC(e)||e["@@iterator"];if(!n){if(QC(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return TY(e,t);var r=_x(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u_(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?TY(e,t):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function TY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var kY=function(){return mc(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ua(this,e),Fu(this,"formulaConfig",{toolbar:{title:"快捷工具",subCategory:{commonSymbols:{title:"常用符号",formulas:[{name:"二元计算符 Binary operations",img:"",latex:""},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="1.76ex" height="1.09ex" viewBox="0 -491 778 482" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-42-TEX-N-D7" d="M630 29Q630 9 609 9Q604 9 587 25T493 118L389 222L284 117Q178 13 175 11Q171 9 168 9Q160 9 154 15T147 29Q147 36 161 51T255 146L359 250L255 354Q174 435 161 449T147 471Q147 480 153 485T168 490Q173 490 175 489Q178 487 284 383L389 278L493 382Q570 459 587 475T609 491Q630 491 630 471Q630 464 620 453T522 355L418 250L522 145Q606 61 618 48T630 29Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mo"><use xlink:href="#MJX-42-TEX-N-D7"></use></g></g></g></svg>',latex:"\\times"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="1.76ex" height="1.296ex" viewBox="0 -537 778 573" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-50-TEX-N-F7" d="M318 466Q318 500 339 518T386 537Q418 537 438 517T458 466Q458 438 440 417T388 396Q355 396 337 417T318 466ZM56 237T56 250T70 270H706Q721 262 721 250T706 230H70Q56 237 56 250ZM318 34Q318 68 339 86T386 105Q418 105 438 85T458 34Q458 6 440 -15T388 -36Q355 -36 337 -15T318 34Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mo"><use xlink:href="#MJX-50-TEX-N-F7"></use></g></g></g></g></svg>',latex:"\\div"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="1.131ex" height="0.973ex" viewBox="0 -465 500 430" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-71-TEX-N-2217" d="M229 286Q216 420 216 436Q216 454 240 464Q241 464 245 464T251 465Q263 464 273 456T283 436Q283 419 277 356T270 286L328 328Q384 369 389 372T399 375Q412 375 423 365T435 338Q435 325 425 315Q420 312 357 282T289 250L355 219L425 184Q434 175 434 161Q434 146 425 136T401 125Q393 125 383 131T328 171L270 213Q283 79 283 63Q283 53 276 44T250 35Q231 35 224 44T216 63Q216 80 222 143T229 213L171 171Q115 130 110 127Q106 124 100 124Q87 124 76 134T64 161Q64 166 64 169T67 175T72 181T81 188T94 195T113 204T138 215T170 230T210 250L74 315Q65 324 65 338Q65 353 74 363T98 374Q106 374 116 368T171 328L229 286Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mo"><use xlink:href="#MJX-71-TEX-N-2217"></use></g></g></g></svg>',latex:"\\ast"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="0.629ex" height="0.271ex" viewBox="0 -310 278 120" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-73-TEX-N-22C5" d="M78 250Q78 274 95 292T138 310Q162 310 180 294T199 251Q199 226 182 208T139 190T96 207T78 250Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mo"><use xlink:href="#MJX-73-TEX-N-22C5"></use></g></g></g></svg>',latex:"\\cdot"},{name:"二元关系符 Binary relations",img:"",latex:""},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="1.76ex" height="1.751ex" viewBox="0 -636 778 774" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-79-TEX-N-2264" d="M674 636Q682 636 688 630T694 615T687 601Q686 600 417 472L151 346L399 228Q687 92 691 87Q694 81 694 76Q694 58 676 56H670L382 192Q92 329 90 331Q83 336 83 348Q84 359 96 365Q104 369 382 500T665 634Q669 636 674 636ZM84 -118Q84 -108 99 -98H678Q694 -104 694 -118Q694 -130 679 -138H98Q84 -131 84 -118Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mo"><use xlink:href="#MJX-79-TEX-N-2264"></use></g></g></g></svg>',latex:"\\le "},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="1.76ex" height="1.751ex" viewBox="0 -636 778 774" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-80-TEX-N-2265" d="M83 616Q83 624 89 630T99 636Q107 636 253 568T543 431T687 361Q694 356 694 346T687 331Q685 329 395 192L107 56H101Q83 58 83 76Q83 77 83 79Q82 86 98 95Q117 105 248 167Q326 204 378 228L626 346L360 472Q291 505 200 548Q112 589 98 597T83 616ZM84 -118Q84 -108 99 -98H678Q694 -104 694 -118Q694 -130 679 -138H98Q84 -131 84 -118Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mo"><use xlink:href="#MJX-80-TEX-N-2265"></use></g></g></g></svg>',latex:"\\ge "},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="2.262ex" height="1.437ex" viewBox="0 -568 1000 635" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-81-TEX-N-226A" d="M639 -48Q639 -54 634 -60T619 -67H618Q612 -67 536 -26Q430 33 329 88Q61 235 59 239Q56 243 56 250T59 261Q62 266 336 415T615 567L619 568Q622 567 625 567Q639 562 639 548Q639 540 633 534Q632 532 374 391L117 250L374 109Q632 -32 633 -34Q639 -40 639 -48ZM944 -48Q944 -54 939 -60T924 -67H923Q917 -67 841 -26Q735 33 634 88Q366 235 364 239Q361 243 361 250T364 261Q367 266 641 415T920 567L924 568Q927 567 930 567Q944 562 944 548Q944 540 938 534Q937 532 679 391L422 250L679 109Q937 -32 938 -34Q944 -40 944 -48Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mo"><use xlink:href="#MJX-81-TEX-N-226A"></use></g></g></g></svg>',latex:"\\ll"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="2.262ex" height="1.434ex" viewBox="0 -567 1000 634" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-82-TEX-N-226B" d="M55 539T55 547T60 561T74 567Q81 567 207 498Q297 449 365 412Q633 265 636 261Q639 255 639 250Q639 241 626 232Q614 224 365 88Q83 -65 79 -66Q76 -67 73 -67Q65 -67 60 -61T55 -47Q55 -39 61 -33Q62 -33 95 -15T193 39T320 109L321 110H322L323 111H324L325 112L326 113H327L329 114H330L331 115H332L333 116L334 117H335L336 118H337L338 119H339L340 120L341 121H342L343 122H344L345 123H346L347 124L348 125H349L351 126H352L353 127H354L355 128L356 129H357L358 130H359L360 131H361L362 132L363 133H364L365 134H366L367 135H368L369 136H370L371 137L372 138H373L374 139H375L376 140L378 141L576 251Q63 530 62 533Q55 539 55 547ZM360 539T360 547T365 561T379 567Q386 567 512 498Q602 449 670 412Q938 265 941 261Q944 255 944 250Q944 241 931 232Q919 224 670 88Q388 -65 384 -66Q381 -67 378 -67Q370 -67 365 -61T360 -47Q360 -39 366 -33Q367 -33 400 -15T498 39T625 109L626 110H627L628 111H629L630 112L631 113H632L634 114H635L636 115H637L638 116L639 117H640L641 118H642L643 119H644L645 120L646 121H647L648 122H649L650 123H651L652 124L653 125H654L656 126H657L658 127H659L660 128L661 129H662L663 130H664L665 131H666L667 132L668 133H669L670 134H671L672 135H673L674 136H675L676 137L677 138H678L679 139H680L681 140L683 141L881 251Q368 530 367 533Q360 539 360 547Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mo"><use xlink:href="#MJX-82-TEX-N-226B"></use></g></g></g></svg>',latex:"\\gg"},{name:"箭头符号 Arrows",img:"",latex:""},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="2.262ex" height="1.181ex" viewBox="0 -511 1000 522" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-86-TEX-N-2190" d="M944 261T944 250T929 230H165Q167 228 182 216T211 189T244 152T277 96T303 25Q308 7 308 0Q308 -11 288 -11Q281 -11 278 -11T272 -7T267 2T263 21Q245 94 195 151T73 236Q58 242 55 247Q55 254 59 257T73 264Q121 283 158 314T215 375T247 434T264 480L267 497Q269 503 270 505T275 509T288 511Q308 511 308 500Q308 493 303 475Q293 438 278 406T246 352T215 315T185 287T165 270H929Q944 261 944 250Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mo"><use xlink:href="#MJX-86-TEX-N-2190"></use></g></g></g></svg>',latex:"\\gets "},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="2.262ex" height="1.181ex" viewBox="0 -511 1000 522" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-87-TEX-N-2192" d="M56 237T56 250T70 270H835Q719 357 692 493Q692 494 692 496T691 499Q691 511 708 511H711Q720 511 723 510T729 506T732 497T735 481T743 456Q765 389 816 336T935 261Q944 258 944 250Q944 244 939 241T915 231T877 212Q836 186 806 152T761 85T740 35T732 4Q730 -6 727 -8T711 -11Q691 -11 691 0Q691 7 696 25Q728 151 835 230H70Q56 237 56 250Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mo"><use xlink:href="#MJX-87-TEX-N-2192"></use></g></g></g></svg>',latex:"\\to"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="1.131ex" height="2.007ex" viewBox="0 -694 500 887" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-88-TEX-N-2191" d="M27 414Q17 414 17 433Q17 437 17 439T17 444T19 447T20 450T22 452T26 453T30 454T36 456Q80 467 120 494T180 549Q227 607 238 678Q240 694 251 694Q259 694 261 684Q261 677 265 659T284 608T320 549Q340 525 363 507T405 479T440 463T467 455T479 451Q483 447 483 433Q483 413 472 413Q467 413 458 416Q342 448 277 545L270 555V-179Q262 -193 252 -193H250H248Q236 -193 230 -179V555L223 545Q192 499 146 467T70 424T27 414Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mo"><use xlink:href="#MJX-88-TEX-N-2191"></use></g></g></g></svg>',latex:"\\uparrow"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="1.131ex" height="2.009ex" viewBox="0 -694 500 888" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-89-TEX-N-2193" d="M473 86Q483 86 483 67Q483 63 483 61T483 56T481 53T480 50T478 48T474 47T470 46T464 44Q428 35 391 14T316 -55T264 -168Q264 -170 263 -173T262 -180T261 -184Q259 -194 251 -194Q242 -194 238 -176T221 -121T180 -49Q169 -34 155 -21T125 2T95 20T67 33T44 42T27 47L21 49Q17 53 17 67Q17 87 28 87Q33 87 42 84Q158 52 223 -45L230 -55V312Q230 391 230 482T229 591Q229 662 231 676T243 693Q244 694 251 694Q264 692 270 679V-55L277 -45Q307 1 353 33T430 76T473 86Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mo"><use xlink:href="#MJX-89-TEX-N-2193"></use></g></g></g></svg>',latex:"\\downarrow"},{name:"其他符号 Others",img:"",latex:""},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="1.509ex" height="1.251ex" viewBox="0 -471 667 553" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-90-TEX-N-2235" d="M23 411Q23 437 41 454T84 471Q108 471 125 454T143 411T126 368T83 351Q57 351 40 368T23 411ZM523 411Q523 437 541 454T584 471Q608 471 625 454T643 411T626 368T583 351Q557 351 540 368T523 411ZM274 -22Q274 4 291 21T334 38Q356 38 374 22T392 -22T375 -65T333 -82Q307 -82 291 -65T274 -22Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mo"><use xlink:href="#MJX-90-TEX-N-2235"></use></g></g></g></svg>',latex:"\\because"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="1.509ex" height="1.251ex" viewBox="0 -471 667 553" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-91-TEX-N-2234" d="M273 411Q273 437 291 454T334 471Q358 471 375 454T393 411T376 368T333 351Q307 351 290 368T273 411ZM84 38Q110 38 126 21T143 -22Q143 -46 127 -64T83 -82Q57 -82 41 -65T24 -22Q24 4 41 21T84 38ZM524 -22Q524 4 541 21T584 38Q608 38 625 21T643 -22Q643 -45 627 -63T583 -82Q557 -82 541 -65T524 -22Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mo"><use xlink:href="#MJX-91-TEX-N-2234"></use></g></g></g></svg>',latex:"\\therefore"}]},sqrt:{title:"根式角标",formulas:[{name:"根式 Radicals",img:"",latex:""},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="4.183ex" height="2.398ex" viewBox="0 -970.2 1849.1 1060" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-92-TEX-I-1D45B" d="M21 287Q22 293 24 303T36 341T56 388T89 425T135 442Q171 442 195 424T225 390T231 369Q231 367 232 367L243 378Q304 442 382 442Q436 442 469 415T503 336T465 179T427 52Q427 26 444 26Q450 26 453 27Q482 32 505 65T540 145Q542 153 560 153Q580 153 580 145Q580 144 576 130Q568 101 554 73T508 17T439 -10Q392 -10 371 17T350 73Q350 92 386 193T423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 180T152 343Q153 348 153 366Q153 405 129 405Q91 405 66 305Q60 285 60 284Q58 278 41 278H27Q21 284 21 287Z"></path><path id="MJX-92-TEX-N-221A" d="M95 178Q89 178 81 186T72 200T103 230T169 280T207 309Q209 311 212 311H213Q219 311 227 294T281 177Q300 134 312 108L397 -77Q398 -77 501 136T707 565T814 786Q820 800 834 800Q841 800 846 794T853 782V776L620 293L385 -193Q381 -200 366 -200Q357 -200 354 -197Q352 -195 256 15L160 225L144 214Q129 202 113 190T95 178Z"></path><path id="MJX-92-TEX-I-1D465" d="M52 289Q59 331 106 386T222 442Q257 442 286 424T329 379Q371 442 430 442Q467 442 494 420T522 361Q522 332 508 314T481 292T458 288Q439 288 427 299T415 328Q415 374 465 391Q454 404 425 404Q412 404 406 402Q368 386 350 336Q290 115 290 78Q290 50 306 38T341 26Q378 26 414 59T463 140Q466 150 469 151T485 153H489Q504 153 504 145Q504 144 502 134Q486 77 440 33T333 -11Q263 -11 227 52Q186 -10 133 -10H127Q78 -10 57 16T35 71Q35 103 54 123T99 143Q142 143 142 101Q142 81 130 66T107 46T94 41L91 40Q91 39 97 36T113 29T132 26Q168 26 194 71Q203 87 217 139T245 247T261 313Q266 340 266 352Q266 380 251 392T217 404Q177 404 142 372T93 290Q91 281 88 280T72 278H58Q52 284 52 289Z"></path><path id="MJX-92-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mroot"><g><g data-mml-node="msup" transform="translate(853, 0)"><g data-mml-node="mi"><use xlink:href="#MJX-92-TEX-I-1D465"></use></g><g data-mml-node="TeXAtom" transform="translate(572, 289) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-92-TEX-I-1D44E"></use></g></g></g></g><g data-mml-node="mi" transform="translate(211.8, 465.7) scale(0.5)"><use xlink:href="#MJX-92-TEX-I-1D45B"></use></g><g data-mml-node="mo" transform="translate(0, 110.2)"><use xlink:href="#MJX-92-TEX-N-221A"></use></g><rect width="996.1" height="60" x="853" y="850.2"></rect></g></g></g></svg>',latex:"\\sqrt[n]{x^{a}}"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="1.93ex" height="2.398ex" viewBox="0 -675.3 853 1060" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-94-TEX-N-221A" d="M95 178Q89 178 81 186T72 200T103 230T169 280T207 309Q209 311 212 311H213Q219 311 227 294T281 177Q300 134 312 108L397 -77Q398 -77 501 136T707 565T814 786Q820 800 834 800Q841 800 846 794T853 782V776L620 293L385 -193Q381 -200 366 -200Q357 -200 354 -197Q352 -195 256 15L160 225L144 214Q129 202 113 190T95 178Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="msqrt"><g transform="translate(853, 0)"></g><g data-mml-node="mo" transform="translate(0, -184.7)"><use xlink:href="#MJX-94-TEX-N-221A"></use></g><rect width="0" height="60" x="853" y="555.3"></rect></g></g></g></svg>',latex:"\\sqrt{} "},{name:"上下标 Sub&Super",img:"",latex:""},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="3.663ex" height="5.994ex" viewBox="0 -1679.5 1618.8 2649.1" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-94-TEX-N-32" d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z"></path><path id="MJX-94-TEX-N-31" d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z"></path><path id="MJX-94-TEX-I-1D44B" d="M42 0H40Q26 0 26 11Q26 15 29 27Q33 41 36 43T55 46Q141 49 190 98Q200 108 306 224T411 342Q302 620 297 625Q288 636 234 637H206Q200 643 200 645T202 664Q206 677 212 683H226Q260 681 347 681Q380 681 408 681T453 682T473 682Q490 682 490 671Q490 670 488 658Q484 643 481 640T465 637Q434 634 411 620L488 426L541 485Q646 598 646 610Q646 628 622 635Q617 635 609 637Q594 637 594 648Q594 650 596 664Q600 677 606 683H618Q619 683 643 683T697 681T738 680Q828 680 837 683H845Q852 676 852 672Q850 647 840 637H824Q790 636 763 628T722 611T698 593L687 584Q687 585 592 480L505 384Q505 383 536 304T601 142T638 56Q648 47 699 46Q734 46 734 37Q734 35 732 23Q728 7 725 4T711 1Q708 1 678 1T589 2Q528 2 496 2T461 1Q444 1 444 10Q444 11 446 25Q448 35 450 39T455 44T464 46T480 47T506 54Q523 62 523 64Q522 64 476 181L429 299Q241 95 236 84Q232 76 232 72Q232 53 261 47Q262 47 267 47T273 46Q276 46 277 46T280 45T283 42T284 35Q284 26 282 19Q279 6 276 4T261 1Q258 1 243 1T201 2T142 2Q64 2 42 0Z"></path><path id="MJX-94-TEX-N-34" d="M462 0Q444 3 333 3Q217 3 199 0H190V46H221Q241 46 248 46T265 48T279 53T286 61Q287 63 287 115V165H28V211L179 442Q332 674 334 675Q336 677 355 677H373L379 671V211H471V165H379V114Q379 73 379 66T385 54Q393 47 442 46H471V0H462ZM293 211V545L74 212L183 211H293Z"></path><path id="MJX-94-TEX-N-33" d="M127 463Q100 463 85 480T69 524Q69 579 117 622T233 665Q268 665 277 664Q351 652 390 611T430 522Q430 470 396 421T302 350L299 348Q299 347 308 345T337 336T375 315Q457 262 457 175Q457 96 395 37T238 -22Q158 -22 100 21T42 130Q42 158 60 175T105 193Q133 193 151 175T169 130Q169 119 166 110T159 94T148 82T136 74T126 70T118 67L114 66Q165 21 238 21Q293 21 321 74Q338 107 338 175V195Q338 290 274 322Q259 328 213 329L171 330L168 332Q166 335 166 348Q166 366 174 366Q202 366 232 371Q266 376 294 413T322 525V533Q322 590 287 612Q265 626 240 626Q208 626 181 615T143 592T132 580H135Q138 579 143 578T153 573T165 566T175 555T183 540T186 520Q186 498 172 481T127 463Z"></path><path id="MJX-94-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path><path id="MJX-94-TEX-I-1D44F" d="M73 647Q73 657 77 670T89 683Q90 683 161 688T234 694Q246 694 246 685T212 542Q204 508 195 472T180 418L176 399Q176 396 182 402Q231 442 283 442Q345 442 383 396T422 280Q422 169 343 79T173 -11Q123 -11 82 27T40 150V159Q40 180 48 217T97 414Q147 611 147 623T109 637Q104 637 101 637H96Q86 637 83 637T76 640T73 647ZM336 325V331Q336 405 275 405Q258 405 240 397T207 376T181 352T163 330L157 322L136 236Q114 150 114 114Q114 66 138 42Q154 26 178 26Q211 26 245 58Q270 81 285 114T318 219Q336 291 336 325Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="munderover"><g data-mml-node="TeXAtom" data-mjx-texclass="OP"><g data-mml-node="msubsup"><g data-mml-node="TeXAtom" data-mjx-texclass="OP"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mpadded"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mphantom"></g></g></g></g></g><g data-mml-node="mn" transform="translate(75.2, 410.1) scale(0.707)"><use xlink:href="#MJX-94-TEX-N-32"></use></g><g data-mml-node="mn" transform="translate(0, -247) scale(0.707)"><use xlink:href="#MJX-94-TEX-N-31"></use></g></g><g data-mml-node="mstyle" transform="translate(478.8, 0)"><g data-mml-node="mspace"></g></g><g data-mml-node="msubsup" transform="translate(312.1, 0)"><g data-mml-node="TeXAtom" data-mjx-texclass="OP"><g data-mml-node="mi"><use xlink:href="#MJX-94-TEX-I-1D44B"></use></g></g><g data-mml-node="mn" transform="translate(903.2, 410.1) scale(0.707)"><use xlink:href="#MJX-94-TEX-N-34"></use></g><g data-mml-node="mn" transform="translate(828, -247) scale(0.707)"><use xlink:href="#MJX-94-TEX-N-33"></use></g></g></g><g data-mml-node="mi" transform="translate(622.4, -862.6) scale(0.707)"><use xlink:href="#MJX-94-TEX-I-1D44E"></use></g><g data-mml-node="mi" transform="translate(657.7, 1088.8) scale(0.707)"><use xlink:href="#MJX-94-TEX-I-1D44F"></use></g></g></g></g></svg>',latex:"\\sideset{_1^2}{_3^4}X_a^b"}]},limit:{title:"极限对数",formulas:[{name:"极限 Limits",img:"",latex:""},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="5.689ex" height="3.171ex" viewBox="0 -694 2514.3 1401.8" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-16-TEX-N-6C" d="M42 46H56Q95 46 103 60V68Q103 77 103 91T103 124T104 167T104 217T104 272T104 329Q104 366 104 407T104 482T104 542T103 586T103 603Q100 622 89 628T44 637H26V660Q26 683 28 683L38 684Q48 685 67 686T104 688Q121 689 141 690T171 693T182 694H185V379Q185 62 186 60Q190 52 198 49Q219 46 247 46H263V0H255L232 1Q209 2 183 2T145 3T107 3T57 1L34 0H26V46H42Z"></path><path id="MJX-16-TEX-N-69" d="M69 609Q69 637 87 653T131 669Q154 667 171 652T188 609Q188 579 171 564T129 549Q104 549 87 564T69 609ZM247 0Q232 3 143 3Q132 3 106 3T56 1L34 0H26V46H42Q70 46 91 49Q100 53 102 60T104 102V205V293Q104 345 102 359T88 378Q74 385 41 385H30V408Q30 431 32 431L42 432Q52 433 70 434T106 436Q123 437 142 438T171 441T182 442H185V62Q190 52 197 50T232 46H255V0H247Z"></path><path id="MJX-16-TEX-N-6D" d="M41 46H55Q94 46 102 60V68Q102 77 102 91T102 122T103 161T103 203Q103 234 103 269T102 328V351Q99 370 88 376T43 385H25V408Q25 431 27 431L37 432Q47 433 65 434T102 436Q119 437 138 438T167 441T178 442H181V402Q181 364 182 364T187 369T199 384T218 402T247 421T285 437Q305 442 336 442Q351 442 364 440T387 434T406 426T421 417T432 406T441 395T448 384T452 374T455 366L457 361L460 365Q463 369 466 373T475 384T488 397T503 410T523 422T546 432T572 439T603 442Q729 442 740 329Q741 322 741 190V104Q741 66 743 59T754 49Q775 46 803 46H819V0H811L788 1Q764 2 737 2T699 3Q596 3 587 0H579V46H595Q656 46 656 62Q657 64 657 200Q656 335 655 343Q649 371 635 385T611 402T585 404Q540 404 506 370Q479 343 472 315T464 232V168V108Q464 78 465 68T468 55T477 49Q498 46 526 46H542V0H534L510 1Q487 2 460 2T422 3Q319 3 310 0H302V46H318Q379 46 379 62Q380 64 380 200Q379 335 378 343Q372 371 358 385T334 402T308 404Q263 404 229 370Q202 343 195 315T187 232V168V108Q187 78 188 68T191 55T200 49Q221 46 249 46H265V0H257L234 1Q210 2 183 2T145 3Q42 3 33 0H25V46H41Z"></path><path id="MJX-16-TEX-I-1D465" d="M52 289Q59 331 106 386T222 442Q257 442 286 424T329 379Q371 442 430 442Q467 442 494 420T522 361Q522 332 508 314T481 292T458 288Q439 288 427 299T415 328Q415 374 465 391Q454 404 425 404Q412 404 406 402Q368 386 350 336Q290 115 290 78Q290 50 306 38T341 26Q378 26 414 59T463 140Q466 150 469 151T485 153H489Q504 153 504 145Q504 144 502 134Q486 77 440 33T333 -11Q263 -11 227 52Q186 -10 133 -10H127Q78 -10 57 16T35 71Q35 103 54 123T99 143Q142 143 142 101Q142 81 130 66T107 46T94 41L91 40Q91 39 97 36T113 29T132 26Q168 26 194 71Q203 87 217 139T245 247T261 313Q266 340 266 352Q266 380 251 392T217 404Q177 404 142 372T93 290Q91 281 88 280T72 278H58Q52 284 52 289Z"></path><path id="MJX-16-TEX-N-2192" d="M56 237T56 250T70 270H835Q719 357 692 493Q692 494 692 496T691 499Q691 511 708 511H711Q720 511 723 510T729 506T732 497T735 481T743 456Q765 389 816 336T935 261Q944 258 944 250Q944 244 939 241T915 231T877 212Q836 186 806 152T761 85T740 35T732 4Q730 -6 727 -8T711 -11Q691 -11 691 0Q691 7 696 25Q728 151 835 230H70Q56 237 56 250Z"></path><path id="MJX-16-TEX-N-221E" d="M55 217Q55 305 111 373T254 442Q342 442 419 381Q457 350 493 303L507 284L514 294Q618 442 747 442Q833 442 888 374T944 214Q944 128 889 59T743 -11Q657 -11 580 50Q542 81 506 128L492 147L485 137Q381 -11 252 -11Q166 -11 111 57T55 217ZM907 217Q907 285 869 341T761 397Q740 397 720 392T682 378T648 359T619 335T594 310T574 285T559 263T548 246L543 238L574 198Q605 158 622 138T664 94T714 61T765 51Q827 51 867 100T907 217ZM92 214Q92 145 131 89T239 33Q357 33 456 193L425 233Q364 312 334 337Q285 380 233 380Q171 380 132 331T92 214Z"></path><path id="MJX-16-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="munder"><g data-mml-node="mo" transform="translate(214.8, 0)"><use xlink:href="#MJX-16-TEX-N-6C"></use><use xlink:href="#MJX-16-TEX-N-69" transform="translate(278, 0)"></use><use xlink:href="#MJX-16-TEX-N-6D" transform="translate(556, 0)"></use></g><g data-mml-node="TeXAtom" transform="translate(0, -600) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-16-TEX-I-1D465"></use></g><g data-mml-node="mo" transform="translate(572, 0)"><use xlink:href="#MJX-16-TEX-N-2192"></use></g><g data-mml-node="mi" transform="translate(1572, 0)"><use xlink:href="#MJX-16-TEX-N-221E"></use></g></g></g><g data-mml-node="mi" transform="translate(1985.3, 0)"><use xlink:href="#MJX-16-TEX-I-1D44E"></use></g></g></g></svg>',latex:"\n\\lim_{x \\to \\infty} a"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="5.198ex" height="2.132ex" viewBox="0 -694 2297.7 942.4" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-80-TEX-N-6C" d="M42 46H56Q95 46 103 60V68Q103 77 103 91T103 124T104 167T104 217T104 272T104 329Q104 366 104 407T104 482T104 542T103 586T103 603Q100 622 89 628T44 637H26V660Q26 683 28 683L38 684Q48 685 67 686T104 688Q121 689 141 690T171 693T182 694H185V379Q185 62 186 60Q190 52 198 49Q219 46 247 46H263V0H255L232 1Q209 2 183 2T145 3T107 3T57 1L34 0H26V46H42Z"></path><path id="MJX-80-TEX-N-6F" d="M28 214Q28 309 93 378T250 448Q340 448 405 380T471 215Q471 120 407 55T250 -10Q153 -10 91 57T28 214ZM250 30Q372 30 372 193V225V250Q372 272 371 288T364 326T348 362T317 390T268 410Q263 411 252 411Q222 411 195 399Q152 377 139 338T126 246V226Q126 130 145 91Q177 30 250 30Z"></path><path id="MJX-80-TEX-N-67" d="M329 409Q373 453 429 453Q459 453 472 434T485 396Q485 382 476 371T449 360Q416 360 412 390Q410 404 415 411Q415 412 416 414V415Q388 412 363 393Q355 388 355 386Q355 385 359 381T368 369T379 351T388 325T392 292Q392 230 343 187T222 143Q172 143 123 171Q112 153 112 133Q112 98 138 81Q147 75 155 75T227 73Q311 72 335 67Q396 58 431 26Q470 -13 470 -72Q470 -139 392 -175Q332 -206 250 -206Q167 -206 107 -175Q29 -140 29 -75Q29 -39 50 -15T92 18L103 24Q67 55 67 108Q67 155 96 193Q52 237 52 292Q52 355 102 398T223 442Q274 442 318 416L329 409ZM299 343Q294 371 273 387T221 404Q192 404 171 388T145 343Q142 326 142 292Q142 248 149 227T179 192Q196 182 222 182Q244 182 260 189T283 207T294 227T299 242Q302 258 302 292T299 343ZM403 -75Q403 -50 389 -34T348 -11T299 -2T245 0H218Q151 0 138 -6Q118 -15 107 -34T95 -74Q95 -84 101 -97T122 -127T170 -155T250 -167Q319 -167 361 -139T403 -75Z"></path><path id="MJX-80-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path><path id="MJX-80-TEX-N-2061" d=""></path><path id="MJX-80-TEX-I-1D44F" d="M73 647Q73 657 77 670T89 683Q90 683 161 688T234 694Q246 694 246 685T212 542Q204 508 195 472T180 418L176 399Q176 396 182 402Q231 442 283 442Q345 442 383 396T422 280Q422 169 343 79T173 -11Q123 -11 82 27T40 150V159Q40 180 48 217T97 414Q147 611 147 623T109 637Q104 637 101 637H96Q86 637 83 637T76 640T73 647ZM336 325V331Q336 405 275 405Q258 405 240 397T207 376T181 352T163 330L157 322L136 236Q114 150 114 114Q114 66 138 42Q154 26 178 26Q211 26 245 58Q270 81 285 114T318 219Q336 291 336 325Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-80-TEX-N-6C"></use><use xlink:href="#MJX-80-TEX-N-6F" transform="translate(278, 0)"></use><use xlink:href="#MJX-80-TEX-N-67" transform="translate(778, 0)"></use></g><g data-mml-node="TeXAtom" transform="translate(1278, -241.4) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-80-TEX-I-1D44E"></use></g></g></g><g data-mml-node="mo" transform="translate(1702.1, 0)"><use xlink:href="#MJX-80-TEX-N-2061"></use></g><g data-mml-node="TeXAtom" data-mjx-texclass="ORD" transform="translate(1868.7, 0)"><g data-mml-node="mi"><use xlink:href="#MJX-80-TEX-I-1D44F"></use></g></g></g></g></svg>',latex:"\\log_{a}{b}"},{name:"对数指数 Logarithms and exponentials",img:"",latex:""},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="3.382ex" height="2.116ex" viewBox="0 -694 1494.7 935.4" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-95-TEX-N-6C" d="M42 46H56Q95 46 103 60V68Q103 77 103 91T103 124T104 167T104 217T104 272T104 329Q104 366 104 407T104 482T104 542T103 586T103 603Q100 622 89 628T44 637H26V660Q26 683 28 683L38 684Q48 685 67 686T104 688Q121 689 141 690T171 693T182 694H185V379Q185 62 186 60Q190 52 198 49Q219 46 247 46H263V0H255L232 1Q209 2 183 2T145 3T107 3T57 1L34 0H26V46H42Z"></path><path id="MJX-95-TEX-N-6F" d="M28 214Q28 309 93 378T250 448Q340 448 405 380T471 215Q471 120 407 55T250 -10Q153 -10 91 57T28 214ZM250 30Q372 30 372 193V225V250Q372 272 371 288T364 326T348 362T317 390T268 410Q263 411 252 411Q222 411 195 399Q152 377 139 338T126 246V226Q126 130 145 91Q177 30 250 30Z"></path><path id="MJX-95-TEX-N-67" d="M329 409Q373 453 429 453Q459 453 472 434T485 396Q485 382 476 371T449 360Q416 360 412 390Q410 404 415 411Q415 412 416 414V415Q388 412 363 393Q355 388 355 386Q355 385 359 381T368 369T379 351T388 325T392 292Q392 230 343 187T222 143Q172 143 123 171Q112 153 112 133Q112 98 138 81Q147 75 155 75T227 73Q311 72 335 67Q396 58 431 26Q470 -13 470 -72Q470 -139 392 -175Q332 -206 250 -206Q167 -206 107 -175Q29 -140 29 -75Q29 -39 50 -15T92 18L103 24Q67 55 67 108Q67 155 96 193Q52 237 52 292Q52 355 102 398T223 442Q274 442 318 416L329 409ZM299 343Q294 371 273 387T221 404Q192 404 171 388T145 343Q142 326 142 292Q142 248 149 227T179 192Q196 182 222 182Q244 182 260 189T283 207T294 227T299 242Q302 258 302 292T299 343ZM403 -75Q403 -50 389 -34T348 -11T299 -2T245 0H218Q151 0 138 -6Q118 -15 107 -34T95 -74Q95 -84 101 -97T122 -127T170 -155T250 -167Q319 -167 361 -139T403 -75Z"></path><path id="MJX-95-TEX-N-2061" d=""></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-95-TEX-N-6C"></use><use xlink:href="#MJX-95-TEX-N-6F" transform="translate(278, 0)"></use><use xlink:href="#MJX-95-TEX-N-67" transform="translate(778, 0)"></use></g><g data-mml-node="TeXAtom" transform="translate(1278, -241.4) scale(0.707)" data-mjx-texclass="ORD"></g></g><g data-mml-node="mo" transform="translate(1328, 0)"><use xlink:href="#MJX-95-TEX-N-2061"></use></g><g data-mml-node="TeXAtom" data-mjx-texclass="ORD" transform="translate(1494.7, 0)"></g></g></g></svg>',latex:"\\log_{}{} "},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="2.25ex" height="2.116ex" viewBox="0 -694 994.7 935.4" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-96-TEX-N-6C" d="M42 46H56Q95 46 103 60V68Q103 77 103 91T103 124T104 167T104 217T104 272T104 329Q104 366 104 407T104 482T104 542T103 586T103 603Q100 622 89 628T44 637H26V660Q26 683 28 683L38 684Q48 685 67 686T104 688Q121 689 141 690T171 693T182 694H185V379Q185 62 186 60Q190 52 198 49Q219 46 247 46H263V0H255L232 1Q209 2 183 2T145 3T107 3T57 1L34 0H26V46H42Z"></path><path id="MJX-96-TEX-N-67" d="M329 409Q373 453 429 453Q459 453 472 434T485 396Q485 382 476 371T449 360Q416 360 412 390Q410 404 415 411Q415 412 416 414V415Q388 412 363 393Q355 388 355 386Q355 385 359 381T368 369T379 351T388 325T392 292Q392 230 343 187T222 143Q172 143 123 171Q112 153 112 133Q112 98 138 81Q147 75 155 75T227 73Q311 72 335 67Q396 58 431 26Q470 -13 470 -72Q470 -139 392 -175Q332 -206 250 -206Q167 -206 107 -175Q29 -140 29 -75Q29 -39 50 -15T92 18L103 24Q67 55 67 108Q67 155 96 193Q52 237 52 292Q52 355 102 398T223 442Q274 442 318 416L329 409ZM299 343Q294 371 273 387T221 404Q192 404 171 388T145 343Q142 326 142 292Q142 248 149 227T179 192Q196 182 222 182Q244 182 260 189T283 207T294 227T299 242Q302 258 302 292T299 343ZM403 -75Q403 -50 389 -34T348 -11T299 -2T245 0H218Q151 0 138 -6Q118 -15 107 -34T95 -74Q95 -84 101 -97T122 -127T170 -155T250 -167Q319 -167 361 -139T403 -75Z"></path><path id="MJX-96-TEX-N-2061" d=""></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-96-TEX-N-6C"></use><use xlink:href="#MJX-96-TEX-N-67" transform="translate(278, 0)"></use></g><g data-mml-node="TeXAtom" transform="translate(778, -241.4) scale(0.707)" data-mjx-texclass="ORD"></g></g><g data-mml-node="mo" transform="translate(828, 0)"><use xlink:href="#MJX-96-TEX-N-2061"></use></g><g data-mml-node="TeXAtom" data-mjx-texclass="ORD" transform="translate(994.7, 0)"></g></g></g></svg>',latex:"\\lg_{}{}"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="2.377ex" height="1.91ex" viewBox="0 -694 1050.7 844" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-97-TEX-N-6C" d="M42 46H56Q95 46 103 60V68Q103 77 103 91T103 124T104 167T104 217T104 272T104 329Q104 366 104 407T104 482T104 542T103 586T103 603Q100 622 89 628T44 637H26V660Q26 683 28 683L38 684Q48 685 67 686T104 688Q121 689 141 690T171 693T182 694H185V379Q185 62 186 60Q190 52 198 49Q219 46 247 46H263V0H255L232 1Q209 2 183 2T145 3T107 3T57 1L34 0H26V46H42Z"></path><path id="MJX-97-TEX-N-6E" d="M41 46H55Q94 46 102 60V68Q102 77 102 91T102 122T103 161T103 203Q103 234 103 269T102 328V351Q99 370 88 376T43 385H25V408Q25 431 27 431L37 432Q47 433 65 434T102 436Q119 437 138 438T167 441T178 442H181V402Q181 364 182 364T187 369T199 384T218 402T247 421T285 437Q305 442 336 442Q450 438 463 329Q464 322 464 190V104Q464 66 466 59T477 49Q498 46 526 46H542V0H534L510 1Q487 2 460 2T422 3Q319 3 310 0H302V46H318Q379 46 379 62Q380 64 380 200Q379 335 378 343Q372 371 358 385T334 402T308 404Q263 404 229 370Q202 343 195 315T187 232V168V108Q187 78 188 68T191 55T200 49Q221 46 249 46H265V0H257L234 1Q210 2 183 2T145 3Q42 3 33 0H25V46H41Z"></path><path id="MJX-97-TEX-N-2061" d=""></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-97-TEX-N-6C"></use><use xlink:href="#MJX-97-TEX-N-6E" transform="translate(278, 0)"></use></g><g data-mml-node="TeXAtom" transform="translate(834, -150) scale(0.707)" data-mjx-texclass="ORD"></g></g><g data-mml-node="mo" transform="translate(884, 0)"><use xlink:href="#MJX-97-TEX-N-2061"></use></g><g data-mml-node="TeXAtom" data-mjx-texclass="ORD" transform="translate(1050.7, 0)"></g></g></g></svg>',latex:"\\ln_{}{} "},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="3.457ex" height="1.452ex" viewBox="0 -448 1528 642" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-98-TEX-N-65" d="M28 218Q28 273 48 318T98 391T163 433T229 448Q282 448 320 430T378 380T406 316T415 245Q415 238 408 231H126V216Q126 68 226 36Q246 30 270 30Q312 30 342 62Q359 79 369 104L379 128Q382 131 395 131H398Q415 131 415 121Q415 117 412 108Q393 53 349 21T250 -11Q155 -11 92 58T28 218ZM333 275Q322 403 238 411H236Q228 411 220 410T195 402T166 381T143 340T127 274V267H333V275Z"></path><path id="MJX-98-TEX-N-78" d="M201 0Q189 3 102 3Q26 3 17 0H11V46H25Q48 47 67 52T96 61T121 78T139 96T160 122T180 150L226 210L168 288Q159 301 149 315T133 336T122 351T113 363T107 370T100 376T94 379T88 381T80 383Q74 383 44 385H16V431H23Q59 429 126 429Q219 429 229 431H237V385Q201 381 201 369Q201 367 211 353T239 315T268 274L272 270L297 304Q329 345 329 358Q329 364 327 369T322 376T317 380T310 384L307 385H302V431H309Q324 428 408 428Q487 428 493 431H499V385H492Q443 385 411 368Q394 360 377 341T312 257L296 236L358 151Q424 61 429 57T446 50Q464 46 499 46H516V0H510H502Q494 1 482 1T457 2T432 2T414 3Q403 3 377 3T327 1L304 0H295V46H298Q309 46 320 51T331 63Q331 65 291 120L250 175Q249 174 219 133T185 88Q181 83 181 74Q181 63 188 55T206 46Q208 46 208 23V0H201Z"></path><path id="MJX-98-TEX-N-70" d="M36 -148H50Q89 -148 97 -134V-126Q97 -119 97 -107T97 -77T98 -38T98 6T98 55T98 106Q98 140 98 177T98 243T98 296T97 335T97 351Q94 370 83 376T38 385H20V408Q20 431 22 431L32 432Q42 433 61 434T98 436Q115 437 135 438T165 441T176 442H179V416L180 390L188 397Q247 441 326 441Q407 441 464 377T522 216Q522 115 457 52T310 -11Q242 -11 190 33L182 40V-45V-101Q182 -128 184 -134T195 -145Q216 -148 244 -148H260V-194H252L228 -193Q205 -192 178 -192T140 -191Q37 -191 28 -194H20V-148H36ZM424 218Q424 292 390 347T305 402Q234 402 182 337V98Q222 26 294 26Q345 26 384 80T424 218Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mi"><use xlink:href="#MJX-98-TEX-N-65"></use><use xlink:href="#MJX-98-TEX-N-78" transform="translate(444, 0)"></use><use xlink:href="#MJX-98-TEX-N-70" transform="translate(972, 0)"></use></g></g></g></svg>',latex:"\\exp"}]},trigonometic:{title:"三角函数",formulas:[{name:"三角函数 Trigonometic function",img:"",latex:""},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="2.778ex" height="1.538ex" viewBox="0 -669 1228 680" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-1-TEX-N-73" d="M295 316Q295 356 268 385T190 414Q154 414 128 401Q98 382 98 349Q97 344 98 336T114 312T157 287Q175 282 201 278T245 269T277 256Q294 248 310 236T342 195T359 133Q359 71 321 31T198 -10H190Q138 -10 94 26L86 19L77 10Q71 4 65 -1L54 -11H46H42Q39 -11 33 -5V74V132Q33 153 35 157T45 162H54Q66 162 70 158T75 146T82 119T101 77Q136 26 198 26Q295 26 295 104Q295 133 277 151Q257 175 194 187T111 210Q75 227 54 256T33 318Q33 357 50 384T93 424T143 442T187 447H198Q238 447 268 432L283 424L292 431Q302 440 314 448H322H326Q329 448 335 442V310L329 304H301Q295 310 295 316Z"></path><path id="MJX-1-TEX-N-69" d="M69 609Q69 637 87 653T131 669Q154 667 171 652T188 609Q188 579 171 564T129 549Q104 549 87 564T69 609ZM247 0Q232 3 143 3Q132 3 106 3T56 1L34 0H26V46H42Q70 46 91 49Q100 53 102 60T104 102V205V293Q104 345 102 359T88 378Q74 385 41 385H30V408Q30 431 32 431L42 432Q52 433 70 434T106 436Q123 437 142 438T171 441T182 442H185V62Q190 52 197 50T232 46H255V0H247Z"></path><path id="MJX-1-TEX-N-6E" d="M41 46H55Q94 46 102 60V68Q102 77 102 91T102 122T103 161T103 203Q103 234 103 269T102 328V351Q99 370 88 376T43 385H25V408Q25 431 27 431L37 432Q47 433 65 434T102 436Q119 437 138 438T167 441T178 442H181V402Q181 364 182 364T187 369T199 384T218 402T247 421T285 437Q305 442 336 442Q450 438 463 329Q464 322 464 190V104Q464 66 466 59T477 49Q498 46 526 46H542V0H534L510 1Q487 2 460 2T422 3Q319 3 310 0H302V46H318Q379 46 379 62Q380 64 380 200Q379 335 378 343Q372 371 358 385T334 402T308 404Q263 404 229 370Q202 343 195 315T187 232V168V108Q187 78 188 68T191 55T200 49Q221 46 249 46H265V0H257L234 1Q210 2 183 2T145 3Q42 3 33 0H25V46H41Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mi"><use xlink:href="#MJX-1-TEX-N-73"></use><use xlink:href="#MJX-1-TEX-N-69" transform="translate(394, 0)"></use><use xlink:href="#MJX-1-TEX-N-6E" transform="translate(672, 0)"></use></g></g></g></svg>',latex:"\\sin "},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="3.027ex" height="1.038ex" viewBox="0 -448 1338 459" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-2-TEX-N-63" d="M370 305T349 305T313 320T297 358Q297 381 312 396Q317 401 317 402T307 404Q281 408 258 408Q209 408 178 376Q131 329 131 219Q131 137 162 90Q203 29 272 29Q313 29 338 55T374 117Q376 125 379 127T395 129H409Q415 123 415 120Q415 116 411 104T395 71T366 33T318 2T249 -11Q163 -11 99 53T34 214Q34 318 99 383T250 448T370 421T404 357Q404 334 387 320Z"></path><path id="MJX-2-TEX-N-6F" d="M28 214Q28 309 93 378T250 448Q340 448 405 380T471 215Q471 120 407 55T250 -10Q153 -10 91 57T28 214ZM250 30Q372 30 372 193V225V250Q372 272 371 288T364 326T348 362T317 390T268 410Q263 411 252 411Q222 411 195 399Q152 377 139 338T126 246V226Q126 130 145 91Q177 30 250 30Z"></path><path id="MJX-2-TEX-N-73" d="M295 316Q295 356 268 385T190 414Q154 414 128 401Q98 382 98 349Q97 344 98 336T114 312T157 287Q175 282 201 278T245 269T277 256Q294 248 310 236T342 195T359 133Q359 71 321 31T198 -10H190Q138 -10 94 26L86 19L77 10Q71 4 65 -1L54 -11H46H42Q39 -11 33 -5V74V132Q33 153 35 157T45 162H54Q66 162 70 158T75 146T82 119T101 77Q136 26 198 26Q295 26 295 104Q295 133 277 151Q257 175 194 187T111 210Q75 227 54 256T33 318Q33 357 50 384T93 424T143 442T187 447H198Q238 447 268 432L283 424L292 431Q302 440 314 448H322H326Q329 448 335 442V310L329 304H301Q295 310 295 316Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mi"><use xlink:href="#MJX-2-TEX-N-63"></use><use xlink:href="#MJX-2-TEX-N-6F" transform="translate(444, 0)"></use><use xlink:href="#MJX-2-TEX-N-73" transform="translate(944, 0)"></use></g></g></g></svg>',latex:"\\cos"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="3.269ex" height="1.416ex" viewBox="0 -615 1445 626" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-3-TEX-N-74" d="M27 422Q80 426 109 478T141 600V615H181V431H316V385H181V241Q182 116 182 100T189 68Q203 29 238 29Q282 29 292 100Q293 108 293 146V181H333V146V134Q333 57 291 17Q264 -10 221 -10Q187 -10 162 2T124 33T105 68T98 100Q97 107 97 248V385H18V422H27Z"></path><path id="MJX-3-TEX-N-61" d="M137 305T115 305T78 320T63 359Q63 394 97 421T218 448Q291 448 336 416T396 340Q401 326 401 309T402 194V124Q402 76 407 58T428 40Q443 40 448 56T453 109V145H493V106Q492 66 490 59Q481 29 455 12T400 -6T353 12T329 54V58L327 55Q325 52 322 49T314 40T302 29T287 17T269 6T247 -2T221 -8T190 -11Q130 -11 82 20T34 107Q34 128 41 147T68 188T116 225T194 253T304 268H318V290Q318 324 312 340Q290 411 215 411Q197 411 181 410T156 406T148 403Q170 388 170 359Q170 334 154 320ZM126 106Q126 75 150 51T209 26Q247 26 276 49T315 109Q317 116 318 175Q318 233 317 233Q309 233 296 232T251 223T193 203T147 166T126 106Z"></path><path id="MJX-3-TEX-N-6E" d="M41 46H55Q94 46 102 60V68Q102 77 102 91T102 122T103 161T103 203Q103 234 103 269T102 328V351Q99 370 88 376T43 385H25V408Q25 431 27 431L37 432Q47 433 65 434T102 436Q119 437 138 438T167 441T178 442H181V402Q181 364 182 364T187 369T199 384T218 402T247 421T285 437Q305 442 336 442Q450 438 463 329Q464 322 464 190V104Q464 66 466 59T477 49Q498 46 526 46H542V0H534L510 1Q487 2 460 2T422 3Q319 3 310 0H302V46H318Q379 46 379 62Q380 64 380 200Q379 335 378 343Q372 371 358 385T334 402T308 404Q263 404 229 370Q202 343 195 315T187 232V168V108Q187 78 188 68T191 55T200 49Q221 46 249 46H265V0H257L234 1Q210 2 183 2T145 3Q42 3 33 0H25V46H41Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mi"><use xlink:href="#MJX-3-TEX-N-74"></use><use xlink:href="#MJX-3-TEX-N-61" transform="translate(389, 0)"></use><use xlink:href="#MJX-3-TEX-N-6E" transform="translate(889, 0)"></use></g></g></g></svg>',latex:"\\tan"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="3.016ex" height="1.416ex" viewBox="0 -615 1333 626" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-4-TEX-N-63" d="M370 305T349 305T313 320T297 358Q297 381 312 396Q317 401 317 402T307 404Q281 408 258 408Q209 408 178 376Q131 329 131 219Q131 137 162 90Q203 29 272 29Q313 29 338 55T374 117Q376 125 379 127T395 129H409Q415 123 415 120Q415 116 411 104T395 71T366 33T318 2T249 -11Q163 -11 99 53T34 214Q34 318 99 383T250 448T370 421T404 357Q404 334 387 320Z"></path><path id="MJX-4-TEX-N-6F" d="M28 214Q28 309 93 378T250 448Q340 448 405 380T471 215Q471 120 407 55T250 -10Q153 -10 91 57T28 214ZM250 30Q372 30 372 193V225V250Q372 272 371 288T364 326T348 362T317 390T268 410Q263 411 252 411Q222 411 195 399Q152 377 139 338T126 246V226Q126 130 145 91Q177 30 250 30Z"></path><path id="MJX-4-TEX-N-74" d="M27 422Q80 426 109 478T141 600V615H181V431H316V385H181V241Q182 116 182 100T189 68Q203 29 238 29Q282 29 292 100Q293 108 293 146V181H333V146V134Q333 57 291 17Q264 -10 221 -10Q187 -10 162 2T124 33T105 68T98 100Q97 107 97 248V385H18V422H27Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mi"><use xlink:href="#MJX-4-TEX-N-63"></use><use xlink:href="#MJX-4-TEX-N-6F" transform="translate(444, 0)"></use><use xlink:href="#MJX-4-TEX-N-74" transform="translate(944, 0)"></use></g></g></g></svg>',latex:"\\cot"},{name:"双曲函数 Hyperbolic function",img:"",latex:""},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="4.036ex" height="1.595ex" viewBox="0 -694 1784 705" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-7-TEX-N-73" d="M295 316Q295 356 268 385T190 414Q154 414 128 401Q98 382 98 349Q97 344 98 336T114 312T157 287Q175 282 201 278T245 269T277 256Q294 248 310 236T342 195T359 133Q359 71 321 31T198 -10H190Q138 -10 94 26L86 19L77 10Q71 4 65 -1L54 -11H46H42Q39 -11 33 -5V74V132Q33 153 35 157T45 162H54Q66 162 70 158T75 146T82 119T101 77Q136 26 198 26Q295 26 295 104Q295 133 277 151Q257 175 194 187T111 210Q75 227 54 256T33 318Q33 357 50 384T93 424T143 442T187 447H198Q238 447 268 432L283 424L292 431Q302 440 314 448H322H326Q329 448 335 442V310L329 304H301Q295 310 295 316Z"></path><path id="MJX-7-TEX-N-69" d="M69 609Q69 637 87 653T131 669Q154 667 171 652T188 609Q188 579 171 564T129 549Q104 549 87 564T69 609ZM247 0Q232 3 143 3Q132 3 106 3T56 1L34 0H26V46H42Q70 46 91 49Q100 53 102 60T104 102V205V293Q104 345 102 359T88 378Q74 385 41 385H30V408Q30 431 32 431L42 432Q52 433 70 434T106 436Q123 437 142 438T171 441T182 442H185V62Q190 52 197 50T232 46H255V0H247Z"></path><path id="MJX-7-TEX-N-6E" d="M41 46H55Q94 46 102 60V68Q102 77 102 91T102 122T103 161T103 203Q103 234 103 269T102 328V351Q99 370 88 376T43 385H25V408Q25 431 27 431L37 432Q47 433 65 434T102 436Q119 437 138 438T167 441T178 442H181V402Q181 364 182 364T187 369T199 384T218 402T247 421T285 437Q305 442 336 442Q450 438 463 329Q464 322 464 190V104Q464 66 466 59T477 49Q498 46 526 46H542V0H534L510 1Q487 2 460 2T422 3Q319 3 310 0H302V46H318Q379 46 379 62Q380 64 380 200Q379 335 378 343Q372 371 358 385T334 402T308 404Q263 404 229 370Q202 343 195 315T187 232V168V108Q187 78 188 68T191 55T200 49Q221 46 249 46H265V0H257L234 1Q210 2 183 2T145 3Q42 3 33 0H25V46H41Z"></path><path id="MJX-7-TEX-N-68" d="M41 46H55Q94 46 102 60V68Q102 77 102 91T102 124T102 167T103 217T103 272T103 329Q103 366 103 407T103 482T102 542T102 586T102 603Q99 622 88 628T43 637H25V660Q25 683 27 683L37 684Q47 685 66 686T103 688Q120 689 140 690T170 693T181 694H184V367Q244 442 328 442Q451 442 463 329Q464 322 464 190V104Q464 66 466 59T477 49Q498 46 526 46H542V0H534L510 1Q487 2 460 2T422 3Q319 3 310 0H302V46H318Q379 46 379 62Q380 64 380 200Q379 335 378 343Q372 371 358 385T334 402T308 404Q263 404 229 370Q202 343 195 315T187 232V168V108Q187 78 188 68T191 55T200 49Q221 46 249 46H265V0H257L234 1Q210 2 183 2T145 3Q42 3 33 0H25V46H41Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mi"><use xlink:href="#MJX-7-TEX-N-73"></use><use xlink:href="#MJX-7-TEX-N-69" transform="translate(394, 0)"></use><use xlink:href="#MJX-7-TEX-N-6E" transform="translate(672, 0)"></use><use xlink:href="#MJX-7-TEX-N-68" transform="translate(1228, 0)"></use></g></g></g></svg>',latex:"\\sinh "},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="4.285ex" height="1.595ex" viewBox="0 -694 1894 705" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-8-TEX-N-63" d="M370 305T349 305T313 320T297 358Q297 381 312 396Q317 401 317 402T307 404Q281 408 258 408Q209 408 178 376Q131 329 131 219Q131 137 162 90Q203 29 272 29Q313 29 338 55T374 117Q376 125 379 127T395 129H409Q415 123 415 120Q415 116 411 104T395 71T366 33T318 2T249 -11Q163 -11 99 53T34 214Q34 318 99 383T250 448T370 421T404 357Q404 334 387 320Z"></path><path id="MJX-8-TEX-N-6F" d="M28 214Q28 309 93 378T250 448Q340 448 405 380T471 215Q471 120 407 55T250 -10Q153 -10 91 57T28 214ZM250 30Q372 30 372 193V225V250Q372 272 371 288T364 326T348 362T317 390T268 410Q263 411 252 411Q222 411 195 399Q152 377 139 338T126 246V226Q126 130 145 91Q177 30 250 30Z"></path><path id="MJX-8-TEX-N-73" d="M295 316Q295 356 268 385T190 414Q154 414 128 401Q98 382 98 349Q97 344 98 336T114 312T157 287Q175 282 201 278T245 269T277 256Q294 248 310 236T342 195T359 133Q359 71 321 31T198 -10H190Q138 -10 94 26L86 19L77 10Q71 4 65 -1L54 -11H46H42Q39 -11 33 -5V74V132Q33 153 35 157T45 162H54Q66 162 70 158T75 146T82 119T101 77Q136 26 198 26Q295 26 295 104Q295 133 277 151Q257 175 194 187T111 210Q75 227 54 256T33 318Q33 357 50 384T93 424T143 442T187 447H198Q238 447 268 432L283 424L292 431Q302 440 314 448H322H326Q329 448 335 442V310L329 304H301Q295 310 295 316Z"></path><path id="MJX-8-TEX-N-68" d="M41 46H55Q94 46 102 60V68Q102 77 102 91T102 124T102 167T103 217T103 272T103 329Q103 366 103 407T103 482T102 542T102 586T102 603Q99 622 88 628T43 637H25V660Q25 683 27 683L37 684Q47 685 66 686T103 688Q120 689 140 690T170 693T181 694H184V367Q244 442 328 442Q451 442 463 329Q464 322 464 190V104Q464 66 466 59T477 49Q498 46 526 46H542V0H534L510 1Q487 2 460 2T422 3Q319 3 310 0H302V46H318Q379 46 379 62Q380 64 380 200Q379 335 378 343Q372 371 358 385T334 402T308 404Q263 404 229 370Q202 343 195 315T187 232V168V108Q187 78 188 68T191 55T200 49Q221 46 249 46H265V0H257L234 1Q210 2 183 2T145 3Q42 3 33 0H25V46H41Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mi"><use xlink:href="#MJX-8-TEX-N-63"></use><use xlink:href="#MJX-8-TEX-N-6F" transform="translate(444, 0)"></use><use xlink:href="#MJX-8-TEX-N-73" transform="translate(944, 0)"></use><use xlink:href="#MJX-8-TEX-N-68" transform="translate(1338, 0)"></use></g></g></g></svg>',latex:"\\cosh"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="4.527ex" height="1.595ex" viewBox="0 -694 2001 705" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-9-TEX-N-74" d="M27 422Q80 426 109 478T141 600V615H181V431H316V385H181V241Q182 116 182 100T189 68Q203 29 238 29Q282 29 292 100Q293 108 293 146V181H333V146V134Q333 57 291 17Q264 -10 221 -10Q187 -10 162 2T124 33T105 68T98 100Q97 107 97 248V385H18V422H27Z"></path><path id="MJX-9-TEX-N-61" d="M137 305T115 305T78 320T63 359Q63 394 97 421T218 448Q291 448 336 416T396 340Q401 326 401 309T402 194V124Q402 76 407 58T428 40Q443 40 448 56T453 109V145H493V106Q492 66 490 59Q481 29 455 12T400 -6T353 12T329 54V58L327 55Q325 52 322 49T314 40T302 29T287 17T269 6T247 -2T221 -8T190 -11Q130 -11 82 20T34 107Q34 128 41 147T68 188T116 225T194 253T304 268H318V290Q318 324 312 340Q290 411 215 411Q197 411 181 410T156 406T148 403Q170 388 170 359Q170 334 154 320ZM126 106Q126 75 150 51T209 26Q247 26 276 49T315 109Q317 116 318 175Q318 233 317 233Q309 233 296 232T251 223T193 203T147 166T126 106Z"></path><path id="MJX-9-TEX-N-6E" d="M41 46H55Q94 46 102 60V68Q102 77 102 91T102 122T103 161T103 203Q103 234 103 269T102 328V351Q99 370 88 376T43 385H25V408Q25 431 27 431L37 432Q47 433 65 434T102 436Q119 437 138 438T167 441T178 442H181V402Q181 364 182 364T187 369T199 384T218 402T247 421T285 437Q305 442 336 442Q450 438 463 329Q464 322 464 190V104Q464 66 466 59T477 49Q498 46 526 46H542V0H534L510 1Q487 2 460 2T422 3Q319 3 310 0H302V46H318Q379 46 379 62Q380 64 380 200Q379 335 378 343Q372 371 358 385T334 402T308 404Q263 404 229 370Q202 343 195 315T187 232V168V108Q187 78 188 68T191 55T200 49Q221 46 249 46H265V0H257L234 1Q210 2 183 2T145 3Q42 3 33 0H25V46H41Z"></path><path id="MJX-9-TEX-N-68" d="M41 46H55Q94 46 102 60V68Q102 77 102 91T102 124T102 167T103 217T103 272T103 329Q103 366 103 407T103 482T102 542T102 586T102 603Q99 622 88 628T43 637H25V660Q25 683 27 683L37 684Q47 685 66 686T103 688Q120 689 140 690T170 693T181 694H184V367Q244 442 328 442Q451 442 463 329Q464 322 464 190V104Q464 66 466 59T477 49Q498 46 526 46H542V0H534L510 1Q487 2 460 2T422 3Q319 3 310 0H302V46H318Q379 46 379 62Q380 64 380 200Q379 335 378 343Q372 371 358 385T334 402T308 404Q263 404 229 370Q202 343 195 315T187 232V168V108Q187 78 188 68T191 55T200 49Q221 46 249 46H265V0H257L234 1Q210 2 183 2T145 3Q42 3 33 0H25V46H41Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mi"><use xlink:href="#MJX-9-TEX-N-74"></use><use xlink:href="#MJX-9-TEX-N-61" transform="translate(389, 0)"></use><use xlink:href="#MJX-9-TEX-N-6E" transform="translate(889, 0)"></use><use xlink:href="#MJX-9-TEX-N-68" transform="translate(1445, 0)"></use></g></g></g></svg>',latex:"\\tanh"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="4.274ex" height="1.595ex" viewBox="0 -694 1889 705" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-10-TEX-N-63" d="M370 305T349 305T313 320T297 358Q297 381 312 396Q317 401 317 402T307 404Q281 408 258 408Q209 408 178 376Q131 329 131 219Q131 137 162 90Q203 29 272 29Q313 29 338 55T374 117Q376 125 379 127T395 129H409Q415 123 415 120Q415 116 411 104T395 71T366 33T318 2T249 -11Q163 -11 99 53T34 214Q34 318 99 383T250 448T370 421T404 357Q404 334 387 320Z"></path><path id="MJX-10-TEX-N-6F" d="M28 214Q28 309 93 378T250 448Q340 448 405 380T471 215Q471 120 407 55T250 -10Q153 -10 91 57T28 214ZM250 30Q372 30 372 193V225V250Q372 272 371 288T364 326T348 362T317 390T268 410Q263 411 252 411Q222 411 195 399Q152 377 139 338T126 246V226Q126 130 145 91Q177 30 250 30Z"></path><path id="MJX-10-TEX-N-74" d="M27 422Q80 426 109 478T141 600V615H181V431H316V385H181V241Q182 116 182 100T189 68Q203 29 238 29Q282 29 292 100Q293 108 293 146V181H333V146V134Q333 57 291 17Q264 -10 221 -10Q187 -10 162 2T124 33T105 68T98 100Q97 107 97 248V385H18V422H27Z"></path><path id="MJX-10-TEX-N-68" d="M41 46H55Q94 46 102 60V68Q102 77 102 91T102 124T102 167T103 217T103 272T103 329Q103 366 103 407T103 482T102 542T102 586T102 603Q99 622 88 628T43 637H25V660Q25 683 27 683L37 684Q47 685 66 686T103 688Q120 689 140 690T170 693T181 694H184V367Q244 442 328 442Q451 442 463 329Q464 322 464 190V104Q464 66 466 59T477 49Q498 46 526 46H542V0H534L510 1Q487 2 460 2T422 3Q319 3 310 0H302V46H318Q379 46 379 62Q380 64 380 200Q379 335 378 343Q372 371 358 385T334 402T308 404Q263 404 229 370Q202 343 195 315T187 232V168V108Q187 78 188 68T191 55T200 49Q221 46 249 46H265V0H257L234 1Q210 2 183 2T145 3Q42 3 33 0H25V46H41Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mi"><use xlink:href="#MJX-10-TEX-N-63"></use><use xlink:href="#MJX-10-TEX-N-6F" transform="translate(444, 0)"></use><use xlink:href="#MJX-10-TEX-N-74" transform="translate(944, 0)"></use><use xlink:href="#MJX-10-TEX-N-68" transform="translate(1333, 0)"></use></g></g></g></svg>',latex:"\\coth"}]}}},template:{title:"公式模板",subCategory:{algebra:{title:"代数",formulas:[{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="9.067ex" height="2.851ex" viewBox="0 -1114.2 4007.6 1260" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-100-TEX-SO-221A" d="M263 249Q264 249 315 130T417 -108T470 -228L725 302Q981 837 982 839Q989 850 1001 850Q1008 850 1013 844T1020 832V826L741 243Q645 43 540 -176Q479 -303 469 -324T453 -348Q449 -350 436 -350L424 -349L315 -96Q206 156 205 156L171 130Q138 104 137 104L111 130L263 249Z"></path><path id="MJX-100-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path><path id="MJX-100-TEX-N-32" d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z"></path><path id="MJX-100-TEX-N-2B" d="M56 237T56 250T70 270H369V420L370 570Q380 583 389 583Q402 583 409 568V270H707Q722 262 722 250T707 230H409V-68Q401 -82 391 -82H389H387Q375 -82 369 -68V230H70Q56 237 56 250Z"></path><path id="MJX-100-TEX-I-1D44F" d="M73 647Q73 657 77 670T89 683Q90 683 161 688T234 694Q246 694 246 685T212 542Q204 508 195 472T180 418L176 399Q176 396 182 402Q231 442 283 442Q345 442 383 396T422 280Q422 169 343 79T173 -11Q123 -11 82 27T40 150V159Q40 180 48 217T97 414Q147 611 147 623T109 637Q104 637 101 637H96Q86 637 83 637T76 640T73 647ZM336 325V331Q336 405 275 405Q258 405 240 397T207 376T181 352T163 330L157 322L136 236Q114 150 114 114Q114 66 138 42Q154 26 178 26Q211 26 245 58Q270 81 285 114T318 219Q336 291 336 325Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="msqrt"><g transform="translate(1020, 0)"><g data-mml-node="msup"><g data-mml-node="mi"><use xlink:href="#MJX-100-TEX-I-1D44E"></use></g><g data-mml-node="mn" transform="translate(529, 289) scale(0.707)"><use xlink:href="#MJX-100-TEX-N-32"></use></g></g><g data-mml-node="mo" transform="translate(1154.8, 0)"><use xlink:href="#MJX-100-TEX-N-2B"></use></g><g data-mml-node="msup" transform="translate(2155, 0)"><g data-mml-node="mi"><use xlink:href="#MJX-100-TEX-I-1D44F"></use></g><g data-mml-node="mn" transform="translate(429, 289) scale(0.707)"><use xlink:href="#MJX-100-TEX-N-32"></use></g></g></g><g data-mml-node="mo" transform="translate(0, 204.2)"><use xlink:href="#MJX-100-TEX-SO-221A"></use></g><rect width="2987.6" height="60" x="1020" y="994.2"></rect></g></g></g></svg>',latex:"\\sqrt{a^2+b^2}"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="12.249ex" height="4.635ex" viewBox="0 -1351.5 5414.1 2048.5" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-104-TEX-LO-28" d="M180 96T180 250T205 541T266 770T353 944T444 1069T527 1150H555Q561 1144 561 1141Q561 1137 545 1120T504 1072T447 995T386 878T330 721T288 513T272 251Q272 133 280 56Q293 -87 326 -209T399 -405T475 -531T536 -609T561 -640Q561 -643 555 -649H527Q483 -612 443 -568T353 -443T266 -270T205 -41Z"></path><path id="MJX-104-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path><path id="MJX-104-TEX-I-1D44F" d="M73 647Q73 657 77 670T89 683Q90 683 161 688T234 694Q246 694 246 685T212 542Q204 508 195 472T180 418L176 399Q176 396 182 402Q231 442 283 442Q345 442 383 396T422 280Q422 169 343 79T173 -11Q123 -11 82 27T40 150V159Q40 180 48 217T97 414Q147 611 147 623T109 637Q104 637 101 637H96Q86 637 83 637T76 640T73 647ZM336 325V331Q336 405 275 405Q258 405 240 397T207 376T181 352T163 330L157 322L136 236Q114 150 114 114Q114 66 138 42Q154 26 178 26Q211 26 245 58Q270 81 285 114T318 219Q336 291 336 325Z"></path><path id="MJX-104-TEX-LO-29" d="M35 1138Q35 1150 51 1150H56H69Q113 1113 153 1069T243 944T330 771T391 541T416 250T391 -40T330 -270T243 -443T152 -568T69 -649H56Q43 -649 39 -647T35 -637Q65 -607 110 -548Q283 -316 316 56Q324 133 324 251Q324 368 316 445Q278 877 48 1123Q36 1137 35 1138Z"></path><path id="MJX-104-TEX-I-1D45B" d="M21 287Q22 293 24 303T36 341T56 388T89 425T135 442Q171 442 195 424T225 390T231 369Q231 367 232 367L243 378Q304 442 382 442Q436 442 469 415T503 336T465 179T427 52Q427 26 444 26Q450 26 453 27Q482 32 505 65T540 145Q542 153 560 153Q580 153 580 145Q580 144 576 130Q568 101 554 73T508 17T439 -10Q392 -10 371 17T350 73Q350 92 386 193T423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 180T152 343Q153 348 153 366Q153 405 129 405Q91 405 66 305Q60 285 60 284Q58 278 41 278H27Q21 284 21 287Z"></path><path id="MJX-104-TEX-N-3D" d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="msup"><g data-mml-node="mrow"><g data-mml-node="mo"><use xlink:href="#MJX-104-TEX-LO-28"></use></g><g data-mml-node="mfrac" transform="translate(597, 0)"><g data-mml-node="mi" transform="translate(220, 676)"><use xlink:href="#MJX-104-TEX-I-1D44E"></use></g><g data-mml-node="mi" transform="translate(270, -686)"><use xlink:href="#MJX-104-TEX-I-1D44F"></use></g><rect width="729" height="60" x="120" y="220"></rect></g><g data-mml-node="mo" transform="translate(1566, 0)"><use xlink:href="#MJX-104-TEX-LO-29"></use></g></g><g data-mml-node="TeXAtom" transform="translate(2163, 876.6) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-104-TEX-I-1D45B"></use></g></g></g><g data-mml-node="mo" transform="translate(2915, 0)"><use xlink:href="#MJX-104-TEX-N-3D"></use></g><g data-mml-node="mfrac" transform="translate(3970.8, 0)"><g data-mml-node="msup" transform="translate(220, 676)"><g data-mml-node="mi"><use xlink:href="#MJX-104-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, 363) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-104-TEX-I-1D45B"></use></g></g></g><g data-mml-node="msup" transform="translate(270, -686)"><g data-mml-node="mi"><use xlink:href="#MJX-104-TEX-I-1D44F"></use></g><g data-mml-node="TeXAtom" transform="translate(429, 289) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-104-TEX-I-1D45B"></use></g></g></g><rect width="1203.3" height="60" x="120" y="220"></rect></g></g></g></svg>',latex:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="20.69ex" height="5.291ex" viewBox="0 -1642.5 9145 2338.5" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-116-TEX-I-1D465" d="M52 289Q59 331 106 386T222 442Q257 442 286 424T329 379Q371 442 430 442Q467 442 494 420T522 361Q522 332 508 314T481 292T458 288Q439 288 427 299T415 328Q415 374 465 391Q454 404 425 404Q412 404 406 402Q368 386 350 336Q290 115 290 78Q290 50 306 38T341 26Q378 26 414 59T463 140Q466 150 469 151T485 153H489Q504 153 504 145Q504 144 502 134Q486 77 440 33T333 -11Q263 -11 227 52Q186 -10 133 -10H127Q78 -10 57 16T35 71Q35 103 54 123T99 143Q142 143 142 101Q142 81 130 66T107 46T94 41L91 40Q91 39 97 36T113 29T132 26Q168 26 194 71Q203 87 217 139T245 247T261 313Q266 340 266 352Q266 380 251 392T217 404Q177 404 142 372T93 290Q91 281 88 280T72 278H58Q52 284 52 289Z"></path><path id="MJX-116-TEX-N-3D" d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z"></path><path id="MJX-116-TEX-N-2212" d="M84 237T84 250T98 270H679Q694 262 694 250T679 230H98Q84 237 84 250Z"></path><path id="MJX-116-TEX-I-1D44F" d="M73 647Q73 657 77 670T89 683Q90 683 161 688T234 694Q246 694 246 685T212 542Q204 508 195 472T180 418L176 399Q176 396 182 402Q231 442 283 442Q345 442 383 396T422 280Q422 169 343 79T173 -11Q123 -11 82 27T40 150V159Q40 180 48 217T97 414Q147 611 147 623T109 637Q104 637 101 637H96Q86 637 83 637T76 640T73 647ZM336 325V331Q336 405 275 405Q258 405 240 397T207 376T181 352T163 330L157 322L136 236Q114 150 114 114Q114 66 138 42Q154 26 178 26Q211 26 245 58Q270 81 285 114T318 219Q336 291 336 325Z"></path><path id="MJX-116-TEX-N-B1" d="M56 320T56 333T70 353H369V502Q369 651 371 655Q376 666 388 666Q402 666 405 654T409 596V500V353H707Q722 345 722 333Q722 320 707 313H409V40H707Q722 32 722 20T707 0H70Q56 7 56 20T70 40H369V313H70Q56 320 56 333Z"></path><path id="MJX-116-TEX-N-221A" d="M95 178Q89 178 81 186T72 200T103 230T169 280T207 309Q209 311 212 311H213Q219 311 227 294T281 177Q300 134 312 108L397 -77Q398 -77 501 136T707 565T814 786Q820 800 834 800Q841 800 846 794T853 782V776L620 293L385 -193Q381 -200 366 -200Q357 -200 354 -197Q352 -195 256 15L160 225L144 214Q129 202 113 190T95 178Z"></path><path id="MJX-116-TEX-N-32" d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z"></path><path id="MJX-116-TEX-N-34" d="M462 0Q444 3 333 3Q217 3 199 0H190V46H221Q241 46 248 46T265 48T279 53T286 61Q287 63 287 115V165H28V211L179 442Q332 674 334 675Q336 677 355 677H373L379 671V211H471V165H379V114Q379 73 379 66T385 54Q393 47 442 46H471V0H462ZM293 211V545L74 212L183 211H293Z"></path><path id="MJX-116-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path><path id="MJX-116-TEX-I-1D450" d="M34 159Q34 268 120 355T306 442Q362 442 394 418T427 355Q427 326 408 306T360 285Q341 285 330 295T319 325T330 359T352 380T366 386H367Q367 388 361 392T340 400T306 404Q276 404 249 390Q228 381 206 359Q162 315 142 235T121 119Q121 73 147 50Q169 26 205 26H209Q321 26 394 111Q403 121 406 121Q410 121 419 112T429 98T420 83T391 55T346 25T282 0T202 -11Q127 -11 81 37T34 159Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mi"><use xlink:href="#MJX-116-TEX-I-1D465"></use></g><g data-mml-node="mo" transform="translate(849.8, 0)"><use xlink:href="#MJX-116-TEX-N-3D"></use></g><g data-mml-node="TeXAtom" data-mjx-texclass="ORD" transform="translate(1905.6, 0)"><g data-mml-node="mfrac"><g data-mml-node="mrow" transform="translate(220, 676)"><g data-mml-node="mo"><use xlink:href="#MJX-116-TEX-N-2212"></use></g><g data-mml-node="mi" transform="translate(778, 0)"><use xlink:href="#MJX-116-TEX-I-1D44F"></use></g><g data-mml-node="mo" transform="translate(1429.2, 0)"><use xlink:href="#MJX-116-TEX-N-B1"></use></g><g data-mml-node="msqrt" transform="translate(2429.4, 0)"><g transform="translate(853, 0)"><g data-mml-node="msup"><g data-mml-node="mi"><use xlink:href="#MJX-116-TEX-I-1D44F"></use></g><g data-mml-node="mn" transform="translate(429, 289) scale(0.707)"><use xlink:href="#MJX-116-TEX-N-32"></use></g></g><g data-mml-node="mo" transform="translate(1054.8, 0)"><use xlink:href="#MJX-116-TEX-N-2212"></use></g><g data-mml-node="mn" transform="translate(2055, 0)"><use xlink:href="#MJX-116-TEX-N-34"></use></g><g data-mml-node="mi" transform="translate(2555, 0)"><use xlink:href="#MJX-116-TEX-I-1D44E"></use></g><g data-mml-node="mi" transform="translate(3084, 0)"><use xlink:href="#MJX-116-TEX-I-1D450"></use></g></g><g data-mml-node="mo" transform="translate(0, 106.5)"><use xlink:href="#MJX-116-TEX-N-221A"></use></g><rect width="3517" height="60" x="853" y="846.5"></rect></g></g><g data-mml-node="mrow" transform="translate(3105.2, -686)"><g data-mml-node="mn"><use xlink:href="#MJX-116-TEX-N-32"></use></g><g data-mml-node="mi" transform="translate(500, 0)"><use xlink:href="#MJX-116-TEX-I-1D44E"></use></g></g><rect width="6999.4" height="60" x="120" y="220"></rect></g></g></g></g></svg>',latex:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="15.079ex" height="5.43ex" viewBox="0 -1450 6665 2400" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-118-TEX-S3-7B" d="M618 -943L612 -949H582L568 -943Q472 -903 411 -841T332 -703Q327 -682 327 -653T325 -350Q324 -28 323 -18Q317 24 301 61T264 124T221 171T179 205T147 225T132 234Q130 238 130 250Q130 255 130 258T131 264T132 267T134 269T139 272T144 275Q207 308 256 367Q310 436 323 519Q324 529 325 851Q326 1124 326 1154T332 1205Q369 1358 566 1443L582 1450H612L618 1444V1429Q618 1413 616 1411L608 1406Q599 1402 585 1393T552 1372T515 1343T479 1305T449 1257T429 1200Q425 1180 425 1152T423 851Q422 579 422 549T416 498Q407 459 388 424T346 364T297 318T250 284T214 264T197 254L188 251L205 242Q290 200 345 138T416 3Q421 -18 421 -48T423 -349Q423 -397 423 -472Q424 -677 428 -694Q429 -697 429 -699Q434 -722 443 -743T465 -782T491 -816T519 -845T548 -868T574 -886T595 -899T610 -908L616 -910Q618 -912 618 -928V-943Z"></path><path id="MJX-118-TEX-I-1D465" d="M52 289Q59 331 106 386T222 442Q257 442 286 424T329 379Q371 442 430 442Q467 442 494 420T522 361Q522 332 508 314T481 292T458 288Q439 288 427 299T415 328Q415 374 465 391Q454 404 425 404Q412 404 406 402Q368 386 350 336Q290 115 290 78Q290 50 306 38T341 26Q378 26 414 59T463 140Q466 150 469 151T485 153H489Q504 153 504 145Q504 144 502 134Q486 77 440 33T333 -11Q263 -11 227 52Q186 -10 133 -10H127Q78 -10 57 16T35 71Q35 103 54 123T99 143Q142 143 142 101Q142 81 130 66T107 46T94 41L91 40Q91 39 97 36T113 29T132 26Q168 26 194 71Q203 87 217 139T245 247T261 313Q266 340 266 352Q266 380 251 392T217 404Q177 404 142 372T93 290Q91 281 88 280T72 278H58Q52 284 52 289Z"></path><path id="MJX-118-TEX-N-3D" d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z"></path><path id="MJX-118-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path><path id="MJX-118-TEX-N-2B" d="M56 237T56 250T70 270H369V420L370 570Q380 583 389 583Q402 583 409 568V270H707Q722 262 722 250T707 230H409V-68Q401 -82 391 -82H389H387Q375 -82 369 -68V230H70Q56 237 56 250Z"></path><path id="MJX-118-TEX-I-1D45F" d="M21 287Q22 290 23 295T28 317T38 348T53 381T73 411T99 433T132 442Q161 442 183 430T214 408T225 388Q227 382 228 382T236 389Q284 441 347 441H350Q398 441 422 400Q430 381 430 363Q430 333 417 315T391 292T366 288Q346 288 334 299T322 328Q322 376 378 392Q356 405 342 405Q286 405 239 331Q229 315 224 298T190 165Q156 25 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 114 189T154 366Q154 405 128 405Q107 405 92 377T68 316T57 280Q55 278 41 278H27Q21 284 21 287Z"></path><path id="MJX-118-TEX-N-63" d="M370 305T349 305T313 320T297 358Q297 381 312 396Q317 401 317 402T307 404Q281 408 258 408Q209 408 178 376Q131 329 131 219Q131 137 162 90Q203 29 272 29Q313 29 338 55T374 117Q376 125 379 127T395 129H409Q415 123 415 120Q415 116 411 104T395 71T366 33T318 2T249 -11Q163 -11 99 53T34 214Q34 318 99 383T250 448T370 421T404 357Q404 334 387 320Z"></path><path id="MJX-118-TEX-N-6F" d="M28 214Q28 309 93 378T250 448Q340 448 405 380T471 215Q471 120 407 55T250 -10Q153 -10 91 57T28 214ZM250 30Q372 30 372 193V225V250Q372 272 371 288T364 326T348 362T317 390T268 410Q263 411 252 411Q222 411 195 399Q152 377 139 338T126 246V226Q126 130 145 91Q177 30 250 30Z"></path><path id="MJX-118-TEX-N-73" d="M295 316Q295 356 268 385T190 414Q154 414 128 401Q98 382 98 349Q97 344 98 336T114 312T157 287Q175 282 201 278T245 269T277 256Q294 248 310 236T342 195T359 133Q359 71 321 31T198 -10H190Q138 -10 94 26L86 19L77 10Q71 4 65 -1L54 -11H46H42Q39 -11 33 -5V74V132Q33 153 35 157T45 162H54Q66 162 70 158T75 146T82 119T101 77Q136 26 198 26Q295 26 295 104Q295 133 277 151Q257 175 194 187T111 210Q75 227 54 256T33 318Q33 357 50 384T93 424T143 442T187 447H198Q238 447 268 432L283 424L292 431Q302 440 314 448H322H326Q329 448 335 442V310L329 304H301Q295 310 295 316Z"></path><path id="MJX-118-TEX-I-1D703" d="M35 200Q35 302 74 415T180 610T319 704Q320 704 327 704T339 705Q393 701 423 656Q462 596 462 495Q462 380 417 261T302 66T168 -10H161Q125 -10 99 10T60 63T41 130T35 200ZM383 566Q383 668 330 668Q294 668 260 623T204 521T170 421T157 371Q206 370 254 370L351 371Q352 372 359 404T375 484T383 566ZM113 132Q113 26 166 26Q181 26 198 36T239 74T287 161T335 307L340 324H145Q145 321 136 286T120 208T113 132Z"></path><path id="MJX-118-TEX-I-1D466" d="M21 287Q21 301 36 335T84 406T158 442Q199 442 224 419T250 355Q248 336 247 334Q247 331 231 288T198 191T182 105Q182 62 196 45T238 27Q261 27 281 38T312 61T339 94Q339 95 344 114T358 173T377 247Q415 397 419 404Q432 431 462 431Q475 431 483 424T494 412T496 403Q496 390 447 193T391 -23Q363 -106 294 -155T156 -205Q111 -205 77 -183T43 -117Q43 -95 50 -80T69 -58T89 -48T106 -45Q150 -45 150 -87Q150 -107 138 -122T115 -142T102 -147L99 -148Q101 -153 118 -160T152 -167H160Q177 -167 186 -165Q219 -156 247 -127T290 -65T313 -9T321 21L315 17Q309 13 296 6T270 -6Q250 -11 231 -11Q185 -11 150 11T104 82Q103 89 103 113Q103 170 138 262T173 379Q173 380 173 381Q173 390 173 393T169 400T158 404H154Q131 404 112 385T82 344T65 302T57 280Q55 278 41 278H27Q21 284 21 287Z"></path><path id="MJX-118-TEX-I-1D44F" d="M73 647Q73 657 77 670T89 683Q90 683 161 688T234 694Q246 694 246 685T212 542Q204 508 195 472T180 418L176 399Q176 396 182 402Q231 442 283 442Q345 442 383 396T422 280Q422 169 343 79T173 -11Q123 -11 82 27T40 150V159Q40 180 48 217T97 414Q147 611 147 623T109 637Q104 637 101 637H96Q86 637 83 637T76 640T73 647ZM336 325V331Q336 405 275 405Q258 405 240 397T207 376T181 352T163 330L157 322L136 236Q114 150 114 114Q114 66 138 42Q154 26 178 26Q211 26 245 58Q270 81 285 114T318 219Q336 291 336 325Z"></path><path id="MJX-118-TEX-N-69" d="M69 609Q69 637 87 653T131 669Q154 667 171 652T188 609Q188 579 171 564T129 549Q104 549 87 564T69 609ZM247 0Q232 3 143 3Q132 3 106 3T56 1L34 0H26V46H42Q70 46 91 49Q100 53 102 60T104 102V205V293Q104 345 102 359T88 378Q74 385 41 385H30V408Q30 431 32 431L42 432Q52 433 70 434T106 436Q123 437 142 438T171 441T182 442H185V62Q190 52 197 50T232 46H255V0H247Z"></path><path id="MJX-118-TEX-N-6E" d="M41 46H55Q94 46 102 60V68Q102 77 102 91T102 122T103 161T103 203Q103 234 103 269T102 328V351Q99 370 88 376T43 385H25V408Q25 431 27 431L37 432Q47 433 65 434T102 436Q119 437 138 438T167 441T178 442H181V402Q181 364 182 364T187 369T199 384T218 402T247 421T285 437Q305 442 336 442Q450 438 463 329Q464 322 464 190V104Q464 66 466 59T477 49Q498 46 526 46H542V0H534L510 1Q487 2 460 2T422 3Q319 3 310 0H302V46H318Q379 46 379 62Q380 64 380 200Q379 335 378 343Q372 371 358 385T334 402T308 404Q263 404 229 370Q202 343 195 315T187 232V168V108Q187 78 188 68T191 55T200 49Q221 46 249 46H265V0H257L234 1Q210 2 183 2T145 3Q42 3 33 0H25V46H41Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mrow"><g data-mml-node="mo"><use xlink:href="#MJX-118-TEX-S3-7B"></use></g><g data-mml-node="mtable" transform="translate(750, 0)"><g data-mml-node="mtr" transform="translate(0, 700)"><g data-mml-node="mtd"><g data-mml-node="mi"><use xlink:href="#MJX-118-TEX-I-1D465"></use></g><g data-mml-node="mo" transform="translate(849.8, 0)"><use xlink:href="#MJX-118-TEX-N-3D"></use></g><g data-mml-node="mi" transform="translate(1905.6, 0)"><use xlink:href="#MJX-118-TEX-I-1D44E"></use></g><g data-mml-node="mo" transform="translate(2656.8, 0)"><use xlink:href="#MJX-118-TEX-N-2B"></use></g><g data-mml-node="mi" transform="translate(3657, 0)"><use xlink:href="#MJX-118-TEX-I-1D45F"></use></g><g data-mml-node="mtext" transform="translate(4108, 0)"><use xlink:href="#MJX-118-TEX-N-63"></use><use xlink:href="#MJX-118-TEX-N-6F" transform="translate(444, 0)"></use><use xlink:href="#MJX-118-TEX-N-73" transform="translate(944, 0)"></use></g><g data-mml-node="mi" transform="translate(5446, 0)"><use xlink:href="#MJX-118-TEX-I-1D703"></use></g></g></g><g data-mml-node="mtr" transform="translate(0, -700)"><g data-mml-node="mtd" transform="translate(146, 0)"><g data-mml-node="mi"><use xlink:href="#MJX-118-TEX-I-1D466"></use></g><g data-mml-node="mo" transform="translate(767.8, 0)"><use xlink:href="#MJX-118-TEX-N-3D"></use></g><g data-mml-node="mi" transform="translate(1823.6, 0)"><use xlink:href="#MJX-118-TEX-I-1D44F"></use></g><g data-mml-node="mo" transform="translate(2474.8, 0)"><use xlink:href="#MJX-118-TEX-N-2B"></use></g><g data-mml-node="mi" transform="translate(3475, 0)"><use xlink:href="#MJX-118-TEX-I-1D45F"></use></g><g data-mml-node="mtext" transform="translate(3926, 0)"><use xlink:href="#MJX-118-TEX-N-73"></use><use xlink:href="#MJX-118-TEX-N-69" transform="translate(394, 0)"></use><use xlink:href="#MJX-118-TEX-N-6E" transform="translate(672, 0)"></use></g><g data-mml-node="mi" transform="translate(5154, 0)"><use xlink:href="#MJX-118-TEX-I-1D703"></use></g></g></g></g><g data-mml-node="mo" transform="translate(6665, 0)"></g></g></g></g></svg>',latex:"\n\\left\\{\\begin{matrix}\n  x=a + r\\text{cos}\\theta \\\\\n  y=b + r\\text{sin}\\theta \n\\end{matrix}\\right."}]},array:{title:"矩阵",formulas:[{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="7.855ex" height="5.43ex" viewBox="0 -1450 3472 2400" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-122-TEX-S3-28" d="M701 -940Q701 -943 695 -949H664Q662 -947 636 -922T591 -879T537 -818T475 -737T412 -636T350 -511T295 -362T250 -186T221 17T209 251Q209 962 573 1361Q596 1386 616 1405T649 1437T664 1450H695Q701 1444 701 1441Q701 1436 681 1415T629 1356T557 1261T476 1118T400 927T340 675T308 359Q306 321 306 250Q306 -139 400 -430T690 -924Q701 -936 701 -940Z"></path><path id="MJX-122-TEX-N-31" d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z"></path><path id="MJX-122-TEX-N-30" d="M96 585Q152 666 249 666Q297 666 345 640T423 548Q460 465 460 320Q460 165 417 83Q397 41 362 16T301 -15T250 -22Q224 -22 198 -16T137 16T82 83Q39 165 39 320Q39 494 96 585ZM321 597Q291 629 250 629Q208 629 178 597Q153 571 145 525T137 333Q137 175 145 125T181 46Q209 16 250 16Q290 16 318 46Q347 76 354 130T362 333Q362 478 354 524T321 597Z"></path><path id="MJX-122-TEX-S3-29" d="M34 1438Q34 1446 37 1448T50 1450H56H71Q73 1448 99 1423T144 1380T198 1319T260 1238T323 1137T385 1013T440 864T485 688T514 485T526 251Q526 134 519 53Q472 -519 162 -860Q139 -885 119 -904T86 -936T71 -949H56Q43 -949 39 -947T34 -937Q88 -883 140 -813Q428 -430 428 251Q428 453 402 628T338 922T245 1146T145 1309T46 1425Q44 1427 42 1429T39 1433T36 1436L34 1438Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mrow"><g data-mml-node="mo"><use xlink:href="#MJX-122-TEX-S3-28"></use></g><g data-mml-node="mtable" transform="translate(736, 0)"><g data-mml-node="mtr" transform="translate(0, 700)"><g data-mml-node="mtd"><g data-mml-node="mn"><use xlink:href="#MJX-122-TEX-N-31"></use></g></g><g data-mml-node="mtd" transform="translate(1500, 0)"><g data-mml-node="mn"><use xlink:href="#MJX-122-TEX-N-30"></use></g></g></g><g data-mml-node="mtr" transform="translate(0, -700)"><g data-mml-node="mtd"><g data-mml-node="mn"><use xlink:href="#MJX-122-TEX-N-30"></use></g></g><g data-mml-node="mtd" transform="translate(1500, 0)"><g data-mml-node="mn"><use xlink:href="#MJX-122-TEX-N-31"></use></g></g></g></g><g data-mml-node="mo" transform="translate(2736, 0)"><use xlink:href="#MJX-122-TEX-S3-29"></use></g></g></g></g></svg>',latex:"\n\\begin{pmatrix}\n  1 & 0 \\\\\n  0 & 1\n\\end{pmatrix}"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="18.574ex" height="10.339ex" viewBox="0 -2535 8209.5 4570" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-126-TEX-S4-239B" d="M837 1154Q843 1148 843 1145Q843 1141 818 1106T753 1002T667 841T574 604T494 299Q417 -84 417 -609Q417 -641 416 -647T411 -654Q409 -655 366 -655Q299 -655 297 -654Q292 -652 292 -643T291 -583Q293 -400 304 -242T347 110T432 470T574 813T785 1136Q787 1139 790 1142T794 1147T796 1150T799 1152T802 1153T807 1154T813 1154H819H837Z"></path><path id="MJX-126-TEX-S4-239D" d="M843 -635Q843 -638 837 -644H820Q801 -644 800 -643Q792 -635 785 -626Q684 -503 605 -363T473 -75T385 216T330 518T302 809T291 1093Q291 1144 291 1153T296 1164Q298 1165 366 1165Q409 1165 411 1164Q415 1163 416 1157T417 1119Q417 529 517 109T833 -617Q843 -631 843 -635Z"></path><path id="MJX-126-TEX-S4-239C" d="M413 -9Q412 -9 407 -9T388 -10T354 -10Q300 -10 297 -9Q294 -8 293 -5Q291 5 291 127V300Q291 602 292 605L296 609Q298 610 366 610Q382 610 392 610T407 610T412 609Q416 609 416 592T417 473V127Q417 -9 413 -9Z"></path><path id="MJX-126-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path><path id="MJX-126-TEX-N-31" d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z"></path><path id="MJX-126-TEX-N-22EF" d="M78 250Q78 274 95 292T138 310Q162 310 180 294T199 251Q199 226 182 208T139 190T96 207T78 250ZM525 250Q525 274 542 292T585 310Q609 310 627 294T646 251Q646 226 629 208T586 190T543 207T525 250ZM972 250Q972 274 989 292T1032 310Q1056 310 1074 294T1093 251Q1093 226 1076 208T1033 190T990 207T972 250Z"></path><path id="MJX-126-TEX-I-1D45B" d="M21 287Q22 293 24 303T36 341T56 388T89 425T135 442Q171 442 195 424T225 390T231 369Q231 367 232 367L243 378Q304 442 382 442Q436 442 469 415T503 336T465 179T427 52Q427 26 444 26Q450 26 453 27Q482 32 505 65T540 145Q542 153 560 153Q580 153 580 145Q580 144 576 130Q568 101 554 73T508 17T439 -10Q392 -10 371 17T350 73Q350 92 386 193T423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 180T152 343Q153 348 153 366Q153 405 129 405Q91 405 66 305Q60 285 60 284Q58 278 41 278H27Q21 284 21 287Z"></path><path id="MJX-126-TEX-N-22EE" d="M78 30Q78 54 95 72T138 90Q162 90 180 74T199 31Q199 6 182 -12T139 -30T96 -13T78 30ZM78 440Q78 464 95 482T138 500Q162 500 180 484T199 441Q199 416 182 398T139 380T96 397T78 440ZM78 840Q78 864 95 882T138 900Q162 900 180 884T199 841Q199 816 182 798T139 780T96 797T78 840Z"></path><path id="MJX-126-TEX-N-22F1" d="M133 760Q133 784 150 802T193 820Q217 820 235 804T254 761Q254 736 237 718T194 700T151 717T133 760ZM580 460Q580 484 597 502T640 520Q664 520 682 504T701 461Q701 436 684 418T641 400T598 417T580 460ZM1027 160Q1027 184 1044 202T1087 220Q1111 220 1129 204T1148 161Q1148 136 1131 118T1088 100T1045 117T1027 160Z"></path><path id="MJX-126-TEX-I-1D45A" d="M21 287Q22 293 24 303T36 341T56 388T88 425T132 442T175 435T205 417T221 395T229 376L231 369Q231 367 232 367L243 378Q303 442 384 442Q401 442 415 440T441 433T460 423T475 411T485 398T493 385T497 373T500 364T502 357L510 367Q573 442 659 442Q713 442 746 415T780 336Q780 285 742 178T704 50Q705 36 709 31T724 26Q752 26 776 56T815 138Q818 149 821 151T837 153Q857 153 857 145Q857 144 853 130Q845 101 831 73T785 17T716 -10Q669 -10 648 17T627 73Q627 92 663 193T700 345Q700 404 656 404H651Q565 404 506 303L499 291L466 157Q433 26 428 16Q415 -11 385 -11Q372 -11 364 -4T353 8T350 18Q350 29 384 161L420 307Q423 322 423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 181Q151 335 151 342Q154 357 154 369Q154 405 129 405Q107 405 92 377T69 316T57 280Q55 278 41 278H27Q21 284 21 287Z"></path><path id="MJX-126-TEX-S4-239E" d="M31 1143Q31 1154 49 1154H59Q72 1154 75 1152T89 1136Q190 1013 269 873T401 585T489 294T544 -8T572 -299T583 -583Q583 -634 583 -643T577 -654Q575 -655 508 -655Q465 -655 463 -654Q459 -653 458 -647T457 -609Q457 -58 371 340T100 1037Q87 1059 61 1098T31 1143Z"></path><path id="MJX-126-TEX-S4-23A0" d="M56 -644H50Q31 -644 31 -635Q31 -632 37 -622Q69 -579 100 -527Q286 -228 371 170T457 1119Q457 1161 462 1164Q464 1165 520 1165Q575 1165 577 1164Q582 1162 582 1153T583 1093Q581 910 570 752T527 400T442 40T300 -303T89 -626Q78 -640 75 -642T61 -644H56Z"></path><path id="MJX-126-TEX-S4-239F" d="M579 -9Q578 -9 573 -9T554 -10T520 -10Q466 -10 463 -9Q460 -8 459 -5Q457 5 457 127V300Q457 602 458 605L462 609Q464 610 532 610Q548 610 558 610T573 610T578 609Q582 609 582 592T583 473V127Q583 -9 579 -9Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mrow"><g data-mml-node="mo"><use xlink:href="#MJX-126-TEX-S4-239B" transform="translate(0, 1381)"></use><use xlink:href="#MJX-126-TEX-S4-239D" transform="translate(0, -1391)"></use><svg width="875" height="1152" y="-326" x="0" viewBox="0 260.1 875 1152"><use xlink:href="#MJX-126-TEX-S4-239C" transform="scale(1, 2.787)"></use></svg></g><g data-mml-node="mtable" transform="translate(875, 0)"><g data-mml-node="mtr" transform="translate(0, 1785)"><g data-mml-node="mtd" transform="translate(133.6, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-126-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mn"><use xlink:href="#MJX-126-TEX-N-31"></use><use xlink:href="#MJX-126-TEX-N-31" transform="translate(500, 0)"></use></g></g></g></g><g data-mml-node="mtd" transform="translate(2608.4, 0)"><g data-mml-node="mo"><use xlink:href="#MJX-126-TEX-N-22EF"></use></g></g><g data-mml-node="mtd" transform="translate(4969, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-126-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mn"><use xlink:href="#MJX-126-TEX-N-31"></use></g><g data-mml-node="mi" transform="translate(500, 0)"><use xlink:href="#MJX-126-TEX-I-1D45B"></use></g></g></g></g></g><g data-mml-node="mtr" transform="translate(0, -385)"><g data-mml-node="mtd" transform="translate(637.7, 0)"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mo"><use xlink:href="#MJX-126-TEX-N-22EE"></use></g></g></g><g data-mml-node="mtd" transform="translate(2553.4, 0)"><g data-mml-node="mo"><use xlink:href="#MJX-126-TEX-N-22F1"></use></g></g><g data-mml-node="mtd" transform="translate(5508.4, 0)"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mo"><use xlink:href="#MJX-126-TEX-N-22EE"></use></g></g></g></g><g data-mml-node="mtr" transform="translate(0, -1785)"><g data-mml-node="mtd"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-126-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-126-TEX-I-1D45A"></use></g><g data-mml-node="mn" transform="translate(878, 0)"><use xlink:href="#MJX-126-TEX-N-31"></use></g></g></g></g><g data-mml-node="mtd" transform="translate(2608.4, 0)"><g data-mml-node="mo"><use xlink:href="#MJX-126-TEX-N-22EF"></use></g></g><g data-mml-node="mtd" transform="translate(4835.4, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-126-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-126-TEX-I-1D45A"></use></g><g data-mml-node="mi" transform="translate(878, 0)"><use xlink:href="#MJX-126-TEX-I-1D45B"></use></g></g></g></g></g></g><g data-mml-node="mo" transform="translate(7334.5, 0)"><use xlink:href="#MJX-126-TEX-S4-239E" transform="translate(0, 1381)"></use><use xlink:href="#MJX-126-TEX-S4-23A0" transform="translate(0, -1391)"></use><svg width="875" height="1152" y="-326" x="0" viewBox="0 260.1 875 1152"><use xlink:href="#MJX-126-TEX-S4-239F" transform="scale(1, 2.787)"></use></svg></g></g></g></g></svg>',latex:"\n\\begin{pmatrix}\n  a_{11} & \\cdots & a_{1n} \\\\\n  \\vdots & \\ddots & \\vdots \\\\\n  a_{m1} & \\cdots & a_{mn}\n\\end{pmatrix}"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="38.641ex" height="13.507ex" viewBox="0 -3235 17079.5 5970" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-128-TEX-I-1D434" d="M208 74Q208 50 254 46Q272 46 272 35Q272 34 270 22Q267 8 264 4T251 0Q249 0 239 0T205 1T141 2Q70 2 50 0H42Q35 7 35 11Q37 38 48 46H62Q132 49 164 96Q170 102 345 401T523 704Q530 716 547 716H555H572Q578 707 578 706L606 383Q634 60 636 57Q641 46 701 46Q726 46 726 36Q726 34 723 22Q720 7 718 4T704 0Q701 0 690 0T651 1T578 2Q484 2 455 0H443Q437 6 437 9T439 27Q443 40 445 43L449 46H469Q523 49 533 63L521 213H283L249 155Q208 86 208 74ZM516 260Q516 271 504 416T490 562L463 519Q447 492 400 412L310 260L413 259Q516 259 516 260Z"></path><path id="MJX-128-TEX-I-1D45A" d="M21 287Q22 293 24 303T36 341T56 388T88 425T132 442T175 435T205 417T221 395T229 376L231 369Q231 367 232 367L243 378Q303 442 384 442Q401 442 415 440T441 433T460 423T475 411T485 398T493 385T497 373T500 364T502 357L510 367Q573 442 659 442Q713 442 746 415T780 336Q780 285 742 178T704 50Q705 36 709 31T724 26Q752 26 776 56T815 138Q818 149 821 151T837 153Q857 153 857 145Q857 144 853 130Q845 101 831 73T785 17T716 -10Q669 -10 648 17T627 73Q627 92 663 193T700 345Q700 404 656 404H651Q565 404 506 303L499 291L466 157Q433 26 428 16Q415 -11 385 -11Q372 -11 364 -4T353 8T350 18Q350 29 384 161L420 307Q423 322 423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 181Q151 335 151 342Q154 357 154 369Q154 405 129 405Q107 405 92 377T69 316T57 280Q55 278 41 278H27Q21 284 21 287Z"></path><path id="MJX-128-TEX-N-D7" d="M630 29Q630 9 609 9Q604 9 587 25T493 118L389 222L284 117Q178 13 175 11Q171 9 168 9Q160 9 154 15T147 29Q147 36 161 51T255 146L359 250L255 354Q174 435 161 449T147 471Q147 480 153 485T168 490Q173 490 175 489Q178 487 284 383L389 278L493 382Q570 459 587 475T609 491Q630 491 630 471Q630 464 620 453T522 355L418 250L522 145Q606 61 618 48T630 29Z"></path><path id="MJX-128-TEX-I-1D45B" d="M21 287Q22 293 24 303T36 341T56 388T89 425T135 442Q171 442 195 424T225 390T231 369Q231 367 232 367L243 378Q304 442 382 442Q436 442 469 415T503 336T465 179T427 52Q427 26 444 26Q450 26 453 27Q482 32 505 65T540 145Q542 153 560 153Q580 153 580 145Q580 144 576 130Q568 101 554 73T508 17T439 -10Q392 -10 371 17T350 73Q350 92 386 193T423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 180T152 343Q153 348 153 366Q153 405 129 405Q91 405 66 305Q60 285 60 284Q58 278 41 278H27Q21 284 21 287Z"></path><path id="MJX-128-TEX-N-3D" d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z"></path><path id="MJX-128-TEX-S4-23A1" d="M319 -645V1154H666V1070H403V-645H319Z"></path><path id="MJX-128-TEX-S4-23A3" d="M319 -644V1155H403V-560H666V-644H319Z"></path><path id="MJX-128-TEX-S4-23A2" d="M319 0V602H403V0H319Z"></path><path id="MJX-128-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path><path id="MJX-128-TEX-N-31" d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z"></path><path id="MJX-128-TEX-N-32" d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z"></path><path id="MJX-128-TEX-N-22EF" d="M78 250Q78 274 95 292T138 310Q162 310 180 294T199 251Q199 226 182 208T139 190T96 207T78 250ZM525 250Q525 274 542 292T585 310Q609 310 627 294T646 251Q646 226 629 208T586 190T543 207T525 250ZM972 250Q972 274 989 292T1032 310Q1056 310 1074 294T1093 251Q1093 226 1076 208T1033 190T990 207T972 250Z"></path><path id="MJX-128-TEX-N-22EE" d="M78 30Q78 54 95 72T138 90Q162 90 180 74T199 31Q199 6 182 -12T139 -30T96 -13T78 30ZM78 440Q78 464 95 482T138 500Q162 500 180 484T199 441Q199 416 182 398T139 380T96 397T78 440ZM78 840Q78 864 95 882T138 900Q162 900 180 884T199 841Q199 816 182 798T139 780T96 797T78 840Z"></path><path id="MJX-128-TEX-N-22F1" d="M133 760Q133 784 150 802T193 820Q217 820 235 804T254 761Q254 736 237 718T194 700T151 717T133 760ZM580 460Q580 484 597 502T640 520Q664 520 682 504T701 461Q701 436 684 418T641 400T598 417T580 460ZM1027 160Q1027 184 1044 202T1087 220Q1111 220 1129 204T1148 161Q1148 136 1131 118T1088 100T1045 117T1027 160Z"></path><path id="MJX-128-TEX-S4-23A4" d="M0 1070V1154H347V-645H263V1070H0Z"></path><path id="MJX-128-TEX-S4-23A6" d="M263 -560V1155H347V-644H0V-560H263Z"></path><path id="MJX-128-TEX-S4-23A5" d="M263 0V602H347V0H263Z"></path><path id="MJX-128-TEX-N-5B" d="M118 -250V750H255V710H158V-210H255V-250H118Z"></path><path id="MJX-128-TEX-I-1D456" d="M184 600Q184 624 203 642T247 661Q265 661 277 649T290 619Q290 596 270 577T226 557Q211 557 198 567T184 600ZM21 287Q21 295 30 318T54 369T98 420T158 442Q197 442 223 419T250 357Q250 340 236 301T196 196T154 83Q149 61 149 51Q149 26 166 26Q175 26 185 29T208 43T235 78T260 137Q263 149 265 151T282 153Q302 153 302 143Q302 135 293 112T268 61T223 11T161 -11Q129 -11 102 10T74 74Q74 91 79 106T122 220Q160 321 166 341T173 380Q173 404 156 404H154Q124 404 99 371T61 287Q60 286 59 284T58 281T56 279T53 278T49 278T41 278H27Q21 284 21 287Z"></path><path id="MJX-128-TEX-I-1D457" d="M297 596Q297 627 318 644T361 661Q378 661 389 651T403 623Q403 595 384 576T340 557Q322 557 310 567T297 596ZM288 376Q288 405 262 405Q240 405 220 393T185 362T161 325T144 293L137 279Q135 278 121 278H107Q101 284 101 286T105 299Q126 348 164 391T252 441Q253 441 260 441T272 442Q296 441 316 432Q341 418 354 401T367 348V332L318 133Q267 -67 264 -75Q246 -125 194 -164T75 -204Q25 -204 7 -183T-12 -137Q-12 -110 7 -91T53 -71Q70 -71 82 -81T95 -112Q95 -148 63 -167Q69 -168 77 -168Q111 -168 139 -140T182 -74L193 -32Q204 11 219 72T251 197T278 308T289 365Q289 372 288 376Z"></path><path id="MJX-128-TEX-N-5D" d="M22 710V750H159V-250H22V-210H119V710H22Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D434"></use></g><g data-mml-node="TeXAtom" transform="translate(750, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D45A"></use></g><g data-mml-node="mo" transform="translate(878, 0)"><use xlink:href="#MJX-128-TEX-N-D7"></use></g><g data-mml-node="mi" transform="translate(1656, 0)"><use xlink:href="#MJX-128-TEX-I-1D45B"></use></g></g></g><g data-mml-node="mo" transform="translate(2673, 0)"><use xlink:href="#MJX-128-TEX-N-3D"></use></g><g data-mml-node="mrow" transform="translate(3728.8, 0)"><g data-mml-node="mo"><use xlink:href="#MJX-128-TEX-S4-23A1" transform="translate(0, 2081)"></use><use xlink:href="#MJX-128-TEX-S4-23A3" transform="translate(0, -2091)"></use><svg width="667" height="2572" y="-1036" x="0" viewBox="0 643 667 2572"><use xlink:href="#MJX-128-TEX-S4-23A2" transform="scale(1, 6.409)"></use></svg></g><g data-mml-node="mtable" transform="translate(667, 0)"><g data-mml-node="mtr" transform="translate(0, 2485)"><g data-mml-node="mtd" transform="translate(133.6, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mn"><use xlink:href="#MJX-128-TEX-N-31"></use><use xlink:href="#MJX-128-TEX-N-31" transform="translate(500, 0)"></use></g></g></g></g><g data-mml-node="mtd" transform="translate(2687, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mn"><use xlink:href="#MJX-128-TEX-N-31"></use><use xlink:href="#MJX-128-TEX-N-32" transform="translate(500, 0)"></use></g></g></g></g><g data-mml-node="mtd" transform="translate(5161.8, 0)"><g data-mml-node="mo"><use xlink:href="#MJX-128-TEX-N-22EF"></use></g></g><g data-mml-node="mtd" transform="translate(7522.4, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mn"><use xlink:href="#MJX-128-TEX-N-31"></use></g><g data-mml-node="mi" transform="translate(500, 0)"><use xlink:href="#MJX-128-TEX-I-1D45B"></use></g></g></g></g></g><g data-mml-node="mtr" transform="translate(0, 1085)"><g data-mml-node="mtd" transform="translate(133.6, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mn"><use xlink:href="#MJX-128-TEX-N-32"></use><use xlink:href="#MJX-128-TEX-N-31" transform="translate(500, 0)"></use></g></g></g></g><g data-mml-node="mtd" transform="translate(2687, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mn"><use xlink:href="#MJX-128-TEX-N-32"></use><use xlink:href="#MJX-128-TEX-N-32" transform="translate(500, 0)"></use></g></g></g></g><g data-mml-node="mtd" transform="translate(5161.8, 0)"><g data-mml-node="mo"><use xlink:href="#MJX-128-TEX-N-22EF"></use></g></g><g data-mml-node="mtd" transform="translate(7522.4, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mn"><use xlink:href="#MJX-128-TEX-N-32"></use></g><g data-mml-node="mi" transform="translate(500, 0)"><use xlink:href="#MJX-128-TEX-I-1D45B"></use></g></g></g></g></g><g data-mml-node="mtr" transform="translate(0, -1085)"><g data-mml-node="mtd" transform="translate(637.7, 0)"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mo"><use xlink:href="#MJX-128-TEX-N-22EE"></use></g></g></g><g data-mml-node="mtd" transform="translate(3191.1, 0)"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mo"><use xlink:href="#MJX-128-TEX-N-22EE"></use></g></g></g><g data-mml-node="mtd" transform="translate(5106.8, 0)"><g data-mml-node="mo"><use xlink:href="#MJX-128-TEX-N-22F1"></use></g></g><g data-mml-node="mtd" transform="translate(8061.8, 0)"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mo"><use xlink:href="#MJX-128-TEX-N-22EE"></use></g></g></g></g><g data-mml-node="mtr" transform="translate(0, -2485)"><g data-mml-node="mtd"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D45A"></use></g><g data-mml-node="mn" transform="translate(878, 0)"><use xlink:href="#MJX-128-TEX-N-31"></use></g></g></g></g><g data-mml-node="mtd" transform="translate(2553.4, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D45A"></use></g><g data-mml-node="mn" transform="translate(878, 0)"><use xlink:href="#MJX-128-TEX-N-32"></use></g></g></g></g><g data-mml-node="mtd" transform="translate(5161.8, 0)"><g data-mml-node="mo"><use xlink:href="#MJX-128-TEX-N-22EF"></use></g></g><g data-mml-node="mtd" transform="translate(7388.8, 0)"><g data-mml-node="msub"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D45A"></use></g><g data-mml-node="mi" transform="translate(878, 0)"><use xlink:href="#MJX-128-TEX-I-1D45B"></use></g></g></g></g></g></g><g data-mml-node="mo" transform="translate(9679.9, 0)"><use xlink:href="#MJX-128-TEX-S4-23A4" transform="translate(0, 2081)"></use><use xlink:href="#MJX-128-TEX-S4-23A6" transform="translate(0, -2091)"></use><svg width="667" height="2572" y="-1036" x="0" viewBox="0 643 667 2572"><use xlink:href="#MJX-128-TEX-S4-23A5" transform="scale(1, 6.409)"></use></svg></g></g><g data-mml-node="mo" transform="translate(14353.5, 0)"><use xlink:href="#MJX-128-TEX-N-3D"></use></g><g data-mml-node="mrow" transform="translate(15409.2, 0)"><g data-mml-node="mo"><use xlink:href="#MJX-128-TEX-N-5B"></use></g><g data-mml-node="msub" transform="translate(278, 0)"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D44E"></use></g><g data-mml-node="TeXAtom" transform="translate(529, -150) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-128-TEX-I-1D456"></use></g><g data-mml-node="mi" transform="translate(345, 0)"><use xlink:href="#MJX-128-TEX-I-1D457"></use></g></g></g><g data-mml-node="mo" transform="translate(1392.3, 0)"><use xlink:href="#MJX-128-TEX-N-5D"></use></g></g></g></g></svg>',latex:"\nA_{m\\times n}=\n\\begin{bmatrix}\n  a_{11}& a_{12}& \\cdots  & a_{1n} \\\\\n  a_{21}& a_{22}& \\cdots  & a_{2n} \\\\\n  \\vdots & \\vdots & \\ddots & \\vdots \\\\\n  a_{m1}& a_{m2}& \\cdots  & a_{mn}\n\\end{bmatrix}\n=\\left [ a_{ij}\\right ]"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="25.332ex" height="9.777ex" viewBox="0 -2410.7 11196.5 4321.4" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-130-TEX-B-1D415" d="M592 686H604Q615 685 631 685T666 684T700 684T724 683Q829 683 835 686H843V624H744L611 315Q584 254 546 165Q492 40 482 19T461 -6L460 -7H409Q398 -4 391 9Q385 20 257 315L124 624H25V686H36Q57 683 190 683Q340 683 364 686H377V624H289L384 403L480 185L492 212Q504 240 529 298T575 405L670 624H582V686H592Z"></path><path id="MJX-130-TEX-N-31" d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z"></path><path id="MJX-130-TEX-N-D7" d="M630 29Q630 9 609 9Q604 9 587 25T493 118L389 222L284 117Q178 13 175 11Q171 9 168 9Q160 9 154 15T147 29Q147 36 161 51T255 146L359 250L255 354Q174 435 161 449T147 471Q147 480 153 485T168 490Q173 490 175 489Q178 487 284 383L389 278L493 382Q570 459 587 475T609 491Q630 491 630 471Q630 464 620 453T522 355L418 250L522 145Q606 61 618 48T630 29Z"></path><path id="MJX-130-TEX-N-32" d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z"></path><path id="MJX-130-TEX-N-3D" d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z"></path><path id="MJX-130-TEX-S4-2223" d="M139 -249H137Q125 -249 119 -235V251L120 737Q130 750 139 750Q152 750 159 735V-235Q151 -249 141 -249H139Z"></path><path id="MJX-130-TEX-B-1D422" d="M72 610Q72 649 98 672T159 695Q193 693 217 670T241 610Q241 572 217 549T157 525Q120 525 96 548T72 610ZM46 442L136 446L226 450H232V62H294V0H286Q271 3 171 3Q67 3 49 0H40V62H109V209Q109 358 108 362Q103 380 55 380H43V442H46Z"></path><path id="MJX-130-TEX-B-1D423" d="M104 610Q104 649 130 672T191 695Q225 693 249 670T273 610Q273 572 249 549T189 525Q152 525 128 548T104 610ZM78 442L173 446L268 450H274V196Q274 -5 274 -37T269 -83Q256 -132 201 -166T71 -200Q10 -200 -30 -173T-71 -102Q-71 -70 -51 -51T-1 -31Q27 -31 48 -49T69 -100Q69 -121 53 -147H56Q66 -149 77 -149H80Q90 -149 100 -146T127 -125T149 -73Q151 -55 151 149V362Q150 364 148 366T145 370T142 373T138 375T133 377T124 378T113 379T97 380H75V442H78Z"></path><path id="MJX-130-TEX-B-1D424" d="M32 686L123 690Q214 694 215 694H221V255L377 382H346V444H355Q370 441 476 441Q544 441 556 444H562V382H476L347 277L515 62H587V0H579Q564 3 476 3Q370 3 352 0H343V62H358L373 63L260 206L237 189L216 172V62H285V0H277Q259 3 157 3Q46 3 37 0H29V62H98V332Q98 387 98 453T99 534Q99 593 97 605T83 620Q69 624 42 624H29V686H32Z"></path><path id="MJX-130-TEX-N-2202" d="M202 508Q179 508 169 520T158 547Q158 557 164 577T185 624T230 675T301 710L333 715H345Q378 715 384 714Q447 703 489 661T549 568T566 457Q566 362 519 240T402 53Q321 -22 223 -22Q123 -22 73 56Q42 102 42 148V159Q42 276 129 370T322 465Q383 465 414 434T455 367L458 378Q478 461 478 515Q478 603 437 639T344 676Q266 676 223 612Q264 606 264 572Q264 547 246 528T202 508ZM430 306Q430 372 401 400T333 428Q270 428 222 382Q197 354 183 323T150 221Q132 149 132 116Q132 21 232 21Q244 21 250 22Q327 35 374 112Q389 137 409 196T430 306Z"></path><path id="MJX-130-TEX-I-1D44B" d="M42 0H40Q26 0 26 11Q26 15 29 27Q33 41 36 43T55 46Q141 49 190 98Q200 108 306 224T411 342Q302 620 297 625Q288 636 234 637H206Q200 643 200 645T202 664Q206 677 212 683H226Q260 681 347 681Q380 681 408 681T453 682T473 682Q490 682 490 671Q490 670 488 658Q484 643 481 640T465 637Q434 634 411 620L488 426L541 485Q646 598 646 610Q646 628 622 635Q617 635 609 637Q594 637 594 648Q594 650 596 664Q600 677 606 683H618Q619 683 643 683T697 681T738 680Q828 680 837 683H845Q852 676 852 672Q850 647 840 637H824Q790 636 763 628T722 611T698 593L687 584Q687 585 592 480L505 384Q505 383 536 304T601 142T638 56Q648 47 699 46Q734 46 734 37Q734 35 732 23Q728 7 725 4T711 1Q708 1 678 1T589 2Q528 2 496 2T461 1Q444 1 444 10Q444 11 446 25Q448 35 450 39T455 44T464 46T480 47T506 54Q523 62 523 64Q522 64 476 181L429 299Q241 95 236 84Q232 76 232 72Q232 53 261 47Q262 47 267 47T273 46Q276 46 277 46T280 45T283 42T284 35Q284 26 282 19Q279 6 276 4T261 1Q258 1 243 1T201 2T142 2Q64 2 42 0Z"></path><path id="MJX-130-TEX-I-1D462" d="M21 287Q21 295 30 318T55 370T99 420T158 442Q204 442 227 417T250 358Q250 340 216 246T182 105Q182 62 196 45T238 27T291 44T328 78L339 95Q341 99 377 247Q407 367 413 387T427 416Q444 431 463 431Q480 431 488 421T496 402L420 84Q419 79 419 68Q419 43 426 35T447 26Q469 29 482 57T512 145Q514 153 532 153Q551 153 551 144Q550 139 549 130T540 98T523 55T498 17T462 -8Q454 -10 438 -10Q372 -10 347 46Q345 45 336 36T318 21T296 6T267 -6T233 -11Q189 -11 155 7Q103 38 103 113Q103 170 138 262T173 379Q173 380 173 381Q173 390 173 393T169 400T158 404H154Q131 404 112 385T82 344T65 302T57 280Q55 278 41 278H27Q21 284 21 287Z"></path><path id="MJX-130-TEX-I-1D44C" d="M66 637Q54 637 49 637T39 638T32 641T30 647T33 664T42 682Q44 683 56 683Q104 680 165 680Q288 680 306 683H316Q322 677 322 674T320 656Q316 643 310 637H298Q242 637 242 624Q242 619 292 477T343 333L346 336Q350 340 358 349T379 373T411 410T454 461Q546 568 561 587T577 618Q577 634 545 637Q528 637 528 647Q528 649 530 661Q533 676 535 679T549 683Q551 683 578 682T657 680Q684 680 713 681T746 682Q763 682 763 673Q763 669 760 657T755 643Q753 637 734 637Q662 632 617 587Q608 578 477 424L348 273L322 169Q295 62 295 57Q295 46 363 46Q379 46 384 45T390 35Q390 33 388 23Q384 6 382 4T366 1Q361 1 324 1T232 2Q170 2 138 2T102 1Q84 1 84 9Q84 14 87 24Q88 27 89 30T90 35T91 39T93 42T96 44T101 45T107 45T116 46T129 46Q168 47 180 50T198 63Q201 68 227 171L252 274L129 623Q128 624 127 625T125 627T122 629T118 631T113 633T105 634T96 635T83 636T66 637Z"></path><path id="MJX-130-TEX-N-30" d="M96 585Q152 666 249 666Q297 666 345 640T423 548Q460 465 460 320Q460 165 417 83Q397 41 362 16T301 -15T250 -22Q224 -22 198 -16T137 16T82 83Q39 165 39 320Q39 494 96 585ZM321 597Q291 629 250 629Q208 629 178 597Q153 571 145 525T137 333Q137 175 145 125T181 46Q209 16 250 16Q290 16 318 46Q347 76 354 130T362 333Q362 478 354 524T321 597Z"></path><path id="MJX-130-TEX-I-1D463" d="M173 380Q173 405 154 405Q130 405 104 376T61 287Q60 286 59 284T58 281T56 279T53 278T49 278T41 278H27Q21 284 21 287Q21 294 29 316T53 368T97 419T160 441Q202 441 225 417T249 361Q249 344 246 335Q246 329 231 291T200 202T182 113Q182 86 187 69Q200 26 250 26Q287 26 319 60T369 139T398 222T409 277Q409 300 401 317T383 343T365 361T357 383Q357 405 376 424T417 443Q436 443 451 425T467 367Q467 340 455 284T418 159T347 40T241 -11Q177 -11 139 22Q102 54 102 117Q102 148 110 181T151 298Q173 362 173 380Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="msub"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-B-1D415"></use></g></g><g data-mml-node="mn" transform="translate(869, -150) scale(0.707)"><use xlink:href="#MJX-130-TEX-N-31"></use></g></g><g data-mml-node="mo" transform="translate(1494.8, 0)"><use xlink:href="#MJX-130-TEX-N-D7"></use></g><g data-mml-node="msub" transform="translate(2495, 0)"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-B-1D415"></use></g></g><g data-mml-node="mn" transform="translate(869, -150) scale(0.707)"><use xlink:href="#MJX-130-TEX-N-32"></use></g></g><g data-mml-node="mo" transform="translate(4045.3, 0)"><use xlink:href="#MJX-130-TEX-N-3D"></use></g><g data-mml-node="mrow" transform="translate(5101.1, 0)"><g data-mml-node="mo"><svg width="278" height="4321.4" y="-1910.7" x="27.5" viewBox="0 -535.3 278 4321.4"><use xlink:href="#MJX-130-TEX-S4-2223" transform="scale(1, 6.489)"></use></svg></g><g data-mml-node="mtable" transform="translate(333, 0)"><g data-mml-node="mtr" transform="translate(0, 1660.7)"><g data-mml-node="mtd" transform="translate(561.8, 0)"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-B-1D422"></use></g></g></g><g data-mml-node="mtd" transform="translate(2957, 0)"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-B-1D423"></use></g></g></g><g data-mml-node="mtd" transform="translate(4822.4, 0)"><g data-mml-node="TeXAtom" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-B-1D424"></use></g></g></g></g><g data-mml-node="mtr" transform="translate(0, 111.1)"><g data-mml-node="mtd"><g data-mml-node="mfrac"><g data-mml-node="mrow" transform="translate(220, 394) scale(0.707)"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-N-2202"></use></g><g data-mml-node="mi" transform="translate(566, 0)"><use xlink:href="#MJX-130-TEX-I-1D44B"></use></g></g><g data-mml-node="mrow" transform="translate(319, -345.6) scale(0.707)"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-N-2202"></use></g><g data-mml-node="mi" transform="translate(566, 0)"><use xlink:href="#MJX-130-TEX-I-1D462"></use></g></g><rect width="1202.7" height="60" x="120" y="220"></rect></g></g><g data-mml-node="mtd" transform="translate(2442.7, 0)"><g data-mml-node="mfrac"><g data-mml-node="mrow" transform="translate(220, 394) scale(0.707)"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-N-2202"></use></g><g data-mml-node="mi" transform="translate(566, 0)"><use xlink:href="#MJX-130-TEX-I-1D44C"></use></g></g><g data-mml-node="mrow" transform="translate(287.5, -345.6) scale(0.707)"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-N-2202"></use></g><g data-mml-node="mi" transform="translate(566, 0)"><use xlink:href="#MJX-130-TEX-I-1D462"></use></g></g><rect width="1139.7" height="60" x="120" y="220"></rect></g></g><g data-mml-node="mtd" transform="translate(4875.9, 0)"><g data-mml-node="mn"><use xlink:href="#MJX-130-TEX-N-30"></use></g></g></g><g data-mml-node="mtr" transform="translate(0, -1549.6)"><g data-mml-node="mtd"><g data-mml-node="mfrac"><g data-mml-node="mrow" transform="translate(220, 394) scale(0.707)"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-N-2202"></use></g><g data-mml-node="mi" transform="translate(566, 0)"><use xlink:href="#MJX-130-TEX-I-1D44B"></use></g></g><g data-mml-node="mrow" transform="translate(349.8, -345.6) scale(0.707)"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-N-2202"></use></g><g data-mml-node="mi" transform="translate(566, 0)"><use xlink:href="#MJX-130-TEX-I-1D463"></use></g></g><rect width="1202.7" height="60" x="120" y="220"></rect></g></g><g data-mml-node="mtd" transform="translate(2442.7, 0)"><g data-mml-node="mfrac"><g data-mml-node="mrow" transform="translate(220, 394) scale(0.707)"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-N-2202"></use></g><g data-mml-node="mi" transform="translate(566, 0)"><use xlink:href="#MJX-130-TEX-I-1D44C"></use></g></g><g data-mml-node="mrow" transform="translate(318.3, -345.6) scale(0.707)"><g data-mml-node="mi"><use xlink:href="#MJX-130-TEX-N-2202"></use></g><g data-mml-node="mi" transform="translate(566, 0)"><use xlink:href="#MJX-130-TEX-I-1D463"></use></g></g><rect width="1139.7" height="60" x="120" y="220"></rect></g></g><g data-mml-node="mtd" transform="translate(4875.9, 0)"><g data-mml-node="mn"><use xlink:href="#MJX-130-TEX-N-30"></use></g></g></g></g><g data-mml-node="mo" transform="translate(5762.4, 0)"><svg width="278" height="4321.4" y="-1910.7" x="27.5" viewBox="0 -535.3 278 4321.4"><use xlink:href="#MJX-130-TEX-S4-2223" transform="scale(1, 6.489)"></use></svg></g></g></g></g></svg>',latex:"\n\\mathbf{V}_1 \\times \\mathbf{V}_2 =\n\\begin{vmatrix}\n  \\mathbf{i}& \\mathbf{j}& \\mathbf{k} \\\\\n  \\frac{\\partial X}{\\partial u}& \\frac{\\partial Y}{\\partial u}& 0 \\\\\n  \\frac{\\partial X}{\\partial v}& \\frac{\\partial Y}{\\partial v}& 0 \\\\\n\\end{vmatrix}"}]},geometry:{title:"几何",formulas:[{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="7.018ex" height="1.67ex" viewBox="0 -716 3102 738" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-64-TEX-N-394" d="M51 0Q46 4 46 7Q46 9 215 357T388 709Q391 716 416 716Q439 716 444 709Q447 705 616 357T786 7Q786 4 781 0H51ZM507 344L384 596L137 92L383 91H630Q630 93 507 344Z"></path><path id="MJX-64-TEX-I-1D434" d="M208 74Q208 50 254 46Q272 46 272 35Q272 34 270 22Q267 8 264 4T251 0Q249 0 239 0T205 1T141 2Q70 2 50 0H42Q35 7 35 11Q37 38 48 46H62Q132 49 164 96Q170 102 345 401T523 704Q530 716 547 716H555H572Q578 707 578 706L606 383Q634 60 636 57Q641 46 701 46Q726 46 726 36Q726 34 723 22Q720 7 718 4T704 0Q701 0 690 0T651 1T578 2Q484 2 455 0H443Q437 6 437 9T439 27Q443 40 445 43L449 46H469Q523 49 533 63L521 213H283L249 155Q208 86 208 74ZM516 260Q516 271 504 416T490 562L463 519Q447 492 400 412L310 260L413 259Q516 259 516 260Z"></path><path id="MJX-64-TEX-I-1D435" d="M231 637Q204 637 199 638T194 649Q194 676 205 682Q206 683 335 683Q594 683 608 681Q671 671 713 636T756 544Q756 480 698 429T565 360L555 357Q619 348 660 311T702 219Q702 146 630 78T453 1Q446 0 242 0Q42 0 39 2Q35 5 35 10Q35 17 37 24Q42 43 47 45Q51 46 62 46H68Q95 46 128 49Q142 52 147 61Q150 65 219 339T288 628Q288 635 231 637ZM649 544Q649 574 634 600T585 634Q578 636 493 637Q473 637 451 637T416 636H403Q388 635 384 626Q382 622 352 506Q352 503 351 500L320 374H401Q482 374 494 376Q554 386 601 434T649 544ZM595 229Q595 273 572 302T512 336Q506 337 429 337Q311 337 310 336Q310 334 293 263T258 122L240 52Q240 48 252 48T333 46Q422 46 429 47Q491 54 543 105T595 229Z"></path><path id="MJX-64-TEX-I-1D436" d="M50 252Q50 367 117 473T286 641T490 704Q580 704 633 653Q642 643 648 636T656 626L657 623Q660 623 684 649Q691 655 699 663T715 679T725 690L740 705H746Q760 705 760 698Q760 694 728 561Q692 422 692 421Q690 416 687 415T669 413H653Q647 419 647 422Q647 423 648 429T650 449T651 481Q651 552 619 605T510 659Q484 659 454 652T382 628T299 572T226 479Q194 422 175 346T156 222Q156 108 232 58Q280 24 350 24Q441 24 512 92T606 240Q610 253 612 255T628 257Q648 257 648 248Q648 243 647 239Q618 132 523 55T319 -22Q206 -22 128 53T50 252Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mi"><use xlink:href="#MJX-64-TEX-N-394"></use></g><g data-mml-node="mi" transform="translate(833, 0)"><use xlink:href="#MJX-64-TEX-I-1D434"></use></g><g data-mml-node="mi" transform="translate(1583, 0)"><use xlink:href="#MJX-64-TEX-I-1D435"></use></g><g data-mml-node="mi" transform="translate(2342, 0)"><use xlink:href="#MJX-64-TEX-I-1D436"></use></g></g></g></svg>',latex:"\\Delta A B C"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="17.984ex" height="2.262ex" viewBox="0 -750 7948.9 1000" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-65-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path><path id="MJX-65-TEX-N-2225" d="M133 736Q138 750 153 750Q164 750 170 739Q172 735 172 250T170 -239Q164 -250 152 -250Q144 -250 138 -244L137 -243Q133 -241 133 -179T132 250Q132 731 133 736ZM329 739Q334 750 346 750Q353 750 361 744L362 743Q366 741 366 679T367 250T367 -178T362 -243L361 -244Q355 -250 347 -250Q335 -250 329 -239Q327 -235 327 250T329 739Z"></path><path id="MJX-65-TEX-I-1D450" d="M34 159Q34 268 120 355T306 442Q362 442 394 418T427 355Q427 326 408 306T360 285Q341 285 330 295T319 325T330 359T352 380T366 386H367Q367 388 361 392T340 400T306 404Q276 404 249 390Q228 381 206 359Q162 315 142 235T121 119Q121 73 147 50Q169 26 205 26H209Q321 26 394 111Q403 121 406 121Q410 121 419 112T429 98T420 83T391 55T346 25T282 0T202 -11Q127 -11 81 37T34 159Z"></path><path id="MJX-65-TEX-N-2C" d="M78 35T78 60T94 103T137 121Q165 121 187 96T210 8Q210 -27 201 -60T180 -117T154 -158T130 -185T117 -194Q113 -194 104 -185T95 -172Q95 -168 106 -156T131 -126T157 -76T173 -3V9L172 8Q170 7 167 6T161 3T152 1T140 0Q113 0 96 17Z"></path><path id="MJX-65-TEX-I-1D44F" d="M73 647Q73 657 77 670T89 683Q90 683 161 688T234 694Q246 694 246 685T212 542Q204 508 195 472T180 418L176 399Q176 396 182 402Q231 442 283 442Q345 442 383 396T422 280Q422 169 343 79T173 -11Q123 -11 82 27T40 150V159Q40 180 48 217T97 414Q147 611 147 623T109 637Q104 637 101 637H96Q86 637 83 637T76 640T73 647ZM336 325V331Q336 405 275 405Q258 405 240 397T207 376T181 352T163 330L157 322L136 236Q114 150 114 114Q114 66 138 42Q154 26 178 26Q211 26 245 58Q270 81 285 114T318 219Q336 291 336 325Z"></path><path id="MJX-65-TEX-N-21D2" d="M580 514Q580 525 596 525Q601 525 604 525T609 525T613 524T615 523T617 520T619 517T622 512Q659 438 720 381T831 300T927 263Q944 258 944 250T935 239T898 228T840 204Q696 134 622 -12Q618 -21 615 -22T600 -24Q580 -24 580 -17Q580 -13 585 0Q620 69 671 123L681 133H70Q56 140 56 153Q56 168 72 173H725L735 181Q774 211 852 250Q851 251 834 259T789 283T735 319L725 327H72Q56 332 56 347Q56 360 70 367H681L671 377Q638 412 609 458T580 514Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mi"><use xlink:href="#MJX-65-TEX-I-1D44E"></use></g><g data-mml-node="mo" transform="translate(806.8, 0)"><use xlink:href="#MJX-65-TEX-N-2225"></use></g><g data-mml-node="mi" transform="translate(1584.6, 0)"><use xlink:href="#MJX-65-TEX-I-1D450"></use></g><g data-mml-node="mo" transform="translate(2017.6, 0)"><use xlink:href="#MJX-65-TEX-N-2C"></use></g><g data-mml-node="mi" transform="translate(2462.2, 0)"><use xlink:href="#MJX-65-TEX-I-1D44F"></use></g><g data-mml-node="mo" transform="translate(3169, 0)"><use xlink:href="#MJX-65-TEX-N-2225"></use></g><g data-mml-node="mi" transform="translate(3946.8, 0)"><use xlink:href="#MJX-65-TEX-I-1D450"></use></g><g data-mml-node="mo" transform="translate(4657.6, 0)"><use xlink:href="#MJX-65-TEX-N-21D2"></use></g><g data-mml-node="mi" transform="translate(5935.3, 0)"><use xlink:href="#MJX-65-TEX-I-1D44E"></use></g><g data-mml-node="mo" transform="translate(6742.1, 0)"><use xlink:href="#MJX-65-TEX-N-2225"></use></g><g data-mml-node="mi" transform="translate(7519.9, 0)"><use xlink:href="#MJX-65-TEX-I-1D44F"></use></g></g></g></svg>',latex:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="20.382ex" height="2.034ex" viewBox="0 -705 9008.9 899" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-66-TEX-I-1D459" d="M117 59Q117 26 142 26Q179 26 205 131Q211 151 215 152Q217 153 225 153H229Q238 153 241 153T246 151T248 144Q247 138 245 128T234 90T214 43T183 6T137 -11Q101 -11 70 11T38 85Q38 97 39 102L104 360Q167 615 167 623Q167 626 166 628T162 632T157 634T149 635T141 636T132 637T122 637Q112 637 109 637T101 638T95 641T94 647Q94 649 96 661Q101 680 107 682T179 688Q194 689 213 690T243 693T254 694Q266 694 266 686Q266 675 193 386T118 83Q118 81 118 75T117 65V59Z"></path><path id="MJX-66-TEX-N-22A5" d="M369 652Q369 653 370 655T372 658T375 662T379 665T384 667T391 668Q402 666 409 653V40H708Q723 32 723 20T708 0H71Q70 0 67 2T59 9T55 20T59 31T66 38T71 40H369V652Z"></path><path id="MJX-66-TEX-I-1D6FD" d="M29 -194Q23 -188 23 -186Q23 -183 102 134T186 465Q208 533 243 584T309 658Q365 705 429 705H431Q493 705 533 667T573 570Q573 465 469 396L482 383Q533 332 533 252Q533 139 448 65T257 -10Q227 -10 203 -2T165 17T143 40T131 59T126 65L62 -188Q60 -194 42 -194H29ZM353 431Q392 431 427 419L432 422Q436 426 439 429T449 439T461 453T472 471T484 495T493 524T501 560Q503 569 503 593Q503 611 502 616Q487 667 426 667Q384 667 347 643T286 582T247 514T224 455Q219 439 186 308T152 168Q151 163 151 147Q151 99 173 68Q204 26 260 26Q302 26 349 51T425 137Q441 171 449 214T457 279Q457 337 422 372Q380 358 347 358H337Q258 358 258 389Q258 396 261 403Q275 431 353 431Z"></path><path id="MJX-66-TEX-N-2C" d="M78 35T78 60T94 103T137 121Q165 121 187 96T210 8Q210 -27 201 -60T180 -117T154 -158T130 -185T117 -194Q113 -194 104 -185T95 -172Q95 -168 106 -156T131 -126T157 -76T173 -3V9L172 8Q170 7 167 6T161 3T152 1T140 0Q113 0 96 17Z"></path><path id="MJX-66-TEX-N-2282" d="M84 250Q84 372 166 450T360 539Q361 539 370 539T395 539T430 540T475 540T524 540H679Q694 532 694 520Q694 511 681 501L522 500H470H441Q366 500 338 496T266 472Q244 461 224 446T179 404T139 337T124 250V245Q124 157 185 89Q244 25 328 7Q348 2 366 2T522 0H681Q694 -10 694 -20Q694 -32 679 -40H526Q510 -40 480 -40T434 -41Q350 -41 289 -25T172 45Q84 127 84 250Z"></path><path id="MJX-66-TEX-I-1D6FC" d="M34 156Q34 270 120 356T309 442Q379 442 421 402T478 304Q484 275 485 237V208Q534 282 560 374Q564 388 566 390T582 393Q603 393 603 385Q603 376 594 346T558 261T497 161L486 147L487 123Q489 67 495 47T514 26Q528 28 540 37T557 60Q559 67 562 68T577 70Q597 70 597 62Q597 56 591 43Q579 19 556 5T512 -10H505Q438 -10 414 62L411 69L400 61Q390 53 370 41T325 18T267 -2T203 -11Q124 -11 79 39T34 156ZM208 26Q257 26 306 47T379 90L403 112Q401 255 396 290Q382 405 304 405Q235 405 183 332Q156 292 139 224T121 120Q121 71 146 49T208 26Z"></path><path id="MJX-66-TEX-N-21D2" d="M580 514Q580 525 596 525Q601 525 604 525T609 525T613 524T615 523T617 520T619 517T622 512Q659 438 720 381T831 300T927 263Q944 258 944 250T935 239T898 228T840 204Q696 134 622 -12Q618 -21 615 -22T600 -24Q580 -24 580 -17Q580 -13 585 0Q620 69 671 123L681 133H70Q56 140 56 153Q56 168 72 173H725L735 181Q774 211 852 250Q851 251 834 259T789 283T735 319L725 327H72Q56 332 56 347Q56 360 70 367H681L671 377Q638 412 609 458T580 514Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mi"><use xlink:href="#MJX-66-TEX-I-1D459"></use></g><g data-mml-node="mo" transform="translate(575.8, 0)"><use xlink:href="#MJX-66-TEX-N-22A5"></use></g><g data-mml-node="mi" transform="translate(1631.6, 0)"><use xlink:href="#MJX-66-TEX-I-1D6FD"></use></g><g data-mml-node="mo" transform="translate(2197.6, 0)"><use xlink:href="#MJX-66-TEX-N-2C"></use></g><g data-mml-node="mi" transform="translate(2642.2, 0)"><use xlink:href="#MJX-66-TEX-I-1D459"></use></g><g data-mml-node="mo" transform="translate(3218, 0)"><use xlink:href="#MJX-66-TEX-N-2282"></use></g><g data-mml-node="mi" transform="translate(4273.8, 0)"><use xlink:href="#MJX-66-TEX-I-1D6FC"></use></g><g data-mml-node="mo" transform="translate(5191.6, 0)"><use xlink:href="#MJX-66-TEX-N-21D2"></use></g><g data-mml-node="mi" transform="translate(6469.3, 0)"><use xlink:href="#MJX-66-TEX-I-1D6FC"></use></g><g data-mml-node="mo" transform="translate(7387.1, 0)"><use xlink:href="#MJX-66-TEX-N-22A5"></use></g><g data-mml-node="mi" transform="translate(8442.9, 0)"><use xlink:href="#MJX-66-TEX-I-1D6FD"></use></g></g></g></svg>',latex:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta "},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="37.262ex" height="2.034ex" viewBox="0 -705 16469.8 899" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-68-TEX-I-1D6FC" d="M34 156Q34 270 120 356T309 442Q379 442 421 402T478 304Q484 275 485 237V208Q534 282 560 374Q564 388 566 390T582 393Q603 393 603 385Q603 376 594 346T558 261T497 161L486 147L487 123Q489 67 495 47T514 26Q528 28 540 37T557 60Q559 67 562 68T577 70Q597 70 597 62Q597 56 591 43Q579 19 556 5T512 -10H505Q438 -10 414 62L411 69L400 61Q390 53 370 41T325 18T267 -2T203 -11Q124 -11 79 39T34 156ZM208 26Q257 26 306 47T379 90L403 112Q401 255 396 290Q382 405 304 405Q235 405 183 332Q156 292 139 224T121 120Q121 71 146 49T208 26Z"></path><path id="MJX-68-TEX-N-22A5" d="M369 652Q369 653 370 655T372 658T375 662T379 665T384 667T391 668Q402 666 409 653V40H708Q723 32 723 20T708 0H71Q70 0 67 2T59 9T55 20T59 31T66 38T71 40H369V652Z"></path><path id="MJX-68-TEX-I-1D6FD" d="M29 -194Q23 -188 23 -186Q23 -183 102 134T186 465Q208 533 243 584T309 658Q365 705 429 705H431Q493 705 533 667T573 570Q573 465 469 396L482 383Q533 332 533 252Q533 139 448 65T257 -10Q227 -10 203 -2T165 17T143 40T131 59T126 65L62 -188Q60 -194 42 -194H29ZM353 431Q392 431 427 419L432 422Q436 426 439 429T449 439T461 453T472 471T484 495T493 524T501 560Q503 569 503 593Q503 611 502 616Q487 667 426 667Q384 667 347 643T286 582T247 514T224 455Q219 439 186 308T152 168Q151 163 151 147Q151 99 173 68Q204 26 260 26Q302 26 349 51T425 137Q441 171 449 214T457 279Q457 337 422 372Q380 358 347 358H337Q258 358 258 389Q258 396 261 403Q275 431 353 431Z"></path><path id="MJX-68-TEX-N-2C" d="M78 35T78 60T94 103T137 121Q165 121 187 96T210 8Q210 -27 201 -60T180 -117T154 -158T130 -185T117 -194Q113 -194 104 -185T95 -172Q95 -168 106 -156T131 -126T157 -76T173 -3V9L172 8Q170 7 167 6T161 3T152 1T140 0Q113 0 96 17Z"></path><path id="MJX-68-TEX-N-2229" d="M88 -21T75 -21T55 -7V200Q55 231 55 280Q56 414 60 428Q61 430 61 431Q77 500 152 549T332 598Q443 598 522 544T610 405Q611 399 611 194V-7Q604 -22 591 -22Q582 -22 572 -9L570 405Q563 433 556 449T529 485Q498 519 445 538T334 558Q251 558 179 518T96 401Q95 396 95 193V-7Q88 -21 75 -21Z"></path><path id="MJX-68-TEX-N-3D" d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z"></path><path id="MJX-68-TEX-I-1D459" d="M117 59Q117 26 142 26Q179 26 205 131Q211 151 215 152Q217 153 225 153H229Q238 153 241 153T246 151T248 144Q247 138 245 128T234 90T214 43T183 6T137 -11Q101 -11 70 11T38 85Q38 97 39 102L104 360Q167 615 167 623Q167 626 166 628T162 632T157 634T149 635T141 636T132 637T122 637Q112 637 109 637T101 638T95 641T94 647Q94 649 96 661Q101 680 107 682T179 688Q194 689 213 690T243 693T254 694Q266 694 266 686Q266 675 193 386T118 83Q118 81 118 75T117 65V59Z"></path><path id="MJX-68-TEX-I-1D44E" d="M33 157Q33 258 109 349T280 441Q331 441 370 392Q386 422 416 422Q429 422 439 414T449 394Q449 381 412 234T374 68Q374 43 381 35T402 26Q411 27 422 35Q443 55 463 131Q469 151 473 152Q475 153 483 153H487Q506 153 506 144Q506 138 501 117T481 63T449 13Q436 0 417 -8Q409 -10 393 -10Q359 -10 336 5T306 36L300 51Q299 52 296 50Q294 48 292 46Q233 -10 172 -10Q117 -10 75 30T33 157ZM351 328Q351 334 346 350T323 385T277 405Q242 405 210 374T160 293Q131 214 119 129Q119 126 119 118T118 106Q118 61 136 44T179 26Q217 26 254 59T298 110Q300 114 325 217T351 328Z"></path><path id="MJX-68-TEX-N-2282" d="M84 250Q84 372 166 450T360 539Q361 539 370 539T395 539T430 540T475 540T524 540H679Q694 532 694 520Q694 511 681 501L522 500H470H441Q366 500 338 496T266 472Q244 461 224 446T179 404T139 337T124 250V245Q124 157 185 89Q244 25 328 7Q348 2 366 2T522 0H681Q694 -10 694 -20Q694 -32 679 -40H526Q510 -40 480 -40T434 -41Q350 -41 289 -25T172 45Q84 127 84 250Z"></path><path id="MJX-68-TEX-N-21D2" d="M580 514Q580 525 596 525Q601 525 604 525T609 525T613 524T615 523T617 520T619 517T622 512Q659 438 720 381T831 300T927 263Q944 258 944 250T935 239T898 228T840 204Q696 134 622 -12Q618 -21 615 -22T600 -24Q580 -24 580 -17Q580 -13 585 0Q620 69 671 123L681 133H70Q56 140 56 153Q56 168 72 173H725L735 181Q774 211 852 250Q851 251 834 259T789 283T735 319L725 327H72Q56 332 56 347Q56 360 70 367H681L671 377Q638 412 609 458T580 514Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mi"><use xlink:href="#MJX-68-TEX-I-1D6FC"></use></g><g data-mml-node="mo" transform="translate(917.8, 0)"><use xlink:href="#MJX-68-TEX-N-22A5"></use></g><g data-mml-node="mi" transform="translate(1973.6, 0)"><use xlink:href="#MJX-68-TEX-I-1D6FD"></use></g><g data-mml-node="mo" transform="translate(2539.6, 0)"><use xlink:href="#MJX-68-TEX-N-2C"></use></g><g data-mml-node="mi" transform="translate(2984.2, 0)"><use xlink:href="#MJX-68-TEX-I-1D6FC"></use></g><g data-mml-node="mo" transform="translate(3846.4, 0)"><use xlink:href="#MJX-68-TEX-N-2229"></use></g><g data-mml-node="mi" transform="translate(4735.7, 0)"><use xlink:href="#MJX-68-TEX-I-1D6FD"></use></g><g data-mml-node="mo" transform="translate(5579.4, 0)"><use xlink:href="#MJX-68-TEX-N-3D"></use></g><g data-mml-node="mi" transform="translate(6635.2, 0)"><use xlink:href="#MJX-68-TEX-I-1D459"></use></g><g data-mml-node="mo" transform="translate(6933.2, 0)"><use xlink:href="#MJX-68-TEX-N-2C"></use></g><g data-mml-node="mi" transform="translate(7377.9, 0)"><use xlink:href="#MJX-68-TEX-I-1D44E"></use></g><g data-mml-node="mo" transform="translate(8184.7, 0)"><use xlink:href="#MJX-68-TEX-N-2282"></use></g><g data-mml-node="mi" transform="translate(9240.4, 0)"><use xlink:href="#MJX-68-TEX-I-1D6FC"></use></g><g data-mml-node="mo" transform="translate(9880.4, 0)"><use xlink:href="#MJX-68-TEX-N-2C"></use></g><g data-mml-node="mi" transform="translate(10325.1, 0)"><use xlink:href="#MJX-68-TEX-I-1D44E"></use></g><g data-mml-node="mo" transform="translate(11131.9, 0)"><use xlink:href="#MJX-68-TEX-N-22A5"></use></g><g data-mml-node="mi" transform="translate(12187.7, 0)"><use xlink:href="#MJX-68-TEX-I-1D459"></use></g><g data-mml-node="mo" transform="translate(12763.4, 0)"><use xlink:href="#MJX-68-TEX-N-21D2"></use></g><g data-mml-node="mi" transform="translate(14041.2, 0)"><use xlink:href="#MJX-68-TEX-I-1D44E"></use></g><g data-mml-node="mo" transform="translate(14848, 0)"><use xlink:href="#MJX-68-TEX-N-22A5"></use></g><g data-mml-node="mi" transform="translate(15903.8, 0)"><use xlink:href="#MJX-68-TEX-I-1D6FD"></use></g></g></g></svg>',latex:"\\alpha \\perp \\beta , \\alpha \\cap \\beta = l, a \\subset \\alpha , a \\perp l \\Rightarrow a \\perp \\beta"}]},triangle:{title:"三角",formulas:[{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="2.47ex" height="2.087ex" viewBox="0 -911.5 1091.6 922.5" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-1-TEX-I-1D452" d="M39 168Q39 225 58 272T107 350T174 402T244 433T307 442H310Q355 442 388 420T421 355Q421 265 310 237Q261 224 176 223Q139 223 138 221Q138 219 132 186T125 128Q125 81 146 54T209 26T302 45T394 111Q403 121 406 121Q410 121 419 112T429 98T420 82T390 55T344 24T281 -1T205 -11Q126 -11 83 42T39 168ZM373 353Q367 405 305 405Q272 405 244 391T199 357T170 316T154 280T149 261Q149 260 169 260Q282 260 327 284T373 353Z"></path><path id="MJX-1-TEX-I-1D456" d="M184 600Q184 624 203 642T247 661Q265 661 277 649T290 619Q290 596 270 577T226 557Q211 557 198 567T184 600ZM21 287Q21 295 30 318T54 369T98 420T158 442Q197 442 223 419T250 357Q250 340 236 301T196 196T154 83Q149 61 149 51Q149 26 166 26Q175 26 185 29T208 43T235 78T260 137Q263 149 265 151T282 153Q302 153 302 143Q302 135 293 112T268 61T223 11T161 -11Q129 -11 102 10T74 74Q74 91 79 106T122 220Q160 321 166 341T173 380Q173 404 156 404H154Q124 404 99 371T61 287Q60 286 59 284T58 281T56 279T53 278T49 278T41 278H27Q21 284 21 287Z"></path><path id="MJX-1-TEX-I-1D703" d="M35 200Q35 302 74 415T180 610T319 704Q320 704 327 704T339 705Q393 701 423 656Q462 596 462 495Q462 380 417 261T302 66T168 -10H161Q125 -10 99 10T60 63T41 130T35 200ZM383 566Q383 668 330 668Q294 668 260 623T204 521T170 421T157 371Q206 370 254 370L351 371Q352 372 359 404T375 484T383 566ZM113 132Q113 26 166 26Q181 26 198 36T239 74T287 161T335 307L340 324H145Q145 321 136 286T120 208T113 132Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="msup"><g data-mml-node="mi"><use xlink:href="#MJX-1-TEX-I-1D452"></use></g><g data-mml-node="TeXAtom" transform="translate(466, 413) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mi"><use xlink:href="#MJX-1-TEX-I-1D456"></use></g><g data-mml-node="mi" transform="translate(345, 0)"><use xlink:href="#MJX-1-TEX-I-1D703"></use></g></g></g></g></g></svg>',latex:"e^{i \\theta} "},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="18.519ex" height="4.588ex" viewBox="0 -1342 8185.6 2028" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-2-TEX-N-73" d="M295 316Q295 356 268 385T190 414Q154 414 128 401Q98 382 98 349Q97 344 98 336T114 312T157 287Q175 282 201 278T245 269T277 256Q294 248 310 236T342 195T359 133Q359 71 321 31T198 -10H190Q138 -10 94 26L86 19L77 10Q71 4 65 -1L54 -11H46H42Q39 -11 33 -5V74V132Q33 153 35 157T45 162H54Q66 162 70 158T75 146T82 119T101 77Q136 26 198 26Q295 26 295 104Q295 133 277 151Q257 175 194 187T111 210Q75 227 54 256T33 318Q33 357 50 384T93 424T143 442T187 447H198Q238 447 268 432L283 424L292 431Q302 440 314 448H322H326Q329 448 335 442V310L329 304H301Q295 310 295 316Z"></path><path id="MJX-2-TEX-N-69" d="M69 609Q69 637 87 653T131 669Q154 667 171 652T188 609Q188 579 171 564T129 549Q104 549 87 564T69 609ZM247 0Q232 3 143 3Q132 3 106 3T56 1L34 0H26V46H42Q70 46 91 49Q100 53 102 60T104 102V205V293Q104 345 102 359T88 378Q74 385 41 385H30V408Q30 431 32 431L42 432Q52 433 70 434T106 436Q123 437 142 438T171 441T182 442H185V62Q190 52 197 50T232 46H255V0H247Z"></path><path id="MJX-2-TEX-N-6E" d="M41 46H55Q94 46 102 60V68Q102 77 102 91T102 122T103 161T103 203Q103 234 103 269T102 328V351Q99 370 88 376T43 385H25V408Q25 431 27 431L37 432Q47 433 65 434T102 436Q119 437 138 438T167 441T178 442H181V402Q181 364 182 364T187 369T199 384T218 402T247 421T285 437Q305 442 336 442Q450 438 463 329Q464 322 464 190V104Q464 66 466 59T477 49Q498 46 526 46H542V0H534L510 1Q487 2 460 2T422 3Q319 3 310 0H302V46H318Q379 46 379 62Q380 64 380 200Q379 335 378 343Q372 371 358 385T334 402T308 404Q263 404 229 370Q202 343 195 315T187 232V168V108Q187 78 188 68T191 55T200 49Q221 46 249 46H265V0H257L234 1Q210 2 183 2T145 3Q42 3 33 0H25V46H41Z"></path><path id="MJX-2-TEX-N-32" d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z"></path><path id="MJX-2-TEX-I-1D6FC" d="M34 156Q34 270 120 356T309 442Q379 442 421 402T478 304Q484 275 485 237V208Q534 282 560 374Q564 388 566 390T582 393Q603 393 603 385Q603 376 594 346T558 261T497 161L486 147L487 123Q489 67 495 47T514 26Q528 28 540 37T557 60Q559 67 562 68T577 70Q597 70 597 62Q597 56 591 43Q579 19 556 5T512 -10H505Q438 -10 414 62L411 69L400 61Q390 53 370 41T325 18T267 -2T203 -11Q124 -11 79 39T34 156ZM208 26Q257 26 306 47T379 90L403 112Q401 255 396 290Q382 405 304 405Q235 405 183 332Q156 292 139 224T121 120Q121 71 146 49T208 26Z"></path><path id="MJX-2-TEX-N-3D" d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z"></path><path id="MJX-2-TEX-N-31" d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z"></path><path id="MJX-2-TEX-N-2212" d="M84 237T84 250T98 270H679Q694 262 694 250T679 230H98Q84 237 84 250Z"></path><path id="MJX-2-TEX-N-63" d="M370 305T349 305T313 320T297 358Q297 381 312 396Q317 401 317 402T307 404Q281 408 258 408Q209 408 178 376Q131 329 131 219Q131 137 162 90Q203 29 272 29Q313 29 338 55T374 117Q376 125 379 127T395 129H409Q415 123 415 120Q415 116 411 104T395 71T366 33T318 2T249 -11Q163 -11 99 53T34 214Q34 318 99 383T250 448T370 421T404 357Q404 334 387 320Z"></path><path id="MJX-2-TEX-N-6F" d="M28 214Q28 309 93 378T250 448Q340 448 405 380T471 215Q471 120 407 55T250 -10Q153 -10 91 57T28 214ZM250 30Q372 30 372 193V225V250Q372 272 371 288T364 326T348 362T317 390T268 410Q263 411 252 411Q222 411 195 399Q152 377 139 338T126 246V226Q126 130 145 91Q177 30 250 30Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="msup"><g data-mml-node="mtext"><use xlink:href="#MJX-2-TEX-N-73"></use><use xlink:href="#MJX-2-TEX-N-69" transform="translate(394, 0)"></use><use xlink:href="#MJX-2-TEX-N-6E" transform="translate(672, 0)"></use></g><g data-mml-node="TeXAtom" transform="translate(1228, 413) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mn"><use xlink:href="#MJX-2-TEX-N-32"></use></g></g></g><g data-mml-node="mfrac" transform="translate(1631.6, 0)"><g data-mml-node="mi" transform="translate(220, 676)"><use xlink:href="#MJX-2-TEX-I-1D6FC"></use></g><g data-mml-node="mn" transform="translate(290, -686)"><use xlink:href="#MJX-2-TEX-N-32"></use></g><rect width="840" height="60" x="120" y="220"></rect></g><g data-mml-node="mo" transform="translate(2989.3, 0)"><use xlink:href="#MJX-2-TEX-N-3D"></use></g><g data-mml-node="mfrac" transform="translate(4045.1, 0)"><g data-mml-node="mrow" transform="translate(220, 676)"><g data-mml-node="mn"><use xlink:href="#MJX-2-TEX-N-31"></use></g><g data-mml-node="mo" transform="translate(722.2, 0)"><use xlink:href="#MJX-2-TEX-N-2212"></use></g><g data-mml-node="mtext" transform="translate(1722.4, 0)"><use xlink:href="#MJX-2-TEX-N-63"></use><use xlink:href="#MJX-2-TEX-N-6F" transform="translate(444, 0)"></use><use xlink:href="#MJX-2-TEX-N-73" transform="translate(944, 0)"></use></g><g data-mml-node="mi" transform="translate(3060.4, 0)"><use xlink:href="#MJX-2-TEX-I-1D6FC"></use></g></g><g data-mml-node="mn" transform="translate(1820.2, -686)"><use xlink:href="#MJX-2-TEX-N-32"></use></g><rect width="3900.4" height="60" x="120" y="220"></rect></g></g></g></svg>',latex:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2}"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="18.768ex" height="4.588ex" viewBox="0 -1342 8295.6 2028" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-3-TEX-N-63" d="M370 305T349 305T313 320T297 358Q297 381 312 396Q317 401 317 402T307 404Q281 408 258 408Q209 408 178 376Q131 329 131 219Q131 137 162 90Q203 29 272 29Q313 29 338 55T374 117Q376 125 379 127T395 129H409Q415 123 415 120Q415 116 411 104T395 71T366 33T318 2T249 -11Q163 -11 99 53T34 214Q34 318 99 383T250 448T370 421T404 357Q404 334 387 320Z"></path><path id="MJX-3-TEX-N-6F" d="M28 214Q28 309 93 378T250 448Q340 448 405 380T471 215Q471 120 407 55T250 -10Q153 -10 91 57T28 214ZM250 30Q372 30 372 193V225V250Q372 272 371 288T364 326T348 362T317 390T268 410Q263 411 252 411Q222 411 195 399Q152 377 139 338T126 246V226Q126 130 145 91Q177 30 250 30Z"></path><path id="MJX-3-TEX-N-73" d="M295 316Q295 356 268 385T190 414Q154 414 128 401Q98 382 98 349Q97 344 98 336T114 312T157 287Q175 282 201 278T245 269T277 256Q294 248 310 236T342 195T359 133Q359 71 321 31T198 -10H190Q138 -10 94 26L86 19L77 10Q71 4 65 -1L54 -11H46H42Q39 -11 33 -5V74V132Q33 153 35 157T45 162H54Q66 162 70 158T75 146T82 119T101 77Q136 26 198 26Q295 26 295 104Q295 133 277 151Q257 175 194 187T111 210Q75 227 54 256T33 318Q33 357 50 384T93 424T143 442T187 447H198Q238 447 268 432L283 424L292 431Q302 440 314 448H322H326Q329 448 335 442V310L329 304H301Q295 310 295 316Z"></path><path id="MJX-3-TEX-N-32" d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z"></path><path id="MJX-3-TEX-I-1D6FC" d="M34 156Q34 270 120 356T309 442Q379 442 421 402T478 304Q484 275 485 237V208Q534 282 560 374Q564 388 566 390T582 393Q603 393 603 385Q603 376 594 346T558 261T497 161L486 147L487 123Q489 67 495 47T514 26Q528 28 540 37T557 60Q559 67 562 68T577 70Q597 70 597 62Q597 56 591 43Q579 19 556 5T512 -10H505Q438 -10 414 62L411 69L400 61Q390 53 370 41T325 18T267 -2T203 -11Q124 -11 79 39T34 156ZM208 26Q257 26 306 47T379 90L403 112Q401 255 396 290Q382 405 304 405Q235 405 183 332Q156 292 139 224T121 120Q121 71 146 49T208 26Z"></path><path id="MJX-3-TEX-N-3D" d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z"></path><path id="MJX-3-TEX-N-31" d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z"></path><path id="MJX-3-TEX-N-2B" d="M56 237T56 250T70 270H369V420L370 570Q380 583 389 583Q402 583 409 568V270H707Q722 262 722 250T707 230H409V-68Q401 -82 391 -82H389H387Q375 -82 369 -68V230H70Q56 237 56 250Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="msup"><g data-mml-node="mtext"><use xlink:href="#MJX-3-TEX-N-63"></use><use xlink:href="#MJX-3-TEX-N-6F" transform="translate(444, 0)"></use><use xlink:href="#MJX-3-TEX-N-73" transform="translate(944, 0)"></use></g><g data-mml-node="TeXAtom" transform="translate(1338, 413) scale(0.707)" data-mjx-texclass="ORD"><g data-mml-node="mn"><use xlink:href="#MJX-3-TEX-N-32"></use></g></g></g><g data-mml-node="mfrac" transform="translate(1741.6, 0)"><g data-mml-node="mi" transform="translate(220, 676)"><use xlink:href="#MJX-3-TEX-I-1D6FC"></use></g><g data-mml-node="mn" transform="translate(290, -686)"><use xlink:href="#MJX-3-TEX-N-32"></use></g><rect width="840" height="60" x="120" y="220"></rect></g><g data-mml-node="mo" transform="translate(3099.3, 0)"><use xlink:href="#MJX-3-TEX-N-3D"></use></g><g data-mml-node="mfrac" transform="translate(4155.1, 0)"><g data-mml-node="mrow" transform="translate(220, 676)"><g data-mml-node="mn"><use xlink:href="#MJX-3-TEX-N-31"></use></g><g data-mml-node="mo" transform="translate(722.2, 0)"><use xlink:href="#MJX-3-TEX-N-2B"></use></g><g data-mml-node="mtext" transform="translate(1722.4, 0)"><use xlink:href="#MJX-3-TEX-N-63"></use><use xlink:href="#MJX-3-TEX-N-6F" transform="translate(444, 0)"></use><use xlink:href="#MJX-3-TEX-N-73" transform="translate(944, 0)"></use></g><g data-mml-node="mi" transform="translate(3060.4, 0)"><use xlink:href="#MJX-3-TEX-I-1D6FC"></use></g></g><g data-mml-node="mn" transform="translate(1820.2, -686)"><use xlink:href="#MJX-3-TEX-N-32"></use></g><rect width="3900.4" height="60" x="120" y="220"></rect></g></g></g></svg>',latex:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2}"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="18.097ex" height="4.781ex" viewBox="0 -1345 7999 2113" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-4-TEX-N-74" d="M27 422Q80 426 109 478T141 600V615H181V431H316V385H181V241Q182 116 182 100T189 68Q203 29 238 29Q282 29 292 100Q293 108 293 146V181H333V146V134Q333 57 291 17Q264 -10 221 -10Q187 -10 162 2T124 33T105 68T98 100Q97 107 97 248V385H18V422H27Z"></path><path id="MJX-4-TEX-N-61" d="M137 305T115 305T78 320T63 359Q63 394 97 421T218 448Q291 448 336 416T396 340Q401 326 401 309T402 194V124Q402 76 407 58T428 40Q443 40 448 56T453 109V145H493V106Q492 66 490 59Q481 29 455 12T400 -6T353 12T329 54V58L327 55Q325 52 322 49T314 40T302 29T287 17T269 6T247 -2T221 -8T190 -11Q130 -11 82 20T34 107Q34 128 41 147T68 188T116 225T194 253T304 268H318V290Q318 324 312 340Q290 411 215 411Q197 411 181 410T156 406T148 403Q170 388 170 359Q170 334 154 320ZM126 106Q126 75 150 51T209 26Q247 26 276 49T315 109Q317 116 318 175Q318 233 317 233Q309 233 296 232T251 223T193 203T147 166T126 106Z"></path><path id="MJX-4-TEX-N-6E" d="M41 46H55Q94 46 102 60V68Q102 77 102 91T102 122T103 161T103 203Q103 234 103 269T102 328V351Q99 370 88 376T43 385H25V408Q25 431 27 431L37 432Q47 433 65 434T102 436Q119 437 138 438T167 441T178 442H181V402Q181 364 182 364T187 369T199 384T218 402T247 421T285 437Q305 442 336 442Q450 438 463 329Q464 322 464 190V104Q464 66 466 59T477 49Q498 46 526 46H542V0H534L510 1Q487 2 460 2T422 3Q319 3 310 0H302V46H318Q379 46 379 62Q380 64 380 200Q379 335 378 343Q372 371 358 385T334 402T308 404Q263 404 229 370Q202 343 195 315T187 232V168V108Q187 78 188 68T191 55T200 49Q221 46 249 46H265V0H257L234 1Q210 2 183 2T145 3Q42 3 33 0H25V46H41Z"></path><path id="MJX-4-TEX-I-1D6FC" d="M34 156Q34 270 120 356T309 442Q379 442 421 402T478 304Q484 275 485 237V208Q534 282 560 374Q564 388 566 390T582 393Q603 393 603 385Q603 376 594 346T558 261T497 161L486 147L487 123Q489 67 495 47T514 26Q528 28 540 37T557 60Q559 67 562 68T577 70Q597 70 597 62Q597 56 591 43Q579 19 556 5T512 -10H505Q438 -10 414 62L411 69L400 61Q390 53 370 41T325 18T267 -2T203 -11Q124 -11 79 39T34 156ZM208 26Q257 26 306 47T379 90L403 112Q401 255 396 290Q382 405 304 405Q235 405 183 332Q156 292 139 224T121 120Q121 71 146 49T208 26Z"></path><path id="MJX-4-TEX-N-32" d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z"></path><path id="MJX-4-TEX-N-3D" d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z"></path><path id="MJX-4-TEX-N-73" d="M295 316Q295 356 268 385T190 414Q154 414 128 401Q98 382 98 349Q97 344 98 336T114 312T157 287Q175 282 201 278T245 269T277 256Q294 248 310 236T342 195T359 133Q359 71 321 31T198 -10H190Q138 -10 94 26L86 19L77 10Q71 4 65 -1L54 -11H46H42Q39 -11 33 -5V74V132Q33 153 35 157T45 162H54Q66 162 70 158T75 146T82 119T101 77Q136 26 198 26Q295 26 295 104Q295 133 277 151Q257 175 194 187T111 210Q75 227 54 256T33 318Q33 357 50 384T93 424T143 442T187 447H198Q238 447 268 432L283 424L292 431Q302 440 314 448H322H326Q329 448 335 442V310L329 304H301Q295 310 295 316Z"></path><path id="MJX-4-TEX-N-69" d="M69 609Q69 637 87 653T131 669Q154 667 171 652T188 609Q188 579 171 564T129 549Q104 549 87 564T69 609ZM247 0Q232 3 143 3Q132 3 106 3T56 1L34 0H26V46H42Q70 46 91 49Q100 53 102 60T104 102V205V293Q104 345 102 359T88 378Q74 385 41 385H30V408Q30 431 32 431L42 432Q52 433 70 434T106 436Q123 437 142 438T171 441T182 442H185V62Q190 52 197 50T232 46H255V0H247Z"></path><path id="MJX-4-TEX-N-31" d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z"></path><path id="MJX-4-TEX-N-2B" d="M56 237T56 250T70 270H369V420L370 570Q380 583 389 583Q402 583 409 568V270H707Q722 262 722 250T707 230H409V-68Q401 -82 391 -82H389H387Q375 -82 369 -68V230H70Q56 237 56 250Z"></path><path id="MJX-4-TEX-N-63" d="M370 305T349 305T313 320T297 358Q297 381 312 396Q317 401 317 402T307 404Q281 408 258 408Q209 408 178 376Q131 329 131 219Q131 137 162 90Q203 29 272 29Q313 29 338 55T374 117Q376 125 379 127T395 129H409Q415 123 415 120Q415 116 411 104T395 71T366 33T318 2T249 -11Q163 -11 99 53T34 214Q34 318 99 383T250 448T370 421T404 357Q404 334 387 320Z"></path><path id="MJX-4-TEX-N-6F" d="M28 214Q28 309 93 378T250 448Q340 448 405 380T471 215Q471 120 407 55T250 -10Q153 -10 91 57T28 214ZM250 30Q372 30 372 193V225V250Q372 272 371 288T364 326T348 362T317 390T268 410Q263 411 252 411Q222 411 195 399Q152 377 139 338T126 246V226Q126 130 145 91Q177 30 250 30Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mtext"><use xlink:href="#MJX-4-TEX-N-74"></use><use xlink:href="#MJX-4-TEX-N-61" transform="translate(389, 0)"></use><use xlink:href="#MJX-4-TEX-N-6E" transform="translate(889, 0)"></use></g><g data-mml-node="mfrac" transform="translate(1445, 0)"><g data-mml-node="mi" transform="translate(220, 676)"><use xlink:href="#MJX-4-TEX-I-1D6FC"></use></g><g data-mml-node="mn" transform="translate(290, -686)"><use xlink:href="#MJX-4-TEX-N-32"></use></g><rect width="840" height="60" x="120" y="220"></rect></g><g data-mml-node="mo" transform="translate(2802.8, 0)"><use xlink:href="#MJX-4-TEX-N-3D"></use></g><g data-mml-node="mfrac" transform="translate(3858.6, 0)"><g data-mml-node="mrow" transform="translate(1136.2, 676)"><g data-mml-node="mtext"><use xlink:href="#MJX-4-TEX-N-73"></use><use xlink:href="#MJX-4-TEX-N-69" transform="translate(394, 0)"></use><use xlink:href="#MJX-4-TEX-N-6E" transform="translate(672, 0)"></use></g><g data-mml-node="mi" transform="translate(1228, 0)"><use xlink:href="#MJX-4-TEX-I-1D6FC"></use></g></g><g data-mml-node="mrow" transform="translate(220, -686)"><g data-mml-node="mn"><use xlink:href="#MJX-4-TEX-N-31"></use></g><g data-mml-node="mo" transform="translate(722.2, 0)"><use xlink:href="#MJX-4-TEX-N-2B"></use></g><g data-mml-node="mtext" transform="translate(1722.4, 0)"><use xlink:href="#MJX-4-TEX-N-63"></use><use xlink:href="#MJX-4-TEX-N-6F" transform="translate(444, 0)"></use><use xlink:href="#MJX-4-TEX-N-73" transform="translate(944, 0)"></use></g><g data-mml-node="mi" transform="translate(3060.4, 0)"><use xlink:href="#MJX-4-TEX-I-1D6FC"></use></g></g><rect width="3900.4" height="60" x="120" y="220"></rect></g></g></g></svg>',latex:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha}"},{name:"",img:'<svg xmlns="http://www.w3.org/2000/svg" width="35.869ex" height="4.676ex" viewBox="0 -1381 15854.2 2067" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" style=""><defs><path id="MJX-6-TEX-N-73" d="M295 316Q295 356 268 385T190 414Q154 414 128 401Q98 382 98 349Q97 344 98 336T114 312T157 287Q175 282 201 278T245 269T277 256Q294 248 310 236T342 195T359 133Q359 71 321 31T198 -10H190Q138 -10 94 26L86 19L77 10Q71 4 65 -1L54 -11H46H42Q39 -11 33 -5V74V132Q33 153 35 157T45 162H54Q66 162 70 158T75 146T82 119T101 77Q136 26 198 26Q295 26 295 104Q295 133 277 151Q257 175 194 187T111 210Q75 227 54 256T33 318Q33 357 50 384T93 424T143 442T187 447H198Q238 447 268 432L283 424L292 431Q302 440 314 448H322H326Q329 448 335 442V310L329 304H301Q295 310 295 316Z"></path><path id="MJX-6-TEX-N-69" d="M69 609Q69 637 87 653T131 669Q154 667 171 652T188 609Q188 579 171 564T129 549Q104 549 87 564T69 609ZM247 0Q232 3 143 3Q132 3 106 3T56 1L34 0H26V46H42Q70 46 91 49Q100 53 102 60T104 102V205V293Q104 345 102 359T88 378Q74 385 41 385H30V408Q30 431 32 431L42 432Q52 433 70 434T106 436Q123 437 142 438T171 441T182 442H185V62Q190 52 197 50T232 46H255V0H247Z"></path><path id="MJX-6-TEX-N-6E" d="M41 46H55Q94 46 102 60V68Q102 77 102 91T102 122T103 161T103 203Q103 234 103 269T102 328V351Q99 370 88 376T43 385H25V408Q25 431 27 431L37 432Q47 433 65 434T102 436Q119 437 138 438T167 441T178 442H181V402Q181 364 182 364T187 369T199 384T218 402T247 421T285 437Q305 442 336 442Q450 438 463 329Q464 322 464 190V104Q464 66 466 59T477 49Q498 46 526 46H542V0H534L510 1Q487 2 460 2T422 3Q319 3 310 0H302V46H318Q379 46 379 62Q380 64 380 200Q379 335 378 343Q372 371 358 385T334 402T308 404Q263 404 229 370Q202 343 195 315T187 232V168V108Q187 78 188 68T191 55T200 49Q221 46 249 46H265V0H257L234 1Q210 2 183 2T145 3Q42 3 33 0H25V46H41Z"></path><path id="MJX-6-TEX-N-2061" d=""></path><path id="MJX-6-TEX-I-1D6FC" d="M34 156Q34 270 120 356T309 442Q379 442 421 402T478 304Q484 275 485 237V208Q534 282 560 374Q564 388 566 390T582 393Q603 393 603 385Q603 376 594 346T558 261T497 161L486 147L487 123Q489 67 495 47T514 26Q528 28 540 37T557 60Q559 67 562 68T577 70Q597 70 597 62Q597 56 591 43Q579 19 556 5T512 -10H505Q438 -10 414 62L411 69L400 61Q390 53 370 41T325 18T267 -2T203 -11Q124 -11 79 39T34 156ZM208 26Q257 26 306 47T379 90L403 112Q401 255 396 290Q382 405 304 405Q235 405 183 332Q156 292 139 224T121 120Q121 71 146 49T208 26Z"></path><path id="MJX-6-TEX-N-2B" d="M56 237T56 250T70 270H369V420L370 570Q380 583 389 583Q402 583 409 568V270H707Q722 262 722 250T707 230H409V-68Q401 -82 391 -82H389H387Q375 -82 369 -68V230H70Q56 237 56 250Z"></path><path id="MJX-6-TEX-I-1D6FD" d="M29 -194Q23 -188 23 -186Q23 -183 102 134T186 465Q208 533 243 584T309 658Q365 705 429 705H431Q493 705 533 667T573 570Q573 465 469 396L482 383Q533 332 533 252Q533 139 448 65T257 -10Q227 -10 203 -2T165 17T143 40T131 59T126 65L62 -188Q60 -194 42 -194H29ZM353 431Q392 431 427 419L432 422Q436 426 439 429T449 439T461 453T472 471T484 495T493 524T501 560Q503 569 503 593Q503 611 502 616Q487 667 426 667Q384 667 347 643T286 582T247 514T224 455Q219 439 186 308T152 168Q151 163 151 147Q151 99 173 68Q204 26 260 26Q302 26 349 51T425 137Q441 171 449 214T457 279Q457 337 422 372Q380 358 347 358H337Q258 358 258 389Q258 396 261 403Q275 431 353 431Z"></path><path id="MJX-6-TEX-N-3D" d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z"></path><path id="MJX-6-TEX-N-32" d="M109 429Q82 429 66 447T50 491Q50 562 103 614T235 666Q326 666 387 610T449 465Q449 422 429 383T381 315T301 241Q265 210 201 149L142 93L218 92Q375 92 385 97Q392 99 409 186V189H449V186Q448 183 436 95T421 3V0H50V19V31Q50 38 56 46T86 81Q115 113 136 137Q145 147 170 174T204 211T233 244T261 278T284 308T305 340T320 369T333 401T340 431T343 464Q343 527 309 573T212 619Q179 619 154 602T119 569T109 550Q109 549 114 549Q132 549 151 535T170 489Q170 464 154 447T109 429Z"></path><path id="MJX-6-TEX-N-63" d="M370 305T349 305T313 320T297 358Q297 381 312 396Q317 401 317 402T307 404Q281 408 258 408Q209 408 178 376Q131 329 131 219Q131 137 162 90Q203 29 272 29Q313 29 338 55T374 117Q376 125 379 127T395 129H409Q415 123 415 120Q415 116 411 104T395 71T366 33T318 2T249 -11Q163 -11 99 53T34 214Q34 318 99 383T250 448T370 421T404 357Q404 334 387 320Z"></path><path id="MJX-6-TEX-N-6F" d="M28 214Q28 309 93 378T250 448Q340 448 405 380T471 215Q471 120 407 55T250 -10Q153 -10 91 57T28 214ZM250 30Q372 30 372 193V225V250Q372 272 371 288T364 326T348 362T317 390T268 410Q263 411 252 411Q222 411 195 399Q152 377 139 338T126 246V226Q126 130 145 91Q177 30 250 30Z"></path><path id="MJX-6-TEX-N-2212" d="M84 237T84 250T98 270H679Q694 262 694 250T679 230H98Q84 237 84 250Z"></path></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)"><g data-mml-node="math"><g data-mml-node="mi"><use xlink:href="#MJX-6-TEX-N-73"></use><use xlink:href="#MJX-6-TEX-N-69" transform="translate(394, 0)"></use><use xlink:href="#MJX-6-TEX-N-6E" transform="translate(672, 0)"></use></g><g data-mml-node="mo" transform="translate(1228, 0)"><use xlink:href="#MJX-6-TEX-N-2061"></use></g><g data-mml-node="mi" transform="translate(1394.7, 0)"><use xlink:href="#MJX-6-TEX-I-1D6FC"></use></g><g data-mml-node="mo" transform="translate(2256.9, 0)"><use xlink:href="#MJX-6-TEX-N-2B"></use></g><g data-mml-node="mi" transform="translate(3257.1, 0)"><use xlink:href="#MJX-6-TEX-N-73"></use><use xlink:href="#MJX-6-TEX-N-69" transform="translate(394, 0)"></use><use xlink:href="#MJX-6-TEX-N-6E" transform="translate(672, 0)"></use></g><g data-mml-node="mo" transform="translate(4485.1, 0)"><use xlink:href="#MJX-6-TEX-N-2061"></use></g><g data-mml-node="mi" transform="translate(4651.8, 0)"><use xlink:href="#MJX-6-TEX-I-1D6FD"></use></g><g data-mml-node="mo" transform="translate(5495.6, 0)"><use xlink:href="#MJX-6-TEX-N-3D"></use></g><g data-mml-node="mn" transform="translate(6551.3, 0)"><use xlink:href="#MJX-6-TEX-N-32"></use></g><g data-mml-node="mi" transform="translate(7218, 0)"><use xlink:href="#MJX-6-TEX-N-73"></use><use xlink:href="#MJX-6-TEX-N-69" transform="translate(394, 0)"></use><use xlink:href="#MJX-6-TEX-N-6E" transform="translate(672, 0)"></use></g><g data-mml-node="mo" transform="translate(8446, 0)"><use xlink:href="#MJX-6-TEX-N-2061"></use></g><g data-mml-node="mfrac" transform="translate(8612.7, 0)"><g data-mml-node="mrow" transform="translate(220, 676)"><g data-mml-node="mi"><use xlink:href="#MJX-6-TEX-I-1D6FC"></use></g><g data-mml-node="mo" transform="translate(862.2, 0)"><use xlink:href="#MJX-6-TEX-N-2B"></use></g><g data-mml-node="mi" transform="translate(1862.4, 0)"><use xlink:href="#MJX-6-TEX-I-1D6FD"></use></g></g><g data-mml-node="mn" transform="translate(1184.2, -686)"><use xlink:href="#MJX-6-TEX-N-32"></use></g><rect width="2628.4" height="60" x="120" y="220"></rect></g><g data-mml-node="mi" transform="translate(11481.1, 0)"><use xlink:href="#MJX-6-TEX-N-63"></use><use xlink:href="#MJX-6-TEX-N-6F" transform="translate(444, 0)"></use><use xlink:href="#MJX-6-TEX-N-73" transform="translate(944, 0)"></use></g><g data-mml-node="mo" transform="translate(12819.1, 0)"><use xlink:href="#MJX-6-TEX-N-2061"></use></g><g data-mml-node="mfrac" transform="translate(12985.8, 0)"><g data-mml-node="mrow" transform="translate(220, 676)"><g data-mml-node="mi"><use xlink:href="#MJX-6-TEX-I-1D6FC"></use></g><g data-mml-node="mo" transform="translate(862.2, 0)"><use xlink:href="#MJX-6-TEX-N-2212"></use></g><g data-mml-node="mi" transform="translate(1862.4, 0)"><use xlink:href="#MJX-6-TEX-I-1D6FD"></use></g></g><g data-mml-node="mn" transform="translate(1184.2, -686)"><use xlink:href="#MJX-6-TEX-N-32"></use></g><rect width="2628.4" height="60" x="120" y="220"></rect></g></g></g></svg>',latex:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2}"}]}}},font:{title:"文本样式",subCategory:{color:{title:"颜色",formulas:[{name:"文本颜色",img:"",latex:""},{name:"蓝色文字",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><text x="40" y="15" text-anchor="middle" font-size="13" fill="#1976D2" font-family="Arial, sans-serif">蓝色 Blue</text></svg>',latex:"{\\color{Blue} } "},{name:"棕色文字",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><text x="40" y="15" text-anchor="middle" font-size="13" fill="#8D6E63" font-family="Arial, sans-serif">棕色 Brown</text></svg>',latex:"{\\color{Brown} } "},{name:"灰色文字",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><text x="40" y="15" text-anchor="middle" font-size="13" fill="#757575" font-family="Arial, sans-serif">灰色 Gray</text></svg>',latex:"{\\color{Gray} } "},{name:"绿色文字",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><text x="40" y="15" text-anchor="middle" font-size="13" fill="#388E3C" font-family="Arial, sans-serif">绿色 Green</text></svg>',latex:"{\\color{Green} } "},{name:"橙色文字",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><text x="40" y="15" text-anchor="middle" font-size="13" fill="#FF9800" font-family="Arial, sans-serif">橙色 Orange</text></svg>',latex:"{\\color{Orange} } "},{name:"桃色文字",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><text x="40" y="15" text-anchor="middle" font-size="13" fill="#FFAB91" font-family="Arial, sans-serif">桃色 Peach</text></svg>',latex:"{\\color{Peach} } "},{name:"紫色文字",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><text x="40" y="15" text-anchor="middle" font-size="13" fill="#7B1FA2" font-family="Arial, sans-serif">紫色 Purple</text></svg>',latex:"{\\color{Purple} } "},{name:"红色文字",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><text x="40" y="15" text-anchor="middle" font-size="13" fill="#D32F2F" font-family="Arial, sans-serif">红色 Red</text></svg>',latex:"{\\color{Red} } "},{name:"棕褐色文字",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><text x="40" y="15" text-anchor="middle" font-size="13" fill="#D2B48C" font-family="Arial, sans-serif">棕褐色 Tan</text></svg>',latex:"{\\color{Tan} } "},{name:"紫罗兰色文字",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><text x="40" y="15" text-anchor="middle" font-size="13" fill="#8E24AA" font-family="Arial, sans-serif">紫罗兰 Violet</text></svg>',latex:"{\\color{Violet} } "},{name:"黄色文字",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><text x="40" y="15" text-anchor="middle" font-size="13" fill="#FBC02D" font-family="Arial, sans-serif">黄色 Yellow</text></svg>',latex:"{\\color{Yellow} } "},{name:"黑色文字",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><text x="40" y="15" text-anchor="middle" font-size="13" fill="#000000" font-family="Arial, sans-serif">黑色 Black</text></svg>',latex:"{\\color[RGB]{0,0,0} } "},{name:"背景颜色",img:"",latex:""},{name:"蓝色背景",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><rect width="80" height="20" fill="#E3F2FD"/><text x="40" y="15" text-anchor="middle" font-size="13" fill="#1976D2" font-family="Arial, sans-serif">蓝色 Blue</text></svg>',latex:"{\\colorbox{Blue}{ } } "},{name:"棕色背景",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><rect width="80" height="20" fill="#EFEBE9"/><text x="40" y="15" text-anchor="middle" font-size="13" fill="#8D6E63" font-family="Arial, sans-serif">棕色 Brown</text></svg>',latex:"{\\colorbox{Brown}{ } } "},{name:"灰色背景",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><rect width="80" height="20" fill="#F5F5F5"/><text x="40" y="15" text-anchor="middle" font-size="13" fill="#757575" font-family="Arial, sans-serif">灰色 Gray</text></svg>',latex:"{\\colorbox{Gray}{ } } "},{name:"绿色背景",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><rect width="80" height="20" fill="#E8F5E8"/><text x="40" y="15" text-anchor="middle" font-size="13" fill="#388E3C" font-family="Arial, sans-serif">绿色 Green</text></svg>',latex:"{\\colorbox{Green}{ } } "},{name:"橙色背景",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><rect width="80" height="20" fill="#FFF3E0"/><text x="40" y="15" text-anchor="middle" font-size="13" fill="#FF9800" font-family="Arial, sans-serif">橙色 Orange</text></svg>',latex:"{\\colorbox{Orange}{ } } "},{name:"桃色背景",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><rect width="80" height="20" fill="#FFF8F5"/><text x="40" y="15" text-anchor="middle" font-size="13" fill="#FFAB91" font-family="Arial, sans-serif">桃色 Peach</text></svg>',latex:"{\\colorbox{Peach}{ } } "},{name:"紫色背景",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><rect width="80" height="20" fill="#F3E5F5"/><text x="40" y="15" text-anchor="middle" font-size="13" fill="#7B1FA2" font-family="Arial, sans-serif">紫色 Purple</text></svg>',latex:"{\\colorbox{Purple}{ } } "},{name:"红色背景",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><rect width="80" height="20" fill="#FFEBEE"/><text x="40" y="15" text-anchor="middle" font-size="13" fill="#D32F2F" font-family="Arial, sans-serif">红色 Red</text></svg>',latex:"{\\colorbox{Red}{ } } "},{name:"黄色背景",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><rect width="80" height="20" fill="#FFFDE7"/><text x="40" y="15" text-anchor="middle" font-size="13" fill="#F57F17" font-family="Arial, sans-serif">黄色 Yellow</text></svg>',latex:"{\\colorbox{Yellow}{ } } "},{name:"白色背景",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><rect width="80" height="20" fill="#FFFFFF" stroke="#E0E0E0" stroke-width="1"/><text x="40" y="15" text-anchor="middle" font-size="13" fill="#424242" font-family="Arial, sans-serif">白色 White</text></svg>',latex:"{\\colorbox{White}{ } } "}]},fontSize:{title:"字号",formulas:[{name:"极小字体",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><text x="40" y="15" text-anchor="middle" font-size="8" fill="#333" font-family="Arial, sans-serif">tiny 极小</text></svg>',latex:"{\\tiny } "},{name:"脚本字体",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><text x="40" y="15" text-anchor="middle" font-size="10" fill="#333" font-family="Arial, sans-serif">script 脚本</text></svg>',latex:"{\\scriptsize } "},{name:"正常字体",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><text x="40" y="15" text-anchor="middle" font-size="13" fill="#333" font-family="Arial, sans-serif">normal 正常</text></svg>',latex:"{\\normalsize } "},{name:"大字体",img:'<svg width="80" height="20" viewBox="0 0 80 20" xmlns="http://www.w3.org/2000/svg"><text x="40" y="15" text-anchor="middle" font-size="15" fill="#333" font-family="Arial, sans-serif">large 大</text></svg>',latex:"{\\large } "},{name:"较大字体",img:'<svg width="120" height="40" viewBox="0 0 120 40" xmlns="http://www.w3.org/2000/svg"><text x="60" y="26" text-anchor="middle" font-size="17" fill="#333" font-family="Arial, sans-serif">Large 较大</text></svg>',latex:"{\\Large } "},{name:"很大字体",img:'<svg width="120" height="40" viewBox="0 0 120 40" xmlns="http://www.w3.org/2000/svg"><text x="60" y="27" text-anchor="middle" font-size="19" fill="#333" font-family="Arial, sans-serif">LARGE 很大</text></svg>',latex:"{\\LARGE } "},{name:"巨大字体",img:'<svg width="120" height="40" viewBox="0 0 120 40" xmlns="http://www.w3.org/2000/svg"><text x="60" y="28" text-anchor="middle" font-size="21" fill="#333" font-family="Arial, sans-serif">huge 巨大</text></svg>',latex:"{\\huge } "},{name:"超大字体",img:'<svg width="120" height="40" viewBox="0 0 120 40" xmlns="http://www.w3.org/2000/svg"><text x="60" y="29" text-anchor="middle" font-size="23" fill="#333" font-family="Arial, sans-serif">Huge 超大</text></svg>',latex:"{\\Huge } "}]}}}}),Fu(this,"showLatexLive",!0),$h(t).length&&(this.formulaConfig=t.templateConfig||this.formulaConfig,this.showLatexLive=t.showLatexLive),this.init(),this.initEventListeners()},[{key:"afterClick",value:function(e){}},{key:"generateBubbleFormulaHtmlStr",value:function(){var e,t,n=WW(this.formulaConfig||{}),r=this.showLatexLive?'<div class="cherry-insert-formula-more"><a href="https://www.latexlive.com/" target="_blank">查看更多 (LaTeXLive)</a></div>':"",i=_h(n).call(n,function(e,t){var n,r,i=Yy(e,2),o=i[0],a=i[1].title;return Xu(n=Xu(r='<li class="cherry-formula-main-tab'.concat(0===t?" active":"",'" data-name="')).call(r,o,'"><span>')).call(n,a,"</span></li>")}).join(""),o=Xu(e='<nav class="cherry-formula-nav"><ul class="cherry-formula-main-tabs">'.concat(i,"</ul>")).call(e,r,"</nav>"),a=_h(n).call(n,function(e,t){var n,r,i,o=Yy(e,2),a=o[0],s=o[1],l=WW((null==s?void 0:s.subCategory)||{}),c=_h(l).call(l,function(e,t){var n,r,i=Yy(e,2),o=i[0],a=i[1].title;return Xu(n=Xu(r='<li class="cherry-formula-sub-tab'.concat(0===t?" active":"",'" data-name="')).call(r,o,'"><span>')).call(n,a,"</span></li>")}).join(""),u='<div class="cherry-formula-sub-nav"><ul class="cherry-formula-sub-tabs">'.concat(c,"</ul></div>"),d="template"===a?"cherry-formula-item-large":"cherry-formula-item-light",h=_h(l).call(l,function(e,t){var n,r,i,o=Yy(e,2),a=o[0],s="",l=!1,c=CY(o[1].formulas);try{for(c.s();!(i=c.n()).done;){var u=i.value;if(""===u.latex)l&&(s+="</div></div>"),s+='<div class="cherry-formula-grid-group">\n                                <div class="cherry-formula-grid-group-title">'.concat(u.name,'</div>\n                                <div class="cherry-formula-grid-items">'),l=!0;else{var h,f,p,g;l||(s+='<div class="cherry-formula-grid-group"><div class="cherry-formula-grid-items">',l=!0);var m=u.img||"";s+=Xu(h=Xu(f=Xu(p=Xu(g='<div class="cherry-formula-item '.concat(d," ")).call(g,u.formulaClass||"",'" data-formula-code="')).call(p,u.latex,'" title="')).call(f,u.latex,'">')).call(h,m||u.name,"</div>")}}}catch(e){c.e(e)}finally{c.f()}return l&&(s+="</div></div>"),Xu(n=Xu(r='<div class="cherry-formula-grid no-scrollbar'.concat(0===t?" active":"",'" data-grid-for="')).call(r,a,'">')).call(n,s,"</div>")}).join(""),f='<div class="cherry-formula-grid-wrapper">'.concat(h,"</div>");return Xu(n=Xu(r=Xu(i='<div class="cherry-formula-content'.concat(0===t?" active":"",'" data-content-for="')).call(i,a,'">')).call(r,u)).call(n,f,"</div>")}).join(""),s='<div class="cherry-formula-content-wrapper">'.concat(a,"</div>");return Xu(t="".concat(o)).call(t,s)}},{key:"init",value:function(){$h(this.formulaConfig).length&&(this.dom=document.createElement("div"),this.dom.className="cherry-dropdown cherry-insert-formula-wrappler",this.dom.innerHTML=this.generateBubbleFormulaHtmlStr(),this.dom.style.display="none")}},{key:"show",value:function(e){this.dom.style.removeProperty("display"),this.afterClick=e}},{key:"hide",value:function(){this.dom.style.display="none"}},{key:"isShow",value:function(){return"block"===this.dom.style.display}},{key:"isHide",value:function(){return"none"===this.dom.style.display}},{key:"initEventListeners",value:function(){var e,t,n,r,i=this;null===(e=this.dom.querySelector(".cherry-formula-main-tabs"))||void 0===e||e.addEventListener("click",Ju(t=this.handleClickMainTabs).call(t,this)),gf(n=this.dom.querySelectorAll(".cherry-formula-sub-tabs")).call(n,function(e){var t;e.addEventListener("click",Ju(t=i.handleClickSubTabs).call(t,i))}),gf(r=this.dom.querySelectorAll(".cherry-formula-grid-wrapper")).call(r,function(e){var t;e.addEventListener("click",Ju(t=i.handleClickFormulaSelect).call(t,i))})}},{key:"handleClickMainTabs",value:function(e){e.preventDefault(),e.stopPropagation();var t=e.target.closest(".cherry-formula-main-tab");if(t&&!t.classList.contains("active")){var n,r,i=t.dataset.name,o=this.dom.querySelector('.cherry-formula-content[data-content-for="'.concat(i,'"]'));null===(n=this.dom.querySelector(".cherry-formula-main-tab.active"))||void 0===n||n.classList.remove("active"),null===(r=this.dom.querySelector(".cherry-formula-content.active"))||void 0===r||r.classList.remove("active"),t.classList.add("active"),null==o||o.classList.add("active")}}},{key:"handleClickSubTabs",value:function(e){e.preventDefault(),e.stopPropagation();var t=e.target.closest(".cherry-formula-sub-tab");if(t&&!t.classList.contains("active")){var n,r,i=t.dataset.name,o=t.closest(".cherry-formula-content"),a=null==o?void 0:o.querySelector('.cherry-formula-grid[data-grid-for="'.concat(i,'"]'));null==o||null===(n=o.querySelector(".cherry-formula-sub-tab.active"))||void 0===n||n.classList.remove("active"),null==o||null===(r=o.querySelector(".cherry-formula-grid.active"))||void 0===r||r.classList.remove("active"),t.classList.add("active"),null==a||a.classList.add("active")}}},{key:"handleClickFormulaSelect",value:function(e){e.preventDefault(),e.stopPropagation();var t=e.target.closest(".cherry-formula-item");if(t){var n=t.dataset.formulaCode,r=void 0===n?"":n;this.afterClick(r),this.hide()}}}])}();function OY(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(OY=function(){return!!e})()}var MY=function(){function e(t){var n,r,i,o,a,s,l,c;return ua(this,e),s=this,c=[t],l=wu(l=e),(a=Ac(s,OY()?pr(l,c||[],wu(s).constructor):l.apply(s,c))).setName("formula","insertFormula"),a.subBubbleFormulaMenu=new kY(null==t||null===(n=t.options)||void 0===n||null===(r=n.toolbars)||void 0===r||null===(i=r.config)||void 0===i?void 0:i.formula),t.editor.options.wrapperDom.appendChild(a.subBubbleFormulaMenu.dom),a.catchOnce="",a.shortcutKeyMap=Fu({},Xu(o="".concat(CV(),"-")).call(o,SV("m")),{hookName:a.name,aliasName:a.name}),a}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){var t=this;if(this.subBubbleFormulaMenu.isHide()||!this.hasCacheOnce()){var n=this.dom.getBoundingClientRect(),r=this.subBubbleFormulaMenu.dom,i=r.offsetWidth||680,o=document.documentElement.clientWidth,a=n.left+n.width;return a+i>o&&(a=o-i-8)<0&&(a=0),r.style.left="".concat(a,"px"),r.style.top="".concat(n.top+n.height,"px"),this.subBubbleFormulaMenu.show(function(n){var r,i,o=/\n/.test(n)?"".concat(/\n$/.test(e)?e:"".concat(e,"\n"),"$$"):"".concat(e," $ "),a=/\n/.test(n)?"\n$$ ":" $ ";t.registerAfterClickCb(function(){t.setLessSelection(o,a)});var s=Xu(r=Xu(i="".concat(o)).call(i,n)).call(r,a);t.setCacheOnce(s),t.fire(null)}),this.updateMarkdown=!1,!1}return this.getAndCleanCacheOnce()}}])}();function IY(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(IY=function(){return!!e})()}var DY=function(){function e(t){var n,r,i,o,a;return ua(this,e),i=this,a=[t],o=wu(o=e),(r=Ac(i,IY()?pr(o,a||[],wu(i).constructor):o.apply(i,a))).setName("link","link"),r.shortcutKeyMap=Fu({},Xu(n="".concat(CV(),"-")).call(n,SV("l")),{hookName:r.name,aliasName:r.name}),r}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){var t;if(/^http/.test(e))return Xu(t="[".concat(this.locale.link,"](")).call(t,e,")");var n=e||this.locale.link;return"[".concat(n,"](http://url.com) ")}}])}();function NY(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(NY=function(){return!!e})()}var RY=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,NY()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("table","table"),n.subBubbleTableMenu=new qV({row:9,col:9}),t.editor.options.wrapperDom.appendChild(n.subBubbleTableMenu.dom),n.catchOnce="",n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){var t=this;if("none"===this.subBubbleTableMenu.dom.style.display||!this.hasCacheOnce()){var n=this.dom.getBoundingClientRect();return this.subBubbleTableMenu.dom.style.left="".concat(n.left+n.width,"px"),this.subBubbleTableMenu.dom.style.top="".concat(n.top+n.height,"px"),this.subBubbleTableMenu.show(function(n,r){var i,o,a,s=Gx(" Header |").call(" Header |",r),l=Gx(" ------ |").call(" ------ |",r),c="\n|".concat(Gx(" Sample |").call(" Sample |",r)),u=Xu(i=Xu(o=Xu(a="".concat(e,"\n\n|")).call(a,s,"\n|")).call(o,l)).call(i,Gx(c).call(c,n),"\n\n");t.setCacheOnce(u),t.fire(null)}),this.updateMarkdown=!1,!1}return this.getAndCleanCacheOnce()}}])}();function LY(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(LY=function(){return!!e})()}var BY=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,LY()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("toc","toc"),n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){return"".concat(e,"\n\n[[toc]]\n")}}])}();function PY(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(PY=function(){return!!e})()}var FY=function(){function e(t){var n,r,i,o,a,s,l,c,u,d,h,f;return ua(this,e),d=this,f=[t],h=wu(h=e),(u=Ac(d,PY()?pr(h,f||[],wu(d).constructor):h.apply(d,f))).setName("proTable","insertLineChart"),u.localeName=t.options.locale,u.subMenuConfig=[{iconName:"insertLineChart",name:"lineTable",onclick:Ju(n=u.bindSubClick).call(n,u,"lineTable")},{iconName:"insertBarChart",name:"barTable",onclick:Ju(r=u.bindSubClick).call(r,u,"barTable")},{iconName:"insertRadarChart",name:"radarTable",onclick:Ju(i=u.bindSubClick).call(i,u,"radarTable")},{iconName:"insertMapChart",name:"mapTable",onclick:Ju(o=u.bindSubClick).call(o,u,"mapTable")},{iconName:"insertHeatmapChart",name:"heatmapTable",onclick:Ju(a=u.bindSubClick).call(a,u,"heatmapTable")},{iconName:"insertScatterChart",name:"scatterTable",onclick:Ju(s=u.bindSubClick).call(s,u,"scatterTable")},{iconName:"insertPieChart",name:"pieTable",onclick:Ju(l=u.bindSubClick).call(l,u,"pieTable")},{iconName:"insertSankeyChart",name:"sankeyTable",onclick:Ju(c=u.bindSubClick).call(c,u,"sankeyTable")}],u}return Pu(e,nV),mc(e,[{key:"getSubMenuConfig",value:function(){return this.subMenuConfig}},{key:"onClick",value:function(e){switch(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"lineTable"){case"lineTable":default:return this.insertLineTable(e);case"barTable":return this.insertBarTable(e);case"radarTable":return this.insertRadarTable(e);case"mapTable":return this.insertMapTable(e);case"heatmapTable":return this.insertHeatmapTable(e);case"pieTable":return this.insertPieTable(e);case"scatterTable":return this.insertScatterTable(e);case"sankeyTable":return this.insertSankeyTable(e)}}},{key:"insertLineTable",value:function(e){var t;return Xu(t="".concat(e,"\n\n")).call(t,['| :line: {"title": "'.concat(this.$cherry.locale.lineTable,'"} | a | b | c |'),"| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n")}},{key:"insertBarTable",value:function(e){var t;return Xu(t="".concat(e,"\n\n")).call(t,['| :bar: {"title": "'.concat(this.$cherry.locale.barTable,'"} | a | b | c |'),"| :-: | :-: | :-: | :-: |","| x | 1 | 2 | 3 |","| y | 2 | 4 | 6 |","| z | 7 | 5 | 3 |"].join("\n"),"\n\n")}},{key:"insertRadarTable",value:function(e){var t;return Xu(t="".concat(e,"\n\n")).call(t,['| :radar: {"title": "'.concat(this.$cherry.locale.radarTable,'"} | 技能1 | 技能2 | 技能3 | 技能4 | 技能5 |'),"| :-: | :-: | :-: | :-: | :-: | :-: |","| 用户A | 90 | 85 | 75 | 80 | 88 |","| 用户B | 75 | 90 | 88 | 85 | 78 |","| 用户C | 85 | 78 | 90 | 88 | 85 |"].join("\n"),"\n\n")}},{key:"insertMapTable",value:function(e){var t;return Xu(t="".concat(e,"\n\n")).call(t,['| :map:{"title": "'.concat(this.$cherry.locale.mapTable,'", "mapDataSource": "https://geo.datav.aliyun.com/areas_v3/bound/100000_full.json"} | 数值 |'),"| :-: | :-: |","| 北京 | 120 |","| 上海 | 280 |","| 广东 | 350 |","| 四川 | 180 |","| 江苏 | 290 |","| 浙江 | 220 |"].join("\n"),"\n\n")}},{key:"insertHeatmapTable",value:function(e){var t;return Xu(t="".concat(e,"\n\n")).call(t,['| :heatmap:{"title": "'.concat(this.$cherry.locale.heatmapTable,'"} | 周一 | 周二 | 周三 | 周四 | 周五 |'),"| :-: | :-: | :-: | :-: | :-: | :-: |","| 9:00 | 10 | 15 | 8 | 12 | 20 |","| 12:00 | 25 | 30 | 18 | 22 | 35 |","| 15:00 | 18 | 20 | 25 | 28 | 30 |","| 18:00 | 35 | 40 | 32 | 38 | 45 |"].join("\n"),"\n\n")}},{key:"insertPieTable",value:function(e){var t;return Xu(t="".concat(e,"\n\n")).call(t,['| :pie:{"title": "'.concat(this.$cherry.locale.pieTable,'"} | 数值 |'),"| :-: | :-: |","| 苹果 | 35 |","| 香蕉 | 25 |","| 橙子 | 20 |","| 葡萄 | 15 |","| 其他 | 5 |"].join("\n"),"\n\n")}},{key:"insertScatterTable",value:function(e){var t;return Xu(t="".concat(e,"\n\n")).call(t,['| :scatter:{"title": "'.concat(this.$cherry.locale.scatterTable,'"} | X | Y | Size | Series |'),"| :-: | :-: | :-: | :-: | :-: |","| A1 | 10 | 20 | 5 | S1 |","| A2 | 15 | 35 | 8 | S1 |","| B1 | 30 | 12 | 3 | S2 |","| B2 | 25 | 28 | 6 | S2 |","| C1 | 50 | 40 | 9 | S3 |","| C2 | 60 | 55 | 7 | S3 |"].join("\n"),"\n\n")}},{key:"insertSankeyTable",value:function(e){var t;return Xu(t="".concat(e,"\n\n")).call(t,['| :sankey:{"title": "'.concat(this.$cherry.locale.sankeyTable||"桑基图",'"} | Target | Value |'),"| :-: | :-: | :-: |","| A | A1 | 5 |","| A | A2 | 3 |","| B | B1 | 8 |","| A | B1 | 3 |","| B1 | A1 | 1 |","| B1 | C | 2 |"].join("\n"),"\n\n")}}])}();function $Y(e,t){var n=void 0!==HC&&UC(e)||e["@@iterator"];if(!n){if(QC(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return jY(e,t);var r=_x(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u_(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jY(e,t):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function jY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function HY(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(HY=function(){return!!e})()}var UY=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,HY()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("pdf","pdf"),n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){var t,n,r,i,o,a,s=this,l=null!==(t=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.pdf)&&void 0!==t?t:"*";if(null!==(i=null===(o=this.$cherry)||void 0===o||null===(a=o.options.multipleFileSelection)||void 0===a?void 0:a.pdf)&&void 0!==i&&i){if(this.hasCacheOnce()){var c,u=this.getAndCleanCacheOnce(),d="",h=$Y(u);try{var f=function(){var e,t,n=c.value,r=n.url,i=n.params,o="](".concat(r,")");s.registerAfterClickCb(function(){s.setLessSelection("[",o)});var a=i&&i.name?i.name:"file";d+=Xu(e=Xu(t="".concat("[")).call(t,a)).call(e,o,"\n")};for(h.s();!(c=h.n()).done;)f()}catch(e){h.e(e)}finally{h.f()}return d}return GC(this.editor,"pdf",l,function(e){s.setCacheOnce(e),s.fire(null)}),this.updateMarkdown=!1,e}if(this.hasCacheOnce()){var p,g,m=this.getAndCleanCacheOnce(),v=m.name,A=m.url,b=m.params,y="](".concat(A,")");this.registerAfterClickCb(function(){s.setLessSelection("[",y)});var w=b&&b.name?b.name:v;return Xu(p=Xu(g="".concat("[")).call(g,w)).call(p,y)}return VC(this.editor,"pdf",l,function(e,t,n){s.setCacheOnce({name:e,url:t,params:n}),s.fire(null)}),this.updateMarkdown=!1,e}}])}();function QY(e,t){var n=void 0!==HC&&UC(e)||e["@@iterator"];if(!n){if(QC(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return zY(e,t);var r=_x(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u_(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zY(e,t):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function zY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function WY(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(WY=function(){return!!e})()}var GY=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,WY()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("file","phone"),n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){var t,n,r,i,o,a,s=this,l=null!==(t=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.file)&&void 0!==t?t:"*";if(null!==(i=null===(o=this.$cherry)||void 0===o||null===(a=o.options.multipleFileSelection)||void 0===a?void 0:a.file)&&void 0!==i&&i){if(this.hasCacheOnce()){var c,u=this.getAndCleanCacheOnce(),d="",h=QY(u);try{var f=function(){var e,t,n=c.value,r=n.url,i=n.params,o="](".concat(r,")");s.registerAfterClickCb(function(){s.setLessSelection("[",o)});var a=i.name?i.name:name;d+=Xu(e=Xu(t="".concat("[")).call(t,a)).call(e,o,"\n")};for(h.s();!(c=h.n()).done;)f()}catch(e){h.e(e)}finally{h.f()}return d}return GC(this.editor,"file",l,function(e){s.setCacheOnce(e),s.fire(null)}),this.updateMarkdown=!1,e}if(this.hasCacheOnce()){var p,g,m=this.getAndCleanCacheOnce(),v=m.name,A=m.url,b=m.params,y="](".concat(A,")");this.registerAfterClickCb(function(){s.setLessSelection("[",y)});var w=b.name?b.name:v;return Xu(p=Xu(g="".concat("[")).call(g,w)).call(p,y)}return VC(this.editor,"file",l,function(e,t,n){s.setCacheOnce({name:e,url:t,params:n}),s.fire(null)}),this.updateMarkdown=!1,e}}])}();function VY(e,t){var n=void 0!==HC&&UC(e)||e["@@iterator"];if(!n){if(QC(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return KY(e,t);var r=_x(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u_(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?KY(e,t):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function KY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function YY(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(YY=function(){return!!e})()}var qY=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,YY()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("word","word"),n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){var t,n,r,i,o,a,s=this,l=null!==(t=null===(n=this.$cherry.options)||void 0===n||null===(r=n.fileTypeLimitMap)||void 0===r?void 0:r.word)&&void 0!==t?t:"*";if(null!==(i=null===(o=this.$cherry)||void 0===o||null===(a=o.options.multipleFileSelection)||void 0===a?void 0:a.word)&&void 0!==i&&i){if(this.hasCacheOnce()){var c,u=this.getAndCleanCacheOnce(),d="",h=VY(u);try{var f=function(){var e,t,n=c.value,r=n.url,i=n.params,o="](".concat(r,")");s.registerAfterClickCb(function(){s.setLessSelection("[",o)});var a=i.name?i.name:name;d+=Xu(e=Xu(t="".concat("[")).call(t,a)).call(e,o,"\n")};for(h.s();!(c=h.n()).done;)f()}catch(e){h.e(e)}finally{h.f()}return d}return GC(this.editor,"word",l,function(e){s.setCacheOnce(e),s.fire(null)}),this.updateMarkdown=!1,e}if(this.hasCacheOnce()){var p,g,m=this.getAndCleanCacheOnce(),v=m.name,A=m.url,b=m.params,y="](".concat(A,")");this.registerAfterClickCb(function(){s.setLessSelection("[",y)});var w=b.name?b.name:v;return Xu(p=Xu(g="".concat("[")).call(g,w)).call(p,y)}return VC(this.editor,"word",l,function(e,t,n){s.setCacheOnce({name:e,url:t,params:n}),s.fire(null)}),this.updateMarkdown=!1,e}}])}();function XY(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(XY=function(){return!!e})()}var JY=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,XY()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("pinyin","pinyin"),n}return Pu(e,nV),mc(e,[{key:"$testIsRuby",value:function(e){return/^\s*\{[\s\S]+\|[\s\S]+\}/.test(e)}},{key:"onClick",value:function(e){var t,n,r=this,i=NV(this.editor.editor,e)||"拼音";if(this.isSelections||this.$testIsRuby(i)||this.getMoreSelection(" { "," } ",function(){var e=r.editor.editor.getSelection(),t=r.$testIsRuby(e);return t&&(i=e),t}),this.$testIsRuby(i))return i.replace(/^\s*\{\s*([\s\S]+?)\s*\|[\s\S]+\}\s*/gm,"$1");var o=c_(t=this.editor.$cherry.options.callback.changeString2Pinyin(i)||"pin yin").call(t);return this.registerAfterClickCb(function(){r.setLessSelection(" { "," } ")}),Xu(n=" { ".concat(i," | ")).call(n,o," } ")}}])}();function ZY(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(ZY=function(){return!!e})()}var eq=function(){function e(t){var n,r,i,o;ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,ZY()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("theme","insertChart"),n.subMenuConfig=[];var a=n,s=t.options.theme||t.options.themeSettings.themeList;return gf(s).call(s,function(e){var t;a.subMenuConfig.push({iconName:e.className,name:e.label,onclick:Ju(t=a.bindSubClick).call(t,a,e.className)})}),n}return Pu(e,nV),mc(e,[{key:"getActiveSubMenuIndex",value:function(e){var t,n,r=(null===(t=this.$cherry.wrapperDom.className.match(/theme__([^\s]+)/))||void 0===t?void 0:t[1])||"";return lk(n=u_(e.querySelectorAll(".cherry-dropdown-item"))).call(n,function(e){return e.querySelector(".ch-icon-".concat(r))})}},{key:"onClick",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.$cherry.$event.emit("changeMainTheme",t),Sk(this.$cherry,t),this.updateMarkdown=!1,""}}])}();function tq(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(tq=function(){return!!e})()}var nq=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,tq()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("wordCount","wordCount"),n.noIcon=!0,n.countState=0,n.countEvent=new Event("count"),n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){var t=this,n=this.$cherry.wrapperDom.querySelector(".cherry-toolbar-button.cherry-toolbar-wordCount");if(0===this.countState){n.addEventListener("count",function(){var e,r,i,o,a,s,l,c,u=t.$cherry.getMarkdown(),d=t.wordCount(u),h=d.characters,f=d.words,p=d.paragraphs,g=t.$cherry.locale;switch(t.countState){case 0:n.innerHTML=g.wordCount;break;case 1:n.innerHTML=Xu(e="".concat(g.wordCountC," ")).call(e,h);break;case 2:n.innerHTML=Xu(r="".concat(g.wordCountW," ")).call(r,f);break;case 3:n.innerHTML=Xu(i="".concat(g.wordCountP," ")).call(i,p);break;case 4:n.innerHTML=Xu(o=Xu(a=Xu(s=Xu(l=Xu(c="".concat(g.wordCountC,"  ")).call(c,h," &nbsp; ")).call(l,g.wordCountW," ")).call(s,f," &nbsp; ")).call(a,g.wordCountP," ")).call(o,p)}});var r=null;this.editor.editor.on("change",function(){r&&clearTimeout(r),r=_d(function(){n.dispatchEvent(t.countEvent),r=null},500)})}return this.countState+=1,this.countState>4&&(this.countState=0),n.dispatchEvent(this.countEvent),e}},{key:"wordCount",value:function(e){var t,n,r=/[\u4e00-\u9fa5]|[\u3001\u3002\uff01\uff0c\uff1b\uff1a\u201c\u201d\u2018\u2019\u300a\u300b\u3008\u3009\u3010\u3011\u300e\u300f\u300c\u300d\uff08\uff09\u2014\u2026\u2013\uff0e]/g,i=e.replace(/\n|\s/g,"").length,o=(e.match(r)||[]).length+uo(t=e.replace(r," ").split(/[\s\n]+/)).call(t,Boolean).length,a=uo(n=e.split(/\n{2,}/)).call(n,function(e){return""!==c_(e).call(e)}).length;return{characters:i,words:o,paragraphs:a}}}])}();function rq(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(rq=function(){return!!e})()}var iq=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,rq()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).previewer=t.previewer,n.updateMarkdown=!1,n.setName("mobilePreview","phone"),n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(){this.previewer.removeScroll(),this.previewer.changePreviewToMobile(!this.previewer.isMobilePreview),this.previewer.bindScroll()}}])}();function oq(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(oq=function(){return!!e})()}var aq=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,oq()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).previewer=t.previewer,n.isLoading=!1,n.updateMarkdown=!1,n.setName("copy","copy"),n.lastIconOuterHtml="",n}return Pu(e,nV),mc(e,[{key:"adaptWechat",value:(t=yz(iW.mark(function e(t){var n,r,i,o,a;return iW.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=/(<figure data-lines=.+?<)div(.+?<\/)div(>.*?<\/figure>)/g,r=t.replace(n,function(e,t,n,r){var i,o;return Xu(i=Xu(o="".concat(t,"p")).call(o,n,"p")).call(i,r)}),i=/(<img.+?src=")(.+?)(".*?>)/g,o=[],r.replace(i,function(e,t,n){o.push(sq(n))}),e.next=7,SC.all(o);case 7:return a=e.sent,e.abrupt("return",r.replace(i,function(e,t,n,r){return t+a.shift()+r}));case 9:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})},{key:"getStyleFromSheets",value:function(e){var t,n=uo(t=u_(document.styleSheets)).call(t,function(t){var n;return t.cssRules[0]&&yx(n=t.cssRules[0].cssText).call(n,e)>-1});return"<style>".concat(sL(n).call(n,function(e,t){var n;return e+sL(n=u_(t.cssRules)).call(n,function(e,t){return e+t.cssText},"")},""),"</style>")}},{key:"computeStyle",value:function(){return{mathStyle:this.getStyleFromSheets("mjx-container"),echartStyle:"<style>figure>p{overflow:hidden;position:relative;width:500px;height:300px;background:transparent;}</style>",cherryStyle:this.getStyleFromSheets("cherry")}}},{key:"toggleLoading",value:function(){this.isLoading?(this.dom.lastElementChild.outerHTML=this.lastIconOuterHtml,this.lastIconOuterHtml=""):(this.lastIconOuterHtml=this.dom.lastElementChild.outerHTML,this.dom.lastElementChild.outerHTML='<div class="icon-loading loading"></div>'),this.isLoading=!this.isLoading}},{key:"showSuccess",value:function(){var e=this;this.lastIconOuterHtml||(this.lastIconOuterHtml=this.dom.lastElementChild.outerHTML),this.dom.lastElementChild.outerHTML='<i class="ch-icon ch-icon-ok"></i>',_d(function(){e.lastIconOuterHtml&&(e.dom.lastElementChild.outerHTML=e.lastIconOuterHtml,e.lastIconOuterHtml="")},1500)}},{key:"onClick",value:function(e){var t=this;this.toggleLoading();var n=document.querySelector(".cherry").getAttribute("data-inline-code-theme"),r=document.querySelector(".cherry").getAttribute("data-code-block-theme"),i=this.computeStyle(),o=i.mathStyle,a=i.echartStyle,s=i.cherryStyle,l=this.previewer.isPreviewerHidden()?this.previewer.options.previewerCache.html:this.previewer.getValue(),c=this.$cherry.getMarkdown();this.adaptWechat(l).then(function(e){var i,l,u,d=Xu(i=Xu(l=Xu(u="".concat(o+a+s,'\n        <div data-inline-code-theme="')).call(u,n,'" data-code-block-theme="')).call(l,r,'">\n          <div class="cherry-markdown">')).call(i,e,"</div>\n        </div>");EG(c,d),t.toggleLoading(),t.showSuccess()})}}]);var t}();function sq(e,t,n){return new SC(function(t){var n=document.createElement("CANVAS"),r=n.getContext("2d"),i=new Image;i.crossOrigin="Anonymous",i.onload=function(){n.height=i.height,n.width=i.width,r.drawImage(i,0,0);var e=n.toDataURL("image/png");t(e),n=null},i.src=e})}function lq(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(lq=function(){return!!e})()}var cq=function(){function e(t){var n,r,i,o,a,s,l,c,u;return ua(this,e),l=this,u=[t],c=wu(c=e),(s=Ac(l,lq()?pr(c,u||[],wu(l).constructor):c.apply(l,u))).setName("panel","tips"),s.panelRule=gT().reg,s.subMenuConfig=[{iconName:"tips",name:"tips",onclick:Ju(n=s.bindSubClick).call(n,s,"primary")},{iconName:"info",name:"info",onclick:Ju(r=s.bindSubClick).call(r,s,"info")},{iconName:"warning",name:"warning",onclick:Ju(i=s.bindSubClick).call(i,s,"warning")},{iconName:"danger",name:"danger",onclick:Ju(o=s.bindSubClick).call(o,s,"danger")},{iconName:"success",name:"success",onclick:Ju(a=s.bindSubClick).call(a,s,"success")}],s}return Pu(e,nV),mc(e,[{key:"$getNameFromStr",value:function(e){var t=!1;return this.panelRule.lastIndex=0,e.replace(this.panelRule,function(e,n,r,i){var o=/\s/.test(c_(r).call(r))?c_(r).call(r).replace(/\s.*$/,""):r;return t=o?c_(o).call(o).toLowerCase():"",e}),t}},{key:"$getTitle",value:function(e){return this.panelRule.lastIndex=0,e.replace(this.panelRule,function(e,t,n,r){var i=c_(n).call(n);return/\s/.test(i)?i.replace(/[^\s]+\s/,""):""}),""}},{key:"onClick",value:function(e){var t,n,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=NV(this.editor.editor,e,"line",!0)||"内容",a=this.$getNameFromStr(o),s=this.$getTitle(o);return!1===a&&this.getMoreSelection("::: ","\n",function(){var e=r.editor.editor.getSelection(),t=r.$getNameFromStr(e);return!1!==t&&(o=e,a=t,s=r.$getTitle(e)),!1!==t}),!1!==a?a===i?(this.panelRule.lastIndex=0,o.replace(this.panelRule,function(e,t,n,r){var i,o=c_(n).call(n),a=/\s/.test(o)?o.replace(/[^\s]+\s/,""):"";return Xu(i="".concat(a,"\n")).call(i,r)})):(this.registerAfterClickCb(function(){r.setLessSelection("::: ","\n")}),this.panelRule.lastIndex=0,o.replace(this.panelRule,function(e,t,n,r){var o,a,s=c_(n).call(n),l=/\s/.test(s)?s.replace(/[^\s]+\s/,""):"";return Xu(o=Xu(a="::: ".concat(i," ")).call(a,l,"\n")).call(o,r.replace(/\n+$/,""),"\n:::")})):(this.registerAfterClickCb(function(){r.setLessSelection("::: ","\n")}),o=o.replace(/^\n+/,""),/\n/.test(o)?s||(s=o.replace(/\n[\w\W]+$/,""),o=o.replace(/^[^\n]+\n/,"")):s=s||"标题",Xu(t=Xu(n="::: ".concat(i," ")).call(n,s,"\n")).call(t,o,"\n:::").replace(/\n{2,}:::/g,"\n:::"))}}])}();function uq(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(uq=function(){return!!e})()}var dq=function(){function e(t){var n,r,i,o,a,s,l,c,u,d,h,f;ua(this,e),d=this,f=[t],h=wu(h=e),(u=Ac(d,uq()?pr(h,f||[],wu(d).constructor):h.apply(d,f))).setName("align","align"),u.panelRule=gT().reg;var p=u.$cherry.locale;return u.subMenuConfig=[{iconName:"alignLeft",name:null!==(n=null==p?void 0:p.alignLeft)&&void 0!==n?n:"左对齐",onclick:Ju(r=u.bindSubClick).call(r,u,"left")},{iconName:"alignCenter",name:null!==(i=null==p?void 0:p.alignCenter)&&void 0!==i?i:"居中",onclick:Ju(o=u.bindSubClick).call(o,u,"center")},{iconName:"alignRight",name:null!==(a=null==p?void 0:p.alignRight)&&void 0!==a?a:"右对齐",onclick:Ju(s=u.bindSubClick).call(s,u,"right")},{iconName:"alignJustify",name:null!==(l=null==p?void 0:p.alignJustify)&&void 0!==l?l:"两端对齐",onclick:Ju(c=u.bindSubClick).call(c,u,"justify")}],u}return Pu(e,cq),mc(e,[{key:"$getTitle",value:function(){return" "}}])}();function hq(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(hq=function(){return!!e})()}var fq=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,hq()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("justify","justify"),n}return Pu(e,dq),mc(e,[{key:"$getTitle",value:function(){return" "}}])}();function pq(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(pq=function(){return!!e})()}var gq=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,pq()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("detail","insertFlow"),n.detailRule=mT().reg,n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){var t,n=this,r=NV(this.editor.editor,e,"line",!0)||this.$cherry.locale.detailDefaultContent;return this.detailRule.lastIndex=0,this.detailRule.test(r)||this.getMoreSelection("+++ ","\n",function(){var e=n.editor.editor.getSelection();n.detailRule.lastIndex=0;var t=n.detailRule.test(e);return!1!==t&&(r=e),!1!==t}),this.detailRule.lastIndex=0,this.detailRule.test(r)?(this.detailRule.lastIndex=0,r.replace(this.detailRule,function(e,t,n,r,i){var o;return Xu(o="".concat(r,"\n")).call(o,i)})):(r=r.replace(/^\s+/,""),/\n/.test(r)||(r=Xu(t="".concat(r,"\n")).call(t,r)),this.registerAfterClickCb(function(){n.setLessSelection("+++ ","\n")}),"+++ ".concat(r,"\n+++").replace(/\n{2,}\+\+\+/g,"\n+++"))}}])}();function mq(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(mq=function(){return!!e})()}var vq=function(){function e(t){var n,r,i,o;return ua(this,e),r=this,o=[t],i=wu(i=e),(n=Ac(r,mq()?pr(i,o||[],wu(r).constructor):i.apply(r,o))).setName("draw.io","draw.io"),n.noIcon=!0,n}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){var t=this;if(!this.$cherry.options.drawioIframeUrl)return e;if(this.hasCacheOnce()){var n,r,i=this.getAndCleanCacheOnce(),o=i.xmlData,a=i.base64,s=Xu(n="](".concat(a,"){data-type=drawio data-xml=")).call(n,encodeURI(o),"}");return this.registerAfterClickCb(function(){t.setLessSelection("![",s)}),Xu(r="".concat("![","在预览区点击图片重新编辑draw.io")).call(r,s)}return $G(this.$cherry.options.drawioIframeUrl,this.$cherry.options.drawioIframeStyle,"",function(e){t.setCacheOnce(e),t.fire(null)}),this.updateMarkdown=!1,e}}])}();function Aq(e,t,n){return new SC(function(t){var n=document.createElement("CANVAS"),r=n.getContext("2d"),i=new Image;i.crossOrigin="Anonymous",i.onload=function(){n.height=i.height,n.width=i.width,r.drawImage(i,0,0);var e=n.toDataURL("image/png");t(e),n=null},i.src=e})}var bq=function(){var e=yz(iW.mark(function e(t){var n,r,i,o,a;return iW.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=/(<figure data-lines=.+?<)div(.+?<\/)div(>.*?<\/figure>)/g,r=t.replace(n,function(e,t,n,r){var i,o;return Xu(i=Xu(o="".concat(t,"p")).call(o,n,"p")).call(i,r)}),i=/(<img.+?src=")(.+?)(".*?>)/g,o=[],r.replace(i,function(e,t,n){return o.push(Aq(n)),e}),e.next=7,SC.all(o);case 7:return a=e.sent,r=(r=r.replace(/(<a[^>]+)href="[^"]*"/g,"$1")).replace(/(<div[^>]+style="[^">]*width:\s*)[^";]+(;[^>]*>)/g,"$1100%$2"),e.abrupt("return",r.replace(i,function(e,t,n,r){return t+a.shift()+r}));case 11:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),yq=function(){var e=yz(iW.mark(function e(t,n){return iW.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("string"==typeof t&&t){e.next=2;break}return e.abrupt("return","");case 2:e.t0=n,e.next="wechat"===e.t0?5:6;break;case 5:return e.abrupt("return",bq(t));case 6:throw new Error("platform not support");case 7:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}();function wq(e,t){var n=$h(e);if(Xi){var r=Xi(e);t&&(r=uo(r).call(r,function(t){return To(e,t).enumerable})),n.push.apply(n,r)}return n}function _q(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?gf(n=wq(Object(i),!0)).call(n,function(t){Fu(e,t,i[t])}):$o?Xo(e,$o(i)):gf(r=wq(Object(i))).call(r,function(t){ca(e,t,To(i,t))})}return e}function xq(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(xq=function(){return!!e})()}var Eq=["wechat"],Sq=function(){function e(t){var n,r,i,o,a,s,l;ua(this,e),a=this,l=[t],s=wu(s=e),(o=Ac(a,xq()?pr(s,l||[],wu(a).constructor):s.apply(a,l))).previewer=t.previewer,o.updateMarkdown=!1,o.setName("publish","copy");var c=(null==t||null===(n=t.options)||void 0===n||null===(r=n.toolbars)||void 0===r||null===(i=r.config)||void 0===i?void 0:i.publish)||[],u=_h(c).call(c,function(e){if(!Object.prototype.hasOwnProperty.call(e,"key"))throw new Error("publish config must have key");if(!uh(Eq).call(Eq,e.key))throw new Error("publish config key must be one of ".concat(Eq.join(",")));return e.key});if(new yj(u).size!==u.length)throw new Error("publish config key must be unique");return o.subMenuConfig=_h(c).call(c,function(e){var t;return{name:e.name,iconName:e.iconName,icon:e.icon,onclick:Ju(t=o.bindSubClick).call(t,o,e)}}),o}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e,t){var n,r,i=this;if(mL()){var o=this.$cherry.previewer.options.previewerDom,a=null!==(n=null==o||null===(r=o.querySelector("h1"))||void 0===r?void 0:r.innerText)&&void 0!==n?n:"",s=t.key,l=t.serviceUrl,c=t.injectPayload,u=function(){var e=yz(iW.mark(function e(){var t,n,r,u,d,h,f;return iW.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n={},"function"!=typeof c){e.next=7;break}return e.next=4,c();case 4:n=e.sent,e.next=8;break;case 7:"object"===ql(c)&&null!==c&&(n=c);case 8:return r=i.getAllStyleSheets(),e.next=11,yq(null!==(t=null==o?void 0:o.outerHTML)&&void 0!==t?t:"",s);case 11:return u=e.sent,e.next=14,fetch("".concat(l,"/publish"),{method:"POST",headers:{"Content-Type":"application/json"},body:Ew({target:s,contentType:"html",needInlineStyle:!0,articles:[_q({title:a,content:u+r},n)]})});case 14:return d=e.sent,e.next=17,d.json();case 17:0===(null==(h=e.sent)?void 0:h.code)?alert("发布成功"):alert(Xu(f="错误码：".concat(null==h?void 0:h.code," 错误信息：")).call(f,null==h?void 0:h.msg));case 19:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();u()}}},{key:"getAllStyleSheets",value:function(){var e,t=uo(e=u_(document.styleSheets)).call(e,function(e){return e.cssRules[0]});return _h(t).call(t,function(e){var t;return"<style>".concat(_h(t=u_(e.cssRules)).call(t,function(e){return e.cssText}).join(""),"</style>")}).join("")}}])}();function Cq(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(Cq=function(){return!!e})()}var Tq=function(){function e(t){var n,r,i,o,a,s,l;ua(this,e),a=this,l=[t],s=wu(s=e),(o=Ac(a,Cq()?pr(s,l||[],wu(a).constructor):s.apply(a,l))).noIcon=!0,o.changeLocale=(null==t||null===(n=t.options)||void 0===n||null===(r=n.toolbars)||void 0===r||null===(i=r.config)||void 0===i?void 0:i.changeLocale)||[{locale:"zh_CN",name:"中文"},{locale:"en_US",name:"English"},{locale:"ru_RU",name:"Русский"}],o.subMenuConfig=[],o.nameMap={};for(var c=0;c<o.changeLocale.length;c++){var u,d=o.changeLocale[c],h=d.locale,f=d.name;o.subMenuConfig.push({iconName:h,name:f,onclick:Ju(u=o.bindSubClick).call(u,o,h)}),o.nameMap[h]=f}return o.setName(o.nameMap[o.$cherry.options.locale]||o.nameMap.zh_CN),o}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e,t){this.$cherry.locales[t]&&(this.$cherry.$event.emit("afterChangeLocale",t),this.$cherry.options.locale=t,this.$cherry.locale=this.$cherry.locales[t],this.$cherry.resetToolbar("toolbar",this.$cherry.options.toolbars.toolbar||[]),this.$cherry.searchBoxInstance&&this.$cherry.searchBoxInstance.updateLocaleStrings())}}])}();function kq(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(kq=function(){return!!e})()}var Oq=function(){function e(t){var n,r,i,o,a;return ua(this,e),i=this,a=[t],o=wu(o=e),(r=Ac(i,kq()?pr(o,a||[],wu(i).constructor):o.apply(i,a))).setName("shortcutKeySetting","command"),r.updateMarkdown=!1,r.disabledHideAllSubMenu=!0,r.shortcutKeyMap=Fu({},Xu(n="".concat(CV(),"-")).call(n,SV("0")),{hookName:r.name,sub:"toggleToolbar",aliasName:"hide"}),r}return Pu(e,nV),mc(e,[{key:"hideOtherSubMenu",value:function(e){if(!this.shortcutKeyConfigPanel)return e();var t=this.shortcutKeyConfigPanel.isHide();e(),t?this.shortcutKeyConfigPanel.hide():this.shortcutKeyConfigPanel.show()}},{key:"onClick",value:function(e){return this.shortcutKeyConfigPanel||(this.shortcutKeyConfigPanel=new rY(this.$cherry)),this.shortcutKeyConfigPanel.toggle(this.dom),e}}])}(),Mq=function(){return mc(function e(t){ua(this,e),this.$cherry=t},[{key:"init",value:function(e){var t=this;this.cm=e;var n=this.addHtml();this.element=n,this.initElements(n),this.activeInput=this.searchInput,this.element.style.display="none",this.updateLocaleStrings(),this.addEventListeners(),this.commands={toggleRegexpMode:function(){t.regExpOption.checked=!t.regExpOption.checked,t.$syncOptions()},toggleCaseSensitive:function(){t.caseSensitiveOption.checked=!t.caseSensitiveOption.checked,t.$syncOptions()},toggleWholeWords:function(){t.wholeWordOption.checked=!t.wholeWordOption.checked,t.$syncOptions()}},n.addEventListener("mousedown",function(e){_d(function(){t.activeInput.focus()},0),e.stopPropagation()}),n.addEventListener("click",function(e){var n=(e.target||e.srcElement).getAttribute("action");n&&t[n]?t[n]():t.commands[n]&&t.commands[n](),e.stopPropagation()}),this.searchInput.addEventListener("input",function(){zw(t).call(t,!1,!1)}),this.searchInput.addEventListener("focus",function(){t.activeInput=t.searchInput}),this.replaceInput.addEventListener("focus",function(){t.activeInput=t.replaceInput})}},{key:"addEventListeners",value:function(){var e=this.element;this.$cherry.$event.on("togglePreviewHidden",function(t){e.style.right=t?"48px":""})}},{key:"addHtml",value:function(){var e=this.cm.getWrapperElement(),t=document.createElement("div"),n=['<div class="ace_search right">','<button type="button" action="hide" class="ace_searchbtn_close" title="'.concat(this.$cherry.locale.close,'">'),'<svg width="12" height="12" viewBox="0 0 12 12" fill="none">','<path d="M11 1L1 11M1 1L11 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>',"</svg>","</button>",'<div class="ace_search_form">','<input class="ace_search_field" placeholder="'.concat(this.$cherry.locale.searchFor,'" spellcheck="false"></input>'),'<button type="button" action="findNext" class="ace_searchbtn next" title="'.concat(this.$cherry.locale.nextMatch,'">'),'<svg width="12" height="12" viewBox="0 0 12 12" fill="none">','<path d="M3 5.5L6 8.5L9 5.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>',"</svg>","</button>",'<button type="button" action="findPrev" class="ace_searchbtn prev" title="'.concat(this.$cherry.locale.previousMatch,'">'),'<svg width="12" height="12" viewBox="0 0 12 12" fill="none">','<path d="M3 8.5L6 5.5L9 8.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>',"</svg>","</button>","</div>",'<div class="ace_replace_form">','<input class="ace_search_field" placeholder="'.concat(this.$cherry.locale.replaceWith,'" spellcheck="false"></input>'),'<button type="button" action="replaceAndFindNext" title="'.concat(this.$cherry.locale.replace,'" class="ace_replacebtn">'),'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">','<path fill-rule="evenodd" clip-rule="evenodd" d="M3.221 3.739L5.482 6.008L7.7 3.784L7 3.084L5.988 4.091L5.98 2.491C5.97909 2.35567 6.03068 2.22525 6.12392 2.12716C6.21716 2.02908 6.3448 1.97095 6.48 1.965H8V1H6.48C6.28496 1.00026 6.09189 1.03902 5.91186 1.11405C5.73183 1.18908 5.56838 1.29892 5.43088 1.43725C5.29338 1.57558 5.18455 1.73969 5.11061 1.92018C5.03667 2.10066 4.99908 2.29396 5 2.489V4.1L3.927 3.033L3.221 3.739ZM9.89014 5.53277H9.90141C10.0836 5.84426 10.3521 6 10.707 6C11.0995 6 11.4131 5.83236 11.6479 5.49708C11.8826 5.1618 12 4.71728 12 4.16353C12 3.65304 11.8995 3.2507 11.6986 2.95652C11.4977 2.66234 11.2113 2.51525 10.8394 2.51525C10.4338 2.51525 10.1211 2.70885 9.90141 3.09604H9.89014V1H9V5.91888H9.89014V5.53277ZM9.87606 4.47177V4.13108C9.87606 3.88449 9.93427 3.6844 10.0507 3.53082C10.169 3.37724 10.3174 3.30045 10.4958 3.30045C10.6854 3.30045 10.831 3.37833 10.9324 3.53407C11.0357 3.68765 11.0873 3.9018 11.0873 4.17651C11.0873 4.50746 11.031 4.76379 10.9183 4.94549C10.8075 5.12503 10.6507 5.2148 10.4479 5.2148C10.2808 5.2148 10.1437 5.14449 10.0366 5.00389C9.92958 4.86329 9.87606 4.68592 9.87606 4.47177ZM9 12.7691C8.74433 12.923 8.37515 13 7.89247 13C7.32855 13 6.87216 12.8225 6.5233 12.4674C6.17443 12.1124 6 11.6543 6 11.0931C6 10.4451 6.18638 9.93484 6.55914 9.5624C6.93429 9.18747 7.43489 9.00001 8.06093 9.00001C8.49343 9.00001 8.80645 9.0596 9 9.17878V10.1769C8.76344 9.99319 8.4994 9.90132 8.20789 9.90132C7.88292 9.90132 7.62485 10.0006 7.43369 10.1993C7.24492 10.3954 7.15054 10.6673 7.15054 11.0149C7.15054 11.3526 7.24134 11.6183 7.42294 11.8119C7.60454 12.0031 7.85424 12.0987 8.17204 12.0987C8.454 12.0987 8.72999 12.0068 9 11.8231V12.7691ZM4 7L3 8V14L4 15H11L12 14V8L11 7H4ZM4 8H5H10H11V9V13V14H10H5H4V13V9V8Z" fill="currentColor"/>',"</svg></button>",'<button type="button" action="replaceAll" title="'.concat(vg(this.$cherry.locale),'" class="ace_replacebtn">'),'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">','<path fill-rule="evenodd" clip-rule="evenodd" d="M11.6009 2.67683C11.7474 2.36708 11.9559 2.2122 12.2263 2.2122C12.4742 2.2122 12.6651 2.32987 12.7991 2.56522C12.933 2.80056 13 3.12243 13 3.53082C13 3.97383 12.9218 4.32944 12.7653 4.59766C12.6088 4.86589 12.3997 5 12.138 5C11.9014 5 11.7224 4.87541 11.6009 4.62622H11.5934V4.93511H11V1H11.5934V2.67683H11.6009ZM11.584 3.77742C11.584 3.94873 11.6197 4.09063 11.6911 4.20311C11.7624 4.3156 11.8538 4.37184 11.9653 4.37184C12.1005 4.37184 12.205 4.30002 12.2789 4.15639C12.354 4.01103 12.3915 3.80597 12.3915 3.54121C12.3915 3.32144 12.3571 3.15012 12.2883 3.02726C12.2207 2.90266 12.1236 2.84036 11.9972 2.84036C11.8782 2.84036 11.7793 2.9018 11.7005 3.02466C11.6228 3.14752 11.584 3.30759 11.584 3.50487V3.77742ZM4.11969 7.695L2 5.56781L2.66188 4.90594L3.66781 5.90625V4.39594C3.66695 4.21309 3.70219 4.03187 3.7715 3.86266C3.84082 3.69346 3.94286 3.53961 4.07176 3.40992C4.20066 3.28023 4.3539 3.17727 4.52268 3.10692C4.69146 3.03658 4.87246 3.00024 5.05531 3H7.39906V3.90469H5.05531C4.92856 3.91026 4.8089 3.96476 4.72149 4.05672C4.63408 4.14868 4.58571 4.27094 4.58656 4.39781L4.59406 5.89781L5.54281 4.95375L6.19906 5.61L4.11969 7.695ZM9.3556 4.93017H10V3.22067C10 2.40689 9.68534 2 9.05603 2C8.92098 2 8.77083 2.02421 8.6056 2.07263C8.44181 2.12104 8.3125 2.17691 8.21767 2.24022V2.90503C8.45474 2.70205 8.70474 2.60056 8.96767 2.60056C9.22917 2.60056 9.35991 2.75698 9.35991 3.06983L8.76078 3.17318C8.25359 3.25885 8 3.57914 8 4.13408C8 4.39665 8.06106 4.60708 8.18319 4.76536C8.30675 4.92179 8.47557 5 8.68966 5C8.97989 5 9.19899 4.83985 9.34698 4.51955H9.3556V4.93017ZM9.35991 3.57542V3.76816C9.35991 3.9432 9.31968 4.08845 9.23922 4.20391C9.15876 4.3175 9.0546 4.3743 8.92672 4.3743C8.83477 4.3743 8.76149 4.34264 8.7069 4.27933C8.65374 4.21415 8.62716 4.13128 8.62716 4.03073C8.62716 3.80912 8.73779 3.6797 8.95905 3.64246L9.35991 3.57542ZM7 12.9302H6.3556V12.5196H6.34698C6.19899 12.8399 5.97989 13 5.68966 13C5.47557 13 5.30675 12.9218 5.18319 12.7654C5.06106 12.6071 5 12.3966 5 12.1341C5 11.5791 5.25359 11.2588 5.76078 11.1732L6.35991 11.0698C6.35991 10.757 6.22917 10.6006 5.96767 10.6006C5.70474 10.6006 5.45474 10.702 5.21767 10.905V10.2402C5.3125 10.1769 5.44181 10.121 5.6056 10.0726C5.77083 10.0242 5.92098 10 6.05603 10C6.68534 10 7 10.4069 7 11.2207V12.9302ZM6.35991 11.7682V11.5754L5.95905 11.6425C5.73779 11.6797 5.62716 11.8091 5.62716 12.0307C5.62716 12.1313 5.65374 12.2142 5.7069 12.2793C5.76149 12.3426 5.83477 12.3743 5.92672 12.3743C6.0546 12.3743 6.15876 12.3175 6.23922 12.2039C6.31968 12.0885 6.35991 11.9432 6.35991 11.7682ZM9.26165 13C9.58343 13 9.82955 12.9423 10 12.8268V12.1173C9.81999 12.2551 9.636 12.324 9.44803 12.324C9.23616 12.324 9.06969 12.2523 8.94863 12.1089C8.82756 11.9637 8.76702 11.7644 8.76702 11.5112C8.76702 11.2505 8.82995 11.0466 8.95579 10.8994C9.08323 10.7505 9.25528 10.676 9.47192 10.676C9.66627 10.676 9.84229 10.7449 10 10.8827V10.1341C9.87097 10.0447 9.66229 10 9.37395 10C8.95659 10 8.62286 10.1406 8.37276 10.4218C8.12425 10.7011 8 11.0838 8 11.5698C8 11.9907 8.11629 12.3343 8.34887 12.6006C8.58144 12.8669 8.8857 13 9.26165 13ZM2 9L3 8H12L13 9V14L12 15H3L2 14V9ZM3 9V14H12V9H3ZM6 7L7 6H14L15 7V12L14 13V12V7H7H6Z" fill="currentColor"/>',"</svg></button>","</div>",'<div class="ace_search_options">','<span action="toggleReplace" class="ace_button replace_toggle" title="'.concat(this.$cherry.locale.toggleReplace,'">-</span>'),'<span class="ace_search_counter">0 '.concat(this.$cherry.locale.matchesFoundText,"</span>"),'<div class="ace_search_control">','<span action="toggleRegexpMode" title="'.concat(this.$cherry.locale.regExpSearch,'"></span>'),'<span action="toggleCaseSensitive" class="ace_button" title="'.concat(this.$cherry.locale.caseSensitiveSearch,'">Aa</span>'),'<span action="toggleWholeWords" title="'.concat(this.$cherry.locale.wholeWordSearch,'"></span>'),"</div>","</div>","</div>"].join("");t.innerHTML=n;var r=t.firstChild;return e.appendChild(r),r}},{key:"initElements",value:function(e){this.searchBox=e.querySelector(".ace_search_form"),this.replaceBox=e.querySelector(".ace_replace_form"),this.searchOptions=e.querySelector(".ace_search_options"),this.regExpOption=e.querySelector("[action=toggleRegexpMode]"),this.caseSensitiveOption=e.querySelector("[action=toggleCaseSensitive]"),this.wholeWordOption=e.querySelector("[action=toggleWholeWords]"),this.searchInput=this.searchBox.querySelector(".ace_search_field"),this.replaceInput=this.replaceBox.querySelector(".ace_search_field")}},{key:"bindKeys",value:function(){var e=this,t={"Ctrl-F|Cmd-F|Ctrl-H|Command-Alt-F":function(){e.isReplace=!e.isReplace;var t=e.isReplace;e.replaceBox.style.display=t?"":"none",e[t?"replaceInput":"searchInput"].focus()},"Ctrl-G|Cmd-G":function(){e.findNext()},"Ctrl-Shift-G|Cmd-Shift-G":function(){e.findPrev()},Esc:function(){_d(function(){e.hide()})},Enter:function(){e.activeInput===e.replaceInput&&e.replace(),e.findNext()},"Shift-Enter":function(){e.activeInput===e.replaceInput&&e.replace(),e.findPrev()},"Alt-Enter":function(){e.activeInput===e.replaceInput&&vg(e).call(e),e.findAll()},Tab:function(){this.activeInput===this.replaceInput?this.searchInput.focus():this.replaceInput.focus()}};this.element.addEventListener("keydown",function(e){var n;OB(n=$h(t)).call(n,function(n){var r=function(e,t){var n,r={BACKSPACE:8,TAB:9,ENTER:13,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,UP:38,DOWN:40,INSERT:45,DELETE:46,INSERT_MAC:96,ASTERISK:106,PLUS:107,MINUS:109,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,SLASH:191,TRA:192,BACKSLASH:220},i=OB(n=e.split("|")).call(n,function(e){var n,i=OB(n=e.split("-")).call(n,function(e){var n,i;switch(e){case"Ctrl":i=t.ctrlKey;break;case"Shift":i=t.shiftKey;break;case"Alt":i=t.altKey;break;case"Cmd":i=t.metaKey;break;default:1===e.length?i=t.keyCode===e.charCodeAt(0):OB(n=$h(r)).call(n,function(n){return e.toUpperCase()===n&&(i=t.keyCode===r[n]),n})}return!i});return!i});return i}(n,e);return r&&(e.stopPropagation(),e.preventDefault(),t[n](e)),r})})}},{key:"$syncOptions",value:function(){Iq(this.regExpOption,"checked",this.regExpOption.checked),Iq(this.wholeWordOption,"checked",this.wholeWordOption.checked),Iq(this.caseSensitiveOption,"checked",this.caseSensitiveOption.checked),zw(this).call(this,!1,!1)}},{key:"find",value:function(e,t){var n=this,r=this.searchInput.value,i={skipCurrent:e,backwards:t,regExp:this.regExpOption.checked,caseSensitive:this.caseSensitiveOption.checked,wholeWord:this.wholeWordOption.checked};this.$find(r,i,function(e){var t=e.matches(!1,e.from());n.cm.setSelection(t.from,t.to)})}},{key:"$find",value:function(e,t,n){var r,i,o,a,s,l,c=this.cm;if(!e)return this.clearSearch(c),void this.updateCount();var u=e,d=t,h=!0,f=d.caseSensitive,p=d.regExp,g=d.wholeWord;p&&(u=u.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")),g&&(u=f?RegExp("\\b".concat(u,"\\b")):RegExp("\\b".concat(u,"\\b"),"i")),p&&(u=RegExp(u)),this.clearSearch(c),this.doSearch(c,u,f),this.updateCount(),l=d.backwards?d.skipCurrent?"from":"to":d.skipCurrent?"to":"from";var m=c.getCursor(l),v=c.getSearchCursor(u,m,!f);a=Ju(r=v.findNext).call(r,v),s=Ju(i=v.findPrevious).call(i,v),d.backwards&&!s()?(h=a())&&(c.setCursor(c.doc.size-1,0),this.$find(e,t,n),o=!0):d.backwards||a()||(h=s())&&(c.setCursor(0,0),this.$find(e,t,n),o=!0);var A=!h&&this.searchInput.value;Iq(this.searchBox,"ace_nomatch",A),!o&&h&&n(v)}},{key:"findNext",value:function(){zw(this).call(this,!0,!1)}},{key:"findPrev",value:function(){zw(this).call(this,!0,!0)}},{key:"findAll",value:function(){var e=this.cm,t=this.searchInput.value,n=this.searchInput.value;Iq(this.searchBox,"ace_nomatch",n),e.showMatchesOnScrollbar&&e.showMatchesOnScrollbar(t),this.hide()}},{key:"replace",value:function(){var e=this.cm,t=e.getOption("readOnly"),n=!!e.getSelection();!t&&n&&e.replaceSelection(this.replaceInput.value,"start"),this.updateCount()}},{key:"replaceAndFindNext",value:function(){this.cm.getOption("readOnly")||(this.replace(),this.findNext())}},{key:"replaceAll",value:function(){var e,t,n=this.cm,r=this.searchInput.value,i=this.replaceInput.value,o=RegExp(r,this.caseSensitiveOption.checked?"g":"gi");this.wholeWordOption.checked&&!this.regExpOption.checked&&(o=this.caseSensitiveOption.checked?RegExp("\\b".concat(r,"\\b"),"g"):RegExp("\\b".concat(r,"\\b"),"gi")),!n.getOption("readOnly")&&n.getSelection()&&(t=n.getCursor(),e=(e=n.getValue()).replace(o,i),n.setValue(e),n.setCursor(t)),this.updateCount()}},{key:"toggleReplace",value:function(){var e=this.cm.display.wrapper;"+"===e.parentElement.querySelector("[action=toggleReplace]").innerText?(e.parentElement.querySelector("[action=toggleReplace]").innerText="-",this.replaceBox.style.display="",this.isReplace=!0):(e.parentElement.querySelector("[action=toggleReplace]").innerText="+",this.replaceBox.style.display="none",this.isReplace=!1)}},{key:"hide",value:function(){var e=this.cm;this.clearSearch(e),this.element.style.display="none",e.focus()}},{key:"isVisible",value:function(){return"none"!==this.element.style.display}},{key:"show",value:function(e,t){this.element.style.display="",this.replaceBox.style.display=t?"":"none",this.isReplace=t,e&&(this.searchInput.value=e,zw(this).call(this,!1,!1)),this.searchInput.focus(),this.searchInput.select()}},{key:"isFocused",value:function(){var e=document.activeElement;return e===this.searchInput||e===this.replaceInput}},{key:"doSearch",value:function(e,t,n){var r=this.getSearchState(e),i=t;i&&i!==r.queryText&&(this.startSearch(e,r,i,n),r.posFrom=e.getCursor(),r.posTo=r.posFrom)}},{key:"parseString",value:function(e){return e.replace(/\\([nrt\\])/g,function(e,t){return"n"===t?"\n":"r"===t?"\r":"t"===t?"\t":"\\"===t?"\\":e})}},{key:"parseQuery",value:function(e){var t=("object"===ql(e)?e.toString():e).match(/^\/(.*)\/([a-z]*)$/),n=e;if(t)try{var r;n=new RegExp(t[1],-1===yx(r=t[2]).call(r,"i")?"":"i")}catch(e){}else n=this.parseString(e);return("string"==typeof n?""===n:n.test(""))&&(n=/x^/),n}},{key:"startSearch",value:function(e,t,n,r){t.queryText=n,t.query=this.parseQuery(n),e.removeOverlay(t.overlay,this.queryCaseInsensitive(t.query,r)),t.overlay=this.searchOverlay(t.query,this.queryCaseInsensitive(t.query,r)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,this.queryCaseInsensitive(t.query,r)))}},{key:"queryCaseInsensitive",value:function(e,t){return"string"==typeof e&&!t}},{key:"searchOverlay",value:function(e,t){var n=e;return"string"==typeof e?n=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(n=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(e){n.lastIndex=e.pos;var t=n.exec(e.string);if(t&&t.index===e.pos)return e.pos+=t[0].length||1,"searching";t?e.pos=t.index:e.skipToEnd()}}}},{key:"getSearchState",value:function(e){return e.state.search||(e.state.search={posFrom:null,posTo:null,lastQuery:null,query:null,overlay:null})}},{key:"clearSearch",value:function(e){var t=this;e.operation(function(){var n=t.getSearchState(e);n.lastQuery=n.query,n.query&&(n.query=null,n.queryText=null,e.removeOverlay(n.overlay),n.annotate&&(n.annotate.clear(),n.annotate=null))})}},{key:"updateCount",value:function(){var e,t=this.cm,n=this.searchInput.value,r=[];n&&(n=n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),e=this.caseSensitiveOption.checked?RegExp(n,"g"):RegExp(n,"gi"),this.wholeWordOption.checked&&(e=this.caseSensitiveOption.checked?RegExp("\\b".concat(n,"\\b"),"g"):RegExp("\\b".concat(n,"\\b"),"gi")),this.regExpOption.checked&&(e=RegExp(n,"gi")),r=t.getValue().match(e));var i,o=r?r.length:0,a=t.display.wrapper.parentElement.querySelector(".ace_search_counter");a&&(a.innerText=Xu(i="".concat(o," ")).call(i,this.$cherry.locale.matchesFoundText)),0===o&&t.setSelection({ch:0,line:0},{ch:0,line:0})}},{key:"updateLocaleStrings",value:function(){var e=this.element,t=this.searchInput,n=this.replaceInput;if(e){var r=e;t.setAttribute("placeholder",this.$cherry.locale.searchFor),n.setAttribute("placeholder",this.$cherry.locale.replaceWith),r.querySelector(".ace_searchbtn_close").setAttribute("title",this.$cherry.locale.close),r.querySelector('[action="findNext"]').setAttribute("title",this.$cherry.locale.nextMatch),r.querySelector('[action="findPrev"]').setAttribute("title",this.$cherry.locale.previousMatch),r.querySelector('[action="replaceAndFindNext"]').setAttribute("title",this.$cherry.locale.replace),r.querySelector('[action="replaceAll"]').setAttribute("title",vg(this.$cherry.locale)),r.querySelector('[action="toggleReplace"]').setAttribute("title",this.$cherry.locale.toggleReplace),r.querySelector('[action="toggleRegexpMode"]').setAttribute("title",this.$cherry.locale.regExpSearch),r.querySelector('[action="toggleCaseSensitive"]').setAttribute("title",this.$cherry.locale.caseSensitiveSearch),r.querySelector('[action="toggleWholeWords"]').setAttribute("title",this.$cherry.locale.wholeWordSearch),this.updateCount()}}}])}();function Iq(e,t,n){e.classList[n?"add":"remove"](t)}function Dq(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(Dq=function(){return!!e})()}var Nq=function(){function e(t){var n,r,i,o,a;return ua(this,e),i=this,a=[t],o=wu(o=e),(r=Ac(i,Dq()?pr(o,a||[],wu(i).constructor):o.apply(i,a))).setName("search","search"),r.updateMarkdown=!1,r.shortcutKeyMap=Fu({},Xu(n="".concat(CV(),"-")).call(n,SV("f")),{hookName:r.name,aliasName:r.name}),r.$cherry.searchBoxInstance||(r.$cherry.searchBoxInstance=new Mq(r.$cherry),r.$cherry.searchBoxInit=!1),r}return Pu(e,nV),mc(e,[{key:"onClick",value:function(e){this.$cherry.searchBoxInit||(this.$cherry.searchBoxInit=!0,this.$cherry.searchBoxInstance.init(this.$cherry.editor.editor)),this.$cherry.searchBoxInstance.isVisible()?this.$cherry.searchBoxInstance.hide():this.$cherry.searchBoxInstance.show(e,!0)}}])}(),Rq={bold:kV,italic:MV,"|":DV,strikethrough:LV,sub:PV,sup:$V,header:KV,insert:JV,list:eK,ol:nK,ul:iK,checklist:aK,graph:fK,size:gK,h1:vK,h2:bK,h3:MK,color:WV,quote:PK,quickTable:$K,togglePreview:HK,code:YK,inlineCode:XK,codeTheme:ZK,export:tY,settings:oY,fullScreen:QK,mobilePreview:iq,copy:aq,undo:WK,redo:VK,underline:sY,switchModel:cY,image:fY,audio:vY,video:wY,br:xY,hr:SY,formula:MY,link:DY,table:RY,toc:BY,proTable:FY,pdf:UY,word:qY,ruby:JY,theme:eq,file:GY,panel:cq,justify:fq,align:dq,detail:gq,drawIo:vq,wordCount:nq,publish:Sq,changeLocale:Tq,shortcutKey:Oq,search:Nq},Lq=function(){return mc(function e(t){ua(this,e),this.toolbar=t,this.hooks={},this.allMenusName=[],this.level1MenusName=[],this.level2MenusName={},this.menuOptionsKey=["name","icon","subMenu"],this.init()},[{key:"$newMenu",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!this.hooks[e]){var n=t||{name:e,icon:e},r=this.toolbar.options,i=r.$cherry,o=r.customMenu;i.$currentMenuOptions=n,Rq[e]?(this.allMenusName.push(e),this.hooks[e]=new Rq[e](i)):null!=o&&o[e]&&(this.allMenusName.push(e),this.hooks[e]=new o[e](i))}}},{key:"init",value:function(){var e=this,t=this.toolbar.options.buttonConfig;gf(t).call(t,function(t){if("string"==typeof t)e.level1MenusName.push(t),e.$newMenu(t);else if("object"===ql(t)){var n=$h(t);if(1===n.length){var r,i,o,a=Yy(n,1)[0];if(uh(r=e.menuOptionsKey).call(r,a))throw Error(Xu(o="this menu key is not allowed: ".concat(a,", forbid menu key: ")).call(o,e.menuOptionsKey));e.level1MenusName.push(a),e.$newMenu(a),e.level2MenusName[a]=t[a],gf(i=t[a]).call(i,function(t){e.$newMenu(t)})}else{if(!t.name)return;e.level1MenusName.push(t.name),e.$newMenu(t.name,t)}}})}}])}(),Bq=function(){return mc(function e(t){ua(this,e),Fu(this,"toolbarHandlers",{}),this.menus={},this.shortcutKeyMap={},this.subMenus={},this.currentActiveSubMenu=null,this.options={dom:document.createElement("div"),buttonConfig:["bold"],customMenu:[]},Md(this.options,t),this.$cherry=this.options.$cherry,this.instanceId=this.$cherry.instanceId,this.menus=new Lq(this),this.drawMenus(),this.collectShortcutKey(),this.collectToolbarHandler(),this.init()},[{key:"init",value:function(){var e=this;this.$cherry.$event.on("cleanAllSubMenus",function(){return e.hideAllSubMenu()})}},{key:"previewOnly",value:function(){this.options.dom.classList.add("preview-only"),this.$cherry.wrapperDom.classList.add("cherry--no-toolbar"),this.$cherry.$event.emit("toolbarHide")}},{key:"showToolbar",value:function(){this.options.dom.classList.remove("preview-only"),this.$cherry.wrapperDom.classList.remove("cherry--no-toolbar"),this.$cherry.$event.emit("toolbarShow")}},{key:"isHasLevel2Menu",value:function(e){return this.menus.level2MenusName[e]}},{key:"isHasConfigMenu",value:function(e){return this.menus.hooks[e].subMenuConfig||[]}},{key:"isHasSubMenu",value:function(e){return Boolean(this.isHasLevel2Menu(e)||this.isHasConfigMenu(e).length>0)}},{key:"drawMenus",value:function(){var e,t=this,n=document.createDocumentFragment();gf(e=this.menus.level1MenusName).call(e,function(e){var r=t.menus.hooks[e].createBtn();"object"===("undefined"==typeof window?"undefined":ql(window))&&"onpointerup"in window?(r.addEventListener("pointerdown",function(){t.isPointerDown=!0},!1),r.addEventListener("pointerup",function(n){t.isPointerDown&&t.onClick(n,e),t.isPointerDown=!1},!1)):r.addEventListener("click",function(n){t.onClick(n,e)},!1),t.isHasSubMenu(e)&&r.classList.add("cherry-toolbar-dropdown"),n.appendChild(r)}),this.appendMenusToDom(n)}},{key:"appendMenusToDom",value:function(e){var t=OC("div","toolbar-left");t.appendChild(e),this.options.dom.appendChild(t)}},{key:"setSubMenuPosition",value:function(e,t){var n=e.getMenuPosition(),r=Math.min(n.left+n.width/2,window.innerWidth-115);t.style.left="".concat(r,"px"),t.style.top="".concat(n.top+n.height,"px"),t.style.position=e.positionModel}},{key:"drawSubMenus",value:function(e){var t=this;this.subMenus[e]=OC("div","cherry-dropdown",{name:e}),this.setSubMenuPosition(this.menus.hooks[e],this.subMenus[e]);var n=this.isHasLevel2Menu(e);n&&gf(n).call(n,function(n){var r=t.menus.hooks[n];if(void 0!==r&&"function"==typeof r.createBtn){var i=r.createBtn(!0);r.dom=r.dom?r.dom:t.menus.hooks[e].dom,i.addEventListener("click",function(e){return t.onClick(e,n,!0)},!1),t.subMenus[e].appendChild(i)}});var r=this.isHasConfigMenu(e);r.length>0&&gf(r).call(r,function(n){var r=t.menus.hooks[e].createSubBtnByConfig(n);null!=n&&n.disabledHideAllSubMenu||r.addEventListener("click",function(){return t.hideAllSubMenu()},!1),t.subMenus[e].appendChild(r)}),this.$cherry.wrapperDom.appendChild(this.subMenus[e])}},{key:"onClick",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.menus.hooks[t];i&&(this.isHasSubMenu(t)&&!r?this.toggleSubMenu(t):("function"==typeof i.hideOtherSubMenu?i.hideOtherSubMenu(function(){return n.hideAllSubMenu()}):this.hideAllSubMenu(),i.fire(e,t)))}},{key:"activeSubMenuItem",value:function(e){var t=this,n=QC(e)?e:[e];gf(n).call(n,function(e){var n,r,i,o=t.subMenus[e];if(o){var a=null===(n=t.menus.hooks)||void 0===n||null===(r=n[e])||void 0===r?void 0:r.getActiveSubMenuIndex(o),s=QC(a)?a:[a];gf(i=o.querySelectorAll(".cherry-dropdown-item")).call(i,function(e,t){e.classList.toggle("cherry-dropdown-item__selected",uh(s).call(s,t))})}})}},{key:"updateSubMenuPosition",value:function(){this.currentActiveSubMenu&&this.subMenus[this.currentActiveSubMenu]&&this.setSubMenuPosition(this.menus.hooks[this.currentActiveSubMenu],this.subMenus[this.currentActiveSubMenu])}},{key:"toggleSubMenu",value:function(e){if(!this.subMenus[e])return this.hideAllSubMenu(),this.drawSubMenus(e),this.subMenus[e].style.display="block",this.activeSubMenuItem(e),void(this.currentActiveSubMenu=e);"none"===this.subMenus[e].style.display?(this.activeSubMenuItem(e),this.hideAllSubMenu(),this.subMenus[e].style.display="block",this.setSubMenuPosition(this.menus.hooks[e],this.subMenus[e]),this.currentActiveSubMenu=e):(this.subMenus[e].style.display="none",this.currentActiveSubMenu=null)}},{key:"hideAllSubMenu",value:function(){var e;this.currentActiveSubMenu=null,gf(e=this.$cherry.wrapperDom.querySelectorAll(".cherry-dropdown")).call(e,function(e){e.style.display="none"})}},{key:"collectMenuInfo",value:function(e){this.toolbarHandlers=Md({},this.toolbarHandlers,e.toolbarHandlers),this.menus.hooks=Md({},e.menus.hooks,this.menus.hooks),(!this.options.shortcutKey||$h(this.options.shortcutKey).length<=0)&&(this.shortcutKeyMap=Md({},this.shortcutKeyMap,e.shortcutKeyMap))}},{key:"collectShortcutKey",value:function(){var e,t=this,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.$cherry.options.toolbars.shortcutKey&&$h(this.$cherry.options.toolbars.shortcutKey).length>0&&gf(e=WW(this.$cherry.options.toolbars.shortcutKey)).call(e,function(e){var n=Yy(e,2),r=n[0],i=n[1],o=r.replace(/Ctrl-/g,"Control-").replace(/-([A-Za-z])$/g,function(e,t){return"-Key".concat(t.toUpperCase())}).replace(/-([0-9])$/g,"-Digit$1");t.shortcutKeyMap[o]={hookName:i,aliasName:t.$cherry.locale[i]||i}}),this.$cherry.options.toolbars.shortcutKeySettings.isReplace)this.shortcutKeyMap=this.$cherry.options.toolbars.shortcutKeySettings.shortcutKeyMap;else{var r,i;if(gf(r=this.menus.allMenusName).call(r,function(e){var n,r;null===(n=t.menus.hooks[e].shortcutKeys)||void 0===n||gf(n).call(n,function(n){t.shortcutKeyMap[n]=e}),"object"===ql(t.menus.hooks[e].shortcutKeyMap)&&t.menus.hooks[e].shortcutKeyMap&&gf(r=WW(t.menus.hooks[e].shortcutKeyMap)).call(r,function(e){var n=Yy(e,2),r=n[0],i=n[1];r in t.shortcutKeyMap?jC.error("The shortcut key ".concat(r," is already registered")):t.shortcutKeyMap[r]=i})}),gf(i=WW(this.$cherry.options.toolbars.shortcutKeySettings.shortcutKeyMap)).call(i,function(e){var n=Yy(e,2),r=n[0],i=n[1];t.shortcutKeyMap[r]=i}),!n)return;var o=xV(this.$cherry.nameSpace);if(o){var a,s,l={};gf(a=WW(this.shortcutKeyMap)).call(a,function(e){var t,n=Yy(e,2),r=n[0],i=n[1];l[Xu(t="".concat(i.hookName,"-")).call(t,i.aliasName)]=r}),gf(s=WW(o)).call(s,function(e){var n,r=Yy(e,2),i=r[0],o=r[1],a=Xu(n="".concat(o.hookName,"-")).call(n,o.aliasName);l[a]&&delete t.shortcutKeyMap[l[a]],t.shortcutKeyMap[i]=o})}}}},{key:"updateShortcutKeyMap",value:function(e,t){if(e===t)return!1;var n=this.shortcutKeyMap[e];if(!n)return!1;delete this.shortcutKeyMap[e],this.shortcutKeyMap[t]=n,_V(this.$cherry.nameSpace,this.shortcutKeyMap)}},{key:"collectToolbarHandler",value:function(){var e,t=this;this.toolbarHandlers=sL(e=this.menus.allMenusName).call(e,function(e,n){var r=t.menus.hooks[n];return r?(e[n]=function(e,t){"function"==typeof t&&jC.warn("MenuBase#onClick param callback is no longer supported. Please register the callback via MenuBase#registerAfterClickCb instead."),r.fire.call(r,void 0,e)},e):e},{})}},{key:"matchShortcutKey",value:function(e){var t,n=bV(e),r=EV(n);return!(null===(t=this.shortcutKeyMap)||void 0===t||!t[r])}},{key:"fireShortcutKey",value:function(e){var t;if(!wV(this.$cherry.nameSpace))return!1;var n,r=bV(e),i=EV(r),o=null===(t=this.shortcutKeyMap[i])||void 0===t?void 0:t.hookName;return"string"==typeof o&&o&&(null===(n=this.menus.hooks[o])||void 0===n||n.fire(e,i)),!0}}])}();function Pq(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(Pq=function(){return!!e})()}var Fq=function(){function e(){return ua(this,e),t=this,r=arguments,n=wu(n=e),Ac(t,Pq()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,Bq),mc(e,[{key:"visible",get:function(){var e=window.getComputedStyle(this.bubbleDom);return"none"!==e.display&&"hidden"!==e.visibility},set:function(t){var n=window.getComputedStyle(this.bubbleDom);t?"none"===n.display&&(this.bubbleDom.style.display=e.displayType):"none"!==n.display&&(this.bubbleDom.style.display="none")}},{key:"init",value:function(){var e,t=this;this.options.editor=this.$cherry.editor,this.addSelectionChangeListener(),this.bubbleDom=this.options.dom,this.editorDom=this.options.editor.getEditorDom(),this.initBubbleDom(),this.editorDom.querySelector(".CodeMirror").appendChild(this.bubbleDom),gf(e=WW(this.shortcutKeyMap)).call(e,function(e){var n=Yy(e,2),r=n[0],i=n[1];t.$cherry.toolbar.shortcutKeyMap[r]=i})}},{key:"appendMenusToDom",value:function(e){this.options.dom.appendChild(e)}},{key:"getScrollTop",value:function(){return this.options.editor.editor.getScrollInfo().top}},{key:"updatePositionWhenScroll",value:function(){this.bubbleDom.style.display===e.displayType&&(this.bubbleDom.style.marginTop="".concat(kE(this.bubbleDom.dataset.scrollTop)-this.getScrollTop(),"px"))}},{key:"showBubble",value:function(e,t){this.visible||(this.visible=!0,this.bubbleDom.style.marginTop="0",this.bubbleDom.dataset.scrollTop=String(this.getScrollTop()));var n=this.editorDom.querySelector(".CodeMirror-lines").firstChild.getBoundingClientRect(),r=this.editorDom.getBoundingClientRect(),i=n.left-r.left,o=n.width+i,a=e;a<2*this.bubbleDom.offsetHeight?(a+=this.bubbleDom.offsetHeight-this.bubbleTop.getBoundingClientRect().height,this.bubbleTop.style.display="block",this.bubbleBottom.style.display="none"):(a-=this.bubbleDom.offsetHeight+this.bubbleBottom.getBoundingClientRect().height,this.bubbleTop.style.display="none",this.bubbleBottom.style.display="block"),this.bubbleDom.style.top="".concat(a,"px");var s=t-this.bubbleDom.offsetWidth/2;s<i?(s=i,this.$setBubbleCursorPosition("".concat(t-i,"px"))):s+this.bubbleDom.offsetWidth>o?(s=o-this.bubbleDom.offsetWidth,this.$setBubbleCursorPosition("".concat(t-s,"px"))):this.$setBubbleCursorPosition("50%"),this.bubbleDom.style.left="".concat(Math.max(20,s),"px")}},{key:"hideBubble",value:function(){this.visible=!1}},{key:"$setBubbleCursorPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"50%";if("50%"===e)this.bubbleTop.style.left="50%",this.bubbleBottom.style.left="50%";else{var t=kE(e)<10?"10px":e;this.bubbleTop.style.left=t,this.bubbleBottom.style.left=t}}},{key:"initBubbleDom",value:function(){var e=document.createElement("div");e.className="cherry-bubble-top";var t=document.createElement("div");t.className="cherry-bubble-bottom",this.bubbleTop=e,this.bubbleBottom=t,this.bubbleDom.appendChild(e),this.bubbleDom.appendChild(t),this.visible=!1}},{key:"getBubbleDom",value:function(){return this.bubbleDom}},{key:"addSelectionChangeListener",value:function(){var e=this;this.options.editor.addListener("change",function(t){e.hideBubble()}),this.options.editor.addListener("refresh",function(t){e.hideBubble()}),this.options.editor.addListener("scroll",function(t){e.updatePositionWhenScroll()}),this.options.editor.addListener("beforeSelectionChange",function(t,n){if(_d(function(){var r=t.getSelections(),i=r.join("");i!==e.lastSelectionsStr&&(i||e.lastSelectionsStr)&&(e.lastSelections=e.lastSelections?e.lastSelections:[],e.$cherry.$event.emit("selectionChange",{selections:r,lastSelections:e.lastSelections,info:n}),e.lastSelections=r,e.lastSelectionsStr=i)},10),"*mouse"!==n.origin&&(null!==n.origin||void 0===n.origin))return!0;if(!n.ranges[0])return!0;var r=1e6*n.ranges[0].anchor.line+n.ranges[0].anchor.ch,i=1e6*n.ranges[0].head.line+n.ranges[0].head.ch,o="asc";r>i&&(o="desc"),_d(function(){if(t.getSelections().join("").length<=0)e.hideBubble();else{var n=t.getWrapperElement().getElementsByClassName("CodeMirror-selected"),r=e.editorDom.getBoundingClientRect(),i=0,a=0;if("object"!==ql(n)||n.length<=0)e.hideBubble();else{for(var s=0;s<n.length;s++){var l=n[s].getBoundingClientRect(),c=l.top-r.top;"asc"===o?c>=a&&(a=c,i=l.left-r.left+l.width/2):(c<=a||a<=0)&&(a=c,i=l.left-r.left+l.width/2)}e.showBubble(a,i)}}},10)})}}])}();Fu(Fq,"displayType","flex");var $q,jq,Hq,Uq,Qq,zq,Wq,Gq={};function Vq(){return Hq?jq:(Hq=1,function(){if($q)return Gq;$q=1;var e=sn(),t=cE();e({target:"Number",stat:!0,forced:Number.parseFloat!==t},{parseFloat:t})}(),jq=Me().Number.parseFloat)}function Kq(){return Qq?Uq:(Qq=1,Uq=Vq())}var Yq,qq,Xq,Jq,Zq,eX,tX,nX,rX,iX=i(Wq?zq:(Wq=1,zq=Kq()));function oX(){if(qq)return Yq;qq=1;var e=E().isFinite;return Yq=Number.isFinite||function(t){return"number"==typeof t&&e(t)}}function aX(){return Zq?Jq:(Zq=1,Xq||(Xq=1,sn()({target:"Number",stat:!0},{isFinite:oX()})),Jq=Me().Number.isFinite)}function sX(){return tX?eX:(tX=1,eX=aX())}var lX=i(rX?nX:(rX=1,nX=sX()));function cX(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(cX=function(){return!!e})()}var uX=function(){function e(){return ua(this,e),t=this,r=arguments,n=wu(n=e),Ac(t,cX()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,Bq),mc(e,[{key:"init",value:function(){var e,t=this;this.editor=this.$cherry.editor,this.editorDom=this.editor.getEditorDom(),this.editorDom.querySelector(".CodeMirror-scroll").appendChild(this.options.dom),this.initAction(),gf(e=WW(this.shortcutKeyMap)).call(e,function(e){var n=Yy(e,2),r=n[0],i=n[1];t.$cherry.toolbar.shortcutKeyMap[r]=i})}},{key:"appendMenusToDom",value:function(e){this.options.dom.appendChild(e)}},{key:"initAction",value:function(){var e=this;this.editor.addListener("cursorActivity",function(t,n){e.cursorActivity(n,t)}),this.editor.addListener("update",function(t,n){e.cursorActivity(n,t)}),this.editor.addListener("refresh",function(t,n){_d(function(){e.cursorActivity(n,t)},0)})}},{key:"update",value:function(e,t){var n=t.getCursor();if(this.isHidden(n.line,t))return this.options.dom.style.display="none",!1;this.options.dom.style.display="inline-block"}},{key:"cursorActivity",value:function(e,t){var n=t.getCursor(),r=document.querySelector(".cherry-editor .CodeMirror-lines");if(!r)return!1;var i=getComputedStyle(r),o=iX(i.paddingLeft),a=iX(i.paddingTop),s=lX(o)?o:0,l=lX(a)?a:0;if(this.isHidden(n.line,t))return this.options.dom.style.display="none",!1;this.options.dom.style.display="inline-block",this.options.dom.style.left="".concat(s,"px");var c=r.querySelector(".CodeMirror-placeholder"),u=this.getLineHeight(n.line,t);if(c instanceof HTMLElement&&null!==c.offsetParent){var d,h=r.getBoundingClientRect(),f=zw(d=u_(c.childNodes)).call(d,function(e){var t;return e.nodeType===Node.TEXT_NODE&&e.nodeValue&&""!==c_(t=e.nodeValue).call(t)}),p=document.createRange();p.setStart(f,0),p.setEnd(f,f.nodeValue.length);var g=p.getClientRects(),m=g[g.length-1],v=Math.max(0,m.right-h.left);this.options.dom.style.left="".concat(v+s-80,"px")}this.options.dom.style.top="".concat(u+l,"px")}},{key:"isHidden",value:function(e,t){return t.getSelections().length>1||t.getSelection().length>0||!!t.getLine(e)}},{key:"getLineHeight",value:function(e,t){var n=0;return t.getDoc().eachLine(0,e,function(e){n+=e.height}),n}}])}();function dX(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(dX=function(){return!!e})()}var hX=function(){function e(){return ua(this,e),t=this,r=arguments,n=wu(n=e),Ac(t,dX()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,Bq),mc(e,[{key:"appendMenusToDom",value:function(e){var t=OC("div","toolbar-right");t.appendChild(e),this.options.dom.appendChild(t)}},{key:"init",value:function(){var t,n,r,i,o=this;(n="init",r=this,"function"==typeof(i=LR(wu(e.prototype),n,r))?function(e){return i.apply(r,e)}:i)([]),gf(t=WW(this.shortcutKeyMap)).call(t,function(e){var t=Yy(e,2),n=t[0],r=t[1];o.$cherry.toolbar.shortcutKeyMap[n]=r})}}])}(),fX=function(){return mc(function e(t){var n,r,i,o,a;ua(this,e),this.$cherry=t.$cherry,this.editor=t.$cherry.editor.editor,this.tocStr="",this.updateLocationHash=null===(n=t.updateLocationHash)||void 0===n||n,this.defaultModel=null!==(r=t.defaultModel)&&void 0!==r?r:"full",this.showAutoNumber=null!==(i=t.showAutoNumber)&&void 0!==i&&i,this.position=null!==(o=t.position)&&void 0!==o?o:"absolute",this.cssText=null!==(a=t.cssText)&&void 0!==a?a:"",this.init()},[{key:"init",value:function(){var e=this;this.drawDom(),this.timer=_d(function(){e.updateTocList()},300),this.editor.on("change",function(t,n){clearTimeout(e.timer),e.timer=_d(function(){e.updateTocList(),e.$switchModel(e.model)},300)}),this.$switchModel(this.getModelFromLocalStorage())}},{key:"getModelFromLocalStorage",value:function(){return"undefined"==typeof localStorage?this.defaultModel:localStorage.getItem("cherry-toc-model")||this.defaultModel}},{key:"setModelToLocalStorage",value:function(e){"undefined"!=typeof localStorage&&localStorage.setItem("cherry-toc-model",e)}},{key:"drawDom",value:function(){var e=OC("div","cherry-flex-toc cherry-flex-toc__pure".concat(this.showAutoNumber?" auto-num":""));"fixed"===this.position&&e.classList.add("cherry-flex-toc__fixed"),this.cssText.length>0&&(e.style.cssText=this.cssText);var t=OC("div","cherry-toc-head"),n=OC("span","cherry-toc-title");n.append(this.$cherry.locale.toc);var r=OC("i","ch-icon ch-icon-chevronsRight"),i=OC("i","ch-icon ch-icon-chevronsLeft");this.tocClose=r,this.tocOpen=i,t.appendChild(n),t.appendChild(r),t.appendChild(i),e.appendChild(t);var o=OC("div","cherry-toc-list");this.tocListDom=o,e.appendChild(o),this.tocDom=e,this.$cherry.wrapperDom.appendChild(e),this.bindClickEvent()}},{key:"bindClickEvent",value:function(){var e=this;this.tocDom.addEventListener("click",function(t){var n=e.$getClosestNode(t.target,"A");if(!1!==n&&/cherry-toc-one-a/.test(n.className)){var r=n.dataset,i=r.id,o=r.index;if("hide"===e.$cherry.status.previewer){for(var a=e.$cherry.editor.editor.getSearchCursor(/(?:^|\n)\n*((?:[ \t\u00a0]*#{1,6}).+?|(?:[ \t\u00a0]*.+)\n(?:[ \t\u00a0]*[=]+|[-]+))(?=$|\n)/g),s=0;s<=o;s++)a.findNext();var l=a.from();e.$cherry.editor.scrollToLineNum(l.line,l.line+1,0)}else e.$cherry.previewer.scrollToHeadByIndex(o);e.updateLocationHash&&(location.href=i)}}),this.tocClose.addEventListener("click",function(t){e.$switchModel("pure"),e.setModelToLocalStorage("pure")}),this.tocOpen.addEventListener("click",function(t){e.$switchModel("full"),e.setModelToLocalStorage("full")}),window&&window.addEventListener("resize",function(){e.$switchModel(e.model)}),this.editor.on("scroll",function(t,n){e.updateTocList(!0)});var t=this.$cherry.previewer.getDomCanScroll();"HTML"===t.nodeName?window.addEventListener("scroll",function(){e.updateTocList(!0)}):t.addEventListener("scroll",function(){e.updateTocList(!0)})}},{key:"$switchModel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pure";this.model=e;var t="cherry-flex-toc__".concat(e);this.tocDom.classList.contains(t)||(this.tocDom.classList.remove("cherry-flex-toc__pure"),this.tocDom.classList.remove("cherry-flex-toc__full"),this.tocDom.classList.add(t));var n=this.tocListDom.querySelectorAll(".cherry-toc-one-a");if(n.length>0){var r=28;if("pure"===e){var i=this.tocListDom.getBoundingClientRect().height,o=Math.floor((i-3*n.length)/n.length);r=o<3?3:o>10?10:o}for(var a=0;a<n.length;a++)n[a].style.height!=="".concat(r,"px")&&(n[a].style.height="".concat(r,"px"))}}},{key:"$getClosestNode",value:function(e,t){return!(!e||!e.tagName)&&(e.tagName===t?e:"BODY"!==e.parentNode.tagName&&this.$getClosestNode(e.parentNode,t))}},{key:"updateTocList",value:function(){if(!0===(arguments.length>0&&void 0!==arguments[0]&&arguments[0]));else{var e=this.$cherry.getToc(),t="";if(_h(e).call(e,function(e){var n,r,i=e.level,o=e.text,a=e.isInBlockquote;return t+=Xu(n=Xu(r="".concat(i)).call(r,o)).call(n,a),e}),t=this.$cherry.engine.hash(t),this.tocStr!==t){this.tocStr=t;var n="",r=0;_h(e).call(e,function(e){var t,i,o,a,s,l,c=e.id,u=e.level,d=e.text,h=e.isInBlockquote,f=d.replace(/<sup class="cherry-footnote-number">.*?<\/sup>/g,"").replace(/<a .+?<\/a>/g,""),p=f.replace(/<[^>]+?>/g,""),g=h?'<i class="cherry-toc-in-blockquote ch-icon ch-icon-blockquote"></i>':"";return n+=Xu(t=Xu(i=Xu(o=Xu(a=Xu(s=Xu(l='<a class="cherry-toc-one-a cherry-toc-one-a__'.concat(u>5?5:u,'"\n            title="')).call(l,p,'"\n            data-index="')).call(s,r,'"\n            data-id="#')).call(a,c,'"\n            data-in-blockquote="')).call(o,g?"true":"false",'"\n            >')).call(i,g," ")).call(t,f,"</a>"),r+=1,e}),this.tocListDom.innerHTML=n}}if("hide"===this.$cherry.status.previewer);else{for(var i,o=this.$cherry.previewer.getDomCanScroll(),a="HTML"===o.nodeName?0:o.getBoundingClientRect().y,s=this.$cherry.previewer.getDomContainer().querySelectorAll("h1,h2,h3,h4,h5,h6,h7,h8"),l=0;l<s.length;l++)if(s[l].getBoundingClientRect().y>a+20)break;l=l>0?l-1:l,gf(i=this.tocListDom.querySelectorAll(".cherry-toc-one-a")).call(i,function(e,t){t===l?e.classList.add("current"):e.classList.remove("current")})}}}])}();function pX(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(pX=function(){return!!e})()}var gX=function(){function e(){return ua(this,e),t=this,r=arguments,n=wu(n=e),Ac(t,pX()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,Bq),mc(e,[{key:"appendMenusToDom",value:function(e){this.options.dom.appendChild(e)}},{key:"init",value:function(){var t,n,r,i,o=this;(n="init",r=this,"function"==typeof(i=LR(wu(e.prototype),n,r))?function(e){return i.apply(r,e)}:i)([]),gf(t=WW(this.shortcutKeyMap)).call(t,function(e){var t=Yy(e,2),n=t[0],r=t[1];o.$cherry.toolbar.shortcutKeyMap[n]=r})}}])}();function mX(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(mX=function(){return!!e})()}var vX,AX,bX,yX,wX,_X,xX,EX,SX,CX,TX,kX,OX,MX,IX,DX,NX,RX,LX,BX,PX,FX,$X,jX,HX,UX,QX,zX,WX,GX,VX,KX,YX,qX,XX,JX,ZX,eJ,tJ,nJ,rJ,iJ,oJ,aJ,sJ,lJ,cJ,uJ,dJ,hJ,fJ,pJ,gJ,mJ,vJ,AJ,bJ,yJ,wJ,_J,xJ,EJ,SJ,CJ,TJ,kJ,OJ=function(){function e(){return ua(this,e),t=this,r=arguments,n=wu(n=e),Ac(t,mX()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,Bq),mc(e,[{key:"appendMenusToDom",value:function(e){}},{key:"init",value:function(){var t,n,r,i,o=this;(n="init",r=this,"function"==typeof(i=LR(wu(e.prototype),n,r))?function(e){return i.apply(r,e)}:i)([]),gf(t=WW(this.shortcutKeyMap)).call(t,function(e){var t=Yy(e,2),n=t[0],r=t[1];o.$cherry.toolbar.shortcutKeyMap[n]=r})}}])}(),MJ=function(){if(AX)return vX;AX=1;var e=-1;function t(h,f,p,g,v){if(h===f)return h?[[0,h]]:[];if(null!=p){var A=function(e,t,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,i="number"==typeof n?null:n.newRange,o=e.length,a=t.length;if(0===r.length&&(null===i||0===i.length)){var s=r.index,l=e.slice(0,s),c=e.slice(s),u=i?i.index:null,d=s+a-o;if((null===u||u===d)&&!(d<0||d>a)){var h=t.slice(0,d);if((g=t.slice(d))===c){var f=Math.min(s,d);if((A=l.slice(0,f))===(y=h.slice(0,f)))return m(A,l.slice(f),h.slice(f),c)}}if(null===u||u===s){var p=s,g=(h=t.slice(0,p),t.slice(p));if(h===l){var v=Math.min(o-p,a-p);if((b=c.slice(c.length-v))===(w=g.slice(g.length-v)))return m(l,c.slice(0,c.length-v),g.slice(0,g.length-v),b)}}}if(r.length>0&&i&&0===i.length){var A=e.slice(0,r.index),b=e.slice(r.index+r.length);if(!(a<(f=A.length)+(v=b.length))){var y=t.slice(0,f),w=t.slice(a-v);if(A===y&&b===w)return m(A,e.slice(f,o-v),t.slice(f,a-v),b)}}return null}(h,f,p);if(A)return A}var b=r(h,f),y=h.substring(0,b);b=o(h=h.substring(b),f=f.substring(b));var w=h.substring(h.length-b),_=function(i,a){var s;if(!i)return[[1,a]];if(!a)return[[e,i]];var l=i.length>a.length?i:a,c=i.length>a.length?a:i,u=l.indexOf(c);if(-1!==u)return s=[[1,l.substring(0,u)],[0,c],[1,l.substring(u+c.length)]],i.length>a.length&&(s[0][0]=s[2][0]=e),s;if(1===c.length)return[[e,i],[1,a]];var d=function(e,t){var n=e.length>t.length?e:t,i=e.length>t.length?t:e;if(n.length<4||2*i.length<n.length)return null;function a(e,t,n){for(var i,a,s,l,c=e.substring(n,n+Math.floor(e.length/4)),u=-1,d="";-1!==(u=t.indexOf(c,u+1));){var h=r(e.substring(n),t.substring(u)),f=o(e.substring(0,n),t.substring(0,u));d.length<f+h&&(d=t.substring(u-f,u)+t.substring(u,u+h),i=e.substring(0,n-f),a=e.substring(n+h),s=t.substring(0,u-f),l=t.substring(u+h))}return 2*d.length>=e.length?[i,a,s,l,d]:null}var s,l,c,u,d,h=a(n,i,Math.ceil(n.length/4)),f=a(n,i,Math.ceil(n.length/2));if(!h&&!f)return null;s=f?h&&h[4].length>f[4].length?h:f:h,e.length>t.length?(l=s[0],c=s[1],u=s[2],d=s[3]):(u=s[0],d=s[1],l=s[2],c=s[3]);var p=s[4];return[l,c,u,d,p]}(i,a);if(d){var h=d[0],f=d[1],p=d[2],g=d[3],m=d[4],v=t(h,p),A=t(f,g);return v.concat([[0,m]],A)}return function(t,r){for(var i=t.length,o=r.length,a=Math.ceil((i+o)/2),s=a,l=2*a,c=new Array(l),u=new Array(l),d=0;d<l;d++)c[d]=-1,u[d]=-1;c[s+1]=0,u[s+1]=0;for(var h=i-o,f=h%2!=0,p=0,g=0,m=0,v=0,A=0;A<a;A++){for(var b=-A+p;b<=A-g;b+=2){for(var y=s+b,w=(C=b===-A||b!==A&&c[y-1]<c[y+1]?c[y+1]:c[y-1]+1)-b;C<i&&w<o&&t.charAt(C)===r.charAt(w);)C++,w++;if(c[y]=C,C>i)g+=2;else if(w>o)p+=2;else if(f&&(E=s+h-b)>=0&&E<l&&-1!==u[E]&&C>=(x=i-u[E]))return n(t,r,C,w)}for(var _=-A+m;_<=A-v;_+=2){for(var x,E=s+_,S=(x=_===-A||_!==A&&u[E-1]<u[E+1]?u[E+1]:u[E-1]+1)-_;x<i&&S<o&&t.charAt(i-x-1)===r.charAt(o-S-1);)x++,S++;if(u[E]=x,x>i)v+=2;else if(S>o)m+=2;else if(!f){var C;if((y=s+h-_)>=0&&y<l&&-1!==c[y])if(w=s+(C=c[y])-y,C>=(x=i-x))return n(t,r,C,w)}}}return[[e,t],[1,r]]}(i,a)}(h=h.substring(0,h.length-b),f=f.substring(0,f.length-b));return y&&_.unshift([0,y]),w&&_.push([0,w]),d(_,v),g&&function(t){for(var n=!1,r=[],h=0,f=null,p=0,g=0,m=0,v=0,A=0;p<t.length;)0==t[p][0]?(r[h++]=p,g=v,m=A,v=0,A=0,f=t[p][1]):(1==t[p][0]?v+=t[p][1].length:A+=t[p][1].length,f&&f.length<=Math.max(g,m)&&f.length<=Math.max(v,A)&&(t.splice(r[h-1],0,[e,f]),t[r[h-1]+1][0]=1,h--,p=--h>0?r[h-1]:-1,g=0,m=0,v=0,A=0,f=null,n=!0)),p++;for(n&&d(t),function(e){function t(e,t){if(!e||!t)return 6;var n=e.charAt(e.length-1),r=t.charAt(0),i=n.match(a),o=r.match(a),d=i&&n.match(s),h=o&&r.match(s),f=d&&n.match(l),p=h&&r.match(l),g=f&&e.match(c),m=p&&t.match(u);return g||m?5:f||p?4:i&&!d&&h?3:d||h?2:i||o?1:0}for(var n=1;n<e.length-1;){if(0==e[n-1][0]&&0==e[n+1][0]){var r=e[n-1][1],i=e[n][1],d=e[n+1][1],h=o(r,i);if(h){var f=i.substring(i.length-h);r=r.substring(0,r.length-h),i=f+i.substring(0,i.length-h),d=f+d}for(var p=r,g=i,m=d,v=t(r,i)+t(i,d);i.charAt(0)===d.charAt(0);){r+=i.charAt(0),i=i.substring(1)+d.charAt(0),d=d.substring(1);var A=t(r,i)+t(i,d);A>=v&&(v=A,p=r,g=i,m=d)}e[n-1][1]!=p&&(p?e[n-1][1]=p:(e.splice(n-1,1),n--),e[n][1]=g,m?e[n+1][1]=m:(e.splice(n+1,1),n--))}n++}}(t),p=1;p<t.length;){if(t[p-1][0]==e&&1==t[p][0]){var b=t[p-1][1],y=t[p][1],w=i(b,y),_=i(y,b);w>=_?(w>=b.length/2||w>=y.length/2)&&(t.splice(p,0,[0,y.substring(0,w)]),t[p-1][1]=b.substring(0,b.length-w),t[p+1][1]=y.substring(w),p++):(_>=b.length/2||_>=y.length/2)&&(t.splice(p,0,[0,b.substring(0,_)]),t[p-1][0]=1,t[p-1][1]=y.substring(0,y.length-_),t[p+1][0]=e,t[p+1][1]=b.substring(_),p++),p++}p++}}(_),_}function n(e,n,r,i){var o=e.substring(0,r),a=n.substring(0,i),s=e.substring(r),l=n.substring(i),c=t(o,a),u=t(s,l);return c.concat(u)}function r(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(o,i)==t.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return h(e.charCodeAt(i-1))&&i--,i}function i(e,t){var n=e.length,r=t.length;if(0==n||0==r)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));var i=Math.min(n,r);if(e==t)return i;for(var o=0,a=1;;){var s=e.substring(i-a),l=t.indexOf(s);if(-1==l)return o;a+=l,0!=l&&e.substring(i-a)!=t.substring(0,a)||(o=a,a++)}}function o(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n<i;)e.substring(e.length-i,e.length-o)==t.substring(t.length-i,t.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return f(e.charCodeAt(e.length-i))&&i--,i}var a=/[^a-zA-Z0-9]/,s=/\s/,l=/[\r\n]/,c=/\n\r?\n$/,u=/^\r?\n\r?\n/;function d(t,n){t.push([0,""]);for(var i,a=0,s=0,l=0,c="",u="";a<t.length;)if(a<t.length-1&&!t[a][1])t.splice(a,1);else switch(t[a][0]){case 1:l++,u+=t[a][1],a++;break;case e:s++,c+=t[a][1],a++;break;case 0:var h=a-l-s-1;if(n){if(h>=0&&g(t[h][1])){var f=t[h][1].slice(-1);if(t[h][1]=t[h][1].slice(0,-1),c=f+c,u=f+u,!t[h][1]){t.splice(h,1),a--;var m=h-1;t[m]&&1===t[m][0]&&(l++,u=t[m][1]+u,m--),t[m]&&t[m][0]===e&&(s++,c=t[m][1]+c,m--),h=m}}p(t[a][1])&&(f=t[a][1].charAt(0),t[a][1]=t[a][1].slice(1),c+=f,u+=f)}if(a<t.length-1&&!t[a][1]){t.splice(a,1);break}if(c.length>0||u.length>0){c.length>0&&u.length>0&&(0!==(i=r(u,c))&&(h>=0?t[h][1]+=u.substring(0,i):(t.splice(0,0,[0,u.substring(0,i)]),a++),u=u.substring(i),c=c.substring(i)),0!==(i=o(u,c))&&(t[a][1]=u.substring(u.length-i)+t[a][1],u=u.substring(0,u.length-i),c=c.substring(0,c.length-i)));var v=l+s;0===c.length&&0===u.length?(t.splice(a-v,v),a-=v):0===c.length?(t.splice(a-v,v,[1,u]),a=a-v+1):0===u.length?(t.splice(a-v,v,[e,c]),a=a-v+1):(t.splice(a-v,v,[e,c],[1,u]),a=a-v+2)}0!==a&&0===t[a-1][0]?(t[a-1][1]+=t[a][1],t.splice(a,1)):a++,l=0,s=0,c="",u=""}""===t[t.length-1][1]&&t.pop();var A=!1;for(a=1;a<t.length-1;)0===t[a-1][0]&&0===t[a+1][0]&&(t[a][1].substring(t[a][1].length-t[a-1][1].length)===t[a-1][1]?(t[a][1]=t[a-1][1]+t[a][1].substring(0,t[a][1].length-t[a-1][1].length),t[a+1][1]=t[a-1][1]+t[a+1][1],t.splice(a-1,1),A=!0):t[a][1].substring(0,t[a+1][1].length)==t[a+1][1]&&(t[a-1][1]+=t[a+1][1],t[a][1]=t[a][1].substring(t[a+1][1].length)+t[a+1][1],t.splice(a+1,1),A=!0)),a++;A&&d(t,n)}function h(e){return e>=55296&&e<=56319}function f(e){return e>=56320&&e<=57343}function p(e){return f(e.charCodeAt(0))}function g(e){return h(e.charCodeAt(e.length-1))}function m(t,n,r,i){return g(t)||p(i)?null:function(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}([[0,t],[e,n],[1,r],[0,i]])}function v(e,n,r,i){return t(e,n,r,i,!0)}return v.INSERT=1,v.DELETE=e,v.EQUAL=0,vX=v}(),IJ=i(MJ);function DJ(){if(EX)return xX;EX=1;var e=Cm(),t=function(){if(_X)return wX;_X=1;var e=Em()(Object.keys,Object);return wX=e}(),n=Object.prototype.hasOwnProperty;return xX=function(r){if(!e(r))return t(r);var i=[];for(var o in Object(r))n.call(r,o)&&"constructor"!=o&&i.push(o);return i},xX}function NJ(){if(CX)return SX;CX=1;var e=Vv(),t=DJ(),n=Dm();return SX=function(r){return n(r)?e(r):t(r)},SX}function RJ(){return RX?NX:(RX=1,NX=function(){return[]})}function LJ(){if(BX)return LX;BX=1;var e=(DX||(DX=1,IX=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}),IX),t=RJ(),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,i=r?function(t){return null==t?[]:(t=Object(t),e(r(t),function(e){return n.call(t,e)}))}:t;return LX=i}function BJ(){return jX||(jX=1,$X=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}),$X}function PJ(){if(UX)return HX;UX=1;var e=BJ(),t=Sm(),n=LJ(),r=RJ(),i=Object.getOwnPropertySymbols?function(r){for(var i=[];r;)e(i,n(r)),r=t(r);return i}:r;return HX=i}function FJ(){if(GX)return WX;GX=1;var e=BJ(),t=Mm();return WX=function(n,r,i){var o=r(n);return t(n)?o:e(o,i(n))},WX}function $J(){if(aJ)return oJ;aJ=1;var e=function(){if(JX)return XX;JX=1;var e=Og()(_g(),"DataView");return XX=e}(),t=Mg(),n=function(){if(eJ)return ZX;eJ=1;var e=Og()(_g(),"Promise");return ZX=e}(),r=function(){if(nJ)return tJ;nJ=1;var e=Og()(_g(),"Set");return tJ=e}(),i=function(){if(iJ)return rJ;iJ=1;var e=Og()(_g(),"WeakMap");return rJ=e}(),o=Eg(),a=kg(),s="[object Map]",l="[object Promise]",c="[object Set]",u="[object WeakMap]",d="[object DataView]",h=a(e),f=a(t),p=a(n),g=a(r),m=a(i),v=o;return(e&&v(new e(new ArrayBuffer(1)))!=d||t&&v(new t)!=s||n&&v(n.resolve())!=l||r&&v(new r)!=c||i&&v(new i)!=u)&&(v=function(e){var t=o(e),n="[object Object]"==t?e.constructor:void 0,r=n?a(n):"";if(r)switch(r){case h:return d;case f:return s;case p:return l;case g:return c;case m:return u}return t}),oJ=v}function jJ(){if(mJ)return gJ;mJ=1;var e=wm(),t=function(){if(uJ)return cJ;uJ=1;var e=wm();return cJ=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}(),n=function(){if(hJ)return dJ;hJ=1;var e=/\w*$/;return dJ=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}(),r=function(){if(pJ)return fJ;pJ=1;var e=xg(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return fJ=function(e){return n?Object(n.call(e)):{}},fJ}(),i=_m();return gJ=function(o,a,s){var l=o.constructor;switch(a){case"[object ArrayBuffer]":return e(o);case"[object Boolean]":case"[object Date]":return new l(+o);case"[object DataView]":return t(o,s);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return i(o,s);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(o);case"[object RegExp]":return n(o);case"[object Symbol]":return r(o)}},gJ}function HJ(){if(yJ)return bJ;yJ=1;var e=function(){if(AJ)return vJ;AJ=1;var e=$J(),t=km();return vJ=function(n){return t(n)&&"[object Map]"==e(n)}}(),t=zm(),n=Hv(),r=n&&n.isMap,i=r?t(r):e;return bJ=i}function UJ(){if(EJ)return xJ;EJ=1;var e=function(){if(_J)return wJ;_J=1;var e=$J(),t=km();return wJ=function(n){return t(n)&&"[object Set]"==e(n)}}(),t=zm(),n=Hv(),r=n&&n.isSet,i=r?t(r):e;return xJ=i}function QJ(){if(CJ)return SJ;CJ=1;var e=Lg(),t=(yX||(yX=1,bX=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}),bX),n=zv(),r=function(){if(kX)return TX;kX=1;var e=Wv(),t=NJ();return TX=function(n,r){return n&&e(r,t(r),n)},TX}(),i=function(){if(MX)return OX;MX=1;var e=Wv(),t=Yv();return OX=function(n,r){return n&&e(r,t(r),n)},OX}(),o=ym(),a=xm(),s=function(){if(FX)return PX;FX=1;var e=Wv(),t=LJ();return PX=function(n,r){return e(n,t(n),r)},PX}(),l=function(){if(zX)return QX;zX=1;var e=Wv(),t=PJ();return QX=function(n,r){return e(n,t(n),r)},QX}(),c=function(){if(KX)return VX;KX=1;var e=FJ(),t=LJ(),n=NJ();return VX=function(r){return e(r,n,t)},VX}(),u=function(){if(qX)return YX;qX=1;var e=FJ(),t=PJ(),n=Yv();return YX=function(r){return e(r,n,t)},YX}(),d=$J(),h=function(){if(lJ)return sJ;lJ=1;var e=Object.prototype.hasOwnProperty;return sJ=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r},sJ}(),f=jJ(),p=Tm(),g=Mm(),m=Qm(),v=HJ(),A=Sg(),b=UJ(),y=NJ(),w=Yv(),_="[object Arguments]",x="[object Function]",E="[object Object]",S={};return S[_]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S[E]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S[x]=S["[object WeakMap]"]=!1,SJ=function C(T,k,O,M,I,D){var N,R=1&k,L=2&k,B=4&k;if(O&&(N=I?O(T,M,I,D):O(T)),void 0!==N)return N;if(!A(T))return T;var P=g(T);if(P){if(N=h(T),!R)return a(T,N)}else{var F=d(T),$=F==x||"[object GeneratorFunction]"==F;if(m(T))return o(T,R);if(F==E||F==_||$&&!I){if(N=L||$?{}:p(T),!R)return L?l(T,i(N,T)):s(T,r(N,T))}else{if(!S[F])return I?T:{};N=f(T,F,R)}}D||(D=new e);var j=D.get(T);if(j)return j;D.set(T,N),b(T)?T.forEach(function(e){N.add(C(e,k,O,e,T,D))}):v(T)&&T.forEach(function(e,t){N.set(t,C(e,k,O,t,T,D))});var H=P?void 0:(B?L?u:c:L?w:y)(T);return t(H||T,function(e,t){H&&(e=T[t=e]),n(N,t,C(e,k,O,t,T,D))}),N},SJ}var zJ=function(){if(kJ)return TJ;kJ=1;var e=QJ();return TJ=function(t){return e(t,5)}}(),WJ=i(zJ);function GJ(e,t){var n=void 0!==HC&&UC(e)||e["@@iterator"];if(!n){if(QC(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return VJ(e,t);var r=_x(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u_(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?VJ(e,t):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function VJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var KJ={urlProcessor:function(e,t){return e},fileUpload:function(e,t){if(/video/i.test(e.type))t("images/demo-dog.png",{name:"".concat(e.name.replace(/\.[^.]+$/,"")),poster:"images/demo-dog.png?poster=true",isBorder:!0,isShadow:!0,isRadius:!0});else if(/image/i.test(e.type)){var n=new FileReader;n.onload=function(n){var r=n.target.result;t(r,{name:"".concat(e.name.replace(/\.[^.]+$/,"")),isShadow:!0,width:"60%",height:"auto"})},n.readAsDataURL(e)}else t("images/demo-dog.png",{name:"".concat(e.name.replace(/\.[^.]+$/,""))})},fileUploadMulti:function(e,t){var n,r=e[0].type,i=[],o=GJ(e);try{var a=function(){var e=n.value,t=new SC(function(t){if(/video/i.test(r))t({url:"images/demo-dog.png",params:{name:"".concat(e.name.replace(/\.[^.]+$/,"")),poster:"images/demo-dog.png?poster=true",isBorder:!0,isShadow:!0,isRadius:!0}});else if(/image/i.test(r)){var n=new FileReader;n.onload=function(n){var r=n.target.result;t({url:r,params:{name:"".concat(e.name.replace(/\.[^.]+$/,"")),isShadow:!0,width:"60%",height:"auto"}})},n.readAsDataURL(e)}else/audio/i.test(r)?t({url:"images/demo-dog.png",params:{name:"".concat(e.name.replace(/\.[^.]+$/,"")),poster:"images/demo-dog.png?poster=true",isBorder:!0,isShadow:!0,isRadius:!0}}):t({url:"images/demo-dog.png",params:e})});i.push(t)};for(o.s();!(n=o.n()).done;)a()}catch(e){o.e(e)}finally{o.f()}SC.all(i).then(function(e){t(e)})},afterChange:function(e,t){},afterInit:function(e,t){},beforeImageMounted:function(e,t){return{srcProp:e,src:t}},onClickPreview:function(e){},onExpandCode:function(e,t){return t},onUnExpandCode:function(e,t){return t},onPaste:function(e,t){return!1},onCopyCode:function(e,t){return t},changeString2Pinyin:function(e){return e}},YJ={externals:{},openai:{apiKey:"",ignoreError:!1},engine:{global:{classicBr:!1,htmlWhiteList:"",htmlBlackList:"",htmlAttrWhiteList:"",flowSessionContext:!1,flowSessionCursor:""},syntax:{link:{target:"",rel:"",attrRender:function(e,t){return""},selfClosing:!1},autoLink:{target:"",rel:"",enableShortLink:!1,shortLinkLength:20,attrRender:function(e,t){return""}},image:{selfClosing:!1,selfClosingRender:function(e,t,n){return""}},list:{listNested:!1,indentSpace:2},table:{enableChart:!1,selfClosing:!1},space:!1,inlineCode:{showColor:!0,selfClosing:!1},codeBlock:{wrap:!0,lineNumber:!0,copyCode:!0,editCode:!0,changeLang:!0,expandCode:!1,selfClosing:!0,customRenderer:{},wrapperRender:function(e,t,n){return n},mermaid:{svg2img:!1},indentedCodeBlock:!0,customBtns:[]},emoji:{useUnicode:!0},fontEmphasis:{allowWhitespace:!1,selfClosing:!1},strikethrough:{needWhitespace:!1},mathBlock:{selfClosing:!1,engine:"MathJax",src:"",css:"",plugins:!0},inlineMath:{selfClosing:!1,engine:"MathJax",src:""},toc:{allowMultiToc:!1,showAutoNumber:!1},header:{anchorStyle:"default",selfClosing:!0,strict:!1},htmlBlock:{filterStyle:!1,removeTrailingNewline:!1},panel:{enableJustify:!0,enableAlign:!0,enablePanel:!0},footnote:{selfClosing:!1,refNumber:{appendClass:"",render:function(e,t){return"[".concat(e,"]")},clickRefNumberCallback:function(e,t,n,r){return!0}},refList:{appendClass:"",title:{appendClass:"",render:function(){return""}},listItem:{appendClass:"",render:function(e,t,n,r){var i;return Xu(i="".concat(r(e,t))).call(i,n)}}},bubbleCard:{appendClass:"",render:function(e,t,n){var r,i;return Xu(r=Xu(i='\n              <div class="cherry-ref-bubble-card__title">'.concat(e,". ")).call(i,t,'</div>\n              <div class="cherry-ref-bubble-card__content">')).call(r,n,'</div>\n              <div class="cherry-ref-bubble-card__foot"></div>\n            ')}}}}},editor:{id:"code",name:"code",autoSave2Textarea:!1,height:"100%",defaultModel:"edit&preview",convertWhenPaste:!0,keyMap:"sublime",codemirror:{autofocus:!0,placeholder:""},writingStyle:"normal",keepDocumentScrollAfterInit:!1,showFullWidthMark:!0,showSuggestList:!0,maxUrlLength:-1,suggester:{}},toolbars:{showToolbar:!0,toolbar:["bold","italic","strikethrough","|","color","header","ruby","|","list","panel","detail",{insert:["image","audio","video","link","hr","br","code","formula","toc","table","line-table","bar-table","pdf","word"]},"graph","shortcutKey","togglePreview"],toolbarRight:[],sidebar:!1,bubble:["bold","italic","underline","strikethrough","sub","sup","quote","|","size","color"],float:["h1","h2","h3","|","checklist","quote","table","code"],hiddenToolbar:[],toc:!1,shortcutKey:{},shortcutKeySettings:{isReplace:!1,shortcutKeyMap:{}},config:{formula:{showLatexLive:!0,templateConfig:!1},mapTable:{sourceUrl:["https://geo.datav.aliyun.com/areas_v3/bound/100000_full.json","./assets/data/china.json"]},changeLocale:[{locale:"zh_CN",name:"中文"},{locale:"en_US",name:"English"},{locale:"ru_RU",name:"Русский"}]}},drawioIframeUrl:"",drawioIframeStyle:"border: none;",fileTypeLimitMap:{video:"video/*",audio:"audio/*",image:"image/*",word:".doc,.docx",pdf:".pdf",file:"*"},multipleFileSelection:{video:!1,audio:!1,image:!1,word:!1,pdf:!1,file:!1},callback:{urlProcessor:KJ.urlProcessor,fileUpload:KJ.fileUpload,fileUploadMulti:KJ.fileUploadMulti,beforeImageMounted:KJ.beforeImageMounted,onClickPreview:KJ.onClickPreview,onCopyCode:KJ.onCopyCode,onExpandCode:KJ.onExpandCode,onUnExpandCode:KJ.onUnExpandCode,changeString2Pinyin:KJ.changeString2Pinyin,onPaste:KJ.onPaste,onClickToc:function(e,t){return!0}},event:{afterChange:KJ.afterChange,afterInit:KJ.afterInit,focus:function(e){e.e,e.cherry},blur:function(e){e.e,e.cherry},selectionChange:function(e){e.selections,e.lastSelections,e.info},afterChangeLocale:function(e){},changeMainTheme:function(e){},changeCodeBlockTheme:function(e){}},previewer:{dom:!1,className:"cherry-markdown",isMobilePreview:!1,enablePreviewerBubble:!0,floatWhenClosePreviewer:!1,lazyLoadImg:{loadingImgPath:"",maxNumPerTime:2,noLoadImgNum:5,autoLoadImgNum:5,maxTryTimesPerSrc:2,beforeLoadOneImgCallback:function(e){return!0},failLoadOneImgCallback:function(e){},afterLoadOneImgCallback:function(e){},afterLoadAllImgCallback:function(){}}},nameSpace:"cherry",themeSettings:{themeList:[{className:"default",label:"默认"},{className:"dark",label:"暗黑"},{className:"gray",label:"沉稳"},{className:"abyss",label:"深海"},{className:"green",label:"清新"},{className:"red",label:"热情"},{className:"violet",label:"淡雅"},{className:"blue",label:"清幽"}],mainTheme:"default",codeBlockTheme:"default",inlineCodeTheme:"red"},isPreviewOnly:!1,autoScrollByCursor:!0,forceAppend:!0,locale:"zh_CN",locales:{},autoScrollByHashAfterInit:!1},qJ=WJ(YJ),XJ=function(){return mc(function e(t){var n;ua(this,e),Fu(this,"Events",{previewerClose:"previewerClose",previewerOpen:"previewerOpen",editorClose:"editorClose",editorOpen:"editorOpen",toolbarHide:"toolbarHide",toolbarShow:"toolbarShow",cleanAllSubMenus:"cleanAllSubMenus",afterChange:"afterChange",afterInit:"afterInit",afterAsyncRender:"afterAsyncRender",focus:"focus",blur:"blur",selectionChange:"selectionChange",afterChangeLocale:"afterChangeLocale",changeMainTheme:"changeMainTheme",changeCodeBlockTheme:"changeCodeBlockTheme"}),Fu(this,"emitter",{all:n=n||new Map,on:function(e,t){var r=n.get(e);r?r.push(t):n.set(e,[t])},off:function(e,t){var r=n.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):n.set(e,[]))},emit:function(e,t){var r=n.get(e);r&&r.slice().map(function(e){e(t)}),(r=n.get("*"))&&r.slice().map(function(n){n(e,t)})}}),this.instanceId=t},[{key:"setInstanceId",value:function(e){this.instanceId=e}},{key:"getInstanceId",value:function(){return this.instanceId}},{key:"clearAll",value:function(){this.emitter.all.clear()}},{key:"bindCallbacksByOptions",value:function(e){e.callback.afterChange&&this.on(this.Events.afterChange,function(t){e.callback.afterChange(t.markdownText,t.html)}),e.callback.afterInit&&this.on(this.Events.afterInit,function(t){e.callback.afterInit(t.markdownText,t.html)}),e.callback.afterAsyncRender&&this.on(this.Events.afterAsyncRender,function(t){e.callback.afterAsyncRender(t.markdownText,t.html)}),e.event.afterChange&&this.on(this.Events.afterChange,function(t){e.event.afterChange(t.markdownText,t.html)}),e.event.afterInit&&this.on(this.Events.afterInit,function(t){e.event.afterInit(t.markdownText,t.html)}),e.event.afterAsyncRender&&this.on(this.Events.afterAsyncRender,function(t){e.event.afterAsyncRender(t.markdownText,t.html)}),e.event.focus&&this.on(this.Events.focus,function(t){e.event.focus(t)}),e.event.blur&&this.on(this.Events.blur,function(t){e.event.blur(t)}),e.event.selectionChange&&this.on(this.Events.selectionChange,function(t){e.event.selectionChange(t)}),e.event.afterChangeLocale&&this.on(this.Events.afterChangeLocale,function(t){e.event.afterChangeLocale(t)}),e.event.changeMainTheme&&this.on(this.Events.changeMainTheme,function(t){e.event.changeMainTheme(t)}),e.event.changeCodeBlockTheme&&this.on(this.Events.changeCodeBlockTheme,function(t){e.event.changeCodeBlockTheme(t)})}},{key:"on",value:function(e,t){var n;this.emitter.on(Xu(n="".concat(this.instanceId,":")).call(n,e),t)}},{key:"off",value:function(e,t){var n;this.emitter.off(Xu(n="".concat(this.instanceId,":")).call(n,e),t)}},{key:"emit",value:function(e,t){var n;this.emitter.emit(Xu(n="".concat(this.instanceId,":")).call(n,e),t)}}])}(),JJ={zh_CN:{bold:"加粗",code:"代码",graph:"画图",h1:"一级标题",h2:"二级标题",h3:"三级标题",h4:"四级标题",h5:"五级标题",header:"标题",insert:"插入",italic:"斜体",list:"列表",quickTable:"表格",quote:"引用",size:"大小",color:"文字颜色&背景",strikethrough:"删除线",sub:"下标",sup:"上标",togglePreview:"预览",fullScreen:"全屏",image:"图片",audio:"音频",video:"视频",link:"超链接",hr:"分隔线",br:"换行",toc:"目录",pdf:"pdf",word:"word",table:"表格","line-table":"折线表格","bar-table":"柱状表格","radar-table":"雷达表格","map-table":"地图表格",lineTable:"折线图",barTable:"柱状图",radarTable:"雷达图",mapTable:"地图",heatmapTable:"热力图",sankeyTable:"桑基图",pieTable:"饼图",proTable:"图表",formula:"公式",insertFormula:"公式",insertFlow:"流程图",insertSeq:"时序图",insertState:"状态图",insertClass:"类图",insertPie:"饼图",scatterTable:"散点图",insertGantt:"甘特图",checklist:"清单",ol:"有序列表",ul:"无序列表",undo:"撤销",redo:"恢复",previewClose:"关闭预览",codeTheme:"代码主题",switchModel:"模式切换",switchPreview:"预览",switchEdit:"返回编辑",classicBr:"经典换行",normalBr:"常规换行",settings:"设置",mobilePreview:"移动端预览",copy:"复制内容",export:"导出",underline:"下划线",pinyin:"拼音",file:"文件",pastePlain:"粘贴为纯文本格式",pasteMarkdown:"粘贴为markdown格式",hide:"隐藏工具栏",exportToPdf:"导出PDF",exportScreenshot:"导出长图",exportMarkdownFile:"导出markdown",exportHTMLFile:"导出html",exportWordFile:"导出word",theme:"主题",panel:"面板",detail:"手风琴",heading1:"一级标题",heading2:"二级标题",heading3:"三级标题",complement:"续写",summary:"总结",justify:"对齐方式",justifyLeft:"左对齐",justifyCenter:"居中",justifyRight:"右对齐",align:"对齐方式",alignLeft:"左对齐",alignCenter:"居中",alignRight:"右对齐",alignJustify:"两端对齐",alignFloatLeft:"左浮动",alignFloatRight:"右浮动",publish:"发布",colorPickerText:"文字",colorPickerBackground:"背景",colorPickerClear:"清除颜色",colorPickerRecentColors:"最近使用颜色",colorPickerPresetColors:"系统预设颜色",small:"小",medium:"中",large:"大",superLarge:"特大",detailDefaultContent:"点击展开更多\n内容\n++- 默认展开\n内容\n++ 默认收起\n内容",inlineCode:"行内代码",codeBlock:"代码块",inlineMath:"行内公式",mathBlock:"块级公式",shortcutKeySetting:"快捷键设置",editShortcutKeyConfigTip:"双击快捷键区域或点击编辑按钮编辑快捷键",editingShortcutKeyConfigTip:"按Enter键保存，Backspace键移除新增的键",staticShortcutTip:"内置快捷键不可修改",disabledShortcutTip:"当前快捷键已禁用",wordCount:"字数统计",wordCountP:"段落",wordCountW:"单词",wordCountC:"字符",deleteColumn:"删除列",deleteRow:"删除行",addRow:"添加行",addCol:"添加列",moveRow:"移动行",moveCol:"移动列",shortcutStaticTitle:"以下快捷键无法修改",shortcutStatic1:"整行向左缩进",shortcutStatic2:"整行向右缩进",shortcutStatic3:"复制并粘贴一行",shortcutStatic4:"在下方插入空行",shortcutStatic5:"在上方插入空行",shortcutStatic6:"与上行互换",shortcutStatic7:"与下行互换",shortcutStatic8:"删除一行",shortcutStatic9:"按词语向左选中",shortcutStatic10:"按词语向右选中",shortcutStatic11:"按词语删除",shortcutStatic12:"选中括号内内容",shortcutStatic13:"插入多个光标",shortcutStatic14:"分别选中文本块的每一行",shortcutStatic15:"查找",shortcutStatic16:"选中所有相同的词",shortcutStatic17:"撤销",shortcutStatic18:"回滚撤销",leftMouseButton:"鼠标左键",disableShortcut:"禁用所有快捷键",enableShortcut:"取消禁用快捷键",recoverShortcut:"恢复默认配置",search:"搜索",autoWrap:"自动换行",footnoteTitle:"脚注",searchFor:"查找",replaceWith:"替换为",previousMatch:"查找上一个",nextMatch:"查找下一个",replace:"替换",replaceAll:"全部替换",regExpSearch:"正则表达式搜索",caseSensitiveSearch:"区分大小写搜索",wholeWordSearch:"全字匹配搜索",matchesFoundText:"处匹配",toggleReplace:"展开/收起替换框",close:"关闭",border:"边框",shadow:"阴影",radius:"圆角",customShortcut:"自定义快捷键",staticShortcut:"内置快捷键",edit:"编辑",save:"保存",cancel:"取消",saveAsImage:"保存为图片",mapChartLoading:"正在加载地图数据",mapChartLoadingTip:"如果长时间未显示，请检查网络连接",mapChartError:"地图数据加载失败",mapChartErrorTip:"请检查数据源或网络链接",mapChartRetry:"点击重新加载",chartRenderError:"图表渲染失败",chartLibraryNotLoadedTip:"ECharts 图表库未加载",radarData:"雷达图数据",scatterData:"散点数据",pieData:"数据分布",heatmapData:"热力图数据",mapData:"地图数据",maxValue:"最大值",minValue:"最小值",high:"高",low:"低"},en_US:{bold:"Bold",code:"Code",graph:"Graph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",header:"Header",insert:"Insert",italic:"Italic",list:"List",quickTable:"Quick Table",quote:"Quote",size:"Size",color:"Text Color & Background",strikethrough:"Strikethrough",sub:"Sub",sup:"Sup",togglePreview:"Toggle Preview",fullScreen:"Full Screen",image:"Image",audio:"Audio",video:"Video",link:"Link",hr:"Horizontal Rule",br:"New Line",toc:"Table Of Content",pdf:"PDF",word:"Word",table:"Table","line-table":"Line Table","bar-table":"Bar Table","radar-table":"Radar Table","map-table":"Map Table",lineTable:"Line Table",barTable:"Bar Table",radarTable:"Radar Table",mapTable:"Map Table",heatmapTable:"Heatmap Table",sankeyTable:"Sankey Table",pieTable:"Pie Table",proTable:"Chart",formula:"Formula",insertFormula:"Insert Formula",insertFlow:"Insert Flow",insertSeq:"Insert Seq",insertState:"Insert State",insertClass:"Insert Class",insertPie:"Insert Pie",scatterTable:"Scatter Table",insertGantt:"Insert Gantt",checklist:"Checklist",ol:"Ordered List",ul:"Unordered List",undo:"Undo",redo:"Redo",previewClose:"Preview Close",codeTheme:"Code Theme",switchModel:"Switch Model",switchPreview:"Switch Preview",switchEdit:"Switch Edit",classicBr:"Classic New Line",normalBr:"Normal New Line",settings:"Settings",mobilePreview:"Mobile Preview",copy:"Copy",export:"Export",underline:"Underline",pinyin:"Pinyin",pastePlain:"Paste as Plain Text",pasteMarkdown:"Paste as Markdown",hide:"Hide Toolbar",exportToPdf:"Export to PDF",exportScreenshot:"Screenshot",exportMarkdownFile:"Export Markdown File",exportHTMLFile:"Export preview HTML File",exportWordFile:"Export to Word",heading1:"H1 Heading",heading2:"H2 Heading",heading3:"H3 Heading",panel:"Panel",detail:"Detail",complement:"Complement",summary:"Summary",justify:"justify",justifyLeft:"Left",justifyCenter:"Center",justifyRight:"Right",align:"Align",alignLeft:"Align Left",alignCenter:"Align Center",alignRight:"Align Right",alignJustify:"Align Justify",alignFloatLeft:"Align Float Left",alignFloatRight:"Align Float Right",publish:"Publish",colorPickerText:"Text",colorPickerBackground:"Background",colorPickerClear:"Clear Color",colorPickerRecentColors:"Recent Colors",colorPickerPresetColors:"Preset Colors",small:"Small",medium:"Medium",large:"Large",superLarge:"Super Large",detailDefaultContent:"Click to expand more\nContent\n++- Expand by default\nContent\n++ Collapse by default\nContent",inlineCode:"Inline Code",codeBlock:"Code Block",inlineMath:"Inline Math",mathBlock:"Math Block",shortcutKeySetting:"Keyboard Shortcuts",editShortcutKeyConfigTip:"Double-click the shortcut key area or click the edit button to edit",editingShortcutKeyConfigTip:"Press Enter to save, Backspace to remove the newly added key",staticShortcutTip:"Built-in shortcuts cannot be modified",disabledShortcutTip:"Shortcuts are currently disabled",wordCount:"Word Count",wordCountP:"P",wordCountW:"W",wordCountC:"C",deleteColumn:"delete column",deleteRow:"delete row",addRow:"add row",addCol:"add column",moveRow:"move row",moveCol:"move column",shortcutStaticTitle:"The following shortcuts cannot be modified",shortcutStatic1:"Indent the whole line to the left",shortcutStatic2:"Indent the whole line to the right",shortcutStatic3:"Duplicate and paste a line",shortcutStatic4:"Insert a blank line below",shortcutStatic5:"Insert a blank line above",shortcutStatic6:"Swap with the line above",shortcutStatic7:"Swap with the line below",shortcutStatic8:"Delete a line",shortcutStatic9:"Select to the left by word",shortcutStatic10:"Select to the right by word",shortcutStatic11:"Delete by word",shortcutStatic12:"Select the content inside parentheses",shortcutStatic13:"Insert multiple cursors",shortcutStatic14:"Select each line of the text block separately",shortcutStatic15:"Find",shortcutStatic16:"Select all occurrences of the word",shortcutStatic17:"Undo",shortcutStatic18:"Redo",leftMouseButton:"left mouse button",disableShortcut:"Disable all shortcuts",enableShortcut:"Enable all shortcuts",recoverShortcut:"Restore default configuration",search:"Search",autoWrap:"Auto Wrap",footnoteTitle:"Footnote",searchFor:"Search for",replaceWith:"Replace with",previousMatch:"Previous Match",nextMatch:"Next Match",replace:"Replace",replaceAll:"Replace All",regExpSearch:"RegExp Search",caseSensitiveSearch:"CaseSensitive Search",wholeWordSearch:"Whole Word Search",matchesFoundText:"matches found.",toggleReplace:"Toggle Replace",close:"Close",border:"Border",shadow:"Shadow",radius:"Radius",customShortcut:"Custom Shortcuts",staticShortcut:"Built-in Shortcuts",edit:"Edit",save:"Save",cancel:"Cancel",saveAsImage:"Save as Image",mapChartLoading:"Loading map data",mapChartLoadingTip:"If it takes a long time to load, please check your network connection",mapChartError:"Map data loading failed",mapChartErrorTip:"Please check the data source or network connection",mapChartRetry:"Click to reload",chartRenderError:"Chart render failed",chartLibraryNotLoadedTip:"ECharts chart library not loaded",radarData:"Radar chart data",scatterData:"Scatter data",pieData:"Data distribution",heatmapData:"Heatmap data",mapData:"Map data",maxValue:"Max value",minValue:"Min value",high:"High",low:"Low"},ru_RU:{bold:"Жирный",code:"Код",graph:"График",h1:"Заголовок 1",h2:"Заголовок 2",h3:"Заголовок 3",h4:"Заголовок 4",h5:"Заголовок 5",header:"Заголовок",insert:"Вставить",italic:"Курсив",list:"Лист",quickTable:"Quick Table",quote:"Цитата",size:"Размер",color:"Цвет текста и фон",strikethrough:"Зачеркнуто",sub:"Sub",sup:"Sup",togglePreview:"Переключение предварительного просмотра",fullScreen:"Полноэкранный режим",image:"Изображение",audio:"Аудио",video:"Видео",link:"Ссылка",hr:"Горизонтальная линия",br:"Новая строка",toc:"Таблица содержания",pdf:"PDF",word:"Word",table:"Таблица","line-table":"линия таблица","bar-table":"бар стол","radar-table":"радарный стол","map-table":"таблица карты",lineTable:"линия таблица",barTable:"бар стол",radarTable:"радарный стол",mapTable:"таблица карты",heatmapTable:"таблица тепловой карты",sankeyTable:"Диаграмма Санки",pieTable:"стол для пирога",proTable:"диаграмма",formula:"Формула",insertFormula:"Вставить формулу",insertFlow:"Вставить поток",insertSeq:"Вставить Seq",insertState:"Вставить State",insertClass:"Вставить класс",insertPie:"Вставить Pie",scatterTable:"таблица рассеяния",insertGantt:"Вставить Gantt",checklist:"Контрольный список",ol:"Упорядоченный список",ul:"Неупорядоченный список",undo:"Отменить",redo:"Переделывать",previewClose:"Предварительный просмотр закрыт",codeTheme:"Тема для кода",switchModel:"Модель переключателя",switchPreview:"Переключите предварительный просмотр",switchEdit:"Переключить редактирование",classicBr:"Классическая новая линия",normalBr:"Обычная новая строка",settings:"Настройки",mobilePreview:"Предварительный просмотр на мобильном устройстве",copy:"Копировать",export:"Экспорт",underline:"Подчеркивать",pinyin:"Pinyin",pastePlain:"Вставить в виде обычного текста",pasteMarkdown:"Вставить как Markdown",hide:"Скрыть панель инструментов",exportToPdf:"Экспорт в формат PDF",exportScreenshot:"Скриншот",exportMarkdownFile:"Экспорт файла Markdown",exportHTMLFile:"Экспорт предварительного просмотра HTML-файла",exportWordFile:"Экспорт в Word",panel:"Панель",detail:"Аккордеон",heading1:"H1 Заголовок",heading2:"H2 Заголовок",heading3:"H3 Заголовок",complement:"Дополнение",summary:"Резюме",justify:"объяснить",justifyLeft:"Слева",justifyCenter:"Центр",justifyRight:"Справа",align:"Выравнивание",alignLeft:"Выровнять слева",alignCenter:"В центре",alignRight:"Выровнять вправо",alignJustify:"Выровнять концы",alignFloatLeft:"Выровнять вправо",alignFloatRight:"Выровнять слева",publish:"Публиковать",colorPickerText:"Текст",colorPickerBackground:"Фон",colorPickerClear:"Очистить цвет",colorPickerRecentColors:"Недавние цвета",colorPickerPresetColors:"Предустановленные цвета",small:"Маленький",medium:"Средний",large:"Большой",superLarge:"Очень большой",detailDefaultContent:"Нажмите, чтобы развернуть подробнее\nСодержание\n++- Развернуть по умолчанию\nСодержание\n++ Свернуть по умолчанию\nСодержание",inlineCode:"Встроенный код",codeBlock:"Кодовый блок",inlineMath:"Встроенная формула",mathBlock:"Блочная формула",shortcutKeySetting:"Настройки горячих клавиш",editShortcutKeyConfigTip:"Дважды щёлкните или нажмите Редактировать, чтобы изменить сочетание клавиш.",editingShortcutKeyConfigTip:"Нажмите Enter для сохранения, Backspace для удаления добавленной клавиши",staticShortcutTip:"Встроенные сочетания клавиш нельзя изменить",disabledShortcutTip:"Сочетания клавиш в настоящее время отключены",wordCount:"Количество слов",wordCountP:"P",wordCountW:"W",wordCountC:"C",deleteColumn:"Удалить столбец",deleteRow:"Удалить строку",addRow:"Добавить строку",addCol:"Добавить столбец",moveRow:"Переместить строку",moveCol:"Переместить столбец",shortcutStaticTitle:"Следующие сочетания клавиш не могут быть изменены",shortcutStatic1:"Отступить всю строку влево",shortcutStatic2:"Отступить всю строку вправо",shortcutStatic3:"Скопировать и вставить строку",shortcutStatic4:"Вставить пустую строку ниже",shortcutStatic5:"Вставить пустую строку выше",shortcutStatic6:"Поменять с предыдущей строкой",shortcutStatic7:"Поменять с следующей строкой",shortcutStatic8:"Удалить строку",shortcutStatic9:"Выделить влево по слову",shortcutStatic10:"Выделить вправо по слову",shortcutStatic11:"Удалить по слову",shortcutStatic12:"Выделить содержимое внутри скобок",shortcutStatic13:"Вставить несколько курсоров",shortcutStatic14:"Выделить каждую строку текстового блока отдельно",shortcutStatic15:"Найти",shortcutStatic16:"Выделить все вхождения слова",shortcutStatic17:"Отменить",shortcutStatic18:"Вернуть отмену",leftMouseButton:"левая кнопка мыши",disableShortcut:"Отключить все горячие клавиши",enableShortcut:"Включить горячие клавиши",recoverShortcut:"Восстановить конфигурацию по умолчанию",search:"Поиск",autoWrap:"Автоперенос строк",footnoteTitle:"Сноска",searchFor:"Найти",replaceWith:"Заменить на",previousMatch:"Предыдущее",nextMatch:"Следующее",replace:"Заменить",replaceAll:"Заменить всё",regExpSearch:"Регулярное выражение",caseSensitiveSearch:"С учётом регистра",wholeWordSearch:"Целое слово",matchesFoundText:"совпадений найдено.",toggleReplace:"Показать замену",close:"Закрыть",border:"Рамка",shadow:"Тень",radius:"Скругление",customShortcut:"Пользовательские горячие клавиши",staticShortcut:"Встроенные горячие клавиши",edit:"Редактировать",save:"Сохранить",cancel:"Отмена",saveAsImage:"Сохранить как изображение",mapChartLoading:"Загрузка данных карты",mapChartLoadingTip:"Если загрузка занимает много времени, пожалуйста, проверьте подключение к интернету",mapChartError:"Ошибка загрузки данных карты",mapChartErrorTip:"Пожалуйста, проверьте источник данных или подключение к интернету",mapChartRetry:"Нажмите, чтобы перезагрузить",chartRenderError:"Ошибка рендеринга графика",chartLibraryNotLoadedTip:"Библиотека ECharts не загружена",radarData:"Данные радара",scatterData:"Данные скаттера",pieData:"Распределение данных",heatmapData:"Данные тепловой карты",mapData:"Картографические данные",maxValue:"Максимальное значение",minValue:"Минимальное значение",high:"Высокий",low:"Низкий"}};function ZJ(e,t,n){return t=wu(t),Ac(e,eZ()?pr(t,n||[],wu(e).constructor):t.apply(e,n))}function eZ(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(eZ=function(){return!!e})()}function tZ(e,t,n,r){var i=LR(wu(e.prototype),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function nZ(e,t,n){if("object"!==ql(e)||!e)throw TypeError("first argument must be a object, but get ".concat(ql(e)));var r;return QC(n)||"object"!==ql(n)||null===n||"object"!==ql(e[t])||null===e[t]?"string"==typeof n&&ql(e[t])===n||"function"==typeof n&&e[t]instanceof n||!!QC(n)&&OB(n).call(n,function(n){return nZ(e,t,n)}):LK(r=$h(e[t])).call(r,function(r){return nZ(e[t],r,n[r])})}function rZ(e,t,n){var r,i={};return gf(r=$h(e)).call(r,function(r){-1!==yx(t).call(t,r)&&("object"===ql(n)?nZ(e,r,n[r])&&(i[r]=e[r]):"string"==typeof n&&ql(e[r])===n&&(i[r]=e[r]))}),i}var iZ,oZ,aZ,sZ,lZ,cZ,uZ,dZ={};function hZ(){return aZ?oZ:(aZ=1,function(){if(iZ)return dZ;iZ=1;var e=sn(),t=Ex();e({target:"Number",stat:!0,forced:Number.parseInt!==t},{parseInt:t})}(),oZ=Me().Number.parseInt)}function fZ(){return lZ?sZ:(lZ=1,sZ=hZ())}var pZ=i(uZ?cZ:(uZ=1,cZ=fZ()));function gZ(e,t){var n=void 0!==HC&&UC(e)||e["@@iterator"];if(!n){if(QC(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return mZ(e,t);var r=_x(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u_(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mZ(e,t):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function mZ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function vZ(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(vZ=function(){return!!e})()}var AZ=function(){function e(){var t,n,r,i;return ua(this,e),n=this,i=[{needCache:!0}],r=wu(r=e),(t=Ac(n,vZ()?pr(r,i||[],wu(n).constructor):r.apply(n,i))).cacheMap={},t.sentenceMakeFunc=null,t}return Pu(e,aO),mc(e,[{key:"$nextTdKey",value:function(e){return e.replace(/^([0-9]+)-([0-9]+)$/,function(e,t,n){var r;return Xu(r="".concat(t,"-")).call(r,pZ(n,10)+1)})}},{key:"$prevTdKey",value:function(e){return e.replace(/^([0-9]+)-([0-9]+)$/,function(e,t,n){var r;return Xu(r="".concat(t,"-")).call(r,pZ(n,10)-1)})}},{key:"$nextTrKey",value:function(e){return e.replace(/^([0-9]+)-([0-9]+)$/,function(e,t,n){var r;return Xu(r="".concat(pZ(t,10)+1,"-")).call(r,n)})}},{key:"$prevTrKey",value:function(e){return e.replace(/^([0-9]+)-([0-9]+)$/,function(e,t,n){var r;return Xu(r="".concat(pZ(t,10)-1,"-")).call(r,n)})}},{key:"$setColMapVal",value:function(e,t){if(void 0===e[t])return e[t]=[1,2],e[this.$nextTdKey(t)]=[1,-1],e;if(-1===e[t][1]){var n=this.$prevTdKey(t);return e[this.$nextTdKey(t)]=[1,-1],this.$setColMapVal(e,n)}return e[t][1]+=1,e}},{key:"$setRowMapVal",value:function(e,t){if(void 0===e[t])return e[t]=[2,1],e[this.$nextTrKey(t)]=[-1,1],e;var n=this.$nextTrKey(t);if(e[n]=void 0===e[n]?[1,1]:e[n],e[t][1]!==e[n][1])return e;if(1===e[t][0])return e[t][0]=2,e[n][0]=-1,e;if(-1===e[t][0]){var r=this.$prevTrKey(t);return e[n][0]=-1,this.$setRowMapVal(e,r)}return e[t][0]+=1,e}},{key:"$dealColSpan",value:function(e,t,n,r){var i,o,a=pZ(t,10)+1,s=!!n[a]&&c_(i=n[a]).call(i),l=c_(o=n[t]).call(o),c=this.$getSpanKey(e,t);return l===s?this.$setColMapVal(r,c):r}},{key:"$dealRowSpan",value:function(e,t,n,r){var i,o,a=pZ(e,10)+1,s=!(!n[a]||!n[a][t])&&c_(i=n[a][t]).call(i),l=c_(o=n[e][t]).call(o),c=this.$getSpanKey(e,t);return l===s?this.$setRowMapVal(r,c):r}},{key:"$getSpanKey",value:function(e,t){var n;return Xu(n="".concat(e,"-")).call(n,t)}},{key:"$getColAndRowSpanMap",value:function(e){var t,n={},r=gZ(GT(e).call(e));try{for(r.s();!(t=r.n()).done;){var i,o=t.value,a=e[o],s=gZ(GT(a).call(a));try{for(s.s();!(i=s.n()).done;){var l=i.value;n=this.$dealColSpan(o,l,a,n)}}catch(e){s.e(e)}finally{s.f()}}}catch(e){r.e(e)}finally{r.f()}var c,u=gZ(GT(e).call(e));try{for(u.s();!(c=u.n()).done;){var d,h=c.value,f=e[h],p=gZ(GT(f).call(f));try{for(p.s();!(d=p.n()).done;){var g=d.value;n=this.$dealRowSpan(h,g,e,n)}}catch(e){p.e(e)}finally{p.f()}}}catch(e){u.e(e)}finally{u.f()}return n}},{key:"$convertTrsString2Array",value:function(e){var t=[];if(!e)return e;var n,r=gZ(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.length>0&&t.push(i.replace(/^\|{2,3}/,"").replace(/\|\|\s*$/,"").split("||"))}}catch(e){r.e(e)}finally{r.f()}return t}},{key:"$isMeerged",value:function(e,t){return!!e[t]&&(e[t][0]<0||e[t][1]<0)}},{key:"$getTdSpan",value:function(e,t){var n;return void 0!==e[t]?Xu(n='rowspan="'.concat(e[t][0],'" colspan="')).call(n,e[t][1],'"'):""}},{key:"$dealTh",value:function(e){var t,n=/^\s*~T/.test(e),r=/~T\s*$/.test(e),i={style:"",content:""};return n&&r?i.align='align="center"':r?i.align='align="right"':n&&(i.align='align="left"'),i.content=c_(t=e.replace(/^\s*~T/,"").replace(/~T\s*$/,"")).call(t),i}},{key:"makeHtml",value:function(e,t){var n=this;return e.replace(/(^|\n)\s*?((?:\|\|[^\n]+(?:$|\n))+)/g,function(e,r,i){var o,a,s,l=n.$engine.md5(i),c=i.match(/\n/g).length,u=/^\|\|\|/.test(i),d=/\|{2,3}\s*~T/.test(i)||/~T\s*\|\|/.test(i),h=i.split(/\n/),f="",p=[],g=[];if(d&&h[0]){f="<thead><tr>";var m,v=gZ(h[0].replace(/^\|{2,3}/,"").replace(/\|\|\s*$/,"").split("||"));try{for(v.s();!(m=v.n()).done;){var A,b=m.value,y=n.$dealTh(b);g.push(y.align),f+=Xu(A="<th ".concat(y.align,">")).call(A,t(y.content).html,"</th>")}}catch(e){v.e(e)}finally{v.f()}f+="</tr></thead>",h.shift()}h=n.$convertTrsString2Array(h);var w,_=u?n.$getColAndRowSpanMap(h):{},x=gZ(GT(h).call(h));try{for(x.s();!(w=x.n()).done;){var E,S=w.value,C=h[S],T="<tr>",k=gZ(GT(C).call(C));try{for(k.s();!(E=k.n()).done;){var O,M,I=E.value,D=n.$getSpanKey(S,I),N=C[I];n.$isMeerged(_,D)||(T+=Xu(O=Xu(M="<td ".concat(g[I]?g[I]:""," ")).call(M,n.$getTdSpan(_,D),">")).call(O,t(c_(N).call(N)).html,"</td>"))}}catch(e){k.e(e)}finally{k.f()}T+="</tr>",p.push(T)}}catch(e){x.e(e)}finally{x.f()}var R=Xu(o=Xu(a='<div class="cherry-table-container simple-table" data-lines="'.concat(c,'" data-sign="')).call(a,l,'">\n        <table class="cherry-table">')).call(o,f+p.join(""),"</table></div>");return Xu(s="".concat(r)).call(s,n.pushCache(R,l))})}},{key:"rule",value:function(){return{}}}])}();function bZ(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(bZ=function(){return!!e})()}Fu(AZ,"HOOK_NAME","tapdTable");var yZ=function(){function e(){return ua(this,e),t=this,r=[{needCache:!0}],n=wu(n=e),Ac(t,bZ()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,aO),mc(e,[{key:"makeHtml",value:function(e,t){var n=this;return e.replace(this.RULE.reg,function(e){var r,i,o=e.split(/[\r\n]/).length,a=e.replace("[html]","").replace("[/html]","").replace(/[\r\n]/g,"").replace(/&#60;/g,"<").replace(/&#62;/g,">").replace('style="LAYOUT-GRID','style="');a=n._trimScripTag(a);var s=t(a);return Xu(r=Xu(i='<div data-lines="'.concat(o,'" data-sign="')).call(i,s.sign,'">')).call(r,a,"</div>")})}},{key:"rule",value:function(){return{reg:/\[html\]([\s\S]*?)\[\/html\]/g}}},{key:"_trimScripTag",value:function(e){return e.replace(/(<(?:script|script\s[^>]*)>)([\s\S]*?)(<\/script>)/gi,"").replace(/(<iframe [^>]*>)|(<\/iframe>)/gi,"")}}])}();function wZ(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(wZ=function(){return!!e})()}Fu(yZ,"HOOK_NAME","tapdHtmlTag");var _Z=function(){function e(){return ua(this,e),t=this,r=[{needCache:!0}],n=wu(n=e),Ac(t,wZ()?pr(n,r||[],wu(t).constructor):n.apply(t,r));var t,n,r}return Pu(e,aO),mc(e,[{key:"makeHtml",value:function(e){return e}},{key:"afterMakeHtml",value:function(e){return e.replace(/\[[\s|x]\]/g,function(e){return yx(e).call(e,"x")>-1?' <span class="ch-icon ch-icon-check"></span> ':' <span class="ch-icon ch-icon-square"></span> '})}},{key:"rule",value:function(){return{}}}])}();Fu(_Z,"HOOK_NAME","tapdCheckList");var xZ={HOOKS_TYPE_LIST:mk},EZ={TapdTablePlugin:AZ,TapdHtmlTagPlugin:yZ,TapdCheckListPlugin:_Z},SZ=[];mL()||gf(SZ).call(SZ,function(e){delete EZ[e]});var CZ=function(){function e(){ua(this,e)}return mc(e,null,[{key:"usePlugin",value:function(t){var n;if(this===e)throw new Error("`usePlugin` is not allowed to called through CherryStatic class.");if(this.initialized)throw new Error("The function `usePlugin` should be called before Cherry is instantiated.");if(!0!==t.$cherry$mounted){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];t.install.apply(t,Xu(n=[this.config.defaults]).call(n,i)),t.$cherry$mounted=!0}}}])}();function TZ(e,t){var n=$h(e);if(Xi){var r=Xi(e);t&&(r=uo(r).call(r,function(t){return To(e,t).enumerable})),n.push.apply(n,r)}return n}function kZ(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?gf(n=TZ(Object(i),!0)).call(n,function(t){Fu(e,t,i[t])}):$o?Xo(e,$o(i)):gf(r=TZ(Object(i))).call(r,function(t){ca(e,t,To(i,t))})}return e}function OZ(){try{var e=!Boolean.prototype.valueOf.call(pr(Boolean,[],function(){}))}catch(e){}return(OZ=function(){return!!e})()}Fu(CZ,"createSyntaxHook",function(e,t,n){var r,i=t===mk.PAR?aO:vk,o=rZ(n,["beforeMakeHtml","makeHtml","afterMakeHtml","rule","test"],"function"),a={needCache:n.needCache,defaultCache:n.defaultCache};return r=function(e){function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ua(this,n),(e=t===mk.PAR?ZJ(this,n,[{needCache:!!a.needCache,defaultCache:a.defaultCache}]):ZJ(this,n)).config=r.config,vc(e)}return Pu(n,e),mc(n,[{key:"beforeMakeHtml",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o.beforeMakeHtml?o.beforeMakeHtml.apply(this,t):tZ(n,"beforeMakeHtml",this,3)(t)}},{key:"makeHtml",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o.makeHtml?o.makeHtml.apply(this,t):tZ(n,"makeHtml",this,3)(t)}},{key:"afterMakeHtml",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o.afterMakeHtml?o.afterMakeHtml.apply(this,t):tZ(n,"afterMakeHtml",this,3)(t)}},{key:"test",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o.test?o.test.apply(this,t):tZ(n,"test",this,3)(t)}},{key:"rule",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return o.rule?o.rule.apply(this,t):tZ(n,"rule",this,3)(t)}}])}(i),Fu(r,"HOOK_NAME",e),r}),Fu(CZ,"createMenuHook",function(e,t){var n=rZ(t,["subMenuConfig","onClick","shortcutKeys","iconName","icon"],{subMenuConfig:Array,onClick:"function",shortcutKeys:Array,iconName:"string",icon:["string",{type:"string",content:"string",iconStyle:["string","undefined"],iconClassName:["string","undefined"]}]});return function(){function t(r){var i;return ua(this,t),i=ZJ(this,t,[r]),n.iconName||n.icon||(i.noIcon=!0),n.icon?(i.$currentMenuOptions.icon=n.icon,i.name=e):i.setName(e,n.iconName),i.subMenuConfig=n.subMenuConfig||[],i}return Pu(t,nV),mc(t,[{key:"onClick",value:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return n.onClick?n.onClick.apply(this,r):tZ(t,"onClick",this,3)(r)}},{key:"shortcutKeys",get:function(){return console.warn("shortcutKeys will deprecated in the future, please use shortcutKeyMap instead, get more info at https://github.com/Tencent/cherry-markdown/wiki"),n.shortcutKeys?n.shortcutKeys:[]}}])}()}),Fu(CZ,"constants",xZ),Fu(CZ,"plugins",EZ),Fu(CZ,"VERSION","0.10.3");var MZ=function(){function e(t){var n,r,i,o,a;ua(this,e),i=this,o=wu(o=e),Fu(r=Ac(i,OZ()?pr(o,[],wu(i).constructor):o.apply(i,a)),"handleFloatPreviewerMouseDown",function(e){e.target===r.floatPreviewerHeaderDom&&(e.preventDefault(),r.floatPreviewerInitOffsetX=e.offsetX,r.floatPreviewerInitOffsetY=e.offsetY,r.floatPreviewerWrapDom.classList.add("float-previewer-dragging"))}),Fu(r,"handleFloatPreviewerMouseMove",function(e){if(r.floatPreviewerWrapDom.classList.contains("float-previewer-dragging")){e.preventDefault();var t=e.clientX,n=e.clientY,i=t-r.floatPreviewerInitOffsetX,o=n-r.floatPreviewerInitOffsetY;i<0&&(i=0),o<0&&(o=0),i+r.floatPreviewerWrapDom.offsetWidth>r.pageWidth&&(i=r.pageWidth-r.floatPreviewerWrapDom.offsetWidth),o+r.floatPreviewerWrapDom.offsetHeight>r.pageHeight&&(o=r.pageHeight-r.floatPreviewerWrapDom.offsetHeight),requestAnimationFrame(function(){r.floatPreviewerWrapDom.style.left="".concat(i,"px"),r.floatPreviewerWrapDom.style.top="".concat(o,"px")})}}),Fu(r,"handleFloatPreviewerMouseUp",function(e){r.floatPreviewerWrapDom.classList.remove("float-previewer-dragging")}),e.initialized=!0;var s=WJ(e.config.defaults);return r.defaultToolbar=s.toolbars.toolbar,wI(t,Object),r.options=cA({},s,t,yk),r.searchBoxInstance=null,r.searchBoxInit=!1,r.storageFloatPreviewerWrapData={x:50,y:58,width:800,height:500},r.locales=JJ,r.options.locales&&(r.locales=kZ(kZ({},r.options.locales),r.locales)),r.locale=r.locales[r.options.locale],"function"==typeof r.options.engine.global.urlProcessor?(r.options.engine.global.urlProcessor=qN(r.options.engine.global.urlProcessor),r.options.callback.urlProcessor=r.options.engine.global.urlProcessor):r.options.callback.urlProcessor=qN(r.options.callback.urlProcessor),r.status={toolbar:"show",previewer:"show",editor:"show"},(r.options.isPreviewOnly||"previewOnly"===r.options.editor.defaultModel)&&(r.options.toolbars.showToolbar=!1,r.options.editor.defaultModel="previewOnly",r.status.editor="hide",r.status.toolbar="hide"),r.instanceId=Xu(n="cherry-".concat((new Date).getTime())).call(n,Math.random()),r.options.instanceId=r.instanceId,r.lastMarkdownText="",r.$event=new XJ(r.instanceId),"default"===r.options.engine.global.flowSessionCursor&&(r.options.engine.global.flowSessionCursor='<span class="cherry-flow-session-cursor"></span>'),r.engine=new EU(r.options,r),r.init(),r}return Pu(e,CZ),mc(e,[{key:"init",value:function(){var e,t=this;this.storeDocumentScroll();var n=this.options.id?document.getElementById(this.options.id):this.options.el;if(!n){if(!this.options.forceAppend)return!1;this.noMountEl=!0,(n=document.createElement("div")).id=this.options.id||"cherry-markdown",document.body.appendChild(n)}n.style.height||(n.style.height=this.options.editor.height),this.cherryDom=n,"string"==typeof this.options.themeNameSpace?this.nameSpace=this.options.themeNameSpace:this.nameSpace=this.options.nameSpace;var r=this.createWrapper(),i=this.createEditor(),o=this.createPreviewer();!1!==this.options.toolbars.showToolbar&&!1!==this.options.toolbars.toolbar||(r.classList.add("cherry--no-toolbar"),this.options.toolbars.toolbar=this.options.toolbars.toolbar?this.options.toolbars.toolbar:this.defaultToolbar),wI(this.options.toolbars.toolbar,Array),this.createToolbar(),this.createToolbarRight();var a,s=document.createDocumentFragment();s.appendChild(this.toolbar.options.dom),s.appendChild(i.options.editorDom),this.options.previewer.dom||s.appendChild(o.options.previewerDom),s.appendChild(o.options.virtualDragLineDom),s.appendChild(o.options.editorMaskDom),s.appendChild(o.options.previewerMaskDom),r.appendChild(s),this.wrapperDom=r,this.createSidebar(),this.createHiddenToolbar(),n.appendChild(r),this.$event.bindCallbacksByOptions(this.options),i.init(o),this.createBubble(),this.createFloatMenu(),o.init(i),o.registerAfterUpdate(Ju(e=this.engine.mounted).call(e,this.engine)),this.initText(i.editor),this.$event.on("toolbarHide",function(){t.status.toolbar="hide"}),this.$event.on("toolbarShow",function(){t.status.toolbar="show"}),this.$event.on("previewerClose",function(){t.status.previewer="hide"}),this.$event.on("previewerOpen",function(){t.status.previewer="show"}),this.$event.on("editorClose",function(){t.status.editor="hide",t.previewer.highlightLine(0)}),this.$event.on("editorOpen",function(){t.status.editor="show"}),this.$event.on("editor.size.change",function(){var e=t.toolbar.options.dom.offsetHeight;t.wrapperDom.style.setProperty("--height-toolbar","".concat(e,"px"))}),this.switchModel(this.options.editor.defaultModel,this.options.toolbars.showToolbar),this.options.autoScrollByHashAfterInit&&_d(Ju(a=this.scrollByHash).call(a,this)),this.createToc(),this.restoreDocumentScroll()}},{key:"storeDocumentScroll",value:function(){this.options.editor.keepDocumentScrollAfterInit&&(this.needRestoreDocumentScroll=!0,this.documentElementScrollTop=document.documentElement.scrollTop,this.documentElementScrollLeft=document.documentElement.scrollLeft)}},{key:"restoreDocumentScroll",value:function(){this.options.editor.keepDocumentScrollAfterInit&&this.needRestoreDocumentScroll&&(this.needRestoreDocumentScroll=!1,window.scrollTo(this.documentElementScrollLeft,this.documentElementScrollTop))}},{key:"destroy",value:function(){this.noMountEl?this.cherryDom.remove():this.wrapperDom.remove(),this.$event.clearAll()}},{key:"on",value:function(e,t){if(this.$event.Events[e])return/^(afterInit|afterChange)$/.test(e)?this.$event.on(e,function(e){t(e.markdownText,e.html)}):this.$event.on(e,t);"urlProcessor"===e?this.options.callback.urlProcessor=qN(t):this.options.callback[e]=t}},{key:"off",value:function(e,t){if(this.$event.Events[e])return this.$event.off(e,t);this.options.callback[e]=function(){}}},{key:"createToc",value:function(){var e,t,n,r,i;!1!==this.options.toolbars.toc?this.toc=new fX({$cherry:this,updateLocationHash:null===(e=this.options.toolbars.toc.updateLocationHash)||void 0===e||e,position:null!==(t=this.options.toolbars.toc.position)&&void 0!==t?t:"absolute",cssText:null!==(n=this.options.toolbars.toc.cssText)&&void 0!==n?n:"",defaultModel:null!==(r=this.options.toolbars.toc.defaultModel)&&void 0!==r?r:"pure",showAutoNumber:null!==(i=this.options.toolbars.toc.showAutoNumber)&&void 0!==i&&i}):this.toc=!1}},{key:"scrollByHash",value:function(){if(location.hash)try{var e=location.hash,t=document.getElementById(e.replace("#",""));t&&this.previewer.getDomContainer().contains(t)&&(location.hash="",location.hash=e)}catch(e){}}},{key:"$t",value:function(e){return this.locale[e]?this.locale[e]:e}},{key:"addLocale",value:function(e,t){this.locale[e]=t}},{key:"addLocales",value:function(e){this.locale=Md(this.locale,e)}},{key:"getLocales",value:function(){return this.locale}},{key:"switchModel",value:function(){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"edit&preview"){case"edit&preview":this.previewer&&(this.previewer.editOnly(),this.previewer.recoverPreviewer()),this.toolbar&&e&&this.toolbar.showToolbar(),e?this.wrapperDom.classList.remove("cherry--no-toolbar"):this.wrapperDom.classList.add("cherry--no-toolbar");break;case"editOnly":this.previewer.isPreviewerHidden()||this.previewer.editOnly(),this.toolbar&&e&&this.toolbar.showToolbar(),e?this.wrapperDom.classList.remove("cherry--no-toolbar"):this.wrapperDom.classList.add("cherry--no-toolbar");break;case"previewOnly":this.previewer.previewOnly(),this.toolbar&&this.toolbar.previewOnly(),this.wrapperDom.classList.add("cherry--no-toolbar")}}},{key:"getInstanceId",value:function(){return this.instanceId}},{key:"getStatus",value:function(){return this.status}},{key:"getValue",value:function(){return this.editor.editor.getValue()}},{key:"getMarkdown",value:function(){return this.getValue()}},{key:"getCodeMirror",value:function(){return this.editor.editor}},{key:"getHtml",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.previewer.getValue(e)}},{key:"getPreviewer",value:function(){return this.previewer}},{key:"getToc",value:function(){var e=this.getHtml(),t=[];return e.replace(/<h([1-6])([^>]*?) id="([^"]+?)"[^>]*?>(.+?)<\/h[0-6]>/g,function(e,n,r,i,o){var a=uh(r).call(r,'data-in-blockquote="true"');return t.push({level:+n,id:i,text:o.replace(/<a .+?<\/a>/,""),isInBlockquote:a}),e}),t}},{key:"setValue",value:function(e){!1===(arguments.length>1&&void 0!==arguments[1]&&arguments[1])&&this.editor.editor.setValue(e);var t=this.editor.editor.getScrollInfo().top,n=this.editor.editor,r=this.getValue(),i=function(e,t,n){for(var r=IJ(t,n),i=e,o=e,a=0;a<r.length;a++){var s=r[a];if(o<=0)return i;var l=s[0],c=s[1].length;switch(l){case IJ.EQUAL:if(o<=c)return i;o-=c;break;case IJ.DELETE:if(o<=c)return i-c+o;o-=c,i-=c;break;case IJ.INSERT:i+=c}}return i}(n.getDoc().indexFromPos(n.getCursor()),r,e);n.setValue(e);var o=n.getDoc().posFromIndex(i);n.setCursor(o),this.editor.dealSpecialWords(),this.editor.editor.scrollTo(null,t)}},{key:"insert",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];n&&this.editor.editor.setSelection({line:n[0],ch:n[1]},{line:n[0],ch:n[1]}),this.editor.editor.replaceSelection(e,t?"around":"end"),r&&this.editor.editor.focus()}},{key:"insertValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return this.insert(e,t,n,r)}},{key:"refreshPreviewer",value:function(){try{var e=this.getValue(),t=this.engine.makeHtml(e);this.previewer.refresh(t)}catch(e){throw new EI(e)}}},{key:"setMarkdown",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.setValue(e,t)}},{key:"createWrapper",value:function(){var e="",t="",n="";if(xk(this.nameSpace,"theme"))e=Ek(!0,this.nameSpace);else{var r;e=(e=this.options.themeSettings.mainTheme).replace(/theme__/g,"");var i=_h(r=this.options.themeSettings.themeList).call(r,function(e){return e.className});uh(i).call(i,e)||(jC.log('主题 "'.concat(e,'" 不在可用主题列表中，已切换为默认主题')),e="default"),e="theme__".concat(e)}t="string"==typeof this.options.engine.syntax.inlineCode.theme?"black"===this.options.engine.syntax.inlineCode.theme?"black":"red":"black"===this.options.themeSettings.inlineCodeTheme?"black":"red",n="string"==typeof this.options.engine.syntax.codeBlock.theme?this.options.engine.syntax.codeBlock.theme:this.options.themeSettings.codeBlockTheme,xk(this.nameSpace,"codeTheme")&&(n=Ck(this.nameSpace)),"dark"===n?n="tomorrow-night":"light"===n&&(n="solarized-light");var o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cherry",t=arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?"nowrap":"wrap";if("undefined"!=typeof localStorage){var n=localStorage.getItem("".concat(e,"-codeWrap"));n&&(t=n)}return t}(this.nameSpace,this.options.engine.syntax.codeBlock.wrap),a=OC("div",["cherry","clearfix",e].join(" "),{"data-inlineCodeTheme":t,"data-codeBlockTheme":n,"data-codeWrap":"wrap"===o?"wrap":"nowrap"});return this.wrapperDom=a,a}},{key:"getCodeWrap",value:function(){return this.wrapperDom.dataset.codeWrap||"wrap"}},{key:"setCodeWrap",value:function(e){this.wrapperDom.dataset.codeWrap="wrap"===e?"wrap":"nowrap",function(e,t){"undefined"!=typeof localStorage&&localStorage.setItem("".concat(e,"-codeWrap"),t)}(this.nameSpace,e)}},{key:"createToolbar",value:function(){if(!this.toolbarContainer){var e=OC("div","cherry-toolbar");this.toolbarContainer=e}return this.options.toolbars.shortcutKey&&$h(this.options.toolbars.shortcutKey).length>0&&jC.warn("options.shortcutKey is deprecated, please use shortcutKeySettings.shortcutKeyMap instead, get more info at https://github.com/Tencent/cherry-markdown/wiki"),this.toolbar=new Bq({dom:this.toolbarContainer,$cherry:this,buttonConfig:this.options.toolbars.toolbar,customMenu:this.options.toolbars.customMenu}),this.toolbar}},{key:"resetToolbar",value:function(e,t){var n;return!1!==(!!/(toolbar|toolbarRight|sidebar|bubble|float|toc)/.test(e)&&e)&&(this.toolbarContainer&&(this.toolbarContainer.innerHTML=""),this.toolbarFloatContainer&&(this.toolbarFloatContainer.innerHTML=""),this.toolbarBubbleContainer&&(this.toolbarBubbleContainer.innerHTML=""),this.sidebarDom&&(this.sidebarDom.innerHTML=""),this.toc&&this.toc.tocDom.remove(),gf(n=this.cherryDom.querySelectorAll(".cherry-dropdown")).call(n,function(e){e.remove()}),this.options.toolbars[e]=t,this.createToolbar(),this.createToolbarRight(),this.createBubble(),this.createFloatMenu(),this.createSidebar(),this.createHiddenToolbar(),this.createToc(),!0)}},{key:"createToolbarRight",value:function(){return this.toolbarRight=new hX({dom:this.toolbarContainer,$cherry:this,buttonConfig:this.options.toolbars.toolbarRight,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.toolbarRight),this.toolbarRight}},{key:"createSidebar",value:function(){if(this.options.toolbars.sidebar){wI(this.options.toolbars.sidebar,Array);var e=!1;if(!this.sidebarDom){e=!0;var t="dark"===this.options.toolbars.theme?"dark":"",n=OC("div","cherry-sidebar ".concat(t));this.sidebarDom=n}this.sidebar=new gX({dom:this.sidebarDom,$cherry:this,buttonConfig:this.options.toolbars.sidebar,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.sidebar),!0===e&&this.wrapperDom.appendChild(this.sidebarDom)}}},{key:"createHiddenToolbar",value:function(){this.options.toolbars.hiddenToolbar&&(wI(this.options.toolbars.hiddenToolbar,Array),this.hiddenToolbar=new OJ({$cherry:this,buttonConfig:this.options.toolbars.hiddenToolbar,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.hiddenToolbar))}},{key:"createFloatMenu",value:function(){if(this.options.toolbars.float){if(!this.toolbarFloatContainer){var e=OC("div","cherry-floatmenu");this.toolbarFloatContainer=e}wI(this.options.toolbars.float,Array),this.floatMenu=new uX({dom:this.toolbarFloatContainer,$cherry:this,buttonConfig:this.options.toolbars.float,customMenu:this.options.toolbars.customMenu}),this.toolbar.collectMenuInfo(this.floatMenu)}}},{key:"createBubble",value:function(){if(this.options.toolbars.bubble){if(!this.toolbarBubbleContainer){var e=OC("div","cherry-bubble");this.toolbarBubbleContainer=e}wI(this.options.toolbars.bubble,Array),this.bubble=new Fq({dom:this.toolbarBubbleContainer,$cherry:this,buttonConfig:this.options.toolbars.bubble,customMenu:this.options.toolbars.customMenu,engine:this.engine}),this.toolbar.collectMenuInfo(this.bubble)}}},{key:"createEditor",value:function(){var e,t,n,r,i=OC("textarea","",{id:null!==(e=this.options.editor.id)&&void 0!==e?e:"code",name:null!==(t=this.options.editor.name)&&void 0!==t?t:"code"});i.textContent=this.options.value;var o=OC("div","cherry-editor");return o.appendChild(i),"function"==typeof this.options.fileUpload&&(this.options.callback.fileUpload=this.options.fileUpload),this.editor=new NT(kZ({$cherry:this,editorDom:o,wrapperDom:this.wrapperDom,value:this.options.value,onKeydown:Ju(n=this.fireShortcutKey).call(n,this),onChange:Ju(r=this.editText).call(r,this),toolbars:this.options.toolbars,autoScrollByCursor:this.options.autoScrollByCursor},this.options.editor)),this.editor}},{key:"createPreviewer",value:function(){var e,t="autonumber"===(this.options.engine.syntax.header&&this.options.engine.syntax.header.anchorStyle||"default")?" head-num":"",n=this.options.previewer,r=n.className,i=n.dom,o=n.enablePreviewerBubble,a=n.floatWhenClosePreviewer,s=["cherry-previewer cherry-markdown",r||"",t,xk(this.nameSpace,"theme")?Ek(!0,this.nameSpace):this.options.themeSettings.mainTheme].join(" ");i?(e=i).className+=" ".concat(s):e=OC("div",s);var l=OC("div","cherry-drag"),c=OC("div","cherry-editor-mask"),u=OC("div","cherry-previewer-mask");return this.previewer=new eV({$cherry:this,virtualDragLineDom:l,editorMaskDom:c,previewerMaskDom:u,previewerDom:e,value:this.options.value,isPreviewOnly:this.options.isPreviewOnly,enablePreviewerBubble:o,floatWhenClosePreviewer:a,lazyLoadImg:this.options.previewer.lazyLoadImg}),this.previewer}},{key:"clearFloatPreviewer",value:function(){this.wrapperDom.appendChild(this.previewer.getDom()),this.storageFloatPreviewerWrapData={x:this.floatPreviewerWrapDom.offsetLeft,y:this.floatPreviewerWrapDom.offsetTop,height:this.floatPreviewerWrapDom.offsetHeight,width:this.floatPreviewerWrapDom.offsetWidth},this.floatPreviewerWrapDom.remove(),this.removeFloatPreviewerListener()}},{key:"createFloatPreviewerListener",value:function(){document.addEventListener("mousedown",this.handleFloatPreviewerMouseDown),document.addEventListener("mousemove",this.handleFloatPreviewerMouseMove),document.addEventListener("mouseup",this.handleFloatPreviewerMouseUp)}},{key:"removeFloatPreviewerListener",value:function(){document.removeEventListener("mousedown",this.handleFloatPreviewerMouseDown),document.removeEventListener("mousemove",this.handleFloatPreviewerMouseMove),document.removeEventListener("mouseup",this.handleFloatPreviewerMouseUp)}},{key:"createFloatPreviewer",value:function(){var e=OC("div","float-previewer-wrap"),t=OC("div","float-previewer-header"),n=OC("div","float-previewer-title");n.innerHTML="预览",e.style.left="".concat(this.storageFloatPreviewerWrapData.x,"px"),e.style.top="".concat(this.storageFloatPreviewerWrapData.y,"px"),e.style.height="".concat(this.storageFloatPreviewerWrapData.height,"px"),e.style.width="".concat(this.storageFloatPreviewerWrapData.width,"px"),t.appendChild(n),e.appendChild(t),e.appendChild(this.previewer.getDom()),this.wrapperDom.appendChild(e),this.floatPreviewerHeaderDom=t,this.floatPreviewerWrapDom=e,this.pageWidth=document.body.clientWidth,this.pageHeight=document.body.clientHeight,this.createFloatPreviewerListener()}},{key:"initText",value:function(e){try{var t=e.getValue();this.lastMarkdownText=t;var n=this.engine.makeHtml(t);"editOnly"===this.options.editor.defaultModel?this.previewer.doHtmlCache(n):this.previewer.update(n),this.$event.emit("afterInit",{markdownText:t,html:n})}catch(e){throw new EI(e)}}},{key:"editText",value:function(e,t){var n=this;try{this.timer&&(clearTimeout(this.timer),this.timer=null);var r=this.options.engine.global.flowSessionContext?10:50;this.timer=_d(function(){var e=t.getValue();if(e!==n.lastMarkdownText){n.lastMarkdownText=e;var r=n.engine.makeHtml(e);n.previewer.update(r),n.$event.emit("afterChange",{markdownText:e,html:r})}n.options.editor.keepDocumentScrollAfterInit||t.scrollIntoView(null)},r)}catch(e){throw new EI(e)}}},{key:"onChange",value:function(e){this.editor.editor.on("change",function(t){e({markdown:t.getValue()})})}},{key:"fireShortcutKey",value:function(e){var t=this.editor.editor.getCursor(),n=this.editor.editor.getLine(t.line);if(!e.shiftKey&&"Tab"===e.key&&dT.test(n)&&(0===t.ch||t.ch===n.length||t.ch===n.length+1)){e.preventDefault(),this.editor.editor.setSelection({line:t.line,ch:0},{line:t.line,ch:n.length}),this.editor.editor.replaceSelection("\t".concat(n),"around");var r=this.editor.editor.getCursor();this.editor.editor.setSelection(r,r)}this.toolbar.matchShortcutKey(e)&&this.toolbar.fireShortcutKey(e)&&e.preventDefault()}},{key:"export",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pdf",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.previewer.export(e,t)}},{key:"getFirstLineText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="";if("show"===this.status.previewer)t=this.previewer.getDomContainer().innerText;else{var n=this.previewer.options.previewerCache.html;t=n?n.replace(/<\/[^>]+>/g,"\n").replace(/<[^>]+>/g,""):this.getValue().replace(/[#*|$>`]/g,"")}return/^\s*([^\s][^\n]*)\n/.test(t)?t.match(/^\s*([^\s][^\n]*)\n/)[1]:e}},{key:"setTheme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";this.$event.emit("changeMainTheme",e),Sk(this,e)}},{key:"setCodeBlockTheme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";this.$event.emit("changeCodeBlockTheme",e),Tk(this,e)}},{key:"setWritingStyle",value:function(e){this.editor.setWritingStyle(e)}},{key:"setLocale",value:function(e){return!!this.locales[e]&&(this.options.locale=e,this.locale=this.locales[e],this.$event.emit("afterChangeLocale",e),this.resetToolbar("toolbar",this.options.toolbars.toolbar||[]),this.searchBoxInstance&&this.searchBoxInstance.updateLocaleStrings(),!0)}},{key:"toggleToc",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(this.toc){var t="full";t=""===e?"full"===this.toc.model?"pure":"full":e,this.toc.$switchModel(t),this.toc.setModelToLocalStorage(t)}}},{key:"clearFlowSessionCursor",value:function(){var e;this.options.engine.global.flowSessionCursor&&(this.previewer.getDom().innerHTML=vg(e=this.previewer.getDom().innerHTML).call(e,this.options.engine.global.flowSessionCursor,""))}}])}();function IZ(e,t){var n=$h(e);if(Xi){var r=Xi(e);t&&(r=uo(r).call(r,function(t){return To(e,t).enumerable})),n.push.apply(n,r)}return n}function DZ(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?gf(n=IZ(Object(i),!0)).call(n,function(t){Fu(e,t,i[t])}):$o?Xo(e,$o(i)):gf(r=IZ(Object(i))).call(r,function(t){ca(e,t,To(i,t))})}return e}Fu(MZ,"initialized",!1),Fu(MZ,"config",{defaults:qJ}),window&&(window.Cherry=MZ);var NZ=["flowchart","sequence","gantt","journey","timeline","class","state","er","pie","quadrantChart","xyChart","requirement","architecture","mindmap","kanban","gitGraph","c4","sankey","packet","block","radar"],RZ={theme:"default",altFontFamily:"sans-serif",fontFamily:"sans-serif",themeCSS:".label foreignObject { font-size: 90%; overflow: visible; } .label { font-family: sans-serif; }",startOnLoad:!1,logLevel:5};gf(NZ).call(NZ,function(e){RZ[e]={useMaxWidth:!1}});var LZ=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ua(this,e),Fu(this,"mermaidAPIRefs",null),Fu(this,"options",RZ),Fu(this,"dom",null),Fu(this,"mermaidCanvas",null),Fu(this,"lastRenderedCode",""),Fu(this,"needReturnLastRenderedCode",!1);var n=t.mermaid,r=t.mermaidAPI;if(!(r||window.mermaidAPI||n&&n.mermaidAPI||window.mermaid&&window.mermaid.mermaidAPI))throw new Error("code-block-mermaid-plugin[init]: Package mermaid or mermaidAPI not found.");this.options=DZ(DZ({},RZ),t||{}),this.mermaidAPIRefs=r||window.mermaidAPI||n.mermaidAPI||window.mermaid.mermaidAPI,this.isAsyncRenderVersion()&&(this.mermaidAPIRefs=n||window.mermaid||this.mermaidAPIRefs),delete this.options.mermaid,delete this.options.mermaidAPI,this.mermaidAPIRefs.initialize(this.options)}return mc(e,[{key:"isAsyncRenderVersion",value:function(){return 3===this.mermaidAPIRefs.render.length}},{key:"mountMermaidCanvas",value:function(e){this.mermaidCanvas&&document.body.contains(this.mermaidCanvas)||(this.mermaidCanvas=document.createElement("div"),this.mermaidCanvas.style="width:1024px;opacity:0;position:fixed;top:100%;",(this.options.mermaidCanvasAppendDom||e.$cherry.wrapperDom||document.body).appendChild(this.mermaidCanvas))}},{key:"convertMermaidSvgToImg",value:function(e,t){var n,r=new DOMParser,i=function(e){return e.replace("<svg ",'<svg style="max-width:100%;height:auto;font-family:sans-serif;" ')};try{var o=r.parseFromString(e,"image/svg+xml"),a=o.documentElement;if("svg"===a.tagName.toLowerCase()){a.style.maxWidth="100%",a.style.height="auto",a.style.fontFamily="sans-serif";var s,l=document.getElementById(t).getBBox();if(a.hasAttribute("viewBox")?l=a.viewBox.baseVal:a.setAttribute("viewBox",Xu(s="0 0 ".concat(l.width," ")).call(s,l.height)),"100%"===a.getAttribute("width")&&a.setAttribute("width","".concat(l.width)),"100%"===a.getAttribute("height")&&a.setAttribute("height","".concat(l.height)),n=o.documentElement.outerHTML,this.svg2img){var c,u="data:image/svg+xml,".concat(encodeURIComponent(o.documentElement.outerHTML));n=Xu(c='<img class="svg-img" src="'.concat(u,'" alt="')).call(c,t,'" />')}}else n=i(e)}catch(t){n=i(e)}return n}},{key:"processSvgCode",value:function(e,t){var n=e.replace(/\s*markerUnits="0"/g,"").replace(/\s*x="NaN"/g,"").replace(/<br>/g,"<br/>");return this.convertMermaidSvgToImg(n,t)}},{key:"syncRender",value:function(e,t,n,r){var i,o=this;try{this.mermaidAPIRefs.render(e,t,function(t){i=o.processSvgCode(t,e)},this.mermaidCanvas),this.lastRenderedCode=i}catch(e){return r.$cherry.options.engine.global.flowSessionContext&&this.lastRenderedCode?this.lastRenderedCode:null==e?void 0:e.str}return i}},{key:"handleAsyncRenderDone",value:function(e,t,n,r,i){r.updateCache(i);var o=n.$cherry.wrapperDom||document.body;if(mL()){var a=o.querySelectorAll('[data-sign="'.concat(t,'"][data-type="codeBlock"]'));null==a||gf(a).call(a,function(e){e.parentElement.innerHTML=i})}n.asyncRenderHandler.done(e,{replacer:function(e){var n=new RegExp('<div data-sign="'.concat(t,'" data-type="codeBlock"[^>]*>.*?<\\/div>'),"g");return e.replace(n,i)}})}},{key:"asyncRender",value:function(e,t,n,r,i){var o=this;return r.asyncRenderHandler.add(e),this.mermaidAPIRefs.render(e,t,this.mermaidCanvas).then(function(t){var a=t.svg,s=o.processSvgCode(a,e);o.lastRenderedCode=s,o.handleAsyncRenderDone(e,n,r,i,s)}).catch(function(){if(r.$cherry.options.engine.global.flowSessionContext&&o.lastRenderedCode&&"hide"===r.$cherry.status.editor)o.needReturnLastRenderedCode=!0;else{o.needReturnLastRenderedCode=!1;var t=i.fallback();o.handleAsyncRenderDone(e,n,r,i,t)}}),this.needReturnLastRenderedCode?this.lastRenderedCode:i.fallback()}},{key:"render",value:function(e,t,n){var r,i,o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=t;s||(s=Math.round(1e8*Math.random())),this.mountMermaidCanvas(n);var l=Xu(r="mermaid-".concat(t,"-")).call(r,(new Date).getTime());return this.svg2img=null!==(i=null===(o=a.mermaidConfig)||void 0===o?void 0:o.svg2img)&&void 0!==i&&i,this.isAsyncRenderVersion()?this.asyncRender(l,e,s,n,a):this.syncRender(l,e,s,n)}}],[{key:"install",value:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];cA(t,{engine:{syntax:{codeBlock:{customRenderer:{mermaid:AI(e,r)}}}}})}}])}();Fu(LZ,"TYPE","figure");var BZ=function(){var e,t,n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C,T,k,O,M,I,D,N,R,L,B,P,F,$,j,H,U,Q,z,W,G,V,K,Y,q,X,J,Z,ee,te=32768,ne=8192,re=258,ie=8192,oe=ie,ae=8192,se=8191,le=262,ce=32506,ue=15,de=256,he=286,fe=30,pe=19,ge=573,me=Bx(5),ve=null;function Ae(){this.fc=0,this.dl=0}function be(){this.dyn_tree=null,this.static_tree=null,this.extra_bits=null,this.extra_base=0,this.elems=0,this.max_length=0,this.max_code=0}function ye(e,t,n,r){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r}function we(){this.next=null,this.len=0,this.ptr=new Array(ne),this.off=0}var _e=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],xe=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Ee=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Se=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ce=[new ye(0,0,0,0),new ye(4,4,8,4),new ye(4,5,16,8),new ye(4,6,32,32),new ye(4,4,16,16),new ye(8,16,32,32),new ye(8,16,128,128),new ye(8,32,128,256),new ye(32,128,258,1024),new ye(32,258,258,4096)];function Te(t){t.next=e,e=t}function ke(e){return u[te+e]}function Oe(e,t){return u[te+e]=t}function Me(r){ve[o+i++]=r,o+i==ne&&function(){if(0!=i){var r,a;for(null!=e?(s=e,e=e.next):s=new we,s.next=null,s.len=s.off=0,r=s,null==t?t=n=r:n=n.next=r,r.len=i-o,a=0;a<r.len;a++)r.ptr[a]=ve[o+a];i=o=0}var s}()}function Ie(e){e&=65535,o+i<8190?(ve[o+i++]=255&e,ve[o+i++]=e>>>8):(Me(255&e),Me(e>>>8))}function De(){p=(p<<me^255&s[y+3-1])&se,g=ke(p),u[32767&y]=g,Oe(p,y)}function Ne(e,t){Je(t[e].fc,t[e].dl)}function Re(e){return 255&(e<256?U[e]:U[256+(e>>7)])}function Le(e,t,n){return e[t].fc<e[n].fc||e[t].fc==e[n].fc&&j[t]<=j[n]}function Be(e,t,n){var r;for(r=0;r<n&&ee<Z.length;r++)e[t+r]=255&Z.charCodeAt(ee++);return r}function Pe(e){var t,n,r=E,i=y,o=b,a=y>ce?y-ce:0,l=y+re,c=s[i+o-1],d=s[i+o];b>=T&&(r>>=2);do{if(s[(t=e)+o]==d&&s[t+o-1]==c&&s[t]==s[i]&&s[++t]==s[i+1]){i+=2,t++;do{}while(s[++i]==s[++t]&&s[++i]==s[++t]&&s[++i]==s[++t]&&s[++i]==s[++t]&&s[++i]==s[++t]&&s[++i]==s[++t]&&s[++i]==s[++t]&&s[++i]==s[++t]&&i<l);if(n=re-(l-i),i=l-re,n>o){if(w=e,o=n,n>=re)break;c=s[i+o-1],d=s[i+o]}}}while((e=u[32767&e])>a&&0!=--r);return o}function Fe(){var e,t,n=65536-x-y;if(-1==n)n--;else if(y>=65274){for(e=0;e<te;e++)s[e]=s[e+te];for(w-=te,y-=te,f-=te,e=0;e<ae;e++)Oe(e,(t=ke(e))>=te?t-te:0);for(e=0;e<te;e++)t=u[e],u[e]=t>=te?t-te:0;n+=te}_||((e=Be(s,y+x,n))<=0?_=!0:x+=e)}function $e(){_||(d=0,h=0,function(){var e,t,n,r,i;if(0==I[0].dl){for(N.dyn_tree=k,N.static_tree=M,N.extra_bits=_e,N.extra_base=257,N.elems=he,N.max_length=ue,N.max_code=0,R.dyn_tree=O,R.static_tree=I,R.extra_bits=xe,R.extra_base=0,R.elems=fe,R.max_length=ue,R.max_code=0,L.dyn_tree=D,L.static_tree=null,L.extra_bits=Ee,L.extra_base=0,L.elems=pe,L.max_length=7,L.max_code=0,n=0,r=0;r<28;r++)for(Q[r]=n,e=0;e<1<<_e[r];e++)H[n++]=r;for(H[n-1]=r,i=0,r=0;r<16;r++)for(z[r]=i,e=0;e<1<<xe[r];e++)U[i++]=r;for(i>>=7;r<fe;r++)for(z[r]=i<<7,e=0;e<1<<xe[r]-7;e++)U[256+i++]=r;for(t=0;t<=ue;t++)B[t]=0;for(e=0;e<=143;)M[e++].dl=8,B[8]++;for(;e<=255;)M[e++].dl=9,B[9]++;for(;e<=279;)M[e++].dl=7,B[7]++;for(;e<=287;)M[e++].dl=8,B[8]++;for(ze(M,287),e=0;e<fe;e++)I[e].dl=5,I[e].fc=Ze(e,5);Ue()}}(),function(){var e;for(e=0;e<ae;e++)u[te+e]=0;if(S=Ce[C].max_lazy,T=Ce[C].good_length,E=Ce[C].max_chain,y=0,f=0,(x=Be(s,0,65536))<=0)return _=!0,void(x=0);for(_=!1;x<le&&!_;)Fe();for(p=0,e=0;e<2;e++)p=(p<<me^255&s[e])&se}(),t=null,i=0,o=0,C<=3?(b=2,A=0):(A=2,v=0),a=!1)}function je(e,n,i){var o;return r||($e(),r=!0,0!=x)?(o=He(e,n,i))==i?i:a?o:(C<=3?function(){for(;0!=x&&null==t;){var e;if(De(),0!=g&&y-g<=ce&&(A=Pe(g))>x&&(A=x),A>=3)if(e=Ye(y-w,A-3),x-=A,A<=S){A--;do{y++,De()}while(0!=--A);y++}else y+=A,A=0,p=((p=255&s[y])<<me^255&s[y+1])&se;else e=Ye(0,255&s[y]),x--,y++;for(e&&(Ke(0),f=y);x<le&&!_;)Fe()}}():function(){for(;0!=x&&null==t;){if(De(),b=A,m=w,A=2,0!=g&&b<S&&y-g<=ce&&((A=Pe(g))>x&&(A=x),3==A&&y-w>4096&&A--),b>=3&&A<=b){var e;e=Ye(y-1-m,b-3),x-=b-1,b-=2;do{y++,De()}while(0!=--b);v=0,A=2,y++,e&&(Ke(0),f=y)}else 0!=v?(Ye(0,255&s[y-1])&&(Ke(0),f=y),y++,x--):(v=1,y++,x--);for(;x<le&&!_;)Fe()}}(),0==x&&(0!=v&&Ye(0,255&s[y-1]),Ke(1),a=!0),o+He(e,o+n,i-o)):(a=!0,0)}function He(e,n,r){var a,s,l;for(a=0;null!=t&&a<r;){for((s=r-a)>t.len&&(s=t.len),l=0;l<s;l++)e[n+a+l]=t.ptr[t.off+l];var c;t.off+=s,t.len-=s,a+=s,0==t.len&&(c=t,t=t.next,Te(c))}if(a==r)return a;if(o<i){for((s=r-a)>i-o&&(s=i-o),l=0;l<s;l++)e[n+a+l]=ve[o+l];a+=s,i==(o+=s)&&(i=o=0)}return a}function Ue(){var e;for(e=0;e<he;e++)k[e].fc=0;for(e=0;e<fe;e++)O[e].fc=0;for(e=0;e<pe;e++)D[e].fc=0;k[256].fc=1,X=J=0,G=V=K=0,Y=0,q=1}function Qe(e,t){for(var n=P[t],r=t<<1;r<=F&&(r<F&&Le(e,P[r+1],P[r])&&r++,!Le(e,n,P[r]));)P[t]=P[r],t=r,r<<=1;P[t]=n}function ze(e,t){var n,r,i=new Array(16),o=0;for(n=1;n<=ue;n++)o=o+B[n-1]<<1,i[n]=o;for(r=0;r<=t;r++){var a=e[r].dl;0!=a&&(e[r].fc=Ze(i[a]++,a))}}function We(e){var t,n,r=e.dyn_tree,i=e.static_tree,o=e.elems,a=-1,s=o;for(F=0,$=ge,t=0;t<o;t++)0!=r[t].fc?(P[++F]=a=t,j[t]=0):r[t].dl=0;for(;F<2;){var l=P[++F]=a<2?++a:0;r[l].fc=1,j[l]=0,X--,null!=i&&(J-=i[l].dl)}for(e.max_code=a,t=F>>1;t>=1;t--)Qe(r,t);do{t=P[1],P[1]=P[F--],Qe(r,1),n=P[1],P[--$]=t,P[--$]=n,r[s].fc=r[t].fc+r[n].fc,j[t]>j[n]+1?j[s]=j[t]:j[s]=j[n]+1,r[t].dl=r[n].dl=s,P[1]=s++,Qe(r,1)}while(F>=2);P[--$]=P[1],function(e){var t,n,r,i,o,a,s=e.dyn_tree,l=e.extra_bits,c=e.extra_base,u=e.max_code,d=e.max_length,h=e.static_tree,f=0;for(i=0;i<=ue;i++)B[i]=0;for(s[P[$]].dl=0,t=$+1;t<ge;t++)(i=s[s[n=P[t]].dl].dl+1)>d&&(i=d,f++),s[n].dl=i,n>u||(B[i]++,o=0,n>=c&&(o=l[n-c]),a=s[n].fc,X+=a*(i+o),null!=h&&(J+=a*(h[n].dl+o)));if(0!=f){do{for(i=d-1;0==B[i];)i--;B[i]--,B[i+1]+=2,B[d]--,f-=2}while(f>0);for(i=d;0!=i;i--)for(n=B[i];0!=n;)(r=P[--t])>u||(s[r].dl!=i&&(X+=(i-s[r].dl)*s[r].fc,s[r].fc=i),n--)}}(e),ze(r,a)}function Ge(e,t){var n,r,i=-1,o=e[0].dl,a=0,s=7,l=4;for(0==o&&(s=138,l=3),e[t+1].dl=65535,n=0;n<=t;n++)r=o,o=e[n+1].dl,++a<s&&r==o||(a<l?D[r].fc+=a:0!=r?(r!=i&&D[r].fc++,D[16].fc++):a<=10?D[17].fc++:D[18].fc++,a=0,i=r,0==o?(s=138,l=3):r==o?(s=6,l=3):(s=7,l=4))}function Ve(e,t){var n,r,i=-1,o=e[0].dl,a=0,s=7,l=4;for(0==o&&(s=138,l=3),n=0;n<=t;n++)if(r=o,o=e[n+1].dl,!(++a<s&&r==o)){if(a<l)do{Ne(r,D)}while(0!=--a);else 0!=r?(r!=i&&(Ne(r,D),a--),Ne(16,D),Je(a-3,2)):a<=10?(Ne(17,D),Je(a-3,3)):(Ne(18,D),Je(a-11,7));a=0,i=r,0==o?(s=138,l=3):r==o?(s=6,l=3):(s=7,l=4)}}function Ke(e){var t,n,r,i,o;if(i=y-f,W[K]=Y,We(N),We(R),r=function(){var e;for(Ge(k,N.max_code),Ge(O,R.max_code),We(L),e=18;e>=3&&0==D[Se[e]].dl;e--);return X+=3*(e+1)+5+5+4,e}(),(n=J+3+7>>3)<=(t=X+3+7>>3)&&(t=n),i+4<=t&&f>=0)for(Je(0+e,3),et(),Ie(i),Ie(~i),o=0;o<i;o++)Me(s[f+o]);else n==t?(Je(2+e,3),qe(M,I)):(Je(4+e,3),function(e,t,n){var r;for(Je(e-257,5),Je(t-1,5),Je(n-4,4),r=0;r<n;r++)Je(D[Se[r]].dl,3);Ve(k,e-1),Ve(O,t-1)}(N.max_code+1,R.max_code+1,r+1),qe(k,O));Ue(),0!=e&&et()}function Ye(e,t){if(c[G++]=t,0==e?k[t].fc++:(e--,k[H[t]+de+1].fc++,O[Re(e)].fc++,l[V++]=e,Y|=q),q<<=1,7&G||(W[K++]=Y,Y=0,q=1),C>2&&!(4095&G)){var n,r=8*G,i=y-f;for(n=0;n<fe;n++)r+=O[n].fc*(5+xe[n]);if(r>>=3,V<Bx(G/2)&&r<Bx(i/2))return!0}return 8191==G||V==oe}function qe(e,t){var n,r,i,o,a=0,s=0,u=0,d=0;if(0!=G)do{7&a||(d=W[u++]),r=255&c[a++],1&d?(Ne((i=H[r])+de+1,e),0!=(o=_e[i])&&Je(r-=Q[i],o),Ne(i=Re(n=l[s++]),t),0!=(o=xe[i])&&Je(n-=z[i],o)):Ne(r,e),d>>=1}while(a<G);Ne(256,e)}var Xe=16;function Je(e,t){h>Xe-t?(Ie(d|=e<<h),d=e>>Xe-h,h+=t-Xe):(d|=e<<h,h+=t)}function Ze(e,t){var n=0;do{n|=1&e,e>>=1,n<<=1}while(--t>0);return n>>1}function et(){h>8?Ie(d):h>0&&Me(d),d=0,h=0}return function(i,o){var a,d;Z=i,ee=0,void 0===o&&(o=6),function(i){var o;if(i?i<1?i=1:i>9&&(i=9):i=6,C=i,r=!1,_=!1,null==ve){for(e=t=n=null,ve=new Array(ne),s=new Array(65536),l=new Array(oe),c=new Array(32832),u=new Array(65536),k=new Array(ge),o=0;o<ge;o++)k[o]=new Ae;for(O=new Array(61),o=0;o<61;o++)O[o]=new Ae;for(M=new Array(288),o=0;o<288;o++)M[o]=new Ae;for(I=new Array(fe),o=0;o<fe;o++)I[o]=new Ae;for(D=new Array(39),o=0;o<39;o++)D[o]=new Ae;N=new be,R=new be,L=new be,B=new Array(16),P=new Array(573),j=new Array(573),H=new Array(256),U=new Array(512),Q=new Array(29),z=new Array(fe),W=new Array(Bx(1024))}}(o);for(var h=new Array(1024),f=[];(a=je(h,0,h.length))>0;){var p=new Array(a);for(d=0;d<a;d++)p[d]=String.fromCharCode(h[d]);f[f.length]=p.join("")}return Z=null,f.join("")}}();function PZ(e,t){var n=$h(e);if(Xi){var r=Xi(e);t&&(r=uo(r).call(r,function(t){return To(e,t).enumerable})),n.push.apply(n,r)}return n}function FZ(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?gf(n=PZ(Object(i),!0)).call(n,function(t){Fu(e,t,i[t])}):$o?Xo(e,$o(i)):gf(r=PZ(Object(i))).call(r,function(t){ca(e,t,To(i,t))})}return e}function $Z(e,t,n){var r=(3&e)<<4|t>>4,i=(15&t)<<2|n>>6,o=63&n,a="";return a+=jZ(63&e>>2),a+=jZ(63&r),a+=jZ(63&i),a+jZ(63&o)}function jZ(e){var t=e;return t<10?String.fromCharCode(48+t):(t-=10)<26?String.fromCharCode(65+t):(t-=26)<26?String.fromCharCode(97+t):0===(t-=26)?"-":1===t?"_":"?"}function HZ(e,t){var n,r=unescape(encodeURIComponent(e));return Xu(n="".concat(t,"/svg/")).call(n,function(e){for(var t="",n=0;n<e.length;n+=3)n+2===e.length?t+=$Z(e.charCodeAt(n),e.charCodeAt(n+1),0):n+1===e.length?t+=$Z(e.charCodeAt(n),0,0):t+=$Z(e.charCodeAt(n),e.charCodeAt(n+1),e.charCodeAt(n+2));return t}(BZ(r,9)))}var UZ,QZ,zZ,WZ,GZ,VZ,KZ,YZ=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ua(this,e),this.baseUrl=null!==(t=n.baseUrl)&&void 0!==t?t:"http://www.plantuml.com/plantuml"}return mc(e,[{key:"render",value:function(e,t){var n,r,i=t;i||(i=Math.round(1e8*Math.random()));var o=Xu(n="plantuml-".concat(i,"-")).call(n,(new Date).getTime());return Xu(r='<img id="'.concat(o,'" src="')).call(r,HZ(e,this.baseUrl),'" />')}}],[{key:"install",value:function(t,n){var r;cA(t,{engine:{syntax:{codeBlock:{customRenderer:{plantuml:new e(FZ(FZ({},n),null!==(r=t.engine.syntax.plantuml)&&void 0!==r?r:{}))}}}}})}}])}(),qZ={};function XZ(){return zZ?QZ:(zZ=1,function(){if(UZ)return qZ;UZ=1;var e=sn(),t=Date,n=k()(t.prototype.getTime);e({target:"Date",stat:!0},{now:function(){return n(new t)}})}(),QZ=Me().Date.now)}function JZ(){return GZ?WZ:(GZ=1,WZ=XZ())}var ZZ,e0,t0,n0,r0,i0,o0,a0,s0,l0=i(KZ?VZ:(KZ=1,VZ=JZ())),c0=i(e0?ZZ:(e0=1,ZZ=Zz()));function u0(){return r0?n0:(r0=1,t0||(t0=1,sn()({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})),n0=Me().Number.isNaN)}function d0(){return o0?i0:(o0=1,i0=u0())}var h0=i(s0?a0:(s0=1,a0=d0())),f0=["echarts","cherryOptions","cherry"];function p0(e,t){var n=void 0!==HC&&UC(e)||e["@@iterator"];if(!n){if(QC(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return g0(e,t);var r=_x(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u_(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g0(e,t):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function g0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m0(e,t){var n=$h(e);if(Xi){var r=Xi(e);t&&(r=uo(r).call(r,function(t){return To(e,t).enumerable})),n.push.apply(n,r)}return n}function v0(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?gf(n=m0(Object(i),!0)).call(n,function(t){Fu(e,t,i[t])}):$o?Xo(e,$o(i)):gf(r=m0(Object(i))).call(r,function(t){ca(e,t,To(i,t))})}return e}var A0={color:{tooltipTextLight:"#333",tooltipTextDark:"#ddd",emphasis:"#ff6b6b",error:"#ff4d4f"},shadow:{color:"rgba(0, 0, 0, 0.5)",blur:10},fontSize:{base:12,small:10,title:16}},b0={renderer:"svg",width:500,height:300},y0=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ua(this,e);var n=t.echarts,r=t.cherryOptions,i=t.cherry,o=GA(t,f0);if(!n&&!window.echarts)throw new Error("table-echarts-plugin[init]: Package echarts not found.");this.options=v0(v0({},b0),o||{}),this.echartsRef=n||window.echarts,this.dom=null,this.cherryOptions=r,this.cherry=i,this.instances=new yj,this.themeObservers=new EH,this.themeRuntime=null,this.themeCache=new EH,this.exportObservers=new EH,this.$enableLocaleObserver()}return mc(e,[{key:"$palette",value:function(){var e=[];switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default"){case"radar":e=["rgba(114, 172, 209, 0.2)","rgba(114, 172, 209, 0.4)","rgba(114, 172, 209, 0.6)","rgba(114, 172, 209, 0.8)","rgba(114, 172, 209, 1)"];break;case"heatmap":e=["#313695","#4575b4","#74add1","#abd9e9","#e0f3f8","#ffffcc","#fee090","#fdae61","#f46d43","#d73027","#a50026"];break;case"sankey":e=["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"];break;case"map":e=["#e0ffff","#006edd"];break;default:e=["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"]}return e}},{key:"$grid",value:function(){return v0({containLabel:!0,left:"8%",right:"8%",bottom:"8%",top:"12%"},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}},{key:"$axis",value:function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return v0({type:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"value",axisLine:{lineStyle:{color:this.$theme().color.text}},axisLabel:{color:this.$theme().color.text,fontSize:this.$theme().fontSize.base},splitLine:{lineStyle:{color:this.$theme().color.lineSplit,type:"dashed"}}},e)}},{key:"$dataZoom",value:function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=[{type:"inside",xAxisIndex:[0],start:0,end:100}];return(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&t.push({type:"slider",xAxisIndex:[0],bottom:"2%",start:0,end:100,height:20}),_h(t).call(t,function(t){return v0(v0({},t),e)})}},{key:"$num",value:function(e){var t=kE(String(null!=e?e:"").replace(/,/g,""));return lX(t)?t:0}},{key:"$baseSeries",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={data:[],emphasis:{focus:"series",itemStyle:{shadowBlur:this.$theme().shadow.blur,shadowOffsetX:0,shadowColor:this.$theme().shadow.color}}},r={bar:{type:"bar",label:{show:!1,position:"top",formatter:"{c}"}},line:{type:"line",symbol:"circle",symbolSize:8,lineStyle:{width:3,cap:"round",join:"round"},itemStyle:{borderWidth:2,borderColor:"#fff"},smooth:.3,markPoint:{data:[{type:"max",name:this.cherry.locale.maxValue},{type:"min",name:this.cherry.locale.minValue}]},emphasis:{focus:"series",lineStyle:{width:5},itemStyle:{borderWidth:3}}},scatter:{type:"scatter"},radar:{type:"radar"},heatmap:{type:"heatmap"},pie:{type:"pie"},sankey:{type:"sankey"}};return v0(v0(v0(v0({},n),r[e]),{animation:!0,animationDuration:1e3,animationEasing:"elasticOut",animationDelay:function(e){return 10*e}}),t)}},{key:"$dot",value:function(e){return'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'.concat(e,';"></span>')}},{key:"$tagEchartsSvg",value:function(e){var t=e&&e.querySelector&&e.querySelector("svg");t&&t.classList.add("echarts-svg")}},{key:"cleanupInvalidInstances",value:function(){var e,t=this,n=[];gf(e=this.instances).call(e,function(e){if(e.isDisposed&&e.isDisposed())n.push(e);else{var t=e.getDom&&e.getDom();t&&t.isConnected||n.push(e)}}),gf(n).call(n,function(e){e.isDisposed()||e.dispose(),t.instances.delete(e)}),n.length>0&&jC.info("Cleaned up ".concat(n.length," invalid chart instances"))}},{key:"destroyChart",value:function(e){var t=null,n=null;e&&"function"==typeof e.getDom?t=(n=e).getDom&&n.getDom():e instanceof Element&&(t=e,n=this.echartsRef.getInstanceByDom(t)),n&&!n.isDisposed()&&n.dispose(),n&&this.instances.delete(n),!n&&t&&this.cleanupInvalidInstances()}},{key:"createChart",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(!e)return null;var r=this.echartsRef.getInstanceByDom(e);if(r&&!r.isDisposed())return r;e.firstChild&&(e.innerHTML="");var i=this.echartsRef.init(e,null,this.options);return t&&$h(t).length&&i.setOption(t),this.instances.add(i),this.$tagEchartsSvg(e),this.$enableThemeObserver(e),this.$enableExportObserver(e),"heatmap"!==n&&"pie"!==n||this.addClickHighlightEffect(i,n),i}},{key:"$readCssVar",value:function(e,t,n){try{var r;return c_(r=getComputedStyle(e).getPropertyValue(t)).call(r)||n}catch(e){return n}}},{key:"$extractThemeNameFromClassList",value:function(e){try{var t=u_(e||[]),n=zw(t).call(t,function(e){return m_(e).call(e,"theme__")});return n?n.replace("theme__",""):"default"}catch(e){return"default"}}},{key:"$themeCacheKey",value:function(e){var t=e||this.$getCherryRoot()||document.body;return this.$extractThemeNameFromClassList(t&&t.classList||[])}},{key:"$buildEchartsThemeFromCss",value:function(e){var t=e||this.$getCherryRoot(),n=this.$themeCacheKey(t);if(this.themeCache.has(n)){var r=this.themeCache.get(n);this.themeRuntime=r.runtime}else{var i,o=this.$readCssVar(t,"--primary-color",A0.color.primary),a=this.$readCssVar(t,"--base-previewer-bg",this.$readCssVar(t,"--base-editor-bg","transparent")),s=this.$readCssVar(t,"--base-font-color",A0.color.text),l=this.$readCssVar(t,"--md-table-border",A0.color.border),c=this.$readCssVar(t,"--md-hr-border",A0.color.border),u=(i=String(a||"").toLowerCase(),uh(i).call(i,"#0")||uh(i).call(i,"#1")||uh(i).call(i,"#2")||uh(i).call(i,"#3")),d={color:{primary:o,border:l,borderHover:l,text:s,tooltipText:u?A0.color.tooltipTextDark:A0.color.tooltipTextLight,lineSplit:c,backgroundColor:a,tooltipBg:u?a:"white",emphasis:A0.color.emphasis},shadow:v0({},A0.shadow),fontSize:v0({},A0.fontSize)};cA(d,A0),this.themeRuntime=d,this.themeCache.set(n,{runtime:d})}}},{key:"$theme",value:function(){return this.themeRuntime}},{key:"$getCherryRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(e){var t=e.closest(".cherry")||e.closest(".cherry-markdown");if(t)return t}return document.querySelector(".cherry")||document.querySelector(".cherry-markdown")||document.body}},{key:"$enableThemeObserver",value:function(e){var t=this,n=this.$getCherryRoot(e);if(n&&!this.themeObservers.has(n)){var r=new MutationObserver(function(){var e;t.$buildEchartsThemeFromCss(n),gf(e=u_(t.instances)).call(e,function(e){t.$setInstanceTheme(e)})});r.observe(n,{attributes:!0,attributeFilter:["class"]}),this.themeObservers.set(n,r)}}},{key:"$setInstanceTheme",value:function(e){if(e&&"function"==typeof e.getDom){var t=e.getDom();if(t){var n=this.$chartOptionsFromDataset(t)||{};e.setOption(n,!1,!0),this.$tagEchartsSvg(t)}}}},{key:"$generateChartOptions",value:function(e,t,n){var r={bar:S0,line:E0,radar:C0,map:R0,heatmap:T0,pie:k0,scatter:O0,sankey:M0}[e];return n.engine=this,r?P0(r,t,n):{}}},{key:"$chartOptionsFromDataset",value:function(e){var t=e.getAttribute("data-chart-type"),n=e.getAttribute("data-table-data"),r=e.getAttribute("data-chart-options"),i=e.getAttribute("id"),o=null,a={};try{o=n?JSON.parse(n):null}catch(e){o=null}try{a=r?JSON.parse(r):{}}catch(e){a={chartId:i}}return t&&o?(a.chartId=i,this.$generateChartOptions(t,o,a)):{}}},{key:"$rehydrateChartsForContainers",value:function(e,t){var n=this;gf(e).call(e,function(e){if(e instanceof Element&&e.isConnected){var t=e.getAttribute("data-chart-type"),r=n.$chartOptionsFromDataset(e);try{n.destroyChart(e),n.createChart(e,r,t)}catch(e){jC.warn("rehydrate (partial) chart failed:",e)}}})}},{key:"$rebuildAllCharts",value:function(e){if(e)try{var t,n=new yj,r=e.querySelectorAll(".cherry-echarts-wrapper");r&&r.length&&gf(t=u_(r)).call(t,function(e){return n.add(e)}),n.size&&this.$rehydrateChartsForContainers(n,e)}catch(e){jC.warn("rehydrate charts failed:",e)}}},{key:"$enableLocaleObserver",value:function(){var e=this;this.cherry&&this.cherry.$event&&this.cherry.$event.on(this.cherry.$event.Events.afterChangeLocale,function(t){_d(function(){var t=e.$getCherryRoot();e.$rebuildAllCharts(t)},0)})}},{key:"$enableExportObserver",value:function(e){var t=this,n=this.$getCherryRoot(e);if(n&&!this.exportObservers.has(n)){var r=function(){t.$rebuildAllCharts(n)};window.addEventListener("cherry:export:done",r),this.exportObservers.set(n,r)}}},{key:"render",value:function(e,t,n){var r,i,o=this,a=Xu(r="chart-".concat(l0(),"-")).call(r,Math.random().toString(36).substr(2,9)),s=Ew(n),l=Ew(t);t.chartId=a,this.$buildEchartsThemeFromCss();var c=this.$generateChartOptions(e,n,t),u={width:"".concat(this.options.width,"px"),height:"".concat(this.options.height,"px"),"min-height":"300px",display:"block",position:"relative",border:"1px solid var(--md-table-border)"},d=_h(i=WW(u)).call(i,function(e){var t,n=Yy(e,2),r=n[0],i=n[1];return Xu(t="".concat(r,": ")).call(t,i,";")}).join(" "),h=['<div class="cherry-echarts-wrapper"',' style="'.concat(d,'"'),' id="'.concat(a,'"'),' data-chart-type="'.concat(e,'"'),' data-table-data="'.concat(s.replace(/"/g,"&quot;"),'"'),' data-chart-options="'.concat(l.replace(/"/g,"&quot;"),'">'),"</div>"].join("");return _d(function(){var t=document.getElementById(a);if(t&&o.echartsRef&&!o.echartsRef.getInstanceByDom(t)){try{o.createChart(t,c,e),jC.log("Chart initialized successfully:",a)}catch(e){var n,r,i,s,l;jC.error("Failed to render chart:",e),jC.error("Chart options:",c),jC.error("Container:",t),t.innerHTML=Xu(n=Xu(r=Xu(i=Xu(s=Xu(l='<div style="text-align: center; color: red; transform: translateY(125px);">\n          <div style="font-size: '.concat(o.$theme().fontSize.title,"px; color: ")).call(l,o.$theme().color.error,';">')).call(s,o.cherry.locale.chartRenderError,'</div>\n          <div style="font-size: ')).call(i,o.$theme().fontSize.base,"px; color: ")).call(r,o.$theme().color.text,'; opacity: 0.7;">')).call(n,e.message,"</div>\n        </div>")}o.cleanupInvalidInstances()}},50),h}},{key:"addClickHighlightEffect",value:function(e,t){var n=this,r=null;e.on("click",function(i){if(jC.log("Chart clicked:",i),r===i.dataIndex)return r=null,void n.clearHighlight(e,t);r=i.dataIndex})}},{key:"clearHighlight",value:function(e,t){e.dispatchAction({type:"downplay",seriesIndex:0});var n=e.getOption().series[0].data;gf(n).call(n,function(e){e.itemStyle&&(delete e.itemStyle.opacity,delete e.itemStyle.borderWidth,delete e.itemStyle.borderColor)}),e.setOption({series:[{data:n}]})}},{key:"onDestroy",value:function(){var e,t,n,r=this;if(this.cleanupInvalidInstances(),this.instances&&this.instances.size>0&&(gf(e=this.instances).call(e,function(e){r.destroyChart(e)}),this.instances.clear()),this.themeObservers&&this.themeObservers.size&&(gf(t=this.themeObservers).call(t,function(e){e.disconnect()}),this.themeObservers.clear()),this.exportObservers&&this.exportObservers.size&&(gf(n=this.exportObservers).call(n,function(e){window.removeEventListener("cherry:export:done",e)}),this.exportObservers.clear()),this.dom){var i=this.echartsRef.getInstanceByDom(this.dom);i&&!i.isDisposed()&&i.dispose(),this.dom=null}}}],[{key:"install",value:function(t){if("undefined"==typeof window)return jC.warn("echarts-table-engine only works in browser."),void cA(t,{engine:{syntax:{table:{enableChart:!1}}}});cA(t,{engine:{syntax:{table:{enableChart:!0,chartRenderEngine:e,externals:["echarts"]}}}})}}])}(),w0={components:[{options:function(e,t){return t.title?{title:{text:t.title.replace(/\s*,\s*$/,""),left:"center",top:"bottom",textStyle:{color:t.engine.$theme().color.tooltipText,fontSize:16}}}:{}}}],options:function(e,t){var n=t.engine;return{aria:{show:!0},backgroundColor:n.$theme().color.backgroundColor,color:n.$palette(),tooltip:{trigger:"item",backgroundColor:n.$theme().color.tooltipBg,borderColor:n.$theme().color.border,borderWidth:1,textStyle:{color:n.$theme().color.tooltipText,fontSize:12},extraCssText:"box-shadow: 0 2px 8px rgba(0,0,0,0.15); border-radius: 4px;"},toolbox:{show:!0,orient:"vertical",left:"right",top:"bottom",feature:{saveAsImage:{show:!0,title:n.cherry.locale.saveAsImage,type:"svg"===n.options.renderer?"svg":"png",backgroundColor:"#fff"}},iconStyle:{borderColor:n.$theme().color.border},emphasis:{iconStyle:{borderColor:n.$theme().color.borderHover}}}}}},_0={options:function(e,t){var n,r=t.engine;return{legend:{type:"scroll",orient:"horizontal",left:"center",top:"top",textStyle:{color:r.$theme().color.text,fontSize:r.$theme().fontSize.base},itemWidth:12,itemHeight:12,selectedMode:"multiple",selectorLabel:{color:r.$theme().color.text,borderColor:r.$theme().color.border},data:_h(n=e.rows).call(n,function(e){return e[0]})}}}},x0={components:[w0,_0],options:function(e,t){var n,r,i,o,a=t.engine,s=[],l=[];return gf(n=e.rows).call(n,function(e){var t;s.push(e[0]),l.push({name:e[0],data:_h(t=_x(e).call(e,1)).call(t,function(e){return a.$num(e)})})}),{tooltip:{trigger:"axis",axisPointer:{label:{backgroundColor:"#6a7985"},crossStyle:{color:"#999"}},formatter:function(e){var t,n,r=null!==(t=null==e||null===(n=e[0])||void 0===n?void 0:n.axisValueLabel)&&void 0!==t?t:"",i='<div style="margin-bottom:4px;font-weight:bold;">'.concat(r,"</div>");return gf(e).call(e,function(e){i+='<div style="margin:2px 0;">',i+="".concat(a.$dot(e.color)),i+='<span style="font-weight:bold;">'.concat(e.seriesName,"</span>"),i+='<span style="float:right;margin-left:20px;font-weight:bold;">'.concat(e.value,"</span>"),i+="</div>"}),i}},legend:{data:s},series:l,xAxis:a.$axis("category",{data:_x(r=e.header).call(r,1),axisTick:{alignWithLabel:!0},axisLabel:{rotate:OB(i=_x(o=e.header).call(o,1)).call(i,function(e){return e.length>4})?45:0,interval:0}}),yAxis:a.$axis("value",{axisLabel:{formatter:function(e){return e>=1e6?"".concat((e/1e6).toFixed(1),"M"):e>=1e3?"".concat((e/1e3).toFixed(1),"K"):e}},nameTextStyle:{color:a.$theme().color.text}}),grid:a.$grid({left:"3%",top:"15%"}),dataZoom:a.$dataZoom(e.header.length>8)}}},E0={components:[x0],options:function(e,t){return{"tooltip.axisPointer.type":"cross","series.$item":t.engine.$baseSeries("line")}}},S0={components:[x0],options:function(e,t){return{"tooltip.axisPointer.type":"shadow","series.$item":t.engine.$baseSeries("bar")}}},C0={components:[w0,_0],options:function(e,t){var n,r,i,o,a=t.engine,s=_h(n=_x(r=e.header).call(r,1)).call(n,function(t){var n,r=Math.max.apply(Math,DI(_h(n=e.rows).call(n,function(n){var r,i=yx(r=e.header).call(r,t);return a.$num(n[i])})));return{name:t,max:Math.ceil(1.2*r)}}),l=_h(i=e.rows).call(i,function(e,t){var n;return{name:e[0],value:_h(n=_x(e).call(e,1)).call(n,function(e){return a.$num(e)}),areaStyle:{opacity:.1+.05*t},lineStyle:{width:2},itemStyle:{borderWidth:2}}});return{"tooltip.formatter":function(e){var t,n,r=Xu(t='<div style="margin-bottom:4px;font-weight:bold;">'.concat(a.$dot(e.color))).call(t,e.name,"</div>");return gf(n=e.value).call(n,function(e,t){r+='<div style="margin:2px 0;">',r+='<span style="font-weight:bold;">'.concat(s[t].name,"</span>"),r+='<span style="float:right;margin-left:20px;font-weight:bold;">'.concat(e,"</span>"),r+="</div>"}),r},radar:{name:{textStyle:{color:a.$theme().color.text,fontSize:12,fontWeight:"bold"},formatter:function(e){return e.length>6?"".concat(e.substr(0,6),"..."):e}},indicator:s,radius:"60%",center:["50%","50%"],splitNumber:5,shape:"polygon",splitArea:{areaStyle:{color:c0(o=a.$palette("radar")).call(o)}},axisName:{color:a.$theme().color.text},axisLine:{lineStyle:{color:"rgba(211, 253, 250, 0.8)"}},splitLine:{lineStyle:{color:"rgba(211, 253, 250, 0.8)"}}},series:[a.$baseSeries("radar",{name:a.cherry.locale.radarData,data:l,emphasis:{lineStyle:{width:4},areaStyle:{opacity:.3}}})]}}},T0={components:[w0],options:function(e,t){var n,r,i,o=t.engine,a=_x(n=e.header).call(n,1),s=_h(r=e.rows).call(r,function(e){return e[0]}),l=[];gf(i=e.rows).call(i,function(e,t){var n;gf(n=_x(e).call(e,1)).call(n,function(e,n){l.push([n,t,o.$num(e)])})});var c=_h(l).call(l,function(e){return e[2]}),u=Math.min.apply(Math,DI(c)),d=Math.max.apply(Math,DI(c));return{"tooltip.formatter":function(e){var t,n,r;return Xu(t=Xu(n=Xu(r="".concat(o.$dot(e.color))).call(r,s[e.data[1]],"<br/>")).call(n,a[e.data[0]],": <strong>")).call(t,e.data[2],"</strong>")},grid:o.$grid({height:"50%",top:"10%",left:"10%",right:"10%"}),xAxis:o.$axis("category",{data:a,splitArea:{show:!0}}),yAxis:o.$axis("category",{data:s,splitArea:{show:!0}}),visualMap:{min:u,max:d,calculable:!0,orient:"horizontal",left:"center",bottom:"15%",inRange:{color:o.$palette("heatmap")},textStyle:{color:o.$theme().color.text,fontSize:o.$theme().fontSize.base}},series:[o.$baseSeries("heatmap",{name:o.cherry.locale.heatmapData,data:l,label:{show:!0,fontSize:10},emphasis:{itemStyle:{shadowBlur:o.$theme().shadow.blur,shadowColor:o.$theme().shadow.color,borderWidth:2,borderColor:o.$theme().color.emphasis}},select:{itemStyle:{borderWidth:2,borderColor:o.$theme().color.emphasis,opacity:1}},selectedMode:"single",animationEasing:"cubicOut"})]}}},k0={components:[w0,_0],options:function(e,t){var n,r=t.engine,i=_h(n=e.rows).call(n,function(e){return{name:e[0],value:r.$num(e[1])}});return{tooltip:{trigger:"item",formatter:function(e){var t,n,i,o;return Xu(t=Xu(n=Xu(i=Xu(o="".concat(r.$dot(e.color))).call(o,e.seriesName,"<br/>")).call(i,e.name,": ")).call(n,e.value," (")).call(t,e.percent,"%)")}},legend:{orient:"vertical",left:"left",top:"middle"},series:[r.$baseSeries("pie",{name:r.cherry.locale.pieData,radius:["40%","70%"],center:["50%","50%"],avoidLabelOverlap:!1,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"18",fontWeight:"bold"},itemStyle:{shadowBlur:r.$theme().shadow.blur,shadowOffsetX:0,shadowColor:r.$theme().shadow.color,borderWidth:3,borderColor:r.$theme().color.emphasis}},select:{itemStyle:{borderWidth:3,borderColor:r.$theme().color.emphasis,opacity:1}},selectedMode:"single",labelLine:{show:!1},data:i,animationEasing:"cubicOut"})]}}},O0={components:[w0,_0],options:function(e,t){var n=t.engine,r=[],i=!1,o=!1,a=t["cherry:mapping"];if(a&&"object"===ql(a)){var s,l=e.header,c=new EH;gf(l).call(l,function(e,t){c.set(c_(e).call(e),t)});for(var u={fatalErrors:[],warnings:[],columnIndexMap:{}},d=["x","y"],h=["size","group","series"],f=0,p=d;f<p.length;f++){var g=p[f];a[g]||u.fatalErrors.push('Required dimension "'.concat(g,'" is not defined in "cherry:mapping".'))}for(var m=0,v=WW(a);m<v.length;m++){var A=Yy(v[m],2),b=A[0],y=A[1];if(c.has(y))u.columnIndexMap[b]=c.get(y);else{var w,_=Xu(w='Mapping failed for dimension "'.concat(b,'": Column "')).call(w,y,'" not found in table headers.');uh(d).call(d,b)?u.fatalErrors.push(_):uh(h).call(h,b)&&u.warnings.push(_)}}if(u.fatalErrors.length>0)return jC.error('Failed to render scatter chart due to FATAL configuration errors in "cherry:mapping":\n'+"- ".concat(u.fatalErrors.join("\n- "),"\n")+"Available columns are: [".concat(_x(l).call(l,1).join(", "),"]")),{series:[]};u.warnings.length>0&&jC.warn('Scatter chart rendered with WARNINGS due to configuration issues in "cherry:mapping":\n'+"- ".concat(u.warnings.join("\n- "),"\n")+"These optional dimensions have been ignored.");var x=u.columnIndexMap,E=x.x,S=x.y,C=x.size,T=x.group||x.series;i="number"==typeof C,o="number"==typeof T,r=_h(s=e.rows).call(s,function(e){var t,r;return{name:e[0],x:n.$num(e[E]),y:n.$num(e[S]),size:i?n.$num(e[C]):void 0,seriesName:o?c_(t=String(null!==(r=e[T])&&void 0!==r?r:"")).call(t)||"系列1":null}})}else{var k;jC.warn('DEPRECATION WARNING: The scatter chart syntax relying on header keywords is outdated and will be removed in a future version. Please use the "cherry:mapping" option for explicit mapping.\ne.g., Change \'{group,name,x,y,size}\' to \'{ "cherry:mapping": { "x": "X", "y": "Y", "size": "Size", "group": "Group" } }\'');var O=e.header,M=function(e){return lk(O).call(O,function(t,n){return n>0&&OB(e).call(e,function(e){var n;return uh(n=String(t).toLowerCase()).call(n,e)})})},I=M(["x"]),D=M(["y"]),N=M(["size","大小"]),R=M(["series","group","分组","系列"]);R<=0&&O.length>=5&&(R=O.length-1),i=N>0,o=R>0,r=_h(k=e.rows).call(k,function(e){var t,r,a=n.$num(e[I>0?I:1]),s=n.$num(e[D>0?D:2]),l=i?n.$num(e[N]):void 0,c=o?c_(t=String(null!==(r=e[R])&&void 0!==r?r:"")).call(t)||"系列1":null;return{name:e[0],x:a,y:s,size:l,seriesName:c}})}var L=this.buildSeriesFromParsedRows(r,i,o,n);return{tooltip:{trigger:"item",formatter:function(e){var t,r,i,o,a=Yy(e.value||[],2),s=a[0],l=a[1];return Xu(t=Xu(r=Xu(i=Xu(o="".concat(n.$dot(e.color))).call(o,e.seriesName," ")).call(i,e.name,"<br/>x: <strong>")).call(r,s,"</strong><br/>y: <strong>")).call(t,l,"</strong>")}},grid:n.$grid(),xAxis:n.$axis("value"),yAxis:n.$axis("value"),series:L,legend:{data:_h(L).call(L,function(e){return e.name})}}},buildSeriesFromParsedRows:function(e,t,n,r){var i=1/0,o=-1/0;t&&(gf(e).call(e,function(e){"number"!=typeof e.size||h0(e.size)||(i=Math.min(i,e.size),o=Math.max(o,e.size))}),lX(i)&&lX(o)||(i=0,o=0));var a=[];if(n){var s,l=new EH;gf(e).call(e,function(e){var n={value:[e.x,e.y],name:e.name};if(t)if(o===i)n.symbolSize=12;else if("number"!=typeof e.size||h0(e.size))n.symbolSize=10;else{var r=(e.size-i)/(o-i);n.symbolSize=Math.round(6+22*r)}var a=e.seriesName;l.has(a)||l.set(a,[]),l.get(a).push(n)}),a=_h(s=u_(_U(l).call(l))).call(s,function(e){var t=Yy(e,2),n=t[0],i=t[1];return r.$baseSeries("scatter",{name:n,data:i,emphasis:{focus:"series",itemStyle:{shadowBlur:r.$theme().shadow.blur,shadowColor:r.$theme().shadow.color,borderWidth:2,borderColor:r.$theme().color.emphasis}},select:{itemStyle:{borderWidth:2,borderColor:r.$theme().color.emphasis,opacity:1}},selectedMode:"single",animationEasing:"cubicOut"})})}else{var c=_h(e).call(e,function(e){var n={value:[e.x,e.y],name:e.name};if(t)if(o===i)n.symbolSize=12;else if("number"!=typeof e.size||h0(e.size))n.symbolSize=10;else{var r=(e.size-i)/(o-i);n.symbolSize=Math.round(6+22*r)}return n});a=[r.$baseSeries("scatter",{name:r.cherry.locale.scatterData,data:c,emphasis:{focus:"series",itemStyle:{borderWidth:2,borderColor:r.$theme().color.emphasis}},select:{itemStyle:{borderWidth:2,borderColor:r.$theme().color.emphasis,opacity:1}},selectedMode:"single",animationEasing:"cubicOut"})]}return a}},M0={components:[w0],options:function(e,t){var n,r,i=t.engine,o=[],a=new yj;gf(n=e.rows).call(n,function(e){var t,n,r=c_(t=String(e[0]||"")).call(t),s=c_(n=String(e[1]||"")).call(n),l=i.$num(e[2]);r&&s&&l>0&&(o.push({source:r,target:s,value:l}),a.add(r),a.add(s))});var s=_h(r=u_(a)).call(r,function(e){return{name:e}});return{tooltip:{trigger:"item"},series:[i.$baseSeries("sankey",{layout:"none",emphasis:{focus:"adjacency"},data:s,links:o,orient:"horizontal",label:{show:!0,position:"right",fontSize:i.$theme().fontSize.base,color:i.$theme().color.text},lineStyle:{color:"source",curveness:.5}})],color:i.$palette("sankey")}}},I0={options:function(e,t){var n,r=t.engine;return void 0===window.echarts?{title:{text:Xu(n="".concat(r.cherry.locale.chartRenderError," : ")).call(n,r.cherry.locale.chartLibraryNotLoadedTip),left:"center",textStyle:{color:r.$theme().color.error}}}:{title:{text:"".concat(r.cherry.locale.mapChartLoading,"..."),left:"center",top:"middle",textStyle:{color:r.$theme().color.text,fontSize:r.$theme().fontSize.title}},graphic:{elements:[{type:"text",left:"center",top:"60%",style:{text:r.cherry.locale.mapChartLoadingTip,font:"12px sans-serif",fill:r.$theme().color.text,opacity:.7}}]}}}},D0={components:[w0],options:function(e,t){var n,r=t.engine,i=_h(n=e.rows).call(n,function(e){var t=e[0];return{name:B0(t),value:r.$num(e[1])}});return{"tooltip.formatter":function(e){var t;return Xu(t="".concat(e.name,": ")).call(t,e.value||0)},visualMap:{min:Math.min.apply(Math,DI(_h(i).call(i,function(e){return e.value}))),max:Math.max.apply(Math,DI(_h(i).call(i,function(e){return e.value}))),left:"left",top:"bottom",text:[r.cherry.locale.high,r.cherry.locale.low],calculable:!0,inRange:{color:r.$palette("map")},textStyle:{color:r.$theme().color.text,fontSize:r.$theme().fontSize.base}},series:[{name:r.cherry.locale.mapData,type:"map",map:t.mapDataSource||"china",roam:!0,label:{show:!0,fontSize:r.$theme().fontSize.base},data:i,emphasis:{label:{show:!0,fontSize:r.$theme().fontSize.base,fontWeight:"bold"},itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:r.$theme().shadow.color}}}]}}},N0={options:function(e,t){var n=t.engine;return{title:{text:n.cherry.locale.mapChartError,subtext:n.cherry.locale.mapChartErrorTip,left:"center",top:"40%",textStyle:{fontSize:n.$theme().fontSize.title,color:n.$theme().color.error},subtextStyle:{fontSize:n.$theme().fontSize.base,color:n.$theme().color.text,opacity:.7}},graphic:{type:"text",left:"center",top:"60%",style:{text:n.cherry.locale.mapChartRetry,fontSize:n.$theme().fontSize.base,fill:n.$theme().color.primary,cursor:"pointer"},onclick:function(){var e=document.querySelector('[id="'.concat(t.chartId,'"][data-chart-type="map"]'));R0.$showChartWithHandler(e,t,I0),R0.$loadMapData(null,t)}}}}},R0={options:function(e,t){var n=t&&t.mapDataSource?t.mapDataSource:null,r=document.querySelector('[id="'.concat(t.chartId,'"][data-chart-type="map"]'));if(r&&"failed"===r.getAttribute("data-map-status"))return P0(N0,e,t);if(n)return window.echarts&&window.echarts.getMap&&window.echarts.getMap(n)?P0(D0,e,t):(this.$loadMapData(e,t),P0(I0,e,t));var i,o=!1,a=null,s=p0(this.$getAllPossibleMapSources(t));try{for(s.s();!(i=s.n()).done;){var l=i.value;if(window.echarts&&window.echarts.getMap&&window.echarts.getMap(l)){o=!0,a=l;break}}}catch(e){s.e(e)}finally{s.f()}if(o){var c=v0(v0({},t),{},{mapDataSource:a});return P0(D0,e,c)}return this.$loadMapData(e,t),P0(I0,e,t)},$getAllPossibleMapSources:function(e){var t,n,r,i,o,a=[];return e&&e.mapDataSource&&a.push(e.mapDataSource),null!=e&&null!==(t=e.engine)&&void 0!==t&&null!==(n=t.cherryOptions)&&void 0!==n&&null!==(r=n.toolbars)&&void 0!==r&&null!==(i=r.config)&&void 0!==i&&null!==(o=i.mapTable)&&void 0!==o&&o.sourceUrl&&(a=Xu(a).call(a,e.engine.cherryOptions.toolbars.config.mapTable.sourceUrl)),Xu(a).call(a,["https://geo.datav.aliyun.com/areas_v3/bound/100000_full.json","./assets/data/china.json"])},$loadMapData:function(e,t){var n=this.$getAllPossibleMapSources(t);if(t&&t.chartId){var r=document.querySelector('[id="'.concat(t.chartId,'"][data-chart-type="map"]'));r&&r.setAttribute("data-map-status","loading")}n&&0!==n.length?this.$tryLoadMapDataFromPaths(n,0,t):this.$handleMapLoadFailure(t)},$tryLoadMapDataFromPaths:function(e,t,n){var r=this;if(t>=e.length)this.$handleMapLoadFailure(n);else{var i=e[t];this.$fetchMapData(i).then(function(e){return window.echarts.registerMap(i,e),r.$refreshMapChart(n.chartId,i,n.engine),e}).catch(function(e){jC.warn("Map data loading failed (".concat(i,"):"),e.message),r.$handleMapLoadFailure(n)})}},$handleMapLoadFailure:function(e){if(e&&e.chartId){var t=document.querySelector('[id="'.concat(e.chartId,'"][data-chart-type="map"]'));t&&(t.setAttribute("data-map-status","failed"),this.$showChartWithHandler(t,e,N0))}},$showChartWithHandler:function(e,t,n){if(t.engine&&t.engine.echartsRef){var r=P0(n,null,t),i=t.engine.echartsRef.getInstanceByDom(e);i?i.setOption(r,!0):t.engine.createChart(e,r,"map")}},$fetchMapData:function(e){return yz(iW.mark(function t(){var n,r;return iW.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(e,{referrerPolicy:"no-referrer"});case 2:if((n=t.sent).ok){t.next=5;break}throw new Error(Xu(r="HTTP error! status: ".concat(n.status," for ")).call(r,e));case 5:return t.next=7,n.json();case 7:return t.abrupt("return",t.sent);case 8:case"end":return t.stop()}},t)}))()},$refreshMapChart:function(e,t,n){var r=document.querySelector('[id="'.concat(e,'"][data-chart-type="map"]')),i=r.getAttribute("data-table-data"),o=r.getAttribute("data-chart-options");if(i&&n.echartsRef)try{var a=JSON.parse(i),s=o?JSON.parse(o):{};s.engine=n,F0(s,{mapDataSource:t});var l=P0(D0,a,s),c=n.echartsRef.getInstanceByDom(r);c?(c.clear(),c.setOption(l,!0)):n.createChart(r,l,"map"),r.setAttribute("data-map-status","success")}catch(e){}}},L0={"北京":"北京市","天津":"天津市","上海":"上海市","重庆":"重庆市","河北":"河北省","山西":"山西省","辽宁":"辽宁省","吉林":"吉林省","黑龙江":"黑龙江省","江苏":"江苏省","浙江":"浙江省","安徽":"安徽省","福建":"福建省","江西":"江西省","山东":"山东省","河南":"河南省","湖北":"湖北省","湖南":"湖南省","广东":"广东省","海南":"海南省","四川":"四川省","贵州":"贵州省","云南":"云南省","陕西":"陕西省","甘肃":"甘肃省","青海":"青海省","台湾":"台湾省","内蒙古":"内蒙古自治区","广西":"广西壮族自治区","西藏":"西藏自治区","宁夏":"宁夏回族自治区","新疆":"新疆维吾尔自治区","香港":"香港特别行政区","澳门":"澳门特别行政区"},B0=function(e){var t=c_(e).call(e);if(L0[t])return L0[t];if(AF(t).call(t,"市")||AF(t).call(t,"省")||AF(t).call(t,"自治区")||AF(t).call(t,"特别行政区"))return t;for(var n=0,r=WW(L0);n<r.length;n++){var i=Yy(r[n],2),o=i[0],a=i[1];if(uh(a).call(a,t)||uh(t).call(t,o))return a}return t};function P0(e,t,n){var r;if(e.components&&0!==e.components.length){var i;r=P0(e.components[0],t,n);var o,a=p0(_x(i=e.components).call(i,1));try{for(a.s();!(o=a.n()).done;)F0(r,P0(o.value,t,n))}catch(e){a.e(e)}finally{a.f()}}else r={};return F0(r,e.options(t,n)),r}function F0(e,t){for(var n=0,r=$h(t);n<r.length;n++){var i=r[n];if(Object.prototype.hasOwnProperty.call(t,i)){var o,a=i.split("."),s=e,l=p0(_x(a).call(a,0,-1));try{for(l.s();!(o=l.n()).done;){var c=o.value;"object"===ql(s[c])&&null!==s[c]&&void 0!==s[c]||(s[c]={}),s=s[c]}}catch(e){l.e(e)}finally{l.f()}var u=a[a.length-1];if(QC(s)&&"$item"===u){var d,h=p0(s);try{for(h.s();!(d=h.n()).done;)F0(d.value,t[i])}catch(e){h.e(e)}finally{h.f()}}else"object"===ql(s[u])&&"object"===ql(t[i])?F0(s[u],t[i]):s[u]=t[i]}}return e}function $0(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from("string"==typeof e?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){var t,n;return null!==(n=null===(t=e.match(/[\t ]/g))||void 0===t?void 0:t.length)&&void 0!==n?n:0})):e},[]);if(i.length){var o=new RegExp("\n[\t ]{"+Math.min.apply(Math,i)+"}","g");r=r.map(function(e){return e.replace(o,"\n")})}r[0]=r[0].replace(/^\r?\n/,"");var a=r[0];return t.forEach(function(e,t){var n=a.match(/(?:^|\n)( *)$/),i=n?n[1]:"",o=e;"string"==typeof e&&e.includes("\n")&&(o=String(e).split("\n").map(function(e,t){return 0===t?e:""+i+e}).join("\n")),a+=o+r[t+1]}),a}var j0,H0,U0={exports:{}},Q0=(j0||(j0=1,U0.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",h="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},A={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),o=n-i<0,a=t.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:h,h:a,m:o,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",y={};y[b]=m;var w="$isDayjsObject",_=function(e){return e instanceof C||!(!e||!e[w])},x=function e(t,n,r){var i;if(!t)return b;if("string"==typeof t){var o=t.toLowerCase();y[o]&&(i=o),n&&(y[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;y[s]=t,i=s}return!r&&i&&(b=i),i||!r&&b},E=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new C(n)},S=A;S.l=x,S.i=_,S.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function m(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return S},v.isValid=function(){return!(this.$d.toString()===f)},v.isSame=function(e,t){var n=E(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return E(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<E(e)},v.$g=function(e,t,n){return S.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!S.u(t)||t,u=S.p(e),f=function(e,t){var i=S.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},p=function(e,t){return S.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,m=this.$M,v=this.$D,A="set"+(this.$u?"UTC":"");switch(u){case d:return r?f(1,0):f(31,11);case c:return r?f(1,m):f(0,m+1);case l:var b=this.$locale().weekStart||0,y=(g<b?g+7:g)-b;return f(r?v-y:v+(6-y),m);case s:case h:return p(A+"Hours",0);case a:return p(A+"Minutes",1);case o:return p(A+"Seconds",2);case i:return p(A+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=S.p(e),u="set"+(this.$u?"UTC":""),f=(n={},n[s]=u+"Date",n[h]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],p=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var g=this.clone().set(h,1);g.$d[f](p),g.init(),this.$d=g.set(h,Math.min(this.$D,g.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[S.p(e)]()},v.add=function(r,u){var h,f=this;r=Number(r);var p=S.p(u),g=function(e){var t=E(f);return S.w(t.date(t.date()+Math.round(e*r)),f)};if(p===c)return this.set(c,this.$M+r);if(p===d)return this.set(d,this.$y+r);if(p===s)return g(1);if(p===l)return g(7);var m=(h={},h[o]=t,h[a]=n,h[i]=e,h)[p]||1,v=this.$d.getTime()+r*m;return S.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},h=function(e){return S.s(o%12||12,e,"0")},p=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(g,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return S.s(t.$y,4,"0");case"M":return s+1;case"MM":return S.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return S.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return S.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return p(o,a,!0);case"A":return p(o,a,!1);case"m":return String(a);case"mm":return S.s(a,2,"0");case"s":return String(t.$s);case"ss":return S.s(t.$s,2,"0");case"SSS":return S.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,h,f){var p,g=this,m=S.p(h),v=E(r),A=(v.utcOffset()-this.utcOffset())*t,b=this-v,y=function(){return S.m(g,v)};switch(m){case d:p=y()/12;break;case c:p=y();break;case u:p=y()/3;break;case l:p=(b-A)/6048e5;break;case s:p=(b-A)/864e5;break;case a:p=b/n;break;case o:p=b/t;break;case i:p=b/e;break;default:p=b}return f?p:S.a(p)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return y[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=x(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return S.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),T=C.prototype;return E.prototype=T,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",c],["$y",d],["$D",h]].forEach(function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),E.extend=function(e,t){return e.$i||(e(t,C,E),e.$i=!0),E},E.locale=x,E.isDayjs=_,E.unix=function(e){return E(1e3*e)},E.en=y[b],E.Ls=y,E.p={},E}()),U0.exports),z0=i(Q0),W0={},G0=(H0||(H0=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=e.BLANK_URL=void 0;var t=/^([^\w]*)(javascript|data|vbscript)/im,n=/&#(\w+)(^\w|;)?/g,r=/&(newline|tab);/gi,i=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,o=/^.+(:|&colon;)/gim,a=[".","/"];e.BLANK_URL="about:blank",e.sanitizeUrl=function(s){if(!s)return e.BLANK_URL;var l=function(e){return e.replace(i,"").replace(n,function(e,t){return String.fromCharCode(t)})}(s).replace(r,"").replace(i,"").trim();if(!l)return e.BLANK_URL;if(function(e){return a.indexOf(e[0])>-1}(l))return l;var c=l.match(o);if(!c)return l;var u=c[0];return t.test(u)?e.BLANK_URL:l}}(W0)),W0);function V0(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function K0(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Y0(e){var t,n,r;function i(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(i<o){if(0!==t(r,r))return o;do{var a=i+o>>>1;n(e[a],r)<0?i=a+1:o=a}while(i<o)}return i}return 2!==e.length?(t=V0,n=function(t,n){return V0(e(t),n)},r=function(t,n){return e(t)-n}):(t=e===V0||e===K0?e:q0,n=e,r=e),{left:i,center:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=i(e,t,n,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length)-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o},right:function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(i<o){if(0!==t(r,r))return o;do{var a=i+o>>>1;n(e[a],r)<=0?i=a+1:o=a}while(i<o)}return i}}}function q0(){return 0}var X0,J0,Z0,e1,t1,n1,r1,i1,o1,a1=Y0(V0).right;Y0(function(e){return null===e?NaN:+e}).center;class s1 extends Map{constructor(e,t=c1){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[n,r]of e)this.set(n,r)}get(e){return super.get(l1(this,e))}has(e){return super.has(l1(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function l1({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function c1(e){return null!==e&&"object"==typeof e?e.valueOf():e}function u1(){if(J0)return X0;J0=1;var e=Math.log,t=Math.LOG10E;return X0=Math.log10||function(n){return e(n)*t},X0}function d1(){return t1?e1:(t1=1,Z0||(Z0=1,sn()({target:"Math",stat:!0},{log10:u1()})),e1=Me().Math.log10)}function h1(){return r1?n1:(r1=1,n1=d1())}var f1=i(o1?i1:(o1=1,i1=h1())),p1=Math.sqrt(50),g1=Math.sqrt(10),m1=Math.sqrt(2);function v1(e,t,n){var r,i,o,a=(t-e)/Math.max(0,n),s=Math.floor(f1(a)),l=a/Math.pow(10,s),c=l>=p1?10:l>=g1?5:l>=m1?2:1;return s<0?(o=Math.pow(10,-s)/c,(r=Math.round(e*o))/o<e&&++r,(i=Math.round(t*o))/o>t&&--i,o=-o):(o=Math.pow(10,s)*c,(r=Math.round(e/o))*o<e&&++r,(i=Math.round(t/o))*o>t&&--i),i<r&&.5<=n&&n<2?v1(e,t,2*n):[r,i,o]}function A1(e,t,n){return v1(e=+e,t=+t,n=+n)[2]}function b1(e,t,n){n=+n;var r=(t=+t)<(e=+e),i=r?A1(t,e,n):A1(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function y1(e,t){var n=void 0!==HC&&UC(e)||e["@@iterator"];if(!n){if(QC(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return w1(e,t);var r=_x(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u_(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w1(e,t):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function w1(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _1(e,t){var n;if(void 0===t){var r,i=y1(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;null!=o&&(n<o||void 0===n&&o>=o)&&(n=o)}}catch(e){i.e(e)}finally{i.f()}}else{var a,s=-1,l=y1(e);try{for(l.s();!(a=l.n()).done;){var c=a.value;null!=(c=t(c,++s,e))&&(n<c||void 0===n&&c>=c)&&(n=c)}}catch(e){l.e(e)}finally{l.f()}}return n}function x1(e,t){var n=void 0!==HC&&UC(e)||e["@@iterator"];if(!n){if(QC(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return E1(e,t);var r=_x(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u_(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E1(e,t):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function E1(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function S1(e,t){var n;if(void 0===t){var r,i=x1(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;null!=o&&(n>o||void 0===n&&o>=o)&&(n=o)}}catch(e){i.e(e)}finally{i.f()}}else{var a,s=-1,l=x1(e);try{for(l.s();!(a=l.n()).done;){var c=a.value;null!=(c=t(c,++s,e))&&(n>c||void 0===n&&c>=c)&&(n=c)}}catch(e){l.e(e)}finally{l.f()}}return n}function C1(e){return e}var T1=1e-6;function k1(e){return"translate("+e+",0)"}function O1(e){return"translate(0,"+e+")"}function M1(e){return function(t){return+e(t)}}function I1(e,t){return t=Math.max(0,e.bandwidth()-2*t)/2,e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function D1(){return!this.__axis}function N1(e,t){var n=[],r=null,i=null,o=6,a=6,s=3,l="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,c=1===e||4===e?-1:1,u=4===e||2===e?"x":"y",d=1===e||3===e?k1:O1;function h(h){var f=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,p=null==i?t.tickFormat?t.tickFormat.apply(t,n):C1:i,g=Math.max(o,0)+s,m=t.range(),v=+m[0]+l,A=+m[m.length-1]+l,b=(t.bandwidth?I1:M1)(t.copy(),l),y=h.selection?h.selection():h,w=y.selectAll(".domain").data([null]),_=y.selectAll(".tick").data(f,t).order(),x=_.exit(),E=_.enter().append("g").attr("class","tick"),S=_.select("line"),C=_.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),_=_.merge(E),S=S.merge(E.append("line").attr("stroke","currentColor").attr(u+"2",c*o)),C=C.merge(E.append("text").attr("fill","currentColor").attr(u,c*g).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),h!==y&&(w=w.transition(h),_=_.transition(h),S=S.transition(h),C=C.transition(h),x=x.transition(h).attr("opacity",T1).attr("transform",function(e){return isFinite(e=b(e))?d(e+l):this.getAttribute("transform")}),E.attr("opacity",T1).attr("transform",function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:b(e))+l)})),x.remove(),w.attr("d",4===e||2===e?a?"M"+c*a+","+v+"H"+l+"V"+A+"H"+c*a:"M"+l+","+v+"V"+A:a?"M"+v+","+c*a+"V"+l+"H"+A+"V"+c*a:"M"+v+","+l+"H"+A),_.attr("opacity",1).attr("transform",function(e){return d(b(e)+l)}),S.attr(u+"2",c*o),C.attr(u,c*g).text(p),uo(y).call(y,D1).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),y.each(function(){this.__axis=b})}return h.scale=function(e){return arguments.length?(t=e,h):t},h.ticks=function(){return n=u_(arguments),h},h.tickArguments=function(e){return arguments.length?(n=null==e?[]:u_(e),h):_x(n).call(n)},h.tickValues=function(e){return arguments.length?(r=null==e?null:u_(e),h):r&&_x(r).call(r)},h.tickFormat=function(e){return arguments.length?(i=e,h):i},h.tickSize=function(e){return arguments.length?(o=a=+e,h):o},h.tickSizeInner=function(e){return arguments.length?(o=+e,h):o},h.tickSizeOuter=function(e){return arguments.length?(a=+e,h):a},h.tickPadding=function(e){return arguments.length?(s=+e,h):s},h.offset=function(e){return arguments.length?(l=+e,h):l},h}var R1={value:function(){}};function L1(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new B1(r)}function B1(e){this._=e}function P1(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function F1(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){var o;e[r]=R1,e=Xu(o=_x(e).call(e,0,r)).call(o,_x(e).call(e,r+1));break}return null!=n&&e.push({name:t,value:n}),e}B1.prototype=L1.prototype={constructor:B1,on:function(e,t){var n,r=this._,i=function(e,t){var n;return _h(n=c_(e).call(e).split(/^|\s+/)).call(n,function(e){var n="",r=yx(e).call(e,".");if(r>=0&&(n=_x(e).call(e,r+1),e=_x(e).call(e,0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}})}(e+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++o<a;)if(n=(e=i[o]).type)r[n]=F1(r[n],e.name,t);else if(null==t)for(n in r)r[n]=F1(r[n],e.name,null);return this}for(;++o<a;)if((n=(e=i[o]).type)&&(n=P1(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t){var r;e[n]=_x(r=t[n]).call(r)}return new B1(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(r=this._[e]).length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var $1,j1,H1="http://www.w3.org/1999/xhtml",U1={svg:"http://www.w3.org/2000/svg",xhtml:H1,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Q1(e){var t=e+="",n=yx(t).call(t,":");return n>=0&&"xmlns"!==(t=_x(e).call(e,0,n))&&(e=_x(e).call(e,n+1)),U1.hasOwnProperty(t)?{space:U1[t],local:e}:e}function z1(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===H1&&t.documentElement.namespaceURI===H1?t.createElement(e):t.createElementNS(n,e)}}function W1(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function G1(e){var t=Q1(e);return(t.local?W1:z1)(t)}var V1=i(j1?$1:(j1=1,$1=Ll()));function K1(){}function Y1(e){return null==e?K1:function(){return this.querySelector(e)}}function q1(e){return null==e?[]:QC(e)?e:u_(e)}function X1(){return[]}function J1(e){return null==e?X1:function(){return this.querySelectorAll(e)}}function Z1(e){return function(){return this.matches(e)}}function e2(e){return function(t){return t.matches(e)}}var t2=zw(Array.prototype);function n2(){return this.firstElementChild}var r2=uo(Array.prototype);function i2(){return u_(this.children)}function o2(e){return new Array(e.length)}function a2(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function s2(e,t,n,r,i,o){for(var a,s=0,l=t.length,c=o.length;s<c;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new a2(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function l2(e,t,n,r,i,o,a){var s,l,c,u=new EH,d=t.length,h=o.length,f=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(f[s]=c=a.call(l,l.__data__,s,t)+"",u.has(c)?i[s]=l:u.set(c,l));for(s=0;s<h;++s)c=a.call(e,o[s],s,o)+"",(l=u.get(c))?(r[s]=l,l.__data__=o[s],u.delete(c)):n[s]=new a2(e,o[s]);for(s=0;s<d;++s)(l=t[s])&&u.get(f[s])===l&&(i[s]=l)}function c2(e){return e.__data__}function u2(e){return"object"===ql(e)&&"length"in e?e:u_(e)}function d2(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function h2(e,t){var n=void 0!==HC&&UC(e)||e["@@iterator"];if(!n){if(QC(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return f2(e,t);var r=_x(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u_(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f2(e,t):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function f2(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p2(e){return function(){this.removeAttribute(e)}}function g2(e){return function(){this.removeAttributeNS(e.space,e.local)}}function m2(e,t){return function(){this.setAttribute(e,t)}}function v2(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function A2(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function b2(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function y2(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function w2(e){return function(){this.style.removeProperty(e)}}function _2(e,t,n){return function(){this.style.setProperty(e,t,n)}}function x2(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function E2(e,t){return e.style.getPropertyValue(t)||y2(e).getComputedStyle(e,null).getPropertyValue(t)}function S2(e){return function(){delete this[e]}}function C2(e,t){return function(){this[e]=t}}function T2(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function k2(e){return c_(e).call(e).split(/^|\s+/)}function O2(e){return e.classList||new M2(e)}function M2(e){this._node=e,this._names=k2(e.getAttribute("class")||"")}function I2(e,t){for(var n=O2(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function D2(e,t){for(var n=O2(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function N2(e){return function(){I2(this,e)}}function R2(e){return function(){D2(this,e)}}function L2(e,t){return function(){(t.apply(this,arguments)?I2:D2)(this,e)}}function B2(){this.textContent=""}function P2(e){return function(){this.textContent=e}}function F2(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function $2(){this.innerHTML=""}function j2(e){return function(){this.innerHTML=e}}function H2(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function U2(){this.nextSibling&&this.parentNode.appendChild(this)}function Q2(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function z2(){return null}function W2(){var e=this.parentNode;e&&e.removeChild(this)}function G2(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function V2(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function K2(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?t.length=i:delete this.__on}}}function Y2(e,t,n){return function(){var r,i=this.__on,o=function(e){return function(t){e.call(this,t,this.__data__)}}(t);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===e.type&&r.name===e.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=t);this.addEventListener(e.type,o,n),r={type:e.type,name:e.name,value:t,listener:o,options:n},i?i.push(r):this.__on=[r]}}function q2(e,t,n){var r=y2(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function X2(e,t){return function(){return q2(this,e,t)}}function J2(e,t){return function(){return q2(this,e,t.apply(this,arguments))}}a2.prototype={constructor:a2,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},M2.prototype={add:function(e){var t;yx(t=this._names).call(t,e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t,n,r=yx(t=this._names).call(t,e);r>=0&&(pk(n=this._names).call(n,r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){var t;return yx(t=this._names).call(t,e)>=0}};var Z2=iW.mark(e3);function e3(){var e,t,n,r,i,o,a;return iW.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:e=this._groups,t=0,n=e.length;case 1:if(!(t<n)){s.next=13;break}r=e[t],i=0,o=r.length;case 3:if(!(i<o)){s.next=10;break}if(!(a=r[i])){s.next=7;break}return s.next=7,a;case 7:++i,s.next=3;break;case 10:++t,s.next=1;break;case 13:case"end":return s.stop()}},Z2,this)}var t3,n3,r3,i3,o3,a3,s3,l3,c3,u3,d3,h3,f3,p3,g3,m3=[null];function v3(e,t){this._groups=e,this._parents=t}function A3(){return new v3([[document.documentElement]],m3)}function b3(e){return"string"==typeof e?new v3([[document.querySelector(e)]],[document.documentElement]):new v3([[e]],m3)}function y3(e){return"string"==typeof e?new v3([document.querySelectorAll(e)],[document.documentElement]):new v3([q1(e)],m3)}function w3(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _3(e,t){var n=wx(e.prototype);for(var r in t)n[r]=t[r];return n}function x3(){}v3.prototype=A3.prototype=Fu({constructor:v3,select:function(e){"function"!=typeof e&&(e=Y1(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],l=s.length,c=r[i]=new Array(l),u=0;u<l;++u)(o=s[u])&&(a=e.call(o,o.__data__,u,s))&&("__data__"in o&&(a.__data__=o.__data__),c[u]=a);return new v3(r,this._parents)},selectAll:function(e){e="function"==typeof e?function(e){return function(){return q1(e.apply(this,arguments))}}(e):J1(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],l=s.length,c=0;c<l;++c)(a=s[c])&&(r.push(e.call(a,a.__data__,c,s)),i.push(a));return new v3(r,i)},selectChild:function(e){return this.select(null==e?n2:function(e){return function(){return t2.call(this.children,e)}}("function"==typeof e?e:e2(e)))},selectChildren:function(e){return this.selectAll(null==e?i2:function(e){return function(){return r2.call(this.children,e)}}("function"==typeof e?e:e2(e)))},filter:function(e){"function"!=typeof e&&(e=Z1(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&l.push(o);return new v3(r,this._parents)},data:function(e,t){if(!arguments.length)return u_(this,c2);var n=t?l2:s2,r=this._parents,i=this._groups;"function"!=typeof e&&(e=function(e){return function(){return e}}(e));for(var o=i.length,a=new Array(o),s=new Array(o),l=new Array(o),c=0;c<o;++c){var u=r[c],d=i[c],h=d.length,f=u2(e.call(u,u&&u.__data__,c,r)),p=f.length,g=s[c]=new Array(p),m=a[c]=new Array(p);n(u,d,g,m,l[c]=new Array(h),f,t);for(var v,A,b=0,y=0;b<p;++b)if(v=g[b]){for(b>=y&&(y=b+1);!(A=m[y])&&++y<p;);v._next=A||null}}return(a=new v3(a,r))._enter=s,a._exit=l,a},enter:function(){var e;return new v3(this._enter||_h(e=this._groups).call(e,o2),this._parents)},exit:function(){var e;return new v3(this._exit||_h(e=this._groups).call(e,o2),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof e?(r=e(r))&&(r=r.selection()):r=r.append(e+""),null!=t&&(i=t(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var c,u=n[l],d=r[l],h=u.length,f=s[l]=new Array(h),p=0;p<h;++p)(c=u[p]||d[p])&&(f[p]=c);for(;l<i;++l)s[l]=n[l];return new v3(s,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=d2);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,c=i[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);bG(c).call(c,t)}return new v3(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return u_(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var e,t=0,n=h2(this);try{for(n.s();!(e=n.n()).done;)e.value,++t}catch(e){n.e(e)}finally{n.f()}return t},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=Q1(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?g2:p2:"function"==typeof t?n.local?b2:A2:n.local?v2:m2)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?w2:"function"==typeof t?x2:_2)(e,t,null==n?"":n)):E2(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?S2:"function"==typeof t?T2:C2)(e,t)):this.node()[e]},classed:function(e,t){var n=k2(e+"");if(arguments.length<2){for(var r=O2(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?L2:t?N2:R2)(n,t))},text:function(e){return arguments.length?this.each(null==e?B2:("function"==typeof e?F2:P2)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?$2:("function"==typeof e?H2:j2)(e)):this.node().innerHTML},raise:function(){return this.each(U2)},lower:function(){return this.each(Q2)},append:function(e){var t="function"==typeof e?e:G1(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:G1(e),r=null==t?z2:"function"==typeof t?t:Y1(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(W2)},clone:function(e){return this.select(e?V2:G2)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=function(e){var t;return _h(t=c_(e).call(e).split(/^|\s+/)).call(t,function(e){var t="",n=yx(e).call(e,".");return n>=0&&(t=_x(e).call(e,n+1),e=_x(e).call(e,0,n)),{type:e,name:t}})}(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?Y2:K2,r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?J2:X2)(e,t))}},V1,e3);var E3=.7,S3=1/E3,C3="\\s*([+-]?\\d+)\\s*",T3="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",k3="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",O3=/^#([0-9a-f]{3,8})$/,M3=new RegExp(Xu(t3=Xu(n3="^rgb\\(".concat(C3,",")).call(n3,C3,",")).call(t3,C3,"\\)$")),I3=new RegExp(Xu(r3=Xu(i3="^rgb\\(".concat(k3,",")).call(i3,k3,",")).call(r3,k3,"\\)$")),D3=new RegExp(Xu(o3=Xu(a3=Xu(s3="^rgba\\(".concat(C3,",")).call(s3,C3,",")).call(a3,C3,",")).call(o3,T3,"\\)$")),N3=new RegExp(Xu(l3=Xu(c3=Xu(u3="^rgba\\(".concat(k3,",")).call(u3,k3,",")).call(c3,k3,",")).call(l3,T3,"\\)$")),R3=new RegExp(Xu(d3=Xu(h3="^hsl\\(".concat(T3,",")).call(h3,k3,",")).call(d3,k3,"\\)$")),L3=new RegExp(Xu(f3=Xu(p3=Xu(g3="^hsla\\(".concat(T3,",")).call(g3,k3,",")).call(p3,k3,",")).call(f3,T3,"\\)$")),B3={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function P3(){return this.rgb().formatHex()}function F3(){return this.rgb().formatRgb()}function $3(e){var t,n,r;return e=c_(t=e+"").call(t).toLowerCase(),(n=O3.exec(e))?(r=n[1].length,n=Bx(n[1],16),6===r?j3(n):3===r?new z3(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===r?H3(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===r?H3(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=M3.exec(e))?new z3(n[1],n[2],n[3],1):(n=I3.exec(e))?new z3(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=D3.exec(e))?H3(n[1],n[2],n[3],n[4]):(n=N3.exec(e))?H3(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=R3.exec(e))?q3(n[1],n[2]/100,n[3]/100,1):(n=L3.exec(e))?q3(n[1],n[2]/100,n[3]/100,n[4]):B3.hasOwnProperty(e)?j3(B3[e]):"transparent"===e?new z3(NaN,NaN,NaN,0):null}function j3(e){return new z3(e>>16&255,e>>8&255,255&e,1)}function H3(e,t,n,r){return r<=0&&(e=t=n=NaN),new z3(e,t,n,r)}function U3(e){return e instanceof x3||(e=$3(e)),e?new z3((e=e.rgb()).r,e.g,e.b,e.opacity):new z3}function Q3(e,t,n,r){return 1===arguments.length?U3(e):new z3(e,t,n,null==r?1:r)}function z3(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function W3(){var e,t;return Xu(e=Xu(t="#".concat(Y3(this.r))).call(t,Y3(this.g))).call(e,Y3(this.b))}function G3(){var e,t,n,r,i=V3(this.opacity);return Xu(e=Xu(t=Xu(n=Xu(r="".concat(1===i?"rgb(":"rgba(")).call(r,K3(this.r),", ")).call(n,K3(this.g),", ")).call(t,K3(this.b))).call(e,1===i?")":", ".concat(i,")"))}function V3(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function K3(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Y3(e){return((e=K3(e))<16?"0":"")+e.toString(16)}function q3(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new J3(e,t,n,r)}function X3(e){if(e instanceof J3)return new J3(e.h,e.s,e.l,e.opacity);if(e instanceof x3||(e=$3(e)),!e)return new J3;if(e instanceof J3)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new J3(a,s,l,e.opacity)}function J3(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Z3(e){return(e=(e||0)%360)<0?e+360:e}function e4(e){return Math.max(0,Math.min(1,e||0))}function t4(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}w3(x3,$3,{copy:function(e){return Md(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:P3,formatHex:P3,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return X3(this).formatHsl()},formatRgb:F3,toString:F3}),w3(z3,Q3,_3(x3,{brighter:function(e){return e=null==e?S3:Math.pow(S3,e),new z3(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?E3:Math.pow(E3,e),new z3(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},clamp:function(){return new z3(K3(this.r),K3(this.g),K3(this.b),V3(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:W3,formatHex:W3,formatHex8:function(){var e,t,n;return Xu(e=Xu(t=Xu(n="#".concat(Y3(this.r))).call(n,Y3(this.g))).call(t,Y3(this.b))).call(e,Y3(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:G3,toString:G3})),w3(J3,function(e,t,n,r){return 1===arguments.length?X3(e):new J3(e,t,n,null==r?1:r)},_3(x3,{brighter:function(e){return e=null==e?S3:Math.pow(S3,e),new J3(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?E3:Math.pow(E3,e),new J3(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new z3(t4(e>=240?e-240:e+120,i,r),t4(e,i,r),t4(e<120?e+240:e-120,i,r),this.opacity)},clamp:function(){return new J3(Z3(this.h),e4(this.s),e4(this.l),V3(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e,t,n,r,i=V3(this.opacity);return Xu(e=Xu(t=Xu(n=Xu(r="".concat(1===i?"hsl(":"hsla(")).call(r,Z3(this.h),", ")).call(n,100*e4(this.s),"%, ")).call(t,100*e4(this.l),"%")).call(e,1===i?")":", ".concat(i,")"))}}));var n4=Math.PI/180,r4=180/Math.PI,i4=.96422,o4=.82521,a4=4/29,s4=6/29,l4=3*s4*s4,c4=s4*s4*s4;function u4(e){if(e instanceof d4)return new d4(e.l,e.a,e.b,e.opacity);if(e instanceof v4)return A4(e);e instanceof z3||(e=U3(e));var t,n,r=g4(e.r),i=g4(e.g),o=g4(e.b),a=h4((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=h4((.4360747*r+.3850649*i+.1430804*o)/i4),n=h4((.0139322*r+.0971045*i+.7141733*o)/o4)),new d4(116*a-16,500*(t-a),200*(a-n),e.opacity)}function d4(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function h4(e){return e>c4?Math.pow(e,1/3):e/l4+a4}function f4(e){return e>s4?e*e*e:l4*(e-a4)}function p4(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function g4(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function m4(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof v4)return new v4(e.h,e.c,e.l,e.opacity);if(e instanceof d4||(e=u4(e)),0===e.a&&0===e.b)return new v4(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*r4;return new v4(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new v4(e,t,n,null==r?1:r)}function v4(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function A4(e){if(isNaN(e.h))return new d4(e.l,0,0,e.opacity);var t=e.h*n4;return new d4(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}w3(d4,function(e,t,n,r){return 1===arguments.length?u4(e):new d4(e,t,n,null==r?1:r)},_3(x3,{brighter:function(e){return new d4(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new d4(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new z3(p4(3.1338561*(t=i4*f4(t))-1.6168667*(e=1*f4(e))-.4906146*(n=o4*f4(n))),p4(-.9787684*t+1.9161415*e+.033454*n),p4(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),w3(v4,m4,_3(x3,{brighter:function(e){return new v4(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new v4(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return A4(this).rgb()}}));var b4=function(e){return function(){return e}};function y4(e,t){return function(n){return e+n*t}}function w4(e){return 1==(e=+e)?_4:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):b4(isNaN(t)?n:t)}}function _4(e,t){var n=t-e;return n?y4(e,n):b4(isNaN(e)?t:e)}var x4=function e(t){var n=w4(t);function r(e,t){var r=n((e=Q3(e)).r,(t=Q3(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=_4(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function E4(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=_x(t).call(t);return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function S4(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=D4(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function C4(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function T4(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function k4(e,t){var n,r={},i={};for(n in null!==e&&"object"===ql(e)||(e={}),null!==t&&"object"===ql(t)||(t={}),t)n in e?r[n]=D4(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var O4=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,M4=new RegExp(O4.source,"g");function I4(e,t){var n,r,i,o=O4.lastIndex=M4.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=O4.exec(e))&&(r=M4.exec(t));)(i=r.index)>o&&(i=_x(t).call(t,o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:T4(n,r)})),o=M4.lastIndex;return o<t.length&&(i=_x(t).call(t,o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function D4(e,t){var n,r=ql(t);return null==t||"boolean"===r?b4(t):("number"===r?T4:"string"===r?(n=$3(t))?(t=n,x4):I4:t instanceof $3?x4:t instanceof Date?C4:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?E4:QC(t)?S4:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?k4:T4)(e,t)}function N4(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var R4,L4=180/Math.PI,B4={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function P4(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*L4,skewX:Math.atan(l)*L4,scaleX:a,scaleY:s}}function F4(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s=[],l=[];return o=e(o),a=e(a),function(e,r,i,o,a,s){if(e!==i||r!==o){var l=a.push("translate(",null,t,null,n);s.push({i:l-4,x:T4(e,i)},{i:l-2,x:T4(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,l),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:T4(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,l),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:T4(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,l),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:T4(e,n)},{i:s-2,x:T4(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,l),o=a=null,function(e){for(var t,n=-1,r=l.length;++n<r;)s[(t=l[n]).i]=t.x(e);return s.join("")}}}var $4,j4,H4,U4=F4(function(e){var t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?B4:P4(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),Q4=F4(function(e){return null==e?B4:(R4||(R4=document.createElementNS("http://www.w3.org/2000/svg","g")),R4.setAttribute("transform",e),(e=R4.transform.baseVal.consolidate())?P4((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):B4)},", ",")",")"),z4=function(e){return function(t,n){var r=e((t=m4(t)).h,(n=m4(n)).h),i=_4(t.c,n.c),o=_4(t.l,n.l),a=_4(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=o(e),t.opacity=a(e),t+""}}}(function(e,t){var n=t-e;return n?y4(e,n>180||n<-180?n-360*Math.round(n/360):n):b4(isNaN(e)?t:e)}),W4=0,G4=0,V4=0,K4=0,Y4=0,q4=0,X4="object"===("undefined"==typeof performance?"undefined":ql(performance))&&performance.now?performance:Date,J4="object"===("undefined"==typeof window?"undefined":ql(window))&&window.requestAnimationFrame?Ju($4=window.requestAnimationFrame).call($4,window):function(e){_d(e,17)};function Z4(){return Y4||(J4(e5),Y4=X4.now()+q4)}function e5(){Y4=0}function t5(){this._call=this._time=this._next=null}function n5(e,t,n){var r=new t5;return r.restart(e,t,n),r}function r5(){Y4=(K4=X4.now())+q4,W4=G4=0;try{!function(){Z4(),++W4;for(var e,t=j4;t;)(e=Y4-t._time)>=0&&t._call.call(void 0,e),t=t._next;--W4}()}finally{W4=0,function(){for(var e,t,n=j4,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:j4=t);H4=e,o5(r)}(),Y4=0}}function i5(){var e=X4.now(),t=e-K4;t>1e3&&(q4-=t,K4=e)}function o5(e){W4||(G4&&(G4=clearTimeout(G4)),e-Y4>24?(e<1/0&&(G4=_d(r5,e-X4.now()-q4)),V4&&(V4=clearInterval(V4))):(V4||(K4=X4.now(),V4=XG(i5,1e3)),W4=1,J4(r5)))}function a5(e,t,n){var r=new t5;return t=null==t?0:+t,r.restart(function(n){r.stop(),e(n+t)},t,n),r}t5.prototype=n5.prototype={constructor:t5,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?Z4():+n)+(null==t?0:+t),this._next||H4===this||(H4?H4._next=this:j4=this,H4=this),this._call=e,this._time=n,o5()},stop:function(){this._call&&(this._call=null,this._time=1/0,o5())}};var s5=L1("start","end","cancel","interrupt"),l5=[];function c5(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)}function a(o){var c,u,d,h;if(1!==n.state)return l();for(c in i)if((h=i[c]).name===n.name){if(3===h.state)return a5(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[c]):+c<t&&(h.state=6,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete i[c])}if(a5(function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(o))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(d=n.tween.length),c=0,u=-1;c<d;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++u]=h);r.length=u+1}}function s(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=n5(o,0,n.time)}(e,n,{name:t,index:r,group:i,on:s5,tween:l5,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function u5(e,t){var n=h5(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function d5(e,t){var n=h5(e,t);if(n.state>3)throw new Error("too late; already running");return n}function h5(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function f5(e,t){var n,r;return function(){var i=d5(this,e),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===t){r=_x(r).call(r),pk(r).call(r,a,1);break}i.tween=r}}function p5(e,t,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=d5(this,e),a=o.tween;if(a!==r){var s;i=_x(s=r=a).call(s);for(var l={name:t,value:n},c=0,u=i.length;c<u;++c)if(i[c].name===t){i[c]=l;break}c===u&&i.push(l)}o.tween=i}}function g5(e,t,n){var r=e._id;return e.each(function(){var e=d5(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return h5(e,r).value[t]}}function m5(e,t){var n;return("number"==typeof t?T4:t instanceof $3?x4:(n=$3(t))?(t=n,x4):I4)(e,t)}function v5(e){return function(){this.removeAttribute(e)}}function A5(e){return function(){this.removeAttributeNS(e.space,e.local)}}function b5(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttribute(e);return a===o?null:a===r?i:i=t(r=a,n)}}function y5(e,t,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(e.space,e.local);return a===o?null:a===r?i:i=t(r=a,n)}}function w5(e,t,n){var r,i,o;return function(){var a,s,l=n(this);if(null!=l)return(a=this.getAttribute(e))===(s=l+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,l));this.removeAttribute(e)}}function _5(e,t,n){var r,i,o;return function(){var a,s,l=n(this);if(null!=l)return(a=this.getAttributeNS(e.space,e.local))===(s=l+"")?null:a===r&&s===i?o:(i=s,o=t(r=a,l));this.removeAttributeNS(e.space,e.local)}}function x5(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}(e,i)),n}return i._value=t,i}function E5(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}(e,i)),n}return i._value=t,i}function S5(e,t){return function(){u5(this,e).delay=+t.apply(this,arguments)}}function C5(e,t){return t=+t,function(){u5(this,e).delay=t}}function T5(e,t){return function(){d5(this,e).duration=+t.apply(this,arguments)}}function k5(e,t){return t=+t,function(){d5(this,e).duration=t}}function O5(e,t,n){var r,i,o=function(e){var t,n;return LK(t=c_(n=e+"").call(n).split(/^|\s+/)).call(t,function(e){var t=yx(e).call(e,".");return t>=0&&(e=_x(e).call(e,0,t)),!e||"start"===e})}(t)?u5:d5;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}var M5=A3.prototype.constructor;function I5(e){return function(){this.style.removeProperty(e)}}var D5=0;function N5(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function R5(){return++D5}var L5=A3.prototype;N5.prototype=Fu({constructor:N5,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=Y1(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,l,c=r[a],u=c.length,d=o[a]=new Array(u),h=0;h<u;++h)(s=c[h])&&(l=e.call(s,s.__data__,h,c))&&("__data__"in s&&(l.__data__=s.__data__),d[h]=l,c5(d[h],t,n,h,d,h5(s,n)));return new N5(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=J1(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var l,c=r[s],u=c.length,d=0;d<u;++d)if(l=c[d]){for(var h,f=e.call(l,l.__data__,d,c),p=h5(l,n),g=0,m=f.length;g<m;++g)(h=f[g])&&c5(h,t,n,g,f,p);o.push(f),a.push(l)}return new N5(o,a,t,n)},selectChild:L5.selectChild,selectChildren:L5.selectChildren,filter:function(e){"function"!=typeof e&&(e=Z1(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&l.push(o);return new N5(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var l,c=t[s],u=n[s],d=c.length,h=a[s]=new Array(d),f=0;f<d;++f)(l=c[f]||u[f])&&(h[f]=l);for(;s<r;++s)a[s]=t[s];return new N5(a,this._parents,this._name,this._id)},selection:function(){return new M5(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=R5(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,c=0;c<l;++c)if(a=s[c]){var u=h5(a,t);c5(a,e,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new N5(r,this._parents,e,n)},call:L5.call,nodes:L5.nodes,node:L5.node,size:L5.size,empty:L5.empty,each:L5.each,on:function(e,t){var n=this._id;return arguments.length<2?h5(this.node(),n).on.on(e):this.each(O5(n,e,t))},attr:function(e,t){var n=Q1(e),r="transform"===n?Q4:m5;return this.attrTween(e,"function"==typeof t?(n.local?_5:w5)(n,r,g5(this,"attr."+e,t)):null==t?(n.local?A5:v5)(n):(n.local?y5:b5)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=Q1(e);return this.tween(n,(r.local?x5:E5)(r,t))},style:function(e,t,n){var r="transform"==(e+="")?U4:m5;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=E2(this,e),a=(this.style.removeProperty(e),E2(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,I5(e)):"function"==typeof t?this.styleTween(e,function(e,t,n){var r,i,o;return function(){var a=E2(this,e),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(e),l=s=E2(this,e)),a===l?null:a===r&&l===i?o:(i=l,o=t(r=a,s))}}(e,r,g5(this,"style."+e,t))).each(function(e,t){var n,r,i,o,a="style."+t,s="end."+a;return function(){var l=d5(this,e),c=l.on,u=null==l.value[a]?o||(o=I5(t)):void 0;c===n&&i===u||(r=(n=c).copy()).on(s,i=u),l.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,o=n+"";return function(){var a=E2(this,e);return a===o?null:a===r?i:i=t(r=a,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,o,n)),r}return o._value=t,o}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(g5(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,function(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}(e))},remove:function(){return this.on("end.remove",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=h5(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?f5:p5)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?S5:C5)(t,e)):h5(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?T5:k5)(t,e)):h5(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){d5(this,e).ease=t}}(t,e)):h5(this.node(),t).ease},easeVarying:function(e){if("function"!=typeof e)throw new Error;return this.each(function(e,t){return function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw new Error;d5(this,e).ease=n}}(this._id,e))},end:function(){var e,t,n=this,r=n._id,i=n.size();return new SC(function(o,a){var s={value:a},l={value:function(){0==--i&&o()}};n.each(function(){var n=d5(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t}),0===i&&o()})}},V1,UC(L5));var B5,P5,F5,$5={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};function j5(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error("transition ".concat(t," not found"));return n}function H5(e){return{type:e}}A3.prototype.interrupt=function(e){return this.each(function(){!function(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}}(this,e)})},A3.prototype.transition=function(e){var t,n;e instanceof N5?(t=e._id,e=e._name):(t=R5(),(n=$5).time=Z4(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],l=s.length,c=0;c<l;++c)(a=s[c])&&c5(a,e,t,c,s,n||j5(a,t));return new N5(r,this._parents,e,t)},_h(B5=["w","e"]).call(B5,H5),_h(P5=["n","s"]).call(P5,H5),_h(F5=["n","w","e","s","nw","ne","sw","se"]).call(F5,H5);var U5,Q5,z5,W5,G5,V5,K5,Y5,q5,X5,J5,Z5={};function e6(){return z5?Q5:(z5=1,function(){if(U5)return Z5;U5=1;var e=sn(),t=CO(),n=S(),r=Oe(),i=TO().onFreeze,o=Object.freeze;e({target:"Object",stat:!0,forced:n(function(){o(1)}),sham:!t},{freeze:function(e){return o&&r(e)?o(i(e)):e}})}(),Q5=Me().Object.freeze)}function t6(){return G5?W5:(G5=1,W5=e6())}function n6(){return K5?V5:(K5=1,V5=t6())}function r6(){return q5?Y5:(q5=1,Y5=n6())}function i6(){return J5?X5:(J5=1,X5=r6())}var o6,a6,s6,l6,c6,u6,d6=i(i6());function h6(){return a6?o6:(a6=1,o6=zo())}function f6(){return l6?s6:(l6=1,s6=h6())}function p6(){return u6?c6:(u6=1,c6=f6())}var g6,m6,v6,A6,b6,y6,w6,_6,x6,E6,S6,C6,T6,k6,O6=i(p6());function M6(e,t){return t||(t=Dy(e).call(e,0)),d6(O6(e,{raw:{value:d6(t)}}))}var I6=Math.PI,D6=2*I6,N6=1e-6,R6=D6-N6;function L6(e){this._+=e[0];for(var t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}var B6=function(){return mc(function e(t){ua(this,e),this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?L6:function(e){var t=Math.floor(e);if(!(t>=0))throw new Error("invalid digits: ".concat(e));if(t>15)return L6;var n=Math.pow(10,t);return function(e){this._+=e[0];for(var t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(t)},[{key:"moveTo",value:function(e,t){this._append(g6||(g6=M6(["M",",",""])),this._x0=this._x1=+e,this._y0=this._y1=+t)}},{key:"closePath",value:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append(m6||(m6=M6(["Z"]))))}},{key:"lineTo",value:function(e,t){this._append(v6||(v6=M6(["L",",",""])),this._x1=+e,this._y1=+t)}},{key:"quadraticCurveTo",value:function(e,t,n,r){this._append(A6||(A6=M6(["Q",",",",",",",""])),+e,+t,this._x1=+n,this._y1=+r)}},{key:"bezierCurveTo",value:function(e,t,n,r,i,o){this._append(b6||(b6=M6(["C",",",",",",",",",",",""])),+e,+t,+n,+r,this._x1=+i,this._y1=+o)}},{key:"arcTo",value:function(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,(i=+i)<0)throw new Error("negative radius: ".concat(i));var o=this._x1,a=this._y1,s=n-e,l=r-t,c=o-e,u=a-t,d=c*c+u*u;if(null===this._x1)this._append(y6||(y6=M6(["M",",",""])),this._x1=e,this._y1=t);else if(d>N6)if(Math.abs(u*s-l*c)>N6&&i){var h=n-o,f=r-a,p=s*s+l*l,g=h*h+f*f,m=Math.sqrt(p),v=Math.sqrt(d),A=i*Math.tan((I6-Math.acos((p+d-g)/(2*m*v)))/2),b=A/v,y=A/m;Math.abs(b-1)>N6&&this._append(_6||(_6=M6(["L",",",""])),e+b*c,t+b*u),this._append(x6||(x6=M6(["A",",",",0,0,",",",",",""])),i,i,+(u*h>c*f),this._x1=e+y*s,this._y1=t+y*l)}else this._append(w6||(w6=M6(["L",",",""])),this._x1=e,this._y1=t)}},{key:"arc",value:function(e,t,n,r,i,o){if(e=+e,t=+t,o=!!o,(n=+n)<0)throw new Error("negative radius: ".concat(n));var a=n*Math.cos(r),s=n*Math.sin(r),l=e+a,c=t+s,u=1^o,d=o?r-i:i-r;null===this._x1?this._append(E6||(E6=M6(["M",",",""])),l,c):(Math.abs(this._x1-l)>N6||Math.abs(this._y1-c)>N6)&&this._append(S6||(S6=M6(["L",",",""])),l,c),n&&(d<0&&(d=d%D6+D6),d>R6?this._append(C6||(C6=M6(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""])),n,n,u,e-a,t-s,n,n,u,this._x1=l,this._y1=c):d>N6&&this._append(T6||(T6=M6(["A",",",",0,",",",",",",",""])),n,n,+(d>=I6),u,this._x1=e+n*Math.cos(i),this._y1=t+n*Math.sin(i)))}},{key:"rect",value:function(e,t,n,r){this._append(k6||(k6=M6(["M",",","h","v","h","Z"])),this._x0=this._x1=+e,this._y0=this._y1=+t,n=+n,+r,-n)}},{key:"toString",value:function(){return this._}}])}();function P6(e,t){var n;if((r=yx(n=e=t?e.toExponential(t-1):e.toExponential()).call(n,"e"))<0)return null;var r,i=_x(e).call(e,0,r);return[i.length>1?i[0]+_x(i).call(i,2):i,+_x(e).call(e,r+1)]}function F6(e){return(e=P6(Math.abs(e)))?e[1]:NaN}B6.prototype;var $6,j6=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function H6(e){var t,n;if(!(n=j6.exec(e)))throw new Error("invalid format: "+e);return new U6({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&_x(t=n[8]).call(t,1),trim:n[9],type:n[10]})}function U6(e){this.fill=void 0===aB(e)?" ":aB(e)+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!c_(e),this.type=void 0===e.type?"":e.type+""}function Q6(e,t){var n=P6(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?_x(r).call(r,0,i+1)+"."+_x(r).call(r,i+1):r+new Array(i-r.length+2).join("0")}H6.prototype=U6.prototype,U6.prototype.toString=function(){return aB(this)+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(c_(this)?"~":"")+this.type};var z6={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Q6(100*e,t)},r:Q6,s:function(e,t){var n=P6(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-($6=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?_x(r).call(r,0,o)+"."+_x(r).call(r,o):"0."+new Array(1-o).join("0")+P6(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function W6(e){return e}var G6,V6,K6,Y6=_h(Array.prototype),q6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function X6(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?W6:(t=Y6.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return c0(o).call(o).join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?W6:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(Y6.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){e=H6(e);var t=aB(e),n=e.align,d=e.sign,h=e.symbol,f=e.zero,p=e.width,g=e.comma,m=e.precision,v=c_(e),A=e.type;"n"===A?(g=!0,A="g"):z6[A]||(void 0===m&&(m=12),v=!0,A="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(A)?"0"+A.toLowerCase():"",y="$"===h?o:/[%p]/.test(A)?l:"",w=z6[A],_=/[defgprs%]/.test(A);function x(e){var i,o,l,h=b,x=y;if("c"===A)x=w(e)+x,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),m),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?_x(e).call(e,0,i)+_x(e).call(e,t+1):e}(e)),E&&0==+e&&"+"!==d&&(E=!1),h=(E?"("===d?d:c:"-"===d||"("===d?"":d)+h,x=("s"===A?q6[8+$6/3]:"")+x+(E&&"("===d?")":""),_)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){x=(46===l?a+_x(e).call(e,i+1):_x(e).call(e,i))+x,e=_x(e).call(e,0,i);break}}g&&!f&&(e=r(e,1/0));var S=h.length+e.length+x.length,C=S<p?new Array(p-S+1).join(t):"";switch(g&&f&&(e=r(C+e,C.length?p-x.length:1/0),C=""),n){case"<":e=h+e+x+C;break;case"=":e=h+C+e+x;break;case"^":e=_x(C).call(C,0,S=C.length>>1)+h+e+x+_x(C).call(C,S);break;default:e=C+h+e+x}return s(e)}return m=void 0===m?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),x.toString=function(){return e+""},x}return{format:d,formatPrefix:function(e,t){var n=d(((e=H6(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(F6(t)/3))),i=Math.pow(10,-r),o=q6[8+r/3];return function(e){return n(i*e)+o}}}}function J6(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Z6(e,t){var n=void 0!==HC&&UC(e)||e["@@iterator"];if(!n){if(QC(e)||(n=function(e,t){if(e){var n;if("string"==typeof e)return e8(e,t);var r=_x(n={}.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?u_(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e8(e,t):void 0}}(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function e8(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}G6=X6({thousands:",",grouping:[3],currency:["$",""]}),V6=G6.format,K6=G6.formatPrefix;var t8=HC("implicit");function n8(){var e=new s1,t=[],n=[],r=t8;function i(i){var o=e.get(i);if(void 0===o){if(r!==t8)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return _x(t).call(t);t=[],e=new s1;var r,o=Z6(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;e.has(a)||e.set(a,t.push(a)-1)}}catch(e){o.e(e)}finally{o.f()}return i},i.range=function(e){return arguments.length?(n=u_(e),i):_x(n).call(n)},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return n8(t,n).unknown(r)},J6.apply(i,arguments),i}function r8(e){return+e}var i8=[0,1];function o8(e){return e}function a8(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function s8(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=a8(i,r),o=n(a,o)):(r=a8(r,i),o=n(o,a)),function(e){return o(r(e))}}function l8(e,t,n){var r,i,o=Math.min(e.length,t.length)-1,a=new Array(o),s=new Array(o),l=-1;for(e[o]<e[0]&&(e=c0(r=_x(e).call(e)).call(r),t=c0(i=_x(t).call(t)).call(i));++l<o;)a[l]=a8(e[l],e[l+1]),s[l]=n(t[l],t[l+1]);return function(t){var n=a1(e,t,1,o)-1;return s[n](a[n](t))}}function c8(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function u8(){var e,t,n,r,i,o,a=i8,s=i8,l=D4,c=o8;function u(){var e,t,n,l=Math.min(a.length,s.length);return c!==o8&&(e=a[0],t=a[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?l8:s8,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(_h(a).call(a,e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((o||(o=r(s,_h(a).call(a,e),T4)))(n)))},d.domain=function(e){return arguments.length?(a=u_(e,r8),u()):_x(a).call(a)},d.range=function(e){return arguments.length?(s=u_(e),u()):_x(s).call(s)},d.rangeRound=function(e){return s=u_(e),l=N4,u()},d.clamp=function(e){return arguments.length?(c=!!e||o8,u()):c!==o8},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}function d8(){return u8()(o8,o8)}function h8(e,t,n,r){var i,o=b1(e,t,n);switch((r=H6(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(F6(t)/3)))-F6(Math.abs(e)))}(o,a))||(r.precision=i),K6(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,F6(t)-F6(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-F6(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return V6(r)}function f8(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){if(!((n=+n)>0))return[];if((e=+e)==(t=+t))return[e];var r=t<e,i=Yy(r?v1(t,e,n):v1(e,t,n),3),o=i[0],a=i[1],s=i[2];if(!(a>=o))return[];var l=a-o+1,c=new Array(l);if(r)if(s<0)for(var u=0;u<l;++u)c[u]=(a-u)/-s;else for(var d=0;d<l;++d)c[d]=(a-d)*s;else if(s<0)for(var h=0;h<l;++h)c[h]=(o+h)/-s;else for(var f=0;f<l;++f)c[f]=(o+f)*s;return c}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return h8(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,s=o.length-1,l=o[a],c=o[s],u=10;for(c<l&&(i=l,l=c,c=i,i=a,a=s,s=i);u-- >0;){if((i=A1(l,c,n))===r)return o[a]=l,o[s]=c,t(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}r=i}return e},e}function p8(){var e=d8();return e.copy=function(){return c8(e,p8())},J6.apply(e,arguments),f8(e)}var g8=new Date,m8=new Date;function v8(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return v8(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(i.count=function(t,r){return g8.setTime(+t),m8.setTime(+r),e(g8),e(m8),Math.floor(n(g8,m8))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?uo(i).call(i,r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var A8=v8(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});A8.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?v8(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):A8:null},A8.range;var b8=1e3,y8=6e4,w8=36e5,_8=864e5,x8=6048e5,E8=2592e6,S8=31536e6,C8=v8(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*b8)},function(e,t){return(t-e)/b8},function(e){return e.getUTCSeconds()});C8.range;var T8=v8(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*b8)},function(e,t){e.setTime(+e+t*y8)},function(e,t){return(t-e)/y8},function(e){return e.getMinutes()});T8.range;var k8=v8(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*y8)},function(e,t){return(t-e)/y8},function(e){return e.getUTCMinutes()});k8.range;var O8=v8(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*b8-e.getMinutes()*y8)},function(e,t){e.setTime(+e+t*w8)},function(e,t){return(t-e)/w8},function(e){return e.getHours()});O8.range;var M8=v8(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*w8)},function(e,t){return(t-e)/w8},function(e){return e.getUTCHours()});M8.range;var I8=v8(function(e){return e.setHours(0,0,0,0)},function(e,t){return e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*y8)/_8},function(e){return e.getDate()-1});I8.range;var D8=v8(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/_8},function(e){return e.getUTCDate()-1});D8.range;var N8=v8(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/_8},function(e){return Math.floor(e/_8)});function R8(e){return v8(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*y8)/x8})}N8.range;var L8=R8(0),B8=R8(1),P8=R8(2),F8=R8(3),$8=R8(4),j8=R8(5),H8=R8(6);function U8(e){return v8(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/x8})}L8.range,B8.range,P8.range,F8.range,$8.range,j8.range,H8.range;var Q8=U8(0),z8=U8(1),W8=U8(2),G8=U8(3),V8=U8(4),K8=U8(5),Y8=U8(6);Q8.range,z8.range,W8.range,G8.range,V8.range,K8.range,Y8.range;var q8=v8(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()});q8.range;var X8=v8(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()});X8.range;var J8=v8(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});J8.every=function(e){return isFinite(e=Math.floor(e))&&e>0?v8(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},J8.range;var Z8=v8(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});function e7(e,t,n,r,i,o){var a=[[C8,1,b8],[C8,5,5e3],[C8,15,15e3],[C8,30,3e4],[o,1,y8],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,w8],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,_8],[r,2,1728e5],[n,1,x8],[t,1,E8],[t,3,7776e6],[e,1,S8]];function s(t,n,r){var i=Math.abs(n-t)/r,o=Y0(function(e){return Yy(e,3)[2]}).right(a,i);if(o===a.length)return LK(e).call(e,b1(t/S8,n/S8,r));if(0===o)return LK(A8).call(A8,Math.max(b1(t,n,r),1));var s=Yy(a[i/a[o-1][2]<a[o][2]/i?o-1:o],2),l=s[0],c=s[1];return LK(l).call(l,c)}return[function(e,t,n){var r=t<e;if(r){var i=[t,e];e=i[0],t=i[1]}var o=n&&"function"==typeof n.range?n:s(e,t,n),a=o?o.range(e,+t+1):[];return r?c0(a).call(a):a},s]}Z8.every=function(e){return isFinite(e=Math.floor(e))&&e>0?v8(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},Z8.range;var t7=Yy(e7(Z8,X8,Q8,N8,M8,k8),2);t7[0],t7[1];var n7=Yy(e7(J8,q8,L8,I8,O8,T8),2),r7=n7[0],i7=n7[1];function o7(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function a7(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function s7(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var l7,c7,u7={"-":"",_:" ",0:"0"},d7=/^\s*\d+/,h7=/^%/,f7=/[\\^$*+?|[\]().{}]/g;function p7(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function g7(e){return e.replace(f7,"\\$&")}function m7(e){return new RegExp("^(?:"+_h(e).call(e,g7).join("|")+")","i")}function v7(e){return new EH(_h(e).call(e,function(e,t){return[e.toLowerCase(),t]}))}function A7(e,t,n){var r=d7.exec(_x(t).call(t,n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function b7(e,t,n){var r=d7.exec(_x(t).call(t,n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function y7(e,t,n){var r=d7.exec(_x(t).call(t,n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function w7(e,t,n){var r=d7.exec(_x(t).call(t,n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function _7(e,t,n){var r=d7.exec(_x(t).call(t,n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function x7(e,t,n){var r=d7.exec(_x(t).call(t,n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function E7(e,t,n){var r=d7.exec(_x(t).call(t,n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function S7(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(_x(t).call(t,n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function C7(e,t,n){var r=d7.exec(_x(t).call(t,n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function T7(e,t,n){var r=d7.exec(_x(t).call(t,n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function k7(e,t,n){var r=d7.exec(_x(t).call(t,n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function O7(e,t,n){var r=d7.exec(_x(t).call(t,n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function M7(e,t,n){var r=d7.exec(_x(t).call(t,n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function I7(e,t,n){var r=d7.exec(_x(t).call(t,n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function D7(e,t,n){var r=d7.exec(_x(t).call(t,n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function N7(e,t,n){var r=d7.exec(_x(t).call(t,n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function R7(e,t,n){var r=d7.exec(_x(t).call(t,n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function L7(e,t,n){var r=h7.exec(_x(t).call(t,n,n+1));return r?n+r[0].length:-1}function B7(e,t,n){var r=d7.exec(_x(t).call(t,n));return r?(e.Q=+r[0],n+r[0].length):-1}function P7(e,t,n){var r=d7.exec(_x(t).call(t,n));return r?(e.s=+r[0],n+r[0].length):-1}function F7(e,t){return p7(e.getDate(),t,2)}function $7(e,t){return p7(e.getHours(),t,2)}function j7(e,t){return p7(e.getHours()%12||12,t,2)}function H7(e,t){return p7(1+I8.count(J8(e),e),t,3)}function U7(e,t){return p7(e.getMilliseconds(),t,3)}function Q7(e,t){return U7(e,t)+"000"}function z7(e,t){return p7(e.getMonth()+1,t,2)}function W7(e,t){return p7(e.getMinutes(),t,2)}function G7(e,t){return p7(e.getSeconds(),t,2)}function V7(e){var t=e.getDay();return 0===t?7:t}function K7(e,t){return p7(L8.count(J8(e)-1,e),t,2)}function Y7(e){var t=e.getDay();return t>=4||0===t?$8(e):$8.ceil(e)}function q7(e,t){return e=Y7(e),p7($8.count(J8(e),e)+(4===J8(e).getDay()),t,2)}function X7(e){return e.getDay()}function J7(e,t){return p7(B8.count(J8(e)-1,e),t,2)}function Z7(e,t){return p7(e.getFullYear()%100,t,2)}function e9(e,t){return p7((e=Y7(e)).getFullYear()%100,t,2)}function t9(e,t){return p7(e.getFullYear()%1e4,t,4)}function n9(e,t){var n=e.getDay();return p7((e=n>=4||0===n?$8(e):$8.ceil(e)).getFullYear()%1e4,t,4)}function r9(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+p7(t/60|0,"0",2)+p7(t%60,"0",2)}function i9(e,t){return p7(e.getUTCDate(),t,2)}function o9(e,t){return p7(e.getUTCHours(),t,2)}function a9(e,t){return p7(e.getUTCHours()%12||12,t,2)}function s9(e,t){return p7(1+D8.count(Z8(e),e),t,3)}function l9(e,t){return p7(e.getUTCMilliseconds(),t,3)}function c9(e,t){return l9(e,t)+"000"}function u9(e,t){return p7(e.getUTCMonth()+1,t,2)}function d9(e,t){return p7(e.getUTCMinutes(),t,2)}function h9(e,t){return p7(e.getUTCSeconds(),t,2)}function f9(e){var t=e.getUTCDay();return 0===t?7:t}function p9(e,t){return p7(Q8.count(Z8(e)-1,e),t,2)}function g9(e){var t=e.getUTCDay();return t>=4||0===t?V8(e):V8.ceil(e)}function m9(e,t){return e=g9(e),p7(V8.count(Z8(e),e)+(4===Z8(e).getUTCDay()),t,2)}function v9(e){return e.getUTCDay()}function A9(e,t){return p7(z8.count(Z8(e)-1,e),t,2)}function b9(e,t){return p7(e.getUTCFullYear()%100,t,2)}function y9(e,t){return p7((e=g9(e)).getUTCFullYear()%100,t,2)}function w9(e,t){return p7(e.getUTCFullYear()%1e4,t,4)}function _9(e,t){var n=e.getUTCDay();return p7((e=n>=4||0===n?V8(e):V8.ceil(e)).getUTCFullYear()%1e4,t,4)}function x9(){return"+0000"}function E9(){return"%"}function S9(e){return+e}function C9(e){return Math.floor(+e/1e3)}function T9(e){return new Date(e)}function k9(e){return e instanceof Date?+e:+new Date(+e)}function O9(e,t,n,r,i,o,a,s,l,c){var u=d8(),d=u.invert,h=u.domain,f=c(".%L"),p=c(":%S"),g=c("%I:%M"),m=c("%I %p"),v=c("%a %d"),A=c("%b %d"),b=c("%B"),y=c("%Y");function w(e){return(l(e)<e?f:s(e)<e?p:a(e)<e?g:o(e)<e?m:r(e)<e?i(e)<e?v:A:n(e)<e?b:y)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){var t;return arguments.length?h(u_(e,k9)):_h(t=h()).call(t,T9)},u.ticks=function(t){var n=h();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?w:c(t)},u.nice=function(e){var n=h();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?h(function(e,t){var n,r=0,i=(e=_x(e).call(e)).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}(n,e)):u},u.copy=function(){return c8(u,O9(e,t,n,r,i,o,a,s,l,c))},u}function M9(e){return function(){return e}}!function(e){l7=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=m7(i),u=v7(i),d=m7(o),h=v7(o),f=m7(a),p=v7(a),g=m7(s),m=v7(s),v=m7(l),A=v7(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:F7,e:F7,f:Q7,g:e9,G:n9,H:$7,I:j7,j:H7,L:U7,m:z7,M:W7,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:S9,s:C9,S:G7,u:V7,U:K7,V:q7,w:X7,W:J7,x:null,X:null,y:Z7,Y:t9,Z:r9,"%":E9},y={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:i9,e:i9,f:c9,g:y9,G:_9,H:o9,I:a9,j:s9,L:l9,m:u9,M:d9,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:S9,s:C9,S:h9,u:f9,U:p9,V:m9,w:v9,W:A9,x:null,X:null,y:b9,Y:w9,Z:x9,"%":E9},w={a:function(e,t,n){var r=f.exec(_x(t).call(t,n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=d.exec(_x(t).call(t,n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(_x(t).call(t,n));return r?(e.m=A.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(_x(t).call(t,n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:k7,e:k7,f:R7,g:E7,G:x7,H:M7,I:M7,j:O7,L:N7,m:T7,M:I7,p:function(e,t,n){var r=c.exec(_x(t).call(t,n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:C7,Q:B7,s:P7,S:D7,u:b7,U:y7,V:w7,w:A7,W:_7,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:E7,Y:x7,Z:S7,"%":L7};function _(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(_x(e).call(e,l,s)),null!=(i=u7[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(_x(e).call(e,l,s)),a.join("")}}function x(e,t){return function(n){var r,i,o=s7(1900,void 0,1);if(E(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=a7(s7(o.y,0,1))).getUTCDay(),r=i>4||0===i?z8.ceil(r):z8(r),r=D8.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=o7(s7(o.y,0,1))).getDay(),r=i>4||0===i?B8.ceil(r):B8(r),r=I8.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?a7(s7(o.y,0,1)).getUTCDay():o7(s7(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,a7(o)):o7(o)}}function E(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in u7?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),y.x=_(n,y),y.X=_(r,y),y.c=_(t,y),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=x(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",y);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e+="",!0);return t.toString=function(){return e},t}}}(e),c7=l7.format,l7.parse,l7.utcFormat,l7.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var I9=Math.abs,D9=Math.atan2,N9=Math.cos,R9=Math.max,L9=Math.min,B9=Math.sin,P9=Math.sqrt,F9=1e-12,$9=Math.PI,j9=$9/2,H9=2*$9;function U9(e){return e>=1?j9:e<=-1?-j9:Math.asin(e)}function Q9(e){var t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{var r=Math.floor(n);if(!(r>=0))throw new RangeError("invalid digits: ".concat(n));t=r}return e},function(){return new B6(t)}}function z9(e){return e.innerRadius}function W9(e){return e.outerRadius}function G9(e){return e.startAngle}function V9(e){return e.endAngle}function K9(e){return e&&e.padAngle}function Y9(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/P9(s*s+l*l),u=c*l,d=-c*s,h=e+u,f=t+d,p=n+u,g=r+d,m=(h+p)/2,v=(f+g)/2,A=p-h,b=g-f,y=A*A+b*b,w=i-o,_=h*g-p*f,x=(b<0?-1:1)*P9(R9(0,w*w*y-_*_)),E=(_*b-A*x)/y,S=(-_*A-b*x)/y,C=(_*b+A*x)/y,T=(-_*A+b*x)/y,k=E-m,O=S-v,M=C-m,I=T-v;return k*k+O*O>M*M+I*I&&(E=C,S=T),{cx:E,cy:S,x01:-u,y01:-d,x11:E*(i/w-1),y11:S*(i/w-1)}}function q9(){var e=z9,t=W9,n=M9(0),r=null,i=G9,o=V9,a=K9,s=null,l=Q9(c);function c(){var c,u,d=+e.apply(this,arguments),h=+t.apply(this,arguments),f=i.apply(this,arguments)-j9,p=o.apply(this,arguments)-j9,g=I9(p-f),m=p>f;if(s||(s=c=l()),h<d&&(u=h,h=d,d=u),h>F9)if(g>H9-F9)s.moveTo(h*N9(f),h*B9(f)),s.arc(0,0,h,f,p,!m),d>F9&&(s.moveTo(d*N9(p),d*B9(p)),s.arc(0,0,d,p,f,m));else{var v,A,b=f,y=p,w=f,_=p,x=g,E=g,S=a.apply(this,arguments)/2,C=S>F9&&(r?+r.apply(this,arguments):P9(d*d+h*h)),T=L9(I9(h-d)/2,+n.apply(this,arguments)),k=T,O=T;if(C>F9){var M=U9(C/d*B9(S)),I=U9(C/h*B9(S));(x-=2*M)>F9?(w+=M*=m?1:-1,_-=M):(x=0,w=_=(f+p)/2),(E-=2*I)>F9?(b+=I*=m?1:-1,y-=I):(E=0,b=y=(f+p)/2)}var D=h*N9(b),N=h*B9(b),R=d*N9(_),L=d*B9(_);if(T>F9){var B,P=h*N9(y),F=h*B9(y),$=d*N9(w),j=d*B9(w);if(g<$9)if(B=function(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,h=d*l-u*c;if(!(h*h<F9))return[e+(h=(u*(t-o)-d*(e-i))/h)*l,t+h*c]}(D,N,$,j,P,F,R,L)){var H=D-B[0],U=N-B[1],Q=P-B[0],z=F-B[1],W=1/B9(function(e){return e>1?0:e<-1?$9:Math.acos(e)}((H*Q+U*z)/(P9(H*H+U*U)*P9(Q*Q+z*z)))/2),G=P9(B[0]*B[0]+B[1]*B[1]);k=L9(T,(d-G)/(W-1)),O=L9(T,(h-G)/(W+1))}else k=O=0}E>F9?O>F9?(v=Y9($,j,D,N,h,O,m),A=Y9(P,F,R,L,h,O,m),s.moveTo(v.cx+v.x01,v.cy+v.y01),O<T?s.arc(v.cx,v.cy,O,D9(v.y01,v.x01),D9(A.y01,A.x01),!m):(s.arc(v.cx,v.cy,O,D9(v.y01,v.x01),D9(v.y11,v.x11),!m),s.arc(0,0,h,D9(v.cy+v.y11,v.cx+v.x11),D9(A.cy+A.y11,A.cx+A.x11),!m),s.arc(A.cx,A.cy,O,D9(A.y11,A.x11),D9(A.y01,A.x01),!m))):(s.moveTo(D,N),s.arc(0,0,h,b,y,!m)):s.moveTo(D,N),d>F9&&x>F9?k>F9?(v=Y9(R,L,P,F,d,-k,m),A=Y9(D,N,$,j,d,-k,m),s.lineTo(v.cx+v.x01,v.cy+v.y01),k<T?s.arc(v.cx,v.cy,k,D9(v.y01,v.x01),D9(A.y01,A.x01),!m):(s.arc(v.cx,v.cy,k,D9(v.y01,v.x01),D9(v.y11,v.x11),!m),s.arc(0,0,d,D9(v.cy+v.y11,v.cx+v.x11),D9(A.cy+A.y11,A.cx+A.x11),m),s.arc(A.cx,A.cy,k,D9(A.y11,A.x11),D9(A.y01,A.x01),!m))):s.arc(0,0,d,_,w,m):s.lineTo(R,L)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-$9/2;return[N9(r)*n,B9(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:M9(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:M9(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:M9(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:M9(+e),c):r},c.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:M9(+e),c):i},c.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:M9(+e),c):o},c.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:M9(+e),c):a},c.context=function(e){return arguments.length?(s=null==e?null:e,c):s},c}function X9(e){return"object"===ql(e)&&"length"in e?e:u_(e)}function J9(e){this._context=e}function Z9(e){return new J9(e)}function eee(e){return e[0]}function tee(e){return e[1]}function nee(e,t){var n=M9(!0),r=null,i=Z9,o=null,a=Q9(s);function s(s){var l,c,u,d=(s=X9(s)).length,h=!1;for(null==r&&(o=i(u=a())),l=0;l<=d;++l)!(l<d&&n(c=s[l],l,s))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+e(c,l,s),+t(c,l,s));if(u)return o=null,u+""||null}return e="function"==typeof e?e:void 0===e?eee:M9(e),t="function"==typeof t?t:void 0===t?tee:M9(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:M9(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:M9(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:M9(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),s):i},s.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),s):r},s}function ree(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function iee(e){return e}_x(Array.prototype),J9.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var oee=function(){return mc(function e(t,n){ua(this,e),this._context=t,this._x=n},[{key:"areaStart",value:function(){this._line=0}},{key:"areaEnd",value:function(){this._line=NaN}},{key:"lineStart",value:function(){this._point=0}},{key:"lineEnd",value:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}},{key:"point",value:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}])}();function aee(){}function see(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function lee(e){this._context=e}function cee(e){return new lee(e)}function uee(e){this._context=e}function dee(e){this._context=e}function hee(e,t){this._basis=new lee(e),this._beta=t}lee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:see(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:see(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},uee.prototype={areaStart:aee,areaEnd:aee,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:see(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},dee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:see(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},hee.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*a),this._beta*t[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var fee=function e(t){function n(e){return 1===t?new lee(e):new hee(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function pee(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function gee(e,t){this._context=e,this._k=(1-t)/6}gee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:pee(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:pee(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var mee=function e(t){function n(e){return new gee(e,t)}return n.tension=function(t){return e(+t)},n}(0);function vee(e,t){this._context=e,this._k=(1-t)/6}vee.prototype={areaStart:aee,areaEnd:aee,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:pee(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Aee=function e(t){function n(e){return new vee(e,t)}return n.tension=function(t){return e(+t)},n}(0);function bee(e,t){this._context=e,this._k=(1-t)/6}bee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:pee(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var yee=function e(t){function n(e){return new bee(e,t)}return n.tension=function(t){return e(+t)},n}(0);function wee(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>F9){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>F9){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function _ee(e,t){this._context=e,this._alpha=t}_ee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:wee(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var xee=function e(t){function n(e){return t?new _ee(e,t):new gee(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Eee(e,t){this._context=e,this._alpha=t}Eee.prototype={areaStart:aee,areaEnd:aee,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:wee(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var See=function e(t){function n(e){return t?new Eee(e,t):new vee(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Cee(e,t){this._context=e,this._alpha=t}Cee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wee(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Tee=function e(t){function n(e){return t?new Cee(e,t):new bee(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function kee(e){this._context=e}function Oee(e){return e<0?-1:1}function Mee(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Oee(o)+Oee(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Iee(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Dee(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Nee(e){this._context=e}function Ree(e){this._context=new Lee(e)}function Lee(e){this._context=e}function Bee(e){this._context=e}function Pee(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function Fee(e,t){this._context=e,this._t=t}function $ee(e,t,n){this.k=e,this.x=t,this.y=n}kee.prototype={areaStart:aee,areaEnd:aee,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Nee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Dee(this,this._t0,Iee(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Dee(this,Iee(this,n=Mee(this,e,t)),n);break;default:Dee(this,this._t0,n=Mee(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Ree.prototype=wx(Nee.prototype)).point=function(e,t){Nee.prototype.point.call(this,t,e)},Lee.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},Bee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Pee(e),i=Pee(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Fee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}},$ee.prototype={constructor:$ee,scale:function(e){return 1===e?this:new $ee(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new $ee(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){var t,n;return e.copy().domain(_h(t=_h(n=e.range()).call(n,this.invertX,this)).call(t,e.invert,e))},rescaleY:function(e){var t,n;return e.copy().domain(_h(t=_h(n=e.range()).call(n,this.invertY,this)).call(t,e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},$ee.prototype;var jee,Hee={exports:{}},Uee=(jee||(jee=1,Hee.exports=function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function r(e,i,o){return r=n()?Reflect.construct:function(e,n,r){var i=[null];i.push.apply(i,n);var o=new(Function.bind.apply(e,i));return r&&t(o,r.prototype),o},r.apply(null,arguments)}function i(e){return o(e)||a(e)||s(e)||c()}function o(e){if(Array.isArray(e))return l(e)}function a(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u=Object.hasOwnProperty,d=Object.setPrototypeOf,h=Object.isFrozen,f=Object.getPrototypeOf,p=Object.getOwnPropertyDescriptor,g=Object.freeze,m=Object.seal,v=Object.create,A="undefined"!=typeof Reflect&&Reflect,b=A.apply,y=A.construct;b||(b=function(e,t,n){return e.apply(t,n)}),g||(g=function(e){return e}),m||(m=function(e){return e}),y||(y=function(e,t){return r(e,i(t))});var w=D(Array.prototype.forEach),_=D(Array.prototype.pop),x=D(Array.prototype.push),E=D(String.prototype.toLowerCase),S=D(String.prototype.toString),C=D(String.prototype.match),T=D(String.prototype.replace),k=D(String.prototype.indexOf),O=D(String.prototype.trim),M=D(RegExp.prototype.test),I=N(TypeError);function D(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return b(e,t,r)}}function N(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(e,n)}}function R(e,t,n){n=n||E,d&&d(e,null);for(var r=t.length;r--;){var i=t[r];if("string"==typeof i){var o=n(i);o!==i&&(h(t)||(t[r]=o),i=o)}e[i]=!0}return e}function L(e){var t,n=v(null);for(t in e)!0===b(u,e,[t])&&(n[t]=e[t]);return n}function B(e,t){for(;null!==e;){var n=p(e,t);if(n){if(n.get)return D(n.get);if("function"==typeof n.value)return D(n.value)}e=f(e)}function r(e){return console.warn("fallback value for",e),null}return r}var P=g(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),F=g(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),$=g(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),j=g(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),H=g(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),U=g(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Q=g(["#text"]),z=g(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),W=g(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),G=g(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),V=g(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),K=m(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Y=m(/<%[\w\W]*|[\w\W]*%>/gm),q=m(/\${[\w\W]*}/gm),X=m(/^data-[\-\w.\u00B7-\uFFFF]/),J=m(/^aria-[\-\w]+$/),Z=m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ee=m(/^(?:\w+script|data):/i),te=m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ne=m(/^html$/i),re=function(){return"undefined"==typeof window?null:window},ie=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,i="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(i)&&(r=n.currentScript.getAttribute(i));var o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function oe(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re(),n=function(e){return oe(e)};if(n.version="2.4.3",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,o=t.document,a=t.DocumentFragment,s=t.HTMLTemplateElement,l=t.Node,c=t.Element,u=t.NodeFilter,d=t.NamedNodeMap,h=void 0===d?t.NamedNodeMap||t.MozNamedAttrMap:d,f=t.HTMLFormElement,p=t.DOMParser,m=t.trustedTypes,v=c.prototype,A=B(v,"cloneNode"),b=B(v,"nextSibling"),y=B(v,"childNodes"),D=B(v,"parentNode");if("function"==typeof s){var N=o.createElement("template");N.content&&N.content.ownerDocument&&(o=N.content.ownerDocument)}var ae=ie(m,r),se=ae?ae.createHTML(""):"",le=o,ce=le.implementation,ue=le.createNodeIterator,de=le.createDocumentFragment,he=le.getElementsByTagName,fe=r.importNode,pe={};try{pe=L(o).documentMode?o.documentMode:{}}catch(e){}var ge={};n.isSupported="function"==typeof D&&ce&&void 0!==ce.createHTMLDocument&&9!==pe;var me,ve,Ae=K,be=Y,ye=q,we=X,_e=J,xe=ee,Ee=te,Se=Z,Ce=null,Te=R({},[].concat(i(P),i(F),i($),i(H),i(Q))),ke=null,Oe=R({},[].concat(i(z),i(W),i(G),i(V))),Me=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ie=null,De=null,Ne=!0,Re=!0,Le=!1,Be=!1,Pe=!1,Fe=!1,$e=!1,je=!1,He=!1,Ue=!1,Qe=!0,ze=!1,We="user-content-",Ge=!0,Ve=!1,Ke={},Ye=null,qe=R({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Xe=null,Je=R({},["audio","video","img","source","image","track"]),Ze=null,et=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tt="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",it=rt,ot=!1,at=null,st=R({},[tt,nt,rt],S),lt=["application/xhtml+xml","text/html"],ct="text/html",ut=null,dt=o.createElement("form"),ht=function(e){return e instanceof RegExp||e instanceof Function},ft=function(t){ut&&ut===t||(t&&"object"===e(t)||(t={}),t=L(t),me=me=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?ct:t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===me?S:E,Ce="ALLOWED_TAGS"in t?R({},t.ALLOWED_TAGS,ve):Te,ke="ALLOWED_ATTR"in t?R({},t.ALLOWED_ATTR,ve):Oe,at="ALLOWED_NAMESPACES"in t?R({},t.ALLOWED_NAMESPACES,S):st,Ze="ADD_URI_SAFE_ATTR"in t?R(L(et),t.ADD_URI_SAFE_ATTR,ve):et,Xe="ADD_DATA_URI_TAGS"in t?R(L(Je),t.ADD_DATA_URI_TAGS,ve):Je,Ye="FORBID_CONTENTS"in t?R({},t.FORBID_CONTENTS,ve):qe,Ie="FORBID_TAGS"in t?R({},t.FORBID_TAGS,ve):{},De="FORBID_ATTR"in t?R({},t.FORBID_ATTR,ve):{},Ke="USE_PROFILES"in t&&t.USE_PROFILES,Ne=!1!==t.ALLOW_ARIA_ATTR,Re=!1!==t.ALLOW_DATA_ATTR,Le=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Be=t.SAFE_FOR_TEMPLATES||!1,Pe=t.WHOLE_DOCUMENT||!1,je=t.RETURN_DOM||!1,He=t.RETURN_DOM_FRAGMENT||!1,Ue=t.RETURN_TRUSTED_TYPE||!1,$e=t.FORCE_BODY||!1,Qe=!1!==t.SANITIZE_DOM,ze=t.SANITIZE_NAMED_PROPS||!1,Ge=!1!==t.KEEP_CONTENT,Ve=t.IN_PLACE||!1,Se=t.ALLOWED_URI_REGEXP||Se,it=t.NAMESPACE||rt,t.CUSTOM_ELEMENT_HANDLING&&ht(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Me.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ht(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Me.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Me.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Be&&(Re=!1),He&&(je=!0),Ke&&(Ce=R({},i(Q)),ke=[],!0===Ke.html&&(R(Ce,P),R(ke,z)),!0===Ke.svg&&(R(Ce,F),R(ke,W),R(ke,V)),!0===Ke.svgFilters&&(R(Ce,$),R(ke,W),R(ke,V)),!0===Ke.mathMl&&(R(Ce,H),R(ke,G),R(ke,V))),t.ADD_TAGS&&(Ce===Te&&(Ce=L(Ce)),R(Ce,t.ADD_TAGS,ve)),t.ADD_ATTR&&(ke===Oe&&(ke=L(ke)),R(ke,t.ADD_ATTR,ve)),t.ADD_URI_SAFE_ATTR&&R(Ze,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(Ye===qe&&(Ye=L(Ye)),R(Ye,t.FORBID_CONTENTS,ve)),Ge&&(Ce["#text"]=!0),Pe&&R(Ce,["html","head","body"]),Ce.table&&(R(Ce,["tbody"]),delete Ie.tbody),g&&g(t),ut=t)},pt=R({},["mi","mo","mn","ms","mtext"]),gt=R({},["foreignobject","desc","title","annotation-xml"]),mt=R({},["title","style","font","a","script"]),vt=R({},F);R(vt,$),R(vt,j);var At=R({},H);R(At,U);var bt=function(e){var t=D(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});var n=E(e.tagName),r=E(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===nt?t.namespaceURI===rt?"svg"===n:t.namespaceURI===tt?"svg"===n&&("annotation-xml"===r||pt[r]):Boolean(vt[n]):e.namespaceURI===tt?t.namespaceURI===rt?"math"===n:t.namespaceURI===nt?"math"===n&&gt[r]:Boolean(At[n]):e.namespaceURI===rt?!(t.namespaceURI===nt&&!gt[r])&&!(t.namespaceURI===tt&&!pt[r])&&!At[n]&&(mt[n]||!vt[n]):!("application/xhtml+xml"!==me||!at[e.namespaceURI]))},yt=function(e){x(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},wt=function(e,t){try{x(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){x(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ke[e])if(je||He)try{yt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},_t=function(e){var t,n;if($e)e="<remove></remove>"+e;else{var r=C(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===me&&it===rt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=ae?ae.createHTML(e):e;if(it===rt)try{t=(new p).parseFromString(i,me)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(it,"template",null);try{t.documentElement.innerHTML=ot?se:i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),it===rt?he.call(t,Pe?"html":"body")[0]:Pe?t.documentElement:a},xt=function(e){return ue.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},Et=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},St=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Ct=function(e,t,r){ge[e]&&w(ge[e],function(e){e.call(n,t,r,ut)})},Tt=function(e){var t;if(Ct("beforeSanitizeElements",e,null),Et(e))return yt(e),!0;if(M(/[\u0080-\uFFFF]/,e.nodeName))return yt(e),!0;var r=ve(e.nodeName);if(Ct("uponSanitizeElement",e,{tagName:r,allowedTags:Ce}),e.hasChildNodes()&&!St(e.firstElementChild)&&(!St(e.content)||!St(e.content.firstElementChild))&&M(/<[/\w]/g,e.innerHTML)&&M(/<[/\w]/g,e.textContent))return yt(e),!0;if("select"===r&&M(/<template/i,e.innerHTML))return yt(e),!0;if(!Ce[r]||Ie[r]){if(!Ie[r]&&Ot(r)){if(Me.tagNameCheck instanceof RegExp&&M(Me.tagNameCheck,r))return!1;if(Me.tagNameCheck instanceof Function&&Me.tagNameCheck(r))return!1}if(Ge&&!Ye[r]){var i=D(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&i)for(var a=o.length-1;a>=0;--a)i.insertBefore(A(o[a],!0),b(e))}return yt(e),!0}return e instanceof c&&!bt(e)?(yt(e),!0):"noscript"!==r&&"noembed"!==r||!M(/<\/no(script|embed)/i,e.innerHTML)?(Be&&3===e.nodeType&&(t=e.textContent,t=T(t,Ae," "),t=T(t,be," "),t=T(t,ye," "),e.textContent!==t&&(x(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ct("afterSanitizeElements",e,null),!1):(yt(e),!0)},kt=function(e,t,n){if(Qe&&("id"===t||"name"===t)&&(n in o||n in dt))return!1;if(Re&&!De[t]&&M(we,t));else if(Ne&&M(_e,t));else if(!ke[t]||De[t]){if(!(Ot(e)&&(Me.tagNameCheck instanceof RegExp&&M(Me.tagNameCheck,e)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(e))&&(Me.attributeNameCheck instanceof RegExp&&M(Me.attributeNameCheck,t)||Me.attributeNameCheck instanceof Function&&Me.attributeNameCheck(t))||"is"===t&&Me.allowCustomizedBuiltInElements&&(Me.tagNameCheck instanceof RegExp&&M(Me.tagNameCheck,n)||Me.tagNameCheck instanceof Function&&Me.tagNameCheck(n))))return!1}else if(Ze[t]);else if(M(Se,T(n,Ee,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==k(n,"data:")||!Xe[e])if(Le&&!M(xe,T(n,Ee,"")));else if(n)return!1;return!0},Ot=function(e){return e.indexOf("-")>0},Mt=function(t){var r,i,o,a;Ct("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke};for(a=s.length;a--;){var c=r=s[a],u=c.name,d=c.namespaceURI;if(i="value"===u?r.value:O(r.value),o=ve(u),l.attrName=o,l.attrValue=i,l.keepAttr=!0,l.forceKeepAttr=void 0,Ct("uponSanitizeAttribute",t,l),i=l.attrValue,!l.forceKeepAttr&&(wt(u,t),l.keepAttr))if(M(/\/>/i,i))wt(u,t);else{Be&&(i=T(i,Ae," "),i=T(i,be," "),i=T(i,ye," "));var h=ve(t.nodeName);if(kt(h,o,i)){if(!ze||"id"!==o&&"name"!==o||(wt(u,t),i=We+i),ae&&"object"===e(m)&&"function"==typeof m.getAttributeType)if(d);else switch(m.getAttributeType(h,o)){case"TrustedHTML":i=ae.createHTML(i);break;case"TrustedScriptURL":i=ae.createScriptURL(i)}try{d?t.setAttributeNS(d,u,i):t.setAttribute(u,i),_(n.removed)}catch(e){}}}}Ct("afterSanitizeAttributes",t,null)}},It=function e(t){var n,r=xt(t);for(Ct("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Ct("uponSanitizeShadowNode",n,null),Tt(n)||(n.content instanceof a&&e(n.content),Mt(n));Ct("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(i){var o,s,c,u,d,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ot=!i)&&(i="\x3c!--\x3e"),"string"!=typeof i&&!St(i)){if("function"!=typeof i.toString)throw I("toString is not a function");if("string"!=typeof(i=i.toString()))throw I("dirty is not a string, aborting")}if(!n.isSupported){if("object"===e(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof i)return t.toStaticHTML(i);if(St(i))return t.toStaticHTML(i.outerHTML)}return i}if(Fe||ft(h),n.removed=[],"string"==typeof i&&(Ve=!1),Ve){if(i.nodeName){var f=ve(i.nodeName);if(!Ce[f]||Ie[f])throw I("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof l)1===(s=(o=_t("\x3c!----\x3e")).ownerDocument.importNode(i,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?o=s:o.appendChild(s);else{if(!je&&!Be&&!Pe&&-1===i.indexOf("<"))return ae&&Ue?ae.createHTML(i):i;if(!(o=_t(i)))return je?null:Ue?se:""}o&&$e&&yt(o.firstChild);for(var p=xt(Ve?i:o);c=p.nextNode();)3===c.nodeType&&c===u||Tt(c)||(c.content instanceof a&&It(c.content),Mt(c),u=c);if(u=null,Ve)return i;if(je){if(He)for(d=de.call(o.ownerDocument);o.firstChild;)d.appendChild(o.firstChild);else d=o;return ke.shadowroot&&(d=fe.call(r,d,!0)),d}var g=Pe?o.outerHTML:o.innerHTML;return Pe&&Ce["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&M(ne,o.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+g),Be&&(g=T(g,Ae," "),g=T(g,be," "),g=T(g,ye," ")),ae&&Ue?ae.createHTML(g):g},n.setConfig=function(e){ft(e),Fe=!0},n.clearConfig=function(){ut=null,Fe=!1},n.isValidAttribute=function(e,t,n){ut||ft({});var r=ve(e),i=ve(t);return kt(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&(ge[e]=ge[e]||[],x(ge[e],t))},n.removeHook=function(e){if(ge[e])return _(ge[e])},n.removeHooks=function(e){ge[e]&&(ge[e]=[])},n.removeAllHooks=function(){ge={}},n}var ae=oe();return ae}()),Hee.exports),Qee=i(Uee);const zee={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},r)=>{if(!t)return 2.55*n;e/=360,t/=100;const i=(n/=100)<.5?n*(1+t):n+t-n*t,o=2*n-i;switch(r){case"r":return 255*zee.hue2rgb(o,i,e+1/3);case"g":return 255*zee.hue2rgb(o,i,e);case"b":return 255*zee.hue2rgb(o,i,e-1/3)}},rgb2hsl:({r:e,g:t,b:n},r)=>{e/=255,t/=255,n/=255;const i=Math.max(e,t,n),o=Math.min(e,t,n),a=(i+o)/2;if("l"===r)return 100*a;if(i===o)return 0;const s=i-o;if("s"===r)return 100*(a>.5?s/(2-i-o):s/(i+o));switch(i){case e:return 60*((t-n)/s+(t<n?6:0));case t:return 60*((n-e)/s+2);case n:return 60*((e-t)/s+4);default:return-1}}},Wee={clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(1e10*e)/1e10},Gee={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},Vee={channel:zee,lang:Wee,unit:Gee},Kee={};for(let c=0;c<=255;c++)Kee[c]=Vee.unit.dec2hex(c);const Yee=0,qee=1,Xee=2;class Jee{constructor(){this.type=Yee}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=Yee}is(e){return this.type===e}}const Zee=new class{constructor(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new Jee}set(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=Yee,this}_ensureHSL(){const e=this.data,{h:t,s:n,l:r}=e;void 0===t&&(e.h=Vee.channel.rgb2hsl(e,"h")),void 0===n&&(e.s=Vee.channel.rgb2hsl(e,"s")),void 0===r&&(e.l=Vee.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:t,g:n,b:r}=e;void 0===t&&(e.r=Vee.channel.hsl2rgb(e,"r")),void 0===n&&(e.g=Vee.channel.hsl2rgb(e,"g")),void 0===r&&(e.b=Vee.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,t=e.r;return this.type.is(Xee)||void 0===t?(this._ensureHSL(),Vee.channel.hsl2rgb(e,"r")):t}get g(){const e=this.data,t=e.g;return this.type.is(Xee)||void 0===t?(this._ensureHSL(),Vee.channel.hsl2rgb(e,"g")):t}get b(){const e=this.data,t=e.b;return this.type.is(Xee)||void 0===t?(this._ensureHSL(),Vee.channel.hsl2rgb(e,"b")):t}get h(){const e=this.data,t=e.h;return this.type.is(qee)||void 0===t?(this._ensureRGB(),Vee.channel.rgb2hsl(e,"h")):t}get s(){const e=this.data,t=e.s;return this.type.is(qee)||void 0===t?(this._ensureRGB(),Vee.channel.rgb2hsl(e,"s")):t}get l(){const e=this.data,t=e.l;return this.type.is(qee)||void 0===t?(this._ensureRGB(),Vee.channel.rgb2hsl(e,"l")):t}get a(){return this.data.a}set r(e){this.type.set(qee),this.changed=!0,this.data.r=e}set g(e){this.type.set(qee),this.changed=!0,this.data.g=e}set b(e){this.type.set(qee),this.changed=!0,this.data.b=e}set h(e){this.type.set(Xee),this.changed=!0,this.data.h=e}set s(e){this.type.set(Xee),this.changed=!0,this.data.s=e}set l(e){this.type.set(Xee),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}({r:0,g:0,b:0,a:0},"transparent"),ete={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(35!==e.charCodeAt(0))return;const t=e.match(ete.re);if(!t)return;const n=t[1],r=parseInt(n,16),i=n.length,o=i%4==0,a=i>4,s=a?1:17,l=a?8:4,c=o?0:-1,u=a?255:15;return Zee.set({r:(r>>l*(c+3)&u)*s,g:(r>>l*(c+2)&u)*s,b:(r>>l*(c+1)&u)*s,a:o?(r&u)*s/255:1},e)},stringify:e=>{const{r:t,g:n,b:r,a:i}=e;return i<1?`#${Kee[Math.round(t)]}${Kee[Math.round(n)]}${Kee[Math.round(r)]}${Kee[Math.round(255*i)]}`:`#${Kee[Math.round(t)]}${Kee[Math.round(n)]}${Kee[Math.round(r)]}`}},tte={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(tte.hueRe);if(t){const[,e,n]=t;switch(n){case"grad":return Vee.channel.clamp.h(.9*parseFloat(e));case"rad":return Vee.channel.clamp.h(180*parseFloat(e)/Math.PI);case"turn":return Vee.channel.clamp.h(360*parseFloat(e))}}return Vee.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(104!==t&&72!==t)return;const n=e.match(tte.re);if(!n)return;const[,r,i,o,a,s]=n;return Zee.set({h:tte._hue2deg(r),s:Vee.channel.clamp.s(parseFloat(i)),l:Vee.channel.clamp.l(parseFloat(o)),a:a?Vee.channel.clamp.a(s?parseFloat(a)/100:parseFloat(a)):1},e)},stringify:e=>{const{h:t,s:n,l:r,a:i}=e;return i<1?`hsla(${Vee.lang.round(t)}, ${Vee.lang.round(n)}%, ${Vee.lang.round(r)}%, ${i})`:`hsl(${Vee.lang.round(t)}, ${Vee.lang.round(n)}%, ${Vee.lang.round(r)}%)`}},nte={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#663399",red:"#ff0000",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",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=nte.colors[e];if(t)return ete.parse(t)},stringify:e=>{const t=ete.stringify(e);for(const n in nte.colors)if(nte.colors[n]===t)return n}},rte={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(114!==t&&82!==t)return;const n=e.match(rte.re);if(!n)return;const[,r,i,o,a,s,l,c,u]=n;return Zee.set({r:Vee.channel.clamp.r(i?2.55*parseFloat(r):parseFloat(r)),g:Vee.channel.clamp.g(a?2.55*parseFloat(o):parseFloat(o)),b:Vee.channel.clamp.b(l?2.55*parseFloat(s):parseFloat(s)),a:c?Vee.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:n,b:r,a:i}=e;return i<1?`rgba(${Vee.lang.round(t)}, ${Vee.lang.round(n)}, ${Vee.lang.round(r)}, ${Vee.lang.round(i)})`:`rgb(${Vee.lang.round(t)}, ${Vee.lang.round(n)}, ${Vee.lang.round(r)})`}},ite=e=>{if("string"!=typeof e)return e;const t=ete.parse(e)||rte.parse(e)||tte.parse(e)||nte.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},ote=e=>!e.changed&&e.color?e.color:e.type.is(Xee)||void 0===e.data.r?tte.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?rte.stringify(e):ete.stringify(e),ate=(e,t)=>{const n=ite(e);for(const r in t)n[r]=Vee.channel.clamp[r](t[r]);return ote(n)},ste=(e,t,n=0,r=1)=>{if("number"!=typeof e)return ate(e,{a:t});const i=Zee.set({r:Vee.channel.clamp.r(e),g:Vee.channel.clamp.g(t),b:Vee.channel.clamp.b(n),a:Vee.channel.clamp.a(r)});return ote(i)},lte=e=>(e=>{const{r:t,g:n,b:r}=ite(e),i=.2126*Vee.channel.toLinear(t)+.7152*Vee.channel.toLinear(n)+.0722*Vee.channel.toLinear(r);return Vee.lang.round(i)})(e)>=.5,cte=e=>!lte(e),ute=(e,t,n)=>{const r=ite(e),i=r[t],o=Vee.channel.clamp[t](i+n);return i!==o&&(r[t]=o),ote(r)},dte=(e,t)=>ute(e,"l",t),hte=(e,t)=>ute(e,"l",-t),fte=(e,t)=>{const n=ite(e),r={};for(const i in t)t[i]&&(r[i]=n[i]+t[i]);return ate(e,r)},pte=(e,t=100)=>{const n=ite(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,((e,t,n=50)=>{const{r:r,g:i,b:o,a:a}=ite(e),{r:s,g:l,b:c,a:u}=ite(t),d=n/100,h=2*d-1,f=a-u,p=((h*f==-1?h:(h+f)/(1+h*f))+1)/2,g=1-p;return ste(r*p+s*g,i*p+l*g,o*p+c*g,a*d+u*(1-d))})(n,e,t)};var gte="object"==("undefined"==typeof global?"undefined":ql(global))&&global&&global.Object===Object&&global,mte="object"==("undefined"==typeof self?"undefined":ql(self))&&self&&self.Object===Object&&self,vte=gte||mte||Function("return this")(),Ate=vte.Symbol,bte=Object.prototype,yte=bte.hasOwnProperty,wte=bte.toString,_te=Ate?Ate.toStringTag:void 0,xte=Object.prototype.toString,Ete=Ate?Ate.toStringTag:void 0;function Ste(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ete&&Ete in Object(e)?function(e){var t=yte.call(e,_te),n=e[_te];try{e[_te]=void 0;var r=!0}catch(e){}var i=wte.call(e);return r&&(t?e[_te]=n:delete e[_te]),i}(e):function(e){return xte.call(e)}(e)}function Cte(e){var t=ql(e);return null!=e&&("object"==t||"function"==t)}function Tte(e){if(!Cte(e))return!1;var t=Ste(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var kte=vte["__core-js_shared__"],Ote=function(){var e=/[^.]+$/.exec(kte&&GT(kte)&&GT(kte).IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Mte=Function.prototype.toString;function Ite(e){if(null!=e){try{return Mte.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Dte=/^\[object .+?Constructor\]$/,Nte=Function.prototype,Rte=Object.prototype,Lte=Nte.toString,Bte=Rte.hasOwnProperty,Pte=RegExp("^"+Lte.call(Bte).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Fte(e){return!(!Cte(e)||function(e){return!!Ote&&Ote in e}(e))&&(Tte(e)?Pte:Dte).test(Ite(e))}function $te(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Fte(n)?n:void 0}var jte=$te(Object,"create"),Hte=Object.prototype.hasOwnProperty,Ute=Object.prototype.hasOwnProperty;function Qte(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function zte(e,t){return e===t||e!=e&&t!=t}function Wte(e,t){for(var n=e.length;n--;)if(zte(e[n][0],t))return n;return-1}Qte.prototype.clear=function(){this.__data__=jte?jte(null):{},this.size=0},Qte.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Qte.prototype.get=function(e){var t=this.__data__;if(jte){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Hte.call(t,e)?t[e]:void 0},Qte.prototype.has=function(e){var t=this.__data__;return jte?void 0!==t[e]:Ute.call(t,e)},Qte.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=jte&&void 0===t?"__lodash_hash_undefined__":t,this};var Gte=Array.prototype,Vte=pk(Gte);function Kte(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Kte.prototype.clear=function(){this.__data__=[],this.size=0},Kte.prototype.delete=function(e){var t=this.__data__,n=Wte(t,e);return!(n<0)&&(n==t.length-1?t.pop():Vte.call(t,n,1),--this.size,!0)},Kte.prototype.get=function(e){var t=this.__data__,n=Wte(t,e);return n<0?void 0:t[n][1]},Kte.prototype.has=function(e){return Wte(this.__data__,e)>-1},Kte.prototype.set=function(e,t){var n=this.__data__,r=Wte(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var Yte=$te(vte,"Map");function qte(e,t){var n=e.__data__;return function(e){var t=ql(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:_h(n)}function Xte(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Jte(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Jte.Cache||Xte),n}Xte.prototype.clear=function(){this.size=0,this.__data__={hash:new Qte,map:new(Yte||Kte),string:new Qte}},Xte.prototype.delete=function(e){var t=qte(this,e).delete(e);return this.size-=t?1:0,t},Xte.prototype.get=function(e){return qte(this,e).get(e)},Xte.prototype.has=function(e){return qte(this,e).has(e)},Xte.prototype.set=function(e,t){var n=qte(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Jte.Cache=Xte;var Zte="comm",ene="rule",tne="decl",nne=Math.abs,rne=String.fromCharCode;function ine(e){return e.trim()}function one(e,t,n){return e.replace(t,n)}function ane(e,t,n){return e.indexOf(t,n)}function sne(e,t){return 0|e.charCodeAt(t)}function lne(e,t,n){return e.slice(t,n)}function cne(e){return e.length}function une(e,t){return t.push(e),e}var dne=1,hne=1,fne=0,pne=0,gne=0,mne="";function vne(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:dne,column:hne,length:a,return:"",siblings:s}}function Ane(){return gne=pne>0?sne(mne,--pne):0,hne--,10===gne&&(hne=1,dne--),gne}function bne(){return gne=pne<fne?sne(mne,pne++):0,hne++,10===gne&&(hne=1,dne++),gne}function yne(){return sne(mne,pne)}function wne(){return pne}function _ne(e,t){return lne(mne,e,t)}function xne(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ene(e){return ine(_ne(pne-1,Tne(91===e?e+2:40===e?e+1:e)))}function Sne(e){for(;(gne=yne())&&gne<33;)bne();return xne(e)>2||xne(gne)>3?"":" "}function Cne(e,t){for(;--t&&bne()&&!(gne<48||gne>102||gne>57&&gne<65||gne>70&&gne<97););return _ne(e,wne()+(t<6&&32==yne()&&32==bne()))}function Tne(e){for(;bne();)switch(gne){case e:return pne;case 34:case 39:34!==e&&39!==e&&Tne(gne);break;case 40:41===e&&Tne(e);break;case 92:bne()}return pne}function kne(e,t){for(;bne()&&e+gne!==57&&(e+gne!==84||47!==yne()););return"/*"+_ne(t,pne-1)+"*"+rne(47===e?e:bne())}function One(e){for(;!xne(yne());)bne();return _ne(e,pne)}function Mne(e){return function(e){return mne="",e}(Ine("",null,null,null,[""],e=function(e){return dne=hne=1,fne=cne(mne=e),pne=0,[]}(e),0,[0],e))}function Ine(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,h=0,f=0,p=0,g=1,m=1,v=1,A=0,b="",y=i,w=o,_=r,x=b;m;)switch(p=A,A=bne()){case 40:if(108!=p&&58==sne(x,d-1)){-1!=ane(x+=one(Ene(A),"&","&\f"),"&\f",nne(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:x+=Ene(A);break;case 9:case 10:case 13:case 32:x+=Sne(p);break;case 92:x+=Cne(wne()-1,7);continue;case 47:switch(yne()){case 42:case 47:une(Nne(kne(bne(),wne()),t,n,l),l),5!=xne(p||1)&&5!=xne(yne()||1)||!cne(x)||" "===lne(x,-1,void 0)||(x+=" ");break;default:x+="/"}break;case 123*g:s[c++]=cne(x)*v;case 125*g:case 59:case 0:switch(A){case 0:case 125:m=0;case 59+u:-1==v&&(x=one(x,/\f/g,"")),f>0&&(cne(x)-d||0===g&&47===p)&&une(f>32?Rne(x+";",r,n,d-1,l):Rne(one(x," ","")+";",r,n,d-2,l),l);break;case 59:x+=";";default:if(une(_=Dne(x,t,n,c,u,i,s,b,y=[],w=[],d,o),o),123===A)if(0===u)Ine(x,t,_,_,y,o,d,s,w);else{switch(h){case 99:if(110===sne(x,3))break;case 108:if(97===sne(x,2))break;default:u=0;case 100:case 109:case 115:}u?Ine(e,_,_,r&&une(Dne(e,_,_,0,0,i,s,b,i,y=[],d,w),w),i,w,d,s,r?y:w):Ine(x,_,_,_,[""],w,0,s,w)}}c=u=f=0,g=v=1,b=x="",d=a;break;case 58:d=1+cne(x),f=p;default:if(g<1)if(123==A)--g;else if(125==A&&0==g++&&125==Ane())continue;switch(x+=rne(A),A*g){case 38:v=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(cne(x)-1)*v,v=1;break;case 64:45===yne()&&(x+=Ene(bne())),h=yne(),u=d=cne(b=x+=One(wne())),A++;break;case 45:45===p&&2==cne(x)&&(g=0)}}return o}function Dne(e,t,n,r,i,o,a,s,l,c,u,d){for(var h=i-1,f=0===i?o:[""],p=function(e){return e.length}(f),g=0,m=0,v=0;g<r;++g)for(var A=0,b=lne(e,h+1,h=nne(m=a[g])),y=e;A<p;++A)(y=ine(m>0?f[A]+" "+b:one(b,/&\f/g,f[A])))&&(l[v++]=y);return vne(e,t,n,0===i?ene:s,l,c,u,d)}function Nne(e,t,n,r){return vne(e,t,n,Zte,rne(gne),lne(e,2,-2),0,r)}function Rne(e,t,n,r,i){return vne(e,t,n,tne,lne(e,0,r),lne(e,r+1,-1),r,i)}function Lne(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Bne(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case tne:return e.return=e.return||e.value;case Zte:return"";case"@keyframes":return e.return=e.value+"{"+Lne(e.children,r)+"}";case ene:if(!cne(e.value=e.props.join(",")))return""}return cne(n=Lne(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pne(e){return null!=e&&"object"==ql(e)}function Fne(e){return"symbol"==ql(e)||Pne(e)&&"[object Symbol]"==Ste(e)}function $ne(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var jne=QC,Hne=Ate?Ate.prototype:void 0,Une=Hne?Hne.toString:void 0;function Qne(e){if("string"==typeof e)return e;if(jne(e))return $ne(e,Qne)+"";if(Fne(e))return Une?Une.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var zne=/\s/,Wne=/^\s+/;function Gne(e){return e?_x(e).call(e,0,function(e){for(var t=e.length;t--&&zne.test(e.charAt(t)););return t}(e)+1).replace(Wne,""):e}var Vne=/^[-+]0x[0-9a-f]+$/i,Kne=/^0b[01]+$/i,Yne=/^0o[0-7]+$/i,qne=Bx,Xne=1/0;function Jne(e){return e?(e=function(e){if("number"==typeof e)return e;if(Fne(e))return NaN;if(Cte(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Cte(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Gne(e);var n=Kne.test(e);return n||Yne.test(e)?qne(_x(e).call(e,2),n?2:8):Vne.test(e)?NaN:+e}(e),e===Xne||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0):0===e?e:0}function Zne(e){return e}var ere=$te(vte,"WeakMap"),tre=wx,nre=function(){function e(){}return function(t){if(!Cte(t))return{};if(tre)return tre(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function rre(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var ire=l0;function ore(e){return function(){return e}}var are=function(){try{var e=$te(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),sre=are?function(e,t){return are(e,"toString",{configurable:!0,enumerable:!1,value:ore(t),writable:!0})}:Zne,lre=function(e){var t=0,n=0;return function(){var r=ire(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(sre);function cre(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function ure(e,t,n,r){for(var i=e.length,o=n+-1;++o<i;)if(t(e[o],o,e))return o;return-1}function dre(e){return e!=e}function hre(e,t){return!(null==e||!e.length)&&function(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):ure(e,dre,n)}(e,t,0)>-1}var fre=/^(?:0|[1-9]\d*)$/;function pre(e,t){var n=ql(e);return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&fre.test(e))&&e>-1&&e%1==0&&e<t}function gre(e,t,n){"__proto__"==t&&are?are(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var mre=Object.prototype.hasOwnProperty;function vre(e,t,n){var r=e[t];mre.call(e,t)&&zte(r,n)&&(void 0!==n||t in e)||gre(e,t,n)}function Are(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=void 0;void 0===l&&(l=e[s]),i?gre(n,s,l):vre(n,s,l)}return n}var bre=Math.max;function yre(e,t,n){return t=bre(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=bre(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}function wre(e,t){return lre(yre(e,t,Zne),e+"")}function _re(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function xre(e){return null!=e&&_re(e.length)&&!Tte(e)}function Ere(e,t,n){if(!Cte(n))return!1;var r=ql(t);return!!("number"==r?xre(n)&&pre(t,n.length):"string"==r&&t in n)&&zte(n[t],e)}var Sre=Object.prototype;function Cre(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Sre)}function Tre(e){return Pne(e)&&"[object Arguments]"==Ste(e)}var kre=Object.prototype,Ore=kre.hasOwnProperty,Mre=kre.propertyIsEnumerable,Ire=Tre(function(){return arguments}())?Tre:function(e){return Pne(e)&&Ore.call(e,"callee")&&!Mre.call(e,"callee")},Dre="object"==("undefined"==typeof exports?"undefined":ql(exports))&&exports&&!exports.nodeType&&exports,Nre=Dre&&"object"==("undefined"==typeof module?"undefined":ql(module))&&module&&!module.nodeType&&module,Rre=Nre&&Nre.exports===Dre?vte.Buffer:void 0,Lre=(Rre?Rre.isBuffer:void 0)||function(){return!1},Bre={};function Pre(e){return function(t){return e(t)}}Bre["[object Float32Array]"]=Bre["[object Float64Array]"]=Bre["[object Int8Array]"]=Bre["[object Int16Array]"]=Bre["[object Int32Array]"]=Bre["[object Uint8Array]"]=Bre["[object Uint8ClampedArray]"]=Bre["[object Uint16Array]"]=Bre["[object Uint32Array]"]=!0,Bre["[object Arguments]"]=Bre["[object Array]"]=Bre["[object ArrayBuffer]"]=Bre["[object Boolean]"]=Bre["[object DataView]"]=Bre["[object Date]"]=Bre["[object Error]"]=Bre["[object Function]"]=Bre["[object Map]"]=Bre["[object Number]"]=Bre["[object Object]"]=Bre["[object RegExp]"]=Bre["[object Set]"]=Bre["[object String]"]=Bre["[object WeakMap]"]=!1;var Fre="object"==("undefined"==typeof exports?"undefined":ql(exports))&&exports&&!exports.nodeType&&exports,$re=Fre&&"object"==("undefined"==typeof module?"undefined":ql(module))&&module&&!module.nodeType&&module,jre=$re&&$re.exports===Fre&&gte.process,Hre=function(){try{var e=$re&&$re.require&&$re.require("util").types;return e||jre&&jre.binding&&jre.binding("util")}catch(e){}}(),Ure=Hre&&Hre.isTypedArray,Qre=Ure?Pre(Ure):function(e){return Pne(e)&&_re(e.length)&&!!Bre[Ste(e)]},zre=Object.prototype.hasOwnProperty;function Wre(e,t){var n=jne(e),r=!n&&Ire(e),i=!n&&!r&&Lre(e),o=!n&&!r&&!i&&Qre(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!zre.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||pre(c,l))||s.push(c);return s}function Gre(e,t){return function(n){return e(t(n))}}var Vre=Gre($h,Object),Kre=Object.prototype.hasOwnProperty;function Yre(e){if(!Cre(e))return Vre(e);var t=[];for(var n in Object(e))Kre.call(e,n)&&"constructor"!=n&&t.push(n);return t}function qre(e){return xre(e)?Wre(e):Yre(e)}var Xre=Object.prototype.hasOwnProperty;function Jre(e){if(!Cte(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Cre(e),n=[];for(var r in e)("constructor"!=r||!t&&Xre.call(e,r))&&n.push(r);return n}function Zre(e){return xre(e)?Wre(e,!0):Jre(e)}var eie=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tie=/^\w*$/;function nie(e,t){if(jne(e))return!1;var n=ql(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Fne(e))||tie.test(e)||!eie.test(e)||null!=t&&e in Object(t)}var rie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,iie=/\\(\\)?/g,oie=function(e){var t=Jte(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(rie,function(e,n,r,i){t.push(r?i.replace(iie,"$1"):n||e)}),t});function aie(e){return null==e?"":Qne(e)}function sie(e,t){return jne(e)?e:nie(e,t)?[e]:oie(aie(e))}function lie(e){if("string"==typeof e||Fne(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function cie(e,t){for(var n=0,r=(t=sie(t,e)).length;null!=e&&n<r;)e=e[lie(t[n++])];return n&&n==r?e:void 0}function uie(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var die,hie,fie=Ate?Ate.isConcatSpreadable:void 0;function pie(e){return jne(e)||Ire(e)||!!(fie&&e&&e[fie])}function gie(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=pie),i||(i=[]);++o<a;){var s=e[o];n(s)?uie(i,s):r||(i[i.length]=s)}return i}function mie(e){return null!=e&&e.length?gie(e):[]}var vie=Gre(i(hie?die:(hie=1,die=ou())),Object),Aie=Function.prototype,bie=Object.prototype,yie=Aie.toString,wie=bie.hasOwnProperty,_ie=yie.call(Object);function xie(e){if(!Pne(e)||"[object Object]"!=Ste(e))return!1;var t=vie(e);if(null===t)return!0;var n=wie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&yie.call(n)==_ie}function Eie(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Sie(e){var t=this.__data__=new Kte(e);this.size=t.size}Sie.prototype.clear=function(){this.__data__=new Kte,this.size=0},Sie.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Sie.prototype.get=function(e){return this.__data__.get(e)},Sie.prototype.has=function(e){return this.__data__.has(e)},Sie.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Kte){var r=n.__data__;if(!Yte||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xte(r)}return n.set(e,t),this.size=n.size,this};var Cie="object"==("undefined"==typeof exports?"undefined":ql(exports))&&exports&&!exports.nodeType&&exports,Tie=Cie&&"object"==("undefined"==typeof module?"undefined":ql(module))&&module&&!module.nodeType&&module,kie=Tie&&Tie.exports===Cie?vte.Buffer:void 0,Oie=kie?kie.allocUnsafe:void 0;function Mie(e,t){if(t)return _x(e).call(e);var n=e.length,r=Oie?Oie(n):new e.constructor(n);return e.copy(r),r}function Iie(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Die(){return[]}var Nie=Object.prototype.propertyIsEnumerable,Rie=Xi,Lie=Rie?function(e){return null==e?[]:(e=Object(e),Iie(Rie(e),function(t){return Nie.call(e,t)}))}:Die,Bie=Xi?function(e){for(var t=[];e;)uie(t,Lie(e)),e=vie(e);return t}:Die;function Pie(e,t,n){var r=t(e);return jne(e)?r:uie(r,n(e))}function Fie(e){return Pie(e,qre,Lie)}function $ie(e){return Pie(e,Zre,Bie)}var jie=$te(vte,"DataView"),Hie=$te(vte,"Promise"),Uie=$te(vte,"Set"),Qie="[object Map]",zie="[object Promise]",Wie="[object Set]",Gie="[object WeakMap]",Vie="[object DataView]",Kie=Ite(jie),Yie=Ite(Yte),qie=Ite(Hie),Xie=Ite(Uie),Jie=Ite(ere),Zie=Ste;(jie&&Zie(new jie(new ArrayBuffer(1)))!=Vie||Yte&&Zie(new Yte)!=Qie||Hie&&Zie(Hie.resolve())!=zie||Uie&&Zie(new Uie)!=Wie||ere&&Zie(new ere)!=Gie)&&(Zie=function(e){var t=Ste(e),n="[object Object]"==t?e.constructor:void 0,r=n?Ite(n):"";if(r)switch(r){case Kie:return Vie;case Yie:return Qie;case qie:return zie;case Xie:return Wie;case Jie:return Gie}return t});var eoe=Object.prototype.hasOwnProperty,toe=vte.Uint8Array;function noe(e){var t=new e.constructor(e.byteLength);return new toe(t).set(new toe(e)),t}var roe=/\w*$/,ioe=Ate?Ate.prototype:void 0,ooe=ioe?ioe.valueOf:void 0;function aoe(e,t){var n=t?noe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function soe(e,t,n){var r,i,o=e.constructor;switch(t){case"[object ArrayBuffer]":return noe(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var n=t?noe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return aoe(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return(i=new(r=e).constructor(r.source,roe.exec(r))).lastIndex=r.lastIndex,i;case"[object Symbol]":return function(e){return ooe?Object(ooe.call(e)):{}}(e)}}function loe(e){return"function"!=typeof e.constructor||Cre(e)?{}:nre(vie(e))}var coe=Hre&&Hre.isMap,uoe=coe?Pre(coe):function(e){return Pne(e)&&"[object Map]"==Zie(e)},doe=Hre&&Hre.isSet,hoe=doe?Pre(doe):function(e){return Pne(e)&&"[object Set]"==Zie(e)},foe="[object Arguments]",poe="[object Function]",goe="[object Object]",moe={};function voe(e,t,n,r,i,o){var a,s=1&t,l=2&t,c=4&t;if(void 0!==a)return a;if(!Cte(e))return e;var u=jne(e);if(u){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&eoe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return rre(e,a)}else{var d=Zie(e),h=d==poe||"[object GeneratorFunction]"==d;if(Lre(e))return Mie(e,s);if(d==goe||d==foe||h&&!i){if(a=l||h?{}:loe(e),!s)return l?function(e,t){return Are(e,Bie(e),t)}(e,function(e,t){return e&&Are(t,Zre(t),e)}(a,e)):function(e,t){return Are(e,Lie(e),t)}(e,function(e,t){return e&&Are(t,qre(t),e)}(a,e))}else{if(!moe[d])return i?e:{};a=soe(e,d,s)}}o||(o=new Sie);var f=o.get(e);if(f)return f;o.set(e,a),hoe(e)?gf(e).call(e,function(r){a.add(voe(r,t,n,r,e,o))}):uoe(e)&&gf(e).call(e,function(r,i){a.set(i,voe(r,t,n,i,e,o))});var p=u?void 0:(c?l?$ie:Fie:l?Zre:qre)(e);return cre(p||e,function(r,i){p&&(r=e[i=r]),vre(a,i,voe(r,t,n,i,e,o))}),a}function Aoe(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Xte;++t<n;)this.add(e[t])}function boe(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function yoe(e,t){return e.has(t)}function woe(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,f=2&n?new Aoe:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var p=e[d],g=t[d];if(r)var m=a?r(g,p,d,t,e,o):r(p,g,d,e,t,o);if(void 0!==m){if(m)continue;h=!1;break}if(f){if(!boe(t,function(e,t){if(!yoe(f,t)&&(p===e||i(p,e,n,r,o)))return f.push(t)})){h=!1;break}}else if(p!==g&&!i(p,g,n,r,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function _oe(e){var t=-1,n=Array(e.size);return gf(e).call(e,function(e,r){n[++t]=[r,e]}),n}function xoe(e){var t=-1,n=Array(e.size);return gf(e).call(e,function(e){n[++t]=e}),n}moe[foe]=moe["[object Array]"]=moe["[object ArrayBuffer]"]=moe["[object DataView]"]=moe["[object Boolean]"]=moe["[object Date]"]=moe["[object Float32Array]"]=moe["[object Float64Array]"]=moe["[object Int8Array]"]=moe["[object Int16Array]"]=moe["[object Int32Array]"]=moe["[object Map]"]=moe["[object Number]"]=moe[goe]=moe["[object RegExp]"]=moe["[object Set]"]=moe["[object String]"]=moe["[object Symbol]"]=moe["[object Uint8Array]"]=moe["[object Uint8ClampedArray]"]=moe["[object Uint16Array]"]=moe["[object Uint32Array]"]=!0,moe["[object Error]"]=moe[poe]=moe["[object WeakMap]"]=!1,Aoe.prototype.add=Aoe.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Aoe.prototype.has=function(e){return this.__data__.has(e)};var Eoe=Ate?Ate.prototype:void 0,Soe=Eoe?Eoe.valueOf:void 0,Coe=Object.prototype.hasOwnProperty,Toe="[object Arguments]",koe="[object Array]",Ooe="[object Object]",Moe=Object.prototype.hasOwnProperty;function Ioe(e,t,n,r,i,o){var a=jne(e),s=jne(t),l=a?koe:Zie(e),c=s?koe:Zie(t),u=(l=l==Toe?Ooe:l)==Ooe,d=(c=c==Toe?Ooe:c)==Ooe,h=l==c;if(h&&Lre(e)){if(!Lre(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new Sie),a||Qre(e)?woe(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new toe(e),new toe(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return zte(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=_oe;case"[object Set]":var l=1&r;if(s||(s=xoe),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=woe(s(e),s(t),r,i,o,a);return a.delete(e),u;case"[object Symbol]":if(Soe)return Soe.call(e)==Soe.call(t)}return!1}(e,t,l,n,r,i,o);if(!(1&n)){var f=u&&Moe.call(e,"__wrapped__"),p=d&&Moe.call(t,"__wrapped__");if(f||p){var g=f?e.value():e,m=p?t.value():t;return o||(o=new Sie),i(g,m,n,r,o)}}return!!h&&(o||(o=new Sie),function(e,t,n,r,i,o){var a=1&n,s=Fie(e),l=s.length;if(l!=Fie(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:Coe.call(t,u)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var f=!0;o.set(e,t),o.set(t,e);for(var p=a;++c<l;){var g=e[u=s[c]],m=t[u];if(r)var v=a?r(m,g,u,t,e,o):r(g,m,u,e,t,o);if(!(void 0===v?g===m||i(g,m,n,r,o):v)){f=!1;break}p||(p="constructor"==u)}if(f&&!p){var A=e.constructor,b=t.constructor;A==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof A&&A instanceof A&&"function"==typeof b&&b instanceof b||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,i,o))}function Doe(e,t,n,r,i){return e===t||(null==e||null==t||!Pne(e)&&!Pne(t)?e!=e&&t!=t:Ioe(e,t,n,r,Doe,i))}function Noe(e){return e==e&&!Cte(e)}function Roe(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}function Loe(e){var t=function(e){for(var t=qre(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Noe(i)]}return t}(e);return 1==t.length&&t[0][2]?Roe(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var i=n.length,o=i;if(null==e)return!o;for(e=Object(e);i--;){var a=n[i];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<o;){var s=(a=n[i])[0],l=e[s],c=a[1];if(a[2]){if(void 0===l&&!(s in e))return!1}else if(!Doe(c,l,3,r,new Sie))return!1}return!0}(n,0,t)}}function Boe(e,t){return null!=e&&t in Object(e)}function Poe(e,t,n){for(var r=-1,i=(t=sie(t,e)).length,o=!1;++r<i;){var a=lie(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&_re(i)&&pre(a,i)&&(jne(e)||Ire(e))}function Foe(e,t){return null!=e&&Poe(e,t,Boe)}function $oe(e,t){return nie(e)&&Noe(t)?Roe(lie(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:cie(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?Foe(n,e):Doe(t,r,3)}}function joe(e){return nie(e)?function(e){return function(t){return null==t?void 0:t[e]}}(lie(e)):function(e){return function(t){return cie(t,e)}}(e)}function Hoe(e){return"function"==typeof e?e:null==e?Zne:"object"==ql(e)?jne(e)?$oe(e[0],e[1]):Loe(e):joe(e)}var Uoe=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e};function Qoe(e,t){return e&&Uoe(e,t,qre)}var zoe,Woe=(zoe=Qoe,function(e,t){if(null==e)return e;if(!xre(e))return zoe(e,t);for(var n=e.length,r=-1,i=Object(e);++r<n&&!1!==t(i[r],r,i););return e}),Goe=Object.prototype,Voe=Goe.hasOwnProperty,Koe=wre(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&Ere(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=Zre(o),s=-1,l=a.length;++s<l;){var c=a[s],u=e[c];(void 0===u||zte(u,Goe[c])&&!Voe.call(e,c))&&(e[c]=o[c])}return e});function Yoe(e,t,n){(void 0!==n&&!zte(e[t],n)||void 0===n&&!(t in e))&&gre(e,t,n)}function qoe(e){return Pne(e)&&xre(e)}function Xoe(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function Joe(e,t,n,r,i,o,a){var s=Xoe(e,n),l=Xoe(t,n),c=a.get(l);if(c)Yoe(e,n,c);else{var u,d=o?o(s,l,n+"",e,t,a):void 0,h=void 0===d;if(h){var f=jne(l),p=!f&&Lre(l),g=!f&&!p&&Qre(l);d=l,f||p||g?jne(s)?d=s:qoe(s)?d=rre(s):p?(h=!1,d=Mie(l,!0)):g?(h=!1,d=aoe(l,!0)):d=[]:xie(l)||Ire(l)?(d=s,Ire(s)?d=Are(u=s,Zre(u)):Cte(s)&&!Tte(s)||(d=loe(l))):h=!1}h&&(a.set(l,d),i(d,l,r,o,a),a.delete(l)),Yoe(e,n,d)}}function Zoe(e,t,n,r,i){e!==t&&Uoe(t,function(o,a){if(i||(i=new Sie),Cte(o))Joe(e,t,a,n,Zoe,r,i);else{var s=r?r(Xoe(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),Yoe(e,a,s)}},Zre)}function eae(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}function tae(e){return"function"==typeof e?e:Zne}function nae(e,t){return(jne(e)?cre:Woe)(e,tae(t))}function rae(e,t){var n=[];return Woe(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function iae(e,t){return(jne(e)?Iie:rae)(e,Hoe(t))}var oae,aae=Math.max,sae=(oae=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i,o,a=null==n?0:(i=Jne(n),o=i%1,i==i?o?i-o:i:0);return a<0&&(a=aae(r+a,0)),ure(e,Hoe(t),a)},function(e,t,n){var r=Object(e);if(!xre(e)){var i=Hoe(t);e=qre(e),t=function(e){return i(r[e],e,r)}}var o=oae(e,t,n);return o>-1?r[i?e[o]:o]:void 0});function lae(e,t){var n=-1,r=xre(e)?Array(e.length):[];return Woe(e,function(e,i,o){r[++n]=t(e,i,o)}),r}function cae(e,t){return(jne(e)?$ne:lae)(e,Hoe(t))}function uae(e,t){return e>t}var dae=Object.prototype.hasOwnProperty;function hae(e,t){return null!=e&&dae.call(e,t)}function fae(e,t){return null!=e&&Poe(e,t,hae)}function pae(e){return null==e?[]:function(e,t){return $ne(t,function(t){return e[t]})}(e,qre(e))}var gae=Object.prototype.hasOwnProperty;function mae(e){if(null==e)return!0;if(xre(e)&&(jne(e)||"string"==typeof e||"function"==typeof pk(e)||Lre(e)||Qre(e)||Ire(e)))return!e.length;var t=Zie(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(Cre(e))return!Yre(e).length;for(var n in e)if(gae.call(e,n))return!1;return!0}function vae(e){return void 0===e}function Aae(e,t){return e<t}function bae(e,t){var n={};return t=Hoe(t),Qoe(e,function(e,r,i){gre(n,r,t(e,r,i))}),n}function yae(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!Fne(a):n(a,s)))var s=a,l=o}return l}function wae(e){return e&&e.length?yae(e,Zne,uae):void 0}var _ae,xae=(_ae=function(e,t,n){Zoe(e,t,n)},wre(function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=_ae.length>3&&"function"==typeof i?(r--,i):void 0,o&&Ere(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var a=t[n];a&&_ae(e,a,n,i)}return e}));function Eae(e){return e&&e.length?yae(e,Zne,Aae):void 0}function Sae(e,t){return e&&e.length?yae(e,Hoe(t),Aae):void 0}function Cae(e,t,n,r){if(!Cte(e))return e;for(var i=-1,o=(t=sie(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=lie(t[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var u=s[l];void 0===(c=void 0)&&(c=Cte(u)?u:pre(t[i+1])?[]:{})}vre(s,l,c),s=s[l]}return e}function Tae(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=Fne(e),a=void 0!==t,s=null===t,l=t==t,c=Fne(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}function kae(e,t,n){t=t.length?$ne(t,function(e){return jne(e)?function(t){return cie(t,1===e.length?e[0]:e)}:e}):[Zne];var r=-1;return t=$ne(t,Pre(Hoe)),function(e,t){var n=e.length;for(bG(e).call(e,t);n--;)e[n]=e[n].value;return e}(lae(e,function(e,n,i){return{criteria:$ne(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=Tae(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function Oae(e,t){return function(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=cie(e,a);n(s,a)&&Cae(o,sie(a,e),s)}return o}(e,t,function(t,n){return Foe(e,n)})}var Mae=function(e){return lre(yre(e,void 0,mie),e+"")}(function(e,t){return null==e?{}:Oae(e,t)}),Iae=Math.ceil,Dae=Math.max,Nae=function(e,t,n){return n&&"number"!=typeof n&&Ere(e,t,n)&&(t=n=void 0),e=Jne(e),void 0===t?(t=e,e=0):t=Jne(t),function(e,t,n){for(var r=-1,i=Dae(Iae((t-e)/(n||1)),0),o=Array(i);i--;)o[++r]=e,e+=n;return o}(e,t,n=void 0===n?e<t?1:-1:Jne(n))};function Rae(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function Lae(e,t,n){var r=jne(e)?Eie:Rae,i=arguments.length<3;return r(e,Hoe(t),n,i,Woe)}var Bae,Pae,Fae=wre(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ere(e,t[0],t[1])?t=[]:n>2&&Ere(t[0],t[1],t[2])&&(t=[t[0]]),kae(e,gie(t),[])}),$ae=Uie&&1/xoe(new Uie([,-0]))[1]==1/0?function(e){return new Uie(e)}:function(){},jae=wre(function(e){return function(e,t,n){var r=-1,i=hre,o=e.length,a=!0,s=[],l=s;if(o>=200){var c=$ae(e);if(c)return xoe(c);a=!1,i=yoe,l=new Aoe}else l=s;e:for(;++r<o;){var u=e[r],d=u;if(u=0!==u?u:0,a&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;s.push(u)}else i(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}(gie(e,0,qoe,!0))}),Hae=0;function Uae(e){var t=++Hae;return aie(e)+t}var Qae=i(Pae?Bae:(Pae=1,Bae=t6())),zae="\0",Wae=function(){return mc(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ua(this,e),this._isDirected=!fae(t,"directed")||t.directed,this._isMultigraph=!!fae(t,"multigraph")&&t.multigraph,this._isCompound=!!fae(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=ore(void 0),this._defaultEdgeLabelFn=ore(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[zae]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}},[{key:"isDirected",value:function(){return this._isDirected}},{key:"isMultigraph",value:function(){return this._isMultigraph}},{key:"isCompound",value:function(){return this._isCompound}},{key:"setGraph",value:function(e){return this._label=e,this}},{key:"graph",value:function(){return this._label}},{key:"setDefaultNodeLabel",value:function(e){return Tte(e)||(e=ore(e)),this._defaultNodeLabelFn=e,this}},{key:"nodeCount",value:function(){return this._nodeCount}},{key:"nodes",value:function(){return qre(this._nodes)}},{key:"sources",value:function(){var e=this;return iae(this.nodes(),function(t){return mae(e._in[t])})}},{key:"sinks",value:function(){var e=this;return iae(this.nodes(),function(t){return mae(e._out[t])})}},{key:"setNodes",value:function(e,t){var n=arguments,r=this;return nae(e,function(e){n.length>1?r.setNode(e,t):r.setNode(e)}),this}},{key:"setNode",value:function(e,t){return fae(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=zae,this._children[e]={},this._children[zae][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}},{key:"node",value:function(e){return this._nodes[e]}},{key:"hasNode",value:function(e){return fae(this._nodes,e)}},{key:"removeNode",value:function(e){var t=this;if(fae(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],nae(this.children(e),function(e){t.setParent(e)}),delete this._children[e]),nae(qre(this._in[e]),n),delete this._in[e],delete this._preds[e],nae(qre(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}},{key:"setParent",value:function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(vae(t))t=zae;else{for(var n=t+="";!vae(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}},{key:"_removeFromParentsChildList",value:function(e){delete this._children[this._parent[e]][e]}},{key:"parent",value:function(e){if(this._isCompound){var t=this._parent[e];if(t!==zae)return t}}},{key:"children",value:function(e){if(vae(e)&&(e=zae),this._isCompound){var t=this._children[e];if(t)return qre(t)}else{if(e===zae)return this.nodes();if(this.hasNode(e))return[]}}},{key:"predecessors",value:function(e){var t=this._preds[e];if(t)return qre(t)}},{key:"successors",value:function(e){var t=this._sucs[e];if(t)return qre(t)}},{key:"neighbors",value:function(e){var t=this.predecessors(e);if(t)return jae(t,this.successors(e))}},{key:"isLeaf",value:function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length}},{key:"filterNodes",value:function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;nae(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),nae(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var r={};function i(e){var o=n.parent(e);return void 0===o||t.hasNode(o)?(r[e]=o,o):o in r?r[o]:i(o)}return this._isCompound&&nae(t.nodes(),function(e){t.setParent(e,i(e))}),t}},{key:"setDefaultEdgeLabel",value:function(e){return Tte(e)||(e=ore(e)),this._defaultEdgeLabelFn=e,this}},{key:"edgeCount",value:function(){return this._edgeCount}},{key:"edges",value:function(){return pae(this._edgeObjs)}},{key:"setPath",value:function(e,t){var n=this,r=arguments;return Lae(e,function(e,i){return r.length>1?n.setEdge(e,i,t):n.setEdge(e,i),i}),this}},{key:"setEdge",value:function(){var e,t,n,r,i=!1,o=arguments[0];"object"===ql(o)&&null!==o&&"v"in o?(e=o.v,t=o.w,n=o.name,2===arguments.length&&(r=arguments[1],i=!0)):(e=o,t=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),e=""+e,t=""+t,vae(n)||(n=""+n);var a=Kae(this._isDirected,e,t,n);if(fae(this._edgeLabels,a))return i&&(this._edgeLabels[a]=r),this;if(!vae(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[a]=i?r:this._defaultEdgeLabelFn(e,t,n);var s=function(e,t,n,r){var i=""+t,o=""+n;if(!e&&i>o){var a=i;i=o,o=a}var s={v:i,w:o};return r&&(s.name=r),s}(this._isDirected,e,t,n);return e=s.v,t=s.w,Qae(s),this._edgeObjs[a]=s,Gae(this._preds[t],e),Gae(this._sucs[e],t),this._in[t][a]=s,this._out[e][a]=s,this._edgeCount++,this}},{key:"edge",value:function(e,t,n){var r=1===arguments.length?Yae(this._isDirected,arguments[0]):Kae(this._isDirected,e,t,n);return this._edgeLabels[r]}},{key:"hasEdge",value:function(e,t,n){var r=1===arguments.length?Yae(this._isDirected,arguments[0]):Kae(this._isDirected,e,t,n);return fae(this._edgeLabels,r)}},{key:"removeEdge",value:function(e,t,n){var r=1===arguments.length?Yae(this._isDirected,arguments[0]):Kae(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],Vae(this._preds[t],e),Vae(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this}},{key:"inEdges",value:function(e,t){var n=this._in[e];if(n){var r=pae(n);return t?iae(r,function(e){return e.v===t}):r}}},{key:"outEdges",value:function(e,t){var n=this._out[e];if(n){var r=pae(n);return t?iae(r,function(e){return e.w===t}):r}}},{key:"nodeEdges",value:function(e,t){var n=this.inEdges(e,t);if(n)return Xu(n).call(n,this.outEdges(e,t))}}])}();function Gae(e,t){e[t]?e[t]++:e[t]=1}function Vae(e,t){--e[t]||delete e[t]}function Kae(e,t,n,r){var i=""+t,o=""+n;if(!e&&i>o){var a=i;i=o,o=a}return i+""+o+""+(vae(r)?"\0":r)}function Yae(e,t){return Kae(e,t.v,t.w,t.name)}Wae.prototype._nodeCount=0,Wae.prototype._edgeCount=0;var qae=function(){return mc(function e(){ua(this,e);var t={};t._next=t._prev=t,this._sentinel=t},[{key:"dequeue",value:function(){var e=this._sentinel,t=e._prev;if(t!==e)return Xae(t),t}},{key:"enqueue",value:function(e){var t=this._sentinel;e._prev&&e._next&&Xae(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}},{key:"toString",value:function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(Ew(n,Jae)),n=n._prev;return"["+e.join(", ")+"]"}}])}();function Xae(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Jae(e,t){if("_next"!==e&&"_prev"!==e)return t}var Zae=ore(1);function ese(e,t){if(e.nodeCount()<=1)return[];var n=function(e,t){var n,r=new Wae,i=0,o=0;nae(e.nodes(),function(e){r.setNode(e,{v:e,in:0,out:0})}),nae(e.edges(),function(e){var n=r.edge(e.v,e.w)||0,a=t(e),s=n+a;r.setEdge(e.v,e.w,s),o=Math.max(o,r.node(e.v).out+=a),i=Math.max(i,r.node(e.w).in+=a)});var a=_h(n=Nae(o+i+3)).call(n,function(){return new qae}),s=i+1;return nae(r.nodes(),function(e){nse(a,s,r.node(e))}),{graph:r,buckets:a,zeroIdx:s}}(e,t||Zae),r=function(e,t,n){for(var r,i=[],o=t[t.length-1],a=t[0];e.nodeCount();){for(;r=a.dequeue();)tse(e,t,n,r);for(;r=o.dequeue();)tse(e,t,n,r);if(e.nodeCount())for(var s=t.length-2;s>0;--s)if(r=t[s].dequeue()){i=Xu(i).call(i,tse(e,t,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return mie(cae(r,function(t){return e.outEdges(t.v,t.w)}))}function tse(e,t,n,r,i){var o=i?[]:void 0;return nae(e.inEdges(r.v),function(r){var a=e.edge(r),s=e.node(r.v);i&&o.push({v:r.v,w:r.w}),s.out-=a,nse(t,n,s)}),nae(e.outEdges(r.v),function(r){var i=e.edge(r),o=r.w,a=e.node(o);a.in-=i,nse(t,n,a)}),e.removeNode(r.v),o}function nse(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}function rse(e){var t="greedy"===e.graph().acyclicer?ese(e,function(e){return function(t){return e.edge(t).weight}}(e)):function(e){var t=[],n={},r={};function i(o){fae(r,o)||(r[o]=!0,n[o]=!0,nae(e.outEdges(o),function(e){fae(n,e.w)?t.push(e):i(e.w)}),delete n[o])}return nae(e.nodes(),i),t}(e);nae(t,function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,Uae("rev"))})}function ise(e,t,n,r){var i;do{i=Uae(r)}while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function ose(e){var t=new Wae({multigraph:e.isMultigraph()}).setGraph(e.graph());return nae(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),nae(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t}function ase(e,t){var n,r,i=e.x,o=e.y,a=t.x-i,s=t.y-o,l=e.width/2,c=e.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*l>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,r=c):(a<0&&(l=-l),n=l,r=l*s/a),{x:i+n,y:o+r}}function sse(e){var t=cae(Nae(cse(e)+1),function(){return[]});return nae(e.nodes(),function(n){var r=e.node(n),i=r.rank;vae(i)||(t[i][r.order]=n)}),t}function lse(e,t,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),ise(e,"border",i,t)}function cse(e){return wae(cae(e.nodes(),function(t){var n=e.node(t).rank;if(!vae(n))return n}))}function use(e,t){return t()}function dse(e,t,n,r,i,o){var a={width:0,height:0,rank:o,borderType:t},s=i[t][o-1],l=ise(e,"border",a,n);i[t][o]=l,e.setParent(l,r),s&&e.setEdge(s,l,{weight:1})}function hse(e){var t=e.graph().rankdir.toLowerCase();"bt"!==t&&"rl"!==t||function(e){nae(e.nodes(),function(t){gse(e.node(t))}),nae(e.edges(),function(t){var n=e.edge(t);nae(n.points,gse),fae(n,"y")&&gse(n)})}(e),"lr"!==t&&"rl"!==t||(function(e){nae(e.nodes(),function(t){mse(e.node(t))}),nae(e.edges(),function(t){var n=e.edge(t);nae(n.points,mse),fae(n,"x")&&mse(n)})}(e),fse(e))}function fse(e){nae(e.nodes(),function(t){pse(e.node(t))}),nae(e.edges(),function(t){pse(e.edge(t))})}function pse(e){var t=e.width;e.width=e.height,e.height=t}function gse(e){e.y=-e.y}function mse(e){var t=e.x;e.x=e.y,e.y=t}function vse(e){e.graph().dummyChains=[],nae(e.edges(),function(t){!function(e,t){var n,r,i,o=t.v,a=e.node(o).rank,s=t.w,l=e.node(s).rank,c=t.name,u=e.edge(t),d=u.labelRank;if(l!==a+1){for(e.removeEdge(t),i=0,++a;a<l;++i,++a)u.points=[],n=ise(e,"edge",r={width:0,height:0,edgeLabel:u,edgeObj:t,rank:a},"_d"),a===d&&(r.width=u.width,r.height=u.height,r.dummy="edge-label",r.labelpos=u.labelpos),e.setEdge(o,n,{weight:u.weight},c),0===i&&e.graph().dummyChains.push(n),o=n;e.setEdge(o,s,{weight:u.weight},c)}}(e,t)})}function Ase(e){var t={};nae(e.sources(),function n(r){var i=e.node(r);if(fae(t,r))return i.rank;t[r]=!0;var o=Eae(cae(e.outEdges(r),function(t){return n(t.w)-e.edge(t).minlen}));return o!==Number.POSITIVE_INFINITY&&null!=o||(o=0),i.rank=o})}function bse(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}function yse(e){var t,n,r=new Wae({directed:!1}),i=e.nodes()[0],o=e.nodeCount();for(r.setNode(i,{});wse(r,e)<o;)t=_se(r,e),n=r.hasNode(t.v)?bse(e,t):-bse(e,t),xse(r,e,n);return r}function wse(e,t){return nae(e.nodes(),function n(r){nae(t.nodeEdges(r),function(i){var o=i.v,a=r===o?i.w:o;e.hasNode(a)||bse(t,i)||(e.setNode(a,{}),e.setEdge(r,a,{}),n(a))})}),e.nodeCount()}function _se(e,t){return Sae(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return bse(t,n)})}function xse(e,t,n){nae(e.nodes(),function(e){t.node(e).rank+=n})}function Ese(e,t,n){var r;jne(t)||(t=[t]);var i=Ju(r=e.isDirected()?e.successors:e.neighbors).call(r,e),o=[],a={};return nae(t,function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);Sse(e,t,"post"===n,a,i,o)}),o}function Sse(e,t,n,r,i,o){fae(r,t)||(r[t]=!0,n||o.push(t),nae(i(t),function(t){Sse(e,t,n,r,i,o)}),n&&o.push(t))}function Cse(e){e=function(e){var t=(new Wae).setGraph(e.graph());return nae(e.nodes(),function(n){t.setNode(n,e.node(n))}),nae(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}(e),Ase(e);var t,n=yse(e);for(Ose(n),Tse(n,e);t=Ise(n);)Nse(n,e,t,Dse(n,e,t))}function Tse(e,t){var n=function(e,t){return Ese(e,t,"post")}(e,e.nodes());nae(n=_x(n).call(n,0,n.length-1),function(n){!function(e,t,n){var r=e.node(n),i=r.parent;e.edge(n,i).cutvalue=kse(e,t,n)}(e,t,n)})}function kse(e,t,n){var r=e.node(n).parent,i=!0,o=t.edge(n,r),a=0;return o||(i=!1,o=t.edge(r,n)),a=o.weight,nae(t.nodeEdges(n),function(o){var s,l,c=o.v===n,u=c?o.w:o.v;if(u!==r){var d=c===i,h=t.edge(o).weight;if(a+=d?h:-h,s=n,l=u,e.hasEdge(s,l)){var f=e.edge(n,u).cutvalue;a+=d?-f:f}}}),a}function Ose(e,t){arguments.length<2&&(t=e.nodes()[0]),Mse(e,{},1,t)}function Mse(e,t,n,r,i){var o=n,a=e.node(r);return t[r]=!0,nae(e.neighbors(r),function(i){fae(t,i)||(n=Mse(e,t,n,i,r))}),a.low=o,a.lim=n++,i?a.parent=i:delete a.parent,n}function Ise(e){return sae(e.edges(),function(t){return e.edge(t).cutvalue<0})}function Dse(e,t,n){var r=n.v,i=n.w;t.hasEdge(r,i)||(r=n.w,i=n.v);var o=e.node(r),a=e.node(i),s=o,l=!1;o.lim>a.lim&&(s=a,l=!0);var c=iae(t.edges(),function(t){return l===Rse(e,e.node(t.v),s)&&l!==Rse(e,e.node(t.w),s)});return Sae(c,function(e){return bse(t,e)})}function Nse(e,t,n,r){var i=n.v,o=n.w;e.removeEdge(i,o),e.setEdge(r.v,r.w,{}),Ose(e),Tse(e,t),function(e,t){var n=sae(e.nodes(),function(e){return!t.node(e).parent}),r=function(e,t){return Ese(e,t,"pre")}(e,n);nae(r=_x(r).call(r,1),function(n){var r=e.node(n).parent,i=t.edge(n,r),o=!1;i||(i=t.edge(r,n),o=!0),t.node(n).rank=t.node(r).rank+(o?i.minlen:-i.minlen)})}(e,t)}function Rse(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}function Lse(e){switch(e.graph().ranker){case"network-simplex":default:Pse(e);break;case"tight-tree":!function(e){Ase(e),yse(e)}(e);break;case"longest-path":Bse(e)}}new Error,Cse.initLowLimValues=Ose,Cse.initCutValues=Tse,Cse.calcCutValue=kse,Cse.leaveEdge=Ise,Cse.enterEdge=Dse,Cse.exchangeEdges=Nse;var Bse=Ase;function Pse(e){Cse(e)}function Fse(e){var t=ise(e,"root",{},"_root"),n=function(e){var t={};function n(r,i){var o=e.children(r);o&&o.length&&nae(o,function(e){n(e,i+1)}),t[r]=i}return nae(e.children(),function(e){n(e,1)}),t}(e),r=wae(pae(n))-1,i=2*r+1;e.graph().nestingRoot=t,nae(e.edges(),function(t){e.edge(t).minlen*=i});var o=function(e){return Lae(e.edges(),function(t,n){return t+e.edge(n).weight},0)}(e)+1;nae(e.children(),function(a){$se(e,t,i,o,r,n,a)}),e.graph().nodeRankFactor=i}function $se(e,t,n,r,i,o,a){var s=e.children(a);if(s.length){var l=lse(e,"_bt"),c=lse(e,"_bb"),u=e.node(a);e.setParent(l,a),u.borderTop=l,e.setParent(c,a),u.borderBottom=c,nae(s,function(s){$se(e,t,n,r,i,o,s);var u=e.node(s),d=u.borderTop?u.borderTop:s,h=u.borderBottom?u.borderBottom:s,f=u.borderTop?r:2*r,p=d!==h?1:i-o[a]+1;e.setEdge(l,d,{weight:f,minlen:p,nestingEdge:!0}),e.setEdge(h,c,{weight:f,minlen:p,nestingEdge:!0})}),e.parent(a)||e.setEdge(t,l,{weight:0,minlen:i+o[a]})}else a!==t&&e.setEdge(t,a,{weight:0,minlen:n})}function jse(e,t,n){var r=function(e){for(var t;e.hasNode(t=Uae("_root")););return t}(e),i=new Wae({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(t){return e.node(t)});return nae(e.nodes(),function(o){var a=e.node(o),s=e.parent(o);(a.rank===t||a.minRank<=t&&t<=a.maxRank)&&(i.setNode(o),i.setParent(o,s||r),nae(e[n](o),function(t){var n=t.v===o?t.w:t.v,r=i.edge(n,o),a=vae(r)?0:r.weight;i.setEdge(n,o,{weight:e.edge(t).weight+a})}),fae(a,"minRank")&&i.setNode(o,{borderLeft:a.borderLeft[t],borderRight:a.borderRight[t]}))}),i}function Hse(e,t){for(var n=0,r=1;r<t.length;++r)n+=Use(e,t[r-1],t[r]);return n}function Use(e,t,n){for(var r=function(e,t){return function(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}(e||[],t||[],vre)}(n,cae(n,function(e,t){return t})),i=mie(cae(t,function(t){return Fae(cae(e.outEdges(t),function(t){return{pos:r[t.w],weight:e.edge(t).weight}}),"pos")})),o=1;o<n.length;)o<<=1;var a=2*o-1;o-=1;var s=cae(new Array(a),function(){return 0}),l=0;return nae(gf(i).call(i,function(e){var t=e.pos+o;s[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=s[t+1]),s[t=t-1>>1]+=e.weight;l+=e.weight*n})),l}function Qse(e,t){var n={};return nae(e,function(e,t){var r=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};vae(e.barycenter)||(r.barycenter=e.barycenter,r.weight=e.weight)}),nae(t.edges(),function(e){var t=n[e.v],r=n[e.w];vae(t)||vae(r)||(r.indegree++,t.out.push(n[e.w]))}),function(e){var t=[];function n(e){return function(t){t.merged||(vae(t.barycenter)||vae(e.barycenter)||t.barycenter>=e.barycenter)&&function(e,t){var n,r=0,i=0;e.weight&&(r+=e.barycenter*e.weight,i+=e.weight),t.weight&&(r+=t.barycenter*t.weight,i+=t.weight),e.vs=Xu(n=t.vs).call(n,e.vs),e.barycenter=r/i,e.weight=i,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}function r(t){return function(n){n.in.push(t),0==--n.indegree&&e.push(n)}}for(;e.length;){var i,o=e.pop();t.push(o),nae(c0(i=o.in).call(i),n(o)),nae(o.out,r(o))}return cae(iae(t,function(e){return!e.merged}),function(e){return Mae(e,["vs","i","barycenter","weight"])})}(iae(n,function(e){return!e.indegree}))}function zse(e,t){var n,r=function(e,t){var n={lhs:[],rhs:[]};return nae(e,function(e){t(e)?n.lhs.push(e):n.rhs.push(e)}),n}(e,function(e){return fae(e,"barycenter")}),i=r.lhs,o=Fae(r.rhs,function(e){return-e.i}),a=[],s=0,l=0,c=0;bG(i).call(i,(n=!!t,function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:n?t.i-e.i:e.i-t.i})),c=Wse(a,o,c),nae(i,function(e){c+=e.vs.length,a.push(e.vs),s+=e.barycenter*e.weight,l+=e.weight,c=Wse(a,o,c)});var u={vs:mie(a)};return l&&(u.barycenter=s/l,u.weight=l),u}function Wse(e,t,n){for(var r;t.length&&(r=eae(t)).i<=n;)t.pop(),e.push(r.vs),n++;return n}function Gse(e,t,n,r){var i=e.children(t),o=e.node(t),a=o?o.borderLeft:void 0,s=o?o.borderRight:void 0,l={};a&&(i=iae(i,function(e){return e!==a&&e!==s}));var c=function(e,t){return cae(t,function(t){var n=e.inEdges(t);if(n.length){var r=Lae(n,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}return{v:t}})}(e,i);nae(c,function(t){if(e.children(t.v).length){var i=Gse(e,t.v,n,r);l[t.v]=i,fae(i,"barycenter")&&(a=i,vae((o=t).barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a});var u=Qse(c,n);!function(e,t){nae(e,function(e){var n;e.vs=mie(_h(n=e.vs).call(n,function(e){return t[e]?t[e].vs:e}))})}(u,l);var d=zse(u,r);if(a&&(d.vs=mie([a,d.vs,s]),e.predecessors(a).length)){var h=e.node(e.predecessors(a)[0]),f=e.node(e.predecessors(s)[0]);fae(d,"barycenter")||(d.barycenter=0,d.weight=0),d.barycenter=(d.barycenter*d.weight+h.order+f.order)/(d.weight+2),d.weight+=2}return d}function Vse(e){var t=cse(e),n=Kse(e,Nae(1,t+1),"inEdges"),r=Kse(e,Nae(t-1,-1,-1),"outEdges"),i=function(e){var t={},n=iae(e.nodes(),function(t){return!e.children(t).length}),r=wae(cae(n,function(t){return e.node(t).rank})),i=cae(Nae(r+1),function(){return[]});return nae(Fae(n,function(t){return e.node(t).rank}),function n(r){if(!fae(t,r)){t[r]=!0;var o=e.node(r);i[o.rank].push(r),nae(e.successors(r),n)}}),i}(e);qse(e,i);for(var o,a=Number.POSITIVE_INFINITY,s=0,l=0;l<4;++s,++l){Yse(s%2?n:r,s%4>=2);var c=Hse(e,i=sse(e));c<a&&(l=0,o=voe(i,5),a=c)}qse(e,o)}function Kse(e,t,n){return cae(t,function(t){return jse(e,t,n)})}function Yse(e,t){var n=new Wae;nae(e,function(e){var r=e.graph().root,i=Gse(e,r,n,t);nae(i.vs,function(t,n){e.node(t).order=n}),function(e,t,n){var r,i={};nae(n,function(n){for(var o,a,s=e.parent(n);s;){if((o=e.parent(s))?(a=i[o],i[o]=s):(a=r,r=s),a&&a!==s)return void t.setEdge(a,s);s=o}})}(e,n,i.vs)})}function qse(e,t){nae(t,function(t){nae(t,function(t,n){e.node(t).order=n})})}function Xse(e){var t=function(e){var t={},n=0;function r(i){var o=n;nae(e.children(i),r),t[i]={low:o,lim:n++}}return nae(e.children(),r),t}(e);nae(e.graph().dummyChains,function(n){for(var r=e.node(n),i=r.edgeObj,o=function(e,t,n,r){var i,o,a=[],s=[],l=Math.min(t[n].low,t[r].low),c=Math.max(t[n].lim,t[r].lim);i=n;do{i=e.parent(i),a.push(i)}while(i&&(t[i].low>l||c>t[i].lim));for(o=i,i=r;(i=e.parent(i))!==o;)s.push(i);return{path:Xu(a).call(a,c0(s).call(s)),lca:o}}(e,t,i.v,i.w),a=o.path,s=o.lca,l=0,c=a[l],u=!0;n!==i.w;){if(r=e.node(n),u){for(;(c=a[l])!==s&&e.node(c).maxRank<r.rank;)l++;c===s&&(u=!1)}if(!u){for(;l<a.length-1&&e.node(c=a[l+1]).minRank<=r.rank;)l++;c=a[l]}e.setParent(n,c),n=e.successors(n)[0]}})}function Jse(e,t){var n={};return Lae(t,function(t,r){var i=0,o=0,a=t.length,s=eae(r);return nae(r,function(t,l){var c=function(e,t){if(e.node(t).dummy)return sae(e.predecessors(t),function(t){return e.node(t).dummy})}(e,t),u=c?e.node(c).order:a;(c||t===s)&&(nae(_x(r).call(r,o,l+1),function(t){nae(e.predecessors(t),function(r){var o=e.node(r),a=o.order;!(a<i||u<a)||o.dummy&&e.node(t).dummy||Zse(n,r,t)})}),o=l+1,i=u)}),r}),n}function Zse(e,t,n){if(t>n){var r=t;t=n,n=r}var i=e[t];i||(e[t]=i={}),i[n]=!0}function ele(e,t,n){if(t>n){var r=t;t=n,n=r}return fae(e[t],n)}function tle(e,t,n,r,i){var o,a,s={},l=function(e,t,n,r){var i=new Wae,o=e.graph(),a=function(e,t,n){return function(r,i,o){var a,s=r.node(i),l=r.node(o),c=0;if(c+=s.width/2,fae(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":a=-s.width/2;break;case"r":a=s.width/2}if(a&&(c+=n?a:-a),a=0,c+=(s.dummy?t:e)/2,c+=(l.dummy?t:e)/2,c+=l.width/2,fae(l,"labelpos"))switch(l.labelpos.toLowerCase()){case"l":a=l.width/2;break;case"r":a=-l.width/2}return a&&(c+=n?a:-a),a=0,c}}(o.nodesep,o.edgesep,r);return nae(t,function(t){var r;nae(t,function(t){var o=n[t];if(i.setNode(o),r){var s=n[r],l=i.edge(s,o);i.setEdge(s,o,Math.max(a(e,t,r),l||0))}r=t})}),i}(e,t,n,i),c=i?"borderLeft":"borderRight";function u(e,t){for(var n=l.nodes(),r=n.pop(),i={};r;)i[r]?e(r):(i[r]=!0,n.push(r),n=Xu(n).call(n,t(r))),r=n.pop()}return u(function(e){var t;s[e]=sL(t=l.inEdges(e)).call(t,function(e,t){return Math.max(e,s[t.v]+l.edge(t))},0)},Ju(o=l.predecessors).call(o,l)),u(function(t){var n,r=sL(n=l.outEdges(t)).call(n,function(e,t){return Math.min(e,s[t.w]-l.edge(t))},Number.POSITIVE_INFINITY),i=e.node(t);r!==Number.POSITIVE_INFINITY&&i.borderType!==c&&(s[t]=Math.max(s[t],r))},Ju(a=l.successors).call(a,l)),nae(r,function(e){s[e]=s[n[e]]}),s}function nle(e,t){return Sae(pae(t),function(t){var n=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY;return function(e,t){null==e||Uoe(e,tae(t),Zre)}(t,function(t,i){var o=function(e,t){return e.node(t).width}(e,i)/2;n=Math.max(t+o,n),r=Math.min(t-o,r)}),n-r})}function rle(e){var t,n=sse(e),r=xae(Jse(e,n),function(e,t){var n={};function r(t,r,i,o,a){var s;nae(Nae(r,i),function(r){s=t[r],e.node(s).dummy&&nae(e.predecessors(s),function(t){var r=e.node(t);r.dummy&&(r.order<o||r.order>a)&&Zse(n,t,s)})})}return Lae(t,function(t,n){var i,o=-1,a=0;return nae(n,function(s,l){if("border"===e.node(s).dummy){var c=e.predecessors(s);c.length&&(i=e.node(c[0]).order,r(n,a,l,o,i),a=l,o=i)}r(n,a,n.length,i,t.length)}),n}),n}(e,n)),i={};nae(["u","d"],function(o){var a;t="u"===o?n:c0(a=pae(n)).call(a),nae(["l","r"],function(n){var a;"r"===n&&(t=cae(t,function(e){var t;return c0(t=pae(e)).call(t)}));var s=Ju(a="u"===o?e.predecessors:e.successors).call(a,e),l=function(e,t,n,r){var i={},o={},a={};return nae(t,function(e){nae(e,function(e,t){i[e]=e,o[e]=e,a[e]=t})}),nae(t,function(e){var t=-1;nae(e,function(e){var s=r(e);if(s.length){s=Fae(s,function(e){return a[e]});for(var l=(s.length-1)/2,c=Math.floor(l),u=Math.ceil(l);c<=u;++c){var d=s[c];o[e]===e&&t<a[d]&&!ele(n,e,d)&&(o[d]=e,o[e]=i[e]=i[d],t=a[d])}}})}),{root:i,align:o}}(0,t,r,s),c=tle(e,t,l.root,l.align,"r"===n);"r"===n&&(c=bae(c,function(e){return-e})),i[o+n]=c})});var o=nle(e,i);return function(e,t){var n=pae(t),r=Eae(n),i=wae(n);nae(["u","d"],function(n){nae(["l","r"],function(o){var a,s=n+o,l=e[s];if(l!==t){var c=pae(l);(a="l"===o?r-Eae(c):i-wae(c))&&(e[s]=bae(l,function(e){return e+a}))}})})}(i,o),function(e,t){return bae(e.ul,function(n,r){if(t)return e[t.toLowerCase()][r];var i=Fae(cae(e,r));return(i[1]+i[2])/2})}(i,e.graph().align)}function ile(e){(function(e){var t=sse(e),n=e.graph().ranksep,r=0;nae(t,function(t){var i=wae(cae(t,function(t){return e.node(t).height}));nae(t,function(t){e.node(t).y=r+i/2}),r+=i+n})})(e=ose(e)),nae(rle(e),function(t,n){e.node(n).x=t})}function ole(e,t){var n=use;n("layout",function(){var t=n("  buildLayoutGraph",function(){return function(e){var t=new Wae({multigraph:!0,compound:!0}),n=gle(e.graph());return t.setGraph(xae({},sle,ple(n,ale),Mae(n,lle))),nae(e.nodes(),function(n){var r=gle(e.node(n));t.setNode(n,Koe(ple(r,cle),ule)),t.setParent(n,e.parent(n))}),nae(e.edges(),function(n){var r=gle(e.edge(n));t.setEdge(n,xae({},hle,ple(r,dle),Mae(r,fle)))}),t}(e)});n("  runLayout",function(){!function(e,t){t("    makeSpaceForEdgeLabels",function(){!function(e){var t=e.graph();t.ranksep/=2,nae(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}(e)}),t("    removeSelfEdges",function(){!function(e){nae(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}(e)}),t("    acyclic",function(){rse(e)}),t("    nestingGraph.run",function(){Fse(e)}),t("    rank",function(){Lse(ose(e))}),t("    injectEdgeLabelProxies",function(){!function(e){nae(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),i={rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t};ise(e,"edge-proxy",i,"_ep")}})}(e)}),t("    removeEmptyRanks",function(){!function(e){var t=Eae(cae(e.nodes(),function(t){return e.node(t).rank})),n=[];nae(e.nodes(),function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)});var r=0,i=e.graph().nodeRankFactor;nae(n,function(t,n){vae(t)&&n%i!=0?--r:r&&nae(t,function(t){e.node(t).rank+=r})})}(e)}),t("    nestingGraph.cleanup",function(){!function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,nae(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}(e)}),t("    normalizeRanks",function(){!function(e){var t=Eae(cae(e.nodes(),function(t){return e.node(t).rank}));nae(e.nodes(),function(n){var r=e.node(n);fae(r,"rank")&&(r.rank-=t)})}(e)}),t("    assignRankMinMax",function(){!function(e){var t=0;nae(e.nodes(),function(n){var r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=wae(t,r.maxRank))}),e.graph().maxRank=t}(e)}),t("    removeEdgeLabelProxies",function(){!function(e){nae(e.nodes(),function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}(e)}),t("    normalize.run",function(){vse(e)}),t("    parentDummyChains",function(){Xse(e)}),t("    addBorderSegments",function(){!function(e){nae(e.children(),function t(n){var r=e.children(n),i=e.node(n);if(r.length&&nae(r,t),fae(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var o=i.minRank,a=i.maxRank+1;o<a;++o)dse(e,"borderLeft","_bl",n,i,o),dse(e,"borderRight","_br",n,i,o)}})}(e)}),t("    order",function(){Vse(e)}),t("    insertSelfEdges",function(){!function(e){var t=sse(e);nae(t,function(t){var n=0;nae(t,function(t,r){var i=e.node(t);i.order=r+n,nae(i.selfEdges,function(t){ise(e,"selfedge",{width:t.label.width,height:t.label.height,rank:i.rank,order:r+ ++n,e:t.e,label:t.label},"_se")}),delete i.selfEdges})})}(e)}),t("    adjustCoordinateSystem",function(){!function(e){var t=e.graph().rankdir.toLowerCase();"lr"!==t&&"rl"!==t||fse(e)}(e)}),t("    position",function(){ile(e)}),t("    positionSelfEdges",function(){!function(e){nae(e.nodes(),function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),i=r.x+r.width/2,o=r.y,a=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*a/3,y:o-s},{x:i+5*a/6,y:o-s},{x:i+a,y:o},{x:i+5*a/6,y:o+s},{x:i+2*a/3,y:o+s}],n.label.x=n.x,n.label.y=n.y}})}(e)}),t("    removeBorderNodes",function(){!function(e){nae(e.nodes(),function(t){if(e.children(t).length){var n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),o=e.node(eae(n.borderLeft)),a=e.node(eae(n.borderRight));n.width=Math.abs(a.x-o.x),n.height=Math.abs(i.y-r.y),n.x=o.x+n.width/2,n.y=r.y+n.height/2}}),nae(e.nodes(),function(t){"border"===e.node(t).dummy&&e.removeNode(t)})}(e)}),t("    normalize.undo",function(){!function(e){nae(e.graph().dummyChains,function(t){var n,r=e.node(t),i=r.edgeLabel;for(e.setEdge(r.edgeObj,i);r.dummy;)n=e.successors(t)[0],e.removeNode(t),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),t=n,r=e.node(t)})}(e)}),t("    fixupEdgeLabelCoords",function(){!function(e){nae(e.edges(),function(t){var n=e.edge(t);if(fae(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}(e)}),t("    undoCoordinateSystem",function(){hse(e)}),t("    translateGraph",function(){!function(e){var t=Number.POSITIVE_INFINITY,n=0,r=Number.POSITIVE_INFINITY,i=0,o=e.graph(),a=o.marginx||0,s=o.marginy||0;function l(e){var o=e.x,a=e.y,s=e.width,l=e.height;t=Math.min(t,o-s/2),n=Math.max(n,o+s/2),r=Math.min(r,a-l/2),i=Math.max(i,a+l/2)}nae(e.nodes(),function(t){l(e.node(t))}),nae(e.edges(),function(t){var n=e.edge(t);fae(n,"x")&&l(n)}),t-=a,r-=s,nae(e.nodes(),function(n){var i=e.node(n);i.x-=t,i.y-=r}),nae(e.edges(),function(n){var i=e.edge(n);nae(i.points,function(e){e.x-=t,e.y-=r}),fae(i,"x")&&(i.x-=t),fae(i,"y")&&(i.y-=r)}),o.width=n-t+a,o.height=i-r+s}(e)}),t("    assignNodeIntersects",function(){!function(e){nae(e.edges(),function(t){var n,r,i=e.edge(t),o=e.node(t.v),a=e.node(t.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=a,r=o),i.points.unshift(ase(o,n)),i.points.push(ase(a,r))})}(e)}),t("    reversePoints",function(){!function(e){nae(e.edges(),function(t){var n,r=e.edge(t);r.reversed&&c0(n=r.points).call(n)})}(e)}),t("    acyclic.undo",function(){!function(e){nae(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}(e)})}(t,n)}),n("  updateInputGraph",function(){!function(e,t){nae(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),nae(e.edges(),function(n){var r=e.edge(n),i=t.edge(n);r.points=i.points,fae(i,"x")&&(r.x=i.x,r.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t)})})}var ale=["nodesep","edgesep","ranksep","marginx","marginy"],sle={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},lle=["acyclicer","ranker","rankdir","align"],cle=["width","height"],ule={width:0,height:0},dle=["minlen","weight","width","height","labeloffset"],hle={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},fle=["labelpos"];function ple(e,t){return bae(Mae(e,t),Number)}function gle(e){var t={};return nae(e,function(e,n){t[n.toLowerCase()]=e}),t}function mle(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:vle(e),edges:Ale(e)};return vae(e.graph())||(t.value=voe(e.graph(),4)),t}function vle(e){return cae(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return vae(n)||(i.value=n),vae(r)||(i.parent=r),i})}function Ale(e){return cae(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return vae(t.name)||(r.name=t.name),vae(n)||(r.value=n),r})}var ble=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const yle=[];for(let c=0;c<256;++c)yle.push((c+256).toString(16).slice(1));function wle(e){if(!function(e){return"string"==typeof e&&ble.test(e)}(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function _le(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function xle(e,t){return e<<t|e>>>32-t}const Ele=function(e,t,n){function r(e,r,i,o){var a;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=wle(r)),16!==(null===(a=r)||void 0===a?void 0:a.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),s=n(s),s[6]=15&s[6]|t,s[8]=63&s[8]|128,i){o=o||0;for(let e=0;e<16;++e)i[o+e]=s[e];return i}return function(e,t=0){return yle[e[t+0]]+yle[e[t+1]]+yle[e[t+2]]+yle[e[t+3]]+"-"+yle[e[t+4]]+yle[e[t+5]]+"-"+yle[e[t+6]]+yle[e[t+7]]+"-"+yle[e[t+8]]+yle[e[t+9]]+"-"+yle[e[t+10]]+yle[e[t+11]]+yle[e[t+12]]+yle[e[t+13]]+yle[e[t+14]]+yle[e[t+15]]}(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}("v5",80,function(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n<t.length;++n)e.push(t.charCodeAt(n))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const r=e.length/4+2,i=Math.ceil(r/16),o=new Array(i);for(let a=0;a<i;++a){const t=new Uint32Array(16);for(let n=0;n<16;++n)t[n]=e[64*a+4*n]<<24|e[64*a+4*n+1]<<16|e[64*a+4*n+2]<<8|e[64*a+4*n+3];o[a]=t}o[i-1][14]=8*(e.length-1)/Math.pow(2,32),o[i-1][14]=Math.floor(o[i-1][14]),o[i-1][15]=8*(e.length-1)&4294967295;for(let a=0;a<i;++a){const e=new Uint32Array(80);for(let t=0;t<16;++t)e[t]=o[a][t];for(let t=16;t<80;++t)e[t]=xle(e[t-3]^e[t-8]^e[t-14]^e[t-16],1);let r=n[0],i=n[1],s=n[2],l=n[3],c=n[4];for(let n=0;n<80;++n){const o=Math.floor(n/20),a=xle(r,5)+_le(o,i,s,l)+c+t[o]+e[n]>>>0;c=l,l=s,s=xle(i,30)>>>0,i=r,r=a}n[0]=n[0]+r>>>0,n[1]=n[1]+i>>>0,n[2]=n[2]+s>>>0,n[3]=n[3]+l>>>0,n[4]=n[4]+c>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]});function Sle(e,t){t&&e.attr("style",t)}function Cle(e,t){var n=e.append("foreignObject").attr("width","100000"),r=n.append("xhtml:div");r.attr("xmlns","http://www.w3.org/1999/xhtml");var i=t.label;switch(ql(i)){case"function":r.insert(i);break;case"object":r.insert(function(){return i});break;default:r.html(i)}Sle(r,t.labelStyle),r.style("display","inline-block"),r.style("white-space","nowrap");var o=r.node().getBoundingClientRect();return n.attr("width",o.width).attr("height",o.height),n}var Tle,kle,Ole,Mle,Ile={exports:{}},Dle=(Tle||(Tle=1,Ile.exports=(kle="day",function(e,t,n){var r=function(e){return e.add(4-e.isoWeekday(),kle)},i=t.prototype;i.isoWeekYear=function(){return r(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),kle);var t,i,o,a=r(this),s=(t=this.isoWeekYear(),o=4-(i=(this.$u?n.utc:n)().year(t).startOf("year")).isoWeekday(),i.isoWeekday()>4&&(o+=7),i.add(o,kle));return a.diff(s,"week")+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var o=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return"isoweek"===n.p(e)?r?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):o.bind(this)(e,t)}})),Ile.exports),Nle=i(Dle),Rle={exports:{}},Lle=(Ole||(Ole=1,Rle.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,a={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},h={A:[o,function(e){this.afternoon=d(e,!1)}],a:[o,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,l("seconds")],ss:[i,l("seconds")],m:[i,l("minutes")],mm:[i,l("minutes")],H:[i,l("hours")],h:[i,l("hours")],HH:[i,l("hours")],hh:[i,l("hours")],D:[i,l("day")],DD:[r,l("day")],Do:[o,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],w:[i,l("week")],ww:[r,l("week")],M:[i,l("month")],MM:[r,l("month")],MMM:[o,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function f(n){var r,i;r=n,i=a&&a.formats;for(var o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),s=o.length,l=0;l<s;l+=1){var c=o[l],u=h[c],d=u&&u[0],f=u&&u[1];o[l]=f?{regex:d,parser:f}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=o[n];if("string"==typeof i)r+=i.length;else{var a=i.regex,l=i.parser,c=e.slice(r),u=a.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var s=o[1];if("string"==typeof s){var l=!0===o[2],c=!0===o[3],u=l||c,d=o[2];c&&(d=o[2]),a=this.$locale(),!l&&d&&(a=n.Ls[d]),this.$d=function(e,t,n,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=f(t)(e),o=i.year,a=i.month,s=i.day,l=i.hours,c=i.minutes,u=i.seconds,d=i.milliseconds,h=i.zone,p=i.week,g=new Date,m=s||(o||a?1:g.getDate()),v=o||g.getFullYear(),A=0;o&&!a||(A=a>0?a-1:g.getMonth());var b,y=l||0,w=c||0,_=u||0,x=d||0;return h?new Date(Date.UTC(v,A,m,y,w,_,x+60*h.offset*1e3)):n?new Date(Date.UTC(v,A,m,y,w,_,x)):(b=new Date(v,A,m,y,w,_,x),p&&(b=r(b).week(p).toDate()),b)}catch(e){return new Date("")}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var h=s.length,p=1;p<=h;p+=1){o[1]=s[p-1];var g=n.apply(this,o);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}p===h&&(this.$d=new Date(""))}else i.call(this,e)}}}()),Rle.exports),Ble=i(Lle),Ple={exports:{}},Fle=(Mle||(Mle=1,Ple.exports=function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),o=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return i.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return i.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return i.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}});return r.bind(this)(o)}}),Ple.exports),$le=i(Fle);const jle={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},Hle={trace:(...e)=>{},debug:(...e)=>{},info:(...e)=>{},warn:(...e)=>{},error:(...e)=>{},fatal:(...e)=>{}},Ule=function(e="fatal"){let t=jle.fatal;"string"==typeof e?(e=e.toLowerCase())in jle&&(t=jle[e]):"number"==typeof e&&(t=e),Hle.trace=()=>{},Hle.debug=()=>{},Hle.info=()=>{},Hle.warn=()=>{},Hle.error=()=>{},Hle.fatal=()=>{},t<=jle.fatal&&(Hle.fatal=console.error?console.error.bind(console,Qle("FATAL"),"color: orange"):console.log.bind(console,"[35m",Qle("FATAL"))),t<=jle.error&&(Hle.error=console.error?console.error.bind(console,Qle("ERROR"),"color: orange"):console.log.bind(console,"[31m",Qle("ERROR"))),t<=jle.warn&&(Hle.warn=console.warn?console.warn.bind(console,Qle("WARN"),"color: orange"):console.log.bind(console,"[33m",Qle("WARN"))),t<=jle.info&&(Hle.info=console.info?console.info.bind(console,Qle("INFO"),"color: lightblue"):console.log.bind(console,"[34m",Qle("INFO"))),t<=jle.debug&&(Hle.debug=console.debug?console.debug.bind(console,Qle("DEBUG"),"color: lightgreen"):console.log.bind(console,"[32m",Qle("DEBUG"))),t<=jle.trace&&(Hle.trace=console.debug?console.debug.bind(console,Qle("TRACE"),"color: lightgreen"):console.log.bind(console,"[32m",Qle("TRACE")))},Qle=e=>`%c${z0().format("ss.SSS")} : ${e} : `,zle=e=>Qee.sanitize(e),Wle=(e,t)=>{var n;if(!1!==(null==(n=t.flowchart)?void 0:n.htmlLabels)){const n=t.securityLevel;"antiscript"===n||"strict"===n?e=zle(e):"loose"!==n&&(e=(e=(e=Yle(e)).replace(/</g,"&lt;").replace(/>/g,"&gt;")).replace(/=/g,"&equals;"),e=Kle(e))}return e},Gle=(e,t)=>e?e=t.dompurifyConfig?Qee.sanitize(Wle(e,t),t.dompurifyConfig).toString():Qee.sanitize(Wle(e,t),{FORBID_TAGS:["style"]}).toString():e,Vle=/<br\s*\/?>/gi,Kle=e=>e.replace(/#br#/g,"<br/>"),Yle=e=>e.replace(Vle,"#br#"),qle=e=>!1!==e&&!["false","null","0"].includes(String(e).trim().toLowerCase()),Xle=function(e){let t=e;if(e.split("~").length-1>=2){let e=t;do{t=e,e=t.replace(/~([^\s,:;]+)~/,"<$1>")}while(e!=t);return Xle(e)}return t},Jle={getRows:e=>e?Yle(e).replace(/\\n/g,"#br#").split("#br#"):[""],sanitizeText:Gle,sanitizeTextOrArray:(e,t)=>"string"==typeof e?Gle(e,t):e.flat().map(e=>Gle(e,t)),hasBreaks:e=>Vle.test(e),splitBreaks:e=>e.split(Vle),lineBreakRegex:Vle,removeScript:zle,getUrl:e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=t.replaceAll(/\(/g,"\\("),t=t.replaceAll(/\)/g,"\\)")),t},evaluate:qle},Zle=(e,t)=>fte(e,t?{s:-40,l:10}:{s:-40,l:-10}),ece="#ffffff",tce="#f2f2f2";let nce=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||fte(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||fte(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Zle(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Zle(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Zle(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Zle(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||pte(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||pte(this.tertiaryColor),this.lineColor=this.lineColor||pte(this.background),this.textColor=this.textColor||this.primaryTextColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?hte(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||hte(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||pte(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||dte(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||fte(this.primaryColor,{h:30}),this.cScale4=this.cScale4||fte(this.primaryColor,{h:60}),this.cScale5=this.cScale5||fte(this.primaryColor,{h:90}),this.cScale6=this.cScale6||fte(this.primaryColor,{h:120}),this.cScale7=this.cScale7||fte(this.primaryColor,{h:150}),this.cScale8=this.cScale8||fte(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||fte(this.primaryColor,{h:270}),this.cScale10=this.cScale10||fte(this.primaryColor,{h:300}),this.cScale11=this.cScale11||fte(this.primaryColor,{h:330}),this.darkMode)for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=hte(this["cScale"+t],75);else for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScale"+t]=hte(this["cScale"+t],25);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleInv"+t]=this["cScaleInv"+t]||pte(this["cScale"+t]);for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this.darkMode?this["cScalePeer"+t]=this["cScalePeer"+t]||dte(this["cScale"+t],10):this["cScalePeer"+t]=this["cScalePeer"+t]||hte(this["cScale"+t],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let t=0;t<this.THEME_COLOR_LIMIT;t++)this["cScaleLabel"+t]=this["cScaleLabel"+t]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let t=0;t<5;t++)this["surface"+t]=this["surface"+t]||fte(this.mainBkg,{h:180,s:-15,l:e*(5+3*t)}),this["surfacePeer"+t]=this["surfacePeer"+t]||fte(this.mainBkg,{h:180,s:-15,l:e*(8+3*t)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||fte(this.primaryColor,{h:64}),this.fillType3=this.fillType3||fte(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||fte(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||fte(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||fte(this.primaryColor,{h:128}),this.fillType7=this.fillType7||fte(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||fte(this.primaryColor,{l:-10}),this.pie5=this.pie5||fte(this.secondaryColor,{l:-10}),this.pie6=this.pie6||fte(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||fte(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||fte(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||fte(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||fte(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||fte(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||fte(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?hte(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||fte(this.primaryColor,{h:-30}),this.git4=this.git4||fte(this.primaryColor,{h:-60}),this.git5=this.git5||fte(this.primaryColor,{h:-90}),this.git6=this.git6||fte(this.primaryColor,{h:60}),this.git7=this.git7||fte(this.primaryColor,{h:120}),this.darkMode?(this.git0=dte(this.git0,25),this.git1=dte(this.git1,25),this.git2=dte(this.git2,25),this.git3=dte(this.git3,25),this.git4=dte(this.git4,25),this.git5=dte(this.git5,25),this.git6=dte(this.git6,25),this.git7=dte(this.git7,25)):(this.git0=hte(this.git0,25),this.git1=hte(this.git1,25),this.git2=hte(this.git2,25),this.git3=hte(this.git3,25),this.git4=hte(this.git4,25),this.git5=hte(this.git5,25),this.git6=hte(this.git6,25),this.git7=hte(this.git7,25)),this.gitInv0=this.gitInv0||pte(this.git0),this.gitInv1=this.gitInv1||pte(this.git1),this.gitInv2=this.gitInv2||pte(this.git2),this.gitInv3=this.gitInv3||pte(this.git3),this.gitInv4=this.gitInv4||pte(this.git4),this.gitInv5=this.gitInv5||pte(this.git5),this.gitInv6=this.gitInv6||pte(this.git6),this.gitInv7=this.gitInv7||pte(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ece,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||tce}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},rce=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=dte(this.primaryColor,16),this.tertiaryColor=fte(this.primaryColor,{h:-160}),this.primaryBorderColor=pte(this.background),this.secondaryBorderColor=Zle(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Zle(this.tertiaryColor,this.darkMode),this.primaryTextColor=pte(this.primaryColor),this.secondaryTextColor=pte(this.secondaryColor),this.tertiaryTextColor=pte(this.tertiaryColor),this.lineColor=pte(this.background),this.textColor=pte(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=dte(pte("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=ste(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=hte("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.taskBorderColor=ste(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ste(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=dte(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=dte(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=dte(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=fte(this.primaryColor,{h:64}),this.fillType3=fte(this.secondaryColor,{h:64}),this.fillType4=fte(this.primaryColor,{h:-64}),this.fillType5=fte(this.secondaryColor,{h:-64}),this.fillType6=fte(this.primaryColor,{h:128}),this.fillType7=fte(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||fte(this.primaryColor,{h:30}),this.cScale4=this.cScale4||fte(this.primaryColor,{h:60}),this.cScale5=this.cScale5||fte(this.primaryColor,{h:90}),this.cScale6=this.cScale6||fte(this.primaryColor,{h:120}),this.cScale7=this.cScale7||fte(this.primaryColor,{h:150}),this.cScale8=this.cScale8||fte(this.primaryColor,{h:210}),this.cScale9=this.cScale9||fte(this.primaryColor,{h:270}),this.cScale10=this.cScale10||fte(this.primaryColor,{h:300}),this.cScale11=this.cScale11||fte(this.primaryColor,{h:330});for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||pte(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScalePeer"+e]=this["cScalePeer"+e]||dte(this["cScale"+e],10);for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||fte(this.mainBkg,{h:30,s:-30,l:-(4*e-10)}),this["surfacePeer"+e]=this["surfacePeer"+e]||fte(this.mainBkg,{h:30,s:-30,l:-(4*e-7)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["pie"+e]=this["cScale"+e];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?hte(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=dte(this.secondaryColor,20),this.git1=dte(this.pie2||this.secondaryColor,20),this.git2=dte(this.pie3||this.tertiaryColor,20),this.git3=dte(this.pie4||fte(this.primaryColor,{h:-30}),20),this.git4=dte(this.pie5||fte(this.primaryColor,{h:-60}),20),this.git5=dte(this.pie6||fte(this.primaryColor,{h:-90}),10),this.git6=dte(this.pie7||fte(this.primaryColor,{h:60}),10),this.git7=dte(this.pie8||fte(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||pte(this.git0),this.gitInv1=this.gitInv1||pte(this.git1),this.gitInv2=this.gitInv2||pte(this.git2),this.gitInv3=this.gitInv3||pte(this.git3),this.gitInv4=this.gitInv4||pte(this.git4),this.gitInv5=this.gitInv5||pte(this.git5),this.gitInv6=this.gitInv6||pte(this.git6),this.gitInv7=this.gitInv7||pte(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||dte(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||dte(this.background,2)}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},ice=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=fte(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=fte(this.primaryColor,{h:-160}),this.primaryBorderColor=Zle(this.primaryColor,this.darkMode),this.secondaryBorderColor=Zle(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Zle(this.tertiaryColor,this.darkMode),this.primaryTextColor=pte(this.primaryColor),this.secondaryTextColor=pte(this.secondaryColor),this.tertiaryTextColor=pte(this.tertiaryColor),this.lineColor=pte(this.background),this.textColor=pte(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=ste(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||fte(this.primaryColor,{h:30}),this.cScale4=this.cScale4||fte(this.primaryColor,{h:60}),this.cScale5=this.cScale5||fte(this.primaryColor,{h:90}),this.cScale6=this.cScale6||fte(this.primaryColor,{h:120}),this.cScale7=this.cScale7||fte(this.primaryColor,{h:150}),this.cScale8=this.cScale8||fte(this.primaryColor,{h:210}),this.cScale9=this.cScale9||fte(this.primaryColor,{h:270}),this.cScale10=this.cScale10||fte(this.primaryColor,{h:300}),this.cScale11=this.cScale11||fte(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||hte(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||hte(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=hte(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||hte(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||fte(this["cScale"+e],{h:180});for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||fte(this.mainBkg,{h:30,l:-(5+5*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||fte(this.mainBkg,{h:30,l:-(7+5*e)});if(this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,"calculated"!==this.labelTextColor){this.cScaleLabel0=this.cScaleLabel0||pte(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||pte(this.labelTextColor);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=dte(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=fte(this.primaryColor,{h:64}),this.fillType3=fte(this.secondaryColor,{h:64}),this.fillType4=fte(this.primaryColor,{h:-64}),this.fillType5=fte(this.secondaryColor,{h:-64}),this.fillType6=fte(this.primaryColor,{h:128}),this.fillType7=fte(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||fte(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||fte(this.primaryColor,{l:-10}),this.pie5=this.pie5||fte(this.secondaryColor,{l:-30}),this.pie6=this.pie6||fte(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||fte(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||fte(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||fte(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||fte(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||fte(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||fte(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||fte(this.primaryColor,{h:-30}),this.git4=this.git4||fte(this.primaryColor,{h:-60}),this.git5=this.git5||fte(this.primaryColor,{h:-90}),this.git6=this.git6||fte(this.primaryColor,{h:60}),this.git7=this.git7||fte(this.primaryColor,{h:120}),this.darkMode?(this.git0=dte(this.git0,25),this.git1=dte(this.git1,25),this.git2=dte(this.git2,25),this.git3=dte(this.git3,25),this.git4=dte(this.git4,25),this.git5=dte(this.git5,25),this.git6=dte(this.git6,25),this.git7=dte(this.git7,25)):(this.git0=hte(this.git0,25),this.git1=hte(this.git1,25),this.git2=hte(this.git2,25),this.git3=hte(this.git3,25),this.git4=hte(this.git4,25),this.git5=hte(this.git5,25),this.git6=hte(this.git6,25),this.git7=hte(this.git7,25)),this.gitInv0=this.gitInv0||hte(pte(this.git0),25),this.gitInv1=this.gitInv1||pte(this.git1),this.gitInv2=this.gitInv2||pte(this.git2),this.gitInv3=this.gitInv3||pte(this.git3),this.gitInv4=this.gitInv4||pte(this.git4),this.gitInv5=this.gitInv5||pte(this.git5),this.gitInv6=this.gitInv6||pte(this.git6),this.gitInv7=this.gitInv7||pte(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||pte(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||pte(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ece,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||tce}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}},oce=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=dte("#cde498",10),this.primaryBorderColor=Zle(this.primaryColor,this.darkMode),this.secondaryBorderColor=Zle(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Zle(this.tertiaryColor,this.darkMode),this.primaryTextColor=pte(this.primaryColor),this.secondaryTextColor=pte(this.secondaryColor),this.tertiaryTextColor=pte(this.primaryColor),this.lineColor=pte(this.background),this.textColor=pte(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||fte(this.primaryColor,{h:30}),this.cScale4=this.cScale4||fte(this.primaryColor,{h:60}),this.cScale5=this.cScale5||fte(this.primaryColor,{h:90}),this.cScale6=this.cScale6||fte(this.primaryColor,{h:120}),this.cScale7=this.cScale7||fte(this.primaryColor,{h:150}),this.cScale8=this.cScale8||fte(this.primaryColor,{h:210}),this.cScale9=this.cScale9||fte(this.primaryColor,{h:270}),this.cScale10=this.cScale10||fte(this.primaryColor,{h:300}),this.cScale11=this.cScale11||fte(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||hte(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||hte(this.tertiaryColor,40);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScale"+e]=hte(this["cScale"+e],10),this["cScalePeer"+e]=this["cScalePeer"+e]||hte(this["cScale"+e],25);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||fte(this["cScale"+e],{h:180});this.scaleLabelColor="calculated"!==this.scaleLabelColor&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||fte(this.mainBkg,{h:30,s:-30,l:-(5+5*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||fte(this.mainBkg,{h:30,s:-30,l:-(8+5*e)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.actorBorder=hte(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=fte(this.primaryColor,{h:64}),this.fillType3=fte(this.secondaryColor,{h:64}),this.fillType4=fte(this.primaryColor,{h:-64}),this.fillType5=fte(this.secondaryColor,{h:-64}),this.fillType6=fte(this.primaryColor,{h:128}),this.fillType7=fte(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||fte(this.primaryColor,{l:-30}),this.pie5=this.pie5||fte(this.secondaryColor,{l:-30}),this.pie6=this.pie6||fte(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||fte(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||fte(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||fte(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||fte(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||fte(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||fte(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||fte(this.primaryColor,{h:-30}),this.git4=this.git4||fte(this.primaryColor,{h:-60}),this.git5=this.git5||fte(this.primaryColor,{h:-90}),this.git6=this.git6||fte(this.primaryColor,{h:60}),this.git7=this.git7||fte(this.primaryColor,{h:120}),this.darkMode?(this.git0=dte(this.git0,25),this.git1=dte(this.git1,25),this.git2=dte(this.git2,25),this.git3=dte(this.git3,25),this.git4=dte(this.git4,25),this.git5=dte(this.git5,25),this.git6=dte(this.git6,25),this.git7=dte(this.git7,25)):(this.git0=hte(this.git0,25),this.git1=hte(this.git1,25),this.git2=hte(this.git2,25),this.git3=hte(this.git3,25),this.git4=hte(this.git4,25),this.git5=hte(this.git5,25),this.git6=hte(this.git6,25),this.git7=hte(this.git7,25)),this.gitInv0=this.gitInv0||pte(this.git0),this.gitInv1=this.gitInv1||pte(this.git1),this.gitInv2=this.gitInv2||pte(this.git2),this.gitInv3=this.gitInv3||pte(this.git3),this.gitInv4=this.gitInv4||pte(this.git4),this.gitInv5=this.gitInv5||pte(this.git5),this.gitInv6=this.gitInv6||pte(this.git6),this.gitInv7=this.gitInv7||pte(this.git7),this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ece,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||tce}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}};class ace{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=dte(this.contrast,55),this.background="#ffffff",this.tertiaryColor=fte(this.primaryColor,{h:-160}),this.primaryBorderColor=Zle(this.primaryColor,this.darkMode),this.secondaryBorderColor=Zle(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Zle(this.tertiaryColor,this.darkMode),this.primaryTextColor=pte(this.primaryColor),this.secondaryTextColor=pte(this.secondaryColor),this.tertiaryTextColor=pte(this.tertiaryColor),this.lineColor=pte(this.background),this.textColor=pte(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder="calculated",this.personBkg="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=dte(this.contrast,55),this.border2=this.contrast,this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleInv"+e]=this["cScaleInv"+e]||pte(this["cScale"+e]);for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this.darkMode?this["cScalePeer"+e]=this["cScalePeer"+e]||dte(this["cScale"+e],10):this["cScalePeer"+e]=this["cScalePeer"+e]||hte(this["cScale"+e],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["cScaleLabel"+e]=this["cScaleLabel"+e]||this.scaleLabelColor;for(let e=0;e<5;e++)this["surface"+e]=this["surface"+e]||fte(this.mainBkg,{l:-(5+5*e)}),this["surfacePeer"+e]=this["surfacePeer"+e]||fte(this.mainBkg,{l:-(8+5*e)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.actorBorder=dte(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.sectionBkgColor=dte(this.contrast,30),this.sectionBkgColor2=dte(this.contrast,30),this.taskBorderColor=hte(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=dte(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=hte(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=fte(this.primaryColor,{h:64}),this.fillType3=fte(this.secondaryColor,{h:64}),this.fillType4=fte(this.primaryColor,{h:-64}),this.fillType5=fte(this.secondaryColor,{h:-64}),this.fillType6=fte(this.primaryColor,{h:128}),this.fillType7=fte(this.secondaryColor,{h:128});for(let e=0;e<this.THEME_COLOR_LIMIT;e++)this["pie"+e]=this["cScale"+e];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOpacity=this.pieOpacity||"0.7",this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||this.primaryBorderColor,this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=hte(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||fte(this.primaryColor,{h:-30}),this.git4=this.pie5||fte(this.primaryColor,{h:-60}),this.git5=this.pie6||fte(this.primaryColor,{h:-90}),this.git6=this.pie7||fte(this.primaryColor,{h:60}),this.git7=this.pie8||fte(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||pte(this.git0),this.gitInv1=this.gitInv1||pte(this.git1),this.gitInv2=this.gitInv2||pte(this.git2),this.gitInv3=this.gitInv3||pte(this.git3),this.gitInv4=this.gitInv4||pte(this.git4),this.gitInv5=this.gitInv5||pte(this.git5),this.gitInv6=this.gitInv6||pte(this.git6),this.gitInv7=this.gitInv7||pte(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ece,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||tce}calculate(e){if("object"!=typeof e)return void this.updateColors();const t=Object.keys(e);t.forEach(t=>{this[t]=e[t]}),this.updateColors(),t.forEach(t=>{this[t]=e[t]})}}const sce={base:{getThemeVariables:e=>{const t=new nce;return t.calculate(e),t}},dark:{getThemeVariables:e=>{const t=new rce;return t.calculate(e),t}},default:{getThemeVariables:e=>{const t=new ice;return t.calculate(e),t}},forest:{getThemeVariables:e=>{const t=new oce;return t.calculate(e),t}},neutral:{getThemeVariables:e=>{const t=new ace;return t.calculate(e),t}}},lce={theme:"default",themeVariables:sce.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{titleTopMargin:25,diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},sequence:{hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",tickInterval:void 0,useMaxWidth:!0,topAxis:!1,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},timeline:{diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},class:{titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},state:{titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0,defaultRenderer:"dagre-wrapper"},er:{titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0},requirement:{useWidth:void 0,useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},gitGraph:{titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0},c4:{useWidth:void 0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,useMaxWidth:!0,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},fontSize:16};lce.class&&(lce.class.arrowMarkerAbsolute=lce.arrowMarkerAbsolute),lce.gitGraph&&(lce.gitGraph.arrowMarkerAbsolute=lce.arrowMarkerAbsolute);const cce=(e,t="")=>Object.keys(e).reduce((n,r)=>Array.isArray(e[r])?n:"object"==typeof e[r]&&null!==e[r]?[...n,t+r,...cce(e[r],"")]:[...n,t+r],[]),uce=cce(lce,""),dce=lce;function hce(e){return null==e}var fce=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},pce=function(e,t){var n,r,i,o;if(t)for(n=0,r=(o=Object.keys(t)).length;n<r;n+=1)e[i=o[n]]=t[i];return e},gce={isNothing:hce,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:hce(e)?[]:[e]},repeat:function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},isNegativeZero:fce,extend:pce};function mce(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function vce(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=mce(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}vce.prototype=Object.create(Error.prototype),vce.prototype.constructor=vce,vce.prototype.toString=function(e){return this.name+": "+mce(this,e)};var Ace=vce;function bce(e,t,n,r,i){var o="",a="",s=Math.floor(i/2)-1;return r-t>s&&(t=r-s+(o=" ... ").length),n-r>s&&(n=r+s-(a=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+o.length}}function yce(e,t){return gce.repeat(" ",t-e.length)+e}var wce=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n,r=/\r?\n|\r|\0/g,i=[0],o=[],a=-1;n=r.exec(e.buffer);)o.push(n.index),i.push(n.index+n[0].length),e.position<=n.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var s,l,c="",u=Math.min(e.line+t.linesAfter,o.length).toString().length,d=t.maxLength-(t.indent+u+3);for(s=1;s<=t.linesBefore&&!(a-s<0);s++)l=bce(e.buffer,i[a-s],o[a-s],e.position-(i[a]-i[a-s]),d),c=gce.repeat(" ",t.indent)+yce((e.line-s+1).toString(),u)+" | "+l.str+"\n"+c;for(l=bce(e.buffer,i[a],o[a],e.position,d),c+=gce.repeat(" ",t.indent)+yce((e.line+1).toString(),u)+" | "+l.str+"\n",c+=gce.repeat("-",t.indent+u+3+l.pos)+"^\n",s=1;s<=t.linesAfter&&!(a+s>=o.length);s++)l=bce(e.buffer,i[a+s],o[a+s],e.position-(i[a]-i[a+s]),d),c+=gce.repeat(" ",t.indent)+yce((e.line+s+1).toString(),u)+" | "+l.str+"\n";return c.replace(/\n$/,"")},_ce=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],xce=["scalar","sequence","mapping"],Ece=function(e,t){var n,r;if(t=t||{},Object.keys(t).forEach(function(t){if(-1===_ce.indexOf(t))throw new Ace('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(n=t.styleAliases||null,r={},null!==n&&Object.keys(n).forEach(function(e){n[e].forEach(function(t){r[String(t)]=e})}),r),-1===xce.indexOf(this.kind))throw new Ace('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function Sce(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function Cce(e){return this.extend(e)}Cce.prototype.extend=function(e){var t=[],n=[];if(e instanceof Ece)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new Ace("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach(function(e){if(!(e instanceof Ece))throw new Ace("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new Ace("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new Ace("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(e){if(!(e instanceof Ece))throw new Ace("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(Cce.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=Sce(r,"implicit"),r.compiledExplicit=Sce(r,"explicit"),r.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}(r.compiledImplicit,r.compiledExplicit),r};var Tce=new Cce({explicit:[new Ece("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),new Ece("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),new Ece("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})]}),kce=new Ece("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"}),Oce=new Ece("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Mce(e){return 48<=e&&e<=55}function Ice(e){return 48<=e&&e<=57}var Dce=new Ece("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=e.length,i=0,o=!1;if(!r)return!1;if("-"!==(t=e[i])&&"+"!==t||(t=e[++i]),"0"===t){if(i+1===r)return!0;if("b"===(t=e[++i])){for(i++;i<r;i++)if("_"!==(t=e[i])){if("0"!==t&&"1"!==t)return!1;o=!0}return o&&"_"!==t}if("x"===t){for(i++;i<r;i++)if("_"!==(t=e[i])){if(!(48<=(n=e.charCodeAt(i))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;o=!0}return o&&"_"!==t}if("o"===t){for(i++;i<r;i++)if("_"!==(t=e[i])){if(!Mce(e.charCodeAt(i)))return!1;o=!0}return o&&"_"!==t}}if("_"===t)return!1;for(;i<r;i++)if("_"!==(t=e[i])){if(!Ice(e.charCodeAt(i)))return!1;o=!0}return!(!o||"_"===t)},construct:function(e){var t,n=e,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(r=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return r*parseInt(n.slice(2),2);if("x"===n[1])return r*parseInt(n.slice(2),16);if("o"===n[1])return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!gce.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Nce=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),Rce=/^[-+]?[0-9]+e/,Lce=new Ece("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!Nce.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||gce.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(gce.isNegativeZero(e))return"-0.0";return n=e.toString(10),Rce.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),Bce=Tce.extend({implicit:[kce,Oce,Dce,Lce]}),Pce=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Fce=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),$ce=new Ece("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==Pce.exec(e)||null!==Fce.exec(e))},construct:function(e){var t,n,r,i,o,a,s,l,c=0,u=null;if(null===(t=Pce.exec(e))&&(t=Fce.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(o=+t[4],a=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),l=new Date(Date.UTC(n,r,i,o,a,s,c)),u&&l.setTime(l.getTime()-u),l},instanceOf:Date,represent:function(e){return e.toISOString()}}),jce=new Ece("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),Hce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",Uce=new Ece("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,i=e.length,o=Hce;for(n=0;n<i;n++)if(!((t=o.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,o=Hce,a=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|o.indexOf(r.charAt(t));return 0===(n=i%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===n?(s.push(a>>10&255),s.push(a>>2&255)):12===n&&s.push(a>>4&255),new Uint8Array(s)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,r="",i=0,o=e.length,a=Hce;for(t=0;t<o;t++)t%3==0&&t&&(r+=a[i>>18&63],r+=a[i>>12&63],r+=a[i>>6&63],r+=a[63&i]),i=(i<<8)+e[t];return 0===(n=o%3)?(r+=a[i>>18&63],r+=a[i>>12&63],r+=a[i>>6&63],r+=a[63&i]):2===n?(r+=a[i>>10&63],r+=a[i>>4&63],r+=a[i<<2&63],r+=a[64]):1===n&&(r+=a[i>>2&63],r+=a[i<<4&63],r+=a[64],r+=a[64]),r}}),Qce=Object.prototype.hasOwnProperty,zce=Object.prototype.toString,Wce=new Ece("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,i,o,a=[],s=e;for(t=0,n=s.length;t<n;t+=1){if(r=s[t],o=!1,"[object Object]"!==zce.call(r))return!1;for(i in r)if(Qce.call(r,i)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==a.indexOf(i))return!1;a.push(i)}return!0},construct:function(e){return null!==e?e:[]}}),Gce=Object.prototype.toString,Vce=new Ece("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,i,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(r=a[t],"[object Object]"!==Gce.call(r))return!1;if(1!==(i=Object.keys(r)).length)return!1;o[t]=[i[0],r[i[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,r,i,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1)r=a[t],i=Object.keys(r),o[t]=[i[0],r[i[0]]];return o}}),Kce=Object.prototype.hasOwnProperty,Yce=new Ece("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(Kce.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),qce=Bce.extend({implicit:[$ce,jce],explicit:[Uce,Wce,Vce,Yce]}),Xce=Object.prototype.hasOwnProperty,Jce=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Zce=/[\x85\u2028\u2029]/,eue=/[,\[\]\{\}]/,tue=/^(?:!|!!|![a-z\-]+!)$/i,nue=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function rue(e){return Object.prototype.toString.call(e)}function iue(e){return 10===e||13===e}function oue(e){return 9===e||32===e}function aue(e){return 9===e||32===e||10===e||13===e}function sue(e){return 44===e||91===e||93===e||123===e||125===e}function lue(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function cue(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function uue(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var due=new Array(256),hue=new Array(256),fue=0;fue<256;fue++)due[fue]=cue(fue)?1:0,hue[fue]=cue(fue);function pue(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||qce,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function gue(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=wce(n),new Ace(t,n)}function mue(e,t){throw gue(e,t)}function vue(e,t){e.onWarning&&e.onWarning.call(null,gue(e,t))}var Aue={YAML:function(e,t,n){var r,i,o;null!==e.version&&mue(e,"duplication of %YAML directive"),1!==n.length&&mue(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&mue(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),o=parseInt(r[2],10),1!==i&&mue(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&vue(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,i;2!==n.length&&mue(e,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],tue.test(r)||mue(e,"ill-formed tag handle (first argument) of the TAG directive"),Xce.call(e.tagMap,r)&&mue(e,'there is a previously declared suffix for "'+r+'" tag handle'),nue.test(i)||mue(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(t){mue(e,"tag prefix is malformed: "+i)}e.tagMap[r]=i}};function bue(e,t,n,r){var i,o,a,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,o=s.length;i<o;i+=1)9===(a=s.charCodeAt(i))||32<=a&&a<=1114111||mue(e,"expected valid JSON character");else Jce.test(s)&&mue(e,"the stream contains non-printable characters");e.result+=s}}function yue(e,t,n,r){var i,o,a,s;for(gce.isObject(n)||mue(e,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(i=Object.keys(n)).length;a<s;a+=1)o=i[a],Xce.call(t,o)||(t[o]=n[o],r[o]=!0)}function wue(e,t,n,r,i,o,a,s,l){var c,u;if(Array.isArray(i))for(c=0,u=(i=Array.prototype.slice.call(i)).length;c<u;c+=1)Array.isArray(i[c])&&mue(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===rue(i[c])&&(i[c]="[object Object]");if("object"==typeof i&&"[object Object]"===rue(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(o))for(c=0,u=o.length;c<u;c+=1)yue(e,t,o[c],n);else yue(e,t,o,n);else e.json||Xce.call(n,i)||!Xce.call(t,i)||(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=l||e.position,mue(e,"duplicated mapping key")),"__proto__"===i?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:o}):t[i]=o,delete n[i];return t}function _ue(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):mue(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function xue(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);0!==i;){for(;oue(i);)9===i&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!iue(i))break;for(_ue(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&vue(e,"deficient indentation"),r}function Eue(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!aue(t)))}function Sue(e,t){1===t?e.result+=" ":t>1&&(e.result+=gce.repeat("\n",t-1))}function Cue(e,t){var n,r,i=e.tag,o=e.anchor,a=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,mue(e,"tab characters must not be used in indentation")),45===r)&&aue(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,xue(e,!0,-1)&&e.lineIndent<=t)a.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,Oue(e,t,3,!1,!0),a.push(e.result),xue(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)mue(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!s&&(e.tag=i,e.anchor=o,e.kind="sequence",e.result=a,!0)}function Tue(e){var t,n,r,i,o=!1,a=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&mue(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(o=!0,i=e.input.charCodeAt(++e.position)):33===i?(a=!0,n="!!",i=e.input.charCodeAt(++e.position)):n="!",t=e.position,o){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(r=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):mue(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!aue(i);)33===i&&(a?mue(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),tue.test(n)||mue(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),eue.test(r)&&mue(e,"tag suffix cannot contain flow indicator characters")}r&&!nue.test(r)&&mue(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){mue(e,"tag name is malformed: "+r)}return o?e.tag=r:Xce.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:mue(e,'undeclared tag handle "'+n+'"'),!0}function kue(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&mue(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!aue(n)&&!sue(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&mue(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function Oue(e,t,n,r,i){var o,a,s,l,c,u,d,h,f,p=1,g=!1,m=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=s=4===n||3===n,r&&xue(e,!0,-1)&&(g=!0,e.lineIndent>t?p=1:e.lineIndent===t?p=0:e.lineIndent<t&&(p=-1)),1===p)for(;Tue(e)||kue(e);)xue(e,!0,-1)?(g=!0,s=o,e.lineIndent>t?p=1:e.lineIndent===t?p=0:e.lineIndent<t&&(p=-1)):s=!1;if(s&&(s=g||i),1!==p&&4!==n||(h=1===n||2===n?t:t+1,f=e.position-e.lineStart,1===p?s&&(Cue(e,f)||function(e,t,n){var r,i,o,a,s,l,c,u=e.tag,d=e.anchor,h={},f=Object.create(null),p=null,g=null,m=null,v=!1,A=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=h),c=e.input.charCodeAt(e.position);0!==c;){if(v||-1===e.firstTabInLine||(e.position=e.firstTabInLine,mue(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),o=e.line,63!==c&&58!==c||!aue(r)){if(a=e.line,s=e.lineStart,l=e.position,!Oue(e,n,2,!1,!0))break;if(e.line===o){for(c=e.input.charCodeAt(e.position);oue(c);)c=e.input.charCodeAt(++e.position);if(58===c)aue(c=e.input.charCodeAt(++e.position))||mue(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(wue(e,h,f,p,g,null,a,s,l),p=g=m=null),A=!0,v=!1,i=!1,p=e.tag,g=e.result;else{if(!A)return e.tag=u,e.anchor=d,!0;mue(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!A)return e.tag=u,e.anchor=d,!0;mue(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(v&&(wue(e,h,f,p,g,null,a,s,l),p=g=m=null),A=!0,v=!0,i=!0):v?(v=!1,i=!0):mue(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,c=r;if((e.line===o||e.lineIndent>t)&&(v&&(a=e.line,s=e.lineStart,l=e.position),Oue(e,t,4,!0,i)&&(v?g=e.result:m=e.result),v||(wue(e,h,f,p,g,m,a,s,l),p=g=m=null),xue(e,!0,-1),c=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==c)mue(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&wue(e,h,f,p,g,null,a,s,l),A&&(e.tag=u,e.anchor=d,e.kind="mapping",e.result=h),A}(e,f,h))||function(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p=!0,g=e.tag,m=e.anchor,v=Object.create(null);if(91===(f=e.input.charCodeAt(e.position)))a=93,c=!1,o=[];else{if(123!==f)return!1;a=125,c=!0,o={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),f=e.input.charCodeAt(++e.position);0!==f;){if(xue(e,!0,t),(f=e.input.charCodeAt(e.position))===a)return e.position++,e.tag=g,e.anchor=m,e.kind=c?"mapping":"sequence",e.result=o,!0;p?44===f&&mue(e,"expected the node content, but found ','"):mue(e,"missed comma between flow collection entries"),h=null,s=l=!1,63===f&&aue(e.input.charCodeAt(e.position+1))&&(s=l=!0,e.position++,xue(e,!0,t)),n=e.line,r=e.lineStart,i=e.position,Oue(e,t,1,!1,!0),d=e.tag,u=e.result,xue(e,!0,t),f=e.input.charCodeAt(e.position),!l&&e.line!==n||58!==f||(s=!0,f=e.input.charCodeAt(++e.position),xue(e,!0,t),Oue(e,t,1,!1,!0),h=e.result),c?wue(e,o,v,d,u,h,n,r,i):s?o.push(wue(e,null,v,d,u,h,n,r,i)):o.push(u),xue(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(p=!0,f=e.input.charCodeAt(++e.position)):p=!1}mue(e,"unexpected end of the stream within a flow collection")}(e,h)?m=!0:(a&&function(e,t){var n,r,i,o,a,s=1,l=!1,c=!1,u=t,d=0,h=!1;if(124===(o=e.input.charCodeAt(e.position)))r=!1;else{if(62!==o)return!1;r=!0}for(e.kind="scalar",e.result="";0!==o;)if(43===(o=e.input.charCodeAt(++e.position))||45===o)1===s?s=43===o?3:2:mue(e,"repeat of a chomping mode identifier");else{if(!((i=48<=(a=o)&&a<=57?a-48:-1)>=0))break;0===i?mue(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?mue(e,"repeat of an indentation width identifier"):(u=t+i-1,c=!0)}if(oue(o)){do{o=e.input.charCodeAt(++e.position)}while(oue(o));if(35===o)do{o=e.input.charCodeAt(++e.position)}while(!iue(o)&&0!==o)}for(;0!==o;){for(_ue(e),e.lineIndent=0,o=e.input.charCodeAt(e.position);(!c||e.lineIndent<u)&&32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>u&&(u=e.lineIndent),iue(o))d++;else{if(e.lineIndent<u){3===s?e.result+=gce.repeat("\n",l?1+d:d):1===s&&l&&(e.result+="\n");break}for(r?oue(o)?(h=!0,e.result+=gce.repeat("\n",l?1+d:d)):h?(h=!1,e.result+=gce.repeat("\n",d+1)):0===d?l&&(e.result+=" "):e.result+=gce.repeat("\n",d):e.result+=gce.repeat("\n",l?1+d:d),l=!0,c=!0,d=0,n=e.position;!iue(o)&&0!==o;)o=e.input.charCodeAt(++e.position);bue(e,n,e.position,!1)}}return!0}(e,h)||function(e,t){var n,r,i;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(bue(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,i=e.position}else iue(n)?(bue(e,r,i,!0),Sue(e,xue(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Eue(e)?mue(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);mue(e,"unexpected end of the stream within a single quoted scalar")}(e,h)||function(e,t){var n,r,i,o,a,s,l;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return bue(e,n,e.position,!0),e.position++,!0;if(92===s){if(bue(e,n,e.position,!0),iue(s=e.input.charCodeAt(++e.position)))xue(e,!1,t);else if(s<256&&due[s])e.result+=hue[s],e.position++;else if((a=120===(l=s)?2:117===l?4:85===l?8:0)>0){for(i=a,o=0;i>0;i--)(a=lue(s=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:mue(e,"expected hexadecimal character");e.result+=uue(o),e.position++}else mue(e,"unknown escape sequence");n=r=e.position}else iue(s)?(bue(e,n,r,!0),Sue(e,xue(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Eue(e)?mue(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}mue(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?m=!0:function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!aue(r)&&!sue(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&mue(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Xce.call(e.anchorMap,n)||mue(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],xue(e,!0,-1),!0}(e)?(m=!0,null===e.tag&&null===e.anchor||mue(e,"alias node should not have any properties")):function(e,t,n){var r,i,o,a,s,l,c,u,d=e.kind,h=e.result;if(aue(u=e.input.charCodeAt(e.position))||sue(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(aue(r=e.input.charCodeAt(e.position+1))||n&&sue(r)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,a=!1;0!==u;){if(58===u){if(aue(r=e.input.charCodeAt(e.position+1))||n&&sue(r))break}else if(35===u){if(aue(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&Eue(e)||n&&sue(u))break;if(iue(u)){if(s=e.line,l=e.lineStart,c=e.lineIndent,xue(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=o,e.line=s,e.lineStart=l,e.lineIndent=c;break}}a&&(bue(e,i,o,!1),Sue(e,e.line-s),i=o=e.position,a=!1),oue(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return bue(e,i,o,!1),!!e.result||(e.kind=d,e.result=h,!1)}(e,h,1===n)&&(m=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===p&&(m=s&&Cue(e,f))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&mue(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,c=e.implicitTypes.length;l<c;l+=1)if((d=e.implicitTypes[l]).resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(Xce.call(e.typeMap[e.kind||"fallback"],e.tag))d=e.typeMap[e.kind||"fallback"][e.tag];else for(d=null,l=0,c=(u=e.typeMap.multi[e.kind||"fallback"]).length;l<c;l+=1)if(e.tag.slice(0,u[l].tag.length)===u[l].tag){d=u[l];break}d||mue(e,"unknown tag !<"+e.tag+">"),null!==e.result&&d.kind!==e.kind&&mue(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):mue(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||m}function Mue(e){var t,n,r,i,o=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(i=e.input.charCodeAt(e.position))&&(xue(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(a=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!aue(i);)i=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&mue(e,"directive name must not be less than one character in length");0!==i;){for(;oue(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!iue(i));break}if(iue(i))break;for(t=e.position;0!==i&&!aue(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&_ue(e),Xce.call(Aue,n)?Aue[n](e,n,r):vue(e,'unknown document directive "'+n+'"')}xue(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,xue(e,!0,-1)):a&&mue(e,"directives end mark is expected"),Oue(e,e.lineIndent-1,4,!1,!0),xue(e,!0,-1),e.checkLineBreaks&&Zce.test(e.input.slice(o,e.position))&&vue(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Eue(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,xue(e,!0,-1)):e.position<e.length-1&&mue(e,"end of the stream or a document separator is expected")}var Iue=Tce,Due={load:function(e,t){var n=function(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new pue(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,mue(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Mue(n);return n.documents}(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new Ace("expected a single document in the stream, but found more")}}}.load;const Nue=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Rue=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Lue=/\s*%%.*\n/gm,Bue={},Pue=function(e,t){e=e.replace(Nue,"").replace(Rue,"").replace(Lue,"\n");for(const[n,{detector:r}]of Object.entries(Bue))if(r(e,t))return n;throw new Error(`No diagram type detected for text: ${e}`)},Fue=(...e)=>{for(const{id:t,detector:n,loader:r}of e)$ue(t,n,r)},$ue=(e,t,n)=>{Bue[e]?Hle.error(`Detector with key ${e} already exists`):Bue[e]={detector:t,loader:n},Hle.debug(`Detector with key ${e} added${n?" with loader":""}`)},jue=function(e,t,n){const{depth:r,clobber:i}=Object.assign({depth:2,clobber:!1},n);return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(t=>jue(e,t,n)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(t=>{e.includes(t)||e.push(t)}),e):void 0===e||r<=0?null!=e&&"object"==typeof e&&"object"==typeof t?Object.assign(e,t):t:(void 0!==t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).forEach(n=>{"object"!=typeof t[n]||void 0!==e[n]&&"object"!=typeof e[n]?(i||"object"!=typeof e[n]&&"object"!=typeof t[n])&&(e[n]=t[n]):(void 0===e[n]&&(e[n]=Array.isArray(t[n])?[]:{}),e[n]=jue(e[n],t[n],{depth:r-1,clobber:i}))}),e)},Hue=jue,Uue={curveBasis:cee,curveBasisClosed:function(e){return new uee(e)},curveBasisOpen:function(e){return new dee(e)},curveBumpX:function(e){return new oee(e,!0)},curveBumpY:function(e){return new oee(e,!1)},curveBundle:fee,curveCardinalClosed:Aee,curveCardinalOpen:yee,curveCardinal:mee,curveCatmullRomClosed:See,curveCatmullRomOpen:Tee,curveCatmullRom:xee,curveLinear:Z9,curveLinearClosed:function(e){return new kee(e)},curveMonotoneX:function(e){return new Nee(e)},curveMonotoneY:function(e){return new Ree(e)},curveNatural:function(e){return new Bee(e)},curveStep:function(e){return new Fee(e,.5)},curveStepAfter:function(e){return new Fee(e,1)},curveStepBefore:function(e){return new Fee(e,0)}},Que=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,zue=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Wue=function(e,t=null){try{const n=new RegExp(`[%]{2}(?![{]${zue.source})(?=[}][%]{2}).*\n`,"ig");let r;e=e.trim().replace(n,"").replace(/'/gm,'"'),Hle.debug(`Detecting diagram directive${null!==t?" type:"+t:""} based on the text:${e}`);const i=[];for(;null!==(r=Que.exec(e));)if(r.index===Que.lastIndex&&Que.lastIndex++,r&&!t||t&&r[1]&&r[1].match(t)||t&&r[2]&&r[2].match(t)){const e=r[1]?r[1]:r[2],t=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:e,args:t})}return 0===i.length&&i.push({type:e,args:null}),1===i.length?i[0]:i}catch(o){return Hle.error(`ERROR: ${o.message} - Unable to parse directive\n      ${null!==t?" type:"+t:""} based on the text:${e}`),{type:null,args:null}}};function Gue(e,t){if(!e)return t;const n=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return Uue[n]||t}function Vue(e,t){return e&&t?Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0}function Kue(e){let t="",n="";for(const r of e)void 0!==r&&(r.startsWith("color:")||r.startsWith("text-align:")?n=n+r+";":t=t+r+";");return{style:t,labelStyle:n}}let Yue=0;const que=()=>(Yue++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Yue),Xue=e=>function(e){let t="";const n="0123456789abcdef";for(let r=0;r<e;r++)t+=n.charAt(Math.floor(16*Math.random()));return t}(e.length),Jue=function(e,t){const n=t.text.replace(Jle.lineBreakRegex," "),[,r]=lde(t.fontSize),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.style("text-anchor",t.anchor),i.style("font-family",t.fontFamily),i.style("font-size",r),i.style("font-weight",t.fontWeight),i.attr("fill",t.fill),void 0!==t.class&&i.attr("class",t.class);const o=i.append("tspan");return o.attr("x",t.x+2*t.textMargin),o.attr("fill",t.fill),o.text(n),i},Zue=Jte((e,t,n)=>{if(!e)return e;if(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),Jle.lineBreakRegex.test(e))return e;const r=e.split(" "),i=[];let o="";return r.forEach((e,a)=>{const s=nde(`${e} `,n),l=nde(o,n);if(s>t){const{hyphenatedStrings:r,remainingWord:a}=ede(e,t,"-",n);i.push(o,...r),o=a}else l+s>=t?(i.push(o),o=e):o=[o,e].filter(Boolean).join(" ");a+1===r.length&&i.push(o)}),i.filter(e=>""!==e).join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),ede=Jte((e,t,n="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const i=[...e],o=[];let a="";return i.forEach((e,s)=>{const l=`${a}${e}`;if(nde(l,r)>=t){const e=s+1,t=i.length===e,r=`${l}${n}`;o.push(t?l:r),a=""}else a=l}),{hyphenatedStrings:o,remainingWord:a}},(e,t,n="-",r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function tde(e,t){return t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},t),rde(e,t).height}function nde(e,t){return t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},t),rde(e,t).width}const rde=Jte((e,t)=>{t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},t);const{fontSize:n,fontFamily:r,fontWeight:i}=t;if(!e)return{width:0,height:0};const[,o]=lde(n),a=["sans-serif",r],s=e.split(Jle.lineBreakRegex),l=[],c=b3("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const d of a){let e=0;const t={width:0,height:0,lineHeight:0};for(const n of s){const r={x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0};r.text=n;const a=Jue(u,r).style("font-size",o).style("font-weight",i).style("font-family",d),s=(a._groups||a)[0][0].getBBox();t.width=Math.round(Math.max(t.width,s.width)),e=Math.round(s.height),t.height+=e,t.lineHeight=Math.round(Math.max(t.lineHeight,e))}l.push(t)}return u.remove(),l[isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`);let ide;const ode=e=>{if(Hle.debug("directiveSanitizer called with",e),"object"==typeof e&&(e.length?e.forEach(e=>ode(e)):Object.keys(e).forEach(t=>{Hle.debug("Checking key",t),t.startsWith("__")&&(Hle.debug("sanitize deleting __ option",t),delete e[t]),t.includes("proto")&&(Hle.debug("sanitize deleting proto option",t),delete e[t]),t.includes("constr")&&(Hle.debug("sanitize deleting constr option",t),delete e[t]),t.includes("themeCSS")&&(Hle.debug("sanitizing themeCss option"),e[t]=ade(e[t])),t.includes("fontFamily")&&(Hle.debug("sanitizing fontFamily option"),e[t]=ade(e[t])),t.includes("altFontFamily")&&(Hle.debug("sanitizing altFontFamily option"),e[t]=ade(e[t])),uce.includes(t)?"object"==typeof e[t]&&(Hle.debug("sanitize deleting object",t),ode(e[t])):(Hle.debug("sanitize deleting option",t),delete e[t])})),e.themeVariables){const t=Object.keys(e.themeVariables);for(const n of t){const t=e.themeVariables[n];t&&t.match&&!t.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[n]="")}}Hle.debug("After sanitization",e)},ade=e=>{let t=0,n=0;for(const r of e){if(t<n)return"{ /* ERROR: Unbalanced CSS */ }";"{"===r?t++:"}"===r&&n++}return t!==n?"{ /* ERROR: Unbalanced CSS */ }":e};function sde(e){return"str"in e}const lde=e=>{if("number"==typeof e)return[e,e+"px"];const t=parseInt(e,10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},cde={assignWithDepth:Hue,wrapLabel:Zue,calculateTextHeight:tde,calculateTextWidth:nde,calculateTextDimensions:rde,detectInit:function(e,t){const n=Wue(e,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(n)){const e=n.map(e=>e.args);ode(e),r=Hue(r,[...e])}else r=n.args;if(r){let n=Pue(e,t);["config"].forEach(e=>{void 0!==r[e]&&("flowchart-v2"===n&&(n="flowchart"),r[n]=r[e],delete r[e])})}return r},detectDirective:Wue,isSubstringInArray:function(e,t){for(const[n,r]of t.entries())if(r.match(e))return n;return-1},interpolateToCurve:Gue,calcLabelPosition:function(e){return 1===e.length?e[0]:function(e){let t,n=0;e.forEach(e=>{n+=Vue(e,t),t=e});let r,i=n/2;return t=void 0,e.forEach(e=>{if(t&&!r){const n=Vue(e,t);if(n<i)i-=n;else{const o=i/n;o<=0&&(r=t),o>=1&&(r={x:e.x,y:e.y}),o>0&&o<1&&(r={x:(1-o)*t.x+o*e.x,y:(1-o)*t.y+o*e.y})}}t=e}),r}(e)},calcCardinalityPosition:(e,t,n)=>{let r;Hle.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());let i,o=25;r=void 0,t.forEach(e=>{if(r&&!i){const t=Vue(e,r);if(t<o)o-=t;else{const n=o/t;n<=0&&(i=r),n>=1&&(i={x:e.x,y:e.y}),n>0&&n<1&&(i={x:(1-n)*r.x+n*e.x,y:(1-n)*r.y+n*e.y})}}r=e});const a=e?10:5,s=Math.atan2(t[0].y-i.y,t[0].x-i.x),l={x:0,y:0};return l.x=Math.sin(s)*a+(t[0].x+i.x)/2,l.y=-Math.cos(s)*a+(t[0].y+i.y)/2,l},calcTerminalLabelPosition:function(e,t,n){let r,i=JSON.parse(JSON.stringify(n));Hle.info("our points",i),"start_left"!==t&&"start_right"!==t&&(i=i.reverse()),i.forEach(e=>{r=e});let o,a=25+e;r=void 0,i.forEach(e=>{if(r&&!o){const t=Vue(e,r);if(t<a)a-=t;else{const n=a/t;n<=0&&(o=r),n>=1&&(o={x:e.x,y:e.y}),n>0&&n<1&&(o={x:(1-n)*r.x+n*e.x,y:(1-n)*r.y+n*e.y})}}r=e});const s=10+.5*e,l=Math.atan2(i[0].y-o.y,i[0].x-o.x),c={x:0,y:0};return c.x=Math.sin(l)*s+(i[0].x+o.x)/2,c.y=-Math.cos(l)*s+(i[0].y+o.y)/2,"start_left"===t&&(c.x=Math.sin(l+Math.PI)*s+(i[0].x+o.x)/2,c.y=-Math.cos(l+Math.PI)*s+(i[0].y+o.y)/2),"end_right"===t&&(c.x=Math.sin(l-Math.PI)*s+(i[0].x+o.x)/2-5,c.y=-Math.cos(l-Math.PI)*s+(i[0].y+o.y)/2-5),"end_left"===t&&(c.x=Math.sin(l)*s+(i[0].x+o.x)/2-5,c.y=-Math.cos(l)*s+(i[0].y+o.y)/2-5),c},formatUrl:function(e,t){const n=e.trim();if(n)return"loose"!==t.securityLevel?G0.sanitizeUrl(n):n},getStylesFromArray:Kue,generateId:que,random:Xue,runFunc:(e,...t)=>{const n=e.split("."),r=n.length-1,i=n[r];let o=window;for(let a=0;a<r;a++)if(o=o[n[a]],!o)return;o[i](...t)},entityDecode:function(e){return ide=ide||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),ide.innerHTML=e,unescape(ide.textContent)},initIdGenerator:class{constructor(e,t){this.deterministic=e,this.seed=t,this.count=t?t.length:0}next(){return this.deterministic?this.count++:Date.now()}},directiveSanitizer:ode,sanitizeCss:ade,insertTitle:(e,t,n,r)=>{if(!r)return;const i=e.node().getBBox();e.append("text").text(r).attr("x",i.x+i.width/2).attr("y",-n).attr("class",t)},parseFontSize:lde},ude="9.4.3",dde=Object.freeze(dce);let hde,fde=Hue({},dde),pde=[],gde=Hue({},dde);const mde=(e,t)=>{let n=Hue({},e),r={};for(const i of t)yde(i),r=Hue(r,i);if(n=Hue(n,r),r.theme&&r.theme in sce){const e=Hue({},hde),t=Hue(e.themeVariables||{},r.themeVariables);n.theme&&n.theme in sce&&(n.themeVariables=sce[n.theme].getThemeVariables(t))}return gde=n,Sde(gde),gde},vde=()=>Hue({},fde),Ade=e=>(Sde(e),Hue(gde,e),bde()),bde=()=>Hue({},gde),yde=e=>{["secure",...fde.secure??[]].forEach(t=>{void 0!==e[t]&&(Hle.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{0===t.indexOf("__")&&delete e[t]}),Object.keys(e).forEach(t=>{"string"==typeof e[t]&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],"object"==typeof e[t]&&yde(e[t])})},wde=e=>{e.fontFamily&&(e.themeVariables&&e.themeVariables.fontFamily||(e.themeVariables={fontFamily:e.fontFamily})),pde.push(e),mde(fde,pde)},_de=(e=fde)=>{pde=[],mde(e,pde)};var xde=(e=>(e.LAZY_LOAD_DEPRECATED="The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",e))(xde||{});const Ede={},Sde=e=>{var t;e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&(Ede[t="LAZY_LOAD_DEPRECATED"]||(Hle.warn(xde[t]),Ede[t]=!0))},Cde=function(e,t,n,r){const i=function(e,t,n){let r=new Map;return n?(r.set("width","100%"),r.set("style",`max-width: ${t}px;`)):(r.set("height",e),r.set("width",t)),r}(t,n,r);!function(e,t){for(let n of t)e.attr(n[0],n[1])}(e,i)},Tde=function(e,t,n,r){const i=t.node().getBBox(),o=i.width,a=i.height;Hle.info(`SVG bounds: ${o}x${a}`,i);let s=0,l=0;Hle.info(`Graph bounds: ${s}x${l}`,e),s=o+2*n,l=a+2*n,Hle.info(`Calculated bounds: ${s}x${l}`),Cde(t,l,s,r);const c=`${i.x-n} ${i.y-n} ${i.width+2*n} ${i.height+2*n}`;t.attr("viewBox",c)},kde=e=>`g.classGroup text {\n  fill: ${e.nodeBorder};\n  fill: ${e.classText};\n  stroke: none;\n  font-family: ${e.fontFamily};\n  font-size: 10px;\n\n  .title {\n    font-weight: bolder;\n  }\n\n}\n\n.nodeLabel, .edgeLabel {\n  color: ${e.classText};\n}\n.edgeLabel .label rect {\n  fill: ${e.mainBkg};\n}\n.label text {\n  fill: ${e.classText};\n}\n.edgeLabel .label span {\n  background: ${e.mainBkg};\n}\n\n.classTitle {\n  font-weight: bolder;\n}\n.node rect,\n  .node circle,\n  .node ellipse,\n  .node polygon,\n  .node path {\n    fill: ${e.mainBkg};\n    stroke: ${e.nodeBorder};\n    stroke-width: 1px;\n  }\n\n\n.divider {\n  stroke: ${e.nodeBorder};\n  stroke: 1;\n}\n\ng.clickable {\n  cursor: pointer;\n}\n\ng.classGroup rect {\n  fill: ${e.mainBkg};\n  stroke: ${e.nodeBorder};\n}\n\ng.classGroup line {\n  stroke: ${e.nodeBorder};\n  stroke-width: 1;\n}\n\n.classLabel .box {\n  stroke: none;\n  stroke-width: 0;\n  fill: ${e.mainBkg};\n  opacity: 0.5;\n}\n\n.classLabel .label {\n  fill: ${e.nodeBorder};\n  font-size: 10px;\n}\n\n.relation {\n  stroke: ${e.lineColor};\n  stroke-width: 1;\n  fill: none;\n}\n\n.dashed-line{\n  stroke-dasharray: 3;\n}\n\n.dotted-line{\n  stroke-dasharray: 1 2;\n}\n\n#compositionStart, .composition {\n  fill: ${e.lineColor} !important;\n  stroke: ${e.lineColor} !important;\n  stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n  fill: ${e.lineColor} !important;\n  stroke: ${e.lineColor} !important;\n  stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n  fill: ${e.lineColor} !important;\n  stroke: ${e.lineColor} !important;\n  stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n  fill: ${e.lineColor} !important;\n  stroke: ${e.lineColor} !important;\n  stroke-width: 1;\n}\n\n#extensionStart, .extension {\n  fill: ${e.mainBkg} !important;\n  stroke: ${e.lineColor} !important;\n  stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n  fill: ${e.mainBkg} !important;\n  stroke: ${e.lineColor} !important;\n  stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n  fill: ${e.mainBkg} !important;\n  stroke: ${e.lineColor} !important;\n  stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n  fill: ${e.mainBkg} !important;\n  stroke: ${e.lineColor} !important;\n  stroke-width: 1;\n}\n\n#lollipopStart, .lollipop {\n  fill: ${e.mainBkg} !important;\n  stroke: ${e.lineColor} !important;\n  stroke-width: 1;\n}\n\n#lollipopEnd, .lollipop {\n  fill: ${e.mainBkg} !important;\n  stroke: ${e.lineColor} !important;\n  stroke-width: 1;\n}\n\n.edgeTerminals {\n  font-size: 11px;\n}\n\n.classTitleText {\n  text-anchor: middle;\n  font-size: 18px;\n  fill: ${e.textColor};\n}\n`,Ode=e=>`\n  .entityBox {\n    fill: ${e.mainBkg};\n    stroke: ${e.nodeBorder};\n  }\n\n  .attributeBoxOdd {\n    fill: ${e.attributeBackgroundColorOdd};\n    stroke: ${e.nodeBorder};\n  }\n\n  .attributeBoxEven {\n    fill:  ${e.attributeBackgroundColorEven};\n    stroke: ${e.nodeBorder};\n  }\n\n  .relationshipLabelBox {\n    fill: ${e.tertiaryColor};\n    opacity: 0.7;\n    background-color: ${e.tertiaryColor};\n      rect {\n        opacity: 0.5;\n      }\n  }\n\n    .relationshipLine {\n      stroke: ${e.lineColor};\n    }\n\n  .entityTitleText {\n    text-anchor: middle;\n    font-size: 18px;\n    fill: ${e.textColor};\n  }    \n`,Mde=()=>"",Ide=e=>`.label {\n    font-family: ${e.fontFamily};\n    color: ${e.nodeTextColor||e.textColor};\n  }\n  .cluster-label text {\n    fill: ${e.titleColor};\n  }\n  .cluster-label span {\n    color: ${e.titleColor};\n  }\n\n  .label text,span {\n    fill: ${e.nodeTextColor||e.textColor};\n    color: ${e.nodeTextColor||e.textColor};\n  }\n\n  .node rect,\n  .node circle,\n  .node ellipse,\n  .node polygon,\n  .node path {\n    fill: ${e.mainBkg};\n    stroke: ${e.nodeBorder};\n    stroke-width: 1px;\n  }\n\n  .node .label {\n    text-align: center;\n  }\n  .node.clickable {\n    cursor: pointer;\n  }\n\n  .arrowheadPath {\n    fill: ${e.arrowheadColor};\n  }\n\n  .edgePath .path {\n    stroke: ${e.lineColor};\n    stroke-width: 2.0px;\n  }\n\n  .flowchart-link {\n    stroke: ${e.lineColor};\n    fill: none;\n  }\n\n  .edgeLabel {\n    background-color: ${e.edgeLabelBackground};\n    rect {\n      opacity: 0.5;\n      background-color: ${e.edgeLabelBackground};\n      fill: ${e.edgeLabelBackground};\n    }\n    text-align: center;\n  }\n\n  .cluster rect {\n    fill: ${e.clusterBkg};\n    stroke: ${e.clusterBorder};\n    stroke-width: 1px;\n  }\n\n  .cluster text {\n    fill: ${e.titleColor};\n  }\n\n  .cluster span {\n    color: ${e.titleColor};\n  }\n  /* .cluster div {\n    color: ${e.titleColor};\n  } */\n\n  div.mermaidTooltip {\n    position: absolute;\n    text-align: center;\n    max-width: 200px;\n    padding: 2px;\n    font-family: ${e.fontFamily};\n    font-size: 12px;\n    background: ${e.tertiaryColor};\n    border: 1px solid ${e.border2};\n    border-radius: 2px;\n    pointer-events: none;\n    z-index: 100;\n  }\n\n  .flowchartTitleText {\n    text-anchor: middle;\n    font-size: 18px;\n    fill: ${e.textColor};\n  }\n`,Dde=e=>`\n  .mermaid-main-font {\n    font-family: "trebuchet ms", verdana, arial, sans-serif;\n    font-family: var(--mermaid-font-family);\n  }\n  .exclude-range {\n    fill: ${e.excludeBkgColor};\n  }\n\n  .section {\n    stroke: none;\n    opacity: 0.2;\n  }\n\n  .section0 {\n    fill: ${e.sectionBkgColor};\n  }\n\n  .section2 {\n    fill: ${e.sectionBkgColor2};\n  }\n\n  .section1,\n  .section3 {\n    fill: ${e.altSectionBkgColor};\n    opacity: 0.2;\n  }\n\n  .sectionTitle0 {\n    fill: ${e.titleColor};\n  }\n\n  .sectionTitle1 {\n    fill: ${e.titleColor};\n  }\n\n  .sectionTitle2 {\n    fill: ${e.titleColor};\n  }\n\n  .sectionTitle3 {\n    fill: ${e.titleColor};\n  }\n\n  .sectionTitle {\n    text-anchor: start;\n    // font-size: ${e.ganttFontSize};\n    // text-height: 14px;\n    font-family: 'trebuchet ms', verdana, arial, sans-serif;\n    font-family: var(--mermaid-font-family);\n\n  }\n\n\n  /* Grid and axis */\n\n  .grid .tick {\n    stroke: ${e.gridColor};\n    opacity: 0.8;\n    shape-rendering: crispEdges;\n    text {\n      font-family: ${e.fontFamily};\n      fill: ${e.textColor};\n    }\n  }\n\n  .grid path {\n    stroke-width: 0;\n  }\n\n\n  /* Today line */\n\n  .today {\n    fill: none;\n    stroke: ${e.todayLineColor};\n    stroke-width: 2px;\n  }\n\n\n  /* Task styling */\n\n  /* Default task */\n\n  .task {\n    stroke-width: 2;\n  }\n\n  .taskText {\n    text-anchor: middle;\n    font-family: 'trebuchet ms', verdana, arial, sans-serif;\n    font-family: var(--mermaid-font-family);\n  }\n\n  // .taskText:not([font-size]) {\n  //   font-size: ${e.ganttFontSize};\n  // }\n\n  .taskTextOutsideRight {\n    fill: ${e.taskTextDarkColor};\n    text-anchor: start;\n    // font-size: ${e.ganttFontSize};\n    font-family: 'trebuchet ms', verdana, arial, sans-serif;\n    font-family: var(--mermaid-font-family);\n\n  }\n\n  .taskTextOutsideLeft {\n    fill: ${e.taskTextDarkColor};\n    text-anchor: end;\n    // font-size: ${e.ganttFontSize};\n  }\n\n  /* Special case clickable */\n  .task.clickable {\n    cursor: pointer;\n  }\n  .taskText.clickable {\n    cursor: pointer;\n    fill: ${e.taskTextClickableColor} !important;\n    font-weight: bold;\n  }\n\n  .taskTextOutsideLeft.clickable {\n    cursor: pointer;\n    fill: ${e.taskTextClickableColor} !important;\n    font-weight: bold;\n  }\n\n  .taskTextOutsideRight.clickable {\n    cursor: pointer;\n    fill: ${e.taskTextClickableColor} !important;\n    font-weight: bold;\n  }\n\n  /* Specific task settings for the sections*/\n\n  .taskText0,\n  .taskText1,\n  .taskText2,\n  .taskText3 {\n    fill: ${e.taskTextColor};\n  }\n\n  .task0,\n  .task1,\n  .task2,\n  .task3 {\n    fill: ${e.taskBkgColor};\n    stroke: ${e.taskBorderColor};\n  }\n\n  .taskTextOutside0,\n  .taskTextOutside2\n  {\n    fill: ${e.taskTextOutsideColor};\n  }\n\n  .taskTextOutside1,\n  .taskTextOutside3 {\n    fill: ${e.taskTextOutsideColor};\n  }\n\n\n  /* Active task */\n\n  .active0,\n  .active1,\n  .active2,\n  .active3 {\n    fill: ${e.activeTaskBkgColor};\n    stroke: ${e.activeTaskBorderColor};\n  }\n\n  .activeText0,\n  .activeText1,\n  .activeText2,\n  .activeText3 {\n    fill: ${e.taskTextDarkColor} !important;\n  }\n\n\n  /* Completed task */\n\n  .done0,\n  .done1,\n  .done2,\n  .done3 {\n    stroke: ${e.doneTaskBorderColor};\n    fill: ${e.doneTaskBkgColor};\n    stroke-width: 2;\n  }\n\n  .doneText0,\n  .doneText1,\n  .doneText2,\n  .doneText3 {\n    fill: ${e.taskTextDarkColor} !important;\n  }\n\n\n  /* Tasks on the critical line */\n\n  .crit0,\n  .crit1,\n  .crit2,\n  .crit3 {\n    stroke: ${e.critBorderColor};\n    fill: ${e.critBkgColor};\n    stroke-width: 2;\n  }\n\n  .activeCrit0,\n  .activeCrit1,\n  .activeCrit2,\n  .activeCrit3 {\n    stroke: ${e.critBorderColor};\n    fill: ${e.activeTaskBkgColor};\n    stroke-width: 2;\n  }\n\n  .doneCrit0,\n  .doneCrit1,\n  .doneCrit2,\n  .doneCrit3 {\n    stroke: ${e.critBorderColor};\n    fill: ${e.doneTaskBkgColor};\n    stroke-width: 2;\n    cursor: pointer;\n    shape-rendering: crispEdges;\n  }\n\n  .milestone {\n    transform: rotate(45deg) scale(0.8,0.8);\n  }\n\n  .milestoneText {\n    font-style: italic;\n  }\n  .doneCritText0,\n  .doneCritText1,\n  .doneCritText2,\n  .doneCritText3 {\n    fill: ${e.taskTextDarkColor} !important;\n  }\n\n  .activeCritText0,\n  .activeCritText1,\n  .activeCritText2,\n  .activeCritText3 {\n    fill: ${e.taskTextDarkColor} !important;\n  }\n\n  .titleText {\n    text-anchor: middle;\n    font-size: 18px;\n    fill: ${e.textColor}    ;\n    font-family: 'trebuchet ms', verdana, arial, sans-serif;\n    font-family: var(--mermaid-font-family);\n  }\n`,Nde=()=>"",Rde=e=>`\n  .pieCircle{\n    stroke: ${e.pieStrokeColor};\n    stroke-width : ${e.pieStrokeWidth};\n    opacity : ${e.pieOpacity};\n  }\n  .pieTitleText {\n    text-anchor: middle;\n    font-size: ${e.pieTitleTextSize};\n    fill: ${e.pieTitleTextColor};\n    font-family: ${e.fontFamily};\n  }\n  .slice {\n    font-family: ${e.fontFamily};\n    fill: ${e.pieSectionTextColor};\n    font-size:${e.pieSectionTextSize};\n    // fill: white;\n  }\n  .legend text {\n    fill: ${e.pieLegendTextColor};\n    font-family: ${e.fontFamily};\n    font-size: ${e.pieLegendTextSize};\n  }\n`,Lde=e=>`\n\n  marker {\n    fill: ${e.relationColor};\n    stroke: ${e.relationColor};\n  }\n\n  marker.cross {\n    stroke: ${e.lineColor};\n  }\n\n  svg {\n    font-family: ${e.fontFamily};\n    font-size: ${e.fontSize};\n  }\n\n  .reqBox {\n    fill: ${e.requirementBackground};\n    fill-opacity: 100%;\n    stroke: ${e.requirementBorderColor};\n    stroke-width: ${e.requirementBorderSize};\n  }\n  \n  .reqTitle, .reqLabel{\n    fill:  ${e.requirementTextColor};\n  }\n  .reqLabelBox {\n    fill: ${e.relationLabelBackground};\n    fill-opacity: 100%;\n  }\n\n  .req-title-line {\n    stroke: ${e.requirementBorderColor};\n    stroke-width: ${e.requirementBorderSize};\n  }\n  .relationshipLine {\n    stroke: ${e.relationColor};\n    stroke-width: 1;\n  }\n  .relationshipLabel {\n    fill: ${e.relationLabelColor};\n  }\n\n`,Bde=e=>`.actor {\n    stroke: ${e.actorBorder};\n    fill: ${e.actorBkg};\n  }\n\n  text.actor > tspan {\n    fill: ${e.actorTextColor};\n    stroke: none;\n  }\n\n  .actor-line {\n    stroke: ${e.actorLineColor};\n  }\n\n  .messageLine0 {\n    stroke-width: 1.5;\n    stroke-dasharray: none;\n    stroke: ${e.signalColor};\n  }\n\n  .messageLine1 {\n    stroke-width: 1.5;\n    stroke-dasharray: 2, 2;\n    stroke: ${e.signalColor};\n  }\n\n  #arrowhead path {\n    fill: ${e.signalColor};\n    stroke: ${e.signalColor};\n  }\n\n  .sequenceNumber {\n    fill: ${e.sequenceNumberColor};\n  }\n\n  #sequencenumber {\n    fill: ${e.signalColor};\n  }\n\n  #crosshead path {\n    fill: ${e.signalColor};\n    stroke: ${e.signalColor};\n  }\n\n  .messageText {\n    fill: ${e.signalTextColor};\n    stroke: none;\n  }\n\n  .labelBox {\n    stroke: ${e.labelBoxBorderColor};\n    fill: ${e.labelBoxBkgColor};\n  }\n\n  .labelText, .labelText > tspan {\n    fill: ${e.labelTextColor};\n    stroke: none;\n  }\n\n  .loopText, .loopText > tspan {\n    fill: ${e.loopTextColor};\n    stroke: none;\n  }\n\n  .loopLine {\n    stroke-width: 2px;\n    stroke-dasharray: 2, 2;\n    stroke: ${e.labelBoxBorderColor};\n    fill: ${e.labelBoxBorderColor};\n  }\n\n  .note {\n    //stroke: #decc93;\n    stroke: ${e.noteBorderColor};\n    fill: ${e.noteBkgColor};\n  }\n\n  .noteText, .noteText > tspan {\n    fill: ${e.noteTextColor};\n    stroke: none;\n  }\n\n  .activation0 {\n    fill: ${e.activationBkgColor};\n    stroke: ${e.activationBorderColor};\n  }\n\n  .activation1 {\n    fill: ${e.activationBkgColor};\n    stroke: ${e.activationBorderColor};\n  }\n\n  .activation2 {\n    fill: ${e.activationBkgColor};\n    stroke: ${e.activationBorderColor};\n  }\n\n  .actorPopupMenu {\n    position: absolute;\n  }\n\n  .actorPopupMenuPanel {\n    position: absolute;\n    fill: ${e.actorBkg};\n    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);\n    filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));\n}\n  .actor-man line {\n    stroke: ${e.actorBorder};\n    fill: ${e.actorBkg};\n  }\n  .actor-man circle, line {\n    stroke: ${e.actorBorder};\n    fill: ${e.actorBkg};\n    stroke-width: 2px;\n  }\n`,Pde=e=>`\ndefs #statediagram-barbEnd {\n    fill: ${e.transitionColor};\n    stroke: ${e.transitionColor};\n  }\ng.stateGroup text {\n  fill: ${e.nodeBorder};\n  stroke: none;\n  font-size: 10px;\n}\ng.stateGroup text {\n  fill: ${e.textColor};\n  stroke: none;\n  font-size: 10px;\n\n}\ng.stateGroup .state-title {\n  font-weight: bolder;\n  fill: ${e.stateLabelColor};\n}\n\ng.stateGroup rect {\n  fill: ${e.mainBkg};\n  stroke: ${e.nodeBorder};\n}\n\ng.stateGroup line {\n  stroke: ${e.lineColor};\n  stroke-width: 1;\n}\n\n.transition {\n  stroke: ${e.transitionColor};\n  stroke-width: 1;\n  fill: none;\n}\n\n.stateGroup .composit {\n  fill: ${e.background};\n  border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n  fill: #e0e0e0;\n  border-bottom: 1px\n}\n\n.state-note {\n  stroke: ${e.noteBorderColor};\n  fill: ${e.noteBkgColor};\n\n  text {\n    fill: ${e.noteTextColor};\n    stroke: none;\n    font-size: 10px;\n  }\n}\n\n.stateLabel .box {\n  stroke: none;\n  stroke-width: 0;\n  fill: ${e.mainBkg};\n  opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n  fill: ${e.labelBackgroundColor};\n  opacity: 0.5;\n}\n.edgeLabel .label text {\n  fill: ${e.transitionLabelColor||e.tertiaryTextColor};\n}\n.label div .edgeLabel {\n  color: ${e.transitionLabelColor||e.tertiaryTextColor};\n}\n\n.stateLabel text {\n  fill: ${e.stateLabelColor};\n  font-size: 10px;\n  font-weight: bold;\n}\n\n.node circle.state-start {\n  fill: ${e.specialStateColor};\n  stroke: ${e.specialStateColor};\n}\n\n.node .fork-join {\n  fill: ${e.specialStateColor};\n  stroke: ${e.specialStateColor};\n}\n\n.node circle.state-end {\n  fill: ${e.innerEndBackground};\n  stroke: ${e.background};\n  stroke-width: 1.5\n}\n.end-state-inner {\n  fill: ${e.compositeBackground||e.background};\n  // stroke: ${e.background};\n  stroke-width: 1.5\n}\n\n.node rect {\n  fill: ${e.stateBkg||e.mainBkg};\n  stroke: ${e.stateBorder||e.nodeBorder};\n  stroke-width: 1px;\n}\n.node polygon {\n  fill: ${e.mainBkg};\n  stroke: ${e.stateBorder||e.nodeBorder};;\n  stroke-width: 1px;\n}\n#statediagram-barbEnd {\n  fill: ${e.lineColor};\n}\n\n.statediagram-cluster rect {\n  fill: ${e.compositeTitleBackground};\n  stroke: ${e.stateBorder||e.nodeBorder};\n  stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n  color: ${e.stateLabelColor};\n}\n\n.statediagram-cluster rect.outer {\n  rx: 5px;\n  ry: 5px;\n}\n.statediagram-state .divider {\n  stroke: ${e.stateBorder||e.nodeBorder};\n}\n\n.statediagram-state .title-state {\n  rx: 5px;\n  ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n  fill: ${e.compositeBackground||e.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n  fill: ${e.altBackground?e.altBackground:"#efefef"};\n}\n\n.statediagram-cluster .inner {\n  rx:0;\n  ry:0;\n}\n\n.statediagram-state rect.basic {\n  rx: 5px;\n  ry: 5px;\n}\n.statediagram-state rect.divider {\n  stroke-dasharray: 10,10;\n  fill: ${e.altBackground?e.altBackground:"#efefef"};\n}\n\n.note-edge {\n  stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n  fill: ${e.noteBkgColor};\n  stroke: ${e.noteBorderColor};\n  stroke-width: 1px;\n  rx: 0;\n  ry: 0;\n}\n.statediagram-note rect {\n  fill: ${e.noteBkgColor};\n  stroke: ${e.noteBorderColor};\n  stroke-width: 1px;\n  rx: 0;\n  ry: 0;\n}\n\n.statediagram-note text {\n  fill: ${e.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n  color: ${e.noteTextColor};\n}\n.statediagram .edgeLabel {\n  color: red; // ${e.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n  fill: ${e.lineColor};\n  stroke: ${e.lineColor};\n  stroke-width: 1;\n}\n\n.statediagramTitleText {\n  text-anchor: middle;\n  font-size: 18px;\n  fill: ${e.textColor};\n}\n`,Fde=e=>`.label {\n    font-family: 'trebuchet ms', verdana, arial, sans-serif;\n    font-family: var(--mermaid-font-family);\n    color: ${e.textColor};\n  }\n  .mouth {\n    stroke: #666;\n  }\n\n  line {\n    stroke: ${e.textColor}\n  }\n\n  .legend {\n    fill: ${e.textColor};\n  }\n\n  .label text {\n    fill: #333;\n  }\n  .label {\n    color: ${e.textColor}\n  }\n\n  .face {\n    ${e.faceColor?`fill: ${e.faceColor}`:"fill: #FFF8DC"};\n    stroke: #999;\n  }\n\n  .node rect,\n  .node circle,\n  .node ellipse,\n  .node polygon,\n  .node path {\n    fill: ${e.mainBkg};\n    stroke: ${e.nodeBorder};\n    stroke-width: 1px;\n  }\n\n  .node .label {\n    text-align: center;\n  }\n  .node.clickable {\n    cursor: pointer;\n  }\n\n  .arrowheadPath {\n    fill: ${e.arrowheadColor};\n  }\n\n  .edgePath .path {\n    stroke: ${e.lineColor};\n    stroke-width: 1.5px;\n  }\n\n  .flowchart-link {\n    stroke: ${e.lineColor};\n    fill: none;\n  }\n\n  .edgeLabel {\n    background-color: ${e.edgeLabelBackground};\n    rect {\n      opacity: 0.5;\n    }\n    text-align: center;\n  }\n\n  .cluster rect {\n  }\n\n  .cluster text {\n    fill: ${e.titleColor};\n  }\n\n  div.mermaidTooltip {\n    position: absolute;\n    text-align: center;\n    max-width: 200px;\n    padding: 2px;\n    font-family: 'trebuchet ms', verdana, arial, sans-serif;\n    font-family: var(--mermaid-font-family);\n    font-size: 12px;\n    background: ${e.tertiaryColor};\n    border: 1px solid ${e.border2};\n    border-radius: 2px;\n    pointer-events: none;\n    z-index: 100;\n  }\n\n  .task-type-0, .section-type-0  {\n    ${e.fillType0?`fill: ${e.fillType0}`:""};\n  }\n  .task-type-1, .section-type-1  {\n    ${e.fillType0?`fill: ${e.fillType1}`:""};\n  }\n  .task-type-2, .section-type-2  {\n    ${e.fillType0?`fill: ${e.fillType2}`:""};\n  }\n  .task-type-3, .section-type-3  {\n    ${e.fillType0?`fill: ${e.fillType3}`:""};\n  }\n  .task-type-4, .section-type-4  {\n    ${e.fillType0?`fill: ${e.fillType4}`:""};\n  }\n  .task-type-5, .section-type-5  {\n    ${e.fillType0?`fill: ${e.fillType5}`:""};\n  }\n  .task-type-6, .section-type-6  {\n    ${e.fillType0?`fill: ${e.fillType6}`:""};\n  }\n  .task-type-7, .section-type-7  {\n    ${e.fillType0?`fill: ${e.fillType7}`:""};\n  }\n\n  .actor-0 {\n    ${e.actor0?`fill: ${e.actor0}`:""};\n  }\n  .actor-1 {\n    ${e.actor1?`fill: ${e.actor1}`:""};\n  }\n  .actor-2 {\n    ${e.actor2?`fill: ${e.actor2}`:""};\n  }\n  .actor-3 {\n    ${e.actor3?`fill: ${e.actor3}`:""};\n  }\n  .actor-4 {\n    ${e.actor4?`fill: ${e.actor4}`:""};\n  }\n  .actor-5 {\n    ${e.actor5?`fill: ${e.actor5}`:""};\n  }\n`,$de=e=>`.person {\n    stroke: ${e.personBorder};\n    fill: ${e.personBkg};\n  }\n`,jde={flowchart:Ide,"flowchart-v2":Ide,sequence:Bde,gantt:Dde,classDiagram:kde,"classDiagram-v2":kde,class:kde,stateDiagram:Pde,state:Pde,info:Nde,pie:Rde,er:Ode,error:Mde,journey:Fde,requirement:Lde,c4:$de},Hde=(e,t,n)=>{let r="";return e in jde&&jde[e]?r=jde[e](n):Hle.warn(`No theme found for ${e}`),` & {\n    font-family: ${n.fontFamily};\n    font-size: ${n.fontSize};\n    fill: ${n.textColor}\n  }\n\n  /* Classes common for multiple diagrams */\n\n  & .error-icon {\n    fill: ${n.errorBkgColor};\n  }\n  & .error-text {\n    fill: ${n.errorTextColor};\n    stroke: ${n.errorTextColor};\n  }\n\n  & .edge-thickness-normal {\n    stroke-width: 2px;\n  }\n  & .edge-thickness-thick {\n    stroke-width: 3.5px\n  }\n  & .edge-pattern-solid {\n    stroke-dasharray: 0;\n  }\n\n  & .edge-pattern-dashed{\n    stroke-dasharray: 3;\n  }\n  .edge-pattern-dotted {\n    stroke-dasharray: 2;\n  }\n\n  & .marker {\n    fill: ${n.lineColor};\n    stroke: ${n.lineColor};\n  }\n  & .marker.cross {\n    stroke: ${n.lineColor};\n  }\n\n  & svg {\n    font-family: ${n.fontFamily};\n    font-size: ${n.fontSize};\n  }\n\n  ${r}\n\n  ${t}\n`};let Ude="",Qde="",zde="";const Wde=e=>Gle(e,bde()),Gde=function(){Ude="",zde="",Qde=""},Vde=function(e){Ude=Wde(e).replace(/^\s+/g,"")},Kde=function(){return Ude||Qde},Yde=function(e){zde=Wde(e).replace(/\n\s+/g,"\n")},qde=function(){return zde},Xde=function(e){Qde=Wde(e)},Jde=function(){return Qde},Zde={setAccTitle:Vde,getAccTitle:Kde,setDiagramTitle:Xde,getDiagramTitle:Jde,getAccDescription:qde,setAccDescription:Yde,clear:Gde},ehe=Object.freeze(Object.defineProperty({__proto__:null,clear:Gde,default:Zde,getAccDescription:qde,getAccTitle:Kde,getDiagramTitle:Jde,setAccDescription:Yde,setAccTitle:Vde,setDiagramTitle:Xde},Symbol.toStringTag,{value:"Module"}));let the={};const nhe=function(e,t,n,r){Hle.debug("parseDirective is being called",t,n,r);try{if(void 0!==t)switch(t=t.trim(),n){case"open_directive":the={};break;case"type_directive":if(!the)throw new Error("currentDirective is undefined");the.type=t.toLowerCase();break;case"arg_directive":if(!the)throw new Error("currentDirective is undefined");the.args=JSON.parse(t);break;case"close_directive":rhe(e,the,r),the=void 0}}catch(e){Hle.error(`Error while rendering sequenceDiagram directive: ${t} jison context: ${n}`),Hle.error(e.message)}},rhe=function(e,t,n){switch(Hle.info(`Directive type=${t.type} with args:`,t.args),t.type){case"init":case"initialize":["config"].forEach(e=>{void 0!==t.args[e]&&("flowchart-v2"===n&&(n="flowchart"),t.args[n]=t.args[e],delete t.args[e])}),Hle.info("sanitize in handleDirective",t.args),ode(t.args),Hle.info("sanitize in handleDirective (done)",t.args),wde(t.args);break;case"wrap":case"nowrap":e&&e.setWrap&&e.setWrap("wrap"===t.type);break;case"themeCss":Hle.warn("themeCss encountered");break;default:Hle.warn(`Unhandled directive: source: '%%{${t.type}: ${JSON.stringify(t.args?t.args:{})}}%%`,t)}},ihe=Hle,ohe=Ule,ahe=bde,she=e=>Gle(e,ahe()),lhe=Tde,che=(e,t,n,r)=>nhe(e,t,n,r),uhe={},dhe=(e,t,n)=>{if(uhe[e])throw new Error(`Diagram ${e} already registered.`);var r,i;uhe[e]=t,n&&$ue(e,n),r=e,i=t.styles,jde[r]=i,t.injectUtils&&t.injectUtils(ihe,ohe,ahe,she,lhe,ehe,che)},hhe=e=>{if(e in uhe)return uhe[e];throw new Error(`Diagram ${e} not found.`)};var fhe=function(){var e,t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[1,4],r=[1,7],i=[1,5],o=[1,9],a=[1,6],s=[2,6],l=[1,16],c=[6,8,14,20,22,24,25,27,29,32,37,40,50,55],u=[8,14,20,22,24,25,27,29,32,37,40],d=[8,13,14,20,22,24,25,27,29,32,37,40],h=[1,26],f=[6,8,14,50,55],p=[8,14,55],g=[1,53],m=[1,52],v=[8,14,30,33,35,38,55],A=[1,67],b=[1,68],y=[1,69],w=[8,14,33,35,42,55],_={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ref:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,openDirective:46,typeDirective:47,closeDirective:48,argDirective:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,ID:54,";":55,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive",54:"ID",55:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[19,5],[19,5],[19,5],[19,5],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[41,0],[41,1],[39,1],[39,1],[39,1],[5,3],[5,5],[46,1],[47,1],[49,1],[48,1],[28,1],[28,1],[4,1],[4,1],[4,1]],performAction:function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 3:return o[s];case 4:return o[s-1];case 5:return r.setDirection(o[s-3]),o[s-1];case 7:r.setOptions(o[s-1]),this.$=o[s];break;case 8:o[s-1]+=o[s],this.$=o[s-1];break;case 10:this.$=[];break;case 11:o[s-1].push(o[s]),this.$=o[s-1];break;case 12:this.$=o[s-1];break;case 17:this.$=o[s].trim(),r.setAccTitle(this.$);break;case 18:case 19:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 20:r.addSection(o[s].substr(8)),this.$=o[s].substr(8);break;case 22:r.checkout(o[s]);break;case 23:r.branch(o[s]);break;case 24:r.branch(o[s-2],o[s]);break;case 25:r.cherryPick(o[s],"",void 0);break;case 26:r.cherryPick(o[s-2],"",o[s]);break;case 27:case 29:r.cherryPick(o[s-2],"","");break;case 28:r.cherryPick(o[s],"",o[s-2]);break;case 30:r.merge(o[s],"","","");break;case 31:r.merge(o[s-2],o[s],"","");break;case 32:r.merge(o[s-2],"",o[s],"");break;case 33:r.merge(o[s-2],"","",o[s]);break;case 34:r.merge(o[s-4],o[s],"",o[s-2]);break;case 35:r.merge(o[s-4],"",o[s],o[s-2]);break;case 36:r.merge(o[s-4],"",o[s-2],o[s]);break;case 37:r.merge(o[s-4],o[s-2],o[s],"");break;case 38:r.merge(o[s-4],o[s-2],"",o[s]);break;case 39:r.merge(o[s-4],o[s],o[s-2],"");break;case 40:r.merge(o[s-6],o[s-4],o[s-2],o[s]);break;case 41:r.merge(o[s-6],o[s],o[s-4],o[s-2]);break;case 42:r.merge(o[s-6],o[s-4],o[s],o[s-2]);break;case 43:r.merge(o[s-6],o[s-2],o[s-4],o[s]);break;case 44:r.merge(o[s-6],o[s],o[s-2],o[s-4]);break;case 45:r.merge(o[s-6],o[s-2],o[s],o[s-4]);break;case 46:r.commit(o[s]);break;case 47:r.commit("","",r.commitType.NORMAL,o[s]);break;case 48:r.commit("","",o[s],"");break;case 49:r.commit("","",o[s],o[s-2]);break;case 50:r.commit("","",o[s-2],o[s]);break;case 51:r.commit("",o[s],r.commitType.NORMAL,"");break;case 52:r.commit("",o[s-2],r.commitType.NORMAL,o[s]);break;case 53:r.commit("",o[s],r.commitType.NORMAL,o[s-2]);break;case 54:r.commit("",o[s-2],o[s],"");break;case 55:r.commit("",o[s],o[s-2],"");break;case 56:r.commit("",o[s-4],o[s-2],o[s]);break;case 57:r.commit("",o[s-4],o[s],o[s-2]);break;case 58:r.commit("",o[s-2],o[s-4],o[s]);break;case 59:r.commit("",o[s],o[s-4],o[s-2]);break;case 60:r.commit("",o[s],o[s-2],o[s-4]);break;case 61:r.commit("",o[s-2],o[s],o[s-4]);break;case 62:r.commit(o[s],"",r.commitType.NORMAL,"");break;case 63:r.commit(o[s],"",r.commitType.NORMAL,o[s-2]);break;case 64:r.commit(o[s-2],"",r.commitType.NORMAL,o[s]);break;case 65:r.commit(o[s-2],"",o[s],"");break;case 66:r.commit(o[s],"",o[s-2],"");break;case 67:r.commit(o[s],o[s-2],r.commitType.NORMAL,"");break;case 68:r.commit(o[s-2],o[s],r.commitType.NORMAL,"");break;case 69:r.commit(o[s-4],"",o[s-2],o[s]);break;case 70:r.commit(o[s-4],"",o[s],o[s-2]);break;case 71:r.commit(o[s-2],"",o[s-4],o[s]);break;case 72:r.commit(o[s],"",o[s-4],o[s-2]);break;case 73:r.commit(o[s],"",o[s-2],o[s-4]);break;case 74:r.commit(o[s-2],"",o[s],o[s-4]);break;case 75:r.commit(o[s-4],o[s],o[s-2],"");break;case 76:r.commit(o[s-4],o[s-2],o[s],"");break;case 77:r.commit(o[s-2],o[s],o[s-4],"");break;case 78:r.commit(o[s],o[s-2],o[s-4],"");break;case 79:r.commit(o[s],o[s-4],o[s-2],"");break;case 80:r.commit(o[s-2],o[s-4],o[s],"");break;case 81:r.commit(o[s-4],o[s],r.commitType.NORMAL,o[s-2]);break;case 82:r.commit(o[s-4],o[s-2],r.commitType.NORMAL,o[s]);break;case 83:r.commit(o[s-2],o[s],r.commitType.NORMAL,o[s-4]);break;case 84:r.commit(o[s],o[s-2],r.commitType.NORMAL,o[s-4]);break;case 85:r.commit(o[s],o[s-4],r.commitType.NORMAL,o[s-2]);break;case 86:r.commit(o[s-2],o[s-4],r.commitType.NORMAL,o[s]);break;case 87:r.commit(o[s-6],o[s-4],o[s-2],o[s]);break;case 88:r.commit(o[s-6],o[s-4],o[s],o[s-2]);break;case 89:r.commit(o[s-6],o[s-2],o[s-4],o[s]);break;case 90:r.commit(o[s-6],o[s],o[s-4],o[s-2]);break;case 91:r.commit(o[s-6],o[s-2],o[s],o[s-4]);break;case 92:r.commit(o[s-6],o[s],o[s-2],o[s-4]);break;case 93:r.commit(o[s-4],o[s-6],o[s-2],o[s]);break;case 94:r.commit(o[s-4],o[s-6],o[s],o[s-2]);break;case 95:r.commit(o[s-2],o[s-6],o[s-4],o[s]);break;case 96:r.commit(o[s],o[s-6],o[s-4],o[s-2]);break;case 97:r.commit(o[s-2],o[s-6],o[s],o[s-4]);break;case 98:r.commit(o[s],o[s-6],o[s-2],o[s-4]);break;case 99:r.commit(o[s],o[s-4],o[s-2],o[s-6]);break;case 100:r.commit(o[s-2],o[s-4],o[s],o[s-6]);break;case 101:r.commit(o[s],o[s-2],o[s-4],o[s-6]);break;case 102:r.commit(o[s-2],o[s],o[s-4],o[s-6]);break;case 103:r.commit(o[s-4],o[s-2],o[s],o[s-6]);break;case 104:r.commit(o[s-4],o[s],o[s-2],o[s-6]);break;case 105:r.commit(o[s-2],o[s-4],o[s-6],o[s]);break;case 106:r.commit(o[s],o[s-4],o[s-6],o[s-2]);break;case 107:r.commit(o[s-2],o[s],o[s-6],o[s-4]);break;case 108:r.commit(o[s],o[s-2],o[s-6],o[s-4]);break;case 109:r.commit(o[s-4],o[s-2],o[s-6],o[s]);break;case 110:r.commit(o[s-4],o[s],o[s-6],o[s-2]);break;case 111:this.$="";break;case 112:this.$=o[s];break;case 113:this.$=r.commitType.NORMAL;break;case 114:this.$=r.commitType.REVERSE;break;case 115:this.$=r.commitType.HIGHLIGHT;break;case 118:r.parseDirective("%%{","open_directive");break;case 119:r.parseDirective(o[s],"type_directive");break;case 120:o[s]=o[s].trim().replace(/'/g,'"'),r.parseDirective(o[s],"arg_directive");break;case 121:r.parseDirective("}%%","close_directive","gitGraph")}},table:[{3:1,4:2,5:3,6:n,8:r,14:i,46:8,50:o,55:a},{1:[3]},{3:10,4:2,5:3,6:n,8:r,14:i,46:8,50:o,55:a},{3:11,4:2,5:3,6:n,8:r,14:i,46:8,50:o,55:a},{7:12,8:s,9:[1,13],10:[1,14],11:15,14:l},t(c,[2,124]),t(c,[2,125]),t(c,[2,126]),{47:17,51:[1,18]},{51:[2,118]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:s,11:15,14:l},{9:[1,21]},t(u,[2,10],{12:22,13:[1,23]}),t(d,[2,9]),{9:[1,25],48:24,53:h},t([9,53],[2,119]),{1:[2,3]},{8:[1,27]},{7:28,8:s,11:15,14:l},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:34,20:[1,35],22:[1,36],24:[1,37],25:[1,38],26:39,27:[1,40],29:[1,44],32:[1,43],37:[1,42],40:[1,41]},t(d,[2,8]),t(f,[2,116]),{49:45,52:[1,46]},t(f,[2,121]),{1:[2,4]},{8:[1,47]},t(u,[2,11]),{4:48,8:r,14:i,55:a},t(u,[2,13]),t(p,[2,14]),t(p,[2,15]),t(p,[2,16]),{21:[1,49]},{23:[1,50]},t(p,[2,19]),t(p,[2,20]),t(p,[2,21]),{28:51,34:g,54:m},t(p,[2,111],{41:54,33:[1,57],34:[1,59],35:[1,55],38:[1,56],42:[1,58]}),{28:60,34:g,54:m},{33:[1,61],35:[1,62]},{28:63,34:g,54:m},{48:64,53:h},{53:[2,120]},{1:[2,5]},t(u,[2,12]),t(p,[2,17]),t(p,[2,18]),t(p,[2,22]),t(v,[2,122]),t(v,[2,123]),t(p,[2,46]),{34:[1,65]},{39:66,43:A,44:b,45:y},{34:[1,70]},{34:[1,71]},t(p,[2,112]),t(p,[2,30],{33:[1,72],35:[1,74],38:[1,73]}),{34:[1,75]},{34:[1,76],36:[1,77]},t(p,[2,23],{30:[1,78]}),t(f,[2,117]),t(p,[2,47],{33:[1,80],38:[1,79],42:[1,81]}),t(p,[2,48],{33:[1,83],35:[1,82],42:[1,84]}),t(w,[2,113]),t(w,[2,114]),t(w,[2,115]),t(p,[2,51],{35:[1,85],38:[1,86],42:[1,87]}),t(p,[2,62],{33:[1,90],35:[1,88],38:[1,89]}),{34:[1,91]},{39:92,43:A,44:b,45:y},{34:[1,93]},t(p,[2,25],{35:[1,94]}),{33:[1,95]},{33:[1,96]},{31:[1,97]},{39:98,43:A,44:b,45:y},{34:[1,99]},{34:[1,100]},{34:[1,101]},{34:[1,102]},{34:[1,103]},{34:[1,104]},{39:105,43:A,44:b,45:y},{34:[1,106]},{34:[1,107]},{39:108,43:A,44:b,45:y},{34:[1,109]},t(p,[2,31],{35:[1,111],38:[1,110]}),t(p,[2,32],{33:[1,113],35:[1,112]}),t(p,[2,33],{33:[1,114],38:[1,115]}),{34:[1,116],36:[1,117]},{34:[1,118]},{34:[1,119]},t(p,[2,24]),t(p,[2,49],{33:[1,120],42:[1,121]}),t(p,[2,53],{38:[1,122],42:[1,123]}),t(p,[2,63],{33:[1,125],38:[1,124]}),t(p,[2,50],{33:[1,126],42:[1,127]}),t(p,[2,55],{35:[1,128],42:[1,129]}),t(p,[2,66],{33:[1,131],35:[1,130]}),t(p,[2,52],{38:[1,132],42:[1,133]}),t(p,[2,54],{35:[1,134],42:[1,135]}),t(p,[2,67],{35:[1,137],38:[1,136]}),t(p,[2,64],{33:[1,139],38:[1,138]}),t(p,[2,65],{33:[1,141],35:[1,140]}),t(p,[2,68],{35:[1,143],38:[1,142]}),{39:144,43:A,44:b,45:y},{34:[1,145]},{34:[1,146]},{34:[1,147]},{34:[1,148]},{39:149,43:A,44:b,45:y},t(p,[2,26]),t(p,[2,27]),t(p,[2,28]),t(p,[2,29]),{34:[1,150]},{34:[1,151]},{39:152,43:A,44:b,45:y},{34:[1,153]},{39:154,43:A,44:b,45:y},{34:[1,155]},{34:[1,156]},{34:[1,157]},{34:[1,158]},{34:[1,159]},{34:[1,160]},{34:[1,161]},{39:162,43:A,44:b,45:y},{34:[1,163]},{34:[1,164]},{34:[1,165]},{39:166,43:A,44:b,45:y},{34:[1,167]},{39:168,43:A,44:b,45:y},{34:[1,169]},{34:[1,170]},{34:[1,171]},{39:172,43:A,44:b,45:y},{34:[1,173]},t(p,[2,37],{35:[1,174]}),t(p,[2,38],{38:[1,175]}),t(p,[2,36],{33:[1,176]}),t(p,[2,39],{35:[1,177]}),t(p,[2,34],{38:[1,178]}),t(p,[2,35],{33:[1,179]}),t(p,[2,60],{42:[1,180]}),t(p,[2,73],{33:[1,181]}),t(p,[2,61],{42:[1,182]}),t(p,[2,84],{38:[1,183]}),t(p,[2,74],{33:[1,184]}),t(p,[2,83],{38:[1,185]}),t(p,[2,59],{42:[1,186]}),t(p,[2,72],{33:[1,187]}),t(p,[2,58],{42:[1,188]}),t(p,[2,78],{35:[1,189]}),t(p,[2,71],{33:[1,190]}),t(p,[2,77],{35:[1,191]}),t(p,[2,57],{42:[1,192]}),t(p,[2,85],{38:[1,193]}),t(p,[2,56],{42:[1,194]}),t(p,[2,79],{35:[1,195]}),t(p,[2,80],{35:[1,196]}),t(p,[2,86],{38:[1,197]}),t(p,[2,70],{33:[1,198]}),t(p,[2,81],{38:[1,199]}),t(p,[2,69],{33:[1,200]}),t(p,[2,75],{35:[1,201]}),t(p,[2,76],{35:[1,202]}),t(p,[2,82],{38:[1,203]}),{34:[1,204]},{39:205,43:A,44:b,45:y},{34:[1,206]},{34:[1,207]},{39:208,43:A,44:b,45:y},{34:[1,209]},{34:[1,210]},{34:[1,211]},{34:[1,212]},{39:213,43:A,44:b,45:y},{34:[1,214]},{39:215,43:A,44:b,45:y},{34:[1,216]},{34:[1,217]},{34:[1,218]},{34:[1,219]},{34:[1,220]},{34:[1,221]},{34:[1,222]},{39:223,43:A,44:b,45:y},{34:[1,224]},{34:[1,225]},{34:[1,226]},{39:227,43:A,44:b,45:y},{34:[1,228]},{39:229,43:A,44:b,45:y},{34:[1,230]},{34:[1,231]},{34:[1,232]},{39:233,43:A,44:b,45:y},t(p,[2,40]),t(p,[2,42]),t(p,[2,41]),t(p,[2,43]),t(p,[2,45]),t(p,[2,44]),t(p,[2,101]),t(p,[2,102]),t(p,[2,99]),t(p,[2,100]),t(p,[2,104]),t(p,[2,103]),t(p,[2,108]),t(p,[2,107]),t(p,[2,106]),t(p,[2,105]),t(p,[2,110]),t(p,[2,109]),t(p,[2,98]),t(p,[2,97]),t(p,[2,96]),t(p,[2,95]),t(p,[2,93]),t(p,[2,94]),t(p,[2,92]),t(p,[2,91]),t(p,[2,90]),t(p,[2,89]),t(p,[2,87]),t(p,[2,88])],defaultActions:{9:[2,118],10:[2,1],11:[2,2],19:[2,3],27:[2,4],46:[2,120],47:[2,5]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),d=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);d.setInput(e,h.yy),h.yy.lexer=d,h.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var p=d.yylloc;o.push(p);var g=d.options&&d.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||d.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,A,b,y,w,_,x,E,S={};;){if(A=n[n.length-1],this.defaultActions[A]?b=this.defaultActions[A]:(null==v&&(v=m()),b=a[A]&&a[A][v]),void 0===b||!b.length||!b[0]){var C="";for(w in E=[],a[A])this.terminals_[w]&&w>2&&E.push("'"+this.terminals_[w]+"'");C=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:p,expected:E})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(b[0]){case 1:n.push(v),i.push(d.yytext),o.push(d.yylloc),n.push(b[1]),v=null,c=d.yyleng,s=d.yytext,l=d.yylineno,p=d.yylloc;break;case 2:if(_=this.productions_[b[1]][1],S.$=i[i.length-_],S._$={first_line:o[o.length-(_||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(_||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(_||1)].range[0],o[o.length-1].range[1]]),void 0!==(y=this.performAction.apply(S,[s,c,l,h.yy,b[1],i,o].concat(u))))return y;_&&(n=n.slice(0,-1*_*2),i=i.slice(0,-1*_),o=o.slice(0,-1*_)),n.push(this.productions_[b[1]][0]),i.push(S.$),o.push(S._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},x=(e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),50;case 1:return this.begin("type_directive"),51;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),53;case 4:return 52;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 34:case 38:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:case 14:break;case 15:return 6;case 16:return 40;case 17:return 33;case 18:return 38;case 19:return 42;case 20:return 43;case 21:return 44;case 22:return 45;case 23:return 35;case 24:return 29;case 25:return 30;case 26:return 37;case 27:return 32;case 28:return 27;case 29:case 30:return 10;case 31:return 9;case 32:return"CARET";case 33:this.begin("options");break;case 35:return 13;case 36:return 36;case 37:this.begin("string");break;case 39:return 34;case 40:return 31;case 41:return 54;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[34,35],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,36,37,40,41,42,43],inclusive:!0}}},e);function E(){this.yy={}}return _.lexer=x,E.prototype=_,_.Parser=E,new E}();fhe.parser=fhe;const phe=fhe,ghe=e=>null!==e.match(/^\s*gitGraph/);let mhe=bde().gitGraph.mainBranchName,vhe=bde().gitGraph.mainBranchOrder,Ahe={},bhe=null,yhe={};yhe[mhe]={name:mhe,order:vhe};let whe={};whe[mhe]=bhe;let _he=mhe,xhe="LR",Ehe=0;function She(){return Xue({length:7})}let Che={};const The=function(e){if(e=Jle.sanitizeText(e,bde()),void 0===whe[e]){let t=new Error('Trying to checkout branch which is not yet created. (Help try using "branch '+e+'")');throw t.hash={text:"checkout "+e,token:"checkout "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"branch '+e+'"']},t}{_he=e;const t=whe[_he];bhe=Ahe[t]}};function khe(e,t,n){const r=e.indexOf(t);-1===r?e.push(n):e.splice(r,1,n)}function Ohe(e){const t=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]);let n="";e.forEach(function(e){n+=e===t?"\t*":"\t|"});const r=[n,t.id,t.seq];for(let i in whe)whe[i]===t.id&&r.push(i);if(Hle.debug(r.join(" ")),t.parents&&2==t.parents.length){const n=Ahe[t.parents[0]];khe(e,t,n),e.push(Ahe[t.parents[1]])}else{if(0==t.parents.length)return;{const n=Ahe[t.parents];khe(e,t,n)}}e=function(e,t){const n=Object.create(null);return e.reduce((e,r)=>{const i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}(e,e=>e.id),Ohe(e)}const Mhe=function(){const e=Object.keys(Ahe).map(function(e){return Ahe[e]});return e.forEach(function(e){Hle.debug(e.id)}),e.sort((e,t)=>e.seq-t.seq),e},Ihe={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Dhe={parseDirective:function(e,t,n){kwe.parseDirective(this,e,t,n)},getConfig:()=>bde().gitGraph,setDirection:function(e){xhe=e},setOptions:function(e){Hle.debug("options str",e),e=(e=e&&e.trim())||"{}";try{Che=JSON.parse(e)}catch(e){Hle.error("error while parsing gitGraph options",e.message)}},getOptions:function(){return Che},commit:function(e,t,n,r){Hle.debug("Entering commit:",e,t,n,r),t=Jle.sanitizeText(t,bde()),e=Jle.sanitizeText(e,bde()),r=Jle.sanitizeText(r,bde());const i={id:t||Ehe+"-"+She(),message:e,seq:Ehe++,type:n||Ihe.NORMAL,tag:r||"",parents:null==bhe?[]:[bhe.id],branch:_he};bhe=i,Ahe[i.id]=i,whe[_he]=i.id,Hle.debug("in pushCommit "+i.id)},branch:function(e,t){if(e=Jle.sanitizeText(e,bde()),void 0!==whe[e]){let t=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+e+'")');throw t.hash={text:"branch "+e,token:"branch "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+e+'"']},t}whe[e]=null!=bhe?bhe.id:null,yhe[e]={name:e,order:t?parseInt(t,10):null},The(e),Hle.debug("in createBranch")},merge:function(e,t,n,r){e=Jle.sanitizeText(e,bde()),t=Jle.sanitizeText(t,bde());const i=Ahe[whe[_he]],o=Ahe[whe[e]];if(_he===e){let t=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw t.hash={text:"merge "+e,token:"merge "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},t}if(void 0===i||!i){let t=new Error('Incorrect usage of "merge". Current branch ('+_he+")has no commits");throw t.hash={text:"merge "+e,token:"merge "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["commit"]},t}if(void 0===whe[e]){let t=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw t.hash={text:"merge "+e,token:"merge "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch "+e]},t}if(void 0===o||!o){let t=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw t.hash={text:"merge "+e,token:"merge "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"commit"']},t}if(i===o){let t=new Error('Incorrect usage of "merge". Both branches have same head');throw t.hash={text:"merge "+e,token:"merge "+e,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},t}if(t&&void 0!==Ahe[t]){let i=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom Id");throw i.hash={text:"merge "+e+t+n+r,token:"merge "+e+t+n+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["merge "+e+" "+t+"_UNIQUE "+n+" "+r]},i}const a={id:t||Ehe+"-"+She(),message:"merged branch "+e+" into "+_he,seq:Ehe++,parents:[null==bhe?null:bhe.id,whe[e]],branch:_he,type:Ihe.MERGE,customType:n,customId:!!t,tag:r||""};bhe=a,Ahe[a.id]=a,whe[_he]=a.id,Hle.debug(whe),Hle.debug("in mergeBranch")},cherryPick:function(e,t,n){if(Hle.debug("Entering cherryPick:",e,t,n),e=Jle.sanitizeText(e,bde()),t=Jle.sanitizeText(t,bde()),n=Jle.sanitizeText(n,bde()),!e||void 0===Ahe[e]){let n=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw n.hash={text:"cherryPick "+e+" "+t,token:"cherryPick "+e+" "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}let r=Ahe[e],i=r.branch;if(r.type===Ihe.MERGE){let n=new Error('Incorrect usage of "cherryPick". Source commit should not be a merge commit');throw n.hash={text:"cherryPick "+e+" "+t,token:"cherryPick "+e+" "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}if(!t||void 0===Ahe[t]){if(i===_he){let n=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw n.hash={text:"cherryPick "+e+" "+t,token:"cherryPick "+e+" "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}const o=Ahe[whe[_he]];if(void 0===o||!o){let n=new Error('Incorrect usage of "cherry-pick". Current branch ('+_he+")has no commits");throw n.hash={text:"cherryPick "+e+" "+t,token:"cherryPick "+e+" "+t,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["cherry-pick abc"]},n}const a={id:Ehe+"-"+She(),message:"cherry-picked "+r+" into "+_he,seq:Ehe++,parents:[null==bhe?null:bhe.id,r.id],branch:_he,type:Ihe.CHERRY_PICK,tag:n??"cherry-pick:"+r.id};bhe=a,Ahe[a.id]=a,whe[_he]=a.id,Hle.debug(whe),Hle.debug("in cherryPick")}},checkout:The,prettyPrint:function(){Hle.debug(Ahe),Ohe([Mhe()[0]])},clear:function(){Ahe={},bhe=null;let e=bde().gitGraph.mainBranchName,t=bde().gitGraph.mainBranchOrder;whe={},whe[e]=null,yhe={},yhe[e]={name:e,order:t},_he=e,Ehe=0,Gde()},getBranchesAsObjArray:function(){const e=Object.values(yhe).map((e,t)=>null!==e.order?e:{...e,order:parseFloat(`0.${t}`,10)}).sort((e,t)=>e.order-t.order).map(({name:e})=>({name:e}));return e},getBranches:function(){return whe},getCommits:function(){return Ahe},getCommitsArray:Mhe,getCurrentBranch:function(){return _he},getDirection:function(){return xhe},getHead:function(){return bhe},setAccTitle:Vde,getAccTitle:Kde,getAccDescription:qde,setAccDescription:Yde,setDiagramTitle:Xde,getDiagramTitle:Jde,commitType:Ihe};let Nhe={};const Rhe=0,Lhe=1,Bhe=2,Phe=3,Fhe=4;let $he={},jhe={},Hhe=[],Uhe=0;const Qhe=(e,t,n)=>{const r=ahe().gitGraph,i=e.append("g").attr("class","commit-bullets"),o=e.append("g").attr("class","commit-labels");let a=0;Object.keys(t).sort((e,n)=>t[e].seq-t[n].seq).forEach(e=>{const s=t[e],l=$he[s.branch].pos,c=a+10;if(n){let e,t=void 0!==s.customType&&""!==s.customType?s.customType:s.type;switch(t){case Rhe:e="commit-normal";break;case Lhe:e="commit-reverse";break;case Bhe:e="commit-highlight";break;case Phe:e="commit-merge";break;case Fhe:e="commit-cherry-pick";break;default:e="commit-normal"}if(t===Bhe){const t=i.append("rect");t.attr("x",c-10),t.attr("y",l-10),t.attr("height",20),t.attr("width",20),t.attr("class",`commit ${s.id} commit-highlight${$he[s.branch].index%8} ${e}-outer`),i.append("rect").attr("x",c-6).attr("y",l-6).attr("height",12).attr("width",12).attr("class",`commit ${s.id} commit${$he[s.branch].index%8} ${e}-inner`)}else if(t===Fhe)i.append("circle").attr("cx",c).attr("cy",l).attr("r",10).attr("class",`commit ${s.id} ${e}`),i.append("circle").attr("cx",c-3).attr("cy",l+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${s.id} ${e}`),i.append("circle").attr("cx",c+3).attr("cy",l+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${s.id} ${e}`),i.append("line").attr("x1",c+3).attr("y1",l+1).attr("x2",c).attr("y2",l-5).attr("stroke","#fff").attr("class",`commit ${s.id} ${e}`),i.append("line").attr("x1",c-3).attr("y1",l+1).attr("x2",c).attr("y2",l-5).attr("stroke","#fff").attr("class",`commit ${s.id} ${e}`);else{const n=i.append("circle");if(n.attr("cx",c),n.attr("cy",l),n.attr("r",s.type===Phe?9:10),n.attr("class",`commit ${s.id} commit${$he[s.branch].index%8}`),t===Phe){const t=i.append("circle");t.attr("cx",c),t.attr("cy",l),t.attr("r",6),t.attr("class",`commit ${e} ${s.id} commit${$he[s.branch].index%8}`)}t===Lhe&&i.append("path").attr("d",`M ${c-5},${l-5}L${c+5},${l+5}M${c-5},${l+5}L${c+5},${l-5}`).attr("class",`commit ${e} ${s.id} commit${$he[s.branch].index%8}`)}}if(jhe[s.id]={x:a+10,y:l},n){const e=4,t=2;if(s.type!==Fhe&&(s.customId&&s.type===Phe||s.type!==Phe)&&r.showCommitLabel){const e=o.append("g"),n=e.insert("rect").attr("class","commit-label-bkg"),i=e.append("text").attr("x",a).attr("y",l+25).attr("class","commit-label").text(s.id);let c=i.node().getBBox();if(n.attr("x",a+10-c.width/2-t).attr("y",l+13.5).attr("width",c.width+2*t).attr("height",c.height+2*t),i.attr("x",a+10-c.width/2),r.rotateCommitLabel){let t=-7.5-(c.width+10)/25*9.5,n=10+c.width/25*8.5;e.attr("transform","translate("+t+", "+n+") rotate(-45, "+a+", "+l+")")}}if(s.tag){const n=o.insert("polygon"),r=o.append("circle"),i=o.append("text").attr("y",l-16).attr("class","tag-label").text(s.tag);let c=i.node().getBBox();i.attr("x",a+10-c.width/2);const u=c.height/2,d=l-19.2;n.attr("class","tag-label-bkg").attr("points",`\n          ${a-c.width/2-e/2},${d+t}\n          ${a-c.width/2-e/2},${d-t}\n          ${a+10-c.width/2-e},${d-u-t}\n          ${a+10+c.width/2+e},${d-u-t}\n          ${a+10+c.width/2+e},${d+u+t}\n          ${a+10-c.width/2-e},${d+u+t}`),r.attr("cx",a-c.width/2+e/2).attr("cy",d).attr("r",1.5).attr("class","tag-hole")}}a+=50,a>Uhe&&(Uhe=a)})},zhe=(e,t,n=0)=>{const r=e+Math.abs(e-t)/2;if(n>5)return r;if(Hhe.every(e=>Math.abs(e-r)>=10))return Hhe.push(r),r;const i=Math.abs(e-t);return zhe(e,t-i/5,n+1)},Whe=(e,t,n,r)=>{const i=jhe[t.id],o=jhe[n.id],a=((e,t,n)=>{const r=Object.keys(n).filter(r=>n[r].branch===t.branch&&n[r].seq>e.seq&&n[r].seq<t.seq);return r.length>0})(t,n,r);let s,l="",c="",u=0,d=0,h=$he[n.branch].index;if(a){l="A 10 10, 0, 0, 0,",c="A 10 10, 0, 0, 1,",u=10,d=10,h=$he[n.branch].index;const e=i.y<o.y?zhe(i.y,o.y):zhe(o.y,i.y);s=i.y<o.y?`M ${i.x} ${i.y} L ${i.x} ${e-u} ${l} ${i.x+d} ${e} L ${o.x-u} ${e} ${c} ${o.x} ${e+d} L ${o.x} ${o.y}`:`M ${i.x} ${i.y} L ${i.x} ${e+u} ${c} ${i.x+d} ${e} L ${o.x-u} ${e} ${l} ${o.x} ${e-d} L ${o.x} ${o.y}`}else i.y<o.y&&(l="A 20 20, 0, 0, 0,",u=20,d=20,h=$he[n.branch].index,s=`M ${i.x} ${i.y} L ${i.x} ${o.y-u} ${l} ${i.x+d} ${o.y} L ${o.x} ${o.y}`),i.y>o.y&&(l="A 20 20, 0, 0, 0,",u=20,d=20,h=$he[t.branch].index,s=`M ${i.x} ${i.y} L ${o.x-u} ${i.y} ${l} ${o.x} ${i.y-d} L ${o.x} ${o.y}`),i.y===o.y&&(h=$he[t.branch].index,s=`M ${i.x} ${i.y} L ${i.x} ${o.y-u} ${l} ${i.x+d} ${o.y} L ${o.x} ${o.y}`);e.append("path").attr("d",s).attr("class","arrow arrow"+h%8)},Ghe=(e,t)=>{const n=ahe().gitGraph,r=e.append("g");t.forEach((e,t)=>{const i=t%8,o=$he[e.name].pos,a=r.append("line");a.attr("x1",0),a.attr("y1",o),a.attr("x2",Uhe),a.attr("y2",o),a.attr("class","branch branch"+i),Hhe.push(o);const s=(e=>{const t=document.createElementNS("http://www.w3.org/2000/svg","text");let n=[];n="string"==typeof e?e.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(e)?e:[];for(const r of n){const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),e.setAttribute("class","row"),e.textContent=r.trim(),t.appendChild(e)}return t})(e.name),l=r.insert("rect"),c=r.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+i);c.node().appendChild(s);let u=s.getBBox();l.attr("class","branchLabelBkg label"+i).attr("rx",4).attr("ry",4).attr("x",-u.width-4-(!0===n.rotateCommitLabel?30:0)).attr("y",-u.height/2+8).attr("width",u.width+18).attr("height",u.height+4),c.attr("transform","translate("+(-u.width-14-(!0===n.rotateCommitLabel?30:0))+", "+(o-u.height/2-1)+")"),l.attr("transform","translate(-19, "+(o-u.height/2)+")")})},Vhe={draw:function(e,t,n,r){$he={},jhe={},Nhe={},Uhe=0,Hhe=[];const i=ahe(),o=i.gitGraph;Hle.debug("in gitgraph renderer",e+"\n","id:",t,n),Nhe=r.db.getCommits();const a=r.db.getBranchesAsObjArray();let s=0;a.forEach((e,t)=>{$he[e.name]={pos:s,index:t},s+=50+(o.rotateCommitLabel?40:0)});const l=b3(`[id="${t}"]`);Qhe(l,Nhe,!1),o.showBranches&&Ghe(l,a),((e,t)=>{const n=e.append("g").attr("class","commit-arrows");Object.keys(t).forEach(e=>{const r=t[e];r.parents&&r.parents.length>0&&r.parents.forEach(e=>{Whe(n,t[e],r,t)})})})(l,Nhe),Qhe(l,Nhe,!0),cde.insertTitle(l,"gitTitleText",o.titleTopMargin,r.db.getDiagramTitle()),lhe(void 0,l,o.diagramPadding,o.useMaxWidth??i.useMaxWidth)}},Khe=e=>`\n  .commit-id,\n  .commit-msg,\n  .branch-label {\n    fill: lightgrey;\n    color: lightgrey;\n    font-family: 'trebuchet ms', verdana, arial, sans-serif;\n    font-family: var(--mermaid-font-family);\n  }\n  ${[0,1,2,3,4,5,6,7].map(t=>`\n        .branch-label${t} { fill: ${e["gitBranchLabel"+t]}; }\n        .commit${t} { stroke: ${e["git"+t]}; fill: ${e["git"+t]}; }\n        .commit-highlight${t} { stroke: ${e["gitInv"+t]}; fill: ${e["gitInv"+t]}; }\n        .label${t}  { fill: ${e["git"+t]}; }\n        .arrow${t} { stroke: ${e["git"+t]}; }\n        `).join("\n")}\n\n  .branch {\n    stroke-width: 1;\n    stroke: ${e.lineColor};\n    stroke-dasharray: 2;\n  }\n  .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelColor};}\n  .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${e.commitLabelBackground}; opacity: 0.5; }\n  .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}\n  .tag-label-bkg { fill: ${e.tagLabelBackground}; stroke: ${e.tagLabelBorder}; }\n  .tag-hole { fill: ${e.textColor}; }\n\n  .commit-merge {\n    stroke: ${e.primaryColor};\n    fill: ${e.primaryColor};\n  }\n  .commit-reverse {\n    stroke: ${e.primaryColor};\n    fill: ${e.primaryColor};\n    stroke-width: 3;\n  }\n  .commit-highlight-outer {\n  }\n  .commit-highlight-inner {\n    stroke: ${e.primaryColor};\n    fill: ${e.primaryColor};\n  }\n\n  .arrow { stroke-width: 8; stroke-linecap: round; fill: none}\n  .gitTitleText {\n    text-anchor: middle;\n    font-size: 18px;\n    fill: ${e.textColor};\n  }\n  }\n`;var Yhe=function(){var e,t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[1,6],r=[1,7],i=[1,8],o=[1,9],a=[1,16],s=[1,11],l=[1,12],u=[1,13],d=[1,14],h=[1,15],f=[1,27],p=[1,33],g=[1,34],m=[1,35],v=[1,36],A=[1,37],b=[1,72],y=[1,73],w=[1,74],_=[1,75],x=[1,76],E=[1,77],S=[1,78],C=[1,38],T=[1,39],k=[1,40],O=[1,41],M=[1,42],I=[1,43],D=[1,44],N=[1,45],R=[1,46],L=[1,47],B=[1,48],P=[1,49],F=[1,50],$=[1,51],j=[1,52],H=[1,53],U=[1,54],Q=[1,55],z=[1,56],W=[1,57],G=[1,59],V=[1,60],K=[1,61],Y=[1,62],q=[1,63],X=[1,64],J=[1,65],Z=[1,66],ee=[1,67],te=[1,68],ne=[1,69],re=[24,52],ie=[24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],oe=[15,24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],ae=[1,94],se=[1,95],le=[1,96],ce=[1,97],ue=[15,24,52],de=[7,8,9,10,18,22,25,26,27,28],he=[15,24,43,52],fe=[15,24,43,52,86,87,89,90],pe=[15,43],ge=[44,46,47,48,49,50,51,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],me={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boundaryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYSTEM_EXT_DB",61:"SYSTEM_EXT_QUEUE",62:"CONTAINER",63:"CONTAINER_DB",64:"CONTAINER_QUEUE",65:"CONTAINER_EXT",66:"CONTAINER_EXT_DB",67:"CONTAINER_EXT_QUEUE",68:"COMPONENT",69:"COMPONENT_DB",70:"COMPONENT_QUEUE",71:"COMPONENT_EXT",72:"COMPONENT_EXT_DB",73:"COMPONENT_EXT_QUEUE",74:"REL",75:"BIREL",76:"REL_U",77:"REL_D",78:"REL_L",79:"REL_R",80:"REL_B",81:"REL_INDEX",82:"UPDATE_EL_STYLE",83:"UPDATE_REL_STYLE",84:"UPDATE_LAYOUT_CONFIG",86:"STR",87:"STR_KEY",88:"STR_VALUE",89:"ATTRIBUTE",90:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[11,4],[11,4],[11,4],[11,4],[23,1],[23,1],[23,2],[29,1],[29,2],[29,3],[31,1],[31,1],[31,2],[31,2],[31,1],[39,3],[40,3],[40,3],[40,4],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[41,1],[30,1],[30,2],[30,3],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,1],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[45,1],[45,2],[85,1],[85,2],[85,1],[85,1]],performAction:function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 4:r.setDirection("TB");break;case 5:r.setDirection("BT");break;case 6:r.setDirection("RL");break;case 7:r.setDirection("LR");break;case 11:r.parseDirective("%%{","open_directive");break;case 12:break;case 13:o[s]=o[s].trim().replace(/'/g,'"'),r.parseDirective(o[s],"arg_directive");break;case 14:r.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case 18:case 19:r.setC4Type(o[s-3]);break;case 26:r.setTitle(o[s].substring(6)),this.$=o[s].substring(6);break;case 27:r.setAccDescription(o[s].substring(15)),this.$=o[s].substring(15);break;case 28:this.$=o[s].trim(),r.setTitle(this.$);break;case 29:case 30:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 35:case 36:o[s].splice(2,0,"ENTERPRISE"),r.addPersonOrSystemBoundary(...o[s]),this.$=o[s];break;case 37:r.addPersonOrSystemBoundary(...o[s]),this.$=o[s];break;case 38:o[s].splice(2,0,"CONTAINER"),r.addContainerBoundary(...o[s]),this.$=o[s];break;case 39:r.addDeploymentNode("node",...o[s]),this.$=o[s];break;case 40:r.addDeploymentNode("nodeL",...o[s]),this.$=o[s];break;case 41:r.addDeploymentNode("nodeR",...o[s]),this.$=o[s];break;case 42:r.popBoundaryParseStack();break;case 46:r.addPersonOrSystem("person",...o[s]),this.$=o[s];break;case 47:r.addPersonOrSystem("external_person",...o[s]),this.$=o[s];break;case 48:r.addPersonOrSystem("system",...o[s]),this.$=o[s];break;case 49:r.addPersonOrSystem("system_db",...o[s]),this.$=o[s];break;case 50:r.addPersonOrSystem("system_queue",...o[s]),this.$=o[s];break;case 51:r.addPersonOrSystem("external_system",...o[s]),this.$=o[s];break;case 52:r.addPersonOrSystem("external_system_db",...o[s]),this.$=o[s];break;case 53:r.addPersonOrSystem("external_system_queue",...o[s]),this.$=o[s];break;case 54:r.addContainer("container",...o[s]),this.$=o[s];break;case 55:r.addContainer("container_db",...o[s]),this.$=o[s];break;case 56:r.addContainer("container_queue",...o[s]),this.$=o[s];break;case 57:r.addContainer("external_container",...o[s]),this.$=o[s];break;case 58:r.addContainer("external_container_db",...o[s]),this.$=o[s];break;case 59:r.addContainer("external_container_queue",...o[s]),this.$=o[s];break;case 60:r.addComponent("component",...o[s]),this.$=o[s];break;case 61:r.addComponent("component_db",...o[s]),this.$=o[s];break;case 62:r.addComponent("component_queue",...o[s]),this.$=o[s];break;case 63:r.addComponent("external_component",...o[s]),this.$=o[s];break;case 64:r.addComponent("external_component_db",...o[s]),this.$=o[s];break;case 65:r.addComponent("external_component_queue",...o[s]),this.$=o[s];break;case 67:r.addRel("rel",...o[s]),this.$=o[s];break;case 68:r.addRel("birel",...o[s]),this.$=o[s];break;case 69:r.addRel("rel_u",...o[s]),this.$=o[s];break;case 70:r.addRel("rel_d",...o[s]),this.$=o[s];break;case 71:r.addRel("rel_l",...o[s]),this.$=o[s];break;case 72:r.addRel("rel_r",...o[s]),this.$=o[s];break;case 73:r.addRel("rel_b",...o[s]),this.$=o[s];break;case 74:o[s].splice(0,1),r.addRel("rel",...o[s]),this.$=o[s];break;case 75:r.updateElStyle("update_el_style",...o[s]),this.$=o[s];break;case 76:r.updateRelStyle("update_rel_style",...o[s]),this.$=o[s];break;case 77:r.updateLayoutConfig("update_layout_config",...o[s]),this.$=o[s];break;case 78:this.$=[o[s]];break;case 79:o[s].unshift(o[s-1]),this.$=o[s];break;case 80:case 82:this.$=o[s].trim();break;case 81:let e={};e[o[s-1].trim()]=o[s].trim(),this.$=e;break;case 83:this.$=""}},table:[{3:1,4:2,5:3,6:4,7:n,8:r,9:i,10:o,11:5,12:10,18:a,22:s,25:l,26:u,27:d,28:h},{1:[3]},{1:[2,1]},{1:[2,2]},{3:17,4:2,5:3,6:4,7:n,8:r,9:i,10:o,11:5,12:10,18:a,22:s,25:l,26:u,27:d,28:h},{1:[2,8]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{1:[2,7]},{13:18,19:[1,19]},{15:[1,20]},{15:[1,21]},{15:[1,22]},{15:[1,23]},{15:[1,24]},{19:[2,11]},{1:[2,3]},{14:25,16:[1,26],21:f},t([16,21],[2,12]),{23:28,29:29,30:30,31:31,32:p,33:g,34:m,36:v,38:A,39:58,40:70,42:71,44:b,46:y,47:w,48:_,49:x,50:E,51:S,53:32,54:C,55:T,56:k,57:O,58:M,59:I,60:D,61:N,62:R,63:L,64:B,65:P,66:F,67:$,68:j,69:H,70:U,71:Q,72:z,73:W,74:G,75:V,76:K,77:Y,78:q,79:X,80:J,81:Z,82:ee,83:te,84:ne},{23:79,29:29,30:30,31:31,32:p,33:g,34:m,36:v,38:A,39:58,40:70,42:71,44:b,46:y,47:w,48:_,49:x,50:E,51:S,53:32,54:C,55:T,56:k,57:O,58:M,59:I,60:D,61:N,62:R,63:L,64:B,65:P,66:F,67:$,68:j,69:H,70:U,71:Q,72:z,73:W,74:G,75:V,76:K,77:Y,78:q,79:X,80:J,81:Z,82:ee,83:te,84:ne},{23:80,29:29,30:30,31:31,32:p,33:g,34:m,36:v,38:A,39:58,40:70,42:71,44:b,46:y,47:w,48:_,49:x,50:E,51:S,53:32,54:C,55:T,56:k,57:O,58:M,59:I,60:D,61:N,62:R,63:L,64:B,65:P,66:F,67:$,68:j,69:H,70:U,71:Q,72:z,73:W,74:G,75:V,76:K,77:Y,78:q,79:X,80:J,81:Z,82:ee,83:te,84:ne},{23:81,29:29,30:30,31:31,32:p,33:g,34:m,36:v,38:A,39:58,40:70,42:71,44:b,46:y,47:w,48:_,49:x,50:E,51:S,53:32,54:C,55:T,56:k,57:O,58:M,59:I,60:D,61:N,62:R,63:L,64:B,65:P,66:F,67:$,68:j,69:H,70:U,71:Q,72:z,73:W,74:G,75:V,76:K,77:Y,78:q,79:X,80:J,81:Z,82:ee,83:te,84:ne},{23:82,29:29,30:30,31:31,32:p,33:g,34:m,36:v,38:A,39:58,40:70,42:71,44:b,46:y,47:w,48:_,49:x,50:E,51:S,53:32,54:C,55:T,56:k,57:O,58:M,59:I,60:D,61:N,62:R,63:L,64:B,65:P,66:F,67:$,68:j,69:H,70:U,71:Q,72:z,73:W,74:G,75:V,76:K,77:Y,78:q,79:X,80:J,81:Z,82:ee,83:te,84:ne},{15:[1,83]},{17:84,20:[1,85]},{15:[2,14]},{24:[1,86]},t(re,[2,20],{53:32,39:58,40:70,42:71,30:87,44:b,46:y,47:w,48:_,49:x,50:E,51:S,54:C,55:T,56:k,57:O,58:M,59:I,60:D,61:N,62:R,63:L,64:B,65:P,66:F,67:$,68:j,69:H,70:U,71:Q,72:z,73:W,74:G,75:V,76:K,77:Y,78:q,79:X,80:J,81:Z,82:ee,83:te,84:ne}),t(re,[2,21]),t(ie,[2,23],{15:[1,88]}),t(re,[2,43],{15:[1,89]}),t(oe,[2,26]),t(oe,[2,27]),{35:[1,90]},{37:[1,91]},t(oe,[2,30]),{45:92,85:93,86:ae,87:se,89:le,90:ce},{45:98,85:93,86:ae,87:se,89:le,90:ce},{45:99,85:93,86:ae,87:se,89:le,90:ce},{45:100,85:93,86:ae,87:se,89:le,90:ce},{45:101,85:93,86:ae,87:se,89:le,90:ce},{45:102,85:93,86:ae,87:se,89:le,90:ce},{45:103,85:93,86:ae,87:se,89:le,90:ce},{45:104,85:93,86:ae,87:se,89:le,90:ce},{45:105,85:93,86:ae,87:se,89:le,90:ce},{45:106,85:93,86:ae,87:se,89:le,90:ce},{45:107,85:93,86:ae,87:se,89:le,90:ce},{45:108,85:93,86:ae,87:se,89:le,90:ce},{45:109,85:93,86:ae,87:se,89:le,90:ce},{45:110,85:93,86:ae,87:se,89:le,90:ce},{45:111,85:93,86:ae,87:se,89:le,90:ce},{45:112,85:93,86:ae,87:se,89:le,90:ce},{45:113,85:93,86:ae,87:se,89:le,90:ce},{45:114,85:93,86:ae,87:se,89:le,90:ce},{45:115,85:93,86:ae,87:se,89:le,90:ce},{45:116,85:93,86:ae,87:se,89:le,90:ce},t(ue,[2,66]),{45:117,85:93,86:ae,87:se,89:le,90:ce},{45:118,85:93,86:ae,87:se,89:le,90:ce},{45:119,85:93,86:ae,87:se,89:le,90:ce},{45:120,85:93,86:ae,87:se,89:le,90:ce},{45:121,85:93,86:ae,87:se,89:le,90:ce},{45:122,85:93,86:ae,87:se,89:le,90:ce},{45:123,85:93,86:ae,87:se,89:le,90:ce},{45:124,85:93,86:ae,87:se,89:le,90:ce},{45:125,85:93,86:ae,87:se,89:le,90:ce},{45:126,85:93,86:ae,87:se,89:le,90:ce},{45:127,85:93,86:ae,87:se,89:le,90:ce},{30:128,39:58,40:70,42:71,44:b,46:y,47:w,48:_,49:x,50:E,51:S,53:32,54:C,55:T,56:k,57:O,58:M,59:I,60:D,61:N,62:R,63:L,64:B,65:P,66:F,67:$,68:j,69:H,70:U,71:Q,72:z,73:W,74:G,75:V,76:K,77:Y,78:q,79:X,80:J,81:Z,82:ee,83:te,84:ne},{15:[1,130],43:[1,129]},{45:131,85:93,86:ae,87:se,89:le,90:ce},{45:132,85:93,86:ae,87:se,89:le,90:ce},{45:133,85:93,86:ae,87:se,89:le,90:ce},{45:134,85:93,86:ae,87:se,89:le,90:ce},{45:135,85:93,86:ae,87:se,89:le,90:ce},{45:136,85:93,86:ae,87:se,89:le,90:ce},{45:137,85:93,86:ae,87:se,89:le,90:ce},{24:[1,138]},{24:[1,139]},{24:[1,140]},{24:[1,141]},t(de,[2,9]),{14:142,21:f},{21:[2,13]},{1:[2,15]},t(re,[2,22]),t(ie,[2,24],{31:31,29:143,32:p,33:g,34:m,36:v,38:A}),t(re,[2,44],{29:29,30:30,31:31,53:32,39:58,40:70,42:71,23:144,32:p,33:g,34:m,36:v,38:A,44:b,46:y,47:w,48:_,49:x,50:E,51:S,54:C,55:T,56:k,57:O,58:M,59:I,60:D,61:N,62:R,63:L,64:B,65:P,66:F,67:$,68:j,69:H,70:U,71:Q,72:z,73:W,74:G,75:V,76:K,77:Y,78:q,79:X,80:J,81:Z,82:ee,83:te,84:ne}),t(oe,[2,28]),t(oe,[2,29]),t(ue,[2,46]),t(he,[2,78],{85:93,45:145,86:ae,87:se,89:le,90:ce}),t(fe,[2,80]),{88:[1,146]},t(fe,[2,82]),t(fe,[2,83]),t(ue,[2,47]),t(ue,[2,48]),t(ue,[2,49]),t(ue,[2,50]),t(ue,[2,51]),t(ue,[2,52]),t(ue,[2,53]),t(ue,[2,54]),t(ue,[2,55]),t(ue,[2,56]),t(ue,[2,57]),t(ue,[2,58]),t(ue,[2,59]),t(ue,[2,60]),t(ue,[2,61]),t(ue,[2,62]),t(ue,[2,63]),t(ue,[2,64]),t(ue,[2,65]),t(ue,[2,67]),t(ue,[2,68]),t(ue,[2,69]),t(ue,[2,70]),t(ue,[2,71]),t(ue,[2,72]),t(ue,[2,73]),t(ue,[2,74]),t(ue,[2,75]),t(ue,[2,76]),t(ue,[2,77]),{41:147,52:[1,148]},{15:[1,149]},{43:[1,150]},t(pe,[2,35]),t(pe,[2,36]),t(pe,[2,37]),t(pe,[2,38]),t(pe,[2,39]),t(pe,[2,40]),t(pe,[2,41]),{1:[2,16]},{1:[2,17]},{1:[2,18]},{1:[2,19]},{15:[1,151]},t(ie,[2,25]),t(re,[2,45]),t(he,[2,79]),t(fe,[2,81]),t(ue,[2,31]),t(ue,[2,42]),t(ge,[2,32]),t(ge,[2,33],{15:[1,152]}),t(de,[2,10]),t(ge,[2,34])],defaultActions:{2:[2,1],3:[2,2],5:[2,8],6:[2,4],7:[2,5],8:[2,6],9:[2,7],16:[2,11],17:[2,3],27:[2,14],85:[2,13],86:[2,15],138:[2,16],139:[2,17],140:[2,18],141:[2,19]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),d=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);d.setInput(e,h.yy),h.yy.lexer=d,h.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var p=d.yylloc;o.push(p);var g=d.options&&d.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||d.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,A,b,y,w,_,x,E,S={};;){if(A=n[n.length-1],this.defaultActions[A]?b=this.defaultActions[A]:(null==v&&(v=m()),b=a[A]&&a[A][v]),void 0===b||!b.length||!b[0]){var C="";for(w in E=[],a[A])this.terminals_[w]&&w>2&&E.push("'"+this.terminals_[w]+"'");C=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:p,expected:E})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(b[0]){case 1:n.push(v),i.push(d.yytext),o.push(d.yylloc),n.push(b[1]),v=null,c=d.yyleng,s=d.yytext,l=d.yylineno,p=d.yylloc;break;case 2:if(_=this.productions_[b[1]][1],S.$=i[i.length-_],S._$={first_line:o[o.length-(_||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(_||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(_||1)].range[0],o[o.length-1].range[1]]),void 0!==(y=this.performAction.apply(S,[s,c,l,h.yy,b[1],i,o].concat(u))))return y;_&&(n=n.slice(0,-1*_*2),i=i.slice(0,-1*_),o=o.slice(0,-1*_)),n.push(this.productions_[b[1]][0]),i.push(S.$),o.push(S._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},ve=(e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:case 78:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:case 21:case 75:break;case 19:c;break;case 20:return 15;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),55;case 28:return this.begin("person"),54;case 29:return this.begin("system_ext_queue"),61;case 30:return this.begin("system_ext_db"),60;case 31:return this.begin("system_ext"),59;case 32:return this.begin("system_queue"),58;case 33:return this.begin("system_db"),57;case 34:return this.begin("system"),56;case 35:return this.begin("boundary"),47;case 36:return this.begin("enterprise_boundary"),44;case 37:return this.begin("system_boundary"),46;case 38:return this.begin("container_ext_queue"),67;case 39:return this.begin("container_ext_db"),66;case 40:return this.begin("container_ext"),65;case 41:return this.begin("container_queue"),64;case 42:return this.begin("container_db"),63;case 43:return this.begin("container"),62;case 44:return this.begin("container_boundary"),48;case 45:return this.begin("component_ext_queue"),73;case 46:return this.begin("component_ext_db"),72;case 47:return this.begin("component_ext"),71;case 48:return this.begin("component_queue"),70;case 49:return this.begin("component_db"),69;case 50:return this.begin("component"),68;case 51:case 52:return this.begin("node"),49;case 53:return this.begin("node_l"),50;case 54:return this.begin("node_r"),51;case 55:return this.begin("rel"),74;case 56:return this.begin("birel"),75;case 57:case 58:return this.begin("rel_u"),76;case 59:case 60:return this.begin("rel_d"),77;case 61:case 62:return this.begin("rel_l"),78;case 63:case 64:return this.begin("rel_r"),79;case 65:return this.begin("rel_b"),80;case 66:return this.begin("rel_index"),81;case 67:return this.begin("update_el_style"),82;case 68:return this.begin("update_rel_style"),83;case 69:return this.begin("update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:this.begin("attribute");break;case 73:case 84:this.popState(),this.popState();break;case 74:case 76:return 90;case 77:this.begin("string");break;case 79:case 85:return"STR";case 80:this.begin("string_kv");break;case 81:return this.begin("string_kv_key"),"STR_KEY";case 82:this.popState(),this.begin("string_kv_value");break;case 83:return"STR_VALUE";case 86:return"LBRACE";case 87:return"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},string_kv_value:{rules:[83,84],inclusive:!1},string_kv_key:{rules:[82],inclusive:!1},string_kv:{rules:[81],inclusive:!1},string:{rules:[78,79],inclusive:!1},attribute:{rules:[73,74,75,76,77,80,85],inclusive:!1},update_layout_config:{rules:[70,71,72,73],inclusive:!1},update_rel_style:{rules:[70,71,72,73],inclusive:!1},update_el_style:{rules:[70,71,72,73],inclusive:!1},rel_b:{rules:[70,71,72,73],inclusive:!1},rel_r:{rules:[70,71,72,73],inclusive:!1},rel_l:{rules:[70,71,72,73],inclusive:!1},rel_d:{rules:[70,71,72,73],inclusive:!1},rel_u:{rules:[70,71,72,73],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[70,71,72,73],inclusive:!1},node_r:{rules:[70,71,72,73],inclusive:!1},node_l:{rules:[70,71,72,73],inclusive:!1},node:{rules:[70,71,72,73],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[70,71,72,73],inclusive:!1},component_ext_queue:{rules:[],inclusive:!1},component_ext_db:{rules:[70,71,72,73],inclusive:!1},component_ext:{rules:[70,71,72,73],inclusive:!1},component_queue:{rules:[70,71,72,73],inclusive:!1},component_db:{rules:[70,71,72,73],inclusive:!1},component:{rules:[70,71,72,73],inclusive:!1},container_boundary:{rules:[70,71,72,73],inclusive:!1},container_ext_queue:{rules:[],inclusive:!1},container_ext_db:{rules:[70,71,72,73],inclusive:!1},container_ext:{rules:[70,71,72,73],inclusive:!1},container_queue:{rules:[70,71,72,73],inclusive:!1},container_db:{rules:[70,71,72,73],inclusive:!1},container:{rules:[70,71,72,73],inclusive:!1},birel:{rules:[70,71,72,73],inclusive:!1},system_boundary:{rules:[70,71,72,73],inclusive:!1},enterprise_boundary:{rules:[70,71,72,73],inclusive:!1},boundary:{rules:[70,71,72,73],inclusive:!1},system_ext_queue:{rules:[70,71,72,73],inclusive:!1},system_ext_db:{rules:[70,71,72,73],inclusive:!1},system_ext:{rules:[70,71,72,73],inclusive:!1},system_queue:{rules:[70,71,72,73],inclusive:!1},system_db:{rules:[70,71,72,73],inclusive:!1},system:{rules:[70,71,72,73],inclusive:!1},person_ext:{rules:[70,71,72,73],inclusive:!1},person:{rules:[70,71,72,73],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,86,87,88,89,90],inclusive:!0}}},e);function Ae(){this.yy={}}return me.lexer=ve,Ae.prototype=me,me.Parser=Ae,new Ae}();Yhe.parser=Yhe;const qhe=Yhe,Xhe=e=>null!==e.match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/);let Jhe=[],Zhe=[""],efe="global",tfe="",nfe=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],rfe=[],ife="",ofe=!1,afe=4,sfe=2;var lfe;const cfe=function(e){return null==e?Jhe:Jhe.filter(t=>t.parentBoundary===e)},ufe=function(){return ofe},dfe={addPersonOrSystem:function(e,t,n,r,i,o,a){if(null===t||null===n)return;let s={};const l=Jhe.find(e=>e.alias===t);if(l&&t===l.alias?s=l:(s.alias=t,Jhe.push(s)),s.label=null==n?{text:""}:{text:n},null==r)s.descr={text:""};else if("object"==typeof r){let[e,t]=Object.entries(r)[0];s[e]={text:t}}else s.descr={text:r};if("object"==typeof i){let[e,t]=Object.entries(i)[0];s[e]=t}else s.sprite=i;if("object"==typeof o){let[e,t]=Object.entries(o)[0];s[e]=t}else s.tags=o;if("object"==typeof a){let[e,t]=Object.entries(a)[0];s[e]=t}else s.link=a;s.typeC4Shape={text:e},s.parentBoundary=efe,s.wrap=ufe()},addPersonOrSystemBoundary:function(e,t,n,r,i){if(null===e||null===t)return;let o={};const a=nfe.find(t=>t.alias===e);if(a&&e===a.alias?o=a:(o.alias=e,nfe.push(o)),o.label=null==t?{text:""}:{text:t},null==n)o.type={text:"system"};else if("object"==typeof n){let[e,t]=Object.entries(n)[0];o[e]={text:t}}else o.type={text:n};if("object"==typeof r){let[e,t]=Object.entries(r)[0];o[e]=t}else o.tags=r;if("object"==typeof i){let[e,t]=Object.entries(i)[0];o[e]=t}else o.link=i;o.parentBoundary=efe,o.wrap=ufe(),tfe=efe,efe=e,Zhe.push(tfe)},addContainer:function(e,t,n,r,i,o,a,s){if(null===t||null===n)return;let l={};const c=Jhe.find(e=>e.alias===t);if(c&&t===c.alias?l=c:(l.alias=t,Jhe.push(l)),l.label=null==n?{text:""}:{text:n},null==r)l.techn={text:""};else if("object"==typeof r){let[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.techn={text:r};if(null==i)l.descr={text:""};else if("object"==typeof i){let[e,t]=Object.entries(i)[0];l[e]={text:t}}else l.descr={text:i};if("object"==typeof o){let[e,t]=Object.entries(o)[0];l[e]=t}else l.sprite=o;if("object"==typeof a){let[e,t]=Object.entries(a)[0];l[e]=t}else l.tags=a;if("object"==typeof s){let[e,t]=Object.entries(s)[0];l[e]=t}else l.link=s;l.wrap=ufe(),l.typeC4Shape={text:e},l.parentBoundary=efe},addContainerBoundary:function(e,t,n,r,i){if(null===e||null===t)return;let o={};const a=nfe.find(t=>t.alias===e);if(a&&e===a.alias?o=a:(o.alias=e,nfe.push(o)),o.label=null==t?{text:""}:{text:t},null==n)o.type={text:"container"};else if("object"==typeof n){let[e,t]=Object.entries(n)[0];o[e]={text:t}}else o.type={text:n};if("object"==typeof r){let[e,t]=Object.entries(r)[0];o[e]=t}else o.tags=r;if("object"==typeof i){let[e,t]=Object.entries(i)[0];o[e]=t}else o.link=i;o.parentBoundary=efe,o.wrap=ufe(),tfe=efe,efe=e,Zhe.push(tfe)},addComponent:function(e,t,n,r,i,o,a,s){if(null===t||null===n)return;let l={};const c=Jhe.find(e=>e.alias===t);if(c&&t===c.alias?l=c:(l.alias=t,Jhe.push(l)),l.label=null==n?{text:""}:{text:n},null==r)l.techn={text:""};else if("object"==typeof r){let[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.techn={text:r};if(null==i)l.descr={text:""};else if("object"==typeof i){let[e,t]=Object.entries(i)[0];l[e]={text:t}}else l.descr={text:i};if("object"==typeof o){let[e,t]=Object.entries(o)[0];l[e]=t}else l.sprite=o;if("object"==typeof a){let[e,t]=Object.entries(a)[0];l[e]=t}else l.tags=a;if("object"==typeof s){let[e,t]=Object.entries(s)[0];l[e]=t}else l.link=s;l.wrap=ufe(),l.typeC4Shape={text:e},l.parentBoundary=efe},addDeploymentNode:function(e,t,n,r,i,o,a,s){if(null===t||null===n)return;let l={};const c=nfe.find(e=>e.alias===t);if(c&&t===c.alias?l=c:(l.alias=t,nfe.push(l)),l.label=null==n?{text:""}:{text:n},null==r)l.type={text:"node"};else if("object"==typeof r){let[e,t]=Object.entries(r)[0];l[e]={text:t}}else l.type={text:r};if(null==i)l.descr={text:""};else if("object"==typeof i){let[e,t]=Object.entries(i)[0];l[e]={text:t}}else l.descr={text:i};if("object"==typeof a){let[e,t]=Object.entries(a)[0];l[e]=t}else l.tags=a;if("object"==typeof s){let[e,t]=Object.entries(s)[0];l[e]=t}else l.link=s;l.nodeType=e,l.parentBoundary=efe,l.wrap=ufe(),tfe=efe,efe=t,Zhe.push(tfe)},popBoundaryParseStack:function(){efe=tfe,Zhe.pop(),tfe=Zhe.pop(),Zhe.push(tfe)},addRel:function(e,t,n,r,i,o,a,s,l){if(null==e||null==t||null==n||null==r)return;let c={};const u=rfe.find(e=>e.from===t&&e.to===n);if(u?c=u:rfe.push(c),c.type=e,c.from=t,c.to=n,c.label={text:r},null==i)c.techn={text:""};else if("object"==typeof i){let[e,t]=Object.entries(i)[0];c[e]={text:t}}else c.techn={text:i};if(null==o)c.descr={text:""};else if("object"==typeof o){let[e,t]=Object.entries(o)[0];c[e]={text:t}}else c.descr={text:o};if("object"==typeof a){let[e,t]=Object.entries(a)[0];c[e]=t}else c.sprite=a;if("object"==typeof s){let[e,t]=Object.entries(s)[0];c[e]=t}else c.tags=s;if("object"==typeof l){let[e,t]=Object.entries(l)[0];c[e]=t}else c.link=l;c.wrap=ufe()},updateElStyle:function(e,t,n,r,i,o,a,s,l,c,u){let d=Jhe.find(e=>e.alias===t);if(void 0!==d||(d=nfe.find(e=>e.alias===t),void 0!==d)){if(null!=n)if("object"==typeof n){let[e,t]=Object.entries(n)[0];d[e]=t}else d.bgColor=n;if(null!=r)if("object"==typeof r){let[e,t]=Object.entries(r)[0];d[e]=t}else d.fontColor=r;if(null!=i)if("object"==typeof i){let[e,t]=Object.entries(i)[0];d[e]=t}else d.borderColor=i;if(null!=o)if("object"==typeof o){let[e,t]=Object.entries(o)[0];d[e]=t}else d.shadowing=o;if(null!=a)if("object"==typeof a){let[e,t]=Object.entries(a)[0];d[e]=t}else d.shape=a;if(null!=s)if("object"==typeof s){let[e,t]=Object.entries(s)[0];d[e]=t}else d.sprite=s;if(null!=l)if("object"==typeof l){let[e,t]=Object.entries(l)[0];d[e]=t}else d.techn=l;if(null!=c)if("object"==typeof c){let[e,t]=Object.entries(c)[0];d[e]=t}else d.legendText=c;if(null!=u)if("object"==typeof u){let[e,t]=Object.entries(u)[0];d[e]=t}else d.legendSprite=u}},updateRelStyle:function(e,t,n,r,i,o,a){const s=rfe.find(e=>e.from===t&&e.to===n);if(void 0!==s){if(null!=r)if("object"==typeof r){let[e,t]=Object.entries(r)[0];s[e]=t}else s.textColor=r;if(null!=i)if("object"==typeof i){let[e,t]=Object.entries(i)[0];s[e]=t}else s.lineColor=i;if(null!=o)if("object"==typeof o){let[e,t]=Object.entries(o)[0];s[e]=parseInt(t)}else s.offsetX=parseInt(o);if(null!=a)if("object"==typeof a){let[e,t]=Object.entries(a)[0];s[e]=parseInt(t)}else s.offsetY=parseInt(a)}},updateLayoutConfig:function(e,t,n){let r=afe,i=sfe;if("object"==typeof t){const e=Object.values(t)[0];r=parseInt(e)}else r=parseInt(t);if("object"==typeof n){const e=Object.values(n)[0];i=parseInt(e)}else i=parseInt(n);r>=1&&(afe=r),i>=1&&(sfe=i)},autoWrap:ufe,setWrap:function(e){ofe=e},getC4ShapeArray:cfe,getC4Shape:function(e){return Jhe.find(t=>t.alias===e)},getC4ShapeKeys:function(e){return Object.keys(cfe(e))},getBoundarys:function(e){return null==e?nfe:nfe.filter(t=>t.parentBoundary===e)},getCurrentBoundaryParse:function(){return efe},getParentBoundaryParse:function(){return tfe},getRels:function(){return rfe},getTitle:function(){return ife},getC4Type:function(){return lfe},getC4ShapeInRow:function(){return afe},getC4BoundaryInRow:function(){return sfe},setAccTitle:Vde,getAccTitle:Kde,getAccDescription:qde,setAccDescription:Yde,parseDirective:function(e,t,n){kwe.parseDirective(this,e,t,n)},getConfig:()=>bde().c4,clear:function(){Jhe=[],nfe=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],tfe="",efe="global",Zhe=[""],rfe=[],Zhe=[""],ife="",ofe=!1,afe=4,sfe=2},LINETYPE:{SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},setTitle:function(e){let t=Gle(e,bde());ife=t},setC4Type:function(e){let t=Gle(e,bde());lfe=t}},hfe=function(e,t){const n=e.append("rect");if(n.attr("x",t.x),n.attr("y",t.y),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("width",t.width),n.attr("height",t.height),n.attr("rx",t.rx),n.attr("ry",t.ry),"undefined"!==t.attrs&&null!==t.attrs)for(let r in t.attrs)n.attr(r,t.attrs[r]);return"undefined"!==t.class&&n.attr("class",t.class),n},ffe=function(e,t,n,r,i,o){const a=e.append("image");a.attr("width",t),a.attr("height",n),a.attr("x",r),a.attr("y",i);let s=o.startsWith("data:image/png;base64")?o:G0.sanitizeUrl(o);a.attr("xlink:href",s)},pfe=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},gfe=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),mfe=function(){function e(e,t,n,i,o,a,s){r(t.append("text").attr("x",n+o/2).attr("y",i+a/2+5).style("text-anchor","middle").text(e),s)}function t(e,t,n,i,o,a,s,l){const{fontSize:c,fontFamily:u,fontWeight:d}=l,h=e.split(Jle.lineBreakRegex);for(let f=0;f<h.length;f++){const e=f*c-c*(h.length-1)/2,a=t.append("text").attr("x",n+o/2).attr("y",i).style("text-anchor","middle").attr("dominant-baseline","middle").style("font-size",c).style("font-weight",d).style("font-family",u);a.append("tspan").attr("dy",e).text(h[f]).attr("alignment-baseline","mathematical"),r(a,s)}}function n(e,n,i,o,a,s,l,c){const u=n.append("switch"),d=u.append("foreignObject").attr("x",i).attr("y",o).attr("width",a).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),t(e,u,i,o,a,0,l,c),r(d,l)}function r(e,t){for(const n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?e:t}}(),vfe=function(e,t,n){const r=e.append("g");let i=t.bgColor?t.bgColor:"none",o=t.borderColor?t.borderColor:"#444444",a=t.fontColor?t.fontColor:"black",s={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(s={"stroke-width":1});let l={x:t.x,y:t.y,fill:i,stroke:o,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:s};hfe(r,l);let c=n.boundaryFont();c.fontWeight="bold",c.fontSize=c.fontSize+2,c.fontColor=a,mfe(n)(t.label.text,r,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},c),t.type&&""!==t.type.text&&(c=n.boundaryFont(),c.fontColor=a,mfe(n)(t.type.text,r,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},c)),t.descr&&""!==t.descr.text&&(c=n.boundaryFont(),c.fontSize=c.fontSize-2,c.fontColor=a,mfe(n)(t.descr.text,r,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},c))},Afe=function(e,t,n){var r;let i=t.bgColor?t.bgColor:n[t.typeC4Shape.text+"_bg_color"],o=t.borderColor?t.borderColor:n[t.typeC4Shape.text+"_border_color"],a=t.fontColor?t.fontColor:"#FFFFFF",s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII="}const l=e.append("g");l.attr("class","person-man");const c=pfe();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":c.x=t.x,c.y=t.y,c.fill=i,c.width=t.width,c.height=t.height,c.stroke=o,c.rx=2.5,c.ry=2.5,c.attrs={"stroke-width":.5},hfe(l,c);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":l.append("path").attr("fill",i).attr("stroke-width","0.5").attr("stroke",o).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",o).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":l.append("path").attr("fill",i).attr("stroke-width","0.5").attr("stroke",o).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",o).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2))}let u=gfe(n,t.typeC4Shape.text);switch(l.append("text").attr("fill",a).attr("font-family",u.fontFamily).attr("font-size",u.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":ffe(l,48,48,t.x+t.width/2-24,t.y+t.image.Y,s)}let d=n[t.typeC4Shape.text+"Font"]();return d.fontWeight="bold",d.fontSize=d.fontSize+2,d.fontColor=a,mfe(n)(t.label.text,l,t.x,t.y+t.label.Y,t.width,t.height,{fill:a},d),d=n[t.typeC4Shape.text+"Font"](),d.fontColor=a,t.techn&&""!==(null==(r=t.techn)?void 0:r.text)?mfe(n)(t.techn.text,l,t.x,t.y+t.techn.Y,t.width,t.height,{fill:a,"font-style":"italic"},d):t.type&&""!==t.type.text&&mfe(n)(t.type.text,l,t.x,t.y+t.type.Y,t.width,t.height,{fill:a,"font-style":"italic"},d),t.descr&&""!==t.descr.text&&(d=n.personFont(),d.fontColor=a,mfe(n)(t.descr.text,l,t.x,t.y+t.descr.Y,t.width,t.height,{fill:a},d)),t.height},bfe=(e,t,n)=>{const r=e.append("g");let i=0;for(let o of t){let e=o.textColor?o.textColor:"#444444",t=o.lineColor?o.lineColor:"#444444",a=o.offsetX?parseInt(o.offsetX):0,s=o.offsetY?parseInt(o.offsetY):0,l="";if(0===i){let e=r.append("line");e.attr("x1",o.startPoint.x),e.attr("y1",o.startPoint.y),e.attr("x2",o.endPoint.x),e.attr("y2",o.endPoint.y),e.attr("stroke-width","1"),e.attr("stroke",t),e.style("fill","none"),"rel_b"!==o.type&&e.attr("marker-end","url("+l+"#arrowhead)"),"birel"!==o.type&&"rel_b"!==o.type||e.attr("marker-start","url("+l+"#arrowend)"),i=-1}else{let e=r.append("path");e.attr("fill","none").attr("stroke-width","1").attr("stroke",t).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",o.startPoint.x).replaceAll("starty",o.startPoint.y).replaceAll("controlx",o.startPoint.x+(o.endPoint.x-o.startPoint.x)/2-(o.endPoint.x-o.startPoint.x)/4).replaceAll("controly",o.startPoint.y+(o.endPoint.y-o.startPoint.y)/2).replaceAll("stopx",o.endPoint.x).replaceAll("stopy",o.endPoint.y)),"rel_b"!==o.type&&e.attr("marker-end","url("+l+"#arrowhead)"),"birel"!==o.type&&"rel_b"!==o.type||e.attr("marker-start","url("+l+"#arrowend)")}let c=n.messageFont();mfe(n)(o.label.text,r,Math.min(o.startPoint.x,o.endPoint.x)+Math.abs(o.endPoint.x-o.startPoint.x)/2+a,Math.min(o.startPoint.y,o.endPoint.y)+Math.abs(o.endPoint.y-o.startPoint.y)/2+s,o.label.width,o.label.height,{fill:e},c),o.techn&&""!==o.techn.text&&(c=n.messageFont(),mfe(n)("["+o.techn.text+"]",r,Math.min(o.startPoint.x,o.endPoint.x)+Math.abs(o.endPoint.x-o.startPoint.x)/2+a,Math.min(o.startPoint.y,o.endPoint.y)+Math.abs(o.endPoint.y-o.startPoint.y)/2+n.messageFontSize+5+s,Math.max(o.label.width,o.techn.width),o.techn.height,{fill:e,"font-style":"italic"},c))}},yfe=function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},wfe=function(e){e.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},_fe=function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},xfe=function(e){const t=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);t.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),t.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},Efe=function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},Sfe=function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},Cfe=function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")};G0.sanitizeUrl;let Tfe=0,kfe=0,Ofe=4,Mfe=2;Yhe.yy=dfe;let Ife={};class Dfe{constructor(e){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,Nfe(e.db.getConfig())}setData(e,t,n,r){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=t,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=r}updateVal(e,t,n,r){void 0===e[t]?e[t]=n:e[t]=r(n,e[t])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let t=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+e.margin:this.nextData.stopx+2*e.margin,n=t+e.width,r=this.nextData.starty+2*e.margin,i=r+e.height;(t>=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>Ofe)&&(t=this.nextData.startx+e.margin+Ife.nextLinePaddingX,r=this.nextData.stopy+2*e.margin,this.nextData.stopx=n=t+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=i=r+e.height,this.nextData.cnt=1),e.x=t,e.y=r,this.updateVal(this.data,"startx",t,Math.min),this.updateVal(this.data,"starty",r,Math.min),this.updateVal(this.data,"stopx",n,Math.max),this.updateVal(this.data,"stopy",i,Math.max),this.updateVal(this.nextData,"startx",t,Math.min),this.updateVal(this.nextData,"starty",r,Math.min),this.updateVal(this.nextData,"stopx",n,Math.max),this.updateVal(this.nextData,"stopy",i,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},Nfe(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}}const Nfe=function(e){Hue(Ife,e),e.fontFamily&&(Ife.personFontFamily=Ife.systemFontFamily=Ife.messageFontFamily=e.fontFamily),e.fontSize&&(Ife.personFontSize=Ife.systemFontSize=Ife.messageFontSize=e.fontSize),e.fontWeight&&(Ife.personFontWeight=Ife.systemFontWeight=Ife.messageFontWeight=e.fontWeight)},Rfe=(e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),Lfe=e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight});function Bfe(e,t,n,r,i){if(!t[e].width)if(n)t[e].text=Zue(t[e].text,i,r),t[e].textLines=t[e].text.split(Jle.lineBreakRegex).length,t[e].width=i,t[e].height=tde(t[e].text,r);else{let n=t[e].text.split(Jle.lineBreakRegex);t[e].textLines=n.length;let i=0;t[e].height=0,t[e].width=0;for(const o of n)t[e].width=Math.max(nde(o,r),t[e].width),i=tde(o,r),t[e].height=t[e].height+i}}const Pfe=function(e,t,n){t.x=n.data.startx,t.y=n.data.starty,t.width=n.data.stopx-n.data.startx,t.height=n.data.stopy-n.data.starty,t.label.y=Ife.c4ShapeMargin-35;let r=t.wrap&&Ife.wrap,i=Lfe(Ife);i.fontSize=i.fontSize+2,i.fontWeight="bold",Bfe("label",t,r,i,nde(t.label.text,i)),vfe(e,t,Ife)},Ffe=function(e,t,n,r){let i=0;for(const o of r){i=0;const r=n[o];let a=Rfe(Ife,r.typeC4Shape.text);switch(a.fontSize=a.fontSize-2,r.typeC4Shape.width=nde("<<"+r.typeC4Shape.text+">>",a),r.typeC4Shape.height=a.fontSize+2,r.typeC4Shape.Y=Ife.c4ShapePadding,i=r.typeC4Shape.Y+r.typeC4Shape.height-4,r.image={width:0,height:0,Y:0},r.typeC4Shape.text){case"person":case"external_person":r.image.width=48,r.image.height=48,r.image.Y=i,i=r.image.Y+r.image.height}r.sprite&&(r.image.width=48,r.image.height=48,r.image.Y=i,i=r.image.Y+r.image.height);let s=r.wrap&&Ife.wrap,l=Ife.width-2*Ife.c4ShapePadding,c=Rfe(Ife,r.typeC4Shape.text);c.fontSize=c.fontSize+2,c.fontWeight="bold",Bfe("label",r,s,c,l),r.label.Y=i+8,i=r.label.Y+r.label.height,r.type&&""!==r.type.text?(r.type.text="["+r.type.text+"]",Bfe("type",r,s,Rfe(Ife,r.typeC4Shape.text),l),r.type.Y=i+5,i=r.type.Y+r.type.height):r.techn&&""!==r.techn.text&&(r.techn.text="["+r.techn.text+"]",Bfe("techn",r,s,Rfe(Ife,r.techn.text),l),r.techn.Y=i+5,i=r.techn.Y+r.techn.height);let u=i,d=r.label.width;r.descr&&""!==r.descr.text&&(Bfe("descr",r,s,Rfe(Ife,r.typeC4Shape.text),l),r.descr.Y=i+20,i=r.descr.Y+r.descr.height,d=Math.max(r.label.width,r.descr.width),u=i-5*r.descr.textLines),d+=Ife.c4ShapePadding,r.width=Math.max(r.width||Ife.width,d,Ife.width),r.height=Math.max(r.height||Ife.height,u,Ife.height),r.margin=r.margin||Ife.c4ShapeMargin,e.insert(r),Afe(t,r,Ife)}e.bumpLastMargin(Ife.c4ShapeMargin)};let $fe=class{constructor(e,t){this.x=e,this.y=t}},jfe=function(e,t){let n=e.x,r=e.y,i=t.x,o=t.y,a=n+e.width/2,s=r+e.height/2,l=Math.abs(n-i),c=Math.abs(r-o),u=c/l,d=e.height/e.width,h=null;return r==o&&n<i?h=new $fe(n+e.width,s):r==o&&n>i?h=new $fe(n,s):n==i&&r<o?h=new $fe(a,r+e.height):n==i&&r>o&&(h=new $fe(a,r)),n>i&&r<o?h=d>=u?new $fe(n,s+u*e.width/2):new $fe(a-l/c*e.height/2,r+e.height):n<i&&r<o?h=d>=u?new $fe(n+e.width,s+u*e.width/2):new $fe(a+l/c*e.height/2,r+e.height):n<i&&r>o?h=d>=u?new $fe(n+e.width,s-u*e.width/2):new $fe(a+e.height/2*l/c,r):n>i&&r>o&&(h=d>=u?new $fe(n,s-e.width/2*u):new $fe(a-e.height/2*l/c,r)),h},Hfe=function(e,t){let n={x:0,y:0};n.x=t.x+t.width/2,n.y=t.y+t.height/2;let r=jfe(e,n);return n.x=e.x+e.width/2,n.y=e.y+e.height/2,{startPoint:r,endPoint:jfe(t,n)}};function Ufe(e,t,n,r,i){let o=new Dfe(i);o.data.widthLimit=n.data.widthLimit/Math.min(Mfe,r.length);for(let[a,s]of r.entries()){let r=0;s.image={width:0,height:0,Y:0},s.sprite&&(s.image.width=48,s.image.height=48,s.image.Y=r,r=s.image.Y+s.image.height);let l=s.wrap&&Ife.wrap,c=Lfe(Ife);if(c.fontSize=c.fontSize+2,c.fontWeight="bold",Bfe("label",s,l,c,o.data.widthLimit),s.label.Y=r+8,r=s.label.Y+s.label.height,s.type&&""!==s.type.text&&(s.type.text="["+s.type.text+"]",Bfe("type",s,l,Lfe(Ife),o.data.widthLimit),s.type.Y=r+5,r=s.type.Y+s.type.height),s.descr&&""!==s.descr.text){let e=Lfe(Ife);e.fontSize=e.fontSize-2,Bfe("descr",s,l,e,o.data.widthLimit),s.descr.Y=r+20,r=s.descr.Y+s.descr.height}if(0==a||a%Mfe==0){let e=n.data.startx+Ife.diagramMarginX,t=n.data.stopy+Ife.diagramMarginY+r;o.setData(e,e,t,t)}else{let e=o.data.stopx!==o.data.startx?o.data.stopx+Ife.diagramMarginX:o.data.startx,t=o.data.starty;o.setData(e,e,t,t)}o.name=s.alias;let u=i.db.getC4ShapeArray(s.alias),d=i.db.getC4ShapeKeys(s.alias);d.length>0&&Ffe(o,e,u,d),t=s.alias;let h=i.db.getBoundarys(t);h.length>0&&Ufe(e,t,o,h,i),"global"!==s.alias&&Pfe(e,s,o),n.data.stopy=Math.max(o.data.stopy+Ife.c4ShapeMargin,n.data.stopy),n.data.stopx=Math.max(o.data.stopx+Ife.c4ShapeMargin,n.data.stopx),Tfe=Math.max(Tfe,n.data.stopx),kfe=Math.max(kfe,n.data.stopy)}}const Qfe={drawPersonOrSystemArray:Ffe,drawBoundary:Pfe,setConf:Nfe,draw:function(e,t,n,r){Ife=bde().c4;const i=bde().securityLevel;let o;"sandbox"===i&&(o=b3("#i"+t));const a=b3("sandbox"===i?o.nodes()[0].contentDocument.body:"body");let s=r.db;r.db.setWrap(Ife.wrap),Ofe=s.getC4ShapeInRow(),Mfe=s.getC4BoundaryInRow(),Hle.debug(`C:${JSON.stringify(Ife,null,2)}`);const l="sandbox"===i?a.select(`[id="${t}"]`):b3(`[id="${t}"]`);Sfe(l),Efe(l),Cfe(l);let c=new Dfe(r);c.setData(Ife.diagramMarginX,Ife.diagramMarginX,Ife.diagramMarginY,Ife.diagramMarginY),c.data.widthLimit=screen.availWidth,Tfe=Ife.diagramMarginX,kfe=Ife.diagramMarginY;const u=r.db.getTitle();Ufe(l,"",c,r.db.getBoundarys(""),r),yfe(l),wfe(l),xfe(l),_fe(l),function(e,t,n,r){let i=0;for(let a of t){i+=1;let e=a.wrap&&Ife.wrap,t={fontFamily:(o=Ife).messageFontFamily,fontSize:o.messageFontSize,fontWeight:o.messageFontWeight};"C4Dynamic"===r.db.getC4Type()&&(a.label.text=i+": "+a.label.text);let s=nde(a.label.text,t);Bfe("label",a,e,t,s),a.techn&&""!==a.techn.text&&(s=nde(a.techn.text,t),Bfe("techn",a,e,t,s)),a.descr&&""!==a.descr.text&&(s=nde(a.descr.text,t),Bfe("descr",a,e,t,s));let l=n(a.from),c=n(a.to),u=Hfe(l,c);a.startPoint=u.startPoint,a.endPoint=u.endPoint}var o;bfe(e,t,Ife)}(l,r.db.getRels(),r.db.getC4Shape,r),c.data.stopx=Tfe,c.data.stopy=kfe;const d=c.data;let h=d.stopy-d.starty+2*Ife.diagramMarginY;const f=d.stopx-d.startx+2*Ife.diagramMarginX;u&&l.append("text").text(u).attr("x",(d.stopx-d.startx)/2-4*Ife.diagramMarginX).attr("y",d.starty+Ife.diagramMarginY),Cde(l,h,f,Ife.useMaxWidth);const p=u?60:0;l.attr("viewBox",d.startx-Ife.diagramMarginX+" -"+(Ife.diagramMarginY+p)+" "+f+" "+(h+p)),Hle.debug("models:",d)}};var zfe=function(){var e,t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[1,3],r=[1,7],i=[1,8],o=[1,9],a=[1,10],s=[1,13],l=[1,12],c=[1,16,25],u=[1,20],d=[1,32],h=[1,33],f=[1,34],p=[1,36],g=[1,39],m=[1,37],v=[1,38],A=[1,44],b=[1,45],y=[1,40],w=[1,41],_=[1,42],x=[1,43],E=[1,48],S=[1,49],C=[1,50],T=[1,51],k=[16,25],O=[1,65],M=[1,66],I=[1,67],D=[1,68],N=[1,69],R=[1,70],L=[1,71],B=[1,80],P=[16,25,32,45,46,54,60,61,62,63,64,65,66,71,73],F=[16,25,30,32,45,46,50,54,60,61,62,63,64,65,66,71,73,88,89,90,91],$=[5,8,9,10,11,16,19,23,25],j=[54,88,89,90,91],H=[54,65,66,88,89,90,91],U=[54,60,61,62,63,64,88,89,90,91],Q=[16,25,32],z=[1,107],W={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statments:5,direction:6,directive:7,direction_tb:8,direction_bt:9,direction_rl:10,direction_lr:11,graphConfig:12,openDirective:13,typeDirective:14,closeDirective:15,NEWLINE:16,":":17,argDirective:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,CLASS_DIAGRAM:23,statements:24,EOF:25,statement:26,className:27,alphaNumToken:28,classLiteralName:29,GENERICTYPE:30,relationStatement:31,LABEL:32,classStatement:33,methodStatement:34,annotationStatement:35,clickStatement:36,cssClassStatement:37,noteStatement:38,acc_title:39,acc_title_value:40,acc_descr:41,acc_descr_value:42,acc_descr_multiline_value:43,CLASS:44,STYLE_SEPARATOR:45,STRUCT_START:46,members:47,STRUCT_STOP:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,STR:54,NOTE_FOR:55,noteText:56,NOTE:57,relationType:58,lineType:59,AGGREGATION:60,EXTENSION:61,COMPOSITION:62,DEPENDENCY:63,LOLLIPOP:64,LINE:65,DOTTED_LINE:66,CALLBACK:67,LINK:68,LINK_TARGET:69,CLICK:70,CALLBACK_NAME:71,CALLBACK_ARGS:72,HREF:73,CSSCLASS:74,commentToken:75,textToken:76,graphCodeTokens:77,textNoTagsToken:78,TAGSTART:79,TAGEND:80,"==":81,"--":82,PCT:83,DEFAULT:84,SPACE:85,MINUS:86,keywords:87,UNICODE_TEXT:88,NUM:89,ALPHA:90,BQUOTE_STR:91,$accept:0,$end:1},terminals_:{2:"error",5:"statments",8:"direction_tb",9:"direction_bt",10:"direction_rl",11:"direction_lr",16:"NEWLINE",17:":",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",23:"CLASS_DIAGRAM",25:"EOF",30:"GENERICTYPE",32:"LABEL",39:"acc_title",40:"acc_title_value",41:"acc_descr",42:"acc_descr_value",43:"acc_descr_multiline_value",44:"CLASS",45:"STYLE_SEPARATOR",46:"STRUCT_START",48:"STRUCT_STOP",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"STR",55:"NOTE_FOR",57:"NOTE",60:"AGGREGATION",61:"EXTENSION",62:"COMPOSITION",63:"DEPENDENCY",64:"LOLLIPOP",65:"LINE",66:"DOTTED_LINE",67:"CALLBACK",68:"LINK",69:"LINK_TARGET",70:"CLICK",71:"CALLBACK_NAME",72:"CALLBACK_ARGS",73:"HREF",74:"CSSCLASS",77:"graphCodeTokens",79:"TAGSTART",80:"TAGEND",81:"==",82:"--",83:"PCT",84:"DEFAULT",85:"SPACE",86:"MINUS",87:"keywords",88:"UNICODE_TEXT",89:"NUM",90:"ALPHA",91:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[3,1],[3,2],[6,1],[6,1],[6,1],[6,1],[4,1],[7,4],[7,6],[13,1],[14,1],[18,1],[15,1],[12,4],[24,1],[24,2],[24,3],[27,1],[27,1],[27,2],[27,2],[27,2],[26,1],[26,2],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,2],[26,2],[26,1],[33,2],[33,4],[33,5],[33,7],[35,4],[47,1],[47,2],[34,1],[34,2],[34,1],[34,1],[31,3],[31,4],[31,4],[31,5],[38,3],[38,2],[53,3],[53,2],[53,2],[53,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[36,3],[36,4],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[37,3],[75,1],[75,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[76,1],[78,1],[78,1],[78,1],[78,1],[28,1],[28,1],[28,1],[29,1],[56,1]],performAction:function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 5:r.setDirection("TB");break;case 6:r.setDirection("BT");break;case 7:r.setDirection("RL");break;case 8:r.setDirection("LR");break;case 12:r.parseDirective("%%{","open_directive");break;case 13:r.parseDirective(o[s],"type_directive");break;case 14:o[s]=o[s].trim().replace(/'/g,'"'),r.parseDirective(o[s],"arg_directive");break;case 15:r.parseDirective("}%%","close_directive","class");break;case 20:case 21:this.$=o[s];break;case 22:this.$=o[s-1]+o[s];break;case 23:case 24:this.$=o[s-1]+"~"+o[s];break;case 25:r.addRelation(o[s]);break;case 26:o[s-1].title=r.cleanupLabel(o[s]),r.addRelation(o[s-1]);break;case 35:this.$=o[s].trim(),r.setAccTitle(this.$);break;case 36:case 37:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 38:r.addClass(o[s]);break;case 39:r.addClass(o[s-2]),r.setCssClass(o[s-2],o[s]);break;case 40:r.addClass(o[s-3]),r.addMembers(o[s-3],o[s-1]);break;case 41:r.addClass(o[s-5]),r.setCssClass(o[s-5],o[s-3]),r.addMembers(o[s-5],o[s-1]);break;case 42:r.addAnnotation(o[s],o[s-2]);break;case 43:this.$=[o[s]];break;case 44:o[s].push(o[s-1]),this.$=o[s];break;case 45:case 47:case 48:break;case 46:r.addMember(o[s-1],r.cleanupLabel(o[s]));break;case 49:this.$={id1:o[s-2],id2:o[s],relation:o[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:o[s-3],id2:o[s],relation:o[s-1],relationTitle1:o[s-2],relationTitle2:"none"};break;case 51:this.$={id1:o[s-3],id2:o[s],relation:o[s-2],relationTitle1:"none",relationTitle2:o[s-1]};break;case 52:this.$={id1:o[s-4],id2:o[s],relation:o[s-2],relationTitle1:o[s-3],relationTitle2:o[s-1]};break;case 53:r.addNote(o[s],o[s-1]);break;case 54:r.addNote(o[s]);break;case 55:this.$={type1:o[s-2],type2:o[s],lineType:o[s-1]};break;case 56:this.$={type1:"none",type2:o[s],lineType:o[s-1]};break;case 57:this.$={type1:o[s-1],type2:"none",lineType:o[s]};break;case 58:this.$={type1:"none",type2:"none",lineType:o[s]};break;case 59:this.$=r.relationType.AGGREGATION;break;case 60:this.$=r.relationType.EXTENSION;break;case 61:this.$=r.relationType.COMPOSITION;break;case 62:this.$=r.relationType.DEPENDENCY;break;case 63:this.$=r.relationType.LOLLIPOP;break;case 64:this.$=r.lineType.LINE;break;case 65:this.$=r.lineType.DOTTED_LINE;break;case 66:case 72:this.$=o[s-2],r.setClickEvent(o[s-1],o[s]);break;case 67:case 73:this.$=o[s-3],r.setClickEvent(o[s-2],o[s-1]),r.setTooltip(o[s-2],o[s]);break;case 68:case 76:this.$=o[s-2],r.setLink(o[s-1],o[s]);break;case 69:case 77:this.$=o[s-3],r.setLink(o[s-2],o[s-1],o[s]);break;case 70:case 78:this.$=o[s-3],r.setLink(o[s-2],o[s-1]),r.setTooltip(o[s-2],o[s]);break;case 71:case 79:this.$=o[s-4],r.setLink(o[s-3],o[s-2],o[s]),r.setTooltip(o[s-3],o[s-1]);break;case 74:this.$=o[s-3],r.setClickEvent(o[s-2],o[s-1],o[s]);break;case 75:this.$=o[s-4],r.setClickEvent(o[s-3],o[s-2],o[s-1]),r.setTooltip(o[s-3],o[s]);break;case 80:r.setCssClass(o[s-1],o[s])}},table:[{3:1,4:2,5:n,6:4,7:5,8:r,9:i,10:o,11:a,12:6,13:11,19:s,23:l},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:n,6:4,7:5,8:r,9:i,10:o,11:a,12:6,13:11,19:s,23:l},{1:[2,9]},t(c,[2,5]),t(c,[2,6]),t(c,[2,7]),t(c,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:u},t([17,22],[2,13]),{6:31,7:30,8:r,9:i,10:o,11:a,13:11,19:s,24:21,26:22,27:35,28:46,29:47,31:23,33:24,34:25,35:26,36:27,37:28,38:29,39:d,41:h,43:f,44:p,49:g,51:m,52:v,55:A,57:b,67:y,68:w,70:_,74:x,88:E,89:S,90:C,91:T},{16:[1,52]},{18:53,21:[1,54]},{16:[2,15]},{25:[1,55]},{16:[1,56],25:[2,17]},t(k,[2,25],{32:[1,57]}),t(k,[2,27]),t(k,[2,28]),t(k,[2,29]),t(k,[2,30]),t(k,[2,31]),t(k,[2,32]),t(k,[2,33]),t(k,[2,34]),{40:[1,58]},{42:[1,59]},t(k,[2,37]),t(k,[2,45],{53:60,58:63,59:64,32:[1,62],54:[1,61],60:O,61:M,62:I,63:D,64:N,65:R,66:L}),{27:72,28:46,29:47,88:E,89:S,90:C,91:T},t(k,[2,47]),t(k,[2,48]),{28:73,88:E,89:S,90:C},{27:74,28:46,29:47,88:E,89:S,90:C,91:T},{27:75,28:46,29:47,88:E,89:S,90:C,91:T},{27:76,28:46,29:47,88:E,89:S,90:C,91:T},{54:[1,77]},{27:78,28:46,29:47,88:E,89:S,90:C,91:T},{54:B,56:79},t(P,[2,20],{28:46,29:47,27:81,30:[1,82],88:E,89:S,90:C,91:T}),t(P,[2,21],{30:[1,83]}),t(F,[2,94]),t(F,[2,95]),t(F,[2,96]),t([16,25,30,32,45,46,54,60,61,62,63,64,65,66,71,73],[2,97]),t($,[2,10]),{15:84,22:u},{22:[2,14]},{1:[2,16]},{6:31,7:30,8:r,9:i,10:o,11:a,13:11,19:s,24:85,25:[2,18],26:22,27:35,28:46,29:47,31:23,33:24,34:25,35:26,36:27,37:28,38:29,39:d,41:h,43:f,44:p,49:g,51:m,52:v,55:A,57:b,67:y,68:w,70:_,74:x,88:E,89:S,90:C,91:T},t(k,[2,26]),t(k,[2,35]),t(k,[2,36]),{27:86,28:46,29:47,54:[1,87],88:E,89:S,90:C,91:T},{53:88,58:63,59:64,60:O,61:M,62:I,63:D,64:N,65:R,66:L},t(k,[2,46]),{59:89,65:R,66:L},t(j,[2,58],{58:90,60:O,61:M,62:I,63:D,64:N}),t(H,[2,59]),t(H,[2,60]),t(H,[2,61]),t(H,[2,62]),t(H,[2,63]),t(U,[2,64]),t(U,[2,65]),t(k,[2,38],{45:[1,91],46:[1,92]}),{50:[1,93]},{54:[1,94]},{54:[1,95]},{71:[1,96],73:[1,97]},{28:98,88:E,89:S,90:C},{54:B,56:99},t(k,[2,54]),t(k,[2,98]),t(P,[2,22]),t(P,[2,23]),t(P,[2,24]),{16:[1,100]},{25:[2,19]},t(Q,[2,49]),{27:101,28:46,29:47,88:E,89:S,90:C,91:T},{27:102,28:46,29:47,54:[1,103],88:E,89:S,90:C,91:T},t(j,[2,57],{58:104,60:O,61:M,62:I,63:D,64:N}),t(j,[2,56]),{28:105,88:E,89:S,90:C},{47:106,51:z},{27:108,28:46,29:47,88:E,89:S,90:C,91:T},t(k,[2,66],{54:[1,109]}),t(k,[2,68],{54:[1,111],69:[1,110]}),t(k,[2,72],{54:[1,112],72:[1,113]}),t(k,[2,76],{54:[1,115],69:[1,114]}),t(k,[2,80]),t(k,[2,53]),t($,[2,11]),t(Q,[2,51]),t(Q,[2,50]),{27:116,28:46,29:47,88:E,89:S,90:C,91:T},t(j,[2,55]),t(k,[2,39],{46:[1,117]}),{48:[1,118]},{47:119,48:[2,43],51:z},t(k,[2,42]),t(k,[2,67]),t(k,[2,69]),t(k,[2,70],{69:[1,120]}),t(k,[2,73]),t(k,[2,74],{54:[1,121]}),t(k,[2,77]),t(k,[2,78],{69:[1,122]}),t(Q,[2,52]),{47:123,51:z},t(k,[2,40]),{48:[2,44]},t(k,[2,71]),t(k,[2,75]),t(k,[2,79]),{48:[1,124]},t(k,[2,41])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],6:[2,9],13:[2,12],14:[2,4],20:[2,15],54:[2,14],55:[2,16],85:[2,19],119:[2,44]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),d=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);d.setInput(e,h.yy),h.yy.lexer=d,h.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var p=d.yylloc;o.push(p);var g=d.options&&d.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||d.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,A,b,y,w,_,x,E,S={};;){if(A=n[n.length-1],this.defaultActions[A]?b=this.defaultActions[A]:(null==v&&(v=m()),b=a[A]&&a[A][v]),void 0===b||!b.length||!b[0]){var C="";for(w in E=[],a[A])this.terminals_[w]&&w>2&&E.push("'"+this.terminals_[w]+"'");C=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:p,expected:E})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(b[0]){case 1:n.push(v),i.push(d.yytext),o.push(d.yylloc),n.push(b[1]),v=null,c=d.yyleng,s=d.yytext,l=d.yylineno,p=d.yylloc;break;case 2:if(_=this.productions_[b[1]][1],S.$=i[i.length-_],S._$={first_line:o[o.length-(_||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(_||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(_||1)].range[0],o[o.length-1].range[1]]),void 0!==(y=this.performAction.apply(S,[s,c,l,h.yy,b[1],i,o].concat(u))))return y;_&&(n=n.slice(0,-1*_*2),i=i.slice(0,-1*_),o=o.slice(0,-1*_)),n.push(this.productions_[b[1]][0]),i.push(S.$),o.push(S._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},G=(e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin("type_directive"),20;case 6:return this.popState(),this.begin("arg_directive"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:case 10:case 19:case 27:break;case 11:return this.begin("acc_title"),39;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),41;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:case 39:case 42:case 45:case 48:case 51:case 54:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:return 16;case 20:case 21:return 23;case 22:return this.begin("struct"),46;case 23:return"EDGE_STATE";case 24:return"EOF_IN_STRUCT";case 25:return"OPEN_IN_STRUCT";case 26:return this.popState(),48;case 28:return"MEMBER";case 29:return 44;case 30:return 74;case 31:return 67;case 32:return 68;case 33:return 70;case 34:return 55;case 35:return 57;case 36:return 49;case 37:return 50;case 38:this.begin("generic");break;case 40:return"GENERICTYPE";case 41:this.begin("string");break;case 43:return"STR";case 44:this.begin("bqstring");break;case 46:return"BQUOTE_STR";case 47:this.begin("href");break;case 49:return 73;case 50:this.begin("callback_name");break;case 52:this.popState(),this.begin("callback_args");break;case 53:return 71;case 55:return 72;case 56:case 57:case 58:case 59:return 69;case 60:case 61:return 61;case 62:case 63:return 63;case 64:return 62;case 65:return 60;case 66:return 64;case 67:return 65;case 68:return 66;case 69:return 32;case 70:return 45;case 71:return 86;case 72:return"DOT";case 73:return"PLUS";case 74:return 83;case 75:case 76:return"EQUALS";case 77:return 90;case 78:return"PUNCTUATION";case 79:return 89;case 80:return 88;case 81:return 85;case 82:return 25}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:\[\*\])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\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]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\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\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-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\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-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\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])/,/^(?:\s)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[54,55],inclusive:!1},callback_name:{rules:[51,52,53],inclusive:!1},href:{rules:[48,49],inclusive:!1},struct:{rules:[23,24,25,26,27,28],inclusive:!1},generic:{rules:[39,40],inclusive:!1},bqstring:{rules:[45,46],inclusive:!1},string:{rules:[42,43],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,23,29,30,31,32,33,34,35,36,37,38,41,44,47,50,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82],inclusive:!0}}},e);function V(){this.yy={}}return W.lexer=G,V.prototype=W,W.Parser=V,new V}();zfe.parser=zfe;const Wfe=zfe,Gfe=(e,t)=>{var n;return"dagre-wrapper"!==(null==(n=null==t?void 0:t.class)?void 0:n.defaultRenderer)&&null!==e.match(/^\s*classDiagram/)},Vfe=(e,t)=>{var n;return null!==e.match(/^\s*classDiagram/)&&"dagre-wrapper"===(null==(n=null==t?void 0:t.class)?void 0:n.defaultRenderer)||null!==e.match(/^\s*classDiagram-v2/)},Kfe="classid-";let Yfe=[],qfe={},Xfe=[],Jfe=0,Zfe=[];const epe=e=>Jle.sanitizeText(e,bde()),tpe=function(e){let t="",n=e;if(e.indexOf("~")>0){let r=e.split("~");n=r[0],t=Jle.sanitizeText(r[1],bde())}return{className:n,type:t}},npe=function(e){let t=tpe(e);void 0===qfe[t.className]&&(qfe[t.className]={id:t.className,type:t.type,cssClasses:[],methods:[],members:[],annotations:[],domId:Kfe+t.className+"-"+Jfe},Jfe++)},rpe=function(e){const t=Object.keys(qfe);for(const n of t)if(qfe[n].id===e)return qfe[n].domId},ipe=function(e,t){const n=tpe(e).className,r=qfe[n];if("string"==typeof t){const e=t.trim();e.startsWith("<<")&&e.endsWith(">>")?r.annotations.push(epe(e.substring(2,e.length-2))):e.indexOf(")")>0?r.methods.push(epe(e)):e&&r.members.push(epe(e))}},ope=function(e,t){e.split(",").forEach(function(e){let n=e;e[0].match(/\d/)&&(n=Kfe+n),void 0!==qfe[n]&&qfe[n].cssClasses.push(t)})},ape=function(e,t,n){const r=bde();let i=e,o=rpe(i);if("loose"===r.securityLevel&&void 0!==t&&void 0!==qfe[i]){let e=[];if("string"==typeof n){e=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<e.length;t++){let n=e[t].trim();'"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substr(1,n.length-2)),e[t]=n}}0===e.length&&e.push(o),Zfe.push(function(){const n=document.querySelector(`[id="${o}"]`);null!==n&&n.addEventListener("click",function(){cde.runFunc(t,...e)},!1)})}},spe=function(e){let t=b3(".mermaidTooltip");null===(t._groups||t)[0][0]&&(t=b3("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),b3(e).select("svg").selectAll("g.node").on("mouseover",function(){const e=b3(this);if(null===e.attr("title"))return;const n=this.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.text(e.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),t.html(t.html().replace(/&lt;br\/&gt;/g,"<br/>")),e.classed("hover",!0)}).on("mouseout",function(){t.transition().duration(500).style("opacity",0),b3(this).classed("hover",!1)})};Zfe.push(spe);let lpe="TB";const cpe={parseDirective:function(e,t,n){kwe.parseDirective(this,e,t,n)},setAccTitle:Vde,getAccTitle:Kde,getAccDescription:qde,setAccDescription:Yde,getConfig:()=>bde().class,addClass:npe,bindFunctions:function(e){Zfe.forEach(function(t){t(e)})},clear:function(){Yfe=[],qfe={},Xfe=[],Zfe=[],Zfe.push(spe),Gde()},getClass:function(e){return qfe[e]},getClasses:function(){return qfe},getNotes:function(){return Xfe},addAnnotation:function(e,t){const n=tpe(e).className;qfe[n].annotations.push(t)},addNote:function(e,t){const n={id:`note${Xfe.length}`,class:t,text:e};Xfe.push(n)},getRelations:function(){return Yfe},addRelation:function(e){Hle.debug("Adding relation: "+JSON.stringify(e)),npe(e.id1),npe(e.id2),e.id1=tpe(e.id1).className,e.id2=tpe(e.id2).className,e.relationTitle1=Jle.sanitizeText(e.relationTitle1.trim(),bde()),e.relationTitle2=Jle.sanitizeText(e.relationTitle2.trim(),bde()),Yfe.push(e)},getDirection:()=>lpe,setDirection:e=>{lpe=e},addMember:ipe,addMembers:function(e,t){Array.isArray(t)&&(t.reverse(),t.forEach(t=>ipe(e,t)))},cleanupLabel:function(e){return":"===e.substring(0,1)?Jle.sanitizeText(e.substr(1).trim(),bde()):epe(e.trim())},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},setClickEvent:function(e,t,n){e.split(",").forEach(function(e){ape(e,t,n),qfe[e].haveCallback=!0}),ope(e,"clickable")},setCssClass:ope,setLink:function(e,t,n){const r=bde();e.split(",").forEach(function(e){let i=e;e[0].match(/\d/)&&(i=Kfe+i),void 0!==qfe[i]&&(qfe[i].link=cde.formatUrl(t,r),"sandbox"===r.securityLevel?qfe[i].linkTarget="_top":qfe[i].linkTarget="string"==typeof n?epe(n):"_blank")}),ope(e,"clickable")},getTooltip:function(e){return qfe[e].tooltip},setTooltip:function(e,t){const n=bde();e.split(",").forEach(function(e){void 0!==t&&(qfe[e].tooltip=Jle.sanitizeText(t,n))})},lookUpDomId:rpe,setDiagramTitle:Xde,getDiagramTitle:Jde};let upe=0;const dpe=function(e){let t=e.match(/^([#+~-])?(\w+)(~\w+~|\[])?\s+(\w+) *([$*])?$/),n=e.match(/^([#+|~-])?(\w+) *\( *(.*)\) *([$*])? *(\w*[[\]|~]*\s*\w*~?)$/);return t&&!n?hpe(t):n?fpe(n):ppe(e)},hpe=function(e){let t="",n="";try{let r=e[1]?e[1].trim():"",i=e[2]?e[2].trim():"",o=e[3]?Xle(e[3].trim()):"",a=e[4]?e[4].trim():"",s=e[5]?e[5].trim():"";n=r+i+o+" "+a,t=mpe(s)}catch(t){n=e}return{displayText:n,cssStyle:t}},fpe=function(e){let t="",n="";try{let r=e[1]?e[1].trim():"",i=e[2]?e[2].trim():"",o=e[3]?Xle(e[3].trim()):"",a=e[4]?e[4].trim():"";n=r+i+"("+o+")"+(e[5]?" : "+Xle(e[5]).trim():""),t=mpe(a)}catch(t){n=e}return{displayText:n,cssStyle:t}},ppe=function(e){let t="",n="",r="",i=e.indexOf("("),o=e.indexOf(")");if(i>1&&o>i&&o<=e.length){let a="",s="",l=e.substring(0,1);l.match(/\w/)?s=e.substring(0,i).trim():(l.match(/[#+~-]/)&&(a=l),s=e.substring(1,i).trim());const c=e.substring(i+1,o);e.substring(o+1,1),n=mpe(e.substring(o+1,o+2)),t=a+s+"("+Xle(c.trim())+")",o<e.length&&(r=e.substring(o+2).trim(),""!==r&&(r=" : "+Xle(r),t+=r))}else t=Xle(e);return{displayText:t,cssStyle:n}},gpe=function(e,t,n,r){let i=dpe(t);const o=e.append("tspan").attr("x",r.padding).text(i.displayText);""!==i.cssStyle&&o.attr("style",i.cssStyle),n||o.attr("dy",r.textHeight)},mpe=function(e){switch(e){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}},vpe=function(e,t,n,r){Hle.debug("Rendering class ",t,n);const i=t.id,o={id:i,label:t.id,width:0,height:0},a=e.append("g").attr("id",r.db.lookUpDomId(i)).attr("class","classGroup");let s;s=t.link?a.append("svg:a").attr("xlink:href",t.link).attr("target",t.linkTarget).append("text").attr("y",n.textHeight+n.padding).attr("x",0):a.append("text").attr("y",n.textHeight+n.padding).attr("x",0);let l=!0;t.annotations.forEach(function(e){const t=s.append("tspan").text("«"+e+"»");l||t.attr("dy",n.textHeight),l=!1});let c=t.id;void 0!==t.type&&""!==t.type&&(c+="<"+t.type+">");const u=s.append("tspan").text(c).attr("class","title");l||u.attr("dy",n.textHeight);const d=s.node().getBBox().height,h=a.append("line").attr("x1",0).attr("y1",n.padding+d+n.dividerMargin/2).attr("y2",n.padding+d+n.dividerMargin/2),f=a.append("text").attr("x",n.padding).attr("y",d+n.dividerMargin+n.textHeight).attr("fill","white").attr("class","classText");l=!0,t.members.forEach(function(e){gpe(f,e,l,n),l=!1});const p=f.node().getBBox(),g=a.append("line").attr("x1",0).attr("y1",n.padding+d+n.dividerMargin+p.height).attr("y2",n.padding+d+n.dividerMargin+p.height),m=a.append("text").attr("x",n.padding).attr("y",d+2*n.dividerMargin+p.height+n.textHeight).attr("fill","white").attr("class","classText");l=!0,t.methods.forEach(function(e){gpe(m,e,l,n),l=!1});const v=a.node().getBBox();var A=" ";t.cssClasses.length>0&&(A+=t.cssClasses.join(" "));const b=a.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",v.width+2*n.padding).attr("height",v.height+n.padding+.5*n.dividerMargin).attr("class",A).node().getBBox().width;return s.node().childNodes.forEach(function(e){e.setAttribute("x",(b-e.getBBox().width)/2)}),t.tooltip&&s.insert("title").text(t.tooltip),h.attr("x2",b),g.attr("x2",b),o.width=b,o.height=v.height+n.padding+.5*n.dividerMargin,o},Ape=function(e,t,n,r,i){const o=function(e){switch(e){case i.db.relationType.AGGREGATION:return"aggregation";case i.db.relationType.EXTENSION:return"extension";case i.db.relationType.COMPOSITION:return"composition";case i.db.relationType.DEPENDENCY:return"dependency";case i.db.relationType.LOLLIPOP:return"lollipop"}};t.points=t.points.filter(e=>!Number.isNaN(e.y));const a=t.points,s=nee().x(function(e){return e.x}).y(function(e){return e.y}).curve(cee),l=e.append("path").attr("d",s(a)).attr("id","edge"+upe).attr("class","relation");let c,u,d="";r.arrowMarkerAbsolute&&(d=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,d=d.replace(/\(/g,"\\("),d=d.replace(/\)/g,"\\)")),1==n.relation.lineType&&l.attr("class","relation dashed-line"),10==n.relation.lineType&&l.attr("class","relation dotted-line"),"none"!==n.relation.type1&&l.attr("marker-start","url("+d+"#"+o(n.relation.type1)+"Start)"),"none"!==n.relation.type2&&l.attr("marker-end","url("+d+"#"+o(n.relation.type2)+"End)");const h=t.points.length;let f,p,g,m,v=cde.calcLabelPosition(t.points);if(c=v.x,u=v.y,h%2!=0&&h>1){let e=cde.calcCardinalityPosition("none"!==n.relation.type1,t.points,t.points[0]),r=cde.calcCardinalityPosition("none"!==n.relation.type2,t.points,t.points[h-1]);Hle.debug("cardinality_1_point "+JSON.stringify(e)),Hle.debug("cardinality_2_point "+JSON.stringify(r)),f=e.x,p=e.y,g=r.x,m=r.y}if(void 0!==n.title){const t=e.append("g").attr("class","classLabel"),i=t.append("text").attr("class","label").attr("x",c).attr("y",u).attr("fill","red").attr("text-anchor","middle").text(n.title);window.label=i;const o=i.node().getBBox();t.insert("rect",":first-child").attr("class","box").attr("x",o.x-r.padding/2).attr("y",o.y-r.padding/2).attr("width",o.width+r.padding).attr("height",o.height+r.padding)}Hle.info("Rendering relation "+JSON.stringify(n)),void 0!==n.relationTitle1&&"none"!==n.relationTitle1&&e.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",f).attr("y",p).attr("fill","black").attr("font-size","6").text(n.relationTitle1),void 0!==n.relationTitle2&&"none"!==n.relationTitle2&&e.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",g).attr("y",m).attr("fill","black").attr("font-size","6").text(n.relationTitle2),upe++},bpe=function(e,t,n,r){Hle.debug("Rendering note ",t,n);const i=t.id,o={id:i,text:t.text,width:0,height:0},a=e.append("g").attr("id",i).attr("class","classGroup");let s=a.append("text").attr("y",n.textHeight+n.padding).attr("x",0);const l=JSON.parse(`"${t.text}"`).split("\n");l.forEach(function(e){Hle.debug(`Adding line: ${e}`),s.append("tspan").text(e).attr("class","title").attr("dy",n.textHeight)});const c=a.node().getBBox(),u=a.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",c.width+2*n.padding).attr("height",c.height+l.length*n.textHeight+n.padding+.5*n.dividerMargin).node().getBBox().width;return s.node().childNodes.forEach(function(e){e.setAttribute("x",(u-e.getBBox().width)/2)}),o.width=u,o.height=c.height+l.length*n.textHeight+n.padding+.5*n.dividerMargin,o};let ype={};const wpe=function(e){const t=Object.entries(ype).find(t=>t[1].label===e);if(t)return t[0]},_pe={draw:function(e,t,n,r){const i=bde().class;ype={},Hle.info("Rendering diagram "+e);const o=bde().securityLevel;let a;"sandbox"===o&&(a=b3("#i"+t));const s=b3("sandbox"===o?a.nodes()[0].contentDocument.body:"body"),l=s.select(`[id='${t}']`);var c;(c=l).append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),c.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),c.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),c.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),c.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),c.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),c.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),c.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z");const u=new Wae({multigraph:!0});u.setGraph({isMultiGraph:!0}),u.setDefaultEdgeLabel(function(){return{}});const d=r.db.getClasses(),h=Object.keys(d);for(const v of h){const e=d[v],t=vpe(l,e,i,r);ype[t.id]=t,u.setNode(t.id,t),Hle.info("Org height: "+t.height)}r.db.getRelations().forEach(function(e){Hle.info("tjoho"+wpe(e.id1)+wpe(e.id2)+JSON.stringify(e)),u.setEdge(wpe(e.id1),wpe(e.id2),{relation:e},e.title||"DEFAULT")}),r.db.getNotes().forEach(function(e){Hle.debug(`Adding note: ${JSON.stringify(e)}`);const t=bpe(l,e,i,r);ype[t.id]=t,u.setNode(t.id,t),e.class&&e.class in d&&u.setEdge(e.id,wpe(e.class),{relation:{id1:e.id,id2:e.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),ole(u),u.nodes().forEach(function(e){void 0!==e&&void 0!==u.node(e)&&(Hle.debug("Node "+e+": "+JSON.stringify(u.node(e))),s.select("#"+(r.db.lookUpDomId(e)||e)).attr("transform","translate("+(u.node(e).x-u.node(e).width/2)+","+(u.node(e).y-u.node(e).height/2)+" )"))}),u.edges().forEach(function(e){void 0!==e&&void 0!==u.edge(e)&&(Hle.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(u.edge(e))),Ape(l,u.edge(e),u.edge(e).relation,i,r))});const f=l.node().getBBox(),p=f.width+40,g=f.height+40;Cde(l,g,p,i.useMaxWidth);const m=`${f.x-20} ${f.y-20} ${p} ${g}`;Hle.debug(`viewBox ${m}`),l.attr("viewBox",m)}},xpe={extension:(e,t,n)=>{Hle.trace("Making markers for ",n),e.append("defs").append("marker").attr("id",t+"-extensionStart").attr("class","marker extension "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:(e,t)=>{e.append("defs").append("marker").attr("id",t+"-compositionStart").attr("class","marker composition "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:(e,t)=>{e.append("defs").append("marker").attr("id",t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:(e,t)=>{e.append("defs").append("marker").attr("id",t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},lollipop:(e,t)=>{e.append("defs").append("marker").attr("id",t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","white").attr("cx",6).attr("cy",7).attr("r",6)},point:(e,t)=>{e.append("marker").attr("id",t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 12 20").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:(e,t)=>{e.append("marker").attr("id",t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:(e,t)=>{e.append("marker").attr("id",t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:(e,t)=>{e.append("defs").append("marker").attr("id",t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}},Epe=(e,t,n,r)=>{t.forEach(t=>{xpe[t](e,n,r)})},Spe=(e,t,n,r)=>{let i=e||"";if("object"==typeof i&&(i=i[0]),qle(bde().flowchart.htmlLabels)){i=i.replace(/\\n|\n/g,"<br />"),Hle.info("vertexText"+i);let e=function(e){const t=b3(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),n=t.append("xhtml:div"),r=e.label,i=e.isNode?"nodeLabel":"edgeLabel";var o,a;return n.html('<span class="'+i+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+r+"</span>"),o=n,(a=e.labelStyle)&&o.attr("style",a),n.style("display","inline-block"),n.style("white-space","nowrap"),n.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}({isNode:r,label:bwe(i).replace(/fa[blrs]?:fa-[\w-]+/g,e=>`<i class='${e.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")});return e}{const e=document.createElementNS("http://www.w3.org/2000/svg","text");e.setAttribute("style",t.replace("color:","fill:"));let r=[];r="string"==typeof i?i.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(i)?i:[];for(const t of r){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),n?r.setAttribute("class","title-row"):r.setAttribute("class","row"),r.textContent=t.trim(),e.appendChild(r)}return e}},Cpe=(e,t,n,r)=>{let i;i=n||"node default";const o=e.insert("g").attr("class",i).attr("id",t.domId||t.id),a=o.insert("g").attr("class","label").attr("style",t.labelStyle);let s;s=void 0===t.labelText?"":"string"==typeof t.labelText?t.labelText:t.labelText[0];const l=a.node().appendChild(Spe(Gle(bwe(s),bde()),t.labelStyle,!1,r));let c=l.getBBox();if(qle(bde().flowchart.htmlLabels)){const e=l.children[0],t=b3(l);c=e.getBoundingClientRect(),t.attr("width",c.width),t.attr("height",c.height)}const u=t.padding/2;return a.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),{shapeSvg:o,bbox:c,halfPadding:u,label:a}},Tpe=(e,t)=>{const n=t.node().getBBox();e.width=n.width,e.height=n.height};function kpe(e,t,n,r){return e.insert("polygon",":first-child").attr("points",r.map(function(e){return e.x+","+e.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+n/2+")")}let Ope={},Mpe={},Ipe={};const Dpe=(e,t)=>(Hle.trace("In isDecendant",t," ",e," = ",Mpe[t].includes(e)),!!Mpe[t].includes(e)),Npe=(e,t,n,r)=>{Hle.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const i=t.children(e)||[];e!==r&&i.push(e),Hle.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(i=>{if(t.children(i).length>0)Npe(i,t,n,r);else{const o=t.node(i);Hle.info("cp ",i," to ",r," with parent ",e),n.setNode(i,o),r!==t.parent(i)&&(Hle.warn("Setting parent",i,t.parent(i)),n.setParent(i,t.parent(i))),e!==r&&i!==e?(Hle.debug("Setting parent",i,e),n.setParent(i,e)):(Hle.info("In copy ",e,"root",r,"data",t.node(e),r),Hle.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const a=t.edges(i);Hle.debug("Copying Edges",a),a.forEach(i=>{Hle.info("Edge",i);const o=t.edge(i.v,i.w,i.name);Hle.info("Edge data",o,r);try{((e,t)=>(Hle.info("Decendants of ",t," is ",Mpe[t]),Hle.info("Edge is ",e),e.v!==t&&e.w!==t&&(Mpe[t]?Mpe[t].includes(e.v)||Dpe(e.v,t)||Dpe(e.w,t)||Mpe[t].includes(e.w):(Hle.debug("Tilt, ",t,",not in decendants"),!1))))(i,r)?(Hle.info("Copying as ",i.v,i.w,o,i.name),n.setEdge(i.v,i.w,o,i.name),Hle.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):Hle.info("Skipping copy of edge ",i.v,"--\x3e",i.w," rootId: ",r," clusterId:",e)}catch(e){Hle.error(e)}})}Hle.debug("Removing node",i),t.removeNode(i)})},Rpe=(e,t)=>{const n=t.children(e);let r=[...n];for(const i of n)Ipe[i]=e,r=[...r,...Rpe(i,t)];return r},Lpe=(e,t)=>{Hle.trace("Searching",e);const n=t.children(e);if(Hle.trace("Searching children of id ",e,n),n.length<1)return Hle.trace("This is a valid node",e),e;for(const r of n){const n=Lpe(r,t);if(n)return Hle.trace("Found replacement for",e," => ",n),n}},Bpe=e=>Ope[e]&&Ope[e].externalConnections&&Ope[e]?Ope[e].id:e,Ppe=(e,t)=>{if(Hle.warn("extractor - ",t,mle(e),e.children("D")),t>10)return void Hle.error("Bailing out");let n=e.nodes(),r=!1;for(const i of n){const t=e.children(i);r=r||t.length>0}if(r){Hle.debug("Nodes = ",n,t);for(const r of n)if(Hle.debug("Extracting node",r,Ope,Ope[r]&&!Ope[r].externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",t),Ope[r])if(!Ope[r].externalConnections&&e.children(r)&&e.children(r).length>0){Hle.warn("Cluster without external connections, without a parent and with children",r,t);let n="TB"===e.graph().rankdir?"LR":"TB";Ope[r]&&Ope[r].clusterData&&Ope[r].clusterData.dir&&(n=Ope[r].clusterData.dir,Hle.warn("Fixing dir",Ope[r].clusterData.dir,n));const i=new Wae({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});Hle.warn("Old graph before copy",mle(e)),Npe(r,e,i,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:Ope[r].clusterData,labelText:Ope[r].labelText,graph:i}),Hle.warn("New graph after copy node: (",r,")",mle(i)),Hle.debug("Old graph after copy",mle(e))}else Hle.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!Ope[r].externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),t),Hle.debug(Ope);else Hle.debug("Not a cluster",r,t);n=e.nodes(),Hle.warn("New list of nodes",n);for(const r of n){const n=e.node(r);Hle.warn(" Now next level",r,n),n.clusterNode&&Ppe(n.graph,t+1)}}else Hle.debug("Done, no node has children",e.nodes())},Fpe=(e,t)=>{if(0===t.length)return[];let n=Object.assign(t);return t.forEach(t=>{const r=e.children(t),i=Fpe(e,r);n=[...n,...i]}),n};function $pe(e,t,n,r){var i=e.x,o=e.y,a=i-r.x,s=o-r.y,l=Math.sqrt(t*t*s*s+n*n*a*a),c=Math.abs(t*n*a/l);r.x<i&&(c=-c);var u=Math.abs(t*n*s/l);return r.y<o&&(u=-u),{x:i+c,y:o+u}}function jpe(e,t,n,r){var i,o,a,s,l,c,u,d,h,f,p,g,m;if(i=t.y-e.y,a=e.x-t.x,l=t.x*e.y-e.x*t.y,h=i*n.x+a*n.y+l,f=i*r.x+a*r.y+l,!(0!==h&&0!==f&&Hpe(h,f)||(o=r.y-n.y,s=n.x-r.x,c=r.x*n.y-n.x*r.y,u=o*e.x+s*e.y+c,d=o*t.x+s*t.y+c,0!==u&&0!==d&&Hpe(u,d)||0==(p=i*s-o*a))))return g=Math.abs(p/2),{x:(m=a*c-s*l)<0?(m-g)/p:(m+g)/p,y:(m=o*l-i*c)<0?(m-g)/p:(m+g)/p}}function Hpe(e,t){return e*t>0}const Upe=(e,t)=>{var n,r,i=e.x,o=e.y,a=t.x-i,s=t.y-o,l=e.width/2,c=e.height/2;return Math.abs(s)*l>Math.abs(a)*c?(s<0&&(c=-c),n=0===s?0:c*a/s,r=c):(a<0&&(l=-l),n=l,r=0===a?0:l*s/a),{x:i+n,y:o+r}},Qpe={node:function(e,t){return e.intersect(t)},circle:function(e,t,n){return $pe(e,t,t,n)},ellipse:$pe,polygon:function(e,t,n){var r=e.x,i=e.y,o=[],a=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof t.forEach?t.forEach(function(e){a=Math.min(a,e.x),s=Math.min(s,e.y)}):(a=Math.min(a,t.x),s=Math.min(s,t.y));for(var l=r-e.width/2-a,c=i-e.height/2-s,u=0;u<t.length;u++){var d=t[u],h=t[u<t.length-1?u+1:0],f=jpe(e,n,{x:l+d.x,y:c+d.y},{x:l+h.x,y:c+h.y});f&&o.push(f)}return o.length?(o.length>1&&o.sort(function(e,t){var r=e.x-n.x,i=e.y-n.y,o=Math.sqrt(r*r+i*i),a=t.x-n.x,s=t.y-n.y,l=Math.sqrt(a*a+s*s);return o<l?-1:o===l?0:1}),o[0]):e},rect:Upe},zpe=(e,t)=>{const{shapeSvg:n,bbox:r,halfPadding:i}=Cpe(e,t,"node "+t.classes,!0);Hle.info("Classes = ",t.classes);const o=n.insert("rect",":first-child");return o.attr("rx",t.rx).attr("ry",t.ry).attr("x",-r.width/2-i).attr("y",-r.height/2-i).attr("width",r.width+t.padding).attr("height",r.height+t.padding),Tpe(t,o),t.intersect=function(e){return Qpe.rect(t,e)},n},Wpe=(e,t)=>{const{shapeSvg:n,bbox:r}=Cpe(e,t,void 0,!0),i=r.width+t.padding+(r.height+t.padding),o=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}];Hle.info("Question main (Circle)");const a=kpe(n,i,i,o);return a.attr("style",t.style),Tpe(t,a),t.intersect=function(e){return Hle.warn("Intersect called"),Qpe.polygon(t,o,e)},n};function Gpe(e,t,n,r){const i=[],o=e=>{i.push(e,0)},a=e=>{i.push(0,e)};t.includes("t")?(Hle.debug("add top border"),o(n)):a(n),t.includes("r")?(Hle.debug("add right border"),o(r)):a(r),t.includes("b")?(Hle.debug("add bottom border"),o(n)):a(n),t.includes("l")?(Hle.debug("add left border"),o(r)):a(r),e.attr("stroke-dasharray",i.join(" "))}const Vpe=(e,t,n)=>{const r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let i=70,o=10;"LR"===n&&(i=10,o=70);const a=r.append("rect").attr("x",-1*i/2).attr("y",-1*o/2).attr("width",i).attr("height",o).attr("class","fork-join");return Tpe(t,a),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(e){return Qpe.rect(t,e)},r},Kpe={rhombus:Wpe,question:Wpe,rect:(e,t)=>{const{shapeSvg:n,bbox:r,halfPadding:i}=Cpe(e,t,"node "+t.classes,!0);Hle.trace("Classes = ",t.classes);const o=n.insert("rect",":first-child"),a=r.width+t.padding,s=r.height+t.padding;if(o.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",-r.width/2-i).attr("y",-r.height/2-i).attr("width",a).attr("height",s),t.props){const e=new Set(Object.keys(t.props));t.props.borders&&(Gpe(o,t.props.borders,a,s),e.delete("borders")),e.forEach(e=>{Hle.warn(`Unknown node property ${e}`)})}return Tpe(t,o),t.intersect=function(e){return Qpe.rect(t,e)},n},labelRect:(e,t)=>{const{shapeSvg:n}=Cpe(e,t,"label",!0);Hle.trace("Classes = ",t.classes);const r=n.insert("rect",":first-child");if(r.attr("width",0).attr("height",0),n.attr("class","label edgeLabel"),t.props){const e=new Set(Object.keys(t.props));t.props.borders&&(Gpe(r,t.props.borders,0,0),e.delete("borders")),e.forEach(e=>{Hle.warn(`Unknown node property ${e}`)})}return Tpe(t,r),t.intersect=function(e){return Qpe.rect(t,e)},n},rectWithTitle:(e,t)=>{let n;n=t.classes?"node "+t.classes:"node default";const r=e.insert("g").attr("class",n).attr("id",t.domId||t.id),i=r.insert("rect",":first-child"),o=r.insert("line"),a=r.insert("g").attr("class","label"),s=t.labelText.flat?t.labelText.flat():t.labelText;let l="";l="object"==typeof s?s[0]:s,Hle.info("Label text abc79",l,s,"object"==typeof s);const c=a.node().appendChild(Spe(l,t.labelStyle,!0,!0));let u={width:0,height:0};if(qle(bde().flowchart.htmlLabels)){const e=c.children[0],t=b3(c);u=e.getBoundingClientRect(),t.attr("width",u.width),t.attr("height",u.height)}Hle.info("Text 2",s);const d=s.slice(1,s.length);let h=c.getBBox();const f=a.node().appendChild(Spe(d.join?d.join("<br/>"):d,t.labelStyle,!0,!0));if(qle(bde().flowchart.htmlLabels)){const e=f.children[0],t=b3(f);u=e.getBoundingClientRect(),t.attr("width",u.width),t.attr("height",u.height)}const p=t.padding/2;return b3(f).attr("transform","translate( "+(u.width>h.width?0:(h.width-u.width)/2)+", "+(h.height+p+5)+")"),b3(c).attr("transform","translate( "+(u.width<h.width?0:-(h.width-u.width)/2)+", 0)"),u=a.node().getBBox(),a.attr("transform","translate("+-u.width/2+", "+(-u.height/2-p+3)+")"),i.attr("class","outer title-state").attr("x",-u.width/2-p).attr("y",-u.height/2-p).attr("width",u.width+t.padding).attr("height",u.height+t.padding),o.attr("class","divider").attr("x1",-u.width/2-p).attr("x2",u.width/2+p).attr("y1",-u.height/2-p+h.height+p).attr("y2",-u.height/2-p+h.height+p),Tpe(t,i),t.intersect=function(e){return Qpe.rect(t,e)},r},choice:(e,t)=>{const n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),r=[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}];return n.insert("polygon",":first-child").attr("points",r.map(function(e){return e.x+","+e.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(e){return Qpe.circle(t,14,e)},n},circle:(e,t)=>{const{shapeSvg:n,bbox:r,halfPadding:i}=Cpe(e,t,void 0,!0),o=n.insert("circle",":first-child");return o.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",r.width/2+i).attr("width",r.width+t.padding).attr("height",r.height+t.padding),Hle.info("Circle main"),Tpe(t,o),t.intersect=function(e){return Hle.info("Circle intersect",t,r.width/2+i,e),Qpe.circle(t,r.width/2+i,e)},n},doublecircle:(e,t)=>{const{shapeSvg:n,bbox:r,halfPadding:i}=Cpe(e,t,void 0,!0),o=n.insert("g",":first-child"),a=o.insert("circle"),s=o.insert("circle");return a.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",r.width/2+i+5).attr("width",r.width+t.padding+10).attr("height",r.height+t.padding+10),s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",r.width/2+i).attr("width",r.width+t.padding).attr("height",r.height+t.padding),Hle.info("DoubleCircle main"),Tpe(t,a),t.intersect=function(e){return Hle.info("DoubleCircle intersect",t,r.width/2+i+5,e),Qpe.circle(t,r.width/2+i+5,e)},n},stadium:(e,t)=>{const{shapeSvg:n,bbox:r}=Cpe(e,t,void 0,!0),i=r.height+t.padding,o=r.width+i/4+t.padding,a=n.insert("rect",":first-child").attr("style",t.style).attr("rx",i/2).attr("ry",i/2).attr("x",-o/2).attr("y",-i/2).attr("width",o).attr("height",i);return Tpe(t,a),t.intersect=function(e){return Qpe.rect(t,e)},n},hexagon:(e,t)=>{const{shapeSvg:n,bbox:r}=Cpe(e,t,void 0,!0),i=r.height+t.padding,o=i/4,a=r.width+2*o+t.padding,s=[{x:o,y:0},{x:a-o,y:0},{x:a,y:-i/2},{x:a-o,y:-i},{x:o,y:-i},{x:0,y:-i/2}],l=kpe(n,a,i,s);return l.attr("style",t.style),Tpe(t,l),t.intersect=function(e){return Qpe.polygon(t,s,e)},n},rect_left_inv_arrow:(e,t)=>{const{shapeSvg:n,bbox:r}=Cpe(e,t,void 0,!0),i=r.width+t.padding,o=r.height+t.padding,a=[{x:-o/2,y:0},{x:i,y:0},{x:i,y:-o},{x:-o/2,y:-o},{x:0,y:-o/2}];return kpe(n,i,o,a).attr("style",t.style),t.width=i+o,t.height=o,t.intersect=function(e){return Qpe.polygon(t,a,e)},n},lean_right:(e,t)=>{const{shapeSvg:n,bbox:r}=Cpe(e,t,void 0,!0),i=r.width+t.padding,o=r.height+t.padding,a=[{x:-2*o/6,y:0},{x:i-o/6,y:0},{x:i+2*o/6,y:-o},{x:o/6,y:-o}],s=kpe(n,i,o,a);return s.attr("style",t.style),Tpe(t,s),t.intersect=function(e){return Qpe.polygon(t,a,e)},n},lean_left:(e,t)=>{const{shapeSvg:n,bbox:r}=Cpe(e,t,void 0,!0),i=r.width+t.padding,o=r.height+t.padding,a=[{x:2*o/6,y:0},{x:i+o/6,y:0},{x:i-2*o/6,y:-o},{x:-o/6,y:-o}],s=kpe(n,i,o,a);return s.attr("style",t.style),Tpe(t,s),t.intersect=function(e){return Qpe.polygon(t,a,e)},n},trapezoid:(e,t)=>{const{shapeSvg:n,bbox:r}=Cpe(e,t,void 0,!0),i=r.width+t.padding,o=r.height+t.padding,a=[{x:-2*o/6,y:0},{x:i+2*o/6,y:0},{x:i-o/6,y:-o},{x:o/6,y:-o}],s=kpe(n,i,o,a);return s.attr("style",t.style),Tpe(t,s),t.intersect=function(e){return Qpe.polygon(t,a,e)},n},inv_trapezoid:(e,t)=>{const{shapeSvg:n,bbox:r}=Cpe(e,t,void 0,!0),i=r.width+t.padding,o=r.height+t.padding,a=[{x:o/6,y:0},{x:i-o/6,y:0},{x:i+2*o/6,y:-o},{x:-2*o/6,y:-o}],s=kpe(n,i,o,a);return s.attr("style",t.style),Tpe(t,s),t.intersect=function(e){return Qpe.polygon(t,a,e)},n},rect_right_inv_arrow:(e,t)=>{const{shapeSvg:n,bbox:r}=Cpe(e,t,void 0,!0),i=r.width+t.padding,o=r.height+t.padding,a=[{x:0,y:0},{x:i+o/2,y:0},{x:i,y:-o/2},{x:i+o/2,y:-o},{x:0,y:-o}],s=kpe(n,i,o,a);return s.attr("style",t.style),Tpe(t,s),t.intersect=function(e){return Qpe.polygon(t,a,e)},n},cylinder:(e,t)=>{const{shapeSvg:n,bbox:r}=Cpe(e,t,void 0,!0),i=r.width+t.padding,o=i/2,a=o/(2.5+i/50),s=r.height+a+t.padding,l="M 0,"+a+" a "+o+","+a+" 0,0,0 "+i+" 0 a "+o+","+a+" 0,0,0 "+-i+" 0 l 0,"+s+" a "+o+","+a+" 0,0,0 "+i+" 0 l 0,"+-s,c=n.attr("label-offset-y",a).insert("path",":first-child").attr("style",t.style).attr("d",l).attr("transform","translate("+-i/2+","+-(s/2+a)+")");return Tpe(t,c),t.intersect=function(e){const n=Qpe.rect(t,e),r=n.x-t.x;if(0!=o&&(Math.abs(r)<t.width/2||Math.abs(r)==t.width/2&&Math.abs(n.y-t.y)>t.height/2-a)){let i=a*a*(1-r*r/(o*o));0!=i&&(i=Math.sqrt(i)),i=a-i,e.y-t.y>0&&(i=-i),n.y+=i}return n},n},start:(e,t)=>{const n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),r=n.insert("circle",":first-child");return r.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Tpe(t,r),t.intersect=function(e){return Qpe.circle(t,7,e)},n},end:(e,t)=>{const n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),r=n.insert("circle",":first-child"),i=n.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),r.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),Tpe(t,i),t.intersect=function(e){return Qpe.circle(t,7,e)},n},note:zpe,subroutine:(e,t)=>{const{shapeSvg:n,bbox:r}=Cpe(e,t,void 0,!0),i=r.width+t.padding,o=r.height+t.padding,a=[{x:0,y:0},{x:i,y:0},{x:i,y:-o},{x:0,y:-o},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-o},{x:-8,y:-o},{x:-8,y:0}],s=kpe(n,i,o,a);return s.attr("style",t.style),Tpe(t,s),t.intersect=function(e){return Qpe.polygon(t,a,e)},n},fork:Vpe,join:Vpe,class_box:(e,t)=>{const n=t.padding/2;let r;r=t.classes?"node "+t.classes:"node default";const i=e.insert("g").attr("class",r).attr("id",t.domId||t.id),o=i.insert("rect",":first-child"),a=i.insert("line"),s=i.insert("line");let l=0,c=4;const u=i.insert("g").attr("class","label");let d=0;const h=t.classData.annotations&&t.classData.annotations[0],f=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",p=u.node().appendChild(Spe(f,t.labelStyle,!0,!0));let g=p.getBBox();if(qle(bde().flowchart.htmlLabels)){const e=p.children[0],t=b3(p);g=e.getBoundingClientRect(),t.attr("width",g.width),t.attr("height",g.height)}t.classData.annotations[0]&&(c+=g.height+4,l+=g.width);let m=t.classData.id;void 0!==t.classData.type&&""!==t.classData.type&&(bde().flowchart.htmlLabels?m+="&lt;"+t.classData.type+"&gt;":m+="<"+t.classData.type+">");const v=u.node().appendChild(Spe(m,t.labelStyle,!0,!0));b3(v).attr("class","classTitle");let A=v.getBBox();if(qle(bde().flowchart.htmlLabels)){const e=v.children[0],t=b3(v);A=e.getBoundingClientRect(),t.attr("width",A.width),t.attr("height",A.height)}c+=A.height+4,A.width>l&&(l=A.width);const b=[];t.classData.members.forEach(e=>{const n=dpe(e);let r=n.displayText;bde().flowchart.htmlLabels&&(r=r.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const i=u.node().appendChild(Spe(r,n.cssStyle?n.cssStyle:t.labelStyle,!0,!0));let o=i.getBBox();if(qle(bde().flowchart.htmlLabels)){const e=i.children[0],t=b3(i);o=e.getBoundingClientRect(),t.attr("width",o.width),t.attr("height",o.height)}o.width>l&&(l=o.width),c+=o.height+4,b.push(i)}),c+=8;const y=[];if(t.classData.methods.forEach(e=>{const n=dpe(e);let r=n.displayText;bde().flowchart.htmlLabels&&(r=r.replace(/</g,"&lt;").replace(/>/g,"&gt;"));const i=u.node().appendChild(Spe(r,n.cssStyle?n.cssStyle:t.labelStyle,!0,!0));let o=i.getBBox();if(qle(bde().flowchart.htmlLabels)){const e=i.children[0],t=b3(i);o=e.getBoundingClientRect(),t.attr("width",o.width),t.attr("height",o.height)}o.width>l&&(l=o.width),c+=o.height+4,y.push(i)}),c+=8,h){let e=(l-g.width)/2;b3(p).attr("transform","translate( "+(-1*l/2+e)+", "+-1*c/2+")"),d=g.height+4}let w=(l-A.width)/2;return b3(v).attr("transform","translate( "+(-1*l/2+w)+", "+(-1*c/2+d)+")"),d+=A.height+4,a.attr("class","divider").attr("x1",-l/2-n).attr("x2",l/2+n).attr("y1",-c/2-n+8+d).attr("y2",-c/2-n+8+d),d+=8,b.forEach(e=>{b3(e).attr("transform","translate( "+-l/2+", "+(-1*c/2+d+4)+")"),d+=A.height+4}),d+=8,s.attr("class","divider").attr("x1",-l/2-n).attr("x2",l/2+n).attr("y1",-c/2-n+8+d).attr("y2",-c/2-n+8+d),d+=8,y.forEach(e=>{b3(e).attr("transform","translate( "+-l/2+", "+(-1*c/2+d)+")"),d+=A.height+4}),o.attr("class","outer title-state").attr("x",-l/2-n).attr("y",-c/2-n).attr("width",l+t.padding).attr("height",c+t.padding),Tpe(t,o),t.intersect=function(e){return Qpe.rect(t,e)},i}};let Ype={};const qpe=(e,t,n)=>{let r,i;if(t.link){let o;"sandbox"===bde().securityLevel?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),r=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o),i=Kpe[t.shape](r,t,n)}else i=Kpe[t.shape](e,t,n),r=i;return t.tooltip&&i.attr("title",t.tooltip),t.class&&i.attr("class","node default "+t.class),Ype[t.id]=r,t.haveCallback&&Ype[t.id].attr("class",Ype[t.id].attr("class")+" clickable"),r},Xpe=e=>{const t=Ype[e.id];Hle.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const n=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+n-e.width/2)+", "+(e.y-e.height/2-8)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),n},Jpe={rect:(e,t)=>{Hle.trace("Creating subgraph rect for ",t.id,t);const n=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),r=n.insert("rect",":first-child"),i=n.insert("g").attr("class","cluster-label"),o=i.node().appendChild(Spe(t.labelText,t.labelStyle,void 0,!0));let a=o.getBBox();if(qle(bde().flowchart.htmlLabels)){const e=o.children[0],t=b3(o);a=e.getBoundingClientRect(),t.attr("width",a.width),t.attr("height",a.height)}const s=0*t.padding,l=s/2,c=t.width<=a.width+s?a.width+s:t.width;t.width<=a.width+s?t.diff=(a.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,Hle.trace("Data ",t,JSON.stringify(t)),r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-c/2).attr("y",t.y-t.height/2-l).attr("width",c).attr("height",t.height+s),i.attr("transform","translate("+(t.x-a.width/2)+", "+(t.y-t.height/2)+")");const u=r.node().getBBox();return t.width=u.width,t.height=u.height,t.intersect=function(e){return Upe(t,e)},n},roundedWithTitle:(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),i=n.insert("g").attr("class","cluster-label"),o=n.append("rect"),a=i.node().appendChild(Spe(t.labelText,t.labelStyle,void 0,!0));let s=a.getBBox();if(qle(bde().flowchart.htmlLabels)){const e=a.children[0],t=b3(a);s=e.getBoundingClientRect(),t.attr("width",s.width),t.attr("height",s.height)}s=a.getBBox();const l=0*t.padding,c=l/2,u=t.width<=s.width+t.padding?s.width+t.padding:t.width;t.width<=s.width+t.padding?t.diff=(s.width+0*t.padding-t.width)/2:t.diff=-t.padding/2,r.attr("class","outer").attr("x",t.x-u/2-c).attr("y",t.y-t.height/2-c).attr("width",u+l).attr("height",t.height+l),o.attr("class","inner").attr("x",t.x-u/2-c).attr("y",t.y-t.height/2-c+s.height-1).attr("width",u+l).attr("height",t.height+l-s.height-3),i.attr("transform","translate("+(t.x-s.width/2)+", "+(t.y-t.height/2-t.padding/3+(qle(bde().flowchart.htmlLabels)?5:3))+")");const d=r.node().getBBox();return t.height=d.height,t.intersect=function(e){return Upe(t,e)},n},noteGroup:(e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,o=i/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");const a=r.node().getBBox();return t.width=a.width,t.height=a.height,t.intersect=function(e){return Upe(t,e)},n},divider:(e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),r=n.insert("rect",":first-child"),i=0*t.padding,o=i/2;r.attr("class","divider").attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2).attr("width",t.width+i).attr("height",t.height+i);const a=r.node().getBBox();return t.width=a.width,t.height=a.height,t.diff=-t.padding/2,t.intersect=function(e){return Upe(t,e)},n}};let Zpe={},ege={},tge={};const nge=(e,t)=>{const n=Spe(t.label,t.labelStyle),r=e.insert("g").attr("class","edgeLabel"),i=r.insert("g").attr("class","label");i.node().appendChild(n);let o,a=n.getBBox();if(qle(bde().flowchart.htmlLabels)){const e=n.children[0],t=b3(n);a=e.getBoundingClientRect(),t.attr("width",a.width),t.attr("height",a.height)}if(i.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),ege[t.id]=r,t.width=a.width,t.height=a.height,t.startLabelLeft){const n=Spe(t.startLabelLeft,t.labelStyle),r=e.insert("g").attr("class","edgeTerminals"),i=r.insert("g").attr("class","inner");o=i.node().appendChild(n);const a=n.getBBox();i.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),tge[t.id]||(tge[t.id]={}),tge[t.id].startLeft=r,rge(o,t.startLabelLeft)}if(t.startLabelRight){const n=Spe(t.startLabelRight,t.labelStyle),r=e.insert("g").attr("class","edgeTerminals"),i=r.insert("g").attr("class","inner");o=r.node().appendChild(n),i.node().appendChild(n);const a=n.getBBox();i.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),tge[t.id]||(tge[t.id]={}),tge[t.id].startRight=r,rge(o,t.startLabelRight)}if(t.endLabelLeft){const n=Spe(t.endLabelLeft,t.labelStyle),r=e.insert("g").attr("class","edgeTerminals"),i=r.insert("g").attr("class","inner");o=i.node().appendChild(n);const a=n.getBBox();i.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),r.node().appendChild(n),tge[t.id]||(tge[t.id]={}),tge[t.id].endLeft=r,rge(o,t.endLabelLeft)}if(t.endLabelRight){const n=Spe(t.endLabelRight,t.labelStyle),r=e.insert("g").attr("class","edgeTerminals"),i=r.insert("g").attr("class","inner");o=i.node().appendChild(n);const a=n.getBBox();i.attr("transform","translate("+-a.width/2+", "+-a.height/2+")"),r.node().appendChild(n),tge[t.id]||(tge[t.id]={}),tge[t.id].endRight=r,rge(o,t.endLabelRight)}return n};function rge(e,t){bde().flowchart.htmlLabels&&e&&(e.style.width=9*t.length+"px",e.style.height="12px")}const ige=(e,t)=>{Hle.warn("abc88 cutPathAtIntersect",e,t);let n=[],r=e[0],i=!1;return e.forEach(e=>{if(Hle.info("abc88 checking point",e,t),((e,t)=>{const n=e.x,r=e.y,i=Math.abs(t.x-n),o=Math.abs(t.y-r),a=e.width/2,s=e.height/2;return i>=a||o>=s})(t,e)||i)Hle.warn("abc88 outside",e,r),r=e,i||n.push(e);else{const o=((e,t,n)=>{Hle.warn(`intersection calc abc89:\n  outsidePoint: ${JSON.stringify(t)}\n  insidePoint : ${JSON.stringify(n)}\n  node        : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const r=e.x,i=e.y,o=Math.abs(r-n.x),a=e.width/2;let s=n.x<t.x?a-o:a+o;const l=e.height/2,c=Math.abs(t.y-n.y),u=Math.abs(t.x-n.x);if(Math.abs(i-t.y)*a>Math.abs(r-t.x)*l){let e=n.y<t.y?t.y-l-i:i-l-t.y;s=u*e/c;const r={x:n.x<t.x?n.x+s:n.x-u+s,y:n.y<t.y?n.y+c-e:n.y-c+e};return 0===s&&(r.x=t.x,r.y=t.y),0===u&&(r.x=t.x),0===c&&(r.y=t.y),Hle.warn(`abc89 topp/bott calc, Q ${c}, q ${e}, R ${u}, r ${s}`,r),r}{s=n.x<t.x?t.x-a-r:r-a-t.x;let e=c*s/u,i=n.x<t.x?n.x+u-s:n.x-u+s,o=n.y<t.y?n.y+e:n.y-e;return Hle.warn(`sides calc abc89, Q ${c}, q ${e}, R ${u}, r ${s}`,{_x:i,_y:o}),0===s&&(i=t.x,o=t.y),0===u&&(i=t.x),0===c&&(o=t.y),{x:i,y:o}}})(t,r,e);Hle.warn("abc88 inside",e,r,o),Hle.warn("abc88 intersection",o);let a=!1;n.forEach(e=>{a=a||e.x===o.x&&e.y===o.y}),n.some(e=>e.x===o.x&&e.y===o.y)?Hle.warn("abc88 no intersect",o,n):n.push(o),i=!0}}),Hle.warn("abc88 returning points",n),n},oge=(e,t,n,r)=>{Hle.info("Graph in recursive render: XXX",mle(t),r);const i=t.graph().rankdir;Hle.trace("Dir in recursive render - dir:",i);const o=e.insert("g").attr("class","root");t.nodes()?Hle.info("Recursive render XXX",t.nodes()):Hle.info("No nodes found for",t),t.edges().length>0&&Hle.trace("Recursive edges",t.edge(t.edges()[0]));const a=o.insert("g").attr("class","clusters"),s=o.insert("g").attr("class","edgePaths"),l=o.insert("g").attr("class","edgeLabels"),c=o.insert("g").attr("class","nodes");t.nodes().forEach(function(e){const o=t.node(e);if(void 0!==r){const n=JSON.parse(JSON.stringify(r.clusterData));Hle.info("Setting data for cluster XXX (",e,") ",n,r),t.setNode(r.id,n),t.parent(e)||(Hle.trace("Setting parent",e,r.id),t.setParent(e,r.id,n))}if(Hle.info("(Insert) Node XXX"+e+": "+JSON.stringify(t.node(e))),o&&o.clusterNode){Hle.info("Cluster identified",e,o.width,t.node(e));const r=oge(c,o.graph,n,t.node(e)),i=r.elem;Tpe(o,i),o.diff=r.diff||0,Hle.info("Node bounds (abc123)",e,o,o.width,o.x,o.y),((e,t)=>{Ype[t.id]=e})(i,o),Hle.warn("Recursive render complete ",i,o)}else t.children(e).length>0?(Hle.info("Cluster - the non recursive path XXX",e,o.id,o,t),Hle.info(Lpe(o.id,t)),Ope[o.id]={id:Lpe(o.id,t),node:o}):(Hle.info("Node - the non recursive path",e,o.id,o),qpe(c,t.node(e),i))}),t.edges().forEach(function(e){const n=t.edge(e.v,e.w,e.name);Hle.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),Hle.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(t.edge(e))),Hle.info("Fix",Ope,"ids:",e.v,e.w,"Translateing: ",Ope[e.v],Ope[e.w]),nge(l,n)}),t.edges().forEach(function(e){Hle.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e))}),Hle.info("#############################################"),Hle.info("###                Layout                 ###"),Hle.info("#############################################"),Hle.info(t),ole(t),Hle.info("Graph after layout:",mle(t));let u=0;return(e=>Fpe(e,e.children()))(t).forEach(function(e){const n=t.node(e);Hle.info("Position "+e+": "+JSON.stringify(t.node(e))),Hle.info("Position "+e+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),n&&n.clusterNode?Xpe(n):t.children(e).length>0?(((e,t)=>{Hle.trace("Inserting cluster");const n=t.shape||"rect";Zpe[t.id]=Jpe[n](e,t)})(a,n),Ope[n.id].node=n):Xpe(n)}),t.edges().forEach(function(e){const r=t.edge(e);Hle.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(r),r);const i=function(e,t,n,r,i,o){let a=n.points,s=!1;const l=o.node(t.v);var c=o.node(t.w);Hle.info("abc88 InsertEdge: ",n),c.intersect&&l.intersect&&(a=a.slice(1,n.points.length-1),a.unshift(l.intersect(a[0])),Hle.info("Last point",a[a.length-1],c,c.intersect(a[a.length-1])),a.push(c.intersect(a[a.length-1]))),n.toCluster&&(Hle.info("to cluster abc88",r[n.toCluster]),a=ige(n.points,r[n.toCluster].node),s=!0),n.fromCluster&&(Hle.info("from cluster abc88",r[n.fromCluster]),a=ige(a.reverse(),r[n.fromCluster].node).reverse(),s=!0);const u=a.filter(e=>!Number.isNaN(e.y));let d;d=("graph"===i||"flowchart"===i)&&n.curve||cee;const h=nee().x(function(e){return e.x}).y(function(e){return e.y}).curve(d);let f;switch(n.thickness){case"normal":f="edge-thickness-normal";break;case"thick":f="edge-thickness-thick";break;default:f=""}switch(n.pattern){case"solid":f+=" edge-pattern-solid";break;case"dotted":f+=" edge-pattern-dotted";break;case"dashed":f+=" edge-pattern-dashed"}const p=e.append("path").attr("d",h(u)).attr("id",n.id).attr("class"," "+f+(n.classes?" "+n.classes:"")).attr("style",n.style);let g="";switch((bde().flowchart.arrowMarkerAbsolute||bde().state.arrowMarkerAbsolute)&&(g=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,g=g.replace(/\(/g,"\\("),g=g.replace(/\)/g,"\\)")),Hle.info("arrowTypeStart",n.arrowTypeStart),Hle.info("arrowTypeEnd",n.arrowTypeEnd),n.arrowTypeStart){case"arrow_cross":p.attr("marker-start","url("+g+"#"+i+"-crossStart)");break;case"arrow_point":p.attr("marker-start","url("+g+"#"+i+"-pointStart)");break;case"arrow_barb":p.attr("marker-start","url("+g+"#"+i+"-barbStart)");break;case"arrow_circle":p.attr("marker-start","url("+g+"#"+i+"-circleStart)");break;case"aggregation":p.attr("marker-start","url("+g+"#"+i+"-aggregationStart)");break;case"extension":p.attr("marker-start","url("+g+"#"+i+"-extensionStart)");break;case"composition":p.attr("marker-start","url("+g+"#"+i+"-compositionStart)");break;case"dependency":p.attr("marker-start","url("+g+"#"+i+"-dependencyStart)");break;case"lollipop":p.attr("marker-start","url("+g+"#"+i+"-lollipopStart)")}switch(n.arrowTypeEnd){case"arrow_cross":p.attr("marker-end","url("+g+"#"+i+"-crossEnd)");break;case"arrow_point":p.attr("marker-end","url("+g+"#"+i+"-pointEnd)");break;case"arrow_barb":p.attr("marker-end","url("+g+"#"+i+"-barbEnd)");break;case"arrow_circle":p.attr("marker-end","url("+g+"#"+i+"-circleEnd)");break;case"aggregation":p.attr("marker-end","url("+g+"#"+i+"-aggregationEnd)");break;case"extension":p.attr("marker-end","url("+g+"#"+i+"-extensionEnd)");break;case"composition":p.attr("marker-end","url("+g+"#"+i+"-compositionEnd)");break;case"dependency":p.attr("marker-end","url("+g+"#"+i+"-dependencyEnd)");break;case"lollipop":p.attr("marker-end","url("+g+"#"+i+"-lollipopEnd)")}let m={};return s&&(m.updatedPath=a),m.originalPath=n.points,m}(s,e,r,Ope,n,t);((e,t)=>{Hle.info("Moving label abc78 ",e.id,e.label,ege[e.id]);let n=t.updatedPath?t.updatedPath:t.originalPath;if(e.label){const r=ege[e.id];let i=e.x,o=e.y;if(n){const r=cde.calcLabelPosition(n);Hle.info("Moving label "+e.label+" from (",i,",",o,") to (",r.x,",",r.y,") abc78"),t.updatedPath&&(i=r.x,o=r.y)}r.attr("transform","translate("+i+", "+o+")")}if(e.startLabelLeft){const t=tge[e.id].startLeft;let r=e.x,i=e.y;if(n){const t=cde.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",n);r=t.x,i=t.y}t.attr("transform","translate("+r+", "+i+")")}if(e.startLabelRight){const t=tge[e.id].startRight;let r=e.x,i=e.y;if(n){const t=cde.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",n);r=t.x,i=t.y}t.attr("transform","translate("+r+", "+i+")")}if(e.endLabelLeft){const t=tge[e.id].endLeft;let r=e.x,i=e.y;if(n){const t=cde.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",n);r=t.x,i=t.y}t.attr("transform","translate("+r+", "+i+")")}if(e.endLabelRight){const t=tge[e.id].endRight;let r=e.x,i=e.y;if(n){const t=cde.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",n);r=t.x,i=t.y}t.attr("transform","translate("+r+", "+i+")")}})(r,i)}),t.nodes().forEach(function(e){const n=t.node(e);Hle.info(e,n.type,n.diff),"group"===n.type&&(u=n.diff)}),{elem:o,diff:u}},age=(e,t,n,r,i)=>{Epe(e,n,r,i),Ype={},ege={},tge={},Zpe={},Mpe={},Ipe={},Ope={},Hle.warn("Graph at first:",mle(t)),((e,t)=>{!e||t>10?Hle.debug("Opting out, no graph "):(Hle.debug("Opting in, graph "),e.nodes().forEach(function(t){e.children(t).length>0&&(Hle.warn("Cluster identified",t," Replacement id in edges: ",Lpe(t,e)),Mpe[t]=Rpe(t,e),Ope[t]={id:Lpe(t,e),clusterData:e.node(t)})}),e.nodes().forEach(function(t){const n=e.children(t),r=e.edges();n.length>0?(Hle.debug("Cluster identified",t,Mpe),r.forEach(e=>{e.v!==t&&e.w!==t&&Dpe(e.v,t)^Dpe(e.w,t)&&(Hle.warn("Edge: ",e," leaves cluster ",t),Hle.warn("Decendants of XXX ",t,": ",Mpe[t]),Ope[t].externalConnections=!0)})):Hle.debug("Not a cluster ",t,Mpe)}),e.edges().forEach(function(t){const n=e.edge(t);Hle.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),Hle.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let r=t.v,i=t.w;if(Hle.warn("Fix XXX",Ope,"ids:",t.v,t.w,"Translating: ",Ope[t.v]," --- ",Ope[t.w]),Ope[t.v]&&Ope[t.w]&&Ope[t.v]===Ope[t.w]){Hle.warn("Fixing and trixing link to self - removing XXX",t.v,t.w,t.name),Hle.warn("Fixing and trixing - removing XXX",t.v,t.w,t.name),r=Bpe(t.v),i=Bpe(t.w),e.removeEdge(t.v,t.w,t.name);const o=t.w+"---"+t.v;e.setNode(o,{domId:o,id:o,labelStyle:"",labelText:n.label,padding:0,shape:"labelRect",style:""});const a=JSON.parse(JSON.stringify(n)),s=JSON.parse(JSON.stringify(n));a.label="",a.arrowTypeEnd="none",s.label="",a.fromCluster=t.v,s.toCluster=t.v,e.setEdge(r,o,a,t.name+"-cyclic-special"),e.setEdge(o,i,s,t.name+"-cyclic-special")}else(Ope[t.v]||Ope[t.w])&&(Hle.warn("Fixing and trixing - removing XXX",t.v,t.w,t.name),r=Bpe(t.v),i=Bpe(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v&&(n.fromCluster=t.v),i!==t.w&&(n.toCluster=t.w),Hle.warn("Fix Replacing with XXX",r,i,t.name),e.setEdge(r,i,n,t.name))}),Hle.warn("Adjusted Graph",mle(e)),Ppe(e,0),Hle.trace(Ope))})(t),Hle.warn("Graph after:",mle(t)),oge(e,t,r)},sge=e=>Jle.sanitizeText(e,bde());let lge={dividerMargin:10,padding:5,textHeight:10};function cge(e){let t;switch(e){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}const uge={setConf:function(e){Object.keys(e).forEach(function(t){lge[t]=e[t]})},draw:function(e,t,n,r){Hle.info("Drawing class - ",t);const i=bde().flowchart,o=bde().securityLevel;Hle.info("config:",i);const a=i.nodeSpacing||50,s=i.rankSpacing||50,l=new Wae({multigraph:!0,compound:!0}).setGraph({rankdir:r.db.getDirection(),nodesep:a,ranksep:s,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),c=r.db.getClasses(),u=r.db.getRelations(),d=r.db.getNotes();let h;Hle.info(u),function(e,t,n,r){const i=Object.keys(e);Hle.info("keys:",i),Hle.info(e),i.forEach(function(n){const i=e[n];let o="";i.cssClasses.length>0&&(o=o+" "+i.cssClasses.join(" "));const a={labelStyle:""};let s=void 0!==i.text?i.text:i.id,l="";i.type,l="class_box",t.setNode(i.id,{labelStyle:a.labelStyle,shape:l,labelText:sge(s),classData:i,rx:0,ry:0,class:o,style:a.style,id:i.id,domId:i.domId,tooltip:r.db.getTooltip(i.id)||"",haveCallback:i.haveCallback,link:i.link,width:"group"===i.type?500:void 0,type:i.type,padding:bde().flowchart.padding}),Hle.info("setNode",{labelStyle:a.labelStyle,shape:l,labelText:s,rx:0,ry:0,class:o,style:a.style,id:i.id,width:"group"===i.type?500:void 0,type:i.type,padding:bde().flowchart.padding})})}(c,l,0,r),function(e,t){const n=bde().flowchart;let r=0;e.forEach(function(i){r++;const o={classes:"relation"};o.pattern=1==i.relation.lineType?"dashed":"solid",o.id="id"+r,"arrow_open"===i.type?o.arrowhead="none":o.arrowhead="normal",Hle.info(o,i),o.startLabelRight="none"===i.relationTitle1?"":i.relationTitle1,o.endLabelLeft="none"===i.relationTitle2?"":i.relationTitle2,o.arrowTypeStart=cge(i.relation.type1),o.arrowTypeEnd=cge(i.relation.type2);let a="",s="";if(void 0!==i.style){const e=Kue(i.style);a=e.style,s=e.labelStyle}else a="fill:none";o.style=a,o.labelStyle=s,void 0!==i.interpolate?o.curve=Gue(i.interpolate,Z9):void 0!==e.defaultInterpolate?o.curve=Gue(e.defaultInterpolate,Z9):o.curve=Gue(n.curve,Z9),i.text=i.title,void 0===i.text?void 0!==i.style&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",bde().flowchart.htmlLabels?(o.labelType="html",o.label='<span class="edgeLabel">'+i.text+"</span>"):(o.labelType="text",o.label=i.text.replace(Jle.lineBreakRegex,"\n"),void 0===i.style&&(o.style=o.style||"stroke: #333; stroke-width: 1.5px;fill:none"),o.labelStyle=o.labelStyle.replace("color:","fill:"))),t.setEdge(i.id1,i.id2,o,r)})}(u,l),function(e,t,n,r){Hle.info(e),e.forEach(function(e,i){const o=e,a="",s="";let l=o.text,c="note";if(t.setNode(o.id,{labelStyle:a,shape:c,labelText:sge(l),noteData:o,rx:0,ry:0,class:"",style:s,id:o.id,domId:o.id,tooltip:"",type:"note",padding:bde().flowchart.padding}),Hle.info("setNode",{labelStyle:a,shape:c,labelText:l,rx:0,ry:0,style:s,id:o.id,type:"note",padding:bde().flowchart.padding}),!o.class||!(o.class in r))return;const u=n+i,d={classes:"relation",pattern:"dotted"};d.id=`edgeNote${u}`,d.arrowhead="none",Hle.info(`Note edge: ${JSON.stringify(d)}, ${JSON.stringify(o)}`),d.startLabelRight="",d.endLabelLeft="",d.arrowTypeStart="none",d.arrowTypeEnd="none",d.style="fill:none",d.labelStyle="",d.curve=Gue(lge.curve,Z9),t.setEdge(o.id,o.class,d,u)})}(d,l,u.length+1,c),"sandbox"===o&&(h=b3("#i"+t));const f=b3("sandbox"===o?h.nodes()[0].contentDocument.body:"body"),p=f.select(`[id="${t}"]`),g=f.select("#"+t+" g");if(age(g,l,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",t),cde.insertTitle(p,"classTitleText",i.titleTopMargin,r.db.getDiagramTitle()),Tde(l,p,i.diagramPadding,i.useMaxWidth),!i.htmlLabels){const e="sandbox"===o?h.nodes()[0].contentDocument:document,n=e.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const t of n){const n=t.getBBox(),r=e.createElementNS("http://www.w3.org/2000/svg","rect");r.setAttribute("rx",0),r.setAttribute("ry",0),r.setAttribute("width",n.width),r.setAttribute("height",n.height),t.insertBefore(r,t.firstChild)}}}};var dge=function(){var e,t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[1,2],r=[1,5],i=[6,9,11,23,25,27,29,30,31,51],o=[1,17],a=[1,18],s=[1,19],l=[1,20],c=[1,21],u=[1,22],d=[1,25],h=[1,30],f=[1,31],p=[1,32],g=[1,33],m=[6,9,11,15,20,23,25,27,29,30,31,44,45,46,47,51],v=[1,45],A=[30,31,48,49],b=[4,6,9,11,23,25,27,29,30,31,51],y=[44,45,46,47],w=[22,37],_=[1,65],x=[1,64],E=[22,37,39,41],S={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,ENTITY_NAME:31,attribute:32,attributeType:33,attributeName:34,attributeKeyTypeList:35,attributeComment:36,ATTRIBUTE_WORD:37,attributeKeyType:38,COMMA:39,ATTRIBUTE_KEY:40,COMMENT:41,cardinality:42,relType:43,ZERO_OR_ONE:44,ZERO_OR_MORE:45,ONE_OR_MORE:46,ONLY_ONE:47,NON_IDENTIFYING:48,IDENTIFYING:49,WORD:50,open_directive:51,type_directive:52,arg_directive:53,close_directive:54,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:"ENTITY_NAME",37:"ATTRIBUTE_WORD",39:"COMMA",40:"ATTRIBUTE_KEY",41:"COMMENT",44:"ZERO_OR_ONE",45:"ZERO_OR_MORE",46:"ONE_OR_MORE",47:"ONLY_ONE",48:"NON_IDENTIFYING",49:"IDENTIFYING",50:"WORD",51:"open_directive",52:"type_directive",53:"arg_directive",54:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,1],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[35,3],[38,1],[36,1],[18,3],[42,1],[42,1],[42,1],[42,1],[43,1],[43,1],[19,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:o[s-1].push(o[s]),this.$=o[s-1];break;case 5:case 6:case 20:case 43:case 28:case 29:case 32:this.$=o[s];break;case 12:r.addEntity(o[s-4]),r.addEntity(o[s-2]),r.addRelationship(o[s-4],o[s],o[s-2],o[s-3]);break;case 13:r.addEntity(o[s-3]),r.addAttributes(o[s-3],o[s-1]);break;case 14:r.addEntity(o[s-2]);break;case 15:r.addEntity(o[s]);break;case 16:case 17:this.$=o[s].trim(),r.setAccTitle(this.$);break;case 18:case 19:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 21:case 41:case 42:case 33:this.$=o[s].replace(/"/g,"");break;case 22:case 30:this.$=[o[s]];break;case 23:o[s].push(o[s-1]),this.$=o[s];break;case 24:this.$={attributeType:o[s-1],attributeName:o[s]};break;case 25:this.$={attributeType:o[s-2],attributeName:o[s-1],attributeKeyTypeList:o[s]};break;case 26:this.$={attributeType:o[s-2],attributeName:o[s-1],attributeComment:o[s]};break;case 27:this.$={attributeType:o[s-3],attributeName:o[s-2],attributeKeyTypeList:o[s-1],attributeComment:o[s]};break;case 31:o[s-2].push(o[s]),this.$=o[s-2];break;case 34:this.$={cardA:o[s],relType:o[s-1],cardB:o[s-2]};break;case 35:this.$=r.Cardinality.ZERO_OR_ONE;break;case 36:this.$=r.Cardinality.ZERO_OR_MORE;break;case 37:this.$=r.Cardinality.ONE_OR_MORE;break;case 38:this.$=r.Cardinality.ONLY_ONE;break;case 39:this.$=r.Identification.NON_IDENTIFYING;break;case 40:this.$=r.Identification.IDENTIFYING;break;case 44:r.parseDirective("%%{","open_directive");break;case 45:r.parseDirective(o[s],"type_directive");break;case 46:o[s]=o[s].trim().replace(/'/g,'"'),r.parseDirective(o[s],"arg_directive");break;case 47:r.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:n,7:3,12:4,51:r},{1:[3]},t(i,[2,3],{5:6}),{3:7,4:n,7:3,12:4,51:r},{13:8,52:[1,9]},{52:[2,44]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:o,25:a,27:s,29:l,30:c,31:u,51:r},{1:[2,2]},{14:23,15:[1,24],54:d},t([15,54],[2,45]),t(i,[2,8],{1:[2,1]}),t(i,[2,4]),{7:15,10:26,12:4,17:16,23:o,25:a,27:s,29:l,30:c,31:u,51:r},t(i,[2,6]),t(i,[2,7]),t(i,[2,11]),t(i,[2,15],{18:27,42:29,20:[1,28],44:h,45:f,46:p,47:g}),{24:[1,34]},{26:[1,35]},{28:[1,36]},t(i,[2,19]),t(m,[2,20]),t(m,[2,21]),{11:[1,37]},{16:38,53:[1,39]},{11:[2,47]},t(i,[2,5]),{17:40,30:c,31:u},{21:41,22:[1,42],32:43,33:44,37:v},{43:46,48:[1,47],49:[1,48]},t(A,[2,35]),t(A,[2,36]),t(A,[2,37]),t(A,[2,38]),t(i,[2,16]),t(i,[2,17]),t(i,[2,18]),t(b,[2,9]),{14:49,54:d},{54:[2,46]},{15:[1,50]},{22:[1,51]},t(i,[2,14]),{21:52,22:[2,22],32:43,33:44,37:v},{34:53,37:[1,54]},{37:[2,28]},{42:55,44:h,45:f,46:p,47:g},t(y,[2,39]),t(y,[2,40]),{11:[1,56]},{19:57,30:[1,60],31:[1,59],50:[1,58]},t(i,[2,13]),{22:[2,23]},t(w,[2,24],{35:61,36:62,38:63,40:_,41:x}),t([22,37,40,41],[2,29]),t([30,31],[2,34]),t(b,[2,10]),t(i,[2,12]),t(i,[2,41]),t(i,[2,42]),t(i,[2,43]),t(w,[2,25],{36:66,39:[1,67],41:x}),t(w,[2,26]),t(E,[2,30]),t(w,[2,33]),t(E,[2,32]),t(w,[2,27]),{38:68,40:_},t(E,[2,31])],defaultActions:{5:[2,44],7:[2,2],25:[2,47],39:[2,46],45:[2,28],52:[2,23]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),d=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);d.setInput(e,h.yy),h.yy.lexer=d,h.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var p=d.yylloc;o.push(p);var g=d.options&&d.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||d.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,A,b,y,w,_,x,E,S={};;){if(A=n[n.length-1],this.defaultActions[A]?b=this.defaultActions[A]:(null==v&&(v=m()),b=a[A]&&a[A][v]),void 0===b||!b.length||!b[0]){var C="";for(w in E=[],a[A])this.terminals_[w]&&w>2&&E.push("'"+this.terminals_[w]+"'");C=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:p,expected:E})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(b[0]){case 1:n.push(v),i.push(d.yytext),o.push(d.yylloc),n.push(b[1]),v=null,c=d.yyleng,s=d.yytext,l=d.yylineno,p=d.yylloc;break;case 2:if(_=this.productions_[b[1]][1],S.$=i[i.length-_],S._$={first_line:o[o.length-(_||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(_||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(_||1)].range[0],o[o.length-1].range[1]]),void 0!==(y=this.performAction.apply(S,[s,c,l,h.yy,b[1],i,o].concat(u))))return y;_&&(n=n.slice(0,-1*_*2),i=i.slice(0,-1*_),o=o.slice(0,-1*_)),n.push(this.productions_[b[1]][0]),i.push(S.$),o.push(S._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},C=(e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.begin("open_directive"),51;case 8:return this.begin("type_directive"),52;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),54;case 11:return 53;case 12:case 13:case 15:case 22:case 27:break;case 14:return 11;case 16:return 9;case 17:return 31;case 18:return 50;case 19:return 4;case 20:return this.begin("block"),20;case 21:return 39;case 23:return 40;case 24:case 25:return 37;case 26:return 41;case 28:return this.popState(),22;case 29:case 58:return t.yytext[0];case 30:case 34:case 35:case 48:return 44;case 31:case 32:case 33:case 41:case 43:case 50:return 46;case 36:case 37:case 38:case 39:case 40:case 42:case 49:return 45;case 44:case 45:case 46:case 47:return 47;case 51:case 54:case 55:case 56:return 48;case 52:case 53:return 49;case 57:return 30;case 59:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[21,22,23,24,25,26,27,28,29],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,20,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],inclusive:!0}}},e);function T(){this.yy={}}return S.lexer=C,T.prototype=S,S.Parser=T,new T}();dge.parser=dge;const hge=dge,fge=e=>null!==e.match(/^\s*erDiagram/);let pge={},gge=[];const mge=function(e){return void 0===pge[e]&&(pge[e]={attributes:[]},Hle.info("Added new entity :",e)),pge[e]},vge={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:function(e,t,n){kwe.parseDirective(this,e,t,n)},getConfig:()=>bde().er,addEntity:mge,addAttributes:function(e,t){let n,r=mge(e);for(n=t.length-1;n>=0;n--)r.attributes.push(t[n]),Hle.debug("Added attribute ",t[n].attributeName)},getEntities:()=>pge,addRelationship:function(e,t,n,r){let i={entityA:e,roleA:t,entityB:n,relSpec:r};gge.push(i),Hle.debug("Added new relationship :",i)},getRelationships:()=>gge,clear:function(){pge={},gge=[],Gde()},setAccTitle:Vde,getAccTitle:Kde,setAccDescription:Yde,getAccDescription:qde,setDiagramTitle:Xde,getDiagramTitle:Jde},Age={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"},bge=Age,yge=function(e,t){let n;e.append("defs").append("marker").attr("id",Age.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",Age.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),n=e.append("defs").append("marker").attr("id",Age.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),n.append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M9,0 L9,18"),n=e.append("defs").append("marker").attr("id",Age.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto"),n.append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M21,0 L21,18"),e.append("defs").append("marker").attr("id",Age.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",Age.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),n=e.append("defs").append("marker").attr("id",Age.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),n.append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),n=e.append("defs").append("marker").attr("id",Age.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto"),n.append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},wge=/[^\dA-Za-z](\W)*/g;let _ge={},xge=new Map;const Ege=function(e,t,n){let r;return Object.keys(t).forEach(function(i){const o=function(e="",t=""){const n=e.replace(wge,"");return`${kge(t)}${kge(n)}${Ele(e,Tge)}`}(i,"entity");xge.set(i,o);const a=e.append("g").attr("id",o);r=void 0===r?o:r;const s="text-"+o,l=a.append("text").classed("er entityLabel",!0).attr("id",s).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","middle").style("font-family",bde().fontFamily).style("font-size",_ge.fontSize+"px").text(i),{width:c,height:u}=((e,t,n)=>{const r=_ge.entityPadding/3,i=_ge.entityPadding/3,o=.85*_ge.fontSize,a=t.node().getBBox(),s=[];let l=!1,c=!1,u=0,d=0,h=0,f=0,p=a.height+2*r,g=1;n.forEach(e=>{void 0!==e.attributeKeyTypeList&&e.attributeKeyTypeList.length>0&&(l=!0),void 0!==e.attributeComment&&(c=!0)}),n.forEach(n=>{const i=`${t.node().id}-attr-${g}`;let a=0;const m=Xle(n.attributeType),v=e.append("text").classed("er entityLabel",!0).attr("id",`${i}-type`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",bde().fontFamily).style("font-size",o+"px").text(m),A=e.append("text").classed("er entityLabel",!0).attr("id",`${i}-name`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",bde().fontFamily).style("font-size",o+"px").text(n.attributeName),b={};b.tn=v,b.nn=A;const y=v.node().getBBox(),w=A.node().getBBox();if(u=Math.max(u,y.width),d=Math.max(d,w.width),a=Math.max(y.height,w.height),l){const t=void 0!==n.attributeKeyTypeList?n.attributeKeyTypeList.join(","):"",r=e.append("text").classed("er entityLabel",!0).attr("id",`${i}-key`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",bde().fontFamily).style("font-size",o+"px").text(t);b.kn=r;const s=r.node().getBBox();h=Math.max(h,s.width),a=Math.max(a,s.height)}if(c){const t=e.append("text").classed("er entityLabel",!0).attr("id",`${i}-comment`).attr("x",0).attr("y",0).style("dominant-baseline","middle").style("text-anchor","left").style("font-family",bde().fontFamily).style("font-size",o+"px").text(n.attributeComment||"");b.cn=t;const r=t.node().getBBox();f=Math.max(f,r.width),a=Math.max(a,r.height)}b.height=a,s.push(b),p+=a+2*r,g+=1});let m=4;l&&(m+=2),c&&(m+=2);const v=u+d+h+f,A={width:Math.max(_ge.minEntityWidth,Math.max(a.width+2*_ge.entityPadding,v+i*m)),height:n.length>0?p:Math.max(_ge.minEntityHeight,a.height+2*_ge.entityPadding)};if(n.length>0){const n=Math.max(0,(A.width-v-i*m)/(m/2));t.attr("transform","translate("+A.width/2+","+(r+a.height/2)+")");let o=a.height+2*r,p="attributeBoxOdd";s.forEach(t=>{const a=o+r+t.height/2;t.tn.attr("transform","translate("+i+","+a+")");const s=e.insert("rect","#"+t.tn.node().id).classed(`er ${p}`,!0).attr("x",0).attr("y",o).attr("width",u+2*i+n).attr("height",t.height+2*r),g=parseFloat(s.attr("x"))+parseFloat(s.attr("width"));t.nn.attr("transform","translate("+(g+i)+","+a+")");const m=e.insert("rect","#"+t.nn.node().id).classed(`er ${p}`,!0).attr("x",g).attr("y",o).attr("width",d+2*i+n).attr("height",t.height+2*r);let v=parseFloat(m.attr("x"))+parseFloat(m.attr("width"));if(l){t.kn.attr("transform","translate("+(v+i)+","+a+")");const s=e.insert("rect","#"+t.kn.node().id).classed(`er ${p}`,!0).attr("x",v).attr("y",o).attr("width",h+2*i+n).attr("height",t.height+2*r);v=parseFloat(s.attr("x"))+parseFloat(s.attr("width"))}c&&(t.cn.attr("transform","translate("+(v+i)+","+a+")"),e.insert("rect","#"+t.cn.node().id).classed(`er ${p}`,"true").attr("x",v).attr("y",o).attr("width",f+2*i+n).attr("height",t.height+2*r)),o+=t.height+2*r,p="attributeBoxOdd"===p?"attributeBoxEven":"attributeBoxOdd"})}else A.height=Math.max(_ge.minEntityHeight,p),t.attr("transform","translate("+A.width/2+","+A.height/2+")");return A})(a,l,t[i].attributes),d=a.insert("rect","#"+s).classed("er entityBox",!0).attr("x",0).attr("y",0).attr("width",c).attr("height",u).node().getBBox();n.setNode(o,{width:d.width,height:d.height,shape:"rect",id:o})}),r},Sge=function(e){return(e.entityA+e.roleA+e.entityB).replace(/\s/g,"")};let Cge=0;const Tge="28e9f9db-3c8d-5aa5-9faf-44286ae5937c";function kge(e=""){return e.length>0?`${e}-`:""}const Oge={setConf:function(e){const t=Object.keys(e);for(const n of t)_ge[n]=e[n]},draw:function(e,t,n,r){_ge=bde().er,Hle.info("Drawing ER diagram");const i=bde().securityLevel;let o;"sandbox"===i&&(o=b3("#i"+t));const a=b3("sandbox"===i?o.nodes()[0].contentDocument.body:"body").select(`[id='${t}']`);let s;yge(a,_ge),s=new Wae({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:_ge.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});const l=Ege(a,r.db.getEntities(),s),c=function(e,t){return e.forEach(function(e){t.setEdge(xge.get(e.entityA),xge.get(e.entityB),{relationship:e},Sge(e))}),e}(r.db.getRelationships(),s);ole(s),function(e,t){t.nodes().forEach(function(n){void 0!==n&&void 0!==t.node(n)&&e.select("#"+n).attr("transform","translate("+(t.node(n).x-t.node(n).width/2)+","+(t.node(n).y-t.node(n).height/2)+" )")})}(a,s),c.forEach(function(e){!function(e,t,n,r,i){Cge++;const o=n.edge(xge.get(t.entityA),xge.get(t.entityB),Sge(t)),a=nee().x(function(e){return e.x}).y(function(e){return e.y}).curve(cee),s=e.insert("path","#"+r).classed("er relationshipLine",!0).attr("d",a(o.points)).style("stroke",_ge.stroke).style("fill","none");t.relSpec.relType===i.db.Identification.NON_IDENTIFYING&&s.attr("stroke-dasharray","8,8");let l="";switch(_ge.arrowMarkerAbsolute&&(l=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,l=l.replace(/\(/g,"\\("),l=l.replace(/\)/g,"\\)")),t.relSpec.cardA){case i.db.Cardinality.ZERO_OR_ONE:s.attr("marker-end","url("+l+"#"+bge.ZERO_OR_ONE_END+")");break;case i.db.Cardinality.ZERO_OR_MORE:s.attr("marker-end","url("+l+"#"+bge.ZERO_OR_MORE_END+")");break;case i.db.Cardinality.ONE_OR_MORE:s.attr("marker-end","url("+l+"#"+bge.ONE_OR_MORE_END+")");break;case i.db.Cardinality.ONLY_ONE:s.attr("marker-end","url("+l+"#"+bge.ONLY_ONE_END+")")}switch(t.relSpec.cardB){case i.db.Cardinality.ZERO_OR_ONE:s.attr("marker-start","url("+l+"#"+bge.ZERO_OR_ONE_START+")");break;case i.db.Cardinality.ZERO_OR_MORE:s.attr("marker-start","url("+l+"#"+bge.ZERO_OR_MORE_START+")");break;case i.db.Cardinality.ONE_OR_MORE:s.attr("marker-start","url("+l+"#"+bge.ONE_OR_MORE_START+")");break;case i.db.Cardinality.ONLY_ONE:s.attr("marker-start","url("+l+"#"+bge.ONLY_ONE_START+")")}const c=s.node().getTotalLength(),u=s.node().getPointAtLength(.5*c),d="rel"+Cge,h=e.append("text").classed("er relationshipLabel",!0).attr("id",d).attr("x",u.x).attr("y",u.y).style("text-anchor","middle").style("dominant-baseline","middle").style("font-family",bde().fontFamily).style("font-size",_ge.fontSize+"px").text(t.roleA).node().getBBox();e.insert("rect","#"+d).classed("er relationshipLabelBox",!0).attr("x",u.x-h.width/2).attr("y",u.y-h.height/2).attr("width",h.width).attr("height",h.height)}(a,e,s,l,r)});const u=_ge.diagramPadding;cde.insertTitle(a,"entityTitleText",_ge.titleTopMargin,r.db.getDiagramTitle());const d=a.node().getBBox(),h=d.width+2*u,f=d.height+2*u;Cde(a,f,h,_ge.useMaxWidth),a.attr("viewBox",`${d.x-u} ${d.y-u} ${h} ${f}`)}};var Mge=function(){var e,t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[1,9],r=[1,7],i=[1,6],o=[1,8],a=[1,20,21,22,23,38,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],s=[2,10],l=[1,20],c=[1,21],u=[1,22],d=[1,23],h=[1,30],f=[1,32],p=[1,33],g=[1,34],m=[1,62],v=[1,48],A=[1,52],b=[1,36],y=[1,37],w=[1,38],_=[1,39],x=[1,40],E=[1,56],S=[1,63],C=[1,51],T=[1,53],k=[1,55],O=[1,59],M=[1,60],I=[1,41],D=[1,42],N=[1,43],R=[1,44],L=[1,61],B=[1,50],P=[1,54],F=[1,57],$=[1,58],j=[1,49],H=[1,66],U=[1,71],Q=[1,20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],z=[1,75],W=[1,74],G=[1,76],V=[20,21,23,81,82],K=[1,99],Y=[1,104],q=[1,107],X=[1,108],J=[1,101],Z=[1,106],ee=[1,109],te=[1,102],ne=[1,114],re=[1,113],ie=[1,103],oe=[1,105],ae=[1,110],se=[1,111],le=[1,112],ce=[1,115],ue=[20,21,22,23,81,82],de=[20,21,22,23,53,81,82],he=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],fe=[20,21,23],pe=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],ge=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],me=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],ve=[1,149],Ae=[1,157],be=[1,158],ye=[1,159],we=[1,160],_e=[1,144],xe=[1,145],Ee=[1,141],Se=[1,152],Ce=[1,153],Te=[1,154],ke=[1,155],Oe=[1,156],Me=[1,161],Ie=[1,162],De=[1,147],Ne=[1,150],Re=[1,146],Le=[1,143],Be=[20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],Pe=[1,165],Fe=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],$e=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,86,87,88,89,90,91,92,95,105,106,109,111,112,113,114,122,123,124,125,126,127],je=[12,21,22,24],He=[22,106],Ue=[1,250],Qe=[1,245],ze=[1,246],We=[1,254],Ge=[1,251],Ve=[1,248],Ke=[1,247],Ye=[1,249],qe=[1,252],Xe=[1,253],Je=[1,255],Ze=[1,273],et=[20,21,23,106],tt=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],nt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,keywords:85,STYLE:86,LINKSTYLE:87,CLASSDEF:88,CLASS:89,CLICK:90,DOWN:91,UP:92,textNoTags:93,textNoTagsToken:94,DEFAULT:95,stylesOpt:96,alphaNum:97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,HEX:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,MINUS:109,UNIT:110,BRKT:111,DOT:112,PCT:113,TAGSTART:114,alphaNumToken:115,idStringToken:116,alphaNumStatement:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,PUNCTUATION:122,UNICODE_TEXT:123,PLUS:124,EQUALS:125,MULT:126,UNDERSCORE:127,graphCodeTokens:128,ARROW_CROSS:129,ARROW_POINT:130,ARROW_CIRCLE:131,ARROW_OPEN:132,QUOTE:133,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",53:"STYLE_SEPARATOR",55:"DOUBLECIRCLESTART",56:"DOUBLECIRCLEEND",57:"PS",58:"PE",59:"(-",60:"-)",61:"STADIUMSTART",62:"STADIUMEND",63:"SUBROUTINESTART",64:"SUBROUTINEEND",65:"VERTEX_WITH_PROPS_START",66:"ALPHA",67:"COLON",68:"PIPE",69:"CYLINDERSTART",70:"CYLINDEREND",71:"DIAMOND_START",72:"DIAMOND_STOP",73:"TAGEND",74:"TRAPSTART",75:"TRAPEND",76:"INVTRAPSTART",77:"INVTRAPEND",80:"TESTSTR",81:"START_LINK",82:"LINK",84:"STR",86:"STYLE",87:"LINKSTYLE",88:"CLASSDEF",89:"CLASS",90:"CLICK",91:"DOWN",92:"UP",95:"DEFAULT",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"HEX",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"MINUS",110:"UNIT",111:"BRKT",112:"DOT",113:"PCT",114:"TAGSTART",118:"direction_tb",119:"direction_bt",120:"direction_rl",121:"direction_lr",122:"PUNCTUATION",123:"UNICODE_TEXT",124:"PLUS",125:"EQUALS",126:"MULT",127:"UNDERSCORE",129:"ARROW_CROSS",130:"ARROW_POINT",131:"ARROW_CIRCLE",132:"ARROW_OPEN",133:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[50,1],[50,5],[50,3],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,8],[51,4],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,4],[51,4],[51,1],[49,2],[49,3],[49,3],[49,1],[49,3],[78,1],[79,3],[39,1],[39,2],[39,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[93,1],[93,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[103,1],[103,3],[96,1],[96,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[94,1],[94,1],[94,1],[94,1],[54,1],[54,2],[97,1],[97,2],[117,1],[117,1],[117,1],[117,1],[43,1],[43,1],[43,1],[43,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1]],performAction:function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 5:r.parseDirective("%%{","open_directive");break;case 6:r.parseDirective(o[s],"type_directive");break;case 7:o[s]=o[s].trim().replace(/'/g,'"'),r.parseDirective(o[s],"arg_directive");break;case 8:r.parseDirective("}%%","close_directive","flowchart");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:(!Array.isArray(o[s])||o[s].length>0)&&o[s-1].push(o[s]),this.$=o[s-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:case 78:case 150:this.$=o[s];break;case 19:r.setDirection("TB"),this.$="TB";break;case 20:r.setDirection(o[s-1]),this.$=o[s-1];break;case 35:this.$=o[s-1].nodes;break;case 41:this.$=r.addSubGraph(o[s-6],o[s-1],o[s-4]);break;case 42:this.$=r.addSubGraph(o[s-3],o[s-1],o[s-3]);break;case 43:this.$=r.addSubGraph(void 0,o[s-1],void 0);break;case 45:this.$=o[s].trim(),r.setAccTitle(this.$);break;case 46:case 47:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 51:r.addLink(o[s-2].stmt,o[s],o[s-1]),this.$={stmt:o[s],nodes:o[s].concat(o[s-2].nodes)};break;case 52:r.addLink(o[s-3].stmt,o[s-1],o[s-2]),this.$={stmt:o[s-1],nodes:o[s-1].concat(o[s-3].nodes)};break;case 53:this.$={stmt:o[s-1],nodes:o[s-1]};break;case 54:this.$={stmt:o[s],nodes:o[s]};break;case 55:case 123:case 125:this.$=[o[s]];break;case 56:this.$=o[s-4].concat(o[s]);break;case 57:this.$=[o[s-2]],r.setClass(o[s-2],o[s]);break;case 58:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"square");break;case 59:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"doublecircle");break;case 60:this.$=o[s-5],r.addVertex(o[s-5],o[s-2],"circle");break;case 61:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"ellipse");break;case 62:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"stadium");break;case 63:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"subroutine");break;case 64:this.$=o[s-7],r.addVertex(o[s-7],o[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[o[s-5],o[s-3]]]));break;case 65:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"cylinder");break;case 66:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"round");break;case 67:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"diamond");break;case 68:this.$=o[s-5],r.addVertex(o[s-5],o[s-2],"hexagon");break;case 69:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"odd");break;case 70:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"trapezoid");break;case 71:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"inv_trapezoid");break;case 72:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"lean_right");break;case 73:this.$=o[s-3],r.addVertex(o[s-3],o[s-1],"lean_left");break;case 74:this.$=o[s],r.addVertex(o[s]);break;case 75:o[s-1].text=o[s],this.$=o[s-1];break;case 76:case 77:o[s-2].text=o[s-1],this.$=o[s-2];break;case 79:var l=r.destructLink(o[s],o[s-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:o[s-1]};break;case 80:l=r.destructLink(o[s]),this.$={type:l.type,stroke:l.stroke,length:l.length};break;case 81:this.$=o[s-1];break;case 83:case 97:case 153:case 151:this.$=o[s-1]+""+o[s];break;case 98:case 99:this.$=o[s-4],r.addClass(o[s-2],o[s]);break;case 100:this.$=o[s-4],r.setClass(o[s-2],o[s]);break;case 101:case 109:this.$=o[s-1],r.setClickEvent(o[s-1],o[s]);break;case 102:case 110:this.$=o[s-3],r.setClickEvent(o[s-3],o[s-2]),r.setTooltip(o[s-3],o[s]);break;case 103:this.$=o[s-2],r.setClickEvent(o[s-2],o[s-1],o[s]);break;case 104:this.$=o[s-4],r.setClickEvent(o[s-4],o[s-3],o[s-2]),r.setTooltip(o[s-4],o[s]);break;case 105:case 111:this.$=o[s-1],r.setLink(o[s-1],o[s]);break;case 106:case 112:this.$=o[s-3],r.setLink(o[s-3],o[s-2]),r.setTooltip(o[s-3],o[s]);break;case 107:case 113:this.$=o[s-3],r.setLink(o[s-3],o[s-2],o[s]);break;case 108:case 114:this.$=o[s-5],r.setLink(o[s-5],o[s-4],o[s]),r.setTooltip(o[s-5],o[s-2]);break;case 115:this.$=o[s-4],r.addVertex(o[s-2],void 0,void 0,o[s]);break;case 116:case 118:this.$=o[s-4],r.updateLink(o[s-2],o[s]);break;case 117:this.$=o[s-4],r.updateLink([o[s-2]],o[s]);break;case 119:this.$=o[s-8],r.updateLinkInterpolate([o[s-6]],o[s-2]),r.updateLink([o[s-6]],o[s]);break;case 120:this.$=o[s-8],r.updateLinkInterpolate(o[s-6],o[s-2]),r.updateLink(o[s-6],o[s]);break;case 121:this.$=o[s-6],r.updateLinkInterpolate([o[s-4]],o[s]);break;case 122:this.$=o[s-6],r.updateLinkInterpolate(o[s-4],o[s]);break;case 124:case 126:o[s-2].push(o[s]),this.$=o[s-2];break;case 128:this.$=o[s-1]+o[s];break;case 156:this.$="v";break;case 157:this.$="-";break;case 158:this.$={stmt:"dir",value:"TB"};break;case 159:this.$={stmt:"dir",value:"BT"};break;case 160:this.$={stmt:"dir",value:"RL"};break;case 161:this.$={stmt:"dir",value:"LR"}}},table:[{3:1,4:2,5:3,6:5,12:n,16:4,21:r,22:i,24:o},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:n,16:4,21:r,22:i,24:o},t(a,s,{17:11}),{7:12,13:[1,13]},{16:14,21:r,22:i,24:o},{16:15,21:r,22:i,24:o},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:l,21:c,22:u,23:d,32:24,33:25,34:26,35:27,36:28,37:29,38:h,43:31,44:f,46:p,48:g,50:35,51:45,52:m,54:46,66:v,67:A,86:b,87:y,88:w,89:_,90:x,91:E,95:S,105:C,106:T,109:k,111:O,112:M,116:47,118:I,119:D,120:N,121:R,122:L,123:B,124:P,125:F,126:$,127:j},{8:64,10:[1,65],15:H},t([10,15],[2,6]),t(a,[2,17]),t(a,[2,18]),t(a,[2,19]),{20:[1,68],21:[1,69],22:U,27:67,30:70},t(Q,[2,11]),t(Q,[2,12]),t(Q,[2,13]),t(Q,[2,14]),t(Q,[2,15]),t(Q,[2,16]),{9:72,20:z,21:W,23:G,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:z,21:W,23:G},{9:81,20:z,21:W,23:G},{9:82,20:z,21:W,23:G},{9:83,20:z,21:W,23:G},{9:84,20:z,21:W,23:G},{9:86,20:z,21:W,22:[1,85],23:G},t(Q,[2,44]),{45:[1,87]},{47:[1,88]},t(Q,[2,47]),t(V,[2,54],{30:89,22:U}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:K,52:Y,66:q,67:X,84:[1,97],91:J,97:96,98:[1,94],100:[1,95],105:Z,106:ee,109:te,111:ne,112:re,115:100,117:98,122:ie,123:oe,124:ae,125:se,126:le,127:ce},t(Q,[2,158]),t(Q,[2,159]),t(Q,[2,160]),t(Q,[2,161]),t(ue,[2,55],{53:[1,116]}),t(de,[2,74],{116:129,40:[1,117],52:m,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:v,67:A,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:E,95:S,105:C,106:T,109:k,111:O,112:M,122:L,123:B,124:P,125:F,126:$,127:j}),t(he,[2,150]),t(he,[2,175]),t(he,[2,176]),t(he,[2,177]),t(he,[2,178]),t(he,[2,179]),t(he,[2,180]),t(he,[2,181]),t(he,[2,182]),t(he,[2,183]),t(he,[2,184]),t(he,[2,185]),t(he,[2,186]),t(he,[2,187]),t(he,[2,188]),t(he,[2,189]),t(he,[2,190]),{9:130,20:z,21:W,23:G},{11:131,14:[1,132]},t(fe,[2,8]),t(a,[2,20]),t(a,[2,26]),t(a,[2,27]),{21:[1,133]},t(pe,[2,34],{30:134,22:U}),t(Q,[2,35]),{50:135,51:45,52:m,54:46,66:v,67:A,91:E,95:S,105:C,106:T,109:k,111:O,112:M,116:47,122:L,123:B,124:P,125:F,126:$,127:j},t(ge,[2,48]),t(ge,[2,49]),t(ge,[2,50]),t(me,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:ve,24:Ae,26:be,38:ye,39:139,42:we,52:Y,66:q,67:X,73:_e,81:xe,83:140,84:Ee,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},t([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),t(Q,[2,36]),t(Q,[2,37]),t(Q,[2,38]),t(Q,[2,39]),t(Q,[2,40]),{22:ve,24:Ae,26:be,38:ye,39:163,42:we,52:Y,66:q,67:X,73:_e,81:xe,83:140,84:Ee,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},t(Be,s,{17:164}),t(Q,[2,45]),t(Q,[2,46]),t(V,[2,53],{52:Pe}),{26:K,52:Y,66:q,67:X,91:J,97:166,102:[1,167],105:Z,106:ee,109:te,111:ne,112:re,115:100,117:98,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{95:[1,168],103:169,105:[1,170]},{26:K,52:Y,66:q,67:X,91:J,95:[1,171],97:172,105:Z,106:ee,109:te,111:ne,112:re,115:100,117:98,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{26:K,52:Y,66:q,67:X,91:J,97:173,105:Z,106:ee,109:te,111:ne,112:re,115:100,117:98,122:ie,123:oe,124:ae,125:se,126:le,127:ce},t(fe,[2,101],{22:[1,174],99:[1,175]}),t(fe,[2,105],{22:[1,176]}),t(fe,[2,109],{115:100,117:178,22:[1,177],26:K,52:Y,66:q,67:X,91:J,105:Z,106:ee,109:te,111:ne,112:re,122:ie,123:oe,124:ae,125:se,126:le,127:ce}),t(fe,[2,111],{22:[1,179]}),t(Fe,[2,152]),t(Fe,[2,154]),t(Fe,[2,155]),t(Fe,[2,156]),t(Fe,[2,157]),t($e,[2,162]),t($e,[2,163]),t($e,[2,164]),t($e,[2,165]),t($e,[2,166]),t($e,[2,167]),t($e,[2,168]),t($e,[2,169]),t($e,[2,170]),t($e,[2,171]),t($e,[2,172]),t($e,[2,173]),t($e,[2,174]),{52:m,54:180,66:v,67:A,91:E,95:S,105:C,106:T,109:k,111:O,112:M,116:47,122:L,123:B,124:P,125:F,126:$,127:j},{22:ve,24:Ae,26:be,38:ye,39:181,42:we,52:Y,66:q,67:X,73:_e,81:xe,83:140,84:Ee,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,39:182,42:we,52:Y,66:q,67:X,73:_e,81:xe,83:140,84:Ee,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,39:184,42:we,52:Y,57:[1,183],66:q,67:X,73:_e,81:xe,83:140,84:Ee,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,39:185,42:we,52:Y,66:q,67:X,73:_e,81:xe,83:140,84:Ee,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,39:186,42:we,52:Y,66:q,67:X,73:_e,81:xe,83:140,84:Ee,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,39:187,42:we,52:Y,66:q,67:X,73:_e,81:xe,83:140,84:Ee,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{66:[1,188]},{22:ve,24:Ae,26:be,38:ye,39:189,42:we,52:Y,66:q,67:X,73:_e,81:xe,83:140,84:Ee,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,39:190,42:we,52:Y,66:q,67:X,71:[1,191],73:_e,81:xe,83:140,84:Ee,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,39:192,42:we,52:Y,66:q,67:X,73:_e,81:xe,83:140,84:Ee,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,39:193,42:we,52:Y,66:q,67:X,73:_e,81:xe,83:140,84:Ee,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,39:194,42:we,52:Y,66:q,67:X,73:_e,81:xe,83:140,84:Ee,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},t(he,[2,151]),t(je,[2,3]),{8:195,15:H},{15:[2,7]},t(a,[2,28]),t(pe,[2,33]),t(V,[2,51],{30:196,22:U}),t(me,[2,75],{22:[1,197]}),{22:[1,198]},{22:ve,24:Ae,26:be,38:ye,39:199,42:we,52:Y,66:q,67:X,73:_e,81:xe,83:140,84:Ee,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,42:we,52:Y,66:q,67:X,73:_e,81:xe,82:[1,200],83:201,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},t($e,[2,82]),t($e,[2,84]),t($e,[2,140]),t($e,[2,141]),t($e,[2,142]),t($e,[2,143]),t($e,[2,144]),t($e,[2,145]),t($e,[2,146]),t($e,[2,147]),t($e,[2,148]),t($e,[2,149]),t($e,[2,85]),t($e,[2,86]),t($e,[2,87]),t($e,[2,88]),t($e,[2,89]),t($e,[2,90]),t($e,[2,91]),t($e,[2,92]),t($e,[2,93]),t($e,[2,94]),t($e,[2,95]),{9:203,20:z,21:W,22:ve,23:G,24:Ae,26:be,38:ye,40:[1,202],42:we,52:Y,66:q,67:X,73:_e,81:xe,83:201,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{18:18,19:19,20:l,21:c,22:u,23:d,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,204],43:31,44:f,46:p,48:g,50:35,51:45,52:m,54:46,66:v,67:A,86:b,87:y,88:w,89:_,90:x,91:E,95:S,105:C,106:T,109:k,111:O,112:M,116:47,118:I,119:D,120:N,121:R,122:L,123:B,124:P,125:F,126:$,127:j},{22:U,30:205},{22:[1,206],26:K,52:Y,66:q,67:X,91:J,105:Z,106:ee,109:te,111:ne,112:re,115:100,117:178,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},t(He,[2,123]),{22:[1,211]},{22:[1,212],26:K,52:Y,66:q,67:X,91:J,105:Z,106:ee,109:te,111:ne,112:re,115:100,117:178,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:[1,213],26:K,52:Y,66:q,67:X,91:J,105:Z,106:ee,109:te,111:ne,112:re,115:100,117:178,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{84:[1,214]},t(fe,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},t(Fe,[2,153]),{84:[1,219],101:[1,220]},t(ue,[2,57],{116:129,52:m,66:v,67:A,91:E,95:S,105:C,106:T,109:k,111:O,112:M,122:L,123:B,124:P,125:F,126:$,127:j}),{22:ve,24:Ae,26:be,38:ye,41:[1,221],42:we,52:Y,66:q,67:X,73:_e,81:xe,83:201,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,42:we,52:Y,56:[1,222],66:q,67:X,73:_e,81:xe,83:201,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,39:223,42:we,52:Y,66:q,67:X,73:_e,81:xe,83:140,84:Ee,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,42:we,52:Y,58:[1,224],66:q,67:X,73:_e,81:xe,83:201,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,42:we,52:Y,60:[1,225],66:q,67:X,73:_e,81:xe,83:201,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,42:we,52:Y,62:[1,226],66:q,67:X,73:_e,81:xe,83:201,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,42:we,52:Y,64:[1,227],66:q,67:X,73:_e,81:xe,83:201,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{67:[1,228]},{22:ve,24:Ae,26:be,38:ye,42:we,52:Y,66:q,67:X,70:[1,229],73:_e,81:xe,83:201,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,42:we,52:Y,66:q,67:X,72:[1,230],73:_e,81:xe,83:201,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,39:231,42:we,52:Y,66:q,67:X,73:_e,81:xe,83:140,84:Ee,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,41:[1,232],42:we,52:Y,66:q,67:X,73:_e,81:xe,83:201,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,42:we,52:Y,66:q,67:X,73:_e,75:[1,233],77:[1,234],81:xe,83:201,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{22:ve,24:Ae,26:be,38:ye,42:we,52:Y,66:q,67:X,73:_e,75:[1,236],77:[1,235],81:xe,83:201,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{9:237,20:z,21:W,23:G},t(V,[2,52],{52:Pe}),t(me,[2,77]),t(me,[2,76]),{22:ve,24:Ae,26:be,38:ye,42:we,52:Y,66:q,67:X,68:[1,238],73:_e,81:xe,83:201,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},t(me,[2,79]),t($e,[2,83]),{22:ve,24:Ae,26:be,38:ye,39:239,42:we,52:Y,66:q,67:X,73:_e,81:xe,83:140,84:Ee,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},t(Be,s,{17:240}),t(Q,[2,43]),{51:241,52:m,54:46,66:v,67:A,91:E,95:S,105:C,106:T,109:k,111:O,112:M,116:47,122:L,123:B,124:P,125:F,126:$,127:j},{22:Ue,66:Qe,67:ze,86:We,96:242,102:Ge,105:Ve,107:243,108:244,109:Ke,110:Ye,111:qe,112:Xe,113:Je},{22:Ue,66:Qe,67:ze,86:We,96:256,102:Ge,105:Ve,107:243,108:244,109:Ke,110:Ye,111:qe,112:Xe,113:Je},{22:Ue,66:Qe,67:ze,86:We,96:257,102:Ge,104:[1,258],105:Ve,107:243,108:244,109:Ke,110:Ye,111:qe,112:Xe,113:Je},{22:Ue,66:Qe,67:ze,86:We,96:259,102:Ge,104:[1,260],105:Ve,107:243,108:244,109:Ke,110:Ye,111:qe,112:Xe,113:Je},{105:[1,261]},{22:Ue,66:Qe,67:ze,86:We,96:262,102:Ge,105:Ve,107:243,108:244,109:Ke,110:Ye,111:qe,112:Xe,113:Je},{22:Ue,66:Qe,67:ze,86:We,96:263,102:Ge,105:Ve,107:243,108:244,109:Ke,110:Ye,111:qe,112:Xe,113:Je},{26:K,52:Y,66:q,67:X,91:J,97:264,105:Z,106:ee,109:te,111:ne,112:re,115:100,117:98,122:ie,123:oe,124:ae,125:se,126:le,127:ce},t(fe,[2,102]),{84:[1,265]},t(fe,[2,106],{22:[1,266]}),t(fe,[2,107]),t(fe,[2,110]),t(fe,[2,112],{22:[1,267]}),t(fe,[2,113]),t(de,[2,58]),t(de,[2,59]),{22:ve,24:Ae,26:be,38:ye,42:we,52:Y,58:[1,268],66:q,67:X,73:_e,81:xe,83:201,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},t(de,[2,66]),t(de,[2,61]),t(de,[2,62]),t(de,[2,63]),{66:[1,269]},t(de,[2,65]),t(de,[2,67]),{22:ve,24:Ae,26:be,38:ye,42:we,52:Y,66:q,67:X,72:[1,270],73:_e,81:xe,83:201,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},t(de,[2,69]),t(de,[2,70]),t(de,[2,72]),t(de,[2,71]),t(de,[2,73]),t(je,[2,4]),t([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:ve,24:Ae,26:be,38:ye,41:[1,271],42:we,52:Y,66:q,67:X,73:_e,81:xe,83:201,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{18:18,19:19,20:l,21:c,22:u,23:d,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,272],43:31,44:f,46:p,48:g,50:35,51:45,52:m,54:46,66:v,67:A,86:b,87:y,88:w,89:_,90:x,91:E,95:S,105:C,106:T,109:k,111:O,112:M,116:47,118:I,119:D,120:N,121:R,122:L,123:B,124:P,125:F,126:$,127:j},t(ue,[2,56]),t(fe,[2,115],{106:Ze}),t(et,[2,125],{108:274,22:Ue,66:Qe,67:ze,86:We,102:Ge,105:Ve,109:Ke,110:Ye,111:qe,112:Xe,113:Je}),t(tt,[2,127]),t(tt,[2,129]),t(tt,[2,130]),t(tt,[2,131]),t(tt,[2,132]),t(tt,[2,133]),t(tt,[2,134]),t(tt,[2,135]),t(tt,[2,136]),t(tt,[2,137]),t(tt,[2,138]),t(tt,[2,139]),t(fe,[2,116],{106:Ze}),t(fe,[2,117],{106:Ze}),{22:[1,275]},t(fe,[2,118],{106:Ze}),{22:[1,276]},t(He,[2,124]),t(fe,[2,98],{106:Ze}),t(fe,[2,99],{106:Ze}),t(fe,[2,100],{115:100,117:178,26:K,52:Y,66:q,67:X,91:J,105:Z,106:ee,109:te,111:ne,112:re,122:ie,123:oe,124:ae,125:se,126:le,127:ce}),t(fe,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:z,21:W,23:G},t(Q,[2,42]),{22:Ue,66:Qe,67:ze,86:We,102:Ge,105:Ve,107:283,108:244,109:Ke,110:Ye,111:qe,112:Xe,113:Je},t(tt,[2,128]),{26:K,52:Y,66:q,67:X,91:J,97:284,105:Z,106:ee,109:te,111:ne,112:re,115:100,117:98,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{26:K,52:Y,66:q,67:X,91:J,97:285,105:Z,106:ee,109:te,111:ne,112:re,115:100,117:98,122:ie,123:oe,124:ae,125:se,126:le,127:ce},t(fe,[2,108]),t(fe,[2,114]),t(de,[2,60]),{22:ve,24:Ae,26:be,38:ye,39:286,42:we,52:Y,66:q,67:X,73:_e,81:xe,83:140,84:Ee,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},t(de,[2,68]),t(Be,s,{17:287}),t(et,[2,126],{108:274,22:Ue,66:Qe,67:ze,86:We,102:Ge,105:Ve,109:Ke,110:Ye,111:qe,112:Xe,113:Je}),t(fe,[2,121],{115:100,117:178,22:[1,288],26:K,52:Y,66:q,67:X,91:J,105:Z,106:ee,109:te,111:ne,112:re,122:ie,123:oe,124:ae,125:se,126:le,127:ce}),t(fe,[2,122],{115:100,117:178,22:[1,289],26:K,52:Y,66:q,67:X,91:J,105:Z,106:ee,109:te,111:ne,112:re,122:ie,123:oe,124:ae,125:se,126:le,127:ce}),{22:ve,24:Ae,26:be,38:ye,41:[1,290],42:we,52:Y,66:q,67:X,73:_e,81:xe,83:201,85:151,86:Se,87:Ce,88:Te,89:ke,90:Oe,91:Me,92:Ie,94:142,95:De,105:Z,106:ee,109:Ne,111:ne,112:re,113:Re,114:Le,115:148,122:ie,123:oe,124:ae,125:se,126:le,127:ce},{18:18,19:19,20:l,21:c,22:u,23:d,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,291],43:31,44:f,46:p,48:g,50:35,51:45,52:m,54:46,66:v,67:A,86:b,87:y,88:w,89:_,90:x,91:E,95:S,105:C,106:T,109:k,111:O,112:M,116:47,118:I,119:D,120:N,121:R,122:L,123:B,124:P,125:F,126:$,127:j},{22:Ue,66:Qe,67:ze,86:We,96:292,102:Ge,105:Ve,107:243,108:244,109:Ke,110:Ye,111:qe,112:Xe,113:Je},{22:Ue,66:Qe,67:ze,86:We,96:293,102:Ge,105:Ve,107:243,108:244,109:Ke,110:Ye,111:qe,112:Xe,113:Je},t(de,[2,64]),t(Q,[2,41]),t(fe,[2,119],{106:Ze}),t(fe,[2,120],{106:Ze})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),d=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);d.setInput(e,h.yy),h.yy.lexer=d,h.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var p=d.yylloc;o.push(p);var g=d.options&&d.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||d.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,A,b,y,w,_,x,E,S={};;){if(A=n[n.length-1],this.defaultActions[A]?b=this.defaultActions[A]:(null==v&&(v=m()),b=a[A]&&a[A][v]),void 0===b||!b.length||!b[0]){var C="";for(w in E=[],a[A])this.terminals_[w]&&w>2&&E.push("'"+this.terminals_[w]+"'");C=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:p,expected:E})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(b[0]){case 1:n.push(v),i.push(d.yytext),o.push(d.yylloc),n.push(b[1]),v=null,c=d.yyleng,s=d.yytext,l=d.yylineno,p=d.yylloc;break;case 2:if(_=this.productions_[b[1]][1],S.$=i[i.length-_],S._$={first_line:o[o.length-(_||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(_||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(_||1)].range[0],o[o.length-1].range[1]]),void 0!==(y=this.performAction.apply(S,[s,c,l,h.yy,b[1],i,o].concat(u))))return y;_&&(n=n.slice(0,-1*_*2),i=i.slice(0,-1*_),o=o.slice(0,-1*_)),n.push(this.productions_[b[1]][0]),i.push(S.$),o.push(S._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},rt=(e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:case 6:break;case 7:return this.begin("acc_title"),44;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),46;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:case 15:case 24:case 27:case 30:case 33:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:this.begin("string");break;case 16:return"STR";case 17:return 86;case 18:return 95;case 19:return 87;case 20:return 104;case 21:return 88;case 22:return 89;case 23:this.begin("href");break;case 25:return 100;case 26:this.begin("callbackname");break;case 28:this.popState(),this.begin("callbackargs");break;case 29:return 98;case 31:return 99;case 32:this.begin("click");break;case 34:return 90;case 35:case 36:case 37:return e.lex.firstGraph()&&this.begin("dir"),24;case 38:return 38;case 39:return 42;case 40:case 41:case 42:case 43:return 101;case 44:return this.popState(),25;case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:return this.popState(),26;case 55:return 118;case 56:return 119;case 57:return 120;case 58:return 121;case 59:return 105;case 60:return 111;case 61:return 53;case 62:return 67;case 63:return 52;case 64:return 20;case 65:return 106;case 66:return 126;case 67:case 68:case 69:return 82;case 70:case 71:case 72:return 81;case 73:return 59;case 74:return 60;case 75:return 61;case 76:return 62;case 77:return 63;case 78:return 64;case 79:return 65;case 80:return 69;case 81:return 70;case 82:return 55;case 83:return 56;case 84:return 109;case 85:return 112;case 86:return 127;case 87:return 124;case 88:return 113;case 89:case 90:return 125;case 91:return 114;case 92:return 73;case 93:return 92;case 94:return"SEP";case 95:return 91;case 96:return 66;case 97:return 75;case 98:return 74;case 99:return 77;case 100:return 76;case 101:return 122;case 102:return 123;case 103:return 68;case 104:return 57;case 105:return 58;case 106:return 40;case 107:return 41;case 108:return 71;case 109:return 72;case 110:return 133;case 111:return 21;case 112:return 22;case 113:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\])/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\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]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\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\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-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\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-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\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])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[30,31],inclusive:!1},callbackname:{rules:[27,28,29],inclusive:!1},href:{rules:[24,25],inclusive:!1},click:{rules:[33,34],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[44,45,46,47,48,49,50,51,52,53,54],inclusive:!1},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,9,11,14,17,18,19,20,21,22,23,26,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113],inclusive:!0}}},e);function it(){this.yy={}}return nt.lexer=rt,it.prototype=nt,nt.Parser=it,new it}();Mge.parser=Mge;const Ige=Mge,Dge=(e,t)=>{var n,r;return"dagre-wrapper"!==(null==(n=null==t?void 0:t.flowchart)?void 0:n.defaultRenderer)&&"elk"!==(null==(r=null==t?void 0:t.flowchart)?void 0:r.defaultRenderer)&&null!==e.match(/^\s*graph/)},Nge=(e,t)=>{var n,r;return"dagre-d3"!==(null==(n=null==t?void 0:t.flowchart)?void 0:n.defaultRenderer)&&"elk"!==(null==(r=null==t?void 0:t.flowchart)?void 0:r.defaultRenderer)&&(null!==e.match(/^\s*graph/)||null!==e.match(/^\s*flowchart/))};let Rge,Lge,Bge=0,Pge=bde(),Fge={},$ge=[],jge={},Hge=[],Uge={},Qge={},zge=0,Wge=!0,Gge=[];const Vge=e=>Jle.sanitizeText(e,Pge),Kge=function(e,t,n){kwe.parseDirective(this,e,t,n)},Yge=function(e){const t=Object.keys(Fge);for(const n of t)if(Fge[n].id===e)return Fge[n].domId;return e},qge=function(e,t,n,r,i,o,a={}){let s,l=e;void 0!==l&&0!==l.trim().length&&(void 0===Fge[l]&&(Fge[l]={id:l,domId:"flowchart-"+l+"-"+Bge,styles:[],classes:[]}),Bge++,void 0!==t?(Pge=bde(),s=Vge(t.trim()),'"'===s[0]&&'"'===s[s.length-1]&&(s=s.substring(1,s.length-1)),Fge[l].text=s):void 0===Fge[l].text&&(Fge[l].text=e),void 0!==n&&(Fge[l].type=n),null!=r&&r.forEach(function(e){Fge[l].styles.push(e)}),null!=i&&i.forEach(function(e){Fge[l].classes.push(e)}),void 0!==o&&(Fge[l].dir=o),void 0===Fge[l].props?Fge[l].props=a:void 0!==a&&Object.assign(Fge[l].props,a))},Xge=function(e,t,n,r){const i={start:e,end:t,type:void 0,text:""};void 0!==(r=n.text)&&(i.text=Vge(r.trim()),'"'===i.text[0]&&'"'===i.text[i.text.length-1]&&(i.text=i.text.substring(1,i.text.length-1))),void 0!==n&&(i.type=n.type,i.stroke=n.stroke,i.length=n.length),$ge.push(i)},Jge=function(e,t,n,r){let i,o;for(i=0;i<e.length;i++)for(o=0;o<t.length;o++)Xge(e[i],t[o],n,r)},Zge=function(e,t){e.forEach(function(e){"default"===e?$ge.defaultInterpolate=t:$ge[e].interpolate=t})},eme=function(e,t){e.forEach(function(e){"default"===e?$ge.defaultStyle=t:(-1===cde.isSubstringInArray("fill",t)&&t.push("fill:none"),$ge[e].style=t)})},tme=function(e,t){void 0===jge[e]&&(jge[e]={id:e,styles:[],textStyles:[]}),null!=t&&t.forEach(function(t){if(t.match("color")){const n=t.replace("fill","bgFill").replace("color","fill");jge[e].textStyles.push(n)}jge[e].styles.push(t)})},nme=function(e){Rge=e,Rge.match(/.*</)&&(Rge="RL"),Rge.match(/.*\^/)&&(Rge="BT"),Rge.match(/.*>/)&&(Rge="LR"),Rge.match(/.*v/)&&(Rge="TB"),"TD"===Rge&&(Rge="TB")},rme=function(e,t){e.split(",").forEach(function(e){let n=e;void 0!==Fge[n]&&Fge[n].classes.push(t),void 0!==Uge[n]&&Uge[n].classes.push(t)})},ime=function(e,t,n){e.split(",").forEach(function(e){void 0!==Fge[e]&&(Fge[e].link=cde.formatUrl(t,Pge),Fge[e].linkTarget=n)}),rme(e,"clickable")},ome=function(e){return Qge[e]},ame=function(e,t,n){e.split(",").forEach(function(e){!function(e,t,n){let r=Yge(e);if("loose"!==bde().securityLevel)return;if(void 0===t)return;let i=[];if("string"==typeof n){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<i.length;e++){let t=i[e].trim();'"'===t.charAt(0)&&'"'===t.charAt(t.length-1)&&(t=t.substr(1,t.length-2)),i[e]=t}}0===i.length&&i.push(e),void 0!==Fge[e]&&(Fge[e].haveCallback=!0,Gge.push(function(){const e=document.querySelector(`[id="${r}"]`);null!==e&&e.addEventListener("click",function(){cde.runFunc(t,...i)},!1)}))}(e,t,n)}),rme(e,"clickable")},sme=function(e){Gge.forEach(function(t){t(e)})},lme=function(){return Rge.trim()},cme=function(){return Fge},ume=function(){return $ge},dme=function(){return jge},hme=function(e){let t=b3(".mermaidTooltip");null===(t._groups||t)[0][0]&&(t=b3("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),b3(e).select("svg").selectAll("g.node").on("mouseover",function(){const e=b3(this);if(null===e.attr("title"))return;const n=this.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.text(e.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),t.html(t.html().replace(/&lt;br\/&gt;/g,"<br/>")),e.classed("hover",!0)}).on("mouseout",function(){t.transition().duration(500).style("opacity",0),b3(this).classed("hover",!1)})};Gge.push(hme);const fme=function(e="gen-1"){Fge={},jge={},$ge=[],Gge=[hme],Hge=[],Uge={},zge=0,Qge=[],Wge=!0,Lge=e,Gde()},pme=e=>{Lge=e||"gen-2"},gme=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},mme=function(e,t,n){let r=e.trim(),i=n;e===n&&n.match(/\s/)&&(r=void 0);let o=[];const{nodeList:a,dir:s}=function(e){const t={boolean:{},number:{},string:{}},n=[];let r;return{nodeList:e.filter(function(e){const i=typeof e;return e.stmt&&"dir"===e.stmt?(r=e.value,!1):""!==e.trim()&&(i in t?!t[i].hasOwnProperty(e)&&(t[i][e]=!0):!n.includes(e)&&n.push(e))}),dir:r}}(o.concat.apply(o,t));if(o=a,"gen-1"===Lge)for(let c=0;c<o.length;c++)o[c]=Yge(o[c]);r=r||"subGraph"+zge,i=i||"",i=Vge(i),zge+=1;const l={id:r,nodes:o,title:i.trim(),classes:[],dir:s};return Hle.info("Adding",l.id,l.nodes,l.dir),l.nodes=Tme(l,Hge).nodes,Hge.push(l),Uge[r]=l,r},vme=function(e){for(const[t,n]of Hge.entries())if(n.id===e)return t;return-1};let Ame=-1;const bme=[],yme=function(e,t){const n=Hge[t].nodes;if(Ame+=1,Ame>2e3)return;if(bme[Ame]=t,Hge[t].id===e)return{result:!0,count:0};let r=0,i=1;for(;r<n.length;){const t=vme(n[r]);if(t>=0){const n=yme(e,t);if(n.result)return{result:!0,count:i+n.count};i+=n.count}r+=1}return{result:!1,count:i}},wme=function(e){return bme[e]},_me=function(){Ame=-1,Hge.length>0&&yme("none",Hge.length-1)},xme=function(){return Hge},Eme=()=>!!Wge&&(Wge=!1,!0),Sme=(e,t)=>{const n=(e=>{const t=e.trim();let n=t.slice(0,-1),r="arrow_open";switch(t.slice(-1)){case"x":r="arrow_cross","x"===t[0]&&(r="double_"+r,n=n.slice(1));break;case">":r="arrow_point","<"===t[0]&&(r="double_"+r,n=n.slice(1));break;case"o":r="arrow_circle","o"===t[0]&&(r="double_"+r,n=n.slice(1))}let i="normal",o=n.length-1;"="===n[0]&&(i="thick");let a=((e,t)=>{const n=t.length;let r=0;for(let i=0;i<n;++i)t[i]===e&&++r;return r})(".",n);return a&&(i="dotted",o=a),{type:r,stroke:i,length:o}})(e);let r;if(t){if(r=(e=>{let t=e.trim(),n="arrow_open";switch(t[0]){case"<":n="arrow_point",t=t.slice(1);break;case"x":n="arrow_cross",t=t.slice(1);break;case"o":n="arrow_circle",t=t.slice(1)}let r="normal";return t.includes("=")&&(r="thick"),t.includes(".")&&(r="dotted"),{type:n,stroke:r}})(t),r.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===r.type)r.type=n.type;else{if(r.type!==n.type)return{type:"INVALID",stroke:"INVALID"};r.type="double_"+r.type}return"double_arrow"===r.type&&(r.type="double_arrow_point"),r.length=n.length,r}return n},Cme=(e,t)=>{let n=!1;return e.forEach(e=>{e.nodes.indexOf(t)>=0&&(n=!0)}),n},Tme=(e,t)=>{const n=[];return e.nodes.forEach((r,i)=>{Cme(t,r)||n.push(e.nodes[i])}),{nodes:n}},kme={firstGraph:Eme},Ome={parseDirective:Kge,defaultConfig:()=>dde.flowchart,setAccTitle:Vde,getAccTitle:Kde,getAccDescription:qde,setAccDescription:Yde,addVertex:qge,lookUpDomId:Yge,addLink:Jge,updateLinkInterpolate:Zge,updateLink:eme,addClass:tme,setDirection:nme,setClass:rme,setTooltip:function(e,t){e.split(",").forEach(function(e){void 0!==t&&(Qge["gen-1"===Lge?Yge(e):e]=Vge(t))})},getTooltip:ome,setClickEvent:ame,setLink:ime,bindFunctions:sme,getDirection:lme,getVertices:cme,getEdges:ume,getClasses:dme,clear:fme,setGen:pme,defaultStyle:gme,addSubGraph:mme,getDepthFirstPos:wme,indexNodes:_me,getSubGraphs:xme,destructLink:Sme,lex:kme,exists:Cme,makeUniq:Tme,setDiagramTitle:Xde,getDiagramTitle:Jde},Mme=Object.freeze(Object.defineProperty({__proto__:null,addClass:tme,addLink:Jge,addSingleLink:Xge,addSubGraph:mme,addVertex:qge,bindFunctions:sme,clear:fme,default:Ome,defaultStyle:gme,destructLink:Sme,firstGraph:Eme,getClasses:dme,getDepthFirstPos:wme,getDirection:lme,getEdges:ume,getSubGraphs:xme,getTooltip:ome,getVertices:cme,indexNodes:_me,lex:kme,lookUpDomId:Yge,parseDirective:Kge,setClass:rme,setClickEvent:ame,setDirection:nme,setGen:pme,setLink:ime,updateLink:eme,updateLinkInterpolate:Zge},Symbol.toStringTag,{value:"Module"})),Ime={},Dme=function(e){const t=Object.keys(e);for(const n of t)Ime[n]=e[n]},Nme={},Rme=function(e,t,n,r,i,o){const a=r.select(`[id="${n}"]`);Object.keys(e).forEach(function(n){const r=e[n];let s="default";r.classes.length>0&&(s=r.classes.join(" "));const l=Kue(r.styles);let c,u=void 0!==r.text?r.text:r.id;if(qle(bde().flowchart.htmlLabels)){const e={label:u.replace(/fa[blrs]?:fa-[\w-]+/g,e=>`<i class='${e.replace(":"," ")}'></i>`)};c=Cle(a,e).node(),c.parentNode.removeChild(c)}else{const e=i.createElementNS("http://www.w3.org/2000/svg","text");e.setAttribute("style",l.labelStyle.replace("color:","fill:"));const t=u.split(Jle.lineBreakRegex);for(const n of t){const t=i.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.setAttribute("dy","1em"),t.setAttribute("x","1"),t.textContent=n,e.appendChild(t)}c=e}let d=0,h="";switch(r.type){case"round":d=5,h="rect";break;case"square":case"group":default:h="rect";break;case"diamond":h="question";break;case"hexagon":h="hexagon";break;case"odd":case"odd_right":h="rect_left_inv_arrow";break;case"lean_right":h="lean_right";break;case"lean_left":h="lean_left";break;case"trapezoid":h="trapezoid";break;case"inv_trapezoid":h="inv_trapezoid";break;case"circle":h="circle";break;case"ellipse":h="ellipse";break;case"stadium":h="stadium";break;case"subroutine":h="subroutine";break;case"cylinder":h="cylinder";break;case"doublecircle":h="doublecircle"}t.setNode(r.id,{labelStyle:l.labelStyle,shape:h,labelText:u,rx:d,ry:d,class:s,style:l.style,id:r.id,link:r.link,linkTarget:r.linkTarget,tooltip:o.db.getTooltip(r.id)||"",domId:o.db.lookUpDomId(r.id),haveCallback:r.haveCallback,width:"group"===r.type?500:void 0,dir:r.dir,type:r.type,props:r.props,padding:bde().flowchart.padding}),Hle.info("setNode",{labelStyle:l.labelStyle,shape:h,labelText:u,rx:d,ry:d,class:s,style:l.style,id:r.id,domId:o.db.lookUpDomId(r.id),width:"group"===r.type?500:void 0,type:r.type,dir:r.dir,props:r.props,padding:bde().flowchart.padding})})},Lme=function(e,t,n){Hle.info("abc78 edges = ",e);let r,i,o=0,a={};if(void 0!==e.defaultStyle){const t=Kue(e.defaultStyle);r=t.style,i=t.labelStyle}e.forEach(function(n){o++;var s="L-"+n.start+"-"+n.end;void 0===a[s]?(a[s]=0,Hle.info("abc78 new entry",s,a[s])):(a[s]++,Hle.info("abc78 new entry",s,a[s]));let l=s+"-"+a[s];Hle.info("abc78 new link id to be used is",s,l,a[s]);var c="LS-"+n.start,u="LE-"+n.end;const d={style:"",labelStyle:""};switch(d.minlen=n.length||1,"arrow_open"===n.type?d.arrowhead="none":d.arrowhead="normal",d.arrowTypeStart="arrow_open",d.arrowTypeEnd="arrow_open",n.type){case"double_arrow_cross":d.arrowTypeStart="arrow_cross";case"arrow_cross":d.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":d.arrowTypeStart="arrow_point";case"arrow_point":d.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":d.arrowTypeStart="arrow_circle";case"arrow_circle":d.arrowTypeEnd="arrow_circle"}let h="",f="";switch(n.stroke){case"normal":h="fill:none;",void 0!==r&&(h=r),void 0!==i&&(f=i),d.thickness="normal",d.pattern="solid";break;case"dotted":d.thickness="normal",d.pattern="dotted",d.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":d.thickness="thick",d.pattern="solid",d.style="stroke-width: 3.5px;fill:none;"}if(void 0!==n.style){const e=Kue(n.style);h=e.style,f=e.labelStyle}d.style=d.style+=h,d.labelStyle=d.labelStyle+=f,void 0!==n.interpolate?d.curve=Gue(n.interpolate,Z9):void 0!==e.defaultInterpolate?d.curve=Gue(e.defaultInterpolate,Z9):d.curve=Gue(Nme.curve,Z9),void 0===n.text?void 0!==n.style&&(d.arrowheadStyle="fill: #333"):(d.arrowheadStyle="fill: #333",d.labelpos="c"),d.labelType="text",d.label=n.text.replace(Jle.lineBreakRegex,"\n"),void 0===n.style&&(d.style=d.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),d.labelStyle=d.labelStyle.replace("color:","fill:"),d.id=l,d.classes="flowchart-link "+c+" "+u,t.setEdge(n.start,n.end,d,o)})},Bme={setConf:function(e){const t=Object.keys(e);for(const n of t)Nme[n]=e[n]},addVertices:Rme,addEdges:Lme,getClasses:function(e,t){Hle.info("Extracting classes"),t.db.clear();try{return t.parse(e),t.db.getClasses()}catch(e){return}},draw:function(e,t,n,r){Hle.info("Drawing flowchart"),r.db.clear(),Ome.setGen("gen-2"),r.parser.parse(e);let i=r.db.getDirection();void 0===i&&(i="TD");const{securityLevel:o,flowchart:a}=bde(),s=a.nodeSpacing||50,l=a.rankSpacing||50;let c;"sandbox"===o&&(c=b3("#i"+t));const u=b3("sandbox"===o?c.nodes()[0].contentDocument.body:"body"),d="sandbox"===o?c.nodes()[0].contentDocument:document,h=new Wae({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:s,ranksep:l,marginx:0,marginy:0}).setDefaultEdgeLabel(function(){return{}});let f;const p=r.db.getSubGraphs();Hle.info("Subgraphs - ",p);for(let y=p.length-1;y>=0;y--)f=p[y],Hle.info("Subgraph - ",f),r.db.addVertex(f.id,f.title,"group",void 0,f.classes,f.dir);const g=r.db.getVertices(),m=r.db.getEdges();Hle.info("Edges",m);let v=0;for(v=p.length-1;v>=0;v--){f=p[v],y3("cluster").append("text");for(let e=0;e<f.nodes.length;e++)Hle.info("Setting up subgraphs",f.nodes[e],f.id),h.setParent(f.nodes[e],f.id)}Rme(g,h,t,u,d,r),Lme(m,h);const A=u.select(`[id="${t}"]`),b=u.select("#"+t+" g");if(age(b,h,["point","circle","cross"],"flowchart",t),cde.insertTitle(A,"flowchartTitleText",a.titleTopMargin,r.db.getDiagramTitle()),Tde(h,A,a.diagramPadding,a.useMaxWidth),r.db.indexNodes("subGraph"+v),!a.htmlLabels){const e=d.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const t of e){const e=t.getBBox(),n=d.createElementNS("http://www.w3.org/2000/svg","rect");n.setAttribute("rx",0),n.setAttribute("ry",0),n.setAttribute("width",e.width),n.setAttribute("height",e.height),t.insertBefore(n,t.firstChild)}}Object.keys(g).forEach(function(e){const n=g[e];if(n.link){const r=b3("#"+t+' [id="'+e+'"]');if(r){const e=d.createElementNS("http://www.w3.org/2000/svg","a");e.setAttributeNS("http://www.w3.org/2000/svg","class",n.classes.join(" ")),e.setAttributeNS("http://www.w3.org/2000/svg","href",n.link),e.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),"sandbox"===o?e.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):n.linkTarget&&e.setAttributeNS("http://www.w3.org/2000/svg","target",n.linkTarget);const t=r.insert(function(){return e},":first-child"),i=r.select(".label-container");i&&t.append(function(){return i.node()});const a=r.select(".label");a&&t.append(function(){return a.node()})}}})}};var Pme=function(){var e,t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[1,3],r=[1,5],i=[7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],o=[1,15],a=[1,16],s=[1,17],l=[1,18],c=[1,19],u=[1,20],d=[1,21],h=[1,22],f=[1,23],p=[1,24],g=[1,25],m=[1,26],v=[1,27],A=[1,29],b=[1,31],y=[1,34],w=[5,7,9,11,12,13,14,15,16,17,18,19,20,21,23,25,26,28,35,40],_={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,tickInterval:16,excludes:17,includes:18,todayMarker:19,title:20,acc_title:21,acc_title_value:22,acc_descr:23,acc_descr_value:24,acc_descr_multiline_value:25,section:26,clickStatement:27,taskTxt:28,taskData:29,openDirective:30,typeDirective:31,closeDirective:32,":":33,argDirective:34,click:35,callbackname:36,callbackargs:37,href:38,clickStatementDebug:39,open_directive:40,type_directive:41,arg_directive:42,close_directive:43,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"topAxis",15:"axisFormat",16:"tickInterval",17:"excludes",18:"includes",19:"todayMarker",20:"title",21:"acc_title",22:"acc_title_value",23:"acc_descr",24:"acc_descr_value",25:"acc_descr_multiline_value",26:"section",28:"taskTxt",29:"taskData",33:":",35:"click",36:"callbackname",37:"callbackargs",38:"href",40:"open_directive",41:"type_directive",42:"arg_directive",43:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[27,2],[27,3],[27,3],[27,4],[27,3],[27,4],[27,2],[39,2],[39,3],[39,3],[39,4],[39,3],[39,4],[39,2],[30,1],[31,1],[34,1],[32,1]],performAction:function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 2:return o[s-1];case 3:case 7:case 8:this.$=[];break;case 4:o[s-1].push(o[s]),this.$=o[s-1];break;case 5:case 6:this.$=o[s];break;case 9:r.setDateFormat(o[s].substr(11)),this.$=o[s].substr(11);break;case 10:r.enableInclusiveEndDates(),this.$=o[s].substr(18);break;case 11:r.TopAxis(),this.$=o[s].substr(8);break;case 12:r.setAxisFormat(o[s].substr(11)),this.$=o[s].substr(11);break;case 13:r.setTickInterval(o[s].substr(13)),this.$=o[s].substr(13);break;case 14:r.setExcludes(o[s].substr(9)),this.$=o[s].substr(9);break;case 15:r.setIncludes(o[s].substr(9)),this.$=o[s].substr(9);break;case 16:r.setTodayMarker(o[s].substr(12)),this.$=o[s].substr(12);break;case 17:r.setDiagramTitle(o[s].substr(6)),this.$=o[s].substr(6);break;case 18:this.$=o[s].trim(),r.setAccTitle(this.$);break;case 19:case 20:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 21:r.addSection(o[s].substr(8)),this.$=o[s].substr(8);break;case 23:r.addTask(o[s-1],o[s]),this.$="task";break;case 27:this.$=o[s-1],r.setClickEvent(o[s-1],o[s],null);break;case 28:this.$=o[s-2],r.setClickEvent(o[s-2],o[s-1],o[s]);break;case 29:this.$=o[s-2],r.setClickEvent(o[s-2],o[s-1],null),r.setLink(o[s-2],o[s]);break;case 30:this.$=o[s-3],r.setClickEvent(o[s-3],o[s-2],o[s-1]),r.setLink(o[s-3],o[s]);break;case 31:this.$=o[s-2],r.setClickEvent(o[s-2],o[s],null),r.setLink(o[s-2],o[s-1]);break;case 32:this.$=o[s-3],r.setClickEvent(o[s-3],o[s-1],o[s]),r.setLink(o[s-3],o[s-2]);break;case 33:this.$=o[s-1],r.setLink(o[s-1],o[s]);break;case 34:case 40:this.$=o[s-1]+" "+o[s];break;case 35:case 36:case 38:this.$=o[s-2]+" "+o[s-1]+" "+o[s];break;case 37:case 39:this.$=o[s-3]+" "+o[s-2]+" "+o[s-1]+" "+o[s];break;case 41:r.parseDirective("%%{","open_directive");break;case 42:r.parseDirective(o[s],"type_directive");break;case 43:o[s]=o[s].trim().replace(/'/g,'"'),r.parseDirective(o[s],"arg_directive");break;case 44:r.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:n,30:4,40:r},{1:[3]},{3:6,4:2,5:n,30:4,40:r},t(i,[2,3],{6:7}),{31:8,41:[1,9]},{41:[2,41]},{1:[2,1]},{4:30,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:o,13:a,14:s,15:l,16:c,17:u,18:d,19:h,20:f,21:p,23:g,25:m,26:v,27:28,28:A,30:4,35:b,40:r},{32:32,33:[1,33],43:y},t([33,43],[2,42]),t(i,[2,8],{1:[2,2]}),t(i,[2,4]),{4:30,10:35,12:o,13:a,14:s,15:l,16:c,17:u,18:d,19:h,20:f,21:p,23:g,25:m,26:v,27:28,28:A,30:4,35:b,40:r},t(i,[2,6]),t(i,[2,7]),t(i,[2,9]),t(i,[2,10]),t(i,[2,11]),t(i,[2,12]),t(i,[2,13]),t(i,[2,14]),t(i,[2,15]),t(i,[2,16]),t(i,[2,17]),{22:[1,36]},{24:[1,37]},t(i,[2,20]),t(i,[2,21]),t(i,[2,22]),{29:[1,38]},t(i,[2,24]),{36:[1,39],38:[1,40]},{11:[1,41]},{34:42,42:[1,43]},{11:[2,44]},t(i,[2,5]),t(i,[2,18]),t(i,[2,19]),t(i,[2,23]),t(i,[2,27],{37:[1,44],38:[1,45]}),t(i,[2,33],{36:[1,46]}),t(w,[2,25]),{32:47,43:y},{43:[2,43]},t(i,[2,28],{38:[1,48]}),t(i,[2,29]),t(i,[2,31],{37:[1,49]}),{11:[1,50]},t(i,[2,30]),t(i,[2,32]),t(w,[2,26])],defaultActions:{5:[2,41],6:[2,1],34:[2,44],43:[2,43]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),d=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);d.setInput(e,h.yy),h.yy.lexer=d,h.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var p=d.yylloc;o.push(p);var g=d.options&&d.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||d.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,A,b,y,w,_,x,E,S={};;){if(A=n[n.length-1],this.defaultActions[A]?b=this.defaultActions[A]:(null==v&&(v=m()),b=a[A]&&a[A][v]),void 0===b||!b.length||!b[0]){var C="";for(w in E=[],a[A])this.terminals_[w]&&w>2&&E.push("'"+this.terminals_[w]+"'");C=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:p,expected:E})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(b[0]){case 1:n.push(v),i.push(d.yytext),o.push(d.yylloc),n.push(b[1]),v=null,c=d.yyleng,s=d.yytext,l=d.yylineno,p=d.yylloc;break;case 2:if(_=this.productions_[b[1]][1],S.$=i[i.length-_],S._$={first_line:o[o.length-(_||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(_||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(_||1)].range[0],o[o.length-1].range[1]]),void 0!==(y=this.performAction.apply(S,[s,c,l,h.yy,b[1],i,o].concat(u))))return y;_&&(n=n.slice(0,-1*_*2),i=i.slice(0,-1*_),o=o.slice(0,-1*_)),n.push(this.productions_[b[1]][0]),i.push(S.$),o.push(S._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},x=(e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),40;case 1:return this.begin("type_directive"),41;case 2:return this.popState(),this.begin("arg_directive"),33;case 3:return this.popState(),this.popState(),43;case 4:return 42;case 5:return this.begin("acc_title"),21;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),23;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:case 20:case 23:case 26:case 29:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:case 13:case 14:case 16:case 17:case 18:break;case 15:return 11;case 19:this.begin("href");break;case 21:return 38;case 22:this.begin("callbackname");break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 36;case 27:return 37;case 28:this.begin("click");break;case 30:return 35;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 16;case 37:return 18;case 38:return 17;case 39:return 19;case 40:return"date";case 41:return 20;case 42:return"accDescription";case 43:return 26;case 44:return 28;case 45:return 29;case 46:return 33;case 47:return 7;case 48:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}},e);function E(){this.yy={}}return _.lexer=x,E.prototype=_,_.Parser=E,new E}();Pme.parser=Pme;const Fme=Pme,$me=e=>null!==e.match(/^\s*gantt/);z0.extend(Nle),z0.extend(Ble),z0.extend($le);let jme,Hme="",Ume="",Qme="",zme=[],Wme=[],Gme={},Vme=[],Kme=[],Yme="";const qme=["active","done","crit","milestone"];let Xme=[],Jme=!1,Zme=!1,eve=0;const tve=function(e,t,n,r){return!r.includes(e.format(t.trim()))&&(!!(e.isoWeekday()>=6&&n.includes("weekends"))||!!n.includes(e.format("dddd").toLowerCase())||n.includes(e.format(t.trim())))},nve=function(e,t,n,r){if(!n.length||e.manualEndTime)return;let i,o;i=e.startTime instanceof Date?z0(e.startTime):z0(e.startTime,t,!0),i=i.add(1,"d"),o=e.endTime instanceof Date?z0(e.endTime):z0(e.endTime,t,!0);const[a,s]=rve(i,o,t,n,r);e.endTime=a.toDate(),e.renderEndTime=s},rve=function(e,t,n,r,i){let o=!1,a=null;for(;e<=t;)o||(a=t.toDate()),o=tve(e,n,r,i),o&&(t=t.add(1,"d")),e=e.add(1,"d");return[t,a]},ive=function(e,t,n){n=n.trim();const r=/^after\s+([\d\w- ]+)/.exec(n.trim());if(null!==r){let e=null;if(r[1].split(" ").forEach(function(t){let n=fve(t);void 0!==n&&(e?n.endTime>e.endTime&&(e=n):e=n)}),e)return e.endTime;{const e=new Date;return e.setHours(0,0,0,0),e}}let i=z0(n,t.trim(),!0);if(i.isValid())return i.toDate();{Hle.debug("Invalid date:"+n),Hle.debug("With date format:"+t.trim());const e=new Date(n);if(void 0===e||isNaN(e.getTime()))throw new Error("Invalid date:"+n);return e}},ove=function(e){const t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return null!==t?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]},ave=function(e,t,n,r=!1){n=n.trim();let i=z0(n,t.trim(),!0);if(i.isValid())return r&&(i=i.add(1,"d")),i.toDate();let o=z0(e);const[a,s]=ove(n);if(!Number.isNaN(a)){const e=o.add(a,s);e.isValid()&&(o=e)}return o.toDate()};let sve=0;const lve=function(e){return void 0===e?(sve+=1,"task"+sve):e};let cve,uve,dve=[];const hve={},fve=function(e){const t=hve[e];return dve[t]},pve=function(){const e=function(e){const t=dve[e];let n="";switch(dve[e].raw.startTime.type){case"prevTaskEnd":{const e=fve(t.prevTaskId);t.startTime=e.endTime;break}case"getStartDate":n=ive(0,Hme,dve[e].raw.startTime.startData),n&&(dve[e].startTime=n)}return dve[e].startTime&&(dve[e].endTime=ave(dve[e].startTime,Hme,dve[e].raw.endTime.data,Jme),dve[e].endTime&&(dve[e].processed=!0,dve[e].manualEndTime=z0(dve[e].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),nve(dve[e],Hme,Wme,zme))),dve[e].processed};let t=!0;for(const[n,r]of dve.entries())e(n),t=t&&r.processed;return t},gve=function(e,t){e.split(",").forEach(function(e){let n=fve(e);void 0!==n&&n.classes.push(t)})},mve=function(e,t){Xme.push(function(){const n=document.querySelector(`[id="${e}"]`);null!==n&&n.addEventListener("click",function(){t()})},function(){const n=document.querySelector(`[id="${e}-text"]`);null!==n&&n.addEventListener("click",function(){t()})})},vve={parseDirective:function(e,t,n){kwe.parseDirective(this,e,t,n)},getConfig:()=>bde().gantt,clear:function(){Vme=[],Kme=[],Yme="",Xme=[],sve=0,cve=void 0,uve=void 0,dve=[],Hme="",Ume="",jme=void 0,Qme="",zme=[],Wme=[],Jme=!1,Zme=!1,eve=0,Gme={},Gde()},setDateFormat:function(e){Hme=e},getDateFormat:function(){return Hme},enableInclusiveEndDates:function(){Jme=!0},endDatesAreInclusive:function(){return Jme},enableTopAxis:function(){Zme=!0},topAxisEnabled:function(){return Zme},setAxisFormat:function(e){Ume=e},getAxisFormat:function(){return Ume},setTickInterval:function(e){jme=e},getTickInterval:function(){return jme},setTodayMarker:function(e){Qme=e},getTodayMarker:function(){return Qme},setAccTitle:Vde,getAccTitle:Kde,setDiagramTitle:Xde,getDiagramTitle:Jde,setAccDescription:Yde,getAccDescription:qde,addSection:function(e){Yme=e,Vme.push(e)},getSections:function(){return Vme},getTasks:function(){let e=pve(),t=0;for(;!e&&t<10;)e=pve(),t++;return Kme=dve,Kme},addTask:function(e,t){const n={section:Yme,type:Yme,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},r=function(e,t){let n;n=":"===t.substr(0,1)?t.substr(1,t.length):t;const r=n.split(","),i={};Ave(r,i,qme);for(let o=0;o<r.length;o++)r[o]=r[o].trim();switch(r.length){case 1:i.id=lve(),i.startTime={type:"prevTaskEnd",id:e},i.endTime={data:r[0]};break;case 2:i.id=lve(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=lve(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]}}return i}(uve,t);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=uve,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.order=eve,eve++;const i=dve.push(n);uve=n.id,hve[n.id]=i-1},findTaskById:fve,addTaskOrg:function(e,t){const n={section:Yme,type:Yme,description:e,task:e,classes:[]},r=function(e,t){let n;n=":"===t.substr(0,1)?t.substr(1,t.length):t;const r=n.split(","),i={};Ave(r,i,qme);for(let a=0;a<r.length;a++)r[a]=r[a].trim();let o="";switch(r.length){case 1:i.id=lve(),i.startTime=e.endTime,o=r[0];break;case 2:i.id=lve(),i.startTime=ive(0,Hme,r[0]),o=r[1];break;case 3:i.id=lve(r[0]),i.startTime=ive(0,Hme,r[1]),o=r[2]}return o&&(i.endTime=ave(i.startTime,Hme,o,Jme),i.manualEndTime=z0(o,"YYYY-MM-DD",!0).isValid(),nve(i,Hme,Wme,zme)),i}(cve,t);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,cve=n,Kme.push(n)},setIncludes:function(e){zme=e.toLowerCase().split(/[\s,]+/)},getIncludes:function(){return zme},setExcludes:function(e){Wme=e.toLowerCase().split(/[\s,]+/)},getExcludes:function(){return Wme},setClickEvent:function(e,t,n){e.split(",").forEach(function(e){!function(e,t,n){if("loose"!==bde().securityLevel)return;if(void 0===t)return;let r=[];if("string"==typeof n){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<r.length;e++){let t=r[e].trim();'"'===t.charAt(0)&&'"'===t.charAt(t.length-1)&&(t=t.substr(1,t.length-2)),r[e]=t}}0===r.length&&r.push(e),void 0!==fve(e)&&mve(e,()=>{cde.runFunc(t,...r)})}(e,t,n)}),gve(e,"clickable")},setLink:function(e,t){let n=t;"loose"!==bde().securityLevel&&(n=G0.sanitizeUrl(t)),e.split(",").forEach(function(e){void 0!==fve(e)&&(mve(e,()=>{window.open(n,"_self")}),Gme[e]=n)}),gve(e,"clickable")},getLinks:function(){return Gme},bindFunctions:function(e){Xme.forEach(function(t){t(e)})},parseDuration:ove,isInvalidDate:tve};function Ave(e,t,n){let r=!0;for(;r;)r=!1,n.forEach(function(n){const i=new RegExp("^\\s*"+n+"\\s*$");e[0].match(i)&&(t[n]=!0,e.shift(1),r=!0)})}let bve;const yve={setConf:function(){Hle.debug("Something is calling, setConf, remove the call")},draw:function(e,t,n,r){const i=bde().gantt,o=bde().securityLevel;let a;"sandbox"===o&&(a=b3("#i"+t));const s=b3("sandbox"===o?a.nodes()[0].contentDocument.body:"body"),l="sandbox"===o?a.nodes()[0].contentDocument:document,c=l.getElementById(t);bve=c.parentElement.offsetWidth,void 0===bve&&(bve=1200),void 0!==i.useWidth&&(bve=i.useWidth);const u=r.db.getTasks(),d=u.length*(i.barHeight+i.barGap)+2*i.topPadding;c.setAttribute("viewBox","0 0 "+bve+" "+d);const h=s.select(`[id="${t}"]`),f=function(){return J6.apply(O9(r7,i7,J8,q8,L8,I8,O8,T8,C8,c7).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}().domain([S1(u,function(e){return e.startTime}),_1(u,function(e){return e.endTime})]).rangeRound([0,bve-i.leftPadding-i.rightPadding]);let p=[];for(const v of u)p.push(v.type);const g=p;function m(e,t){return function(e){let t=e.length;const n={};for(;t;)n[e[--t]]=(n[e[t]]||0)+1;return n}(t)[e]||0}p=function(e){const t={},n=[];for(let r=0,i=e.length;r<i;++r)Object.prototype.hasOwnProperty.call(t,e[r])||(t[e[r]]=!0,n.push(e[r]));return n}(p),u.sort(function(e,t){const n=e.startTime,r=t.startTime;let i=0;return n>r?i=1:n<r&&(i=-1),i}),function(e,n,o){const a=i.barHeight,s=a+i.barGap,c=i.topPadding,u=i.leftPadding;p8().domain([0,p.length]).range(["#00B9FA","#F95002"]).interpolate(z4),function(e,t,n,o,a,s,l,c){const u=s.reduce((e,{startTime:t})=>e?Math.min(e,t):t,0),d=s.reduce((e,{endTime:t})=>e?Math.max(e,t):t,0),p=r.db.getDateFormat();if(!u||!d)return;const g=[];let m=null,v=z0(u);for(;v.valueOf()<=d;)r.db.isInvalidDate(v,p,l,c)?m?m.end=v:m={start:v,end:v}:m&&(g.push(m),m=null),v=v.add(1,"d");h.append("g").selectAll("rect").data(g).enter().append("rect").attr("id",function(e){return"exclude-"+e.start.format("YYYY-MM-DD")}).attr("x",function(e){return f(e.start)+n}).attr("y",i.gridLineStartPadding).attr("width",function(e){const t=e.end.add(1,"day");return f(t)-f(e.start)}).attr("height",a-t-i.gridLineStartPadding).attr("transform-origin",function(t,r){return(f(t.start)+n+.5*(f(t.end)-f(t.start))).toString()+"px "+(r*e+.5*a).toString()+"px"}).attr("class","exclude-range")}(s,c,u,0,o,e,r.db.getExcludes(),r.db.getIncludes()),function(e,t,n,o){let a=(s=f,N1(3,s)).tickSize(-o+t+i.gridLineStartPadding).tickFormat(c7(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));var s;const l=/^([1-9]\d*)(minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(null!==l){const e=l[1];switch(l[2]){case"minute":a.ticks(T8.every(e));break;case"hour":a.ticks(O8.every(e));break;case"day":a.ticks(I8.every(e));break;case"week":a.ticks(L8.every(e));break;case"month":a.ticks(q8.every(e))}}if(h.append("g").attr("class","grid").attr("transform","translate("+e+", "+(o-50)+")").call(a).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let n=function(e){return N1(1,e)}(f).tickSize(-o+t+i.gridLineStartPadding).tickFormat(c7(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(null!==l){const e=l[1];switch(l[2]){case"minute":n.ticks(T8.every(e));break;case"hour":n.ticks(O8.every(e));break;case"day":n.ticks(I8.every(e));break;case"week":n.ticks(L8.every(e));break;case"month":n.ticks(q8.every(e))}}h.append("g").attr("class","grid").attr("transform","translate("+e+", "+t+")").call(n).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}(u,c,0,o),function(e,n,o,a,s,l,c){h.append("g").selectAll("rect").data(e).enter().append("rect").attr("x",0).attr("y",function(e,t){return e.order*n+o-2}).attr("width",function(){return c-i.rightPadding/2}).attr("height",n).attr("class",function(e){for(const[t,n]of p.entries())if(e.type===n)return"section section"+t%i.numberSectionStyles;return"section section0"});const u=h.append("g").selectAll("rect").data(e).enter(),d=r.db.getLinks();if(u.append("rect").attr("id",function(e){return e.id}).attr("rx",3).attr("ry",3).attr("x",function(e){return e.milestone?f(e.startTime)+a+.5*(f(e.endTime)-f(e.startTime))-.5*s:f(e.startTime)+a}).attr("y",function(e,t){return e.order*n+o}).attr("width",function(e){return e.milestone?s:f(e.renderEndTime||e.endTime)-f(e.startTime)}).attr("height",s).attr("transform-origin",function(e,t){return t=e.order,(f(e.startTime)+a+.5*(f(e.endTime)-f(e.startTime))).toString()+"px "+(t*n+o+.5*s).toString()+"px"}).attr("class",function(e){const t="task";let n="";e.classes.length>0&&(n=e.classes.join(" "));let r=0;for(const[a,s]of p.entries())e.type===s&&(r=a%i.numberSectionStyles);let o="";return e.active?e.crit?o+=" activeCrit":o=" active":e.done?o=e.crit?" doneCrit":" done":e.crit&&(o+=" crit"),0===o.length&&(o=" task"),e.milestone&&(o=" milestone "+o),o+=r,o+=" "+n,t+o}),u.append("text").attr("id",function(e){return e.id+"-text"}).text(function(e){return e.task}).attr("font-size",i.fontSize).attr("x",function(e){let t=f(e.startTime),n=f(e.renderEndTime||e.endTime);e.milestone&&(t+=.5*(f(e.endTime)-f(e.startTime))-.5*s),e.milestone&&(n=t+s);const r=this.getBBox().width;return r>n-t?n+r+1.5*i.leftPadding>c?t+a-5:n+a+5:(n-t)/2+t+a}).attr("y",function(e,t){return e.order*n+i.barHeight/2+(i.fontSize/2-2)+o}).attr("text-height",s).attr("class",function(e){const t=f(e.startTime);let n=f(e.endTime);e.milestone&&(n=t+s);const r=this.getBBox().width;let o="";e.classes.length>0&&(o=e.classes.join(" "));let a=0;for(const[s,c]of p.entries())e.type===c&&(a=s%i.numberSectionStyles);let l="";return e.active&&(l=e.crit?"activeCritText"+a:"activeText"+a),e.done?l=e.crit?l+" doneCritText"+a:l+" doneText"+a:e.crit&&(l=l+" critText"+a),e.milestone&&(l+=" milestoneText"),r>n-t?n+r+1.5*i.leftPadding>c?o+" taskTextOutsideLeft taskTextOutside"+a+" "+l:o+" taskTextOutsideRight taskTextOutside"+a+" "+l+" width-"+r:o+" taskText taskText"+a+" "+l+" width-"+r}),"sandbox"===bde().securityLevel){let e;e=b3("#i"+t);const n=e.nodes()[0].contentDocument;u.filter(function(e){return void 0!==d[e.id]}).each(function(e){var t=n.querySelector("#"+e.id),r=n.querySelector("#"+e.id+"-text");const i=t.parentNode;var o=n.createElement("a");o.setAttribute("xlink:href",d[e.id]),o.setAttribute("target","_top"),i.appendChild(o),o.appendChild(t),o.appendChild(r)})}}(e,s,c,u,a,0,n),function(e,t){const n=[];let r=0;for(const[i,o]of p.entries())n[i]=[o,m(o,g)];h.append("g").selectAll("text").data(n).enter().append(function(e){const t=e[0].split(Jle.lineBreakRegex),n=-(t.length-1)/2,r=l.createElementNS("http://www.w3.org/2000/svg","text");r.setAttribute("dy",n+"em");for(const[i,o]of t.entries()){const e=l.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttribute("alignment-baseline","central"),e.setAttribute("x","10"),i>0&&e.setAttribute("dy","1em"),e.textContent=o,r.appendChild(e)}return r}).attr("x",10).attr("y",function(i,o){if(!(o>0))return i[1]*e/2+t;for(let a=0;a<o;a++)return r+=n[o-1][1],i[1]*e/2+r*e+t}).attr("font-size",i.sectionFontSize).attr("font-size",i.sectionFontSize).attr("class",function(e){for(const[t,n]of p.entries())if(e[0]===n)return"sectionTitle sectionTitle"+t%i.numberSectionStyles;return"sectionTitle"})}(s,c),function(e,t,n,o){const a=r.db.getTodayMarker();if("off"===a)return;const s=h.append("g").attr("class","today"),l=new Date,c=s.append("line");c.attr("x1",f(l)+e).attr("x2",f(l)+e).attr("y1",i.titleTopMargin).attr("y2",o-i.titleTopMargin).attr("class","today"),""!==a&&c.attr("style",a.replace(/,/g,";"))}(u,0,0,o)}(u,bve,d),Cde(h,d,bve,i.useMaxWidth),h.append("text").text(r.db.getDiagramTitle()).attr("x",bve/2).attr("y",i.titleTopMargin).attr("class","titleText")}};var wve=function(){var e,t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[6,9,10],r={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(e,t,n,r,i,o,a){switch(o.length,i){case 1:return r;case 4:break;case 6:r.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},t(n,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},t(n,[2,3]),t(n,[2,4]),t(n,[2,5]),t(n,[2,6])],defaultActions:{4:[2,1]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),d=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);d.setInput(e,h.yy),h.yy.lexer=d,h.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var p=d.yylloc;o.push(p);var g=d.options&&d.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||d.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,A,b,y,w,_,x,E,S={};;){if(A=n[n.length-1],this.defaultActions[A]?b=this.defaultActions[A]:(null==v&&(v=m()),b=a[A]&&a[A][v]),void 0===b||!b.length||!b[0]){var C="";for(w in E=[],a[A])this.terminals_[w]&&w>2&&E.push("'"+this.terminals_[w]+"'");C=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:p,expected:E})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(b[0]){case 1:n.push(v),i.push(d.yytext),o.push(d.yylloc),n.push(b[1]),v=null,c=d.yyleng,s=d.yytext,l=d.yylineno,p=d.yylloc;break;case 2:if(_=this.productions_[b[1]][1],S.$=i[i.length-_],S._$={first_line:o[o.length-(_||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(_||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(_||1)].range[0],o[o.length-1].range[1]]),void 0!==(y=this.performAction.apply(S,[s,c,l,h.yy,b[1],i,o].concat(u))))return y;_&&(n=n.slice(0,-1*_*2),i=i.slice(0,-1*_),o=o.slice(0,-1*_)),n.push(this.productions_[b[1]][0]),i.push(S.$),o.push(S._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},i=(e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}},e);function o(){this.yy={}}return r.lexer=i,o.prototype=r,r.Parser=o,new o}();wve.parser=wve;const _ve=wve;var xve="",Eve=!1;const Sve={setMessage:e=>{Hle.debug("Setting message to: "+e),xve=e},getMessage:()=>xve,setInfo:e=>{Eve=e},getInfo:()=>Eve,clear:Gde},Cve={draw:(e,t,n)=>{try{Hle.debug("Rendering info diagram\n"+e);const r=bde().securityLevel;let i;"sandbox"===r&&(i=b3("#i"+t));const o=b3("sandbox"===r?i.nodes()[0].contentDocument.body:"body").select("#"+t);o.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+n),o.attr("height",100),o.attr("width",400)}catch(e){Hle.error("Error while rendering info diagram"),Hle.error(e.message)}}},Tve=e=>null!==e.match(/^\s*info/);var kve=function(){var e,t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[1,4],r=[1,5],i=[1,6],o=[1,7],a=[1,9],s=[1,11,13,15,17,19,20,26,27,28,29],l=[2,5],c=[1,6,11,13,15,17,19,20,26,27,28,29],u=[26,27,28],d=[2,8],h=[1,18],f=[1,19],p=[1,20],g=[1,21],m=[1,22],v=[1,23],A=[1,28],b=[6,26,27,28,29],y={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,":":24,argDirective:25,NEWLINE:26,";":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",8:"showData",11:"txt",12:"value",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",24:":",26:"NEWLINE",27:";",28:"EOF",29:"open_directive",30:"type_directive",31:"arg_directive",32:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 4:r.setShowData(!0);break;case 7:this.$=o[s-1];break;case 9:r.addSection(o[s-1],r.cleanupValue(o[s]));break;case 10:this.$=o[s].trim(),r.setDiagramTitle(this.$);break;case 11:this.$=o[s].trim(),r.setAccTitle(this.$);break;case 12:case 13:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 14:r.addSection(o[s].substr(8)),this.$=o[s].substr(8);break;case 21:r.parseDirective("%%{","open_directive");break;case 22:r.parseDirective(o[s],"type_directive");break;case 23:o[s]=o[s].trim().replace(/'/g,'"'),r.parseDirective(o[s],"arg_directive");break;case 24:r.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:n,21:8,26:r,27:i,28:o,29:a},{1:[3]},{3:10,4:2,5:3,6:n,21:8,26:r,27:i,28:o,29:a},{3:11,4:2,5:3,6:n,21:8,26:r,27:i,28:o,29:a},t(s,l,{7:12,8:[1,13]}),t(c,[2,18]),t(c,[2,19]),t(c,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},t(u,d,{21:8,9:16,10:17,5:24,1:[2,3],11:h,13:f,15:p,17:g,19:m,20:v,29:a}),t(s,l,{7:25}),{23:26,24:[1,27],32:A},t([24,32],[2,22]),t(s,[2,6]),{4:29,26:r,27:i,28:o},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},t(u,[2,13]),t(u,[2,14]),t(u,[2,15]),t(u,d,{21:8,9:16,10:17,5:24,1:[2,4],11:h,13:f,15:p,17:g,19:m,20:v,29:a}),t(b,[2,16]),{25:34,31:[1,35]},t(b,[2,24]),t(s,[2,7]),t(u,[2,9]),t(u,[2,10]),t(u,[2,11]),t(u,[2,12]),{23:36,32:A},{32:[2,23]},t(b,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),d=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);d.setInput(e,h.yy),h.yy.lexer=d,h.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var p=d.yylloc;o.push(p);var g=d.options&&d.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||d.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,A,b,y,w,_,x,E,S={};;){if(A=n[n.length-1],this.defaultActions[A]?b=this.defaultActions[A]:(null==v&&(v=m()),b=a[A]&&a[A][v]),void 0===b||!b.length||!b[0]){var C="";for(w in E=[],a[A])this.terminals_[w]&&w>2&&E.push("'"+this.terminals_[w]+"'");C=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:p,expected:E})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(b[0]){case 1:n.push(v),i.push(d.yytext),o.push(d.yylloc),n.push(b[1]),v=null,c=d.yyleng,s=d.yytext,l=d.yylineno,p=d.yylloc;break;case 2:if(_=this.productions_[b[1]][1],S.$=i[i.length-_],S._$={first_line:o[o.length-(_||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(_||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(_||1)].range[0],o[o.length-1].range[1]]),void 0!==(y=this.performAction.apply(S,[s,c,l,h.yy,b[1],i,o].concat(u))))return y;_&&(n=n.slice(0,-1*_*2),i=i.slice(0,-1*_),o=o.slice(0,-1*_)),n.push(this.productions_[b[1]][0]),i.push(S.$),o.push(S._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},w=(e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),29;case 1:return this.begin("type_directive"),30;case 2:return this.popState(),this.begin("arg_directive"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:case 6:case 8:case 9:break;case 7:return 26;case 10:return this.begin("title"),13;case 11:return this.popState(),"title_value";case 12:return this.begin("acc_title"),15;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),17;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:case 20:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:this.begin("string");break;case 21:return"txt";case 22:return 6;case 23:return 8;case 24:return"value";case 25:return 28}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?:showData\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}},e);function _(){this.yy={}}return y.lexer=w,_.prototype=y,y.Parser=_,new _}();kve.parser=kve;const Ove=kve,Mve=e=>null!==e.match(/^\s*pie/)||null!==e.match(/^\s*bar/);let Ive={},Dve=!1;const Nve={parseDirective:function(e,t,n){kwe.parseDirective(this,e,t,n)},getConfig:()=>bde().pie,addSection:function(e,t){e=Jle.sanitizeText(e,bde()),void 0===Ive[e]&&(Ive[e]=t,Hle.debug("Added new section :",e))},getSections:()=>Ive,cleanupValue:function(e){return":"===e.substring(0,1)?(e=e.substring(1).trim(),Number(e.trim())):Number(e.trim())},clear:function(){Ive={},Dve=!1,Gde()},setAccTitle:Vde,getAccTitle:Kde,setDiagramTitle:Xde,getDiagramTitle:Jde,setShowData:function(e){Dve=e},getShowData:function(){return Dve},getAccDescription:qde,setAccDescription:Yde};let Rve,Lve=bde();const Bve=450,Pve={draw:(e,t,n,r)=>{try{Lve=bde(),Hle.debug("Rendering info diagram\n"+e);const n=bde().securityLevel;let m;"sandbox"===n&&(m=b3("#i"+t));const v=b3("sandbox"===n?m.nodes()[0].contentDocument.body:"body"),A="sandbox"===n?m.nodes()[0].contentDocument:document;r.db.clear(),r.parser.parse(e),Hle.debug("Parsed info diagram");const b=A.getElementById(t);Rve=b.parentElement.offsetWidth,void 0===Rve&&(Rve=1200),void 0!==Lve.useWidth&&(Rve=Lve.useWidth),void 0!==Lve.pie.useWidth&&(Rve=Lve.pie.useWidth);const y=v.select("#"+t);Cde(y,Bve,Rve,Lve.pie.useMaxWidth),b.setAttribute("viewBox","0 0 "+Rve+" "+Bve);var i=18,o=Math.min(Rve,Bve)/2-40,a=y.append("g").attr("transform","translate("+Rve/2+",225)"),s=r.db.getSections(),l=0;Object.keys(s).forEach(function(e){l+=s[e]});const w=Lve.themeVariables;var c=[w.pie1,w.pie2,w.pie3,w.pie4,w.pie5,w.pie6,w.pie7,w.pie8,w.pie9,w.pie10,w.pie11,w.pie12],u=n8().range(c),d=Object.entries(s).map(function(e,t){return{order:t,name:e[0],value:e[1]}}),h=function(){var e=iee,t=ree,n=null,r=M9(0),i=M9(H9),o=M9(0);function a(a){var s,l,c,u,d,h=(a=X9(a)).length,f=0,p=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(H9,Math.max(-H9,i.apply(this,arguments)-m)),A=Math.min(Math.abs(v)/h,o.apply(this,arguments)),b=A*(v<0?-1:1);for(s=0;s<h;++s)(d=g[p[s]=s]=+e(a[s],s,a))>0&&(f+=d);for(null!=t?bG(p).call(p,function(e,n){return t(g[e],g[n])}):null!=n&&bG(p).call(p,function(e,t){return n(a[e],a[t])}),s=0,c=f?(v-h*b)/f:0;s<h;++s,m=u)l=p[s],u=m+((d=g[l])>0?d*c:0)+b,g[l]={data:a[l],index:s,value:d,startAngle:m,endAngle:u,padAngle:A};return g}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:M9(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:M9(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:M9(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:M9(+e),a):o},a}().value(function(e){return e.value}).sort(function(e,t){return e.order-t.order}),f=h(d),p=q9().innerRadius(0).outerRadius(o);a.selectAll("mySlices").data(f).enter().append("path").attr("d",p).attr("fill",function(e){return u(e.data.name)}).attr("class","pieCircle"),a.selectAll("mySlices").data(f).enter().append("text").text(function(e){return(e.data.value/l*100).toFixed(0)+"%"}).attr("transform",function(e){return"translate("+p.centroid(e)+")"}).style("text-anchor","middle").attr("class","slice"),a.append("text").text(r.db.getDiagramTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var g=a.selectAll(".legend").data(u.domain()).enter().append("g").attr("class","legend").attr("transform",function(e,t){return"translate(216,"+(22*t-22*u.domain().length/2)+")"});g.append("rect").attr("width",i).attr("height",i).style("fill",u).style("stroke",u),g.data(f).append("text").attr("x",22).attr("y",14).text(function(e){return r.db.getShowData()||Lve.showData||Lve.pie.showData?e.data.name+" ["+e.data.value+"]":e.data.name})}catch(e){Hle.error("Error while rendering info diagram"),Hle.error(e)}}};var Fve=function(){var e,t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[1,3],r=[1,5],i=[1,6],o=[1,7],a=[1,8],s=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],l=[1,22],c=[2,13],u=[1,26],d=[1,27],h=[1,28],f=[1,29],p=[1,30],g=[1,31],m=[1,24],v=[1,32],A=[1,33],b=[1,36],y=[71,72],w=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],_=[1,56],x=[1,57],E=[1,58],S=[1,59],C=[1,60],T=[1,61],k=[1,62],O=[62,63],M=[1,74],I=[1,70],D=[1,71],N=[1,72],R=[1,73],L=[1,75],B=[1,79],P=[1,80],F=[1,77],$=[1,78],j=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],H={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,":":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",12:":",14:"acc_title",15:"acc_title_value",16:"acc_descr",17:"acc_descr_value",18:"acc_descr_multiline_value",19:"open_directive",20:"type_directive",21:"arg_directive",22:"close_directive",28:"STRUCT_START",30:"ID",31:"COLONSEP",33:"TEXT",35:"RISK",37:"VERIFYMTHD",39:"STRUCT_STOP",40:"REQUIREMENT",41:"FUNCTIONAL_REQUIREMENT",42:"INTERFACE_REQUIREMENT",43:"PERFORMANCE_REQUIREMENT",44:"PHYSICAL_REQUIREMENT",45:"DESIGN_CONSTRAINT",46:"LOW_RISK",47:"MED_RISK",48:"HIGH_RISK",49:"VERIFY_ANALYSIS",50:"VERIFY_DEMONSTRATION",51:"VERIFY_INSPECTION",52:"VERIFY_TEST",53:"ELEMENT",56:"TYPE",58:"DOCREF",60:"END_ARROW_L",62:"LINE",63:"END_ARROW_R",64:"CONTAINS",65:"COPIES",66:"DERIVES",67:"SATISFIES",68:"VERIFIES",69:"REFINES",70:"TRACES",71:"unqString",72:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[4,2],[4,2],[4,1],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[23,5],[29,5],[29,5],[29,5],[29,5],[29,2],[29,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[36,1],[36,1],[36,1],[38,1],[38,1],[38,1],[38,1],[24,5],[55,5],[55,5],[55,2],[55,1],[25,5],[25,5],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[27,1],[27,1],[32,1],[32,1],[34,1],[34,1],[54,1],[54,1],[57,1],[57,1],[59,1],[59,1]],performAction:function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 6:this.$=o[s].trim(),r.setAccTitle(this.$);break;case 7:case 8:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 9:r.parseDirective("%%{","open_directive");break;case 10:r.parseDirective(o[s],"type_directive");break;case 11:o[s]=o[s].trim().replace(/'/g,'"'),r.parseDirective(o[s],"arg_directive");break;case 12:r.parseDirective("}%%","close_directive","pie");break;case 13:this.$=[];break;case 19:r.addRequirement(o[s-3],o[s-4]);break;case 20:r.setNewReqId(o[s-2]);break;case 21:r.setNewReqText(o[s-2]);break;case 22:r.setNewReqRisk(o[s-2]);break;case 23:r.setNewReqVerifyMethod(o[s-2]);break;case 26:this.$=r.RequirementType.REQUIREMENT;break;case 27:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=r.RiskLevel.LOW_RISK;break;case 33:this.$=r.RiskLevel.MED_RISK;break;case 34:this.$=r.RiskLevel.HIGH_RISK;break;case 35:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=r.VerifyType.VERIFY_TEST;break;case 39:r.addElement(o[s-3]);break;case 40:r.setNewElementType(o[s-2]);break;case 41:r.setNewElementDocRef(o[s-2]);break;case 44:r.addRelationship(o[s-2],o[s],o[s-4]);break;case 45:r.addRelationship(o[s-2],o[s-4],o[s]);break;case 46:this.$=r.Relationships.CONTAINS;break;case 47:this.$=r.Relationships.COPIES;break;case 48:this.$=r.Relationships.DERIVES;break;case 49:this.$=r.Relationships.SATISFIES;break;case 50:this.$=r.Relationships.VERIFIES;break;case 51:this.$=r.Relationships.REFINES;break;case 52:this.$=r.Relationships.TRACES}},table:[{3:1,4:2,6:n,9:4,14:r,16:i,18:o,19:a},{1:[3]},{3:10,4:2,5:[1,9],6:n,9:4,14:r,16:i,18:o,19:a},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},t(s,[2,8]),{20:[2,9]},{3:16,4:2,6:n,9:4,14:r,16:i,18:o,19:a},{1:[2,2]},{4:21,5:l,7:17,8:c,9:4,14:r,16:i,18:o,19:a,23:18,24:19,25:20,26:23,32:25,40:u,41:d,42:h,43:f,44:p,45:g,53:m,71:v,72:A},{11:34,12:[1,35],22:b},t([12,22],[2,10]),t(s,[2,6]),t(s,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:l,7:38,8:c,9:4,14:r,16:i,18:o,19:a,23:18,24:19,25:20,26:23,32:25,40:u,41:d,42:h,43:f,44:p,45:g,53:m,71:v,72:A},{4:21,5:l,7:39,8:c,9:4,14:r,16:i,18:o,19:a,23:18,24:19,25:20,26:23,32:25,40:u,41:d,42:h,43:f,44:p,45:g,53:m,71:v,72:A},{4:21,5:l,7:40,8:c,9:4,14:r,16:i,18:o,19:a,23:18,24:19,25:20,26:23,32:25,40:u,41:d,42:h,43:f,44:p,45:g,53:m,71:v,72:A},{4:21,5:l,7:41,8:c,9:4,14:r,16:i,18:o,19:a,23:18,24:19,25:20,26:23,32:25,40:u,41:d,42:h,43:f,44:p,45:g,53:m,71:v,72:A},{4:21,5:l,7:42,8:c,9:4,14:r,16:i,18:o,19:a,23:18,24:19,25:20,26:23,32:25,40:u,41:d,42:h,43:f,44:p,45:g,53:m,71:v,72:A},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},t(y,[2,26]),t(y,[2,27]),t(y,[2,28]),t(y,[2,29]),t(y,[2,30]),t(y,[2,31]),t(w,[2,55]),t(w,[2,56]),t(s,[2,4]),{13:51,21:[1,52]},t(s,[2,12]),{1:[2,3]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{8:[2,17]},{8:[2,18]},{28:[1,53]},{28:[2,53]},{28:[2,54]},{28:[1,54]},{28:[2,59]},{28:[2,60]},{61:55,64:_,65:x,66:E,67:S,68:C,69:T,70:k},{61:63,64:_,65:x,66:E,67:S,68:C,69:T,70:k},{11:64,22:b},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},t(O,[2,46]),t(O,[2,47]),t(O,[2,48]),t(O,[2,49]),t(O,[2,50]),t(O,[2,51]),t(O,[2,52]),{63:[1,68]},t(s,[2,5]),{5:M,29:69,30:I,33:D,35:N,37:R,39:L},{5:B,39:P,55:76,56:F,58:$},{32:81,71:v,72:A},{32:82,71:v,72:A},t(j,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:M,29:87,30:I,33:D,35:N,37:R,39:L},t(j,[2,25]),t(j,[2,39]),{31:[1,88]},{31:[1,89]},{5:B,39:P,55:90,56:F,58:$},t(j,[2,43]),t(j,[2,44]),t(j,[2,45]),{32:91,71:v,72:A},{34:92,71:[1,93],72:[1,94]},{36:95,46:[1,96],47:[1,97],48:[1,98]},{38:99,49:[1,100],50:[1,101],51:[1,102],52:[1,103]},t(j,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},t(j,[2,42]),{5:[1,110]},{5:[1,111]},{5:[2,57]},{5:[2,58]},{5:[1,112]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[1,113]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[2,38]},{5:[1,114]},{5:[2,61]},{5:[2,62]},{5:[1,115]},{5:[2,63]},{5:[2,64]},{5:M,29:116,30:I,33:D,35:N,37:R,39:L},{5:M,29:117,30:I,33:D,35:N,37:R,39:L},{5:M,29:118,30:I,33:D,35:N,37:R,39:L},{5:M,29:119,30:I,33:D,35:N,37:R,39:L},{5:B,39:P,55:120,56:F,58:$},{5:B,39:P,55:121,56:F,58:$},t(j,[2,20]),t(j,[2,21]),t(j,[2,22]),t(j,[2,23]),t(j,[2,40]),t(j,[2,41])],defaultActions:{8:[2,9],10:[2,2],16:[2,1],37:[2,3],38:[2,14],39:[2,15],40:[2,16],41:[2,17],42:[2,18],44:[2,53],45:[2,54],47:[2,59],48:[2,60],52:[2,11],93:[2,57],94:[2,58],96:[2,32],97:[2,33],98:[2,34],100:[2,35],101:[2,36],102:[2,37],103:[2,38],105:[2,61],106:[2,62],108:[2,63],109:[2,64]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),d=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);d.setInput(e,h.yy),h.yy.lexer=d,h.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var p=d.yylloc;o.push(p);var g=d.options&&d.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||d.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,A,b,y,w,_,x,E,S={};;){if(A=n[n.length-1],this.defaultActions[A]?b=this.defaultActions[A]:(null==v&&(v=m()),b=a[A]&&a[A][v]),void 0===b||!b.length||!b[0]){var C="";for(w in E=[],a[A])this.terminals_[w]&&w>2&&E.push("'"+this.terminals_[w]+"'");C=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:p,expected:E})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(b[0]){case 1:n.push(v),i.push(d.yytext),o.push(d.yylloc),n.push(b[1]),v=null,c=d.yyleng,s=d.yytext,l=d.yylineno,p=d.yylloc;break;case 2:if(_=this.productions_[b[1]][1],S.$=i[i.length-_],S._$={first_line:o[o.length-(_||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(_||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(_||1)].range[0],o[o.length-1].range[1]]),void 0!==(y=this.performAction.apply(S,[s,c,l,h.yy,b[1],i,o].concat(u))))return y;_&&(n=n.slice(0,-1*_*2),i=i.slice(0,-1*_),o=o.slice(0,-1*_)),n.push(this.productions_[b[1]][0]),i.push(S.$),o.push(S._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},U=(e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),19;case 1:return this.begin("type_directive"),20;case 2:return this.popState(),this.begin("arg_directive"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return"title";case 6:return this.begin("acc_title"),14;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),16;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 53:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 5;case 14:case 15:case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin("string");break;case 54:return"qString";case 55:return t.yytext=t.yytext.trim(),71}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^\r\n\{\<\>\-\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,55],inclusive:!0}}},e);function Q(){this.yy={}}return H.lexer=U,Q.prototype=H,H.Parser=Q,new Q}();Fve.parser=Fve;const $ve=Fve,jve=e=>null!==e.match(/^\s*requirement(Diagram)?/);let Hve=[],Uve={},Qve={},zve={},Wve={};const Gve={RequirementType:{REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},RiskLevel:{LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},VerifyType:{VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},Relationships:{CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},parseDirective:function(e,t,n){kwe.parseDirective(this,e,t,n)},getConfig:()=>bde().req,addRequirement:(e,t)=>(void 0===Qve[e]&&(Qve[e]={name:e,type:t,id:Uve.id,text:Uve.text,risk:Uve.risk,verifyMethod:Uve.verifyMethod}),Uve={},Qve[e]),getRequirements:()=>Qve,setNewReqId:e=>{void 0!==Uve&&(Uve.id=e)},setNewReqText:e=>{void 0!==Uve&&(Uve.text=e)},setNewReqRisk:e=>{void 0!==Uve&&(Uve.risk=e)},setNewReqVerifyMethod:e=>{void 0!==Uve&&(Uve.verifyMethod=e)},setAccTitle:Vde,getAccTitle:Kde,setAccDescription:Yde,getAccDescription:qde,addElement:e=>(void 0===Wve[e]&&(Wve[e]={name:e,type:zve.type,docRef:zve.docRef},Hle.info("Added new requirement: ",e)),zve={},Wve[e]),getElements:()=>Wve,setNewElementType:e=>{void 0!==zve&&(zve.type=e)},setNewElementDocRef:e=>{void 0!==zve&&(zve.docRef=e)},addRelationship:(e,t,n)=>{Hve.push({type:e,src:t,dst:n})},getRelationships:()=>Hve,clear:()=>{Hve=[],Uve={},Qve={},zve={},Wve={},Gde()}},Vve={CONTAINS:"contains",ARROW:"arrow"},Kve=Vve,Yve=(e,t)=>{let n=e.append("defs").append("marker").attr("id",Vve.CONTAINS+"_line_ending").attr("refX",0).attr("refY",t.line_height/2).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("g");n.append("circle").attr("cx",t.line_height/2).attr("cy",t.line_height/2).attr("r",t.line_height/2).attr("fill","none"),n.append("line").attr("x1",0).attr("x2",t.line_height).attr("y1",t.line_height/2).attr("y2",t.line_height/2).attr("stroke-width",1),n.append("line").attr("y1",0).attr("y2",t.line_height).attr("x1",t.line_height/2).attr("x2",t.line_height/2).attr("stroke-width",1),e.append("defs").append("marker").attr("id",Vve.ARROW+"_line_ending").attr("refX",t.line_height).attr("refY",.5*t.line_height).attr("markerWidth",t.line_height).attr("markerHeight",t.line_height).attr("orient","auto").append("path").attr("d",`M0,0\n      L${t.line_height},${t.line_height/2}\n      M${t.line_height},${t.line_height/2}\n      L0,${t.line_height}`).attr("stroke-width",1)};let qve={},Xve=0;const Jve=(e,t)=>e.insert("rect","#"+t).attr("class","req reqBox").attr("x",0).attr("y",0).attr("width",qve.rect_min_width+"px").attr("height",qve.rect_min_height+"px"),Zve=(e,t,n)=>{let r=qve.rect_min_width/2,i=e.append("text").attr("class","req reqLabel reqTitle").attr("id",t).attr("x",r).attr("y",qve.rect_padding).attr("dominant-baseline","hanging"),o=0;n.forEach(e=>{0==o?i.append("tspan").attr("text-anchor","middle").attr("x",qve.rect_min_width/2).attr("dy",0).text(e):i.append("tspan").attr("text-anchor","middle").attr("x",qve.rect_min_width/2).attr("dy",.75*qve.line_height).text(e),o++});let a=1.5*qve.rect_padding+o*qve.line_height*.75;return e.append("line").attr("class","req-title-line").attr("x1","0").attr("x2",qve.rect_min_width).attr("y1",a).attr("y2",a),{titleNode:i,y:a}},eAe=(e,t,n,r)=>{let i=e.append("text").attr("class","req reqLabel").attr("id",t).attr("x",qve.rect_padding).attr("y",r).attr("dominant-baseline","hanging"),o=0,a=[];return n.forEach(e=>{let t=e.length;for(;t>30&&o<3;){let n=e.substring(0,30);t=(e=e.substring(30,e.length)).length,a[a.length]=n,o++}if(3==o){let e=a[a.length-1];a[a.length-1]=e.substring(0,e.length-4)+"..."}else a[a.length]=e;o=0}),a.forEach(e=>{i.append("tspan").attr("x",qve.rect_padding).attr("dy",qve.line_height).text(e)}),i},tAe=function(e,t,n,r,i){const o=n.edge(nAe(t.src),nAe(t.dst)),a=nee().x(function(e){return e.x}).y(function(e){return e.y}),s=e.insert("path","#"+r).attr("class","er relationshipLine").attr("d",a(o.points)).attr("fill","none");t.type==i.db.Relationships.CONTAINS?s.attr("marker-start","url("+Jle.getUrl(qve.arrowMarkerAbsolute)+"#"+t.type+"_line_ending)"):(s.attr("stroke-dasharray","10,7"),s.attr("marker-end","url("+Jle.getUrl(qve.arrowMarkerAbsolute)+"#"+Kve.ARROW+"_line_ending)")),((e,t,n,r)=>{const i=t.node().getTotalLength(),o=t.node().getPointAtLength(.5*i),a="rel"+Xve;Xve++;const s=e.append("text").attr("class","req relationshipLabel").attr("id",a).attr("x",o.x).attr("y",o.y).attr("text-anchor","middle").attr("dominant-baseline","middle").text(r).node().getBBox();e.insert("rect","#"+a).attr("class","req reqLabelBox").attr("x",o.x-s.width/2).attr("y",o.y-s.height/2).attr("width",s.width).attr("height",s.height).attr("fill","white").attr("fill-opacity","85%")})(e,s,0,`<<${t.type}>>`)},nAe=e=>e.replace(/\s/g,"").replace(/\./g,"_"),rAe={draw:(e,t,n,r)=>{qve=bde().requirement,r.db.clear(),r.parser.parse(e);const i=qve.securityLevel;let o;"sandbox"===i&&(o=b3("#i"+t));const a=b3("sandbox"===i?o.nodes()[0].contentDocument.body:"body").select(`[id='${t}']`);Yve(a,qve);const s=new Wae({multigraph:!1,compound:!1,directed:!0}).setGraph({rankdir:qve.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel(function(){return{}});let l=r.db.getRequirements(),c=r.db.getElements(),u=r.db.getRelationships();((e,t,n)=>{Object.keys(e).forEach(r=>{let i=e[r];r=nAe(r),Hle.info("Added new requirement: ",r);const o=n.append("g").attr("id",r),a=Jve(o,"req-"+r);let s=Zve(o,r+"_title",[`<<${i.type}>>`,`${i.name}`]);eAe(o,r+"_body",[`Id: ${i.id}`,`Text: ${i.text}`,`Risk: ${i.risk}`,`Verification: ${i.verifyMethod}`],s.y);const l=a.node().getBBox();t.setNode(r,{width:l.width,height:l.height,shape:"rect",id:r})})})(l,s,a),((e,t,n)=>{Object.keys(e).forEach(r=>{let i=e[r];const o=nAe(r),a=n.append("g").attr("id",o),s="element-"+o,l=Jve(a,s);let c=Zve(a,s+"_title",["<<Element>>",`${r}`]);eAe(a,s+"_body",[`Type: ${i.type||"Not Specified"}`,`Doc Ref: ${i.docRef||"None"}`],c.y);const u=l.node().getBBox();t.setNode(o,{width:u.width,height:u.height,shape:"rect",id:o})})})(c,s,a),((e,t)=>{e.forEach(function(e){let n=nAe(e.src),r=nAe(e.dst);t.setEdge(n,r,{relationship:e})})})(u,s),ole(s),function(e,t){t.nodes().forEach(function(n){void 0!==n&&void 0!==t.node(n)&&(e.select("#"+n),e.select("#"+n).attr("transform","translate("+(t.node(n).x-t.node(n).width/2)+","+(t.node(n).y-t.node(n).height/2)+" )"))})}(a,s),u.forEach(function(e){tAe(a,e,s,t,r)});const d=qve.rect_padding,h=a.node().getBBox(),f=h.width+2*d,p=h.height+2*d;Cde(a,p,f,qve.useMaxWidth),a.attr("viewBox",`${h.x-d} ${h.y-d} ${f} ${p}`)}};var iAe=function(){var e,t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[1,2],r=[1,3],i=[1,5],o=[1,7],a=[2,5],s=[1,15],l=[1,17],c=[1,19],u=[1,21],d=[1,22],h=[1,23],f=[1,29],p=[1,30],g=[1,31],m=[1,32],v=[1,33],A=[1,34],b=[1,35],y=[1,36],w=[1,37],_=[1,38],x=[1,39],E=[1,40],S=[1,42],C=[1,43],T=[1,45],k=[1,46],O=[1,47],M=[1,48],I=[1,49],D=[1,50],N=[1,53],R=[1,4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,52,53,54,56,57,62,63,64,65,73,83],L=[4,5,21,54,56],B=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,54,56,57,62,63,64,65,73,83],P=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,53,54,56,57,62,63,64,65,73,83],F=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,52,54,56,57,62,63,64,65,73,83],$=[4,5,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,54,56,57,62,63,64,65,73,83],j=[71,72,73],H=[1,125],U=[1,4,5,7,19,21,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,51,52,53,54,56,57,62,63,64,65,73,83],Q={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,box_section:11,box_line:12,participant_statement:13,openDirective:14,typeDirective:15,closeDirective:16,":":17,argDirective:18,box:19,restOfLine:20,end:21,signal:22,autonumber:23,NUM:24,off:25,activate:26,actor:27,deactivate:28,note_statement:29,links_statement:30,link_statement:31,properties_statement:32,details_statement:33,title:34,legacy_title:35,acc_title:36,acc_title_value:37,acc_descr:38,acc_descr_value:39,acc_descr_multiline_value:40,loop:41,rect:42,opt:43,alt:44,else_sections:45,par:46,par_sections:47,critical:48,option_sections:49,break:50,option:51,and:52,else:53,participant:54,AS:55,participant_actor:56,note:57,placement:58,text2:59,over:60,actor_pair:61,links:62,link:63,properties:64,details:65,spaceList:66,",":67,left_of:68,right_of:69,signaltype:70,"+":71,"-":72,ACTOR:73,SOLID_OPEN_ARROW:74,DOTTED_OPEN_ARROW:75,SOLID_ARROW:76,DOTTED_ARROW:77,SOLID_CROSS:78,DOTTED_CROSS:79,SOLID_POINT:80,DOTTED_POINT:81,TXT:82,open_directive:83,type_directive:84,arg_directive:85,close_directive:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",17:":",19:"box",20:"restOfLine",21:"end",23:"autonumber",24:"NUM",25:"off",26:"activate",28:"deactivate",34:"title",35:"legacy_title",36:"acc_title",37:"acc_title_value",38:"acc_descr",39:"acc_descr_value",40:"acc_descr_multiline_value",41:"loop",42:"rect",43:"opt",44:"alt",46:"par",48:"critical",50:"break",51:"option",52:"and",53:"else",54:"participant",55:"AS",56:"participant_actor",57:"note",60:"over",62:"links",63:"link",64:"properties",65:"details",67:",",68:"left_of",69:"right_of",71:"+",72:"-",73:"ACTOR",74:"SOLID_OPEN_ARROW",75:"DOTTED_OPEN_ARROW",76:"SOLID_ARROW",77:"DOTTED_ARROW",78:"SOLID_CROSS",79:"DOTTED_CROSS",80:"SOLID_POINT",81:"DOTTED_POINT",82:"TXT",83:"open_directive",84:"type_directive",85:"arg_directive",86:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[11,0],[11,2],[12,2],[12,1],[12,1],[6,4],[6,6],[10,1],[10,4],[10,2],[10,4],[10,3],[10,3],[10,2],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,2],[10,2],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[49,1],[49,4],[47,1],[47,4],[45,1],[45,4],[13,5],[13,3],[13,5],[13,3],[29,4],[29,4],[30,3],[31,3],[32,3],[33,3],[66,2],[66,1],[61,3],[61,1],[58,1],[58,1],[22,5],[22,5],[22,4],[27,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[70,1],[59,1],[14,1],[15,1],[18,1],[16,1]],performAction:function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 4:return r.apply(o[s]),o[s];case 5:case 10:case 9:case 14:this.$=[];break;case 6:case 11:o[s-1].push(o[s]),this.$=o[s-1];break;case 7:case 8:case 12:case 13:case 63:this.$=o[s];break;case 18:o[s-1].unshift({type:"boxStart",boxData:r.parseBoxData(o[s-2])}),o[s-1].push({type:"boxEnd",boxText:o[s-2]}),this.$=o[s-1];break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[s-2]),sequenceIndexStep:Number(o[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceIndex:Number(o[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 24:this.$={type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:o[s-1]};break;case 25:this.$={type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:o[s-1]};break;case 31:r.setDiagramTitle(o[s].substring(6)),this.$=o[s].substring(6);break;case 32:r.setDiagramTitle(o[s].substring(7)),this.$=o[s].substring(7);break;case 33:this.$=o[s].trim(),r.setAccTitle(this.$);break;case 34:case 35:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 36:o[s-1].unshift({type:"loopStart",loopText:r.parseMessage(o[s-2]),signalType:r.LINETYPE.LOOP_START}),o[s-1].push({type:"loopEnd",loopText:o[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=o[s-1];break;case 37:o[s-1].unshift({type:"rectStart",color:r.parseMessage(o[s-2]),signalType:r.LINETYPE.RECT_START}),o[s-1].push({type:"rectEnd",color:r.parseMessage(o[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=o[s-1];break;case 38:o[s-1].unshift({type:"optStart",optText:r.parseMessage(o[s-2]),signalType:r.LINETYPE.OPT_START}),o[s-1].push({type:"optEnd",optText:r.parseMessage(o[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=o[s-1];break;case 39:o[s-1].unshift({type:"altStart",altText:r.parseMessage(o[s-2]),signalType:r.LINETYPE.ALT_START}),o[s-1].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=o[s-1];break;case 40:o[s-1].unshift({type:"parStart",parText:r.parseMessage(o[s-2]),signalType:r.LINETYPE.PAR_START}),o[s-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=o[s-1];break;case 41:o[s-1].unshift({type:"criticalStart",criticalText:r.parseMessage(o[s-2]),signalType:r.LINETYPE.CRITICAL_START}),o[s-1].push({type:"criticalEnd",signalType:r.LINETYPE.CRITICAL_END}),this.$=o[s-1];break;case 42:o[s-1].unshift({type:"breakStart",breakText:r.parseMessage(o[s-2]),signalType:r.LINETYPE.BREAK_START}),o[s-1].push({type:"breakEnd",optText:r.parseMessage(o[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=o[s-1];break;case 45:this.$=o[s-3].concat([{type:"option",optionText:r.parseMessage(o[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},o[s]]);break;case 47:this.$=o[s-3].concat([{type:"and",parText:r.parseMessage(o[s-1]),signalType:r.LINETYPE.PAR_AND},o[s]]);break;case 49:this.$=o[s-3].concat([{type:"else",altText:r.parseMessage(o[s-1]),signalType:r.LINETYPE.ALT_ELSE},o[s]]);break;case 50:o[s-3].type="addParticipant",o[s-3].description=r.parseMessage(o[s-1]),this.$=o[s-3];break;case 51:o[s-1].type="addParticipant",this.$=o[s-1];break;case 52:o[s-3].type="addActor",o[s-3].description=r.parseMessage(o[s-1]),this.$=o[s-3];break;case 53:o[s-1].type="addActor",this.$=o[s-1];break;case 54:this.$=[o[s-1],{type:"addNote",placement:o[s-2],actor:o[s-1].actor,text:o[s]}];break;case 55:o[s-2]=[].concat(o[s-1],o[s-1]).slice(0,2),o[s-2][0]=o[s-2][0].actor,o[s-2][1]=o[s-2][1].actor,this.$=[o[s-1],{type:"addNote",placement:r.PLACEMENT.OVER,actor:o[s-2].slice(0,2),text:o[s]}];break;case 56:this.$=[o[s-1],{type:"addLinks",actor:o[s-1].actor,text:o[s]}];break;case 57:this.$=[o[s-1],{type:"addALink",actor:o[s-1].actor,text:o[s]}];break;case 58:this.$=[o[s-1],{type:"addProperties",actor:o[s-1].actor,text:o[s]}];break;case 59:this.$=[o[s-1],{type:"addDetails",actor:o[s-1].actor,text:o[s]}];break;case 62:this.$=[o[s-2],o[s]];break;case 64:this.$=r.PLACEMENT.LEFTOF;break;case 65:this.$=r.PLACEMENT.RIGHTOF;break;case 66:this.$=[o[s-4],o[s-1],{type:"addMessage",from:o[s-4].actor,to:o[s-1].actor,signalType:o[s-3],msg:o[s]},{type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:o[s-1]}];break;case 67:this.$=[o[s-4],o[s-1],{type:"addMessage",from:o[s-4].actor,to:o[s-1].actor,signalType:o[s-3],msg:o[s]},{type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:o[s-4]}];break;case 68:this.$=[o[s-3],o[s-1],{type:"addMessage",from:o[s-3].actor,to:o[s-1].actor,signalType:o[s-2],msg:o[s]}];break;case 69:this.$={type:"addParticipant",actor:o[s]};break;case 70:this.$=r.LINETYPE.SOLID_OPEN;break;case 71:this.$=r.LINETYPE.DOTTED_OPEN;break;case 72:this.$=r.LINETYPE.SOLID;break;case 73:this.$=r.LINETYPE.DOTTED;break;case 74:this.$=r.LINETYPE.SOLID_CROSS;break;case 75:this.$=r.LINETYPE.DOTTED_CROSS;break;case 76:this.$=r.LINETYPE.SOLID_POINT;break;case 77:this.$=r.LINETYPE.DOTTED_POINT;break;case 78:this.$=r.parseMessage(o[s].trim().substring(1));break;case 79:r.parseDirective("%%{","open_directive");break;case 80:r.parseDirective(o[s],"type_directive");break;case 81:o[s]=o[s].trim().replace(/'/g,'"'),r.parseDirective(o[s],"arg_directive");break;case 82:r.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:n,5:r,6:4,7:i,14:6,83:o},{1:[3]},{3:8,4:n,5:r,6:4,7:i,14:6,83:o},{3:9,4:n,5:r,6:4,7:i,14:6,83:o},{3:10,4:n,5:r,6:4,7:i,14:6,83:o},t([1,4,5,19,23,26,28,34,35,36,38,40,41,42,43,44,46,48,50,54,56,57,62,63,64,65,73,83],a,{8:11}),{15:12,84:[1,13]},{84:[2,79]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:s,5:l,6:41,9:14,10:16,13:18,14:6,19:c,22:20,23:u,26:d,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:f,35:p,36:g,38:m,40:v,41:A,42:b,43:y,44:w,46:_,48:x,50:E,54:S,56:C,57:T,62:k,63:O,64:M,65:I,73:D,83:o},{16:51,17:[1,52],86:N},t([17,86],[2,80]),t(R,[2,6]),{6:41,10:54,13:18,14:6,19:c,22:20,23:u,26:d,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:f,35:p,36:g,38:m,40:v,41:A,42:b,43:y,44:w,46:_,48:x,50:E,54:S,56:C,57:T,62:k,63:O,64:M,65:I,73:D,83:o},t(R,[2,8]),t(R,[2,9]),t(R,[2,17]),{20:[1,55]},{5:[1,56]},{5:[1,59],24:[1,57],25:[1,58]},{27:60,73:D},{27:61,73:D},{5:[1,62]},{5:[1,63]},{5:[1,64]},{5:[1,65]},{5:[1,66]},t(R,[2,31]),t(R,[2,32]),{37:[1,67]},{39:[1,68]},t(R,[2,35]),{20:[1,69]},{20:[1,70]},{20:[1,71]},{20:[1,72]},{20:[1,73]},{20:[1,74]},{20:[1,75]},t(R,[2,43]),{27:76,73:D},{27:77,73:D},{70:78,74:[1,79],75:[1,80],76:[1,81],77:[1,82],78:[1,83],79:[1,84],80:[1,85],81:[1,86]},{58:87,60:[1,88],68:[1,89],69:[1,90]},{27:91,73:D},{27:92,73:D},{27:93,73:D},{27:94,73:D},t([5,55,67,74,75,76,77,78,79,80,81,82],[2,69]),{5:[1,95]},{18:96,85:[1,97]},{5:[2,82]},t(R,[2,7]),t(L,[2,10],{11:98}),t(R,[2,19]),{5:[1,100],24:[1,99]},{5:[1,101]},t(R,[2,23]),{5:[1,102]},{5:[1,103]},t(R,[2,26]),t(R,[2,27]),t(R,[2,28]),t(R,[2,29]),t(R,[2,30]),t(R,[2,33]),t(R,[2,34]),t(B,a,{8:104}),t(B,a,{8:105}),t(B,a,{8:106}),t(P,a,{45:107,8:108}),t(F,a,{47:109,8:110}),t($,a,{49:111,8:112}),t(B,a,{8:113}),{5:[1,115],55:[1,114]},{5:[1,117],55:[1,116]},{27:120,71:[1,118],72:[1,119],73:D},t(j,[2,70]),t(j,[2,71]),t(j,[2,72]),t(j,[2,73]),t(j,[2,74]),t(j,[2,75]),t(j,[2,76]),t(j,[2,77]),{27:121,73:D},{27:123,61:122,73:D},{73:[2,64]},{73:[2,65]},{59:124,82:H},{59:126,82:H},{59:127,82:H},{59:128,82:H},t(U,[2,15]),{16:129,86:N},{86:[2,81]},{4:[1,132],5:[1,134],12:131,13:133,21:[1,130],54:S,56:C},{5:[1,135]},t(R,[2,21]),t(R,[2,22]),t(R,[2,24]),t(R,[2,25]),{4:s,5:l,6:41,9:14,10:16,13:18,14:6,19:c,21:[1,136],22:20,23:u,26:d,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:f,35:p,36:g,38:m,40:v,41:A,42:b,43:y,44:w,46:_,48:x,50:E,54:S,56:C,57:T,62:k,63:O,64:M,65:I,73:D,83:o},{4:s,5:l,6:41,9:14,10:16,13:18,14:6,19:c,21:[1,137],22:20,23:u,26:d,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:f,35:p,36:g,38:m,40:v,41:A,42:b,43:y,44:w,46:_,48:x,50:E,54:S,56:C,57:T,62:k,63:O,64:M,65:I,73:D,83:o},{4:s,5:l,6:41,9:14,10:16,13:18,14:6,19:c,21:[1,138],22:20,23:u,26:d,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:f,35:p,36:g,38:m,40:v,41:A,42:b,43:y,44:w,46:_,48:x,50:E,54:S,56:C,57:T,62:k,63:O,64:M,65:I,73:D,83:o},{21:[1,139]},{4:s,5:l,6:41,9:14,10:16,13:18,14:6,19:c,21:[2,48],22:20,23:u,26:d,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:f,35:p,36:g,38:m,40:v,41:A,42:b,43:y,44:w,46:_,48:x,50:E,53:[1,140],54:S,56:C,57:T,62:k,63:O,64:M,65:I,73:D,83:o},{21:[1,141]},{4:s,5:l,6:41,9:14,10:16,13:18,14:6,19:c,21:[2,46],22:20,23:u,26:d,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:f,35:p,36:g,38:m,40:v,41:A,42:b,43:y,44:w,46:_,48:x,50:E,52:[1,142],54:S,56:C,57:T,62:k,63:O,64:M,65:I,73:D,83:o},{21:[1,143]},{4:s,5:l,6:41,9:14,10:16,13:18,14:6,19:c,21:[2,44],22:20,23:u,26:d,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:f,35:p,36:g,38:m,40:v,41:A,42:b,43:y,44:w,46:_,48:x,50:E,51:[1,144],54:S,56:C,57:T,62:k,63:O,64:M,65:I,73:D,83:o},{4:s,5:l,6:41,9:14,10:16,13:18,14:6,19:c,21:[1,145],22:20,23:u,26:d,27:44,28:h,29:24,30:25,31:26,32:27,33:28,34:f,35:p,36:g,38:m,40:v,41:A,42:b,43:y,44:w,46:_,48:x,50:E,54:S,56:C,57:T,62:k,63:O,64:M,65:I,73:D,83:o},{20:[1,146]},t(R,[2,51]),{20:[1,147]},t(R,[2,53]),{27:148,73:D},{27:149,73:D},{59:150,82:H},{59:151,82:H},{59:152,82:H},{67:[1,153],82:[2,63]},{5:[2,56]},{5:[2,78]},{5:[2,57]},{5:[2,58]},{5:[2,59]},{5:[1,154]},t(R,[2,18]),t(L,[2,11]),{13:155,54:S,56:C},t(L,[2,13]),t(L,[2,14]),t(R,[2,20]),t(R,[2,36]),t(R,[2,37]),t(R,[2,38]),t(R,[2,39]),{20:[1,156]},t(R,[2,40]),{20:[1,157]},t(R,[2,41]),{20:[1,158]},t(R,[2,42]),{5:[1,159]},{5:[1,160]},{59:161,82:H},{59:162,82:H},{5:[2,68]},{5:[2,54]},{5:[2,55]},{27:163,73:D},t(U,[2,16]),t(L,[2,12]),t(P,a,{8:108,45:164}),t(F,a,{8:110,47:165}),t($,a,{8:112,49:166}),t(R,[2,50]),t(R,[2,52]),{5:[2,66]},{5:[2,67]},{82:[2,62]},{21:[2,49]},{21:[2,47]},{21:[2,45]}],defaultActions:{7:[2,79],8:[2,1],9:[2,2],10:[2,3],53:[2,82],89:[2,64],90:[2,65],97:[2,81],124:[2,56],125:[2,78],126:[2,57],127:[2,58],128:[2,59],150:[2,68],151:[2,54],152:[2,55],161:[2,66],162:[2,67],163:[2,62],164:[2,49],165:[2,47],166:[2,45]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),d=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);d.setInput(e,h.yy),h.yy.lexer=d,h.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var p=d.yylloc;o.push(p);var g=d.options&&d.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||d.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,A,b,y,w,_,x,E,S={};;){if(A=n[n.length-1],this.defaultActions[A]?b=this.defaultActions[A]:(null==v&&(v=m()),b=a[A]&&a[A][v]),void 0===b||!b.length||!b[0]){var C="";for(w in E=[],a[A])this.terminals_[w]&&w>2&&E.push("'"+this.terminals_[w]+"'");C=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:p,expected:E})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(b[0]){case 1:n.push(v),i.push(d.yytext),o.push(d.yylloc),n.push(b[1]),v=null,c=d.yyleng,s=d.yytext,l=d.yylineno,p=d.yylloc;break;case 2:if(_=this.productions_[b[1]][1],S.$=i[i.length-_],S._$={first_line:o[o.length-(_||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(_||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(_||1)].range[0],o[o.length-1].range[1]]),void 0!==(y=this.performAction.apply(S,[s,c,l,h.yy,b[1],i,o].concat(u))))return y;_&&(n=n.slice(0,-1*_*2),i=i.slice(0,-1*_),o=o.slice(0,-1*_)),n.push(this.productions_[b[1]][0]),i.push(S.$),o.push(S._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},z=(e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),83;case 1:return this.begin("type_directive"),84;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),86;case 4:return 85;case 5:case 53:case 66:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return 24;case 12:return this.begin("LINE"),19;case 13:return this.begin("ID"),54;case 14:return this.begin("ID"),56;case 15:return t.yytext=t.yytext.trim(),this.begin("ALIAS"),73;case 16:return this.popState(),this.popState(),this.begin("LINE"),55;case 17:return this.popState(),this.popState(),5;case 18:return this.begin("LINE"),41;case 19:return this.begin("LINE"),42;case 20:return this.begin("LINE"),43;case 21:return this.begin("LINE"),44;case 22:return this.begin("LINE"),53;case 23:return this.begin("LINE"),46;case 24:return this.begin("LINE"),52;case 25:return this.begin("LINE"),48;case 26:return this.begin("LINE"),51;case 27:return this.begin("LINE"),50;case 28:return this.popState(),20;case 29:return 21;case 30:return 68;case 31:return 69;case 32:return 62;case 33:return 63;case 34:return 64;case 35:return 65;case 36:return 60;case 37:return 57;case 38:return this.begin("ID"),26;case 39:return this.begin("ID"),28;case 40:return 34;case 41:return 35;case 42:return this.begin("acc_title"),36;case 43:return this.popState(),"acc_title_value";case 44:return this.begin("acc_descr"),38;case 45:return this.popState(),"acc_descr_value";case 46:this.begin("acc_descr_multiline");break;case 47:this.popState();break;case 48:return"acc_descr_multiline_value";case 49:return 7;case 50:return 23;case 51:return 25;case 52:return 67;case 54:return t.yytext=t.yytext.trim(),73;case 55:return 76;case 56:return 77;case 57:return 74;case 58:return 75;case 59:return 78;case 60:return 79;case 61:return 80;case 62:return 81;case 63:return 82;case 64:return 71;case 65:return 72;case 67:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:[^\->:\n,;]+?([\-]*[^\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[47,48],inclusive:!1},acc_descr:{rules:[45],inclusive:!1},acc_title:{rules:[43],inclusive:!1},open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,15],inclusive:!1},ALIAS:{rules:[7,8,16,17],inclusive:!1},LINE:{rules:[7,8,28],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,14,18,19,20,21,22,23,24,25,26,27,29,30,31,32,33,34,35,36,37,38,39,40,41,42,44,46,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],inclusive:!0}}},e);function W(){this.yy={}}return Q.lexer=z,W.prototype=Q,Q.Parser=W,new W}();iAe.parser=iAe;const oAe=iAe,aAe=e=>null!==e.match(/^\s*sequenceDiagram/);let sAe,lAe,cAe,uAe={},dAe=[],hAe=[],fAe=!1;const pAe=function(e,t,n,r){let i=cAe;const o=uAe[e];if(o){if(cAe&&o.box&&cAe!==o.box)throw new Error("A same participant should only be defined in one Box: "+o.name+" can't be in '"+o.box.name+"' and in '"+cAe.name+"' at the same time.");if(i=o.box?o.box:cAe,o.box=i,o&&t===o.name&&null==n)return}null!=n&&null!=n.text||(n={text:t,wrap:null,type:r}),null!=r&&null!=n.text||(n={text:t,wrap:null,type:r}),uAe[e]={box:i,name:t,description:n.text,wrap:void 0===n.wrap&&vAe()||!!n.wrap,prevActor:sAe,links:{},properties:{},actorCnt:null,rectData:null,type:r||"participant"},sAe&&uAe[sAe]&&(uAe[sAe].nextActor=e),cAe&&cAe.actorKeys.push(e),sAe=e},gAe=function(e,t,n={text:void 0,wrap:void 0},r){if(r===AAe.ACTIVE_END){const t=(e=>{let t,n=0;for(t=0;t<hAe.length;t++)hAe[t].type===AAe.ACTIVE_START&&hAe[t].from.actor===e&&n++,hAe[t].type===AAe.ACTIVE_END&&hAe[t].from.actor===e&&n--;return n})(e.actor);if(t<1){let t=new Error("Trying to inactivate an inactive participant ("+e.actor+")");throw t.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},t}}return hAe.push({from:e,to:t,message:n.text,wrap:void 0===n.wrap&&vAe()||!!n.wrap,type:r}),!0},mAe=function(e){return uAe[e]},vAe=()=>void 0!==lAe?lAe:bde().sequence.wrap,AAe={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31},bAe=function(e,t,n){n.text,void 0===n.wrap&&vAe()||n.wrap;const r=[].concat(e,e);hAe.push({from:r[0],to:r[1],message:n.text,wrap:void 0===n.wrap&&vAe()||!!n.wrap,type:AAe.NOTE,placement:t})},yAe=function(e,t){const n=mAe(e);try{let e=Gle(t.text,bde());e=e.replace(/&amp;/g,"&"),e=e.replace(/&equals;/g,"="),wAe(n,JSON.parse(e))}catch(e){Hle.error("error while parsing actor link text",e)}};function wAe(e,t){if(null==e.links)e.links=t;else for(let n in t)e.links[n]=t[n]}const _Ae=function(e,t){const n=mAe(e);try{let e=Gle(t.text,bde());xAe(n,JSON.parse(e))}catch(e){Hle.error("error while parsing actor properties text",e)}};function xAe(e,t){if(null==e.properties)e.properties=t;else for(let n in t)e.properties[n]=t[n]}const EAe=function(e,t){const n=mAe(e),r=document.getElementById(t.text);try{const e=r.innerHTML,t=JSON.parse(e);t.properties&&xAe(n,t.properties),t.links&&wAe(n,t.links)}catch(e){Hle.error("error while parsing actor details text",e)}},SAe=function(e){if(Array.isArray(e))e.forEach(function(e){SAe(e)});else switch(e.type){case"sequenceIndex":hAe.push({from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case"addParticipant":pAe(e.actor,e.actor,e.description,"participant");break;case"addActor":pAe(e.actor,e.actor,e.description,"actor");break;case"activeStart":case"activeEnd":gAe(e.actor,void 0,void 0,e.signalType);break;case"addNote":bAe(e.actor,e.placement,e.text);break;case"addLinks":yAe(e.actor,e.text);break;case"addALink":!function(e,t){const n=mAe(e);try{const e={};let a=Gle(t.text,bde());var r=a.indexOf("@");a=a.replace(/&amp;/g,"&"),a=a.replace(/&equals;/g,"=");var i=a.slice(0,r-1).trim(),o=a.slice(r+1).trim();e[i]=o,wAe(n,e)}catch(e){Hle.error("error while parsing actor link text",e)}}(e.actor,e.text);break;case"addProperties":_Ae(e.actor,e.text);break;case"addDetails":EAe(e.actor,e.text);break;case"addMessage":gAe(e.from,e.to,e.msg,e.signalType);break;case"boxStart":t=e.boxData,dAe.push({name:t.text,wrap:void 0===t.wrap&&vAe()||!!t.wrap,fill:t.color,actorKeys:[]}),cAe=dAe.slice(-1)[0];break;case"boxEnd":cAe=void 0;break;case"loopStart":gAe(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":case"rectEnd":case"optEnd":case"altEnd":case"parEnd":case"criticalEnd":case"breakEnd":gAe(void 0,void 0,void 0,e.signalType);break;case"rectStart":gAe(void 0,void 0,e.color,e.signalType);break;case"optStart":gAe(void 0,void 0,e.optText,e.signalType);break;case"altStart":case"else":gAe(void 0,void 0,e.altText,e.signalType);break;case"setAccTitle":Vde(e.text);break;case"parStart":case"and":gAe(void 0,void 0,e.parText,e.signalType);break;case"criticalStart":gAe(void 0,void 0,e.criticalText,e.signalType);break;case"option":gAe(void 0,void 0,e.optionText,e.signalType);break;case"breakStart":gAe(void 0,void 0,e.breakText,e.signalType)}var t},CAe={addActor:pAe,addMessage:function(e,t,n,r){hAe.push({from:e,to:t,message:n.text,wrap:void 0===n.wrap&&vAe()||!!n.wrap,answer:r})},addSignal:gAe,addLinks:yAe,addDetails:EAe,addProperties:_Ae,autoWrap:vAe,setWrap:function(e){lAe=e},enableSequenceNumbers:function(){fAe=!0},disableSequenceNumbers:function(){fAe=!1},showSequenceNumbers:()=>fAe,getMessages:function(){return hAe},getActors:function(){return uAe},getActor:mAe,getActorKeys:function(){return Object.keys(uAe)},getActorProperty:function(e,t){if(void 0!==e&&void 0!==e.properties)return e.properties[t]},getAccTitle:Kde,getBoxes:function(){return dAe},getDiagramTitle:Jde,setDiagramTitle:Xde,parseDirective:function(e,t,n){kwe.parseDirective(this,e,t,n)},getConfig:()=>bde().sequence,clear:function(){uAe={},dAe=[],hAe=[],fAe=!1,Gde()},parseMessage:function(e){const t=e.trim(),n={text:t.replace(/^:?(?:no)?wrap:/,"").trim(),wrap:null!==t.match(/^:?wrap:/)||null===t.match(/^:?nowrap:/)&&void 0};return Hle.debug("parseMessage:",n),n},parseBoxData:function(e){const t=e.match(/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/);let n=null!=t&&t[1]?t[1].trim():"transparent",r=null!=t&&t[2]?t[2].trim():void 0;if(window&&window.CSS)window.CSS.supports("color",n)||(n="transparent",r=e.trim());else{const t=(new Option).style;t.color=n,t.color!==n&&(n="transparent",r=e.trim())}return{color:n,text:void 0!==r?Gle(r.replace(/^:?(?:no)?wrap:/,""),bde()):void 0,wrap:void 0!==r?null!==r.match(/^:?wrap:/)||null===r.match(/^:?nowrap:/)&&void 0:void 0}},LINETYPE:AAe,ARROWTYPE:{FILLED:0,OPEN:1},PLACEMENT:{LEFTOF:0,RIGHTOF:1,OVER:2},addNote:bAe,setAccTitle:Vde,apply:SAe,setAccDescription:Yde,getAccDescription:qde,hasAtLeastOneBox:function(){return dAe.length>0},hasAtLeastOneBoxWithTitle:function(){return dAe.some(e=>e.name)}};let TAe=[];const kAe=()=>{TAe.forEach(e=>{e()}),TAe=[]},OAe=function(e,t){const n=e.append("rect");return n.attr("x",t.x),n.attr("y",t.y),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("width",t.width),n.attr("height",t.height),n.attr("rx",t.rx),n.attr("ry",t.ry),void 0!==t.class&&n.attr("class",t.class),n},MAe=(e,t)=>{(e=>{TAe.push(e)})(()=>{const n=document.querySelectorAll(e);0!==n.length&&(n[0].addEventListener("mouseover",function(){NAe("actor"+t+"_popup")}),n[0].addEventListener("mouseout",function(){RAe("actor"+t+"_popup")}))})},IAe=function(e,t,n,r){const i=e.append("image");i.attr("x",t),i.attr("y",n);var o=G0.sanitizeUrl(r);i.attr("xlink:href",o)},DAe=function(e,t,n,r){const i=e.append("use");i.attr("x",t),i.attr("y",n);var o=G0.sanitizeUrl(r);i.attr("xlink:href","#"+o)},NAe=function(e){var t=document.getElementById(e);null!=t&&(t.style.display="block")},RAe=function(e){var t=document.getElementById(e);null!=t&&(t.style.display="none")},LAe=function(e,t){let n=0,r=0;const i=t.text.split(Jle.lineBreakRegex),[o,a]=lde(t.fontSize);let s=[],l=0,c=()=>t.y;if(void 0!==t.valign&&void 0!==t.textMargin&&t.textMargin>0)switch(t.valign){case"top":case"start":c=()=>Math.round(t.y+t.textMargin);break;case"middle":case"center":c=()=>Math.round(t.y+(n+r+t.textMargin)/2);break;case"bottom":case"end":c=()=>Math.round(t.y+(n+r+2*t.textMargin)-t.textMargin)}if(void 0!==t.anchor&&void 0!==t.textMargin&&void 0!==t.width)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="middle",t.alignmentBaseline="middle"}for(let[u,d]of i.entries()){void 0!==t.textMargin&&0===t.textMargin&&void 0!==o&&(l=u*o);const i=e.append("text");if(i.attr("x",t.x),i.attr("y",c()),void 0!==t.anchor&&i.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline),void 0!==t.fontFamily&&i.style("font-family",t.fontFamily),void 0!==a&&i.style("font-size",a),void 0!==t.fontWeight&&i.style("font-weight",t.fontWeight),void 0!==t.fill&&i.attr("fill",t.fill),void 0!==t.class&&i.attr("class",t.class),void 0!==t.dy?i.attr("dy",t.dy):0!==l&&i.attr("dy",l),t.tspan){const e=i.append("tspan");e.attr("x",t.x),void 0!==t.fill&&e.attr("fill",t.fill),e.text(d)}else i.text(d);void 0!==t.valign&&void 0!==t.textMargin&&t.textMargin>0&&(r+=(i._groups||i)[0][0].getBBox().height,n=r),s.push(i)}return s},BAe=function(e,t){const n=e.append("polygon");return n.attr("points",function(e,t,n,r,i){return e+","+t+" "+(e+n)+","+t+" "+(e+n)+","+(t+r-i)+" "+(e+n-1.2*i)+","+(t+r)+" "+e+","+(t+r)}(t.x,t.y,t.width,t.height,7)),n.attr("class","labelBox"),t.y=t.y+t.height/2,LAe(e,t),n};let PAe=-1;const FAe=(e,t)=>{e.selectAll&&e.selectAll(".actor-line").attr("class","200").attr("y2",t-55)},$Ae=function(e,t){OAe(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"}).lower()},jAe=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},HAe=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},UAe=function(){function e(e,t,n,i,o,a,s){r(t.append("text").attr("x",n+o/2).attr("y",i+a/2+5).style("text-anchor","middle").text(e),s)}function t(e,t,n,i,o,a,s,l){const{actorFontSize:c,actorFontFamily:u,actorFontWeight:d}=l,[h,f]=lde(c),p=e.split(Jle.lineBreakRegex);for(let g=0;g<p.length;g++){const e=g*h-h*(p.length-1)/2,l=t.append("text").attr("x",n+o/2).attr("y",i).style("text-anchor","middle").style("font-size",f).style("font-weight",d).style("font-family",u);l.append("tspan").attr("x",n+o/2).attr("dy",e).text(p[g]),l.attr("y",i+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(l,s)}}function n(e,n,i,o,a,s,l,c){const u=n.append("switch"),d=u.append("foreignObject").attr("x",i).attr("y",o).attr("width",a).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),t(e,u,i,o,a,s,l,c),r(d,l)}function r(e,t){for(const n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?e:t}}(),QAe=function(){function e(e,t,n,i,o,a,s){r(t.append("text").attr("x",n).attr("y",i).style("text-anchor","start").text(e),s)}function t(e,t,n,i,o,a,s,l){const{actorFontSize:c,actorFontFamily:u,actorFontWeight:d}=l,h=e.split(Jle.lineBreakRegex);for(let f=0;f<h.length;f++){const e=f*c-c*(h.length-1)/2,o=t.append("text").attr("x",n).attr("y",i).style("text-anchor","start").style("font-size",c).style("font-weight",d).style("font-family",u);o.append("tspan").attr("x",n).attr("dy",e).text(h[f]),o.attr("y",i+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(o,s)}}function n(e,n,i,o,a,s,l,c){const u=n.append("switch"),d=u.append("foreignObject").attr("x",i).attr("y",o).attr("width",a).attr("height",s).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),t(e,u,i,o,0,s,l,c),r(d,l)}function r(e,t){for(const n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?e:t}}(),zAe={drawRect:OAe,drawText:LAe,drawLabel:BAe,drawActor:function(e,t,n,r){switch(t.type){case"actor":return function(e,t,n,r){const i=t.x+t.width/2,o=t.y+80;r||(PAe++,e.append("line").attr("id","actor"+PAe).attr("x1",i).attr("y1",o).attr("x2",i).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));const a=e.append("g");a.attr("class","actor-man");const s=HAe();s.x=t.x,s.y=t.y,s.fill="#eaeaea",s.width=t.width,s.height=t.height,s.class="actor",s.rx=3,s.ry=3,a.append("line").attr("id","actor-man-torso"+PAe).attr("x1",i).attr("y1",t.y+25).attr("x2",i).attr("y2",t.y+45),a.append("line").attr("id","actor-man-arms"+PAe).attr("x1",i-18).attr("y1",t.y+33).attr("x2",i+18).attr("y2",t.y+33),a.append("line").attr("x1",i-18).attr("y1",t.y+60).attr("x2",i).attr("y2",t.y+45),a.append("line").attr("x1",i).attr("y1",t.y+45).attr("x2",i+16).attr("y2",t.y+60);const l=a.append("circle");l.attr("cx",t.x+t.width/2),l.attr("cy",t.y+10),l.attr("r",15),l.attr("width",t.width),l.attr("height",t.height);const c=a.node().getBBox();return t.height=c.height,UAe(n)(t.description,a,s.x,s.y+35,s.width,s.height,{class:"actor"},n),t.height}(e,t,n,r);case"participant":return function(e,t,n,r){const i=t.x+t.width/2,o=t.y+5,a=e.append("g");var s=a;r||(PAe++,s.append("line").attr("id","actor"+PAe).attr("x1",i).attr("y1",o).attr("x2",i).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"),s=a.append("g"),t.actorCnt=PAe,null!=t.links&&(s.attr("id","root-"+PAe),MAe("#root-"+PAe,PAe)));const l=HAe();var c="actor";null!=t.properties&&t.properties.class?c=t.properties.class:l.fill="#eaeaea",l.x=t.x,l.y=t.y,l.width=t.width,l.height=t.height,l.class=c,l.rx=3,l.ry=3;const u=OAe(s,l);if(t.rectData=l,null!=t.properties&&t.properties.icon){const e=t.properties.icon.trim();"@"===e.charAt(0)?DAe(s,l.x+l.width-20,l.y+10,e.substr(1)):IAe(s,l.x+l.width-20,l.y+10,e)}UAe(n)(t.description,s,l.x,l.y,l.width,l.height,{class:"actor"},n);let d=t.height;if(u.node){const e=u.node().getBBox();t.height=e.height,d=e.height}return d}(e,t,n,r)}},drawBox:function(e,t,n){const r=e.append("g");$Ae(r,t),t.name&&UAe(n)(t.name,r,t.x,t.y+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},n),r.lower()},drawPopup:function(e,t,n,r,i){if(void 0===t.links||null===t.links||0===Object.keys(t.links).length)return{height:0,width:0};const o=t.links,a=t.actorCnt,s=t.rectData;var l="none";i&&(l="block !important");const c=e.append("g");c.attr("id","actor"+a+"_popup"),c.attr("class","actorPopupMenu"),c.attr("display",l),MAe("#actor"+a+"_popup",a);var u="";void 0!==s.class&&(u=" "+s.class);let d=s.width>n?s.width:n;const h=c.append("rect");if(h.attr("class","actorPopupMenuPanel"+u),h.attr("x",s.x),h.attr("y",s.height),h.attr("fill",s.fill),h.attr("stroke",s.stroke),h.attr("width",d),h.attr("height",s.height),h.attr("rx",s.rx),h.attr("ry",s.ry),null!=o){var f=20;for(let e in o){var p=c.append("a"),g=G0.sanitizeUrl(o[e]);p.attr("xlink:href",g),p.attr("target","_blank"),QAe(r)(e,p,s.x+10,s.height+f,d,20,{class:"actor"},r),f+=30}}return h.attr("height",f),{height:s.height+f,width:d}},drawImage:IAe,drawEmbeddedImage:DAe,anchorElement:function(e){return e.append("g")},drawActivation:function(e,t,n,r,i){const o=HAe(),a=t.anchored;o.x=t.startx,o.y=t.starty,o.class="activation"+i%3,o.width=t.stopx-t.startx,o.height=n-t.starty,OAe(a,o)},drawLoop:function(e,t,n,r){const{boxMargin:i,boxTextMargin:o,labelBoxHeight:a,labelBoxWidth:s,messageFontFamily:l,messageFontSize:c,messageFontWeight:u}=r,d=e.append("g"),h=function(e,t,n,r){return d.append("line").attr("x1",e).attr("y1",t).attr("x2",n).attr("y2",r).attr("class","loopLine")};h(t.startx,t.starty,t.stopx,t.starty),h(t.stopx,t.starty,t.stopx,t.stopy),h(t.startx,t.stopy,t.stopx,t.stopy),h(t.startx,t.starty,t.startx,t.stopy),void 0!==t.sections&&t.sections.forEach(function(e){h(t.startx,e.y,t.stopx,e.y).style("stroke-dasharray","3, 3")});let f=jAe();f.text=n,f.x=t.startx,f.y=t.starty,f.fontFamily=l,f.fontSize=c,f.fontWeight=u,f.anchor="middle",f.valign="middle",f.tspan=!1,f.width=s||50,f.height=a||20,f.textMargin=o,f.class="labelText",BAe(d,f),f=jAe(),f.text=t.title,f.x=t.startx+s/2+(t.stopx-t.startx)/2,f.y=t.starty+i+o,f.anchor="middle",f.valign="middle",f.textMargin=o,f.class="loopText",f.fontFamily=l,f.fontSize=c,f.fontWeight=u,f.wrap=!0;let p=LAe(d,f);return void 0!==t.sectionTitles&&t.sectionTitles.forEach(function(e,n){if(e.message){f.text=e.message,f.x=t.startx+(t.stopx-t.startx)/2,f.y=t.sections[n].y+i+o,f.class="loopText",f.anchor="middle",f.valign="middle",f.tspan=!1,f.fontFamily=l,f.fontSize=c,f.fontWeight=u,f.wrap=t.wrap,p=LAe(d,f);let r=Math.round(p.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));t.sections[n].height+=r-(i+o)}}),t.height=Math.round(t.stopy-t.starty),d},drawBackgroundRect:$Ae,insertArrowHead:function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},insertArrowFilledHead:function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},insertSequenceNumber:function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},insertArrowCrossHead:function(e){e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},insertDatabaseIcon:function(e){e.append("defs").append("symbol").attr("id","database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},insertComputerIcon:function(e){e.append("defs").append("symbol").attr("id","computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},insertClockIcon:function(e){e.append("defs").append("symbol").attr("id","clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},getTextObj:jAe,getNoteRect:HAe,popupMenu:function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = 'block'; }"},popdownMenu:function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = 'none'; }"},fixLifeLineHeights:FAe,sanitizeUrl:G0.sanitizeUrl};let WAe={};const GAe={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map(e=>e.height||0))+(0===this.loops.length?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(0===this.messages.length?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(0===this.notes.length?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},clear:function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},addBox:function(e){this.boxes.push(e)},addActor:function(e){this.actors.push(e)},addLoop:function(e){this.loops.push(e)},addMessage:function(e){this.messages.push(e)},addNote:function(e){this.notes.push(e)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],boxes:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,JAe(bde())},updateVal:function(e,t,n,r){void 0===e[t]?e[t]=n:e[t]=r(n,e[t])},updateBounds:function(e,t,n,r){const i=this;let o=0;function a(a){return function(s){o++;const l=i.sequenceItems.length-o+1;i.updateVal(s,"starty",t-l*WAe.boxMargin,Math.min),i.updateVal(s,"stopy",r+l*WAe.boxMargin,Math.max),i.updateVal(GAe.data,"startx",e-l*WAe.boxMargin,Math.min),i.updateVal(GAe.data,"stopx",n+l*WAe.boxMargin,Math.max),"activation"!==a&&(i.updateVal(s,"startx",e-l*WAe.boxMargin,Math.min),i.updateVal(s,"stopx",n+l*WAe.boxMargin,Math.max),i.updateVal(GAe.data,"starty",t-l*WAe.boxMargin,Math.min),i.updateVal(GAe.data,"stopy",r+l*WAe.boxMargin,Math.max))}}this.sequenceItems.forEach(a()),this.activations.forEach(a("activation"))},insert:function(e,t,n,r){const i=Math.min(e,n),o=Math.max(e,n),a=Math.min(t,r),s=Math.max(t,r);this.updateVal(GAe.data,"startx",i,Math.min),this.updateVal(GAe.data,"starty",a,Math.min),this.updateVal(GAe.data,"stopx",o,Math.max),this.updateVal(GAe.data,"stopy",s,Math.max),this.updateBounds(i,a,o,s)},newActivation:function(e,t,n){const r=n[e.from.actor],i=ZAe(e.from.actor).length||0,o=r.x+r.width/2+(i-1)*WAe.activationWidth/2;this.activations.push({startx:o,starty:this.verticalPos+2,stopx:o+WAe.activationWidth,stopy:void 0,actor:e.from.actor,anchored:zAe.anchorElement(t)})},endActivation:function(e){const t=this.activations.map(function(e){return e.actor}).lastIndexOf(e.from.actor);return this.activations.splice(t,1)[0]},createLoop:function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},newLoop:function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(e){const t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:GAe.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},bumpVerticalPos:function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},VAe=e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),KAe=e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),YAe=e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),qAe=function(e,t,n,r,i,o,a){if(!0===i.hideUnusedParticipants){const e=new Set;o.forEach(t=>{e.add(t.from),e.add(t.to)}),n=n.filter(t=>e.has(t))}let s,l=0,c=0,u=0;for(const d of n){const n=t[d],i=n.box;s&&s!=i&&(a||GAe.models.addBox(s),c+=WAe.boxMargin+s.margin),i&&i!=s&&(a||(i.x=l+c,i.y=r),c+=i.margin),n.width=n.width||WAe.width,n.height=Math.max(n.height||WAe.height,WAe.height),n.margin=n.margin||WAe.actorMargin,n.x=l+c,n.y=GAe.getVerticalPos();const o=zAe.drawActor(e,n,WAe,a);u=Math.max(u,o),GAe.insert(n.x,r,n.x+n.width,n.height),l+=n.width+c,n.box&&(n.box.width=l+i.margin-n.box.x),c=n.margin,s=n.box,GAe.models.addActor(n)}s&&!a&&GAe.models.addBox(s),GAe.bumpVerticalPos(u)},XAe=function(e,t,n,r){let i=0,o=0;for(const a of n){const n=t[a],s=nbe(n),l=zAe.drawPopup(e,n,s,WAe,WAe.forceMenus,r);l.height>i&&(i=l.height),l.width+n.x>o&&(o=l.width+n.x)}return{maxHeight:i,maxWidth:o}},JAe=function(e){Hue(WAe,e),e.fontFamily&&(WAe.actorFontFamily=WAe.noteFontFamily=WAe.messageFontFamily=e.fontFamily),e.fontSize&&(WAe.actorFontSize=WAe.noteFontSize=WAe.messageFontSize=e.fontSize),e.fontWeight&&(WAe.actorFontWeight=WAe.noteFontWeight=WAe.messageFontWeight=e.fontWeight)},ZAe=function(e){return GAe.activations.filter(function(t){return t.actor===e})},ebe=function(e,t){const n=t[e],r=ZAe(e);return[r.reduce(function(e,t){return Math.min(e,t.startx)},n.x+n.width/2),r.reduce(function(e,t){return Math.max(e,t.stopx)},n.x+n.width/2)]};function tbe(e,t,n,r,i){GAe.bumpVerticalPos(n);let o=r;if(t.id&&t.message&&e[t.id]){const n=e[t.id].width,i=VAe(WAe);t.message=cde.wrapLabel(`[${t.message}]`,n-2*WAe.wrapPadding,i),t.width=n,t.wrap=!0;const a=cde.calculateTextDimensions(t.message,i),s=Math.max(a.height,WAe.labelBoxHeight);o=r+s,Hle.debug(`${s} - ${t.message}`)}i(t),GAe.bumpVerticalPos(o)}const nbe=function(e){let t=0;const n=YAe(WAe);for(const r in e.links){const e=cde.calculateTextDimensions(r,n).width+2*WAe.wrapPadding+2*WAe.boxMargin;t<e&&(t=e)}return t},rbe=function(e,t,n,r){const i={},o=[];let a,s,l;return e.forEach(function(e){switch(e.id=cde.random({length:10}),e.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:o.push({id:e.id,msg:e.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:e.message&&(a=o.pop(),i[a.id]=a,i[e.id]=a,o.push(a));break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:a=o.pop(),i[a.id]=a;break;case r.db.LINETYPE.ACTIVE_START:{const n=t[e.from?e.from.actor:e.to.actor],r=ZAe(e.from?e.from.actor:e.to.actor).length,i=n.x+n.width/2+(r-1)*WAe.activationWidth/2,o={startx:i,stopx:i+WAe.activationWidth,actor:e.from.actor,enabled:!0};GAe.activations.push(o)}break;case r.db.LINETYPE.ACTIVE_END:{const t=GAe.activations.map(e=>e.actor).lastIndexOf(e.from.actor);delete GAe.activations.splice(t,1)[0]}}void 0!==e.placement?(s=function(e,t,n){const r=t[e.from].x,i=t[e.to].x,o=e.wrap&&e.message;let a=cde.calculateTextDimensions(o?cde.wrapLabel(e.message,WAe.width,KAe(WAe)):e.message,KAe(WAe));const s={width:o?WAe.width:Math.max(WAe.width,a.width+2*WAe.noteMargin),height:0,startx:t[e.from].x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===n.db.PLACEMENT.RIGHTOF?(s.width=o?Math.max(WAe.width,a.width):Math.max(t[e.from].width/2+t[e.to].width/2,a.width+2*WAe.noteMargin),s.startx=r+(t[e.from].width+WAe.actorMargin)/2):e.placement===n.db.PLACEMENT.LEFTOF?(s.width=o?Math.max(WAe.width,a.width+2*WAe.noteMargin):Math.max(t[e.from].width/2+t[e.to].width/2,a.width+2*WAe.noteMargin),s.startx=r-s.width+(t[e.from].width-WAe.actorMargin)/2):e.to===e.from?(a=cde.calculateTextDimensions(o?cde.wrapLabel(e.message,Math.max(WAe.width,t[e.from].width),KAe(WAe)):e.message,KAe(WAe)),s.width=o?Math.max(WAe.width,t[e.from].width):Math.max(t[e.from].width,WAe.width,a.width+2*WAe.noteMargin),s.startx=r+(t[e.from].width-s.width)/2):(s.width=Math.abs(r+t[e.from].width/2-(i+t[e.to].width/2))+WAe.actorMargin,s.startx=r<i?r+t[e.from].width/2-WAe.actorMargin/2:i+t[e.to].width/2-WAe.actorMargin/2),o&&(s.message=cde.wrapLabel(e.message,s.width-2*WAe.wrapPadding,KAe(WAe))),Hle.debug(`NM:[${s.startx},${s.stopx},${s.starty},${s.stopy}:${s.width},${s.height}=${e.message}]`),s}(e,t,r),e.noteModel=s,o.forEach(e=>{a=e,a.from=Math.min(a.from,s.startx),a.to=Math.max(a.to,s.startx+s.width),a.width=Math.max(a.width,Math.abs(a.from-a.to))-WAe.labelBoxWidth})):(l=function(e,t,n){let r=!1;if([n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.SOLID,n.db.LINETYPE.DOTTED,n.db.LINETYPE.SOLID_CROSS,n.db.LINETYPE.DOTTED_CROSS,n.db.LINETYPE.SOLID_POINT,n.db.LINETYPE.DOTTED_POINT].includes(e.type)&&(r=!0),!r)return{};const i=ebe(e.from,t),o=ebe(e.to,t),a=i[0]<=o[0]?1:0,s=i[0]<o[0]?0:1,l=[...i,...o],c=Math.abs(o[s]-i[a]);e.wrap&&e.message&&(e.message=cde.wrapLabel(e.message,Math.max(c+2*WAe.wrapPadding,WAe.width),VAe(WAe)));const u=cde.calculateTextDimensions(e.message,VAe(WAe));return{width:Math.max(e.wrap?0:u.width+2*WAe.wrapPadding,c+2*WAe.wrapPadding,WAe.width),height:0,startx:i[a],stopx:o[s],starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,l),toBounds:Math.max.apply(null,l)}}(e,t,r),e.msgModel=l,l.startx&&l.stopx&&o.length>0&&o.forEach(n=>{if(a=n,l.startx===l.stopx){const n=t[e.from],r=t[e.to];a.from=Math.min(n.x-l.width/2,n.x-n.width/2,a.from),a.to=Math.max(r.x+l.width/2,r.x+n.width/2,a.to),a.width=Math.max(a.width,Math.abs(a.to-a.from))-WAe.labelBoxWidth}else a.from=Math.min(l.startx,a.from),a.to=Math.max(l.stopx,a.to),a.width=Math.max(a.width,l.width)-WAe.labelBoxWidth}))}),GAe.activations=[],Hle.debug("Loop type widths:",i),i},ibe={bounds:GAe,drawActors:qAe,drawActorsPopup:XAe,setConf:JAe,draw:function(e,t,n,r){const{securityLevel:i,sequence:o}=bde();let a;WAe=o,r.db.clear(),r.parser.parse(e),"sandbox"===i&&(a=b3("#i"+t));const s=b3("sandbox"===i?a.nodes()[0].contentDocument.body:"body"),l="sandbox"===i?a.nodes()[0].contentDocument:document;GAe.init(),Hle.debug(r.db);const c="sandbox"===i?s.select(`[id="${t}"]`):b3(`[id="${t}"]`),u=r.db.getActors(),d=r.db.getBoxes(),h=r.db.getActorKeys(),f=r.db.getMessages(),p=r.db.getDiagramTitle(),g=r.db.hasAtLeastOneBox(),m=r.db.hasAtLeastOneBoxWithTitle(),v=function(e,t,n){const r={};return t.forEach(function(t){if(e[t.to]&&e[t.from]){const i=e[t.to];if(t.placement===n.db.PLACEMENT.LEFTOF&&!i.prevActor)return;if(t.placement===n.db.PLACEMENT.RIGHTOF&&!i.nextActor)return;const o=void 0!==t.placement,a=!o,s=o?KAe(WAe):VAe(WAe),l=t.wrap?cde.wrapLabel(t.message,WAe.width-2*WAe.wrapPadding,s):t.message,c=cde.calculateTextDimensions(l,s).width+2*WAe.wrapPadding;a&&t.from===i.nextActor?r[t.to]=Math.max(r[t.to]||0,c):a&&t.from===i.prevActor?r[t.from]=Math.max(r[t.from]||0,c):a&&t.from===t.to?(r[t.from]=Math.max(r[t.from]||0,c/2),r[t.to]=Math.max(r[t.to]||0,c/2)):t.placement===n.db.PLACEMENT.RIGHTOF?r[t.from]=Math.max(r[t.from]||0,c):t.placement===n.db.PLACEMENT.LEFTOF?r[i.prevActor]=Math.max(r[i.prevActor]||0,c):t.placement===n.db.PLACEMENT.OVER&&(i.prevActor&&(r[i.prevActor]=Math.max(r[i.prevActor]||0,c/2)),i.nextActor&&(r[t.from]=Math.max(r[t.from]||0,c/2)))}}),Hle.debug("maxMessageWidthPerActor:",r),r}(u,f,r);WAe.height=function(e,t,n){let r=0;Object.keys(e).forEach(t=>{const n=e[t];n.wrap&&(n.description=cde.wrapLabel(n.description,WAe.width-2*WAe.wrapPadding,YAe(WAe)));const i=cde.calculateTextDimensions(n.description,YAe(WAe));n.width=n.wrap?WAe.width:Math.max(WAe.width,i.width+2*WAe.wrapPadding),n.height=n.wrap?Math.max(i.height,WAe.height):WAe.height,r=Math.max(r,n.height)});for(const o in t){const n=e[o];if(!n)continue;const r=e[n.nextActor];if(!r){const e=t[o]+WAe.actorMargin-n.width/2;n.margin=Math.max(e,WAe.actorMargin);continue}const i=t[o]+WAe.actorMargin-n.width/2-r.width/2;n.margin=Math.max(i,WAe.actorMargin)}let i=0;return n.forEach(t=>{const n=VAe(WAe);let r=t.actorKeys.reduce((t,n)=>t+(e[n].width+(e[n].margin||0)),0);r-=2*WAe.boxTextMargin,t.wrap&&(t.name=cde.wrapLabel(t.name,r-2*WAe.wrapPadding,n));const o=cde.calculateTextDimensions(t.name,n);i=Math.max(o.height,i);const a=Math.max(r,o.width+2*WAe.wrapPadding);if(t.margin=WAe.boxTextMargin,r<a){const e=(a-r)/2;t.margin+=e}}),n.forEach(e=>e.textMaxHeight=i),Math.max(r,WAe.height)}(u,v,d),zAe.insertComputerIcon(c),zAe.insertDatabaseIcon(c),zAe.insertClockIcon(c),g&&(GAe.bumpVerticalPos(WAe.boxMargin),m&&GAe.bumpVerticalPos(d[0].textMaxHeight)),qAe(c,u,h,0,WAe,f,!1);const A=rbe(f,u,v,r);zAe.insertArrowHead(c),zAe.insertArrowCrossHead(c),zAe.insertArrowFilledHead(c),zAe.insertSequenceNumber(c);let b=1,y=1;const w=[];f.forEach(function(e){let t,n,i;switch(e.type){case r.db.LINETYPE.NOTE:n=e.noteModel,function(e,t){GAe.bumpVerticalPos(WAe.boxMargin),t.height=WAe.boxMargin,t.starty=GAe.getVerticalPos();const n=zAe.getNoteRect();n.x=t.startx,n.y=t.starty,n.width=t.width||WAe.width,n.class="note";const r=e.append("g"),i=zAe.drawRect(r,n),o=zAe.getTextObj();o.x=t.startx,o.y=t.starty,o.width=n.width,o.dy="1em",o.text=t.message,o.class="noteText",o.fontFamily=WAe.noteFontFamily,o.fontSize=WAe.noteFontSize,o.fontWeight=WAe.noteFontWeight,o.anchor=WAe.noteAlign,o.textMargin=WAe.noteMargin,o.valign="center";const a=LAe(r,o),s=Math.round(a.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));i.attr("height",s+2*WAe.noteMargin),t.height+=s+2*WAe.noteMargin,GAe.bumpVerticalPos(s+2*WAe.noteMargin),t.stopy=t.starty+s+2*WAe.noteMargin,t.stopx=t.startx+n.width,GAe.insert(t.startx,t.starty,t.stopx,t.stopy),GAe.models.addNote(t)}(c,n);break;case r.db.LINETYPE.ACTIVE_START:GAe.newActivation(e,c,u);break;case r.db.LINETYPE.ACTIVE_END:!function(e,t){const n=GAe.endActivation(e);n.starty+18>t&&(n.starty=t-6,t+=12),zAe.drawActivation(c,n,t,WAe,ZAe(e.from.actor).length),GAe.insert(n.startx,t-10,n.stopx,t)}(e,GAe.getVerticalPos());break;case r.db.LINETYPE.LOOP_START:tbe(A,e,WAe.boxMargin,WAe.boxMargin+WAe.boxTextMargin,e=>GAe.newLoop(e));break;case r.db.LINETYPE.LOOP_END:t=GAe.endLoop(),zAe.drawLoop(c,t,"loop",WAe),GAe.bumpVerticalPos(t.stopy-GAe.getVerticalPos()),GAe.models.addLoop(t);break;case r.db.LINETYPE.RECT_START:tbe(A,e,WAe.boxMargin,WAe.boxMargin,e=>GAe.newLoop(void 0,e.message));break;case r.db.LINETYPE.RECT_END:t=GAe.endLoop(),zAe.drawBackgroundRect(c,t),GAe.models.addLoop(t),GAe.bumpVerticalPos(t.stopy-GAe.getVerticalPos());break;case r.db.LINETYPE.OPT_START:tbe(A,e,WAe.boxMargin,WAe.boxMargin+WAe.boxTextMargin,e=>GAe.newLoop(e));break;case r.db.LINETYPE.OPT_END:t=GAe.endLoop(),zAe.drawLoop(c,t,"opt",WAe),GAe.bumpVerticalPos(t.stopy-GAe.getVerticalPos()),GAe.models.addLoop(t);break;case r.db.LINETYPE.ALT_START:tbe(A,e,WAe.boxMargin,WAe.boxMargin+WAe.boxTextMargin,e=>GAe.newLoop(e));break;case r.db.LINETYPE.ALT_ELSE:tbe(A,e,WAe.boxMargin+WAe.boxTextMargin,WAe.boxMargin,e=>GAe.addSectionToLoop(e));break;case r.db.LINETYPE.ALT_END:t=GAe.endLoop(),zAe.drawLoop(c,t,"alt",WAe),GAe.bumpVerticalPos(t.stopy-GAe.getVerticalPos()),GAe.models.addLoop(t);break;case r.db.LINETYPE.PAR_START:tbe(A,e,WAe.boxMargin,WAe.boxMargin+WAe.boxTextMargin,e=>GAe.newLoop(e));break;case r.db.LINETYPE.PAR_AND:tbe(A,e,WAe.boxMargin+WAe.boxTextMargin,WAe.boxMargin,e=>GAe.addSectionToLoop(e));break;case r.db.LINETYPE.PAR_END:t=GAe.endLoop(),zAe.drawLoop(c,t,"par",WAe),GAe.bumpVerticalPos(t.stopy-GAe.getVerticalPos()),GAe.models.addLoop(t);break;case r.db.LINETYPE.AUTONUMBER:b=e.message.start||b,y=e.message.step||y,e.message.visible?r.db.enableSequenceNumbers():r.db.disableSequenceNumbers();break;case r.db.LINETYPE.CRITICAL_START:tbe(A,e,WAe.boxMargin,WAe.boxMargin+WAe.boxTextMargin,e=>GAe.newLoop(e));break;case r.db.LINETYPE.CRITICAL_OPTION:tbe(A,e,WAe.boxMargin+WAe.boxTextMargin,WAe.boxMargin,e=>GAe.addSectionToLoop(e));break;case r.db.LINETYPE.CRITICAL_END:t=GAe.endLoop(),zAe.drawLoop(c,t,"critical",WAe),GAe.bumpVerticalPos(t.stopy-GAe.getVerticalPos()),GAe.models.addLoop(t);break;case r.db.LINETYPE.BREAK_START:tbe(A,e,WAe.boxMargin,WAe.boxMargin+WAe.boxTextMargin,e=>GAe.newLoop(e));break;case r.db.LINETYPE.BREAK_END:t=GAe.endLoop(),zAe.drawLoop(c,t,"break",WAe),GAe.bumpVerticalPos(t.stopy-GAe.getVerticalPos()),GAe.models.addLoop(t);break;default:try{i=e.msgModel,i.starty=GAe.getVerticalPos(),i.sequenceIndex=b,i.sequenceVisible=r.db.showSequenceNumbers();const t=function(e,t){GAe.bumpVerticalPos(10);const{startx:n,stopx:r,message:i}=t,o=Jle.splitBreaks(i).length,a=cde.calculateTextDimensions(i,VAe(WAe)),s=a.height/o;let l;t.height+=s,GAe.bumpVerticalPos(s);let c=a.height-10;const u=a.width;if(n===r){l=GAe.getVerticalPos()+c,WAe.rightAngles||(c+=WAe.boxMargin,l=GAe.getVerticalPos()+c),c+=30;const e=Math.max(u/2,WAe.width/2);GAe.insert(n-e,GAe.getVerticalPos()-10+c,r+e,GAe.getVerticalPos()+30+c)}else c+=WAe.boxMargin,l=GAe.getVerticalPos()+c,GAe.insert(n,l-10,r,l);return GAe.bumpVerticalPos(c),t.height+=c,t.stopy=t.starty+t.height,GAe.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),l}(0,i);w.push({messageModel:i,lineStartY:t}),GAe.models.addMessage(i)}catch(e){Hle.error("error while drawing message",e)}}[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT].includes(e.type)&&(b+=y)}),w.forEach(e=>function(e,t,n,r){const{startx:i,stopx:o,starty:a,message:s,type:l,sequenceIndex:c,sequenceVisible:u}=t,d=cde.calculateTextDimensions(s,VAe(WAe)),h=zAe.getTextObj();h.x=i,h.y=a+10,h.width=o-i,h.class="messageText",h.dy="1em",h.text=s,h.fontFamily=WAe.messageFontFamily,h.fontSize=WAe.messageFontSize,h.fontWeight=WAe.messageFontWeight,h.anchor=WAe.messageAlign,h.valign="center",h.textMargin=WAe.wrapPadding,h.tspan=!1,LAe(e,h);const f=d.width;let p;i===o?p=WAe.rightAngles?e.append("path").attr("d",`M  ${i},${n} H ${i+Math.max(WAe.width/2,f/2)} V ${n+25} H ${i}`):e.append("path").attr("d","M "+i+","+n+" C "+(i+60)+","+(n-10)+" "+(i+60)+","+(n+30)+" "+i+","+(n+20)):(p=e.append("line"),p.attr("x1",i),p.attr("y1",n),p.attr("x2",o),p.attr("y2",n)),l===r.db.LINETYPE.DOTTED||l===r.db.LINETYPE.DOTTED_CROSS||l===r.db.LINETYPE.DOTTED_POINT||l===r.db.LINETYPE.DOTTED_OPEN?(p.style("stroke-dasharray","3, 3"),p.attr("class","messageLine1")):p.attr("class","messageLine0");let g="";WAe.arrowMarkerAbsolute&&(g=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,g=g.replace(/\(/g,"\\("),g=g.replace(/\)/g,"\\)")),p.attr("stroke-width",2),p.attr("stroke","none"),p.style("fill","none"),l!==r.db.LINETYPE.SOLID&&l!==r.db.LINETYPE.DOTTED||p.attr("marker-end","url("+g+"#arrowhead)"),l!==r.db.LINETYPE.SOLID_POINT&&l!==r.db.LINETYPE.DOTTED_POINT||p.attr("marker-end","url("+g+"#filled-head)"),l!==r.db.LINETYPE.SOLID_CROSS&&l!==r.db.LINETYPE.DOTTED_CROSS||p.attr("marker-end","url("+g+"#crosshead)"),(u||WAe.showSequenceNumbers)&&(p.attr("marker-start","url("+g+"#sequencenumber)"),e.append("text").attr("x",i).attr("y",n+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(c))}(c,e.messageModel,e.lineStartY,r)),WAe.mirrorActors&&(GAe.bumpVerticalPos(2*WAe.boxMargin),qAe(c,u,h,GAe.getVerticalPos(),WAe,f,!0),GAe.bumpVerticalPos(WAe.boxMargin),FAe(c,GAe.getVerticalPos())),GAe.models.boxes.forEach(function(e){e.height=GAe.getVerticalPos()-e.y,GAe.insert(e.x,e.y,e.x+e.width,e.height),e.startx=e.x,e.starty=e.y,e.stopx=e.startx+e.width,e.stopy=e.starty+e.height,e.stroke="rgb(0,0,0, 0.5)",zAe.drawBox(c,e,WAe)}),g&&GAe.bumpVerticalPos(WAe.boxMargin);const _=XAe(c,u,h,l),{bounds:x}=GAe.getBounds();Hle.debug("For line height fix Querying: #"+t+" .actor-line"),y3("#"+t+" .actor-line").attr("y2",x.stopy);let E=x.stopy-x.starty;E<_.maxHeight&&(E=_.maxHeight);let S=E+2*WAe.diagramMarginY;WAe.mirrorActors&&(S=S-WAe.boxMargin+WAe.bottomMarginAdj);let C=x.stopx-x.startx;C<_.maxWidth&&(C=_.maxWidth);const T=C+2*WAe.diagramMarginX;p&&c.append("text").text(p).attr("x",(x.stopx-x.startx)/2-2*WAe.diagramMarginX).attr("y",-25),Cde(c,S,T,WAe.useMaxWidth);const k=p?40:0;c.attr("viewBox",x.startx-WAe.diagramMarginX+" -"+(WAe.diagramMarginY+k)+" "+T+" "+(S+k)),Hle.debug("models:",GAe.models)}};var obe=function(){var e,t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[1,2],r=[1,3],i=[1,5],o=[1,7],a=[2,5],s=[1,15],l=[1,17],c=[1,21],u=[1,22],d=[1,23],h=[1,24],f=[1,37],p=[1,25],g=[1,26],m=[1,27],v=[1,28],A=[1,29],b=[1,32],y=[1,33],w=[1,34],_=[1,35],x=[1,36],E=[1,39],S=[1,40],C=[1,41],T=[1,42],k=[1,38],O=[1,45],M=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],I=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],D=[1,4,5,7,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],N=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],R={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,classDefStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,class:42,CLASSENTITY_IDS:43,STYLECLASS:44,openDirective:45,typeDirective:46,closeDirective:47,":":48,argDirective:49,direction_tb:50,direction_bt:51,direction_rl:52,direction_lr:53,eol:54,";":55,EDGE_STATE:56,STYLE_SEPARATOR:57,left_of:58,right_of:59,open_directive:60,type_directive:61,arg_directive:62,close_directive:63,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"class",43:"CLASSENTITY_IDS",44:"STYLECLASS",48:":",50:"direction_tb",51:"direction_bt",52:"direction_rl",53:"direction_lr",55:";",56:"EDGE_STATE",57:"STYLE_SEPARATOR",58:"left_of",59:"right_of",60:"open_directive",61:"type_directive",62:"arg_directive",63:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[10,2],[10,2],[10,1],[11,3],[11,3],[12,3],[6,3],[6,5],[32,1],[32,1],[32,1],[32,1],[54,1],[54,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1],[45,1],[46,1],[49,1],[47,1]],performAction:function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 4:return r.setRootDoc(o[s]),o[s];case 5:this.$=[];break;case 6:"nl"!=o[s]&&(o[s-1].push(o[s]),this.$=o[s-1]);break;case 7:case 8:case 12:this.$=o[s];break;case 9:this.$="nl";break;case 13:const e=o[s-1];e.description=r.trimColon(o[s]),this.$=e;break;case 14:this.$={stmt:"relation",state1:o[s-2],state2:o[s]};break;case 15:const t=r.trimColon(o[s]);this.$={stmt:"relation",state1:o[s-3],state2:o[s-1],description:t};break;case 19:this.$={stmt:"state",id:o[s-3],type:"default",description:"",doc:o[s-1]};break;case 20:var l=o[s],c=o[s-2].trim();if(o[s].match(":")){var u=o[s].split(":");l=u[0],c=[c,u[1]]}this.$={stmt:"state",id:l,type:"default",description:c};break;case 21:this.$={stmt:"state",id:o[s-3],type:"default",description:o[s-5],doc:o[s-1]};break;case 22:this.$={stmt:"state",id:o[s],type:"fork"};break;case 23:this.$={stmt:"state",id:o[s],type:"join"};break;case 24:this.$={stmt:"state",id:o[s],type:"choice"};break;case 25:this.$={stmt:"state",id:r.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:o[s-1].trim(),note:{position:o[s-2].trim(),text:o[s].trim()}};break;case 30:this.$=o[s].trim(),r.setAccTitle(this.$);break;case 31:case 32:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 33:case 34:this.$={stmt:"classDef",id:o[s-1].trim(),classes:o[s].trim()};break;case 35:this.$={stmt:"applyClass",id:o[s-1].trim(),styleClass:o[s].trim()};break;case 38:r.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:r.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:r.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:r.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:o[s].trim(),type:"default",description:""};break;case 46:case 47:this.$={stmt:"state",id:o[s-2].trim(),classes:[o[s].trim()],type:"default",description:""};break;case 50:r.parseDirective("%%{","open_directive");break;case 51:r.parseDirective(o[s],"type_directive");break;case 52:o[s]=o[s].trim().replace(/'/g,'"'),r.parseDirective(o[s],"arg_directive");break;case 53:r.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:n,5:r,6:4,7:i,45:6,60:o},{1:[3]},{3:8,4:n,5:r,6:4,7:i,45:6,60:o},{3:9,4:n,5:r,6:4,7:i,45:6,60:o},{3:10,4:n,5:r,6:4,7:i,45:6,60:o},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,50,51,52,53,56,60],a,{8:11}),{46:12,61:[1,13]},{61:[2,50]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:s,5:l,6:30,9:14,10:16,11:18,12:19,13:20,16:c,17:u,19:d,22:h,24:f,25:p,26:g,27:m,28:v,29:A,32:31,33:b,35:y,37:w,38:_,42:x,45:6,50:E,51:S,52:C,53:T,56:k,60:o},{47:43,48:[1,44],63:O},t([48,63],[2,51]),t(M,[2,6]),{6:30,10:46,11:18,12:19,13:20,16:c,17:u,19:d,22:h,24:f,25:p,26:g,27:m,28:v,29:A,32:31,33:b,35:y,37:w,38:_,42:x,45:6,50:E,51:S,52:C,53:T,56:k,60:o},t(M,[2,8]),t(M,[2,9]),t(M,[2,10]),t(M,[2,11]),t(M,[2,12],{14:[1,47],15:[1,48]}),t(M,[2,16]),{18:[1,49]},t(M,[2,18],{20:[1,50]}),{23:[1,51]},t(M,[2,22]),t(M,[2,23]),t(M,[2,24]),t(M,[2,25]),{30:52,31:[1,53],58:[1,54],59:[1,55]},t(M,[2,28]),t(M,[2,29]),{34:[1,56]},{36:[1,57]},t(M,[2,32]),{39:[1,58],41:[1,59]},{43:[1,60]},t(I,[2,44],{57:[1,61]}),t(I,[2,45],{57:[1,62]}),t(M,[2,38]),t(M,[2,39]),t(M,[2,40]),t(M,[2,41]),t(D,[2,36]),{49:63,62:[1,64]},t(D,[2,53]),t(M,[2,7]),t(M,[2,13]),{13:65,24:f,56:k},t(M,[2,17]),t(N,a,{8:66}),{24:[1,67]},{24:[1,68]},{23:[1,69]},{24:[2,48]},{24:[2,49]},t(M,[2,30]),t(M,[2,31]),{40:[1,70]},{40:[1,71]},{44:[1,72]},{24:[1,73]},{24:[1,74]},{47:75,63:O},{63:[2,52]},t(M,[2,14],{14:[1,76]}),{4:s,5:l,6:30,9:14,10:16,11:18,12:19,13:20,16:c,17:u,19:d,21:[1,77],22:h,24:f,25:p,26:g,27:m,28:v,29:A,32:31,33:b,35:y,37:w,38:_,42:x,45:6,50:E,51:S,52:C,53:T,56:k,60:o},t(M,[2,20],{20:[1,78]}),{31:[1,79]},{24:[1,80]},t(M,[2,33]),t(M,[2,34]),t(M,[2,35]),t(I,[2,46]),t(I,[2,47]),t(D,[2,37]),t(M,[2,15]),t(M,[2,19]),t(N,a,{8:81}),t(M,[2,26]),t(M,[2,27]),{4:s,5:l,6:30,9:14,10:16,11:18,12:19,13:20,16:c,17:u,19:d,21:[1,82],22:h,24:f,25:p,26:g,27:m,28:v,29:A,32:31,33:b,35:y,37:w,38:_,42:x,45:6,50:E,51:S,52:C,53:T,56:k,60:o},t(M,[2,21])],defaultActions:{7:[2,50],8:[2,1],9:[2,2],10:[2,3],54:[2,48],55:[2,49],64:[2,52]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),d=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);d.setInput(e,h.yy),h.yy.lexer=d,h.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var p=d.yylloc;o.push(p);var g=d.options&&d.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||d.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,A,b,y,w,_,x,E,S={};;){if(A=n[n.length-1],this.defaultActions[A]?b=this.defaultActions[A]:(null==v&&(v=m()),b=a[A]&&a[A][v]),void 0===b||!b.length||!b[0]){var C="";for(w in E=[],a[A])this.terminals_[w]&&w>2&&E.push("'"+this.terminals_[w]+"'");C=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:p,expected:E})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(b[0]){case 1:n.push(v),i.push(d.yytext),o.push(d.yylloc),n.push(b[1]),v=null,c=d.yyleng,s=d.yytext,l=d.yylineno,p=d.yylloc;break;case 2:if(_=this.productions_[b[1]][1],S.$=i[i.length-_],S._$={first_line:o[o.length-(_||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(_||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(_||1)].range[0],o[o.length-1].range[1]]),void 0!==(y=this.performAction.apply(S,[s,c,l,h.yy,b[1],i,o].concat(u))))return y;_&&(n=n.slice(0,-1*_*2),i=i.slice(0,-1*_),o=o.slice(0,-1*_)),n.push(this.productions_[b[1]][0]),i.push(S.$),o.push(S._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},L=(e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 41;case 1:case 44:return 50;case 2:case 45:return 51;case 3:case 46:return 52;case 4:case 47:return 53;case 5:return this.begin("open_directive"),60;case 6:return this.begin("type_directive"),61;case 7:return this.popState(),this.begin("arg_directive"),48;case 8:return this.popState(),this.popState(),63;case 9:return 62;case 10:case 11:case 13:case 14:case 15:case 16:case 56:case 58:case 64:break;case 12:case 79:return 5;case 17:case 34:return this.pushState("SCALE"),17;case 18:case 35:return 18;case 19:case 25:case 36:case 51:case 54:this.popState();break;case 20:return this.begin("acc_title"),33;case 21:return this.popState(),"acc_title_value";case 22:return this.begin("acc_descr"),35;case 23:return this.popState(),"acc_descr_value";case 24:this.begin("acc_descr_multiline");break;case 26:return"acc_descr_multiline_value";case 27:return this.pushState("CLASSDEF"),38;case 28:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 29:return this.popState(),this.pushState("CLASSDEFID"),39;case 30:return this.popState(),40;case 31:return this.pushState("CLASS"),42;case 32:return this.popState(),this.pushState("CLASS_STYLE"),43;case 33:return this.popState(),44;case 37:this.pushState("STATE");break;case 38:case 41:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),25;case 39:case 42:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),26;case 40:case 43:return this.popState(),t.yytext=t.yytext.slice(0,-10).trim(),27;case 48:this.pushState("STATE_STRING");break;case 49:return this.pushState("STATE_ID"),"AS";case 50:case 66:return this.popState(),"ID";case 52:return"STATE_DESCR";case 53:return 19;case 55:return this.popState(),this.pushState("struct"),20;case 57:return this.popState(),21;case 59:return this.begin("NOTE"),29;case 60:return this.popState(),this.pushState("NOTE_ID"),58;case 61:return this.popState(),this.pushState("NOTE_ID"),59;case 62:this.popState(),this.pushState("FLOATING_NOTE");break;case 63:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 65:return"NOTE_TEXT";case 67:return this.popState(),this.pushState("NOTE_TEXT"),24;case 68:return this.popState(),t.yytext=t.yytext.substr(2).trim(),31;case 69:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),31;case 70:case 71:return 7;case 72:return 16;case 73:return 56;case 74:return 24;case 75:return t.yytext=t.yytext.trim(),14;case 76:return 15;case 77:return 28;case 78:return 57;case 80:return"INVALID"}},rules:[/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[14,15],inclusive:!1},close_directive:{rules:[14,15],inclusive:!1},arg_directive:{rules:[8,9,14,15],inclusive:!1},type_directive:{rules:[7,8,14,15],inclusive:!1},open_directive:{rules:[6,14,15],inclusive:!1},struct:{rules:[14,15,27,31,37,44,45,46,47,56,57,58,59,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[66],inclusive:!1},FLOATING_NOTE:{rules:[63,64,65],inclusive:!1},NOTE_TEXT:{rules:[68,69],inclusive:!1},NOTE_ID:{rules:[67],inclusive:!1},NOTE:{rules:[60,61,62],inclusive:!1},CLASS_STYLE:{rules:[33],inclusive:!1},CLASS:{rules:[32],inclusive:!1},CLASSDEFID:{rules:[30],inclusive:!1},CLASSDEF:{rules:[28,29],inclusive:!1},acc_descr_multiline:{rules:[25,26],inclusive:!1},acc_descr:{rules:[23],inclusive:!1},acc_title:{rules:[21],inclusive:!1},SCALE:{rules:[18,19,35,36],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[50],inclusive:!1},STATE_STRING:{rules:[51,52],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[14,15,38,39,40,41,42,43,48,49,53,54,55],inclusive:!1},ID:{rules:[14,15],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,10,11,12,13,15,16,17,20,22,24,27,31,34,37,55,59,70,71,72,73,74,75,76,78,79,80],inclusive:!0}}},e);function B(){this.yy={}}return R.lexer=L,B.prototype=R,R.Parser=B,new B}();obe.parser=obe;const abe=obe,sbe=(e,t)=>{var n;return"dagre-wrapper"!==(null==(n=null==t?void 0:t.state)?void 0:n.defaultRenderer)&&null!==e.match(/^\s*stateDiagram/)},lbe=(e,t)=>{var n;return null!==e.match(/^\s*stateDiagram-v2/)||!(!e.match(/^\s*stateDiagram/)||"dagre-wrapper"!==(null==(n=null==t?void 0:t.state)?void 0:n.defaultRenderer))},cbe="state",ube="relation",dbe="default",hbe="divider",fbe="[*]",pbe="start",gbe=fbe,mbe="color",vbe="fill";let Abe="LR",bbe=[],ybe={},wbe={root:{relations:[],states:{},documents:{}}},_be=wbe.root,xbe=0,Ebe=0;const Sbe=e=>JSON.parse(JSON.stringify(e)),Cbe=(e,t,n)=>{if(t.stmt===ube)Cbe(e,t.state1,!0),Cbe(e,t.state2,!1);else if(t.stmt===cbe&&("[*]"===t.id?(t.id=n?e.id+"_start":e.id+"_end",t.start=n):t.id=t.id.trim()),t.doc){const e=[];let n,r=[];for(n=0;n<t.doc.length;n++)if(t.doc[n].type===hbe){const i=Sbe(t.doc[n]);i.doc=Sbe(r),e.push(i),r=[]}else r.push(t.doc[n]);if(e.length>0&&r.length>0){const n={stmt:cbe,id:que(),type:"divider",doc:Sbe(r)};e.push(Sbe(n)),t.doc=e}t.doc.forEach(e=>Cbe(t,e,!0))}},Tbe=function(e,t=dbe,n=null,r=null,i=null,o=null,a=null,s=null){const l=null==e?void 0:e.trim();void 0===_be.states[l]?(Hle.info("Adding state ",l,r),_be.states[l]={id:l,descriptions:[],type:t,doc:n,note:i,classes:[],styles:[],textStyles:[]}):(_be.states[l].doc||(_be.states[l].doc=n),_be.states[l].type||(_be.states[l].type=t)),r&&(Hle.info("Setting state description",l,r),"string"==typeof r&&Nbe(l,r.trim()),"object"==typeof r&&r.forEach(e=>Nbe(l,e.trim()))),i&&(_be.states[l].note=i,_be.states[l].note.text=Jle.sanitizeText(_be.states[l].note.text,bde())),o&&(Hle.info("Setting state classes",l,o),("string"==typeof o?[o]:o).forEach(e=>Lbe(l,e.trim()))),a&&(Hle.info("Setting state styles",l,a),("string"==typeof a?[a]:a).forEach(e=>Bbe(l,e.trim()))),s&&(Hle.info("Setting state styles",l,a),("string"==typeof s?[s]:s).forEach(e=>Pbe(l,e.trim())))},kbe=function(e){wbe={root:{relations:[],states:{},documents:{}}},_be=wbe.root,xbe=0,ybe={},e||Gde()},Obe=function(e){return _be.states[e]};function Mbe(e=""){let t=e;return e===fbe&&(xbe++,t=`${pbe}${xbe}`),t}function Ibe(e="",t=dbe){return e===fbe?pbe:t}const Dbe=function(e,t,n){if("object"==typeof e)!function(e,t,n){let r=Mbe(e.id.trim()),i=Ibe(e.id.trim(),e.type),o=Mbe(t.id.trim()),a=Ibe(t.id.trim(),t.type);Tbe(r,i,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),Tbe(o,a,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles),_be.relations.push({id1:r,id2:o,relationTitle:Jle.sanitizeText(n,bde())})}(e,t,n);else{const r=Mbe(e.trim()),i=Ibe(e),o=function(e=""){let t=e;return e===gbe&&(xbe++,t=`end${xbe}`),t}(t.trim()),a=function(e="",t=dbe){return e===gbe?"end":t}(t);Tbe(r,i),Tbe(o,a),_be.relations.push({id1:r,id2:o,title:Jle.sanitizeText(n,bde())})}},Nbe=function(e,t){const n=_be.states[e],r=t.startsWith(":")?t.replace(":","").trim():t;n.descriptions.push(Jle.sanitizeText(r,bde()))},Rbe=function(e,t=""){void 0===ybe[e]&&(ybe[e]={id:e,styles:[],textStyles:[]});const n=ybe[e];null!=t&&t.split(",").forEach(e=>{const t=e.replace(/([^;]*);/,"$1").trim();if(e.match(mbe)){const e=t.replace(vbe,"bgFill").replace(mbe,vbe);n.textStyles.push(e)}n.styles.push(t)})},Lbe=function(e,t){e.split(",").forEach(function(e){let n=Obe(e);if(void 0===n){const t=e.trim();Tbe(t),n=Obe(t)}n.classes.push(t)})},Bbe=function(e,t){const n=Obe(e);void 0!==n&&n.textStyles.push(t)},Pbe=function(e,t){const n=Obe(e);void 0!==n&&n.textStyles.push(t)},Fbe={parseDirective:function(e,t,n){kwe.parseDirective(this,e,t,n)},getConfig:()=>bde().state,addState:Tbe,clear:kbe,getState:Obe,getStates:function(){return _be.states},getRelations:function(){return _be.relations},getClasses:function(){return ybe},getDirection:()=>Abe,addRelation:Dbe,getDividerId:()=>(Ebe++,"divider-id-"+Ebe),setDirection:e=>{Abe=e},cleanupLabel:function(e){return":"===e.substring(0,1)?e.substr(2).trim():e.trim()},lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},logDocuments:function(){Hle.info("Documents = ",wbe)},getRootDoc:()=>bbe,setRootDoc:e=>{Hle.info("Setting root doc",e),bbe=e},getRootDocV2:()=>(Cbe({id:"root"},{id:"root",doc:bbe},!0),{id:"root",doc:bbe}),extract:e=>{let t;t=e.doc?e.doc:e,Hle.info(t),kbe(!0),Hle.info("Extract",t),t.forEach(e=>{switch(e.stmt){case cbe:Tbe(e.id.trim(),e.type,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles);break;case ube:Dbe(e.state1,e.state2,e.description);break;case"classDef":Rbe(e.id.trim(),e.classes);break;case"applyClass":Lbe(e.id.trim(),e.styleClass)}})},trimColon:e=>e&&":"===e[0]?e.substr(1).trim():e.trim(),getAccTitle:Kde,setAccTitle:Vde,getAccDescription:qde,setAccDescription:Yde,addStyleClass:Rbe,setCssClass:Lbe,addDescription:Nbe,setDiagramTitle:Xde,getDiagramTitle:Jde},$be=(e,t)=>{const n=e.append("text").attr("x",2*bde().state.padding).attr("y",bde().state.textHeight+1.3*bde().state.padding).attr("font-size",bde().state.fontSize).attr("class","state-title").text(t.descriptions[0]).node().getBBox(),r=n.height,i=e.append("text").attr("x",bde().state.padding).attr("y",r+.4*bde().state.padding+bde().state.dividerMargin+bde().state.textHeight).attr("class","state-description");let o=!0,a=!0;t.descriptions.forEach(function(e){o||(function(e,t,n){const r=e.append("tspan").attr("x",2*bde().state.padding).text(t);n||r.attr("dy",bde().state.textHeight)}(i,e,a),a=!1),o=!1});const s=e.append("line").attr("x1",bde().state.padding).attr("y1",bde().state.padding+r+bde().state.dividerMargin/2).attr("y2",bde().state.padding+r+bde().state.dividerMargin/2).attr("class","descr-divider"),l=i.node().getBBox(),c=Math.max(l.width,n.width);return s.attr("x2",c+3*bde().state.padding),e.insert("rect",":first-child").attr("x",bde().state.padding).attr("y",bde().state.padding).attr("width",c+2*bde().state.padding).attr("height",l.height+r+2*bde().state.padding).attr("rx",bde().state.radius),e},jbe=(e,t,n)=>{const r=bde().state.padding,i=2*bde().state.padding,o=e.node().getBBox(),a=o.width,s=o.x,l=e.append("text").attr("x",0).attr("y",bde().state.titleShift).attr("font-size",bde().state.fontSize).attr("class","state-title").text(t.id),c=l.node().getBBox().width+i;let u,d=Math.max(c,a);d===a&&(d+=i);const h=e.node().getBBox();t.doc,u=s-r,c>a&&(u=(a-d)/2+r),Math.abs(s-h.x)<r&&c>a&&(u=s-(c-a)/2);const f=1-bde().state.textHeight;return e.insert("rect",":first-child").attr("x",u).attr("y",f).attr("class",n?"alt-composit":"composit").attr("width",d).attr("height",h.height+bde().state.textHeight+bde().state.titleShift+1).attr("rx","0"),l.attr("x",u+r),c<=a&&l.attr("x",s+(d-i)/2-c/2+r),e.insert("rect",":first-child").attr("x",u).attr("y",bde().state.titleShift-bde().state.textHeight-bde().state.padding).attr("width",d).attr("height",3*bde().state.textHeight).attr("rx",bde().state.radius),e.insert("rect",":first-child").attr("x",u).attr("y",bde().state.titleShift-bde().state.textHeight-bde().state.padding).attr("width",d).attr("height",h.height+3+2*bde().state.textHeight).attr("rx",bde().state.radius),e},Hbe=(e,t)=>{t.attr("class","state-note");const n=t.append("rect").attr("x",0).attr("y",bde().state.padding),r=t.append("g"),{textWidth:i,textHeight:o}=((e,t,n,r)=>{let i=0;const o=r.append("text");o.style("text-anchor","start"),o.attr("class","noteText");let a=e.replace(/\r\n/g,"<br/>");a=a.replace(/\n/g,"<br/>");const s=a.split(Jle.lineBreakRegex);let l=1.25*bde().state.noteMargin;for(const c of s){const e=c.trim();if(e.length>0){const r=o.append("tspan");r.text(e),0===l&&(l+=r.node().getBBox().height),i+=l,r.attr("x",t+bde().state.noteMargin),r.attr("y",n+i+1.25*bde().state.noteMargin)}}return{textWidth:o.node().getBBox().width,textHeight:i}})(e,0,0,r);return n.attr("height",o+2*bde().state.noteMargin),n.attr("width",i+2*bde().state.noteMargin),n},Ube=function(e,t){const n=t.id,r={id:n,label:t.id,width:0,height:0},i=e.append("g").attr("id",n).attr("class","stateGroup");"start"===t.type&&(e=>{e.append("circle").attr("class","start-state").attr("r",bde().state.sizeUnit).attr("cx",bde().state.padding+bde().state.sizeUnit).attr("cy",bde().state.padding+bde().state.sizeUnit)})(i),"end"===t.type&&(e=>{e.append("circle").attr("class","end-state-outer").attr("r",bde().state.sizeUnit+bde().state.miniPadding).attr("cx",bde().state.padding+bde().state.sizeUnit+bde().state.miniPadding).attr("cy",bde().state.padding+bde().state.sizeUnit+bde().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",bde().state.sizeUnit).attr("cx",bde().state.padding+bde().state.sizeUnit+2).attr("cy",bde().state.padding+bde().state.sizeUnit+2)})(i),"fork"!==t.type&&"join"!==t.type||((e,t)=>{let n=bde().state.forkWidth,r=bde().state.forkHeight;if(t.parentId){let e=n;n=r,r=e}e.append("rect").style("stroke","black").style("fill","black").attr("width",n).attr("height",r).attr("x",bde().state.padding).attr("y",bde().state.padding)})(i,t),"note"===t.type&&Hbe(t.note.text,i),"divider"===t.type&&(e=>{e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",bde().state.textHeight).attr("class","divider").attr("x2",2*bde().state.textHeight).attr("y1",0).attr("y2",0)})(i),"default"===t.type&&0===t.descriptions.length&&((e,t)=>{const n=e.append("text").attr("x",2*bde().state.padding).attr("y",bde().state.textHeight+2*bde().state.padding).attr("font-size",bde().state.fontSize).attr("class","state-title").text(t.id),r=n.node().getBBox();e.insert("rect",":first-child").attr("x",bde().state.padding).attr("y",bde().state.padding).attr("width",r.width+2*bde().state.padding).attr("height",r.height+2*bde().state.padding).attr("rx",bde().state.radius)})(i,t),"default"===t.type&&t.descriptions.length>0&&$be(i,t);const o=i.node().getBBox();return r.width=o.width+2*bde().state.padding,r.height=o.height+2*bde().state.padding,r};let Qbe,zbe=0;const Wbe={},Gbe=e=>e?e.length*Qbe.fontSizeFactor:1,Vbe=(e,t,n,r,i,o,a)=>{const s=new Wae({compound:!0,multigraph:!0});let l,c=!0;for(l=0;l<e.length;l++)if("relation"===e[l].stmt){c=!1;break}n?s.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:c?1:Qbe.edgeLengthFactor,nodeSep:c?1:50,isMultiGraph:!0}):s.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:c?1:Qbe.edgeLengthFactor,nodeSep:c?1:50,ranker:"tight-tree",isMultiGraph:!0}),s.setDefaultEdgeLabel(function(){return{}}),a.db.extract(e);const u=a.db.getStates(),d=a.db.getRelations(),h=Object.keys(u);for(const v of h){const e=u[v];let l;if(n&&(e.parentId=n),e.doc){let n=t.append("g").attr("id",e.id).attr("class","stateGroup");l=Vbe(e.doc,n,e.id,!r,i,o,a);{n=jbe(n,e,r);let t=n.node().getBBox();l.width=t.width,l.height=t.height+Qbe.padding/2,Wbe[e.id]={y:Qbe.compositTitleSize}}}else l=Ube(t,e);if(e.note){const n={descriptions:[],id:e.id+"-note",note:e.note,type:"note"},r=Ube(t,n);"left of"===e.note.position?(s.setNode(l.id+"-note",r),s.setNode(l.id,l)):(s.setNode(l.id,l),s.setNode(l.id+"-note",r)),s.setParent(l.id,l.id+"-group"),s.setParent(l.id+"-note",l.id+"-group")}else s.setNode(l.id,l)}Hle.debug("Count=",s.nodeCount(),s);let f=0;d.forEach(function(e){f++,Hle.debug("Setting edge",e),s.setEdge(e.id1,e.id2,{relation:e,width:Gbe(e.title),height:Qbe.labelHeight*Jle.getRows(e.title).length,labelpos:"c"},"id"+f)}),ole(s),Hle.debug("Graph after layout",s.nodes());const p=t.node();s.nodes().forEach(function(e){void 0!==e&&void 0!==s.node(e)?(Hle.warn("Node "+e+": "+JSON.stringify(s.node(e))),i.select("#"+p.id+" #"+e).attr("transform","translate("+(s.node(e).x-s.node(e).width/2)+","+(s.node(e).y+(Wbe[e]?Wbe[e].y:0)-s.node(e).height/2)+" )"),i.select("#"+p.id+" #"+e).attr("data-x-shift",s.node(e).x-s.node(e).width/2),o.querySelectorAll("#"+p.id+" #"+e+" .divider").forEach(e=>{const t=e.parentElement;let n=0,r=0;t&&(t.parentElement&&(n=t.parentElement.getBBox().width),r=parseInt(t.getAttribute("data-x-shift"),10),Number.isNaN(r)&&(r=0)),e.setAttribute("x1",0-r+8),e.setAttribute("x2",n-r-8)})):Hle.debug("No Node "+e+": "+JSON.stringify(s.node(e)))});let g=p.getBBox();s.edges().forEach(function(e){void 0!==e&&void 0!==s.edge(e)&&(Hle.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(s.edge(e))),function(e,t,n){t.points=t.points.filter(e=>!Number.isNaN(e.y));const r=t.points,i=nee().x(function(e){return e.x}).y(function(e){return e.y}).curve(cee),o=e.append("path").attr("d",i(r)).attr("id","edge"+zbe).attr("class","transition");let a="";if(bde().state.arrowMarkerAbsolute&&(a=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,a=a.replace(/\(/g,"\\("),a=a.replace(/\)/g,"\\)")),o.attr("marker-end","url("+a+"#"+function(){switch(Fbe.relationType.DEPENDENCY){case Fbe.relationType.AGGREGATION:return"aggregation";case Fbe.relationType.EXTENSION:return"extension";case Fbe.relationType.COMPOSITION:return"composition";case Fbe.relationType.DEPENDENCY:return"dependency"}}()+"End)"),void 0!==n.title){const r=e.append("g").attr("class","stateLabel"),{x:i,y:o}=cde.calcLabelPosition(t.points),a=Jle.getRows(n.title);let s=0;const l=[];let c=0,u=0;for(let e=0;e<=a.length;e++){const t=r.append("text").attr("text-anchor","middle").text(a[e]).attr("x",i).attr("y",o+s),n=t.node().getBBox();if(c=Math.max(c,n.width),u=Math.min(u,n.x),Hle.info(n.x,i,o+s),0===s){const e=t.node().getBBox();s=e.height,Hle.info("Title height",s,o)}l.push(t)}let d=s*a.length;if(a.length>1){const e=(a.length-1)*s*.5;l.forEach((t,n)=>t.attr("y",o+n*s-e)),d=s*a.length}const h=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",i-c/2-bde().state.padding/2).attr("y",o-d/2-bde().state.padding/2-3.5).attr("width",c+bde().state.padding).attr("height",d+bde().state.padding),Hle.info(h)}zbe++}(t,s.edge(e),s.edge(e).relation))}),g=p.getBBox();const m={id:n||"root",label:n||"root",width:0,height:0};return m.width=g.width+2*Qbe.padding,m.height=g.height+2*Qbe.padding,Hle.debug("Doc rendered",m,s),m},Kbe={setConf:function(){},draw:function(e,t,n,r){Qbe=bde().state;const i=bde().securityLevel;let o;"sandbox"===i&&(o=b3("#i"+t));const a=b3("sandbox"===i?o.nodes()[0].contentDocument.body:"body"),s="sandbox"===i?o.nodes()[0].contentDocument:document;Hle.debug("Rendering diagram "+e);const l=a.select(`[id='${t}']`);l.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z"),new Wae({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel(function(){return{}});const c=r.db.getRootDoc();Vbe(c,l,void 0,!1,a,s,r);const u=Qbe.padding,d=l.node().getBBox(),h=d.width+2*u,f=d.height+2*u;Cde(l,f,1.75*h,Qbe.useMaxWidth),l.attr("viewBox",`${d.x-Qbe.padding}  ${d.y-Qbe.padding} `+h+" "+f)}},Ybe="rect",qbe="rectWithTitle",Xbe="statediagram",Jbe=`${Xbe}-state`,Zbe="transition",eye=`${Zbe} note-edge`,tye=`${Xbe}-note`,nye=`${Xbe}-cluster`,rye=`${Xbe}-cluster-alt`,iye="parent",oye="note",aye="----",sye=`${aye}${oye}`,lye=`${aye}${iye}`,cye="fill:none",uye="fill: #333",dye="text",hye="normal";let fye={},pye=0;function gye(e="",t=0,n="",r=aye){return`state-${e}${null!==n&&n.length>0?`${r}${n}`:""}-${t}`}const mye=(e,t,n,r,i,o)=>{const a=n.id,s=null==(l=r[a])?"":l.classes?l.classes.join(" "):"";var l;if("root"!==a){let t=Ybe;!0===n.start&&(t="start"),!1===n.start&&(t="end"),n.type!==dbe&&(t=n.type),fye[a]||(fye[a]={id:a,shape:t,description:Jle.sanitizeText(a,bde()),classes:`${s} ${Jbe}`});const r=fye[a];n.description&&(Array.isArray(r.description)?(r.shape=qbe,r.description.push(n.description)):r.description.length>0?(r.shape=qbe,r.description===a?r.description=[n.description]:r.description=[r.description,n.description]):(r.shape=Ybe,r.description=n.description),r.description=Jle.sanitizeTextOrArray(r.description,bde())),1===r.description.length&&r.shape===qbe&&(r.shape=Ybe),!r.type&&n.doc&&(Hle.info("Setting cluster for ",a,Aye(n)),r.type="group",r.dir=Aye(n),r.shape=n.type===hbe?"divider":"roundedWithTitle",r.classes=r.classes+" "+nye+" "+(o?rye:""));const i={labelStyle:"",shape:r.shape,labelText:r.description,classes:r.classes,style:"",id:a,dir:r.dir,domId:gye(a,pye),type:r.type,padding:15};if(n.note){const t={labelStyle:"",shape:"note",labelText:n.note.text,classes:tye,style:"",id:a+sye+"-"+pye,domId:gye(a,pye,oye),type:r.type,padding:15},o={labelStyle:"",shape:"noteGroup",labelText:n.note.text,classes:r.classes,style:"",id:a+lye,domId:gye(a,pye,iye),type:"group",padding:0};pye++;const s=a+lye;e.setNode(s,o),e.setNode(t.id,t),e.setNode(a,i),e.setParent(a,s),e.setParent(t.id,s);let l=a,c=t.id;"left of"===n.note.position&&(l=t.id,c=a),e.setEdge(l,c,{arrowhead:"none",arrowType:"",style:cye,labelStyle:"",classes:eye,arrowheadStyle:uye,labelpos:"c",labelType:dye,thickness:hye})}else e.setNode(a,i)}t&&"root"!==t.id&&(Hle.trace("Setting node ",a," to be child of its parent ",t.id),e.setParent(a,t.id)),n.doc&&(Hle.trace("Adding nodes children "),vye(e,n,n.doc,r,i,!o))},vye=(e,t,n,r,i,o)=>{Hle.trace("items",n),n.forEach(n=>{switch(n.stmt){case cbe:case dbe:mye(e,t,n,r,i,o);break;case ube:{mye(e,t,n.state1,r,i,o),mye(e,t,n.state2,r,i,o);const a={id:"edge"+pye,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:cye,labelStyle:"",label:Jle.sanitizeText(n.description,bde()),arrowheadStyle:uye,labelpos:"c",labelType:dye,thickness:hye,classes:Zbe};e.setEdge(n.state1.id,n.state2.id,a,pye),pye++}}})},Aye=(e,t="TB")=>{let n=t;if(e.doc)for(let r=0;r<e.doc.length;r++){const t=e.doc[r];"dir"===t.stmt&&(n=t.value)}return n},bye={setConf:function(e){const t=Object.keys(e);for(const n of t)e[n]},getClasses:function(e,t){Hle.trace("Extracting classes"),t.db.clear();try{return t.parser.parse(e),t.db.extract(t.db.getRootDocV2()),t.db.getClasses()}catch(e){return e}},draw:function(e,t,n,r){Hle.info("Drawing state diagram (v2)",t),fye={},r.db.getDirection();const{securityLevel:i,state:o}=bde(),a=o.nodeSpacing||50,s=o.rankSpacing||50;Hle.info(r.db.getRootDocV2()),r.db.extract(r.db.getRootDocV2()),Hle.info(r.db.getRootDocV2());const l=r.db.getStates(),c=new Wae({multigraph:!0,compound:!0}).setGraph({rankdir:Aye(r.db.getRootDocV2()),nodesep:a,ranksep:s,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let u;mye(c,void 0,r.db.getRootDocV2(),l,r.db,!0),"sandbox"===i&&(u=b3("#i"+t));const d=b3("sandbox"===i?u.nodes()[0].contentDocument.body:"body"),h=d.select(`[id="${t}"]`),f=d.select("#"+t+" g");age(f,c,["barb"],Xbe,t),cde.insertTitle(h,"statediagramTitleText",o.titleTopMargin,r.db.getDiagramTitle());const p=h.node().getBBox(),g=p.width+16,m=p.height+16;h.attr("class",Xbe);const v=h.node().getBBox();Cde(h,m,g,o.useMaxWidth);const A=`${v.x-8} ${v.y-8} ${g} ${m}`;Hle.debug(`viewBox ${A}`),h.attr("viewBox",A);const b=document.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const y of b){const e=y.getBBox(),t=document.createElementNS("http://www.w3.org/2000/svg",Ybe);t.setAttribute("rx",0),t.setAttribute("ry",0),t.setAttribute("width",e.width),t.setAttribute("height",e.height),y.insertBefore(t,y.firstChild)}}};var yye=function(){var e,t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[1,2],r=[1,5],i=[6,9,11,17,18,20,22,23,24,26],o=[1,15],a=[1,16],s=[1,17],l=[1,18],c=[1,19],u=[1,20],d=[1,24],h=[4,6,9,11,17,18,20,22,23,24,26],f={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 1:return o[s-1];case 3:case 7:case 8:this.$=[];break;case 4:o[s-1].push(o[s]),this.$=o[s-1];break;case 5:case 6:this.$=o[s];break;case 11:r.setDiagramTitle(o[s].substr(6)),this.$=o[s].substr(6);break;case 12:this.$=o[s].trim(),r.setAccTitle(this.$);break;case 13:case 14:this.$=o[s].trim(),r.setAccDescription(this.$);break;case 15:r.addSection(o[s].substr(8)),this.$=o[s].substr(8);break;case 16:r.addTask(o[s-1],o[s]),this.$="task";break;case 18:r.parseDirective("%%{","open_directive");break;case 19:r.parseDirective(o[s],"type_directive");break;case 20:o[s]=o[s].trim().replace(/'/g,'"'),r.parseDirective(o[s],"arg_directive");break;case 21:r.parseDirective("}%%","close_directive","journey")}},table:[{3:1,4:n,7:3,12:4,26:r},{1:[3]},t(i,[2,3],{5:6}),{3:7,4:n,7:3,12:4,26:r},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:o,18:a,20:s,22:l,23:c,24:u,26:r},{1:[2,2]},{14:22,15:[1,23],29:d},t([15,29],[2,19]),t(i,[2,8],{1:[2,1]}),t(i,[2,4]),{7:21,10:25,12:4,17:o,18:a,20:s,22:l,23:c,24:u,26:r},t(i,[2,6]),t(i,[2,7]),t(i,[2,11]),{19:[1,26]},{21:[1,27]},t(i,[2,14]),t(i,[2,15]),{25:[1,28]},t(i,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},t(i,[2,5]),t(i,[2,12]),t(i,[2,13]),t(i,[2,16]),t(h,[2,9]),{14:32,29:d},{29:[2,20]},{11:[1,33]},t(h,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),d=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);d.setInput(e,h.yy),h.yy.lexer=d,h.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var p=d.yylloc;o.push(p);var g=d.options&&d.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||d.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,A,b,y,w,_,x,E,S={};;){if(A=n[n.length-1],this.defaultActions[A]?b=this.defaultActions[A]:(null==v&&(v=m()),b=a[A]&&a[A][v]),void 0===b||!b.length||!b[0]){var C="";for(w in E=[],a[A])this.terminals_[w]&&w>2&&E.push("'"+this.terminals_[w]+"'");C=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:p,expected:E})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(b[0]){case 1:n.push(v),i.push(d.yytext),o.push(d.yylloc),n.push(b[1]),v=null,c=d.yyleng,s=d.yytext,l=d.yylineno,p=d.yylloc;break;case 2:if(_=this.productions_[b[1]][1],S.$=i[i.length-_],S._$={first_line:o[o.length-(_||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(_||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(_||1)].range[0],o[o.length-1].range[1]]),void 0!==(y=this.performAction.apply(S,[s,c,l,h.yy,b[1],i,o].concat(u))))return y;_&&(n=n.slice(0,-1*_*2),i=i.slice(0,-1*_),o=o.slice(0,-1*_)),n.push(this.productions_[b[1]][0]),i.push(S.$),o.push(S._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},p=(e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}},e);function g(){this.yy={}}return f.lexer=p,g.prototype=f,f.Parser=g,new g}();yye.parser=yye;const wye=yye,_ye=e=>null!==e.match(/^\s*journey/);let xye="";const Eye=[],Sye=[],Cye=[],Tye=function(){let e=!0;for(const[t,n]of Cye.entries())Cye[t].processed,e=e&&n.processed;return e},kye={parseDirective:function(e,t,n){kwe.parseDirective(this,e,t,n)},getConfig:()=>bde().journey,clear:function(){Eye.length=0,Sye.length=0,xye="",Cye.length=0,Gde()},setDiagramTitle:Xde,getDiagramTitle:Jde,setAccTitle:Vde,getAccTitle:Kde,setAccDescription:Yde,getAccDescription:qde,addSection:function(e){xye=e,Eye.push(e)},getSections:function(){return Eye},getTasks:function(){let e=Tye(),t=0;for(;!e&&t<100;)e=Tye(),t++;return Sye.push(...Cye),Sye},addTask:function(e,t){const n=t.substr(1).split(":");let r=0,i=[];1===n.length?(r=Number(n[0]),i=[]):(r=Number(n[0]),i=n[1].split(","));const o=i.map(e=>e.trim()),a={section:xye,type:xye,people:o,task:e,score:r};Cye.push(a)},addTaskOrg:function(e){const t={section:xye,type:xye,description:e,task:e,classes:[]};Sye.push(t)},getActors:function(){return function(){const e=[];return Sye.forEach(t=>{t.people&&e.push(...t.people)}),[...new Set(e)].sort()}()}},Oye=function(e,t){const n=e.append("rect");return n.attr("x",t.x),n.attr("y",t.y),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("width",t.width),n.attr("height",t.height),n.attr("rx",t.rx),n.attr("ry",t.ry),void 0!==t.class&&n.attr("class",t.class),n},Mye=function(e,t){const n=e.append("circle");return n.attr("cx",t.cx),n.attr("cy",t.cy),n.attr("class","actor-"+t.pos),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("r",t.r),void 0!==n.class&&n.attr("class",n.class),void 0!==t.title&&n.append("title").text(t.title),n},Iye=function(e,t){const n=t.text.replace(/<br\s*\/?>/gi," "),r=e.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),void 0!==t.class&&r.attr("class",t.class);const i=r.append("tspan");return i.attr("x",t.x+2*t.textMargin),i.text(n),r};let Dye=-1;const Nye=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},Rye=function(){function e(e,t,n,i,o,a,s,l){r(t.append("text").attr("x",n+o/2).attr("y",i+a/2+5).style("font-color",l).style("text-anchor","middle").text(e),s)}function t(e,t,n,i,o,a,s,l,c){const{taskFontSize:u,taskFontFamily:d}=l,h=e.split(/<br\s*\/?>/gi);for(let f=0;f<h.length;f++){const e=f*u-u*(h.length-1)/2,l=t.append("text").attr("x",n+o/2).attr("y",i).attr("fill",c).style("text-anchor","middle").style("font-size",u).style("font-family",d);l.append("tspan").attr("x",n+o/2).attr("dy",e).text(h[f]),l.attr("y",i+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(l,s)}}function n(e,n,i,o,a,s,l,c){const u=n.append("switch"),d=u.append("foreignObject").attr("x",i).attr("y",o).attr("width",a).attr("height",s).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");d.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(e),t(e,u,i,o,a,s,l,c),r(d,l)}function r(e,t){for(const n in t)n in t&&e.attr(n,t[n])}return function(r){return"fo"===r.textPlacement?n:"old"===r.textPlacement?e:t}}(),Lye=Mye,Bye=function(e,t,n){const r=e.append("g"),i=Nye();i.x=t.x,i.y=t.y,i.fill=t.fill,i.width=n.width,i.height=n.height,i.class="journey-section section-type-"+t.num,i.rx=3,i.ry=3,Oye(r,i),Rye(n)(t.text,r,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+t.num},n,t.colour)},Pye=Iye,Fye=function(e,t,n){const r=t.x+n.width/2,i=e.append("g");Dye++,i.append("line").attr("id","task"+Dye).attr("x1",r).attr("y1",t.y).attr("x2",r).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),function(e,t){const n=15,r=(e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",n).attr("stroke-width",2).attr("overflow","visible"),e.append("g"));r.append("circle").attr("cx",t.cx-5).attr("cy",t.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),r.append("circle").attr("cx",t.cx+5).attr("cy",t.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),t.score>3?function(e){const r=q9().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(n/2.2);e.append("path").attr("class","mouth").attr("d",r).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}(r):t.score<3?function(e){const r=q9().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(n/2.2);e.append("path").attr("class","mouth").attr("d",r).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}(r):r.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(i,{cx:r,cy:300+30*(5-t.score),score:t.score});const o=Nye();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class="task task-type-"+t.num,o.rx=3,o.ry=3,Oye(i,o);let a=t.x+14;t.people.forEach(e=>{const n=t.actors[e].color,r={cx:a,cy:t.y,r:7,fill:n,stroke:"#000",title:e,pos:t.actors[e].position};Mye(i,r),a+=10}),Rye(n)(t.task,i,o.x,o.y,o.width,o.height,{class:"task"},n,t.colour)},$ye=function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},jye={},Hye=bde().journey,Uye=Hye.leftMargin,Qye={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(e,t,n,r){void 0===e[t]?e[t]=n:e[t]=r(n,e[t])},updateBounds:function(e,t,n,r){const i=bde().journey,o=this;let a=0;this.sequenceItems.forEach(function(s){a++;const l=o.sequenceItems.length-a+1;o.updateVal(s,"starty",t-l*i.boxMargin,Math.min),o.updateVal(s,"stopy",r+l*i.boxMargin,Math.max),o.updateVal(Qye.data,"startx",e-l*i.boxMargin,Math.min),o.updateVal(Qye.data,"stopx",n+l*i.boxMargin,Math.max),o.updateVal(s,"startx",e-l*i.boxMargin,Math.min),o.updateVal(s,"stopx",n+l*i.boxMargin,Math.max),o.updateVal(Qye.data,"starty",t-l*i.boxMargin,Math.min),o.updateVal(Qye.data,"stopy",r+l*i.boxMargin,Math.max)})},insert:function(e,t,n,r){const i=Math.min(e,n),o=Math.max(e,n),a=Math.min(t,r),s=Math.max(t,r);this.updateVal(Qye.data,"startx",i,Math.min),this.updateVal(Qye.data,"starty",a,Math.min),this.updateVal(Qye.data,"stopx",o,Math.max),this.updateVal(Qye.data,"stopy",s,Math.max),this.updateBounds(i,a,o,s)},bumpVerticalPos:function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},zye=Hye.sectionFills,Wye=Hye.sectionColours,Gye=function(e,t,n){const r=bde().journey;let i="";const o=n+(2*r.height+r.diagramMarginY);let a=0,s="#CCC",l="black",c=0;for(const[u,d]of t.entries()){if(i!==d.section){s=zye[a%zye.length],c=a%zye.length,l=Wye[a%Wye.length];const t={x:u*r.taskMargin+u*r.width+Uye,y:50,text:d.section,fill:s,num:c,colour:l};Bye(e,t,r),i=d.section,a++}const t=d.people.reduce((e,t)=>(jye[t]&&(e[t]=jye[t]),e),{});d.x=u*r.taskMargin+u*r.width+Uye,d.y=o,d.width=r.diagramMarginX,d.height=r.diagramMarginY,d.colour=l,d.fill=s,d.num=c,d.actors=t,Fye(e,d,r),Qye.insert(d.x,d.y,d.x+d.width+r.taskMargin,450)}},Vye={setConf:function(e){Object.keys(e).forEach(function(t){Hye[t]=e[t]})},draw:function(e,t,n,r){const i=bde().journey;r.db.clear(),r.parser.parse(e+"\n");const o=bde().securityLevel;let a;"sandbox"===o&&(a=b3("#i"+t));const s=b3("sandbox"===o?a.nodes()[0].contentDocument.body:"body");Qye.init();const l=s.select("#"+t);$ye(l);const c=r.db.getTasks(),u=r.db.getDiagramTitle(),d=r.db.getActors();for(const v in jye)delete jye[v];let h=0;d.forEach(e=>{jye[e]={color:i.actorColours[h%i.actorColours.length],position:h},h++}),function(e){const t=bde().journey;let n=60;Object.keys(jye).forEach(r=>{const i=jye[r].color,o={cx:20,cy:n,r:7,fill:i,stroke:"#000",pos:jye[r].position};Lye(e,o);const a={x:40,y:n+7,fill:"#666",text:r,textMargin:5|t.boxTextMargin};Pye(e,a),n+=20})}(l),Qye.insert(0,0,Uye,50*Object.keys(jye).length),Gye(l,c,0);const f=Qye.getBounds();u&&l.append("text").text(u).attr("x",Uye).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const p=f.stopy-f.starty+2*i.diagramMarginY,g=Uye+f.stopx+2*i.diagramMarginX;Cde(l,p,g,i.useMaxWidth),l.append("line").attr("x1",Uye).attr("y1",4*i.height).attr("x2",g-Uye-4).attr("y2",4*i.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const m=u?70:0;l.attr("viewBox",`${f.startx} -25 ${g} ${p+m}`),l.attr("preserveAspectRatio","xMinYMin meet"),l.attr("height",p+m+25)}};let Kye={};const Yye={setConf:function(e){Kye={...Kye,...e}},draw:(e,t,n)=>{try{Hle.debug("Renering svg for syntax error\n");const e=b3("#"+t),r=e.append("g");r.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),r.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),r.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),r.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),r.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),r.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),r.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),r.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+n),e.attr("height",100),e.attr("width",500),e.attr("viewBox","768 0 912 512")}catch(e){Hle.error("Error while rendering info diagram"),Hle.error((r=e)instanceof Error?r.message:String(r))}var r}},qye="flowchart-elk",Xye={id:qye,detector:(e,t)=>{var n;return!!(e.match(/^\s*flowchart-elk/)||e.match(/^\s*flowchart|graph/)&&"elk"===(null==(n=null==t?void 0:t.flowchart)?void 0:n.defaultRenderer))},loader:async()=>{const{diagram:e}=await Promise.resolve().then(function(){return e_e});return{id:qye,diagram:e}}},Jye=Xye,Zye="timeline",ewe={id:Zye,detector:e=>null!==e.match(/^\s*timeline/),loader:async()=>{const{diagram:e}=await Promise.resolve().then(function(){return R_e});return{id:Zye,diagram:e}}},twe=ewe,nwe="mindmap",rwe={id:nwe,detector:e=>null!==e.match(/^\s*mindmap/),loader:async()=>{const{diagram:e}=await Promise.resolve().then(function(){return hxe});return{id:nwe,diagram:e}}},iwe=rwe;let owe=!1;const awe=()=>{owe||(owe=!0,Fue(Jye,twe,iwe),dhe("error",{db:{clear:()=>{}},styles:Mde,renderer:Yye,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}},e=>"error"===e.toLowerCase().trim()),dhe("---",{db:{clear:()=>{}},styles:Mde,renderer:Yye,parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with unindented `---` blocks")}},init:()=>null},e=>e.toLowerCase().trimStart().startsWith("---")),dhe("c4",{parser:qhe,db:dfe,renderer:Qfe,styles:$de,init:e=>{Qfe.setConf(e.c4)}},Xhe),dhe("class",{parser:Wfe,db:cpe,renderer:_pe,styles:kde,init:e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute,cpe.clear()}},Gfe),dhe("classDiagram",{parser:Wfe,db:cpe,renderer:uge,styles:kde,init:e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute,cpe.clear()}},Vfe),dhe("er",{parser:hge,db:vge,renderer:Oge,styles:Ode},fge),dhe("gantt",{parser:Fme,db:vve,renderer:yve,styles:Dde},$me),dhe("info",{parser:_ve,db:Sve,renderer:Cve,styles:Nde},Tve),dhe("pie",{parser:Ove,db:Nve,renderer:Pve,styles:Rde},Mve),dhe("requirement",{parser:$ve,db:Gve,renderer:rAe,styles:Lde},jve),dhe("sequence",{parser:oAe,db:CAe,renderer:ibe,styles:Bde,init:e=>{if(e.sequence||(e.sequence={}),e.sequence.arrowMarkerAbsolute=e.arrowMarkerAbsolute,"sequenceDiagram"in e)throw new Error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.");CAe.setWrap(e.wrap),ibe.setConf(e.sequence)}},aAe),dhe("state",{parser:abe,db:Fbe,renderer:Kbe,styles:Pde,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,Fbe.clear()}},sbe),dhe("stateDiagram",{parser:abe,db:Fbe,renderer:bye,styles:Pde,init:e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,Fbe.clear()}},lbe),dhe("journey",{parser:wye,db:kye,renderer:Vye,styles:Fde,init:e=>{Vye.setConf(e.journey),kye.clear()}},_ye),dhe("flowchart",{parser:Ige,db:Ome,renderer:Bme,styles:Ide,init:e=>{e.flowchart||(e.flowchart={}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,Dme(e.flowchart),Ome.clear(),Ome.setGen("gen-1")}},Dge),dhe("flowchart-v2",{parser:Ige,db:Ome,renderer:Bme,styles:Ide,init:e=>{e.flowchart||(e.flowchart={}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,Ade({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}}),Bme.setConf(e.flowchart),Ome.clear(),Ome.setGen("gen-2")}},Nge),dhe("gitGraph",{parser:phe,db:Dhe,renderer:Vhe,styles:Khe},ghe))};class swe{constructor(e,t){var n,r;this.txt=e,this.type="graph",this.detectTypeFailed=!1;const i=bde();this.txt=e;try{this.type=Pue(e,i)}catch(e){this.handleError(e,t),this.type="error",this.detectTypeFailed=!0}const o=hhe(this.type);Hle.debug("Type "+this.type),this.db=o.db,null==(r=(n=this.db).clear)||r.call(n),this.renderer=o.renderer,this.parser=o.parser;const a=this.parser.parse.bind(this.parser);this.parser.parse=e=>a(function(e,t){var n;const r=e.match(Nue);if(r){const i=Due(r[1],{schema:Iue});return(null==i?void 0:i.title)&&(null==(n=t.setDiagramTitle)||n.call(t,i.title)),e.slice(r[0].length)}return e}(e,this.db)),this.parser.parser.yy=this.db,o.init&&(o.init(i),Hle.info("Initialized diagram "+this.type,i)),this.txt+="\n",this.parse(this.txt,t)}parse(e,t){var n,r;if(this.detectTypeFailed)return!1;try{return e+="\n",null==(r=(n=this.db).clear)||r.call(n),this.parser.parse(e),!0}catch(e){this.handleError(e,t)}return!1}handleError(e,t){if(void 0===t)throw e;sde(e)?t(e.str,e.hash):t(e)}getParser(){return this.parser}getType(){return this.type}}const lwe=(e,t)=>{const n=Pue(e,bde());try{hhe(n)}catch(a){const i=(e=>Bue[e].loader)(n);if(!i)throw new Error(`Diagram ${n} not found.`);return i().then(({diagram:r})=>(dhe(n,r,void 0),new swe(e,t)))}return new swe(e,t)},cwe=swe,uwe=["graph","flowchart","flowchart-v2","stateDiagram","stateDiagram-v2"],dwe="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",hwe="sandbox",fwe="loose",pwe="http://www.w3.org/1999/xlink",gwe="http://www.w3.org/1999/xhtml",mwe=["foreignobject"],vwe=["dominant-baseline"],Awe=function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/#\w+;/g,function(e){const t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?"ﬂ°°"+t+"¶ß":"ﬂ°"+t+"¶ß"}),t},bwe=function(e){let t=e;return t=t.replace(/ﬂ°°/g,"&#"),t=t.replace(/ﬂ°/g,"&"),t=t.replace(/¶ß/g,";"),t},ywe=(e,t,n=[])=>`\n.${e} ${t} { ${n.join(" !important; ")} !important; }`,wwe=(e,t,n,r)=>{const i=((e,t,n={})=>{var r;let i="";if(void 0!==e.themeCSS&&(i+=`\n${e.themeCSS}`),void 0!==e.fontFamily&&(i+=`\n:root { --mermaid-font-family: ${e.fontFamily}}`),void 0!==e.altFontFamily&&(i+=`\n:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),!mae(n)&&uwe.includes(t)){const t=e.htmlLabels||(null==(r=e.flowchart)?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const e in n){const r=n[e];mae(r.styles)||t.forEach(e=>{i+=ywe(r.id,e,r.styles)}),mae(r.textStyles)||(i+=ywe(r.id,"tspan",r.textStyles))}}return i})(e,t,n);return Lne(Mne(`${r}{${Hde(t,i,e.themeVariables)}}`),Bne)},_we=(e="",t,n)=>{let r=e;return n||t||(r=r.replace(/marker-end="url\(.*?#/g,'marker-end="url(#')),r=bwe(r),r=r.replace(/<br>/g,"<br/>"),r},xwe=(e="",t)=>`<iframe style="width:100%;height:${t?t.viewBox.baseVal.height+"px":"100%"};border:0;margin:0;" src="data:text/html;base64,${btoa('<body style="margin:0">'+e+"</body>")}" sandbox="allow-top-navigation-by-user-activation allow-popups">\n  The "iframe" tag is not supported by your browser.\n</iframe>`,Ewe=(e,t,n,r,i)=>{const o=e.append("div");o.attr("id",n),r&&o.attr("style",r);const a=o.append("svg").attr("id",t).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&a.attr("xmlns:xlink",i),a.append("g"),e};function Swe(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const Cwe=(e,t,n,r)=>{var i,o,a;null==(i=e.getElementById(t))||i.remove(),null==(o=e.getElementById(n))||o.remove(),null==(a=e.getElementById(r))||a.remove()};function Twe(e,t,n,r){!function(e,t){e.attr("role","graphics-document document"),mae(t)||e.attr("aria-roledescription",t)}(t,e),function(e,t,n,r){if(void 0!==e.insert&&(t||n)){if(n){const t="chart-desc-"+r;e.attr("aria-describedby",t),e.insert("desc",":first-child").attr("id",t).text(n)}if(t){const n="chart-title-"+r;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}(t,n,r,t.attr("id"))}const kwe=Object.freeze({render:function(e,t,n,r){var i,o,a,s;awe(),_de();const l=cde.detectInit(t);l&&(ode(l),wde(l));const c=bde();Hle.debug(c),t.length>((null==c?void 0:c.maxTextSize)??5e4)&&(t=dwe),t=t.replace(/\r\n?/g,"\n");const u="#"+e,d="i"+e,h="#"+d,f="d"+e,p="#"+f;let g=b3("body");const m=c.securityLevel===hwe,v=c.securityLevel===fwe,A=c.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),m){const e=Swe(b3(r),d);g=b3(e.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=b3(r);Ewe(g,e,f,`font-family: ${A}`,pwe)}else{if(Cwe(document,e,f,d),m){const e=Swe(b3("body"),d);g=b3(e.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=b3("body");Ewe(g,e,f)}let b,y;t=Awe(t);try{if(b=lwe(t),"then"in b)throw new Error("Diagram is a promise. Use renderAsync.")}catch(e){b=new cwe("error"),y=e}const w=g.select(p).node(),_=b.type,x=w.firstChild,E=x.firstChild,S=uwe.includes(_)?b.renderer.getClasses(t,b):{},C=wwe(c,_,S,u),T=document.createElement("style");T.innerHTML=C,x.insertBefore(T,E);try{b.renderer.draw(t,e,ude,b)}catch(n){throw Yye.draw(t,e,ude),n}Twe(_,g.select(`${p} svg`),null==(o=(i=b.db).getAccTitle)?void 0:o.call(i),null==(s=(a=b.db).getAccDescription)?void 0:s.call(a)),g.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",gwe);let k=g.select(p).node().innerHTML;if(Hle.debug("config.arrowMarkerAbsolute",c.arrowMarkerAbsolute),k=_we(k,m,qle(c.arrowMarkerAbsolute)),m){const e=g.select(p+" svg").node();k=xwe(k,e)}else v||(k=Qee.sanitize(k,{ADD_TAGS:mwe,ADD_ATTR:vwe}));if(void 0!==n)switch(_){case"flowchart":case"flowchart-v2":n(k,Ome.bindFunctions);break;case"gantt":n(k,vve.bindFunctions);break;case"class":case"classDiagram":n(k,cpe.bindFunctions);break;default:n(k)}else Hle.debug("CB = undefined!");kAe();const O=b3(m?h:p).node();if(O&&"remove"in O&&O.remove(),y)throw y;return k},renderAsync:async function(e,t,n,r){var i,o,a,s;awe(),_de();const l=cde.detectInit(t);l&&(ode(l),wde(l));const c=bde();Hle.debug(c),t.length>((null==c?void 0:c.maxTextSize)??5e4)&&(t=dwe),t=t.replace(/\r\n?/g,"\n");const u="#"+e,d="i"+e,h="#"+d,f="d"+e,p="#"+f;let g=b3("body");const m=c.securityLevel===hwe,v=c.securityLevel===fwe,A=c.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),m){const e=Swe(b3(r),d);g=b3(e.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=b3(r);Ewe(g,e,f,`font-family: ${A}`,pwe)}else{if(Cwe(document,e,f,d),m){const e=Swe(b3("body"),d);g=b3(e.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=b3("body");Ewe(g,e,f)}let b,y;t=Awe(t);try{b=await lwe(t)}catch(e){b=new cwe("error"),y=e}const w=g.select(p).node(),_=b.type,x=w.firstChild,E=x.firstChild,S=uwe.includes(_)?b.renderer.getClasses(t,b):{},C=wwe(c,_,S,u),T=document.createElement("style");T.innerHTML=C,x.insertBefore(T,E);try{await b.renderer.draw(t,e,ude,b)}catch(n){throw Yye.draw(t,e,ude),n}Twe(_,g.select(`${p} svg`),null==(o=(i=b.db).getAccTitle)?void 0:o.call(i),null==(s=(a=b.db).getAccDescription)?void 0:s.call(a)),g.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",gwe);let k=g.select(p).node().innerHTML;if(Hle.debug("config.arrowMarkerAbsolute",c.arrowMarkerAbsolute),k=_we(k,m,qle(c.arrowMarkerAbsolute)),m){const e=g.select(p+" svg").node();k=xwe(k,e)}else v||(k=Qee.sanitize(k,{ADD_TAGS:mwe,ADD_ATTR:vwe}));if(void 0!==n)switch(_){case"flowchart":case"flowchart-v2":n(k,Ome.bindFunctions);break;case"gantt":n(k,vve.bindFunctions);break;case"class":case"classDiagram":n(k,cpe.bindFunctions);break;default:n(k)}else Hle.debug("CB = undefined!");kAe();const O=b3(m?h:p).node();if(O&&"remove"in O&&O.remove(),y)throw y;return k},parse:function(e,t){return awe(),new cwe(e,t).parse(e,t)},parseAsync:async function(e,t){return awe(),(await lwe(e,t)).parse(e,t)},parseDirective:nhe,initialize:function(e={}){var t;(null==e?void 0:e.fontFamily)&&!(null==(t=e.themeVariables)?void 0:t.fontFamily)&&(e.themeVariables={fontFamily:e.fontFamily}),hde=Hue({},e),(null==e?void 0:e.theme)&&e.theme in sce?e.themeVariables=sce[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=sce.default.getThemeVariables(e.themeVariables));const n="object"==typeof e?(e=>(fde=Hue({},dde),fde=Hue(fde,e),e.theme&&sce[e.theme]&&(fde.themeVariables=sce[e.theme].getThemeVariables(e.themeVariables)),mde(fde,pde),fde))(e):vde();Ule(n.logLevel),awe()},getConfig:bde,setConfig:Ade,getSiteConfig:vde,updateSiteConfig:e=>(fde=Hue(fde,e),mde(fde,pde),fde),reset:()=>{_de()},globalReset:()=>{_de(dde)},defaultConfig:dde});Ule(bde().logLevel),_de(bde());const Owe=(e,t,n)=>{Hle.warn(e),sde(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},Mwe=async function(e,t,n){const r=kwe.getConfig();let i;if(e&&(Lwe.sequenceConfig=e),Hle.debug((n?"":"No ")+"Callback function found"),void 0===t)i=document.querySelectorAll(".mermaid");else if("string"==typeof t)i=document.querySelectorAll(t);else if(t instanceof HTMLElement)i=[t];else{if(!(t instanceof NodeList))throw new Error("Invalid argument nodes for mermaid.init");i=t}Hle.debug(`Found ${i.length} diagrams`),void 0!==(null==e?void 0:e.startOnLoad)&&(Hle.debug("Start On Load: "+(null==e?void 0:e.startOnLoad)),kwe.updateSiteConfig({startOnLoad:null==e?void 0:e.startOnLoad}));const o=new cde.initIdGenerator(r.deterministicIds,r.deterministicIDSeed);let a;const s=[];for(const l of Array.from(i)){if(Hle.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const t=`mermaid-${o.next()}`;a=l.innerHTML,a=$0(cde.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");const r=cde.detectInit(a);r&&Hle.debug("Detected early reinit: ",r);try{await kwe.renderAsync(t,a,(e,r)=>{l.innerHTML=e,void 0!==n&&n(t),r&&r(l)},l)}catch(e){Owe(e,s,Lwe.parseError)}}if(s.length>0)throw s[0]},Iwe=function(){if(Lwe.startOnLoad){const{startOnLoad:e}=kwe.getConfig();e&&Lwe.init().catch(e=>Hle.error("Mermaid failed to initialize",e))}};"undefined"!=typeof document&&window.addEventListener("load",Iwe,!1);const Dwe=[];let Nwe=!1;const Rwe=async()=>{if(!Nwe){for(Nwe=!0;Dwe.length>0;){const e=Dwe.shift();if(e)try{await e()}catch(r){Hle.error("Error executing queue",r)}}Nwe=!1}},Lwe={startOnLoad:!0,diagrams:{},mermaidAPI:kwe,parse:e=>kwe.parse(e,Lwe.parseError),parseAsync:e=>new Promise((t,n)=>{Dwe.push(()=>new Promise((r,i)=>{kwe.parseAsync(e,Lwe.parseError).then(e=>{r(e),t(e)},e=>{Hle.error("Error parsing",e),i(e),n(e)})})),Rwe().catch(n)}),render:kwe.render,renderAsync:(e,t,n,r)=>new Promise((i,o)=>{Dwe.push(()=>new Promise((a,s)=>{kwe.renderAsync(e,t,n,r).then(e=>{a(e),i(e)},e=>{Hle.error("Error parsing",e),s(e),o(e)})})),Rwe().catch(o)}),init:async function(e,t,n){try{await Mwe(e,t,n)}catch(e){Hle.warn("Syntax Error rendering"),sde(e)&&Hle.warn(e.str),Lwe.parseError&&Lwe.parseError(e)}},initThrowsErrors:function(e,t,n){const r=kwe.getConfig();let i;if(e&&(Lwe.sequenceConfig=e),Hle.debug((n?"":"No ")+"Callback function found"),void 0===t)i=document.querySelectorAll(".mermaid");else if("string"==typeof t)i=document.querySelectorAll(t);else if(t instanceof HTMLElement)i=[t];else{if(!(t instanceof NodeList))throw new Error("Invalid argument nodes for mermaid.init");i=t}Hle.debug(`Found ${i.length} diagrams`),void 0!==(null==e?void 0:e.startOnLoad)&&(Hle.debug("Start On Load: "+(null==e?void 0:e.startOnLoad)),kwe.updateSiteConfig({startOnLoad:null==e?void 0:e.startOnLoad}));const o=new cde.initIdGenerator(r.deterministicIds,r.deterministicIDSeed);let a;const s=[];for(const l of Array.from(i)){if(Hle.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const t=`mermaid-${o.next()}`;a=l.innerHTML,a=$0(cde.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");const r=cde.detectInit(a);r&&Hle.debug("Detected early reinit: ",r);try{kwe.render(t,a,(e,r)=>{l.innerHTML=e,void 0!==n&&n(t),r&&r(l)},l)}catch(e){Owe(e,s,Lwe.parseError)}}if(s.length>0)throw s[0]},initThrowsErrorsAsync:Mwe,registerExternalDiagrams:async(e,{lazyLoad:t=!0}={})=>{t?Fue(...e):await(async(...e)=>{Hle.debug(`Loading ${e.length} external diagrams`);const t=await Promise.allSettled(e.map(async({id:e,detector:t,loader:n})=>{const{diagram:r}=await n();dhe(e,r,t)})),n=t.filter(e=>"rejected"===e.status);if(n.length>0){Hle.error(`Failed to load ${n.length} external diagrams`);for(const e of n)Hle.error(e);throw new Error(`Failed to load ${n.length} external diagrams`)}})(...e)},initialize:function(e){kwe.initialize(e)},parseError:void 0,contentLoaded:Iwe,setParseErrorHandler:function(e){Lwe.parseError=e}};var Bwe=null==Lwe?void 0:Lwe.mermaidAPI;MZ.usePlugin(LZ,{mermaid:Lwe,mermaidAPI:Bwe,theme:"default",sequence:{useMaxWidth:!1}}),MZ.usePlugin(YZ,{}),MZ.usePlugin(y0);var Pwe,Fwe={exports:{}},$we=(Pwe||(Pwe=1,Fwe.exports=function(){function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(!s&&sD)return sD(a);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){return i(t[a][1][e]||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var o=sD,a=0;a<r.length;a++)i(r[a]);return i}return e}()({1:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.defaultLayoutOptions,o=void 0===r?{}:r,s=n.algorithms,l=void 0===s?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:s,c=n.workerFactory,u=n.workerUrl;if(i(this,e),this.defaultLayoutOptions=o,this.initialized=!1,void 0===u&&void 0===c)throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var d=c;void 0!==u&&void 0===c&&(d=function(e){return new Worker(e)});var h=d(u);if("function"!=typeof h.postMessage)throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new a(h),this.worker.postMessage({cmd:"register",algorithms:l}).then(function(e){return t.initialized=!0}).catch(console.err)}return r(e,[{key:"layout",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.layoutOptions,r=void 0===n?this.defaultLayoutOptions:n,i=t.logging,o=void 0!==i&&i,a=t.measureExecutionTime,s=void 0!==a&&a;return e?this.worker.postMessage({cmd:"layout",graph:e,layoutOptions:r,options:{logging:o,measureExecutionTime:s}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),e}();n.default=o;var a=function(){function e(t){var n=this;if(i(this,e),void 0===t)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=t,this.worker.onmessage=function(e){setTimeout(function(){n.receive(n,e)},0)}}return r(e,[{key:"postMessage",value:function(e){var t=this.id||0;this.id=t+1,e.id=t;var n=this;return new Promise(function(r,i){n.resolvers[t]=function(e,t){e?(n.convertGwtStyleError(e),i(e)):r(t)},n.worker.postMessage(e)})}},{key:"receive",value:function(e,t){var n=t.data,r=e.resolvers[n.id];r&&(delete e.resolvers[n.id],n.error?r(n.error):r(null,n.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(e){if(e){var t=e.__java$exception;t&&(t.cause&&t.cause.backingJsObject&&(e.cause=t.cause.backingJsObject,this.convertGwtStyleError(e.cause)),delete e.__java$exception)}}}]),e}()},{}],2:[function(e,t,n){(function(e){(function(){var r;function i(){}function o(){}function a(){}function s(){}function l(){}function c(){}function u(){}function d(){}function h(){}function f(){}function p(){}function g(){}function m(){}function v(){}function A(){}function b(){}function y(){}function w(){}function _(){}function x(){}function E(){}function S(){}function C(){}function T(){}function k(){}function O(){}function M(){}function I(){}function D(){}function N(){}function R(){}function L(){}function B(){}function P(){}function F(){}function $(){}function j(){}function H(){}function U(){}function Q(){}function z(){}function W(){}function G(){}function V(){}function K(){}function Y(){}function q(){}function X(){}function J(){}function Z(){}function ee(){}function te(){}function ne(){}function re(){}function ie(){}function oe(){}function ae(){}function se(){}function le(){}function ce(){}function ue(){}function de(){}function he(){}function fe(){}function pe(){}function ge(){}function me(){}function ve(){}function Ae(){}function be(){}function ye(){}function we(){}function _e(){}function xe(){}function Ee(){}function Se(){}function Ce(){}function Te(){}function ke(){}function Oe(){}function Me(){}function Ie(){}function De(){}function Ne(){}function Re(){}function Le(){}function Be(){}function Pe(){}function Fe(){}function $e(){}function je(){}function He(){}function Ue(){}function Qe(){}function ze(){}function We(){}function Ge(){}function Ve(){}function Ke(){}function Ye(){}function qe(){}function Xe(){}function Je(){}function Ze(){}function et(){}function tt(){}function nt(){}function rt(){}function it(){}function ot(){}function at(){}function st(){}function lt(){}function ct(){}function ut(){}function dt(){}function ht(){}function ft(){}function pt(){}function gt(){}function mt(){}function vt(){}function At(){}function bt(){}function yt(){}function wt(){}function _t(){}function xt(){}function Et(){}function St(){}function Ct(){}function Tt(){}function kt(){}function Ot(){}function Mt(){}function It(){}function Dt(){}function Nt(){}function Rt(){}function Lt(){}function Bt(){}function Pt(){}function Ft(){}function $t(){}function jt(){}function Ht(){}function Ut(){}function Qt(){}function zt(){}function Wt(){}function Gt(){}function Vt(){}function Kt(){}function Yt(){}function qt(){}function Xt(){}function Jt(){}function Zt(){}function en(){}function tn(){}function nn(){}function rn(){}function on(){}function an(){}function sn(){}function ln(){}function cn(){}function un(){}function dn(){}function hn(){}function fn(){}function pn(){}function gn(){}function mn(){}function vn(){}function An(){}function bn(){}function yn(){}function wn(){}function _n(){}function xn(){}function En(){}function Sn(){}function Cn(){}function Tn(){}function kn(){}function On(){}function Mn(){}function In(){}function Dn(){}function Nn(){}function Rn(){}function Ln(){}function Bn(){}function Pn(){}function Fn(){}function $n(){}function jn(){}function Hn(){}function Un(){}function Qn(){}function zn(){}function Wn(){}function Gn(){}function Vn(){}function Kn(){}function Yn(){}function qn(){}function Xn(){}function Jn(){}function Zn(){}function er(){}function tr(){}function nr(){}function rr(){}function ir(){}function or(){}function ar(){}function sr(){}function lr(){}function cr(){}function ur(){}function dr(){}function hr(){}function fr(){}function pr(){}function gr(){}function mr(){}function vr(){}function Ar(){}function br(){}function yr(){}function wr(){}function _r(){}function xr(){}function Er(){}function Sr(){}function Cr(){}function Tr(){}function kr(){}function Or(){}function Mr(){}function Ir(){}function Dr(){}function Nr(){}function Rr(){}function Lr(){}function Br(){}function Pr(){}function Fr(){}function $r(){}function jr(){}function Hr(){}function Ur(){}function Qr(){}function zr(){}function Wr(){}function Gr(){}function Vr(){}function Kr(){}function Yr(){}function qr(){}function Xr(){}function Jr(){}function Zr(){}function ei(){}function ti(){}function ni(){}function ri(){}function ii(){}function oi(){}function ai(){}function si(){}function li(){}function ci(){}function ui(){}function di(){}function hi(){}function fi(){}function pi(){}function gi(){}function mi(){}function vi(){}function Ai(){}function bi(){}function yi(){}function wi(){}function _i(){}function xi(){}function Ei(){}function Si(){}function Ci(){}function Ti(){}function ki(){}function Oi(){}function Mi(){}function Ii(){}function Di(){}function Ni(){}function Ri(){}function Li(){}function Bi(){}function Pi(){}function Fi(){}function $i(){}function ji(){}function Hi(){}function Ui(){}function Qi(){}function zi(){}function Wi(){}function Gi(){}function Vi(){}function Ki(){}function Yi(){}function qi(){}function Xi(){}function Ji(){}function Zi(){}function eo(){}function to(){}function no(){}function ro(){}function io(){}function oo(){}function ao(){}function so(){}function lo(){}function co(){}function uo(){}function ho(){}function fo(){}function po(){}function go(){}function mo(){}function vo(){}function Ao(){}function bo(){}function yo(){}function wo(){}function _o(){}function xo(){}function Eo(){}function So(){}function Co(){}function To(){}function ko(){}function Oo(){}function Mo(){}function Io(){}function Do(){}function No(){}function Ro(){}function Lo(){}function Bo(){}function Po(){}function Fo(){}function $o(){}function jo(){}function Ho(){}function Uo(){}function Qo(){}function zo(){}function Wo(){}function Go(){}function Vo(){}function Ko(){}function Yo(){}function qo(){}function Xo(){}function Jo(){}function Zo(){}function ea(){}function ta(){}function na(){}function ra(){}function ia(){}function oa(){}function aa(){}function sa(){}function la(){}function ca(){}function ua(){}function da(){}function ha(){}function fa(){}function pa(){}function ga(){}function ma(){}function va(){}function Aa(){}function ba(){}function ya(){}function wa(){}function _a(){}function xa(){}function Ea(){}function Sa(){}function Ca(){}function Ta(){}function ka(){}function Oa(){}function Ma(){}function Ia(){}function Da(){}function Na(){}function Ra(){}function La(){}function Ba(){}function Pa(){}function Fa(){}function $a(){}function ja(){}function Ha(){}function Ua(){}function Qa(){}function za(){}function Wa(){}function Ga(){}function Va(){}function Ka(){}function Ya(){}function qa(){}function Xa(){}function Ja(){}function Za(){}function es(){}function ts(){}function ns(){}function rs(){}function is(){}function os(){}function as(){}function ss(){}function ls(){}function cs(){}function us(){}function ds(){}function hs(){}function fs(){}function ps(){}function gs(){}function ms(){}function vs(){}function As(){}function bs(){}function ys(){}function ws(){}function _s(){}function xs(){}function Es(){}function Ss(){}function Cs(){}function Ts(){}function ks(){}function Os(){}function Ms(){}function Is(){}function Ds(){}function Ns(){}function Rs(){}function Ls(){}function Bs(){}function Ps(){}function Fs(){}function $s(){}function js(){}function Hs(){}function Us(){}function Qs(){}function zs(){}function Ws(){}function Gs(){}function Vs(){}function Ks(){}function Ys(){}function qs(){}function Xs(){}function Js(){}function Zs(){}function el(){}function tl(){}function nl(){}function rl(){}function il(){}function ol(){}function al(){}function sl(){}function ll(){}function cl(){}function ul(){}function dl(){}function hl(){}function fl(){}function pl(){}function gl(){}function ml(){}function vl(){}function Al(){}function bl(){}function yl(){}function wl(){}function _l(){}function xl(){}function El(){}function Sl(){}function Cl(){}function Tl(){}function kl(){}function Ol(){}function Ml(){}function Il(){}function Dl(){}function Nl(){}function Rl(){}function Ll(){}function Bl(){}function Pl(){}function Fl(){}function $l(){}function jl(){}function Hl(){}function Ul(){}function Ql(){}function zl(){}function Wl(){}function Gl(){}function Vl(){}function Kl(){}function Yl(){}function ql(){}function Xl(){}function Jl(){}function Zl(){}function ec(){}function tc(){}function nc(){}function rc(){}function ic(){}function oc(){}function ac(){}function sc(){}function lc(){}function cc(){}function uc(){}function dc(){}function hc(){}function fc(){}function pc(){}function gc(){}function mc(){}function vc(){}function Ac(){}function bc(){}function yc(){}function wc(){}function _c(){}function xc(){}function Ec(){}function Sc(){}function Cc(){}function Tc(){}function kc(){}function Oc(){}function Mc(){}function Ic(){}function Dc(){}function Nc(){}function Rc(){}function Lc(){}function Bc(){}function Pc(){}function Fc(){}function $c(){}function jc(){}function Hc(){}function Uc(){}function Qc(){}function zc(){}function Wc(){}function Gc(){}function Vc(){}function Kc(){}function Yc(){}function qc(){}function Xc(){}function Jc(){}function Zc(){}function eu(){}function tu(){}function nu(){}function ru(){}function iu(){}function ou(){}function au(){}function su(){}function lu(){}function cu(){}function uu(){}function du(){}function hu(){}function fu(){}function pu(){}function gu(){}function mu(){}function vu(){}function Au(){}function bu(){}function yu(){}function wu(){}function _u(){}function xu(){}function Eu(){}function Su(){}function Cu(){}function Tu(){}function ku(){}function Ou(){}function Mu(){}function Iu(){}function Du(){}function Nu(){}function Ru(){}function Lu(){}function Bu(){}function Pu(){}function Fu(){}function $u(){ty()}function ju(){Uce()}function Hu(){wve()}function Uu(){Pwe()}function Qu(){yCe()}function zu(){cPe()}function Wu(){Bye()}function Gu(){nwe()}function Vu(){wS()}function Ku(){vS()}function Yu(){H$()}function qu(){_S()}function Xu(){Tie()}function Ju(){ES()}function Zu(){T6()}function ed(){Sre()}function td(){K8()}function nd(){PZ()}function rd(){Qce()}function id(){PSe()}function od(){Cre()}function ad(){z2()}function sd(){cKe()}function ld(){Uye()}function cd(){FZ()}function ud(){jVe()}function dd(){LZ()}function hd(){Tre()}function fd(){Yse()}function pd(){UZ()}function gd(){C7()}function md(){SS()}function vd(){BIe()}function Ad(){zye()}function bd(){Foe()}function yd(){xSe()}function wd(){dPe()}function _d(){$Ae()}function xd(){CIe()}function Ed(){Lae()}function Sd(){jZ()}function Cd(){s$e()}function Td(){MIe()}function kd(){GDe()}function Od(){N7()}function Md(){ESe()}function Id(){sKe()}function Dd(){Wce()}function Nd(){mge()}function Rd(){HHe()}function Ld(){o$()}function Bd(){hoe()}function Pd(){cje()}function Fd(e){bK(e)}function $d(e){this.a=e}function jd(e){this.a=e}function Hd(e){this.a=e}function Ud(e){this.a=e}function Qd(e){this.a=e}function zd(e){this.a=e}function Wd(e){this.a=e}function Gd(e){this.a=e}function Vd(e){this.a=e}function Kd(e){this.a=e}function Yd(e){this.a=e}function qd(e){this.a=e}function Xd(e){this.a=e}function Jd(e){this.a=e}function Zd(e){this.a=e}function eh(e){this.a=e}function th(e){this.a=e}function nh(e){this.a=e}function rh(e){this.a=e}function ih(e){this.a=e}function oh(e){this.a=e}function ah(e){this.b=e}function sh(e){this.c=e}function lh(e){this.a=e}function ch(e){this.a=e}function uh(e){this.a=e}function dh(e){this.a=e}function hh(e){this.a=e}function fh(e){this.a=e}function ph(e){this.a=e}function gh(e){this.a=e}function mh(e){this.a=e}function vh(e){this.a=e}function Ah(e){this.a=e}function bh(e){this.a=e}function yh(e){this.a=e}function wh(e){this.a=e}function _h(e){this.a=e}function xh(e){this.a=e}function Eh(e){this.a=e}function Sh(){this.a=[]}function Ch(e,t){e.a=t}function Th(e,t){e.a=t}function kh(e,t){e.b=t}function Oh(e,t){e.b=t}function Mh(e,t){e.b=t}function Ih(e,t){e.j=t}function Dh(e,t){e.g=t}function Nh(e,t){e.i=t}function Rh(e,t){e.c=t}function Lh(e,t){e.d=t}function Bh(e,t){e.d=t}function Ph(e,t){e.c=t}function Fh(e,t){e.k=t}function $h(e,t){e.c=t}function jh(e,t){e.c=t}function Hh(e,t){e.a=t}function Uh(e,t){e.a=t}function Qh(e,t){e.f=t}function zh(e,t){e.a=t}function Wh(e,t){e.b=t}function Gh(e,t){e.d=t}function Vh(e,t){e.i=t}function Kh(e,t){e.o=t}function Yh(e,t){e.r=t}function qh(e,t){e.a=t}function Xh(e,t){e.b=t}function Jh(e,t){e.e=t}function Zh(e,t){e.f=t}function ef(e,t){e.g=t}function tf(e,t){e.e=t}function nf(e,t){e.f=t}function rf(e,t){e.f=t}function of(e,t){e.n=t}function af(e,t){e.a=t}function sf(e,t){e.a=t}function lf(e,t){e.c=t}function cf(e,t){e.c=t}function uf(e,t){e.d=t}function df(e,t){e.e=t}function hf(e,t){e.g=t}function ff(e,t){e.a=t}function pf(e,t){e.c=t}function gf(e,t){e.d=t}function mf(e,t){e.e=t}function vf(e,t){e.f=t}function Af(e,t){e.j=t}function bf(e,t){e.a=t}function yf(e,t){e.b=t}function wf(e,t){e.a=t}function _f(e){e.b=e.a}function xf(e){e.c=e.d.d}function Ef(e){this.d=e}function Sf(e){this.a=e}function Cf(e){this.a=e}function Tf(e){this.a=e}function kf(e){this.a=e}function Of(e){this.a=e}function Mf(e){this.a=e}function If(e){this.a=e}function Df(e){this.a=e}function Nf(e){this.a=e}function Rf(e){this.a=e}function Lf(e){this.a=e}function Bf(e){this.a=e}function Pf(e){this.a=e}function Ff(e){this.a=e}function $f(e){this.b=e}function jf(e){this.b=e}function Hf(e){this.b=e}function Uf(e){this.a=e}function Qf(e){this.a=e}function zf(e){this.a=e}function Wf(e){this.c=e}function Gf(e){this.c=e}function Vf(e){this.c=e}function Kf(e){this.a=e}function Yf(e){this.a=e}function qf(e){this.a=e}function Xf(e){this.a=e}function Jf(e){this.a=e}function Zf(e){this.a=e}function ep(e){this.a=e}function tp(e){this.a=e}function np(e){this.a=e}function rp(e){this.a=e}function ip(e){this.a=e}function op(e){this.a=e}function ap(e){this.a=e}function sp(e){this.a=e}function lp(e){this.a=e}function cp(e){this.a=e}function up(e){this.a=e}function dp(e){this.a=e}function hp(e){this.a=e}function fp(e){this.a=e}function pp(e){this.a=e}function gp(e){this.a=e}function mp(e){this.a=e}function vp(e){this.a=e}function Ap(e){this.a=e}function bp(e){this.a=e}function yp(e){this.a=e}function wp(e){this.a=e}function _p(e){this.a=e}function xp(e){this.a=e}function Ep(e){this.a=e}function Sp(e){this.a=e}function Cp(e){this.a=e}function Tp(e){this.a=e}function kp(e){this.a=e}function Op(e){this.a=e}function Mp(e){this.a=e}function Ip(e){this.a=e}function Dp(e){this.a=e}function Np(e){this.a=e}function Rp(e){this.a=e}function Lp(e){this.a=e}function Bp(e){this.a=e}function Pp(e){this.a=e}function Fp(e){this.a=e}function $p(e){this.e=e}function jp(e){this.a=e}function Hp(e){this.a=e}function Up(e){this.a=e}function Qp(e){this.a=e}function zp(e){this.a=e}function Wp(e){this.a=e}function Gp(e){this.a=e}function Vp(e){this.a=e}function Kp(e){this.a=e}function Yp(e){this.a=e}function qp(e){this.a=e}function Xp(e){this.a=e}function Jp(e){this.a=e}function Zp(e){this.a=e}function eg(e){this.a=e}function tg(e){this.a=e}function ng(e){this.a=e}function rg(e){this.a=e}function ig(e){this.a=e}function og(e){this.a=e}function ag(e){this.a=e}function sg(e){this.a=e}function lg(e){this.a=e}function cg(e){this.a=e}function ug(e){this.a=e}function dg(e){this.a=e}function hg(e){this.a=e}function fg(e){this.a=e}function pg(e){this.a=e}function gg(e){this.a=e}function mg(e){this.a=e}function vg(e){this.a=e}function Ag(e){this.a=e}function bg(e){this.a=e}function yg(e){this.a=e}function wg(e){this.a=e}function _g(e){this.a=e}function xg(e){this.a=e}function Eg(e){this.a=e}function Sg(e){this.a=e}function Cg(e){this.a=e}function Tg(e){this.a=e}function kg(e){this.a=e}function Og(e){this.a=e}function Mg(e){this.a=e}function Ig(e){this.a=e}function Dg(e){this.a=e}function Ng(e){this.a=e}function Rg(e){this.a=e}function Lg(e){this.a=e}function Bg(e){this.a=e}function Pg(e){this.a=e}function Fg(e){this.a=e}function $g(e){this.c=e}function jg(e){this.b=e}function Hg(e){this.a=e}function Ug(e){this.a=e}function Qg(e){this.a=e}function zg(e){this.a=e}function Wg(e){this.a=e}function Gg(e){this.a=e}function Vg(e){this.a=e}function Kg(e){this.a=e}function Yg(e){this.a=e}function qg(e){this.a=e}function Xg(e){this.a=e}function Jg(e){this.a=e}function Zg(e){this.a=e}function em(e){this.a=e}function tm(e){this.a=e}function nm(e){this.a=e}function rm(e){this.a=e}function im(e){this.a=e}function om(e){this.a=e}function am(e){this.a=e}function sm(e){this.a=e}function lm(e){this.a=e}function cm(e){this.a=e}function um(e){this.a=e}function dm(e){this.a=e}function hm(e){this.a=e}function fm(e){this.a=e}function pm(e){this.a=e}function gm(e){this.a=e}function mm(e){this.a=e}function vm(e){this.a=e}function Am(e){this.a=e}function bm(e){this.a=e}function ym(e){this.a=e}function wm(e){this.a=e}function _m(e){this.a=e}function xm(e){this.a=e}function Em(e){this.a=e}function Sm(e){this.a=e}function Cm(e){this.a=e}function Tm(e){this.a=e}function km(e){this.a=e}function Om(e){this.a=e}function Mm(e){this.a=e}function Im(e){this.a=e}function Dm(e){this.a=e}function Nm(e){this.a=e}function Rm(e){this.a=e}function Lm(e){this.a=e}function Bm(e){this.a=e}function Pm(e){this.a=e}function Fm(e){this.a=e}function $m(e){this.a=e}function jm(e){this.a=e}function Hm(e){this.a=e}function Um(e){this.a=e}function Qm(e){this.a=e}function zm(e){this.a=e}function Wm(e){this.a=e}function Gm(e){this.a=e}function Vm(e){this.a=e}function Km(e){this.a=e}function Ym(e){this.a=e}function qm(e){this.a=e}function Xm(e){this.a=e}function Jm(e){this.a=e}function Zm(e){this.a=e}function ev(e){this.a=e}function tv(e){this.a=e}function nv(e){this.a=e}function rv(e){this.a=e}function iv(e){this.a=e}function ov(e){this.b=e}function av(e){this.f=e}function sv(e){this.a=e}function lv(e){this.a=e}function cv(e){this.a=e}function uv(e){this.a=e}function dv(e){this.a=e}function hv(e){this.a=e}function fv(e){this.a=e}function pv(e){this.a=e}function gv(e){this.a=e}function mv(e){this.a=e}function vv(e){this.a=e}function Av(e){this.b=e}function bv(e){this.c=e}function yv(e){this.e=e}function wv(e){this.a=e}function _v(e){this.a=e}function xv(e){this.a=e}function Ev(e){this.a=e}function Sv(e){this.a=e}function Cv(e){this.d=e}function Tv(e){this.a=e}function kv(e){this.a=e}function Ov(e){this.e=e}function Mv(){this.a=0}function Iv(){RI(this)}function Dv(){NI(this)}function Nv(){MG(this)}function Rv(){hY(this)}function Lv(){}function Bv(){this.c=MDt}function Pv(e,t){t.Wb(e)}function Fv(e,t){e.b+=t}function $v(e){e.b=new aw}function jv(e){return e.e}function Hv(e){return e.a}function Uv(e){return e.a}function Qv(e){return e.a}function zv(e){return e.a}function Wv(e){return e.a}function Gv(){return null}function Vv(){return null}function Kv(){ix(),fVe()}function Yv(e){e.b.tf(e.e)}function qv(e,t){e.b=t-e.b}function Xv(e,t){e.a=t-e.a}function Jv(e,t){t.ad(e.a)}function Zv(e,t){Hke(t,e)}function eA(e,t,n){e.Od(n,t)}function tA(e,t){e.e=t,t.b=e}function nA(e){s$(),this.a=e}function rA(e){s$(),this.a=e}function iA(e){s$(),this.a=e}function oA(e){GV(),this.a=e}function aA(e){SX(),ttt.be(e)}function sA(){pR.call(this)}function lA(){pR.call(this)}function cA(){sA.call(this)}function uA(){sA.call(this)}function dA(){sA.call(this)}function hA(){sA.call(this)}function fA(){sA.call(this)}function pA(){sA.call(this)}function gA(){sA.call(this)}function mA(){sA.call(this)}function vA(){sA.call(this)}function AA(){sA.call(this)}function bA(){sA.call(this)}function yA(){this.a=this}function wA(){this.Bb|=256}function _A(){this.b=new SM}function xA(){xA=M,new Nv}function EA(){cA.call(this)}function SA(e,t){e.length=t}function CA(e,t){GH(e.a,t)}function TA(e,t){zCe(e.c,t)}function kA(e,t){_G(e.b,t)}function OA(e,t){TAe(e.a,t)}function MA(e,t){khe(e.a,t)}function IA(e,t){dae(e.e,t)}function DA(e){OMe(e.c,e.b)}function NA(e,t){e.kc().Nb(t)}function RA(e){this.a=pfe(e)}function LA(){this.a=new Nv}function BA(){this.a=new Nv}function PA(){this.a=new Dv}function FA(){this.a=new Dv}function $A(){this.a=new Dv}function jA(){this.a=new ye}function HA(){this.a=new b6}function UA(){this.a=new ht}function QA(){this.a=new GE}function zA(){this.a=new R1}function WA(){this.a=new rZ}function GA(){this.a=new OP}function VA(){this.a=new Dv}function KA(){this.a=new Dv}function YA(){this.a=new Dv}function qA(){this.a=new Dv}function XA(){this.d=new Dv}function JA(){this.a=new LA}function ZA(){this.a=new Nv}function eb(){this.b=new Nv}function tb(){this.b=new Dv}function nb(){this.e=new Dv}function rb(){this.d=new Dv}function ib(){this.a=new id}function ob(){Dv.call(this)}function ab(){PA.call(this)}function sb(){DP.call(this)}function lb(){KA.call(this)}function cb(){ub.call(this)}function ub(){Lv.call(this)}function db(){Lv.call(this)}function hb(){db.call(this)}function fb(){fX.call(this)}function pb(){fX.call(this)}function gb(){Gb.call(this)}function mb(){Gb.call(this)}function vb(){Gb.call(this)}function Ab(){Vb.call(this)}function bb(){YE.call(this)}function yb(){rl.call(this)}function wb(){rl.call(this)}function _b(){Jb.call(this)}function xb(){Jb.call(this)}function Eb(){Nv.call(this)}function Sb(){Nv.call(this)}function Cb(){Nv.call(this)}function Tb(){LA.call(this)}function kb(){yre.call(this)}function Ob(){wA.call(this)}function Mb(){kN.call(this)}function Ib(){kN.call(this)}function Db(){Nv.call(this)}function Nb(){Nv.call(this)}function Rb(){Nv.call(this)}function Lb(){yl.call(this)}function Bb(){yl.call(this)}function Pb(){Lb.call(this)}function Fb(){Bu.call(this)}function $b(e){fte.call(this,e)}function jb(e){fte.call(this,e)}function Hb(e){Vd.call(this,e)}function Ub(e){xE.call(this,e)}function Qb(e){Ub.call(this,e)}function zb(e){xE.call(this,e)}function Wb(){this.a=new YE}function Gb(){this.a=new LA}function Vb(){this.a=new Nv}function Kb(){this.a=new Dv}function Yb(){this.j=new Dv}function qb(){this.a=new Ka}function Xb(){this.a=new Ix}function Jb(){this.a=new bl}function Zb(){Zb=M,Fet=new Nw}function ey(){ey=M,Pet=new Dw}function ty(){ty=M,Oet=new o}function ny(){ny=M,zet=new rR}function ry(e){Ub.call(this,e)}function iy(e){Ub.call(this,e)}function oy(e){f4.call(this,e)}function ay(e){f4.call(this,e)}function sy(e){VF.call(this,e)}function ly(e){ACe.call(this,e)}function cy(e){CE.call(this,e)}function uy(e){kE.call(this,e)}function dy(e){kE.call(this,e)}function hy(e){kE.call(this,e)}function fy(e){cW.call(this,e)}function py(e){fy.call(this,e)}function gy(){Eh.call(this,{})}function my(e){CN(),this.a=e}function vy(e){e.b=null,e.c=0}function Ay(e,t){e.e=t,CLe(e,t)}function by(e,t){e.a=t,ike(e)}function yy(e,t,n){e.a[t.g]=n}function wy(e,t,n){h_e(n,e,t)}function _y(e,t){XP(t.i,e.n)}function xy(e,t){sce(e).td(t)}function Ey(e,t){return e*e/t}function Sy(e,t){return e.g-t.g}function Cy(e){return new xh(e)}function Ty(e){return new UV(e)}function ky(e){fy.call(this,e)}function Oy(e){fy.call(this,e)}function My(e){fy.call(this,e)}function Iy(e){cW.call(this,e)}function Dy(e){Poe(),this.a=e}function Ny(e){i$(),this.a=e}function Ry(e){Fz(),this.f=e}function Ly(e){Fz(),this.f=e}function By(e){fy.call(this,e)}function Py(e){fy.call(this,e)}function Fy(e){fy.call(this,e)}function $y(e){fy.call(this,e)}function jy(e){fy.call(this,e)}function Hy(e){return bK(e),e}function Uy(e){return bK(e),e}function Qy(e){return bK(e),e}function zy(e){return bK(e),e}function Wy(e){return bK(e),e}function Gy(e){return e.b==e.c}function Vy(e){return!!e&&e.b}function Ky(e){return!!e&&e.k}function Yy(e){return!!e&&e.j}function qy(e){bK(e),this.a=e}function Xy(e){return Xle(e),e}function Jy(e){mG(e,e.length)}function Zy(e){fy.call(this,e)}function ew(e){fy.call(this,e)}function tw(e){fy.call(this,e)}function nw(e){fy.call(this,e)}function rw(e){fy.call(this,e)}function iw(e){fy.call(this,e)}function ow(e){XR.call(this,e,0)}function aw(){a0.call(this,12,3)}function sw(){sw=M,ett=new _}function lw(){lw=M,qet=new i}function cw(){cw=M,rtt=new m}function uw(){uw=M,ctt=new A}function dw(){throw jv(new gA)}function hw(){throw jv(new gA)}function fw(){throw jv(new gA)}function pw(){throw jv(new gA)}function gw(){throw jv(new gA)}function mw(){throw jv(new gA)}function vw(){this.a=EB(AV(FKe))}function Aw(e){s$(),this.a=AV(e)}function bw(e,t){e.Td(t),t.Sd(e)}function yw(e,t){e.a.ec().Mc(t)}function ww(e,t,n){e.c.lf(t,n)}function _w(e){Oy.call(this,e)}function xw(e){Py.call(this,e)}function Ew(){Of.call(this,"")}function Sw(){Of.call(this,"")}function Cw(){Of.call(this,"")}function Tw(){Of.call(this,"")}function kw(e){Oy.call(this,e)}function Ow(e){jf.call(this,e)}function Mw(e){dR.call(this,e)}function Iw(e){Ow.call(this,e)}function Dw(){Jd.call(this,null)}function Nw(){Jd.call(this,null)}function Rw(){Rw=M,SX()}function Lw(){Lw=M,bnt=vxe()}function Bw(e){return e.a?e.b:0}function Pw(e){return e.a?e.b:0}function Fw(e,t){return e.a-t.a}function $w(e,t){return e.a-t.a}function jw(e,t){return e.a-t.a}function Hw(e,t){return v9(e,t)}function Uw(e,t){return pZ(e,t)}function Qw(e,t){return t in e.a}function zw(e,t){return e.f=t,e}function Ww(e,t){return e.b=t,e}function Gw(e,t){return e.c=t,e}function Vw(e,t){return e.g=t,e}function Kw(e,t){return e.a=t,e}function Yw(e,t){return e.f=t,e}function qw(e,t){return e.k=t,e}function Xw(e,t){return e.a=t,e}function Jw(e,t){return e.e=t,e}function Zw(e,t){return e.e=t,e}function e_(e,t){return e.f=t,e}function t_(e,t){e.b=!0,e.d=t}function n_(e,t){e.b=new hI(t)}function r_(e,t,n){t.td(e.a[n])}function i_(e,t,n){t.we(e.a[n])}function o_(e,t){return e.b-t.b}function a_(e,t){return e.g-t.g}function s_(e,t){return e.s-t.s}function l_(e,t){return e?0:t-1}function c_(e,t){return e?0:t-1}function u_(e,t){return e?t-1:0}function d_(e,t){return t.Yf(e)}function h_(e,t){return e.b=t,e}function f_(e,t){return e.a=t,e}function p_(e,t){return e.c=t,e}function g_(e,t){return e.d=t,e}function m_(e,t){return e.e=t,e}function v_(e,t){return e.f=t,e}function A_(e,t){return e.a=t,e}function b_(e,t){return e.b=t,e}function y_(e,t){return e.c=t,e}function w_(e,t){return e.c=t,e}function __(e,t){return e.b=t,e}function x_(e,t){return e.d=t,e}function E_(e,t){return e.e=t,e}function S_(e,t){return e.f=t,e}function C_(e,t){return e.g=t,e}function T_(e,t){return e.a=t,e}function k_(e,t){return e.i=t,e}function O_(e,t){return e.j=t,e}function M_(e,t){return e.k=t,e}function I_(e,t){return e.j=t,e}function D_(e,t){PSe(),CZ(t,e)}function N_(e,t,n){Uz(e.a,t,n)}function R_(e){$Y.call(this,e)}function L_(e){$Y.call(this,e)}function B_(e){JF.call(this,e)}function P_(e){Hfe.call(this,e)}function F_(e){pte.call(this,e)}function $_(e){gq.call(this,e)}function j_(e){gq.call(this,e)}function H_(){kD.call(this,"")}function U_(){this.a=0,this.b=0}function Q_(){this.b=0,this.a=0}function z_(e,t){e.b=0,Dne(e,t)}function W_(e,t){e.c=t,e.b=!0}function G_(e,t){return e.c._b(t)}function V_(e){return e.e&&e.e()}function K_(e){return e?e.d:null}function Y_(e,t){return pde(e.b,t)}function q_(e){return e?e.g:null}function X_(e){return e?e.i:null}function J_(e){return wB(e),e.o}function Z_(){Z_=M,fMt=Wwe()}function ex(){ex=M,pMt=aEe()}function tx(){tx=M,XIt=Vwe()}function nx(){nx=M,hNt=Gwe()}function rx(){rx=M,fNt=tke()}function ix(){ix=M,cIt=rre()}function ox(){throw jv(new gA)}function ax(){throw jv(new gA)}function sx(){throw jv(new gA)}function lx(){throw jv(new gA)}function cx(){throw jv(new gA)}function ux(){throw jv(new gA)}function dx(e){this.a=new WE(e)}function hx(e){uGe(),RVe(this,e)}function fx(e){this.a=new GW(e)}function px(e,t){for(;e.ye(t););}function gx(e,t){for(;e.sd(t););}function mx(e,t){return e.a+=t,e}function vx(e,t){return e.a+=t,e}function Ax(e,t){return e.a+=t,e}function bx(e,t){return e.a+=t,e}function yx(e){return wK(e),e.a}function wx(e){return e.b!=e.d.c}function _x(e){return e.l|e.m<<22}function xx(e,t){return e.d[t.p]}function Ex(e,t){return ELe(e,t)}function Sx(e,t,n){e.splice(t,n)}function Cx(e){e.c?DBe(e):NBe(e)}function Tx(e){this.a=0,this.b=e}function kx(){this.a=new CRe(t_t)}function Ox(){this.b=new CRe(Hyt)}function Mx(){this.b=new CRe(Gxt)}function Ix(){this.b=new CRe(Gxt)}function Dx(){throw jv(new gA)}function Nx(){throw jv(new gA)}function Rx(){throw jv(new gA)}function Lx(){throw jv(new gA)}function Bx(){throw jv(new gA)}function Px(){throw jv(new gA)}function Fx(){throw jv(new gA)}function $x(){throw jv(new gA)}function jx(){throw jv(new gA)}function Hx(){throw jv(new gA)}function Ux(){throw jv(new AA)}function Qx(){throw jv(new AA)}function zx(e){this.a=new Wx(e)}function Wx(e){Ure(this,e,kxe())}function Gx(e){return!e||gK(e)}function Vx(e){return-1!=WNt[e]}function Kx(){0!=itt&&(itt=0),att=-1}function Yx(){null==SKe&&(SKe=[])}function qx(e,t){ZMe(Kq(e.a),t)}function Xx(e,t){ZMe(Kq(e.a),t)}function Jx(e,t){jN.call(this,e,t)}function Zx(e,t){Jx.call(this,e,t)}function eE(e,t){this.b=e,this.c=t}function tE(e,t){this.b=e,this.a=t}function nE(e,t){this.a=e,this.b=t}function rE(e,t){this.a=e,this.b=t}function iE(e,t){this.a=e,this.b=t}function oE(e,t){this.a=e,this.b=t}function aE(e,t){this.a=e,this.b=t}function sE(e,t){this.a=e,this.b=t}function lE(e,t){this.a=e,this.b=t}function cE(e,t){this.a=e,this.b=t}function uE(e,t){this.b=e,this.a=t}function dE(e,t){this.b=e,this.a=t}function hE(e,t){this.b=e,this.a=t}function fE(e,t){this.b=e,this.a=t}function pE(e,t){this.f=e,this.g=t}function gE(e,t){this.e=e,this.d=t}function mE(e,t){this.g=e,this.i=t}function vE(e,t){this.a=e,this.b=t}function AE(e,t){this.a=e,this.f=t}function bE(e,t){this.b=e,this.c=t}function yE(e,t){this.a=e,this.b=t}function wE(e,t){this.a=e,this.b=t}function _E(e,t){this.a=e,this.b=t}function xE(e){iR(e.dc()),this.c=e}function EE(e){this.b=$H(AV(e),83)}function SE(e){this.a=$H(AV(e),83)}function CE(e){this.a=$H(AV(e),15)}function TE(e){this.a=$H(AV(e),15)}function kE(e){this.b=$H(AV(e),47)}function OE(){this.q=new r.Date}function ME(){ME=M,jtt=new I}function IE(){IE=M,dnt=new T}function DE(e){return e.f.c+e.g.c}function NE(e,t){return e.b.Hc(t)}function RE(e,t){return e.b.Ic(t)}function LE(e,t){return e.b.Qc(t)}function BE(e,t){return e.b.Hc(t)}function PE(e,t){return e.c.uc(t)}function FE(e,t){return e.a._b(t)}function $E(e,t){return Dde(e.c,t)}function jE(e,t){return lG(e.b,t)}function HE(e,t){return e>t&&t<kYe}function UE(e,t){return e.Gc(t),e}function QE(e,t){return Fie(e,t),e}function zE(e){return WV(),e?ltt:stt}function WE(e){Jse.call(this,e,0)}function GE(){GW.call(this,null)}function VE(){$8.call(this,null)}function KE(e){this.c=e,Oee(this)}function YE(){SD(this),Aq(this)}function qE(e,t){wK(e),e.a.Nb(t)}function XE(e,t){return e.Gc(t),e}function JE(e,t){return e.a.f=t,e}function ZE(e,t){return e.a.d=t,e}function eS(e,t){return e.a.g=t,e}function tS(e,t){return e.a.j=t,e}function nS(e,t){return e.a.a=t,e}function rS(e,t){return e.a.d=t,e}function iS(e,t){return e.a.e=t,e}function oS(e,t){return e.a.g=t,e}function aS(e,t){return e.a.f=t,e}function sS(e){return e.b=!1,e}function lS(){lS=M,Snt=new CM}function cS(){cS=M,Cnt=new TM}function uS(){uS=M,jnt=new G}function dS(){dS=M,mst=new Pt}function hS(){hS=M,not=new TL}function fS(){fS=M,Znt=new ce}function pS(){pS=M,bst=new Ft}function gS(){gS=M,srt=new pe}function mS(){mS=M,Uat=new bt}function vS(){vS=M,Fst=new U_}function AS(){AS=M,Qat=new Ct}function bS(){bS=M,Vat=new Rz}function yS(){yS=M,lst=new Et}function wS(){wS=M,$st=new fn}function _S(){_S=M,Jlt=new Xn}function xS(){xS=M,hct=new Ni}function ES(){ES=M,Kct=new io}function SS(){SS=M,Gwt=new $2}function CS(){CS=M,Wxt=new IS}function TS(){TS=M,Kxt=new mB}function kS(){kS=M,UEt=new WK}function OS(){OS=M,Gvt=new Ys}function MS(){Ere(),this.c=new aw}function IS(){pE.call(this,j0e,0)}function DS(e,t){qme(e.c.b,t.c,t)}function NS(e,t){qme(e.c.c,t.b,t)}function RS(e,t,n){vZ(e.d,t.f,n)}function LS(e,t,n,r){qve(e,r,t,n)}function BS(e,t,n,r){oRe(r,e,t,n)}function PS(e,t,n,r){aGe(r,e,t,n)}function FS(e,t){return e.a=t.g,e}function $S(e,t){return ewe(e.a,t)}function jS(e){return e.b?e.b:e.a}function HS(e){return(e.c+e.a)/2}function US(){US=M,uMt=new nl}function QS(){QS=M,CMt=new dl}function zS(){zS=M,RIt=new Sb}function WS(){WS=M,QIt=new Cb}function GS(){GS=M,UIt=new Db}function VS(){VS=M,qIt=new Rb}function KS(){KS=M,IDt=new QD}function YS(){YS=M,DDt=new zD}function qS(){qS=M,tNt=new Rc}function XS(){XS=M,rNt=new Lc}function JS(){JS=M,mIt=new Nv}function ZS(){ZS=M,GDt=new Dv}function eC(){eC=M,_Rt=new Fu}function tC(e){r.clearTimeout(e)}function nC(e){this.a=$H(AV(e),224)}function rC(e){return $H(e,42).cd()}function iC(e){return e.b<e.d.gc()}function oC(e,t){return Cz(e.a,t)}function aC(e,t){return Vue(e,t)>0}function sC(e,t){return Vue(e,t)<0}function lC(e,t){return e.a.get(t)}function cC(e,t){return t.split(e)}function uC(e,t){return lG(e.e,t)}function dC(e){return bK(e),!1}function hC(e){h0.call(this,e,21)}function fC(e,t){PJ.call(this,e,t)}function pC(e,t){pE.call(this,e,t)}function gC(e,t){pE.call(this,e,t)}function mC(e){VV(),VF.call(this,e)}function vC(e,t){yz(e,e.length,t)}function AC(e,t){KG(e,e.length,t)}function bC(e,t,n){t.ud(e.a.Ge(n))}function yC(e,t,n){t.we(e.a.Fe(n))}function wC(e,t,n){t.td(e.a.Kb(n))}function _C(e,t,n){e.Mb(n)&&t.td(n)}function xC(e,t,n){e.splice(t,0,n)}function EC(e,t){return ER(e.e,t)}function SC(e,t){this.d=e,this.e=t}function CC(e,t){this.b=e,this.a=t}function TC(e,t){this.b=e,this.a=t}function kC(e,t){this.b=e,this.a=t}function OC(e,t){this.a=e,this.b=t}function MC(e,t){this.a=e,this.b=t}function IC(e,t){this.a=e,this.b=t}function DC(e,t){this.a=e,this.b=t}function NC(e,t){this.a=e,this.b=t}function RC(e,t){this.b=e,this.a=t}function LC(e,t){this.b=e,this.a=t}function BC(e,t){pE.call(this,e,t)}function PC(e,t){pE.call(this,e,t)}function FC(e,t){pE.call(this,e,t)}function $C(e,t){pE.call(this,e,t)}function jC(e,t){pE.call(this,e,t)}function HC(e,t){pE.call(this,e,t)}function UC(e,t){pE.call(this,e,t)}function QC(e,t){pE.call(this,e,t)}function zC(e,t){pE.call(this,e,t)}function WC(e,t){pE.call(this,e,t)}function GC(e,t){pE.call(this,e,t)}function VC(e,t){pE.call(this,e,t)}function KC(e,t){pE.call(this,e,t)}function YC(e,t){pE.call(this,e,t)}function qC(e,t){pE.call(this,e,t)}function XC(e,t){pE.call(this,e,t)}function JC(e,t){pE.call(this,e,t)}function ZC(e,t){pE.call(this,e,t)}function eT(e,t){this.a=e,this.b=t}function tT(e,t){this.a=e,this.b=t}function nT(e,t){this.a=e,this.b=t}function rT(e,t){this.a=e,this.b=t}function iT(e,t){this.a=e,this.b=t}function oT(e,t){this.a=e,this.b=t}function aT(e,t){this.a=e,this.b=t}function sT(e,t){this.a=e,this.b=t}function lT(e,t){this.a=e,this.b=t}function cT(e,t){this.b=e,this.a=t}function uT(e,t){this.b=e,this.a=t}function dT(e,t){this.b=e,this.a=t}function hT(e,t){this.b=e,this.a=t}function fT(e,t){this.c=e,this.d=t}function pT(e,t){this.e=e,this.d=t}function gT(e,t){this.a=e,this.b=t}function mT(e,t){this.b=t,this.c=e}function vT(e,t){pE.call(this,e,t)}function AT(e,t){pE.call(this,e,t)}function bT(e,t){pE.call(this,e,t)}function yT(e,t){pE.call(this,e,t)}function wT(e,t){pE.call(this,e,t)}function _T(e,t){pE.call(this,e,t)}function xT(e,t){pE.call(this,e,t)}function ET(e,t){pE.call(this,e,t)}function ST(e,t){pE.call(this,e,t)}function CT(e,t){pE.call(this,e,t)}function TT(e,t){pE.call(this,e,t)}function kT(e,t){pE.call(this,e,t)}function OT(e,t){pE.call(this,e,t)}function MT(e,t){pE.call(this,e,t)}function IT(e,t){pE.call(this,e,t)}function DT(e,t){pE.call(this,e,t)}function NT(e,t){pE.call(this,e,t)}function RT(e,t){pE.call(this,e,t)}function LT(e,t){pE.call(this,e,t)}function BT(e,t){pE.call(this,e,t)}function PT(e,t){pE.call(this,e,t)}function FT(e,t){pE.call(this,e,t)}function $T(e,t){pE.call(this,e,t)}function jT(e,t){pE.call(this,e,t)}function HT(e,t){pE.call(this,e,t)}function UT(e,t){pE.call(this,e,t)}function QT(e,t){pE.call(this,e,t)}function zT(e,t){pE.call(this,e,t)}function WT(e,t){pE.call(this,e,t)}function GT(e,t){pE.call(this,e,t)}function VT(e,t){pE.call(this,e,t)}function KT(e,t){pE.call(this,e,t)}function YT(e,t){pE.call(this,e,t)}function qT(e,t){pE.call(this,e,t)}function XT(e,t){this.b=e,this.a=t}function JT(e,t){this.a=e,this.b=t}function ZT(e,t){this.a=e,this.b=t}function ek(e,t){this.a=e,this.b=t}function tk(e,t){this.a=e,this.b=t}function nk(e,t){pE.call(this,e,t)}function rk(e,t){pE.call(this,e,t)}function ik(e,t){this.b=e,this.d=t}function ok(e,t){pE.call(this,e,t)}function ak(e,t){pE.call(this,e,t)}function sk(e,t){this.a=e,this.b=t}function lk(e,t){this.a=e,this.b=t}function ck(e,t){pE.call(this,e,t)}function uk(e,t){pE.call(this,e,t)}function dk(e,t){pE.call(this,e,t)}function hk(e,t){pE.call(this,e,t)}function fk(e,t){pE.call(this,e,t)}function pk(e,t){pE.call(this,e,t)}function gk(e,t){pE.call(this,e,t)}function mk(e,t){pE.call(this,e,t)}function vk(e,t){pE.call(this,e,t)}function Ak(e,t){pE.call(this,e,t)}function bk(e,t){pE.call(this,e,t)}function yk(e,t){pE.call(this,e,t)}function wk(e,t){pE.call(this,e,t)}function _k(e,t){pE.call(this,e,t)}function xk(e,t){pE.call(this,e,t)}function Ek(e,t){pE.call(this,e,t)}function Sk(e,t){return ER(e.c,t)}function Ck(e,t){return ER(t.b,e)}function Tk(e,t){return-e.b.Je(t)}function kk(e,t){return ER(e.g,t)}function Ok(e,t){pE.call(this,e,t)}function Mk(e,t){pE.call(this,e,t)}function Ik(e,t){this.a=e,this.b=t}function Dk(e,t){this.a=e,this.b=t}function Nk(e,t){this.a=e,this.b=t}function Rk(e,t){pE.call(this,e,t)}function Lk(e,t){pE.call(this,e,t)}function Bk(e,t){pE.call(this,e,t)}function Pk(e,t){pE.call(this,e,t)}function Fk(e,t){pE.call(this,e,t)}function $k(e,t){pE.call(this,e,t)}function jk(e,t){pE.call(this,e,t)}function Hk(e,t){pE.call(this,e,t)}function Uk(e,t){pE.call(this,e,t)}function Qk(e,t){pE.call(this,e,t)}function zk(e,t){pE.call(this,e,t)}function Wk(e,t){pE.call(this,e,t)}function Gk(e,t){pE.call(this,e,t)}function Vk(e,t){pE.call(this,e,t)}function Kk(e,t){pE.call(this,e,t)}function Yk(e,t){pE.call(this,e,t)}function qk(e,t){this.a=e,this.b=t}function Xk(e,t){this.a=e,this.b=t}function Jk(e,t){this.a=e,this.b=t}function Zk(e,t){this.a=e,this.b=t}function eO(e,t){this.a=e,this.b=t}function tO(e,t){this.a=e,this.b=t}function nO(e,t){this.a=e,this.b=t}function rO(e,t){pE.call(this,e,t)}function iO(e,t){this.a=e,this.b=t}function oO(e,t){this.a=e,this.b=t}function aO(e,t){this.a=e,this.b=t}function sO(e,t){this.a=e,this.b=t}function lO(e,t){this.a=e,this.b=t}function cO(e,t){this.a=e,this.b=t}function uO(e,t){this.b=e,this.a=t}function dO(e,t){this.b=e,this.a=t}function hO(e,t){this.b=e,this.a=t}function fO(e,t){this.b=e,this.a=t}function pO(e,t){this.a=e,this.b=t}function gO(e,t){this.a=e,this.b=t}function mO(e,t){qNe(e.a,$H(t,56))}function vO(e,t){m9(e.a,$H(t,11))}function AO(e,t){return lU(),t!=e}function bO(){return Lw(),new bnt}function yO(){HZ(),this.b=new LA}function wO(){fLe(),this.a=new LA}function _O(){BZ(),Bz.call(this)}function xO(e,t){pE.call(this,e,t)}function EO(e,t){this.a=e,this.b=t}function SO(e,t){this.a=e,this.b=t}function CO(e,t){this.a=e,this.b=t}function TO(e,t){this.a=e,this.b=t}function kO(e,t){this.a=e,this.b=t}function OO(e,t){this.a=e,this.b=t}function MO(e,t){this.d=e,this.b=t}function IO(e,t){this.d=e,this.e=t}function DO(e,t){this.f=e,this.c=t}function NO(e,t){this.b=e,this.c=t}function RO(e,t){this.i=e,this.g=t}function LO(e,t){this.e=e,this.a=t}function BO(e,t){this.a=e,this.b=t}function PO(e,t){e.i=null,iie(e,t)}function FO(e,t){e&&VK(oIt,e,t)}function $O(e,t){return nge(e.a,t)}function jO(e){return ige(e.c,e.b)}function HO(e){return e?e.dd():null}function UO(e){return null==e?null:e}function QO(e){return typeof e===MKe}function zO(e){return typeof e===IKe}function WO(e){return typeof e===DKe}function GO(e,t){return e.Hd().Xb(t)}function VO(e,t){return Koe(e.Kc(),t)}function KO(e,t){return 0==Vue(e,t)}function YO(e,t){return Vue(e,t)>=0}function qO(e,t){return 0!=Vue(e,t)}function XO(e){return""+(bK(e),e)}function JO(e,t){return e.substr(t)}function ZO(e){return Qfe(e),e.d.gc()}function eM(e){return QMe(e,e.c),e}function tM(e){return qU(null==e),e}function nM(e,t){return e.a+=""+t,e}function rM(e,t){return e.a+=""+t,e}function iM(e,t){return e.a+=""+t,e}function oM(e,t){return e.a+=""+t,e}function aM(e,t){return e.a+=""+t,e}function sM(e,t){return e.a+=""+t,e}function lM(e,t){n5(e,t,e.a,e.a.a)}function cM(e,t){n5(e,t,e.c.b,e.c)}function uM(e,t,n){B_e(t,LTe(e,n))}function dM(e,t,n){B_e(t,LTe(e,n))}function hM(e,t){_ee(new ON(e),t)}function fM(e,t){e.q.setTime(y2(t))}function pM(e,t){QW.call(this,e,t)}function gM(e,t){QW.call(this,e,t)}function mM(e,t){QW.call(this,e,t)}function vM(e){MG(this),_oe(this,e)}function AM(e){return u0(e,0),null}function bM(e){return e.a=0,e.b=0,e}function yM(e,t){return e.a=t.g+1,e}function wM(e,t){return 2==e.j[t.p]}function _M(e){return sV($H(e,79))}function xM(){xM=M,Oit=uue(Zme())}function EM(){EM=M,Xlt=uue(wRe())}function SM(){this.b=new WE(ete(12))}function CM(){this.b=0,this.a=!1}function TM(){this.b=0,this.a=!1}function kM(e){this.a=e,$u.call(this)}function OM(e){this.a=e,$u.call(this)}function MM(e,t){tP.call(this,e,t)}function IM(e,t){ZP.call(this,e,t)}function DM(e,t){RO.call(this,e,t)}function NM(e,t){Oae.call(this,e,t)}function RM(e,t){KR.call(this,e,t)}function LM(e,t){JS(),VK(mIt,e,t)}function BM(e,t){return cL(e.a,0,t)}function PM(e,t){return e.a.a.a.cc(t)}function FM(e,t){return UO(e)===UO(t)}function $M(e,t){return She(e.a,t.a)}function jM(e,t){return wD(e.a,t.a)}function HM(e,t){return FG(e.a,t.a)}function UM(e,t){return e.indexOf(t)}function QM(e,t){return e==t?0:e?1:-1}function zM(e){return e<10?"0"+e:""+e}function WM(e){return AV(e),new kM(e)}function GM(e){return xD(e.l,e.m,e.h)}function VM(e){return CJ((bK(e),e))}function KM(e){return CJ((bK(e),e))}function YM(e,t){return wD(e.g,t.g)}function qM(e){return typeof e===IKe}function XM(e){return e==Xat||e==est}function JM(e){return e==Xat||e==Jat}function ZM(e){return w9(e.b.b,e,0)}function eI(e){this.a=bO(),this.b=e}function tI(e){this.a=bO(),this.b=e}function nI(e,t){return GH(e.a,t),t}function rI(e,t){return GH(e.c,t),e}function iI(e,t){return qoe(e.a,t),e}function oI(e,t){return U$(),t.a+=e}function aI(e,t){return U$(),t.a+=e}function sI(e,t){return U$(),t.c+=e}function lI(e,t){Q7(e,0,e.length,t)}function cI(){ep.call(this,new m4)}function uI(){oz.call(this,0,0,0,0)}function dI(){zY.call(this,0,0,0,0)}function hI(e){this.a=e.a,this.b=e.b}function fI(e){return e==PTt||e==FTt}function pI(e){return e==jTt||e==BTt}function gI(e){return e==cAt||e==lAt}function mI(e){return e!=Kkt&&e!=Ykt}function vI(e){return e.Lg()&&e.Mg()}function AI(e){return vY($H(e,118))}function bI(e){return qoe(new $2,e)}function yI(e,t){return new Oae(t,e)}function wI(e,t){return new Oae(t,e)}function _I(e,t,n){yne(e,t),wne(e,n)}function xI(e,t,n){Ene(e,t),xne(e,n)}function EI(e,t,n){Sne(e,t),Cne(e,n)}function SI(e,t,n){_ne(e,t),kne(e,n)}function CI(e,t,n){Tne(e,t),One(e,n)}function TI(e,t){Rce(e,t),Nne(e,e.D)}function kI(e){DO.call(this,e,!0)}function OI(e,t,n){DB.call(this,e,t,n)}function MI(e){kBe(),sae.call(this,e)}function II(){pC.call(this,"Head",1)}function DI(){pC.call(this,"Tail",3)}function NI(e){e.c=N8(Met,jKe,1,0,5,1)}function RI(e){e.a=N8(Met,jKe,1,8,5,1)}function LI(e){kte(e.xf(),new Ep(e))}function BI(e){return null!=e?Jle(e):0}function PI(e,t){return Cte(t,GJ(e))}function FI(e,t){return Cte(t,GJ(e))}function $I(e,t){return e[e.length]=t}function jI(e,t){return e[e.length]=t}function HI(e){return FH(e.b.Kc(),e.a)}function UI(e,t){return zre(SV(e.d),t)}function QI(e,t){return zre(SV(e.g),t)}function zI(e,t){return zre(SV(e.j),t)}function WI(e,t){tP.call(this,e.b,t)}function GI(e){oz.call(this,e,e,e,e)}function VI(e){return e.b&&VHe(e),e.a}function KI(e){return e.b&&VHe(e),e.c}function YI(e,t){Knt||(e.b=t)}function qI(e,t,n){return MV(e,t,n),n}function XI(e,t,n){MV(e.c[t.g],t.g,n)}function JI(e,t,n){$H(e.c,69).Xh(t,n)}function ZI(e,t,n){EI(n,n.i+e,n.j+t)}function eD(e,t){c7(i4(e.a),e0(t))}function tD(e,t){c7(j9(e.a),t0(t))}function nD(e){hKe(),Ov.call(this,e)}function rD(e){return null==e?0:Jle(e)}function iD(){iD=M,syt=new jfe(akt)}function oD(){oD=M,new aD,new Dv}function aD(){new Nv,new Nv,new Nv}function sD(){sD=M,xA(),ntt=new Nv}function lD(){lD=M,r.Math.log(2)}function cD(){cD=M,QS(),RDt=CMt}function uD(){throw jv(new Zy(xet))}function dD(){throw jv(new Zy(xet))}function hD(){throw jv(new Zy(Eet))}function fD(){throw jv(new Zy(Eet))}function pD(e){this.a=e,KH.call(this,e)}function gD(e){this.a=e,EE.call(this,e)}function mD(e){this.a=e,EE.call(this,e)}function vD(e,t){Az(e.c,e.c.length,t)}function AD(e){return e.a<e.c.c.length}function bD(e){return e.a<e.c.a.length}function yD(e,t){return e.a?e.b:t.De()}function wD(e,t){return e<t?-1:e>t?1:0}function _D(e,t){return Vue(e,t)>0?e:t}function xD(e,t,n){return{l:e,m:t,h:n}}function ED(e,t){null!=e.a&&vO(t,e.a)}function SD(e){e.a=new D,e.c=new D}function CD(e){this.b=e,this.a=new Dv}function TD(e){this.b=new tt,this.a=e}function kD(e){IP.call(this),this.a=e}function OD(){pC.call(this,"Range",2)}function MD(){Zwe(),this.a=new CRe(zat)}function ID(e,t){AV(t),wY(e).Jc(new f)}function DD(e,t){return $Z(),t.n.b+=e}function ND(e,t,n){return VK(e.g,n,t)}function RD(e,t,n){return VK(e.k,n,t)}function LD(e,t){return VK(e.a,t.a,t)}function BD(e,t,n){return Tge(t,n,e.c)}function PD(e){return new Nk(e.c,e.d)}function FD(e){return new Nk(e.c,e.d)}function $D(e){return new Nk(e.a,e.b)}function jD(e,t){return Zze(e.a,t,null)}function HD(e){EZ(e,null),xZ(e,null)}function UD(e){GZ(e,null),VZ(e,null)}function QD(){KR.call(this,null,null)}function zD(){YR.call(this,null,null)}function WD(e){this.a=e,Nv.call(this)}function GD(e){this.b=(Eq(),new Wf(e))}function VD(e){e.j=N8($tt,sYe,310,0,0,1)}function KD(e,t,n){e.c.Vc(t,$H(n,133))}function YD(e,t,n){e.c.ji(t,$H(n,133))}function qD(e,t){sQe(e),e.Gc($H(t,15))}function XD(e,t){return $Qe(e.c,e.b,t)}function JD(e,t){return new gR(e.Kc(),t)}function ZD(e,t){return-1!=Fse(e.Kc(),t)}function eN(e,t){return null!=e.a.Bc(t)}function tN(e){return e.Ob()?e.Pb():null}function nN(e){return $ge(e,0,e.length)}function rN(e,t){return null!=e&&Kve(e,t)}function iN(e,t){e.q.setHours(t),uHe(e,t)}function oN(e,t){e.c&&(LU(t),bJ(t))}function aN(e,t,n){$H(e.Kb(n),164).Nb(t)}function sN(e,t,n){return jze(e,t,n),n}function lN(e,t,n){e.a=1502^t,e.b=n^iXe}function cN(e,t,n){return e.a[t.g][n.g]}function uN(e,t){return e.a[t.c.p][t.p]}function dN(e,t){return e.e[t.c.p][t.p]}function hN(e,t){return e.c[t.c.p][t.p]}function fN(e,t){return e.j[t.p]=gNe(t)}function pN(e,t){return c6(e.f,t.tg())}function gN(e,t){return c6(e.b,t.tg())}function mN(e,t){return e.a<WF(t)?-1:1}function vN(e,t,n){return n?0!=t:t!=e-1}function AN(e,t,n){return e.a=t,e.b=n,e}function bN(e,t){return e.a*=t,e.b*=t,e}function yN(e,t,n){return MV(e.g,t,n),n}function wN(e,t,n,r){MV(e.a[t.g],n.g,r)}function _N(e,t){PL(t,e.a.a.a,e.a.a.b)}function xN(e){e.a=$H(Aae(e.b.a,4),126)}function EN(e){e.a=$H(Aae(e.b.a,4),126)}function SN(e){kX(e,t8e),jNe(e,TGe(e))}function CN(){CN=M,Ent=new my(null)}function TN(){(TN=M)(),Mnt=new W}function kN(){this.Bb|=256,this.Bb|=512}function ON(e){this.i=e,this.f=this.i.j}function MN(e,t,n){AU.call(this,e,t,n)}function IN(e,t,n){MN.call(this,e,t,n)}function DN(e,t,n){MN.call(this,e,t,n)}function NN(e,t,n){IN.call(this,e,t,n)}function RN(e,t,n){AU.call(this,e,t,n)}function LN(e,t,n){AU.call(this,e,t,n)}function BN(e,t,n){xU.call(this,e,t,n)}function PN(e,t,n){xU.call(this,e,t,n)}function FN(e,t,n){BN.call(this,e,t,n)}function $N(e,t,n){RN.call(this,e,t,n)}function jN(e,t){this.a=e,EE.call(this,t)}function HN(e,t){this.a=e,ow.call(this,t)}function UN(e,t){this.a=e,ow.call(this,t)}function QN(e,t){this.a=e,ow.call(this,t)}function zN(e){this.a=e,sh.call(this,e.d)}function WN(e){this.c=e,this.a=this.c.a}function GN(e,t){this.a=t,ow.call(this,e)}function VN(e,t){this.a=t,f4.call(this,e)}function KN(e,t){this.a=e,f4.call(this,t)}function YN(e,t){return hW(dW(e.c)).Xb(t)}function qN(e,t){return efe(e,new Cw,t).a}function XN(e,t){return AV(t),new JN(e,t)}function JN(e,t){this.a=t,kE.call(this,e)}function ZN(e){this.b=e,this.a=this.b.a.e}function eR(e){e.b.Qb(),--e.d.f.d,Mz(e.d)}function tR(e){Jd.call(this,$H(AV(e),35))}function nR(e){Jd.call(this,$H(AV(e),35))}function rR(){pE.call(this,"INSTANCE",0)}function iR(e){if(!e)throw jv(new hA)}function oR(e){if(!e)throw jv(new fA)}function aR(e){if(!e)throw jv(new AA)}function sR(){sR=M,qS(),nNt=new Pd}function lR(){lR=M,mtt=!1,vtt=!0}function cR(e){Of.call(this,(bK(e),e))}function uR(e){Of.call(this,(bK(e),e))}function dR(e){jf.call(this,e),this.a=e}function hR(e){Hf.call(this,e),this.a=e}function fR(e){Ow.call(this,e),this.a=e}function pR(){VD(this),yq(this),this._d()}function gR(e,t){this.a=t,kE.call(this,e)}function mR(e,t){return new BTe(e.a,e.b,t)}function vR(e,t){return e.lastIndexOf(t)}function AR(e,t,n){return e.indexOf(t,n)}function bR(e){return null==e?QKe:$fe(e)}function yR(e){return null==e?null:e.name}function wR(e){return null!=e.a?e.a:null}function _R(e){return wx(e.a)?o0(e):null}function xR(e,t){return null!=MJ(e.a,t)}function ER(e,t){return!!t&&e.b[t.g]==t}function SR(e){return e.$H||(e.$H=++rrt)}function CR(e){return e.l+e.m*Tqe+e.h*kqe}function TR(e,t){return GH(t.a,e.a),e.a}function kR(e,t){return GH(t.b,e.a),e.a}function OR(e,t){return GH(t.a,e.a),e.a}function MR(e){return SL(null!=e.a),e.a}function IR(e){ep.call(this,new H8(e))}function DR(e,t){Eme.call(this,e,t,null)}function NR(e){this.a=e,$f.call(this,e)}function RR(){RR=M,Iit=new tP(fJe,0)}function LR(e,t){return++e.b,GH(e.a,t)}function BR(e,t){return++e.b,A9(e.a,t)}function PR(e,t){return She(e.n.a,t.n.a)}function FR(e,t){return She(e.c.d,t.c.d)}function $R(e,t){return She(e.c.c,t.c.c)}function jR(e,t){return $H(l6(e.b,t),15)}function HR(e,t){return e.n.b=(bK(t),t)}function UR(e,t){return e.n.b=(bK(t),t)}function QR(e){return AD(e.a)||AD(e.b)}function zR(e,t,n){return g3(e,t,n,e.b)}function WR(e,t,n){return g3(e,t,n,e.c)}function GR(e,t,n){$H(R9(e,t),21).Fc(n)}function VR(e,t,n){khe(e.a,n),TAe(e.a,t)}function KR(e,t){KS(),this.a=e,this.b=t}function YR(e,t){YS(),this.b=e,this.c=t}function qR(e,t){Fz(),this.f=t,this.d=e}function XR(e,t){h6(t,e),this.d=e,this.c=t}function JR(e){var t;t=e.a,e.a=e.b,e.b=t}function ZR(e){return U$(),!!e&&!e.dc()}function eL(e){return new l4(3,e)}function tL(e,t){return new dF(e,e.gc(),t)}function nL(e){return ny(),Cee((RZ(),Get),e)}function rL(e){this.d=e,ON.call(this,e)}function iL(e){this.c=e,ON.call(this,e)}function oL(e){this.c=e,rL.call(this,e)}function aL(){xS(),this.b=new Ag(this)}function sL(e){return ure(e,OYe),new q6(e)}function lL(e){return SX(),parseInt(e)||-1}function cL(e,t,n){return e.substr(t,n-t)}function uL(e,t,n){return AR(e,YEe(t),n)}function dL(e){return VG(e.c,e.c.length)}function hL(e){return null!=e.f?e.f:""+e.g}function fL(e){return null!=e.f?e.f:""+e.g}function pL(e){return SL(0!=e.b),e.a.a.c}function gL(e){return SL(0!=e.b),e.c.b.c}function mL(e){rN(e,150)&&$H(e,150).Gh()}function vL(e){return e.b=$H(vq(e.a),42)}function AL(e){lS(),this.b=e,this.a=!0}function bL(e){cS(),this.b=e,this.a=!0}function yL(e){e.d=new CL(e),e.e=new Nv}function wL(e){if(!e)throw jv(new mA)}function _L(e){if(!e)throw jv(new hA)}function xL(e){if(!e)throw jv(new fA)}function EL(e){if(!e)throw jv(new uA)}function SL(e){if(!e)throw jv(new AA)}function CL(e){JH.call(this,e,null,null)}function TL(){pE.call(this,"POLYOMINO",0)}function kL(e,t,n,r){sW.call(this,e,t,n,r)}function OL(e,t){return PSe(),qOe(e,t.e,t)}function ML(e,t,n){return OS(),n.qg(e,t)}function IL(e,t){return!!e.q&&lG(e.q,t)}function DL(e,t){return e>0?t*t/e:t*t*100}function NL(e,t){return e>0?t/(e*e):100*t}function RL(e,t,n){return GH(t,ape(e,n))}function LL(e,t,n){N7(),e.Xe(t)&&n.td(e)}function BL(e,t,n){e.Zc(t).Rb(n)}function PL(e,t,n){return e.a+=t,e.b+=n,e}function FL(e,t,n){return e.a*=t,e.b*=n,e}function $L(e,t,n){return e.a-=t,e.b-=n,e}function jL(e,t){return e.a=t.a,e.b=t.b,e}function HL(e){return e.a=-e.a,e.b=-e.b,e}function UL(e){this.c=e,this.a=1,this.b=1}function QL(e){this.c=e,Sne(e,0),Cne(e,0)}function zL(e){YE.call(this),Jne(this,e)}function WL(e){LVe(),$v(this),this.mf(e)}function GL(e,t){KS(),KR.call(this,e,t)}function VL(e,t){YS(),YR.call(this,e,t)}function KL(e,t){YS(),YR.call(this,e,t)}function YL(e,t){YS(),VL.call(this,e,t)}function qL(e,t,n){A7.call(this,e,t,n,2)}function XL(e,t){cD(),rz.call(this,e,t)}function JL(e,t){cD(),XL.call(this,e,t)}function ZL(e,t){cD(),XL.call(this,e,t)}function eB(e,t){cD(),ZL.call(this,e,t)}function tB(e,t){cD(),rz.call(this,e,t)}function nB(e,t){cD(),tB.call(this,e,t)}function rB(e,t){cD(),rz.call(this,e,t)}function iB(e,t){return e.c.Fc($H(t,133))}function oB(e,t,n){return DUe(F9(e,t),n)}function aB(e,t,n){return t.Qk(e.e,e.c,n)}function sB(e,t,n){return t.Rk(e.e,e.c,n)}function lB(e,t){return Zue(e.e,$H(t,49))}function cB(e,t,n){she(j9(e.a),t,t0(n))}function uB(e,t,n){she(i4(e.a),t,e0(n))}function dB(e,t){t.$modCount=e.$modCount}function hB(){hB=M,Vwt=new ov("root")}function fB(){fB=M,pIt=new _b,new xb}function pB(){this.a=new gJ,this.b=new gJ}function gB(){yre.call(this),this.Bb|=$qe}function mB(){pE.call(this,"GROW_TREE",0)}function vB(e){return null==e?null:hGe(e)}function AB(e){return null==e?null:ICe(e)}function bB(e){return null==e?null:$fe(e)}function yB(e){return null==e?null:$fe(e)}function wB(e){null==e.o&&pDe(e)}function _B(e){return qU(null==e||QO(e)),e}function xB(e){return qU(null==e||zO(e)),e}function EB(e){return qU(null==e||WO(e)),e}function SB(e){this.q=new r.Date(y2(e))}function CB(e,t){this.c=e,gE.call(this,e,t)}function TB(e,t){this.a=e,CB.call(this,e,t)}function kB(e,t){this.d=e,xf(this),this.b=t}function OB(e,t){$8.call(this,e),this.a=t}function MB(e,t){$8.call(this,e),this.a=t}function IB(e){Hpe.call(this,0,0),this.f=e}function DB(e,t,n){G6.call(this,e,t,n,null)}function NB(e,t,n){G6.call(this,e,t,n,null)}function RB(e,t,n){return e.ue(t,n)<=0?n:t}function LB(e,t,n){return e.ue(t,n)<=0?t:n}function BB(e,t){return $H(uee(e.b,t),149)}function PB(e,t){return $H(uee(e.c,t),229)}function FB(e){return $H(NQ(e.a,e.b),287)}function $B(e){return new Nk(e.c,e.d+e.a)}function jB(e){return $Z(),gI($H(e,197))}function HB(){HB=M,Mit=Jhe((vge(),POt))}function UB(e,t){t.a?FLe(e,t):xR(e.a,t.b)}function QB(e,t){Knt||GH(e.a,t)}function zB(e,t){return vS(),hae(t.d.i,e)}function WB(e,t){return Tie(),new rFe(t,e)}function GB(e,t){return kX(t,oJe),e.f=t,e}function VB(e,t,n){return _$e(e,t,3,n)}function KB(e,t,n){return _$e(e,t,6,n)}function YB(e,t,n){return _$e(e,t,9,n)}function qB(e,t,n){++e.j,e.Ki(),I8(e,t,n)}function XB(e,t,n){++e.j,e.Hi(t,e.oi(t,n))}function JB(e,t,n){e.Zc(t).Rb(n)}function ZB(e,t,n){return XHe(e.c,e.b,t,n)}function eP(e,t){return(t&RKe)%e.d.length}function tP(e,t){ov.call(this,e),this.a=t}function nP(e,t){bv.call(this,e),this.a=t}function rP(e,t){bv.call(this,e),this.a=t}function iP(e,t){this.c=e,pte.call(this,t)}function oP(e,t){this.a=e,Av.call(this,t)}function aP(e,t){this.a=e,Av.call(this,t)}function sP(e){this.a=(ure(e,OYe),new q6(e))}function lP(e){this.a=(ure(e,OYe),new q6(e))}function cP(e){return!e.a&&(e.a=new p),e.a}function uP(e){return e>8?0:e+1}function dP(e,t){return lR(),e==t?0:e?1:-1}function hP(e,t,n){return vz(e,$H(t,22),n)}function fP(e,t,n){return e.apply(t,n)}function pP(e,t,n){return e.a+=$ge(t,0,n),e}function gP(e,t){var n;return n=e.e,e.e=t,n}function mP(e,t){e[tXe].call(e,t)}function vP(e,t){e[tXe].call(e,t)}function AP(e,t){e.a.Vc(e.b,t),++e.b,e.c=-1}function bP(e){MG(e.e),e.d.b=e.d,e.d.a=e.d}function yP(e){e.b?yP(e.b):e.f.c.zc(e.e,e.d)}function wP(e,t,n){fS(),Ch(e,t.Ce(e.a,n))}function _P(e,t){return K_(xge(e.a,t,!0))}function xP(e,t){return K_(Ege(e.a,t,!0))}function EP(e,t){return Hw(new Array(t),e)}function SP(e){return String.fromCharCode(e)}function CP(e){return null==e?null:e.message}function TP(){this.a=new Dv,this.b=new Dv}function kP(){this.a=new ht,this.b=new _A}function OP(){this.b=new U_,this.c=new Dv}function MP(){this.d=new U_,this.e=new U_}function IP(){this.n=new U_,this.o=new U_}function DP(){this.n=new db,this.i=new dI}function NP(){this.a=new Ju,this.b=new so}function RP(){this.a=new Dv,this.d=new Dv}function LP(){this.b=new LA,this.a=new LA}function BP(){this.b=new Nv,this.a=new Nv}function PP(){this.b=new Ox,this.a=new ma}function FP(){DP.call(this),this.a=new U_}function $P(e){kae.call(this,e,(X7(),Dnt))}function jP(e,t,n,r){oz.call(this,e,t,n,r)}function HP(e,t,n){null!=n&&Ire(t,Obe(e,n))}function UP(e,t,n){null!=n&&Dre(t,Obe(e,n))}function QP(e,t,n){return _$e(e,t,11,n)}function zP(e,t){return e.a+=t.a,e.b+=t.b,e}function WP(e,t){return e.a-=t.a,e.b-=t.b,e}function GP(e,t){return e.n.a=(bK(t),t+10)}function VP(e,t){return e.n.a=(bK(t),t+10)}function KP(e,t){return t==e||E_e(CNe(t),e)}function YP(e,t){return null==VK(e.a,t,"")}function qP(e,t){return vS(),!hae(t.d.i,e)}function XP(e,t){fI(e.f)?rDe(e,t):TEe(e,t)}function JP(e,t){return t.Hh(e.a)}function ZP(e,t){Oy.call(this,e7e+e+a8e+t)}function eF(e,t,n,r){eG.call(this,e,t,n,r)}function tF(e,t,n,r){eG.call(this,e,t,n,r)}function nF(e,t,n,r){tF.call(this,e,t,n,r)}function rF(e,t,n,r){tG.call(this,e,t,n,r)}function iF(e,t,n,r){tG.call(this,e,t,n,r)}function oF(e,t,n,r){tG.call(this,e,t,n,r)}function aF(e,t,n,r){iF.call(this,e,t,n,r)}function sF(e,t,n,r){iF.call(this,e,t,n,r)}function lF(e,t,n,r){oF.call(this,e,t,n,r)}function cF(e,t,n,r){sF.call(this,e,t,n,r)}function uF(e,t,n,r){XW.call(this,e,t,n,r)}function dF(e,t,n){this.a=e,XR.call(this,t,n)}function hF(e,t,n){this.c=t,this.b=n,this.a=e}function fF(e,t,n){return e.d=$H(t.Kb(n),164)}function pF(e,t){return e.Aj().Nh().Kh(e,t)}function gF(e,t){return e.Aj().Nh().Ih(e,t)}function mF(e,t){return bK(e),UO(e)===UO(t)}function vF(e,t){return bK(e),UO(e)===UO(t)}function AF(e,t){return K_(xge(e.a,t,!1))}function bF(e,t){return K_(Ege(e.a,t,!1))}function yF(e,t){return e.b.sd(new MC(e,t))}function wF(e,t){return e.b.sd(new IC(e,t))}function _F(e,t){return e.b.sd(new DC(e,t))}function xF(e,t,n){return e.lastIndexOf(t,n)}function EF(e,t,n){return She(e[t.b],e[n.b])}function SF(e,t){return lle(t,(jVe(),Lgt),e)}function CF(e,t){return wD(t.a.d.p,e.a.d.p)}function TF(e,t){return wD(e.a.d.p,t.a.d.p)}function kF(e,t){return She(e.c-e.s,t.c-t.s)}function OF(e){return e.c?w9(e.c.a,e,0):-1}function MF(e){return e<100?null:new F_(e)}function IF(e){return e==zkt||e==Gkt||e==Wkt}function DF(e,t){return rN(t,15)&&KBe(e.c,t)}function NF(e,t){Knt||t&&(e.d=t)}function RF(e,t){return!!uce(e,t)}function LF(e,t){this.c=e,UG.call(this,e,t)}function BF(e){this.c=e,mM.call(this,dYe,0)}function PF(e,t){qH.call(this,e,e.length,t)}function FF(e,t,n){return $H(e.c,69).lk(t,n)}function $F(e,t,n){return $H(e.c,69).mk(t,n)}function jF(e,t,n){return aB(e,$H(t,332),n)}function HF(e,t,n){return sB(e,$H(t,332),n)}function UF(e,t,n){return Txe(e,$H(t,332),n)}function QF(e,t,n){return KEe(e,$H(t,332),n)}function zF(e,t){return null==t?null:ude(e.b,t)}function WF(e){return zO(e)?(bK(e),e):e.ke()}function GF(e){return!isNaN(e)&&!isFinite(e)}function VF(e){s$(),this.a=(Eq(),new Ow(e))}function KF(e){lU(),this.d=e,this.a=new Iv}function YF(e,t,n){this.a=e,this.b=t,this.c=n}function qF(e,t,n){this.a=e,this.b=t,this.c=n}function XF(e,t,n){this.d=e,this.b=n,this.a=t}function JF(e){SD(this),Aq(this),Fie(this,e)}function ZF(e){NI(this),ZH(this.c,0,e.Pc())}function e$(e){cK(e.a),Q8(e.c,e.b),e.b=null}function t$(e){this.a=e,ME(),cae(Date.now())}function n$(){n$=M,trt=new i,nrt=new i}function r$(){r$=M,_nt=new N,xnt=new R}function i$(){i$=M,dIt=N8(Met,jKe,1,0,5,1)}function o$(){o$=M,_Dt=N8(Met,jKe,1,0,5,1)}function a$(){a$=M,xDt=N8(Met,jKe,1,0,5,1)}function s$(){s$=M,new nA((Eq(),Eq(),lnt))}function l$(e){return X7(),Cee((J7(),Pnt),e)}function c$(e){return Hce(),Cee((e8(),Xnt),e)}function u$(e){return lve(),Cee((T4(),grt),e)}function d$(e){return Lee(),Cee((k4(),brt),e)}function h$(e){return ZBe(),Cee((Nae(),Frt),e)}function f$(e){return Rte(),Cee((X6(),Grt),e)}function p$(e){return q7(),Cee((J6(),Zrt),e)}function g$(e){return U9(),Cee((Z6(),oit),e)}function m$(e){return fKe(),Cee((xM(),Oit),e)}function v$(e){return Rae(),Cee((e9(),Pit),e)}function A$(e){return jve(),Cee((t9(),Qit),e)}function b$(e){return Hve(),Cee((n9(),tot),e)}function y$(e){return hS(),Cee((K2(),iot),e)}function w$(e){return Bee(),Cee((O4(),Pot),e)}function _$(e){return H9(),Cee((t8(),Iat),e)}function x$(e){return ASe(),Cee((Wee(),Hat),e)}function E$(e){return Ose(),Cee((Z7(),nst),e)}function S$(e){return $de(),Cee((n8(),pst),e)}function C$(e,t){if(!e)throw jv(new Py(t))}function T$(e){return oCe(),Cee((lne(),Ost),e)}function k$(e){oz.call(this,e.d,e.c,e.a,e.b)}function O$(e){oz.call(this,e.d,e.c,e.a,e.b)}function M$(e,t,n){this.b=e,this.c=t,this.a=n}function I$(e,t,n){this.b=e,this.a=t,this.c=n}function D$(e,t,n){this.a=e,this.b=t,this.c=n}function N$(e,t,n){this.a=e,this.b=t,this.c=n}function R$(e,t,n){this.a=e,this.b=t,this.c=n}function L$(e,t,n){this.a=e,this.b=t,this.c=n}function B$(e,t,n){this.b=e,this.a=t,this.c=n}function P$(e,t,n){this.e=t,this.b=e,this.d=n}function F$(e,t,n){return fS(),e.a.Od(t,n),t}function $$(e){var t;return(t=new we).e=e,t}function j$(e){var t;return(t=new XA).b=e,t}function H$(){H$=M,zst=new Rn,Wst=new Ln}function U$(){U$=M,fct=new Ai,pct=new bi}function Q$(e){return Tse(),Cee((i9(),act),e)}function z$(e){return kse(),Cee((a9(),wct),e)}function W$(e){return bBe(),Cee((Uoe(),Vct),e)}function G$(e){return MTe(),Cee((dne(),nut),e)}function V$(e){return V8(),Cee((L4(),aut),e)}function K$(e){return kre(),Cee((r8(),dut),e)}function Y$(e){return Ixe(),Cee((jee(),kct),e)}function q$(e){return Cie(),Cee((a8(),Pct),e)}function X$(e){return ore(),Cee((i8(),mut),e)}function J$(e){return VAe(),Cee((Fee(),xut),e)}function Z$(e){return Pee(),Cee((I4(),Tut),e)}function ej(e){return qse(),Cee((o8(),Dut),e)}function tj(e){return pCe(),Cee((gne(),jut),e)}function nj(e){return p9(),Cee((D4(),zut),e)}function rj(e){return $_e(),Cee((fne(),Jut),e)}function ij(e){return qSe(),Cee((hne(),adt),e)}function oj(e){return dBe(),Cee((Vse(),Adt),e)}function aj(e){return Bae(),Cee((l8(),xdt),e)}function sj(e){return Q9(),Cee((s8(),kdt),e)}function lj(e){return Q2(),Cee((B4(),Ddt),e)}function cj(e){return _fe(),Cee((Hee(),Qht),e)}function uj(e){return _Ee(),Cee((pne(),nAt),e)}function dj(e){return xue(),Cee((c8(),sAt),e)}function hj(e){return dAe(),Cee((s9(),fAt),e)}function fj(e){return ire(),Cee((h8(),zAt),e)}function pj(e){return sRe(),Cee((Hoe(),MAt),e)}function gj(e){return vle(),Cee((d8(),LAt),e)}function mj(e){return z9(),Cee((R4(),$At),e)}function vj(e){return joe(),Cee((u8(),YAt),e)}function Aj(e){return DAe(),Cee(($ee(),yAt),e)}function bj(e){return O6(),Cee((N4(),ZAt),e)}function yj(e){return zce(),Cee((p8(),ibt),e)}function wj(e){return foe(),Cee((g8(),cbt),e)}function _j(e){return Mse(),Cee((f8(),pbt),e)}function xj(e){return are(),Cee((m8(),Dbt),e)}function Ej(e){return K4(),Cee((F4(),Ubt),e)}function Sj(e){return pJ(),Cee(($4(),tyt),e)}function Cj(e){return aZ(),Cee((j4(),oyt),e)}function Tj(e){return k6(),Cee((P4(),Syt),e)}function kj(e){return fJ(),Cee((H4(),Ryt),e)}function Oj(e){return Qye(),Cee((r9(),jyt),e)}function Mj(e){return RTe(),Cee((mne(),qyt),e)}function Ij(e){return sZ(),Cee((z4(),Fwt),e)}function Dj(e){return Sie(),Cee((Q4(),Xwt),e)}function Nj(e){return $1(),Cee((U4(),Uwt),e)}function Rj(e){return Cfe(),Cee((v8(),n_t),e)}function Lj(e){return R7(),Cee((W4(),a_t),e)}function Bj(e){return jce(),Cee((A8(),d_t),e)}function Pj(e){return kbe(),Cee((o9(),Q_t),e)}function Fj(e){return $oe(),Cee((y8(),K_t),e)}function $j(e){return Efe(),Cee((b8(),ext),e)}function jj(e){return YNe(),Cee((zee(),$xt),e)}function Hj(e){return Sfe(),Cee((w8(),zxt),e)}function Uj(e){return CS(),Cee((G2(),Vxt),e)}function Qj(e){return TS(),Cee((W2(),qxt),e)}function zj(e){return M6(),Cee((V4(),eEt),e)}function Wj(e){return MCe(),Cee((Uee(),sEt),e)}function Gj(e){return kS(),Cee((V2(),zEt),e)}function Vj(e){return Ise(),Cee((G4(),KEt),e)}function Kj(e){return nve(),Cee((Qee(),dSt),e)}function Yj(e){return STe(),Cee((Qoe(),wSt),e)}function qj(e){return hAe(),Cee((une(),NSt),e)}function Xj(e){return hxe(),Cee((cne(),ZSt),e)}function Jj(e){return uKe(),Cee((EM(),Xlt),e)}function Zj(e){return Eie(),Cee((M4(),Qst),e)}function eH(e){return Fde(),Cee((Gee(),UTt),e)}function tH(e){return Lte(),Cee((x8(),VTt),e)}function nH(e){return xfe(),Cee((u9(),ZTt),e)}function rH(e){return JEe(),Cee((Ane(),skt),e)}function iH(e){return ode(),Cee((_8(),bkt),e)}function oH(e){return Wye(),Cee((c9(),Skt),e)}function aH(e){return JIe(),Cee((Dae(),Bkt),e)}function sH(e){return rve(),Cee((Vee(),Qkt),e)}function lH(e){return Kxe(),Cee((jte(),Xkt),e)}function cH(e){return uOe(),Cee((vne(),oOt),e)}function uH(e){return vge(),Cee((h9(),$Ot),e)}function dH(e){return JFe(),Cee((Kse(),qOt),e)}function hH(e){return bGe(),Cee((Kee(),kOt),e)}function fH(e){return Fpe(),Cee((d9(),nMt),e)}function pH(e){return $ce(),Cee((l9(),cMt),e)}function gH(e){return lIe(),Cee((zoe(),nIt),e)}function mH(e,t){return bK(e),e+(bK(t),t)}function vH(e,t){return ME(),c7(Kq(e.a),t)}function AH(e,t){return ME(),c7(Kq(e.a),t)}function bH(e,t){this.c=e,this.a=t,this.b=t-e}function yH(e,t,n){this.a=e,this.b=t,this.c=n}function wH(e,t,n){this.a=e,this.b=t,this.c=n}function _H(e,t,n){this.a=e,this.b=t,this.c=n}function xH(e,t,n){this.a=e,this.b=t,this.c=n}function EH(e,t,n){this.a=e,this.b=t,this.c=n}function SH(e,t,n){this.e=e,this.a=t,this.c=n}function CH(e,t,n){cD(),vJ.call(this,e,t,n)}function TH(e,t,n){cD(),nK.call(this,e,t,n)}function kH(e,t,n){cD(),nK.call(this,e,t,n)}function OH(e,t,n){cD(),nK.call(this,e,t,n)}function MH(e,t,n){cD(),TH.call(this,e,t,n)}function IH(e,t,n){cD(),TH.call(this,e,t,n)}function DH(e,t,n){cD(),IH.call(this,e,t,n)}function NH(e,t,n){cD(),kH.call(this,e,t,n)}function RH(e,t,n){cD(),OH.call(this,e,t,n)}function LH(e,t){return AV(e),AV(t),new lE(e,t)}function BH(e,t){return AV(e),AV(t),new PU(e,t)}function PH(e,t){return AV(e),AV(t),new FU(e,t)}function FH(e,t){return AV(e),AV(t),new uE(e,t)}function $H(e,t){return qU(null==e||Kve(e,t)),e}function jH(e){var t;return cee(t=new Dv,e),t}function HH(e){var t;return cee(t=new LA,e),t}function UH(e){var t;return Hie(t=new QA,e),t}function QH(e){var t;return Hie(t=new YE,e),t}function zH(e){return!e.e&&(e.e=new Dv),e.e}function WH(e){return!e.c&&(e.c=new Hl),e.c}function GH(e,t){return e.c[e.c.length]=t,!0}function VH(e,t){this.c=e,this.b=t,this.a=!1}function KH(e){this.d=e,xf(this),this.b=nW(e.d)}function YH(){this.a=";,;",this.b="",this.c=""}function qH(e,t,n){zW.call(this,t,n),this.a=e}function XH(e,t,n){this.b=e,pM.call(this,t,n)}function JH(e,t,n){this.c=e,SC.call(this,t,n)}function ZH(e,t,n){Pke(n,0,e,t,n.length,!1)}function eU(e,t,n,r,i){e.b=t,e.c=n,e.d=r,e.a=i}function tU(e,t){t&&(e.b=t,e.a=(wK(t),t.a))}function nU(e,t,n,r,i){e.d=t,e.c=n,e.a=r,e.b=i}function rU(e){var t,n;t=e.b,n=e.c,e.b=n,e.c=t}function iU(e){var t,n;n=e.d,t=e.a,e.d=t,e.a=n}function oU(e){return oae(NG(qM(e)?Sae(e):e))}function aU(e,t){return wD(aQ(e.d),aQ(t.d))}function sU(e,t){return t==(bGe(),COt)?e.c:e.d}function lU(){lU=M,bGe(),Lbt=COt,Bbt=aOt}function cU(){this.b=Uy(xB(vve((cPe(),iat))))}function uU(e){return fS(),N8(Met,jKe,1,e,5,1)}function dU(e){return new Nk(e.c+e.b,e.d+e.a)}function hU(e,t){return ES(),wD(e.d.p,t.d.p)}function fU(e){return SL(0!=e.b),Ote(e,e.a.a)}function pU(e){return SL(0!=e.b),Ote(e,e.c.b)}function gU(e,t){if(!e)throw jv(new My(t))}function mU(e,t){if(!e)throw jv(new Py(t))}function vU(e,t,n){fT.call(this,e,t),this.b=n}function AU(e,t,n){IO.call(this,e,t),this.c=n}function bU(e,t,n){dte.call(this,t,n),this.d=e}function yU(e){a$(),yl.call(this),this.th(e)}function wU(e,t,n){this.a=e,DM.call(this,t,n)}function _U(e,t,n){this.a=e,DM.call(this,t,n)}function xU(e,t,n){IO.call(this,e,t),this.c=n}function EU(){L5(),aK.call(this,(GS(),UIt))}function SU(e){return null!=e&&!Wfe(e,MIt,IIt)}function CU(e,t){return(Gde(e)<<4|Gde(t))&KYe}function TU(e,t){return JK(),QAe(e,t),new UK(e,t)}function kU(e,t){var n;e.n&&(n=t,GH(e.f,n))}function OU(e,t,n){nte(e,t,new UV(n))}function MU(e,t){var n;return n=e.c,Bre(e,t),n}function IU(e,t){return e.g=t<0?-1:t,e}function DU(e,t){return Qte(e),e.a*=t,e.b*=t,e}function NU(e,t,n,r,i){e.c=t,e.d=n,e.b=r,e.a=i}function RU(e,t){return n5(e,t,e.c.b,e.c),!0}function LU(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function BU(e){this.b=e,this.a=uW(this.b.a).Ed()}function PU(e,t){this.b=e,this.a=t,$u.call(this)}function FU(e,t){this.a=e,this.b=t,$u.call(this)}function $U(e,t){zW.call(this,t,1040),this.a=e}function jU(e){return 0==e||isNaN(e)?e:e<0?-1:1}function HU(e){return xq(),SSe(e)==qJ(kSe(e))}function UU(e){return xq(),kSe(e)==qJ(SSe(e))}function QU(e,t){return Y_e(e,new fT(t.a,t.b))}function zU(e){return!d5(e)&&e.c.i.c==e.d.i.c}function WU(e){var t;return t=e.n,e.a.b+t.d+t.a}function GU(e){var t;return t=e.n,e.e.b+t.d+t.a}function VU(e){var t;return t=e.n,e.e.a+t.b+t.c}function KU(e){return hKe(),new az(0,e)}function YU(e){return e.a?e.a:eq(e)}function qU(e){if(!e)throw jv(new By(null))}function XU(){XU=M,Eq(),iNt=new Uf(S9e)}function JU(){JU=M,new sAe((Zb(),Fet),(ey(),Pet))}function ZU(){ZU=M,ktt=N8(Mtt,sYe,19,256,0,1)}function eQ(e,t,n,r){ipe.call(this,e,t,n,r,0,0)}function tQ(e,t,n){return VK(e.b,$H(n.b,17),t)}function nQ(e,t,n){return VK(e.b,$H(n.b,17),t)}function rQ(e,t){return GH(e,new Nk(t.a,t.b))}function iQ(e,t){return e.c<t.c?-1:e.c==t.c?0:1}function oQ(e){return e.e.c.length+e.g.c.length}function aQ(e){return e.e.c.length-e.g.c.length}function sQ(e){return e.b.c.length-e.e.c.length}function lQ(e){return $Z(),(bGe(),dOt).Hc(e.j)}function cQ(e){a$(),yU.call(this,e),this.a=-1}function uQ(e,t){NO.call(this,e,t),this.a=this}function dQ(e,t){var n;return(n=vV(e,t)).i=2,n}function hQ(e,t){return++e.j,e.Ti(t)}function fQ(e,t,n){return e.a=-1,GR(e,t.g,n),e}function pQ(e,t,n){BWe(e.a,e.b,e.c,$H(t,202),n)}function gQ(e,t){$re(e,null==t?null:(bK(t),t))}function mQ(e,t){Lre(e,null==t?null:(bK(t),t))}function vQ(e,t){Lre(e,null==t?null:(bK(t),t))}function AQ(e,t,n){return new hF(fK(e).Ie(),n,t)}function bQ(e,t,n,r,i,o){return V_e(e,t,n,r,i,0,o)}function yQ(){yQ=M,wtt=N8(xtt,sYe,217,256,0,1)}function wQ(){wQ=M,Itt=N8(Btt,sYe,162,256,0,1)}function _Q(){_Q=M,Ptt=N8(Ftt,sYe,184,256,0,1)}function xQ(){xQ=M,Ett=N8(Stt,sYe,172,128,0,1)}function EQ(){eU(this,!1,!1,!1,!1)}function SQ(e){GV(),this.a=(Eq(),new Uf(AV(e)))}function CQ(e){for(AV(e);e.Ob();)e.Pb(),e.Qb()}function TQ(e){e.a.cd(),$H(e.a.dd(),14).gc(),hw()}function kQ(e){this.c=e,this.b=this.c.d.vc().Kc()}function OQ(e){this.c=e,this.a=new KE(this.c.a)}function MQ(e){this.a=new WE(e.gc()),Fie(this,e)}function IQ(e){ep.call(this,new m4),Fie(this,e)}function DQ(e,t){return e.a+=$ge(t,0,t.length),e}function NQ(e,t){return u0(t,e.c.length),e.c[t]}function RQ(e,t){return u0(t,e.a.length),e.a[t]}function LQ(e,t){fS(),$8.call(this,e),this.a=t}function BQ(e,t){return yme(nfe(yme(e.a).a,t.a))}function PQ(e,t){return bK(e),Doe(e,(bK(t),t))}function FQ(e,t){return bK(t),Doe(t,(bK(e),e))}function $Q(e,t){return MV(t,0,jQ(t[0],yme(1)))}function jQ(e,t){return BQ($H(e,162),$H(t,162))}function HQ(e){return e.c-$H(NQ(e.a,e.b),287).b}function UQ(e){return e.q?e.q:(Eq(),Eq(),cnt)}function QQ(e){return e.e.Hd().gc()*e.c.Hd().gc()}function zQ(e,t,n){return wD(t.d[e.g],n.d[e.g])}function WQ(e,t,n){return wD(e.d[t.p],e.d[n.p])}function GQ(e,t,n){return wD(e.d[t.p],e.d[n.p])}function VQ(e,t,n){return wD(e.d[t.p],e.d[n.p])}function KQ(e,t,n){return wD(e.d[t.p],e.d[n.p])}function YQ(e,t,n){return r.Math.min(n/e,1/t)}function qQ(e,t){return e?0:r.Math.max(0,t-1)}function XQ(e,t){var n;for(n=0;n<t;++n)e[n]=-1}function JQ(e){var t;return(t=oxe(e))?JQ(t):e}function ZQ(e,t){return null==e.a&&hPe(e),e.a[t]}function ez(e){return e.c?e.c.f:e.e.b}function tz(e){return e.c?e.c.g:e.e.a}function nz(e){pte.call(this,e.gc()),gV(this,e)}function rz(e,t){cD(),yv.call(this,t),this.a=e}function iz(e,t,n){this.a=e,MN.call(this,t,n,2)}function oz(e,t,n,r){nU(this,e,t,n,r)}function az(e,t){hKe(),Ov.call(this,e),this.a=t}function sz(e){this.b=new YE,this.a=e,this.c=-1}function lz(){this.d=new Nk(0,0),this.e=new LA}function cz(e){XR.call(this,0,0),this.a=e,this.b=0}function uz(e){this.a=e,this.c=new Nv,nle(this)}function dz(e){if(e.e.c!=e.b)throw jv(new mA)}function hz(e){if(e.c.e!=e.a)throw jv(new mA)}function fz(e){return qM(e)?0|e:_x(e)}function pz(e,t){return hKe(),new zG(e,t)}function gz(e,t){return null==e?null==t:vF(e,t)}function mz(e,t){return null==e?null==t:vme(e,t)}function vz(e,t,n){return aie(e.a,t),wG(e,t.g,n)}function Az(e,t,n){tue(0,t,e.length),Q7(e,0,t,n)}function bz(e,t,n){IZ(t,e.c.length),xC(e.c,t,n)}function yz(e,t,n){var r;for(r=0;r<t;++r)e[r]=n}function wz(e,t){var n;return Mle(n=Jhe(e),t),n}function _z(e,t){return!e&&(e=[]),e[e.length]=t,e}function xz(e,t){return!(void 0===e.a.get(t))}function Ez(e,t){return Wre(new ee,new op(e),t)}function Sz(e){return null==e?Ent:new my(bK(e))}function Cz(e,t){return rN(t,22)&&ER(e,$H(t,22))}function Tz(e,t){return rN(t,22)&&Mte(e,$H(t,22))}function kz(e){return jDe(e,26)*nXe+jDe(e,27)*rXe}function Oz(e){return Array.isArray(e)&&e.im===O}function Mz(e){e.b?Mz(e.b):e.d.dc()&&e.f.c.Bc(e.e)}function Iz(e,t){zP(e.c,t),e.b.c+=t.a,e.b.d+=t.b}function Dz(e,t){Iz(e,WP(new Nk(t.a,t.b),e.c))}function Nz(e,t){this.b=new YE,this.a=e,this.c=t}function Rz(){this.b=new Ot,this.c=new uX(this)}function Lz(){this.d=new Ae,this.e=new cX(this)}function Bz(){BZ(),this.f=new YE,this.e=new YE}function Pz(){$Z(),this.k=new Nv,this.d=new LA}function Fz(){Fz=M,dMt=new WI((sKe(),iTt),0)}function $z(){$z=M,Uet=new cz(N8(Met,jKe,1,0,5,1))}function jz(e,t,n){VIe(n,e,1),GH(t,new rT(n,e))}function Hz(e,t,n){Fwe(n,e,1),GH(t,new dT(n,e))}function Uz(e,t,n){return _G(e,new NC(t.a,n.a))}function Qz(e,t,n){return-wD(e.f[t.p],e.f[n.p])}function zz(e,t,n){var r;e&&((r=e.i).c=t,r.b=n)}function Wz(e,t,n){var r;e&&((r=e.i).d=t,r.a=n)}function Gz(e,t,n){return e.a=-1,GR(e,t.g+1,n),e}function Vz(e,t,n){return _$e(e,$H(t,49),7,n)}function Kz(e,t,n){return _$e(e,$H(t,49),3,n)}function Yz(e,t,n){this.a=e,IN.call(this,t,n,22)}function qz(e,t,n){this.a=e,IN.call(this,t,n,14)}function Xz(e,t,n,r){cD(),D1.call(this,e,t,n,r)}function Jz(e,t,n,r){cD(),D1.call(this,e,t,n,r)}function Zz(e,t){t.Bb&l6e&&!e.a.o&&(e.a.o=t)}function eW(e){return null!=e&&RG(e)&&!(e.im===O)}function tW(e){return!Array.isArray(e)&&e.im===O}function nW(e){return rN(e,15)?$H(e,15).Yc():e.Kc()}function rW(e){return e.Qc(N8(Met,jKe,1,e.gc(),5,1))}function iW(e,t){return ume(F9(e,t))?t.Qh():null}function oW(e){e?Fbe(e,(ME(),jtt)):ME()}function aW(e){this.a=($z(),Uet),this.d=$H(AV(e),47)}function sW(e,t,n,r){this.a=e,G6.call(this,e,t,n,r)}function lW(e){eC(),this.a=0,this.b=e-1,this.c=1}function cW(e){VD(this),this.g=e,yq(this),this._d()}function uW(e){return e.c?e.c:e.c=e.Id()}function dW(e){return e.d?e.d:e.d=e.Jd()}function hW(e){return e.c||(e.c=e.Dd())}function fW(e){return e.f||(e.f=e.Dc())}function pW(e){return e.i||(e.i=e.bc())}function gW(e){return hKe(),new mJ(10,e,0)}function mW(e){return qM(e)?""+e:UBe(e)}function vW(e){if(e.e.j!=e.d)throw jv(new mA)}function AW(e,t){return oae(uCe(qM(e)?Sae(e):e,t))}function bW(e,t){return oae(yIe(qM(e)?Sae(e):e,t))}function yW(e,t){return oae(qCe(qM(e)?Sae(e):e,t))}function wW(e,t){return dP((bK(e),e),(bK(t),t))}function _W(e,t){return She((bK(e),e),(bK(t),t))}function xW(e,t){return AV(t),e.a.Ad(t)&&!e.b.Ad(t)}function EW(e,t){return xD(e.l&t.l,e.m&t.m,e.h&t.h)}function SW(e,t){return xD(e.l|t.l,e.m|t.m,e.h|t.h)}function CW(e,t){return xD(e.l^t.l,e.m^t.m,e.h^t.h)}function TW(e,t){return Mde(e,(bK(t),new np(t)))}function kW(e,t){return Mde(e,(bK(t),new rp(t)))}function OW(e){return poe(),0!=$H(e,11).e.c.length}function MW(e){return poe(),0!=$H(e,11).g.c.length}function IW(e,t){return Tie(),She(t.a.o.a,e.a.o.a)}function DW(e,t,n){return _Ge(e,$H(t,11),$H(n,11))}function NW(e){return e.e?R6(e.e):null}function RW(e){e.d||(e.d=e.b.Kc(),e.c=e.b.gc())}function LW(e,t,n){e.a.Mb(n)&&(e.b=!0,t.td(n))}function BW(e,t){if(e<0||e>=t)throw jv(new EA)}function PW(e,t,n){return MV(t,0,jQ(t[0],n[0])),t}function FW(e,t,n){t.Ye(n,Uy(xB(LV(e.b,n)))*e.a)}function $W(e,t,n){return yBe(),Roe(e,t)&&Roe(e,n)}function jW(e){return uOe(),!e.Hc(eOt)&&!e.Hc(nOt)}function HW(e){return new Nk(e.c+e.b/2,e.d+e.a/2)}function UW(e,t){return t.kh()?Zue(e.b,$H(t,49)):t}function QW(e,t){this.e=e,this.d=64&t?t|lYe:t}function zW(e,t){this.c=0,this.d=e,this.b=64|t|lYe}function WW(e){this.b=new q6(11),this.a=(Sq(),e)}function GW(e){this.b=null,this.a=(Sq(),e||hnt)}function VW(e){this.a=nAe(e.a),this.b=new ZF(e.b)}function KW(e){this.b=e,rL.call(this,e),xN(this)}function YW(e){this.b=e,oL.call(this,e),EN(this)}function qW(e,t,n){this.a=e,eF.call(this,t,n,5,6)}function XW(e,t,n,r){this.b=e,MN.call(this,t,n,r)}function JW(e,t,n,r,i){b7.call(this,e,t,n,r,i,-1)}function ZW(e,t,n,r,i){y7.call(this,e,t,n,r,i,-1)}function eG(e,t,n,r){MN.call(this,e,t,n),this.b=r}function tG(e,t,n,r){AU.call(this,e,t,n),this.b=r}function nG(e){DO.call(this,e,!1),this.a=!1}function rG(e,t){this.b=e,sh.call(this,e.b),this.a=t}function iG(e,t){GV(),yE.call(this,e,sde(new qy(t)))}function oG(e,t){return hKe(),new rK(e,t,0)}function aG(e,t){return hKe(),new rK(6,e,t)}function sG(e,t){return vF(e.substr(0,t.length),t)}function lG(e,t){return WO(t)?eX(e,t):!!OX(e.f,t)}function cG(e,t){for(bK(t);e.Ob();)t.td(e.Pb())}function uG(e,t,n){kBe(),this.e=e,this.d=t,this.a=n}function dG(e,t,n,r){var i;(i=e.i).i=t,i.a=n,i.b=r}function hG(e){var t;for(t=e;t.f;)t=t.f;return t}function fG(e){var t;return SL(null!=(t=wle(e))),t}function pG(e){var t;return SL(null!=(t=vhe(e))),t}function gG(e,t){var n;return h6(t,n=e.a.gc()),n-t}function mG(e,t){var n;for(n=0;n<t;++n)e[n]=!1}function vG(e,t,n,r){var i;for(i=t;i<n;++i)e[i]=r}function AG(e,t,n,r){tue(t,n,e.length),vG(e,t,n,r)}function bG(e,t,n){BW(n,e.a.c.length),r5(e.a,n,t)}function yG(e,t,n){this.c=e,this.a=t,Eq(),this.b=n}function wG(e,t,n){var r;return r=e.b[t],e.b[t]=n,r}function _G(e,t){return null==e.a.zc(t,e)}function xG(e){if(!e)throw jv(new AA);return e.d}function EG(e,t){if(null==e)throw jv(new jy(t))}function SG(e,t){return!!t&&Fie(e,t)}function CG(e,t,n){return eue(e,t.g,n),aie(e.c,t),e}function TG(e){return xWe(e,(Fde(),PTt)),e.d=!0,e}function kG(e){return!e.j&&Af(e,FFe(e.g,e.b)),e.j}function OG(e){xL(-1!=e.b),s6(e.c,e.a=e.b),e.b=-1}function MG(e){e.f=new eI(e),e.g=new tI(e),aX(e)}function IG(e){return new LQ(null,HG(e,e.length))}function DG(e){return new aW(new GN(e.a.length,e.a))}function NG(e){return xD(~e.l&Eqe,~e.m&Eqe,~e.h&Sqe)}function RG(e){return typeof e===OKe||typeof e===NKe}function LG(e){return e==Lqe?N9e:e==Bqe?"-INF":""+e}function BG(e){return e==Lqe?N9e:e==Bqe?"-INF":""+e}function PG(e,t){return e>0?r.Math.log(e/t):-100}function FG(e,t){return Vue(e,t)<0?-1:Vue(e,t)>0?1:0}function $G(e,t,n){return EUe(e,$H(t,46),$H(n,167))}function jG(e,t){return $H(hW(uW(e.a)).Xb(t),42).cd()}function HG(e,t){return gte(t,e.length),new $U(e,t)}function UG(e,t){this.d=e,ON.call(this,e),this.e=t}function QG(e){this.d=(bK(e),e),this.a=0,this.c=dYe}function zG(e,t){Ov.call(this,1),this.a=e,this.b=t}function WG(e,t){return e.c?WG(e.c,t):GH(e.b,t),e}function GG(e,t,n){var r;return r=fee(e,t),n4(e,t,n),r}function VG(e,t){return v9(e.slice(0,t),e)}function KG(e,t,n){var r;for(r=0;r<t;++r)MV(e,r,n)}function YG(e,t,n,r,i){for(;t<n;)r[i++]=cY(e,t++)}function qG(e,t){return She(e.c.c+e.c.b,t.c.c+t.c.b)}function XG(e,t){return null==xle(e.a,t,(lR(),mtt))}function JG(e,t){n5(e.d,t,e.b.b,e.b),++e.a,e.c=null}function ZG(e,t){qD(e,rN(t,153)?t:$H(t,1937).gl())}function eV(e,t){qE(MY(e.Oc(),new Xi),new Tg(t))}function tV(e,t,n,r,i){Dxe(e,$H(l6(t.k,n),15),n,r,i)}function nV(e){e.s=NaN,e.c=NaN,XMe(e,e.e),XMe(e,e.j)}function rV(e){e.a=null,e.e=null,MG(e.b),e.d=0,++e.c}function iV(e){return r.Math.abs(e.d.e-e.e.e)-e.a}function oV(e,t,n){return $H(e.c._c(t,$H(n,133)),42)}function aV(){return ny(),Sse(Uw(Vet,1),MYe,538,0,[zet])}function sV(e){return xq(),qJ(SSe(e))==qJ(kSe(e))}function lV(e){MP.call(this),this.a=e,GH(e.a,this)}function cV(e,t){this.d=Ehe(e),this.c=t,this.a=.5*t}function uV(){m4.call(this),this.a=!0,this.b=!0}function dV(e){return(null==e.i&&Hje(e),e.i).length}function hV(e){return rN(e,99)&&!!($H(e,18).Bb&l6e)}function fV(e,t){++e.j,sEe(e,e.i,t),QOe(e,$H(t,332))}function pV(e,t){return t=e.nk(null,t),MEe(e,null,t)}function gV(e,t){return e.hi()&&(t=JJ(e,t)),e.Wh(t)}function mV(e,t,n){var r;return Kne(n,r=vV(e,t)),r}function vV(e,t){var n;return(n=new gle).j=e,n.d=t,n}function AV(e){if(null==e)throw jv(new pA);return e}function bV(e){return e.j||(e.j=new dh(e))}function yV(e){return e.f||(e.f=new zN(e))}function wV(e){return e.k||(e.k=new Kd(e))}function _V(e){return e.k||(e.k=new Kd(e))}function xV(e){return e.g||(e.g=new Vd(e))}function EV(e){return e.i||(e.i=new Xd(e))}function SV(e){return e.d||(e.d=new eh(e))}function CV(e){return AV(e),rN(e,475)?$H(e,475):$fe(e)}function TV(e){return rN(e,607)?e:new dJ(e)}function kV(e,t){return h2(t,e.c.b.c.gc()),new sE(e,t)}function OV(e,t,n){return hKe(),new _1(e,t,n)}function MV(e,t,n){return EL(null==n||K$e(e,n)),e[t]=n}function IV(e,t){var n;return h2(t,n=e.a.gc()),n-1-t}function DV(e,t){return e.a+=String.fromCharCode(t),e}function NV(e,t){return e.a+=String.fromCharCode(t),e}function RV(e,t){for(bK(t);e.c<e.d;)e.ze(t,e.c++)}function LV(e,t){return WO(t)?EJ(e,t):HO(OX(e.f,t))}function BV(e,t){return xq(),e==SSe(t)?kSe(t):SSe(t)}function PV(e,t){JV(e,new UV(null!=t.f?t.f:""+t.g))}function FV(e,t){JV(e,new UV(null!=t.f?t.f:""+t.g))}function $V(e){this.b=new Dv,this.a=new Dv,this.c=e}function jV(e){this.c=new U_,this.a=new Dv,this.b=e}function HV(e){MP.call(this),this.a=new U_,this.c=e}function UV(e){if(null==e)throw jv(new pA);this.a=e}function QV(e){xA(),this.b=new Dv,this.a=e,mze(this,e)}function zV(e){this.c=e,this.a=new YE,this.b=new YE}function WV(){WV=M,stt=new _h(!1),ltt=new _h(!0)}function GV(){GV=M,s$(),$et=new EX((Eq(),Eq(),lnt))}function VV(){VV=M,s$(),Ket=new mC((Eq(),Eq(),unt))}function KV(){KV=M,JIt=UOe(),pKe(),eDt&&Lwe()}function YV(e,t){return Tie(),$H(aY(e,t.d),15).Fc(t)}function qV(e,t,n,r){return 0==n||(n-r)/n<e.e||t>=e.g}function XV(e,t,n){return DPe(e,Aie(e,t,n))}function JV(e,t){var n;fee(e,n=e.a.length),n4(e,n,t)}function ZV(e,t){console[e].call(console,t)}function eK(e,t){var n;++e.j,n=e.Vi(),e.Ii(e.oi(n,t))}function tK(e,t,n){$H(t.b,65),kte(t.a,new wH(e,n,t))}function nK(e,t,n){yv.call(this,t),this.a=e,this.b=n}function rK(e,t,n){Ov.call(this,e),this.a=t,this.b=n}function iK(e,t,n){this.a=e,bv.call(this,t),this.b=n}function oK(e,t,n){this.a=e,j2.call(this,8,t,null,n)}function aK(e){this.a=(bK(P7e),P7e),this.b=e,new Db}function sK(e){this.c=e,this.b=this.c.a,this.a=this.c.e}function lK(e){this.c=e,this.b=e.a.d.a,dB(e.a.e,this)}function cK(e){xL(-1!=e.c),e.d.$c(e.c),e.b=e.c,e.c=-1}function uK(e){return r.Math.sqrt(e.a*e.a+e.b*e.b)}function dK(e,t){return BW(t,e.a.c.length),NQ(e.a,t)}function hK(e,t){return UO(e)===UO(t)||null!=e&&Dde(e,t)}function fK(e){return 0>=e?new VE:Gre(e-1)}function pK(e){return!!xRt&&eX(xRt,e)}function gK(e){return e?e.dc():!e.Kc().Ob()}function mK(e){return!e.a&&e.c?e.c.b:e.a}function vK(e){return!e.a&&(e.a=new MN(MMt,e,4)),e.a}function AK(e){return!e.d&&(e.d=new MN(GIt,e,1)),e.d}function bK(e){if(null==e)throw jv(new pA);return e}function yK(e){e.c?e.c.He():(e.d=!0,KRe(e))}function wK(e){e.c?wK(e.c):(Khe(e),e.d=!0)}function _K(e){_Y(e.a),e.b=N8(Met,jKe,1,e.b.length,5,1)}function xK(e,t){return wD(t.j.c.length,e.j.c.length)}function EK(e,t){e.c<0||e.b.b<e.c?cM(e.b,t):e.a._e(t)}function SK(e,t){var n;(n=e.Yg(t))>=0?e.Bh(n):rOe(e,t)}function CK(e){return e.c.i.c==e.d.i.c}function TK(e){if(4!=e.p)throw jv(new fA);return e.e}function kK(e){if(3!=e.p)throw jv(new fA);return e.e}function OK(e){if(6!=e.p)throw jv(new fA);return e.f}function MK(e){if(6!=e.p)throw jv(new fA);return e.k}function IK(e){if(3!=e.p)throw jv(new fA);return e.j}function DK(e){if(4!=e.p)throw jv(new fA);return e.j}function NK(e){return!e.b&&(e.b=new _v(new Nb)),e.b}function RK(e){return-2==e.c&&pf(e,oSe(e.g,e.b)),e.c}function LK(e,t){var n;return(n=vV("",e)).n=t,n.i=1,n}function BK(e,t){Iz($H(t.b,65),e),kte(t.a,new Op(e))}function PK(e,t){c7((!e.a&&(e.a=new aP(e,e)),e.a),t)}function FK(e,t){this.b=e,UG.call(this,e,t),xN(this)}function $K(e,t){this.b=e,LF.call(this,e,t),EN(this)}function jK(e,t,n,r){mE.call(this,e,t),this.d=n,this.a=r}function HK(e,t,n,r){mE.call(this,e,n),this.a=t,this.f=r}function UK(e,t){GD.call(this,Vre(AV(e),AV(t))),this.a=t}function QK(){fSe.call(this,E9e,(nx(),hNt)),GQe(this)}function zK(){fSe.call(this,V7e,(tx(),XIt)),kUe(this)}function WK(){pE.call(this,"DELAUNAY_TRIANGULATION",0)}function GK(e){return String.fromCharCode.apply(null,e)}function VK(e,t,n){return WO(t)?vZ(e,t,n):yke(e.f,t,n)}function KK(e){return Eq(),e?e.ve():(Sq(),Sq(),pnt)}function YK(e,t,n){return Dse(),n.pg(e,$H(t.cd(),146))}function qK(e,t){return JU(),new sAe(new nR(e),new tR(t))}function XK(e){return ure(e,DYe),Zee(nfe(nfe(5,e),e/10|0))}function JK(){JK=M,jet=new ly(Sse(Uw(Het,1),bYe,42,0,[]))}function ZK(e){return!e.d&&(e.d=new jf(e.c.Cc())),e.d}function eY(e){return!e.a&&(e.a=new Iw(e.c.vc())),e.a}function tY(e){return!e.b&&(e.b=new Ow(e.c.ec())),e.b}function nY(e,t){for(;t-- >0;)e=e<<1|(e<0?1:0);return e}function rY(e,t){return UO(e)===UO(t)||null!=e&&Dde(e,t)}function iY(e,t){return lR(),$H(t.b,19).a<e}function oY(e,t){return lR(),$H(t.a,19).a<e}function aY(e,t){return Cz(e.a,t)?e.b[$H(t,22).g]:null}function sY(e,t,n,r){e.a=cL(e.a,0,t)+""+r+JO(e.a,n)}function lY(e,t){e.u.Hc((uOe(),eOt))&&SOe(e,t),Q6(e,t)}function cY(e,t){return d0(t,e.length),e.charCodeAt(t)}function uY(){fy.call(this,"There is no more element.")}function dY(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function hY(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function fY(e,t,n,r){return Loe(e,t,n,!1),Xde(e,r),e}function pY(e){return e.j.c=N8(Met,jKe,1,0,5,1),e.a=-1,e}function gY(e){return!e.c&&(e.c=new lF(LMt,e,5,8)),e.c}function mY(e){return!e.b&&(e.b=new lF(LMt,e,4,7)),e.b}function vY(e){return!e.n&&(e.n=new eG(UMt,e,1,7)),e.n}function AY(e){return!e.c&&(e.c=new eG(zMt,e,9,9)),e.c}function bY(e){return e.e==C9e&&mf(e,_me(e.g,e.b)),e.e}function yY(e){return e.f==C9e&&vf(e,gwe(e.g,e.b)),e.f}function wY(e){var t;return!(t=e.b)&&(e.b=t=new Yd(e)),t}function _Y(e){var t;for(t=e.Kc();t.Ob();)t.Pb(),t.Qb()}function xY(e){if(Qfe(e.d),e.d.d!=e.c)throw jv(new mA)}function EY(e,t){this.b=e,this.c=t,this.a=new KE(this.b)}function SY(e,t,n){this.a=WYe,this.d=e,this.b=t,this.c=n}function CY(e,t){this.d=(bK(e),e),this.a=16449,this.c=t}function TY(e,t){qhe(e,Uy(Lne(t,"x")),Uy(Lne(t,"y")))}function kY(e,t){qhe(e,Uy(Lne(t,"x")),Uy(Lne(t,"y")))}function OY(e,t){return Khe(e),new LQ(e,new K7(t,e.a))}function MY(e,t){return Khe(e),new LQ(e,new x6(t,e.a))}function IY(e,t){return Khe(e),new OB(e,new w6(t,e.a))}function DY(e,t){return Khe(e),new MB(e,new _6(t,e.a))}function NY(e,t){return new gX($H(AV(e),62),$H(AV(t),62))}function RY(e,t){return yS(),She((bK(e),e),(bK(t),t))}function LY(){return hS(),Sse(Uw(Sot,1),MYe,481,0,[not])}function BY(){return CS(),Sse(Uw(Yxt,1),MYe,482,0,[Wxt])}function PY(){return TS(),Sse(Uw(Zxt,1),MYe,551,0,[Kxt])}function FY(){return kS(),Sse(Uw(VEt,1),MYe,530,0,[UEt])}function $Y(e){this.a=new Dv,this.e=N8(kRt,sYe,48,e,0,2)}function jY(e,t,n,r){this.a=e,this.e=t,this.d=n,this.c=r}function HY(e,t,n,r){this.a=e,this.c=t,this.b=n,this.d=r}function UY(e,t,n,r){this.c=e,this.b=t,this.a=n,this.d=r}function QY(e,t,n,r){this.c=e,this.b=t,this.d=n,this.a=r}function zY(e,t,n,r){this.c=e,this.d=t,this.b=n,this.a=r}function WY(e,t,n,r){this.a=e,this.d=t,this.c=n,this.b=r}function GY(e,t,n,r){pE.call(this,e,t),this.a=n,this.b=r}function VY(e,t,n,r){this.a=e,this.c=t,this.d=n,this.b=r}function KY(e,t,n){wUe(e.a,n),Jae(n),OIe(e.b,n),nQe(t,n)}function YY(e,t,n){var r;return r=MGe(e),t.Kh(n,r)}function qY(e,t){var n,r;return(n=e/t)>(r=CJ(n))&&++r,r}function XY(e){var t;return rne(t=new Bv,e),t}function JY(e){var t;return RSe(t=new Bv,e),t}function ZY(e,t){return Boe(t,LV(e.f,t)),null}function eq(e){return Yre(e)||null}function tq(e){return!e.b&&(e.b=new eG(BMt,e,12,3)),e.b}function nq(e){return null!=e&&NE(bIt,e.toLowerCase())}function rq(e,t){return She(tz(e)*ez(e),tz(t)*ez(t))}function iq(e,t){return She(tz(e)*ez(e),tz(t)*ez(t))}function oq(e,t){return She(e.d.c+e.d.b/2,t.d.c+t.d.b/2)}function aq(e,t){return She(e.g.c+e.g.b/2,t.g.c+t.g.b/2)}function sq(e,t,n){n.a?Cne(e,t.b-e.f/2):Sne(e,t.a-e.g/2)}function lq(e,t,n,r){this.a=e,this.b=t,this.c=n,this.d=r}function cq(e,t,n,r){this.a=e,this.b=t,this.c=n,this.d=r}function uq(e,t,n,r){this.e=e,this.a=t,this.c=n,this.d=r}function dq(e,t,n,r){this.a=e,this.c=t,this.d=n,this.b=r}function hq(e,t,n,r){cD(),e6.call(this,t,n,r),this.a=e}function fq(e,t,n,r){cD(),e6.call(this,t,n,r),this.a=e}function pq(e,t){this.a=e,kB.call(this,e,$H(e.d,15).Zc(t))}function gq(e){this.f=e,this.c=this.f.e,e.f>0&&o_e(this)}function mq(e,t,n,r){this.b=e,this.c=r,mM.call(this,t,n)}function vq(e){return SL(e.b<e.d.gc()),e.d.Xb(e.c=e.b++)}function Aq(e){e.a.a=e.c,e.c.b=e.a,e.a.b=e.c.a=null,e.b=0}function bq(e,t){return e.b=t.b,e.c=t.c,e.d=t.d,e.a=t.a,e}function yq(e){return e.n&&(e.e!==FYe&&e._d(),e.j=null),e}function wq(e){return qU(null==e||RG(e)&&!(e.im===O)),e}function _q(e){this.b=new Dv,pse(this.b,this.b),this.a=e}function xq(){xq=M,Eot=new Dv,xot=new Nv,_ot=new Dv}function Eq(){Eq=M,lnt=new C,cnt=new k,unt=new S}function Sq(){Sq=M,hnt=new P,fnt=new P,pnt=new F}function Cq(){Cq=M,lrt=new ge,urt=new Lz,crt=new me}function Tq(){256==irt&&(trt=nrt,nrt=new i,irt=0),++irt}function kq(e){return e.f||(e.f=new gE(e,e.c))}function Oq(e){return KOe(e)&&Hy(_B(XIe(e,(jVe(),fmt))))}function Mq(e,t){return qOe(e,$H(vSe(t,(jVe(),Gmt)),19),t)}function Iq(e,t){return _de(e.j,t.s,t.c)+_de(t.e,e.s,e.c)}function Dq(e,t){e.e&&!e.e.a&&(Fv(e.e,t),Dq(e.e,t))}function Nq(e,t){e.d&&!e.d.a&&(Fv(e.d,t),Nq(e.d,t))}function Rq(e,t){return-She(tz(e)*ez(e),tz(t)*ez(t))}function Lq(e){return $H(e.cd(),146).tg()+":"+$fe(e.dd())}function Bq(e){var t;U$(),(t=$H(e.g,10)).n.a=e.d.c+t.d.b}function Pq(e,t,n){return xS(),Nfe($H(LV(e.e,t),522),n)}function Fq(e,t){return Zle(e),Zle(t),Sy($H(e,22),$H(t,22))}function $q(e,t,n){e.i=0,e.e=0,t!=n&&Wle(e,t,n)}function jq(e,t,n){e.i=0,e.e=0,t!=n&&Gle(e,t,n)}function Hq(e,t,n){nte(e,t,new xh(WF(n)))}function Uq(e,t,n,r,i,o){y7.call(this,e,t,n,r,i,o?-2:-1)}function Qq(e,t,n,r){IO.call(this,t,n),this.b=e,this.a=r}function zq(e,t){new YE,this.a=new bb,this.b=e,this.c=t}function Wq(e,t){return $H(vSe(e,(lKe(),rht)),15).Fc(t),t}function Gq(e,t){if(null==e)throw jv(new jy(t));return e}function Vq(e){return!e.q&&(e.q=new eG(VIt,e,11,10)),e.q}function Kq(e){return!e.s&&(e.s=new eG(PIt,e,21,17)),e.s}function Yq(e){return!e.a&&(e.a=new eG(QMt,e,10,11)),e.a}function qq(e){return rN(e,14)?new MQ($H(e,14)):HH(e.Kc())}function Xq(e){return new HN(e,e.e.Hd().gc()*e.c.Hd().gc())}function Jq(e){return new UN(e,e.e.Hd().gc()*e.c.Hd().gc())}function Zq(e){return e&&e.hashCode?e.hashCode():SR(e)}function eX(e,t){return null==t?!!OX(e.f,null):xz(e.g,t)}function tX(e){return AV(e),ebe(new aW(XN(e.a.Kc(),new u)))}function nX(e){return Eq(),rN(e,54)?new Mw(e):new dR(e)}function rX(e,t,n){return!!e.f&&e.f.Ne(t,n)}function iX(e,t){return e.a=cL(e.a,0,t)+""+JO(e.a,t+1),e}function oX(e,t){var n;return(n=eN(e.a,t))&&(t.d=null),n}function aX(e){var t,n;t=0|(n=e).$modCount,n.$modCount=t+1}function sX(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}function lX(e){this.b=e,this.a=new fx($H(AV(new et),62))}function cX(e){this.c=e,this.b=new fx($H(AV(new ve),62))}function uX(e){this.c=e,this.b=new fx($H(AV(new kt),62))}function dX(){this.a=new KA,this.b=new lb,this.d=new Lt}function hX(){this.a=new bb,this.b=(ure(3,OYe),new q6(3))}function fX(){this.b=new LA,this.d=new YE,this.e=new ab}function pX(e){this.c=e.c,this.d=e.d,this.b=e.b,this.a=e.a}function gX(e,t){Qb.call(this,new GW(e)),this.a=e,this.b=t}function mX(){tCe(this,new Rd),this.wb=(KV(),JIt),tx()}function vX(e){kEe(e,"No crossing minimization",1),jCe(e)}function AX(e){Rw(),r.setTimeout(function(){throw e},0)}function bX(e){return e.u||(S5(e),e.u=new oP(e,e)),e.u}function yX(e){return $H(Aae(e,16),26)||e.zh()}function wX(e,t){return rN(t,146)&&vF(e.b,$H(t,146).tg())}function _X(e,t){return e.a?t.Wg().Kc():$H(t.Wg(),69).Zh()}function xX(e){return e.k==(oCe(),Cst)&&IL(e,(lKe(),Qdt))}function EX(e){this.a=(Eq(),rN(e,54)?new Mw(e):new dR(e))}function SX(){var e,t;SX=M,t=!Rge(),e=new g,ttt=t?new x:e}function CX(e,t){var n;return n=J_(e.gm),null==t?n:n+": "+t}function TX(e,t){var n;return y4(n=e.b.Qc(t),e.b.gc()),n}function kX(e,t){if(null==e)throw jv(new jy(t));return e}function OX(e,t){return lue(e,t,gZ(e,null==t?0:e.b.se(t)))}function MX(e,t,n){return n>=0&&vF(e.substr(n,t.length),t)}function IX(e,t,n,r,i,o,a){return new d4(e.e,t,n,r,i,o,a)}function DX(e,t,n,r,i,o){this.a=e,bre.call(this,t,n,r,i,o)}function NX(e,t,n,r,i,o){this.a=e,bre.call(this,t,n,r,i,o)}function RX(e,t){this.g=e,this.d=Sse(Uw(kst,1),i0e,10,0,[t])}function LX(e,t){this.e=e,this.a=Met,this.b=OPe(t),this.c=t}function BX(e,t){DP.call(this),Nte(this),this.a=e,this.c=t}function PX(e,t,n,r){MV(e.c[t.g],n.g,r),MV(e.c[n.g],t.g,r)}function FX(e,t,n,r){MV(e.c[t.g],t.g,n),MV(e.b[t.g],t.g,r)}function $X(){return O6(),Sse(Uw(rbt,1),MYe,376,0,[XAt,qAt])}function jX(){return p9(),Sse(Uw(Xut,1),MYe,479,0,[Uut,Hut])}function HX(){return Pee(),Sse(Uw(Iut,1),MYe,419,0,[Eut,Sut])}function UX(){return V8(),Sse(Uw(uut,1),MYe,422,0,[rut,iut])}function QX(){return Q2(),Sse(Uw(Uht,1),MYe,420,0,[Odt,Mdt])}function zX(){return z9(),Sse(Uw(QAt,1),MYe,421,0,[BAt,PAt])}function WX(){return K4(),Sse(Uw(Vbt,1),MYe,523,0,[jbt,$bt])}function GX(){return k6(),Sse(Uw(Nyt,1),MYe,520,0,[xyt,_yt])}function VX(){return pJ(),Sse(Uw(iyt,1),MYe,516,0,[Zbt,Jbt])}function KX(){return aZ(),Sse(Uw(Eyt,1),MYe,515,0,[nyt,ryt])}function YX(){return fJ(),Sse(Uw($yt,1),MYe,455,0,[Iyt,Dyt])}function qX(){return $1(),Sse(Uw(qwt,1),MYe,425,0,[jwt,$wt])}function XX(){return sZ(),Sse(Uw(Hwt,1),MYe,480,0,[Lwt,Bwt])}function JX(){return Sie(),Sse(Uw(t_t,1),MYe,495,0,[Kwt,Ywt])}function ZX(){return R7(),Sse(Uw(u_t,1),MYe,426,0,[r_t,i_t])}function eJ(){return Ise(),Sse(Uw(YEt,1),MYe,429,0,[GEt,WEt])}function tJ(){return M6(),Sse(Uw(aEt,1),MYe,430,0,[Jxt,Xxt])}function nJ(){return lve(),Sse(Uw(Art,1),MYe,428,0,[frt,hrt])}function rJ(){return Lee(),Sse(Uw(Brt,1),MYe,427,0,[mrt,vrt])}function iJ(){return Bee(),Sse(Uw(Mat,1),MYe,424,0,[Rot,Lot])}function oJ(){return Eie(),Sse(Uw(Gst,1),MYe,511,0,[Hst,jst])}function aJ(e,t,n,r){return n>=0?e.jh(t,n,r):e.Sg(null,n,r)}function sJ(e){return 0==e.b.b?e.a.$e():fU(e.b)}function lJ(e){if(5!=e.p)throw jv(new fA);return fz(e.f)}function cJ(e){if(5!=e.p)throw jv(new fA);return fz(e.k)}function uJ(e){return UO(e.a)===UO((hoe(),CDt))&&LQe(e),e.a}function dJ(e){this.a=$H(AV(e),271),this.b=(Eq(),new fR(e))}function hJ(e,t){qh(this,new Nk(e.a,e.b)),Xh(this,QH(t))}function fJ(){fJ=M,Iyt=new ak(rJe,0),Dyt=new ak(iJe,1)}function pJ(){pJ=M,Zbt=new rk(iJe,0),Jbt=new rk(rJe,1)}function gJ(){iy.call(this,new WE(ete(12))),iR(!0),this.a=2}function mJ(e,t,n){hKe(),Ov.call(this,e),this.b=t,this.a=n}function vJ(e,t,n){cD(),yv.call(this,t),this.a=e,this.b=n}function AJ(e){DP.call(this),Nte(this),this.a=e,this.c=!0}function bJ(e){var t;t=e.c.d.b,e.b=t,e.a=e.c.d,t.a=e.c.d.b=e}function yJ(e){gre(e.a),LI(e.a),Zfe(new Sp(e.a))}function wJ(e,t){aPe(e,!0),kte(e.e.wf(),new M$(e,!0,t))}function _J(e,t){return r4(t),Yne(e,N8(kRt,lqe,25,t,15,1),t)}function xJ(e,t){return xq(),e==qJ(SSe(t))||e==qJ(kSe(t))}function EJ(e,t){return null==t?HO(OX(e.f,null)):lC(e.g,t)}function SJ(e){return 0==e.b?null:(SL(0!=e.b),Ote(e,e.a.a))}function CJ(e){return 0|Math.max(Math.min(e,RKe),-2147483648)}function TJ(e,t){var n=Jet[e.charCodeAt(0)];return null==n?e:n}function kJ(e,t){return Gq(e,"set1"),Gq(t,"set2"),new wE(e,t)}function OJ(e,t){return zP(HL(Jte(e.f,t)),e.f.d)}function MJ(e,t){var n;return Yze(e,t,n=new Q),n.d}function IJ(e,t,n,r){var i;i=new FP,t.a[n.g]=i,vz(e.b,r,i)}function DJ(e,t,n){var r;(r=e.Yg(t))>=0?e.sh(r,n):_Ne(e,t,n)}function NJ(e,t,n){lZ(),e&&VK(aIt,e,t),e&&VK(oIt,e,n)}function RJ(e,t,n){this.i=new Dv,this.b=e,this.g=t,this.a=n}function LJ(e,t,n){this.c=new Dv,this.e=e,this.f=t,this.b=n}function BJ(e,t,n){this.a=new Dv,this.e=e,this.f=t,this.c=n}function PJ(e,t){VD(this),this.f=t,this.g=e,yq(this),this._d()}function FJ(e,t){var n;n=e.q.getHours(),e.q.setDate(t),uHe(e,n)}function $J(e,t){var n;for(AV(t),n=e.a;n;n=n.c)t.Od(n.g,n.i)}function jJ(e){var t;return Mle(t=new dx(ete(e.length)),e),t}function HJ(e){function t(){}return t.prototype=e||{},new t}function UJ(e,t){return!!hse(e,t)&&(ere(e),!0)}function QJ(e,t){if(null==t)throw jv(new pA);return ome(e,t)}function zJ(e){if(e.qe())return null;var t=e.n;return EKe[t]}function WJ(e){return e.Db>>16!=3?null:$H(e.Cb,33)}function GJ(e){return e.Db>>16!=9?null:$H(e.Cb,33)}function VJ(e){return e.Db>>16!=6?null:$H(e.Cb,79)}function KJ(e){return e.Db>>16!=7?null:$H(e.Cb,235)}function YJ(e){return e.Db>>16!=7?null:$H(e.Cb,160)}function qJ(e){return e.Db>>16!=11?null:$H(e.Cb,33)}function XJ(e,t){var n;return(n=e.Yg(t))>=0?e.lh(n):HOe(e,t)}function JJ(e,t){var n;return aSe(n=new IQ(t),e),new ZF(n)}function ZJ(e){var t;return t=e.d,t=e.si(e.f),c7(e,t),t.Ob()}function eZ(e,t){return e.b+=t.b,e.c+=t.c,e.d+=t.d,e.a+=t.a,e}function tZ(e,t){return r.Math.abs(e)<r.Math.abs(t)?e:t}function nZ(e){return!e.a&&(e.a=new eG(QMt,e,10,11)),e.a.i>0}function rZ(){this.a=new cI,this.e=new LA,this.g=0,this.i=0}function iZ(e){this.a=e,this.b=N8(Pbt,sYe,1944,e.e.length,0,2)}function oZ(e,t,n){var r;r=Dle(e,t,n),e.b=new vie(r.c.length)}function aZ(){aZ=M,nyt=new nk(gJe,0),ryt=new nk("UP",1)}function sZ(){sZ=M,Lwt=new dk(z3e,0),Bwt=new dk("FAN",1)}function lZ(){lZ=M,aIt=new Nv,oIt=new Nv,FO(Ant,new gl)}function cZ(e){if(0!=e.p)throw jv(new fA);return qO(e.f,0)}function uZ(e){if(0!=e.p)throw jv(new fA);return qO(e.k,0)}function dZ(e){return e.Db>>16!=3?null:$H(e.Cb,147)}function hZ(e){return e.Db>>16!=6?null:$H(e.Cb,235)}function fZ(e){return e.Db>>16!=17?null:$H(e.Cb,26)}function pZ(e,t){var n=e.a=e.a||[];return n[t]||(n[t]=e.le(t))}function gZ(e,t){var n;return null==(n=e.a.get(t))?new Array:n}function mZ(e,t){var n;n=e.q.getHours(),e.q.setMonth(t),uHe(e,n)}function vZ(e,t,n){return null==t?yke(e.f,null,n):ofe(e.g,t,n)}function AZ(e,t,n,r,i,o){return new D9(e.e,t,e.aj(),n,r,i,o)}function bZ(e,t,n){return e.a=cL(e.a,0,t)+""+n+JO(e.a,t),e}function yZ(e,t,n){return GH(e.a,(JK(),QAe(t,n),new mE(t,n))),e}function wZ(e){return aR(e.c),e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function _Z(e){return aR(e.e),e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function xZ(e,t){e.d&&A9(e.d.e,e),e.d=t,e.d&&GH(e.d.e,e)}function EZ(e,t){e.c&&A9(e.c.g,e),e.c=t,e.c&&GH(e.c.g,e)}function SZ(e,t){e.c&&A9(e.c.a,e),e.c=t,e.c&&GH(e.c.a,e)}function CZ(e,t){e.i&&A9(e.i.j,e),e.i=t,e.i&&GH(e.i.j,e)}function TZ(e,t,n){this.a=t,this.c=e,this.b=(AV(n),new ZF(n))}function kZ(e,t,n){this.a=t,this.c=e,this.b=(AV(n),new ZF(n))}function OZ(e,t){this.a=e,this.c=$D(this.a),this.b=new pX(t)}function MZ(e){return Khe(e),OY(e,new mp(new LA))}function IZ(e,t){if(e<0||e>t)throw jv(new Oy(yXe+e+wXe+t))}function DZ(e,t){return Tz(e.a,t)?wG(e,$H(t,22).g,null):null}function NZ(e){return Eue(),lR(),0!=$H(e.a,81).d.e}function RZ(){RZ=M,Get=uue((ny(),Sse(Uw(Vet,1),MYe,538,0,[zet])))}function LZ(){LZ=M,gbt=Gz(new $2,(ASe(),$at),(uKe(),Hlt))}function BZ(){BZ=M,mbt=Gz(new $2,(ASe(),$at),(uKe(),Hlt))}function PZ(){PZ=M,Abt=Gz(new $2,(ASe(),$at),(uKe(),Hlt))}function FZ(){FZ=M,Qbt=fQ(new $2,(ASe(),$at),(uKe(),flt))}function $Z(){$Z=M,Kbt=fQ(new $2,(ASe(),$at),(uKe(),flt))}function jZ(){jZ=M,Xbt=fQ(new $2,(ASe(),$at),(uKe(),flt))}function HZ(){HZ=M,ayt=fQ(new $2,(ASe(),$at),(uKe(),flt))}function UZ(){UZ=M,Qwt=Gz(new $2,(Qye(),Fyt),(RTe(),Qyt))}function QZ(e,t,n,r){this.c=e,this.d=r,GZ(this,t),VZ(this,n)}function zZ(e){this.c=new YE,this.b=e.b,this.d=e.c,this.a=e.a}function WZ(e){this.a=r.Math.cos(e),this.b=r.Math.sin(e)}function GZ(e,t){e.a&&A9(e.a.k,e),e.a=t,e.a&&GH(e.a.k,e)}function VZ(e,t){e.b&&A9(e.b.f,e),e.b=t,e.b&&GH(e.b.f,e)}function KZ(e,t){tK(e,e.b,e.c),$H(e.b.b,65),t&&$H(t.b,65).b}function YZ(e,t){Qhe(e,t),rN(e.Cb,88)&&Oke(S5($H(e.Cb,88)),2)}function qZ(e,t){rN(e.Cb,88)&&Oke(S5($H(e.Cb,88)),4),Die(e,t)}function XZ(e,t){rN(e.Cb,179)&&($H(e.Cb,179).tb=null),Die(e,t)}function JZ(e,t){return XS(),lee(t)?new uQ(t,e):new NO(t,e)}function ZZ(e,t){null!=t.c&&JV(e,new UV(t.c))}function e0(e){var t;return tx(),rne(t=new Bv,e),t}function t0(e){var t;return tx(),rne(t=new Bv,e),t}function n0(e,t){var n;return n=new jV(e),t.c[t.c.length]=n,n}function r0(e,t){var n;return(n=$H(ude(kq(e.a),t),14))?n.gc():0}function i0(e){return Khe(e),Sq(),Sq(),Ate(e,fnt)}function o0(e){for(var t;;)if(t=e.Pb(),!e.Ob())return t}function a0(e,t){zb.call(this,new WE(ete(e))),ure(t,aYe),this.a=t}function s0(e,t,n){jde(t,n,e.gc()),this.c=e,this.a=t,this.b=n-t}function l0(e,t,n){var r;jde(t,n,e.c.length),r=n-t,Sx(e.c,t,r)}function c0(e,t){lN(e,fz(e1(bW(t,24),sXe)),fz(e1(t,sXe)))}function u0(e,t){if(e<0||e>=t)throw jv(new Oy(yXe+e+wXe+t))}function d0(e,t){if(e<0||e>=t)throw jv(new kw(yXe+e+wXe+t))}function h0(e,t){this.b=(bK(e),e),this.a=t&Pqe?t:64|t|lYe}function f0(e){RI(this),SA(this.a,ble(r.Math.max(8,e))<<1)}function p0(e){return Ole(Sse(Uw(SSt,1),sYe,8,0,[e.i.n,e.n,e.a]))}function g0(){return Hce(),Sse(Uw(Jnt,1),MYe,132,0,[Qnt,znt,Wnt])}function m0(){return Rte(),Sse(Uw(Vrt,1),MYe,232,0,[Urt,Qrt,zrt])}function v0(){return q7(),Sse(Uw(eit,1),MYe,461,0,[Yrt,Krt,qrt])}function A0(){return U9(),Sse(Uw(kit,1),MYe,462,0,[rit,nit,tit])}function b0(){return $de(),Sse(Uw(vst,1),MYe,423,0,[hst,dst,ust])}function y0(){return H9(),Sse(Uw(jat,1),MYe,379,0,[kat,Tat,Oat])}function w0(){return xue(),Sse(Uw(hAt,1),MYe,378,0,[rAt,iAt,oAt])}function _0(){return kre(),Sse(Uw(gut,1),MYe,314,0,[lut,sut,cut])}function x0(){return ore(),Sse(Uw(_ut,1),MYe,337,0,[hut,put,fut])}function E0(){return qse(),Sse(Uw($ut,1),MYe,450,0,[Out,kut,Mut])}function S0(){return Cie(),Sse(Uw(Gct,1),MYe,361,0,[Lct,Rct,Nct])}function C0(){return Q9(),Sse(Uw(Idt,1),MYe,303,0,[Sdt,Cdt,Edt])}function T0(){return Bae(),Sse(Uw(Tdt,1),MYe,292,0,[ydt,wdt,bdt])}function k0(){return ire(),Sse(Uw(KAt,1),MYe,452,0,[UAt,jAt,HAt])}function O0(){return vle(),Sse(Uw(FAt,1),MYe,339,0,[DAt,IAt,NAt])}function M0(){return joe(),Sse(Uw(JAt,1),MYe,375,0,[WAt,GAt,VAt])}function I0(){return Mse(),Sse(Uw(Ebt,1),MYe,377,0,[dbt,hbt,ubt])}function D0(){return zce(),Sse(Uw(lbt,1),MYe,336,0,[ebt,tbt,nbt])}function N0(){return foe(),Sse(Uw(fbt,1),MYe,338,0,[sbt,obt,abt])}function R0(){return are(),Sse(Uw(Nbt,1),MYe,454,0,[kbt,Obt,Mbt])}function L0(){return Cfe(),Sse(Uw(o_t,1),MYe,442,0,[e_t,Jwt,Zwt])}function B0(){return jce(),Sse(Uw(U_t,1),MYe,380,0,[s_t,l_t,c_t])}function P0(){return Efe(),Sse(Uw(Dxt,1),MYe,381,0,[X_t,J_t,q_t])}function F0(){return $oe(),Sse(Uw(Y_t,1),MYe,293,0,[W_t,G_t,z_t])}function $0(){return Sfe(),Sse(Uw(Gxt,1),MYe,437,0,[jxt,Hxt,Uxt])}function j0(){return ode(),Sse(Uw(Ekt,1),MYe,334,0,[mkt,gkt,vkt])}function H0(){return Lte(),Sse(Uw(JTt,1),MYe,272,0,[QTt,zTt,WTt])}function U0(e,t){return bDe(e,t,rN(t,99)&&!!($H(t,18).Bb&$qe))}function Q0(e,t,n){var r;return(r=rUe(e,t,!1)).b<=t&&r.a<=n}function z0(e,t,n){var r;(r=new aa).b=t,r.a=n,++t.b,GH(e.d,r)}function W0(e,t){var n;return _L(!!(n=(bK(e),e).g)),bK(t),n(t)}function G0(e,t){var n,r;return r=gG(e,t),n=e.a.Zc(r),new bE(e,n)}function V0(e){return e.Db>>16!=6?null:$H(rIe(e),235)}function K0(e){if(2!=e.p)throw jv(new fA);return fz(e.f)&KYe}function Y0(e){if(2!=e.p)throw jv(new fA);return fz(e.k)&KYe}function q0(e){return e.a==(L5(),ZDt)&&ff(e,eNe(e.g,e.b)),e.a}function X0(e){return e.d==(L5(),ZDt)&&gf(e,DFe(e.g,e.b)),e.d}function J0(e){return SL(e.a<e.c.c.length),e.b=e.a++,e.c.c[e.b]}function Z0(e,t){e.b=e.b|t.b,e.c=e.c|t.c,e.d=e.d|t.d,e.a=e.a|t.a}function e1(e,t){return oae(EW(qM(e)?Sae(e):e,qM(t)?Sae(t):t))}function t1(e,t){return oae(SW(qM(e)?Sae(e):e,qM(t)?Sae(t):t))}function n1(e,t){return oae(CW(qM(e)?Sae(e):e,qM(t)?Sae(t):t))}function r1(e){return nfe(AW(cae(jDe(e,32)),32),cae(jDe(e,32)))}function i1(e){return AV(e),rN(e,14)?new ZF($H(e,14)):jH(e.Kc())}function o1(e,t){return Ree(),e.c==t.c?She(t.d,e.d):She(e.c,t.c)}function a1(e,t){return Ree(),e.c==t.c?She(e.d,t.d):She(e.c,t.c)}function s1(e,t){return Ree(),e.c==t.c?She(e.d,t.d):She(t.c,e.c)}function l1(e,t){return Ree(),e.c==t.c?She(t.d,e.d):She(t.c,e.c)}function c1(e,t){var n;n=Uy(xB(e.a.We((sKe(),kTt)))),VGe(e,t,n)}function u1(e,t){var n;n=$H(LV(e.g,t),57),kte(t.d,new aT(e,n))}function d1(e,t){var n,r;return(n=aye(e))<(r=aye(t))?-1:n>r?1:0}function h1(e,t){var n;return n=E9(t),$H(LV(e.c,n),19).a}function f1(e,t){var n;for(n=e+"";n.length<t;)n="0"+n;return n}function p1(e){return null==e.c||0==e.c.length?"n_"+e.g:"n_"+e.c}function g1(e){return null==e.c||0==e.c.length?"n_"+e.b:"n_"+e.c}function m1(e,t){return e&&e.equals?e.equals(t):UO(e)===UO(t)}function v1(e,t){return 0==t?!!e.o&&0!=e.o.f:mve(e,t)}function A1(e,t,n){var r;e.n&&t&&n&&(r=new el,GH(e.e,r))}function b1(e,t,n){var r;r=e.d[t.p],e.d[t.p]=e.d[n.p],e.d[n.p]=r}function y1(e,t,n){this.d=e,this.j=t,this.e=n,this.o=-1,this.p=3}function w1(e,t,n){this.d=e,this.k=t,this.f=n,this.o=-1,this.p=5}function _1(e,t,n){Ov.call(this,25),this.b=e,this.a=t,this.c=n}function x1(e){hKe(),Ov.call(this,e),this.c=!1,this.a=!1}function E1(e,t,n,r,i,o){jne.call(this,e,t,n,r,i),o&&(this.o=-2)}function S1(e,t,n,r,i,o){Hne.call(this,e,t,n,r,i),o&&(this.o=-2)}function C1(e,t,n,r,i,o){q5.call(this,e,t,n,r,i),o&&(this.o=-2)}function T1(e,t,n,r,i,o){zne.call(this,e,t,n,r,i),o&&(this.o=-2)}function k1(e,t,n,r,i,o){X5.call(this,e,t,n,r,i),o&&(this.o=-2)}function O1(e,t,n,r,i,o){Une.call(this,e,t,n,r,i),o&&(this.o=-2)}function M1(e,t,n,r,i,o){Qne.call(this,e,t,n,r,i),o&&(this.o=-2)}function I1(e,t,n,r,i,o){J5.call(this,e,t,n,r,i),o&&(this.o=-2)}function D1(e,t,n,r){yv.call(this,n),this.b=e,this.c=t,this.d=r}function N1(e,t){this.a=new Dv,this.d=new Dv,this.f=e,this.c=t}function R1(){this.c=new MD,this.a=new dX,this.b=new eb,dS()}function L1(){Dse(),this.b=new Nv,this.a=new Nv,this.c=new Dv}function B1(e,t){this.g=e,this.d=(L5(),ZDt),this.a=ZDt,this.b=t}function P1(e,t){this.f=e,this.a=(L5(),JDt),this.c=JDt,this.b=t}function F1(e,t){!e.c&&(e.c=new woe(e,0)),xUe(e.c,(zQe(),MNt),t)}function $1(){$1=M,jwt=new hk("DFS",0),$wt=new hk("BFS",1)}function j1(e,t,n){var r;return!!(r=$H(e.Zb().xc(t),14))&&r.Hc(n)}function H1(e,t,n){var r;return!!(r=$H(e.Zb().xc(t),14))&&r.Mc(n)}function U1(e,t,n,r){return e.a+=""+cL(null==t?QKe:$fe(t),n,r),e}function Q1(e,t,n,r,i,o){return Loe(e,t,n,o),qde(e,r),Zde(e,i),e}function z1(e){return SL(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function W1(e){for(;e.d>0&&0==e.a[--e.d];);0==e.a[e.d++]&&(e.e=0)}function G1(e){return e.a?0==e.e.length?e.a.a:e.a.a+""+e.e:e.c}function V1(e){return!(!e.a||0==j9(e.a.a).i||e.b&&BAe(e.b))}function K1(e){return!(!e.u||0==i4(e.u.a).i||e.n&&LAe(e.n))}function Y1(e){return AQ(e.e.Hd().gc()*e.c.Hd().gc(),16,new Ud(e))}function q1(e,t){return FG(cae(e.q.getTime()),cae(t.q.getTime()))}function X1(e){return $H(Kme(e,N8(Ast,r0e,17,e.c.length,0,1)),474)}function J1(e){return $H(Kme(e,N8(kst,i0e,10,e.c.length,0,1)),193)}function Z1(e){return $Z(),!(d5(e)||!d5(e)&&e.c.i.c==e.d.i.c)}function e2(e,t,n){AV(e),Nye(new TZ(new ZF(e),t,n))}function t2(e,t,n){AV(e),Rye(new kZ(new ZF(e),t,n))}function n2(e,t){var n;return n=1-t,e.a[n]=hie(e.a[n],n),hie(e,t)}function r2(e,t){var n;e.e=new qb,vD(n=hBe(t),e.c),TBe(e,n,0)}function i2(e,t,n,r){var i;(i=new bs).a=t,i.b=n,i.c=r,RU(e.a,i)}function o2(e,t,n,r){var i;(i=new bs).a=t,i.b=n,i.c=r,RU(e.b,i)}function a2(e){var t,n;return n=ZFe(t=new uV,e),AWe(t),n}function s2(){var e,t;return e=new Bv,GH(GDt,t=e),t}function l2(e){return e.j.c=N8(Met,jKe,1,0,5,1),_Y(e.c),pY(e.a),e}function c2(e){return xS(),rN(e.g,10)?$H(e.g,10):null}function u2(e){return!wY(e).dc()&&(ID(e,new b),!0)}function d2(e){if(!("stack"in e))try{throw e}catch(e){}return e}function h2(e,t){if(e<0||e>=t)throw jv(new Oy(Ike(e,t)));return e}function f2(e,t,n){if(e<0||t<e||t>n)throw jv(new Oy(aTe(e,t,n)))}function p2(e,t){if(_G(e.a,t),t.d)throw jv(new fy(TXe));t.d=e}function g2(e,t){if(t.$modCount!=e.$modCount)throw jv(new mA)}function m2(e,t){return!!rN(t,42)&&xbe(e.a,$H(t,42))}function v2(e,t){return!!rN(t,42)&&xbe(e.a,$H(t,42))}function A2(e,t){return!!rN(t,42)&&xbe(e.a,$H(t,42))}function b2(e,t){return e.a<=e.b&&(t.ud(e.a++),!0)}function y2(e){var t;return qM(e)?-0==(t=e)?0:t:gee(e)}function w2(e){var t;return wK(e),t=new j,px(e.a,new pp(t)),t}function _2(e){var t;return wK(e),t=new $,px(e.a,new fp(t)),t}function x2(e,t){this.a=e,Ef.call(this,e),IZ(t,e.gc()),this.b=t}function E2(e){this.e=e,this.b=this.e.a.entries(),this.a=new Array}function S2(e){return AQ(e.e.Hd().gc()*e.c.Hd().gc(),273,new Hd(e))}function C2(e){return new q6((ure(e,DYe),Zee(nfe(nfe(5,e),e/10|0))))}function T2(e){return $H(Kme(e,N8(Ust,o0e,11,e.c.length,0,1)),1943)}function k2(e,t,n){return n.f.c.length>0?$G(e.a,t,n):$G(e.b,t,n)}function O2(e,t,n){e.d&&A9(e.d.e,e),e.d=t,e.d&&bz(e.d.e,n,e)}function M2(e,t){mVe(t,e),iU(e.d),iU($H(vSe(e,(jVe(),Omt)),207))}function I2(e,t){gVe(t,e),rU(e.d),rU($H(vSe(e,(jVe(),Omt)),207))}function D2(e,t){var n,r;return r=null,(n=QJ(e,t))&&(r=n.fe()),r}function N2(e,t){var n,r;return r=null,(n=fee(e,t))&&(r=n.ie()),r}function R2(e,t){var n,r;return r=null,(n=QJ(e,t))&&(r=n.ie()),r}function L2(e,t){var n,r;return r=null,(n=QJ(e,t))&&(r=ATe(n)),r}function B2(e,t,n){var r;return r=Kge(n),hFe(e.g,r,t),hFe(e.i,t,n),t}function P2(e,t,n){var r;r=Ige();try{return fP(e,t,n)}finally{A3(r)}}function F2(e){var t;t=e.Wg(),this.a=rN(t,69)?$H(t,69).Zh():t.Kc()}function $2(){Yb.call(this),this.j.c=N8(Met,jKe,1,0,5,1),this.a=-1}function j2(e,t,n,r){this.d=e,this.n=t,this.g=n,this.o=r,this.p=-1}function H2(e,t,n,r){this.e=r,this.d=null,this.c=e,this.a=t,this.b=n}function U2(e,t,n){this.d=new Fg(this),this.e=e,this.i=t,this.f=n}function Q2(){Q2=M,Odt=new RT(eJe,0),Mdt=new RT("TOP_LEFT",1)}function z2(){z2=M,_bt=qK(the(1),the(4)),wbt=qK(the(1),the(2))}function W2(){W2=M,qxt=uue((TS(),Sse(Uw(Zxt,1),MYe,551,0,[Kxt])))}function G2(){G2=M,Vxt=uue((CS(),Sse(Uw(Yxt,1),MYe,482,0,[Wxt])))}function V2(){V2=M,zEt=uue((kS(),Sse(Uw(VEt,1),MYe,530,0,[UEt])))}function K2(){K2=M,iot=uue((hS(),Sse(Uw(Sot,1),MYe,481,0,[not])))}function Y2(){return Rae(),Sse(Uw(Uit,1),MYe,406,0,[Lit,Dit,Nit,Rit])}function q2(){return X7(),Sse(Uw(Fnt,1),MYe,297,0,[Dnt,Nnt,Rnt,Lnt])}function X2(){return Hve(),Sse(Uw(rot,1),MYe,394,0,[Xit,qit,Jit,Zit])}function J2(){return jve(),Sse(Uw(zit,1),MYe,323,0,[$it,Fit,jit,Hit])}function Z2(){return Ose(),Sse(Uw(fst,1),MYe,405,0,[Xat,est,Jat,Zat])}function e3(){return Tse(),Sse(Uw(gct,1),MYe,360,0,[ict,nct,rct,tct])}function t3(e,t,n,r){return rN(n,54)?new kL(e,t,n,r):new sW(e,t,n,r)}function n3(){return kse(),Sse(Uw(Tct,1),MYe,411,0,[mct,vct,Act,bct])}function r3(e){return e.j==(bGe(),EOt)&&ER(zMe(e),aOt)}function i3(e,t){var n;EZ(n=t.a,t.c.d),xZ(n,t.d.d),Xte(n.a,e.n)}function o3(e,t){return $H(MR(TW($H(l6(e.k,t),15).Oc(),Kct)),113)}function a3(e,t){return $H(MR(kW($H(l6(e.k,t),15).Oc(),Kct)),113)}function s3(e){return new h0(Zie($H(e.a.dd(),14).gc(),e.a.cd()),16)}function l3(e){return rN(e,14)?$H(e,14).dc():!e.Kc().Ob()}function c3(e){return xS(),rN(e.g,145)?$H(e.g,145):null}function u3(e){if(e.e.g!=e.b)throw jv(new mA);return!!e.c&&e.d>0}function d3(e){return SL(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function h3(e,t){bK(t),MV(e.a,e.c,t),e.c=e.c+1&e.a.length-1,hye(e)}function f3(e,t){bK(t),e.b=e.b-1&e.a.length-1,MV(e.a,e.b,t),hye(e)}function p3(e,t){var n;for(n=e.j.c.length;n<t;n++)GH(e.j,e.rg())}function g3(e,t,n,r){var i;return i=r[t.g][n.g],Uy(xB(vSe(e.a,i)))}function m3(e,t,n,r,i){this.i=e,this.a=t,this.e=n,this.j=r,this.f=i}function v3(e,t,n,r,i){this.a=e,this.e=t,this.f=n,this.b=r,this.g=i}function A3(e){e&&Tee((sw(),ett)),--itt,e&&-1!=att&&(tC(att),att=-1)}function b3(){return dAe(),Sse(Uw(bAt,1),MYe,197,0,[uAt,dAt,cAt,lAt])}function y3(){return Qye(),Sse(Uw(Hyt,1),MYe,393,0,[Lyt,Byt,Pyt,Fyt])}function w3(){return kbe(),Sse(Uw(V_t,1),MYe,340,0,[H_t,$_t,j_t,F_t])}function _3(){return vge(),Sse(Uw(YOt,1),MYe,374,0,[BOt,POt,LOt,ROt])}function x3(){return Wye(),Sse(Uw(Lkt,1),MYe,285,0,[xkt,ykt,wkt,_kt])}function E3(){return xfe(),Sse(Uw(akt,1),MYe,218,0,[XTt,YTt,KTt,qTt])}function S3(){return Fpe(),Sse(Uw(rMt,1),MYe,311,0,[eMt,XOt,ZOt,JOt])}function C3(){return $ce(),Sse(Uw(hMt,1),MYe,396,0,[oMt,aMt,iMt,sMt])}function T3(e){return lZ(),lG(aIt,e)?$H(LV(aIt,e),331).ug():null}function k3(e,t,n){return t<0?HOe(e,n):$H(n,66).Nj().Sj(e,e.yh(),t)}function O3(e,t,n){var r;return r=Kge(n),hFe(e.d,r,t),VK(e.e,t,n),t}function M3(e,t,n){var r;return r=Kge(n),hFe(e.j,r,t),VK(e.k,t,n),t}function I3(e){var t;return Z_(),t=new il,e&&jNe(t,e),t}function D3(e){var t;return t=e.ri(e.i),e.i>0&&iUe(e.g,0,t,0,e.i),t}function N3(e,t){var n;return JS(),!(n=$H(LV(mIt,e),55))||n.wj(t)}function R3(e){if(1!=e.p)throw jv(new fA);return fz(e.f)<<24>>24}function L3(e){if(1!=e.p)throw jv(new fA);return fz(e.k)<<24>>24}function B3(e){if(7!=e.p)throw jv(new fA);return fz(e.k)<<16>>16}function P3(e){if(7!=e.p)throw jv(new fA);return fz(e.f)<<16>>16}function F3(e){var t;for(t=0;e.Ob();)e.Pb(),t=nfe(t,1);return Zee(t)}function $3(e,t){var n;return n=new Tw,e.xd(n),n.a+="..",t.yd(n),n.a}function j3(e,t,n){var r;r=$H(LV(e.g,n),57),GH(e.a.c,new nO(t,r))}function H3(e,t,n){return _W(xB(HO(OX(e.f,t))),xB(HO(OX(e.f,n))))}function U3(e,t,n){return zje(e,t,n,rN(t,99)&&!!($H(t,18).Bb&$qe))}function Q3(e,t,n){return gHe(e,t,n,rN(t,99)&&!!($H(t,18).Bb&$qe))}function z3(e,t,n){return NDe(e,t,n,rN(t,99)&&!!($H(t,18).Bb&$qe))}function W3(e,t){return e==(oCe(),Cst)&&t==Cst?4:e==Cst||t==Cst?8:32}function G3(e,t){return UO(t)===UO(e)?"(this Map)":null==t?QKe:$fe(t)}function V3(e,t){return $H(null==t?HO(OX(e.f,null)):lC(e.g,t),281)}function K3(e,t,n){var r;return r=Kge(n),VK(e.b,r,t),VK(e.c,t,n),t}function Y3(e,t){var n;for(n=t;n;)PL(e,n.i,n.j),n=qJ(n);return e}function q3(e,t){var n;return n=nX(jH(new C9(e,t))),CQ(new C9(e,t)),n}function X3(e,t){var n;return XS(),_Ce(n=$H(e,66).Mj(),t),n.Ok(t)}function J3(e,t,n,r,i){GH(t,vke(i,WDe(i,n,r))),zSe(e,i,t)}function Z3(e,t,n){e.i=0,e.e=0,t!=n&&(Gle(e,t,n),Wle(e,t,n))}function e4(e,t){var n;n=e.q.getHours(),e.q.setFullYear(t+sqe),uHe(e,n)}function t4(e,t,n){if(n){var r=n.ee();e.a[t]=r(n)}else delete e.a[t]}function n4(e,t,n){if(n){var r=n.ee();n=r(n)}else n=void 0;e.a[t]=n}function r4(e){if(e<0)throw jv(new $y("Negative array size: "+e))}function i4(e){return e.n||(S5(e),e.n=new Yz(e,GIt,e),bX(e)),e.n}function o4(e){return SL(e.a<e.c.a.length),e.b=e.a,Oee(e),e.c.b[e.b]}function a4(e){e.b!=e.c&&(e.a=N8(Met,jKe,1,8,5,1),e.b=0,e.c=0)}function s4(e){this.b=new Nv,this.c=new Nv,this.d=new Nv,this.a=e}function l4(e,t){hKe(),Ov.call(this,e),this.a=t,this.c=-1,this.b=-1}function c4(e,t,n,r){y1.call(this,1,n,r),this.c=e,this.b=t}function u4(e,t,n,r){w1.call(this,1,n,r),this.c=e,this.b=t}function d4(e,t,n,r,i,o,a){bre.call(this,t,r,i,o,a),this.c=e,this.a=n}function h4(e,t,n){this.e=e,this.a=Met,this.b=OPe(t),this.c=t,this.d=n}function f4(e){this.e=e,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function p4(e){this.c=e,this.a=$H(Twe(e),148),this.b=this.a.Aj().Nh()}function g4(e){this.d=e,this.b=this.d.a.entries(),this.a=this.b.next()}function m4(){Nv.call(this),yL(this),this.d.b=this.d,this.d.a=this.d}function v4(e,t){MP.call(this),this.a=e,this.b=t,GH(this.a.b,this)}function A4(e,t){return tM(null!=t?EJ(e,t):HO(OX(e.f,t)))}function b4(e,t){return tM(null!=t?EJ(e,t):HO(OX(e.f,t)))}function y4(e,t){var n;for(n=0;n<t;++n)MV(e,n,new zf($H(e[n],42)))}function w4(e,t){var n;for(n=e.d-1;n>=0&&e.a[n]===t[n];n--);return n<0}function _4(e,t){var n;return Qce(),0!=(n=e.j.g-t.j.g)?n:0}function x4(e,t){return bK(t),null!=e.a?Sz(t.Kb(e.a)):Ent}function E4(e){var t;return e?new IQ(e):(Hie(t=new cI,e),t)}function S4(e,t){return t.b.Kb(_9(e,t.c.Ee(),new Ap(t)))}function C4(e){AEe(),lN(this,fz(e1(bW(e,24),sXe)),fz(e1(e,sXe)))}function T4(){T4=M,grt=uue((lve(),Sse(Uw(Art,1),MYe,428,0,[frt,hrt])))}function k4(){k4=M,brt=uue((Lee(),Sse(Uw(Brt,1),MYe,427,0,[mrt,vrt])))}function O4(){O4=M,Pot=uue((Bee(),Sse(Uw(Mat,1),MYe,424,0,[Rot,Lot])))}function M4(){M4=M,Qst=uue((Eie(),Sse(Uw(Gst,1),MYe,511,0,[Hst,jst])))}function I4(){I4=M,Tut=uue((Pee(),Sse(Uw(Iut,1),MYe,419,0,[Eut,Sut])))}function D4(){D4=M,zut=uue((p9(),Sse(Uw(Xut,1),MYe,479,0,[Uut,Hut])))}function N4(){N4=M,ZAt=uue((O6(),Sse(Uw(rbt,1),MYe,376,0,[XAt,qAt])))}function R4(){R4=M,$At=uue((z9(),Sse(Uw(QAt,1),MYe,421,0,[BAt,PAt])))}function L4(){L4=M,aut=uue((V8(),Sse(Uw(uut,1),MYe,422,0,[rut,iut])))}function B4(){B4=M,Ddt=uue((Q2(),Sse(Uw(Uht,1),MYe,420,0,[Odt,Mdt])))}function P4(){P4=M,Syt=uue((k6(),Sse(Uw(Nyt,1),MYe,520,0,[xyt,_yt])))}function F4(){F4=M,Ubt=uue((K4(),Sse(Uw(Vbt,1),MYe,523,0,[jbt,$bt])))}function $4(){$4=M,tyt=uue((pJ(),Sse(Uw(iyt,1),MYe,516,0,[Zbt,Jbt])))}function j4(){j4=M,oyt=uue((aZ(),Sse(Uw(Eyt,1),MYe,515,0,[nyt,ryt])))}function H4(){H4=M,Ryt=uue((fJ(),Sse(Uw($yt,1),MYe,455,0,[Iyt,Dyt])))}function U4(){U4=M,Uwt=uue(($1(),Sse(Uw(qwt,1),MYe,425,0,[jwt,$wt])))}function Q4(){Q4=M,Xwt=uue((Sie(),Sse(Uw(t_t,1),MYe,495,0,[Kwt,Ywt])))}function z4(){z4=M,Fwt=uue((sZ(),Sse(Uw(Hwt,1),MYe,480,0,[Lwt,Bwt])))}function W4(){W4=M,a_t=uue((R7(),Sse(Uw(u_t,1),MYe,426,0,[r_t,i_t])))}function G4(){G4=M,KEt=uue((Ise(),Sse(Uw(YEt,1),MYe,429,0,[GEt,WEt])))}function V4(){V4=M,eEt=uue((M6(),Sse(Uw(aEt,1),MYe,430,0,[Jxt,Xxt])))}function K4(){K4=M,jbt=new qT("UPPER",0),$bt=new qT("LOWER",1)}function Y4(e,t){var n;Hq(n=new gy,"x",t.a),Hq(n,"y",t.b),JV(e,n)}function q4(e,t){var n;Hq(n=new gy,"x",t.a),Hq(n,"y",t.b),JV(e,n)}function X4(e,t){var n,r;r=!1;do{r|=n=dle(e,t)}while(n);return r}function J4(e,t){var n,r;for(n=t,r=0;n>0;)r+=e.a[n],n-=n&-n;return r}function Z4(e,t){var n;for(n=t;n;)PL(e,-n.i,-n.j),n=qJ(n);return e}function e5(e,t){var n,r;for(bK(t),r=e.Kc();r.Ob();)n=r.Pb(),t.td(n)}function t5(e,t){var n;return new mE(n=t.cd(),e.e.pc(n,$H(t.dd(),14)))}function n5(e,t,n,r){var i;(i=new D).c=t,i.b=n,i.a=r,r.b=n.a=i,++e.b}function r5(e,t,n){var r;return u0(t,e.c.length),r=e.c[t],e.c[t]=n,r}function i5(e,t,n){return $H(null==t?yke(e.f,null,n):ofe(e.g,t,n),281)}function o5(e){return e.c&&e.d?g1(e.c)+"->"+g1(e.d):"e_"+SR(e)}function a5(e,t){return(Khe(e),yx(new LQ(e,new K7(t,e.a)))).sd(Znt)}function s5(){return ASe(),Sse(Uw(zat,1),MYe,356,0,[Lat,Bat,Pat,Fat,$at])}function l5(){return bGe(),Sse(Uw(FOt,1),YZe,61,0,[SOt,sOt,aOt,EOt,COt])}function c5(e){return Rw(),function(){return P2(e,this,arguments)}}function u5(){return Date.now?Date.now():(new Date).getTime()}function d5(e){return!(!e.c||!e.d||!e.c.i||e.c.i!=e.d.i)}function h5(e){if(!e.c.Sb())throw jv(new AA);return e.a=!0,e.c.Ub()}function f5(e){e.i=0,AC(e.b,null),AC(e.c,null),e.a=null,e.e=null,++e.g}function p5(e){fC.call(this,null==e?QKe:$fe(e),rN(e,78)?$H(e,78):null)}function g5(e){eKe(),$v(this),this.a=new YE,fce(this,e),RU(this.a,e)}function m5(){NI(this),this.b=new Nk(Lqe,Lqe),this.a=new Nk(Bqe,Bqe)}function v5(e,t){this.c=0,this.b=t,gM.call(this,e,17493),this.a=this.c}function A5(e){b5(),Knt||(this.c=e,this.e=!0,this.a=new Dv)}function b5(){b5=M,Knt=!0,Gnt=!1,Vnt=!1,qnt=!1,Ynt=!1}function y5(e,t){return!!rN(t,149)&&vF(e.c,$H(t,149).c)}function w5(e,t){var n;return n=0,e&&(n+=e.f.a/2),t&&(n+=t.f.a/2),n}function _5(e,t){return $H(uee(e.d,t),23)||$H(uee(e.e,t),23)}function x5(e){this.b=e,ON.call(this,e),this.a=$H(Aae(this.b.a,4),126)}function E5(e){this.b=e,iL.call(this,e),this.a=$H(Aae(this.b.a,4),126)}function S5(e){return e.t||(e.t=new fv(e),she(new Ny(e),0,e.t)),e.t}function C5(){return Fde(),Sse(Uw(GTt,1),MYe,103,0,[$Tt,FTt,PTt,BTt,jTt])}function T5(){return rve(),Sse(Uw(qkt,1),MYe,249,0,[$kt,Hkt,Pkt,Fkt,jkt])}function k5(){return nve(),Sse(Uw(ySt,1),MYe,175,0,[lSt,sSt,oSt,cSt,aSt])}function O5(){return MCe(),Sse(Uw(QEt,1),MYe,316,0,[tEt,nEt,oEt,rEt,iEt])}function M5(){return DAe(),Sse(Uw(OAt,1),MYe,315,0,[AAt,gAt,mAt,pAt,vAt])}function I5(){return VAe(),Sse(Uw(Cut,1),MYe,335,0,[Aut,vut,yut,wut,but])}function D5(){return YNe(),Sse(Uw(Qxt,1),MYe,355,0,[Rxt,Nxt,Bxt,Lxt,Pxt])}function N5(){return Ixe(),Sse(Uw(Bct,1),MYe,363,0,[xct,Sct,Cct,Ect,_ct])}function R5(){return _fe(),Sse(Uw(tAt,1),MYe,163,0,[Hht,Pht,Fht,$ht,jht])}function L5(){var e,t;L5=M,tx(),t=new wA,JDt=t,e=new kb,ZDt=e}function B5(e){var t;return e.c||rN(t=e.r,88)&&(e.c=$H(t,26)),e.c}function P5(e){return e.e=3,e.d=e.Yb(),2!=e.e&&(e.e=0,!0)}function F5(e){return xD(e&Eqe,e>>22&Eqe,e<0?Sqe:0)}function $5(e){var t,n,r;for(n=0,r=(t=e).length;n<r;++n)yK(t[n])}function j5(e,t){var n,r;(n=$H(dde(e.c,t),14))&&(r=n.gc(),n.$b(),e.d-=r)}function H5(e,t){var n;return!!(n=uce(e,t.cd()))&&rY(n.e,t.dd())}function U5(e,t){return 0==t||0==e.e?e:t>0?wge(e,t):TLe(e,-t)}function Q5(e,t){return 0==t||0==e.e?e:t>0?TLe(e,t):wge(e,-t)}function z5(e){if(fIe(e))return e.c=e.a,e.a.Pb();throw jv(new AA)}function W5(e){var t,n;return t=e.c.i,n=e.d.i,t.k==(oCe(),xst)&&n.k==xst}function G5(e){var t;return Hae(t=new hX,e),lle(t,(jVe(),mmt),null),t}function V5(e,t,n){var r;return(r=e.Yg(t))>=0?e._g(r,n,!0):rMe(e,t,n)}function K5(e,t,n,r){var i;for(i=0;i<Xrt;i++)Wz(e.a[t.g][i],n,r[t.g])}function Y5(e,t,n,r){var i;for(i=0;i<Jrt;i++)zz(e.a[i][t.g],n,r[t.g])}function q5(e,t,n,r,i){y1.call(this,t,r,i),this.c=e,this.a=n}function X5(e,t,n,r,i){w1.call(this,t,r,i),this.c=e,this.a=n}function J5(e,t,n,r,i){t6.call(this,t,r,i),this.c=e,this.a=n}function Z5(e,t,n,r,i){t6.call(this,t,r,i),this.c=e,this.b=n}function e6(e,t,n){yv.call(this,n),this.b=e,this.c=t,this.d=($pe(),UDt)}function t6(e,t,n){this.d=e,this.k=t?1:0,this.f=n?1:0,this.o=-1,this.p=0}function n6(e,t,n){var r;_oe(r=new WD(e.a),e.a.a),yke(r.f,t,n),e.a.a=r}function r6(e,t){e.qi(e.i+1),yN(e,e.i,e.oi(e.i,t)),e.bi(e.i++,t),e.ci()}function i6(e){var t,n;++e.j,t=e.g,n=e.i,e.g=null,e.i=0,e.di(n,t),e.ci()}function o6(e){var t;return AV(e),Mle(t=new q6(XK(e.length)),e),t}function a6(e){var t;return AV(e),qTe(t=e?new ZF(e):jH(e.Kc())),sde(t)}function s6(e,t){var n;return u0(t,e.c.length),n=e.c[t],Sx(e.c,t,1),n}function l6(e,t){var n;return!(n=$H(e.c.xc(t),14))&&(n=e.ic(t)),e.pc(t,n)}function c6(e,t){var n,r;return bK(e),n=e,bK(t),n==(r=t)?0:n<r?-1:1}function u6(e){var t;return t=e.e+e.f,isNaN(t)&&GF(e.d)?e.d:t}function d6(e,t){return e.a?aM(e.a,e.b):e.a=new uR(e.d),iM(e.a,t),e}function h6(e,t){if(e<0||e>t)throw jv(new Oy(fke(e,t,"index")));return e}function f6(e,t,n,r){var i;return mEe(i=N8(kRt,lqe,25,t,15,1),e,t,n,r),i}function p6(e,t){var n;n=e.q.getHours()+(t/60|0),e.q.setMinutes(t),uHe(e,n)}function g6(e,t){return r.Math.min(G8(t.a,e.d.d.c),G8(t.b,e.d.d.c))}function m6(e,t){return WO(t)?null==t?pIe(e.f,null):Uae(e.g,t):pIe(e.f,t)}function v6(e){this.c=e,this.a=new Gf(this.c.a),this.b=new Gf(this.c.b)}function A6(){this.e=new Dv,this.c=new Dv,this.d=new Dv,this.b=new Dv}function b6(){this.g=new $A,this.b=new $A,this.a=new Dv,this.k=new Dv}function y6(e,t,n){this.a=e,this.c=t,this.d=n,GH(t.e,this),GH(n.b,this)}function w6(e,t){pM.call(this,t.rd(),-6&t.qd()),bK(e),this.a=e,this.b=t}function _6(e,t){gM.call(this,t.rd(),-6&t.qd()),bK(e),this.a=e,this.b=t}function x6(e,t){mM.call(this,t.rd(),-6&t.qd()),bK(e),this.a=e,this.b=t}function E6(e,t,n){this.a=e,this.b=t,this.c=n,GH(e.t,this),GH(t.i,this)}function S6(){this.b=new YE,this.a=new YE,this.b=new YE,this.a=new YE}function C6(){C6=M,_St=new ov("org.eclipse.elk.labels.labelManager")}function T6(){T6=M,ect=new tP("separateLayerConnections",(Tse(),ict))}function k6(){k6=M,xyt=new ok("REGULAR",0),_yt=new ok("CRITICAL",1)}function O6(){O6=M,XAt=new WT("STACKED",0),qAt=new WT("SEQUENCED",1)}function M6(){M6=M,Jxt=new _k("FIXED",0),Xxt=new _k("CENTER_NODE",1)}function I6(e,t){var n;return n=Nze(e,t),e.b=new vie(n.c.length),AQe(e,n)}function D6(e,t,n){return++e.e,--e.f,$H(e.d[t].$c(n),133).dd()}function N6(e){var t;return e.a||rN(t=e.r,148)&&(e.a=$H(t,148)),e.a}function R6(e){return e.a?e.e?R6(e.e):null:e}function L6(e,t){return e.p<t.p?1:e.p>t.p?-1:0}function B6(e,t){return bK(t),e.c<e.d&&(e.ze(t,e.c++),!0)}function P6(e,t){return!!lG(e.a,t)&&(m6(e.a,t),!0)}function F6(e){var t;return t=e.cd(),LH($H(e.dd(),14).Nc(),new Gd(t))}function $6(e){var t;return t=$H(VG(e.b,e.b.length),9),new YF(e.a,t,e.c)}function j6(e){return Khe(e),new OB(e,new XH(e,e.a.e,4|e.a.d))}function H6(e){var t;for(wK(e),t=0;e.a.sd(new ue);)t=nfe(t,1);return t}function U6(e,t,n){var r,i;for(r=0,i=0;i<t.length;i++)r+=e.$f(t[i],r,n)}function Q6(e,t){var n;e.C&&((n=$H(aY(e.b,t),124).n).d=e.C.d,n.a=e.C.a)}function z6(e,t,n){return h2(t,e.e.Hd().gc()),h2(n,e.c.Hd().gc()),e.a[t][n]}function W6(e,t){kBe(),this.e=e,this.d=1,this.a=Sse(Uw(kRt,1),lqe,25,15,[t])}function G6(e,t,n,r){this.f=e,this.e=t,this.d=n,this.b=r,this.c=r?r.d:null}function V6(e){var t,n,r,i;i=e.d,t=e.a,n=e.b,r=e.c,e.d=n,e.a=r,e.b=i,e.c=t}function K6(e,t,n,r){vje(e,t,n,gHe(e,t,r,rN(t,99)&&!!($H(t,18).Bb&$qe)))}function Y6(e,t){kEe(t,"Label management",1),tM(vSe(e,(C6(),_St))),jCe(t)}function q6(e){NI(this),mU(e>=0,"Initial capacity must not be negative")}function X6(){X6=M,Grt=uue((Rte(),Sse(Uw(Vrt,1),MYe,232,0,[Urt,Qrt,zrt])))}function J6(){J6=M,Zrt=uue((q7(),Sse(Uw(eit,1),MYe,461,0,[Yrt,Krt,qrt])))}function Z6(){Z6=M,oit=uue((U9(),Sse(Uw(kit,1),MYe,462,0,[rit,nit,tit])))}function e8(){e8=M,Xnt=uue((Hce(),Sse(Uw(Jnt,1),MYe,132,0,[Qnt,znt,Wnt])))}function t8(){t8=M,Iat=uue((H9(),Sse(Uw(jat,1),MYe,379,0,[kat,Tat,Oat])))}function n8(){n8=M,pst=uue(($de(),Sse(Uw(vst,1),MYe,423,0,[hst,dst,ust])))}function r8(){r8=M,dut=uue((kre(),Sse(Uw(gut,1),MYe,314,0,[lut,sut,cut])))}function i8(){i8=M,mut=uue((ore(),Sse(Uw(_ut,1),MYe,337,0,[hut,put,fut])))}function o8(){o8=M,Dut=uue((qse(),Sse(Uw($ut,1),MYe,450,0,[Out,kut,Mut])))}function a8(){a8=M,Pct=uue((Cie(),Sse(Uw(Gct,1),MYe,361,0,[Lct,Rct,Nct])))}function s8(){s8=M,kdt=uue((Q9(),Sse(Uw(Idt,1),MYe,303,0,[Sdt,Cdt,Edt])))}function l8(){l8=M,xdt=uue((Bae(),Sse(Uw(Tdt,1),MYe,292,0,[ydt,wdt,bdt])))}function c8(){c8=M,sAt=uue((xue(),Sse(Uw(hAt,1),MYe,378,0,[rAt,iAt,oAt])))}function u8(){u8=M,YAt=uue((joe(),Sse(Uw(JAt,1),MYe,375,0,[WAt,GAt,VAt])))}function d8(){d8=M,LAt=uue((vle(),Sse(Uw(FAt,1),MYe,339,0,[DAt,IAt,NAt])))}function h8(){h8=M,zAt=uue((ire(),Sse(Uw(KAt,1),MYe,452,0,[UAt,jAt,HAt])))}function f8(){f8=M,pbt=uue((Mse(),Sse(Uw(Ebt,1),MYe,377,0,[dbt,hbt,ubt])))}function p8(){p8=M,ibt=uue((zce(),Sse(Uw(lbt,1),MYe,336,0,[ebt,tbt,nbt])))}function g8(){g8=M,cbt=uue((foe(),Sse(Uw(fbt,1),MYe,338,0,[sbt,obt,abt])))}function m8(){m8=M,Dbt=uue((are(),Sse(Uw(Nbt,1),MYe,454,0,[kbt,Obt,Mbt])))}function v8(){v8=M,n_t=uue((Cfe(),Sse(Uw(o_t,1),MYe,442,0,[e_t,Jwt,Zwt])))}function A8(){A8=M,d_t=uue((jce(),Sse(Uw(U_t,1),MYe,380,0,[s_t,l_t,c_t])))}function b8(){b8=M,ext=uue((Efe(),Sse(Uw(Dxt,1),MYe,381,0,[X_t,J_t,q_t])))}function y8(){y8=M,K_t=uue(($oe(),Sse(Uw(Y_t,1),MYe,293,0,[W_t,G_t,z_t])))}function w8(){w8=M,zxt=uue((Sfe(),Sse(Uw(Gxt,1),MYe,437,0,[jxt,Hxt,Uxt])))}function _8(){_8=M,bkt=uue((ode(),Sse(Uw(Ekt,1),MYe,334,0,[mkt,gkt,vkt])))}function x8(){x8=M,VTt=uue((Lte(),Sse(Uw(JTt,1),MYe,272,0,[QTt,zTt,WTt])))}function E8(){return Kxe(),Sse(Uw(iOt,1),MYe,98,0,[Ykt,Kkt,Vkt,zkt,Gkt,Wkt])}function S8(e,t){return!e.o&&(e.o=new A7((CVe(),xMt),tIt,e,0)),nge(e.o,t)}function C8(e){return!e.g&&(e.g=new cl),!e.g.d&&(e.g.d=new uv(e)),e.g.d}function T8(e){return!e.g&&(e.g=new cl),!e.g.a&&(e.g.a=new dv(e)),e.g.a}function k8(e){return!e.g&&(e.g=new cl),!e.g.b&&(e.g.b=new cv(e)),e.g.b}function O8(e){return!e.g&&(e.g=new cl),!e.g.c&&(e.g.c=new hv(e)),e.g.c}function M8(e,t,n){var r,i;for(i=new Oae(t,e),r=0;r<n;++r)rAe(i);return i}function I8(e,t,n){var r,i;if(null!=n)for(r=0;r<t;++r)i=n[r],e.fi(r,i)}function D8(e,t,n,r){var i;return Oje(i=N8(kRt,lqe,25,t+1,15,1),e,t,n,r),i}function N8(e,t,n,r,i,o){var a;return a=$be(i,r),10!=i&&Sse(Uw(e,o),t,n,i,a),a}function R8(e,t,n,r){return n&&(r=n.gh(t,Ope(n.Tg(),e.c.Lj()),null,r)),r}function L8(e,t,n,r){return n&&(r=n.ih(t,Ope(n.Tg(),e.c.Lj()),null,r)),r}function B8(e,t,n){$H(e.b,65),$H(e.b,65),$H(e.b,65),kte(e.a,new D$(n,t,e))}function P8(e,t,n){if(e<0||t>n||t<e)throw jv(new kw(vXe+e+bXe+t+lXe+n))}function F8(e){if(!e)throw jv(new Fy("Unable to add element to queue"))}function $8(e){e?(this.c=e,this.b=null):(this.c=null,this.b=new Dv)}function j8(e,t){SC.call(this,e,t),this.a=N8(Bnt,bYe,436,2,0,1),this.b=!0}function H8(e){Jse.call(this,e,0),yL(this),this.d.b=this.d,this.d.a=this.d}function U8(e){var t;return 0==(t=e.b).b?null:$H(Rve(t,0),188).b}function Q8(e,t){var n;return(n=new Q).c=!0,n.d=t.dd(),Yze(e,t.cd(),n)}function z8(e,t){var n;n=e.q.getHours()+(t/3600|0),e.q.setSeconds(t),uHe(e,n)}function W8(e,t,n){var r;(r=e.b[n.c.p][n.p]).b+=t.b,r.c+=t.c,r.a+=t.a,++r.a}function G8(e,t){var n,i;return n=e.a-t.a,i=e.b-t.b,r.Math.sqrt(n*n+i*i)}function V8(){V8=M,rut=new wT("QUADRATIC",0),iut=new wT("SCANLINE",1)}function K8(){K8=M,vbt=Gz(fQ(new $2,(ASe(),Lat),(uKe(),blt)),$at,Hlt)}function Y8(){return hxe(),Sse(Uw(HTt,1),MYe,291,0,[XSt,qSt,YSt,VSt,GSt,KSt])}function q8(){return hAe(),Sse(Uw(JSt,1),MYe,248,0,[CSt,OSt,MSt,ISt,TSt,kSt])}function X8(){return MTe(),Sse(Uw(out,1),MYe,227,0,[Xct,Zct,qct,Jct,eut,Yct])}function J8(){return qSe(),Sse(Uw(vdt,1),MYe,275,0,[rdt,edt,idt,ndt,tdt,Zut])}function Z8(){return $_e(),Sse(Uw(odt,1),MYe,274,0,[Kut,Vut,qut,Gut,Yut,Wut])}function e7(){return _Ee(),Sse(Uw(aAt,1),MYe,313,0,[Zvt,Xvt,Yvt,qvt,eAt,Jvt])}function t7(){return pCe(),Sse(Uw(Qut,1),MYe,276,0,[Rut,Nut,But,Lut,Fut,Put])}function n7(){return RTe(),Sse(Uw(Pwt,1),MYe,327,0,[Kyt,zyt,Gyt,Wyt,Vyt,Qyt])}function r7(){return uOe(),Sse(Uw(TOt,1),MYe,273,0,[nOt,eOt,tOt,Zkt,Jkt,rOt])}function i7(){return JEe(),Sse(Uw(Akt,1),MYe,312,0,[ikt,nkt,okt,ekt,rkt,tkt])}function o7(){return oCe(),Sse(Uw(Mst,1),MYe,267,0,[Cst,Sst,xst,Tst,Est,_st])}function a7(e){xL(!!e.c),g2(e.e,e),e.c.Qb(),e.c=null,e.b=fse(e),dB(e.e,e)}function s7(e){return g2(e.c.a.e,e),SL(e.b!=e.c.a.d),e.a=e.b,e.b=e.b.a,e.a}function l7(e){var t;return e.a||-1==e.b||(t=e.c.Tg(),e.a=tte(t,e.b)),e.a}function c7(e,t){return!(e.hi()&&e.Hc(t)||(e.Yh(t),0))}function u7(e,t){return kX(t,"Horizontal alignment cannot be null"),e.b=t,e}function d7(e,t,n){var r;return hKe(),r=XGe(e,t),n&&r&&pK(e)&&(r=null),r}function h7(e,t,n){var r;for(r=e.Kc();r.Ob();)XPe($H(r.Pb(),37),t,n)}function f7(e,t){var n;for(n=t.Kc();n.Ob();)MFe(e,$H(n.Pb(),37),0,0)}function p7(e,t,n){var i;e.d[t.g]=n,(i=e.g.c)[t.g]=r.Math.max(i[t.g],n+1)}function g7(e,t){var n,r,i;return i=e.r,r=e.d,(n=rUe(e,t,!0)).b!=i||n.a!=r}function m7(e,t){return uC(e.e,t)||qme(e.e,t,new tve(t)),$H(uee(e.e,t),113)}function v7(e,t,n,r){return bK(e),bK(t),bK(n),bK(r),new yG(e,t,new z)}function A7(e,t,n,r){this.rj(),this.a=t,this.b=e,this.c=new XW(this,t,n,r)}function b7(e,t,n,r,i,o){j2.call(this,t,r,i,o),this.c=e,this.b=n}function y7(e,t,n,r,i,o){j2.call(this,t,r,i,o),this.c=e,this.a=n}function w7(e,t,n){var r,i;i=null,(r=QJ(e,n))&&(i=ATe(r)),Wme(t,n,i)}function _7(e,t,n){var r,i;i=null,(r=QJ(e,n))&&(i=ATe(r)),Wme(t,n,i)}function x7(e,t,n){var r;return(r=MDe(e.b,t))?DUe(F9(e,r),n):null}function E7(e,t){var n;return(n=e.Yg(t))>=0?e._g(n,!0,!0):rMe(e,t,!0)}function S7(e,t){return She(Uy(xB(vSe(e,(lKe(),_ht)))),Uy(xB(vSe(t,_ht))))}function C7(){C7=M,zwt=ame(ame(FS(new $2,(Qye(),Byt)),(RTe(),Kyt)),zyt)}function T7(e,t,n){var r;return r=Dle(e,t,n),e.b=new vie(r.c.length),sBe(e,r)}function k7(e){if(e.b<=0)throw jv(new AA);return--e.b,e.a-=e.c.c,the(e.a)}function O7(e){var t;if(!e.a)throw jv(new uY);return t=e.a,e.a=qJ(e.a),t}function M7(e){for(;!e.a;)if(!_F(e.c,new gp(e)))return!1;return!0}function I7(e){return AV(e),rN(e,198)?$H(e,198):new oh(e)}function D7(e){N7(),$H(e.We((sKe(),cTt)),174).Fc((uOe(),tOt)),e.Ye(lTt,null)}function N7(){N7=M,ZEt=new ps,tSt=new gs,eSt=mce((sKe(),lTt),ZEt,HCt,tSt)}function R7(){R7=M,r_t=new gk("LEAF_NUMBER",0),i_t=new gk("NODE_SIZE",1)}function L7(e,t,n){e.a=t,e.c=n,e.b.a.$b(),Aq(e.d),e.e.a.c=N8(Met,jKe,1,0,5,1)}function B7(e){e.a=N8(kRt,lqe,25,e.b+1,15,1),e.c=N8(kRt,lqe,25,e.b,15,1),e.d=0}function P7(e,t){e.a.ue(t.d,e.b)>0&&(GH(e.c,new vU(t.c,t.d,e.d)),e.b=t.d)}function F7(e,t){if(null==e.g||t>=e.i)throw jv(new IM(t,e.i));return e.g[t]}function $7(e,t,n){if(Nce(e,n),null!=n&&!e.wj(n))throw jv(new uA);return n}function j7(e){var t;if(e.Ek())for(t=e.i-1;t>=0;--t)Gte(e,t);return D3(e)}function H7(e){var t,n;if(!e.b)return null;for(n=e.b;t=n.a[0];)n=t;return n}function U7(e,t){var n;return r4(t),(n=v9(e.slice(0,t),e)).length=t,n}function Q7(e,t,n,r){Sq(),r=r||hnt,pke(e.slice(t,n),e,t,n,-t,r)}function z7(e,t,n,r,i){return t<0?rMe(e,n,r):$H(n,66).Nj().Pj(e,e.yh(),t,r,i)}function W7(e){return rN(e,172)?""+$H(e,172).a:null==e?null:$fe(e)}function G7(e){return rN(e,172)?""+$H(e,172).a:null==e?null:$fe(e)}function V7(e,t){if(t.a)throw jv(new fy(TXe));_G(e.a,t),t.a=e,!e.j&&(e.j=t)}function K7(e,t){mM.call(this,t.rd(),-16449&t.qd()),bK(e),this.a=e,this.c=t}function Y7(e,t){var n,r;return r=t/e.c.Hd().gc()|0,n=t%e.c.Hd().gc(),z6(e,r,n)}function q7(){q7=M,Yrt=new UC(rJe,0),Krt=new UC(eJe,1),qrt=new UC(iJe,2)}function X7(){X7=M,Dnt=new pC("All",0),Nnt=new II,Rnt=new OD,Lnt=new DI}function J7(){J7=M,Pnt=uue((X7(),Sse(Uw(Fnt,1),MYe,297,0,[Dnt,Nnt,Rnt,Lnt])))}function Z7(){Z7=M,nst=uue((Ose(),Sse(Uw(fst,1),MYe,405,0,[Xat,est,Jat,Zat])))}function e9(){e9=M,Pit=uue((Rae(),Sse(Uw(Uit,1),MYe,406,0,[Lit,Dit,Nit,Rit])))}function t9(){t9=M,Qit=uue((jve(),Sse(Uw(zit,1),MYe,323,0,[$it,Fit,jit,Hit])))}function n9(){n9=M,tot=uue((Hve(),Sse(Uw(rot,1),MYe,394,0,[Xit,qit,Jit,Zit])))}function r9(){r9=M,jyt=uue((Qye(),Sse(Uw(Hyt,1),MYe,393,0,[Lyt,Byt,Pyt,Fyt])))}function i9(){i9=M,act=uue((Tse(),Sse(Uw(gct,1),MYe,360,0,[ict,nct,rct,tct])))}function o9(){o9=M,Q_t=uue((kbe(),Sse(Uw(V_t,1),MYe,340,0,[H_t,$_t,j_t,F_t])))}function a9(){a9=M,wct=uue((kse(),Sse(Uw(Tct,1),MYe,411,0,[mct,vct,Act,bct])))}function s9(){s9=M,fAt=uue((dAe(),Sse(Uw(bAt,1),MYe,197,0,[uAt,dAt,cAt,lAt])))}function l9(){l9=M,cMt=uue(($ce(),Sse(Uw(hMt,1),MYe,396,0,[oMt,aMt,iMt,sMt])))}function c9(){c9=M,Skt=uue((Wye(),Sse(Uw(Lkt,1),MYe,285,0,[xkt,ykt,wkt,_kt])))}function u9(){u9=M,ZTt=uue((xfe(),Sse(Uw(akt,1),MYe,218,0,[XTt,YTt,KTt,qTt])))}function d9(){d9=M,nMt=uue((Fpe(),Sse(Uw(rMt,1),MYe,311,0,[eMt,XOt,ZOt,JOt])))}function h9(){h9=M,$Ot=uue((vge(),Sse(Uw(YOt,1),MYe,374,0,[BOt,POt,LOt,ROt])))}function f9(){f9=M,HHe(),$Nt=Lqe,FNt=Bqe,HNt=new Df(Lqe),jNt=new Df(Bqe)}function p9(){p9=M,Uut=new kT(KZe,0),Hut=new kT("IMPROVE_STRAIGHTNESS",1)}function g9(e,t){return lU(),GH(e,new nO(t,the(t.e.c.length+t.g.c.length)))}function m9(e,t){return lU(),GH(e,new nO(t,the(t.e.c.length+t.g.c.length)))}function v9(e,t){return 10!=mee(t)&&Sse(Zle(t),t.hm,t.__elementTypeId$,mee(t),e),e}function A9(e,t){var n;return-1!=(n=w9(e,t,0))&&(s6(e,n),!0)}function b9(e,t){var n;return(n=$H(m6(e.e,t),387))?(LU(n),n.e):null}function y9(e){var t;return qM(e)&&(t=0-e,!isNaN(t))?t:oae(ile(e))}function w9(e,t,n){for(;n<e.c.length;++n)if(rY(t,e.c[n]))return n;return-1}function _9(e,t,n){var r;return wK(e),(r=new le).a=t,e.a.Nb(new TC(r,n)),r.a}function x9(e){var t;return wK(e),t=N8(DRt,Hqe,25,0,15,1),px(e.a,new hp(t)),t}function E9(e){var t;return t=$H(NQ(e.j,0),11),$H(vSe(t,(lKe(),fht)),11)}function S9(e){var t;if(!Xre(e))throw jv(new AA);return e.e=1,t=e.d,e.d=null,t}function C9(e,t){var n;this.f=e,this.b=t,n=$H(LV(e.b,t),283),this.c=n?n.b:null}function T9(){U$(),this.b=new Nv,this.f=new Nv,this.g=new Nv,this.e=new Nv}function k9(e,t){this.a=N8(kst,i0e,10,e.a.c.length,0,1),Kme(e.a,this.a),this.b=t}function O9(e){var t;for(t=e.p+1;t<e.c.a.c.length;++t)--$H(NQ(e.c.a,t),10).p}function M9(e){var t;null!=(t=e.Ai())&&-1!=e.d&&$H(t,92).Ng(e),e.i&&e.i.Fi()}function I9(e){VD(this),this.g=e?CX(e,e.$d()):null,this.f=e,yq(this),this._d()}function D9(e,t,n,r,i,o,a){bre.call(this,t,r,i,o,a),this.c=e,this.b=n}function N9(e,t,n,r,i){return bK(e),bK(t),bK(n),bK(r),bK(i),new yG(e,t,r)}function R9(e,t){if(t<0)throw jv(new Oy(J4e+t));return p3(e,t+1),NQ(e.j,t)}function L9(e,t,n,r){if(!e)throw jv(new Py(MPe(t,Sse(Uw(Met,1),jKe,1,5,[n,r]))))}function B9(e,t){return rY(t,NQ(e.f,0))||rY(t,NQ(e.f,1))||rY(t,NQ(e.f,2))}function P9(e,t){IF($H($H(e.f,33).We((sKe(),oTt)),98))&&Kfe(AY($H(e.f,33)),t)}function F9(e,t){var n,r;return!(r=(n=$H(t,675)).Oh())&&n.Rh(r=new LO(e,t)),r}function $9(e,t){var n,r;return!(r=(n=$H(t,677)).pk())&&n.tk(r=new B1(e,t)),r}function j9(e){return e.b||(e.b=new qz(e,GIt,e),!e.a&&(e.a=new aP(e,e))),e.b}function H9(){H9=M,kat=new GC("XY",0),Tat=new GC("X",1),Oat=new GC("Y",2)}function U9(){U9=M,rit=new QC("TOP",0),nit=new QC(eJe,1),tit=new QC(aJe,2)}function Q9(){Q9=M,Sdt=new NT(KZe,0),Cdt=new NT("TOP",1),Edt=new NT(aJe,2)}function z9(){z9=M,BAt=new UT("INPUT_ORDER",0),PAt=new UT("PORT_DEGREE",1)}function W9(){W9=M,htt=xD(Eqe,Eqe,524287),ftt=xD(0,0,Cqe),ptt=F5(1),F5(2),gtt=F5(0)}function G9(e,t,n){e.a.c=N8(Met,jKe,1,0,5,1),WQe(e,t,n),0==e.a.c.length||c$e(e,t)}function V9(e){var t,n;return YG(e,0,n=e.length,t=N8(TRt,GYe,25,n,15,1),0),t}function K9(e){var t;return e.dh()||(t=dV(e.Tg())-e.Ah(),e.ph().bk(t)),e.Pg()}function Y9(e){var t;return null==(t=ene(Aae(e,32)))&&(cme(e),t=ene(Aae(e,32))),t}function q9(e,t){var n;return(n=Ope(e.d,t))>=0?Xve(e,n,!0,!0):rMe(e,t,!0)}function X9(e,t){var n,r;return xS(),n=c3(e),r=c3(t),!!n&&!!r&&!Bve(n.k,r.k)}function J9(e,t){Sne(e,null==t||GF((bK(t),t))||isNaN((bK(t),t))?0:(bK(t),t))}function Z9(e,t){Cne(e,null==t||GF((bK(t),t))||isNaN((bK(t),t))?0:(bK(t),t))}function eee(e,t){Ene(e,null==t||GF((bK(t),t))||isNaN((bK(t),t))?0:(bK(t),t))}function tee(e,t){xne(e,null==t||GF((bK(t),t))||isNaN((bK(t),t))?0:(bK(t),t))}function nee(e){(this.q?this.q:(Eq(),Eq(),cnt)).Ac(e.q?e.q:(Eq(),Eq(),cnt))}function ree(e,t){return rN(t,99)&&$H(t,18).Bb&$qe?new NM(t,e):new Oae(t,e)}function iee(e,t){return rN(t,99)&&$H(t,18).Bb&$qe?new NM(t,e):new Oae(t,e)}function oee(e,t){Vit=new nt,eot=t,$H((Git=e).b,65),B8(Git,Vit,null),oQe(Git)}function aee(e,t,n){var r;return r=e.g[t],yN(e,t,e.oi(t,n)),e.gi(t,n,r),e.ci(),r}function see(e,t){var n;return(n=e.Xc(t))>=0&&(e.$c(n),!0)}function lee(e){var t;return e.d!=e.r&&(t=Twe(e),e.e=!!t&&t.Cj()==w7e,e.d=t),e.e}function cee(e,t){var n;for(AV(e),AV(t),n=!1;t.Ob();)n|=e.Fc(t.Pb());return n}function uee(e,t){var n;return(n=$H(LV(e.e,t),387))?(oN(e,n),n.e):null}function dee(e){var t,n;return t=e/60|0,0==(n=e%60)?""+t:t+":"+n}function hee(e,t){return Khe(e),new LQ(e,new BF(new x6(t,e.a)))}function fee(e,t){var n=e.a[t],r=(Xse(),utt)[typeof n];return r?r(n):bue(typeof n)}function pee(e){switch(e.g){case 0:return RKe;case 1:return-1;default:return 0}}function gee(e){return Bwe(e,(W9(),gtt))<0?-CR(ile(e)):e.l+e.m*Tqe+e.h*kqe}function mee(e){return null==e.__elementTypeCategory$?10:e.__elementTypeCategory$}function vee(e){var t;return null!=(t=0==e.b.c.length?null:NQ(e.b,0))&&lie(e,0),t}function Aee(e,t){for(;t[0]<e.length&&UM(" \t\r\n",YEe(cY(e,t[0])))>=0;)++t[0]}function bee(e,t){this.e=t,this.a=Vae(e),this.a<54?this.f=y2(e):this.c=Jme(e)}function yee(e,t,n,r){hKe(),Ov.call(this,26),this.c=e,this.a=t,this.d=n,this.b=r}function wee(e,t,n){var r,i;for(r=10,i=0;i<n-1;i++)t<r&&(e.a+="0"),r*=10;e.a+=t}function _ee(e,t){var n;for(n=0;e.e!=e.i.gc();)pQ(t,bve(e),the(n)),n!=RKe&&++n}function xee(e,t){var n;for(++e.d,++e.c[t],n=t+1;n<e.a.length;)++e.a[n],n+=n&-n}function Eee(e,t){var n,r,i;i=t.c.i,r=(n=$H(LV(e.f,i),57)).d.c-n.e.c,Yie(t.a,r,0)}function See(e){var t,n;return t=e+128,!(n=(yQ(),wtt)[t])&&(n=wtt[t]=new Mf(e)),n}function Cee(e,t){var n;return bK(t),Nee(!!(n=e[":"+t]),Sse(Uw(Met,1),jKe,1,5,[t])),n}function Tee(e){var t,n;if(e.b){n=null;do{t=e.b,e.b=null,n=sTe(t,n)}while(e.b);e.b=n}}function kee(e){var t,n;if(e.a){n=null;do{t=e.a,e.a=null,n=sTe(t,n)}while(e.a);e.a=n}}function Oee(e){var t;for(++e.a,t=e.c.a.length;e.a<t;++e.a)if(e.c.b[e.a])return}function Mee(e,t){var n,r;for(n=(r=t.c)+1;n<=t.f;n++)e.a[n]>e.a[r]&&(r=n);return r}function Iee(e,t){var n;return 0==(n=Tfe(e.e.c,t.e.c))?She(e.e.d,t.e.d):n}function Dee(e,t){return 0==t.e||0==e.e?tnt:(MMe(),ORe(e,t))}function Nee(e,t){if(!e)throw jv(new Py(YRe("Enum constant undefined: %s",t)))}function Ree(){Ree=M,ost=new St,ast=new xt,rst=new Mt,ist=new It,sst=new Dt}function Lee(){Lee=M,mrt=new $C("BY_SIZE",0),vrt=new $C("BY_SIZE_AND_SHAPE",1)}function Bee(){Bee=M,Rot=new WC("EADES",0),Lot=new WC("FRUCHTERMAN_REINGOLD",1)}function Pee(){Pee=M,Eut=new ST("READING_DIRECTION",0),Sut=new ST("ROTATION",1)}function Fee(){Fee=M,xut=uue((VAe(),Sse(Uw(Cut,1),MYe,335,0,[Aut,vut,yut,wut,but])))}function $ee(){$ee=M,yAt=uue((DAe(),Sse(Uw(OAt,1),MYe,315,0,[AAt,gAt,mAt,pAt,vAt])))}function jee(){jee=M,kct=uue((Ixe(),Sse(Uw(Bct,1),MYe,363,0,[xct,Sct,Cct,Ect,_ct])))}function Hee(){Hee=M,Qht=uue((_fe(),Sse(Uw(tAt,1),MYe,163,0,[Hht,Pht,Fht,$ht,jht])))}function Uee(){Uee=M,sEt=uue((MCe(),Sse(Uw(QEt,1),MYe,316,0,[tEt,nEt,oEt,rEt,iEt])))}function Qee(){Qee=M,dSt=uue((nve(),Sse(Uw(ySt,1),MYe,175,0,[lSt,sSt,oSt,cSt,aSt])))}function zee(){zee=M,$xt=uue((YNe(),Sse(Uw(Qxt,1),MYe,355,0,[Rxt,Nxt,Bxt,Lxt,Pxt])))}function Wee(){Wee=M,Hat=uue((ASe(),Sse(Uw(zat,1),MYe,356,0,[Lat,Bat,Pat,Fat,$at])))}function Gee(){Gee=M,UTt=uue((Fde(),Sse(Uw(GTt,1),MYe,103,0,[$Tt,FTt,PTt,BTt,jTt])))}function Vee(){Vee=M,Qkt=uue((rve(),Sse(Uw(qkt,1),MYe,249,0,[$kt,Hkt,Pkt,Fkt,jkt])))}function Kee(){Kee=M,kOt=uue((bGe(),Sse(Uw(FOt,1),YZe,61,0,[SOt,sOt,aOt,EOt,COt])))}function Yee(e,t){var n;return(n=$H(LV(e.a,t),134))||(n=new Je,VK(e.a,t,n)),n}function qee(e){var t;return!!(t=$H(vSe(e,(lKe(),Ldt)),305))&&t.a==e}function Xee(e){var t;return!!(t=$H(vSe(e,(lKe(),Ldt)),305))&&t.i==e}function Jee(e,t){return bK(t),RW(e),!!e.d.Ob()&&(t.td(e.d.Pb()),!0)}function Zee(e){return Vue(e,RKe)>0?RKe:Vue(e,PYe)<0?PYe:fz(e)}function ete(e){return e<3?(ure(e,TYe),e+1):e<kYe?CJ(e/.75+1):RKe}function tte(e,t){var n;return null==e.i&&Hje(e),n=e.i,t>=0&&t<n.length?n[t]:null}function nte(e,t,n){var r;if(null==t)throw jv(new pA);return r=QJ(e,t),t4(e,t,n),r}function rte(e){return e.a>=-.01&&e.a<=cJe&&(e.a=0),e.b>=-.01&&e.b<=cJe&&(e.b=0),e}function ite(e,t){return t==(r$(),r$(),xnt)?e.toLocaleLowerCase():e.toLowerCase()}function ote(e){return(2&e.i?"interface ":1&e.i?"":"class ")+(wB(e),e.o)}function ate(e){var t;t=new Mb,c7((!e.q&&(e.q=new eG(VIt,e,11,10)),e.q),t)}function ste(e,t){var n;return n=t>0?t-1:t,M_(I_(Fne(IU(new Wb,n),e.n),e.j),e.k)}function lte(e,t,n,r){e.j=-1,HMe(e,wTe(e,t,n),(XS(),$H(t,66).Mj().Ok(r)))}function cte(e){this.g=e,this.f=new Dv,this.a=r.Math.min(this.g.c.c,this.g.d.c)}function ute(e){this.b=new Dv,this.a=new Dv,this.c=new Dv,this.d=new Dv,this.e=e}function dte(e,t){this.a=new Nv,this.e=new Nv,this.b=(xue(),oAt),this.c=e,this.b=t}function hte(e,t,n){DP.call(this),Nte(this),this.a=e,this.c=n,this.b=t.d,this.f=t.e}function fte(e){this.d=e,this.c=e.c.vc().Kc(),this.b=null,this.a=null,this.e=(ny(),zet)}function pte(e){if(e<0)throw jv(new Py("Illegal Capacity: "+e));this.g=this.ri(e)}function gte(e,t){if(0>e||e>t)throw jv(new _w("fromIndex: 0, toIndex: "+e+lXe+t))}function mte(e){var t;if(e.a==e.b.a)throw jv(new AA);return t=e.a,e.c=t,e.a=e.a.e,t}function vte(e){var t;xL(!!e.c),t=e.c.a,Ote(e.d,e.c),e.b==e.c?e.b=t:--e.a,e.c=null}function Ate(e,t){var n;return Khe(e),n=new mq(e,e.a.rd(),4|e.a.qd(),t),new LQ(e,n)}function bte(e,t){var n,r;return(n=$H(ude(e.d,t),14))?(r=t,e.e.pc(r,n)):null}function yte(e,t){var n;for(n=e.Kc();n.Ob();)lle($H(n.Pb(),70),(lKe(),oht),t)}function wte(e){var t;return(t=Uy(xB(vSe(e,(jVe(),imt)))))<0&&lle(e,imt,t=0),t}function _te(e,t,n){var i;Fwe(n,i=r.Math.max(0,e.b/2-.5),1),GH(t,new tT(n,i))}function xte(e,t,n){return CJ(jU(e.a.e[$H(t.a,10).p]-e.a.e[$H(n.a,10).p]))}function Ete(e,t,n,r,i,o){var a;EZ(a=G5(r),i),xZ(a,o),qOe(e.a,r,new I$(a,t,n.f))}function Ste(e,t){var n;if(!(n=DRe(e.Tg(),t)))throw jv(new Py(n6e+t+o6e));return n}function Cte(e,t){var n;for(n=e;qJ(n);)if((n=qJ(n))==t)return!0;return!1}function Tte(e,t){var n,r,i;for(r=t.a.cd(),n=$H(t.a.dd(),14).gc(),i=0;i<n;i++)e.td(r)}function kte(e,t){var n,r,i,o;for(bK(t),i=0,o=(r=e.c).length;i<o;++i)n=r[i],t.td(n)}function Ote(e,t){var n;return n=t.c,t.a.b=t.b,t.b.a=t.a,t.a=t.b=null,t.c=null,--e.b,n}function Mte(e,t){return!(!t||e.b[t.g]!=t||(MV(e.b,t.g,null),--e.c,0))}function Ite(e,t){return!!Xie(e,t,fz(rfe(EYe,nY(fz(rfe(null==t?0:Jle(t),SYe)),15))))}function Dte(e,t){IF($H(vSe($H(e.e,10),(jVe(),evt)),98))&&(Eq(),vD($H(e.e,10).j,t))}function Nte(e){e.b=(q7(),Krt),e.f=(U9(),nit),e.d=(ure(2,OYe),new q6(2)),e.e=new U_}function Rte(){Rte=M,Urt=new HC("BEGIN",0),Qrt=new HC(eJe,1),zrt=new HC("END",2)}function Lte(){Lte=M,QTt=new Pk(eJe,0),zTt=new Pk("HEAD",1),WTt=new Pk("TAIL",2)}function Bte(){return lIe(),Sse(Uw(rIt,1),MYe,237,0,[eIt,XMt,JMt,qMt,ZMt,KMt,VMt,YMt])}function Pte(){return STe(),Sse(Uw(ESt,1),MYe,277,0,[bSt,hSt,mSt,ASt,fSt,pSt,gSt,vSt])}function Fte(){return bBe(),Sse(Uw(tut,1),MYe,270,0,[$ct,Uct,Fct,Wct,Hct,jct,zct,Qct])}function $te(){return sRe(),Sse(Uw(RAt,1),MYe,260,0,[TAt,_At,SAt,xAt,EAt,wAt,CAt,kAt])}function jte(){jte=M,Xkt=uue((Kxe(),Sse(Uw(iOt,1),MYe,98,0,[Ykt,Kkt,Vkt,zkt,Gkt,Wkt])))}function Hte(){Hte=M,Jrt=(Rte(),Sse(Uw(Vrt,1),MYe,232,0,[Urt,Qrt,zrt])).length,Xrt=Jrt}function Ute(e){this.b=(AV(e),new ZF(e)),this.a=new Dv,this.d=new Dv,this.e=new U_}function Qte(e){var t;return(t=r.Math.sqrt(e.a*e.a+e.b*e.b))>0&&(e.a/=t,e.b/=t),e}function zte(e){var t;return e.w?e.w:((t=V0(e))&&!t.kh()&&(e.w=t),t)}function Wte(e){var t;return null==e?null:VEe(t=$H(e,190),t.length)}function Gte(e,t){if(null==e.g||t>=e.i)throw jv(new IM(t,e.i));return e.li(t,e.g[t])}function Vte(e){var t,n;for(t=e.a.d.j,n=e.c.d.j;t!=n;)aie(e.b,t),t=xhe(t);aie(e.b,t)}function Kte(e){var t;for(t=0;t<e.c.length;t++)(u0(t,e.c.length),$H(e.c[t],11)).p=t}function Yte(e,t,n){var r,i,o;for(i=t[n],r=0;r<i.length;r++)o=i[r],e.e[o.c.p][o.p]=r}function qte(e,t){var n,r,i,o;for(i=0,o=(r=e.d).length;i<o;++i)n=r[i],uN(e.g,n).a=t}function Xte(e,t){var n;for(n=sve(e,0);n.b!=n.d.c;)zP($H(d3(n),8),t);return e}function Jte(e,t){return WP($D($H(LV(e.g,t),8)),PD($H(LV(e.f,t),460).b))}function Zte(e){var t;return g2(e.e,e),SL(e.b),e.c=e.a,t=$H(e.a.Pb(),42),e.b=fse(e),t}function ene(e){var t;return qU(null==e||Array.isArray(e)&&!((t=mee(e))>=14&&t<=16)),e}function tne(e,t,n){var r=function(){return e.apply(r,arguments)};return t.apply(r,n),r}function nne(e,t,n){var r,i;r=t;do{i=Uy(e.p[r.p])+n,e.p[r.p]=i,r=e.a[r.p]}while(r!=t)}function rne(e,t){var n,r;r=e.a,n=Kde(e,t,null),r!=t&&!e.e&&(n=iWe(e,t,n)),n&&n.Fi()}function ine(e,t){return lD(),nre(BYe),r.Math.abs(e-t)<=BYe||e==t||isNaN(e)&&isNaN(t)}function one(e,t){return lD(),nre(BYe),r.Math.abs(e-t)<=BYe||e==t||isNaN(e)&&isNaN(t)}function ane(e,t){return PSe(),wD(e.b.c.length-e.e.c.length,t.b.c.length-t.e.c.length)}function sne(e,t){return X_(qie(e,t,fz(rfe(EYe,nY(fz(rfe(null==t?0:Jle(t),SYe)),15)))))}function lne(){lne=M,Ost=uue((oCe(),Sse(Uw(Mst,1),MYe,267,0,[Cst,Sst,xst,Tst,Est,_st])))}function cne(){cne=M,ZSt=uue((hxe(),Sse(Uw(HTt,1),MYe,291,0,[XSt,qSt,YSt,VSt,GSt,KSt])))}function une(){une=M,NSt=uue((hAe(),Sse(Uw(JSt,1),MYe,248,0,[CSt,OSt,MSt,ISt,TSt,kSt])))}function dne(){dne=M,nut=uue((MTe(),Sse(Uw(out,1),MYe,227,0,[Xct,Zct,qct,Jct,eut,Yct])))}function hne(){hne=M,adt=uue((qSe(),Sse(Uw(vdt,1),MYe,275,0,[rdt,edt,idt,ndt,tdt,Zut])))}function fne(){fne=M,Jut=uue(($_e(),Sse(Uw(odt,1),MYe,274,0,[Kut,Vut,qut,Gut,Yut,Wut])))}function pne(){pne=M,nAt=uue((_Ee(),Sse(Uw(aAt,1),MYe,313,0,[Zvt,Xvt,Yvt,qvt,eAt,Jvt])))}function gne(){gne=M,jut=uue((pCe(),Sse(Uw(Qut,1),MYe,276,0,[Rut,Nut,But,Lut,Fut,Put])))}function mne(){mne=M,qyt=uue((RTe(),Sse(Uw(Pwt,1),MYe,327,0,[Kyt,zyt,Gyt,Wyt,Vyt,Qyt])))}function vne(){vne=M,oOt=uue((uOe(),Sse(Uw(TOt,1),MYe,273,0,[nOt,eOt,tOt,Zkt,Jkt,rOt])))}function Ane(){Ane=M,skt=uue((JEe(),Sse(Uw(Akt,1),MYe,312,0,[ikt,nkt,okt,ekt,rkt,tkt])))}function bne(){return JIe(),Sse(Uw(Ukt,1),MYe,93,0,[Tkt,Ckt,Okt,Rkt,Nkt,Dkt,Mkt,Ikt,kkt])}function yne(e,t){var n;n=e.a,e.a=t,4&e.Db&&!(1&e.Db)&&dae(e,new c4(e,0,n,e.a))}function wne(e,t){var n;n=e.b,e.b=t,4&e.Db&&!(1&e.Db)&&dae(e,new c4(e,1,n,e.b))}function _ne(e,t){var n;n=e.b,e.b=t,4&e.Db&&!(1&e.Db)&&dae(e,new c4(e,3,n,e.b))}function xne(e,t){var n;n=e.f,e.f=t,4&e.Db&&!(1&e.Db)&&dae(e,new c4(e,3,n,e.f))}function Ene(e,t){var n;n=e.g,e.g=t,4&e.Db&&!(1&e.Db)&&dae(e,new c4(e,4,n,e.g))}function Sne(e,t){var n;n=e.i,e.i=t,4&e.Db&&!(1&e.Db)&&dae(e,new c4(e,5,n,e.i))}function Cne(e,t){var n;n=e.j,e.j=t,4&e.Db&&!(1&e.Db)&&dae(e,new c4(e,6,n,e.j))}function Tne(e,t){var n;n=e.j,e.j=t,4&e.Db&&!(1&e.Db)&&dae(e,new c4(e,1,n,e.j))}function kne(e,t){var n;n=e.c,e.c=t,4&e.Db&&!(1&e.Db)&&dae(e,new c4(e,4,n,e.c))}function One(e,t){var n;n=e.k,e.k=t,4&e.Db&&!(1&e.Db)&&dae(e,new c4(e,2,n,e.k))}function Mne(e,t){var n;n=e.d,e.d=t,4&e.Db&&!(1&e.Db)&&dae(e,new u4(e,2,n,e.d))}function Ine(e,t){var n;n=e.s,e.s=t,4&e.Db&&!(1&e.Db)&&dae(e,new u4(e,4,n,e.s))}function Dne(e,t){var n;n=e.t,e.t=t,4&e.Db&&!(1&e.Db)&&dae(e,new u4(e,5,n,e.t))}function Nne(e,t){var n;n=e.F,e.F=t,4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,5,n,t))}function Rne(e,t){var n;return(n=$H(LV((JS(),mIt),e),55))?n.xj(t):N8(Met,jKe,1,t,5,1)}function Lne(e,t){var n;return t in e.a&&(n=QJ(e,t).he())?n.a:null}function Bne(e,t){var n,r;return Z_(),r=new ll,!!t&&TRe(r,t),Nre(n=r,e),n}function Pne(e,t,n){if(Nce(e,n),!e.Bk()&&null!=n&&!e.wj(n))throw jv(new uA);return n}function Fne(e,t){return e.n=t,e.n?(e.f=new Dv,e.e=new Dv):(e.f=null,e.e=null),e}function $ne(e,t,n,r,i,o){var a;return Kne(n,a=vV(e,t)),a.i=i?8:0,a.f=r,a.e=i,a.g=o,a}function jne(e,t,n,r,i){this.d=t,this.k=r,this.f=i,this.o=-1,this.p=1,this.c=e,this.a=n}function Hne(e,t,n,r,i){this.d=t,this.k=r,this.f=i,this.o=-1,this.p=2,this.c=e,this.a=n}function Une(e,t,n,r,i){this.d=t,this.k=r,this.f=i,this.o=-1,this.p=6,this.c=e,this.a=n}function Qne(e,t,n,r,i){this.d=t,this.k=r,this.f=i,this.o=-1,this.p=7,this.c=e,this.a=n}function zne(e,t,n,r,i){this.d=t,this.j=r,this.e=i,this.o=-1,this.p=4,this.c=e,this.a=n}function Wne(e,t){var n,r,i,o;for(i=0,o=(r=t).length;i<o;++i)n=r[i],V7(e.a,n);return e}function Gne(e){var t,n,r;for(n=0,r=(t=e).length;n<r;++n)AV(t[n]);return new OM(e)}function Vne(e){var t=/function(?:\s+([\w$]+))?\s*\(/.exec(e);return t&&t[1]||QYe}function Kne(e,t){if(e){t.n=e;var n=zJ(t);n?n.gm=t:EKe[e]=[t]}}function Yne(e,t,n){var i;return i=e.length,Pke(e,0,t,0,r.Math.min(n,i),!0),t}function qne(e,t,n){var r,i;for(i=t.Kc();i.Ob();)r=$H(i.Pb(),79),_G(e,$H(n.Kb(r),33))}function Xne(){Yx();for(var e=SKe,t=0;t<arguments.length;t++)e.push(arguments[t])}function Jne(e,t){var n,r,i;for(r=0,i=(n=t).length;r<i;++r)n5(e,n[r],e.c.b,e.c)}function Zne(e,t){e.b=r.Math.max(e.b,t.d),e.e+=t.r+(0==e.a.c.length?0:e.c),GH(e.a,t)}function ere(e){xL(e.c>=0),nme(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function tre(e){return e.a<54?e.f<0?-1:e.f>0?1:0:(!e.c&&(e.c=Aue(e.f)),e.c).e}function nre(e){if(!(e>=0))throw jv(new Py("tolerance ("+e+") must be >= 0"));return e}function rre(){return rSt||bce(rSt=new kPe,Sse(Uw(Prt,1),jKe,130,0,[new Id])),rSt}function ire(){ire=M,UAt=new QT(lJe,0),jAt=new QT("INPUT",1),HAt=new QT("OUTPUT",2)}function ore(){ore=M,hut=new xT("ARD",0),put=new xT("MSD",1),fut=new xT("MANUAL",2)}function are(){are=M,kbt=new YT("BARYCENTER",0),Obt=new YT(w0e,1),Mbt=new YT(_0e,2)}function sre(e,t){var n;if(n=e.gc(),t<0||t>n)throw jv(new ZP(t,n));return new LF(e,t)}function lre(e,t){var n;return rN(t,42)?e.c.Mc(t):(n=nge(e,t),Gge(e,t),n)}function cre(e,t,n){return Tue(e,t),Die(e,n),Ine(e,0),Dne(e,1),Jde(e,!0),Yde(e,!0),e}function ure(e,t){if(e<0)throw jv(new Py(t+" cannot be negative but was: "+e));return e}function dre(e,t){var n,r;for(n=0,r=e.gc();n<r;++n)if(rY(t,e.Xb(n)))return n;return-1}function hre(e){var t;for(t=e.c.Cc().Kc();t.Ob();)$H(t.Pb(),14).$b();e.c.$b(),e.d=0}function fre(e){var t,n,r,i;for(r=0,i=(n=e.a).length;r<i;++r)KG(t=n[r],t.length,null)}function pre(e){var t,n;if(0==e)return 32;for(n=0,t=1;!(t&e);t<<=1)++n;return n}function gre(e){var t;for(t=new Gf(eye(e));t.a<t.c.c.length;)$H(J0(t),680).Gf()}function mre(e){mS(),this.g=new Nv,this.f=new Nv,this.b=new Nv,this.c=new gJ,this.i=e}function vre(){this.f=new U_,this.d=new hb,this.c=new U_,this.a=new Dv,this.b=new Dv}function Are(e,t,n,r){this.rj(),this.a=t,this.b=e,this.c=null,this.c=new uF(this,t,n,r)}function bre(e,t,n,r,i){this.d=e,this.n=t,this.g=n,this.o=r,this.p=-1,i||(this.o=-2-r-1)}function yre(){kN.call(this),this.n=-1,this.g=null,this.i=null,this.j=null,this.Bb|=b6e}function wre(){return JFe(),Sse(Uw(tMt,1),MYe,259,0,[UOt,zOt,HOt,WOt,GOt,KOt,VOt,QOt,jOt])}function _re(){return ZBe(),Sse(Uw($rt,1),MYe,250,0,[Lrt,Mrt,Irt,Ort,Nrt,Rrt,Drt,krt,Trt])}function xre(){xre=M,Ott=Sse(Uw(kRt,1),lqe,25,15,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function Ere(){Ere=M,bbt=fQ(fQ(fQ(new $2,(ASe(),Lat),(uKe(),rlt)),Bat,klt),Pat,Tlt)}function Sre(){Sre=M,ybt=fQ(fQ(fQ(new $2,(ASe(),Lat),(uKe(),rlt)),Bat,klt),Pat,Tlt)}function Cre(){Cre=M,xbt=fQ(fQ(fQ(new $2,(ASe(),Lat),(uKe(),rlt)),Bat,klt),Pat,Tlt)}function Tre(){Tre=M,Cbt=Gz(fQ(fQ(new $2,(ASe(),Pat),(uKe(),Ilt)),Fat,wlt),$at,Mlt)}function kre(){kre=M,lut=new _T("LAYER_SWEEP",0),sut=new _T($0e,1),cut=new _T(KZe,2)}function Ore(e,t){var n,r;return n=e.c,(r=t.e[e.p])>0?$H(NQ(n.a,r-1),10):null}function Mre(e,t){var n;n=e.k,e.k=t,4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,2,n,e.k))}function Ire(e,t){var n;n=e.f,e.f=t,4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,8,n,e.f))}function Dre(e,t){var n;n=e.i,e.i=t,4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,7,n,e.i))}function Nre(e,t){var n;n=e.a,e.a=t,4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,8,n,e.a))}function Rre(e,t){var n;n=e.b,e.b=t,4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,0,n,e.b))}function Lre(e,t){var n;n=e.b,e.b=t,4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,0,n,e.b))}function Bre(e,t){var n;n=e.c,e.c=t,4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,1,n,e.c))}function Pre(e,t){var n;n=e.c,e.c=t,4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,1,n,e.c))}function Fre(e,t){var n;n=e.c,e.c=t,4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,4,n,e.c))}function $re(e,t){var n;n=e.d,e.d=t,4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,1,n,e.d))}function jre(e,t){var n;n=e.D,e.D=t,4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,2,n,e.D))}function Hre(e,t){e.r>0&&e.c<e.r&&(e.c+=t,e.i&&e.i.d>0&&0!=e.g&&Hre(e.i,t/e.r*e.i.d))}function Ure(e,t,n){var r;e.b=t,e.a=n,r=512&~e.a?new Bu:new Fb,e.c=xBe(r,e.b,e.a)}function Qre(e,t){return MLe(e.e,t)?(XS(),lee(t)?new uQ(t,e):new NO(t,e)):new BO(t,e)}function zre(e,t){return q_(Xie(e.a,t,fz(rfe(EYe,nY(fz(rfe(null==t?0:Jle(t),SYe)),15)))))}function Wre(e,t,n){return N9(e,new cp(t),new ae,new up(n),Sse(Uw(Jnt,1),MYe,132,0,[]))}function Gre(e){return 0>e?new VE:new MB(null,new v5(e+1,e))}function Vre(e,t){var n;return Eq(),n=new WE(1),WO(e)?vZ(n,e,t):yke(n.f,e,t),new Wf(n)}function Kre(e,t){var n,r;return(n=e.o+e.p)<(r=t.o+t.p)?-1:n==r?0:1}function Yre(e){var t;return rN(t=vSe(e,(lKe(),fht)),160)?vpe($H(t,160)):null}function qre(e){var t;return(e=r.Math.max(e,2))>(t=ble(e))?(t<<=1)>0?t:kYe:t}function Xre(e){switch(oR(3!=e.e),e.e){case 2:return!1;case 0:return!0}return P5(e)}function Jre(e,t){var n;return!!rN(t,8)&&(n=$H(t,8),e.a==n.a&&e.b==n.b)}function Zre(e,t,n){var r,i;return i=t>>5,r=31&t,e1(yW(e.n[n][i],fz(AW(r,1))),3)}function eie(e,t){var n,r;for(r=t.vc().Kc();r.Ob();)m_e(e,(n=$H(r.Pb(),42)).cd(),n.dd())}function tie(e,t){var n;n=new nt,$H(t.b,65),$H(t.b,65),$H(t.b,65),kte(t.a,new _H(e,n,t))}function nie(e,t){var n;n=e.b,e.b=t,4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,21,n,e.b))}function rie(e,t){var n;n=e.d,e.d=t,4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,11,n,e.d))}function iie(e,t){var n;n=e.j,e.j=t,4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,13,n,e.j))}function oie(e,t,n){var r,i,o;for(o=e.a.length-1,i=e.b,r=0;r<n;i=i+1&o,++r)MV(t,r,e.a[i])}function aie(e,t){var n;return bK(t),n=t.g,!e.b[n]&&(MV(e.b,n,t),++e.c,!0)}function sie(e,t){var n;return!((n=null==t?-1:w9(e.b,t,0))<0||(lie(e,n),0))}function lie(e,t){var n;n=s6(e.b,e.b.c.length-1),t<e.b.c.length&&(r5(e.b,t,n),Bke(e,t))}function cie(e,t){0==(b5(),Knt?null:t.c).length&&QB(t,new V),vZ(e.a,Knt?null:t.c,t)}function uie(e,t){kEe(t,"Hierarchical port constraint processing",1),dve(e),YVe(e),jCe(t)}function die(e,t){var n,r;for(r=t.Kc();r.Ob();)n=$H(r.Pb(),266),e.b=!0,_G(e.e,n),n.b=e}function hie(e,t){var n,r;return n=1-t,r=e.a[n],e.a[n]=r.a[t],r.a[t]=e,e.b=!0,r.b=!1,r}function fie(e,t){var n,r;return n=$H(vSe(e,(jVe(),svt)),8),r=$H(vSe(t,svt),8),She(n.b,r.b)}function pie(e){Lz.call(this),this.b=Uy(xB(vSe(e,(jVe(),Avt)))),this.a=$H(vSe(e,Xgt),218)}function gie(e,t,n){U2.call(this,e,t,n),this.a=new Nv,this.b=new Nv,this.d=new Gg(this)}function mie(e){this.e=e,this.d=new dx(ete(pW(this.e).gc())),this.c=this.e.a,this.b=this.e.c}function vie(e){this.b=e,this.a=N8(kRt,lqe,25,e+1,15,1),this.c=N8(kRt,lqe,25,e,15,1),this.d=0}function Aie(e,t,n){var r;return yLe(e,t,r=new Dv,n,!0,!0),e.b=new vie(r.c.length),r}function bie(e,t){var n;return(n=$H(LV(e.c,t),458))||((n=new rb).c=t,VK(e.c,n.c,n)),n}function yie(e,t){var n=e.a,r=0;for(var i in n)n.hasOwnProperty(i)&&(t[r++]=i);return t}function wie(e){return null==e.b?(YS(),YS(),DDt):e.Lk()?e.Kk():e.Jk()}function _ie(e){var t,n;for(n=new ON(e);n.e!=n.i.gc();)Sne(t=$H(bve(n),33),0),Cne(t,0)}function xie(){xie=M,sat=new ov(kZe),lat=new ov(OZe),aat=new ov(MZe),oat=new ov(IZe)}function Eie(){Eie=M,Hst=new XC("TO_INTERNAL_LTR",0),jst=new XC("TO_INPUT_DIRECTION",1)}function Sie(){Sie=M,Kwt=new fk("P1_NODE_PLACEMENT",0),Ywt=new fk("P2_EDGE_ROUTING",1)}function Cie(){Cie=M,Lct=new bT("START",0),Rct=new bT("MIDDLE",1),Nct=new bT("END",2)}function Tie(){Tie=M,Zlt=new tP("edgelabelcenterednessanalysis.includelabel",(lR(),mtt))}function kie(e,t){qE(OY(new LQ(null,new h0(new Cf(e.b),1)),new qk(e,t)),new Jk(e,t))}function Oie(){this.c=new Tx(0),this.b=new Tx($3e),this.d=new Tx(F3e),this.a=new Tx(qJe)}function Mie(e){var t,n;for(n=e.c.a.ec().Kc();n.Ob();)Qh(t=$H(n.Pb(),214),new jSe(t.e))}function Iie(e){var t,n;for(n=e.c.a.ec().Kc();n.Ob();)Uh(t=$H(n.Pb(),214),new VW(t.f))}function Die(e,t){var n;n=e.zb,e.zb=t,4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,1,n,e.zb))}function Nie(e,t){var n;n=e.xb,e.xb=t,4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,3,n,e.xb))}function Rie(e,t){var n;n=e.yb,e.yb=t,4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,2,n,e.yb))}function Lie(e,t){var n;(n=new kb).n=t,c7((!e.s&&(e.s=new eG(PIt,e,21,17)),e.s),n)}function Bie(e,t){var n;(n=new gB).n=t,c7((!e.s&&(e.s=new eG(PIt,e,21,17)),e.s),n)}function Pie(e,t){var n,r;for(Q7(n=e.Pc(),0,n.length,t),r=0;r<n.length;r++)e._c(r,n[r])}function Fie(e,t){var n,r,i;for(bK(t),n=!1,i=t.Kc();i.Ob();)r=i.Pb(),n|=e.Fc(r);return n}function $ie(e){var t,n,r;for(t=0,r=e.Kc();r.Ob();)t=~~(t+=null!=(n=r.Pb())?Jle(n):0);return t}function jie(e){var t;return 0==e?"UTC":(e<0?(e=-e,t="UTC+"):t="UTC-",t+dee(e))}function Hie(e,t){var n;return rN(t,14)?(n=$H(t,14),e.Gc(n)):cee(e,$H(AV(t),20).Kc())}function Uie(e,t,n){dte.call(this,t,n),this.d=N8(kst,i0e,10,e.a.c.length,0,1),Kme(e.a,this.d)}function Qie(e){e.a=null,e.e=null,e.b.c=N8(Met,jKe,1,0,5,1),e.f.c=N8(Met,jKe,1,0,5,1),e.c=null}function zie(e,t){t?null==e.B&&(e.B=e.D,e.D=null):null!=e.B&&(e.D=e.B,e.B=null)}function Wie(e,t){return Uy(xB(MR(Mde(MY(new LQ(null,new h0(e.c.b,16)),new Ng(e)),t))))}function Gie(e,t){return Uy(xB(MR(Mde(MY(new LQ(null,new h0(e.c.b,16)),new Dg(e)),t))))}function Vie(e,t){kEe(t,b0e,1),qE(hee(new LQ(null,new h0(e.b,16)),new Jt),new Zt),jCe(t)}function Kie(e,t){var n,r;return n=$H(XIe(e,(zye(),I_t)),19),r=$H(XIe(t,I_t),19),wD(n.a,r.a)}function Yie(e,t,n){var r,i;for(i=sve(e,0);i.b!=i.d.c;)(r=$H(d3(i),8)).a+=t,r.b+=n;return e}function qie(e,t,n){var r;for(r=e.b[n&e.f];r;r=r.b)if(n==r.a&&hK(t,r.g))return r;return null}function Xie(e,t,n){var r;for(r=e.c[n&e.f];r;r=r.d)if(n==r.f&&hK(t,r.i))return r;return null}function Jie(e,t,n){var r,i,o;for(r=0,i=0;i<n;i++)o=t[i],e[i]=o<<1|r,r=o>>>31;0!=r&&(e[n]=r)}function Zie(e,t){var n,r;for(Eq(),r=new Dv,n=0;n<e;++n)r.c[r.c.length]=t;return new Mw(r)}function eoe(e){var t;return KO((t=_2(e)).a,0)?(lS(),lS(),Snt):(lS(),new AL(t.b))}function toe(e){var t;return KO((t=_2(e)).a,0)?(lS(),lS(),Snt):(lS(),new AL(t.c))}function noe(e){var t;return KO((t=w2(e)).a,0)?(cS(),cS(),Cnt):(cS(),new bL(t.b))}function roe(e){return e.b.c.i.k==(oCe(),xst)?$H(vSe(e.b.c.i,(lKe(),fht)),11):e.b.c}function ioe(e){return e.b.d.i.k==(oCe(),xst)?$H(vSe(e.b.d.i,(lKe(),fht)),11):e.b.d}function ooe(e,t,n,r,i,o,a,s,l,c,u,d,h){return dke(e,t,n,r,i,o,a,s,l,c,u,d,h),Uhe(e,!1),e}function aoe(e,t,n,r,i,o,a){pE.call(this,e,t),this.d=n,this.e=r,this.c=i,this.b=o,this.a=o6(a)}function soe(e,t){typeof window===OKe&&typeof window.$gwt===OKe&&(window.$gwt[e]=t)}function loe(e,t){return Ose(),e==Xat&&t==est||e==est&&t==Xat||e==Zat&&t==Jat||e==Jat&&t==Zat}function coe(e,t){return Ose(),e==Xat&&t==Jat||e==Xat&&t==Zat||e==est&&t==Zat||e==est&&t==Jat}function uoe(e,t){return lD(),nre(cJe),r.Math.abs(0-t)<=cJe||0==t||isNaN(0)&&isNaN(t)?0:e/t}function doe(){return dBe(),Sse(Uw(_dt,1),MYe,256,0,[ldt,udt,ddt,hdt,fdt,pdt,mdt,sdt,cdt,gdt])}function hoe(){hoe=M,EDt=new Tb,CDt=Sse(Uw(PIt,1),D7e,170,0,[]),SDt=Sse(Uw(VIt,1),N7e,59,0,[])}function foe(){foe=M,sbt=new VT("NO",0),obt=new VT("GREEDY",1),abt=new VT("LOOK_BACK",2)}function poe(){poe=M,Rst=new Ht,Dst=new jt,Nst=new Ut,Ist=new Qt,Lst=new zt,Bst=new Wt}function goe(e){var t,n;for(n=0,t=new Gf(e.b);t.a<t.c.c.length;)$H(J0(t),29).p=n,++n}function moe(e,t){var n;return MOe(new Nk((n=PEe(e)).c,n.d),new Nk(n.b,n.a),e.rf(),t,e.Hf())}function voe(e,t){var n;return e.b?null:(n=ste(e,e.g),RU(e.a,n),n.i=e,e.d=t,n)}function Aoe(e,t,n){kEe(n,"DFS Treeifying phase",1),yge(e,t),rLe(e,t),e.a=null,e.b=null,jCe(n)}function boe(e,t,n){this.g=e,this.d=t,this.e=n,this.a=new Dv,zke(this),Eq(),vD(this.a,null)}function yoe(e){this.i=e.gc(),this.i>0&&(this.g=this.ri(this.i+(this.i/8|0)+1),e.Qc(this.g))}function woe(e,t){xU.call(this,WDt,e,t),this.b=this,this.a=iLe(e.Tg(),tte(this.e.Tg(),this.c))}function _oe(e,t){var n,r;for(bK(t),r=t.vc().Kc();r.Ob();)n=$H(r.Pb(),42),e.zc(n.cd(),n.dd())}function xoe(e,t,n){var r;for(r=n.Kc();r.Ob();)if(!U3(e,t,r.Pb()))return!1;return!0}function Eoe(e,t,n,r,i){var o;return n&&(o=Ope(t.Tg(),e.c),i=n.gh(t,-1-(-1==o?r:o),null,i)),i}function Soe(e,t,n,r,i){var o;return n&&(o=Ope(t.Tg(),e.c),i=n.ih(t,-1-(-1==o?r:o),null,i)),i}function Coe(e){var t;if(-2==e.b){if(0==e.e)t=-1;else for(t=0;0==e.a[t];t++);e.b=t}return e.b}function Toe(e){switch(e.g){case 2:return bGe(),COt;case 4:return bGe(),aOt;default:return e}}function koe(e){switch(e.g){case 1:return bGe(),EOt;case 3:return bGe(),sOt;default:return e}}function Ooe(e){var t,n,r;return e.j==(bGe(),sOt)&&(n=ER(t=zMe(e),aOt),(r=ER(t,COt))||r&&n)}function Moe(e){var t;return new YF(t=$H(e.e&&e.e(),9),$H(VG(t,t.length),9),t.length)}function Ioe(e,t){kEe(t,b0e,1),Zfe(sS(new Sp((pS(),new jY(e,!1,!1,new $t))))),jCe(t)}function Doe(e,t){return lR(),WO(e)?c6(e,EB(t)):zO(e)?_W(e,xB(t)):QO(e)?wW(e,_B(t)):e.wd(t)}function Noe(e,t){t.q=e,e.d=r.Math.max(e.d,t.r),e.b+=t.d+(0==e.a.c.length?0:e.c),GH(e.a,t)}function Roe(e,t){var n,r,i,o;return i=e.c,n=e.c+e.b,o=e.d,r=e.d+e.a,t.a>i&&t.a<n&&t.b>o&&t.b<r}function Loe(e,t,n,r){rN(e.Cb,179)&&($H(e.Cb,179).tb=null),Die(e,n),t&&POe(e,t),r&&e.xk(!0)}function Boe(e,t){var n;Hq(n=$H(t,183),"x",e.i),Hq(n,"y",e.j),Hq(n,C6e,e.g),Hq(n,S6e,e.f)}function Poe(){Poe=M,Tbt=ame(yM(fQ(fQ(new $2,(ASe(),Pat),(uKe(),Ilt)),Fat,wlt),$at),Mlt)}function Foe(){Foe=M,Rbt=ame(yM(fQ(fQ(new $2,(ASe(),Pat),(uKe(),Ilt)),Fat,wlt),$at),Mlt)}function $oe(){$oe=M,W_t=new Ak(KZe,0),G_t=new Ak("POLAR_COORDINATE",1),z_t=new Ak("ID",2)}function joe(){joe=M,WAt=new zT("EQUALLY",0),GAt=new zT(vJe,1),VAt=new zT("NORTH_SOUTH",2)}function Hoe(){Hoe=M,MAt=uue((sRe(),Sse(Uw(RAt,1),MYe,260,0,[TAt,_At,SAt,xAt,EAt,wAt,CAt,kAt])))}function Uoe(){Uoe=M,Vct=uue((bBe(),Sse(Uw(tut,1),MYe,270,0,[$ct,Uct,Fct,Wct,Hct,jct,zct,Qct])))}function Qoe(){Qoe=M,wSt=uue((STe(),Sse(Uw(ESt,1),MYe,277,0,[bSt,hSt,mSt,ASt,fSt,pSt,gSt,vSt])))}function zoe(){zoe=M,nIt=uue((lIe(),Sse(Uw(rIt,1),MYe,237,0,[eIt,XMt,JMt,qMt,ZMt,KMt,VMt,YMt])))}function Woe(){Woe=M,Kit=new tP("debugSVG",(lR(),!1)),Yit=new tP("overlapsExisted",!0)}function Goe(e,t){return N9(new ap(e),new sp(t),new lp(t),new te,Sse(Uw(Jnt,1),MYe,132,0,[]))}function Voe(){var e;return Hnt||(Hnt=new BA,YI(e=new A5(""),(uS(),jnt)),cie(Hnt,e)),Hnt}function Koe(e,t){for(AV(t);e.Ob();)if(!Kae($H(e.Pb(),10)))return!1;return!0}function Yoe(e,t){var n;return!!(n=WPe(rre(),e))&&(Yve(t,(sKe(),vTt),n),!0)}function qoe(e,t){var n;for(n=0;n<t.j.c.length;n++)$H(R9(e,n),21).Gc($H(R9(t,n),14));return e}function Xoe(e,t){var n,r;for(r=new Gf(t.b);r.a<r.c.c.length;)n=$H(J0(r),29),e.a[n.p]=KSe(n)}function Joe(e,t){var n,r;for(bK(t),r=e.vc().Kc();r.Ob();)n=$H(r.Pb(),42),t.Od(n.cd(),n.dd())}function Zoe(e,t){rN(t,83)?($H(e.c,76).Xj(),eie(e,$H(t,83))):$H(e.c,76).Wb(t)}function eae(e){return rN(e,152)?a6($H(e,152)):rN(e,131)?$H(e,131).a:rN(e,54)?new cy(e):new CE(e)}function tae(e,t){return t<e.b.gc()?$H(e.b.Xb(t),10):t==e.b.gc()?e.a:$H(NQ(e.e,t-e.b.gc()-1),10)}function nae(e,t){e.a=nfe(e.a,1),e.c=r.Math.min(e.c,t),e.b=r.Math.max(e.b,t),e.d=nfe(e.d,t)}function rae(e,t){kEe(t,"Edge and layer constraint edge reversal",1),FWe(IPe(e)),jCe(t)}function iae(e){var t;null==e.d?(++e.e,e.f=0,nde(null)):(++e.e,t=e.d,e.d=null,e.f=0,nde(t))}function oae(e){var t;return 0==(t=e.h)?e.l+e.m*Tqe:t==Sqe?e.l+e.m*Tqe-kqe:e}function aae(e){return HB(),e.A.Hc((vge(),ROt))&&!e.B.Hc((JFe(),zOt))?Jpe(e):null}function sae(e){if(bK(e),0==e.length)throw jv(new xw("Zero length BigInteger"));tFe(this,e)}function lae(e){if(!e)throw jv(new Fy("no calls to next() since the last call to remove()"))}function cae(e){return Mqe<e&&e<kqe?e<0?r.Math.ceil(e):r.Math.floor(e):oae(pRe(e))}function uae(e,t){var n,r,i;for(n=e.c.Ee(),i=t.Kc();i.Ob();)r=i.Pb(),e.a.Od(n,r);return e.b.Kb(n)}function dae(e,t){var n,r,i;if(null!=(n=e.Jg())&&e.Mg())for(r=0,i=n.length;r<i;++r)n[r].ui(t)}function hae(e,t){var n,r;for(r=mK(n=e).e;r;){if((n=r)==t)return!0;r=mK(n).e}return!1}function fae(e,t,n){var r,i;return(r=e.a.f[t.p])<(i=e.a.f[n.p])?-1:r==i?0:1}function pae(e,t,n){var r,i;return i=$H(zF(e.d,t),19),r=$H(zF(e.b,n),19),i&&r?z6(e,i.a,r.a):null}function gae(e,t){var n,r;for(r=new ON(e);r.e!=r.i.gc();)EI(n=$H(bve(r),33),n.i+t.b,n.j+t.d)}function mae(e,t){var n,r;for(r=new Gf(t);r.a<r.c.c.length;)n=$H(J0(r),70),GH(e.d,n),BSe(e,n)}function vae(e,t){var n,r;r=new Dv,n=t;do{r.c[r.c.length]=n,n=$H(LV(e.k,n),17)}while(n);return r}function Aae(e,t){var n;return e.Db&t?-1==(n=Lbe(e,t))?e.Eb:ene(e.Eb)[n]:null}function bae(e,t){var n;return(n=new Bd).G=t,!e.rb&&(e.rb=new qW(e,$It,e)),c7(e.rb,n),n}function yae(e,t){var n;return(n=new wA).G=t,!e.rb&&(e.rb=new qW(e,$It,e)),c7(e.rb,n),n}function wae(e,t){switch(t){case 1:return!!e.n&&0!=e.n.i;case 2:return null!=e.k}return v1(e,t)}function _ae(e){switch(e.a.g){case 1:return new wO;case 3:return new lye;default:return new Cd}}function xae(e){var t;if(e.g>1||e.Ob())return++e.a,e.g=0,t=e.i,e.Ob(),t;throw jv(new AA)}function Eae(e){var t;return iD(),oC(syt,e)||((t=new la).a=e,hP(syt,e,t)),$H(aY(syt,e),635)}function Sae(e){var t,n,r;return n=0,(r=e)<0&&(r+=kqe,n=Sqe),t=CJ(r/Tqe),xD(CJ(r-t*Tqe),t,n)}function Cae(e){var t,n,r;for(r=0,n=new KE(e.a);n.a<n.c.a.length;)t=o4(n),e.b.Hc(t)&&++r;return r}function Tae(e){var t,n,r;for(t=1,r=e.Kc();r.Ob();)t=~~(t=31*t+(null==(n=r.Pb())?0:Jle(n)));return t}function kae(e,t){var n;this.c=e,pbe(e,n=new Dv,t,e.b,null,!1,null),this.a=new x2(n,0)}function Oae(e,t){this.b=e,this.e=t,this.d=t.j,this.f=(XS(),$H(e,66).Oj()),this.k=iLe(t.e.Tg(),e)}function Mae(e,t,n){this.b=(bK(e),e),this.d=(bK(t),t),this.e=(bK(n),n),this.c=this.d+""+this.e}function Iae(){this.a=$H(vve((cPe(),Hot)),19).a,this.c=Uy(xB(vve(rat))),this.b=Uy(xB(vve(Zot)))}function Dae(){Dae=M,Bkt=uue((JIe(),Sse(Uw(Ukt,1),MYe,93,0,[Tkt,Ckt,Okt,Rkt,Nkt,Dkt,Mkt,Ikt,kkt])))}function Nae(){Nae=M,Frt=uue((ZBe(),Sse(Uw($rt,1),MYe,250,0,[Lrt,Mrt,Irt,Ort,Nrt,Rrt,Drt,krt,Trt])))}function Rae(){Rae=M,Lit=new zC("UP",0),Dit=new zC(gJe,1),Nit=new zC(rJe,2),Rit=new zC(iJe,3)}function Lae(){Lae=M,sZ(),Awt=new MM(W3e,bwt=Lwt),$1(),mwt=new MM(G3e,vwt=jwt)}function Bae(){Bae=M,ydt=new DT("ONE_SIDED",0),wdt=new DT("TWO_SIDED",1),bdt=new DT("OFF",2)}function Pae(e){e.r=new LA,e.w=new LA,e.t=new Dv,e.i=new Dv,e.d=new LA,e.a=new dI,e.c=new Nv}function Fae(e){this.n=new Dv,this.e=new YE,this.j=new YE,this.k=new Dv,this.f=new Dv,this.p=e}function $ae(e,t){e.c&&(qFe(e,t,!0),qE(new LQ(null,new h0(t,16)),new Hg(e))),qFe(e,t,!1)}function jae(e,t,n){return e==(are(),Mbt)?new ko:0!=jDe(t,1)?new L_(n.length):new R_(n.length)}function Hae(e,t){var n;return t?((n=t.Ve()).dc()||(e.q?_oe(e.q,n):e.q=new vM(n)),e):e}function Uae(e,t){var n;return void 0===(n=e.a.get(t))?++e.d:(vP(e.a,t),--e.c,aX(e.b)),n}function Qae(e,t){var n;return 0==(n=t.p-e.p)?She(e.f.a*e.f.b,t.f.a*t.f.b):n}function zae(e,t){var n,r;return(n=e.f.c.length)<(r=t.f.c.length)?-1:n==r?0:1}function Wae(e){return 0!=e.b.c.length&&$H(NQ(e.b,0),70).a?$H(NQ(e.b,0),70).a:eq(e)}function Gae(e){var t;if(e){if((t=e).dc())throw jv(new AA);return t.Xb(t.gc()-1)}return o0(e.Kc())}function Vae(e){var t;return Vue(e,0)<0&&(e=oU(e)),64-(0!=(t=fz(bW(e,32)))?XOe(t):XOe(fz(e))+32)}function Kae(e){var t;return t=$H(vSe(e,(lKe(),Kdt)),61),e.k==(oCe(),xst)&&(t==(bGe(),COt)||t==aOt)}function Yae(e,t,n){var r,i;(i=$H(vSe(e,(jVe(),mmt)),74))&&(Gce(r=new bb,0,i),Xte(r,n),Fie(t,r))}function qae(e,t,n){var r,i,o,a;r=(a=mK(e)).d,i=a.c,o=e.n,t&&(o.a=o.a-r.b-i.a),n&&(o.b=o.b-r.d-i.b)}function Xae(e,t){var n,r;return(n=e.j)!=(r=t.j)?n.g-r.g:e.p==t.p?0:n==(bGe(),sOt)?e.p-t.p:t.p-e.p}function Jae(e){var t,n;for(SGe(e),n=new Gf(e.d);n.a<n.c.c.length;)(t=$H(J0(n),101)).i&&WCe(t)}function Zae(e,t,n,r,i){MV(e.c[t.g],n.g,r),MV(e.c[n.g],t.g,r),MV(e.b[t.g],n.g,i),MV(e.b[n.g],t.g,i)}function ese(e,t,n,r){$H(n.b,65),$H(n.b,65),$H(r.b,65),$H(r.b,65),$H(r.b,65),kte(r.a,new wH(e,t,r))}function tse(e,t){e.d==(Fde(),PTt)||e.d==jTt?$H(t.a,57).c.Fc($H(t.b,57)):$H(t.b,57).c.Fc($H(t.a,57))}function nse(e,t,n,r){return 1==n?(!e.n&&(e.n=new eG(UMt,e,1,7)),Pve(e.n,t,r)):eCe(e,t,n,r)}function rse(e,t){var n;return Die(n=new Ul,t),c7((!e.A&&(e.A=new DN(TDt,e,7)),e.A),n),n}function ise(e,t,n){var r,i;return i=D2(t,O6e),g_e((r=new iO(e,n)).a,r.b,i),i}function ose(e){var t;return e.a&&(1&e.Bb||!e.a.kh())||rN(t=Twe(e),148)&&(e.a=$H(t,148)),e.a}function ase(e,t){var n,r;for(bK(t),r=t.Kc();r.Ob();)if(n=r.Pb(),!e.Hc(n))return!1;return!0}function sse(e,t){var n,r,i;return n=e.l+t.l,r=e.m+t.m+(n>>22),i=e.h+t.h+(r>>22),xD(n&Eqe,r&Eqe,i&Sqe)}function lse(e,t){var n,r,i;return n=e.l-t.l,r=e.m-t.m+(n>>22),i=e.h-t.h+(r>>22),xD(n&Eqe,r&Eqe,i&Sqe)}function cse(e){var t;return e<128?(!(t=(xQ(),Ett)[e])&&(t=Ett[e]=new If(e)),t):new If(e)}function use(e){var t;return rN(e,78)?e:((t=e&&e.__java$exception)||aA(t=new yue(e)),t)}function dse(e){if(rN(e,186))return $H(e,118);if(e)return null;throw jv(new jy(e8e))}function hse(e,t){if(null==t)return!1;for(;e.a!=e.b;)if(Dde(t,Pue(e)))return!0;return!1}function fse(e){return!!e.a.Ob()||e.a==e.d&&(e.a=new E2(e.e.f),e.a.Ob())}function pse(e,t){var n;return 0!=(n=t.Pc()).length&&(ZH(e.c,e.c.length,n),!0)}function gse(e,t,n){var r,i;for(i=t.vc().Kc();i.Ob();)r=$H(i.Pb(),42),e.yc(r.cd(),r.dd(),n);return e}function mse(e,t){var n;for(n=new Gf(e.b);n.a<n.c.c.length;)lle($H(J0(n),70),(lKe(),oht),t)}function vse(e,t,n){var r,i;for(i=new Gf(e.b);i.a<i.c.c.length;)EI(r=$H(J0(i),33),r.i+t,r.j+n)}function Ase(e,t){if(!e)throw jv(new Py(MPe("value already present: %s",Sse(Uw(Met,1),jKe,1,5,[t]))))}function bse(e,t){return!(!e||!t||e==t)&&Pge(e.d.c,t.d.c+t.d.b)&&Pge(t.d.c,e.d.c+e.d.b)}function yse(){return b5(),Knt?new A5(null):FMe(Voe(),"com.google.common.base.Strings")}function wse(e,t){var n;return n=sL(t.a.gc()),qE(Ate(new LQ(null,new h0(t,1)),e.i),new Dk(e,n)),n}function _se(e){var t;return Die(t=new Ul,"T"),c7((!e.d&&(e.d=new DN(TDt,e,11)),e.d),t),t}function xse(e){var t,n,r,i;for(t=1,n=0,i=e.gc();n<i;++n)t=31*t+(null==(r=e.ki(n))?0:Jle(r));return t}function Ese(e,t,n,r){var i;return h2(t,e.e.Hd().gc()),h2(n,e.c.Hd().gc()),i=e.a[t][n],MV(e.a[t],n,r),i}function Sse(e,t,n,r,i){return i.gm=e,i.hm=t,i.im=O,i.__elementTypeId$=n,i.__elementTypeCategory$=r,i}function Cse(e,t,n,i,o){return yBe(),r.Math.min(Qze(e,t,n,i,o),Qze(n,i,e,t,HL(new Nk(o.a,o.b))))}function Tse(){Tse=M,ict=new ZC(KZe,0),nct=new ZC(C0e,1),rct=new ZC(T0e,2),tct=new ZC("BOTH",3)}function kse(){kse=M,mct=new vT(eJe,0),vct=new vT(rJe,1),Act=new vT(iJe,2),bct=new vT("TOP",3)}function Ose(){Ose=M,Xat=new KC("Q1",0),est=new KC("Q4",1),Jat=new KC("Q2",2),Zat=new KC("Q3",3)}function Mse(){Mse=M,dbt=new KT("OFF",0),hbt=new KT("SINGLE_EDGE",1),ubt=new KT("MULTI_EDGE",2)}function Ise(){Ise=M,GEt=new Ek("MINIMUM_SPANNING_TREE",0),WEt=new Ek("MAXIMUM_SPANNING_TREE",1)}function Dse(){Dse=M,XEt=new cs,qEt=new ss}function Nse(e){var t,n;for(t=new YE,n=sve(e.d,0);n.b!=n.d.c;)RU(t,$H(d3(n),188).c);return t}function Rse(e){var t,n;for(n=new Dv,t=e.Kc();t.Ob();)pse(n,hBe($H(t.Pb(),33)));return n}function Lse(e){var t;Zje(e,!0),t=VYe,IL(e,(jVe(),cvt))&&(t+=$H(vSe(e,cvt),19).a),lle(e,cvt,the(t))}function Bse(e,t,n){var r;MG(e.a),kte(n.i,new ym(e)),bme(e,r=new CD($H(LV(e.a,t.b),65)),t),n.f=r}function Pse(e,t){var n,r;return n=e.c,(r=t.e[e.p])<n.a.c.length-1?$H(NQ(n.a,r+1),10):null}function Fse(e,t){var n,r;for(Gq(t,"predicate"),r=0;e.Ob();r++)if(n=e.Pb(),t.Lb(n))return r;return-1}function $se(e,t){var n,r;if(r=0,e<64&&e<=t)for(t=t<64?t:63,n=e;n<=t;n++)r=t1(r,AW(1,n));return r}function jse(e){var t,n,r;for(Eq(),r=0,n=e.Kc();n.Ob();)r+=null!=(t=n.Pb())?Jle(t):0,r|=0;return r}function Hse(e){var t;return Z_(),t=new al,e&&c7((!e.a&&(e.a=new eG(PMt,e,6,6)),e.a),t),t}function Use(e){var t;return(t=new v).a=e,t.b=Ale(e),t.c=N8(Ytt,sYe,2,2,6,1),t.c[0]=jie(e),t.c[1]=jie(e),t}function Qse(e,t){if(0===t)return!e.o&&(e.o=new A7((CVe(),xMt),tIt,e,0)),void e.o.c.$b();vTe(e,t)}function zse(e,t,n){switch(n.g){case 2:e.b=t;break;case 1:e.c=t;break;case 4:e.d=t;break;case 3:e.a=t}}function Wse(e){switch(e.g){case 1:return wkt;case 2:return ykt;case 3:return _kt;default:return xkt}}function Gse(e){switch($H(vSe(e,(jVe(),bmt)),163).g){case 2:case 4:return!0;default:return!1}}function Vse(){Vse=M,Adt=uue((dBe(),Sse(Uw(_dt,1),MYe,256,0,[ldt,udt,ddt,hdt,fdt,pdt,mdt,sdt,cdt,gdt])))}function Kse(){Kse=M,qOt=uue((JFe(),Sse(Uw(tMt,1),MYe,259,0,[UOt,zOt,HOt,WOt,GOt,KOt,VOt,QOt,jOt])))}function Yse(){Yse=M,Wwt=fQ(ame(ame(FS(fQ(new $2,(Qye(),Byt),(RTe(),Kyt)),Pyt),Wyt),Gyt),Fyt,Vyt)}function qse(){qse=M,Out=new CT(KZe,0),kut=new CT("INCOMING_ONLY",1),Mut=new CT("OUTGOING_ONLY",2)}function Xse(){Xse=M,utt={boolean:zE,number:Cy,string:Ty,object:_ke,function:_ke,undefined:Gv}}function Jse(e,t){mU(e>=0,"Negative initial capacity"),mU(t>=0,"Non-positive load factor"),MG(this)}function Zse(e,t,n){return!(e>=128)&&qO(e<64?e1(AW(1,e),n):e1(AW(1,e-64),t),0)}function ele(e,t){return!(!e||!t||e==t)&&Tfe(e.b.c,t.b.c+t.b.b)<0&&Tfe(t.b.c,e.b.c+e.b.b)<0}function tle(e){var t,n,r;return n=e.n,r=e.o,t=e.d,new zY(n.a-t.b,n.b-t.d,r.a+(t.b+t.c),r.b+(t.d+t.a))}function nle(e){var t,n,r,i;for(r=0,i=(n=e.a).length;r<i;++r)Ele(e,t=n[r],(bGe(),EOt)),Ele(e,t,sOt)}function rle(e){var t,n;for(null==e.j&&(e.j=(SX(),T_e(ttt.ce(e)))),t=0,n=e.j.length;t<n;++t);}function ile(e){var t,n;return xD(t=1+~e.l&Eqe,n=~e.m+(0==t?1:0)&Eqe,~e.h+(0==t&&0==n?1:0)&Sqe)}function ole(e,t){return _je($H($H(LV(e.g,t.a),46).a,65),$H($H(LV(e.g,t.b),46).a,65))}function ale(e,t,n){var r;if(t>(r=e.gc()))throw jv(new ZP(t,r));return e.hi()&&(n=JJ(e,n)),e.Vh(t,n)}function sle(e,t,n){return null==n?(!e.q&&(e.q=new Nv),m6(e.q,t)):(!e.q&&(e.q=new Nv),VK(e.q,t,n)),e}function lle(e,t,n){return null==n?(!e.q&&(e.q=new Nv),m6(e.q,t)):(!e.q&&(e.q=new Nv),VK(e.q,t,n)),e}function cle(e){var t,n;return Hae(n=new A6,e),lle(n,(xie(),sat),e),eHe(e,n,t=new Nv),EWe(e,n,t),n}function ule(e){var t,n,r;for(yBe(),n=N8(SSt,sYe,8,2,0,1),r=0,t=0;t<2;t++)r+=.5,n[t]=ube(r,e);return n}function dle(e,t){var n,r,i;for(n=!1,r=e.a[t].length,i=0;i<r-1;i++)n|=Sge(e,t,i,i+1);return n}function hle(e,t,n,r,i){var o,a;for(a=n;a<=i;a++)for(o=t;o<=r;o++)mbe(e,o,a)||FPe(e,o,a,!0,!1)}function fle(e,t){this.b=e,DM.call(this,($H(Gte(Kq((KV(),JIt).o),10),18),t.i),t.g),this.a=(hoe(),CDt)}function ple(e,t){this.c=e,this.d=t,this.b=this.d/this.c.c.Hd().gc()|0,this.a=this.d%this.c.c.Hd().gc()}function gle(){this.o=null,this.k=null,this.j=null,this.d=null,this.b=null,this.n=null,this.a=null}function mle(e,t,n){this.q=new r.Date,this.q.setFullYear(e+sqe,t,n),this.q.setHours(0,0,0,0),uHe(this,0)}function vle(){vle=M,DAt=new HT(KZe,0),IAt=new HT("NODES_AND_EDGES",1),NAt=new HT("PREFER_EDGES",2)}function Ale(e){var t;return 0==e?"Etc/GMT":(e<0?(e=-e,t="Etc/GMT-"):t="Etc/GMT+",t+dee(e))}function ble(e){var t;if(e<0)return PYe;if(0==e)return 0;for(t=kYe;!(t&e);t>>=1);return t}function yle(e){var t,n;return 32==(n=XOe(e.h))?32==(t=XOe(e.m))?XOe(e.l)+32:t+20-10:n-12}function wle(e){var t;return null==(t=e.a[e.b])?null:(MV(e.a,e.b,null),e.b=e.b+1&e.a.length-1,t)}function _le(e){var t,n;return t=e.t-e.k[e.o.p]*e.d+e.j[e.o.p]>e.f,n=e.u+e.e[e.o.p]*e.d>e.f*e.s*e.d,t||n}function xle(e,t,n){var r,i;return r=new j8(t,n),i=new Q,e.b=GLe(e,e.b,r,i),i.b||++e.c,e.b.b=!1,i.d}function Ele(e,t,n){var r,i,o;for(o=0,i=Ide(t,n).Kc();i.Ob();)r=$H(i.Pb(),11),VK(e.c,r,the(o++))}function Sle(e){var t,n;for(n=new Gf(e.a.b);n.a<n.c.c.length;)(t=$H(J0(n),81)).g.c=-t.g.c-t.g.b;bRe(e)}function Cle(e){var t,n;for(n=new Gf(e.a.b);n.a<n.c.c.length;)(t=$H(J0(n),57)).d.c=-t.d.c-t.d.b;ARe(e)}function Tle(e){var t;return(!e.c||!(1&e.Bb)&&64&e.c.Db)&&rN(t=Twe(e),88)&&(e.c=$H(t,26)),e.c}function kle(e){var t,n,r;t=1+~e.l&Eqe,n=~e.m+(0==t?1:0)&Eqe,r=~e.h+(0==t&&0==n?1:0)&Sqe,e.l=t,e.m=n,e.h=r}function Ole(e){var t,n,r,i,o;for(t=new U_,i=0,o=(r=e).length;i<o;++i)n=r[i],t.a+=n.a,t.b+=n.b;return t}function Mle(e,t){var n,r,i,o,a;for(Eq(),a=!1,i=0,o=(r=t).length;i<o;++i)n=r[i],a|=e.Fc(n);return a}function Ile(e){var t,n;for(yBe(),n=-17976931348623157e292,t=0;t<e.length;t++)e[t]>n&&(n=e[t]);return n}function Dle(e,t,n){var r;return yLe(e,t,r=new Dv,(bGe(),aOt),!0,!1),yLe(e,n,r,COt,!1,!1),r}function Nle(e,t,n){var r,i;return i=D2(t,"labels"),WIe((r=new pO(e,n)).a,r.b,i),i}function Rle(e,t,n,r){var i;return(i=vDe(e,t,n,r))||!(i=ihe(e,n,r))||FQe(e,t,i)?i:null}function Lle(e,t,n,r){var i;return(i=ADe(e,t,n,r))||!(i=ohe(e,n,r))||FQe(e,t,i)?i:null}function Ble(e,t){var n;for(n=0;n<e.a.a.length;n++)if(!$H(RQ(e.a,n),169).Lb(t))return!1;return!0}function Ple(e,t,n){if(AV(t),n.Ob())for(sM(t,CV(n.Pb()));n.Ob();)sM(t,e.a),sM(t,CV(n.Pb()));return t}function Fle(e){var t,n,r;for(Eq(),r=1,n=e.Kc();n.Ob();)r=31*r+(null!=(t=n.Pb())?Jle(t):0),r|=0;return r}function $le(e,t,n,r,i){var o;return o=yIe(e,t),n&&kle(o),i&&(e=Ebe(e,t),dtt=r?ile(e):xD(e.l,e.m,e.h)),o}function jle(e,t){var n;try{t.Vd()}catch(t){if(!rN(t=use(t),78))throw jv(t);n=t,e.c[e.c.length]=n}}function Hle(e,t,n){var r,i;return rN(t,144)&&n?(r=$H(t,144),i=n,e.a[r.b][i.b]+e.a[i.b][r.b]):0}function Ule(e,t){switch(t){case 7:return!!e.e&&0!=e.e.i;case 8:return!!e.d&&0!=e.d.i}return cpe(e,t)}function Qle(e,t){switch(t.g){case 0:rN(e.b,631)||(e.b=new Iae);break;case 1:rN(e.b,632)||(e.b=new cU)}}function zle(e,t){for(;null!=e.g||e.c?null==e.g||0!=e.i&&$H(e.g[e.i-1],47).Ob():ZJ(e);)mO(t,iNe(e))}function Wle(e,t,n){e.g=OTe(e,t,(bGe(),aOt),e.b),e.d=OTe(e,n,aOt,e.b),0!=e.g.c&&0!=e.d.c&&QSe(e)}function Gle(e,t,n){e.g=OTe(e,t,(bGe(),COt),e.j),e.d=OTe(e,n,COt,e.j),0!=e.g.c&&0!=e.d.c&&QSe(e)}function Vle(e,t,n){return!yx(OY(new LQ(null,new h0(e.c,16)),new ip(new Xk(t,n)))).sd((fS(),Znt))}function Kle(e){var t;return wK(e),t=new le,e.a.sd(t)?(CN(),new my(bK(t.a))):(CN(),CN(),Ent)}function Yle(e){var t;return!(e.b<=0)&&((t=UM("MLydhHmsSDkK",YEe(cY(e.c,0))))>1||t>=0&&e.b<3)}function qle(e){var t,n;for(t=new bb,n=sve(e,0);n.b!=n.d.c;)BL(t,0,new hI($H(d3(n),8)));return t}function Xle(e){var t;for(t=new Gf(e.a.b);t.a<t.c.c.length;)$H(J0(t),81).f.$b();by(e.b,e),$Re(e)}function Jle(e){return WO(e)?mAe(e):zO(e)?VM(e):QO(e)?(bK(e),e?1231:1237):tW(e)?e.Hb():Oz(e)?SR(e):Zq(e)}function Zle(e){return WO(e)?Ytt:zO(e)?Ctt:QO(e)?ytt:tW(e)||Oz(e)?e.gm:e.gm||Array.isArray(e)&&Uw(Zet,1)||Zet}function ece(e){if(0===e.g)return new as;throw jv(new Py(D4e+(null!=e.f?e.f:""+e.g)))}function tce(e){if(0===e.g)return new is;throw jv(new Py(D4e+(null!=e.f?e.f:""+e.g)))}function nce(e,t,n){if(0===t)return!e.o&&(e.o=new A7((CVe(),xMt),tIt,e,0)),void Zoe(e.o,n);Ake(e,t,n)}function rce(e,t,n){this.g=e,this.e=new U_,this.f=new U_,this.d=new YE,this.b=new YE,this.a=t,this.c=n}function ice(e,t,n,r){this.b=new Dv,this.n=new Dv,this.i=r,this.j=n,this.s=e,this.t=t,this.r=0,this.d=0}function oce(e){this.e=e,this.d=new g4(this.e.g),this.a=this.d,this.b=fse(this),this.$modCount=e.$modCount}function ace(e){for(;!e.d||!e.d.Ob();){if(!e.b||Gy(e.b))return null;e.d=$H(fG(e.b),47)}return e.d}function sce(e){return GH(e.c,(Dse(),XEt)),one(e.a,Uy(xB(vve((Lpe(),Vvt)))))?new zs:new Cm(e)}function lce(e){switch(e.g){case 1:return F3e;default:case 2:return 0;case 3:return qJe;case 4:return $3e}}function cce(){var e;return hKe(),ERt||(e=eL(XGe("M",!0)),e=pz(XGe("M",!1),e),ERt=e)}function uce(e,t){var n,r,i;for(i=e.b;i;){if(0==(n=e.a.ue(t,i.d)))return i;r=n<0?0:1,i=i.a[r]}return null}function dce(e,t,n){var r,i;lR(),r=!!_M(n),(i=$H(t.xc(r),15))||(i=new Dv,t.zc(r,i)),i.Fc(n)}function hce(e,t){var n,r;return(n=$H(XIe(e,(GDe(),fxt)),19).a)==(r=$H(XIe(t,fxt),19).a)||n<r?-1:n>r?1:0}function fce(e,t){return!!dRe(e,t)&&(qOe(e.b,$H(vSe(t,(lKe(),Wdt)),21),t),RU(e.a,t),!0)}function pce(e){var t,n;(t=$H(vSe(e,(lKe(),wht)),10))&&(A9((n=t.c).a,t),0==n.a.c.length&&A9(mK(t).b,n))}function gce(e){return Knt?N8(Unt,fXe,572,0,0,1):$H(Kme(e.a,N8(Unt,fXe,572,e.a.c.length,0,1)),842)}function mce(e,t,n,r){return JK(),new ly(Sse(Uw(Het,1),bYe,42,0,[(QAe(e,t),new mE(e,t)),(QAe(n,r),new mE(n,r))]))}function vce(e,t,n){var r;return cre(r=new Mb,t,n),c7((!e.q&&(e.q=new eG(VIt,e,11,10)),e.q),r),r}function Ace(e){var t,n,r,i;for(n=(i=cC(OMt,e)).length,r=N8(Ytt,sYe,2,n,6,1),t=0;t<n;++t)r[t]=i[t];return r}function bce(e,t){var n,r,i,o,a;for(i=0,o=(r=t).length;i<o;++i)n=r[i],a=new zV(e),n.Qe(a),DHe(a);MG(e.f)}function yce(e,t){var n;return t===e||!!rN(t,224)&&(n=$H(t,224),Dde(e.Zb(),n.Zb()))}function wce(e,t){var n;2*t+1>=e.b.c.length||(wce(e,2*t+1),(n=2*t+2)<e.b.c.length&&wce(e,n),Bke(e,t))}function _ce(e,t,n){var r,i;this.g=e,this.c=t,this.a=this,this.d=this,i=qre(n),r=N8(Yet,CYe,330,i,0,1),this.b=r}function xce(e,t,n){var r;for(r=n-1;r>=0&&e[r]===t[r];r--);return r<0?0:sC(e1(e[r],zqe),e1(t[r],zqe))?-1:1}function Ece(e,t){var n,r;for(r=sve(e,0);r.b!=r.d.c;)(n=$H(d3(r),214)).e.length>0&&(t.td(n),n.i&&ghe(n))}function Sce(e,t){var n,r;return r=$H(Aae(e.a,4),126),n=N8(hIt,t7e,415,t,0,1),null!=r&&iUe(r,0,n,0,r.length),n}function Cce(e,t){var n;return n=new nPe(!!(256&e.f),e.i,e.a,e.d,!!(16&e.f),e.j,e.g,t),null!=e.e||(n.c=e),n}function Tce(e,t){var n;for(n=e.Zb().Cc().Kc();n.Ob();)if($H(n.Pb(),14).Hc(t))return!0;return!1}function kce(e,t,n,r,i){var o,a;for(a=n;a<=i;a++)for(o=t;o<=r;o++)if(mbe(e,o,a))return!0;return!1}function Oce(e,t,n){var r,i,o,a;for(bK(n),a=!1,o=e.Zc(t),i=n.Kc();i.Ob();)r=i.Pb(),o.Rb(r),a=!0;return a}function Mce(e,t){var n;return e===t||!!rN(t,83)&&(n=$H(t,83),QCe(uW(e),n.vc()))}function Ice(e,t,n){var r,i;for(i=n.Kc();i.Ob();)if(r=$H(i.Pb(),42),e.re(t,r.dd()))return!0;return!1}function Dce(e,t,n){return e.d[t.p][n.p]||(tAe(e,t,n),e.d[t.p][n.p]=!0,e.d[n.p][t.p]=!0),e.a[t.p][n.p]}function Nce(e,t){if(!e.ai()&&null==t)throw jv(new Py("The 'no null' constraint is violated"));return t}function Rce(e,t){null==e.D&&null!=e.B&&(e.D=e.B,e.B=null),jre(e,null==t?null:(bK(t),t)),e.C&&e.yk(null)}function Lce(e,t){return!(!e||e==t||!IL(t,(lKe(),nht)))&&$H(vSe(t,(lKe(),nht)),10)!=e}function Bce(e){switch(e.i){case 2:return!0;case 1:return!1;case-1:++e.c;default:return e.pl()}}function Pce(e){switch(e.i){case-2:return!0;case-1:return!1;case 1:--e.c;default:return e.ql()}}function Fce(e){PJ.call(this,"The given string does not match the expected format for individual spacings.",e)}function $ce(){$ce=M,oMt=new rO("ELK",0),aMt=new rO("JSON",1),iMt=new rO("DOT",2),sMt=new rO("SVG",3)}function jce(){jce=M,s_t=new mk(KZe,0),l_t=new mk("RADIAL_COMPACTION",1),c_t=new mk("WEDGE_COMPACTION",2)}function Hce(){Hce=M,Qnt=new gC("CONCURRENT",0),znt=new gC("IDENTITY_FINISH",1),Wnt=new gC("UNORDERED",2)}function Uce(){Uce=M,hS(),aot=new MM($Je,sot=not),oot=new ov(jJe),lot=new ov(HJe),cot=new ov(UJe)}function Qce(){Qce=M,uct=new _r,dct=new xr,cct=new Er,lct=new Sr,bK(new Cr),sct=new B}function zce(){zce=M,ebt=new GT("CONSERVATIVE",0),tbt=new GT("CONSERVATIVE_SOFT",1),nbt=new GT("SLOPPY",2)}function Wce(){Wce=M,fkt=new GI(15),hkt=new WI((sKe(),WCt),fkt),pkt=pTt,lkt=iCt,ckt=BCt,dkt=$Ct,ukt=FCt}function Gce(e,t,n){var r,i;for(r=new YE,i=sve(n,0);i.b!=i.d.c;)RU(r,new hI($H(d3(i),8)));Oce(e,t,r)}function Vce(e){var t,n,r;for(t=0,r=N8(SSt,sYe,8,e.b,0,1),n=sve(e,0);n.b!=n.d.c;)r[t++]=$H(d3(n),8);return r}function Kce(e){var t;return!e.a&&(e.a=new eG(WIt,e,9,5)),0!=(t=e.a).i?jS($H(Gte(t,0),678)):null}function Yce(e,t){var n;return n=nfe(e,t),sC(n1(e,t),0)|YO(n1(e,n),0)?n:nfe(dYe,n1(yW(n,63),1))}function qce(e,t){var n;n=null!=vve((Lpe(),Vvt))&&null!=t.wg()?Uy(xB(t.wg()))/Uy(xB(vve(Vvt))):1,VK(e.b,t,n)}function Xce(e,t){var n,r;return(n=$H(e.d.Bc(t),14))?((r=e.e.hc()).Gc(n),e.e.d-=n.gc(),n.$b(),r):null}function Jce(e,t){var n,r;if(0!=(r=e.c[t]))for(e.c[t]=0,e.d-=r,n=t+1;n<e.a.length;)e.a[n]-=r,n+=n&-n}function Zce(e){var t;if((t=e.a.c.length)>0)return BW(t-1,e.a.c.length),s6(e.a,t-1);throw jv(new vA)}function eue(e,t,n){if(t<0)throw jv(new Oy(J4e+t));t<e.j.c.length?r5(e.j,t,n):(p3(e,t),GH(e.j,n))}function tue(e,t,n){if(e>t)throw jv(new Py(vXe+e+AXe+t));if(e<0||t>n)throw jv(new _w(vXe+e+bXe+t+lXe+n))}function nue(e){if(!(e.a&&8&e.a.i))throw jv(new Fy("Enumeration class expected for layout option "+e.f))}function rue(e){var t;++e.j,0==e.i?e.g=null:e.i<e.g.length&&(t=e.g,e.g=e.ri(e.i),iUe(t,0,e.g,0,e.i))}function iue(e,t){var n,r;for(n=e.a.length-1,e.c=e.c-1&n;t!=e.c;)r=t+1&n,MV(e.a,t,e.a[r]),t=r;MV(e.a,e.c,null)}function oue(e,t){var n,r;for(n=e.a.length-1;t!=e.b;)r=t-1&n,MV(e.a,t,e.a[r]),t=r;MV(e.a,e.b,null),e.b=e.b+1&n}function aue(e,t,n){var r;return IZ(t,e.c.length),0!=(r=n.Pc()).length&&(ZH(e.c,t,r),!0)}function sue(e){var t,n;if(null==e)return null;for(t=0,n=e.length;t<n;t++)if(!SU(e[t]))return e[t];return null}function lue(e,t,n){var r,i,o,a;for(o=0,a=(i=n).length;o<a;++o)if(r=i[o],e.b.re(t,r.cd()))return r;return null}function cue(e){var t,n,r,i,o;for(o=1,r=0,i=(n=e).length;r<i;++r)o=31*o+(null!=(t=n[r])?Jle(t):0),o|=0;return o}function uue(e){var t,n,r,i,o;for(t={},i=0,o=(r=e).length;i<o;++i)t[":"+(null!=(n=r[i]).f?n.f:""+n.g)]=n;return t}function due(e){var t;for(AV(e),C$(!0,"numberToAdvance must be nonnegative"),t=0;t<0&&fIe(e);t++)z5(e);return t}function hue(e){var t,n,r;for(r=0,n=new aW(XN(e.a.Kc(),new u));fIe(n);)(t=$H(z5(n),17)).c.i==t.d.i||++r;return r}function fue(e,t){var n,r,i;for(n=e,i=0;;){if(n==t)return i;if(!(r=n.e))throw jv(new hA);n=mK(r),++i}}function pue(e,t){var n,r,i;for(i=t-e.f,r=new Gf(e.d);r.a<r.c.c.length;)bge(n=$H(J0(r),443),n.e,n.f+i);e.f=t}function gue(e,t,n){return r.Math.abs(t-e)<P3e||r.Math.abs(n-e)<P3e||(t-e>P3e?e-n>P3e:n-e>P3e)}function mue(e,t){return e?t&&!e.j||rN(e,124)&&0==$H(e,124).a.b?0:e.Re():0}function vue(e,t){return e?t&&!e.k||rN(e,124)&&0==$H(e,124).a.a?0:e.Se():0}function Aue(e){return kBe(),e<0?-1!=e?new Lve(-1,-e):qtt:e<=10?Jtt[CJ(e)]:new Lve(1,e)}function bue(e){throw Xse(),jv(new py("Unexpected typeof result '"+e+"'; please report this bug to the GWT team"))}function yue(e){lw(),VD(this),yq(this),this.e=e,CLe(this,e),this.g=null==e?QKe:$fe(e),this.a="",this.b=e,this.a=""}function wue(){this.a=new ts,this.f=new fm(this),this.b=new pm(this),this.i=new gm(this),this.e=new mm(this)}function _ue(){ry.call(this,new H8(ete(16))),ure(2,aYe),this.b=2,this.a=new jK(null,null,0,null),tA(this.a,this.a)}function xue(){xue=M,rAt=new BT("DUMMY_NODE_OVER",0),iAt=new BT("DUMMY_NODE_UNDER",1),oAt=new BT("EQUAL",2)}function Eue(){Eue=M,Wat=jJ(Sse(Uw(GTt,1),MYe,103,0,[(Fde(),PTt),FTt])),Gat=jJ(Sse(Uw(GTt,1),MYe,103,0,[jTt,BTt]))}function Sue(e){return(bGe(),AOt).Hc(e.j)?Uy(xB(vSe(e,(lKe(),Iht)))):Ole(Sse(Uw(SSt,1),sYe,8,0,[e.i.n,e.n,e.a])).b}function Cue(e){var t,n;for(t=e.b.a.a.ec().Kc();t.Ob();)n=new KDe($H(t.Pb(),561),e.e,e.f),GH(e.g,n)}function Tue(e,t){var n,r;n=e.nk(t,null),r=null,t&&(tx(),rne(r=new Bv,e.r)),(n=jEe(e,r,n))&&n.Fi()}function kue(e,t){var n,r;for(r=0!=jDe(e.d,1),n=!0;n;)n=!1,n=t.c.Tf(t.e,r),n|=RRe(e,t,r,!1),r=!r;Mie(e)}function Oue(e,t){var n,r,i;return r=!1,n=t.q.d,t.d<e.b&&(i=fRe(t.q,e.b),t.q.d>i&&(ixe(t.q,i),r=n!=t.q.d)),r}function Mue(e,t){var n,i,o,a,s;return a=t.i,s=t.j,i=a-(n=e.f).i,o=s-n.j,r.Math.sqrt(i*i+o*o)}function Iue(e,t){var n;return(n=Yge(e))||(LUe(),c7((n=new Cv(YTe(t))).Vk(),e)),n}function Due(e,t){var n,r;return(n=$H(e.c.Bc(t),14))?((r=e.hc()).Gc(n),e.d-=n.gc(),n.$b(),e.mc(r)):e.jc()}function Nue(e,t){var n;for(n=0;n<t.length;n++)if(e==(d0(n,t.length),t.charCodeAt(n)))return!0;return!1}function Rue(e,t){var n;for(n=0;n<t.length;n++)if(e==(d0(n,t.length),t.charCodeAt(n)))return!0;return!1}function Lue(e){var t,n;if(null==e)return!1;for(t=0,n=e.length;t<n;t++)if(!SU(e[t]))return!1;return!0}function Bue(e){var t;if(0!=e.c)return e.c;for(t=0;t<e.a.length;t++)e.c=33*e.c+(-1&e.a[t]);return e.c=e.c*e.e,e.c}function Pue(e){var t;return SL(e.a!=e.b),t=e.d.a[e.a],wL(e.b==e.d.c&&null!=t),e.c=e.a,e.a=e.a+1&e.d.a.length-1,t}function Fue(e){var t;if(!(e.c.c<0?e.a>=e.c.b:e.a<=e.c.b))throw jv(new AA);return t=e.a,e.a+=e.c.c,++e.b,the(t)}function $ue(e){var t;return t=new cte(e),t2(e.a,sst,new qy(Sse(Uw(qat,1),jKe,369,0,[t]))),t.d&&GH(t.f,t.d),t.f}function jue(e){var t;return Hae(t=new kD(e.a),e),lle(t,(lKe(),fht),e),t.o.a=e.g,t.o.b=e.f,t.n.a=e.i,t.n.b=e.j,t}function Hue(e,t,n,r){var i,o;for(o=e.Kc();o.Ob();)(i=$H(o.Pb(),70)).n.a=t.a+(r.a-i.o.a)/2,i.n.b=t.b,t.b+=i.o.b+n}function Uue(e,t,n){var r;for(r=t.a.a.ec().Kc();r.Ob();)if(rX(e,$H(r.Pb(),57),n))return!0;return!1}function Que(e){var t,n;for(n=new Gf(e.r);n.a<n.c.c.length;)if(t=$H(J0(n),10),e.n[t.p]<=0)return t;return null}function zue(e){var t,n;for(n=new LA,t=new Gf(e);t.a<t.c.c.length;)Fie(n,fBe($H(J0(t),33)));return n}function Wue(e){var t;return t=bI(Cbt),$H(vSe(e,(lKe(),Xdt)),21).Hc((dBe(),fdt))&&fQ(t,(ASe(),Pat),(uKe(),$lt)),t}function Gue(e,t,n){var r;r=new xMe(e,t),qOe(e.r,t.Hf(),r),n&&!jW(e.u)&&(r.c=new AJ(e.d),kte(t.wf(),new Cp(r)))}function Vue(e,t){var n;return qM(e)&&qM(t)&&(n=e-t,!isNaN(n))?n:Bwe(qM(e)?Sae(e):e,qM(t)?Sae(t):t)}function Kue(e,t){return t<e.length&&(d0(t,e.length),63!=e.charCodeAt(t))&&(d0(t,e.length),35!=e.charCodeAt(t))}function Yue(e,t,n,r){var i,o;e.a=t,o=r?0:1,e.f=(i=new XCe(e.c,e.a,n,o),new oPe(n,e.a,i,e.e,e.b,e.c==(are(),Obt)))}function que(e,t,n){var r,i;return i=e.a,e.a=t,4&e.Db&&!(1&e.Db)&&(r=new JW(e,1,1,i,t),n?n.Ei(r):n=r),n}function Xue(e,t,n){var r,i;return i=e.b,e.b=t,4&e.Db&&!(1&e.Db)&&(r=new JW(e,1,3,i,t),n?n.Ei(r):n=r),n}function Jue(e,t,n){var r,i;return i=e.f,e.f=t,4&e.Db&&!(1&e.Db)&&(r=new JW(e,1,0,i,t),n?n.Ei(r):n=r),n}function Zue(e,t){var n,r,i,o;return(o=bke((r=t,(i=e?Yge(e):null)&&i.Xk(),r)))==t&&(n=Yge(e))&&n.Xk(),o}function ede(e,t){var n,r,i;for(i=1,n=e,r=t>=0?t:-t;r>0;)r%2==0?(n*=n,r=r/2|0):(i*=n,r-=1);return t<0?1/i:i}function tde(e,t){var n,r,i;for(i=1,n=e,r=t>=0?t:-t;r>0;)r%2==0?(n*=n,r=r/2|0):(i*=n,r-=1);return t<0?1/i:i}function nde(e){var t,n;if(null!=e)for(n=0;n<e.length;++n)(t=e[n])&&($H(t.g,367),t.i)}function rde(e){var t,n,i;for(i=0,n=new Gf(e.a);n.a<n.c.c.length;)t=$H(J0(n),187),i=r.Math.max(i,t.g);return i}function ide(e){var t,n,r;for(r=new Gf(e.b);r.a<r.c.c.length;)(t=(n=$H(J0(r),214)).c.Rf()?n.f:n.a)&&hQe(t,n.j)}function ode(){ode=M,mkt=new jk("INHERIT",0),gkt=new jk("INCLUDE_CHILDREN",1),vkt=new jk("SEPARATE_CHILDREN",2)}function ade(e,t){switch(t){case 1:return!e.n&&(e.n=new eG(UMt,e,1,7)),void sQe(e.n);case 2:return void Mre(e,null)}Qse(e,t)}function sde(e){switch(e.gc()){case 0:return $et;case 1:return new SQ(AV(e.Xb(0)));default:return new EX(e)}}function lde(e){switch(s$(),e.gc()){case 0:return VV(),Ket;case 1:return new Aw(e.Kc().Pb());default:return new mC(e)}}function cde(e){switch(s$(),e.c){case 0:return VV(),Ket;case 1:return new Aw(qke(new KE(e)));default:return new sy(e)}}function ude(e,t){AV(e);try{return e.xc(t)}catch(e){if(rN(e=use(e),205)||rN(e,173))return null;throw jv(e)}}function dde(e,t){AV(e);try{return e.Bc(t)}catch(e){if(rN(e=use(e),205)||rN(e,173))return null;throw jv(e)}}function hde(e,t){AV(e);try{return e.Hc(t)}catch(e){if(rN(e=use(e),205)||rN(e,173))return!1;throw jv(e)}}function fde(e,t){AV(e);try{return e.Mc(t)}catch(e){if(rN(e=use(e),205)||rN(e,173))return!1;throw jv(e)}}function pde(e,t){AV(e);try{return e._b(t)}catch(e){if(rN(e=use(e),205)||rN(e,173))return!1;throw jv(e)}}function gde(e,t){e.a.c.length>0&&fce($H(NQ(e.a,e.a.c.length-1),570),t)||GH(e.a,new g5(t))}function mde(e){var t,n;U$(),t=e.d.c-e.e.c,kte((n=$H(e.g,145)).b,new yg(t)),kte(n.c,new wg(t)),e5(n.i,new _g(t))}function vde(e){var t;return(t=new Cw).a+="VerticalSegment ",oM(t,e.e),t.a+=" ",aM(t,qN(new vw,new Gf(e.k))),t.a}function Ade(e){var t;return(t=$H(uee(e.c.c,""),229))||(t=new zZ(y_(b_(new As,""),"Other")),qme(e.c.c,"",t)),t}function bde(e){var t;return 64&e.Db?SDe(e):((t=new cR(SDe(e))).a+=" (name: ",rM(t,e.zb),t.a+=")",t.a)}function yde(e,t,n){var r,i;return i=e.sb,e.sb=t,4&e.Db&&!(1&e.Db)&&(r=new JW(e,1,4,i,t),n?n.Ei(r):n=r),n}function wde(e,t){var n,r;for(n=0,r=ife(e,t).Kc();r.Ob();)n+=null!=vSe($H(r.Pb(),11),(lKe(),wht))?1:0;return n}function _de(e,t,n){var r,i,o;for(r=0,o=sve(e,0);o.b!=o.d.c&&!((i=Uy(xB(d3(o))))>n);)i>=t&&++r;return r}function xde(e,t,n){var r;return r=new D9(e.e,3,13,null,t.c||(pKe(),cDt),oAe(e,t),!1),n?n.Ei(r):n=r,n}function Ede(e,t,n){var r;return r=new D9(e.e,4,13,t.c||(pKe(),cDt),null,oAe(e,t),!1),n?n.Ei(r):n=r,n}function Sde(e,t,n){var r,i;return i=e.r,e.r=t,4&e.Db&&!(1&e.Db)&&(r=new JW(e,1,8,i,e.r),n?n.Ei(r):n=r),n}function Cde(e,t){var n,r;return!(r=(n=$H(t,676)).vk())&&n.wk(r=rN(t,88)?new MO(e,$H(t,26)):new P1(e,$H(t,148))),r}function Tde(e,t,n){var r;e.qi(e.i+1),r=e.oi(t,n),t!=e.i&&iUe(e.g,t,e.g,t+1,e.i-t),MV(e.g,t,r),++e.i,e.bi(t,n),e.ci()}function kde(e,t){var n;return t.a&&(n=t.a.a.length,e.a?aM(e.a,e.b):e.a=new uR(e.d),U1(e.a,t.a,t.d.length,n)),e}function Ode(e,t){var n,r,i;if(t.vi(e.a),null!=(i=$H(Aae(e.a,8),1936)))for(n=0,r=i.length;n<r;++n)null.jm()}function Mde(e,t){var n;return n=new le,e.a.sd(n)?(CN(),new my(bK(_9(e,n.a,t)))):(wK(e),CN(),CN(),Ent)}function Ide(e,t){switch(t.g){case 2:case 1:return ife(e,t);case 3:case 4:return eae(ife(e,t))}return Eq(),Eq(),lnt}function Dde(e,t){return WO(e)?vF(e,t):zO(e)?mF(e,t):QO(e)?(bK(e),UO(e)===UO(t)):tW(e)?e.Fb(t):Oz(e)?FM(e,t):m1(e,t)}function Nde(e){return e?1&e.i?e==ORt?ytt:e==kRt?Mtt:e==NRt?Ttt:e==DRt?Ctt:e==MRt?Btt:e==RRt?Ftt:e==IRt?xtt:Stt:e:null}function Rde(e,t,n,r,i){0!=t&&0!=r&&(1==t?i[r]=fAe(i,n,r,e[0]):1==r?i[t]=fAe(i,e,t,n[0]):YMe(e,n,i,t,r))}function Lde(e,t){var n;0!=e.c.length&&(lI(n=$H(Kme(e,N8(kst,i0e,10,e.c.length,0,1)),193),new Mn),eMe(n,t))}function Bde(e,t){var n;0!=e.c.length&&(lI(n=$H(Kme(e,N8(kst,i0e,10,e.c.length,0,1)),193),new In),eMe(n,t))}function Pde(e,t,n,r){switch(t){case 1:return!e.n&&(e.n=new eG(UMt,e,1,7)),e.n;case 2:return e.k}return wye(e,t,n,r)}function Fde(){Fde=M,$Tt=new Bk(lJe,0),FTt=new Bk(iJe,1),PTt=new Bk(rJe,2),BTt=new Bk(gJe,3),jTt=new Bk("UP",4)}function $de(){$de=M,hst=new YC(KZe,0),dst=new YC("INSIDE_PORT_SIDE_GROUPS",1),ust=new YC("FORCE_MODEL_ORDER",2)}function jde(e,t,n){if(e<0||t>n)throw jv(new Oy(vXe+e+bXe+t+", size: "+n));if(e>t)throw jv(new Py(vXe+e+AXe+t))}function Hde(e,t,n){if(t<0)rOe(e,n);else{if(!n.Ij())throw jv(new Py(n6e+n.ne()+r6e));$H(n,66).Nj().Vj(e,e.yh(),t)}}function Ude(e,t,n,r,i,o,a,s){var l;for(l=n;o<a;)l>=r||t<n&&s.ue(e[t],e[l])<=0?MV(i,o++,e[t++]):MV(i,o++,e[l++])}function Qde(e,t,n,r,i,o){this.e=new Dv,this.f=(ire(),UAt),GH(this.e,e),this.d=t,this.a=n,this.b=r,this.f=i,this.c=o}function zde(e,t){var n,r;for(r=new ON(e);r.e!=r.i.gc();)if(n=$H(bve(r),26),UO(t)===UO(n))return!0;return!1}function Wde(e){var t,n,r,i;for(fKe(),r=0,i=(n=Zme()).length;r<i;++r)if(-1!=w9((t=n[r]).a,e,0))return t;return Tit}function Gde(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}function Vde(e){var t;return 64&e.Db?SDe(e):((t=new cR(SDe(e))).a+=" (source: ",rM(t,e.d),t.a+=")",t.a)}function Kde(e,t,n){var r,i;return i=e.a,e.a=t,4&e.Db&&!(1&e.Db)&&(r=new JW(e,1,5,i,e.a),n?Bxe(n,r):n=r),n}function Yde(e,t){var n;n=!!(256&e.Bb),t?e.Bb|=256:e.Bb&=-257,4&e.Db&&!(1&e.Db)&&dae(e,new Z5(e,1,2,n,t))}function qde(e,t){var n;n=!!(256&e.Bb),t?e.Bb|=256:e.Bb&=-257,4&e.Db&&!(1&e.Db)&&dae(e,new Z5(e,1,8,n,t))}function Xde(e,t){var n;n=!!(256&e.Bb),t?e.Bb|=256:e.Bb&=-257,4&e.Db&&!(1&e.Db)&&dae(e,new Z5(e,1,8,n,t))}function Jde(e,t){var n;n=!!(512&e.Bb),t?e.Bb|=512:e.Bb&=-513,4&e.Db&&!(1&e.Db)&&dae(e,new Z5(e,1,3,n,t))}function Zde(e,t){var n;n=!!(512&e.Bb),t?e.Bb|=512:e.Bb&=-513,4&e.Db&&!(1&e.Db)&&dae(e,new Z5(e,1,9,n,t))}function ehe(e,t){var n;return-1==e.b&&e.a&&(n=e.a.Gj(),e.b=n?e.c.Xg(e.a.aj(),n):Ope(e.c.Tg(),e.a)),e.c.Og(e.b,t)}function the(e){var t,n;return e>-129&&e<128?(t=e+128,!(n=(ZU(),ktt)[t])&&(n=ktt[t]=new Nf(e)),n):new Nf(e)}function nhe(e){var t,n;return e>-129&&e<128?(t=e+128,!(n=(_Q(),Ptt)[t])&&(n=Ptt[t]=new Lf(e)),n):new Lf(e)}function rhe(e){var t;return e.k==(oCe(),xst)&&((t=$H(vSe(e,(lKe(),Kdt)),61))==(bGe(),sOt)||t==EOt)}function ihe(e,t,n){var r,i;return(i=MDe(e.b,t))&&(r=$H(DUe(F9(e,i),""),26))?vDe(e,r,t,n):null}function ohe(e,t,n){var r,i;return(i=MDe(e.b,t))&&(r=$H(DUe(F9(e,i),""),26))?ADe(e,r,t,n):null}function ahe(e,t){var n,r;for(r=new ON(e);r.e!=r.i.gc();)if(n=$H(bve(r),138),UO(t)===UO(n))return!0;return!1}function she(e,t,n){var r;if(t>(r=e.gc()))throw jv(new ZP(t,r));if(e.hi()&&e.Hc(n))throw jv(new Py(i8e));e.Xh(t,n)}function lhe(e,t){var n;if(null==(n=sne(e.i,t)))throw jv(new ew("Node did not exist in input."));return Boe(t,n),null}function che(e,t){var n;if(rN(n=DRe(e,t),322))return $H(n,34);throw jv(new Py(n6e+t+"' is not a valid attribute"))}function uhe(e,t,n){var r,i;for(i=rN(t,99)&&$H(t,18).Bb&$qe?new NM(t,e):new Oae(t,e),r=0;r<n;++r)rAe(i);return i}function dhe(e){var t,n,r;for(r=0,n=e.length,t=0;t<n;t++)32==e[t]||13==e[t]||10==e[t]||9==e[t]||(e[r++]=e[t]);return r}function hhe(e){var t,n,r;for(t=new Dv,r=new Gf(e.b);r.a<r.c.c.length;)n=$H(J0(r),594),pse(t,$H(n.jf(),14));return t}function fhe(e){var t,n;for(n=$H(vSe(e,(HQe(),uwt)),15).Kc();n.Ob();)RU((t=$H(n.Pb(),188)).b.d,t),RU(t.c.b,t)}function phe(e){switch($H(vSe(e,(lKe(),tht)),303).g){case 1:lle(e,tht,(Q9(),Edt));break;case 2:lle(e,tht,(Q9(),Cdt))}}function ghe(e){var t;e.g&&(NLe((t=e.c.Rf()?e.f:e.a).a,e.o,!0),NLe(t.a,e.o,!1),lle(e.o,(jVe(),evt),(Kxe(),zkt)))}function mhe(e){var t;if(!e.a)throw jv(new Fy("Cannot offset an unassigned cut."));t=e.c-e.b,e.b+=t,Nq(e,t),Dq(e,t)}function vhe(e){var t;return null==(t=e.a[e.c-1&e.a.length-1])?null:(e.c=e.c-1&e.a.length-1,MV(e.a,e.c,null),t)}function Ahe(e){var t,n;for(n=e.p.a.ec().Kc();n.Ob();)if((t=$H(n.Pb(),213)).f&&e.b[t.c]<-1e-10)return t;return null}function bhe(e,t){switch(e.b.g){case 0:case 1:return t;case 2:case 3:return new zY(t.d,0,t.a,t.b);default:return null}}function yhe(e){switch(e.g){case 2:return FTt;case 1:return PTt;case 4:return BTt;case 3:return jTt;default:return $Tt}}function whe(e){switch(e.g){case 1:return COt;case 2:return sOt;case 3:return aOt;case 4:return EOt;default:return SOt}}function _he(e){switch(e.g){case 1:return EOt;case 2:return COt;case 3:return sOt;case 4:return aOt;default:return SOt}}function xhe(e){switch(e.g){case 1:return aOt;case 2:return EOt;case 3:return COt;case 4:return sOt;default:return SOt}}function Ehe(e){switch(e){case 0:return new vb;case 1:return new gb;case 2:return new mb;default:throw jv(new hA)}}function She(e,t){return e<t?-1:e>t?1:e==t?0==e?She(1/e,1/t):0:isNaN(e)?isNaN(t)?0:1:-1}function Che(e,t){kEe(t,"Sort end labels",1),qE(OY(hee(new LQ(null,new h0(e.b,16)),new pn),new gn),new mn),jCe(t)}function The(e,t,n){var r,i;return e.ej()?(i=e.fj(),r=YOe(e,t,n),e.$i(e.Zi(7,the(n),r,t,i)),r):YOe(e,t,n)}function khe(e,t){var n,r,i;null==e.d?(++e.e,--e.f):(i=t.cd(),D6(e,r=((n=t.Sh())&RKe)%e.d.length,ODe(e,r,n,i)))}function Ohe(e,t){var n;n=!!(e.Bb&b6e),t?e.Bb|=b6e:e.Bb&=-1025,4&e.Db&&!(1&e.Db)&&dae(e,new Z5(e,1,10,n,t))}function Mhe(e,t){var n;n=!!(e.Bb&Pqe),t?e.Bb|=Pqe:e.Bb&=-4097,4&e.Db&&!(1&e.Db)&&dae(e,new Z5(e,1,12,n,t))}function Ihe(e,t){var n;n=!!(e.Bb&_7e),t?e.Bb|=_7e:e.Bb&=-8193,4&e.Db&&!(1&e.Db)&&dae(e,new Z5(e,1,15,n,t))}function Dhe(e,t){var n;n=!!(e.Bb&x7e),t?e.Bb|=x7e:e.Bb&=-2049,4&e.Db&&!(1&e.Db)&&dae(e,new Z5(e,1,11,n,t))}function Nhe(e,t){var n;return 0!=(n=She(e.b.c,t.b.c))||0!=(n=She(e.a.a,t.a.a))?n:She(e.a.b,t.a.b)}function Rhe(e,t){var n;if(null==(n=LV(e.k,t)))throw jv(new ew("Port did not exist in input."));return Boe(t,n),null}function Lhe(e){var t,n;for(n=UDe(zte(e)).Kc();n.Ob();)if(D$e(e,t=EB(n.Pb())))return A4((zS(),RIt),t);return null}function Bhe(e,t){var n,r,i,o,a;for(a=iLe(e.e.Tg(),t),o=0,n=$H(e.g,119),i=0;i<e.i;++i)r=n[i],a.rl(r.ak())&&++o;return o}function Phe(e,t,n){var r,i;return r=$H(t.We(e.a),35),i=$H(n.We(e.a),35),null!=r&&null!=i?Doe(r,i):null!=r?-1:null!=i?1:0}function Fhe(e,t,n){var r;if(e.c)uSe(e.c,t,n);else for(r=new Gf(e.b);r.a<r.c.c.length;)Fhe($H(J0(r),157),t,n)}function $he(e,t){var n,r;for(r=new Gf(t);r.a<r.c.c.length;)n=$H(J0(r),46),A9(e.b.b,n.b),oX($H(n.a,189),$H(n.b,81))}function jhe(e){var t,n;for(n=NV(new Cw,91),t=!0;e.Ob();)t||(n.a+=FKe),t=!1,oM(n,e.Pb());return(n.a+="]",n).a}function Hhe(e,t){var n;n=!!(e.Bb&lYe),t?e.Bb|=lYe:e.Bb&=-16385,4&e.Db&&!(1&e.Db)&&dae(e,new Z5(e,1,16,n,t))}function Uhe(e,t){var n;n=!!(e.Bb&l6e),t?e.Bb|=l6e:e.Bb&=-32769,4&e.Db&&!(1&e.Db)&&dae(e,new Z5(e,1,18,n,t))}function Qhe(e,t){var n;n=!!(e.Bb&l6e),t?e.Bb|=l6e:e.Bb&=-32769,4&e.Db&&!(1&e.Db)&&dae(e,new Z5(e,1,18,n,t))}function zhe(e,t){var n;n=!!(e.Bb&$qe),t?e.Bb|=$qe:e.Bb&=-65537,4&e.Db&&!(1&e.Db)&&dae(e,new Z5(e,1,20,n,t))}function Whe(e){var t;return t=N8(TRt,GYe,25,2,15,1),e-=$qe,t[0]=(e>>10)+jqe&KYe,t[1]=56320+(1023&e)&KYe,$ge(t,0,t.length)}function Ghe(e){var t;return(t=$H(vSe(e,(jVe(),zgt)),103))==(Fde(),$Tt)?Uy(xB(vSe(e,wgt)))>=1?FTt:BTt:t}function Vhe(e){switch($H(vSe(e,(jVe(),Xgt)),218).g){case 1:return new ro;case 3:return new lo;default:return new no}}function Khe(e){if(e.c)Khe(e.c);else if(e.d)throw jv(new Fy("Stream already terminated, can't be modified or used"))}function Yhe(e){var t;return 64&e.Db?SDe(e):((t=new cR(SDe(e))).a+=" (identifier: ",rM(t,e.k),t.a+=")",t.a)}function qhe(e,t,n){var r;return Z_(),yne(r=new ol,t),wne(r,n),e&&c7((!e.a&&(e.a=new MN(DMt,e,5)),e.a),r),r}function Xhe(e,t,n,r){var i,o;return bK(r),bK(n),null==(o=null==(i=e.xc(t))?n:XE($H(i,15),$H(n,14)))?e.Bc(t):e.zc(t,o),o}function Jhe(e){var t,n,r,i;return aie(n=new YF(t=$H(V_((i=(r=e.gm).f)==Wet?r:i),9),$H(EP(t,t.length),9),0),e),n}function Zhe(e,t,n){var r,i;for(i=e.a.ec().Kc();i.Ob();)if(r=$H(i.Pb(),10),ase(n,$H(NQ(t,r.p),14)))return r;return null}function efe(e,t,n){try{Ple(e,t,n)}catch(e){throw rN(e=use(e),597)?jv(new p5(e)):jv(e)}return t}function tfe(e,t){var n;return qM(e)&&qM(t)&&Mqe<(n=e-t)&&n<kqe?n:oae(lse(qM(e)?Sae(e):e,qM(t)?Sae(t):t))}function nfe(e,t){var n;return qM(e)&&qM(t)&&Mqe<(n=e+t)&&n<kqe?n:oae(sse(qM(e)?Sae(e):e,qM(t)?Sae(t):t))}function rfe(e,t){var n;return qM(e)&&qM(t)&&Mqe<(n=e*t)&&n<kqe?n:oae(cQe(qM(e)?Sae(e):e,qM(t)?Sae(t):t))}function ife(e,t){var n;return e.i||eOe(e),(n=$H(aY(e.g,t),46))?new s0(e.j,$H(n.a,19).a,$H(n.b,19).a):(Eq(),Eq(),lnt)}function ofe(e,t,n){var r;return r=e.a.get(t),e.a.set(t,void 0===n?null:n),void 0===r?(++e.c,aX(e.b)):++e.d,r}function afe(e,t,n){e.n=bQ(MRt,[sYe,Fqe],[364,25],14,[n,CJ(r.Math.ceil(t/32))],2),e.o=t,e.p=n,e.j=t-1>>1,e.k=n-1>>1}function sfe(){var e,t,n;AEe(),n=Int+++Date.now(),e=CJ(r.Math.floor(n*oXe))&sXe,t=CJ(n-e*aXe),this.a=1502^e,this.b=t^iXe}function lfe(e){var t,n;for(t=new Dv,n=new Gf(e.j);n.a<n.c.c.length;)GH(t,$H(J0(n),11).b);return AV(t),new kM(t)}function cfe(e){var t,n;for(t=new Dv,n=new Gf(e.j);n.a<n.c.c.length;)GH(t,$H(J0(n),11).e);return AV(t),new kM(t)}function ufe(e){var t,n;for(t=new Dv,n=new Gf(e.j);n.a<n.c.c.length;)GH(t,$H(J0(n),11).g);return AV(t),new kM(t)}function dfe(e){var t,n;for(n=ZIe(zte(fZ(e))).Kc();n.Ob();)if(D$e(e,t=EB(n.Pb())))return b4((WS(),QIt),t);return null}function hfe(e){var t,n;for(t=0,n=e.length;t<n;t++)if(null==e[t])throw jv(new jy("at index "+t));return new qy(e)}function ffe(e,t){var n;if(rN(n=DRe(e.Tg(),t),99))return $H(n,18);throw jv(new Py(n6e+t+"' is not a valid reference"))}function pfe(e){var t;return(t=dCe(e))>34028234663852886e22?Lqe:t<-34028234663852886e22?Bqe:t}function gfe(e){return e=((e=((e-=e>>1&1431655765)>>2&858993459)+(858993459&e))>>4)+e&252645135,e+=e>>8,63&e+(e>>16)}function mfe(e){var t,n,r;for(t=new lP(e.Hd().gc()),r=0,n=I7(e.Hd().Kc());n.Ob();)yZ(t,n.Pb(),the(r++));return DCe(t.a)}function vfe(e,t){var n,r,i;for(i=new Nv,r=t.vc().Kc();r.Ob();)VK(i,(n=$H(r.Pb(),42)).cd(),uae(e,$H(n.dd(),15)));return i}function Afe(e,t){0==e.n.c.length&&GH(e.n,new LJ(e.s,e.t,e.i)),GH(e.b,t),sbe($H(NQ(e.n,e.n.c.length-1),211),t),$je(e,t)}function bfe(e){return e.c==e.b.b&&e.i==e.g.b||(e.a.c=N8(Met,jKe,1,0,5,1),pse(e.a,e.b),pse(e.a,e.g),e.c=e.b.b,e.i=e.g.b),e.a}function yfe(e,t){var n,r;for(r=0,n=$H(t.Kb(e),20).Kc();n.Ob();)Hy(_B(vSe($H(n.Pb(),17),(lKe(),Cht))))||++r;return r}function wfe(e,t){var n,i;i=Uy(xB(ege(c2(t),(jVe(),Avt)))),Fwe(t,n=r.Math.max(0,i/2-.5),1),GH(e,new uT(t,n))}function _fe(){_fe=M,Hht=new $T(KZe,0),Pht=new $T("FIRST",1),Fht=new $T(C0e,2),$ht=new $T("LAST",3),jht=new $T(T0e,4)}function xfe(){xfe=M,XTt=new Fk(lJe,0),YTt=new Fk("POLYLINE",1),KTt=new Fk("ORTHOGONAL",2),qTt=new Fk("SPLINES",3)}function Efe(){Efe=M,X_t=new bk("ASPECT_RATIO_DRIVEN",0),J_t=new bk("MAX_SCALE_DRIVEN",1),q_t=new bk("AREA_DRIVEN",2)}function Sfe(){Sfe=M,jxt=new wk("P1_STRUCTURE",0),Hxt=new wk("P2_PROCESSING_ORDER",1),Uxt=new wk("P3_EXECUTION",2)}function Cfe(){Cfe=M,e_t=new pk("OVERLAP_REMOVAL",0),Jwt=new pk("COMPACTION",1),Zwt=new pk("GRAPH_SIZE_CALCULATION",2)}function Tfe(e,t){return lD(),nre(BYe),r.Math.abs(e-t)<=BYe||e==t||isNaN(e)&&isNaN(t)?0:e<t?-1:e>t?1:QM(isNaN(e),isNaN(t))}function kfe(e,t){var n,r;for(n=sve(e,0);n.b!=n.d.c;){if((r=Qy(xB(d3(n))))==t)return;if(r>t){z1(n);break}}JG(n,t)}function Ofe(e,t){var n,r,i,o,a;if(n=t.f,qme(e.c.d,n,t),null!=t.g)for(o=0,a=(i=t.g).length;o<a;++o)r=i[o],qme(e.c.e,r,t)}function Mfe(e,t,n,r){var i,o,a;for(i=t+1;i<n;++i)for(o=i;o>t&&r.ue(e[o-1],e[o])>0;--o)a=e[o],MV(e,o,e[o-1]),MV(e,o-1,a)}function Ife(e,t,n,r){if(t<0)_Ne(e,n,r);else{if(!n.Ij())throw jv(new Py(n6e+n.ne()+r6e));$H(n,66).Nj().Tj(e,e.yh(),t,r)}}function Dfe(e,t){if(t==e.d)return e.e;if(t==e.e)return e.d;throw jv(new Py("Node "+t+" not part of edge "+e))}function Nfe(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function Rfe(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function Lfe(e,t,n,r){switch(t){case 3:return e.f;case 4:return e.g;case 5:return e.i;case 6:return e.j}return Pde(e,t,n,r)}function Bfe(e){return e.k==(oCe(),Cst)&&a5(new LQ(null,new QG(new aW(XN(ufe(e).a.Kc(),new u)))),new Qi)}function Pfe(e){return null==e.e?e:(!e.c&&(e.c=new nPe(!!(256&e.f),e.i,e.a,e.d,!!(16&e.f),e.j,e.g,null)),e.c)}function Ffe(e,t){return e.h==Cqe&&0==e.m&&0==e.l?(t&&(dtt=xD(0,0,0)),GM((W9(),ptt))):(t&&(dtt=xD(e.l,e.m,e.h)),xD(0,0,0))}function $fe(e){return Array.isArray(e)&&e.im===O?J_(Zle(e))+"@"+(Jle(e)>>>0).toString(16):e.toString()}function jfe(e){var t;this.a=new YF(t=$H(e.e&&e.e(),9),$H(EP(t,t.length),9),0),this.b=N8(Met,jKe,1,this.a.a.length,5,1)}function Hfe(e){var t,n,r;for(this.a=new cI,r=new Gf(e);r.a<r.c.c.length;)n=$H(J0(r),14),die(t=new lz,n),_G(this.a,t)}function Ufe(e){var t,n;for(HB(),t=e.o.b,n=$H($H(l6(e.r,(bGe(),EOt)),21),84).Kc();n.Ob();)$H(n.Pb(),111).e.b+=t}function Qfe(e){var t;if(e.b){if(Qfe(e.b),e.b.d!=e.c)throw jv(new mA)}else e.d.dc()&&(t=$H(e.f.c.xc(e.e),14))&&(e.d=t)}function zfe(e){var t;return null==e||(t=e.length)>0&&(d0(t-1,e.length),58==e.charCodeAt(t-1))&&!Wfe(e,MIt,IIt)}function Wfe(e,t,n){var r,i;for(r=0,i=e.length;r<i;r++)if(Zse((d0(r,e.length),e.charCodeAt(r)),t,n))return!0;return!1}function Gfe(e,t){var n,r;for(r=e.e.a.ec().Kc();r.Ob();)if(ZSe(t,(n=$H(r.Pb(),266)).d)||Tke(t,n.d))return!0;return!1}function Vfe(e,t){var n,r,i;for(i=(r=jPe(e,t))[r.length-1]/2,n=0;n<r.length;n++)if(r[n]>=i)return t.c+n;return t.c+t.b.gc()}function Kfe(e,t){var n,r,i,o;for(fB(),i=t,Q7(r=j7(e),0,r.length,i),n=0;n<r.length;n++)n!=(o=pwe(e,r[n],n))&&The(e,n,o)}function Yfe(e,t){var n,r,i,o,a,s;for(r=0,n=0,a=0,s=(o=t).length;a<s;++a)(i=o[a])>0&&(r+=i,++n);return n>1&&(r+=e.d*(n-1)),r}function qfe(e){var t,n,r;for((r=new Ew).a+="[",t=0,n=e.gc();t<n;)rM(r,bR(e.ki(t))),++t<n&&(r.a+=FKe);return r.a+="]",r.a}function Xfe(e){var t,n,r;return r=OEe(e),!Gx(e.c)&&(nte(r,"knownLayouters",n=new Sh),t=new nv(n),e5(e.c,t)),r}function Jfe(e,t){var n,r;for(bK(t),n=!1,r=new Gf(e);r.a<r.c.c.length;)Ape(t,J0(r),!1)&&(OG(r),n=!0);return n}function Zfe(e){var t,n;for(n=Uy(xB(e.a.We((sKe(),kTt)))),t=new Gf(e.a.xf());t.a<t.c.c.length;)VGe(e,$H(J0(t),680),n)}function epe(e,t){var n,r;for(r=new Gf(t);r.a<r.c.c.length;)n=$H(J0(r),46),GH(e.b.b,$H(n.b,81)),p2($H(n.a,189),$H(n.b,81))}function tpe(e,t,n){var r,i;for(r=(i=e.a.b).c.length;r<n;r++)bz(i,0,new jV(e.a));SZ(t,$H(NQ(i,i.c.length-n),29)),e.b[t.p]=n}function npe(e,t,n){var r;!(r=n)&&(r=IU(new Wb,0)),kEe(r,HZe,2),vAe(e.b,t,voe(r,1)),BQe(e,t,voe(r,1)),HGe(t,voe(r,1)),jCe(r)}function rpe(e,t,n,r,i){$Z(),zRe(iS(rS(nS(oS(new jA,0),i.d.e-e),t),i.d)),zRe(iS(rS(nS(oS(new jA,0),n-i.a.e),i.a),r))}function ipe(e,t,n,r,i,o){this.a=e,this.c=t,this.b=n,this.f=r,this.d=i,this.e=o,this.c>0&&this.b>0&&YQ(this.c,this.b,this.a)}function ope(e){Lpe(),this.c=o6(Sse(Uw(nSt,1),jKe,831,0,[Gvt])),this.b=new Nv,this.a=e,VK(this.b,Vvt,1),kte(Kvt,new Sm(this))}function ape(e,t){var n;return e.d?lG(e.b,t)?$H(LV(e.b,t),51):(n=t.Kf(),VK(e.b,t,n),n):t.Kf()}function spe(e,t){var n;return UO(e)===UO(t)||!!rN(t,91)&&(n=$H(t,91),e.e==n.e&&e.d==n.d&&w4(e,n.a))}function lpe(e){switch(bGe(),e.g){case 4:return sOt;case 1:return aOt;case 3:return EOt;case 2:return COt;default:return SOt}}function cpe(e,t){switch(t){case 3:return 0!=e.f;case 4:return 0!=e.g;case 5:return 0!=e.i;case 6:return 0!=e.j}return wae(e,t)}function upe(e){switch(e.g){case 0:return new Wa;case 1:return new Ga;default:throw jv(new Py(r4e+(null!=e.f?e.f:""+e.g)))}}function dpe(e){switch(e.g){case 0:return new za;case 1:return new Va;default:throw jv(new Py(x0e+(null!=e.f?e.f:""+e.g)))}}function hpe(e){switch(e.g){case 0:return new Vb;case 1:return new Ab;default:throw jv(new Py(D4e+(null!=e.f?e.f:""+e.g)))}}function fpe(e){switch(e.g){case 1:return new Fa;case 2:return new pB;default:throw jv(new Py(r4e+(null!=e.f?e.f:""+e.g)))}}function ppe(e){var t,n;if(e.b)return e.b;for(n=Knt?null:e.d;n;){if(t=Knt?null:n.b)return t;n=Knt?null:n.d}return uS(),jnt}function gpe(e){var t,n;return 0==e.e?0:(t=e.d<<5,n=e.a[e.d-1],e.e<0&&Coe(e)==e.d-1&&(--n,n|=0),t-=XOe(n))}function mpe(e){var t,n,r;return e<ent.length?ent[e]:(t=31&e,(r=N8(kRt,lqe,25,1+(n=e>>5),15,1))[n]=1<<t,new uG(1,n+1,r))}function vpe(e){var t,n,r;return(n=e.zg())?rN(t=e.Ug(),160)&&null!=(r=vpe($H(t,160)))?r+"."+n:n:null}function Ape(e,t,n){var r,i;for(i=e.Kc();i.Ob();)if(r=i.Pb(),UO(t)===UO(r)||null!=t&&Dde(t,r))return n&&i.Qb(),!0;return!1}function bpe(e,t,n){var r,i;if(++e.j,n.dc())return!1;for(i=n.Kc();i.Ob();)r=i.Pb(),e.Hi(t,e.oi(t,r)),++t;return!0}function ype(e,t,n,r){var i,o;if((o=n-t)<3)for(;o<3;)e*=10,++o;else{for(i=1;o>3;)i*=10,--o;e=(e+(i>>1))/i|0}return r.i=e,!0}function wpe(e){return Eue(),lR(),!!(Rfe($H(e.a,81).j,$H(e.b,103))||0!=$H(e.a,81).d.e&&Rfe($H(e.a,81).j,$H(e.b,103)))}function _pe(e){N7(),$H(e.We((sKe(),HCt)),174).Hc((JFe(),VOt))&&($H(e.We(cTt),174).Fc((uOe(),rOt)),$H(e.We(HCt),174).Mc(VOt))}function xpe(e,t){var n;if(t){for(n=0;n<e.i;++n)if($H(e.g[n],366).Di(t))return!1;return c7(e,t)}return!1}function Epe(e){var t,n,r;for(t=new Sh,r=new Hf(e.b.Kc());r.b.Ob();)n=VCe($H(r.b.Pb(),686)),GG(t,t.a.length,n);return t.a}function Spe(e){var t;return!e.c&&(e.c=new Ne),vD(e.d,new Le),YFe(e),t=uBe(e),qE(new LQ(null,new h0(e.d,16)),new Tp(e)),t}function Cpe(e){var t;return 64&e.Db?bde(e):((t=new cR(bde(e))).a+=" (instanceClassName: ",rM(t,e.D),t.a+=")",t.a)}function Tpe(e,t){var n,r;t&&(n=Lne(t,"x"),_ne(new Xm(e).a,(bK(n),n)),r=Lne(t,"y"),kne(new Jm(e).a,(bK(r),r)))}function kpe(e,t){var n,r;t&&(n=Lne(t,"x"),Tne(new Vm(e).a,(bK(n),n)),r=Lne(t,"y"),One(new Ym(e).a,(bK(r),r)))}function Ope(e,t){var n,r,i;if(null==e.i&&Hje(e),n=e.i,-1!=(r=t.aj()))for(i=n.length;r<i;++r)if(n[r]==t)return r;return-1}function Mpe(e){var t,n,r,i;for(n=$H(e.g,674),r=e.i-1;r>=0;--r)for(t=n[r],i=0;i<r;++i)if(mje(e,t,n[i])){Iye(e,r);break}}function Ipe(e){var t=e.e;function n(e){return e&&0!=e.length?"\t"+e.join("\n\t"):""}return t&&(t.stack||n(e[zYe]))}function Dpe(e){var t;switch(GV(),(t=e.Pc()).length){case 0:return $et;case 1:return new SQ(AV(t[0]));default:return new EX(hfe(t))}}function Npe(e,t){switch(t.g){case 1:return BH(e.j,(poe(),Dst));case 2:return BH(e.j,(poe(),Rst));default:return Eq(),Eq(),lnt}}function Rpe(e,t){switch(t){case 3:return void xne(e,0);case 4:return void Ene(e,0);case 5:return void Sne(e,0);case 6:return void Cne(e,0)}ade(e,t)}function Lpe(){Lpe=M,OS(),jVe(),Vvt=kvt,Kvt=o6(Sse(Uw(uSt,1),b3e,146,0,[vvt,Avt,yvt,wvt,Evt,Svt,Cvt,Tvt,Mvt,Dvt,bvt,_vt,Ovt]))}function Bpe(e){var t,n;t=e.d==(MTe(),qct),n=Mxe(e),lle(e.a,(jVe(),bgt),t&&!n||!t&&n?(hAe(),MSt):(hAe(),OSt))}function Ppe(e,t){var n;return(n=$H(S4(e,v7(new U,new H,new re,Sse(Uw(Jnt,1),MYe,132,0,[(Hce(),znt)]))),15)).Qc(uU(n.gc()))}function Fpe(){Fpe=M,eMt=new Yk("SIMPLE",0),XOt=new Yk("GROUP_DEC",1),ZOt=new Yk("GROUP_MIXED",2),JOt=new Yk("GROUP_INC",3)}function $pe(){$pe=M,UDt=new Dl,LDt=new Nl,BDt=new Rl,PDt=new Ll,FDt=new Bl,$Dt=new Pl,jDt=new Fl,HDt=new $l,QDt=new jl}function jpe(e,t,n){Hte(),sb.call(this),this.a=bQ(Wrt,[sYe,nJe],[595,212],0,[Jrt,Xrt],2),this.c=new dI,this.g=e,this.f=t,this.d=n}function Hpe(e,t){this.n=bQ(MRt,[sYe,Fqe],[364,25],14,[t,CJ(r.Math.ceil(e/32))],2),this.o=e,this.p=t,this.j=e-1>>1,this.k=t-1>>1}function Upe(e,t){kEe(t,"End label post-processing",1),qE(OY(hee(new LQ(null,new h0(e.b,16)),new an),new sn),new ln),jCe(t)}function Qpe(e,t,n){var r;return r=Uy(e.p[t.i.p])+Uy(e.d[t.i.p])+t.n.b+t.a.b,Uy(e.p[n.i.p])+Uy(e.d[n.i.p])+n.n.b+n.a.b-r}function zpe(e,t,n){var r,i;for(r=e1(n,zqe),i=0;0!=Vue(r,0)&&i<t;i++)r=nfe(r,e1(e[i],zqe)),e[i]=fz(r),r=bW(r,32);return fz(r)}function Wpe(e){var t,n,r,i;for(i=0,n=0,r=e.length;n<r;n++)d0(n,e.length),(t=e.charCodeAt(n))<64&&(i=t1(i,AW(1,t)));return i}function Gpe(e){var t;return null==e?null:new MI((t=FHe(e,!0)).length>0&&(d0(0,t.length),43==t.charCodeAt(0))?t.substr(1):t)}function Vpe(e){var t;return null==e?null:new MI((t=FHe(e,!0)).length>0&&(d0(0,t.length),43==t.charCodeAt(0))?t.substr(1):t)}function Kpe(e,t){return e.i>0&&(t.length<e.i&&(t=Rne(Zle(t).c,e.i)),iUe(e.g,0,t,0,e.i)),t.length>e.i&&MV(t,e.i,null),t}function Ype(e,t,n){var r,i,o;return e.ej()?(r=e.i,o=e.fj(),Tde(e,r,t),i=e.Zi(3,null,t,r,o),n?n.Ei(i):n=i):Tde(e,e.i,t),n}function qpe(e,t,n){var r,i;return r=new D9(e.e,4,10,rN(i=t.c,88)?$H(i,26):(pKe(),hDt),null,oAe(e,t),!1),n?n.Ei(r):n=r,n}function Xpe(e,t,n){var r,i;return r=new D9(e.e,3,10,null,rN(i=t.c,88)?$H(i,26):(pKe(),hDt),oAe(e,t),!1),n?n.Ei(r):n=r,n}function Jpe(e){var t;return HB(),t=new hI($H(e.e.We((sKe(),$Ct)),8)),e.B.Hc((JFe(),UOt))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t}function Zpe(e){return dAe(),(e.q?e.q:(Eq(),Eq(),cnt))._b((jVe(),Lmt))?$H(vSe(e,Lmt),197):$H(vSe(mK(e),Bmt),197)}function ege(e,t){var n,r;return r=null,IL(e,(jVe(),xvt))&&(n=$H(vSe(e,xvt),94)).Xe(t)&&(r=n.We(t)),null==r&&(r=vSe(mK(e),t)),r}function tge(e,t){var n,r,i;return!!rN(t,42)&&(r=(n=$H(t,42)).cd(),hK(i=ude(e.Rc(),r),n.dd())&&(null!=i||e.Rc()._b(r)))}function nge(e,t){var n;return e.f>0&&(e.qj(),-1!=ODe(e,((n=null==t?0:Jle(t))&RKe)%e.d.length,n,t))}function rge(e,t){var n,r;return e.f>0&&(e.qj(),n=iMe(e,((r=null==t?0:Jle(t))&RKe)%e.d.length,r,t))?n.dd():null}function ige(e,t){var n,r,i,o;for(o=iLe(e.e.Tg(),t),n=$H(e.g,119),i=0;i<e.i;++i)if(r=n[i],o.rl(r.ak()))return!1;return!0}function oge(e){if(null==e.b){for(;e.a.Ob();)if(e.b=e.a.Pb(),!$H(e.b,49).Zg())return!0;return e.b=null,!1}return!0}function age(e,t){e.mj();try{e.d.Vc(e.e++,t),e.f=e.d.j,e.g=-1}catch(e){throw rN(e=use(e),73)?jv(new mA):jv(e)}}function sge(e,t){var n,r;return sD(),r=null,t==(n=cP((cw(),cw(),rtt)))&&(r=$H(EJ(ntt,e),615)),r||(r=new QV(e),t==n&&vZ(ntt,e,r)),r}function lge(e,t){var n,i;e.a=nfe(e.a,1),e.c=r.Math.min(e.c,t),e.b=r.Math.max(e.b,t),e.d+=t,n=t-e.f,i=e.e+n,e.f=i-e.e-n,e.e=i}function cge(e,t){var n;e.c=t,e.a=gpe(t),e.a<54&&(e.f=(n=t.d>1?t1(AW(t.a[1],32),e1(t.a[0],zqe)):e1(t.a[0],zqe),y2(rfe(t.e,n))))}function uge(e,t){var n;return qM(e)&&qM(t)&&Mqe<(n=e%t)&&n<kqe?n:oae((OQe(qM(e)?Sae(e):e,qM(t)?Sae(t):t,!0),dtt))}function dge(e,t){var n;RWe(t),(n=$H(vSe(e,(jVe(),qgt)),276))&&lle(e,qgt,Oye(n)),JR(e.c),JR(e.f),V6(e.d),V6($H(vSe(e,Omt),207))}function hge(e){this.e=N8(kRt,lqe,25,e.length,15,1),this.c=N8(ORt,XXe,25,e.length,16,1),this.b=N8(ORt,XXe,25,e.length,16,1),this.f=0}function fge(e){var t,n;for(e.j=N8(DRt,Hqe,25,e.p.c.length,15,1),n=new Gf(e.p);n.a<n.c.c.length;)t=$H(J0(n),10),e.j[t.p]=t.o.b/e.i}function pge(e){var t;0!=e.c&&(1==(t=$H(NQ(e.a,e.b),287)).b?(++e.b,e.b<e.a.c.length&&_f($H(NQ(e.a,e.b),287))):--t.b,--e.c)}function gge(e){var t;t=e.a;do{(t=$H(z5(new aW(XN(ufe(t).a.Kc(),new u))),17).d.i).k==(oCe(),Sst)&&GH(e.e,t)}while(t.k==(oCe(),Sst))}function mge(){mge=M,IOt=new GI(15),MOt=new WI((sKe(),WCt),IOt),NOt=new WI(ITt,15),DOt=new WI(mTt,the(0)),OOt=new WI(rCt,fZe)}function vge(){vge=M,BOt=new Vk("PORTS",0),POt=new Vk("PORT_LABELS",1),LOt=new Vk("NODE_LABELS",2),ROt=new Vk("MINIMUM_SIZE",3)}function Age(e,t){var n,r;for(r=t.length,n=0;n<r;n+=2)YLe(e,(d0(n,t.length),t.charCodeAt(n)),(d0(n+1,t.length),t.charCodeAt(n+1)))}function bge(e,t,n){var r,i,o,a;for(o=t-e.e,a=n-e.f,i=new Gf(e.a);i.a<i.c.c.length;)_Ae(r=$H(J0(i),187),r.s+o,r.t+a);e.e=t,e.f=n}function yge(e,t){var n,r,i;for(i=t.b.b,e.a=new YE,e.b=N8(kRt,lqe,25,i,15,1),n=0,r=sve(t.b,0);r.b!=r.d.c;)$H(d3(r),86).g=n++}function wge(e,t){var n,r,i,o;return n=t>>5,t&=31,i=e.d+n+(0==t?0:1),NEe(r=N8(kRt,lqe,25,i,15,1),e.a,n,t),W1(o=new uG(e.e,i,r)),o}function _ge(e,t,n){var r,i;r=$H(EJ(eRt,t),117),i=$H(EJ(tRt,t),117),n?(vZ(eRt,e,r),vZ(tRt,e,i)):(vZ(tRt,e,r),vZ(eRt,e,i))}function xge(e,t,n){var r,i,o;for(i=null,o=e.b;o;){if(r=e.a.ue(t,o.d),n&&0==r)return o;r>=0?o=o.a[1]:(i=o,o=o.a[0])}return i}function Ege(e,t,n){var r,i,o;for(i=null,o=e.b;o;){if(r=e.a.ue(t,o.d),n&&0==r)return o;r<=0?o=o.a[0]:(i=o,o=o.a[1])}return i}function Sge(e,t,n,r){var i,o,a;return i=!1,Ize(e.f,n,r)&&(Nme(e.f,e.a[t][n],e.a[t][r]),a=(o=e.a[t])[r],o[r]=o[n],o[n]=a,i=!0),i}function Cge(e,t,n,r,i){var o,a,s;for(a=i;t.b!=t.c;)o=$H(fG(t),10),s=$H(ife(o,r).Xb(0),11),e.d[s.p]=a++,n.c[n.c.length]=s;return a}function Tge(e,t,n){var i,o,a,s,l;return s=e.k,l=t.k,o=xB(ege(e,i=n[s.g][l.g])),a=xB(ege(t,i)),r.Math.max((bK(o),o),(bK(a),a))}function kge(e,t,n){var r,i,o,a;for(r=n/e.c.length,i=0,a=new Gf(e);a.a<a.c.c.length;)pue(o=$H(J0(a),200),o.f+r*i),i_e(o,t,r),++i}function Oge(e,t,n){var r,i,o;for(i=$H(LV(e.b,n),177),r=0,o=new Gf(t.j);o.a<o.c.c.length;)i[$H(J0(o),113).d.p]&&++r;return r}function Mge(e){var t,n;return null!=(t=$H(Aae(e.a,4),126))?(iUe(t,0,n=N8(hIt,t7e,415,t.length,0,1),0,t.length),n):dIt}function Ige(){var e;return 0!=itt&&(e=u5())-ott>2e3&&(ott=e,att=r.setTimeout(Kx,10)),0==itt++&&(kee((sw(),ett)),!0)}function Dge(e,t){var n;for(n=new aW(XN(ufe(e).a.Kc(),new u));fIe(n);)if($H(z5(n),17).d.i.c==t)return!1;return!0}function Nge(e,t){var n;if(rN(t,245)){n=$H(t,245);try{return 0==e.vd(n)}catch(e){if(!rN(e=use(e),205))throw jv(e)}}return!1}function Rge(){return Error.stackTraceLimit>0?(r.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function Lge(e,t){return lD(),lD(),nre(BYe),(r.Math.abs(e-t)<=BYe||e==t||isNaN(e)&&isNaN(t)?0:e<t?-1:e>t?1:QM(isNaN(e),isNaN(t)))>0}function Bge(e,t){return lD(),lD(),nre(BYe),(r.Math.abs(e-t)<=BYe||e==t||isNaN(e)&&isNaN(t)?0:e<t?-1:e>t?1:QM(isNaN(e),isNaN(t)))<0}function Pge(e,t){return lD(),lD(),nre(BYe),(r.Math.abs(e-t)<=BYe||e==t||isNaN(e)&&isNaN(t)?0:e<t?-1:e>t?1:QM(isNaN(e),isNaN(t)))<=0}function Fge(e,t){for(var n=0;!t[n]||""==t[n];)n++;for(var r=t[n++];n<t.length;n++)t[n]&&""!=t[n]&&(r+=e+t[n]);return r}function $ge(e,t,n){var i,o,a,s;for(P8(t,a=t+n,e.length),s="",o=t;o<a;)i=r.Math.min(o+1e4,a),s+=GK(e.slice(o,i)),o=i;return s}function jge(e){var t,n,r,i;if(null==e)return null;for(i=new Dv,n=0,r=(t=Ace(e)).length;n<r;++n)GH(i,FHe(t[n],!0));return i}function Hge(e){var t,n,r,i;if(null==e)return null;for(i=new Dv,n=0,r=(t=Ace(e)).length;n<r;++n)GH(i,FHe(t[n],!0));return i}function Uge(e){var t,n,r,i;if(null==e)return null;for(i=new Dv,n=0,r=(t=Ace(e)).length;n<r;++n)GH(i,FHe(t[n],!0));return i}function Qge(e,t){var n,r,i;if(e.c)Ene(e.c,t);else for(n=t-tz(e),i=new Gf(e.d);i.a<i.c.c.length;)Qge(r=$H(J0(i),157),tz(r)+n)}function zge(e,t){var n,r,i;if(e.c)xne(e.c,t);else for(n=t-ez(e),i=new Gf(e.a);i.a<i.c.c.length;)zge(r=$H(J0(i),157),ez(r)+n)}function Wge(e,t){var n,r,i;for(r=new q6(t.gc()),n=t.Kc();n.Ob();)(i=ZFe(e,$H(n.Pb(),56)))&&(r.c[r.c.length]=i);return r}function Gge(e,t){var n,r;return e.qj(),(n=iMe(e,((r=null==t?0:Jle(t))&RKe)%e.d.length,r,t))?(lre(e,n),n.dd()):null}function Vge(e){var t,n;for(n=oTe(e),t=null;2==e.c;)KVe(e),t||(hKe(),hKe(),ZUe(t=new nD(2),n),n=t),n.$l(oTe(e));return n}function Kge(e){if(!(H6e in e.a))throw jv(new ew("Every element must have an id."));return bOe(QJ(e,H6e))}function Yge(e){var t,n,r;if(!(r=e.Zg()))for(t=0,n=e.eh();n;n=n.eh()){if(++t>Uqe)return n.fh();if((r=n.Zg())||n==e)break}return r}function qge(e){return lZ(),rN(e,156)?$H(LV(oIt,Ant),288).vg(e):lG(oIt,Zle(e))?$H(LV(oIt,Zle(e)),288).vg(e):null}function Xge(e){if(vme(i5e,e))return lR(),vtt;if(vme(o5e,e))return lR(),mtt;throw jv(new Py("Expecting true or false"))}function Jge(e,t){if(t.c==e)return t.d;if(t.d==e)return t.c;throw jv(new Py("Input edge is not connected to the input port."))}function Zge(e,t){return e.e>t.e?1:e.e<t.e?-1:e.d>t.d?e.e:e.d<t.d?-t.e:e.e*xce(e.a,t.a,e.d)}function eme(e){return e>=48&&e<48+r.Math.min(10,10)?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}function tme(e,t){var n;return UO(t)===UO(e)||!!rN(t,21)&&(n=$H(t,21)).gc()==e.gc()&&e.Ic(n)}function nme(e,t){var n,r,i;return r=e.a.length-1,n=t-e.b&r,i=e.c-t&r,wL(n<(e.c-e.b&r)),n>=i?(iue(e,t),-1):(oue(e,t),1)}function rme(e,t){var n,r;for(d0(t,e.length),n=e.charCodeAt(t),r=t+1;r<e.length&&(d0(r,e.length),e.charCodeAt(r)==n);)++r;return r-t}function ime(e){switch(e.g){case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:return!0;default:return!1}}function ome(e,t){var n,r=e.a;t=String(t),r.hasOwnProperty(t)&&(n=r[t]);var i=(Xse(),utt)[typeof n];return i?i(n):bue(typeof n)}function ame(e,t){if(e.a<0)throw jv(new Fy("Did not call before(...) or after(...) before calling add(...)."));return GR(e,e.a,t),e}function sme(e,t,n,r){var i;0!=t.c.length&&(i=xNe(n,r),qE(Ate(new LQ(null,new h0(oOe(t),1)),new xa),new WY(e,n,i,r)))}function lme(e,t,n){var r;e.Db&t?null==n?GMe(e,t):-1==(r=Lbe(e,t))?e.Eb=n:MV(ene(e.Eb),r,n):null!=n&&vLe(e,t,n)}function cme(e){var t;return 32&e.Db||0!=(t=dV($H(Aae(e,16),26)||e.zh())-dV(e.zh()))&&lme(e,32,N8(Met,jKe,1,t,5,1)),e}function ume(e){var t;return e.b||W_(e,!(t=JP(e.e,e.a))||!vF(o5e,rge((!t.b&&(t.b=new qL((pKe(),ADt),zDt,t)),t.b),"qualified"))),e.c}function dme(e,t,n){var r,i;return((i=(r=$H(Gte(j9(e.a),t),87)).c||(pKe(),cDt)).kh()?Zue(e.b,$H(i,49)):i)==n?uje(r):rne(r,n),i}function hme(e,t){(t||null==console.groupCollapsed?null!=console.group?console.group:console.log:console.groupCollapsed).call(console,e)}function fme(e,t,n,r){$H(n.b,65),$H(n.b,65),$H(r.b,65),$H(r.b,65).c.b,B8(r,t,e)}function pme(e){var t,n;for(t=new Gf(e.g);t.a<t.c.c.length;)$H(J0(t),562);QWe(n=new ALe(e.g,Uy(e.a),e.c)),e.g=n.b,e.d=n.a}function gme(e,t,n){t.b=r.Math.max(t.b,-n.a),t.c=r.Math.max(t.c,n.a-e.a),t.d=r.Math.max(t.d,-n.b),t.a=r.Math.max(t.a,n.b-e.b)}function mme(e,t){return e.e<t.e?-1:e.e>t.e?1:e.f<t.f?-1:e.f>t.f?1:Jle(e)-Jle(t)}function vme(e,t){return bK(e),null!=t&&(!!vF(e,t)||e.length==t.length&&vF(e.toLowerCase(),t.toLowerCase()))}function Ame(e,t){var n,r,i,o;for(r=0,i=t.gc();r<i;++r)rN(n=t.il(r),99)&&$H(n,18).Bb&l6e&&null!=(o=t.jl(r))&&ZFe(e,$H(o,56))}function bme(e,t,n){var r,i,o;for(o=new Gf(n.a);o.a<o.c.c.length;)i=$H(J0(o),221),r=new CD($H(LV(e.a,i.b),65)),GH(t.a,r),bme(e,r,i)}function yme(e){var t,n;return Vue(e,-129)>0&&Vue(e,128)<0?(t=fz(e)+128,!(n=(wQ(),Itt)[t])&&(n=Itt[t]=new Rf(e)),n):new Rf(e)}function wme(e,t){var n,r;return(n=t.Hh(e.a))&&null!=(r=EB(rge((!n.b&&(n.b=new qL((pKe(),ADt),zDt,n)),n.b),Z6e)))?r:t.ne()}function _me(e,t){var n,r;return(n=t.Hh(e.a))&&null!=(r=EB(rge((!n.b&&(n.b=new qL((pKe(),ADt),zDt,n)),n.b),Z6e)))?r:t.ne()}function xme(e,t){var n,r;for(HZ(),r=new aW(XN(lfe(e).a.Kc(),new u));fIe(r);)if((n=$H(z5(r),17)).d.i==t||n.c.i==t)return n;return null}function Eme(e,t,n){this.c=e,this.f=new Dv,this.e=new U_,this.j=new EQ,this.n=new EQ,this.b=t,this.g=new zY(t.c,t.d,t.b,t.a),this.a=n}function Sme(e){var t,n,r,i;for(this.a=new cI,this.d=new LA,this.e=0,r=0,i=(n=e).length;r<i;++r)t=n[r],!this.f&&(this.f=t),p2(this,t)}function Cme(e){kBe(),0==e.length?(this.e=0,this.d=1,this.a=Sse(Uw(kRt,1),lqe,25,15,[0])):(this.e=1,this.d=e.length,this.a=e,W1(this))}function Tme(e,t,n){sb.call(this),this.a=N8(Wrt,nJe,212,(Rte(),Sse(Uw(Vrt,1),MYe,232,0,[Urt,Qrt,zrt])).length,0,1),this.b=e,this.d=t,this.c=n}function kme(e){this.d=new Dv,this.e=new m4,this.c=N8(kRt,lqe,25,(bGe(),Sse(Uw(FOt,1),YZe,61,0,[SOt,sOt,aOt,EOt,COt])).length,15,1),this.b=e}function Ome(e){var t,n,r,i;for(lle(i=$H(vSe(e,(lKe(),fht)),11),Iht,e.i.n.b),n=0,r=(t=X1(e.e)).length;n<r;++n)xZ(t[n],i)}function Mme(e){var t,n,r,i;for(lle(t=$H(vSe(e,(lKe(),fht)),11),Iht,e.i.n.b),r=0,i=(n=X1(e.g)).length;r<i;++r)EZ(n[r],t)}function Ime(e){var t,n;return!!IL(e.d.i,(jVe(),Gmt))&&(t=$H(vSe(e.c.i,Gmt),19),n=$H(vSe(e.d.i,Gmt),19),wD(t.a,n.a)>0)}function Dme(e){var t;UO(XIe(e,(sKe(),wCt)))===UO((ode(),mkt))&&(qJ(e)?(t=$H(XIe(qJ(e),wCt),334),Yve(e,wCt,t)):Yve(e,wCt,vkt))}function Nme(e,t,n){var r,i;cSe(e.e,t,n,(bGe(),COt)),cSe(e.i,t,n,aOt),e.a&&(i=$H(vSe(t,(lKe(),fht)),11),r=$H(vSe(n,fht),11),b1(e.g,i,r))}function Rme(e,t,n){var r,i,o;r=t.c.p,o=t.p,e.b[r][o]=new RX(e,t),n&&(e.a[r][o]=new $g(t),(i=$H(vSe(t,(lKe(),nht)),10))&&qOe(e.d,i,t))}function Lme(e,t){var n,r,i;if(GH(Eot,e),t.Fc(e),n=$H(LV(xot,e),21))for(i=n.Kc();i.Ob();)r=$H(i.Pb(),33),-1!=w9(Eot,r,0)||Lme(r,t)}function Bme(e,t,n){var r;(Gnt?(ppe(e),1):Vnt||qnt?(uS(),1):Ynt&&(uS(),0))&&((r=new t$(t)).b=n,iCe(e,r))}function Pme(e,t){var n;n=!e.A.Hc((vge(),POt))||e.q==(Kxe(),Wkt),e.u.Hc((uOe(),eOt))?n?DGe(e,t):iGe(e,t):e.u.Hc(nOt)&&(n?OWe(e,t):qGe(e,t))}function Fme(e,t){var n,r;++e.j,null!=t&&aMe(t,n=rN(r=e.a.Cb,97)?$H(r,97).Jg():null)?lme(e.a,4,n):lme(e.a,4,$H(t,126))}function $me(e,t,n){return new zY(r.Math.min(e.a,t.a)-n/2,r.Math.min(e.b,t.b)-n/2,r.Math.abs(e.a-t.a)+n,r.Math.abs(e.b-t.b)+n)}function jme(e,t){var n,r;return 0!=(n=wD(e.a.c.p,t.a.c.p))?n:0!=(r=wD(e.a.d.i.p,t.a.d.i.p))?r:wD(t.a.d.p,e.a.d.p)}function Hme(e,t,n){var r,i,o,a;return(o=t.j)!=(a=n.j)?o.g-a.g:(r=e.f[t.p],i=e.f[n.p],0==r&&0==i?0:0==r?-1:0==i?1:She(r,i))}function Ume(e,t,n){var r;if(!n[t.d])for(n[t.d]=!0,r=new Gf(bfe(t));r.a<r.c.c.length;)Ume(e,Dfe($H(J0(r),213),t),n)}function Qme(e,t,n){var r;switch(r=n[e.g][t],e.g){case 1:case 3:return new Nk(0,r);case 2:case 4:return new Nk(r,0);default:return null}}function zme(e,t,n){var r;r=$H(sJ(t.f),209);try{r.Ze(e,n),EK(t.f,r)}catch(e){throw rN(e=use(e),102),jv(e)}}function Wme(e,t,n){var r,i,o,a;return r=null,(o=gze(rre(),t))&&(i=null,null!=(a=XQe(o,n))&&(i=e.Ye(o,a)),r=i),r}function Gme(e,t,n,r){var i;return i=new D9(e.e,1,13,t.c||(pKe(),cDt),n.c||(pKe(),cDt),oAe(e,t),!1),r?r.Ei(i):r=i,r}function Vme(e,t,n,r){var i;if(t>=(i=e.length))return i;for(t=t>0?t:0;t<i&&!Zse((d0(t,e.length),e.charCodeAt(t)),n,r);t++);return t}function Kme(e,t){var n,r;for(r=e.c.length,t.length<r&&(t=Hw(new Array(r),t)),n=0;n<r;++n)MV(t,n,e.c[n]);return t.length>r&&MV(t,r,null),t}function Yme(e,t){var n,r;for(r=e.a.length,t.length<r&&(t=Hw(new Array(r),t)),n=0;n<r;++n)MV(t,n,e.a[n]);return t.length>r&&MV(t,r,null),t}function qme(e,t,n){var r,i,o;return(i=$H(LV(e.e,t),387))?(o=gP(i,n),oN(e,i),o):(r=new JH(e,t,n),VK(e.e,t,r),bJ(r),null)}function Xme(e){var t;if(null==e)return null;if(null==(t=IDe(FHe(e,!0))))throw jv(new tw("Invalid hexBinary value: '"+e+"'"));return t}function Jme(e){return kBe(),Vue(e,0)<0?0!=Vue(e,-1)?new mxe(-1,y9(e)):qtt:Vue(e,10)<=0?Jtt[fz(e)]:new mxe(1,e)}function Zme(){return fKe(),Sse(Uw(Bit,1),MYe,159,0,[Sit,Eit,Cit,mit,git,vit,yit,bit,Ait,xit,_it,wit,fit,hit,pit,uit,cit,dit,sit,ait,lit,Tit])}function eve(e){var t;this.d=new Dv,this.j=new U_,this.g=new U_,t=e.g.b,this.f=$H(vSe(mK(t),(jVe(),zgt)),103),this.e=Uy(xB(pve(t,Evt)))}function tve(e){this.b=new Dv,this.e=new Dv,this.d=e,this.a=!yx(OY(new LQ(null,new QG(new v6(e.b))),new ip(new zi))).sd((fS(),Znt))}function nve(){nve=M,lSt=new Ok("PARENTS",0),sSt=new Ok("NODES",1),oSt=new Ok("EDGES",2),cSt=new Ok("PORTS",3),aSt=new Ok("LABELS",4)}function rve(){rve=M,$kt=new Qk("DISTRIBUTED",0),Hkt=new Qk("JUSTIFIED",1),Pkt=new Qk("BEGIN",2),Fkt=new Qk(eJe,3),jkt=new Qk("END",4)}function ive(e){switch(e.yi(null)){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}function ove(e){switch(e.g){case 1:return Fde(),jTt;case 4:return Fde(),PTt;case 2:return Fde(),FTt;case 3:return Fde(),BTt}return Fde(),$Tt}function ave(e,t,n){var r;switch((r=n.q.getFullYear()-sqe+sqe)<0&&(r=-r),t){case 1:e.a+=r;break;case 2:wee(e,r%100,2);break;default:wee(e,r,t)}}function sve(e,t){var n,r;if(IZ(t,e.b),t>=e.b>>1)for(r=e.c,n=e.b;n>t;--n)r=r.b;else for(r=e.a.a,n=0;n<t;++n)r=r.a;return new XF(e,t,r)}function lve(){lve=M,frt=new FC("NUM_OF_EXTERNAL_SIDES_THAN_NUM_OF_EXTENSIONS_LAST",0),hrt=new FC("CORNER_CASES_THAN_SINGLE_SIDE_LAST",1)}function cve(e){var t,n,r;for(vD(n=oke(e),$st),(r=e.d).c=N8(Met,jKe,1,0,5,1),t=new Gf(n);t.a<t.c.c.length;)pse(r,$H(J0(t),456).b)}function uve(e){var t,n;for(!e.o&&(e.o=new A7((CVe(),xMt),tIt,e,0)),t=(n=e.o).c.Kc();t.e!=t.i.gc();)$H(t.nj(),42).dd();return O8(n)}function dve(e){var t;IF($H(vSe(e,(jVe(),evt)),98))&&(cMe((u0(0,(t=e.b).c.length),$H(t.c[0],29))),cMe($H(NQ(t,t.c.length-1),29)))}function hve(e,t){var n,i,o,a;for(n=0,o=new Gf(t.a);o.a<o.c.c.length;)a=(i=$H(J0(o),10)).o.a+i.d.c+i.d.b+e.j,n=r.Math.max(n,a);return n}function fve(e){var t,n,r,i;for(i=0,n=0,r=e.length;n<r;n++)d0(n,e.length),(t=e.charCodeAt(n))>=64&&t<128&&(i=t1(i,AW(1,t-64)));return i}function pve(e,t){var n,r;return r=null,IL(e,(sKe(),CTt))&&(n=$H(vSe(e,CTt),94)).Xe(t)&&(r=n.We(t)),null==r&&mK(e)&&(r=vSe(mK(e),t)),r}function gve(e,t){var n,r,i;(r=(i=t.d.i).k)!=(oCe(),Cst)&&r!=_st&&fIe(n=new aW(XN(ufe(i).a.Kc(),new u)))&&VK(e.k,t,$H(z5(n),17))}function mve(e,t){var n,r,i;return r=tte(e.Tg(),t),(n=t-e.Ah())<0?(i=e.Yg(r))>=0?e.lh(i):HOe(e,r):n<0?HOe(e,r):$H(r,66).Nj().Sj(e,e.yh(),n)}function vve(e){var t;if(rN(e.a,4)){if(null==(t=qge(e.a)))throw jv(new Fy(a5e+e.b+"'. "+n5e+(wB(uIt),uIt.k)+r5e));return t}return e.a}function Ave(e){var t;if(null==e)return null;if(null==(t=zGe(FHe(e,!0))))throw jv(new tw("Invalid base64Binary value: '"+e+"'"));return t}function bve(e){var t;try{return t=e.i.Xb(e.e),e.mj(),e.g=e.e++,t}catch(t){throw rN(t=use(t),73)?(e.mj(),jv(new AA)):jv(t)}}function yve(e){var t;try{return t=e.c.ki(e.e),e.mj(),e.g=e.e++,t}catch(t){throw rN(t=use(t),73)?(e.mj(),jv(new AA)):jv(t)}}function wve(){wve=M,sKe(),wot=_Tt,got=ACt,uot=rCt,mot=WCt,Pwe(),bot=xrt,Aot=wrt,yot=Srt,vot=yrt,Uce(),hot=aot,dot=oot,fot=lot,pot=cot}function _ve(e){switch(yS(),this.c=new Dv,this.d=e,e.g){case 0:case 2:this.a=KK(lst),this.b=Lqe;break;case 3:case 1:this.a=lst,this.b=Bqe}}function xve(e,t,n){var r;if(e.c)Sne(e.c,e.c.i+t),Cne(e.c,e.c.j+n);else for(r=new Gf(e.b);r.a<r.c.c.length;)xve($H(J0(r),157),t,n)}function Eve(e,t){var n,r;if(e.j.length!=t.j.length)return!1;for(n=0,r=e.j.length;n<r;n++)if(!vF(e.j[n],t.j[n]))return!1;return!0}function Sve(e,t,n){var r;t.a.length>0&&(GH(e.b,new VH(t.a,n)),0<(r=t.a.length)?t.a=t.a.substr(0,0):0>r&&(t.a+=nN(N8(TRt,GYe,25,-r,15,1))))}function Cve(e,t){var n,r,i;for(n=e.o,i=$H($H(l6(e.r,t),21),84).Kc();i.Ob();)(r=$H(i.Pb(),111)).e.a=fye(r,n.a),r.e.b=n.b*Uy(xB(r.b.We(Iit)))}function Tve(e,t){var n,r,i,o;return i=e.k,n=Uy(xB(vSe(e,(lKe(),_ht)))),o=t.k,r=Uy(xB(vSe(t,_ht))),o!=(oCe(),xst)?-1:i!=xst?1:n==r?0:n<r?-1:1}function kve(e,t){var n,r;return n=$H($H(LV(e.g,t.a),46).a,65),r=$H($H(LV(e.g,t.b),46).a,65),G8(t.a,t.b)-G8(t.a,PD(n.b))-G8(t.b,PD(r.b))}function Ove(e,t){var n;return n=$H(vSe(e,(jVe(),mmt)),74),ZD(t,mst)?n?Aq(n):(n=new bb,lle(e,mmt,n)):n&&lle(e,mmt,null),n}function Mve(e){var t;return(t=new Cw).a+="n",e.k!=(oCe(),Cst)&&aM(aM((t.a+="(",t),fL(e.k).toLowerCase()),")"),aM((t.a+="_",t),pye(e)),t.a}function Ive(e,t){kEe(t,"Self-Loop post-processing",1),qE(OY(OY(hee(new LQ(null,new h0(e.b,16)),new Lr),new Br),new Pr),new Fr),jCe(t)}function Dve(e,t,n,r){var i;return n>=0?e.hh(t,n,r):(e.eh()&&(r=(i=e.Vg())>=0?e.Qg(r):e.eh().ih(e,-1-i,null,r)),e.Sg(t,n,r))}function Nve(e,t){switch(t){case 7:return!e.e&&(e.e=new lF(BMt,e,7,4)),void sQe(e.e);case 8:return!e.d&&(e.d=new lF(BMt,e,8,5)),void sQe(e.d)}Rpe(e,t)}function Rve(e,t){var n;n=e.Zc(t);try{return n.Pb()}catch(e){throw rN(e=use(e),109)?jv(new Oy("Can't get element "+t)):jv(e)}}function Lve(e,t){this.e=e,t<Wqe?(this.d=1,this.a=Sse(Uw(kRt,1),lqe,25,15,[0|t])):(this.d=2,this.a=Sse(Uw(kRt,1),lqe,25,15,[t%Wqe|0,t/Wqe|0]))}function Bve(e,t){var n,r,i,o;for(Eq(),n=e,o=t,rN(e,21)&&!rN(t,21)&&(n=t,o=e),i=n.Kc();i.Ob();)if(r=i.Pb(),o.Hc(r))return!1;return!0}function Pve(e,t,n){var r,i,o,a;return-1!=(r=e.Xc(t))&&(e.ej()?(o=e.fj(),a=Iye(e,r),i=e.Zi(4,a,null,r,o),n?n.Ei(i):n=i):Iye(e,r)),n}function Fve(e,t,n){var r,i,o,a;return-1!=(r=e.Xc(t))&&(e.ej()?(o=e.fj(),a=hQ(e,r),i=e.Zi(4,a,null,r,o),n?n.Ei(i):n=i):hQ(e,r)),n}function $ve(e,t){var n;switch(n=$H(aY(e.b,t),124).n,t.g){case 1:e.t>=0&&(n.d=e.t);break;case 3:e.t>=0&&(n.a=e.t)}e.C&&(n.b=e.C.b,n.c=e.C.c)}function jve(){jve=M,$it=new PC(vJe,0),Fit=new PC(AJe,1),jit=new PC(bJe,2),Hit=new PC(yJe,3),$it.a=!1,Fit.a=!0,jit.a=!1,Hit.a=!0}function Hve(){Hve=M,Xit=new BC(vJe,0),qit=new BC(AJe,1),Jit=new BC(bJe,2),Zit=new BC(yJe,3),Xit.a=!1,qit.a=!0,Jit.a=!1,Zit.a=!0}function Uve(e){var t;t=e.a;do{(t=$H(z5(new aW(XN(cfe(t).a.Kc(),new u))),17).c.i).k==(oCe(),Sst)&&e.b.Fc(t)}while(t.k==(oCe(),Sst));e.b=eae(e.b)}function Qve(e){var t,n,r;for(r=e.c.a,e.p=(AV(r),new ZF(r)),n=new Gf(r);n.a<n.c.c.length;)(t=$H(J0(n),10)).p=lke(t).a;Eq(),vD(e.p,new Io)}function zve(e){var t,n,r;if(n=0,0==(r=hBe(e)).c.length)return 1;for(t=new Gf(r);t.a<t.c.c.length;)n+=zve($H(J0(t),33));return n}function Wve(e,t){var n,r,i;for(i=0,r=$H($H(l6(e.r,t),21),84).Kc();r.Ob();)i+=(n=$H(r.Pb(),111)).d.b+n.b.rf().a+n.d.c,r.Ob()&&(i+=e.w);return i}function Gve(e,t){var n,r,i;for(i=0,r=$H($H(l6(e.r,t),21),84).Kc();r.Ob();)i+=(n=$H(r.Pb(),111)).d.d+n.b.rf().b+n.d.a,r.Ob()&&(i+=e.w);return i}function Vve(e,t,n,r){if(t.a<r.a)return!0;if(t.a==r.a){if(t.b<r.b)return!0;if(t.b==r.b&&e.b>n.b)return!0}return!1}function Kve(e,t){return WO(e)?!!kKe[t]:e.hm?!!e.hm[t]:zO(e)?!!TKe[t]:!!QO(e)&&!!CKe[t]}function Yve(e,t,n){return null==n?(!e.o&&(e.o=new A7((CVe(),xMt),tIt,e,0)),Gge(e.o,t)):(!e.o&&(e.o=new A7((CVe(),xMt),tIt,e,0)),m_e(e.o,t,n)),e}function qve(e,t,n,r){var i;(i=Wde(t.Xe((sKe(),RCt))?$H(t.We(RCt),21):e.j))!=(fKe(),Tit)&&(n&&!ime(i)||zCe(DDe(e,i,r),t))}function Xve(e,t,n,r){var i,o,a;return o=tte(e.Tg(),t),(i=t-e.Ah())<0?(a=e.Yg(o))>=0?e._g(a,n,!0):rMe(e,o,n):$H(o,66).Nj().Pj(e,e.yh(),i,n,r)}function Jve(e,t,n,r){var i,o;n.mh(t)&&(XS(),lee(t)?Ame(e,$H(n.ah(t),153)):(i=(o=t)?$H(r,49).xh(o):null)&&Pv(n.ah(t),i))}function Zve(e){switch(e.g){case 1:return Rae(),Lit;case 3:return Rae(),Dit;case 2:return Rae(),Rit;case 4:return Rae(),Nit;default:return null}}function eAe(e){switch(typeof e){case DKe:return mAe(e);case IKe:return CJ(e);case MKe:return lR(),e?1231:1237;default:return null==e?0:SR(e)}}function tAe(e,t,n){if(e.e)switch(e.b){case 1:$q(e.c,t,n);break;case 0:jq(e.c,t,n)}else Z3(e.c,t,n);e.a[t.p][n.p]=e.c.i,e.a[n.p][t.p]=e.c.e}function nAe(e){var t,n;if(null==e)return null;for(n=N8(kst,sYe,193,e.length,0,2),t=0;t<n.length;t++)n[t]=$H(U7(e[t],e[t].length),193);return n}function rAe(e){var t;if(Bce(e))return vW(e),e.Lk()&&(t=FOe(e.e,e.b,e.c,e.a,e.j),e.j=t),e.g=e.a,++e.a,++e.c,e.i=0,e.j;throw jv(new AA)}function iAe(e,t){var n,r,i,o;return(o=e.o)<(n=e.p)?o*=o:n*=n,r=o+n,(o=t.o)<(n=t.p)?o*=o:n*=n,r<(i=o+n)?-1:r==i?0:1}function oAe(e,t){var n,r;if((r=Gye(e,t))>=0)return r;if(e.Fk())for(n=0;n<e.i;++n)if(UO(e.Gk($H(e.g[n],56)))===UO(t))return n;return-1}function aAe(e,t,n){var r,i;if(t>=(i=e.gc()))throw jv(new ZP(t,i));if(e.hi()&&(r=e.Xc(n))>=0&&r!=t)throw jv(new Py(i8e));return e.mi(t,n)}function sAe(e,t){if(this.a=$H(AV(e),245),this.b=$H(AV(t),245),e.vd(t)>0||e==(ey(),Pet)||t==(Zb(),Fet))throw jv(new Py("Invalid range: "+$3(e,t)))}function lAe(e){var t,n;for(this.b=new Dv,this.c=e,this.a=!1,n=new Gf(e.a);n.a<n.c.c.length;)t=$H(J0(n),10),this.a=this.a|t.k==(oCe(),Cst)}function cAe(e,t){var n,r,i;for(n=OR(new HA,e),i=new Gf(t);i.a<i.c.c.length;)r=$H(J0(i),121),zRe(iS(rS(oS(nS(new jA,0),0),n),r));return n}function uAe(e,t,n){var r,i,o;for(i=new aW(XN((t?cfe(e):ufe(e)).a.Kc(),new u));fIe(i);)r=$H(z5(i),17),(o=t?r.c.i:r.d.i).k==(oCe(),Est)&&SZ(o,n)}function dAe(){dAe=M,uAt=new PT(KZe,0),dAt=new PT("PORT_POSITION",1),cAt=new PT("NODE_SIZE_WHERE_SPACE_PERMITS",2),lAt=new PT("NODE_SIZE",3)}function hAe(){hAe=M,CSt=new Rk("AUTOMATIC",0),OSt=new Rk(rJe,1),MSt=new Rk(iJe,2),ISt=new Rk("TOP",3),TSt=new Rk(aJe,4),kSt=new Rk(eJe,5)}function fAe(e,t,n,r){var i,o;for(MMe(),i=0,o=0;o<n;o++)i=nfe(rfe(e1(t[o],zqe),e1(r,zqe)),e1(fz(i),zqe)),e[o]=fz(i),i=yW(i,32);return fz(i)}function pAe(e,t,n){var i,o;for(o=0,i=0;i<Xrt;i++)o=r.Math.max(o,mue(e.a[t.g][i],n));return t==(Rte(),Qrt)&&e.b&&(o=r.Math.max(o,e.b.b)),o}function gAe(e,t){var n,r;if(_L(t>0),(t&-t)==t)return CJ(t*jDe(e,31)*4.656612873077393e-10);do{r=(n=jDe(e,31))%t}while(n-r+(t-1)<0);return CJ(r)}function mAe(e){var t,n,r;return n$(),null!=(r=nrt[n=":"+e])?CJ((bK(r),r)):(t=null==(r=trt[n])?qRe(e):CJ((bK(r),r)),Tq(),nrt[n]=t,t)}function vAe(e,t,n){kEe(n,"Compound graph preprocessor",1),e.a=new gJ,DWe(e,t,null),UUe(e,t),ZNe(e),lle(t,(lKe(),jdt),e.a),e.a=null,MG(e.b),jCe(n)}function AAe(e,t,n){switch(n.g){case 1:e.a=t.a/2,e.b=0;break;case 2:e.a=t.a,e.b=t.b/2;break;case 3:e.a=t.a/2,e.b=t.b;break;case 4:e.a=0,e.b=t.b/2}}function bAe(e){var t,n,r;for(r=$H(l6(e.a,(Ixe(),Sct)),15).Kc();r.Ob();)tV(e,n=$H(r.Pb(),101),(t=jye(n))[0],(Cie(),Nct),0),tV(e,n,t[1],Lct,1)}function yAe(e){var t,n,r;for(r=$H(l6(e.a,(Ixe(),Cct)),15).Kc();r.Ob();)tV(e,n=$H(r.Pb(),101),(t=jye(n))[0],(Cie(),Nct),0),tV(e,n,t[1],Lct,1)}function wAe(e){switch(e.g){case 0:return null;case 1:return new Oie;case 2:return new qb;default:throw jv(new Py(r4e+(null!=e.f?e.f:""+e.g)))}}function _Ae(e,t,n){var r,i;for(vse(e,t-e.s,n-e.t),i=new Gf(e.n);i.a<i.c.c.length;)tf(r=$H(J0(i),211),r.e+t-e.s),nf(r,r.f+n-e.t);e.s=t,e.t=n}function xAe(e){var t,n,r,i;for(n=0,r=new Gf(e.a);r.a<r.c.c.length;)$H(J0(r),121).d=n++;return i=null,(t=hCe(e)).c.length>1&&(i=cAe(e,t)),i}function EAe(e){var t;return e.f&&e.f.kh()&&(t=$H(e.f,49),e.f=$H(Zue(e,t),82),e.f!=t&&4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,9,8,t,e.f))),e.f}function SAe(e){var t;return e.i&&e.i.kh()&&(t=$H(e.i,49),e.i=$H(Zue(e,t),82),e.i!=t&&4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,9,7,t,e.i))),e.i}function CAe(e){var t;return e.b&&64&e.b.Db&&(t=e.b,e.b=$H(Zue(e,t),18),e.b!=t&&4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,9,21,t,e.b))),e.b}function TAe(e,t){var n,r,i;null==e.d?(++e.e,++e.f):(r=t.Sh(),cRe(e,e.f+1),i=(r&RKe)%e.d.length,!(n=e.d[i])&&(n=e.d[i]=e.uj()),n.Fc(t),++e.f)}function kAe(e,t,n){var r;return!t.Kj()&&(-2!=t.Zj()?null==(r=t.zj())?null==n:Dde(r,n):t.Hj()==e.e.Tg()&&null==n)}function OAe(){var e;ure(16,TYe),e=qre(16),this.b=N8(Qet,CYe,317,e,0,1),this.c=N8(Qet,CYe,317,e,0,1),this.a=null,this.e=null,this.i=0,this.f=e-1,this.g=0}function MAe(e){IP.call(this),this.k=(oCe(),Cst),this.j=(ure(6,OYe),new q6(6)),this.b=(ure(2,OYe),new q6(2)),this.d=new cb,this.f=new hb,this.a=e}function IAe(e){var t,n;e.c.length<=1||(fTe(e,$H((t=wBe(e,(bGe(),EOt))).a,19).a,$H(t.b,19).a),fTe(e,$H((n=wBe(e,COt)).a,19).a,$H(n.b,19).a))}function DAe(){DAe=M,AAt=new FT("SIMPLE",0),gAt=new FT($0e,1),mAt=new FT("LINEAR_SEGMENTS",2),pAt=new FT("BRANDES_KOEPF",3),vAt=new FT(y3e,4)}function NAe(e,t,n){IF($H(vSe(t,(jVe(),evt)),98))||(G9(e,t,RCe(t,n)),G9(e,t,RCe(t,(bGe(),EOt))),G9(e,t,RCe(t,sOt)),Eq(),vD(t.j,new Pg(e)))}function RAe(e,t,n,r){var i;for(i=$H(l6(r?e.a:e.b,t),21).Kc();i.Ob();)if(PBe(e,n,$H(i.Pb(),33)))return!0;return!1}function LAe(e){var t,n;for(n=new ON(e);n.e!=n.i.gc();)if((t=$H(bve(n),87)).e||0!=(!t.d&&(t.d=new MN(GIt,t,1)),t.d).i)return!0;return!1}function BAe(e){var t,n;for(n=new ON(e);n.e!=n.i.gc();)if((t=$H(bve(n),87)).e||0!=(!t.d&&(t.d=new MN(GIt,t,1)),t.d).i)return!0;return!1}function PAe(e){var t,n;for(t=0,n=new Gf(e.c.a);n.a<n.c.c.length;)t+=F3(new aW(XN(ufe($H(J0(n),10)).a.Kc(),new u)));return t/e.c.a.c.length}function FAe(e){var t,n;for(e.c||QQe(e),n=new bb,J0(t=new Gf(e.a));t.a<t.c.c.length;)RU(n,$H(J0(t),407).a);return SL(0!=n.b),Ote(n,n.c.b),n}function $Ae(){$Ae=M,dPe(),HEt=LEt,$Et=new GI(8),new WI((sKe(),WCt),$Et),new WI(ITt,8),jEt=NEt,PEt=xEt,FEt=EEt,BEt=new WI(uCt,(lR(),!1))}function jAe(e,t,n,r){switch(t){case 7:return!e.e&&(e.e=new lF(BMt,e,7,4)),e.e;case 8:return!e.d&&(e.d=new lF(BMt,e,8,5)),e.d}return Lfe(e,t,n,r)}function HAe(e){var t;return e.a&&e.a.kh()&&(t=$H(e.a,49),e.a=$H(Zue(e,t),138),e.a!=t&&4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,9,5,t,e.a))),e.a}function UAe(e){return e<48||e>102?-1:e<=57?e-48:e<65?-1:e<=70?e-65+10:e<97?-1:e-97+10}function QAe(e,t){if(null==e)throw jv(new jy("null key in entry: null="+t));if(null==t)throw jv(new jy("null value in entry: "+e+"=null"))}function zAe(e,t){for(var n,r;e.Ob();){if(!t.Ob())return!1;if(n=e.Pb(),r=t.Pb(),!(UO(n)===UO(r)||null!=n&&Dde(n,r)))return!1}return!t.Ob()}function WAe(e,t){var n;return n=Sse(Uw(DRt,1),Hqe,25,15,[mue(e.a[0],t),mue(e.a[1],t),mue(e.a[2],t)]),e.d&&(n[0]=r.Math.max(n[0],n[2]),n[2]=n[0]),n}function GAe(e,t){var n;return n=Sse(Uw(DRt,1),Hqe,25,15,[vue(e.a[0],t),vue(e.a[1],t),vue(e.a[2],t)]),e.d&&(n[0]=r.Math.max(n[0],n[2]),n[2]=n[0]),n}function VAe(){VAe=M,Aut=new ET("GREEDY",0),vut=new ET(j0e,1),yut=new ET($0e,2),wut=new ET("MODEL_ORDER",3),but=new ET("GREEDY_MODEL_ORDER",4)}function KAe(e,t){var n,r,i;for(e.b[t.g]=1,r=sve(t.d,0);r.b!=r.d.c;)i=(n=$H(d3(r),188)).c,1==e.b[i.g]?RU(e.a,n):2==e.b[i.g]?e.b[i.g]=1:KAe(e,i)}function YAe(e,t){var n,r,i;for(i=new q6(t.gc()),r=t.Kc();r.Ob();)(n=$H(r.Pb(),286)).c==n.f?lTe(e,n,n.c):nTe(e,n)||(i.c[i.c.length]=n);return i}function qAe(e,t,n){var r,i,o,a;for(a=e.r+t,e.r+=t,e.d+=n,r=n/e.n.c.length,i=0,o=new Gf(e.n);o.a<o.c.c.length;)hDe($H(J0(o),211),a,r,i),++i}function XAe(e){var t,n;for(vy(e.b.a),e.a=N8(drt,jKe,57,e.c.c.a.b.c.length,0,1),t=0,n=new Gf(e.c.c.a.b);n.a<n.c.c.length;)$H(J0(n),57).f=t++}function JAe(e){var t,n;for(vy(e.b.a),e.a=N8(Kat,jKe,81,e.c.a.a.b.c.length,0,1),t=0,n=new Gf(e.c.a.a.b);n.a<n.c.c.length;)$H(J0(n),81).i=t++}function ZAe(e,t,n){kEe(n,"Shrinking tree compaction",1),Hy(_B(vSe(t,(Woe(),Kit))))?(tie(e,t.f),oee(t.f,t.c)):oee(t.f,t.c),jCe(n)}function ebe(e){var t;if(t=due(e),!fIe(e))throw jv(new Oy("position (0) must be less than the number of elements that remained ("+t+")"));return z5(e)}function tbe(e,t,n){try{return mbe(e,t+e.j,n+e.k)}catch(e){throw rN(e=use(e),73)?jv(new Oy(e.g+CJe+t+FKe+n+").")):jv(e)}}function nbe(e,t,n){try{return vbe(e,t+e.j,n+e.k)}catch(e){throw rN(e=use(e),73)?jv(new Oy(e.g+CJe+t+FKe+n+").")):jv(e)}}function rbe(e,t,n){try{return Abe(e,t+e.j,n+e.k)}catch(e){throw rN(e=use(e),73)?jv(new Oy(e.g+CJe+t+FKe+n+").")):jv(e)}}function ibe(e){switch(e.g){case 1:return bGe(),COt;case 4:return bGe(),sOt;case 3:return bGe(),aOt;case 2:return bGe(),EOt;default:return bGe(),SOt}}function obe(e,t,n){t.k==(oCe(),Cst)&&n.k==Sst&&(e.d=wde(t,(bGe(),EOt)),e.b=wde(t,sOt)),n.k==Cst&&t.k==Sst&&(e.d=wde(n,(bGe(),sOt)),e.b=wde(n,EOt))}function abe(e,t){var n,r;for(r=ife(e,t).Kc();r.Ob();)if(null!=vSe(n=$H(r.Pb(),11),(lKe(),wht))||QR(new v6(n.b)))return!0;return!1}function sbe(e,t){return Sne(t,e.e+e.d+(0==e.c.c.length?0:e.b)),Cne(t,e.f),e.a=r.Math.max(e.a,t.f),e.d+=t.g+(0==e.c.c.length?0:e.b),GH(e.c,t),!0}function lbe(e,t,n){var r,i,o,a;for(a=0,r=n/e.a.c.length,o=new Gf(e.a);o.a<o.c.c.length;)_Ae(i=$H(J0(o),187),i.s,i.t+a*r),qAe(i,e.d-i.r+t,r),++a}function cbe(e){var t,n,r;for(n=new Gf(e.b);n.a<n.c.c.length;)for(t=0,r=new Gf($H(J0(n),29).a);r.a<r.c.c.length;)$H(J0(r),10).p=t++}function ube(e,t){var n,r,i,o,a,s;for(i=t.length-1,a=0,s=0,r=0;r<=i;r++)o=t[r],n=gCe(i,r)*ede(1-e,i-r)*ede(e,r),a+=o.a*n,s+=o.b*n;return new Nk(a,s)}function dbe(e,t){var n,r,i,o,a;for(n=t.gc(),e.qi(e.i+n),o=t.Kc(),a=e.i,e.i+=n,r=a;r<e.i;++r)i=o.Pb(),yN(e,r,e.oi(r,i)),e.bi(r,i),e.ci();return 0!=n}function hbe(e,t,n){var r,i,o;return e.ej()?(r=e.Vi(),o=e.fj(),++e.j,e.Hi(r,e.oi(r,t)),i=e.Zi(3,null,t,r,o),n?n.Ei(i):n=i):XB(e,e.Vi(),t),n}function fbe(e,t,n){var r,i,o;return(64&(o=rN(i=(r=$H(Gte(i4(e.a),t),87)).c,88)?$H(i,26):(pKe(),hDt)).Db?Zue(e.b,o):o)==n?uje(r):rne(r,n),o}function pbe(e,t,n,r,i,o,a,s){var l,c;r&&((l=r.a[0])&&pbe(e,t,n,l,i,o,a),Tye(e,n,r.d,i,o,a)&&t.Fc(r),(c=r.a[1])&&pbe(e,t,n,c,i,o,a))}function gbe(e,t){var n;return e.a||(n=N8(DRt,Hqe,25,0,15,1),px(e.b.a,new dp(n)),n.sort(tne(E.prototype.te,E,[])),e.a=new PF(n,e.d)),B6(e.a,t)}function mbe(e,t,r){try{return KO(Zre(e,t,r),1)}catch(n){throw rN(n=use(n),320)?jv(new Oy(xJe+e.o+"*"+e.p+EJe+t+FKe+r+SJe)):jv(n)}}function vbe(e,t,r){try{return KO(Zre(e,t,r),0)}catch(n){throw rN(n=use(n),320)?jv(new Oy(xJe+e.o+"*"+e.p+EJe+t+FKe+r+SJe)):jv(n)}}function Abe(e,t,r){try{return KO(Zre(e,t,r),2)}catch(n){throw rN(n=use(n),320)?jv(new Oy(xJe+e.o+"*"+e.p+EJe+t+FKe+r+SJe)):jv(n)}}function bbe(e,t){if(-1==e.g)throw jv(new fA);e.mj();try{e.d._c(e.g,t),e.f=e.d.j}catch(e){throw rN(e=use(e),73)?jv(new mA):jv(e)}}function ybe(e,t,n){kEe(n,"Linear segments node placement",1),e.b=$H(vSe(t,(lKe(),Oht)),304),VVe(e,t),mUe(e,t),KUe(e,t),lVe(e),e.a=null,e.b=null,jCe(n)}function wbe(e,t){var n,r,i,o;for(o=e.gc(),t.length<o&&(t=Hw(new Array(o),t)),i=t,r=e.Kc(),n=0;n<o;++n)MV(i,n,r.Pb());return t.length>o&&MV(t,o,null),t}function _be(e,t){var n,r;if(r=e.gc(),null==t){for(n=0;n<r;n++)if(null==e.Xb(n))return n}else for(n=0;n<r;n++)if(Dde(t,e.Xb(n)))return n;return-1}function xbe(e,t){var n,r,i;return n=t.cd(),i=t.dd(),r=e.xc(n),!(!(UO(i)===UO(r)||null!=i&&Dde(i,r))||null==r&&!e._b(n))}function Ebe(e,t){var n,r,i;return t<=22?(n=e.l&(1<<t)-1,r=i=0):t<=44?(n=e.l,r=e.m&(1<<t-22)-1,i=0):(n=e.l,r=e.m,i=e.h&(1<<t-44)-1),xD(n,r,i)}function Sbe(e,t){switch(t.g){case 1:return e.f.n.d+e.t;case 3:return e.f.n.a+e.t;case 2:return e.f.n.c+e.s;case 4:return e.f.n.b+e.s;default:return 0}}function Cbe(e,t){var n,r;switch(r=t.c,n=t.a,e.b.g){case 0:n.d=e.e-r.a-r.d;break;case 1:n.d+=e.e;break;case 2:n.c=e.e-r.a-r.d;break;case 3:n.c=e.e+r.d}}function Tbe(e,t,n,r){var i,o;this.a=t,this.c=r,Oh(this,new Nk(-(i=e.a).c,-i.d)),zP(this.b,n),o=r/2,t.a?$L(this.b,0,o):$L(this.b,o,0),GH(e.c,this)}function kbe(){kbe=M,H_t=new vk(KZe,0),$_t=new vk(H0e,1),j_t=new vk("EDGE_LENGTH_BY_POSITION",2),F_t=new vk("CROSSING_MINIMIZATION_BY_POSITION",3)}function Obe(e,t){var n,r;if(n=$H(sne(e.g,t),33))return n;if(r=$H(sne(e.j,t),118))return r;throw jv(new ew("Referenced shape does not exist: "+t))}function Mbe(e,t){if(e.c==t)return e.d;if(e.d==t)return e.c;throw jv(new Py("Node 'one' must be either source or target of edge 'edge'."))}function Ibe(e,t){if(e.c.i==t)return e.d.i;if(e.d.i==t)return e.c.i;throw jv(new Py("Node "+t+" is neither source nor target of edge "+e))}function Dbe(e,t){var n;switch(t.g){case 2:case 4:n=e.a,e.c.d.n.b<n.d.n.b&&(n=e.c),dG(e,t,(kse(),bct),n);break;case 1:case 3:dG(e,t,(kse(),mct),null)}}function Nbe(e,t,n,r,i,o){var a,s,l,c,u;for(a=t_e(t,n,o),s=n==(bGe(),sOt)||n==COt?-1:1,c=e[n.g],u=0;u<c.length;u++)(l=c[u])>0&&(l+=i),c[u]=a,a+=s*(l+r)}function Rbe(e){var t,n,r;for(r=e.f,e.n=N8(DRt,Hqe,25,r,15,1),e.d=N8(DRt,Hqe,25,r,15,1),t=0;t<r;t++)n=$H(NQ(e.c.b,t),29),e.n[t]=hve(e,n),e.d[t]=VNe(e,n)}function Lbe(e,t){var n,r,i;for(i=0,r=2;r<t;r<<=1)e.Db&r&&++i;if(0==i){for(n=t<<=1;n<=128;n<<=1)if(e.Db&n)return 0;return-1}return i}function Bbe(e,t){var n,r,i,o,a;for(a=iLe(e.e.Tg(),t),o=null,n=$H(e.g,119),i=0;i<e.i;++i)r=n[i],a.rl(r.ak())&&(!o&&(o=new ml),c7(o,r));o&&iVe(e,o)}function Pbe(e){var t,n;if(!e)return null;if(e.dc())return"";for(n=new Ew,t=e.Kc();t.Ob();)rM(n,EB(t.Pb())),n.a+=" ";return BM(n,n.a.length-1)}function Fbe(e,t,n){var r,i,o,a;for(rle(e),null==e.k&&(e.k=N8(Xet,sYe,78,0,0,1)),i=0,o=(r=e.k).length;i<o;++i)Fbe(r[i]);(a=e.f)&&Fbe(a)}function $be(e,t){var n,r=new Array(t);switch(e){case 14:case 15:n=0;break;case 16:n=!1;break;default:return r}for(var i=0;i<t;++i)r[i]=n;return r}function jbe(e){var t;for(t=new Gf(e.a.b);t.a<t.c.c.length;)$H(J0(t),57).c.$b();kte(fI(e.d)?e.a.c:e.a.d,new xp(e)),e.c.Me(e),PLe(e)}function Hbe(e){var t,n,r;for(n=new Gf(e.e.c);n.a<n.c.c.length;){for(r=new Gf((t=$H(J0(n),282)).b);r.a<r.c.c.length;)PHe($H(J0(r),447));$ke(t)}}function Ube(e){var t,n,i,o,a;for(i=0,a=0,o=0,n=new Gf(e.a);n.a<n.c.c.length;)t=$H(J0(n),187),a=r.Math.max(a,t.r),i+=t.d+(o>0?e.c:0),++o;e.b=i,e.d=a}function Qbe(e,t){var n,i,o,a,s;for(i=0,o=0,n=0,s=new Gf(t);s.a<s.c.c.length;)a=$H(J0(s),200),i=r.Math.max(i,a.e),o+=a.b+(n>0?e.g:0),++n;e.c=o,e.d=i}function zbe(e,t){var n;return n=Sse(Uw(DRt,1),Hqe,25,15,[pAe(e,(Rte(),Urt),t),pAe(e,Qrt,t),pAe(e,zrt,t)]),e.f&&(n[0]=r.Math.max(n[0],n[2]),n[2]=n[0]),n}function Wbe(e,t,n){try{FPe(e,t+e.j,n+e.k,!1,!0)}catch(e){throw rN(e=use(e),73)?jv(new Oy(e.g+CJe+t+FKe+n+").")):jv(e)}}function Gbe(e,t,n){try{FPe(e,t+e.j,n+e.k,!0,!1)}catch(e){throw rN(e=use(e),73)?jv(new Oy(e.g+CJe+t+FKe+n+").")):jv(e)}}function Vbe(e){var t;IL(e,(jVe(),Mmt))&&((t=$H(vSe(e,Mmt),21)).Hc((JIe(),Tkt))?(t.Mc(Tkt),t.Fc(Okt)):t.Hc(Okt)&&(t.Mc(Okt),t.Fc(Tkt)))}function Kbe(e){var t;IL(e,(jVe(),Mmt))&&((t=$H(vSe(e,Mmt),21)).Hc((JIe(),Rkt))?(t.Mc(Rkt),t.Fc(Dkt)):t.Hc(Dkt)&&(t.Mc(Dkt),t.Fc(Rkt)))}function Ybe(e,t,n){kEe(n,"Self-Loop ordering",1),qE(MY(OY(OY(hee(new LQ(null,new h0(t.b,16)),new Or),new Mr),new Ir),new Dr),new dg(e)),jCe(n)}function qbe(e,t,n,r){var i,o;for(i=t;i<e.c.length;i++){if(u0(i,e.c.length),o=$H(e.c[i],11),!n.Mb(o))return i;r.c[r.c.length]=o}return e.c.length}function Xbe(e,t,n,r){var i,o,a;return null==e.a&&fCe(e,t),a=t.b.j.c.length,o=n.d.p,(i=r.d.p-1)<0&&(i=a-1),o<=i?e.a[i]-e.a[o]:e.a[a-1]-e.a[o]+e.a[i]}function Jbe(e){var t,n;if(!e.b)for(e.b=C2($H(e.f,33).Ag().i),n=new ON($H(e.f,33).Ag());n.e!=n.i.gc();)t=$H(bve(n),137),GH(e.b,new Ly(t));return e.b}function Zbe(e){var t,n;if(!e.e)for(e.e=C2(AY($H(e.f,33)).i),n=new ON(AY($H(e.f,33)));n.e!=n.i.gc();)t=$H(bve(n),118),GH(e.e,new av(t));return e.e}function eye(e){var t,n;if(!e.a)for(e.a=C2(Yq($H(e.f,33)).i),n=new ON(Yq($H(e.f,33)));n.e!=n.i.gc();)t=$H(bve(n),33),GH(e.a,new qR(e,t));return e.a}function tye(e){var t;if(!e.C&&(null!=e.D||null!=e.B))if(t=dWe(e))e.yk(t);else try{e.yk(null)}catch(e){if(!rN(e=use(e),60))throw jv(e)}return e.C}function nye(e){switch(e.q.g){case 5:b_e(e,(bGe(),sOt)),b_e(e,EOt);break;case 4:rze(e,(bGe(),sOt)),rze(e,EOt);break;default:FTe(e,(bGe(),sOt)),FTe(e,EOt)}}function rye(e){switch(e.q.g){case 5:y_e(e,(bGe(),aOt)),y_e(e,COt);break;case 4:ize(e,(bGe(),aOt)),ize(e,COt);break;default:$Te(e,(bGe(),aOt)),$Te(e,COt)}}function iye(e,t){var n,i,o;for(o=new U_,i=e.Kc();i.Ob();)XPe(n=$H(i.Pb(),37),o.a,0),o.a+=n.f.a+t,o.b=r.Math.max(o.b,n.f.b);return o.b>0&&(o.b+=t),o}function oye(e,t){var n,i,o;for(o=new U_,i=e.Kc();i.Ob();)XPe(n=$H(i.Pb(),37),0,o.b),o.b+=n.f.b+t,o.a=r.Math.max(o.a,n.f.a);return o.a>0&&(o.a+=t),o}function aye(e){var t,n,i;for(i=RKe,n=new Gf(e.a);n.a<n.c.c.length;)IL(t=$H(J0(n),10),(lKe(),hht))&&(i=r.Math.min(i,$H(vSe(t,hht),19).a));return i}function sye(e,t){var n,r;if(0==t.length)return 0;for(n=XV(e.a,t[0],(bGe(),COt)),n+=XV(e.a,t[t.length-1],aOt),r=0;r<t.length;r++)n+=HSe(e,r,t);return n}function lye(){pLe(),this.c=new Dv,this.i=new Dv,this.e=new cI,this.f=new cI,this.g=new cI,this.j=new Dv,this.a=new Dv,this.b=new Nv,this.k=new Nv}function cye(e,t){var n;return e.Db>>16==6?e.Cb.ih(e,5,HMt,t):(n=CAe($H(tte($H(Aae(e,16),26)||e.zh(),e.Db>>16),18)),e.Cb.ih(e,n.n,n.f,t))}function uye(e){SX();var t=e.e;if(t&&t.stack){var n=t.stack,r=t+"\n";return n.substring(0,r.length)==r&&(n=n.substring(r.length)),n.split("\n")}return[]}function dye(e){var t;return xre(),(t=Ott)[e>>>28]|t[e>>24&15]<<4|t[e>>20&15]<<8|t[e>>16&15]<<12|t[e>>12&15]<<16|t[e>>8&15]<<20|t[e>>4&15]<<24|t[15&e]<<28}function hye(e){var t,n,i;e.b==e.c&&(i=e.a.length,n=ble(r.Math.max(8,i))<<1,0!=e.b?(oie(e,t=EP(e.a,n),i),e.a=t,e.b=0):SA(e.a,n),e.c=i)}function fye(e,t){var n;return(n=e.b).Xe((sKe(),iTt))?n.Hf()==(bGe(),COt)?-n.rf().a-Uy(xB(n.We(iTt))):t+Uy(xB(n.We(iTt))):n.Hf()==(bGe(),COt)?-n.rf().a:t}function pye(e){var t;return 0!=e.b.c.length&&$H(NQ(e.b,0),70).a?$H(NQ(e.b,0),70).a:null!=(t=eq(e))?t:""+(e.c?w9(e.c.a,e,0):-1)}function gye(e){var t;return 0!=e.f.c.length&&$H(NQ(e.f,0),70).a?$H(NQ(e.f,0),70).a:null!=(t=eq(e))?t:""+(e.i?w9(e.i.j,e,0):-1)}function mye(e,t){var n,r;if(t<0||t>=e.gc())return null;for(n=t;n<e.gc();++n)if(r=$H(e.Xb(n),128),n==e.gc()-1||!r.o)return new nO(the(n),r);return null}function vye(e,t,n){var r,i,o,a;for(o=e.c,r=n?e:t,i=(n?t:e).p+1;i<r.p;++i)if((a=$H(NQ(o.a,i),10)).k!=(oCe(),_st)&&!Iwe(a))return!1;return!0}function Aye(e){var t,n,i,o,a;for(a=0,o=Bqe,i=0,n=new Gf(e.a);n.a<n.c.c.length;)a+=(t=$H(J0(n),187)).r+(i>0?e.c:0),o=r.Math.max(o,t.d),++i;e.e=a,e.b=o}function bye(e){var t,n;if(!e.b)for(e.b=C2($H(e.f,118).Ag().i),n=new ON($H(e.f,118).Ag());n.e!=n.i.gc();)t=$H(bve(n),137),GH(e.b,new Ly(t));return e.b}function yye(e,t){var n,r,i;if(t.dc())return fB(),fB(),pIt;for(n=new iP(e,t.gc()),i=new ON(e);i.e!=i.i.gc();)r=bve(i),t.Hc(r)&&c7(n,r);return n}function wye(e,t,n,r){return 0==t?r?(!e.o&&(e.o=new A7((CVe(),xMt),tIt,e,0)),e.o):(!e.o&&(e.o=new A7((CVe(),xMt),tIt,e,0)),O8(e.o)):Xve(e,t,n,r)}function _ye(e){var t,n;if(e.rb)for(t=0,n=e.rb.i;t<n;++t)mL(Gte(e.rb,t));if(e.vb)for(t=0,n=e.vb.i;t<n;++t)mL(Gte(e.vb,t));iW((TTe(),qDt),e),e.Bb|=1}function xye(e,t,n,r,i,o,a,s,l,c,u,d,h,f){return dke(e,t,r,null,i,o,a,s,l,c,h,!0,f),Qhe(e,u),rN(e.Cb,88)&&Oke(S5($H(e.Cb,88)),2),n&&nie(e,n),zhe(e,d),e}function Eye(e){var n;if(null==e)return null;n=0;try{n=u$e(e,PYe,RKe)&KYe}catch(t){if(!rN(t=use(t),127))throw jv(t);n=V9(e)[0]}return cse(n)}function Sye(e){var n;if(null==e)return null;n=0;try{n=u$e(e,PYe,RKe)&KYe}catch(t){if(!rN(t=use(t),127))throw jv(t);n=V9(e)[0]}return cse(n)}function Cye(e,t){var n,r,i;return!((i=e.h-t.h)<0||(n=e.l-t.l,(i+=(r=e.m-t.m+(n>>22))>>22)<0||(e.l=n&Eqe,e.m=r&Eqe,e.h=i&Sqe,0)))}function Tye(e,t,n,r,i,o,a){var s,l;return!(t.Ae()&&(l=e.a.ue(n,r),l<0||0==l)||t.Be()&&(s=e.a.ue(n,o),s>0||0==s))}function kye(e,t){if(Qce(),0!=e.j.g-t.j.g)return 0;switch(e.j.g){case 2:return yfe(t,dct)-yfe(e,dct);case 4:return yfe(e,uct)-yfe(t,uct)}return 0}function Oye(e){switch(e.g){case 0:return Nut;case 1:return Rut;case 2:return Lut;case 3:return But;case 4:return Put;case 5:return Fut;default:return null}}function Mye(e,t,n){var r,i;return Tue(i=new Ib,t),Die(i,n),c7((!e.c&&(e.c=new eG(KIt,e,12,10)),e.c),i),Ine(r=i,0),Dne(r,1),Jde(r,!0),Yde(r,!0),r}function Iye(e,t){var n,r;if(t>=e.i)throw jv(new IM(t,e.i));return++e.j,n=e.g[t],(r=e.i-t-1)>0&&iUe(e.g,t+1,e.g,t,r),MV(e.g,--e.i,null),e.fi(t,n),e.ci(),n}function Dye(e,t){var n;return e.Db>>16==17?e.Cb.ih(e,21,jIt,t):(n=CAe($H(tte($H(Aae(e,16),26)||e.zh(),e.Db>>16),18)),e.Cb.ih(e,n.n,n.f,t))}function Nye(e){var t,n,r;for(Eq(),vD(e.c,e.a),r=new Gf(e.c);r.a<r.c.c.length;)for(n=J0(r),t=new Gf(e.b);t.a<t.c.c.length;)$H(J0(t),679).Ke(n)}function Rye(e){var t,n,r;for(Eq(),vD(e.c,e.a),r=new Gf(e.c);r.a<r.c.c.length;)for(n=J0(r),t=new Gf(e.b);t.a<t.c.c.length;)$H(J0(t),369).Ke(n)}function Lye(e){var t,n,r,i,o;for(i=RKe,o=null,r=new Gf(e.d);r.a<r.c.c.length;)(n=$H(J0(r),213)).d.j^n.e.j&&(t=n.e.e-n.d.e-n.a)<i&&(i=t,o=n);return o}function Bye(){Bye=M,fat=new MM(DZe,(lR(),!1)),cat=new MM(NZe,100),H9(),uat=new MM(RZe,dat=kat),hat=new MM(LZe,uZe),pat=new MM(BZe,the(RKe))}function Pye(e,t,n){var r,i,o,a,s,l;for(l=0,i=0,o=(r=e.a[t]).length;i<o;++i)for(s=Ide(r[i],n).Kc();s.Ob();)a=$H(s.Pb(),11),VK(e.f,a,the(l++))}function Fye(e,t,n){var r,i;if(n)for(i=((r=new lW(n.a.length)).b-r.a)*r.c<0?(eC(),_Rt):new WN(r);i.Ob();)qOe(e,t,bOe(fee(n,$H(i.Pb(),19).a)))}function $ye(e,t,n){var r,i;if(n)for(i=((r=new lW(n.a.length)).b-r.a)*r.c<0?(eC(),_Rt):new WN(r);i.Ob();)qOe(e,t,bOe(fee(n,$H(i.Pb(),19).a)))}function jye(e){var t;return PSe(),Q7(t=$H(wbe(pW(e.k),N8(FOt,YZe,61,2,0,1)),122),0,t.length,null),t[0]==(bGe(),sOt)&&t[1]==COt&&(MV(t,0,COt),MV(t,1,sOt)),t}function Hye(e,t,n){var r,i,o;return o=sBe(e,i=WRe(e,t,n)),B7(e.b),b1(e,t,n),Eq(),vD(i,new Vg(e)),r=sBe(e,i),B7(e.b),b1(e,n,t),new nO(the(o),the(r))}function Uye(){Uye=M,zbt=fQ(new $2,(ASe(),$at),(uKe(),flt)),Wbt=new tP("linearSegments.inputPrio",the(0)),Gbt=new tP("linearSegments.outputPrio",the(0))}function Qye(){Qye=M,Lyt=new ck("P1_TREEIFICATION",0),Byt=new ck("P2_NODE_ORDERING",1),Pyt=new ck("P3_NODE_PLACEMENT",2),Fyt=new ck("P4_EDGE_ROUTING",3)}function zye(){zye=M,sKe(),N_t=pTt,B_t=ITt,C_t=BCt,T_t=$Ct,k_t=HCt,S_t=RCt,O_t=zCt,D_t=cTt,BIe(),x_t=h_t,E_t=f_t,M_t=g_t,I_t=v_t,R_t=A_t,L_t=b_t,P_t=w_t}function Wye(){Wye=M,xkt=new Hk("UNKNOWN",0),ykt=new Hk("ABOVE",1),wkt=new Hk("BELOW",2),_kt=new Hk("INLINE",3),new tP("org.eclipse.elk.labelSide",xkt)}function Gye(e,t){var n;if(e.ni()&&null!=t){for(n=0;n<e.i;++n)if(Dde(t,e.g[n]))return n}else for(n=0;n<e.i;++n)if(UO(e.g[n])===UO(t))return n;return-1}function Vye(e,t,n){var r,i;return t.c==(ire(),HAt)&&n.c==jAt?-1:t.c==jAt&&n.c==HAt?1:(r=fue(t.a,e.a),i=fue(n.a,e.a),t.c==HAt?i-r:r-i)}function Kye(e,t,n){if(n&&(t<0||t>n.a.c.length))throw jv(new Py("index must be >= 0 and <= layer node count"));e.c&&A9(e.c.a,e),e.c=n,n&&bz(n.a,t,e)}function Yye(e,t){var n,r,i;for(r=new aW(XN(lfe(e).a.Kc(),new u));fIe(r);)return n=$H(z5(r),17),new jd(AV((i=$H(t.Kb(n),10)).n.b+i.o.b/2));return ty(),ty(),Oet}function qye(e,t){this.c=new Nv,this.a=e,this.b=t,this.d=$H(vSe(e,(lKe(),Oht)),304),UO(vSe(e,(jVe(),Imt)))===UO((p9(),Hut))?this.e=new pb:this.e=new fb}function Xye(e,t){var n,i,o;for(o=0,i=new Gf(e);i.a<i.c.c.length;)n=$H(J0(i),33),o+=r.Math.pow(n.g*n.f-t,2);return r.Math.sqrt(o/(e.c.length-1))}function Jye(e,t){var n,r;return r=null,e.Xe((sKe(),CTt))&&(n=$H(e.We(CTt),94)).Xe(t)&&(r=n.We(t)),null==r&&e.yf()&&(r=e.yf().We(t)),null==r&&(r=vve(t)),r}function Zye(e,t){var n,r;n=e.Zc(t);try{return r=n.Pb(),n.Qb(),r}catch(e){throw rN(e=use(e),109)?jv(new Oy("Can't remove element "+t)):jv(e)}}function ewe(e,t){var n,r,i;if(0==(n=RHe(e,t,i=new mle((r=new OE).q.getFullYear()-sqe,r.q.getMonth(),r.q.getDate())))||n<t.length)throw jv(new Py(t));return i}function twe(e,t){var n,r,i;for(bK(t),_L(t!=e),i=e.b.c.length,r=t.Kc();r.Ob();)n=r.Pb(),GH(e.b,bK(n));return i!=e.b.c.length&&(wce(e,0),!0)}function nwe(){nwe=M,sKe(),bat=CCt,new WI(fCt,(lR(),!0)),_at=BCt,xat=$Ct,Eat=HCt,wat=RCt,Sat=zCt,Cat=cTt,Bye(),Aat=fat,mat=uat,vat=hat,yat=pat,gat=cat}function rwe(e,t){if(t==e.c)return e.d;if(t==e.d)return e.c;throw jv(new Py("'port' must be either the source port or target port of the edge."))}function iwe(e,t,n){var r,i;switch(i=e.o,r=e.d,t.g){case 1:return-r.d-n;case 3:return i.b+r.a+n;case 2:return i.a+r.c+n;case 4:return-r.b-n;default:return 0}}function owe(e,t,n,r){var i,o,a;for(SZ(t,$H(r.Xb(0),29)),a=r.bd(1,r.gc()),o=$H(n.Kb(t),20).Kc();o.Ob();)owe(e,(i=$H(o.Pb(),17)).c.i==t?i.d.i:i.c.i,n,a)}function awe(e){var t;return t=new Nv,IL(e,(lKe(),Rht))?$H(vSe(e,Rht),83):(qE(OY(new LQ(null,new h0(e.j,16)),new ti),new pg(t)),lle(e,Rht,t),t)}function swe(e,t){var n;return e.Db>>16==6?e.Cb.ih(e,6,BMt,t):(n=CAe($H(tte($H(Aae(e,16),26)||(CVe(),AMt),e.Db>>16),18)),e.Cb.ih(e,n.n,n.f,t))}function lwe(e,t){var n;return e.Db>>16==7?e.Cb.ih(e,1,NMt,t):(n=CAe($H(tte($H(Aae(e,16),26)||(CVe(),yMt),e.Db>>16),18)),e.Cb.ih(e,n.n,n.f,t))}function cwe(e,t){var n;return e.Db>>16==9?e.Cb.ih(e,9,QMt,t):(n=CAe($H(tte($H(Aae(e,16),26)||(CVe(),_Mt),e.Db>>16),18)),e.Cb.ih(e,n.n,n.f,t))}function uwe(e,t){var n;return e.Db>>16==5?e.Cb.ih(e,9,zIt,t):(n=CAe($H(tte($H(Aae(e,16),26)||(pKe(),aDt),e.Db>>16),18)),e.Cb.ih(e,n.n,n.f,t))}function dwe(e,t){var n;return e.Db>>16==3?e.Cb.ih(e,0,FMt,t):(n=CAe($H(tte($H(Aae(e,16),26)||(pKe(),ZIt),e.Db>>16),18)),e.Cb.ih(e,n.n,n.f,t))}function hwe(e,t){var n;return e.Db>>16==7?e.Cb.ih(e,6,HMt,t):(n=CAe($H(tte($H(Aae(e,16),26)||(pKe(),gDt),e.Db>>16),18)),e.Cb.ih(e,n.n,n.f,t))}function fwe(){this.a=new fl,this.g=new OAe,this.j=new OAe,this.b=new Nv,this.d=new OAe,this.i=new OAe,this.k=new Nv,this.c=new Nv,this.e=new Nv,this.f=new Nv}function pwe(e,t,n){var r,i,o;for(n<0&&(n=0),o=e.i,i=n;i<o;i++)if(r=Gte(e,i),null==t){if(null==r)return i}else if(UO(t)===UO(r)||Dde(t,r))return i;return-1}function gwe(e,t){var n,r;return(n=t.Hh(e.a))?(r=EB(rge((!n.b&&(n.b=new qL((pKe(),ADt),zDt,n)),n.b),y9e)),vF(w9e,r)?iW(e,zte(t.Hj())):r):null}function mwe(e,t){var n,r;if(t){if(t==e)return!0;for(n=0,r=$H(t,49).eh();r&&r!=t;r=r.eh()){if(++n>Uqe)return mwe(e,r);if(r==e)return!0}}return!1}function vwe(e){switch(RR(),e.q.g){case 5:mOe(e,(bGe(),sOt)),mOe(e,EOt);break;case 4:QDe(e,(bGe(),sOt)),QDe(e,EOt);break;default:mGe(e,(bGe(),sOt)),mGe(e,EOt)}}function Awe(e){switch(RR(),e.q.g){case 5:EMe(e,(bGe(),aOt)),EMe(e,COt);break;case 4:Cve(e,(bGe(),aOt)),Cve(e,COt);break;default:vGe(e,(bGe(),aOt)),vGe(e,COt)}}function bwe(e){var t,n;(t=$H(vSe(e,(cPe(),Jot)),19))?(n=t.a,lle(e,(xie(),lat),0==n?new sfe:new C4(n))):lle(e,(xie(),lat),new C4(1))}function ywe(e,t){var n;switch(n=e.i,t.g){case 1:return-(e.n.b+e.o.b);case 2:return e.n.a-n.o.a;case 3:return e.n.b-n.o.b;case 4:return-(e.n.a+e.o.a)}return 0}function wwe(e,t){switch(e.g){case 0:return t==(_fe(),Fht)?nct:rct;case 1:return t==(_fe(),Fht)?nct:tct;case 2:return t==(_fe(),Fht)?tct:rct;default:return tct}}function _we(e,t){var n,i,o;for(A9(e.a,t),e.e-=t.r+(0==e.a.c.length?0:e.c),o=J3e,i=new Gf(e.a);i.a<i.c.c.length;)n=$H(J0(i),187),o=r.Math.max(o,n.d);e.b=o}function xwe(e,t){var n;return e.Db>>16==3?e.Cb.ih(e,12,QMt,t):(n=CAe($H(tte($H(Aae(e,16),26)||(CVe(),vMt),e.Db>>16),18)),e.Cb.ih(e,n.n,n.f,t))}function Ewe(e,t){var n;return e.Db>>16==11?e.Cb.ih(e,10,QMt,t):(n=CAe($H(tte($H(Aae(e,16),26)||(CVe(),wMt),e.Db>>16),18)),e.Cb.ih(e,n.n,n.f,t))}function Swe(e,t){var n;return e.Db>>16==10?e.Cb.ih(e,11,jIt,t):(n=CAe($H(tte($H(Aae(e,16),26)||(pKe(),fDt),e.Db>>16),18)),e.Cb.ih(e,n.n,n.f,t))}function Cwe(e,t){var n;return e.Db>>16==10?e.Cb.ih(e,12,VIt,t):(n=CAe($H(tte($H(Aae(e,16),26)||(pKe(),mDt),e.Db>>16),18)),e.Cb.ih(e,n.n,n.f,t))}function Twe(e){var t;return 1&e.Bb||!e.r||!e.r.kh()||(t=$H(e.r,49),e.r=$H(Zue(e,t),138),e.r!=t&&4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,9,8,t,e.r))),e.r}function kwe(e,t,n){var i;return i=Sse(Uw(DRt,1),Hqe,25,15,[tSe(e,(Rte(),Urt),t,n),tSe(e,Qrt,t,n),tSe(e,zrt,t,n)]),e.f&&(i[0]=r.Math.max(i[0],i[2]),i[2]=i[0]),i}function Owe(e,t){var n,r,i;if(0!=(i=YAe(e,t)).c.length)for(vD(i,new tr),n=i.c.length,r=0;r<n;r++)lTe(e,(u0(r,i.c.length),$H(i.c[r],286)),_Be(e,i,r))}function Mwe(e){var t,n,r;for(r=$H(l6(e.a,(Ixe(),_ct)),15).Kc();r.Ob();)for(t=pW((n=$H(r.Pb(),101)).k).Kc();t.Ob();)tV(e,n,$H(t.Pb(),61),(Cie(),Rct),1)}function Iwe(e){var t,n;if(e.k==(oCe(),Sst))for(n=new aW(XN(lfe(e).a.Kc(),new u));fIe(n);)if(!d5(t=$H(z5(n),17))&&e.c==O_e(t,e).c)return!0;return!1}function Dwe(e){var t,n;if(e.k==(oCe(),Sst))for(n=new aW(XN(lfe(e).a.Kc(),new u));fIe(n);)if(!d5(t=$H(z5(n),17))&&t.c.i.c==t.d.i.c)return!0;return!1}function Nwe(e,t){var n,r;for(kEe(t,"Dull edge routing",1),r=sve(e.b,0);r.b!=r.d.c;)for(n=sve($H(d3(r),86).d,0);n.b!=n.d.c;)Aq($H(d3(n),188).a)}function Rwe(e,t){var n,r,i;if(t)for(i=((n=new lW(t.a.length)).b-n.a)*n.c<0?(eC(),_Rt):new WN(n);i.Ob();)(r=N2(t,$H(i.Pb(),19).a))&&kDe(e,r)}function Lwe(){var e;for(ZS(),JVe((KV(),JIt)),PVe(JIt),_ye(JIt),pKe(),MDt=cDt,e=new Gf(GDt);e.a<e.c.c.length;)iWe($H(J0(e),241),cDt,null);return!0}function Bwe(e,t){var n,r,i,o,a,s;return(a=e.h>>19)!=(s=t.h>>19)?s-a:(r=e.h)!=(o=t.h)?r-o:(n=e.m)!=(i=t.m)?n-i:e.l-t.l}function Pwe(){Pwe=M,ZBe(),Srt=new MM(zXe,Crt=Nrt),Lee(),xrt=new MM(WXe,Ert=vrt),lve(),wrt=new MM(GXe,_rt=frt),yrt=new MM(VXe,(lR(),!0))}function Fwe(e,t,n){var r,i;r=t*n,rN(e.g,145)?(i=c3(e)).f.d?i.f.a||(e.d.a+=r+cJe):(e.d.d-=r+cJe,e.d.a+=r+cJe):rN(e.g,10)&&(e.d.d-=r,e.d.a+=2*r)}function $we(e,t,n){var i,o,a,s,l;for(o=e[n.g],l=new Gf(t.d);l.a<l.c.c.length;)(a=(s=$H(J0(l),101)).i)&&a.i==n&&(o[i=s.d[n.g]]=r.Math.max(o[i],a.j.b))}function jwe(e,t){var n,i,o,a,s;for(i=0,o=0,n=0,s=new Gf(t.d);s.a<s.c.c.length;)Ube(a=$H(J0(s),443)),i=r.Math.max(i,a.b),o+=a.d+(n>0?e.g:0),++n;t.b=i,t.e=o}function Hwe(e){var t,n,r;if(r=e.b,HE(e.i,r.length)){for(n=2*r.length,e.b=N8(Qet,CYe,317,n,0,1),e.c=N8(Qet,CYe,317,n,0,1),e.f=n-1,e.i=0,t=e.a;t;t=t.c)Yke(e,t,t);++e.g}}function Uwe(e,t,n,r){var i,o,a,s;for(i=0;i<t.o;i++)for(o=i-t.j+n,a=0;a<t.p;a++)s=a-t.k+r,mbe(t,i,a)?rbe(e,o,s)||Wbe(e,o,s):Abe(t,i,a)&&(tbe(e,o,s)||Gbe(e,o,s))}function Qwe(e,t,n){var r;(r=t.c.i).k==(oCe(),Sst)?(lle(e,(lKe(),lht),$H(vSe(r,lht),11)),lle(e,cht,$H(vSe(r,cht),11))):(lle(e,(lKe(),lht),t.c),lle(e,cht,n.d))}function zwe(e,t,n){var i,o,a,s,l,c;return yBe(),s=t/2,a=n/2,l=1,c=1,(i=r.Math.abs(e.a))>s&&(l=s/i),(o=r.Math.abs(e.b))>a&&(c=a/o),bN(e,r.Math.min(l,c)),e}function Wwe(){var e,t;HHe();try{if(t=$H(W_e((GS(),UIt),A6e),2014))return t}catch(t){if(!rN(t=use(t),102))throw jv(t);e=t,oW((oD(),e))}return new sl}function Gwe(){var e,t;f9();try{if(t=$H(W_e((GS(),UIt),E9e),2024))return t}catch(t){if(!rN(t=use(t),102))throw jv(t);e=t,oW((oD(),e))}return new Bc}function Vwe(){var e,t;HHe();try{if(t=$H(W_e((GS(),UIt),V7e),1941))return t}catch(t){if(!rN(t=use(t),102))throw jv(t);e=t,oW((oD(),e))}return new Ql}function Kwe(e,t,n){var r,i;return i=e.e,e.e=t,4&e.Db&&!(1&e.Db)&&(r=new JW(e,1,4,i,t),n?n.Ei(r):n=r),i!=t&&(n=iWe(e,t?bNe(e,t):e.a,n)),n}function Ywe(){OE.call(this),this.e=-1,this.a=!1,this.p=PYe,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=PYe}function qwe(e,t){var n,r,i;if(r=e.b.d.d,e.a||(r+=e.b.d.a),i=t.b.d.d,t.a||(i+=t.b.d.a),0==(n=She(r,i))){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function Xwe(e,t){var n,r,i;if(r=e.b.b.d,e.a||(r+=e.b.b.a),i=t.b.b.d,t.a||(i+=t.b.b.a),0==(n=She(r,i))){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function Jwe(e,t){var n,r,i;if(r=e.b.g.d,e.a||(r+=e.b.g.a),i=t.b.g.d,t.a||(i+=t.b.g.a),0==(n=She(r,i))){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return n}function Zwe(){Zwe=M,Dat=Gz(fQ(fQ(fQ(new $2,(ASe(),Fat),(uKe(),Alt)),Fat,_lt),$at,Olt),$at,alt),Rat=fQ(fQ(new $2,Fat,qst),Fat,slt),Nat=Gz(new $2,$at,clt)}function e_e(e){var t,n,r,i,o;for(t=$H(vSe(e,(lKe(),Qdt)),83),o=e.n,r=t.Cc().Kc();r.Ob();)(i=(n=$H(r.Pb(),306)).i).c+=o.a,i.d+=o.b,n.c?DBe(n):NBe(n);lle(e,Qdt,null)}function t_e(e,t,n){var r,i;switch(r=(i=e.b).d,t.g){case 1:return-r.d-n;case 2:return i.o.a+r.c+n;case 3:return i.o.b+r.a+n;case 4:return-r.b-n;default:return-1}}function n_e(e){var t,n,r,i,o;if(r=0,i=XJe,e.b)for(t=0;t<360;t++)n=.017453292519943295*t,zFe(e,e.d,0,0,X3e,n),(o=e.b.ig(e.d))<i&&(r=n,i=o);zFe(e,e.d,0,0,X3e,r)}function r_e(e,t){var n,r,i,o;for(o=new Nv,t.e=null,t.f=null,r=new Gf(t.i);r.a<r.c.c.length;)n=$H(J0(r),65),i=$H(LV(e.g,n.a),46),n.a=HW(n.b),VK(o,n.a,i);e.g=o}function i_e(e,t,n){var r,i,o,a,s;for(i=(t-e.e)/e.d.c.length,o=0,s=new Gf(e.d);s.a<s.c.c.length;)a=$H(J0(s),443),r=e.b-a.b+n,bge(a,a.e+o*i,a.f),lbe(a,i,r),++o}function o_e(e){var t;if(e.f.qj(),-1!=e.b){if(++e.b,t=e.f.d[e.a],e.b<t.i)return;++e.a}for(;e.a<e.f.d.length;++e.a)if((t=e.f.d[e.a])&&0!=t.i)return void(e.b=0);e.b=-1}function a_e(e,t){var n,r,i;for(n=Mke(e,0==(i=t.c.length)?"":(u0(0,t.c.length),EB(t.c[0]))),r=1;r<i&&n;++r)n=$H(n,49).oh((u0(r,t.c.length),EB(t.c[r])));return n}function s_e(e,t){var n,r;for(r=new Gf(t);r.a<r.c.c.length;)n=$H(J0(r),10),e.c[n.c.p][n.p].a=kz(e.i),e.c[n.c.p][n.p].d=Uy(e.c[n.c.p][n.p].a),e.c[n.c.p][n.p].b=1}function l_e(e,t){var n,i,o;for(o=0,i=new Gf(e);i.a<i.c.c.length;)n=$H(J0(i),157),o+=r.Math.pow(tz(n)*ez(n)-t,2);return r.Math.sqrt(o/(e.c.length-1))}function c_e(e,t,n,r){var i,o,a;return a=DPe(e,o=HPe(e,t,n,r)),cSe(e,t,n,r),B7(e.b),Eq(),vD(o,new Kg(e)),i=DPe(e,o),cSe(e,n,t,r),B7(e.b),new nO(the(a),the(i))}function u_e(e,t,n){var r;for(kEe(n,"Interactive node placement",1),e.a=$H(vSe(t,(lKe(),Oht)),304),r=new Gf(t.b);r.a<r.c.c.length;)JLe(e,$H(J0(r),29));jCe(n)}function d_e(e,t){kEe(t,"General Compactor",1),t.n&&e&&A1(t,a2(e),($ce(),oMt)),fpe($H(XIe(e,(zye(),E_t)),380)).hg(e),t.n&&e&&A1(t,a2(e),($ce(),oMt))}function h_e(e,t,n){var r,i;for(CI(e,e.j+t,e.k+n),i=new ON((!e.a&&(e.a=new MN(DMt,e,5)),e.a));i.e!=i.i.gc();)_I(r=$H(bve(i),469),r.a+t,r.b+n);SI(e,e.b+t,e.c+n)}function f_e(e,t,n,r){switch(n){case 7:return!e.e&&(e.e=new lF(BMt,e,7,4)),Ype(e.e,t,r);case 8:return!e.d&&(e.d=new lF(BMt,e,8,5)),Ype(e.d,t,r)}return FEe(e,t,n,r)}function p_e(e,t,n,r){switch(n){case 7:return!e.e&&(e.e=new lF(BMt,e,7,4)),Pve(e.e,t,r);case 8:return!e.d&&(e.d=new lF(BMt,e,8,5)),Pve(e.d,t,r)}return nse(e,t,n,r)}function g_e(e,t,n){var r,i,o;if(n)for(o=((r=new lW(n.a.length)).b-r.a)*r.c<0?(eC(),_Rt):new WN(r);o.Ob();)(i=N2(n,$H(o.Pb(),19).a))&&dOe(e,i,t)}function m_e(e,t,n){var r,i,o;return e.qj(),o=null==t?0:Jle(t),e.f>0&&(i=iMe(e,(o&RKe)%e.d.length,o,t))?i.ed(n):(r=e.tj(o,t,n),e.c.Fc(r),null)}function v_e(e,t){var n,r,i,o;switch(Cde(e,t)._k()){case 3:case 2:for(i=0,o=(n=YHe(t)).i;i<o;++i)if(5==RK($9(e,r=$H(Gte(n,i),34))))return r}return null}function A_e(e){var t,n,r,i,o;if(HE(e.f,e.b.length))for(r=N8(Yet,CYe,330,2*e.b.length,0,1),e.b=r,i=r.length-1,n=e.a;n!=e;n=n.Rd())t=(o=$H(n,330)).d&i,o.a=r[t],r[t]=o}function b_e(e,t){var n,i,o,a;for(a=0,o=$H($H(l6(e.r,t),21),84).Kc();o.Ob();)i=$H(o.Pb(),111),a=r.Math.max(a,i.e.a+i.b.rf().a);(n=$H(aY(e.b,t),124)).n.b=0,n.a.a=a}function y_e(e,t){var n,i,o,a;for(n=0,a=$H($H(l6(e.r,t),21),84).Kc();a.Ob();)o=$H(a.Pb(),111),n=r.Math.max(n,o.e.b+o.b.rf().b);(i=$H(aY(e.b,t),124)).n.d=0,i.a.b=n}function w_e(e){var t,n;return n=$H(vSe(e,(lKe(),Xdt)),21),t=bI(myt),n.Hc((dBe(),pdt))&&qoe(t,byt),n.Hc(mdt)&&qoe(t,wyt),n.Hc(sdt)&&qoe(t,vyt),n.Hc(cdt)&&qoe(t,Ayt),t}function __e(e,t){var n;kEe(t,"Delaunay triangulation",1),n=new Dv,kte(e.i,new Am(n)),Hy(_B(vSe(e,(Woe(),Kit)))),e.e?Fie(e.e,MVe(n)):e.e=MVe(n),jCe(t)}function x_e(e){if(e<0)throw jv(new Py("The input must be positive"));return e<xSt.length?y2(xSt[e]):r.Math.sqrt(X3e*e)*(tde(e,e)/ede(2.718281828459045,e))}function E_e(e,t){var n;if(e.ni()&&null!=t){for(n=0;n<e.i;++n)if(Dde(t,e.g[n]))return!0}else for(n=0;n<e.i;++n)if(UO(e.g[n])===UO(t))return!0;return!1}function S_e(e,t){if(null==t){for(;e.a.Ob();)if(null==$H(e.a.Pb(),42).dd())return!0}else for(;e.a.Ob();)if(Dde(t,$H(e.a.Pb(),42).dd()))return!0;return!1}function C_e(e,t){var n;return t===e||!!rN(t,664)&&(n=$H(t,1947),tme(e.g||(e.g=new qd(e)),n.g||(n.g=new qd(n))))}function T_e(e){var t,n,i;for(t="Sz",n="ez",i=r.Math.min(e.length,5)-1;i>=0;i--)if(vF(e[i].d,t)||vF(e[i].d,n)){e.length>=i+1&&e.splice(0,i+1);break}return e}function k_e(e,t){var n;return qM(e)&&qM(t)&&Mqe<(n=e/t)&&n<kqe?n<0?r.Math.ceil(n):r.Math.floor(n):oae(OQe(qM(e)?Sae(e):e,qM(t)?Sae(t):t,!1))}function O_e(e,t){if(t==e.c.i)return e.d.i;if(t==e.d.i)return e.c.i;throw jv(new Py("'node' must either be the source node or target node of the edge."))}function M_e(e){var t,n,r,i;if(i=$H(vSe(e,(lKe(),Fdt)),37)){for(r=new U_,t=mK(e.c.i);t!=i;)t=mK(n=t.e),PL(zP(zP(r,n.n),t.c),t.d.b,t.d.d);return r}return Fst}function I_e(e){var t;qE(hee(new LQ(null,new h0((t=$H(vSe(e,(lKe(),kht)),403)).d,16)),new $r),new hg(e)),qE(OY(new LQ(null,new h0(t.d,16)),new jr),new fg(e))}function D_e(e,t){var n,r;for(n=new aW(XN((t?ufe(e):cfe(e)).a.Kc(),new u));fIe(n);)if((r=O_e($H(z5(n),17),e)).k==(oCe(),Sst)&&r.c!=e.c)return r;return null}function N_e(e){var t,n,i;for(n=new Gf(e.p);n.a<n.c.c.length;)(t=$H(J0(n),10)).k==(oCe(),Cst)&&(i=t.o.b,e.i=r.Math.min(e.i,i),e.g=r.Math.max(e.g,i))}function R_e(e,t,n){var r,i,o;for(o=new Gf(t);o.a<o.c.c.length;)r=$H(J0(o),10),e.c[r.c.p][r.p].e=!1;for(i=new Gf(t);i.a<i.c.c.length;)NWe(e,r=$H(J0(i),10),n)}function L_e(e,t,n){var i,o;(i=_de(t.j,n.s,n.c)+_de(n.e,t.s,t.c))==(o=_de(n.j,t.s,t.c)+_de(t.e,n.s,n.c))?i>0&&(e.b+=2,e.a+=i):(e.b+=1,e.a+=r.Math.min(i,o))}function B_e(e,t){var n;if(n=!1,WO(t)&&(n=!0,JV(e,new UV(EB(t)))),n||rN(t,236)&&(n=!0,JV(e,new xh(WF($H(t,236))))),!n)throw jv(new Iy(j6e))}function P_e(e,t,n,r){var i,o,a;return i=new D9(e.e,1,10,rN(a=t.c,88)?$H(a,26):(pKe(),hDt),rN(o=n.c,88)?$H(o,26):(pKe(),hDt),oAe(e,t),!1),r?r.Ei(i):r=i,r}function F_e(e){var t,n;switch($H(vSe(mK(e),(jVe(),gmt)),420).g){case 0:return t=e.n,n=e.o,new Nk(t.a+n.a/2,t.b+n.b/2);case 1:return new hI(e.n);default:return null}}function $_e(){$_e=M,Kut=new OT(KZe,0),Vut=new OT("LEFTUP",1),qut=new OT("RIGHTUP",2),Gut=new OT("LEFTDOWN",3),Yut=new OT("RIGHTDOWN",4),Wut=new OT("BALANCED",5)}function j_e(e,t,n){var r,i,o;if(0==(r=She(e.a[t.p],e.a[n.p]))){if(i=$H(vSe(t,(lKe(),rht)),15),o=$H(vSe(n,rht),15),i.Hc(n))return-1;if(o.Hc(t))return 1}return r}function H_e(e){switch(e.g){case 1:return new ja;case 2:return new Ha;case 3:return new $a;case 0:return null;default:throw jv(new Py(r4e+(null!=e.f?e.f:""+e.g)))}}function U_e(e,t,n){switch(t){case 1:return!e.n&&(e.n=new eG(UMt,e,1,7)),sQe(e.n),!e.n&&(e.n=new eG(UMt,e,1,7)),void gV(e.n,$H(n,14));case 2:return void Mre(e,EB(n))}nce(e,t,n)}function Q_e(e,t,n){switch(t){case 3:return void xne(e,Uy(xB(n)));case 4:return void Ene(e,Uy(xB(n)));case 5:return void Sne(e,Uy(xB(n)));case 6:return void Cne(e,Uy(xB(n)))}U_e(e,t,n)}function z_e(e,t,n){var r,i;(r=jEe(i=new Ib,t,null))&&r.Fi(),Die(i,n),c7((!e.c&&(e.c=new eG(KIt,e,12,10)),e.c),i),Ine(i,0),Dne(i,1),Jde(i,!0),Yde(i,!0)}function W_e(e,t){var n,r;return rN(n=lC(e.g,t),235)?((r=$H(n,235)).Qh(),r.Nh()):rN(n,498)?r=$H(n,1938).b:null}function G_e(e,t,n,r){var i,o;return AV(t),AV(n),L9(!!(o=$H(zF(e.d,t),19)),"Row %s not in %s",t,e.e),L9(!!(i=$H(zF(e.b,n),19)),"Column %s not in %s",n,e.c),Ese(e,o.a,i.a,r)}function V_e(e,t,n,r,i,o,a){var s,l,c,u,d;if(d=$be(s=(c=o==a-1)?r:0,u=i[o]),10!=r&&Sse(Uw(e,a-o),t[o],n[o],s,d),!c)for(++o,l=0;l<u;++l)d[l]=V_e(e,t,n,r,i,o,a);return d}function K_e(e){if(-1==e.g)throw jv(new fA);e.mj();try{e.i.$c(e.g),e.f=e.i.j,e.g<e.e&&--e.e,e.g=-1}catch(e){throw rN(e=use(e),73)?jv(new mA):jv(e)}}function Y_e(e,t){return e.b.a=r.Math.min(e.b.a,t.c),e.b.b=r.Math.min(e.b.b,t.d),e.a.a=r.Math.max(e.a.a,t.c),e.a.b=r.Math.max(e.a.b,t.d),e.c[e.c.length]=t,!0}function q_e(e){var t,n,r;for(r=-1,n=0,t=new Gf(e);t.a<t.c.c.length;){if($H(J0(t),243).c==(ire(),jAt)){r=0==n?0:n-1;break}n==e.c.length-1&&(r=n),n+=1}return r}function X_e(e){var t,n,i,o;for(o=0,t=0,i=new Gf(e.c);i.a<i.c.c.length;)Sne(n=$H(J0(i),33),e.e+o),Cne(n,e.f),o+=n.g+e.b,t=r.Math.max(t,n.f+e.b);e.d=o-e.b,e.a=t-e.b}function J_e(e){var t,n,r;for(n=new Gf(e.a.b);n.a<n.c.c.length;)r=(t=$H(J0(n),57)).d.c,t.d.c=t.d.d,t.d.d=r,r=t.d.b,t.d.b=t.d.a,t.d.a=r,r=t.b.a,t.b.a=t.b.b,t.b.b=r;ARe(e)}function Z_e(e){var t,n,r;for(n=new Gf(e.a.b);n.a<n.c.c.length;)r=(t=$H(J0(n),81)).g.c,t.g.c=t.g.d,t.g.d=r,r=t.g.b,t.g.b=t.g.a,t.g.a=r,r=t.e.a,t.e.a=t.e.b,t.e.b=r;bRe(e)}function exe(e){var t,n,r,i,o;for(o=pW(e.k),bGe(),r=0,i=(n=Sse(Uw(FOt,1),YZe,61,0,[SOt,sOt,aOt,EOt,COt])).length;r<i;++r)if((t=n[r])!=SOt&&!o.Hc(t))return t;return null}function txe(e,t){var n,r;return(r=$H(wR(Kle(OY(new LQ(null,new h0(t.j,16)),new po))),11))&&(n=$H(NQ(r.e,0),17))?$H(vSe(n,(lKe(),hht)),19).a:pee(e.b)}function nxe(e,t){var n,r,i;for(i=new Gf(t.a);i.a<i.c.c.length;)for(r=$H(J0(i),10),Jy(e.d),n=new aW(XN(ufe(r).a.Kc(),new u));fIe(n);)WMe(e,r,$H(z5(n),17).d.i)}function rxe(e,t){var n,r;for(A9(e.b,t),r=new Gf(e.n);r.a<r.c.c.length;)if(-1!=w9((n=$H(J0(r),211)).c,t,0)){A9(n.c,t),X_e(n),0==n.c.c.length&&A9(e.n,n);break}cUe(e)}function ixe(e,t){var n,i,o,a,s;for(s=e.f,o=0,a=0,i=new Gf(e.a);i.a<i.c.c.length;)_Ae(n=$H(J0(i),187),e.e,s),g7(n,t),a=r.Math.max(a,n.r),o=s+=n.d+e.c;e.d=a,e.b=o}function oxe(e){var t,n;return l3(n=hNe(e))?null:(AV(n),t=$H(ebe(new aW(XN(n.a.Kc(),new u))),79),SEe($H(Gte((!t.b&&(t.b=new lF(LMt,t,4,7)),t.b),0),82)))}function axe(e){return e.o||(e.Lj()?e.o=new iK(e,e,null):e.rk()?e.o=new nP(e,null):1==RK($9((TTe(),qDt),e))?e.o=new p4(e):e.o=new rP(e,null)),e.o}function sxe(e,t,n,r){var i,o,a,s,l;n.mh(t)&&(i=(a=t)?$H(r,49).xh(a):null)&&(l=n.ah(t),(s=t.t)>1||-1==s?(o=$H(l,15),i.Wb(Wge(e,o))):i.Wb(ZFe(e,$H(l,56))))}function lxe(e,t,n,r){Yx();var i=SKe;function o(){for(var e=0;e<i.length;e++)i[e]()}if(e)try{$Rt(o)()}catch(n){e(t,n)}else $Rt(o)()}function cxe(e){var t,n,r,i,o;for(r=new oce(new Sf(e.b).a);r.b;)t=$H((n=Zte(r)).cd(),10),o=$H($H(n.dd(),46).a,10),i=$H($H(n.dd(),46).b,8),zP(bM(t.n),zP($D(o.n),i))}function uxe(e){switch($H(vSe(e.b,(jVe(),emt)),375).g){case 1:qE(MY(hee(new LQ(null,new h0(e.d,16)),new $i),new ji),new Hi);break;case 2:mPe(e);break;case 0:Cke(e)}}function dxe(e,t,n){kEe(n,"Straight Line Edge Routing",1),n.n&&t&&A1(n,a2(t),($ce(),oMt)),vUe(e,$H(XIe(t,(hB(),Vwt)),33)),n.n&&t&&A1(n,a2(t),($ce(),oMt))}function hxe(){hxe=M,XSt=new Lk("V_TOP",0),qSt=new Lk("V_CENTER",1),YSt=new Lk("V_BOTTOM",2),VSt=new Lk("H_LEFT",3),GSt=new Lk("H_CENTER",4),KSt=new Lk("H_RIGHT",5)}function fxe(e){var t;return 64&e.Db?Cpe(e):((t=new cR(Cpe(e))).a+=" (abstract: ",Ax(t,!!(256&e.Bb)),t.a+=", interface: ",Ax(t,!!(512&e.Bb)),t.a+=")",t.a)}function pxe(e,t,n,r){var i,o,a;return vI(e.e)&&(a=IX(e,1,i=t.ak(),t.dd(),o=n.dd(),i.$j()?gHe(e,i,o,rN(i,99)&&!!($H(i,18).Bb&$qe)):-1,!0),r?r.Ei(a):r=a),r}function gxe(e){var t;null==e.c&&(t=UO(e.b)===UO(qet)?null:e.b,e.d=null==t?QKe:eW(t)?yR(wq(t)):WO(t)?HYe:J_(Zle(t)),e.a=e.a+": "+(eW(t)?CP(wq(t)):t+""),e.c="("+e.d+") "+e.a)}function mxe(e,t){this.e=e,KO(e1(t,-4294967296),0)?(this.d=1,this.a=Sse(Uw(kRt,1),lqe,25,15,[fz(t)])):(this.d=2,this.a=Sse(Uw(kRt,1),lqe,25,15,[fz(t),fz(bW(t,32))]))}function vxe(){function e(){try{return(new Map).entries().next().done}catch(e){return!1}}return typeof Map===NKe&&Map.prototype.entries&&e()?Map:dGe()}function Axe(e,t){var n,r,i;for(i=new x2(e.e,0),n=0;i.b<i.d.gc();){if((r=Uy((SL(i.b<i.d.gc()),xB(i.d.Xb(i.c=i.b++))))-t)>R3e)return n;r>-1e-6&&++n}return n}function bxe(e,t){var n;t!=e.b?(n=null,e.b&&(n=aJ(e.b,e,-4,n)),t&&(n=Dve(t,e,-4,n)),(n=Xue(e,t,n))&&n.Fi()):4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,3,t,t))}function yxe(e,t){var n;t!=e.f?(n=null,e.f&&(n=aJ(e.f,e,-1,n)),t&&(n=Dve(t,e,-1,n)),(n=Jue(e,t,n))&&n.Fi()):4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,0,t,t))}function wxe(e){var t,n,r;if(null==e)return null;if((n=$H(e,15)).dc())return"";for(r=new Ew,t=n.Kc();t.Ob();)rM(r,(zQe(),EB(t.Pb()))),r.a+=" ";return BM(r,r.a.length-1)}function _xe(e){var t,n,r;if(null==e)return null;if((n=$H(e,15)).dc())return"";for(r=new Ew,t=n.Kc();t.Ob();)rM(r,(zQe(),EB(t.Pb()))),r.a+=" ";return BM(r,r.a.length-1)}function xxe(e,t,n){var r,i;return r=e.c[t.c.p][t.p],i=e.c[n.c.p][n.p],null!=r.a&&null!=i.a?_W(r.a,i.a):null!=r.a?-1:null!=i.a?1:0}function Exe(e,t){var n,r,i;if(t)for(i=((n=new lW(t.a.length)).b-n.a)*n.c<0?(eC(),_Rt):new WN(n);i.Ob();)r=N2(t,$H(i.Pb(),19).a),kY(new $m(e).a,r)}function Sxe(e,t){var n,r,i;if(t)for(i=((n=new lW(t.a.length)).b-n.a)*n.c<0?(eC(),_Rt):new WN(n);i.Ob();)r=N2(t,$H(i.Pb(),19).a),TY(new Mm(e).a,r)}function Cxe(e){if(null!=e&&e.length>0&&33==cY(e,e.length-1))try{return null==YTe(cL(e,0,e.length-1)).e}catch(e){if(!rN(e=use(e),32))throw jv(e)}return!1}function Txe(e,t,n){var r,i,o;return r=t.ak(),o=t.dd(),i=r.$j()?IX(e,3,r,null,o,gHe(e,r,o,rN(r,99)&&!!($H(r,18).Bb&$qe)),!0):IX(e,1,r,r.zj(),o,-1,!0),n?n.Ei(i):n=i,n}function kxe(){var e,t,n;for(t=0,e=0;e<1;e++){if(0==(n=KMe((d0(e,1),"X".charCodeAt(e)))))throw jv(new iw("Unknown Option: "+"X".substr(e)));t|=n}return t}function Oxe(e,t,n){var r,i;switch(r=Ghe(mK(t)),CZ(i=new CCe,t),n.g){case 1:Hke(i,_he(lpe(r)));break;case 2:Hke(i,lpe(r))}return lle(i,(jVe(),Zmt),xB(vSe(e,Zmt))),i}function Mxe(e){var t,n;return t=$H(z5(new aW(XN(cfe(e.a).a.Kc(),new u))),17),n=$H(z5(new aW(XN(ufe(e.a).a.Kc(),new u))),17),Hy(_B(vSe(t,(lKe(),Cht))))||Hy(_B(vSe(n,Cht)))}function Ixe(){Ixe=M,xct=new AT("ONE_SIDE",0),Sct=new AT("TWO_SIDES_CORNER",1),Cct=new AT("TWO_SIDES_OPPOSING",2),Ect=new AT("THREE_SIDES",3),_ct=new AT("FOUR_SIDES",4)}function Dxe(e,t,n,r,i){var o,a;o=$H(S4(OY(t.Oc(),new Zi),v7(new U,new H,new re,Sse(Uw(Jnt,1),MYe,132,0,[(Hce(),znt)]))),15),a=$H(pae(e.b,n,r),15),0==i?a.Wc(0,o):a.Gc(o)}function Nxe(e,t){var n,r,i;for(r=new Gf(t.a);r.a<r.c.c.length;)for(n=new aW(XN(cfe($H(J0(r),10)).a.Kc(),new u));fIe(n);)i=$H(z5(n),17).c.i.p,e.n[i]=e.n[i]-1}function Rxe(e,t){var n,r,i,o;for(i=new Gf(t.d);i.a<i.c.c.length;)for(r=$H(J0(i),101),o=$H(LV(e.c,r),112).o,n=new KE(r.b);n.a<n.c.a.length;)p7(r,$H(o4(n),61),o)}function Lxe(e){var t;for(t=new Gf(e.e.b);t.a<t.c.c.length;)lWe(e,$H(J0(t),29));qE(OY(hee(hee(new LQ(null,new h0(e.e.b,16)),new Ko),new ea),new ta),new lm(e))}function Bxe(e,t){return!!t&&!e.Di(t)&&(e.i?e.i.Ei(t):rN(t,143)?(e.i=$H(t,143),!0):(e.i=new vl,e.i.Ei(t)))}function Pxe(e){if(e=FHe(e,!0),vF(i5e,e)||vF("1",e))return lR(),vtt;if(vF(o5e,e)||vF("0",e))return lR(),mtt;throw jv(new tw("Invalid boolean value: '"+e+"'"))}function Fxe(e,t,n){var r,i,o;for(i=e.vc().Kc();i.Ob();)if(o=(r=$H(i.Pb(),42)).cd(),UO(t)===UO(o)||null!=t&&Dde(t,o))return n&&(r=new SC(r.cd(),r.dd()),i.Qb()),r;return null}function $xe(e){var t,n,r;HB(),e.B.Hc((JFe(),HOt))&&(r=e.f.i,t=new pX(e.a.c),(n=new db).b=t.c-r.c,n.d=t.d-r.d,n.c=r.c+r.b-(t.c+t.b),n.a=r.d+r.a-(t.d+t.a),e.e.Ff(n))}function jxe(e,t,n,i){var o,a,s;for(s=r.Math.min(n,Gje($H(e.b,65),t,n,i)),a=new Gf(e.a);a.a<a.c.c.length;)(o=$H(J0(a),221))!=t&&(s=r.Math.min(s,jxe(o,t,s,i)));return s}function Hxe(e){var t,n,r;for(r=N8(kst,sYe,193,e.b.c.length,0,2),n=new x2(e.b,0);n.b<n.d.gc();)SL(n.b<n.d.gc()),t=$H(n.d.Xb(n.c=n.b++),29),r[n.b-1]=J1(t.a);return r}function Uxe(e,t,n,r,i){var o,a,s,l;for(a=Jw(Xw(j$(Zve(n)),r),iwe(e,n,i)),l=RCe(e,n).Kc();l.Ob();)t[(s=$H(l.Pb(),11)).p]&&(o=t[s.p].i,GH(a.d,new Nz(o,bhe(a,o))));Spe(a)}function Qxe(e,t){this.f=new Nv,this.b=new Nv,this.j=new Nv,this.a=e,this.c=t,this.c>0&&Pye(this,this.c-1,(bGe(),aOt)),this.c<this.a.length-1&&Pye(this,this.c+1,(bGe(),COt))}function zxe(e){e.length>0&&e[0].length>0&&(this.c=Hy(_B(vSe(mK(e[0][0]),(lKe(),iht))))),this.a=N8(Sbt,sYe,2018,e.length,0,2),this.b=N8(Ibt,sYe,2019,e.length,0,2),this.d=new _ue}function Wxe(e){return 0!=e.c.length&&((u0(0,e.c.length),$H(e.c[0],17)).c.i.k==(oCe(),Sst)||a5(MY(new LQ(null,new h0(e,16)),new $o),new jo))}function Gxe(e,t,n){return kEe(n,"Tree layout",1),l2(e.b),CG(e.b,(Qye(),Lyt),Lyt),CG(e.b,Byt,Byt),CG(e.b,Pyt,Pyt),CG(e.b,Fyt,Fyt),e.a=MQe(e.b,t),uLe(e,t,voe(n,1)),jCe(n),t}function Vxe(e,t){var n,i,o,a,s,l;for(s=hBe(t),o=t.f,l=t.g,a=r.Math.sqrt(o*o+l*l),i=0,n=new Gf(s);n.a<n.c.c.length;)i+=Vxe(e,$H(J0(n),33));return r.Math.max(i,a)}function Kxe(){Kxe=M,Ykt=new zk(lJe,0),Kkt=new zk("FREE",1),Vkt=new zk("FIXED_SIDE",2),zkt=new zk("FIXED_ORDER",3),Gkt=new zk("FIXED_RATIO",4),Wkt=new zk("FIXED_POS",5)}function Yxe(e,t){var n,r,i;if(n=t.Hh(e.a))for(i=EB(rge((!n.b&&(n.b=new qL((pKe(),ADt),zDt,n)),n.b),_9e)),r=1;r<(TTe(),XDt).length;++r)if(vF(XDt[r],i))return r;return 0}function qxe(e){var t,n,r,i;if(null==e)return QKe;for(i=new Mae(FKe,"[","]"),n=0,r=(t=e).length;n<r;++n)d6(i,""+t[n]);return i.a?0==i.e.length?i.a.a:i.a.a+""+i.e:i.c}function Xxe(e){var t,n,r,i;if(null==e)return QKe;for(i=new Mae(FKe,"[","]"),n=0,r=(t=e).length;n<r;++n)d6(i,""+t[n]);return i.a?0==i.e.length?i.a.a:i.a.a+""+i.e:i.c}function Jxe(e){var t,n,r;for(r=new Mae(FKe,"{","}"),n=e.vc().Kc();n.Ob();)d6(r,G3(e,(t=$H(n.Pb(),42)).cd())+"="+G3(e,t.dd()));return r.a?0==r.e.length?r.a.a:r.a.a+""+r.e:r.c}function Zxe(e){for(var t,n,r,i;!Gy(e.o);)n=$H(fG(e.o),46),r=$H(n.a,121),i=Dfe(t=$H(n.b,213),r),t.e==r?(LR(i.g,t),r.e=i.e+t.a):(LR(i.b,t),r.e=i.e-t.a),GH(e.e.a,r)}function eEe(e,t){var n,r,i;for(n=null,i=$H(t.Kb(e),20).Kc();i.Ob();)if(r=$H(i.Pb(),17),n){if((r.c.i==e?r.d.i:r.c.i)!=n)return!1}else n=r.c.i==e?r.d.i:r.c.i;return!0}function tEe(e,t){var n,r,i;for(r=new Gf(KNe(e,!1,t));r.a<r.c.c.length;)0==(n=$H(J0(r),129)).d?(GZ(n,null),VZ(n,null)):(i=n.a,GZ(n,n.b),VZ(n,i))}function nEe(e){var t,n;return qoe(t=new $2,Cyt),(n=$H(vSe(e,(lKe(),Xdt)),21)).Hc((dBe(),mdt))&&qoe(t,Myt),n.Hc(sdt)&&qoe(t,Tyt),n.Hc(pdt)&&qoe(t,Oyt),n.Hc(cdt)&&qoe(t,kyt),t}function rEe(e){var t,n,r,i;for(EQe(e),n=new aW(XN(lfe(e).a.Kc(),new u));fIe(n);)i=(r=(t=$H(z5(n),17)).c.i==e)?t.d:t.c,r?xZ(t,null):EZ(t,null),lle(t,(lKe(),vht),i),oIe(e,i.i)}function iEe(e,t,n,r){var i,o;switch(i=n[(o=t.i).g][e.d[o.g]],o.g){case 1:i-=r+t.j.b,t.g.b=i;break;case 3:i+=r,t.g.b=i;break;case 4:i-=r+t.j.a,t.g.a=i;break;case 2:i+=r,t.g.a=i}}function oEe(e){var t,n;for(n=new ON((!e.a&&(e.a=new eG(QMt,e,10,11)),e.a));n.e!=n.i.gc();)if(!fIe(new aW(XN(hNe(t=$H(bve(n),33)).a.Kc(),new u))))return t;return null}function aEe(){var e;return WMt?$H(MDe((GS(),UIt),A6e),2016):(e=$H(rN(EJ((GS(),UIt),A6e),555)?EJ(UIt,A6e):new sIe,555),WMt=!0,Pze(e),yKe(e),_ye(e),vZ(UIt,A6e,e),e)}function sEe(e,t,n){var r,i;if(0==e.j)return n;if(i=$H(Pne(e,t,n),72),!(r=n.ak()).Ij()||!e.a.rl(r))throw jv(new fy("Invalid entry feature '"+r.Hj().zb+"."+r.ne()+"'"));return i}function lEe(e,t){var n,r,i,o,a,s,l;for(s=0,l=(a=e.a).length;s<l;++s)for(i=0,o=(r=a[s]).length;i<o;++i)if(n=r[i],UO(t)===UO(n)||null!=t&&Dde(t,n))return!0;return!1}function cEe(e){var t,n,r;return Vue(e,0)>=0?(n=k_e(e,Oqe),r=uge(e,Oqe)):(n=k_e(t=yW(e,1),5e8),r=nfe(AW(r=uge(t,5e8),1),e1(e,1))),t1(AW(r,32),e1(n,zqe))}function uEe(e,t,n){var r;switch(SL(0!=t.b),r=$H(Ote(t,t.a.a),8),n.g){case 0:r.b=0;break;case 2:r.b=e.f;break;case 3:r.a=0;break;default:r.a=e.g}return JG(sve(t,0),r),t}function dEe(e,t,n,r){var i,o,a,s,l;switch(l=e.b,s=Qme(a=(o=t.d).j,l.d[a.g],n),i=zP($D(o.n),o.a),o.j.g){case 1:case 3:s.a+=i.a;break;case 2:case 4:s.b+=i.b}n5(r,s,r.c.b,r.c)}function hEe(e,t,n){var r,i,o,a;for(a=w9(e.e,t,0),(o=new nb).b=n,r=new x2(e.e,a);r.b<r.d.gc();)SL(r.b<r.d.gc()),(i=$H(r.d.Xb(r.c=r.b++),10)).p=n,GH(o.e,i),cK(r);return o}function fEe(e,t,n,r){var i,o,a,s,l;for(i=null,o=0,s=new Gf(t);s.a<s.c.c.length;)l=(a=$H(J0(s),33)).i+a.g,e<a.j+a.f+r&&(i?n.i-l<n.i-o&&(i=a):i=a,o=i.i+i.g);return i?o+r:0}function pEe(e,t,n,r){var i,o,a,s,l;for(o=null,i=0,s=new Gf(t);s.a<s.c.c.length;)l=(a=$H(J0(s),33)).j+a.f,e<a.i+a.g+r&&(o?n.j-l<n.j-i&&(o=a):o=a,i=o.j+o.f);return o?i+r:0}function gEe(e){var t,n,r;for(t=!1,r=e.b.c.length,n=0;n<r;n++)Yle($H(NQ(e.b,n),434))?!t&&n+1<r&&Yle($H(NQ(e.b,n+1),434))&&(t=!0,$H(NQ(e.b,n),434).a=!0):t=!1}function mEe(e,t,n,r,i){var o,a;for(o=0,a=0;a<i;a++)o=nfe(o,tfe(e1(t[a],zqe),e1(r[a],zqe))),e[a]=fz(o),o=bW(o,32);for(;a<n;a++)o=nfe(o,e1(t[a],zqe)),e[a]=fz(o),o=bW(o,32)}function vEe(e,t){var n,r;for(MMe(),kBe(),r=Xtt,n=e;t>1;t>>=1)1&t&&(r=Dee(r,n)),n=1==n.d?Dee(n,n):new Cme(T$e(n.a,n.d,N8(kRt,lqe,25,n.d<<1,15,1)));return Dee(r,n)}function AEe(){var e,t,n,r;for(AEe=M,knt=N8(DRt,Hqe,25,25,15,1),Ont=N8(DRt,Hqe,25,33,15,1),r=152587890625e-16,t=32;t>=0;t--)Ont[t]=r,r*=.5;for(n=1,e=24;e>=0;e--)knt[e]=n,n*=.5}function bEe(e){var t,n;if(Hy(_B(XIe(e,(jVe(),hmt)))))for(n=new aW(XN(fNe(e).a.Kc(),new u));fIe(n);)if(KOe(t=$H(z5(n),79))&&Hy(_B(XIe(t,fmt))))return!0;return!1}function yEe(e,t){var n,r,i;_G(e.f,t)&&(t.b=e,r=t.c,-1!=w9(e.j,r,0)||GH(e.j,r),i=t.d,-1!=w9(e.j,i,0)||GH(e.j,i),0!=(n=t.a.b).c.length&&(!e.i&&(e.i=new eve(e)),mae(e.i,n)))}function wEe(e){var t,n,r,i;return(n=(t=e.c.d).j)==(i=(r=e.d.d).j)?t.p<r.p?0:1:xhe(n)==i?0:whe(n)==i?1:ER(e.b.b,xhe(n))?0:1}function _Ee(){_Ee=M,Zvt=new LT(y3e,0),Xvt=new LT("LONGEST_PATH",1),Yvt=new LT("COFFMAN_GRAHAM",2),qvt=new LT($0e,3),eAt=new LT("STRETCH_WIDTH",4),Jvt=new LT("MIN_WIDTH",5)}function xEe(e){var t;this.d=new Nv,this.c=e.c,this.e=e.d,this.b=e.b,this.f=new sz(e.e),this.a=e.a,e.f?this.g=e.f:this.g=new YF(t=$H(V_(rIt),9),$H(EP(t,t.length),9),0)}function EEe(e,t){var n,r,i,o;!(i=R2(r=e,"layoutOptions"))&&(i=R2(r,x6e)),i&&(n=null,(o=i)&&(n=new _E(o,yie(o,N8(Ytt,sYe,2,0,6,1)))),n&&e5(n,new hO(o,t)))}function SEe(e){if(rN(e,239))return $H(e,33);if(rN(e,186))return GJ($H(e,118));throw jv(e?new Zy("Only support nodes and ports."):new jy(e8e))}function CEe(e,t,n,r){return t>=0&&vF(e.substr(t,3),"GMT")||t>=0&&vF(e.substr(t,3),"UTC")?(n[0]=t+3,A$e(e,n,r)):A$e(e,n,r)}function TEe(e,t){var n,r,i,o,a;for(o=e.g.a,a=e.g.b,r=new Gf(e.d);r.a<r.c.c.length;)(i=(n=$H(J0(r),70)).n).a=o,e.i==(bGe(),sOt)?i.b=a+e.j.b-n.o.b:i.b=a,zP(i,t),o+=n.o.a+e.e}function kEe(e,t,n){if(e.b)throw jv(new Fy("The task is already done."));return null==e.p&&(e.p=t,e.r=n,e.k&&(e.o=(ME(),rfe(cae(Date.now()),VYe))),!0)}function OEe(e){var t;return t=new gy,null!=e.tg()&&OU(t,H6e,e.tg()),null!=e.ne()&&OU(t,Z6e,e.ne()),null!=e.sg()&&OU(t,"description",e.sg()),t}function MEe(e,t,n){var r,i,o;return o=e.q,e.q=t,4&e.Db&&!(1&e.Db)&&(i=new JW(e,1,9,o,t),n?n.Ei(i):n=i),t?(r=t.c)!=e.r&&(n=e.nk(r,n)):e.r&&(n=e.nk(null,n)),n}function IEe(e,t,n){var r,i;for(n=Dve(t,e.e,-1-e.c,n),i=new xv(new oce(new Sf(NK(e.a).a).a));i.a.b;)n=iWe(r=$H(Zte(i.a).cd(),87),bNe(r,e.a),n);return n}function DEe(e,t,n){var r,i;for(n=aJ(t,e.e,-1-e.c,n),i=new xv(new oce(new Sf(NK(e.a).a).a));i.a.b;)n=iWe(r=$H(Zte(i.a).cd(),87),bNe(r,e.a),n);return n}function NEe(e,t,n,r){var i,o,a;if(0==r)iUe(t,0,e,n,e.length-n);else for(a=32-r,e[e.length-1]=0,o=e.length-1;o>n;o--)e[o]|=t[o-n-1]>>>a,e[o-1]=t[o-n-1]<<r;for(i=0;i<n;i++)e[i]=0}function REe(e){var t,n,i,o,a;for(t=0,n=0,a=e.Kc();a.Ob();)i=$H(a.Pb(),111),t=r.Math.max(t,i.d.b),n=r.Math.max(n,i.d.c);for(o=e.Kc();o.Ob();)(i=$H(o.Pb(),111)).d.b=t,i.d.c=n}function LEe(e){var t,n,i,o,a;for(n=0,t=0,a=e.Kc();a.Ob();)i=$H(a.Pb(),111),n=r.Math.max(n,i.d.d),t=r.Math.max(t,i.d.a);for(o=e.Kc();o.Ob();)(i=$H(o.Pb(),111)).d.d=n,i.d.a=t}function BEe(e,t){var n,r,i,o;for(o=new Dv,i=0,r=t.Kc();r.Ob();){for(n=the($H(r.Pb(),19).a+i);n.a<e.f&&!ZQ(e,n.a);)n=the(n.a+1),++i;if(n.a>=e.f)break;o.c[o.c.length]=n}return o}function PEe(e){var t,n,r,i;for(t=null,i=new Gf(e.wf());i.a<i.c.c.length;)n=new zY((r=$H(J0(i),181)).qf().a,r.qf().b,r.rf().a,r.rf().b),t?CTe(t,n):t=n;return!t&&(t=new dI),t}function FEe(e,t,n,r){return 1==n?(!e.n&&(e.n=new eG(UMt,e,1,7)),Ype(e.n,t,r)):$H(tte($H(Aae(e,16),26)||e.zh(),n),66).Nj().Qj(e,cme(e),n-dV(e.zh()),t,r)}function $Ee(e,t,n){var r,i,o,a,s;for(r=n.gc(),e.qi(e.i+r),(s=e.i-t)>0&&iUe(e.g,t,e.g,t+r,s),a=n.Kc(),e.i+=r,i=0;i<r;++i)o=a.Pb(),yN(e,t,e.oi(t,o)),e.bi(t,o),e.ci(),++t;return 0!=r}function jEe(e,t,n){var r;return t!=e.q?(e.q&&(n=aJ(e.q,e,-10,n)),t&&(n=Dve(t,e,-10,n)),n=MEe(e,t,n)):4&e.Db&&!(1&e.Db)&&(r=new JW(e,1,9,t,t),n?n.Ei(r):n=r),n}function HEe(e,t,n,r){return C$(!(n&lYe),"flatMap does not support SUBSIZED characteristic"),C$(!(4&n),"flatMap does not support SORTED characteristic"),AV(e),AV(t),new H2(e,n,r,t)}function UEe(e,t){EG(t,"Cannot suppress a null exception."),mU(t!=e,"Exception can not suppress itself."),e.i||(null==e.k?e.k=Sse(Uw(Xet,1),sYe,78,0,[t]):e.k[e.k.length]=t)}function QEe(e,t,n,r){var i,o,a,s,l,c;for(a=n.length,o=0,i=-1,c=ite(e.substr(t),(r$(),_nt)),s=0;s<a;++s)(l=n[s].length)>o&&sG(c,ite(n[s],_nt))&&(i=s,o=l);return i>=0&&(r[0]=t+o),i}function zEe(e,t){var n;if(0!=(n=YM(e.b.Hf(),t.b.Hf())))return n;switch(e.b.Hf().g){case 1:case 2:return wD(e.b.sf(),t.b.sf());case 3:case 4:return wD(t.b.sf(),e.b.sf())}return 0}function WEe(e){var t,n,r;for(r=e.e.c.length,e.a=bQ(kRt,[sYe,lqe],[48,25],15,[r,r],2),n=new Gf(e.c);n.a<n.c.c.length;)t=$H(J0(n),282),e.a[t.c.b][t.d.b]+=$H(vSe(t,(cPe(),Xot)),19).a}function GEe(e,t,n){kEe(n,"Grow Tree",1),e.b=t.f,Hy(_B(vSe(t,(Woe(),Kit))))?(e.c=new nt,KZ(e,null)):e.c=new nt,e.a=!1,FRe(e,t.f),lle(t,Yit,(lR(),!!e.a)),jCe(n)}function VEe(e,t){var n,r,i,o,a;if(null==e)return null;for(a=N8(TRt,GYe,25,2*t,15,1),r=0,i=0;r<t;++r)n=e[r]>>4&15,o=15&e[r],a[i++]=kMt[n],a[i++]=kMt[o];return $ge(a,0,a.length)}function KEe(e,t,n){var r,i,o;return r=t.ak(),o=t.dd(),i=r.$j()?IX(e,4,r,o,null,gHe(e,r,o,rN(r,99)&&!!($H(r,18).Bb&$qe)),!0):IX(e,r.Kj()?2:1,r,o,r.zj(),-1,!0),n?n.Ei(i):n=i,n}function YEe(e){var t,n;return e>=$qe?(t=jqe+(e-$qe>>10&1023)&KYe,n=56320+(e-$qe&1023)&KYe,String.fromCharCode(t)+""+String.fromCharCode(n)):String.fromCharCode(e&KYe)}function qEe(e,t){var n,r,i,o;return HB(),(i=$H($H(l6(e.r,t),21),84)).gc()>=2&&(r=$H(i.Kc().Pb(),111),n=e.u.Hc((uOe(),Zkt)),o=e.u.Hc(rOt),!r.a&&!n&&(2==i.gc()||o))}function XEe(e,t,n,r,i){var o,a,s;for(o=eBe(e,t,n,r,i),s=!1;!o;)wDe(e,i,!0),s=!0,o=eBe(e,t,n,r,i);s&&wDe(e,i,!1),0!=(a=Rse(i)).c.length&&(e.d&&e.d.lg(a),XEe(e,i,n,r,a))}function JEe(){JEe=M,ikt=new $k(KZe,0),nkt=new $k("DIRECTED",1),okt=new $k("UNDIRECTED",2),ekt=new $k("ASSOCIATION",3),rkt=new $k("GENERALIZATION",4),tkt=new $k("DEPENDENCY",5)}function ZEe(e,t){var n;if(!GJ(e))throw jv(new Fy(F5e));switch(n=GJ(e),t.g){case 1:return-(e.j+e.f);case 2:return e.i-n.g;case 3:return e.j-n.f;case 4:return-(e.i+e.g)}return 0}function eSe(e,t){var n,r;for(bK(t),r=e.b.c.length,GH(e.b,t);r>0;){if(n=r,r=(r-1)/2|0,e.a.ue(NQ(e.b,r),t)<=0)return r5(e.b,n,t),!0;r5(e.b,n,NQ(e.b,r))}return r5(e.b,r,t),!0}function tSe(e,t,n,i){var o,a;if(o=0,n)o=vue(e.a[n.g][t.g],i);else for(a=0;a<Jrt;a++)o=r.Math.max(o,vue(e.a[a][t.g],i));return t==(Rte(),Qrt)&&e.b&&(o=r.Math.max(o,e.b.a)),o}function nSe(e,t){var n,r,i,o,a;return r=e.i,i=t.i,!(!r||!i)&&r.i==i.i&&r.i!=(bGe(),aOt)&&r.i!=(bGe(),COt)&&(n=(o=r.g.a)+r.j.a,o<=(a=i.g.a)+i.j.a&&n>=a)}function rSe(e,t,n,r){var i;if(i=!1,WO(r)&&(i=!0,OU(t,n,EB(r))),i||QO(r)&&(i=!0,rSe(e,t,n,r)),i||rN(r,236)&&(i=!0,Hq(t,n,$H(r,236))),!i)throw jv(new Iy(j6e))}function iSe(e,t){var n,r,i;if((n=t.Hh(e.a))&&null!=(i=rge((!n.b&&(n.b=new qL((pKe(),ADt),zDt,n)),n.b),F7e)))for(r=1;r<(TTe(),KDt).length;++r)if(vF(KDt[r],i))return r;return 0}function oSe(e,t){var n,r,i;if((n=t.Hh(e.a))&&null!=(i=rge((!n.b&&(n.b=new qL((pKe(),ADt),zDt,n)),n.b),F7e)))for(r=1;r<(TTe(),YDt).length;++r)if(vF(YDt[r],i))return r;return 0}function aSe(e,t){var n,r,i,o;if(bK(t),(o=e.a.gc())<t.gc())for(n=e.a.ec().Kc();n.Ob();)r=n.Pb(),t.Hc(r)&&n.Qb();else for(i=t.Kc();i.Ob();)r=i.Pb(),e.a.Bc(r);return o!=e.a.gc()}function sSe(e){var t,n;switch(n=$D(Ole(Sse(Uw(SSt,1),sYe,8,0,[e.i.n,e.n,e.a]))),t=e.i.d,e.j.g){case 1:n.b-=t.d;break;case 2:n.a+=t.c;break;case 3:n.b+=t.a;break;case 4:n.a-=t.b}return n}function lSe(e){var t;for(Tie(),t=$H(z5(new aW(XN(cfe(e).a.Kc(),new u))),17).c.i;t.k==(oCe(),Sst);)lle(t,(lKe(),aht),(lR(),!0)),t=$H(z5(new aW(XN(cfe(t).a.Kc(),new u))),17).c.i}function cSe(e,t,n,r){var i,o,a;for(a=Ide(t,r).Kc();a.Ob();)i=$H(a.Pb(),11),e.d[i.p]=e.d[i.p]+e.c[n.p];for(o=Ide(n,r).Kc();o.Ob();)i=$H(o.Pb(),11),e.d[i.p]=e.d[i.p]-e.c[t.p]}function uSe(e,t,n){var r,i;for(i=new ON((!e.a&&(e.a=new eG(QMt,e,10,11)),e.a));i.e!=i.i.gc();)EI(r=$H(bve(i),33),r.i+t,r.j+n);e5((!e.b&&(e.b=new eG(BMt,e,12,3)),e.b),new Zk(t,n))}function dSe(e,t,n,r){var i,o;for(i=null==(o=t).d||e.a.ue(n.d,o.d)>0?1:0;o.a[i]!=n;)o=o.a[i],i=e.a.ue(n.d,o.d)>0?1:0;o.a[i]=r,r.b=n.b,r.a[0]=n.a[0],r.a[1]=n.a[1],n.a[0]=null,n.a[1]=null}function hSe(e){return uOe(),!(Cae(kJ(wz(eOt,Sse(Uw(TOt,1),MYe,273,0,[nOt])),e))>1||Cae(kJ(wz(Zkt,Sse(Uw(TOt,1),MYe,273,0,[Jkt,rOt])),e))>1)}function fSe(e,t){rN(EJ((GS(),UIt),e),498)?vZ(UIt,e,new kO(this,t)):vZ(UIt,e,this),tCe(this,t),t==(tx(),XIt)?(this.wb=$H(this,1939),$H(t,1941)):this.wb=(KV(),JIt)}function pSe(e){var t,n;if(null==e)return null;for(t=null,n=0;n<TMt.length;++n)try{return $S(TMt[n],e)}catch(e){if(!rN(e=use(e),32))throw jv(e);t=e}throw jv(new I9(t))}function gSe(){gSe=M,gnt=Sse(Uw(Ytt,1),sYe,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),mnt=Sse(Uw(Ytt,1),sYe,2,6,["Jan","Feb","Mar","Apr",ZYe,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])}function mSe(e){var t,n,r;(t=vF(typeof t,pXe)?null:new de)&&(uS(),ZV(n=(r=900)>=VYe?"error":r>=900?"warn":r>=800?"info":"log",e.a),e.b&&NRe(t,n,e.b,"Exception: ",!0))}function vSe(e,t){var n,r;return!e.q&&(e.q=new Nv),null!=(r=LV(e.q,t))?r:(rN(n=t.wg(),4)&&(null==n?(!e.q&&(e.q=new Nv),m6(e.q,t)):(!e.q&&(e.q=new Nv),VK(e.q,t,n))),n)}function ASe(){ASe=M,Lat=new VC("P1_CYCLE_BREAKING",0),Bat=new VC("P2_LAYERING",1),Pat=new VC("P3_NODE_ORDERING",2),Fat=new VC("P4_NODE_PLACEMENT",3),$at=new VC("P5_EDGE_ROUTING",4)}function bSe(e,t){var n,r,i,o;for(r=(1==t?Gat:Wat).a.ec().Kc();r.Ob();)for(n=$H(r.Pb(),103),o=$H(l6(e.f.c,n),21).Kc();o.Ob();)i=$H(o.Pb(),46),A9(e.b.b,i.b),A9(e.b.a,$H(i.b,81).d)}function ySe(e,t){var n;if(Ree(),e.c==t.c){if(e.b==t.b||loe(e.b,t.b)){if(n=XM(e.b)?1:-1,e.a&&!t.a)return n;if(!e.a&&t.a)return-n}return wD(e.b.g,t.b.g)}return She(e.c,t.c)}function wSe(e,t){var n;kEe(t,"Hierarchical port position processing",1),(n=e.b).c.length>0&&t$e((u0(0,n.c.length),$H(n.c[0],29)),e),n.c.length>1&&t$e($H(NQ(n,n.c.length-1),29),e),jCe(t)}function _Se(e,t){var n,r;if(DSe(e,t))return!0;for(r=new Gf(t);r.a<r.c.c.length;){if(PBe(e,n=$H(J0(r),33),oxe(n)))return!0;if(Mue(e,n)-e.g<=e.a)return!0}return!1}function xSe(){xSe=M,dPe(),bEt=LEt,mEt=IEt,gEt=OEt,fEt=SEt,pEt=TEt,hEt=new GI(8),dEt=new WI((sKe(),WCt),hEt),vEt=new WI(ITt,8),AEt=NEt,lEt=yEt,cEt=_Et,uEt=new WI(uCt,(lR(),!1))}function ESe(){ESe=M,QSt=new GI(15),USt=new WI((sKe(),WCt),QSt),WSt=new WI(ITt,15),zSt=new WI(gTt,the(0)),PSt=yCt,$St=BCt,HSt=HCt,RSt=new WI(rCt,c5e),FSt=CCt,jSt=$Ct,LSt=oCt,BSt=lCt}function SSe(e){if(1!=(!e.b&&(e.b=new lF(LMt,e,4,7)),e.b).i||1!=(!e.c&&(e.c=new lF(LMt,e,5,8)),e.c).i)throw jv(new Py(n8e));return SEe($H(Gte((!e.b&&(e.b=new lF(LMt,e,4,7)),e.b),0),82))}function CSe(e){if(1!=(!e.b&&(e.b=new lF(LMt,e,4,7)),e.b).i||1!=(!e.c&&(e.c=new lF(LMt,e,5,8)),e.c).i)throw jv(new Py(n8e));return dse($H(Gte((!e.b&&(e.b=new lF(LMt,e,4,7)),e.b),0),82))}function TSe(e){if(1!=(!e.b&&(e.b=new lF(LMt,e,4,7)),e.b).i||1!=(!e.c&&(e.c=new lF(LMt,e,5,8)),e.c).i)throw jv(new Py(n8e));return dse($H(Gte((!e.c&&(e.c=new lF(LMt,e,5,8)),e.c),0),82))}function kSe(e){if(1!=(!e.b&&(e.b=new lF(LMt,e,4,7)),e.b).i||1!=(!e.c&&(e.c=new lF(LMt,e,5,8)),e.c).i)throw jv(new Py(n8e));return SEe($H(Gte((!e.c&&(e.c=new lF(LMt,e,5,8)),e.c),0),82))}function OSe(e,t,n){var r,i,o;if(++e.j,t>=(i=e.Vi())||t<0)throw jv(new Oy(o8e+t+a8e+i));if(n>=i||n<0)throw jv(new Oy(s8e+n+a8e+i));return t!=n?(o=e.Ti(n),e.Hi(t,o),r=o):r=e.Oi(n),r}function MSe(e){var t,n,r;if(r=e,e)for(t=0,n=e.Ug();n;n=n.Ug()){if(++t>Uqe)return MSe(n);if(r=n,n==e)throw jv(new Fy("There is a cycle in the containment hierarchy of "+e))}return r}function ISe(e){var t,n,r;for(r=new Mae(FKe,"[","]"),n=e.Kc();n.Ob();)d6(r,UO(t=n.Pb())===UO(e)?"(this Collection)":null==t?QKe:$fe(t));return r.a?0==r.e.length?r.a.a:r.a.a+""+r.e:r.c}function DSe(e,t){var n,r;if(r=!1,t.gc()<2)return!1;for(n=0;n<t.gc();n++)n<t.gc()-1?r|=PBe(e,$H(t.Xb(n),33),$H(t.Xb(n+1),33)):r|=PBe(e,$H(t.Xb(n),33),$H(t.Xb(0),33));return r}function NSe(e,t){var n;t!=e.a?(n=null,e.a&&(n=$H(e.a,49).ih(e,4,HMt,n)),t&&(n=$H(t,49).gh(e,4,HMt,n)),(n=que(e,t,n))&&n.Fi()):4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,1,t,t))}function RSe(e,t){var n;t!=e.e?(e.e&&P6(NK(e.e),e),t&&(!t.b&&(t.b=new _v(new Nb)),YP(t.b,e)),(n=Kwe(e,t,null))&&n.Fi()):4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,4,t,t))}function LSe(e){var t,n,r;for(n=e.length,r=0;r<n&&(d0(r,e.length),e.charCodeAt(r)<=32);)++r;for(t=n;t>r&&(d0(t-1,e.length),e.charCodeAt(t-1)<=32);)--t;return r>0||t<n?e.substr(r,t-r):e}function BSe(e,t){var n;n=t.o,fI(e.f)?(e.j.a=r.Math.max(e.j.a,n.a),e.j.b+=n.b,e.d.c.length>1&&(e.j.b+=e.e)):(e.j.a+=n.a,e.j.b=r.Math.max(e.j.b,n.b),e.d.c.length>1&&(e.j.a+=e.e))}function PSe(){PSe=M,Mct=Sse(Uw(FOt,1),YZe,61,0,[(bGe(),sOt),aOt,EOt]),Oct=Sse(Uw(FOt,1),YZe,61,0,[aOt,EOt,COt]),Ict=Sse(Uw(FOt,1),YZe,61,0,[EOt,COt,sOt]),Dct=Sse(Uw(FOt,1),YZe,61,0,[COt,sOt,aOt])}function FSe(e,t,n,r){var i,o,a,s,l;if(o=e.c.d,a=e.d.d,o.j!=a.j)for(l=e.b,i=o.j,s=null;i!=a.j;)s=0==t?xhe(i):whe(i),RU(r,zP(Qme(i,l.d[i.g],n),Qme(s,l.d[s.g],n))),i=s}function $Se(e,t,n,r){var i,o,a,s,l;return s=$H((a=Hye(e.a,t,n)).a,19).a,o=$H(a.b,19).a,r&&(l=$H(vSe(t,(lKe(),wht)),10),i=$H(vSe(n,wht),10),l&&i&&(Z3(e.b,l,i),s+=e.b.i,o+=e.b.e)),s>o}function jSe(e){var t,n,r,i,o,a,s,l;for(this.a=nAe(e),this.b=new Dv,r=0,i=(n=e).length;r<i;++r)for(t=n[r],o=new Dv,GH(this.b,o),s=0,l=(a=t).length;s<l;++s)GH(o,new ZF(a[s].j))}function HSe(e,t,n){var r,i,o;return o=0,r=n[t],t<n.length-1&&(i=n[t+1],e.b[t]?(o=dKe(e.d,r,i),o+=XV(e.a,r,(bGe(),aOt)),o+=XV(e.a,i,COt)):o=T7(e.a,r,i)),e.c[t]&&(o+=I6(e.a,r)),o}function USe(e,t,n,r,i){var o,a,s,l;for(l=null,s=new Gf(r);s.a<s.c.c.length;)if((a=$H(J0(s),441))!=n&&-1!=w9(a.e,i,0)){l=a;break}EZ(o=G5(i),n.b),xZ(o,l.b),qOe(e.a,i,new I$(o,t,n.f))}function QSe(e){for(;0!=e.g.c&&0!=e.d.c;)FB(e.g).c>FB(e.d).c?(e.i+=e.g.c,pge(e.d)):FB(e.d).c>FB(e.g).c?(e.e+=e.d.c,pge(e.g)):(e.i+=HQ(e.g),e.e+=HQ(e.d),pge(e.g),pge(e.d))}function zSe(e,t,n){var r,i,o,a;for(o=t.q,a=t.r,new QZ((k6(),_yt),t,o,1),new QZ(_yt,o,a,1),i=new Gf(n);i.a<i.c.c.length;)(r=$H(J0(i),112))!=o&&r!=t&&r!=a&&(pUe(e.a,r,t),pUe(e.a,r,a))}function WSe(e,t,n,i){e.a.d=r.Math.min(t,n),e.a.a=r.Math.max(t,i)-e.a.d,t<n?(e.b=.5*(t+n),e.g=B3e*e.b+.9*t,e.f=B3e*e.b+.9*n):(e.b=.5*(t+i),e.g=B3e*e.b+.9*i,e.f=B3e*e.b+.9*t)}function GSe(){function e(){return(new Date).getTime()}EKe={},!Array.isArray&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!Date.now&&(Date.now=e)}function VSe(e,t){var n,r;r=$H(vSe(t,(jVe(),evt)),98),lle(t,(lKe(),Aht),r),(n=t.e)&&(qE(new LQ(null,new h0(n.a,16)),new Lp(e)),qE(hee(new LQ(null,new h0(n.b,16)),new At),new Bp(e)))}function KSe(e){var t,n,i,o;if(pI($H(vSe(e.b,(jVe(),zgt)),103)))return 0;for(t=0,i=new Gf(e.a);i.a<i.c.c.length;)(n=$H(J0(i),10)).k==(oCe(),Cst)&&(o=n.o.a,t=r.Math.max(t,o));return t}function YSe(e){switch($H(vSe(e,(jVe(),bmt)),163).g){case 1:lle(e,bmt,(_fe(),$ht));break;case 2:lle(e,bmt,(_fe(),jht));break;case 3:lle(e,bmt,(_fe(),Pht));break;case 4:lle(e,bmt,(_fe(),Fht))}}function qSe(){qSe=M,rdt=new MT(KZe,0),edt=new MT(rJe,1),idt=new MT(iJe,2),ndt=new MT("LEFT_RIGHT_CONSTRAINT_LOCKING",3),tdt=new MT("LEFT_RIGHT_CONNECTION_LOCKING",4),Zut=new MT(H0e,5)}function XSe(e,t,n){var i,o,a,s,l,c,u;l=n.a/2,a=n.b/2,c=1,u=1,(i=r.Math.abs(t.a-e.a))>l&&(c=l/i),(o=r.Math.abs(t.b-e.b))>a&&(u=a/o),s=r.Math.min(c,u),e.a+=s*(t.a-e.a),e.b+=s*(t.b-e.b)}function JSe(e,t,n,r,i){var o,a;for(a=!1,o=$H(NQ(n.b,0),33);lHe(e,t,o,r,i)&&(a=!0,rxe(n,o),0!=n.b.c.length);)o=$H(NQ(n.b,0),33);return 0==n.b.c.length&&_we(n.j,n),a&&Ube(t.q),a}function ZSe(e,t){var n,r,i,o;if(yBe(),t.b<2)return!1;for(r=n=$H(d3(o=sve(t,0)),8);o.b!=o.d.c;){if(rRe(e,r,i=$H(d3(o),8)))return!0;r=i}return!!rRe(e,r,n)}function eCe(e,t,n,r){return 0==n?(!e.o&&(e.o=new A7((CVe(),xMt),tIt,e,0)),$F(e.o,t,r)):$H(tte($H(Aae(e,16),26)||e.zh(),n),66).Nj().Rj(e,cme(e),n-dV(e.zh()),t,r)}function tCe(e,t){var n;t!=e.sb?(n=null,e.sb&&(n=$H(e.sb,49).ih(e,1,$Mt,n)),t&&(n=$H(t,49).gh(e,1,$Mt,n)),(n=yde(e,t,n))&&n.Fi()):4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,4,t,t))}function nCe(e,t){var n,r;if(!t)throw jv(new ew("All edge sections need an end point."));n=Lne(t,"x"),_ne(new Bm(e).a,(bK(n),n)),r=Lne(t,"y"),kne(new Pm(e).a,(bK(r),r))}function rCe(e,t){var n,r;if(!t)throw jv(new ew("All edge sections need a start point."));n=Lne(t,"x"),Tne(new Nm(e).a,(bK(n),n)),r=Lne(t,"y"),One(new Rm(e).a,(bK(r),r))}function iCe(e,t){var n,r,i,o,a;for(r=0,o=gce(e).length;r<o;++r)mSe(t);for(a=!Knt&&e.e?Knt?null:e.d:null;a;){for(n=0,i=gce(a).length;n<i;++n)mSe(t);a=!Knt&&a.e?Knt?null:a.d:null}}function oCe(){oCe=M,Cst=new qC("NORMAL",0),Sst=new qC("LONG_EDGE",1),xst=new qC("EXTERNAL_PORT",2),Tst=new qC("NORTH_SOUTH_PORT",3),Est=new qC("LABEL",4),_st=new qC("BREAKING_POINT",5)}function aCe(e){var t,n,r,i;if(t=!1,IL(e,(lKe(),Qdt)))for(n=$H(vSe(e,Qdt),83),i=new Gf(e.j);i.a<i.c.c.length;)qDe(r=$H(J0(i),11))&&(t||(tOe(mK(e)),t=!0),cve($H(n.xc(r),306)))}function sCe(e,t,n){var r;kEe(n,"Self-Loop routing",1),r=Vhe(t),tM(vSe(t,(C6(),_St))),qE(MY(OY(OY(hee(new LQ(null,new h0(t.b,16)),new Wr),new Gr),new Vr),new Kr),new eT(e,r)),jCe(n)}function lCe(e){var t,n,r;return r=OEe(e),null!=e.e&&OU(r,J6e,e.e),!!e.k&&OU(r,"type",fL(e.k)),!Gx(e.j)&&(n=new Sh,nte(r,D6e,n),t=new rv(n),e5(e.j,t)),r}function cCe(e){var t,n,r,i;for(i=NV((ure(e.gc(),"size"),new Tw),123),r=!0,n=uW(e).Kc();n.Ob();)t=$H(n.Pb(),42),r||(i.a+=FKe),r=!1,oM(NV(oM(i,t.cd()),61),t.dd());return(i.a+="}",i).a}function uCe(e,t){var n,r,i;return(t&=63)<22?(n=e.l<<t,r=e.m<<t|e.l>>22-t,i=e.h<<t|e.m>>22-t):t<44?(n=0,r=e.l<<t-22,i=e.m<<t-22|e.l>>44-t):(n=0,r=0,i=e.l<<t-44),xD(n&Eqe,r&Eqe,i&Sqe)}function dCe(e){if(null==btt&&(btt=new RegExp("^\\s*[+-]?(NaN|Infinity|((\\d+\\.?\\d*)|(\\.\\d+))([eE][+-]?\\d+)?[dDfF]?)\\s*$")),!btt.test(e))throw jv(new xw(Rqe+e+'"'));return parseFloat(e)}function hCe(e){var t,n,r,i;for(t=new Dv,mG(n=N8(ORt,XXe,25,e.a.c.length,16,1),n.length),i=new Gf(e.a);i.a<i.c.c.length;)n[(r=$H(J0(i),121)).d]||(t.c[t.c.length]=r,Ume(e,r,n));return t}function fCe(e,t){var n,r,i,o;for(o=t.b.j,e.a=N8(kRt,lqe,25,o.c.length,15,1),i=0,r=0;r<o.c.length;r++)u0(r,o.c.length),0==(n=$H(o.c[r],11)).e.c.length&&0==n.g.c.length?i+=1:i+=3,e.a[r]=i}function pCe(){pCe=M,Rut=new TT("ALWAYS_UP",0),Nut=new TT("ALWAYS_DOWN",1),But=new TT("DIRECTION_UP",2),Lut=new TT("DIRECTION_DOWN",3),Fut=new TT("SMART_UP",4),Put=new TT("SMART_DOWN",5)}function gCe(e,t){if(e<0||t<0)throw jv(new Py("k and n must be positive"));if(t>e)throw jv(new Py("k must be smaller than n"));return 0==t||t==e?1:0==e?0:x_e(e)/(x_e(t)*x_e(e-t))}function mCe(e,t){var n,r,i,o;for(n=new kI(e);null!=n.g||n.c?null==n.g||0!=n.i&&$H(n.g[n.i-1],47).Ob():ZJ(n);)if(rN(o=$H(iNe(n),56),160))for(r=$H(o,160),i=0;i<t.length;i++)t[i].og(r)}function vCe(e){var t;return 64&e.Db?Yhe(e):((t=new cR(Yhe(e))).a+=" (height: ",mx(t,e.f),t.a+=", width: ",mx(t,e.g),t.a+=", x: ",mx(t,e.i),t.a+=", y: ",mx(t,e.j),t.a+=")",t.a)}function ACe(e){var t,n,r,i,o,a;for(t=new m4,i=0,o=(r=e).length;i<o;++i)if(null!=qme(t,a=AV((n=r[i]).cd()),AV(n.dd())))throw jv(new Py("duplicate key: "+a));this.b=(Eq(),new Wf(t))}function bCe(e){var t,n,r,i,o;if(null==e)return QKe;for(o=new Mae(FKe,"[","]"),r=0,i=(n=e).length;r<i;++r)t=n[r],d6(o,String.fromCharCode(t));return o.a?0==o.e.length?o.a.a:o.a.a+""+o.e:o.c}function yCe(){yCe=M,Bee(),Tot=new MM(aZe,kot=Lot),the(1),Cot=new MM(sZe,the(300)),the(0),Iot=new MM(lZe,the(0)),Dot=new MM(cZe,uZe),Oot=new MM(dZe,5),Not=Lot,Mot=Rot}function wCe(e,t){var n,r,i,o;for(r=(1==t?Gat:Wat).a.ec().Kc();r.Ob();)for(n=$H(r.Pb(),103),o=$H(l6(e.f.c,n),21).Kc();o.Ob();)i=$H(o.Pb(),46),GH(e.b.b,$H(i.b,81)),GH(e.b.a,$H(i.b,81).d)}function _Ce(e,t){var n;if(null!=t&&!e.c.Yj().wj(t))throw n=rN(t,56)?$H(t,56).Tg().zb:J_(Zle(t)),jv(new By(n6e+e.c.ne()+"'s type '"+e.c.Yj().ne()+"' does not permit a value of type '"+n+"'"))}function xCe(e,t,n){var r,i;for(i=new x2(e.b,0);i.b<i.d.gc();)SL(i.b<i.d.gc()),UO(vSe(r=$H(i.d.Xb(i.c=i.b++),70),(lKe(),mht)))===UO(t)&&(kTe(r.n,mK(e.c.i),n),cK(i),GH(t.b,r))}function ECe(e,t){if(t.a)switch($H(vSe(t.b,(lKe(),Aht)),98).g){case 0:case 1:uxe(t);case 2:qE(new LQ(null,new h0(t.d,16)),new Nr),aIe(e.a,t)}else qE(new LQ(null,new h0(t.d,16)),new Nr)}function SCe(e){var t,n;return n=r.Math.sqrt((null==e.k&&(e.k=Gie(e,new Eo)),Uy(e.k)/(e.b*(null==e.g&&(e.g=Wie(e,new xo)),Uy(e.g))))),t=fz(cae(r.Math.round(n))),r.Math.min(t,e.f)}function CCe(){poe(),IP.call(this),this.j=(bGe(),SOt),this.a=new U_,new cb,this.f=(ure(2,OYe),new q6(2)),this.e=(ure(4,OYe),new q6(4)),this.g=(ure(4,OYe),new q6(4)),this.b=new lT(this.e,this.g)}function TCe(e,t){var n;return!Hy(_B(vSe(t,(lKe(),Cht))))&&(n=t.c.i,(e!=(_fe(),Pht)||n.k!=(oCe(),Est))&&$H(vSe(n,(jVe(),bmt)),163)!=Fht)}function kCe(e,t){var n;return!Hy(_B(vSe(t,(lKe(),Cht))))&&(n=t.d.i,(e!=(_fe(),$ht)||n.k!=(oCe(),Est))&&$H(vSe(n,(jVe(),bmt)),163)!=jht)}function OCe(e,t){var n,r,i,o,a,s,l;for(a=e.d,l=e.o,s=new zY(-a.b,-a.d,a.b+l.a+a.c,a.d+l.b+a.a),i=0,o=(r=t).length;i<o;++i)(n=r[i])&&CTe(s,n.i);a.b=-s.c,a.d=-s.d,a.c=s.b-a.b-l.a,a.a=s.a-a.d-l.b}function MCe(){MCe=M,tEt=new xk("CENTER_DISTANCE",0),nEt=new xk("CIRCLE_UNDERLAP",1),oEt=new xk("RECTANGLE_UNDERLAP",2),rEt=new xk("INVERTED_OVERLAP",3),iEt=new xk("MINIMUM_ROOT_DISTANCE",4)}function ICe(e){var t,n,r,i;if(BBe(),null==e)return null;for(r=e.length,t=N8(TRt,GYe,25,2*r,15,1),n=0;n<r;n++)(i=e[n])<0&&(i+=256),t[2*n]=KNt[i>>4],t[2*n+1]=KNt[15&i];return $ge(t,0,t.length)}function DCe(e){var t;switch(JK(),e.c.length){case 0:return jet;case 1:return TU((t=$H(qke(new Gf(e)),42)).cd(),t.dd());default:return new ly($H(Kme(e,N8(Het,bYe,42,e.c.length,0,1)),165))}}function NCe(e){var t,n,r,i,o;for(t=new Iv,n=new Iv,f3(t,e),f3(n,e);n.b!=n.c;)for(o=new Gf($H(fG(n),37).a);o.a<o.c.c.length;)(i=$H(J0(o),10)).e&&(f3(t,r=i.e),f3(n,r));return t}function RCe(e,t){switch(t.g){case 1:return BH(e.j,(poe(),Nst));case 2:return BH(e.j,(poe(),Ist));case 3:return BH(e.j,(poe(),Lst));case 4:return BH(e.j,(poe(),Bst));default:return Eq(),Eq(),lnt}}function LCe(e,t){var n,r,i;n=sU(t,e.e),r=$H(LV(e.g.f,n),19).a,i=e.a.c.length-1,0!=e.a.c.length&&$H(NQ(e.a,i),287).c==r?(++$H(NQ(e.a,i),287).a,++$H(NQ(e.a,i),287).b):GH(e.a,new UL(r))}function BCe(e,t,n){var r,i;return 0!=(r=EPe(e,t,n))?r:IL(t,(lKe(),hht))&&IL(n,hht)?((i=wD($H(vSe(t,hht),19).a,$H(vSe(n,hht),19).a))<0?oFe(e,t,n):i>0&&oFe(e,n,t),i):TMe(e,t,n)}function PCe(e,t,n){var r,i,o,a;if(0!=t.b){for(r=new YE,a=sve(t,0);a.b!=a.d.c;)Fie(r,Nse(o=$H(d3(a),86))),(i=o.e).a=$H(vSe(o,(HQe(),pwt)),19).a,i.b=$H(vSe(o,gwt),19).a;PCe(e,r,voe(n,r.b/e.a|0))}}function FCe(e,t){var n,r,i,o,a;if(e.e<=t)return e.g;if(Q0(e,e.g,t))return e.g;for(o=e.r,r=e.g,a=e.r,i=(o-r)/2+r;r+1<o;)(n=rUe(e,i,!1)).b<=i&&n.a<=t?(a=i,o=i):r=i,i=(o-r)/2+r;return a}function $Ce(e,t,n){kEe(n,"Recursive Graph Layout",lBe(e,t,!0)),mCe(t,Sse(Uw(JEt,1),jKe,527,0,[new Od])),S8(t,(sKe(),vTt))||mCe(t,Sse(Uw(JEt,1),jKe,527,0,[new vs])),uVe(e,t,null,n),jCe(n)}function jCe(e){var t;if(null==e.p)throw jv(new Fy("The task has not begun yet."));e.b||(e.k&&(ME(),t=rfe(cae(Date.now()),VYe),e.q=1e-9*y2(tfe(t,e.o))),e.c<e.r&&Hre(e,e.r-e.c),e.b=!0)}function HCe(e){var t,n,r;for(RU(r=new bb,new Nk(e.j,e.k)),n=new ON((!e.a&&(e.a=new MN(DMt,e,5)),e.a));n.e!=n.i.gc();)RU(r,new Nk((t=$H(bve(n),469)).a,t.b));return RU(r,new Nk(e.b,e.c)),r}function UCe(e,t,n,r,i){var o,a,s,l;if(i)for(l=((o=new lW(i.a.length)).b-o.a)*o.c<0?(eC(),_Rt):new WN(o);l.Ob();)s=N2(i,$H(l.Pb(),19).a),R$e((a=new lq(e,t,n,r)).a,a.b,a.c,a.d,s)}function QCe(e,t){var n;if(UO(e)===UO(t))return!0;if(rN(t,21)){n=$H(t,21);try{return e.gc()==n.gc()&&e.Ic(n)}catch(e){if(rN(e=use(e),173)||rN(e,205))return!1;throw jv(e)}}return!1}function zCe(e,t){var n;GH(e.d,t),n=t.rf(),e.c?(e.e.a=r.Math.max(e.e.a,n.a),e.e.b+=n.b,e.d.c.length>1&&(e.e.b+=e.a)):(e.e.a+=n.a,e.e.b=r.Math.max(e.e.b,n.b),e.d.c.length>1&&(e.e.a+=e.a))}function WCe(e){var t,n,r,i;switch(t=(i=e.i).b,r=i.j,n=i.g,i.a.g){case 0:n.a=(e.g.b.o.a-r.a)/2;break;case 1:n.a=t.d.n.a+t.d.a.a;break;case 2:n.a=t.d.n.a+t.d.a.a-r.a;break;case 3:n.b=t.d.n.b+t.d.a.b}}function GCe(e,t,n,r,i){if(r<t||i<n)throw jv(new Py("The highx must be bigger then lowx and the highy must be bigger then lowy"));return e.a<t?e.a=t:e.a>r&&(e.a=r),e.b<n?e.b=n:e.b>i&&(e.b=i),e}function VCe(e){if(rN(e,149))return xRe($H(e,149));if(rN(e,229))return Xfe($H(e,229));if(rN(e,23))return lCe($H(e,23));throw jv(new Py(Q6e+ISe(new qy(Sse(Uw(Met,1),jKe,1,5,[e])))))}function KCe(e,t,n,r,i){var o,a,s;for(o=!0,a=0;a<r;a++)o&=0==n[a];if(0==i)iUe(n,r,e,0,t),a=t;else{for(s=32-i,o&=!(n[a]<<s),a=0;a<t-1;a++)e[a]=n[a+r]>>>i|n[a+r+1]<<s;e[a]=n[a+r]>>>i,++a}return o}function YCe(e,t,n,r){var i,o;if(t.k==(oCe(),Sst))for(o=new aW(XN(cfe(t).a.Kc(),new u));fIe(o);)if((i=$H(z5(o),17)).c.i.k==Sst&&e.c.a[i.c.i.c.p]==r&&e.c.a[t.c.p]==n)return!0;return!1}function qCe(e,t){var n,r,i,o;return t&=63,n=e.h&Sqe,t<22?(o=n>>>t,i=e.m>>t|n<<22-t,r=e.l>>t|e.m<<22-t):t<44?(o=0,i=n>>>t-22,r=e.m>>t-22|e.h<<44-t):(o=0,i=0,r=n>>>t-44),xD(r&Eqe,i&Eqe,o&Sqe)}function XCe(e,t,n,r){var i;this.b=r,this.e=e==(are(),Obt),i=t[n],this.d=bQ(ORt,[sYe,XXe],[177,25],16,[i.length,i.length],2),this.a=bQ(kRt,[sYe,lqe],[48,25],15,[i.length,i.length],2),this.c=new Qxe(t,n)}function JCe(e){var t,n,r;for(e.k=new a0((bGe(),Sse(Uw(FOt,1),YZe,61,0,[SOt,sOt,aOt,EOt,COt])).length,e.j.c.length),r=new Gf(e.j);r.a<r.c.c.length;)t=(n=$H(J0(r),113)).d.j,qOe(e.k,t,n);e.e=tRe(pW(e.k))}function ZCe(e,t){var n,r,i;_G(e.d,t),n=new _a,VK(e.c,t,n),n.f=Sue(t.c),n.a=Sue(t.d),n.d=(pLe(),(i=t.c.i.k)==(oCe(),Cst)||i==_st),n.e=(r=t.d.i.k)==Cst||r==_st,n.b=t.c.j==(bGe(),COt),n.c=t.d.j==aOt}function eTe(e){var t,n,r,i,o;for(o=RKe,i=RKe,r=new Gf(bfe(e));r.a<r.c.c.length;)t=(n=$H(J0(r),213)).e.e-n.d.e,n.e==e&&t<i?i=t:t<o&&(o=t);return i==RKe&&(i=-1),o==RKe&&(o=-1),new nO(the(i),the(o))}function tTe(e,t){var n,i,o;return o=XJe,Hve(),i=Xit,o=r.Math.abs(e.b),(n=r.Math.abs(t.f-e.b))<o&&(o=n,i=Jit),(n=r.Math.abs(e.a))<o&&(o=n,i=Zit),(n=r.Math.abs(t.g-e.a))<o&&(o=n,i=qit),i}function nTe(e,t){var n,r,i;for(n=t.a.o.a,i=new Ef(new s0(mK(t.a).b,t.c,t.f+1));i.b<i.d.gc();)if(SL(i.b<i.d.gc()),(r=$H(i.d.Xb(i.c=i.b++),29)).c.a>=n)return lTe(e,t,r.p),!0;return!1}function rTe(e){var t;return 64&e.Db?vCe(e):(t=new uR(X5e),!e.a||aM(aM((t.a+=' "',t),e.a),'"'),aM(bx(aM(bx(aM(bx(aM(bx((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function iTe(e,t,n){var r,i,o,a,s;for(s=iLe(e.e.Tg(),t),i=$H(e.g,119),r=0,a=0;a<e.i;++a)if(o=i[a],s.rl(o.ak())){if(r==n)return cBe(e,a),XS(),$H(t,66).Oj()?o:o.dd();++r}throw jv(new Oy(e7e+n+a8e+r))}function oTe(e){var t,n,r;if(2==(t=e.c)||7==t||1==t)return hKe(),hKe(),aRt;for(r=kVe(e),n=null;2!=(t=e.c)&&7!=t&&1!=t;)n||(hKe(),hKe(),ZUe(n=new nD(1),r),r=n),ZUe(n,kVe(e));return r}function aTe(e,t,n){return e<0||e>n?fke(e,n,"start index"):t<0||t>n?fke(t,n,"end index"):MPe("end index (%s) must not be less than start index (%s)",Sse(Uw(Met,1),jKe,1,5,[the(t),the(e)]))}function sTe(e,t){var n,r,i,o;for(r=0,i=e.length;r<i;r++){o=e[r];try{o[1]?o[0].jm()&&(t=_z(t,o)):o[0].jm()}catch(e){if(!rN(e=use(e),78))throw jv(e);n=e,Rw(),AX(rN(n,477)?$H(n,477).ae():n)}}return t}function lTe(e,t,n){var i,o;for(n!=t.c+t.b.gc()&&hUe(t.a,tae(t,n-t.c)),o=t.a.c.p,e.a[o]=r.Math.max(e.a[o],t.a.o.a),i=$H(vSe(t.a,(lKe(),Sht)),15).Kc();i.Ob();)lle($H(i.Pb(),70),Zlt,(lR(),!0))}function cTe(e,t){var n,i,o;o=HRe(t),lle(t,(lKe(),uht),o),o&&(i=RKe,OX(e.f,o)&&(i=$H(HO(OX(e.f,o)),19).a),Hy(_B(vSe(n=$H(NQ(t.g,0),17),Cht)))||VK(e,o,the(r.Math.min($H(vSe(n,hht),19).a,i))))}function uTe(e,t,n){var r,i,o,a;for(t.p=-1,a=Npe(t,(ire(),HAt)).Kc();a.Ob();)for(i=new Gf($H(a.Pb(),11).g);i.a<i.c.c.length;)t!=(o=(r=$H(J0(i),17)).d.i)&&(o.p<0?n.Fc(r):o.p>0&&uTe(e,o,n));t.p=0}function dTe(e){var t;this.c=new YE,this.f=e.e,this.e=e.d,this.i=e.g,this.d=e.c,this.b=e.b,this.k=e.j,this.a=e.a,e.i?this.j=e.i:this.j=new YF(t=$H(V_(ySt),9),$H(EP(t,t.length),9),0),this.g=e.f}function hTe(e){var t,n,r,i;for(t=NV(aM(new uR("Predicates."),"and"),40),n=!0,i=new Ef(e);i.b<i.d.gc();)SL(i.b<i.d.gc()),r=i.d.Xb(i.c=i.b++),n||(t.a+=","),t.a+=""+r,n=!1;return(t.a+=")",t).a}function fTe(e,t,n){var r,i,o;if(!(n<=t+2))for(i=(n-t)/2|0,r=0;r<i;++r)u0(t+r,e.c.length),o=$H(e.c[t+r],11),r5(e,t+r,(u0(n-r-1,e.c.length),$H(e.c[n-r-1],11))),u0(n-r-1,e.c.length),e.c[n-r-1]=o}function pTe(e,t,n){var r,i,o,a,s,l,c;s=(o=e.d.p).e,l=o.r,e.g=new KF(l),r=(a=e.d.o.c.p)>0?s[a-1]:N8(kst,i0e,10,0,0,1),i=s[a],c=a<s.length-1?s[a+1]:N8(kst,i0e,10,0,0,1),t==n-1?oZ(e.g,i,c):oZ(e.g,r,i)}function gTe(e){var t;this.j=new Dv,this.f=new LA,this.b=new YF(t=$H(V_(FOt),9),$H(EP(t,t.length),9),0),this.d=N8(kRt,lqe,25,(bGe(),Sse(Uw(FOt,1),YZe,61,0,[SOt,sOt,aOt,EOt,COt])).length,15,1),this.g=e}function mTe(e,t){var n,r,i;if(0!=t.c.length){for(n=_Se(e,t),i=!1;!n;)wDe(e,t,!0),i=!0,n=_Se(e,t);i&&wDe(e,t,!1),r=Rse(t),e.b&&e.b.lg(r),e.a=Mue(e,(u0(0,t.c.length),$H(t.c[0],33))),mTe(e,r)}}function vTe(e,t){var n,r,i;if(r=tte(e.Tg(),t),(n=t-e.Ah())<0){if(!r)throw jv(new Py(a6e+t+s6e));if(!r.Ij())throw jv(new Py(n6e+r.ne()+r6e));(i=e.Yg(r))>=0?e.Bh(i):rOe(e,r)}else Hde(e,n,r)}function ATe(e){var t,n;if(n=null,t=!1,rN(e,204)&&(t=!0,n=$H(e,204).a),t||rN(e,258)&&(t=!0,n=""+$H(e,258).a),t||rN(e,483)&&(t=!0,n=""+$H(e,483).a),!t)throw jv(new Iy(j6e));return n}function bTe(e,t){var n,r;if(e.f){for(;t.Ob();)if(rN(r=(n=$H(t.Pb(),72)).ak(),99)&&$H(r,18).Bb&l6e&&(!e.e||r.Gj()!=IMt||0!=r.aj())&&null!=n.dd())return t.Ub(),!0;return!1}return t.Ob()}function yTe(e,t){var n,r;if(e.f){for(;t.Sb();)if(rN(r=(n=$H(t.Ub(),72)).ak(),99)&&$H(r,18).Bb&l6e&&(!e.e||r.Gj()!=IMt||0!=r.aj())&&null!=n.dd())return t.Pb(),!0;return!1}return t.Sb()}function wTe(e,t,n){var r,i,o,a,s,l;for(l=iLe(e.e.Tg(),t),r=0,s=e.i,i=$H(e.g,119),a=0;a<e.i;++a)if(o=i[a],l.rl(o.ak())){if(n==r)return a;++r,s=a+1}if(n==r)return s;throw jv(new Oy(e7e+n+a8e+r))}function _Te(e,t){var n,i,o;if(0==e.f.c.length)return null;for(o=new dI,n=new Gf(e.f);n.a<n.c.c.length;)i=$H(J0(n),70).o,o.b=r.Math.max(o.b,i.a),o.a+=i.b;return o.a+=(e.f.c.length-1)*t,o}function xTe(e,t,n){var r,i,o;for(i=new aW(XN(lfe(n).a.Kc(),new u));fIe(i);)d5(r=$H(z5(i),17))||!d5(r)&&r.c.i.c==r.d.i.c||(o=QNe(e,r,n,new ob)).c.length>1&&(t.c[t.c.length]=o)}function ETe(e){var t,n,r;for(Fie(n=new YE,e.o),r=new ab;0!=n.b;)GGe(e,t=$H(0==n.b?null:(SL(0!=n.b),Ote(n,n.a.a)),508),!0)&&GH(r.a,t);for(;0!=r.a.c.length;)GGe(e,t=$H(Zce(r),508),!1)}function STe(){STe=M,bSt=new Mk(lJe,0),hSt=new Mk("BOOLEAN",1),mSt=new Mk("INT",2),ASt=new Mk("STRING",3),fSt=new Mk("DOUBLE",4),pSt=new Mk("ENUM",5),gSt=new Mk("ENUMSET",6),vSt=new Mk("OBJECT",7)}function CTe(e,t){var n,i,o,a,s;i=r.Math.min(e.c,t.c),a=r.Math.min(e.d,t.d),(o=r.Math.max(e.c+e.b,t.c+t.b))<i&&(n=i,i=o,o=n),(s=r.Math.max(e.d+e.a,t.d+t.a))<a&&(n=a,a=s,s=n),NU(e,i,a,o-i,s-a)}function TTe(){TTe=M,YDt=Sse(Uw(Ytt,1),sYe,2,6,[h9e,f9e,p9e,g9e,m9e,v9e,J6e]),KDt=Sse(Uw(Ytt,1),sYe,2,6,[h9e,"empty",f9e,B7e,"elementOnly"]),XDt=Sse(Uw(Ytt,1),sYe,2,6,[h9e,"preserve","replace",A9e]),qDt=new EU}function kTe(e,t,n){var r,i,o;if(t!=n){r=t;do{zP(e,r.c),(i=r.e)&&(PL(e,(o=r.d).b,o.d),zP(e,i.n),r=mK(i))}while(i);r=n;do{WP(e,r.c),(i=r.e)&&($L(e,(o=r.d).b,o.d),WP(e,i.n),r=mK(i))}while(i)}}function OTe(e,t,n,r){var i,o,a,s,l;if(r.f.c+r.g.c==0)for(s=0,l=(a=e.a[e.c]).length;s<l;++s)VK(r,o=a[s],new boe(e,o,n));return(i=$H(HO(OX(r.f,t)),663)).b=0,i.c=i.f,0==i.c||_f($H(NQ(i.a,i.b),287)),i}function MTe(){MTe=M,Xct=new yT("MEDIAN_LAYER",0),Zct=new yT("TAIL_LAYER",1),qct=new yT("HEAD_LAYER",2),Jct=new yT("SPACE_EFFICIENT_LAYER",3),eut=new yT("WIDEST_LAYER",4),Yct=new yT("CENTER_LAYER",5)}function ITe(e){switch(e.g){case 0:case 1:case 2:return bGe(),sOt;case 3:case 4:case 5:return bGe(),EOt;case 6:case 7:case 8:return bGe(),COt;case 9:case 10:case 11:return bGe(),aOt;default:return bGe(),SOt}}function DTe(e,t){var n;return 0!=e.c.length&&(n=Zpe((u0(0,e.c.length),$H(e.c[0],17)).c.i),$Z(),n==(dAe(),cAt)||n==lAt||a5(MY(new LQ(null,new h0(e,16)),new Ho),new tm(t)))}function NTe(e,t,n){var r,i,o;if(!e.b[t.g]){for(e.b[t.g]=!0,!(r=n)&&(r=new S6),RU(r.b,t),o=e.a[t.g].Kc();o.Ob();)(i=$H(o.Pb(),188)).b!=t&&NTe(e,i.b,r),i.c!=t&&NTe(e,i.c,r),RU(r.a,i);return r}return null}function RTe(){RTe=M,Kyt=new uk("ROOT_PROC",0),zyt=new uk("FAN_PROC",1),Gyt=new uk("NEIGHBORS_PROC",2),Wyt=new uk("LEVEL_HEIGHT",3),Vyt=new uk("NODE_POSITION_PROC",4),Qyt=new uk("DETREEIFYING_PROC",5)}function LTe(e,t){if(rN(t,239))return QI(e,$H(t,33));if(rN(t,186))return zI(e,$H(t,118));if(rN(t,439))return UI(e,$H(t,202));throw jv(new Py(Q6e+ISe(new qy(Sse(Uw(Met,1),jKe,1,5,[t])))))}function BTe(e,t,n){var r,i;if(this.f=e,h6(n,i=(r=$H(LV(e.b,t),283))?r.a:0),n>=(i/2|0))for(this.e=r?r.c:null,this.d=i;n++<i;)_Z(this);else for(this.c=r?r.b:null;n-- >0;)wZ(this);this.b=t,this.a=null}function PTe(e,t){var n,r;t.a?QRe(e,t):(!!(n=$H(bF(e.b,t.b),57))&&n==e.a[t.b.f]&&!!n.a&&n.a!=t.b.a&&n.c.Fc(t.b),!!(r=$H(AF(e.b,t.b),57))&&e.a[r.f]==t.b&&!!r.a&&r.a!=t.b.a&&t.b.c.Fc(r),xR(e.b,t.b))}function FTe(e,t){var n,r;if(n=$H(aY(e.b,t),124),$H($H(l6(e.r,t),21),84).dc())return n.n.b=0,void(n.n.c=0);n.n.b=e.C.b,n.n.c=e.C.c,e.A.Hc((vge(),POt))&&APe(e,t),r=Wve(e,t),SBe(e,t)==(rve(),$kt)&&(r+=2*e.w),n.a.a=r}function $Te(e,t){var n,r;if(n=$H(aY(e.b,t),124),$H($H(l6(e.r,t),21),84).dc())return n.n.d=0,void(n.n.a=0);n.n.d=e.C.d,n.n.a=e.C.a,e.A.Hc((vge(),POt))&&bPe(e,t),r=Gve(e,t),SBe(e,t)==(rve(),$kt)&&(r+=2*e.w),n.a.b=r}function jTe(e,t){var n,r,i,o;for(o=new Dv,r=new Gf(t);r.a<r.c.c.length;)GH(o,new LC(n=$H(J0(r),65),!0)),GH(o,new LC(n,!1));vy((i=new lX(e)).a.a),e2(o,e.b,new qy(Sse(Uw(art,1),jKe,679,0,[i])))}function HTe(e,t,n,r){var i,o,a,s,l,c,u,d,h,f,p;return s=e.a,d=e.b,l=t.a,h=t.b,c=n.a,f=n.b,new Nk(((o=s*h-d*l)*(c-(u=r.a))-(a=c*(p=r.b)-f*u)*(s-l))/(i=(s-l)*(f-p)-(d-h)*(c-u)),(o*(f-p)-a*(d-h))/i)}function UTe(e,t){var n,r,i;if(!e.d[t.p]){for(e.d[t.p]=!0,e.a[t.p]=!0,r=new aW(XN(ufe(t).a.Kc(),new u));fIe(r);)d5(n=$H(z5(r),17))||(i=n.d.i,e.a[i.p]?GH(e.b,n):UTe(e,i));e.a[t.p]=!1}}function QTe(e,t,n){var r;switch(r=0,$H(vSe(t,(jVe(),bmt)),163).g){case 2:r=2*-n+e.a,++e.a;break;case 1:r=-n;break;case 3:r=n;break;case 4:r=2*n+e.b,++e.b}return IL(t,(lKe(),hht))&&(r+=$H(vSe(t,hht),19).a),r}function zTe(e,t,n){var r,i,o;for(n.zc(t,e),GH(e.n,t),o=e.p.eg(t),t.j==e.p.fg()?kfe(e.e,o):kfe(e.j,o),nV(e),i=DG(Gne(Sse(Uw(Ret,1),jKe,20,0,[new jp(t),new Up(t)])));fIe(i);)r=$H(z5(i),11),n._b(r)||zTe(e,r,n)}function WTe(e){var t,n;return $H(XIe(e,(sKe(),BCt)),21).Hc((vge(),ROt))?(n=$H(XIe(e,HCt),21),t=new hI($H(XIe(e,$Ct),8)),n.Hc((JFe(),UOt))&&(t.a<=0&&(t.a=20),t.b<=0&&(t.b=20)),t):new U_}function GTe(e){var t,n,r;if(!e.b){for(r=new kl,n=new iL(LHe(e));n.e!=n.i.gc();)(t=$H(yve(n),18)).Bb&l6e&&c7(r,t);rue(r),e.b=new DM(($H(Gte(Kq((KV(),JIt).o),8),18),r.i),r.g),S5(e).b&=-9}return e.b}function VTe(e,t){var n,r,i,o,a,s;a=$H(wbe(pW(t.k),N8(FOt,YZe,61,2,0,1)),122),Xbe(e,s=t.g,n=a3(t,a[0]),r=o3(t,a[1]))<=Xbe(e,s,i=a3(t,a[1]),o=o3(t,a[0]))?(t.a=n,t.c=r):(t.a=i,t.c=o)}function KTe(e,t,n){var r,i,o;for(kEe(n,"Processor set neighbors",1),e.a=0==t.b.b?1:t.b.b,i=null,r=sve(t.b,0);!i&&r.b!=r.d.c;)Hy(_B(vSe(o=$H(d3(r),86),(HQe(),fwt))))&&(i=o);i&&IBe(e,new dm(i),n),jCe(n)}function YTe(e){var t,n,r,i;return LUe(),t=-1==(r=UM(e,YEe(35)))?e:e.substr(0,r),n=-1==r?null:e.substr(r+1),(i=V3(yIt,t))?null!=n&&(i=Cce(i,(bK(n),n))):(i=GVe(t),i5(yIt,t,i),null!=n&&(i=Cce(i,n))),i}function qTe(e){var t,n,r,i,o,a,s;if(Eq(),rN(e,54))for(o=0,i=e.gc()-1;o<i;++o,--i)t=e.Xb(o),e._c(o,e.Xb(i)),e._c(i,t);else for(n=e.Yc(),a=e.Zc(e.gc());n.Tb()<a.Vb();)r=n.Pb(),s=a.Ub(),n.Wb(s),a.Wb(r)}function XTe(e,t){var n,r,i;kEe(t,"End label pre-processing",1),n=Uy(xB(vSe(e,(jVe(),yvt)))),r=Uy(xB(vSe(e,Evt))),i=pI($H(vSe(e,zgt),103)),qE(hee(new LQ(null,new h0(e.b,16)),new un),new R$(n,r,i)),jCe(t)}function JTe(e,t){var n,r,i,o,a,s;for(s=0,f3(o=new Iv,t);o.b!=o.c;)for(s+=sye((a=$H(fG(o),214)).d,a.e),i=new Gf(a.b);i.a<i.c.c.length;)r=$H(J0(i),37),(n=$H(NQ(e.b,r.p),214)).s||(s+=JTe(e,n));return s}function ZTe(e,t,n){var i,o;Pae(this),t==(fJ(),Iyt)?_G(this.r,e.c):_G(this.w,e.c),_G(n==Iyt?this.r:this.w,e.d),ZCe(this,e),WSe(this,i=Sue(e.c),o=Sue(e.d),o),this.o=(pLe(),r.Math.abs(i-o)<.2)}function eke(e,t,n){var r,i,o,a,s;if(null!=(a=$H(Aae(e.a,8),1936)))for(i=0,o=a.length;i<o;++i)null.jm();r=n,1&e.a.Db||(s=new oK(e,n,t),r.ui(s)),rN(r,672)?$H(r,672).wi(e.a):r.ti()==e.a&&r.vi(null)}function tke(){var e;return qNt?$H(MDe((GS(),UIt),E9e),1945):(sGe(),e=$H(rN(EJ((GS(),UIt),E9e),586)?EJ(UIt,E9e):new QK,586),qNt=!0,pVe(e),gKe(e),VK((VS(),qIt),e,new Fc),_ye(e),vZ(UIt,E9e,e),e)}function nke(e,t,n,r){var i;return(i=QEe(e,n,Sse(Uw(Ytt,1),sYe,2,6,[dqe,hqe,fqe,pqe,gqe,mqe,vqe]),t))<0&&(i=QEe(e,n,Sse(Uw(Ytt,1),sYe,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),t)),!(i<0||(r.d=i,0))}function rke(e,t,n,r){var i;return(i=QEe(e,n,Sse(Uw(Ytt,1),sYe,2,6,[dqe,hqe,fqe,pqe,gqe,mqe,vqe]),t))<0&&(i=QEe(e,n,Sse(Uw(Ytt,1),sYe,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),t)),!(i<0||(r.d=i,0))}function ike(e){var t,n,r;for(PDe(e),r=new Dv,n=new Gf(e.a.a.b);n.a<n.c.c.length;)GH(r,new cT(t=$H(J0(n),81),!0)),GH(r,new cT(t,!1));JAe(e.c),t2(r,e.b,new qy(Sse(Uw(qat,1),jKe,369,0,[e.c]))),mIe(e)}function oke(e){var t,n,r,i;for(n=new Nv,i=new Gf(e.d);i.a<i.c.c.length;)r=$H(J0(i),181),t=$H(r.We((lKe(),zdt)),17),OX(n.f,t)||VK(n,t,new _q(t)),GH($H(HO(OX(n.f,t)),456).b,r);return new ZF(new kf(n))}function ake(e,t){var n,r,i,o,a;for(r=new f0(e.j.c.length),n=null,o=new Gf(e.j);o.a<o.c.c.length;)(i=$H(J0(o),11)).j!=n&&(r.b==r.c||FDe(r,n,t),a4(r),n=i.j),(a=vIe(i))&&h3(r,a);r.b==r.c||FDe(r,n,t)}function ske(e,t){var n,r;for(r=new x2(e.b,0);r.b<r.d.gc();)SL(r.b<r.d.gc()),n=$H(r.d.Xb(r.c=r.b++),70),$H(vSe(n,(jVe(),Ygt)),272)==(Lte(),zTt)&&(cK(r),GH(t.b,n),IL(n,(lKe(),zdt))||lle(n,zdt,e))}function lke(e){var t,n,i;for(t=F3(new aW(XN(ufe(e).a.Kc(),new u))),n=new aW(XN(cfe(e).a.Kc(),new u));fIe(n);)i=F3(new aW(XN(ufe($H(z5(n),17).c.i).a.Kc(),new u))),t=r.Math.max(t,i);return the(t)}function cke(e,t,n){var r,i,o,a;for(kEe(n,"Processor arrange node",1),i=null,o=new YE,r=sve(t.b,0);!i&&r.b!=r.d.c;)Hy(_B(vSe(a=$H(d3(r),86),(HQe(),fwt))))&&(i=a);n5(o,i,o.c.b,o.c),YWe(e,o,voe(n,1)),jCe(n)}function uke(e,t,n){var r,i,o;r=$H(XIe(e,(sKe(),lCt)),21),i=0,o=0,t.a>n.a&&(r.Hc((hxe(),GSt))?i=(t.a-n.a)/2:r.Hc(KSt)&&(i=t.a-n.a)),t.b>n.b&&(r.Hc((hxe(),qSt))?o=(t.b-n.b)/2:r.Hc(YSt)&&(o=t.b-n.b)),uSe(e,i,o)}function dke(e,t,n,r,i,o,a,s,l,c,u,d,h){rN(e.Cb,88)&&Oke(S5($H(e.Cb,88)),4),Die(e,n),e.f=a,Mhe(e,s),Dhe(e,l),Ohe(e,c),Ihe(e,u),Jde(e,d),Hhe(e,h),Yde(e,!0),Ine(e,i),e.ok(o),Tue(e,t),null!=r&&(e.i=null,iie(e,r))}function hke(e){var t,n;if(e.f){for(;e.n>0;){if(rN(n=(t=$H(e.k.Xb(e.n-1),72)).ak(),99)&&$H(n,18).Bb&l6e&&(!e.e||n.Gj()!=IMt||0!=n.aj())&&null!=t.dd())return!0;--e.n}return!1}return e.n>0}function fke(e,t,n){if(e<0)return MPe($Ke,Sse(Uw(Met,1),jKe,1,5,[n,the(e)]));if(t<0)throw jv(new Py(HKe+t));return MPe("%s (%s) must not be greater than size (%s)",Sse(Uw(Met,1),jKe,1,5,[n,the(e),the(t)]))}function pke(e,t,n,r,i,o){var a,s,l;if(r-n<7)Mfe(t,n,r,o);else if(pke(t,e,s=n+i,l=s+((a=r+i)-s>>1),-i,o),pke(t,e,l,a,-i,o),o.ue(e[l-1],e[l])<=0)for(;n<r;)MV(t,n++,e[s++]);else Ude(e,s,l,a,t,n,r,o)}function gke(e,t){var n,r,i;for(i=new Dv,r=new Gf(e.c.a.b);r.a<r.c.c.length;)n=$H(J0(r),57),t.Lb(n)&&(GH(i,new kC(n,!0)),GH(i,new kC(n,!1)));XAe(e.e),e2(i,e.d,new qy(Sse(Uw(art,1),jKe,679,0,[e.e])))}function mke(e,t){var n,r,i,o,a,s,l;for(l=t.d,i=t.b.j,s=new Gf(l);s.a<s.c.c.length;)for(a=$H(J0(s),101),o=N8(ORt,XXe,25,i.c.length,16,1),VK(e.b,a,o),n=a.a.d.p-1,r=a.c.d.p;n!=r;)o[n=(n+1)%i.c.length]=!0}function vke(e,t){for(e.r=new Fae(e.p),Yh(e.r,e),Fie(e.r.j,e.j),Aq(e.j),RU(e.j,t),RU(e.r.e,t),nV(e),nV(e.r);0!=e.f.c.length;)UD($H(NQ(e.f,0),129));for(;0!=e.k.c.length;)UD($H(NQ(e.k,0),129));return e.r}function Ake(e,t,n){var r,i,o;if(i=tte(e.Tg(),t),(r=t-e.Ah())<0){if(!i)throw jv(new Py(a6e+t+s6e));if(!i.Ij())throw jv(new Py(n6e+i.ne()+r6e));(o=e.Yg(i))>=0?e.sh(o,n):_Ne(e,i,n)}else Ife(e,r,i,n)}function bke(e){var t,n,r,i;if(n=$H(e,49).qh())try{if(r=null,(t=MDe((GS(),UIt),x$e(Pfe(n))))&&(i=t.rh())&&(r=i.Wk(Wy(n.e))),r&&r!=e)return bke(r)}catch(e){if(!rN(e=use(e),60))throw jv(e)}return e}function yke(e,t,n){var r,i,o,a;if(a=null==t?0:e.b.se(t),0==(i=null==(r=e.a.get(a))?new Array:r).length)e.a.set(a,i);else if(o=lue(e,t,i))return o.ed(n);return MV(i,i.length,new SC(t,n)),++e.c,aX(e.b),null}function wke(e,t){var n;return l2(e.a),CG(e.a,(Sie(),Kwt),Kwt),CG(e.a,Ywt,Ywt),fQ(n=new $2,Ywt,(Cfe(),e_t)),UO(XIe(t,(zye(),E_t)))!==UO((jce(),s_t))&&fQ(n,Ywt,Jwt),fQ(n,Ywt,Zwt),iI(e.a,n),MQe(e.a,t)}function _ke(e){if(!e)return uw(),ctt;var t=e.valueOf?e.valueOf():e;if(t!==e){var n=utt[typeof t];return n?n(t):bue(typeof t)}return e instanceof Array||e instanceof r.Array?new wh(e):new Eh(e)}function xke(e,t,n){var i,o,a;switch(a=e.o,(o=(i=$H(aY(e.p,n),244)).i).b=EOe(i),o.a=xOe(i),o.b=r.Math.max(o.b,a.a),o.b>a.a&&!t&&(o.b=a.a),o.c=-(o.b-a.a)/2,n.g){case 1:o.d=-o.a;break;case 3:o.d=a.b}Pje(i),Uje(i)}function Eke(e,t,n){var i,o,a;switch(a=e.o,(o=(i=$H(aY(e.p,n),244)).i).b=EOe(i),o.a=xOe(i),o.a=r.Math.max(o.a,a.b),o.a>a.b&&!t&&(o.a=a.b),o.d=-(o.a-a.b)/2,n.g){case 4:o.c=-o.b;break;case 2:o.c=a.a}Pje(i),Uje(i)}function Ske(e,t){var n,r,i,o,a;if(!t.dc())if(i=$H(t.Xb(0),128),1!=t.gc())for(n=1;n<t.gc();)!i.j&&i.o||(o=mye(t,n))&&(r=$H(o.a,19).a,bLe(e,i,a=$H(o.b,128),n,r,t),n=r+1,i=a);else bLe(e,i,i,1,0,t)}function Cke(e){var t,n,r,i;for(vD(i=new ZF(e.d),new Wi),bBe(),t=Sse(Uw(tut,1),MYe,270,0,[$ct,Uct,Fct,Wct,Hct,jct,zct,Qct]),n=0,r=new Gf(i);r.a<r.c.c.length;)CMe($H(J0(r),101),t[n%t.length]),++n}function Tke(e,t){var n,r,i,o;if(yBe(),t.b<2)return!1;for(r=n=$H(d3(o=sve(t,0)),8);o.b!=o.d.c;){if(i=$H(d3(o),8),!Roe(e,r)||!Roe(e,i))return!1;r=i}return!(!Roe(e,r)||!Roe(e,n))}function kke(e,t){var n,r,i,o,a;return n=Lne(a=e,"x"),J9(new Hm(t).a,n),r=Lne(a,"y"),Z9(new Um(t).a,r),i=Lne(a,C6e),eee(new Qm(t).a,i),o=Lne(a,S6e),tee(new zm(t).a,o),o}function Oke(e,t){fPe(e,t),1&e.b&&(e.a.a=null),2&e.b&&(e.a.f=null),4&e.b&&(e.a.g=null,e.a.i=null),16&e.b&&(e.a.d=null,e.a.e=null),8&e.b&&(e.a.b=null),32&e.b&&(e.a.j=null,e.a.c=null)}function Mke(e,t){var n,r;if(r=0,t.length>0)try{r=u$e(t,PYe,RKe)}catch(e){throw rN(e=use(e),127)?jv(new I9(e)):jv(e)}return!e.a&&(e.a=new Ev(e)),r<(n=e.a).i&&r>=0?$H(Gte(n,r),56):null}function Ike(e,t){if(e<0)return MPe($Ke,Sse(Uw(Met,1),jKe,1,5,["index",the(e)]));if(t<0)throw jv(new Py(HKe+t));return MPe("%s (%s) must be less than size (%s)",Sse(Uw(Met,1),jKe,1,5,["index",the(e),the(t)]))}function Dke(e){var t,n,r,i,o;if(null==e)return QKe;for(o=new Mae(FKe,"[","]"),r=0,i=(n=e).length;r<i;++r)t=n[r],o.a?aM(o.a,o.b):o.a=new uR(o.d),iM(o.a,""+t);return o.a?0==o.e.length?o.a.a:o.a.a+""+o.e:o.c}function Nke(e){var t,n,r,i,o;if(null==e)return QKe;for(o=new Mae(FKe,"[","]"),r=0,i=(n=e).length;r<i;++r)t=n[r],o.a?aM(o.a,o.b):o.a=new uR(o.d),iM(o.a,""+t);return o.a?0==o.e.length?o.a.a:o.a.a+""+o.e:o.c}function Rke(e){var t,n,r,i,o;if(null==e)return QKe;for(o=new Mae(FKe,"[","]"),r=0,i=(n=e).length;r<i;++r)t=n[r],o.a?aM(o.a,o.b):o.a=new uR(o.d),iM(o.a,""+t);return o.a?0==o.e.length?o.a.a:o.a.a+""+o.e:o.c}function Lke(e){var t,n,r,i,o;if(null==e)return QKe;for(o=new Mae(FKe,"[","]"),r=0,i=(n=e).length;r<i;++r)t=n[r],o.a?aM(o.a,o.b):o.a=new uR(o.d),iM(o.a,""+t);return o.a?0==o.e.length?o.a.a:o.a.a+""+o.e:o.c}function Bke(e,t){var n,r,i,o,a,s;for(n=e.b.c.length,i=NQ(e.b,t);2*t+1<n&&(s=o=2*t+1,(a=o+1)<n&&e.a.ue(NQ(e.b,a),NQ(e.b,o))<0&&(s=a),r=s,!(e.a.ue(i,NQ(e.b,r))<0));)r5(e.b,t,NQ(e.b,r)),t=r;r5(e.b,t,i)}function Pke(e,t,n,i,o,a){var s,l,c,u,d;for(UO(e)===UO(n)&&(e=e.slice(t,t+o),t=0),c=n,l=t,u=t+o;l<u;)o=(s=r.Math.min(l+1e4,u))-l,(d=e.slice(l,s)).splice(0,0,i,a?o:0),Array.prototype.splice.apply(c,d),l=s,i+=o}function Fke(e,t,n){var r,i;return r=n.d,i=n.e,e.g[r.d]<=e.i[t.d]&&e.i[t.d]<=e.i[r.d]&&e.g[i.d]<=e.i[t.d]&&e.i[t.d]<=e.i[i.d]?!(e.i[r.d]<e.i[i.d]):e.i[r.d]<e.i[i.d]}function $ke(e){var t,n,r,i,o,a,s;if((r=e.a.c.length)>0)for(a=e.c.d,i=bN(WP(new Nk((s=e.d.d).a,s.b),a),1/(r+1)),o=new Nk(a.a,a.b),n=new Gf(e.a);n.a<n.c.c.length;)(t=$H(J0(n),559)).d.a=o.a,t.d.b=o.b,zP(o,i)}function jke(e,t,n){var i,o,a,s,l,c;for(c=Lqe,a=new Gf(UNe(e.b));a.a<a.c.c.length;)for(o=$H(J0(a),168),l=new Gf(UNe(t.b));l.a<l.c.c.length;)s=$H(J0(l),168),i=Cse(o.a,o.b,s.a,s.b,n),c=r.Math.min(c,i);return c}function Hke(e,t){if(!t)throw jv(new pA);if(e.j=t,!e.d)switch(e.j.g){case 1:e.a.a=e.o.a/2,e.a.b=0;break;case 2:e.a.a=e.o.a,e.a.b=e.o.b/2;break;case 3:e.a.a=e.o.a/2,e.a.b=e.o.b;break;case 4:e.a.a=0,e.a.b=e.o.b/2}}function Uke(e,t){var n,i;return rN(t.g,10)&&$H(t.g,10).k==(oCe(),xst)?Lqe:c3(t)?r.Math.max(0,e.b/2-.5):(n=c2(t))?(i=Uy(xB(ege(n,(jVe(),kvt)))),r.Math.max(0,i/2-.5)):Lqe}function Qke(e,t){var n,i;return rN(t.g,10)&&$H(t.g,10).k==(oCe(),xst)?Lqe:c3(t)?r.Math.max(0,e.b/2-.5):(n=c2(t))?(i=Uy(xB(ege(n,(jVe(),kvt)))),r.Math.max(0,i/2-.5)):Lqe}function zke(e){var t,n,r,i;for(i=Ide(e.d,e.e).Kc();i.Ob();)for(r=$H(i.Pb(),11),n=new Gf(e.e==(bGe(),COt)?r.e:r.g);n.a<n.c.c.length;)d5(t=$H(J0(n),17))||t.c.i.c==t.d.i.c||(LCe(e,t),++e.f,++e.c)}function Wke(e,t){var n,r;if(t.dc())return Eq(),Eq(),lnt;for(GH(r=new Dv,the(PYe)),n=1;n<e.f;++n)null==e.a&&hPe(e),e.a[n]&&GH(r,the(n));return 1==r.c.length?(Eq(),Eq(),lnt):(GH(r,the(RKe)),fHe(t,r))}function Gke(e,t){var n,r,i,o,a,s;n=rwe(t,s=t.c.i.k!=(oCe(),Cst)?t.d:t.c).i,i=$H(LV(e.k,s),121),r=e.i[n.p].a,OF(s.i)<(n.c?w9(n.c.a,n,0):-1)?(o=i,a=r):(o=r,a=i),zRe(iS(rS(oS(nS(new jA,0),4),o),a))}function Vke(e,t,n){var r,i,o;if(n)for(i=((r=new lW(n.a.length)).b-r.a)*r.c<0?(eC(),_Rt):new WN(r);i.Ob();)(o=Obe(e,bOe(fee(n,$H(i.Pb(),19).a))))&&(!t.b&&(t.b=new lF(LMt,t,4,7)),c7(t.b,o))}function Kke(e,t,n){var r,i,o;if(n)for(i=((r=new lW(n.a.length)).b-r.a)*r.c<0?(eC(),_Rt):new WN(r);i.Ob();)(o=Obe(e,bOe(fee(n,$H(i.Pb(),19).a))))&&(!t.c&&(t.c=new lF(LMt,t,5,8)),c7(t.c,o))}function Yke(e,t,n){var r,i;r=t.a&e.f,t.b=e.b[r],e.b[r]=t,i=t.f&e.f,t.d=e.c[i],e.c[i]=t,n?(t.e=n.e,t.e?t.e.c=t:e.a=t,t.c=n.c,t.c?t.c.e=t:e.e=t):(t.e=e.e,t.c=null,e.e?e.e.c=t:e.a=t,e.e=t),++e.i,++e.g}function qke(e){var t,n,r;if(t=e.Pb(),!e.Ob())return t;for(r=oM(aM(new Cw,"expected one element but was: <"),t),n=0;n<4&&e.Ob();n++)oM((r.a+=FKe,r),e.Pb());throw e.Ob()&&(r.a+=", ..."),r.a+=">",jv(new Py(r.a))}function Xke(e,t){var n;t.d?t.d.b=t.b:e.a=t.b,t.b?t.b.d=t.d:e.e=t.d,t.e||t.c?(--(n=$H(LV(e.b,t.a),283)).a,t.e?t.e.c=t.c:n.b=t.c,t.c?t.c.e=t.e:n.c=t.e):((n=$H(m6(e.b,t.a),283)).a=0,++e.c),--e.d}function Jke(e){var t,n;return n=-e.a,t=Sse(Uw(TRt,1),GYe,25,15,[43,48,48,48,48]),n<0&&(t[0]=45,n=-n),t[1]=t[1]+((n/60|0)/10|0)&KYe,t[2]=t[2]+(n/60|0)%10&KYe,t[3]=t[3]+(n%60/10|0)&KYe,t[4]=t[4]+n%10&KYe,$ge(t,0,t.length)}function Zke(e,t,n){var r,i;for(r=t.d,i=n.d;r.a-i.a==0&&r.b-i.b==0;)r.a+=jDe(e,26)*nXe+jDe(e,27)*rXe-.5,r.b+=jDe(e,26)*nXe+jDe(e,27)*rXe-.5,i.a+=jDe(e,26)*nXe+jDe(e,27)*rXe-.5,i.b+=jDe(e,26)*nXe+jDe(e,27)*rXe-.5}function eOe(e){var t,n,r,i;for(e.g=new jfe($H(AV(FOt),290)),r=0,bGe(),n=sOt,t=0;t<e.j.c.length;t++)(i=$H(NQ(e.j,t),11)).j!=n&&(r!=t&&vz(e.g,n,new nO(the(r),the(t))),n=i.j,r=t);vz(e.g,n,new nO(the(r),the(t)))}function tOe(e){var t,n,r,i,o;for(n=0,t=new Gf(e.b);t.a<t.c.c.length;)for(i=new Gf($H(J0(t),29).a);i.a<i.c.c.length;)for((r=$H(J0(i),10)).p=n++,o=new Gf(r.j);o.a<o.c.c.length;)$H(J0(o),11).p=n++}function nOe(e,t,n,r,i){var o,a,s,l;if(t)for(a=t.Kc();a.Ob();)for(l=rPe($H(a.Pb(),10),(ire(),HAt),n).Kc();l.Ob();)s=$H(l.Pb(),11),(o=$H(HO(OX(i.f,s)),112))||(o=new Fae(e.d),r.c[r.c.length]=o,zTe(o,s,i))}function rOe(e,t){var n,r,i;if(!(i=FQe((TTe(),qDt),e.Tg(),t)))throw jv(new Py(n6e+t.ne()+r6e));XS(),$H(i,66).Oj()||(i=X0($9(qDt,i))),r=$H((n=e.Yg(i))>=0?e._g(n,!0,!0):rMe(e,i,!0),153),$H(r,215).ol(t)}function iOe(e){var t,n;return e>-0x800000000000&&e<0x800000000000?0==e?0:((t=e<0)&&(e=-e),n=CJ(r.Math.floor(r.Math.log(e)/.6931471805599453)),(!t||e!=r.Math.pow(2,n))&&++n,n):Vae(cae(e))}function oOe(e){var t,n,r,i,o,a,s;for(o=new cI,n=new Gf(e);n.a<n.c.c.length;)a=(t=$H(J0(n),129)).a,s=t.b,o.a._b(a)||o.a._b(s)||(i=a,r=s,a.e.b+a.j.b>2&&s.e.b+s.j.b<=2&&(i=s,r=a),o.a.zc(i,o),i.q=r);return o}function aOe(e,t){var n,r,i;return Hae(r=new MAe(e),t),lle(r,(lKe(),Vdt),t),lle(r,(jVe(),evt),(Kxe(),Wkt)),lle(r,bgt,(hAe(),kSt)),Fh(r,(oCe(),xst)),CZ(n=new CCe,r),Hke(n,(bGe(),COt)),CZ(i=new CCe,r),Hke(i,aOt),r}function sOe(e){switch(e.g){case 0:return new Dy((are(),kbt));case 1:return new hd;case 2:return new bd;default:throw jv(new Py("No implementation is available for the crossing minimizer "+(null!=e.f?e.f:""+e.g)))}}function lOe(e,t){var n,r,i,o;for(e.c[t.p]=!0,GH(e.a,t),o=new Gf(t.j);o.a<o.c.c.length;)for(n=new v6((i=$H(J0(o),11)).b);AD(n.a)||AD(n.b);)r=Jge(i,$H(AD(n.a)?J0(n.a):J0(n.b),17)).i,e.c[r.p]||lOe(e,r)}function cOe(e){var t,n,i,o,a,s,l;for(s=0,n=new ON((!e.a&&(e.a=new eG(QMt,e,10,11)),e.a));n.e!=n.i.gc();)l=(t=$H(bve(n),33)).g,o=t.f,i=r.Math.sqrt(l*l+o*o),s=r.Math.max(i,s),a=cOe(t),s=r.Math.max(a,s);return s}function uOe(){uOe=M,nOt=new Wk("OUTSIDE",0),eOt=new Wk("INSIDE",1),tOt=new Wk("NEXT_TO_PORT_IF_POSSIBLE",2),Zkt=new Wk("ALWAYS_SAME_SIDE",3),Jkt=new Wk("ALWAYS_OTHER_SAME_SIDE",4),rOt=new Wk("SPACE_EFFICIENT",5)}function dOe(e,t,n){var r,i,o,a;return Mre(r=B2(e,(Z_(),i=new yb,!!n&&JNe(i,n),i),t),L2(t,H6e)),EEe(t,r),aDe(t,r),kke(t,r),o=D2(t,"ports"),SNe((a=new gO(e,r)).a,a.b,o),Nle(e,t,r),ise(e,t,r),r}function hOe(e){var t,n;return n=-e.a,t=Sse(Uw(TRt,1),GYe,25,15,[43,48,48,58,48,48]),n<0&&(t[0]=45,n=-n),t[1]=t[1]+((n/60|0)/10|0)&KYe,t[2]=t[2]+(n/60|0)%10&KYe,t[4]=t[4]+(n%60/10|0)&KYe,t[5]=t[5]+n%10&KYe,$ge(t,0,t.length)}function fOe(e){var t;return t=Sse(Uw(TRt,1),GYe,25,15,[71,77,84,45,48,48,58,48,48]),e<=0&&(t[3]=43,e=-e),t[4]=t[4]+((e/60|0)/10|0)&KYe,t[5]=t[5]+(e/60|0)%10&KYe,t[7]=t[7]+(e%60/10|0)&KYe,t[8]=t[8]+e%10&KYe,$ge(t,0,t.length)}function pOe(e){var t,n,r,i,o;if(null==e)return QKe;for(o=new Mae(FKe,"[","]"),r=0,i=(n=e).length;r<i;++r)t=n[r],o.a?aM(o.a,o.b):o.a=new uR(o.d),iM(o.a,""+mW(t));return o.a?0==o.e.length?o.a.a:o.a.a+""+o.e:o.c}function gOe(e,t){var n,i,o;for(o=RKe,i=new Gf(bfe(t));i.a<i.c.c.length;)(n=$H(J0(i),213)).f&&!e.c[n.c]&&(e.c[n.c]=!0,o=r.Math.min(o,gOe(e,Dfe(n,t))));return e.i[t.d]=e.j,e.g[t.d]=r.Math.min(o,e.j++),e.g[t.d]}function mOe(e,t){var n,r,i;for(i=$H($H(l6(e.r,t),21),84).Kc();i.Ob();)(r=$H(i.Pb(),111)).e.b=(n=r.b).Xe((sKe(),iTt))?n.Hf()==(bGe(),sOt)?-n.rf().b-Uy(xB(n.We(iTt))):Uy(xB(n.We(iTt))):n.Hf()==(bGe(),sOt)?-n.rf().b:0}function vOe(e){var t,n,r,i,o,a,s;for(n=KI(e.e),o=bN($L($D(VI(e.e)),e.d*e.a,e.c*e.b),-.5),t=n.a-o.a,i=n.b-o.b,s=0;s<e.c;s++){for(r=t,a=0;a<e.d;a++)Gfe(e.e,new zY(r,i,e.a,e.b))&&FPe(e,a,s,!1,!0),r+=e.a;i+=e.b}}function AOe(e){var t,n,r;if(Hy(_B(XIe(e,(sKe(),ECt))))){for(r=new Dv,n=new aW(XN(fNe(e).a.Kc(),new u));fIe(n);)KOe(t=$H(z5(n),79))&&Hy(_B(XIe(t,SCt)))&&(r.c[r.c.length]=t);return r}return Eq(),Eq(),lnt}function bOe(e){var t;if(t=!1,rN(e,204))return t=!0,$H(e,204).a;if(!t&&rN(e,258)&&$H(e,258).a%1==0)return t=!0,the(KM($H(e,258).a));throw jv(new ew("Id must be a string or an integer: '"+e+"'."))}function yOe(e,t){var n,r,i,o,a,s;for(o=null,i=new nG((!e.a&&(e.a=new Ev(e)),e.a));dMe(i);)if(YHe(a=(n=$H(iNe(i),56)).Tg()),null!=(r=(s=a.o)&&n.mh(s)?gF(ose(s),n.ah(s)):null)&&vF(r,t)){o=n;break}return o}function wOe(e,t,n){var r,i,o,a,s;if(ure(n,"occurrences"),0==n)return(s=$H(ude(kq(e.a),t),14))?s.gc():0;if(!(a=$H(ude(kq(e.a),t),14)))return 0;if(n>=(o=a.gc()))a.$b();else for(i=a.Kc(),r=0;r<n;r++)i.Pb(),i.Qb();return o}function _Oe(e,t,n){var r,i,o;return ure(n,"oldCount"),ure(0,"newCount"),((r=$H(ude(kq(e.a),t),14))?r.gc():0)==n&&(ure(0,"count"),(o=-((i=$H(ude(kq(e.a),t),14))?i.gc():0))>0?hw():o<0&&wOe(e,t,-o),!0)}function xOe(e){var t,n,r,i,o,a;if(a=0,0==e.b){for(t=0,i=0,o=(r=WAe(e,!0)).length;i<o;++i)(n=r[i])>0&&(a+=n,++t);t>1&&(a+=e.c*(t-1))}else a=Bw(eoe(IY(OY(IG(e.a),new Ee),new Se)));return a>0?a+e.n.d+e.n.a:0}function EOe(e){var t,n,r,i,o,a;if(a=0,0==e.b)a=Bw(eoe(IY(OY(IG(e.a),new _e),new xe)));else{for(t=0,i=0,o=(r=GAe(e,!0)).length;i<o;++i)(n=r[i])>0&&(a+=n,++t);t>1&&(a+=e.c*(t-1))}return a>0?a+e.n.b+e.n.c:0}function SOe(e,t){var n,i,o,a;for(n=(a=$H(aY(e.b,t),124)).a,o=$H($H(l6(e.r,t),21),84).Kc();o.Ob();)(i=$H(o.Pb(),111)).c&&(n.a=r.Math.max(n.a,VU(i.c)));if(n.a>0)switch(t.g){case 2:a.n.c=e.s;break;case 4:a.n.b=e.s}}function COe(e,t){var n,r,i;return 0==(n=$H(vSe(t,(cPe(),Xot)),19).a-$H(vSe(e,Xot),19).a)?(r=WP($D($H(vSe(e,(xie(),oat)),8)),$H(vSe(e,aat),8)),i=WP($D($H(vSe(t,oat),8)),$H(vSe(t,aat),8)),She(r.a*r.b,i.a*i.b)):n}function TOe(e,t){var n,r,i;return 0==(n=$H(vSe(t,(CIe(),Mwt)),19).a-$H(vSe(e,Mwt),19).a)?(r=WP($D($H(vSe(e,(HQe(),Xyt)),8)),$H(vSe(e,Jyt),8)),i=WP($D($H(vSe(t,Xyt),8)),$H(vSe(t,Jyt),8)),She(r.a*r.b,i.a*i.b)):n}function kOe(e){var t,n;return(n=new Cw).a+="e_",null!=(t=Wae(e))&&(n.a+=""+t),e.c&&e.d&&(aM((n.a+=" ",n),gye(e.c)),aM(oM((n.a+="[",n),e.c.i),"]"),aM((n.a+=e0e,n),gye(e.d)),aM(oM((n.a+="[",n),e.d.i),"]")),n.a}function OOe(e){switch(e.g){case 0:return new pd;case 1:return new gd;case 2:return new fd;case 3:return new md;default:throw jv(new Py("No implementation is available for the layout phase "+(null!=e.f?e.f:""+e.g)))}}function MOe(e,t,n,i,o){var a;switch(a=0,o.g){case 1:a=r.Math.max(0,t.b+e.b-(n.b+i));break;case 3:a=r.Math.max(0,-e.b-i);break;case 2:a=r.Math.max(0,-e.a-i);break;case 4:a=r.Math.max(0,t.a+e.a-(n.a+i))}return a}function IOe(e,t,n){var r,i,o;if(n)for(o=((r=new lW(n.a.length)).b-r.a)*r.c<0?(eC(),_Rt):new WN(r);o.Ob();)i=N2(n,$H(o.Pb(),19).a),I6e in i.a||D6e in i.a?sFe(e,i,t):wVe(e,i,t),SN($H(LV(e.b,Kge(i)),79))}function DOe(e){var t,n;switch(e.b){case-1:return!0;case 0:return(n=e.t)>1||-1==n||(t=Twe(e))&&(XS(),t.Cj()==w7e)?(e.b=-1,!0):(e.b=1,!1);default:return!1}}function NOe(e,t){var n,r,i,o,a;for(!t.s&&(t.s=new eG(PIt,t,21,17)),o=null,i=0,a=(r=t.s).i;i<a;++i)switch(RK($9(e,n=$H(Gte(r,i),170)))){case 2:case 3:!o&&(o=new Dv),o.c[o.c.length]=n}return o||(Eq(),Eq(),lnt)}function ROe(e,t){var n,r,i,o;if(KVe(e),0!=e.c||123!=e.a)throw jv(new iw(bKe((oD(),S8e))));if(o=112==t,r=e.d,(n=uL(e.i,125,r))<0)throw jv(new iw(bKe((oD(),C8e))));return i=cL(e.i,r,n),e.d=n+1,d7(i,o,!(512&~e.e))}function LOe(e){var t;if((t=$H(vSe(e,(jVe(),Hgt)),314))==(kre(),lut))throw jv(new rw("The hierarchy aware processor "+t+" in child node "+e+" is only allowed if the root node specifies the same hierarchical processor."))}function BOe(e,t){var n,r,i,o;for(U$(),n=null,i=t.Kc();i.Ob();)(r=$H(i.Pb(),128)).o||(GH((o=new SHe(FD(r.a),dU(r.a),null,$H(r.d.a.ec().Kc().Pb(),17))).c,r.a),e.c[e.c.length]=o,n&&GH(n.d,o),n=o)}function POe(e,t){var n,r,i;if(t)if(4&t.i)for(r="[]",n=t.c;;n=n.c){if(!(4&n.i)){jre(e,i=zy((wB(n),n.o+r))),Nne(e,i);break}r+="[]"}else jre(e,i=zy((wB(t),t.o))),Nne(e,i);else jre(e,null),Nne(e,null);e.yk(t)}function FOe(e,t,n,r,i){var o,a,s,l;return UO(l=lB(e,$H(i,56)))!==UO(i)?(s=$H(e.g[n],72),yN(e,n,sEe(e,n,o=X3(t,l))),vI(e.e)&&(Bxe(a=IX(e,9,o.ak(),i,l,r,!1),new D9(e.e,9,e.c,s,o,r,!1)),M9(a)),l):i}function $Oe(e,t,n){var r,i,o,a,s,l;for(r=$H(l6(e.c,t),15),i=$H(l6(e.c,n),15),o=r.Zc(r.gc()),a=i.Zc(i.gc());o.Sb()&&a.Sb();)if((s=$H(o.Ub(),19))!=(l=$H(a.Ub(),19)))return wD(s.a,l.a);return o.Ob()||a.Ob()?o.Ob()?1:-1:0}function jOe(e,t){var n,r;try{return W0(e.a,t)}catch(i){if(rN(i=use(i),32)){try{if(r=u$e(t,PYe,RKe),n=V_(e.a),r>=0&&r<n.length)return n[r]}catch(e){if(!rN(e=use(e),127))throw jv(e)}return null}throw jv(i)}}function HOe(e,t){var n,r,i;if(i=FQe((TTe(),qDt),e.Tg(),t))return XS(),$H(i,66).Oj()||(i=X0($9(qDt,i))),r=$H((n=e.Yg(i))>=0?e._g(n,!0,!0):rMe(e,i,!0),153),$H(r,215).ll(t);throw jv(new Py(n6e+t.ne()+o6e))}function UOe(){var e;return ZS(),VDt?$H(MDe((GS(),UIt),V7e),1939):(LM(Het,new kc),Jze(),e=$H(rN(EJ((GS(),UIt),V7e),547)?EJ(UIt,V7e):new zK,547),VDt=!0,aKe(e),_Ke(e),VK((VS(),qIt),e,new zl),vZ(UIt,V7e,e),e)}function QOe(e,t){var n,r,i,o;e.j=-1,vI(e.e)?(n=e.i,o=0!=e.i,r6(e,t),r=new D9(e.e,3,e.c,null,t,n,o),i=t.Qk(e.e,e.c,null),(i=Txe(e,t,i))?(i.Ei(r),i.Fi()):dae(e.e,r)):(r6(e,t),(i=t.Qk(e.e,e.c,null))&&i.Fi())}function zOe(e,t){var n,r,i;if(i=0,(r=t[0])>=e.length)return-1;for(d0(r,e.length),n=e.charCodeAt(r);n>=48&&n<=57&&(i=10*i+(n-48),!(++r>=e.length));)d0(r,e.length),n=e.charCodeAt(r);return r>t[0]?t[0]=r:i=-1,i}function WOe(e){var t,n,i,o,a;return n=o=$H(e.a,19).a,i=a=$H(e.b,19).a,t=r.Math.max(r.Math.abs(o),r.Math.abs(a)),o<=0&&o==a?(n=0,i=a-1):o==-t&&a!=t?(n=a,i=o,a>=0&&++n):(n=-a,i=o),new nO(the(n),the(i))}function GOe(e,t,n,r){var i,o,a,s,l,c;for(i=0;i<t.o;i++)for(o=i-t.j+n,a=0;a<t.p;a++)if(l=o,c=s=a-t.k+r,l+=e.j,c+=e.k,l>=0&&c>=0&&l<e.o&&c<e.p&&(!vbe(t,i,a)&&tbe(e,o,s)||mbe(t,i,a)&&!nbe(e,o,s)))return!0;return!1}function VOe(e,t,n){var r,i,o,a;o=e.c,a=e.d,i=(Ole(Sse(Uw(SSt,1),sYe,8,0,[o.i.n,o.n,o.a])).b+Ole(Sse(Uw(SSt,1),sYe,8,0,[a.i.n,a.n,a.a])).b)/2,r=null,r=o.j==(bGe(),aOt)?new Nk(t+o.i.c.c.a+n,i):new Nk(t-n,i),BL(e.a,0,r)}function KOe(e){var t,n,r;for(t=null,n=DG(Gne(Sse(Uw(Ret,1),jKe,20,0,[(!e.b&&(e.b=new lF(LMt,e,4,7)),e.b),(!e.c&&(e.c=new lF(LMt,e,5,8)),e.c)])));fIe(n);)if(r=SEe($H(z5(n),82)),t){if(t!=r)return!1}else t=r;return!0}function YOe(e,t,n){var r;if(++e.j,t>=e.i)throw jv(new Oy(o8e+t+a8e+e.i));if(n>=e.i)throw jv(new Oy(s8e+n+a8e+e.i));return r=e.g[n],t!=n&&(t<n?iUe(e.g,t,e.g,t+1,n-t):iUe(e.g,n+1,e.g,n,t-n),MV(e.g,t,r),e.ei(t,r,n),e.ci()),r}function qOe(e,t,n){var r;if(r=$H(e.c.xc(t),14))return!!r.Fc(n)&&(++e.d,!0);if((r=e.ic(t)).Fc(n))return++e.d,e.c.zc(t,r),!0;throw jv(new p5("New Collection violated the Collection spec"))}function XOe(e){var t,n,r;return e<0?0:0==e?32:(n=16-(t=(r=-(e>>16))>>16&16),n+=t=(r=(e>>=t)-256)>>16&8,n+=t=(r=(e<<=t)-Pqe)>>16&4,(n+=t=(r=(e<<=t)-lYe)>>16&2)+2-(t=(r=(e<<=t)>>14)&~(r>>1)))}function JOe(e){var t,n,r,i;for(xq(),Eot=new Dv,xot=new Nv,_ot=new Dv,!e.a&&(e.a=new eG(QMt,e,10,11)),NGe(t=e.a),i=new ON(t);i.e!=i.i.gc();)r=$H(bve(i),33),-1==w9(Eot,r,0)&&(n=new Dv,GH(_ot,n),Lme(r,n));return _ot}function ZOe(e,t,n){var r,i,o,a;e.a=n.b.d,rN(t,352)?(e5(o=HCe(i=rBe($H(t,79),!1,!1)),r=new Dp(e)),Vje(o,i),null!=t.We((sKe(),kCt))&&e5($H(t.We(kCt),74),r)):((a=$H(t,470)).Hg(a.Dg()+e.a.a),a.Ig(a.Eg()+e.a.b))}function eMe(e,t){var n,i,o,a,s,l,c,u;for(u=Uy(xB(vSe(t,(jVe(),Dvt)))),c=e[0].n.a+e[0].o.a+e[0].d.c+u,l=1;l<e.length;l++)i=e[l].n,o=e[l].o,n=e[l].d,(a=i.a-n.b-c)<0&&(i.a-=a),(s=t.f).a=r.Math.max(s.a,i.a+o.a),c=i.a+o.a+n.c+u}function tMe(e,t){var n,r,i,o,a,s;return r=$H($H(LV(e.g,t.a),46).a,65),i=$H($H(LV(e.g,t.b),46).a,65),(n=JUe(o=r.b,a=i.b))>=0?n:(s=uK(WP(new Nk(a.c+a.b/2,a.d+a.a/2),new Nk(o.c+o.b/2,o.d+o.a/2))),-(Y$e(o,a)-1)*s)}function nMe(e,t,n){var r;qE(new LQ(null,(!n.a&&(n.a=new eG(PMt,n,6,6)),new h0(n.a,16))),new eO(e,t)),qE(new LQ(null,(!n.n&&(n.n=new eG(UMt,n,1,7)),new h0(n.n,16))),new tO(e,t)),(r=$H(XIe(n,(sKe(),kCt)),74))&&Yie(r,e,t)}function rMe(e,t,n){var r,i,o;if(o=FQe((TTe(),qDt),e.Tg(),t))return XS(),$H(o,66).Oj()||(o=X0($9(qDt,o))),i=$H((r=e.Yg(o))>=0?e._g(r,!0,!0):rMe(e,o,!0),153),$H(i,215).hl(t,n);throw jv(new Py(n6e+t.ne()+o6e))}function iMe(e,t,n,r){var i,o,a,s,l;if(i=e.d[t])if(o=i.g,l=i.i,null!=r){for(s=0;s<l;++s)if((a=$H(o[s],133)).Sh()==n&&Dde(r,a.cd()))return a}else for(s=0;s<l;++s)if(UO((a=$H(o[s],133)).cd())===UO(r))return a;return null}function oMe(e,t){var n;if(t<0)throw jv(new ky("Negative exponent"));if(0==t)return Xtt;if(1==t||spe(e,Xtt)||spe(e,tnt))return e;if(!cIe(e,0)){for(n=1;!cIe(e,n);)++n;return Dee(mpe(n*t),oMe(Q5(e,n),t))}return vEe(e,t)}function aMe(e,t){var n,r,i;if(UO(e)===UO(t))return!0;if(null==e||null==t)return!1;if(e.length!=t.length)return!1;for(n=0;n<e.length;++n)if(r=e[n],i=t[n],!(UO(r)===UO(i)||null!=r&&Dde(r,i)))return!1;return!0}function sMe(e){var t,n,r;for(bS(),this.b=Vat,this.c=(Fde(),$Tt),this.f=(AS(),Qat),this.a=e,Zw(this,new Tt),bRe(this),r=new Gf(e.b);r.a<r.c.c.length;)(n=$H(J0(r),81)).d||(t=new Sme(Sse(Uw(Kat,1),jKe,81,0,[n])),GH(e.a,t))}function lMe(e,t,n){var r,i,o,a,s,l;if(!e||0==e.c.length)return null;for(o=new BX(t,!n),i=new Gf(e);i.a<i.c.c.length;)r=$H(J0(i),70),zCe(o,(pS(),new $p(r)));return(a=o.i).a=(l=o.n,o.e.b+l.d+l.a),a.b=(s=o.n,o.e.a+s.b+s.c),o}function cMe(e){var t,n,r,i,o,a,s;for(lI(s=J1(e.a),new Tn),n=null,o=0,a=(i=s).length;o<a&&(r=i[o]).k==(oCe(),xst);++o)(t=$H(vSe(r,(lKe(),Kdt)),61))!=(bGe(),COt)&&t!=aOt||(n&&$H(vSe(n,rht),15).Fc(r),n=r)}function uMe(e,t,n){var r,i,o,a,s,l;u0(t,e.c.length),s=$H(e.c[t],329),s6(e,t),s.b/2>=n&&(r=t,o=(l=(s.c+s.a)/2)-n,s.c<=l-n&&bz(e,r++,new bH(s.c,o)),(a=l+n)<=s.a&&(i=new bH(a,s.a),IZ(r,e.c.length),xC(e.c,r,i)))}function dMe(e){var t;if(e.c||null!=e.g){if(null==e.g)return!0;if(0==e.i)return!1;t=$H(e.g[e.i-1],47)}else e.d=e.si(e.f),c7(e,e.d),t=e.d;return t==e.b&&null.km>=null.jm()?(iNe(e),dMe(e)):t.Ob()}function hMe(e,t,n){var r,i,o,a;if(!(a=n)&&(a=IU(new Wb,0)),kEe(a,HZe,1),Mze(e.c,t),1==(o=Lze(e.a,t)).gc())VUe($H(o.Xb(0),37),a);else for(i=1/o.gc(),r=o.Kc();r.Ob();)VUe($H(r.Pb(),37),voe(a,i));ww(e.a,o,t),FBe(t),jCe(a)}function fMe(e){if(this.a=e,e.c.i.k==(oCe(),xst))this.c=e.c,this.d=$H(vSe(e.c.i,(lKe(),Kdt)),61);else{if(e.d.i.k!=xst)throw jv(new Py("Edge "+e+" is not an external edge."));this.c=e.d,this.d=$H(vSe(e.d.i,(lKe(),Kdt)),61)}}function pMe(e,t){var n,r,i;i=e.b,e.b=t,4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,3,i,e.b)),t?t!=e&&(Die(e,t.zb),Mne(e,t.d),Fre(e,null==(n=null==(r=t.c)?t.zb:r)||vF(n,t.zb)?null:n)):(Die(e,null),Mne(e,0),Fre(e,null))}function gMe(e){var t,n;if(e.f){for(;e.n<e.o;){if(rN(n=(t=$H(e.j?e.j.pi(e.n):e.k.Xb(e.n),72)).ak(),99)&&$H(n,18).Bb&l6e&&(!e.e||n.Gj()!=IMt||0!=n.aj())&&null!=t.dd())return!0;++e.n}return!1}return e.n<e.o}function mMe(e,t){var n;this.e=(GV(),AV(e),GV(),Dpe(e)),this.c=(AV(t),Dpe(t)),iR(this.e.Hd().dc()==this.c.Hd().dc()),this.d=mfe(this.e),this.b=mfe(this.c),n=bQ(Met,[sYe,jKe],[5,1],5,[this.e.Hd().gc(),this.c.Hd().gc()],2),this.a=n,fre(this)}function vMe(e){return!Jet&&(Jet=KGe()),'"'+e.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(e){return TJ(e)})+'"'}function AMe(e){var t,n;for(Cq(),this.b=lrt,this.c=urt,this.g=(gS(),srt),this.d=(Fde(),$Tt),this.a=e,ARe(this),n=new Gf(e.b);n.a<n.c.c.length;)!(t=$H(J0(n),57)).a&&TR(Wne(new WA,Sse(Uw(drt,1),jKe,57,0,[t])),e),t.e=new pX(t.d)}function bMe(e){var t,n,r,i,o;for(i=e.e.c.length,r=N8(Bet,JJe,15,i,0,1),o=new Gf(e.e);o.a<o.c.c.length;)r[$H(J0(o),144).b]=new YE;for(n=new Gf(e.c);n.a<n.c.c.length;)r[(t=$H(J0(n),282)).c.b].Fc(t),r[t.d.b].Fc(t);return r}function yMe(e){var t,n,r,i,o,a;for(a=sL(e.c.length),i=new Gf(e);i.a<i.c.c.length;){for(r=$H(J0(i),10),o=new LA,n=new aW(XN(ufe(r).a.Kc(),new u));fIe(n);)(t=$H(z5(n),17)).c.i==t.d.i||_G(o,t.d.i);a.c[a.c.length]=o}return a}function wMe(e,t){var n,r,i,o,a;if(t>=(a=null==(n=$H(Aae(e.a,4),126))?0:n.length))throw jv(new ZP(t,a));return i=n[t],1==a?r=null:(iUe(n,0,r=N8(hIt,t7e,415,a-1,0,1),0,t),(o=a-t-1)>0&&iUe(n,t+1,r,t,o)),Fme(e,r),eke(e,t,i),i}function _Me(){_Me=M,lNt=$H(Gte(Kq((rx(),fNt).qb),6),34),oNt=$H(Gte(Kq(fNt.qb),3),34),aNt=$H(Gte(Kq(fNt.qb),4),34),sNt=$H(Gte(Kq(fNt.qb),5),18),axe(lNt),axe(oNt),axe(aNt),axe(sNt),cNt=new qy(Sse(Uw(PIt,1),D7e,170,0,[lNt,oNt]))}function xMe(e,t){var n;this.d=new ub,this.b=t,this.e=new hI(t.qf()),n=e.u.Hc((uOe(),tOt)),e.u.Hc(eOt)?e.D?this.a=n&&!t.If():this.a=!0:e.u.Hc(nOt)?this.a=!!n&&!(t.zf().Kc().Ob()||t.Bf().Kc().Ob()):this.a=!1}function EMe(e,t){var n,r,i,o;for(n=e.o.a,o=$H($H(l6(e.r,t),21),84).Kc();o.Ob();)(i=$H(o.Pb(),111)).e.a=(r=i.b).Xe((sKe(),iTt))?r.Hf()==(bGe(),COt)?-r.rf().a-Uy(xB(r.We(iTt))):n+Uy(xB(r.We(iTt))):r.Hf()==(bGe(),COt)?-r.rf().a:n}function SMe(e,t){var n,r,i;n=$H(vSe(e,(jVe(),zgt)),103),i=$H(XIe(t,ovt),61),(r=$H(vSe(e,evt),98))!=(Kxe(),Kkt)&&r!=Ykt?i==(bGe(),SOt)&&(i=kje(t,n))==SOt&&(i=lpe(n)):i=WUe(t)>0?lpe(n):_he(lpe(n)),Yve(t,ovt,i)}function CMe(e,t){var n,r,i,o,a;for(a=e.j,t.a!=t.b&&vD(a,new Gi),i=a.c.length/2|0,r=0;r<i;r++)u0(r,a.c.length),(o=$H(a.c[r],113)).c&&Hke(o.d,t.a);for(n=i;n<a.c.length;n++)u0(n,a.c.length),(o=$H(a.c[n],113)).c&&Hke(o.d,t.b)}function TMe(e,t,n){var r,i,o;return r=e.c[t.c.p][t.p],i=e.c[n.c.p][n.p],null!=r.a&&null!=i.a?((o=_W(r.a,i.a))<0?oFe(e,t,n):o>0&&oFe(e,n,t),o):null!=r.a?(oFe(e,t,n),-1):null!=i.a?(oFe(e,n,t),1):0}function kMe(e,t){var n,r,i,o;e.ej()?(n=e.Vi(),o=e.fj(),++e.j,e.Hi(n,e.oi(n,t)),r=e.Zi(3,null,t,n,o),e.bj()&&(i=e.cj(t,null))?(i.Ei(r),i.Fi()):e.$i(r)):(eK(e,t),e.bj()&&(i=e.cj(t,null))&&i.Fi())}function OMe(e,t){var n,r,i,o,a;for(a=iLe(e.e.Tg(),t),i=new ml,n=$H(e.g,119),o=e.i;--o>=0;)r=n[o],a.rl(r.ak())&&c7(i,r);!iVe(e,i)&&vI(e.e)&&IA(e,t.$j()?IX(e,6,t,(Eq(),lnt),null,-1,!1):IX(e,t.Kj()?2:1,t,null,null,-1,!1))}function MMe(){var e,t;for(MMe=M,ont=N8(snt,sYe,91,32,0,1),ant=N8(snt,sYe,91,32,0,1),e=1,t=0;t<=18;t++)ont[t]=Jme(e),ant[t]=Jme(AW(e,t)),e=rfe(e,5);for(;t<ant.length;t++)ont[t]=Dee(ont[t-1],ont[1]),ant[t]=Dee(ant[t-1],(kBe(),Ztt))}function IMe(e,t){var n,r,i,o;return e.a==(qSe(),rdt)||(i=t.a.c,n=t.a.c+t.a.b,!(t.j&&(o=(r=t.A).c.c.a-r.o.a/2,i-(r.n.a+r.o.a)>o)||t.q&&(o=(r=t.C).c.c.a-r.o.a/2,r.n.a-n>o)))}function DMe(e,t){kEe(t,"Partition preprocessing",1),qE($H(S4(OY(hee(OY(new LQ(null,new h0(e.a,16)),new Ar),new br),new yr),v7(new U,new H,new re,Sse(Uw(Jnt,1),MYe,132,0,[(Hce(),znt)]))),15).Oc(),new wr),jCe(t)}function NMe(e){var t,n,r,i,o,a;for(HZ(),n=new m4,r=new Gf(e.e.b);r.a<r.c.c.length;)for(o=new Gf($H(J0(r),29).a);o.a<o.c.c.length;)i=$H(J0(o),10),(t=$H(uee(n,a=e.g[i.p]),15))||qme(n,a,t=new Dv),t.Fc(i);return n}function RMe(e,t){var n,r,i,o,a;for(i=t.b.b,e.a=N8(Bet,JJe,15,i,0,1),e.b=N8(ORt,XXe,25,i,16,1),a=sve(t.b,0);a.b!=a.d.c;)o=$H(d3(a),86),e.a[o.g]=new YE;for(r=sve(t.a,0);r.b!=r.d.c;)n=$H(d3(r),188),e.a[n.b.g].Fc(n),e.a[n.c.g].Fc(n)}function LMe(e){var t;return 64&e.Db?SDe(e):((t=new cR(SDe(e))).a+=" (startX: ",mx(t,e.j),t.a+=", startY: ",mx(t,e.k),t.a+=", endX: ",mx(t,e.b),t.a+=", endY: ",mx(t,e.c),t.a+=", identifier: ",rM(t,e.d),t.a+=")",t.a)}function BMe(e){var t;return 64&e.Db?bde(e):((t=new cR(bde(e))).a+=" (ordered: ",Ax(t,!!(256&e.Bb)),t.a+=", unique: ",Ax(t,!!(512&e.Bb)),t.a+=", lowerBound: ",vx(t,e.s),t.a+=", upperBound: ",vx(t,e.t),t.a+=")",t.a)}function PMe(e,t,n,r,i,o,a,s){var l;return rN(e.Cb,88)&&Oke(S5($H(e.Cb,88)),4),Die(e,n),e.f=r,Mhe(e,i),Dhe(e,o),Ohe(e,a),Ihe(e,!1),Jde(e,!0),Hhe(e,s),Yde(e,!0),Ine(e,0),e.b=0,Dne(e,1),(l=jEe(e,t,null))&&l.Fi(),Uhe(e,!1),e}function FMe(e,t){var n,i;return $H(EJ(e.a,t),512)||(n=new A5(t),b5(),NF(n,FMe(e,cL(i=Knt?null:n.c,0,r.Math.max(0,vR(i,YEe(46)))))),0==(Knt?null:n.c).length&&QB(n,new V),vZ(e.a,Knt?null:n.c,n),n)}function $Me(e,t){var n;e.b=t,e.g=new Dv,n=qMe(e.b),e.e=n,e.f=n,e.c=Hy(_B(vSe(e.b,(Pwe(),yrt)))),e.a=xB(vSe(e.b,(sKe(),rCt))),null==e.a&&(e.a=1),Uy(e.a)>1?e.e*=Uy(e.a):e.f/=Uy(e.a),Cue(e),pme(e),_Pe(e),lle(e.b,(wve(),pot),e.g)}function jMe(e,t,n){var r,i,o,a,s;for(r=0,s=n,t||(r=n*(e.c.length-1),s*=-1),o=new Gf(e);o.a<o.c.c.length;){for(lle(i=$H(J0(o),10),(jVe(),bgt),(hAe(),kSt)),i.o.a=r,a=RCe(i,(bGe(),aOt)).Kc();a.Ob();)$H(a.Pb(),11).n.a=r;r+=s}}function HMe(e,t,n){var r,i,o;e.ej()?(o=e.fj(),Tde(e,t,n),r=e.Zi(3,null,n,t,o),e.bj()?(i=e.cj(n,null),e.ij()&&(i=e.jj(n,i)),i?(i.Ei(r),i.Fi()):e.$i(r)):e.$i(r)):(Tde(e,t,n),e.bj()&&(i=e.cj(n,null))&&i.Fi())}function UMe(e,t,n){var r,i,o,a,s,l;return(s=e.Gk(n))!=n?(a=e.g[t],l=s,yN(e,t,e.oi(t,l)),o=a,e.gi(t,l,o),e.rk()&&(r=n,i=e.dj(r,null),!$H(s,49).eh()&&(i=e.cj(l,i)),i&&i.Fi()),vI(e.e)&&IA(e,e.Zi(9,n,s,t,!1)),s):n}function QMe(e,t){var n,r,i;for(n=new Gf(e.a.a);n.a<n.c.c.length;)$H(J0(n),189).g=!0;for(i=new Gf(e.a.b);i.a<i.c.c.length;)(r=$H(J0(i),81)).k=Hy(_B(e.e.Kb(new nO(r,t)))),r.d.g=r.d.g&Hy(_B(e.e.Kb(new nO(r,t))));return e}function zMe(e){var t,n,r,i,o;if(n=new YF(t=$H(V_(FOt),9),$H(EP(t,t.length),9),0),o=$H(vSe(e,(lKe(),wht)),10))for(i=new Gf(o.j);i.a<i.c.c.length;)UO(vSe(r=$H(J0(i),11),fht))===UO(e)&&QR(new v6(r.b))&&aie(n,r.j);return n}function WMe(e,t,n){var r,i,o,a;if(!e.d[n.p]){for(r=new aW(XN(ufe(n).a.Kc(),new u));fIe(r);){for(o=new aW(XN(cfe(a=$H(z5(r),17).d.i).a.Kc(),new u));fIe(o);)(i=$H(z5(o),17)).c.i==t&&(e.a[i.p]=!0);WMe(e,t,a)}e.d[n.p]=!0}}function GMe(e,t){var n,r,i,o,a,s,l;if(1==(r=gfe(254&e.Db)))e.Eb=null;else if(o=ene(e.Eb),2==r)i=Lbe(e,t),e.Eb=o[0==i?1:0];else{for(a=N8(Met,jKe,1,r-1,5,1),n=2,s=0,l=0;n<=128;n<<=1)n==t?++s:e.Db&n&&(a[l++]=o[s++]);e.Eb=a}e.Db&=~t}function VMe(e,t){var n,r,i,o,a;for(!t.s&&(t.s=new eG(PIt,t,21,17)),o=null,i=0,a=(r=t.s).i;i<a;++i)switch(RK($9(e,n=$H(Gte(r,i),170)))){case 4:case 5:case 6:!o&&(o=new Dv),o.c[o.c.length]=n}return o||(Eq(),Eq(),lnt)}function KMe(e){var t;switch(t=0,e){case 105:t=2;break;case 109:t=8;break;case 115:t=4;break;case 120:t=16;break;case 117:t=32;break;case 119:t=64;break;case 70:t=256;break;case 72:t=128;break;case 88:t=512;break;case 44:t=b6e}return t}function YMe(e,t,n,r,i){var o,a,s,l;if(UO(e)!==UO(t)||r!=i)for(s=0;s<r;s++){for(a=0,o=e[s],l=0;l<i;l++)a=nfe(nfe(rfe(e1(o,zqe),e1(t[l],zqe)),e1(n[s+l],zqe)),e1(fz(a),zqe)),n[s+l]=fz(a),a=yW(a,32);n[s+i]=fz(a)}else T$e(e,r,n)}function qMe(e){var t,n,i,o,a,s,l,c,u,d,h;for(d=0,u=0,l=(o=e.a).a.gc(),i=o.a.ec().Kc();i.Ob();)(n=$H(i.Pb(),561)).b&&VHe(n),d+=(h=(t=n.a).a)+(s=t.b),u+=h*s;return c=r.Math.sqrt(400*l*u-4*u+d*d)+d,0==(a=2*(100*l-1))?c:c/a}function XMe(e,t){0!=t.b&&(isNaN(e.s)?e.s=Uy((SL(0!=t.b),xB(t.a.a.c))):e.s=r.Math.min(e.s,Uy((SL(0!=t.b),xB(t.a.a.c)))),isNaN(e.c)?e.c=Uy((SL(0!=t.b),xB(t.c.b.c))):e.c=r.Math.max(e.c,Uy((SL(0!=t.b),xB(t.c.b.c)))))}function JMe(e){var t,n,r;for(t=null,n=DG(Gne(Sse(Uw(Ret,1),jKe,20,0,[(!e.b&&(e.b=new lF(LMt,e,4,7)),e.b),(!e.c&&(e.c=new lF(LMt,e,5,8)),e.c)])));fIe(n);)if(r=SEe($H(z5(n),82)),t){if(t!=qJ(r))return!0}else t=qJ(r);return!1}function ZMe(e,t){var n,r,i,o;e.ej()?(n=e.i,o=e.fj(),r6(e,t),r=e.Zi(3,null,t,n,o),e.bj()?(i=e.cj(t,null),e.ij()&&(i=e.jj(t,i)),i?(i.Ei(r),i.Fi()):e.$i(r)):e.$i(r)):(r6(e,t),e.bj()&&(i=e.cj(t,null))&&i.Fi())}function eIe(e,t,n){var r,i,o;e.ej()?(o=e.fj(),++e.j,e.Hi(t,e.oi(t,n)),r=e.Zi(3,null,n,t,o),e.bj()&&(i=e.cj(n,null))?(i.Ei(r),i.Fi()):e.$i(r)):(++e.j,e.Hi(t,e.oi(t,n)),e.bj()&&(i=e.cj(n,null))&&i.Fi())}function tIe(e){var t,n,r,i;for(i=e.length,t=null,r=0;r<i;r++)d0(r,e.length),UM(".*+?{[()|\\^$",YEe(n=e.charCodeAt(r)))>=0?(t||(t=new Sw,r>0&&rM(t,e.substr(0,r))),t.a+="\\",DV(t,n&KYe)):t&&DV(t,n&KYe);return t?t.a:e}function nIe(e){var t;if(!e.a)throw jv(new Fy("IDataType class expected for layout option "+e.f));if(null==(t=T3(e.a)))throw jv(new Fy("Couldn't create new instance of property '"+e.f+"'. "+n5e+(wB(uIt),uIt.k)+r5e));return $H(t,414)}function rIe(e){var t,n,r,i,o;return(o=e.eh())&&o.kh()&&(i=Zue(e,o))!=o?(n=e.Vg(),r=(t=e.Vg())>=0?e.Qg(null):e.eh().ih(e,-1-t,null,null),e.Rg($H(i,49),n),r&&r.Fi(),e.Lg()&&e.Mg()&&n>-1&&dae(e,new JW(e,9,n,o,i)),i):o}function iIe(e){var t,n,r,i,o,a,s;for(o=0,i=e.f.e,n=0;n<i.c.length;++n)for(u0(n,i.c.length),a=$H(i.c[n],144),r=n+1;r<i.c.length;++r)u0(r,i.c.length),s=$H(i.c[r],144),t=G8(a.d,s.d)-e.a[a.b][s.b],o+=e.i[a.b][s.b]*t*t;return o}function oIe(e,t){var n;if(!IL(t,(jVe(),bmt))&&(n=wwe($H(vSe(t,ect),360),$H(vSe(e,bmt),163)),lle(t,ect,n),!fIe(new aW(XN(lfe(t).a.Kc(),new u)))))switch(n.g){case 1:lle(t,bmt,(_fe(),Pht));break;case 2:lle(t,bmt,(_fe(),$ht))}}function aIe(e,t){var n;vPe(e),e.a=(n=new aw,qE(new LQ(null,new h0(t.d,16)),new kg(n)),n),xLe(e,$H(vSe(t.b,(jVe(),tmt)),376)),bAe(e),kIe(e),Mwe(e),yAe(e),yQe(e,t),qE(hee(new LQ(null,Y1(EV(e.b).a)),new Ki),new Yi),t.a=!1,e.a=null}function sIe(){fSe.call(this,A6e,(Z_(),fMt)),this.p=null,this.a=null,this.f=null,this.n=null,this.g=null,this.c=null,this.i=null,this.j=null,this.d=null,this.b=null,this.e=null,this.k=null,this.o=null,this.s=null,this.q=!1,this.r=!1}function lIe(){lIe=M,eIt=new xO(U0e,0),XMt=new xO("INSIDE_SELF_LOOPS",1),JMt=new xO("MULTI_EDGES",2),qMt=new xO("EDGE_LABELS",3),ZMt=new xO("PORTS",4),KMt=new xO("COMPOUND",5),VMt=new xO("CLUSTERS",6),YMt=new xO("DISCONNECTED",7)}function cIe(e,t){var n,r,i;if(0==t)return!!(1&e.a[0]);if(t<0)throw jv(new ky("Negative bit address"));if((i=t>>5)>=e.d)return e.e<0;if(n=e.a[i],t=1<<(31&t),e.e<0){if(i<(r=Coe(e)))return!1;n=r==i?-n:~n}return!!(n&t)}function uIe(e,t,n,r){var i;$H(n.b,65),$H(n.b,65),$H(r.b,65),$H(r.b,65),DU(i=WP($D($H(n.b,65).c),$H(r.b,65).c),jke($H(n.b,65),$H(r.b,65),i)),$H(r.b,65),$H(r.b,65),$H(r.b,65).c.a,i.a,$H(r.b,65).c.b,i.b,$H(r.b,65),kte(r.a,new _H(e,t,r))}function dIe(e,t){var n,r,i,o,a,s,l;if(o=t.e)for(n=rIe(o),r=$H(e.g,674),a=0;a<e.i;++a)if(HAe(l=r[a])==n&&(!l.d&&(l.d=new MN(GIt,l,1)),i=l.d,(s=$H(n.ah(pFe(o,o.Cb,o.Db>>16)),15).Xc(o))<i.i))return dIe(e,$H(Gte(i,s),87));return t}function hIe(e,t,n){var r,i=EKe,o=i[e],a=o instanceof Array?o[0]:null;o&&!a?xKe=o:(!(r=t&&t.prototype)&&(r=EKe[t]),(xKe=HJ(r)).hm=n,!t&&(xKe.im=O),i[e]=xKe);for(var s=3;s<arguments.length;++s)arguments[s].prototype=xKe;a&&(xKe.gm=a)}function fIe(e){for(var t;!$H(AV(e.a),47).Ob();){if(e.d=ace(e),!e.d)return!1;if(e.a=$H(e.d.Pb(),47),rN(e.a,39)){if(t=$H(e.a,39),e.a=t.a,!e.b&&(e.b=new Iv),f3(e.b,e.d),t.b)for(;!Gy(t.b);)f3(e.b,$H(pG(t.b),47));e.d=t.d}}return!0}function pIe(e,t){var n,r,i,o,a;for(o=null==t?0:e.b.se(t),r=null==(n=e.a.get(o))?new Array:n,a=0;a<r.length;a++)if(i=r[a],e.b.re(t,i.cd()))return 1==r.length?(r.length=0,mP(e.a,o)):r.splice(a,1),--e.c,aX(e.b),i.dd();return null}function gIe(e,t){var n,r,i,o;for(i=1,t.j=!0,o=null,r=new Gf(bfe(t));r.a<r.c.c.length;)n=$H(J0(r),213),e.c[n.c]||(e.c[n.c]=!0,o=Dfe(n,t),n.f?i+=gIe(e,o):o.j||n.a!=n.e.e-n.d.e||(n.f=!0,_G(e.p,n),i+=gIe(e,o)));return i}function mIe(e){var t,n,i;for(n=new Gf(e.a.a.b);n.a<n.c.c.length;)t=$H(J0(n),81),bK(0),(i=0)>0&&((!fI(e.a.c)||!t.n.d)&&(!pI(e.a.c)||!t.n.b)&&(t.g.d+=r.Math.max(0,i/2-.5)),(!fI(e.a.c)||!t.n.a)&&(!pI(e.a.c)||!t.n.c)&&(t.g.a-=i-1))}function vIe(e){var t,n,i,o,a;if(a=B$e(e,o=new Dv),t=$H(vSe(e,(lKe(),wht)),10))for(i=new Gf(t.j);i.a<i.c.c.length;)UO(vSe(n=$H(J0(i),11),fht))===UO(e)&&(a=r.Math.max(a,B$e(n,o)));return 0==o.c.length||lle(e,dht,a),-1!=a?o:null}function AIe(e,t,n){var r,i,o,a,s,l;i=(r=(o=$H(NQ(t.e,0),17).c).i).k,s=(a=(l=$H(NQ(n.g,0),17).d).i).k,i==(oCe(),Sst)?lle(e,(lKe(),lht),$H(vSe(r,lht),11)):lle(e,(lKe(),lht),o),lle(e,(lKe(),cht),s==Sst?$H(vSe(a,cht),11):l)}function bIe(e,t){var n,r,i,o;for(n=(o=fz(rfe(EYe,nY(fz(rfe(null==t?0:Jle(t),SYe)),15))))&e.b.length-1,i=null,r=e.b[n];r;i=r,r=r.a)if(r.d==o&&hK(r.i,t))return i?i.a=r.a:e.b[n]=r.a,bw(r.c,r.f),tA(r.b,r.e),--e.f,++e.e,!0;return!1}function yIe(e,t){var n,r,i,o,a;return t&=63,(r=!!((n=e.h)&Cqe))&&(n|=-1048576),t<22?(a=n>>t,o=e.m>>t|n<<22-t,i=e.l>>t|e.m<<22-t):t<44?(a=r?Sqe:0,o=n>>t-22,i=e.m>>t-22|n<<44-t):(a=r?Sqe:0,o=r?Eqe:0,i=n>>t-44),xD(i&Eqe,o&Eqe,a&Sqe)}function wIe(e){var t,n,i,o,a,s;for(this.c=new Dv,this.d=e,i=Lqe,o=Lqe,t=Bqe,n=Bqe,s=sve(e,0);s.b!=s.d.c;)a=$H(d3(s),8),i=r.Math.min(i,a.a),o=r.Math.min(o,a.b),t=r.Math.max(t,a.a),n=r.Math.max(n,a.b);this.a=new zY(i,o,t-i,n-o)}function _Ie(e,t){var n,r,i,o;for(r=new Gf(e.b);r.a<r.c.c.length;)for(o=new Gf($H(J0(r),29).a);o.a<o.c.c.length;)for((i=$H(J0(o),10)).k==(oCe(),Est)&&lje(i,t),n=new aW(XN(ufe(i).a.Kc(),new u));fIe(n);)mse($H(z5(n),17),t)}function xIe(e){var t,n,r;this.c=e,r=$H(vSe(e,(jVe(),zgt)),103),t=Uy(xB(vSe(e,wgt))),n=Uy(xB(vSe(e,Bvt))),r==(Fde(),PTt)||r==FTt||r==$Tt?this.b=t*n:this.b=1/(t*n),this.j=Uy(xB(vSe(e,Ovt))),this.e=Uy(xB(vSe(e,kvt))),this.f=e.b.c.length}function EIe(e){var t,n;for(e.e=N8(kRt,lqe,25,e.p.c.length,15,1),e.k=N8(kRt,lqe,25,e.p.c.length,15,1),n=new Gf(e.p);n.a<n.c.c.length;)t=$H(J0(n),10),e.e[t.p]=F3(new aW(XN(cfe(t).a.Kc(),new u))),e.k[t.p]=F3(new aW(XN(ufe(t).a.Kc(),new u)))}function SIe(e){var t,n,r,i,o;for(r=0,e.q=new Dv,t=new LA,o=new Gf(e.p);o.a<o.c.c.length;){for((i=$H(J0(o),10)).p=r,n=new aW(XN(ufe(i).a.Kc(),new u));fIe(n);)_G(t,$H(z5(n),17).d.i);t.a.Bc(i),GH(e.q,new MQ(t)),t.a.$b(),++r}}function CIe(){CIe=M,kwt=new GI(20),Twt=new WI((sKe(),WCt),kwt),Nwt=new WI(ITt,20),ywt=new WI(rCt,fZe),Mwt=new WI(gTt,the(1)),Dwt=new WI(bTt,(lR(),!0)),wwt=uCt,xwt=BCt,Ewt=$Ct,Swt=HCt,_wt=RCt,Cwt=zCt,Owt=cTt,Lae(),Rwt=Awt,Iwt=mwt}function TIe(e,t){var n,r,i,o,a,s,l,c,u;if(e.a.f>0&&rN(t,42)&&(e.a.qj(),o=null==(l=(c=$H(t,42)).cd())?0:Jle(l),a=eP(e.a,o),n=e.a.d[a]))for(r=$H(n.g,367),u=n.i,s=0;s<u;++s)if((i=r[s]).Sh()==o&&i.Fb(c))return TIe(e,c),!0;return!1}function kIe(e){var t,n,r,i;for(i=$H(l6(e.a,(Ixe(),Ect)),15).Kc();i.Ob();)tV(e,r=$H(i.Pb(),101),(n=(t=pW(r.k)).Hc((bGe(),sOt))?t.Hc(aOt)?t.Hc(EOt)?t.Hc(COt)?null:Mct:Dct:Ict:Oct)[0],(Cie(),Nct),0),tV(e,r,n[1],Rct,1),tV(e,r,n[2],Lct,1)}function OIe(e,t){var n,r;qLe(e,t,n=vFe(t)),tEe(e.a,$H(vSe(mK(t.b),(lKe(),Eht)),230)),d$e(e),Rxe(e,t),r=N8(kRt,lqe,25,t.b.j.c.length,15,1),sWe(e,t,(bGe(),sOt),r,n),sWe(e,t,aOt,r,n),sWe(e,t,EOt,r,n),sWe(e,t,COt,r,n),e.a=null,e.c=null,e.b=null}function MIe(){MIe=M,Efe(),axt=new MM(w4e,sxt=J_t),ixt=new MM(_4e,(lR(),!0)),the(-1),txt=new MM(x4e,the(-1)),the(-1),nxt=new MM(E4e,the(-1)),oxt=new MM(S4e,!1),lxt=new MM(C4e,!0),rxt=new MM(T4e,!1),cxt=new MM(k4e,-1)}function IIe(e,t,n){switch(t){case 7:return!e.e&&(e.e=new lF(BMt,e,7,4)),sQe(e.e),!e.e&&(e.e=new lF(BMt,e,7,4)),void gV(e.e,$H(n,14));case 8:return!e.d&&(e.d=new lF(BMt,e,8,5)),sQe(e.d),!e.d&&(e.d=new lF(BMt,e,8,5)),void gV(e.d,$H(n,14))}Q_e(e,t,n)}function DIe(e,t){var n,r,i,o,a;if(UO(t)===UO(e))return!0;if(!rN(t,15))return!1;if(a=$H(t,15),e.gc()!=a.gc())return!1;for(o=a.Kc(),r=e.Kc();r.Ob();)if(n=r.Pb(),i=o.Pb(),!(UO(n)===UO(i)||null!=n&&Dde(n,i)))return!1;return!0}function NIe(e,t){var n,r,i,o;for((o=$H(S4(hee(hee(new LQ(null,new h0(t.b,16)),new Pn),new Fn),v7(new U,new H,new re,Sse(Uw(Jnt,1),MYe,132,0,[(Hce(),znt)]))),15)).Jc(new $n),n=0,i=o.Kc();i.Ob();)-1==(r=$H(i.Pb(),11)).p&&FIe(e,r,n++)}function RIe(e){switch(e.g){case 0:return new Sd;case 1:return new cd;case 2:return new ld;case 3:return new yO;case 4:return new Pz;default:throw jv(new Py("No implementation is available for the node placer "+(null!=e.f?e.f:""+e.g)))}}function LIe(e){switch(e.g){case 0:return new Bz;case 1:return new dd;case 2:return new td;case 3:return new nd;case 4:return new _O;default:throw jv(new Py("No implementation is available for the cycle breaker "+(null!=e.f?e.f:""+e.g)))}}function BIe(){BIe=M,v_t=new MM(o4e,the(0)),A_t=new MM(a4e,0),jce(),f_t=new MM(s4e,p_t=s_t),the(0),h_t=new MM(l4e,the(1)),$oe(),b_t=new MM(c4e,y_t=W_t),R7(),w_t=new MM(u4e,__t=i_t),kbe(),g_t=new MM(d4e,m_t=H_t)}function PIe(e,t,n){var r;r=null,t&&(r=t.d),Y_e(e,new fT(t.n.a-r.b+n.a,t.n.b-r.d+n.b)),Y_e(e,new fT(t.n.a-r.b+n.a,t.n.b+t.o.b+r.a+n.b)),Y_e(e,new fT(t.n.a+t.o.a+r.c+n.a,t.n.b-r.d+n.b)),Y_e(e,new fT(t.n.a+t.o.a+r.c+n.a,t.n.b+t.o.b+r.a+n.b))}function FIe(e,t,n){var r,i,o;for(t.p=n,o=DG(Gne(Sse(Uw(Ret,1),jKe,20,0,[new jp(t),new Up(t)])));fIe(o);)-1==(r=$H(z5(o),11)).p&&FIe(e,r,n);if(t.i.k==(oCe(),Sst))for(i=new Gf(t.i.j);i.a<i.c.c.length;)(r=$H(J0(i),11))!=t&&-1==r.p&&FIe(e,r,n)}function $Ie(e){var t,n,i,o,a;if(o=$H(S4(MZ(i0(e)),v7(new U,new H,new re,Sse(Uw(Jnt,1),MYe,132,0,[(Hce(),znt)]))),15),i=XJe,o.gc()>=2)for(t=xB((n=o.Kc()).Pb());n.Ob();)a=t,t=xB(n.Pb()),i=r.Math.min(i,(bK(t),t-(bK(a),a)));return i}function jIe(e,t){var n,r,i,o,a;n5(r=new YE,t,r.c.b,r.c);do{for(SL(0!=r.b),n=$H(Ote(r,r.a.a),86),e.b[n.g]=1,o=sve(n.d,0);o.b!=o.d.c;)a=(i=$H(d3(o),188)).c,1==e.b[a.g]?RU(e.a,i):2==e.b[a.g]?e.b[a.g]=1:n5(r,a,r.c.b,r.c)}while(0!=r.b)}function HIe(e,t){var n,r,i;if(UO(t)===UO(AV(e)))return!0;if(!rN(t,15))return!1;if(r=$H(t,15),(i=e.gc())!=r.gc())return!1;if(rN(r,54)){for(n=0;n<i;n++)if(!hK(e.Xb(n),r.Xb(n)))return!1;return!0}return zAe(e.Kc(),r.Kc())}function UIe(e,t){var n;if(0!=e.c.length){if(2==e.c.length)lje((u0(0,e.c.length),$H(e.c[0],10)),(Wye(),ykt)),lje((u0(1,e.c.length),$H(e.c[1],10)),wkt);else for(n=new Gf(e);n.a<n.c.c.length;)lje($H(J0(n),10),t);e.c=N8(Met,jKe,1,0,5,1)}}function QIe(e){var t,n;if(2!=e.c.length)throw jv(new Fy("Order only allowed for two paths."));u0(0,e.c.length),t=$H(e.c[0],17),u0(1,e.c.length),n=$H(e.c[1],17),t.d.i!=n.c.i&&(e.c=N8(Met,jKe,1,0,5,1),e.c[e.c.length]=n,e.c[e.c.length]=t)}function zIe(e,t){var n,r,i,o,a;for(r=new m4,o=E4(new qy(e.g)).a.ec().Kc();o.Ob();){if(!(i=$H(o.Pb(),10))){kU(t,"There are no classes in a balanced layout.");break}(n=$H(uee(r,a=e.j[i.p]),15))||qme(r,a,n=new Dv),n.Fc(i)}return r}function WIe(e,t,n){var r,i,o,a;if(n)for(i=((r=new lW(n.a.length)).b-r.a)*r.c<0?(eC(),_Rt):new WN(r);i.Ob();)(o=N2(n,$H(i.Pb(),19).a))&&(a=Bne(L2(o,k6e),t),VK(e.f,a,o),H6e in o.a&&Mre(a,L2(o,H6e)),EEe(o,a),kke(o,a))}function GIe(e,t){var n,r,i;for(kEe(t,"Port side processing",1),i=new Gf(e.a);i.a<i.c.c.length;)rHe($H(J0(i),10));for(n=new Gf(e.b);n.a<n.c.c.length;)for(r=new Gf($H(J0(n),29).a);r.a<r.c.c.length;)rHe($H(J0(r),10));jCe(t)}function VIe(e,t,n){var r,i,o,a,s;if(!(i=e.f)&&(i=$H(e.a.a.ec().Kc().Pb(),57)),Fwe(i,t,n),1!=e.a.a.gc())for(r=t*n,a=e.a.a.ec().Kc();a.Ob();)(o=$H(a.Pb(),57))!=i&&((s=c3(o)).f.d?(o.d.d+=r+cJe,o.d.a-=r+cJe):s.f.a&&(o.d.a-=r+cJe))}function KIe(e,t,n,i,o){var a,s,l,c,u,d,h,f,p;return s=n-e,l=i-t,c=(a=r.Math.atan2(s,l))+qJe,u=a-qJe,d=o*r.Math.sin(c)+e,f=o*r.Math.cos(c)+t,h=o*r.Math.sin(u)+e,p=o*r.Math.cos(u)+t,o6(Sse(Uw(SSt,1),sYe,8,0,[new Nk(d,f),new Nk(h,p)]))}function YIe(e,t,n,i){var o,a,s,l,c,u,d,h;o=n,a=d=t;do{a=e.a[a.p],h=e.g[a.p],l=Uy(e.p[h.p])+Uy(e.d[a.p])-a.d.d,(c=Ore(a,i))&&(u=e.g[c.p],s=Uy(e.p[u.p])+Uy(e.d[c.p])+c.o.b+c.d.a,o=r.Math.min(o,l-(s+BD(e.k,a,c))))}while(d!=a);return o}function qIe(e,t,n,i){var o,a,s,l,c,u,d,h;o=n,a=d=t;do{a=e.a[a.p],h=e.g[a.p],s=Uy(e.p[h.p])+Uy(e.d[a.p])+a.o.b+a.d.a,(c=Pse(a,i))&&(u=e.g[c.p],l=Uy(e.p[u.p])+Uy(e.d[c.p])-c.d.d,o=r.Math.min(o,l-(s+BD(e.k,a,c))))}while(d!=a);return o}function XIe(e,t){var n,r;return!e.o&&(e.o=new A7((CVe(),xMt),tIt,e,0)),null!=(r=rge(e.o,t))?r:(rN(n=t.wg(),4)&&(null==n?(!e.o&&(e.o=new A7((CVe(),xMt),tIt,e,0)),Gge(e.o,t)):(!e.o&&(e.o=new A7((CVe(),xMt),tIt,e,0)),m_e(e.o,t,n))),n)}function JIe(){JIe=M,Tkt=new Uk("H_LEFT",0),Ckt=new Uk("H_CENTER",1),Okt=new Uk("H_RIGHT",2),Rkt=new Uk("V_TOP",3),Nkt=new Uk("V_CENTER",4),Dkt=new Uk("V_BOTTOM",5),Mkt=new Uk("INSIDE",6),Ikt=new Uk("OUTSIDE",7),kkt=new Uk("H_PRIORITY",8)}function ZIe(e){var t,n,r,i,o,a,s;if((t=e.Hh(V7e))&&null!=(s=EB(rge((!t.b&&(t.b=new qL((pKe(),ADt),zDt,t)),t.b),"settingDelegates")))){for(n=new Dv,o=0,a=(i=bFe(s,"\\w+")).length;o<a;++o)r=i[o],n.c[n.c.length]=r;return n}return Eq(),Eq(),lnt}function eDe(e,t){var n,r,i,o,a,s,l;if(!t.f)throw jv(new Py("The input edge is not a tree edge."));for(o=null,i=RKe,r=new Gf(e.d);r.a<r.c.c.length;)s=(n=$H(J0(r),213)).d,l=n.e,Fke(e,s,t)&&!Fke(e,l,t)&&(a=l.e-s.e-n.a)<i&&(i=a,o=n);return o}function tDe(e){var t,n,r,i,o,a;if(!(e.f.e.c.length<=1)){t=0,i=iIe(e),n=Lqe;do{for(t>0&&(i=n),a=new Gf(e.f.e);a.a<a.c.c.length;)Hy(_B(vSe(o=$H(J0(a),144),(nwe(),Aat))))||(r=X$e(e,o),zP(bM(o.d),r));n=iIe(e)}while(!qV(e,t++,i,n))}}function nDe(e,t){var n,r,i;for(kEe(t,"Layer constraint preprocessing",1),n=new Dv,i=new x2(e.a,0);i.b<i.d.gc();)SL(i.b<i.d.gc()),Gse(r=$H(i.d.Xb(i.c=i.b++),10))&&(rEe(r),n.c[n.c.length]=r,cK(i));0==n.c.length||lle(e,(lKe(),Jdt),n),jCe(t)}function rDe(e,t){var n,r,i,o,a;for(o=e.g.a,a=e.g.b,r=new Gf(e.d);r.a<r.c.c.length;)i=(n=$H(J0(r),70)).n,e.a==(kse(),vct)||e.i==(bGe(),aOt)?i.a=o:e.a==Act||e.i==(bGe(),COt)?i.a=o+e.j.a-n.o.a:i.a=o+(e.j.a-n.o.a)/2,i.b=a,zP(i,t),a+=n.o.b+e.e}function iDe(e,t,n){var r,i,o,a;for(kEe(n,"Processor set coordinates",1),e.a=0==t.b.b?1:t.b.b,o=null,r=sve(t.b,0);!o&&r.b!=r.d.c;)Hy(_B(vSe(a=$H(d3(r),86),(HQe(),fwt))))&&(o=a,(i=a.e).a=$H(vSe(a,pwt),19).a,i.b=0);PCe(e,Nse(o),voe(n,1)),jCe(n)}function oDe(e,t,n){var r,i,o;for(kEe(n,"Processor determine the height for each level",1),e.a=0==t.b.b?1:t.b.b,i=null,r=sve(t.b,0);!i&&r.b!=r.d.c;)Hy(_B(vSe(o=$H(d3(r),86),(HQe(),fwt))))&&(i=o);i&&XLe(e,o6(Sse(Uw(Yyt,1),ZJe,86,0,[i])),n),jCe(n)}function aDe(e,t){var n,r,i,o,a;(o=R2(e,"individualSpacings"))&&(!S8(t,(sKe(),CTt))&&(n=new Js,Yve(t,CTt,n)),i=$H(XIe(t,CTt),373),r=null,(a=o)&&(r=new _E(a,yie(a,N8(Ytt,sYe,2,0,6,1)))),r&&e5(r,new fO(a,i)))}function sDe(e,t){var n,r,i,o,a,s;return o=null,(q6e in(a=e).a||X6e in a.a||R6e in a.a)&&(s=Hse(t),r=R2(a,q6e),kpe(new jm(s).a,r),i=R2(a,X6e),Tpe(new qm(s).a,i),n=D2(a,R6e),Sxe(new Zm(s).a,n),o=n),o}function lDe(e,t){var n,r,i;if(t===e)return!0;if(rN(t,543)){if(i=$H(t,835),e.a.d!=i.a.d||wY(e).gc()!=wY(i).gc())return!1;for(r=wY(i).Kc();r.Ob();)if(r0(e,(n=$H(r.Pb(),416)).a.cd())!=$H(n.a.dd(),14).gc())return!1;return!0}return!1}function cDe(e){var t,n,r,i;return t=r=$H(e.a,19).a,n=i=$H(e.b,19).a,0==r&&0==i?n-=1:-1==r&&i<=0?(t=0,n-=2):r<=0&&i>0?(t-=1,n-=1):r>=0&&i<0?(t+=1,n+=1):r>0&&i>=0?(t-=1,n+=1):(t+=1,n-=1),new nO(the(t),the(n))}function uDe(e,t){return e.c<t.c?-1:e.c>t.c?1:e.b<t.b?-1:e.b>t.b?1:e.a!=t.a?Jle(e.a)-Jle(t.a):e.d==(K4(),jbt)&&t.d==$bt?-1:e.d==$bt&&t.d==jbt?1:0}function dDe(e,t){var n,r,i,o,a;return a=(o=t.a).c.i==t.b?o.d:o.c,r=o.c.i==t.b?o.c:o.d,(i=Qpe(e.a,a,r))>0&&i<XJe?(n=YIe(e.a,r.i,i,e.c),nne(e.a,r.i,-n),n>0):i<0&&-i<XJe&&(n=qIe(e.a,r.i,-i,e.c),nne(e.a,r.i,n),n>0)}function hDe(e,t,n,r){var i,o,a,s,l,c;for(i=(t-e.d)/e.c.c.length,o=0,e.a+=n,e.d=t,c=new Gf(e.c);c.a<c.c.c.length;)s=(l=$H(J0(c),33)).g,a=l.f,Sne(l,l.i+o*i),Cne(l,l.j+r*n),Ene(l,l.g+i),xne(l,e.a),++o,uke(l,new Nk(l.g,l.f),new Nk(s,a))}function fDe(e){var t,n,r,i,o,a,s;if(null==e)return null;for(s=e.length,a=N8(IRt,m6e,25,i=(s+1)/2|0,15,1),s%2!=0&&(a[--i]=XBe((d0(s-1,e.length),e.charCodeAt(s-1)))),n=0,r=0;n<i;++n)t=XBe(cY(e,r++)),o=XBe(cY(e,r++)),a[n]=(t<<4|o)<<24>>24;return a}function pDe(e){if(e.pe()){var t=e.c;return t.qe()?e.o="["+t.n:t.pe()?e.o="["+t.ne():e.o="[L"+t.ne()+";",e.b=t.me()+"[]",void(e.k=t.oe()+"[]")}var n=e.j,r=e.d;r=r.split("/"),e.o=Fge(".",[n,Fge("$",r)]),e.b=Fge(".",[n,Fge(".",r)]),e.k=r[r.length-1]}function gDe(e,t){var n,r,i,o,a;for(a=null,o=new Gf(e.e.a);o.a<o.c.c.length;)if((i=$H(J0(o),121)).b.a.c.length==i.g.a.c.length){for(r=i.e,a=eTe(i),n=i.e-$H(a.a,19).a+1;n<i.e+$H(a.b,19).a;n++)t[n]<t[r]&&(r=n);t[r]<t[i.e]&&(--t[i.e],++t[r],i.e=r)}}function mDe(e){var t,n,i,o,a,s,l;for(i=Lqe,n=Bqe,t=new Gf(e.e.b);t.a<t.c.c.length;)for(a=new Gf($H(J0(t),29).a);a.a<a.c.c.length;)o=$H(J0(a),10),s=(l=Uy(e.p[o.p]))+Uy(e.b[e.g[o.p].p]),i=r.Math.min(i,l),n=r.Math.max(n,s);return n-i}function vDe(e,t,n,r){var i,o,a,s,l;for(s=0,l=(i=yFe(e,t)).gc();s<l;++s)if(vF(r,bY($9(e,o=$H(i.Xb(s),170)))))if(a=yY($9(e,o)),null==n){if(null==a)return o}else if(vF(n,a))return o;return null}function ADe(e,t,n,r){var i,o,a,s,l;for(s=0,l=(i=wFe(e,t)).gc();s<l;++s)if(vF(r,bY($9(e,o=$H(i.Xb(s),170)))))if(a=yY($9(e,o)),null==n){if(null==a)return o}else if(vF(n,a))return o;return null}function bDe(e,t,n){var r,i,o,a,s,l;if(a=new ml,s=iLe(e.e.Tg(),t),r=$H(e.g,119),XS(),$H(t,66).Oj())for(o=0;o<e.i;++o)i=r[o],s.rl(i.ak())&&c7(a,i);else for(o=0;o<e.i;++o)i=r[o],s.rl(i.ak())&&(l=i.dd(),c7(a,n?FOe(e,t,o,a.i,l):l));return D3(a)}function yDe(e,t){var n,r,i,o;for(n=new jfe(out),MTe(),i=0,o=(r=Sse(Uw(out,1),MYe,227,0,[Xct,Zct,qct,Jct,eut,Yct])).length;i<o;++i)hP(n,r[i],new Dv);return qE(MY(OY(hee(new LQ(null,new h0(e.b,16)),new Zn),new er),new lg(t)),new cg(n)),n}function wDe(e,t,n){var i,o,a,s,l,c,u,d;for(a=t.Kc();a.Ob();)c=(o=$H(a.Pb(),33)).i+o.g/2,d=o.j+o.f/2,l=c-((s=e.f).i+s.g/2),u=d-(s.j+s.f/2),i=r.Math.sqrt(l*l+u*u),l*=e.e/i,u*=e.e/i,n?(c-=l,d-=u):(c+=l,d+=u),Sne(o,c-o.g/2),Cne(o,d-o.f/2)}function _De(e){var t,n,r;if(!e.c&&null!=e.b){for(t=e.b.length-4;t>=0;t-=2)for(n=0;n<=t;n+=2)(e.b[n]>e.b[n+2]||e.b[n]===e.b[n+2]&&e.b[n+1]>e.b[n+3])&&(r=e.b[n+2],e.b[n+2]=e.b[n],e.b[n]=r,r=e.b[n+3],e.b[n+3]=e.b[n+1],e.b[n+1]=r);e.c=!0}}function xDe(e,t){var n,r,i,o,a,s;for(o=(1==t?Gat:Wat).a.ec().Kc();o.Ob();)for(i=$H(o.Pb(),103),s=$H(l6(e.f.c,i),21).Kc();s.Ob();)switch(a=$H(s.Pb(),46),r=$H(a.b,81),n=$H(a.a,189).c,i.g){case 2:case 1:r.g.d+=n;break;case 4:case 3:r.g.c+=n}}function EDe(e,t){var n,r,i,o,a,s,l,c,u;for(c=-1,u=0,s=0,l=(a=e).length;s<l;++s){for(o=a[s],n=new bU(-1==c?e[0]:e[c],t,(xue(),oAt)),r=0;r<o.length;r++)for(i=r+1;i<o.length;i++)IL(o[r],(lKe(),hht))&&IL(o[i],hht)&&cVe(n,o[r],o[i])>0&&++u;++c}return u}function SDe(e){var t;return(t=new uR(J_(e.gm))).a+="@",aM(t,(Jle(e)>>>0).toString(16)),e.kh()?(t.a+=" (eProxyURI: ",oM(t,e.qh()),e.$g()&&(t.a+=" eClass: ",oM(t,e.$g())),t.a+=")"):e.$g()&&(t.a+=" (eClass: ",oM(t,e.$g()),t.a+=")"),t.a}function CDe(e){var t,n,r;if(e.e)throw jv(new Fy((wB(prt),OXe+prt.k+MXe)));for(e.d==(Fde(),$Tt)&&_We(e,PTt),n=new Gf(e.a.a);n.a<n.c.c.length;)(t=$H(J0(n),307)).g=t.i;for(r=new Gf(e.a.b);r.a<r.c.c.length;)$H(J0(r),57).i=Bqe;return e.b.Le(e),e}function TDe(e,t){var n,r,i,o,a;if(t<2*e.b)throw jv(new Py("The knot vector must have at least two time the dimension elements."));for(e.f=1,i=0;i<e.b;i++)GH(e.e,0);for(n=a=t+1-2*e.b,o=1;o<a;o++)GH(e.e,o/n);if(e.d)for(r=0;r<e.b;r++)GH(e.e,1)}function kDe(e,t){var n,r,i,o,a;if(o=t,!(a=$H(zre(SV(e.i),o),33)))throw jv(new ew("Unable to find elk node for json object '"+L2(o,H6e)+"' Panic!"));r=D2(o,"edges"),IOe((n=new oO(e,a)).a,n.b,r),i=D2(o,O6e),Rwe(new Dm(e).a,i)}function ODe(e,t,n,r){var i,o,a,s,l;if(null!=r){if(i=e.d[t])for(o=i.g,l=i.i,s=0;s<l;++s)if((a=$H(o[s],133)).Sh()==n&&Dde(r,a.cd()))return s}else if(i=e.d[t])for(o=i.g,l=i.i,s=0;s<l;++s)if(UO((a=$H(o[s],133)).cd())===UO(r))return s;return-1}function MDe(e,t){var n,r;return rN(n=null==t?HO(OX(e.f,null)):lC(e.g,t),235)?((r=$H(n,235)).Qh(),r):rN(n,498)?((r=$H(n,1938).a)&&(null==r.yb||(null==t?yke(e.f,null,r):ofe(e.g,t,r))),r):null}function IDe(e){var t,n,r,i,o,a,s;if(BBe(),null==e)return null;if((i=e.length)%2!=0)return null;for(t=V9(e),n=N8(IRt,m6e,25,o=i/2|0,15,1),r=0;r<o;r++){if(-1==(a=VNt[t[2*r]]))return null;if(-1==(s=VNt[t[2*r+1]]))return null;n[r]=(a<<4|s)<<24>>24}return n}function DDe(e,t,n){var r,i,o;if(!(i=$H(aY(e.i,t),306)))if(i=new hte(e.d,t,n),vz(e.i,t,i),ime(t))wN(e.a,t.c,t.b,i);else switch(o=ITe(t),r=$H(aY(e.p,o),244),o.g){case 1:case 3:i.j=!0,yy(r,t.b,i);break;case 4:case 2:i.k=!0,yy(r,t.c,i)}return i}function NDe(e,t,n,r){var i,o,a,s,l,c;if(s=new ml,l=iLe(e.e.Tg(),t),i=$H(e.g,119),XS(),$H(t,66).Oj())for(a=0;a<e.i;++a)o=i[a],l.rl(o.ak())&&c7(s,o);else for(a=0;a<e.i;++a)o=i[a],l.rl(o.ak())&&(c=o.dd(),c7(s,r?FOe(e,t,a,s.i,c):c));return Kpe(s,n)}function RDe(e,t){var n,i,o,a,s,l;if((i=e.b[t.p])>=0)return i;for(o=1,a=new Gf(t.j);a.a<a.c.c.length;)for(n=new Gf($H(J0(a),11).g);n.a<n.c.c.length;)t!=(l=$H(J0(n),17).d.i)&&(s=RDe(e,l),o=r.Math.max(o,s+1));return tpe(e,t,o),o}function LDe(e,t,n){var r,i,o;for(r=1;r<e.c.length;r++){for(u0(r,e.c.length),o=$H(e.c[r],10),i=r;i>0&&t.ue((u0(i-1,e.c.length),$H(e.c[i-1],10)),o)>0;)r5(e,i,(u0(i-1,e.c.length),$H(e.c[i-1],10))),--i;u0(i,e.c.length),e.c[i]=o}n.a=new Nv,n.b=new Nv}function BDe(e,t,n){var r,i,o,a,s,l,c;for(c=new YF(r=$H(t.e&&t.e(),9),$H(EP(r,r.length),9),0),a=0,s=(o=bFe(n,"[\\[\\]\\s,]+")).length;a<s;++a)if(0!=LSe(i=o[a]).length){if(null==(l=jOe(e,i)))return null;aie(c,$H(l,22))}return c}function PDe(e){var t,n,i;for(n=new Gf(e.a.a.b);n.a<n.c.c.length;)t=$H(J0(n),81),bK(0),(i=0)>0&&((!fI(e.a.c)||!t.n.d)&&(!pI(e.a.c)||!t.n.b)&&(t.g.d-=r.Math.max(0,i/2-.5)),(!fI(e.a.c)||!t.n.a)&&(!pI(e.a.c)||!t.n.c)&&(t.g.a+=r.Math.max(0,i-1)))}function FDe(e,t,n){var r;if(2==(e.c-e.b&e.a.length-1))t==(bGe(),sOt)||t==aOt?(yte($H(wle(e),15),(Wye(),ykt)),yte($H(wle(e),15),wkt)):(yte($H(wle(e),15),(Wye(),wkt)),yte($H(wle(e),15),ykt));else for(r=new dY(e);r.a!=r.b;)yte($H(Pue(r),15),n)}function $De(e,t){var n,r,i,o,a,s;for(a=new x2(r=jH(new sv(e)),r.c.length),s=new x2(i=jH(new sv(t)),i.c.length),o=null;a.b>0&&s.b>0&&(SL(a.b>0),n=$H(a.a.Xb(a.c=--a.b),33),SL(s.b>0),n==$H(s.a.Xb(s.c=--s.b),33));)o=n;return o}function jDe(e,t){var n,i,o,a;return o=e.a*iXe+1502*e.b,a=e.b*iXe+11,o+=n=r.Math.floor(a*oXe),a-=n*aXe,o%=aXe,e.a=o,e.b=a,t<=24?r.Math.floor(e.a*knt[t]):((i=e.a*(1<<t-24)+r.Math.floor(e.b*Ont[t]))>=2147483648&&(i-=Wqe),i)}function HDe(e,t,n){var r,i,o,a;h1(e,t)>h1(e,n)?(r=ife(n,(bGe(),aOt)),e.d=r.dc()?0:oQ($H(r.Xb(0),11)),a=ife(t,COt),e.b=a.dc()?0:oQ($H(a.Xb(0),11))):(i=ife(n,(bGe(),COt)),e.d=i.dc()?0:oQ($H(i.Xb(0),11)),o=ife(t,aOt),e.b=o.dc()?0:oQ($H(o.Xb(0),11)))}function UDe(e){var t,n,r,i,o,a,s;if(e&&(t=e.Hh(V7e))&&null!=(a=EB(rge((!t.b&&(t.b=new qL((pKe(),ADt),zDt,t)),t.b),"conversionDelegates")))){for(s=new Dv,i=0,o=(r=bFe(a,"\\w+")).length;i<o;++i)n=r[i],s.c[s.c.length]=n;return s}return Eq(),Eq(),lnt}function QDe(e,t){var n,r,i,o;for(n=e.o.a,o=$H($H(l6(e.r,t),21),84).Kc();o.Ob();)(i=$H(o.Pb(),111)).e.a=n*Uy(xB(i.b.We(Iit))),i.e.b=(r=i.b).Xe((sKe(),iTt))?r.Hf()==(bGe(),sOt)?-r.rf().b-Uy(xB(r.We(iTt))):Uy(xB(r.We(iTt))):r.Hf()==(bGe(),sOt)?-r.rf().b:0}function zDe(e){var t,n,r,i,o,a,s,l;t=!0,i=null,o=null;e:for(l=new Gf(e.a);l.a<l.c.c.length;)for(r=new aW(XN(cfe(s=$H(J0(l),10)).a.Kc(),new u));fIe(r);){if(n=$H(z5(r),17),i&&i!=s){t=!1;break e}if(i=s,a=n.c.i,o&&o!=a){t=!1;break e}o=a}return t}function WDe(e,t,n){var r,i,o,a,s,l;for(o=-1,s=-1,a=0;a<t.c.length&&(u0(a,t.c.length),!((i=$H(t.c[a],329)).c>e.c));a++)i.a>=e.s&&(o<0&&(o=a),s=a);return l=(e.s+e.c)/2,o>=0&&(l=HS((u0(r=YPe(e,t,o,s),t.c.length),$H(t.c[r],329))),uMe(t,r,n)),l}function GDe(){GDe=M,uxt=new WI((sKe(),rCt),1.3),pxt=yCt,Txt=new GI(15),Cxt=new WI(WCt,Txt),Mxt=new WI(ITt,15),dxt=lCt,yxt=BCt,wxt=$Ct,_xt=HCt,bxt=RCt,xxt=zCt,kxt=cTt,MIe(),Sxt=axt,Axt=ixt,Ext=oxt,Oxt=lxt,gxt=rxt,mxt=CCt,vxt=TCt,fxt=nxt,hxt=txt,Ixt=cxt}function VDe(e,t,n){var r,i,o,a,s;for($re(i=new _l,(bK(t),t)),!i.b&&(i.b=new qL((pKe(),ADt),zDt,i)),s=i.b,a=1;a<n.length;a+=2)m_e(s,n[a-1],n[a]);for(!e.Ab&&(e.Ab=new eG(LIt,e,0,3)),r=e.Ab,o=0;o<0;++o)r=vK($H(Gte(r,r.i-1),590));c7(r,i)}function KDe(e,t,n){var r,i,o;for(IB.call(this,new Dv),this.a=t,this.b=n,this.e=e,e.b&&VHe(e),r=e.a,this.d=qY(r.a,this.a),this.c=qY(r.b,this.b),afe(this,this.d,this.c),vOe(this),o=this.e.e.a.ec().Kc();o.Ob();)(i=$H(o.Pb(),266)).c.c.length>0&&NQe(this,i)}function YDe(e,t,n,r,i,o){var a,s,l;if(!i[t.b]){for(i[t.b]=!0,!(a=r)&&(a=new A6),GH(a.e,t),l=o[t.b].Kc();l.Ob();)(s=$H(l.Pb(),282)).d!=n&&s.c!=n&&(s.c!=t&&YDe(e,s.c,t,a,i,o),s.d!=t&&YDe(e,s.d,t,a,i,o),GH(a.c,s),pse(a.d,s.b));return a}return null}function qDe(e){var t,n,r;for(t=0,n=new Gf(e.e);n.a<n.c.c.length;)a5(new LQ(null,new h0($H(J0(n),17).b,16)),new vn)&&++t;for(r=new Gf(e.g);r.a<r.c.c.length;)a5(new LQ(null,new h0($H(J0(r),17).b,16)),new An)&&++t;return t>=2}function XDe(e,t){var n,r,i,o;for(kEe(t,"Self-Loop pre-processing",1),r=new Gf(e.a);r.a<r.c.c.length;)Bfe(n=$H(J0(r),10))&&(o=new kme(n),lle(n,(lKe(),kht),o),b$e(o),qE(MY(hee(new LQ(null,new h0((i=o).d,16)),new Ur),new Qr),new zr),tLe(i));jCe(t)}function JDe(e,t,n,r,i){var o,a,s,l,c;for(o=e.c.d.j,a=$H(Rve(n,0),8),c=1;c<n.b;c++)l=$H(Rve(n,c),8),n5(r,a,r.c.b,r.c),s=bN(zP(new hI(a),l),.5),zP(s,bN(new WZ(lce(o)),i)),n5(r,s,r.c.b,r.c),a=l,o=0==t?xhe(o):whe(o);RU(r,(SL(0!=n.b),$H(n.c.b.c,8)))}function ZDe(e){return JIe(),!(Cae(kJ(wz(Mkt,Sse(Uw(Ukt,1),MYe,93,0,[Ikt])),e))>1||Cae(kJ(wz(Tkt,Sse(Uw(Ukt,1),MYe,93,0,[Ckt,Okt])),e))>1||Cae(kJ(wz(Rkt,Sse(Uw(Ukt,1),MYe,93,0,[Nkt,Dkt])),e))>1)}function eNe(e,t){var n,r,i;return(n=t.Hh(e.a))&&null!=(i=EB(rge((!n.b&&(n.b=new qL((pKe(),ADt),zDt,n)),n.b),"affiliation")))?-1==(r=vR(i,YEe(35)))?ohe(e,iW(e,zte(t.Hj())),i):0==r?ohe(e,null,i.substr(1)):ohe(e,i.substr(0,r),i.substr(r+1)):null}function tNe(e){var t,r;try{return null==e?QKe:$fe(e)}catch(n){if(rN(n=use(n),102))return t=n,r=J_(Zle(e))+"@"+(ME(),(eAe(e)>>>0).toString(16)),Bme(yse(),(uS(),"Exception during lenientFormat for "+r),t),"<"+r+" threw "+J_(t.gm)+">";throw jv(n)}}function nNe(e){switch(e.g){case 0:return new od;case 1:return new ed;case 2:return new MS;case 3:return new Mo;case 4:return new LP;case 5:return new ad;default:throw jv(new Py("No implementation is available for the layerer "+(null!=e.f?e.f:""+e.g)))}}function rNe(e,t,n){var r,i,o;for(o=new Gf(e.t);o.a<o.c.c.length;)(r=$H(J0(o),268)).b.s<0&&r.c>0&&(r.b.n-=r.c,r.b.n<=0&&r.b.u>0&&RU(t,r.b));for(i=new Gf(e.i);i.a<i.c.c.length;)(r=$H(J0(i),268)).a.s<0&&r.c>0&&(r.a.u-=r.c,r.a.u<=0&&r.a.n>0&&RU(n,r.a))}function iNe(e){var t,n,r;if(null==e.g&&(e.d=e.si(e.f),c7(e,e.d),e.c))return e.f;if(r=(t=$H(e.g[e.i-1],47)).Pb(),e.e=t,(n=e.si(r)).Ob())e.d=n,c7(e,n);else for(e.d=null;!t.Ob()&&(MV(e.g,--e.i,null),0!=e.i);)t=$H(e.g[e.i-1],47);return r}function oNe(e,t){var n,r,i,o,a,s;if(i=(r=t).ak(),MLe(e.e,i)){if(i.hi()&&U3(e,i,r.dd()))return!1}else for(s=iLe(e.e.Tg(),i),n=$H(e.g,119),o=0;o<e.i;++o)if(a=n[o],s.rl(a.ak()))return!Dde(a,r)&&($H(aAe(e,o,t),72),!0);return c7(e,t)}function aNe(e,t,n,i){var o,a,s;for(Fh(o=new MAe(e),(oCe(),Est)),lle(o,(lKe(),fht),t),lle(o,Sht,i),lle(o,(jVe(),evt),(Kxe(),Wkt)),lle(o,lht,t.c),lle(o,cht,t.d),QLe(t,o),s=r.Math.floor(n/2),a=new Gf(o.j);a.a<a.c.c.length;)$H(J0(a),11).n.b=s;return o}function sNe(e,t){var n,r,i,o,a,s,l,c,u;for(l=sL(e.c-e.b&e.a.length-1),c=null,u=null,o=new dY(e);o.a!=o.b;)i=$H(Pue(o),10),n=(s=$H(vSe(i,(lKe(),lht)),11))?s.i:null,r=(a=$H(vSe(i,cht),11))?a.i:null,c==n&&u==r||(UIe(l,t),c=n,u=r),l.c[l.c.length]=i;UIe(l,t)}function lNe(e){var t,n,i,o,a,s;for(t=0,n=new Gf(e.a);n.a<n.c.c.length;)for(o=new aW(XN(ufe($H(J0(n),10)).a.Kc(),new u));fIe(o);)e==(i=$H(z5(o),17)).d.i.c&&i.c.j==(bGe(),COt)&&(a=p0(i.c).b,s=p0(i.d).b,t=r.Math.max(t,r.Math.abs(s-a)));return t}function cNe(e,t,n){var r,i;kEe(n,"Remove overlaps",1),n.n&&t&&A1(n,a2(t),($ce(),oMt)),r=$H(XIe(t,(hB(),Vwt)),33),e.f=r,e.a=wAe($H(XIe(t,(zye(),L_t)),293)),ef(e,(bK(i=xB(XIe(t,(sKe(),ITt)))),i)),WWe(e,t,hBe(r),n),n.n&&t&&A1(n,a2(t),($ce(),oMt))}function uNe(e,t,n){switch(n.g){case 1:return new Nk(t.a,r.Math.min(e.d.b,t.b));case 2:return new Nk(r.Math.max(e.c.a,t.a),t.b);case 3:return new Nk(t.a,r.Math.max(e.c.b,t.b));case 4:return new Nk(r.Math.min(t.a,e.d.a),t.b)}return new Nk(t.a,t.b)}function dNe(e,t,n,r){var i,o,a,s,l,c,u,d,h;for(d=r?(bGe(),COt):(bGe(),aOt),i=!1,c=0,u=(l=t[n]).length;c<u;++c)IF($H(vSe(s=l[c],(jVe(),evt)),98))||(a=s.e,(h=!ife(s,d).dc()&&!!a)&&(o=Hxe(a),e.b=new Qxe(o,r?0:o.length-1)),i|=r$e(e,s,d,h));return i}function hNe(e){var t,n,r;for(GH(t=sL(1+(!e.c&&(e.c=new eG(zMt,e,9,9)),e.c).i),(!e.d&&(e.d=new lF(BMt,e,8,5)),e.d)),r=new ON((!e.c&&(e.c=new eG(zMt,e,9,9)),e.c));r.e!=r.i.gc();)GH(t,(!(n=$H(bve(r),118)).d&&(n.d=new lF(BMt,n,8,5)),n.d));return AV(t),new kM(t)}function fNe(e){var t,n,r;for(GH(t=sL(1+(!e.c&&(e.c=new eG(zMt,e,9,9)),e.c).i),(!e.e&&(e.e=new lF(BMt,e,7,4)),e.e)),r=new ON((!e.c&&(e.c=new eG(zMt,e,9,9)),e.c));r.e!=r.i.gc();)GH(t,(!(n=$H(bve(r),118)).e&&(n.e=new lF(BMt,n,7,4)),n.e));return AV(t),new kM(t)}function pNe(e){var t,n,r,i;if(null==e)return null;if(r=FHe(e,!0),i=N9e.length,vF(r.substr(r.length-i,i),N9e))if(4==(n=r.length)){if(d0(0,r.length),43==(t=r.charCodeAt(0)))return $Nt;if(45==t)return FNt}else if(3==n)return $Nt;return dCe(r)}function gNe(e){var t,n,r,i;for(t=0,n=0,i=new Gf(e.j);i.a<i.c.c.length;)if(t=fz(nfe(t,H6(OY(new LQ(null,new h0((r=$H(J0(i),11)).e,16)),new Jo)))),n=fz(nfe(n,H6(OY(new LQ(null,new h0(r.g,16)),new Zo)))),t>1||n>1)return 2;return t+n==1?2:0}function mNe(e,t,n){var r,i,o,a;for(kEe(n,"ELK Force",1),Hy(_B(XIe(t,(cPe(),Got))))||yJ(new _p((US(),new Ry(t)))),bwe(a=cle(t)),Qle(e,$H(vSe(a,Uot),424)),i=(o=jje(e.a,a)).Kc();i.Ob();)r=$H(i.Pb(),231),SFe(e.b,r,voe(n,1/o.gc()));EGe(a=UGe(o)),jCe(n)}function vNe(e,t){var n,r,i;if(kEe(t,"Breaking Point Processor",1),kWe(e),Hy(_B(vSe(e,(jVe(),Uvt))))){for(r=new Gf(e.b);r.a<r.c.c.length;)for(n=0,i=new Gf($H(J0(r),29).a);i.a<i.c.c.length;)$H(J0(i),10).p=n++;aUe(e),jLe(e,!0),jLe(e,!1)}jCe(t)}function ANe(e,t,n){var r,i,o,a,s;for(a=e.c,o=(n.q?n.q:(Eq(),Eq(),cnt)).vc().Kc();o.Ob();)i=$H(o.Pb(),42),!yx(OY(new LQ(null,new h0(a,16)),new ip(new Ik(t,i)))).sd((fS(),Znt))&&(rN(s=i.dd(),4)&&null!=(r=qge(s))&&(s=r),t.Ye($H(i.cd(),146),s))}function bNe(e,t){var n,r,i,o;if(t){for(o=!(i=rN(e.Cb,88)||rN(e.Cb,99))&&rN(e.Cb,322),n=new ON((!t.a&&(t.a=new iz(t,GIt,t)),t.a));n.e!=n.i.gc();)if(r=uje($H(bve(n),87)),i?rN(r,88):o?rN(r,148):r)return r;return i?(pKe(),hDt):(pKe(),cDt)}return null}function yNe(e,t){var n,r,i,o,a;for(kEe(t,"Constraints Postprocessor",1),o=0,i=new Gf(e.b);i.a<i.c.c.length;){for(a=0,r=new Gf($H(J0(i),29).a);r.a<r.c.c.length;)(n=$H(J0(r),10)).k==(oCe(),Cst)&&(lle(n,(jVe(),ymt),the(o)),lle(n,$gt,the(a)),++a);++o}jCe(t)}function wNe(e,t,n,r){var i,o,a,s,l,c;for(WP(s=new Nk(n,r),$H(vSe(t,(HQe(),Jyt)),8)),c=sve(t.b,0);c.b!=c.d.c;)zP((l=$H(d3(c),86)).e,s),RU(e.b,l);for(a=sve(t.a,0);a.b!=a.d.c;){for(i=sve((o=$H(d3(a),188)).a,0);i.b!=i.d.c;)zP($H(d3(i),8),s);RU(e.a,o)}}function _Ne(e,t,n){var r,i,o;if(!(o=FQe((TTe(),qDt),e.Tg(),t)))throw jv(new Py(n6e+t.ne()+r6e));if(XS(),!$H(o,66).Oj()&&!(o=X0($9(qDt,o))))throw jv(new Py(n6e+t.ne()+r6e));i=$H((r=e.Yg(o))>=0?e._g(r,!0,!0):rMe(e,o,!0),153),$H(i,215).ml(t,n)}function xNe(e,t){var n,r,i,o,a;for(n=new Dv,i=hee(new LQ(null,new h0(e,16)),new Ea),o=hee(new LQ(null,new h0(e,16)),new Sa),a=x9(j6(IY(ERe(Sse(Uw(ert,1),jKe,833,0,[i,o])),new Ca))),r=1;r<a.length;r++)a[r]-a[r-1]>=2*t&&GH(n,new bH(a[r-1]+t,a[r]-t));return n}function ENe(e,t,n){kEe(n,"Eades radial",1),n.n&&t&&A1(n,a2(t),($ce(),oMt)),e.d=$H(XIe(t,(hB(),Vwt)),33),e.c=Uy(xB(XIe(t,(zye(),R_t)))),e.e=wAe($H(XIe(t,L_t),293)),e.a=upe($H(XIe(t,P_t),426)),e.b=H_e($H(XIe(t,M_t),340)),n_e(e),n.n&&t&&A1(n,a2(t),($ce(),oMt))}function SNe(e,t,n){var r,i,o,a,s;if(n)for(o=((r=new lW(n.a.length)).b-r.a)*r.c<0?(eC(),_Rt):new WN(r);o.Ob();)(i=N2(n,$H(o.Pb(),19).a))&&(Mre(a=M3(e,(Z_(),s=new wb,!!t&&$Ne(s,t),s),i),L2(i,H6e)),EEe(i,a),kke(i,a),Nle(e,i,a))}function CNe(e){var t,n,r,i;if(!e.j){if(i=new Ol,null==(t=EDt).a.zc(e,t)){for(r=new ON(bX(e));r.e!=r.i.gc();)gV(i,CNe(n=$H(bve(r),26))),c7(i,n);t.a.Bc(e)}rue(i),e.j=new DM(($H(Gte(Kq((KV(),JIt).o),11),18),i.i),i.g),S5(e).b&=-33}return e.j}function TNe(e){var t,n,r,i;if(null==e)return null;if(r=FHe(e,!0),i=N9e.length,vF(r.substr(r.length-i,i),N9e))if(4==(n=r.length)){if(d0(0,r.length),43==(t=r.charCodeAt(0)))return HNt;if(45==t)return jNt}else if(3==n)return HNt;return new RA(r)}function kNe(e){var t,n,r;return(n=e.l)&n-1||(r=e.m)&r-1||(t=e.h)&t-1||0==t&&0==r&&0==n?-1:0==t&&0==r&&0!=n?pre(n):0==t&&0!=r&&0==n?pre(r)+22:0!=t&&0==r&&0==n?pre(t)+44:-1}function ONe(e,t){var n,r,i,o;for(kEe(t,"Edge joining",1),n=Hy(_B(vSe(e,(jVe(),Rvt)))),r=new Gf(e.b);r.a<r.c.c.length;)for(o=new x2($H(J0(r),29).a,0);o.b<o.d.gc();)SL(o.b<o.d.gc()),(i=$H(o.d.Xb(o.c=o.b++),10)).k==(oCe(),Sst)&&(nze(i,n),cK(o));jCe(t)}function MNe(e,t,n){var r;if(l2(e.b),CG(e.b,(Sfe(),jxt),(kS(),UEt)),CG(e.b,Hxt,t.g),CG(e.b,Uxt,t.a),e.a=MQe(e.b,t),kEe(n,"Compaction by shrinking a tree",e.a.c.length),t.i.c.length>1)for(r=new Gf(e.a);r.a<r.c.c.length;)$H(J0(r),51).pf(t,voe(n,1));jCe(n)}function INe(e,t){var n,r,i,o,a;for(i=t.a&e.f,o=null,r=e.b[i];;r=r.b){if(r==t){o?o.b=t.b:e.b[i]=t.b;break}o=r}for(a=t.f&e.f,o=null,n=e.c[a];;n=n.d){if(n==t){o?o.d=t.d:e.c[a]=t.d;break}o=n}t.e?t.e.c=t.c:e.a=t.c,t.c?t.c.e=t.e:e.e=t.e,--e.i,++e.g}function DNe(e){var t,n,i,o,a,s,l,c,u,d;for(n=e.o,t=e.p,s=RKe,o=PYe,l=RKe,a=PYe,u=0;u<n;++u)for(d=0;d<t;++d)mbe(e,u,d)&&(s=r.Math.min(s,u),o=r.Math.max(o,u),l=r.Math.min(l,d),a=r.Math.max(a,d));return c=o-s+1,i=a-l+1,new VY(the(s),the(l),the(c),the(i))}function NNe(e,t){var n,r,i,o;for(SL((o=new x2(e,0)).b<o.d.gc()),n=$H(o.d.Xb(o.c=o.b++),140);o.b<o.d.gc();)SL(o.b<o.d.gc()),i=new vU((r=$H(o.d.Xb(o.c=o.b++),140)).c,n.d,t),SL(o.b>0),o.a.Xb(o.c=--o.b),AP(o,i),SL(o.b<o.d.gc()),o.d.Xb(o.c=o.b++),i.a=!1,n=r}function RNe(e){var t,n,r,i,o;for(r=$H(vSe(e,(lKe(),Bdt)),11),o=new Gf(e.j);o.a<o.c.c.length;){for(n=new Gf((i=$H(J0(o),11)).g);n.a<n.c.c.length;)return xZ($H(J0(n),17),r),i;for(t=new Gf(i.e);t.a<t.c.c.length;)return EZ($H(J0(t),17),r),i}return null}function LNe(e,t,n){var i,o;Vue(i=cae(n.q.getTime()),0)<0?(o=VYe-fz(uge(y9(i),VYe)))==VYe&&(o=0):o=fz(uge(i,VYe)),1==t?NV(e,48+(o=r.Math.min((o+50)/100|0,9))&KYe):2==t?wee(e,o=r.Math.min((o+5)/10|0,99),2):(wee(e,o,3),t>3&&wee(e,0,t-3))}function BNe(e){var t,n,r,i;return UO(vSe(e,(jVe(),smt)))===UO((ode(),gkt))?!e.e&&UO(vSe(e,Lgt))!==UO((Bae(),bdt)):(r=$H(vSe(e,Bgt),292),i=Hy(_B(vSe(e,jgt)))||UO(vSe(e,Hgt))===UO((kre(),sut)),t=$H(vSe(e,Rgt),19).a,n=e.a.c.length,!i&&r!=(Bae(),bdt)&&(0==t||t>n))}function PNe(e){var t,n;for(n=0;n<e.c.length&&!(sQ((u0(n,e.c.length),$H(e.c[n],113)))>0);n++);if(n>0&&n<e.c.length-1)return n;for(t=0;t<e.c.length&&!(sQ((u0(t,e.c.length),$H(e.c[t],113)))>0);t++);return t>0&&n<e.c.length-1?t:e.c.length/2|0}function FNe(e,t){var n,r;if(t!=e.Cb||e.Db>>16!=6&&t){if(mwe(e,t))throw jv(new Py(h6e+LMe(e)));r=null,e.Cb&&(r=(n=e.Db>>16)>=0?swe(e,r):e.Cb.ih(e,-1-n,null,r)),t&&(r=Dve(t,e,6,r)),(r=KB(e,t,r))&&r.Fi()}else 4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,6,t,t))}function $Ne(e,t){var n,r;if(t!=e.Cb||e.Db>>16!=9&&t){if(mwe(e,t))throw jv(new Py(h6e+zPe(e)));r=null,e.Cb&&(r=(n=e.Db>>16)>=0?cwe(e,r):e.Cb.ih(e,-1-n,null,r)),t&&(r=Dve(t,e,9,r)),(r=YB(e,t,r))&&r.Fi()}else 4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,9,t,t))}function jNe(e,t){var n,r;if(t!=e.Cb||e.Db>>16!=3&&t){if(mwe(e,t))throw jv(new Py(h6e+uUe(e)));r=null,e.Cb&&(r=(n=e.Db>>16)>=0?xwe(e,r):e.Cb.ih(e,-1-n,null,r)),t&&(r=Dve(t,e,12,r)),(r=VB(e,t,r))&&r.Fi()}else 4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,3,t,t))}function HNe(e){var t,n,r,i,o;if(r=Twe(e),null==(o=e.j)&&r)return e.$j()?null:r.zj();if(rN(r,148)){if((n=r.Aj())&&(i=n.Nh())!=e.i){if((t=$H(r,148)).Ej())try{e.g=i.Kh(t,o)}catch(t){if(!rN(t=use(t),78))throw jv(t);e.g=null}e.i=i}return e.g}return null}function UNe(e){var t;return GH(t=new Dv,new NC(new Nk(e.c,e.d),new Nk(e.c+e.b,e.d))),GH(t,new NC(new Nk(e.c,e.d),new Nk(e.c,e.d+e.a))),GH(t,new NC(new Nk(e.c+e.b,e.d+e.a),new Nk(e.c+e.b,e.d))),GH(t,new NC(new Nk(e.c+e.b,e.d+e.a),new Nk(e.c,e.d+e.a))),t}function QNe(e,t,n,r){var i,o,a;if(a=O_e(t,n),r.c[r.c.length]=t,-1==e.j[a.p]||2==e.j[a.p]||e.a[t.p])return r;for(e.j[a.p]=-1,o=new aW(XN(lfe(a).a.Kc(),new u));fIe(o);)if(!d5(i=$H(z5(o),17))&&(d5(i)||i.c.i.c!=i.d.i.c)&&i!=t)return QNe(e,i,a,r);return r}function zNe(e,t,n){var r,i;for(i=t.a.ec().Kc();i.Ob();)r=$H(i.Pb(),79),!$H(LV(e.b,r),266)&&(qJ(SSe(r))==qJ(kSe(r))?ZLe(e,r,n):SSe(r)==qJ(kSe(r))?null==LV(e.c,r)&&null!=LV(e.b,kSe(r))&&nWe(e,r,n,!1):null==LV(e.d,r)&&null!=LV(e.b,SSe(r))&&nWe(e,r,n,!0))}function WNe(e,t){var n,r,i,o,a,s,l;for(i=e.Kc();i.Ob();)for(r=$H(i.Pb(),10),CZ(s=new CCe,r),Hke(s,(bGe(),aOt)),lle(s,(lKe(),yht),(lR(),!0)),a=t.Kc();a.Ob();)o=$H(a.Pb(),10),CZ(l=new CCe,o),Hke(l,COt),lle(l,yht,!0),lle(n=new hX,yht,!0),EZ(n,s),xZ(n,l)}function GNe(e,t,n,r){var i,o,a,s;i=Oge(e,t,n),o=Oge(e,n,t),a=$H(LV(e.c,t),112),s=$H(LV(e.c,n),112),i<o?new QZ((k6(),xyt),a,s,o-i):o<i?new QZ((k6(),xyt),s,a,i-o):(0!=i||t.i&&n.i&&r[t.i.c][n.i.c])&&(new QZ((k6(),xyt),a,s,0),new QZ(xyt,s,a,0))}function VNe(e,t){var n,r,i,o,a,s;for(i=0,a=new Gf(t.a);a.a<a.c.c.length;)for(i+=(o=$H(J0(a),10)).o.b+o.d.a+o.d.d+e.e,r=new aW(XN(cfe(o).a.Kc(),new u));fIe(r);)(n=$H(z5(r),17)).c.i.k==(oCe(),Tst)&&(i+=(s=$H(vSe(n.c.i,(lKe(),fht)),10)).o.b+s.d.a+s.d.d);return i}function KNe(e,t,n){var r,i,o,a,s,l,c;for(o=new Dv,kHe(e,c=new YE,a=new YE,t),wWe(e,c,a,t,n),l=new Gf(e);l.a<l.c.c.length;)for(i=new Gf((s=$H(J0(l),112)).k);i.a<i.c.c.length;)r=$H(J0(i),129),(!t||r.c==(k6(),_yt))&&s.g>r.b.g&&(o.c[o.c.length]=r);return o}function YNe(){YNe=M,Rxt=new yk("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),Nxt=new yk("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),Bxt=new yk("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),Lxt=new yk("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),Pxt=new yk("WHOLE_DRAWING",4)}function qNe(e,t){if(rN(t,239))return lhe(e,$H(t,33));if(rN(t,186))return Rhe(e,$H(t,118));if(rN(t,354))return ZY(e,$H(t,137));if(rN(t,352))return qje(e,$H(t,79));if(t)return null;throw jv(new Py(Q6e+ISe(new qy(Sse(Uw(Met,1),jKe,1,5,[t])))))}function XNe(e){var t,n,r,i,o,a,s;for(o=new YE,i=new Gf(e.d.a);i.a<i.c.c.length;)0==(r=$H(J0(i),121)).b.a.c.length&&n5(o,r,o.c.b,o.c);if(o.b>1)for(t=OR((n=new HA,++e.b,n),e.d),s=sve(o,0);s.b!=s.d.c;)a=$H(d3(s),121),zRe(iS(rS(oS(nS(new jA,1),0),t),a))}function JNe(e,t){var n,r;if(t!=e.Cb||e.Db>>16!=11&&t){if(mwe(e,t))throw jv(new Py(h6e+QPe(e)));r=null,e.Cb&&(r=(n=e.Db>>16)>=0?Ewe(e,r):e.Cb.ih(e,-1-n,null,r)),t&&(r=Dve(t,e,10,r)),(r=QP(e,t,r))&&r.Fi()}else 4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,11,t,t))}function ZNe(e){var t,n,r,i;for(r=new oce(new Sf(e.b).a);r.b;)i=$H((n=Zte(r)).cd(),11),lle(t=$H(n.dd(),10),(lKe(),fht),i),lle(i,wht,t),lle(i,eht,(lR(),!0)),Hke(i,$H(vSe(t,Kdt),61)),vSe(t,Kdt),lle(i.i,(jVe(),evt),(Kxe(),Vkt)),$H(vSe(mK(i.i),Xdt),21).Fc((dBe(),fdt))}function eRe(e,t,n){var r,i,o;if(r=0,i=0,e.c)for(o=new Gf(e.d.i.j);o.a<o.c.c.length;)r+=$H(J0(o),11).e.c.length;else r=1;if(e.d)for(o=new Gf(e.c.i.j);o.a<o.c.c.length;)i+=$H(J0(o),11).g.c.length;else i=1;return(n+t)/2+.4*CJ(jU(i-r))*(n-t)}function tRe(e){var t,n;if(Ixe(),e.Hc((bGe(),SOt)))throw jv(new Py("Port sides must not contain UNDEFINED"));switch(e.gc()){case 1:return xct;case 2:return t=e.Hc(aOt)&&e.Hc(COt),n=e.Hc(sOt)&&e.Hc(EOt),t||n?Cct:Sct;case 3:return Ect;case 4:return _ct;default:return null}}function nRe(e,t,n){var r,i,o,a;for(kEe(n,"Breaking Point Removing",1),e.a=$H(vSe(t,(jVe(),Xgt)),218),i=new Gf(t.b);i.a<i.c.c.length;)for(a=new Gf(i1($H(J0(i),29).a));a.a<a.c.c.length;)qee(o=$H(J0(a),10))&&!(r=$H(vSe(o,(lKe(),Ldt)),305)).d&&QGe(e,r);jCe(n)}function rRe(e,t,n){return yBe(),(!Roe(e,t)||!Roe(e,n))&&(vWe(new Nk(e.c,e.d),new Nk(e.c+e.b,e.d),t,n)||vWe(new Nk(e.c+e.b,e.d),new Nk(e.c+e.b,e.d+e.a),t,n)||vWe(new Nk(e.c+e.b,e.d+e.a),new Nk(e.c,e.d+e.a),t,n)||vWe(new Nk(e.c,e.d+e.a),new Nk(e.c,e.d),t,n))}function iRe(e,t){var n,r,i,o;if(!e.dc())for(n=0,r=e.gc();n<r;++n)if(null==(o=EB(e.Xb(n)))?null==t:vF(o.substr(0,3),"!##")?null!=t&&(i=t.length,!vF(o.substr(o.length-i,i),t)||o.length!=t.length+3)&&!vF(E9e,t):vF(o,S9e)&&!vF(E9e,t)||vF(o,t))return!0;return!1}function oRe(e,t,n,r){var i,o,a,s,l,c;for(a=e.j.c.length,l=N8(iit,nJe,306,a,0,1),s=0;s<a;s++)(o=$H(NQ(e.j,s),11)).p=s,l[s]=lMe(vIe(o),n,r);for(VRe(e,l,n,t,r),c=new Nv,i=0;i<l.length;i++)l[i]&&VK(c,$H(NQ(e.j,i),11),l[i]);c.f.c+c.g.c!=0&&(lle(e,(lKe(),Qdt),c),OCe(e,l))}function aRe(e,t,n){var r,i;for(r=new Gf(e.a.b);r.a<r.c.c.length;)if((i=c2($H(J0(r),57)))&&i.k==(oCe(),xst))switch($H(vSe(i,(lKe(),Kdt)),61).g){case 4:i.n.a=t.a;break;case 2:i.n.a=n.a-(i.o.a+i.d.c);break;case 1:i.n.b=t.b;break;case 3:i.n.b=n.b-(i.o.b+i.d.a)}}function sRe(){sRe=M,TAt=new jT(KZe,0),_At=new jT("NIKOLOV",1),SAt=new jT("NIKOLOV_PIXEL",2),xAt=new jT("NIKOLOV_IMPROVED",3),EAt=new jT("NIKOLOV_IMPROVED_PIXEL",4),wAt=new jT("DUMMYNODE_PERCENTAGE",5),CAt=new jT("NODECOUNT_PERCENTAGE",6),kAt=new jT("NO_BOUNDARY",7)}function lRe(e,t,n){var r,i,o;if(!(i=$H(XIe(t,(ESe(),zSt)),19))&&(i=the(0)),!(o=$H(XIe(n,zSt),19))&&(o=the(0)),i.a>o.a)return-1;if(i.a<o.a)return 1;if(e.a){if(0!=(r=She(t.j,n.j)))return r;if(0!=(r=She(t.i,n.i)))return r}return She(t.g*t.f,n.g*n.f)}function cRe(e,t){var n,r,i,o,a,s,l,c,u,d;if(++e.e,t>(l=null==e.d?0:e.d.length)){for(u=e.d,e.d=N8(sIt,r7e,63,2*l+4,0,1),o=0;o<l;++o)if(c=u[o])for(r=c.g,d=c.i,s=0;s<d;++s)a=eP(e,(i=$H(r[s],133)).Sh()),!(n=e.d[a])&&(n=e.d[a]=e.uj()),n.Fc(i);return!0}return!1}function uRe(e,t,n){var r,i,o,a,s,l;if(o=(i=n).ak(),MLe(e.e,o)){if(o.hi())for(r=$H(e.g,119),a=0;a<e.i;++a)if(Dde(s=r[a],i)&&a!=t)throw jv(new Py(i8e))}else for(l=iLe(e.e.Tg(),o),r=$H(e.g,119),a=0;a<e.i;++a)if(s=r[a],l.rl(s.ak()))throw jv(new Py(T9e));she(e,t,n)}function dRe(e,t){var n,r,i,o,a,s;for(n=$H(vSe(t,(lKe(),Wdt)),21),a=$H(l6((LVe(),cst),n),21),s=$H(l6(gst,n),21),o=a.Kc();o.Ob();)if(r=$H(o.Pb(),21),!$H(l6(e.b,r),15).dc())return!1;for(i=s.Kc();i.Ob();)if(r=$H(i.Pb(),21),!$H(l6(e.b,r),15).dc())return!1;return!0}function hRe(e,t){var n,r,i;for(kEe(t,"Partition postprocessing",1),n=new Gf(e.b);n.a<n.c.c.length;)for(r=new Gf($H(J0(n),29).a);r.a<r.c.c.length;)for(i=new Gf($H(J0(r),10).j);i.a<i.c.c.length;)Hy(_B(vSe($H(J0(i),11),(lKe(),yht))))&&OG(i);jCe(t)}function fRe(e,t){var n,r,i,o,a,s,l;if(1==e.a.c.length)return FCe($H(NQ(e.a,0),187),t);for(i=rde(e),a=0,s=e.d,r=i,l=e.d,o=(s-r)/2+r;r+1<s;){for(a=0,n=new Gf(e.a);n.a<n.c.c.length;)a+=rUe($H(J0(n),187),o,!1).a;a<t?(l=o,s=o):r=o,o=(s-r)/2+r}return l}function pRe(e){var t,n,r,i;return isNaN(e)?(W9(),gtt):e<-0x8000000000000000?(W9(),ftt):e>=0x8000000000000000?(W9(),htt):(r=!1,e<0&&(r=!0,e=-e),n=0,e>=kqe&&(e-=(n=CJ(e/kqe))*kqe),t=0,e>=Tqe&&(e-=(t=CJ(e/Tqe))*Tqe),i=xD(CJ(e),t,n),r&&kle(i),i)}function gRe(e,t){var n,r,i,o;for(n=!t||!e.u.Hc((uOe(),eOt)),o=0,i=new Gf(e.e.Cf());i.a<i.c.c.length;){if((r=$H(J0(i),838)).Hf()==(bGe(),SOt))throw jv(new Py("Label and node size calculator can only be used with ports that have port sides assigned."));r.vf(o++),Gue(e,r,n)}}function mRe(e,t){var n,r,i,o;return(r=t.Hh(e.a))&&(!r.b&&(r.b=new qL((pKe(),ADt),zDt,r)),null!=(n=EB(rge(r.b,q7e)))&&rN(o=-1==(i=n.lastIndexOf("#"))?oB(e,t.Aj(),n):0==i?x7(e,null,n.substr(1)):x7(e,n.substr(0,i),n.substr(i+1)),148))?$H(o,148):null}function vRe(e,t){var n,r,i,o;return(n=t.Hh(e.a))&&(!n.b&&(n.b=new qL((pKe(),ADt),zDt,n)),null!=(i=EB(rge(n.b,b9e)))&&rN(o=-1==(r=i.lastIndexOf("#"))?oB(e,t.Aj(),i):0==r?x7(e,null,i.substr(1)):x7(e,i.substr(0,r),i.substr(r+1)),148))?$H(o,148):null}function ARe(e){var t,n,r,i,o;for(n=new Gf(e.a.a);n.a<n.c.c.length;){for((t=$H(J0(n),307)).j=null,o=t.a.a.ec().Kc();o.Ob();)bM((r=$H(o.Pb(),57)).b),(!t.j||r.d.c<t.j.d.c)&&(t.j=r);for(i=t.a.a.ec().Kc();i.Ob();)(r=$H(i.Pb(),57)).b.a=r.d.c-t.j.d.c,r.b.b=r.d.d-t.j.d.d}return e}function bRe(e){var t,n,r,i,o;for(n=new Gf(e.a.a);n.a<n.c.c.length;){for((t=$H(J0(n),189)).f=null,o=t.a.a.ec().Kc();o.Ob();)bM((r=$H(o.Pb(),81)).e),(!t.f||r.g.c<t.f.g.c)&&(t.f=r);for(i=t.a.a.ec().Kc();i.Ob();)(r=$H(i.Pb(),81)).e.a=r.g.c-t.f.g.c,r.e.b=r.g.d-t.f.g.d}return e}function yRe(e){var t,n,i;return n=$H(e.a,19).a,i=$H(e.b,19).a,n<(t=r.Math.max(r.Math.abs(n),r.Math.abs(i)))&&i==-t?new nO(the(n+1),the(i)):n==t&&i<t?new nO(the(n),the(i+1)):n>=-t&&i==t?new nO(the(n-1),the(i)):new nO(the(n),the(i-1))}function wRe(){return uKe(),Sse(Uw(oct,1),MYe,77,0,[nlt,Zst,rlt,blt,Flt,xlt,zlt,klt,Blt,plt,Dlt,Tlt,Plt,ult,Glt,Vst,Ilt,jlt,ylt,$lt,Klt,Rlt,Kst,Llt,Ylt,Ult,Vlt,wlt,slt,_lt,Alt,Wlt,Xst,olt,Slt,qst,Clt,mlt,dlt,Olt,flt,elt,Jst,vlt,hlt,Mlt,Qlt,Yst,Nlt,glt,Elt,llt,alt,Hlt,ilt,clt,tlt])}function _Re(e,t,n){e.d=0,e.b=0,t.k==(oCe(),Tst)&&n.k==Tst&&$H(vSe(t,(lKe(),fht)),10)==$H(vSe(n,fht),10)&&(E9(t).j==(bGe(),sOt)?HDe(e,t,n):HDe(e,n,t)),t.k==Tst&&n.k==Sst?E9(t).j==(bGe(),sOt)?e.d=1:e.b=1:n.k==Tst&&t.k==Sst&&(E9(n).j==(bGe(),sOt)?e.b=1:e.d=1),obe(e,t,n)}function xRe(e){var t,n,r,i,o;return o=OEe(e),null!=e.a&&OU(o,"category",e.a),!Gx(new Cf(e.d))&&(nte(o,"knownOptions",r=new Sh),t=new ev(r),e5(new Cf(e.d),t)),!Gx(e.g)&&(nte(o,"supportedFeatures",i=new Sh),n=new tv(i),e5(e.g,n)),o}function ERe(e){var t,n,r,i,o,a,s,l;for(t=336,n=0,i=new sP(e.length),s=0,l=(a=e).length;s<l;++s)Khe(o=a[s]),wK(o),r=o.a,GH(i.a,AV(r)),t&=r.qd(),n=Yce(n,r.rd());return $H($H(WG(new LQ(null,HEe(new h0((GV(),Dpe(i.a)),16),new w,t,n)),new yh(e)),670),833)}function SRe(e,t){var n;e.d&&(t.c!=e.e.c||coe(e.e.b,t.b))&&(GH(e.f,e.d),e.a=e.d.c+e.d.b,e.d=null,e.e=null),JM(t.b)?e.c=t:e.b=t,(t.b==(Ose(),Xat)&&!t.a||t.b==Jat&&t.a||t.b==Zat&&t.a||t.b==est&&!t.a)&&e.c&&e.b&&(n=new zY(e.a,e.c.d,t.c-e.a,e.b.d-e.c.d),e.d=n,e.e=t)}function CRe(e){var t;if(Yb.call(this),this.i=new fs,this.g=e,this.f=$H(e.e&&e.e(),9).length,0==this.f)throw jv(new Py("There must be at least one phase in the phase enumeration."));this.c=new YF(t=$H(V_(this.g),9),$H(EP(t,t.length),9),0),this.a=new $2,this.b=new Nv}function TRe(e,t){var n,r;if(t!=e.Cb||e.Db>>16!=7&&t){if(mwe(e,t))throw jv(new Py(h6e+rTe(e)));r=null,e.Cb&&(r=(n=e.Db>>16)>=0?lwe(e,r):e.Cb.ih(e,-1-n,null,r)),t&&(r=$H(t,49).gh(e,1,NMt,r)),(r=Vz(e,t,r))&&r.Fi()}else 4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,7,t,t))}function kRe(e,t){var n,r;if(t!=e.Cb||e.Db>>16!=3&&t){if(mwe(e,t))throw jv(new Py(h6e+Vde(e)));r=null,e.Cb&&(r=(n=e.Db>>16)>=0?dwe(e,r):e.Cb.ih(e,-1-n,null,r)),t&&(r=$H(t,49).gh(e,0,FMt,r)),(r=Kz(e,t,r))&&r.Fi()}else 4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,3,t,t))}function ORe(e,t){var n,r,i,o,a,s,l,c,u;return MMe(),t.d>e.d&&(s=e,e=t,t=s),t.d<63?WLe(e,t):(c=Q5(e,a=(-2&e.d)<<4),u=Q5(t,a),r=oHe(e,U5(c,a)),i=oHe(t,U5(u,a)),l=ORe(c,u),n=ORe(r,i),o=U5(o=MUe(MUe(o=ORe(oHe(c,r),oHe(i,u)),l),n),a),MUe(MUe(l=U5(l,a<<1),o),n))}function MRe(e,t,n){var r,i,o,a,s;for(a=Ide(e,n),s=N8(kst,i0e,10,t.length,0,1),r=0,o=a.Kc();o.Ob();)Hy(_B(vSe(i=$H(o.Pb(),11),(lKe(),eht))))&&(s[r++]=$H(vSe(i,wht),10));if(r<t.length)throw jv(new Fy("Expected "+t.length+" hierarchical ports, but found only "+r+"."));return s}function IRe(e,t){var n,r,i,o,a,s;if(!e.tb){for(!e.rb&&(e.rb=new qW(e,$It,e)),s=new WE((o=e.rb).i),i=new ON(o);i.e!=i.i.gc();)r=$H(bve(i),138),(n=$H(null==(a=r.ne())?yke(s.f,null,r):ofe(s.g,a,r),138))&&(null==a?yke(s.f,null,n):ofe(s.g,a,n));e.tb=s}return $H(EJ(e.tb,t),138)}function DRe(e,t){var n,r,i,o,a;if((null==e.i&&Hje(e),e.i).length,!e.p){for(a=new WE(1+(3*e.g.i/2|0)),i=new iL(e.g);i.e!=i.i.gc();)r=$H(yve(i),170),(n=$H(null==(o=r.ne())?yke(a.f,null,r):ofe(a.g,o,r),170))&&(null==o?yke(a.f,null,n):ofe(a.g,o,n));e.p=a}return $H(EJ(e.p,t),170)}function NRe(e,t,n,r,i){var o,a,s,l;for(hme(r+CX(n,n.$d()),i),ZV(t,Ipe(n)),(o=n.f)&&NRe(e,t,o,"Caused by: ",!1),null==n.k&&(n.k=N8(Xet,sYe,78,0,0,1)),s=0,l=(a=n.k).length;s<l;++s)NRe(e,t,a[s],"Suppressed: ",!1);null!=console.groupEnd&&console.groupEnd.call(console)}function RRe(e,t,n,r){var i,o,a,s;for(a=(s=t.e).length,o=t.q._f(s,n?0:a-1,n),o|=pPe(e,s[n?0:a-1],n,r),i=n?1:a-2;n?i<a:i>=0;i+=n?1:-1)o|=t.c.Sf(s,i,n,r&&!Hy(_B(vSe(t.j,(lKe(),qdt))))&&!Hy(_B(vSe(t.j,(lKe(),Tht))))),o|=t.q._f(s,i,n),o|=pPe(e,s[i],n,r);return _G(e.c,t),o}function LRe(e,t,n){var r,i,o,a,s,l,c,u;for(c=0,u=(l=T2(e.j)).length;c<u;++c){if(s=l[c],n==(ire(),jAt)||n==UAt)for(o=0,a=(i=X1(s.g)).length;o<a;++o)kCe(t,r=i[o])&&Zje(r,!0);if(n==HAt||n==UAt)for(o=0,a=(i=X1(s.e)).length;o<a;++o)TCe(t,r=i[o])&&Zje(r,!0)}}function BRe(e){var t,n;switch(t=null,n=null,exe(e).g){case 1:bGe(),t=aOt,n=COt;break;case 2:bGe(),t=EOt,n=sOt;break;case 3:bGe(),t=COt,n=aOt;break;case 4:bGe(),t=sOt,n=EOt}Hh(e,$H(MR(kW($H(l6(e.k,t),15).Oc(),Kct)),113)),jh(e,$H(MR(TW($H(l6(e.k,n),15).Oc(),Kct)),113))}function PRe(e){var t,n,r,i,o,a;if((i=$H(NQ(e.j,0),11)).e.c.length+i.g.c.length==0)e.n.a=0;else{for(a=0,r=DG(Gne(Sse(Uw(Ret,1),jKe,20,0,[new jp(i),new Up(i)])));fIe(r);)a+=(n=$H(z5(r),11)).i.n.a+n.n.a+n.a.a;o=(t=$H(vSe(e,(jVe(),Jmt)),8))?t.a:0,e.n.a=a/(i.e.c.length+i.g.c.length)-o}}function FRe(e,t){var n,r,i;for(r=new Gf(t.a);r.a<r.c.c.length;)n=$H(J0(r),221),Iz($H(n.b,65),WP($D($H(t.b,65).c),$H(t.b,65).a)),(i=Y$e($H(t.b,65).b,$H(n.b,65).b))>1&&(e.a=!0),Dz($H(n.b,65),zP($D($H(t.b,65).c),bN(WP($D($H(n.b,65).a),$H(t.b,65).a),i))),KZ(e,t),FRe(e,n)}function $Re(e){var t,n,r,i,o,a;for(i=new Gf(e.a.a);i.a<i.c.c.length;)(n=$H(J0(i),189)).e=0,n.d.a.$b();for(r=new Gf(e.a.a);r.a<r.c.c.length;)for(t=(n=$H(J0(r),189)).a.a.ec().Kc();t.Ob();)for(a=$H(t.Pb(),81).f.Kc();a.Ob();)(o=$H(a.Pb(),81)).d!=n&&(_G(n.d,o),++o.d.e)}function jRe(e){var t,n,r,i,o,a,s,l;for(n=0,t=l=e.j.c.length,i=2*l,s=new Gf(e.j);s.a<s.c.c.length;)switch((a=$H(J0(s),11)).j.g){case 2:case 4:a.p=-1;break;case 1:case 3:r=a.e.c.length,o=a.g.c.length,a.p=r>0&&o>0?t++:r>0?n++:o>0?i++:n++}Eq(),vD(e.j,new fr)}function HRe(e){var t,n;n=null,t=$H(NQ(e.g,0),17);do{if(IL(n=t.d.i,(lKe(),cht)))return $H(vSe(n,cht),11).i;if(n.k!=(oCe(),Cst)&&fIe(new aW(XN(ufe(n).a.Kc(),new u))))t=$H(z5(new aW(XN(ufe(n).a.Kc(),new u))),17);else if(n.k!=Cst)return null}while(n&&n.k!=(oCe(),Cst));return n}function URe(e,t){var n,r,i,o,a,s,l,c,u;for(s=t.j,a=t.g,l=$H(NQ(s,s.c.length-1),113),u0(0,s.c.length),c=Xbe(e,a,l,u=$H(s.c[0],113)),o=1;o<s.c.length;o++)u0(o-1,s.c.length),n=$H(s.c[o-1],113),u0(o,s.c.length),(r=Xbe(e,a,n,i=$H(s.c[o],113)))>c&&(l=n,u=i,c=r);t.a=u,t.c=l}function QRe(e,t){var n;if(!XG(e.b,t.b))throw jv(new Fy("Invalid hitboxes for scanline constraint calculation."));(bse(t.b,$H(xP(e.b,t.b),57))||bse(t.b,$H(_P(e.b,t.b),57)))&&(ME(),t.b),e.a[t.b.f]=$H(bF(e.b,t.b),57),(n=$H(AF(e.b,t.b),57))&&(e.a[n.f]=t.b)}function zRe(e){if(!e.a.d||!e.a.e)throw jv(new Fy((wB(jrt),jrt.k+" must have a source and target "+(wB(Hrt),Hrt.k+" specified."))));if(e.a.d==e.a.e)throw jv(new Fy("Network simplex does not support self-loops: "+e.a+" "+e.a.d+" "+e.a.e));return LR(e.a.d.g,e.a),LR(e.a.e.b,e.a),e.a}function WRe(e,t,n){var r,i,o,a,s,l,c;for(c=new fx(new qg(e)),s=0,l=(a=Sse(Uw(Ust,1),o0e,11,0,[t,n])).length;s<l;++s)for(o=a[s],xle(c.a,o,(lR(),mtt)),i=new v6(o.b);AD(i.a)||AD(i.b);)(r=$H(AD(i.a)?J0(i.a):J0(i.b),17)).c==r.d||XG(c,o==r.c?r.d:r.c);return AV(c),new ZF(c)}function GRe(e,t,n){var r,i,o,a,s,l;if(r=0,0!=t.b&&0!=n.b){o=sve(t,0),a=sve(n,0),s=Uy(xB(d3(o))),l=Uy(xB(d3(a))),i=!0;do{if(s>l-e.b&&s<l+e.b)return-1;s>l-e.a&&s<l+e.a&&++r,s<=l&&o.b!=o.d.c?s=Uy(xB(d3(o))):l<=s&&a.b!=a.d.c?l=Uy(xB(d3(a))):i=!1}while(i)}return r}function VRe(e,t,n,r,i){var o,a,s,l;for(l=new YF(o=$H(V_(FOt),9),$H(EP(o,o.length),9),0),s=new Gf(e.j);s.a<s.c.c.length;)t[(a=$H(J0(s),11)).p]&&($Ge(a,t[a.p],r),aie(l,a.j));i?(Uxe(e,t,(bGe(),aOt),2*n,r),Uxe(e,t,COt,2*n,r)):(Uxe(e,t,(bGe(),sOt),2*n,r),Uxe(e,t,EOt,2*n,r))}function KRe(e){var t,n,r,i,o;if(o=new Dv,kte(e.b,new bp(o)),e.b.c=N8(Met,jKe,1,0,5,1),0!=o.c.length){for(u0(0,o.c.length),t=$H(o.c[0],78),n=1,r=o.c.length;n<r;++n)u0(n,o.c.length),(i=$H(o.c[n],78))!=t&&UEe(t,i);if(rN(t,60))throw jv($H(t,60));if(rN(t,289))throw jv($H(t,289))}}function YRe(e,t){var n,r,i,o;for(e=null==e?QKe:(bK(e),e),n=new Tw,o=0,r=0;r<t.length&&-1!=(i=e.indexOf("%s",o));)aM(n,e.substr(o,i-o)),oM(n,t[r++]),o=i+2;if(aM(n,e.substr(o)),r<t.length){for(n.a+=" [",oM(n,t[r++]);r<t.length;)n.a+=FKe,oM(n,t[r++]);n.a+="]"}return n.a}function qRe(e){var t,n,r,i;for(t=0,i=(r=e.length)-4,n=0;n<i;)d0(n+3,e.length),t=e.charCodeAt(n+3)+(d0(n+2,e.length),31*(e.charCodeAt(n+2)+(d0(n+1,e.length),31*(e.charCodeAt(n+1)+(d0(n,e.length),31*(e.charCodeAt(n)+31*t)))))),t|=0,n+=4;for(;n<r;)t=31*t+cY(e,n++);return 0|t}function XRe(e){var t;for(t=new aW(XN(ufe(e).a.Kc(),new u));fIe(t);)if($H(z5(t),17).d.i.k!=(oCe(),Est))throw jv(new nw(S0e+pye(e)+"' has its layer constraint set to LAST, but has at least one outgoing edge that  does not go to a LAST_SEPARATE node. That must not happen."))}function JRe(e,t,n,i){var o,a,s,l,c,d,h;for(l=0,c=new Gf(e.a);c.a<c.c.c.length;){for(s=0,a=new aW(XN(cfe($H(J0(c),10)).a.Kc(),new u));fIe(a);)d=p0((o=$H(z5(a),17)).c).b,h=p0(o.d).b,s=r.Math.max(s,r.Math.abs(h-d));l=r.Math.max(l,s)}return i*r.Math.min(1,t/n)*l}function ZRe(e){var t;return t=new Sw,256&e&&(t.a+="F"),128&e&&(t.a+="H"),512&e&&(t.a+="X"),2&e&&(t.a+="i"),8&e&&(t.a+="m"),4&e&&(t.a+="s"),32&e&&(t.a+="u"),64&e&&(t.a+="w"),16&e&&(t.a+="x"),e&b6e&&(t.a+=","),zy(t.a)}function eLe(e,t){var n,r,i;for(kEe(t,"Resize child graph to fit parent.",1),r=new Gf(e.b);r.a<r.c.c.length;)n=$H(J0(r),29),pse(e.a,n.a),n.a.c=N8(Met,jKe,1,0,5,1);for(i=new Gf(e.a);i.a<i.c.c.length;)SZ($H(J0(i),10),null);e.b.c=N8(Met,jKe,1,0,5,1),$Le(e),e.e&&E$e(e.e,e),jCe(t)}function tLe(e){var t,n,r,i,o,a,s;if(i=(r=e.b).e,o=IF($H(vSe(r,(jVe(),evt)),98)),n=!!i&&$H(vSe(i,(lKe(),Xdt)),21).Hc((dBe(),udt)),!o&&!n)for(s=new Bf(new kf(e.e).a.vc().Kc());s.a.Ob();)t=$H(s.a.Pb(),42),(a=$H(t.dd(),113)).a&&(CZ(a.d,null),a.c=!0,e.a=!0)}function nLe(e){var t,n,r,i,o,a,s,l,c,u,d,h;for(d=-1,h=0,c=0,u=(l=e).length;c<u;++c){for(a=0,s=(o=l[c]).length;a<s;++a)for(i=o[a],t=new gT(-1==d?e[0]:e[d],awe(i)),n=0;n<i.j.c.length;n++)for(r=n+1;r<i.j.c.length;r++)DW(t,$H(NQ(i.j,n),11),$H(NQ(i.j,r),11))>0&&++h;++d}return h}function rLe(e,t){var n,r,i,o,a;for(a=$H(vSe(t,(CIe(),Iwt)),425),o=sve(t.b,0);o.b!=o.d.c;)if(i=$H(d3(o),86),0==e.b[i.g]){switch(a.g){case 0:KAe(e,i);break;case 1:jIe(e,i)}e.b[i.g]=2}for(r=sve(e.a,0);r.b!=r.d.c;)Ape((n=$H(d3(r),188)).b.d,n,!0),Ape(n.c.b,n,!0);lle(t,(HQe(),uwt),e.a)}function iLe(e,t){var n,r,i,o;return XS(),t?t==(zQe(),LNt)||(t==vNt||t==gNt||t==mNt)&&e!=pNt?new rGe(e,t):((n=(r=$H(t,677)).pk())||(bY($9((TTe(),qDt),t)),n=r.pk()),!n.i&&(n.i=new Nv),!(i=$H(HO(OX((o=n.i).f,e)),1942))&&VK(o,e,i=new rGe(e,t)),i):rNt}function oLe(e,t){var n,r,i,o,a,s,l,c;for(s=$H(vSe(e,(lKe(),fht)),11),l=Ole(Sse(Uw(SSt,1),sYe,8,0,[s.i.n,s.n,s.a])).a,c=e.i.n.b,i=0,o=(r=X1(e.e)).length;i<o;++i)xZ(n=r[i],s),cM(n.a,new Nk(l,c)),t&&((a=$H(vSe(n,(jVe(),mmt)),74))||(a=new bb,lle(n,mmt,a)),RU(a,new Nk(l,c)))}function aLe(e,t){var n,r,i,o,a,s,l,c;for(r=$H(vSe(e,(lKe(),fht)),11),l=Ole(Sse(Uw(SSt,1),sYe,8,0,[r.i.n,r.n,r.a])).a,c=e.i.n.b,a=0,s=(o=X1(e.g)).length;a<s;++a)EZ(i=o[a],r),lM(i.a,new Nk(l,c)),t&&((n=$H(vSe(i,(jVe(),mmt)),74))||(n=new bb,lle(i,mmt,n)),RU(n,new Nk(l,c)))}function sLe(e,t){var n,r,i,o,a;for(e.b=new Dv,e.d=$H(vSe(t,(lKe(),Eht)),230),e.e=r1(e.d),o=new YE,i=o6(Sse(Uw(yst,1),qZe,37,0,[t])),a=0;a<i.c.length;)u0(a,i.c.length),(r=$H(i.c[a],37)).p=a++,pse(i,(n=new Cze(r,e.a,e.b)).b),GH(e.b,n),n.s&&JG(sve(o,0),n);return e.c=new LA,o}function lLe(e,t){var n,r,i,o,a,s;for(a=$H($H(l6(e.r,t),21),84).Kc();a.Ob();)(n=(o=$H(a.Pb(),111)).c?VU(o.c):0)>0?o.a?n>(s=o.b.rf().a)&&(i=(n-s)/2,o.d.b=i,o.d.c=i):o.d.c=e.s+n:jW(e.u)&&((r=PEe(o.b)).c<0&&(o.d.b=-r.c),r.c+r.b>o.b.rf().a&&(o.d.c=r.c+r.b-o.b.rf().a))}function cLe(e,t){var n,r;for(kEe(t,"Semi-Interactive Crossing Minimization Processor",1),n=!1,r=new Gf(e.b);r.a<r.c.c.length;)n|=null!=Mde(Ate(OY(OY(new LQ(null,new h0($H(J0(r),29).a,16)),new qr),new Xr),new Jr),new Zr).a;n&&lle(e,(lKe(),iht),(lR(),!0)),jCe(t)}function uLe(e,t,n){var r,i,o;if(!(i=n)&&(i=new Wb),kEe(i,"Layout",e.a.c.length),Hy(_B(vSe(t,(CIe(),wwt)))))for(ME(),r=0;r<e.a.c.length;r++)r++,J_(Zle($H(NQ(e.a,r),51)));for(o=new Gf(e.a);o.a<o.c.c.length;)$H(J0(o),51).pf(t,voe(i,1));jCe(i)}function dLe(e){var t,n;if(t=$H(e.a,19).a,n=$H(e.b,19).a,t>=0){if(t==n)return new nO(the(-t-1),the(-t-1));if(t==-n)return new nO(the(-t),the(n+1))}return r.Math.abs(t)>r.Math.abs(n)?new nO(the(-t),the(t<0?n:n+1)):new nO(the(t+1),the(n))}function hLe(e){var t,n;n=$H(vSe(e,(jVe(),bmt)),163),t=$H(vSe(e,(lKe(),tht)),303),n==(_fe(),Fht)?(lle(e,bmt,Hht),lle(e,tht,(Q9(),Cdt))):n==jht?(lle(e,bmt,Hht),lle(e,tht,(Q9(),Edt))):t==(Q9(),Cdt)?(lle(e,bmt,Fht),lle(e,tht,Sdt)):t==Edt&&(lle(e,bmt,jht),lle(e,tht,Sdt))}function fLe(){fLe=M,yyt=new ca,myt=fQ(new $2,(ASe(),Pat),(uKe(),ylt)),byt=Gz(fQ(new $2,Pat,Rlt),$at,Nlt),wyt=ame(ame(FS(Gz(fQ(new $2,Lat,zlt),$at,Qlt),Fat),Ult),Wlt),vyt=Gz(fQ(fQ(fQ(new $2,Bat,xlt),Fat,Slt),Fat,Clt),$at,Elt),Ayt=Gz(fQ(fQ(new $2,Fat,Clt),Fat,olt),$at,ilt)}function pLe(){pLe=M,Cyt=fQ(Gz(new $2,(ASe(),$at),(uKe(),llt)),Pat,ylt),Myt=ame(ame(FS(Gz(fQ(new $2,Lat,zlt),$at,Qlt),Fat),Ult),Wlt),Tyt=Gz(fQ(fQ(fQ(new $2,Bat,xlt),Fat,Slt),Fat,Clt),$at,Elt),Oyt=fQ(fQ(new $2,Pat,Rlt),$at,Nlt),kyt=Gz(fQ(fQ(new $2,Fat,Clt),Fat,olt),$at,ilt)}function gLe(e,t,n,r,i){var o,a;(d5(t)||t.c.i.c!=t.d.i.c)&&Jre(Ole(Sse(Uw(SSt,1),sYe,8,0,[i.i.n,i.n,i.a])),n)||d5(t)||(t.c==i?BL(t.a,0,new hI(n)):RU(t.a,new hI(n)),r&&!FE(e.a,n)&&((a=$H(vSe(t,(jVe(),mmt)),74))||(a=new bb,lle(t,mmt,a)),n5(a,o=new hI(n),a.c.b,a.c),_G(e.a,o)))}function mLe(e){var t;for(t=new aW(XN(cfe(e).a.Kc(),new u));fIe(t);)if($H(z5(t),17).c.i.k!=(oCe(),Est))throw jv(new nw(S0e+pye(e)+"' has its layer constraint set to FIRST, but has at least one incoming edge that  does not come from a FIRST_SEPARATE node. That must not happen."))}function vLe(e,t,n){var r,i,o,a,s,l;if(0==(i=gfe(254&e.Db)))e.Eb=n;else{if(1==i)a=N8(Met,jKe,1,2,5,1),0==Lbe(e,t)?(a[0]=n,a[1]=e.Eb):(a[0]=e.Eb,a[1]=n);else for(a=N8(Met,jKe,1,i+1,5,1),o=ene(e.Eb),r=2,s=0,l=0;r<=128;r<<=1)r==t?a[l++]=n:e.Db&r&&(a[l++]=o[s++]);e.Eb=a}e.Db|=t}function ALe(e,t,n){var i,o,a,s;for(this.b=new Dv,o=0,i=0,s=new Gf(e);s.a<s.c.c.length;)a=$H(J0(s),167),n&&BHe(a),GH(this.b,a),o+=a.o,i+=a.p;this.b.c.length>0&&(o+=(a=$H(NQ(this.b,0),167)).o,i+=a.p),o*=2,i*=2,t>1?o=CJ(r.Math.ceil(o*t)):i=CJ(r.Math.ceil(i/t)),this.a=new Hpe(o,i)}function bLe(e,t,n,i,o,a){var s,l,c,u,d,h,f,p,g,m;for(u=i,t.j&&t.o?(g=(f=$H(LV(e.f,t.A),57)).d.c+f.d.b,--u):g=t.a.c+t.a.b,d=o,n.q&&n.o?(c=(f=$H(LV(e.f,n.C),57)).d.c,++d):c=n.a.c,p=g+(l=(c-g)/r.Math.max(2,d-u)),h=u;h<d;++h)m=(s=$H(a.Xb(h),128)).a.b,s.a.c=p-m/2,p+=l}function yLe(e,t,n,r,i,o){var a,s,l,c,u,d;for(c=n.c.length,o&&(e.c=N8(kRt,lqe,25,t.length,15,1)),a=i?0:t.length-1;i?a<t.length:a>=0;a+=i?1:-1){for(s=t[a],l=r==(bGe(),aOt)?i?ife(s,r):eae(ife(s,r)):i?eae(ife(s,r)):ife(s,r),o&&(e.c[s.p]=l.gc()),d=l.Kc();d.Ob();)u=$H(d.Pb(),11),e.d[u.p]=c++;pse(n,l)}}function wLe(e,t,n){var r,i,o,a,s,l,c,u;for(o=Uy(xB(e.b.Kc().Pb())),c=Uy(xB(Gae(t.b))),r=bN($D(e.a),c-n),i=bN($D(t.a),n-o),bN(u=zP(r,i),1/(c-o)),this.a=u,this.b=new Dv,s=!0,(a=e.b.Kc()).Pb();a.Ob();)l=Uy(xB(a.Pb())),s&&l-n>R3e&&(this.b.Fc(n),s=!1),this.b.Fc(l);s&&this.b.Fc(n)}function _Le(e){var t,n,r,i;if(lFe(e,e.n),e.d.c.length>0){for(Jy(e.c);gIe(e,$H(J0(new Gf(e.e.a)),121))<e.e.a.c.length;){for(i=(t=Lye(e)).e.e-t.d.e-t.a,t.e.j&&(i=-i),r=new Gf(e.e.a);r.a<r.c.c.length;)(n=$H(J0(r),121)).j&&(n.e+=i);Jy(e.c)}Jy(e.c),gOe(e,$H(J0(new Gf(e.e.a)),121)),pze(e)}}function xLe(e,t){var n,r,i,o,a;for(i=$H(l6(e.a,(Ixe(),xct)),15).Kc();i.Ob();)switch(r=$H(i.Pb(),101),n=$H(NQ(r.j,0),113).d.j,vD(o=new ZF(r.j),new Ji),t.g){case 1:Dxe(e,o,n,(Cie(),Rct),1);break;case 0:Dxe(e,new s0(o,0,a=PNe(o)),n,(Cie(),Rct),0),Dxe(e,new s0(o,a,o.c.length),n,Rct,1)}}function ELe(e,t){var n,r;if(Dse(),n=_5(rre(),t.tg())){if(r=n.j,rN(e,239))return nZ($H(e,33))?ER(r,(nve(),sSt))||ER(r,lSt):ER(r,(nve(),sSt));if(rN(e,352))return ER(r,(nve(),oSt));if(rN(e,186))return ER(r,(nve(),cSt));if(rN(e,354))return ER(r,(nve(),aSt))}return!0}function SLe(e,t,n){var r,i,o,a,s,l;if(o=(i=n).ak(),MLe(e.e,o)){if(o.hi())for(r=$H(e.g,119),a=0;a<e.i;++a)if(Dde(s=r[a],i)&&a!=t)throw jv(new Py(i8e))}else for(l=iLe(e.e.Tg(),o),r=$H(e.g,119),a=0;a<e.i;++a)if(s=r[a],l.rl(s.ak())&&a!=t)throw jv(new Py(T9e));return $H(aAe(e,t,n),72)}function CLe(e,t){if(t instanceof Object)try{if(t.__java$exception=e,-1!=navigator.userAgent.toLowerCase().indexOf("msie")&&$doc.documentMode<9)return;var n=e;Object.defineProperties(t,{cause:{get:function(){var e=n.Zd();return e&&e.Xd()}},suppressed:{get:function(){return n.Yd()}}})}catch(e){}}function TLe(e,t){var n,r,i,o,a;if(r=t>>5,t&=31,r>=e.d)return e.e<0?(kBe(),qtt):(kBe(),tnt);if(o=e.d-r,KCe(i=N8(kRt,lqe,25,o+1,15,1),o,e.a,r,t),e.e<0){for(n=0;n<r&&0==e.a[n];n++);if(n<r||t>0&&e.a[n]<<32-t){for(n=0;n<o&&-1==i[n];n++)i[n]=0;n==o&&++o,++i[n]}}return W1(a=new uG(e.e,o,i)),a}function kLe(e){var t,n,r,i;return n=new Mp(i=GJ(e)),r=new Ip(i),pse(t=new Dv,(!e.d&&(e.d=new lF(BMt,e,8,5)),e.d)),pse(t,(!e.e&&(e.e=new lF(BMt,e,7,4)),e.e)),$H(S4(MY(OY(new LQ(null,new h0(t,16)),n),r),N9(new q,new X,new ie,new oe,Sse(Uw(Jnt,1),MYe,132,0,[(Hce(),Wnt),znt]))),21)}function OLe(e,t,n,r){var i,o,a,s,l;if(XS(),s=$H(t,66).Oj(),MLe(e.e,t)){if(t.hi()&&zje(e,t,r,rN(t,99)&&!!($H(t,18).Bb&$qe)))throw jv(new Py(i8e))}else for(l=iLe(e.e.Tg(),t),i=$H(e.g,119),a=0;a<e.i;++a)if(o=i[a],l.rl(o.ak()))throw jv(new Py(T9e));she(e,wTe(e,t,n),s?$H(r,72):X3(t,r))}function MLe(e,t){var n,r,i;return XS(),!!t.$j()||-2==t.Zj()&&(t==(_Me(),lNt)||t==oNt||t==aNt||t==sNt||!(Ope(i=e.Tg(),t)>=0)&&(!(n=FQe((TTe(),qDt),i,t))||((r=n.Zj())>1||-1==r)&&3!=RK($9(qDt,n))))}function ILe(e,t,n,r){var i,o,a,s,l;return s=SEe($H(Gte((!t.b&&(t.b=new lF(LMt,t,4,7)),t.b),0),82)),l=SEe($H(Gte((!t.c&&(t.c=new lF(LMt,t,5,8)),t.c),0),82)),qJ(s)==qJ(l)||Cte(l,s)?null:(a=WJ(t))==n?r:(o=$H(LV(e.a,a),10))&&(i=o.e)?i:null}function DLe(e,t){var n;switch(kEe(t,"Label side selection ("+(n=$H(vSe(e,(jVe(),qgt)),276))+")",1),n.g){case 0:_Ie(e,(Wye(),ykt));break;case 1:_Ie(e,(Wye(),wkt));break;case 2:sHe(e,(Wye(),ykt));break;case 3:sHe(e,(Wye(),wkt));break;case 4:oBe(e,(Wye(),ykt));break;case 5:oBe(e,(Wye(),wkt))}jCe(t)}function NLe(e,t,n){var r,i,o,a,s;if((o=e[u_(n,e.length)])[0].k==(oCe(),xst))for(i=c_(n,o.length),s=t.j,r=0;r<s.c.length;r++)u0(r,s.c.length),a=$H(s.c[r],11),(n?a.j==(bGe(),aOt):a.j==(bGe(),COt))&&Hy(_B(vSe(a,(lKe(),eht))))&&(r5(s,r,$H(vSe(o[i],(lKe(),fht)),11)),i+=n?1:-1)}function RLe(e,t){var n,r,i,o,a;a=new Dv,n=t;do{(o=$H(LV(e.b,n),128)).B=n.c,o.D=n.d,a.c[a.c.length]=o,n=$H(LV(e.k,n),17)}while(n);return u0(0,a.c.length),(r=$H(a.c[0],128)).j=!0,r.A=$H(r.d.a.ec().Kc().Pb(),17).c.i,(i=$H(NQ(a,a.c.length-1),128)).q=!0,i.C=$H(i.d.a.ec().Kc().Pb(),17).d.i,a}function LLe(e){if(null==e.g)switch(e.p){case 0:e.g=cZ(e)?(lR(),vtt):(lR(),mtt);break;case 1:e.g=See(R3(e));break;case 2:e.g=cse(K0(e));break;case 3:e.g=kK(e);break;case 4:e.g=new Df(TK(e));break;case 6:e.g=yme(OK(e));break;case 5:e.g=the(lJ(e));break;case 7:e.g=nhe(P3(e))}return e.g}function BLe(e){if(null==e.n)switch(e.p){case 0:e.n=uZ(e)?(lR(),vtt):(lR(),mtt);break;case 1:e.n=See(L3(e));break;case 2:e.n=cse(Y0(e));break;case 3:e.n=IK(e);break;case 4:e.n=new Df(DK(e));break;case 6:e.n=yme(MK(e));break;case 5:e.n=the(cJ(e));break;case 7:e.n=nhe(B3(e))}return e.n}function PLe(e){var t,n,r,i,o,a;for(i=new Gf(e.a.a);i.a<i.c.c.length;)(n=$H(J0(i),307)).g=0,n.i=0,n.e.a.$b();for(r=new Gf(e.a.a);r.a<r.c.c.length;)for(t=(n=$H(J0(r),307)).a.a.ec().Kc();t.Ob();)for(a=$H(t.Pb(),57).c.Kc();a.Ob();)(o=$H(a.Pb(),57)).a!=n&&(_G(n.e,o),++o.a.g,++o.a.i)}function FLe(e,t){var n,r,i;if(!XG(e.a,t.b))throw jv(new Fy("Invalid hitboxes for scanline overlap calculation."));for(i=!1,r=new Ff(new $P(new NR(new Pf(e.a.a).a).b));iC(r.a.a);)if(n=$H(vL(r.a).cd(),65),ele(t.b,n))N_(e.b.a,t.b,n),i=!0;else if(i)break}function $Le(e){var t,n,i,o,a;o=$H(vSe(e,(jVe(),Fmt)),21),a=$H(vSe(e,Hmt),21),t=new hI(n=new Nk(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a)),o.Hc((vge(),ROt))&&(i=$H(vSe(e,jmt),8),a.Hc((JFe(),UOt))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),t.a=r.Math.max(n.a,i.a),t.b=r.Math.max(n.b,i.b)),WHe(e,n,t)}function jLe(e,t){var n,r,i,o,a,s,l,c;i=t?new Ao:new bo,o=!1;do{for(o=!1,a=(t?eae(e.b):e.b).Kc();a.Ob();)for(c=i1($H(a.Pb(),29).a),t||new cy(c),l=new Gf(c);l.a<l.c.c.length;)s=$H(J0(l),10),i.Mb(s)&&(r=s,n=$H(vSe(s,(lKe(),Ldt)),305),o=ePe(r,t?n.b:n.k,t,!1))}while(o)}function HLe(e,t,n){var r,i,o,a;for(kEe(n,"Longest path layering",1),e.a=t,a=e.a.a,e.b=N8(kRt,lqe,25,a.c.length,15,1),r=0,o=new Gf(a);o.a<o.c.c.length;)$H(J0(o),10).p=r,e.b[r]=-1,++r;for(i=new Gf(a);i.a<i.c.c.length;)RDe(e,$H(J0(i),10));a.c=N8(Met,jKe,1,0,5,1),e.a=null,e.b=null,jCe(n)}function ULe(e,t){var n,r,i;t.a?(XG(e.b,t.b),e.a[t.b.i]=$H(bF(e.b,t.b),81),(n=$H(AF(e.b,t.b),81))&&(e.a[n.i]=t.b)):(!!(r=$H(bF(e.b,t.b),81))&&r==e.a[t.b.i]&&!!r.d&&r.d!=t.b.d&&r.f.Fc(t.b),!!(i=$H(AF(e.b,t.b),81))&&e.a[i.i]==t.b&&!!i.d&&i.d!=t.b.d&&t.b.f.Fc(i),xR(e.b,t.b))}function QLe(e,t){var n,i,o,a,s,l;return a=e.d,(l=Uy(xB(vSe(e,(jVe(),imt)))))<0&&lle(e,imt,l=0),t.o.b=l,s=r.Math.floor(l/2),Hke(i=new CCe,(bGe(),COt)),CZ(i,t),i.n.b=s,Hke(o=new CCe,aOt),CZ(o,t),o.n.b=s,xZ(e,i),Hae(n=new hX,e),lle(n,mmt,null),EZ(n,o),xZ(n,a),yje(t,e,n),ske(e,n),n}function zLe(e){var t,n;return n=$H(vSe(e,(lKe(),Xdt)),21),t=new $2,n.Hc((dBe(),ddt))&&(qoe(t,dyt),qoe(t,fyt)),(n.Hc(fdt)||Hy(_B(vSe(e,(jVe(),omt)))))&&(qoe(t,fyt),n.Hc(pdt)&&qoe(t,pyt)),n.Hc(udt)&&qoe(t,uyt),n.Hc(mdt)&&qoe(t,gyt),n.Hc(hdt)&&qoe(t,hyt),n.Hc(sdt)&&qoe(t,lyt),n.Hc(cdt)&&qoe(t,cyt),t}function WLe(e,t){var n,r,i,o,a,s,l,c,u;return o=(n=e.d)+(r=t.d),a=e.e!=t.e?-1:1,2==o?(u=fz(l=rfe(e1(e.a[0],zqe),e1(t.a[0],zqe))),0==(c=fz(yW(l,32)))?new W6(a,u):new uG(a,2,Sse(Uw(kRt,1),lqe,25,15,[u,c]))):(Rde(e.a,n,t.a,r,i=N8(kRt,lqe,25,o,15,1)),W1(s=new uG(a,o,i)),s)}function GLe(e,t,n,r){var i,o;return t?0==(i=e.a.ue(n.d,t.d))?(r.d=gP(t,n.e),r.b=!0,t):(o=i<0?0:1,t.a[o]=GLe(e,t.a[o],n,r),Vy(t.a[o])&&(Vy(t.a[1-o])?(t.b=!0,t.a[0].b=!1,t.a[1].b=!1):Vy(t.a[o].a[o])?t=hie(t,1-o):Vy(t.a[o].a[1-o])&&(t=n2(t,1-o))),t):n}function VLe(e,t,n){var i,o,a,s;o=e.i,i=e.n,Y5(e,(Rte(),Urt),o.c+i.b,n),Y5(e,zrt,o.c+o.b-i.c-n[2],n),s=o.b-i.b-i.c,n[0]>0&&(n[0]+=e.d,s-=n[0]),n[2]>0&&(n[2]+=e.d,s-=n[2]),a=r.Math.max(0,s),n[1]=r.Math.max(n[1],s),Y5(e,Qrt,o.c+i.b+n[0]-(n[1]-s)/2,n),t==Qrt&&(e.c.b=a,e.c.c=o.c+i.b+(a-s)/2)}function KLe(){this.c=N8(DRt,Hqe,25,(bGe(),Sse(Uw(FOt,1),YZe,61,0,[SOt,sOt,aOt,EOt,COt])).length,15,1),this.b=N8(DRt,Hqe,25,Sse(Uw(FOt,1),YZe,61,0,[SOt,sOt,aOt,EOt,COt]).length,15,1),this.a=N8(DRt,Hqe,25,Sse(Uw(FOt,1),YZe,61,0,[SOt,sOt,aOt,EOt,COt]).length,15,1),vC(this.c,Lqe),vC(this.b,Bqe),vC(this.a,Bqe)}function YLe(e,t,n){var r,i,o,a;if(t<=n?(i=t,o=n):(i=n,o=t),r=0,null==e.b)e.b=N8(kRt,lqe,25,2,15,1),e.b[0]=i,e.b[1]=o,e.c=!0;else{if(r=e.b.length,e.b[r-1]+1==i)return void(e.b[r-1]=o);a=N8(kRt,lqe,25,r+2,15,1),iUe(e.b,0,a,0,r),e.b=a,e.b[r-1]>=i&&(e.c=!1,e.a=!1),e.b[r++]=i,e.b[r]=o,e.c||_De(e)}}function qLe(e,t,n){var r,i,o,a,s,l,c;for(c=t.d,e.a=new q6(c.c.length),e.c=new Nv,s=new Gf(c);s.a<s.c.c.length;)a=$H(J0(s),101),o=new Fae(null),GH(e.a,o),VK(e.c,a,o);for(e.b=new Nv,mke(e,t),r=0;r<c.c.length-1;r++)for(l=$H(NQ(t.d,r),101),i=r+1;i<c.c.length;i++)GNe(e,l,$H(NQ(t.d,i),101),n)}function XLe(e,t,n){var r,i,o,a,s,l;if(!l3(t)){for(kEe(l=voe(n,(rN(t,14)?$H(t,14).gc():F3(t.Kc()))/e.a|0),Q3e,1),s=new Ma,a=0,o=t.Kc();o.Ob();)r=$H(o.Pb(),86),s=Gne(Sse(Uw(Ret,1),jKe,20,0,[s,new dm(r)])),a<r.f.b&&(a=r.f.b);for(i=t.Kc();i.Ob();)lle(r=$H(i.Pb(),86),(HQe(),owt),a);jCe(l),XLe(e,s,n)}}function JLe(e,t){var n,i,o,a,s,l,c;for(n=Bqe,oCe(),l=Cst,o=new Gf(t.a);o.a<o.c.c.length;)(a=(i=$H(J0(o),10)).k)!=Cst&&(null==(s=xB(vSe(i,(lKe(),ght))))?(n=r.Math.max(n,0),i.n.b=n+WR(e.a,a,l)):i.n.b=(bK(s),s)),c=WR(e.a,a,l),i.n.b<n+c+i.d.d&&(i.n.b=n+c+i.d.d),n=i.n.b+i.o.b+i.d.a,l=a}function ZLe(e,t,n){var r,i,o;for(Hae(o=new wIe(WVe(HCe(rBe(t,!1,!1)),Uy(xB(XIe(t,(wve(),got))))+e.a)),t),VK(e.b,t,o),n.c[n.c.length]=o,!t.n&&(t.n=new eG(UMt,t,1,7)),i=new ON(t.n);i.e!=i.i.gc();)r=qPe(e,$H(bve(i),137),!0,0,0),n.c[n.c.length]=r;return o}function eBe(e,t,n,r,i){var o,a,s;if(e.d&&e.d.lg(i),RAe(e,n,$H(i.Xb(0),33),!1))return!0;if(RAe(e,r,$H(i.Xb(i.gc()-1),33),!0))return!0;if(DSe(e,i))return!0;for(s=i.Kc();s.Ob();)for(a=$H(s.Pb(),33),o=t.Kc();o.Ob();)if(PBe(e,a,$H(o.Pb(),33)))return!0;return!1}function tBe(e,t,n){var r,i,o,a,s,l,c,u,d;d=t.c.length;e:for(o=$H((c=e.Yg(n))>=0?e._g(c,!1,!0):rMe(e,n,!1),58).Kc();o.Ob();){for(i=$H(o.Pb(),56),u=0;u<d;++u)if(u0(u,t.c.length),l=(a=$H(t.c[u],72)).dd(),s=a.ak(),r=i.bh(s,!1),null==l?null!=r:!Dde(l,r))continue e;return i}return null}function nBe(e,t,n,r){var i,o,a,s;for(i=$H(RCe(t,(bGe(),COt)).Kc().Pb(),11),o=$H(RCe(t,aOt).Kc().Pb(),11),s=new Gf(e.j);s.a<s.c.c.length;){for(a=$H(J0(s),11);0!=a.e.c.length;)xZ($H(NQ(a.e,0),17),i);for(;0!=a.g.c.length;)EZ($H(NQ(a.g,0),17),o)}n||lle(t,(lKe(),lht),null),r||lle(t,(lKe(),cht),null)}function rBe(e,t,n){var r,i;if(0==(!e.a&&(e.a=new eG(PMt,e,6,6)),e.a).i)return Hse(e);if(r=$H(Gte((!e.a&&(e.a=new eG(PMt,e,6,6)),e.a),0),202),t&&(sQe((!r.a&&(r.a=new MN(DMt,r,5)),r.a)),Tne(r,0),One(r,0),_ne(r,0),kne(r,0)),n)for(!e.a&&(e.a=new eG(PMt,e,6,6)),i=e.a;i.i>1;)cBe(i,i.i-1);return r}function iBe(e,t){var n,r,i,o,a,s,l;for(kEe(t,"Comment post-processing",1),o=new Gf(e.b);o.a<o.c.c.length;){for(i=$H(J0(o),29),r=new Dv,s=new Gf(i.a);s.a<s.c.c.length;)a=$H(J0(s),10),l=$H(vSe(a,(lKe(),Bht)),15),n=$H(vSe(a,Rdt),15),(l||n)&&(GWe(a,l,n),l&&pse(r,l),n&&pse(r,n));pse(i.a,r)}jCe(t)}function oBe(e,t){var n,r,i,o,a,s;for(n=new Iv,i=new Gf(e.b);i.a<i.c.c.length;){for(s=!0,r=0,a=new Gf($H(J0(i),29).a);a.a<a.c.c.length;)switch((o=$H(J0(a),10)).k.g){case 4:++r;case 1:h3(n,o);break;case 0:ake(o,t);default:n.b==n.c||g$e(n,r,s,!1,t),s=!1,r=0}n.b==n.c||g$e(n,r,s,!0,t)}}function aBe(e,t){var n,r,i,o,a,s;for(i=new Dv,n=0;n<=e.i;n++)(r=new jV(t)).p=e.i-n,i.c[i.c.length]=r;for(s=new Gf(e.o);s.a<s.c.c.length;)SZ(a=$H(J0(s),10),$H(NQ(i,e.i-e.f[a.p]),29));for(o=new Gf(i);o.a<o.c.c.length;)0==$H(J0(o),29).a.c.length&&OG(o);t.b.c=N8(Met,jKe,1,0,5,1),pse(t.b,i)}function sBe(e,t){var n,r,i,o,a,s;for(n=0,s=new Gf(t);s.a<s.c.c.length;){for(a=$H(J0(s),11),Jce(e.b,e.d[a.p]),i=new v6(a.b);AD(i.a)||AD(i.b);)(o=xx(e,a==(r=$H(AD(i.a)?J0(i.a):J0(i.b),17)).c?r.d:r.c))>e.d[a.p]&&(n+=J4(e.b,o),f3(e.a,the(o)));for(;!Gy(e.a);)xee(e.b,$H(fG(e.a),19).a)}return n}function lBe(e,t,n){var r,i,o,a;for(o=(!t.a&&(t.a=new eG(QMt,t,10,11)),t.a).i,i=new ON((!t.a&&(t.a=new eG(QMt,t,10,11)),t.a));i.e!=i.i.gc();)0==(!(r=$H(bve(i),33)).a&&(r.a=new eG(QMt,r,10,11)),r.a).i||(o+=lBe(e,r,!1));if(n)for(a=qJ(t);a;)o+=(!a.a&&(a.a=new eG(QMt,a,10,11)),a.a).i,a=qJ(a);return o}function cBe(e,t){var n,r,i,o;return e.ej()?(r=null,i=e.fj(),e.ij()&&(r=e.kj(e.pi(t),null)),n=e.Zi(4,o=Iye(e,t),null,t,i),e.bj()&&null!=o?(r=e.dj(o,r))?(r.Ei(n),r.Fi()):e.$i(n):r?(r.Ei(n),r.Fi()):e.$i(n),o):(o=Iye(e,t),e.bj()&&null!=o&&(r=e.dj(o,null))&&r.Fi(),o)}function uBe(e){var t,n,i,o,a,s,l,c,u,d;for(u=e.a,t=new LA,c=0,i=new Gf(e.d);i.a<i.c.c.length;){for(d=0,Pie((n=$H(J0(i),222)).b,new Ie),s=sve(n.b,0);s.b!=s.d.c;)a=$H(d3(s),222),t.a._b(a)&&(o=n.c,d<(l=a.c).d+l.a+u&&d+o.a+u>l.d&&(d=l.d+l.a+u));n.c.d=d,t.a.zc(n,t),c=r.Math.max(c,n.c.d+n.c.a)}return c}function dBe(){dBe=M,ldt=new IT("COMMENTS",0),udt=new IT("EXTERNAL_PORTS",1),ddt=new IT("HYPEREDGES",2),hdt=new IT("HYPERNODES",3),fdt=new IT("NON_FREE_PORTS",4),pdt=new IT("NORTH_SOUTH_PORTS",5),mdt=new IT(U0e,6),sdt=new IT("CENTER_LABELS",7),cdt=new IT("END_LABELS",8),gdt=new IT("PARTITIONS",9)}function hBe(e){var t,n,r,i,o;for(i=new Dv,t=new MQ((!e.a&&(e.a=new eG(QMt,e,10,11)),e.a)),r=new aW(XN(fNe(e).a.Kc(),new u));fIe(r);)rN(Gte((!(n=$H(z5(r),79)).b&&(n.b=new lF(LMt,n,4,7)),n.b),0),186)||(o=SEe($H(Gte((!n.c&&(n.c=new lF(LMt,n,5,8)),n.c),0),82)),t.a._b(o)||(i.c[i.c.length]=o));return i}function fBe(e){var t,n,r,i,o;for(i=new LA,t=new MQ((!e.a&&(e.a=new eG(QMt,e,10,11)),e.a)),r=new aW(XN(fNe(e).a.Kc(),new u));fIe(r);)rN(Gte((!(n=$H(z5(r),79)).b&&(n.b=new lF(LMt,n,4,7)),n.b),0),186)||(o=SEe($H(Gte((!n.c&&(n.c=new lF(LMt,n,5,8)),n.c),0),82)),t.a._b(o)||i.a.zc(o,i));return i}function pBe(e,t,n,r,i){return r<0?((r=QEe(e,i,Sse(Uw(Ytt,1),sYe,2,6,[YYe,qYe,XYe,JYe,ZYe,eqe,tqe,nqe,rqe,iqe,oqe,aqe]),t))<0&&(r=QEe(e,i,Sse(Uw(Ytt,1),sYe,2,6,["Jan","Feb","Mar","Apr",ZYe,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),!(r<0||(n.k=r,0))):r>0&&(n.k=r-1,!0)}function gBe(e,t,n,r,i){return r<0?((r=QEe(e,i,Sse(Uw(Ytt,1),sYe,2,6,[YYe,qYe,XYe,JYe,ZYe,eqe,tqe,nqe,rqe,iqe,oqe,aqe]),t))<0&&(r=QEe(e,i,Sse(Uw(Ytt,1),sYe,2,6,["Jan","Feb","Mar","Apr",ZYe,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),!(r<0||(n.k=r,0))):r>0&&(n.k=r-1,!0)}function mBe(e,t,n,r,i,o){var a,s,l;if(s=32,r<0){if(t[0]>=e.length)return!1;if(43!=(s=cY(e,t[0]))&&45!=s)return!1;if(++t[0],(r=zOe(e,t))<0)return!1;45==s&&(r=-r)}return 32==s&&t[0]-n==2&&2==i.b&&(a=(l=(new OE).q.getFullYear()-sqe+sqe-80)%100,o.a=r==a,r+=100*(l/100|0)+(r<a?100:0)),o.p=r,!0}function vBe(e,t){var n,i,o;qJ(e)&&(o=$H(vSe(t,(jVe(),Fmt)),174),UO(XIe(e,evt))===UO((Kxe(),Ykt))&&Yve(e,evt,Kkt),US(),i=HWe(new Ry(qJ(e)),new qR(qJ(e)?new Ry(qJ(e)):null,e),!1,!0),aie(o,(vge(),ROt)),(n=$H(vSe(t,jmt),8)).a=r.Math.max(i.a,n.a),n.b=r.Math.max(i.b,n.b))}function ABe(e,t,n){var r,i,o,a,s,l;for(a=$H(vSe(e,(lKe(),Jdt)),15).Kc();a.Ob();){switch(o=$H(a.Pb(),10),$H(vSe(o,(jVe(),bmt)),163).g){case 2:SZ(o,t);break;case 4:SZ(o,n)}for(i=new aW(XN(lfe(o).a.Kc(),new u));fIe(i);)(r=$H(z5(i),17)).c&&r.d||(s=!r.d,l=$H(vSe(r,vht),11),s?xZ(r,l):EZ(r,l))}}function bBe(){bBe=M,$ct=new GY(vJe,0,(bGe(),sOt),sOt),Uct=new GY(bJe,1,EOt,EOt),Fct=new GY(AJe,2,aOt,aOt),Wct=new GY(yJe,3,COt,COt),Hct=new GY("NORTH_WEST_CORNER",4,COt,sOt),jct=new GY("NORTH_EAST_CORNER",5,sOt,aOt),zct=new GY("SOUTH_WEST_CORNER",6,EOt,COt),Qct=new GY("SOUTH_EAST_CORNER",7,aOt,EOt)}function yBe(){yBe=M,xSt=Sse(Uw(MRt,1),Fqe,25,14,[1,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368e3,{l:3506176,m:794077,h:1},{l:884736,m:916411,h:20},{l:3342336,m:3912489,h:363},{l:589824,m:3034138,h:6914},{l:3407872,m:1962506,h:138294}]),r.Math.pow(2,-65)}function wBe(e,t){var n,r,i,o,a;if(0==e.c.length)return new nO(the(0),the(0));for(n=(u0(0,e.c.length),$H(e.c[0],11)).j,a=0,o=t.g,r=t.g+1;a<e.c.length-1&&n.g<o;)n=(u0(++a,e.c.length),$H(e.c[a],11)).j;for(i=a;i<e.c.length-1&&n.g<r;)++i,n=(u0(a,e.c.length),$H(e.c[a],11)).j;return new nO(the(a),the(i))}function _Be(e,t,n){var i,o,a,s,l,c,u,d,h,f;for(a=t.c.length,u0(n,t.c.length),l=(s=$H(t.c[n],286)).a.o.a,h=s.c,f=0,u=s.c;u<=s.f;u++){if(l<=e.a[u])return u;for(d=e.a[u],c=null,o=n+1;o<a;o++)u0(o,t.c.length),(i=$H(t.c[o],286)).c<=u&&i.f>=u&&(c=i);c&&(d=r.Math.max(d,c.a.o.a)),d>f&&(h=u,f=d)}return h}function xBe(e,t,n){var r,i,o;if(e.e=n,e.d=0,e.b=0,e.f=1,e.i=t,!(16&~e.e)&&(e.i=gFe(e.i)),e.j=e.i.length,KVe(e),o=Vge(e),e.d!=e.j)throw jv(new iw(bKe((oD(),h8e))));if(e.g){for(r=0;r<e.g.a.c.length;r++)if(i=$H(dK(e.g,r),584),e.f<=i.a)throw jv(new iw(bKe((oD(),f8e))));e.g.a.c=N8(Met,jKe,1,0,5,1)}return o}function EBe(e,t){var n,r,i;if(null==t){for(!e.a&&(e.a=new eG(WIt,e,9,5)),r=new ON(e.a);r.e!=r.i.gc();)if(null==(null==(i=(n=$H(bve(r),678)).c)?n.zb:i))return n}else for(!e.a&&(e.a=new eG(WIt,e,9,5)),r=new ON(e.a);r.e!=r.i.gc();)if(vF(t,null==(i=(n=$H(bve(r),678)).c)?n.zb:i))return n;return null}function SBe(e,t){var n;switch(n=null,t.g){case 1:e.e.Xe((sKe(),eTt))&&(n=$H(e.e.We(eTt),249));break;case 3:e.e.Xe((sKe(),tTt))&&(n=$H(e.e.We(tTt),249));break;case 2:e.e.Xe((sKe(),ZCt))&&(n=$H(e.e.We(ZCt),249));break;case 4:e.e.Xe((sKe(),nTt))&&(n=$H(e.e.We(nTt),249))}return!n&&(n=$H(e.e.We((sKe(),XCt)),249)),n}function CBe(e,t,n){var r,i,o,a,s,l;for(t.p=1,i=t.c,l=Npe(t,(ire(),HAt)).Kc();l.Ob();)for(r=new Gf($H(l.Pb(),11).g);r.a<r.c.c.length;)t!=(s=$H(J0(r),17).d.i)&&s.c.p<=i.p&&((o=i.p+1)==n.b.c.length?((a=new jV(n)).p=o,GH(n.b,a),SZ(s,a)):SZ(s,a=$H(NQ(n.b,o),29)),CBe(e,s,n))}function TBe(e,t,n){var i,o,a,s,l,c;for(o=n,a=0,l=new Gf(t);l.a<l.c.c.length;)Yve(s=$H(J0(l),33),(zye(),I_t),the(o++)),c=hBe(s),i=r.Math.atan2(s.j+s.f/2,s.i+s.g/2),(i+=i<0?X3e:0)<.7853981633974483||i>g4e?vD(c,e.b):i<=g4e&&i>m4e?vD(c,e.d):i<=m4e&&i>v4e?vD(c,e.c):i<=v4e&&vD(c,e.a),a=TBe(e,c,a);return o}function kBe(){var e;for(kBe=M,Xtt=new W6(1,1),Ztt=new W6(1,10),tnt=new W6(0,0),qtt=new W6(-1,1),Jtt=Sse(Uw(snt,1),sYe,91,0,[tnt,Xtt,new W6(1,2),new W6(1,3),new W6(1,4),new W6(1,5),new W6(1,6),new W6(1,7),new W6(1,8),new W6(1,9),Ztt]),ent=N8(snt,sYe,91,32,0,1),e=0;e<ent.length;e++)ent[e]=Jme(AW(1,e))}function OBe(e,t,n,r,i,o){var a,s,l,c;for(s=!yx(OY(e.Oc(),new ip(new Jn))).sd((fS(),Znt)),a=e,o==(Fde(),jTt)&&(a=rN(a,152)?a6($H(a,152)):rN(a,131)?$H(a,131).a:rN(a,54)?new cy(a):new CE(a)),c=a.Kc();c.Ob();)(l=$H(c.Pb(),70)).n.a=t.a,l.n.b=s?t.b+(r.b-l.o.b)/2:i?t.b:t.b+r.b-l.o.b,t.a+=l.o.a+n}function MBe(e,t,n,r){var i,o,a,s,l;for(i=(r.c+r.a)/2,Aq(t.j),RU(t.j,i),Aq(n.e),RU(n.e,i),l=new Q_,a=new Gf(e.f);a.a<a.c.c.length;)L_e(l,t,s=$H(J0(a),129).a),L_e(l,n,s);for(o=new Gf(e.k);o.a<o.c.c.length;)L_e(l,t,s=$H(J0(o),129).b),L_e(l,n,s);return l.b+=2,l.a+=Iq(t,e.q),l.a+=Iq(e.q,n),l}function IBe(e,t,n){var r,i,o,a,s;if(!l3(t)){for(kEe(s=voe(n,(rN(t,14)?$H(t,14).gc():F3(t.Kc()))/e.a|0),Q3e,1),a=new Da,o=null,i=t.Kc();i.Ob();)r=$H(i.Pb(),86),a=Gne(Sse(Uw(Ret,1),jKe,20,0,[a,new dm(r)])),o&&(lle(o,(HQe(),dwt),r),lle(r,rwt,o),U8(r)==U8(o)&&(lle(o,hwt,r),lle(r,iwt,o))),o=r;jCe(s),IBe(e,a,n)}}function DBe(e){var t,n,r,i,o,a,s;for(n=e.i,t=e.n,s=n.d,e.f==(U9(),nit)?s+=(n.a-e.e.b)/2:e.f==tit&&(s+=n.a-e.e.b),i=new Gf(e.d);i.a<i.c.c.length;){switch(a=(r=$H(J0(i),181)).rf(),(o=new U_).b=s,s+=a.b+e.a,e.b.g){case 0:o.a=n.c+t.b;break;case 1:o.a=n.c+t.b+(n.b-a.a)/2;break;case 2:o.a=n.c+n.b-t.c-a.a}r.tf(o)}}function NBe(e){var t,n,r,i,o,a,s;for(n=e.i,t=e.n,s=n.c,e.b==(q7(),Krt)?s+=(n.b-e.e.a)/2:e.b==qrt&&(s+=n.b-e.e.a),i=new Gf(e.d);i.a<i.c.c.length;){switch(a=(r=$H(J0(i),181)).rf(),(o=new U_).a=s,s+=a.a+e.a,e.f.g){case 0:o.b=n.d+t.d;break;case 1:o.b=n.d+t.d+(n.a-a.b)/2;break;case 2:o.b=n.d+n.a-t.a-a.b}r.tf(o)}}function RBe(e,t,n){var r,i,o,a,s,l,c,u,d,h,f;c=n.a.c,a=n.a.c+n.a.b,h=(o=$H(LV(n.c,t),459)).f,f=o.a,s=new Nk(c,h),u=new Nk(a,f),i=c,n.p||(i+=e.c),l=new Nk(i+=n.F+n.v*e.b,h),d=new Nk(i,f),Jne(t.a,Sse(Uw(SSt,1),sYe,8,0,[s,l])),n.d.a.gc()>1&&(r=new Nk(i,n.b),RU(t.a,r)),Jne(t.a,Sse(Uw(SSt,1),sYe,8,0,[d,u]))}function LBe(e){DS(e,new xEe(m_(h_(g_(p_(new ms,P5e),"ELK Randomizer"),'Distributes the nodes randomly on the plane, leading to very obfuscating layouts. Can be useful to demonstrate the power of "real" layout algorithms.'),new Xs))),o2(e,P5e,KJe,IOt),o2(e,P5e,mZe,15),o2(e,P5e,AZe,the(0)),o2(e,P5e,VJe,fZe)}function BBe(){var e,t,n,r,i,o;for(BBe=M,VNt=N8(IRt,m6e,25,255,15,1),KNt=N8(TRt,GYe,25,16,15,1),t=0;t<255;t++)VNt[t]=-1;for(n=57;n>=48;n--)VNt[n]=n-48<<24>>24;for(r=70;r>=65;r--)VNt[r]=r-65+10<<24>>24;for(i=102;i>=97;i--)VNt[i]=i-97+10<<24>>24;for(o=0;o<10;o++)KNt[o]=48+o&KYe;for(e=10;e<=15;e++)KNt[e]=65+e-10&KYe}function PBe(e,t,n){var r,i,o,a,s,l,c,u;return s=t.i-e.g/2,l=n.i-e.g/2,c=t.j-e.g/2,u=n.j-e.g/2,o=t.g+e.g/2,a=n.g+e.g/2,r=t.f+e.g/2,i=n.f+e.g/2,s<l+a&&l<s&&c<u+i&&u<c||l<s+o&&s<l&&u<c+r&&c<u||s<l+a&&l<s&&c<u&&u<c+r||l<s+o&&s<l&&c<u+i&&u<c}function FBe(e){var t,n,i,o,a;o=$H(vSe(e,(jVe(),Fmt)),21),a=$H(vSe(e,Hmt),21),t=new hI(n=new Nk(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a)),o.Hc((vge(),ROt))&&(i=$H(vSe(e,jmt),8),a.Hc((JFe(),UOt))&&(i.a<=0&&(i.a=20),i.b<=0&&(i.b=20)),t.a=r.Math.max(n.a,i.a),t.b=r.Math.max(n.b,i.b)),Hy(_B(vSe(e,$mt)))||zHe(e,n,t)}function $Be(e,t){var n,r,i,o;for(o=ife(t,(bGe(),EOt)).Kc();o.Ob();)r=$H(o.Pb(),11),(n=$H(vSe(r,(lKe(),wht)),10))&&zRe(iS(rS(oS(nS(new jA,0),.1),e.i[t.p].d),e.i[n.p].a));for(i=ife(t,sOt).Kc();i.Ob();)r=$H(i.Pb(),11),(n=$H(vSe(r,(lKe(),wht)),10))&&zRe(iS(rS(oS(nS(new jA,0),.1),e.i[n.p].d),e.i[t.p].a))}function jBe(e){var t,n,r,i,o;if(!e.c){if(o=new xl,null==(t=EDt).a.zc(e,t)){for(r=new ON(i4(e));r.e!=r.i.gc();)rN(i=uje(n=$H(bve(r),87)),88)&&gV(o,jBe($H(i,26))),c7(o,n);t.a.Bc(e),t.a.gc()}Mpe(o),rue(o),e.c=new DM(($H(Gte(Kq((KV(),JIt).o),15),18),o.i),o.g),S5(e).b&=-33}return e.c}function HBe(e){var t;if(10!=e.c)throw jv(new iw(bKe((oD(),p8e))));switch(t=e.a){case 110:t=10;break;case 114:t=13;break;case 116:t=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw jv(new iw(bKe((oD(),z8e))))}return t}function UBe(e){var t,n,r,i;if(0==e.l&&0==e.m&&0==e.h)return"0";if(e.h==Cqe&&0==e.m&&0==e.l)return"-9223372036854775808";if(e.h>>19)return"-"+UBe(ile(e));for(n=e,r="";0!=n.l||0!=n.m||0!=n.h;){if(n=OQe(n,F5(Oqe),!0),t=""+_x(dtt),0!=n.l||0!=n.m||0!=n.h)for(i=9-t.length;i>0;i--)t="0"+t;r=t+r}return r}function QBe(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var e="__proto__",t=Object.create(null);return void 0===t[e]&&0==Object.getOwnPropertyNames(t).length&&(t[e]=42,42===t[e]&&0!=Object.getOwnPropertyNames(t).length)}function zBe(e){var t,n,r,i,o,a,s;for(t=!1,n=0,i=new Gf(e.d.b);i.a<i.c.c.length;)for((r=$H(J0(i),29)).p=n++,a=new Gf(r.a);a.a<a.c.c.length;)o=$H(J0(a),10),!t&&!l3(lfe(o))&&(t=!0);s=wz((Fde(),$Tt),Sse(Uw(GTt,1),MYe,103,0,[PTt,FTt])),t||(aie(s,jTt),aie(s,BTt)),e.a=new ute(s),MG(e.f),MG(e.b),MG(e.e),MG(e.g)}function WBe(e,t,n){var r,i,o,a,s,l,c,u,d;for(r=n.c,i=n.d,s=p0(t.c),l=p0(t.d),r==t.c?(s=uNe(e,s,i),l=sSe(t.d)):(s=sSe(t.c),l=uNe(e,l,i)),n5(c=new B_(t.a),s,c.a,c.a.a),n5(c,l,c.c.b,c.c),a=t.c==r,d=new qA,o=0;o<c.b-1;++o)u=new nO($H(Rve(c,o),8),$H(Rve(c,o+1),8)),a&&0==o||!a&&o==c.b-2?d.b=u:GH(d.a,u);return d}function GBe(e,t){var n,r,i,o;if(0!=(o=e.j.g-t.j.g))return o;if(n=$H(vSe(e,(jVe(),tvt)),19),r=$H(vSe(t,tvt),19),n&&r&&0!=(i=n.a-r.a))return i;switch(e.j.g){case 1:return She(e.n.a,t.n.a);case 2:return She(e.n.b,t.n.b);case 3:return She(t.n.a,e.n.a);case 4:return She(t.n.b,e.n.b);default:throw jv(new Fy(n0e))}}function VBe(e,t,n,i){var o,a,s,l;if(F3((H$(),new aW(XN(lfe(t).a.Kc(),new u))))>=e.a)return-1;if(!eEe(t,n))return-1;if(l3($H(i.Kb(t),20)))return 1;for(o=0,s=$H(i.Kb(t),20).Kc();s.Ob();){if(-1==(l=VBe(e,(a=$H(s.Pb(),17)).c.i==t?a.d.i:a.c.i,n,i)))return-1;if((o=r.Math.max(o,l))>e.c-1)return-1}return o+1}function KBe(e,t){var n,r,i,o,a,s;if(UO(t)===UO(e))return!0;if(!rN(t,15))return!1;if(r=$H(t,15),s=e.gc(),r.gc()!=s)return!1;if(a=r.Kc(),e.ni()){for(n=0;n<s;++n)if(i=e.ki(n),o=a.Pb(),null==i?null!=o:!Dde(i,o))return!1}else for(n=0;n<s;++n)if(i=e.ki(n),o=a.Pb(),UO(i)!==UO(o))return!1;return!0}function YBe(e,t){var n,r,i,o,a,s;if(e.f>0)if(e.qj(),null!=t){for(o=0;o<e.d.length;++o)if(n=e.d[o])for(r=$H(n.g,367),s=n.i,a=0;a<s;++a)if(Dde(t,(i=r[a]).dd()))return!0}else for(o=0;o<e.d.length;++o)if(n=e.d[o])for(r=$H(n.g,367),s=n.i,a=0;a<s;++a)if(i=r[a],UO(t)===UO(i.dd()))return!0;return!1}function qBe(e,t,n){var r,i,o,a;kEe(n,"Orthogonally routing hierarchical port edges",1),e.a=0,Dze(t,r=zUe(t)),KQe(e,t,r),cGe(t),i=$H(vSe(t,(jVe(),evt)),98),CWe((u0(0,(o=t.b).c.length),$H(o.c[0],29)),i,t),CWe($H(NQ(o,o.c.length-1),29),i,t),_He((u0(0,(a=t.b).c.length),$H(a.c[0],29))),_He($H(NQ(a,a.c.length-1),29)),jCe(n)}function XBe(e){switch(e){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return e-48<<24>>24;case 97:case 98:case 99:case 100:case 101:case 102:return e-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return e-65+10<<24>>24;default:throw jv(new xw("Invalid hexadecimal"))}}function JBe(e,t,n){var r,i,o,a;for(kEe(n,"Processor order nodes",2),e.a=Uy(xB(vSe(t,(CIe(),Nwt)))),i=new YE,a=sve(t.b,0);a.b!=a.d.c;)Hy(_B(vSe(o=$H(d3(a),86),(HQe(),fwt))))&&n5(i,o,i.c.b,i.c);SL(0!=i.b),BUe(e,r=$H(i.a.a.c,86)),!n.b&&Hre(n,1),$Pe(e,r,0-Uy(xB(vSe(r,(HQe(),owt))))/2,0),!n.b&&Hre(n,1),jCe(n)}function ZBe(){ZBe=M,Lrt=new jC("SPIRAL",0),Mrt=new jC("LINE_BY_LINE",1),Irt=new jC("MANHATTAN",2),Ort=new jC("JITTER",3),Nrt=new jC("QUADRANTS_LINE_BY_LINE",4),Rrt=new jC("QUADRANTS_MANHATTAN",5),Drt=new jC("QUADRANTS_JITTER",6),krt=new jC("COMBINE_LINE_BY_LINE_MANHATTAN",7),Trt=new jC("COMBINE_JITTER_MANHATTAN",8)}function ePe(e,t,n,r){var i,o,a,s,l,c;for(l=D_e(e,n),c=D_e(t,n),i=!1;l&&c&&(r||vye(l,c,n));)a=D_e(l,n),s=D_e(c,n),O9(t),O9(e),o=l.c,nze(l,!1),nze(c,!1),n?(Kye(t,c.p,o),t.p=c.p,Kye(e,l.p+1,o),e.p=l.p):(Kye(e,l.p,o),e.p=l.p,Kye(t,c.p+1,o),t.p=c.p),SZ(l,null),SZ(c,null),l=a,c=s,i=!0;return i}function tPe(e,t,n,r){var i,o,a,s,l;for(i=!1,o=!1,s=new Gf(r.j);s.a<s.c.c.length;)UO(vSe(a=$H(J0(s),11),(lKe(),fht)))===UO(n)&&(0==a.g.c.length?0==a.e.c.length||(i=!0):o=!0);return l=0,i&&i^o?l=n.j==(bGe(),sOt)?-e.e[r.c.p][r.p]:t-e.e[r.c.p][r.p]:o&&i^o?l=e.e[r.c.p][r.p]+1:i&&o&&(l=n.j==(bGe(),sOt)?0:t/2),l}function nPe(e,t,n,r,i,o,a,s){var l,c,u;for(l=0,null!=t&&(l^=mAe(t.toLowerCase())),null!=n&&(l^=mAe(n)),null!=r&&(l^=mAe(r)),null!=a&&(l^=mAe(a)),null!=s&&(l^=mAe(s)),c=0,u=o.length;c<u;c++)l^=mAe(o[c]);e?l|=256:l&=-257,i?l|=16:l&=-17,this.f=l,this.i=null==t?null:(bK(t),t),this.a=n,this.d=r,this.j=o,this.g=a,this.e=s}function rPe(e,t,n){var r,i;switch(i=null,t.g){case 1:poe(),i=Dst;break;case 2:poe(),i=Rst}switch(r=null,n.g){case 1:poe(),r=Nst;break;case 2:poe(),r=Ist;break;case 3:poe(),r=Lst;break;case 4:poe(),r=Bst}return i&&r?BH(e.j,new $d(new qy(Sse(Uw(Det,1),jKe,169,0,[$H(AV(i),169),$H(AV(r),169)])))):(Eq(),Eq(),lnt)}function iPe(e){var t,n,r;switch(t=$H(vSe(e,(jVe(),jmt)),8),lle(e,jmt,new Nk(t.b,t.a)),$H(vSe(e,bgt),248).g){case 1:lle(e,bgt,(hAe(),ISt));break;case 2:lle(e,bgt,(hAe(),TSt));break;case 3:lle(e,bgt,(hAe(),OSt));break;case 4:lle(e,bgt,(hAe(),MSt))}(e.q?e.q:(Eq(),Eq(),cnt))._b(svt)&&(r=(n=$H(vSe(e,svt),8)).a,n.a=n.b,n.b=r)}function oPe(e,t,n,r,i,o){if(this.b=n,this.d=i,e>=t.length)throw jv(new Oy("Greedy SwitchDecider: Free layer not in graph."));this.c=t[e],this.e=new KF(r),Aie(this.e,this.c,(bGe(),COt)),this.i=new KF(r),Aie(this.i,this.c,aOt),this.f=new uz(this.c),this.a=!o&&i.i&&!i.s&&this.c[0].k==(oCe(),xst),this.a&&pTe(this,e,t.length)}function aPe(e,t){var n,r,i,o,a,s;o=!e.B.Hc((JFe(),jOt)),a=e.B.Hc(QOt),e.a=new jpe(a,o,e.c),e.n&&bq(e.a.n,e.n),yy(e.g,(Rte(),Qrt),e.a),t||((r=new Tme(1,o,e.c)).n.a=e.k,vz(e.p,(bGe(),sOt),r),(i=new Tme(1,o,e.c)).n.d=e.k,vz(e.p,EOt,i),(s=new Tme(0,o,e.c)).n.c=e.k,vz(e.p,COt,s),(n=new Tme(0,o,e.c)).n.b=e.k,vz(e.p,aOt,n))}function sPe(e){var t,n,r;switch((t=$H(vSe(e.d,(jVe(),Xgt)),218)).g){case 2:n=xVe(e);break;case 3:r=new Dv,qE(OY(MY(hee(hee(new LQ(null,new h0(e.d.b,16)),new Mi),new Ii),new Di),new vi),new Cg(r)),n=r;break;default:throw jv(new Fy("Compaction not supported for "+t+" edges."))}pQe(e,n),e5(new Cf(e.g),new Eg(e))}function lPe(e,t){var n;return n=new Je,t&&Hae(n,$H(LV(e.a,NMt),94)),rN(t,470)&&Hae(n,$H(LV(e.a,RMt),94)),rN(t,354)?(Hae(n,$H(LV(e.a,UMt),94)),n):(rN(t,82)&&Hae(n,$H(LV(e.a,LMt),94)),rN(t,239)?(Hae(n,$H(LV(e.a,QMt),94)),n):rN(t,186)?(Hae(n,$H(LV(e.a,zMt),94)),n):(rN(t,352)&&Hae(n,$H(LV(e.a,BMt),94)),n))}function cPe(){cPe=M,Xot=new WI((sKe(),gTt),the(1)),rat=new WI(ITt,80),nat=new WI(ETt,5),Fot=new WI(rCt,fZe),Jot=new WI(mTt,the(1)),tat=new WI(bTt,(lR(),!0)),Kot=new GI(50),Vot=new WI(WCt,Kot),jot=CCt,Yot=oTt,$ot=new WI(fCt,!1),Got=zCt,Wot=HCt,zot=BCt,Qot=RCt,qot=cTt,yCe(),Uot=Tot,iat=Dot,Hot=Cot,Zot=Oot,eat=Iot}function uPe(e){var t,n,r,i,o,a,s;for(s=new m5,a=new Gf(e.a);a.a<a.c.c.length;)if((o=$H(J0(a),10)).k!=(oCe(),xst))for(PIe(s,o,new U_),i=new aW(XN(ufe(o).a.Kc(),new u));fIe(i);)if((r=$H(z5(i),17)).c.i.k!=xst&&r.d.i.k!=xst)for(n=sve(r.a,0);n.b!=n.d.c;)Y_e(s,new fT((t=$H(d3(n),8)).a,t.b));return s}function dPe(){dPe=M,LEt=new ov(B4e),kS(),NEt=new MM(H4e,REt=UEt),Ise(),IEt=new MM(P4e,DEt=GEt),MCe(),OEt=new MM(F4e,MEt=nEt),SEt=new MM($4e,null),M6(),TEt=new MM(j4e,kEt=Xxt),CS(),yEt=new MM(U4e,wEt=Wxt),_Et=new MM(Q4e,(lR(),!1)),xEt=new MM(z4e,the(64)),EEt=new MM(W4e,!0),CEt=Jxt}function hPe(e){var t,n,r,i,o;if(null==e.a)if(e.a=N8(ORt,XXe,25,e.c.b.c.length,16,1),e.a[0]=!1,IL(e.c,(jVe(),zvt)))for(n=$H(vSe(e.c,zvt),15).Kc();n.Ob();)(t=$H(n.Pb(),19).a)>0&&t<e.a.length&&(e.a[t]=!1);else for((o=new Gf(e.c.b)).a<o.c.c.length&&J0(o),r=1;o.a<o.c.c.length;)i=$H(J0(o),29),e.a[r++]=zDe(i)}function fPe(e,t){var n,r;switch(r=e.b,t){case 1:e.b|=1,e.b|=4,e.b|=8;break;case 2:e.b|=2,e.b|=4,e.b|=8;break;case 4:e.b|=1,e.b|=2,e.b|=4,e.b|=8;break;case 3:e.b|=16,e.b|=8;break;case 0:e.b|=32,e.b|=16,e.b|=8,e.b|=1,e.b|=2,e.b|=4}if(e.b!=r&&e.c)for(n=new ON(e.c);n.e!=n.i.gc();)Oke(S5($H(bve(n),473)),t)}function pPe(e,t,n,r){var i,o,a,s,l,c,u,d,h,f;for(i=!1,s=0,l=(a=t).length;s<l;++s)o=a[s],Hy((lR(),!!o.e))&&!$H(NQ(e.b,o.e.p),214).s&&(i|=(c=o.e,(d=(u=$H(NQ(e.b,c.p),214)).e)[h=c_(n,d.length)][0].k==(oCe(),xst)?d[h]=MRe(o,d[h],n?(bGe(),COt):(bGe(),aOt)):u.c.Tf(d,n),f=RRe(e,u,n,r),NLe(u.e,u.o,n),f));return i}function gPe(e,t){var n,r,i,o,a;for(o=(!t.a&&(t.a=new eG(QMt,t,10,11)),t.a).i,i=new ON((!t.a&&(t.a=new eG(QMt,t,10,11)),t.a));i.e!=i.i.gc();)UO(XIe(r=$H(bve(i),33),(sKe(),wCt)))!==UO((ode(),vkt))&&((a=$H(XIe(t,vTt),149))==(n=$H(XIe(r,vTt),149))||a&&y5(a,n))&&0!=(!r.a&&(r.a=new eG(QMt,r,10,11)),r.a).i&&(o+=gPe(e,r));return o}function mPe(e){var t,n,r,i,o,a,s;for(r=0,s=0,a=new Gf(e.d);a.a<a.c.c.length;)o=$H(J0(a),101),i=$H(S4(OY(new LQ(null,new h0(o.j,16)),new Vi),v7(new U,new H,new re,Sse(Uw(Jnt,1),MYe,132,0,[(Hce(),znt)]))),15),n=null,r<=s?(bGe(),n=sOt,r+=i.gc()):s<r&&(bGe(),n=EOt,s+=i.gc()),t=n,qE(MY(i.Oc(),new Ui),new Og(t))}function vPe(e){var t,n,r,i,o,a,s,l;for(e.b=new mMe(new qy((bGe(),Sse(Uw(FOt,1),YZe,61,0,[SOt,sOt,aOt,EOt,COt]))),new qy((Cie(),Sse(Uw(Gct,1),MYe,361,0,[Lct,Rct,Nct])))),s=0,l=(a=Sse(Uw(FOt,1),YZe,61,0,[SOt,sOt,aOt,EOt,COt])).length;s<l;++s)for(o=a[s],r=0,i=(n=Sse(Uw(Gct,1),MYe,361,0,[Lct,Rct,Nct])).length;r<i;++r)t=n[r],G_e(e.b,o,t,new Dv)}function APe(e,t){var n,r,i,o,a,s,l,c,u,d;if(a=$H($H(l6(e.r,t),21),84),s=e.u.Hc((uOe(),nOt)),n=e.u.Hc(Zkt),r=e.u.Hc(Jkt),c=e.u.Hc(rOt),d=e.B.Hc((JFe(),KOt)),u=!n&&!r&&(c||2==a.gc()),lLe(e,t),i=null,l=null,s){for(l=i=$H((o=a.Kc()).Pb(),111);o.Ob();)l=$H(o.Pb(),111);i.d.b=0,l.d.c=0,u&&!i.a&&(i.d.c=0)}d&&(REe(a),s&&(i.d.b=0,l.d.c=0))}function bPe(e,t){var n,r,i,o,a,s,l,c,u,d;if(a=$H($H(l6(e.r,t),21),84),s=e.u.Hc((uOe(),nOt)),n=e.u.Hc(Zkt),r=e.u.Hc(Jkt),l=e.u.Hc(rOt),d=e.B.Hc((JFe(),KOt)),c=!n&&!r&&(l||2==a.gc()),V$e(e,t),u=null,i=null,s){for(i=u=$H((o=a.Kc()).Pb(),111);o.Ob();)i=$H(o.Pb(),111);u.d.d=0,i.d.a=0,c&&!u.a&&(u.d.a=0)}d&&(LEe(a),s&&(u.d.d=0,i.d.a=0))}function yPe(e,t,n){var r,i,o,a,s;if(r=t.k,t.p>=0)return!1;if(t.p=n.b,GH(n.e,t),r==(oCe(),Sst)||r==Tst)for(i=new Gf(t.j);i.a<i.c.c.length;)for(s=new Qp(new Gf(new Up($H(J0(i),11)).a.g));AD(s.a);)if(a=(o=$H(J0(s.a),17).d.i).k,t.c!=o.c&&(a==Sst||a==Tst)&&yPe(e,o,n))return!0;return!0}function wPe(e){var t;return 64&e.Db?BMe(e):((t=new cR(BMe(e))).a+=" (changeable: ",Ax(t,!!(e.Bb&b6e)),t.a+=", volatile: ",Ax(t,!!(e.Bb&x7e)),t.a+=", transient: ",Ax(t,!!(e.Bb&Pqe)),t.a+=", defaultValueLiteral: ",rM(t,e.j),t.a+=", unsettable: ",Ax(t,!!(e.Bb&_7e)),t.a+=", derived: ",Ax(t,!!(e.Bb&lYe)),t.a+=")",t.a)}function _Pe(e){var t,n,r,i,o,a,s,l,c,u;for(n=DNe(e.d),o=(i=$H(vSe(e.b,(wve(),mot)),116)).b+i.c,a=i.d+i.a,l=n.d.a*e.e+o,s=n.b.a*e.f+a,Mh(e.b,new Nk(l,s)),u=new Gf(e.g);u.a<u.c.c.length;)t=zP(FL(new Nk((c=$H(J0(u),562)).g-n.a.a,c.i-n.c.a),c.a,c.b),bN($L($D(VI(c.e)),c.d*c.a,c.c*c.b),-.5)),r=KI(c.e),t_(c.e,WP(t,r))}function xPe(e,t,n,r){var i,o,a,s,l;for(l=N8(DRt,sYe,104,(bGe(),Sse(Uw(FOt,1),YZe,61,0,[SOt,sOt,aOt,EOt,COt])).length,0,2),a=0,s=(o=Sse(Uw(FOt,1),YZe,61,0,[SOt,sOt,aOt,EOt,COt])).length;a<s;++a)l[(i=o[a]).g]=N8(DRt,Hqe,25,e.c[i.g],15,1);return $we(l,e,sOt),$we(l,e,EOt),Nbe(l,e,sOt,t,n,r),Nbe(l,e,aOt,t,n,r),Nbe(l,e,EOt,t,n,r),Nbe(l,e,COt,t,n,r),l}function EPe(e,t,n){if(lG(e.a,t)){if(FE($H(LV(e.a,t),53),n))return 1}else VK(e.a,t,new LA);if(lG(e.a,n)){if(FE($H(LV(e.a,n),53),t))return-1}else VK(e.a,n,new LA);if(lG(e.b,t)){if(FE($H(LV(e.b,t),53),n))return-1}else VK(e.b,t,new LA);if(lG(e.b,n)){if(FE($H(LV(e.b,n),53),t))return 1}else VK(e.b,n,new LA);return 0}function SPe(e,t,n,r){var i,o,a,s,l,c;if(null==n)for(i=$H(e.g,119),s=0;s<e.i;++s)if((a=i[s]).ak()==t)return Pve(e,a,r);return XS(),o=$H(t,66).Oj()?$H(n,72):X3(t,n),vI(e.e)?(c=!ige(e,t),r=Ype(e,o,r),l=t.$j()?IX(e,3,t,null,n,gHe(e,t,n,rN(t,99)&&!!($H(t,18).Bb&$qe)),c):IX(e,1,t,t.zj(),n,-1,c),r?r.Ei(l):r=l):r=Ype(e,o,r),r}function CPe(e){var t,n,i,o,a,s;e.q!=(Kxe(),Gkt)&&e.q!=Wkt&&(o=e.f.n.d+WU($H(aY(e.b,(bGe(),sOt)),124))+e.c,t=e.f.n.a+WU($H(aY(e.b,EOt),124))+e.c,i=$H(aY(e.b,aOt),124),s=$H(aY(e.b,COt),124),a=r.Math.max(0,i.n.d-o),a=r.Math.max(a,s.n.d-o),n=r.Math.max(0,i.n.a-t),n=r.Math.max(n,s.n.a-t),i.n.d=a,s.n.d=a,i.n.a=n,s.n.a=n)}function TPe(e,t){var n,r,i,o,a,s,l;for(kEe(t,"Restoring reversed edges",1),a=new Gf(e.b);a.a<a.c.c.length;)for(s=new Gf($H(J0(a),29).a);s.a<s.c.c.length;)for(l=new Gf($H(J0(s),10).j);l.a<l.c.c.length;)for(i=0,o=(r=X1($H(J0(l),11).g)).length;i<o;++i)Hy(_B(vSe(n=r[i],(lKe(),Cht))))&&Zje(n,!1);jCe(t)}function kPe(){this.b=new m4,this.d=new m4,this.e=new m4,this.c=new m4,this.a=new Nv,this.f=new Nv,NJ(SSt,new ys,new ws),NJ(DSt,new Ds,new Ns),NJ(wst,new Rs,new Ls),NJ(Pst,new Ps,new Fs),NJ(lMt,new $s,new js),NJ(vnt,new _s,new xs),NJ(Tnt,new Es,new Ss),NJ(ynt,new Cs,new Ts),NJ(wnt,new ks,new Os),NJ($nt,new Ms,new Is)}function OPe(e){var t,n,r,i,o,a;return o=0,(t=Twe(e)).Bj()&&(o|=4),e.Bb&_7e&&(o|=2),rN(e,99)?(i=CAe(n=$H(e,18)),n.Bb&l6e&&(o|=32),i&&(dV(fZ(i)),o|=8,((a=i.t)>1||-1==a)&&(o|=16),i.Bb&l6e&&(o|=64)),n.Bb&$qe&&(o|=x7e),o|=b6e):rN(t,457)?o|=512:(r=t.Bj())&&1&r.i&&(o|=256),512&e.Bb&&(o|=128),o}function MPe(e,t){var n,r,i,o,a;for(e=null==e?QKe:(bK(e),e),i=0;i<t.length;i++)t[i]=tNe(t[i]);for(n=new Tw,a=0,r=0;r<t.length&&-1!=(o=e.indexOf("%s",a));)n.a+=""+cL(null==e?QKe:(bK(e),e),a,o),oM(n,t[r++]),a=o+2;if(U1(n,e,a,e.length),r<t.length){for(n.a+=" [",oM(n,t[r++]);r<t.length;)n.a+=FKe,oM(n,t[r++]);n.a+="]"}return n.a}function IPe(e){var t,n,r,i,o;for(o=new q6(e.a.c.length),i=new Gf(e.a);i.a<i.c.c.length;){switch(r=$H(J0(i),10),t=null,(n=$H(vSe(r,(jVe(),bmt)),163)).g){case 1:case 2:qse(),t=Mut;break;case 3:case 4:qse(),t=kut}t?(lle(r,(lKe(),Udt),(qse(),Mut)),t==kut?LRe(r,n,(ire(),jAt)):t==Mut&&LRe(r,n,(ire(),HAt))):o.c[o.c.length]=r}return o}function DPe(e,t){var n,r,i,o,a,s,l;for(n=0,l=new Gf(t);l.a<l.c.c.length;){for(s=$H(J0(l),11),Jce(e.b,e.d[s.p]),a=0,i=new v6(s.b);AD(i.a)||AD(i.b);)CK(r=$H(AD(i.a)?J0(i.a):J0(i.b),17))?(o=xx(e,s==r.c?r.d:r.c))>e.d[s.p]&&(n+=J4(e.b,o),f3(e.a,the(o))):++a;for(n+=e.b.d*a;!Gy(e.a);)xee(e.b,$H(fG(e.a),19).a)}return n}function NPe(e,t){var n;return e.f==iNt?(n=RK($9((TTe(),qDt),t)),e.e?4==n&&t!=(_Me(),lNt)&&t!=(_Me(),oNt)&&t!=(_Me(),aNt)&&t!=(_Me(),sNt):2==n):!(!e.d||!(e.d.Hc(t)||e.d.Hc(X0($9((TTe(),qDt),t)))||e.d.Hc(FQe((TTe(),qDt),e.b,t))))||!(!e.f||!iRe((TTe(),e.f),yY($9(qDt,t))))&&(n=RK($9(qDt,t)),e.e?4==n:2==n)}function RPe(e,t,n,i){var o,a,s,l,c,u,d,h;return c=(s=$H(XIe(n,(sKe(),pTt)),8)).a,d=s.b+e,(o=r.Math.atan2(d,c))<0&&(o+=X3e),(o+=t)>X3e&&(o-=X3e),u=(l=$H(XIe(i,pTt),8)).a,h=l.b+e,(a=r.Math.atan2(h,u))<0&&(a+=X3e),(a+=t)>X3e&&(a-=X3e),lD(),nre(1e-10),r.Math.abs(o-a)<=1e-10||o==a||isNaN(o)&&isNaN(a)?0:o<a?-1:o>a?1:QM(isNaN(o),isNaN(a))}function LPe(e){var t,n,r,i,o,a,s;for(s=new Nv,r=new Gf(e.a.b);r.a<r.c.c.length;)VK(s,t=$H(J0(r),57),new Dv);for(i=new Gf(e.a.b);i.a<i.c.c.length;)for((t=$H(J0(i),57)).i=Bqe,a=t.c.Kc();a.Ob();)o=$H(a.Pb(),57),$H(HO(OX(s.f,o)),15).Fc(t);for(n=new Gf(e.a.b);n.a<n.c.c.length;)(t=$H(J0(n),57)).c.$b(),t.c=$H(HO(OX(s.f,t)),15);PLe(e)}function BPe(e){var t,n,r,i,o,a,s;for(s=new Nv,r=new Gf(e.a.b);r.a<r.c.c.length;)VK(s,t=$H(J0(r),81),new Dv);for(i=new Gf(e.a.b);i.a<i.c.c.length;)for((t=$H(J0(i),81)).o=Bqe,a=t.f.Kc();a.Ob();)o=$H(a.Pb(),81),$H(HO(OX(s.f,o)),15).Fc(t);for(n=new Gf(e.a.b);n.a<n.c.c.length;)(t=$H(J0(n),81)).f.$b(),t.f=$H(HO(OX(s.f,t)),15);$Re(e)}function PPe(e,t,n,r){var i,o;for(Uwe(e,t,n,r),Dh(t,e.j-t.j+n),Nh(t,e.k-t.k+r),o=new Gf(t.f);o.a<o.c.c.length;)switch((i=$H(J0(o),324)).a.g){case 0:hle(e,t.g+i.b.a,0,t.g+i.c.a,t.i-1);break;case 1:hle(e,t.g+t.o,t.i+i.b.a,e.o-1,t.i+i.c.a);break;case 2:hle(e,t.g+i.b.a,t.i+t.p,t.g+i.c.a,e.p-1);break;default:hle(e,0,t.i+i.b.a,t.g-1,t.i+i.c.a)}}function FPe(e,t,n,r,i){var o,a;try{if(t>=e.o)throw jv(new EA);a=t>>5,o=AW(1,fz(AW(31&t,1))),e.n[n][a]=i?t1(e.n[n][a],o):e1(e.n[n][a],oU(o)),o=AW(o,1),e.n[n][a]=r?t1(e.n[n][a],o):e1(e.n[n][a],oU(o))}catch(r){throw rN(r=use(r),320)?jv(new Oy(xJe+e.o+"*"+e.p+EJe+t+FKe+n+SJe)):jv(r)}}function $Pe(e,t,n,i){var o,a;t&&(o=Uy(xB(vSe(t,(HQe(),cwt))))+i,a=n+Uy(xB(vSe(t,owt)))/2,lle(t,pwt,the(fz(cae(r.Math.round(o))))),lle(t,gwt,the(fz(cae(r.Math.round(a))))),0==t.d.b||$Pe(e,$H(tN(new hm(sve(new dm(t).a.d,0))),86),n+Uy(xB(vSe(t,owt)))+e.a,i+Uy(xB(vSe(t,awt)))),null!=vSe(t,hwt)&&$Pe(e,$H(vSe(t,hwt),86),n,i))}function jPe(e,t){var n,i,o,a,s,l,c,u,d,h,f;for(o=2*Uy(xB(vSe(c=mK(t.a),(jVe(),_vt)))),d=Uy(xB(vSe(c,Ovt))),u=r.Math.max(o,d),a=N8(DRt,Hqe,25,t.f-t.c+1,15,1),i=-u,n=0,l=t.b.Kc();l.Ob();)s=$H(l.Pb(),10),i+=e.a[s.c.p]+u,a[n++]=i;for(i+=e.a[t.a.c.p]+u,a[n++]=i,f=new Gf(t.e);f.a<f.c.c.length;)h=$H(J0(f),10),i+=e.a[h.c.p]+u,a[n++]=i;return a}function HPe(e,t,n,r){var i,o,a,s,l,c,u,d;for(d=new fx(new Yg(e)),s=0,l=(a=Sse(Uw(kst,1),i0e,10,0,[t,n])).length;s<l;++s)for(u=Ide(a[s],r).Kc();u.Ob();)for(o=new v6((c=$H(u.Pb(),11)).b);AD(o.a)||AD(o.b);)d5(i=$H(AD(o.a)?J0(o.a):J0(o.b),17))||(xle(d.a,c,(lR(),mtt)),CK(i)&&XG(d,c==i.c?i.d:i.c));return AV(d),new ZF(d)}function UPe(e,t){var n,r,i,o;if(0!=(o=$H(XIe(e,(sKe(),hTt)),61).g-$H(XIe(t,hTt),61).g))return o;if(n=$H(XIe(e,sTt),19),r=$H(XIe(t,sTt),19),n&&r&&0!=(i=n.a-r.a))return i;switch($H(XIe(e,hTt),61).g){case 1:return She(e.i,t.i);case 2:return She(e.j,t.j);case 3:return She(t.i,e.i);case 4:return She(t.j,e.j);default:throw jv(new Fy(n0e))}}function QPe(e){var t,n,r;return 64&e.Db?vCe(e):(t=new uR(J5e),(n=e.k)?aM(aM((t.a+=' "',t),n),'"'):(!e.n&&(e.n=new eG(UMt,e,1,7)),e.n.i>0&&(!(r=(!e.n&&(e.n=new eG(UMt,e,1,7)),$H(Gte(e.n,0),137)).a)||aM(aM((t.a+=' "',t),r),'"'))),aM(bx(aM(bx(aM(bx(aM(bx((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function zPe(e){var t,n,r;return 64&e.Db?vCe(e):(t=new uR(Z5e),(n=e.k)?aM(aM((t.a+=' "',t),n),'"'):(!e.n&&(e.n=new eG(UMt,e,1,7)),e.n.i>0&&(!(r=(!e.n&&(e.n=new eG(UMt,e,1,7)),$H(Gte(e.n,0),137)).a)||aM(aM((t.a+=' "',t),r),'"'))),aM(bx(aM(bx(aM(bx(aM(bx((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function WPe(e,t){var n,r,i,o,a,s;if(null==t||0==t.length)return null;if(!(i=$H(EJ(e.a,t),149))){for(r=new Bf(new kf(e.b).a.vc().Kc());r.a.Ob();)if(o=$H(r.a.Pb(),42),a=(n=$H(o.dd(),149)).c,s=t.length,vF(a.substr(a.length-s,s),t)&&(t.length==a.length||46==cY(a,a.length-t.length-1))){if(i)return null;i=n}i&&vZ(e.a,t,i)}return i}function GPe(e,t){var n,r,i;return n=new Re,(r=$H(S4(MY(new LQ(null,new h0(e.f,16)),n),N9(new q,new X,new ie,new oe,Sse(Uw(Jnt,1),MYe,132,0,[(Hce(),Wnt),znt]))),21).gc())<(i=$H(S4(MY(new LQ(null,new h0(t.f,16)),n),N9(new q,new X,new ie,new oe,Sse(Uw(Jnt,1),MYe,132,0,[Wnt,znt]))),21).gc())?-1:r==i?0:1}function VPe(e){var t,n,r;IL(e,(jVe(),Mmt))&&((r=$H(vSe(e,Mmt),21)).dc()||(n=new YF(t=$H(V_(Ukt),9),$H(EP(t,t.length),9),0),r.Hc((JIe(),Mkt))?aie(n,Mkt):aie(n,Ikt),r.Hc(kkt)||aie(n,kkt),r.Hc(Tkt)?aie(n,Rkt):r.Hc(Ckt)?aie(n,Nkt):r.Hc(Okt)&&aie(n,Dkt),r.Hc(Rkt)?aie(n,Tkt):r.Hc(Nkt)?aie(n,Ckt):r.Hc(Dkt)&&aie(n,Okt),lle(e,Mmt,n)))}function KPe(e){var t,n,r,i,o,a,s;for(i=$H(vSe(e,(lKe(),nht)),10),u0(0,(r=e.j).c.length),n=$H(r.c[0],11),a=new Gf(i.j);a.a<a.c.c.length;)if(UO(o=$H(J0(a),11))===UO(vSe(n,fht))){o.j==(bGe(),sOt)&&e.p>i.p?(Hke(o,EOt),o.d&&(s=o.o.b,t=o.a.b,o.a.b=s-t)):o.j==EOt&&i.p>e.p&&(Hke(o,sOt),o.d&&(s=o.o.b,t=o.a.b,o.a.b=-(s-t)));break}return i}function YPe(e,t,n,r){var i,o,a,s,l,c,u,d,h,f,p;if(o=n,n<r)for(f=new Fae(e.p),p=new Fae(e.p),Fie(f.e,e.e),f.q=e.q,f.r=p,nV(f),Fie(p.j,e.j),p.r=f,nV(p),d=$H((h=new nO(f,p)).a,112),u=$H(h.b,112),u0(o,t.c.length),a=MBe(e,d,u,i=$H(t.c[o],329)),c=n+1;c<=r;c++)u0(c,t.c.length),Vve(s=$H(t.c[c],329),l=MBe(e,d,u,s),i,a)&&(i=s,a=l);return o}function qPe(e,t,n,r,i){var o,a,s,l,c,u,d;if(!(rN(t,239)||rN(t,354)||rN(t,186)))throw jv(new Py("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return a=e.a/2,l=t.i+r-a,u=t.j+i-a,c=l+t.g+e.a,d=u+t.f+e.a,RU(o=new bb,new Nk(l,u)),RU(o,new Nk(l,d)),RU(o,new Nk(c,d)),RU(o,new Nk(c,u)),Hae(s=new wIe(o),t),n&&VK(e.b,t,s),s}function XPe(e,t,n){var r,i,o,a,s,l,c,u;for(o=new Nk(t,n),c=new Gf(e.a);c.a<c.c.c.length;)for(zP((l=$H(J0(c),10)).n,o),u=new Gf(l.j);u.a<u.c.c.length;)for(i=new Gf($H(J0(u),11).g);i.a<i.c.c.length;)for(Xte((r=$H(J0(i),17)).a,o),(a=$H(vSe(r,(jVe(),mmt)),74))&&Xte(a,o),s=new Gf(r.b);s.a<s.c.c.length;)zP($H(J0(s),70).n,o)}function JPe(e,t,n){var r,i,o,a,s,l,c,u;for(o=new Nk(t,n),c=new Gf(e.a);c.a<c.c.c.length;)for(zP((l=$H(J0(c),10)).n,o),u=new Gf(l.j);u.a<u.c.c.length;)for(i=new Gf($H(J0(u),11).g);i.a<i.c.c.length;)for(Xte((r=$H(J0(i),17)).a,o),(a=$H(vSe(r,(jVe(),mmt)),74))&&Xte(a,o),s=new Gf(r.b);s.a<s.c.c.length;)zP($H(J0(s),70).n,o)}function ZPe(e){if(0==(!e.b&&(e.b=new lF(LMt,e,4,7)),e.b).i)throw jv(new rw("Edges must have a source."));if(0==(!e.c&&(e.c=new lF(LMt,e,5,8)),e.c).i)throw jv(new rw("Edges must have a target."));if(!e.b&&(e.b=new lF(LMt,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new lF(LMt,e,5,8)),e.c.i<=1)))throw jv(new rw("Hyperedges are not supported."))}function eFe(e,t){var n,r,i,o,a,s,l,c,u,d;for(d=0,f3(o=new Iv,t);o.b!=o.c;)for(l=$H(fG(o),214),c=0,u=$H(vSe(t.j,(jVe(),Igt)),339),a=Uy(xB(vSe(t.j,Tgt))),s=Uy(xB(vSe(t.j,kgt))),u!=(vle(),DAt)&&(c+=a*EDe(l.e,u),c+=s*nLe(l.e)),d+=sye(l.d,l.e)+c,i=new Gf(l.b);i.a<i.c.c.length;)r=$H(J0(i),37),(n=$H(NQ(e.b,r.p),214)).s||(d+=JTe(e,n));return d}function tFe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m;for(l=f=t.length,d0(0,t.length),45==t.charCodeAt(0)?(d=-1,h=1,--f):(d=1,h=0),i=f/(o=(oUe(),int)[10])|0,0!=(m=f%o)&&++i,s=N8(kRt,lqe,25,i,15,1),n=rnt[8],a=0,p=h+(0==m?o:m),g=h;g<l;p=(g=p)+o)r=u$e(t.substr(g,p-g),PYe,RKe),MMe(),c=fAe(s,s,a,n),c+=zpe(s,a,r),s[a++]=c;u=a,e.e=d,e.d=u,e.a=s,W1(e)}function nFe(e,t,n,r,i,o,a){if(e.c=r.qf().a,e.d=r.qf().b,i&&(e.c+=i.qf().a,e.d+=i.qf().b),e.b=t.rf().a,e.a=t.rf().b,i)switch(i.Hf().g){case 0:case 2:e.c+=i.rf().a+a+o.a+a;break;case 4:e.c-=a+o.a+a+t.rf().a;break;case 1:e.c+=i.rf().a+a,e.d-=a+o.b+a+t.rf().b;break;case 3:e.c+=i.rf().a+a,e.d+=i.rf().b+a+o.b+a}else n?e.c-=a+t.rf().a:e.c+=r.rf().a+a}function rFe(e,t){var n,r;for(this.b=new Dv,this.e=new Dv,this.a=e,this.d=t,Uve(this),gge(this),this.b.dc()?this.c=e.c.p:this.c=$H(this.b.Xb(0),10).c.p,0==this.e.c.length?this.f=e.c.p:this.f=$H(NQ(this.e,this.e.c.length-1),10).c.p,r=$H(vSe(e,(lKe(),Sht)),15).Kc();r.Ob();)if(IL(n=$H(r.Pb(),70),(jVe(),Vgt))){this.d=$H(vSe(n,Vgt),227);break}}function iFe(e,t,n){var r,i,o,a,s,l,c,u;for(r=$H(LV(e.a,t),53),o=$H(LV(e.a,n),53),i=$H(LV(e.e,t),53),a=$H(LV(e.e,n),53),r.a.zc(n,r),a.a.zc(t,a),u=o.a.ec().Kc();u.Ob();)c=$H(u.Pb(),10),r.a.zc(c,r),_G($H(LV(e.e,c),53),t),Fie($H(LV(e.e,c),53),i);for(l=i.a.ec().Kc();l.Ob();)s=$H(l.Pb(),10),a.a.zc(s,a),_G($H(LV(e.a,s),53),n),Fie($H(LV(e.a,s),53),o)}function oFe(e,t,n){var r,i,o,a,s,l,c,u;for(r=$H(LV(e.a,t),53),o=$H(LV(e.a,n),53),i=$H(LV(e.b,t),53),a=$H(LV(e.b,n),53),r.a.zc(n,r),a.a.zc(t,a),u=o.a.ec().Kc();u.Ob();)c=$H(u.Pb(),10),r.a.zc(c,r),_G($H(LV(e.b,c),53),t),Fie($H(LV(e.b,c),53),i);for(l=i.a.ec().Kc();l.Ob();)s=$H(l.Pb(),10),a.a.zc(s,a),_G($H(LV(e.a,s),53),n),Fie($H(LV(e.a,s),53),o)}function aFe(e,t){var n,r,i;switch(kEe(t,"Breaking Point Insertion",1),r=new xIe(e),$H(vSe(e,(jVe(),$vt)),337).g){case 2:i=new So;case 0:i=new go;break;default:i=new Co}if(n=i.Vf(e,r),Hy(_B(vSe(e,Hvt)))&&(n=RQe(e,n)),!i.Wf()&&IL(e,Wvt))switch($H(vSe(e,Wvt),338).g){case 2:n=Wke(r,n);break;case 1:n=BEe(r,n)}n.dc()||ZGe(e,n),jCe(t)}function sFe(e,t,n){var r,i,o,a,s,l,c;if(c=t,Mre(l=K3(e,I3(n),c),L2(c,H6e)),a=D2(c,I6e),Vke((r=new aO(e,l)).a,r.b,a),s=D2(c,D6e),Kke((i=new sO(e,l)).a,i.b,s),0==(!l.b&&(l.b=new lF(LMt,l,4,7)),l.b).i||0==(!l.c&&(l.c=new lF(LMt,l,5,8)),l.c).i)throw o=L2(c,H6e),jv(new ew(W6e+o+G6e));return EEe(c,l),sVe(e,c,l),Nle(e,c,l)}function lFe(e,t){var n,i,o,a,s,l,c;for(o=N8(kRt,lqe,25,e.e.a.c.length,15,1),s=new Gf(e.e.a);s.a<s.c.c.length;)o[(a=$H(J0(s),121)).d]+=a.b.a.c.length;for(l=QH(t);0!=l.b;)for(i=I7(new Gf((a=$H(0==l.b?null:(SL(0!=l.b),Ote(l,l.a.a)),121)).g.a));i.Ob();)(c=(n=$H(i.Pb(),213)).e).e=r.Math.max(c.e,a.e+n.a),--o[c.d],0==o[c.d]&&n5(l,c,l.c.b,l.c)}function cFe(e){var t,n,i,o,a,s,l,c,u,d,h;for(n=PYe,o=RKe,l=new Gf(e.e.a);l.a<l.c.c.length;)a=$H(J0(l),121),o=r.Math.min(o,a.e),n=r.Math.max(n,a.e);for(t=N8(kRt,lqe,25,n-o+1,15,1),s=new Gf(e.e.a);s.a<s.c.c.length;)(a=$H(J0(s),121)).e-=o,++t[a.e];if(i=0,null!=e.k)for(d=0,h=(u=e.k).length;d<h&&(c=u[d],t[i++]+=c,t.length!=i);++d);return t}function uFe(e){switch(e.d){case 9:case 8:return!0;case 3:case 5:case 4:case 6:return!1;case 7:return $H(BLe(e),19).a==e.o;case 1:case 2:if(-2==e.o)return!1;switch(e.p){case 0:case 1:case 2:case 6:case 5:case 7:return KO(e.k,e.f);case 3:case 4:return e.j==e.e;default:return null==e.n?null==e.g:Dde(e.n,e.g)}default:return!1}}function dFe(e){DS(e,new xEe(m_(h_(g_(p_(new ms,B5e),"ELK Fixed"),"Keeps the current layout as it is, without any automatic modification. Optional coordinates can be given for nodes and edge bend points."),new qs))),o2(e,B5e,KJe,fkt),o2(e,B5e,p3e,vve(pkt)),o2(e,B5e,p5e,vve(lkt)),o2(e,B5e,SZe,vve(ckt)),o2(e,B5e,$Ze,vve(dkt)),o2(e,B5e,Y2e,vve(ukt))}function hFe(e,t,n){var r,i,o,a;if(r=fz(rfe(EYe,nY(fz(rfe(null==t?0:Jle(t),SYe)),15))),a=fz(rfe(EYe,nY(fz(rfe(null==n?0:Jle(n),SYe)),15))),(o=qie(e,t,r))&&a==o.f&&hK(n,o.i))return n;if(Xie(e,n,a))throw jv(new Py("value already present: "+n));return i=new HK(t,r,n,a),o?(INe(e,o),Yke(e,i,o),o.e=null,o.c=null,o.i):(Yke(e,i,null),Hwe(e),null)}function fFe(e,t,n){var r,i,o,a,s,l,c,u,d,h,f;c=n.a.c,a=n.a.c+n.a.b,h=(o=$H(LV(n.c,t),459)).f,f=o.a,s=o.b?new Nk(a,h):new Nk(c,h),u=o.c?new Nk(c,f):new Nk(a,f),i=c,n.p||(i+=e.c),l=new Nk(i+=n.F+n.v*e.b,h),d=new Nk(i,f),Jne(t.a,Sse(Uw(SSt,1),sYe,8,0,[s,l])),n.d.a.gc()>1&&(r=new Nk(i,n.b),RU(t.a,r)),Jne(t.a,Sse(Uw(SSt,1),sYe,8,0,[d,u]))}function pFe(e,t,n){var r,i,o,a,s,l;if(t){if(n<=-1){if(rN(r=tte(t.Tg(),-1-n),99))return $H(r,18);for(s=0,l=(a=$H(t.ah(r),153)).gc();s<l;++s)if(UO(a.jl(s))===UO(e)&&rN(i=a.il(s),99)&&(o=$H(i,18)).Bb&l6e)return o;throw jv(new Fy("The containment feature could not be located"))}return CAe($H(tte(e.Tg(),n),18))}return null}function gFe(e){var t,n,r,i,o;for(r=e.length,t=new Sw,o=0;o<r;)if(9!=(n=cY(e,o++))&&10!=n&&12!=n&&13!=n&&32!=n)if(35!=n)92==n&&o<r?35==(d0(o,e.length),i=e.charCodeAt(o))||9==i||10==i||12==i||13==i||32==i?(DV(t,i&KYe),++o):(t.a+="\\",DV(t,i&KYe),++o):DV(t,n&KYe);else for(;o<r&&13!=(n=cY(e,o++))&&10!=n;);return t.a}function mFe(e,t){var n,r,i;for(r=new Gf(t);r.a<r.c.c.length;)if(n=$H(J0(r),33),qOe(e.a,n,n),qOe(e.b,n,n),0!=(i=hBe(n)).c.length)for(e.d&&e.d.lg(i),qOe(e.a,n,(u0(0,i.c.length),$H(i.c[0],33))),qOe(e.b,n,$H(NQ(i,i.c.length-1),33));0!=Rse(i).c.length;)i=Rse(i),e.d&&e.d.lg(i),qOe(e.a,n,(u0(0,i.c.length),$H(i.c[0],33))),qOe(e.b,n,$H(NQ(i,i.c.length-1),33))}function vFe(e){var t,n,r,i,o,a,s,l,c,u;for(n=0,s=new Gf(e.d);s.a<s.c.c.length;)(a=$H(J0(s),101)).i&&(a.i.c=n++);for(t=bQ(ORt,[sYe,XXe],[177,25],16,[n,n],2),u=e.d,i=0;i<u.c.length;i++)if(u0(i,u.c.length),(l=$H(u.c[i],101)).i)for(o=i+1;o<u.c.length;o++)u0(o,u.c.length),(c=$H(u.c[o],101)).i&&(r=nSe(l,c),t[l.i.c][c.i.c]=r,t[c.i.c][l.i.c]=r);return t}function AFe(e,t,n,r){var i,o,a;return a=new AE(t,n),e.a?r?(++(i=$H(LV(e.b,t),283)).a,a.d=r.d,a.e=r.e,a.b=r,a.c=r,r.e?r.e.c=a:$H(LV(e.b,t),283).b=a,r.d?r.d.b=a:e.a=a,r.d=a,r.e=a):(e.e.b=a,a.d=e.e,e.e=a,(i=$H(LV(e.b,t),283))?(++i.a,(o=i.c).c=a,a.e=o,i.c=a):(VK(e.b,t,i=new sX(a)),++e.c)):(e.a=e.e=a,VK(e.b,t,new sX(a)),++e.c),++e.d,a}function bFe(e,t){var n,r,i,o,a,s,l,c;for(n=new RegExp(t,"g"),l=N8(Ytt,sYe,2,0,6,1),r=0,c=e,o=null;;){if(null==(s=n.exec(c))||""==c){l[r]=c;break}a=s.index,l[r]=c.substr(0,a),c=cL(c,a+s[0].length,c.length),n.lastIndex=0,o==c&&(l[r]=c.substr(0,1),c=c.substr(1)),o=c,++r}if(e.length>0){for(i=l.length;i>0&&""==l[i-1];)--i;i<l.length&&(l.length=i)}return l}function yFe(e,t){var n,r,i,o,a,s,l,c;for(s=null,i=!1,o=0,l=i4((c=bX(t)).a).i;o<l;++o)(n=yFe(e,$H(eze(c,o,rN(a=$H(Gte(i4(c.a),o),87).c,88)?$H(a,26):(pKe(),hDt)),26))).dc()||(s?(i||(i=!0,s=new nz(s)),s.Gc(n)):s=n);return(r=NOe(e,t)).dc()?s||(Eq(),Eq(),lnt):s?(i||(s=new nz(s)),s.Gc(r),s):r}function wFe(e,t){var n,r,i,o,a,s,l,c;for(s=null,r=!1,o=0,l=i4((c=bX(t)).a).i;o<l;++o)(n=wFe(e,$H(eze(c,o,rN(a=$H(Gte(i4(c.a),o),87).c,88)?$H(a,26):(pKe(),hDt)),26))).dc()||(s?(r||(r=!0,s=new nz(s)),s.Gc(n)):s=n);return(i=VMe(e,t)).dc()?s||(Eq(),Eq(),lnt):s?(r||(s=new nz(s)),s.Gc(i),s):i}function _Fe(e,t,n){var r,i,o,a,s,l;if(rN(t,72))return Pve(e,t,n);for(s=null,o=null,r=$H(e.g,119),a=0;a<e.i;++a)if(Dde(t,(i=r[a]).dd())&&rN(o=i.ak(),99)&&$H(o,18).Bb&l6e){s=i;break}return s&&(vI(e.e)&&(l=o.$j()?IX(e,4,o,t,null,gHe(e,o,t,rN(o,99)&&!!($H(o,18).Bb&$qe)),!0):IX(e,o.Kj()?2:1,o,t,o.zj(),-1,!0),n?n.Ei(l):n=l),n=_Fe(e,s,n)),n}function xFe(e){var t,n,i,o;i=e.o,HB(),e.A.dc()||Dde(e.A,Mit)?o=i.a:(o=EOe(e.f),e.A.Hc((vge(),LOt))&&!e.B.Hc((JFe(),WOt))&&(o=r.Math.max(o,EOe($H(aY(e.p,(bGe(),sOt)),244))),o=r.Math.max(o,EOe($H(aY(e.p,EOt),244)))),(t=aae(e))&&(o=r.Math.max(o,t.a))),Hy(_B(e.e.yf().We((sKe(),FCt))))?i.a=r.Math.max(i.a,o):i.a=o,(n=e.f.i).c=0,n.b=o,Pje(e.f)}function EFe(e,t){var n,r,i,o,a,s,l,c,u;if((n=t.Hh(e.a))&&null!=(l=EB(rge((!n.b&&(n.b=new qL((pKe(),ADt),zDt,n)),n.b),"memberTypes")))){for(c=new Dv,a=0,s=(o=bFe(l,"\\w")).length;a<s;++a)rN(u=-1==(r=(i=o[a]).lastIndexOf("#"))?oB(e,t.Aj(),i):0==r?x7(e,null,i.substr(1)):x7(e,i.substr(0,r),i.substr(r+1)),148)&&GH(c,$H(u,148));return c}return Eq(),Eq(),lnt}function SFe(e,t,n){var r,i,o,a,s,l,c,u;for(kEe(n,iZe,1),e.bf(t),o=0;e.df(o);){for(u=new Gf(t.e);u.a<u.c.c.length;)for(l=$H(J0(u),144),s=DG(Gne(Sse(Uw(Ret,1),jKe,20,0,[t.e,t.d,t.b])));fIe(s);)(a=$H(z5(s),357))!=l&&(i=e.af(a,l))&&zP(l.a,i);for(c=new Gf(t.e);c.a<c.c.c.length;)GCe(r=(l=$H(J0(c),144)).a,-e.d,-e.d,e.d,e.d),zP(l.d,r),bM(r);e.cf(),++o}jCe(n)}function CFe(e,t,n){var r,i,o,a;if(a=iLe(e.e.Tg(),t),r=$H(e.g,119),XS(),$H(t,66).Oj()){for(o=0;o<e.i;++o)if(i=r[o],a.rl(i.ak())&&Dde(i,n))return cBe(e,o),!0}else if(null!=n){for(o=0;o<e.i;++o)if(i=r[o],a.rl(i.ak())&&Dde(n,i.dd()))return cBe(e,o),!0}else for(o=0;o<e.i;++o)if(i=r[o],a.rl(i.ak())&&null==i.dd())return cBe(e,o),!0;return!1}function TFe(e,t){var n,r,i,o,a;for(null==e.c||e.c.length<t.c.length?e.c=N8(ORt,XXe,25,t.c.length,16,1):Jy(e.c),e.a=new Dv,r=0,a=new Gf(t);a.a<a.c.c.length;)(i=$H(J0(a),10)).p=r++;for(n=new YE,o=new Gf(t);o.a<o.c.c.length;)i=$H(J0(o),10),e.c[i.p]||(lOe(e,i),0==n.b||(SL(0!=n.b),$H(n.a.a.c,15)).gc()<e.a.c.length?lM(n,e.a):cM(n,e.a),e.a=new Dv);return n}function kFe(e,t,n,r){var i,o,a,s,l,c,u;for(Sne(a=$H(Gte(t,0),33),0),Cne(a,0),(l=new Dv).c[l.c.length]=a,s=a,o=new eQ(e.a,a.g,a.f,(YNe(),Pxt)),c=1;c<t.i;c++)Sne(u=$H(Gte(t,c),33),(i=iQe(e,JHe(e,Rxt,u,s,o,l,n),JHe(e,Nxt,u,s,o,l,n),JHe(e,Bxt,u,s,o,l,n),JHe(e,Lxt,u,s,o,l,n),u,s,r)).d),Cne(u,i.e),rf(i,Pxt),o=i,s=u,l.c[l.c.length]=u;return o}function OFe(e){DS(e,new xEe(m_(h_(g_(p_(new ms,K4e),"ELK SPOrE Overlap Removal"),'A node overlap removal algorithm proposed by Nachmanson et al. in "Node overlap removal by growing a tree".'),new rs))),o2(e,K4e,B4e,vve(HEt)),o2(e,K4e,KJe,$Et),o2(e,K4e,mZe,8),o2(e,K4e,H4e,vve(jEt)),o2(e,K4e,z4e,vve(PEt)),o2(e,K4e,W4e,vve(FEt)),o2(e,K4e,W2e,(lR(),!1))}function MFe(e,t,n,r){var i,o,a,s,l,c,u,d;for(a=PL(t.c,n,r),u=new Gf(t.a);u.a<u.c.c.length;){for(zP((c=$H(J0(u),10)).n,a),d=new Gf(c.j);d.a<d.c.c.length;)for(o=new Gf($H(J0(d),11).g);o.a<o.c.c.length;)for(Xte((i=$H(J0(o),17)).a,a),(s=$H(vSe(i,(jVe(),mmt)),74))&&Xte(s,a),l=new Gf(i.b);l.a<l.c.c.length;)zP($H(J0(l),70).n,a);GH(e.a,c),c.a=e}}function IFe(e,t){var n,r,i,o;if(kEe(t,"Node and Port Label Placement and Node Sizing",1),LI((pS(),new jY(e,!0,!0,new Yn))),$H(vSe(e,(lKe(),Xdt)),21).Hc((dBe(),udt)))for(r=(i=$H(vSe(e,(jVe(),rvt)),21)).Hc((uOe(),tOt)),o=Hy(_B(vSe(e,ivt))),n=new Gf(e.b);n.a<n.c.c.length;)qE(OY(new LQ(null,new h0($H(J0(n),29).a,16)),new qn),new B$(i,r,o));jCe(t)}function DFe(e,t){var n,r,i,o,a,s;if((n=t.Hh(e.a))&&null!=(s=EB(rge((!n.b&&(n.b=new qL((pKe(),ADt),zDt,n)),n.b),J6e))))switch(i=vR(s,YEe(35)),r=t.Hj(),-1==i?(a=iW(e,zte(r)),o=s):0==i?(a=null,o=s.substr(1)):(a=s.substr(0,i),o=s.substr(i+1)),RK($9(e,t))){case 2:case 3:return Rle(e,r,a,o);case 0:case 4:case 5:case 6:return Lle(e,r,a,o)}return null}function NFe(e,t,n){var r,i,o,a,s;if(XS(),a=$H(t,66).Oj(),MLe(e.e,t)){if(t.hi()&&zje(e,t,n,rN(t,99)&&!!($H(t,18).Bb&$qe)))return!1}else for(s=iLe(e.e.Tg(),t),r=$H(e.g,119),o=0;o<e.i;++o)if(i=r[o],s.rl(i.ak()))return!(a?Dde(i,n):null==n?null==i.dd():Dde(n,i.dd()))&&($H(aAe(e,o,a?$H(n,72):X3(t,n)),72),!0);return c7(e,a?$H(n,72):X3(t,n))}function RFe(e){var t,n,r,i,o;if(e.d)throw jv(new Fy((wB(Yat),OXe+Yat.k+MXe)));for(e.c==(Fde(),$Tt)&&xWe(e,PTt),t=new Gf(e.a.a);t.a<t.c.c.length;)$H(J0(t),189).e=0;for(i=new Gf(e.a.b);i.a<i.c.c.length;)for((r=$H(J0(i),81)).o=Bqe,n=r.f.Kc();n.Ob();)++$H(n.Pb(),81).d.e;for(UWe(e),o=new Gf(e.a.b);o.a<o.c.c.length;)$H(J0(o),81).k=!0;return e}function LFe(e,t){var n,r,i,o,a,s,l,c;for(s=new gTe(e),n5(n=new YE,t,n.c.b,n.c);0!=n.b;){for((r=$H(0==n.b?null:(SL(0!=n.b),Ote(n,n.a.a)),113)).d.p=1,a=new Gf(r.e);a.a<a.c.c.length;)yEe(s,i=$H(J0(a),409)),0==(c=i.d).d.p&&n5(n,c,n.c.b,n.c);for(o=new Gf(r.b);o.a<o.c.c.length;)yEe(s,i=$H(J0(o),409)),0==(l=i.c).d.p&&n5(n,l,n.c.b,n.c)}return s}function BFe(e){var t,n,r,i,o;if(1!=(r=Uy(xB(XIe(e,(sKe(),ATt))))))for(xI(e,r*e.g,r*e.f),n=WM(PH((!e.c&&(e.c=new eG(zMt,e,9,9)),e.c),new Us)),o=DG(Gne(Sse(Uw(Ret,1),jKe,20,0,[(!e.n&&(e.n=new eG(UMt,e,1,7)),e.n),(!e.c&&(e.c=new eG(zMt,e,9,9)),e.c),n])));fIe(o);)(i=$H(z5(o),470)).Gg(r*i.Dg(),r*i.Eg()),i.Fg(r*i.Cg(),r*i.Bg()),(t=$H(i.We(rTt),8))&&(t.a*=r,t.b*=r)}function PFe(e,t,n,r,i){var o,a,s,l,c,u;for(o=new Gf(e.b);o.a<o.c.c.length;)for(c=0,u=(l=J1($H(J0(o),29).a)).length;c<u;++c)switch($H(vSe(s=l[c],(jVe(),bmt)),163).g){case 1:mLe(s),SZ(s,t),uAe(s,!0,r);break;case 3:XRe(s),SZ(s,n),uAe(s,!1,i)}for(a=new x2(e.b,0);a.b<a.d.gc();)0==(SL(a.b<a.d.gc()),$H(a.d.Xb(a.c=a.b++),29)).a.c.length&&cK(a)}function FFe(e,t){var n,r,i,o,a,s,l;if((n=t.Hh(e.a))&&null!=(l=EB(rge((!n.b&&(n.b=new qL((pKe(),ADt),zDt,n)),n.b),x9e)))){for(r=new Dv,a=0,s=(o=bFe(l,"\\w")).length;a<s;++a)vF(i=o[a],"##other")?GH(r,"!##"+iW(e,zte(t.Hj()))):vF(i,"##local")?r.c[r.c.length]=null:vF(i,w9e)?GH(r,iW(e,zte(t.Hj()))):r.c[r.c.length]=i;return r}return Eq(),Eq(),lnt}function $Fe(e,t){var n,r,i;return n=new Ge,(r=1==(r=$H(S4(MY(new LQ(null,new h0(e.f,16)),n),N9(new q,new X,new ie,new oe,Sse(Uw(Jnt,1),MYe,132,0,[(Hce(),Wnt),znt]))),21).gc())?1:0)<(i=1==(i=$H(S4(MY(new LQ(null,new h0(t.f,16)),n),N9(new q,new X,new ie,new oe,Sse(Uw(Jnt,1),MYe,132,0,[Wnt,znt]))),21).gc())?1:0)?-1:r==i?0:1}function jFe(e){var t,n,r,i,o,a,s,l,c,u,d,h;for(i=Hy(_B(vSe(s=e.i,(jVe(),hmt)))),u=0,r=0,c=new Gf(e.g);c.a<c.c.c.length;)o=(a=d5(l=$H(J0(c),17)))&&i&&Hy(_B(vSe(l,fmt))),h=l.d.i,a&&o?++r:a&&!o?++u:mK(h).e==s?++r:++u;for(n=new Gf(e.e);n.a<n.c.c.length;)o=(a=d5(t=$H(J0(n),17)))&&i&&Hy(_B(vSe(t,fmt))),d=t.c.i,a&&o?++u:a&&!o?++r:mK(d).e==s?++u:++r;return u-r}function HFe(e,t,n,r){this.e=e,this.k=$H(vSe(e,(lKe(),Oht)),304),this.g=N8(kst,i0e,10,t,0,1),this.b=N8(Ctt,sYe,333,t,7,1),this.a=N8(kst,i0e,10,t,0,1),this.d=N8(Ctt,sYe,333,t,7,1),this.j=N8(kst,i0e,10,t,0,1),this.i=N8(Ctt,sYe,333,t,7,1),this.p=N8(Ctt,sYe,333,t,7,1),this.n=N8(ytt,sYe,476,t,8,1),AC(this.n,(lR(),!1)),this.f=N8(ytt,sYe,476,t,8,1),AC(this.f,!0),this.o=n,this.c=r}function UFe(e,t){var n,r,i;if(!t.dc())if($H(t.Xb(0),286).d==(MTe(),Jct))Owe(e,t);else for(r=t.Kc();r.Ob();){switch((n=$H(r.Pb(),286)).d.g){case 5:lTe(e,n,Vfe(e,n));break;case 0:lTe(e,n,(i=(n.f-n.c+1-1)/2|0,n.c+i));break;case 4:lTe(e,n,Mee(e,n));break;case 2:Bpe(n),lTe(e,n,Mxe(n)?n.c:n.f);break;case 1:Bpe(n),lTe(e,n,Mxe(n)?n.f:n.c)}lSe(n.a)}}function QFe(e,t){var n,r,i,o,a;if(!t.e){for(t.e=!0,r=t.d.a.ec().Kc();r.Ob();)n=$H(r.Pb(),17),t.o&&t.d.a.gc()<=1?(a=new Nk((o=t.a.c)+(t.a.c+t.a.b-o)/2,t.b),RU($H(t.d.a.ec().Kc().Pb(),17).a,a)):(i=$H(LV(t.c,n),459)).b||i.c?fFe(e,n,t):e.d==(zce(),nbt)&&(i.d||i.e)&&IMe(e,t)&&t.d.a.gc()<=1?fWe(n,t):RBe(e,n,t);t.k&&e5(t.d,new En)}}function zFe(e,t,n,i,o,a){var s,l,c,u,d,h,f,p,g,m,v,A,b;for(l=(i+o)/2+a,m=n*r.Math.cos(l),v=n*r.Math.sin(l),A=m-t.g/2,b=v-t.f/2,Sne(t,A),Cne(t,b),h=e.a.jg(t),(g=2*r.Math.acos(n/n+e.c))<o-i?(f=g/h,s=(i+o-g)/2):(f=(o-i)/h,s=i),p=hBe(t),e.e&&(e.e.kg(e.d),e.e.lg(p)),u=new Gf(p);u.a<u.c.c.length;)c=$H(J0(u),33),d=e.a.jg(c),zFe(e,c,n+e.c,s,s+f*d,a),s+=f*d}function WFe(e,t,n){var r;switch(r=n.q.getMonth(),t){case 5:aM(e,Sse(Uw(Ytt,1),sYe,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[r]);break;case 4:aM(e,Sse(Uw(Ytt,1),sYe,2,6,[YYe,qYe,XYe,JYe,ZYe,eqe,tqe,nqe,rqe,iqe,oqe,aqe])[r]);break;case 3:aM(e,Sse(Uw(Ytt,1),sYe,2,6,["Jan","Feb","Mar","Apr",ZYe,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[r]);break;default:wee(e,r+1,t)}}function GFe(e,t){var n,r,i,o;if(kEe(t,"Network simplex",1),e.e.a.c.length<1)jCe(t);else{for(i=new Gf(e.e.a);i.a<i.c.c.length;)$H(J0(i),121).e=0;for((o=e.e.a.c.length>=40)&&wje(e),$Ue(e),_Le(e),n=Ahe(e),r=0;n&&r<e.f;)e$e(e,n,eDe(e,n)),n=Ahe(e),++r;o&&Zxe(e),e.a?gDe(e,cFe(e)):cFe(e),e.b=null,e.d=null,e.p=null,e.c=null,e.g=null,e.i=null,e.n=null,e.o=null,jCe(t)}}function VFe(e,t,n,r){var i,o,a,s,l,c,u,d;for(WP(s=new Nk(n,r),$H(vSe(t,(xie(),aat)),8)),d=new Gf(t.e);d.a<d.c.c.length;)zP((u=$H(J0(d),144)).d,s),GH(e.e,u);for(a=new Gf(t.c);a.a<a.c.c.length;){for(i=new Gf((o=$H(J0(a),282)).a);i.a<i.c.c.length;)zP($H(J0(i),559).d,s);GH(e.c,o)}for(c=new Gf(t.d);c.a<c.c.c.length;)zP((l=$H(J0(c),447)).d,s),GH(e.d,l)}function KFe(e,t){var n,r,i,o,a,s,l,c;for(l=new Gf(t.j);l.a<l.c.c.length;)for(i=new v6((s=$H(J0(l),11)).b);AD(i.a)||AD(i.b);)t!=(o=(n=(r=$H(AD(i.a)?J0(i.a):J0(i.b),17)).c==s?r.d:r.c).i)&&((c=$H(vSe(r,(jVe(),cvt)),19).a)<0&&(c=0),a=o.p,0==e.b[a]&&(r.d==n?(e.a[a]-=c+1,e.a[a]<=0&&e.c[a]>0&&RU(e.f,o)):(e.c[a]-=c+1,e.c[a]<=0&&e.a[a]>0&&RU(e.e,o))))}function YFe(e){var t,n,r,i,o,a,s;for(o=new fx($H(AV(new Be),62)),s=Bqe,n=new Gf(e.d);n.a<n.c.c.length;){for(s=(t=$H(J0(n),222)).c.c;0!=o.a.c&&(a=$H(xG(H7(o.a)),222)).c.c+a.c.b<s;)MJ(o.a,a);for(i=new Ff(new $P(new NR(new Pf(o.a).a).b));iC(i.a.a);)RU((r=$H(vL(i.a).cd(),222)).b,t),RU(t.b,r);xle(o.a,t,(lR(),mtt))}}function qFe(e,t,n){var r,i,o,a,s,l,c,u,d;for(o=new q6(t.c.length),c=new Gf(t);c.a<c.c.c.length;)a=$H(J0(c),10),GH(o,e.b[a.c.p][a.p]);for(vQe(e,o,n),d=null;d=eWe(o);)nHe(e,$H(d.a,233),$H(d.b,233),o);for(t.c=N8(Met,jKe,1,0,5,1),i=new Gf(o);i.a<i.c.c.length;)for(l=0,u=(s=(r=$H(J0(i),233)).d).length;l<u;++l)a=s[l],t.c[t.c.length]=a,e.a[a.c.p][a.p].a=uN(r.g,r.d[0]).a}function XFe(e,t){var n,r,i,o;if(0<(rN(e,14)?$H(e,14).gc():F3(e.Kc()))){if(1<(i=t)){for(--i,o=new Aa,r=e.Kc();r.Ob();)n=$H(r.Pb(),86),o=Gne(Sse(Uw(Ret,1),jKe,20,0,[o,new dm(n)]));return XFe(o,i)}if(i<0){for(o=new ba,r=e.Kc();r.Ob();)n=$H(r.Pb(),86),o=Gne(Sse(Uw(Ret,1),jKe,20,0,[o,new dm(n)]));if(0<(rN(o,14)?$H(o,14).gc():F3(o.Kc())))return XFe(o,i)}}return $H(tN(e.Kc()),86)}function JFe(){JFe=M,UOt=new Kk("DEFAULT_MINIMUM_SIZE",0),zOt=new Kk("MINIMUM_SIZE_ACCOUNTS_FOR_PADDING",1),HOt=new Kk("COMPUTE_PADDING",2),WOt=new Kk("OUTSIDE_NODE_LABELS_OVERHANG",3),GOt=new Kk("PORTS_OVERHANG",4),KOt=new Kk("UNIFORM_PORT_SPACING",5),VOt=new Kk("SPACE_EFFICIENT_PORT_LABELS",6),QOt=new Kk("FORCE_TABULAR_NODE_LABELS",7),jOt=new Kk("ASYMMETRICAL",8)}function ZFe(e,t){var n,r,i,o,a,s,l,c;if(t){if(n=(o=t.Tg())?zte(o).Nh().Jh(o):null){for(qme(e,t,n),l=0,c=(null==(i=t.Tg()).i&&Hje(i),i.i).length;l<c;++l)null==i.i&&Hje(i),r=i.i,(s=l>=0&&l<r.length?r[l]:null).Ij()&&!s.Jj()&&(rN(s,322)?Jve(e,$H(s,34),t,n):(a=$H(s,18)).Bb&l6e&&sxe(e,a,t,n));t.kh()&&$H(n,49).vh($H(t,49).qh())}return n}return null}function e$e(e,t,n){var r,i,o;if(!t.f)throw jv(new Py("Given leave edge is no tree edge."));if(n.f)throw jv(new Py("Given enter edge is a tree edge already."));for(t.f=!1,eN(e.p,t),n.f=!0,_G(e.p,n),r=n.e.e-n.d.e-n.a,Fke(e,n.e,t)||(r=-r),o=new Gf(e.e.a);o.a<o.c.c.length;)Fke(e,i=$H(J0(o),121),t)||(i.e+=r);e.j=1,Jy(e.c),gOe(e,$H(J0(new Gf(e.e.a)),121)),pze(e)}function t$e(e,t){var n,r,i,o,a,s;if((s=$H(vSe(t,(jVe(),evt)),98))==(Kxe(),Gkt)||s==Wkt)for(i=new Nk(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a).b,a=new Gf(e.a);a.a<a.c.c.length;)(o=$H(J0(a),10)).k==(oCe(),xst)&&((n=$H(vSe(o,(lKe(),Kdt)),61))!=(bGe(),aOt)&&n!=COt||(r=Uy(xB(vSe(o,_ht))),s==Gkt&&(r*=i),o.n.b=r-$H(vSe(o,Jmt),8).b,qae(o,!1,!0)))}function n$e(e,t,n,r){var i,o,a,s,l,c,u,d,h,f;if(Yte(e,t,n),o=t[n],f=r?(bGe(),COt):(bGe(),aOt),vN(t.length,n,r)){for(U6(e,i=t[r?n-1:n+1],r?(ire(),HAt):(ire(),jAt)),u=0,h=(l=o).length;u<h;++u)NAe(e,a=l[u],f);for(U6(e,o,r?(ire(),jAt):(ire(),HAt)),c=0,d=(s=i).length;c<d;++c)(a=s[c]).e||NAe(e,a,_he(f))}else for(c=0,d=(s=o).length;c<d;++c)NAe(e,a=s[c],f);return!1}function r$e(e,t,n,r){var i,o,a,s,l;s=ife(t,n),(n==(bGe(),EOt)||n==COt)&&(s=rN(s,152)?a6($H(s,152)):rN(s,131)?$H(s,131).a:rN(s,54)?new cy(s):new CE(s)),a=!1;do{for(i=!1,o=0;o<s.gc()-1;o++)$Se(e,$H(s.Xb(o),11),$H(s.Xb(o+1),11),r)&&(a=!0,b1(e.a,$H(s.Xb(o),11),$H(s.Xb(o+1),11)),l=$H(s.Xb(o+1),11),s._c(o+1,$H(s.Xb(o),11)),s._c(o,l),i=!0)}while(i);return a}function i$e(e,t,n){var r,i,o,a,s,l,c,u,d,h,f,p;if(!vI(e.e))return $H(YOe(e,t,n),72);if(t!=n&&(a=(f=(i=$H(e.g,119))[n]).ak(),MLe(e.e,a))){for(p=iLe(e.e.Tg(),a),l=-1,s=-1,r=0,c=0,d=t>n?t:n;c<=d;++c)c==n?s=r++:(o=i[c],u=p.rl(o.ak()),c==t&&(l=c!=d||u?r:r-1),u&&++r);return h=$H(The(e,t,n),72),s!=l&&IA(e,new y7(e.e,7,a,the(s),f.dd(),l)),h}return $H(The(e,t,n),72)}function o$e(e,t){var n,r,i,o,a,s;for(kEe(t,"Port order processing",1),s=$H(vSe(e,(jVe(),avt)),421),n=new Gf(e.b);n.a<n.c.c.length;)for(i=new Gf($H(J0(n),29).a);i.a<i.c.c.length;)r=$H(J0(i),10),o=$H(vSe(r,evt),98),a=r.j,o==(Kxe(),zkt)||o==Gkt||o==Wkt?(Eq(),vD(a,sct)):o!=Kkt&&o!=Ykt&&(Eq(),vD(a,cct),IAe(a),s==(z9(),PAt)&&vD(a,lct)),r.i=!0,eOe(r);jCe(t)}function a$e(e){var t,n,i,o,a,s,l,c;for(c=new Nv,t=new FA,s=e.Kc();s.Ob();)o=$H(s.Pb(),10),l=OR(aS(new HA,o),t),yke(c.f,o,l);for(a=e.Kc();a.Ob();)for(i=new aW(XN(ufe(o=$H(a.Pb(),10)).a.Kc(),new u));fIe(i);)d5(n=$H(z5(i),17))||zRe(iS(rS(nS(oS(new jA,r.Math.max(1,$H(vSe(n,(jVe(),uvt)),19).a)),1),$H(LV(c,n.c.i),121)),$H(LV(c,n.d.i),121)));return t}function s$e(){s$e=M,dyt=fQ(new $2,(ASe(),Fat),(uKe(),mlt)),fyt=fQ(new $2,Pat,ylt),pyt=Gz(fQ(new $2,Pat,Rlt),$at,Nlt),uyt=Gz(fQ(fQ(new $2,Pat,ult),Fat,dlt),$at,hlt),gyt=ame(ame(FS(Gz(fQ(new $2,Lat,zlt),$at,Qlt),Fat),Ult),Wlt),hyt=Gz(new $2,$at,vlt),lyt=Gz(fQ(fQ(fQ(new $2,Bat,xlt),Fat,Slt),Fat,Clt),$at,Elt),cyt=Gz(fQ(fQ(new $2,Fat,Clt),Fat,olt),$at,ilt)}function l$e(e,t,n,r,i,o){var a,s,l,c,u,d;for(a=uCe(t,l=yle(t)-yle(e)),s=xD(0,0,0);l>=0&&(!Cye(e,a)||(l<22?s.l|=1<<l:l<44?s.m|=1<<l-22:s.h|=1<<l-44,0!=e.l||0!=e.m||0!=e.h));)c=a.m,u=a.h,d=a.l,a.h=u>>>1,a.m=c>>>1|(1&u)<<21,a.l=d>>>1|(1&c)<<21,--l;return n&&kle(s),o&&(r?(dtt=ile(e),i&&(dtt=lse(dtt,(W9(),ptt)))):dtt=xD(e.l,e.m,e.h)),s}function c$e(e,t){var n,r,i,o,a,s,l,c,u,d;for(c=e.e[t.c.p][t.p]+1,l=t.c.a.c.length+1,s=new Gf(e.a);s.a<s.c.c.length;){for(a=$H(J0(s),11),d=0,o=0,i=DG(Gne(Sse(Uw(Ret,1),jKe,20,0,[new jp(a),new Up(a)])));fIe(i);)(r=$H(z5(i),11)).i.c==t.c&&(d+=dN(e,r.i)+1,++o);n=d/o,(u=a.j)==(bGe(),aOt)?e.f[a.p]=n<c?e.c-n:e.b+(l-n):u==COt&&(e.f[a.p]=n<c?e.b+n:e.c-(l-n))}}function u$e(e,t,n){var r,i,o,a;if(null==e)throw jv(new xw(QKe));for(r=(o=e.length)>0&&(d0(0,e.length),45==e.charCodeAt(0)||(d0(0,e.length),43==e.charCodeAt(0)))?1:0;r<o;r++)if(-1==eme((d0(r,e.length),e.charCodeAt(r))))throw jv(new xw(Rqe+e+'"'));if(i=(a=parseInt(e,10))<t,isNaN(a))throw jv(new xw(Rqe+e+'"'));if(i||a>n)throw jv(new xw(Rqe+e+'"'));return a}function d$e(e){var t,n,i,o,a,s;for(a=new YE,o=new Gf(e.a);o.a<o.c.c.length;)Gh(i=$H(J0(o),112),i.f.c.length),Vh(i,i.k.c.length),0==i.i&&(i.o=0,n5(a,i,a.c.b,a.c));for(;0!=a.b;)for(n=(i=$H(0==a.b?null:(SL(0!=a.b),Ote(a,a.a.a)),112)).o+1,t=new Gf(i.f);t.a<t.c.c.length;)Kh(s=$H(J0(t),129).a,r.Math.max(s.o,n)),Vh(s,s.i-1),0==s.i&&n5(a,s,a.c.b,a.c)}function h$e(e){var t,n,r,i,o,a,s,l;for(a=new Gf(e);a.a<a.c.c.length;){for(o=$H(J0(a),79),s=(r=SEe($H(Gte((!o.b&&(o.b=new lF(LMt,o,4,7)),o.b),0),82))).i,l=r.j,CI(i=$H(Gte((!o.a&&(o.a=new eG(PMt,o,6,6)),o.a),0),202),i.j+s,i.k+l),SI(i,i.b+s,i.c+l),n=new ON((!i.a&&(i.a=new MN(DMt,i,5)),i.a));n.e!=n.i.gc();)_I(t=$H(bve(n),469),t.a+s,t.b+l);Yie($H(XIe(o,(sKe(),kCt)),74),s,l)}}function f$e(e){switch(e){case 100:return vKe(set,!0);case 68:return vKe(set,!1);case 119:return vKe(cet,!0);case 87:return vKe(cet,!1);case 115:return vKe(uet,!0);case 83:return vKe(uet,!1);case 99:return vKe(det,!0);case 67:return vKe(det,!1);case 105:return vKe(het,!0);case 73:return vKe(het,!1);default:throw jv(new fy(aet+e.toString(16)))}}function p$e(e){var t,n,i,o,a;switch(o=$H(NQ(e.a,0),10),t=new MAe(e),GH(e.a,t),t.o.a=r.Math.max(1,o.o.a),t.o.b=r.Math.max(1,o.o.b),t.n.a=o.n.a,t.n.b=o.n.b,$H(vSe(o,(lKe(),Kdt)),61).g){case 4:t.n.a+=2;break;case 1:t.n.b+=2;break;case 2:t.n.a-=2;break;case 3:t.n.b-=2}return CZ(i=new CCe,t),EZ(n=new hX,a=$H(NQ(o.j,0),11)),xZ(n,i),zP(bM(i.n),a.n),zP(bM(i.a),a.a),t}function g$e(e,t,n,r,i){n&&(!r||(e.c-e.b&e.a.length-1)>1)&&1==t&&$H(e.a[e.b],10).k==(oCe(),Est)?lje($H(e.a[e.b],10),(Wye(),ykt)):r&&(!n||(e.c-e.b&e.a.length-1)>1)&&1==t&&$H(e.a[e.c-1&e.a.length-1],10).k==(oCe(),Est)?lje($H(e.a[e.c-1&e.a.length-1],10),(Wye(),wkt)):2==(e.c-e.b&e.a.length-1)?(lje($H(wle(e),10),(Wye(),ykt)),lje($H(wle(e),10),wkt)):sNe(e,i),a4(e)}function m$e(e,t,n){var i,o,a,s,l;for(a=0,o=new ON((!e.a&&(e.a=new eG(QMt,e,10,11)),e.a));o.e!=o.i.gc();)s="",0==(!(i=$H(bve(o),33)).n&&(i.n=new eG(UMt,i,1,7)),i.n).i||(s=$H(Gte((!i.n&&(i.n=new eG(UMt,i,1,7)),i.n),0),137).a),Hae(l=new rce(a++,t,s),i),lle(l,(HQe(),swt),i),l.e.b=i.j+i.f/2,l.f.a=r.Math.max(i.g,1),l.e.a=i.i+i.g/2,l.f.b=r.Math.max(i.f,1),RU(t.b,l),yke(n.f,i,l)}function v$e(e){var t,n,r,i,o;r=$H(vSe(e,(lKe(),fht)),33),o=$H(XIe(r,(jVe(),Fmt)),174).Hc((vge(),POt)),e.e||(i=$H(vSe(e,Xdt),21),t=new Nk(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),i.Hc((dBe(),udt))?(Yve(r,evt,(Kxe(),Wkt)),BGe(r,t.a,t.b,!1,!0)):Hy(_B(XIe(r,$mt)))||BGe(r,t.a,t.b,!0,!0)),Yve(r,Fmt,o?Jhe(POt):new YF(n=$H(V_(YOt),9),$H(EP(n,n.length),9),0))}function A$e(e,t,n){var r,i,o,a;if(t[0]>=e.length)return n.o=0,!0;switch(cY(e,t[0])){case 43:i=1;break;case 45:i=-1;break;default:return n.o=0,!0}if(++t[0],o=t[0],0==(a=zOe(e,t))&&t[0]==o)return!1;if(t[0]<e.length&&58==cY(e,t[0])){if(r=60*a,++t[0],o=t[0],0==(a=zOe(e,t))&&t[0]==o)return!1;r+=a}else(r=a)<24&&t[0]-o<=2?r*=60:r=r%100+60*(r/100|0);return r*=i,n.o=-r,!0}function b$e(e){var t,n,r,i,o,a,s;for(i=new Dv,r=new aW(XN(ufe(e.b).a.Kc(),new u));fIe(r);)d5(n=$H(z5(r),17))&&GH(i,new y6(n,m7(e,n.c),m7(e,n.d)));for(s=new Bf(new kf(e.e).a.vc().Kc());s.a.Ob();)t=$H(s.a.Pb(),42),(o=$H(t.dd(),113)).d.p=0;for(a=new Bf(new kf(e.e).a.vc().Kc());a.a.Ob();)t=$H(a.a.Pb(),42),0==(o=$H(t.dd(),113)).d.p&&GH(e.d,LFe(e,o))}function y$e(e){var t,n,r,i,o;for(o=GJ(e),i=new ON((!e.e&&(e.e=new lF(BMt,e,7,4)),e.e));i.e!=i.i.gc();)if(r=$H(bve(i),79),!Cte(SEe($H(Gte((!r.c&&(r.c=new lF(LMt,r,5,8)),r.c),0),82)),o))return!0;for(n=new ON((!e.d&&(e.d=new lF(BMt,e,8,5)),e.d));n.e!=n.i.gc();)if(t=$H(bve(n),79),!Cte(SEe($H(Gte((!t.b&&(t.b=new lF(LMt,t,4,7)),t.b),0),82)),o))return!0;return!1}function w$e(e){var t,n,i,o,a,s,l,c;for(c=new bb,l=null,n=$H(d3(t=sve(e,0)),8),o=$H(d3(t),8);t.b!=t.d.c;)l=n,n=o,o=$H(d3(t),8),a=rte(WP(new Nk(l.a,l.b),n)),s=rte(WP(new Nk(o.a,o.b),n)),i=10,i=r.Math.min(i,r.Math.abs(a.a+a.b)/2),i=r.Math.min(i,r.Math.abs(s.a+s.b)/2),a.a=jU(a.a)*i,a.b=jU(a.b)*i,s.a=jU(s.a)*i,s.b=jU(s.b)*i,RU(c,zP(a,n)),RU(c,zP(s,n));return c}function _$e(e,t,n,r){var i,o,a,s,l;return a=e.eh(),i=null,(l=e.Zg())?!t||pFe(e,t,n).Bb&$qe?l=null:(r=Pve(l.Vk(),e,r),e.uh(null),i=t.fh()):(a&&(l=a.fh()),t&&(i=t.fh())),l!=i&&l&&l.Zk(e),s=e.Vg(),e.Rg(t,n),l!=i&&i&&i.Yk(e),e.Lg()&&e.Mg()&&(a&&s>=0&&s!=n&&(o=new JW(e,1,s,a,null),r?r.Ei(o):r=o),n>=0&&(o=new JW(e,1,n,s==n?a:null,t),r?r.Ei(o):r=o)),r}function x$e(e){var t,n,r;if(null==e.b){if(r=new Ew,null!=e.i&&(rM(r,e.i),r.a+=":"),256&e.f){for(256&e.f&&null!=e.a&&(nq(e.i)||(r.a+="//"),rM(r,e.a)),null!=e.d&&(r.a+="/",rM(r,e.d)),16&e.f&&(r.a+="/"),t=0,n=e.j.length;t<n;t++)0!=t&&(r.a+="/"),rM(r,e.j[t]);null!=e.g&&(r.a+="?",rM(r,e.g))}else rM(r,e.a);null!=e.e&&(r.a+="#",rM(r,e.e)),e.b=r.a}return e.b}function E$e(e,t){var n,r,i,o,a,s;for(i=new Gf(t.a);i.a<i.c.c.length;)rN(o=vSe(r=$H(J0(i),10),(lKe(),fht)),11)&&(s=Aje(t,r,(a=$H(o,11)).o.a,a.o.b),a.n.a=s.a,a.n.b=s.b,Hke(a,$H(vSe(r,Kdt),61)));n=new Nk(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a),$H(vSe(t,(lKe(),Xdt)),21).Hc((dBe(),udt))?(lle(e,(jVe(),evt),(Kxe(),Wkt)),$H(vSe(mK(e),Xdt),21).Fc(fdt),dze(e,n,!1)):dze(e,n,!0)}function S$e(e,t,n){var r,i,o,a,s;kEe(n,"Minimize Crossings "+e.a,1),r=0==t.b.c.length||!yx(OY(new LQ(null,new h0(t.b,16)),new ip(new Do))).sd((fS(),Znt)),s=1==t.b.c.length&&1==$H(NQ(t.b,0),29).a.c.length,o=UO(vSe(t,(jVe(),smt)))===UO((ode(),gkt)),r||s&&!o||(Ece(i=sLe(e,t),(a=$H(Rve(i,0),214)).c.Rf()?a.c.Lf()?new zg(e):new Wg(e):new Qg(e)),ide(e)),jCe(n)}function C$e(e,t,n,r){var i,o,a,s;if(s=fz(rfe(EYe,nY(fz(rfe(null==t?0:Jle(t),SYe)),15))),i=fz(rfe(EYe,nY(fz(rfe(null==n?0:Jle(n),SYe)),15))),a=Xie(e,t,s),o=qie(e,n,i),a&&i==a.a&&hK(n,a.g))return n;if(o)throw jv(new Py("key already present: "+n));return a&&INe(e,a),o&&INe(e,o),Yke(e,new HK(n,i,t,s),o),o&&(o.e=null,o.c=null),a&&(a.e=null,a.c=null),Hwe(e),a?a.g:null}function T$e(e,t,n){var r,i,o,a,s;for(o=0;o<t;o++){for(r=0,s=o+1;s<t;s++)r=nfe(nfe(rfe(e1(e[o],zqe),e1(e[s],zqe)),e1(n[o+s],zqe)),e1(fz(r),zqe)),n[o+s]=fz(r),r=yW(r,32);n[o+t]=fz(r)}for(Jie(n,n,t<<1),r=0,i=0,a=0;i<t;++i,a++)r=nfe(nfe(rfe(e1(e[i],zqe),e1(e[i],zqe)),e1(n[a],zqe)),e1(fz(r),zqe)),n[a]=fz(r),r=nfe(r=yW(r,32),e1(n[++a],zqe)),n[a]=fz(r),r=yW(r,32);return n}function k$e(e,t,n){var i,o,a,s,l,c,u,d;if(!l3(t)){for(c=Uy(xB(ege(n.c,(jVe(),Dvt)))),!(u=$H(ege(n.c,Ivt),142))&&(u=new ub),i=n.a,o=null,l=t.Kc();l.Ob();)s=$H(l.Pb(),11),d=0,o?(d=c,d+=o.o.b):d=u.d,a=OR(aS(new HA,s),e.f),VK(e.k,s,a),zRe(iS(rS(nS(oS(new jA,0),CJ(r.Math.ceil(d))),i),a)),o=s,i=a;zRe(iS(rS(nS(oS(new jA,0),CJ(r.Math.ceil(u.a+o.o.b))),i),n.d))}}function O$e(e,t,n,r,i,o,a,s){var l,c,u;return u=!1,c=o-n.s,l=n.t-t.f+rUe(n,c,!1).a,!(r.g+s>c)&&(l+s+rUe(r,c,!1).a<=t.b&&(g7(n,o-n.s),n.c=!0,g7(r,o-n.s),_Ae(r,n.s,n.t+n.d+s),r.k=!0,Noe(n.q,r),u=!0,i&&(Zne(t,r),r.j=t,e.c.length>a&&(_we((u0(a,e.c.length),$H(e.c[a],200)),r),0==(u0(a,e.c.length),$H(e.c[a],200)).a.c.length&&s6(e,a)))),u)}function M$e(e,t){var n,r,i,o,a;if(kEe(t,"Partition midprocessing",1),i=new gJ,qE(OY(new LQ(null,new h0(e.a,16)),new gr),new ug(i)),0!=i.d){for(a=$H(S4(i0(new LQ(null,(i.i||(i.i=new jN(i,i.c))).Nc())),v7(new U,new H,new re,Sse(Uw(Jnt,1),MYe,132,0,[(Hce(),znt)]))),15),n=$H((r=a.Kc()).Pb(),19);r.Ob();)o=$H(r.Pb(),19),WNe($H(l6(i,n),21),$H(l6(i,o),21)),n=o;jCe(t)}}function I$e(e,t,n){var r,i,o,a,s;if(0==t.p){for(t.p=1,(i=n)||(i=new nO(new Dv,new YF(r=$H(V_(FOt),9),$H(EP(r,r.length),9),0))),$H(i.a,15).Fc(t),t.k==(oCe(),xst)&&$H(i.b,21).Fc($H(vSe(t,(lKe(),Kdt)),61)),a=new Gf(t.j);a.a<a.c.c.length;)for(o=$H(J0(a),11),s=DG(Gne(Sse(Uw(Ret,1),jKe,20,0,[new jp(o),new Up(o)])));fIe(s);)I$e(e,$H(z5(s),11).i,i);return i}return null}function D$e(e,t){var n,r,i,o,a;if(e.Ab)if(e.Ab){if((a=e.Ab.i)>0)if(i=$H(e.Ab.g,1934),null==t){for(o=0;o<a;++o)if(null==(n=i[o]).d)return n}else for(o=0;o<a;++o)if(vF(t,(n=i[o]).d))return n}else if(null==t){for(r=new ON(e.Ab);r.e!=r.i.gc();)if(null==(n=$H(bve(r),590)).d)return n}else for(r=new ON(e.Ab);r.e!=r.i.gc();)if(vF(t,(n=$H(bve(r),590)).d))return n;return null}function N$e(e,t){var n,r,i,o,a,s,l;if(null==(l=_B(vSe(t,(CIe(),Dwt))))||(bK(l),l)){for(RMe(e,t),i=new Dv,s=sve(t.b,0);s.b!=s.d.c;)(n=NTe(e,$H(d3(s),86),null))&&(Hae(n,t),i.c[i.c.length]=n);if(e.a=null,e.b=null,i.c.length>1)for(r=new Gf(i);r.a<r.c.c.length;)for(o=0,a=sve((n=$H(J0(r),135)).b,0);a.b!=a.d.c;)$H(d3(a),86).g=o++;return i}return o6(Sse(Uw(Uyt,1),ZJe,135,0,[t]))}function R$e(e,t,n,r,i){var o,a,s,l,c,u,d,h,f,p,g,m,v;rie(f=O3(e,Hse(t),i),L2(i,H6e)),g=R2(p=i,z6e),rCe(new Im(f).a,g),m=R2(p,"endPoint"),nCe(new Lm(f).a,m),v=D2(p,R6e),Exe(new Fm(f).a,v),d=L2(i,B6e),HP((o=new lO(e,f)).a,o.b,d),h=L2(i,L6e),UP((a=new cO(e,f)).a,a.b,h),c=D2(i,F6e),Fye((s=new uO(n,f)).b,s.a,c),u=D2(i,P6e),$ye((l=new dO(r,f)).b,l.a,u)}function L$e(e,t,n){var r,i,o,a,s;switch(s=null,t.g){case 1:for(i=new Gf(e.j);i.a<i.c.c.length;)if(Hy(_B(vSe(r=$H(J0(i),11),(lKe(),Zdt)))))return r;lle(s=new CCe,(lKe(),Zdt),(lR(),!0));break;case 2:for(a=new Gf(e.j);a.a<a.c.c.length;)if(Hy(_B(vSe(o=$H(J0(a),11),(lKe(),bht)))))return o;lle(s=new CCe,(lKe(),bht),(lR(),!0))}return s&&(CZ(s,e),Hke(s,n),AAe(s.n,e.o,n)),s}function B$e(e,t){var n,i,o,a,s,l;for(l=-1,s=new YE,i=new v6(e.b);AD(i.a)||AD(i.b);){for(n=$H(AD(i.a)?J0(i.a):J0(i.b),17),l=r.Math.max(l,Uy(xB(vSe(n,(jVe(),imt))))),n.c==e?qE(OY(new LQ(null,new h0(n.b,16)),new dn),new Jp(s)):qE(OY(new LQ(null,new h0(n.b,16)),new hn),new Zp(s)),a=sve(s,0);a.b!=a.d.c;)IL(o=$H(d3(a),70),(lKe(),zdt))||lle(o,zdt,n);pse(t,s),Aq(s)}return l}function P$e(e,t,n,r,i){var o,a,s,l;Fh(o=new MAe(e),(oCe(),Tst)),lle(o,(jVe(),evt),(Kxe(),Wkt)),lle(o,(lKe(),fht),t.c.i),lle(a=new CCe,fht,t.c),Hke(a,i),CZ(a,o),lle(t.c,wht,o),Fh(s=new MAe(e),Tst),lle(s,evt,Wkt),lle(s,fht,t.d.i),lle(l=new CCe,fht,t.d),Hke(l,i),CZ(l,s),lle(t.d,wht,s),EZ(t,a),xZ(t,l),IZ(0,n.c.length),xC(n.c,0,o),r.c[r.c.length]=s,lle(o,$dt,the(1)),lle(s,$dt,the(1))}function F$e(e,t,n,i,o){var a,s,l,c,u;l=o?i.b:i.a,FE(e.a,i)||(u=l>n.s&&l<n.c,c=!1,0!=n.e.b&&0!=n.j.b&&(c|=r.Math.abs(l-Uy(xB(pL(n.e))))<uZe&&r.Math.abs(l-Uy(xB(pL(n.j))))<uZe,c|=r.Math.abs(l-Uy(xB(gL(n.e))))<uZe&&r.Math.abs(l-Uy(xB(gL(n.j))))<uZe),(u||c)&&((s=$H(vSe(t,(jVe(),mmt)),74))||(s=new bb,lle(t,mmt,s)),n5(s,a=new hI(i),s.c.b,s.c),_G(e.a,a)))}function $$e(e,t,n,r){var i,o,a,s,l,c,u;if(GOe(e,t,n,r))return!0;for(a=new Gf(t.f);a.a<a.c.c.length;){switch(o=$H(J0(a),324),s=!1,c=(l=e.j-t.j+n)+t.o,i=(u=e.k-t.k+r)+t.p,o.a.g){case 0:s=kce(e,l+o.b.a,0,l+o.c.a,u-1);break;case 1:s=kce(e,c,u+o.b.a,e.o-1,u+o.c.a);break;case 2:s=kce(e,l+o.b.a,i,l+o.c.a,e.p-1);break;default:s=kce(e,0,u+o.b.a,l-1,u+o.c.a)}if(s)return!0}return!1}function j$e(e,t){var n,r,i,o,a,s,l,c;for(o=new Gf(t.b);o.a<o.c.c.length;)for(l=new Gf($H(J0(o),29).a);l.a<l.c.c.length;){for(s=$H(J0(l),10),c=new Dv,a=0,r=new aW(XN(cfe(s).a.Kc(),new u));fIe(r);)d5(n=$H(z5(r),17))||!d5(n)&&n.c.i.c==n.d.i.c||((i=$H(vSe(n,(jVe(),dvt)),19).a)>a&&(a=i,c.c=N8(Met,jKe,1,0,5,1)),i==a&&GH(c,new nO(n.c.i,n)));Eq(),vD(c,e.c),bz(e.b,s.p,c)}}function H$e(e,t){var n,r,i,o,a,s,l,c;for(o=new Gf(t.b);o.a<o.c.c.length;)for(l=new Gf($H(J0(o),29).a);l.a<l.c.c.length;){for(s=$H(J0(l),10),c=new Dv,a=0,r=new aW(XN(ufe(s).a.Kc(),new u));fIe(r);)d5(n=$H(z5(r),17))||!d5(n)&&n.c.i.c==n.d.i.c||((i=$H(vSe(n,(jVe(),dvt)),19).a)>a&&(a=i,c.c=N8(Met,jKe,1,0,5,1)),i==a&&GH(c,new nO(n.d.i,n)));Eq(),vD(c,e.c),bz(e.f,s.p,c)}}function U$e(e){DS(e,new xEe(m_(h_(g_(p_(new ms,u5e),"ELK Box"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges."),new Bs))),o2(e,u5e,KJe,QSt),o2(e,u5e,mZe,15),o2(e,u5e,gZe,the(0)),o2(e,u5e,O4e,vve(PSt)),o2(e,u5e,SZe,vve($St)),o2(e,u5e,EZe,vve(HSt)),o2(e,u5e,VJe,c5e),o2(e,u5e,yZe,vve(FSt)),o2(e,u5e,$Ze,vve(jSt)),o2(e,u5e,d5e,vve(LSt)),o2(e,u5e,o3e,vve(BSt))}function Q$e(e,t){var n,r,i,o,a,s,l,c,u;if(a=(i=e.i).o.a,o=i.o.b,a<=0&&o<=0)return bGe(),SOt;switch(c=e.n.a,u=e.n.b,s=e.o.a,n=e.o.b,t.g){case 2:case 1:if(c<0)return bGe(),COt;if(c+s>a)return bGe(),aOt;break;case 4:case 3:if(u<0)return bGe(),sOt;if(u+n>o)return bGe(),EOt}return(l=(c+s/2)/a)+(r=(u+n/2)/o)<=1&&l-r<=0?(bGe(),COt):l+r>=1&&l-r>=0?(bGe(),aOt):r<.5?(bGe(),sOt):(bGe(),EOt)}function z$e(e,t){var n,r,i,o,a,s,l,c,u,d,h,f;for(n=!1,l=Uy(xB(vSe(t,(jVe(),kvt)))),h=BYe*l,i=new Gf(t.b);i.a<i.c.c.length;)for(r=$H(J0(i),29),o=$H(J0(s=new Gf(r.a)),10),c=hG(e.a[o.p]);s.a<s.c.c.length;)a=$H(J0(s),10),c!=(u=hG(e.a[a.p]))&&(d=BD(e.b,o,a),o.n.b+o.o.b+o.d.a+c.a+d>a.n.b-a.d.d+u.a+h&&(f=c.g+u.g,u.a=(u.g*u.a+c.g*c.a)/f,u.g=f,c.f=u,n=!0)),o=a,c=u;return n}function W$e(e,t,n,r,i,o,a){var s,l,c,u,d;for(d=new dI,l=t.Kc();l.Ob();)for(u=new Gf($H(l.Pb(),839).wf());u.a<u.c.c.length;)UO((c=$H(J0(u),181)).We((sKe(),pCt)))===UO((Lte(),WTt))&&(nFe(d,c,!1,r,i,o,a),CTe(e,d));for(s=n.Kc();s.Ob();)for(u=new Gf($H(s.Pb(),839).wf());u.a<u.c.c.length;)UO((c=$H(J0(u),181)).We((sKe(),pCt)))===UO((Lte(),zTt))&&(nFe(d,c,!0,r,i,o,a),CTe(e,d))}function G$e(e,t,n){var r,i,o,a,s,l,c;for(a=new ON((!e.a&&(e.a=new eG(QMt,e,10,11)),e.a));a.e!=a.i.gc();)for(i=new aW(XN(fNe(o=$H(bve(a),33)).a.Kc(),new u));fIe(i);)JMe(r=$H(z5(i),79))||JMe(r)||KOe(r)||(l=$H(HO(OX(n.f,o)),86),c=$H(LV(n,SEe($H(Gte((!r.c&&(r.c=new lF(LMt,r,5,8)),r.c),0),82))),86),l&&c&&(lle(s=new zq(l,c),(HQe(),swt),r),Hae(s,r),RU(l.d,s),RU(c.b,s),RU(t.a,s)))}function V$e(e,t){var n,i,o,a,s,l,c;for(l=$H($H(l6(e.r,t),21),84).Kc();l.Ob();)(i=(s=$H(l.Pb(),111)).c?GU(s.c):0)>0?s.a?i>(c=s.b.rf().b)&&(e.v||1==s.c.d.c.length?(a=(i-c)/2,s.d.d=a,s.d.a=a):(n=($H(NQ(s.c.d,0),181).rf().b-c)/2,s.d.d=r.Math.max(0,n),s.d.a=i-n-c)):s.d.a=e.t+i:jW(e.u)&&((o=PEe(s.b)).d<0&&(s.d.d=-o.d),o.d+o.a>s.b.rf().b&&(s.d.a=o.d+o.a-s.b.rf().b))}function K$e(e,t){var n;switch(mee(e)){case 6:return WO(t);case 7:return zO(t);case 8:return QO(t);case 3:return Array.isArray(t)&&!((n=mee(t))>=14&&n<=16);case 11:return null!=t&&typeof t===NKe;case 12:return null!=t&&(typeof t===OKe||typeof t==NKe);case 0:return Kve(t,e.__elementTypeId$);case 2:return RG(t)&&!(t.im===O);case 1:return RG(t)&&!(t.im===O)||Kve(t,e.__elementTypeId$);default:return!0}}function Y$e(e,t){var n,i,o,a;return i=r.Math.min(r.Math.abs(e.c-(t.c+t.b)),r.Math.abs(e.c+e.b-t.c)),a=r.Math.min(r.Math.abs(e.d-(t.d+t.a)),r.Math.abs(e.d+e.a-t.d)),(n=r.Math.abs(e.c+e.b/2-(t.c+t.b/2)))>e.b/2+t.b/2||(o=r.Math.abs(e.d+e.a/2-(t.d+t.a/2)))>e.a/2+t.a/2?1:0==n&&0==o?0:0==n?a/o+1:0==o?i/n+1:r.Math.min(i/n,a/o)+1}function q$e(e,t){var n,i,o,a,s,l;return(o=tre(e))==(l=tre(t))?e.e==t.e&&e.a<54&&t.a<54?e.f<t.f?-1:e.f>t.f?1:0:(i=e.e-t.e,(n=(e.d>0?e.d:r.Math.floor((e.a-1)*Qqe)+1)-(t.d>0?t.d:r.Math.floor((t.a-1)*Qqe)+1))>i+1?o:n<i-1?-o:(!e.c&&(e.c=Aue(e.f)),a=e.c,!t.c&&(t.c=Aue(t.f)),s=t.c,i<0?a=Dee(a,bHe(-i)):i>0&&(s=Dee(s,bHe(i))),Zge(a,s))):o<l?-1:1}function X$e(e,t){var n,r,i,o,a,s,l;for(o=0,s=0,l=0,i=new Gf(e.f.e);i.a<i.c.c.length;)t!=(r=$H(J0(i),144))&&(o+=a=e.i[t.b][r.b],(n=G8(t.d,r.d))>0&&e.d!=(H9(),Oat)&&(s+=a*(r.d.a+e.a[t.b][r.b]*(t.d.a-r.d.a)/n)),n>0&&e.d!=(H9(),Tat)&&(l+=a*(r.d.b+e.a[t.b][r.b]*(t.d.b-r.d.b)/n)));switch(e.d.g){case 1:return new Nk(s/o,t.d.b);case 2:return new Nk(t.d.a,l/o);default:return new Nk(s/o,l/o)}}function J$e(e,t){var n,r,i,o;if(Qce(),o=$H(vSe(e.i,(jVe(),evt)),98),0!=e.j.g-t.j.g||o!=(Kxe(),zkt)&&o!=Gkt&&o!=Wkt)return 0;if(o==(Kxe(),zkt)&&(n=$H(vSe(e,tvt),19),r=$H(vSe(t,tvt),19),n&&r&&0!=(i=n.a-r.a)))return i;switch(e.j.g){case 1:return She(e.n.a,t.n.a);case 2:return She(e.n.b,t.n.b);case 3:return She(t.n.a,e.n.a);case 4:return She(t.n.b,e.n.b);default:throw jv(new Fy(n0e))}}function Z$e(e){var t,n,r,i,o;for(GH(o=new q6((!e.a&&(e.a=new MN(DMt,e,5)),e.a).i+2),new Nk(e.j,e.k)),qE(new LQ(null,(!e.a&&(e.a=new MN(DMt,e,5)),new h0(e.a,16))),new Tm(o)),GH(o,new Nk(e.b,e.c)),t=1;t<o.c.length-1;)u0(t-1,o.c.length),n=$H(o.c[t-1],8),u0(t,o.c.length),r=$H(o.c[t],8),u0(t+1,o.c.length),i=$H(o.c[t+1],8),n.a==r.a&&r.a==i.a||n.b==r.b&&r.b==i.b?s6(o,t):++t;return o}function eje(e,t){var n,r,i,o,a,s,l;for(n=kR(tS(ZE(eS(new GA,t),new pX(t.e)),pct),e.a),0==t.j.c.length||V7($H(NQ(t.j,0),57).a,n),l=new Rv,VK(e.e,n,l),a=new LA,s=new LA,o=new Gf(t.k);o.a<o.c.c.length;)_G(a,(i=$H(J0(o),17)).c),_G(s,i.d);(r=a.a.gc()-s.a.gc())<0?(zse(l,!0,(Fde(),PTt)),zse(l,!1,FTt)):r>0&&(zse(l,!1,(Fde(),PTt)),zse(l,!0,FTt)),kte(t.g,new sT(e,n)),VK(e.g,t,n)}function tje(){var e;for(tje=M,Dtt=Sse(Uw(kRt,1),lqe,25,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),Ntt=N8(kRt,lqe,25,37,15,1),Rtt=Sse(Uw(kRt,1),lqe,25,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),Ltt=N8(MRt,Fqe,25,37,14,1),e=2;e<=36;e++)Ntt[e]=CJ(r.Math.pow(e,Dtt[e])),Ltt[e]=k_e(dYe,Ntt[e])}function nje(e){var t;if(1!=(!e.a&&(e.a=new eG(PMt,e,6,6)),e.a).i)throw jv(new Py($5e+(!e.a&&(e.a=new eG(PMt,e,6,6)),e.a).i));return t=new bb,dse($H(Gte((!e.b&&(e.b=new lF(LMt,e,4,7)),e.b),0),82))&&Fie(t,QVe(e,dse($H(Gte((!e.b&&(e.b=new lF(LMt,e,4,7)),e.b),0),82)),!1)),dse($H(Gte((!e.c&&(e.c=new lF(LMt,e,5,8)),e.c),0),82))&&Fie(t,QVe(e,dse($H(Gte((!e.c&&(e.c=new lF(LMt,e,5,8)),e.c),0),82)),!0)),t}function rje(e,t){var n,r,i;for(i=!1,r=new aW(XN((t.d?e.a.c==(pJ(),Zbt)?cfe(t.b):ufe(t.b):e.a.c==(pJ(),Jbt)?cfe(t.b):ufe(t.b)).a.Kc(),new u));fIe(r);)if(n=$H(z5(r),17),(Hy(e.a.f[e.a.g[t.b.p].p])||d5(n)||n.c.i.c!=n.d.i.c)&&!Hy(e.a.n[e.a.g[t.b.p].p])&&!Hy(e.a.n[e.a.g[t.b.p].p])&&(i=!0,FE(e.b,e.a.g[Ibe(n,t.b).p])))return t.c=!0,t.a=n,t;return t.c=i,t.a=null,t}function ije(e,t,n,r,i){var o,a,s,l,c,u,d;for(Eq(),vD(e,new Ks),s=new x2(e,0),d=new Dv,o=0;s.b<s.d.gc();)SL(s.b<s.d.gc()),a=$H(s.d.Xb(s.c=s.b++),157),0!=d.c.length&&tz(a)*ez(a)>2*o?(u=new Ute(d),c=tz(a)/ez(a),l=AVe(u,t,new db,n,r,i,c),zP(bM(u.e),l),d.c=N8(Met,jKe,1,0,5,1),o=0,d.c[d.c.length]=u,d.c[d.c.length]=a,o=tz(u)*ez(u)+tz(a)*ez(a)):(d.c[d.c.length]=a,o+=tz(a)*ez(a));return d}function oje(e,t,n){var r,i,o,a,s,l,c;if(0==(r=n.gc()))return!1;if(e.ej())if(l=e.fj(),bpe(e,t,n),a=1==r?e.Zi(3,null,n.Kc().Pb(),t,l):e.Zi(5,null,n,t,l),e.bj()){for(s=r<100?null:new F_(r),o=t+r,i=t;i<o;++i)c=e.Oi(i),s=e.cj(c,s);s?(s.Ei(a),s.Fi()):e.$i(a)}else e.$i(a);else if(bpe(e,t,n),e.bj()){for(s=r<100?null:new F_(r),o=t+r,i=t;i<o;++i)s=e.cj(e.Oi(i),s);s&&s.Fi()}return!0}function aje(e,t,n){var r,i,o,a;return e.ej()?(i=null,o=e.fj(),r=e.Zi(1,a=e.Ui(t,e.oi(t,n)),n,t,o),e.bj()&&!(e.ni()&&a?Dde(a,n):UO(a)===UO(n))?(a&&(i=e.dj(a,i)),(i=e.cj(n,i))?(i.Ei(r),i.Fi()):e.$i(r)):i?(i.Ei(r),i.Fi()):e.$i(r),a):(a=e.Ui(t,e.oi(t,n)),e.bj()&&!(e.ni()&&a?Dde(a,n):UO(a)===UO(n))&&(i=null,a&&(i=e.dj(a,null)),(i=e.cj(n,i))&&i.Fi()),a)}function sje(e,t){var n,i,o,a,s,l,c,u;if(e.e=t,e.f=$H(vSe(t,(xie(),lat)),230),WEe(t),e.d=r.Math.max(16*t.e.c.length+t.c.c.length,256),!Hy(_B(vSe(t,(cPe(),jot)))))for(u=e.e.e.c.length,l=new Gf(t.e);l.a<l.c.c.length;)(c=$H(J0(l),144).d).a=kz(e.f)*u,c.b=kz(e.f)*u;for(n=t.b,a=new Gf(t.c);a.a<a.c.c.length;)if(o=$H(J0(a),282),(i=$H(vSe(o,eat),19).a)>0){for(s=0;s<i;s++)GH(n,new lV(o));$ke(o)}}function lje(e,t){var n,i,o,a,s;if(e.k==(oCe(),Est)&&(n=yx(OY($H(vSe(e,(lKe(),Sht)),15).Oc(),new ip(new ir))).sd((fS(),Znt))?t:(Wye(),_kt),lle(e,oht,n),n!=(Wye(),wkt)))for(i=$H(vSe(e,fht),17),s=Uy(xB(vSe(i,(jVe(),imt)))),a=0,n==ykt?a=e.o.b-r.Math.ceil(s/2):n==_kt&&(e.o.b-=Uy(xB(vSe(mK(e),yvt))),a=(e.o.b-r.Math.ceil(s))/2),o=new Gf(e.j);o.a<o.c.c.length;)$H(J0(o),11).n.b=a}function cje(){cje=M,qS(),wRt=new Pu,Sse(Uw(kDt,2),sYe,368,0,[Sse(Uw(kDt,1),wet,592,0,[new zx(Q9e)])]),Sse(Uw(kDt,2),sYe,368,0,[Sse(Uw(kDt,1),wet,592,0,[new zx(z9e)])]),Sse(Uw(kDt,2),sYe,368,0,[Sse(Uw(kDt,1),wet,592,0,[new zx(W9e)]),Sse(Uw(kDt,1),wet,592,0,[new zx(z9e)])]),new MI("-1"),Sse(Uw(kDt,2),sYe,368,0,[Sse(Uw(kDt,1),wet,592,0,[new zx("\\c+")])]),new MI("0"),new MI("0"),new MI("1"),new MI("0"),new MI(tet)}function uje(e){var t,n;return e.c&&e.c.kh()&&(n=$H(e.c,49),e.c=$H(Zue(e,n),138),e.c!=n&&(4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,9,2,n,e.c)),rN(e.Cb,399)?e.Db>>16==-15&&e.Cb.nh()&&M9(new b7(e.Cb,9,13,n,e.c,oAe(j9($H(e.Cb,59)),e))):rN(e.Cb,88)&&e.Db>>16==-23&&e.Cb.nh()&&(rN(t=e.c,88)||(pKe(),t=hDt),rN(n,88)||(pKe(),n=hDt),M9(new b7(e.Cb,9,10,n,t,oAe(i4($H(e.Cb,26)),e)))))),e.c}function dje(e,t){var n,r,i,o,a,s,l,c;for(kEe(t,"Hypernodes processing",1),r=new Gf(e.b);r.a<r.c.c.length;)for(a=new Gf($H(J0(r),29).a);a.a<a.c.c.length;)if(Hy(_B(vSe(o=$H(J0(a),10),(jVe(),dmt))))&&o.j.c.length<=2){for(c=0,l=0,n=0,i=0,s=new Gf(o.j);s.a<s.c.c.length;)switch($H(J0(s),11).j.g){case 1:++c;break;case 2:++l;break;case 3:++n;break;case 4:++i}0==c&&0==n&&yVe(e,o,i<=l)}jCe(t)}function hje(e,t){var n,r,i,o,a,s,l,c,u;for(kEe(t,"Layer constraint edge reversal",1),a=new Gf(e.b);a.a<a.c.c.length;){for(o=$H(J0(a),29),u=-1,n=new Dv,c=J1(o.a),i=0;i<c.length;i++)r=$H(vSe(c[i],(lKe(),tht)),303),-1==u?r!=(Q9(),Cdt)&&(u=i):r==(Q9(),Cdt)&&(SZ(c[i],null),Kye(c[i],u++,o)),r==(Q9(),Edt)&&GH(n,c[i]);for(l=new Gf(n);l.a<l.c.c.length;)SZ(s=$H(J0(l),10),null),SZ(s,o)}jCe(t)}function fje(e,t,n){var r,i,o,a,s,l,c,u;for(kEe(n,"Hyperedge merging",1),NIe(e,t),s=new x2(t.b,0);s.b<s.d.gc();)if(SL(s.b<s.d.gc()),0!=(c=$H(s.d.Xb(s.c=s.b++),29).a).c.length)for(r=null,i=null,o=null,a=null,l=0;l<c.c.length;l++)u0(l,c.c.length),(i=(r=$H(c.c[l],10)).k)==(oCe(),Sst)&&a==Sst&&(u=lUe(r,o)).a&&(nBe(r,o,u.b,u.c),u0(l,c.c.length),Sx(c.c,l,1),--l,r=o,i=a),o=r,a=i;jCe(n)}function pje(e,t){var n,r,i;r=0!=jDe(e.d,1),!Hy(_B(vSe(t.j,(lKe(),qdt))))&&!Hy(_B(vSe(t.j,Tht)))||UO(vSe(t.j,(jVe(),Igt)))===UO((vle(),DAt))?t.c.Tf(t.e,r):r=Hy(_B(vSe(t.j,qdt))),RRe(e,t,r,!0),Hy(_B(vSe(t.j,Tht)))&&lle(t.j,Tht,(lR(),!1)),Hy(_B(vSe(t.j,qdt)))&&(lle(t.j,qdt,(lR(),!1)),lle(t.j,Tht,!0)),n=eFe(e,t);do{if(Mie(e),0==n)return 0;i=n,RRe(e,t,r=!r,!1),n=eFe(e,t)}while(i>n);return i}function gje(e,t){var n,r,i;r=0!=jDe(e.d,1),!Hy(_B(vSe(t.j,(lKe(),qdt))))&&!Hy(_B(vSe(t.j,Tht)))||UO(vSe(t.j,(jVe(),Igt)))===UO((vle(),DAt))?t.c.Tf(t.e,r):r=Hy(_B(vSe(t.j,qdt))),RRe(e,t,r,!0),Hy(_B(vSe(t.j,Tht)))&&lle(t.j,Tht,(lR(),!1)),Hy(_B(vSe(t.j,qdt)))&&(lle(t.j,qdt,(lR(),!1)),lle(t.j,Tht,!0)),n=JTe(e,t);do{if(Mie(e),0==n)return 0;i=n,RRe(e,t,r=!r,!1),n=JTe(e,t)}while(i>n);return i}function mje(e,t,n){var r,i,o,a,s,l,c;if(t==n)return!0;if(t=dIe(e,t),n=dIe(e,n),r=HAe(t)){if((l=HAe(n))!=r)return!!l&&(a=r.Dj())==l.Dj()&&null!=a;if(!t.d&&(t.d=new MN(GIt,t,1)),i=(o=t.d).i,!n.d&&(n.d=new MN(GIt,n,1)),i==(c=n.d).i)for(s=0;s<i;++s)if(!mje(e,$H(Gte(o,s),87),$H(Gte(c,s),87)))return!1;return!0}return t.e==n.e}function vje(e,t,n,r){var i,o,a,s,l,c,u,d;if(MLe(e.e,t)){for(d=iLe(e.e.Tg(),t),o=$H(e.g,119),u=null,l=-1,s=-1,i=0,c=0;c<e.i;++c)a=o[c],d.rl(a.ak())&&(i==n&&(l=c),i==r&&(s=c,u=a.dd()),++i);if(-1==l)throw jv(new Oy(o8e+n+a8e+i));if(-1==s)throw jv(new Oy(s8e+r+a8e+i));return The(e,l,s),vI(e.e)&&IA(e,IX(e,7,t,the(r),u,n,!0)),u}throw jv(new Py("The feature must be many-valued to support move"))}function Aje(e,t,n,r){var i,o,a,s,l;switch((l=new hI(t.n)).a+=t.o.a/2,l.b+=t.o.b/2,s=Uy(xB(vSe(t,(jVe(),Zmt)))),o=e.f,a=e.d,i=e.c,$H(vSe(t,(lKe(),Kdt)),61).g){case 1:l.a+=a.b+i.a-n/2,l.b=-r-s,t.n.b=-(a.d+s+i.b);break;case 2:l.a=o.a+a.b+a.c+s,l.b+=a.d+i.b-r/2,t.n.a=o.a+a.c+s-i.a;break;case 3:l.a+=a.b+i.a-n/2,l.b=o.b+a.d+a.a+s,t.n.b=o.b+a.a+s-i.b;break;case 4:l.a=-n-s,l.b+=a.d+i.b-r/2,t.n.a=-(a.b+s+i.a)}return l}function bje(e){var t,n,r,i,o,a;return Hae(r=new vre,e),UO(vSe(r,(jVe(),zgt)))===UO((Fde(),$Tt))&&lle(r,zgt,Ghe(r)),null==vSe(r,(C6(),_St))&&(a=$H(MSe(e),160),lle(r,_St,tM(a.We(_St)))),lle(r,(lKe(),fht),e),lle(r,Xdt,new YF(t=$H(V_(_dt),9),$H(EP(t,t.length),9),0)),i=SWe((qJ(e)&&(US(),new Ry(qJ(e))),US(),new qR(qJ(e)?new Ry(qJ(e)):null,e)),FTt),o=$H(vSe(r,Qmt),116),eZ(n=r.d,o),eZ(n,i),r}function yje(e,t,n){var r,i;r=t.c.i,i=n.d.i,r.k==(oCe(),Sst)?(lle(e,(lKe(),lht),$H(vSe(r,lht),11)),lle(e,cht,$H(vSe(r,cht),11)),lle(e,sht,_B(vSe(r,sht)))):r.k==Est?(lle(e,(lKe(),lht),$H(vSe(r,lht),11)),lle(e,cht,$H(vSe(r,cht),11)),lle(e,sht,(lR(),!0))):i.k==Est?(lle(e,(lKe(),lht),$H(vSe(i,lht),11)),lle(e,cht,$H(vSe(i,cht),11)),lle(e,sht,(lR(),!0))):(lle(e,(lKe(),lht),t.c),lle(e,cht,n.d))}function wje(e){var t,n,r,i,o,a,s;for(e.o=new Iv,r=new YE,a=new Gf(e.e.a);a.a<a.c.c.length;)1==bfe(o=$H(J0(a),121)).c.length&&n5(r,o,r.c.b,r.c);for(;0!=r.b;)0!=bfe(o=$H(0==r.b?null:(SL(0!=r.b),Ote(r,r.a.a)),121)).c.length&&(t=$H(NQ(bfe(o),0),213),n=o.g.a.c.length>0,s=Dfe(t,o),BR(n?s.b:s.g,t),1==bfe(s).c.length&&n5(r,s,r.c.b,r.c),i=new nO(o,t),f3(e.o,i),A9(e.e.a,o))}function _je(e,t){var n,i,o,a;return i=r.Math.abs(HW(e.b).a-HW(t.b).a),a=r.Math.abs(HW(e.b).b-HW(t.b).b),n=1,o=1,i>e.b.b/2+t.b.b/2&&(n=1-r.Math.min(r.Math.abs(e.b.c-(t.b.c+t.b.b)),r.Math.abs(e.b.c+e.b.b-t.b.c))/i),a>e.b.a/2+t.b.a/2&&(o=1-r.Math.min(r.Math.abs(e.b.d-(t.b.d+t.b.a)),r.Math.abs(e.b.d+e.b.a-t.b.d))/a),(1-r.Math.min(n,o))*r.Math.sqrt(i*i+a*a)}function xje(e){var t,n,r;for(JWe(e,e.e,e.f,(fJ(),Iyt),!0,e.c,e.i),JWe(e,e.e,e.f,Iyt,!1,e.c,e.i),JWe(e,e.e,e.f,Dyt,!0,e.c,e.i),JWe(e,e.e,e.f,Dyt,!1,e.c,e.i),Tje(e,e.c,e.e,e.f,e.i),n=new x2(e.i,0);n.b<n.d.gc();)for(SL(n.b<n.d.gc()),t=$H(n.d.Xb(n.c=n.b++),128),r=new x2(e.i,n.b);r.b<r.d.gc();)SL(r.b<r.d.gc()),DQe(t,$H(r.d.Xb(r.c=r.b++),128));TVe(e.i,$H(vSe(e.d,(lKe(),Eht)),230)),Uze(e.i)}function Eje(e,t){var n,r;if(null!=t)if(r=tye(e)){if(!(1&r.i))return JS(),!(n=$H(LV(mIt,r),55))||n.wj(t);if(r==ORt)return QO(t);if(r==kRt)return rN(t,19);if(r==NRt)return rN(t,155);if(r==IRt)return rN(t,217);if(r==TRt)return rN(t,172);if(r==DRt)return zO(t);if(r==RRt)return rN(t,184);if(r==MRt)return rN(t,162)}else if(rN(t,56))return e.uk($H(t,56));return!1}function Sje(){var e,t,n,r,i,o,a,s,l;for(Sje=M,WNt=N8(IRt,m6e,25,255,15,1),GNt=N8(TRt,GYe,25,64,15,1),t=0;t<255;t++)WNt[t]=-1;for(n=90;n>=65;n--)WNt[n]=n-65<<24>>24;for(r=122;r>=97;r--)WNt[r]=r-97+26<<24>>24;for(i=57;i>=48;i--)WNt[i]=i-48+52<<24>>24;for(WNt[43]=62,WNt[47]=63,o=0;o<=25;o++)GNt[o]=65+o&KYe;for(a=26,l=0;a<=51;++a,l++)GNt[a]=97+l&KYe;for(e=52,s=0;e<=61;++e,s++)GNt[e]=48+s&KYe;GNt[62]=43,GNt[63]=47}function Cje(e,t){var n,i,o,a,s,l,c,u,d,h,f;if(e.dc())return new U_;for(c=0,d=0,i=e.Kc();i.Ob();)o=$H(i.Pb(),37).f,c=r.Math.max(c,o.a),d+=o.a*o.b;for(c=r.Math.max(c,r.Math.sqrt(d)*Uy(xB(vSe($H(e.Kc().Pb(),37),(jVe(),wgt))))),h=0,f=0,l=0,n=t,s=e.Kc();s.Ob();)h+(u=(a=$H(s.Pb(),37)).f).a>c&&(h=0,f+=l+t,l=0),XPe(a,h,f),n=r.Math.max(n,h+u.a),l=r.Math.max(l,u.b),h+=u.a+t;return new Nk(n+t,f+l+t)}function Tje(e,t,n,r,i){var o,a,s,l,c,u,d;for(a=new Gf(t);a.a<a.c.c.length;){if(l=(o=$H(J0(a),17)).c,n.a._b(l))fJ(),c=Iyt;else{if(!r.a._b(l))throw jv(new Py("Source port must be in one of the port sets."));fJ(),c=Dyt}if(u=o.d,n.a._b(u))fJ(),d=Iyt;else{if(!r.a._b(u))throw jv(new Py("Target port must be in one of the port sets."));fJ(),d=Dyt}s=new ZTe(o,c,d),VK(e.b,o,s),i.c[i.c.length]=s}}function kje(e,t){var n,r,i,o,a,s,l;if(!GJ(e))throw jv(new Fy(F5e));if(o=(r=GJ(e)).g,i=r.f,o<=0&&i<=0)return bGe(),SOt;switch(s=e.i,l=e.j,t.g){case 2:case 1:if(s<0)return bGe(),COt;if(s+e.g>o)return bGe(),aOt;break;case 4:case 3:if(l<0)return bGe(),sOt;if(l+e.f>i)return bGe(),EOt}return(a=(s+e.g/2)/o)+(n=(l+e.f/2)/i)<=1&&a-n<=0?(bGe(),COt):a+n>=1&&a-n>=0?(bGe(),aOt):n<.5?(bGe(),sOt):(bGe(),EOt)}function Oje(e,t,n,r,i){var o,a;if(o=nfe(e1(t[0],zqe),e1(r[0],zqe)),e[0]=fz(o),o=bW(o,32),n>=i){for(a=1;a<i;a++)o=nfe(o,nfe(e1(t[a],zqe),e1(r[a],zqe))),e[a]=fz(o),o=bW(o,32);for(;a<n;a++)o=nfe(o,e1(t[a],zqe)),e[a]=fz(o),o=bW(o,32)}else{for(a=1;a<n;a++)o=nfe(o,nfe(e1(t[a],zqe),e1(r[a],zqe))),e[a]=fz(o),o=bW(o,32);for(;a<i;a++)o=nfe(o,e1(r[a],zqe)),e[a]=fz(o),o=bW(o,32)}0!=Vue(o,0)&&(e[a]=fz(o))}function Mje(e){var t,n,r,i,o,a;if(hKe(),4!=e.e&&5!=e.e)throw jv(new Py("Token#complementRanges(): must be RANGE: "+e.e));for(_De(o=e),HUe(o),r=o.b.length+2,0==o.b[0]&&(r-=2),(n=o.b[o.b.length-1])==oet&&(r-=2),(i=new x1(4)).b=N8(kRt,lqe,25,r,15,1),a=0,o.b[0]>0&&(i.b[a++]=0,i.b[a++]=o.b[0]-1),t=1;t<o.b.length-2;t+=2)i.b[a++]=o.b[t]+1,i.b[a++]=o.b[t+1]-1;return n!=oet&&(i.b[a++]=n+1,i.b[a]=oet),i.a=!0,i}function Ije(e,t,n){var r,i,o,a,s,l,c,u;if(0==(r=n.gc()))return!1;if(e.ej())if(c=e.fj(),$Ee(e,t,n),a=1==r?e.Zi(3,null,n.Kc().Pb(),t,c):e.Zi(5,null,n,t,c),e.bj()){for(s=r<100?null:new F_(r),o=t+r,i=t;i<o;++i)u=e.g[i],s=e.cj(u,s),s=e.jj(u,s);s?(s.Ei(a),s.Fi()):e.$i(a)}else e.$i(a);else if($Ee(e,t,n),e.bj()){for(s=r<100?null:new F_(r),o=t+r,i=t;i<o;++i)l=e.g[i],s=e.cj(l,s);s&&s.Fi()}return!0}function Dje(e,t,n,r){var i,o,a,s,l;for(a=new Gf(e.k);a.a<a.c.c.length;)i=$H(J0(a),129),r&&i.c!=(k6(),_yt)||(l=i.b).g<0&&i.d>0&&(Gh(l,l.d-i.d),i.c==(k6(),_yt)&&zh(l,l.a-i.d),l.d<=0&&l.i>0&&n5(t,l,t.c.b,t.c));for(o=new Gf(e.f);o.a<o.c.c.length;)i=$H(J0(o),129),r&&i.c!=(k6(),_yt)||(s=i.a).g<0&&i.d>0&&(Vh(s,s.i-i.d),i.c==(k6(),_yt)&&Wh(s,s.b-i.d),s.i<=0&&s.d>0&&n5(n,s,n.c.b,n.c))}function Nje(e,t,n){var r,i,o,a,s,l,c,u;for(kEe(n,"Processor compute fanout",1),MG(e.b),MG(e.a),s=null,o=sve(t.b,0);!s&&o.b!=o.d.c;)Hy(_B(vSe(c=$H(d3(o),86),(HQe(),fwt))))&&(s=c);for(n5(l=new YE,s,l.c.b,l.c),yGe(e,l),u=sve(t.b,0);u.b!=u.d.c;)a=EB(vSe(c=$H(d3(u),86),(HQe(),nwt))),i=null!=EJ(e.b,a)?$H(EJ(e.b,a),19).a:0,lle(c,twt,the(i)),r=1+(null!=EJ(e.a,a)?$H(EJ(e.a,a),19).a:0),lle(c,Zyt,the(r));jCe(n)}function Rje(e,t,n,r,i){var o,a,s,l,c,u,d,h,f;for(d=Axe(e,n),s=0;s<t;s++){for(AP(i,n),h=new Dv,SL(r.b<r.d.gc()),f=$H(r.d.Xb(r.c=r.b++),407),c=d+s;c<e.b;c++)a=f,SL(r.b<r.d.gc()),GH(h,new wLe(a,f=$H(r.d.Xb(r.c=r.b++),407),n));for(u=d+s;u<e.b;u++)SL(r.b>0),r.a.Xb(r.c=--r.b),u>d+s&&cK(r);for(o=new Gf(h);o.a<o.c.c.length;)AP(r,$H(J0(o),407));if(s<t-1)for(l=d+s;l<e.b;l++)SL(r.b>0),r.a.Xb(r.c=--r.b)}}function Lje(){var e,t,n,r,i,o;if(hKe(),SRt)return SRt;for(sUe(e=new x1(4),XGe(met,!0)),Gze(e,XGe("M",!0)),Gze(e,XGe("C",!0)),o=new x1(4),r=0;r<11;r++)YLe(o,r,r);return sUe(t=new x1(4),XGe("M",!0)),YLe(t,4448,4607),YLe(t,65438,65439),ZUe(i=new nD(2),e),ZUe(i,aRt),(n=new nD(2)).$l(pz(o,XGe("L",!0))),n.$l(t),n=new zG(i,n=new l4(3,n)),SRt=n}function Bje(e){var t,n;if(!Yoe(t=EB(XIe(e,(sKe(),eCt))),e)&&!S8(e,vTt)&&(0!=(!e.a&&(e.a=new eG(QMt,e,10,11)),e.a).i||Hy(_B(XIe(e,ECt))))){if(null!=t&&0!=LSe(t).length)throw pWe(e,n=aM(aM(new uR("Layout algorithm '"),t),"' not found for ")),jv(new nw(n.a));if(!Yoe(h0e,e))throw pWe(e,n=aM(aM(new uR("Unable to load default layout algorithm "),h0e)," for unconfigured node ")),jv(new nw(n.a))}}function Pje(e){var t,n,i,o,a,s,l,c,u,d,h,f,p;if(n=e.i,t=e.n,0==e.b)for(p=n.c+t.b,f=n.b-t.b-t.c,c=0,d=(s=e.a).length;c<d;++c)zz(o=s[c],p,f);else i=GAe(e,!1),zz(e.a[0],n.c+t.b,i[0]),zz(e.a[2],n.c+n.b-t.c-i[2],i[2]),h=n.b-t.b-t.c,i[0]>0&&(h-=i[0]+e.c,i[0]+=e.c),i[2]>0&&(h-=i[2]+e.c),i[1]=r.Math.max(i[1],h),zz(e.a[1],n.c+t.b+i[0]-(i[1]-h)/2,i[1]);for(l=0,u=(a=e.a).length;l<u;++l)rN(o=a[l],326)&&$H(o,326).Te()}function Fje(e){var t,n,r,i,o,a,s,l,c,u,d;for((d=new sa).d=0,a=new Gf(e.b);a.a<a.c.c.length;)o=$H(J0(a),29),d.d+=o.a.c.length;for(r=0,i=0,d.a=N8(kRt,lqe,25,e.b.c.length,15,1),c=0,u=0,d.e=N8(kRt,lqe,25,d.d,15,1),n=new Gf(e.b);n.a<n.c.c.length;)for((t=$H(J0(n),29)).p=r++,d.a[t.p]=i++,u=0,l=new Gf(t.a);l.a<l.c.c.length;)(s=$H(J0(l),10)).p=c++,d.e[s.p]=u++;return d.c=new cm(d),d.b=sL(d.d),j$e(d,e),d.f=sL(d.d),H$e(d,e),d}function $je(e,t){var n,i,o;for(o=$H(NQ(e.n,e.n.c.length-1),211).d,e.p=r.Math.min(e.p,t.g),e.r=r.Math.max(e.r,o),e.g=r.Math.max(e.g,t.g+(1==e.b.c.length?0:e.i)),e.o=r.Math.min(e.o,t.f),e.e+=t.f+(1==e.b.c.length?0:e.i),e.f=r.Math.max(e.f,t.f),i=e.n.c.length>0?(e.n.c.length-1)*e.i:0,n=new Gf(e.n);n.a<n.c.c.length;)i+=$H(J0(n),211).a;e.d=i,e.a=e.e/e.b.c.length-e.i*((e.b.c.length-1)/e.b.c.length),Aye(e.j)}function jje(e,t){var n,r,i,o,a,s,l,c,u;if(null==(c=_B(vSe(t,(cPe(),tat))))||(bK(c),c)){for(u=N8(ORt,XXe,25,t.e.c.length,16,1),a=bMe(t),i=new YE,l=new Gf(t.e);l.a<l.c.c.length;)(n=YDe(e,$H(J0(l),144),null,null,u,a))&&(Hae(n,t),n5(i,n,i.c.b,i.c));if(i.b>1)for(r=sve(i,0);r.b!=r.d.c;)for(o=0,s=new Gf((n=$H(d3(r),231)).e);s.a<s.c.c.length;)$H(J0(s),144).b=o++;return i}return o6(Sse(Uw(Bot,1),ZJe,231,0,[t]))}function Hje(e){var t,n,r,i,o;if(!e.g){if(o=new El,null==(t=EDt).a.zc(e,t)){for(n=new ON(bX(e));n.e!=n.i.gc();)gV(o,Hje($H(bve(n),26)));t.a.Bc(e),t.a.gc()}for(r=o.i,!e.s&&(e.s=new eG(PIt,e,21,17)),i=new ON(e.s);i.e!=i.i.gc();++r)of($H(bve(i),449),r);gV(o,(!e.s&&(e.s=new eG(PIt,e,21,17)),e.s)),rue(o),e.g=new fle(e,o),e.i=$H(o.g,247),null==e.i&&(e.i=CDt),e.p=null,S5(e).b&=-5}return e.g}function Uje(e){var t,n,i,o,a,s,l,c,u,d,h,f,p;if(i=e.i,n=e.n,0==e.b)t=WAe(e,!1),Wz(e.a[0],i.d+n.d,t[0]),Wz(e.a[2],i.d+i.a-n.a-t[2],t[2]),h=i.a-n.d-n.a,t[0]>0&&(t[0]+=e.c,h-=t[0]),t[2]>0&&(h-=t[2]+e.c),t[1]=r.Math.max(t[1],h),Wz(e.a[1],i.d+n.d+t[0]-(t[1]-h)/2,t[1]);else for(p=i.d+n.d,f=i.a-n.d-n.a,c=0,d=(s=e.a).length;c<d;++c)Wz(o=s[c],p,f);for(l=0,u=(a=e.a).length;l<u;++l)rN(o=a[l],326)&&$H(o,326).Ue()}function Qje(e){var t,n,r,i,o,a,s,l,c;for(c=N8(kRt,lqe,25,e.b.c.length+1,15,1),l=new LA,r=0,o=new Gf(e.b);o.a<o.c.c.length;){for(i=$H(J0(o),29),c[r++]=l.a.gc(),s=new Gf(i.a);s.a<s.c.c.length;)for(n=new aW(XN(ufe($H(J0(s),10)).a.Kc(),new u));fIe(n);)t=$H(z5(n),17),l.a.zc(t,l);for(a=new Gf(i.a);a.a<a.c.c.length;)for(n=new aW(XN(cfe($H(J0(a),10)).a.Kc(),new u));fIe(n);)t=$H(z5(n),17),l.a.Bc(t)}return c}function zje(e,t,n,r){var i,o,a,s,l;if(l=iLe(e.e.Tg(),t),i=$H(e.g,119),XS(),$H(t,66).Oj()){for(a=0;a<e.i;++a)if(o=i[a],l.rl(o.ak())&&Dde(o,n))return!0}else if(null!=n){for(s=0;s<e.i;++s)if(o=i[s],l.rl(o.ak())&&Dde(n,o.dd()))return!0;if(r)for(a=0;a<e.i;++a)if(o=i[a],l.rl(o.ak())&&UO(n)===UO(lB(e,$H(o.dd(),56))))return!0}else for(a=0;a<e.i;++a)if(o=i[a],l.rl(o.ak())&&null==o.dd())return!1;return!1}function Wje(e,t,n,r){var i,o,a,s,l,c;if(c=iLe(e.e.Tg(),t),a=$H(e.g,119),MLe(e.e,t)){if(t.hi()&&(o=gHe(e,t,r,rN(t,99)&&!!($H(t,18).Bb&$qe)))>=0&&o!=n)throw jv(new Py(i8e));for(i=0,l=0;l<e.i;++l)if(s=a[l],c.rl(s.ak())){if(i==n)return $H(aAe(e,l,(XS(),$H(t,66).Oj()?$H(r,72):X3(t,r))),72);++i}throw jv(new Oy(e7e+n+a8e+i))}for(l=0;l<e.i;++l)if(s=a[l],c.rl(s.ak()))return XS(),$H(t,66).Oj()?s:s.dd();return null}function Gje(e,t,n,i){var o,a,s,l;for(l=n,s=new Gf(t.a);s.a<s.c.c.length;){if(a=$H(J0(s),221),o=$H(a.b,65),Tfe(e.b.c,o.b.c+o.b.b)<=0&&Tfe(o.b.c,e.b.c+e.b.b)<=0&&Tfe(e.b.d,o.b.d+o.b.a)<=0&&Tfe(o.b.d,e.b.d+e.b.a)<=0){if(0==Tfe(o.b.c,e.b.c+e.b.b)&&i.a<0||0==Tfe(o.b.c+o.b.b,e.b.c)&&i.a>0||0==Tfe(o.b.d,e.b.d+e.b.a)&&i.b<0||0==Tfe(o.b.d+o.b.a,e.b.d)&&i.b>0){l=0;break}}else l=r.Math.min(l,jke(e,o,i));l=r.Math.min(l,Gje(e,a,l,i))}return l}function Vje(e,t){var n,r,i,o,a,s;if(e.b<2)throw jv(new Py("The vector chain must contain at least a source and a target point."));for(SL(0!=e.b),CI(t,(r=$H(e.a.a.c,8)).a,r.b),s=new rL((!t.a&&(t.a=new MN(DMt,t,5)),t.a)),o=sve(e,1);o.a<e.b-1;)a=$H(d3(o),8),s.e!=s.i.gc()?n=$H(bve(s),469):(Z_(),age(s,n=new ol)),_I(n,a.a,a.b);for(;s.e!=s.i.gc();)bve(s),K_e(s);SL(0!=e.b),SI(t,(i=$H(e.c.b.c,8)).a,i.b)}function Kje(e,t){var n,r,i,o,a,s,l,c;for(n=0,r=new Gf((u0(0,e.c.length),$H(e.c[0],101)).g.b.j);r.a<r.c.c.length;)$H(J0(r),11).p=n++;for(t==(bGe(),sOt)?vD(e,new eo):vD(e,new to),a=0,c=e.c.length-1;a<c;)u0(a,e.c.length),o=$H(e.c[a],101),u0(c,e.c.length),l=$H(e.c[c],101),i=t==sOt?o.c:o.a,s=t==sOt?l.a:l.c,dG(o,t,(kse(),Act),i),dG(l,t,vct,s),++a,--c;a==c&&dG((u0(a,e.c.length),$H(e.c[a],101)),t,(kse(),mct),null)}function Yje(e,t,n){var r,i,o,a,s,l,c,u,d,h;return u=e.a.i+e.a.g/2,d=e.a.i+e.a.g/2,a=new Nk(t.i+t.g/2,t.j+t.f/2),(l=$H(XIe(t,(sKe(),pTt)),8)).a=l.a+u,l.b=l.b+d,i=(a.b-l.b)/(a.a-l.a),r=a.b-i*a.a,s=new Nk(n.i+n.g/2,n.j+n.f/2),(c=$H(XIe(n,pTt),8)).a=c.a+u,c.b=c.b+d,o=(s.b-c.b)/(s.a-c.a),h=(r-(s.b-o*s.a))/(o-i),!(l.a<h&&a.a<h||h<l.a&&h<a.a||c.a<h&&s.a<h||h<c.a&&h<s.a)}function qje(e,t){var n,r,i,o,a,s;if(!(a=$H(LV(e.c,t),183)))throw jv(new ew("Edge did not exist in input."));return r=Kge(a),!Gx((!t.a&&(t.a=new eG(PMt,t,6,6)),t.a))&&(n=new xH(e,r,s=new Sh),hM((!t.a&&(t.a=new eG(PMt,t,6,6)),t.a),n),nte(a,N6e,s)),S8(t,(sKe(),kCt))&&!(!(i=$H(XIe(t,kCt),74))||gK(i))&&(e5(i,new Km(o=new Sh)),nte(a,"junctionPoints",o)),OU(a,"container",WJ(t).k),null}function Xje(e,t,n){var r,i,o,a,s,l;this.a=e,this.b=t,this.c=n,this.e=o6(Sse(Uw(ort,1),jKe,168,0,[new NC(e,t),new NC(t,n),new NC(n,e)])),this.f=o6(Sse(Uw(SSt,1),sYe,8,0,[e,t,n])),this.d=(r=WP($D(this.b),this.a),i=WP($D(this.c),this.a),o=WP($D(this.c),this.b),a=r.a*(this.a.a+this.b.a)+r.b*(this.a.b+this.b.b),s=i.a*(this.a.a+this.c.a)+i.b*(this.a.b+this.c.b),l=2*(r.a*o.b-r.b*o.a),new Nk((i.b*a-r.b*s)/l,(r.a*s-i.a*a)/l))}function Jje(e,t,n,r){var i,o,a,s,l,c,u,d,h;if(d=new UV(e.p),nte(t,Z6e,d),n&&!(e.f?nX(e.f):null).a.dc())for(nte(t,"logs",c=new Sh),s=0,h=new Hf((e.f?nX(e.f):null).b.Kc());h.b.Ob();)u=new UV(EB(h.b.Pb())),fee(c,s),n4(c,s,u),++s;if(r&&nte(t,"executionTime",new xh(e.q)),!nX(e.a).a.dc())for(a=new Sh,nte(t,O6e,a),s=0,o=new Hf(nX(e.a).b.Kc());o.b.Ob();)i=$H(o.b.Pb(),1949),l=new gy,fee(a,s),n4(a,s,l),Jje(i,l,n,r),++s}function Zje(e,t){var n,r,i,o,a,s;for(o=e.c,a=e.d,EZ(e,null),xZ(e,null),t&&Hy(_B(vSe(a,(lKe(),Zdt))))?EZ(e,L$e(a.i,(ire(),HAt),(bGe(),aOt))):EZ(e,a),t&&Hy(_B(vSe(o,(lKe(),bht))))?xZ(e,L$e(o.i,(ire(),jAt),(bGe(),COt))):xZ(e,o),r=new Gf(e.b);r.a<r.c.c.length;)n=$H(J0(r),70),(i=$H(vSe(n,(jVe(),Ygt)),272))==(Lte(),WTt)?lle(n,Ygt,zTt):i==zTt&&lle(n,Ygt,WTt);s=Hy(_B(vSe(e,(lKe(),Cht)))),lle(e,Cht,(lR(),!s)),e.a=qle(e.a)}function eHe(e,t,n){var i,o,a,s,l;for(i=0,a=new ON((!e.a&&(e.a=new eG(QMt,e,10,11)),e.a));a.e!=a.i.gc();)s="",0==(!(o=$H(bve(a),33)).n&&(o.n=new eG(UMt,o,1,7)),o.n).i||(s=$H(Gte((!o.n&&(o.n=new eG(UMt,o,1,7)),o.n),0),137).a),Hae(l=new HV(s),o),lle(l,(xie(),sat),o),l.b=i++,l.d.a=o.i+o.g/2,l.d.b=o.j+o.f/2,l.e.a=r.Math.max(o.g,1),l.e.b=r.Math.max(o.f,1),GH(t.e,l),yke(n.f,o,l),$H(XIe(o,(cPe(),Yot)),98),Kxe()}function tHe(e,t){var n,i,o,a,s,l,c,u,d,h,f;n=OR(new HA,e.f),l=e.i[t.c.i.p],h=e.i[t.d.i.p],s=t.c,d=t.d,a=s.a.b,u=d.a.b,l.b||(a+=s.n.b),h.b||(u+=d.n.b),c=CJ(r.Math.max(0,a-u)),o=CJ(r.Math.max(0,u-a)),f=r.Math.max(1,$H(vSe(t,(jVe(),dvt)),19).a)*W3(t.c.i.k,t.d.i.k),i=new JT(zRe(iS(rS(nS(oS(new jA,f),o),n),$H(LV(e.k,t.c),121))),zRe(iS(rS(nS(oS(new jA,f),c),n),$H(LV(e.k,t.d),121)))),e.c[t.p]=i}function nHe(e,t,n,r){var i,o,a,s,l,c;for(a=new oze(e,t,n),l=new x2(r,0),i=!1;l.b<l.d.gc();)SL(l.b<l.d.gc()),(s=$H(l.d.Xb(l.c=l.b++),233))==t||s==n?cK(l):!i&&Uy(uN(s.g,s.d[0]).a)>Uy(uN(a.g,a.d[0]).a)?(SL(l.b>0),l.a.Xb(l.c=--l.b),AP(l,a),i=!0):s.e&&s.e.gc()>0&&(o=(!s.e&&(s.e=new Dv),s.e).Mc(t),c=(!s.e&&(s.e=new Dv),s.e).Mc(n),(o||c)&&((!s.e&&(s.e=new Dv),s.e).Fc(a),++a.c));i||(r.c[r.c.length]=a)}function rHe(e){var t,n,r;if(mI($H(vSe(e,(jVe(),evt)),98)))for(n=new Gf(e.j);n.a<n.c.c.length;)(t=$H(J0(n),11)).j==(bGe(),SOt)&&((r=$H(vSe(t,(lKe(),wht)),10))?Hke(t,$H(vSe(r,Kdt),61)):t.e.c.length-t.g.c.length<0?Hke(t,aOt):Hke(t,COt));else{for(n=new Gf(e.j);n.a<n.c.c.length;)t=$H(J0(n),11),(r=$H(vSe(t,(lKe(),wht)),10))?Hke(t,$H(vSe(r,Kdt),61)):t.e.c.length-t.g.c.length<0?Hke(t,(bGe(),aOt)):Hke(t,(bGe(),COt));lle(e,evt,(Kxe(),Vkt))}}function iHe(e){var t,n;switch(e){case 91:case 93:case 45:case 94:case 44:case 92:n="\\"+String.fromCharCode(e&KYe);break;case 12:n="\\f";break;case 10:n="\\n";break;case 13:n="\\r";break;case 9:n="\\t";break;case 27:n="\\e";break;default:n=e<32?"\\x"+cL(t="0"+(e>>>0).toString(16),t.length-2,t.length):e>=$qe?"\\v"+cL(t="0"+(e>>>0).toString(16),t.length-6,t.length):""+String.fromCharCode(e&KYe)}return n}function oHe(e,t){var n,r,i,o,a,s,l,c,u,d;if(a=e.e,0==(l=t.e))return e;if(0==a)return 0==t.e?t:new uG(-t.e,t.d,t.a);if((o=e.d)+(s=t.d)==2)return n=e1(e.a[0],zqe),r=e1(t.a[0],zqe),a<0&&(n=y9(n)),l<0&&(r=y9(r)),Jme(tfe(n,r));if(-1==(i=o!=s?o>s?1:-1:xce(e.a,t.a,o)))d=-l,u=a==l?f6(t.a,s,e.a,o):D8(t.a,s,e.a,o);else if(d=a,a==l){if(0==i)return kBe(),tnt;u=f6(e.a,o,t.a,s)}else u=D8(e.a,o,t.a,s);return W1(c=new uG(d,u.length,u)),c}function aHe(e){var t,n,r,i,o,a;for(this.e=new Dv,this.a=new Dv,n=e.b-1;n<3;n++)BL(e,0,$H(Rve(e,0),8));if(e.b<4)throw jv(new Py("At (least dimension + 1) control points are necessary!"));for(this.b=3,this.d=!0,this.c=!1,TDe(this,e.b+this.b-1),a=new Dv,o=new Gf(this.e),t=0;t<this.b-1;t++)GH(a,xB(J0(o)));for(i=sve(e,0);i.b!=i.d.c;)r=$H(d3(i),8),GH(a,xB(J0(o))),GH(this.a,new hJ(r,a)),u0(0,a.c.length),a.c.splice(0,1)}function sHe(e,t){var n,r,i,o,a,s,l;for(i=new Gf(e.b);i.a<i.c.c.length;)for(a=new Gf($H(J0(i),29).a);a.a<a.c.c.length;)for((o=$H(J0(a),10)).k==(oCe(),Est)&&(s=$H(z5(new aW(XN(cfe(o).a.Kc(),new u))),17),l=$H(z5(new aW(XN(ufe(o).a.Kc(),new u))),17),lje(o,Hy(_B(vSe(s,(lKe(),Cht))))&&Hy(_B(vSe(l,Cht)))?Wse(t):t)),r=new aW(XN(ufe(o).a.Kc(),new u));fIe(r);)mse(n=$H(z5(r),17),Hy(_B(vSe(n,(lKe(),Cht))))?Wse(t):t)}function lHe(e,t,n,r,i){var o,a;if(n.f>=t.o&&n.f<=t.f||.5*t.a<=n.f&&1.5*t.a>=n.f){if((o=$H(NQ(t.n,t.n.c.length-1),211)).e+o.d+n.g+i<=r&&($H(NQ(t.n,t.n.c.length-1),211).f-e.f+n.f<=e.b||1==e.a.c.length))return Afe(t,n),!0;if(t.s+n.g<=r&&(t.t+t.d+n.f+i<=e.b||1==e.a.c.length))return GH(t.b,n),a=$H(NQ(t.n,t.n.c.length-1),211),GH(t.n,new LJ(t.s,a.f+a.a+t.i,t.i)),sbe($H(NQ(t.n,t.n.c.length-1),211),n),$je(t,n),!0}return!1}function cHe(e,t,n){var r,i,o,a;return e.ej()?(i=null,o=e.fj(),r=e.Zi(1,a=aee(e,t,n),n,t,o),e.bj()&&!(e.ni()&&null!=a?Dde(a,n):UO(a)===UO(n))?(null!=a&&(i=e.dj(a,i)),i=e.cj(n,i),e.ij()&&(i=e.lj(a,n,i)),i?(i.Ei(r),i.Fi()):e.$i(r)):(e.ij()&&(i=e.lj(a,n,i)),i?(i.Ei(r),i.Fi()):e.$i(r)),a):(a=aee(e,t,n),e.bj()&&!(e.ni()&&null!=a?Dde(a,n):UO(a)===UO(n))&&(i=null,null!=a&&(i=e.dj(a,null)),(i=e.cj(n,i))&&i.Fi()),a)}function uHe(e,t){var n,i,o,a,s,l,c;t%=24,e.q.getHours()!=t&&((n=new r.Date(e.q.getTime())).setDate(n.getDate()+1),(s=e.q.getTimezoneOffset()-n.getTimezoneOffset())>0&&(l=s/60|0,c=s%60,i=e.q.getDate(),e.q.getHours()+l>=24&&++i,o=new r.Date(e.q.getFullYear(),e.q.getMonth(),i,t+l,e.q.getMinutes()+c,e.q.getSeconds(),e.q.getMilliseconds()),e.q.setTime(o.getTime()))),a=e.q.getTime(),e.q.setTime(a+36e5),e.q.getHours()!=t&&e.q.setTime(a)}function dHe(e,t){var n,r,i,o;if(kEe(t,"Path-Like Graph Wrapping",1),0!=e.b.c.length)if(null==(i=new xIe(e)).i&&(i.i=Gie(i,new _o)),n=Uy(i.i)*i.f/(null==i.i&&(i.i=Gie(i,new _o)),Uy(i.i)),i.b>n)jCe(t);else{switch($H(vSe(e,(jVe(),$vt)),337).g){case 2:o=new So;break;case 0:o=new go;break;default:o=new Co}if(r=o.Vf(e,i),!o.Wf())switch($H(vSe(e,Wvt),338).g){case 2:r=Wke(i,r);break;case 1:r=BEe(i,r)}tQe(e,i,r),jCe(t)}else jCe(t)}function hHe(e,t){var n,r,i,o;if(c0(e.d,e.e),e.c.a.$b(),0!=Uy(xB(vSe(t.j,(jVe(),Tgt))))||0!=Uy(xB(vSe(t.j,Tgt))))for(n=XJe,UO(vSe(t.j,Igt))!==UO((vle(),DAt))&&lle(t.j,(lKe(),qdt),(lR(),!0)),o=$H(vSe(t.j,Nvt),19).a,i=0;i<o&&!((r=pje(e,t))<n&&(n=r,Iie(e),0==n));i++);else for(n=RKe,UO(vSe(t.j,Igt))!==UO((vle(),DAt))&&lle(t.j,(lKe(),qdt),(lR(),!0)),o=$H(vSe(t.j,Nvt),19).a,i=0;i<o&&!((r=gje(e,t))<n&&(n=r,Iie(e),0==n));i++);}function fHe(e,t){var n,r,i,o,a,s;for(i=new Dv,o=0,n=0,a=0;o<t.c.length-1&&n<e.gc();){for(r=$H(e.Xb(n),19).a+a;(u0(o+1,t.c.length),$H(t.c[o+1],19)).a<r;)++o;for(s=0,r-(u0(o,t.c.length),$H(t.c[o],19)).a>(u0(o+1,t.c.length),$H(t.c[o+1],19)).a-r&&++s,GH(i,(u0(o+s,t.c.length),$H(t.c[o+s],19))),a+=(u0(o+s,t.c.length),$H(t.c[o+s],19)).a-r,++n;n<e.gc()&&$H(e.Xb(n),19).a+a<=(u0(o+s,t.c.length),$H(t.c[o+s],19)).a;)++n;o+=1+s}return i}function pHe(e){var t,n,r,i,o;if(!e.d){if(o=new Tl,null==(t=EDt).a.zc(e,t)){for(n=new ON(bX(e));n.e!=n.i.gc();)gV(o,pHe($H(bve(n),26)));t.a.Bc(e),t.a.gc()}for(i=o.i,!e.q&&(e.q=new eG(VIt,e,11,10)),r=new ON(e.q);r.e!=r.i.gc();++i)$H(bve(r),399);gV(o,(!e.q&&(e.q=new eG(VIt,e,11,10)),e.q)),rue(o),e.d=new DM(($H(Gte(Kq((KV(),JIt).o),9),18),o.i),o.g),e.e=$H(o.g,673),null==e.e&&(e.e=SDt),S5(e).b&=-17}return e.d}function gHe(e,t,n,r){var i,o,a,s,l,c;if(c=iLe(e.e.Tg(),t),l=0,i=$H(e.g,119),XS(),$H(t,66).Oj()){for(a=0;a<e.i;++a)if(o=i[a],c.rl(o.ak())){if(Dde(o,n))return l;++l}}else if(null!=n){for(s=0;s<e.i;++s)if(o=i[s],c.rl(o.ak())){if(Dde(n,o.dd()))return l;++l}if(r)for(l=0,a=0;a<e.i;++a)if(o=i[a],c.rl(o.ak())){if(UO(n)===UO(lB(e,$H(o.dd(),56))))return l;++l}}else for(a=0;a<e.i;++a)if(o=i[a],c.rl(o.ak())){if(null==o.dd())return l;++l}return-1}function mHe(e,t,n,r,i){var o,a,s,l,c,u,d,h,f;for(Eq(),vD(e,new Gs),a=QH(e),f=new Dv,h=new Dv,s=null,l=0;0!=a.b;)o=$H(0==a.b?null:(SL(0!=a.b),Ote(a,a.a.a)),157),!s||tz(s)*ez(s)/2<tz(o)*ez(o)?(s=o,f.c[f.c.length]=o):(l+=tz(o)*ez(o),h.c[h.c.length]=o,h.c.length>1&&(l>tz(s)*ez(s)/2||0==a.b)&&(d=new Ute(h),u=tz(s)/ez(s),c=AVe(d,t,new db,n,r,i,u),zP(bM(d.e),c),s=d,f.c[f.c.length]=d,l=0,h.c=N8(Met,jKe,1,0,5,1)));return pse(f,h),f}function vHe(e,t,n,r){var i,o,a,s,l,c,u,d,h,f,p,g;if(n.mh(t)&&(u=(f=t)?$H(r,49).xh(f):null))if(g=n.bh(t,e.a),(p=t.t)>1||-1==p)if(d=$H(g,69),h=$H(u,69),d.dc())h.$b();else for(a=!!CAe(t),o=0,s=e.a?d.Kc():d.Zh();s.Ob();)c=$H(s.Pb(),56),(i=$H(uee(e,c),56))?(a?-1==(l=h.Xc(i))?h.Xh(o,i):o!=l&&h.ji(o,i):h.Xh(o,i),++o):e.b&&!a&&(h.Xh(o,c),++o);else null==g?u.Wb(null):null==(i=uee(e,g))?e.b&&!CAe(t)&&u.Wb(g):u.Wb(i)}function AHe(e,t){var n,i,o,a,s,l,c,d;for(n=new Nn,o=new aW(XN(cfe(t).a.Kc(),new u));fIe(o);)if(!d5(i=$H(z5(o),17))&&eEe(l=i.c.i,Wst)){if(-1==(d=VBe(e,l,Wst,zst)))continue;n.b=r.Math.max(n.b,d),!n.a&&(n.a=new Dv),GH(n.a,l)}for(s=new aW(XN(ufe(t).a.Kc(),new u));fIe(s);)if(!d5(a=$H(z5(s),17))&&eEe(c=a.d.i,zst)){if(-1==(d=VBe(e,c,zst,Wst)))continue;n.d=r.Math.max(n.d,d),!n.c&&(n.c=new Dv),GH(n.c,c)}return n}function bHe(e){var t,n,r,i;if(MMe(),t=CJ(e),e<ant.length)return ant[t];if(e<=50)return oMe((kBe(),Ztt),t);if(e<=VYe)return U5(oMe(ont[1],t),t);if(e>1e6)throw jv(new ky("power of ten too big"));if(e<=RKe)return U5(oMe(ont[1],t),t);for(i=r=oMe(ont[1],RKe),n=cae(e-RKe),t=CJ(e%RKe);Vue(n,RKe)>0;)i=Dee(i,r),n=tfe(n,RKe);for(i=U5(i=Dee(i,oMe(ont[1],t)),RKe),n=cae(e-RKe);Vue(n,RKe)>0;)i=U5(i,RKe),n=tfe(n,RKe);return U5(i,t)}function yHe(e,t){var n,r,i,o,a,s,l,c;for(kEe(t,"Hierarchical port dummy size processing",1),s=new Dv,c=new Dv,n=2*Uy(xB(vSe(e,(jVe(),bvt)))),i=new Gf(e.b);i.a<i.c.c.length;){for(r=$H(J0(i),29),s.c=N8(Met,jKe,1,0,5,1),c.c=N8(Met,jKe,1,0,5,1),a=new Gf(r.a);a.a<a.c.c.length;)(o=$H(J0(a),10)).k==(oCe(),xst)&&((l=$H(vSe(o,(lKe(),Kdt)),61))==(bGe(),sOt)?s.c[s.c.length]=o:l==EOt&&(c.c[c.c.length]=o));jMe(s,!0,n),jMe(c,!1,n)}jCe(t)}function wHe(e,t){var n,r,i,o,a;kEe(t,"Layer constraint postprocessing",1),0!=(a=e.b).c.length&&(u0(0,a.c.length),PFe(e,$H(a.c[0],29),$H(NQ(a,a.c.length-1),29),n=new jV(e),i=new jV(e)),0==n.a.c.length||(IZ(0,a.c.length),xC(a.c,0,n)),0==i.a.c.length||(a.c[a.c.length]=i)),IL(e,(lKe(),Jdt))&&(ABe(e,r=new jV(e),o=new jV(e)),0==r.a.c.length||(IZ(0,a.c.length),xC(a.c,0,r)),0==o.a.c.length||(a.c[a.c.length]=o)),jCe(t)}function _He(e){var t,n,r,i,o,a,s,l;for(a=new Gf(e.a);a.a<a.c.c.length;)if((o=$H(J0(a),10)).k==(oCe(),xst)&&((i=$H(vSe(o,(lKe(),Kdt)),61))==(bGe(),aOt)||i==COt))for(r=new aW(XN(lfe(o).a.Kc(),new u));fIe(r);)0!=(t=(n=$H(z5(r),17)).a).b&&((s=n.c).i==o&&(SL(0!=t.b),$H(t.a.a.c,8).b=Ole(Sse(Uw(SSt,1),sYe,8,0,[s.i.n,s.n,s.a])).b),(l=n.d).i==o&&(SL(0!=t.b),$H(t.c.b.c,8).b=Ole(Sse(Uw(SSt,1),sYe,8,0,[l.i.n,l.n,l.a])).b))}function xHe(e,t){var n,r,i,o,a,s,l;for(kEe(t,"Sort By Input Model "+vSe(e,(jVe(),Igt)),1),i=0,r=new Gf(e.b);r.a<r.c.c.length;){for(n=$H(J0(r),29),l=0==i?0:i-1,s=$H(NQ(e.b,l),29),a=new Gf(n.a);a.a<a.c.c.length;)UO(vSe(o=$H(J0(a),10),evt))!==UO((Kxe(),zkt))&&UO(vSe(o,evt))!==UO(Wkt)&&(Eq(),vD(o.j,new k9(s,awe(o))),kU(t,"Node "+o+" ports: "+o.j));Eq(),vD(n.a,new Uie(s,$H(vSe(e,Igt),339),$H(vSe(e,Ogt),378))),kU(t,"Layer "+i+": "+n),++i}jCe(t)}function EHe(e,t){var n,r,i;if(i=bje(t),qE(new LQ(null,(!t.c&&(t.c=new eG(zMt,t,9,9)),new h0(t.c,16))),new zp(i)),oWe(t,r=$H(vSe(i,(lKe(),Xdt)),21)),r.Hc((dBe(),udt)))for(n=new ON((!t.c&&(t.c=new eG(zMt,t,9,9)),t.c));n.e!=n.i.gc();)KWe(e,t,i,$H(bve(n),118));return 0!=$H(XIe(t,(jVe(),Fmt)),174).gc()&&vBe(t,i),Hy(_B(vSe(i,Wmt)))&&r.Fc(gdt),IL(i,pvt)&&xy(new ope(Uy(xB(vSe(i,pvt)))),i),UO(XIe(t,smt))===UO((ode(),gkt))?rKe(e,t,i):eVe(e,t,i),i}function SHe(e,t,n,i){var o,a,s;if(this.j=new Dv,this.k=new Dv,this.b=new Dv,this.c=new Dv,this.e=new dI,this.i=new bb,this.f=new Rv,this.d=new Dv,this.g=new Dv,GH(this.b,e),GH(this.b,t),this.e.c=r.Math.min(e.a,t.a),this.e.d=r.Math.min(e.b,t.b),this.e.b=r.Math.abs(e.a-t.a),this.e.a=r.Math.abs(e.b-t.b),o=$H(vSe(i,(jVe(),mmt)),74))for(s=sve(o,0);s.b!=s.d.c;)ine((a=$H(d3(s),8)).a,e.a)&&RU(this.i,a);n&&GH(this.j,n),GH(this.k,i)}function CHe(e,t,n){var r,i,o,a,s,l,c,u,d,h;for(u=new WW(new Np(n)),mG(s=N8(ORt,XXe,25,e.f.e.c.length,16,1),s.length),n[t.b]=0,c=new Gf(e.f.e);c.a<c.c.c.length;)(l=$H(J0(c),144)).b!=t.b&&(n[l.b]=RKe),F8(eSe(u,l));for(;0!=u.b.c.length;)for(s[(d=$H(vee(u),144)).b]=!0,o=mR(new vE(e.b,d),0);o.c;)s[(h=Mbe(i=$H(wZ(o),282),d)).b]||(a=IL(i,(nwe(),gat))?Uy(xB(vSe(i,gat))):e.c,(r=n[d.b]+a)<n[h.b]&&(n[h.b]=r,sie(u,h),F8(eSe(u,h))))}function THe(e,t,n){var r,i,o,a,s,l,c,u,d;for(i=!0,a=new Gf(e.b);a.a<a.c.c.length;){for(o=$H(J0(a),29),c=Bqe,u=null,l=new Gf(o.a);l.a<l.c.c.length;){if(s=$H(J0(l),10),d=Uy(t.p[s.p])+Uy(t.d[s.p])-s.d.d,r=Uy(t.p[s.p])+Uy(t.d[s.p])+s.o.b+s.d.a,!(d>c&&r>c)){i=!1,n.n&&kU(n,"bk node placement breaks on "+s+" which should have been after "+u);break}u=s,c=Uy(t.p[s.p])+Uy(t.d[s.p])+s.o.b+s.d.a}if(!i)break}return n.n&&kU(n,t+" is feasible: "+i),i}function kHe(e,t,n,r){var i,o,a,s,l,c,u;for(s=-1,u=new Gf(e);u.a<u.c.c.length;)(c=$H(J0(u),112)).g=s--,a=i=fz(w2(DY(OY(new LQ(null,new h0(c.f,16)),new ua),new da)).d),l=o=fz(w2(DY(OY(new LQ(null,new h0(c.k,16)),new ha),new fa)).d),r||(a=fz(w2(DY(new LQ(null,new h0(c.f,16)),new pa)).d),l=fz(w2(DY(new LQ(null,new h0(c.k,16)),new ga)).d)),c.d=a,c.a=i,c.i=l,c.b=o,0==l?n5(n,c,n.c.b,n.c):0==a&&n5(t,c,t.c.b,t.c)}function OHe(e,t,n,r){var i,o,a,s,l,c,u;if(n.d.i!=t.i){for(Fh(i=new MAe(e),(oCe(),Sst)),lle(i,(lKe(),fht),n),lle(i,(jVe(),evt),(Kxe(),Wkt)),r.c[r.c.length]=i,CZ(a=new CCe,i),Hke(a,(bGe(),COt)),CZ(s=new CCe,i),Hke(s,aOt),u=n.d,xZ(n,a),Hae(o=new hX,n),lle(o,mmt,null),EZ(o,s),xZ(o,u),c=new x2(n.b,0);c.b<c.d.gc();)SL(c.b<c.d.gc()),UO(vSe(l=$H(c.d.Xb(c.c=c.b++),70),Ygt))===UO((Lte(),zTt))&&(lle(l,zdt,n),cK(c),GH(o.b,l));AIe(i,a,s)}}function MHe(e,t,n,r){var i,o,a,s,l,c;if(n.c.i!=t.i)for(Fh(i=new MAe(e),(oCe(),Sst)),lle(i,(lKe(),fht),n),lle(i,(jVe(),evt),(Kxe(),Wkt)),r.c[r.c.length]=i,CZ(a=new CCe,i),Hke(a,(bGe(),COt)),CZ(s=new CCe,i),Hke(s,aOt),xZ(n,a),Hae(o=new hX,n),lle(o,mmt,null),EZ(o,s),xZ(o,t),AIe(i,a,s),c=new x2(n.b,0);c.b<c.d.gc();)SL(c.b<c.d.gc()),l=$H(c.d.Xb(c.c=c.b++),70),$H(vSe(l,Ygt),272)==(Lte(),zTt)&&(IL(l,zdt)||lle(l,zdt,n),cK(c),GH(o.b,l))}function IHe(e,t,n,i,o){var a,s,l,c,u,d,h,f,p,g,m,v,A,b;for(h=new Dv,v=E4(i),m=t*e.a,p=0,a=new LA,s=new LA,l=new Dv,A=0,b=0,f=0,g=0,u=0,d=0;0!=v.a.gc();)(c=Zhe(v,o,s))&&(v.a.Bc(c),l.c[l.c.length]=c,a.a.zc(c,a),p=e.f[c.p],A+=e.e[c.p]-p*e.b,b+=e.c[c.p]*e.b,d+=p*e.b,g+=e.e[c.p]),(!c||0==v.a.gc()||A>=m&&e.e[c.p]>p*e.b||b>=n*m)&&(h.c[h.c.length]=l,l=new Dv,Fie(s,a),a.a.$b(),u-=d,f=r.Math.max(f,u*e.b+g),u+=b,A=b,b=0,d=0,g=0);return new nO(f,h)}function DHe(e){var t,n,r,i,o,a,s,l,c,u,d,h;for(n=new Bf(new kf(e.c.b).a.vc().Kc());n.a.Ob();)s=$H(n.a.Pb(),42),null==(i=(t=$H(s.dd(),149)).a)&&(i=""),!(r=PB(e.c,i))&&0==i.length&&(r=Ade(e)),r&&!Ape(r.c,t,!1)&&RU(r.c,t);for(a=sve(e.a,0);a.b!=a.d.c;)o=$H(d3(a),478),c=_5(e.c,o.a),h=_5(e.c,o.b),c&&h&&RU(c.c,new nO(h,o.c));for(Aq(e.a),d=sve(e.b,0);d.b!=d.d.c;)u=$H(d3(d),478),t=BB(e.c,u.a),l=_5(e.c,u.b),t&&l&&RS(t,l,u.c);Aq(e.b)}function NHe(e,t,n){var r,i,o,a,s,l,c,u,d,h,f;o=new Eh(e),f5((a=new fwe).g),f5(a.j),MG(a.b),f5(a.d),f5(a.i),MG(a.k),MG(a.c),MG(a.e),f=dOe(a,o,null),kDe(a,o),i=f,t&&(s=eUe(c=new Eh(t)),mCe(i,Sse(Uw(JEt,1),jKe,527,0,[s]))),h=!1,d=!1,n&&(c=new Eh(n),u8e in c.a&&(h=QJ(c,u8e).ge().a),d8e in c.a&&(d=QJ(c,d8e).ge().a)),u=M_(Fne(new Wb,h),d),$Ce(new us,i,u),u8e in o.a&&nte(o,u8e,null),(h||d)&&(Jje(u,l=new gy,h,d),nte(o,u8e,l)),r=new Wm(a),zle(new kI(i),r)}function RHe(e,t,n){var r,i,o,a,s,l,c,u,d;for(a=new Ywe,c=Sse(Uw(kRt,1),lqe,25,15,[0]),i=-1,o=0,r=0,l=0;l<e.b.c.length;++l){if(!((u=$H(NQ(e.b,l),434)).b>0)){if(i=-1,32==cY(u.c,0)){if(d=c[0],Aee(t,c),c[0]>d)continue}else if(MX(t,u.c,c[0])){c[0]+=u.c.length;continue}return 0}if(i<0&&u.a&&(i=l,o=c[0],r=0),i>=0){if(s=u.b,l==i&&0==(s-=r++))return 0;if(!IGe(t,c,u,s,a)){l=i-1,c[0]=o;continue}}else if(i=-1,!IGe(t,c,u,0,a))return 0}return fGe(a,n)?c[0]:0}function LHe(e){var t,n,r,i,o,a;if(!e.f){if(a=new Sl,o=new Sl,null==(t=EDt).a.zc(e,t)){for(i=new ON(bX(e));i.e!=i.i.gc();)gV(a,LHe($H(bve(i),26)));t.a.Bc(e),t.a.gc()}for(!e.s&&(e.s=new eG(PIt,e,21,17)),r=new ON(e.s);r.e!=r.i.gc();)rN(n=$H(bve(r),170),99)&&c7(o,$H(n,18));rue(o),e.r=new _U(e,($H(Gte(Kq((KV(),JIt).o),6),18),o.i),o.g),gV(a,e.r),rue(a),e.f=new DM(($H(Gte(Kq(JIt.o),5),18),a.i),a.g),S5(e).b&=-3}return e.f}function BHe(e){var t,n,r,i,o,a,s,l,c,u,d,h,f,p;for(a=e.o,r=N8(kRt,lqe,25,a,15,1),i=N8(kRt,lqe,25,a,15,1),n=e.p,t=N8(kRt,lqe,25,n,15,1),o=N8(kRt,lqe,25,n,15,1),c=0;c<a;c++){for(d=0;d<n&&!mbe(e,c,d);)++d;r[c]=d}for(u=0;u<a;u++){for(d=n-1;d>=0&&!mbe(e,u,d);)--d;i[u]=d}for(f=0;f<n;f++){for(s=0;s<a&&!mbe(e,s,f);)++s;t[f]=s}for(p=0;p<n;p++){for(s=a-1;s>=0&&!mbe(e,s,p);)--s;o[p]=s}for(l=0;l<a;l++)for(h=0;h<n;h++)l<o[h]&&l>t[h]&&h<i[l]&&h>r[l]&&FPe(e,l,h,!1,!0)}function PHe(e){var t,n,r,i,o,a,s,l;n=Hy(_B(vSe(e,(cPe(),$ot)))),o=e.a.c.d,s=e.a.d.d,n?(a=bN(WP(new Nk(s.a,s.b),o),.5),l=bN($D(e.e),.5),t=WP(zP(new Nk(o.a,o.b),a),l),jL(e.d,t)):(i=Uy(xB(vSe(e.a,nat))),r=e.d,o.a>=s.a?o.b>=s.b?(r.a=s.a+(o.a-s.a)/2+i,r.b=s.b+(o.b-s.b)/2-i-e.e.b):(r.a=s.a+(o.a-s.a)/2+i,r.b=o.b+(s.b-o.b)/2+i):o.b>=s.b?(r.a=o.a+(s.a-o.a)/2+i,r.b=s.b+(o.b-s.b)/2+i):(r.a=o.a+(s.a-o.a)/2+i,r.b=o.b+(s.b-o.b)/2-i-e.e.b))}function FHe(e,t){var n,r,i,o,a,s,l;if(null==e)return null;if(0==(o=e.length))return"";for(l=N8(TRt,GYe,25,o,15,1),P8(0,o,e.length),P8(0,o,l.length),YG(e,0,o,l,0),n=null,s=t,i=0,a=0;i<o;i++)r=l[i],wKe(),r<=32&&2&YNt[r]?s?(!n&&(n=new cR(e)),iX(n,i-a++)):(s=t,32!=r&&(!n&&(n=new cR(e)),sY(n,i-a,i-a+1,String.fromCharCode(32)))):s=!1;return s?n?(o=n.a.length)>0?cL(n.a,0,o-1):"":e.substr(0,o-1):n?n.a:e}function $He(e){DS(e,new xEe(m_(h_(g_(p_(new ms,zJe),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new ot))),o2(e,zJe,WJe,vve(wot)),o2(e,zJe,GJe,vve(got)),o2(e,zJe,VJe,vve(uot)),o2(e,zJe,KJe,vve(mot)),o2(e,zJe,WXe,vve(bot)),o2(e,zJe,GXe,vve(Aot)),o2(e,zJe,zXe,vve(yot)),o2(e,zJe,VXe,vve(vot)),o2(e,zJe,$Je,vve(hot)),o2(e,zJe,jJe,vve(dot)),o2(e,zJe,HJe,vve(fot)),o2(e,zJe,UJe,vve(pot))}function jHe(e,t,n,r){var i,o,a,s,l,c,u;if(Fh(o=new MAe(e),(oCe(),Tst)),lle(o,(jVe(),evt),(Kxe(),Wkt)),i=0,t){for(lle(a=new CCe,(lKe(),fht),t),lle(o,fht,t.i),Hke(a,(bGe(),COt)),CZ(a,o),c=0,u=(l=X1(t.e)).length;c<u;++c)xZ(l[c],a);lle(t,wht,o),++i}if(n){for(s=new CCe,lle(o,(lKe(),fht),n.i),lle(s,fht,n),Hke(s,(bGe(),aOt)),CZ(s,o),c=0,u=(l=X1(n.g)).length;c<u;++c)EZ(l[c],s);lle(n,wht,o),++i}return lle(o,(lKe(),$dt),the(i)),r.c[r.c.length]=o,o}function HHe(){HHe=M,kMt=Sse(Uw(TRt,1),GYe,25,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),OMt=new RegExp("[ \t\n\r\f]+");try{TMt=Sse(Uw(NDt,1),jKe,2015,0,[new mv((sD(),sge("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",cP((cw(),cw(),rtt))))),new mv(sge("yyyy-MM-dd'T'HH:mm:ss'.'SSS",cP(rtt))),new mv(sge("yyyy-MM-dd'T'HH:mm:ss",cP(rtt))),new mv(sge("yyyy-MM-dd'T'HH:mm",cP(rtt))),new mv(sge("yyyy-MM-dd",cP(rtt)))])}catch(e){if(!rN(e=use(e),78))throw jv(e)}}function UHe(e){var t,n,i,o;if(i=HVe((!e.c&&(e.c=Aue(e.f)),e.c),0),0==e.e||0==e.a&&-1!=e.f&&e.e<0)return i;if(t=tre(e)<0?1:0,n=e.e,i.length,r.Math.abs(CJ(e.e)),o=new Tw,1==t&&(o.a+="-"),e.e>0)if((n-=i.length-t)>=0){for(o.a+="0.";n>Utt.length;n-=Utt.length)DQ(o,Utt);pP(o,Utt,CJ(n)),aM(o,i.substr(t))}else aM(o,cL(i,t,CJ(n=t-n))),o.a+=".",aM(o,JO(i,CJ(n)));else{for(aM(o,i.substr(t));n<-Utt.length;n+=Utt.length)DQ(o,Utt);pP(o,Utt,CJ(-n))}return o.a}function QHe(e,t,n,i){var o,a,s,l,c,u,d,h,f;return u=(c=WP(new Nk(n.a,n.b),e)).a*t.b-c.b*t.a,d=t.a*i.b-t.b*i.a,h=(c.a*i.b-c.b*i.a)/d,f=u/d,0==d?0==u?(a=G8(e,o=zP(new Nk(n.a,n.b),bN(new Nk(i.a,i.b),.5))),s=G8(zP(new Nk(e.a,e.b),t),o),l=.5*r.Math.sqrt(i.a*i.a+i.b*i.b),a<s&&a<=l?new Nk(e.a,e.b):s<=l?zP(new Nk(e.a,e.b),t):null):null:h>=0&&h<=1&&f>=0&&f<=1?zP(new Nk(e.a,e.b),bN(new Nk(t.a,t.b),h)):null}function zHe(e,t,n){var r,i,o,a,s;if(r=$H(vSe(e,(jVe(),Dgt)),21),n.a>t.a&&(r.Hc((hxe(),GSt))?e.c.a+=(n.a-t.a)/2:r.Hc(KSt)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(r.Hc((hxe(),qSt))?e.c.b+=(n.b-t.b)/2:r.Hc(YSt)&&(e.c.b+=n.b-t.b)),$H(vSe(e,(lKe(),Xdt)),21).Hc((dBe(),udt))&&(n.a>t.a||n.b>t.b))for(s=new Gf(e.a);s.a<s.c.c.length;)(a=$H(J0(s),10)).k==(oCe(),xst)&&((i=$H(vSe(a,Kdt),61))==(bGe(),aOt)?a.n.a+=n.a-t.a:i==EOt&&(a.n.b+=n.b-t.b));o=e.d,e.f.a=n.a-o.b-o.c,e.f.b=n.b-o.d-o.a}function WHe(e,t,n){var r,i,o,a,s;if(r=$H(vSe(e,(jVe(),Dgt)),21),n.a>t.a&&(r.Hc((hxe(),GSt))?e.c.a+=(n.a-t.a)/2:r.Hc(KSt)&&(e.c.a+=n.a-t.a)),n.b>t.b&&(r.Hc((hxe(),qSt))?e.c.b+=(n.b-t.b)/2:r.Hc(YSt)&&(e.c.b+=n.b-t.b)),$H(vSe(e,(lKe(),Xdt)),21).Hc((dBe(),udt))&&(n.a>t.a||n.b>t.b))for(a=new Gf(e.a);a.a<a.c.c.length;)(o=$H(J0(a),10)).k==(oCe(),xst)&&((i=$H(vSe(o,Kdt),61))==(bGe(),aOt)?o.n.a+=n.a-t.a:i==EOt&&(o.n.b+=n.b-t.b));s=e.d,e.f.a=n.a-s.b-s.c,e.f.b=n.b-s.d-s.a}function GHe(e){var t,n,i,o,a,s,l,c,u,d;for(c=new Tf(new Cf(NMe(e)).a.vc().Kc());c.a.Ob();){for(i=$H(c.a.Pb(),42),u=0,d=0,u=(l=$H(i.cd(),10)).d.d,d=l.o.b+l.d.a,e.d[l.p]=0,t=l;(o=e.a[t.p])!=l;)n=xme(t,o),s=0,s=e.c==(pJ(),Jbt)?n.d.n.b+n.d.a.b-n.c.n.b-n.c.a.b:n.c.n.b+n.c.a.b-n.d.n.b-n.d.a.b,a=Uy(e.d[t.p])+s,e.d[o.p]=a,u=r.Math.max(u,o.d.d-a),d=r.Math.max(d,a+o.o.b+o.d.a),t=o;t=l;do{e.d[t.p]=Uy(e.d[t.p])+u,t=e.a[t.p]}while(t!=l);e.b[l.p]=u+d}}function VHe(e){var t,n,i,o,a,s,l,c,u,d,h;for(e.b=!1,d=Lqe,l=Bqe,h=Lqe,c=Bqe,n=e.e.a.ec().Kc();n.Ob();)for(i=(t=$H(n.Pb(),266)).a,d=r.Math.min(d,i.c),l=r.Math.max(l,i.c+i.b),h=r.Math.min(h,i.d),c=r.Math.max(c,i.d+i.a),a=new Gf(t.c);a.a<a.c.c.length;)(o=$H(J0(a),395)).a.a?(s=(u=i.d+o.b.b)+o.c,h=r.Math.min(h,u),c=r.Math.max(c,s)):(s=(u=i.c+o.b.a)+o.c,d=r.Math.min(d,u),l=r.Math.max(l,s));e.a=new Nk(l-d,c-h),e.c=new Nk(d+e.d.a,h+e.d.b)}function KHe(e,t,n){var r,i,o,a,s,l,c,u;for(u=new Dv,o=0,Zne(c=new N1(0,n),new ice(0,0,c,n)),i=0,l=new ON(e);l.e!=l.i.gc();)s=$H(bve(l),33),r=$H(NQ(c.a,c.a.c.length-1),187),i+s.g+(0==$H(NQ(c.a,0),187).b.c.length?0:n)>t&&(i=0,o+=c.b+n,u.c[u.c.length]=c,Zne(c=new N1(o,n),r=new ice(0,c.f,c,n)),i=0),0==r.b.c.length||s.f>=r.o&&s.f<=r.f||.5*r.a<=s.f&&1.5*r.a>=s.f?Afe(r,s):(Zne(c,a=new ice(r.s+r.r+n,c.f,c,n)),Afe(a,s)),i=s.i+s.g;return u.c[u.c.length]=c,u}function YHe(e){var t,n,r,i,o,a;if(!e.a){if(e.o=null,a=new pv(e),t=new Cl,null==(n=EDt).a.zc(e,n)){for(o=new ON(bX(e));o.e!=o.i.gc();)gV(a,YHe($H(bve(o),26)));n.a.Bc(e),n.a.gc()}for(!e.s&&(e.s=new eG(PIt,e,21,17)),i=new ON(e.s);i.e!=i.i.gc();)rN(r=$H(bve(i),170),322)&&c7(t,$H(r,34));rue(t),e.k=new wU(e,($H(Gte(Kq((KV(),JIt).o),7),18),t.i),t.g),gV(a,e.k),rue(a),e.a=new DM(($H(Gte(Kq(JIt.o),4),18),a.i),a.g),S5(e).b&=-2}return e.a}function qHe(e,t,n,r,i,o,a){var s,l,c,u,d;return u=!1,s=fRe(n.q,t.f+t.b-n.q.f),!((d=i-(n.q.e+s-a))<r.g)&&(l=o==e.c.length-1&&d>=(u0(o,e.c.length),$H(e.c[o],200)).e,!((c=rUe(r,d,!1).a)>t.b&&!l)&&((l||c<=t.b)&&(l&&c>t.b?(n.d=c,g7(n,FCe(n,c))):(ixe(n.q,s),n.c=!0),g7(r,i-(n.s+n.r)),_Ae(r,n.q.e+n.q.d,t.f),Zne(t,r),e.c.length>o&&(_we((u0(o,e.c.length),$H(e.c[o],200)),r),0==(u0(o,e.c.length),$H(e.c[o],200)).a.c.length&&s6(e,o)),u=!0),u))}function XHe(e,t,n,r){var i,o,a,s,l,c,u;if(u=iLe(e.e.Tg(),t),i=0,o=$H(e.g,119),l=null,XS(),$H(t,66).Oj()){for(s=0;s<e.i;++s)if(a=o[s],u.rl(a.ak())){if(Dde(a,n)){l=a;break}++i}}else if(null!=n){for(s=0;s<e.i;++s)if(a=o[s],u.rl(a.ak())){if(Dde(n,a.dd())){l=a;break}++i}}else for(s=0;s<e.i;++s)if(a=o[s],u.rl(a.ak())){if(null==a.dd()){l=a;break}++i}return l&&(vI(e.e)&&(c=t.$j()?new d4(e.e,4,t,n,null,i,!0):IX(e,t.Kj()?2:1,t,n,t.zj(),-1,!0),r?r.Ei(c):r=c),r=_Fe(e,l,r)),r}function JHe(e,t,n,i,o,a,s){var l,c,u,d,h,f,p,g;switch(p=0,g=0,c=o.c,l=o.b,d=n.f,f=n.g,t.g){case 0:p=i.i+i.g+s,g=e.c?pEe(p,a,i,s):i.j,h=r.Math.max(c,p+f),u=r.Math.max(l,g+d);break;case 1:g=i.j+i.f+s,p=e.c?fEe(g,a,i,s):i.i,h=r.Math.max(c,p+f),u=r.Math.max(l,g+d);break;case 2:p=c+s,g=0,h=c+s+f,u=r.Math.max(l,d);break;case 3:p=0,g=l+s,h=r.Math.max(c,f),u=l+s+d;break;default:throw jv(new Py("IllegalPlacementOption."))}return new ipe(e.a,h,u,t,p,g)}function ZHe(e){var t,n,i,o,a,s,l,c,u,d,h,f;if(l=e.d,h=$H(vSe(e,(lKe(),Bht)),15),t=$H(vSe(e,Rdt),15),h||t){if(a=Uy(xB(ege(e,(jVe(),gvt)))),s=Uy(xB(ege(e,mvt))),f=0,h){for(u=0,o=h.Kc();o.Ob();)i=$H(o.Pb(),10),u=r.Math.max(u,i.o.b),f+=i.o.a;f+=a*(h.gc()-1),l.d+=u+s}if(n=0,t){for(u=0,o=t.Kc();o.Ob();)i=$H(o.Pb(),10),u=r.Math.max(u,i.o.b),n+=i.o.a;n+=a*(t.gc()-1),l.a+=u+s}(c=r.Math.max(f,n))>e.o.a&&(d=(c-e.o.a)/2,l.b=r.Math.max(l.b,d),l.c=r.Math.max(l.c,d))}}function eUe(e){var t,n,r,i,o,a;for(rI(i=new L1,(Dse(),qEt)),r=new Ef(new qy(new _E(e,yie(e,N8(Ytt,sYe,2,0,6,1))).b));r.b<r.d.gc();)SL(r.b<r.d.gc()),n=EB(r.d.Xb(r.c=r.b++)),(o=gze(cIt,n))&&null!=(a=XQe(o,(t=QJ(e,n)).je()?t.je().a:t.ge()?""+t.ge().a:t.he()?""+t.he().a:t.Ib()))&&((ER(o.j,(nve(),sSt))||ER(o.j,lSt))&&sle(Yee(i,QMt),o,a),ER(o.j,oSt)&&sle(Yee(i,BMt),o,a),ER(o.j,cSt)&&sle(Yee(i,zMt),o,a),ER(o.j,aSt)&&sle(Yee(i,UMt),o,a));return i}function tUe(e,t,n,r){var i,o,a,s,l,c;if(l=iLe(e.e.Tg(),t),o=$H(e.g,119),MLe(e.e,t)){for(i=0,s=0;s<e.i;++s)if(a=o[s],l.rl(a.ak())){if(i==n)return XS(),$H(t,66).Oj()?a:(null!=(c=a.dd())&&r&&rN(t,99)&&$H(t,18).Bb&$qe&&(c=FOe(e,t,s,i,c)),c);++i}throw jv(new Oy(e7e+n+a8e+i))}for(i=0,s=0;s<e.i;++s){if(a=o[s],l.rl(a.ak()))return XS(),$H(t,66).Oj()?a:(null!=(c=a.dd())&&r&&rN(t,99)&&$H(t,18).Bb&$qe&&(c=FOe(e,t,s,i,c)),c);++i}return t.zj()}function nUe(e,t,n){var r,i,o,a,s,l,c,u;if(i=$H(e.g,119),MLe(e.e,t))return XS(),$H(t,66).Oj()?new uQ(t,e):new NO(t,e);for(c=iLe(e.e.Tg(),t),r=0,s=0;s<e.i;++s){if(a=(o=i[s]).ak(),c.rl(a)){if(XS(),$H(t,66).Oj())return o;if(a==(_Me(),lNt)||a==oNt){for(l=new uR($fe(o.dd()));++s<e.i;)((a=(o=i[s]).ak())==lNt||a==oNt)&&aM(l,$fe(o.dd()));return pF($H(t.Yj(),148),l.a)}return null!=(u=o.dd())&&n&&rN(t,99)&&$H(t,18).Bb&$qe&&(u=FOe(e,t,s,r,u)),u}++r}return t.zj()}function rUe(e,t,n){var i,o,a,s,l,c,u,d,h,f;for(a=0,s=e.t,o=0,i=0,c=0,f=0,h=0,n&&(e.n.c=N8(Met,jKe,1,0,5,1),GH(e.n,new LJ(e.s,e.t,e.i))),l=0,d=new Gf(e.b);d.a<d.c.c.length;)a+(u=$H(J0(d),33)).g+(l>0?e.i:0)>t&&c>0&&(a=0,s+=c+e.i,o=r.Math.max(o,f),i+=c+e.i,c=0,f=0,n&&(++h,GH(e.n,new LJ(e.s,s,e.i))),l=0),f+=u.g+(l>0?e.i:0),c=r.Math.max(c,u.f),n&&sbe($H(NQ(e.n,h),211),u),a+=u.g+(l>0?e.i:0),++l;return o=r.Math.max(o,f),i+=c,n&&(e.r=o,e.d=i,Aye(e.j)),new zY(e.s,e.t,o,i)}function iUe(e,t,n,r,i){var o,a,s,l,c,u,d,h,f;if(ME(),EG(e,"src"),EG(n,"dest"),h=Zle(e),l=Zle(n),gU(!!(4&h.i),"srcType is not an array"),gU(!!(4&l.i),"destType is not an array"),d=h.c,a=l.c,gU(1&d.i?d==a:!(1&a.i),"Array types don't match"),f=e.length,c=n.length,t<0||r<0||i<0||t+i>f||r+i>c)throw jv(new cA);if(1&d.i||h==l)i>0&&Pke(e,t,n,r,i,!0);else if(u=ene(e),o=ene(n),UO(e)===UO(n)&&t<r)for(t+=i,s=r+i;s-- >r;)MV(o,s,u[--t]);else for(s=r+i;r<s;)MV(o,r++,u[t++])}function oUe(){oUe=M,rnt=Sse(Uw(kRt,1),lqe,25,15,[PYe,1162261467,kYe,1220703125,362797056,1977326743,kYe,387420489,Oqe,214358881,429981696,815730721,1475789056,170859375,268435456,410338673,612220032,893871739,128e7,1801088541,113379904,148035889,191102976,244140625,308915776,387420489,481890304,594823321,729e6,887503681,kYe,1291467969,1544804416,1838265625,60466176]),int=Sse(Uw(kRt,1),lqe,25,15,[-1,-1,31,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5])}function aUe(e){var t,n,r,i,o,a,s;for(r=new Gf(e.b);r.a<r.c.c.length;)for(o=new Gf(i1($H(J0(r),29).a));o.a<o.c.c.length;)if(Xee(i=$H(J0(o),10))&&!(n=$H(vSe(i,(lKe(),Ldt)),305)).g&&n.d)for(t=n,s=n.d;s;)ePe(s.i,s.k,!1,!0),O9(t.a),O9(s.i),O9(s.k),O9(s.b),xZ(s.c,t.c.d),xZ(t.c,null),SZ(t.a,null),SZ(s.i,null),SZ(s.k,null),SZ(s.b,null),(a=new m3(t.i,s.a,t.e,s.j,s.f)).k=t.k,a.n=t.n,a.b=t.b,a.c=s.c,a.g=t.g,a.d=s.d,lle(t.i,Ldt,a),lle(s.a,Ldt,a),s=s.d,t=a}function sUe(e,t){var n,r,i,o,a;if(a=$H(t,136),_De(e),_De(a),null!=a.b){if(e.c=!0,null==e.b)return e.b=N8(kRt,lqe,25,a.b.length,15,1),void iUe(a.b,0,e.b,0,a.b.length);for(o=N8(kRt,lqe,25,e.b.length+a.b.length,15,1),n=0,r=0,i=0;n<e.b.length||r<a.b.length;)n>=e.b.length?(o[i++]=a.b[r++],o[i++]=a.b[r++]):r>=a.b.length?(o[i++]=e.b[n++],o[i++]=e.b[n++]):a.b[r]<e.b[n]||a.b[r]===e.b[n]&&a.b[r+1]<e.b[n+1]?(o[i++]=a.b[r++],o[i++]=a.b[r++]):(o[i++]=e.b[n++],o[i++]=e.b[n++]);e.b=o}}function lUe(e,t){var n,r,i,o,a,s,l,c,u,d;return n=Hy(_B(vSe(e,(lKe(),sht)))),s=Hy(_B(vSe(t,sht))),r=$H(vSe(e,lht),11),l=$H(vSe(t,lht),11),i=$H(vSe(e,cht),11),c=$H(vSe(t,cht),11),u=!!r&&r==l,d=!!i&&i==c,n||s?(o=(!Hy(_B(vSe(e,sht)))||Hy(_B(vSe(e,aht))))&&(!Hy(_B(vSe(t,sht)))||Hy(_B(vSe(t,aht)))),a=!(Hy(_B(vSe(e,sht)))&&Hy(_B(vSe(e,aht)))||Hy(_B(vSe(t,sht)))&&Hy(_B(vSe(t,aht)))),new L$(u&&o||d&&a,u,d)):new L$($H(J0(new Gf(e.j)),11).p==$H(J0(new Gf(t.j)),11).p,u,d)}function cUe(e){var t,n,i,o,a,s,l,c;for(i=0,n=0,c=new YE,t=0,l=new Gf(e.n);l.a<l.c.c.length;)0==(s=$H(J0(l),211)).c.c.length?n5(c,s,c.c.b,c.c):(i=r.Math.max(i,s.d),n+=s.a+(t>0?e.i:0)),++t;for(Jfe(e.n,c),e.d=n,e.r=i,e.g=0,e.f=0,e.e=0,e.o=Lqe,e.p=Lqe,a=new Gf(e.b);a.a<a.c.c.length;)o=$H(J0(a),33),e.p=r.Math.min(e.p,o.g),e.g=r.Math.max(e.g,o.g),e.f=r.Math.max(e.f,o.f),e.o=r.Math.min(e.o,o.f),e.e+=o.f+e.i;e.a=e.e/e.b.c.length-e.i*((e.b.c.length-1)/e.b.c.length),Aye(e.j)}function uUe(e){var t,n,r,i;return 64&e.Db?Yhe(e):(t=new uR(V5e),(r=e.k)?aM(aM((t.a+=' "',t),r),'"'):(!e.n&&(e.n=new eG(UMt,e,1,7)),e.n.i>0&&(!(i=(!e.n&&(e.n=new eG(UMt,e,1,7)),$H(Gte(e.n,0),137)).a)||aM(aM((t.a+=' "',t),i),'"'))),!e.b&&(e.b=new lF(LMt,e,4,7)),n=!(e.b.i<=1&&(!e.c&&(e.c=new lF(LMt,e,5,8)),e.c.i<=1)),t.a+=n?" [":" ",aM(t,qN(new vw,new ON(e.b))),n&&(t.a+="]"),t.a+=e0e,n&&(t.a+="["),aM(t,qN(new vw,new ON(e.c))),n&&(t.a+="]"),t.a)}function dUe(e,t){var n,r,i,o,a,s,l;if(e.a){if(l=null,null!=(s=e.a.ne())?t.a+=""+s:null!=(a=e.a.Dj())&&(-1!=(o=UM(a,YEe(91)))?(l=a.substr(o),t.a+=""+cL(null==a?QKe:(bK(a),a),0,o)):t.a+=""+a),e.d&&0!=e.d.i){for(i=!0,t.a+="<",r=new ON(e.d);r.e!=r.i.gc();)n=$H(bve(r),87),i?i=!1:t.a+=FKe,dUe(n,t);t.a+=">"}null!=l&&(t.a+=""+l)}else e.e?null!=(s=e.e.zb)&&(t.a+=""+s):(t.a+="?",e.b?(t.a+=" super ",dUe(e.b,t)):e.f&&(t.a+=" extends ",dUe(e.f,t)))}function hUe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S;for(y=e.c,w=t.c,n=w9(y.a,e,0),r=w9(w.a,t,0),A=$H(Npe(e,(ire(),jAt)).Kc().Pb(),11),E=$H(Npe(e,HAt).Kc().Pb(),11),b=$H(Npe(t,jAt).Kc().Pb(),11),S=$H(Npe(t,HAt).Kc().Pb(),11),m=X1(A.e),_=X1(E.g),v=X1(b.e),x=X1(S.g),Kye(e,r,w),c=0,f=(o=v).length;c<f;++c)xZ(o[c],A);for(u=0,p=(a=x).length;u<p;++u)EZ(a[u],E);for(Kye(t,n,y),d=0,g=(s=m).length;d<g;++d)xZ(s[d],b);for(l=0,h=(i=_).length;l<h;++l)EZ(i[l],S)}function fUe(e,t,n,r){var i,o,a,s,l,c;if(o=Ghe(r),!Hy(_B(vSe(r,(jVe(),Tmt))))&&!Hy(_B(vSe(e,dmt)))||mI($H(vSe(e,evt),98)))switch(CZ(s=new CCe,e),t?((c=s.n).a=t.a-e.n.a,c.b=t.b-e.n.b,GCe(c,0,0,e.o.a,e.o.b),Hke(s,Q$e(s,o))):(i=lpe(o),Hke(s,n==(ire(),HAt)?i:_he(i))),a=$H(vSe(r,(lKe(),Xdt)),21),l=s.j,o.g){case 2:case 1:(l==(bGe(),sOt)||l==EOt)&&a.Fc((dBe(),pdt));break;case 4:case 3:(l==(bGe(),aOt)||l==COt)&&a.Fc((dBe(),pdt))}else i=lpe(o),s=L$e(e,n,n==(ire(),HAt)?i:_he(i));return s}function pUe(e,t,n){var i,o,a,s,l,c,u;return r.Math.abs(t.s-t.c)<uZe||r.Math.abs(n.s-n.c)<uZe?0:(i=GRe(e,t.j,n.e),o=GRe(e,n.j,t.e),a=0,-1==i||-1==o?(-1==i&&(new QZ((k6(),_yt),n,t,1),++a),-1==o&&(new QZ((k6(),_yt),t,n,1),++a)):(s=_de(t.j,n.s,n.c),s+=_de(n.e,t.s,t.c),l=_de(n.j,t.s,t.c),(c=i+16*s)<(u=o+16*(l+=_de(t.e,n.s,n.c)))?new QZ((k6(),xyt),t,n,u-c):c>u?new QZ((k6(),xyt),n,t,c-u):c>0&&u>0&&(new QZ((k6(),xyt),t,n,0),new QZ(xyt,n,t,0))),a)}function gUe(e,t){var n,i,o,a,s;for(s=new oce(new Sf(e.f.b).a);s.b;){if(o=$H((a=Zte(s)).cd(),594),1==t){if(o.gf()!=(Fde(),jTt)&&o.gf()!=BTt)continue}else if(o.gf()!=(Fde(),PTt)&&o.gf()!=FTt)continue;switch(i=$H($H(a.dd(),46).b,81),n=$H($H(a.dd(),46).a,189).c,o.gf().g){case 2:i.g.c=e.e.a,i.g.b=r.Math.max(1,i.g.b+n);break;case 1:i.g.c=i.g.c+n,i.g.b=r.Math.max(1,i.g.b-n);break;case 4:i.g.d=e.e.b,i.g.a=r.Math.max(1,i.g.a+n);break;case 3:i.g.d=i.g.d+n,i.g.a=r.Math.max(1,i.g.a-n)}}}function mUe(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m;for(l=N8(kRt,lqe,25,t.b.c.length,15,1),u=N8(Mst,MYe,267,t.b.c.length,0,1),c=N8(kst,i0e,10,t.b.c.length,0,1),f=0,p=(h=e.a).length;f<p;++f){for(m=0,s=new Gf((d=h[f]).e);s.a<s.c.c.length;)++l[i=ZM((o=$H(J0(s),10)).c)],g=Uy(xB(vSe(t,(jVe(),Avt)))),l[i]>0&&c[i]&&(g=BD(e.b,c[i],o)),m=r.Math.max(m,o.c.c.b+g);for(a=new Gf(d.e);a.a<a.c.c.length;)(o=$H(J0(a),10)).n.b=m+o.d.d,(n=o.c).c.b=m+o.d.d+o.o.b+o.d.a,u[w9(n.b.b,n,0)]=o.k,c[w9(n.b.b,n,0)]=o}}function vUe(e,t){var n,r,i,o,a,s,l,c,d,h,f;for(r=new aW(XN(fNe(t).a.Kc(),new u));fIe(r);)rN(Gte((!(n=$H(z5(r),79)).b&&(n.b=new lF(LMt,n,4,7)),n.b),0),186)||(l=SEe($H(Gte((!n.c&&(n.c=new lF(LMt,n,5,8)),n.c),0),82)),JMe(n)||(a=t.i+t.g/2,s=t.j+t.f/2,d=l.i+l.g/2,h=l.j+l.f/2,(f=new U_).a=d-a,f.b=h-s,zwe(o=new Nk(f.a,f.b),t.g,t.f),f.a-=o.a,f.b-=o.b,a=d-f.a,s=h-f.b,zwe(c=new Nk(f.a,f.b),l.g,l.f),f.a-=c.a,f.b-=c.b,d=a+f.a,h=s+f.b,Tne(i=rBe(n,!0,!0),a),One(i,s),_ne(i,d),kne(i,h),vUe(e,l)))}function AUe(e){DS(e,new xEe(m_(h_(g_(p_(new ms,L4e),"ELK SPOrE Compaction"),"ShrinkTree is a compaction algorithm that maintains the topology of a layout. The relocation of diagram elements is based on contracting a spanning tree."),new ns))),o2(e,L4e,B4e,vve(bEt)),o2(e,L4e,P4e,vve(mEt)),o2(e,L4e,F4e,vve(gEt)),o2(e,L4e,$4e,vve(fEt)),o2(e,L4e,j4e,vve(pEt)),o2(e,L4e,KJe,hEt),o2(e,L4e,mZe,8),o2(e,L4e,H4e,vve(AEt)),o2(e,L4e,U4e,vve(lEt)),o2(e,L4e,Q4e,vve(cEt)),o2(e,L4e,W2e,(lR(),!1))}function bUe(e,t){var n,i,o,a,s,l,c,u,d,h;for(kEe(t,"Simple node placement",1),h=$H(vSe(e,(lKe(),Oht)),304),l=0,a=new Gf(e.b);a.a<a.c.c.length;){for((s=(i=$H(J0(a),29)).c).b=0,n=null,u=new Gf(i.a);u.a<u.c.c.length;)c=$H(J0(u),10),n&&(s.b+=Tge(c,n,h.c)),s.b+=c.d.d+c.o.b+c.d.a,n=c;l=r.Math.max(l,s.b)}for(o=new Gf(e.b);o.a<o.c.c.length;)for(d=(l-(s=(i=$H(J0(o),29)).c).b)/2,n=null,u=new Gf(i.a);u.a<u.c.c.length;)c=$H(J0(u),10),n&&(d+=Tge(c,n,h.c)),d+=c.d.d,c.n.b=d,d+=c.o.b+c.d.a,n=c;jCe(t)}function yUe(e,t,n,r){var i,o,a,s,l,c,u,d;if(0==r.gc())return!1;if(XS(),a=(l=$H(t,66).Oj())?r:new pte(r.gc()),MLe(e.e,t)){if(t.hi())for(u=r.Kc();u.Ob();)zje(e,t,c=u.Pb(),rN(t,99)&&!!($H(t,18).Bb&$qe))||(o=X3(t,c),a.Fc(o));else if(!l)for(u=r.Kc();u.Ob();)o=X3(t,c=u.Pb()),a.Fc(o)}else{for(d=iLe(e.e.Tg(),t),i=$H(e.g,119),s=0;s<e.i;++s)if(o=i[s],d.rl(o.ak()))throw jv(new Py(T9e));if(r.gc()>1)throw jv(new Py(T9e));l||(o=X3(t,r.Kc().Pb()),a.Fc(o))}return ale(e,wTe(e,t,n),a)}function wUe(e,t){var n,r,i,o;for(Kte(t.b.j),qE(MY(new LQ(null,new h0(t.d,16)),new oo),new ao),o=new Gf(t.d);o.a<o.c.c.length;){switch((i=$H(J0(o),101)).e.g){case 0:n=$H(NQ(i.j,0),113).d.j,Hh(i,$H(MR(kW($H(l6(i.k,n),15).Oc(),Kct)),113)),jh(i,$H(MR(TW($H(l6(i.k,n),15).Oc(),Kct)),113));break;case 1:r=jye(i),Hh(i,$H(MR(kW($H(l6(i.k,r[0]),15).Oc(),Kct)),113)),jh(i,$H(MR(TW($H(l6(i.k,r[1]),15).Oc(),Kct)),113));break;case 2:VTe(e,i);break;case 3:BRe(i);break;case 4:URe(e,i)}Vte(i)}e.a=null}function _Ue(e,t,n){var r,i,o,a,s,l,c,u;return r=e.a.o==(aZ(),ryt)?Lqe:Bqe,!(s=rje(e,new ik(t,n))).a&&s.c?(RU(e.d,s),r):s.a?(i=s.a.c,l=s.a.d,n?(c=e.a.c==(pJ(),Zbt)?l:i,o=e.a.c==Zbt?i:l,a=e.a.g[o.i.p],u=Uy(e.a.p[a.p])+Uy(e.a.d[o.i.p])+o.n.b+o.a.b-Uy(e.a.d[c.i.p])-c.n.b-c.a.b):(c=e.a.c==(pJ(),Jbt)?l:i,o=e.a.c==Jbt?i:l,u=Uy(e.a.p[e.a.g[o.i.p].p])+Uy(e.a.d[o.i.p])+o.n.b+o.a.b-Uy(e.a.d[c.i.p])-c.n.b-c.a.b),e.a.n[e.a.g[i.i.p].p]=(lR(),!0),e.a.n[e.a.g[l.i.p].p]=!0,u):r}function xUe(e,t,n){var r,i,o,a,s,l,c;if(MLe(e.e,t))XS(),OMe((s=$H(t,66).Oj()?new uQ(t,e):new NO(t,e)).c,s.b),XD(s,$H(n,14));else{for(c=iLe(e.e.Tg(),t),r=$H(e.g,119),o=0;o<e.i;++o)if(i=r[o].ak(),c.rl(i)){if(i==(_Me(),lNt)||i==oNt){for(a=o,(l=kAe(e,t,n))?cBe(e,o):++o;o<e.i;)(i=r[o].ak())==lNt||i==oNt?cBe(e,o):++o;l||$H(aAe(e,a,X3(t,n)),72)}else kAe(e,t,n)?cBe(e,o):$H(aAe(e,o,(XS(),$H(t,66).Oj()?$H(n,72):X3(t,n))),72);return}kAe(e,t,n)||c7(e,(XS(),$H(t,66).Oj()?$H(n,72):X3(t,n)))}}function EUe(e,t,n){var r,i,o,a,s,l,c,u;return Dde(n,e.b)||(e.b=n,o=new Xe,a=$H(S4(MY(new LQ(null,new h0(n.f,16)),o),N9(new q,new X,new ie,new oe,Sse(Uw(Jnt,1),MYe,132,0,[(Hce(),Wnt),znt]))),21),e.e=!0,e.f=!0,e.c=!0,e.d=!0,i=a.Hc((jve(),$it)),r=a.Hc(jit),i&&!r&&(e.f=!1),!i&&r&&(e.d=!1),i=a.Hc(Fit),r=a.Hc(Hit),i&&!r&&(e.c=!1),!i&&r&&(e.e=!1)),u=$H(e.a.Ce(t,n),46),l=$H(u.a,19).a,c=$H(u.b,19).a,s=!1,l<0?e.c||(s=!0):e.e||(s=!0),c<0?e.d||(s=!0):e.f||(s=!0),s?EUe(e,u,n):u}function SUe(e){var t,n,i,o;o=e.o,HB(),e.A.dc()||Dde(e.A,Mit)?t=o.b:(t=xOe(e.f),e.A.Hc((vge(),LOt))&&!e.B.Hc((JFe(),WOt))&&(t=r.Math.max(t,xOe($H(aY(e.p,(bGe(),aOt)),244))),t=r.Math.max(t,xOe($H(aY(e.p,COt),244)))),(n=aae(e))&&(t=r.Math.max(t,n.b)),e.A.Hc(BOt)&&(e.q!=(Kxe(),Gkt)&&e.q!=Wkt||(t=r.Math.max(t,WU($H(aY(e.b,(bGe(),aOt)),124))),t=r.Math.max(t,WU($H(aY(e.b,COt),124)))))),Hy(_B(e.e.yf().We((sKe(),FCt))))?o.b=r.Math.max(o.b,t):o.b=t,(i=e.f.i).d=0,i.a=t,Uje(e.f)}function CUe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f;for(u=0;u<t.length;u++){for(a=e.Kc();a.Ob();)$H(a.Pb(),225).Of(u,t);for(d=0;d<t[u].length;d++){for(s=e.Kc();s.Ob();)$H(s.Pb(),225).Pf(u,d,t);for(f=t[u][d].j,h=0;h<f.c.length;h++){for(l=e.Kc();l.Ob();)$H(l.Pb(),225).Qf(u,d,h,t);for(u0(h,f.c.length),n=0,i=new v6($H(f.c[h],11).b);AD(i.a)||AD(i.b);)for(r=$H(AD(i.a)?J0(i.a):J0(i.b),17),c=e.Kc();c.Ob();)$H(c.Pb(),225).Nf(u,d,h,n++,r,t)}}}for(o=e.Kc();o.Ob();)$H(o.Pb(),225).Mf()}function TUe(e,t){var n,r,i,o,a;for(e.b=Uy(xB(vSe(t,(jVe(),bvt)))),e.c=Uy(xB(vSe(t,_vt))),e.d=$H(vSe(t,nmt),336),e.a=$H(vSe(t,Sgt),275),cbe(t),i=(o=$H(S4(OY(OY(hee(hee(new LQ(null,new h0(t.b,16)),new yn),new wn),new _n),new xn),v7(new U,new H,new re,Sse(Uw(Jnt,1),MYe,132,0,[(Hce(),znt)]))),15)).Kc();i.Ob();)n=$H(i.Pb(),17),$H(vSe(n,(lKe(),Dht)),15).Jc(new eg(e)),lle(n,Dht,null);for(r=o.Kc();r.Ob();)n=$H(r.Pb(),17),a=$H(vSe(n,(lKe(),Nht)),17),FVe(e,$H(vSe(n,Mht),15),a),lle(n,Mht,null)}function kUe(e){e.b=null,e.a=null,e.o=null,e.q=null,e.v=null,e.w=null,e.B=null,e.p=null,e.Q=null,e.R=null,e.S=null,e.T=null,e.U=null,e.V=null,e.W=null,e.bb=null,e.eb=null,e.ab=null,e.H=null,e.db=null,e.c=null,e.d=null,e.f=null,e.n=null,e.r=null,e.s=null,e.u=null,e.G=null,e.J=null,e.e=null,e.j=null,e.i=null,e.g=null,e.k=null,e.t=null,e.F=null,e.I=null,e.L=null,e.M=null,e.O=null,e.P=null,e.$=null,e.N=null,e.Z=null,e.cb=null,e.K=null,e.D=null,e.A=null,e.C=null,e._=null,e.fb=null,e.X=null,e.Y=null,e.gb=!1,e.hb=!1}function OUe(e){var t,n,r,i,o;if(e.k!=(oCe(),Cst))return!1;if(e.j.c.length<=1)return!1;if($H(vSe(e,(jVe(),evt)),98)==(Kxe(),Wkt))return!1;if(dAe(),(r=(e.q?e.q:(Eq(),Eq(),cnt))._b(Lmt)?$H(vSe(e,Lmt),197):$H(vSe(mK(e),Bmt),197))==uAt)return!1;if(r!=cAt&&r!=lAt){if(i=Uy(xB(ege(e,Dvt))),!(t=$H(vSe(e,Ivt),142))&&(t=new jP(i,i,i,i)),o=ife(e,(bGe(),COt)),t.d+t.a+(o.gc()-1)*i>e.o.b)return!1;if(n=ife(e,aOt),t.d+t.a+(n.gc()-1)*i>e.o.b)return!1}return!0}function MUe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p;if(a=e.e,l=t.e,0==a)return t;if(0==l)return e;if((o=e.d)+(s=t.d)==2)return n=e1(e.a[0],zqe),r=e1(t.a[0],zqe),a==l?(p=fz(u=nfe(n,r)),0==(f=fz(yW(u,32)))?new W6(a,p):new uG(a,2,Sse(Uw(kRt,1),lqe,25,15,[p,f]))):Jme(a<0?tfe(r,n):tfe(n,r));if(a==l)h=a,d=o>=s?D8(e.a,o,t.a,s):D8(t.a,s,e.a,o);else{if(0==(i=o!=s?o>s?1:-1:xce(e.a,t.a,o)))return kBe(),tnt;1==i?(h=a,d=f6(e.a,o,t.a,s)):(h=l,d=f6(t.a,s,e.a,o))}return W1(c=new uG(h,d.length,d)),c}function IUe(e,t,n,i,o,a,s){var l,c,u,d,h,f,p;return h=Hy(_B(vSe(t,(jVe(),kmt)))),f=null,a==(ire(),jAt)&&i.c.i==n?f=i.c:a==HAt&&i.d.i==n&&(f=i.d),(u=s)&&h&&!f?(GH(u.e,i),p=r.Math.max(Uy(xB(vSe(u.d,imt))),Uy(xB(vSe(i,imt)))),lle(u.d,imt,p)):(bGe(),d=SOt,f?d=f.j:mI($H(vSe(n,evt),98))&&(d=a==jAt?COt:aOt),c=NUe(e,t,n,a,d,i),l=G5((mK(n),i)),a==jAt?(EZ(l,$H(NQ(c.j,0),11)),xZ(l,o)):(EZ(l,o),xZ(l,$H(NQ(c.j,0),11))),u=new Qde(i,l,c,$H(vSe(c,(lKe(),fht)),11),a,!f)),qOe(e.a,i,new I$(u.d,t,a)),u}function DUe(e,t){var n,r,i,o,a,s,l,c,u,d;if(u=null,e.d&&(u=$H(EJ(e.d,t),138)),!u){if(d=(o=e.a.Mh()).i,!e.d||DE(e.d)!=d){for(l=new Nv,e.d&&_oe(l,e.d),s=c=l.f.c+l.g.c;s<d;++s)r=$H(Gte(o,s),138),(n=$H(null==(i=Cde(e.e,r).ne())?yke(l.f,null,r):ofe(l.g,i,r),138))&&n!=r&&(null==i?yke(l.f,null,n):ofe(l.g,i,n));if(l.f.c+l.g.c!=d)for(a=0;a<c;++a)r=$H(Gte(o,a),138),(n=$H(null==(i=Cde(e.e,r).ne())?yke(l.f,null,r):ofe(l.g,i,r),138))&&n!=r&&(null==i?yke(l.f,null,n):ofe(l.g,i,n));e.d=l}u=$H(EJ(e.d,t),138)}return u}function NUe(e,t,n,r,i,o){var a,s,l,c,u,d;return a=null,c=r==(ire(),jAt)?o.c:o.d,l=Ghe(t),c.i==n?(a=$H(LV(e.b,c),10))||(lle(a=dVe(c,$H(vSe(n,(jVe(),evt)),98),i,jFe(c),null,c.n,c.o,l,t),(lKe(),fht),c),VK(e.b,c,a)):(s=Oxe(a=dVe((u=new Je,d=Uy(xB(vSe(t,(jVe(),Avt))))/2,sle(u,Zmt,d),u),$H(vSe(n,evt),98),i,r==jAt?-1:1,null,new U_,new Nk(0,0),l,t),n,r),lle(a,(lKe(),fht),s),VK(e.b,s,a)),$H(vSe(t,(lKe(),Xdt)),21).Fc((dBe(),udt)),mI($H(vSe(t,(jVe(),evt)),98))?lle(t,evt,(Kxe(),Vkt)):lle(t,evt,(Kxe(),Kkt)),a}function RUe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g;kEe(t,"Orthogonal edge routing",1),c=Uy(xB(vSe(e,(jVe(),Ovt)))),n=Uy(xB(vSe(e,bvt))),r=Uy(xB(vSe(e,_vt))),h=new cV(0,n),g=0,a=new x2(e.b,0),s=null,u=null,l=null,d=null;do{d=(u=a.b<a.d.gc()?(SL(a.b<a.d.gc()),$H(a.d.Xb(a.c=a.b++),29)):null)?u.a:null,s&&(_Qe(s,g),g+=s.c.a),p=Oze(h,e,l,d,s?g+r:g),i=!s||VO(l,(fLe(),yyt)),o=!u||VO(d,(fLe(),yyt)),p>0?(f=(p-1)*n,s&&(f+=r),u&&(f+=r),f<c&&!i&&!o&&(f=c),g+=f):!i&&!o&&(g+=c),s=u,l=d}while(u);e.f.a=g,jCe(t)}function LUe(){var e;LUe=M,yIt=new Eb,AIt=N8(Ytt,sYe,2,0,6,1),xIt=t1($se(33,58),$se(1,26)),EIt=t1($se(97,122),$se(65,90)),SIt=$se(48,57),wIt=t1(xIt,0),_It=t1(EIt,SIt),CIt=t1(t1(0,$se(1,6)),$se(33,38)),TIt=t1(t1(SIt,$se(65,70)),$se(97,102)),DIt=t1(wIt,fve("-_.!~*'()")),NIt=t1(_It,Wpe("-_.!~*'()")),fve(o7e),Wpe(o7e),t1(DIt,fve(";:@&=+$,")),t1(NIt,Wpe(";:@&=+$,")),kIt=fve(":/?#"),OIt=Wpe(":/?#"),MIt=fve("/?#"),IIt=Wpe("/?#"),(e=new LA).a.zc("jar",e),e.a.zc("zip",e),e.a.zc("archive",e),Eq(),bIt=new Ow(e)}function BUe(e,t){var n,r,i,o,a;if(lle(t,(HQe(),awt),0),i=$H(vSe(t,iwt),86),0==t.d.b)i?(a=Uy(xB(vSe(i,cwt)))+e.a+w5(i,t),lle(t,cwt,a)):lle(t,cwt,0);else{for(n=new hm(sve(new dm(t).a.d,0));wx(n.a);)BUe(e,$H(d3(n.a),188).c);r=$H(tN(new hm(sve(new dm(t).a.d,0))),86),o=(Uy(xB(vSe($H(_R(new hm(sve(new dm(t).a.d,0))),86),cwt)))+Uy(xB(vSe(r,cwt))))/2,i?(a=Uy(xB(vSe(i,cwt)))+e.a+w5(i,t),lle(t,cwt,a),lle(t,awt,Uy(xB(vSe(t,cwt)))-o),Tze(e,t)):lle(t,cwt,o)}}function PUe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f;s=0,f=0,l=_J(e.f,e.f.length),o=e.d,a=e.i,r=e.a,i=e.b;do{for(h=0,c=new Gf(e.p);c.a<c.c.c.length;)d=kze(e,$H(J0(c),10)),n=!0,(e.q==(sRe(),_At)||e.q==SAt)&&(n=Hy(_B(d.b))),$H(d.a,19).a<0&&n?(++h,l=_J(e.f,e.f.length),e.d=e.d+$H(d.a,19).a,f+=o-e.d,o=e.d+$H(d.a,19).a,a=e.i,r=i1(e.a),i=i1(e.b)):(e.f=_J(l,l.length),e.d=o,e.a=(AV(r),r?new ZF(r):jH(new Gf(r))),e.b=(AV(i),i?new ZF(i):jH(new Gf(i))),e.i=a);++s,u=0!=h&&Hy(_B(t.Kb(new nO(the(f),the(s)))))}while(u)}function FUe(e,t,n,i){var o,a,s,l,c,u,d,h,f,p,g,m,v,A,b;return a=e.f,h=t.f,s=a==(YNe(),Nxt)||a==Lxt,l=a==Rxt||a==Bxt,f=h==Rxt||h==Bxt,c=a==Rxt||a==Nxt,p=h==Rxt||h==Nxt,!s||h!=Nxt&&h!=Lxt?l&&f?e.f==Bxt?e:t:c&&p?(a==Rxt?(d=e,u=t):(d=t,u=e),g=n.j+n.f,m=d.e+i.f,v=r.Math.max(g,m)-r.Math.min(n.j,d.e),o=(d.d+i.g-n.i)*v,A=n.i+n.g,b=u.d+i.g,o<=(r.Math.max(A,b)-r.Math.min(n.i,u.d))*(u.e+i.f-n.j)?e.f==Rxt?e:t:e.f==Nxt?e:t):e:e.f==Lxt?e:t}function $Ue(e){var t,n,r,i,o,a,s,l,c,u;for(c=e.e.a.c.length,o=new Gf(e.e.a);o.a<o.c.c.length;)$H(J0(o),121).j=!1;for(e.i=N8(kRt,lqe,25,c,15,1),e.g=N8(kRt,lqe,25,c,15,1),e.n=new Dv,i=0,u=new Dv,s=new Gf(e.e.a);s.a<s.c.c.length;)(a=$H(J0(s),121)).d=i++,0==a.b.a.c.length&&GH(e.n,a),pse(u,a.g);for(t=0,r=new Gf(u);r.a<r.c.c.length;)(n=$H(J0(r),213)).c=t++,n.f=!1;l=u.c.length,null==e.b||e.b.length<l?(e.b=N8(DRt,Hqe,25,l,15,1),e.c=N8(ORt,XXe,25,l,16,1)):Jy(e.c),e.d=u,e.p=new IR(ete(e.d.c.length)),e.j=1}function jUe(e,t){var n,r,i,o,a,s,l,c,u;if(!(t.e.c.length<=1)){for(e.f=t,e.d=$H(vSe(e.f,(nwe(),mat)),379),e.g=$H(vSe(e.f,yat),19).a,e.e=Uy(xB(vSe(e.f,vat))),e.c=Uy(xB(vSe(e.f,gat))),rV(e.b),i=new Gf(e.f.c);i.a<i.c.c.length;)r=$H(J0(i),282),AFe(e.b,r.c,r,null),AFe(e.b,r.d,r,null);for(s=e.f.e.c.length,e.a=bQ(DRt,[sYe,Hqe],[104,25],15,[s,s],2),c=new Gf(e.f.e);c.a<c.c.c.length;)CHe(e,l=$H(J0(c),144),e.a[l.b]);for(e.i=bQ(DRt,[sYe,Hqe],[104,25],15,[s,s],2),o=0;o<s;++o)for(a=0;a<s;++a)u=1/((n=e.a[o][a])*n),e.i[o][a]=u}}function HUe(e){var t,n,r,i;if(!(null==e.b||e.b.length<=2||e.a)){for(t=0,i=0;i<e.b.length;){for(t!=i?(e.b[t]=e.b[i++],e.b[t+1]=e.b[i++]):i+=2,n=e.b[t+1];i<e.b.length&&!(n+1<e.b[i]);)if(n+1==e.b[i])e.b[t+1]=e.b[i+1],n=e.b[t+1],i+=2;else if(n>=e.b[i+1])i+=2;else{if(!(n<e.b[i+1]))throw jv(new fy("Token#compactRanges(): Internel Error: ["+e.b[t]+","+e.b[t+1]+"] ["+e.b[i]+","+e.b[i+1]+"]"));e.b[t+1]=e.b[i+1],n=e.b[t+1],i+=2}t+=2}t!=e.b.length&&(r=N8(kRt,lqe,25,t,15,1),iUe(e.b,0,r,0,t),e.b=r),e.a=!0}}function UUe(e,t){var n,r,i,o,a,s,l;for(a=pW(e.a).Kc();a.Ob();){if((o=$H(a.Pb(),17)).b.c.length>0)for(r=new ZF($H(l6(e.a,o),21)),Eq(),vD(r,new Pp(t)),i=new x2(o.b,0);i.b<i.d.gc();){switch(SL(i.b<i.d.gc()),n=$H(i.d.Xb(i.c=i.b++),70),s=-1,$H(vSe(n,(jVe(),Ygt)),272).g){case 1:s=r.c.length-1;break;case 0:s=q_e(r);break;case 2:s=0}-1!=s&&(u0(s,r.c.length),GH((l=$H(r.c[s],243)).b.b,n),$H(vSe(mK(l.b.c.i),(lKe(),Xdt)),21).Fc((dBe(),cdt)),$H(vSe(mK(l.b.c.i),Xdt),21).Fc(sdt),cK(i),lle(n,mht,o))}EZ(o,null),xZ(o,null)}}function QUe(e,t){var n,r,i,o;return n=new Fe,1==(i=2==(i=(r=$H(S4(MY(new LQ(null,new h0(e.f,16)),n),N9(new q,new X,new ie,new oe,Sse(Uw(Jnt,1),MYe,132,0,[(Hce(),Wnt),znt]))),21)).gc())?1:0)&&KO(uge($H(S4(OY(r.Lc(),new $e),Goe(yme(0),new ne)),162).a,2),0)&&(i=0),1==(o=2==(o=(r=$H(S4(MY(new LQ(null,new h0(t.f,16)),n),N9(new q,new X,new ie,new oe,Sse(Uw(Jnt,1),MYe,132,0,[Wnt,znt]))),21)).gc())?1:0)&&KO(uge($H(S4(OY(r.Lc(),new je),Goe(yme(0),new ne)),162).a,2),0)&&(o=0),i<o?-1:i==o?0:1}function zUe(e){var t,n,r,i,o,a,s,l,c,u,d;if(l=new Dv,!IL(e,(lKe(),Gdt)))return l;for(r=$H(vSe(e,Gdt),15).Kc();r.Ob();)fQe(t=$H(r.Pb(),10),e),l.c[l.c.length]=t;for(i=new Gf(e.b);i.a<i.c.c.length;)for(a=new Gf($H(J0(i),29).a);a.a<a.c.c.length;)(o=$H(J0(a),10)).k==(oCe(),xst)&&(s=$H(vSe(o,Vdt),10))&&(CZ(c=new CCe,o),Hke(c,$H(vSe(o,Kdt),61)),u=$H(NQ(s.j,0),11),EZ(d=new hX,c),xZ(d,u));for(n=new Gf(l);n.a<n.c.c.length;)SZ(t=$H(J0(n),10),$H(NQ(e.b,e.b.c.length-1),29));return l}function WUe(e){var t,n,r,i,o,a,s,l,c,u,d,h;for(o=Hy(_B(XIe(t=GJ(e),(jVe(),hmt)))),u=0,i=0,c=new ON((!e.e&&(e.e=new lF(BMt,e,7,4)),e.e));c.e!=c.i.gc();)a=(s=KOe(l=$H(bve(c),79)))&&o&&Hy(_B(XIe(l,fmt))),h=SEe($H(Gte((!l.c&&(l.c=new lF(LMt,l,5,8)),l.c),0),82)),s&&a?++i:s&&!a?++u:qJ(h)==t||h==t?++i:++u;for(r=new ON((!e.d&&(e.d=new lF(BMt,e,8,5)),e.d));r.e!=r.i.gc();)a=(s=KOe(n=$H(bve(r),79)))&&o&&Hy(_B(XIe(n,fmt))),d=SEe($H(Gte((!n.b&&(n.b=new lF(LMt,n,4,7)),n.b),0),82)),s&&a?++u:s&&!a?++i:qJ(d)==t||d==t?++u:++i;return u-i}function GUe(e,t){var n,r,i,o,a,s,l,c,u;if(kEe(t,"Edge splitting",1),e.b.c.length<=2)jCe(t);else{for(SL((o=new x2(e.b,0)).b<o.d.gc()),a=$H(o.d.Xb(o.c=o.b++),29);o.b<o.d.gc();)for(i=a,SL(o.b<o.d.gc()),a=$H(o.d.Xb(o.c=o.b++),29),s=new Gf(i.a);s.a<s.c.c.length;)for(l=new Gf($H(J0(s),10).j);l.a<l.c.c.length;)for(r=new Gf($H(J0(l),11).g);r.a<r.c.c.length;)(c=(n=$H(J0(r),17)).d.i.c)!=i&&c!=a&&QLe(n,(Fh(u=new MAe(e),(oCe(),Sst)),lle(u,(lKe(),fht),n),lle(u,(jVe(),evt),(Kxe(),Wkt)),SZ(u,a),u));jCe(t)}}function VUe(e,t){var n,r,i,o,a,s,l,c,u;if((a=null!=t.p&&!t.b)||kEe(t,iZe,1),o=1/(n=$H(vSe(e,(lKe(),xht)),15)).gc(),t.n)for(kU(t,"ELK Layered uses the following "+n.gc()+" modules:"),u=0,c=n.Kc();c.Ob();)kU(t,"   Slot "+(u<10?"0":"")+u+++": "+J_(Zle($H(c.Pb(),51))));for(l=n.Kc();l.Ob();)$H(l.Pb(),51).pf(e,voe(t,o));for(i=new Gf(e.b);i.a<i.c.c.length;)r=$H(J0(i),29),pse(e.a,r.a),r.a.c=N8(Met,jKe,1,0,5,1);for(s=new Gf(e.a);s.a<s.c.c.length;)SZ($H(J0(s),10),null);e.b.c=N8(Met,jKe,1,0,5,1),a||jCe(t)}function KUe(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x;i=Uy(xB(vSe(t,(jVe(),Rmt)))),h=4,o=3,_=20/(w=$H(vSe(t,Nvt),19).a),f=!1,c=0,s=RKe;do{for(a=1!=c,d=0!=c,x=0,A=0,y=(m=e.a).length;A<y;++A)(p=m[A]).f=null,$We(e,p,a,d,i),x+=r.Math.abs(p.a);do{l=z$e(e,t)}while(l);for(v=0,b=(g=e.a).length;v<b;++v)if(0!=(n=hG(p=g[v]).a))for(u=new Gf(p.e);u.a<u.c.c.length;)$H(J0(u),10).n.b+=n;0==c||1==c?--h<=0&&(x<s||-h>w)?(c=2,s=RKe):0==c?(c=1,s=x):(c=0,s=x):(f=x>=s||s-x<_,s=x,f&&--o)}while(!(f&&o<=0))}function YUe(e,t,n){var r,i,o,a,s,l,c,u,d,h,f,p;for(p=new Nv,o=e.a.ec().Kc();o.Ob();)VK(p,r=$H(o.Pb(),168),n.Je(r));for(AV(e),vD(a=e?new ZF(e):jH(e.a.ec().Kc()),new wp(p)),s=E4(a),l=new CD(t),yke((f=new Nv).f,t,l);0!=s.a.gc();){for(c=null,u=null,d=null,i=s.a.ec().Kc();i.Ob();)if(r=$H(i.Pb(),168),Uy(xB(HO(OX(p.f,r))))<=Lqe){if(lG(f,r.a)&&!lG(f,r.b)){u=r.b,d=r.a,c=r;break}if(lG(f,r.b)&&!lG(f,r.a)){u=r.a,d=r.b,c=r;break}}if(!c)break;h=new CD(u),GH($H(HO(OX(f.f,d)),221).a,h),yke(f.f,u,h),s.a.Bc(c)}return l}function qUe(e,t,n){var r,i,o,a,s,l,c,u;for(kEe(n,"Depth-first cycle removal",1),l=(c=t.a).c.length,e.c=new Dv,e.d=N8(ORt,XXe,25,l,16,1),e.a=N8(ORt,XXe,25,l,16,1),e.b=new Dv,o=0,s=new Gf(c);s.a<s.c.c.length;)(a=$H(J0(s),10)).p=o,l3(cfe(a))&&GH(e.c,a),++o;for(u=new Gf(e.c);u.a<u.c.c.length;)UTe(e,$H(J0(u),10));for(i=0;i<l;i++)e.d[i]||(u0(i,c.c.length),UTe(e,$H(c.c[i],10)));for(r=new Gf(e.b);r.a<r.c.c.length;)Zje($H(J0(r),17),!0),lle(t,(lKe(),Hdt),(lR(),!0));e.c=null,e.d=null,e.a=null,e.b=null,jCe(n)}function XUe(e,t){var n,r,i,o,a,s,l;for(e.a.c=N8(Met,jKe,1,0,5,1),r=sve(t.b,0);r.b!=r.d.c;)0==(n=$H(d3(r),86)).b.b&&(lle(n,(HQe(),fwt),(lR(),!0)),GH(e.a,n));switch(e.a.c.length){case 0:lle(i=new rce(0,t,"DUMMY_ROOT"),(HQe(),fwt),(lR(),!0)),lle(i,ewt,!0),RU(t.b,i);break;case 1:break;default:for(o=new rce(0,t,"SUPER_ROOT"),s=new Gf(e.a);s.a<s.c.c.length;)lle(l=new zq(o,a=$H(J0(s),86)),(HQe(),ewt),(lR(),!0)),RU(o.a.a,l),RU(o.d,l),RU(a.b,l),lle(a,fwt,!1);lle(o,(HQe(),fwt),(lR(),!0)),lle(o,ewt,!0),RU(t.b,o)}}function JUe(e,t){var n,i,o,a,s,l;return yBe(),a=t.c-(e.c+e.b),o=e.c-(t.c+t.b),s=e.d-(t.d+t.a),n=t.d-(e.d+e.a),i=r.Math.max(o,a),l=r.Math.max(s,n),lD(),nre(O3e),(r.Math.abs(i)<=O3e||0==i||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:QM(isNaN(i),isNaN(0)))>=0^(nre(O3e),(r.Math.abs(l)<=O3e||0==l||isNaN(l)&&isNaN(0)?0:l<0?-1:l>0?1:QM(isNaN(l),isNaN(0)))>=0)?r.Math.max(l,i):(nre(O3e),(r.Math.abs(i)<=O3e||0==i||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:QM(isNaN(i),isNaN(0)))>0?r.Math.sqrt(l*l+i*i):-r.Math.sqrt(l*l+i*i))}function ZUe(e,t){var n,r,i,o,a;if(t)if(!e.a&&(e.a=new PA),2!=e.e)if(1!=t.e)0!=(a=e.a.a.c.length)?0!=(o=$H(dK(e.a,a-1),117)).e&&10!=o.e||0!=t.e&&10!=t.e?CA(e.a,t):(0==t.e||t.bm().length,0==o.e?(n=new Sw,(r=o._l())>=$qe?rM(n,Whe(r)):DV(n,r&KYe),o=new mJ(10,null,0),bG(e.a,o,a-1)):(o.bm().length,rM(n=new Sw,o.bm())),0==t.e?(r=t._l())>=$qe?rM(n,Whe(r)):DV(n,r&KYe):rM(n,t.bm()),$H(o,521).b=n.a):CA(e.a,t);else for(i=0;i<t.em();i++)ZUe(e,t.am(i));else CA(e.a,t)}function eQe(e){var t,n,r,i,o;return null!=e.g?e.g:e.a<32?(e.g=RGe(cae(e.f),CJ(e.e)),e.g):(i=HVe((!e.c&&(e.c=Aue(e.f)),e.c),0),0==e.e?i:(t=(!e.c&&(e.c=Aue(e.f)),e.c).e<0?2:1,n=i.length,r=-e.e+n-t,(o=new Cw).a+=""+i,e.e>0&&r>=-6?r>=0?bZ(o,n-CJ(e.e),String.fromCharCode(46)):(o.a=cL(o.a,0,t-1)+"0."+JO(o.a,t-1),bZ(o,t+1,$ge(Utt,0,-CJ(r)-1))):(n-t>=1&&(bZ(o,t,String.fromCharCode(46)),++n),bZ(o,n,String.fromCharCode(69)),r>0&&bZ(o,++n,String.fromCharCode(43)),bZ(o,++n,""+mW(cae(r)))),e.g=o.a,e.g))}function tQe(e,t,n){var r,i,o,a,s,l,c,u,d,h,f;if(!n.dc()){for(a=0,u=0,h=$H((r=n.Kc()).Pb(),19).a;a<t.f;){if(a==h&&(u=0,h=r.Ob()?$H(r.Pb(),19).a:t.f+1),a!=u)for(f=$H(NQ(e.b,a),29),d=$H(NQ(e.b,u),29),c=new Gf(i1(f.a));c.a<c.c.c.length;)if(Kye(l=$H(J0(c),10),d.a.c.length,d),0==u)for(o=new Gf(i1(cfe(l)));o.a<o.c.c.length;)Zje(i=$H(J0(o),17),!0),lle(e,(lKe(),Hdt),(lR(),!0)),tze(e,i,1);++u,++a}for(s=new x2(e.b,0);s.b<s.d.gc();)SL(s.b<s.d.gc()),0==$H(s.d.Xb(s.c=s.b++),29).a.c.length&&cK(s)}}function nQe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b;for(u=(a=t.b).o,l=a.d,r=Uy(xB(pve(a,(jVe(),Avt)))),i=Uy(xB(pve(a,yvt))),c=Uy(xB(pve(a,Mvt))),nU(s=new cb,l.d,l.c,l.a,l.b),h=xPe(t,r,i,c),v=new Gf(t.d);v.a<v.c.c.length;){for(p=(m=$H(J0(v),101)).f.a.ec().Kc();p.Ob();)o=(f=$H(p.Pb(),409)).a,d=wEe(f),A=new bb,dEe(f,f.c,h,A),FSe(f,d,h,A),dEe(f,f.d,h,A),n=A,n=e.Uf(f,d,n),Aq(o.a),Fie(o.a,n),qE(new LQ(null,new h0(n,16)),new hT(u,s));(g=m.i)&&(iEe(m,g,h,i),gme(u,s,b=new hI(g.g)),zP(b,g.j),gme(u,s,b))}nU(l,s.d,s.c,s.a,s.b)}function rQe(e,t,n){var r,i,o;if((i=$H(vSe(t,(jVe(),Sgt)),275))!=(qSe(),rdt)){switch(kEe(n,"Horizontal Compaction",1),e.a=t,Vw(r=new AMe(((o=new T9).d=t,o.c=$H(vSe(o.d,Xgt),218),zBe(o),Eze(o),sPe(o),o.a)),e.b),1===$H(vSe(t,Egt),422).g?Gw(r,new pie(e.a)):Gw(r,(Cq(),crt)),i.g){case 1:CDe(r);break;case 2:CDe(_We(r,(Fde(),FTt)));break;case 3:CDe(zw(_We(CDe(r),(Fde(),FTt)),new mi));break;case 4:CDe(zw(_We(CDe(r),(Fde(),FTt)),new bg(o)));break;case 5:CDe(Ww(r,hct))}_We(r,(Fde(),PTt)),r.e=!0,IWe(o),jCe(n)}}function iQe(e,t,n,r,i,o,a,s){var l,c,u,d;switch(l=o6(Sse(Uw(Fxt,1),jKe,220,0,[t,n,r,i])),d=null,e.b.g){case 1:d=o6(Sse(Uw(Z_t,1),jKe,526,0,[new Za,new Xa,new Ja]));break;case 0:d=o6(Sse(Uw(Z_t,1),jKe,526,0,[new Ja,new Xa,new Za]));break;case 2:d=o6(Sse(Uw(Z_t,1),jKe,526,0,[new Xa,new Za,new Ja]))}for(u=new Gf(d);u.a<u.c.c.length;)c=$H(J0(u),526),l.c.length>1&&(l=c.mg(l,e.a,s));return 1==l.c.length?$H(NQ(l,l.c.length-1),220):2==l.c.length?FUe((u0(0,l.c.length),$H(l.c[0],220)),(u0(1,l.c.length),$H(l.c[1],220)),a,o):null}function oQe(e){var t,n,i,o,a,s;for(kte(e.a,new Ze),n=new Gf(e.a);n.a<n.c.c.length;)t=$H(J0(n),221),i=WP($D($H(e.b,65).c),$H(t.b,65).c),eot?(s=$H(e.b,65).b,a=$H(t.b,65).b,r.Math.abs(i.a)>=r.Math.abs(i.b)?(i.b=0,a.d+a.a>s.d&&a.d<s.d+s.a&&DU(i,r.Math.max(s.c-(a.c+a.b),a.c-(s.c+s.b)))):(i.a=0,a.c+a.b>s.c&&a.c<s.c+s.b&&DU(i,r.Math.max(s.d-(a.d+a.a),a.d-(s.d+s.a))))):DU(i,_je($H(e.b,65),$H(t.b,65))),o=r.Math.sqrt(i.a*i.a+i.b*i.b),DU(i,o=jxe(Git,t,o,i)),Iz($H(t.b,65),i),kte(t.a,new Op(i)),$H(Git.b,65),B8(Git,Vit,t)}function aQe(e){var t,n,i,o,a,s,l,c,d,h,f,p;for(e.f=new FA,l=0,i=0,o=new Gf(e.e.b);o.a<o.c.c.length;)for(s=new Gf($H(J0(o),29).a);s.a<s.c.c.length;){for((a=$H(J0(s),10)).p=l++,n=new aW(XN(ufe(a).a.Kc(),new u));fIe(n);)$H(z5(n),17).p=i++;for(t=OUe(a),h=new Gf(a.j);h.a<h.c.c.length;)d=$H(J0(h),11),t&&(p=d.a.b)!=r.Math.floor(p)&&(c=p-y2(cae(r.Math.round(p))),d.a.b-=c),(f=d.n.b+d.a.b)!=r.Math.floor(f)&&(c=f-y2(cae(r.Math.round(f))),d.n.b-=c)}e.g=l,e.b=i,e.i=N8(eyt,jKe,401,l,0,1),e.c=N8(qbt,jKe,649,i,0,1),e.d.a.$b()}function sQe(e){var t,n,r,i,o,a,s,l,c;if(e.ej())if(l=e.fj(),e.i>0){if(t=new RO(e.i,e.g),o=(n=e.i)<100?null:new F_(n),e.ij())for(r=0;r<e.i;++r)a=e.g[r],o=e.kj(a,o);if(i6(e),i=1==n?e.Zi(4,Gte(t,0),null,0,l):e.Zi(6,t,null,-1,l),e.bj()){for(r=new iL(t);r.e!=r.i.gc();)o=e.dj(yve(r),o);o?(o.Ei(i),o.Fi()):e.$i(i)}else o?(o.Ei(i),o.Fi()):e.$i(i)}else i6(e),e.$i(e.Zi(6,(Eq(),lnt),null,-1,l));else if(e.bj())if(e.i>0){for(s=e.g,c=e.i,i6(e),o=c<100?null:new F_(c),r=0;r<c;++r)a=s[r],o=e.dj(a,o);o&&o.Fi()}else i6(e);else i6(e)}function lQe(e,t,n){var i,o,a,s,l,c,u,d,h;for(Pae(this),n==(fJ(),Iyt)?_G(this.r,e):_G(this.w,e),d=Lqe,u=Bqe,s=t.a.ec().Kc();s.Ob();)o=$H(s.Pb(),46),l=$H(o.a,455),(c=(i=$H(o.b,17)).c)==e&&(c=i.d),_G(l==Iyt?this.r:this.w,c),h=(bGe(),AOt).Hc(c.j)?Uy(xB(vSe(c,(lKe(),Iht)))):Ole(Sse(Uw(SSt,1),sYe,8,0,[c.i.n,c.n,c.a])).b,d=r.Math.min(d,h),u=r.Math.max(u,h);for(WSe(this,(bGe(),AOt).Hc(e.j)?Uy(xB(vSe(e,(lKe(),Iht)))):Ole(Sse(Uw(SSt,1),sYe,8,0,[e.i.n,e.n,e.a])).b,d,u),a=t.a.ec().Kc();a.Ob();)o=$H(a.Pb(),46),ZCe(this,$H(o.b,17));this.o=!1}function cQe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b;return n=8191&e.l,r=e.l>>13|(15&e.m)<<9,i=e.m>>4&8191,o=e.m>>17|(255&e.h)<<5,a=(1048320&e.h)>>8,m=r*(s=8191&t.l),v=i*s,A=o*s,b=a*s,0!=(l=t.l>>13|(15&t.m)<<9)&&(m+=n*l,v+=r*l,A+=i*l,b+=o*l),0!=(c=t.m>>4&8191)&&(v+=n*c,A+=r*c,b+=i*c),0!=(u=t.m>>17|(255&t.h)<<5)&&(A+=n*u,b+=r*u),0!=(d=(1048320&t.h)>>8)&&(b+=n*d),f=((g=n*s)>>22)+(m>>9)+((262143&v)<<4)+((31&A)<<17),p=(v>>18)+(A>>5)+((4095&b)<<8),p+=(f+=(h=(g&Eqe)+((511&m)<<13))>>22)>>22,xD(h&=Eqe,f&=Eqe,p&=Sqe)}function uQe(e){var t,n,i,o,a,s,l;if(0!=(l=$H(NQ(e.j,0),11)).g.c.length&&0!=l.e.c.length)throw jv(new Fy("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(0!=l.g.c.length){for(a=Lqe,n=new Gf(l.g);n.a<n.c.c.length;)t=$H(J0(n),17),i=$H(vSe(s=t.d.i,(jVe(),Cmt)),142),a=r.Math.min(a,s.n.a-i.b);return new jd(AV(a))}if(0!=l.e.c.length){for(o=Bqe,n=new Gf(l.e);n.a<n.c.c.length;)t=$H(J0(n),17),i=$H(vSe(s=t.c.i,(jVe(),Cmt)),142),o=r.Math.max(o,s.n.a+s.o.a+i.c);return new jd(AV(o))}return ty(),ty(),Oet}function dQe(e,t){var n,r,i,o,a,s;if(e.Fk()){if(e.i>4){if(!e.wj(t))return!1;if(e.rk()){if(s=(n=(r=$H(t,49)).Ug())==e.e&&(e.Dk()?r.Og(r.Vg(),e.zk())==e.Ak():-1-r.Vg()==e.aj()),e.Ek()&&!s&&!n&&r.Zg())for(i=0;i<e.i;++i)if(UO(e.Gk($H(e.g[i],56)))===UO(t))return!0;return s}if(e.Dk()&&!e.Ck()){if(UO(o=$H(t,56).ah(CAe($H(e.ak(),18))))===UO(e.e))return!0;if(null==o||!$H(o,56).kh())return!1}}if(a=E_e(e,t),e.Ek()&&!a)for(i=0;i<e.i;++i)if(UO(r=e.Gk($H(e.g[i],56)))===UO(t))return!0;return a}return E_e(e,t)}function hQe(e,t){var n,r,i,o,a,s,l,c,u,d,h;for(u=new Dv,h=new LA,a=t.b,i=0;i<a.c.length;i++){for(c=(u0(i,a.c.length),$H(a.c[i],29)).a,u.c=N8(Met,jKe,1,0,5,1),o=0;o<c.c.length;o++)(s=e.a[i][o]).p=o,s.k==(oCe(),Tst)&&(u.c[u.c.length]=s),r5($H(NQ(t.b,i),29).a,o,s),s.j.c=N8(Met,jKe,1,0,5,1),pse(s.j,$H($H(NQ(e.b,i),15).Xb(o),14)),IF($H(vSe(s,(jVe(),evt)),98))||lle(s,evt,(Kxe(),zkt));for(r=new Gf(u);r.a<r.c.c.length;)d=KPe(n=$H(J0(r),10)),h.a.zc(d,h),h.a.zc(n,h)}for(l=h.a.ec().Kc();l.Ob();)s=$H(l.Pb(),10),Eq(),vD(s.j,(Qce(),sct)),s.i=!0,eOe(s)}function fQe(e,t){var n,r,i,o,a,s,l,c,u,d;if(u=$H(vSe(e,(lKe(),Kdt)),61),r=$H(NQ(e.j,0),11),u==(bGe(),sOt)?Hke(r,EOt):u==EOt&&Hke(r,sOt),$H(vSe(t,(jVe(),Fmt)),174).Hc((vge(),POt))){if(l=Uy(xB(vSe(e,Cvt))),c=Uy(xB(vSe(e,Tvt))),a=Uy(xB(vSe(e,Evt))),(s=$H(vSe(t,rvt),21)).Hc((uOe(),eOt)))for(n=c,d=e.o.a/2-r.n.a,o=new Gf(r.f);o.a<o.c.c.length;)(i=$H(J0(o),70)).n.b=n,i.n.a=d-i.o.a/2,n+=i.o.b+a;else if(s.Hc(nOt))for(o=new Gf(r.f);o.a<o.c.c.length;)(i=$H(J0(o),70)).n.a=l+e.o.a-r.n.a;c1(new Sp((pS(),new jY(t,!1,!1,new $t))),new P$(null,e,!1))}}function pQe(e,t){var n,i,o,a,s,l,c;if(0!=t.c.length){for(Eq(),Az(t.c,t.c.length,null),i=$H(J0(o=new Gf(t)),145);o.a<o.c.c.length;)n=$H(J0(o),145),!ine(i.e.c,n.e.c)||Bge($B(i.e).b,n.e.d)||Bge($B(n.e).b,i.e.d)?(eje(e,i),i=n):(pse(i.k,n.k),pse(i.b,n.b),pse(i.c,n.c),Fie(i.i,n.i),pse(i.d,n.d),pse(i.j,n.j),a=r.Math.min(i.e.c,n.e.c),s=r.Math.min(i.e.d,n.e.d),l=r.Math.max(i.e.c+i.e.b,n.e.c+n.e.b)-a,c=r.Math.max(i.e.d+i.e.a,n.e.d+n.e.a)-s,NU(i.e,a,s,l,c),Z0(i.f,n.f),!i.a&&(i.a=n.a),pse(i.g,n.g),GH(i.g,n));eje(e,i)}}function gQe(e,t,n,r){var i,o,a,s,l,c;if((s=e.j)==(bGe(),SOt)&&t!=(Kxe(),Kkt)&&t!=(Kxe(),Ykt)&&(Hke(e,s=Q$e(e,n)),!(e.q?e.q:(Eq(),Eq(),cnt))._b((jVe(),Zmt))&&s!=SOt&&(0!=e.n.a||0!=e.n.b)&&lle(e,Zmt,ywe(e,s))),t==(Kxe(),Gkt)){switch(c=0,s.g){case 1:case 3:(o=e.i.o.a)>0&&(c=e.n.a/o);break;case 2:case 4:(i=e.i.o.b)>0&&(c=e.n.b/i)}lle(e,(lKe(),_ht),c)}if(l=e.o,a=e.a,r)a.a=r.a,a.b=r.b,e.d=!0;else if(t!=Kkt&&t!=Ykt&&s!=SOt)switch(s.g){case 1:a.a=l.a/2;break;case 2:a.a=l.a,a.b=l.b/2;break;case 3:a.a=l.a/2,a.b=l.b;break;case 4:a.b=l.b/2}else a.a=l.a/2,a.b=l.b/2}function mQe(e){var t,n,r,i,o,a,s,l,c,u;if(e.ej())if(u=e.Vi(),l=e.fj(),u>0)if(t=new yoe(e.Gi()),o=(n=u)<100?null:new F_(n),qB(e,n,t.g),i=1==n?e.Zi(4,Gte(t,0),null,0,l):e.Zi(6,t,null,-1,l),e.bj()){for(r=new ON(t);r.e!=r.i.gc();)o=e.dj(bve(r),o);o?(o.Ei(i),o.Fi()):e.$i(i)}else o?(o.Ei(i),o.Fi()):e.$i(i);else qB(e,e.Vi(),e.Wi()),e.$i(e.Zi(6,(Eq(),lnt),null,-1,l));else if(e.bj())if((u=e.Vi())>0){for(s=e.Wi(),c=u,qB(e,u,s),o=c<100?null:new F_(c),r=0;r<c;++r)a=s[r],o=e.dj(a,o);o&&o.Fi()}else qB(e,e.Vi(),e.Wi());else qB(e,e.Vi(),e.Wi())}function vQe(e,t,n){var r,i,o,a,s,l,c,u,d,h,f;for(s=new Gf(t);s.a<s.c.c.length;)(o=$H(J0(s),233)).e=null,o.c=0;for(l=null,a=new Gf(t);a.a<a.c.c.length;)if(d=(o=$H(J0(a),233)).d[0],!n||d.k==(oCe(),Cst)){for(f=$H(vSe(d,(lKe(),rht)),15).Kc();f.Ob();)h=$H(f.Pb(),10),n&&h.k!=(oCe(),Cst)||((!o.e&&(o.e=new Dv),o.e).Fc(e.b[h.c.p][h.p]),++e.b[h.c.p][h.p].c);if(!n&&d.k==(oCe(),Cst)){if(l)for(u=$H(l6(e.d,l),21).Kc();u.Ob();)for(c=$H(u.Pb(),10),i=$H(l6(e.d,d),21).Kc();i.Ob();)r=$H(i.Pb(),10),zH(e.b[c.c.p][c.p]).Fc(e.b[r.c.p][r.p]),++e.b[r.c.p][r.p].c;l=d}}}function AQe(e,t){var n,r,i,o,a,s,l;for(n=0,l=new Dv,o=new Gf(t);o.a<o.c.c.length;){switch(i=$H(J0(o),11),Jce(e.b,e.d[i.p]),l.c=N8(Met,jKe,1,0,5,1),i.i.k.g){case 0:kte($H(vSe(i,(lKe(),wht)),10).j,new Xg(l));break;case 1:ED(Kle(OY(new LQ(null,new h0(i.i.j,16)),new Jg(i))),new Zg(l));break;case 3:GH(l,new nO($H(vSe(i,(lKe(),fht)),11),the(i.e.c.length+i.g.c.length)))}for(s=new Gf(l);s.a<s.c.c.length;)a=$H(J0(s),46),(r=xx(e,$H(a.a,11)))>e.d[i.p]&&(n+=J4(e.b,r)*$H(a.b,19).a,f3(e.a,the(r)));for(;!Gy(e.a);)xee(e.b,$H(fG(e.a),19).a)}return n}function bQe(e,t,n,i){var o,a,s,l,c,u,d,h,f,p;for((d=new hI($H(XIe(e,(ESe(),jSt)),8))).a=r.Math.max(d.a-n.b-n.c,0),d.b=r.Math.max(d.b-n.d-n.a,0),(null==(o=xB(XIe(e,RSt)))||(bK(o),o<=0))&&(o=1.3),s=new Dv,h=new ON((!e.a&&(e.a=new eG(QMt,e,10,11)),e.a));h.e!=h.i.gc();)a=new QL($H(bve(h),33)),s.c[s.c.length]=a;switch($H(XIe(e,LSt),311).g){case 3:p=ije(s,t,d.a,d.b,(c=i,bK(o),c));break;case 1:p=mHe(s,t,d.a,d.b,(u=i,bK(o),u));break;default:p=xQe(s,t,d.a,d.b,(l=i,bK(o),l))}BGe(e,(f=AVe(new Ute(p),t,n,d.a,d.b,i,(bK(o),o))).a,f.b,!1,!0)}function yQe(e,t){var n,r,i,o;o=new ZF((n=t.b).j),i=0,(r=n.j).c=N8(Met,jKe,1,0,5,1),eV($H(pae(e.b,(bGe(),sOt),(Cie(),Lct)),15),n),i=qbe(o,i,new Li,r),eV($H(pae(e.b,sOt,Rct),15),n),i=qbe(o,i,new Ri,r),eV($H(pae(e.b,sOt,Nct),15),n),eV($H(pae(e.b,aOt,Lct),15),n),eV($H(pae(e.b,aOt,Rct),15),n),i=qbe(o,i,new Bi,r),eV($H(pae(e.b,aOt,Nct),15),n),eV($H(pae(e.b,EOt,Lct),15),n),i=qbe(o,i,new Pi,r),eV($H(pae(e.b,EOt,Rct),15),n),i=qbe(o,i,new Fi,r),eV($H(pae(e.b,EOt,Nct),15),n),eV($H(pae(e.b,COt,Lct),15),n),i=qbe(o,i,new qi,r),eV($H(pae(e.b,COt,Rct),15),n),eV($H(pae(e.b,COt,Nct),15),n)}function wQe(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m;for(kEe(t,"Layer size calculation",1),d=Lqe,u=Bqe,o=!1,l=new Gf(e.b);l.a<l.c.c.length;)if((c=(s=$H(J0(l),29)).c).a=0,c.b=0,0!=s.a.c.length){for(o=!0,f=new Gf(s.a);f.a<f.c.c.length;)g=(h=$H(J0(f),10)).o,p=h.d,c.a=r.Math.max(c.a,g.a+p.b+p.c);m=(i=$H(NQ(s.a,0),10)).n.b-i.d.d,i.k==(oCe(),xst)&&(m-=$H(vSe(e,(jVe(),Ivt)),142).d),n=(a=$H(NQ(s.a,s.a.c.length-1),10)).n.b+a.o.b+a.d.a,a.k==xst&&(n+=$H(vSe(e,(jVe(),Ivt)),142).a),c.b=n-m,d=r.Math.min(d,m),u=r.Math.max(u,n)}o||(d=0,u=0),e.f.b=u-d,e.c.b-=d,jCe(t)}function _Qe(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m,v;for(o=0,a=0,c=new Gf(e.a);c.a<c.c.c.length;)s=$H(J0(c),10),o=r.Math.max(o,s.d.b),a=r.Math.max(a,s.d.c);for(l=new Gf(e.a);l.a<l.c.c.length;){switch(s=$H(J0(l),10),$H(vSe(s,(jVe(),bgt)),248).g){case 1:p=0;break;case 2:p=1;break;case 5:p=.5;break;default:for(n=0,d=0,f=new Gf(s.j);f.a<f.c.c.length;)0==(h=$H(J0(f),11)).e.c.length||++n,0==h.g.c.length||++d;p=n+d==0?.5:d/(n+d)}m=e.c,u=s.o.a,v=(m.a-u)*p,p>.5?v-=2*a*(p-.5):p<.5&&(v+=2*o*(.5-p)),v<(i=s.d.b)&&(v=i),g=s.d.c,v>m.a-g-u&&(v=m.a-g-u),s.n.a=t+v}}function xQe(e,t,n,r,i){var o,a,s,l,c,u,d,h,f;for(s=N8(DRt,Hqe,25,e.c.length,15,1),twe(h=new WW(new Vs),e),c=0,f=new Dv;0!=h.b.c.length;)if(a=$H(0==h.b.c.length?null:NQ(h.b,0),157),c>1&&tz(a)*ez(a)/2>s[0]){for(o=0;o<f.c.length-1&&tz(a)*ez(a)/2>s[o];)++o;d=new Ute(new s0(f,0,o+1)),u=tz(a)/ez(a),l=AVe(d,t,new db,n,r,i,u),zP(bM(d.e),l),F8(eSe(h,d)),twe(h,new s0(f,o+1,f.c.length)),f.c=N8(Met,jKe,1,0,5,1),c=0,yz(s,s.length,0)}else null!=(0==h.b.c.length?null:NQ(h.b,0))&&lie(h,0),c>0&&(s[c]=s[c-1]),s[c]+=tz(a)*ez(a),++c,f.c[f.c.length]=a;return f}function EQe(e){var t,n,r;if((n=$H(vSe(e,(jVe(),bmt)),163))==(_fe(),Fht)){for(t=new aW(XN(cfe(e).a.Kc(),new u));fIe(t);)if(!W5($H(z5(t),17)))throw jv(new nw(S0e+pye(e)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(n==jht)for(r=new aW(XN(ufe(e).a.Kc(),new u));fIe(r);)if(!W5($H(z5(r),17)))throw jv(new nw(S0e+pye(e)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}function SQe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f;for(kEe(t,"Label dummy removal",1),r=Uy(xB(vSe(e,(jVe(),yvt)))),i=Uy(xB(vSe(e,Evt))),l=$H(vSe(e,zgt),103),s=new Gf(e.b);s.a<s.c.c.length;)for(u=new x2($H(J0(s),29).a,0);u.b<u.d.gc();)SL(u.b<u.d.gc()),(c=$H(u.d.Xb(u.c=u.b++),10)).k==(oCe(),Est)&&(d=$H(vSe(c,(lKe(),fht)),17),f=Uy(xB(vSe(d,imt))),a=UO(vSe(c,oht))===UO((Wye(),wkt)),n=new hI(c.n),a&&(n.b+=f+r),o=new Nk(c.o.a,c.o.b-f-r),h=$H(vSe(c,Sht),15),l==(Fde(),jTt)||l==BTt?OBe(h,n,i,o,a,l):Hue(h,n,i,o),pse(d.b,h),nze(c,UO(vSe(e,Xgt))===UO((xfe(),YTt))),cK(u));jCe(t)}function CQe(e,t,n,r){var i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y;for(s=new Dv,i=new Gf(t.a);i.a<i.c.c.length;)for(a=new Gf($H(J0(i),10).j);a.a<a.c.c.length;){for(c=null,b=0,y=(A=X1((o=$H(J0(a),11)).g)).length;b<y;++b)hae((v=A[b]).d.i,n)||((m=IUe(e,t,n,v,v.c,(ire(),HAt),c))!=c&&(s.c[s.c.length]=m),m.c&&(c=m));for(l=null,p=0,g=(f=X1(o.e)).length;p<g;++p)hae((h=f[p]).c.i,n)||((m=IUe(e,t,n,h,h.d,(ire(),jAt),l))!=l&&(s.c[s.c.length]=m),m.c&&(l=m))}for(d=new Gf(s);d.a<d.c.c.length;)u=$H(J0(d),441),-1!=w9(t.a,u.a,0)||GH(t.a,u.a),u.c&&(r.c[r.c.length]=u)}function TQe(e,t,n){var r,i,o,a,s,l,c,u,d,h,f,p;for(kEe(n,"Interactive cycle breaking",1),u=new Dv,h=new Gf(t.a);h.a<h.c.c.length;)for((d=$H(J0(h),10)).p=1,f=F_e(d).a,c=Npe(d,(ire(),HAt)).Kc();c.Ob();)for(o=new Gf($H(c.Pb(),11).g);o.a<o.c.c.length;)(p=(r=$H(J0(o),17)).d.i)!=d&&F_e(p).a<f&&(u.c[u.c.length]=r);for(a=new Gf(u);a.a<a.c.c.length;)Zje(r=$H(J0(a),17),!0);for(u.c=N8(Met,jKe,1,0,5,1),l=new Gf(t.a);l.a<l.c.c.length;)(s=$H(J0(l),10)).p>0&&uTe(e,s,u);for(i=new Gf(u);i.a<i.c.c.length;)Zje(r=$H(J0(i),17),!0);u.c=N8(Met,jKe,1,0,5,1),jCe(n)}function kQe(e,t){var n,r,i,o,a,s,l,c,u;return c="",0==t.length?e.de(WYe,QYe,-1,-1):(vF((u=LSe(t)).substr(0,3),"at ")&&(u=u.substr(3)),-1==(a=(u=u.replace(/\[.*?\]/g,"")).indexOf("("))?-1==(a=u.indexOf("@"))?(c=u,u=""):(c=LSe(u.substr(a+1)),u=LSe(u.substr(0,a))):(n=u.indexOf(")",a),c=u.substr(a+1,n-(a+1)),u=LSe(u.substr(0,a))),-1!=(a=UM(u,YEe(46)))&&(u=u.substr(a+1)),(0==u.length||vF(u,"Anonymous function"))&&(u=QYe),s=vR(c,YEe(58)),i=xF(c,YEe(58),s-1),l=-1,r=-1,o=WYe,-1!=s&&-1!=i&&(o=c.substr(0,i),l=lL(c.substr(i+1,s-(i+1))),r=lL(c.substr(s+1))),e.de(o,u,l,r))}function OQe(e,t,n){var r,i,o,a,s,l;if(0==t.l&&0==t.m&&0==t.h)throw jv(new ky("divide by zero"));if(0==e.l&&0==e.m&&0==e.h)return n&&(dtt=xD(0,0,0)),xD(0,0,0);if(t.h==Cqe&&0==t.m&&0==t.l)return Ffe(e,n);if(l=!1,t.h>>19&&(t=ile(t),l=!l),a=kNe(t),o=!1,i=!1,r=!1,e.h==Cqe&&0==e.m&&0==e.l){if(i=!0,o=!0,-1!=a)return s=yIe(e,a),l&&kle(s),n&&(dtt=xD(0,0,0)),s;e=GM((W9(),htt)),r=!0,l=!l}else e.h>>19&&(o=!0,e=ile(e),r=!0,l=!l);return-1!=a?$le(e,a,l,o,n):Bwe(e,t)<0?(n&&(dtt=o?ile(e):xD(e.l,e.m,e.h)),xD(0,0,0)):l$e(r?e:xD(e.l,e.m,e.h),t,l,o,i,n)}function MQe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p;if(e.e&&e.c.c<e.f)throw jv(new Fy("Expected "+e.f+" phases to be configured; only found "+e.c.c));for(u=$H(V_(e.g),9),f=sL(e.f),s=0,c=(o=u).length;s<c;++s)(d=$H(R9(e,(r=o[s]).g),246))?GH(f,$H(ape(e,d),123)):f.c[f.c.length]=null;for(p=new $2,qE(OY(MY(OY(new LQ(null,new h0(f,16)),new ds),new wm(t)),new hs),new _m(p)),qoe(p,e.a),n=new Dv,a=0,l=(i=u).length;a<l;++a)pse(n,wse(e,qq($H(R9(p,(r=i[a]).g),20)))),(h=$H(NQ(f,r.g),123))&&(n.c[n.c.length]=h);return pse(n,wse(e,qq($H(R9(p,u[u.length-1].g+1),20)))),n}function IQe(e,t,n){var i,o,a,s,l,c,u,d,h,f,p;for(kEe(n,"Model order cycle breaking",1),e.a=0,e.b=0,h=new Dv,u=t.a.c.length,c=new Gf(t.a);c.a<c.c.c.length;)IL(l=$H(J0(c),10),(lKe(),hht))&&(u=r.Math.max(u,$H(vSe(l,hht),19).a+1));for(p=new Gf(t.a);p.a<p.c.c.length;)for(s=QTe(e,f=$H(J0(p),10),u),d=Npe(f,(ire(),HAt)).Kc();d.Ob();)for(a=new Gf($H(d.Pb(),11).g);a.a<a.c.c.length;)QTe(e,(i=$H(J0(a),17)).d.i,u)<s&&(h.c[h.c.length]=i);for(o=new Gf(h);o.a<o.c.c.length;)Zje(i=$H(J0(o),17),!0),lle(t,(lKe(),Hdt),(lR(),!0));h.c=N8(Met,jKe,1,0,5,1),jCe(n)}function DQe(e,t){var n,r,i,o,a,s,l;if(!(e.g>t.f||t.g>e.f)){for(n=0,r=0,a=e.w.a.ec().Kc();a.Ob();)i=$H(a.Pb(),11),gue(Ole(Sse(Uw(SSt,1),sYe,8,0,[i.i.n,i.n,i.a])).b,t.g,t.f)&&++n;for(s=e.r.a.ec().Kc();s.Ob();)i=$H(s.Pb(),11),gue(Ole(Sse(Uw(SSt,1),sYe,8,0,[i.i.n,i.n,i.a])).b,t.g,t.f)&&--n;for(l=t.w.a.ec().Kc();l.Ob();)i=$H(l.Pb(),11),gue(Ole(Sse(Uw(SSt,1),sYe,8,0,[i.i.n,i.n,i.a])).b,e.g,e.f)&&++r;for(o=t.r.a.ec().Kc();o.Ob();)i=$H(o.Pb(),11),gue(Ole(Sse(Uw(SSt,1),sYe,8,0,[i.i.n,i.n,i.a])).b,e.g,e.f)&&--r;n<r?new E6(e,t,r-n):r<n?new E6(t,e,n-r):(new E6(t,e,0),new E6(e,t,0))}}function NQe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A;for(c=t.c,i=KI(e.e),d=bN($L($D(VI(e.e)),e.d*e.a,e.c*e.b),-.5),n=i.a-d.a,r=i.b-d.b,n=(a=t.a).c-n,r=a.d-r,l=new Gf(c);l.a<l.c.c.length;){switch(f=n+(h=(s=$H(J0(l),395)).b).a,m=r+h.b,p=CJ(f/e.a),v=CJ(m/e.b),(o=s.a).g){case 0:jve(),u=$it;break;case 1:jve(),u=Fit;break;case 2:jve(),u=jit;break;default:jve(),u=Hit}o.a?(A=CJ((m+s.c)/e.b),GH(e.f,new N$(u,the(v),the(A))),o==(Hve(),Zit)?hle(e,0,v,p,A):hle(e,p,v,e.d-1,A)):(g=CJ((f+s.c)/e.a),GH(e.f,new N$(u,the(p),the(g))),o==(Hve(),Xit)?hle(e,p,0,g,v):hle(e,p,v,g,e.c-1))}}function RQe(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y;for(h=new Dv,o=new Dv,g=null,s=t.Kc();s.Ob();)a=new jg($H(s.Pb(),19).a),o.c[o.c.length]=a,g&&(a.d=g,g.e=a),g=a;for(b=Qje(e),u=0;u<o.c.length;++u){for(f=null,m=R6((u0(0,o.c.length),$H(o.c[0],652))),n=null,i=Lqe,d=1;d<e.b.c.length;++d)v=m?r.Math.abs(m.b-d):r.Math.abs(d-f.b)+1,(p=f?r.Math.abs(d-f.b):v+1)<v?(c=f,l=p):(c=m,l=v),y=Uy(xB(vSe(e,(jVe(),jvt)))),(A=b[d]+r.Math.pow(l,y))<i&&(i=A,(n=c).c=d),m&&d==m.b&&(f=m,m=NW(m));n&&(GH(h,the(n.c)),n.a=!0,mhe(n))}return Eq(),Az(h.c,h.c.length,null),h}function LQe(e){var t,n,r,i,o,a,s,l,c,u;for(t=new El,n=new El,c=vF(B7e,(i=D$e(e.b,P7e))?EB(rge((!i.b&&(i.b=new qL((pKe(),ADt),zDt,i)),i.b),F7e)):null),l=0;l<e.i;++l)rN(s=$H(e.g[l],170),99)?(a=$H(s,18)).Bb&l6e?(!(a.Bb&lYe)||!c&&null==((o=D$e(a,P7e))?EB(rge((!o.b&&(o.b=new qL((pKe(),ADt),zDt,o)),o.b),J6e)):null))&&c7(t,a):(u=CAe(a))&&u.Bb&l6e||(!(a.Bb&lYe)||!c&&null==((r=D$e(a,P7e))?EB(rge((!r.b&&(r.b=new qL((pKe(),ADt),zDt,r)),r.b),J6e)):null))&&c7(n,a):(XS(),$H(s,66).Oj()&&(s.Jj()||(c7(t,s),c7(n,s))));rue(t),rue(n),e.a=$H(t.g,247),$H(n.g,247)}function BQe(e,t,n){var r,i,o,a,s,l,c,u,d,h,f;for(l=NCe(t),$H(vSe(t,(jVe(),Hgt)),314)!=(kre(),lut)&&e5(l,new vt),e5(l,new Rp($H(vSe(t,Lgt),292))),f=0,c=new Dv,i=new dY(l);i.a!=i.b;)r=$H(Pue(i),37),Mze(e.c,r),f+=(d=$H(vSe(r,(lKe(),xht)),15)).gc(),GH(c,new nO(r,d.Kc()));for(kEe(n,"Recursive hierarchical layout",f),h=$H($H(NQ(c,c.c.length-1),46).b,47);h.Ob();)for(s=new Gf(c);s.a<s.c.c.length;)for(a=$H(J0(s),46),d=$H(a.b,47),o=$H(a.a,37);d.Ob();){if(rN(u=$H(d.Pb(),51),507)){if(o.e)break;u.pf(o,voe(n,1));break}u.pf(o,voe(n,1))}jCe(n)}function PQe(e,t){var n,r,i,o,a,s,l,c;if(d0(s=t.length-1,t.length),93==(a=t.charCodeAt(s))){if((o=UM(t,YEe(91)))>=0)return i=ffe(e,t.substr(1,o-1)),YGe(e,t.substr(o+1,s-(o+1)),i)}else{if(n=-1,null==_tt&&(_tt=new RegExp("\\d")),_tt.test(String.fromCharCode(a))&&(n=xF(t,YEe(46),s-1))>=0){r=$H(V5(e,Ste(e,t.substr(1,n-1)),!1),58),l=0;try{l=u$e(t.substr(n+1),PYe,RKe)}catch(e){throw rN(e=use(e),127)?jv(new I9(e)):jv(e)}if(l<r.gc())return rN(c=r.Xb(l),72)&&(c=$H(c,72).dd()),$H(c,56)}if(n<0)return $H(V5(e,Ste(e,t.substr(1)),!1),56)}return null}function FQe(e,t,n){var r,i,o,a,s,l,c;if(Ope(t,n)>=0)return n;switch(RK($9(e,n))){case 2:if(vF("",Cde(e,n.Hj()).ne())){if(l=vDe(e,t,s=yY($9(e,n)),bY($9(e,n))))return l;for(a=0,c=(i=yFe(e,t)).gc();a<c;++a)if(iRe(kG($9(e,l=$H(i.Xb(a),170))),s))return l}return null;case 4:if(vF("",Cde(e,n.Hj()).ne())){for(r=n;r;r=q0($9(e,r)))if(l=ADe(e,t,yY($9(e,r)),bY($9(e,r))))return l;if(s=yY($9(e,n)),vF(E9e,s))return v_e(e,t);for(a=0,c=(o=wFe(e,t)).gc();a<c;++a)if(iRe(kG($9(e,l=$H(o.Xb(a),170))),s))return l}return null;default:return null}}function $Qe(e,t,n){var r,i,o,a,s,l,c,u;if(0==n.gc())return!1;if(XS(),o=(s=$H(t,66).Oj())?n:new pte(n.gc()),MLe(e.e,t)){if(t.hi())for(c=n.Kc();c.Ob();)zje(e,t,l=c.Pb(),rN(t,99)&&!!($H(t,18).Bb&$qe))||(i=X3(t,l),o.Hc(i)||o.Fc(i));else if(!s)for(c=n.Kc();c.Ob();)i=X3(t,l=c.Pb()),o.Fc(i)}else{if(n.gc()>1)throw jv(new Py(T9e));for(u=iLe(e.e.Tg(),t),r=$H(e.g,119),a=0;a<e.i;++a)if(i=r[a],u.rl(i.ak())){if(n.Hc(s?i:i.dd()))return!1;for(c=n.Kc();c.Ob();)l=c.Pb(),$H(aAe(e,a,s?$H(l,72):X3(t,l)),72);return!0}s||(i=X3(t,n.Kc().Pb()),o.Fc(i))}return gV(e,o)}function jQe(e,t){var n,i,o,a,s,l,c;for(c=new YE,l=new Bf(new kf(e.c).a.vc().Kc());l.a.Ob();)o=$H(l.a.Pb(),42),0==(a=$H(o.dd(),458)).b&&n5(c,a,c.c.b,c.c);for(;0!=c.b;)for(null==(a=$H(0==c.b?null:(SL(0!=c.b),Ote(c,c.a.a)),458)).a&&(a.a=0),i=new Gf(a.d);i.a<i.c.c.length;)null==(n=$H(J0(i),654)).b.a?n.b.a=Uy(a.a)+n.a:t.o==(aZ(),nyt)?n.b.a=r.Math.min(Uy(n.b.a),Uy(a.a)+n.a):n.b.a=r.Math.max(Uy(n.b.a),Uy(a.a)+n.a),--n.b.b,0==n.b.b&&RU(c,n.b);for(s=new Bf(new kf(e.c).a.vc().Kc());s.a.Ob();)o=$H(s.a.Pb(),42),a=$H(o.dd(),458),t.i[a.c.p]=a.a}function HQe(){HQe=M,swt=new ov(kZe),new tP("DEPTH",the(0)),twt=new tP("FAN",the(0)),Zyt=new tP(z3e,the(0)),fwt=new tP("ROOT",(lR(),!1)),rwt=new tP("LEFTNEIGHBOR",null),dwt=new tP("RIGHTNEIGHBOR",null),iwt=new tP("LEFTSIBLING",null),hwt=new tP("RIGHTSIBLING",null),ewt=new tP("DUMMY",!1),new tP("LEVEL",the(0)),uwt=new tP("REMOVABLE_EDGES",new YE),pwt=new tP("XCOOR",the(0)),gwt=new tP("YCOOR",the(0)),owt=new tP("LEVELHEIGHT",0),nwt=new tP("ID",""),lwt=new tP("POSITION",the(0)),cwt=new tP("PRELIM",0),awt=new tP("MODIFIER",0),Jyt=new ov(MZe),Xyt=new ov(IZe)}function UQe(e,t,n,i){var o,a,s,l,c,u,d,h,f,p;for(d=n+t.c.c.a,p=new Gf(t.j);p.a<p.c.c.length;){if(f=$H(J0(p),11),o=Ole(Sse(Uw(SSt,1),sYe,8,0,[f.i.n,f.n,f.a])),t.k==(oCe(),Tst)&&(l=$H(vSe(f,(lKe(),fht)),11),o.a=Ole(Sse(Uw(SSt,1),sYe,8,0,[l.i.n,l.n,l.a])).a,t.n.a=o.a),s=new Nk(0,o.b),f.j==(bGe(),aOt))s.a=d;else{if(f.j!=COt)continue;s.a=n}if(!(r.Math.abs(o.a-s.a)<=i)||Dwe(t))for(a=f.g.c.length+f.e.c.length>1,u=new v6(f.b);AD(u.a)||AD(u.b);)h=(c=$H(AD(u.a)?J0(u.a):J0(u.b),17)).c==f?c.d:c.c,r.Math.abs(Ole(Sse(Uw(SSt,1),sYe,8,0,[h.i.n,h.n,h.a])).b-s.b)>1&&gLe(e,c,s,a,f)}}function QQe(e){var t,n,i,o,a,s;if(o=new x2(e.e,0),i=new x2(e.a,0),e.d)for(n=0;n<e.b;n++)SL(o.b<o.d.gc()),o.d.Xb(o.c=o.b++);else for(n=0;n<e.b-1;n++)SL(o.b<o.d.gc()),o.d.Xb(o.c=o.b++),cK(o);for(t=Uy((SL(o.b<o.d.gc()),xB(o.d.Xb(o.c=o.b++))));e.f-t>R3e;){for(a=t,s=0;r.Math.abs(t-a)<R3e;)++s,t=Uy((SL(o.b<o.d.gc()),xB(o.d.Xb(o.c=o.b++)))),SL(i.b<i.d.gc()),i.d.Xb(i.c=i.b++);s<e.b&&(SL(o.b>0),o.a.Xb(o.c=--o.b),Rje(e,e.b-s,a,i,o),SL(o.b<o.d.gc()),o.d.Xb(o.c=o.b++)),SL(i.b>0),i.a.Xb(i.c=--i.b)}if(!e.d)for(n=0;n<e.b-1;n++)SL(o.b<o.d.gc()),o.d.Xb(o.c=o.b++),cK(o);e.d=!0,e.c=!0}function zQe(){zQe=M,pNt=(rx(),fNt).b,vNt=$H(Gte(Kq(fNt.b),0),34),gNt=$H(Gte(Kq(fNt.b),1),34),mNt=$H(Gte(Kq(fNt.b),2),34),TNt=fNt.bb,$H(Gte(Kq(fNt.bb),0),34),$H(Gte(Kq(fNt.bb),1),34),ONt=fNt.fb,MNt=$H(Gte(Kq(fNt.fb),0),34),$H(Gte(Kq(fNt.fb),1),34),$H(Gte(Kq(fNt.fb),2),18),DNt=fNt.qb,LNt=$H(Gte(Kq(fNt.qb),0),34),$H(Gte(Kq(fNt.qb),1),18),$H(Gte(Kq(fNt.qb),2),18),NNt=$H(Gte(Kq(fNt.qb),3),34),RNt=$H(Gte(Kq(fNt.qb),4),34),PNt=$H(Gte(Kq(fNt.qb),6),34),BNt=$H(Gte(Kq(fNt.qb),5),18),ANt=fNt.j,bNt=fNt.k,yNt=fNt.q,wNt=fNt.w,_Nt=fNt.B,xNt=fNt.A,ENt=fNt.C,SNt=fNt.D,CNt=fNt._,kNt=fNt.cb,INt=fNt.hb}function WQe(e,t,n){var i,o,a,s,l,c,u,d,h;e.c=0,e.b=0,i=2*t.c.a.c.length+1;e:for(u=n.Kc();u.Ob();){if(h=0,s=(c=$H(u.Pb(),11)).j==(bGe(),sOt)||c.j==EOt){if(!(d=$H(vSe(c,(lKe(),wht)),10)))continue;h+=tPe(e,i,c,d)}else{for(l=new Gf(c.g);l.a<l.c.c.length;){if((o=$H(J0(l),17).d).i.c==t.c){GH(e.a,c);continue e}h+=e.g[o.p]}for(a=new Gf(c.e);a.a<a.c.c.length;){if((o=$H(J0(a),17).c).i.c==t.c){GH(e.a,c);continue e}h-=e.g[o.p]}}c.e.c.length+c.g.c.length>0?(e.f[c.p]=h/(c.e.c.length+c.g.c.length),e.c=r.Math.min(e.c,e.f[c.p]),e.b=r.Math.max(e.b,e.f[c.p])):s&&(e.f[c.p]=h)}}function GQe(e){e.b=null,e.bb=null,e.fb=null,e.qb=null,e.a=null,e.c=null,e.d=null,e.e=null,e.f=null,e.n=null,e.M=null,e.L=null,e.Q=null,e.R=null,e.K=null,e.db=null,e.eb=null,e.g=null,e.i=null,e.j=null,e.k=null,e.gb=null,e.o=null,e.p=null,e.q=null,e.r=null,e.$=null,e.ib=null,e.S=null,e.T=null,e.t=null,e.s=null,e.u=null,e.v=null,e.w=null,e.B=null,e.A=null,e.C=null,e.D=null,e.F=null,e.G=null,e.H=null,e.I=null,e.J=null,e.P=null,e.Z=null,e.U=null,e.V=null,e.W=null,e.X=null,e.Y=null,e._=null,e.ab=null,e.cb=null,e.hb=null,e.nb=null,e.lb=null,e.mb=null,e.ob=null,e.pb=null,e.jb=null,e.kb=null,e.N=!1,e.O=!1}function VQe(e,t,n){var r,i;for(kEe(n,"Graph transformation ("+e.a+")",1),i=i1(t.a),r=new Gf(t.b);r.a<r.c.c.length;)pse(i,$H(J0(r),29).a);if($H(vSe(t,(jVe(),Wgt)),419)==(Pee(),Eut))switch($H(vSe(t,zgt),103).g){case 2:I2(t,i);break;case 3:dge(t,i);break;case 4:e.a==(Eie(),Hst)?(dge(t,i),M2(t,i)):(M2(t,i),dge(t,i))}else if(e.a==(Eie(),Hst))switch($H(vSe(t,zgt),103).g){case 2:I2(t,i),M2(t,i);break;case 3:dge(t,i),I2(t,i);break;case 4:I2(t,i),dge(t,i)}else switch($H(vSe(t,zgt),103).g){case 2:I2(t,i),M2(t,i);break;case 3:I2(t,i),dge(t,i);break;case 4:dge(t,i),I2(t,i)}jCe(n)}function KQe(e,t,n){var r,i,o,a,s,l,c,d,h,f,p;for(l=new cI,c=new cI,f=new cI,p=new cI,s=Uy(xB(vSe(t,(jVe(),kvt)))),i=Uy(xB(vSe(t,Avt))),a=new Gf(n);a.a<a.c.c.length;)if(o=$H(J0(a),10),(d=$H(vSe(o,(lKe(),Kdt)),61))==(bGe(),sOt))for(c.a.zc(o,c),r=new aW(XN(cfe(o).a.Kc(),new u));fIe(r);)_G(l,$H(z5(r),17).c.i);else if(d==EOt)for(p.a.zc(o,p),r=new aW(XN(cfe(o).a.Kc(),new u));fIe(r);)_G(f,$H(z5(r),17).c.i);0!=l.a.gc()&&(h=Oze(new cV(2,i),t,l,c,-s-t.c.b))>0&&(e.a=s+(h-1)*i,t.c.b+=e.a,t.f.b+=e.a),0!=f.a.gc()&&(h=Oze(new cV(1,i),t,f,p,t.f.b+s-t.c.b))>0&&(t.f.b+=s+(h-1)*i)}function YQe(e,t){var n,r,i,o;o=e.F,null==t?(e.F=null,Rce(e,null)):(e.F=(bK(t),t),-1!=(r=UM(t,YEe(60)))?(i=t.substr(0,r),-1==UM(t,YEe(46))&&!vF(i,MKe)&&!vF(i,E7e)&&!vF(i,S7e)&&!vF(i,C7e)&&!vF(i,T7e)&&!vF(i,k7e)&&!vF(i,O7e)&&!vF(i,M7e)&&(i=I7e),-1!=(n=vR(t,YEe(62)))&&(i+=""+t.substr(n+1)),Rce(e,i)):(i=t,-1==UM(t,YEe(46))&&(-1!=(r=UM(t,YEe(91)))&&(i=t.substr(0,r)),vF(i,MKe)||vF(i,E7e)||vF(i,S7e)||vF(i,C7e)||vF(i,T7e)||vF(i,k7e)||vF(i,O7e)||vF(i,M7e)?i=t:(i=I7e,-1!=r&&(i+=""+t.substr(r)))),Rce(e,i),i==t&&(e.F=e.D))),4&e.Db&&!(1&e.Db)&&dae(e,new JW(e,1,5,o,t))}function qQe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b;if(!((g=t.b.c.length)<3)){for(f=N8(kRt,lqe,25,g,15,1),d=0,u=new Gf(t.b);u.a<u.c.c.length;)c=$H(J0(u),29),f[d++]=c.a.c.length;for(h=new x2(t.b,2),r=1;r<g-1;r++)for(SL(h.b<h.d.gc()),p=new Gf((n=$H(h.d.Xb(h.c=h.b++),29)).a),o=0,s=0,l=0;l<f[r+1];l++)if(b=$H(J0(p),10),l==f[r+1]-1||YCe(e,b,r+1,r)){for(a=f[r]-1,YCe(e,b,r+1,r)&&(a=e.c.e[$H($H($H(NQ(e.c.b,b.p),15).Xb(0),46).a,10).p]);s<=l;){if(!YCe(e,A=$H(NQ(n.a,s),10),r+1,r))for(v=$H(NQ(e.c.b,A.p),15).Kc();v.Ob();)m=$H(v.Pb(),46),((i=e.c.e[$H(m.a,10).p])<o||i>a)&&_G(e.b,$H(m.b,17));++s}o=a}}}function XQe(e,t){var n;if(null==t||vF(t,QKe))return null;if(0==t.length&&e.k!=(STe(),gSt))return null;switch(e.k.g){case 1:return vme(t,i5e)?(lR(),vtt):vme(t,o5e)?(lR(),mtt):null;case 2:try{return the(u$e(t,PYe,RKe))}catch(e){if(rN(e=use(e),127))return null;throw jv(e)}case 4:try{return dCe(t)}catch(e){if(rN(e=use(e),127))return null;throw jv(e)}case 3:return t;case 5:return nue(e),jOe(e,t);case 6:return nue(e),BDe(e,e.a,t);case 7:try{return(n=nIe(e)).Jf(t),n}catch(e){if(rN(e=use(e),32))return null;throw jv(e)}default:throw jv(new Fy("Invalid type set for this layout option."))}}function JQe(e){var t,n,r,i,o,a,s;for(Ree(),s=new VA,n=new Gf(e);n.a<n.c.c.length;)t=$H(J0(n),140),(!s.b||t.c>=s.b.c)&&(s.b=t),(!s.c||t.c<=s.c.c)&&(s.d=s.c,s.c=t),(!s.e||t.d>=s.e.d)&&(s.e=t),(!s.f||t.d<=s.f.d)&&(s.f=t);return r=new _ve((Ose(),Xat)),t2(e,ast,new qy(Sse(Uw(qat,1),jKe,369,0,[r]))),a=new _ve(est),t2(e,ost,new qy(Sse(Uw(qat,1),jKe,369,0,[a]))),i=new _ve(Jat),t2(e,ist,new qy(Sse(Uw(qat,1),jKe,369,0,[i]))),o=new _ve(Zat),t2(e,rst,new qy(Sse(Uw(qat,1),jKe,369,0,[o]))),NNe(r.c,Xat),NNe(i.c,Jat),NNe(o.c,Zat),NNe(a.c,est),s.a.c=N8(Met,jKe,1,0,5,1),pse(s.a,r.c),pse(s.a,eae(i.c)),pse(s.a,o.c),pse(s.a,eae(a.c)),s}function ZQe(e){var t;switch(e.d){case 1:if(e.hj())return-2!=e.o;break;case 2:if(e.hj())return-2==e.o;break;case 3:case 5:case 4:case 6:case 7:return e.o>-2;default:return!1}switch(t=e.gj(),e.p){case 0:return null!=t&&Hy(_B(t))!=qO(e.k,0);case 1:return null!=t&&$H(t,217).a!=fz(e.k)<<24>>24;case 2:return null!=t&&$H(t,172).a!=(fz(e.k)&KYe);case 6:return null!=t&&qO($H(t,162).a,e.k);case 5:return null!=t&&$H(t,19).a!=fz(e.k);case 7:return null!=t&&$H(t,184).a!=fz(e.k)<<16>>16;case 3:return null!=t&&Uy(xB(t))!=e.j;case 4:return null!=t&&$H(t,155).a!=e.j;default:return null==t?null!=e.n:!Dde(t,e.n)}}function eze(e,t,n){var r,i,o,a;return e.Fk()&&e.Ek()&&UO(a=UW(e,$H(n,56)))!==UO(n)?(e.Oi(t),e.Ui(t,$7(e,t,a)),e.rk()&&(i=$H(n,49),o=e.Dk()?e.Bk()?i.ih(e.b,CAe($H(tte(yX(e.b),e.aj()),18)).n,$H(tte(yX(e.b),e.aj()).Yj(),26).Bj(),null):i.ih(e.b,Ope(i.Tg(),CAe($H(tte(yX(e.b),e.aj()),18))),null,null):i.ih(e.b,-1-e.aj(),null,null),!$H(a,49).eh()&&(r=$H(a,49),o=e.Dk()?e.Bk()?r.gh(e.b,CAe($H(tte(yX(e.b),e.aj()),18)).n,$H(tte(yX(e.b),e.aj()).Yj(),26).Bj(),o):r.gh(e.b,Ope(r.Tg(),CAe($H(tte(yX(e.b),e.aj()),18))),null,o):r.gh(e.b,-1-e.aj(),null,o)),o&&o.Fi()),vI(e.b)&&e.$i(e.Zi(9,n,a,t,!1)),a):n}function tze(e,t,n){var i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w;for(d=Uy(xB(vSe(e,(jVe(),wvt)))),i=Uy(xB(vSe(e,Lvt))),lle(f=new Js,wvt,d+i),A=(u=t).d,m=u.c.i,b=u.d.i,v=ZM(m.c),y=ZM(b.c),o=new Dv,h=v;h<=y;h++)Fh(l=new MAe(e),(oCe(),Sst)),lle(l,(lKe(),fht),u),lle(l,evt,(Kxe(),Wkt)),lle(l,xvt,f),p=$H(NQ(e.b,h),29),h==v?Kye(l,p.a.c.length-n,p):SZ(l,p),(w=Uy(xB(vSe(u,imt))))<0&&lle(u,imt,w=0),l.o.b=w,g=r.Math.floor(w/2),Hke(s=new CCe,(bGe(),COt)),CZ(s,l),s.n.b=g,Hke(c=new CCe,aOt),CZ(c,l),c.n.b=g,xZ(u,s),Hae(a=new hX,u),lle(a,mmt,null),EZ(a,c),xZ(a,A),Qwe(l,u,a),o.c[o.c.length]=a,u=a;return o}function nze(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m;for(s=$H(RCe(e,(bGe(),COt)).Kc().Pb(),11).e,d=$H(RCe(e,aOt).Kc().Pb(),11).g,a=s.c.length,m=p0($H(NQ(e.j,0),11));a-- >0;){for(u0(0,s.c.length),f=$H(s.c[0],17),u0(0,d.c.length),i=w9((r=$H(d.c[0],17)).d.e,r,0),O2(f,r.d,i),EZ(r,null),xZ(r,null),h=f.a,t&&RU(h,new hI(m)),n=sve(r.a,0);n.b!=n.d.c;)RU(h,new hI($H(d3(n),8)));for(g=f.b,u=new Gf(r.b);u.a<u.c.c.length;)c=$H(J0(u),70),g.c[g.c.length]=c;if(p=$H(vSe(f,(jVe(),mmt)),74),o=$H(vSe(r,mmt),74))for(p||(p=new bb,lle(f,mmt,p)),l=sve(o,0);l.b!=l.d.c;)RU(p,new hI($H(d3(l),8)))}}function rze(e,t){var n,i,o,a,s,l,c,u,d,h,f,p;if(n=$H(aY(e.b,t),124),(c=$H($H(l6(e.r,t),21),84)).dc())return n.n.b=0,void(n.n.c=0);for(u=e.u.Hc((uOe(),eOt)),s=0,l=c.Kc(),d=null,h=0,f=0;l.Ob();)o=Uy(xB((i=$H(l.Pb(),111)).b.We((RR(),Iit)))),a=i.b.rf().a,e.A.Hc((vge(),POt))&&APe(e,t),d?(p=f+d.d.c+e.w+i.d.b,s=r.Math.max(s,(lD(),nre(cJe),r.Math.abs(h-o)<=cJe||h==o||isNaN(h)&&isNaN(o)?0:p/(o-h)))):e.C&&e.C.b>0&&(s=r.Math.max(s,uoe(e.C.b+i.d.b,o))),d=i,h=o,f=a;e.C&&e.C.c>0&&(p=f+e.C.c,u&&(p+=d.d.c),s=r.Math.max(s,(lD(),nre(cJe),r.Math.abs(h-1)<=cJe||1==h||isNaN(h)&&isNaN(1)?0:p/(1-h)))),n.n.b=0,n.a.a=s}function ize(e,t){var n,i,o,a,s,l,c,u,d,h,f,p;if(n=$H(aY(e.b,t),124),(c=$H($H(l6(e.r,t),21),84)).dc())return n.n.d=0,void(n.n.a=0);for(u=e.u.Hc((uOe(),eOt)),s=0,e.A.Hc((vge(),POt))&&bPe(e,t),l=c.Kc(),d=null,f=0,h=0;l.Ob();)a=Uy(xB((i=$H(l.Pb(),111)).b.We((RR(),Iit)))),o=i.b.rf().b,d?(p=h+d.d.a+e.w+i.d.d,s=r.Math.max(s,(lD(),nre(cJe),r.Math.abs(f-a)<=cJe||f==a||isNaN(f)&&isNaN(a)?0:p/(a-f)))):e.C&&e.C.d>0&&(s=r.Math.max(s,uoe(e.C.d+i.d.d,a))),d=i,f=a,h=o;e.C&&e.C.a>0&&(p=h+e.C.a,u&&(p+=d.d.a),s=r.Math.max(s,(lD(),nre(cJe),r.Math.abs(f-1)<=cJe||1==f||isNaN(f)&&isNaN(1)?0:p/(1-f)))),n.n.d=0,n.a.b=s}function oze(e,t,n){var r,i,o,a,s,l;for(this.g=e,s=t.d.length,l=n.d.length,this.d=N8(kst,i0e,10,s+l,0,1),a=0;a<s;a++)this.d[a]=t.d[a];for(o=0;o<l;o++)this.d[s+o]=n.d[o];if(t.e){if(this.e=QH(t.e),this.e.Mc(n),n.e)for(i=n.e.Kc();i.Ob();)(r=$H(i.Pb(),233))!=t&&(this.e.Hc(r)?--r.c:this.e.Fc(r))}else n.e&&(this.e=QH(n.e),this.e.Mc(t));this.f=t.f+n.f,this.a=t.a+n.a,this.a>0?qte(this,this.f/this.a):null!=uN(t.g,t.d[0]).a&&null!=uN(n.g,n.d[0]).a?qte(this,(Uy(uN(t.g,t.d[0]).a)+Uy(uN(n.g,n.d[0]).a))/2):null!=uN(t.g,t.d[0]).a?qte(this,uN(t.g,t.d[0]).a):null!=uN(n.g,n.d[0]).a&&qte(this,uN(n.g,n.d[0]).a)}function aze(e,t){var n,r,i,o,a,s,l,c,u;for(e.a=new $V(Moe(GTt)),r=new Gf(t.a);r.a<r.c.c.length;){for(n=$H(J0(r),841),a=new Sme(Sse(Uw(Kat,1),jKe,81,0,[])),GH(e.a.a,a),l=new Gf(n.d);l.a<l.c.c.length;)Fze(c=new DR(e,s=$H(J0(l),110)),$H(vSe(n.c,(lKe(),Wdt)),21)),lG(e.g,n)||(VK(e.g,n,new Nk(s.c,s.d)),VK(e.f,n,c)),GH(e.a.b,c),p2(a,c);for(o=new Gf(n.b);o.a<o.c.c.length;)c=new DR(e,(i=$H(J0(o),594)).kf()),VK(e.b,i,new nO(a,c)),Fze(c,$H(vSe(n.c,(lKe(),Wdt)),21)),i.hf()&&(Fze(u=new Eme(e,i.hf(),1),$H(vSe(n.c,Wdt),21)),p2(new Sme(Sse(Uw(Kat,1),jKe,81,0,[])),u),qOe(e.c,i.gf(),new nO(a,u)))}return e.a}function sze(e){var t;this.a=e,t=(oCe(),Sse(Uw(Mst,1),MYe,267,0,[Cst,Sst,xst,Tst,Est,_st])).length,this.b=bQ(uSt,[sYe,b3e],[593,146],0,[t,t],2),this.c=bQ(uSt,[sYe,b3e],[593,146],0,[t,t],2),FX(this,Cst,(jVe(),kvt),Ovt),Zae(this,Cst,Sst,wvt,_vt),PX(this,Cst,Tst,wvt),PX(this,Cst,xst,wvt),Zae(this,Cst,Est,kvt,Ovt),FX(this,Sst,Avt,bvt),PX(this,Sst,Tst,Avt),PX(this,Sst,xst,Avt),Zae(this,Sst,Est,wvt,_vt),XI(this,Tst,Avt),PX(this,Tst,xst,Avt),PX(this,Tst,Est,Svt),XI(this,xst,Dvt),Zae(this,xst,Est,Tvt,Cvt),FX(this,Est,Avt,Avt),FX(this,_st,Avt,bvt),Zae(this,_st,Cst,wvt,_vt),Zae(this,_st,Est,wvt,_vt),Zae(this,_st,Sst,wvt,_vt)}function lze(e,t,n){var r,i,o,a,s,l,c,u,d,h,f,p,g,m;if(rN(a=n.ak(),99)&&$H(a,18).Bb&$qe&&(h=$H(n.dd(),49),(g=Zue(e.e,h))!=h)){if(yN(e,t,sEe(e,t,u=X3(a,g))),d=null,vI(e.e)&&(r=FQe((TTe(),qDt),e.e.Tg(),a))!=tte(e.e.Tg(),e.c)){for(m=iLe(e.e.Tg(),a),s=0,o=$H(e.g,119),l=0;l<t;++l)i=o[l],m.rl(i.ak())&&++s;(d=new d4(e.e,9,r,h,g,s,!1)).Ei(new D9(e.e,9,e.c,n,u,t,!1))}return(f=CAe(p=$H(a,18)))?(d=h.ih(e.e,Ope(h.Tg(),f),null,d),d=$H(g,49).gh(e.e,Ope(g.Tg(),f),null,d)):p.Bb&l6e&&(c=-1-Ope(e.e.Tg(),p),d=h.ih(e.e,c,null,null),!$H(g,49).eh()&&(d=$H(g,49).gh(e.e,c,null,d))),d&&d.Fi(),u}return n}function cze(e){var t,n,i,o,a,s,l,c;for(a=new Gf(e.a.b);a.a<a.c.c.length;)(o=$H(J0(a),81)).b.c=o.g.c,o.b.d=o.g.d;for(c=new Nk(Lqe,Lqe),t=new Nk(Bqe,Bqe),i=new Gf(e.a.b);i.a<i.c.c.length;)n=$H(J0(i),81),c.a=r.Math.min(c.a,n.g.c),c.b=r.Math.min(c.b,n.g.d),t.a=r.Math.max(t.a,n.g.c+n.g.b),t.b=r.Math.max(t.b,n.g.d+n.g.a);for(l=_V(e.c).a.nc();l.Ob();)s=$H(l.Pb(),46),n=$H(s.b,81),c.a=r.Math.min(c.a,n.g.c),c.b=r.Math.min(c.b,n.g.d),t.a=r.Math.max(t.a,n.g.c+n.g.b),t.b=r.Math.max(t.b,n.g.d+n.g.a);e.d=HL(new Nk(c.a,c.b)),e.e=WP(new Nk(t.a,t.b),c),e.a.a.c=N8(Met,jKe,1,0,5,1),e.a.b.c=N8(Met,jKe,1,0,5,1)}function uze(e){var t,n,r;for(bce(cIt,Sse(Uw(Prt,1),jKe,130,0,[new Id])),n=new wh(e),r=0;r<n.a.length;++r)vF(t=fee(n,r).je().a,"layered")?bce(cIt,Sse(Uw(Prt,1),jKe,130,0,[new sd])):vF(t,"force")?bce(cIt,Sse(Uw(Prt,1),jKe,130,0,[new Qu])):vF(t,"stress")?bce(cIt,Sse(Uw(Prt,1),jKe,130,0,[new Wu])):vF(t,"mrtree")?bce(cIt,Sse(Uw(Prt,1),jKe,130,0,[new Ed])):vF(t,"radial")?bce(cIt,Sse(Uw(Prt,1),jKe,130,0,[new vd])):vF(t,"disco")?bce(cIt,Sse(Uw(Prt,1),jKe,130,0,[new Uu,new ju])):vF(t,"sporeOverlap")||vF(t,"sporeCompaction")?bce(cIt,Sse(Uw(Prt,1),jKe,130,0,[new wd])):vF(t,"rectpacking")&&bce(cIt,Sse(Uw(Prt,1),jKe,130,0,[new Td]))}function dze(e,t,n){var r,i,o,a,s,l,c,u,d,h,f,p,g,m,v;if(h=new hI(e.o),v=t.a/h.a,s=t.b/h.b,g=t.a-h.a,o=t.b-h.b,n)for(i=UO(vSe(e,(jVe(),evt)))===UO((Kxe(),Wkt)),p=new Gf(e.j);p.a<p.c.c.length;)switch((f=$H(J0(p),11)).j.g){case 1:i||(f.n.a*=v);break;case 2:f.n.a+=g,i||(f.n.b*=s);break;case 3:i||(f.n.a*=v),f.n.b+=o;break;case 4:i||(f.n.b*=s)}for(c=new Gf(e.b);c.a<c.c.c.length;)u=(l=$H(J0(c),70)).n.a+l.o.a/2,d=l.n.b+l.o.b/2,(m=u/h.a)+(a=d/h.b)>=1&&(m-a>0&&d>=0?(l.n.a+=g,l.n.b+=o*a):m-a<0&&u>=0&&(l.n.a+=g*m,l.n.b+=o));e.o.a=t.a,e.o.b=t.b,lle(e,(jVe(),Fmt),(vge(),new YF(r=$H(V_(YOt),9),$H(EP(r,r.length),9),0)))}function hze(e,t,n,r,i,o){if(null!=t&&Wfe(t,kIt,OIt))throw jv(new Py("invalid scheme: "+t));if(!(e||null!=n&&-1==UM(n,YEe(35))&&n.length>0&&(d0(0,n.length),47!=n.charCodeAt(0))))throw jv(new Py("invalid opaquePart: "+n));if(e&&(null==t||!NE(bIt,t.toLowerCase()))&&null!=n&&Wfe(n,MIt,IIt))throw jv(new Py(a7e+n));if(e&&null!=t&&NE(bIt,t.toLowerCase())&&!Cxe(n))throw jv(new Py(a7e+n));if(!zfe(r))throw jv(new Py("invalid device: "+r));if(!Lue(i))throw jv(new Py(null==i?"invalid segments: null":"invalid segment: "+sue(i)));if(null!=o&&-1!=UM(o,YEe(35)))throw jv(new Py("invalid query: "+o))}function fze(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A;for(kEe(t,"Calculate Graph Size",1),t.n&&e&&A1(t,a2(e),($ce(),oMt)),l=XJe,c=XJe,a=J3e,s=J3e,h=new ON((!e.a&&(e.a=new eG(QMt,e,10,11)),e.a));h.e!=h.i.gc();)g=(u=$H(bve(h),33)).i,m=u.j,A=u.g,i=u.f,o=$H(XIe(u,(sKe(),MCt)),142),l=r.Math.min(l,g-o.b),c=r.Math.min(c,m-o.d),a=r.Math.max(a,g+A+o.c),s=r.Math.max(s,m+i+o.a);for(f=new Nk(l-(p=$H(XIe(e,(sKe(),WCt)),116)).b,c-p.d),d=new ON((!e.a&&(e.a=new eG(QMt,e,10,11)),e.a));d.e!=d.i.gc();)Sne(u=$H(bve(d),33),u.i-f.a),Cne(u,u.j-f.b);v=a-l+(p.b+p.c),n=s-c+(p.d+p.a),Ene(e,v),xne(e,n),t.n&&e&&A1(t,a2(e),($ce(),oMt))}function pze(e){var t,n,r,i,o,a,s,l,c,u;for(r=new Dv,a=new Gf(e.e.a);a.a<a.c.c.length;){for(u=0,(i=$H(J0(a),121)).k.c=N8(Met,jKe,1,0,5,1),n=new Gf(bfe(i));n.a<n.c.c.length;)(t=$H(J0(n),213)).f&&(GH(i.k,t),++u);1==u&&(r.c[r.c.length]=i)}for(o=new Gf(r);o.a<o.c.c.length;)for(i=$H(J0(o),121);1==i.k.c.length;){for(c=$H(J0(new Gf(i.k)),213),e.b[c.c]=c.g,s=c.d,l=c.e,n=new Gf(bfe(i));n.a<n.c.c.length;)Dde(t=$H(J0(n),213),c)||(t.f?s==t.d||l==t.e?e.b[c.c]-=e.b[t.c]-t.g:e.b[c.c]+=e.b[t.c]-t.g:i==s?t.d==i?e.b[c.c]+=t.g:e.b[c.c]-=t.g:t.d==i?e.b[c.c]-=t.g:e.b[c.c]+=t.g);A9(s.k,c),A9(l.k,c),i=s==i?c.e:c.d}}function gze(e,t){var n,r,i,o,a,s,l,c,u,d,h;if(null==t||0==t.length)return null;if(!(o=$H(EJ(e.f,t),23))){for(i=new Bf(new kf(e.d).a.vc().Kc());i.a.Ob();)if(a=$H(i.a.Pb(),42),s=(n=$H(a.dd(),23)).f,h=t.length,vF(s.substr(s.length-h,h),t)&&(t.length==s.length||46==cY(s,s.length-t.length-1))){if(o)return null;o=n}if(!o)for(r=new Bf(new kf(e.d).a.vc().Kc());r.a.Ob();)if(a=$H(r.a.Pb(),42),null!=(d=(n=$H(a.dd(),23)).g))for(c=0,u=(l=d).length;c<u;++c)if(s=l[c],h=t.length,vF(s.substr(s.length-h,h),t)&&(t.length==s.length||46==cY(s,s.length-t.length-1))){if(o)return null;o=n}o&&vZ(e.f,t,o)}return o}function mze(e,t){var n,r,i,o,a;for(n=new Tw,a=!1,o=0;o<t.length;o++)if(d0(o,t.length),32!=(r=t.charCodeAt(o)))a?39==r?o+1<t.length&&(d0(o+1,t.length),39==t.charCodeAt(o+1))?(n.a+=String.fromCharCode(r),++o):a=!1:n.a+=String.fromCharCode(r):UM("GyMLdkHmsSEcDahKzZv",YEe(r))>0?(Sve(e,n,0),n.a+=String.fromCharCode(r),Sve(e,n,i=rme(t,o)),o+=i-1):39==r?o+1<t.length&&(d0(o+1,t.length),39==t.charCodeAt(o+1))?(n.a+="'",++o):a=!0:n.a+=String.fromCharCode(r);else for(Sve(e,n,0),n.a+=" ",Sve(e,n,0);o+1<t.length&&(d0(o+1,t.length),32==t.charCodeAt(o+1));)++o;Sve(e,n,0),gEe(e)}function vze(e,t,n){var i,o,a,s,l,c,u,d,h,f,p,g,m,v;if(kEe(n,"Network simplex layering",1),e.b=t,v=4*$H(vSe(t,(jVe(),Nvt)),19).a,(m=e.b.a).c.length<1)jCe(n);else{for(g=null,o=sve(a=TFe(e,m),0);o.b!=o.d.c;){for(i=$H(d3(o),15),l=v*CJ(r.Math.sqrt(i.gc())),GFe(Kw(qw(Yw($$(s=a$e(i)),l),g),!0),voe(n,1)),h=e.b.b,p=new Gf(s.a);p.a<p.c.c.length;){for(f=$H(J0(p),121);h.c.length<=f.e;)bz(h,h.c.length,new jV(e.b));SZ($H(f.f,10),$H(NQ(h,f.e),29))}if(a.b>1)for(g=N8(kRt,lqe,25,e.b.b.c.length,15,1),d=0,u=new Gf(e.b.b);u.a<u.c.c.length;)c=$H(J0(u),29),g[d++]=c.a.c.length}m.c=N8(Met,jKe,1,0,5,1),e.a=null,e.b=null,e.c=null,jCe(n)}}function Aze(e){var t,n,i,o,a,s,l;for(t=0,a=new Gf(e.b.a);a.a<a.c.c.length;)(i=$H(J0(a),189)).b=0,i.c=0;for(wCe(e,0),epe(e,e.g),bRe(e.c),Xy(e.c),Fde(),n=PTt,RFe(eM(xWe(RFe(eM(xWe(RFe(xWe(e.c,n)),yhe(n)))),n))),xWe(e.c,PTt),$he(e,e.g),bSe(e,0),gUe(e,0),xDe(e,1),wCe(e,1),epe(e,e.d),bRe(e.c),s=new Gf(e.b.a);s.a<s.c.c.length;)i=$H(J0(s),189),t+=r.Math.abs(i.c);for(l=new Gf(e.b.a);l.a<l.c.c.length;)(i=$H(J0(l),189)).b=0,i.c=0;for(n=jTt,RFe(eM(xWe(RFe(eM(xWe(RFe(Xy(xWe(e.c,n))),yhe(n)))),n))),xWe(e.c,PTt),$he(e,e.d),bSe(e,1),gUe(e,1),xDe(e,0),Xy(e.c),o=new Gf(e.b.a);o.a<o.c.c.length;)i=$H(J0(o),189),t+=r.Math.abs(i.c);return t}function bze(e,t){var n,r,i,o,a,s,l,c,u;if(null!=(c=t).b&&null!=e.b){for(_De(e),HUe(e),_De(c),HUe(c),n=N8(kRt,lqe,25,e.b.length+c.b.length,15,1),u=0,r=0,a=0;r<e.b.length&&a<c.b.length;)if(i=e.b[r],o=e.b[r+1],s=c.b[a],l=c.b[a+1],o<s)r+=2;else if(o>=s&&i<=l)s<=i&&o<=l?(n[u++]=i,n[u++]=o,r+=2):s<=i?(n[u++]=i,n[u++]=l,e.b[r]=l+1,a+=2):o<=l?(n[u++]=s,n[u++]=o,r+=2):(n[u++]=s,n[u++]=l,e.b[r]=l+1);else{if(!(l<i))throw jv(new fy("Token#intersectRanges(): Internal Error: ["+e.b[r]+","+e.b[r+1]+"] & ["+c.b[a]+","+c.b[a+1]+"]"));a+=2}for(;r<e.b.length;)n[u++]=e.b[r++],n[u++]=e.b[r++];e.b=N8(kRt,lqe,25,u,15,1),iUe(n,0,e.b,0,u)}}function yze(e){var t,n,i,o,a,s,l;for(t=new Dv,e.g=new Dv,e.d=new Dv,s=new oce(new Sf(e.f.b).a);s.b;)GH(t,$H($H((a=Zte(s)).dd(),46).b,81)),fI($H(a.cd(),594).gf())?GH(e.d,$H(a.dd(),46)):GH(e.g,$H(a.dd(),46));for(epe(e,e.d),epe(e,e.g),e.c=new sMe(e.b),e_(e.c,(mS(),Uat)),$he(e,e.d),$he(e,e.g),pse(t,e.c.a.b),e.e=new Nk(Lqe,Lqe),e.a=new Nk(Bqe,Bqe),i=new Gf(t);i.a<i.c.c.length;)n=$H(J0(i),81),e.e.a=r.Math.min(e.e.a,n.g.c),e.e.b=r.Math.min(e.e.b,n.g.d),e.a.a=r.Math.max(e.a.a,n.g.c+n.g.b),e.a.b=r.Math.max(e.a.b,n.g.d+n.g.a);Zw(e.c,new wt),l=0;do{o=Aze(e),++l}while((l<2||o>BYe)&&l<10);Zw(e.c,new _t),Aze(e),TG(e.c),cze(e.f)}function wze(e,t,n){var r,i,o,a,s,l,c,u,d,h;if(Hy(_B(vSe(n,(jVe(),hmt)))))for(i=new Gf(n.j);i.a<i.c.c.length;)for(s=0,l=(a=X1($H(J0(i),11).g)).length;s<l;++s)(o=a[s]).d.i==n&&Hy(_B(vSe(o,fmt)))&&(u=o.c,(c=$H(LV(e.b,u),10))||(lle(c=dVe(u,(Kxe(),Kkt),u.j,-1,null,null,u.o,$H(vSe(t,zgt),103),t),(lKe(),fht),u),VK(e.b,u,c),GH(t.a,c)),h=o.d,(d=$H(LV(e.b,h),10))||(lle(d=dVe(h,(Kxe(),Kkt),h.j,1,null,null,h.o,$H(vSe(t,zgt),103),t),(lKe(),fht),h),VK(e.b,h,d),GH(t.a,d)),EZ(r=G5(o),$H(NQ(c.j,0),11)),xZ(r,$H(NQ(d.j,0),11)),qOe(e.a,o,new I$(r,t,(ire(),HAt))),$H(vSe(t,(lKe(),Xdt)),21).Fc((dBe(),udt)))}function _ze(e,t,n){var r,i,o,a,s,l,c,u,d,h,f,p;for(kEe(n,"Label dummy switching",1),r=$H(vSe(t,(jVe(),Vgt)),227),goe(t),i=yDe(t,r),e.a=N8(DRt,Hqe,25,t.b.c.length,15,1),MTe(),u=0,f=(s=Sse(Uw(out,1),MYe,227,0,[Xct,Zct,qct,Jct,eut,Yct])).length;u<f;++u)if(((o=s[u])==eut||o==Yct||o==Jct)&&!$H(ER(i.a,o)?i.b[o.g]:null,15).dc()){Xoe(e,t);break}for(d=0,p=(l=Sse(Uw(out,1),MYe,227,0,[Xct,Zct,qct,Jct,eut,Yct])).length;d<p;++d)(o=l[d])==eut||o==Yct||o==Jct||UFe(e,$H(ER(i.a,o)?i.b[o.g]:null,15));for(c=0,h=(a=Sse(Uw(out,1),MYe,227,0,[Xct,Zct,qct,Jct,eut,Yct])).length;c<h;++c)((o=a[c])==eut||o==Yct||o==Jct)&&UFe(e,$H(ER(i.a,o)?i.b[o.g]:null,15));e.a=null,jCe(n)}function xze(e,t){var n,r,i,o,a,s,l,c,u,d,h;switch(e.k.g){case 1:if(r=$H(vSe(e,(lKe(),fht)),17),(n=$H(vSe(r,pht),74))?Hy(_B(vSe(r,Cht)))&&(n=qle(n)):n=new bb,c=$H(vSe(e,lht),11)){if(t<=(u=Ole(Sse(Uw(SSt,1),sYe,8,0,[c.i.n,c.n,c.a]))).a)return u.b;n5(n,u,n.a,n.a.a)}if(d=$H(vSe(e,cht),11)){if((h=Ole(Sse(Uw(SSt,1),sYe,8,0,[d.i.n,d.n,d.a]))).a<=t)return h.b;n5(n,h,n.c.b,n.c)}if(n.b>=2){for(a=$H(d3(l=sve(n,0)),8),s=$H(d3(l),8);s.a<t&&l.b!=l.d.c;)a=s,s=$H(d3(l),8);return a.b+(t-a.a)/(s.a-a.a)*(s.b-a.b)}break;case 3:switch(i=(o=$H(vSe($H(NQ(e.j,0),11),(lKe(),fht)),11)).i,o.j.g){case 1:return i.n.b;case 3:return i.n.b+i.o.b}}return F_e(e).b}function Eze(e){var t,n,r,i,o,a,s,l,c,d;for(o=new Gf(e.d.b);o.a<o.c.c.length;)for(s=new Gf($H(J0(o),29).a);s.a<s.c.c.length;)!Hy(_B(vSe(a=$H(J0(s),10),(jVe(),_gt))))||l3(lfe(a))?(i=new zY(a.n.a-a.d.b,a.n.b-a.d.d,a.o.a+a.d.b+a.d.c,a.o.b+a.d.d+a.d.a),t=kR(tS(ZE(eS(new GA,a),i),fct),e.a),TR(JE(Wne(new WA,Sse(Uw(drt,1),jKe,57,0,[t])),t),e.a),l=new Rv,VK(e.e,t,l),(n=F3(new aW(XN(cfe(a).a.Kc(),new u)))-F3(new aW(XN(ufe(a).a.Kc(),new u))))<0?zse(l,!0,(Fde(),PTt)):n>0&&zse(l,!0,(Fde(),FTt)),a.k==(oCe(),xst)&&hY(l),VK(e.f,a,t)):((c=(r=$H(tX(lfe(a)),17)).c.i)==a&&(c=r.d.i),d=new nO(c,WP($D(a.n),c.n)),VK(e.b,a,d))}function Sze(e,t,n){var i,o,a,s,l,c,u,d;switch(kEe(n,"Node promotion heuristic",1),e.g=t,AGe(e),e.q=$H(vSe(t,(jVe(),Emt)),260),d=$H(vSe(e.g,xmt),19).a,a=new ur,e.q.g){case 2:case 1:default:PUe(e,a);break;case 3:for(e.q=(sRe(),kAt),PUe(e,a),c=0,l=new Gf(e.a);l.a<l.c.c.length;)s=$H(J0(l),19),c=r.Math.max(c,s.a);c>e.j&&(e.q=_At,PUe(e,a));break;case 4:for(e.q=(sRe(),kAt),PUe(e,a),u=0,o=new Gf(e.b);o.a<o.c.c.length;)i=xB(J0(o)),u=r.Math.max(u,(bK(i),i));u>e.k&&(e.q=SAt,PUe(e,a));break;case 6:PUe(e,new ag(CJ(r.Math.ceil(e.f.length*d/100))));break;case 5:PUe(e,new sg(CJ(r.Math.ceil(e.d*d/100))))}aBe(e,t),jCe(n)}function Cze(e,t,n){var r,i,o,a;this.j=e,this.e=Hxe(e),this.o=this.j.e,this.i=!!this.o,this.p=this.i?$H(NQ(n,mK(this.o).p),214):null,i=$H(vSe(e,(lKe(),Xdt)),21),this.g=i.Hc((dBe(),udt)),this.b=new Dv,this.d=new hge(this.e),a=$H(vSe(this.j,Eht),230),this.q=jae(t,a,this.e),this.k=new iZ(this),o=o6(Sse(Uw(yct,1),jKe,225,0,[this,this.d,this.k,this.q])),t!=(are(),kbt)||Hy(_B(vSe(e,(jVe(),Ngt))))?t==kbt&&Hy(_B(vSe(e,(jVe(),Ngt))))?(r=new zxe(this.e),o.c[o.c.length]=r,this.c=new gie(r,a,$H(this.q,402))):this.c=new mT(t,this):(r=new zxe(this.e),o.c[o.c.length]=r,this.c=new U2(r,a,$H(this.q,402))),GH(o,this.c),CUe(o,this.e),this.s=hVe(this.k)}function Tze(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A;for(h=(c=$H(tN(new hm(sve(new dm(t).a.d,0))),86))?$H(vSe(c,(HQe(),rwt)),86):null,i=1;c&&h;){for(a=0,A=0,n=c,r=h,o=0;o<i;o++)n=U8(n),r=U8(r),A+=Uy(xB(vSe(n,(HQe(),awt)))),a+=Uy(xB(vSe(r,awt)));if(v=Uy(xB(vSe(h,(HQe(),cwt)))),m=Uy(xB(vSe(c,cwt))),u=w5(c,h),0<(d=v+a+e.a+u-m-A)){for(s=t,l=0;s&&s!=r;)++l,s=$H(vSe(s,iwt),86);if(!s)return;for(g=d/l,s=t;s!=r;)p=Uy(xB(vSe(s,cwt)))+d,lle(s,cwt,p),f=Uy(xB(vSe(s,awt)))+d,lle(s,awt,f),d-=g,s=$H(vSe(s,iwt),86)}++i,h=(c=0==c.d.b?XFe(new dm(t),i):$H(tN(new hm(sve(new dm(c).a.d,0))),86))?$H(vSe(c,rwt),86):null}}function kze(e,t){var n,r,i,o,a,s,l,c,d;for(s=!0,i=0,l=e.f[t.p],c=t.o.b+e.n,n=e.c[t.p][2],r5(e.a,l,the($H(NQ(e.a,l),19).a-1+n)),r5(e.b,l,Uy(xB(NQ(e.b,l)))-c+n*e.e),++l>=e.i?(++e.i,GH(e.a,the(1)),GH(e.b,c)):(r=e.c[t.p][1],r5(e.a,l,the($H(NQ(e.a,l),19).a+1-r)),r5(e.b,l,Uy(xB(NQ(e.b,l)))+c-r*e.e)),(e.q==(sRe(),_At)&&($H(NQ(e.a,l),19).a>e.j||$H(NQ(e.a,l-1),19).a>e.j)||e.q==SAt&&(Uy(xB(NQ(e.b,l)))>e.k||Uy(xB(NQ(e.b,l-1)))>e.k))&&(s=!1),o=new aW(XN(cfe(t).a.Kc(),new u));fIe(o);)a=$H(z5(o),17).c.i,e.f[a.p]==l&&(i+=$H((d=kze(e,a)).a,19).a,s=s&&Hy(_B(d.b)));return e.f[t.p]=l,new nO(the(i+=e.c[t.p][0]),(lR(),!!s))}function Oze(e,t,n,i,o){var a,s,l,c,u,d,h,f,p,g,m,v,A;for(h=new Nv,s=new Dv,nOe(e,n,e.d.fg(),s,h),nOe(e,i,e.d.gg(),s,h),e.b=.2*(m=$Ie(hee(new LQ(null,new h0(s,16)),new Ta)),v=$Ie(hee(new LQ(null,new h0(s,16)),new ka)),r.Math.min(m,v)),a=0,l=0;l<s.c.length-1;l++)for(u0(l,s.c.length),c=$H(s.c[l],112),g=l+1;g<s.c.length;g++)a+=pUe(e,c,(u0(g,s.c.length),$H(s.c[g],112)));for(f=$H(vSe(t,(lKe(),Eht)),230),a>=2&&(A=KNe(s,!0,f),!e.e&&(e.e=new um(e)),sme(e.e,A,s,e.b)),tEe(s,f),rWe(s),p=-1,d=new Gf(s);d.a<d.c.c.length;)u=$H(J0(d),112),r.Math.abs(u.s-u.c)<uZe||(p=r.Math.max(p,u.o),e.d.dg(u,o,e.c));return e.d.a.a.$b(),p+1}function Mze(e,t){var n,r;Uy(xB(vSe(t,(jVe(),Avt))))<2&&lle(t,Avt,2),$H(vSe(t,zgt),103)==(Fde(),$Tt)&&lle(t,zgt,Ghe(t)),0==(n=$H(vSe(t,hvt),19)).a?lle(t,(lKe(),Eht),new sfe):lle(t,(lKe(),Eht),new C4(n.a)),null==_B(vSe(t,Nmt))&&lle(t,Nmt,(lR(),UO(vSe(t,Xgt))===UO((xfe(),KTt)))),qE(new LQ(null,new h0(t.a,16)),new Lp(e)),qE(hee(new LQ(null,new h0(t.b,16)),new At),new Bp(e)),r=new sze(t),lle(t,(lKe(),Oht),r),l2(e.a),CG(e.a,(ASe(),Lat),$H(vSe(t,Ugt),246)),CG(e.a,Bat,$H(vSe(t,Smt),246)),CG(e.a,Pat,$H(vSe(t,Hgt),246)),CG(e.a,Fat,$H(vSe(t,Pmt),246)),CG(e.a,$at,Eae($H(vSe(t,Xgt),218))),iI(e.a,IVe(t)),lle(t,xht,MQe(e.a,t))}function Ize(e,t,n){var r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w;return h=e.c[t],f=e.c[n],!((p=$H(vSe(h,(lKe(),rht)),15))&&0!=p.gc()&&p.Hc(f)||(g=h.k!=(oCe(),Sst)&&f.k!=Sst,A=(m=$H(vSe(h,nht),10))!=(v=$H(vSe(f,nht),10)),b=!!m&&m!=h||!!v&&v!=f,y=abe(h,(bGe(),sOt)),w=abe(f,EOt),b|=abe(h,EOt)||abe(f,sOt),g&&(b&&A||y||w))||h.k==(oCe(),Tst)&&f.k==Cst||f.k==(oCe(),Tst)&&h.k==Cst)&&(u=e.c[t],o=e.c[n],i=c_e(e.e,u,o,(bGe(),COt)),l=c_e(e.i,u,o,aOt),_Re(e.f,u,o),c=Dce(e.b,u,o)+$H(i.a,19).a+$H(l.a,19).a+e.f.d,s=Dce(e.b,o,u)+$H(i.b,19).a+$H(l.b,19).a+e.f.b,e.a&&(d=$H(vSe(u,fht),11),a=$H(vSe(o,fht),11),c+=$H((r=Hye(e.g,d,a)).a,19).a,s+=$H(r.b,19).a),c>s)}function Dze(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m;for(n=$H(vSe(e,(jVe(),evt)),98),s=e.f,a=e.d,l=s.a+a.b+a.c,c=0-a.d-e.c.b,d=s.b+a.d+a.a-e.c.b,u=new Dv,h=new Dv,o=new Gf(t);o.a<o.c.c.length;){switch(i=$H(J0(o),10),n.g){case 1:case 2:case 3:PRe(i);break;case 4:p=(f=$H(vSe(i,Jmt),8))?f.a:0,i.n.a=l*Uy(xB(vSe(i,(lKe(),_ht))))-p,qae(i,!0,!1);break;case 5:m=(g=$H(vSe(i,Jmt),8))?g.a:0,i.n.a=Uy(xB(vSe(i,(lKe(),_ht))))-m,qae(i,!0,!1),s.a=r.Math.max(s.a,i.n.a+i.o.a/2)}switch($H(vSe(i,(lKe(),Kdt)),61).g){case 1:i.n.b=c,u.c[u.c.length]=i;break;case 3:i.n.b=d,h.c[h.c.length]=i}}switch(n.g){case 1:case 2:Lde(u,e),Lde(h,e);break;case 3:Bde(u,e),Bde(h,e)}}function Nze(e,t){var n,r,i,o,a,s,l,c,u,d;for(u=new Dv,d=new Iv,o=null,i=0,r=0;r<t.length;++r)switch(Lce(o,n=t[r])&&(i=Cge(e,d,u,Bbt,i)),IL(n,(lKe(),nht))&&(o=$H(vSe(n,nht),10)),n.k.g){case 0:for(l=HI(BH(ife(n,(bGe(),sOt)),new Bo));Xre(l);)a=$H(S9(l),11),e.d[a.p]=i++,u.c[u.c.length]=a;for(i=Cge(e,d,u,Bbt,i),c=HI(BH(ife(n,EOt),new Bo));Xre(c);)a=$H(S9(c),11),e.d[a.p]=i++,u.c[u.c.length]=a;break;case 3:ife(n,Lbt).dc()||(a=$H(ife(n,Lbt).Xb(0),11),e.d[a.p]=i++,u.c[u.c.length]=a),ife(n,Bbt).dc()||f3(d,n);break;case 1:for(s=ife(n,(bGe(),COt)).Kc();s.Ob();)a=$H(s.Pb(),11),e.d[a.p]=i++,u.c[u.c.length]=a;ife(n,aOt).Jc(new XT(d,n))}return Cge(e,d,u,Bbt,i),u}function Rze(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b;for(u=Lqe,d=Lqe,l=Bqe,c=Bqe,f=new Gf(t.i);f.a<f.c.c.length;)h=$H(J0(f),65),EI(o=$H($H(LV(e.g,h.a),46).b,33),h.b.c,h.b.d),u=r.Math.min(u,o.i),d=r.Math.min(d,o.j),l=r.Math.max(l,o.i+o.g),c=r.Math.max(c,o.j+o.f);for(p=$H(XIe(e.c,(xSe(),dEt)),116),BGe(e.c,l-u+(p.b+p.c),c-d+(p.d+p.a),!0,!0),uSe(e.c,-u+p.b,-d+p.d),i=new ON(tq(e.c));i.e!=i.i.gc();)s=rBe(n=$H(bve(i),79),!0,!0),g=SSe(n),v=kSe(n),m=new Nk(g.i+g.g/2,g.j+g.f/2),a=new Nk(v.i+v.g/2,v.j+v.f/2),zwe(A=WP(new Nk(a.a,a.b),m),g.g,g.f),zP(m,A),zwe(b=WP(new Nk(m.a,m.b),a),v.g,v.f),zP(a,b),CI(s,m.a,m.b),SI(s,a.a,a.b)}function Lze(e,t){var n,r,i,o,a,s,l,c,u,d,h,f;if(e.c=e.d,h=null==(f=_B(vSe(t,(jVe(),fvt))))||(bK(f),f),o=$H(vSe(t,(lKe(),Xdt)),21).Hc((dBe(),udt)),n=!((i=$H(vSe(t,evt),98))==(Kxe(),zkt)||i==Gkt||i==Wkt),!h||!n&&o)d=new qy(Sse(Uw(yst,1),qZe,37,0,[t]));else{for(u=new Gf(t.a);u.a<u.c.c.length;)$H(J0(u),10).p=0;for(d=new Dv,c=new Gf(t.a);c.a<c.c.c.length;)if(r=I$e(e,$H(J0(c),10),null)){for(Hae(l=new vre,t),lle(l,Wdt,$H(r.b,21)),bq(l.d,t.d),lle(l,jmt,null),s=$H(r.a,15).Kc();s.Ob();)a=$H(s.Pb(),10),GH(l.a,a),a.a=l;d.Fc(l)}o&&(UO(vSe(t,Cgt))===UO(($de(),ust))?e.c=e.b:e.c=e.a)}return UO(vSe(t,Cgt))!==UO(($de(),hst))&&(Eq(),d.ad(new Rt)),d}function Bze(e){DS(e,new xEe(v_(f_(m_(h_(g_(p_(new ms,K3e),"ELK Mr. Tree"),"Tree-based algorithm provided by the Eclipse Layout Kernel. Computes a spanning tree of the input graph and arranges all nodes according to the resulting parent-children hierarchy. I pity the fool who doesn't use Mr. Tree Layout."),new La),Y3e),Jhe((lIe(),YMt))))),o2(e,K3e,KJe,kwt),o2(e,K3e,mZe,20),o2(e,K3e,VJe,fZe),o2(e,K3e,gZe,the(1)),o2(e,K3e,bZe,(lR(),!0)),o2(e,K3e,W2e,vve(wwt)),o2(e,K3e,SZe,vve(xwt)),o2(e,K3e,$Ze,vve(Ewt)),o2(e,K3e,EZe,vve(Swt)),o2(e,K3e,CZe,vve(_wt)),o2(e,K3e,xZe,vve(Cwt)),o2(e,K3e,TZe,vve(Owt)),o2(e,K3e,W3e,vve(Rwt)),o2(e,K3e,G3e,vve(Iwt))}function Pze(e){e.q||(e.q=!0,e.p=bae(e,0),e.a=bae(e,1),Bie(e.a,0),e.f=bae(e,2),Bie(e.f,1),Lie(e.f,2),e.n=bae(e,3),Lie(e.n,3),Lie(e.n,4),Lie(e.n,5),Lie(e.n,6),e.g=bae(e,4),Bie(e.g,7),Lie(e.g,8),e.c=bae(e,5),Bie(e.c,7),Bie(e.c,8),e.i=bae(e,6),Bie(e.i,9),Bie(e.i,10),Bie(e.i,11),Bie(e.i,12),Lie(e.i,13),e.j=bae(e,7),Bie(e.j,9),e.d=bae(e,8),Bie(e.d,3),Bie(e.d,4),Bie(e.d,5),Bie(e.d,6),Lie(e.d,7),Lie(e.d,8),Lie(e.d,9),Lie(e.d,10),e.b=bae(e,9),Lie(e.b,0),Lie(e.b,1),e.e=bae(e,10),Lie(e.e,1),Lie(e.e,2),Lie(e.e,3),Lie(e.e,4),Bie(e.e,5),Bie(e.e,6),Bie(e.e,7),Bie(e.e,8),Bie(e.e,9),Bie(e.e,10),Lie(e.e,11),e.k=bae(e,11),Lie(e.k,0),Lie(e.k,1),e.o=yae(e,12),e.s=yae(e,13))}function Fze(e,t){t.dc()&&eU(e.j,!0,!0,!0,!0),Dde(t,(bGe(),fOt))&&eU(e.j,!0,!0,!0,!1),Dde(t,lOt)&&eU(e.j,!1,!0,!0,!0),Dde(t,wOt)&&eU(e.j,!0,!0,!1,!0),Dde(t,xOt)&&eU(e.j,!0,!1,!0,!0),Dde(t,pOt)&&eU(e.j,!1,!0,!0,!1),Dde(t,cOt)&&eU(e.j,!1,!0,!1,!0),Dde(t,_Ot)&&eU(e.j,!0,!1,!1,!0),Dde(t,yOt)&&eU(e.j,!0,!1,!0,!1),Dde(t,AOt)&&eU(e.j,!0,!0,!0,!0),Dde(t,dOt)&&eU(e.j,!0,!0,!0,!0),Dde(t,AOt)&&eU(e.j,!0,!0,!0,!0),Dde(t,uOt)&&eU(e.j,!0,!0,!0,!0),Dde(t,bOt)&&eU(e.j,!0,!0,!0,!0),Dde(t,vOt)&&eU(e.j,!0,!0,!0,!0),Dde(t,mOt)&&eU(e.j,!0,!0,!0,!0)}function $ze(e,t,n,r,i){var o,a,s,l,c,u,d,h,f,p,g,m;for(o=new Dv,c=new Gf(r);c.a<c.c.c.length;)if(a=null,(s=$H(J0(c),441)).f==(ire(),HAt))for(p=new Gf(s.e);p.a<p.c.c.length;)mK(m=(f=$H(J0(p),17)).d.i)==t?Ete(e,t,s,f,s.b,f.d):!n||hae(m,n)?USe(e,t,s,r,f):((h=IUe(e,t,n,f,s.b,HAt,a))!=a&&(o.c[o.c.length]=h),h.c&&(a=h));else for(d=new Gf(s.e);d.a<d.c.c.length;)if(mK(g=(u=$H(J0(d),17)).c.i)==t)Ete(e,t,s,u,u.c,s.b);else{if(!n||hae(g,n))continue;(h=IUe(e,t,n,u,s.b,jAt,a))!=a&&(o.c[o.c.length]=h),h.c&&(a=h)}for(l=new Gf(o);l.a<l.c.c.length;)s=$H(J0(l),441),-1!=w9(t.a,s.a,0)||GH(t.a,s.a),s.c&&(i.c[i.c.length]=s)}function jze(e,t,n){var r,i,o,a,s,l,c,u;for(l=new Dv,s=new Gf(t.a);s.a<s.c.c.length;)for(u=ife($H(J0(s),10),(bGe(),aOt)).Kc();u.Ob();)for(i=new Gf($H(u.Pb(),11).g);i.a<i.c.c.length;)!d5(r=$H(J0(i),17))&&r.c.i.c==r.d.i.c||d5(r)||r.d.i.c!=n||(l.c[l.c.length]=r);for(a=eae(n.a).Kc();a.Ob();)for(u=ife($H(a.Pb(),10),(bGe(),COt)).Kc();u.Ob();)for(i=new Gf($H(u.Pb(),11).e);i.a<i.c.c.length;)if((d5(r=$H(J0(i),17))||r.c.i.c!=r.d.i.c)&&!d5(r)&&r.c.i.c==t){for(SL((c=new x2(l,l.c.length)).b>0),o=$H(c.a.Xb(c.c=--c.b),17);o!=r&&c.b>0;)e.a[o.p]=!0,e.a[r.p]=!0,SL(c.b>0),o=$H(c.a.Xb(c.c=--c.b),17);c.b>0&&cK(c)}}function Hze(e,t,n){var r,i,o,a,s,l,c,u,d;if(e.a!=t.Aj())throw jv(new Py(f6e+t.ne()+p6e));if(r=Cde((TTe(),qDt),t).$k())return r.Aj().Nh().Ih(r,n);if(a=Cde(qDt,t).al()){if(null==n)return null;if((s=$H(n,15)).dc())return"";for(d=new Ew,o=s.Kc();o.Ob();)i=o.Pb(),rM(d,a.Aj().Nh().Ih(a,i)),d.a+=" ";return BM(d,d.a.length-1)}if(!(u=Cde(qDt,t).bl()).dc()){for(c=u.Kc();c.Ob();)if((l=$H(c.Pb(),148)).wj(n))try{if(null!=(d=l.Aj().Nh().Ih(l,n)))return d}catch(e){if(!rN(e=use(e),102))throw jv(e)}throw jv(new Py("Invalid value: '"+n+"' for datatype :"+t.ne()))}return $H(t,834).Fj(),null==n?null:rN(n,172)?""+$H(n,172).a:Zle(n)==Att?jD(TMt[0],$H(n,199)):$fe(n)}function Uze(e){var t,n,i,o,a,s,l,c,u;for(c=new YE,s=new YE,o=new Gf(e);o.a<o.c.c.length;)(n=$H(J0(o),128)).v=0,n.n=n.i.c.length,n.u=n.t.c.length,0==n.n&&n5(c,n,c.c.b,c.c),0==n.u&&0==n.r.a.gc()&&n5(s,n,s.c.b,s.c);for(a=-1;0!=c.b;)for(t=new Gf((n=$H(Zye(c,0),128)).t);t.a<t.c.c.length;)(u=$H(J0(t),268).b).v=r.Math.max(u.v,n.v+1),a=r.Math.max(a,u.v),--u.n,0==u.n&&n5(c,u,c.c.b,c.c);if(a>-1){for(i=sve(s,0);i.b!=i.d.c;)(n=$H(d3(i),128)).v=a;for(;0!=s.b;)for(t=new Gf((n=$H(Zye(s,0),128)).i);t.a<t.c.c.length;)0==(l=$H(J0(t),268).a).r.a.gc()&&(l.v=r.Math.min(l.v,n.v-1),--l.u,0==l.u&&n5(s,l,s.c.b,s.c))}}function Qze(e,t,n,i,o){var a,s,l,c;return c=Lqe,s=!1,a=!!(l=QHe(e,WP(new Nk(t.a,t.b),e),zP(new Nk(n.a,n.b),o),WP(new Nk(i.a,i.b),n)))&&!(r.Math.abs(l.a-e.a)<=s5e&&r.Math.abs(l.b-e.b)<=s5e||r.Math.abs(l.a-t.a)<=s5e&&r.Math.abs(l.b-t.b)<=s5e),(l=QHe(e,WP(new Nk(t.a,t.b),e),n,o))&&((r.Math.abs(l.a-e.a)<=s5e&&r.Math.abs(l.b-e.b)<=s5e)==(r.Math.abs(l.a-t.a)<=s5e&&r.Math.abs(l.b-t.b)<=s5e)||a?c=r.Math.min(c,uK(WP(l,n))):s=!0),(l=QHe(e,WP(new Nk(t.a,t.b),e),i,o))&&(s||(r.Math.abs(l.a-e.a)<=s5e&&r.Math.abs(l.b-e.b)<=s5e)==(r.Math.abs(l.a-t.a)<=s5e&&r.Math.abs(l.b-t.b)<=s5e)||a)&&(c=r.Math.min(c,uK(WP(l,i)))),c}function zze(e){DS(e,new xEe(f_(m_(h_(g_(p_(new ms,PZe),FZe),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new gt),pZe))),o2(e,PZe,yZe,vve(bat)),o2(e,PZe,_Ze,(lR(),!0)),o2(e,PZe,SZe,vve(_at)),o2(e,PZe,$Ze,vve(xat)),o2(e,PZe,EZe,vve(Eat)),o2(e,PZe,CZe,vve(wat)),o2(e,PZe,xZe,vve(Sat)),o2(e,PZe,TZe,vve(Cat)),o2(e,PZe,DZe,vve(Aat)),o2(e,PZe,RZe,vve(mat)),o2(e,PZe,LZe,vve(vat)),o2(e,PZe,BZe,vve(yat)),o2(e,PZe,NZe,vve(gat))}function Wze(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m;for(kEe(t,"Interactive crossing minimization",1),a=0,o=new Gf(e.b);o.a<o.c.c.length;)(r=$H(J0(o),29)).p=a++;for(g=new L_((h=Hxe(e)).length),CUe(new qy(Sse(Uw(yct,1),jKe,225,0,[g])),h),p=0,a=0,i=new Gf(e.b);i.a<i.c.c.length;){for(n=0,d=0,u=new Gf((r=$H(J0(i),29)).a);u.a<u.c.c.length;)for((l=$H(J0(u),10)).n.a>0&&(n+=l.n.a+l.o.a/2,++d),f=new Gf(l.j);f.a<f.c.c.length;)$H(J0(f),11).p=p++;for(d>0&&(n/=d),m=N8(DRt,Hqe,25,r.a.c.length,15,1),s=0,c=new Gf(r.a);c.a<c.c.c.length;)(l=$H(J0(c),10)).p=s++,m[l.p]=xze(l,n),l.k==(oCe(),Sst)&&lle(l,(lKe(),ght),m[l.p]);Eq(),vD(r.a,new Ug(m)),n$e(g,h,a,!0),++a}jCe(t)}function Gze(e,t){var n,r,i,o,a,s,l,c,u;if(5!=t.e){if(null!=(c=t).b&&null!=e.b){for(_De(e),HUe(e),_De(c),HUe(c),n=N8(kRt,lqe,25,e.b.length+c.b.length,15,1),u=0,r=0,a=0;r<e.b.length&&a<c.b.length;)if(i=e.b[r],o=e.b[r+1],s=c.b[a],l=c.b[a+1],o<s)n[u++]=e.b[r++],n[u++]=e.b[r++];else if(o>=s&&i<=l)s<=i&&o<=l?r+=2:s<=i?(e.b[r]=l+1,a+=2):o<=l?(n[u++]=i,n[u++]=s-1,r+=2):(n[u++]=i,n[u++]=s-1,e.b[r]=l+1,a+=2);else{if(!(l<i))throw jv(new fy("Token#subtractRanges(): Internal Error: ["+e.b[r]+","+e.b[r+1]+"] - ["+c.b[a]+","+c.b[a+1]+"]"));a+=2}for(;r<e.b.length;)n[u++]=e.b[r++],n[u++]=e.b[r++];e.b=N8(kRt,lqe,25,u,15,1),iUe(n,0,e.b,0,u)}}else bze(e,t)}function Vze(e){var t,n,r,i,o,a,s;if(!e.A.dc()){if(e.A.Hc((vge(),BOt))&&($H(aY(e.b,(bGe(),sOt)),124).k=!0,$H(aY(e.b,EOt),124).k=!0,t=e.q!=(Kxe(),Gkt)&&e.q!=Wkt,Ih($H(aY(e.b,aOt),124),t),Ih($H(aY(e.b,COt),124),t),Ih(e.g,t),e.A.Hc(POt)&&($H(aY(e.b,sOt),124).j=!0,$H(aY(e.b,EOt),124).j=!0,$H(aY(e.b,aOt),124).k=!0,$H(aY(e.b,COt),124).k=!0,e.g.k=!0)),e.A.Hc(LOt))for(e.a.j=!0,e.a.k=!0,e.g.j=!0,e.g.k=!0,s=e.B.Hc((JFe(),WOt)),o=0,a=(i=Zme()).length;o<a;++o)r=i[o],(n=$H(aY(e.i,r),306))&&(ime(r)?(n.j=!0,n.k=!0):(n.j=!s,n.k=!s));e.A.Hc(ROt)&&e.B.Hc((JFe(),zOt))&&(e.g.j=!0,e.g.j=!0,e.a.j||(e.a.j=!0,e.a.k=!0,e.a.e=!0))}}function Kze(e){var t,n,r,i,o,a,s,l,c,u,d,h,f,p,g;for(n=new Gf(e.e.b);n.a<n.c.c.length;)for(i=new Gf($H(J0(n),29).a);i.a<i.c.c.length;)if(r=$H(J0(i),10),l=(d=e.i[r.p]).a.e,s=d.d.e,r.n.b=l,g=s-l-r.o.b,t=OUe(r),dAe(),u=(r.q?r.q:(Eq(),Eq(),cnt))._b((jVe(),Lmt))?$H(vSe(r,Lmt),197):$H(vSe(mK(r),Bmt),197),t&&(u==cAt||u==lAt)&&(r.o.b+=g),t&&(u==dAt||u==cAt||u==lAt)){for(f=new Gf(r.j);f.a<f.c.c.length;)h=$H(J0(f),11),(bGe(),dOt).Hc(h.j)&&(c=$H(LV(e.k,h),121),h.n.b=c.e-l);for(a=new Gf(r.b);a.a<a.c.c.length;)o=$H(J0(a),70),(p=$H(vSe(r,Mmt),21)).Hc((JIe(),Dkt))?o.n.b+=g:p.Hc(Nkt)&&(o.n.b+=g/2);(u==cAt||u==lAt)&&ife(r,(bGe(),EOt)).Jc(new im(g))}}function Yze(e,t,n){var r,i,o,a,s,l,c,u,d,h,f;if(!e.b)return!1;for(a=null,h=null,i=1,(l=new j8(null,null)).a[1]=e.b,d=l;d.a[i];)c=i,s=h,h=d,d=d.a[i],i=(r=e.a.ue(t,d.d))<0?0:1,0==r&&(!n.c||rY(d.e,n.d))&&(a=d),d&&d.b||Vy(d.a[i])||(Vy(d.a[1-i])?h=h.a[c]=hie(d,i):Vy(d.a[1-i])||(f=h.a[1-c])&&(Vy(f.a[1-c])||Vy(f.a[c])?(o=s.a[1]==h?1:0,Vy(f.a[c])?s.a[o]=n2(h,c):Vy(f.a[1-c])&&(s.a[o]=hie(h,c)),d.b=s.a[o].b=!0,s.a[o].a[0].b=!1,s.a[o].a[1].b=!1):(h.b=!1,f.b=!0,d.b=!0)));return a&&(n.b=!0,n.d=a.e,d!=a&&(dSe(e,l,a,u=new j8(d.d,d.e)),h==a&&(h=u)),h.a[h.a[1]==d?1:0]=d.a[d.a[0]?0:1],--e.c),e.b=l.a[1],e.b&&(e.b.b=!1),n.b}function qze(e){var t,n,i,o,a,s,l,c,u,d,h,f;for(o=new Gf(e.a.a.b);o.a<o.c.c.length;)for(c=(i=$H(J0(o),57)).c.Kc();c.Ob();)l=$H(c.Pb(),57),i.a!=l.a&&(h=fI(e.a.d)?e.a.g.Oe(i,l):e.a.g.Pe(i,l),a=i.b.a+i.d.b+h-l.b.a,a=r.Math.ceil(a),a=r.Math.max(0,a),X9(i,l)?(s=OR(new HA,e.d),t=(u=CJ(r.Math.ceil(l.b.a-i.b.a)))-(l.b.a-i.b.a),n=i,(d=c3(i).a)||(d=c3(l).a,t=-t,n=l),d&&(n.b.a-=t,d.n.a-=t),zRe(iS(rS(oS(nS(new jA,r.Math.max(0,u)),1),s),e.c[i.a.d])),zRe(iS(rS(oS(nS(new jA,r.Math.max(0,-u)),1),s),e.c[l.a.d]))):(f=1,(rN(i.g,145)&&rN(l.g,10)||rN(l.g,145)&&rN(i.g,10))&&(f=2),zRe(iS(rS(oS(nS(new jA,CJ(a)),f),e.c[i.a.d]),e.c[l.a.d]))))}function Xze(e,t,n){var i,o,a,s,l,c,u,d,h,f;if(n)for(i=-1,d=new x2(t,0);d.b<d.d.gc();){if(SL(d.b<d.d.gc()),l=$H(d.d.Xb(d.c=d.b++),10),null==(h=e.c[l.c.p][l.p].a)){for(s=i+1,a=new x2(t,d.b);a.b<a.d.gc();)if(null!=(f=hN(e,(SL(a.b<a.d.gc()),$H(a.d.Xb(a.c=a.b++),10))).a)){bK(f),s=f;break}h=(i+s)/2,e.c[l.c.p][l.p].a=h,e.c[l.c.p][l.p].d=(bK(h),h),e.c[l.c.p][l.p].b=1}bK(h),i=h}else{for(o=0,u=new Gf(t);u.a<u.c.c.length;)l=$H(J0(u),10),null!=e.c[l.c.p][l.p].a&&(o=r.Math.max(o,Uy(e.c[l.c.p][l.p].a)));for(o+=2,c=new Gf(t);c.a<c.c.c.length;)l=$H(J0(c),10),null==e.c[l.c.p][l.p].a&&(h=jDe(e.i,24)*oXe*o-1,e.c[l.c.p][l.p].a=h,e.c[l.c.p][l.p].d=h,e.c[l.c.p][l.p].b=1)}}function Jze(){LM(FIt,new tc),LM(LIt,new hc),LM(jIt,new xc),LM($It,new Oc),LM(HIt,new Mc),LM(zIt,new Ic),LM(WIt,new Dc),LM($Mt,new Nc),LM(FMt,new Wl),LM(jMt,new Gl),LM(MMt,new Vl),LM(VIt,new Kl),LM(HMt,new Yl),LM(KIt,new ql),LM(YIt,new Xl),LM(PIt,new Jl),LM(BIt,new Zl),LM(zDt,new ec),LM(GIt,new nc),LM(TDt,new rc),LM(ytt,new ic),LM(Uw(IRt,1),new oc),LM(xtt,new ac),LM(Stt,new sc),LM(Att,new lc),LM(BRt,new cc),LM(Ctt,new uc),LM(iIt,new dc),LM(vIt,new fc),LM(uNt,new pc),LM(ODt,new gc),LM(Ttt,new mc),LM(Mtt,new vc),LM(Iet,new Ac),LM(Btt,new bc),LM(Net,new yc),LM(eNt,new wc),LM(PRt,new _c),LM(Ftt,new Ec),LM(Ytt,new Sc),LM(lIt,new Cc),LM(FRt,new Tc)}function Zze(e,t,n){var r,i,o,a,s,l,c,u,d;for(!n&&(n=Use(t.q.getTimezoneOffset())),i=6e4*(t.q.getTimezoneOffset()-n.a),l=s=new SB(nfe(cae(t.q.getTime()),i)),s.q.getTimezoneOffset()!=t.q.getTimezoneOffset()&&(i>0?i-=864e5:i+=864e5,l=new SB(nfe(cae(t.q.getTime()),i))),u=new Tw,c=e.a.length,o=0;o<c;)if((r=cY(e.a,o))>=97&&r<=122||r>=65&&r<=90){for(a=o+1;a<c&&cY(e.a,a)==r;++a);iKe(u,r,a-o,s,l,n),o=a}else if(39==r){if(++o<c&&39==cY(e.a,o)){u.a+="'",++o;continue}for(d=!1;!d;){for(a=o;a<c&&39!=cY(e.a,a);)++a;if(a>=c)throw jv(new Py("Missing trailing '"));a+1<c&&39==cY(e.a,a+1)?++a:d=!0,aM(u,cL(e.a,o,a)),o=a+1}}else u.a+=String.fromCharCode(r),++o;return u.a}function eWe(e){var t,n,r,i,o,a,s,l;for(t=null,r=new Gf(e);r.a<r.c.c.length;)Uy(uN((n=$H(J0(r),233)).g,n.d[0]).a),n.b=null,n.e&&n.e.gc()>0&&0==n.c&&(!t&&(t=new Dv),t.c[t.c.length]=n);if(t)for(;0!=t.c.length;){if((n=$H(s6(t,0),233)).b&&n.b.c.length>0)for(!n.b&&(n.b=new Dv),o=new Gf(n.b);o.a<o.c.c.length;)if(Qy(uN((i=$H(J0(o),233)).g,i.d[0]).a)==Qy(uN(n.g,n.d[0]).a)){if(w9(e,i,0)>w9(e,n,0))return new nO(i,n)}else if(Uy(uN(i.g,i.d[0]).a)>Uy(uN(n.g,n.d[0]).a))return new nO(i,n);for(s=(!n.e&&(n.e=new Dv),n.e).Kc();s.Ob();)!(a=$H(s.Pb(),233)).b&&(a.b=new Dv),IZ(0,(l=a.b).c.length),xC(l.c,0,n),a.c==l.c.length&&(t.c[t.c.length]=a)}return null}function tWe(e,t){var n,r,i,o,a,s;if(null==e)return QKe;if(null!=t.a.zc(e,t))return"[...]";for(n=new Mae(FKe,"[","]"),o=0,a=(i=e).length;o<a;++o)null!=(r=i[o])&&4&Zle(r).i?!Array.isArray(r)||(s=mee(r))>=14&&s<=16?rN(r,177)?d6(n,Lke($H(r,177))):rN(r,190)?d6(n,qxe($H(r,190))):rN(r,195)?d6(n,bCe($H(r,195))):rN(r,2012)?d6(n,Xxe($H(r,2012))):rN(r,48)?d6(n,Rke($H(r,48))):rN(r,364)?d6(n,pOe($H(r,364))):rN(r,832)?d6(n,Nke($H(r,832))):rN(r,104)&&d6(n,Dke($H(r,104))):t.a._b(r)?(n.a?aM(n.a,n.b):n.a=new uR(n.d),iM(n.a,"[...]")):d6(n,tWe(ene(r),new MQ(t))):d6(n,null==r?QKe:$fe(r));return n.a?0==n.e.length?n.a.a:n.a.a+""+n.e:n.c}function nWe(e,t,n,i){var o,a,s,l,c,u,d,h,f,p,g,m;for(p=HCe(rBe(t,!1,!1)),i&&(p=qle(p)),m=Uy(xB(XIe(t,(wve(),got)))),SL(0!=p.b),f=$H(p.a.a.c,8),u=$H(Rve(p,1),8),p.b>2?(pse(c=new Dv,new s0(p,1,p.b)),Hae(g=new wIe(WVe(c,m+e.a)),t),n.c[n.c.length]=g):g=$H(LV(e.b,i?SSe(t):kSe(t)),266),s=SSe(t),i&&(s=kSe(t)),a=tTe(f,s),l=m+e.a,a.a?(l+=r.Math.abs(f.b-u.b),h=new Nk(u.a,(u.b+f.b)/2)):(l+=r.Math.abs(f.a-u.a),h=new Nk((u.a+f.a)/2,u.b)),VK(i?e.d:e.c,t,new Tbe(g,a,h,l)),VK(e.b,t,g),!t.n&&(t.n=new eG(UMt,t,1,7)),d=new ON(t.n);d.e!=d.i.gc();)o=qPe(e,$H(bve(d),137),!0,0,0),n.c[n.c.length]=o}function rWe(e){var t,n,i,o,a,s,l,c,u;for(c=new Dv,s=new Dv,a=new Gf(e);a.a<a.c.c.length;)Gh(i=$H(J0(a),112),i.f.c.length),Vh(i,i.k.c.length),0==i.d&&(c.c[c.c.length]=i),0==i.i&&0==i.e.b&&(s.c[s.c.length]=i);for(n=-1;0!=c.c.length;)for(t=new Gf((i=$H(s6(c,0),112)).k);t.a<t.c.c.length;)Kh(u=$H(J0(t),129).b,r.Math.max(u.o,i.o+1)),n=r.Math.max(n,u.o),Gh(u,u.d-1),0==u.d&&(c.c[c.c.length]=u);if(n>-1){for(o=new Gf(s);o.a<o.c.c.length;)(i=$H(J0(o),112)).o=n;for(;0!=s.c.length;)for(t=new Gf((i=$H(s6(s,0),112)).f);t.a<t.c.c.length;)(l=$H(J0(t),129).a).e.b>0||(Kh(l,r.Math.min(l.o,i.o-1)),Vh(l,l.i-1),0==l.i&&(s.c[s.c.length]=l))}}function iWe(e,t,n){var r,i,o,a,s;if(s=e.c,!t&&(t=MDt),e.c=t,4&e.Db&&!(1&e.Db)&&(a=new JW(e,1,2,s,e.c),n?n.Ei(a):n=a),s!=t)if(rN(e.Cb,284))e.Db>>16==-10?n=$H(e.Cb,284).nk(t,n):e.Db>>16==-15&&(!t&&(pKe(),t=cDt),!s&&(pKe(),s=cDt),e.Cb.nh()&&(a=new D9(e.Cb,1,13,s,t,oAe(j9($H(e.Cb,59)),e),!1),n?n.Ei(a):n=a));else if(rN(e.Cb,88))e.Db>>16==-23&&(rN(t,88)||(pKe(),t=hDt),rN(s,88)||(pKe(),s=hDt),e.Cb.nh()&&(a=new D9(e.Cb,1,10,s,t,oAe(i4($H(e.Cb,26)),e),!1),n?n.Ei(a):n=a));else if(rN(e.Cb,444))for(!(o=$H(e.Cb,836)).b&&(o.b=new _v(new Nb)),i=new xv(new oce(new Sf(o.b.a).a));i.a.b;)n=iWe(r=$H(Zte(i.a).cd(),87),bNe(r,o),n);return n}function oWe(e,t){var n,r,i,o,a,s,l,c,u,d,h;for(a=Hy(_B(XIe(e,(jVe(),hmt)))),h=$H(XIe(e,rvt),21),l=!1,c=!1,d=new ON((!e.c&&(e.c=new eG(zMt,e,9,9)),e.c));!(d.e==d.i.gc()||l&&c);){for(o=$H(bve(d),118),s=0,i=DG(Gne(Sse(Uw(Ret,1),jKe,20,0,[(!o.d&&(o.d=new lF(BMt,o,8,5)),o.d),(!o.e&&(o.e=new lF(BMt,o,7,4)),o.e)])));fIe(i)&&(r=$H(z5(i),79),u=a&&KOe(r)&&Hy(_B(XIe(r,fmt))),n=dQe((!r.b&&(r.b=new lF(LMt,r,4,7)),r.b),o)?e==qJ(SEe($H(Gte((!r.c&&(r.c=new lF(LMt,r,5,8)),r.c),0),82))):e==qJ(SEe($H(Gte((!r.b&&(r.b=new lF(LMt,r,4,7)),r.b),0),82))),!((u||n)&&++s>1)););(s>0||h.Hc((uOe(),eOt))&&(!o.n&&(o.n=new eG(UMt,o,1,7)),o.n).i>0)&&(l=!0),s>1&&(c=!0)}l&&t.Fc((dBe(),udt)),c&&t.Fc((dBe(),ddt))}function aWe(e){var t,n,i,o,a,s,l,c,u,d,h,f;if((f=$H(XIe(e,(sKe(),BCt)),21)).dc())return null;if(l=0,s=0,f.Hc((vge(),BOt))){for(d=$H(XIe(e,oTt),98),i=2,n=2,o=2,a=2,t=qJ(e)?$H(XIe(qJ(e),dCt),103):$H(XIe(e,dCt),103),u=new ON((!e.c&&(e.c=new eG(zMt,e,9,9)),e.c));u.e!=u.i.gc();)if(c=$H(bve(u),118),(h=$H(XIe(c,hTt),61))==(bGe(),SOt)&&(h=kje(c,t),Yve(c,hTt,h)),d==(Kxe(),Wkt))switch(h.g){case 1:i=r.Math.max(i,c.i+c.g);break;case 2:n=r.Math.max(n,c.j+c.f);break;case 3:o=r.Math.max(o,c.i+c.g);break;case 4:a=r.Math.max(a,c.j+c.f)}else switch(h.g){case 1:i+=c.g+2;break;case 2:n+=c.f+2;break;case 3:o+=c.g+2;break;case 4:a+=c.f+2}l=r.Math.max(i,o),s=r.Math.max(n,a)}return BGe(e,l,s,!0,!0)}function sWe(e,t,n,i,o){var a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w;for(b=$H(S4(Ate(OY(new LQ(null,new h0(t.d,16)),new Mg(n)),new Ig(n)),v7(new U,new H,new re,Sse(Uw(Jnt,1),MYe,132,0,[(Hce(),znt)]))),15),h=RKe,d=PYe,c=new Gf(t.b.j);c.a<c.c.c.length;)(l=$H(J0(c),11)).j==n&&(h=r.Math.min(h,l.p),d=r.Math.max(d,l.p));if(h==RKe)for(s=0;s<b.gc();s++)p7($H(b.Xb(s),101),n,s);else for(XQ(y=N8(kRt,lqe,25,o.length,15,1),y.length),A=b.Kc();A.Ob();){for(v=$H(A.Pb(),101),a=$H(LV(e.b,v),177),u=0,m=h;m<=d;m++)a[m]&&(u=r.Math.max(u,i[m]));if(v.i){for(p=v.i.c,w=new LA,f=0;f<o.length;f++)o[p][f]&&_G(w,the(y[f]));for(;FE(w,the(u));)++u}for(p7(v,n,u),g=h;g<=d;g++)a[g]&&(i[g]=u+1);v.i&&(y[v.i.c]=u)}}function lWe(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g;for(o=null,i=new Gf(t.a);i.a<i.c.c.length;)OUe(n=$H(J0(i),10))?(u=new UY(n,!0,l=OR(aS(new HA,n),e.f),c=OR(aS(new HA,n),e.f)),d=n.o.b,dAe(),f=1e4,(h=(n.q?n.q:(Eq(),Eq(),cnt))._b((jVe(),Lmt))?$H(vSe(n,Lmt),197):$H(vSe(mK(n),Bmt),197))==lAt&&(f=1),p=zRe(iS(rS(nS(oS(new jA,f),CJ(r.Math.ceil(d))),l),c)),h==cAt&&_G(e.d,p),k$e(e,eae(ife(n,(bGe(),COt))),u),k$e(e,ife(n,aOt),u),a=u):(g=OR(aS(new HA,n),e.f),qE(OY(new LQ(null,new h0(n.j,16)),new Uo),new ZT(e,g)),a=new UY(n,!1,g,g)),e.i[n.p]=a,o&&(s=o.c.d.a+BD(e.n,o.c,n)+n.d.d,o.b||(s+=o.c.o.b),zRe(iS(rS(oS(nS(new jA,CJ(r.Math.ceil(s))),0),o.d),a.a))),o=a}function cWe(e,t){var n,i,o,a,s,l,c,d,h,f,p,g,m;for(kEe(t,"Label dummy insertions",1),f=new Dv,s=Uy(xB(vSe(e,(jVe(),yvt)))),d=Uy(xB(vSe(e,Evt))),h=$H(vSe(e,zgt),103),p=new Gf(e.a);p.a<p.c.c.length;)for(a=new aW(XN(ufe($H(J0(p),10)).a.Kc(),new u));fIe(a);)if((o=$H(z5(a),17)).c.i!=o.d.i&&ZD(o.b,Jlt)){for(n=aNe(e,o,m=wte(o),g=sL(o.b.c.length)),f.c[f.c.length]=n,i=n.o,l=new x2(o.b,0);l.b<l.d.gc();)SL(l.b<l.d.gc()),UO(vSe(c=$H(l.d.Xb(l.c=l.b++),70),Ygt))===UO((Lte(),QTt))&&(h==(Fde(),jTt)||h==BTt?(i.a+=c.o.a+d,i.b=r.Math.max(i.b,c.o.b)):(i.a=r.Math.max(i.a,c.o.a),i.b+=c.o.b+d),g.c[g.c.length]=c,cK(l));h==(Fde(),jTt)||h==BTt?(i.a-=d,i.b+=s+m):i.b+=s-d+m}pse(e.a,f),jCe(t)}function uWe(e,t,n,i){var o,a,s,l,c,u,d,h,f,p;for(h=WBe(e,t,a=new fMe(t)),p=r.Math.max(Uy(xB(vSe(t,(jVe(),imt)))),1),d=new Gf(h.a);d.a<d.c.c.length;)u=$H(J0(d),46),c=$me($H(u.a,8),$H(u.b,8),p),QU(n,new Nk(c.c,c.d)),QU(n,PL(new Nk(c.c,c.d),c.b,0)),QU(n,PL(new Nk(c.c,c.d),0,c.a)),QU(n,PL(new Nk(c.c,c.d),c.b,c.a));switch(f=a.d,l=$me($H(h.b.a,8),$H(h.b.b,8),p),f==(bGe(),COt)||f==aOt?(i.c[f.g]=r.Math.min(i.c[f.g],l.d),i.b[f.g]=r.Math.max(i.b[f.g],l.d+l.a)):(i.c[f.g]=r.Math.min(i.c[f.g],l.c),i.b[f.g]=r.Math.max(i.b[f.g],l.c+l.b)),o=Bqe,s=a.c.i.d,f.g){case 4:o=s.c;break;case 2:o=s.b;break;case 1:o=s.a;break;case 3:o=s.d}return i.a[f.g]=r.Math.max(i.a[f.g],o),a}function dWe(e){var t,n,r,i;if(-1!=(t=UM(n=null!=e.D?e.D:e.B,YEe(91)))){r=n.substr(0,t),i=new Ew;do{i.a+="["}while(-1!=(t=uL(n,91,++t)));vF(r,MKe)?i.a+="Z":vF(r,E7e)?i.a+="B":vF(r,S7e)?i.a+="C":vF(r,C7e)?i.a+="D":vF(r,T7e)?i.a+="F":vF(r,k7e)?i.a+="I":vF(r,O7e)?i.a+="J":vF(r,M7e)?i.a+="S":(i.a+="L",i.a+=""+r,i.a+=";");try{return null}catch(e){if(!rN(e=use(e),60))throw jv(e)}}else if(-1==UM(n,YEe(46))){if(vF(n,MKe))return ORt;if(vF(n,E7e))return IRt;if(vF(n,S7e))return TRt;if(vF(n,C7e))return DRt;if(vF(n,T7e))return NRt;if(vF(n,k7e))return kRt;if(vF(n,O7e))return MRt;if(vF(n,M7e))return RRt}return null}function hWe(e,t,n){var r,i,o,a,s,l,c,u;for(Hae(c=new MAe(n),t),lle(c,(lKe(),fht),t),c.o.a=t.g,c.o.b=t.f,c.n.a=t.i,c.n.b=t.j,GH(n.a,c),VK(e.a,t,c),(0!=(!t.a&&(t.a=new eG(QMt,t,10,11)),t.a).i||Hy(_B(XIe(t,(jVe(),hmt)))))&&lle(c,Pdt,(lR(),!0)),l=$H(vSe(n,Xdt),21),(u=$H(vSe(c,(jVe(),evt)),98))==(Kxe(),Ykt)?lle(c,evt,Kkt):u!=Kkt&&l.Fc((dBe(),fdt)),r=$H(vSe(n,zgt),103),s=new ON((!t.c&&(t.c=new eG(zMt,t,9,9)),t.c));s.e!=s.i.gc();)Hy(_B(XIe(a=$H(bve(s),118),Umt)))||XWe(e,a,c,l,r,u);for(o=new ON((!t.n&&(t.n=new eG(UMt,t,1,7)),t.n));o.e!=o.i.gc();)!Hy(_B(XIe(i=$H(bve(o),137),Umt)))&&i.a&&GH(c.b,jue(i));return Hy(_B(vSe(c,_gt)))&&l.Fc((dBe(),ldt)),Hy(_B(vSe(c,dmt)))&&(l.Fc((dBe(),hdt)),l.Fc(ddt),lle(c,evt,Kkt)),c}function fWe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E;s=$H(LV(t.c,e),459),m=t.a.c,l=t.a.c+t.a.b,a=(x=s.f)<(E=s.a),f=new Nk(m,x),v=new Nk(l,E),p=new Nk(i=(m+l)/2,x),A=new Nk(i,E),o=eRe(e,x,E),y=p0(t.B),w=new Nk(i,o),_=p0(t.D),n=ule(Sse(Uw(SSt,1),sYe,8,0,[y,w,_])),d=!1,(g=t.B.i)&&g.c&&s.d&&((c=a&&g.p<g.c.a.c.length-1||!a&&g.p>0)?c&&(u=g.p,a?++u:--u,d=!(rRe(r=tle($H(NQ(g.c.a,u),10)),y,n[0])||$W(r,y,n[0]))):d=!0),h=!1,(b=t.D.i)&&b.c&&s.e&&(a&&b.p>0||!a&&b.p<b.c.a.c.length-1?(u=b.p,a?--u:++u,h=!(rRe(r=tle($H(NQ(b.c.a,u),10)),n[0],_)||$W(r,n[0],_))):h=!0),d&&h&&RU(e.a,w),d||Jne(e.a,Sse(Uw(SSt,1),sYe,8,0,[f,p])),h||Jne(e.a,Sse(Uw(SSt,1),sYe,8,0,[A,v]))}function pWe(e,t){var n,r,i,o,a,s,l;if(rN(e.Ug(),160)?(pWe($H(e.Ug(),160),t),t.a+=" > "):t.a+="Root ",vF((n=e.Tg().zb).substr(0,3),"Elk")?aM(t,n.substr(3)):t.a+=""+n,i=e.zg())aM((t.a+=" ",t),i);else if(rN(e,354)&&(l=$H(e,137).a))aM((t.a+=" ",t),l);else{for(o=new ON(e.Ag());o.e!=o.i.gc();)if(l=$H(bve(o),137).a)return void aM((t.a+=" ",t),l);if(rN(e,352)&&(!(r=$H(e,79)).b&&(r.b=new lF(LMt,r,4,7)),0!=r.b.i&&(!r.c&&(r.c=new lF(LMt,r,5,8)),0!=r.c.i))){for(t.a+=" (",a=new rL((!r.b&&(r.b=new lF(LMt,r,4,7)),r.b));a.e!=a.i.gc();)a.e>0&&(t.a+=FKe),pWe($H(bve(a),160),t);for(t.a+=e0e,s=new rL((!r.c&&(r.c=new lF(LMt,r,5,8)),r.c));s.e!=s.i.gc();)s.e>0&&(t.a+=FKe),pWe($H(bve(s),160),t);t.a+=")"}}}function gWe(e,t,n){var r,i,o,a,s,l,c,u,d,h,f;if(o=$H(vSe(e,(lKe(),fht)),79)){for(r=e.a,zP(i=new hI(n),M_e(e)),hae(e.d.i,e.c.i)?(h=e.c,WP(d=Ole(Sse(Uw(SSt,1),sYe,8,0,[h.n,h.a])),n)):d=p0(e.c),n5(r,d,r.a,r.a.a),f=p0(e.d),null!=vSe(e,Lht)&&zP(f,$H(vSe(e,Lht),8)),n5(r,f,r.c.b,r.c),Xte(r,i),Ire(a=rBe(o,!0,!0),$H(Gte((!o.b&&(o.b=new lF(LMt,o,4,7)),o.b),0),82)),Dre(a,$H(Gte((!o.c&&(o.c=new lF(LMt,o,5,8)),o.c),0),82)),Vje(r,a),u=new Gf(e.b);u.a<u.c.c.length;)c=$H(J0(u),70),Ene(s=$H(vSe(c,fht),137),c.o.a),xne(s,c.o.b),EI(s,c.n.a+i.a,c.n.b+i.b),Yve(s,(Tie(),Zlt),_B(vSe(c,Zlt)));(l=$H(vSe(e,(jVe(),mmt)),74))?(Xte(l,i),Yve(o,mmt,l)):Yve(o,mmt,null),t==(xfe(),qTt)?Yve(o,Xgt,qTt):Yve(o,Xgt,null)}}function mWe(e,t,n,r){var i,o,a,s,l,c,u,d,h,f,p,g,m,v,A;for(f=t.c.length,h=0,d=new Gf(e.b);d.a<d.c.c.length;)if(0!=(v=(u=$H(J0(d),29)).a).c.length){for(c=0,A=null,i=$H(J0(m=new Gf(v)),10),o=null;i;){if((o=$H(NQ(t,i.p),257)).c>=0){for(l=null,s=new x2(u.a,c+1);s.b<s.d.gc()&&(SL(s.b<s.d.gc()),a=$H(s.d.Xb(s.c=s.b++),10),!((l=$H(NQ(t,a.p),257)).d==o.d&&l.c<o.c));)l=null;l&&(A&&(r5(r,i.p,the($H(NQ(r,i.p),19).a-1)),$H(NQ(n,A.p),15).Mc(o)),o=hEe(o,i,f++),t.c[t.c.length]=o,GH(n,new Dv),A?($H(NQ(n,A.p),15).Fc(o),GH(r,the(1))):GH(r,the(0)))}p=null,m.a<m.c.c.length&&(p=$H(J0(m),10),g=$H(NQ(t,p.p),257),$H(NQ(n,i.p),15).Fc(g),r5(r,p.p,the($H(NQ(r,p.p),19).a+1))),o.d=h,o.c=c++,A=i,i=p}++h}}function vWe(e,t,n,i){var o,a,s,l,c,u,d,h,f,p,g,m,v,A,b;return l=e,u=WP(new Nk(t.a,t.b),e),c=n,d=WP(new Nk(i.a,i.b),n),h=l.a,m=l.b,p=c.a,A=c.b,f=u.a,v=u.b,o=(g=d.a)*v-f*(b=d.b),lD(),nre(O3e),!(r.Math.abs(0-o)<=O3e||0==o||isNaN(0)&&isNaN(o))&&(a=1/o*((h-p)*v-(m-A)*f),s=1/o*-(-(h-p)*b+(m-A)*g),nre(O3e),(r.Math.abs(0-a)<=O3e||0==a||isNaN(0)&&isNaN(a)?0:0<a?-1:0>a?1:QM(isNaN(0),isNaN(a)))<0&&(nre(O3e),(r.Math.abs(a-1)<=O3e||1==a||isNaN(a)&&isNaN(1)?0:a<1?-1:a>1?1:QM(isNaN(a),isNaN(1)))<0)&&(nre(O3e),(r.Math.abs(0-s)<=O3e||0==s||isNaN(0)&&isNaN(s)?0:0<s?-1:0>s?1:QM(isNaN(0),isNaN(s)))<0)&&(nre(O3e),(r.Math.abs(s-1)<=O3e||1==s||isNaN(s)&&isNaN(1)?0:s<1?-1:s>1?1:QM(isNaN(s),isNaN(1)))<0))}function AWe(e){var t,n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_;for(d=new lK(new tp(e));d.b!=d.c.a.d;)for(s=$H((u=s7(d)).d,56),t=$H(u.e,56),g=0,y=(null==(a=s.Tg()).i&&Hje(a),a.i).length;g<y;++g)if(null==a.i&&Hje(a),o=a.i,(c=g>=0&&g<o.length?o[g]:null).Ij()&&!c.Jj())if(rN(c,99))!((l=$H(c,18)).Bb&l6e)&&!((_=CAe(l))&&_.Bb&l6e)&&vHe(e,l,s,t);else if(XS(),$H(c,66).Oj()&&(n=$H((w=c)?$H(t,49).xh(w):null,153)))for(f=$H(s.ah(c),153),r=n.gc(),m=0,p=f.gc();m<p;++m)if(rN(h=f.il(m),99)){if(null==(i=uee(e,b=f.jl(m)))&&null!=b){if(A=$H(h,18),!e.b||A.Bb&l6e||CAe(A))continue;i=b}if(!n.dl(h,i))for(v=0;v<r;++v)if(n.il(v)==h&&UO(n.jl(v))===UO(i)){n.ii(n.gc()-1,v),--r;break}}else n.dl(f.il(m),f.jl(m))}function bWe(e,t,n,i,o,a,s){var l,c,u,d,h,f,p,g,m,v,A,b;if(v=KHe(t,n,e.g),o.n&&o.n&&a&&A1(o,a2(a),($ce(),oMt)),e.b)for(m=0;m<v.c.length;m++)u0(m,v.c.length),d=$H(v.c[m],200),0!=m&&(u0(m-1,v.c.length),pue(d,(f=$H(v.c[m-1],200)).f+f.b+e.g)),vVe(m,v,n,e.g),jwe(e,d),o.n&&a&&A1(o,a2(a),($ce(),oMt));else for(g=new Gf(v);g.a<g.c.c.length;)for(u=new Gf((p=$H(J0(g),200)).a);u.a<u.c.c.length;)Noe(A=new BJ((c=$H(J0(u),187)).s,c.t,e.g),c),GH(p.d,A);return Qbe(e,v),o.n&&o.n&&a&&A1(o,a2(a),($ce(),oMt)),b=r.Math.max(e.d,i.a-(s.b+s.c)),l=(h=r.Math.max(e.c,i.b-(s.d+s.a)))-e.c,e.e&&e.f&&(b/h<e.a?b=h*e.a:l+=b/e.a-h),e.e&&kge(v,b,l),o.n&&o.n&&a&&A1(o,a2(a),($ce(),oMt)),new eQ(e.a,b,e.c+l,(YNe(),Pxt))}function yWe(e){var t,n,i,o,a,s,l,c,u,d;for(e.j=N8(kRt,lqe,25,e.g,15,1),e.o=new Dv,qE(hee(new LQ(null,new h0(e.e.b,16)),new Yo),new om(e)),e.a=N8(ORt,XXe,25,e.b,16,1),Mde(new LQ(null,new h0(e.e.b,16)),new sm(e)),d=new Dv,qE(OY(hee(new LQ(null,new h0(e.e.b,16)),new Xo),new am(e)),new ek(e,d)),l=new Gf(d);l.a<l.c.c.length;)if(!((s=$H(J0(l),508)).c.length<=1))if(2!=s.c.length){if(!Wxe(s)&&!DTe(s,new qo))for(c=new Gf(s),i=null;c.a<c.c.c.length;)t=$H(J0(c),17),n=e.c[t.p],u=!i||c.a>=c.c.c.length?W3((oCe(),Cst),Sst):W3((oCe(),Sst),Sst),u*=2,o=n.a.g,n.a.g=r.Math.max(o,o+(u-o)),a=n.b.g,n.b.g=r.Math.max(a,a+(u-a)),i=t}else QIe(s),OUe((u0(0,s.c.length),$H(s.c[0],17)).d.i)||GH(e.o,s)}function wWe(e,t,n,r,i){var o,a,s,l,c,u,d,h,f,p,g,m,v,A,b;for(b=UH(e),l=new Dv,c=(o=e.c.length)-1,u=o+1;0!=b.a.c;){for(;0!=n.b;)SL(0!=n.b),v=$H(Ote(n,n.a.a),112),MJ(b.a,v),v.g=c--,Dje(v,t,n,r);for(;0!=t.b;)SL(0!=t.b),A=$H(Ote(t,t.a.a),112),MJ(b.a,A),A.g=u++,Dje(A,t,n,r);for(s=PYe,g=new Ff(new $P(new NR(new Pf(b.a).a).b));iC(g.a.a);){if(p=$H(vL(g.a).cd(),112),!r&&p.b>0&&p.a<=0){l.c=N8(Met,jKe,1,0,5,1),l.c[l.c.length]=p;break}(f=p.i-p.d)>=s&&(f>s&&(l.c=N8(Met,jKe,1,0,5,1),s=f),l.c[l.c.length]=p)}0!=l.c.length&&(a=$H(NQ(l,gAe(i,l.c.length)),112),MJ(b.a,a),a.g=u++,Dje(a,t,n,r),l.c=N8(Met,jKe,1,0,5,1))}for(m=e.c.length+1,h=new Gf(e);h.a<h.c.c.length;)(d=$H(J0(h),112)).g<o&&(d.g=d.g+m)}function _We(e,t){var n;if(e.e)throw jv(new Fy((wB(prt),OXe+prt.k+MXe)));if(!EC(e.a,t))throw jv(new fy(IXe+t+DXe));if(t==e.d)return e;switch(n=e.d,e.d=t,n.g){case 0:switch(t.g){case 2:jbe(e);break;case 1:Cle(e),jbe(e);break;case 4:J_e(e),jbe(e);break;case 3:J_e(e),Cle(e),jbe(e)}break;case 2:switch(t.g){case 1:Cle(e),LPe(e);break;case 4:J_e(e),jbe(e);break;case 3:J_e(e),Cle(e),jbe(e)}break;case 1:switch(t.g){case 2:Cle(e),LPe(e);break;case 4:Cle(e),J_e(e),jbe(e);break;case 3:Cle(e),J_e(e),Cle(e),jbe(e)}break;case 4:switch(t.g){case 2:J_e(e),jbe(e);break;case 1:J_e(e),Cle(e),jbe(e);break;case 3:Cle(e),LPe(e)}break;case 3:switch(t.g){case 2:Cle(e),J_e(e),jbe(e);break;case 1:Cle(e),J_e(e),Cle(e),jbe(e);break;case 4:Cle(e),LPe(e)}}return e}function xWe(e,t){var n;if(e.d)throw jv(new Fy((wB(Yat),OXe+Yat.k+MXe)));if(!Sk(e.a,t))throw jv(new fy(IXe+t+DXe));if(t==e.c)return e;switch(n=e.c,e.c=t,n.g){case 0:switch(t.g){case 2:Xle(e);break;case 1:Sle(e),Xle(e);break;case 4:Z_e(e),Xle(e);break;case 3:Z_e(e),Sle(e),Xle(e)}break;case 2:switch(t.g){case 1:Sle(e),BPe(e);break;case 4:Z_e(e),Xle(e);break;case 3:Z_e(e),Sle(e),Xle(e)}break;case 1:switch(t.g){case 2:Sle(e),BPe(e);break;case 4:Sle(e),Z_e(e),Xle(e);break;case 3:Sle(e),Z_e(e),Sle(e),Xle(e)}break;case 4:switch(t.g){case 2:Z_e(e),Xle(e);break;case 1:Z_e(e),Sle(e),Xle(e);break;case 3:Sle(e),BPe(e)}break;case 3:switch(t.g){case 2:Sle(e),Z_e(e),Xle(e);break;case 1:Sle(e),Z_e(e),Sle(e),Xle(e);break;case 4:Sle(e),BPe(e)}}return e}function EWe(e,t,n){var i,o,a,s,l,c,d,h;for(c=new ON((!e.a&&(e.a=new eG(QMt,e,10,11)),e.a));c.e!=c.i.gc();)for(o=new aW(XN(fNe(l=$H(bve(c),33)).a.Kc(),new u));fIe(o);){if(!(i=$H(z5(o),79)).b&&(i.b=new lF(LMt,i,4,7)),!(i.b.i<=1&&(!i.c&&(i.c=new lF(LMt,i,5,8)),i.c.i<=1)))throw jv(new rw("Graph must not contain hyperedges."));if(!JMe(i)&&l!=SEe($H(Gte((!i.c&&(i.c=new lF(LMt,i,5,8)),i.c),0),82)))for(Hae(d=new TP,i),lle(d,(xie(),sat),i),Rh(d,$H(HO(OX(n.f,l)),144)),Lh(d,$H(LV(n,SEe($H(Gte((!i.c&&(i.c=new lF(LMt,i,5,8)),i.c),0),82))),144)),GH(t.c,d),s=new ON((!i.n&&(i.n=new eG(UMt,i,1,7)),i.n));s.e!=s.i.gc();)Hae(h=new v4(d,(a=$H(bve(s),137)).a),a),lle(h,sat,a),h.e.a=r.Math.max(a.g,1),h.e.b=r.Math.max(a.f,1),PHe(h),GH(t.d,h)}}function SWe(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b;for(wJ(h=new eGe(e),!(t==(Fde(),jTt)||t==BTt)),d=h.a,f=new db,Rte(),s=0,c=(o=Sse(Uw(Vrt,1),MYe,232,0,[Urt,Qrt,zrt])).length;s<c;++s)n=o[s],(u=cN(d,Urt,n))&&(f.d=r.Math.max(f.d,u.Re()));for(a=0,l=(i=Sse(Uw(Vrt,1),MYe,232,0,[Urt,Qrt,zrt])).length;a<l;++a)n=i[a],(u=cN(d,zrt,n))&&(f.a=r.Math.max(f.a,u.Re()));for(v=0,b=(g=Sse(Uw(Vrt,1),MYe,232,0,[Urt,Qrt,zrt])).length;v<b;++v)(u=cN(d,g[v],Urt))&&(f.b=r.Math.max(f.b,u.Se()));for(m=0,A=(p=Sse(Uw(Vrt,1),MYe,232,0,[Urt,Qrt,zrt])).length;m<A;++m)(u=cN(d,p[m],zrt))&&(f.c=r.Math.max(f.c,u.Se()));return f.d>0&&(f.d+=d.n.d,f.d+=d.d),f.a>0&&(f.a+=d.n.a,f.a+=d.d),f.b>0&&(f.b+=d.n.b,f.b+=d.d),f.c>0&&(f.c+=d.n.c,f.c+=d.d),f}function CWe(e,t,n){var i,o,a,s,l,c,u,d,h,f,p,g;for(f=n.d,h=n.c,s=(a=new Nk(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a)).b,u=new Gf(e.a);u.a<u.c.c.length;)if((l=$H(J0(u),10)).k==(oCe(),xst)){switch(i=$H(vSe(l,(lKe(),Kdt)),61),o=$H(vSe(l,Ydt),8),d=l.n,i.g){case 2:d.a=n.f.a+f.c-h.a;break;case 4:d.a=-h.a-f.b}switch(g=0,i.g){case 2:case 4:t==(Kxe(),Gkt)?(p=Uy(xB(vSe(l,_ht))),d.b=a.b*p-$H(vSe(l,(jVe(),Jmt)),8).b,g=d.b+o.b,qae(l,!1,!0)):t==Wkt&&(d.b=Uy(xB(vSe(l,_ht)))-$H(vSe(l,(jVe(),Jmt)),8).b,g=d.b+o.b,qae(l,!1,!0))}s=r.Math.max(s,g)}for(n.f.b+=s-a.b,c=new Gf(e.a);c.a<c.c.c.length;)if((l=$H(J0(c),10)).k==(oCe(),xst))switch(i=$H(vSe(l,(lKe(),Kdt)),61),d=l.n,i.g){case 1:d.b=-h.b-f.d;break;case 3:d.b=n.f.b+f.a-h.b}}function TWe(e){var t,n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_;for(i=$H(vSe(e,(HQe(),swt)),33),l=RKe,c=RKe,a=PYe,s=PYe,w=sve(e.b,0);w.b!=w.d.c;)p=(b=$H(d3(w),86)).e,g=b.f,l=r.Math.min(l,p.a-g.a/2),c=r.Math.min(c,p.b-g.b/2),a=r.Math.max(a,p.a+g.a/2),s=r.Math.max(s,p.b+g.b/2);for(h=new Nk((f=$H(XIe(i,(CIe(),Twt)),116)).b-l,f.d-c),y=sve(e.b,0);y.b!=y.d.c;)rN(d=vSe(b=$H(d3(y),86),swt),239)&&EI(o=$H(d,33),(u=zP(b.e,h)).a-o.g/2,u.b-o.f/2);for(A=sve(e.a,0);A.b!=A.d.c;)v=$H(d3(A),188),(n=$H(vSe(v,swt),79))&&(n5(t=v.a,m=new hI(v.b.e),t.a,t.a.a),n5(t,_=new hI(v.c.e),t.c.b,t.c),XSe(m,$H(Rve(t,1),8),v.b.f),XSe(_,$H(Rve(t,t.b-2),8),v.c.f),Vje(t,rBe(n,!0,!0)));BGe(i,a-l+(f.b+f.c),s-c+(f.d+f.a),!1,!1)}function kWe(e){var t,n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v;for(AP(l=new x2(c=e.b,0),new jV(e)),m=!1,o=1;l.b<l.d.gc();){for(SL(l.b<l.d.gc()),s=$H(l.d.Xb(l.c=l.b++),29),u0(o,c.c.length),f=$H(c.c[o],29),g=(p=i1(s.a)).c.length,h=new Gf(p);h.a<h.c.c.length;)SZ(u=$H(J0(h),10),f);if(m){for(d=G0(new cy(p),0);d.c.Sb();)for(i=new Gf(i1(cfe(u=$H(h5(d),10))));i.a<i.c.c.length;)Zje(r=$H(J0(i),17),!0),lle(e,(lKe(),Hdt),(lR(),!0)),n=tze(e,r,g),t=$H(vSe(u,Ldt),305),v=$H(NQ(n,n.c.length-1),17),t.k=v.c.i,t.n=v,t.b=r.d.i,t.c=r;m=!1}else 0!=p.c.length&&(u0(0,p.c.length),$H(p.c[0],10).k==(oCe(),_st)&&(m=!0,o=-1));++o}for(a=new x2(e.b,0);a.b<a.d.gc();)SL(a.b<a.d.gc()),0==$H(a.d.Xb(a.c=a.b++),29).a.c.length&&cK(a)}function OWe(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A;if((d=$H($H(l6(e.r,t),21),84)).gc()<=2||t==(bGe(),aOt)||t==(bGe(),COt))qGe(e,t);else{for(m=e.u.Hc((uOe(),rOt)),n=t==(bGe(),sOt)?(Rae(),Lit):(Rae(),Dit),A=t==sOt?(U9(),tit):(U9(),rit),i=Xw(j$(n),e.s),v=t==sOt?Lqe:Bqe,u=d.Kc();u.Ob();)!(l=$H(u.Pb(),111)).c||l.c.d.c.length<=0||(g=l.b.rf(),p=l.e,(f=(h=l.c).i).b=(a=h.n,h.e.a+a.b+a.c),f.a=(s=h.n,h.e.b+s.d+s.a),m?(f.c=p.a-(o=h.n,h.e.a+o.b+o.c)-e.s,m=!1):f.c=p.a+g.a+e.s,kX(A,oJe),h.f=A,u7(h,(q7(),qrt)),GH(i.d,new Nz(f,bhe(i,f))),v=t==sOt?r.Math.min(v,p.b):r.Math.max(v,p.b+l.b.rf().b));for(v+=t==sOt?-e.t:e.t,Spe((i.e=v,i)),c=d.Kc();c.Ob();)!(l=$H(c.Pb(),111)).c||l.c.d.c.length<=0||((f=l.c.i).c-=l.e.a,f.d-=l.e.b)}}function MWe(e,t,n){var i;if(kEe(n,"StretchWidth layering",1),0!=t.a.c.length){for(e.c=t,e.t=0,e.u=0,e.i=Lqe,e.g=Bqe,e.d=Uy(xB(vSe(t,(jVe(),Avt)))),Qve(e),SIe(e),EIe(e),N_e(e),fge(e),e.i=r.Math.max(1,e.i),e.g=r.Math.max(1,e.g),e.d=e.d/e.i,e.f=e.g/e.i,e.s=PAe(e),i=new jV(e.c),GH(e.c.b,i),e.r=i1(e.p),e.n=_J(e.k,e.k.length);0!=e.r.c.length;)e.o=Que(e),!e.o||_le(e)&&0!=e.b.a.gc()?(Nxe(e,i),i=new jV(e.c),GH(e.c.b,i),Fie(e.a,e.b),e.b.a.$b(),e.t=e.u,e.u=0):_le(e)?(e.c.b.c=N8(Met,jKe,1,0,5,1),i=new jV(e.c),GH(e.c.b,i),e.t=0,e.u=0,e.b.a.$b(),e.a.a.$b(),++e.f,e.r=i1(e.p),e.n=_J(e.k,e.k.length)):(SZ(e.o,i),A9(e.r,e.o),_G(e.b,e.o),e.t=e.t-e.k[e.o.p]*e.d+e.j[e.o.p],e.u+=e.e[e.o.p]*e.d);t.a.c=N8(Met,jKe,1,0,5,1),qTe(t.b),jCe(n)}else jCe(n)}function IWe(e){var t,n,i,o;for(qE(OY(new LQ(null,new h0(e.a.b,16)),new yi),new wi),cxe(e),qE(OY(new LQ(null,new h0(e.a.b,16)),new _i),new xi),e.c==(xfe(),qTt)&&(qE(OY(hee(new LQ(null,new h0(new Cf(e.f),1)),new Ei),new Si),new xg(e)),qE(OY(MY(hee(hee(new LQ(null,new h0(e.d.b,16)),new Ci),new Ti),new ki),new Oi),new Sg(e))),o=new Nk(Lqe,Lqe),t=new Nk(Bqe,Bqe),i=new Gf(e.a.b);i.a<i.c.c.length;)n=$H(J0(i),57),o.a=r.Math.min(o.a,n.d.c),o.b=r.Math.min(o.b,n.d.d),t.a=r.Math.max(t.a,n.d.c+n.d.b),t.b=r.Math.max(t.b,n.d.d+n.d.a);zP(bM(e.d.c),HL(new Nk(o.a,o.b))),zP(bM(e.d.f),WP(new Nk(t.a,t.b),o)),aRe(e,o,t),MG(e.f),MG(e.b),MG(e.g),MG(e.e),e.a.a.c=N8(Met,jKe,1,0,5,1),e.a.b.c=N8(Met,jKe,1,0,5,1),e.a=null,e.d=null}function DWe(e,t,n){var r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A;for(r=new Dv,p=new Gf(t.a);p.a<p.c.c.length;)if((h=(f=$H(J0(p),10)).e)&&(pse(r,DWe(e,h,f)),wze(e,h,f),$H(vSe(h,(lKe(),Xdt)),21).Hc((dBe(),udt))))for(v=$H(vSe(f,(jVe(),evt)),98),d=$H(vSe(f,rvt),174).Hc((uOe(),eOt)),m=new Gf(f.j);m.a<m.c.c.length;)for(g=$H(J0(m),11),(i=$H(LV(e.b,g),10))||(lle(i=dVe(g,v,g.j,-(g.e.c.length-g.g.c.length),null,new U_,g.o,$H(vSe(h,zgt),103),h),fht,g),VK(e.b,g,i),GH(h.a,i)),o=$H(NQ(i.j,0),11),c=new Gf(g.f);c.a<c.c.c.length;)l=$H(J0(c),70),(a=new H_).o.a=l.o.a,a.o.b=l.o.b,GH(o.f,a),d||(A=g.j,u=0,jW($H(vSe(f,rvt),21))&&(u=MOe(l.n,l.o,g.o,0,A)),v==(Kxe(),Kkt)||(bGe(),dOt).Hc(A)?a.o.a=u:a.o.b=u);return $ze(e,t,n,r,s=new Dv),n&&CQe(e,t,n,s),s}function NWe(e,t,n){var r,i,o,a,s,l,c,u;if(!e.c[t.c.p][t.p].e){for(e.c[t.c.p][t.p].e=!0,e.c[t.c.p][t.p].b=0,e.c[t.c.p][t.p].d=0,e.c[t.c.p][t.p].a=null,u=new Gf(t.j);u.a<u.c.c.length;)for(c=$H(J0(u),11),l=(n?new jp(c):new Up(c)).Kc();l.Ob();)(a=(s=$H(l.Pb(),11)).i).c==t.c?a!=t&&(NWe(e,a,n),e.c[t.c.p][t.p].b+=e.c[a.c.p][a.p].b,e.c[t.c.p][t.p].d+=e.c[a.c.p][a.p].d):(e.c[t.c.p][t.p].d+=e.g[s.p],++e.c[t.c.p][t.p].b);if(o=$H(vSe(t,(lKe(),Ndt)),15))for(i=o.Kc();i.Ob();)r=$H(i.Pb(),10),t.c==r.c&&(NWe(e,r,n),e.c[t.c.p][t.p].b+=e.c[r.c.p][r.p].b,e.c[t.c.p][t.p].d+=e.c[r.c.p][r.p].d);e.c[t.c.p][t.p].b>0&&(e.c[t.c.p][t.p].d+=jDe(e.i,24)*oXe*.07000000029802322-.03500000014901161,e.c[t.c.p][t.p].a=e.c[t.c.p][t.p].d/e.c[t.c.p][t.p].b)}}function RWe(e){var t,n,r,i,o,a,s,l,c,u,d,h,f,p;for(h=new Gf(e);h.a<h.c.c.length;){for(JR((d=$H(J0(h),10)).n),JR(d.o),V6(d.f),VPe(d),iPe(d),p=new Gf(d.j);p.a<p.c.c.length;){for(JR((f=$H(J0(p),11)).n),JR(f.a),JR(f.o),Hke(f,ibe(f.j)),(i=$H(vSe(f,(jVe(),tvt)),19))&&lle(f,tvt,the(-i.a)),r=new Gf(f.g);r.a<r.c.c.length;){for(t=sve((n=$H(J0(r),17)).a,0);t.b!=t.d.c;)JR($H(d3(t),8));if(a=$H(vSe(n,mmt),74))for(o=sve(a,0);o.b!=o.d.c;)JR($H(d3(o),8));for(c=new Gf(n.b);c.a<c.c.c.length;)JR((s=$H(J0(c),70)).n),JR(s.o)}for(u=new Gf(f.f);u.a<u.c.c.length;)JR((s=$H(J0(u),70)).n),JR(s.o)}for(d.k==(oCe(),xst)&&(lle(d,(lKe(),Kdt),ibe($H(vSe(d,Kdt),61))),hLe(d)),l=new Gf(d.b);l.a<l.c.c.length;)VPe(s=$H(J0(l),70)),JR(s.o),JR(s.n)}}function LWe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y;for(e.e=t,s=JOe(t),b=new Dv,r=new Gf(s);r.a<r.c.c.length;){for(n=$H(J0(r),15),y=new Dv,b.c[b.c.length]=y,l=new LA,h=n.Kc();h.Ob();){for(o=qPe(e,d=$H(h.Pb(),33),!0,0,0),y.c[y.c.length]=o,f=d.i,p=d.j,!d.n&&(d.n=new eG(UMt,d,1,7)),u=new ON(d.n);u.e!=u.i.gc();)i=qPe(e,$H(bve(u),137),!1,f,p),y.c[y.c.length]=i;for(!d.c&&(d.c=new eG(zMt,d,9,9)),m=new ON(d.c);m.e!=m.i.gc();)for(a=qPe(e,g=$H(bve(m),118),!1,f,p),y.c[y.c.length]=a,v=g.i+f,A=g.j+p,!g.n&&(g.n=new eG(UMt,g,1,7)),c=new ON(g.n);c.e!=c.i.gc();)i=qPe(e,$H(bve(c),137),!1,v,A),y.c[y.c.length]=i;Fie(l,qq(Gne(Sse(Uw(Ret,1),jKe,20,0,[fNe(d),hNe(d)]))))}zNe(e,l,y)}return e.f=new P_(b),Hae(e.f,t),e.f}function BWe(e,t,n,r,i){var o,a,s,l,c,u,d,h,f,p,g,m;null==(p=LV(e.e,r))&&(c=$H(p=new gy,183),l=new UV(t+"_s"+i),nte(c,H6e,l)),JV(n,f=$H(p,183)),Hq(m=new gy,"x",r.j),Hq(m,"y",r.k),nte(f,z6e,m),Hq(d=new gy,"x",r.b),Hq(d,"y",r.c),nte(f,"endPoint",d),!Gx((!r.a&&(r.a=new MN(DMt,r,5)),r.a))&&(o=new Gm(u=new Sh),e5((!r.a&&(r.a=new MN(DMt,r,5)),r.a),o),nte(f,R6e,u)),!!EAe(r)&&rSe(e.a,f,B6e,LTe(e,EAe(r))),!!SAe(r)&&rSe(e.a,f,L6e,LTe(e,SAe(r))),!(0==(!r.e&&(r.e=new lF(PMt,r,10,9)),r.e).i)&&(a=new EO(e,h=new Sh),e5((!r.e&&(r.e=new lF(PMt,r,10,9)),r.e),a),nte(f,F6e,h)),0!=(!r.g&&(r.g=new lF(PMt,r,9,10)),r.g).i&&(s=new SO(e,g=new Sh),e5((!r.g&&(r.g=new lF(PMt,r,9,10)),r.g),s),nte(f,P6e,g))}function PWe(e){var t,n,i,o,a,s,l;for(HB(),i=e.f.n,s=wV(e.r).a.nc();s.Ob();){if(o=0,(a=$H(s.Pb(),111)).b.Xe((sKe(),iTt))&&(o=Uy(xB(a.b.We(iTt))))<0)switch(a.b.Hf().g){case 1:i.d=r.Math.max(i.d,-o);break;case 3:i.a=r.Math.max(i.a,-o);break;case 2:i.c=r.Math.max(i.c,-o);break;case 4:i.b=r.Math.max(i.b,-o)}if(jW(e.u))switch(t=moe(a.b,o),l=!$H(e.e.We(HCt),174).Hc((JFe(),jOt)),n=!1,a.b.Hf().g){case 1:n=t>i.d,i.d=r.Math.max(i.d,t),l&&n&&(i.d=r.Math.max(i.d,i.a),i.a=i.d+o);break;case 3:n=t>i.a,i.a=r.Math.max(i.a,t),l&&n&&(i.a=r.Math.max(i.a,i.d),i.d=i.a+o);break;case 2:n=t>i.c,i.c=r.Math.max(i.c,t),l&&n&&(i.c=r.Math.max(i.b,i.c),i.b=i.c+o);break;case 4:n=t>i.b,i.b=r.Math.max(i.b,t),l&&n&&(i.b=r.Math.max(i.b,i.c),i.c=i.b+o)}}}function FWe(e){var t,n,r,i,o,a,s,l,c,u,d;for(c=new Gf(e);c.a<c.c.c.length;){switch(l=$H(J0(c),10),o=null,(a=$H(vSe(l,(jVe(),bmt)),163)).g){case 1:case 2:qse(),o=Mut;break;case 3:case 4:qse(),o=kut}if(o)lle(l,(lKe(),Udt),(qse(),Mut)),o==kut?LRe(l,a,(ire(),jAt)):o==Mut&&LRe(l,a,(ire(),HAt));else if(mI($H(vSe(l,evt),98))&&0!=l.j.c.length){for(t=!0,d=new Gf(l.j);d.a<d.c.c.length;){if(!((u=$H(J0(d),11)).j==(bGe(),aOt)&&u.e.c.length-u.g.c.length>0||u.j==COt&&u.e.c.length-u.g.c.length<0)){t=!1;break}for(i=new Gf(u.g);i.a<i.c.c.length;)if(n=$H(J0(i),17),(s=$H(vSe(n.d.i,bmt),163))==(_fe(),$ht)||s==jht){t=!1;break}for(r=new Gf(u.e);r.a<r.c.c.length;)if(n=$H(J0(r),17),(s=$H(vSe(n.c.i,bmt),163))==(_fe(),Pht)||s==Fht){t=!1;break}}t&&LRe(l,a,(ire(),UAt))}}}function $We(e,t,n,i,o){var a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x;for(x=0,p=0,h=new Gf(t.e);h.a<h.c.c.length;){for(d=$H(J0(h),10),f=0,l=0,c=n?$H(vSe(d,Wbt),19).a:PYe,A=i?$H(vSe(d,Gbt),19).a:PYe,u=r.Math.max(c,A),y=new Gf(d.j);y.a<y.c.c.length;){if(b=$H(J0(y),11),w=d.n.b+b.n.b+b.a.b,i)for(s=new Gf(b.g);s.a<s.c.c.length;)g=(m=(a=$H(J0(s),17)).d).i,t!=e.a[g.p]&&(v=r.Math.max($H(vSe(g,Wbt),19).a,$H(vSe(g,Gbt),19).a),(_=$H(vSe(a,(jVe(),dvt)),19).a)>=u&&_>=v&&(f+=g.n.b+m.n.b+m.a.b-w,++l));if(n)for(s=new Gf(b.e);s.a<s.c.c.length;)g=(m=(a=$H(J0(s),17)).c).i,t!=e.a[g.p]&&(v=r.Math.max($H(vSe(g,Wbt),19).a,$H(vSe(g,Gbt),19).a),(_=$H(vSe(a,(jVe(),dvt)),19).a)>=u&&_>=v&&(f+=g.n.b+m.n.b+m.a.b-w,++l))}l>0&&(x+=f/l,++p)}p>0?(t.a=o*x/p,t.g=p):(t.a=0,t.g=0)}function jWe(e,t){var n,r,i,o,a,s,l,c,u,d;for(r=new Gf(e.a.b);r.a<r.c.c.length;)for(s=new Gf($H(J0(r),29).a);s.a<s.c.c.length;)a=$H(J0(s),10),t.j[a.p]=a,t.i[a.p]=t.o==(aZ(),ryt)?Bqe:Lqe;for(MG(e.c),o=e.a.b,t.c==(pJ(),Jbt)&&(o=rN(o,152)?a6($H(o,152)):rN(o,131)?$H(o,131).a:rN(o,54)?new cy(o):new CE(o)),L7(e.e,t,e.b),AC(t.p,null),i=o.Kc();i.Ob();)for(l=$H(i.Pb(),29).a,t.o==(aZ(),ryt)&&(l=rN(l,152)?a6($H(l,152)):rN(l,131)?$H(l,131).a:rN(l,54)?new cy(l):new CE(l)),d=l.Kc();d.Ob();)u=$H(d.Pb(),10),t.g[u.p]==u&&aVe(e,u,t);for(jQe(e,t),n=o.Kc();n.Ob();)for(d=new Gf($H(n.Pb(),29).a);d.a<d.c.c.length;)u=$H(J0(d),10),t.p[u.p]=t.p[t.g[u.p].p],u==t.g[u.p]&&(c=Uy(t.i[t.j[u.p].p]),(t.o==(aZ(),ryt)&&c>Bqe||t.o==nyt&&c<Lqe)&&(t.p[u.p]=Uy(t.p[u.p])+c));e.e.cg()}function HWe(e,t,n,r){var i,o,a,s,l;return gRe(s=new eGe(t),r),i=!0,e&&e.Xe((sKe(),dCt))&&(i=(o=$H(e.We((sKe(),dCt)),103))==(Fde(),$Tt)||o==PTt||o==FTt),aPe(s,!1),kte(s.e.wf(),new M$(s,!1,i)),IJ(s,s.f,(Rte(),Urt),(bGe(),sOt)),IJ(s,s.f,zrt,EOt),IJ(s,s.g,Urt,COt),IJ(s,s.g,zrt,aOt),$ve(s,sOt),$ve(s,EOt),lY(s,aOt),lY(s,COt),HB(),(a=s.A.Hc((vge(),ROt))&&s.B.Hc((JFe(),zOt))?Jpe(s):null)&&n_(s.a,a),PWe(s),nye(s),rye(s),Vze(s),xFe(s),vwe(s),Pme(s,sOt),Pme(s,EOt),CPe(s),SUe(s),n?(Ufe(s),Awe(s),Pme(s,aOt),Pme(s,COt),l=s.B.Hc((JFe(),WOt)),xke(s,l,sOt),xke(s,l,EOt),Eke(s,l,aOt),Eke(s,l,COt),qE(new LQ(null,new h0(new kf(s.i),0)),new ke),qE(OY(new LQ(null,wV(s.r).a.oc()),new Oe),new Me),$xe(s),s.e.uf(s.o),qE(new LQ(null,wV(s.r).a.oc()),new De),s.o):s.o}function UWe(e){var t,n,i,o,a,s,l,c,u,d,h,f,p,g,m;for(u=Lqe,i=new Gf(e.a.b);i.a<i.c.c.length;)t=$H(J0(i),81),u=r.Math.min(u,t.d.f.g.c+t.e.a);for(p=new YE,s=new Gf(e.a.a);s.a<s.c.c.length;)(a=$H(J0(s),189)).i=u,0==a.e&&n5(p,a,p.c.b,p.c);for(;0!=p.b;){for(o=(a=$H(0==p.b?null:(SL(0!=p.b),Ote(p,p.a.a)),189)).f.g.c,f=a.a.a.ec().Kc();f.Ob();)d=$H(f.Pb(),81),m=a.i+d.e.a,d.d.g||d.g.c<m?d.o=m:d.o=d.g.c;for(o-=a.f.o,a.b+=o,e.c==(Fde(),FTt)||e.c==BTt?a.c+=o:a.c-=o,h=a.a.a.ec().Kc();h.Ob();)for(c=(d=$H(h.Pb(),81)).f.Kc();c.Ob();)l=$H(c.Pb(),81),g=fI(e.c)?e.f.ef(d,l):e.f.ff(d,l),l.d.i=r.Math.max(l.d.i,d.o+d.g.b+g-l.e.a),l.k||(l.d.i=r.Math.max(l.d.i,l.g.c-l.e.a)),--l.d.e,0==l.d.e&&RU(p,l.d)}for(n=new Gf(e.a.b);n.a<n.c.c.length;)(t=$H(J0(n),81)).g.c=t.o}function QWe(e){var t,n,r,i,o,a,s,l;switch(s=e.b,t=e.a,0===$H(vSe(e,(Pwe(),xrt)),427).g?vD(s,new Jf(new Qe)):vD(s,new Jf(new ze)),1===$H(vSe(e,wrt),428).g?(vD(s,new Ue),vD(s,new We),vD(s,new Pe)):(vD(s,new Ue),vD(s,new He)),$H(vSe(e,Srt),250).g){case 0:l=new qe;break;case 1:l=new Ke;break;case 2:l=new Ye;break;case 3:l=new Ve;break;case 5:l=new kp(new Ye);break;case 4:l=new kp(new Ke);break;case 7:l=new RC(new kp(new Ke),new kp(new Ye));break;case 8:l=new RC(new kp(new Ve),new kp(new Ye));break;default:l=new kp(new Ve)}for(a=new Gf(s);a.a<a.c.c.length;){for(o=$H(J0(a),167),i=0,n=new nO(the(r=0),the(i));$$e(t,o,r,i);)n=$H(l.Ce(n,o),46),r=$H(n.a,19).a,i=$H(n.b,19).a;PPe(t,o,r,i)}}function zWe(e){var t,n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x;for(h=(o=e.f.b).a,u=o.b,p=e.e.g,f=e.e.f,xI(e.e,o.a,o.b),_=h/p,x=u/f,c=new ON(vY(e.e));c.e!=c.i.gc();)Sne(l=$H(bve(c),137),l.i*_),Cne(l,l.j*x);for(A=new ON(AY(e.e));A.e!=A.i.gc();)y=(v=$H(bve(A),118)).i,w=v.j,y>0&&Sne(v,y*_),w>0&&Cne(v,w*x);for(Joe(e.b,new dt),t=new Dv,s=new oce(new Sf(e.c).a);s.b;)r=$H((a=Zte(s)).cd(),79),n=$H(a.dd(),395).a,i=rBe(r,!1,!1),Vje(d=uEe(SSe(r),HCe(i),n),i),(b=CSe(r))&&-1==w9(t,b,0)&&(t.c[t.c.length]=b,sq(b,(SL(0!=d.b),$H(d.a.a.c,8)),n));for(m=new oce(new Sf(e.d).a);m.b;)r=$H((g=Zte(m)).cd(),79),n=$H(g.dd(),395).a,i=rBe(r,!1,!1),d=uEe(kSe(r),qle(HCe(i)),n),Vje(d=qle(d),i),(b=TSe(r))&&-1==w9(t,b,0)&&(t.c[t.c.length]=b,sq(b,(SL(0!=d.b),$H(d.c.b.c,8)),n))}function WWe(e,t,n,i){var o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x;if(0!=n.c.length){for(p=new Dv,f=new Gf(n);f.a<f.c.c.length;)GH(p,new Nk((h=$H(J0(f),33)).i,h.j));for(i.n&&t&&A1(i,a2(t),($ce(),oMt));DSe(e,n);)wDe(e,n,!1);for(i.n&&t&&A1(i,a2(t),($ce(),oMt)),s=0,l=0,o=null,0!=n.c.length&&(u0(0,n.c.length),s=(o=$H(n.c[0],33)).i-(u0(0,p.c.length),$H(p.c[0],8)).a,l=o.j-(u0(0,p.c.length),$H(p.c[0],8)).b),a=r.Math.sqrt(s*s+l*l),d=zue(n);0!=d.a.gc();){for(u=d.a.ec().Kc();u.Ob();)c=$H(u.Pb(),33),m=(g=e.f).i+g.g/2,v=g.j+g.f/2,A=c.i+c.g/2,y=c.j+c.f/2-v,_=(b=A-m)/(w=r.Math.sqrt(b*b+y*y)),x=y/w,Sne(c,c.i+_*a),Cne(c,c.j+x*a);i.n&&t&&A1(i,a2(t),($ce(),oMt)),d=zue(new ZF(d))}e.a&&e.a.lg(new ZF(d)),i.n&&t&&A1(i,a2(t),($ce(),oMt)),WWe(e,t,new ZF(d),i)}}function GWe(e,t,n){var i,o,a,s,l,c,u,d,h,f,p,g,m,v,A;if(m=e.n,v=e.o,f=e.d,h=Uy(xB(ege(e,(jVe(),gvt)))),t){for(d=h*(t.gc()-1),p=0,c=t.Kc();c.Ob();)d+=(s=$H(c.Pb(),10)).o.a,p=r.Math.max(p,s.o.b);for(A=m.a-(d-v.a)/2,a=m.b-f.d+p,o=i=v.a/(t.gc()+1),l=t.Kc();l.Ob();)(s=$H(l.Pb(),10)).n.a=A,s.n.b=a-s.o.b,A+=s.o.a+h,(u=RNe(s)).n.a=s.o.a/2-u.a.a,u.n.b=s.o.b,(g=$H(vSe(s,(lKe(),Bdt)),11)).e.c.length+g.g.c.length==1&&(g.n.a=o-g.a.a,g.n.b=0,CZ(g,e)),o+=i}if(n){for(d=h*(n.gc()-1),p=0,c=n.Kc();c.Ob();)d+=(s=$H(c.Pb(),10)).o.a,p=r.Math.max(p,s.o.b);for(A=m.a-(d-v.a)/2,a=m.b+v.b+f.a-p,o=i=v.a/(n.gc()+1),l=n.Kc();l.Ob();)(s=$H(l.Pb(),10)).n.a=A,s.n.b=a,A+=s.o.a+h,(u=RNe(s)).n.a=s.o.a/2-u.a.a,u.n.b=0,(g=$H(vSe(s,(lKe(),Bdt)),11)).e.c.length+g.g.c.length==1&&(g.n.a=o-g.a.a,g.n.b=v.b,CZ(g,e)),o+=i}}function VWe(e,t){var n,i,o,a,s,l;if($H(vSe(t,(lKe(),Xdt)),21).Hc((dBe(),udt))){for(l=new Gf(t.a);l.a<l.c.c.length;)(a=$H(J0(l),10)).k==(oCe(),Cst)&&(o=$H(vSe(a,(jVe(),Cmt)),142),e.c=r.Math.min(e.c,a.n.a-o.b),e.a=r.Math.max(e.a,a.n.a+a.o.a+o.c),e.d=r.Math.min(e.d,a.n.b-o.d),e.b=r.Math.max(e.b,a.n.b+a.o.b+o.a));for(s=new Gf(t.a);s.a<s.c.c.length;)if((a=$H(J0(s),10)).k!=(oCe(),Cst))switch(a.k.g){case 2:if((i=$H(vSe(a,(jVe(),bmt)),163))==(_fe(),Fht)){a.n.a=e.c-10,Yye(a,new zn).Jb(new ng(a));break}if(i==jht){a.n.a=e.a+10,Yye(a,new Wn).Jb(new rg(a));break}if((n=$H(vSe(a,tht),303))==(Q9(),Cdt)){uQe(a).Jb(new ig(a)),a.n.b=e.d-10;break}if(n==Edt){uQe(a).Jb(new og(a)),a.n.b=e.b+10;break}break;default:throw jv(new Py("The node type "+a.k+" is not supported by the "+qlt))}}}function KWe(e,t,n,r){var i,o,a,s,l,c,u,d,h,f,p,g;for(l=new Nk(r.i+r.g/2,r.j+r.f/2),h=WUe(r),f=$H(XIe(t,(jVe(),evt)),98),g=$H(XIe(r,ovt),61),$O(uve(r),Zmt)||(p=0==r.i&&0==r.j?0:ZEe(r,g),Yve(r,Zmt,p)),lle(i=dVe(r,f,g,h,new Nk(t.g,t.f),l,new Nk(r.g,r.f),$H(vSe(n,zgt),103),n),(lKe(),fht),r),$h(o=$H(NQ(i.j,0),11),y$e(r)),lle(i,rvt,(uOe(),Jhe(nOt))),u=$H(XIe(t,rvt),174).Hc(eOt),s=new ON((!r.n&&(r.n=new eG(UMt,r,1,7)),r.n));s.e!=s.i.gc();)if(!Hy(_B(XIe(a=$H(bve(s),137),Umt)))&&a.a&&(d=jue(a),GH(o.f,d),!u))switch(c=0,jW($H(XIe(t,rvt),21))&&(c=MOe(new Nk(a.i,a.j),new Nk(a.g,a.f),new Nk(r.g,r.f),0,g)),g.g){case 2:case 4:d.o.a=c;break;case 1:case 3:d.o.b=c}lle(i,Cvt,xB(XIe(qJ(t),Cvt))),lle(i,Tvt,xB(XIe(qJ(t),Tvt))),lle(i,Evt,xB(XIe(qJ(t),Evt))),GH(n.a,i),VK(e.a,r,i)}function YWe(e,t,n){var r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b;for(kEe(n,"Processor arrange level",1),u=0,Eq(),Pie(t,new iv((HQe(),twt))),o=t.b,s=sve(t,t.b),c=!0;c&&s.b.b!=s.d.a;)m=$H(z1(s),86),0==$H(vSe(m,twt),19).a?--o:c=!1;if(a=new JF(new s0(t,0,o)),l=new JF(new s0(t,o,t.b)),0==a.b)for(f=sve(l,0);f.b!=f.d.c;)lle($H(d3(f),86),lwt,the(u++));else for(d=a.b,b=sve(a,0);b.b!=b.d.c;){for(lle(A=$H(d3(b),86),lwt,the(u++)),YWe(e,r=Nse(A),voe(n,1/d|0)),Pie(r,KK(new iv(lwt))),h=new YE,v=sve(r,0);v.b!=v.d.c;)for(m=$H(d3(v),86),g=sve(A.d,0);g.b!=g.d.c;)(p=$H(d3(g),188)).c==m&&n5(h,p,h.c.b,h.c);for(Aq(A.d),Fie(A.d,h),s=sve(l,l.b),i=A.d.b,c=!0;0<i&&c&&s.b.b!=s.d.a;)m=$H(z1(s),86),0==$H(vSe(m,twt),19).a?(lle(m,lwt,the(u++)),--i,vte(s)):c=!1}jCe(n)}function qWe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m;for(kEe(t,"Inverted port preprocessing",1),s=new x2(e.b,0),n=null,m=new Dv;s.b<s.d.gc();){for(g=n,SL(s.b<s.d.gc()),n=$H(s.d.Xb(s.c=s.b++),29),u=new Gf(m);u.a<u.c.c.length;)SZ(l=$H(J0(u),10),g);for(m.c=N8(Met,jKe,1,0,5,1),d=new Gf(n.a);d.a<d.c.c.length;)if((l=$H(J0(d),10)).k==(oCe(),Cst)&&mI($H(vSe(l,(jVe(),evt)),98))){for(p=rPe(l,(ire(),jAt),(bGe(),aOt)).Kc();p.Ob();)for(h=$H(p.Pb(),11),i=0,o=(r=$H(Kme(a=h.e,N8(Ast,r0e,17,a.c.length,0,1)),474)).length;i<o;++i)MHe(e,h,r[i],m);for(f=rPe(l,HAt,COt).Kc();f.Ob();)for(h=$H(f.Pb(),11),i=0,o=(r=$H(Kme(a=h.g,N8(Ast,r0e,17,a.c.length,0,1)),474)).length;i<o;++i)OHe(e,h,r[i],m)}}for(c=new Gf(m);c.a<c.c.c.length;)SZ(l=$H(J0(c),10),n);jCe(t)}function XWe(e,t,n,r,i,o){var a,s,l,c,u,d;for(Hae(c=new CCe,t),Hke(c,$H(XIe(t,(jVe(),ovt)),61)),lle(c,(lKe(),fht),t),CZ(c,n),(d=c.o).a=t.g,d.b=t.f,(u=c.n).a=t.i,u.b=t.j,VK(e.a,t,c),(a=a5(MY(hee(new LQ(null,(!t.e&&(t.e=new lF(BMt,t,7,4)),new h0(t.e,16))),new Kt),new Gt),new Gp(t)))||(a=a5(MY(hee(new LQ(null,(!t.d&&(t.d=new lF(BMt,t,8,5)),new h0(t.d,16))),new Yt),new Vt),new Vp(t))),a||(a=a5(new LQ(null,(!t.e&&(t.e=new lF(BMt,t,7,4)),new h0(t.e,16))),new qt)),lle(c,eht,(lR(),!!a)),gQe(c,o,i,$H(XIe(t,Jmt),8)),l=new ON((!t.n&&(t.n=new eG(UMt,t,1,7)),t.n));l.e!=l.i.gc();)!Hy(_B(XIe(s=$H(bve(l),137),Umt)))&&s.a&&GH(c.f,jue(s));switch(i.g){case 2:case 1:(c.j==(bGe(),sOt)||c.j==EOt)&&r.Fc((dBe(),pdt));break;case 4:case 3:(c.j==(bGe(),aOt)||c.j==COt)&&r.Fc((dBe(),pdt))}return c}function JWe(e,t,n,i,o,a,s){var l,c,u,d,h,f,p,g,m,v,A,b;for(h=null,i==(fJ(),Iyt)?h=t:i==Dyt&&(h=n),g=h.a.ec().Kc();g.Ob();){for(p=$H(g.Pb(),11),m=Ole(Sse(Uw(SSt,1),sYe,8,0,[p.i.n,p.n,p.a])).b,b=new LA,l=new LA,u=new v6(p.b);AD(u.a)||AD(u.b);)if(Hy(_B(vSe(c=$H(AD(u.a)?J0(u.a):J0(u.b),17),(lKe(),Cht))))==o&&-1!=w9(a,c,0)){if(v=c.d==p?c.c:c.d,A=Ole(Sse(Uw(SSt,1),sYe,8,0,[v.i.n,v.n,v.a])).b,r.Math.abs(A-m)<.2)continue;A<m?t.a._b(v)?_G(b,new nO(Iyt,c)):_G(b,new nO(Dyt,c)):t.a._b(v)?_G(l,new nO(Iyt,c)):_G(l,new nO(Dyt,c))}if(b.a.gc()>1)for(e5(b,new sk(e,f=new lQe(p,b,i))),s.c[s.c.length]=f,d=b.a.ec().Kc();d.Ob();)A9(a,$H(d.Pb(),46).b);if(l.a.gc()>1)for(e5(l,new lk(e,f=new lQe(p,l,i))),s.c[s.c.length]=f,d=l.a.ec().Kc();d.Ob();)A9(a,$H(d.Pb(),46).b)}}function ZWe(e){DS(e,new xEe(f_(m_(h_(g_(p_(new ms,h4e),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new Qa),h4e))),o2(e,h4e,p3e,vve(N_t)),o2(e,h4e,mZe,vve(B_t)),o2(e,h4e,SZe,vve(C_t)),o2(e,h4e,$Ze,vve(T_t)),o2(e,h4e,EZe,vve(k_t)),o2(e,h4e,CZe,vve(S_t)),o2(e,h4e,xZe,vve(O_t)),o2(e,h4e,TZe,vve(D_t)),o2(e,h4e,l4e,vve(x_t)),o2(e,h4e,s4e,vve(E_t)),o2(e,h4e,d4e,vve(M_t)),o2(e,h4e,o4e,vve(I_t)),o2(e,h4e,a4e,vve(R_t)),o2(e,h4e,c4e,vve(L_t)),o2(e,h4e,u4e,vve(P_t))}function eGe(e){var t;if(this.r=NY(new Ce,new Te),this.b=new jfe($H(AV(FOt),290)),this.p=new jfe($H(AV(FOt),290)),this.i=new jfe($H(AV(Bit),290)),this.e=e,this.o=new hI(e.rf()),this.D=e.Df()||Hy(_B(e.We((sKe(),ECt)))),this.A=$H(e.We((sKe(),BCt)),21),this.B=$H(e.We(HCt),21),this.q=$H(e.We(oTt),98),this.u=$H(e.We(cTt),21),!hSe(this.u))throw jv(new nw("Invalid port label placement: "+this.u));if(this.v=Hy(_B(e.We(dTt))),this.j=$H(e.We(RCt),21),!ZDe(this.j))throw jv(new nw("Invalid node label placement: "+this.j));this.n=$H(Jye(e,DCt),116),this.k=Uy(xB(Jye(e,kTt))),this.d=Uy(xB(Jye(e,TTt))),this.w=Uy(xB(Jye(e,LTt))),this.s=Uy(xB(Jye(e,OTt))),this.t=Uy(xB(Jye(e,MTt))),this.C=$H(Jye(e,NTt),142),this.c=2*this.d,t=!this.B.Hc((JFe(),jOt)),this.f=new Tme(0,t,0),this.g=new Tme(1,t,0),yy(this.f,(Rte(),Qrt),this.g)}function tGe(e,t,n,i,o){var a,s,l,c,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C;for(y=0,m=0,g=0,p=1,b=new ON((!e.a&&(e.a=new eG(QMt,e,10,11)),e.a));b.e!=b.i.gc();)p+=F3(new aW(XN(fNe(v=$H(bve(b),33)).a.Kc(),new u))),E=v.g,m=r.Math.max(m,E),f=v.f,g=r.Math.max(g,f),y+=E*f;for(s=y+2*i*i*p*(!e.a&&(e.a=new eG(QMt,e,10,11)),e.a).i,a=r.Math.sqrt(s),c=r.Math.max(a*n,m),l=r.Math.max(a/n,g),A=new ON((!e.a&&(e.a=new eG(QMt,e,10,11)),e.a));A.e!=A.i.gc();)v=$H(bve(A),33),S=o.b+(jDe(t,26)*nXe+jDe(t,27)*rXe)*(c-v.g),C=o.b+(jDe(t,26)*nXe+jDe(t,27)*rXe)*(l-v.f),Sne(v,S),Cne(v,C);for(x=c+(o.b+o.c),_=l+(o.d+o.a),w=new ON((!e.a&&(e.a=new eG(QMt,e,10,11)),e.a));w.e!=w.i.gc();)for(h=new aW(XN(fNe($H(bve(w),33)).a.Kc(),new u));fIe(h);)JMe(d=$H(z5(h),79))||$Ve(d,t,x,_);BGe(e,x+=o.b+o.c,_+=o.d+o.a,!1,!0)}function nGe(e){var t,n,r,i,o,a,s,l,c,u,d;if(null==e)throw jv(new xw(QKe));if(c=e,l=!1,(o=e.length)>0&&(d0(0,e.length),45!=(t=e.charCodeAt(0))&&43!=t||(e=e.substr(1),--o,l=45==t)),0==o)throw jv(new xw(Rqe+c+'"'));for(;e.length>0&&(d0(0,e.length),48==e.charCodeAt(0));)e=e.substr(1),--o;if(o>(tje(),Rtt)[10])throw jv(new xw(Rqe+c+'"'));for(i=0;i<o;i++)if(-1==eme((d0(i,e.length),e.charCodeAt(i))))throw jv(new xw(Rqe+c+'"'));for(d=0,a=Dtt[10],u=Ntt[10],s=y9(Ltt[10]),n=!0,(r=o%a)>0&&(d=-parseInt(e.substr(0,r),10),e=e.substr(r),o-=r,n=!1);o>=a;){if(r=parseInt(e.substr(0,a),10),e=e.substr(a),o-=a,n)n=!1;else{if(Vue(d,s)<0)throw jv(new xw(Rqe+c+'"'));d=rfe(d,u)}d=tfe(d,r)}if(Vue(d,0)>0)throw jv(new xw(Rqe+c+'"'));if(!l&&Vue(d=y9(d),0)<0)throw jv(new xw(Rqe+c+'"'));return d}function rGe(e,t){var n,r,i,o,a,s,l;if(XU(),this.a=new WD(this),this.b=e,this.c=t,this.f=kG($9((TTe(),qDt),t)),this.f.dc())if((s=v_e(qDt,e))==t)for(this.e=!0,this.d=new Dv,this.f=new hl,this.f.Fc(E9e),$H(DUe(F9(qDt,zte(e)),""),26)==e&&this.f.Fc(iW(qDt,zte(e))),i=wFe(qDt,e).Kc();i.Ob();)switch(r=$H(i.Pb(),170),RK($9(qDt,r))){case 4:this.d.Fc(r);break;case 5:this.f.Gc(kG($9(qDt,r)))}else if(XS(),$H(t,66).Oj())for(this.e=!0,this.f=null,this.d=new Dv,a=0,l=(null==e.i&&Hje(e),e.i).length;a<l;++a)for(null==e.i&&Hje(e),n=e.i,r=a>=0&&a<n.length?n[a]:null,o=X0($9(qDt,r));o;o=X0($9(qDt,o)))o==t&&this.d.Fc(r);else 1==RK($9(qDt,t))&&s?(this.f=null,this.d=(_Me(),cNt)):(this.f=null,this.e=!0,this.d=(Eq(),new Uf(t)));else this.e=5==RK($9(qDt,t)),this.f.Fb(iNt)&&(this.f=iNt)}function iGe(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g;for(n=0,i=Sbe(e,t),f=e.s,p=e.t,u=$H($H(l6(e.r,t),21),84).Kc();u.Ob();)if((c=$H(u.Pb(),111)).c&&!(c.c.d.c.length<=0)){switch(g=c.b.rf(),l=c.b.Xe((sKe(),iTt))?Uy(xB(c.b.We(iTt))):0,(h=(d=c.c).i).b=(s=d.n,d.e.a+s.b+s.c),h.a=(a=d.n,d.e.b+a.d+a.a),t.g){case 1:h.c=c.a?(g.a-h.b)/2:g.a+f,h.d=g.b+l+i,u7(d,(q7(),Krt)),GB(d,(U9(),rit));break;case 3:h.c=c.a?(g.a-h.b)/2:g.a+f,h.d=-l-i-h.a,u7(d,(q7(),Krt)),GB(d,(U9(),tit));break;case 2:h.c=-l-i-h.b,c.a?(o=e.v?h.a:$H(NQ(d.d,0),181).rf().b,h.d=(g.b-o)/2):h.d=g.b+p,u7(d,(q7(),qrt)),GB(d,(U9(),nit));break;case 4:h.c=g.a+l+i,c.a?(o=e.v?h.a:$H(NQ(d.d,0),181).rf().b,h.d=(g.b-o)/2):h.d=g.b+p,u7(d,(q7(),Yrt)),GB(d,(U9(),nit))}(t==(bGe(),sOt)||t==EOt)&&(n=r.Math.max(n,h.a))}n>0&&($H(aY(e.b,t),124).a.b=n)}function oGe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m;for(kEe(t,"Comment pre-processing",1),n=0,l=new Gf(e.a);l.a<l.c.c.length;)if(Hy(_B(vSe(s=$H(J0(l),10),(jVe(),_gt))))){for(++n,i=0,r=null,c=null,p=new Gf(s.j);p.a<p.c.c.length;)i+=(h=$H(J0(p),11)).e.c.length+h.g.c.length,1==h.e.c.length&&(c=(r=$H(NQ(h.e,0),17)).c),1==h.g.c.length&&(c=(r=$H(NQ(h.g,0),17)).d);if(1!=i||c.e.c.length+c.g.c.length!=1||Hy(_B(vSe(c.i,_gt)))){for(m=new Dv,f=new Gf(s.j);f.a<f.c.c.length;){for(d=new Gf((h=$H(J0(f),11)).g);d.a<d.c.c.length;)0==(u=$H(J0(d),17)).d.g.c.length||(m.c[m.c.length]=u);for(a=new Gf(h.e);a.a<a.c.c.length;)0==(o=$H(J0(a),17)).c.e.c.length||(m.c[m.c.length]=o)}for(g=new Gf(m);g.a<g.c.c.length;)Zje($H(J0(g),17),!0)}else JGe(s,r,c,c.i),OG(l)}t.n&&kU(t,"Found "+n+" comment boxes"),jCe(t)}function aGe(e,t,n,r){var i,o,a,s,l,c,u,d,h,f,p,g;if(h=Uy(xB(vSe(e,(jVe(),Cvt)))),f=Uy(xB(vSe(e,Tvt))),d=Uy(xB(vSe(e,Evt))),s=e.o,a=(o=$H(NQ(e.j,0),11)).n,g=_Te(o,d)){if(t.Hc((uOe(),eOt)))switch($H(vSe(e,(lKe(),Kdt)),61).g){case 1:g.c=(s.a-g.b)/2-a.a,g.d=f;break;case 3:g.c=(s.a-g.b)/2-a.a,g.d=-f-g.a;break;case 2:n&&0==o.e.c.length&&0==o.g.c.length?(u=r?g.a:$H(NQ(o.f,0),70).o.b,g.d=(s.b-u)/2-a.b):g.d=s.b+f-a.b,g.c=-h-g.b;break;case 4:n&&0==o.e.c.length&&0==o.g.c.length?(u=r?g.a:$H(NQ(o.f,0),70).o.b,g.d=(s.b-u)/2-a.b):g.d=s.b+f-a.b,g.c=h}else if(t.Hc(nOt))switch($H(vSe(e,(lKe(),Kdt)),61).g){case 1:case 3:g.c=a.a+h;break;case 2:case 4:n&&!o.c?(u=r?g.a:$H(NQ(o.f,0),70).o.b,g.d=(s.b-u)/2-a.b):g.d=a.b+f}for(i=g.d,c=new Gf(o.f);c.a<c.c.c.length;)(p=(l=$H(J0(c),70)).n).a=g.c,p.b=i,i+=l.o.b+d}}function sGe(){LM(dNt,new Yc),LM(UNt,new au),LM(QNt,new vu),LM(zNt,new ku),LM(Ytt,new Du),LM(Uw(IRt,1),new Nu),LM(ytt,new Ru),LM(xtt,new Lu),LM(Ytt,new $c),LM(Ytt,new jc),LM(Ytt,new Hc),LM(Ctt,new Uc),LM(Ytt,new Qc),LM(Bet,new zc),LM(Bet,new Wc),LM(Ytt,new Gc),LM(Ttt,new Vc),LM(Ytt,new Kc),LM(Ytt,new qc),LM(Ytt,new Xc),LM(Ytt,new Jc),LM(Ytt,new Zc),LM(Uw(IRt,1),new eu),LM(Ytt,new tu),LM(Ytt,new nu),LM(Bet,new ru),LM(Bet,new iu),LM(Ytt,new ou),LM(Mtt,new su),LM(Ytt,new lu),LM(Btt,new cu),LM(Ytt,new uu),LM(Ytt,new du),LM(Ytt,new hu),LM(Ytt,new fu),LM(Bet,new pu),LM(Bet,new gu),LM(Ytt,new mu),LM(Ytt,new Au),LM(Ytt,new bu),LM(Ytt,new yu),LM(Ytt,new wu),LM(Ytt,new _u),LM(Ftt,new xu),LM(Ytt,new Eu),LM(Ytt,new Su),LM(Ytt,new Cu),LM(Ftt,new Tu),LM(Btt,new Ou),LM(Ytt,new Mu),LM(Mtt,new Iu)}function lGe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A;if((d=t.length)>0&&(d0(0,t.length),64!=(s=t.charCodeAt(0)))){if(37==s&&(l=!1,0!=(u=t.lastIndexOf("%"))&&(u==d-1||(d0(u+1,t.length),l=46==t.charCodeAt(u+1))))){if(A=vF("%",a=t.substr(1,u-1))?null:MGe(a),r=0,l)try{r=u$e(t.substr(u+2),PYe,RKe)}catch(e){throw rN(e=use(e),127)?jv(new I9(e)):jv(e)}for(g=wie(e.Wg());g.Ob();)if(rN(f=xae(g),510)&&(v=(i=$H(f,590)).d,(null==A?null==v:vF(A,v))&&0==r--))return i;return null}if(h=-1==(c=t.lastIndexOf("."))?t:t.substr(0,c),n=0,-1!=c)try{n=u$e(t.substr(c+1),PYe,RKe)}catch(e){if(!rN(e=use(e),127))throw jv(e);h=t}for(h=vF("%",h)?null:MGe(h),p=wie(e.Wg());p.Ob();)if(rN(f=xae(p),191)&&(m=(o=$H(f,191)).ne(),(null==h?null==m:vF(h,m))&&0==n--))return o;return null}return PQe(e,t)}function cGe(e){var t,n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E;for(b=new Dv,d=new Gf(e.b);d.a<d.c.c.length;)for(p=new Gf($H(J0(d),29).a);p.a<p.c.c.length;)if((h=$H(J0(p),10)).k==(oCe(),xst)&&IL(h,(lKe(),Vdt))){for(g=null,v=null,m=null,_=new Gf(h.j);_.a<_.c.c.length;)switch((w=$H(J0(_),11)).j.g){case 4:g=w;break;case 2:v=w;break;default:m=w}for(c=new B_((A=$H(NQ(m.g,0),17)).a),zP(l=new hI(m.n),h.n),JG(sve(c,0),l),y=qle(A.a),zP(u=new hI(m.n),h.n),n5(y,u,y.c.b,y.c),x=$H(vSe(h,Vdt),10),E=$H(NQ(x.j,0),11),o=0,s=(r=$H(Kme(g.e,N8(Ast,r0e,17,0,0,1)),474)).length;o<s;++o)xZ(t=r[o],E),Gce(t.a,t.a.b,c);for(i=0,a=(n=X1(v.g)).length;i<a;++i)EZ(t=n[i],E),Gce(t.a,0,y);EZ(A,null),xZ(A,null),b.c[b.c.length]=h}for(f=new Gf(b);f.a<f.c.c.length;)SZ(h=$H(J0(f),10),null)}function uGe(){var e,t,n;for(uGe=M,new bee(1,0),new bee(10,0),new bee(0,0),Htt=N8(nnt,sYe,240,11,0,1),Utt=N8(TRt,GYe,25,100,15,1),Qtt=Sse(Uw(DRt,1),Hqe,25,15,[1,5,25,125,625,3125,15625,78125,390625,1953125,9765625,48828125,244140625,1220703125,6103515625,30517578125,152587890625,762939453125,3814697265625,19073486328125,95367431640625,476837158203125,0x878678326eac9]),ztt=N8(kRt,lqe,25,Qtt.length,15,1),Wtt=Sse(Uw(DRt,1),Hqe,25,15,[1,10,100,VYe,1e4,Uqe,1e6,1e7,1e8,Oqe,1e10,1e11,1e12,1e13,1e14,1e15,1e16]),Gtt=N8(kRt,lqe,25,Wtt.length,15,1),Vtt=N8(nnt,sYe,240,11,0,1),e=0;e<Vtt.length;e++)Htt[e]=new bee(e,0),Vtt[e]=new bee(0,e),Utt[e]=48;for(;e<Utt.length;e++)Utt[e]=48;for(n=0;n<ztt.length;n++)ztt[n]=iOe(Qtt[n]);for(t=0;t<Gtt.length;t++)Gtt[t]=iOe(Wtt[t]);MMe()}function dGe(){function e(){this.obj=this.createObject()}return e.prototype.createObject=function(e){return Object.create(null)},e.prototype.get=function(e){return this.obj[e]},e.prototype.set=function(e,t){this.obj[e]=t},e.prototype[tXe]=function(e){delete this.obj[e]},e.prototype.keys=function(){return Object.getOwnPropertyNames(this.obj)},e.prototype.entries=function(){var e=this.keys(),t=this,n=0;return{next:function(){if(n>=e.length)return{done:!0};var r=e[n++];return{value:[r,t.get(r)],done:!1}}}},QBe()||(e.prototype.createObject=function(){return{}},e.prototype.get=function(e){return this.obj[":"+e]},e.prototype.set=function(e,t){this.obj[":"+e]=t},e.prototype[tXe]=function(e){delete this.obj[":"+e]},e.prototype.keys=function(){var e=[];for(var t in this.obj)58==t.charCodeAt(0)&&e.push(t.substring(1));return e}),e}function hGe(e){var t,n,r,i,o,a,s,l,c,u,d,h,f,p,g;if(Sje(),null==e)return null;if(0==(d=8*e.length))return"";for(h=d/24|0,o=null,o=N8(TRt,GYe,25,4*(0!=(s=d%24)?h+1:h),15,1),c=0,u=0,t=0,n=0,r=0,a=0,i=0,l=0;l<h;l++)t=e[i++],u=(15&(n=e[i++]))<<24>>24,c=(3&t)<<24>>24,f=-128&t?(t>>2^192)<<24>>24:t>>2<<24>>24,p=-128&n?(n>>4^240)<<24>>24:n>>4<<24>>24,g=-128&(r=e[i++])?(r>>6^252)<<24>>24:r>>6<<24>>24,o[a++]=GNt[f],o[a++]=GNt[p|c<<4],o[a++]=GNt[u<<2|g],o[a++]=GNt[63&r];return 8==s?(c=(3&(t=e[i]))<<24>>24,f=-128&t?(t>>2^192)<<24>>24:t>>2<<24>>24,o[a++]=GNt[f],o[a++]=GNt[c<<4],o[a++]=61,o[a++]=61):16==s&&(t=e[i],u=(15&(n=e[i+1]))<<24>>24,c=(3&t)<<24>>24,f=-128&t?(t>>2^192)<<24>>24:t>>2<<24>>24,p=-128&n?(n>>4^240)<<24>>24:n>>4<<24>>24,o[a++]=GNt[f],o[a++]=GNt[p|c<<4],o[a++]=GNt[u<<2],o[a++]=61),$ge(o,0,o.length)}function fGe(e,t){var n,i,o,a,s,l;if(0==e.e&&e.p>0&&(e.p=-(e.p-1)),e.p>PYe&&e4(t,e.p-sqe),s=t.q.getDate(),FJ(t,1),e.k>=0&&mZ(t,e.k),e.c>=0?FJ(t,e.c):e.k>=0?(i=35-new mle(t.q.getFullYear()-sqe,t.q.getMonth(),35).q.getDate(),FJ(t,r.Math.min(i,s))):FJ(t,s),e.f<0&&(e.f=t.q.getHours()),e.b>0&&e.f<12&&(e.f+=12),iN(t,24==e.f&&e.g?0:e.f),e.j>=0&&p6(t,e.j),e.n>=0&&z8(t,e.n),e.i>=0&&fM(t,nfe(rfe(k_e(cae(t.q.getTime()),VYe),VYe),e.i)),e.a&&(e4(o=new OE,o.q.getFullYear()-sqe-80),sC(cae(t.q.getTime()),cae(o.q.getTime()))&&e4(t,o.q.getFullYear()-sqe+100)),e.d>=0)if(-1==e.c)(n=(7+e.d-t.q.getDay())%7)>3&&(n-=7),l=t.q.getMonth(),FJ(t,t.q.getDate()+n),t.q.getMonth()!=l&&FJ(t,t.q.getDate()+(n>0?-7:7));else if(t.q.getDay()!=e.d)return!1;return e.o>PYe&&(a=t.q.getTimezoneOffset(),fM(t,nfe(cae(t.q.getTime()),60*(e.o-a)*VYe))),!0}function pGe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v;if(rN(i=vSe(t,(lKe(),fht)),239)){for(f=$H(i,33),p=t.e,d=new hI(t.c),o=t.d,d.a+=o.b,d.b+=o.d,ER($H(XIe(f,(jVe(),Hmt)),174),(JFe(),HOt))&&(Th(h=$H(XIe(f,Qmt),116),o.a),Bh(h,o.d),kh(h,o.b),Ph(h,o.c)),n=new Dv,c=new Gf(t.a);c.a<c.c.c.length;)for(rN(vSe(s=$H(J0(c),10),fht),239)?CGe(s,d):rN(vSe(s,fht),186)&&!p&&EI(r=$H(vSe(s,fht),118),(m=Aje(t,s,r.g,r.f)).a,m.b),g=new Gf(s.j);g.a<g.c.c.length;)qE(OY(new LQ(null,new h0($H(J0(g),11).g,16)),new Kp(s)),new Yp(n));if(p)for(g=new Gf(p.j);g.a<g.c.c.length;)qE(OY(new LQ(null,new h0($H(J0(g),11).g,16)),new qp(p)),new Xp(n));for(v=$H(XIe(f,Xgt),218),a=new Gf(n);a.a<a.c.c.length;)gWe($H(J0(a),17),v,d);for(v$e(t),l=new Gf(t.a);l.a<l.c.c.length;)(u=(s=$H(J0(l),10)).e)&&pGe(e,u)}}function gGe(e){DS(e,new xEe(v_(f_(m_(h_(g_(p_(new ms,pZe),"ELK Force"),"Force-based algorithm provided by the Eclipse Layout Kernel. Implements methods that follow physical analogies by simulating forces that move the nodes into a balanced distribution. Currently the original Eades model and the Fruchterman - Reingold model are supported."),new pt),pZe),wz((lIe(),JMt),Sse(Uw(rIt,1),MYe,237,0,[qMt]))))),o2(e,pZe,gZe,the(1)),o2(e,pZe,mZe,80),o2(e,pZe,vZe,5),o2(e,pZe,VJe,fZe),o2(e,pZe,AZe,the(1)),o2(e,pZe,bZe,(lR(),!0)),o2(e,pZe,KJe,Kot),o2(e,pZe,yZe,vve(jot)),o2(e,pZe,wZe,vve(Yot)),o2(e,pZe,_Ze,!1),o2(e,pZe,xZe,vve(Got)),o2(e,pZe,EZe,vve(Wot)),o2(e,pZe,SZe,vve(zot)),o2(e,pZe,CZe,vve(Qot)),o2(e,pZe,TZe,vve(qot)),o2(e,pZe,aZe,vve(Uot)),o2(e,pZe,cZe,vve(iat)),o2(e,pZe,sZe,vve(Hot)),o2(e,pZe,dZe,vve(Zot)),o2(e,pZe,lZe,vve(eat))}function mGe(e,t){var n,i,o,a,s,l,c,u,d,h,f,p;if(!$H($H(l6(e.r,t),21),84).dc()){if(c=(s=$H(aY(e.b,t),124)).i,l=s.n,d=SBe(e,t),i=c.b-l.b-l.c,o=s.a.a,a=c.c+l.b,p=e.w,d!=(rve(),$kt)&&d!=Hkt||1!=$H($H(l6(e.r,t),21),84).gc()||(o=d==$kt?o-2*e.w:o,d=Fkt),i<o&&!e.B.Hc((JFe(),GOt)))d==$kt?a+=p+=(i-o)/($H($H(l6(e.r,t),21),84).gc()+1):p+=(i-o)/($H($H(l6(e.r,t),21),84).gc()-1);else switch(i<o&&(o=d==$kt?o-2*e.w:o,d=Fkt),d.g){case 3:a+=(i-o)/2;break;case 4:a+=i-o;break;case 0:n=(i-o)/($H($H(l6(e.r,t),21),84).gc()+1),a+=p+=r.Math.max(0,n);break;case 1:n=(i-o)/($H($H(l6(e.r,t),21),84).gc()-1),p+=r.Math.max(0,n)}for(f=$H($H(l6(e.r,t),21),84).Kc();f.Ob();)(h=$H(f.Pb(),111)).e.a=a+h.d.b,h.e.b=(u=h.b).Xe((sKe(),iTt))?u.Hf()==(bGe(),sOt)?-u.rf().b-Uy(xB(u.We(iTt))):Uy(xB(u.We(iTt))):u.Hf()==(bGe(),sOt)?-u.rf().b:0,a+=h.d.b+h.b.rf().a+h.d.c+p}}function vGe(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g;if(!$H($H(l6(e.r,t),21),84).dc()){if(c=(s=$H(aY(e.b,t),124)).i,l=s.n,h=SBe(e,t),i=c.a-l.d-l.a,o=s.a.b,a=c.d+l.d,g=e.w,u=e.o.a,h!=(rve(),$kt)&&h!=Hkt||1!=$H($H(l6(e.r,t),21),84).gc()||(o=h==$kt?o-2*e.w:o,h=Fkt),i<o&&!e.B.Hc((JFe(),GOt)))h==$kt?a+=g+=(i-o)/($H($H(l6(e.r,t),21),84).gc()+1):g+=(i-o)/($H($H(l6(e.r,t),21),84).gc()-1);else switch(i<o&&(o=h==$kt?o-2*e.w:o,h=Fkt),h.g){case 3:a+=(i-o)/2;break;case 4:a+=i-o;break;case 0:n=(i-o)/($H($H(l6(e.r,t),21),84).gc()+1),a+=g+=r.Math.max(0,n);break;case 1:n=(i-o)/($H($H(l6(e.r,t),21),84).gc()-1),g+=r.Math.max(0,n)}for(p=$H($H(l6(e.r,t),21),84).Kc();p.Ob();)(f=$H(p.Pb(),111)).e.a=(d=f.b).Xe((sKe(),iTt))?d.Hf()==(bGe(),COt)?-d.rf().a-Uy(xB(d.We(iTt))):u+Uy(xB(d.We(iTt))):d.Hf()==(bGe(),COt)?-d.rf().a:u,f.e.b=a+f.d.d,a+=f.d.d+f.b.rf().b+f.d.a+g}}function AGe(e){var t,n,i,o,a,s,l,c,d,h,f,p,g,m,v;for(e.n=Uy(xB(vSe(e.g,(jVe(),kvt)))),e.e=Uy(xB(vSe(e.g,_vt))),e.i=e.g.b.c.length,l=e.i-1,p=0,e.j=0,e.k=0,e.a=o6(N8(Mtt,sYe,19,e.i,0,1)),e.b=o6(N8(Ctt,sYe,333,e.i,7,1)),s=new Gf(e.g.b);s.a<s.c.c.length;){for((o=$H(J0(s),29)).p=l,f=new Gf(o.a);f.a<f.c.c.length;)(h=$H(J0(f),10)).p=p,++p;--l}for(e.f=N8(kRt,lqe,25,p,15,1),e.c=bQ(kRt,[sYe,lqe],[48,25],15,[p,3],2),e.o=new Dv,e.p=new Dv,t=0,e.d=0,a=new Gf(e.g.b);a.a<a.c.c.length;){for(l=(o=$H(J0(a),29)).p,i=0,v=0,c=o.a.c.length,d=0,f=new Gf(o.a);f.a<f.c.c.length;)p=(h=$H(J0(f),10)).p,e.f[p]=h.c.p,d+=h.o.b+e.n,n=F3(new aW(XN(cfe(h).a.Kc(),new u))),m=F3(new aW(XN(ufe(h).a.Kc(),new u))),e.c[p][0]=m-n,e.c[p][1]=n,e.c[p][2]=m,i+=n,v+=m,n>0&&GH(e.p,h),GH(e.o,h);g=c+(t-=i),d+=t*e.e,r5(e.a,l,the(g)),r5(e.b,l,d),e.j=r.Math.max(e.j,g),e.k=r.Math.max(e.k,d),e.d+=t,t+=v}}function bGe(){var e;bGe=M,SOt=new Gk(lJe,0),sOt=new Gk(vJe,1),aOt=new Gk(AJe,2),EOt=new Gk(bJe,3),COt=new Gk(yJe,4),Eq(),hOt=new Ow(new YF(e=$H(V_(FOt),9),$H(EP(e,e.length),9),0)),fOt=cde(wz(sOt,Sse(Uw(FOt,1),YZe,61,0,[]))),lOt=cde(wz(aOt,Sse(Uw(FOt,1),YZe,61,0,[]))),wOt=cde(wz(EOt,Sse(Uw(FOt,1),YZe,61,0,[]))),xOt=cde(wz(COt,Sse(Uw(FOt,1),YZe,61,0,[]))),AOt=cde(wz(sOt,Sse(Uw(FOt,1),YZe,61,0,[EOt]))),dOt=cde(wz(aOt,Sse(Uw(FOt,1),YZe,61,0,[COt]))),yOt=cde(wz(sOt,Sse(Uw(FOt,1),YZe,61,0,[COt]))),pOt=cde(wz(sOt,Sse(Uw(FOt,1),YZe,61,0,[aOt]))),_Ot=cde(wz(EOt,Sse(Uw(FOt,1),YZe,61,0,[COt]))),cOt=cde(wz(aOt,Sse(Uw(FOt,1),YZe,61,0,[EOt]))),vOt=cde(wz(sOt,Sse(Uw(FOt,1),YZe,61,0,[aOt,COt]))),uOt=cde(wz(aOt,Sse(Uw(FOt,1),YZe,61,0,[EOt,COt]))),bOt=cde(wz(sOt,Sse(Uw(FOt,1),YZe,61,0,[EOt,COt]))),gOt=cde(wz(sOt,Sse(Uw(FOt,1),YZe,61,0,[aOt,EOt]))),mOt=cde(wz(sOt,Sse(Uw(FOt,1),YZe,61,0,[aOt,EOt,COt])))}function yGe(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A;if(0!=t.b){for(h=new YE,a=null,f=null,n=CJ(r.Math.floor(r.Math.log(t.b)*r.Math.LOG10E)+1),s=0,A=sve(t,0);A.b!=A.d.c;)for(m=$H(d3(A),86),UO(f)!==UO(vSe(m,(HQe(),nwt)))&&(f=EB(vSe(m,nwt)),s=0),a=null!=f?f+f1(s++,n):f1(s++,n),lle(m,nwt,a),g=new hm(sve(new dm(m).a.d,0));wx(g.a);)n5(h,p=$H(d3(g.a),188).c,h.c.b,h.c),lle(p,nwt,a);for(d=new Nv,o=0;o<a.length-n;o++)for(v=sve(t,0);v.b!=v.d.c;)vZ(d,l=cL(EB(vSe(m=$H(d3(v),86),(HQe(),nwt))),0,o+1),the(null!=(null==l?HO(OX(d.f,null)):lC(d.g,l))?$H(null==l?HO(OX(d.f,null)):lC(d.g,l),19).a+1:1));for(u=new oce(new Sf(d).a);u.b;)c=Zte(u),i=the(null!=LV(e.a,c.cd())?$H(LV(e.a,c.cd()),19).a:0),vZ(e.a,EB(c.cd()),the($H(c.dd(),19).a+i.a)),(!(i=$H(LV(e.b,c.cd()),19))||i.a<$H(c.dd(),19).a)&&vZ(e.b,EB(c.cd()),$H(c.dd(),19));yGe(e,h)}}function wGe(e,t,n){var i,o,a,s,l,c,u,d,h,f,p,g,m,v,A;for(kEe(n,"Interactive node layering",1),i=new Dv,p=new Gf(t.a);p.a<p.c.c.length;){for(c=(u=(h=$H(J0(p),10)).n.a)+h.o.a,c=r.Math.max(u+1,c),A=new x2(i,0),o=null;A.b<A.d.gc();){if(SL(A.b<A.d.gc()),(m=$H(A.d.Xb(A.c=A.b++),569)).c>=c){SL(A.b>0),A.a.Xb(A.c=--A.b);break}m.a>u&&(o?(pse(o.b,m.b),o.a=r.Math.max(o.a,m.a),cK(A)):(GH(m.b,h),m.c=r.Math.min(m.c,u),m.a=r.Math.max(m.a,c),o=m))}o||((o=new tb).c=u,o.a=c,AP(A,o),GH(o.b,h))}for(l=t.b,d=0,v=new Gf(i);v.a<v.c.c.length;)for(m=$H(J0(v),569),(a=new jV(t)).p=d++,l.c[l.c.length]=a,g=new Gf(m.b);g.a<g.c.c.length;)SZ(h=$H(J0(g),10),a),h.p=0;for(f=new Gf(t.a);f.a<f.c.c.length;)0==(h=$H(J0(f),10)).p&&CBe(e,h,t);for(s=new x2(l,0);s.b<s.d.gc();)0==(SL(s.b<s.d.gc()),$H(s.d.Xb(s.c=s.b++),29)).a.c.length&&cK(s);t.a.c=N8(Met,jKe,1,0,5,1),jCe(n)}function _Ge(e,t,n){var r,i,o,a,s,l,c,u,d,h;if(0!=t.e.c.length&&0!=n.e.c.length){if((r=$H(NQ(t.e,0),17).c.i)==(a=$H(NQ(n.e,0),17).c.i))return wD($H(vSe($H(NQ(t.e,0),17),(lKe(),hht)),19).a,$H(vSe($H(NQ(n.e,0),17),hht),19).a);for(d=0,h=(u=e.a).length;d<h;++d){if((c=u[d])==r)return 1;if(c==a)return-1}}return 0!=t.g.c.length&&0!=n.g.c.length?(o=$H(vSe(t,(lKe(),uht)),10),l=$H(vSe(n,uht),10),i=0,s=0,IL($H(NQ(t.g,0),17),hht)&&(i=$H(vSe($H(NQ(t.g,0),17),hht),19).a),IL($H(NQ(n.g,0),17),hht)&&(s=$H(vSe($H(NQ(t.g,0),17),hht),19).a),o&&o==l?Hy(_B(vSe($H(NQ(t.g,0),17),Cht)))&&!Hy(_B(vSe($H(NQ(n.g,0),17),Cht)))?1:!Hy(_B(vSe($H(NQ(t.g,0),17),Cht)))&&Hy(_B(vSe($H(NQ(n.g,0),17),Cht)))||i<s?-1:i>s?1:0:(e.b&&(e.b._b(o)&&(i=$H(e.b.xc(o),19).a),e.b._b(l)&&(s=$H(e.b.xc(l),19).a)),i<s?-1:i>s?1:0)):0!=t.e.c.length&&0!=n.g.c.length?1:-1}function xGe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w;for(kEe(t,k0e,1),p=new Dv,y=new Dv,c=new Gf(e.b);c.a<c.c.c.length;)for(m=-1,h=0,f=(d=J1((l=$H(J0(c),29)).a)).length;h<f;++h)if(++m,(u=d[h]).k==(oCe(),Cst)&&mI($H(vSe(u,(jVe(),evt)),98))){for(IF($H(vSe(u,(jVe(),evt)),98))||jRe(u),lle(u,(lKe(),nht),u),p.c=N8(Met,jKe,1,0,5,1),y.c=N8(Met,jKe,1,0,5,1),n=new Dv,Hie(A=new YE,RCe(u,(bGe(),sOt))),OVe(e,A,p,y,n),s=m,w=u,o=new Gf(p);o.a<o.c.c.length;)Kye(r=$H(J0(o),10),s,l),++m,lle(r,nht,u),a=$H(NQ(r.j,0),11),g=$H(vSe(a,fht),11),Hy(_B(vSe(g,ygt)))||$H(vSe(r,rht),15).Fc(w);for(Aq(A),v=RCe(u,EOt).Kc();v.Ob();)n5(A,$H(v.Pb(),11),A.a,A.a.a);for(OVe(e,A,y,null,n),b=u,i=new Gf(y);i.a<i.c.c.length;)Kye(r=$H(J0(i),10),++m,l),lle(r,nht,u),a=$H(NQ(r.j,0),11),g=$H(vSe(a,fht),11),Hy(_B(vSe(g,ygt)))||$H(vSe(b,rht),15).Fc(r);0==n.c.length||lle(u,Ndt,n)}jCe(t)}function EGe(e){var t,n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C,T;for(u=$H(vSe(e,(xie(),sat)),33),g=RKe,m=RKe,f=PYe,p=PYe,A=new Gf(e.e);A.a<A.c.c.length;)x=(v=$H(J0(A),144)).d,E=v.e,g=r.Math.min(g,x.a-E.a/2),m=r.Math.min(m,x.b-E.b/2),f=r.Math.max(f,x.a+E.a/2),p=r.Math.max(p,x.b+E.b/2);for(w=new Nk((_=$H(XIe(u,(cPe(),Vot)),116)).b-g,_.d-m),l=new Gf(e.e);l.a<l.c.c.length;)rN(y=vSe(s=$H(J0(l),144),sat),239)&&EI(d=$H(y,33),(b=zP(s.d,w)).a-d.g/2,b.b-d.f/2);for(i=new Gf(e.c);i.a<i.c.c.length;)n=$H(J0(i),282),c=rBe($H(vSe(n,sat),79),!0,!0),zwe(C=WP($D(n.d.d),n.c.d),n.c.e.a,n.c.e.b),CI(c,(S=zP(C,n.c.d)).a,S.b),zwe(T=WP($D(n.c.d),n.d.d),n.d.e.a,n.d.e.b),SI(c,(t=zP(T,n.d.d)).a,t.b);for(a=new Gf(e.d);a.a<a.c.c.length;)o=$H(J0(a),447),EI($H(vSe(o,sat),137),(h=zP(o.d,w)).a,h.b);BGe(u,f-g+(_.b+_.c),p-m+(_.d+_.a),!1,!0)}function SGe(e){var t,n,r,i,o,a,s,l,c,u,d;for(n=null,s=null,(i=$H(vSe(e.b,(jVe(),tmt)),376))==(O6(),qAt)&&(n=new Dv,s=new Dv),a=new Gf(e.d);a.a<a.c.c.length;)if((o=$H(J0(a),101)).i)switch(o.e.g){case 0:t=$H(o4(new KE(o.b)),61),i==qAt&&t==(bGe(),sOt)?n.c[n.c.length]=o:i==qAt&&t==(bGe(),EOt)?s.c[s.c.length]=o:Dbe(o,t);break;case 1:l=o.a.d.j,c=o.c.d.j,l==(bGe(),sOt)?dG(o,sOt,(kse(),vct),o.a):c==sOt?dG(o,sOt,(kse(),Act),o.c):l==EOt?dG(o,EOt,(kse(),Act),o.a):c==EOt&&dG(o,EOt,(kse(),vct),o.c);break;case 2:case 3:ER(r=o.b,(bGe(),sOt))?ER(r,EOt)?ER(r,COt)?ER(r,aOt)||dG(o,sOt,(kse(),Act),o.c):dG(o,sOt,(kse(),vct),o.a):dG(o,sOt,(kse(),mct),null):dG(o,EOt,(kse(),mct),null);break;case 4:u=o.a.d.j,d=o.a.d.j,u==(bGe(),sOt)||d==sOt?dG(o,EOt,(kse(),mct),null):dG(o,sOt,(kse(),mct),null)}n&&(0==n.c.length||Kje(n,(bGe(),sOt)),0==s.c.length||Kje(s,(bGe(),EOt)))}function CGe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p;for(r=$H(vSe(e,(lKe(),fht)),33),f=$H(vSe(e,(jVe(),$gt)),19).a,o=$H(vSe(e,ymt),19).a,Yve(r,$gt,the(f)),Yve(r,ymt,the(o)),Sne(r,e.n.a+t.a),Cne(r,e.n.b+t.b),(0!=$H(XIe(r,Fmt),174).gc()||e.e||UO(vSe(mK(e),Pmt))===UO((DAe(),vAt))&&gI((dAe(),(e.q?e.q:(Eq(),Eq(),cnt))._b(Lmt)?$H(vSe(e,Lmt),197):$H(vSe(mK(e),Bmt),197))))&&(Ene(r,e.o.a),xne(r,e.o.b)),d=new Gf(e.j);d.a<d.c.c.length;)rN(p=vSe(c=$H(J0(d),11),fht),186)&&(EI(i=$H(p,118),c.n.a,c.n.b),Yve(i,ovt,c.j));for(h=0!=$H(vSe(e,Mmt),174).gc(),l=new Gf(e.b);l.a<l.c.c.length;)a=$H(J0(l),70),(h||0!=$H(vSe(a,Mmt),174).gc())&&(xI(n=$H(vSe(a,fht),137),a.o.a,a.o.b),EI(n,a.n.a,a.n.b));if(!jW($H(vSe(e,rvt),21)))for(u=new Gf(e.j);u.a<u.c.c.length;)for(s=new Gf((c=$H(J0(u),11)).f);s.a<s.c.c.length;)a=$H(J0(s),70),Ene(n=$H(vSe(a,fht),137),a.o.a),xne(n,a.o.b),EI(n,a.n.a,a.n.b)}function TGe(e){var t,n,r,i,o;switch(kX(e,t8e),(!e.b&&(e.b=new lF(LMt,e,4,7)),e.b).i+(!e.c&&(e.c=new lF(LMt,e,5,8)),e.c).i){case 0:throw jv(new Py("The edge must have at least one source or target."));case 1:return 0==(!e.b&&(e.b=new lF(LMt,e,4,7)),e.b).i?qJ(SEe($H(Gte((!e.c&&(e.c=new lF(LMt,e,5,8)),e.c),0),82))):qJ(SEe($H(Gte((!e.b&&(e.b=new lF(LMt,e,4,7)),e.b),0),82)))}if(1==(!e.b&&(e.b=new lF(LMt,e,4,7)),e.b).i&&1==(!e.c&&(e.c=new lF(LMt,e,5,8)),e.c).i){if(i=SEe($H(Gte((!e.b&&(e.b=new lF(LMt,e,4,7)),e.b),0),82)),o=SEe($H(Gte((!e.c&&(e.c=new lF(LMt,e,5,8)),e.c),0),82)),qJ(i)==qJ(o))return qJ(i);if(i==qJ(o))return i;if(o==qJ(i))return o}for(t=SEe($H(z5(r=DG(Gne(Sse(Uw(Ret,1),jKe,20,0,[(!e.b&&(e.b=new lF(LMt,e,4,7)),e.b),(!e.c&&(e.c=new lF(LMt,e,5,8)),e.c)])))),82));fIe(r);)if((n=SEe($H(z5(r),82)))!=t&&!Cte(n,t))if(qJ(n)==qJ(t))t=qJ(n);else if(!(t=$De(t,n)))return null;return t}function kGe(e,t,n){var i,o,a,s,l,c,d,h,f,p,g,m,v,A,b,y,w,_;for(kEe(n,"Polyline edge routing",1),A=Uy(xB(vSe(t,(jVe(),Zgt)))),g=Uy(xB(vSe(t,Ovt))),o=Uy(xB(vSe(t,bvt))),i=r.Math.min(1,o/g),w=0,c=0,0!=t.b.c.length&&(w=.4*i*(_=lNe($H(NQ(t.b,0),29)))),l=new x2(t.b,0);l.b<l.d.gc();){for(SL(l.b<l.d.gc()),(a=VO(s=$H(l.d.Xb(l.c=l.b++),29),yyt))&&w>0&&(w-=g),_Qe(s,w),h=0,p=new Gf(s.a);p.a<p.c.c.length;){for(d=0,v=new aW(XN(ufe(f=$H(J0(p),10)).a.Kc(),new u));fIe(v);)b=p0((m=$H(z5(v),17)).c).b,y=p0(m.d).b,s!=m.d.i.c||d5(m)||(VOe(m,w,.4*i*r.Math.abs(b-y)),m.c.j==(bGe(),COt)&&(b=0,y=0)),d=r.Math.max(d,r.Math.abs(y-b));switch(f.k.g){case 0:case 4:case 1:case 3:case 5:UQe(e,f,w,A)}h=r.Math.max(h,d)}l.b<l.d.gc()&&(_=lNe((SL(l.b<l.d.gc()),$H(l.d.Xb(l.c=l.b++),29))),h=r.Math.max(h,_),SL(l.b>0),l.a.Xb(l.c=--l.b)),c=.4*i*h,!a&&l.b<l.d.gc()&&(c+=g),w+=s.c.a+c}e.a.a.$b(),t.f.a=w,jCe(n)}function OGe(e){var t,n,r,i,o,a,s,l,c,d,h,f,p,g,m,v,A;for(c=new Nv,s=new gJ,r=new Gf(e.a.a.b);r.a<r.c.c.length;)if(l=c2(t=$H(J0(r),57)))yke(c.f,l,t);else if(A=c3(t))for(i=new Gf(A.k);i.a<i.c.c.length;)qOe(s,$H(J0(i),17),t);for(n=new Gf(e.a.a.b);n.a<n.c.c.length;)if(l=c2(t=$H(J0(n),57)))for(a=new aW(XN(ufe(l).a.Kc(),new u));fIe(a);)if(!d5(o=$H(z5(a),17))&&(p=o.c,v=o.d,!(bGe(),AOt).Hc(o.c.j)||!AOt.Hc(o.d.j))){if(g=$H(LV(c,o.d.i),57),zRe(iS(rS(oS(nS(new jA,0),100),e.c[t.a.d]),e.c[g.a.d])),p.j==COt&&MW((poe(),p)))for(h=$H(l6(s,o),21).Kc();h.Ob();)if((d=$H(h.Pb(),57)).d.c<t.d.c){if((f=e.c[d.a.d])==(m=e.c[t.a.d]))continue;zRe(iS(rS(oS(nS(new jA,1),100),f),m))}if(v.j==aOt&&OW((poe(),v)))for(h=$H(l6(s,o),21).Kc();h.Ob();)if((d=$H(h.Pb(),57)).d.c>t.d.c){if((f=e.c[t.a.d])==(m=e.c[d.a.d]))continue;zRe(iS(rS(oS(nS(new jA,1),100),f),m))}}}function MGe(e){var t,n,r,i,o,a,s,l;if(LUe(),null==e)return null;if((i=UM(e,YEe(37)))<0)return e;for(l=new uR(e.substr(0,i)),t=N8(IRt,m6e,25,4,15,1),s=0,r=0,a=e.length;i<a;i++)if(d0(i,e.length),37==e.charCodeAt(i)&&e.length>i+2&&Zse((d0(i+1,e.length),e.charCodeAt(i+1)),CIt,TIt)&&Zse((d0(i+2,e.length),e.charCodeAt(i+2)),CIt,TIt))if(n=CU((d0(i+1,e.length),e.charCodeAt(i+1)),(d0(i+2,e.length),e.charCodeAt(i+2))),i+=2,r>0?128==(192&n)?t[s++]=n<<24>>24:r=0:n>=128&&(192==(224&n)?(t[s++]=n<<24>>24,r=2):224==(240&n)?(t[s++]=n<<24>>24,r=3):240==(248&n)&&(t[s++]=n<<24>>24,r=4)),r>0){if(s==r){switch(s){case 2:NV(l,((31&t[0])<<6|63&t[1])&KYe);break;case 3:NV(l,((15&t[0])<<12|(63&t[1])<<6|63&t[2])&KYe)}s=0,r=0}}else{for(o=0;o<s;++o)NV(l,t[o]&KYe);s=0,l.a+=String.fromCharCode(n)}else{for(o=0;o<s;++o)NV(l,t[o]&KYe);s=0,NV(l,(d0(i,e.length),e.charCodeAt(i)))}return l.a}function IGe(e,t,n,r,i){var o,a,s;if(Aee(e,t),a=t[0],o=cY(n.c,0),s=-1,Yle(n))if(r>0){if(a+r>e.length)return!1;s=zOe(e.substr(0,a+r),t)}else s=zOe(e,t);switch(o){case 71:return s=QEe(e,a,Sse(Uw(Ytt,1),sYe,2,6,[cqe,uqe]),t),i.e=s,!0;case 77:return pBe(e,t,i,s,a);case 76:return gBe(e,t,i,s,a);case 69:return nke(e,t,a,i);case 99:return rke(e,t,a,i);case 97:return s=QEe(e,a,Sse(Uw(Ytt,1),sYe,2,6,["AM","PM"]),t),i.b=s,!0;case 121:return mBe(e,t,a,s,n,i);case 100:return!(s<=0||(i.c=s,0));case 83:return!(s<0)&&ype(s,a,t[0],i);case 104:12==s&&(s=0);case 75:case 72:return!(s<0||(i.f=s,i.g=!1,0));case 107:return!(s<0||(i.f=s,i.g=!0,0));case 109:return!(s<0||(i.j=s,0));case 115:return!(s<0||(i.n=s,0));case 90:if(a<e.length&&(d0(a,e.length),90==e.charCodeAt(a)))return++t[0],i.o=0,!0;case 122:case 118:return CEe(e,a,t,i);default:return!1}}function DGe(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x;if(f=$H($H(l6(e.r,t),21),84),t!=(bGe(),aOt)&&t!=COt){for(a=t==sOt?(Rae(),Dit):(Rae(),Lit),w=t==sOt?(U9(),rit):(U9(),tit),o=(i=(n=$H(aY(e.b,t),124)).i).c+Ile(Sse(Uw(DRt,1),Hqe,25,15,[n.n.b,e.C.b,e.k])),A=i.c+i.b-Ile(Sse(Uw(DRt,1),Hqe,25,15,[n.n.c,e.C.c,e.k])),s=Xw(j$(a),e.t),b=t==sOt?Bqe:Lqe,h=f.Kc();h.Ob();)!(u=$H(h.Pb(),111)).c||u.c.d.c.length<=0||(v=u.b.rf(),m=u.e,(g=(p=u.c).i).b=(c=p.n,p.e.a+c.b+c.c),g.a=(l=p.n,p.e.b+l.d+l.a),kX(w,oJe),p.f=w,u7(p,(q7(),qrt)),g.c=m.a-(g.b-v.a)/2,_=r.Math.min(o,m.a),x=r.Math.max(A,m.a+v.a),g.c<_?g.c=_:g.c+g.b>x&&(g.c=x-g.b),GH(s.d,new Nz(g,bhe(s,g))),b=t==sOt?r.Math.max(b,m.b+u.b.rf().b):r.Math.min(b,m.b));for(b+=t==sOt?e.t:-e.t,(y=Spe((s.e=b,s)))>0&&($H(aY(e.b,t),124).a.b=y),d=f.Kc();d.Ob();)!(u=$H(d.Pb(),111)).c||u.c.d.c.length<=0||((g=u.c.i).c-=u.e.a,g.d-=u.e.b)}else iGe(e,t)}function NGe(e){var t,n,r,i,o,a,s,l,c,d;for(t=new Nv,a=new ON(e);a.e!=a.i.gc();){for(o=$H(bve(a),33),n=new LA,VK(xot,o,n),d=new at,r=$H(S4(new LQ(null,new QG(new aW(XN(hNe(o).a.Kc(),new u)))),Ez(d,v7(new U,new H,new re,Sse(Uw(Jnt,1),MYe,132,0,[(Hce(),znt)])))),83),qne(n,$H(r.xc((lR(),!0)),14),new st),i=$H(S4(OY($H(r.xc(!1),15).Lc(),new lt),v7(new U,new H,new re,Sse(Uw(Jnt,1),MYe,132,0,[znt]))),15).Kc();i.Ob();)(c=CSe($H(i.Pb(),79)))&&((s=$H(HO(OX(t.f,c)),21))||(s=kLe(c),yke(t.f,c,s)),Fie(n,s));for(r=$H(S4(new LQ(null,new QG(new aW(XN(fNe(o).a.Kc(),new u)))),Ez(d,v7(new U,new H,new re,Sse(Uw(Jnt,1),MYe,132,0,[znt])))),83),qne(n,$H(r.xc(!0),14),new ct),l=$H(S4(OY($H(r.xc(!1),15).Lc(),new ut),v7(new U,new H,new re,Sse(Uw(Jnt,1),MYe,132,0,[znt]))),15).Kc();l.Ob();)(c=TSe($H(l.Pb(),79)))&&((s=$H(HO(OX(t.f,c)),21))||(s=kLe(c),yke(t.f,c,s)),Fie(n,s))}}function RGe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g;if(oUe(),(l=Vue(e,0)<0)&&(e=y9(e)),0==Vue(e,0))switch(t){case 0:return"0";case 1:return Gqe;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return(f=new Cw).a+=t<0?"0E+":"0E",f.a+=t==PYe?"2147483648":""+-t,f.a}d=N8(TRt,GYe,25,1+(u=18),15,1),n=u,g=e;do{c=g,g=k_e(g,10),d[--n]=fz(nfe(48,tfe(c,rfe(g,10))))&KYe}while(0!=Vue(g,0));if(i=tfe(tfe(tfe(u,n),t),1),0==t)return l&&(d[--n]=45),$ge(d,n,u-n);if(t>0&&Vue(i,-6)>=0){if(Vue(i,0)>=0){for(o=n+fz(i),s=u-1;s>=o;s--)d[s+1]=d[s];return d[++o]=46,l&&(d[--n]=45),$ge(d,n,u-n+1)}for(a=2;sC(a,nfe(y9(i),1));a++)d[--n]=48;return d[--n]=46,d[--n]=48,l&&(d[--n]=45),$ge(d,n,u-n)}return p=n+1,r=u,h=new Tw,l&&(h.a+="-"),r-p>=1?(NV(h,d[n]),h.a+=".",h.a+=$ge(d,n+1,u-n-1)):h.a+=$ge(d,n,u-n),h.a+="E",Vue(i,0)>0&&(h.a+="+"),h.a+=""+mW(i),h.a}function LGe(e,t,n){var r,i,o,a,s,l,c,u,d,h;if(e.e.a.$b(),e.f.a.$b(),e.c.c=N8(Met,jKe,1,0,5,1),e.i.c=N8(Met,jKe,1,0,5,1),e.g.a.$b(),t)for(a=new Gf(t.a);a.a<a.c.c.length;)for(u=RCe(o=$H(J0(a),10),(bGe(),aOt)).Kc();u.Ob();)for(c=$H(u.Pb(),11),_G(e.e,c),i=new Gf(c.g);i.a<i.c.c.length;)d5(r=$H(J0(i),17))||(GH(e.c,r),gve(e,r),((s=r.c.i.k)==(oCe(),Cst)||s==Tst||s==xst||s==_st)&&GH(e.j,r),(d=(h=r.d).i.c)==n?_G(e.f,h):d==t?_G(e.e,h):A9(e.c,r));if(n)for(a=new Gf(n.a);a.a<a.c.c.length;){for(l=new Gf((o=$H(J0(a),10)).j);l.a<l.c.c.length;)for(i=new Gf($H(J0(l),11).g);i.a<i.c.c.length;)d5(r=$H(J0(i),17))&&_G(e.g,r);for(u=RCe(o,(bGe(),COt)).Kc();u.Ob();)for(c=$H(u.Pb(),11),_G(e.f,c),i=new Gf(c.g);i.a<i.c.c.length;)d5(r=$H(J0(i),17))||(GH(e.c,r),gve(e,r),((s=r.c.i.k)==(oCe(),Cst)||s==Tst||s==xst||s==_st)&&GH(e.j,r),(d=(h=r.d).i.c)==n?_G(e.f,h):d==t?_G(e.e,h):A9(e.c,r))}}function BGe(e,t,n,i,o){var a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x;if(v=new Nk(e.g,e.f),(m=WTe(e)).a=r.Math.max(m.a,t),m.b=r.Math.max(m.b,n),x=m.a/v.a,d=m.b/v.b,w=m.a-v.a,c=m.b-v.b,i)for(s=qJ(e)?$H(XIe(qJ(e),(sKe(),dCt)),103):$H(XIe(e,(sKe(),dCt)),103),l=UO(XIe(e,(sKe(),oTt)))===UO((Kxe(),Wkt)),b=new ON((!e.c&&(e.c=new eG(zMt,e,9,9)),e.c));b.e!=b.i.gc();)switch(A=$H(bve(b),118),(y=$H(XIe(A,hTt),61))==(bGe(),SOt)&&(y=kje(A,s),Yve(A,hTt,y)),y.g){case 1:l||Sne(A,A.i*x);break;case 2:Sne(A,A.i+w),l||Cne(A,A.j*d);break;case 3:l||Sne(A,A.i*x),Cne(A,A.j+c);break;case 4:l||Cne(A,A.j*d)}if(xI(e,m.a,m.b),o)for(f=new ON((!e.n&&(e.n=new eG(UMt,e,1,7)),e.n));f.e!=f.i.gc();)p=(h=$H(bve(f),137)).i+h.g/2,g=h.j+h.f/2,(_=p/v.a)+(u=g/v.b)>=1&&(_-u>0&&g>=0?(Sne(h,h.i+w),Cne(h,h.j+c*u)):_-u<0&&p>=0&&(Sne(h,h.i+w*_),Cne(h,h.j+c)));return Yve(e,(sKe(),BCt),(vge(),new YF(a=$H(V_(YOt),9),$H(EP(a,a.length),9),0))),new Nk(x,d)}function PGe(e){var t,n,i,o,a,s,l,c,u,d,h;if(d=qJ(SEe($H(Gte((!e.b&&(e.b=new lF(LMt,e,4,7)),e.b),0),82)))==qJ(SEe($H(Gte((!e.c&&(e.c=new lF(LMt,e,5,8)),e.c),0),82))),s=new U_,(t=$H(XIe(e,(Wce(),lkt)),74))&&t.b>=2){if(0==(!e.a&&(e.a=new eG(PMt,e,6,6)),e.a).i)Z_(),n=new al,c7((!e.a&&(e.a=new eG(PMt,e,6,6)),e.a),n);else if((!e.a&&(e.a=new eG(PMt,e,6,6)),e.a).i>1)for(h=new rL((!e.a&&(e.a=new eG(PMt,e,6,6)),e.a));h.e!=h.i.gc();)K_e(h);Vje(t,$H(Gte((!e.a&&(e.a=new eG(PMt,e,6,6)),e.a),0),202))}if(d)for(i=new ON((!e.a&&(e.a=new eG(PMt,e,6,6)),e.a));i.e!=i.i.gc();)for(c=new ON((!(n=$H(bve(i),202)).a&&(n.a=new MN(DMt,n,5)),n.a));c.e!=c.i.gc();)l=$H(bve(c),469),s.a=r.Math.max(s.a,l.a),s.b=r.Math.max(s.b,l.b);for(a=new ON((!e.n&&(e.n=new eG(UMt,e,1,7)),e.n));a.e!=a.i.gc();)o=$H(bve(a),137),(u=$H(XIe(o,pkt),8))&&EI(o,u.a,u.b),d&&(s.a=r.Math.max(s.a,o.i+o.g),s.b=r.Math.max(s.b,o.j+o.f));return s}function FGe(e,t,n){var i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x;for(A=t.c.length,o=new HFe(e.a,n,null,null),x=N8(DRt,Hqe,25,A,15,1),p=N8(DRt,Hqe,25,A,15,1),f=N8(DRt,Hqe,25,A,15,1),g=0,l=0;l<A;l++)p[l]=RKe,f[l]=PYe;for(c=0;c<A;c++)for(u0(c,t.c.length),i=$H(t.c[c],180),x[c]=mDe(i),x[g]>x[c]&&(g=c),d=new Gf(e.a.b);d.a<d.c.c.length;)for(v=new Gf($H(J0(d),29).a);v.a<v.c.c.length;)m=$H(J0(v),10),w=Uy(i.p[m.p])+Uy(i.d[m.p]),p[c]=r.Math.min(p[c],w),f[c]=r.Math.max(f[c],w+m.o.b);for(_=N8(DRt,Hqe,25,A,15,1),u=0;u<A;u++)(u0(u,t.c.length),$H(t.c[u],180)).o==(aZ(),nyt)?_[u]=p[g]-p[u]:_[u]=f[g]-f[u];for(a=N8(DRt,Hqe,25,A,15,1),h=new Gf(e.a.b);h.a<h.c.c.length;)for(y=new Gf($H(J0(h),29).a);y.a<y.c.c.length;){for(b=$H(J0(y),10),s=0;s<A;s++)a[s]=Uy((u0(s,t.c.length),$H(t.c[s],180)).p[b.p])+Uy((u0(s,t.c.length),$H(t.c[s],180)).d[b.p])+_[s];a.sort(tne(E.prototype.te,E,[])),o.p[b.p]=(a[1]+a[2])/2,o.d[b.p]=0}return o}function $Ge(e,t,n){var r,i,o,a,s;switch(r=t.i,o=e.i.o,i=e.i.d,s=e.n,a=Ole(Sse(Uw(SSt,1),sYe,8,0,[s,e.a])),e.j.g){case 1:GB(t,(U9(),tit)),r.d=-i.d-n-r.a,$H($H(NQ(t.d,0),181).We((lKe(),oht)),285)==(Wye(),ykt)?(u7(t,(q7(),qrt)),r.c=a.a-Uy(xB(vSe(e,dht)))-n-r.b):(u7(t,(q7(),Yrt)),r.c=a.a+Uy(xB(vSe(e,dht)))+n);break;case 2:u7(t,(q7(),Yrt)),r.c=o.a+i.c+n,$H($H(NQ(t.d,0),181).We((lKe(),oht)),285)==(Wye(),ykt)?(GB(t,(U9(),tit)),r.d=a.b-Uy(xB(vSe(e,dht)))-n-r.a):(GB(t,(U9(),rit)),r.d=a.b+Uy(xB(vSe(e,dht)))+n);break;case 3:GB(t,(U9(),rit)),r.d=o.b+i.a+n,$H($H(NQ(t.d,0),181).We((lKe(),oht)),285)==(Wye(),ykt)?(u7(t,(q7(),qrt)),r.c=a.a-Uy(xB(vSe(e,dht)))-n-r.b):(u7(t,(q7(),Yrt)),r.c=a.a+Uy(xB(vSe(e,dht)))+n);break;case 4:u7(t,(q7(),qrt)),r.c=-i.b-n-r.b,$H($H(NQ(t.d,0),181).We((lKe(),oht)),285)==(Wye(),ykt)?(GB(t,(U9(),tit)),r.d=a.b-Uy(xB(vSe(e,dht)))-n-r.a):(GB(t,(U9(),rit)),r.d=a.b+Uy(xB(vSe(e,dht)))+n)}}function jGe(e,t,n,i,o,a,s){var l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C,T,k,O,M;for(p=0,C=0,c=new Gf(e);c.a<c.c.c.length;)aWe(l=$H(J0(c),33)),p=r.Math.max(p,l.g),C+=l.g*l.f;for(S=Xye(e,C/e.c.length),C+=e.c.length*S,p=r.Math.max(p,r.Math.sqrt(C*s))+n.b,O=n.b,M=n.d,f=0,d=n.b+n.c,RU(E=new YE,the(0)),_=new YE,u=new x2(e,0);u.b<u.d.gc();)SL(u.b<u.d.gc()),k=(l=$H(u.d.Xb(u.c=u.b++),33)).g,h=l.f,O+k>p&&(a&&(cM(_,f),cM(E,the(u.b-1))),O=n.b,M+=f+t,f=0,d=r.Math.max(d,n.b+n.c+k)),Sne(l,O),Cne(l,M),d=r.Math.max(d,O+k+n.c),f=r.Math.max(f,h),O+=k+t;if(d=r.Math.max(d,i),(T=M+f+n.a)<o&&(f+=o-T,T=o),a)for(O=n.b,u=new x2(e,0),cM(E,the(e.c.length)),v=$H(d3(x=sve(E,0)),19).a,cM(_,f),w=sve(_,0),y=0;u.b<u.d.gc();)u.b==v&&(O=n.b,y=Uy(xB(d3(w))),v=$H(d3(x),19).a),SL(u.b<u.d.gc()),A=(l=$H(u.d.Xb(u.c=u.b++),33)).f,xne(l,y),g=y,u.b==v&&(m=d-O-n.c,b=l.g,Ene(l,m),uke(l,new Nk(m,g),new Nk(b,A))),O+=l.g+t;return new Nk(d,T)}function HGe(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C;for(kEe(t,"Compound graph postprocessor",1),n=Hy(_B(vSe(e,(jVe(),Rvt)))),l=$H(vSe(e,(lKe(),jdt)),224),d=new LA,A=l.ec().Kc();A.Ob();){for(v=$H(A.Pb(),17),s=new ZF(l.cc(v)),Eq(),vD(s,new Pp(e)),_=roe((u0(0,s.c.length),$H(s.c[0],243))),E=ioe($H(NQ(s,s.c.length-1),243)),y=_.i,b=hae(E.i,y)?y.e:mK(y),h=Ove(v,s),Aq(v.a),f=null,a=new Gf(s);a.a<a.c.c.length;)o=$H(J0(a),243),kTe(m=new U_,o.a,b),p=o.b,Gce(i=new bb,0,p.a),Xte(i,m),w=new hI(p0(p.c)),x=new hI(p0(p.d)),zP(w,m),zP(x,m),f&&(0==i.b?g=x:(SL(0!=i.b),g=$H(i.a.a.c,8)),S=r.Math.abs(f.a-g.a)>uZe,C=r.Math.abs(f.b-g.b)>uZe,(!n&&S&&C||n&&(S||C))&&RU(v.a,w)),Fie(v.a,i),0==i.b?f=w:(SL(0!=i.b),f=$H(i.c.b.c,8)),Yae(p,h,m),ioe(o)==E&&(mK(E.i)!=o.a&&kTe(m=new U_,mK(E.i),b),lle(v,Lht,m)),xCe(p,v,b),d.a.zc(p,d);EZ(v,_),xZ(v,E)}for(u=d.a.ec().Kc();u.Ob();)EZ(c=$H(u.Pb(),17),null),xZ(c,null);jCe(t)}function UGe(e){var t,n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w;if(1==e.gc())return $H(e.Xb(0),231);if(e.gc()<=0)return new A6;for(o=e.Kc();o.Ob();){for(n=$H(o.Pb(),231),g=0,d=RKe,h=RKe,c=PYe,u=PYe,p=new Gf(n.e);p.a<p.c.c.length;)f=$H(J0(p),144),g+=$H(vSe(f,(cPe(),Xot)),19).a,d=r.Math.min(d,f.d.a-f.e.a/2),h=r.Math.min(h,f.d.b-f.e.b/2),c=r.Math.max(c,f.d.a+f.e.a/2),u=r.Math.max(u,f.d.b+f.e.b/2);lle(n,(cPe(),Xot),the(g)),lle(n,(xie(),aat),new Nk(d,h)),lle(n,oat,new Nk(c,u))}for(Eq(),e.ad(new ft),Hae(m=new A6,$H(e.Xb(0),94)),l=0,b=0,a=e.Kc();a.Ob();)n=$H(a.Pb(),231),v=WP($D($H(vSe(n,(xie(),oat)),8)),$H(vSe(n,aat),8)),l=r.Math.max(l,v.a),b+=v.a*v.b;for(l=r.Math.max(l,r.Math.sqrt(b)*Uy(xB(vSe(m,(cPe(),Fot))))),y=0,w=0,s=0,t=A=Uy(xB(vSe(m,rat))),i=e.Kc();i.Ob();)n=$H(i.Pb(),231),y+(v=WP($D($H(vSe(n,(xie(),oat)),8)),$H(vSe(n,aat),8))).a>l&&(y=0,w+=s+A,s=0),VFe(m,n,y,w),t=r.Math.max(t,y+v.a),s=r.Math.max(s,v.b),y+=v.a+A;return m}function QGe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p;switch(u=new bb,e.a.g){case 3:h=$H(vSe(t.e,(lKe(),Dht)),15),f=$H(vSe(t.j,Dht),15),p=$H(vSe(t.f,Dht),15),n=$H(vSe(t.e,Mht),15),r=$H(vSe(t.j,Mht),15),i=$H(vSe(t.f,Mht),15),pse(a=new Dv,h),f.Jc(new wo),pse(a,rN(f,152)?a6($H(f,152)):rN(f,131)?$H(f,131).a:rN(f,54)?new cy(f):new CE(f)),pse(a,p),pse(o=new Dv,n),pse(o,rN(r,152)?a6($H(r,152)):rN(r,131)?$H(r,131).a:rN(r,54)?new cy(r):new CE(r)),pse(o,i),lle(t.f,Dht,a),lle(t.f,Mht,o),lle(t.f,Nht,t.f),lle(t.e,Dht,null),lle(t.e,Mht,null),lle(t.j,Dht,null),lle(t.j,Mht,null);break;case 1:Fie(u,t.e.a),RU(u,t.i.n),Fie(u,eae(t.j.a)),RU(u,t.a.n),Fie(u,t.f.a);break;default:Fie(u,t.e.a),Fie(u,eae(t.j.a)),Fie(u,t.f.a)}Aq(t.f.a),Fie(t.f.a,u),EZ(t.f,t.e.c),s=$H(vSe(t.e,(jVe(),mmt)),74),c=$H(vSe(t.j,mmt),74),l=$H(vSe(t.f,mmt),74),(s||c||l)&&(SG(d=new bb,l),SG(d,c),SG(d,s),lle(t.f,mmt,d)),EZ(t.j,null),xZ(t.j,null),EZ(t.e,null),xZ(t.e,null),SZ(t.a,null),SZ(t.i,null),t.g&&QGe(e,t.g)}function zGe(e){var t,n,r,i,o,a,s,l,c,u,d,h,f,p,g,m;if(Sje(),null==e)return null;if((p=dhe(o=V9(e)))%4!=0)return null;if(0==(g=p/4|0))return N8(IRt,m6e,25,0,15,1);for(d=null,t=0,n=0,r=0,i=0,a=0,s=0,l=0,c=0,f=0,h=0,u=0,d=N8(IRt,m6e,25,3*g,15,1);f<g-1;f++){if(!(Vx(a=o[u++])&&Vx(s=o[u++])&&Vx(l=o[u++])&&Vx(c=o[u++])))return null;t=WNt[a],n=WNt[s],r=WNt[l],i=WNt[c],d[h++]=(t<<2|n>>4)<<24>>24,d[h++]=((15&n)<<4|r>>2&15)<<24>>24,d[h++]=(r<<6|i)<<24>>24}return Vx(a=o[u++])&&Vx(s=o[u++])?(t=WNt[a],n=WNt[s],l=o[u++],c=o[u++],-1==WNt[l]||-1==WNt[c]?61==l&&61==c?15&n?null:(iUe(d,0,m=N8(IRt,m6e,25,3*f+1,15,1),0,3*f),m[h]=(t<<2|n>>4)<<24>>24,m):61!=l&&61==c?3&(r=WNt[l])?null:(iUe(d,0,m=N8(IRt,m6e,25,3*f+2,15,1),0,3*f),m[h++]=(t<<2|n>>4)<<24>>24,m[h]=((15&n)<<4|r>>2&15)<<24>>24,m):null:(r=WNt[l],i=WNt[c],d[h++]=(t<<2|n>>4)<<24>>24,d[h++]=((15&n)<<4|r>>2&15)<<24>>24,d[h++]=(r<<6|i)<<24>>24,d)):null}function WGe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b;for(kEe(t,k0e,1),h=$H(vSe(e,(jVe(),Xgt)),218),r=new Gf(e.b);r.a<r.c.c.length;)for(a=0,s=(o=J1($H(J0(r),29).a)).length;a<s;++a)if((i=o[a]).k==(oCe(),Tst)){if(h==(xfe(),qTt))for(c=new Gf(i.j);c.a<c.c.c.length;)0==(l=$H(J0(c),11)).e.c.length||Ome(l),0==l.g.c.length||Mme(l);else if(rN(vSe(i,(lKe(),fht)),17))p=$H(vSe(i,fht),17),g=$H(RCe(i,(bGe(),COt)).Kc().Pb(),11),m=$H(RCe(i,aOt).Kc().Pb(),11),v=$H(vSe(g,fht),11),EZ(p,A=$H(vSe(m,fht),11)),xZ(p,v),(b=new hI(m.i.n)).a=Ole(Sse(Uw(SSt,1),sYe,8,0,[A.i.n,A.n,A.a])).a,RU(p.a,b),(b=new hI(g.i.n)).a=Ole(Sse(Uw(SSt,1),sYe,8,0,[v.i.n,v.n,v.a])).a,RU(p.a,b);else{if(i.j.c.length>=2){for(f=!0,n=$H(J0(u=new Gf(i.j)),11),d=null;u.a<u.c.c.length;)if(d=n,n=$H(J0(u),11),!Dde(vSe(d,fht),vSe(n,fht))){f=!1;break}}else f=!1;for(c=new Gf(i.j);c.a<c.c.c.length;)0==(l=$H(J0(c),11)).e.c.length||oLe(l,f),0==l.g.c.length||aLe(l,f)}SZ(i,null)}jCe(t)}function GGe(e,t,n){var i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S;return y=e.c[(u0(0,t.c.length),$H(t.c[0],17)).p],E=e.c[(u0(1,t.c.length),$H(t.c[1],17)).p],!(y.a.e.e-y.a.a-(y.b.e.e-y.b.a)==0&&E.a.e.e-E.a.a-(E.b.e.e-E.b.a)==0||!rN(A=y.b.e.f,10)||(v=$H(A,10),_=e.i[v.p],x=v.c?w9(v.c.a,v,0):-1,a=Lqe,x>0&&(o=$H(NQ(v.c.a,x-1),10),s=e.i[o.p],S=r.Math.ceil(BD(e.n,o,v)),a=_.a.e-v.d.d-(s.a.e+o.o.b+o.d.a)-S),u=Lqe,x<v.c.a.c.length-1&&(c=$H(NQ(v.c.a,x+1),10),d=e.i[c.p],S=r.Math.ceil(BD(e.n,c,v)),u=d.a.e-c.d.d-(_.a.e+v.o.b+v.d.a)-S),!(n&&(lD(),nre(O3e),r.Math.abs(a-u)<=O3e||a==u||isNaN(a)&&isNaN(u)))&&(i=iV(y.a),l=-iV(y.b),h=-iV(E.a),b=iV(E.b),m=y.a.e.e-y.a.a-(y.b.e.e-y.b.a)>0&&E.a.e.e-E.a.a-(E.b.e.e-E.b.a)<0,g=y.a.e.e-y.a.a-(y.b.e.e-y.b.a)<0&&E.a.e.e-E.a.a-(E.b.e.e-E.b.a)>0,p=y.a.e.e+y.b.a<E.b.e.e+E.a.a,f=y.a.e.e+y.b.a>E.b.e.e+E.a.a,w=0,!m&&!g&&(f?a+h>0?w=h:u-i>0&&(w=i):p&&(a+l>0?w=l:u-b>0&&(w=b))),_.a.e+=w,_.b&&(_.d.e+=w),1)))}function VGe(e,t,n){var i,o,a,s,l,c,u,d,h,f;if(i=new zY(t.qf().a,t.qf().b,t.rf().a,t.rf().b),o=new dI,e.c)for(s=new Gf(t.wf());s.a<s.c.c.length;)a=$H(J0(s),181),o.c=a.qf().a+t.qf().a,o.d=a.qf().b+t.qf().b,o.b=a.rf().a,o.a=a.rf().b,CTe(i,o);for(u=new Gf(t.Cf());u.a<u.c.c.length;){if(d=(c=$H(J0(u),838)).qf().a+t.qf().a,h=c.qf().b+t.qf().b,e.e&&(o.c=d,o.d=h,o.b=c.rf().a,o.a=c.rf().b,CTe(i,o)),e.d)for(s=new Gf(c.wf());s.a<s.c.c.length;)a=$H(J0(s),181),o.c=a.qf().a+d,o.d=a.qf().b+h,o.b=a.rf().a,o.a=a.rf().b,CTe(i,o);if(e.b){if(f=new Nk(-n,-n),$H(t.We((sKe(),cTt)),174).Hc((uOe(),nOt)))for(s=new Gf(c.wf());s.a<s.c.c.length;)a=$H(J0(s),181),f.a+=a.rf().a+n,f.b+=a.rf().b+n;f.a=r.Math.max(f.a,0),f.b=r.Math.max(f.b,0),W$e(i,c.Bf(),c.zf(),t,c,f,n)}}e.b&&W$e(i,t.Bf(),t.zf(),t,null,null,n),(l=new O$(t.Af())).d=r.Math.max(0,t.qf().b-i.d),l.a=r.Math.max(0,i.d+i.a-(t.qf().b+t.rf().b)),l.b=r.Math.max(0,t.qf().a-i.c),l.c=r.Math.max(0,i.c+i.b-(t.qf().a+t.rf().a)),t.Ef(l)}function KGe(){var e=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F"];return e[34]='\\"',e[92]="\\\\",e[173]="\\u00ad",e[1536]="\\u0600",e[1537]="\\u0601",e[1538]="\\u0602",e[1539]="\\u0603",e[1757]="\\u06dd",e[1807]="\\u070f",e[6068]="\\u17b4",e[6069]="\\u17b5",e[8203]="\\u200b",e[8204]="\\u200c",e[8205]="\\u200d",e[8206]="\\u200e",e[8207]="\\u200f",e[8232]="\\u2028",e[8233]="\\u2029",e[8234]="\\u202a",e[8235]="\\u202b",e[8236]="\\u202c",e[8237]="\\u202d",e[8238]="\\u202e",e[8288]="\\u2060",e[8289]="\\u2061",e[8290]="\\u2062",e[8291]="\\u2063",e[8292]="\\u2064",e[8298]="\\u206a",e[8299]="\\u206b",e[8300]="\\u206c",e[8301]="\\u206d",e[8302]="\\u206e",e[8303]="\\u206f",e[65279]="\\ufeff",e[65529]="\\ufff9",e[65530]="\\ufffa",e[65531]="\\ufffb",e}function YGe(e,t,n){var r,i,o,a,s,l,c,u,d,h;for(l=new Dv,d=t.length,a=Tle(n),c=0;c<d;++c){switch(u=AR(t,YEe(61),c),o=(i=ose(r=che(a,t.substr(c,u-c)))).Aj().Nh(),cY(t,++u)){case 39:s=uL(t,39,++u),GH(l,new CO(r,YY(t.substr(u,s-u),o,i))),c=s+1;break;case 34:s=uL(t,34,++u),GH(l,new CO(r,YY(t.substr(u,s-u),o,i))),c=s+1;break;case 91:GH(l,new CO(r,h=new Dv));e:for(;;){switch(cY(t,++u)){case 39:s=uL(t,39,++u),GH(h,YY(t.substr(u,s-u),o,i)),u=s+1;break;case 34:s=uL(t,34,++u),GH(h,YY(t.substr(u,s-u),o,i)),u=s+1;break;case 110:if(++u,t.indexOf("ull",u)!=u)throw jv(new fy(i6e));h.c[h.c.length]=null,u+=3}if(!(u<d))break;switch(d0(u,t.length),t.charCodeAt(u)){case 44:break;case 93:break e;default:throw jv(new fy("Expecting , or ]"))}}c=u+1;break;case 110:if(++u,t.indexOf("ull",u)!=u)throw jv(new fy(i6e));GH(l,new CO(r,null)),c=u+3}if(!(c<d))break;if(d0(c,t.length),44!=t.charCodeAt(c))throw jv(new fy("Expecting ,"))}return tBe(e,l,n)}function qGe(e,t){var n,r,i,o,a,s,l,c,u,d,h;for(c=$H($H(l6(e.r,t),21),84),a=qEe(e,t),n=e.u.Hc((uOe(),Jkt)),l=c.Kc();l.Ob();)if((s=$H(l.Pb(),111)).c&&!(s.c.d.c.length<=0)){switch(h=s.b.rf(),(d=(u=s.c).i).b=(o=u.n,u.e.a+o.b+o.c),d.a=(i=u.n,u.e.b+i.d+i.a),t.g){case 1:s.a?(d.c=(h.a-d.b)/2,u7(u,(q7(),Krt))):a||n?(d.c=-d.b-e.s,u7(u,(q7(),qrt))):(d.c=h.a+e.s,u7(u,(q7(),Yrt))),d.d=-d.a-e.t,GB(u,(U9(),tit));break;case 3:s.a?(d.c=(h.a-d.b)/2,u7(u,(q7(),Krt))):a||n?(d.c=-d.b-e.s,u7(u,(q7(),qrt))):(d.c=h.a+e.s,u7(u,(q7(),Yrt))),d.d=h.b+e.t,GB(u,(U9(),rit));break;case 2:s.a?(r=e.v?d.a:$H(NQ(u.d,0),181).rf().b,d.d=(h.b-r)/2,GB(u,(U9(),nit))):a||n?(d.d=-d.a-e.t,GB(u,(U9(),tit))):(d.d=h.b+e.t,GB(u,(U9(),rit))),d.c=h.a+e.s,u7(u,(q7(),Yrt));break;case 4:s.a?(r=e.v?d.a:$H(NQ(u.d,0),181).rf().b,d.d=(h.b-r)/2,GB(u,(U9(),nit))):a||n?(d.d=-d.a-e.t,GB(u,(U9(),tit))):(d.d=h.b+e.t,GB(u,(U9(),rit))),d.c=-d.b-e.s,u7(u,(q7(),qrt))}a=!1}}function XGe(e,t){var n,r,i,o,a,s,l,c,u,d,h;if(hKe(),0==DE(eRt)){for(d=N8(CRt,sYe,117,nRt.length,0,1),a=0;a<d.length;a++)d[a]=new x1(4);for(r=new Sw,o=0;o<ZNt.length;o++){if(u=new x1(4),o<84?(d0(s=2*o,vet.length),h=vet.charCodeAt(s),d0(s+1,vet.length),YLe(u,h,vet.charCodeAt(s+1))):YLe(u,rRt[s=2*(o-84)],rRt[s+1]),vF(l=ZNt[o],"Specials")&&YLe(u,65520,65533),vF(l,get)&&(YLe(u,983040,1048573),YLe(u,1048576,1114109)),vZ(eRt,l,u),vZ(tRt,l,Mje(u)),0<(c=r.a.length)?r.a=r.a.substr(0,0):0>c&&(r.a+=nN(N8(TRt,GYe,25,-c,15,1))),r.a+="Is",UM(l,YEe(32))>=0)for(i=0;i<l.length;i++)d0(i,l.length),32!=l.charCodeAt(i)&&DV(r,(d0(i,l.length),l.charCodeAt(i)));else r.a+=""+l;_ge(r.a,l,!0)}_ge(met,"Cn",!1),_ge(Aet,"Cn",!0),YLe(n=new x1(4),0,oet),vZ(eRt,"ALL",n),vZ(tRt,"ALL",Mje(n)),!xRt&&(xRt=new Nv),vZ(xRt,met,met),!xRt&&(xRt=new Nv),vZ(xRt,Aet,Aet),!xRt&&(xRt=new Nv),vZ(xRt,"ALL","ALL")}return $H(EJ(t?eRt:tRt,e),136)}function JGe(e,t,n,r){var i,o,a,s,l,c,u,d,h,f,p,g,m,v;if(h=!1,d=!1,mI($H(vSe(r,(jVe(),evt)),98))){a=!1,s=!1;e:for(p=new Gf(r.j);p.a<p.c.c.length;)for(f=$H(J0(p),11),g=DG(Gne(Sse(Uw(Ret,1),jKe,20,0,[new jp(f),new Up(f)])));fIe(g);)if(!Hy(_B(vSe($H(z5(g),11).i,_gt)))){if(f.j==(bGe(),sOt)){a=!0;break e}if(f.j==EOt){s=!0;break e}}h=s&&!a,d=a&&!s}if(h||d||0==r.b.c.length)v=!d;else{for(u=0,c=new Gf(r.b);c.a<c.c.c.length;)u+=(l=$H(J0(c),70)).n.b+l.o.b/2;v=(u/=r.b.c.length)>=r.o.b/2}v?(m=$H(vSe(r,(lKe(),Bht)),15))?h?o=m:(i=$H(vSe(r,Rdt),15))?o=m.gc()<=i.gc()?m:i:(o=new Dv,lle(r,Rdt,o)):(o=new Dv,lle(r,Bht,o)):(i=$H(vSe(r,(lKe(),Rdt)),15))?d?o=i:(m=$H(vSe(r,Bht),15))?o=i.gc()<=m.gc()?i:m:(o=new Dv,lle(r,Bht,o)):(o=new Dv,lle(r,Rdt,o)),o.Fc(e),lle(e,(lKe(),Bdt),n),t.d==n?(xZ(t,null),n.e.c.length+n.g.c.length==0&&CZ(n,null),pce(n)):(EZ(t,null),n.e.c.length+n.g.c.length==0&&CZ(n,null)),Aq(t.a)}function ZGe(e,t){var n,r,i,o,a,s,l,c,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C,T,k,O;for(A=new x2(e.b,0),g=0,c=$H((d=t.Kc()).Pb(),19).a,w=0,n=new LA,x=new cI;A.b<A.d.gc();){for(SL(A.b<A.d.gc()),y=new Gf($H(A.d.Xb(A.c=A.b++),29).a);y.a<y.c.c.length;){for(p=new aW(XN(ufe(b=$H(J0(y),10)).a.Kc(),new u));fIe(p);)h=$H(z5(p),17),x.a.zc(h,x);for(f=new aW(XN(cfe(b).a.Kc(),new u));fIe(f);)h=$H(z5(f),17),x.a.Bc(h)}if(g+1==c){for(AP(A,i=new jV(e)),AP(A,o=new jV(e)),S=x.a.ec().Kc();S.Ob();)E=$H(S.Pb(),17),n.a._b(E)||(++w,n.a.zc(E,n)),lle(a=new MAe(e),(jVe(),evt),(Kxe(),Vkt)),SZ(a,i),Fh(a,(oCe(),_st)),CZ(m=new CCe,a),Hke(m,(bGe(),COt)),CZ(C=new CCe,a),Hke(C,aOt),lle(r=new MAe(e),evt,Vkt),SZ(r,o),Fh(r,_st),CZ(v=new CCe,r),Hke(v,COt),CZ(T=new CCe,r),Hke(T,aOt),EZ(_=new hX,E.c),xZ(_,m),EZ(O=new hX,C),xZ(O,v),EZ(E,T),s=new m3(a,r,_,O,E),lle(a,(lKe(),Ldt),s),lle(r,Ldt,s),(k=_.c.i).k==_st&&((l=$H(vSe(k,Ldt),305)).d=s,s.g=l);if(!d.Ob())break;c=$H(d.Pb(),19).a}++g}return the(w)}function eVe(e,t,n){var r,i,o,a,s,l,c,u,d,h,f,p,g;for(d=0,i=new ON((!t.a&&(t.a=new eG(QMt,t,10,11)),t.a));i.e!=i.i.gc();)Hy(_B(XIe(r=$H(bve(i),33),(jVe(),Umt))))||(UO(XIe(t,Igt))===UO((vle(),DAt))&&UO(XIe(t,Ugt))!==UO((VAe(),wut))&&UO(XIe(t,Ugt))!==UO((VAe(),but))&&!Hy(_B(XIe(t,Ngt)))&&UO(XIe(t,Cgt))===UO(($de(),hst))||Hy(_B(XIe(r,Mgt)))||(Yve(r,(lKe(),hht),the(d)),++d),hWe(e,r,n));for(d=0,c=new ON((!t.b&&(t.b=new eG(BMt,t,12,3)),t.b));c.e!=c.i.gc();)s=$H(bve(c),79),(UO(XIe(t,(jVe(),Igt)))!==UO((vle(),DAt))||UO(XIe(t,Ugt))===UO((VAe(),wut))||UO(XIe(t,Ugt))===UO((VAe(),but))||Hy(_B(XIe(t,Ngt)))||UO(XIe(t,Cgt))!==UO(($de(),hst)))&&(Yve(s,(lKe(),hht),the(d)),++d),p=SSe(s),g=kSe(s),u=Hy(_B(XIe(p,hmt))),f=!Hy(_B(XIe(s,Umt))),h=u&&KOe(s)&&Hy(_B(XIe(s,fmt))),o=qJ(p)==t&&qJ(p)==qJ(g),a=(qJ(p)==t&&g==t)^(qJ(g)==t&&p==t),f&&!h&&(a||o)&&oKe(e,s,t,n);if(qJ(t))for(l=new ON(tq(qJ(t)));l.e!=l.i.gc();)(p=SSe(s=$H(bve(l),79)))==t&&KOe(s)&&(h=Hy(_B(XIe(p,(jVe(),hmt))))&&Hy(_B(XIe(s,fmt))))&&oKe(e,s,t,n)}function tVe(e,t,n){var i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C,T,k,O,M,I;for(kEe(n,"MinWidth layering",1),p=t.b,E=t.a,I=$H(vSe(t,(jVe(),wmt)),19).a,l=$H(vSe(t,_mt),19).a,e.b=Uy(xB(vSe(t,Avt))),e.d=Lqe,w=new Gf(E);w.a<w.c.c.length;)(b=$H(J0(w),10)).k==(oCe(),Cst)&&(T=b.o.b,e.d=r.Math.min(e.d,T));for(e.d=r.Math.max(1,e.d),S=E.c.length,e.c=N8(kRt,lqe,25,S,15,1),e.f=N8(kRt,lqe,25,S,15,1),e.e=N8(DRt,Hqe,25,S,15,1),u=0,e.a=0,_=new Gf(E);_.a<_.c.c.length;)(b=$H(J0(_),10)).p=u++,e.c[b.p]=hue(cfe(b)),e.f[b.p]=hue(ufe(b)),e.e[b.p]=b.o.b/e.d,e.a+=e.e[b.p];for(e.b/=e.d,e.a/=S,x=yMe(E),vD(E,KK(new Bg(e))),m=Lqe,g=RKe,s=null,M=I,O=I,a=l,o=l,I<0&&(M=$H(_bt.a.zd(),19).a,O=$H(_bt.b.zd(),19).a),l<0&&(a=$H(wbt.a.zd(),19).a,o=$H(wbt.b.zd(),19).a),k=M;k<=O;k++)for(i=a;i<=o;i++)A=Uy(xB((C=IHe(e,k,i,E,x)).a)),v=(f=$H(C.b,15)).gc(),(A<m||A==m&&v<g)&&(m=A,g=v,s=f);for(h=s.Kc();h.Ob();){for(d=$H(h.Pb(),15),c=new jV(t),y=d.Kc();y.Ob();)SZ(b=$H(y.Pb(),10),c);p.c[p.c.length]=c}qTe(p),E.c=N8(Met,jKe,1,0,5,1),jCe(n)}function nVe(e,t){var n,i,o,a,s,l,c,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S;for(e.b=t,e.a=$H(vSe(t,(jVe(),lmt)),19).a,e.c=$H(vSe(t,umt),19).a,0==e.c&&(e.c=RKe),m=new x2(t.b,0);m.b<m.d.gc();){for(SL(m.b<m.d.gc()),g=$H(m.d.Xb(m.c=m.b++),29),l=new Dv,h=-1,y=-1,b=new Gf(g.a);b.a<b.c.c.length;)A=$H(J0(b),10),F3((H$(),new aW(XN(lfe(A).a.Kc(),new u))))>=e.a&&(i=AHe(e,A),h=r.Math.max(h,i.b),y=r.Math.max(y,i.d),GH(l,new nO(A,i)));for(x=new Dv,d=0;d<h;++d)bz(x,0,(SL(m.b>0),m.a.Xb(m.c=--m.b),AP(m,E=new jV(e.b)),SL(m.b<m.d.gc()),m.d.Xb(m.c=m.b++),E));for(s=new Gf(l);s.a<s.c.c.length;)if(o=$H(J0(s),46),p=$H(o.b,571).a)for(f=new Gf(p);f.a<f.c.c.length;)owe(e,$H(J0(f),10),zst,x);for(n=new Dv,c=0;c<y;++c)GH(n,(AP(m,S=new jV(e.b)),S));for(a=new Gf(l);a.a<a.c.c.length;)if(o=$H(J0(a),46),_=$H(o.b,571).c)for(w=new Gf(_);w.a<w.c.c.length;)owe(e,$H(J0(w),10),Wst,n)}for(v=new x2(t.b,0);v.b<v.d.gc();)SL(v.b<v.d.gc()),0==$H(v.d.Xb(v.c=v.b++),29).a.c.length&&cK(v)}function rVe(e,t,n){var i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C,T,k;if(kEe(n,"Spline edge routing",1),0==t.b.c.length)return t.f.a=0,void jCe(n);A=Uy(xB(vSe(t,(jVe(),Ovt)))),l=Uy(xB(vSe(t,_vt))),s=Uy(xB(vSe(t,bvt))),E=$H(vSe(t,nmt),336)==(zce(),nbt),x=Uy(xB(vSe(t,rmt))),e.d=t,e.j.c=N8(Met,jKe,1,0,5,1),e.a.c=N8(Met,jKe,1,0,5,1),MG(e.k),d=VO((c=$H(NQ(t.b,0),29)).a,(fLe(),yyt)),h=VO((g=$H(NQ(t.b,t.b.c.length-1),29)).a,yyt),m=new Gf(t.b),v=null,k=0;do{for(LGe(e,v,b=m.a<m.c.c.length?$H(J0(m),29):null),xje(e),T=0,y=k,f=!v||d&&v==c,p=!b||h&&b==g,(S=Pw(noe(DY(OY(new LQ(null,new h0(e.i,16)),new wa),new ya))))>0?(u=0,v&&(u+=l),u+=(S-1)*s,b&&(u+=l),E&&b&&(u=r.Math.max(u,JRe(b,s,A,x))),u<A&&!f&&!p&&(T=(A-u)/2,u=A),y+=u):!f&&!p&&(y+=A),b&&_Qe(b,y),_=new Gf(e.i);_.a<_.c.c.length;)(w=$H(J0(_),128)).a.c=k,w.a.b=y-k,w.F=T,w.p=!v;pse(e.a,e.i),k=y,b&&(k+=b.c.a),v=b,f=p}while(b);for(o=new Gf(e.j);o.a<o.c.c.length;)a=vae(e,i=$H(J0(o),17)),lle(i,(lKe(),Mht),a),C=RLe(e,i),lle(i,Dht,C);t.f.a=k,e.d=null,jCe(n)}function iVe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b;if(g=0!=e.i,A=!1,m=null,vI(e.e)){if((u=t.gc())>0){for(h=u<100?null:new F_(u),p=(c=new yoe(t)).g,m=N8(kRt,lqe,25,u,15,1),r=0,b=new pte(u),i=0;i<e.i;++i){f=s=e.g[i];e:for(v=0;v<2;++v){for(l=u;--l>=0;)if(null!=f?Dde(f,p[l]):UO(f)===UO(p[l])){m.length<=r&&iUe(m,0,m=N8(kRt,lqe,25,2*m.length,15,1),0,r),m[r++]=i,c7(b,p[l]);break e}if(UO(f)===UO(s))break}}if(c=b,p=b.g,u=r,r>m.length&&iUe(m,0,m=N8(kRt,lqe,25,r,15,1),0,r),r>0){for(A=!0,o=0;o<r;++o)h=QF(e,$H(f=p[o],72),h);for(a=r;--a>=0;)Iye(e,m[a]);if(r!=u){for(i=u;--i>=r;)Iye(c,i);iUe(m,0,m=N8(kRt,lqe,25,r,15,1),0,r)}t=c}}}else for(t=yye(e,t),i=e.i;--i>=0;)t.Hc(e.g[i])&&(Iye(e,i),A=!0);if(A){if(null!=m){for(d=1==(n=t.gc())?AZ(e,4,t.Kc().Pb(),null,m[0],g):AZ(e,6,t,m,m[0],g),h=n<100?null:new F_(n),i=t.Kc();i.Ob();)h=HF(e,$H(f=i.Pb(),72),h);h?(h.Ei(d),h.Fi()):dae(e.e,d)}else{for(h=MF(t.gc()),i=t.Kc();i.Ob();)h=HF(e,$H(f=i.Pb(),72),h);h&&h.Fi()}return!0}return!1}function oVe(e,t){var n,r,i,o,a,s,l,c,d,h,f,p,g,m,v,A,b;for((n=new lAe(t)).a||p$e(t),c=uPe(t),l=new gJ,m=new KLe,g=new Gf(t.a);g.a<g.c.c.length;)for(i=new aW(XN(ufe($H(J0(g),10)).a.Kc(),new u));fIe(i);)(r=$H(z5(i),17)).c.i.k!=(oCe(),xst)&&r.d.i.k!=xst||qOe(l,ove((d=uWe(e,r,c,m)).d),d.a);for(a=new Dv,b=$H(vSe(n.c,(lKe(),Wdt)),21).Kc();b.Ob();){switch(A=$H(b.Pb(),61),p=m.c[A.g],f=m.b[A.g],s=m.a[A.g],o=null,v=null,A.g){case 4:o=new zY(e.d.a,p,c.b.a-e.d.a,f-p),v=new zY(e.d.a,p,s,f-p),QU(c,new Nk(o.c+o.b,o.d)),QU(c,new Nk(o.c+o.b,o.d+o.a));break;case 2:o=new zY(c.a.a,p,e.c.a-c.a.a,f-p),v=new zY(e.c.a-s,p,s,f-p),QU(c,new Nk(o.c,o.d)),QU(c,new Nk(o.c,o.d+o.a));break;case 1:o=new zY(p,e.d.b,f-p,c.b.b-e.d.b),v=new zY(p,e.d.b,f-p,s),QU(c,new Nk(o.c,o.d+o.a)),QU(c,new Nk(o.c+o.b,o.d+o.a));break;case 3:o=new zY(p,c.a.b,f-p,e.c.b-c.a.b),v=new zY(p,e.c.b-s,f-p,s),QU(c,new Nk(o.c,o.d)),QU(c,new Nk(o.c+o.b,o.d))}o&&((h=new JA).d=A,h.b=o,h.c=v,h.a=qq($H(l6(l,ove(A)),21)),a.c[a.c.length]=h)}return pse(n.b,a),n.d=$ue(JQe(c)),n}function aVe(e,t,n){var i,o,a,s,l,c,u,d,h,f,p,g;if(null==n.p[t.p]){l=!0,n.p[t.p]=0,s=t,g=n.o==(aZ(),nyt)?Bqe:Lqe;do{o=e.b.e[s.p],a=s.c.a.c.length,n.o==nyt&&o>0||n.o==ryt&&o<a-1?(c=null,u=null,c=n.o==ryt?$H(NQ(s.c.a,o+1),10):$H(NQ(s.c.a,o-1),10),aVe(e,u=n.g[c.p],n),g=e.e.bg(g,t,s),n.j[t.p]==t&&(n.j[t.p]=n.j[u.p]),n.j[t.p]==n.j[u.p]?(p=BD(e.d,s,c),n.o==ryt?(i=Uy(n.p[t.p]),h=Uy(n.p[u.p])+Uy(n.d[c.p])-c.d.d-p-s.d.a-s.o.b-Uy(n.d[s.p]),l?(l=!1,n.p[t.p]=r.Math.min(h,g)):n.p[t.p]=r.Math.min(i,r.Math.min(h,g))):(i=Uy(n.p[t.p]),h=Uy(n.p[u.p])+Uy(n.d[c.p])+c.o.b+c.d.a+p+s.d.d-Uy(n.d[s.p]),l?(l=!1,n.p[t.p]=r.Math.max(h,g)):n.p[t.p]=r.Math.max(i,r.Math.max(h,g)))):(p=Uy(xB(vSe(e.a,(jVe(),kvt)))),f=bie(e,n.j[t.p]),d=bie(e,n.j[u.p]),n.o==ryt?z0(f,d,Uy(n.p[t.p])+Uy(n.d[s.p])+s.o.b+s.d.a+p-(Uy(n.p[u.p])+Uy(n.d[c.p])-c.d.d)):z0(f,d,Uy(n.p[t.p])+Uy(n.d[s.p])-s.d.d-Uy(n.p[u.p])-Uy(n.d[c.p])-c.o.b-c.d.a-p))):g=e.e.bg(g,t,s),s=n.a[s.p]}while(s!=t);kA(e.e,t)}}function sVe(e,t,n){var r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A;for(d=t,u=new gJ,h=new gJ,o=D2(d,N6e),UCe((r=new cq(e,n,u,h)).a,r.b,r.c,r.d,o),g=(u.i||(u.i=new jN(u,u.c))).Kc();g.Ob();)for(p=$H(g.Pb(),202),s=$H(l6(u,p),21).Kc();s.Ob();){if(a=s.Pb(),!(f=$H(sne(e.d,a),202)))throw i=L2(d,H6e),jv(new ew(V6e+a+K6e+i+G6e));!p.e&&(p.e=new lF(PMt,p,10,9)),c7(p.e,f)}for(v=(h.i||(h.i=new jN(h,h.c))).Kc();v.Ob();)for(m=$H(v.Pb(),202),c=$H(l6(h,m),21).Kc();c.Ob();){if(l=c.Pb(),!(f=$H(sne(e.d,l),202)))throw i=L2(d,H6e),jv(new ew(V6e+l+K6e+i+G6e));!m.g&&(m.g=new lF(PMt,m,9,10)),c7(m.g,f)}!n.b&&(n.b=new lF(LMt,n,4,7)),0!=n.b.i&&(!n.c&&(n.c=new lF(LMt,n,5,8)),0!=n.c.i)&&(!n.b&&(n.b=new lF(LMt,n,4,7)),n.b.i<=1&&(!n.c&&(n.c=new lF(LMt,n,5,8)),n.c.i<=1))&&1==(!n.a&&(n.a=new eG(PMt,n,6,6)),n.a).i&&(EAe(A=$H(Gte((!n.a&&(n.a=new eG(PMt,n,6,6)),n.a),0),202))||SAe(A)||(Ire(A,$H(Gte((!n.b&&(n.b=new lF(LMt,n,4,7)),n.b),0),82)),Dre(A,$H(Gte((!n.c&&(n.c=new lF(LMt,n,5,8)),n.c),0),82))))}function lVe(e){var t,n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C;for(y=0,w=(b=e.a).length;y<w;++y){for(A=b[y],c=RKe,u=RKe,p=new Gf(A.e);p.a<p.c.c.length;)(a=(h=$H(J0(p),10)).c?w9(h.c.a,h,0):-1)>0?(d=$H(NQ(h.c.a,a-1),10),E=BD(e.b,h,d),m=h.n.b-h.d.d-(d.n.b+d.o.b+d.d.a+E)):m=h.n.b-h.d.d,c=r.Math.min(m,c),a<h.c.a.c.length-1?(d=$H(NQ(h.c.a,a+1),10),E=BD(e.b,h,d),v=d.n.b-d.d.d-(h.n.b+h.o.b+h.d.a+E)):v=2*h.n.b,u=r.Math.min(v,u);for(l=RKe,o=!1,C=new Gf((i=$H(NQ(A.e,0),10)).j);C.a<C.c.c.length;)for(S=$H(J0(C),11),g=i.n.b+S.n.b+S.a.b,n=new Gf(S.e);n.a<n.c.c.length;)t=(_=$H(J0(n),17).c).i.n.b+_.n.b+_.a.b-g,r.Math.abs(t)<r.Math.abs(l)&&r.Math.abs(t)<(t<0?c:u)&&(l=t,o=!0);for(x=new Gf((s=$H(NQ(A.e,A.e.c.length-1),10)).j);x.a<x.c.c.length;)for(_=$H(J0(x),11),g=s.n.b+_.n.b+_.a.b,n=new Gf(_.g);n.a<n.c.c.length;)t=(S=$H(J0(n),17).d).i.n.b+S.n.b+S.a.b-g,r.Math.abs(t)<r.Math.abs(l)&&r.Math.abs(t)<(t<0?c:u)&&(l=t,o=!0);if(o&&0!=l)for(f=new Gf(A.e);f.a<f.c.c.length;)(h=$H(J0(f),10)).n.b+=l}}function cVe(e,t,n){var r,i,o,a,s,l,c,u,d,h,f,p,g,m;if(lG(e.a,t)){if(FE($H(LV(e.a,t),53),n))return 1}else VK(e.a,t,new LA);if(lG(e.a,n)){if(FE($H(LV(e.a,n),53),t))return-1}else VK(e.a,n,new LA);if(lG(e.e,t)){if(FE($H(LV(e.e,t),53),n))return-1}else VK(e.e,t,new LA);if(lG(e.e,n)){if(FE($H(LV(e.a,n),53),t))return 1}else VK(e.e,n,new LA);if(e.c==(vle(),NAt)||!IL(t,(lKe(),hht))||!IL(n,(lKe(),hht))){if(l=$H(wR(x4(Kle(OY(new LQ(null,new h0(t.j,16)),new co)),new uo)),11),u=$H(wR(x4(Kle(OY(new LQ(null,new h0(n.j,16)),new ho)),new fo)),11),l&&u){if(s=l.i,c=u.i,s&&s==c){for(h=new Gf(s.j);h.a<h.c.c.length;){if((d=$H(J0(h),11))==l)return iFe(e,n,t),-1;if(d==u)return iFe(e,t,n),1}return wD(txe(e,t),txe(e,n))}for(g=0,m=(p=e.d).length;g<m;++g){if((f=p[g])==s)return iFe(e,n,t),-1;if(f==c)return iFe(e,t,n),1}}if(!IL(t,(lKe(),hht))||!IL(n,hht))return(i=txe(e,t))>(a=txe(e,n))?iFe(e,t,n):iFe(e,n,t),i<a?-1:i>a?1:0}return(r=$H(vSe(t,(lKe(),hht)),19).a)>(o=$H(vSe(n,hht),19).a)?iFe(e,t,n):iFe(e,n,t),r<o?-1:r>o?1:0}function uVe(e,t,n,r){var i,o,a,s,l,c,u,d,h,f,p,g;if(Hy(_B(XIe(t,(sKe(),QCt)))))return Eq(),Eq(),lnt;if(l=0!=(!t.a&&(t.a=new eG(QMt,t,10,11)),t.a).i,c=!(u=AOe(t)).dc(),l||c){if(!(i=$H(XIe(t,vTt),149)))throw jv(new nw("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if(g=kk(i,(lIe(),XMt)),Dme(t),!l&&c&&!g)return Eq(),Eq(),lnt;if(s=new Dv,UO(XIe(t,wCt))===UO((ode(),gkt))&&(kk(i,KMt)||kk(i,VMt)))for(h=gPe(e,t),Fie(f=new YE,(!t.a&&(t.a=new eG(QMt,t,10,11)),t.a));0!=f.b;)Dme(d=$H(0==f.b?null:(SL(0!=f.b),Ote(f,f.a.a)),33)),UO(XIe(d,wCt))===UO(vkt)||S8(d,eCt)&&!y5(i,XIe(d,vTt))?(pse(s,uVe(e,d,n,r)),Yve(d,wCt,vkt),BFe(d)):Fie(f,(!d.a&&(d.a=new eG(QMt,d,10,11)),d.a));else for(h=(!t.a&&(t.a=new eG(QMt,t,10,11)),t.a).i,a=new ON((!t.a&&(t.a=new eG(QMt,t,10,11)),t.a));a.e!=a.i.gc();)pse(s,uVe(e,o=$H(bve(a),33),n,r)),BFe(o);for(p=new Gf(s);p.a<p.c.c.length;)Yve($H(J0(p),79),QCt,(lR(),!0));return zme(t,i,voe(r,h)),h$e(s),c&&g?u:(Eq(),Eq(),lnt)}return Eq(),Eq(),lnt}function dVe(e,t,n,r,i,o,a,s,l){var c,u,d,h,f,p,g;switch(f=n,Fh(u=new MAe(l),(oCe(),xst)),lle(u,(lKe(),Ydt),a),lle(u,(jVe(),evt),(Kxe(),Wkt)),g=Uy(xB(e.We(Zmt))),lle(u,Zmt,g),CZ(d=new CCe,u),t!=Kkt&&t!=Ykt||(f=r>=0?lpe(s):_he(lpe(s)),e.Ye(ovt,f)),c=new U_,h=!1,e.Xe(Jmt)?(jL(c,$H(e.We(Jmt),8)),h=!0):AN(c,a.a/2,a.b/2),f.g){case 4:lle(u,bmt,(_fe(),Fht)),lle(u,Udt,(qse(),Mut)),u.o.b=a.b,g<0&&(u.o.a=-g),Hke(d,(bGe(),aOt)),h||(c.a=a.a),c.a-=a.a;break;case 2:lle(u,bmt,(_fe(),jht)),lle(u,Udt,(qse(),kut)),u.o.b=a.b,g<0&&(u.o.a=-g),Hke(d,(bGe(),COt)),h||(c.a=0);break;case 1:lle(u,tht,(Q9(),Cdt)),u.o.a=a.a,g<0&&(u.o.b=-g),Hke(d,(bGe(),EOt)),h||(c.b=a.b),c.b-=a.b;break;case 3:lle(u,tht,(Q9(),Edt)),u.o.a=a.a,g<0&&(u.o.b=-g),Hke(d,(bGe(),sOt)),h||(c.b=0)}if(jL(d.n,c),lle(u,Jmt,c),t==zkt||t==Gkt||t==Wkt){if(p=0,t==zkt&&e.Xe(tvt))switch(f.g){case 1:case 2:p=$H(e.We(tvt),19).a;break;case 3:case 4:p=-$H(e.We(tvt),19).a}else switch(f.g){case 4:case 2:p=o.b,t==Gkt&&(p/=i.b);break;case 1:case 3:p=o.a,t==Gkt&&(p/=i.a)}lle(u,_ht,p)}return lle(u,Kdt,f),u}function hVe(e){var t,n,r,i,o,a,s,l,c,d,h,f,p,g,m,v,A,b,y,w,_,x;if((n=Uy(xB(vSe(e.a.j,(jVe(),Pgt)))))<-1||!e.a.i||IF($H(vSe(e.a.o,evt),98))||ife(e.a.o,(bGe(),aOt)).gc()<2&&ife(e.a.o,COt).gc()<2)return!0;if(e.a.c.Rf())return!1;for(y=0,b=0,A=new Dv,l=0,c=(s=e.a.e).length;l<c;++l){for(f=0,g=(h=s[l]).length;f<g;++f)if((d=h[f]).k!=(oCe(),Tst)){for(r=e.b[d.c.p][d.p],d.k==xst?(r.b=1,$H(vSe(d,(lKe(),fht)),11).j==(bGe(),aOt)&&(b+=r.a)):(x=ife(d,(bGe(),COt))).dc()||!ZD(x,new Lo)?r.c=1:((i=ife(d,aOt)).dc()||!ZD(i,new Ro))&&(y+=r.a),a=new aW(XN(ufe(d).a.Kc(),new u));fIe(a);)o=$H(z5(a),17),y+=r.c,b+=r.b,W8(e,r,o.d.i);for(_=new aW(new GN((m=Gne(Sse(Uw(Ret,1),jKe,20,0,[ife(d,(bGe(),sOt)),ife(d,EOt)]))).a.length,m.a));fIe(_);)w=$H(z5(_),11),(v=$H(vSe(w,(lKe(),wht)),10))&&(y+=r.c,b+=r.b,W8(e,r,v))}else A.c[A.c.length]=d;for(p=new Gf(A);p.a<p.c.c.length;)for(d=$H(J0(p),10),r=e.b[d.c.p][d.p],a=new aW(XN(ufe(d).a.Kc(),new u));fIe(a);)o=$H(z5(a),17),y+=r.c,b+=r.b,W8(e,r,o.d.i);A.c=N8(Met,jKe,1,0,5,1)}return(0==(t=y+b)?Lqe:(y-b)/t)>=n}function fVe(){function e(e){var t=this;this.dispatch=function(t){var n=t.data;switch(n.cmd){case"algorithms":var r=Epe((Eq(),new jf(new kf(cIt.b))));e.postMessage({id:n.id,data:r});break;case"categories":var i=Epe((Eq(),new jf(new kf(cIt.c))));e.postMessage({id:n.id,data:i});break;case"options":var o=Epe((Eq(),new jf(new kf(cIt.d))));e.postMessage({id:n.id,data:o});break;case"register":uze(n.algorithms),e.postMessage({id:n.id});break;case"layout":NHe(n.graph,n.layoutOptions||{},n.options||{}),e.postMessage({id:n.id,data:n.graph})}},this.saveDispatch=function(n){try{t.dispatch(n)}catch(t){e.postMessage({id:n.data.id,error:t})}}}function r(t){var n=this;this.dispatcher=new e({postMessage:function(e){n.onmessage({data:e})}}),this.postMessage=function(e){setTimeout(function(){n.dispatcher.saveDispatch({data:e})},0)}}if(ix(),typeof document===pXe&&typeof self!==pXe){var i=new e(self);self.onmessage=i.saveDispatch}else typeof t!==pXe&&t.exports&&(Object.defineProperty(n,"__esModule",{value:!0}),t.exports={default:r,Worker:r})}function pVe(e){e.N||(e.N=!0,e.b=bae(e,0),Lie(e.b,0),Lie(e.b,1),Lie(e.b,2),e.bb=bae(e,1),Lie(e.bb,0),Lie(e.bb,1),e.fb=bae(e,2),Lie(e.fb,3),Lie(e.fb,4),Bie(e.fb,5),e.qb=bae(e,3),Lie(e.qb,0),Bie(e.qb,1),Bie(e.qb,2),Lie(e.qb,3),Lie(e.qb,4),Bie(e.qb,5),Lie(e.qb,6),e.a=yae(e,4),e.c=yae(e,5),e.d=yae(e,6),e.e=yae(e,7),e.f=yae(e,8),e.g=yae(e,9),e.i=yae(e,10),e.j=yae(e,11),e.k=yae(e,12),e.n=yae(e,13),e.o=yae(e,14),e.p=yae(e,15),e.q=yae(e,16),e.s=yae(e,17),e.r=yae(e,18),e.t=yae(e,19),e.u=yae(e,20),e.v=yae(e,21),e.w=yae(e,22),e.B=yae(e,23),e.A=yae(e,24),e.C=yae(e,25),e.D=yae(e,26),e.F=yae(e,27),e.G=yae(e,28),e.H=yae(e,29),e.J=yae(e,30),e.I=yae(e,31),e.K=yae(e,32),e.M=yae(e,33),e.L=yae(e,34),e.P=yae(e,35),e.Q=yae(e,36),e.R=yae(e,37),e.S=yae(e,38),e.T=yae(e,39),e.U=yae(e,40),e.V=yae(e,41),e.X=yae(e,42),e.W=yae(e,43),e.Y=yae(e,44),e.Z=yae(e,45),e.$=yae(e,46),e._=yae(e,47),e.ab=yae(e,48),e.cb=yae(e,49),e.db=yae(e,50),e.eb=yae(e,51),e.gb=yae(e,52),e.hb=yae(e,53),e.ib=yae(e,54),e.jb=yae(e,55),e.kb=yae(e,56),e.lb=yae(e,57),e.mb=yae(e,58),e.nb=yae(e,59),e.ob=yae(e,60),e.pb=yae(e,61))}function gVe(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w;if(b=0,0==t.f.a)for(v=new Gf(e);v.a<v.c.c.length;)g=$H(J0(v),10),b=r.Math.max(b,g.n.a+g.o.a+g.d.c);else b=t.f.a-t.c.a;for(b-=t.c.a,m=new Gf(e);m.a<m.c.c.length;){switch(Xv((g=$H(J0(m),10)).n,b-g.o.a),rU(g.f),Vbe(g),(g.q?g.q:(Eq(),Eq(),cnt))._b((jVe(),svt))&&Xv($H(vSe(g,svt),8),b-g.o.a),$H(vSe(g,bgt),248).g){case 1:lle(g,bgt,(hAe(),MSt));break;case 2:lle(g,bgt,(hAe(),OSt))}for(A=g.o,w=new Gf(g.j);w.a<w.c.c.length;){for(Xv((y=$H(J0(w),11)).n,A.a-y.o.a),Xv(y.a,y.o.a),Hke(y,Toe(y.j)),(s=$H(vSe(y,tvt),19))&&lle(y,tvt,the(-s.a)),a=new Gf(y.g);a.a<a.c.c.length;){for(i=sve((o=$H(J0(a),17)).a,0);i.b!=i.d.c;)(n=$H(d3(i),8)).a=b-n.a;if(u=$H(vSe(o,mmt),74))for(c=sve(u,0);c.b!=c.d.c;)(l=$H(d3(c),8)).a=b-l.a;for(f=new Gf(o.b);f.a<f.c.c.length;)Xv((d=$H(J0(f),70)).n,b-d.o.a)}for(p=new Gf(y.f);p.a<p.c.c.length;)Xv((d=$H(J0(p),70)).n,y.o.a-d.o.a)}for(g.k==(oCe(),xst)&&(lle(g,(lKe(),Kdt),Toe($H(vSe(g,Kdt),61))),YSe(g)),h=new Gf(g.b);h.a<h.c.c.length;)Vbe(d=$H(J0(h),70)),Xv(d.n,A.a-d.o.a)}}function mVe(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w;if(b=0,0==t.f.b)for(v=new Gf(e);v.a<v.c.c.length;)g=$H(J0(v),10),b=r.Math.max(b,g.n.b+g.o.b+g.d.a);else b=t.f.b-t.c.b;for(b-=t.c.b,m=new Gf(e);m.a<m.c.c.length;){switch(qv((g=$H(J0(m),10)).n,b-g.o.b),iU(g.f),Kbe(g),(g.q?g.q:(Eq(),Eq(),cnt))._b((jVe(),svt))&&qv($H(vSe(g,svt),8),b-g.o.b),$H(vSe(g,bgt),248).g){case 3:lle(g,bgt,(hAe(),TSt));break;case 4:lle(g,bgt,(hAe(),ISt))}for(A=g.o,w=new Gf(g.j);w.a<w.c.c.length;){for(qv((y=$H(J0(w),11)).n,A.b-y.o.b),qv(y.a,y.o.b),Hke(y,koe(y.j)),(s=$H(vSe(y,tvt),19))&&lle(y,tvt,the(-s.a)),a=new Gf(y.g);a.a<a.c.c.length;){for(i=sve((o=$H(J0(a),17)).a,0);i.b!=i.d.c;)(n=$H(d3(i),8)).b=b-n.b;if(u=$H(vSe(o,mmt),74))for(c=sve(u,0);c.b!=c.d.c;)(l=$H(d3(c),8)).b=b-l.b;for(f=new Gf(o.b);f.a<f.c.c.length;)qv((d=$H(J0(f),70)).n,b-d.o.b)}for(p=new Gf(y.f);p.a<p.c.c.length;)qv((d=$H(J0(p),70)).n,y.o.b-d.o.b)}for(g.k==(oCe(),xst)&&(lle(g,(lKe(),Kdt),koe($H(vSe(g,Kdt),61))),phe(g)),h=new Gf(g.b);h.a<h.c.c.length;)Kbe(d=$H(J0(h),70)),qv(d.n,A.b-d.o.b)}}function vVe(e,t,n,r){var i,o,a,s,l,c,u,d,h,f;for(d=!1,c=e+1,u0(e,t.c.length),a=(u=$H(t.c[e],200)).a,s=null,o=0;o<u.a.c.length;o++)if(u0(o,a.c.length),!(i=$H(a.c[o],187)).c)if(0!=i.b.c.length){if(i.k||(s&&Ube(s),_Ae(i,(s=new BJ(s?s.e+s.d+r:0,u.f,r)).e+s.d,u.f),GH(u.d,s),Noe(s,i),i.k=!0),l=null,f=null,o<u.a.c.length-1?f=$H(NQ(u.a,o+1),187):c<t.c.length&&0!=(u0(c,t.c.length),$H(t.c[c],200)).a.c.length&&(f=$H(NQ((u0(c,t.c.length),$H(t.c[c],200)).a,0),187)),h=!1,(l=f)&&(h=!Dde(l.j,u)),l){if(0==l.b.c.length){_we(u,l);break}if(g7(i,n-i.s),Ube(i.q),d|=JSe(u,i,l,n,r),0==l.b.c.length)for(_we((u0(c,t.c.length),$H(t.c[c],200)),l),l=null;t.c.length>c&&0==(u0(c,t.c.length),$H(t.c[c],200)).a.c.length;)A9(t,(u0(c,t.c.length),t.c[c]));if(!l){--o;continue}if(O$e(t,u,i,l,h,n,c,r)){d=!0;continue}if(h){if(qHe(t,u,i,l,n,c,r)){d=!0;continue}if(Oue(u,i)){i.c=!0,d=!0;continue}}else if(Oue(u,i)){i.c=!0,d=!0;continue}if(d)continue}Oue(u,i)?(i.c=!0,d=!0,l&&(l.k=!1)):Ube(i.q)}else ME(),_we(u,i),--o,d=!0;return d}function AVe(e,t,n,i,o,a,s){var l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C,T,k,O,M,I;for(m=0,T=0,u=new Gf(e.b);u.a<u.c.c.length;)(c=$H(J0(u),157)).c&&aWe(c.c),m=r.Math.max(m,tz(c)),T+=tz(c)*ez(c);for(v=T/e.b.c.length,C=l_e(e.b,v),T+=e.b.c.length*C,m=r.Math.max(m,r.Math.sqrt(T*s))+n.b,M=n.b,I=n.d,p=0,h=n.b+n.c,RU(S=new YE,the(0)),x=new YE,d=new x2(e.b,0),g=null,l=new Dv;d.b<d.d.gc();)SL(d.b<d.d.gc()),O=tz(c=$H(d.d.Xb(d.c=d.b++),157)),f=ez(c),M+O>m&&(a&&(cM(x,p),cM(S,the(d.b-1)),GH(e.d,g),l.c=N8(Met,jKe,1,0,5,1)),M=n.b,I+=p+t,p=0,h=r.Math.max(h,n.b+n.c+O)),l.c[l.c.length]=c,xve(c,M,I),h=r.Math.max(h,M+O+n.c),p=r.Math.max(p,f),M+=O+t,g=c;if(pse(e.a,l),GH(e.d,$H(NQ(l,l.c.length-1),157)),h=r.Math.max(h,i),(k=I+p+n.a)<o&&(p+=o-k,k=o),a)for(M=n.b,d=new x2(e.b,0),cM(S,the(e.b.c.length)),b=$H(d3(E=sve(S,0)),19).a,cM(x,p),_=sve(x,0),w=0;d.b<d.d.gc();)d.b==b&&(M=n.b,w=Uy(xB(d3(_))),b=$H(d3(E),19).a),SL(d.b<d.d.gc()),zge(c=$H(d.d.Xb(d.c=d.b++),157),w),d.b==b&&(A=h-M-n.c,y=tz(c),Qge(c,A),Fhe(c,(A-y)/2,0)),M+=tz(c)+t;return new Nk(h,k)}function bVe(e){var t,n,r,i;switch(i=null,e.c){case 6:return e.Vl();case 13:return e.Wl();case 23:return e.Nl();case 22:return e.Sl();case 18:return e.Pl();case 8:KVe(e),hKe(),i=oRt;break;case 9:return e.vl(!0);case 19:return e.wl();case 10:switch(e.a){case 100:case 68:case 119:case 87:case 115:case 83:return i=e.ul(e.a),KVe(e),i;case 101:case 102:case 110:case 114:case 116:case 117:case 118:case 120:(t=e.tl())<$qe?(hKe(),hKe(),i=new az(0,t)):i=gW(Whe(t));break;case 99:return e.Fl();case 67:return e.Al();case 105:return e.Il();case 73:return e.Bl();case 103:return e.Gl();case 88:return e.Cl();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return e.xl();case 80:case 112:if(!(i=ROe(e,e.a)))throw jv(new iw(bKe((oD(),k8e))));break;default:i=KU(e.a)}KVe(e);break;case 0:if(93==e.a||123==e.a||125==e.a)throw jv(new iw(bKe((oD(),T8e))));i=KU(e.a),n=e.a,KVe(e),(64512&n)==jqe&&0==e.c&&56320==(64512&e.a)&&((r=N8(TRt,GYe,25,2,15,1))[0]=n&KYe,r[1]=e.a&KYe,i=aG(gW($ge(r,0,r.length)),0),KVe(e));break;default:throw jv(new iw(bKe((oD(),T8e))))}return i}function yVe(e,t,n){var i,o,a,s,l,c,u,d,h,f,p,g,m;if(i=new Dv,o=RKe,a=RKe,s=RKe,n)for(o=e.f.a,g=new Gf(t.j);g.a<g.c.c.length;)for(c=new Gf($H(J0(g),11).g);c.a<c.c.c.length;)0!=(l=$H(J0(c),17)).a.b&&((d=$H(pL(l.a),8)).a<o&&(a=o-d.a,s=RKe,i.c=N8(Met,jKe,1,0,5,1),o=d.a),d.a<=o&&(i.c[i.c.length]=l,l.a.b>1&&(s=r.Math.min(s,r.Math.abs($H(Rve(l.a,1),8).b-d.b)))));else for(g=new Gf(t.j);g.a<g.c.c.length;)for(c=new Gf($H(J0(g),11).e);c.a<c.c.c.length;)0!=(l=$H(J0(c),17)).a.b&&((f=$H(gL(l.a),8)).a>o&&(a=f.a-o,s=RKe,i.c=N8(Met,jKe,1,0,5,1),o=f.a),f.a>=o&&(i.c[i.c.length]=l,l.a.b>1&&(s=r.Math.min(s,r.Math.abs($H(Rve(l.a,l.a.b-2),8).b-f.b)))));if(0!=i.c.length&&a>t.o.a/2&&s>t.o.b/2){for(CZ(p=new CCe,t),Hke(p,(bGe(),sOt)),p.n.a=t.o.a/2,CZ(m=new CCe,t),Hke(m,EOt),m.n.a=t.o.a/2,m.n.b=t.o.b,c=new Gf(i);c.a<c.c.c.length;)l=$H(J0(c),17),n?(u=$H(fU(l.a),8),(0==l.a.b?p0(l.d):$H(pL(l.a),8)).b>=u.b?EZ(l,m):EZ(l,p)):(u=$H(pU(l.a),8),(0==l.a.b?p0(l.c):$H(gL(l.a),8)).b>=u.b?xZ(l,m):xZ(l,p)),(h=$H(vSe(l,(jVe(),mmt)),74))&&Ape(h,u,!0);t.n.a=o-t.o.a/2}}function wVe(e,t,n){var r,i,o,a,s,l,c,u,d,h,f;if(c=t,Mre(l=K3(e,I3(n),c),L2(c,H6e)),u=$H(sne(e.g,bOe(QJ(c,_6e))),33),r=null,(a=QJ(c,"sourcePort"))&&(r=bOe(a)),d=$H(sne(e.j,r),118),!u)throw jv(new ew("An edge must have a source node (edge id: '"+Kge(c)+G6e));if(d&&!hK(GJ(d),u))throw jv(new ew("The source port of an edge must be a port of the edge's source node (edge id: '"+L2(c,H6e)+G6e));if(!l.b&&(l.b=new lF(LMt,l,4,7)),c7(l.b,d||u),h=$H(sne(e.g,bOe(QJ(c,Y6e))),33),i=null,(s=QJ(c,"targetPort"))&&(i=bOe(s)),f=$H(sne(e.j,i),118),!h)throw jv(new ew("An edge must have a target node (edge id: '"+Kge(c)+G6e));if(f&&!hK(GJ(f),h))throw jv(new ew("The target port of an edge must be a port of the edge's target node (edge id: '"+L2(c,H6e)+G6e));if(!l.c&&(l.c=new lF(LMt,l,5,8)),c7(l.c,f||h),0==(!l.b&&(l.b=new lF(LMt,l,4,7)),l.b).i||0==(!l.c&&(l.c=new lF(LMt,l,5,8)),l.c).i)throw o=L2(c,H6e),jv(new ew(W6e+o+G6e));return EEe(c,l),sDe(c,l),Nle(e,c,l)}function _Ve(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C;return d=Cje(jR(e,(bGe(),hOt)),t),p=iye(jR(e,fOt),t),y=iye(jR(e,wOt),t),E=oye(jR(e,xOt),t),h=oye(jR(e,lOt),t),A=iye(jR(e,yOt),t),g=iye(jR(e,pOt),t),_=iye(jR(e,_Ot),t),w=iye(jR(e,cOt),t),S=oye(jR(e,dOt),t),v=iye(jR(e,AOt),t),b=iye(jR(e,vOt),t),x=iye(jR(e,uOt),t),C=oye(jR(e,bOt),t),f=oye(jR(e,gOt),t),m=iye(jR(e,mOt),t),n=Ile(Sse(Uw(DRt,1),Hqe,25,15,[A.a,E.a,_.a,C.a])),r=Ile(Sse(Uw(DRt,1),Hqe,25,15,[p.a,d.a,y.a,m.a])),i=v.a,o=Ile(Sse(Uw(DRt,1),Hqe,25,15,[g.a,h.a,w.a,f.a])),c=Ile(Sse(Uw(DRt,1),Hqe,25,15,[A.b,p.b,g.b,b.b])),l=Ile(Sse(Uw(DRt,1),Hqe,25,15,[E.b,d.b,h.b,m.b])),u=S.b,s=Ile(Sse(Uw(DRt,1),Hqe,25,15,[_.b,y.b,w.b,x.b])),h7(jR(e,hOt),n+i,c+u),h7(jR(e,mOt),n+i,c+u),h7(jR(e,fOt),n+i,0),h7(jR(e,wOt),n+i,c+u+l),h7(jR(e,xOt),0,c+u),h7(jR(e,lOt),n+i+r,c+u),h7(jR(e,pOt),n+i+r,0),h7(jR(e,_Ot),0,c+u+l),h7(jR(e,cOt),n+i+r,c+u+l),h7(jR(e,dOt),0,c),h7(jR(e,AOt),n,0),h7(jR(e,uOt),0,c+u+l),h7(jR(e,gOt),n+i+r,0),(a=new U_).a=Ile(Sse(Uw(DRt,1),Hqe,25,15,[n+r+i+o,S.a,b.a,x.a])),a.b=Ile(Sse(Uw(DRt,1),Hqe,25,15,[c+l+u+s,v.b,C.b,f.b])),a}function xVe(e){var t,n,r,i,o,a,s,l,c,d,h,f,p,g,m;for(g=new Dv,h=new Gf(e.d.b);h.a<h.c.c.length;)for(p=new Gf($H(J0(h),29).a);p.a<p.c.c.length;){for(f=$H(J0(p),10),i=$H(LV(e.f,f),57),l=new aW(XN(ufe(f).a.Kc(),new u));fIe(l);)if(c=!0,d=null,(r=sve((a=$H(z5(l),17)).a,0)).b!=r.d.c){for(t=$H(d3(r),8),n=null,a.c.j==(bGe(),sOt)&&((m=new SHe(t,new Nk(t.a,i.d.d),i,a)).f.a=!0,m.a=a.c,g.c[g.c.length]=m),a.c.j==EOt&&((m=new SHe(t,new Nk(t.a,i.d.d+i.d.a),i,a)).f.d=!0,m.a=a.c,g.c[g.c.length]=m);r.b!=r.d.c;)n=$H(d3(r),8),ine(t.b,n.b)||(d=new SHe(t,n,null,a),g.c[g.c.length]=d,c&&(c=!1,n.b<i.d.d?d.f.a=!0:n.b>i.d.d+i.d.a?d.f.d=!0:(d.f.d=!0,d.f.a=!0))),r.b!=r.d.c&&(t=n);d&&(o=$H(LV(e.f,a.d.i),57),t.b<o.d.d?d.f.a=!0:t.b>o.d.d+o.d.a?d.f.d=!0:(d.f.d=!0,d.f.a=!0))}for(s=new aW(XN(cfe(f).a.Kc(),new u));fIe(s);)0!=(a=$H(z5(s),17)).a.b&&(t=$H(gL(a.a),8),a.d.j==(bGe(),sOt)&&((m=new SHe(t,new Nk(t.a,i.d.d),i,a)).f.a=!0,m.a=a.d,g.c[g.c.length]=m),a.d.j==EOt&&((m=new SHe(t,new Nk(t.a,i.d.d+i.d.a),i,a)).f.d=!0,m.a=a.d,g.c[g.c.length]=m))}return g}function EVe(e,t,n){var r,i,o,a,s,l,c;if(kEe(n,"Network simplex node placement",1),e.e=t,e.n=$H(vSe(t,(lKe(),Oht)),304),aQe(e),Lxe(e),qE(hee(new LQ(null,new h0(e.e.b,16)),new Qo),new rm(e)),qE(OY(hee(OY(hee(new LQ(null,new h0(e.e.b,16)),new na),new ra),new ia),new oa),new nm(e)),Hy(_B(vSe(e.e,(jVe(),Nmt))))&&(kEe(o=voe(n,1),"Straight Edges Pre-Processing",1),yWe(e),jCe(o)),xAe(e.f),i=$H(vSe(t,Nvt),19).a*e.f.a.c.length,GFe(Kw(Yw($$(e.f),i),!1),voe(n,1)),0!=e.d.a.gc()){for(kEe(o=voe(n,1),"Flexible Where Space Processing",1),a=$H(MR(kW(MY(new LQ(null,new h0(e.f.a,16)),new zo),new Po)),19).a,s=$H(MR(TW(MY(new LQ(null,new h0(e.f.a,16)),new Wo),new Fo)),19).a-a,l=OR(new HA,e.f),c=OR(new HA,e.f),zRe(iS(rS(nS(oS(new jA,2e4),s),l),c)),qE(OY(OY(IG(e.i),new Go),new Vo),new QY(a,l,s,c)),r=e.d.a.ec().Kc();r.Ob();)$H(r.Pb(),213).g=1;GFe(Kw(Yw($$(e.f),i),!1),voe(o,1)),jCe(o)}Hy(_B(vSe(t,Nmt)))&&(kEe(o=voe(n,1),"Straight Edges Post-Processing",1),ETe(e),jCe(o)),Kze(e),e.e=null,e.f=null,e.i=null,e.c=null,MG(e.k),e.j=null,e.a=null,e.o=null,e.d.a.$b(),jCe(n)}function SVe(e,t,n){var i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w;for(s=new Gf(e.a.b);s.a<s.c.c.length;)for(b=new Gf($H(J0(s),29).a);b.a<b.c.c.length;)A=$H(J0(b),10),t.g[A.p]=A,t.a[A.p]=A,t.d[A.p]=0;for(l=e.a.b,t.c==(pJ(),Jbt)&&(l=rN(l,152)?a6($H(l,152)):rN(l,131)?$H(l,131).a:rN(l,54)?new cy(l):new CE(l)),a=l.Kc();a.Ob();)for(f=-1,h=$H(a.Pb(),29).a,t.o==(aZ(),ryt)&&(f=RKe,h=rN(h,152)?a6($H(h,152)):rN(h,131)?$H(h,131).a:rN(h,54)?new cy(h):new CE(h)),w=h.Kc();w.Ob();)if(y=$H(w.Pb(),10),d=null,(d=t.c==Jbt?$H(NQ(e.b.f,y.p),15):$H(NQ(e.b.b,y.p),15)).gc()>0)if(i=d.gc(),c=CJ(r.Math.floor((i+1)/2))-1,o=CJ(r.Math.ceil((i+1)/2))-1,t.o==ryt)for(u=o;u>=c;u--)t.a[y.p]==y&&(g=$H(d.Xb(u),46),p=$H(g.a,10),!FE(n,g.b)&&f>e.b.e[p.p]&&(t.a[p.p]=y,t.g[y.p]=t.g[p.p],t.a[y.p]=t.g[y.p],t.f[t.g[y.p].p]=(lR(),!!(Hy(t.f[t.g[y.p].p])&y.k==(oCe(),Sst))),f=e.b.e[p.p]));else for(u=c;u<=o;u++)t.a[y.p]==y&&(v=$H(d.Xb(u),46),m=$H(v.a,10),!FE(n,v.b)&&f<e.b.e[m.p]&&(t.a[m.p]=y,t.g[y.p]=t.g[m.p],t.a[y.p]=t.g[y.p],t.f[t.g[y.p].p]=(lR(),!!(Hy(t.f[t.g[y.p].p])&y.k==(oCe(),Sst))),f=e.b.e[m.p]))}function CVe(){CVe=M,ex(),SMt=pMt.a,$H(Gte(Kq(pMt.a),0),18),bMt=pMt.f,$H(Gte(Kq(pMt.f),0),18),$H(Gte(Kq(pMt.f),1),34),EMt=pMt.n,$H(Gte(Kq(pMt.n),0),34),$H(Gte(Kq(pMt.n),1),34),$H(Gte(Kq(pMt.n),2),34),$H(Gte(Kq(pMt.n),3),34),yMt=pMt.g,$H(Gte(Kq(pMt.g),0),18),$H(Gte(Kq(pMt.g),1),34),mMt=pMt.c,$H(Gte(Kq(pMt.c),0),18),$H(Gte(Kq(pMt.c),1),18),wMt=pMt.i,$H(Gte(Kq(pMt.i),0),18),$H(Gte(Kq(pMt.i),1),18),$H(Gte(Kq(pMt.i),2),18),$H(Gte(Kq(pMt.i),3),18),$H(Gte(Kq(pMt.i),4),34),_Mt=pMt.j,$H(Gte(Kq(pMt.j),0),18),vMt=pMt.d,$H(Gte(Kq(pMt.d),0),18),$H(Gte(Kq(pMt.d),1),18),$H(Gte(Kq(pMt.d),2),18),$H(Gte(Kq(pMt.d),3),18),$H(Gte(Kq(pMt.d),4),34),$H(Gte(Kq(pMt.d),5),34),$H(Gte(Kq(pMt.d),6),34),$H(Gte(Kq(pMt.d),7),34),gMt=pMt.b,$H(Gte(Kq(pMt.b),0),34),$H(Gte(Kq(pMt.b),1),34),AMt=pMt.e,$H(Gte(Kq(pMt.e),0),34),$H(Gte(Kq(pMt.e),1),34),$H(Gte(Kq(pMt.e),2),34),$H(Gte(Kq(pMt.e),3),34),$H(Gte(Kq(pMt.e),4),18),$H(Gte(Kq(pMt.e),5),18),$H(Gte(Kq(pMt.e),6),18),$H(Gte(Kq(pMt.e),7),18),$H(Gte(Kq(pMt.e),8),18),$H(Gte(Kq(pMt.e),9),18),$H(Gte(Kq(pMt.e),10),34),xMt=pMt.k,$H(Gte(Kq(pMt.k),0),34),$H(Gte(Kq(pMt.k),1),34)}function TVe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C,T;for(S=new YE,_=new YE,m=-1,l=new Gf(e);l.a<l.c.c.length;){for((a=$H(J0(l),128)).s=m--,u=0,b=0,o=new Gf(a.t);o.a<o.c.c.length;)b+=(r=$H(J0(o),268)).c;for(i=new Gf(a.i);i.a<i.c.c.length;)u+=(r=$H(J0(i),268)).c;a.n=u,a.u=b,0==b?n5(_,a,_.c.b,_.c):0==u&&n5(S,a,S.c.b,S.c)}for(T=E4(e),g=(d=e.c.length)+1,v=d-1,f=new Dv;0!=T.a.gc();){for(;0!=_.b;)SL(0!=_.b),w=$H(Ote(_,_.a.a),128),T.a.Bc(w),w.s=v--,rNe(w,S,_);for(;0!=S.b;)SL(0!=S.b),x=$H(Ote(S,S.a.a),128),T.a.Bc(x),x.s=g++,rNe(x,S,_);for(p=PYe,c=T.a.ec().Kc();c.Ob();)(A=(a=$H(c.Pb(),128)).u-a.n)>=p&&(A>p&&(f.c=N8(Met,jKe,1,0,5,1),p=A),f.c[f.c.length]=a);0!=f.c.length&&(h=$H(NQ(f,gAe(t,f.c.length)),128),T.a.Bc(h),h.s=g++,rNe(h,S,_),f.c=N8(Met,jKe,1,0,5,1))}for(y=e.c.length+1,s=new Gf(e);s.a<s.c.c.length;)(a=$H(J0(s),128)).s<d&&(a.s+=y);for(E=new Gf(e);E.a<E.c.c.length;)for(n=new x2((x=$H(J0(E),128)).t,0);n.b<n.d.gc();)SL(n.b<n.d.gc()),C=(r=$H(n.d.Xb(n.c=n.b++),268)).b,x.s>C.s&&(cK(n),A9(C.i,r),r.c>0&&(r.a=C,GH(C.t,r),r.b=x,GH(x.i,r)))}function kVe(e){var t,n,r,i,o;switch(t=e.c){case 11:return e.Ml();case 12:return e.Ol();case 14:return e.Ql();case 15:return e.Tl();case 16:return e.Rl();case 17:return e.Ul();case 21:return KVe(e),hKe(),hKe(),aRt;case 10:switch(e.a){case 65:return e.yl();case 90:return e.Dl();case 122:return e.Kl();case 98:return e.El();case 66:return e.zl();case 60:return e.Jl();case 62:return e.Hl()}}switch(o=bVe(e),t=e.c){case 3:return e.Zl(o);case 4:return e.Xl(o);case 5:return e.Yl(o);case 0:if(123==e.a&&e.d<e.j){if(i=e.d,r=0,n=-1,!((t=cY(e.i,i++))>=48&&t<=57))throw jv(new iw(bKe((oD(),W8e))));for(r=t-48;i<e.j&&(t=cY(e.i,i++))>=48&&t<=57;)if((r=10*r+t-48)<0)throw jv(new iw(bKe((oD(),Y8e))));if(n=r,44==t){if(i>=e.j)throw jv(new iw(bKe((oD(),V8e))));if((t=cY(e.i,i++))>=48&&t<=57){for(n=t-48;i<e.j&&(t=cY(e.i,i++))>=48&&t<=57;)if((n=10*n+t-48)<0)throw jv(new iw(bKe((oD(),Y8e))));if(r>n)throw jv(new iw(bKe((oD(),K8e))))}else n=-1}if(125!=t)throw jv(new iw(bKe((oD(),G8e))));e.sl(i)?(hKe(),hKe(),o=new l4(9,o),e.d=i+1):(hKe(),hKe(),o=new l4(3,o),e.d=i),o.dm(r),o.cm(n),KVe(e)}}return o}function OVe(e,t,n,r,i){var o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S;for(p=new q6(t.b),A=new q6(t.b),h=new q6(t.b),_=new q6(t.b),g=new q6(t.b),w=sve(t,0);w.b!=w.d.c;)for(s=new Gf((b=$H(d3(w),11)).g);s.a<s.c.c.length;)if((o=$H(J0(s),17)).c.i==o.d.i){if(b.j==o.d.j){_.c[_.c.length]=o;continue}if(b.j==(bGe(),sOt)&&o.d.j==EOt){g.c[g.c.length]=o;continue}}for(l=new Gf(g);l.a<l.c.c.length;)P$e(e,o=$H(J0(l),17),n,r,(bGe(),aOt));for(a=new Gf(_);a.a<a.c.c.length;)o=$H(J0(a),17),Fh(x=new MAe(e),(oCe(),Tst)),lle(x,(jVe(),evt),(Kxe(),Wkt)),lle(x,(lKe(),fht),o),lle(E=new CCe,fht,o.d),Hke(E,(bGe(),COt)),CZ(E,x),lle(S=new CCe,fht,o.c),Hke(S,aOt),CZ(S,x),lle(o.c,wht,x),lle(o.d,wht,x),EZ(o,null),xZ(o,null),n.c[n.c.length]=x,lle(x,$dt,the(2));for(y=sve(t,0);y.b!=y.d.c;)c=(b=$H(d3(y),11)).e.c.length>0,m=b.g.c.length>0,c&&m?h.c[h.c.length]=b:c?p.c[p.c.length]=b:m&&(A.c[A.c.length]=b);for(f=new Gf(p);f.a<f.c.c.length;)GH(i,jHe(e,$H(J0(f),11),null,n));for(v=new Gf(A);v.a<v.c.c.length;)GH(i,jHe(e,null,$H(J0(v),11),n));for(d=new Gf(h);d.a<d.c.c.length;)GH(i,jHe(e,u=$H(J0(d),11),u,n))}function MVe(e){var t,n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x;for(g=new Nk(Lqe,Lqe),t=new Nk(Bqe,Bqe),w=new Gf(e);w.a<w.c.c.length;)y=$H(J0(w),8),g.a=r.Math.min(g.a,y.a),g.b=r.Math.min(g.b,y.b),t.a=r.Math.max(t.a,y.a),t.b=r.Math.max(t.b,y.b);for(c=new Nk(t.a-g.a,t.b-g.b),u=new Xje(new Nk(g.a-50,g.b-c.a-50),new Nk(g.a-50,t.b+c.a+50),new Nk(t.a+c.b/2+50,g.b+c.b/2)),b=new LA,o=new Dv,n=new Dv,b.a.zc(u,b),x=new Gf(e);x.a<x.c.c.length;){for(_=$H(J0(x),8),o.c=N8(Met,jKe,1,0,5,1),A=b.a.ec().Kc();A.Ob();)G8((m=$H(A.Pb(),308)).d,m.a),Tfe(G8(m.d,_),G8(m.d,m.a))<0&&(o.c[o.c.length]=m);for(n.c=N8(Met,jKe,1,0,5,1),v=new Gf(o);v.a<v.c.c.length;)for(f=new Gf((m=$H(J0(v),308)).e);f.a<f.c.c.length;){for(d=$H(J0(f),168),a=!0,l=new Gf(o);l.a<l.c.c.length;)(s=$H(J0(l),308))!=m&&(rY(d,NQ(s.e,0))||rY(d,NQ(s.e,1))||rY(d,NQ(s.e,2)))&&(a=!1);a&&(n.c[n.c.length]=d)}for(aSe(b,o),e5(b,new he),h=new Gf(n);h.a<h.c.c.length;)_G(b,new Xje(_,(d=$H(J0(h),168)).a,d.b))}for(e5(b,new yp(p=new LA)),i=p.a.ec().Kc();i.Ob();)(B9(u,(d=$H(i.Pb(),168)).a)||B9(u,d.b))&&i.Qb();return e5(p,new fe),p}function IVe(e){var t,n,r;switch(n=$H(vSe(e,(lKe(),Xdt)),21),t=bI(Dat),$H(vSe(e,(jVe(),smt)),334)==(ode(),gkt)&&qoe(t,Nat),Hy(_B(vSe(e,omt)))?fQ(t,(ASe(),Lat),(uKe(),jlt)):fQ(t,(ASe(),Pat),(uKe(),jlt)),null!=vSe(e,(C6(),_St))&&qoe(t,Rat),(Hy(_B(vSe(e,pmt)))||Hy(_B(vSe(e,amt))))&&Gz(t,(ASe(),$at),(uKe(),elt)),$H(vSe(e,zgt),103).g){case 2:case 3:case 4:Gz(fQ(t,(ASe(),Lat),(uKe(),nlt)),$at,tlt)}switch(n.Hc((dBe(),ldt))&&Gz(fQ(fQ(t,(ASe(),Lat),(uKe(),Zst)),Fat,Xst),$at,Jst),UO(vSe(e,Emt))!==UO((sRe(),TAt))&&fQ(t,(ASe(),Pat),(uKe(),Dlt)),n.Hc(gdt)&&(fQ(t,(ASe(),Lat),(uKe(),Flt)),fQ(t,Bat,Blt),fQ(t,Pat,Plt)),UO(vSe(e,Sgt))!==UO((qSe(),rdt))&&UO(vSe(e,Xgt))!==UO((xfe(),YTt))&&Gz(t,(ASe(),$at),(uKe(),glt)),Hy(_B(vSe(e,cmt)))&&fQ(t,(ASe(),Pat),(uKe(),plt)),Hy(_B(vSe(e,jgt)))&&fQ(t,(ASe(),Pat),(uKe(),Glt)),BNe(e)&&(r=(UO(vSe(e,smt))===UO(gkt)?$H(vSe(e,Lgt),292):$H(vSe(e,Bgt),292))==(Bae(),ydt)?(uKe(),Llt):(uKe(),Ylt),fQ(t,(ASe(),Fat),r)),$H(vSe(e,Qvt),377).g){case 1:fQ(t,(ASe(),Fat),(uKe(),Vlt));break;case 2:Gz(fQ(fQ(t,(ASe(),Pat),(uKe(),Vst)),Fat,Kst),$at,Yst)}return UO(vSe(e,Igt))!==UO((vle(),DAt))&&fQ(t,(ASe(),Pat),(uKe(),Klt)),t}function DVe(e){DS(e,new xEe(m_(h_(g_(p_(new ms,M4e),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new es))),o2(e,M4e,VJe,1.3),o2(e,M4e,O4e,vve(pxt)),o2(e,M4e,KJe,Txt),o2(e,M4e,mZe,15),o2(e,M4e,o3e,vve(dxt)),o2(e,M4e,SZe,vve(yxt)),o2(e,M4e,$Ze,vve(wxt)),o2(e,M4e,EZe,vve(_xt)),o2(e,M4e,CZe,vve(bxt)),o2(e,M4e,xZe,vve(xxt)),o2(e,M4e,TZe,vve(kxt)),o2(e,M4e,w4e,vve(Sxt)),o2(e,M4e,_4e,vve(Axt)),o2(e,M4e,S4e,vve(Ext)),o2(e,M4e,C4e,vve(Oxt)),o2(e,M4e,T4e,vve(gxt)),o2(e,M4e,yZe,vve(mxt)),o2(e,M4e,v3e,vve(vxt)),o2(e,M4e,E4e,vve(fxt)),o2(e,M4e,x4e,vve(hxt)),o2(e,M4e,k4e,vve(Ixt))}function NVe(e,t,n){var r,i,o,a,s,l,c,u,d,h,f,p,g;if(null==n)return null;if(e.a!=t.Aj())throw jv(new Py(f6e+t.ne()+p6e));if(rN(t,457)){if(!(g=EBe($H(t,671),n)))throw jv(new Py(g6e+n+"' is not a valid enumerator of '"+t.ne()+"'"));return g}switch(Cde((TTe(),qDt),t).cl()){case 2:n=FHe(n,!1);break;case 3:n=FHe(n,!0)}if(r=Cde(qDt,t).$k())return r.Aj().Nh().Kh(r,n);if(d=Cde(qDt,t).al()){for(g=new Dv,c=0,u=(l=Ace(n)).length;c<u;++c)s=l[c],GH(g,d.Aj().Nh().Kh(d,s));return g}if(!(p=Cde(qDt,t).bl()).dc()){for(f=p.Kc();f.Ob();){h=$H(f.Pb(),148);try{if(null!=(g=h.Aj().Nh().Kh(h,n)))return g}catch(e){if(!rN(e=use(e),60))throw jv(e)}}throw jv(new Py(g6e+n+"' does not match any member types of the union datatype '"+t.ne()+"'"))}if($H(t,834).Fj(),!(i=Nde(t.Bj())))return null;if(i==Stt){o=0;try{o=u$e(n,PYe,RKe)&KYe}catch(e){if(!rN(e=use(e),127))throw jv(e);o=V9(n)[0]}return cse(o)}if(i==Att){for(a=0;a<TMt.length;++a)try{return $S(TMt[a],n)}catch(e){if(!rN(e=use(e),32))throw jv(e)}throw jv(new Py(g6e+n+"' is not a date formatted string of the form yyyy-MM-dd'T'HH:mm:ss'.'SSSZ or a valid subset thereof"))}throw jv(new Py(g6e+n+"' is invalid. "))}function RVe(e,t){var n,r,i,o,a,s,l,c;if(n=0,a=0,o=t.length,s=null,c=new Tw,a<o&&(d0(a,t.length),43==t.charCodeAt(a))&&(++n,++a<o&&(d0(a,t.length),43==t.charCodeAt(a)||(d0(a,t.length),45==t.charCodeAt(a)))))throw jv(new xw(Rqe+t+'"'));for(;a<o&&(d0(a,t.length),46!=t.charCodeAt(a))&&(d0(a,t.length),101!=t.charCodeAt(a))&&(d0(a,t.length),69!=t.charCodeAt(a));)++a;if(c.a+=""+cL(null==t?QKe:(bK(t),t),n,a),a<o&&(d0(a,t.length),46==t.charCodeAt(a))){for(n=++a;a<o&&(d0(a,t.length),101!=t.charCodeAt(a))&&(d0(a,t.length),69!=t.charCodeAt(a));)++a;e.e=a-n,c.a+=""+cL(null==t?QKe:(bK(t),t),n,a)}else e.e=0;if(a<o&&(d0(a,t.length),101==t.charCodeAt(a)||(d0(a,t.length),69==t.charCodeAt(a)))&&(n=++a,a<o&&(d0(a,t.length),43==t.charCodeAt(a))&&++a<o&&(d0(a,t.length),45!=t.charCodeAt(a))&&++n,s=t.substr(n,o-n),e.e=e.e-u$e(s,PYe,RKe),e.e!=CJ(e.e)))throw jv(new xw("Scale out of range."));if((l=c.a).length<16){if(e.f=(null==Ktt&&(Ktt=new RegExp("^[+-]?\\d*$","i")),Ktt.test(l)?parseInt(l,10):NaN),isNaN(e.f))throw jv(new xw(Rqe+t+'"'));e.a=iOe(e.f)}else cge(e,new MI(l));for(e.d=c.a.length,i=0;i<c.a.length&&(45==(r=cY(c.a,i))||48==r);++i)--e.d;0==e.d&&(e.d=1)}function LVe(){LVe=M,qOe(cst=new gJ,(bGe(),hOt),mOt),qOe(cst,xOt,mOt),qOe(cst,xOt,bOt),qOe(cst,lOt,gOt),qOe(cst,lOt,mOt),qOe(cst,fOt,mOt),qOe(cst,fOt,vOt),qOe(cst,wOt,uOt),qOe(cst,wOt,mOt),qOe(cst,AOt,dOt),qOe(cst,AOt,mOt),qOe(cst,AOt,vOt),qOe(cst,AOt,uOt),qOe(cst,dOt,AOt),qOe(cst,dOt,bOt),qOe(cst,dOt,gOt),qOe(cst,dOt,mOt),qOe(cst,yOt,yOt),qOe(cst,yOt,vOt),qOe(cst,yOt,bOt),qOe(cst,pOt,pOt),qOe(cst,pOt,vOt),qOe(cst,pOt,gOt),qOe(cst,_Ot,_Ot),qOe(cst,_Ot,uOt),qOe(cst,_Ot,bOt),qOe(cst,cOt,cOt),qOe(cst,cOt,uOt),qOe(cst,cOt,gOt),qOe(cst,vOt,fOt),qOe(cst,vOt,AOt),qOe(cst,vOt,yOt),qOe(cst,vOt,pOt),qOe(cst,vOt,mOt),qOe(cst,vOt,vOt),qOe(cst,vOt,bOt),qOe(cst,vOt,gOt),qOe(cst,uOt,wOt),qOe(cst,uOt,AOt),qOe(cst,uOt,_Ot),qOe(cst,uOt,cOt),qOe(cst,uOt,uOt),qOe(cst,uOt,bOt),qOe(cst,uOt,gOt),qOe(cst,uOt,mOt),qOe(cst,bOt,xOt),qOe(cst,bOt,dOt),qOe(cst,bOt,yOt),qOe(cst,bOt,_Ot),qOe(cst,bOt,vOt),qOe(cst,bOt,uOt),qOe(cst,bOt,bOt),qOe(cst,bOt,mOt),qOe(cst,gOt,lOt),qOe(cst,gOt,dOt),qOe(cst,gOt,pOt),qOe(cst,gOt,cOt),qOe(cst,gOt,vOt),qOe(cst,gOt,uOt),qOe(cst,gOt,gOt),qOe(cst,gOt,mOt),qOe(cst,mOt,hOt),qOe(cst,mOt,xOt),qOe(cst,mOt,lOt),qOe(cst,mOt,fOt),qOe(cst,mOt,wOt),qOe(cst,mOt,AOt),qOe(cst,mOt,dOt),qOe(cst,mOt,vOt),qOe(cst,mOt,uOt),qOe(cst,mOt,bOt),qOe(cst,mOt,gOt),qOe(cst,mOt,mOt)}function BVe(e,t,n){var i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E;for(e.d=new Nk(Lqe,Lqe),e.c=new Nk(Bqe,Bqe),h=t.Kc();h.Ob();)for(b=new Gf($H(h.Pb(),37).a);b.a<b.c.c.length;)A=$H(J0(b),10),e.d.a=r.Math.min(e.d.a,A.n.a-A.d.b),e.d.b=r.Math.min(e.d.b,A.n.b-A.d.d),e.c.a=r.Math.max(e.c.a,A.n.a+A.o.a+A.d.c),e.c.b=r.Math.max(e.c.b,A.n.b+A.o.b+A.d.a);for(l=new YA,d=t.Kc();d.Ob();)i=oVe(e,$H(d.Pb(),37)),GH(l.a,i),i.a=i.a|!$H(vSe(i.c,(lKe(),Wdt)),21).dc();for(e.b=(Eue(),(E=new yt).f=new mre(n),E.b=aze(E.f,l),E),yze((p=e.b,new Wb,p)),e.e=new U_,e.a=e.b.f.e,s=new Gf(l.a);s.a<s.c.c.length;)for(o=$H(J0(s),841),y=OJ(e.b,o),JPe(o.c,y.a,y.b),m=new Gf(o.c.a);m.a<m.c.c.length;)(g=$H(J0(m),10)).k==(oCe(),xst)&&(v=uNe(e,g.n,$H(vSe(g,(lKe(),Kdt)),61)),zP(bM(g.n),v));for(a=new Gf(l.a);a.a<a.c.c.length;)for(u=new Gf(hhe(o=$H(J0(a),841)));u.a<u.c.c.length;)for(BL(x=new B_((c=$H(J0(u),17)).a),0,p0(c.c)),RU(x,p0(c.d)),f=null,_=sve(x,0);_.b!=_.d.c;)w=$H(d3(_),8),f?(one(f.a,w.a)?(e.e.a=r.Math.min(e.e.a,f.a),e.a.a=r.Math.max(e.a.a,f.a)):one(f.b,w.b)&&(e.e.b=r.Math.min(e.e.b,f.b),e.a.b=r.Math.max(e.a.b,f.b)),f=w):f=w;HL(e.e),zP(e.a,e.e)}function PVe(e){VDe(e.b,V7e,Sse(Uw(Ytt,1),sYe,2,6,[Y7e,"ConsistentTransient"])),VDe(e.a,V7e,Sse(Uw(Ytt,1),sYe,2,6,[Y7e,"WellFormedSourceURI"])),VDe(e.o,V7e,Sse(Uw(Ytt,1),sYe,2,6,[Y7e,"InterfaceIsAbstract AtMostOneID UniqueFeatureNames UniqueOperationSignatures NoCircularSuperTypes WellFormedMapEntryClass ConsistentSuperTypes DisjointFeatureAndOperationSignatures"])),VDe(e.p,V7e,Sse(Uw(Ytt,1),sYe,2,6,[Y7e,"WellFormedInstanceTypeName UniqueTypeParameterNames"])),VDe(e.v,V7e,Sse(Uw(Ytt,1),sYe,2,6,[Y7e,"UniqueEnumeratorNames UniqueEnumeratorLiterals"])),VDe(e.R,V7e,Sse(Uw(Ytt,1),sYe,2,6,[Y7e,"WellFormedName"])),VDe(e.T,V7e,Sse(Uw(Ytt,1),sYe,2,6,[Y7e,"UniqueParameterNames UniqueTypeParameterNames NoRepeatingVoid"])),VDe(e.U,V7e,Sse(Uw(Ytt,1),sYe,2,6,[Y7e,"WellFormedNsURI WellFormedNsPrefix UniqueSubpackageNames UniqueClassifierNames UniqueNsURIs"])),VDe(e.W,V7e,Sse(Uw(Ytt,1),sYe,2,6,[Y7e,"ConsistentOpposite SingleContainer ConsistentKeys ConsistentUnique ConsistentContainer"])),VDe(e.bb,V7e,Sse(Uw(Ytt,1),sYe,2,6,[Y7e,"ValidDefaultValueLiteral"])),VDe(e.eb,V7e,Sse(Uw(Ytt,1),sYe,2,6,[Y7e,"ValidLowerBound ValidUpperBound ConsistentBounds ValidType"])),VDe(e.H,V7e,Sse(Uw(Ytt,1),sYe,2,6,[Y7e,"ConsistentType ConsistentBounds ConsistentArguments"]))}function FVe(e,t,n){var r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w;if(!t.dc()){if(i=new bb,d=(a=n||$H(t.Xb(0),17)).c,pLe(),(c=d.i.k)!=(oCe(),Cst)&&c!=Tst&&c!=xst&&c!=_st)throw jv(new Py("The target node of the edge must be a normal node or a northSouthPort."));for(cM(i,Ole(Sse(Uw(SSt,1),sYe,8,0,[d.i.n,d.n,d.a]))),(bGe(),AOt).Hc(d.j)&&(f=Uy(xB(vSe(d,(lKe(),Iht)))),n5(i,new Nk(Ole(Sse(Uw(SSt,1),sYe,8,0,[d.i.n,d.n,d.a])).a,f),i.c.b,i.c)),l=null,r=!1,s=t.Kc();s.Ob();)0!=(o=$H(s.Pb(),17).a).b&&(r?(n5(i,bN(zP(l,(SL(0!=o.b),$H(o.a.a.c,8))),.5),i.c.b,i.c),r=!1):r=!0,l=$D((SL(0!=o.b),$H(o.c.b.c,8))),Fie(i,o),Aq(o));h=a.d,AOt.Hc(h.j)&&(f=Uy(xB(vSe(h,(lKe(),Iht)))),n5(i,new Nk(Ole(Sse(Uw(SSt,1),sYe,8,0,[h.i.n,h.n,h.a])).a,f),i.c.b,i.c)),cM(i,Ole(Sse(Uw(SSt,1),sYe,8,0,[h.i.n,h.n,h.a]))),e.d==(zce(),ebt)&&(SL(0!=i.b),p=$H(i.a.a.c,8),g=$H(Rve(i,1),8),(m=new WZ(lce(d.j))).a*=5,m.b*=5,v=WP(new Nk(g.a,g.b),p),zP(A=new Nk(tZ(m.a,v.a),tZ(m.b,v.b)),p),JG(sve(i,1),A),SL(0!=i.b),b=$H(i.c.b.c,8),y=$H(Rve(i,i.b-2),8),(m=new WZ(lce(h.j))).a*=5,m.b*=5,v=WP(new Nk(y.a,y.b),b),zP(w=new Nk(tZ(m.a,v.a),tZ(m.b,v.b)),b),BL(i,i.b-1,w)),u=new aHe(i),Fie(a.a,FAe(u))}}function $Ve(e,t,n,i){var o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C,T,k,O,M,I,D,N,R,L;if(y=(A=$H(Gte((!e.b&&(e.b=new lF(LMt,e,4,7)),e.b),0),82)).Dg(),w=A.Eg(),b=A.Cg()/2,p=A.Bg()/2,rN(A,186)&&(y+=GJ(v=$H(A,118)).i,y+=GJ(v).i),y+=b,w+=p,k=(C=$H(Gte((!e.b&&(e.b=new lF(LMt,e,4,7)),e.b),0),82)).Dg(),O=C.Eg(),T=C.Cg()/2,_=C.Bg()/2,rN(C,186)&&(k+=GJ(S=$H(C,118)).i,k+=GJ(S).i),k+=T,O+=_,0==(!e.a&&(e.a=new eG(PMt,e,6,6)),e.a).i)Z_(),l=new al,c7((!e.a&&(e.a=new eG(PMt,e,6,6)),e.a),l);else if((!e.a&&(e.a=new eG(PMt,e,6,6)),e.a).i>1)for(f=new rL((!e.a&&(e.a=new eG(PMt,e,6,6)),e.a));f.e!=f.i.gc();)K_e(f);for(g=k,k>y+b?g=y+b:k<y-b&&(g=y-b),m=O,O>w+p?m=w+p:O<w-p&&(m=w-p),g>y-b&&g<y+b&&m>w-p&&m<w+p&&(g=y+b),Tne(s=$H(Gte((!e.a&&(e.a=new eG(PMt,e,6,6)),e.a),0),202),g),One(s,m),x=y,y>k+T?x=k+T:y<k-T&&(x=k-T),E=w,w>O+_?E=O+_:w<O-_&&(E=O-_),x>k-T&&x<k+T&&E>O-_&&E<O+_&&(E=O+_),_ne(s,x),kne(s,E),sQe((!s.a&&(s.a=new MN(DMt,s,5)),s.a)),a=gAe(t,5),A==C&&++a,I=x-g,R=E-m,u=.20000000298023224*r.Math.sqrt(I*I+R*R),D=I/(a+1),L=R/(a+1),M=g,N=m,c=0;c<a;c++)N+=L,(d=(M+=D)+jDe(t,24)*oXe*u-u/2)<0?d=1:d>n&&(d=n-1),(h=N+jDe(t,24)*oXe*u-u/2)<0?h=1:h>i&&(h=i-1),Z_(),yne(o=new ol,d),wne(o,h),c7((!s.a&&(s.a=new MN(DMt,s,5)),s.a),o)}function jVe(){jVe=M,sKe(),gvt=yTt,mvt=wTt,vvt=_Tt,Avt=xTt,yvt=ETt,wvt=STt,Evt=TTt,Cvt=OTt,Tvt=MTt,Svt=kTt,kvt=ITt,Mvt=DTt,Dvt=LTt,xvt=CTt,cKe(),pvt=Ppt,bvt=Fpt,_vt=$pt,Ovt=jpt,lvt=new WI(gTt,the(0)),cvt=Rpt,uvt=Lpt,dvt=Bpt,Qvt=ugt,Lvt=Qpt,Bvt=Gpt,$vt=egt,Pvt=Ypt,Fvt=Xpt,Wvt=ggt,zvt=hgt,Hvt=agt,jvt=igt,Uvt=lgt,Lmt=Spt,Bmt=Cpt,nmt=Bft,rmt=$ft,zmt=new GI(12),Qmt=new WI(WCt,zmt),xfe(),Xgt=new WI(mCt,Jgt=KTt),Zmt=new WI(iTt,0),hvt=new WI(mTt,the(1)),wgt=new WI(rCt,fZe),Umt=QCt,evt=oTt,ovt=hTt,Qgt=uCt,bgt=tCt,smt=wCt,fvt=new WI(bTt,(lR(),!0)),hmt=ECt,fmt=SCt,Fmt=BCt,Hmt=HCt,$mt=FCt,Fde(),zgt=new WI(dCt,Ggt=$Tt),Mmt=RCt,Omt=DCt,rvt=cTt,nvt=lTt,ivt=dTt,rve(),new WI(XCt,Vmt=Hkt),Ymt=eTt,qmt=tTt,Xmt=nTt,Kmt=ZCt,Rvt=Upt,Smt=upt,Emt=lpt,Nvt=Hpt,bmt=ept,Ugt=_ft,Hgt=yft,Ngt=oft,Rgt=aft,Bgt=dft,Lgt=sft,jgt=Aft,Tmt=hpt,kmt=fpt,gmt=Vft,Pmt=Mpt,Dmt=vpt,omt=Uft,Rmt=xpt,emt=Dft,tmt=Rft,Dgt=lCt,Imt=ppt,Sgt=Kht,Egt=Ght,xgt=Wht,cmt=Wft,lmt=zft,umt=Gft,jmt=$Ct,mmt=kCt,imt=ACt,Ygt=pCt,Kgt=fCt,Pgt=pft,tvt=sTt,_gt=sCt,dmt=xCt,Jmt=rTt,Wmt=VCt,Gmt=YCt,wmt=rpt,_mt=opt,svt=pTt,ygt=zht,xmt=spt,qgt=kft,Vgt=Cft,Cmt=MCt,vmt=Xft,Nmt=ypt,Ivt=NTt,Wgt=Eft,avt=Dpt,Zgt=Mft,Amt=Zft,Fgt=mft,pmt=TCt,ymt=npt,$gt=vft,Igt=rft,Ogt=eft,Tgt=Jht,kgt=Zht,Mgt=nft,Cgt=qht,amt=Qft}function HVe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w;if(oUe(),A=e.e,c=e.d,i=e.a,0==A)switch(t){case 0:return"0";case 1:return Gqe;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return(m=new Cw).a+="0E",m.a+=-t,m.a}if(g=N8(TRt,GYe,25,1+(p=10*c+1+7),15,1),n=p,1==c)if((o=i[0])<0){w=e1(o,zqe);do{u=w,w=k_e(w,10),g[--n]=48+fz(tfe(u,rfe(w,10)))&KYe}while(0!=Vue(w,0))}else{w=o;do{u=w,w=w/10|0,g[--n]=u-10*w+48&KYe}while(0!=w)}else{iUe(i,0,b=N8(kRt,lqe,25,c,15,1),0,y=c);e:for(;;){for(v=0,s=y-1;s>=0;s--)h=cEe(nfe(AW(v,32),e1(b[s],zqe))),b[s]=fz(h),v=fz(bW(h,32));f=fz(v),d=n;do{g[--n]=48+f%10&KYe}while(0!=(f=f/10|0)&&0!=n);for(r=9-d+n,a=0;a<r&&n>0;a++)g[--n]=48;for(l=y-1;0==b[l];l--)if(0==l)break e;y=l+1}for(;48==g[n];)++n}return A<0&&(g[--n]=45),$ge(g,n,p-n)}function UVe(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w;switch(e.c=t,e.g=new Nv,US(),Zfe(new Sp(new Ry(e.c))),A=EB(XIe(e.c,(xSe(),fEt))),s=$H(XIe(e.c,gEt),316),y=$H(XIe(e.c,mEt),429),o=$H(XIe(e.c,lEt),482),b=$H(XIe(e.c,pEt),430),e.j=Uy(xB(XIe(e.c,vEt))),a=e.a,s.g){case 0:a=e.a;break;case 1:a=e.b;break;case 2:a=e.i;break;case 3:a=e.e;break;case 4:a=e.f;break;default:throw jv(new Py(D4e+(null!=s.f?s.f:""+s.g)))}if(e.d=new RJ(a,y,o),lle(e.d,(Woe(),Kit),_B(XIe(e.c,uEt))),e.d.c=Hy(_B(XIe(e.c,cEt))),0==Yq(e.c).i)return e.d;for(u=new ON(Yq(e.c));u.e!=u.i.gc();){for(h=(c=$H(bve(u),33)).g/2,d=c.f/2,w=new Nk(c.i+h,c.j+d);lG(e.g,w);)PL(w,(r.Math.random()-.5)*uZe,(r.Math.random()-.5)*uZe);p=$H(XIe(c,(sKe(),MCt)),142),g=new OZ(w,new zY(w.a-h-e.j/2-p.b,w.b-d-e.j/2-p.d,c.g+e.j+(p.b+p.c),c.f+e.j+(p.d+p.a))),GH(e.d.i,g),VK(e.g,w,new nO(g,c))}switch(b.g){case 0:if(null==A)e.d.d=$H(NQ(e.d.i,0),65);else for(v=new Gf(e.d.i);v.a<v.c.c.length;)g=$H(J0(v),65),null!=(f=$H($H(LV(e.g,g.a),46).b,33).zg())&&vF(f,A)&&(e.d.d=g);break;case 1:for((n=new Nk(e.c.g,e.c.f)).a*=.5,n.b*=.5,PL(n,e.c.i,e.c.j),i=Lqe,m=new Gf(e.d.i);m.a<m.c.c.length;)(l=G8((g=$H(J0(m),65)).a,n))<i&&(i=l,e.d.d=g);break;default:throw jv(new Py(D4e+(null!=b.f?b.f:""+b.g)))}return e.d}function QVe(e,t,n){var i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x;for(_=$H(Gte((!e.a&&(e.a=new eG(PMt,e,6,6)),e.a),0),202),d=new bb,w=new Nv,x=Z$e(_),yke(w.f,_,x),f=new Nv,i=new YE,g=DG(Gne(Sse(Uw(Ret,1),jKe,20,0,[(!t.d&&(t.d=new lF(BMt,t,8,5)),t.d),(!t.e&&(t.e=new lF(BMt,t,7,4)),t.e)])));fIe(g);){if(p=$H(z5(g),79),1!=(!e.a&&(e.a=new eG(PMt,e,6,6)),e.a).i)throw jv(new Py($5e+(!e.a&&(e.a=new eG(PMt,e,6,6)),e.a).i));p!=e&&(n5(i,v=$H(Gte((!p.a&&(p.a=new eG(PMt,p,6,6)),p.a),0),202),i.c.b,i.c),(m=$H(HO(OX(w.f,v)),12))||(m=Z$e(v),yke(w.f,v,m)),h=n?WP(new hI($H(NQ(x,x.c.length-1),8)),$H(NQ(m,m.c.length-1),8)):WP(new hI((u0(0,x.c.length),$H(x.c[0],8))),(u0(0,m.c.length),$H(m.c[0],8))),yke(f.f,v,h))}if(0!=i.b)for(A=$H(NQ(x,n?x.c.length-1:0),8),u=1;u<x.c.length;u++){for(b=$H(NQ(x,n?x.c.length-1-u:u),8),o=sve(i,0);o.b!=o.d.c;)v=$H(d3(o),202),(m=$H(HO(OX(w.f,v)),12)).c.length<=u?vte(o):(y=zP(new hI($H(NQ(m,n?m.c.length-1-u:u),8)),$H(HO(OX(f.f,v)),8)),b.a==y.a&&b.b==y.b||(a=b.a-A.a,l=b.b-A.b,(s=y.a-A.a)*l==(c=y.b-A.b)*a&&(0==a||isNaN(a)?a:a<0?-1:1)==(0==s||isNaN(s)?s:s<0?-1:1)&&(0==l||isNaN(l)?l:l<0?-1:1)==(0==c||isNaN(c)?c:c<0?-1:1)?(r.Math.abs(a)<r.Math.abs(s)||r.Math.abs(l)<r.Math.abs(c))&&n5(d,b,d.c.b,d.c):u>1&&n5(d,A,d.c.b,d.c),vte(o)));A=b}return d}function zVe(e,t,n){var r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C,T,k,O,M,I;for(kEe(n,"Greedy cycle removal",1),I=(b=t.a).c.length,e.a=N8(kRt,lqe,25,I,15,1),e.c=N8(kRt,lqe,25,I,15,1),e.b=N8(kRt,lqe,25,I,15,1),c=0,v=new Gf(b);v.a<v.c.c.length;){for((g=$H(J0(v),10)).p=c,E=new Gf(g.j);E.a<E.c.c.length;){for(s=new Gf((w=$H(J0(E),11)).e);s.a<s.c.c.length;)(r=$H(J0(s),17)).c.i!=g&&(C=$H(vSe(r,(jVe(),cvt)),19).a,e.a[c]+=C>0?C+1:1);for(a=new Gf(w.g);a.a<a.c.c.length;)(r=$H(J0(a),17)).d.i!=g&&(C=$H(vSe(r,(jVe(),cvt)),19).a,e.c[c]+=C>0?C+1:1)}0==e.c[c]?RU(e.e,g):0==e.a[c]&&RU(e.f,g),++c}for(p=-1,f=1,d=new Dv,e.d=$H(vSe(t,(lKe(),Eht)),230);I>0;){for(;0!=e.e.b;)k=$H(fU(e.e),10),e.b[k.p]=p--,KFe(e,k),--I;for(;0!=e.f.b;)O=$H(fU(e.f),10),e.b[O.p]=f++,KFe(e,O),--I;if(I>0){for(h=PYe,A=new Gf(b);A.a<A.c.c.length;)g=$H(J0(A),10),0==e.b[g.p]&&(y=e.c[g.p]-e.a[g.p])>=h&&(y>h&&(d.c=N8(Met,jKe,1,0,5,1),h=y),d.c[d.c.length]=g);u=e.Zf(d),e.b[u.p]=f++,KFe(e,u),--I}}for(T=b.c.length+1,c=0;c<b.c.length;c++)e.b[c]<0&&(e.b[c]+=T);for(m=new Gf(b);m.a<m.c.c.length;)for(x=0,S=(_=T2((g=$H(J0(m),10)).j)).length;x<S;++x)for(o=0,l=(i=X1((w=_[x]).g)).length;o<l;++o)M=(r=i[o]).d.i.p,e.b[g.p]>e.b[M]&&(Zje(r,!0),lle(t,Hdt,(lR(),!0)));e.a=null,e.c=null,e.b=null,Aq(e.f),Aq(e.e),jCe(n)}function WVe(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v;for(r=new Dv,s=new Dv,m=t/2,f=e.gc(),i=$H(e.Xb(0),8),v=$H(e.Xb(1),8),GH(r,(u0(0,(p=KIe(i.a,i.b,v.a,v.b,m)).c.length),$H(p.c[0],8))),GH(s,(u0(1,p.c.length),$H(p.c[1],8))),c=2;c<f;c++)g=i,i=v,v=$H(e.Xb(c),8),GH(r,(u0(1,(p=KIe(i.a,i.b,g.a,g.b,m)).c.length),$H(p.c[1],8))),GH(s,(u0(0,p.c.length),$H(p.c[0],8))),GH(r,(u0(0,(p=KIe(i.a,i.b,v.a,v.b,m)).c.length),$H(p.c[0],8))),GH(s,(u0(1,p.c.length),$H(p.c[1],8)));for(GH(r,(u0(1,(p=KIe(v.a,v.b,i.a,i.b,m)).c.length),$H(p.c[1],8))),GH(s,(u0(0,p.c.length),$H(p.c[0],8))),n=new bb,a=new Dv,RU(n,(u0(0,r.c.length),$H(r.c[0],8))),u=1;u<r.c.length-2;u+=2)u0(u,r.c.length),o=$H(r.c[u],8),h=HTe((u0(u-1,r.c.length),$H(r.c[u-1],8)),o,(u0(u+1,r.c.length),$H(r.c[u+1],8)),(u0(u+2,r.c.length),$H(r.c[u+2],8))),isFinite(h.a)&&isFinite(h.b)?n5(n,h,n.c.b,n.c):n5(n,o,n.c.b,n.c);for(RU(n,$H(NQ(r,r.c.length-1),8)),GH(a,(u0(0,s.c.length),$H(s.c[0],8))),d=1;d<s.c.length-2;d+=2)u0(d,s.c.length),o=$H(s.c[d],8),h=HTe((u0(d-1,s.c.length),$H(s.c[d-1],8)),o,(u0(d+1,s.c.length),$H(s.c[d+1],8)),(u0(d+2,s.c.length),$H(s.c[d+2],8))),isFinite(h.a)&&isFinite(h.b)?a.c[a.c.length]=h:a.c[a.c.length]=o;for(GH(a,$H(NQ(s,s.c.length-1),8)),l=a.c.length-1;l>=0;l--)RU(n,(u0(l,a.c.length),$H(a.c[l],8)));return n}function GVe(e){var t,n,r,i,o,a,s,l,c,u,d,h,f;if(a=!0,d=null,r=null,i=null,t=!1,f=AIt,c=null,o=null,(l=Vme(e,s=0,kIt,OIt))<e.length&&(d0(l,e.length),58==e.charCodeAt(l))&&(d=e.substr(s,l-s),s=l+1),n=null!=d&&NE(bIt,d.toLowerCase())){if(-1==(l=e.lastIndexOf("!/")))throw jv(new Py("no archive separator"));a=!0,r=cL(e,s,++l),s=l}else s>=0&&vF(e.substr(s,2),"//")?(l=Vme(e,s+=2,MIt,IIt),r=e.substr(s,l-s),s=l):null==d||s!=e.length&&(d0(s,e.length),47==e.charCodeAt(s))||(a=!1,-1==(l=AR(e,YEe(35),s))&&(l=e.length),r=e.substr(s,l-s),s=l);if(!n&&s<e.length&&(d0(s,e.length),47==e.charCodeAt(s))&&(l=Vme(e,s+1,MIt,IIt),(u=e.substr(s+1,l-(s+1))).length>0&&58==cY(u,u.length-1)&&(i=u,s=l)),s<e.length&&(d0(s,e.length),47==e.charCodeAt(s))&&(++s,t=!0),s<e.length&&(d0(s,e.length),63!=e.charCodeAt(s))&&(d0(s,e.length),35!=e.charCodeAt(s))){for(h=new Dv;s<e.length&&(d0(s,e.length),63!=e.charCodeAt(s))&&(d0(s,e.length),35!=e.charCodeAt(s));)l=Vme(e,s,MIt,IIt),GH(h,e.substr(s,l-s)),(s=l)<e.length&&(d0(s,e.length),47==e.charCodeAt(s))&&(Kue(e,++s)||(h.c[h.c.length]=""));Kme(h,f=N8(Ytt,sYe,2,h.c.length,6,1))}return s<e.length&&(d0(s,e.length),63==e.charCodeAt(s))&&(-1==(l=uL(e,35,++s))&&(l=e.length),c=e.substr(s,l-s),s=l),s<e.length&&(o=JO(e,++s)),hze(a,d,r,i,f,c),new nPe(a,d,r,i,t,f,c,o)}function VVe(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C,T,k,O,M,I,D;for(M=new Dv,p=new Gf(t.b);p.a<p.c.c.length;)for(w=new Gf($H(J0(p),29).a);w.a<w.c.c.length;){for((y=$H(J0(w),10)).p=-1,h=PYe,E=PYe,C=new Gf(y.j);C.a<C.c.c.length;){for(o=new Gf((S=$H(J0(C),11)).e);o.a<o.c.c.length;)n=$H(J0(o),17),T=$H(vSe(n,(jVe(),dvt)),19).a,h=r.Math.max(h,T);for(i=new Gf(S.g);i.a<i.c.c.length;)n=$H(J0(i),17),T=$H(vSe(n,(jVe(),dvt)),19).a,E=r.Math.max(E,T)}lle(y,Wbt,the(h)),lle(y,Gbt,the(E))}for(v=0,f=new Gf(t.b);f.a<f.c.c.length;)for(w=new Gf($H(J0(f),29).a);w.a<w.c.c.length;)(y=$H(J0(w),10)).p<0&&((O=new nb).b=v++,yPe(e,y,O),M.c[M.c.length]=O);for(x=sL(M.c.length),d=sL(M.c.length),s=0;s<M.c.length;s++)GH(x,new Dv),GH(d,the(0));for(mWe(t,M,x,d),I=$H(Kme(M,N8(Ybt,k3e,257,M.c.length,0,1)),840),_=$H(Kme(x,N8(Bet,JJe,15,x.c.length,0,1)),192),u=N8(kRt,lqe,25,d.c.length,15,1),l=0;l<u.length;l++)u[l]=(u0(l,d.c.length),$H(d.c[l],19)).a;for(A=0,b=new Dv,c=0;c<I.length;c++)0==u[c]&&GH(b,I[c]);for(m=N8(kRt,lqe,25,I.length,15,1);0!=b.c.length;)for(m[(O=$H(s6(b,0),257)).b]=A++;!_[O.b].dc();)--u[(D=$H(_[O.b].$c(0),257)).b],0==u[D.b]&&(b.c[b.c.length]=D);for(e.a=N8(Ybt,k3e,257,I.length,0,1),a=0;a<I.length;a++)for(g=I[a],k=m[a],e.a[k]=g,g.b=k,w=new Gf(g.e);w.a<w.c.c.length;)(y=$H(J0(w),10)).p=k;return e.a}function KVe(e){var t,n,r;if(e.d>=e.j)return e.a=-1,void(e.c=1);if(t=cY(e.i,e.d++),e.a=t,1!=e.b){switch(t){case 124:r=2;break;case 42:r=3;break;case 43:r=4;break;case 63:r=5;break;case 41:r=7;break;case 46:r=8;break;case 91:r=9;break;case 94:r=11;break;case 36:r=12;break;case 40:if(r=6,e.d>=e.j)break;if(63!=cY(e.i,e.d))break;if(++e.d>=e.j)throw jv(new iw(bKe((oD(),g8e))));switch(t=cY(e.i,e.d++)){case 58:r=13;break;case 61:r=14;break;case 33:r=15;break;case 91:r=19;break;case 62:r=18;break;case 60:if(e.d>=e.j)throw jv(new iw(bKe((oD(),g8e))));if(61==(t=cY(e.i,e.d++)))r=16;else{if(33!=t)throw jv(new iw(bKe((oD(),m8e))));r=17}break;case 35:for(;e.d<e.j&&41!=(t=cY(e.i,e.d++)););if(41!=t)throw jv(new iw(bKe((oD(),v8e))));r=21;break;default:if(45==t||97<=t&&t<=122||65<=t&&t<=90){--e.d,r=22;break}if(40==t){r=23;break}throw jv(new iw(bKe((oD(),g8e))))}break;case 92:if(r=10,e.d>=e.j)throw jv(new iw(bKe((oD(),p8e))));e.a=cY(e.i,e.d++);break;default:r=0}e.c=r}else{switch(t){case 92:if(r=10,e.d>=e.j)throw jv(new iw(bKe((oD(),p8e))));e.a=cY(e.i,e.d++);break;case 45:!(512&~e.e)&&e.d<e.j&&91==cY(e.i,e.d)?(++e.d,r=24):r=0;break;case 91:if(512&~e.e&&e.d<e.j&&58==cY(e.i,e.d)){++e.d,r=20;break}default:(64512&t)==jqe&&e.d<e.j&&56320==(64512&(n=cY(e.i,e.d)))&&(e.a=$qe+(t-jqe<<10)+n-56320,++e.d),r=0}e.c=r}}function YVe(e){var t,n,r,i,o,a,s,l,c,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C,T;if((_=$H(vSe(e,(jVe(),evt)),98))!=(Kxe(),Kkt)&&_!=Ykt){for(c=new q6((ure((f=(p=e.b).c.length)+2,DYe),Zee(nfe(nfe(5,f+2),(f+2)/10|0)))),g=new q6((ure(f+2,DYe),Zee(nfe(nfe(5,f+2),(f+2)/10|0)))),GH(c,new Nv),GH(c,new Nv),GH(g,new Dv),GH(g,new Dv),w=new Dv,t=0;t<f;t++)for(u0(t,p.c.length),n=$H(p.c[t],29),u0(t,c.c.length),x=$H(c.c[t],83),m=new Nv,c.c[c.c.length]=m,u0(t,g.c.length),S=$H(g.c[t],15),A=new Dv,g.c[g.c.length]=A,i=new Gf(n.a);i.a<i.c.c.length;)if(rhe(r=$H(J0(i),10)))w.c[w.c.length]=r;else{for(l=new aW(XN(cfe(r).a.Kc(),new u));fIe(l);)rhe(C=(a=$H(z5(l),17)).c.i)&&((E=$H(x.xc(vSe(C,(lKe(),fht))),10))||(E=aOe(e,C),x.zc(vSe(C,fht),E),S.Fc(E)),EZ(a,$H(NQ(E.j,1),11)));for(s=new aW(XN(ufe(r).a.Kc(),new u));fIe(s);)rhe(T=(a=$H(z5(s),17)).d.i)&&((v=$H(LV(m,vSe(T,(lKe(),fht))),10))||(v=aOe(e,T),VK(m,vSe(T,fht),v),A.c[A.c.length]=v),xZ(a,$H(NQ(v.j,0),11)))}for(d=0;d<g.c.length;d++)if(u0(d,g.c.length),!(b=$H(g.c[d],15)).dc())for(h=null,0==d?(h=new jV(e),IZ(0,p.c.length),xC(p.c,0,h)):d==c.c.length-1?(h=new jV(e),p.c[p.c.length]=h):(u0(d-1,p.c.length),h=$H(p.c[d-1],29)),o=b.Kc();o.Ob();)SZ($H(o.Pb(),10),h);for(y=new Gf(w);y.a<y.c.c.length;)SZ($H(J0(y),10),null);lle(e,(lKe(),Gdt),w)}}function qVe(e,t,n){var r,i,o,a,s,l,c,d,h,f,p,g,m,v,A,b,y,w,_;if(kEe(n,"Coffman-Graham Layering",1),0!=t.a.c.length){for(_=$H(vSe(t,(jVe(),vmt)),19).a,l=0,a=0,f=new Gf(t.a);f.a<f.c.c.length;)for((h=$H(J0(f),10)).p=l++,o=new aW(XN(ufe(h).a.Kc(),new u));fIe(o);)(i=$H(z5(o),17)).p=a++;for(e.d=N8(ORt,XXe,25,l,16,1),e.a=N8(ORt,XXe,25,a,16,1),e.b=N8(kRt,lqe,25,l,15,1),e.e=N8(kRt,lqe,25,l,15,1),e.f=N8(kRt,lqe,25,l,15,1),hre(e.c),nxe(e,t),g=new WW(new Rg(e)),w=new Gf(t.a);w.a<w.c.c.length;){for(o=new aW(XN(cfe(b=$H(J0(w),10)).a.Kc(),new u));fIe(o);)i=$H(z5(o),17),e.a[i.p]||++e.b[b.p];0==e.b[b.p]&&F8(eSe(g,b))}for(s=0;0!=g.b.c.length;)for(b=$H(vee(g),10),e.f[b.p]=s++,o=new aW(XN(ufe(b).a.Kc(),new u));fIe(o);)i=$H(z5(o),17),e.a[i.p]||(v=i.d.i,--e.b[v.p],qOe(e.c,v,the(e.f[b.p])),0==e.b[v.p]&&F8(eSe(g,v)));for(p=new WW(new Lg(e)),y=new Gf(t.a);y.a<y.c.c.length;){for(o=new aW(XN(ufe(b=$H(J0(y),10)).a.Kc(),new u));fIe(o);)i=$H(z5(o),17),e.a[i.p]||++e.e[b.p];0==e.e[b.p]&&F8(eSe(p,b))}for(r=n0(t,d=new Dv);0!=p.b.c.length;)for(A=$H(vee(p),10),(r.a.c.length>=_||!Dge(A,r))&&(r=n0(t,d)),SZ(A,r),o=new aW(XN(cfe(A).a.Kc(),new u));fIe(o);)i=$H(z5(o),17),e.a[i.p]||(m=i.c.i,--e.e[m.p],0==e.e[m.p]&&F8(eSe(p,m)));for(c=d.c.length-1;c>=0;--c)GH(t.b,(u0(c,d.c.length),$H(d.c[c],29)));t.a.c=N8(Met,jKe,1,0,5,1),jCe(n)}else jCe(n)}function XVe(e){var t,n,r,i,o,a,s,l;for(e.b=1,KVe(e),t=null,0==e.c&&94==e.a?(KVe(e),hKe(),hKe(),YLe(t=new x1(4),0,oet),a=new x1(4)):(hKe(),hKe(),a=new x1(4)),i=!0;1!=(l=e.c);){if(0==l&&93==e.a&&!i){t&&(Gze(t,a),a=t);break}if(n=e.a,r=!1,10==l)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:sUe(a,f$e(n)),r=!0;break;case 105:case 73:case 99:case 67:sUe(a,f$e(n)),(n=-1)<0&&(r=!0);break;case 112:case 80:if(!(s=ROe(e,n)))throw jv(new iw(bKe((oD(),k8e))));sUe(a,s),r=!0;break;default:n=HBe(e)}else if(24==l&&!i){if(t&&(Gze(t,a),a=t),Gze(a,XVe(e)),0!=e.c||93!=e.a)throw jv(new iw(bKe((oD(),D8e))));break}if(KVe(e),!r){if(0==l){if(91==n)throw jv(new iw(bKe((oD(),N8e))));if(93==n)throw jv(new iw(bKe((oD(),R8e))));if(45==n&&!i&&93!=e.a)throw jv(new iw(bKe((oD(),L8e))))}if(0!=e.c||45!=e.a||45==n&&i)YLe(a,n,n);else{if(KVe(e),1==(l=e.c))throw jv(new iw(bKe((oD(),M8e))));if(0==l&&93==e.a)YLe(a,n,n),YLe(a,45,45);else{if(0==l&&93==e.a||24==l)throw jv(new iw(bKe((oD(),L8e))));if(o=e.a,0==l){if(91==o)throw jv(new iw(bKe((oD(),N8e))));if(93==o)throw jv(new iw(bKe((oD(),R8e))));if(45==o)throw jv(new iw(bKe((oD(),L8e))))}else 10==l&&(o=HBe(e));if(KVe(e),n>o)throw jv(new iw(bKe((oD(),F8e))));YLe(a,n,o)}}}i=!1}if(1==e.c)throw jv(new iw(bKe((oD(),M8e))));return _De(a),HUe(a),e.b=0,KVe(e),a}function JVe(e){VDe(e.c,P7e,Sse(Uw(Ytt,1),sYe,2,6,[q7e,"http://www.w3.org/2001/XMLSchema#decimal"])),VDe(e.d,P7e,Sse(Uw(Ytt,1),sYe,2,6,[q7e,"http://www.w3.org/2001/XMLSchema#integer"])),VDe(e.e,P7e,Sse(Uw(Ytt,1),sYe,2,6,[q7e,"http://www.w3.org/2001/XMLSchema#boolean"])),VDe(e.f,P7e,Sse(Uw(Ytt,1),sYe,2,6,[q7e,"EBoolean",Z6e,"EBoolean:Object"])),VDe(e.i,P7e,Sse(Uw(Ytt,1),sYe,2,6,[q7e,"http://www.w3.org/2001/XMLSchema#byte"])),VDe(e.g,P7e,Sse(Uw(Ytt,1),sYe,2,6,[q7e,"http://www.w3.org/2001/XMLSchema#hexBinary"])),VDe(e.j,P7e,Sse(Uw(Ytt,1),sYe,2,6,[q7e,"EByte",Z6e,"EByte:Object"])),VDe(e.n,P7e,Sse(Uw(Ytt,1),sYe,2,6,[q7e,"EChar",Z6e,"EChar:Object"])),VDe(e.t,P7e,Sse(Uw(Ytt,1),sYe,2,6,[q7e,"http://www.w3.org/2001/XMLSchema#double"])),VDe(e.u,P7e,Sse(Uw(Ytt,1),sYe,2,6,[q7e,"EDouble",Z6e,"EDouble:Object"])),VDe(e.F,P7e,Sse(Uw(Ytt,1),sYe,2,6,[q7e,"http://www.w3.org/2001/XMLSchema#float"])),VDe(e.G,P7e,Sse(Uw(Ytt,1),sYe,2,6,[q7e,"EFloat",Z6e,"EFloat:Object"])),VDe(e.I,P7e,Sse(Uw(Ytt,1),sYe,2,6,[q7e,"http://www.w3.org/2001/XMLSchema#int"])),VDe(e.J,P7e,Sse(Uw(Ytt,1),sYe,2,6,[q7e,"EInt",Z6e,"EInt:Object"])),VDe(e.N,P7e,Sse(Uw(Ytt,1),sYe,2,6,[q7e,"http://www.w3.org/2001/XMLSchema#long"])),VDe(e.O,P7e,Sse(Uw(Ytt,1),sYe,2,6,[q7e,"ELong",Z6e,"ELong:Object"])),VDe(e.Z,P7e,Sse(Uw(Ytt,1),sYe,2,6,[q7e,"http://www.w3.org/2001/XMLSchema#short"])),VDe(e.$,P7e,Sse(Uw(Ytt,1),sYe,2,6,[q7e,"EShort",Z6e,"EShort:Object"])),VDe(e._,P7e,Sse(Uw(Ytt,1),sYe,2,6,[q7e,"http://www.w3.org/2001/XMLSchema#string"]))}function ZVe(e){var t,n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C,T,k;if(1==e.c.length)return u0(0,e.c.length),$H(e.c[0],135);if(e.c.length<=0)return new S6;for(c=new Gf(e);c.a<c.c.c.length;){for(s=$H(J0(c),135),b=0,g=RKe,m=RKe,f=PYe,p=PYe,A=sve(s.b,0);A.b!=A.d.c;)v=$H(d3(A),86),b+=$H(vSe(v,(CIe(),Mwt)),19).a,g=r.Math.min(g,v.e.a),m=r.Math.min(m,v.e.b),f=r.Math.max(f,v.e.a+v.f.a),p=r.Math.max(p,v.e.b+v.f.b);lle(s,(CIe(),Mwt),the(b)),lle(s,(HQe(),Jyt),new Nk(g,m)),lle(s,Xyt,new Nk(f,p))}for(Eq(),vD(e,new va),Hae(w=new S6,(u0(0,e.c.length),$H(e.c[0],94))),h=0,C=0,u=new Gf(e);u.a<u.c.c.length;)s=$H(J0(u),135),_=WP($D($H(vSe(s,(HQe(),Xyt)),8)),$H(vSe(s,Jyt),8)),h=r.Math.max(h,_.a),C+=_.a*_.b;for(h=r.Math.max(h,r.Math.sqrt(C)*Uy(xB(vSe(w,(CIe(),ywt))))),T=0,k=0,d=0,t=x=Uy(xB(vSe(w,Nwt))),l=new Gf(e);l.a<l.c.c.length;)s=$H(J0(l),135),T+(_=WP($D($H(vSe(s,(HQe(),Xyt)),8)),$H(vSe(s,Jyt),8))).a>h&&(T=0,k+=d+x,d=0),wNe(w,s,T,k),t=r.Math.max(t,T+_.a),d=r.Math.max(d,_.b),T+=_.a+x;for(y=new Nv,n=new Nv,S=new Gf(e);S.a<S.c.c.length;)for(i=Hy(_B(vSe(E=$H(J0(S),135),(sKe(),uCt)))),a=(E.q?E.q:cnt).vc().Kc();a.Ob();)lG(y,(o=$H(a.Pb(),42)).cd())?UO($H(o.cd(),146).wg())!==UO(o.dd())&&(i&&lG(n,o.cd())?(ME(),$H(o.cd(),146).tg()):(VK(y,$H(o.cd(),146),o.dd()),lle(w,$H(o.cd(),146),o.dd()),i&&VK(n,$H(o.cd(),146),o.dd()))):(VK(y,$H(o.cd(),146),o.dd()),lle(w,$H(o.cd(),146),o.dd()));return w}function eKe(){eKe=M,LVe(),qOe(gst=new gJ,(bGe(),fOt),hOt),qOe(gst,xOt,hOt),qOe(gst,pOt,hOt),qOe(gst,yOt,hOt),qOe(gst,bOt,hOt),qOe(gst,vOt,hOt),qOe(gst,yOt,fOt),qOe(gst,hOt,lOt),qOe(gst,fOt,lOt),qOe(gst,xOt,lOt),qOe(gst,pOt,lOt),qOe(gst,AOt,lOt),qOe(gst,yOt,lOt),qOe(gst,bOt,lOt),qOe(gst,vOt,lOt),qOe(gst,dOt,lOt),qOe(gst,hOt,wOt),qOe(gst,fOt,wOt),qOe(gst,lOt,wOt),qOe(gst,xOt,wOt),qOe(gst,pOt,wOt),qOe(gst,AOt,wOt),qOe(gst,yOt,wOt),qOe(gst,dOt,wOt),qOe(gst,_Ot,wOt),qOe(gst,bOt,wOt),qOe(gst,gOt,wOt),qOe(gst,vOt,wOt),qOe(gst,fOt,xOt),qOe(gst,pOt,xOt),qOe(gst,yOt,xOt),qOe(gst,vOt,xOt),qOe(gst,fOt,pOt),qOe(gst,xOt,pOt),qOe(gst,yOt,pOt),qOe(gst,pOt,pOt),qOe(gst,bOt,pOt),qOe(gst,hOt,cOt),qOe(gst,fOt,cOt),qOe(gst,lOt,cOt),qOe(gst,wOt,cOt),qOe(gst,xOt,cOt),qOe(gst,pOt,cOt),qOe(gst,AOt,cOt),qOe(gst,yOt,cOt),qOe(gst,_Ot,cOt),qOe(gst,dOt,cOt),qOe(gst,vOt,cOt),qOe(gst,bOt,cOt),qOe(gst,mOt,cOt),qOe(gst,hOt,_Ot),qOe(gst,fOt,_Ot),qOe(gst,lOt,_Ot),qOe(gst,xOt,_Ot),qOe(gst,pOt,_Ot),qOe(gst,AOt,_Ot),qOe(gst,yOt,_Ot),qOe(gst,dOt,_Ot),qOe(gst,vOt,_Ot),qOe(gst,gOt,_Ot),qOe(gst,mOt,_Ot),qOe(gst,fOt,dOt),qOe(gst,xOt,dOt),qOe(gst,pOt,dOt),qOe(gst,yOt,dOt),qOe(gst,_Ot,dOt),qOe(gst,vOt,dOt),qOe(gst,bOt,dOt),qOe(gst,hOt,uOt),qOe(gst,fOt,uOt),qOe(gst,lOt,uOt),qOe(gst,xOt,uOt),qOe(gst,pOt,uOt),qOe(gst,AOt,uOt),qOe(gst,yOt,uOt),qOe(gst,dOt,uOt),qOe(gst,vOt,uOt),qOe(gst,fOt,bOt),qOe(gst,lOt,bOt),qOe(gst,wOt,bOt),qOe(gst,pOt,bOt),qOe(gst,hOt,gOt),qOe(gst,fOt,gOt),qOe(gst,wOt,gOt),qOe(gst,xOt,gOt),qOe(gst,pOt,gOt),qOe(gst,AOt,gOt),qOe(gst,yOt,gOt),qOe(gst,yOt,mOt),qOe(gst,pOt,mOt),qOe(gst,dOt,hOt),qOe(gst,dOt,xOt),qOe(gst,dOt,lOt),qOe(gst,AOt,hOt),qOe(gst,AOt,fOt),qOe(gst,AOt,wOt)}function tKe(e,t){switch(e.e){case 0:case 2:case 4:case 6:case 42:case 44:case 46:case 48:case 8:case 10:case 12:case 14:case 16:case 18:case 20:case 22:case 24:case 26:case 28:case 30:case 32:case 34:case 36:case 38:return new Qq(e.b,e.a,t,e.c);case 1:return new IN(e.a,t,Ope(t.Tg(),e.c));case 43:return new NN(e.a,t,Ope(t.Tg(),e.c));case 3:return new MN(e.a,t,Ope(t.Tg(),e.c));case 45:return new DN(e.a,t,Ope(t.Tg(),e.c));case 41:return new A7($H(Twe(e.c),26),e.a,t,Ope(t.Tg(),e.c));case 50:return new Are($H(Twe(e.c),26),e.a,t,Ope(t.Tg(),e.c));case 5:return new tF(e.a,t,Ope(t.Tg(),e.c),e.d.n);case 47:return new nF(e.a,t,Ope(t.Tg(),e.c),e.d.n);case 7:return new eG(e.a,t,Ope(t.Tg(),e.c),e.d.n);case 49:return new eF(e.a,t,Ope(t.Tg(),e.c),e.d.n);case 9:return new FN(e.a,t,Ope(t.Tg(),e.c));case 11:return new PN(e.a,t,Ope(t.Tg(),e.c));case 13:return new BN(e.a,t,Ope(t.Tg(),e.c));case 15:return new xU(e.a,t,Ope(t.Tg(),e.c));case 17:return new $N(e.a,t,Ope(t.Tg(),e.c));case 19:return new LN(e.a,t,Ope(t.Tg(),e.c));case 21:return new RN(e.a,t,Ope(t.Tg(),e.c));case 23:return new AU(e.a,t,Ope(t.Tg(),e.c));case 25:return new cF(e.a,t,Ope(t.Tg(),e.c),e.d.n);case 27:return new lF(e.a,t,Ope(t.Tg(),e.c),e.d.n);case 29:return new aF(e.a,t,Ope(t.Tg(),e.c),e.d.n);case 31:return new rF(e.a,t,Ope(t.Tg(),e.c),e.d.n);case 33:return new sF(e.a,t,Ope(t.Tg(),e.c),e.d.n);case 35:return new oF(e.a,t,Ope(t.Tg(),e.c),e.d.n);case 37:return new iF(e.a,t,Ope(t.Tg(),e.c),e.d.n);case 39:return new tG(e.a,t,Ope(t.Tg(),e.c),e.d.n);case 40:return new woe(t,Ope(t.Tg(),e.c));default:throw jv(new fy("Unknown feature style: "+e.e))}}function nKe(e,t,n){var r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w;switch(kEe(n,"Brandes & Koepf node placement",1),e.a=t,e.c=Fje(t),r=$H(vSe(t,(jVe(),Dmt)),274),f=Hy(_B(vSe(t,Nmt))),e.d=r==($_e(),Kut)&&!f||r==Wut,qQe(e,t),y=null,w=null,m=null,v=null,ure(4,OYe),g=new q6(4),$H(vSe(t,Dmt),274).g){case 3:m=new HFe(t,e.c.d,(aZ(),nyt),(pJ(),Jbt)),g.c[g.c.length]=m;break;case 1:v=new HFe(t,e.c.d,(aZ(),ryt),(pJ(),Jbt)),g.c[g.c.length]=v;break;case 4:y=new HFe(t,e.c.d,(aZ(),nyt),(pJ(),Zbt)),g.c[g.c.length]=y;break;case 2:w=new HFe(t,e.c.d,(aZ(),ryt),(pJ(),Zbt)),g.c[g.c.length]=w;break;default:m=new HFe(t,e.c.d,(aZ(),nyt),(pJ(),Jbt)),v=new HFe(t,e.c.d,ryt,Jbt),y=new HFe(t,e.c.d,nyt,Zbt),w=new HFe(t,e.c.d,ryt,Zbt),g.c[g.c.length]=y,g.c[g.c.length]=w,g.c[g.c.length]=m,g.c[g.c.length]=v}for(i=new tk(t,e.c),s=new Gf(g);s.a<s.c.c.length;)SVe(i,o=$H(J0(s),180),e.b),GHe(o);for(h=new qye(t,e.c),l=new Gf(g);l.a<l.c.c.length;)jWe(h,o=$H(J0(l),180));if(n.n)for(c=new Gf(g);c.a<c.c.c.length;)kU(n,(o=$H(J0(c),180))+" size is "+mDe(o));if(d=null,e.d&&THe(t,u=FGe(e,g,e.c.d),n)&&(d=u),!d)for(c=new Gf(g);c.a<c.c.c.length;)THe(t,o=$H(J0(c),180),n)&&(!d||mDe(d)>mDe(o))&&(d=o);for(!d&&(u0(0,g.c.length),d=$H(g.c[0],180)),p=new Gf(t.b);p.a<p.c.c.length;)for(b=new Gf($H(J0(p),29).a);b.a<b.c.c.length;)(A=$H(J0(b),10)).n.b=Uy(d.p[A.p])+Uy(d.d[A.p]);for(n.n&&(kU(n,"Chosen node placement: "+d),kU(n,"Blocks: "+NMe(d)),kU(n,"Classes: "+zIe(d,n)),kU(n,"Marked edges: "+e.b)),a=new Gf(g);a.a<a.c.c.length;)(o=$H(J0(a),180)).g=null,o.b=null,o.a=null,o.d=null,o.j=null,o.i=null,o.p=null;Qie(e.c),e.b.a.$b(),jCe(n)}function rKe(e,t,n){var r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E;for(a=new YE,A=$H(vSe(n,(jVe(),zgt)),103),p=0,Fie(a,(!t.a&&(t.a=new eG(QMt,t,10,11)),t.a));0!=a.b;)c=$H(0==a.b?null:(SL(0!=a.b),Ote(a,a.a.a)),33),(UO(XIe(t,Igt))!==UO((vle(),DAt))||UO(XIe(t,Ugt))===UO((VAe(),wut))||UO(XIe(t,Ugt))===UO((VAe(),but))||Hy(_B(XIe(t,Ngt)))||UO(XIe(t,Cgt))!==UO(($de(),hst)))&&!Hy(_B(XIe(c,Mgt)))&&Yve(c,(lKe(),hht),the(p++)),!Hy(_B(XIe(c,Umt)))&&(d=0!=(!c.a&&(c.a=new eG(QMt,c,10,11)),c.a).i,f=bEe(c),h=UO(XIe(c,smt))===UO((ode(),gkt)),m=null,(E=!S8(c,(sKe(),eCt))||vF(EB(XIe(c,eCt)),h0e))&&h&&(d||f)&&(lle(m=bje(c),zgt,A),IL(m,pvt)&&xy(new ope(Uy(xB(vSe(m,pvt)))),m),0!=$H(XIe(c,Fmt),174).gc()&&(u=m,qE(new LQ(null,(!c.c&&(c.c=new eG(zMt,c,9,9)),new h0(c.c,16))),new Wp(u)),vBe(c,m))),b=n,(y=$H(LV(e.a,qJ(c)),10))&&(b=y.e),g=hWe(e,c,b),m&&(g.e=m,m.e=g,Fie(a,(!c.a&&(c.a=new eG(QMt,c,10,11)),c.a))));for(p=0,n5(a,t,a.c.b,a.c);0!=a.b;){for(l=new ON((!(o=$H(0==a.b?null:(SL(0!=a.b),Ote(a,a.a.a)),33)).b&&(o.b=new eG(BMt,o,12,3)),o.b));l.e!=l.i.gc();)ZPe(s=$H(bve(l),79)),(UO(XIe(t,Igt))!==UO((vle(),DAt))||UO(XIe(t,Ugt))===UO((VAe(),wut))||UO(XIe(t,Ugt))===UO((VAe(),but))||Hy(_B(XIe(t,Ngt)))||UO(XIe(t,Cgt))!==UO(($de(),hst)))&&Yve(s,(lKe(),hht),the(p++)),_=SEe($H(Gte((!s.b&&(s.b=new lF(LMt,s,4,7)),s.b),0),82)),x=SEe($H(Gte((!s.c&&(s.c=new lF(LMt,s,5,8)),s.c),0),82)),Hy(_B(XIe(s,Umt)))||Hy(_B(XIe(_,Umt)))||Hy(_B(XIe(x,Umt)))||(v=o,KOe(s)&&Hy(_B(XIe(_,hmt)))&&Hy(_B(XIe(s,fmt)))||Cte(x,_)?v=_:Cte(_,x)&&(v=x),b=n,(y=$H(LV(e.a,v),10))&&(b=y.e),lle(oKe(e,s,v,b),(lKe(),Fdt),ILe(e,s,t,n)));if(h=UO(XIe(o,smt))===UO((ode(),gkt)))for(i=new ON((!o.a&&(o.a=new eG(QMt,o,10,11)),o.a));i.e!=i.i.gc();)E=!S8(r=$H(bve(i),33),(sKe(),eCt))||vF(EB(XIe(r,eCt)),h0e),w=UO(XIe(r,smt))===UO(gkt),E&&w&&n5(a,r,a.c.b,a.c)}}function iKe(e,t,n,r,i,o){var a,s,l,c,u,d,h;switch(t){case 71:a=r.q.getFullYear()-sqe>=-1900?1:0,aM(e,n>=4?Sse(Uw(Ytt,1),sYe,2,6,[cqe,uqe])[a]:Sse(Uw(Ytt,1),sYe,2,6,["BC","AD"])[a]);break;case 121:ave(e,n,r);break;case 77:WFe(e,n,r);break;case 107:wee(e,0==(s=i.q.getHours())?24:s,n);break;case 83:LNe(e,n,i);break;case 69:l=r.q.getDay(),aM(e,5==n?Sse(Uw(Ytt,1),sYe,2,6,["S","M","T","W","T","F","S"])[l]:4==n?Sse(Uw(Ytt,1),sYe,2,6,[dqe,hqe,fqe,pqe,gqe,mqe,vqe])[l]:Sse(Uw(Ytt,1),sYe,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[l]);break;case 97:i.q.getHours()>=12&&i.q.getHours()<24?aM(e,Sse(Uw(Ytt,1),sYe,2,6,["AM","PM"])[1]):aM(e,Sse(Uw(Ytt,1),sYe,2,6,["AM","PM"])[0]);break;case 104:wee(e,0==(c=i.q.getHours()%12)?12:c,n);break;case 75:wee(e,i.q.getHours()%12,n);break;case 72:wee(e,i.q.getHours(),n);break;case 99:u=r.q.getDay(),5==n?aM(e,Sse(Uw(Ytt,1),sYe,2,6,["S","M","T","W","T","F","S"])[u]):4==n?aM(e,Sse(Uw(Ytt,1),sYe,2,6,[dqe,hqe,fqe,pqe,gqe,mqe,vqe])[u]):3==n?aM(e,Sse(Uw(Ytt,1),sYe,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[u]):wee(e,u,1);break;case 76:d=r.q.getMonth(),5==n?aM(e,Sse(Uw(Ytt,1),sYe,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[d]):4==n?aM(e,Sse(Uw(Ytt,1),sYe,2,6,[YYe,qYe,XYe,JYe,ZYe,eqe,tqe,nqe,rqe,iqe,oqe,aqe])[d]):3==n?aM(e,Sse(Uw(Ytt,1),sYe,2,6,["Jan","Feb","Mar","Apr",ZYe,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[d]):wee(e,d+1,n);break;case 81:h=r.q.getMonth()/3|0,aM(e,n<4?Sse(Uw(Ytt,1),sYe,2,6,["Q1","Q2","Q3","Q4"])[h]:Sse(Uw(Ytt,1),sYe,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[h]);break;case 100:wee(e,r.q.getDate(),n);break;case 109:wee(e,i.q.getMinutes(),n);break;case 115:wee(e,i.q.getSeconds(),n);break;case 122:aM(e,n<4?o.c[0]:o.c[1]);break;case 118:aM(e,o.b);break;case 90:aM(e,n<3?Jke(o):3==n?hOe(o):fOe(o.a));break;default:return!1}return!0}function oKe(e,t,n,r){var i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C,T,k;if(ZPe(t),l=$H(Gte((!t.b&&(t.b=new lF(LMt,t,4,7)),t.b),0),82),u=$H(Gte((!t.c&&(t.c=new lF(LMt,t,5,8)),t.c),0),82),s=SEe(l),c=SEe(u),a=0==(!t.a&&(t.a=new eG(PMt,t,6,6)),t.a).i?null:$H(Gte((!t.a&&(t.a=new eG(PMt,t,6,6)),t.a),0),202),_=$H(LV(e.a,s),10),C=$H(LV(e.a,c),10),x=null,T=null,rN(l,186)&&(rN(w=$H(LV(e.a,l),299),11)?x=$H(w,11):rN(w,10)&&(_=$H(w,10),x=$H(NQ(_.j,0),11))),rN(u,186)&&(rN(S=$H(LV(e.a,u),299),11)?T=$H(S,11):rN(S,10)&&(C=$H(S,10),T=$H(NQ(C.j,0),11))),!_||!C)throw jv(new rw("The source or the target of edge "+t+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(Hae(g=new hX,t),lle(g,(lKe(),fht),t),lle(g,(jVe(),mmt),null),f=$H(vSe(r,Xdt),21),_==C&&f.Fc((dBe(),mdt)),x||(ire(),y=HAt,E=null,a&&mI($H(vSe(_,evt),98))&&(Y3(E=new Nk(a.j,a.k),WJ(t)),Z4(E,n),Cte(c,s)&&(y=jAt,zP(E,_.n))),x=fUe(_,E,y,r)),T||(ire(),y=jAt,k=null,a&&mI($H(vSe(C,evt),98))&&(Y3(k=new Nk(a.b,a.c),WJ(t)),Z4(k,n)),T=fUe(C,k,y,mK(C))),EZ(g,x),xZ(g,T),(x.e.c.length>1||x.g.c.length>1||T.e.c.length>1||T.g.c.length>1)&&f.Fc((dBe(),ddt)),h=new ON((!t.n&&(t.n=new eG(UMt,t,1,7)),t.n));h.e!=h.i.gc();)if(!Hy(_B(XIe(d=$H(bve(h),137),Umt)))&&d.a)switch(m=jue(d),GH(g.b,m),$H(vSe(m,Ygt),272).g){case 1:case 2:f.Fc((dBe(),cdt));break;case 0:f.Fc((dBe(),sdt)),lle(m,Ygt,(Lte(),QTt))}if(o=$H(vSe(r,Hgt),314),v=$H(vSe(r,Pmt),315),i=o==(kre(),sut)||v==(DAe(),gAt),a&&0!=(!a.a&&(a.a=new MN(DMt,a,5)),a.a).i&&i){for(A=HCe(a),p=new bb,b=sve(A,0);b.b!=b.d.c;)RU(p,new hI($H(d3(b),8)));lle(g,pht,p)}return g}function aKe(e){e.gb||(e.gb=!0,e.b=bae(e,0),Lie(e.b,18),Bie(e.b,19),e.a=bae(e,1),Lie(e.a,1),Bie(e.a,2),Bie(e.a,3),Bie(e.a,4),Bie(e.a,5),e.o=bae(e,2),Lie(e.o,8),Lie(e.o,9),Bie(e.o,10),Bie(e.o,11),Bie(e.o,12),Bie(e.o,13),Bie(e.o,14),Bie(e.o,15),Bie(e.o,16),Bie(e.o,17),Bie(e.o,18),Bie(e.o,19),Bie(e.o,20),Bie(e.o,21),Bie(e.o,22),Bie(e.o,23),ate(e.o),ate(e.o),ate(e.o),ate(e.o),ate(e.o),ate(e.o),ate(e.o),ate(e.o),ate(e.o),ate(e.o),e.p=bae(e,3),Lie(e.p,2),Lie(e.p,3),Lie(e.p,4),Lie(e.p,5),Bie(e.p,6),Bie(e.p,7),ate(e.p),ate(e.p),e.q=bae(e,4),Lie(e.q,8),e.v=bae(e,5),Bie(e.v,9),ate(e.v),ate(e.v),ate(e.v),e.w=bae(e,6),Lie(e.w,2),Lie(e.w,3),Lie(e.w,4),Bie(e.w,5),e.B=bae(e,7),Bie(e.B,1),ate(e.B),ate(e.B),ate(e.B),e.Q=bae(e,8),Bie(e.Q,0),ate(e.Q),e.R=bae(e,9),Lie(e.R,1),e.S=bae(e,10),ate(e.S),ate(e.S),ate(e.S),ate(e.S),ate(e.S),ate(e.S),ate(e.S),ate(e.S),ate(e.S),ate(e.S),ate(e.S),ate(e.S),ate(e.S),ate(e.S),ate(e.S),e.T=bae(e,11),Bie(e.T,10),Bie(e.T,11),Bie(e.T,12),Bie(e.T,13),Bie(e.T,14),ate(e.T),ate(e.T),e.U=bae(e,12),Lie(e.U,2),Lie(e.U,3),Bie(e.U,4),Bie(e.U,5),Bie(e.U,6),Bie(e.U,7),ate(e.U),e.V=bae(e,13),Bie(e.V,10),e.W=bae(e,14),Lie(e.W,18),Lie(e.W,19),Lie(e.W,20),Bie(e.W,21),Bie(e.W,22),Bie(e.W,23),e.bb=bae(e,15),Lie(e.bb,10),Lie(e.bb,11),Lie(e.bb,12),Lie(e.bb,13),Lie(e.bb,14),Lie(e.bb,15),Lie(e.bb,16),Bie(e.bb,17),ate(e.bb),ate(e.bb),e.eb=bae(e,16),Lie(e.eb,2),Lie(e.eb,3),Lie(e.eb,4),Lie(e.eb,5),Lie(e.eb,6),Lie(e.eb,7),Bie(e.eb,8),Bie(e.eb,9),e.ab=bae(e,17),Lie(e.ab,0),Lie(e.ab,1),e.H=bae(e,18),Bie(e.H,0),Bie(e.H,1),Bie(e.H,2),Bie(e.H,3),Bie(e.H,4),Bie(e.H,5),ate(e.H),e.db=bae(e,19),Bie(e.db,2),e.c=yae(e,20),e.d=yae(e,21),e.e=yae(e,22),e.f=yae(e,23),e.i=yae(e,24),e.g=yae(e,25),e.j=yae(e,26),e.k=yae(e,27),e.n=yae(e,28),e.r=yae(e,29),e.s=yae(e,30),e.t=yae(e,31),e.u=yae(e,32),e.fb=yae(e,33),e.A=yae(e,34),e.C=yae(e,35),e.D=yae(e,36),e.F=yae(e,37),e.G=yae(e,38),e.I=yae(e,39),e.J=yae(e,40),e.L=yae(e,41),e.M=yae(e,42),e.N=yae(e,43),e.O=yae(e,44),e.P=yae(e,45),e.X=yae(e,46),e.Y=yae(e,47),e.Z=yae(e,48),e.$=yae(e,49),e._=yae(e,50),e.cb=yae(e,51),e.K=yae(e,52))}function sKe(){var e,t;sKe=M,eCt=new ov(h5e),vTt=new ov(f5e),hAe(),tCt=new MM(G2e,nCt=CSt),rCt=new MM(VJe,null),iCt=new ov(p5e),hxe(),cCt=wz(XSt,Sse(Uw(HTt,1),MYe,291,0,[VSt])),lCt=new MM(o3e,cCt),uCt=new MM(W2e,(lR(),!1)),Fde(),dCt=new MM(q2e,hCt=$Tt),xfe(),mCt=new MM(A2e,vCt=XTt),yCt=new MM(O4e,!1),ode(),wCt=new MM(f2e,_Ct=mkt),GCt=new GI(12),WCt=new MM(KJe,GCt),CCt=new MM(yZe,!1),TCt=new MM(v3e,!1),zCt=new MM(xZe,!1),Kxe(),oTt=new MM(wZe,aTt=Ykt),pTt=new ov(p3e),gTt=new ov(gZe),mTt=new ov(AZe),bTt=new ov(bZe),OCt=new bb,kCt=new MM(a3e,OCt),sCt=new MM(c3e,!1),xCt=new MM(u3e,!1),ICt=new ub,MCt=new MM(g3e,ICt),QCt=new MM(Q2e,!1),ATt=new MM(m5e,1),new MM(v5e,!0),the(0),new MM(A5e,the(100)),new MM(b5e,!1),the(0),new MM(y5e,the(4e3)),the(0),new MM(w5e,the(400)),new MM(_5e,!1),new MM(x5e,!1),new MM(E5e,!0),new MM(S5e,!1),Fpe(),oCt=new MM(d5e,aCt=eMt),yTt=new MM(I2e,10),wTt=new MM(D2e,10),_Tt=new MM(WJe,20),xTt=new MM(N2e,10),ETt=new MM(vZe,2),STt=new MM(R2e,10),TTt=new MM(L2e,0),kTt=new MM(F2e,5),OTt=new MM(B2e,1),MTt=new MM(P2e,1),ITt=new MM(mZe,20),DTt=new MM($2e,10),LTt=new MM(j2e,10),CTt=new ov(H2e),RTt=new uI,NTt=new MM(m3e,RTt),YCt=new ov(f3e),VCt=new MM(h3e,KCt=!1),NCt=new GI(5),DCt=new MM(X2e,NCt),JIe(),t=$H(V_(Ukt),9),LCt=new YF(t,$H(EP(t,t.length),9),0),RCt=new MM(CZe,LCt),rve(),XCt=new MM(e3e,JCt=$kt),eTt=new ov(t3e),tTt=new ov(n3e),nTt=new ov(r3e),ZCt=new ov(i3e),e=$H(V_(YOt),9),PCt=new YF(e,$H(EP(e,e.length),9),0),BCt=new MM(SZe,PCt),UCt=Jhe((JFe(),UOt)),HCt=new MM(EZe,UCt),jCt=new Nk(0,0),$Ct=new MM($Ze,jCt),FCt=new MM(Y2e,!1),Lte(),pCt=new MM(s3e,gCt=QTt),fCt=new MM(_Ze,!1),the(1),new MM(T5e,null),rTt=new ov(d3e),sTt=new ov(l3e),bGe(),hTt=new MM(z2e,fTt=SOt),iTt=new ov(U2e),uOe(),uTt=Jhe(nOt),cTt=new MM(TZe,uTt),lTt=new MM(J2e,!1),dTt=new MM(Z2e,!0),ECt=new MM(V2e,!1),SCt=new MM(K2e,!1),ACt=new MM(GJe,1),JEe(),new MM(k5e,bCt=ikt),qCt=!0}function lKe(){var e,t;lKe=M,fht=new ov(kZe),Fdt=new ov("coordinateOrigin"),xht=new ov("processors"),Pdt=new tP("compoundNode",(lR(),!1)),eht=new tP("insideConnections",!1),pht=new ov("originalBendpoints"),ght=new ov("originalDummyNodePosition"),mht=new ov("originalLabelEdge"),Sht=new ov("representedLabels"),Qdt=new ov("endLabels"),zdt=new ov("endLabel.origin"),oht=new tP("labelSide",(Wye(),xkt)),dht=new tP("maxEdgeThickness",0),Cht=new tP("reversed",!1),Eht=new ov(OZe),lht=new tP("longEdgeSource",null),cht=new tP("longEdgeTarget",null),sht=new tP("longEdgeHasLabelDummies",!1),aht=new tP("longEdgeBeforeLabelDummy",!1),Udt=new tP("edgeConstraint",(qse(),Out)),nht=new ov("inLayerLayoutUnit"),tht=new tP("inLayerConstraint",(Q9(),Sdt)),rht=new tP("inLayerSuccessorConstraint",new Dv),iht=new tP("inLayerSuccessorConstraintBetweenNonDummies",!1),wht=new ov("portDummy"),$dt=new tP("crossingHint",the(0)),Xdt=new tP("graphProperties",new YF(t=$H(V_(_dt),9),$H(EP(t,t.length),9),0)),Kdt=new tP("externalPortSide",(bGe(),SOt)),Ydt=new tP("externalPortSize",new U_),Gdt=new ov("externalPortReplacedDummies"),Vdt=new ov("externalPortReplacedDummy"),Wdt=new tP("externalPortConnections",new YF(e=$H(V_(FOt),9),$H(EP(e,e.length),9),0)),_ht=new tP(fJe,0),Ndt=new ov("barycenterAssociates"),Bht=new ov("TopSideComments"),Rdt=new ov("BottomSideComments"),Bdt=new ov("CommentConnectionPort"),Zdt=new tP("inputCollect",!1),bht=new tP("outputCollect",!1),Hdt=new tP("cyclic",!1),jdt=new ov("crossHierarchyMap"),Lht=new ov("targetOffset"),new tP("splineLabelSize",new U_),Oht=new ov("spacings"),yht=new tP("partitionConstraint",!1),Ldt=new ov("breakingPoint.info"),Nht=new ov("splines.survivingEdge"),Dht=new ov("splines.route.start"),Mht=new ov("splines.edgeChain"),Aht=new ov("originalPortConstraints"),kht=new ov("selfLoopHolder"),Iht=new ov("splines.nsPortY"),hht=new ov("modelOrder"),uht=new ov("longEdgeTargetNode"),qdt=new tP(Q0e,!1),Tht=new tP(Q0e,!1),Jdt=new ov("layerConstraints.hiddenNodes"),vht=new ov("layerConstraints.opposidePort"),Rht=new ov("targetNode.modelOrder")}function cKe(){cKe=M,Pee(),Eft=new MM(z0e,Sft=Eut),Uft=new MM(W0e,(lR(),!1)),Q2(),Vft=new MM(G0e,Kft=Odt),hpt=new MM(V0e,!1),fpt=new MM(K0e,!0),zht=new MM(Y0e,!1),z9(),Dpt=new MM(q0e,Npt=BAt),the(1),Hpt=new MM(X0e,the(7)),Upt=new MM(J0e,!1),Qft=new MM(Z0e,!1),VAe(),_ft=new MM(e1e,xft=Aut),_Ee(),upt=new MM(t1e,dpt=Zvt),_fe(),ept=new MM(n1e,tpt=Hht),the(-1),Zft=new MM(r1e,the(-1)),the(-1),npt=new MM(i1e,the(-1)),the(-1),rpt=new MM(o1e,the(4)),the(-1),opt=new MM(a1e,the(2)),sRe(),lpt=new MM(s1e,cpt=TAt),the(0),spt=new MM(l1e,the(0)),Xft=new MM(c1e,the(RKe)),kre(),yft=new MM(u1e,wft=lut),oft=new MM(d1e,!1),pft=new MM(h1e,.1),Aft=new MM(f1e,!1),the(-1),mft=new MM(p1e,the(-1)),the(-1),vft=new MM(g1e,the(-1)),the(0),aft=new MM(m1e,the(40)),Bae(),dft=new MM(v1e,hft=wdt),sft=new MM(A1e,lft=bdt),DAe(),Mpt=new MM(b1e,Ipt=pAt),ypt=new ov(y1e),p9(),ppt=new MM(w1e,gpt=Hut),$_e(),vpt=new MM(_1e,Apt=Kut),xpt=new MM(x1e,.3),Spt=new ov(E1e),dAe(),Cpt=new MM(S1e,Tpt=uAt),joe(),Dft=new MM(C1e,Nft=GAt),O6(),Rft=new MM(T1e,Lft=XAt),zce(),Bft=new MM(k1e,Pft=nbt),$ft=new MM(O1e,.2),Mft=new MM(M1e,2),Ppt=new MM(I1e,null),$pt=new MM(D1e,10),Fpt=new MM(N1e,10),jpt=new MM(R1e,20),the(0),Rpt=new MM(L1e,the(0)),the(0),Lpt=new MM(B1e,the(0)),the(0),Bpt=new MM(P1e,the(0)),Wht=new MM(F1e,!1),qSe(),Kht=new MM($1e,Yht=rdt),V8(),Ght=new MM(j1e,Vht=iut),Wft=new MM(H1e,!1),the(0),zft=new MM(U1e,the(16)),the(0),Gft=new MM(Q1e,the(5)),Mse(),ugt=new MM(z1e,dgt=dbt),Qpt=new MM(W1e,10),Gpt=new MM(G1e,1),ore(),egt=new MM(V1e,tgt=put),Ypt=new ov(K1e),Jpt=the(1),the(0),Xpt=new MM(Y1e,Jpt),foe(),ggt=new MM(q1e,mgt=obt),hgt=new ov(X1e),agt=new MM(J1e,!0),igt=new MM(Z1e,2),lgt=new MM(e2e,!0),pCe(),kft=new MM(t2e,Oft=Put),MTe(),Cft=new MM(n2e,Tft=Xct),vle(),rft=new MM(r2e,ift=DAt),nft=new MM(i2e,!1),$de(),qht=new MM(o2e,Xht=hst),xue(),eft=new MM(a2e,tft=rAt),Jht=new MM(s2e,0),Zht=new MM(l2e,0),qft=yut,Yft=sut,ipt=Jvt,apt=Jvt,Jft=Yvt,ode(),gft=gkt,bft=lut,fft=lut,cft=lut,uft=gkt,wpt=vAt,_pt=pAt,mpt=pAt,bpt=pAt,Ept=mAt,Opt=vAt,kpt=vAt,xfe(),Fft=qTt,jft=qTt,Hft=nbt,Ift=YTt,zpt=hbt,Wpt=ubt,Vpt=hbt,Kpt=ubt,ngt=hbt,rgt=ubt,qpt=fut,Zpt=put,vgt=hbt,Agt=ubt,fgt=hbt,pgt=ubt,sgt=ubt,ogt=ubt,cgt=ubt}function uKe(){uKe=M,nlt=new JC("DIRECTION_PREPROCESSOR",0),Zst=new JC("COMMENT_PREPROCESSOR",1),rlt=new JC("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),blt=new JC("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),Flt=new JC("PARTITION_PREPROCESSOR",4),xlt=new JC("LABEL_DUMMY_INSERTER",5),zlt=new JC("SELF_LOOP_PREPROCESSOR",6),klt=new JC("LAYER_CONSTRAINT_PREPROCESSOR",7),Blt=new JC("PARTITION_MIDPROCESSOR",8),plt=new JC("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),Dlt=new JC("NODE_PROMOTION",10),Tlt=new JC("LAYER_CONSTRAINT_POSTPROCESSOR",11),Plt=new JC("PARTITION_POSTPROCESSOR",12),ult=new JC("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),Glt=new JC("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),Vst=new JC("BREAKING_POINT_INSERTER",15),Ilt=new JC("LONG_EDGE_SPLITTER",16),jlt=new JC("PORT_SIDE_PROCESSOR",17),ylt=new JC("INVERTED_PORT_PROCESSOR",18),$lt=new JC("PORT_LIST_SORTER",19),Klt=new JC("SORT_BY_INPUT_ORDER_OF_MODEL",20),Rlt=new JC("NORTH_SOUTH_PORT_PREPROCESSOR",21),Kst=new JC("BREAKING_POINT_PROCESSOR",22),Llt=new JC(w0e,23),Ylt=new JC(_0e,24),Ult=new JC("SELF_LOOP_PORT_RESTORER",25),Vlt=new JC("SINGLE_EDGE_GRAPH_WRAPPER",26),wlt=new JC("IN_LAYER_CONSTRAINT_PROCESSOR",27),slt=new JC("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),_lt=new JC("LABEL_AND_NODE_SIZE_PROCESSOR",29),Alt=new JC("INNERMOST_NODE_MARGIN_CALCULATOR",30),Wlt=new JC("SELF_LOOP_ROUTER",31),Xst=new JC("COMMENT_NODE_MARGIN_CALCULATOR",32),olt=new JC("END_LABEL_PREPROCESSOR",33),Slt=new JC("LABEL_DUMMY_SWITCHER",34),qst=new JC("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),Clt=new JC("LABEL_SIDE_SELECTOR",36),mlt=new JC("HYPEREDGE_DUMMY_MERGER",37),dlt=new JC("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),Olt=new JC("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),flt=new JC("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),elt=new JC("CONSTRAINTS_POSTPROCESSOR",41),Jst=new JC("COMMENT_POSTPROCESSOR",42),vlt=new JC("HYPERNODE_PROCESSOR",43),hlt=new JC("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),Mlt=new JC("LONG_EDGE_JOINER",45),Qlt=new JC("SELF_LOOP_POSTPROCESSOR",46),Yst=new JC("BREAKING_POINT_REMOVER",47),Nlt=new JC("NORTH_SOUTH_PORT_POSTPROCESSOR",48),glt=new JC("HORIZONTAL_COMPACTOR",49),Elt=new JC("LABEL_DUMMY_REMOVER",50),llt=new JC("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),alt=new JC("END_LABEL_SORTER",52),Hlt=new JC("REVERSED_EDGE_RESTORER",53),ilt=new JC("END_LABEL_POSTPROCESSOR",54),clt=new JC("HIERARCHICAL_NODE_RESIZER",55),tlt=new JC("DIRECTION_POSTPROCESSOR",56)}function dKe(e,t,n){var i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E,S,C,T,k,O,M,I,D,N,R,L,B,P,F,$,j,H,U,Q,z,W,G,V,K,Y,q,X,J,Z,ee,te,ne,re,ie,oe,ae,se;for(J=0,N=0,B=(M=t).length;N<B;++N)for(z=new Gf((k=M[N]).j);z.a<z.c.c.length;){for(G=0,l=new Gf((Q=$H(J0(z),11)).g);l.a<l.c.c.length;)s=$H(J0(l),17),k.c!=s.d.i.c&&++G;G>0&&(e.a[Q.p]=J++)}for(re=0,R=0,P=(I=n).length;R<P;++R){for(F=0,z=new Gf((k=I[R]).j);z.a<z.c.c.length&&(Q=$H(J0(z),11)).j==(bGe(),sOt);)for(l=new Gf(Q.e);l.a<l.c.c.length;)if(s=$H(J0(l),17),k.c!=s.c.i.c){++F;break}for(j=0,V=new x2(k.j,k.j.c.length);V.b>0;){for(SL(V.b>0),G=0,l=new Gf((Q=$H(V.a.Xb(V.c=--V.b),11)).e);l.a<l.c.c.length;)s=$H(J0(l),17),k.c!=s.c.i.c&&++G;G>0&&(Q.j==(bGe(),sOt)?(e.a[Q.p]=re,++re):(e.a[Q.p]=re+F+j,++j))}re+=j}for(W=new Nv,g=new cI,D=0,L=(O=t).length;D<L;++D)for(te=new Gf((k=O[D]).j);te.a<te.c.c.length;)for(l=new Gf((ee=$H(J0(te),11)).g);l.a<l.c.c.length;)if(oe=(s=$H(J0(l),17)).d,k.c!=oe.i.c)if(Z=$H(HO(OX(W.f,ee)),467),ie=$H(HO(OX(W.f,oe)),467),Z||ie)if(Z)if(ie)if(Z==ie)GH(Z.a,s);else{for(GH(Z.a,s),U=new Gf(ie.d);U.a<U.c.c.length;)H=$H(J0(U),11),yke(W.f,H,Z);pse(Z.a,ie.a),pse(Z.d,ie.d),g.a.Bc(ie)}else GH(Z.a,s),GH(Z.d,oe),yke(W.f,oe,Z);else GH(ie.a,s),GH(ie.d,ee),yke(W.f,ee,ie);else p=new RP,g.a.zc(p,g),GH(p.a,s),GH(p.d,ee),yke(W.f,ee,p),GH(p.d,oe),yke(W.f,oe,p);for(m=$H(wbe(g,N8(Fbt,{3:1,4:1,5:1,1946:1},467,g.a.gc(),0,1)),1946),T=t[0].c,X=n[0].c,h=0,f=(d=m).length;h<f;++h)for((u=d[h]).e=J,u.f=re,z=new Gf(u.d);z.a<z.c.c.length;)Q=$H(J0(z),11),K=e.a[Q.p],Q.i.c==T?(K<u.e&&(u.e=K),K>u.b&&(u.b=K)):Q.i.c==X&&(K<u.f&&(u.f=K),K>u.c&&(u.c=K));for(Q7(m,0,m.length,null),ne=N8(kRt,lqe,25,m.length,15,1),i=N8(kRt,lqe,25,re+1,15,1),A=0;A<m.length;A++)ne[A]=m[A].f,i[ne[A]]=1;for(a=0,b=0;b<i.length;b++)1==i[b]?i[b]=a:--a;for(Y=0,y=0;y<ne.length;y++)ne[y]+=i[ne[y]],Y=r.Math.max(Y,ne[y]+1);for(c=1;c<Y;)c*=2;for(se=2*c-1,c-=1,ae=N8(kRt,lqe,25,se,15,1),o=0,S=0;S<ne.length;S++)for(++ae[E=ne[S]+c];E>0;)E%2>0&&(o+=ae[E+1]),++ae[E=(E-1)/2|0];for(C=N8(Hbt,jKe,362,2*m.length,0,1),w=0;w<m.length;w++)C[2*w]=new HY(m[w],m[w].e,m[w].b,(K4(),jbt)),C[2*w+1]=new HY(m[w],m[w].b,m[w].e,$bt);for(Q7(C,0,C.length,null),$=0,_=0;_<C.length;_++)switch(C[_].d.g){case 0:++$;break;case 1:o+=--$}for(q=N8(Hbt,jKe,362,2*m.length,0,1),x=0;x<m.length;x++)q[2*x]=new HY(m[x],m[x].f,m[x].c,(K4(),jbt)),q[2*x+1]=new HY(m[x],m[x].c,m[x].f,$bt);for(Q7(q,0,q.length,null),$=0,v=0;v<q.length;v++)switch(q[v].d.g){case 0:++$;break;case 1:o+=--$}return o}function hKe(){hKe=M,aRt=new Ov(7),sRt=new az(8,94),new az(8,64),lRt=new az(8,36),pRt=new az(8,65),gRt=new az(8,122),mRt=new az(8,90),bRt=new az(8,98),hRt=new az(8,66),vRt=new az(8,60),yRt=new az(8,62),oRt=new Ov(11),YLe(iRt=new x1(4),48,57),YLe(ARt=new x1(4),48,57),YLe(ARt,65,90),YLe(ARt,95,95),YLe(ARt,97,122),YLe(fRt=new x1(4),9,9),YLe(fRt,10,10),YLe(fRt,12,12),YLe(fRt,13,13),YLe(fRt,32,32),cRt=Mje(iRt),dRt=Mje(ARt),uRt=Mje(fRt),eRt=new Nv,tRt=new Nv,nRt=Sse(Uw(Ytt,1),sYe,2,6,["Cn","Lu","Ll","Lt","Lm","Lo","Mn","Me","Mc","Nd","Nl","No","Zs","Zl","Zp","Cc","Cf",null,"Co","Cs","Pd","Ps","Pe","Pc","Po","Sm","Sc","Sk","So","Pi","Pf","L","M","N","Z","C","P","S"]),ZNt=Sse(Uw(Ytt,1),sYe,2,6,["Basic Latin","Latin-1 Supplement","Latin Extended-A","Latin Extended-B","IPA Extensions","Spacing Modifier Letters","Combining Diacritical Marks","Greek","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul Jamo","Ethiopic","Cherokee","Unified Canadian Aboriginal Syllabics","Ogham","Runic","Khmer","Mongolian","Latin Extended Additional","Greek Extended","General Punctuation","Superscripts and Subscripts","Currency Symbols","Combining Marks for Symbols","Letterlike Symbols","Number Forms","Arrows","Mathematical Operators","Miscellaneous Technical","Control Pictures","Optical Character Recognition","Enclosed Alphanumerics","Box Drawing","Block Elements","Geometric Shapes","Miscellaneous Symbols","Dingbats","Braille Patterns","CJK Radicals Supplement","Kangxi Radicals","Ideographic Description Characters","CJK Symbols and Punctuation","Hiragana","Katakana","Bopomofo","Hangul Compatibility Jamo","Kanbun","Bopomofo Extended","Enclosed CJK Letters and Months","CJK Compatibility","CJK Unified Ideographs Extension A","CJK Unified Ideographs","Yi Syllables","Yi Radicals","Hangul Syllables",get,"CJK Compatibility Ideographs","Alphabetic Presentation Forms","Arabic Presentation Forms-A","Combining Half Marks","CJK Compatibility Forms","Small Form Variants","Arabic Presentation Forms-B","Specials","Halfwidth and Fullwidth Forms","Old Italic","Gothic","Deseret","Byzantine Musical Symbols","Musical Symbols","Mathematical Alphanumeric Symbols","CJK Unified Ideographs Extension B","CJK Compatibility Ideographs Supplement","Tags"]),rRt=Sse(Uw(kRt,1),lqe,25,15,[66304,66351,66352,66383,66560,66639,118784,119039,119040,119295,119808,120831,131072,173782,194560,195103,917504,917631])}function fKe(){fKe=M,Sit=new aoe("OUT_T_L",0,(q7(),Yrt),(U9(),tit),(Rte(),Urt),Urt,Sse(Uw(Let,1),jKe,21,0,[wz((JIe(),Ikt),Sse(Uw(Ukt,1),MYe,93,0,[Rkt,Tkt]))])),Eit=new aoe("OUT_T_C",1,Krt,tit,Urt,Qrt,Sse(Uw(Let,1),jKe,21,0,[wz(Ikt,Sse(Uw(Ukt,1),MYe,93,0,[Rkt,Ckt])),wz(Ikt,Sse(Uw(Ukt,1),MYe,93,0,[Rkt,Ckt,kkt]))])),Cit=new aoe("OUT_T_R",2,qrt,tit,Urt,zrt,Sse(Uw(Let,1),jKe,21,0,[wz(Ikt,Sse(Uw(Ukt,1),MYe,93,0,[Rkt,Okt]))])),mit=new aoe("OUT_B_L",3,Yrt,rit,zrt,Urt,Sse(Uw(Let,1),jKe,21,0,[wz(Ikt,Sse(Uw(Ukt,1),MYe,93,0,[Dkt,Tkt]))])),git=new aoe("OUT_B_C",4,Krt,rit,zrt,Qrt,Sse(Uw(Let,1),jKe,21,0,[wz(Ikt,Sse(Uw(Ukt,1),MYe,93,0,[Dkt,Ckt])),wz(Ikt,Sse(Uw(Ukt,1),MYe,93,0,[Dkt,Ckt,kkt]))])),vit=new aoe("OUT_B_R",5,qrt,rit,zrt,zrt,Sse(Uw(Let,1),jKe,21,0,[wz(Ikt,Sse(Uw(Ukt,1),MYe,93,0,[Dkt,Okt]))])),yit=new aoe("OUT_L_T",6,qrt,rit,Urt,Urt,Sse(Uw(Let,1),jKe,21,0,[wz(Ikt,Sse(Uw(Ukt,1),MYe,93,0,[Tkt,Rkt,kkt]))])),bit=new aoe("OUT_L_C",7,qrt,nit,Qrt,Urt,Sse(Uw(Let,1),jKe,21,0,[wz(Ikt,Sse(Uw(Ukt,1),MYe,93,0,[Tkt,Nkt])),wz(Ikt,Sse(Uw(Ukt,1),MYe,93,0,[Tkt,Nkt,kkt]))])),Ait=new aoe("OUT_L_B",8,qrt,tit,zrt,Urt,Sse(Uw(Let,1),jKe,21,0,[wz(Ikt,Sse(Uw(Ukt,1),MYe,93,0,[Tkt,Dkt,kkt]))])),xit=new aoe("OUT_R_T",9,Yrt,rit,Urt,zrt,Sse(Uw(Let,1),jKe,21,0,[wz(Ikt,Sse(Uw(Ukt,1),MYe,93,0,[Okt,Rkt,kkt]))])),_it=new aoe("OUT_R_C",10,Yrt,nit,Qrt,zrt,Sse(Uw(Let,1),jKe,21,0,[wz(Ikt,Sse(Uw(Ukt,1),MYe,93,0,[Okt,Nkt])),wz(Ikt,Sse(Uw(Ukt,1),MYe,93,0,[Okt,Nkt,kkt]))])),wit=new aoe("OUT_R_B",11,Yrt,tit,zrt,zrt,Sse(Uw(Let,1),jKe,21,0,[wz(Ikt,Sse(Uw(Ukt,1),MYe,93,0,[Okt,Dkt,kkt]))])),fit=new aoe("IN_T_L",12,Yrt,rit,Urt,Urt,Sse(Uw(Let,1),jKe,21,0,[wz(Mkt,Sse(Uw(Ukt,1),MYe,93,0,[Rkt,Tkt])),wz(Mkt,Sse(Uw(Ukt,1),MYe,93,0,[Rkt,Tkt,kkt]))])),hit=new aoe("IN_T_C",13,Krt,rit,Urt,Qrt,Sse(Uw(Let,1),jKe,21,0,[wz(Mkt,Sse(Uw(Ukt,1),MYe,93,0,[Rkt,Ckt])),wz(Mkt,Sse(Uw(Ukt,1),MYe,93,0,[Rkt,Ckt,kkt]))])),pit=new aoe("IN_T_R",14,qrt,rit,Urt,zrt,Sse(Uw(Let,1),jKe,21,0,[wz(Mkt,Sse(Uw(Ukt,1),MYe,93,0,[Rkt,Okt])),wz(Mkt,Sse(Uw(Ukt,1),MYe,93,0,[Rkt,Okt,kkt]))])),uit=new aoe("IN_C_L",15,Yrt,nit,Qrt,Urt,Sse(Uw(Let,1),jKe,21,0,[wz(Mkt,Sse(Uw(Ukt,1),MYe,93,0,[Nkt,Tkt])),wz(Mkt,Sse(Uw(Ukt,1),MYe,93,0,[Nkt,Tkt,kkt]))])),cit=new aoe("IN_C_C",16,Krt,nit,Qrt,Qrt,Sse(Uw(Let,1),jKe,21,0,[wz(Mkt,Sse(Uw(Ukt,1),MYe,93,0,[Nkt,Ckt])),wz(Mkt,Sse(Uw(Ukt,1),MYe,93,0,[Nkt,Ckt,kkt]))])),dit=new aoe("IN_C_R",17,qrt,nit,Qrt,zrt,Sse(Uw(Let,1),jKe,21,0,[wz(Mkt,Sse(Uw(Ukt,1),MYe,93,0,[Nkt,Okt])),wz(Mkt,Sse(Uw(Ukt,1),MYe,93,0,[Nkt,Okt,kkt]))])),sit=new aoe("IN_B_L",18,Yrt,tit,zrt,Urt,Sse(Uw(Let,1),jKe,21,0,[wz(Mkt,Sse(Uw(Ukt,1),MYe,93,0,[Dkt,Tkt])),wz(Mkt,Sse(Uw(Ukt,1),MYe,93,0,[Dkt,Tkt,kkt]))])),ait=new aoe("IN_B_C",19,Krt,tit,zrt,Qrt,Sse(Uw(Let,1),jKe,21,0,[wz(Mkt,Sse(Uw(Ukt,1),MYe,93,0,[Dkt,Ckt])),wz(Mkt,Sse(Uw(Ukt,1),MYe,93,0,[Dkt,Ckt,kkt]))])),lit=new aoe("IN_B_R",20,qrt,tit,zrt,zrt,Sse(Uw(Let,1),jKe,21,0,[wz(Mkt,Sse(Uw(Ukt,1),MYe,93,0,[Dkt,Okt])),wz(Mkt,Sse(Uw(Ukt,1),MYe,93,0,[Dkt,Okt,kkt]))])),Tit=new aoe(lJe,21,null,null,null,null,Sse(Uw(Let,1),jKe,21,0,[]))}function pKe(){pKe=M,eDt=(KV(),JIt).b,$H(Gte(Kq(JIt.b),0),34),$H(Gte(Kq(JIt.b),1),18),ZIt=JIt.a,$H(Gte(Kq(JIt.a),0),34),$H(Gte(Kq(JIt.a),1),18),$H(Gte(Kq(JIt.a),2),18),$H(Gte(Kq(JIt.a),3),18),$H(Gte(Kq(JIt.a),4),18),tDt=JIt.o,$H(Gte(Kq(JIt.o),0),34),$H(Gte(Kq(JIt.o),1),34),rDt=$H(Gte(Kq(JIt.o),2),18),$H(Gte(Kq(JIt.o),3),18),$H(Gte(Kq(JIt.o),4),18),$H(Gte(Kq(JIt.o),5),18),$H(Gte(Kq(JIt.o),6),18),$H(Gte(Kq(JIt.o),7),18),$H(Gte(Kq(JIt.o),8),18),$H(Gte(Kq(JIt.o),9),18),$H(Gte(Kq(JIt.o),10),18),$H(Gte(Kq(JIt.o),11),18),$H(Gte(Kq(JIt.o),12),18),$H(Gte(Kq(JIt.o),13),18),$H(Gte(Kq(JIt.o),14),18),$H(Gte(Kq(JIt.o),15),18),$H(Gte(Vq(JIt.o),0),59),$H(Gte(Vq(JIt.o),1),59),$H(Gte(Vq(JIt.o),2),59),$H(Gte(Vq(JIt.o),3),59),$H(Gte(Vq(JIt.o),4),59),$H(Gte(Vq(JIt.o),5),59),$H(Gte(Vq(JIt.o),6),59),$H(Gte(Vq(JIt.o),7),59),$H(Gte(Vq(JIt.o),8),59),$H(Gte(Vq(JIt.o),9),59),nDt=JIt.p,$H(Gte(Kq(JIt.p),0),34),$H(Gte(Kq(JIt.p),1),34),$H(Gte(Kq(JIt.p),2),34),$H(Gte(Kq(JIt.p),3),34),$H(Gte(Kq(JIt.p),4),18),$H(Gte(Kq(JIt.p),5),18),$H(Gte(Vq(JIt.p),0),59),$H(Gte(Vq(JIt.p),1),59),iDt=JIt.q,$H(Gte(Kq(JIt.q),0),34),oDt=JIt.v,$H(Gte(Kq(JIt.v),0),18),$H(Gte(Vq(JIt.v),0),59),$H(Gte(Vq(JIt.v),1),59),$H(Gte(Vq(JIt.v),2),59),aDt=JIt.w,$H(Gte(Kq(JIt.w),0),34),$H(Gte(Kq(JIt.w),1),34),$H(Gte(Kq(JIt.w),2),34),$H(Gte(Kq(JIt.w),3),18),sDt=JIt.B,$H(Gte(Kq(JIt.B),0),18),$H(Gte(Vq(JIt.B),0),59),$H(Gte(Vq(JIt.B),1),59),$H(Gte(Vq(JIt.B),2),59),uDt=JIt.Q,$H(Gte(Kq(JIt.Q),0),18),$H(Gte(Vq(JIt.Q),0),59),dDt=JIt.R,$H(Gte(Kq(JIt.R),0),34),hDt=JIt.S,$H(Gte(Vq(JIt.S),0),59),$H(Gte(Vq(JIt.S),1),59),$H(Gte(Vq(JIt.S),2),59),$H(Gte(Vq(JIt.S),3),59),$H(Gte(Vq(JIt.S),4),59),$H(Gte(Vq(JIt.S),5),59),$H(Gte(Vq(JIt.S),6),59),$H(Gte(Vq(JIt.S),7),59),$H(Gte(Vq(JIt.S),8),59),$H(Gte(Vq(JIt.S),9),59),$H(Gte(Vq(JIt.S),10),59),$H(Gte(Vq(JIt.S),11),59),$H(Gte(Vq(JIt.S),12),59),$H(Gte(Vq(JIt.S),13),59),$H(Gte(Vq(JIt.S),14),59),fDt=JIt.T,$H(Gte(Kq(JIt.T),0),18),$H(Gte(Kq(JIt.T),2),18),pDt=$H(Gte(Kq(JIt.T),3),18),$H(Gte(Kq(JIt.T),4),18),$H(Gte(Vq(JIt.T),0),59),$H(Gte(Vq(JIt.T),1),59),$H(Gte(Kq(JIt.T),1),18),gDt=JIt.U,$H(Gte(Kq(JIt.U),0),34),$H(Gte(Kq(JIt.U),1),34),$H(Gte(Kq(JIt.U),2),18),$H(Gte(Kq(JIt.U),3),18),$H(Gte(Kq(JIt.U),4),18),$H(Gte(Kq(JIt.U),5),18),$H(Gte(Vq(JIt.U),0),59),mDt=JIt.V,$H(Gte(Kq(JIt.V),0),18),vDt=JIt.W,$H(Gte(Kq(JIt.W),0),34),$H(Gte(Kq(JIt.W),1),34),$H(Gte(Kq(JIt.W),2),34),$H(Gte(Kq(JIt.W),3),18),$H(Gte(Kq(JIt.W),4),18),$H(Gte(Kq(JIt.W),5),18),bDt=JIt.bb,$H(Gte(Kq(JIt.bb),0),34),$H(Gte(Kq(JIt.bb),1),34),$H(Gte(Kq(JIt.bb),2),34),$H(Gte(Kq(JIt.bb),3),34),$H(Gte(Kq(JIt.bb),4),34),$H(Gte(Kq(JIt.bb),5),34),$H(Gte(Kq(JIt.bb),6),34),$H(Gte(Kq(JIt.bb),7),18),$H(Gte(Vq(JIt.bb),0),59),$H(Gte(Vq(JIt.bb),1),59),yDt=JIt.eb,$H(Gte(Kq(JIt.eb),0),34),$H(Gte(Kq(JIt.eb),1),34),$H(Gte(Kq(JIt.eb),2),34),$H(Gte(Kq(JIt.eb),3),34),$H(Gte(Kq(JIt.eb),4),34),$H(Gte(Kq(JIt.eb),5),34),$H(Gte(Kq(JIt.eb),6),18),$H(Gte(Kq(JIt.eb),7),18),ADt=JIt.ab,$H(Gte(Kq(JIt.ab),0),34),$H(Gte(Kq(JIt.ab),1),34),lDt=JIt.H,$H(Gte(Kq(JIt.H),0),18),$H(Gte(Kq(JIt.H),1),18),$H(Gte(Kq(JIt.H),2),18),$H(Gte(Kq(JIt.H),3),18),$H(Gte(Kq(JIt.H),4),18),$H(Gte(Kq(JIt.H),5),18),$H(Gte(Vq(JIt.H),0),59),wDt=JIt.db,$H(Gte(Kq(JIt.db),0),18),cDt=JIt.M}function gKe(e){var t;e.O||(e.O=!0,Die(e,"type"),Nie(e,"ecore.xml.type"),Rie(e,E9e),t=$H(MDe((GS(),UIt),E9e),1945),c7(bX(e.fb),e.b),Q1(e.b,dNt,"AnyType",!1,!1,!0),ooe($H(Gte(Kq(e.b),0),34),e.wb.D,B7e,null,0,-1,dNt,!1,!1,!0,!1,!1,!1),ooe($H(Gte(Kq(e.b),1),34),e.wb.D,"any",null,0,-1,dNt,!0,!0,!0,!1,!1,!0),ooe($H(Gte(Kq(e.b),2),34),e.wb.D,"anyAttribute",null,0,-1,dNt,!1,!1,!0,!1,!1,!1),Q1(e.bb,UNt,O9e,!1,!1,!0),ooe($H(Gte(Kq(e.bb),0),34),e.gb,"data",null,0,1,UNt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.bb),1),34),e.gb,Y6e,null,1,1,UNt,!1,!1,!0,!1,!0,!1),Q1(e.fb,QNt,M9e,!1,!1,!0),ooe($H(Gte(Kq(e.fb),0),34),t.gb,"rawValue",null,0,1,QNt,!0,!0,!0,!1,!0,!0),ooe($H(Gte(Kq(e.fb),1),34),t.a,w6e,null,0,1,QNt,!0,!0,!0,!1,!0,!0),xye($H(Gte(Kq(e.fb),2),18),e.wb.q,null,"instanceType",1,1,QNt,!1,!1,!0,!1,!1,!1,!1),Q1(e.qb,zNt,I9e,!1,!1,!0),ooe($H(Gte(Kq(e.qb),0),34),e.wb.D,B7e,null,0,-1,null,!1,!1,!0,!1,!1,!1),xye($H(Gte(Kq(e.qb),1),18),e.wb.ab,null,"xMLNSPrefixMap",0,-1,null,!0,!1,!0,!0,!1,!1,!1),xye($H(Gte(Kq(e.qb),2),18),e.wb.ab,null,"xSISchemaLocation",0,-1,null,!0,!1,!0,!0,!1,!1,!1),ooe($H(Gte(Kq(e.qb),3),34),e.gb,"cDATA",null,0,-2,null,!0,!0,!0,!1,!1,!0),ooe($H(Gte(Kq(e.qb),4),34),e.gb,"comment",null,0,-2,null,!0,!0,!0,!1,!1,!0),xye($H(Gte(Kq(e.qb),5),18),e.bb,null,ret,0,-2,null,!0,!0,!0,!0,!1,!1,!0),ooe($H(Gte(Kq(e.qb),6),34),e.gb,k6e,null,0,-2,null,!0,!0,!0,!1,!1,!0),fY(e.a,Met,"AnySimpleType",!0),fY(e.c,Ytt,"AnyURI",!0),fY(e.d,Uw(IRt,1),"Base64Binary",!0),fY(e.e,ORt,"Boolean",!0),fY(e.f,ytt,"BooleanObject",!0),fY(e.g,IRt,"Byte",!0),fY(e.i,xtt,"ByteObject",!0),fY(e.j,Ytt,"Date",!0),fY(e.k,Ytt,"DateTime",!0),fY(e.n,nnt,"Decimal",!0),fY(e.o,DRt,"Double",!0),fY(e.p,Ctt,"DoubleObject",!0),fY(e.q,Ytt,"Duration",!0),fY(e.s,Bet,"ENTITIES",!0),fY(e.r,Bet,"ENTITIESBase",!0),fY(e.t,Ytt,P9e,!0),fY(e.u,NRt,"Float",!0),fY(e.v,Ttt,"FloatObject",!0),fY(e.w,Ytt,"GDay",!0),fY(e.B,Ytt,"GMonth",!0),fY(e.A,Ytt,"GMonthDay",!0),fY(e.C,Ytt,"GYear",!0),fY(e.D,Ytt,"GYearMonth",!0),fY(e.F,Uw(IRt,1),"HexBinary",!0),fY(e.G,Ytt,"ID",!0),fY(e.H,Ytt,"IDREF",!0),fY(e.J,Bet,"IDREFS",!0),fY(e.I,Bet,"IDREFSBase",!0),fY(e.K,kRt,"Int",!0),fY(e.M,snt,"Integer",!0),fY(e.L,Mtt,"IntObject",!0),fY(e.P,Ytt,"Language",!0),fY(e.Q,MRt,"Long",!0),fY(e.R,Btt,"LongObject",!0),fY(e.S,Ytt,"Name",!0),fY(e.T,Ytt,F9e,!0),fY(e.U,snt,"NegativeInteger",!0),fY(e.V,Ytt,K9e,!0),fY(e.X,Bet,"NMTOKENS",!0),fY(e.W,Bet,"NMTOKENSBase",!0),fY(e.Y,snt,"NonNegativeInteger",!0),fY(e.Z,snt,"NonPositiveInteger",!0),fY(e.$,Ytt,"NormalizedString",!0),fY(e._,Ytt,"NOTATION",!0),fY(e.ab,Ytt,"PositiveInteger",!0),fY(e.cb,Ytt,"QName",!0),fY(e.db,RRt,"Short",!0),fY(e.eb,Ftt,"ShortObject",!0),fY(e.gb,Ytt,HYe,!0),fY(e.hb,Ytt,"Time",!0),fY(e.ib,Ytt,"Token",!0),fY(e.jb,RRt,"UnsignedByte",!0),fY(e.kb,Ftt,"UnsignedByteObject",!0),fY(e.lb,MRt,"UnsignedInt",!0),fY(e.mb,Btt,"UnsignedIntObject",!0),fY(e.nb,snt,"UnsignedLong",!0),fY(e.ob,kRt,"UnsignedShort",!0),fY(e.pb,Mtt,"UnsignedShortObject",!0),Iue(e,E9e),AKe(e))}function mKe(e){DS(e,new xEe(v_(f_(m_(h_(g_(p_(new ms,h0e),"ELK Layered"),"Layer-based algorithm provided by the Eclipse Layout Kernel. Arranges as many edges as possible into one direction by placing nodes into subsequent layers. This implementation supports different routing styles (straight, orthogonal, splines); if orthogonal routing is selected, arbitrary port constraints are respected, thus enabling the layout of block diagrams such as actor-oriented models or circuit schematics. Furthermore, full layout of compound graphs with cross-hierarchy edges is supported when the respective option is activated on the top level."),new Oo),h0e),wz((lIe(),eIt),Sse(Uw(rIt,1),MYe,237,0,[XMt,JMt,qMt,ZMt,KMt,VMt]))))),o2(e,h0e,I2e,vve(gvt)),o2(e,h0e,D2e,vve(mvt)),o2(e,h0e,WJe,vve(vvt)),o2(e,h0e,N2e,vve(Avt)),o2(e,h0e,vZe,vve(yvt)),o2(e,h0e,R2e,vve(wvt)),o2(e,h0e,L2e,vve(Evt)),o2(e,h0e,B2e,vve(Cvt)),o2(e,h0e,P2e,vve(Tvt)),o2(e,h0e,F2e,vve(Svt)),o2(e,h0e,mZe,vve(kvt)),o2(e,h0e,$2e,vve(Mvt)),o2(e,h0e,j2e,vve(Dvt)),o2(e,h0e,H2e,vve(xvt)),o2(e,h0e,I1e,vve(pvt)),o2(e,h0e,N1e,vve(bvt)),o2(e,h0e,D1e,vve(_vt)),o2(e,h0e,R1e,vve(Ovt)),o2(e,h0e,gZe,the(0)),o2(e,h0e,L1e,vve(cvt)),o2(e,h0e,B1e,vve(uvt)),o2(e,h0e,P1e,vve(dvt)),o2(e,h0e,z1e,vve(Qvt)),o2(e,h0e,W1e,vve(Lvt)),o2(e,h0e,G1e,vve(Bvt)),o2(e,h0e,V1e,vve($vt)),o2(e,h0e,K1e,vve(Pvt)),o2(e,h0e,Y1e,vve(Fvt)),o2(e,h0e,q1e,vve(Wvt)),o2(e,h0e,X1e,vve(zvt)),o2(e,h0e,J1e,vve(Hvt)),o2(e,h0e,Z1e,vve(jvt)),o2(e,h0e,e2e,vve(Uvt)),o2(e,h0e,E1e,vve(Lmt)),o2(e,h0e,S1e,vve(Bmt)),o2(e,h0e,k1e,vve(nmt)),o2(e,h0e,O1e,vve(rmt)),o2(e,h0e,KJe,zmt),o2(e,h0e,A2e,Jgt),o2(e,h0e,U2e,0),o2(e,h0e,AZe,the(1)),o2(e,h0e,VJe,fZe),o2(e,h0e,Q2e,vve(Umt)),o2(e,h0e,wZe,vve(evt)),o2(e,h0e,z2e,vve(ovt)),o2(e,h0e,W2e,vve(Qgt)),o2(e,h0e,G2e,vve(bgt)),o2(e,h0e,f2e,vve(smt)),o2(e,h0e,bZe,(lR(),!0)),o2(e,h0e,V2e,vve(hmt)),o2(e,h0e,K2e,vve(fmt)),o2(e,h0e,SZe,vve(Fmt)),o2(e,h0e,EZe,vve(Hmt)),o2(e,h0e,Y2e,vve($mt)),o2(e,h0e,q2e,Ggt),o2(e,h0e,CZe,vve(Mmt)),o2(e,h0e,X2e,vve(Omt)),o2(e,h0e,TZe,vve(rvt)),o2(e,h0e,J2e,vve(nvt)),o2(e,h0e,Z2e,vve(ivt)),o2(e,h0e,e3e,Vmt),o2(e,h0e,t3e,vve(Ymt)),o2(e,h0e,n3e,vve(qmt)),o2(e,h0e,r3e,vve(Xmt)),o2(e,h0e,i3e,vve(Kmt)),o2(e,h0e,J0e,vve(Rvt)),o2(e,h0e,t1e,vve(Smt)),o2(e,h0e,s1e,vve(Emt)),o2(e,h0e,X0e,vve(Nvt)),o2(e,h0e,n1e,vve(bmt)),o2(e,h0e,e1e,vve(Ugt)),o2(e,h0e,u1e,vve(Hgt)),o2(e,h0e,d1e,vve(Ngt)),o2(e,h0e,m1e,vve(Rgt)),o2(e,h0e,v1e,vve(Bgt)),o2(e,h0e,A1e,vve(Lgt)),o2(e,h0e,f1e,vve(jgt)),o2(e,h0e,V0e,vve(Tmt)),o2(e,h0e,K0e,vve(kmt)),o2(e,h0e,G0e,vve(gmt)),o2(e,h0e,b1e,vve(Pmt)),o2(e,h0e,_1e,vve(Dmt)),o2(e,h0e,W0e,vve(omt)),o2(e,h0e,x1e,vve(Rmt)),o2(e,h0e,C1e,vve(emt)),o2(e,h0e,T1e,vve(tmt)),o2(e,h0e,o3e,vve(Dgt)),o2(e,h0e,w1e,vve(Imt)),o2(e,h0e,$1e,vve(Sgt)),o2(e,h0e,j1e,vve(Egt)),o2(e,h0e,F1e,vve(xgt)),o2(e,h0e,H1e,vve(cmt)),o2(e,h0e,U1e,vve(lmt)),o2(e,h0e,Q1e,vve(umt)),o2(e,h0e,$Ze,vve(jmt)),o2(e,h0e,a3e,vve(mmt)),o2(e,h0e,GJe,vve(imt)),o2(e,h0e,s3e,vve(Ygt)),o2(e,h0e,_Ze,vve(Kgt)),o2(e,h0e,h1e,vve(Pgt)),o2(e,h0e,l3e,vve(tvt)),o2(e,h0e,c3e,vve(_gt)),o2(e,h0e,u3e,vve(dmt)),o2(e,h0e,d3e,vve(Jmt)),o2(e,h0e,h3e,vve(Wmt)),o2(e,h0e,f3e,vve(Gmt)),o2(e,h0e,o1e,vve(wmt)),o2(e,h0e,a1e,vve(_mt)),o2(e,h0e,p3e,vve(svt)),o2(e,h0e,Y0e,vve(ygt)),o2(e,h0e,l1e,vve(xmt)),o2(e,h0e,t2e,vve(qgt)),o2(e,h0e,n2e,vve(Vgt)),o2(e,h0e,g3e,vve(Cmt)),o2(e,h0e,c1e,vve(vmt)),o2(e,h0e,y1e,vve(Nmt)),o2(e,h0e,m3e,vve(Ivt)),o2(e,h0e,z0e,vve(Wgt)),o2(e,h0e,q0e,vve(avt)),o2(e,h0e,M1e,vve(Zgt)),o2(e,h0e,r1e,vve(Amt)),o2(e,h0e,p1e,vve(Fgt)),o2(e,h0e,v3e,vve(pmt)),o2(e,h0e,i1e,vve(ymt)),o2(e,h0e,g1e,vve($gt)),o2(e,h0e,r2e,vve(Igt)),o2(e,h0e,a2e,vve(Ogt)),o2(e,h0e,s2e,vve(Tgt)),o2(e,h0e,l2e,vve(kgt)),o2(e,h0e,i2e,vve(Mgt)),o2(e,h0e,o2e,vve(Cgt)),o2(e,h0e,Z0e,vve(amt))}function vKe(e,t){var n;return XNt||(XNt=new Nv,JNt=new Nv,hKe(),hKe(),Age(n=new x1(4),"\t\n\r\r  "),vZ(XNt,uet,n),vZ(JNt,uet,Mje(n)),Age(n=new x1(4),fet),vZ(XNt,set,n),vZ(JNt,set,Mje(n)),Age(n=new x1(4),fet),vZ(XNt,set,n),vZ(JNt,set,Mje(n)),Age(n=new x1(4),pet),sUe(n,$H(EJ(XNt,set),117)),vZ(XNt,cet,n),vZ(JNt,cet,Mje(n)),Age(n=new x1(4),"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),vZ(XNt,det,n),vZ(JNt,det,Mje(n)),Age(n=new x1(4),pet),YLe(n,95,95),YLe(n,58,58),vZ(XNt,het,n),vZ(JNt,het,Mje(n))),$H(EJ(t?XNt:JNt,e),136)}function AKe(e){VDe(e.a,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"anySimpleType"])),VDe(e.b,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"anyType",F7e,B7e])),VDe($H(Gte(Kq(e.b),0),34),P7e,Sse(Uw(Ytt,1),sYe,2,6,[F7e,v9e,Z6e,":mixed"])),VDe($H(Gte(Kq(e.b),1),34),P7e,Sse(Uw(Ytt,1),sYe,2,6,[F7e,v9e,x9e,S9e,Z6e,":1",R9e,"lax"])),VDe($H(Gte(Kq(e.b),2),34),P7e,Sse(Uw(Ytt,1),sYe,2,6,[F7e,g9e,x9e,S9e,Z6e,":2",R9e,"lax"])),VDe(e.c,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"anyURI",_9e,A9e])),VDe(e.d,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"base64Binary",_9e,A9e])),VDe(e.e,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,MKe,_9e,A9e])),VDe(e.f,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"boolean:Object",q7e,MKe])),VDe(e.g,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,E7e])),VDe(e.i,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"byte:Object",q7e,E7e])),VDe(e.j,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"date",_9e,A9e])),VDe(e.k,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"dateTime",_9e,A9e])),VDe(e.n,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"decimal",_9e,A9e])),VDe(e.o,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,C7e,_9e,A9e])),VDe(e.p,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"double:Object",q7e,C7e])),VDe(e.q,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"duration",_9e,A9e])),VDe(e.s,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"ENTITIES",q7e,L9e,B9e,"1"])),VDe(e.r,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,L9e,b9e,P9e])),VDe(e.t,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,P9e,q7e,F9e])),VDe(e.u,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,T7e,_9e,A9e])),VDe(e.v,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"float:Object",q7e,T7e])),VDe(e.w,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"gDay",_9e,A9e])),VDe(e.B,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"gMonth",_9e,A9e])),VDe(e.A,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"gMonthDay",_9e,A9e])),VDe(e.C,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"gYear",_9e,A9e])),VDe(e.D,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"gYearMonth",_9e,A9e])),VDe(e.F,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"hexBinary",_9e,A9e])),VDe(e.G,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"ID",q7e,F9e])),VDe(e.H,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"IDREF",q7e,F9e])),VDe(e.J,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"IDREFS",q7e,$9e,B9e,"1"])),VDe(e.I,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,$9e,b9e,"IDREF"])),VDe(e.K,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,k7e])),VDe(e.M,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,j9e])),VDe(e.L,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"int:Object",q7e,k7e])),VDe(e.P,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"language",q7e,H9e,U9e,Q9e])),VDe(e.Q,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,O7e])),VDe(e.R,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"long:Object",q7e,O7e])),VDe(e.S,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"Name",q7e,H9e,U9e,z9e])),VDe(e.T,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,F9e,q7e,"Name",U9e,W9e])),VDe(e.U,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"negativeInteger",q7e,G9e,V9e,"-1"])),VDe(e.V,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,K9e,q7e,H9e,U9e,"\\c+"])),VDe(e.X,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"NMTOKENS",q7e,Y9e,B9e,"1"])),VDe(e.W,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,Y9e,b9e,K9e])),VDe(e.Y,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,q9e,q7e,j9e,X9e,"0"])),VDe(e.Z,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,G9e,q7e,j9e,V9e,"0"])),VDe(e.$,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,J9e,q7e,DKe,_9e,"replace"])),VDe(e._,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"NOTATION",_9e,A9e])),VDe(e.ab,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"positiveInteger",q7e,q9e,X9e,"1"])),VDe(e.bb,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"processingInstruction_._type",F7e,"empty"])),VDe($H(Gte(Kq(e.bb),0),34),P7e,Sse(Uw(Ytt,1),sYe,2,6,[F7e,p9e,Z6e,"data"])),VDe($H(Gte(Kq(e.bb),1),34),P7e,Sse(Uw(Ytt,1),sYe,2,6,[F7e,p9e,Z6e,Y6e])),VDe(e.cb,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"QName",_9e,A9e])),VDe(e.db,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,M7e])),VDe(e.eb,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"short:Object",q7e,M7e])),VDe(e.fb,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"simpleAnyType",F7e,f9e])),VDe($H(Gte(Kq(e.fb),0),34),P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,":3",F7e,f9e])),VDe($H(Gte(Kq(e.fb),1),34),P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,":4",F7e,f9e])),VDe($H(Gte(Kq(e.fb),2),18),P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,":5",F7e,f9e])),VDe(e.gb,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,DKe,_9e,"preserve"])),VDe(e.hb,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"time",_9e,A9e])),VDe(e.ib,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,H9e,q7e,J9e,_9e,A9e])),VDe(e.jb,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,Z9e,V9e,"255",X9e,"0"])),VDe(e.kb,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"unsignedByte:Object",q7e,Z9e])),VDe(e.lb,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,eet,V9e,"4294967295",X9e,"0"])),VDe(e.mb,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"unsignedInt:Object",q7e,eet])),VDe(e.nb,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"unsignedLong",q7e,q9e,V9e,tet,X9e,"0"])),VDe(e.ob,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,net,V9e,"65535",X9e,"0"])),VDe(e.pb,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"unsignedShort:Object",q7e,net])),VDe(e.qb,P7e,Sse(Uw(Ytt,1),sYe,2,6,[Z6e,"",F7e,B7e])),VDe($H(Gte(Kq(e.qb),0),34),P7e,Sse(Uw(Ytt,1),sYe,2,6,[F7e,v9e,Z6e,":mixed"])),VDe($H(Gte(Kq(e.qb),1),18),P7e,Sse(Uw(Ytt,1),sYe,2,6,[F7e,p9e,Z6e,"xmlns:prefix"])),VDe($H(Gte(Kq(e.qb),2),18),P7e,Sse(Uw(Ytt,1),sYe,2,6,[F7e,p9e,Z6e,"xsi:schemaLocation"])),VDe($H(Gte(Kq(e.qb),3),34),P7e,Sse(Uw(Ytt,1),sYe,2,6,[F7e,m9e,Z6e,"cDATA",y9e,w9e])),VDe($H(Gte(Kq(e.qb),4),34),P7e,Sse(Uw(Ytt,1),sYe,2,6,[F7e,m9e,Z6e,"comment",y9e,w9e])),VDe($H(Gte(Kq(e.qb),5),18),P7e,Sse(Uw(Ytt,1),sYe,2,6,[F7e,m9e,Z6e,ret,y9e,w9e])),VDe($H(Gte(Kq(e.qb),6),34),P7e,Sse(Uw(Ytt,1),sYe,2,6,[F7e,m9e,Z6e,k6e,y9e,w9e]))}function bKe(e){return vF("_UI_EMFDiagnostic_marker",e)?"EMF Problem":vF("_UI_CircularContainment_diagnostic",e)?"An object may not circularly contain itself":vF(h8e,e)?"Wrong character.":vF(f8e,e)?"Invalid reference number.":vF(p8e,e)?"A character is required after \\.":vF(g8e,e)?"'?' is not expected.  '(?:' or '(?=' or '(?!' or '(?<' or '(?#' or '(?>'?":vF(m8e,e)?"'(?<' or '(?<!' is expected.":vF(v8e,e)?"A comment is not terminated.":vF(A8e,e)?"')' is expected.":vF(b8e,e)?"Unexpected end of the pattern in a modifier group.":vF(y8e,e)?"':' is expected.":vF(w8e,e)?"Unexpected end of the pattern in a conditional group.":vF(_8e,e)?"A back reference or an anchor or a lookahead or a look-behind is expected in a conditional pattern.":vF(x8e,e)?"There are more than three choices in a conditional group.":vF(E8e,e)?"A character in U+0040-U+005f must follow \\c.":vF(S8e,e)?"A '{' is required before a character category.":vF(C8e,e)?"A property name is not closed by '}'.":vF(T8e,e)?"Unexpected meta character.":vF(k8e,e)?"Unknown property.":vF(O8e,e)?"A POSIX character class must be closed by ':]'.":vF(M8e,e)?"Unexpected end of the pattern in a character class.":vF(I8e,e)?"Unknown name for a POSIX character class.":vF("parser.cc.4",e)?"'-' is invalid here.":vF(D8e,e)?"']' is expected.":vF(N8e,e)?"'[' is invalid in a character class.  Write '\\['.":vF(R8e,e)?"']' is invalid in a character class.  Write '\\]'.":vF(L8e,e)?"'-' is an invalid character range. Write '\\-'.":vF(B8e,e)?"'[' is expected.":vF(P8e,e)?"')' or '-[' or '+[' or '&[' is expected.":vF(F8e,e)?"The range end code point is less than the start code point.":vF($8e,e)?"Invalid Unicode hex notation.":vF(j8e,e)?"Overflow in a hex notation.":vF(H8e,e)?"'\\x{' must be closed by '}'.":vF(U8e,e)?"Invalid Unicode code point.":vF(Q8e,e)?"An anchor must not be here.":vF(z8e,e)?"This expression is not supported in the current option setting.":vF(W8e,e)?"Invalid quantifier. A digit is expected.":vF(G8e,e)?"Invalid quantifier. Invalid quantity or a '}' is missing.":vF(V8e,e)?"Invalid quantifier. A digit or '}' is expected.":vF(K8e,e)?"Invalid quantifier. A min quantity must be <= a max quantity.":vF(Y8e,e)?"Invalid quantifier. A quantity value overflow.":vF("_UI_PackageRegistry_extensionpoint",e)?"Ecore Package Registry for Generated Packages":vF("_UI_DynamicPackageRegistry_extensionpoint",e)?"Ecore Package Registry for Dynamic Packages":vF("_UI_FactoryRegistry_extensionpoint",e)?"Ecore Factory Override Registry":vF("_UI_URIExtensionParserRegistry_extensionpoint",e)?"URI Extension Parser Registry":vF("_UI_URIProtocolParserRegistry_extensionpoint",e)?"URI Protocol Parser Registry":vF("_UI_URIContentParserRegistry_extensionpoint",e)?"URI Content Parser Registry":vF("_UI_ContentHandlerRegistry_extensionpoint",e)?"Content Handler Registry":vF("_UI_URIMappingRegistry_extensionpoint",e)?"URI Converter Mapping Registry":vF("_UI_PackageRegistryImplementation_extensionpoint",e)?"Ecore Package Registry Implementation":vF("_UI_ValidationDelegateRegistry_extensionpoint",e)?"Validation Delegate Registry":vF("_UI_SettingDelegateRegistry_extensionpoint",e)?"Feature Setting Delegate Factory Registry":vF("_UI_InvocationDelegateRegistry_extensionpoint",e)?"Operation Invocation Delegate Factory Registry":vF("_UI_EClassInterfaceNotAbstract_diagnostic",e)?"A class that is an interface must also be abstract":vF("_UI_EClassNoCircularSuperTypes_diagnostic",e)?"A class may not be a super type of itself":vF("_UI_EClassNotWellFormedMapEntryNoInstanceClassName_diagnostic",e)?"A class that inherits from a map entry class must have instance class name 'java.util.Map$Entry'":vF("_UI_EReferenceOppositeOfOppositeInconsistent_diagnostic",e)?"The opposite of the opposite may not be a reference different from this one":vF("_UI_EReferenceOppositeNotFeatureOfType_diagnostic",e)?"The opposite must be a feature of the reference's type":vF("_UI_EReferenceTransientOppositeNotTransient_diagnostic",e)?"The opposite of a transient reference must be transient if it is proxy resolving":vF("_UI_EReferenceOppositeBothContainment_diagnostic",e)?"The opposite of a containment reference must not be a containment reference":vF("_UI_EReferenceConsistentUnique_diagnostic",e)?"A containment or bidirectional reference must be unique if its upper bound is different from 1":vF("_UI_ETypedElementNoType_diagnostic",e)?"The typed element must have a type":vF("_UI_EAttributeNoDataType_diagnostic",e)?"The generic attribute type must not refer to a class":vF("_UI_EReferenceNoClass_diagnostic",e)?"The generic reference type must not refer to a data type":vF("_UI_EGenericTypeNoTypeParameterAndClassifier_diagnostic",e)?"A generic type can't refer to both a type parameter and a classifier":vF("_UI_EGenericTypeNoClass_diagnostic",e)?"A generic super type must refer to a class":vF("_UI_EGenericTypeNoTypeParameterOrClassifier_diagnostic",e)?"A generic type in this context must refer to a classifier or a type parameter":vF("_UI_EGenericTypeBoundsOnlyForTypeArgument_diagnostic",e)?"A generic type may have bounds only when used as a type argument":vF("_UI_EGenericTypeNoUpperAndLowerBound_diagnostic",e)?"A generic type must not have both a lower and an upper bound":vF("_UI_EGenericTypeNoTypeParameterOrClassifierAndBound_diagnostic",e)?"A generic type with bounds must not also refer to a type parameter or classifier":vF("_UI_EGenericTypeNoArguments_diagnostic",e)?"A generic type may have arguments only if it refers to a classifier":vF("_UI_EGenericTypeOutOfScopeTypeParameter_diagnostic",e)?"A generic type may only refer to a type parameter that is in scope":e}function yKe(e){var t,n,r,i,o,a,s;e.r||(e.r=!0,Die(e,"graph"),Nie(e,"graph"),Rie(e,A6e),rse(e.o,"T"),c7(bX(e.a),e.p),c7(bX(e.f),e.a),c7(bX(e.n),e.f),c7(bX(e.g),e.n),c7(bX(e.c),e.n),c7(bX(e.i),e.c),c7(bX(e.j),e.c),c7(bX(e.d),e.f),c7(bX(e.e),e.a),Q1(e.p,Wit,kJe,!0,!0,!1),s=_se(a=vce(e.p,e.p,"setProperty")),t=XY(e.o),n=new Bv,c7((!t.d&&(t.d=new MN(GIt,t,1)),t.d),n),bxe(n,r=JY(s)),z_e(a,t,y6e),z_e(a,t=JY(s),w6e),s=_se(a=vce(e.p,null,"getProperty")),t=XY(e.o),n=JY(s),c7((!t.d&&(t.d=new MN(GIt,t,1)),t.d),n),z_e(a,t,y6e),(o=jEe(a,t=JY(s),null))&&o.Fi(),a=vce(e.p,e.wb.e,"hasProperty"),t=XY(e.o),n=new Bv,c7((!t.d&&(t.d=new MN(GIt,t,1)),t.d),n),z_e(a,t,y6e),Mye(a=vce(e.p,e.p,"copyProperties"),e.p,_6e),a=vce(e.p,null,"getAllProperties"),t=XY(e.wb.P),n=XY(e.o),c7((!t.d&&(t.d=new MN(GIt,t,1)),t.d),n),r=new Bv,c7((!n.d&&(n.d=new MN(GIt,n,1)),n.d),r),n=XY(e.wb.M),c7((!t.d&&(t.d=new MN(GIt,t,1)),t.d),n),(i=jEe(a,t,null))&&i.Fi(),Q1(e.a,IMt,Q5e,!0,!1,!0),xye($H(Gte(Kq(e.a),0),18),e.k,null,x6e,0,-1,IMt,!1,!1,!0,!0,!1,!1,!1),Q1(e.f,NMt,W5e,!0,!1,!0),xye($H(Gte(Kq(e.f),0),18),e.g,$H(Gte(Kq(e.g),0),18),"labels",0,-1,NMt,!1,!1,!0,!0,!1,!1,!1),ooe($H(Gte(Kq(e.f),1),34),e.wb._,E6e,null,0,1,NMt,!1,!1,!0,!1,!0,!1),Q1(e.n,RMt,"ElkShape",!0,!1,!0),ooe($H(Gte(Kq(e.n),0),34),e.wb.t,S6e,Gqe,1,1,RMt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.n),1),34),e.wb.t,C6e,Gqe,1,1,RMt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.n),2),34),e.wb.t,"x",Gqe,1,1,RMt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.n),3),34),e.wb.t,"y",Gqe,1,1,RMt,!1,!1,!0,!1,!0,!1),Mye(a=vce(e.n,null,"setDimensions"),e.wb.t,C6e),Mye(a,e.wb.t,S6e),Mye(a=vce(e.n,null,"setLocation"),e.wb.t,"x"),Mye(a,e.wb.t,"y"),Q1(e.g,UMt,X5e,!1,!1,!0),xye($H(Gte(Kq(e.g),0),18),e.f,$H(Gte(Kq(e.f),0),18),T6e,0,1,UMt,!1,!1,!0,!1,!1,!1,!1),ooe($H(Gte(Kq(e.g),1),34),e.wb._,k6e,"",0,1,UMt,!1,!1,!0,!1,!0,!1),Q1(e.c,LMt,G5e,!0,!1,!0),xye($H(Gte(Kq(e.c),0),18),e.d,$H(Gte(Kq(e.d),1),18),"outgoingEdges",0,-1,LMt,!1,!1,!0,!1,!0,!1,!1),xye($H(Gte(Kq(e.c),1),18),e.d,$H(Gte(Kq(e.d),2),18),"incomingEdges",0,-1,LMt,!1,!1,!0,!1,!0,!1,!1),Q1(e.i,QMt,J5e,!1,!1,!0),xye($H(Gte(Kq(e.i),0),18),e.j,$H(Gte(Kq(e.j),0),18),"ports",0,-1,QMt,!1,!1,!0,!0,!1,!1,!1),xye($H(Gte(Kq(e.i),1),18),e.i,$H(Gte(Kq(e.i),2),18),O6e,0,-1,QMt,!1,!1,!0,!0,!1,!1,!1),xye($H(Gte(Kq(e.i),2),18),e.i,$H(Gte(Kq(e.i),1),18),T6e,0,1,QMt,!1,!1,!0,!1,!1,!1,!1),xye($H(Gte(Kq(e.i),3),18),e.d,$H(Gte(Kq(e.d),0),18),"containedEdges",0,-1,QMt,!1,!1,!0,!0,!1,!1,!1),ooe($H(Gte(Kq(e.i),4),34),e.wb.e,M6e,null,0,1,QMt,!0,!0,!1,!1,!0,!0),Q1(e.j,zMt,Z5e,!1,!1,!0),xye($H(Gte(Kq(e.j),0),18),e.i,$H(Gte(Kq(e.i),0),18),T6e,0,1,zMt,!1,!1,!0,!1,!1,!1,!1),Q1(e.d,BMt,V5e,!1,!1,!0),xye($H(Gte(Kq(e.d),0),18),e.i,$H(Gte(Kq(e.i),3),18),"containingNode",0,1,BMt,!1,!1,!0,!1,!1,!1,!1),xye($H(Gte(Kq(e.d),1),18),e.c,$H(Gte(Kq(e.c),0),18),I6e,0,-1,BMt,!1,!1,!0,!1,!0,!1,!1),xye($H(Gte(Kq(e.d),2),18),e.c,$H(Gte(Kq(e.c),1),18),D6e,0,-1,BMt,!1,!1,!0,!1,!0,!1,!1),xye($H(Gte(Kq(e.d),3),18),e.e,$H(Gte(Kq(e.e),5),18),N6e,0,-1,BMt,!1,!1,!0,!0,!1,!1,!1),ooe($H(Gte(Kq(e.d),4),34),e.wb.e,"hyperedge",null,0,1,BMt,!0,!0,!1,!1,!0,!0),ooe($H(Gte(Kq(e.d),5),34),e.wb.e,M6e,null,0,1,BMt,!0,!0,!1,!1,!0,!0),ooe($H(Gte(Kq(e.d),6),34),e.wb.e,"selfloop",null,0,1,BMt,!0,!0,!1,!1,!0,!0),ooe($H(Gte(Kq(e.d),7),34),e.wb.e,"connected",null,0,1,BMt,!0,!0,!1,!1,!0,!0),Q1(e.b,DMt,z5e,!1,!1,!0),ooe($H(Gte(Kq(e.b),0),34),e.wb.t,"x",Gqe,1,1,DMt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.b),1),34),e.wb.t,"y",Gqe,1,1,DMt,!1,!1,!0,!1,!0,!1),Mye(a=vce(e.b,null,"set"),e.wb.t,"x"),Mye(a,e.wb.t,"y"),Q1(e.e,PMt,K5e,!1,!1,!0),ooe($H(Gte(Kq(e.e),0),34),e.wb.t,"startX",null,0,1,PMt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.e),1),34),e.wb.t,"startY",null,0,1,PMt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.e),2),34),e.wb.t,"endX",null,0,1,PMt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.e),3),34),e.wb.t,"endY",null,0,1,PMt,!1,!1,!0,!1,!0,!1),xye($H(Gte(Kq(e.e),4),18),e.b,null,R6e,0,-1,PMt,!1,!1,!0,!0,!1,!1,!1),xye($H(Gte(Kq(e.e),5),18),e.d,$H(Gte(Kq(e.d),3),18),T6e,0,1,PMt,!1,!1,!0,!1,!1,!1,!1),xye($H(Gte(Kq(e.e),6),18),e.c,null,L6e,0,1,PMt,!1,!1,!0,!1,!0,!1,!1),xye($H(Gte(Kq(e.e),7),18),e.c,null,B6e,0,1,PMt,!1,!1,!0,!1,!0,!1,!1),xye($H(Gte(Kq(e.e),8),18),e.e,$H(Gte(Kq(e.e),9),18),P6e,0,-1,PMt,!1,!1,!0,!1,!0,!1,!1),xye($H(Gte(Kq(e.e),9),18),e.e,$H(Gte(Kq(e.e),8),18),F6e,0,-1,PMt,!1,!1,!0,!1,!0,!1,!1),ooe($H(Gte(Kq(e.e),10),34),e.wb._,E6e,null,0,1,PMt,!1,!1,!0,!1,!0,!1),Mye(a=vce(e.e,null,"setStartLocation"),e.wb.t,"x"),Mye(a,e.wb.t,"y"),Mye(a=vce(e.e,null,"setEndLocation"),e.wb.t,"x"),Mye(a,e.wb.t,"y"),Q1(e.k,Het,"ElkPropertyToValueMapEntry",!1,!1,!1),t=XY(e.o),n=new Bv,c7((!t.d&&(t.d=new MN(GIt,t,1)),t.d),n),PMe($H(Gte(Kq(e.k),0),34),t,"key",Het,!1,!1,!0,!1),ooe($H(Gte(Kq(e.k),1),34),e.s,w6e,null,0,1,Het,!1,!1,!0,!1,!0,!1),fY(e.o,uSt,"IProperty",!0),fY(e.s,Met,"PropertyValue",!0),Iue(e,A6e))}function wKe(){wKe=M,(YNt=N8(IRt,m6e,25,$qe,15,1))[9]=35,YNt[10]=19,YNt[13]=19,YNt[32]=51,YNt[33]=49,YNt[34]=33,AG(YNt,35,38,49),YNt[38]=1,AG(YNt,39,45,49),AG(YNt,45,47,-71),YNt[47]=49,AG(YNt,48,58,-71),YNt[58]=61,YNt[59]=49,YNt[60]=1,YNt[61]=49,YNt[62]=33,AG(YNt,63,65,49),AG(YNt,65,91,-3),AG(YNt,91,93,33),YNt[93]=1,YNt[94]=33,YNt[95]=-3,YNt[96]=33,AG(YNt,97,123,-3),AG(YNt,123,183,33),YNt[183]=-87,AG(YNt,184,192,33),AG(YNt,192,215,-19),YNt[215]=33,AG(YNt,216,247,-19),YNt[247]=33,AG(YNt,248,306,-19),AG(YNt,306,308,33),AG(YNt,308,319,-19),AG(YNt,319,321,33),AG(YNt,321,329,-19),YNt[329]=33,AG(YNt,330,383,-19),YNt[383]=33,AG(YNt,384,452,-19),AG(YNt,452,461,33),AG(YNt,461,497,-19),AG(YNt,497,500,33),AG(YNt,500,502,-19),AG(YNt,502,506,33),AG(YNt,506,536,-19),AG(YNt,536,592,33),AG(YNt,592,681,-19),AG(YNt,681,699,33),AG(YNt,699,706,-19),AG(YNt,706,720,33),AG(YNt,720,722,-87),AG(YNt,722,768,33),AG(YNt,768,838,-87),AG(YNt,838,864,33),AG(YNt,864,866,-87),AG(YNt,866,902,33),YNt[902]=-19,YNt[903]=-87,AG(YNt,904,907,-19),YNt[907]=33,YNt[908]=-19,YNt[909]=33,AG(YNt,910,930,-19),YNt[930]=33,AG(YNt,931,975,-19),YNt[975]=33,AG(YNt,976,983,-19),AG(YNt,983,986,33),YNt[986]=-19,YNt[987]=33,YNt[988]=-19,YNt[989]=33,YNt[990]=-19,YNt[991]=33,YNt[992]=-19,YNt[993]=33,AG(YNt,994,1012,-19),AG(YNt,1012,1025,33),AG(YNt,1025,1037,-19),YNt[1037]=33,AG(YNt,1038,1104,-19),YNt[1104]=33,AG(YNt,1105,1117,-19),YNt[1117]=33,AG(YNt,1118,1154,-19),YNt[1154]=33,AG(YNt,1155,1159,-87),AG(YNt,1159,1168,33),AG(YNt,1168,1221,-19),AG(YNt,1221,1223,33),AG(YNt,1223,1225,-19),AG(YNt,1225,1227,33),AG(YNt,1227,1229,-19),AG(YNt,1229,1232,33),AG(YNt,1232,1260,-19),AG(YNt,1260,1262,33),AG(YNt,1262,1270,-19),AG(YNt,1270,1272,33),AG(YNt,1272,1274,-19),AG(YNt,1274,1329,33),AG(YNt,1329,1367,-19),AG(YNt,1367,1369,33),YNt[1369]=-19,AG(YNt,1370,1377,33),AG(YNt,1377,1415,-19),AG(YNt,1415,1425,33),AG(YNt,1425,1442,-87),YNt[1442]=33,AG(YNt,1443,1466,-87),YNt[1466]=33,AG(YNt,1467,1470,-87),YNt[1470]=33,YNt[1471]=-87,YNt[1472]=33,AG(YNt,1473,1475,-87),YNt[1475]=33,YNt[1476]=-87,AG(YNt,1477,1488,33),AG(YNt,1488,1515,-19),AG(YNt,1515,1520,33),AG(YNt,1520,1523,-19),AG(YNt,1523,1569,33),AG(YNt,1569,1595,-19),AG(YNt,1595,1600,33),YNt[1600]=-87,AG(YNt,1601,1611,-19),AG(YNt,1611,1619,-87),AG(YNt,1619,1632,33),AG(YNt,1632,1642,-87),AG(YNt,1642,1648,33),YNt[1648]=-87,AG(YNt,1649,1720,-19),AG(YNt,1720,1722,33),AG(YNt,1722,1727,-19),YNt[1727]=33,AG(YNt,1728,1743,-19),YNt[1743]=33,AG(YNt,1744,1748,-19),YNt[1748]=33,YNt[1749]=-19,AG(YNt,1750,1765,-87),AG(YNt,1765,1767,-19),AG(YNt,1767,1769,-87),YNt[1769]=33,AG(YNt,1770,1774,-87),AG(YNt,1774,1776,33),AG(YNt,1776,1786,-87),AG(YNt,1786,2305,33),AG(YNt,2305,2308,-87),YNt[2308]=33,AG(YNt,2309,2362,-19),AG(YNt,2362,2364,33),YNt[2364]=-87,YNt[2365]=-19,AG(YNt,2366,2382,-87),AG(YNt,2382,2385,33),AG(YNt,2385,2389,-87),AG(YNt,2389,2392,33),AG(YNt,2392,2402,-19),AG(YNt,2402,2404,-87),AG(YNt,2404,2406,33),AG(YNt,2406,2416,-87),AG(YNt,2416,2433,33),AG(YNt,2433,2436,-87),YNt[2436]=33,AG(YNt,2437,2445,-19),AG(YNt,2445,2447,33),AG(YNt,2447,2449,-19),AG(YNt,2449,2451,33),AG(YNt,2451,2473,-19),YNt[2473]=33,AG(YNt,2474,2481,-19),YNt[2481]=33,YNt[2482]=-19,AG(YNt,2483,2486,33),AG(YNt,2486,2490,-19),AG(YNt,2490,2492,33),YNt[2492]=-87,YNt[2493]=33,AG(YNt,2494,2501,-87),AG(YNt,2501,2503,33),AG(YNt,2503,2505,-87),AG(YNt,2505,2507,33),AG(YNt,2507,2510,-87),AG(YNt,2510,2519,33),YNt[2519]=-87,AG(YNt,2520,2524,33),AG(YNt,2524,2526,-19),YNt[2526]=33,AG(YNt,2527,2530,-19),AG(YNt,2530,2532,-87),AG(YNt,2532,2534,33),AG(YNt,2534,2544,-87),AG(YNt,2544,2546,-19),AG(YNt,2546,2562,33),YNt[2562]=-87,AG(YNt,2563,2565,33),AG(YNt,2565,2571,-19),AG(YNt,2571,2575,33),AG(YNt,2575,2577,-19),AG(YNt,2577,2579,33),AG(YNt,2579,2601,-19),YNt[2601]=33,AG(YNt,2602,2609,-19),YNt[2609]=33,AG(YNt,2610,2612,-19),YNt[2612]=33,AG(YNt,2613,2615,-19),YNt[2615]=33,AG(YNt,2616,2618,-19),AG(YNt,2618,2620,33),YNt[2620]=-87,YNt[2621]=33,AG(YNt,2622,2627,-87),AG(YNt,2627,2631,33),AG(YNt,2631,2633,-87),AG(YNt,2633,2635,33),AG(YNt,2635,2638,-87),AG(YNt,2638,2649,33),AG(YNt,2649,2653,-19),YNt[2653]=33,YNt[2654]=-19,AG(YNt,2655,2662,33),AG(YNt,2662,2674,-87),AG(YNt,2674,2677,-19),AG(YNt,2677,2689,33),AG(YNt,2689,2692,-87),YNt[2692]=33,AG(YNt,2693,2700,-19),YNt[2700]=33,YNt[2701]=-19,YNt[2702]=33,AG(YNt,2703,2706,-19),YNt[2706]=33,AG(YNt,2707,2729,-19),YNt[2729]=33,AG(YNt,2730,2737,-19),YNt[2737]=33,AG(YNt,2738,2740,-19),YNt[2740]=33,AG(YNt,2741,2746,-19),AG(YNt,2746,2748,33),YNt[2748]=-87,YNt[2749]=-19,AG(YNt,2750,2758,-87),YNt[2758]=33,AG(YNt,2759,2762,-87),YNt[2762]=33,AG(YNt,2763,2766,-87),AG(YNt,2766,2784,33),YNt[2784]=-19,AG(YNt,2785,2790,33),AG(YNt,2790,2800,-87),AG(YNt,2800,2817,33),AG(YNt,2817,2820,-87),YNt[2820]=33,AG(YNt,2821,2829,-19),AG(YNt,2829,2831,33),AG(YNt,2831,2833,-19),AG(YNt,2833,2835,33),AG(YNt,2835,2857,-19),YNt[2857]=33,AG(YNt,2858,2865,-19),YNt[2865]=33,AG(YNt,2866,2868,-19),AG(YNt,2868,2870,33),AG(YNt,2870,2874,-19),AG(YNt,2874,2876,33),YNt[2876]=-87,YNt[2877]=-19,AG(YNt,2878,2884,-87),AG(YNt,2884,2887,33),AG(YNt,2887,2889,-87),AG(YNt,2889,2891,33),AG(YNt,2891,2894,-87),AG(YNt,2894,2902,33),AG(YNt,2902,2904,-87),AG(YNt,2904,2908,33),AG(YNt,2908,2910,-19),YNt[2910]=33,AG(YNt,2911,2914,-19),AG(YNt,2914,2918,33),AG(YNt,2918,2928,-87),AG(YNt,2928,2946,33),AG(YNt,2946,2948,-87),YNt[2948]=33,AG(YNt,2949,2955,-19),AG(YNt,2955,2958,33),AG(YNt,2958,2961,-19),YNt[2961]=33,AG(YNt,2962,2966,-19),AG(YNt,2966,2969,33),AG(YNt,2969,2971,-19),YNt[2971]=33,YNt[2972]=-19,YNt[2973]=33,AG(YNt,2974,2976,-19),AG(YNt,2976,2979,33),AG(YNt,2979,2981,-19),AG(YNt,2981,2984,33),AG(YNt,2984,2987,-19),AG(YNt,2987,2990,33),AG(YNt,2990,2998,-19),YNt[2998]=33,AG(YNt,2999,3002,-19),AG(YNt,3002,3006,33),AG(YNt,3006,3011,-87),AG(YNt,3011,3014,33),AG(YNt,3014,3017,-87),YNt[3017]=33,AG(YNt,3018,3022,-87),AG(YNt,3022,3031,33),YNt[3031]=-87,AG(YNt,3032,3047,33),AG(YNt,3047,3056,-87),AG(YNt,3056,3073,33),AG(YNt,3073,3076,-87),YNt[3076]=33,AG(YNt,3077,3085,-19),YNt[3085]=33,AG(YNt,3086,3089,-19),YNt[3089]=33,AG(YNt,3090,3113,-19),YNt[3113]=33,AG(YNt,3114,3124,-19),YNt[3124]=33,AG(YNt,3125,3130,-19),AG(YNt,3130,3134,33),AG(YNt,3134,3141,-87),YNt[3141]=33,AG(YNt,3142,3145,-87),YNt[3145]=33,AG(YNt,3146,3150,-87),AG(YNt,3150,3157,33),AG(YNt,3157,3159,-87),AG(YNt,3159,3168,33),AG(YNt,3168,3170,-19),AG(YNt,3170,3174,33),AG(YNt,3174,3184,-87),AG(YNt,3184,3202,33),AG(YNt,3202,3204,-87),YNt[3204]=33,AG(YNt,3205,3213,-19),YNt[3213]=33,AG(YNt,3214,3217,-19),YNt[3217]=33,AG(YNt,3218,3241,-19),YNt[3241]=33,AG(YNt,3242,3252,-19),YNt[3252]=33,AG(YNt,3253,3258,-19),AG(YNt,3258,3262,33),AG(YNt,3262,3269,-87),YNt[3269]=33,AG(YNt,3270,3273,-87),YNt[3273]=33,AG(YNt,3274,3278,-87),AG(YNt,3278,3285,33),AG(YNt,3285,3287,-87),AG(YNt,3287,3294,33),YNt[3294]=-19,YNt[3295]=33,AG(YNt,3296,3298,-19),AG(YNt,3298,3302,33),AG(YNt,3302,3312,-87),AG(YNt,3312,3330,33),AG(YNt,3330,3332,-87),YNt[3332]=33,AG(YNt,3333,3341,-19),YNt[3341]=33,AG(YNt,3342,3345,-19),YNt[3345]=33,AG(YNt,3346,3369,-19),YNt[3369]=33,AG(YNt,3370,3386,-19),AG(YNt,3386,3390,33),AG(YNt,3390,3396,-87),AG(YNt,3396,3398,33),AG(YNt,3398,3401,-87),YNt[3401]=33,AG(YNt,3402,3406,-87),AG(YNt,3406,3415,33),YNt[3415]=-87,AG(YNt,3416,3424,33),AG(YNt,3424,3426,-19),AG(YNt,3426,3430,33),AG(YNt,3430,3440,-87),AG(YNt,3440,3585,33),AG(YNt,3585,3631,-19),YNt[3631]=33,YNt[3632]=-19,YNt[3633]=-87,AG(YNt,3634,3636,-19),AG(YNt,3636,3643,-87),AG(YNt,3643,3648,33),AG(YNt,3648,3654,-19),AG(YNt,3654,3663,-87),YNt[3663]=33,AG(YNt,3664,3674,-87),AG(YNt,3674,3713,33),AG(YNt,3713,3715,-19),YNt[3715]=33,YNt[3716]=-19,AG(YNt,3717,3719,33),AG(YNt,3719,3721,-19),YNt[3721]=33,YNt[3722]=-19,AG(YNt,3723,3725,33),YNt[3725]=-19,AG(YNt,3726,3732,33),AG(YNt,3732,3736,-19),YNt[3736]=33,AG(YNt,3737,3744,-19),YNt[3744]=33,AG(YNt,3745,3748,-19),YNt[3748]=33,YNt[3749]=-19,YNt[3750]=33,YNt[3751]=-19,AG(YNt,3752,3754,33),AG(YNt,3754,3756,-19),YNt[3756]=33,AG(YNt,3757,3759,-19),YNt[3759]=33,YNt[3760]=-19,YNt[3761]=-87,AG(YNt,3762,3764,-19),AG(YNt,3764,3770,-87),YNt[3770]=33,AG(YNt,3771,3773,-87),YNt[3773]=-19,AG(YNt,3774,3776,33),AG(YNt,3776,3781,-19),YNt[3781]=33,YNt[3782]=-87,YNt[3783]=33,AG(YNt,3784,3790,-87),AG(YNt,3790,3792,33),AG(YNt,3792,3802,-87),AG(YNt,3802,3864,33),AG(YNt,3864,3866,-87),AG(YNt,3866,3872,33),AG(YNt,3872,3882,-87),AG(YNt,3882,3893,33),YNt[3893]=-87,YNt[3894]=33,YNt[3895]=-87,YNt[3896]=33,YNt[3897]=-87,AG(YNt,3898,3902,33),AG(YNt,3902,3904,-87),AG(YNt,3904,3912,-19),YNt[3912]=33,AG(YNt,3913,3946,-19),AG(YNt,3946,3953,33),AG(YNt,3953,3973,-87),YNt[3973]=33,AG(YNt,3974,3980,-87),AG(YNt,3980,3984,33),AG(YNt,3984,3990,-87),YNt[3990]=33,YNt[3991]=-87,YNt[3992]=33,AG(YNt,3993,4014,-87),AG(YNt,4014,4017,33),AG(YNt,4017,4024,-87),YNt[4024]=33,YNt[4025]=-87,AG(YNt,4026,4256,33),AG(YNt,4256,4294,-19),AG(YNt,4294,4304,33),AG(YNt,4304,4343,-19),AG(YNt,4343,4352,33),YNt[4352]=-19,YNt[4353]=33,AG(YNt,4354,4356,-19),YNt[4356]=33,AG(YNt,4357,4360,-19),YNt[4360]=33,YNt[4361]=-19,YNt[4362]=33,AG(YNt,4363,4365,-19),YNt[4365]=33,AG(YNt,4366,4371,-19),AG(YNt,4371,4412,33),YNt[4412]=-19,YNt[4413]=33,YNt[4414]=-19,YNt[4415]=33,YNt[4416]=-19,AG(YNt,4417,4428,33),YNt[4428]=-19,YNt[4429]=33,YNt[4430]=-19,YNt[4431]=33,YNt[4432]=-19,AG(YNt,4433,4436,33),AG(YNt,4436,4438,-19),AG(YNt,4438,4441,33),YNt[4441]=-19,AG(YNt,4442,4447,33),AG(YNt,4447,4450,-19),YNt[4450]=33,YNt[4451]=-19,YNt[4452]=33,YNt[4453]=-19,YNt[4454]=33,YNt[4455]=-19,YNt[4456]=33,YNt[4457]=-19,AG(YNt,4458,4461,33),AG(YNt,4461,4463,-19),AG(YNt,4463,4466,33),AG(YNt,4466,4468,-19),YNt[4468]=33,YNt[4469]=-19,AG(YNt,4470,4510,33),YNt[4510]=-19,AG(YNt,4511,4520,33),YNt[4520]=-19,AG(YNt,4521,4523,33),YNt[4523]=-19,AG(YNt,4524,4526,33),AG(YNt,4526,4528,-19),AG(YNt,4528,4535,33),AG(YNt,4535,4537,-19),YNt[4537]=33,YNt[4538]=-19,YNt[4539]=33,AG(YNt,4540,4547,-19),AG(YNt,4547,4587,33),YNt[4587]=-19,AG(YNt,4588,4592,33),YNt[4592]=-19,AG(YNt,4593,4601,33),YNt[4601]=-19,AG(YNt,4602,7680,33),AG(YNt,7680,7836,-19),AG(YNt,7836,7840,33),AG(YNt,7840,7930,-19),AG(YNt,7930,7936,33),AG(YNt,7936,7958,-19),AG(YNt,7958,7960,33),AG(YNt,7960,7966,-19),AG(YNt,7966,7968,33),AG(YNt,7968,8006,-19),AG(YNt,8006,8008,33),AG(YNt,8008,8014,-19),AG(YNt,8014,8016,33),AG(YNt,8016,8024,-19),YNt[8024]=33,YNt[8025]=-19,YNt[8026]=33,YNt[8027]=-19,YNt[8028]=33,YNt[8029]=-19,YNt[8030]=33,AG(YNt,8031,8062,-19),AG(YNt,8062,8064,33),AG(YNt,8064,8117,-19),YNt[8117]=33,AG(YNt,8118,8125,-19),YNt[8125]=33,YNt[8126]=-19,AG(YNt,8127,8130,33),AG(YNt,8130,8133,-19),YNt[8133]=33,AG(YNt,8134,8141,-19),AG(YNt,8141,8144,33),AG(YNt,8144,8148,-19),AG(YNt,8148,8150,33),AG(YNt,8150,8156,-19),AG(YNt,8156,8160,33),AG(YNt,8160,8173,-19),AG(YNt,8173,8178,33),AG(YNt,8178,8181,-19),YNt[8181]=33,AG(YNt,8182,8189,-19),AG(YNt,8189,8400,33),AG(YNt,8400,8413,-87),AG(YNt,8413,8417,33),YNt[8417]=-87,AG(YNt,8418,8486,33),YNt[8486]=-19,AG(YNt,8487,8490,33),AG(YNt,8490,8492,-19),AG(YNt,8492,8494,33),YNt[8494]=-19,AG(YNt,8495,8576,33),AG(YNt,8576,8579,-19),AG(YNt,8579,12293,33),YNt[12293]=-87,YNt[12294]=33,YNt[12295]=-19,AG(YNt,12296,12321,33),AG(YNt,12321,12330,-19),AG(YNt,12330,12336,-87),YNt[12336]=33,AG(YNt,12337,12342,-87),AG(YNt,12342,12353,33),AG(YNt,12353,12437,-19),AG(YNt,12437,12441,33),AG(YNt,12441,12443,-87),AG(YNt,12443,12445,33),AG(YNt,12445,12447,-87),AG(YNt,12447,12449,33),AG(YNt,12449,12539,-19),YNt[12539]=33,AG(YNt,12540,12543,-87),AG(YNt,12543,12549,33),AG(YNt,12549,12589,-19),AG(YNt,12589,19968,33),AG(YNt,19968,40870,-19),AG(YNt,40870,44032,33),AG(YNt,44032,55204,-19),AG(YNt,55204,jqe,33),AG(YNt,57344,65534,33)}function _Ke(e){var t,n,r,i,o,a,s;e.hb||(e.hb=!0,Die(e,"ecore"),Nie(e,"ecore"),Rie(e,V7e),rse(e.fb,"E"),rse(e.L,"T"),rse(e.P,"K"),rse(e.P,"V"),rse(e.cb,"E"),c7(bX(e.b),e.bb),c7(bX(e.a),e.Q),c7(bX(e.o),e.p),c7(bX(e.p),e.R),c7(bX(e.q),e.p),c7(bX(e.v),e.q),c7(bX(e.w),e.R),c7(bX(e.B),e.Q),c7(bX(e.R),e.Q),c7(bX(e.T),e.eb),c7(bX(e.U),e.R),c7(bX(e.V),e.eb),c7(bX(e.W),e.bb),c7(bX(e.bb),e.eb),c7(bX(e.eb),e.R),c7(bX(e.db),e.R),Q1(e.b,FIt,u7e,!1,!1,!0),ooe($H(Gte(Kq(e.b),0),34),e.e,"iD",null,0,1,FIt,!1,!1,!0,!1,!0,!1),xye($H(Gte(Kq(e.b),1),18),e.q,null,"eAttributeType",1,1,FIt,!0,!0,!1,!1,!0,!1,!0),Q1(e.a,LIt,s7e,!1,!1,!0),ooe($H(Gte(Kq(e.a),0),34),e._,_6e,null,0,1,LIt,!1,!1,!0,!1,!0,!1),xye($H(Gte(Kq(e.a),1),18),e.ab,null,"details",0,-1,LIt,!1,!1,!0,!0,!1,!1,!1),xye($H(Gte(Kq(e.a),2),18),e.Q,$H(Gte(Kq(e.Q),0),18),"eModelElement",0,1,LIt,!0,!1,!0,!1,!1,!1,!1),xye($H(Gte(Kq(e.a),3),18),e.S,null,"contents",0,-1,LIt,!1,!1,!0,!0,!1,!1,!1),xye($H(Gte(Kq(e.a),4),18),e.S,null,"references",0,-1,LIt,!1,!1,!0,!1,!0,!1,!1),Q1(e.o,jIt,"EClass",!1,!1,!0),ooe($H(Gte(Kq(e.o),0),34),e.e,"abstract",null,0,1,jIt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.o),1),34),e.e,"interface",null,0,1,jIt,!1,!1,!0,!1,!0,!1),xye($H(Gte(Kq(e.o),2),18),e.o,null,"eSuperTypes",0,-1,jIt,!1,!1,!0,!1,!0,!0,!1),xye($H(Gte(Kq(e.o),3),18),e.T,$H(Gte(Kq(e.T),0),18),"eOperations",0,-1,jIt,!1,!1,!0,!0,!1,!1,!1),xye($H(Gte(Kq(e.o),4),18),e.b,null,"eAllAttributes",0,-1,jIt,!0,!0,!1,!1,!0,!1,!0),xye($H(Gte(Kq(e.o),5),18),e.W,null,"eAllReferences",0,-1,jIt,!0,!0,!1,!1,!0,!1,!0),xye($H(Gte(Kq(e.o),6),18),e.W,null,"eReferences",0,-1,jIt,!0,!0,!1,!1,!0,!1,!0),xye($H(Gte(Kq(e.o),7),18),e.b,null,"eAttributes",0,-1,jIt,!0,!0,!1,!1,!0,!1,!0),xye($H(Gte(Kq(e.o),8),18),e.W,null,"eAllContainments",0,-1,jIt,!0,!0,!1,!1,!0,!1,!0),xye($H(Gte(Kq(e.o),9),18),e.T,null,"eAllOperations",0,-1,jIt,!0,!0,!1,!1,!0,!1,!0),xye($H(Gte(Kq(e.o),10),18),e.bb,null,"eAllStructuralFeatures",0,-1,jIt,!0,!0,!1,!1,!0,!1,!0),xye($H(Gte(Kq(e.o),11),18),e.o,null,"eAllSuperTypes",0,-1,jIt,!0,!0,!1,!1,!0,!1,!0),xye($H(Gte(Kq(e.o),12),18),e.b,null,"eIDAttribute",0,1,jIt,!0,!0,!1,!1,!1,!1,!0),xye($H(Gte(Kq(e.o),13),18),e.bb,$H(Gte(Kq(e.bb),7),18),"eStructuralFeatures",0,-1,jIt,!1,!1,!0,!0,!1,!1,!1),xye($H(Gte(Kq(e.o),14),18),e.H,null,"eGenericSuperTypes",0,-1,jIt,!1,!1,!0,!0,!1,!0,!1),xye($H(Gte(Kq(e.o),15),18),e.H,null,"eAllGenericSuperTypes",0,-1,jIt,!0,!0,!1,!1,!0,!1,!0),Mye(s=cre($H(Gte(Vq(e.o),0),59),e.e,"isSuperTypeOf"),e.o,"someClass"),cre($H(Gte(Vq(e.o),1),59),e.I,"getFeatureCount"),Mye(s=cre($H(Gte(Vq(e.o),2),59),e.bb,X7e),e.I,"featureID"),Mye(s=cre($H(Gte(Vq(e.o),3),59),e.I,J7e),e.bb,Z7e),Mye(s=cre($H(Gte(Vq(e.o),4),59),e.bb,X7e),e._,"featureName"),cre($H(Gte(Vq(e.o),5),59),e.I,"getOperationCount"),Mye(s=cre($H(Gte(Vq(e.o),6),59),e.T,"getEOperation"),e.I,"operationID"),Mye(s=cre($H(Gte(Vq(e.o),7),59),e.I,e9e),e.T,t9e),Mye(s=cre($H(Gte(Vq(e.o),8),59),e.T,"getOverride"),e.T,t9e),Mye(s=cre($H(Gte(Vq(e.o),9),59),e.H,"getFeatureType"),e.bb,Z7e),Q1(e.p,$It,d7e,!0,!1,!0),ooe($H(Gte(Kq(e.p),0),34),e._,"instanceClassName",null,0,1,$It,!1,!0,!0,!0,!0,!1),t=XY(e.L),n=s2(),c7((!t.d&&(t.d=new MN(GIt,t,1)),t.d),n),PMe($H(Gte(Kq(e.p),1),34),t,"instanceClass",$It,!0,!0,!1,!0),ooe($H(Gte(Kq(e.p),2),34),e.M,n9e,null,0,1,$It,!0,!0,!1,!1,!0,!0),ooe($H(Gte(Kq(e.p),3),34),e._,"instanceTypeName",null,0,1,$It,!1,!0,!0,!0,!0,!1),xye($H(Gte(Kq(e.p),4),18),e.U,$H(Gte(Kq(e.U),3),18),"ePackage",0,1,$It,!0,!1,!1,!1,!0,!1,!1),xye($H(Gte(Kq(e.p),5),18),e.db,null,r9e,0,-1,$It,!1,!1,!0,!0,!0,!1,!1),Mye(s=cre($H(Gte(Vq(e.p),0),59),e.e,i9e),e.M,OKe),cre($H(Gte(Vq(e.p),1),59),e.I,"getClassifierID"),Q1(e.q,HIt,"EDataType",!1,!1,!0),ooe($H(Gte(Kq(e.q),0),34),e.e,"serializable",i5e,0,1,HIt,!1,!1,!0,!1,!0,!1),Q1(e.v,zIt,"EEnum",!1,!1,!0),xye($H(Gte(Kq(e.v),0),18),e.w,$H(Gte(Kq(e.w),3),18),"eLiterals",0,-1,zIt,!1,!1,!0,!0,!1,!1,!1),Mye(s=cre($H(Gte(Vq(e.v),0),59),e.w,o9e),e._,Z6e),Mye(s=cre($H(Gte(Vq(e.v),1),59),e.w,o9e),e.I,w6e),Mye(s=cre($H(Gte(Vq(e.v),2),59),e.w,"getEEnumLiteralByLiteral"),e._,"literal"),Q1(e.w,WIt,h7e,!1,!1,!0),ooe($H(Gte(Kq(e.w),0),34),e.I,w6e,null,0,1,WIt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.w),1),34),e.A,"instance",null,0,1,WIt,!0,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.w),2),34),e._,"literal",null,0,1,WIt,!1,!1,!0,!1,!0,!1),xye($H(Gte(Kq(e.w),3),18),e.v,$H(Gte(Kq(e.v),0),18),"eEnum",0,1,WIt,!0,!1,!1,!1,!1,!1,!1),Q1(e.B,$Mt,"EFactory",!1,!1,!0),xye($H(Gte(Kq(e.B),0),18),e.U,$H(Gte(Kq(e.U),2),18),"ePackage",1,1,$Mt,!0,!1,!0,!1,!1,!1,!1),Mye(s=cre($H(Gte(Vq(e.B),0),59),e.S,"create"),e.o,"eClass"),Mye(s=cre($H(Gte(Vq(e.B),1),59),e.M,"createFromString"),e.q,"eDataType"),Mye(s,e._,"literalValue"),Mye(s=cre($H(Gte(Vq(e.B),2),59),e._,"convertToString"),e.q,"eDataType"),Mye(s,e.M,"instanceValue"),Q1(e.Q,FMt,Y5e,!0,!1,!0),xye($H(Gte(Kq(e.Q),0),18),e.a,$H(Gte(Kq(e.a),2),18),"eAnnotations",0,-1,FMt,!1,!1,!0,!0,!1,!1,!1),Mye(s=cre($H(Gte(Vq(e.Q),0),59),e.a,"getEAnnotation"),e._,_6e),Q1(e.R,jMt,q5e,!0,!1,!0),ooe($H(Gte(Kq(e.R),0),34),e._,Z6e,null,0,1,jMt,!1,!1,!0,!1,!0,!1),Q1(e.S,MMt,"EObject",!1,!1,!0),cre($H(Gte(Vq(e.S),0),59),e.o,"eClass"),cre($H(Gte(Vq(e.S),1),59),e.e,"eIsProxy"),cre($H(Gte(Vq(e.S),2),59),e.X,"eResource"),cre($H(Gte(Vq(e.S),3),59),e.S,"eContainer"),cre($H(Gte(Vq(e.S),4),59),e.bb,"eContainingFeature"),cre($H(Gte(Vq(e.S),5),59),e.W,"eContainmentFeature"),s=cre($H(Gte(Vq(e.S),6),59),null,"eContents"),t=XY(e.fb),n=XY(e.S),c7((!t.d&&(t.d=new MN(GIt,t,1)),t.d),n),(i=jEe(s,t,null))&&i.Fi(),s=cre($H(Gte(Vq(e.S),7),59),null,"eAllContents"),t=XY(e.cb),n=XY(e.S),c7((!t.d&&(t.d=new MN(GIt,t,1)),t.d),n),(o=jEe(s,t,null))&&o.Fi(),s=cre($H(Gte(Vq(e.S),8),59),null,"eCrossReferences"),t=XY(e.fb),n=XY(e.S),c7((!t.d&&(t.d=new MN(GIt,t,1)),t.d),n),(a=jEe(s,t,null))&&a.Fi(),Mye(s=cre($H(Gte(Vq(e.S),9),59),e.M,"eGet"),e.bb,Z7e),Mye(s=cre($H(Gte(Vq(e.S),10),59),e.M,"eGet"),e.bb,Z7e),Mye(s,e.e,"resolve"),Mye(s=cre($H(Gte(Vq(e.S),11),59),null,"eSet"),e.bb,Z7e),Mye(s,e.M,"newValue"),Mye(s=cre($H(Gte(Vq(e.S),12),59),e.e,"eIsSet"),e.bb,Z7e),Mye(s=cre($H(Gte(Vq(e.S),13),59),null,"eUnset"),e.bb,Z7e),Mye(s=cre($H(Gte(Vq(e.S),14),59),e.M,"eInvoke"),e.T,t9e),t=XY(e.fb),n=s2(),c7((!t.d&&(t.d=new MN(GIt,t,1)),t.d),n),z_e(s,t,"arguments"),PK(s,e.K),Q1(e.T,VIt,p7e,!1,!1,!0),xye($H(Gte(Kq(e.T),0),18),e.o,$H(Gte(Kq(e.o),3),18),a9e,0,1,VIt,!0,!1,!1,!1,!1,!1,!1),xye($H(Gte(Kq(e.T),1),18),e.db,null,r9e,0,-1,VIt,!1,!1,!0,!0,!0,!1,!1),xye($H(Gte(Kq(e.T),2),18),e.V,$H(Gte(Kq(e.V),0),18),"eParameters",0,-1,VIt,!1,!1,!0,!0,!1,!1,!1),xye($H(Gte(Kq(e.T),3),18),e.p,null,"eExceptions",0,-1,VIt,!1,!1,!0,!1,!0,!0,!1),xye($H(Gte(Kq(e.T),4),18),e.H,null,"eGenericExceptions",0,-1,VIt,!1,!1,!0,!0,!1,!0,!1),cre($H(Gte(Vq(e.T),0),59),e.I,e9e),Mye(s=cre($H(Gte(Vq(e.T),1),59),e.e,"isOverrideOf"),e.T,"someOperation"),Q1(e.U,HMt,"EPackage",!1,!1,!0),ooe($H(Gte(Kq(e.U),0),34),e._,"nsURI",null,0,1,HMt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.U),1),34),e._,"nsPrefix",null,0,1,HMt,!1,!1,!0,!1,!0,!1),xye($H(Gte(Kq(e.U),2),18),e.B,$H(Gte(Kq(e.B),0),18),"eFactoryInstance",1,1,HMt,!0,!1,!0,!1,!1,!1,!1),xye($H(Gte(Kq(e.U),3),18),e.p,$H(Gte(Kq(e.p),4),18),"eClassifiers",0,-1,HMt,!1,!1,!0,!0,!0,!1,!1),xye($H(Gte(Kq(e.U),4),18),e.U,$H(Gte(Kq(e.U),5),18),"eSubpackages",0,-1,HMt,!1,!1,!0,!0,!0,!1,!1),xye($H(Gte(Kq(e.U),5),18),e.U,$H(Gte(Kq(e.U),4),18),"eSuperPackage",0,1,HMt,!0,!1,!1,!1,!0,!1,!1),Mye(s=cre($H(Gte(Vq(e.U),0),59),e.p,"getEClassifier"),e._,Z6e),Q1(e.V,KIt,g7e,!1,!1,!0),xye($H(Gte(Kq(e.V),0),18),e.T,$H(Gte(Kq(e.T),2),18),"eOperation",0,1,KIt,!0,!1,!1,!1,!1,!1,!1),Q1(e.W,YIt,m7e,!1,!1,!0),ooe($H(Gte(Kq(e.W),0),34),e.e,"containment",null,0,1,YIt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.W),1),34),e.e,"container",null,0,1,YIt,!0,!0,!1,!1,!0,!0),ooe($H(Gte(Kq(e.W),2),34),e.e,"resolveProxies",i5e,0,1,YIt,!1,!1,!0,!1,!0,!1),xye($H(Gte(Kq(e.W),3),18),e.W,null,"eOpposite",0,1,YIt,!1,!1,!0,!1,!0,!1,!1),xye($H(Gte(Kq(e.W),4),18),e.o,null,"eReferenceType",1,1,YIt,!0,!0,!1,!1,!0,!1,!0),xye($H(Gte(Kq(e.W),5),18),e.b,null,"eKeys",0,-1,YIt,!1,!1,!0,!1,!0,!1,!1),Q1(e.bb,PIt,c7e,!0,!1,!0),ooe($H(Gte(Kq(e.bb),0),34),e.e,"changeable",i5e,0,1,PIt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.bb),1),34),e.e,"volatile",null,0,1,PIt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.bb),2),34),e.e,"transient",null,0,1,PIt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.bb),3),34),e._,"defaultValueLiteral",null,0,1,PIt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.bb),4),34),e.M,n9e,null,0,1,PIt,!0,!0,!1,!1,!0,!0),ooe($H(Gte(Kq(e.bb),5),34),e.e,"unsettable",null,0,1,PIt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.bb),6),34),e.e,"derived",null,0,1,PIt,!1,!1,!0,!1,!0,!1),xye($H(Gte(Kq(e.bb),7),18),e.o,$H(Gte(Kq(e.o),13),18),a9e,0,1,PIt,!0,!1,!1,!1,!1,!1,!1),cre($H(Gte(Vq(e.bb),0),59),e.I,J7e),s=cre($H(Gte(Vq(e.bb),1),59),null,"getContainerClass"),t=XY(e.L),n=s2(),c7((!t.d&&(t.d=new MN(GIt,t,1)),t.d),n),(r=jEe(s,t,null))&&r.Fi(),Q1(e.eb,BIt,l7e,!0,!1,!0),ooe($H(Gte(Kq(e.eb),0),34),e.e,"ordered",i5e,0,1,BIt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.eb),1),34),e.e,"unique",i5e,0,1,BIt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.eb),2),34),e.I,"lowerBound",null,0,1,BIt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.eb),3),34),e.I,"upperBound","1",0,1,BIt,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.eb),4),34),e.e,"many",null,0,1,BIt,!0,!0,!1,!1,!0,!0),ooe($H(Gte(Kq(e.eb),5),34),e.e,"required",null,0,1,BIt,!0,!0,!1,!1,!0,!0),xye($H(Gte(Kq(e.eb),6),18),e.p,null,"eType",0,1,BIt,!1,!0,!0,!1,!0,!0,!1),xye($H(Gte(Kq(e.eb),7),18),e.H,null,"eGenericType",0,1,BIt,!1,!0,!0,!0,!1,!0,!1),Q1(e.ab,Het,"EStringToStringMapEntry",!1,!1,!1),ooe($H(Gte(Kq(e.ab),0),34),e._,"key",null,0,1,Het,!1,!1,!0,!1,!0,!1),ooe($H(Gte(Kq(e.ab),1),34),e._,w6e,null,0,1,Het,!1,!1,!0,!1,!0,!1),Q1(e.H,GIt,f7e,!1,!1,!0),xye($H(Gte(Kq(e.H),0),18),e.H,null,"eUpperBound",0,1,GIt,!1,!1,!0,!0,!1,!1,!1),xye($H(Gte(Kq(e.H),1),18),e.H,null,"eTypeArguments",0,-1,GIt,!1,!1,!0,!0,!1,!1,!1),xye($H(Gte(Kq(e.H),2),18),e.p,null,"eRawType",1,1,GIt,!0,!1,!1,!1,!0,!1,!0),xye($H(Gte(Kq(e.H),3),18),e.H,null,"eLowerBound",0,1,GIt,!1,!1,!0,!0,!1,!1,!1),xye($H(Gte(Kq(e.H),4),18),e.db,null,"eTypeParameter",0,1,GIt,!1,!1,!0,!1,!1,!1,!1),xye($H(Gte(Kq(e.H),5),18),e.p,null,"eClassifier",0,1,GIt,!1,!1,!0,!1,!0,!1,!1),Mye(s=cre($H(Gte(Vq(e.H),0),59),e.e,i9e),e.M,OKe),Q1(e.db,TDt,v7e,!1,!1,!0),xye($H(Gte(Kq(e.db),0),18),e.H,null,"eBounds",0,-1,TDt,!1,!1,!0,!0,!1,!1,!1),fY(e.c,nnt,"EBigDecimal",!0),fY(e.d,snt,"EBigInteger",!0),fY(e.e,ORt,"EBoolean",!0),fY(e.f,ytt,"EBooleanObject",!0),fY(e.i,IRt,"EByte",!0),fY(e.g,Uw(IRt,1),"EByteArray",!0),fY(e.j,xtt,"EByteObject",!0),fY(e.k,TRt,"EChar",!0),fY(e.n,Stt,"ECharacterObject",!0),fY(e.r,Att,"EDate",!0),fY(e.s,BRt,"EDiagnosticChain",!1),fY(e.t,DRt,"EDouble",!0),fY(e.u,Ctt,"EDoubleObject",!0),fY(e.fb,iIt,"EEList",!1),fY(e.A,vIt,"EEnumerator",!1),fY(e.C,uNt,"EFeatureMap",!1),fY(e.D,ODt,"EFeatureMapEntry",!1),fY(e.F,NRt,"EFloat",!0),fY(e.G,Ttt,"EFloatObject",!0),fY(e.I,kRt,"EInt",!0),fY(e.J,Mtt,"EIntegerObject",!0),fY(e.L,Iet,"EJavaClass",!0),fY(e.M,Met,"EJavaObject",!0),fY(e.N,MRt,"ELong",!0),fY(e.O,Btt,"ELongObject",!0),fY(e.P,Net,"EMap",!1),fY(e.X,eNt,"EResource",!1),fY(e.Y,PRt,"EResourceSet",!1),fY(e.Z,RRt,"EShort",!0),fY(e.$,Ftt,"EShortObject",!0),fY(e._,Ytt,"EString",!0),fY(e.cb,lIt,"ETreeIterator",!1),fY(e.K,FRt,"EInvocationTargetException",!1),Iue(e,V7e))}"undefined"!=typeof window?r=window:void 0!==e?r=e:"undefined"!=typeof self&&(r=self);var xKe,EKe,SKe,CKe,TKe,kKe,OKe="object",MKe="boolean",IKe="number",DKe="string",NKe="function",RKe=2147483647,LKe="java.lang",BKe={3:1},PKe="com.google.common.base",FKe=", ",$Ke="%s (%s) must not be negative",jKe={3:1,4:1,5:1},HKe="negative size: ",UKe="Optional.of(",QKe="null",zKe={198:1,47:1},WKe="com.google.common.collect",GKe={198:1,47:1,125:1},VKe={224:1,3:1},KKe={47:1},YKe="java.util",qKe={83:1},XKe={20:1,28:1,14:1},JKe=1965,ZKe={20:1,28:1,14:1,21:1},eYe={83:1,171:1,161:1},tYe={20:1,28:1,14:1,21:1,84:1},nYe={20:1,28:1,14:1,271:1,21:1,84:1},rYe={47:1,125:1},iYe={345:1,42:1},oYe="AbstractMapEntry",aYe="expectedValuesPerKey",sYe={3:1,6:1,4:1,5:1},lYe=16384,cYe={164:1},uYe={38:1},dYe={l:4194303,m:4194303,h:524287},hYe={196:1},fYe={245:1,3:1,35:1},pYe="range unbounded on this side",gYe={20:1},mYe={20:1,14:1},vYe={3:1,20:1,28:1,14:1},AYe={152:1,3:1,20:1,28:1,14:1,15:1,54:1},bYe={3:1,4:1,5:1,165:1},yYe={3:1,83:1},wYe={20:1,14:1,21:1},_Ye={3:1,20:1,28:1,14:1,21:1},xYe={20:1,14:1,21:1,84:1},EYe=461845907,SYe=-862048943,CYe={3:1,6:1,4:1,5:1,165:1},TYe="expectedSize",kYe=1073741824,OYe="initialArraySize",MYe={3:1,6:1,4:1,9:1,5:1},IYe={20:1,28:1,52:1,14:1,15:1},DYe="arraySize",NYe={20:1,28:1,52:1,14:1,15:1,54:1},RYe={45:1},LYe={365:1},BYe=1e-4,PYe=-2147483648,FYe="__noinit__",$Ye={3:1,102:1,60:1,78:1},jYe="com.google.gwt.core.client.impl",HYe="String",UYe="com.google.gwt.core.client",QYe="anonymous",zYe="fnStack",WYe="Unknown",GYe={195:1,3:1,4:1},VYe=1e3,KYe=65535,YYe="January",qYe="February",XYe="March",JYe="April",ZYe="May",eqe="June",tqe="July",nqe="August",rqe="September",iqe="October",oqe="November",aqe="December",sqe=1900,lqe={48:1,3:1,4:1},cqe="Before Christ",uqe="Anno Domini",dqe="Sunday",hqe="Monday",fqe="Tuesday",pqe="Wednesday",gqe="Thursday",mqe="Friday",vqe="Saturday",Aqe="com.google.gwt.i18n.shared",bqe="DateTimeFormat",yqe="com.google.gwt.i18n.client",wqe="DefaultDateTimeFormatInfo",_qe={3:1,4:1,35:1,199:1},xqe="com.google.gwt.json.client",Eqe=4194303,Sqe=1048575,Cqe=524288,Tqe=4194304,kqe=17592186044416,Oqe=1e9,Mqe=-17592186044416,Iqe="java.io",Dqe={3:1,102:1,73:1,60:1,78:1},Nqe={3:1,289:1,78:1},Rqe='For input string: "',Lqe=1/0,Bqe=-1/0,Pqe=4096,Fqe={3:1,4:1,364:1},$qe=65536,jqe=55296,Hqe={104:1,3:1,4:1},Uqe=1e5,Qqe=.3010299956639812,zqe=4294967295,Wqe=4294967296,Gqe="0.0",Vqe={42:1},Kqe={3:1,4:1,20:1,28:1,52:1,12:1,14:1,15:1,54:1},Yqe={3:1,20:1,28:1,52:1,14:1,15:1,54:1},qqe={20:1,14:1,15:1},Xqe={3:1,62:1},Jqe={182:1},Zqe={3:1,4:1,83:1},eXe={3:1,4:1,20:1,28:1,14:1,53:1,21:1},tXe="delete",nXe=1.4901161193847656e-8,rXe=11102230246251565e-32,iXe=15525485,oXe=5.960464477539063e-8,aXe=16777216,sXe=16777215,lXe=", length: ",cXe={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1},uXe={3:1,35:1,22:1,297:1},dXe="java.util.function",hXe="java.util.logging",fXe={3:1,4:1,5:1,842:1},pXe="undefined",gXe="java.util.stream",mXe={525:1,670:1},vXe="fromIndex: ",AXe=" > toIndex: ",bXe=", toIndex: ",yXe="Index: ",wXe=", Size: ",_Xe="org.eclipse.elk.alg.common",xXe={62:1},EXe="org.eclipse.elk.alg.common.compaction",SXe="Scanline/EventHandler",CXe="org.eclipse.elk.alg.common.compaction.oned",TXe="CNode belongs to another CGroup.",kXe="ISpacingsHandler/1",OXe="The ",MXe=" instance has been finished already.",IXe="The direction ",DXe=" is not supported by the CGraph instance.",NXe="OneDimensionalCompactor",RXe="OneDimensionalCompactor/lambda$0$Type",LXe="Quadruplet",BXe="ScanlineConstraintCalculator",PXe="ScanlineConstraintCalculator/ConstraintsScanlineHandler",FXe="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",$Xe="ScanlineConstraintCalculator/Timestamp",jXe="ScanlineConstraintCalculator/lambda$0$Type",HXe={169:1,45:1},UXe="org.eclipse.elk.alg.common.compaction.options",QXe="org.eclipse.elk.core.data",zXe="org.eclipse.elk.polyomino.traversalStrategy",WXe="org.eclipse.elk.polyomino.lowLevelSort",GXe="org.eclipse.elk.polyomino.highLevelSort",VXe="org.eclipse.elk.polyomino.fill",KXe={130:1},YXe="polyomino",qXe="org.eclipse.elk.alg.common.networksimplex",XXe={177:1,3:1,4:1},JXe="org.eclipse.elk.alg.common.nodespacing",ZXe="org.eclipse.elk.alg.common.nodespacing.cellsystem",eJe="CENTER",tJe={212:1,326:1},nJe={3:1,4:1,5:1,595:1},rJe="LEFT",iJe="RIGHT",oJe="Vertical alignment cannot be null",aJe="BOTTOM",sJe="org.eclipse.elk.alg.common.nodespacing.internal",lJe="UNDEFINED",cJe=.01,uJe="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",dJe="LabelPlacer/lambda$0$Type",hJe="LabelPlacer/lambda$1$Type",fJe="portRatioOrPosition",pJe="org.eclipse.elk.alg.common.overlaps",gJe="DOWN",mJe="org.eclipse.elk.alg.common.polyomino",vJe="NORTH",AJe="EAST",bJe="SOUTH",yJe="WEST",wJe="org.eclipse.elk.alg.common.polyomino.structures",_Je="Direction",xJe="Grid is only of size ",EJe=". Requested point (",SJe=") is out of bounds.",CJe=" Given center based coordinates were (",TJe="org.eclipse.elk.graph.properties",kJe="IPropertyHolder",OJe={3:1,94:1,134:1},MJe="org.eclipse.elk.alg.common.spore",IJe="org.eclipse.elk.alg.common.utils",DJe={209:1},NJe="org.eclipse.elk.core",RJe="Connected Components Compaction",LJe="org.eclipse.elk.alg.disco",BJe="org.eclipse.elk.alg.disco.graph",PJe="org.eclipse.elk.alg.disco.options",FJe="CompactionStrategy",$Je="org.eclipse.elk.disco.componentCompaction.strategy",jJe="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",HJe="org.eclipse.elk.disco.debug.discoGraph",UJe="org.eclipse.elk.disco.debug.discoPolys",QJe="componentCompaction",zJe="org.eclipse.elk.disco",WJe="org.eclipse.elk.spacing.componentComponent",GJe="org.eclipse.elk.edge.thickness",VJe="org.eclipse.elk.aspectRatio",KJe="org.eclipse.elk.padding",YJe="org.eclipse.elk.alg.disco.transform",qJe=1.5707963267948966,XJe=17976931348623157e292,JJe={3:1,4:1,5:1,192:1},ZJe={3:1,6:1,4:1,5:1,106:1,120:1},eZe="org.eclipse.elk.alg.force",tZe="ComponentsProcessor",nZe="ComponentsProcessor/1",rZe="org.eclipse.elk.alg.force.graph",iZe="Component Layout",oZe="org.eclipse.elk.alg.force.model",aZe="org.eclipse.elk.force.model",sZe="org.eclipse.elk.force.iterations",lZe="org.eclipse.elk.force.repulsivePower",cZe="org.eclipse.elk.force.temperature",uZe=.001,dZe="org.eclipse.elk.force.repulsion",hZe="org.eclipse.elk.alg.force.options",fZe=1.600000023841858,pZe="org.eclipse.elk.force",gZe="org.eclipse.elk.priority",mZe="org.eclipse.elk.spacing.nodeNode",vZe="org.eclipse.elk.spacing.edgeLabel",AZe="org.eclipse.elk.randomSeed",bZe="org.eclipse.elk.separateConnectedComponents",yZe="org.eclipse.elk.interactive",wZe="org.eclipse.elk.portConstraints",_Ze="org.eclipse.elk.edgeLabels.inline",xZe="org.eclipse.elk.omitNodeMicroLayout",EZe="org.eclipse.elk.nodeSize.options",SZe="org.eclipse.elk.nodeSize.constraints",CZe="org.eclipse.elk.nodeLabels.placement",TZe="org.eclipse.elk.portLabels.placement",kZe="origin",OZe="random",MZe="boundingBox.upLeft",IZe="boundingBox.lowRight",DZe="org.eclipse.elk.stress.fixed",NZe="org.eclipse.elk.stress.desiredEdgeLength",RZe="org.eclipse.elk.stress.dimension",LZe="org.eclipse.elk.stress.epsilon",BZe="org.eclipse.elk.stress.iterationLimit",PZe="org.eclipse.elk.stress",FZe="ELK Stress",$Ze="org.eclipse.elk.nodeSize.minimum",jZe="org.eclipse.elk.alg.force.stress",HZe="Layered layout",UZe="org.eclipse.elk.alg.layered",QZe="org.eclipse.elk.alg.layered.compaction.components",zZe="org.eclipse.elk.alg.layered.compaction.oned",WZe="org.eclipse.elk.alg.layered.compaction.oned.algs",GZe="org.eclipse.elk.alg.layered.compaction.recthull",VZe="org.eclipse.elk.alg.layered.components",KZe="NONE",YZe={3:1,6:1,4:1,9:1,5:1,122:1},qZe={3:1,6:1,4:1,5:1,141:1,106:1,120:1},XZe="org.eclipse.elk.alg.layered.compound",JZe={51:1},ZZe="org.eclipse.elk.alg.layered.graph",e0e=" -> ",t0e="Not supported by LGraph",n0e="Port side is undefined",r0e={3:1,6:1,4:1,5:1,474:1,141:1,106:1,120:1},i0e={3:1,6:1,4:1,5:1,141:1,193:1,203:1,106:1,120:1},o0e={3:1,6:1,4:1,5:1,141:1,1943:1,203:1,106:1,120:1},a0e="([{\"' \t\r\n",s0e=")]}\"' \t\r\n",l0e="The given string contains parts that cannot be parsed as numbers.",c0e="org.eclipse.elk.core.math",u0e={3:1,4:1,142:1,207:1,414:1},d0e={3:1,4:1,116:1,207:1,414:1},h0e="org.eclipse.elk.layered",f0e="org.eclipse.elk.alg.layered.graph.transform",p0e="ElkGraphImporter",g0e="ElkGraphImporter/lambda$0$Type",m0e="ElkGraphImporter/lambda$1$Type",v0e="ElkGraphImporter/lambda$2$Type",A0e="ElkGraphImporter/lambda$4$Type",b0e="Node margin calculation",y0e="org.eclipse.elk.alg.layered.intermediate",w0e="ONE_SIDED_GREEDY_SWITCH",_0e="TWO_SIDED_GREEDY_SWITCH",x0e="No implementation is available for the layout processor ",E0e="IntermediateProcessorStrategy",S0e="Node '",C0e="FIRST_SEPARATE",T0e="LAST_SEPARATE",k0e="Odd port side processing",O0e="org.eclipse.elk.alg.layered.intermediate.compaction",M0e="org.eclipse.elk.alg.layered.intermediate.greedyswitch",I0e="org.eclipse.elk.alg.layered.p3order.counting",D0e={225:1},N0e="org.eclipse.elk.alg.layered.intermediate.loops",R0e="org.eclipse.elk.alg.layered.intermediate.loops.ordering",L0e="org.eclipse.elk.alg.layered.intermediate.loops.routing",B0e="org.eclipse.elk.alg.layered.intermediate.preserveorder",P0e="org.eclipse.elk.alg.layered.intermediate.wrapping",F0e="org.eclipse.elk.alg.layered.options",$0e="INTERACTIVE",j0e="DEPTH_FIRST",H0e="EDGE_LENGTH",U0e="SELF_LOOPS",Q0e="firstTryWithInitialOrder",z0e="org.eclipse.elk.layered.directionCongruency",W0e="org.eclipse.elk.layered.feedbackEdges",G0e="org.eclipse.elk.layered.interactiveReferencePoint",V0e="org.eclipse.elk.layered.mergeEdges",K0e="org.eclipse.elk.layered.mergeHierarchyEdges",Y0e="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",q0e="org.eclipse.elk.layered.portSortingStrategy",X0e="org.eclipse.elk.layered.thoroughness",J0e="org.eclipse.elk.layered.unnecessaryBendpoints",Z0e="org.eclipse.elk.layered.generatePositionAndLayerIds",e1e="org.eclipse.elk.layered.cycleBreaking.strategy",t1e="org.eclipse.elk.layered.layering.strategy",n1e="org.eclipse.elk.layered.layering.layerConstraint",r1e="org.eclipse.elk.layered.layering.layerChoiceConstraint",i1e="org.eclipse.elk.layered.layering.layerId",o1e="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",a1e="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",s1e="org.eclipse.elk.layered.layering.nodePromotion.strategy",l1e="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",c1e="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",u1e="org.eclipse.elk.layered.crossingMinimization.strategy",d1e="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",h1e="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",f1e="org.eclipse.elk.layered.crossingMinimization.semiInteractive",p1e="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",g1e="org.eclipse.elk.layered.crossingMinimization.positionId",m1e="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",v1e="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",A1e="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",b1e="org.eclipse.elk.layered.nodePlacement.strategy",y1e="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",w1e="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",_1e="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",x1e="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",E1e="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",S1e="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",C1e="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",T1e="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",k1e="org.eclipse.elk.layered.edgeRouting.splines.mode",O1e="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",M1e="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",I1e="org.eclipse.elk.layered.spacing.baseValue",D1e="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",N1e="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",R1e="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",L1e="org.eclipse.elk.layered.priority.direction",B1e="org.eclipse.elk.layered.priority.shortness",P1e="org.eclipse.elk.layered.priority.straightness",F1e="org.eclipse.elk.layered.compaction.connectedComponents",$1e="org.eclipse.elk.layered.compaction.postCompaction.strategy",j1e="org.eclipse.elk.layered.compaction.postCompaction.constraints",H1e="org.eclipse.elk.layered.highDegreeNodes.treatment",U1e="org.eclipse.elk.layered.highDegreeNodes.threshold",Q1e="org.eclipse.elk.layered.highDegreeNodes.treeHeight",z1e="org.eclipse.elk.layered.wrapping.strategy",W1e="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",G1e="org.eclipse.elk.layered.wrapping.correctionFactor",V1e="org.eclipse.elk.layered.wrapping.cutting.strategy",K1e="org.eclipse.elk.layered.wrapping.cutting.cuts",Y1e="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",q1e="org.eclipse.elk.layered.wrapping.validify.strategy",X1e="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",J1e="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",Z1e="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",e2e="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",t2e="org.eclipse.elk.layered.edgeLabels.sideSelection",n2e="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",r2e="org.eclipse.elk.layered.considerModelOrder.strategy",i2e="org.eclipse.elk.layered.considerModelOrder.noModelOrder",o2e="org.eclipse.elk.layered.considerModelOrder.components",a2e="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",s2e="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",l2e="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",c2e="layering",u2e="layering.minWidth",d2e="layering.nodePromotion",h2e="crossingMinimization",f2e="org.eclipse.elk.hierarchyHandling",p2e="crossingMinimization.greedySwitch",g2e="nodePlacement",m2e="nodePlacement.bk",v2e="edgeRouting",A2e="org.eclipse.elk.edgeRouting",b2e="spacing",y2e="priority",w2e="compaction",_2e="compaction.postCompaction",x2e="Specifies whether and how post-process compaction is applied.",E2e="highDegreeNodes",S2e="wrapping",C2e="wrapping.cutting",T2e="wrapping.validify",k2e="wrapping.multiEdge",O2e="edgeLabels",M2e="considerModelOrder",I2e="org.eclipse.elk.spacing.commentComment",D2e="org.eclipse.elk.spacing.commentNode",N2e="org.eclipse.elk.spacing.edgeEdge",R2e="org.eclipse.elk.spacing.edgeNode",L2e="org.eclipse.elk.spacing.labelLabel",B2e="org.eclipse.elk.spacing.labelPortHorizontal",P2e="org.eclipse.elk.spacing.labelPortVertical",F2e="org.eclipse.elk.spacing.labelNode",$2e="org.eclipse.elk.spacing.nodeSelfLoop",j2e="org.eclipse.elk.spacing.portPort",H2e="org.eclipse.elk.spacing.individual",U2e="org.eclipse.elk.port.borderOffset",Q2e="org.eclipse.elk.noLayout",z2e="org.eclipse.elk.port.side",W2e="org.eclipse.elk.debugMode",G2e="org.eclipse.elk.alignment",V2e="org.eclipse.elk.insideSelfLoops.activate",K2e="org.eclipse.elk.insideSelfLoops.yo",Y2e="org.eclipse.elk.nodeSize.fixedGraphSize",q2e="org.eclipse.elk.direction",X2e="org.eclipse.elk.nodeLabels.padding",J2e="org.eclipse.elk.portLabels.nextToPortIfPossible",Z2e="org.eclipse.elk.portLabels.treatAsGroup",e3e="org.eclipse.elk.portAlignment.default",t3e="org.eclipse.elk.portAlignment.north",n3e="org.eclipse.elk.portAlignment.south",r3e="org.eclipse.elk.portAlignment.west",i3e="org.eclipse.elk.portAlignment.east",o3e="org.eclipse.elk.contentAlignment",a3e="org.eclipse.elk.junctionPoints",s3e="org.eclipse.elk.edgeLabels.placement",l3e="org.eclipse.elk.port.index",c3e="org.eclipse.elk.commentBox",u3e="org.eclipse.elk.hypernode",d3e="org.eclipse.elk.port.anchor",h3e="org.eclipse.elk.partitioning.activate",f3e="org.eclipse.elk.partitioning.partition",p3e="org.eclipse.elk.position",g3e="org.eclipse.elk.margins",m3e="org.eclipse.elk.spacing.portsSurrounding",v3e="org.eclipse.elk.interactiveLayout",A3e="org.eclipse.elk.core.util",b3e={3:1,4:1,5:1,593:1},y3e="NETWORK_SIMPLEX",w3e={123:1,51:1},_3e="org.eclipse.elk.alg.layered.p1cycles",x3e="org.eclipse.elk.alg.layered.p2layers",E3e={402:1,225:1},S3e={832:1,3:1,4:1},C3e="org.eclipse.elk.alg.layered.p3order",T3e="org.eclipse.elk.alg.layered.p4nodes",k3e={3:1,4:1,5:1,840:1},O3e=1e-5,M3e="org.eclipse.elk.alg.layered.p4nodes.bk",I3e="org.eclipse.elk.alg.layered.p5edges",D3e="org.eclipse.elk.alg.layered.p5edges.orthogonal",N3e="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",R3e=1e-6,L3e="org.eclipse.elk.alg.layered.p5edges.splines",B3e=.09999999999999998,P3e=1e-8,F3e=4.71238898038469,$3e=3.141592653589793,j3e="org.eclipse.elk.alg.mrtree",H3e="org.eclipse.elk.alg.mrtree.graph",U3e="org.eclipse.elk.alg.mrtree.intermediate",Q3e="Set neighbors in level",z3e="DESCENDANTS",W3e="org.eclipse.elk.mrtree.weighting",G3e="org.eclipse.elk.mrtree.searchOrder",V3e="org.eclipse.elk.alg.mrtree.options",K3e="org.eclipse.elk.mrtree",Y3e="org.eclipse.elk.tree",q3e="org.eclipse.elk.alg.radial",X3e=6.283185307179586,J3e=5e-324,Z3e="org.eclipse.elk.alg.radial.intermediate",e4e="org.eclipse.elk.alg.radial.intermediate.compaction",t4e={3:1,4:1,5:1,106:1},n4e="org.eclipse.elk.alg.radial.intermediate.optimization",r4e="No implementation is available for the layout option ",i4e="org.eclipse.elk.alg.radial.options",o4e="org.eclipse.elk.radial.orderId",a4e="org.eclipse.elk.radial.radius",s4e="org.eclipse.elk.radial.compactor",l4e="org.eclipse.elk.radial.compactionStepSize",c4e="org.eclipse.elk.radial.sorter",u4e="org.eclipse.elk.radial.wedgeCriteria",d4e="org.eclipse.elk.radial.optimizationCriteria",h4e="org.eclipse.elk.radial",f4e="org.eclipse.elk.alg.radial.p1position.wedge",p4e="org.eclipse.elk.alg.radial.sorting",g4e=5.497787143782138,m4e=3.9269908169872414,v4e=2.356194490192345,A4e="org.eclipse.elk.alg.rectpacking",b4e="org.eclipse.elk.alg.rectpacking.firstiteration",y4e="org.eclipse.elk.alg.rectpacking.options",w4e="org.eclipse.elk.rectpacking.optimizationGoal",_4e="org.eclipse.elk.rectpacking.lastPlaceShift",x4e="org.eclipse.elk.rectpacking.currentPosition",E4e="org.eclipse.elk.rectpacking.desiredPosition",S4e="org.eclipse.elk.rectpacking.onlyFirstIteration",C4e="org.eclipse.elk.rectpacking.rowCompaction",T4e="org.eclipse.elk.rectpacking.expandToAspectRatio",k4e="org.eclipse.elk.rectpacking.targetWidth",O4e="org.eclipse.elk.expandNodes",M4e="org.eclipse.elk.rectpacking",I4e="org.eclipse.elk.alg.rectpacking.util",D4e="No implementation available for ",N4e="org.eclipse.elk.alg.spore",R4e="org.eclipse.elk.alg.spore.options",L4e="org.eclipse.elk.sporeCompaction",B4e="org.eclipse.elk.underlyingLayoutAlgorithm",P4e="org.eclipse.elk.processingOrder.treeConstruction",F4e="org.eclipse.elk.processingOrder.spanningTreeCostFunction",$4e="org.eclipse.elk.processingOrder.preferredRoot",j4e="org.eclipse.elk.processingOrder.rootSelection",H4e="org.eclipse.elk.structure.structureExtractionStrategy",U4e="org.eclipse.elk.compaction.compactionStrategy",Q4e="org.eclipse.elk.compaction.orthogonal",z4e="org.eclipse.elk.overlapRemoval.maxIterations",W4e="org.eclipse.elk.overlapRemoval.runScanline",G4e="processingOrder",V4e="overlapRemoval",K4e="org.eclipse.elk.sporeOverlap",Y4e="org.eclipse.elk.alg.spore.p1structure",q4e="org.eclipse.elk.alg.spore.p2processingorder",X4e="org.eclipse.elk.alg.spore.p3execution",J4e="Invalid index: ",Z4e="org.eclipse.elk.core.alg",e5e={331:1},t5e={288:1},n5e="Make sure its type is registered with the ",r5e=" utility class.",i5e="true",o5e="false",a5e="Couldn't clone property '",s5e=.05,l5e="org.eclipse.elk.core.options",c5e=1.2999999523162842,u5e="org.eclipse.elk.box",d5e="org.eclipse.elk.box.packingMode",h5e="org.eclipse.elk.algorithm",f5e="org.eclipse.elk.resolvedAlgorithm",p5e="org.eclipse.elk.bendPoints",g5e="org.eclipse.elk.labelManager",m5e="org.eclipse.elk.scaleFactor",v5e="org.eclipse.elk.animate",A5e="org.eclipse.elk.animTimeFactor",b5e="org.eclipse.elk.layoutAncestors",y5e="org.eclipse.elk.maxAnimTime",w5e="org.eclipse.elk.minAnimTime",_5e="org.eclipse.elk.progressBar",x5e="org.eclipse.elk.validateGraph",E5e="org.eclipse.elk.validateOptions",S5e="org.eclipse.elk.zoomToFit",C5e="org.eclipse.elk.font.name",T5e="org.eclipse.elk.font.size",k5e="org.eclipse.elk.edge.type",O5e="partitioning",M5e="nodeLabels",I5e="portAlignment",D5e="nodeSize",N5e="port",R5e="portLabels",L5e="insideSelfLoops",B5e="org.eclipse.elk.fixed",P5e="org.eclipse.elk.random",F5e="port must have a parent node to calculate the port side",$5e="The edge needs to have exactly one edge section. Found: ",j5e="org.eclipse.elk.core.util.adapters",H5e="org.eclipse.emf.ecore",U5e="org.eclipse.elk.graph",Q5e="EMapPropertyHolder",z5e="ElkBendPoint",W5e="ElkGraphElement",G5e="ElkConnectableShape",V5e="ElkEdge",K5e="ElkEdgeSection",Y5e="EModelElement",q5e="ENamedElement",X5e="ElkLabel",J5e="ElkNode",Z5e="ElkPort",e6e={92:1,90:1},t6e="org.eclipse.emf.common.notify.impl",n6e="The feature '",r6e="' is not a valid changeable feature",i6e="Expecting null",o6e="' is not a valid feature",a6e="The feature ID",s6e=" is not a valid feature ID",l6e=32768,c6e={105:1,92:1,90:1,56:1,49:1,97:1},u6e="org.eclipse.emf.ecore.impl",d6e="org.eclipse.elk.graph.impl",h6e="Recursive containment not allowed for ",f6e="The datatype '",p6e="' is not a valid classifier",g6e="The value '",m6e={190:1,3:1,4:1},v6e="The class '",A6e="http://www.eclipse.org/elk/ElkGraph",b6e=1024,y6e="property",w6e="value",_6e="source",x6e="properties",E6e="identifier",S6e="height",C6e="width",T6e="parent",k6e="text",O6e="children",M6e="hierarchical",I6e="sources",D6e="targets",N6e="sections",R6e="bendPoints",L6e="outgoingShape",B6e="incomingShape",P6e="outgoingSections",F6e="incomingSections",$6e="org.eclipse.emf.common.util",j6e="Severe implementation error in the Json to ElkGraph importer.",H6e="id",U6e="org.eclipse.elk.graph.json",Q6e="Unhandled parameter types: ",z6e="startPoint",W6e="An edge must have at least one source and one target (edge id: '",G6e="').",V6e="Referenced edge section does not exist: ",K6e=" (edge id: '",Y6e="target",q6e="sourcePoint",X6e="targetPoint",J6e="group",Z6e="name",e8e="connectableShape cannot be null",t8e="edge cannot be null",n8e="Passed edge is not 'simple'.",r8e="org.eclipse.elk.graph.util",i8e="The 'no duplicates' constraint is violated",o8e="targetIndex=",a8e=", size=",s8e="sourceIndex=",l8e={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1},c8e={3:1,4:1,20:1,28:1,52:1,14:1,47:1,15:1,54:1,67:1,63:1,58:1,588:1},u8e="logging",d8e="measureExecutionTime",h8e="parser.parse.1",f8e="parser.parse.2",p8e="parser.next.1",g8e="parser.next.2",m8e="parser.next.3",v8e="parser.next.4",A8e="parser.factor.1",b8e="parser.factor.2",y8e="parser.factor.3",w8e="parser.factor.4",_8e="parser.factor.5",x8e="parser.factor.6",E8e="parser.atom.1",S8e="parser.atom.2",C8e="parser.atom.3",T8e="parser.atom.4",k8e="parser.atom.5",O8e="parser.cc.1",M8e="parser.cc.2",I8e="parser.cc.3",D8e="parser.cc.5",N8e="parser.cc.6",R8e="parser.cc.7",L8e="parser.cc.8",B8e="parser.ope.1",P8e="parser.ope.2",F8e="parser.ope.3",$8e="parser.descape.1",j8e="parser.descape.2",H8e="parser.descape.3",U8e="parser.descape.4",Q8e="parser.descape.5",z8e="parser.process.1",W8e="parser.quantifier.1",G8e="parser.quantifier.2",V8e="parser.quantifier.3",K8e="parser.quantifier.4",Y8e="parser.quantifier.5",q8e="org.eclipse.emf.common.notify",X8e={415:1,672:1},J8e={3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1},Z8e={366:1,143:1},e7e="index=",t7e={3:1,4:1,5:1,126:1},n7e={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,58:1},r7e={3:1,6:1,4:1,5:1,192:1},i7e={3:1,4:1,5:1,165:1,367:1},o7e=";/?:@&=+$,",a7e="invalid authority: ",s7e="EAnnotation",l7e="ETypedElement",c7e="EStructuralFeature",u7e="EAttribute",d7e="EClassifier",h7e="EEnumLiteral",f7e="EGenericType",p7e="EOperation",g7e="EParameter",m7e="EReference",v7e="ETypeParameter",A7e="org.eclipse.emf.ecore.util",b7e={76:1},y7e={3:1,20:1,14:1,15:1,58:1,589:1,76:1,69:1,95:1},w7e="org.eclipse.emf.ecore.util.FeatureMap$Entry",_7e=8192,x7e=2048,E7e="byte",S7e="char",C7e="double",T7e="float",k7e="int",O7e="long",M7e="short",I7e="java.lang.Object",D7e={3:1,4:1,5:1,247:1},N7e={3:1,4:1,5:1,673:1},R7e={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,69:1},L7e={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,76:1,69:1,95:1},B7e="mixed",P7e="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",F7e="kind",$7e={3:1,4:1,5:1,674:1},j7e={3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1,76:1,69:1,95:1},H7e={20:1,28:1,52:1,14:1,15:1,58:1,69:1},U7e={47:1,125:1,279:1},Q7e={72:1,332:1},z7e="The value of type '",W7e="' must be of type '",G7e=1316,V7e="http://www.eclipse.org/emf/2002/Ecore",K7e=-32768,Y7e="constraints",q7e="baseType",X7e="getEStructuralFeature",J7e="getFeatureID",Z7e="feature",e9e="getOperationID",t9e="operation",n9e="defaultValue",r9e="eTypeParameters",i9e="isInstance",o9e="getEEnumLiteral",a9e="eContainingClass",s9e={55:1},l9e={3:1,4:1,5:1,119:1},c9e="org.eclipse.emf.ecore.resource",u9e={92:1,90:1,591:1,1935:1},d9e="org.eclipse.emf.ecore.resource.impl",h9e="unspecified",f9e="simple",p9e="attribute",g9e="attributeWildcard",m9e="element",v9e="elementWildcard",A9e="collapse",b9e="itemType",y9e="namespace",w9e="##targetNamespace",_9e="whiteSpace",x9e="wildcards",E9e="http://www.eclipse.org/emf/2003/XMLType",S9e="##any",C9e="uninitialized",T9e="The multiplicity constraint is violated",k9e="org.eclipse.emf.ecore.xml.type",O9e="ProcessingInstruction",M9e="SimpleAnyType",I9e="XMLTypeDocumentRoot",D9e="org.eclipse.emf.ecore.xml.type.impl",N9e="INF",R9e="processing",L9e="ENTITIES_._base",B9e="minLength",P9e="ENTITY",F9e="NCName",$9e="IDREFS_._base",j9e="integer",H9e="token",U9e="pattern",Q9e="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",z9e="\\i\\c*",W9e="[\\i-[:]][\\c-[:]]*",G9e="nonPositiveInteger",V9e="maxInclusive",K9e="NMTOKEN",Y9e="NMTOKENS_._base",q9e="nonNegativeInteger",X9e="minInclusive",J9e="normalizedString",Z9e="unsignedByte",eet="unsignedInt",tet="18446744073709551615",net="unsignedShort",ret="processingInstruction",iet="org.eclipse.emf.ecore.xml.type.internal",oet=1114111,aet="Internal Error: shorthands: \\u",set="xml:isDigit",cet="xml:isWord",uet="xml:isSpace",det="xml:isNameChar",het="xml:isInitialNameChar",fet="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",pet="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",get="Private Use",met="ASSIGNED",vet="\0ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁯⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿　〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ﬀﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\ufeff\ufeff＀￯",Aet="UNASSIGNED",bet={3:1,117:1},yet="org.eclipse.emf.ecore.xml.type.util",wet={3:1,4:1,5:1,368:1},_et="org.eclipse.xtext.xbase.lib",xet="Cannot add elements to a Range",Eet="Cannot set elements in a Range",Set="Cannot remove elements from a Range",Cet="locale",Tet="default",ket="user.agent";r.goog=r.goog||{},r.goog.global=r.goog.global||r,GSe(),hIe(1,null,{},i),xKe.Fb=function(e){return FM(this,e)},xKe.Gb=function(){return this.gm},xKe.Hb=function(){return SR(this)},xKe.Ib=function(){return J_(Zle(this))+"@"+(Jle(this)>>>0).toString(16)},xKe.equals=function(e){return this.Fb(e)},xKe.hashCode=function(){return this.Hb()},xKe.toString=function(){return this.Ib()},hIe(290,1,{290:1,2026:1},gle),xKe.le=function(e){var t;return(t=new gle).i=4,t.c=e>1?pZ(this,e-1):this,t},xKe.me=function(){return wB(this),this.b},xKe.ne=function(){return J_(this)},xKe.oe=function(){return wB(this),this.k},xKe.pe=function(){return!!(4&this.i)},xKe.qe=function(){return!!(1&this.i)},xKe.Ib=function(){return ote(this)},xKe.i=0;var Oet,Met=mV(LKe,"Object",1),Iet=mV(LKe,"Class",290);hIe(1998,1,BKe),mV(PKe,"Optional",1998),hIe(1170,1998,BKe,o),xKe.Fb=function(e){return e===this},xKe.Hb=function(){return 2040732332},xKe.Ib=function(){return"Optional.absent()"},xKe.Jb=function(e){return AV(e),ty(),Oet},mV(PKe,"Absent",1170),hIe(628,1,{},vw),mV(PKe,"Joiner",628);var Det=dQ(PKe,"Predicate");hIe(582,1,{169:1,582:1,3:1,45:1},$d),xKe.Mb=function(e){return Ble(this,e)},xKe.Lb=function(e){return Ble(this,e)},xKe.Fb=function(e){var t;return!!rN(e,582)&&(t=$H(e,582),DIe(this.a,t.a))},xKe.Hb=function(){return Fle(this.a)+306654252},xKe.Ib=function(){return hTe(this.a)},mV(PKe,"Predicates/AndPredicate",582),hIe(408,1998,{408:1,3:1},jd),xKe.Fb=function(e){var t;return!!rN(e,408)&&(t=$H(e,408),Dde(this.a,t.a))},xKe.Hb=function(){return 1502476572+Jle(this.a)},xKe.Ib=function(){return UKe+this.a+")"},xKe.Jb=function(e){return new jd(Gq(e.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},mV(PKe,"Present",408),hIe(198,1,zKe),xKe.Nb=function(e){cG(this,e)},xKe.Qb=function(){dw()},mV(WKe,"UnmodifiableIterator",198),hIe(1978,198,GKe),xKe.Qb=function(){dw()},xKe.Rb=function(e){throw jv(new gA)},xKe.Wb=function(e){throw jv(new gA)},mV(WKe,"UnmodifiableListIterator",1978),hIe(386,1978,GKe),xKe.Ob=function(){return this.c<this.d},xKe.Sb=function(){return this.c>0},xKe.Pb=function(){if(this.c>=this.d)throw jv(new AA);return this.Xb(this.c++)},xKe.Tb=function(){return this.c},xKe.Ub=function(){if(this.c<=0)throw jv(new AA);return this.Xb(--this.c)},xKe.Vb=function(){return this.c-1},xKe.c=0,xKe.d=0,mV(WKe,"AbstractIndexedListIterator",386),hIe(699,198,zKe),xKe.Ob=function(){return Xre(this)},xKe.Pb=function(){return S9(this)},xKe.e=1,mV(WKe,"AbstractIterator",699),hIe(1986,1,{224:1}),xKe.Zb=function(){return this.f||(this.f=this.ac())},xKe.Fb=function(e){return yce(this,e)},xKe.Hb=function(){return Jle(this.Zb())},xKe.dc=function(){return 0==this.gc()},xKe.ec=function(){return pW(this)},xKe.Ib=function(){return $fe(this.Zb())},mV(WKe,"AbstractMultimap",1986),hIe(726,1986,VKe),xKe.$b=function(){hre(this)},xKe._b=function(e){return G_(this,e)},xKe.ac=function(){return new gE(this,this.c)},xKe.ic=function(e){return this.hc()},xKe.bc=function(){return new jN(this,this.c)},xKe.jc=function(){return this.mc(this.hc())},xKe.kc=function(){return new jb(this)},xKe.lc=function(){return HEe(this.c.vc().Nc(),new s,64,this.d)},xKe.cc=function(e){return l6(this,e)},xKe.fc=function(e){return Due(this,e)},xKe.gc=function(){return this.d},xKe.mc=function(e){return Eq(),new jf(e)},xKe.nc=function(){return new $b(this)},xKe.oc=function(){return HEe(this.c.Cc().Nc(),new a,64,this.d)},xKe.pc=function(e,t){return new G6(this,e,t,null)},xKe.d=0,mV(WKe,"AbstractMapBasedMultimap",726),hIe(1631,726,VKe),xKe.hc=function(){return new q6(this.a)},xKe.jc=function(){return Eq(),Eq(),lnt},xKe.cc=function(e){return $H(l6(this,e),15)},xKe.fc=function(e){return $H(Due(this,e),15)},xKe.Zb=function(){return kq(this)},xKe.Fb=function(e){return yce(this,e)},xKe.qc=function(e){return $H(l6(this,e),15)},xKe.rc=function(e){return $H(Due(this,e),15)},xKe.mc=function(e){return nX($H(e,15))},xKe.pc=function(e,t){return t3(this,e,$H(t,15),null)},mV(WKe,"AbstractListMultimap",1631),hIe(732,1,KKe),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return this.c.Ob()||this.e.Ob()},xKe.Pb=function(){var e;return this.e.Ob()||(e=$H(this.c.Pb(),42),this.b=e.cd(),this.a=$H(e.dd(),14),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},xKe.Qb=function(){this.e.Qb(),this.a.dc()&&this.c.Qb(),--this.d.d},mV(WKe,"AbstractMapBasedMultimap/Itr",732),hIe(1099,732,KKe,$b),xKe.sc=function(e,t){return t},mV(WKe,"AbstractMapBasedMultimap/1",1099),hIe(1100,1,{},a),xKe.Kb=function(e){return $H(e,14).Nc()},mV(WKe,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1100),hIe(1101,732,KKe,jb),xKe.sc=function(e,t){return new mE(e,t)},mV(WKe,"AbstractMapBasedMultimap/2",1101);var Net=dQ(YKe,"Map");hIe(1967,1,qKe),xKe.wc=function(e){Joe(this,e)},xKe.yc=function(e,t,n){return Xhe(this,e,t,n)},xKe.$b=function(){this.vc().$b()},xKe.tc=function(e){return xbe(this,e)},xKe._b=function(e){return!!Fxe(this,e,!1)},xKe.uc=function(e){var t,n;for(t=this.vc().Kc();t.Ob();)if(n=$H(t.Pb(),42).dd(),UO(e)===UO(n)||null!=e&&Dde(e,n))return!0;return!1},xKe.Fb=function(e){var t,n,r;if(e===this)return!0;if(!rN(e,83))return!1;if(r=$H(e,83),this.gc()!=r.gc())return!1;for(n=r.vc().Kc();n.Ob();)if(t=$H(n.Pb(),42),!this.tc(t))return!1;return!0},xKe.xc=function(e){return HO(Fxe(this,e,!1))},xKe.Hb=function(){return jse(this.vc())},xKe.dc=function(){return 0==this.gc()},xKe.ec=function(){return new Cf(this)},xKe.zc=function(e,t){throw jv(new Zy("Put not supported on this map"))},xKe.Ac=function(e){_oe(this,e)},xKe.Bc=function(e){return HO(Fxe(this,e,!0))},xKe.gc=function(){return this.vc().gc()},xKe.Ib=function(){return Jxe(this)},xKe.Cc=function(){return new kf(this)},mV(YKe,"AbstractMap",1967),hIe(1987,1967,qKe),xKe.bc=function(){return new EE(this)},xKe.vc=function(){return fW(this)},xKe.ec=function(){return this.g||(this.g=this.bc())},xKe.Cc=function(){return this.i||(this.i=new SE(this))},mV(WKe,"Maps/ViewCachingAbstractMap",1987),hIe(389,1987,qKe,gE),xKe.xc=function(e){return bte(this,e)},xKe.Bc=function(e){return Xce(this,e)},xKe.$b=function(){this.d==this.e.c?this.e.$b():CQ(new kQ(this))},xKe._b=function(e){return pde(this.d,e)},xKe.Ec=function(){return new zd(this)},xKe.Dc=function(){return this.Ec()},xKe.Fb=function(e){return this===e||Dde(this.d,e)},xKe.Hb=function(){return Jle(this.d)},xKe.ec=function(){return this.e.ec()},xKe.gc=function(){return this.d.gc()},xKe.Ib=function(){return $fe(this.d)},mV(WKe,"AbstractMapBasedMultimap/AsMap",389);var Ret=dQ(LKe,"Iterable");hIe(28,1,XKe),xKe.Jc=function(e){e5(this,e)},xKe.Lc=function(){return this.Oc()},xKe.Nc=function(){return new h0(this,0)},xKe.Oc=function(){return new LQ(null,this.Nc())},xKe.Fc=function(e){throw jv(new Zy("Add not supported on this collection"))},xKe.Gc=function(e){return Fie(this,e)},xKe.$b=function(){_Y(this)},xKe.Hc=function(e){return Ape(this,e,!1)},xKe.Ic=function(e){return ase(this,e)},xKe.dc=function(){return 0==this.gc()},xKe.Mc=function(e){return Ape(this,e,!0)},xKe.Pc=function(){return rW(this)},xKe.Qc=function(e){return wbe(this,e)},xKe.Ib=function(){return ISe(this)},mV(YKe,"AbstractCollection",28);var Let=dQ(YKe,"Set");hIe(JKe,28,ZKe),xKe.Nc=function(){return new h0(this,1)},xKe.Fb=function(e){return tme(this,e)},xKe.Hb=function(){return jse(this)},mV(YKe,"AbstractSet",JKe),hIe(1970,JKe,ZKe),mV(WKe,"Sets/ImprovedAbstractSet",1970),hIe(1971,1970,ZKe),xKe.$b=function(){this.Rc().$b()},xKe.Hc=function(e){return tge(this,e)},xKe.dc=function(){return this.Rc().dc()},xKe.Mc=function(e){var t;return!!this.Hc(e)&&(t=$H(e,42),this.Rc().ec().Mc(t.cd()))},xKe.gc=function(){return this.Rc().gc()},mV(WKe,"Maps/EntrySet",1971),hIe(1097,1971,ZKe,zd),xKe.Hc=function(e){return hde(this.a.d.vc(),e)},xKe.Kc=function(){return new kQ(this.a)},xKe.Rc=function(){return this.a},xKe.Mc=function(e){var t;return!!hde(this.a.d.vc(),e)&&(t=$H(e,42),j5(this.a.e,t.cd()),!0)},xKe.Nc=function(){return LH(this.a.d.vc().Nc(),new Wd(this.a))},mV(WKe,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1097),hIe(1098,1,{},Wd),xKe.Kb=function(e){return t5(this.a,$H(e,42))},mV(WKe,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1098),hIe(730,1,KKe,kQ),xKe.Nb=function(e){cG(this,e)},xKe.Pb=function(){var e;return e=$H(this.b.Pb(),42),this.a=$H(e.dd(),14),t5(this.c,e)},xKe.Ob=function(){return this.b.Ob()},xKe.Qb=function(){lae(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},mV(WKe,"AbstractMapBasedMultimap/AsMap/AsMapIterator",730),hIe(532,1970,ZKe,EE),xKe.$b=function(){this.b.$b()},xKe.Hc=function(e){return this.b._b(e)},xKe.Jc=function(e){AV(e),this.b.wc(new gh(e))},xKe.dc=function(){return this.b.dc()},xKe.Kc=function(){return new uy(this.b.vc().Kc())},xKe.Mc=function(e){return!!this.b._b(e)&&(this.b.Bc(e),!0)},xKe.gc=function(){return this.b.gc()},mV(WKe,"Maps/KeySet",532),hIe(318,532,ZKe,jN),xKe.$b=function(){CQ(new eE(this,this.b.vc().Kc()))},xKe.Ic=function(e){return this.b.ec().Ic(e)},xKe.Fb=function(e){return this===e||Dde(this.b.ec(),e)},xKe.Hb=function(){return Jle(this.b.ec())},xKe.Kc=function(){return new eE(this,this.b.vc().Kc())},xKe.Mc=function(e){var t,n;return n=0,(t=$H(this.b.Bc(e),14))&&(n=t.gc(),t.$b(),this.a.d-=n),n>0},xKe.Nc=function(){return this.b.ec().Nc()},mV(WKe,"AbstractMapBasedMultimap/KeySet",318),hIe(731,1,KKe,eE),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return this.c.Ob()},xKe.Pb=function(){return this.a=$H(this.c.Pb(),42),this.a.cd()},xKe.Qb=function(){var e;lae(!!this.a),e=$H(this.a.dd(),14),this.c.Qb(),this.b.a.d-=e.gc(),e.$b(),this.a=null},mV(WKe,"AbstractMapBasedMultimap/KeySet/1",731),hIe(491,389,{83:1,161:1},CB),xKe.bc=function(){return this.Sc()},xKe.ec=function(){return this.Tc()},xKe.Sc=function(){return new Jx(this.c,this.Uc())},xKe.Tc=function(){return this.b||(this.b=this.Sc())},xKe.Uc=function(){return $H(this.d,161)},mV(WKe,"AbstractMapBasedMultimap/SortedAsMap",491),hIe(542,491,eYe,TB),xKe.bc=function(){return new Zx(this.a,$H($H(this.d,161),171))},xKe.Sc=function(){return new Zx(this.a,$H($H(this.d,161),171))},xKe.ec=function(){return $H(this.b||(this.b=new Zx(this.a,$H($H(this.d,161),171))),271)},xKe.Tc=function(){return $H(this.b||(this.b=new Zx(this.a,$H($H(this.d,161),171))),271)},xKe.Uc=function(){return $H($H(this.d,161),171)},mV(WKe,"AbstractMapBasedMultimap/NavigableAsMap",542),hIe(490,318,tYe,Jx),xKe.Nc=function(){return this.b.ec().Nc()},mV(WKe,"AbstractMapBasedMultimap/SortedKeySet",490),hIe(388,490,nYe,Zx),mV(WKe,"AbstractMapBasedMultimap/NavigableKeySet",388),hIe(541,28,XKe,G6),xKe.Fc=function(e){var t,n;return Qfe(this),n=this.d.dc(),(t=this.d.Fc(e))&&(++this.f.d,n&&yP(this)),t},xKe.Gc=function(e){var t,n,r;return!e.dc()&&(Qfe(this),r=this.d.gc(),(t=this.d.Gc(e))&&(n=this.d.gc(),this.f.d+=n-r,0==r&&yP(this)),t)},xKe.$b=function(){var e;Qfe(this),0!=(e=this.d.gc())&&(this.d.$b(),this.f.d-=e,Mz(this))},xKe.Hc=function(e){return Qfe(this),this.d.Hc(e)},xKe.Ic=function(e){return Qfe(this),this.d.Ic(e)},xKe.Fb=function(e){return e===this||(Qfe(this),Dde(this.d,e))},xKe.Hb=function(){return Qfe(this),Jle(this.d)},xKe.Kc=function(){return Qfe(this),new KH(this)},xKe.Mc=function(e){var t;return Qfe(this),(t=this.d.Mc(e))&&(--this.f.d,Mz(this)),t},xKe.gc=function(){return ZO(this)},xKe.Nc=function(){return Qfe(this),this.d.Nc()},xKe.Ib=function(){return Qfe(this),$fe(this.d)},mV(WKe,"AbstractMapBasedMultimap/WrappedCollection",541);var Bet=dQ(YKe,"List");hIe(728,541,{20:1,28:1,14:1,15:1},sW),xKe.ad=function(e){Pie(this,e)},xKe.Nc=function(){return Qfe(this),this.d.Nc()},xKe.Vc=function(e,t){var n;Qfe(this),n=this.d.dc(),$H(this.d,15).Vc(e,t),++this.a.d,n&&yP(this)},xKe.Wc=function(e,t){var n,r,i;return!t.dc()&&(Qfe(this),i=this.d.gc(),(n=$H(this.d,15).Wc(e,t))&&(r=this.d.gc(),this.a.d+=r-i,0==i&&yP(this)),n)},xKe.Xb=function(e){return Qfe(this),$H(this.d,15).Xb(e)},xKe.Xc=function(e){return Qfe(this),$H(this.d,15).Xc(e)},xKe.Yc=function(){return Qfe(this),new pD(this)},xKe.Zc=function(e){return Qfe(this),new pq(this,e)},xKe.$c=function(e){var t;return Qfe(this),t=$H(this.d,15).$c(e),--this.a.d,Mz(this),t},xKe._c=function(e,t){return Qfe(this),$H(this.d,15)._c(e,t)},xKe.bd=function(e,t){return Qfe(this),t3(this.a,this.e,$H(this.d,15).bd(e,t),this.b?this.b:this)},mV(WKe,"AbstractMapBasedMultimap/WrappedList",728),hIe(1096,728,{20:1,28:1,14:1,15:1,54:1},kL),mV(WKe,"AbstractMapBasedMultimap/RandomAccessWrappedList",1096),hIe(620,1,KKe,KH),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return xY(this),this.b.Ob()},xKe.Pb=function(){return xY(this),this.b.Pb()},xKe.Qb=function(){eR(this)},mV(WKe,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",620),hIe(729,620,rYe,pD,pq),xKe.Qb=function(){eR(this)},xKe.Rb=function(e){var t;t=0==ZO(this.a),(xY(this),$H(this.b,125)).Rb(e),++this.a.a.d,t&&yP(this.a)},xKe.Sb=function(){return(xY(this),$H(this.b,125)).Sb()},xKe.Tb=function(){return(xY(this),$H(this.b,125)).Tb()},xKe.Ub=function(){return(xY(this),$H(this.b,125)).Ub()},xKe.Vb=function(){return(xY(this),$H(this.b,125)).Vb()},xKe.Wb=function(e){(xY(this),$H(this.b,125)).Wb(e)},mV(WKe,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",729),hIe(727,541,tYe,DB),xKe.Nc=function(){return Qfe(this),this.d.Nc()},mV(WKe,"AbstractMapBasedMultimap/WrappedSortedSet",727),hIe(1095,727,nYe,OI),mV(WKe,"AbstractMapBasedMultimap/WrappedNavigableSet",1095),hIe(1094,541,ZKe,NB),xKe.Nc=function(){return Qfe(this),this.d.Nc()},mV(WKe,"AbstractMapBasedMultimap/WrappedSet",1094),hIe(1103,1,{},s),xKe.Kb=function(e){return F6($H(e,42))},mV(WKe,"AbstractMapBasedMultimap/lambda$1$Type",1103),hIe(1102,1,{},Gd),xKe.Kb=function(e){return new mE(this.a,e)},mV(WKe,"AbstractMapBasedMultimap/lambda$2$Type",1102);var Pet,Fet,$et,jet,Het=dQ(YKe,"Map/Entry");hIe(345,1,iYe),xKe.Fb=function(e){var t;return!!rN(e,42)&&(t=$H(e,42),hK(this.cd(),t.cd())&&hK(this.dd(),t.dd()))},xKe.Hb=function(){var e,t;return e=this.cd(),t=this.dd(),(null==e?0:Jle(e))^(null==t?0:Jle(t))},xKe.ed=function(e){throw jv(new gA)},xKe.Ib=function(){return this.cd()+"="+this.dd()},mV(WKe,oYe,345),hIe(1988,28,XKe),xKe.$b=function(){this.fd().$b()},xKe.Hc=function(e){var t;return!!rN(e,42)&&(t=$H(e,42),j1(this.fd(),t.cd(),t.dd()))},xKe.Mc=function(e){var t;return!!rN(e,42)&&(t=$H(e,42),H1(this.fd(),t.cd(),t.dd()))},xKe.gc=function(){return this.fd().d},mV(WKe,"Multimaps/Entries",1988),hIe(733,1988,XKe,Vd),xKe.Kc=function(){return this.a.kc()},xKe.fd=function(){return this.a},xKe.Nc=function(){return this.a.lc()},mV(WKe,"AbstractMultimap/Entries",733),hIe(734,733,ZKe,Hb),xKe.Nc=function(){return this.a.lc()},xKe.Fb=function(e){return QCe(this,e)},xKe.Hb=function(){return $ie(this)},mV(WKe,"AbstractMultimap/EntrySet",734),hIe(735,28,XKe,Kd),xKe.$b=function(){this.a.$b()},xKe.Hc=function(e){return Tce(this.a,e)},xKe.Kc=function(){return this.a.nc()},xKe.gc=function(){return this.a.d},xKe.Nc=function(){return this.a.oc()},mV(WKe,"AbstractMultimap/Values",735),hIe(1989,28,{835:1,20:1,28:1,14:1}),xKe.Jc=function(e){AV(e),wY(this).Jc(new ph(e))},xKe.Nc=function(){var e;return HEe(e=wY(this).Nc(),new y,64|1296&e.qd(),this.a.d)},xKe.Fc=function(e){return hw(),!0},xKe.Gc=function(e){return AV(this),AV(e),rN(e,543)?u2($H(e,835)):!e.dc()&&cee(this,e.Kc())},xKe.Hc=function(e){var t;return((t=$H(ude(kq(this.a),e),14))?t.gc():0)>0},xKe.Fb=function(e){return lDe(this,e)},xKe.Hb=function(){return Jle(wY(this))},xKe.dc=function(){return wY(this).dc()},xKe.Mc=function(e){return wOe(this,e,1)>0},xKe.Ib=function(){return $fe(wY(this))},mV(WKe,"AbstractMultiset",1989),hIe(1991,1970,ZKe),xKe.$b=function(){hre(this.a.a)},xKe.Hc=function(e){var t;return!(!rN(e,492)||(t=$H(e,416),$H(t.a.dd(),14).gc()<=0||r0(this.a,t.a.cd())!=$H(t.a.dd(),14).gc()))},xKe.Mc=function(e){var t,n,r;return!(!rN(e,492)||(t=(n=$H(e,416)).a.cd(),0==(r=$H(n.a.dd(),14).gc())))&&_Oe(this.a,t,r)},mV(WKe,"Multisets/EntrySet",1991),hIe(1109,1991,ZKe,Yd),xKe.Kc=function(){return new hy(fW(kq(this.a.a)).Kc())},xKe.gc=function(){return kq(this.a.a).gc()},mV(WKe,"AbstractMultiset/EntrySet",1109),hIe(619,726,VKe),xKe.hc=function(){return this.gd()},xKe.jc=function(){return this.hd()},xKe.cc=function(e){return this.jd(e)},xKe.fc=function(e){return this.kd(e)},xKe.Zb=function(){return this.f||(this.f=this.ac())},xKe.hd=function(){return Eq(),Eq(),unt},xKe.Fb=function(e){return yce(this,e)},xKe.jd=function(e){return $H(l6(this,e),21)},xKe.kd=function(e){return $H(Due(this,e),21)},xKe.mc=function(e){return Eq(),new Ow($H(e,21))},xKe.pc=function(e,t){return new NB(this,e,$H(t,21))},mV(WKe,"AbstractSetMultimap",619),hIe(1657,619,VKe),xKe.hc=function(){return new fx(this.b)},xKe.gd=function(){return new fx(this.b)},xKe.jc=function(){return TV(new fx(this.b))},xKe.hd=function(){return TV(new fx(this.b))},xKe.cc=function(e){return $H($H(l6(this,e),21),84)},xKe.jd=function(e){return $H($H(l6(this,e),21),84)},xKe.fc=function(e){return $H($H(Due(this,e),21),84)},xKe.kd=function(e){return $H($H(Due(this,e),21),84)},xKe.mc=function(e){return rN(e,271)?TV($H(e,271)):(Eq(),new fR($H(e,84)))},xKe.Zb=function(){return this.f||(this.f=rN(this.c,171)?new TB(this,$H(this.c,171)):rN(this.c,161)?new CB(this,$H(this.c,161)):new gE(this,this.c))},xKe.pc=function(e,t){return rN(t,271)?new OI(this,e,$H(t,271)):new DB(this,e,$H(t,84))},mV(WKe,"AbstractSortedSetMultimap",1657),hIe(1658,1657,VKe),xKe.Zb=function(){return $H($H(this.f||(this.f=rN(this.c,171)?new TB(this,$H(this.c,171)):rN(this.c,161)?new CB(this,$H(this.c,161)):new gE(this,this.c)),161),171)},xKe.ec=function(){return $H($H(this.i||(this.i=rN(this.c,171)?new Zx(this,$H(this.c,171)):rN(this.c,161)?new Jx(this,$H(this.c,161)):new jN(this,this.c)),84),271)},xKe.bc=function(){return rN(this.c,171)?new Zx(this,$H(this.c,171)):rN(this.c,161)?new Jx(this,$H(this.c,161)):new jN(this,this.c)},mV(WKe,"AbstractSortedKeySortedSetMultimap",1658),hIe(2010,1,{1947:1}),xKe.Fb=function(e){return C_e(this,e)},xKe.Hb=function(){return jse(this.g||(this.g=new qd(this)))},xKe.Ib=function(){return Jxe(this.f||(this.f=new zN(this)))},mV(WKe,"AbstractTable",2010),hIe(665,JKe,ZKe,qd),xKe.$b=function(){fw()},xKe.Hc=function(e){var t,n;return!!rN(e,468)&&(t=$H(e,682),!!(n=$H(ude(yV(this.a),GO(t.c.e,t.b)),83))&&hde(n.vc(),new mE(GO(t.c.c,t.a),z6(t.c,t.b,t.a))))},xKe.Kc=function(){return Xq(this.a)},xKe.Mc=function(e){var t,n;return!!rN(e,468)&&(t=$H(e,682),!!(n=$H(ude(yV(this.a),GO(t.c.e,t.b)),83))&&fde(n.vc(),new mE(GO(t.c.c,t.a),z6(t.c,t.b,t.a))))},xKe.gc=function(){return QQ(this.a)},xKe.Nc=function(){return S2(this.a)},mV(WKe,"AbstractTable/CellSet",665),hIe(1928,28,XKe,Xd),xKe.$b=function(){fw()},xKe.Hc=function(e){return lEe(this.a,e)},xKe.Kc=function(){return Jq(this.a)},xKe.gc=function(){return QQ(this.a)},xKe.Nc=function(){return Y1(this.a)},mV(WKe,"AbstractTable/Values",1928),hIe(1632,1631,VKe),mV(WKe,"ArrayListMultimapGwtSerializationDependencies",1632),hIe(513,1632,VKe,aw,a0),xKe.hc=function(){return new q6(this.a)},xKe.a=0,mV(WKe,"ArrayListMultimap",513),hIe(664,2010,{664:1,1947:1,3:1},mMe),mV(WKe,"ArrayTable",664),hIe(1924,386,GKe,HN),xKe.Xb=function(e){return new ple(this.a,e)},mV(WKe,"ArrayTable/1",1924),hIe(1925,1,{},Hd),xKe.ld=function(e){return new ple(this.a,e)},mV(WKe,"ArrayTable/1methodref$getCell$Type",1925),hIe(2011,1,{682:1}),xKe.Fb=function(e){var t;return e===this||!!rN(e,468)&&(t=$H(e,682),hK(GO(this.c.e,this.b),GO(t.c.e,t.b))&&hK(GO(this.c.c,this.a),GO(t.c.c,t.a))&&hK(z6(this.c,this.b,this.a),z6(t.c,t.b,t.a)))},xKe.Hb=function(){return cue(Sse(Uw(Met,1),jKe,1,5,[GO(this.c.e,this.b),GO(this.c.c,this.a),z6(this.c,this.b,this.a)]))},xKe.Ib=function(){return"("+GO(this.c.e,this.b)+","+GO(this.c.c,this.a)+")="+z6(this.c,this.b,this.a)},mV(WKe,"Tables/AbstractCell",2011),hIe(468,2011,{468:1,682:1},ple),xKe.a=0,xKe.b=0,xKe.d=0,mV(WKe,"ArrayTable/2",468),hIe(1927,1,{},Ud),xKe.ld=function(e){return Y7(this.a,e)},mV(WKe,"ArrayTable/2methodref$getValue$Type",1927),hIe(1926,386,GKe,UN),xKe.Xb=function(e){return Y7(this.a,e)},mV(WKe,"ArrayTable/3",1926),hIe(1979,1967,qKe),xKe.$b=function(){CQ(this.kc())},xKe.vc=function(){return new mh(this)},xKe.lc=function(){return new CY(this.kc(),this.gc())},mV(WKe,"Maps/IteratorBasedAbstractMap",1979),hIe(828,1979,qKe),xKe.$b=function(){throw jv(new gA)},xKe._b=function(e){return Y_(this.c,e)},xKe.kc=function(){return new QN(this,this.c.b.c.gc())},xKe.lc=function(){return AQ(this.c.b.c.gc(),16,new Qd(this))},xKe.xc=function(e){var t;return(t=$H(zF(this.c,e),19))?this.nd(t.a):null},xKe.dc=function(){return this.c.b.c.dc()},xKe.ec=function(){return dW(this.c)},xKe.zc=function(e,t){var n;if(!(n=$H(zF(this.c,e),19)))throw jv(new Py(this.md()+" "+e+" not in "+dW(this.c)));return this.od(n.a,t)},xKe.Bc=function(e){throw jv(new gA)},xKe.gc=function(){return this.c.b.c.gc()},mV(WKe,"ArrayTable/ArrayMap",828),hIe(1923,1,{},Qd),xKe.ld=function(e){return kV(this.a,e)},mV(WKe,"ArrayTable/ArrayMap/0methodref$getEntry$Type",1923),hIe(1921,345,iYe,sE),xKe.cd=function(){return YN(this.a,this.b)},xKe.dd=function(){return this.a.nd(this.b)},xKe.ed=function(e){return this.a.od(this.b,e)},xKe.b=0,mV(WKe,"ArrayTable/ArrayMap/1",1921),hIe(1922,386,GKe,QN),xKe.Xb=function(e){return kV(this.a,e)},mV(WKe,"ArrayTable/ArrayMap/2",1922),hIe(1920,828,qKe,rG),xKe.md=function(){return"Column"},xKe.nd=function(e){return z6(this.b,this.a,e)},xKe.od=function(e,t){return Ese(this.b,this.a,e,t)},xKe.a=0,mV(WKe,"ArrayTable/Row",1920),hIe(829,828,qKe,zN),xKe.nd=function(e){return new rG(this.a,e)},xKe.zc=function(e,t){return $H(t,83),pw()},xKe.od=function(e,t){return $H(t,83),gw()},xKe.md=function(){return"Row"},mV(WKe,"ArrayTable/RowMap",829),hIe(1120,1,cYe,lE),xKe.qd=function(){return-262&this.a.qd()},xKe.rd=function(){return this.a.rd()},xKe.Nb=function(e){this.a.Nb(new rE(e,this.b))},xKe.sd=function(e){return this.a.sd(new nE(e,this.b))},mV(WKe,"CollectSpliterators/1",1120),hIe(1121,1,uYe,nE),xKe.td=function(e){this.a.td(this.b.Kb(e))},mV(WKe,"CollectSpliterators/1/lambda$0$Type",1121),hIe(1122,1,uYe,rE),xKe.td=function(e){this.a.td(this.b.Kb(e))},mV(WKe,"CollectSpliterators/1/lambda$1$Type",1122),hIe(1123,1,cYe,H2),xKe.qd=function(){return this.a},xKe.rd=function(){return this.d&&(this.b=_D(this.b,this.d.rd())),_D(this.b,0)},xKe.Nb=function(e){this.d&&(this.d.Nb(e),this.d=null),this.c.Nb(new tE(this.e,e)),this.b=0},xKe.sd=function(e){for(;;){if(this.d&&this.d.sd(e))return qO(this.b,dYe)&&(this.b=tfe(this.b,1)),!0;if(this.d=null,!this.c.sd(new iE(this,this.e)))return!1}},xKe.a=0,xKe.b=0,mV(WKe,"CollectSpliterators/1FlatMapSpliterator",1123),hIe(1124,1,uYe,iE),xKe.td=function(e){fF(this.a,this.b,e)},mV(WKe,"CollectSpliterators/1FlatMapSpliterator/lambda$0$Type",1124),hIe(1125,1,uYe,tE),xKe.td=function(e){aN(this.b,this.a,e)},mV(WKe,"CollectSpliterators/1FlatMapSpliterator/lambda$1$Type",1125),hIe(1117,1,cYe,hF),xKe.qd=function(){return 16464|this.b},xKe.rd=function(){return this.a.rd()},xKe.Nb=function(e){this.a.xe(new aE(e,this.c))},xKe.sd=function(e){return this.a.ye(new oE(e,this.c))},xKe.b=0,mV(WKe,"CollectSpliterators/1WithCharacteristics",1117),hIe(1118,1,hYe,oE),xKe.ud=function(e){this.a.td(this.b.ld(e))},mV(WKe,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1118),hIe(1119,1,hYe,aE),xKe.ud=function(e){this.a.td(this.b.ld(e))},mV(WKe,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1119),hIe(245,1,fYe),xKe.wd=function(e){return this.vd($H(e,245))},xKe.vd=function(e){var t;return e==(Zb(),Fet)?1:e==(ey(),Pet)?-1:(JU(),0!=(t=Doe(this.a,e.a))?t:rN(this,519)==rN(e,519)?0:rN(this,519)?1:-1)},xKe.zd=function(){return this.a},xKe.Fb=function(e){return Nge(this,e)},mV(WKe,"Cut",245),hIe(1761,245,fYe,Dw),xKe.vd=function(e){return e==this?0:1},xKe.xd=function(e){throw jv(new lA)},xKe.yd=function(e){e.a+="+∞)"},xKe.zd=function(){throw jv(new Fy(pYe))},xKe.Hb=function(){return ME(),eAe(this)},xKe.Ad=function(e){return!1},xKe.Ib=function(){return"+∞"},mV(WKe,"Cut/AboveAll",1761),hIe(519,245,{245:1,519:1,3:1,35:1},tR),xKe.xd=function(e){oM((e.a+="(",e),this.a)},xKe.yd=function(e){NV(oM(e,this.a),93)},xKe.Hb=function(){return~Jle(this.a)},xKe.Ad=function(e){return JU(),Doe(this.a,e)<0},xKe.Ib=function(){return"/"+this.a+"\\"},mV(WKe,"Cut/AboveValue",519),hIe(1760,245,fYe,Nw),xKe.vd=function(e){return e==this?0:-1},xKe.xd=function(e){e.a+="(-∞"},xKe.yd=function(e){throw jv(new lA)},xKe.zd=function(){throw jv(new Fy(pYe))},xKe.Hb=function(){return ME(),eAe(this)},xKe.Ad=function(e){return!0},xKe.Ib=function(){return"-∞"},mV(WKe,"Cut/BelowAll",1760),hIe(1762,245,fYe,nR),xKe.xd=function(e){oM((e.a+="[",e),this.a)},xKe.yd=function(e){NV(oM(e,this.a),41)},xKe.Hb=function(){return Jle(this.a)},xKe.Ad=function(e){return JU(),Doe(this.a,e)<=0},xKe.Ib=function(){return"\\"+this.a+"/"},mV(WKe,"Cut/BelowValue",1762),hIe(537,1,gYe),xKe.Jc=function(e){e5(this,e)},xKe.Ib=function(){return jhe($H(Gq(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},mV(WKe,"FluentIterable",537),hIe(433,537,gYe,kM),xKe.Kc=function(){return new aW(XN(this.a.Kc(),new u))},mV(WKe,"FluentIterable/2",433),hIe(1046,537,gYe,OM),xKe.Kc=function(){return DG(this)},mV(WKe,"FluentIterable/3",1046),hIe(708,386,GKe,GN),xKe.Xb=function(e){return this.a[e].Kc()},mV(WKe,"FluentIterable/3/1",708),hIe(1972,1,{}),xKe.Ib=function(){return $fe(this.Bd().b)},mV(WKe,"ForwardingObject",1972),hIe(1973,1972,mYe),xKe.Bd=function(){return this.Cd()},xKe.Jc=function(e){e5(this,e)},xKe.Lc=function(){return this.Oc()},xKe.Nc=function(){return new h0(this,0)},xKe.Oc=function(){return new LQ(null,this.Nc())},xKe.Fc=function(e){return this.Cd(),ax()},xKe.Gc=function(e){return this.Cd(),sx()},xKe.$b=function(){this.Cd(),lx()},xKe.Hc=function(e){return this.Cd().Hc(e)},xKe.Ic=function(e){return this.Cd().Ic(e)},xKe.dc=function(){return this.Cd().b.dc()},xKe.Kc=function(){return this.Cd().Kc()},xKe.Mc=function(e){return this.Cd(),cx()},xKe.gc=function(){return this.Cd().b.gc()},xKe.Pc=function(){return this.Cd().Pc()},xKe.Qc=function(e){return this.Cd().Qc(e)},mV(WKe,"ForwardingCollection",1973),hIe(1980,28,vYe),xKe.Kc=function(){return this.Ed()},xKe.Fc=function(e){throw jv(new gA)},xKe.Gc=function(e){throw jv(new gA)},xKe.$b=function(){throw jv(new gA)},xKe.Hc=function(e){return null!=e&&Ape(this,e,!1)},xKe.Dd=function(){switch(this.gc()){case 0:return GV(),GV(),$et;case 1:return GV(),new SQ(AV(this.Ed().Pb()));default:return new iG(this,this.Pc())}},xKe.Mc=function(e){throw jv(new gA)},mV(WKe,"ImmutableCollection",1980),hIe(712,1980,vYe,nA),xKe.Kc=function(){return I7(this.a.Kc())},xKe.Hc=function(e){return null!=e&&this.a.Hc(e)},xKe.Ic=function(e){return this.a.Ic(e)},xKe.dc=function(){return this.a.dc()},xKe.Ed=function(){return I7(this.a.Kc())},xKe.gc=function(){return this.a.gc()},xKe.Pc=function(){return this.a.Pc()},xKe.Qc=function(e){return this.a.Qc(e)},xKe.Ib=function(){return $fe(this.a)},mV(WKe,"ForwardingImmutableCollection",712),hIe(152,1980,AYe),xKe.Kc=function(){return this.Ed()},xKe.Yc=function(){return this.Fd(0)},xKe.Zc=function(e){return this.Fd(e)},xKe.ad=function(e){Pie(this,e)},xKe.Nc=function(){return new h0(this,16)},xKe.bd=function(e,t){return this.Gd(e,t)},xKe.Vc=function(e,t){throw jv(new gA)},xKe.Wc=function(e,t){throw jv(new gA)},xKe.Fb=function(e){return HIe(this,e)},xKe.Hb=function(){return Tae(this)},xKe.Xc=function(e){return null==e?-1:_be(this,e)},xKe.Ed=function(){return this.Fd(0)},xKe.Fd=function(e){return tL(this,e)},xKe.$c=function(e){throw jv(new gA)},xKe._c=function(e,t){throw jv(new gA)},xKe.Gd=function(e,t){return sde(new s0(new TE(this),e,t))},mV(WKe,"ImmutableList",152),hIe(2006,152,AYe),xKe.Kc=function(){return I7(this.Hd().Kc())},xKe.bd=function(e,t){return sde(this.Hd().bd(e,t))},xKe.Hc=function(e){return null!=e&&this.Hd().Hc(e)},xKe.Ic=function(e){return this.Hd().Ic(e)},xKe.Fb=function(e){return Dde(this.Hd(),e)},xKe.Xb=function(e){return GO(this,e)},xKe.Hb=function(){return Jle(this.Hd())},xKe.Xc=function(e){return this.Hd().Xc(e)},xKe.dc=function(){return this.Hd().dc()},xKe.Ed=function(){return I7(this.Hd().Kc())},xKe.gc=function(){return this.Hd().gc()},xKe.Gd=function(e,t){return sde(this.Hd().bd(e,t))},xKe.Pc=function(){return this.Hd().Qc(N8(Met,jKe,1,this.Hd().gc(),5,1))},xKe.Qc=function(e){return this.Hd().Qc(e)},xKe.Ib=function(){return $fe(this.Hd())},mV(WKe,"ForwardingImmutableList",2006),hIe(714,1,yYe),xKe.vc=function(){return uW(this)},xKe.wc=function(e){Joe(this,e)},xKe.ec=function(){return dW(this)},xKe.yc=function(e,t,n){return Xhe(this,e,t,n)},xKe.Cc=function(){return this.Ld()},xKe.$b=function(){throw jv(new gA)},xKe._b=function(e){return null!=this.xc(e)},xKe.uc=function(e){return this.Ld().Hc(e)},xKe.Jd=function(){return new rA(this)},xKe.Kd=function(){return new iA(this)},xKe.Fb=function(e){return Mce(this,e)},xKe.Hb=function(){return uW(this).Hb()},xKe.dc=function(){return 0==this.gc()},xKe.zc=function(e,t){return mw()},xKe.Bc=function(e){throw jv(new gA)},xKe.Ib=function(){return cCe(this)},xKe.Ld=function(){return this.e?this.e:this.e=this.Kd()},xKe.c=null,xKe.d=null,xKe.e=null,mV(WKe,"ImmutableMap",714),hIe(715,714,yYe),xKe._b=function(e){return Y_(this,e)},xKe.uc=function(e){return PE(this.b,e)},xKe.Id=function(){return lde(new Zd(this))},xKe.Jd=function(){return lde(tY(this.b))},xKe.Kd=function(){return s$(),new nA(ZK(this.b))},xKe.Fb=function(e){return $E(this.b,e)},xKe.xc=function(e){return zF(this,e)},xKe.Hb=function(){return Jle(this.b.c)},xKe.dc=function(){return this.b.c.dc()},xKe.gc=function(){return this.b.c.gc()},xKe.Ib=function(){return $fe(this.b.c)},mV(WKe,"ForwardingImmutableMap",715),hIe(1974,1973,wYe),xKe.Bd=function(){return this.Md()},xKe.Cd=function(){return this.Md()},xKe.Nc=function(){return new h0(this,1)},xKe.Fb=function(e){return e===this||this.Md().Fb(e)},xKe.Hb=function(){return this.Md().Hb()},mV(WKe,"ForwardingSet",1974),hIe(1069,1974,wYe,Zd),xKe.Bd=function(){return eY(this.a.b)},xKe.Cd=function(){return eY(this.a.b)},xKe.Hc=function(e){if(rN(e,42)&&null==$H(e,42).cd())return!1;try{return BE(eY(this.a.b),e)}catch(e){if(rN(e=use(e),205))return!1;throw jv(e)}},xKe.Md=function(){return eY(this.a.b)},xKe.Qc=function(e){var t;return t=TX(eY(this.a.b),e),eY(this.a.b).b.gc()<t.length&&MV(t,eY(this.a.b).b.gc(),null),t},mV(WKe,"ForwardingImmutableMap/1",1069),hIe(1981,1980,_Ye),xKe.Kc=function(){return this.Ed()},xKe.Nc=function(){return new h0(this,1)},xKe.Fb=function(e){return QCe(this,e)},xKe.Hb=function(){return $ie(this)},mV(WKe,"ImmutableSet",1981),hIe(703,1981,_Ye),xKe.Kc=function(){return I7(new Hf(this.a.b.Kc()))},xKe.Hc=function(e){return null!=e&&NE(this.a,e)},xKe.Ic=function(e){return RE(this.a,e)},xKe.Hb=function(){return Jle(this.a.b)},xKe.dc=function(){return this.a.b.dc()},xKe.Ed=function(){return I7(new Hf(this.a.b.Kc()))},xKe.gc=function(){return this.a.b.gc()},xKe.Pc=function(){return this.a.b.Pc()},xKe.Qc=function(e){return LE(this.a,e)},xKe.Ib=function(){return $fe(this.a.b)},mV(WKe,"ForwardingImmutableSet",703),hIe(1975,1974,xYe),xKe.Bd=function(){return this.b},xKe.Cd=function(){return this.b},xKe.Md=function(){return this.b},xKe.Nc=function(){return new hC(this)},mV(WKe,"ForwardingSortedSet",1975),hIe(533,1979,yYe,OAe),xKe.Ac=function(e){_oe(this,e)},xKe.Cc=function(){return new gD(this.d||(this.d=new eh(this)))},xKe.$b=function(){f5(this)},xKe._b=function(e){return!!qie(this,e,fz(rfe(EYe,nY(fz(rfe(null==e?0:Jle(e),SYe)),15))))},xKe.uc=function(e){return Ite(this,e)},xKe.kc=function(){return new VN(this,this)},xKe.wc=function(e){$J(this,e)},xKe.xc=function(e){return sne(this,e)},xKe.ec=function(){return new mD(this)},xKe.zc=function(e,t){return hFe(this,e,t)},xKe.Bc=function(e){var t;return(t=qie(this,e,fz(rfe(EYe,nY(fz(rfe(null==e?0:Jle(e),SYe)),15)))))?(INe(this,t),t.e=null,t.c=null,t.i):null},xKe.gc=function(){return this.i},xKe.pd=function(){return new gD(this.d||(this.d=new eh(this)))},xKe.f=0,xKe.g=0,xKe.i=0,mV(WKe,"HashBiMap",533),hIe(534,1,KKe),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return u3(this)},xKe.Pb=function(){var e;if(!u3(this))throw jv(new AA);return e=this.c,this.c=e.c,this.f=e,--this.d,this.Nd(e)},xKe.Qb=function(){if(this.e.g!=this.b)throw jv(new mA);lae(!!this.f),INe(this.e,this.f),this.b=this.e.g,this.f=null},xKe.b=0,xKe.d=0,xKe.f=null,mV(WKe,"HashBiMap/Itr",534),hIe(1011,534,KKe,VN),xKe.Nd=function(e){return new dE(this,e)},mV(WKe,"HashBiMap/1",1011),hIe(1012,345,iYe,dE),xKe.cd=function(){return this.a.g},xKe.dd=function(){return this.a.i},xKe.ed=function(e){var t,n,r;return n=this.a.i,(r=fz(rfe(EYe,nY(fz(rfe(null==e?0:Jle(e),SYe)),15))))==this.a.f&&(UO(e)===UO(n)||null!=e&&Dde(e,n))?e:(Ase(!Xie(this.b.a,e,r),e),INe(this.b.a,this.a),t=new HK(this.a.g,this.a.a,e,r),Yke(this.b.a,t,this.a),this.a.e=null,this.a.c=null,this.b.b=this.b.a.g,this.b.f==this.a&&(this.b.f=t),this.a=t,n)},mV(WKe,"HashBiMap/1/MapEntry",1012),hIe(238,345,{345:1,238:1,3:1,42:1},mE),xKe.cd=function(){return this.g},xKe.dd=function(){return this.i},xKe.ed=function(e){throw jv(new gA)},mV(WKe,"ImmutableEntry",238),hIe(317,238,{345:1,317:1,238:1,3:1,42:1},HK),xKe.a=0,xKe.f=0;var Uet,Qet=mV(WKe,"HashBiMap/BiEntry",317);hIe(610,1979,yYe,eh),xKe.Ac=function(e){_oe(this,e)},xKe.Cc=function(){return new mD(this.a)},xKe.$b=function(){f5(this.a)},xKe._b=function(e){return Ite(this.a,e)},xKe.kc=function(){return new KN(this,this.a)},xKe.wc=function(e){AV(e),$J(this.a,new th(e))},xKe.xc=function(e){return zre(this,e)},xKe.ec=function(){return new gD(this)},xKe.zc=function(e,t){return C$e(this.a,e,t)},xKe.Bc=function(e){var t;return(t=Xie(this.a,e,fz(rfe(EYe,nY(fz(rfe(null==e?0:Jle(e),SYe)),15)))))?(INe(this.a,t),t.e=null,t.c=null,t.g):null},xKe.gc=function(){return this.a.i},xKe.pd=function(){return new mD(this.a)},mV(WKe,"HashBiMap/Inverse",610),hIe(1008,534,KKe,KN),xKe.Nd=function(e){return new hE(this,e)},mV(WKe,"HashBiMap/Inverse/1",1008),hIe(1009,345,iYe,hE),xKe.cd=function(){return this.a.i},xKe.dd=function(){return this.a.g},xKe.ed=function(e){var t,n,r;return r=this.a.g,(t=fz(rfe(EYe,nY(fz(rfe(null==e?0:Jle(e),SYe)),15))))==this.a.a&&(UO(e)===UO(r)||null!=e&&Dde(e,r))?e:(Ase(!qie(this.b.a.a,e,t),e),INe(this.b.a.a,this.a),n=new HK(e,t,this.a.i,this.a.f),this.a=n,Yke(this.b.a.a,n,null),this.b.b=this.b.a.a.g,r)},mV(WKe,"HashBiMap/Inverse/1/InverseEntry",1009),hIe(611,532,ZKe,gD),xKe.Kc=function(){return new oy(this.a.a)},xKe.Mc=function(e){var t;return!!(t=Xie(this.a.a,e,fz(rfe(EYe,nY(fz(rfe(null==e?0:Jle(e),SYe)),15)))))&&(INe(this.a.a,t),!0)},mV(WKe,"HashBiMap/Inverse/InverseKeySet",611),hIe(1007,534,KKe,oy),xKe.Nd=function(e){return e.i},mV(WKe,"HashBiMap/Inverse/InverseKeySet/1",1007),hIe(1010,1,{},th),xKe.Od=function(e,t){eA(this.a,e,t)},mV(WKe,"HashBiMap/Inverse/lambda$0$Type",1010),hIe(609,532,ZKe,mD),xKe.Kc=function(){return new ay(this.a)},xKe.Mc=function(e){var t;return!!(t=qie(this.a,e,fz(rfe(EYe,nY(fz(rfe(null==e?0:Jle(e),SYe)),15)))))&&(INe(this.a,t),t.e=null,t.c=null,!0)},mV(WKe,"HashBiMap/KeySet",609),hIe(1006,534,KKe,ay),xKe.Nd=function(e){return e.g},mV(WKe,"HashBiMap/KeySet/1",1006),hIe(1093,619,VKe),mV(WKe,"HashMultimapGwtSerializationDependencies",1093),hIe(265,1093,VKe,gJ),xKe.hc=function(){return new dx(ete(this.a))},xKe.gd=function(){return new dx(ete(this.a))},xKe.a=2,mV(WKe,"HashMultimap",265),hIe(1999,152,AYe),xKe.Hc=function(e){return this.Pd().Hc(e)},xKe.dc=function(){return this.Pd().dc()},xKe.gc=function(){return this.Pd().gc()},mV(WKe,"ImmutableAsList",1999),hIe(1931,715,yYe),xKe.Ld=function(){return s$(),new Aw(this.a)},xKe.Cc=function(){return s$(),new Aw(this.a)},xKe.pd=function(){return s$(),new Aw(this.a)},mV(WKe,"ImmutableBiMap",1931),hIe(1977,1,{}),mV(WKe,"ImmutableCollection/Builder",1977),hIe(1022,703,_Ye,sy),mV(WKe,"ImmutableEnumSet",1022),hIe(969,386,GKe,dF),xKe.Xb=function(e){return this.a.Xb(e)},mV(WKe,"ImmutableList/1",969),hIe(968,1977,{},sP),mV(WKe,"ImmutableList/Builder",968),hIe(614,198,zKe,nh),xKe.Ob=function(){return this.a.Ob()},xKe.Pb=function(){return $H(this.a.Pb(),42).cd()},mV(WKe,"ImmutableMap/1",614),hIe(1041,1,{},l),xKe.Kb=function(e){return $H(e,42).cd()},mV(WKe,"ImmutableMap/2methodref$getKey$Type",1041),hIe(1040,1,{},lP),mV(WKe,"ImmutableMap/Builder",1040),hIe(2e3,1981,_Ye),xKe.Kc=function(){return new nh(uW(this.a).Ed())},xKe.Dd=function(){return new oA(this)},xKe.Jc=function(e){var t,n;for(AV(e),n=this.gc(),t=0;t<n;t++)e.td($H(hW(uW(this.a)).Xb(t),42).cd())},xKe.Ed=function(){var e;return(e=this.c,e||(this.c=new oA(this))).Ed()},xKe.Nc=function(){return AQ(this.gc(),1296,new ih(this))},mV(WKe,"IndexedImmutableSet",2e3),hIe(1180,2e3,_Ye,rA),xKe.Kc=function(){return new nh(uW(this.a).Ed())},xKe.Hc=function(e){return this.a._b(e)},xKe.Jc=function(e){AV(e),Joe(this.a,new rh(e))},xKe.Ed=function(){return new nh(uW(this.a).Ed())},xKe.gc=function(){return this.a.gc()},xKe.Nc=function(){return LH(uW(this.a).Nc(),new l)},mV(WKe,"ImmutableMapKeySet",1180),hIe(1181,1,{},rh),xKe.Od=function(e,t){s$(),this.a.td(e)},mV(WKe,"ImmutableMapKeySet/lambda$0$Type",1181),hIe(1178,1980,vYe,iA),xKe.Kc=function(){return new BU(this)},xKe.Hc=function(e){return null!=e&&S_e(new BU(this),e)},xKe.Ed=function(){return new BU(this)},xKe.gc=function(){return this.a.gc()},xKe.Nc=function(){return LH(uW(this.a).Nc(),new c)},mV(WKe,"ImmutableMapValues",1178),hIe(1179,1,{},c),xKe.Kb=function(e){return $H(e,42).dd()},mV(WKe,"ImmutableMapValues/0methodref$getValue$Type",1179),hIe(626,198,zKe,BU),xKe.Ob=function(){return this.a.Ob()},xKe.Pb=function(){return $H(this.a.Pb(),42).dd()},mV(WKe,"ImmutableMapValues/1",626),hIe(1182,1,{},ih),xKe.ld=function(e){return jG(this.a,e)},mV(WKe,"IndexedImmutableSet/0methodref$get$Type",1182),hIe(752,1999,AYe,oA),xKe.Pd=function(){return this.a},xKe.Xb=function(e){return jG(this.a,e)},xKe.gc=function(){return this.a.a.gc()},mV(WKe,"IndexedImmutableSet/1",752),hIe(44,1,{},u),xKe.Kb=function(e){return $H(e,20).Kc()},xKe.Fb=function(e){return this===e},mV(WKe,"Iterables/10",44),hIe(1042,537,gYe,PU),xKe.Jc=function(e){AV(e),this.b.Jc(new fE(this.a,e))},xKe.Kc=function(){return HI(this)},mV(WKe,"Iterables/4",1042),hIe(1043,1,uYe,fE),xKe.td=function(e){_C(this.b,this.a,e)},mV(WKe,"Iterables/4/lambda$0$Type",1043),hIe(1044,537,gYe,FU),xKe.Jc=function(e){AV(e),e5(this.a,new cE(e,this.b))},xKe.Kc=function(){return XN(new ON(this.a),this.b)},mV(WKe,"Iterables/5",1044),hIe(1045,1,uYe,cE),xKe.td=function(e){this.a.td(AI(e))},mV(WKe,"Iterables/5/lambda$0$Type",1045),hIe(1071,198,zKe,oh),xKe.Ob=function(){return this.a.Ob()},xKe.Pb=function(){return this.a.Pb()},mV(WKe,"Iterators/1",1071),hIe(1072,699,zKe,uE),xKe.Yb=function(){for(var e;this.b.Ob();)if(e=this.b.Pb(),this.a.Lb(e))return e;return this.e=2,null},mV(WKe,"Iterators/5",1072),hIe(487,1,KKe),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return this.b.Ob()},xKe.Pb=function(){return this.Qd(this.b.Pb())},xKe.Qb=function(){this.b.Qb()},mV(WKe,"TransformedIterator",487),hIe(1073,487,KKe,JN),xKe.Qd=function(e){return this.a.Kb(e)},mV(WKe,"Iterators/6",1073),hIe(717,198,zKe,ah),xKe.Ob=function(){return!this.a},xKe.Pb=function(){if(this.a)throw jv(new AA);return this.a=!0,this.b},xKe.a=!1,mV(WKe,"Iterators/9",717),hIe(1070,386,GKe,cz),xKe.Xb=function(e){return this.a[this.b+e]},xKe.b=0,mV(WKe,"Iterators/ArrayItr",1070),hIe(39,1,{39:1,47:1},aW),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return fIe(this)},xKe.Pb=function(){return z5(this)},xKe.Qb=function(){lae(!!this.c),this.c.Qb(),this.c=null},mV(WKe,"Iterators/ConcatenatedIterator",39),hIe(22,1,{3:1,35:1,22:1}),xKe.wd=function(e){return Sy(this,$H(e,22))},xKe.Fb=function(e){return this===e},xKe.Hb=function(){return SR(this)},xKe.Ib=function(){return fL(this)},xKe.g=0;var zet,Wet=mV(LKe,"Enum",22);hIe(538,22,{538:1,3:1,35:1,22:1,47:1},rR),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return!1},xKe.Pb=function(){throw jv(new AA)},xKe.Qb=function(){lae(!1)};var Get,Vet=$ne(WKe,"Iterators/EmptyModifiableIterator",538,Wet,aV,nL);hIe(1834,619,VKe),mV(WKe,"LinkedHashMultimapGwtSerializationDependencies",1834),hIe(1835,1834,VKe,_ue),xKe.hc=function(){return new IR(ete(this.b))},xKe.$b=function(){hre(this),tA(this.a,this.a)},xKe.gd=function(){return new IR(ete(this.b))},xKe.ic=function(e){return new _ce(this,e,this.b)},xKe.kc=function(){return new ZN(this)},xKe.lc=function(){return new h0($H(this.g||(this.g=new Hb(this)),21),17)},xKe.ec=function(){return this.i||(this.i=new jN(this,this.c))},xKe.nc=function(){return new dy(new ZN(this))},xKe.oc=function(){return LH(new h0($H(this.g||(this.g=new Hb(this)),21),17),new d)},xKe.b=2,mV(WKe,"LinkedHashMultimap",1835),hIe(1838,1,{},d),xKe.Kb=function(e){return $H(e,42).dd()},mV(WKe,"LinkedHashMultimap/0methodref$getValue$Type",1838),hIe(824,1,KKe,ZN),xKe.Nb=function(e){cG(this,e)},xKe.Pb=function(){return mte(this)},xKe.Ob=function(){return this.a!=this.b.a},xKe.Qb=function(){lae(!!this.c),H1(this.b,this.c.g,this.c.i),this.c=null},mV(WKe,"LinkedHashMultimap/1",824),hIe(330,238,{345:1,238:1,330:1,2020:1,3:1,42:1},jK),xKe.Rd=function(){return this.f},xKe.Sd=function(e){this.c=e},xKe.Td=function(e){this.f=e},xKe.d=0;var Ket,Yet=mV(WKe,"LinkedHashMultimap/ValueEntry",330);hIe(1836,1970,{2020:1,20:1,28:1,14:1,21:1},_ce),xKe.Fc=function(e){var t,n,r,i,o;for(t=(o=fz(rfe(EYe,nY(fz(rfe(null==e?0:Jle(e),SYe)),15))))&this.b.length-1,n=i=this.b[t];n;n=n.a)if(n.d==o&&hK(n.i,e))return!1;return r=new jK(this.c,e,o,i),bw(this.d,r),r.f=this,this.d=r,tA(this.g.a.b,r),tA(r,this.g.a),this.b[t]=r,++this.f,++this.e,A_e(this),!0},xKe.$b=function(){var e,t;for(AC(this.b,null),this.f=0,e=this.a;e!=this;e=e.Rd())tA((t=$H(e,330)).b,t.e);this.a=this,this.d=this,++this.e},xKe.Hc=function(e){var t,n;for(n=fz(rfe(EYe,nY(fz(rfe(null==e?0:Jle(e),SYe)),15))),t=this.b[n&this.b.length-1];t;t=t.a)if(t.d==n&&hK(t.i,e))return!0;return!1},xKe.Jc=function(e){var t;for(AV(e),t=this.a;t!=this;t=t.Rd())e.td($H(t,330).i)},xKe.Rd=function(){return this.a},xKe.Kc=function(){return new sK(this)},xKe.Mc=function(e){return bIe(this,e)},xKe.Sd=function(e){this.d=e},xKe.Td=function(e){this.a=e},xKe.gc=function(){return this.f},xKe.e=0,xKe.f=0,mV(WKe,"LinkedHashMultimap/ValueSet",1836),hIe(1837,1,KKe,sK),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return hz(this),this.b!=this.c},xKe.Pb=function(){var e,t;if(hz(this),this.b==this.c)throw jv(new AA);return t=(e=$H(this.b,330)).i,this.d=e,this.b=e.f,t},xKe.Qb=function(){hz(this),lae(!!this.d),bIe(this.c,this.d.i),this.a=this.c.e,this.d=null},xKe.a=0,mV(WKe,"LinkedHashMultimap/ValueSet/1",1837),hIe(766,1986,VKe,SM),xKe.Zb=function(){return this.f||(this.f=new nC(this))},xKe.Fb=function(e){return yce(this,e)},xKe.cc=function(e){return new vE(this,e)},xKe.fc=function(e){return q3(this,e)},xKe.$b=function(){rV(this)},xKe._b=function(e){return jE(this,e)},xKe.ac=function(){return new nC(this)},xKe.bc=function(){return new vh(this)},xKe.qc=function(e){return new vE(this,e)},xKe.dc=function(){return!this.a},xKe.rc=function(e){return q3(this,e)},xKe.gc=function(){return this.d},xKe.c=0,xKe.d=0,mV(WKe,"LinkedListMultimap",766),hIe(52,28,IYe),xKe.ad=function(e){Pie(this,e)},xKe.Nc=function(){return new h0(this,16)},xKe.Vc=function(e,t){throw jv(new Zy("Add not supported on this list"))},xKe.Fc=function(e){return this.Vc(this.gc(),e),!0},xKe.Wc=function(e,t){var n,r,i;for(bK(t),n=!1,i=t.Kc();i.Ob();)r=i.Pb(),this.Vc(e++,r),n=!0;return n},xKe.$b=function(){this.Ud(0,this.gc())},xKe.Fb=function(e){return DIe(this,e)},xKe.Hb=function(){return Fle(this)},xKe.Xc=function(e){return dre(this,e)},xKe.Kc=function(){return new Ef(this)},xKe.Yc=function(){return this.Zc(0)},xKe.Zc=function(e){return new x2(this,e)},xKe.$c=function(e){throw jv(new Zy("Remove not supported on this list"))},xKe.Ud=function(e,t){var n,r;for(r=this.Zc(e),n=e;n<t;++n)r.Pb(),r.Qb()},xKe._c=function(e,t){throw jv(new Zy("Set not supported on this list"))},xKe.bd=function(e,t){return new s0(this,e,t)},xKe.j=0,mV(YKe,"AbstractList",52),hIe(1964,52,IYe),xKe.Vc=function(e,t){BL(this,e,t)},xKe.Wc=function(e,t){return Oce(this,e,t)},xKe.Xb=function(e){return Rve(this,e)},xKe.Kc=function(){return this.Zc(0)},xKe.$c=function(e){return Zye(this,e)},xKe._c=function(e,t){var n,r;n=this.Zc(e);try{return r=n.Pb(),n.Wb(t),r}catch(t){throw rN(t=use(t),109)?jv(new Oy("Can't set element "+e)):jv(t)}},mV(YKe,"AbstractSequentialList",1964),hIe(636,1964,IYe,vE),xKe.Zc=function(e){return mR(this,e)},xKe.gc=function(){var e;return(e=$H(LV(this.a.b,this.b),283))?e.a:0},mV(WKe,"LinkedListMultimap/1",636),hIe(1297,1970,ZKe,vh),xKe.Hc=function(e){return jE(this.a,e)},xKe.Kc=function(){return new mie(this.a)},xKe.Mc=function(e){return!q3(this.a,e).a.dc()},xKe.gc=function(){return DE(this.a.b)},mV(WKe,"LinkedListMultimap/1KeySetImpl",1297),hIe(1296,1,KKe,mie),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return dz(this),!!this.c},xKe.Pb=function(){dz(this),aR(this.c),this.a=this.c,_G(this.d,this.a.a);do{this.c=this.c.b}while(this.c&&!_G(this.d,this.c.a));return this.a.a},xKe.Qb=function(){dz(this),lae(!!this.a),CQ(new C9(this.e,this.a.a)),this.a=null,this.b=this.e.c},xKe.b=0,mV(WKe,"LinkedListMultimap/DistinctKeyIterator",1296),hIe(283,1,{283:1},sX),xKe.a=0,mV(WKe,"LinkedListMultimap/KeyList",283),hIe(1295,345,iYe,AE),xKe.cd=function(){return this.a},xKe.dd=function(){return this.f},xKe.ed=function(e){var t;return t=this.f,this.f=e,t},mV(WKe,"LinkedListMultimap/Node",1295),hIe(560,1,rYe,C9,BTe),xKe.Nb=function(e){cG(this,e)},xKe.Rb=function(e){this.e=AFe(this.f,this.b,e,this.c),++this.d,this.a=null},xKe.Ob=function(){return!!this.c},xKe.Sb=function(){return!!this.e},xKe.Pb=function(){return wZ(this)},xKe.Tb=function(){return this.d},xKe.Ub=function(){return _Z(this)},xKe.Vb=function(){return this.d-1},xKe.Qb=function(){lae(!!this.a),this.a!=this.c?(this.e=this.a.e,--this.d):this.c=this.a.c,Xke(this.f,this.a),this.a=null},xKe.Wb=function(e){oR(!!this.a),this.a.f=e},xKe.d=0,mV(WKe,"LinkedListMultimap/ValueForKeyIterator",560),hIe(1018,52,IYe),xKe.Vc=function(e,t){this.a.Vc(e,t)},xKe.Wc=function(e,t){return this.a.Wc(e,t)},xKe.Hc=function(e){return this.a.Hc(e)},xKe.Xb=function(e){return this.a.Xb(e)},xKe.$c=function(e){return this.a.$c(e)},xKe._c=function(e,t){return this.a._c(e,t)},xKe.gc=function(){return this.a.gc()},mV(WKe,"Lists/AbstractListWrapper",1018),hIe(1019,1018,NYe),mV(WKe,"Lists/RandomAccessListWrapper",1019),hIe(1021,1019,NYe,TE),xKe.Zc=function(e){return this.a.Zc(e)},mV(WKe,"Lists/1",1021),hIe(131,52,{131:1,20:1,28:1,52:1,14:1,15:1},CE),xKe.Vc=function(e,t){this.a.Vc(gG(this,e),t)},xKe.$b=function(){this.a.$b()},xKe.Xb=function(e){return this.a.Xb(IV(this,e))},xKe.Kc=function(){return G0(this,0)},xKe.Zc=function(e){return G0(this,e)},xKe.$c=function(e){return this.a.$c(IV(this,e))},xKe.Ud=function(e,t){(f2(e,t,this.a.gc()),eae(this.a.bd(gG(this,t),gG(this,e)))).$b()},xKe._c=function(e,t){return this.a._c(IV(this,e),t)},xKe.gc=function(){return this.a.gc()},xKe.bd=function(e,t){return f2(e,t,this.a.gc()),eae(this.a.bd(gG(this,t),gG(this,e)))},mV(WKe,"Lists/ReverseList",131),hIe(280,131,{131:1,20:1,28:1,52:1,14:1,15:1,54:1},cy),mV(WKe,"Lists/RandomAccessReverseList",280),hIe(1020,1,rYe,bE),xKe.Nb=function(e){cG(this,e)},xKe.Rb=function(e){this.c.Rb(e),this.c.Ub(),this.a=!1},xKe.Ob=function(){return this.c.Sb()},xKe.Sb=function(){return this.c.Ob()},xKe.Pb=function(){return h5(this)},xKe.Tb=function(){return gG(this.b,this.c.Tb())},xKe.Ub=function(){if(!this.c.Ob())throw jv(new AA);return this.a=!0,this.c.Pb()},xKe.Vb=function(){return gG(this.b,this.c.Tb())-1},xKe.Qb=function(){lae(this.a),this.c.Qb(),this.a=!1},xKe.Wb=function(e){oR(this.a),this.c.Wb(e)},xKe.a=!1,mV(WKe,"Lists/ReverseList/1",1020),hIe(432,487,KKe,uy),xKe.Qd=function(e){return rC(e)},mV(WKe,"Maps/1",432),hIe(698,487,KKe,dy),xKe.Qd=function(e){return $H(e,42).dd()},mV(WKe,"Maps/2",698),hIe(962,487,KKe,gR),xKe.Qd=function(e){return new mE(e,PM(this.a,e))},mV(WKe,"Maps/3",962),hIe(959,1971,ZKe,mh),xKe.Jc=function(e){NA(this.a,e)},xKe.Kc=function(){return this.a.kc()},xKe.Rc=function(){return this.a},xKe.Nc=function(){return this.a.lc()},mV(WKe,"Maps/IteratorBasedAbstractMap/1",959),hIe(960,1,{},gh),xKe.Od=function(e,t){this.a.td(e)},mV(WKe,"Maps/KeySet/lambda$0$Type",960),hIe(958,28,XKe,SE),xKe.$b=function(){this.a.$b()},xKe.Hc=function(e){return this.a.uc(e)},xKe.Jc=function(e){AV(e),this.a.wc(new ch(e))},xKe.dc=function(){return this.a.dc()},xKe.Kc=function(){return new dy(this.a.vc().Kc())},xKe.Mc=function(e){var t,r;try{return Ape(this,e,!0)}catch(n){if(rN(n=use(n),41)){for(r=this.a.vc().Kc();r.Ob();)if(hK(e,(t=$H(r.Pb(),42)).dd()))return this.a.Bc(t.cd()),!0;return!1}throw jv(n)}},xKe.gc=function(){return this.a.gc()},mV(WKe,"Maps/Values",958),hIe(961,1,{},ch),xKe.Od=function(e,t){this.a.td(t)},mV(WKe,"Maps/Values/lambda$0$Type",961),hIe(736,1987,qKe,nC),xKe.xc=function(e){return this.a._b(e)?this.a.cc(e):null},xKe.Bc=function(e){return this.a._b(e)?this.a.fc(e):null},xKe.$b=function(){this.a.$b()},xKe._b=function(e){return this.a._b(e)},xKe.Ec=function(){return new lh(this)},xKe.Dc=function(){return this.Ec()},xKe.dc=function(){return this.a.dc()},xKe.ec=function(){return this.a.ec()},xKe.gc=function(){return this.a.ec().gc()},mV(WKe,"Multimaps/AsMap",736),hIe(1104,1971,ZKe,lh),xKe.Kc=function(){return JD(this.a.a.ec(),new uh(this))},xKe.Rc=function(){return this.a},xKe.Mc=function(e){var t;return!!tge(this,e)&&(t=$H(e,42),yw(this.a,t.cd()),!0)},mV(WKe,"Multimaps/AsMap/EntrySet",1104),hIe(1108,1,{},uh),xKe.Kb=function(e){return PM(this,e)},xKe.Fb=function(e){return this===e},mV(WKe,"Multimaps/AsMap/EntrySet/1",1108),hIe(543,1989,{543:1,835:1,20:1,28:1,14:1},dh),xKe.$b=function(){hre(this.a)},xKe.Hc=function(e){return G_(this.a,e)},xKe.Jc=function(e){AV(e),e5(xV(this.a),new fh(e))},xKe.Kc=function(){return new uy(xV(this.a).a.kc())},xKe.gc=function(){return this.a.d},xKe.Nc=function(){return LH(xV(this.a).Nc(),new h)},mV(WKe,"Multimaps/Keys",543),hIe(1106,1,{},h),xKe.Kb=function(e){return $H(e,42).cd()},mV(WKe,"Multimaps/Keys/0methodref$getKey$Type",1106),hIe(1105,487,KKe,hy),xKe.Qd=function(e){return new hh($H(e,42))},mV(WKe,"Multimaps/Keys/1",1105),hIe(1990,1,{416:1}),xKe.Fb=function(e){var t;return!!rN(e,492)&&(t=$H(e,416),$H(this.a.dd(),14).gc()==$H(t.a.dd(),14).gc()&&hK(this.a.cd(),t.a.cd()))},xKe.Hb=function(){var e;return(null==(e=this.a.cd())?0:Jle(e))^$H(this.a.dd(),14).gc()},xKe.Ib=function(){var e,t;return t=bR(this.a.cd()),1==(e=$H(this.a.dd(),14).gc())?t:t+" x "+e},mV(WKe,"Multisets/AbstractEntry",1990),hIe(492,1990,{492:1,416:1},hh),mV(WKe,"Multimaps/Keys/1/1",492),hIe(1107,1,uYe,fh),xKe.td=function(e){this.a.td($H(e,42).cd())},mV(WKe,"Multimaps/Keys/lambda$1$Type",1107),hIe(1110,1,uYe,f),xKe.td=function(e){TQ($H(e,416))},mV(WKe,"Multiset/lambda$0$Type",1110),hIe(737,1,uYe,ph),xKe.td=function(e){Tte(this.a,$H(e,416))},mV(WKe,"Multiset/lambda$1$Type",737),hIe(1111,1,{},b),mV(WKe,"Multisets/0methodref$add$Type",1111),hIe(738,1,{},y),xKe.Kb=function(e){return s3($H(e,416))},mV(WKe,"Multisets/lambda$3$Type",738),hIe(2008,1,BKe),mV(WKe,"RangeGwtSerializationDependencies",2008),hIe(514,2008,{169:1,514:1,3:1,45:1},sAe),xKe.Lb=function(e){return xW(this,$H(e,35))},xKe.Mb=function(e){return xW(this,$H(e,35))},xKe.Fb=function(e){var t;return!!rN(e,514)&&(t=$H(e,514),Nge(this.a,t.a)&&Nge(this.b,t.b))},xKe.Hb=function(){return 31*this.a.Hb()+this.b.Hb()},xKe.Ib=function(){return $3(this.a,this.b)},mV(WKe,"Range",514),hIe(778,1999,AYe,iG),xKe.Zc=function(e){return tL(this.b,e)},xKe.Pd=function(){return this.a},xKe.Xb=function(e){return GO(this.b,e)},xKe.Fd=function(e){return tL(this.b,e)},mV(WKe,"RegularImmutableAsList",778),hIe(646,2006,AYe,EX),xKe.Hd=function(){return this.a},mV(WKe,"RegularImmutableList",646),hIe(616,715,yYe,ly),mV(WKe,"RegularImmutableMap",616),hIe(716,703,_Ye,mC),mV(WKe,"RegularImmutableSet",716),hIe(1976,JKe,ZKe),xKe.Kc=function(){return new EY(this.a,this.b)},xKe.Fc=function(e){throw jv(new gA)},xKe.Gc=function(e){throw jv(new gA)},xKe.$b=function(){throw jv(new gA)},xKe.Mc=function(e){throw jv(new gA)},mV(WKe,"Sets/SetView",1976),hIe(963,1976,ZKe,wE),xKe.Kc=function(){return new EY(this.a,this.b)},xKe.Hc=function(e){return Cz(this.a,e)&&this.b.Hc(e)},xKe.Ic=function(e){return ase(this.a,e)&&this.b.Ic(e)},xKe.dc=function(){return Bve(this.b,this.a)},xKe.Lc=function(){return OY(new LQ(null,new h0(this.a,1)),new bh(this.b))},xKe.gc=function(){return Cae(this)},xKe.Oc=function(){return OY(new LQ(null,new h0(this.a,1)),new Ah(this.b))},mV(WKe,"Sets/2",963),hIe(700,699,zKe,EY),xKe.Yb=function(){for(var e;bD(this.a);)if(e=o4(this.a),this.c.Hc(e))return e;return this.e=2,null},mV(WKe,"Sets/2/1",700),hIe(964,1,RYe,Ah),xKe.Mb=function(e){return this.a.Hc(e)},mV(WKe,"Sets/2/4methodref$contains$Type",964),hIe(965,1,RYe,bh),xKe.Mb=function(e){return this.a.Hc(e)},mV(WKe,"Sets/2/5methodref$contains$Type",965),hIe(607,1975,{607:1,3:1,20:1,14:1,271:1,21:1,84:1},dJ),xKe.Bd=function(){return this.b},xKe.Cd=function(){return this.b},xKe.Md=function(){return this.b},xKe.Jc=function(e){this.a.Jc(e)},xKe.Lc=function(){return this.a.Lc()},xKe.Oc=function(){return this.a.Oc()},mV(WKe,"Sets/UnmodifiableNavigableSet",607),hIe(1932,1931,yYe,UK),xKe.Ld=function(){return s$(),new Aw(this.a)},xKe.Cc=function(){return s$(),new Aw(this.a)},xKe.pd=function(){return s$(),new Aw(this.a)},mV(WKe,"SingletonImmutableBiMap",1932),hIe(647,2006,AYe,SQ),xKe.Hd=function(){return this.a},mV(WKe,"SingletonImmutableList",647),hIe(350,1981,_Ye,Aw),xKe.Kc=function(){return new ah(this.a)},xKe.Hc=function(e){return Dde(this.a,e)},xKe.Ed=function(){return new ah(this.a)},xKe.gc=function(){return 1},mV(WKe,"SingletonImmutableSet",350),hIe(1115,1,{},w),xKe.Kb=function(e){return $H(e,164)},mV(WKe,"Streams/lambda$0$Type",1115),hIe(1116,1,LYe,yh),xKe.Vd=function(){$5(this.a)},mV(WKe,"Streams/lambda$1$Type",1116),hIe(1659,1658,VKe,gX),xKe.Zb=function(){return $H($H(this.f||(this.f=rN(this.c,171)?new TB(this,$H(this.c,171)):rN(this.c,161)?new CB(this,$H(this.c,161)):new gE(this,this.c)),161),171)},xKe.hc=function(){return new fx(this.b)},xKe.gd=function(){return new fx(this.b)},xKe.ec=function(){return $H($H(this.i||(this.i=rN(this.c,171)?new Zx(this,$H(this.c,171)):rN(this.c,161)?new Jx(this,$H(this.c,161)):new jN(this,this.c)),84),271)},xKe.ac=function(){return rN(this.c,171)?new TB(this,$H(this.c,171)):rN(this.c,161)?new CB(this,$H(this.c,161)):new gE(this,this.c)},xKe.ic=function(e){return null==e&&this.a.ue(e,e),new fx(this.b)},mV(WKe,"TreeMultimap",1659),hIe(78,1,{3:1,78:1}),xKe.Wd=function(e){return new Error(e)},xKe.Xd=function(){return this.e},xKe.Yd=function(){return Ppe(MY(IG((null==this.k&&(this.k=N8(Xet,sYe,78,0,0,1)),this.k)),new L))},xKe.Zd=function(){return this.f},xKe.$d=function(){return this.g},xKe._d=function(){Ay(this,d2(this.Wd(CX(this,this.g)))),aA(this)},xKe.Ib=function(){return CX(this,this.$d())},xKe.e=FYe,xKe.i=!1,xKe.n=!0;var qet,Xet=mV(LKe,"Throwable",78);hIe(102,78,{3:1,102:1,78:1}),mV(LKe,"Exception",102),hIe(60,102,$Ye,sA,fy),mV(LKe,"RuntimeException",60),hIe(598,60,$Ye),mV(LKe,"JsException",598),hIe(863,598,$Ye),mV(jYe,"JavaScriptExceptionBase",863),hIe(477,863,{477:1,3:1,102:1,60:1,78:1},yue),xKe.$d=function(){return gxe(this),this.c},xKe.ae=function(){return UO(this.b)===UO(qet)?null:this.b},mV(UYe,"JavaScriptException",477);var Jet,Zet=mV(UYe,"JavaScriptObject$",0);hIe(1948,1,{}),mV(UYe,"Scheduler",1948);var ett,ttt,ntt,rtt,itt=0,ott=0,att=-1;hIe(890,1948,{},_),mV(jYe,"SchedulerImpl",890),hIe(1960,1,{}),mV(jYe,"StackTraceCreator/Collector",1960),hIe(864,1960,{},x),xKe.be=function(e){var t={},n=[];e[zYe]=n;for(var r=arguments.callee.caller;r;){var i=(SX(),r.name||(r.name=Vne(r.toString())));n.push(i);var o,a,s=":"+i,l=t[s];if(l)for(o=0,a=l.length;o<a;o++)if(l[o]===r)return;(l||(t[s]=[])).push(r),r=r.caller}},xKe.ce=function(e){var t,n,r,i;for(SX(),n=(r=e&&e[zYe]?e[zYe]:[]).length,i=N8($tt,sYe,310,n,0,1),t=0;t<n;t++)i[t]=new SY(r[t],null,-1);return i},mV(jYe,"StackTraceCreator/CollectorLegacy",864),hIe(1961,1960,{}),xKe.be=function(e){},xKe.de=function(e,t,n,r){return new SY(t,e+"@"+r,n<0?-1:n)},xKe.ce=function(e){var t,n,r,i,o,a;if(i=uye(e),o=N8($tt,sYe,310,0,0,1),t=0,0==(r=i.length))return o;for(vF((a=kQe(this,i[0])).d,QYe)||(o[t++]=a),n=1;n<r;n++)o[t++]=kQe(this,i[n]);return o},mV(jYe,"StackTraceCreator/CollectorModern",1961),hIe(865,1961,{},g),xKe.de=function(e,t,n,r){return new SY(t,e,-1)},mV(jYe,"StackTraceCreator/CollectorModernNoSourceMap",865),hIe(1050,1,{}),mV(Aqe,bqe,1050),hIe(615,1050,{615:1},QV),mV(yqe,bqe,615),hIe(2001,1,{}),mV(Aqe,wqe,2001),hIe(2002,2001,{}),mV(yqe,wqe,2002),hIe(1090,1,{},m),mV(yqe,"LocaleInfo",1090),hIe(1918,1,{},v),xKe.a=0,mV(yqe,"TimeZone",1918),hIe(1258,2002,{},p),mV("com.google.gwt.i18n.client.impl.cldr","DateTimeFormatInfoImpl",1258),hIe(434,1,{434:1},VH),xKe.a=!1,xKe.b=0,mV(Aqe,"DateTimeFormat/PatternPart",434),hIe(199,1,_qe,OE,mle,SB),xKe.wd=function(e){return q1(this,$H(e,199))},xKe.Fb=function(e){return rN(e,199)&&KO(cae(this.q.getTime()),cae($H(e,199).q.getTime()))},xKe.Hb=function(){var e;return fz(n1(e=cae(this.q.getTime()),yW(e,32)))},xKe.Ib=function(){var e,t,n;return e=((n=-this.q.getTimezoneOffset())>=0?"+":"")+(n/60|0),t=zM(r.Math.abs(n)%60),(gSe(),gnt)[this.q.getDay()]+" "+mnt[this.q.getMonth()]+" "+zM(this.q.getDate())+" "+zM(this.q.getHours())+":"+zM(this.q.getMinutes())+":"+zM(this.q.getSeconds())+" GMT"+e+t+" "+this.q.getFullYear()};var stt,ltt,ctt,utt,dtt,htt,ftt,ptt,gtt,mtt,vtt,Att=mV(YKe,"Date",199);hIe(1915,199,_qe,Ywe),xKe.a=!1,xKe.b=0,xKe.c=0,xKe.d=0,xKe.e=0,xKe.f=0,xKe.g=!1,xKe.i=0,xKe.j=0,xKe.k=0,xKe.n=0,xKe.o=0,xKe.p=0,mV("com.google.gwt.i18n.shared.impl","DateRecord",1915),hIe(1966,1,{}),xKe.fe=function(){return null},xKe.ge=function(){return null},xKe.he=function(){return null},xKe.ie=function(){return null},xKe.je=function(){return null},mV(xqe,"JSONValue",1966),hIe(216,1966,{216:1},Sh,wh),xKe.Fb=function(e){return!!rN(e,216)&&m1(this.a,$H(e,216).a)},xKe.ee=function(){return Hv},xKe.Hb=function(){return Zq(this.a)},xKe.fe=function(){return this},xKe.Ib=function(){var e,t,n;for(n=new uR("["),t=0,e=this.a.length;t<e;t++)t>0&&(n.a+=","),oM(n,fee(this,t));return n.a+="]",n.a},mV(xqe,"JSONArray",216),hIe(483,1966,{483:1},_h),xKe.ee=function(){return Uv},xKe.ge=function(){return this},xKe.Ib=function(){return lR(),""+this.a},xKe.a=!1,mV(xqe,"JSONBoolean",483),hIe(985,60,$Ye,py),mV(xqe,"JSONException",985),hIe(1023,1966,{},A),xKe.ee=function(){return Vv},xKe.Ib=function(){return QKe},mV(xqe,"JSONNull",1023),hIe(258,1966,{258:1},xh),xKe.Fb=function(e){return!!rN(e,258)&&this.a==$H(e,258).a},xKe.ee=function(){return Qv},xKe.Hb=function(){return VM(this.a)},xKe.he=function(){return this},xKe.Ib=function(){return this.a+""},xKe.a=0,mV(xqe,"JSONNumber",258),hIe(183,1966,{183:1},gy,Eh),xKe.Fb=function(e){return!!rN(e,183)&&m1(this.a,$H(e,183).a)},xKe.ee=function(){return zv},xKe.Hb=function(){return Zq(this.a)},xKe.ie=function(){return this},xKe.Ib=function(){var e,t,n,r,i,o;for(o=new uR("{"),e=!0,r=0,i=(n=yie(this,N8(Ytt,sYe,2,0,6,1))).length;r<i;++r)t=n[r],e?e=!1:o.a+=FKe,aM(o,vMe(t)),o.a+=":",oM(o,QJ(this,t));return o.a+="}",o.a},mV(xqe,"JSONObject",183),hIe(596,JKe,ZKe,_E),xKe.Hc=function(e){return WO(e)&&Qw(this.a,EB(e))},xKe.Kc=function(){return new Ef(new qy(this.b))},xKe.gc=function(){return this.b.length},mV(xqe,"JSONObject/1",596),hIe(204,1966,{204:1},UV),xKe.Fb=function(e){return!!rN(e,204)&&vF(this.a,$H(e,204).a)},xKe.ee=function(){return Wv},xKe.Hb=function(){return mAe(this.a)},xKe.je=function(){return this},xKe.Ib=function(){return vMe(this.a)},mV(xqe,"JSONString",204),hIe(1962,1,{525:1}),mV(Iqe,"OutputStream",1962),hIe(1963,1962,{525:1}),mV(Iqe,"FilterOutputStream",1963),hIe(866,1963,{525:1},I),mV(Iqe,"PrintStream",866),hIe(418,1,{475:1}),xKe.Ib=function(){return this.a},mV(LKe,"AbstractStringBuilder",418),hIe(529,60,$Ye,ky),mV(LKe,"ArithmeticException",529),hIe(73,60,Dqe,cA,Oy),mV(LKe,"IndexOutOfBoundsException",73),hIe(320,73,{3:1,320:1,102:1,73:1,60:1,78:1},EA,_w),mV(LKe,"ArrayIndexOutOfBoundsException",320),hIe(528,60,$Ye,uA,My),mV(LKe,"ArrayStoreException",528),hIe(289,78,Nqe,Iy),mV(LKe,"Error",289),hIe(194,289,Nqe,lA,p5),mV(LKe,"AssertionError",194),CKe={3:1,476:1,35:1};var btt,ytt=mV(LKe,"Boolean",476);hIe(236,1,{3:1,236:1}),mV(LKe,"Number",236),hIe(217,236,{3:1,217:1,35:1,236:1},Mf),xKe.wd=function(e){return Fw(this,$H(e,217))},xKe.ke=function(){return this.a},xKe.Fb=function(e){return rN(e,217)&&$H(e,217).a==this.a},xKe.Hb=function(){return this.a},xKe.Ib=function(){return""+this.a},xKe.a=0;var wtt,_tt,xtt=mV(LKe,"Byte",217);hIe(172,1,{3:1,172:1,35:1},If),xKe.wd=function(e){return $w(this,$H(e,172))},xKe.Fb=function(e){return rN(e,172)&&$H(e,172).a==this.a},xKe.Hb=function(){return this.a},xKe.Ib=function(){return String.fromCharCode(this.a)},xKe.a=0;var Ett,Stt=mV(LKe,"Character",172);hIe(205,60,{3:1,205:1,102:1,60:1,78:1},dA,By),mV(LKe,"ClassCastException",205),TKe={3:1,35:1,333:1,236:1};var Ctt=mV(LKe,"Double",333);hIe(155,236,{3:1,35:1,155:1,236:1},Df,RA),xKe.wd=function(e){return $M(this,$H(e,155))},xKe.ke=function(){return this.a},xKe.Fb=function(e){return rN(e,155)&&mF(this.a,$H(e,155).a)},xKe.Hb=function(){return CJ(this.a)},xKe.Ib=function(){return""+this.a},xKe.a=0;var Ttt=mV(LKe,"Float",155);hIe(32,60,{3:1,102:1,32:1,60:1,78:1},hA,Py,Fce),mV(LKe,"IllegalArgumentException",32),hIe(71,60,$Ye,fA,Fy),mV(LKe,"IllegalStateException",71),hIe(19,236,{3:1,35:1,19:1,236:1},Nf),xKe.wd=function(e){return jM(this,$H(e,19))},xKe.ke=function(){return this.a},xKe.Fb=function(e){return rN(e,19)&&$H(e,19).a==this.a},xKe.Hb=function(){return this.a},xKe.Ib=function(){return""+this.a},xKe.a=0;var ktt,Ott,Mtt=mV(LKe,"Integer",19);hIe(162,236,{3:1,35:1,162:1,236:1},Rf),xKe.wd=function(e){return HM(this,$H(e,162))},xKe.ke=function(){return y2(this.a)},xKe.Fb=function(e){return rN(e,162)&&KO($H(e,162).a,this.a)},xKe.Hb=function(){return fz(this.a)},xKe.Ib=function(){return""+mW(this.a)},xKe.a=0;var Itt,Dtt,Ntt,Rtt,Ltt,Btt=mV(LKe,"Long",162);hIe(2039,1,{}),hIe(1831,60,$Ye,$y),mV(LKe,"NegativeArraySizeException",1831),hIe(173,598,{3:1,102:1,173:1,60:1,78:1},pA,jy),xKe.Wd=function(e){return new TypeError(e)},mV(LKe,"NullPointerException",173),hIe(127,32,{3:1,102:1,32:1,127:1,60:1,78:1},xw),mV(LKe,"NumberFormatException",127),hIe(184,236,{3:1,35:1,236:1,184:1},Lf),xKe.wd=function(e){return jw(this,$H(e,184))},xKe.ke=function(){return this.a},xKe.Fb=function(e){return rN(e,184)&&$H(e,184).a==this.a},xKe.Hb=function(){return this.a},xKe.Ib=function(){return""+this.a},xKe.a=0;var Ptt,Ftt=mV(LKe,"Short",184);hIe(310,1,{3:1,310:1},SY),xKe.Fb=function(e){var t;return!!rN(e,310)&&(t=$H(e,310),this.c==t.c&&this.d==t.d&&this.a==t.a&&this.b==t.b)},xKe.Hb=function(){return cue(Sse(Uw(Met,1),jKe,1,5,[the(this.c),this.a,this.d,this.b]))},xKe.Ib=function(){return this.a+"."+this.d+"("+(null!=this.b?this.b:"Unknown Source")+(this.c>=0?":"+this.c:"")+")"},xKe.c=0;var $tt=mV(LKe,"StackTraceElement",310);kKe={3:1,475:1,35:1,2:1};var jtt,Htt,Utt,Qtt,ztt,Wtt,Gtt,Vtt,Ktt,Ytt=mV(LKe,HYe,2);hIe(107,418,{475:1},Ew,Sw,cR),mV(LKe,"StringBuffer",107),hIe(100,418,{475:1},Cw,Tw,uR),mV(LKe,"StringBuilder",100),hIe(687,73,Dqe,kw),mV(LKe,"StringIndexOutOfBoundsException",687),hIe(2043,1,{}),hIe(844,1,{},L),xKe.Kb=function(e){return $H(e,78).e},mV(LKe,"Throwable/lambda$0$Type",844),hIe(41,60,{3:1,102:1,60:1,78:1,41:1},gA,Zy),mV(LKe,"UnsupportedOperationException",41),hIe(240,236,{3:1,35:1,236:1,240:1},bee,hx),xKe.wd=function(e){return q$e(this,$H(e,240))},xKe.ke=function(){return dCe(eQe(this))},xKe.Fb=function(e){var t;return this===e||!!rN(e,240)&&(t=$H(e,240),this.e==t.e&&0==q$e(this,t))},xKe.Hb=function(){var e;return 0!=this.b?this.b:this.a<54?(e=cae(this.f),this.b=fz(e1(e,-1)),this.b=33*this.b+fz(e1(bW(e,32),-1)),this.b=17*this.b+CJ(this.e),this.b):(this.b=17*Bue(this.c)+CJ(this.e),this.b)},xKe.Ib=function(){return eQe(this)},xKe.a=0,xKe.b=0,xKe.d=0,xKe.e=0,xKe.f=0;var qtt,Xtt,Jtt,Ztt,ent,tnt,nnt=mV("java.math","BigDecimal",240);hIe(91,236,{3:1,35:1,236:1,91:1},Lve,W6,uG,mxe,Cme,MI),xKe.wd=function(e){return Zge(this,$H(e,91))},xKe.ke=function(){return dCe(HVe(this,0))},xKe.Fb=function(e){return spe(this,e)},xKe.Hb=function(){return Bue(this)},xKe.Ib=function(){return HVe(this,0)},xKe.b=-2,xKe.c=0,xKe.d=0,xKe.e=0;var rnt,int,ont,ant,snt=mV("java.math","BigInteger",91);hIe(488,1967,qKe),xKe.$b=function(){MG(this)},xKe._b=function(e){return lG(this,e)},xKe.uc=function(e){return Ice(this,e,this.g)||Ice(this,e,this.f)},xKe.vc=function(){return new Sf(this)},xKe.xc=function(e){return LV(this,e)},xKe.zc=function(e,t){return VK(this,e,t)},xKe.Bc=function(e){return m6(this,e)},xKe.gc=function(){return DE(this)},mV(YKe,"AbstractHashMap",488),hIe(261,JKe,ZKe,Sf),xKe.$b=function(){this.a.$b()},xKe.Hc=function(e){return v2(this,e)},xKe.Kc=function(){return new oce(this.a)},xKe.Mc=function(e){var t;return!!v2(this,e)&&(t=$H(e,42).cd(),this.a.Bc(t),!0)},xKe.gc=function(){return this.a.gc()},mV(YKe,"AbstractHashMap/EntrySet",261),hIe(262,1,KKe,oce),xKe.Nb=function(e){cG(this,e)},xKe.Pb=function(){return Zte(this)},xKe.Ob=function(){return this.b},xKe.Qb=function(){a7(this)},xKe.b=!1,mV(YKe,"AbstractHashMap/EntrySetIterator",262),hIe(417,1,KKe,Ef),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return iC(this)},xKe.Pb=function(){return vq(this)},xKe.Qb=function(){cK(this)},xKe.b=0,xKe.c=-1,mV(YKe,"AbstractList/IteratorImpl",417),hIe(96,417,rYe,x2),xKe.Qb=function(){cK(this)},xKe.Rb=function(e){AP(this,e)},xKe.Sb=function(){return this.b>0},xKe.Tb=function(){return this.b},xKe.Ub=function(){return SL(this.b>0),this.a.Xb(this.c=--this.b)},xKe.Vb=function(){return this.b-1},xKe.Wb=function(e){xL(-1!=this.c),this.a._c(this.c,e)},mV(YKe,"AbstractList/ListIteratorImpl",96),hIe(219,52,IYe,s0),xKe.Vc=function(e,t){IZ(e,this.b),this.c.Vc(this.a+e,t),++this.b},xKe.Xb=function(e){return u0(e,this.b),this.c.Xb(this.a+e)},xKe.$c=function(e){var t;return u0(e,this.b),t=this.c.$c(this.a+e),--this.b,t},xKe._c=function(e,t){return u0(e,this.b),this.c._c(this.a+e,t)},xKe.gc=function(){return this.b},xKe.a=0,xKe.b=0,mV(YKe,"AbstractList/SubList",219),hIe(384,JKe,ZKe,Cf),xKe.$b=function(){this.a.$b()},xKe.Hc=function(e){return this.a._b(e)},xKe.Kc=function(){return new Tf(this.a.vc().Kc())},xKe.Mc=function(e){return!!this.a._b(e)&&(this.a.Bc(e),!0)},xKe.gc=function(){return this.a.gc()},mV(YKe,"AbstractMap/1",384),hIe(691,1,KKe,Tf),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return this.a.Ob()},xKe.Pb=function(){return $H(this.a.Pb(),42).cd()},xKe.Qb=function(){this.a.Qb()},mV(YKe,"AbstractMap/1/1",691),hIe(226,28,XKe,kf),xKe.$b=function(){this.a.$b()},xKe.Hc=function(e){return this.a.uc(e)},xKe.Kc=function(){return new Bf(this.a.vc().Kc())},xKe.gc=function(){return this.a.gc()},mV(YKe,"AbstractMap/2",226),hIe(294,1,KKe,Bf),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return this.a.Ob()},xKe.Pb=function(){return $H(this.a.Pb(),42).dd()},xKe.Qb=function(){this.a.Qb()},mV(YKe,"AbstractMap/2/1",294),hIe(484,1,{484:1,42:1}),xKe.Fb=function(e){var t;return!!rN(e,42)&&(t=$H(e,42),rY(this.d,t.cd())&&rY(this.e,t.dd()))},xKe.cd=function(){return this.d},xKe.dd=function(){return this.e},xKe.Hb=function(){return BI(this.d)^BI(this.e)},xKe.ed=function(e){return gP(this,e)},xKe.Ib=function(){return this.d+"="+this.e},mV(YKe,"AbstractMap/AbstractEntry",484),hIe(383,484,{484:1,383:1,42:1},SC),mV(YKe,"AbstractMap/SimpleEntry",383),hIe(1984,1,Vqe),xKe.Fb=function(e){var t;return!!rN(e,42)&&(t=$H(e,42),rY(this.cd(),t.cd())&&rY(this.dd(),t.dd()))},xKe.Hb=function(){return BI(this.cd())^BI(this.dd())},xKe.Ib=function(){return this.cd()+"="+this.dd()},mV(YKe,oYe,1984),hIe(1992,1967,eYe),xKe.tc=function(e){return H5(this,e)},xKe._b=function(e){return RF(this,e)},xKe.vc=function(){return new $f(this)},xKe.xc=function(e){return HO(uce(this,e))},xKe.ec=function(){return new Pf(this)},mV(YKe,"AbstractNavigableMap",1992),hIe(739,JKe,ZKe,$f),xKe.Hc=function(e){return rN(e,42)&&H5(this.b,$H(e,42))},xKe.Kc=function(){return new $P(this.b)},xKe.Mc=function(e){var t;return!!rN(e,42)&&(t=$H(e,42),Q8(this.b,t))},xKe.gc=function(){return this.b.c},mV(YKe,"AbstractNavigableMap/EntrySet",739),hIe(493,JKe,nYe,Pf),xKe.Nc=function(){return new hC(this)},xKe.$b=function(){vy(this.a)},xKe.Hc=function(e){return RF(this.a,e)},xKe.Kc=function(){return new Ff(new $P(new NR(this.a).b))},xKe.Mc=function(e){return!!RF(this.a,e)&&(MJ(this.a,e),!0)},xKe.gc=function(){return this.a.c},mV(YKe,"AbstractNavigableMap/NavigableKeySet",493),hIe(494,1,KKe,Ff),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return iC(this.a.a)},xKe.Pb=function(){return vL(this.a).cd()},xKe.Qb=function(){e$(this.a)},mV(YKe,"AbstractNavigableMap/NavigableKeySet/1",494),hIe(2004,28,XKe),xKe.Fc=function(e){return F8(eSe(this,e)),!0},xKe.Gc=function(e){return bK(e),mU(e!=this,"Can't add a queue to itself"),Fie(this,e)},xKe.$b=function(){for(;null!=vee(this););},mV(YKe,"AbstractQueue",2004),hIe(302,28,{4:1,20:1,28:1,14:1},Iv,f0),xKe.Fc=function(e){return h3(this,e),!0},xKe.$b=function(){a4(this)},xKe.Hc=function(e){return hse(new dY(this),e)},xKe.dc=function(){return Gy(this)},xKe.Kc=function(){return new dY(this)},xKe.Mc=function(e){return UJ(new dY(this),e)},xKe.gc=function(){return this.c-this.b&this.a.length-1},xKe.Nc=function(){return new h0(this,272)},xKe.Qc=function(e){var t;return t=this.c-this.b&this.a.length-1,e.length<t&&(e=Hw(new Array(t),e)),oie(this,e,t),e.length>t&&MV(e,t,null),e},xKe.b=0,xKe.c=0,mV(YKe,"ArrayDeque",302),hIe(446,1,KKe,dY),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return this.a!=this.b},xKe.Pb=function(){return Pue(this)},xKe.Qb=function(){ere(this)},xKe.a=0,xKe.b=0,xKe.c=-1,mV(YKe,"ArrayDeque/IteratorImpl",446),hIe(12,52,Kqe,Dv,q6,ZF),xKe.Vc=function(e,t){bz(this,e,t)},xKe.Fc=function(e){return GH(this,e)},xKe.Wc=function(e,t){return aue(this,e,t)},xKe.Gc=function(e){return pse(this,e)},xKe.$b=function(){this.c=N8(Met,jKe,1,0,5,1)},xKe.Hc=function(e){return-1!=w9(this,e,0)},xKe.Jc=function(e){kte(this,e)},xKe.Xb=function(e){return NQ(this,e)},xKe.Xc=function(e){return w9(this,e,0)},xKe.dc=function(){return 0==this.c.length},xKe.Kc=function(){return new Gf(this)},xKe.$c=function(e){return s6(this,e)},xKe.Mc=function(e){return A9(this,e)},xKe.Ud=function(e,t){l0(this,e,t)},xKe._c=function(e,t){return r5(this,e,t)},xKe.gc=function(){return this.c.length},xKe.ad=function(e){vD(this,e)},xKe.Pc=function(){return dL(this)},xKe.Qc=function(e){return Kme(this,e)};var lnt,cnt,unt,dnt,hnt,fnt,pnt,gnt,mnt,vnt=mV(YKe,"ArrayList",12);hIe(7,1,KKe,Gf),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return AD(this)},xKe.Pb=function(){return J0(this)},xKe.Qb=function(){OG(this)},xKe.a=0,xKe.b=-1,mV(YKe,"ArrayList/1",7),hIe(2013,r.Function,{},E),xKe.te=function(e,t){return She(e,t)},hIe(154,52,Yqe,qy),xKe.Hc=function(e){return-1!=dre(this,e)},xKe.Jc=function(e){var t,n,r,i;for(bK(e),r=0,i=(n=this.a).length;r<i;++r)t=n[r],e.td(t)},xKe.Xb=function(e){return RQ(this,e)},xKe._c=function(e,t){var n;return u0(e,this.a.length),n=this.a[e],MV(this.a,e,t),n},xKe.gc=function(){return this.a.length},xKe.ad=function(e){Az(this.a,this.a.length,e)},xKe.Pc=function(){return Yme(this,N8(Met,jKe,1,this.a.length,5,1))},xKe.Qc=function(e){return Yme(this,e)},mV(YKe,"Arrays/ArrayList",154),hIe(940,52,Yqe,C),xKe.Hc=function(e){return!1},xKe.Xb=function(e){return AM(e)},xKe.Kc=function(){return Eq(),IE(),dnt},xKe.Yc=function(){return Eq(),IE(),dnt},xKe.gc=function(){return 0},mV(YKe,"Collections/EmptyList",940),hIe(941,1,rYe,T),xKe.Nb=function(e){cG(this,e)},xKe.Rb=function(e){throw jv(new gA)},xKe.Ob=function(){return!1},xKe.Sb=function(){return!1},xKe.Pb=function(){throw jv(new AA)},xKe.Tb=function(){return 0},xKe.Ub=function(){throw jv(new AA)},xKe.Vb=function(){return-1},xKe.Qb=function(){throw jv(new fA)},xKe.Wb=function(e){throw jv(new fA)},mV(YKe,"Collections/EmptyListIterator",941),hIe(943,1967,yYe,k),xKe._b=function(e){return!1},xKe.uc=function(e){return!1},xKe.vc=function(){return Eq(),unt},xKe.xc=function(e){return null},xKe.ec=function(){return Eq(),unt},xKe.gc=function(){return 0},xKe.Cc=function(){return Eq(),lnt},mV(YKe,"Collections/EmptyMap",943),hIe(942,JKe,_Ye,S),xKe.Hc=function(e){return!1},xKe.Kc=function(){return Eq(),IE(),dnt},xKe.gc=function(){return 0},mV(YKe,"Collections/EmptySet",942),hIe(599,52,{3:1,20:1,28:1,52:1,14:1,15:1},Uf),xKe.Hc=function(e){return rY(this.a,e)},xKe.Xb=function(e){return u0(e,1),this.a},xKe.gc=function(){return 1},mV(YKe,"Collections/SingletonList",599),hIe(372,1,mYe,jf),xKe.Jc=function(e){e5(this,e)},xKe.Lc=function(){return new LQ(null,this.Nc())},xKe.Nc=function(){return new h0(this,0)},xKe.Oc=function(){return new LQ(null,this.Nc())},xKe.Fc=function(e){return ax()},xKe.Gc=function(e){return sx()},xKe.$b=function(){lx()},xKe.Hc=function(e){return NE(this,e)},xKe.Ic=function(e){return RE(this,e)},xKe.dc=function(){return this.b.dc()},xKe.Kc=function(){return new Hf(this.b.Kc())},xKe.Mc=function(e){return cx()},xKe.gc=function(){return this.b.gc()},xKe.Pc=function(){return this.b.Pc()},xKe.Qc=function(e){return LE(this,e)},xKe.Ib=function(){return $fe(this.b)},mV(YKe,"Collections/UnmodifiableCollection",372),hIe(371,1,KKe,Hf),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return this.b.Ob()},xKe.Pb=function(){return this.b.Pb()},xKe.Qb=function(){ux()},mV(YKe,"Collections/UnmodifiableCollectionIterator",371),hIe(531,372,qqe,dR),xKe.Nc=function(){return new h0(this,16)},xKe.Vc=function(e,t){throw jv(new gA)},xKe.Wc=function(e,t){throw jv(new gA)},xKe.Fb=function(e){return Dde(this.a,e)},xKe.Xb=function(e){return this.a.Xb(e)},xKe.Hb=function(){return Jle(this.a)},xKe.Xc=function(e){return this.a.Xc(e)},xKe.dc=function(){return this.a.dc()},xKe.Yc=function(){return new hR(this.a.Zc(0))},xKe.Zc=function(e){return new hR(this.a.Zc(e))},xKe.$c=function(e){throw jv(new gA)},xKe._c=function(e,t){throw jv(new gA)},xKe.ad=function(e){throw jv(new gA)},xKe.bd=function(e,t){return new dR(this.a.bd(e,t))},mV(YKe,"Collections/UnmodifiableList",531),hIe(690,371,rYe,hR),xKe.Qb=function(){ux()},xKe.Rb=function(e){throw jv(new gA)},xKe.Sb=function(){return this.a.Sb()},xKe.Tb=function(){return this.a.Tb()},xKe.Ub=function(){return this.a.Ub()},xKe.Vb=function(){return this.a.Vb()},xKe.Wb=function(e){throw jv(new gA)},mV(YKe,"Collections/UnmodifiableListIterator",690),hIe(600,1,qKe,Wf),xKe.wc=function(e){Joe(this,e)},xKe.yc=function(e,t,n){return Xhe(this,e,t,n)},xKe.$b=function(){throw jv(new gA)},xKe._b=function(e){return this.c._b(e)},xKe.uc=function(e){return PE(this,e)},xKe.vc=function(){return eY(this)},xKe.Fb=function(e){return $E(this,e)},xKe.xc=function(e){return this.c.xc(e)},xKe.Hb=function(){return Jle(this.c)},xKe.dc=function(){return this.c.dc()},xKe.ec=function(){return tY(this)},xKe.zc=function(e,t){throw jv(new gA)},xKe.Bc=function(e){throw jv(new gA)},xKe.gc=function(){return this.c.gc()},xKe.Ib=function(){return $fe(this.c)},xKe.Cc=function(){return ZK(this)},mV(YKe,"Collections/UnmodifiableMap",600),hIe(382,372,wYe,Ow),xKe.Nc=function(){return new h0(this,1)},xKe.Fb=function(e){return Dde(this.b,e)},xKe.Hb=function(){return Jle(this.b)},mV(YKe,"Collections/UnmodifiableSet",382),hIe(944,382,wYe,Iw),xKe.Hc=function(e){return BE(this,e)},xKe.Ic=function(e){return this.b.Ic(e)},xKe.Kc=function(){return new Qf(this.b.Kc())},xKe.Pc=function(){var e;return y4(e=this.b.Pc(),e.length),e},xKe.Qc=function(e){return TX(this,e)},mV(YKe,"Collections/UnmodifiableMap/UnmodifiableEntrySet",944),hIe(945,1,KKe,Qf),xKe.Nb=function(e){cG(this,e)},xKe.Pb=function(){return new zf($H(this.a.Pb(),42))},xKe.Ob=function(){return this.a.Ob()},xKe.Qb=function(){throw jv(new gA)},mV(YKe,"Collections/UnmodifiableMap/UnmodifiableEntrySet/1",945),hIe(688,1,Vqe,zf),xKe.Fb=function(e){return this.a.Fb(e)},xKe.cd=function(){return this.a.cd()},xKe.dd=function(){return this.a.dd()},xKe.Hb=function(){return this.a.Hb()},xKe.ed=function(e){throw jv(new gA)},xKe.Ib=function(){return $fe(this.a)},mV(YKe,"Collections/UnmodifiableMap/UnmodifiableEntrySet/UnmodifiableEntry",688),hIe(601,531,{20:1,14:1,15:1,54:1},Mw),mV(YKe,"Collections/UnmodifiableRandomAccessList",601),hIe(689,382,xYe,fR),xKe.Nc=function(){return new hC(this)},xKe.Fb=function(e){return Dde(this.a,e)},xKe.Hb=function(){return Jle(this.a)},mV(YKe,"Collections/UnmodifiableSortedSet",689),hIe(847,1,Xqe,B),xKe.ue=function(e,t){var n;return 0!=(n=_4($H(e,11),$H(t,11)))?n:J$e($H(e,11),$H(t,11))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(YKe,"Comparator/lambda$0$Type",847),hIe(751,1,Xqe,P),xKe.ue=function(e,t){return PQ($H(e,35),$H(t,35))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return Sq(),pnt},mV(YKe,"Comparators/NaturalOrderComparator",751),hIe(1177,1,Xqe,F),xKe.ue=function(e,t){return FQ($H(e,35),$H(t,35))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return Sq(),fnt},mV(YKe,"Comparators/ReverseNaturalOrderComparator",1177),hIe(64,1,Xqe,Jf),xKe.Fb=function(e){return this===e},xKe.ue=function(e,t){return this.a.ue(t,e)},xKe.ve=function(){return this.a},mV(YKe,"Comparators/ReversedComparator",64),hIe(166,60,$Ye,mA),mV(YKe,"ConcurrentModificationException",166),hIe(1904,1,Jqe,$),xKe.we=function(e){lge(this,e)},xKe.Ib=function(){return"DoubleSummaryStatistics[count = "+mW(this.a)+", avg = "+(aC(this.a,0)?u6(this)/y2(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+u6(this)+"]"},xKe.a=0,xKe.b=Bqe,xKe.c=Lqe,xKe.d=0,xKe.e=0,xKe.f=0,mV(YKe,"DoubleSummaryStatistics",1904),hIe(1805,60,$Ye,vA),mV(YKe,"EmptyStackException",1805),hIe(451,1967,qKe,jfe),xKe.zc=function(e,t){return hP(this,e,t)},xKe.$b=function(){_K(this)},xKe._b=function(e){return oC(this,e)},xKe.uc=function(e){var t,n;for(n=new KE(this.a);n.a<n.c.a.length;)if(t=o4(n),rY(e,this.b[t.g]))return!0;return!1},xKe.vc=function(){return new Zf(this)},xKe.xc=function(e){return aY(this,e)},xKe.Bc=function(e){return DZ(this,e)},xKe.gc=function(){return this.a.c},mV(YKe,"EnumMap",451),hIe(1352,JKe,ZKe,Zf),xKe.$b=function(){_K(this.a)},xKe.Hc=function(e){return m2(this,e)},xKe.Kc=function(){return new OQ(this.a)},xKe.Mc=function(e){var t;return!!m2(this,e)&&(t=$H(e,42).cd(),DZ(this.a,t),!0)},xKe.gc=function(){return this.a.a.c},mV(YKe,"EnumMap/EntrySet",1352),hIe(1353,1,KKe,OQ),xKe.Nb=function(e){cG(this,e)},xKe.Pb=function(){return this.b=o4(this.a),new CC(this.c,this.b)},xKe.Ob=function(){return bD(this.a)},xKe.Qb=function(){xL(!!this.b),DZ(this.c,this.b),this.b=null},mV(YKe,"EnumMap/EntrySetIterator",1353),hIe(1354,1984,Vqe,CC),xKe.cd=function(){return this.a},xKe.dd=function(){return this.b.b[this.a.g]},xKe.ed=function(e){return wG(this.b,this.a.g,e)},mV(YKe,"EnumMap/MapEntry",1354),hIe(174,JKe,{20:1,28:1,14:1,174:1,21:1});var Ant=mV(YKe,"EnumSet",174);hIe(156,174,{20:1,28:1,14:1,174:1,156:1,21:1},YF),xKe.Fc=function(e){return aie(this,$H(e,22))},xKe.Hc=function(e){return Cz(this,e)},xKe.Kc=function(){return new KE(this)},xKe.Mc=function(e){return Tz(this,e)},xKe.gc=function(){return this.c},xKe.c=0,mV(YKe,"EnumSet/EnumSetImpl",156),hIe(343,1,KKe,KE),xKe.Nb=function(e){cG(this,e)},xKe.Pb=function(){return o4(this)},xKe.Ob=function(){return bD(this)},xKe.Qb=function(){xL(-1!=this.b),MV(this.c.b,this.b,null),--this.c.c,this.b=-1},xKe.a=-1,xKe.b=-1,mV(YKe,"EnumSet/EnumSetImpl/IteratorImpl",343),hIe(43,488,Zqe,Nv,WE,vM),xKe.re=function(e,t){return UO(e)===UO(t)||null!=e&&Dde(e,t)},xKe.se=function(e){return 0|Jle(e)},mV(YKe,"HashMap",43),hIe(53,JKe,eXe,LA,dx,MQ),xKe.Fc=function(e){return _G(this,e)},xKe.$b=function(){this.a.$b()},xKe.Hc=function(e){return FE(this,e)},xKe.dc=function(){return 0==this.a.gc()},xKe.Kc=function(){return this.a.ec().Kc()},xKe.Mc=function(e){return eN(this,e)},xKe.gc=function(){return this.a.gc()};var bnt,ynt=mV(YKe,"HashSet",53);hIe(1781,1,hYe,j),xKe.ud=function(e){nae(this,e)},xKe.Ib=function(){return"IntSummaryStatistics[count = "+mW(this.a)+", avg = "+(aC(this.a,0)?y2(this.d)/y2(this.a):0)+", min = "+this.c+", max = "+this.b+", sum = "+mW(this.d)+"]"},xKe.a=0,xKe.b=PYe,xKe.c=RKe,xKe.d=0,mV(YKe,"IntSummaryStatistics",1781),hIe(1049,1,gYe,eI),xKe.Jc=function(e){e5(this,e)},xKe.Kc=function(){return new E2(this)},xKe.c=0,mV(YKe,"InternalHashCodeMap",1049),hIe(711,1,KKe,E2),xKe.Nb=function(e){cG(this,e)},xKe.Pb=function(){return this.d=this.a[this.c++],this.d},xKe.Ob=function(){var e;return this.c<this.a.length||!(e=this.b.next()).done&&(this.a=e.value[1],this.c=0,!0)},xKe.Qb=function(){pIe(this.e,this.d.cd()),0!=this.c&&--this.c},xKe.c=0,xKe.d=null,mV(YKe,"InternalHashCodeMap/1",711),hIe(1047,1,gYe,tI),xKe.Jc=function(e){e5(this,e)},xKe.Kc=function(){return new g4(this)},xKe.c=0,xKe.d=0,mV(YKe,"InternalStringMap",1047),hIe(710,1,KKe,g4),xKe.Nb=function(e){cG(this,e)},xKe.Pb=function(){return this.c=this.a,this.a=this.b.next(),new qF(this.d,this.c,this.d.d)},xKe.Ob=function(){return!this.a.done},xKe.Qb=function(){Uae(this.d,this.c.value[0])},mV(YKe,"InternalStringMap/1",710),hIe(1048,1984,Vqe,qF),xKe.cd=function(){return this.b.value[0]},xKe.dd=function(){return this.a.d!=this.c?lC(this.a,this.b.value[0]):this.b.value[1]},xKe.ed=function(e){return ofe(this.a,this.b.value[0],e)},xKe.c=0,mV(YKe,"InternalStringMap/2",1048),hIe(228,43,Zqe,m4,H8),xKe.$b=function(){bP(this)},xKe._b=function(e){return uC(this,e)},xKe.uc=function(e){var t;for(t=this.d.a;t!=this.d;){if(rY(t.e,e))return!0;t=t.a}return!1},xKe.vc=function(){return new tp(this)},xKe.xc=function(e){return uee(this,e)},xKe.zc=function(e,t){return qme(this,e,t)},xKe.Bc=function(e){return b9(this,e)},xKe.gc=function(){return DE(this.e)},xKe.c=!1,mV(YKe,"LinkedHashMap",228),hIe(387,383,{484:1,383:1,387:1,42:1},CL,JH),mV(YKe,"LinkedHashMap/ChainEntry",387),hIe(701,JKe,ZKe,tp),xKe.$b=function(){bP(this.a)},xKe.Hc=function(e){return A2(this,e)},xKe.Kc=function(){return new lK(this)},xKe.Mc=function(e){var t;return!!A2(this,e)&&(t=$H(e,42).cd(),b9(this.a,t),!0)},xKe.gc=function(){return DE(this.a.e)},mV(YKe,"LinkedHashMap/EntrySet",701),hIe(702,1,KKe,lK),xKe.Nb=function(e){cG(this,e)},xKe.Pb=function(){return s7(this)},xKe.Ob=function(){return this.b!=this.c.a.d},xKe.Qb=function(){xL(!!this.a),g2(this.c.a.e,this),LU(this.a),m6(this.c.a.e,this.a.d),dB(this.c.a.e,this),this.a=null},mV(YKe,"LinkedHashMap/EntrySet/EntryIterator",702),hIe(178,53,eXe,cI,IR,IQ);var wnt=mV(YKe,"LinkedHashSet",178);hIe(68,1964,{3:1,4:1,20:1,28:1,52:1,14:1,68:1,15:1},YE,JF),xKe.Fc=function(e){return RU(this,e)},xKe.$b=function(){Aq(this)},xKe.Zc=function(e){return sve(this,e)},xKe.gc=function(){return this.b},xKe.b=0;var _nt,xnt,Ent,Snt,Cnt,Tnt=mV(YKe,"LinkedList",68);hIe(970,1,rYe,XF),xKe.Nb=function(e){cG(this,e)},xKe.Rb=function(e){JG(this,e)},xKe.Ob=function(){return wx(this)},xKe.Sb=function(){return this.b.b!=this.d.a},xKe.Pb=function(){return d3(this)},xKe.Tb=function(){return this.a},xKe.Ub=function(){return z1(this)},xKe.Vb=function(){return this.a-1},xKe.Qb=function(){vte(this)},xKe.Wb=function(e){xL(!!this.c),this.c.c=e},xKe.a=0,xKe.c=null,mV(YKe,"LinkedList/ListIteratorImpl",970),hIe(608,1,{},D),mV(YKe,"LinkedList/Node",608),hIe(1959,1,{}),mV(YKe,"Locale",1959),hIe(861,1959,{},N),xKe.Ib=function(){return""},mV(YKe,"Locale/1",861),hIe(862,1959,{},R),xKe.Ib=function(){return"unknown"},mV(YKe,"Locale/4",862),hIe(109,60,{3:1,102:1,60:1,78:1,109:1},AA,uY),mV(YKe,"NoSuchElementException",109),hIe(404,1,{404:1},my),xKe.Fb=function(e){var t;return e===this||!!rN(e,404)&&(t=$H(e,404),rY(this.a,t.a))},xKe.Hb=function(){return BI(this.a)},xKe.Ib=function(){return null!=this.a?UKe+bR(this.a)+")":"Optional.empty()"},mV(YKe,"Optional",404),hIe(463,1,{463:1},CM,AL),xKe.Fb=function(e){var t;return e===this||!!rN(e,463)&&(t=$H(e,463),this.a==t.a&&0==She(this.b,t.b))},xKe.Hb=function(){return this.a?CJ(this.b):0},xKe.Ib=function(){return this.a?"OptionalDouble.of("+this.b+")":"OptionalDouble.empty()"},xKe.a=!1,xKe.b=0,mV(YKe,"OptionalDouble",463),hIe(517,1,{517:1},TM,bL),xKe.Fb=function(e){var t;return e===this||!!rN(e,517)&&(t=$H(e,517),this.a==t.a&&0==wD(this.b,t.b))},xKe.Hb=function(){return this.a?this.b:0},xKe.Ib=function(){return this.a?"OptionalInt.of("+this.b+")":"OptionalInt.empty()"},xKe.a=!1,xKe.b=0,mV(YKe,"OptionalInt",517),hIe(503,2004,XKe,WW),xKe.Gc=function(e){return twe(this,e)},xKe.$b=function(){this.b.c=N8(Met,jKe,1,0,5,1)},xKe.Hc=function(e){return-1!=(null==e?-1:w9(this.b,e,0))},xKe.Kc=function(){return new Vf(this)},xKe.Mc=function(e){return sie(this,e)},xKe.gc=function(){return this.b.c.length},xKe.Nc=function(){return new h0(this,256)},xKe.Pc=function(){return dL(this.b)},xKe.Qc=function(e){return Kme(this.b,e)},mV(YKe,"PriorityQueue",503),hIe(1277,1,KKe,Vf),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return this.a<this.c.b.c.length},xKe.Pb=function(){return SL(this.a<this.c.b.c.length),this.b=this.a++,NQ(this.c.b,this.b)},xKe.Qb=function(){xL(-1!=this.b),lie(this.c,this.a=this.b),this.b=-1},xKe.a=0,xKe.b=-1,mV(YKe,"PriorityQueue/1",1277),hIe(230,1,{230:1},sfe,C4),xKe.a=0,xKe.b=0;var knt,Ont,Mnt,Int=0;mV(YKe,"Random",230),hIe(27,1,cYe,h0,QG,CY),xKe.qd=function(){return this.a},xKe.rd=function(){return RW(this),this.c},xKe.Nb=function(e){RW(this),this.d.Nb(e)},xKe.sd=function(e){return Jee(this,e)},xKe.a=0,xKe.c=0,mV(YKe,"Spliterators/IteratorSpliterator",27),hIe(485,27,cYe,hC),mV(YKe,"SortedSet/1",485),hIe(602,1,Jqe,Kf),xKe.we=function(e){this.a.td(e)},mV(YKe,"Spliterator/OfDouble/0methodref$accept$Type",602),hIe(603,1,Jqe,Yf),xKe.we=function(e){this.a.td(e)},mV(YKe,"Spliterator/OfDouble/1methodref$accept$Type",603),hIe(604,1,hYe,qf),xKe.ud=function(e){this.a.td(the(e))},mV(YKe,"Spliterator/OfInt/2methodref$accept$Type",604),hIe(605,1,hYe,Xf),xKe.ud=function(e){this.a.td(the(e))},mV(YKe,"Spliterator/OfInt/3methodref$accept$Type",605),hIe(617,1,cYe),xKe.Nb=function(e){gx(this,e)},xKe.qd=function(){return this.d},xKe.rd=function(){return this.e},xKe.d=0,xKe.e=0,mV(YKe,"Spliterators/BaseSpliterator",617),hIe(721,617,cYe),xKe.xe=function(e){px(this,e)},xKe.Nb=function(e){rN(e,182)?px(this,$H(e,182)):px(this,new Yf(e))},xKe.sd=function(e){return rN(e,182)?this.ye($H(e,182)):this.ye(new Kf(e))},mV(YKe,"Spliterators/AbstractDoubleSpliterator",721),hIe(720,617,cYe),xKe.xe=function(e){px(this,e)},xKe.Nb=function(e){rN(e,196)?px(this,$H(e,196)):px(this,new Xf(e))},xKe.sd=function(e){return rN(e,196)?this.ye($H(e,196)):this.ye(new qf(e))},mV(YKe,"Spliterators/AbstractIntSpliterator",720),hIe(540,617,cYe),mV(YKe,"Spliterators/AbstractSpliterator",540),hIe(692,1,cYe),xKe.Nb=function(e){gx(this,e)},xKe.qd=function(){return this.b},xKe.rd=function(){return this.d-this.c},xKe.b=0,xKe.c=0,xKe.d=0,mV(YKe,"Spliterators/BaseArraySpliterator",692),hIe(947,692,cYe,$U),xKe.ze=function(e,t){r_(this,$H(e,38),t)},xKe.Nb=function(e){RV(this,e)},xKe.sd=function(e){return B6(this,e)},mV(YKe,"Spliterators/ArraySpliterator",947),hIe(693,692,cYe,PF),xKe.ze=function(e,t){i_(this,$H(e,182),t)},xKe.xe=function(e){RV(this,e)},xKe.Nb=function(e){rN(e,182)?RV(this,$H(e,182)):RV(this,new Yf(e))},xKe.ye=function(e){return B6(this,e)},xKe.sd=function(e){return rN(e,182)?B6(this,$H(e,182)):B6(this,new Kf(e))},mV(YKe,"Spliterators/DoubleArraySpliterator",693),hIe(1968,1,cYe),xKe.Nb=function(e){gx(this,e)},xKe.qd=function(){return 16448},xKe.rd=function(){return 0},mV(YKe,"Spliterators/EmptySpliterator",1968),hIe(946,1968,cYe,W),xKe.xe=function(e){Fd(e)},xKe.Nb=function(e){rN(e,196)?Fd($H(e,196)):Fd(new Xf(e))},xKe.ye=function(e){return dC(e)},xKe.sd=function(e){return rN(e,196)?dC($H(e,196)):dC(new qf(e))},mV(YKe,"Spliterators/EmptySpliterator/OfInt",946),hIe(580,52,cXe,PA),xKe.Vc=function(e,t){BW(e,this.a.c.length+1),bz(this.a,e,t)},xKe.Fc=function(e){return GH(this.a,e)},xKe.Wc=function(e,t){return BW(e,this.a.c.length+1),aue(this.a,e,t)},xKe.Gc=function(e){return pse(this.a,e)},xKe.$b=function(){this.a.c=N8(Met,jKe,1,0,5,1)},xKe.Hc=function(e){return-1!=w9(this.a,e,0)},xKe.Ic=function(e){return ase(this.a,e)},xKe.Jc=function(e){kte(this.a,e)},xKe.Xb=function(e){return BW(e,this.a.c.length),NQ(this.a,e)},xKe.Xc=function(e){return w9(this.a,e,0)},xKe.dc=function(){return 0==this.a.c.length},xKe.Kc=function(){return new Gf(this.a)},xKe.$c=function(e){return BW(e,this.a.c.length),s6(this.a,e)},xKe.Ud=function(e,t){l0(this.a,e,t)},xKe._c=function(e,t){return BW(e,this.a.c.length),r5(this.a,e,t)},xKe.gc=function(){return this.a.c.length},xKe.ad=function(e){vD(this.a,e)},xKe.bd=function(e,t){return new s0(this.a,e,t)},xKe.Pc=function(){return dL(this.a)},xKe.Qc=function(e){return Kme(this.a,e)},xKe.Ib=function(){return ISe(this.a)},mV(YKe,"Vector",580),hIe(809,580,cXe,ab),mV(YKe,"Stack",809),hIe(206,1,{206:1},Mae),xKe.Ib=function(){return G1(this)},mV(YKe,"StringJoiner",206),hIe(544,1992,{3:1,83:1,171:1,161:1},GE,GW),xKe.$b=function(){vy(this)},xKe.vc=function(){return new NR(this)},xKe.zc=function(e,t){return xle(this,e,t)},xKe.Bc=function(e){return MJ(this,e)},xKe.gc=function(){return this.c},xKe.c=0,mV(YKe,"TreeMap",544),hIe(390,1,KKe,$P),xKe.Nb=function(e){cG(this,e)},xKe.Pb=function(){return vL(this)},xKe.Ob=function(){return iC(this.a)},xKe.Qb=function(){e$(this)},mV(YKe,"TreeMap/EntryIterator",390),hIe(435,739,ZKe,NR),xKe.$b=function(){vy(this.a)},mV(YKe,"TreeMap/EntrySet",435),hIe(436,383,{484:1,383:1,42:1,436:1},j8),xKe.b=!1;var Dnt,Nnt,Rnt,Lnt,Bnt=mV(YKe,"TreeMap/Node",436);hIe(621,1,{},Q),xKe.Ib=function(){return"State: mv="+this.c+" value="+this.d+" done="+this.a+" found="+this.b},xKe.a=!1,xKe.b=!1,xKe.c=!1,mV(YKe,"TreeMap/State",621),hIe(297,22,uXe,pC),xKe.Ae=function(){return!1},xKe.Be=function(){return!1};var Pnt,Fnt=$ne(YKe,"TreeMap/SubMapType",297,Wet,q2,l$);hIe(1112,297,uXe,II),xKe.Be=function(){return!0},$ne(YKe,"TreeMap/SubMapType/1",1112,Fnt,null,null),hIe(1113,297,uXe,OD),xKe.Ae=function(){return!0},xKe.Be=function(){return!0},$ne(YKe,"TreeMap/SubMapType/2",1113,Fnt,null,null),hIe(1114,297,uXe,DI),xKe.Ae=function(){return!0},$ne(YKe,"TreeMap/SubMapType/3",1114,Fnt,null,null),hIe(208,JKe,{3:1,20:1,28:1,14:1,271:1,21:1,84:1,208:1},QA,fx),xKe.Nc=function(){return new hC(this)},xKe.Fc=function(e){return XG(this,e)},xKe.$b=function(){vy(this.a)},xKe.Hc=function(e){return RF(this.a,e)},xKe.Kc=function(){return new Ff(new $P(new NR(new Pf(this.a).a).b))},xKe.Mc=function(e){return xR(this,e)},xKe.gc=function(){return this.a.c};var $nt=mV(YKe,"TreeSet",208);hIe(966,1,{},np),xKe.Ce=function(e,t){return RB(this.a,e,t)},mV(dXe,"BinaryOperator/lambda$0$Type",966),hIe(967,1,{},rp),xKe.Ce=function(e,t){return LB(this.a,e,t)},mV(dXe,"BinaryOperator/lambda$1$Type",967),hIe(846,1,{},z),xKe.Kb=function(e){return e},mV(dXe,"Function/lambda$0$Type",846),hIe(431,1,RYe,ip),xKe.Mb=function(e){return!this.a.Mb(e)},mV(dXe,"Predicate/lambda$2$Type",431),hIe(572,1,{572:1});var jnt,Hnt,Unt=mV(hXe,"Handler",572);hIe(2007,1,BKe),xKe.ne=function(){return"DUMMY"},xKe.Ib=function(){return this.ne()},mV(hXe,"Level",2007),hIe(1621,2007,BKe,G),xKe.ne=function(){return"INFO"},mV(hXe,"Level/LevelInfo",1621),hIe(1640,1,{},BA),mV(hXe,"LogManager",1640),hIe(1780,1,BKe,t$),xKe.b=null,mV(hXe,"LogRecord",1780),hIe(512,1,{512:1},A5),xKe.e=!1;var Qnt,znt,Wnt,Gnt=!1,Vnt=!1,Knt=!1,Ynt=!1,qnt=!1;mV(hXe,"Logger",512),hIe(819,572,{572:1},V),mV(hXe,"SimpleConsoleLogHandler",819),hIe(132,22,{3:1,35:1,22:1,132:1},gC);var Xnt,Jnt=$ne(gXe,"Collector/Characteristics",132,Wet,g0,c$);hIe(744,1,{},yG),mV(gXe,"CollectorImpl",744),hIe(1060,1,{},K),xKe.Ce=function(e,t){return kde($H(e,206),$H(t,206))},mV(gXe,"Collectors/10methodref$merge$Type",1060),hIe(1061,1,{},Y),xKe.Kb=function(e){return G1($H(e,206))},mV(gXe,"Collectors/11methodref$toString$Type",1061),hIe(1062,1,{},op),xKe.Kb=function(e){return lR(),!!_M(e)},mV(gXe,"Collectors/12methodref$test$Type",1062),hIe(251,1,{},H),xKe.Od=function(e,t){$H(e,14).Fc(t)},mV(gXe,"Collectors/20methodref$add$Type",251),hIe(253,1,{},U),xKe.Ee=function(){return new Dv},mV(gXe,"Collectors/21methodref$ctor$Type",253),hIe(346,1,{},q),xKe.Ee=function(){return new LA},mV(gXe,"Collectors/23methodref$ctor$Type",346),hIe(347,1,{},X),xKe.Od=function(e,t){_G($H(e,53),t)},mV(gXe,"Collectors/24methodref$add$Type",347),hIe(1055,1,{},J),xKe.Ce=function(e,t){return XE($H(e,15),$H(t,14))},mV(gXe,"Collectors/4methodref$addAll$Type",1055),hIe(1059,1,{},Z),xKe.Od=function(e,t){d6($H(e,206),$H(t,475))},mV(gXe,"Collectors/9methodref$add$Type",1059),hIe(1058,1,{},YH),xKe.Ee=function(){return new Mae(this.a,this.b,this.c)},mV(gXe,"Collectors/lambda$15$Type",1058),hIe(1063,1,{},ee),xKe.Ee=function(){var e;return qme(e=new m4,(lR(),!1),new Dv),qme(e,!0,new Dv),e},mV(gXe,"Collectors/lambda$22$Type",1063),hIe(1064,1,{},ap),xKe.Ee=function(){return Sse(Uw(Met,1),jKe,1,5,[this.a])},mV(gXe,"Collectors/lambda$25$Type",1064),hIe(1065,1,{},sp),xKe.Od=function(e,t){$Q(this.a,ene(e))},mV(gXe,"Collectors/lambda$26$Type",1065),hIe(1066,1,{},lp),xKe.Ce=function(e,t){return PW(this.a,ene(e),ene(t))},mV(gXe,"Collectors/lambda$27$Type",1066),hIe(1067,1,{},te),xKe.Kb=function(e){return ene(e)[0]},mV(gXe,"Collectors/lambda$28$Type",1067),hIe(713,1,{},ne),xKe.Ce=function(e,t){return jQ(e,t)},mV(gXe,"Collectors/lambda$4$Type",713),hIe(252,1,{},re),xKe.Ce=function(e,t){return UE($H(e,14),$H(t,14))},mV(gXe,"Collectors/lambda$42$Type",252),hIe(348,1,{},ie),xKe.Ce=function(e,t){return QE($H(e,53),$H(t,53))},mV(gXe,"Collectors/lambda$50$Type",348),hIe(349,1,{},oe),xKe.Kb=function(e){return $H(e,53)},mV(gXe,"Collectors/lambda$51$Type",349),hIe(1054,1,{},cp),xKe.Od=function(e,t){dce(this.a,$H(e,83),t)},mV(gXe,"Collectors/lambda$7$Type",1054),hIe(1056,1,{},ae),xKe.Ce=function(e,t){return gse($H(e,83),$H(t,83),new J)},mV(gXe,"Collectors/lambda$8$Type",1056),hIe(1057,1,{},up),xKe.Kb=function(e){return vfe(this.a,$H(e,83))},mV(gXe,"Collectors/lambda$9$Type",1057),hIe(539,1,{}),xKe.He=function(){yK(this)},xKe.d=!1,mV(gXe,"TerminatableStream",539),hIe(812,539,mXe,OB),xKe.He=function(){yK(this)},mV(gXe,"DoubleStreamImpl",812),hIe(1784,721,cYe,XH),xKe.ye=function(e){return gbe(this,$H(e,182))},xKe.a=null,mV(gXe,"DoubleStreamImpl/2",1784),hIe(1785,1,Jqe,dp),xKe.we=function(e){jI(this.a,e)},mV(gXe,"DoubleStreamImpl/2/lambda$0$Type",1785),hIe(1782,1,Jqe,hp),xKe.we=function(e){$I(this.a,e)},mV(gXe,"DoubleStreamImpl/lambda$0$Type",1782),hIe(1783,1,Jqe,fp),xKe.we=function(e){lge(this.a,e)},mV(gXe,"DoubleStreamImpl/lambda$2$Type",1783),hIe(1358,720,cYe,v5),xKe.ye=function(e){return b2(this,$H(e,196))},xKe.a=0,xKe.b=0,xKe.c=0,mV(gXe,"IntStream/5",1358),hIe(787,539,mXe,MB),xKe.He=function(){yK(this)},xKe.Ie=function(){return wK(this),this.a},mV(gXe,"IntStreamImpl",787),hIe(788,539,mXe,VE),xKe.He=function(){yK(this)},xKe.Ie=function(){return wK(this),TN(),Mnt},mV(gXe,"IntStreamImpl/Empty",788),hIe(1463,1,hYe,pp),xKe.ud=function(e){nae(this.a,e)},mV(gXe,"IntStreamImpl/lambda$4$Type",1463);var Znt,ert=dQ(gXe,"Stream");hIe(30,539,{525:1,670:1,833:1},LQ),xKe.He=function(){yK(this)},mV(gXe,"StreamImpl",30),hIe(845,1,{},se),xKe.ld=function(e){return uU(e)},mV(gXe,"StreamImpl/0methodref$lambda$2$Type",845),hIe(1084,540,cYe,BF),xKe.sd=function(e){for(;M7(this);){if(this.a.sd(e))return!0;yK(this.b),this.b=null,this.a=null}return!1},mV(gXe,"StreamImpl/1",1084),hIe(1085,1,uYe,gp),xKe.td=function(e){tU(this.a,$H(e,833))},mV(gXe,"StreamImpl/1/lambda$0$Type",1085),hIe(1086,1,RYe,mp),xKe.Mb=function(e){return _G(this.a,e)},mV(gXe,"StreamImpl/1methodref$add$Type",1086),hIe(1087,540,cYe,mq),xKe.sd=function(e){var t;return this.a||(t=new Dv,this.b.a.Nb(new vp(t)),Eq(),vD(t,this.c),this.a=new h0(t,16)),Jee(this.a,e)},xKe.a=null,mV(gXe,"StreamImpl/5",1087),hIe(1088,1,uYe,vp),xKe.td=function(e){GH(this.a,e)},mV(gXe,"StreamImpl/5/2methodref$add$Type",1088),hIe(722,540,cYe,K7),xKe.sd=function(e){for(this.b=!1;!this.b&&this.c.sd(new OC(this,e)););return this.b},xKe.b=!1,mV(gXe,"StreamImpl/FilterSpliterator",722),hIe(1079,1,uYe,OC),xKe.td=function(e){LW(this.a,this.b,e)},mV(gXe,"StreamImpl/FilterSpliterator/lambda$0$Type",1079),hIe(1075,721,cYe,w6),xKe.ye=function(e){return yF(this,$H(e,182))},mV(gXe,"StreamImpl/MapToDoubleSpliterator",1075),hIe(1078,1,uYe,MC),xKe.td=function(e){yC(this.a,this.b,e)},mV(gXe,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1078),hIe(1074,720,cYe,_6),xKe.ye=function(e){return wF(this,$H(e,196))},mV(gXe,"StreamImpl/MapToIntSpliterator",1074),hIe(1077,1,uYe,IC),xKe.td=function(e){bC(this.a,this.b,e)},mV(gXe,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1077),hIe(719,540,cYe,x6),xKe.sd=function(e){return _F(this,e)},mV(gXe,"StreamImpl/MapToObjSpliterator",719),hIe(1076,1,uYe,DC),xKe.td=function(e){wC(this.a,this.b,e)},mV(gXe,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1076),hIe(618,1,uYe,le),xKe.td=function(e){Ch(this,e)},mV(gXe,"StreamImpl/ValueConsumer",618),hIe(1080,1,uYe,ce),xKe.td=function(e){fS()},mV(gXe,"StreamImpl/lambda$0$Type",1080),hIe(1081,1,uYe,ue),xKe.td=function(e){fS()},mV(gXe,"StreamImpl/lambda$1$Type",1081),hIe(1082,1,{},Ap),xKe.Ce=function(e,t){return F$(this.a,e,t)},mV(gXe,"StreamImpl/lambda$4$Type",1082),hIe(1083,1,uYe,TC),xKe.td=function(e){wP(this.b,this.a,e)},mV(gXe,"StreamImpl/lambda$5$Type",1083),hIe(1089,1,uYe,bp),xKe.td=function(e){jle(this.a,$H(e,365))},mV(gXe,"TerminatableStream/lambda$0$Type",1089),hIe(2041,1,{}),hIe(1914,1,{},de),mV("javaemul.internal","ConsoleLogger",1914),hIe(2038,1,{});var trt,nrt,rrt=0,irt=0;hIe(1768,1,uYe,he),xKe.td=function(e){$H(e,308)},mV(_Xe,"BowyerWatsonTriangulation/lambda$0$Type",1768),hIe(1769,1,uYe,yp),xKe.td=function(e){Fie(this.a,$H(e,308).e)},mV(_Xe,"BowyerWatsonTriangulation/lambda$1$Type",1769),hIe(1770,1,uYe,fe),xKe.td=function(e){$H(e,168)},mV(_Xe,"BowyerWatsonTriangulation/lambda$2$Type",1770),hIe(1765,1,xXe,wp),xKe.ue=function(e,t){return H3(this.a,$H(e,168),$H(t,168))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(_Xe,"NaiveMinST/lambda$0$Type",1765),hIe(499,1,{},_p),mV(_Xe,"NodeMicroLayout",499),hIe(168,1,{168:1},NC),xKe.Fb=function(e){var t;return!!rN(e,168)&&(t=$H(e,168),rY(this.a,t.a)&&rY(this.b,t.b)||rY(this.a,t.b)&&rY(this.b,t.a))},xKe.Hb=function(){return BI(this.a)+BI(this.b)};var ort=mV(_Xe,"TEdge",168);hIe(308,1,{308:1},Xje),xKe.Fb=function(e){var t;return!!rN(e,308)&&B9(this,(t=$H(e,308)).a)&&B9(this,t.b)&&B9(this,t.c)},xKe.Hb=function(){return BI(this.a)+BI(this.b)+BI(this.c)},mV(_Xe,"TTriangle",308),hIe(221,1,{221:1},CD),mV(_Xe,"Tree",221),hIe(1254,1,{},TZ),mV(EXe,"Scanline",1254);var art=dQ(EXe,SXe);hIe(1692,1,{},ute),mV(CXe,"CGraph",1692),hIe(307,1,{307:1},rZ),xKe.b=0,xKe.c=0,xKe.d=0,xKe.g=0,xKe.i=0,xKe.k=Bqe,mV(CXe,"CGroup",307),hIe(815,1,{},WA),mV(CXe,"CGroup/CGroupBuilder",815),hIe(57,1,{57:1},OP),xKe.Ib=function(){return this.j?EB(this.j.Kb(this)):(wB(drt),drt.o+"@"+(SR(this)>>>0).toString(16))},xKe.f=0,xKe.i=Bqe;var srt,lrt,crt,urt,drt=mV(CXe,"CNode",57);hIe(814,1,{},GA),mV(CXe,"CNode/CNodeBuilder",814),hIe(1525,1,{},pe),xKe.Oe=function(e,t){return 0},xKe.Pe=function(e,t){return 0},mV(CXe,kXe,1525),hIe(1790,1,{},ge),xKe.Le=function(e){var t,n,i,o,a,s,l,c,u,d,h,f,p,g,m;for(u=Lqe,i=new Gf(e.a.b);i.a<i.c.c.length;)t=$H(J0(i),57),u=r.Math.min(u,t.a.j.d.c+t.b.a);for(p=new YE,s=new Gf(e.a.a);s.a<s.c.c.length;)(a=$H(J0(s),307)).k=u,0==a.g&&n5(p,a,p.c.b,p.c);for(;0!=p.b;){for(o=(a=$H(0==p.b?null:(SL(0!=p.b),Ote(p,p.a.a)),307)).j.d.c,f=a.a.a.ec().Kc();f.Ob();)d=$H(f.Pb(),57),m=a.k+d.b.a,!Uue(e,a,e.d)||d.d.c<m?d.i=m:d.i=d.d.c;for(o-=a.j.i,a.b+=o,e.d==(Fde(),FTt)||e.d==BTt?a.c+=o:a.c-=o,h=a.a.a.ec().Kc();h.Ob();)for(c=(d=$H(h.Pb(),57)).c.Kc();c.Ob();)l=$H(c.Pb(),57),g=fI(e.d)?e.g.Oe(d,l):e.g.Pe(d,l),l.a.k=r.Math.max(l.a.k,d.i+d.d.b+g-l.b.a),rX(e,l,e.d)&&(l.a.k=r.Math.max(l.a.k,l.d.c-l.b.a)),--l.a.g,0==l.a.g&&RU(p,l.a)}for(n=new Gf(e.a.b);n.a<n.c.c.length;)(t=$H(J0(n),57)).d.c=t.i},mV(CXe,"LongestPathCompaction",1790),hIe(1690,1,{},AMe),xKe.e=!1;var hrt,frt,prt=mV(CXe,NXe,1690);hIe(1691,1,uYe,xp),xKe.td=function(e){tse(this.a,$H(e,46))},mV(CXe,RXe,1691),hIe(1791,1,{},me),xKe.Me=function(e){var t,n,r,i,o,a;for(t=new Gf(e.a.b);t.a<t.c.c.length;)$H(J0(t),57).c.$b();for(r=new Gf(e.a.b);r.a<r.c.c.length;)for(n=$H(J0(r),57),o=new Gf(e.a.b);o.a<o.c.c.length;)n!=(i=$H(J0(o),57))&&(n.a&&n.a==i.a||(a=fI(e.d)?e.g.Pe(n,i):e.g.Oe(n,i),(i.d.c>n.d.c||n.d.c==i.d.c&&n.d.b<i.d.b)&&Lge(i.d.d+i.d.a+a,n.d.d)&&Bge(i.d.d,n.d.d+n.d.a+a)&&n.c.Fc(i)))},mV(CXe,"QuadraticConstraintCalculation",1791),hIe(522,1,{522:1},Rv),xKe.a=!1,xKe.b=!1,xKe.c=!1,xKe.d=!1,mV(CXe,LXe,522),hIe(803,1,{},Lz),xKe.Me=function(e){this.c=e,gke(this,new be)},mV(CXe,BXe,803),hIe(1718,1,{679:1},cX),xKe.Ke=function(e){PTe(this,$H(e,464))},mV(CXe,PXe,1718),hIe(1719,1,xXe,ve),xKe.ue=function(e,t){return oq($H(e,57),$H(t,57))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(CXe,FXe,1719),hIe(464,1,{464:1},kC),xKe.a=!1,mV(CXe,$Xe,464),hIe(1720,1,xXe,Ae),xKe.ue=function(e,t){return qwe($H(e,464),$H(t,464))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(CXe,jXe,1720),hIe(1721,1,HXe,be),xKe.Lb=function(e){return $H(e,57),!0},xKe.Fb=function(e){return this===e},xKe.Mb=function(e){return $H(e,57),!0},mV(CXe,"ScanlineConstraintCalculator/lambda$1$Type",1721),hIe(428,22,{3:1,35:1,22:1,428:1},FC);var grt,mrt,vrt,Art=$ne(UXe,"HighLevelSortingCriterion",428,Wet,nJ,u$);hIe(427,22,{3:1,35:1,22:1,427:1},$C);var brt,yrt,wrt,_rt,xrt,Ert,Srt,Crt,Trt,krt,Ort,Mrt,Irt,Drt,Nrt,Rrt,Lrt,Brt=$ne(UXe,"LowLevelSortingCriterion",427,Wet,rJ,d$),Prt=dQ(QXe,"ILayoutMetaDataProvider");hIe(853,1,KXe,Uu),xKe.Qe=function(e){Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,zXe),YXe),"Polyomino Traversal Strategy"),"Traversal strategy for trying different candidate positions for polyominoes."),Crt),(STe(),pSt)),$rt),Jhe((nve(),lSt))))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,WXe),YXe),"Polyomino Secondary Sorting Criterion"),"Possible secondary sorting criteria for the processing order of polyominoes. They are used when polyominoes are equal according to the primary sorting criterion HighLevelSortingCriterion."),Ert),pSt),Brt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,GXe),YXe),"Polyomino Primary Sorting Criterion"),"Possible primary sorting criteria for the processing order of polyominoes."),_rt),pSt),Art),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,VXe),YXe),"Fill Polyominoes"),"Use the Profile Fill algorithm to fill polyominoes to prevent small polyominoes from being placed inside of big polyominoes with large holes. Might increase packing area."),(lR(),!0)),hSt),ytt),Jhe(lSt))))},mV(UXe,"PolyominoOptions",853),hIe(250,22,{3:1,35:1,22:1,250:1},jC);var Frt,$rt=$ne(UXe,"TraversalStrategy",250,Wet,_re,h$);hIe(213,1,{213:1},ye),xKe.Ib=function(){return"NEdge[id="+this.b+" w="+this.g+" d="+this.a+"]"},xKe.a=1,xKe.b=0,xKe.c=0,xKe.f=!1,xKe.g=0;var jrt=mV(qXe,"NEdge",213);hIe(176,1,{},jA),mV(qXe,"NEdge/NEdgeBuilder",176),hIe(653,1,{},FA),mV(qXe,"NGraph",653),hIe(121,1,{121:1},b6),xKe.c=-1,xKe.d=0,xKe.e=0,xKe.i=-1,xKe.j=!1;var Hrt=mV(qXe,"NNode",121);hIe(795,1,qqe,$A),xKe.Jc=function(e){e5(this,e)},xKe.Lc=function(){return new LQ(null,new h0(this,16))},xKe.ad=function(e){Pie(this,e)},xKe.Nc=function(){return new h0(this,16)},xKe.Oc=function(){return new LQ(null,new h0(this,16))},xKe.Vc=function(e,t){++this.b,bz(this.a,e,t)},xKe.Fc=function(e){return LR(this,e)},xKe.Wc=function(e,t){return++this.b,aue(this.a,e,t)},xKe.Gc=function(e){return++this.b,pse(this.a,e)},xKe.$b=function(){++this.b,this.a.c=N8(Met,jKe,1,0,5,1)},xKe.Hc=function(e){return-1!=w9(this.a,e,0)},xKe.Ic=function(e){return ase(this.a,e)},xKe.Xb=function(e){return NQ(this.a,e)},xKe.Xc=function(e){return w9(this.a,e,0)},xKe.dc=function(){return 0==this.a.c.length},xKe.Kc=function(){return I7(new Gf(this.a))},xKe.Yc=function(){throw jv(new gA)},xKe.Zc=function(e){throw jv(new gA)},xKe.$c=function(e){return++this.b,s6(this.a,e)},xKe.Mc=function(e){return BR(this,e)},xKe._c=function(e,t){return++this.b,r5(this.a,e,t)},xKe.gc=function(){return this.a.c.length},xKe.bd=function(e,t){return new s0(this.a,e,t)},xKe.Pc=function(){return dL(this.a)},xKe.Qc=function(e){return Kme(this.a,e)},xKe.b=0,mV(qXe,"NNode/ChangeAwareArrayList",795),hIe(269,1,{},HA),mV(qXe,"NNode/NNodeBuilder",269),hIe(1630,1,{},we),xKe.a=!1,xKe.f=RKe,xKe.j=0,mV(qXe,"NetworkSimplex",1630),hIe(1294,1,uYe,Ep),xKe.td=function(e){HWe(this.a,$H(e,680),!0,!1)},mV(JXe,"NodeLabelAndSizeCalculator/lambda$0$Type",1294),hIe(558,1,{},Sp),xKe.b=!0,xKe.c=!0,xKe.d=!0,xKe.e=!0,mV(JXe,"NodeMarginCalculator",558),hIe(212,1,{212:1}),xKe.j=!1,xKe.k=!1;var Urt,Qrt,zrt,Wrt=mV(ZXe,"Cell",212);hIe(124,212,{124:1,212:1},FP),xKe.Re=function(){return WU(this)},xKe.Se=function(){var e;return e=this.n,this.a.a+e.b+e.c},mV(ZXe,"AtomicCell",124),hIe(232,22,{3:1,35:1,22:1,232:1},HC);var Grt,Vrt=$ne(ZXe,"ContainerArea",232,Wet,m0,f$);hIe(326,212,tJe),mV(ZXe,"ContainerCell",326),hIe(1473,326,tJe,jpe),xKe.Re=function(){var e;return e=0,this.e?this.b?e=this.b.b:this.a[1][1]&&(e=this.a[1][1].Re()):e=Yfe(this,zbe(this,!0)),e>0?e+this.n.d+this.n.a:0},xKe.Se=function(){var e,t,n,i,o;if(o=0,this.e)this.b?o=this.b.a:this.a[1][1]&&(o=this.a[1][1].Se());else if(this.g)o=Yfe(this,kwe(this,null,!0));else for(Rte(),n=0,i=(t=Sse(Uw(Vrt,1),MYe,232,0,[Urt,Qrt,zrt])).length;n<i;++n)e=t[n],o=r.Math.max(o,Yfe(this,kwe(this,e,!0)));return o>0?o+this.n.b+this.n.c:0},xKe.Te=function(){var e,t,n,r,i;if(this.g)for(e=kwe(this,null,!1),Rte(),r=0,i=(n=Sse(Uw(Vrt,1),MYe,232,0,[Urt,Qrt,zrt])).length;r<i;++r)VLe(this,t=n[r],e);else for(Rte(),r=0,i=(n=Sse(Uw(Vrt,1),MYe,232,0,[Urt,Qrt,zrt])).length;r<i;++r)VLe(this,t=n[r],e=kwe(this,t,!1))},xKe.Ue=function(){var e,t,n,i;t=this.i,e=this.n,i=zbe(this,!1),K5(this,(Rte(),Urt),t.d+e.d,i),K5(this,zrt,t.d+t.a-e.a-i[2],i),n=t.a-e.d-e.a,i[0]>0&&(i[0]+=this.d,n-=i[0]),i[2]>0&&(i[2]+=this.d,n-=i[2]),this.c.a=r.Math.max(0,n),this.c.d=t.d+e.d+(this.c.a-n)/2,i[1]=r.Math.max(i[1],n),K5(this,Qrt,t.d+e.d+i[0]-(i[1]-n)/2,i)},xKe.b=null,xKe.d=0,xKe.e=!1,xKe.f=!1,xKe.g=!1;var Krt,Yrt,qrt,Xrt=0,Jrt=0;mV(ZXe,"GridContainerCell",1473),hIe(461,22,{3:1,35:1,22:1,461:1},UC);var Zrt,eit=$ne(ZXe,"HorizontalLabelAlignment",461,Wet,v0,p$);hIe(306,212,{212:1,306:1},AJ,hte,BX),xKe.Re=function(){return GU(this)},xKe.Se=function(){return VU(this)},xKe.a=0,xKe.c=!1;var tit,nit,rit,iit=mV(ZXe,"LabelCell",306);hIe(244,326,{212:1,326:1,244:1},Tme),xKe.Re=function(){return xOe(this)},xKe.Se=function(){return EOe(this)},xKe.Te=function(){Pje(this)},xKe.Ue=function(){Uje(this)},xKe.b=0,xKe.c=0,xKe.d=!1,mV(ZXe,"StripContainerCell",244),hIe(1626,1,RYe,_e),xKe.Mb=function(e){return Ky($H(e,212))},mV(ZXe,"StripContainerCell/lambda$0$Type",1626),hIe(1627,1,{},xe),xKe.Fe=function(e){return $H(e,212).Se()},mV(ZXe,"StripContainerCell/lambda$1$Type",1627),hIe(1628,1,RYe,Ee),xKe.Mb=function(e){return Yy($H(e,212))},mV(ZXe,"StripContainerCell/lambda$2$Type",1628),hIe(1629,1,{},Se),xKe.Fe=function(e){return $H(e,212).Re()},mV(ZXe,"StripContainerCell/lambda$3$Type",1629),hIe(462,22,{3:1,35:1,22:1,462:1},QC);var oit,ait,sit,lit,cit,uit,dit,hit,fit,pit,git,mit,vit,Ait,bit,yit,wit,_it,xit,Eit,Sit,Cit,Tit,kit=$ne(ZXe,"VerticalLabelAlignment",462,Wet,A0,g$);hIe(789,1,{},eGe),xKe.c=0,xKe.d=0,xKe.k=0,xKe.s=0,xKe.t=0,xKe.v=!1,xKe.w=0,xKe.D=!1,mV(sJe,"NodeContext",789),hIe(1471,1,xXe,Ce),xKe.ue=function(e,t){return YM($H(e,61),$H(t,61))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(sJe,"NodeContext/0methodref$comparePortSides$Type",1471),hIe(1472,1,xXe,Te),xKe.ue=function(e,t){return zEe($H(e,111),$H(t,111))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(sJe,"NodeContext/1methodref$comparePortContexts$Type",1472),hIe(159,22,{3:1,35:1,22:1,159:1},aoe);var Oit,Mit,Iit,Dit,Nit,Rit,Lit,Bit=$ne(sJe,"NodeLabelLocation",159,Wet,Zme,m$);hIe(111,1,{111:1},xMe),xKe.a=!1,mV(sJe,"PortContext",111),hIe(1476,1,uYe,ke),xKe.td=function(e){Cx($H(e,306))},mV(uJe,dJe,1476),hIe(1477,1,RYe,Oe),xKe.Mb=function(e){return!!$H(e,111).c},mV(uJe,hJe,1477),hIe(1478,1,uYe,Me),xKe.td=function(e){Cx($H(e,111).c)},mV(uJe,"LabelPlacer/lambda$2$Type",1478),hIe(1475,1,uYe,De),xKe.td=function(e){HB(),Yv($H(e,111))},mV(uJe,"NodeLabelAndSizeUtilities/lambda$0$Type",1475),hIe(790,1,uYe,M$),xKe.td=function(e){LS(this.b,this.c,this.a,$H(e,181))},xKe.a=!1,xKe.c=!1,mV(uJe,"NodeLabelCellCreator/lambda$0$Type",790),hIe(1474,1,uYe,Cp),xKe.td=function(e){TA(this.a,$H(e,181))},mV(uJe,"PortContextCreator/lambda$0$Type",1474),hIe(1829,1,{},Ne),mV(pJe,"GreedyRectangleStripOverlapRemover",1829),hIe(1830,1,xXe,Ie),xKe.ue=function(e,t){return FR($H(e,222),$H(t,222))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(pJe,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1830),hIe(1786,1,{},XA),xKe.a=5,xKe.e=0,mV(pJe,"RectangleStripOverlapRemover",1786),hIe(1787,1,xXe,Le),xKe.ue=function(e,t){return $R($H(e,222),$H(t,222))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(pJe,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1787),hIe(1789,1,xXe,Be),xKe.ue=function(e,t){return qG($H(e,222),$H(t,222))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(pJe,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1789),hIe(406,22,{3:1,35:1,22:1,406:1},zC);var Pit,Fit,$it,jit,Hit,Uit=$ne(pJe,"RectangleStripOverlapRemover/OverlapRemovalDirection",406,Wet,Y2,v$);hIe(222,1,{222:1},Nz),mV(pJe,"RectangleStripOverlapRemover/RectangleNode",222),hIe(1788,1,uYe,Tp),xKe.td=function(e){Cbe(this.a,$H(e,222))},mV(pJe,"RectangleStripOverlapRemover/lambda$1$Type",1788),hIe(1304,1,xXe,Pe),xKe.ue=function(e,t){return QUe($H(e,167),$H(t,167))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(mJe,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1304),hIe(1307,1,{},Fe),xKe.Kb=function(e){return $H(e,324).a},mV(mJe,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1307),hIe(1308,1,RYe,$e),xKe.Mb=function(e){return $H(e,323).a},mV(mJe,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1308),hIe(1309,1,RYe,je),xKe.Mb=function(e){return $H(e,323).a},mV(mJe,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1309),hIe(1302,1,xXe,He),xKe.ue=function(e,t){return GPe($H(e,167),$H(t,167))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(mJe,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1302),hIe(1305,1,{},Re),xKe.Kb=function(e){return $H(e,324).a},mV(mJe,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1305),hIe(767,1,xXe,Ue),xKe.ue=function(e,t){return zae($H(e,167),$H(t,167))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(mJe,"PolyominoCompactor/MinNumOfExtensionsComparator",767),hIe(1300,1,xXe,Qe),xKe.ue=function(e,t){return Kre($H(e,321),$H(t,321))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(mJe,"PolyominoCompactor/MinPerimeterComparator",1300),hIe(1301,1,xXe,ze),xKe.ue=function(e,t){return iAe($H(e,321),$H(t,321))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(mJe,"PolyominoCompactor/MinPerimeterComparatorWithShape",1301),hIe(1303,1,xXe,We),xKe.ue=function(e,t){return $Fe($H(e,167),$H(t,167))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(mJe,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1303),hIe(1306,1,{},Ge),xKe.Kb=function(e){return $H(e,324).a},mV(mJe,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1306),hIe(777,1,{},RC),xKe.Ce=function(e,t){return k2(this,$H(e,46),$H(t,167))},mV(mJe,"SuccessorCombination",777),hIe(644,1,{},Ve),xKe.Ce=function(e,t){var n;return WOe((n=$H(e,46),$H(t,167),n))},mV(mJe,"SuccessorJitter",644),hIe(643,1,{},Ke),xKe.Ce=function(e,t){var n;return dLe((n=$H(e,46),$H(t,167),n))},mV(mJe,"SuccessorLineByLine",643),hIe(568,1,{},Ye),xKe.Ce=function(e,t){var n;return cDe((n=$H(e,46),$H(t,167),n))},mV(mJe,"SuccessorManhattan",568),hIe(1356,1,{},qe),xKe.Ce=function(e,t){var n;return yRe((n=$H(e,46),$H(t,167),n))},mV(mJe,"SuccessorMaxNormWindingInMathPosSense",1356),hIe(400,1,{},kp),xKe.Ce=function(e,t){return $G(this,e,t)},xKe.c=!1,xKe.d=!1,xKe.e=!1,xKe.f=!1,mV(mJe,"SuccessorQuadrantsGeneric",400),hIe(1357,1,{},Xe),xKe.Kb=function(e){return $H(e,324).a},mV(mJe,"SuccessorQuadrantsGeneric/lambda$0$Type",1357),hIe(323,22,{3:1,35:1,22:1,323:1},PC),xKe.a=!1;var Qit,zit=$ne(wJe,_Je,323,Wet,J2,A$);hIe(1298,1,{}),xKe.Ib=function(){var e,t,n,r,i,o;for(n=" ",e=the(0),i=0;i<this.o;i++)n+=""+e.a,e=the(uP(e.a));for(n+="\n",e=the(0),o=0;o<this.p;o++){for(n+=""+e.a,e=the(uP(e.a)),r=0;r<this.o;r++)0==Vue(t=Zre(this,r,o),0)?n+="_":0==Vue(t,1)?n+="X":n+="0";n+="\n"}return cL(n,0,n.length-1)},xKe.o=0,xKe.p=0,mV(wJe,"TwoBitGrid",1298),hIe(321,1298,{321:1},Hpe),xKe.j=0,xKe.k=0,mV(wJe,"PlanarGrid",321),hIe(167,321,{321:1,167:1}),xKe.g=0,xKe.i=0,mV(wJe,"Polyomino",167);var Wit=dQ(TJe,kJe);hIe(134,1,OJe,Je),xKe.Ye=function(e,t){return sle(this,e,t)},xKe.Ve=function(){return UQ(this)},xKe.We=function(e){return vSe(this,e)},xKe.Xe=function(e){return IL(this,e)},mV(TJe,"MapPropertyHolder",134),hIe(1299,134,OJe,ALe),mV(wJe,"Polyominoes",1299);var Git,Vit,Kit,Yit,qit,Xit,Jit,Zit,eot=!1;hIe(1766,1,uYe,Ze),xKe.td=function(e){oQe($H(e,221))},mV(MJe,"DepthFirstCompaction/0methodref$compactTree$Type",1766),hIe(810,1,uYe,Op),xKe.td=function(e){BK(this.a,$H(e,221))},mV(MJe,"DepthFirstCompaction/lambda$1$Type",810),hIe(1767,1,uYe,D$),xKe.td=function(e){fme(this.a,this.b,this.c,$H(e,221))},mV(MJe,"DepthFirstCompaction/lambda$2$Type",1767),hIe(65,1,{65:1},OZ),mV(MJe,"Node",65),hIe(1250,1,{},TD),mV(MJe,"ScanlineOverlapCheck",1250),hIe(1251,1,{679:1},lX),xKe.Ke=function(e){UB(this,$H(e,440))},mV(MJe,"ScanlineOverlapCheck/OverlapsScanlineHandler",1251),hIe(1252,1,xXe,et),xKe.ue=function(e,t){return Nhe($H(e,65),$H(t,65))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(MJe,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1252),hIe(440,1,{440:1},LC),xKe.a=!1,mV(MJe,"ScanlineOverlapCheck/Timestamp",440),hIe(1253,1,xXe,tt),xKe.ue=function(e,t){return Xwe($H(e,440),$H(t,440))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(MJe,"ScanlineOverlapCheck/lambda$0$Type",1253),hIe(550,1,{},nt),mV(IJe,"SVGImage",550),hIe(324,1,{324:1},N$),xKe.Ib=function(){return"("+this.a+FKe+this.b+FKe+this.c+")"},mV(IJe,"UniqueTriple",324),hIe(209,1,DJe),mV(NJe,"AbstractLayoutProvider",209),hIe(1132,209,DJe,rt),xKe.Ze=function(e,t){var n,r,i;kEe(t,RJe,1),this.a=Uy(xB(XIe(e,(wve(),wot)))),S8(e,dot)&&(r=EB(XIe(e,dot)),(n=WPe(rre(),r))&&$H(sJ(n.f),209).Ze(e,voe(t,1))),i=new s4(this.a),this.b=LWe(i,e),0===$H(XIe(e,(Uce(),aot)),481).g?($Me(new it,this.b),Yve(e,pot,vSe(this.b,pot))):ME(),zWe(i),Yve(e,fot,this.b),jCe(t)},xKe.a=0,mV(LJe,"DisCoLayoutProvider",1132),hIe(1244,1,{},it),xKe.c=!1,xKe.e=0,xKe.f=0,mV(LJe,"DisCoPolyominoCompactor",1244),hIe(561,1,{561:1},lz),xKe.b=!0,mV(BJe,"DCComponent",561),hIe(394,22,{3:1,35:1,22:1,394:1},BC),xKe.a=!1;var tot,not,rot=$ne(BJe,"DCDirection",394,Wet,X2,b$);hIe(266,134,{3:1,266:1,94:1,134:1},wIe),mV(BJe,"DCElement",266),hIe(395,1,{395:1},Tbe),xKe.c=0,mV(BJe,"DCExtension",395),hIe(755,134,OJe,P_),mV(BJe,"DCGraph",755),hIe(481,22,{3:1,35:1,22:1,481:1},TL);var iot,oot,aot,sot,lot,cot,uot,dot,hot,fot,pot,got,mot,vot,Aot,bot,yot,wot,_ot,xot,Eot,Sot=$ne(PJe,FJe,481,Wet,LY,y$);hIe(854,1,KXe,ju),xKe.Qe=function(e){Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,$Je),QJe),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),sot),(STe(),pSt)),Sot),Jhe((nve(),lSt))))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,jJe),QJe),"Connected Components Layout Algorithm"),"A layout algorithm that is to be applied to each connected component before the components themselves are compacted. If unspecified, the positions of the components' nodes are not altered."),ASt),Ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,HJe),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),vSt),Met),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,UJe),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),vSt),Met),Jhe(lSt)))),$He((new Hu,e))},mV(PJe,"DisCoMetaDataProvider",854),hIe(998,1,KXe,Hu),xKe.Qe=function(e){$He(e)},mV(PJe,"DisCoOptions",998),hIe(999,1,{},ot),xKe.$e=function(){return new rt},xKe._e=function(e){},mV(PJe,"DisCoOptions/DiscoFactory",999),hIe(562,167,{321:1,167:1,562:1},KDe),xKe.a=0,xKe.b=0,xKe.c=0,xKe.d=0,mV("org.eclipse.elk.alg.disco.structures","DCPolyomino",562),hIe(1268,1,RYe,at),xKe.Mb=function(e){return _M(e)},mV(YJe,"ElkGraphComponentsProcessor/lambda$0$Type",1268),hIe(1269,1,{},st),xKe.Kb=function(e){return xq(),SSe($H(e,79))},mV(YJe,"ElkGraphComponentsProcessor/lambda$1$Type",1269),hIe(1270,1,RYe,lt),xKe.Mb=function(e){return HU($H(e,79))},mV(YJe,"ElkGraphComponentsProcessor/lambda$2$Type",1270),hIe(1271,1,{},ct),xKe.Kb=function(e){return xq(),kSe($H(e,79))},mV(YJe,"ElkGraphComponentsProcessor/lambda$3$Type",1271),hIe(1272,1,RYe,ut),xKe.Mb=function(e){return UU($H(e,79))},mV(YJe,"ElkGraphComponentsProcessor/lambda$4$Type",1272),hIe(1273,1,RYe,Mp),xKe.Mb=function(e){return xJ(this.a,$H(e,79))},mV(YJe,"ElkGraphComponentsProcessor/lambda$5$Type",1273),hIe(1274,1,{},Ip),xKe.Kb=function(e){return BV(this.a,$H(e,79))},mV(YJe,"ElkGraphComponentsProcessor/lambda$6$Type",1274),hIe(1241,1,{},s4),xKe.a=0,mV(YJe,"ElkGraphTransformer",1241),hIe(1242,1,{},dt),xKe.Od=function(e,t){ZOe(this,$H(e,160),$H(t,266))},mV(YJe,"ElkGraphTransformer/OffsetApplier",1242),hIe(1243,1,uYe,Dp),xKe.td=function(e){_N(this,$H(e,8))},mV(YJe,"ElkGraphTransformer/OffsetApplier/OffSetToChainApplier",1243),hIe(753,1,{},ht),mV(eZe,tZe,753),hIe(1232,1,xXe,ft),xKe.ue=function(e,t){return COe($H(e,231),$H(t,231))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(eZe,nZe,1232),hIe(740,209,DJe,UA),xKe.Ze=function(e,t){mNe(this,e,t)},mV(eZe,"ForceLayoutProvider",740),hIe(357,134,{3:1,357:1,94:1,134:1}),mV(rZe,"FParticle",357),hIe(559,357,{3:1,559:1,357:1,94:1,134:1},lV),xKe.Ib=function(){var e;return this.a?(e=w9(this.a.a,this,0))>=0?"b"+e+"["+o5(this.a)+"]":"b["+o5(this.a)+"]":"b_"+SR(this)},mV(rZe,"FBendpoint",559),hIe(282,134,{3:1,282:1,94:1,134:1},TP),xKe.Ib=function(){return o5(this)},mV(rZe,"FEdge",282),hIe(231,134,{3:1,231:1,94:1,134:1},A6);var Cot,Tot,kot,Oot,Mot,Iot,Dot,Not,Rot,Lot,Bot=mV(rZe,"FGraph",231);hIe(447,357,{3:1,447:1,357:1,94:1,134:1},v4),xKe.Ib=function(){return null==this.b||0==this.b.length?"l["+o5(this.a)+"]":"l_"+this.b},mV(rZe,"FLabel",447),hIe(144,357,{3:1,144:1,357:1,94:1,134:1},HV),xKe.Ib=function(){return g1(this)},xKe.b=0,mV(rZe,"FNode",144),hIe(2003,1,{}),xKe.bf=function(e){sje(this,e)},xKe.cf=function(){Hbe(this)},xKe.d=0,mV(oZe,"AbstractForceModel",2003),hIe(631,2003,{631:1},Iae),xKe.af=function(e,t){var n,i,o,a;return Zke(this.f,e,t),o=WP($D(t.d),e.d),a=r.Math.sqrt(o.a*o.a+o.b*o.b),i=r.Math.max(0,a-uK(e.e)/2-uK(t.e)/2),bN(o,((n=Hle(this.e,e,t))>0?-PG(i,this.c)*n:NL(i,this.b)*$H(vSe(e,(cPe(),Xot)),19).a)/a),o},xKe.bf=function(e){sje(this,e),this.a=$H(vSe(e,(cPe(),Hot)),19).a,this.c=Uy(xB(vSe(e,rat))),this.b=Uy(xB(vSe(e,Zot)))},xKe.df=function(e){return e<this.a},xKe.a=0,xKe.b=0,xKe.c=0,mV(oZe,"EadesModel",631),hIe(632,2003,{632:1},cU),xKe.af=function(e,t){var n,i,o,a,s;return Zke(this.f,e,t),o=WP($D(t.d),e.d),s=r.Math.sqrt(o.a*o.a+o.b*o.b),a=DL(i=r.Math.max(0,s-uK(e.e)/2-uK(t.e)/2),this.a)*$H(vSe(e,(cPe(),Xot)),19).a,(n=Hle(this.e,e,t))>0&&(a-=Ey(i,this.a)*n),bN(o,a*this.b/s),o},xKe.bf=function(e){var t,n,i,o,a,s,l;for(sje(this,e),this.b=Uy(xB(vSe(e,(cPe(),iat)))),this.c=this.b/$H(vSe(e,Hot),19).a,i=e.e.c.length,a=0,o=0,l=new Gf(e.e);l.a<l.c.c.length;)a+=(s=$H(J0(l),144)).e.a,o+=s.e.b;t=a*o,n=Uy(xB(vSe(e,rat)))*cJe,this.a=r.Math.sqrt(t/(2*i))*n},xKe.cf=function(){Hbe(this),this.b-=this.c},xKe.df=function(e){return this.b>0},xKe.a=0,xKe.b=0,xKe.c=0,mV(oZe,"FruchtermanReingoldModel",632),hIe(849,1,KXe,Qu),xKe.Qe=function(e){Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,aZe),""),"Force Model"),"Determines the model for force calculation."),kot),(STe(),pSt)),Mat),Jhe((nve(),lSt))))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,sZe),""),"Iterations"),"The number of iterations on the force model."),the(300)),mSt),Mtt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,lZe),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),the(0)),mSt),Mtt),Jhe(oSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,cZe),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),uZe),fSt),Ctt),Jhe(lSt)))),i2(e,cZe,aZe,Not),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,dZe),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),fSt),Ctt),Jhe(lSt)))),i2(e,dZe,aZe,Mot),gGe((new zu,e))},mV(hZe,"ForceMetaDataProvider",849),hIe(424,22,{3:1,35:1,22:1,424:1},WC);var Pot,Fot,$ot,jot,Hot,Uot,Qot,zot,Wot,Got,Vot,Kot,Yot,qot,Xot,Jot,Zot,eat,tat,nat,rat,iat,oat,aat,sat,lat,cat,uat,dat,hat,fat,pat,gat,mat,vat,Aat,bat,yat,wat,_at,xat,Eat,Sat,Cat,Tat,kat,Oat,Mat=$ne(hZe,"ForceModelStrategy",424,Wet,iJ,w$);hIe(988,1,KXe,zu),xKe.Qe=function(e){gGe(e)},mV(hZe,"ForceOptions",988),hIe(989,1,{},pt),xKe.$e=function(){return new UA},xKe._e=function(e){},mV(hZe,"ForceOptions/ForceFactory",989),hIe(850,1,KXe,Wu),xKe.Qe=function(e){Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,DZe),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(lR(),!1)),(STe(),hSt)),ytt),Jhe((nve(),sSt))))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,NZe),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),fSt),Ctt),wz(lSt,Sse(Uw(ySt,1),MYe,175,0,[oSt]))))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,RZe),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),dat),pSt),jat),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,LZe),""),"Stress Epsilon"),"Termination criterion for the iterative process."),uZe),fSt),Ctt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,BZe),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),the(RKe)),mSt),Mtt),Jhe(lSt)))),zze((new Gu,e))},mV(hZe,"StressMetaDataProvider",850),hIe(992,1,KXe,Gu),xKe.Qe=function(e){zze(e)},mV(hZe,"StressOptions",992),hIe(993,1,{},gt),xKe.$e=function(){return new kP},xKe._e=function(e){},mV(hZe,"StressOptions/StressFactory",993),hIe(1128,209,DJe,kP),xKe.Ze=function(e,t){var n,r,i,o;for(kEe(t,FZe,1),Hy(_B(XIe(e,(nwe(),bat))))?Hy(_B(XIe(e,Sat)))||yJ(new _p((US(),new Ry(e)))):mNe(new UA,e,voe(t,1)),r=cle(e),o=(n=jje(this.a,r)).Kc();o.Ob();)(i=$H(o.Pb(),231)).e.c.length<=1||(jUe(this.b,i),tDe(this.b),kte(i.d,new mt));EGe(r=UGe(n)),jCe(t)},mV(jZe,"StressLayoutProvider",1128),hIe(1129,1,uYe,mt),xKe.td=function(e){PHe($H(e,447))},mV(jZe,"StressLayoutProvider/lambda$0$Type",1129),hIe(990,1,{},_A),xKe.c=0,xKe.e=0,xKe.g=0,mV(jZe,"StressMajorization",990),hIe(379,22,{3:1,35:1,22:1,379:1},GC);var Iat,Dat,Nat,Rat,Lat,Bat,Pat,Fat,$at,jat=$ne(jZe,"StressMajorization/Dimension",379,Wet,y0,_$);hIe(991,1,xXe,Np),xKe.ue=function(e,t){return EF(this.a,$H(e,144),$H(t,144))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(jZe,"StressMajorization/lambda$0$Type",991),hIe(1229,1,{},R1),mV(UZe,"ElkLayered",1229),hIe(1230,1,uYe,vt),xKe.td=function(e){LOe($H(e,37))},mV(UZe,"ElkLayered/lambda$0$Type",1230),hIe(1231,1,uYe,Rp),xKe.td=function(e){SF(this.a,$H(e,37))},mV(UZe,"ElkLayered/lambda$1$Type",1231),hIe(1263,1,{},MD),mV(UZe,"GraphConfigurator",1263),hIe(759,1,uYe,Lp),xKe.td=function(e){VSe(this.a,$H(e,10))},mV(UZe,"GraphConfigurator/lambda$0$Type",759),hIe(760,1,{},At),xKe.Kb=function(e){return Zwe(),new LQ(null,new h0($H(e,29).a,16))},mV(UZe,"GraphConfigurator/lambda$1$Type",760),hIe(761,1,uYe,Bp),xKe.td=function(e){VSe(this.a,$H(e,10))},mV(UZe,"GraphConfigurator/lambda$2$Type",761),hIe(1127,209,DJe,zA),xKe.Ze=function(e,t){var n;n=EHe(new ZA,e),UO(XIe(e,(jVe(),smt)))===UO((ode(),gkt))?npe(this.a,n,t):hMe(this.a,n,t),pGe(new Ku,n)},mV(UZe,"LayeredLayoutProvider",1127),hIe(356,22,{3:1,35:1,22:1,356:1},VC);var Hat,Uat,Qat,zat=$ne(UZe,"LayeredPhases",356,Wet,s5,x$);hIe(1651,1,{},mre),xKe.i=0,mV(QZe,"ComponentsToCGraphTransformer",1651),hIe(1652,1,{},bt),xKe.ef=function(e,t){return r.Math.min(null!=e.a?Uy(e.a):e.c.i,null!=t.a?Uy(t.a):t.c.i)},xKe.ff=function(e,t){return r.Math.min(null!=e.a?Uy(e.a):e.c.i,null!=t.a?Uy(t.a):t.c.i)},mV(QZe,"ComponentsToCGraphTransformer/1",1652),hIe(81,1,{81:1}),xKe.i=0,xKe.k=!0,xKe.o=Bqe;var Wat,Gat,Vat,Kat=mV(zZe,"CNode",81);hIe(460,81,{460:1,81:1},DR,Eme),xKe.Ib=function(){return""},mV(QZe,"ComponentsToCGraphTransformer/CRectNode",460),hIe(1623,1,{},yt),mV(QZe,"OneDimensionalComponentsCompaction",1623),hIe(1624,1,{},wt),xKe.Kb=function(e){return NZ($H(e,46))},xKe.Fb=function(e){return this===e},mV(QZe,"OneDimensionalComponentsCompaction/lambda$0$Type",1624),hIe(1625,1,{},_t),xKe.Kb=function(e){return wpe($H(e,46))},xKe.Fb=function(e){return this===e},mV(QZe,"OneDimensionalComponentsCompaction/lambda$1$Type",1625),hIe(1654,1,{},$V),mV(zZe,"CGraph",1654),hIe(189,1,{189:1},Sme),xKe.b=0,xKe.c=0,xKe.e=0,xKe.g=!0,xKe.i=Bqe,mV(zZe,"CGroup",189),hIe(1653,1,{},Ct),xKe.ef=function(e,t){return r.Math.max(null!=e.a?Uy(e.a):e.c.i,null!=t.a?Uy(t.a):t.c.i)},xKe.ff=function(e,t){return r.Math.max(null!=e.a?Uy(e.a):e.c.i,null!=t.a?Uy(t.a):t.c.i)},mV(zZe,kXe,1653),hIe(1655,1,{},sMe),xKe.d=!1;var Yat=mV(zZe,NXe,1655);hIe(1656,1,{},Tt),xKe.Kb=function(e){return bS(),lR(),0!=$H($H(e,46).a,81).d.e},xKe.Fb=function(e){return this===e},mV(zZe,RXe,1656),hIe(823,1,{},EQ),xKe.a=!1,xKe.b=!1,xKe.c=!1,xKe.d=!1,mV(zZe,LXe,823),hIe(1825,1,{},Rz),mV(WZe,BXe,1825);var qat=dQ(GZe,SXe);hIe(1826,1,{369:1},uX),xKe.Ke=function(e){ULe(this,$H(e,466))},mV(WZe,PXe,1826),hIe(1827,1,xXe,kt),xKe.ue=function(e,t){return aq($H(e,81),$H(t,81))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(WZe,FXe,1827),hIe(466,1,{466:1},cT),xKe.a=!1,mV(WZe,$Xe,466),hIe(1828,1,xXe,Ot),xKe.ue=function(e,t){return Jwe($H(e,466),$H(t,466))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(WZe,jXe,1828),hIe(140,1,{140:1},fT,vU),xKe.Fb=function(e){var t;return null!=e&&tst==Zle(e)&&(t=$H(e,140),rY(this.c,t.c)&&rY(this.d,t.d))},xKe.Hb=function(){return cue(Sse(Uw(Met,1),jKe,1,5,[this.c,this.d]))},xKe.Ib=function(){return"("+this.c+FKe+this.d+(this.a?"cx":"")+this.b+")"},xKe.a=!0,xKe.c=0,xKe.d=0;var Xat,Jat,Zat,est,tst=mV(GZe,"Point",140);hIe(405,22,{3:1,35:1,22:1,405:1},KC);var nst,rst,ist,ost,ast,sst,lst,cst,ust,dst,hst,fst=$ne(GZe,"Point/Quadrant",405,Wet,Z2,E$);hIe(1642,1,{},VA),xKe.b=null,xKe.c=null,xKe.d=null,xKe.e=null,xKe.f=null,mV(GZe,"RectilinearConvexHull",1642),hIe(574,1,{369:1},_ve),xKe.Ke=function(e){P7(this,$H(e,140))},xKe.b=0,mV(GZe,"RectilinearConvexHull/MaximalElementsEventHandler",574),hIe(1644,1,xXe,Et),xKe.ue=function(e,t){return RY(xB(e),xB(t))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(GZe,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1644),hIe(1643,1,{369:1},cte),xKe.Ke=function(e){SRe(this,$H(e,140))},xKe.a=0,xKe.b=null,xKe.c=null,xKe.d=null,xKe.e=null,mV(GZe,"RectilinearConvexHull/RectangleEventHandler",1643),hIe(1645,1,xXe,St),xKe.ue=function(e,t){return o1($H(e,140),$H(t,140))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(GZe,"RectilinearConvexHull/lambda$0$Type",1645),hIe(1646,1,xXe,xt),xKe.ue=function(e,t){return a1($H(e,140),$H(t,140))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(GZe,"RectilinearConvexHull/lambda$1$Type",1646),hIe(1647,1,xXe,Mt),xKe.ue=function(e,t){return l1($H(e,140),$H(t,140))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(GZe,"RectilinearConvexHull/lambda$2$Type",1647),hIe(1648,1,xXe,It),xKe.ue=function(e,t){return s1($H(e,140),$H(t,140))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(GZe,"RectilinearConvexHull/lambda$3$Type",1648),hIe(1649,1,xXe,Dt),xKe.ue=function(e,t){return ySe($H(e,140),$H(t,140))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(GZe,"RectilinearConvexHull/lambda$4$Type",1649),hIe(1650,1,{},kZ),mV(GZe,"Scanline",1650),hIe(2005,1,{}),mV(VZe,"AbstractGraphPlacer",2005),hIe(325,1,{325:1},WL),xKe.mf=function(e){return!!this.nf(e)&&(qOe(this.b,$H(vSe(e,(lKe(),Wdt)),21),e),!0)},xKe.nf=function(e){var t,n,r;for(t=$H(vSe(e,(lKe(),Wdt)),21),r=$H(l6(cst,t),21).Kc();r.Ob();)if(n=$H(r.Pb(),21),!$H(l6(this.b,n),15).dc())return!1;return!0},mV(VZe,"ComponentGroup",325),hIe(765,2005,{},KA),xKe.of=function(e){var t;for(t=new Gf(this.a);t.a<t.c.c.length;)if($H(J0(t),325).mf(e))return;GH(this.a,new WL(e))},xKe.lf=function(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p;if(this.a.c=N8(Met,jKe,1,0,5,1),t.a.c=N8(Met,jKe,1,0,5,1),e.dc())return t.f.a=0,void(t.f.b=0);for(Hae(t,a=$H(e.Xb(0),37)),i=e.Kc();i.Ob();)r=$H(i.Pb(),37),this.of(r);for(p=new U_,o=Uy(xB(vSe(a,(jVe(),vvt)))),c=new Gf(this.a);c.a<c.c.c.length;)u=_Ve(s=$H(J0(c),325),o),h7(_V(s.b),p.a,p.b),p.a+=u.a,p.b+=u.b;if(t.f.a=p.a-o,t.f.b=p.b-o,Hy(_B(vSe(a,xgt)))&&UO(vSe(a,Xgt))===UO((xfe(),KTt))){for(f=e.Kc();f.Ob();)XPe(d=$H(f.Pb(),37),d.c.a,d.c.b);for(BVe(n=new Nt,e,o),h=e.Kc();h.Ob();)zP(bM((d=$H(h.Pb(),37)).c),n.e);zP(bM(t.f),n.a)}for(l=new Gf(this.a);l.a<l.c.c.length;)f7(t,_V((s=$H(J0(l),325)).b))},mV(VZe,"ComponentGroupGraphPlacer",765),hIe(1293,765,{},lb),xKe.of=function(e){gde(this,e)},xKe.lf=function(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A;if(this.a.c=N8(Met,jKe,1,0,5,1),t.a.c=N8(Met,jKe,1,0,5,1),e.dc())return t.f.a=0,void(t.f.b=0);for(Hae(t,a=$H(e.Xb(0),37)),i=e.Kc();i.Ob();)gde(this,$H(i.Pb(),37));for(A=new U_,v=new U_,g=new U_,p=new U_,o=Uy(xB(vSe(a,(jVe(),vvt)))),c=new Gf(this.a);c.a<c.c.c.length;){if(s=$H(J0(c),325),fI($H(vSe(t,(sKe(),dCt)),103))){for(g.a=A.a,m=new uy(xV(bV(s.b).a).a.kc());m.b.Ob();)if($H(rC(m.b.Pb()),21).Hc((bGe(),sOt))){g.a=v.a;break}}else if(pI($H(vSe(t,dCt),103)))for(g.b=A.b,m=new uy(xV(bV(s.b).a).a.kc());m.b.Ob();)if($H(rC(m.b.Pb()),21).Hc((bGe(),COt))){g.b=v.b;break}if(u=_Ve($H(s,570),o),h7(_V(s.b),g.a,g.b),fI($H(vSe(t,dCt),103))){for(v.a=g.a+u.a,p.a=r.Math.max(p.a,v.a),m=new uy(xV(bV(s.b).a).a.kc());m.b.Ob();)if($H(rC(m.b.Pb()),21).Hc((bGe(),EOt))){A.a=g.a+u.a;break}v.b=g.b+u.b,g.b=v.b,p.b=r.Math.max(p.b,g.b)}else if(pI($H(vSe(t,dCt),103))){for(v.b=g.b+u.b,p.b=r.Math.max(p.b,v.b),m=new uy(xV(bV(s.b).a).a.kc());m.b.Ob();)if($H(rC(m.b.Pb()),21).Hc((bGe(),aOt))){A.b=g.b+u.b;break}v.a=g.a+u.a,g.a=v.a,p.a=r.Math.max(p.a,g.a)}}if(t.f.a=p.a-o,t.f.b=p.b-o,Hy(_B(vSe(a,xgt)))&&UO(vSe(a,Xgt))===UO((xfe(),KTt))){for(f=e.Kc();f.Ob();)XPe(d=$H(f.Pb(),37),d.c.a,d.c.b);for(BVe(n=new Nt,e,o),h=e.Kc();h.Ob();)zP(bM((d=$H(h.Pb(),37)).c),n.e);zP(bM(t.f),n.a)}for(l=new Gf(this.a);l.a<l.c.c.length;)f7(t,_V((s=$H(J0(l),325)).b))},mV(VZe,"ComponentGroupModelOrderGraphPlacer",1293),hIe(423,22,{3:1,35:1,22:1,423:1},YC);var pst,gst,mst,vst=$ne(VZe,"ComponentOrderingStrategy",423,Wet,b0,S$);hIe(650,1,{},Nt),mV(VZe,"ComponentsCompactor",650),hIe(1468,12,Kqe,m5),xKe.Fc=function(e){return Y_e(this,$H(e,140))},mV(VZe,"ComponentsCompactor/Hullpoints",1468),hIe(1465,1,{841:1},lAe),xKe.a=!1,mV(VZe,"ComponentsCompactor/InternalComponent",1465),hIe(1464,1,gYe,YA),xKe.Jc=function(e){e5(this,e)},xKe.Kc=function(){return new Gf(this.a)},mV(VZe,"ComponentsCompactor/InternalConnectedComponents",1464),hIe(1467,1,{594:1},fMe),xKe.hf=function(){return null},xKe.jf=function(){return this.a},xKe.gf=function(){return ove(this.d)},xKe.kf=function(){return this.b},mV(VZe,"ComponentsCompactor/InternalExternalExtension",1467),hIe(1466,1,{594:1},JA),xKe.jf=function(){return this.a},xKe.gf=function(){return ove(this.d)},xKe.hf=function(){return this.c},xKe.kf=function(){return this.b},mV(VZe,"ComponentsCompactor/InternalUnionExternalExtension",1466),hIe(1470,1,{},KLe),mV(VZe,"ComponentsCompactor/OuterSegments",1470),hIe(1469,1,{},qA),mV(VZe,"ComponentsCompactor/Segments",1469),hIe(1264,1,{},dX),mV(VZe,tZe,1264),hIe(1265,1,xXe,Rt),xKe.ue=function(e,t){return d1($H(e,37),$H(t,37))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(VZe,"ComponentsProcessor/lambda$0$Type",1265),hIe(570,325,{325:1,570:1},g5),xKe.mf=function(e){return fce(this,e)},xKe.nf=function(e){return dRe(this,e)},mV(VZe,"ModelOrderComponentGroup",570),hIe(1291,2005,{},Lt),xKe.lf=function(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_;if(1!=e.gc()){if(e.dc())return t.a.c=N8(Met,jKe,1,0,5,1),t.f.a=0,void(t.f.b=0);if(UO(vSe(t,(jVe(),Cgt)))===UO(($de(),hst))){for(c=e.Kc();c.Ob();){for(v=0,g=new Gf((s=$H(c.Pb(),37)).a);g.a<g.c.c.length;)p=$H(J0(g),10),v+=$H(vSe(p,lvt),19).a;s.p=v}Eq(),e.ad(new Bt)}for(a=$H(e.Xb(0),37),t.a.c=N8(Met,jKe,1,0,5,1),Hae(t,a),f=0,y=0,u=e.Kc();u.Ob();)A=(s=$H(u.Pb(),37)).f,f=r.Math.max(f,A.a),y+=A.a*A.b;for(f=r.Math.max(f,r.Math.sqrt(y)*Uy(xB(vSe(t,wgt)))),w=0,_=0,h=0,n=o=Uy(xB(vSe(t,vvt))),l=e.Kc();l.Ob();)w+(A=(s=$H(l.Pb(),37)).f).a>f&&(w=0,_+=h+o,h=0),XPe(s,w+(m=s.c).a,_+m.b),bM(m),n=r.Math.max(n,w+A.a),h=r.Math.max(h,A.b),w+=A.a+o;if(t.f.a=n,t.f.b=_+h,Hy(_B(vSe(a,xgt)))){for(BVe(i=new Nt,e,o),d=e.Kc();d.Ob();)zP(bM($H(d.Pb(),37).c),i.e);zP(bM(t.f),i.a)}f7(t,e)}else(b=$H(e.Xb(0),37))!=t&&(t.a.c=N8(Met,jKe,1,0,5,1),MFe(t,b,0,0),Hae(t,b),bq(t.d,b.d),t.f.a=b.f.a,t.f.b=b.f.b)},mV(VZe,"SimpleRowGraphPlacer",1291),hIe(1292,1,xXe,Bt),xKe.ue=function(e,t){return Qae($H(e,37),$H(t,37))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(VZe,"SimpleRowGraphPlacer/1",1292),hIe(1262,1,HXe,Pt),xKe.Lb=function(e){var t;return!!(t=$H(vSe($H(e,243).b,(jVe(),mmt)),74))&&0!=t.b},xKe.Fb=function(e){return this===e},xKe.Mb=function(e){var t;return!!(t=$H(vSe($H(e,243).b,(jVe(),mmt)),74))&&0!=t.b},mV(XZe,"CompoundGraphPostprocessor/1",1262),hIe(1261,1,JZe,eb),xKe.pf=function(e,t){vAe(this,$H(e,37),t)},mV(XZe,"CompoundGraphPreprocessor",1261),hIe(441,1,{441:1},Qde),xKe.c=!1,mV(XZe,"CompoundGraphPreprocessor/ExternalPort",441),hIe(243,1,{243:1},I$),xKe.Ib=function(){return fL(this.c)+":"+kOe(this.b)},mV(XZe,"CrossHierarchyEdge",243),hIe(763,1,xXe,Pp),xKe.ue=function(e,t){return Vye(this,$H(e,243),$H(t,243))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(XZe,"CrossHierarchyEdgeComparator",763),hIe(299,134,{3:1,299:1,94:1,134:1}),xKe.p=0,mV(ZZe,"LGraphElement",299),hIe(17,299,{3:1,17:1,299:1,94:1,134:1},hX),xKe.Ib=function(){return kOe(this)};var Ast=mV(ZZe,"LEdge",17);hIe(37,299,{3:1,20:1,37:1,299:1,94:1,134:1},vre),xKe.Jc=function(e){e5(this,e)},xKe.Kc=function(){return new Gf(this.b)},xKe.Ib=function(){return 0==this.b.c.length?"G-unlayered"+ISe(this.a):0==this.a.c.length?"G-layered"+ISe(this.b):"G[layerless"+ISe(this.a)+", layers"+ISe(this.b)+"]"};var bst,yst=mV(ZZe,"LGraph",37);hIe(657,1,{}),xKe.qf=function(){return this.e.n},xKe.We=function(e){return vSe(this.e,e)},xKe.rf=function(){return this.e.o},xKe.sf=function(){return this.e.p},xKe.Xe=function(e){return IL(this.e,e)},xKe.tf=function(e){this.e.n.a=e.a,this.e.n.b=e.b},xKe.uf=function(e){this.e.o.a=e.a,this.e.o.b=e.b},xKe.vf=function(e){this.e.p=e},mV(ZZe,"LGraphAdapters/AbstractLShapeAdapter",657),hIe(577,1,{839:1},Fp),xKe.wf=function(){var e,t;if(!this.b)for(this.b=sL(this.a.b.c.length),t=new Gf(this.a.b);t.a<t.c.c.length;)e=$H(J0(t),70),GH(this.b,new $p(e));return this.b},xKe.b=null,mV(ZZe,"LGraphAdapters/LEdgeAdapter",577),hIe(656,1,{},jY),xKe.xf=function(){var e,t,n,r,i;if(!this.b)for(this.b=new Dv,n=new Gf(this.a.b);n.a<n.c.c.length;)for(i=new Gf($H(J0(n),29).a);i.a<i.c.c.length;)if(r=$H(J0(i),10),this.c.Mb(r)&&(GH(this.b,new P$(this,r,this.e)),this.d)){if(IL(r,(lKe(),Bht)))for(t=$H(vSe(r,Bht),15).Kc();t.Ob();)e=$H(t.Pb(),10),GH(this.b,new P$(this,e,!1));if(IL(r,Rdt))for(t=$H(vSe(r,Rdt),15).Kc();t.Ob();)e=$H(t.Pb(),10),GH(this.b,new P$(this,e,!1))}return this.b},xKe.qf=function(){throw jv(new Zy(t0e))},xKe.We=function(e){return vSe(this.a,e)},xKe.rf=function(){return this.a.f},xKe.sf=function(){return this.a.p},xKe.Xe=function(e){return IL(this.a,e)},xKe.tf=function(e){throw jv(new Zy(t0e))},xKe.uf=function(e){this.a.f.a=e.a,this.a.f.b=e.b},xKe.vf=function(e){this.a.p=e},xKe.b=null,xKe.d=!1,xKe.e=!1,mV(ZZe,"LGraphAdapters/LGraphAdapter",656),hIe(576,657,{181:1},$p),mV(ZZe,"LGraphAdapters/LLabelAdapter",576),hIe(575,657,{680:1},P$),xKe.yf=function(){return this.b},xKe.zf=function(){return Eq(),Eq(),lnt},xKe.wf=function(){var e,t;if(!this.a)for(this.a=sL($H(this.e,10).b.c.length),t=new Gf($H(this.e,10).b);t.a<t.c.c.length;)e=$H(J0(t),70),GH(this.a,new $p(e));return this.a},xKe.Af=function(){var e;return new jP((e=$H(this.e,10).d).d,e.c,e.a,e.b)},xKe.Bf=function(){return Eq(),Eq(),lnt},xKe.Cf=function(){var e,t;if(!this.c)for(this.c=sL($H(this.e,10).j.c.length),t=new Gf($H(this.e,10).j);t.a<t.c.c.length;)e=$H(J0(t),11),GH(this.c,new pT(e,this.d));return this.c},xKe.Df=function(){return Hy(_B(vSe($H(this.e,10),(lKe(),Pdt))))},xKe.Ef=function(e){$H(this.e,10).d.b=e.b,$H(this.e,10).d.d=e.d,$H(this.e,10).d.c=e.c,$H(this.e,10).d.a=e.a},xKe.Ff=function(e){$H(this.e,10).f.b=e.b,$H(this.e,10).f.d=e.d,$H(this.e,10).f.c=e.c,$H(this.e,10).f.a=e.a},xKe.Gf=function(){Dte(this,(pS(),bst))},xKe.a=null,xKe.b=null,xKe.c=null,xKe.d=!1,mV(ZZe,"LGraphAdapters/LNodeAdapter",575),hIe(1722,657,{838:1},pT),xKe.zf=function(){var e,t,n,r;if(this.d&&$H(this.e,11).i.k==(oCe(),Tst))return Eq(),Eq(),lnt;if(!this.a){for(this.a=new Dv,n=new Gf($H(this.e,11).e);n.a<n.c.c.length;)e=$H(J0(n),17),GH(this.a,new Fp(e));if(this.d&&(r=$H(vSe($H(this.e,11),(lKe(),wht)),10)))for(t=new aW(XN(cfe(r).a.Kc(),new u));fIe(t);)e=$H(z5(t),17),GH(this.a,new Fp(e))}return this.a},xKe.wf=function(){var e,t;if(!this.b)for(this.b=sL($H(this.e,11).f.c.length),t=new Gf($H(this.e,11).f);t.a<t.c.c.length;)e=$H(J0(t),70),GH(this.b,new $p(e));return this.b},xKe.Bf=function(){var e,t,n,r;if(this.d&&$H(this.e,11).i.k==(oCe(),Tst))return Eq(),Eq(),lnt;if(!this.c){for(this.c=new Dv,n=new Gf($H(this.e,11).g);n.a<n.c.c.length;)e=$H(J0(n),17),GH(this.c,new Fp(e));if(this.d&&(r=$H(vSe($H(this.e,11),(lKe(),wht)),10)))for(t=new aW(XN(ufe(r).a.Kc(),new u));fIe(t);)e=$H(z5(t),17),GH(this.c,new Fp(e))}return this.c},xKe.Hf=function(){return $H(this.e,11).j},xKe.If=function(){return Hy(_B(vSe($H(this.e,11),(lKe(),eht))))},xKe.a=null,xKe.b=null,xKe.c=null,xKe.d=!1,mV(ZZe,"LGraphAdapters/LPortAdapter",1722),hIe(1723,1,xXe,Ft),xKe.ue=function(e,t){return GBe($H(e,11),$H(t,11))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(ZZe,"LGraphAdapters/PortComparator",1723),hIe(804,1,RYe,$t),xKe.Mb=function(e){return $H(e,10),pS(),!0},mV(ZZe,"LGraphAdapters/lambda$0$Type",804),hIe(392,299,{3:1,299:1,392:1,94:1,134:1}),mV(ZZe,"LShape",392),hIe(70,392,{3:1,299:1,70:1,392:1,94:1,134:1},H_,kD),xKe.Ib=function(){var e;return null==(e=YU(this))?"label":"l_"+e},mV(ZZe,"LLabel",70),hIe(207,1,{3:1,4:1,207:1,414:1}),xKe.Fb=function(e){var t;return!!rN(e,207)&&(t=$H(e,207),this.d==t.d&&this.a==t.a&&this.b==t.b&&this.c==t.c)},xKe.Hb=function(){var e,t;return e=VM(this.b)<<16,e|=VM(this.a)&KYe,t=VM(this.c)<<16,e^(t|VM(this.d)&KYe)},xKe.Jf=function(e){var t,n,r,i,o,a,s,l,c;for(i=0;i<e.length&&Rue((d0(i,e.length),e.charCodeAt(i)),a0e);)++i;for(t=e.length;t>0&&Rue((d0(t-1,e.length),e.charCodeAt(t-1)),s0e);)--t;if(i<t){l=bFe(e.substr(i,t-i),",|;");try{for(a=0,s=(o=l).length;a<s;++a){if(2!=(r=bFe(o[a],"=")).length)throw jv(new Py("Expecting a list of key-value pairs."));n=LSe(r[0]),c=dCe(LSe(r[1])),vF(n,"top")?this.d=c:vF(n,"left")?this.b=c:vF(n,"bottom")?this.a=c:vF(n,"right")&&(this.c=c)}}catch(e){throw rN(e=use(e),127)?jv(new Py(l0e+e)):jv(e)}}},xKe.Ib=function(){return"[top="+this.d+",left="+this.b+",bottom="+this.a+",right="+this.c+"]"},xKe.a=0,xKe.b=0,xKe.c=0,xKe.d=0,mV(c0e,"Spacing",207),hIe(142,207,u0e,ub,uI,jP,O$);var wst=mV(c0e,"ElkMargin",142);hIe(651,142,u0e,cb),mV(ZZe,"LMargin",651),hIe(10,392,{3:1,299:1,10:1,392:1,94:1,134:1},MAe),xKe.Ib=function(){return Mve(this)},xKe.i=!1;var _st,xst,Est,Sst,Cst,Tst,kst=mV(ZZe,"LNode",10);hIe(267,22,{3:1,35:1,22:1,267:1},qC);var Ost,Mst=$ne(ZZe,"LNode/NodeType",267,Wet,o7,T$);hIe(116,207,d0e,db,GI,k$);var Ist,Dst,Nst,Rst,Lst,Bst,Pst=mV(c0e,"ElkPadding",116);hIe(764,116,d0e,hb),mV(ZZe,"LPadding",764),hIe(11,392,{3:1,299:1,11:1,392:1,94:1,134:1},CCe),xKe.Ib=function(){var e,t,n;return aM(((e=new Cw).a+="p_",e),gye(this)),this.i&&aM(oM((e.a+="[",e),this.i),"]"),1==this.e.c.length&&0==this.g.c.length&&$H(NQ(this.e,0),17).c!=this&&(t=$H(NQ(this.e,0),17).c,aM((e.a+=" << ",e),gye(t)),aM(oM((e.a+="[",e),t.i),"]")),0==this.e.c.length&&1==this.g.c.length&&$H(NQ(this.g,0),17).d!=this&&(n=$H(NQ(this.g,0),17).d,aM((e.a+=" >> ",e),gye(n)),aM(oM((e.a+="[",e),n.i),"]")),e.a},xKe.c=!0,xKe.d=!1;var Fst,$st,jst,Hst,Ust=mV(ZZe,"LPort",11);hIe(397,1,gYe,jp),xKe.Jc=function(e){e5(this,e)},xKe.Kc=function(){return new Hp(new Gf(this.a.e))},mV(ZZe,"LPort/1",397),hIe(1290,1,KKe,Hp),xKe.Nb=function(e){cG(this,e)},xKe.Pb=function(){return $H(J0(this.a),17).c},xKe.Ob=function(){return AD(this.a)},xKe.Qb=function(){OG(this.a)},mV(ZZe,"LPort/1/1",1290),hIe(359,1,gYe,Up),xKe.Jc=function(e){e5(this,e)},xKe.Kc=function(){return new Qp(new Gf(this.a.g))},mV(ZZe,"LPort/2",359),hIe(762,1,KKe,Qp),xKe.Nb=function(e){cG(this,e)},xKe.Pb=function(){return $H(J0(this.a),17).d},xKe.Ob=function(){return AD(this.a)},xKe.Qb=function(){OG(this.a)},mV(ZZe,"LPort/2/1",762),hIe(1283,1,gYe,lT),xKe.Jc=function(e){e5(this,e)},xKe.Kc=function(){return new v6(this)},mV(ZZe,"LPort/CombineIter",1283),hIe(201,1,KKe,v6),xKe.Nb=function(e){cG(this,e)},xKe.Qb=function(){ox()},xKe.Ob=function(){return QR(this)},xKe.Pb=function(){return AD(this.a)?J0(this.a):J0(this.b)},mV(ZZe,"LPort/CombineIter/1",201),hIe(1285,1,HXe,jt),xKe.Lb=function(e){return OW(e)},xKe.Fb=function(e){return this===e},xKe.Mb=function(e){return poe(),0!=$H(e,11).e.c.length},mV(ZZe,"LPort/lambda$0$Type",1285),hIe(1284,1,HXe,Ht),xKe.Lb=function(e){return MW(e)},xKe.Fb=function(e){return this===e},xKe.Mb=function(e){return poe(),0!=$H(e,11).g.c.length},mV(ZZe,"LPort/lambda$1$Type",1284),hIe(1286,1,HXe,Ut),xKe.Lb=function(e){return poe(),$H(e,11).j==(bGe(),sOt)},xKe.Fb=function(e){return this===e},xKe.Mb=function(e){return poe(),$H(e,11).j==(bGe(),sOt)},mV(ZZe,"LPort/lambda$2$Type",1286),hIe(1287,1,HXe,Qt),xKe.Lb=function(e){return poe(),$H(e,11).j==(bGe(),aOt)},xKe.Fb=function(e){return this===e},xKe.Mb=function(e){return poe(),$H(e,11).j==(bGe(),aOt)},mV(ZZe,"LPort/lambda$3$Type",1287),hIe(1288,1,HXe,zt),xKe.Lb=function(e){return poe(),$H(e,11).j==(bGe(),EOt)},xKe.Fb=function(e){return this===e},xKe.Mb=function(e){return poe(),$H(e,11).j==(bGe(),EOt)},mV(ZZe,"LPort/lambda$4$Type",1288),hIe(1289,1,HXe,Wt),xKe.Lb=function(e){return poe(),$H(e,11).j==(bGe(),COt)},xKe.Fb=function(e){return this===e},xKe.Mb=function(e){return poe(),$H(e,11).j==(bGe(),COt)},mV(ZZe,"LPort/lambda$5$Type",1289),hIe(29,299,{3:1,20:1,299:1,29:1,94:1,134:1},jV),xKe.Jc=function(e){e5(this,e)},xKe.Kc=function(){return new Gf(this.a)},xKe.Ib=function(){return"L_"+w9(this.b.b,this,0)+ISe(this.a)},mV(ZZe,"Layer",29),hIe(1342,1,{},ZA),mV(f0e,p0e,1342),hIe(1346,1,{},Gt),xKe.Kb=function(e){return SEe($H(e,82))},mV(f0e,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1346),hIe(1349,1,{},Vt),xKe.Kb=function(e){return SEe($H(e,82))},mV(f0e,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1349),hIe(1343,1,uYe,zp),xKe.td=function(e){SMe(this.a,$H(e,118))},mV(f0e,g0e,1343),hIe(1344,1,uYe,Wp),xKe.td=function(e){SMe(this.a,$H(e,118))},mV(f0e,m0e,1344),hIe(1345,1,{},Kt),xKe.Kb=function(e){return new LQ(null,new h0(gY($H(e,79)),16))},mV(f0e,v0e,1345),hIe(1347,1,RYe,Gp),xKe.Mb=function(e){return PI(this.a,$H(e,33))},mV(f0e,A0e,1347),hIe(1348,1,{},Yt),xKe.Kb=function(e){return new LQ(null,new h0(mY($H(e,79)),16))},mV(f0e,"ElkGraphImporter/lambda$5$Type",1348),hIe(1350,1,RYe,Vp),xKe.Mb=function(e){return FI(this.a,$H(e,33))},mV(f0e,"ElkGraphImporter/lambda$7$Type",1350),hIe(1351,1,RYe,qt),xKe.Mb=function(e){return Oq($H(e,79))},mV(f0e,"ElkGraphImporter/lambda$8$Type",1351),hIe(1278,1,{},Ku),mV(f0e,"ElkGraphLayoutTransferrer",1278),hIe(1279,1,RYe,Kp),xKe.Mb=function(e){return qP(this.a,$H(e,17))},mV(f0e,"ElkGraphLayoutTransferrer/lambda$0$Type",1279),hIe(1280,1,uYe,Yp),xKe.td=function(e){vS(),GH(this.a,$H(e,17))},mV(f0e,"ElkGraphLayoutTransferrer/lambda$1$Type",1280),hIe(1281,1,RYe,qp),xKe.Mb=function(e){return zB(this.a,$H(e,17))},mV(f0e,"ElkGraphLayoutTransferrer/lambda$2$Type",1281),hIe(1282,1,uYe,Xp),xKe.td=function(e){vS(),GH(this.a,$H(e,17))},mV(f0e,"ElkGraphLayoutTransferrer/lambda$3$Type",1282),hIe(1485,1,JZe,Xt),xKe.pf=function(e,t){Vie($H(e,37),t)},mV(y0e,"CommentNodeMarginCalculator",1485),hIe(1486,1,{},Jt),xKe.Kb=function(e){return new LQ(null,new h0($H(e,29).a,16))},mV(y0e,"CommentNodeMarginCalculator/lambda$0$Type",1486),hIe(1487,1,uYe,Zt),xKe.td=function(e){ZHe($H(e,10))},mV(y0e,"CommentNodeMarginCalculator/lambda$1$Type",1487),hIe(1488,1,JZe,en),xKe.pf=function(e,t){iBe($H(e,37),t)},mV(y0e,"CommentPostprocessor",1488),hIe(1489,1,JZe,tn),xKe.pf=function(e,t){oGe($H(e,37),t)},mV(y0e,"CommentPreprocessor",1489),hIe(1490,1,JZe,nn),xKe.pf=function(e,t){yNe($H(e,37),t)},mV(y0e,"ConstraintsPostprocessor",1490),hIe(1491,1,JZe,rn),xKe.pf=function(e,t){rae($H(e,37),t)},mV(y0e,"EdgeAndLayerConstraintEdgeReverser",1491),hIe(1492,1,JZe,on),xKe.pf=function(e,t){Upe($H(e,37),t)},mV(y0e,"EndLabelPostprocessor",1492),hIe(1493,1,{},an),xKe.Kb=function(e){return new LQ(null,new h0($H(e,29).a,16))},mV(y0e,"EndLabelPostprocessor/lambda$0$Type",1493),hIe(1494,1,RYe,sn),xKe.Mb=function(e){return xX($H(e,10))},mV(y0e,"EndLabelPostprocessor/lambda$1$Type",1494),hIe(1495,1,uYe,ln),xKe.td=function(e){e_e($H(e,10))},mV(y0e,"EndLabelPostprocessor/lambda$2$Type",1495),hIe(1496,1,JZe,cn),xKe.pf=function(e,t){XTe($H(e,37),t)},mV(y0e,"EndLabelPreprocessor",1496),hIe(1497,1,{},un),xKe.Kb=function(e){return new LQ(null,new h0($H(e,29).a,16))},mV(y0e,"EndLabelPreprocessor/lambda$0$Type",1497),hIe(1498,1,uYe,R$),xKe.td=function(e){BS(this.a,this.b,this.c,$H(e,10))},xKe.a=0,xKe.b=0,xKe.c=!1,mV(y0e,"EndLabelPreprocessor/lambda$1$Type",1498),hIe(1499,1,RYe,dn),xKe.Mb=function(e){return UO(vSe($H(e,70),(jVe(),Ygt)))===UO((Lte(),WTt))},mV(y0e,"EndLabelPreprocessor/lambda$2$Type",1499),hIe(1500,1,uYe,Jp),xKe.td=function(e){RU(this.a,$H(e,70))},mV(y0e,"EndLabelPreprocessor/lambda$3$Type",1500),hIe(1501,1,RYe,hn),xKe.Mb=function(e){return UO(vSe($H(e,70),(jVe(),Ygt)))===UO((Lte(),zTt))},mV(y0e,"EndLabelPreprocessor/lambda$4$Type",1501),hIe(1502,1,uYe,Zp),xKe.td=function(e){RU(this.a,$H(e,70))},mV(y0e,"EndLabelPreprocessor/lambda$5$Type",1502),hIe(1551,1,JZe,Vu),xKe.pf=function(e,t){Che($H(e,37),t)},mV(y0e,"EndLabelSorter",1551),hIe(1552,1,xXe,fn),xKe.ue=function(e,t){return jme($H(e,456),$H(t,456))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(y0e,"EndLabelSorter/1",1552),hIe(456,1,{456:1},_q),mV(y0e,"EndLabelSorter/LabelGroup",456),hIe(1553,1,{},pn),xKe.Kb=function(e){return wS(),new LQ(null,new h0($H(e,29).a,16))},mV(y0e,"EndLabelSorter/lambda$0$Type",1553),hIe(1554,1,RYe,gn),xKe.Mb=function(e){return wS(),$H(e,10).k==(oCe(),Cst)},mV(y0e,"EndLabelSorter/lambda$1$Type",1554),hIe(1555,1,uYe,mn),xKe.td=function(e){aCe($H(e,10))},mV(y0e,"EndLabelSorter/lambda$2$Type",1555),hIe(1556,1,RYe,vn),xKe.Mb=function(e){return wS(),UO(vSe($H(e,70),(jVe(),Ygt)))===UO((Lte(),zTt))},mV(y0e,"EndLabelSorter/lambda$3$Type",1556),hIe(1557,1,RYe,An),xKe.Mb=function(e){return wS(),UO(vSe($H(e,70),(jVe(),Ygt)))===UO((Lte(),WTt))},mV(y0e,"EndLabelSorter/lambda$4$Type",1557),hIe(1503,1,JZe,bn),xKe.pf=function(e,t){TUe(this,$H(e,37))},xKe.b=0,xKe.c=0,mV(y0e,"FinalSplineBendpointsCalculator",1503),hIe(1504,1,{},yn),xKe.Kb=function(e){return new LQ(null,new h0($H(e,29).a,16))},mV(y0e,"FinalSplineBendpointsCalculator/lambda$0$Type",1504),hIe(1505,1,{},wn),xKe.Kb=function(e){return new LQ(null,new QG(new aW(XN(ufe($H(e,10)).a.Kc(),new u))))},mV(y0e,"FinalSplineBendpointsCalculator/lambda$1$Type",1505),hIe(1506,1,RYe,_n),xKe.Mb=function(e){return!d5($H(e,17))},mV(y0e,"FinalSplineBendpointsCalculator/lambda$2$Type",1506),hIe(1507,1,RYe,xn),xKe.Mb=function(e){return IL($H(e,17),(lKe(),Dht))},mV(y0e,"FinalSplineBendpointsCalculator/lambda$3$Type",1507),hIe(1508,1,uYe,eg),xKe.td=function(e){QFe(this.a,$H(e,128))},mV(y0e,"FinalSplineBendpointsCalculator/lambda$4$Type",1508),hIe(1509,1,uYe,En),xKe.td=function(e){qTe($H(e,17).a)},mV(y0e,"FinalSplineBendpointsCalculator/lambda$5$Type",1509),hIe(792,1,JZe,tg),xKe.pf=function(e,t){VQe(this,$H(e,37),t)},mV(y0e,"GraphTransformer",792),hIe(511,22,{3:1,35:1,22:1,511:1},XC);var Qst,zst,Wst,Gst=$ne(y0e,"GraphTransformer/Mode",511,Wet,oJ,Zj);hIe(1510,1,JZe,Sn),xKe.pf=function(e,t){eLe($H(e,37),t)},mV(y0e,"HierarchicalNodeResizingProcessor",1510),hIe(1511,1,JZe,Cn),xKe.pf=function(e,t){uie($H(e,37),t)},mV(y0e,"HierarchicalPortConstraintProcessor",1511),hIe(1512,1,xXe,Tn),xKe.ue=function(e,t){return Tve($H(e,10),$H(t,10))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(y0e,"HierarchicalPortConstraintProcessor/NodeComparator",1512),hIe(1513,1,JZe,kn),xKe.pf=function(e,t){yHe($H(e,37),t)},mV(y0e,"HierarchicalPortDummySizeProcessor",1513),hIe(1514,1,JZe,On),xKe.pf=function(e,t){qBe(this,$H(e,37),t)},xKe.a=0,mV(y0e,"HierarchicalPortOrthogonalEdgeRouter",1514),hIe(1515,1,xXe,Mn),xKe.ue=function(e,t){return PR($H(e,10),$H(t,10))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(y0e,"HierarchicalPortOrthogonalEdgeRouter/1",1515),hIe(1516,1,xXe,In),xKe.ue=function(e,t){return S7($H(e,10),$H(t,10))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(y0e,"HierarchicalPortOrthogonalEdgeRouter/2",1516),hIe(1517,1,JZe,Dn),xKe.pf=function(e,t){wSe($H(e,37),t)},mV(y0e,"HierarchicalPortPositionProcessor",1517),hIe(1518,1,JZe,Yu),xKe.pf=function(e,t){nVe(this,$H(e,37))},xKe.a=0,xKe.c=0,mV(y0e,"HighDegreeNodeLayeringProcessor",1518),hIe(571,1,{571:1},Nn),xKe.b=-1,xKe.d=-1,mV(y0e,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",571),hIe(1519,1,{},Rn),xKe.Kb=function(e){return H$(),cfe($H(e,10))},xKe.Fb=function(e){return this===e},mV(y0e,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1519),hIe(1520,1,{},Ln),xKe.Kb=function(e){return H$(),ufe($H(e,10))},xKe.Fb=function(e){return this===e},mV(y0e,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1520),hIe(1526,1,JZe,Bn),xKe.pf=function(e,t){fje(this,$H(e,37),t)},mV(y0e,"HyperedgeDummyMerger",1526),hIe(793,1,{},L$),xKe.a=!1,xKe.b=!1,xKe.c=!1,mV(y0e,"HyperedgeDummyMerger/MergeState",793),hIe(1527,1,{},Pn),xKe.Kb=function(e){return new LQ(null,new h0($H(e,29).a,16))},mV(y0e,"HyperedgeDummyMerger/lambda$0$Type",1527),hIe(1528,1,{},Fn),xKe.Kb=function(e){return new LQ(null,new h0($H(e,10).j,16))},mV(y0e,"HyperedgeDummyMerger/lambda$1$Type",1528),hIe(1529,1,uYe,$n),xKe.td=function(e){$H(e,11).p=-1},mV(y0e,"HyperedgeDummyMerger/lambda$2$Type",1529),hIe(1530,1,JZe,jn),xKe.pf=function(e,t){dje($H(e,37),t)},mV(y0e,"HypernodesProcessor",1530),hIe(1531,1,JZe,Hn),xKe.pf=function(e,t){hje($H(e,37),t)},mV(y0e,"InLayerConstraintProcessor",1531),hIe(1532,1,JZe,Un),xKe.pf=function(e,t){Ioe($H(e,37),t)},mV(y0e,"InnermostNodeMarginCalculator",1532),hIe(1533,1,JZe,Qn),xKe.pf=function(e,t){VWe(this,$H(e,37))},xKe.a=Bqe,xKe.b=Bqe,xKe.c=Lqe,xKe.d=Lqe;var Vst,Kst,Yst,qst,Xst,Jst,Zst,elt,tlt,nlt,rlt,ilt,olt,alt,slt,llt,clt,ult,dlt,hlt,flt,plt,glt,mlt,vlt,Alt,blt,ylt,wlt,_lt,xlt,Elt,Slt,Clt,Tlt,klt,Olt,Mlt,Ilt,Dlt,Nlt,Rlt,Llt,Blt,Plt,Flt,$lt,jlt,Hlt,Ult,Qlt,zlt,Wlt,Glt,Vlt,Klt,Ylt,qlt=mV(y0e,"InteractiveExternalPortPositioner",1533);hIe(1534,1,{},zn),xKe.Kb=function(e){return $H(e,17).d.i},xKe.Fb=function(e){return this===e},mV(y0e,"InteractiveExternalPortPositioner/lambda$0$Type",1534),hIe(1535,1,{},ng),xKe.Kb=function(e){return HR(this.a,xB(e))},xKe.Fb=function(e){return this===e},mV(y0e,"InteractiveExternalPortPositioner/lambda$1$Type",1535),hIe(1536,1,{},Wn),xKe.Kb=function(e){return $H(e,17).c.i},xKe.Fb=function(e){return this===e},mV(y0e,"InteractiveExternalPortPositioner/lambda$2$Type",1536),hIe(1537,1,{},rg),xKe.Kb=function(e){return UR(this.a,xB(e))},xKe.Fb=function(e){return this===e},mV(y0e,"InteractiveExternalPortPositioner/lambda$3$Type",1537),hIe(1538,1,{},ig),xKe.Kb=function(e){return GP(this.a,xB(e))},xKe.Fb=function(e){return this===e},mV(y0e,"InteractiveExternalPortPositioner/lambda$4$Type",1538),hIe(1539,1,{},og),xKe.Kb=function(e){return VP(this.a,xB(e))},xKe.Fb=function(e){return this===e},mV(y0e,"InteractiveExternalPortPositioner/lambda$5$Type",1539),hIe(77,22,{3:1,35:1,22:1,77:1,234:1},JC),xKe.Kf=function(){switch(this.g){case 15:return new mo;case 22:return new vo;case 47:return new yo;case 28:case 35:return new nr;case 32:return new Xt;case 42:return new en;case 1:return new tn;case 41:return new nn;case 56:return new tg((Eie(),Hst));case 0:return new tg((Eie(),jst));case 2:return new rn;case 54:return new on;case 33:return new cn;case 51:return new bn;case 55:return new Sn;case 13:return new Cn;case 38:return new kn;case 44:return new On;case 40:return new Dn;case 9:return new Yu;case 49:return new aL;case 37:return new Bn;case 43:return new jn;case 27:return new Hn;case 30:return new Un;case 3:return new Qn;case 18:return new Vn;case 29:return new Kn;case 5:return new qu;case 50:return new Gn;case 34:return new Xu;case 36:return new rr;case 52:return new Vu;case 11:return new or;case 7:return new Zu;case 39:return new ar;case 45:return new sr;case 16:return new lr;case 10:return new cr;case 48:return new dr;case 21:return new hr;case 23:return new Dy((are(),Obt));case 8:return new pr;case 12:return new mr;case 4:return new vr;case 19:return new rd;case 17:return new Tr;case 53:return new kr;case 6:return new Hr;case 25:return new ib;case 46:return new Rr;case 31:return new NP;case 14:return new Yr;case 26:return new To;case 20:return new ei;case 24:return new Dy((are(),Mbt));default:throw jv(new Py(x0e+(null!=this.f?this.f:""+this.g)))}};var Xlt,Jlt,Zlt,ect,tct,nct,rct,ict,oct=$ne(y0e,E0e,77,Wet,wRe,Jj);hIe(1540,1,JZe,Vn),xKe.pf=function(e,t){qWe($H(e,37),t)},mV(y0e,"InvertedPortProcessor",1540),hIe(1541,1,JZe,Kn),xKe.pf=function(e,t){IFe($H(e,37),t)},mV(y0e,"LabelAndNodeSizeProcessor",1541),hIe(1542,1,RYe,Yn),xKe.Mb=function(e){return $H(e,10).k==(oCe(),Cst)},mV(y0e,"LabelAndNodeSizeProcessor/lambda$0$Type",1542),hIe(1543,1,RYe,qn),xKe.Mb=function(e){return $H(e,10).k==(oCe(),xst)},mV(y0e,"LabelAndNodeSizeProcessor/lambda$1$Type",1543),hIe(1544,1,uYe,B$),xKe.td=function(e){PS(this.b,this.a,this.c,$H(e,10))},xKe.a=!1,xKe.c=!1,mV(y0e,"LabelAndNodeSizeProcessor/lambda$2$Type",1544),hIe(1545,1,JZe,qu),xKe.pf=function(e,t){cWe($H(e,37),t)},mV(y0e,"LabelDummyInserter",1545),hIe(1546,1,HXe,Xn),xKe.Lb=function(e){return UO(vSe($H(e,70),(jVe(),Ygt)))===UO((Lte(),QTt))},xKe.Fb=function(e){return this===e},xKe.Mb=function(e){return UO(vSe($H(e,70),(jVe(),Ygt)))===UO((Lte(),QTt))},mV(y0e,"LabelDummyInserter/1",1546),hIe(1547,1,JZe,Gn),xKe.pf=function(e,t){SQe($H(e,37),t)},mV(y0e,"LabelDummyRemover",1547),hIe(1548,1,RYe,Jn),xKe.Mb=function(e){return Hy(_B(vSe($H(e,70),(jVe(),Kgt))))},mV(y0e,"LabelDummyRemover/lambda$0$Type",1548),hIe(1359,1,JZe,Xu),xKe.pf=function(e,t){_ze(this,$H(e,37),t)},xKe.a=null,mV(y0e,"LabelDummySwitcher",1359),hIe(286,1,{286:1},rFe),xKe.c=0,xKe.d=null,xKe.f=0,mV(y0e,"LabelDummySwitcher/LabelDummyInfo",286),hIe(1360,1,{},Zn),xKe.Kb=function(e){return Tie(),new LQ(null,new h0($H(e,29).a,16))},mV(y0e,"LabelDummySwitcher/lambda$0$Type",1360),hIe(1361,1,RYe,er),xKe.Mb=function(e){return Tie(),$H(e,10).k==(oCe(),Est)},mV(y0e,"LabelDummySwitcher/lambda$1$Type",1361),hIe(1362,1,{},lg),xKe.Kb=function(e){return WB(this.a,$H(e,10))},mV(y0e,"LabelDummySwitcher/lambda$2$Type",1362),hIe(1363,1,uYe,cg),xKe.td=function(e){YV(this.a,$H(e,286))},mV(y0e,"LabelDummySwitcher/lambda$3$Type",1363),hIe(1364,1,xXe,tr),xKe.ue=function(e,t){return IW($H(e,286),$H(t,286))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(y0e,"LabelDummySwitcher/lambda$4$Type",1364),hIe(791,1,JZe,nr),xKe.pf=function(e,t){Y6($H(e,37),t)},mV(y0e,"LabelManagementProcessor",791),hIe(1549,1,JZe,rr),xKe.pf=function(e,t){DLe($H(e,37),t)},mV(y0e,"LabelSideSelector",1549),hIe(1550,1,RYe,ir),xKe.Mb=function(e){return Hy(_B(vSe($H(e,70),(jVe(),Kgt))))},mV(y0e,"LabelSideSelector/lambda$0$Type",1550),hIe(1558,1,JZe,or),xKe.pf=function(e,t){wHe($H(e,37),t)},mV(y0e,"LayerConstraintPostprocessor",1558),hIe(1559,1,JZe,Zu),xKe.pf=function(e,t){nDe($H(e,37),t)},mV(y0e,"LayerConstraintPreprocessor",1559),hIe(360,22,{3:1,35:1,22:1,360:1},ZC);var act,sct,lct,cct,uct,dct,hct,fct,pct,gct=$ne(y0e,"LayerConstraintPreprocessor/HiddenNodeConnections",360,Wet,e3,Q$);hIe(1560,1,JZe,ar),xKe.pf=function(e,t){wQe($H(e,37),t)},mV(y0e,"LayerSizeAndGraphHeightCalculator",1560),hIe(1561,1,JZe,sr),xKe.pf=function(e,t){ONe($H(e,37),t)},mV(y0e,"LongEdgeJoiner",1561),hIe(1562,1,JZe,lr),xKe.pf=function(e,t){GUe($H(e,37),t)},mV(y0e,"LongEdgeSplitter",1562),hIe(1563,1,JZe,cr),xKe.pf=function(e,t){Sze(this,$H(e,37),t)},xKe.d=0,xKe.e=0,xKe.i=0,xKe.j=0,xKe.k=0,xKe.n=0,mV(y0e,"NodePromotion",1563),hIe(1564,1,{},ur),xKe.Kb=function(e){return $H(e,46),lR(),!0},xKe.Fb=function(e){return this===e},mV(y0e,"NodePromotion/lambda$0$Type",1564),hIe(1565,1,{},ag),xKe.Kb=function(e){return iY(this.a,$H(e,46))},xKe.Fb=function(e){return this===e},xKe.a=0,mV(y0e,"NodePromotion/lambda$1$Type",1565),hIe(1566,1,{},sg),xKe.Kb=function(e){return oY(this.a,$H(e,46))},xKe.Fb=function(e){return this===e},xKe.a=0,mV(y0e,"NodePromotion/lambda$2$Type",1566),hIe(1567,1,JZe,dr),xKe.pf=function(e,t){WGe($H(e,37),t)},mV(y0e,"NorthSouthPortPostprocessor",1567),hIe(1568,1,JZe,hr),xKe.pf=function(e,t){xGe($H(e,37),t)},mV(y0e,"NorthSouthPortPreprocessor",1568),hIe(1569,1,xXe,fr),xKe.ue=function(e,t){return Xae($H(e,11),$H(t,11))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(y0e,"NorthSouthPortPreprocessor/lambda$0$Type",1569),hIe(1570,1,JZe,pr),xKe.pf=function(e,t){M$e($H(e,37),t)},mV(y0e,"PartitionMidprocessor",1570),hIe(1571,1,RYe,gr),xKe.Mb=function(e){return IL($H(e,10),(jVe(),Gmt))},mV(y0e,"PartitionMidprocessor/lambda$0$Type",1571),hIe(1572,1,uYe,ug),xKe.td=function(e){Mq(this.a,$H(e,10))},mV(y0e,"PartitionMidprocessor/lambda$1$Type",1572),hIe(1573,1,JZe,mr),xKe.pf=function(e,t){hRe($H(e,37),t)},mV(y0e,"PartitionPostprocessor",1573),hIe(1574,1,JZe,vr),xKe.pf=function(e,t){DMe($H(e,37),t)},mV(y0e,"PartitionPreprocessor",1574),hIe(1575,1,RYe,Ar),xKe.Mb=function(e){return IL($H(e,10),(jVe(),Gmt))},mV(y0e,"PartitionPreprocessor/lambda$0$Type",1575),hIe(1576,1,{},br),xKe.Kb=function(e){return new LQ(null,new QG(new aW(XN(ufe($H(e,10)).a.Kc(),new u))))},mV(y0e,"PartitionPreprocessor/lambda$1$Type",1576),hIe(1577,1,RYe,yr),xKe.Mb=function(e){return Ime($H(e,17))},mV(y0e,"PartitionPreprocessor/lambda$2$Type",1577),hIe(1578,1,uYe,wr),xKe.td=function(e){Lse($H(e,17))},mV(y0e,"PartitionPreprocessor/lambda$3$Type",1578),hIe(1579,1,JZe,rd),xKe.pf=function(e,t){o$e($H(e,37),t)},mV(y0e,"PortListSorter",1579),hIe(1580,1,{},_r),xKe.Kb=function(e){return Qce(),$H(e,11).e},mV(y0e,"PortListSorter/lambda$0$Type",1580),hIe(1581,1,{},xr),xKe.Kb=function(e){return Qce(),$H(e,11).g},mV(y0e,"PortListSorter/lambda$1$Type",1581),hIe(1582,1,xXe,Er),xKe.ue=function(e,t){return _4($H(e,11),$H(t,11))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(y0e,"PortListSorter/lambda$2$Type",1582),hIe(1583,1,xXe,Sr),xKe.ue=function(e,t){return kye($H(e,11),$H(t,11))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(y0e,"PortListSorter/lambda$3$Type",1583),hIe(1584,1,xXe,Cr),xKe.ue=function(e,t){return J$e($H(e,11),$H(t,11))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(y0e,"PortListSorter/lambda$4$Type",1584),hIe(1585,1,JZe,Tr),xKe.pf=function(e,t){GIe($H(e,37),t)},mV(y0e,"PortSideProcessor",1585),hIe(1586,1,JZe,kr),xKe.pf=function(e,t){TPe($H(e,37),t)},mV(y0e,"ReversedEdgeRestorer",1586),hIe(1591,1,JZe,ib),xKe.pf=function(e,t){Ybe(this,$H(e,37),t)},mV(y0e,"SelfLoopPortRestorer",1591),hIe(1592,1,{},Or),xKe.Kb=function(e){return new LQ(null,new h0($H(e,29).a,16))},mV(y0e,"SelfLoopPortRestorer/lambda$0$Type",1592),hIe(1593,1,RYe,Mr),xKe.Mb=function(e){return $H(e,10).k==(oCe(),Cst)},mV(y0e,"SelfLoopPortRestorer/lambda$1$Type",1593),hIe(1594,1,RYe,Ir),xKe.Mb=function(e){return IL($H(e,10),(lKe(),kht))},mV(y0e,"SelfLoopPortRestorer/lambda$2$Type",1594),hIe(1595,1,{},Dr),xKe.Kb=function(e){return $H(vSe($H(e,10),(lKe(),kht)),403)},mV(y0e,"SelfLoopPortRestorer/lambda$3$Type",1595),hIe(1596,1,uYe,dg),xKe.td=function(e){ECe(this.a,$H(e,403))},mV(y0e,"SelfLoopPortRestorer/lambda$4$Type",1596),hIe(794,1,uYe,Nr),xKe.td=function(e){JCe($H(e,101))},mV(y0e,"SelfLoopPortRestorer/lambda$5$Type",794),hIe(1597,1,JZe,Rr),xKe.pf=function(e,t){Ive($H(e,37),t)},mV(y0e,"SelfLoopPostProcessor",1597),hIe(1598,1,{},Lr),xKe.Kb=function(e){return new LQ(null,new h0($H(e,29).a,16))},mV(y0e,"SelfLoopPostProcessor/lambda$0$Type",1598),hIe(1599,1,RYe,Br),xKe.Mb=function(e){return $H(e,10).k==(oCe(),Cst)},mV(y0e,"SelfLoopPostProcessor/lambda$1$Type",1599),hIe(1600,1,RYe,Pr),xKe.Mb=function(e){return IL($H(e,10),(lKe(),kht))},mV(y0e,"SelfLoopPostProcessor/lambda$2$Type",1600),hIe(1601,1,uYe,Fr),xKe.td=function(e){I_e($H(e,10))},mV(y0e,"SelfLoopPostProcessor/lambda$3$Type",1601),hIe(1602,1,{},$r),xKe.Kb=function(e){return new LQ(null,new h0($H(e,101).f,1))},mV(y0e,"SelfLoopPostProcessor/lambda$4$Type",1602),hIe(1603,1,uYe,hg),xKe.td=function(e){i3(this.a,$H(e,409))},mV(y0e,"SelfLoopPostProcessor/lambda$5$Type",1603),hIe(1604,1,RYe,jr),xKe.Mb=function(e){return!!$H(e,101).i},mV(y0e,"SelfLoopPostProcessor/lambda$6$Type",1604),hIe(1605,1,uYe,fg),xKe.td=function(e){_y(this.a,$H(e,101))},mV(y0e,"SelfLoopPostProcessor/lambda$7$Type",1605),hIe(1587,1,JZe,Hr),xKe.pf=function(e,t){XDe($H(e,37),t)},mV(y0e,"SelfLoopPreProcessor",1587),hIe(1588,1,{},Ur),xKe.Kb=function(e){return new LQ(null,new h0($H(e,101).f,1))},mV(y0e,"SelfLoopPreProcessor/lambda$0$Type",1588),hIe(1589,1,{},Qr),xKe.Kb=function(e){return $H(e,409).a},mV(y0e,"SelfLoopPreProcessor/lambda$1$Type",1589),hIe(1590,1,uYe,zr),xKe.td=function(e){HD($H(e,17))},mV(y0e,"SelfLoopPreProcessor/lambda$2$Type",1590),hIe(1606,1,JZe,NP),xKe.pf=function(e,t){sCe(this,$H(e,37),t)},mV(y0e,"SelfLoopRouter",1606),hIe(1607,1,{},Wr),xKe.Kb=function(e){return new LQ(null,new h0($H(e,29).a,16))},mV(y0e,"SelfLoopRouter/lambda$0$Type",1607),hIe(1608,1,RYe,Gr),xKe.Mb=function(e){return $H(e,10).k==(oCe(),Cst)},mV(y0e,"SelfLoopRouter/lambda$1$Type",1608),hIe(1609,1,RYe,Vr),xKe.Mb=function(e){return IL($H(e,10),(lKe(),kht))},mV(y0e,"SelfLoopRouter/lambda$2$Type",1609),hIe(1610,1,{},Kr),xKe.Kb=function(e){return $H(vSe($H(e,10),(lKe(),kht)),403)},mV(y0e,"SelfLoopRouter/lambda$3$Type",1610),hIe(1611,1,uYe,eT),xKe.td=function(e){KY(this.a,this.b,$H(e,403))},mV(y0e,"SelfLoopRouter/lambda$4$Type",1611),hIe(1612,1,JZe,Yr),xKe.pf=function(e,t){cLe($H(e,37),t)},mV(y0e,"SemiInteractiveCrossMinProcessor",1612),hIe(1613,1,RYe,qr),xKe.Mb=function(e){return $H(e,10).k==(oCe(),Cst)},mV(y0e,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1613),hIe(1614,1,RYe,Xr),xKe.Mb=function(e){return UQ($H(e,10))._b((jVe(),svt))},mV(y0e,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1614),hIe(1615,1,xXe,Jr),xKe.ue=function(e,t){return fie($H(e,10),$H(t,10))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(y0e,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1615),hIe(1616,1,{},Zr),xKe.Ce=function(e,t){return Wq($H(e,10),$H(t,10))},mV(y0e,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1616),hIe(1618,1,JZe,ei),xKe.pf=function(e,t){xHe($H(e,37),t)},mV(y0e,"SortByInputModelProcessor",1618),hIe(1619,1,RYe,ti),xKe.Mb=function(e){return 0!=$H(e,11).g.c.length},mV(y0e,"SortByInputModelProcessor/lambda$0$Type",1619),hIe(1620,1,uYe,pg),xKe.td=function(e){cTe(this.a,$H(e,11))},mV(y0e,"SortByInputModelProcessor/lambda$1$Type",1620),hIe(1693,803,{},pie),xKe.Me=function(e){var t,n,r,i;switch(this.c=e,this.a.g){case 2:t=new Dv,qE(OY(new LQ(null,new h0(this.c.a.b,16)),new gi),new oT(this,t)),gke(this,new ii),kte(t,new oi),t.c=N8(Met,jKe,1,0,5,1),qE(OY(new LQ(null,new h0(this.c.a.b,16)),new ai),new mg(t)),gke(this,new si),kte(t,new li),t.c=N8(Met,jKe,1,0,5,1),n=yD(toe(IY(new LQ(null,new h0(this.c.a.b,16)),new vg(this))),new ci),qE(new LQ(null,new h0(this.c.a.a,16)),new nT(n,t)),gke(this,new di),kte(t,new ni),t.c=N8(Met,jKe,1,0,5,1);break;case 3:r=new Dv,gke(this,new ri),i=yD(toe(IY(new LQ(null,new h0(this.c.a.b,16)),new gg(this))),new ui),qE(OY(new LQ(null,new h0(this.c.a.b,16)),new hi),new iT(i,r)),gke(this,new fi),kte(r,new pi),r.c=N8(Met,jKe,1,0,5,1);break;default:throw jv(new bA)}},xKe.b=0,mV(O0e,"EdgeAwareScanlineConstraintCalculation",1693),hIe(1694,1,HXe,ri),xKe.Lb=function(e){return rN($H(e,57).g,145)},xKe.Fb=function(e){return this===e},xKe.Mb=function(e){return rN($H(e,57).g,145)},mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1694),hIe(1695,1,{},gg),xKe.Fe=function(e){return Uke(this.a,$H(e,57))},mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1695),hIe(1703,1,LYe,tT),xKe.Vd=function(){Fwe(this.a,this.b,-1)},xKe.b=0,mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1703),hIe(1705,1,HXe,ii),xKe.Lb=function(e){return rN($H(e,57).g,145)},xKe.Fb=function(e){return this===e},xKe.Mb=function(e){return rN($H(e,57).g,145)},mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1705),hIe(1706,1,uYe,oi),xKe.td=function(e){$H(e,365).Vd()},mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1706),hIe(1707,1,RYe,ai),xKe.Mb=function(e){return rN($H(e,57).g,10)},mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1707),hIe(1709,1,uYe,mg),xKe.td=function(e){wfe(this.a,$H(e,57))},mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1709),hIe(1708,1,LYe,uT),xKe.Vd=function(){Fwe(this.b,this.a,-1)},xKe.a=0,mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1708),hIe(1710,1,HXe,si),xKe.Lb=function(e){return rN($H(e,57).g,10)},xKe.Fb=function(e){return this===e},xKe.Mb=function(e){return rN($H(e,57).g,10)},mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1710),hIe(1711,1,uYe,li),xKe.td=function(e){$H(e,365).Vd()},mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1711),hIe(1712,1,{},vg),xKe.Fe=function(e){return Qke(this.a,$H(e,57))},mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1712),hIe(1713,1,{},ci),xKe.De=function(){return 0},mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1713),hIe(1696,1,{},ui),xKe.De=function(){return 0},mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1696),hIe(1715,1,uYe,nT),xKe.td=function(e){jz(this.a,this.b,$H(e,307))},xKe.a=0,mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1715),hIe(1714,1,LYe,rT),xKe.Vd=function(){VIe(this.a,this.b,-1)},xKe.b=0,mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1714),hIe(1716,1,HXe,di),xKe.Lb=function(e){return $H(e,57),!0},xKe.Fb=function(e){return this===e},xKe.Mb=function(e){return $H(e,57),!0},mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1716),hIe(1717,1,uYe,ni),xKe.td=function(e){$H(e,365).Vd()},mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1717),hIe(1697,1,RYe,hi),xKe.Mb=function(e){return rN($H(e,57).g,10)},mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1697),hIe(1699,1,uYe,iT),xKe.td=function(e){Hz(this.a,this.b,$H(e,57))},xKe.a=0,mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1699),hIe(1698,1,LYe,dT),xKe.Vd=function(){Fwe(this.b,this.a,-1)},xKe.a=0,mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1698),hIe(1700,1,HXe,fi),xKe.Lb=function(e){return $H(e,57),!0},xKe.Fb=function(e){return this===e},xKe.Mb=function(e){return $H(e,57),!0},mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1700),hIe(1701,1,uYe,pi),xKe.td=function(e){$H(e,365).Vd()},mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1701),hIe(1702,1,RYe,gi),xKe.Mb=function(e){return rN($H(e,57).g,145)},mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1702),hIe(1704,1,uYe,oT),xKe.td=function(e){_te(this.a,this.b,$H(e,57))},mV(O0e,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1704),hIe(1521,1,JZe,aL),xKe.pf=function(e,t){rQe(this,$H(e,37),t)},mV(O0e,"HorizontalGraphCompactor",1521),hIe(1522,1,{},Ag),xKe.Oe=function(e,t){var n,r;return X9(e,t)?0:(n=c2(e),r=c2(t),n&&n.k==(oCe(),xst)||r&&r.k==(oCe(),xst)?0:zR($H(vSe(this.a.a,(lKe(),Oht)),304),n?n.k:(oCe(),Sst),r?r.k:(oCe(),Sst)))},xKe.Pe=function(e,t){var n,r;return X9(e,t)?1:(n=c2(e),r=c2(t),WR($H(vSe(this.a.a,(lKe(),Oht)),304),n?n.k:(oCe(),Sst),r?r.k:(oCe(),Sst)))},mV(O0e,"HorizontalGraphCompactor/1",1522),hIe(1523,1,{},mi),xKe.Ne=function(e,t){return xS(),0==e.a.i},mV(O0e,"HorizontalGraphCompactor/lambda$0$Type",1523),hIe(1524,1,{},bg),xKe.Ne=function(e,t){return Pq(this.a,e,t)},mV(O0e,"HorizontalGraphCompactor/lambda$1$Type",1524),hIe(1664,1,{},T9),mV(O0e,"LGraphToCGraphTransformer",1664),hIe(1672,1,RYe,vi),xKe.Mb=function(e){return null!=e},mV(O0e,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1672),hIe(1665,1,{},Ai),xKe.Kb=function(e){return U$(),$fe(vSe($H($H(e,57).g,10),(lKe(),fht)))},mV(O0e,"LGraphToCGraphTransformer/lambda$0$Type",1665),hIe(1666,1,{},bi),xKe.Kb=function(e){return U$(),vde($H($H(e,57).g,145))},mV(O0e,"LGraphToCGraphTransformer/lambda$1$Type",1666),hIe(1675,1,RYe,yi),xKe.Mb=function(e){return U$(),rN($H(e,57).g,10)},mV(O0e,"LGraphToCGraphTransformer/lambda$10$Type",1675),hIe(1676,1,uYe,wi),xKe.td=function(e){Bq($H(e,57))},mV(O0e,"LGraphToCGraphTransformer/lambda$11$Type",1676),hIe(1677,1,RYe,_i),xKe.Mb=function(e){return U$(),rN($H(e,57).g,145)},mV(O0e,"LGraphToCGraphTransformer/lambda$12$Type",1677),hIe(1681,1,uYe,xi),xKe.td=function(e){mde($H(e,57))},mV(O0e,"LGraphToCGraphTransformer/lambda$13$Type",1681),hIe(1678,1,uYe,yg),xKe.td=function(e){oI(this.a,$H(e,8))},xKe.a=0,mV(O0e,"LGraphToCGraphTransformer/lambda$14$Type",1678),hIe(1679,1,uYe,wg),xKe.td=function(e){sI(this.a,$H(e,110))},xKe.a=0,mV(O0e,"LGraphToCGraphTransformer/lambda$15$Type",1679),hIe(1680,1,uYe,_g),xKe.td=function(e){aI(this.a,$H(e,8))},xKe.a=0,mV(O0e,"LGraphToCGraphTransformer/lambda$16$Type",1680),hIe(1682,1,{},Ei),xKe.Kb=function(e){return U$(),new LQ(null,new QG(new aW(XN(ufe($H(e,10)).a.Kc(),new u))))},mV(O0e,"LGraphToCGraphTransformer/lambda$17$Type",1682),hIe(1683,1,RYe,Si),xKe.Mb=function(e){return U$(),d5($H(e,17))},mV(O0e,"LGraphToCGraphTransformer/lambda$18$Type",1683),hIe(1684,1,uYe,xg),xKe.td=function(e){Eee(this.a,$H(e,17))},mV(O0e,"LGraphToCGraphTransformer/lambda$19$Type",1684),hIe(1668,1,uYe,Eg),xKe.td=function(e){u1(this.a,$H(e,145))},mV(O0e,"LGraphToCGraphTransformer/lambda$2$Type",1668),hIe(1685,1,{},Ci),xKe.Kb=function(e){return U$(),new LQ(null,new h0($H(e,29).a,16))},mV(O0e,"LGraphToCGraphTransformer/lambda$20$Type",1685),hIe(1686,1,{},Ti),xKe.Kb=function(e){return U$(),new LQ(null,new QG(new aW(XN(ufe($H(e,10)).a.Kc(),new u))))},mV(O0e,"LGraphToCGraphTransformer/lambda$21$Type",1686),hIe(1687,1,{},ki),xKe.Kb=function(e){return U$(),$H(vSe($H(e,17),(lKe(),Dht)),15)},mV(O0e,"LGraphToCGraphTransformer/lambda$22$Type",1687),hIe(1688,1,RYe,Oi),xKe.Mb=function(e){return ZR($H(e,15))},mV(O0e,"LGraphToCGraphTransformer/lambda$23$Type",1688),hIe(1689,1,uYe,Sg),xKe.td=function(e){Ske(this.a,$H(e,15))},mV(O0e,"LGraphToCGraphTransformer/lambda$24$Type",1689),hIe(1667,1,uYe,aT),xKe.td=function(e){j3(this.a,this.b,$H(e,145))},mV(O0e,"LGraphToCGraphTransformer/lambda$3$Type",1667),hIe(1669,1,{},Mi),xKe.Kb=function(e){return U$(),new LQ(null,new h0($H(e,29).a,16))},mV(O0e,"LGraphToCGraphTransformer/lambda$4$Type",1669),hIe(1670,1,{},Ii),xKe.Kb=function(e){return U$(),new LQ(null,new QG(new aW(XN(ufe($H(e,10)).a.Kc(),new u))))},mV(O0e,"LGraphToCGraphTransformer/lambda$5$Type",1670),hIe(1671,1,{},Di),xKe.Kb=function(e){return U$(),$H(vSe($H(e,17),(lKe(),Dht)),15)},mV(O0e,"LGraphToCGraphTransformer/lambda$6$Type",1671),hIe(1673,1,uYe,Cg),xKe.td=function(e){BOe(this.a,$H(e,15))},mV(O0e,"LGraphToCGraphTransformer/lambda$8$Type",1673),hIe(1674,1,uYe,sT),xKe.td=function(e){ND(this.a,this.b,$H(e,145))},mV(O0e,"LGraphToCGraphTransformer/lambda$9$Type",1674),hIe(1663,1,{},Ni),xKe.Le=function(e){var t,n,r,i,o;for(this.a=e,this.d=new FA,this.c=N8(Hrt,jKe,121,this.a.a.a.c.length,0,1),this.b=0,n=new Gf(this.a.a.a);n.a<n.c.c.length;)(t=$H(J0(n),307)).d=this.b,o=OR(aS(new HA,t),this.d),this.c[this.b]=o,++this.b;for(qze(this),OGe(this),XNe(this),GFe($$(this.d),new Wb),i=new Gf(this.a.a.b);i.a<i.c.c.length;)(r=$H(J0(i),57)).d.c=this.c[r.a.d].e+r.b.a},xKe.b=0,mV(O0e,"NetworkSimplexCompaction",1663),hIe(145,1,{35:1,145:1},SHe),xKe.wd=function(e){return Iee(this,$H(e,145))},xKe.Ib=function(){return vde(this)},mV(O0e,"VerticalSegment",145),hIe(827,1,{},Qxe),xKe.c=0,xKe.e=0,xKe.i=0,mV(M0e,"BetweenLayerEdgeTwoNodeCrossingsCounter",827),hIe(663,1,{663:1},boe),xKe.Ib=function(){return"AdjacencyList [node="+this.d+", adjacencies= "+this.a+"]"},xKe.b=0,xKe.c=0,xKe.f=0,mV(M0e,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList",663),hIe(287,1,{35:1,287:1},UL),xKe.wd=function(e){return iQ(this,$H(e,287))},xKe.Ib=function(){return"Adjacency [position="+this.c+", cardinality="+this.a+", currentCardinality="+this.b+"]"},xKe.a=0,xKe.b=0,xKe.c=0,mV(M0e,"BetweenLayerEdgeTwoNodeCrossingsCounter/AdjacencyList/Adjacency",287),hIe(1929,1,{},XCe),xKe.b=0,xKe.e=!1,mV(M0e,"CrossingMatrixFiller",1929);var mct,vct,Act,bct,yct=dQ(I0e,"IInitializable");hIe(1804,1,D0e,mT),xKe.Nf=function(e,t,n,r,i,o){},xKe.Pf=function(e,t,n){},xKe.Lf=function(){return this.c!=(are(),Obt)},xKe.Mf=function(){this.e=N8(kRt,lqe,25,this.d,15,1)},xKe.Of=function(e,t){t[e][0].c.p=e},xKe.Qf=function(e,t,n,r){++this.d},xKe.Rf=function(){return!0},xKe.Sf=function(e,t,n,r){return Yue(this,e,t,n),X4(this,t)},xKe.Tf=function(e,t){var n;return Yue(this,e,n=l_(t,e.length),t),dle(this,n)},xKe.d=0,mV(M0e,"GreedySwitchHeuristic",1804),hIe(1930,1,{},uz),xKe.b=0,xKe.d=0,mV(M0e,"NorthSouthEdgeNeighbouringNodeCrossingsCounter",1930),hIe(1917,1,{},oPe),xKe.a=!1,mV(M0e,"SwitchDecider",1917),hIe(101,1,{101:1},gTe),xKe.a=null,xKe.c=null,xKe.i=null,mV(N0e,"SelfHyperLoop",101),hIe(1916,1,{},eve),xKe.c=0,xKe.e=0,mV(N0e,"SelfHyperLoopLabels",1916),hIe(411,22,{3:1,35:1,22:1,411:1},vT);var wct,_ct,xct,Ect,Sct,Cct,Tct=$ne(N0e,"SelfHyperLoopLabels/Alignment",411,Wet,n3,z$);hIe(409,1,{409:1},y6),mV(N0e,"SelfLoopEdge",409),hIe(403,1,{403:1},kme),xKe.a=!1,mV(N0e,"SelfLoopHolder",403),hIe(1724,1,RYe,Qi),xKe.Mb=function(e){return d5($H(e,17))},mV(N0e,"SelfLoopHolder/lambda$0$Type",1724),hIe(113,1,{113:1},tve),xKe.a=!1,xKe.c=!1,mV(N0e,"SelfLoopPort",113),hIe(1792,1,RYe,zi),xKe.Mb=function(e){return d5($H(e,17))},mV(N0e,"SelfLoopPort/lambda$0$Type",1792),hIe(363,22,{3:1,35:1,22:1,363:1},AT);var kct,Oct,Mct,Ict,Dct,Nct,Rct,Lct,Bct=$ne(N0e,"SelfLoopType",363,Wet,N5,Y$);hIe(1732,1,{},id),mV(R0e,"PortRestorer",1732),hIe(361,22,{3:1,35:1,22:1,361:1},bT);var Pct,Fct,$ct,jct,Hct,Uct,Qct,zct,Wct,Gct=$ne(R0e,"PortRestorer/PortSideArea",361,Wet,S0,q$);hIe(1733,1,{},Ki),xKe.Kb=function(e){return PSe(),$H(e,15).Oc()},mV(R0e,"PortRestorer/lambda$0$Type",1733),hIe(1734,1,uYe,Yi),xKe.td=function(e){PSe(),$H(e,113).c=!1},mV(R0e,"PortRestorer/lambda$1$Type",1734),hIe(1743,1,RYe,qi),xKe.Mb=function(e){return PSe(),$H(e,11).j==(bGe(),COt)},mV(R0e,"PortRestorer/lambda$10$Type",1743),hIe(1744,1,{},Xi),xKe.Kb=function(e){return PSe(),$H(e,113).d},mV(R0e,"PortRestorer/lambda$11$Type",1744),hIe(1745,1,uYe,Tg),xKe.td=function(e){D_(this.a,$H(e,11))},mV(R0e,"PortRestorer/lambda$12$Type",1745),hIe(1735,1,uYe,kg),xKe.td=function(e){OL(this.a,$H(e,101))},mV(R0e,"PortRestorer/lambda$2$Type",1735),hIe(1736,1,xXe,Ji),xKe.ue=function(e,t){return ane($H(e,113),$H(t,113))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(R0e,"PortRestorer/lambda$3$Type",1736),hIe(1737,1,RYe,Zi),xKe.Mb=function(e){return PSe(),$H(e,113).c},mV(R0e,"PortRestorer/lambda$4$Type",1737),hIe(1738,1,RYe,Li),xKe.Mb=function(e){return Ooe($H(e,11))},mV(R0e,"PortRestorer/lambda$5$Type",1738),hIe(1739,1,RYe,Ri),xKe.Mb=function(e){return PSe(),$H(e,11).j==(bGe(),sOt)},mV(R0e,"PortRestorer/lambda$6$Type",1739),hIe(1740,1,RYe,Bi),xKe.Mb=function(e){return PSe(),$H(e,11).j==(bGe(),aOt)},mV(R0e,"PortRestorer/lambda$7$Type",1740),hIe(1741,1,RYe,Pi),xKe.Mb=function(e){return r3($H(e,11))},mV(R0e,"PortRestorer/lambda$8$Type",1741),hIe(1742,1,RYe,Fi),xKe.Mb=function(e){return PSe(),$H(e,11).j==(bGe(),EOt)},mV(R0e,"PortRestorer/lambda$9$Type",1742),hIe(270,22,{3:1,35:1,22:1,270:1},GY);var Vct,Kct,Yct,qct,Xct,Jct,Zct,eut,tut=$ne(R0e,"PortSideAssigner/Target",270,Wet,Fte,W$);hIe(1725,1,{},$i),xKe.Kb=function(e){return OY(new LQ(null,new h0($H(e,101).j,16)),new Vi)},mV(R0e,"PortSideAssigner/lambda$1$Type",1725),hIe(1726,1,{},ji),xKe.Kb=function(e){return $H(e,113).d},mV(R0e,"PortSideAssigner/lambda$2$Type",1726),hIe(1727,1,uYe,Hi),xKe.td=function(e){Hke($H(e,11),(bGe(),sOt))},mV(R0e,"PortSideAssigner/lambda$3$Type",1727),hIe(1728,1,{},Ui),xKe.Kb=function(e){return $H(e,113).d},mV(R0e,"PortSideAssigner/lambda$4$Type",1728),hIe(1729,1,uYe,Og),xKe.td=function(e){Zv(this.a,$H(e,11))},mV(R0e,"PortSideAssigner/lambda$5$Type",1729),hIe(1730,1,xXe,Wi),xKe.ue=function(e,t){return xK($H(e,101),$H(t,101))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(R0e,"PortSideAssigner/lambda$6$Type",1730),hIe(1731,1,xXe,Gi),xKe.ue=function(e,t){return aU($H(e,113),$H(t,113))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(R0e,"PortSideAssigner/lambda$7$Type",1731),hIe(805,1,RYe,Vi),xKe.Mb=function(e){return $H(e,113).c},mV(R0e,"PortSideAssigner/lambda$8$Type",805),hIe(2009,1,{}),mV(L0e,"AbstractSelfLoopRouter",2009),hIe(1750,1,xXe,eo),xKe.ue=function(e,t){return TF($H(e,101),$H(t,101))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(L0e,dJe,1750),hIe(1751,1,xXe,to),xKe.ue=function(e,t){return CF($H(e,101),$H(t,101))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(L0e,hJe,1751),hIe(1793,2009,{},no),xKe.Uf=function(e,t,n){return n},mV(L0e,"OrthogonalSelfLoopRouter",1793),hIe(1795,1,uYe,hT),xKe.td=function(e){gme(this.b,this.a,$H(e,8))},mV(L0e,"OrthogonalSelfLoopRouter/lambda$0$Type",1795),hIe(1794,1793,{},ro),xKe.Uf=function(e,t,n){var r,i;return BL(n,0,zP($D((r=e.c.d).n),r.a)),RU(n,zP($D((i=e.d.d).n),i.a)),w$e(n)},mV(L0e,"PolylineSelfLoopRouter",1794),hIe(1746,1,{},Ju),xKe.a=null,mV(L0e,"RoutingDirector",1746),hIe(1747,1,xXe,io),xKe.ue=function(e,t){return hU($H(e,113),$H(t,113))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(L0e,"RoutingDirector/lambda$0$Type",1747),hIe(1748,1,{},oo),xKe.Kb=function(e){return ES(),$H(e,101).j},mV(L0e,"RoutingDirector/lambda$1$Type",1748),hIe(1749,1,uYe,ao),xKe.td=function(e){ES(),$H(e,15).ad(Kct)},mV(L0e,"RoutingDirector/lambda$2$Type",1749),hIe(1752,1,{},so),mV(L0e,"RoutingSlotAssigner",1752),hIe(1753,1,RYe,Mg),xKe.Mb=function(e){return Ck(this.a,$H(e,101))},mV(L0e,"RoutingSlotAssigner/lambda$0$Type",1753),hIe(1754,1,xXe,Ig),xKe.ue=function(e,t){return zQ(this.a,$H(e,101),$H(t,101))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(L0e,"RoutingSlotAssigner/lambda$1$Type",1754),hIe(1796,1793,{},lo),xKe.Uf=function(e,t,n){var r,i,o,a;return r=Uy(xB(pve(e.b.g.b,(jVe(),yvt)))),JDe(e,t,n,a=new zL(Sse(Uw(SSt,1),sYe,8,0,[(o=e.c.d,zP(new hI(o.n),o.a))])),r),RU(a,zP(new hI((i=e.d.d).n),i.a)),FAe(new aHe(a))},mV(L0e,"SplineSelfLoopRouter",1796),hIe(578,1,xXe,Uie,bU),xKe.ue=function(e,t){return cVe(this,$H(e,10),$H(t,10))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(B0e,"ModelOrderNodeComparator",578),hIe(1755,1,RYe,co),xKe.Mb=function(e){return 0!=$H(e,11).e.c.length},mV(B0e,"ModelOrderNodeComparator/lambda$0$Type",1755),hIe(1756,1,{},uo),xKe.Kb=function(e){return $H(NQ($H(e,11).e,0),17).c},mV(B0e,"ModelOrderNodeComparator/lambda$1$Type",1756),hIe(1757,1,RYe,ho),xKe.Mb=function(e){return 0!=$H(e,11).e.c.length},mV(B0e,"ModelOrderNodeComparator/lambda$2$Type",1757),hIe(1758,1,{},fo),xKe.Kb=function(e){return $H(NQ($H(e,11).e,0),17).c},mV(B0e,"ModelOrderNodeComparator/lambda$3$Type",1758),hIe(1759,1,RYe,po),xKe.Mb=function(e){return 0!=$H(e,11).e.c.length},mV(B0e,"ModelOrderNodeComparator/lambda$4$Type",1759),hIe(806,1,xXe,k9,gT),xKe.ue=function(e,t){return DW(this,e,t)},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(B0e,"ModelOrderPortComparator",806),hIe(801,1,{},go),xKe.Vf=function(e,t){var n,i,o,a;for(o=SCe(t),n=new Dv,a=t.f/o,i=1;i<o;++i)GH(n,the(fz(cae(r.Math.round(i*a)))));return n},xKe.Wf=function(){return!1},mV(P0e,"ARDCutIndexHeuristic",801),hIe(1479,1,JZe,mo),xKe.pf=function(e,t){aFe($H(e,37),t)},mV(P0e,"BreakingPointInserter",1479),hIe(305,1,{305:1},m3),xKe.Ib=function(){var e;return(e=new Cw).a+="BPInfo[",e.a+="\n\tstart=",oM(e,this.i),e.a+="\n\tend=",oM(e,this.a),e.a+="\n\tnodeStartEdge=",oM(e,this.e),e.a+="\n\tstartEndEdge=",oM(e,this.j),e.a+="\n\toriginalEdge=",oM(e,this.f),e.a+="\n\tstartInLayerDummy=",oM(e,this.k),e.a+="\n\tstartInLayerEdge=",oM(e,this.n),e.a+="\n\tendInLayerDummy=",oM(e,this.b),e.a+="\n\tendInLayerEdge=",oM(e,this.c),e.a},mV(P0e,"BreakingPointInserter/BPInfo",305),hIe(652,1,{652:1},jg),xKe.a=!1,xKe.b=0,xKe.c=0,mV(P0e,"BreakingPointInserter/Cut",652),hIe(1480,1,JZe,vo),xKe.pf=function(e,t){vNe($H(e,37),t)},mV(P0e,"BreakingPointProcessor",1480),hIe(1481,1,RYe,Ao),xKe.Mb=function(e){return qee($H(e,10))},mV(P0e,"BreakingPointProcessor/0methodref$isEnd$Type",1481),hIe(1482,1,RYe,bo),xKe.Mb=function(e){return Xee($H(e,10))},mV(P0e,"BreakingPointProcessor/1methodref$isStart$Type",1482),hIe(1483,1,JZe,yo),xKe.pf=function(e,t){nRe(this,$H(e,37),t)},mV(P0e,"BreakingPointRemover",1483),hIe(1484,1,uYe,wo),xKe.td=function(e){$H(e,128).k=!0},mV(P0e,"BreakingPointRemover/lambda$0$Type",1484),hIe(797,1,{},xIe),xKe.b=0,xKe.e=0,xKe.f=0,xKe.j=0,mV(P0e,"GraphStats",797),hIe(798,1,{},_o),xKe.Ce=function(e,t){return r.Math.max(Uy(xB(e)),Uy(xB(t)))},mV(P0e,"GraphStats/0methodref$max$Type",798),hIe(799,1,{},xo),xKe.Ce=function(e,t){return r.Math.max(Uy(xB(e)),Uy(xB(t)))},mV(P0e,"GraphStats/2methodref$max$Type",799),hIe(1660,1,{},Eo),xKe.Ce=function(e,t){return mH(xB(e),xB(t))},mV(P0e,"GraphStats/lambda$1$Type",1660),hIe(1661,1,{},Dg),xKe.Kb=function(e){return hve(this.a,$H(e,29))},mV(P0e,"GraphStats/lambda$2$Type",1661),hIe(1662,1,{},Ng),xKe.Kb=function(e){return VNe(this.a,$H(e,29))},mV(P0e,"GraphStats/lambda$6$Type",1662),hIe(800,1,{},So),xKe.Vf=function(e,t){return $H(vSe(e,(jVe(),Pvt)),15)||(Eq(),Eq(),lnt)},xKe.Wf=function(){return!1},mV(P0e,"ICutIndexCalculator/ManualCutIndexCalculator",800),hIe(802,1,{},Co),xKe.Vf=function(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w;for(null==t.n&&Rbe(t),w=t.n,null==t.d&&Rbe(t),c=t.d,(y=N8(DRt,Hqe,25,w.length,15,1))[0]=w[0],A=w[0],u=1;u<w.length;u++)y[u]=y[u-1]+w[u],A+=w[u];for(o=SCe(t)-1,s=$H(vSe(e,(jVe(),Fvt)),19).a,i=Bqe,n=new Dv,f=r.Math.max(0,o-s);f<=r.Math.min(t.f-1,o+s);f++){if(m=A/(f+1),v=0,d=1,a=new Dv,b=Bqe,h=0,l=0,g=c[0],0==f)b=A,null==t.g&&(t.g=Wie(t,new xo)),l=Uy(t.g);else{for(;d<t.f;)y[d-1]-v>=m&&(GH(a,the(d)),b=r.Math.max(b,y[d-1]-h),l+=g,v+=y[d-1]-v,h=y[d-1],g=c[d]),g=r.Math.max(g,c[d]),++d;l+=g}(p=r.Math.min(1/b,1/t.b/l))>i&&(i=p,n=a)}return n},xKe.Wf=function(){return!1},mV(P0e,"MSDCutIndexHeuristic",802),hIe(1617,1,JZe,To),xKe.pf=function(e,t){dHe($H(e,37),t)},mV(P0e,"SingleEdgeGraphWrapper",1617),hIe(227,22,{3:1,35:1,22:1,227:1},yT);var nut,rut,iut,out=$ne(F0e,"CenterEdgeLabelPlacementStrategy",227,Wet,X8,G$);hIe(422,22,{3:1,35:1,22:1,422:1},wT);var aut,sut,lut,cut,uut=$ne(F0e,"ConstraintCalculationStrategy",422,Wet,UX,V$);hIe(314,22,{3:1,35:1,22:1,314:1,246:1,234:1},_T),xKe.Kf=function(){return sOe(this)},xKe.Xf=function(){return sOe(this)};var dut,hut,fut,put,gut=$ne(F0e,"CrossingMinimizationStrategy",314,Wet,_0,K$);hIe(337,22,{3:1,35:1,22:1,337:1},xT);var mut,vut,Aut,but,yut,wut,_ut=$ne(F0e,"CuttingStrategy",337,Wet,x0,X$);hIe(335,22,{3:1,35:1,22:1,335:1,246:1,234:1},ET),xKe.Kf=function(){return LIe(this)},xKe.Xf=function(){return LIe(this)};var xut,Eut,Sut,Cut=$ne(F0e,"CycleBreakingStrategy",335,Wet,I5,J$);hIe(419,22,{3:1,35:1,22:1,419:1},ST);var Tut,kut,Out,Mut,Iut=$ne(F0e,"DirectionCongruency",419,Wet,HX,Z$);hIe(450,22,{3:1,35:1,22:1,450:1},CT);var Dut,Nut,Rut,Lut,But,Put,Fut,$ut=$ne(F0e,"EdgeConstraint",450,Wet,E0,ej);hIe(276,22,{3:1,35:1,22:1,276:1},TT);var jut,Hut,Uut,Qut=$ne(F0e,"EdgeLabelSideSelection",276,Wet,t7,tj);hIe(479,22,{3:1,35:1,22:1,479:1},kT);var zut,Wut,Gut,Vut,Kut,Yut,qut,Xut=$ne(F0e,"EdgeStraighteningStrategy",479,Wet,jX,nj);hIe(274,22,{3:1,35:1,22:1,274:1},OT);var Jut,Zut,edt,tdt,ndt,rdt,idt,odt=$ne(F0e,"FixedAlignment",274,Wet,Z8,rj);hIe(275,22,{3:1,35:1,22:1,275:1},MT);var adt,sdt,ldt,cdt,udt,ddt,hdt,fdt,pdt,gdt,mdt,vdt=$ne(F0e,"GraphCompactionStrategy",275,Wet,J8,ij);hIe(256,22,{3:1,35:1,22:1,256:1},IT);var Adt,bdt,ydt,wdt,_dt=$ne(F0e,"GraphProperties",256,Wet,doe,oj);hIe(292,22,{3:1,35:1,22:1,292:1},DT);var xdt,Edt,Sdt,Cdt,Tdt=$ne(F0e,"GreedySwitchType",292,Wet,T0,aj);hIe(303,22,{3:1,35:1,22:1,303:1},NT);var kdt,Odt,Mdt,Idt=$ne(F0e,"InLayerConstraint",303,Wet,C0,sj);hIe(420,22,{3:1,35:1,22:1,420:1},RT);var Ddt,Ndt,Rdt,Ldt,Bdt,Pdt,Fdt,$dt,jdt,Hdt,Udt,Qdt,zdt,Wdt,Gdt,Vdt,Kdt,Ydt,qdt,Xdt,Jdt,Zdt,eht,tht,nht,rht,iht,oht,aht,sht,lht,cht,uht,dht,hht,fht,pht,ght,mht,vht,Aht,bht,yht,wht,_ht,xht,Eht,Sht,Cht,Tht,kht,Oht,Mht,Iht,Dht,Nht,Rht,Lht,Bht,Pht,Fht,$ht,jht,Hht,Uht=$ne(F0e,"InteractiveReferencePoint",420,Wet,QX,lj);hIe(163,22,{3:1,35:1,22:1,163:1},$T);var Qht,zht,Wht,Ght,Vht,Kht,Yht,qht,Xht,Jht,Zht,eft,tft,nft,rft,ift,oft,aft,sft,lft,cft,uft,dft,hft,fft,pft,gft,mft,vft,Aft,bft,yft,wft,_ft,xft,Eft,Sft,Cft,Tft,kft,Oft,Mft,Ift,Dft,Nft,Rft,Lft,Bft,Pft,Fft,$ft,jft,Hft,Uft,Qft,zft,Wft,Gft,Vft,Kft,Yft,qft,Xft,Jft,Zft,ept,tpt,npt,rpt,ipt,opt,apt,spt,lpt,cpt,upt,dpt,hpt,fpt,ppt,gpt,mpt,vpt,Apt,bpt,ypt,wpt,_pt,xpt,Ept,Spt,Cpt,Tpt,kpt,Opt,Mpt,Ipt,Dpt,Npt,Rpt,Lpt,Bpt,Ppt,Fpt,$pt,jpt,Hpt,Upt,Qpt,zpt,Wpt,Gpt,Vpt,Kpt,Ypt,qpt,Xpt,Jpt,Zpt,egt,tgt,ngt,rgt,igt,ogt,agt,sgt,lgt,cgt,ugt,dgt,hgt,fgt,pgt,ggt,mgt,vgt,Agt,bgt,ygt,wgt,_gt,xgt,Egt,Sgt,Cgt,Tgt,kgt,Ogt,Mgt,Igt,Dgt,Ngt,Rgt,Lgt,Bgt,Pgt,Fgt,$gt,jgt,Hgt,Ugt,Qgt,zgt,Wgt,Ggt,Vgt,Kgt,Ygt,qgt,Xgt,Jgt,Zgt,emt,tmt,nmt,rmt,imt,omt,amt,smt,lmt,cmt,umt,dmt,hmt,fmt,pmt,gmt,mmt,vmt,Amt,bmt,ymt,wmt,_mt,xmt,Emt,Smt,Cmt,Tmt,kmt,Omt,Mmt,Imt,Dmt,Nmt,Rmt,Lmt,Bmt,Pmt,Fmt,$mt,jmt,Hmt,Umt,Qmt,zmt,Wmt,Gmt,Vmt,Kmt,Ymt,qmt,Xmt,Jmt,Zmt,evt,tvt,nvt,rvt,ivt,ovt,avt,svt,lvt,cvt,uvt,dvt,hvt,fvt,pvt,gvt,mvt,vvt,Avt,bvt,yvt,wvt,_vt,xvt,Evt,Svt,Cvt,Tvt,kvt,Ovt,Mvt,Ivt,Dvt,Nvt,Rvt,Lvt,Bvt,Pvt,Fvt,$vt,jvt,Hvt,Uvt,Qvt,zvt,Wvt,Gvt,Vvt,Kvt,Yvt,qvt,Xvt,Jvt,Zvt,eAt,tAt=$ne(F0e,"LayerConstraint",163,Wet,R5,cj);hIe(848,1,KXe,sd),xKe.Qe=function(e){Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,z0e),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),Sft),(STe(),pSt)),Iut),Jhe((nve(),lSt))))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,W0e),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(lR(),!1)),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,G0e),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),Kft),pSt),Uht),Jhe(lSt)))),i2(e,G0e,e1e,qft),i2(e,G0e,u1e,Yft),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,V0e),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,K0e),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(S_(k_(T_(O_(__(w_(C_(x_(E_(new Hs,Y0e),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),hSt),ytt),Jhe(cSt)),Sse(Uw(Ytt,1),sYe,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,q0e),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),Npt),pSt),QAt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,X0e),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),the(7)),mSt),Mtt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,J0e),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,Z0e),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,e1e),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),xft),pSt),Cut),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,t1e),c2e),"Node Layering Strategy"),"Strategy for node layering."),dpt),pSt),aAt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,n1e),c2e),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),tpt),pSt),tAt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,r1e),c2e),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),the(-1)),mSt),Mtt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,i1e),c2e),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),the(-1)),mSt),Mtt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,o1e),u2e),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),the(4)),mSt),Mtt),Jhe(lSt)))),i2(e,o1e,t1e,ipt),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,a1e),u2e),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),the(2)),mSt),Mtt),Jhe(lSt)))),i2(e,a1e,t1e,apt),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,s1e),d2e),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),cpt),pSt),RAt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,l1e),d2e),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),the(0)),mSt),Mtt),Jhe(lSt)))),i2(e,l1e,s1e,null),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,c1e),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),the(RKe)),mSt),Mtt),Jhe(lSt)))),i2(e,c1e,t1e,Jft),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,u1e),h2e),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),wft),pSt),gut),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,d1e),h2e),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,h1e),h2e),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),fSt),Ctt),Jhe(lSt)))),i2(e,h1e,f2e,gft),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,f1e),h2e),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),hSt),ytt),Jhe(lSt)))),i2(e,f1e,u1e,bft),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,p1e),h2e),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),the(-1)),mSt),Mtt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,g1e),h2e),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),the(-1)),mSt),Mtt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,m1e),p2e),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),the(40)),mSt),Mtt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,v1e),p2e),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),hft),pSt),Tdt),Jhe(lSt)))),i2(e,v1e,u1e,fft),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,A1e),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),lft),pSt),Tdt),Jhe(lSt)))),i2(e,A1e,u1e,cft),i2(e,A1e,f2e,uft),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,b1e),g2e),"Node Placement Strategy"),"Strategy for node placement."),Ipt),pSt),OAt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,y1e),g2e),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),hSt),ytt),Jhe(lSt)))),i2(e,y1e,b1e,wpt),i2(e,y1e,b1e,_pt),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,w1e),m2e),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),gpt),pSt),Xut),Jhe(lSt)))),i2(e,w1e,b1e,mpt),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,_1e),m2e),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),Apt),pSt),odt),Jhe(lSt)))),i2(e,_1e,b1e,bpt),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,x1e),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),fSt),Ctt),Jhe(lSt)))),i2(e,x1e,b1e,Ept),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,E1e),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),pSt),bAt),Jhe(sSt)))),i2(e,E1e,b1e,Opt),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,S1e),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),Tpt),pSt),bAt),Jhe(lSt)))),i2(e,S1e,b1e,kpt),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,C1e),v2e),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),Nft),pSt),JAt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,T1e),v2e),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),Lft),pSt),rbt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,k1e),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),Pft),pSt),lbt),Jhe(lSt)))),i2(e,k1e,A2e,Fft),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,O1e),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),fSt),Ctt),Jhe(lSt)))),i2(e,O1e,A2e,jft),i2(e,O1e,k1e,Hft),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,M1e),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),fSt),Ctt),Jhe(lSt)))),i2(e,M1e,A2e,Ift),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,I1e),b2e),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),fSt),Ctt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,D1e),b2e),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),fSt),Ctt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,N1e),b2e),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),fSt),Ctt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,R1e),b2e),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),fSt),Ctt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,L1e),y2e),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),the(0)),mSt),Mtt),Jhe(oSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,B1e),y2e),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),the(0)),mSt),Mtt),Jhe(oSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,P1e),y2e),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),the(0)),mSt),Mtt),Jhe(oSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,F1e),w2e),RJe),"Tries to further compact components (disconnected sub-graphs)."),!1),hSt),ytt),Jhe(lSt)))),i2(e,F1e,bZe,!0),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,$1e),_2e),"Post Compaction Strategy"),x2e),Yht),pSt),vdt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,j1e),_2e),"Post Compaction Constraint Calculation"),x2e),Vht),pSt),uut),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,H1e),E2e),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,U1e),E2e),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),the(16)),mSt),Mtt),Jhe(lSt)))),i2(e,U1e,H1e,!0),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,Q1e),E2e),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),the(5)),mSt),Mtt),Jhe(lSt)))),i2(e,Q1e,H1e,!0),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,z1e),S2e),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),dgt),pSt),Ebt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,W1e),S2e),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),fSt),Ctt),Jhe(lSt)))),i2(e,W1e,z1e,zpt),i2(e,W1e,z1e,Wpt),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,G1e),S2e),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),fSt),Ctt),Jhe(lSt)))),i2(e,G1e,z1e,Vpt),i2(e,G1e,z1e,Kpt),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,V1e),C2e),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),tgt),pSt),_ut),Jhe(lSt)))),i2(e,V1e,z1e,ngt),i2(e,V1e,z1e,rgt),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,K1e),C2e),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),vSt),Bet),Jhe(lSt)))),i2(e,K1e,V1e,qpt),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,Y1e),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),Jpt),mSt),Mtt),Jhe(lSt)))),i2(e,Y1e,V1e,Zpt),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,q1e),T2e),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),mgt),pSt),fbt),Jhe(lSt)))),i2(e,q1e,z1e,vgt),i2(e,q1e,z1e,Agt),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,X1e),T2e),"Valid Indices for Wrapping"),null),vSt),Bet),Jhe(lSt)))),i2(e,X1e,z1e,fgt),i2(e,X1e,z1e,pgt),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,J1e),k2e),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),hSt),ytt),Jhe(lSt)))),i2(e,J1e,z1e,sgt),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,Z1e),k2e),"Distance Penalty When Improving Cuts"),null),2),fSt),Ctt),Jhe(lSt)))),i2(e,Z1e,z1e,ogt),i2(e,Z1e,J1e,!0),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,e2e),k2e),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),hSt),ytt),Jhe(lSt)))),i2(e,e2e,z1e,cgt),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,t2e),O2e),"Edge Label Side Selection"),"Method to decide on edge label sides."),Oft),pSt),Qut),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,n2e),O2e),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),Tft),pSt),out),wz(lSt,Sse(Uw(ySt,1),MYe,175,0,[aSt]))))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,r2e),M2e),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),ift),pSt),FAt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,i2e),M2e),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),hSt),ytt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,o2e),M2e),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),Xht),pSt),vst),Jhe(lSt)))),i2(e,o2e,bZe,null),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,a2e),M2e),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),tft),pSt),hAt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,s2e),M2e),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),fSt),Ctt),Jhe(lSt)))),i2(e,s2e,r2e,null),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,l2e),M2e),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),fSt),Ctt),Jhe(lSt)))),i2(e,l2e,r2e,null),mKe((new ud,e))},mV(F0e,"LayeredMetaDataProvider",848),hIe(986,1,KXe,ud),xKe.Qe=function(e){mKe(e)},mV(F0e,"LayeredOptions",986),hIe(987,1,{},Oo),xKe.$e=function(){return new zA},xKe._e=function(e){},mV(F0e,"LayeredOptions/LayeredFactory",987),hIe(1372,1,{}),xKe.a=0,mV(A3e,"ElkSpacings/AbstractSpacingsBuilder",1372),hIe(779,1372,{},ope),mV(F0e,"LayeredSpacings/LayeredSpacingsBuilder",779),hIe(313,22,{3:1,35:1,22:1,313:1,246:1,234:1},LT),xKe.Kf=function(){return nNe(this)},xKe.Xf=function(){return nNe(this)};var nAt,rAt,iAt,oAt,aAt=$ne(F0e,"LayeringStrategy",313,Wet,e7,uj);hIe(378,22,{3:1,35:1,22:1,378:1},BT);var sAt,lAt,cAt,uAt,dAt,hAt=$ne(F0e,"LongEdgeOrderingStrategy",378,Wet,w0,dj);hIe(197,22,{3:1,35:1,22:1,197:1},PT);var fAt,pAt,gAt,mAt,vAt,AAt,bAt=$ne(F0e,"NodeFlexibility",197,Wet,b3,hj);hIe(315,22,{3:1,35:1,22:1,315:1,246:1,234:1},FT),xKe.Kf=function(){return RIe(this)},xKe.Xf=function(){return RIe(this)};var yAt,wAt,_At,xAt,EAt,SAt,CAt,TAt,kAt,OAt=$ne(F0e,"NodePlacementStrategy",315,Wet,M5,Aj);hIe(260,22,{3:1,35:1,22:1,260:1},jT);var MAt,IAt,DAt,NAt,RAt=$ne(F0e,"NodePromotionStrategy",260,Wet,$te,pj);hIe(339,22,{3:1,35:1,22:1,339:1},HT);var LAt,BAt,PAt,FAt=$ne(F0e,"OrderingStrategy",339,Wet,O0,gj);hIe(421,22,{3:1,35:1,22:1,421:1},UT);var $At,jAt,HAt,UAt,QAt=$ne(F0e,"PortSortingStrategy",421,Wet,zX,mj);hIe(452,22,{3:1,35:1,22:1,452:1},QT);var zAt,WAt,GAt,VAt,KAt=$ne(F0e,"PortType",452,Wet,k0,fj);hIe(375,22,{3:1,35:1,22:1,375:1},zT);var YAt,qAt,XAt,JAt=$ne(F0e,"SelfLoopDistributionStrategy",375,Wet,M0,vj);hIe(376,22,{3:1,35:1,22:1,376:1},WT);var ZAt,ebt,tbt,nbt,rbt=$ne(F0e,"SelfLoopOrderingStrategy",376,Wet,$X,bj);hIe(304,1,{304:1},sze),mV(F0e,"Spacings",304),hIe(336,22,{3:1,35:1,22:1,336:1},GT);var ibt,obt,abt,sbt,lbt=$ne(F0e,"SplineRoutingMode",336,Wet,D0,yj);hIe(338,22,{3:1,35:1,22:1,338:1},VT);var cbt,ubt,dbt,hbt,fbt=$ne(F0e,"ValidifyStrategy",338,Wet,N0,wj);hIe(377,22,{3:1,35:1,22:1,377:1},KT);var pbt,gbt,mbt,vbt,Abt,bbt,ybt,wbt,_bt,xbt,Ebt=$ne(F0e,"WrappingStrategy",377,Wet,I0,_j);hIe(1383,1,w3e,dd),xKe.Yf=function(e){return $H(e,37),gbt},xKe.pf=function(e,t){qUe(this,$H(e,37),t)},mV(_3e,"DepthFirstCycleBreaker",1383),hIe(782,1,w3e,Bz),xKe.Yf=function(e){return $H(e,37),mbt},xKe.pf=function(e,t){zVe(this,$H(e,37),t)},xKe.Zf=function(e){return $H(NQ(e,gAe(this.d,e.c.length)),10)},mV(_3e,"GreedyCycleBreaker",782),hIe(1386,782,w3e,_O),xKe.Zf=function(e){var t,n,r,i;for(i=null,t=RKe,r=new Gf(e);r.a<r.c.c.length;)IL(n=$H(J0(r),10),(lKe(),hht))&&$H(vSe(n,hht),19).a<t&&(t=$H(vSe(n,hht),19).a,i=n);return i||$H(NQ(e,gAe(this.d,e.c.length)),10)},mV(_3e,"GreedyModelOrderCycleBreaker",1386),hIe(1384,1,w3e,td),xKe.Yf=function(e){return $H(e,37),vbt},xKe.pf=function(e,t){TQe(this,$H(e,37),t)},mV(_3e,"InteractiveCycleBreaker",1384),hIe(1385,1,w3e,nd),xKe.Yf=function(e){return $H(e,37),Abt},xKe.pf=function(e,t){IQe(this,$H(e,37),t)},xKe.a=0,xKe.b=0,mV(_3e,"ModelOrderCycleBreaker",1385),hIe(1389,1,w3e,MS),xKe.Yf=function(e){return $H(e,37),bbt},xKe.pf=function(e,t){qVe(this,$H(e,37),t)},mV(x3e,"CoffmanGrahamLayerer",1389),hIe(1390,1,xXe,Rg),xKe.ue=function(e,t){return $Oe(this.a,$H(e,10),$H(t,10))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(x3e,"CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type",1390),hIe(1391,1,xXe,Lg),xKe.ue=function(e,t){return Qz(this.a,$H(e,10),$H(t,10))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(x3e,"CoffmanGrahamLayerer/lambda$1$Type",1391),hIe(1392,1,w3e,Mo),xKe.Yf=function(e){return $H(e,37),fQ(fQ(fQ(new $2,(ASe(),Lat),(uKe(),blt)),Bat,klt),Pat,Tlt)},xKe.pf=function(e,t){wGe(this,$H(e,37),t)},mV(x3e,"InteractiveLayerer",1392),hIe(569,1,{569:1},tb),xKe.a=0,xKe.c=0,mV(x3e,"InteractiveLayerer/LayerSpan",569),hIe(1388,1,w3e,ed),xKe.Yf=function(e){return $H(e,37),ybt},xKe.pf=function(e,t){HLe(this,$H(e,37),t)},mV(x3e,"LongestPathLayerer",1388),hIe(1395,1,w3e,ad),xKe.Yf=function(e){return $H(e,37),fQ(fQ(fQ(new $2,(ASe(),Lat),(uKe(),rlt)),Bat,klt),Pat,Tlt)},xKe.pf=function(e,t){tVe(this,$H(e,37),t)},xKe.a=0,xKe.b=0,xKe.d=0,mV(x3e,"MinWidthLayerer",1395),hIe(1396,1,xXe,Bg),xKe.ue=function(e,t){return fae(this,$H(e,10),$H(t,10))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(x3e,"MinWidthLayerer/MinOutgoingEdgesComparator",1396),hIe(1387,1,w3e,od),xKe.Yf=function(e){return $H(e,37),xbt},xKe.pf=function(e,t){vze(this,$H(e,37),t)},mV(x3e,"NetworkSimplexLayerer",1387),hIe(1393,1,w3e,LP),xKe.Yf=function(e){return $H(e,37),fQ(fQ(fQ(new $2,(ASe(),Lat),(uKe(),rlt)),Bat,klt),Pat,Tlt)},xKe.pf=function(e,t){MWe(this,$H(e,37),t)},xKe.d=0,xKe.f=0,xKe.g=0,xKe.i=0,xKe.s=0,xKe.t=0,xKe.u=0,mV(x3e,"StretchWidthLayerer",1393),hIe(1394,1,xXe,Io),xKe.ue=function(e,t){return L6($H(e,10),$H(t,10))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(x3e,"StretchWidthLayerer/1",1394),hIe(402,1,E3e),xKe.Nf=function(e,t,n,r,i,o){},xKe._f=function(e,t,n){return n$e(this,e,t,n)},xKe.Mf=function(){this.g=N8(NRt,S3e,25,this.d,15,1),this.f=N8(NRt,S3e,25,this.d,15,1)},xKe.Of=function(e,t){this.e[e]=N8(kRt,lqe,25,t[e].length,15,1)},xKe.Pf=function(e,t,n){n[e][t].p=t,this.e[e][t]=t},xKe.Qf=function(e,t,n,r){$H(NQ(r[e][t].j,n),11).p=this.d++},xKe.b=0,xKe.c=0,xKe.d=0,mV(C3e,"AbstractBarycenterPortDistributor",402),hIe(1633,1,xXe,Pg),xKe.ue=function(e,t){return Hme(this.a,$H(e,11),$H(t,11))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(C3e,"AbstractBarycenterPortDistributor/lambda$0$Type",1633),hIe(817,1,D0e,U2),xKe.Nf=function(e,t,n,r,i,o){},xKe.Pf=function(e,t,n){},xKe.Qf=function(e,t,n,r){},xKe.Lf=function(){return!1},xKe.Mf=function(){this.c=this.e.a,this.g=this.f.g},xKe.Of=function(e,t){t[e][0].c.p=e},xKe.Rf=function(){return!1},xKe.ag=function(e,t,n,r){n?s_e(this,e):(R_e(this,e,r),Xze(this,e,t)),e.c.length>1&&(Hy(_B(vSe(mK((u0(0,e.c.length),$H(e.c[0],10))),(jVe(),Ngt))))?LDe(e,this.d,$H(this,660)):(Eq(),vD(e,this.d)),$ae(this.e,e))},xKe.Sf=function(e,t,n,r){var i,o,a,s,l,c,u;for(t!=qQ(n,e.length)&&(o=e[t-(n?1:-1)],U6(this.f,o,n?(ire(),HAt):(ire(),jAt))),i=e[t][0],u=!r||i.k==(oCe(),xst),c=o6(e[t]),this.ag(c,u,!1,n),a=0,l=new Gf(c);l.a<l.c.c.length;)s=$H(J0(l),10),e[t][a++]=s;return!1},xKe.Tf=function(e,t){var n,r,i,o,a;for(o=o6(e[a=qQ(t,e.length)]),this.ag(o,!1,!0,t),n=0,i=new Gf(o);i.a<i.c.c.length;)r=$H(J0(i),10),e[a][n++]=r;return!1},mV(C3e,"BarycenterHeuristic",817),hIe(658,1,{658:1},$g),xKe.Ib=function(){return"BarycenterState [node="+this.c+", summedWeight="+this.d+", degree="+this.b+", barycenter="+this.a+", visited="+this.e+"]"},xKe.b=0,xKe.d=0,xKe.e=!1;var Sbt=mV(C3e,"BarycenterHeuristic/BarycenterState",658);hIe(1802,1,xXe,Fg),xKe.ue=function(e,t){return xxe(this.a,$H(e,10),$H(t,10))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(C3e,"BarycenterHeuristic/lambda$0$Type",1802),hIe(816,1,D0e,zxe),xKe.Mf=function(){},xKe.Nf=function(e,t,n,r,i,o){},xKe.Qf=function(e,t,n,r){},xKe.Of=function(e,t){this.a[e]=N8(Sbt,{3:1,4:1,5:1,2018:1},658,t[e].length,0,1),this.b[e]=N8(Ibt,{3:1,4:1,5:1,2019:1},233,t[e].length,0,1)},xKe.Pf=function(e,t,n){Rme(this,n[e][t],!0)},xKe.c=!1,mV(C3e,"ForsterConstraintResolver",816),hIe(233,1,{233:1},RX,oze),xKe.Ib=function(){var e,t;for((t=new Cw).a+="[",e=0;e<this.d.length;e++)aM(t,Mve(this.d[e])),null!=uN(this.g,this.d[0]).a&&aM(aM((t.a+="<",t),XO(uN(this.g,this.d[0]).a)),">"),e<this.d.length-1&&(t.a+=FKe);return(t.a+="]",t).a},xKe.a=0,xKe.c=0,xKe.f=0;var Cbt,Tbt,kbt,Obt,Mbt,Ibt=mV(C3e,"ForsterConstraintResolver/ConstraintGroup",233);hIe(1797,1,uYe,Hg),xKe.td=function(e){Rme(this.a,$H(e,10),!1)},mV(C3e,"ForsterConstraintResolver/lambda$0$Type",1797),hIe(214,1,{214:1,225:1},Cze),xKe.Nf=function(e,t,n,r,i,o){},xKe.Of=function(e,t){},xKe.Mf=function(){this.r=N8(kRt,lqe,25,this.n,15,1)},xKe.Pf=function(e,t,n){var r;(r=n[e][t].e)&&GH(this.b,r)},xKe.Qf=function(e,t,n,r){++this.n},xKe.Ib=function(){return tWe(this.e,new LA)},xKe.g=!1,xKe.i=!1,xKe.n=0,xKe.s=!1,mV(C3e,"GraphInfoHolder",214),hIe(1832,1,D0e,ko),xKe.Nf=function(e,t,n,r,i,o){},xKe.Of=function(e,t){},xKe.Qf=function(e,t,n,r){},xKe._f=function(e,t,n){return n&&t>0?oZ(this.a,e[t-1],e[t]):!n&&t<e.length-1?oZ(this.a,e[t],e[t+1]):Aie(this.a,e[t],n?(bGe(),COt):(bGe(),aOt)),dNe(this,e,t,n)},xKe.Mf=function(){this.d=N8(kRt,lqe,25,this.c,15,1),this.a=new KF(this.d)},xKe.Pf=function(e,t,n){var r;r=n[e][t],this.c+=r.j.c.length},xKe.c=0,mV(C3e,"GreedyPortDistributor",1832),hIe(1401,1,w3e,hd),xKe.Yf=function(e){return Wue($H(e,37))},xKe.pf=function(e,t){Wze($H(e,37),t)},mV(C3e,"InteractiveCrossingMinimizer",1401),hIe(1402,1,xXe,Ug),xKe.ue=function(e,t){return j_e(this,$H(e,10),$H(t,10))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(C3e,"InteractiveCrossingMinimizer/1",1402),hIe(507,1,{507:1,123:1,51:1},Dy),xKe.Yf=function(e){var t;return $H(e,37),fQ(t=bI(Tbt),(ASe(),Pat),(uKe(),$lt)),t},xKe.pf=function(e,t){S$e(this,$H(e,37),t)},xKe.e=0,mV(C3e,"LayerSweepCrossingMinimizer",507),hIe(1398,1,uYe,Qg),xKe.td=function(e){hHe(this.a,$H(e,214))},mV(C3e,"LayerSweepCrossingMinimizer/0methodref$compareDifferentRandomizedLayouts$Type",1398),hIe(1399,1,uYe,zg),xKe.td=function(e){kue(this.a,$H(e,214))},mV(C3e,"LayerSweepCrossingMinimizer/1methodref$minimizeCrossingsNoCounter$Type",1399),hIe(1400,1,uYe,Wg),xKe.td=function(e){gje(this.a,$H(e,214))},mV(C3e,"LayerSweepCrossingMinimizer/2methodref$minimizeCrossingsWithCounter$Type",1400),hIe(454,22,{3:1,35:1,22:1,454:1},YT);var Dbt,Nbt=$ne(C3e,"LayerSweepCrossingMinimizer/CrossMinType",454,Wet,R0,xj);hIe(1397,1,RYe,Do),xKe.Mb=function(e){return Poe(),0==$H(e,29).a.c.length},mV(C3e,"LayerSweepCrossingMinimizer/lambda$0$Type",1397),hIe(1799,1,D0e,iZ),xKe.Mf=function(){},xKe.Nf=function(e,t,n,r,i,o){},xKe.Qf=function(e,t,n,r){},xKe.Of=function(e,t){t[e][0].c.p=e,this.b[e]=N8(Pbt,{3:1,4:1,5:1,1944:1},659,t[e].length,0,1)},xKe.Pf=function(e,t,n){n[e][t].p=t,MV(this.b[e],t,new No)},mV(C3e,"LayerSweepTypeDecider",1799),hIe(659,1,{659:1},No),xKe.Ib=function(){return"NodeInfo [connectedEdges="+this.a+", hierarchicalInfluence="+this.b+", randomInfluence="+this.c+"]"},xKe.a=0,xKe.b=0,xKe.c=0;var Rbt,Lbt,Bbt,Pbt=mV(C3e,"LayerSweepTypeDecider/NodeInfo",659);hIe(1800,1,HXe,Ro),xKe.Lb=function(e){return QR(new v6($H(e,11).b))},xKe.Fb=function(e){return this===e},xKe.Mb=function(e){return QR(new v6($H(e,11).b))},mV(C3e,"LayerSweepTypeDecider/lambda$0$Type",1800),hIe(1801,1,HXe,Lo),xKe.Lb=function(e){return QR(new v6($H(e,11).b))},xKe.Fb=function(e){return this===e},xKe.Mb=function(e){return QR(new v6($H(e,11).b))},mV(C3e,"LayerSweepTypeDecider/lambda$1$Type",1801),hIe(1833,402,E3e,R_),xKe.$f=function(e,t,n){var r,i,o,a,s,l,c,u,d;switch(c=this.g,n.g){case 1:for(r=0,i=0,l=new Gf(e.j);l.a<l.c.c.length;)0!=(a=$H(J0(l),11)).e.c.length&&(++r,a.j==(bGe(),sOt)&&++i);for(o=t+i,d=t+r,s=Npe(e,(ire(),jAt)).Kc();s.Ob();)(a=$H(s.Pb(),11)).j==(bGe(),sOt)?(c[a.p]=o,--o):(c[a.p]=d,--d);return r;case 2:for(u=0,s=Npe(e,(ire(),HAt)).Kc();s.Ob();)++u,c[(a=$H(s.Pb(),11)).p]=t+u;return u;default:throw jv(new hA)}},mV(C3e,"LayerTotalPortDistributor",1833),hIe(660,817,{660:1,225:1},gie),xKe.ag=function(e,t,n,r){n?s_e(this,e):(R_e(this,e,r),Xze(this,e,t)),e.c.length>1&&(Hy(_B(vSe(mK((u0(0,e.c.length),$H(e.c[0],10))),(jVe(),Ngt))))?LDe(e,this.d,this):(Eq(),vD(e,this.d)),Hy(_B(vSe(mK((u0(0,e.c.length),$H(e.c[0],10))),Ngt)))||$ae(this.e,e))},mV(C3e,"ModelOrderBarycenterHeuristic",660),hIe(1803,1,xXe,Gg),xKe.ue=function(e,t){return BCe(this.a,$H(e,10),$H(t,10))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(C3e,"ModelOrderBarycenterHeuristic/lambda$0$Type",1803),hIe(1403,1,w3e,bd),xKe.Yf=function(e){var t;return $H(e,37),fQ(t=bI(Rbt),(ASe(),Pat),(uKe(),$lt)),t},xKe.pf=function(e,t){vX(($H(e,37),t))},mV(C3e,"NoCrossingMinimizer",1403),hIe(796,402,E3e,L_),xKe.$f=function(e,t,n){var r,i,o,a,s,l,c,u,d,h,f;switch(d=this.g,n.g){case 1:for(i=0,o=0,u=new Gf(e.j);u.a<u.c.c.length;)0!=(l=$H(J0(u),11)).e.c.length&&(++i,l.j==(bGe(),sOt)&&++o);for(a=t+o*(r=1/(i+1)),f=t+1-r,c=Npe(e,(ire(),jAt)).Kc();c.Ob();)(l=$H(c.Pb(),11)).j==(bGe(),sOt)?(d[l.p]=a,a-=r):(d[l.p]=f,f-=r);break;case 2:for(s=0,u=new Gf(e.j);u.a<u.c.c.length;)0==(l=$H(J0(u),11)).g.c.length||++s;for(h=t+(r=1/(s+1)),c=Npe(e,(ire(),HAt)).Kc();c.Ob();)d[(l=$H(c.Pb(),11)).p]=h,h+=r;break;default:throw jv(new Py("Port type is undefined"))}return 1},mV(C3e,"NodeRelativePortDistributor",796),hIe(807,1,{},VW,jSe),mV(C3e,"SweepCopy",807),hIe(1798,1,D0e,hge),xKe.Of=function(e,t){},xKe.Mf=function(){var e;e=N8(kRt,lqe,25,this.f,15,1),this.d=new em(e),this.a=new KF(e)},xKe.Nf=function(e,t,n,r,i,o){var a;a=$H(NQ(o[e][t].j,n),11),i.c==a&&i.c.i.c==i.d.i.c&&++this.e[e]},xKe.Pf=function(e,t,n){var r;r=n[e][t],this.c[e]=this.c[e]|r.k==(oCe(),Tst)},xKe.Qf=function(e,t,n,r){var i;(i=$H(NQ(r[e][t].j,n),11)).p=this.f++,i.g.c.length+i.e.c.length>1&&(i.j==(bGe(),aOt)?this.b[e]=!0:i.j==COt&&e>0&&(this.b[e-1]=!0))},xKe.f=0,mV(I0e,"AllCrossingsCounter",1798),hIe(587,1,{},vie),xKe.b=0,xKe.d=0,mV(I0e,"BinaryIndexedTree",587),hIe(524,1,{},KF),mV(I0e,"CrossingsCounter",524),hIe(1906,1,xXe,Vg),xKe.ue=function(e,t){return WQ(this.a,$H(e,11),$H(t,11))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(I0e,"CrossingsCounter/lambda$0$Type",1906),hIe(1907,1,xXe,Kg),xKe.ue=function(e,t){return GQ(this.a,$H(e,11),$H(t,11))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(I0e,"CrossingsCounter/lambda$1$Type",1907),hIe(1908,1,xXe,Yg),xKe.ue=function(e,t){return VQ(this.a,$H(e,11),$H(t,11))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(I0e,"CrossingsCounter/lambda$2$Type",1908),hIe(1909,1,xXe,qg),xKe.ue=function(e,t){return KQ(this.a,$H(e,11),$H(t,11))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(I0e,"CrossingsCounter/lambda$3$Type",1909),hIe(1910,1,uYe,Xg),xKe.td=function(e){g9(this.a,$H(e,11))},mV(I0e,"CrossingsCounter/lambda$4$Type",1910),hIe(1911,1,RYe,Jg),xKe.Mb=function(e){return AO(this.a,$H(e,11))},mV(I0e,"CrossingsCounter/lambda$5$Type",1911),hIe(1912,1,uYe,Zg),xKe.td=function(e){vO(this,e)},mV(I0e,"CrossingsCounter/lambda$6$Type",1912),hIe(1913,1,uYe,XT),xKe.td=function(e){var t;lU(),f3(this.b,(t=this.a,$H(e,11),t))},mV(I0e,"CrossingsCounter/lambda$7$Type",1913),hIe(826,1,HXe,Bo),xKe.Lb=function(e){return lU(),IL($H(e,11),(lKe(),wht))},xKe.Fb=function(e){return this===e},xKe.Mb=function(e){return lU(),IL($H(e,11),(lKe(),wht))},mV(I0e,"CrossingsCounter/lambda$8$Type",826),hIe(1905,1,{},em),mV(I0e,"HyperedgeCrossingsCounter",1905),hIe(467,1,{35:1,467:1},RP),xKe.wd=function(e){return mme(this,$H(e,467))},xKe.b=0,xKe.c=0,xKe.e=0,xKe.f=0;var Fbt=mV(I0e,"HyperedgeCrossingsCounter/Hyperedge",467);hIe(362,1,{35:1,362:1},HY),xKe.wd=function(e){return uDe(this,$H(e,362))},xKe.b=0,xKe.c=0;var $bt,jbt,Hbt=mV(I0e,"HyperedgeCrossingsCounter/HyperedgeCorner",362);hIe(523,22,{3:1,35:1,22:1,523:1},qT);var Ubt,Qbt,zbt,Wbt,Gbt,Vbt=$ne(I0e,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",523,Wet,WX,Ej);hIe(1405,1,w3e,cd),xKe.Yf=function(e){return $H(vSe($H(e,37),(lKe(),Xdt)),21).Hc((dBe(),udt))?Qbt:null},xKe.pf=function(e,t){u_e(this,$H(e,37),t)},mV(T3e,"InteractiveNodePlacer",1405),hIe(1406,1,w3e,ld),xKe.Yf=function(e){return $H(vSe($H(e,37),(lKe(),Xdt)),21).Hc((dBe(),udt))?zbt:null},xKe.pf=function(e,t){ybe(this,$H(e,37),t)},mV(T3e,"LinearSegmentsNodePlacer",1406),hIe(257,1,{35:1,257:1},nb),xKe.wd=function(e){return o_(this,$H(e,257))},xKe.Fb=function(e){var t;return!!rN(e,257)&&(t=$H(e,257),this.b==t.b)},xKe.Hb=function(){return this.b},xKe.Ib=function(){return"ls"+ISe(this.e)},xKe.a=0,xKe.b=0,xKe.c=-1,xKe.d=-1,xKe.g=0;var Kbt,Ybt=mV(T3e,"LinearSegmentsNodePlacer/LinearSegment",257);hIe(1408,1,w3e,Pz),xKe.Yf=function(e){return $H(vSe($H(e,37),(lKe(),Xdt)),21).Hc((dBe(),udt))?Kbt:null},xKe.pf=function(e,t){EVe(this,$H(e,37),t)},xKe.b=0,xKe.g=0,mV(T3e,"NetworkSimplexPlacer",1408),hIe(1427,1,xXe,Po),xKe.ue=function(e,t){return wD($H(e,19).a,$H(t,19).a)},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(T3e,"NetworkSimplexPlacer/0methodref$compare$Type",1427),hIe(1429,1,xXe,Fo),xKe.ue=function(e,t){return wD($H(e,19).a,$H(t,19).a)},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(T3e,"NetworkSimplexPlacer/1methodref$compare$Type",1429),hIe(649,1,{649:1},JT);var qbt=mV(T3e,"NetworkSimplexPlacer/EdgeRep",649);hIe(401,1,{401:1},UY),xKe.b=!1;var Xbt,Jbt,Zbt,eyt=mV(T3e,"NetworkSimplexPlacer/NodeRep",401);hIe(508,12,{3:1,4:1,20:1,28:1,52:1,12:1,14:1,15:1,54:1,508:1},ob),mV(T3e,"NetworkSimplexPlacer/Path",508),hIe(1409,1,{},$o),xKe.Kb=function(e){return $H(e,17).d.i.k},mV(T3e,"NetworkSimplexPlacer/Path/lambda$0$Type",1409),hIe(1410,1,RYe,jo),xKe.Mb=function(e){return $H(e,267)==(oCe(),Sst)},mV(T3e,"NetworkSimplexPlacer/Path/lambda$1$Type",1410),hIe(1411,1,{},Ho),xKe.Kb=function(e){return $H(e,17).d.i},mV(T3e,"NetworkSimplexPlacer/Path/lambda$2$Type",1411),hIe(1412,1,RYe,tm),xKe.Mb=function(e){return jB(Zpe($H(e,10)))},mV(T3e,"NetworkSimplexPlacer/Path/lambda$3$Type",1412),hIe(1413,1,RYe,Uo),xKe.Mb=function(e){return lQ($H(e,11))},mV(T3e,"NetworkSimplexPlacer/lambda$0$Type",1413),hIe(1414,1,uYe,ZT),xKe.td=function(e){RD(this.a,this.b,$H(e,11))},mV(T3e,"NetworkSimplexPlacer/lambda$1$Type",1414),hIe(1423,1,uYe,nm),xKe.td=function(e){Gke(this.a,$H(e,17))},mV(T3e,"NetworkSimplexPlacer/lambda$10$Type",1423),hIe(1424,1,{},Qo),xKe.Kb=function(e){return $Z(),new LQ(null,new h0($H(e,29).a,16))},mV(T3e,"NetworkSimplexPlacer/lambda$11$Type",1424),hIe(1425,1,uYe,rm),xKe.td=function(e){$Be(this.a,$H(e,10))},mV(T3e,"NetworkSimplexPlacer/lambda$12$Type",1425),hIe(1426,1,{},zo),xKe.Kb=function(e){return $Z(),the($H(e,121).e)},mV(T3e,"NetworkSimplexPlacer/lambda$13$Type",1426),hIe(1428,1,{},Wo),xKe.Kb=function(e){return $Z(),the($H(e,121).e)},mV(T3e,"NetworkSimplexPlacer/lambda$15$Type",1428),hIe(1430,1,RYe,Go),xKe.Mb=function(e){return $Z(),$H(e,401).c.k==(oCe(),Cst)},mV(T3e,"NetworkSimplexPlacer/lambda$17$Type",1430),hIe(1431,1,RYe,Vo),xKe.Mb=function(e){return $Z(),$H(e,401).c.j.c.length>1},mV(T3e,"NetworkSimplexPlacer/lambda$18$Type",1431),hIe(1432,1,uYe,QY),xKe.td=function(e){rpe(this.c,this.b,this.d,this.a,$H(e,401))},xKe.c=0,xKe.d=0,mV(T3e,"NetworkSimplexPlacer/lambda$19$Type",1432),hIe(1415,1,{},Ko),xKe.Kb=function(e){return $Z(),new LQ(null,new h0($H(e,29).a,16))},mV(T3e,"NetworkSimplexPlacer/lambda$2$Type",1415),hIe(1433,1,uYe,im),xKe.td=function(e){DD(this.a,$H(e,11))},xKe.a=0,mV(T3e,"NetworkSimplexPlacer/lambda$20$Type",1433),hIe(1434,1,{},Yo),xKe.Kb=function(e){return $Z(),new LQ(null,new h0($H(e,29).a,16))},mV(T3e,"NetworkSimplexPlacer/lambda$21$Type",1434),hIe(1435,1,uYe,om),xKe.td=function(e){fN(this.a,$H(e,10))},mV(T3e,"NetworkSimplexPlacer/lambda$22$Type",1435),hIe(1436,1,RYe,qo),xKe.Mb=function(e){return jB(e)},mV(T3e,"NetworkSimplexPlacer/lambda$23$Type",1436),hIe(1437,1,{},Xo),xKe.Kb=function(e){return $Z(),new LQ(null,new h0($H(e,29).a,16))},mV(T3e,"NetworkSimplexPlacer/lambda$24$Type",1437),hIe(1438,1,RYe,am),xKe.Mb=function(e){return wM(this.a,$H(e,10))},mV(T3e,"NetworkSimplexPlacer/lambda$25$Type",1438),hIe(1439,1,uYe,ek),xKe.td=function(e){xTe(this.a,this.b,$H(e,10))},mV(T3e,"NetworkSimplexPlacer/lambda$26$Type",1439),hIe(1440,1,RYe,Jo),xKe.Mb=function(e){return $Z(),!d5($H(e,17))},mV(T3e,"NetworkSimplexPlacer/lambda$27$Type",1440),hIe(1441,1,RYe,Zo),xKe.Mb=function(e){return $Z(),!d5($H(e,17))},mV(T3e,"NetworkSimplexPlacer/lambda$28$Type",1441),hIe(1442,1,{},sm),xKe.Ce=function(e,t){return sN(this.a,$H(e,29),$H(t,29))},mV(T3e,"NetworkSimplexPlacer/lambda$29$Type",1442),hIe(1416,1,{},ea),xKe.Kb=function(e){return $Z(),new LQ(null,new QG(new aW(XN(ufe($H(e,10)).a.Kc(),new u))))},mV(T3e,"NetworkSimplexPlacer/lambda$3$Type",1416),hIe(1417,1,RYe,ta),xKe.Mb=function(e){return $Z(),Z1($H(e,17))},mV(T3e,"NetworkSimplexPlacer/lambda$4$Type",1417),hIe(1418,1,uYe,lm),xKe.td=function(e){tHe(this.a,$H(e,17))},mV(T3e,"NetworkSimplexPlacer/lambda$5$Type",1418),hIe(1419,1,{},na),xKe.Kb=function(e){return $Z(),new LQ(null,new h0($H(e,29).a,16))},mV(T3e,"NetworkSimplexPlacer/lambda$6$Type",1419),hIe(1420,1,RYe,ra),xKe.Mb=function(e){return $Z(),$H(e,10).k==(oCe(),Cst)},mV(T3e,"NetworkSimplexPlacer/lambda$7$Type",1420),hIe(1421,1,{},ia),xKe.Kb=function(e){return $Z(),new LQ(null,new QG(new aW(XN(lfe($H(e,10)).a.Kc(),new u))))},mV(T3e,"NetworkSimplexPlacer/lambda$8$Type",1421),hIe(1422,1,RYe,oa),xKe.Mb=function(e){return $Z(),zU($H(e,17))},mV(T3e,"NetworkSimplexPlacer/lambda$9$Type",1422),hIe(1404,1,w3e,Sd),xKe.Yf=function(e){return $H(vSe($H(e,37),(lKe(),Xdt)),21).Hc((dBe(),udt))?Xbt:null},xKe.pf=function(e,t){bUe($H(e,37),t)},mV(T3e,"SimpleNodePlacer",1404),hIe(180,1,{180:1},HFe),xKe.Ib=function(){var e;return e="",this.c==(pJ(),Zbt)?e+=iJe:this.c==Jbt&&(e+=rJe),this.o==(aZ(),nyt)?e+=gJe:this.o==ryt?e+="UP":e+="BALANCED",e},mV(M3e,"BKAlignedLayout",180),hIe(516,22,{3:1,35:1,22:1,516:1},rk);var tyt,nyt,ryt,iyt=$ne(M3e,"BKAlignedLayout/HDirection",516,Wet,VX,Sj);hIe(515,22,{3:1,35:1,22:1,515:1},nk);var oyt,ayt,syt,lyt,cyt,uyt,dyt,hyt,fyt,pyt,gyt,myt,vyt,Ayt,byt,yyt,wyt,_yt,xyt,Eyt=$ne(M3e,"BKAlignedLayout/VDirection",515,Wet,KX,Cj);hIe(1634,1,{},tk),mV(M3e,"BKAligner",1634),hIe(1637,1,{},qye),mV(M3e,"BKCompactor",1637),hIe(654,1,{654:1},aa),xKe.a=0,mV(M3e,"BKCompactor/ClassEdge",654),hIe(458,1,{458:1},rb),xKe.a=null,xKe.b=0,mV(M3e,"BKCompactor/ClassNode",458),hIe(1407,1,w3e,yO),xKe.Yf=function(e){return $H(vSe($H(e,37),(lKe(),Xdt)),21).Hc((dBe(),udt))?ayt:null},xKe.pf=function(e,t){nKe(this,$H(e,37),t)},xKe.d=!1,mV(M3e,"BKNodePlacer",1407),hIe(1635,1,{},sa),xKe.d=0,mV(M3e,"NeighborhoodInformation",1635),hIe(1636,1,xXe,cm),xKe.ue=function(e,t){return xte(this,$H(e,46),$H(t,46))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(M3e,"NeighborhoodInformation/NeighborComparator",1636),hIe(808,1,{}),mV(M3e,"ThresholdStrategy",808),hIe(1763,808,{},fb),xKe.bg=function(e,t,n){return this.a.o==(aZ(),ryt)?Lqe:Bqe},xKe.cg=function(){},mV(M3e,"ThresholdStrategy/NullThresholdStrategy",1763),hIe(579,1,{579:1},ik),xKe.c=!1,xKe.d=!1,mV(M3e,"ThresholdStrategy/Postprocessable",579),hIe(1764,808,{},pb),xKe.bg=function(e,t,n){var r,i,o;return i=t==n,r=this.a.a[n.p]==t,i||r?(o=e,this.a.c,pJ(),i&&(o=_Ue(this,t,!0)),!isNaN(o)&&!isFinite(o)&&r&&(o=_Ue(this,n,!1)),o):e},xKe.cg=function(){for(var e,t,n;0!=this.d.b;)(t=rje(this,n=$H(SJ(this.d),579))).a&&(e=t.a,(Hy(this.a.f[this.a.g[n.b.p].p])||d5(e)||e.c.i.c!=e.d.i.c)&&(dDe(this,n)||nI(this.e,n)));for(;0!=this.e.a.c.length;)dDe(this,$H(Zce(this.e),579))},mV(M3e,"ThresholdStrategy/SimpleThresholdStrategy",1764),hIe(635,1,{635:1,246:1,234:1},la),xKe.Kf=function(){return _ae(this)},xKe.Xf=function(){return _ae(this)},mV(I3e,"EdgeRouterFactory",635),hIe(1458,1,w3e,Cd),xKe.Yf=function(e){return zLe($H(e,37))},xKe.pf=function(e,t){RUe($H(e,37),t)},mV(I3e,"OrthogonalEdgeRouter",1458),hIe(1451,1,w3e,wO),xKe.Yf=function(e){return w_e($H(e,37))},xKe.pf=function(e,t){kGe(this,$H(e,37),t)},mV(I3e,"PolylineEdgeRouter",1451),hIe(1452,1,HXe,ca),xKe.Lb=function(e){return Kae($H(e,10))},xKe.Fb=function(e){return this===e},xKe.Mb=function(e){return Kae($H(e,10))},mV(I3e,"PolylineEdgeRouter/1",1452),hIe(1809,1,RYe,ua),xKe.Mb=function(e){return $H(e,129).c==(k6(),_yt)},mV(D3e,"HyperEdgeCycleDetector/lambda$0$Type",1809),hIe(1810,1,{},da),xKe.Ge=function(e){return $H(e,129).d},mV(D3e,"HyperEdgeCycleDetector/lambda$1$Type",1810),hIe(1811,1,RYe,ha),xKe.Mb=function(e){return $H(e,129).c==(k6(),_yt)},mV(D3e,"HyperEdgeCycleDetector/lambda$2$Type",1811),hIe(1812,1,{},fa),xKe.Ge=function(e){return $H(e,129).d},mV(D3e,"HyperEdgeCycleDetector/lambda$3$Type",1812),hIe(1813,1,{},pa),xKe.Ge=function(e){return $H(e,129).d},mV(D3e,"HyperEdgeCycleDetector/lambda$4$Type",1813),hIe(1814,1,{},ga),xKe.Ge=function(e){return $H(e,129).d},mV(D3e,"HyperEdgeCycleDetector/lambda$5$Type",1814),hIe(112,1,{35:1,112:1},Fae),xKe.wd=function(e){return a_(this,$H(e,112))},xKe.Fb=function(e){var t;return!!rN(e,112)&&(t=$H(e,112),this.g==t.g)},xKe.Hb=function(){return this.g},xKe.Ib=function(){var e,t,n,r;for(e=new uR("{"),r=new Gf(this.n);r.a<r.c.c.length;)null==(t=pye((n=$H(J0(r),11)).i))&&(t="n"+OF(n.i)),e.a+=""+t,r.a<r.c.c.length&&(e.a+=",");return e.a+="}",e.a},xKe.a=0,xKe.b=0,xKe.c=NaN,xKe.d=0,xKe.g=0,xKe.i=0,xKe.o=0,xKe.s=NaN,mV(D3e,"HyperEdgeSegment",112),hIe(129,1,{129:1},QZ),xKe.Ib=function(){return this.a+"->"+this.b+" ("+hL(this.c)+")"},xKe.d=0,mV(D3e,"HyperEdgeSegmentDependency",129),hIe(520,22,{3:1,35:1,22:1,520:1},ok);var Syt,Cyt,Tyt,kyt,Oyt,Myt,Iyt,Dyt,Nyt=$ne(D3e,"HyperEdgeSegmentDependency/DependencyType",520,Wet,GX,Tj);hIe(1815,1,{},um),mV(D3e,"HyperEdgeSegmentSplitter",1815),hIe(1816,1,{},Q_),xKe.a=0,xKe.b=0,mV(D3e,"HyperEdgeSegmentSplitter/AreaRating",1816),hIe(329,1,{329:1},bH),xKe.a=0,xKe.b=0,xKe.c=0,mV(D3e,"HyperEdgeSegmentSplitter/FreeArea",329),hIe(1817,1,xXe,xa),xKe.ue=function(e,t){return kF($H(e,112),$H(t,112))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(D3e,"HyperEdgeSegmentSplitter/lambda$0$Type",1817),hIe(1818,1,uYe,WY),xKe.td=function(e){J3(this.a,this.d,this.c,this.b,$H(e,112))},xKe.b=0,mV(D3e,"HyperEdgeSegmentSplitter/lambda$1$Type",1818),hIe(1819,1,{},Ea),xKe.Kb=function(e){return new LQ(null,new h0($H(e,112).e,16))},mV(D3e,"HyperEdgeSegmentSplitter/lambda$2$Type",1819),hIe(1820,1,{},Sa),xKe.Kb=function(e){return new LQ(null,new h0($H(e,112).j,16))},mV(D3e,"HyperEdgeSegmentSplitter/lambda$3$Type",1820),hIe(1821,1,{},Ca),xKe.Fe=function(e){return Uy(xB(e))},mV(D3e,"HyperEdgeSegmentSplitter/lambda$4$Type",1821),hIe(655,1,{},cV),xKe.a=0,xKe.b=0,xKe.c=0,mV(D3e,"OrthogonalRoutingGenerator",655),hIe(1638,1,{},Ta),xKe.Kb=function(e){return new LQ(null,new h0($H(e,112).e,16))},mV(D3e,"OrthogonalRoutingGenerator/lambda$0$Type",1638),hIe(1639,1,{},ka),xKe.Kb=function(e){return new LQ(null,new h0($H(e,112).j,16))},mV(D3e,"OrthogonalRoutingGenerator/lambda$1$Type",1639),hIe(661,1,{}),mV(N3e,"BaseRoutingDirectionStrategy",661),hIe(1807,661,{},gb),xKe.dg=function(e,t,n){var i,o,a,s,l,c,u,d,h,f,p,g,m;if(!e.r||e.q)for(d=t+e.o*n,u=new Gf(e.n);u.a<u.c.c.length;)for(c=$H(J0(u),11),h=Ole(Sse(Uw(SSt,1),sYe,8,0,[c.i.n,c.n,c.a])).a,l=new Gf(c.g);l.a<l.c.c.length;)d5(s=$H(J0(l),17))||(g=s.d,m=Ole(Sse(Uw(SSt,1),sYe,8,0,[g.i.n,g.n,g.a])).a,r.Math.abs(h-m)>uZe&&(o=e,i=new Nk(h,a=d),RU(s.a,i),F$e(this,s,o,i,!1),(f=e.r)&&(i=new Nk(p=Uy(xB(Rve(f.e,0))),a),RU(s.a,i),F$e(this,s,o,i,!1),o=f,i=new Nk(p,a=t+f.o*n),RU(s.a,i),F$e(this,s,o,i,!1)),i=new Nk(m,a),RU(s.a,i),F$e(this,s,o,i,!1)))},xKe.eg=function(e){return e.i.n.a+e.n.a+e.a.a},xKe.fg=function(){return bGe(),EOt},xKe.gg=function(){return bGe(),sOt},mV(N3e,"NorthToSouthRoutingStrategy",1807),hIe(1808,661,{},mb),xKe.dg=function(e,t,n){var i,o,a,s,l,c,u,d,h,f,p,g,m;if(!e.r||e.q)for(d=t-e.o*n,u=new Gf(e.n);u.a<u.c.c.length;)for(c=$H(J0(u),11),h=Ole(Sse(Uw(SSt,1),sYe,8,0,[c.i.n,c.n,c.a])).a,l=new Gf(c.g);l.a<l.c.c.length;)d5(s=$H(J0(l),17))||(g=s.d,m=Ole(Sse(Uw(SSt,1),sYe,8,0,[g.i.n,g.n,g.a])).a,r.Math.abs(h-m)>uZe&&(o=e,i=new Nk(h,a=d),RU(s.a,i),F$e(this,s,o,i,!1),(f=e.r)&&(i=new Nk(p=Uy(xB(Rve(f.e,0))),a),RU(s.a,i),F$e(this,s,o,i,!1),o=f,i=new Nk(p,a=t-f.o*n),RU(s.a,i),F$e(this,s,o,i,!1)),i=new Nk(m,a),RU(s.a,i),F$e(this,s,o,i,!1)))},xKe.eg=function(e){return e.i.n.a+e.n.a+e.a.a},xKe.fg=function(){return bGe(),sOt},xKe.gg=function(){return bGe(),EOt},mV(N3e,"SouthToNorthRoutingStrategy",1808),hIe(1806,661,{},vb),xKe.dg=function(e,t,n){var i,o,a,s,l,c,u,d,h,f,p,g,m;if(!e.r||e.q)for(d=t+e.o*n,u=new Gf(e.n);u.a<u.c.c.length;)for(c=$H(J0(u),11),h=Ole(Sse(Uw(SSt,1),sYe,8,0,[c.i.n,c.n,c.a])).b,l=new Gf(c.g);l.a<l.c.c.length;)d5(s=$H(J0(l),17))||(g=s.d,m=Ole(Sse(Uw(SSt,1),sYe,8,0,[g.i.n,g.n,g.a])).b,r.Math.abs(h-m)>uZe&&(o=e,i=new Nk(a=d,h),RU(s.a,i),F$e(this,s,o,i,!0),(f=e.r)&&(i=new Nk(a,p=Uy(xB(Rve(f.e,0)))),RU(s.a,i),F$e(this,s,o,i,!0),o=f,i=new Nk(a=t+f.o*n,p),RU(s.a,i),F$e(this,s,o,i,!0)),i=new Nk(a,m),RU(s.a,i),F$e(this,s,o,i,!0)))},xKe.eg=function(e){return e.i.n.b+e.n.b+e.a.b},xKe.fg=function(){return bGe(),aOt},xKe.gg=function(){return bGe(),COt},mV(N3e,"WestToEastRoutingStrategy",1806),hIe(813,1,{},aHe),xKe.Ib=function(){return ISe(this.a)},xKe.b=0,xKe.c=!1,xKe.d=!1,xKe.f=0,mV(L3e,"NubSpline",813),hIe(407,1,{407:1},wLe,hJ),mV(L3e,"NubSpline/PolarCP",407),hIe(1453,1,w3e,lye),xKe.Yf=function(e){return nEe($H(e,37))},xKe.pf=function(e,t){rVe(this,$H(e,37),t)},mV(L3e,"SplineEdgeRouter",1453),hIe(268,1,{268:1},E6),xKe.Ib=function(){return this.a+" ->("+this.c+") "+this.b},xKe.c=0,mV(L3e,"SplineEdgeRouter/Dependency",268),hIe(455,22,{3:1,35:1,22:1,455:1},ak);var Ryt,Lyt,Byt,Pyt,Fyt,$yt=$ne(L3e,"SplineEdgeRouter/SideToProcess",455,Wet,YX,kj);hIe(1454,1,RYe,wa),xKe.Mb=function(e){return pLe(),!$H(e,128).o},mV(L3e,"SplineEdgeRouter/lambda$0$Type",1454),hIe(1455,1,{},ya),xKe.Ge=function(e){return pLe(),$H(e,128).v+1},mV(L3e,"SplineEdgeRouter/lambda$1$Type",1455),hIe(1456,1,uYe,sk),xKe.td=function(e){tQ(this.a,this.b,$H(e,46))},mV(L3e,"SplineEdgeRouter/lambda$2$Type",1456),hIe(1457,1,uYe,lk),xKe.td=function(e){nQ(this.a,this.b,$H(e,46))},mV(L3e,"SplineEdgeRouter/lambda$3$Type",1457),hIe(128,1,{35:1,128:1},ZTe,lQe),xKe.wd=function(e){return s_(this,$H(e,128))},xKe.b=0,xKe.e=!1,xKe.f=0,xKe.g=0,xKe.j=!1,xKe.k=!1,xKe.n=0,xKe.o=!1,xKe.p=!1,xKe.q=!1,xKe.s=0,xKe.u=0,xKe.v=0,xKe.F=0,mV(L3e,"SplineSegment",128),hIe(459,1,{459:1},_a),xKe.a=0,xKe.b=!1,xKe.c=!1,xKe.d=!1,xKe.e=!1,xKe.f=0,mV(L3e,"SplineSegment/EdgeInformation",459),hIe(1234,1,{},ma),mV(j3e,tZe,1234),hIe(1235,1,xXe,va),xKe.ue=function(e,t){return TOe($H(e,135),$H(t,135))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(j3e,nZe,1235),hIe(1233,1,{},Ox),mV(j3e,"MrTree",1233),hIe(393,22,{3:1,35:1,22:1,393:1,246:1,234:1},ck),xKe.Kf=function(){return OOe(this)},xKe.Xf=function(){return OOe(this)};var jyt,Hyt=$ne(j3e,"TreeLayoutPhases",393,Wet,y3,Oj);hIe(1130,209,DJe,PP),xKe.Ze=function(e,t){var n,r,i,o,a,s;for(Hy(_B(XIe(e,(CIe(),Cwt))))||yJ(new _p((US(),new Ry(e)))),Hae(a=new S6,e),lle(a,(HQe(),swt),e),m$e(e,a,s=new Nv),G$e(e,a,s),o=a,r=new Gf(i=N$e(this.a,o));r.a<r.c.c.length;)n=$H(J0(r),135),Gxe(this.b,n,voe(t,1/i.c.length));TWe(o=ZVe(i))},mV(j3e,"TreeLayoutProvider",1130),hIe(1847,1,gYe,Aa),xKe.Jc=function(e){e5(this,e)},xKe.Kc=function(){return Eq(),IE(),dnt},mV(j3e,"TreeUtil/1",1847),hIe(1848,1,gYe,ba),xKe.Jc=function(e){e5(this,e)},xKe.Kc=function(){return Eq(),IE(),dnt},mV(j3e,"TreeUtil/2",1848),hIe(502,134,{3:1,502:1,94:1,134:1}),xKe.g=0,mV(H3e,"TGraphElement",502),hIe(188,502,{3:1,188:1,502:1,94:1,134:1},zq),xKe.Ib=function(){return this.b&&this.c?p1(this.b)+"->"+p1(this.c):"e_"+Jle(this)},mV(H3e,"TEdge",188),hIe(135,134,{3:1,135:1,94:1,134:1},S6),xKe.Ib=function(){var e,t,n,r,i;for(i=null,r=sve(this.b,0);r.b!=r.d.c;)i+=(null==(n=$H(d3(r),86)).c||0==n.c.length?"n_"+n.g:"n_"+n.c)+"\n";for(t=sve(this.a,0);t.b!=t.d.c;)i+=((e=$H(d3(t),188)).b&&e.c?p1(e.b)+"->"+p1(e.c):"e_"+Jle(e))+"\n";return i};var Uyt=mV(H3e,"TGraph",135);hIe(633,502,{3:1,502:1,633:1,94:1,134:1}),mV(H3e,"TShape",633),hIe(86,633,{3:1,502:1,86:1,633:1,94:1,134:1},rce),xKe.Ib=function(){return p1(this)};var Qyt,zyt,Wyt,Gyt,Vyt,Kyt,Yyt=mV(H3e,"TNode",86);hIe(255,1,gYe,dm),xKe.Jc=function(e){e5(this,e)},xKe.Kc=function(){return new hm(sve(this.a.d,0))},mV(H3e,"TNode/2",255),hIe(358,1,KKe,hm),xKe.Nb=function(e){cG(this,e)},xKe.Pb=function(){return $H(d3(this.a),188).c},xKe.Ob=function(){return wx(this.a)},xKe.Qb=function(){vte(this.a)},mV(H3e,"TNode/2/1",358),hIe(1840,1,JZe,BP),xKe.pf=function(e,t){Nje(this,$H(e,135),t)},mV(U3e,"FanProcessor",1840),hIe(327,22,{3:1,35:1,22:1,327:1,234:1},uk),xKe.Kf=function(){switch(this.g){case 0:return new Kb;case 1:return new BP;case 2:return new Ia;case 3:return new Oa;case 4:return new Na;case 5:return new Ra;default:throw jv(new Py(x0e+(null!=this.f?this.f:""+this.g)))}};var qyt,Xyt,Jyt,Zyt,ewt,twt,nwt,rwt,iwt,owt,awt,swt,lwt,cwt,uwt,dwt,hwt,fwt,pwt,gwt,mwt,vwt,Awt,bwt,ywt,wwt,_wt,xwt,Ewt,Swt,Cwt,Twt,kwt,Owt,Mwt,Iwt,Dwt,Nwt,Rwt,Lwt,Bwt,Pwt=$ne(U3e,E0e,327,Wet,n7,Mj);hIe(1843,1,JZe,Oa),xKe.pf=function(e,t){oDe(this,$H(e,135),t)},xKe.a=0,mV(U3e,"LevelHeightProcessor",1843),hIe(1844,1,gYe,Ma),xKe.Jc=function(e){e5(this,e)},xKe.Kc=function(){return Eq(),IE(),dnt},mV(U3e,"LevelHeightProcessor/1",1844),hIe(1841,1,JZe,Ia),xKe.pf=function(e,t){KTe(this,$H(e,135),t)},xKe.a=0,mV(U3e,"NeighborsProcessor",1841),hIe(1842,1,gYe,Da),xKe.Jc=function(e){e5(this,e)},xKe.Kc=function(){return Eq(),IE(),dnt},mV(U3e,"NeighborsProcessor/1",1842),hIe(1845,1,JZe,Na),xKe.pf=function(e,t){iDe(this,$H(e,135),t)},xKe.a=0,mV(U3e,"NodePositionProcessor",1845),hIe(1839,1,JZe,Kb),xKe.pf=function(e,t){XUe(this,$H(e,135))},mV(U3e,"RootProcessor",1839),hIe(1846,1,JZe,Ra),xKe.pf=function(e,t){fhe($H(e,135))},mV(U3e,"Untreeifyer",1846),hIe(851,1,KXe,Ed),xKe.Qe=function(e){Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,W3e),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),bwt),(STe(),pSt)),Hwt),Jhe((nve(),lSt))))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,G3e),""),"Search Order"),"Which search order to use when computing a spanning tree."),vwt),pSt),qwt),Jhe(lSt)))),Bze((new xd,e))},mV(V3e,"MrTreeMetaDataProvider",851),hIe(994,1,KXe,xd),xKe.Qe=function(e){Bze(e)},mV(V3e,"MrTreeOptions",994),hIe(995,1,{},La),xKe.$e=function(){return new PP},xKe._e=function(e){},mV(V3e,"MrTreeOptions/MrtreeFactory",995),hIe(480,22,{3:1,35:1,22:1,480:1},dk);var Fwt,$wt,jwt,Hwt=$ne(V3e,"OrderWeighting",480,Wet,XX,Ij);hIe(425,22,{3:1,35:1,22:1,425:1},hk);var Uwt,Qwt,zwt,Wwt,Gwt,Vwt,Kwt,Ywt,qwt=$ne(V3e,"TreeifyingOrder",425,Wet,qX,Nj);hIe(1459,1,w3e,pd),xKe.Yf=function(e){return $H(e,135),Qwt},xKe.pf=function(e,t){Aoe(this,$H(e,135),t)},mV("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1459),hIe(1460,1,w3e,gd),xKe.Yf=function(e){return $H(e,135),zwt},xKe.pf=function(e,t){cke(this,$H(e,135),t)},mV("org.eclipse.elk.alg.mrtree.p2order","NodeOrderer",1460),hIe(1461,1,w3e,fd),xKe.Yf=function(e){return $H(e,135),Wwt},xKe.pf=function(e,t){JBe(this,$H(e,135),t)},xKe.a=0,mV("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1461),hIe(1462,1,w3e,md),xKe.Yf=function(e){return $H(e,135),Gwt},xKe.pf=function(e,t){Nwe($H(e,135),t)},mV("org.eclipse.elk.alg.mrtree.p4route","EdgeRouter",1462),hIe(495,22,{3:1,35:1,22:1,495:1,246:1,234:1},fk),xKe.Kf=function(){return dpe(this)},xKe.Xf=function(){return dpe(this)};var Xwt,Jwt,Zwt,e_t,t_t=$ne(q3e,"RadialLayoutPhases",495,Wet,JX,Dj);hIe(1131,209,DJe,kx),xKe.Ze=function(e,t){var n,r,i;if(kEe(t,"Radial layout",wke(this,e).c.length),Hy(_B(XIe(e,(zye(),O_t))))||yJ(new _p((US(),new Ry(e)))),i=oEe(e),Yve(e,(hB(),Vwt),i),!i)throw jv(new Py("The given graph is not a tree!"));for(0==(n=Uy(xB(XIe(e,R_t))))&&(n=cOe(e)),Yve(e,R_t,n),r=new Gf(wke(this,e));r.a<r.c.c.length;)$H(J0(r),51).pf(e,voe(t,1));jCe(t)},mV(q3e,"RadialLayoutProvider",1131),hIe(549,1,xXe,Tx),xKe.ue=function(e,t){return RPe(this.a,this.b,$H(e,33),$H(t,33))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},xKe.a=0,xKe.b=0,mV(q3e,"RadialUtil/lambda$0$Type",549),hIe(1375,1,JZe,Pa),xKe.pf=function(e,t){fze($H(e,33),t)},mV(Z3e,"CalculateGraphSize",1375),hIe(442,22,{3:1,35:1,22:1,442:1,234:1},pk),xKe.Kf=function(){switch(this.g){case 0:return new Ua;case 1:return new Ba;case 2:return new Pa;default:throw jv(new Py(x0e+(null!=this.f?this.f:""+this.g)))}};var n_t,r_t,i_t,o_t=$ne(Z3e,E0e,442,Wet,L0,Rj);hIe(645,1,{}),xKe.e=1,xKe.g=0,mV(e4e,"AbstractRadiusExtensionCompaction",645),hIe(1772,645,{},pB),xKe.hg=function(e){var t,n,r,i,o,a,s,l,c;for(this.c=$H(XIe(e,(hB(),Vwt)),33),Zh(this,this.c),this.d=wAe($H(XIe(e,(zye(),L_t)),293)),(l=$H(XIe(e,x_t),19))&&Jh(this,l.a),ef(this,(bK(s=xB(XIe(e,(sKe(),ITt)))),s)),c=hBe(this.c),this.d&&this.d.lg(c),mFe(this,c),a=new qy(Sse(Uw(QMt,1),t4e,33,0,[this.c])),n=0;n<2;n++)for(t=0;t<c.c.length;t++)i=new qy(Sse(Uw(QMt,1),t4e,33,0,[(u0(t,c.c.length),$H(c.c[t],33))])),o=t<c.c.length-1?(u0(t+1,c.c.length),$H(c.c[t+1],33)):(u0(0,c.c.length),$H(c.c[0],33)),r=0==t?$H(NQ(c,c.c.length-1),33):(u0(t-1,c.c.length),$H(c.c[t-1],33)),XEe(this,(u0(t,c.c.length),$H(c.c[t],33),a),r,o,i)},mV(e4e,"AnnulusWedgeCompaction",1772),hIe(1374,1,JZe,Ba),xKe.pf=function(e,t){d_e($H(e,33),t)},mV(e4e,"GeneralCompactor",1374),hIe(1771,645,{},Fa),xKe.hg=function(e){var t,n,r,i;n=$H(XIe(e,(hB(),Vwt)),33),this.f=n,this.b=wAe($H(XIe(e,(zye(),L_t)),293)),(i=$H(XIe(e,x_t),19))&&Jh(this,i.a),ef(this,(bK(r=xB(XIe(e,(sKe(),ITt)))),r)),t=hBe(n),this.b&&this.b.lg(t),mTe(this,t)},xKe.a=0,mV(e4e,"RadialCompaction",1771),hIe(1779,1,{},$a),xKe.ig=function(e){var t,n,r,i,o,a;for(this.a=e,t=0,r=0,o=new Gf(a=hBe(e));o.a<o.c.c.length;)for(i=$H(J0(o),33),n=++r;n<a.c.length;n++)Yje(this,i,(u0(n,a.c.length),$H(a.c[n],33)))&&(t+=1);return t},mV(n4e,"CrossingMinimizationPosition",1779),hIe(1777,1,{},ja),xKe.ig=function(e){var t,n,i,o,a,s,l,c,d,h,f,p,g;for(i=0,n=new aW(XN(fNe(e).a.Kc(),new u));fIe(n);)t=$H(z5(n),79),d=(l=SEe($H(Gte((!t.c&&(t.c=new lF(LMt,t,5,8)),t.c),0),82))).i+l.g/2,h=l.j+l.f/2,o=e.i+e.g/2,a=e.j+e.f/2,(f=new U_).a=d-o,f.b=h-a,zwe(s=new Nk(f.a,f.b),e.g,e.f),f.a-=s.a,f.b-=s.b,o=d-f.a,a=h-f.b,zwe(c=new Nk(f.a,f.b),l.g,l.f),f.a-=c.a,f.b-=c.b,p=(d=o+f.a)-o,g=(h=a+f.b)-a,i+=r.Math.sqrt(p*p+g*g);return i},mV(n4e,"EdgeLengthOptimization",1777),hIe(1778,1,{},Ha),xKe.ig=function(e){var t,n,i,o,a,s,l,c,d;for(i=0,n=new aW(XN(fNe(e).a.Kc(),new u));fIe(n);)t=$H(z5(n),79),s=(a=SEe($H(Gte((!t.c&&(t.c=new lF(LMt,t,5,8)),t.c),0),82))).i+a.g/2,l=a.j+a.f/2,o=$H(XIe(a,(sKe(),pTt)),8),c=s-(e.i+o.a+e.g/2),d=l-(e.j+o.b+e.f),i+=r.Math.sqrt(c*c+d*d);return i},mV(n4e,"EdgeLengthPositionOptimization",1778),hIe(1373,645,JZe,Ua),xKe.pf=function(e,t){cNe(this,$H(e,33),t)},mV("org.eclipse.elk.alg.radial.intermediate.overlaps","RadiusExtensionOverlapRemoval",1373),hIe(426,22,{3:1,35:1,22:1,426:1},gk);var a_t,s_t,l_t,c_t,u_t=$ne(i4e,"AnnulusWedgeCriteria",426,Wet,ZX,Lj);hIe(380,22,{3:1,35:1,22:1,380:1},mk);var d_t,h_t,f_t,p_t,g_t,m_t,v_t,A_t,b_t,y_t,w_t,__t,x_t,E_t,S_t,C_t,T_t,k_t,O_t,M_t,I_t,D_t,N_t,R_t,L_t,B_t,P_t,F_t,$_t,j_t,H_t,U_t=$ne(i4e,FJe,380,Wet,B0,Bj);hIe(852,1,KXe,vd),xKe.Qe=function(e){Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,o4e),""),"Order ID"),"The id can be used to define an order for nodes of one radius. This can be used to sort them in the layer accordingly."),the(0)),(STe(),mSt)),Mtt),Jhe((nve(),sSt))))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,a4e),""),"Radius"),"The radius option can be used to set the initial radius for the radial layouter."),0),fSt),Ctt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,s4e),""),"Compaction"),"With the compacter option it can be determined how compaction on the graph is done. It can be chosen between none, the radial compaction or the compaction of wedges separately."),p_t),pSt),U_t),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,l4e),""),"Compaction Step Size"),"Determine the size of steps with which the compaction is done. Step size 1 correlates to a compaction of 1 pixel per Iteration."),the(1)),mSt),Mtt),Jhe(lSt)))),i2(e,l4e,s4e,null),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,c4e),""),"Sorter"),"Sort the nodes per radius according to the sorting algorithm. The strategies are none, by the given order id, or sorting them by polar coordinates."),y_t),pSt),Y_t),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,u4e),""),"Annulus Wedge Criteria"),"Determine how the wedge for the node placement is calculated. It can be chosen between wedge determination by the number of leaves or by the maximum sum of diagonals."),__t),pSt),u_t),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,d4e),""),"Translation Optimization"),"Find the optimal translation of the nodes of the first radii according to this criteria. For example edge crossings can be minimized."),m_t),pSt),V_t),Jhe(lSt)))),ZWe((new Ad,e))},mV(i4e,"RadialMetaDataProvider",852),hIe(996,1,KXe,Ad),xKe.Qe=function(e){ZWe(e)},mV(i4e,"RadialOptions",996),hIe(997,1,{},Qa),xKe.$e=function(){return new kx},xKe._e=function(e){},mV(i4e,"RadialOptions/RadialFactory",997),hIe(340,22,{3:1,35:1,22:1,340:1},vk);var Q_t,z_t,W_t,G_t,V_t=$ne(i4e,"RadialTranslationStrategy",340,Wet,w3,Pj);hIe(293,22,{3:1,35:1,22:1,293:1},Ak);var K_t,Y_t=$ne(i4e,"SortingStrategy",293,Wet,F0,Fj);hIe(1449,1,w3e,za),xKe.Yf=function(e){return $H(e,33),null},xKe.pf=function(e,t){ENe(this,$H(e,33),t)},xKe.c=0,mV("org.eclipse.elk.alg.radial.p1position","EadesRadial",1449),hIe(1775,1,{},Wa),xKe.jg=function(e){return zve(e)},mV(f4e,"AnnulusWedgeByLeafs",1775),hIe(1776,1,{},Ga),xKe.jg=function(e){return Vxe(this,e)},mV(f4e,"AnnulusWedgeByNodeSpace",1776),hIe(1450,1,w3e,Va),xKe.Yf=function(e){return $H(e,33),null},xKe.pf=function(e,t){dxe(this,$H(e,33),t)},mV("org.eclipse.elk.alg.radial.p2routing","StraightLineEdgeRouter",1450),hIe(811,1,{},qb),xKe.kg=function(e){},xKe.lg=function(e){Jv(this,e)},mV(p4e,"IDSorter",811),hIe(1774,1,xXe,Ka),xKe.ue=function(e,t){return Kie($H(e,33),$H(t,33))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(p4e,"IDSorter/lambda$0$Type",1774),hIe(1773,1,{},Oie),xKe.kg=function(e){r2(this,e)},xKe.lg=function(e){e.dc()||(this.e||r2(this,JQ($H(e.Xb(0),33))),Jv(this.e,e))},mV(p4e,"PolarCoordinateSorter",1773),hIe(1136,209,DJe,Ya),xKe.Ze=function(e,t){var n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,A,b,y,w,_,x,E;if(kEe(t,"Rectangle Packing",1),t.n&&t.n&&e&&A1(t,a2(e),($ce(),oMt)),n=Uy(xB(XIe(e,(GDe(),uxt)))),p=$H(XIe(e,Sxt),381),v=Hy(_B(XIe(e,Axt))),y=Hy(_B(XIe(e,Ext))),d=Hy(_B(XIe(e,pxt))),w=$H(XIe(e,Cxt),116),b=Uy(xB(XIe(e,Mxt))),i=Hy(_B(XIe(e,Oxt))),h=Hy(_B(XIe(e,gxt))),m=Hy(_B(XIe(e,mxt))),E=Uy(xB(XIe(e,Ixt))),!e.a&&(e.a=new eG(QMt,e,10,11)),_ie(x=e.a),m){for(f=new Dv,l=new ON(x);l.e!=l.i.gc();)S8(a=$H(bve(l),33),fxt)&&(f.c[f.c.length]=a);for(c=new Gf(f);c.a<c.c.c.length;)see(x,a=$H(J0(c),33));for(Eq(),vD(f,new qa),u=new Gf(f);u.a<u.c.c.length;)a=$H(J0(u),33),_=$H(XIe(a,fxt),19).a,she(x,_=r.Math.min(_,x.i),a);for(g=0,s=new ON(x);s.e!=s.i.gc();)Yve(a=$H(bve(s),33),hxt,the(g)),++g}(A=WTe(e)).a-=w.b+w.c,A.b-=w.d+w.a,A.a,E<0||E<A.a?(o=kFe(new yH(n,p,v),x,b,w),t.n&&t.n&&e&&A1(t,a2(e),($ce(),oMt))):o=new eQ(n,E,0,(YNe(),Pxt)),A.a+=w.b+w.c,A.b+=w.d+w.a,y||(_ie(x),o=bWe(new v3(n,d,h,i,b),x,r.Math.max(A.a,o.c),A,t,e,w)),gae(x,w),BGe(e,o.c+(w.b+w.c),o.b+(w.d+w.a),!1,!0),Hy(_B(XIe(e,xxt)))||yJ(new _p((US(),new Ry(e)))),t.n&&t.n&&e&&A1(t,a2(e),($ce(),oMt)),jCe(t)},mV(A4e,"RectPackingLayoutProvider",1136),hIe(1137,1,xXe,qa),xKe.ue=function(e,t){return hce($H(e,33),$H(t,33))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(A4e,"RectPackingLayoutProvider/lambda$0$Type",1137),hIe(1256,1,{},yH),xKe.a=0,xKe.c=!1,mV(b4e,"AreaApproximation",1256);var q_t,X_t,J_t,Z_t=dQ(b4e,"BestCandidateFilter");hIe(638,1,{526:1},Xa),xKe.mg=function(e,t,n){var i,o,a,s,l,c;for(c=new Dv,a=Lqe,l=new Gf(e);l.a<l.c.c.length;)s=$H(J0(l),220),a=r.Math.min(a,(s.c+(n.b+n.c))*(s.b+(n.d+n.a)));for(o=new Gf(e);o.a<o.c.c.length;)((i=$H(J0(o),220)).c+(n.b+n.c))*(i.b+(n.d+n.a))==a&&(c.c[c.c.length]=i);return c},mV(b4e,"AreaFilter",638),hIe(639,1,{526:1},Ja),xKe.mg=function(e,t,n){var i,o,a,s,l,c;for(l=new Dv,c=Lqe,s=new Gf(e);s.a<s.c.c.length;)a=$H(J0(s),220),c=r.Math.min(c,r.Math.abs((a.c+(n.b+n.c))/(a.b+(n.d+n.a))-t));for(o=new Gf(e);o.a<o.c.c.length;)i=$H(J0(o),220),r.Math.abs((i.c+(n.b+n.c))/(i.b+(n.d+n.a))-t)==c&&(l.c[l.c.length]=i);return l},mV(b4e,"AspectRatioFilter",639),hIe(637,1,{526:1},Za),xKe.mg=function(e,t,n){var i,o,a,s,l,c;for(c=new Dv,a=Bqe,l=new Gf(e);l.a<l.c.c.length;)s=$H(J0(l),220),a=r.Math.max(a,YQ(s.c+(n.b+n.c),s.b+(n.d+n.a),s.a));for(o=new Gf(e);o.a<o.c.c.length;)YQ((i=$H(J0(o),220)).c+(n.b+n.c),i.b+(n.d+n.a),i.a)==a&&(c.c[c.c.length]=i);return c},mV(b4e,"ScaleMeasureFilter",637),hIe(381,22,{3:1,35:1,22:1,381:1},bk);var ext,txt,nxt,rxt,ixt,oxt,axt,sxt,lxt,cxt,uxt,dxt,hxt,fxt,pxt,gxt,mxt,vxt,Axt,bxt,yxt,wxt,_xt,xxt,Ext,Sxt,Cxt,Txt,kxt,Oxt,Mxt,Ixt,Dxt=$ne(y4e,"OptimizationGoal",381,Wet,P0,$j);hIe(856,1,KXe,Td),xKe.Qe=function(e){Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,w4e),""),"Optimization Goal"),"Optimization goal for approximation of the bounding box given by the first iteration. Determines whether layout is sorted by the maximum scaling, aspect ratio, or area. Depending on the strategy the aspect ratio might be nearly ignored."),sxt),(STe(),pSt)),Dxt),Jhe((nve(),sSt))))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,_4e),""),"Shift Last Placed."),"When placing a rectangle behind or below the last placed rectangle in the first iteration, it is sometimes possible to shift the rectangle further to the left or right, resulting in less whitespace. True (default) enables the shift and false disables it. Disabling the shift produces a greater approximated area by the first iteration and a layout, when using ONLY the first iteration (default not the case), where it is sometimes impossible to implement a size transformation of rectangles that will fill the bounding box and eliminate empty spaces."),(lR(),!0)),hSt),ytt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,x4e),""),"Current position of a node in the order of nodes"),"The rectangles are ordered. Normally according to their definition the the model. This option specifies the current position of a node."),the(-1)),mSt),Mtt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,E4e),""),"Desired index of node"),"The rectangles are ordered. Normally according to their definition the the model. This option allows to specify a desired position that has preference over the original position."),the(-1)),mSt),Mtt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,S4e),""),"Only Area Approximation"),"If enabled only the width approximation step is executed and the nodes are placed accordingly. The nodes are layouted according to the packingStrategy. If set to true not expansion of nodes is taking place."),!1),hSt),ytt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,C4e),""),"Compact Rows"),"Enables compaction. Compacts blocks if they do not use the full height of the row. This option allows to have a smaller drawing. If this option is disabled all nodes are placed next to each other in rows."),!0),hSt),ytt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,T4e),""),"Fit Aspect Ratio"),"Expands nodes if expandNodes is true to fit the aspect ratio instead of only in their bounds. The option is only useful if the used packingStrategy is ASPECT_RATIO_DRIVEN, otherwise this may result in unreasonable ndoe expansion."),!1),hSt),ytt),Jhe(sSt)))),i2(e,T4e,O4e,null),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,k4e),""),"Target Width"),"Option to place the rectangles in the given target width instead of approximating the width using the desired aspect ratio. The padding is not included in this. Meaning a drawing will have width of targetwidth + horizontal padding."),-1),fSt),Ctt),Jhe(sSt)))),DVe((new kd,e))},mV(y4e,"RectPackingMetaDataProvider",856),hIe(1004,1,KXe,kd),xKe.Qe=function(e){DVe(e)},mV(y4e,"RectPackingOptions",1004),hIe(1005,1,{},es),xKe.$e=function(){return new Ya},xKe._e=function(e){},mV(y4e,"RectPackingOptions/RectpackingFactory",1005),hIe(1257,1,{},v3),xKe.a=0,xKe.b=!1,xKe.c=0,xKe.d=0,xKe.e=!1,xKe.f=!1,xKe.g=0,mV("org.eclipse.elk.alg.rectpacking.seconditeration","RowFillingAndCompaction",1257),hIe(187,1,{187:1},ice),xKe.a=0,xKe.c=!1,xKe.d=0,xKe.e=0,xKe.f=0,xKe.g=0,xKe.i=0,xKe.k=!1,xKe.o=Lqe,xKe.p=Lqe,xKe.r=0,xKe.s=0,xKe.t=0,mV(I4e,"Block",187),hIe(211,1,{211:1},LJ),xKe.a=0,xKe.b=0,xKe.d=0,xKe.e=0,xKe.f=0,mV(I4e,"BlockRow",211),hIe(443,1,{443:1},BJ),xKe.b=0,xKe.c=0,xKe.d=0,xKe.e=0,xKe.f=0,mV(I4e,"BlockStack",443),hIe(220,1,{220:1},eQ,ipe),xKe.a=0,xKe.b=0,xKe.c=0,xKe.d=0,xKe.e=0;var Nxt,Rxt,Lxt,Bxt,Pxt,Fxt=mV(I4e,"DrawingData",220);hIe(355,22,{3:1,35:1,22:1,355:1},yk);var $xt,jxt,Hxt,Uxt,Qxt=$ne(I4e,"DrawingDataDescriptor",355,Wet,D5,jj);hIe(200,1,{200:1},N1),xKe.b=0,xKe.c=0,xKe.e=0,xKe.f=0,mV(I4e,"RectRow",200),hIe(756,1,{},wue),xKe.j=0,mV(N4e,p0e,756),hIe(1245,1,{},ts),xKe.Je=function(e){return G8(e.a,e.b)},mV(N4e,g0e,1245),hIe(1246,1,{},fm),xKe.Je=function(e){return g6(this.a,e)},mV(N4e,m0e,1246),hIe(1247,1,{},pm),xKe.Je=function(e){return kve(this.a,e)},mV(N4e,v0e,1247),hIe(1248,1,{},gm),xKe.Je=function(e){return ole(this.a,e)},mV(N4e,"ElkGraphImporter/lambda$3$Type",1248),hIe(1249,1,{},mm),xKe.Je=function(e){return tMe(this.a,e)},mV(N4e,A0e,1249),hIe(1133,209,DJe,Mx),xKe.Ze=function(e,t){var n,r,i,o,a,s,l,c,u,d;for(S8(e,(xSe(),bEt))&&(d=EB(XIe(e,($Ae(),HEt))),(o=WPe(rre(),d))&&$H(sJ(o.f),209).Ze(e,voe(t,1))),Yve(e,pEt,(M6(),Xxt)),Yve(e,gEt,(MCe(),rEt)),Yve(e,mEt,(Ise(),GEt)),a=$H(XIe(e,($Ae(),PEt)),19).a,kEe(t,"Overlap removal",1),Hy(_B(XIe(e,BEt))),l=new vm(s=new LA),n=UVe(r=new wue,e),c=!0,i=0;i<a&&c;){if(Hy(_B(XIe(e,FEt)))){if(s.a.$b(),jTe(new TD(l),n.i),0==s.a.gc())break;n.e=s}for(l2(this.b),CG(this.b,(Sfe(),jxt),(kS(),UEt)),CG(this.b,Hxt,n.g),CG(this.b,Uxt,(TS(),Kxt)),this.a=MQe(this.b,n),u=new Gf(this.a);u.a<u.c.c.length;)$H(J0(u),51).pf(n,voe(t,1));r_e(r,n),c=Hy(_B(vSe(n,(Woe(),Yit)))),++i}Rze(r,n),jCe(t)},mV(N4e,"OverlapRemovalLayoutProvider",1133),hIe(1134,1,{},vm),mV(N4e,"OverlapRemovalLayoutProvider/lambda$0$Type",1134),hIe(437,22,{3:1,35:1,22:1,437:1},wk);var zxt,Wxt,Gxt=$ne(N4e,"SPOrEPhases",437,Wet,$0,Hj);hIe(1255,1,{},Ix),mV(N4e,"ShrinkTree",1255),hIe(1135,209,DJe,Xb),xKe.Ze=function(e,t){var n,r,i,o;S8(e,(xSe(),bEt))&&(o=EB(XIe(e,bEt)),(i=WPe(rre(),o))&&$H(sJ(i.f),209).Ze(e,voe(t,1))),n=UVe(r=new wue,e),MNe(this.a,n,voe(t,1)),Rze(r,n)},mV(N4e,"ShrinkTreeLayoutProvider",1135),hIe(300,134,{3:1,300:1,94:1,134:1},RJ),xKe.c=!1,mV("org.eclipse.elk.alg.spore.graph","Graph",300),hIe(482,22,{3:1,35:1,22:1,482:1,246:1,234:1},IS),xKe.Kf=function(){return ece(this)},xKe.Xf=function(){return ece(this)};var Vxt,Kxt,Yxt=$ne(R4e,FJe,482,Wet,BY,Uj);hIe(551,22,{3:1,35:1,22:1,551:1,246:1,234:1},mB),xKe.Kf=function(){return new os},xKe.Xf=function(){return new os};var qxt,Xxt,Jxt,Zxt=$ne(R4e,"OverlapRemovalStrategy",551,Wet,PY,Qj);hIe(430,22,{3:1,35:1,22:1,430:1},_k);var eEt,tEt,nEt,rEt,iEt,oEt,aEt=$ne(R4e,"RootSelection",430,Wet,tJ,zj);hIe(316,22,{3:1,35:1,22:1,316:1},xk);var sEt,lEt,cEt,uEt,dEt,hEt,fEt,pEt,gEt,mEt,vEt,AEt,bEt,yEt,wEt,_Et,xEt,EEt,SEt,CEt,TEt,kEt,OEt,MEt,IEt,DEt,NEt,REt,LEt,BEt,PEt,FEt,$Et,jEt,HEt,UEt,QEt=$ne(R4e,"SpanningTreeCostFunction",316,Wet,O5,Wj);hIe(1002,1,KXe,yd),xKe.Qe=function(e){AUe(e)},mV(R4e,"SporeCompactionOptions",1002),hIe(1003,1,{},ns),xKe.$e=function(){return new Xb},xKe._e=function(e){},mV(R4e,"SporeCompactionOptions/SporeCompactionFactory",1003),hIe(855,1,KXe,wd),xKe.Qe=function(e){Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,B4e),""),"Underlying Layout Algorithm"),"A layout algorithm that is applied to the graph before it is compacted. If this is null, nothing is applied before compaction."),(STe(),ASt)),Ytt),Jhe((nve(),lSt))))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,H4e),"structure"),"Structure Extraction Strategy"),"This option defines what kind of triangulation or other partitioning of the plane is applied to the vertices."),REt),pSt),VEt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,P4e),G4e),"Tree Construction Strategy"),"Whether a minimum spanning tree or a maximum spanning tree should be constructed."),DEt),pSt),YEt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,F4e),G4e),"Cost Function for Spanning Tree"),"The cost function is used in the creation of the spanning tree."),MEt),pSt),QEt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,$4e),G4e),"Root node for spanning tree construction"),"The identifier of the node that is preferred as the root of the spanning tree. If this is null, the first node is chosen."),null),ASt),Ytt),Jhe(lSt)))),i2(e,$4e,j4e,CEt),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,j4e),G4e),"Root selection for spanning tree"),"This sets the method used to select a root node for the construction of a spanning tree"),kEt),pSt),aEt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,U4e),w2e),"Compaction Strategy"),"This option defines how the compaction is applied."),wEt),pSt),Yxt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,Q4e),w2e),"Orthogonal Compaction"),"Restricts the translation of nodes to orthogonal directions in the compaction phase."),(lR(),!1)),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,z4e),V4e),"Upper limit for iterations of overlap removal"),null),the(64)),mSt),Mtt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,W4e),V4e),"Whether to run a supplementary scanline overlap check."),null),!0),hSt),ytt),Jhe(lSt)))),OFe((new _d,e)),AUe((new yd,e))},mV(R4e,"SporeMetaDataProvider",855),hIe(VYe,1,KXe,_d),xKe.Qe=function(e){OFe(e)},mV(R4e,"SporeOverlapRemovalOptions",VYe),hIe(1001,1,{},rs),xKe.$e=function(){return new Mx},xKe._e=function(e){},mV(R4e,"SporeOverlapRemovalOptions/SporeOverlapFactory",1001),hIe(530,22,{3:1,35:1,22:1,530:1,246:1,234:1},WK),xKe.Kf=function(){return tce(this)},xKe.Xf=function(){return tce(this)};var zEt,WEt,GEt,VEt=$ne(R4e,"StructureExtractionStrategy",530,Wet,FY,Gj);hIe(429,22,{3:1,35:1,22:1,429:1,246:1,234:1},Ek),xKe.Kf=function(){return hpe(this)},xKe.Xf=function(){return hpe(this)};var KEt,YEt=$ne(R4e,"TreeConstructionStrategy",429,Wet,eJ,Vj);hIe(1443,1,w3e,is),xKe.Yf=function(e){return $H(e,300),new $2},xKe.pf=function(e,t){__e($H(e,300),t)},mV(Y4e,"DelaunayTriangulationPhase",1443),hIe(1444,1,uYe,Am),xKe.td=function(e){GH(this.a,$H(e,65).a)},mV(Y4e,"DelaunayTriangulationPhase/lambda$0$Type",1444),hIe(783,1,w3e,Vb),xKe.Yf=function(e){return $H(e,300),new $2},xKe.pf=function(e,t){this.ng($H(e,300),t)},xKe.ng=function(e,t){var n;kEe(t,"Minimum spanning tree construction",1),n=e.d?e.d.a:$H(NQ(e.i,0),65).a,Bse(this,(Hy(_B(vSe(e,(Woe(),Kit)))),YUe(e.e,n,e.b)),e),jCe(t)},mV(q4e,"MinSTPhase",783),hIe(1446,783,w3e,Ab),xKe.ng=function(e,t){var n,r;kEe(t,"Maximum spanning tree construction",1),n=new bm(e),r=e.d?e.d.c:$H(NQ(e.i,0),65).c,Bse(this,(Hy(_B(vSe(e,(Woe(),Kit)))),YUe(e.e,r,n)),e),jCe(t)},mV(q4e,"MaxSTPhase",1446),hIe(1447,1,{},bm),xKe.Je=function(e){return Tk(this.a,e)},mV(q4e,"MaxSTPhase/lambda$0$Type",1447),hIe(1445,1,uYe,ym),xKe.td=function(e){LD(this.a,$H(e,65))},mV(q4e,"MinSTPhase/lambda$0$Type",1445),hIe(785,1,w3e,os),xKe.Yf=function(e){return $H(e,300),new $2},xKe.pf=function(e,t){GEe(this,$H(e,300),t)},xKe.a=!1,mV(X4e,"GrowTreePhase",785),hIe(786,1,uYe,wH),xKe.td=function(e){ese(this.a,this.b,this.c,$H(e,221))},mV(X4e,"GrowTreePhase/lambda$0$Type",786),hIe(1448,1,w3e,as),xKe.Yf=function(e){return $H(e,300),new $2},xKe.pf=function(e,t){ZAe(this,$H(e,300),t)},mV(X4e,"ShrinkTreeCompactionPhase",1448),hIe(784,1,uYe,_H),xKe.td=function(e){uIe(this.a,this.b,this.c,$H(e,221))},mV(X4e,"ShrinkTreeCompactionPhase/lambda$0$Type",784);var qEt,XEt,JEt=dQ(A3e,"IGraphElementVisitor");hIe(860,1,{527:1},L1),xKe.og=function(e){var t;Hae(t=lPe(this,e),$H(LV(this.b,e),94)),ANe(this,e,t)},mV(NJe,"LayoutConfigurator",860);var ZEt,eSt,tSt,nSt=dQ(NJe,"LayoutConfigurator/IPropertyHolderOptionFilter");hIe(932,1,{1933:1},ss),xKe.pg=function(e,t){return Dse(),!e.Xe(t)},mV(NJe,"LayoutConfigurator/lambda$0$Type",932),hIe(933,1,{1933:1},ls),xKe.pg=function(e,t){return Ex(e,t)},mV(NJe,"LayoutConfigurator/lambda$1$Type",933),hIe(931,1,{831:1},cs),xKe.qg=function(e,t){return Dse(),!e.Xe(t)},mV(NJe,"LayoutConfigurator/lambda$2$Type",931),hIe(934,1,RYe,Ik),xKe.Mb=function(e){return YK(this.a,this.b,$H(e,1933))},mV(NJe,"LayoutConfigurator/lambda$3$Type",934),hIe(858,1,{},us),mV(NJe,"RecursiveGraphLayoutEngine",858),hIe(296,60,$Ye,bA,nw),mV(NJe,"UnsupportedConfigurationException",296),hIe(453,60,$Ye,rw),mV(NJe,"UnsupportedGraphException",453),hIe(754,1,{}),mV(A3e,"AbstractRandomListAccessor",754),hIe(500,754,{},CRe),xKe.rg=function(){return null},xKe.d=!0,xKe.e=!0,xKe.f=0,mV(Z4e,"AlgorithmAssembler",500),hIe(1236,1,RYe,ds),xKe.Mb=function(e){return!!$H(e,123)},mV(Z4e,"AlgorithmAssembler/lambda$0$Type",1236),hIe(1237,1,{},wm),xKe.Kb=function(e){return d_(this.a,$H(e,123))},mV(Z4e,"AlgorithmAssembler/lambda$1$Type",1237),hIe(1238,1,RYe,hs),xKe.Mb=function(e){return!!$H(e,80)},mV(Z4e,"AlgorithmAssembler/lambda$2$Type",1238),hIe(1239,1,uYe,_m),xKe.td=function(e){qoe(this.a,$H(e,80))},mV(Z4e,"AlgorithmAssembler/lambda$3$Type",1239),hIe(1240,1,uYe,Dk),xKe.td=function(e){RL(this.a,this.b,$H(e,234))},mV(Z4e,"AlgorithmAssembler/lambda$4$Type",1240),hIe(1355,1,xXe,fs),xKe.ue=function(e,t){return Fq($H(e,234),$H(t,234))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(Z4e,"EnumBasedFactoryComparator",1355),hIe(80,754,{80:1},$2),xKe.rg=function(){return new LA},xKe.a=0,mV(Z4e,"LayoutProcessorConfiguration",80),hIe(1013,1,{527:1},Od),xKe.og=function(e){Joe(eSt,new xm(e))},mV(QXe,"DeprecatedLayoutOptionReplacer",1013),hIe(1014,1,uYe,ps),xKe.td=function(e){D7($H(e,160))},mV(QXe,"DeprecatedLayoutOptionReplacer/lambda$0$Type",1014),hIe(1015,1,uYe,gs),xKe.td=function(e){_pe($H(e,160))},mV(QXe,"DeprecatedLayoutOptionReplacer/lambda$1$Type",1015),hIe(1016,1,{},xm),xKe.Od=function(e,t){LL(this.a,$H(e,146),$H(t,38))},mV(QXe,"DeprecatedLayoutOptionReplacer/lambda$2$Type",1016),hIe(149,1,{686:1,149:1},xEe),xKe.Fb=function(e){return y5(this,e)},xKe.sg=function(){return this.b},xKe.tg=function(){return this.c},xKe.ne=function(){return this.e},xKe.Hb=function(){return mAe(this.c)},xKe.Ib=function(){return"Layout Algorithm: "+this.c};var rSt,iSt=mV(QXe,"LayoutAlgorithmData",149);hIe(263,1,{},ms),mV(QXe,"LayoutAlgorithmData/Builder",263),hIe(1017,1,{527:1},vs),xKe.og=function(e){rN(e,239)&&!Hy(_B(e.We((sKe(),QCt))))&&Bje($H(e,33))},mV(QXe,"LayoutAlgorithmResolver",1017),hIe(229,1,{686:1,229:1},zZ),xKe.Fb=function(e){return!!rN(e,229)&&vF(this.b,$H(e,229).b)},xKe.sg=function(){return this.a},xKe.tg=function(){return this.b},xKe.ne=function(){return this.d},xKe.Hb=function(){return mAe(this.b)},xKe.Ib=function(){return"Layout Type: "+this.b},mV(QXe,"LayoutCategoryData",229),hIe(344,1,{},As),mV(QXe,"LayoutCategoryData/Builder",344),hIe(867,1,{},kPe),mV(QXe,"LayoutMetaDataService",867),hIe(868,1,{},zV),mV(QXe,"LayoutMetaDataService/Registry",868),hIe(478,1,{478:1},bs),mV(QXe,"LayoutMetaDataService/Registry/Triple",478),hIe(869,1,e5e,ys),xKe.ug=function(){return new U_},mV(QXe,"LayoutMetaDataService/lambda$0$Type",869),hIe(870,1,t5e,ws),xKe.vg=function(e){return $D($H(e,8))},mV(QXe,"LayoutMetaDataService/lambda$1$Type",870),hIe(879,1,e5e,_s),xKe.ug=function(){return new Dv},mV(QXe,"LayoutMetaDataService/lambda$10$Type",879),hIe(880,1,t5e,xs),xKe.vg=function(e){return new ZF($H(e,12))},mV(QXe,"LayoutMetaDataService/lambda$11$Type",880),hIe(881,1,e5e,Es),xKe.ug=function(){return new YE},mV(QXe,"LayoutMetaDataService/lambda$12$Type",881),hIe(882,1,t5e,Ss),xKe.vg=function(e){return QH($H(e,68))},mV(QXe,"LayoutMetaDataService/lambda$13$Type",882),hIe(883,1,e5e,Cs),xKe.ug=function(){return new LA},mV(QXe,"LayoutMetaDataService/lambda$14$Type",883),hIe(884,1,t5e,Ts),xKe.vg=function(e){return qq($H(e,53))},mV(QXe,"LayoutMetaDataService/lambda$15$Type",884),hIe(885,1,e5e,ks),xKe.ug=function(){return new cI},mV(QXe,"LayoutMetaDataService/lambda$16$Type",885),hIe(886,1,t5e,Os),xKe.vg=function(e){return E4($H(e,53))},mV(QXe,"LayoutMetaDataService/lambda$17$Type",886),hIe(887,1,e5e,Ms),xKe.ug=function(){return new QA},mV(QXe,"LayoutMetaDataService/lambda$18$Type",887),hIe(888,1,t5e,Is),xKe.vg=function(e){return UH($H(e,208))},mV(QXe,"LayoutMetaDataService/lambda$19$Type",888),hIe(871,1,e5e,Ds),xKe.ug=function(){return new bb},mV(QXe,"LayoutMetaDataService/lambda$2$Type",871),hIe(872,1,t5e,Ns),xKe.vg=function(e){return new B_($H(e,74))},mV(QXe,"LayoutMetaDataService/lambda$3$Type",872),hIe(873,1,e5e,Rs),xKe.ug=function(){return new ub},mV(QXe,"LayoutMetaDataService/lambda$4$Type",873),hIe(874,1,t5e,Ls),xKe.vg=function(e){return new O$($H(e,142))},mV(QXe,"LayoutMetaDataService/lambda$5$Type",874),hIe(875,1,e5e,Ps),xKe.ug=function(){return new db},mV(QXe,"LayoutMetaDataService/lambda$6$Type",875),hIe(876,1,t5e,Fs),xKe.vg=function(e){return new k$($H(e,116))},mV(QXe,"LayoutMetaDataService/lambda$7$Type",876),hIe(877,1,e5e,$s),xKe.ug=function(){return new Js},mV(QXe,"LayoutMetaDataService/lambda$8$Type",877),hIe(878,1,t5e,js),xKe.vg=function(e){return new nee($H(e,373))},mV(QXe,"LayoutMetaDataService/lambda$9$Type",878);var oSt,aSt,sSt,lSt,cSt,uSt=dQ(TJe,"IProperty");hIe(23,1,{35:1,686:1,23:1,146:1},dTe),xKe.wd=function(e){return pN(this,$H(e,146))},xKe.Fb=function(e){return rN(e,23)?vF(this.f,$H(e,23).f):rN(e,146)&&vF(this.f,$H(e,146).tg())},xKe.wg=function(){var e;if(rN(this.b,4)){if(null==(e=qge(this.b)))throw jv(new Fy(a5e+this.f+"'. Make sure it's type is registered with the "+(wB(uIt),uIt.k)+r5e));return e}return this.b},xKe.sg=function(){return this.d},xKe.tg=function(){return this.f},xKe.ne=function(){return this.i},xKe.Hb=function(){return mAe(this.f)},xKe.Ib=function(){return"Layout Option: "+this.f},mV(QXe,"LayoutOptionData",23),hIe(24,1,{},Hs),mV(QXe,"LayoutOptionData/Builder",24),hIe(175,22,{3:1,35:1,22:1,175:1},Ok);var dSt,hSt,fSt,pSt,gSt,mSt,vSt,ASt,bSt,ySt=$ne(QXe,"LayoutOptionData/Target",175,Wet,k5,Kj);hIe(277,22,{3:1,35:1,22:1,277:1},Mk);var wSt,_St,xSt,ESt=$ne(QXe,"LayoutOptionData/Type",277,Wet,Pte,Yj);hIe(110,1,{110:1},dI,zY,pX),xKe.Fb=function(e){var t;return!(null==e||!rN(e,110))&&(t=$H(e,110),rY(this.c,t.c)&&rY(this.d,t.d)&&rY(this.b,t.b)&&rY(this.a,t.a))},xKe.Hb=function(){return cue(Sse(Uw(Met,1),jKe,1,5,[this.c,this.d,this.b,this.a]))},xKe.Ib=function(){return"Rect[x="+this.c+",y="+this.d+",w="+this.b+",h="+this.a+"]"},xKe.a=0,xKe.b=0,xKe.c=0,xKe.d=0,mV(c0e,"ElkRectangle",110),hIe(8,1,{3:1,4:1,8:1,414:1},U_,WZ,Nk,hI),xKe.Fb=function(e){return Jre(this,e)},xKe.Hb=function(){return VM(this.a)+dye(VM(this.b))},xKe.Jf=function(e){var t,n,r;for(n=0;n<e.length&&Nue((d0(n,e.length),e.charCodeAt(n)),a0e);)++n;for(t=e.length;t>0&&Nue((d0(t-1,e.length),e.charCodeAt(t-1)),s0e);)--t;if(n>=t)throw jv(new Py("The given string does not contain any numbers."));if(2!=(r=bFe(e.substr(n,t-n),",|;|\r|\n")).length)throw jv(new Py("Exactly two numbers are expected, "+r.length+" were found."));try{this.a=dCe(LSe(r[0])),this.b=dCe(LSe(r[1]))}catch(e){throw rN(e=use(e),127)?jv(new Py(l0e+e)):jv(e)}},xKe.Ib=function(){return"("+this.a+","+this.b+")"},xKe.a=0,xKe.b=0;var SSt=mV(c0e,"KVector",8);hIe(74,68,{3:1,4:1,20:1,28:1,52:1,14:1,68:1,15:1,74:1,414:1},bb,B_,zL),xKe.Pc=function(){return Vce(this)},xKe.Jf=function(e){var t,n,r,i,o;n=bFe(e,",|;|\\(|\\)|\\[|\\]|\\{|\\}| |\t|\n"),Aq(this);try{for(t=0,i=0,r=0,o=0;t<n.length;)null!=n[t]&&LSe(n[t]).length>0&&(i%2==0?r=dCe(n[t]):o=dCe(n[t]),i>0&&i%2!=0&&RU(this,new Nk(r,o)),++i),++t}catch(e){throw rN(e=use(e),127)?jv(new Py("The given string does not match the expected format for vectors."+e)):jv(e)}},xKe.Ib=function(){var e,t,n;for(e=new uR("("),t=sve(this,0);t.b!=t.d.c;)aM(e,(n=$H(d3(t),8)).a+","+n.b),t.b!=t.d.c&&(e.a+="; ");return(e.a+=")",e).a};var CSt,TSt,kSt,OSt,MSt,ISt,DSt=mV(c0e,"KVectorChain",74);hIe(248,22,{3:1,35:1,22:1,248:1},Rk);var NSt,RSt,LSt,BSt,PSt,FSt,$St,jSt,HSt,USt,QSt,zSt,WSt,GSt,VSt,KSt,YSt,qSt,XSt,JSt=$ne(l5e,"Alignment",248,Wet,q8,qj);hIe(979,1,KXe,Md),xKe.Qe=function(e){U$e(e)},mV(l5e,"BoxLayouterOptions",979),hIe(980,1,{},Bs),xKe.$e=function(){return new Ws},xKe._e=function(e){},mV(l5e,"BoxLayouterOptions/BoxFactory",980),hIe(291,22,{3:1,35:1,22:1,291:1},Lk);var ZSt,eCt,tCt,nCt,rCt,iCt,oCt,aCt,sCt,lCt,cCt,uCt,dCt,hCt,fCt,pCt,gCt,mCt,vCt,ACt,bCt,yCt,wCt,_Ct,xCt,ECt,SCt,CCt,TCt,kCt,OCt,MCt,ICt,DCt,NCt,RCt,LCt,BCt,PCt,FCt,$Ct,jCt,HCt,UCt,QCt,zCt,WCt,GCt,VCt,KCt,YCt,qCt,XCt,JCt,ZCt,eTt,tTt,nTt,rTt,iTt,oTt,aTt,sTt,lTt,cTt,uTt,dTt,hTt,fTt,pTt,gTt,mTt,vTt,ATt,bTt,yTt,wTt,_Tt,xTt,ETt,STt,CTt,TTt,kTt,OTt,MTt,ITt,DTt,NTt,RTt,LTt,BTt,PTt,FTt,$Tt,jTt,HTt=$ne(l5e,"ContentAlignment",291,Wet,Y8,Xj);hIe(684,1,KXe,Id),xKe.Qe=function(e){Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,h5e),""),"Layout Algorithm"),"Select a specific layout algorithm."),(STe(),ASt)),Ytt),Jhe((nve(),lSt))))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,f5e),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),vSt),iSt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,G2e),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),nCt),pSt),JSt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,VJe),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),fSt),Ctt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,p5e),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),vSt),DSt),Jhe(oSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,o3e),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),cCt),gSt),HTt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,W2e),""),"Debug Mode"),"Whether additional debug information shall be generated."),(lR(),!1)),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,q2e),""),_Je),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),hCt),pSt),GTt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,A2e),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),vCt),pSt),akt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,O4e),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,f2e),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),_Ct),pSt),Ekt),wz(lSt,Sse(Uw(ySt,1),MYe,175,0,[sSt]))))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,KJe),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),GCt),vSt),Pst),wz(lSt,Sse(Uw(ySt,1),MYe,175,0,[sSt]))))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,yZe),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,v3e),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,xZe),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,wZe),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),aTt),pSt),iOt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,p3e),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),vSt),SSt),wz(sSt,Sse(Uw(ySt,1),MYe,175,0,[cSt,aSt]))))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,gZe),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),mSt),Mtt),wz(sSt,Sse(Uw(ySt,1),MYe,175,0,[oSt]))))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,AZe),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),mSt),Mtt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,bZe),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,a3e),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),OCt),vSt),DSt),Jhe(oSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,c3e),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),hSt),ytt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,u3e),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),hSt),ytt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,g5e),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),vSt),LRt),wz(lSt,Sse(Uw(ySt,1),MYe,175,0,[aSt]))))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,g3e),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),ICt),vSt),wst),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,Q2e),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),hSt),ytt),wz(sSt,Sse(Uw(ySt,1),MYe,175,0,[oSt,cSt,aSt]))))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,m5e),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),fSt),Ctt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,v5e),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,A5e),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),the(100)),mSt),Mtt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,b5e),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,y5e),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),the(4e3)),mSt),Mtt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,w5e),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),the(400)),mSt),Mtt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,_5e),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,x5e),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,E5e),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,S5e),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,d5e),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),aCt),pSt),rMt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,I2e),b2e),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),fSt),Ctt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,D2e),b2e),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),fSt),Ctt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,WJe),b2e),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),fSt),Ctt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,N2e),b2e),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),fSt),Ctt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,vZe),b2e),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),fSt),Ctt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,R2e),b2e),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),fSt),Ctt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,L2e),b2e),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),fSt),Ctt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,F2e),b2e),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),fSt),Ctt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,B2e),b2e),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),fSt),Ctt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,P2e),b2e),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),fSt),Ctt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,mZe),b2e),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),fSt),Ctt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,$2e),b2e),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),fSt),Ctt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,j2e),b2e),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),fSt),Ctt),wz(lSt,Sse(Uw(ySt,1),MYe,175,0,[sSt]))))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,H2e),b2e),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),vSt),lMt),wz(sSt,Sse(Uw(ySt,1),MYe,175,0,[oSt,cSt,aSt]))))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,m3e),b2e),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),RTt),vSt),wst),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,f3e),O5e),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),mSt),Mtt),wz(lSt,Sse(Uw(ySt,1),MYe,175,0,[sSt]))))),i2(e,f3e,h3e,qCt),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,h3e),O5e),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),KCt),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,X2e),M5e),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),NCt),vSt),Pst),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,CZe),M5e),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),LCt),gSt),Ukt),wz(sSt,Sse(Uw(ySt,1),MYe,175,0,[aSt]))))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,e3e),I5e),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),JCt),pSt),qkt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,t3e),I5e),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),pSt),qkt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,n3e),I5e),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),pSt),qkt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,r3e),I5e),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),pSt),qkt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,i3e),I5e),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),pSt),qkt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,SZe),D5e),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),PCt),gSt),YOt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,EZe),D5e),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),UCt),gSt),tMt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,$Ze),D5e),"Node Size Minimum"),"The minimal size to which a node can be reduced."),jCt),vSt),SSt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,Y2e),D5e),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),hSt),ytt),Jhe(lSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,s3e),O2e),"Edge Label Placement"),"Gives a hint on where to put edge labels."),gCt),pSt),JTt),Jhe(aSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,_Ze),O2e),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),hSt),ytt),Jhe(aSt)))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,C5e),"font"),"Font Name"),"Font name used for a label."),ASt),Ytt),Jhe(aSt)))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,T5e),"font"),"Font Size"),"Font size used for a label."),mSt),Mtt),Jhe(aSt)))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,d3e),N5e),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),vSt),SSt),Jhe(cSt)))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,l3e),N5e),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),mSt),Mtt),Jhe(cSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,z2e),N5e),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),fTt),pSt),FOt),Jhe(cSt)))),Ofe(e,new dTe(k_(T_(O_(w_(C_(x_(E_(new Hs,U2e),N5e),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),fSt),Ctt),Jhe(cSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,TZe),R5e),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),uTt),gSt),TOt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,J2e),R5e),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),hSt),ytt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,Z2e),R5e),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),hSt),ytt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,V2e),L5e),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),hSt),ytt),Jhe(sSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,K2e),L5e),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),hSt),ytt),Jhe(oSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,GJe),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),fSt),Ctt),Jhe(oSt)))),Ofe(e,new dTe(k_(T_(O_(__(w_(C_(x_(E_(new Hs,k5e),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),bCt),pSt),Akt),Jhe(oSt)))),NS(e,new zZ(A_(y_(b_(new As,h0e),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),NS(e,new zZ(A_(y_(b_(new As,"org.eclipse.elk.orthogonal"),"Orthogonal"),'Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia \'86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.'))),NS(e,new zZ(A_(y_(b_(new As,pZe),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),NS(e,new zZ(A_(y_(b_(new As,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),NS(e,new zZ(A_(y_(b_(new As,Y3e),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),NS(e,new zZ(A_(y_(b_(new As,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),NS(e,new zZ(A_(y_(b_(new As,h4e),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),dFe((new Dd,e)),U$e((new Md,e)),LBe((new Nd,e))},mV(l5e,"CoreOptions",684),hIe(103,22,{3:1,35:1,22:1,103:1},Bk);var UTt,QTt,zTt,WTt,GTt=$ne(l5e,_Je,103,Wet,C5,eH);hIe(272,22,{3:1,35:1,22:1,272:1},Pk);var VTt,KTt,YTt,qTt,XTt,JTt=$ne(l5e,"EdgeLabelPlacement",272,Wet,H0,tH);hIe(218,22,{3:1,35:1,22:1,218:1},Fk);var ZTt,ekt,tkt,nkt,rkt,ikt,okt,akt=$ne(l5e,"EdgeRouting",218,Wet,E3,nH);hIe(312,22,{3:1,35:1,22:1,312:1},$k);var skt,lkt,ckt,ukt,dkt,hkt,fkt,pkt,gkt,mkt,vkt,Akt=$ne(l5e,"EdgeType",312,Wet,i7,rH);hIe(977,1,KXe,Dd),xKe.Qe=function(e){dFe(e)},mV(l5e,"FixedLayouterOptions",977),hIe(978,1,{},qs),xKe.$e=function(){return new Qs},xKe._e=function(e){},mV(l5e,"FixedLayouterOptions/FixedFactory",978),hIe(334,22,{3:1,35:1,22:1,334:1},jk);var bkt,ykt,wkt,_kt,xkt,Ekt=$ne(l5e,"HierarchyHandling",334,Wet,j0,iH);hIe(285,22,{3:1,35:1,22:1,285:1},Hk);var Skt,Ckt,Tkt,kkt,Okt,Mkt,Ikt,Dkt,Nkt,Rkt,Lkt=$ne(l5e,"LabelSide",285,Wet,x3,oH);hIe(93,22,{3:1,35:1,22:1,93:1},Uk);var Bkt,Pkt,Fkt,$kt,jkt,Hkt,Ukt=$ne(l5e,"NodeLabelPlacement",93,Wet,bne,aH);hIe(249,22,{3:1,35:1,22:1,249:1},Qk);var Qkt,zkt,Wkt,Gkt,Vkt,Kkt,Ykt,qkt=$ne(l5e,"PortAlignment",249,Wet,T5,sH);hIe(98,22,{3:1,35:1,22:1,98:1},zk);var Xkt,Jkt,Zkt,eOt,tOt,nOt,rOt,iOt=$ne(l5e,"PortConstraints",98,Wet,E8,lH);hIe(273,22,{3:1,35:1,22:1,273:1},Wk);var oOt,aOt,sOt,lOt,cOt,uOt,dOt,hOt,fOt,pOt,gOt,mOt,vOt,AOt,bOt,yOt,wOt,_Ot,xOt,EOt,SOt,COt,TOt=$ne(l5e,"PortLabelPlacement",273,Wet,r7,cH);hIe(61,22,{3:1,35:1,22:1,61:1},Gk);var kOt,OOt,MOt,IOt,DOt,NOt,ROt,LOt,BOt,POt,FOt=$ne(l5e,"PortSide",61,Wet,l5,hH);hIe(981,1,KXe,Nd),xKe.Qe=function(e){LBe(e)},mV(l5e,"RandomLayouterOptions",981),hIe(982,1,{},Xs),xKe.$e=function(){return new tl},xKe._e=function(e){},mV(l5e,"RandomLayouterOptions/RandomFactory",982),hIe(374,22,{3:1,35:1,22:1,374:1},Vk);var $Ot,jOt,HOt,UOt,QOt,zOt,WOt,GOt,VOt,KOt,YOt=$ne(l5e,"SizeConstraint",374,Wet,_3,uH);hIe(259,22,{3:1,35:1,22:1,259:1},Kk);var qOt,XOt,JOt,ZOt,eMt,tMt=$ne(l5e,"SizeOptions",259,Wet,wre,dH);hIe(370,1,{1949:1},Wb),xKe.b=!1,xKe.c=0,xKe.d=-1,xKe.e=null,xKe.f=null,xKe.g=-1,xKe.j=!1,xKe.k=!1,xKe.n=!1,xKe.o=0,xKe.q=0,xKe.r=0,mV(A3e,"BasicProgressMonitor",370),hIe(972,209,DJe,Ws),xKe.Ze=function(e,t){var n,r,i,o,a,s,l,c,u;kEe(t,"Box layout",2),i=Qy(xB(XIe(e,(ESe(),WSt)))),o=$H(XIe(e,USt),116),n=Hy(_B(XIe(e,PSt))),r=Hy(_B(XIe(e,FSt))),0===$H(XIe(e,LSt),311).g?(s=new ZF((!e.a&&(e.a=new eG(QMt,e,10,11)),e.a)),Eq(),vD(s,new Em(r)),a=s,l=WTe(e),(null==(c=xB(XIe(e,RSt)))||(bK(c),c<=0))&&(c=1.3),BGe(e,(u=jGe(a,i,o,l.a,l.b,n,(bK(c),c))).a,u.b,!1,!0)):bQe(e,i,o,n),jCe(t)},mV(A3e,"BoxLayoutProvider",972),hIe(973,1,xXe,Em),xKe.ue=function(e,t){return lRe(this,$H(e,33),$H(t,33))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},xKe.a=!1,mV(A3e,"BoxLayoutProvider/1",973),hIe(157,1,{157:1},Ute,QL),xKe.Ib=function(){return this.c?QPe(this.c):ISe(this.b)},mV(A3e,"BoxLayoutProvider/Group",157),hIe(311,22,{3:1,35:1,22:1,311:1},Yk);var nMt,rMt=$ne(A3e,"BoxLayoutProvider/PackingMode",311,Wet,S3,fH);hIe(974,1,xXe,Gs),xKe.ue=function(e,t){return Rq($H(e,157),$H(t,157))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(A3e,"BoxLayoutProvider/lambda$0$Type",974),hIe(975,1,xXe,Vs),xKe.ue=function(e,t){return rq($H(e,157),$H(t,157))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(A3e,"BoxLayoutProvider/lambda$1$Type",975),hIe(976,1,xXe,Ks),xKe.ue=function(e,t){return iq($H(e,157),$H(t,157))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(A3e,"BoxLayoutProvider/lambda$2$Type",976),hIe(1365,1,{831:1},Ys),xKe.qg=function(e,t){return OS(),!rN(t,160)||Ex((Dse(),$H(e,160)),t)},mV(A3e,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1365),hIe(1366,1,uYe,Sm),xKe.td=function(e){qce(this.a,$H(e,146))},mV(A3e,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1366),hIe(1367,1,uYe,zs),xKe.td=function(e){$H(e,94),OS()},mV(A3e,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1367),hIe(1371,1,uYe,Cm),xKe.td=function(e){kie(this.a,$H(e,94))},mV(A3e,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1371),hIe(1369,1,RYe,qk),xKe.Mb=function(e){return Vle(this.a,this.b,$H(e,146))},mV(A3e,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1369),hIe(1368,1,RYe,Xk),xKe.Mb=function(e){return ML(this.a,this.b,$H(e,831))},mV(A3e,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1368),hIe(1370,1,uYe,Jk),xKe.td=function(e){FW(this.a,this.b,$H(e,146))},mV(A3e,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1370),hIe(935,1,{},Us),xKe.Kb=function(e){return AI(e)},xKe.Fb=function(e){return this===e},mV(A3e,"ElkUtil/lambda$0$Type",935),hIe(936,1,uYe,Zk),xKe.td=function(e){nMe(this.a,this.b,$H(e,79))},xKe.a=0,xKe.b=0,mV(A3e,"ElkUtil/lambda$1$Type",936),hIe(937,1,uYe,eO),xKe.td=function(e){wy(this.a,this.b,$H(e,202))},xKe.a=0,xKe.b=0,mV(A3e,"ElkUtil/lambda$2$Type",937),hIe(938,1,uYe,tO),xKe.td=function(e){ZI(this.a,this.b,$H(e,137))},xKe.a=0,xKe.b=0,mV(A3e,"ElkUtil/lambda$3$Type",938),hIe(939,1,uYe,Tm),xKe.td=function(e){rQ(this.a,$H(e,469))},mV(A3e,"ElkUtil/lambda$4$Type",939),hIe(342,1,{35:1,342:1},Mv),xKe.wd=function(e){return mN(this,$H(e,236))},xKe.Fb=function(e){var t;return!!rN(e,342)&&(t=$H(e,342),this.a==t.a)},xKe.Hb=function(){return CJ(this.a)},xKe.Ib=function(){return this.a+" (exclusive)"},xKe.a=0,mV(A3e,"ExclusiveBounds/ExclusiveLowerBound",342),hIe(1138,209,DJe,Qs),xKe.Ze=function(e,t){var n,i,o,a,s,l,c,d,h,f,p,g,m,v,A,b,y,w,_,x,E;for(kEe(t,"Fixed Layout",1),a=$H(XIe(e,(sKe(),mCt)),218),f=0,p=0,A=new ON((!e.a&&(e.a=new eG(QMt,e,10,11)),e.a));A.e!=A.i.gc();){for(m=$H(bve(A),33),(E=$H(XIe(m,(Wce(),pkt)),8))&&(EI(m,E.a,E.b),$H(XIe(m,ckt),174).Hc((vge(),ROt))&&(g=$H(XIe(m,dkt),8)).a>0&&g.b>0&&BGe(m,g.a,g.b,!0,!0)),f=r.Math.max(f,m.i+m.g),p=r.Math.max(p,m.j+m.f),d=new ON((!m.n&&(m.n=new eG(UMt,m,1,7)),m.n));d.e!=d.i.gc();)l=$H(bve(d),137),(E=$H(XIe(l,pkt),8))&&EI(l,E.a,E.b),f=r.Math.max(f,m.i+l.i+l.g),p=r.Math.max(p,m.j+l.j+l.f);for(w=new ON((!m.c&&(m.c=new eG(zMt,m,9,9)),m.c));w.e!=w.i.gc();)for(y=$H(bve(w),118),(E=$H(XIe(y,pkt),8))&&EI(y,E.a,E.b),_=m.i+y.i,x=m.j+y.j,f=r.Math.max(f,_+y.g),p=r.Math.max(p,x+y.f),c=new ON((!y.n&&(y.n=new eG(UMt,y,1,7)),y.n));c.e!=c.i.gc();)l=$H(bve(c),137),(E=$H(XIe(l,pkt),8))&&EI(l,E.a,E.b),f=r.Math.max(f,_+l.i+l.g),p=r.Math.max(p,x+l.j+l.f);for(o=new aW(XN(fNe(m).a.Kc(),new u));fIe(o);)h=PGe(n=$H(z5(o),79)),f=r.Math.max(f,h.a),p=r.Math.max(p,h.b);for(i=new aW(XN(hNe(m).a.Kc(),new u));fIe(i);)qJ(SSe(n=$H(z5(i),79)))!=e&&(h=PGe(n),f=r.Math.max(f,h.a),p=r.Math.max(p,h.b))}if(a==(xfe(),KTt))for(v=new ON((!e.a&&(e.a=new eG(QMt,e,10,11)),e.a));v.e!=v.i.gc();)for(i=new aW(XN(fNe(m=$H(bve(v),33)).a.Kc(),new u));fIe(i);)0==(s=nje(n=$H(z5(i),79))).b?Yve(n,kCt,null):Yve(n,kCt,s);Hy(_B(XIe(e,(Wce(),ukt))))||BGe(e,f+(b=$H(XIe(e,hkt),116)).b+b.c,p+b.d+b.a,!0,!0),jCe(t)},mV(A3e,"FixedLayoutProvider",1138),hIe(373,134,{3:1,414:1,373:1,94:1,134:1},Js,nee),xKe.Jf=function(e){var t,n,r,i,o,a,s;if(e)try{for(a=bFe(e,";,;"),i=0,o=(r=a).length;i<o;++i){if(t=bFe(r[i],"\\:"),!(n=gze(rre(),t[0])))throw jv(new Py("Invalid option id: "+t[0]));if(null==(s=XQe(n,t[1])))throw jv(new Py("Invalid option value: "+t[1]));null==s?(!this.q&&(this.q=new Nv),m6(this.q,n)):(!this.q&&(this.q=new Nv),VK(this.q,n,s))}}catch(e){throw rN(e=use(e),102)?jv(new Fce(e)):jv(e)}},xKe.Ib=function(){return EB(S4(MY((this.q?this.q:(Eq(),Eq(),cnt)).vc().Oc(),new Zs),N9(new YH,new Z,new K,new Y,Sse(Uw(Jnt,1),MYe,132,0,[]))))};var iMt,oMt,aMt,sMt,lMt=mV(A3e,"IndividualSpacings",373);hIe(971,1,{},Zs),xKe.Kb=function(e){return Lq($H(e,42))},mV(A3e,"IndividualSpacings/lambda$0$Type",971),hIe(709,1,{},sz),xKe.c=0,mV(A3e,"InstancePool",709),hIe(1275,1,{},el),mV(A3e,"LoggedGraph",1275),hIe(396,22,{3:1,35:1,22:1,396:1},rO);var cMt,uMt,dMt,hMt=$ne(A3e,"LoggedGraph/Type",396,Wet,C3,pH);hIe(46,1,{20:1,46:1},nO),xKe.Jc=function(e){e5(this,e)},xKe.Fb=function(e){var t,n,r;return!!rN(e,46)&&(n=$H(e,46),t=null==this.a?null==n.a:Dde(this.a,n.a),r=null==this.b?null==n.b:Dde(this.b,n.b),t&&r)},xKe.Hb=function(){var e,t,n;return e=-65536&(t=null==this.a?0:Jle(this.a)),t&KYe^(-65536&(n=null==this.b?0:Jle(this.b)))>>16&KYe|e^(n&KYe)<<16},xKe.Kc=function(){return new km(this)},xKe.Ib=function(){return null==this.a&&null==this.b?"pair(null,null)":null==this.a?"pair(null,"+$fe(this.b)+")":null==this.b?"pair("+$fe(this.a)+",null)":"pair("+$fe(this.a)+","+$fe(this.b)+")"},mV(A3e,"Pair",46),hIe(983,1,KKe,km),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return!this.c&&(!this.b&&null!=this.a.a||null!=this.a.b)},xKe.Pb=function(){if(!this.c&&!this.b&&null!=this.a.a)return this.b=!0,this.a.a;if(!this.c&&null!=this.a.b)return this.c=!0,this.a.b;throw jv(new AA)},xKe.Qb=function(){throw this.c&&null!=this.a.b?this.a.b=null:this.b&&null!=this.a.a&&(this.a.a=null),jv(new fA)},xKe.b=!1,xKe.c=!1,mV(A3e,"Pair/1",983),hIe(448,1,{448:1},VY),xKe.Fb=function(e){return rY(this.a,$H(e,448).a)&&rY(this.c,$H(e,448).c)&&rY(this.d,$H(e,448).d)&&rY(this.b,$H(e,448).b)},xKe.Hb=function(){return cue(Sse(Uw(Met,1),jKe,1,5,[this.a,this.c,this.d,this.b]))},xKe.Ib=function(){return"("+this.a+FKe+this.c+FKe+this.d+FKe+this.b+")"},mV(A3e,"Quadruple",448),hIe(1126,209,DJe,tl),xKe.Ze=function(e,t){var n;kEe(t,"Random Layout",1),0!=(!e.a&&(e.a=new eG(QMt,e,10,11)),e.a).i?(tGe(e,(n=$H(XIe(e,(mge(),DOt)),19))&&0!=n.a?new C4(n.a):new sfe,Qy(xB(XIe(e,OOt))),Qy(xB(XIe(e,NOt))),$H(XIe(e,MOt),116)),jCe(t)):jCe(t)},mV(A3e,"RandomLayoutProvider",1126),hIe(553,1,{}),xKe.qf=function(){return new Nk(this.f.i,this.f.j)},xKe.We=function(e){return wX(e,(sKe(),iTt))?XIe(this.f,dMt):XIe(this.f,e)},xKe.rf=function(){return new Nk(this.f.g,this.f.f)},xKe.sf=function(){return this.g},xKe.Xe=function(e){return S8(this.f,e)},xKe.tf=function(e){Sne(this.f,e.a),Cne(this.f,e.b)},xKe.uf=function(e){Ene(this.f,e.a),xne(this.f,e.b)},xKe.vf=function(e){this.g=e},xKe.g=0,mV(j5e,"ElkGraphAdapters/AbstractElkGraphElementAdapter",553),hIe(554,1,{839:1},Om),xKe.wf=function(){var e,t;if(!this.b)for(this.b=C2(vY(this.a).i),t=new ON(vY(this.a));t.e!=t.i.gc();)e=$H(bve(t),137),GH(this.b,new Ly(e));return this.b},xKe.b=null,mV(j5e,"ElkGraphAdapters/ElkEdgeAdapter",554),hIe(301,553,{},Ry),xKe.xf=function(){return eye(this)},xKe.a=null,mV(j5e,"ElkGraphAdapters/ElkGraphAdapter",301),hIe(630,553,{181:1},Ly),mV(j5e,"ElkGraphAdapters/ElkLabelAdapter",630),hIe(629,553,{680:1},qR),xKe.wf=function(){return Jbe(this)},xKe.Af=function(){var e;return!(e=$H(XIe(this.f,(sKe(),MCt)),142))&&(e=new ub),e},xKe.Cf=function(){return Zbe(this)},xKe.Ef=function(e){var t;t=new O$(e),Yve(this.f,(sKe(),MCt),t)},xKe.Ff=function(e){Yve(this.f,(sKe(),WCt),new k$(e))},xKe.yf=function(){return this.d},xKe.zf=function(){var e,t;if(!this.a)for(this.a=new Dv,t=new aW(XN(hNe($H(this.f,33)).a.Kc(),new u));fIe(t);)e=$H(z5(t),79),GH(this.a,new Om(e));return this.a},xKe.Bf=function(){var e,t;if(!this.c)for(this.c=new Dv,t=new aW(XN(fNe($H(this.f,33)).a.Kc(),new u));fIe(t);)e=$H(z5(t),79),GH(this.c,new Om(e));return this.c},xKe.Df=function(){return 0!=Yq($H(this.f,33)).i||Hy(_B($H(this.f,33).We((sKe(),ECt))))},xKe.Gf=function(){P9(this,(US(),uMt))},xKe.a=null,xKe.b=null,xKe.c=null,xKe.d=null,xKe.e=null,mV(j5e,"ElkGraphAdapters/ElkNodeAdapter",629),hIe(1266,553,{838:1},av),xKe.wf=function(){return bye(this)},xKe.zf=function(){var e,t;if(!this.a)for(this.a=sL($H(this.f,118).xg().i),t=new ON($H(this.f,118).xg());t.e!=t.i.gc();)e=$H(bve(t),79),GH(this.a,new Om(e));return this.a},xKe.Bf=function(){var e,t;if(!this.c)for(this.c=sL($H(this.f,118).yg().i),t=new ON($H(this.f,118).yg());t.e!=t.i.gc();)e=$H(bve(t),79),GH(this.c,new Om(e));return this.c},xKe.Hf=function(){return $H($H(this.f,118).We((sKe(),hTt)),61)},xKe.If=function(){var e,t,n,r,i,o,a;for(r=GJ($H(this.f,118)),n=new ON($H(this.f,118).yg());n.e!=n.i.gc();)for(a=new ON((!(e=$H(bve(n),79)).c&&(e.c=new lF(LMt,e,5,8)),e.c));a.e!=a.i.gc();){if(Cte(SEe(o=$H(bve(a),82)),r))return!0;if(SEe(o)==r&&Hy(_B(XIe(e,(sKe(),SCt)))))return!0}for(t=new ON($H(this.f,118).xg());t.e!=t.i.gc();)for(i=new ON((!(e=$H(bve(t),79)).b&&(e.b=new lF(LMt,e,4,7)),e.b));i.e!=i.i.gc();)if(Cte(SEe($H(bve(i),82)),r))return!0;return!1},xKe.a=null,xKe.b=null,xKe.c=null,mV(j5e,"ElkGraphAdapters/ElkPortAdapter",1266),hIe(1267,1,xXe,nl),xKe.ue=function(e,t){return UPe($H(e,118),$H(t,118))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(j5e,"ElkGraphAdapters/PortComparator",1267);var fMt,pMt,gMt,mMt,vMt,AMt,bMt,yMt,wMt,_Mt,xMt,EMt,SMt,CMt,TMt,kMt,OMt,MMt=dQ(H5e,"EObject"),IMt=dQ(U5e,Q5e),DMt=dQ(U5e,z5e),NMt=dQ(U5e,W5e),RMt=dQ(U5e,"ElkShape"),LMt=dQ(U5e,G5e),BMt=dQ(U5e,V5e),PMt=dQ(U5e,K5e),FMt=dQ(H5e,Y5e),$Mt=dQ(H5e,"EFactory"),jMt=dQ(H5e,q5e),HMt=dQ(H5e,"EPackage"),UMt=dQ(U5e,X5e),QMt=dQ(U5e,J5e),zMt=dQ(U5e,Z5e);hIe(90,1,e6e),xKe.Jg=function(){return this.Kg(),null},xKe.Kg=function(){return null},xKe.Lg=function(){return this.Kg(),!1},xKe.Mg=function(){return!1},xKe.Ng=function(e){dae(this,e)},mV(t6e,"BasicNotifierImpl",90),hIe(97,90,c6e),xKe.nh=function(){return vI(this)},xKe.Og=function(e,t){return e},xKe.Pg=function(){throw jv(new gA)},xKe.Qg=function(e){var t;return t=CAe($H(tte(this.Tg(),this.Vg()),18)),this.eh().ih(this,t.n,t.f,e)},xKe.Rg=function(e,t){throw jv(new gA)},xKe.Sg=function(e,t,n){return _$e(this,e,t,n)},xKe.Tg=function(){var e;return this.Pg()&&(e=this.Pg().ck())?e:this.zh()},xKe.Ug=function(){return rIe(this)},xKe.Vg=function(){throw jv(new gA)},xKe.Wg=function(){var e,t;return!(t=this.ph().dk())&&this.Pg().ik((KS(),t=null==(e=uJ(Hje(this.Tg())))?IDt:new KR(this,e))),t},xKe.Xg=function(e,t){return e},xKe.Yg=function(e){return e.Gj()?e.aj():Ope(this.Tg(),e)},xKe.Zg=function(){var e;return(e=this.Pg())?e.fk():null},xKe.$g=function(){return this.Pg()?this.Pg().ck():null},xKe._g=function(e,t,n){return Xve(this,e,t,n)},xKe.ah=function(e){return E7(this,e)},xKe.bh=function(e,t){return V5(this,e,t)},xKe.dh=function(){var e;return!!(e=this.Pg())&&e.gk()},xKe.eh=function(){throw jv(new gA)},xKe.fh=function(){return Yge(this)},xKe.gh=function(e,t,n,r){return Dve(this,e,t,r)},xKe.hh=function(e,t,n){return $H(tte(this.Tg(),t),66).Nj().Qj(this,this.yh(),t-this.Ah(),e,n)},xKe.ih=function(e,t,n,r){return aJ(this,e,t,r)},xKe.jh=function(e,t,n){return $H(tte(this.Tg(),t),66).Nj().Rj(this,this.yh(),t-this.Ah(),e,n)},xKe.kh=function(){return!!this.Pg()&&!!this.Pg().ek()},xKe.lh=function(e){return mve(this,e)},xKe.mh=function(e){return XJ(this,e)},xKe.oh=function(e){return PQe(this,e)},xKe.ph=function(){throw jv(new gA)},xKe.qh=function(){return this.Pg()?this.Pg().ek():null},xKe.rh=function(){return Yge(this)},xKe.sh=function(e,t){Ake(this,e,t)},xKe.th=function(e){this.ph().hk(e)},xKe.uh=function(e){this.ph().kk(e)},xKe.vh=function(e){this.ph().jk(e)},xKe.wh=function(e,t){var n,r,i,o;return(o=this.Zg())&&e&&(t=Pve(o.Vk(),this,t),o.Zk(this)),(r=this.eh())&&(pFe(this,this.eh(),this.Vg()).Bb&$qe?(i=r.fh())&&(e?!o&&i.Zk(this):i.Yk(this)):(t=(n=this.Vg())>=0?this.Qg(t):this.eh().ih(this,-1-n,null,t),t=this.Sg(null,-1,t))),this.uh(e),t},xKe.xh=function(e){var t,n,r,i,o,a,s;if((o=Ope(n=this.Tg(),e))>=(t=this.Ah()))return $H(e,66).Nj().Uj(this,this.yh(),o-t);if(o<=-1){if(!(a=FQe((TTe(),qDt),n,e)))throw jv(new Py(n6e+e.ne()+o6e));if(XS(),$H(a,66).Oj()||(a=X0($9(qDt,a))),i=$H((r=this.Yg(a))>=0?this._g(r,!0,!0):rMe(this,a,!0),153),(s=a.Zj())>1||-1==s)return $H($H(i,215).hl(e,!1),76)}else if(e.$j())return $H((r=this.Yg(e))>=0?this._g(r,!1,!0):rMe(this,e,!1),76);return new TO(this,e)},xKe.yh=function(){return K9(this)},xKe.zh=function(){return(KV(),JIt).S},xKe.Ah=function(){return dV(this.zh())},xKe.Bh=function(e){vTe(this,e)},xKe.Ib=function(){return SDe(this)},mV(u6e,"BasicEObjectImpl",97),hIe(114,97,{105:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1}),xKe.Ch=function(e){return Y9(this)[e]},xKe.Dh=function(e,t){MV(Y9(this),e,t)},xKe.Eh=function(e){MV(Y9(this),e,null)},xKe.Jg=function(){return $H(Aae(this,4),126)},xKe.Kg=function(){throw jv(new gA)},xKe.Lg=function(){return!!(4&this.Db)},xKe.Pg=function(){throw jv(new gA)},xKe.Fh=function(e){lme(this,2,e)},xKe.Rg=function(e,t){this.Db=t<<16|255&this.Db,this.Fh(e)},xKe.Tg=function(){return yX(this)},xKe.Vg=function(){return this.Db>>16},xKe.Wg=function(){var e;return KS(),null==(e=uJ(Hje($H(Aae(this,16),26)||this.zh())))?IDt:new KR(this,e)},xKe.Mg=function(){return!(1&this.Db)},xKe.Zg=function(){return $H(Aae(this,128),1935)},xKe.$g=function(){return $H(Aae(this,16),26)},xKe.dh=function(){return!!(32&this.Db)},xKe.eh=function(){return $H(Aae(this,2),49)},xKe.kh=function(){return!!(64&this.Db)},xKe.ph=function(){throw jv(new gA)},xKe.qh=function(){return $H(Aae(this,64),281)},xKe.th=function(e){lme(this,16,e)},xKe.uh=function(e){lme(this,128,e)},xKe.vh=function(e){lme(this,64,e)},xKe.yh=function(){return cme(this)},xKe.Db=0,mV(u6e,"MinimalEObjectImpl",114),hIe(115,114,{105:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),xKe.Fh=function(e){this.Cb=e},xKe.eh=function(){return this.Cb},mV(u6e,"MinimalEObjectImpl/Container",115),hIe(1985,115,{105:1,413:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),xKe._g=function(e,t,n){return wye(this,e,t,n)},xKe.jh=function(e,t,n){return eCe(this,e,t,n)},xKe.lh=function(e){return v1(this,e)},xKe.sh=function(e,t){nce(this,e,t)},xKe.zh=function(){return CVe(),SMt},xKe.Bh=function(e){Qse(this,e)},xKe.Ve=function(){return uve(this)},xKe.We=function(e){return XIe(this,e)},xKe.Xe=function(e){return S8(this,e)},xKe.Ye=function(e,t){return Yve(this,e,t)},mV(d6e,"EMapPropertyHolderImpl",1985),hIe(567,115,{105:1,469:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},ol),xKe._g=function(e,t,n){switch(e){case 0:return this.a;case 1:return this.b}return Xve(this,e,t,n)},xKe.lh=function(e){switch(e){case 0:return 0!=this.a;case 1:return 0!=this.b}return mve(this,e)},xKe.sh=function(e,t){switch(e){case 0:return void yne(this,Uy(xB(t)));case 1:return void wne(this,Uy(xB(t)))}Ake(this,e,t)},xKe.zh=function(){return CVe(),gMt},xKe.Bh=function(e){switch(e){case 0:return void yne(this,0);case 1:return void wne(this,0)}vTe(this,e)},xKe.Ib=function(){var e;return 64&this.Db?SDe(this):((e=new cR(SDe(this))).a+=" (x: ",mx(e,this.a),e.a+=", y: ",mx(e,this.b),e.a+=")",e.a)},xKe.a=0,xKe.b=0,mV(d6e,"ElkBendPointImpl",567),hIe(723,1985,{105:1,413:1,160:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),xKe._g=function(e,t,n){return Pde(this,e,t,n)},xKe.hh=function(e,t,n){return FEe(this,e,t,n)},xKe.jh=function(e,t,n){return nse(this,e,t,n)},xKe.lh=function(e){return wae(this,e)},xKe.sh=function(e,t){U_e(this,e,t)},xKe.zh=function(){return CVe(),bMt},xKe.Bh=function(e){ade(this,e)},xKe.zg=function(){return this.k},xKe.Ag=function(){return vY(this)},xKe.Ib=function(){return Yhe(this)},xKe.k=null,mV(d6e,"ElkGraphElementImpl",723),hIe(724,723,{105:1,413:1,160:1,470:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),xKe._g=function(e,t,n){return Lfe(this,e,t,n)},xKe.lh=function(e){return cpe(this,e)},xKe.sh=function(e,t){Q_e(this,e,t)},xKe.zh=function(){return CVe(),EMt},xKe.Bh=function(e){Rpe(this,e)},xKe.Bg=function(){return this.f},xKe.Cg=function(){return this.g},xKe.Dg=function(){return this.i},xKe.Eg=function(){return this.j},xKe.Fg=function(e,t){xI(this,e,t)},xKe.Gg=function(e,t){EI(this,e,t)},xKe.Hg=function(e){Sne(this,e)},xKe.Ig=function(e){Cne(this,e)},xKe.Ib=function(){return vCe(this)},xKe.f=0,xKe.g=0,xKe.i=0,xKe.j=0,mV(d6e,"ElkShapeImpl",724),hIe(725,724,{105:1,413:1,82:1,160:1,470:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),xKe._g=function(e,t,n){return jAe(this,e,t,n)},xKe.hh=function(e,t,n){return f_e(this,e,t,n)},xKe.jh=function(e,t,n){return p_e(this,e,t,n)},xKe.lh=function(e){return Ule(this,e)},xKe.sh=function(e,t){IIe(this,e,t)},xKe.zh=function(){return CVe(),mMt},xKe.Bh=function(e){Nve(this,e)},xKe.xg=function(){return!this.d&&(this.d=new lF(BMt,this,8,5)),this.d},xKe.yg=function(){return!this.e&&(this.e=new lF(BMt,this,7,4)),this.e},mV(d6e,"ElkConnectableShapeImpl",725),hIe(352,723,{105:1,413:1,79:1,160:1,352:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},il),xKe.Qg=function(e){return xwe(this,e)},xKe._g=function(e,t,n){switch(e){case 3:return WJ(this);case 4:return!this.b&&(this.b=new lF(LMt,this,4,7)),this.b;case 5:return!this.c&&(this.c=new lF(LMt,this,5,8)),this.c;case 6:return!this.a&&(this.a=new eG(PMt,this,6,6)),this.a;case 7:return lR(),!this.b&&(this.b=new lF(LMt,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new lF(LMt,this,5,8)),this.c.i<=1));case 8:return lR(),!!JMe(this);case 9:return lR(),!!KOe(this);case 10:return lR(),!this.b&&(this.b=new lF(LMt,this,4,7)),0!=this.b.i&&(!this.c&&(this.c=new lF(LMt,this,5,8)),0!=this.c.i)}return Pde(this,e,t,n)},xKe.hh=function(e,t,n){var r;switch(t){case 3:return this.Cb&&(n=(r=this.Db>>16)>=0?xwe(this,n):this.Cb.ih(this,-1-r,null,n)),VB(this,$H(e,33),n);case 4:return!this.b&&(this.b=new lF(LMt,this,4,7)),Ype(this.b,e,n);case 5:return!this.c&&(this.c=new lF(LMt,this,5,8)),Ype(this.c,e,n);case 6:return!this.a&&(this.a=new eG(PMt,this,6,6)),Ype(this.a,e,n)}return FEe(this,e,t,n)},xKe.jh=function(e,t,n){switch(t){case 3:return VB(this,null,n);case 4:return!this.b&&(this.b=new lF(LMt,this,4,7)),Pve(this.b,e,n);case 5:return!this.c&&(this.c=new lF(LMt,this,5,8)),Pve(this.c,e,n);case 6:return!this.a&&(this.a=new eG(PMt,this,6,6)),Pve(this.a,e,n)}return nse(this,e,t,n)},xKe.lh=function(e){switch(e){case 3:return!!WJ(this);case 4:return!!this.b&&0!=this.b.i;case 5:return!!this.c&&0!=this.c.i;case 6:return!!this.a&&0!=this.a.i;case 7:return!this.b&&(this.b=new lF(LMt,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new lF(LMt,this,5,8)),this.c.i<=1));case 8:return JMe(this);case 9:return KOe(this);case 10:return!this.b&&(this.b=new lF(LMt,this,4,7)),0!=this.b.i&&(!this.c&&(this.c=new lF(LMt,this,5,8)),0!=this.c.i)}return wae(this,e)},xKe.sh=function(e,t){switch(e){case 3:return void jNe(this,$H(t,33));case 4:return!this.b&&(this.b=new lF(LMt,this,4,7)),sQe(this.b),!this.b&&(this.b=new lF(LMt,this,4,7)),void gV(this.b,$H(t,14));case 5:return!this.c&&(this.c=new lF(LMt,this,5,8)),sQe(this.c),!this.c&&(this.c=new lF(LMt,this,5,8)),void gV(this.c,$H(t,14));case 6:return!this.a&&(this.a=new eG(PMt,this,6,6)),sQe(this.a),!this.a&&(this.a=new eG(PMt,this,6,6)),void gV(this.a,$H(t,14))}U_e(this,e,t)},xKe.zh=function(){return CVe(),vMt},xKe.Bh=function(e){switch(e){case 3:return void jNe(this,null);case 4:return!this.b&&(this.b=new lF(LMt,this,4,7)),void sQe(this.b);case 5:return!this.c&&(this.c=new lF(LMt,this,5,8)),void sQe(this.c);case 6:return!this.a&&(this.a=new eG(PMt,this,6,6)),void sQe(this.a)}ade(this,e)},xKe.Ib=function(){return uUe(this)},mV(d6e,"ElkEdgeImpl",352),hIe(439,1985,{105:1,413:1,202:1,439:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},al),xKe.Qg=function(e){return swe(this,e)},xKe._g=function(e,t,n){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new MN(DMt,this,5)),this.a;case 6:return VJ(this);case 7:return t?SAe(this):this.i;case 8:return t?EAe(this):this.f;case 9:return!this.g&&(this.g=new lF(PMt,this,9,10)),this.g;case 10:return!this.e&&(this.e=new lF(PMt,this,10,9)),this.e;case 11:return this.d}return wye(this,e,t,n)},xKe.hh=function(e,t,n){var r;switch(t){case 6:return this.Cb&&(n=(r=this.Db>>16)>=0?swe(this,n):this.Cb.ih(this,-1-r,null,n)),KB(this,$H(e,79),n);case 9:return!this.g&&(this.g=new lF(PMt,this,9,10)),Ype(this.g,e,n);case 10:return!this.e&&(this.e=new lF(PMt,this,10,9)),Ype(this.e,e,n)}return $H(tte($H(Aae(this,16),26)||(CVe(),AMt),t),66).Nj().Qj(this,cme(this),t-dV((CVe(),AMt)),e,n)},xKe.jh=function(e,t,n){switch(t){case 5:return!this.a&&(this.a=new MN(DMt,this,5)),Pve(this.a,e,n);case 6:return KB(this,null,n);case 9:return!this.g&&(this.g=new lF(PMt,this,9,10)),Pve(this.g,e,n);case 10:return!this.e&&(this.e=new lF(PMt,this,10,9)),Pve(this.e,e,n)}return eCe(this,e,t,n)},xKe.lh=function(e){switch(e){case 1:return 0!=this.j;case 2:return 0!=this.k;case 3:return 0!=this.b;case 4:return 0!=this.c;case 5:return!!this.a&&0!=this.a.i;case 6:return!!VJ(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&0!=this.g.i;case 10:return!!this.e&&0!=this.e.i;case 11:return null!=this.d}return v1(this,e)},xKe.sh=function(e,t){switch(e){case 1:return void Tne(this,Uy(xB(t)));case 2:return void One(this,Uy(xB(t)));case 3:return void _ne(this,Uy(xB(t)));case 4:return void kne(this,Uy(xB(t)));case 5:return!this.a&&(this.a=new MN(DMt,this,5)),sQe(this.a),!this.a&&(this.a=new MN(DMt,this,5)),void gV(this.a,$H(t,14));case 6:return void FNe(this,$H(t,79));case 7:return void Dre(this,$H(t,82));case 8:return void Ire(this,$H(t,82));case 9:return!this.g&&(this.g=new lF(PMt,this,9,10)),sQe(this.g),!this.g&&(this.g=new lF(PMt,this,9,10)),void gV(this.g,$H(t,14));case 10:return!this.e&&(this.e=new lF(PMt,this,10,9)),sQe(this.e),!this.e&&(this.e=new lF(PMt,this,10,9)),void gV(this.e,$H(t,14));case 11:return void rie(this,EB(t))}nce(this,e,t)},xKe.zh=function(){return CVe(),AMt},xKe.Bh=function(e){switch(e){case 1:return void Tne(this,0);case 2:return void One(this,0);case 3:return void _ne(this,0);case 4:return void kne(this,0);case 5:return!this.a&&(this.a=new MN(DMt,this,5)),void sQe(this.a);case 6:return void FNe(this,null);case 7:return void Dre(this,null);case 8:return void Ire(this,null);case 9:return!this.g&&(this.g=new lF(PMt,this,9,10)),void sQe(this.g);case 10:return!this.e&&(this.e=new lF(PMt,this,10,9)),void sQe(this.e);case 11:return void rie(this,null)}Qse(this,e)},xKe.Ib=function(){return LMe(this)},xKe.b=0,xKe.c=0,xKe.d=null,xKe.j=0,xKe.k=0,mV(d6e,"ElkEdgeSectionImpl",439),hIe(150,115,{105:1,92:1,90:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1}),xKe._g=function(e,t,n){return 0==e?(!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),this.Ab):z7(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e),t,n)},xKe.hh=function(e,t,n){return 0==t?(!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Ype(this.Ab,e,n)):$H(tte($H(Aae(this,16),26)||this.zh(),t),66).Nj().Qj(this,cme(this),t-dV(this.zh()),e,n)},xKe.jh=function(e,t,n){return 0==t?(!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Pve(this.Ab,e,n)):$H(tte($H(Aae(this,16),26)||this.zh(),t),66).Nj().Rj(this,cme(this),t-dV(this.zh()),e,n)},xKe.lh=function(e){return 0==e?!!this.Ab&&0!=this.Ab.i:k3(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e))},xKe.oh=function(e){return lGe(this,e)},xKe.sh=function(e,t){if(0===e)return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),sQe(this.Ab),!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void gV(this.Ab,$H(t,14));Ife(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e),t)},xKe.uh=function(e){lme(this,128,e)},xKe.zh=function(){return pKe(),uDt},xKe.Bh=function(e){if(0===e)return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void sQe(this.Ab);Hde(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e))},xKe.Gh=function(){this.Bb|=1},xKe.Hh=function(e){return D$e(this,e)},xKe.Bb=0,mV(u6e,"EModelElementImpl",150),hIe(704,150,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1},Rd),xKe.Ih=function(e,t){return Hze(this,e,t)},xKe.Jh=function(e){var t,n,r,i;if(this.a!=zte(e)||256&e.Bb)throw jv(new Py(v6e+e.zb+p6e));for(n=bX(e);0!=i4(n.a).i;){if(tye(t=$H(eze(n,0,rN(i=$H(Gte(i4(n.a),0),87).c,88)?$H(i,26):(pKe(),hDt)),26)))return $H(r=zte(t).Nh().Jh(t),49).th(e),r;n=bX(t)}return"java.util.Map$Entry"==(null!=e.D?e.D:e.B)?new cQ(e):new yU(e)},xKe.Kh=function(e,t){return NVe(this,e,t)},xKe._g=function(e,t,n){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),this.Ab;case 1:return this.a}return z7(this,e-dV((pKe(),sDt)),tte($H(Aae(this,16),26)||sDt,e),t,n)},xKe.hh=function(e,t,n){switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Ype(this.Ab,e,n);case 1:return this.a&&(n=$H(this.a,49).ih(this,4,HMt,n)),que(this,$H(e,235),n)}return $H(tte($H(Aae(this,16),26)||(pKe(),sDt),t),66).Nj().Qj(this,cme(this),t-dV((pKe(),sDt)),e,n)},xKe.jh=function(e,t,n){switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Pve(this.Ab,e,n);case 1:return que(this,null,n)}return $H(tte($H(Aae(this,16),26)||(pKe(),sDt),t),66).Nj().Rj(this,cme(this),t-dV((pKe(),sDt)),e,n)},xKe.lh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return!!this.a}return k3(this,e-dV((pKe(),sDt)),tte($H(Aae(this,16),26)||sDt,e))},xKe.sh=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),sQe(this.Ab),!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void gV(this.Ab,$H(t,14));case 1:return void NSe(this,$H(t,235))}Ife(this,e-dV((pKe(),sDt)),tte($H(Aae(this,16),26)||sDt,e),t)},xKe.zh=function(){return pKe(),sDt},xKe.Bh=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void sQe(this.Ab);case 1:return void NSe(this,null)}Hde(this,e-dV((pKe(),sDt)),tte($H(Aae(this,16),26)||sDt,e))},mV(u6e,"EFactoryImpl",704),hIe(b6e,704,{105:1,2014:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1},sl),xKe.Ih=function(e,t){switch(e.yj()){case 12:return $H(t,146).tg();case 13:return $fe(t);default:throw jv(new Py(f6e+e.ne()+p6e))}},xKe.Jh=function(e){var t;switch(-1==e.G&&(e.G=(t=zte(e))?oAe(t.Mh(),e):-1),e.G){case 4:return new ll;case 6:return new yb;case 7:return new wb;case 8:return new il;case 9:return new ol;case 10:return new al;case 11:return new ul;default:throw jv(new Py(v6e+e.zb+p6e))}},xKe.Kh=function(e,t){switch(e.yj()){case 13:case 12:return null;default:throw jv(new Py(f6e+e.ne()+p6e))}},mV(d6e,"ElkGraphFactoryImpl",b6e),hIe(438,150,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1}),xKe.Wg=function(){var e;return null==(e=uJ(Hje($H(Aae(this,16),26)||this.zh())))?(KS(),KS(),IDt):new GL(this,e)},xKe._g=function(e,t,n){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),this.Ab;case 1:return this.ne()}return z7(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e),t,n)},xKe.lh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb}return k3(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e))},xKe.sh=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),sQe(this.Ab),!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void gV(this.Ab,$H(t,14));case 1:return void this.Lh(EB(t))}Ife(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e),t)},xKe.zh=function(){return pKe(),dDt},xKe.Bh=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void sQe(this.Ab);case 1:return void this.Lh(null)}Hde(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e))},xKe.ne=function(){return this.zb},xKe.Lh=function(e){Die(this,e)},xKe.Ib=function(){return bde(this)},xKe.zb=null,mV(u6e,"ENamedElementImpl",438),hIe(179,438,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1},mX),xKe.Qg=function(e){return hwe(this,e)},xKe._g=function(e,t,n){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new qW(this,$It,this)),this.rb;case 6:return!this.vb&&(this.vb=new eF(HMt,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?$H(this.Cb,235):null:KJ(this)}return z7(this,e-dV((pKe(),gDt)),tte($H(Aae(this,16),26)||gDt,e),t,n)},xKe.hh=function(e,t,n){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Ype(this.Ab,e,n);case 4:return this.sb&&(n=$H(this.sb,49).ih(this,1,$Mt,n)),yde(this,$H(e,471),n);case 5:return!this.rb&&(this.rb=new qW(this,$It,this)),Ype(this.rb,e,n);case 6:return!this.vb&&(this.vb=new eF(HMt,this,6,7)),Ype(this.vb,e,n);case 7:return this.Cb&&(n=(r=this.Db>>16)>=0?hwe(this,n):this.Cb.ih(this,-1-r,null,n)),_$e(this,e,7,n)}return $H(tte($H(Aae(this,16),26)||(pKe(),gDt),t),66).Nj().Qj(this,cme(this),t-dV((pKe(),gDt)),e,n)},xKe.jh=function(e,t,n){switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Pve(this.Ab,e,n);case 4:return yde(this,null,n);case 5:return!this.rb&&(this.rb=new qW(this,$It,this)),Pve(this.rb,e,n);case 6:return!this.vb&&(this.vb=new eF(HMt,this,6,7)),Pve(this.vb,e,n);case 7:return _$e(this,null,7,n)}return $H(tte($H(Aae(this,16),26)||(pKe(),gDt),t),66).Nj().Rj(this,cme(this),t-dV((pKe(),gDt)),e,n)},xKe.lh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.yb;case 3:return null!=this.xb;case 4:return!!this.sb;case 5:return!!this.rb&&0!=this.rb.i;case 6:return!!this.vb&&0!=this.vb.i;case 7:return!!KJ(this)}return k3(this,e-dV((pKe(),gDt)),tte($H(Aae(this,16),26)||gDt,e))},xKe.oh=function(e){return IRe(this,e)||lGe(this,e)},xKe.sh=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),sQe(this.Ab),!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void gV(this.Ab,$H(t,14));case 1:return void Die(this,EB(t));case 2:return void Rie(this,EB(t));case 3:return void Nie(this,EB(t));case 4:return void tCe(this,$H(t,471));case 5:return!this.rb&&(this.rb=new qW(this,$It,this)),sQe(this.rb),!this.rb&&(this.rb=new qW(this,$It,this)),void gV(this.rb,$H(t,14));case 6:return!this.vb&&(this.vb=new eF(HMt,this,6,7)),sQe(this.vb),!this.vb&&(this.vb=new eF(HMt,this,6,7)),void gV(this.vb,$H(t,14))}Ife(this,e-dV((pKe(),gDt)),tte($H(Aae(this,16),26)||gDt,e),t)},xKe.vh=function(e){var t,n;if(e&&this.rb)for(n=new ON(this.rb);n.e!=n.i.gc();)rN(t=bve(n),351)&&($H(t,351).w=null);lme(this,64,e)},xKe.zh=function(){return pKe(),gDt},xKe.Bh=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void sQe(this.Ab);case 1:return void Die(this,null);case 2:return void Rie(this,null);case 3:return void Nie(this,null);case 4:return void tCe(this,null);case 5:return!this.rb&&(this.rb=new qW(this,$It,this)),void sQe(this.rb);case 6:return!this.vb&&(this.vb=new eF(HMt,this,6,7)),void sQe(this.vb)}Hde(this,e-dV((pKe(),gDt)),tte($H(Aae(this,16),26)||gDt,e))},xKe.Gh=function(){_ye(this)},xKe.Mh=function(){return!this.rb&&(this.rb=new qW(this,$It,this)),this.rb},xKe.Nh=function(){return this.sb},xKe.Oh=function(){return this.ub},xKe.Ph=function(){return this.xb},xKe.Qh=function(){return this.yb},xKe.Rh=function(e){this.ub=e},xKe.Ib=function(){var e;return 64&this.Db?bde(this):((e=new cR(bde(this))).a+=" (nsURI: ",rM(e,this.yb),e.a+=", nsPrefix: ",rM(e,this.xb),e.a+=")",e.a)},xKe.xb=null,xKe.yb=null,mV(u6e,"EPackageImpl",179),hIe(555,179,{105:1,2016:1,555:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1},sIe),xKe.q=!1,xKe.r=!1;var WMt=!1;mV(d6e,"ElkGraphPackageImpl",555),hIe(354,724,{105:1,413:1,160:1,137:1,470:1,354:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},ll),xKe.Qg=function(e){return lwe(this,e)},xKe._g=function(e,t,n){switch(e){case 7:return YJ(this);case 8:return this.a}return Lfe(this,e,t,n)},xKe.hh=function(e,t,n){var r;return 7===t?(this.Cb&&(n=(r=this.Db>>16)>=0?lwe(this,n):this.Cb.ih(this,-1-r,null,n)),Vz(this,$H(e,160),n)):FEe(this,e,t,n)},xKe.jh=function(e,t,n){return 7==t?Vz(this,null,n):nse(this,e,t,n)},xKe.lh=function(e){switch(e){case 7:return!!YJ(this);case 8:return!vF("",this.a)}return cpe(this,e)},xKe.sh=function(e,t){switch(e){case 7:return void TRe(this,$H(t,160));case 8:return void Nre(this,EB(t))}Q_e(this,e,t)},xKe.zh=function(){return CVe(),yMt},xKe.Bh=function(e){switch(e){case 7:return void TRe(this,null);case 8:return void Nre(this,"")}Rpe(this,e)},xKe.Ib=function(){return rTe(this)},xKe.a="",mV(d6e,"ElkLabelImpl",354),hIe(239,725,{105:1,413:1,82:1,160:1,33:1,470:1,239:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},yb),xKe.Qg=function(e){return Ewe(this,e)},xKe._g=function(e,t,n){switch(e){case 9:return!this.c&&(this.c=new eG(zMt,this,9,9)),this.c;case 10:return!this.a&&(this.a=new eG(QMt,this,10,11)),this.a;case 11:return qJ(this);case 12:return!this.b&&(this.b=new eG(BMt,this,12,3)),this.b;case 13:return lR(),!this.a&&(this.a=new eG(QMt,this,10,11)),this.a.i>0}return jAe(this,e,t,n)},xKe.hh=function(e,t,n){var r;switch(t){case 9:return!this.c&&(this.c=new eG(zMt,this,9,9)),Ype(this.c,e,n);case 10:return!this.a&&(this.a=new eG(QMt,this,10,11)),Ype(this.a,e,n);case 11:return this.Cb&&(n=(r=this.Db>>16)>=0?Ewe(this,n):this.Cb.ih(this,-1-r,null,n)),QP(this,$H(e,33),n);case 12:return!this.b&&(this.b=new eG(BMt,this,12,3)),Ype(this.b,e,n)}return f_e(this,e,t,n)},xKe.jh=function(e,t,n){switch(t){case 9:return!this.c&&(this.c=new eG(zMt,this,9,9)),Pve(this.c,e,n);case 10:return!this.a&&(this.a=new eG(QMt,this,10,11)),Pve(this.a,e,n);case 11:return QP(this,null,n);case 12:return!this.b&&(this.b=new eG(BMt,this,12,3)),Pve(this.b,e,n)}return p_e(this,e,t,n)},xKe.lh=function(e){switch(e){case 9:return!!this.c&&0!=this.c.i;case 10:return!!this.a&&0!=this.a.i;case 11:return!!qJ(this);case 12:return!!this.b&&0!=this.b.i;case 13:return!this.a&&(this.a=new eG(QMt,this,10,11)),this.a.i>0}return Ule(this,e)},xKe.sh=function(e,t){switch(e){case 9:return!this.c&&(this.c=new eG(zMt,this,9,9)),sQe(this.c),!this.c&&(this.c=new eG(zMt,this,9,9)),void gV(this.c,$H(t,14));case 10:return!this.a&&(this.a=new eG(QMt,this,10,11)),sQe(this.a),!this.a&&(this.a=new eG(QMt,this,10,11)),void gV(this.a,$H(t,14));case 11:return void JNe(this,$H(t,33));case 12:return!this.b&&(this.b=new eG(BMt,this,12,3)),sQe(this.b),!this.b&&(this.b=new eG(BMt,this,12,3)),void gV(this.b,$H(t,14))}IIe(this,e,t)},xKe.zh=function(){return CVe(),wMt},xKe.Bh=function(e){switch(e){case 9:return!this.c&&(this.c=new eG(zMt,this,9,9)),void sQe(this.c);case 10:return!this.a&&(this.a=new eG(QMt,this,10,11)),void sQe(this.a);case 11:return void JNe(this,null);case 12:return!this.b&&(this.b=new eG(BMt,this,12,3)),void sQe(this.b)}Nve(this,e)},xKe.Ib=function(){return QPe(this)},mV(d6e,"ElkNodeImpl",239),hIe(186,725,{105:1,413:1,82:1,160:1,118:1,470:1,186:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},wb),xKe.Qg=function(e){return cwe(this,e)},xKe._g=function(e,t,n){return 9==e?GJ(this):jAe(this,e,t,n)},xKe.hh=function(e,t,n){var r;return 9===t?(this.Cb&&(n=(r=this.Db>>16)>=0?cwe(this,n):this.Cb.ih(this,-1-r,null,n)),YB(this,$H(e,33),n)):f_e(this,e,t,n)},xKe.jh=function(e,t,n){return 9==t?YB(this,null,n):p_e(this,e,t,n)},xKe.lh=function(e){return 9==e?!!GJ(this):Ule(this,e)},xKe.sh=function(e,t){9!==e?IIe(this,e,t):$Ne(this,$H(t,33))},xKe.zh=function(){return CVe(),_Mt},xKe.Bh=function(e){9!==e?Nve(this,e):$Ne(this,null)},xKe.Ib=function(){return zPe(this)},mV(d6e,"ElkPortImpl",186);var GMt=dQ($6e,"BasicEMap/Entry");hIe(1092,115,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1,114:1,115:1},ul),xKe.Fb=function(e){return this===e},xKe.cd=function(){return this.b},xKe.Hb=function(){return SR(this)},xKe.Uh=function(e){Rre(this,$H(e,146))},xKe._g=function(e,t,n){switch(e){case 0:return this.b;case 1:return this.c}return Xve(this,e,t,n)},xKe.lh=function(e){switch(e){case 0:return!!this.b;case 1:return null!=this.c}return mve(this,e)},xKe.sh=function(e,t){switch(e){case 0:return void Rre(this,$H(t,146));case 1:return void Pre(this,t)}Ake(this,e,t)},xKe.zh=function(){return CVe(),xMt},xKe.Bh=function(e){switch(e){case 0:return void Rre(this,null);case 1:return void Pre(this,null)}vTe(this,e)},xKe.Sh=function(){var e;return-1==this.a&&(e=this.b,this.a=e?Jle(e):0),this.a},xKe.dd=function(){return this.c},xKe.Th=function(e){this.a=e},xKe.ed=function(e){var t;return t=this.c,Pre(this,e),t},xKe.Ib=function(){var e;return 64&this.Db?SDe(this):(aM(aM(aM(e=new Cw,this.b?this.b.tg():QKe),e0e),bR(this.c)),e.a)},xKe.a=-1,xKe.c=null;var VMt,KMt,YMt,qMt,XMt,JMt,ZMt,eIt,tIt=mV(d6e,"ElkPropertyToValueMapEntryImpl",1092);hIe(984,1,{},fl),mV(U6e,"JsonAdapter",984),hIe(210,60,$Ye,ew),mV(U6e,"JsonImportException",210),hIe(857,1,{},fwe),mV(U6e,"JsonImporter",857),hIe(891,1,{},iO),mV(U6e,"JsonImporter/lambda$0$Type",891),hIe(892,1,{},oO),mV(U6e,"JsonImporter/lambda$1$Type",892),hIe(900,1,{},Mm),mV(U6e,"JsonImporter/lambda$10$Type",900),hIe(902,1,{},aO),mV(U6e,"JsonImporter/lambda$11$Type",902),hIe(903,1,{},sO),mV(U6e,"JsonImporter/lambda$12$Type",903),hIe(909,1,{},cq),mV(U6e,"JsonImporter/lambda$13$Type",909),hIe(908,1,{},lq),mV(U6e,"JsonImporter/lambda$14$Type",908),hIe(904,1,{},lO),mV(U6e,"JsonImporter/lambda$15$Type",904),hIe(905,1,{},cO),mV(U6e,"JsonImporter/lambda$16$Type",905),hIe(906,1,{},uO),mV(U6e,"JsonImporter/lambda$17$Type",906),hIe(907,1,{},dO),mV(U6e,"JsonImporter/lambda$18$Type",907),hIe(912,1,{},Im),mV(U6e,"JsonImporter/lambda$19$Type",912),hIe(893,1,{},Dm),mV(U6e,"JsonImporter/lambda$2$Type",893),hIe(910,1,{},Nm),mV(U6e,"JsonImporter/lambda$20$Type",910),hIe(911,1,{},Rm),mV(U6e,"JsonImporter/lambda$21$Type",911),hIe(915,1,{},Lm),mV(U6e,"JsonImporter/lambda$22$Type",915),hIe(913,1,{},Bm),mV(U6e,"JsonImporter/lambda$23$Type",913),hIe(914,1,{},Pm),mV(U6e,"JsonImporter/lambda$24$Type",914),hIe(917,1,{},Fm),mV(U6e,"JsonImporter/lambda$25$Type",917),hIe(916,1,{},$m),mV(U6e,"JsonImporter/lambda$26$Type",916),hIe(918,1,uYe,hO),xKe.td=function(e){w7(this.b,this.a,EB(e))},mV(U6e,"JsonImporter/lambda$27$Type",918),hIe(919,1,uYe,fO),xKe.td=function(e){_7(this.b,this.a,EB(e))},mV(U6e,"JsonImporter/lambda$28$Type",919),hIe(920,1,{},pO),mV(U6e,"JsonImporter/lambda$29$Type",920),hIe(896,1,{},jm),mV(U6e,"JsonImporter/lambda$3$Type",896),hIe(921,1,{},gO),mV(U6e,"JsonImporter/lambda$30$Type",921),hIe(922,1,{},Hm),mV(U6e,"JsonImporter/lambda$31$Type",922),hIe(923,1,{},Um),mV(U6e,"JsonImporter/lambda$32$Type",923),hIe(924,1,{},Qm),mV(U6e,"JsonImporter/lambda$33$Type",924),hIe(925,1,{},zm),mV(U6e,"JsonImporter/lambda$34$Type",925),hIe(859,1,{},Wm),mV(U6e,"JsonImporter/lambda$35$Type",859),hIe(929,1,{},xH),mV(U6e,"JsonImporter/lambda$36$Type",929),hIe(926,1,uYe,Gm),xKe.td=function(e){Y4(this.a,$H(e,469))},mV(U6e,"JsonImporter/lambda$37$Type",926),hIe(927,1,uYe,EO),xKe.td=function(e){uM(this.a,this.b,$H(e,202))},mV(U6e,"JsonImporter/lambda$38$Type",927),hIe(928,1,uYe,SO),xKe.td=function(e){dM(this.a,this.b,$H(e,202))},mV(U6e,"JsonImporter/lambda$39$Type",928),hIe(894,1,{},Vm),mV(U6e,"JsonImporter/lambda$4$Type",894),hIe(930,1,uYe,Km),xKe.td=function(e){q4(this.a,$H(e,8))},mV(U6e,"JsonImporter/lambda$40$Type",930),hIe(895,1,{},Ym),mV(U6e,"JsonImporter/lambda$5$Type",895),hIe(899,1,{},qm),mV(U6e,"JsonImporter/lambda$6$Type",899),hIe(897,1,{},Xm),mV(U6e,"JsonImporter/lambda$7$Type",897),hIe(898,1,{},Jm),mV(U6e,"JsonImporter/lambda$8$Type",898),hIe(901,1,{},Zm),mV(U6e,"JsonImporter/lambda$9$Type",901),hIe(948,1,uYe,ev),xKe.td=function(e){JV(this.a,new UV(EB(e)))},mV(U6e,"JsonMetaDataConverter/lambda$0$Type",948),hIe(949,1,uYe,tv),xKe.td=function(e){PV(this.a,$H(e,237))},mV(U6e,"JsonMetaDataConverter/lambda$1$Type",949),hIe(950,1,uYe,nv),xKe.td=function(e){ZZ(this.a,$H(e,149))},mV(U6e,"JsonMetaDataConverter/lambda$2$Type",950),hIe(951,1,uYe,rv),xKe.td=function(e){FV(this.a,$H(e,175))},mV(U6e,"JsonMetaDataConverter/lambda$3$Type",951),hIe(237,22,{3:1,35:1,22:1,237:1},xO);var nIt,rIt=$ne(TJe,"GraphFeature",237,Wet,Bte,gH);hIe(13,1,{35:1,146:1},ov,tP,MM,WI),xKe.wd=function(e){return gN(this,$H(e,146))},xKe.Fb=function(e){return wX(this,e)},xKe.wg=function(){return vve(this)},xKe.tg=function(){return this.b},xKe.Hb=function(){return mAe(this.b)},xKe.Ib=function(){return this.b},mV(TJe,"Property",13),hIe(818,1,xXe,iv),xKe.ue=function(e,t){return Phe(this,$H(e,94),$H(t,94))},xKe.Fb=function(e){return this===e},xKe.ve=function(){return new Jf(this)},mV(TJe,"PropertyHolderComparator",818),hIe(695,1,KKe,sv),xKe.Nb=function(e){cG(this,e)},xKe.Pb=function(){return O7(this)},xKe.Qb=function(){ox()},xKe.Ob=function(){return!!this.a},mV(r8e,"ElkGraphUtil/AncestorIterator",695);var iIt=dQ($6e,"EList");hIe(67,52,{20:1,28:1,52:1,14:1,15:1,67:1,58:1}),xKe.Vc=function(e,t){she(this,e,t)},xKe.Fc=function(e){return c7(this,e)},xKe.Wc=function(e,t){return ale(this,e,t)},xKe.Gc=function(e){return gV(this,e)},xKe.Zh=function(){return new iL(this)},xKe.$h=function(){return new oL(this)},xKe._h=function(e){return sre(this,e)},xKe.ai=function(){return!0},xKe.bi=function(e,t){},xKe.ci=function(){},xKe.di=function(e,t){I8(this,e,t)},xKe.ei=function(e,t,n){},xKe.fi=function(e,t){},xKe.gi=function(e,t,n){},xKe.Fb=function(e){return KBe(this,e)},xKe.Hb=function(){return xse(this)},xKe.hi=function(){return!1},xKe.Kc=function(){return new ON(this)},xKe.Yc=function(){return new rL(this)},xKe.Zc=function(e){var t;if(t=this.gc(),e<0||e>t)throw jv(new ZP(e,t));return new UG(this,e)},xKe.ji=function(e,t){this.ii(e,this.Xc(t))},xKe.Mc=function(e){return see(this,e)},xKe.li=function(e,t){return t},xKe._c=function(e,t){return aAe(this,e,t)},xKe.Ib=function(){return qfe(this)},xKe.ni=function(){return!0},xKe.oi=function(e,t){return Nce(this,t)},mV($6e,"AbstractEList",67),hIe(63,67,l8e,ml,pte,yoe),xKe.Vh=function(e,t){return $Ee(this,e,t)},xKe.Wh=function(e){return dbe(this,e)},xKe.Xh=function(e,t){Tde(this,e,t)},xKe.Yh=function(e){r6(this,e)},xKe.pi=function(e){return F7(this,e)},xKe.$b=function(){i6(this)},xKe.Hc=function(e){return E_e(this,e)},xKe.Xb=function(e){return Gte(this,e)},xKe.qi=function(e){var t,n,r;++this.j,e>(n=null==this.g?0:this.g.length)&&(r=this.g,(t=n+(n/2|0)+4)<e&&(t=e),this.g=this.ri(t),null!=r&&iUe(r,0,this.g,0,this.i))},xKe.Xc=function(e){return Gye(this,e)},xKe.dc=function(){return 0==this.i},xKe.ii=function(e,t){return YOe(this,e,t)},xKe.ri=function(e){return N8(Met,jKe,1,e,5,1)},xKe.ki=function(e){return this.g[e]},xKe.$c=function(e){return Iye(this,e)},xKe.mi=function(e,t){return aee(this,e,t)},xKe.gc=function(){return this.i},xKe.Pc=function(){return D3(this)},xKe.Qc=function(e){return Kpe(this,e)},xKe.i=0;var oIt,aIt,sIt=mV($6e,"BasicEList",63),lIt=dQ($6e,"TreeIterator");hIe(694,63,c8e),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return null!=this.g||this.c?null==this.g||0!=this.i&&$H(this.g[this.i-1],47).Ob():ZJ(this)},xKe.Pb=function(){return iNe(this)},xKe.Qb=function(){if(!this.e)throw jv(new Fy("There is no valid object to remove."));this.e.Qb()},xKe.c=!1,mV($6e,"AbstractTreeIterator",694),hIe(685,694,c8e,kI),xKe.si=function(e){var t;return rN(t=$H(e,56).Wg().Kc(),279)&&$H(t,279).Nk(new pl),t},mV(r8e,"ElkGraphUtil/PropertiesSkippingTreeIterator",685),hIe(952,1,{},pl),mV(r8e,"ElkGraphUtil/PropertiesSkippingTreeIterator/1",952);var cIt,uIt=mV(r8e,"ElkReflect",null);hIe(889,1,t5e,gl),xKe.vg=function(e){return lZ(),$6($H(e,174))},mV(r8e,"ElkReflect/lambda$0$Type",889),dQ($6e,"ResourceLocator"),hIe(1051,1,{}),mV($6e,"DelegatingResourceLocator",1051),hIe(1052,1051,{}),mV("org.eclipse.emf.common","EMFPlugin",1052);var dIt,hIt=dQ(q8e,"Adapter"),fIt=dQ(q8e,"Notification");hIe(1153,1,X8e),xKe.ti=function(){return this.d},xKe.ui=function(e){},xKe.vi=function(e){this.d=e},xKe.wi=function(e){this.d==e&&(this.d=null)},xKe.d=null,mV(t6e,"AdapterImpl",1153),hIe(1995,67,J8e),xKe.Vh=function(e,t){return bpe(this,e,t)},xKe.Wh=function(e){var t,n,r;if(++this.j,e.dc())return!1;for(t=this.Vi(),r=e.Kc();r.Ob();)n=r.Pb(),this.Ii(this.oi(t,n)),++t;return!0},xKe.Xh=function(e,t){XB(this,e,t)},xKe.Yh=function(e){eK(this,e)},xKe.Gi=function(){return this.Ji()},xKe.$b=function(){qB(this,this.Vi(),this.Wi())},xKe.Hc=function(e){return this.Li(e)},xKe.Ic=function(e){return this.Mi(e)},xKe.Hi=function(e,t){this.Si().jm()},xKe.Ii=function(e){this.Si().jm()},xKe.Ji=function(){return this.Si()},xKe.Ki=function(){this.Si().jm()},xKe.Li=function(e){return this.Si().jm()},xKe.Mi=function(e){return this.Si().jm()},xKe.Ni=function(e){return this.Si().jm()},xKe.Oi=function(e){return this.Si().jm()},xKe.Pi=function(){return this.Si().jm()},xKe.Qi=function(e){return this.Si().jm()},xKe.Ri=function(){return this.Si().jm()},xKe.Ti=function(e){return this.Si().jm()},xKe.Ui=function(e,t){return this.Si().jm()},xKe.Vi=function(){return this.Si().jm()},xKe.Wi=function(){return this.Si().jm()},xKe.Xi=function(e){return this.Si().jm()},xKe.Yi=function(){return this.Si().jm()},xKe.Fb=function(e){return this.Ni(e)},xKe.Xb=function(e){return this.li(e,this.Oi(e))},xKe.Hb=function(){return this.Pi()},xKe.Xc=function(e){return this.Qi(e)},xKe.dc=function(){return this.Ri()},xKe.ii=function(e,t){return OSe(this,e,t)},xKe.ki=function(e){return this.Oi(e)},xKe.$c=function(e){return hQ(this,e)},xKe.Mc=function(e){var t;return(t=this.Xc(e))>=0&&(this.$c(t),!0)},xKe.mi=function(e,t){return this.Ui(e,this.oi(e,t))},xKe.gc=function(){return this.Vi()},xKe.Pc=function(){return this.Wi()},xKe.Qc=function(e){return this.Xi(e)},xKe.Ib=function(){return this.Yi()},mV($6e,"DelegatingEList",1995),hIe(1996,1995,J8e),xKe.Vh=function(e,t){return oje(this,e,t)},xKe.Wh=function(e){return this.Vh(this.Vi(),e)},xKe.Xh=function(e,t){eIe(this,e,t)},xKe.Yh=function(e){kMe(this,e)},xKe.ai=function(){return!this.bj()},xKe.$b=function(){mQe(this)},xKe.Zi=function(e,t,n,r,i){return new DX(this,e,t,n,r,i)},xKe.$i=function(e){dae(this.Ai(),e)},xKe._i=function(){return null},xKe.aj=function(){return-1},xKe.Ai=function(){return null},xKe.bj=function(){return!1},xKe.cj=function(e,t){return t},xKe.dj=function(e,t){return t},xKe.ej=function(){return!1},xKe.fj=function(){return!this.Ri()},xKe.ii=function(e,t){var n,r;return this.ej()?(r=this.fj(),n=OSe(this,e,t),this.$i(this.Zi(7,the(t),n,e,r)),n):OSe(this,e,t)},xKe.$c=function(e){var t,n,r,i;return this.ej()?(n=null,r=this.fj(),t=this.Zi(4,i=hQ(this,e),null,e,r),this.bj()&&i?(n=this.dj(i,n))?(n.Ei(t),n.Fi()):this.$i(t):n?(n.Ei(t),n.Fi()):this.$i(t),i):(i=hQ(this,e),this.bj()&&i&&(n=this.dj(i,null))&&n.Fi(),i)},xKe.mi=function(e,t){return aje(this,e,t)},mV(t6e,"DelegatingNotifyingListImpl",1996),hIe(143,1,Z8e),xKe.Ei=function(e){return Bxe(this,e)},xKe.Fi=function(){M9(this)},xKe.xi=function(){return this.d},xKe._i=function(){return null},xKe.gj=function(){return null},xKe.yi=function(e){return-1},xKe.zi=function(){return LLe(this)},xKe.Ai=function(){return null},xKe.Bi=function(){return BLe(this)},xKe.Ci=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},xKe.hj=function(){return!1},xKe.Di=function(e){var t,n,r,i,o,a,s,l;switch(this.d){case 1:case 2:switch(e.xi()){case 1:case 2:if(UO(e.Ai())===UO(this.Ai())&&this.yi(null)==e.yi(null))return this.g=e.zi(),1==e.xi()&&(this.d=1),!0}case 4:if(4===e.xi()&&UO(e.Ai())===UO(this.Ai())&&this.yi(null)==e.yi(null))return a=ZQe(this),o=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,r=e.Ci(),this.d=6,l=new pte(2),o<=r?(c7(l,this.n),c7(l,e.Bi()),this.g=Sse(Uw(kRt,1),lqe,25,15,[this.o=o,r+1])):(c7(l,e.Bi()),c7(l,this.n),this.g=Sse(Uw(kRt,1),lqe,25,15,[this.o=r,o])),this.n=l,a||(this.o=-2-this.o-1),!0;break;case 6:if(4===e.xi()&&UO(e.Ai())===UO(this.Ai())&&this.yi(null)==e.yi(null)){for(a=ZQe(this),r=e.Ci(),s=$H(this.g,48),n=N8(kRt,lqe,25,s.length+1,15,1),t=0;t<s.length&&(i=s[t])<=r;)n[t++]=i,++r;for($H(this.n,15).Vc(t,e.Bi()),n[t]=r;++t<n.length;)n[t]=s[t-1];return this.g=n,a||(this.o=-2-n[0]),!0}}return!1},xKe.Ib=function(){var e,t,n;switch((n=new cR(J_(this.gm)+"@"+(Jle(this)>>>0).toString(16))).a+=" (eventType: ",this.d){case 1:n.a+="SET";break;case 2:n.a+="UNSET";break;case 3:n.a+="ADD";break;case 5:n.a+="ADD_MANY";break;case 4:n.a+="REMOVE";break;case 6:n.a+="REMOVE_MANY";break;case 7:n.a+="MOVE";break;case 8:n.a+="REMOVING_ADAPTER";break;case 9:n.a+="RESOLVE";break;default:vx(n,this.d)}if(uFe(this)&&(n.a+=", touch: true"),n.a+=", position: ",vx(n,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),n.a+=", notifier: ",nM(n,this.Ai()),n.a+=", feature: ",nM(n,this._i()),n.a+=", oldValue: ",nM(n,BLe(this)),n.a+=", newValue: ",6==this.d&&rN(this.g,48)){for(t=$H(this.g,48),n.a+="[",e=0;e<t.length;)n.a+=t[e],++e<t.length&&(n.a+=FKe);n.a+="]"}else nM(n,LLe(this));return n.a+=", isTouch: ",Ax(n,uFe(this)),n.a+=", wasSet: ",Ax(n,ZQe(this)),n.a+=")",n.a},xKe.d=0,xKe.e=0,xKe.f=0,xKe.j=0,xKe.k=0,xKe.o=0,xKe.p=0,mV(t6e,"NotificationImpl",143),hIe(1167,143,Z8e,DX),xKe._i=function(){return this.a._i()},xKe.yi=function(e){return this.a.aj()},xKe.Ai=function(){return this.a.Ai()},mV(t6e,"DelegatingNotifyingListImpl/1",1167),hIe(242,63,l8e,vl,F_),xKe.Fc=function(e){return xpe(this,$H(e,366))},xKe.Ei=function(e){return xpe(this,e)},xKe.Fi=function(){var e,t,n;for(e=0;e<this.i;++e)null!=(n=(t=$H(this.g[e],366)).Ai())&&-1!=t.xi()&&$H(n,92).Ng(t)},xKe.ri=function(e){return N8(fIt,jKe,366,e,0,1)},mV(t6e,"NotificationChainImpl",242),hIe(1378,90,e6e),xKe.Kg=function(){return this.e},xKe.Mg=function(){return!!(1&this.f)},xKe.f=1,mV(t6e,"NotifierImpl",1378),hIe(1993,63,l8e),xKe.Vh=function(e,t){return Ije(this,e,t)},xKe.Wh=function(e){return this.Vh(this.i,e)},xKe.Xh=function(e,t){HMe(this,e,t)},xKe.Yh=function(e){ZMe(this,e)},xKe.ai=function(){return!this.bj()},xKe.$b=function(){sQe(this)},xKe.Zi=function(e,t,n,r,i){return new NX(this,e,t,n,r,i)},xKe.$i=function(e){dae(this.Ai(),e)},xKe._i=function(){return null},xKe.aj=function(){return-1},xKe.Ai=function(){return null},xKe.bj=function(){return!1},xKe.ij=function(){return!1},xKe.cj=function(e,t){return t},xKe.dj=function(e,t){return t},xKe.ej=function(){return!1},xKe.fj=function(){return 0!=this.i},xKe.ii=function(e,t){return The(this,e,t)},xKe.$c=function(e){return cBe(this,e)},xKe.mi=function(e,t){return cHe(this,e,t)},xKe.jj=function(e,t){return t},xKe.kj=function(e,t){return t},xKe.lj=function(e,t,n){return n},mV(t6e,"NotifyingListImpl",1993),hIe(1166,143,Z8e,NX),xKe._i=function(){return this.a._i()},xKe.yi=function(e){return this.a.aj()},xKe.Ai=function(){return this.a.Ai()},mV(t6e,"NotifyingListImpl/1",1166),hIe(953,63,l8e,iP),xKe.Hc=function(e){return this.i>10?(this.b&&this.c.j==this.a||(this.b=new MQ(this),this.a=this.j),FE(this.b,e)):E_e(this,e)},xKe.ni=function(){return!0},xKe.a=0,mV($6e,"AbstractEList/1",953),hIe(295,73,Dqe,ZP),mV($6e,"AbstractEList/BasicIndexOutOfBoundsException",295),hIe(40,1,KKe,ON),xKe.Nb=function(e){cG(this,e)},xKe.mj=function(){if(this.i.j!=this.f)throw jv(new mA)},xKe.nj=function(){return bve(this)},xKe.Ob=function(){return this.e!=this.i.gc()},xKe.Pb=function(){return this.nj()},xKe.Qb=function(){K_e(this)},xKe.e=0,xKe.f=0,xKe.g=-1,mV($6e,"AbstractEList/EIterator",40),hIe(278,40,rYe,rL,UG),xKe.Qb=function(){K_e(this)},xKe.Rb=function(e){age(this,e)},xKe.oj=function(){var e;try{return e=this.d.Xb(--this.e),this.mj(),this.g=this.e,e}catch(e){throw rN(e=use(e),73)?(this.mj(),jv(new AA)):jv(e)}},xKe.pj=function(e){bbe(this,e)},xKe.Sb=function(){return 0!=this.e},xKe.Tb=function(){return this.e},xKe.Ub=function(){return this.oj()},xKe.Vb=function(){return this.e-1},xKe.Wb=function(e){this.pj(e)},mV($6e,"AbstractEList/EListIterator",278),hIe(341,40,KKe,iL),xKe.nj=function(){return yve(this)},xKe.Qb=function(){throw jv(new gA)},mV($6e,"AbstractEList/NonResolvingEIterator",341),hIe(385,278,rYe,oL,LF),xKe.Rb=function(e){throw jv(new gA)},xKe.nj=function(){var e;try{return e=this.c.ki(this.e),this.mj(),this.g=this.e++,e}catch(e){throw rN(e=use(e),73)?(this.mj(),jv(new AA)):jv(e)}},xKe.oj=function(){var e;try{return e=this.c.ki(--this.e),this.mj(),this.g=this.e,e}catch(e){throw rN(e=use(e),73)?(this.mj(),jv(new AA)):jv(e)}},xKe.Qb=function(){throw jv(new gA)},xKe.Wb=function(e){throw jv(new gA)},mV($6e,"AbstractEList/NonResolvingEListIterator",385),hIe(1982,67,n7e),xKe.Vh=function(e,t){var n,r,i,o,a,s,l,c,u;if(0!=(r=t.gc())){for(n=Sce(this,(c=null==(l=$H(Aae(this.a,4),126))?0:l.length)+r),(u=c-e)>0&&iUe(l,e,n,e+r,u),s=t.Kc(),o=0;o<r;++o)qI(n,e+o,Nce(this,a=s.Pb()));for(Fme(this,n),i=0;i<r;++i)a=n[e],this.bi(e,a),++e;return!0}return++this.j,!1},xKe.Wh=function(e){var t,n,r,i,o,a,s,l,c;if(0!=(r=e.gc())){for(t=Sce(this,c=(l=null==(n=$H(Aae(this.a,4),126))?0:n.length)+r),s=e.Kc(),o=l;o<c;++o)qI(t,o,Nce(this,a=s.Pb()));for(Fme(this,t),i=l;i<c;++i)a=t[i],this.bi(i,a);return!0}return++this.j,!1},xKe.Xh=function(e,t){var n,r,i,o;n=Sce(this,(i=null==(r=$H(Aae(this.a,4),126))?0:r.length)+1),o=Nce(this,t),e!=i&&iUe(r,e,n,e+1,i-e),MV(n,e,o),Fme(this,n),this.bi(e,t)},xKe.Yh=function(e){var t,n,r;qI(t=Sce(this,(r=null==(n=$H(Aae(this.a,4),126))?0:n.length)+1),r,Nce(this,e)),Fme(this,t),this.bi(r,e)},xKe.Zh=function(){return new E5(this)},xKe.$h=function(){return new YW(this)},xKe._h=function(e){var t,n;if(n=null==(t=$H(Aae(this.a,4),126))?0:t.length,e<0||e>n)throw jv(new ZP(e,n));return new $K(this,e)},xKe.$b=function(){var e,t;++this.j,t=null==(e=$H(Aae(this.a,4),126))?0:e.length,Fme(this,null),I8(this,t,e)},xKe.Hc=function(e){var t,n,r,i;if(null!=(t=$H(Aae(this.a,4),126)))if(null!=e){for(r=0,i=(n=t).length;r<i;++r)if(Dde(e,n[r]))return!0}else for(r=0,i=(n=t).length;r<i;++r)if(UO(n[r])===UO(e))return!0;return!1},xKe.Xb=function(e){var t,n;if(e>=(n=null==(t=$H(Aae(this.a,4),126))?0:t.length))throw jv(new ZP(e,n));return t[e]},xKe.Xc=function(e){var t,n,r;if(null!=(t=$H(Aae(this.a,4),126)))if(null!=e){for(n=0,r=t.length;n<r;++n)if(Dde(e,t[n]))return n}else for(n=0,r=t.length;n<r;++n)if(UO(t[n])===UO(e))return n;return-1},xKe.dc=function(){return null==$H(Aae(this.a,4),126)},xKe.Kc=function(){return new x5(this)},xKe.Yc=function(){return new KW(this)},xKe.Zc=function(e){var t,n;if(n=null==(t=$H(Aae(this.a,4),126))?0:t.length,e<0||e>n)throw jv(new ZP(e,n));return new FK(this,e)},xKe.ii=function(e,t){var n,r,i;if(e>=(i=null==(n=Mge(this))?0:n.length))throw jv(new Oy(o8e+e+a8e+i));if(t>=i)throw jv(new Oy(s8e+t+a8e+i));return r=n[t],e!=t&&(e<t?iUe(n,e,n,e+1,t-e):iUe(n,t+1,n,t,e-t),MV(n,e,r),Fme(this,n)),r},xKe.ki=function(e){return $H(Aae(this.a,4),126)[e]},xKe.$c=function(e){return wMe(this,e)},xKe.mi=function(e,t){var n,r;return r=(n=Mge(this))[e],qI(n,e,Nce(this,t)),Fme(this,n),r},xKe.gc=function(){var e;return null==(e=$H(Aae(this.a,4),126))?0:e.length},xKe.Pc=function(){var e,t,n;return n=null==(e=$H(Aae(this.a,4),126))?0:e.length,t=N8(hIt,t7e,415,n,0,1),n>0&&iUe(e,0,t,0,n),t},xKe.Qc=function(e){var t,n;return(n=null==(t=$H(Aae(this.a,4),126))?0:t.length)>0&&(e.length<n&&(e=Rne(Zle(e).c,n)),iUe(t,0,e,0,n)),e.length>n&&MV(e,n,null),e},mV($6e,"ArrayDelegatingEList",1982),hIe(1038,40,KKe,x5),xKe.mj=function(){if(this.b.j!=this.f||UO($H(Aae(this.b.a,4),126))!==UO(this.a))throw jv(new mA)},xKe.Qb=function(){K_e(this),this.a=$H(Aae(this.b.a,4),126)},mV($6e,"ArrayDelegatingEList/EIterator",1038),hIe(706,278,rYe,KW,FK),xKe.mj=function(){if(this.b.j!=this.f||UO($H(Aae(this.b.a,4),126))!==UO(this.a))throw jv(new mA)},xKe.pj=function(e){bbe(this,e),this.a=$H(Aae(this.b.a,4),126)},xKe.Qb=function(){K_e(this),this.a=$H(Aae(this.b.a,4),126)},mV($6e,"ArrayDelegatingEList/EListIterator",706),hIe(1039,341,KKe,E5),xKe.mj=function(){if(this.b.j!=this.f||UO($H(Aae(this.b.a,4),126))!==UO(this.a))throw jv(new mA)},mV($6e,"ArrayDelegatingEList/NonResolvingEIterator",1039),hIe(707,385,rYe,YW,$K),xKe.mj=function(){if(this.b.j!=this.f||UO($H(Aae(this.b.a,4),126))!==UO(this.a))throw jv(new mA)},mV($6e,"ArrayDelegatingEList/NonResolvingEListIterator",707),hIe(606,295,Dqe,IM),mV($6e,"BasicEList/BasicIndexOutOfBoundsException",606),hIe(696,63,l8e,RO),xKe.Vc=function(e,t){throw jv(new gA)},xKe.Fc=function(e){throw jv(new gA)},xKe.Wc=function(e,t){throw jv(new gA)},xKe.Gc=function(e){throw jv(new gA)},xKe.$b=function(){throw jv(new gA)},xKe.qi=function(e){throw jv(new gA)},xKe.Kc=function(){return this.Zh()},xKe.Yc=function(){return this.$h()},xKe.Zc=function(e){return this._h(e)},xKe.ii=function(e,t){throw jv(new gA)},xKe.ji=function(e,t){throw jv(new gA)},xKe.$c=function(e){throw jv(new gA)},xKe.Mc=function(e){throw jv(new gA)},xKe._c=function(e,t){throw jv(new gA)},mV($6e,"BasicEList/UnmodifiableEList",696),hIe(705,1,{3:1,20:1,14:1,15:1,58:1,589:1}),xKe.Vc=function(e,t){KD(this,e,$H(t,42))},xKe.Fc=function(e){return iB(this,$H(e,42))},xKe.Jc=function(e){e5(this,e)},xKe.Xb=function(e){return $H(Gte(this.c,e),133)},xKe.ii=function(e,t){return $H(this.c.ii(e,t),42)},xKe.ji=function(e,t){YD(this,e,$H(t,42))},xKe.Lc=function(){return new LQ(null,new h0(this,16))},xKe.$c=function(e){return $H(this.c.$c(e),42)},xKe._c=function(e,t){return oV(this,e,$H(t,42))},xKe.ad=function(e){Pie(this,e)},xKe.Nc=function(){return new h0(this,16)},xKe.Oc=function(){return new LQ(null,new h0(this,16))},xKe.Wc=function(e,t){return this.c.Wc(e,t)},xKe.Gc=function(e){return this.c.Gc(e)},xKe.$b=function(){this.c.$b()},xKe.Hc=function(e){return this.c.Hc(e)},xKe.Ic=function(e){return ase(this.c,e)},xKe.qj=function(){var e,t;if(null==this.d){for(this.d=N8(sIt,r7e,63,2*this.f+1,0,1),t=this.e,this.f=0,e=this.c.Kc();e.e!=e.i.gc();)TAe(this,$H(e.nj(),133));this.e=t}},xKe.Fb=function(e){return DF(this,e)},xKe.Hb=function(){return xse(this.c)},xKe.Xc=function(e){return this.c.Xc(e)},xKe.rj=function(){this.c=new lv(this)},xKe.dc=function(){return 0==this.f},xKe.Kc=function(){return this.c.Kc()},xKe.Yc=function(){return this.c.Yc()},xKe.Zc=function(e){return this.c.Zc(e)},xKe.sj=function(){return O8(this)},xKe.tj=function(e,t,n){return new EH(e,t,n)},xKe.uj=function(){return new Al},xKe.Mc=function(e){return lre(this,e)},xKe.gc=function(){return this.f},xKe.bd=function(e,t){return new s0(this.c,e,t)},xKe.Pc=function(){return this.c.Pc()},xKe.Qc=function(e){return this.c.Qc(e)},xKe.Ib=function(){return qfe(this.c)},xKe.e=0,xKe.f=0,mV($6e,"BasicEMap",705),hIe(1033,63,l8e,lv),xKe.bi=function(e,t){OA(this,$H(t,133))},xKe.ei=function(e,t,n){var r;++(r=this,$H(t,133),r).a.e},xKe.fi=function(e,t){MA(this,$H(t,133))},xKe.gi=function(e,t,n){VR(this,$H(t,133),$H(n,133))},xKe.di=function(e,t){iae(this.a)},mV($6e,"BasicEMap/1",1033),hIe(1034,63,l8e,Al),xKe.ri=function(e){return N8(gIt,i7e,612,e,0,1)},mV($6e,"BasicEMap/2",1034),hIe(1035,JKe,ZKe,cv),xKe.$b=function(){this.a.c.$b()},xKe.Hc=function(e){return nge(this.a,e)},xKe.Kc=function(){return 0==this.a.f?(fB(),pIt.a):new $_(this.a)},xKe.Mc=function(e){var t;return t=this.a.f,Gge(this.a,e),this.a.f!=t},xKe.gc=function(){return this.a.f},mV($6e,"BasicEMap/3",1035),hIe(1036,28,XKe,uv),xKe.$b=function(){this.a.c.$b()},xKe.Hc=function(e){return YBe(this.a,e)},xKe.Kc=function(){return 0==this.a.f?(fB(),pIt.a):new j_(this.a)},xKe.gc=function(){return this.a.f},mV($6e,"BasicEMap/4",1036),hIe(1037,JKe,ZKe,dv),xKe.$b=function(){this.a.c.$b()},xKe.Hc=function(e){var t,n,r,i,o,a,s,l,c;if(this.a.f>0&&rN(e,42)&&(this.a.qj(),i=null==(s=(l=$H(e,42)).cd())?0:Jle(s),o=eP(this.a,i),t=this.a.d[o]))for(n=$H(t.g,367),c=t.i,a=0;a<c;++a)if((r=n[a]).Sh()==i&&r.Fb(l))return!0;return!1},xKe.Kc=function(){return 0==this.a.f?(fB(),pIt.a):new gq(this.a)},xKe.Mc=function(e){return TIe(this,e)},xKe.gc=function(){return this.a.f},mV($6e,"BasicEMap/5",1037),hIe(613,1,KKe,gq),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return-1!=this.b},xKe.Pb=function(){var e;if(this.f.e!=this.c)throw jv(new mA);if(-1==this.b)throw jv(new AA);return this.d=this.a,this.e=this.b,o_e(this),e=$H(this.f.d[this.d].g[this.e],133),this.vj(e)},xKe.Qb=function(){if(this.f.e!=this.c)throw jv(new mA);if(-1==this.e)throw jv(new fA);this.f.c.Mc(Gte(this.f.d[this.d],this.e)),this.c=this.f.e,this.e=-1,this.a==this.d&&-1!=this.b&&--this.b},xKe.vj=function(e){return e},xKe.a=0,xKe.b=-1,xKe.c=0,xKe.d=0,xKe.e=0,mV($6e,"BasicEMap/BasicEMapIterator",613),hIe(1031,613,KKe,$_),xKe.vj=function(e){return e.cd()},mV($6e,"BasicEMap/BasicEMapKeyIterator",1031),hIe(1032,613,KKe,j_),xKe.vj=function(e){return e.dd()},mV($6e,"BasicEMap/BasicEMapValueIterator",1032),hIe(1030,1,qKe,hv),xKe.wc=function(e){Joe(this,e)},xKe.yc=function(e,t,n){return Xhe(this,e,t,n)},xKe.$b=function(){this.a.c.$b()},xKe._b=function(e){return $O(this,e)},xKe.uc=function(e){return YBe(this.a,e)},xKe.vc=function(){return T8(this.a)},xKe.Fb=function(e){return DF(this.a,e)},xKe.xc=function(e){return rge(this.a,e)},xKe.Hb=function(){return xse(this.a.c)},xKe.dc=function(){return 0==this.a.f},xKe.ec=function(){return k8(this.a)},xKe.zc=function(e,t){return m_e(this.a,e,t)},xKe.Bc=function(e){return Gge(this.a,e)},xKe.gc=function(){return this.a.f},xKe.Ib=function(){return qfe(this.a.c)},xKe.Cc=function(){return C8(this.a)},mV($6e,"BasicEMap/DelegatingMap",1030),hIe(612,1,{42:1,133:1,612:1},EH),xKe.Fb=function(e){var t;return!!rN(e,42)&&(t=$H(e,42),(null!=this.b?Dde(this.b,t.cd()):UO(this.b)===UO(t.cd()))&&(null!=this.c?Dde(this.c,t.dd()):UO(this.c)===UO(t.dd())))},xKe.Sh=function(){return this.a},xKe.cd=function(){return this.b},xKe.dd=function(){return this.c},xKe.Hb=function(){return this.a^(null==this.c?0:Jle(this.c))},xKe.Th=function(e){this.a=e},xKe.Uh=function(e){throw jv(new sA)},xKe.ed=function(e){var t;return t=this.c,this.c=e,t},xKe.Ib=function(){return this.b+"->"+this.c},xKe.a=0;var pIt,gIt=mV($6e,"BasicEMap/EntryImpl",612);hIe(536,1,{},cl),mV($6e,"BasicEMap/View",536),hIe(768,1,{}),xKe.Fb=function(e){return DIe((Eq(),lnt),e)},xKe.Hb=function(){return Fle((Eq(),lnt))},xKe.Ib=function(){return ISe((Eq(),lnt))},mV($6e,"ECollections/BasicEmptyUnmodifiableEList",768),hIe(1312,1,rYe,bl),xKe.Nb=function(e){cG(this,e)},xKe.Rb=function(e){throw jv(new gA)},xKe.Ob=function(){return!1},xKe.Sb=function(){return!1},xKe.Pb=function(){throw jv(new AA)},xKe.Tb=function(){return 0},xKe.Ub=function(){throw jv(new AA)},xKe.Vb=function(){return-1},xKe.Qb=function(){throw jv(new gA)},xKe.Wb=function(e){throw jv(new gA)},mV($6e,"ECollections/BasicEmptyUnmodifiableEList/1",1312),hIe(1310,768,{20:1,14:1,15:1,58:1},_b),xKe.Vc=function(e,t){Dx()},xKe.Fc=function(e){return Nx()},xKe.Wc=function(e,t){return Rx()},xKe.Gc=function(e){return Lx()},xKe.$b=function(){Bx()},xKe.Hc=function(e){return!1},xKe.Ic=function(e){return!1},xKe.Jc=function(e){e5(this,e)},xKe.Xb=function(e){return AM((Eq(),e)),null},xKe.Xc=function(e){return-1},xKe.dc=function(){return!0},xKe.Kc=function(){return this.a},xKe.Yc=function(){return this.a},xKe.Zc=function(e){return this.a},xKe.ii=function(e,t){return Px()},xKe.ji=function(e,t){Fx()},xKe.Lc=function(){return new LQ(null,new h0(this,16))},xKe.$c=function(e){return $x()},xKe.Mc=function(e){return jx()},xKe._c=function(e,t){return Hx()},xKe.gc=function(){return 0},xKe.ad=function(e){Pie(this,e)},xKe.Nc=function(){return new h0(this,16)},xKe.Oc=function(){return new LQ(null,new h0(this,16))},xKe.bd=function(e,t){return Eq(),new s0(lnt,e,t)},xKe.Pc=function(){return rW((Eq(),lnt))},xKe.Qc=function(e){return Eq(),wbe(lnt,e)},mV($6e,"ECollections/EmptyUnmodifiableEList",1310),hIe(1311,768,{20:1,14:1,15:1,58:1,589:1},xb),xKe.Vc=function(e,t){Dx()},xKe.Fc=function(e){return Nx()},xKe.Wc=function(e,t){return Rx()},xKe.Gc=function(e){return Lx()},xKe.$b=function(){Bx()},xKe.Hc=function(e){return!1},xKe.Ic=function(e){return!1},xKe.Jc=function(e){e5(this,e)},xKe.Xb=function(e){return AM((Eq(),e)),null},xKe.Xc=function(e){return-1},xKe.dc=function(){return!0},xKe.Kc=function(){return this.a},xKe.Yc=function(){return this.a},xKe.Zc=function(e){return this.a},xKe.ii=function(e,t){return Px()},xKe.ji=function(e,t){Fx()},xKe.Lc=function(){return new LQ(null,new h0(this,16))},xKe.$c=function(e){return $x()},xKe.Mc=function(e){return jx()},xKe._c=function(e,t){return Hx()},xKe.gc=function(){return 0},xKe.ad=function(e){Pie(this,e)},xKe.Nc=function(){return new h0(this,16)},xKe.Oc=function(){return new LQ(null,new h0(this,16))},xKe.bd=function(e,t){return Eq(),new s0(lnt,e,t)},xKe.Pc=function(){return rW((Eq(),lnt))},xKe.Qc=function(e){return Eq(),wbe(lnt,e)},xKe.sj=function(){return Eq(),Eq(),cnt},mV($6e,"ECollections/EmptyUnmodifiableEMap",1311);var mIt,vIt=dQ($6e,"Enumerator");hIe(281,1,{281:1},nPe),xKe.Fb=function(e){var t;return this===e||!!rN(e,281)&&(t=$H(e,281),this.f==t.f&&mz(this.i,t.i)&&gz(this.a,256&this.f?256&t.f?t.a:null:256&t.f?null:t.a)&&gz(this.d,t.d)&&gz(this.g,t.g)&&gz(this.e,t.e)&&Eve(this,t))},xKe.Hb=function(){return this.f},xKe.Ib=function(){return x$e(this)},xKe.f=0;var AIt,bIt,yIt,wIt=0,_It=0,xIt=0,EIt=0,SIt=0,CIt=0,TIt=0,kIt=0,OIt=0,MIt=0,IIt=0,DIt=0,NIt=0;mV($6e,"URI",281),hIe(1091,43,Zqe,Eb),xKe.zc=function(e,t){return $H(vZ(this,EB(e),$H(t,281)),281)},mV($6e,"URI/URICache",1091),hIe(497,63,l8e,hl,nz),xKe.hi=function(){return!0},mV($6e,"UniqueEList",497),hIe(581,60,$Ye,I9),mV($6e,"WrappedException",581);var RIt,LIt=dQ(H5e,s7e),BIt=dQ(H5e,l7e),PIt=dQ(H5e,c7e),FIt=dQ(H5e,u7e),$It=dQ(H5e,d7e),jIt=dQ(H5e,"EClass"),HIt=dQ(H5e,"EDataType");hIe(1183,43,Zqe,Sb),xKe.xc=function(e){return WO(e)?EJ(this,e):HO(OX(this.f,e))},mV(H5e,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1183);var UIt,QIt,zIt=dQ(H5e,"EEnum"),WIt=dQ(H5e,h7e),GIt=dQ(H5e,f7e),VIt=dQ(H5e,p7e),KIt=dQ(H5e,g7e),YIt=dQ(H5e,m7e);hIe(1029,1,{},dl),xKe.Ib=function(){return"NIL"},mV(H5e,"EStructuralFeature/Internal/DynamicValueHolder/1",1029),hIe(1028,43,Zqe,Cb),xKe.xc=function(e){return WO(e)?EJ(this,e):HO(OX(this.f,e))},mV(H5e,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1028);var qIt,XIt,JIt,ZIt,eDt,tDt,nDt,rDt,iDt,oDt,aDt,sDt,lDt,cDt,uDt,dDt,hDt,fDt,pDt,gDt,mDt,vDt,ADt,bDt,yDt,wDt,_Dt,xDt,EDt,SDt,CDt,TDt=dQ(H5e,v7e),kDt=dQ(H5e,"EValidator/PatternMatcher"),ODt=dQ(A7e,"FeatureMap/Entry");hIe(535,1,{72:1},CO),xKe.ak=function(){return this.a},xKe.dd=function(){return this.b},mV(u6e,"BasicEObjectImpl/1",535),hIe(1027,1,b7e,TO),xKe.Wj=function(e){return V5(this.a,this.b,e)},xKe.fj=function(){return XJ(this.a,this.b)},xKe.Wb=function(e){DJ(this.a,this.b,e)},xKe.Xj=function(){SK(this.a,this.b)},mV(u6e,"BasicEObjectImpl/4",1027),hIe(1983,1,{108:1}),xKe.bk=function(e){this.e=0==e?_Dt:N8(Met,jKe,1,e,5,1)},xKe.Ch=function(e){return this.e[e]},xKe.Dh=function(e,t){this.e[e]=t},xKe.Eh=function(e){this.e[e]=null},xKe.ck=function(){return this.c},xKe.dk=function(){throw jv(new gA)},xKe.ek=function(){throw jv(new gA)},xKe.fk=function(){return this.d},xKe.gk=function(){return null!=this.e},xKe.hk=function(e){this.c=e},xKe.ik=function(e){throw jv(new gA)},xKe.jk=function(e){throw jv(new gA)},xKe.kk=function(e){this.d=e},mV(u6e,"BasicEObjectImpl/EPropertiesHolderBaseImpl",1983),hIe(185,1983,{108:1},Ld),xKe.dk=function(){return this.a},xKe.ek=function(){return this.b},xKe.ik=function(e){this.a=e},xKe.jk=function(e){this.b=e},mV(u6e,"BasicEObjectImpl/EPropertiesHolderImpl",185),hIe(506,97,c6e,yl),xKe.Kg=function(){return this.f},xKe.Pg=function(){return this.k},xKe.Rg=function(e,t){this.g=e,this.i=t},xKe.Tg=function(){return 2&this.j?this.ph().ck():this.zh()},xKe.Vg=function(){return this.i},xKe.Mg=function(){return!!(1&this.j)},xKe.eh=function(){return this.g},xKe.kh=function(){return!!(4&this.j)},xKe.ph=function(){return!this.k&&(this.k=new Ld),this.k},xKe.th=function(e){this.ph().hk(e),e?this.j|=2:this.j&=-3},xKe.vh=function(e){this.ph().jk(e),e?this.j|=4:this.j&=-5},xKe.zh=function(){return(KV(),JIt).S},xKe.i=0,xKe.j=1,mV(u6e,"EObjectImpl",506),hIe(780,506,{105:1,92:1,90:1,56:1,108:1,49:1,97:1},yU),xKe.Ch=function(e){return this.e[e]},xKe.Dh=function(e,t){this.e[e]=t},xKe.Eh=function(e){this.e[e]=null},xKe.Tg=function(){return this.d},xKe.Yg=function(e){return Ope(this.d,e)},xKe.$g=function(){return this.d},xKe.dh=function(){return null!=this.e},xKe.ph=function(){return!this.k&&(this.k=new wl),this.k},xKe.th=function(e){this.d=e},xKe.yh=function(){var e;return null==this.e&&(e=dV(this.d),this.e=0==e?xDt:N8(Met,jKe,1,e,5,1)),this},xKe.Ah=function(){return 0},mV(u6e,"DynamicEObjectImpl",780),hIe(1376,780,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1},cQ),xKe.Fb=function(e){return this===e},xKe.Hb=function(){return SR(this)},xKe.th=function(e){this.d=e,this.b=DRe(e,"key"),this.c=DRe(e,w6e)},xKe.Sh=function(){var e;return-1==this.a&&(e=q9(this,this.b),this.a=null==e?0:Jle(e)),this.a},xKe.cd=function(){return q9(this,this.b)},xKe.dd=function(){return q9(this,this.c)},xKe.Th=function(e){this.a=e},xKe.Uh=function(e){DJ(this,this.b,e)},xKe.ed=function(e){var t;return t=q9(this,this.c),DJ(this,this.c,e),t},xKe.a=0,mV(u6e,"DynamicEObjectImpl/BasicEMapEntry",1376),hIe(1377,1,{108:1},wl),xKe.bk=function(e){throw jv(new gA)},xKe.Ch=function(e){throw jv(new gA)},xKe.Dh=function(e,t){throw jv(new gA)},xKe.Eh=function(e){throw jv(new gA)},xKe.ck=function(){throw jv(new gA)},xKe.dk=function(){return this.a},xKe.ek=function(){return this.b},xKe.fk=function(){return this.c},xKe.gk=function(){throw jv(new gA)},xKe.hk=function(e){throw jv(new gA)},xKe.ik=function(e){this.a=e},xKe.jk=function(e){this.b=e},xKe.kk=function(e){this.c=e},mV(u6e,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1377),hIe(510,150,{105:1,92:1,90:1,590:1,147:1,56:1,108:1,49:1,97:1,510:1,150:1,114:1,115:1},_l),xKe.Qg=function(e){return dwe(this,e)},xKe._g=function(e,t,n){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),this.Ab;case 1:return this.d;case 2:return n?(!this.b&&(this.b=new qL((pKe(),ADt),zDt,this)),this.b):(!this.b&&(this.b=new qL((pKe(),ADt),zDt,this)),O8(this.b));case 3:return dZ(this);case 4:return!this.a&&(this.a=new MN(MMt,this,4)),this.a;case 5:return!this.c&&(this.c=new LN(MMt,this,5)),this.c}return z7(this,e-dV((pKe(),ZIt)),tte($H(Aae(this,16),26)||ZIt,e),t,n)},xKe.hh=function(e,t,n){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Ype(this.Ab,e,n);case 3:return this.Cb&&(n=(r=this.Db>>16)>=0?dwe(this,n):this.Cb.ih(this,-1-r,null,n)),Kz(this,$H(e,147),n)}return $H(tte($H(Aae(this,16),26)||(pKe(),ZIt),t),66).Nj().Qj(this,cme(this),t-dV((pKe(),ZIt)),e,n)},xKe.jh=function(e,t,n){switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Pve(this.Ab,e,n);case 2:return!this.b&&(this.b=new qL((pKe(),ADt),zDt,this)),$F(this.b,e,n);case 3:return Kz(this,null,n);case 4:return!this.a&&(this.a=new MN(MMt,this,4)),Pve(this.a,e,n)}return $H(tte($H(Aae(this,16),26)||(pKe(),ZIt),t),66).Nj().Rj(this,cme(this),t-dV((pKe(),ZIt)),e,n)},xKe.lh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.d;case 2:return!!this.b&&0!=this.b.f;case 3:return!!dZ(this);case 4:return!!this.a&&0!=this.a.i;case 5:return!!this.c&&0!=this.c.i}return k3(this,e-dV((pKe(),ZIt)),tte($H(Aae(this,16),26)||ZIt,e))},xKe.sh=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),sQe(this.Ab),!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void gV(this.Ab,$H(t,14));case 1:return void gQ(this,EB(t));case 2:return!this.b&&(this.b=new qL((pKe(),ADt),zDt,this)),void Zoe(this.b,t);case 3:return void kRe(this,$H(t,147));case 4:return!this.a&&(this.a=new MN(MMt,this,4)),sQe(this.a),!this.a&&(this.a=new MN(MMt,this,4)),void gV(this.a,$H(t,14));case 5:return!this.c&&(this.c=new LN(MMt,this,5)),sQe(this.c),!this.c&&(this.c=new LN(MMt,this,5)),void gV(this.c,$H(t,14))}Ife(this,e-dV((pKe(),ZIt)),tte($H(Aae(this,16),26)||ZIt,e),t)},xKe.zh=function(){return pKe(),ZIt},xKe.Bh=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void sQe(this.Ab);case 1:return void $re(this,null);case 2:return!this.b&&(this.b=new qL((pKe(),ADt),zDt,this)),void this.b.c.$b();case 3:return void kRe(this,null);case 4:return!this.a&&(this.a=new MN(MMt,this,4)),void sQe(this.a);case 5:return!this.c&&(this.c=new LN(MMt,this,5)),void sQe(this.c)}Hde(this,e-dV((pKe(),ZIt)),tte($H(Aae(this,16),26)||ZIt,e))},xKe.Ib=function(){return Vde(this)},xKe.d=null,mV(u6e,"EAnnotationImpl",510),hIe(151,705,y7e,A7),xKe.Xh=function(e,t){JI(this,e,$H(t,42))},xKe.lk=function(e,t){return FF(this,$H(e,42),t)},xKe.pi=function(e){return $H($H(this.c,69).pi(e),133)},xKe.Zh=function(){return $H(this.c,69).Zh()},xKe.$h=function(){return $H(this.c,69).$h()},xKe._h=function(e){return $H(this.c,69)._h(e)},xKe.mk=function(e,t){return $F(this,e,t)},xKe.Wj=function(e){return $H(this.c,76).Wj(e)},xKe.rj=function(){},xKe.fj=function(){return $H(this.c,76).fj()},xKe.tj=function(e,t,n){var r;return(r=$H(zte(this.b).Nh().Jh(this.b),133)).Th(e),r.Uh(t),r.ed(n),r},xKe.uj=function(){return new Tv(this)},xKe.Wb=function(e){Zoe(this,e)},xKe.Xj=function(){$H(this.c,76).Xj()},mV(A7e,"EcoreEMap",151),hIe(158,151,y7e,qL),xKe.qj=function(){var e,t,n,r,i;if(null==this.d){for(i=N8(sIt,r7e,63,2*this.f+1,0,1),n=this.c.Kc();n.e!=n.i.gc();)!(e=i[r=((t=$H(n.nj(),133)).Sh()&RKe)%i.length])&&(e=i[r]=new Tv(this)),e.Fc(t);this.d=i}},mV(u6e,"EAnnotationImpl/1",158),hIe(284,438,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,472:1,49:1,97:1,150:1,284:1,114:1,115:1}),xKe._g=function(e,t,n){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return lR(),!!(256&this.Bb);case 3:return lR(),!!(512&this.Bb);case 4:return the(this.s);case 5:return the(this.t);case 6:return lR(),!!this.$j();case 7:return lR(),this.s>=1;case 8:return t?Twe(this):this.r;case 9:return this.q}return z7(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e),t,n)},xKe.jh=function(e,t,n){switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Pve(this.Ab,e,n);case 9:return pV(this,n)}return $H(tte($H(Aae(this,16),26)||this.zh(),t),66).Nj().Rj(this,cme(this),t-dV(this.zh()),e,n)},xKe.lh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!(256&this.Bb);case 3:return!(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return this.$j();case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==AK(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==AK(this.q).i)}return k3(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e))},xKe.sh=function(e,t){var n;switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),sQe(this.Ab),!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void gV(this.Ab,$H(t,14));case 1:return void this.Lh(EB(t));case 2:return void Yde(this,Hy(_B(t)));case 3:return void Jde(this,Hy(_B(t)));case 4:return void Ine(this,$H(t,19).a);case 5:return void this.ok($H(t,19).a);case 8:return void Tue(this,$H(t,138));case 9:return void((n=jEe(this,$H(t,87),null))&&n.Fi())}Ife(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e),t)},xKe.zh=function(){return pKe(),yDt},xKe.Bh=function(e){var t;switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void sQe(this.Ab);case 1:return void this.Lh(null);case 2:return void Yde(this,!0);case 3:return void Jde(this,!0);case 4:return void Ine(this,0);case 5:return void this.ok(1);case 8:return void Tue(this,null);case 9:return void((t=jEe(this,null,null))&&t.Fi())}Hde(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e))},xKe.Gh=function(){Twe(this),this.Bb|=1},xKe.Yj=function(){return Twe(this)},xKe.Zj=function(){return this.t},xKe.$j=function(){var e;return(e=this.t)>1||-1==e},xKe.hi=function(){return!!(512&this.Bb)},xKe.nk=function(e,t){return Sde(this,e,t)},xKe.ok=function(e){Dne(this,e)},xKe.Ib=function(){return BMe(this)},xKe.s=0,xKe.t=1,mV(u6e,"ETypedElementImpl",284),hIe(449,284,{105:1,92:1,90:1,147:1,191:1,56:1,170:1,66:1,108:1,472:1,49:1,97:1,150:1,449:1,284:1,114:1,115:1,677:1}),xKe.Qg=function(e){return Dye(this,e)},xKe._g=function(e,t,n){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return lR(),!!(256&this.Bb);case 3:return lR(),!!(512&this.Bb);case 4:return the(this.s);case 5:return the(this.t);case 6:return lR(),!!this.$j();case 7:return lR(),this.s>=1;case 8:return t?Twe(this):this.r;case 9:return this.q;case 10:return lR(),!!(this.Bb&b6e);case 11:return lR(),!!(this.Bb&x7e);case 12:return lR(),!!(this.Bb&Pqe);case 13:return this.j;case 14:return HNe(this);case 15:return lR(),!!(this.Bb&_7e);case 16:return lR(),!!(this.Bb&lYe);case 17:return fZ(this)}return z7(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e),t,n)},xKe.hh=function(e,t,n){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Ype(this.Ab,e,n);case 17:return this.Cb&&(n=(r=this.Db>>16)>=0?Dye(this,n):this.Cb.ih(this,-1-r,null,n)),_$e(this,e,17,n)}return $H(tte($H(Aae(this,16),26)||this.zh(),t),66).Nj().Qj(this,cme(this),t-dV(this.zh()),e,n)},xKe.jh=function(e,t,n){switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Pve(this.Ab,e,n);case 9:return pV(this,n);case 17:return _$e(this,null,17,n)}return $H(tte($H(Aae(this,16),26)||this.zh(),t),66).Nj().Rj(this,cme(this),t-dV(this.zh()),e,n)},xKe.lh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!(256&this.Bb);case 3:return!(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return this.$j();case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==AK(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==AK(this.q).i);case 10:return!(this.Bb&b6e);case 11:return!!(this.Bb&x7e);case 12:return!!(this.Bb&Pqe);case 13:return null!=this.j;case 14:return null!=HNe(this);case 15:return!!(this.Bb&_7e);case 16:return!!(this.Bb&lYe);case 17:return!!fZ(this)}return k3(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e))},xKe.sh=function(e,t){var n;switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),sQe(this.Ab),!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void gV(this.Ab,$H(t,14));case 1:return void qZ(this,EB(t));case 2:return void Yde(this,Hy(_B(t)));case 3:return void Jde(this,Hy(_B(t)));case 4:return void Ine(this,$H(t,19).a);case 5:return void this.ok($H(t,19).a);case 8:return void Tue(this,$H(t,138));case 9:return void((n=jEe(this,$H(t,87),null))&&n.Fi());case 10:return void Ohe(this,Hy(_B(t)));case 11:return void Dhe(this,Hy(_B(t)));case 12:return void Mhe(this,Hy(_B(t)));case 13:return void PO(this,EB(t));case 15:return void Ihe(this,Hy(_B(t)));case 16:return void Hhe(this,Hy(_B(t)))}Ife(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e),t)},xKe.zh=function(){return pKe(),bDt},xKe.Bh=function(e){var t;switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void sQe(this.Ab);case 1:return rN(this.Cb,88)&&Oke(S5($H(this.Cb,88)),4),void Die(this,null);case 2:return void Yde(this,!0);case 3:return void Jde(this,!0);case 4:return void Ine(this,0);case 5:return void this.ok(1);case 8:return void Tue(this,null);case 9:return void((t=jEe(this,null,null))&&t.Fi());case 10:return void Ohe(this,!0);case 11:return void Dhe(this,!1);case 12:return void Mhe(this,!1);case 13:return this.i=null,void iie(this,null);case 15:return void Ihe(this,!1);case 16:return void Hhe(this,!1)}Hde(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e))},xKe.Gh=function(){bY($9((TTe(),qDt),this)),Twe(this),this.Bb|=1},xKe.Gj=function(){return this.f},xKe.zj=function(){return HNe(this)},xKe.Hj=function(){return fZ(this)},xKe.Lj=function(){return null},xKe.pk=function(){return this.k},xKe.aj=function(){return this.n},xKe.Mj=function(){return axe(this)},xKe.Nj=function(){var e,t,n,r,i,o,a,s,l;return this.p||((null==(n=fZ(this)).i&&Hje(n),n.i).length,(r=this.Lj())&&dV(fZ(r)),e=(a=(i=Twe(this)).Bj())?1&a.i?a==ORt?ytt:a==kRt?Mtt:a==NRt?Ttt:a==DRt?Ctt:a==MRt?Btt:a==RRt?Ftt:a==IRt?xtt:Stt:a:null,t=HNe(this),s=i.zj(),dfe(this),this.Bb&lYe&&((o=v_e((TTe(),qDt),n))&&o!=this||(o=X0($9(qDt,this))))?this.p=new OO(this,o):this.$j()?this.rk()?r?this.Bb&_7e?e?this.sk()?this.p=new uq(47,e,this,r):this.p=new uq(5,e,this,r):this.sk()?this.p=new h4(46,this,r):this.p=new h4(4,this,r):e?this.sk()?this.p=new uq(49,e,this,r):this.p=new uq(7,e,this,r):this.sk()?this.p=new h4(48,this,r):this.p=new h4(6,this,r):this.Bb&_7e?e?e==Het?this.p=new SH(50,GMt,this):this.sk()?this.p=new SH(43,e,this):this.p=new SH(1,e,this):this.sk()?this.p=new LX(42,this):this.p=new LX(0,this):e?e==Het?this.p=new SH(41,GMt,this):this.sk()?this.p=new SH(45,e,this):this.p=new SH(3,e,this):this.sk()?this.p=new LX(44,this):this.p=new LX(2,this):rN(i,148)?e==ODt?this.p=new LX(40,this):512&this.Bb?this.Bb&_7e?this.p=e?new SH(9,e,this):new LX(8,this):this.p=e?new SH(11,e,this):new LX(10,this):this.Bb&_7e?this.p=e?new SH(13,e,this):new LX(12,this):this.p=e?new SH(15,e,this):new LX(14,this):r?(l=r.t)>1||-1==l?this.sk()?this.Bb&_7e?this.p=e?new uq(25,e,this,r):new h4(24,this,r):this.p=e?new uq(27,e,this,r):new h4(26,this,r):this.Bb&_7e?this.p=e?new uq(29,e,this,r):new h4(28,this,r):this.p=e?new uq(31,e,this,r):new h4(30,this,r):this.sk()?this.Bb&_7e?this.p=e?new uq(33,e,this,r):new h4(32,this,r):this.p=e?new uq(35,e,this,r):new h4(34,this,r):this.Bb&_7e?this.p=e?new uq(37,e,this,r):new h4(36,this,r):this.p=e?new uq(39,e,this,r):new h4(38,this,r):this.sk()?this.Bb&_7e?this.p=e?new SH(17,e,this):new LX(16,this):this.p=e?new SH(19,e,this):new LX(18,this):this.Bb&_7e?this.p=e?new SH(21,e,this):new LX(20,this):this.p=e?new SH(23,e,this):new LX(22,this):this.qk()?this.sk()?this.p=new CH($H(i,26),this,r):this.p=new vJ($H(i,26),this,r):rN(i,148)?e==ODt?this.p=new LX(40,this):this.Bb&_7e?this.p=e?new Jz(t,s,this,($pe(),a==kRt?jDt:a==ORt?LDt:a==MRt?HDt:a==NRt?$Dt:a==DRt?FDt:a==RRt?QDt:a==IRt?BDt:a==TRt?PDt:UDt)):new fq($H(i,148),t,s,this):this.p=e?new Xz(t,s,this,($pe(),a==kRt?jDt:a==ORt?LDt:a==MRt?HDt:a==NRt?$Dt:a==DRt?FDt:a==RRt?QDt:a==IRt?BDt:a==TRt?PDt:UDt)):new hq($H(i,148),t,s,this):this.rk()?r?this.Bb&_7e?this.sk()?this.p=new DH($H(i,26),this,r):this.p=new IH($H(i,26),this,r):this.sk()?this.p=new MH($H(i,26),this,r):this.p=new TH($H(i,26),this,r):this.Bb&_7e?this.sk()?this.p=new eB($H(i,26),this):this.p=new ZL($H(i,26),this):this.sk()?this.p=new JL($H(i,26),this):this.p=new XL($H(i,26),this):this.sk()?r?this.Bb&_7e?this.p=new NH($H(i,26),this,r):this.p=new kH($H(i,26),this,r):this.Bb&_7e?this.p=new nB($H(i,26),this):this.p=new tB($H(i,26),this):r?this.Bb&_7e?this.p=new RH($H(i,26),this,r):this.p=new OH($H(i,26),this,r):this.Bb&_7e?this.p=new rB($H(i,26),this):this.p=new rz($H(i,26),this)),this.p},xKe.Ij=function(){return!!(this.Bb&b6e)},xKe.qk=function(){return!1},xKe.rk=function(){return!1},xKe.Jj=function(){return!!(this.Bb&lYe)},xKe.Oj=function(){return lee(this)},xKe.sk=function(){return!1},xKe.Kj=function(){return!!(this.Bb&_7e)},xKe.tk=function(e){this.k=e},xKe.Lh=function(e){qZ(this,e)},xKe.Ib=function(){return wPe(this)},xKe.e=!1,xKe.n=0,mV(u6e,"EStructuralFeatureImpl",449),hIe(322,449,{105:1,92:1,90:1,34:1,147:1,191:1,56:1,170:1,66:1,108:1,472:1,49:1,97:1,322:1,150:1,449:1,284:1,114:1,115:1,677:1},kb),xKe._g=function(e,t,n){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return lR(),!!(256&this.Bb);case 3:return lR(),!!(512&this.Bb);case 4:return the(this.s);case 5:return the(this.t);case 6:return lR(),!!DOe(this);case 7:return lR(),this.s>=1;case 8:return t?Twe(this):this.r;case 9:return this.q;case 10:return lR(),!!(this.Bb&b6e);case 11:return lR(),!!(this.Bb&x7e);case 12:return lR(),!!(this.Bb&Pqe);case 13:return this.j;case 14:return HNe(this);case 15:return lR(),!!(this.Bb&_7e);case 16:return lR(),!!(this.Bb&lYe);case 17:return fZ(this);case 18:return lR(),!!(this.Bb&l6e);case 19:return t?ose(this):N6(this)}return z7(this,e-dV((pKe(),eDt)),tte($H(Aae(this,16),26)||eDt,e),t,n)},xKe.lh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!(256&this.Bb);case 3:return!(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return DOe(this);case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==AK(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==AK(this.q).i);case 10:return!(this.Bb&b6e);case 11:return!!(this.Bb&x7e);case 12:return!!(this.Bb&Pqe);case 13:return null!=this.j;case 14:return null!=HNe(this);case 15:return!!(this.Bb&_7e);case 16:return!!(this.Bb&lYe);case 17:return!!fZ(this);case 18:return!!(this.Bb&l6e);case 19:return!!N6(this)}return k3(this,e-dV((pKe(),eDt)),tte($H(Aae(this,16),26)||eDt,e))},xKe.sh=function(e,t){var n;switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),sQe(this.Ab),!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void gV(this.Ab,$H(t,14));case 1:return void qZ(this,EB(t));case 2:return void Yde(this,Hy(_B(t)));case 3:return void Jde(this,Hy(_B(t)));case 4:return void Ine(this,$H(t,19).a);case 5:return void z_(this,$H(t,19).a);case 8:return void Tue(this,$H(t,138));case 9:return void((n=jEe(this,$H(t,87),null))&&n.Fi());case 10:return void Ohe(this,Hy(_B(t)));case 11:return void Dhe(this,Hy(_B(t)));case 12:return void Mhe(this,Hy(_B(t)));case 13:return void PO(this,EB(t));case 15:return void Ihe(this,Hy(_B(t)));case 16:return void Hhe(this,Hy(_B(t)));case 18:return void Uhe(this,Hy(_B(t)))}Ife(this,e-dV((pKe(),eDt)),tte($H(Aae(this,16),26)||eDt,e),t)},xKe.zh=function(){return pKe(),eDt},xKe.Bh=function(e){var t;switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void sQe(this.Ab);case 1:return rN(this.Cb,88)&&Oke(S5($H(this.Cb,88)),4),void Die(this,null);case 2:return void Yde(this,!0);case 3:return void Jde(this,!0);case 4:return void Ine(this,0);case 5:return this.b=0,void Dne(this,1);case 8:return void Tue(this,null);case 9:return void((t=jEe(this,null,null))&&t.Fi());case 10:return void Ohe(this,!0);case 11:return void Dhe(this,!1);case 12:return void Mhe(this,!1);case 13:return this.i=null,void iie(this,null);case 15:return void Ihe(this,!1);case 16:return void Hhe(this,!1);case 18:return void Uhe(this,!1)}Hde(this,e-dV((pKe(),eDt)),tte($H(Aae(this,16),26)||eDt,e))},xKe.Gh=function(){ose(this),bY($9((TTe(),qDt),this)),Twe(this),this.Bb|=1},xKe.$j=function(){return DOe(this)},xKe.nk=function(e,t){return this.b=0,this.a=null,Sde(this,e,t)},xKe.ok=function(e){z_(this,e)},xKe.Ib=function(){var e;return 64&this.Db?wPe(this):((e=new cR(wPe(this))).a+=" (iD: ",Ax(e,!!(this.Bb&l6e)),e.a+=")",e.a)},xKe.b=0,mV(u6e,"EAttributeImpl",322),hIe(351,438,{105:1,92:1,90:1,138:1,147:1,191:1,56:1,108:1,49:1,97:1,351:1,150:1,114:1,115:1,676:1}),xKe.uk=function(e){return e.Tg()==this},xKe.Qg=function(e){return cye(this,e)},xKe.Rg=function(e,t){this.w=null,this.Db=t<<16|255&this.Db,this.Cb=e},xKe._g=function(e,t,n){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return tye(this);case 4:return this.zj();case 5:return this.F;case 6:return t?zte(this):hZ(this);case 7:return!this.A&&(this.A=new DN(TDt,this,7)),this.A}return z7(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e),t,n)},xKe.hh=function(e,t,n){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Ype(this.Ab,e,n);case 6:return this.Cb&&(n=(r=this.Db>>16)>=0?cye(this,n):this.Cb.ih(this,-1-r,null,n)),_$e(this,e,6,n)}return $H(tte($H(Aae(this,16),26)||this.zh(),t),66).Nj().Qj(this,cme(this),t-dV(this.zh()),e,n)},xKe.jh=function(e,t,n){switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Pve(this.Ab,e,n);case 6:return _$e(this,null,6,n);case 7:return!this.A&&(this.A=new DN(TDt,this,7)),Pve(this.A,e,n)}return $H(tte($H(Aae(this,16),26)||this.zh(),t),66).Nj().Rj(this,cme(this),t-dV(this.zh()),e,n)},xKe.lh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!tye(this);case 4:return null!=this.zj();case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!hZ(this);case 7:return!!this.A&&0!=this.A.i}return k3(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e))},xKe.sh=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),sQe(this.Ab),!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void gV(this.Ab,$H(t,14));case 1:return void XZ(this,EB(t));case 2:return void TI(this,EB(t));case 5:return void YQe(this,EB(t));case 7:return!this.A&&(this.A=new DN(TDt,this,7)),sQe(this.A),!this.A&&(this.A=new DN(TDt,this,7)),void gV(this.A,$H(t,14))}Ife(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e),t)},xKe.zh=function(){return pKe(),nDt},xKe.Bh=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void sQe(this.Ab);case 1:return rN(this.Cb,179)&&($H(this.Cb,179).tb=null),void Die(this,null);case 2:return Rce(this,null),void Nne(this,this.D);case 5:return void YQe(this,null);case 7:return!this.A&&(this.A=new DN(TDt,this,7)),void sQe(this.A)}Hde(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e))},xKe.yj=function(){var e;return-1==this.G&&(this.G=(e=zte(this))?oAe(e.Mh(),this):-1),this.G},xKe.zj=function(){return null},xKe.Aj=function(){return zte(this)},xKe.vk=function(){return this.v},xKe.Bj=function(){return tye(this)},xKe.Cj=function(){return null!=this.D?this.D:this.B},xKe.Dj=function(){return this.F},xKe.wj=function(e){return Eje(this,e)},xKe.wk=function(e){this.v=e},xKe.xk=function(e){zie(this,e)},xKe.yk=function(e){this.C=e},xKe.Lh=function(e){XZ(this,e)},xKe.Ib=function(){return Cpe(this)},xKe.C=null,xKe.D=null,xKe.G=-1,mV(u6e,"EClassifierImpl",351),hIe(88,351,{105:1,92:1,90:1,26:1,138:1,147:1,191:1,56:1,108:1,49:1,97:1,88:1,351:1,150:1,473:1,114:1,115:1,676:1},Bd),xKe.uk=function(e){return KP(this,e.Tg())},xKe._g=function(e,t,n){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return tye(this);case 4:return null;case 5:return this.F;case 6:return t?zte(this):hZ(this);case 7:return!this.A&&(this.A=new DN(TDt,this,7)),this.A;case 8:return lR(),!!(256&this.Bb);case 9:return lR(),!!(512&this.Bb);case 10:return bX(this);case 11:return!this.q&&(this.q=new eG(VIt,this,11,10)),this.q;case 12:return YHe(this);case 13:return LHe(this);case 14:return LHe(this),this.r;case 15:return YHe(this),this.k;case 16:return GTe(this);case 17:return pHe(this);case 18:return Hje(this);case 19:return CNe(this);case 20:return YHe(this),this.o;case 21:return!this.s&&(this.s=new eG(PIt,this,21,17)),this.s;case 22:return i4(this);case 23:return jBe(this)}return z7(this,e-dV((pKe(),tDt)),tte($H(Aae(this,16),26)||tDt,e),t,n)},xKe.hh=function(e,t,n){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Ype(this.Ab,e,n);case 6:return this.Cb&&(n=(r=this.Db>>16)>=0?cye(this,n):this.Cb.ih(this,-1-r,null,n)),_$e(this,e,6,n);case 11:return!this.q&&(this.q=new eG(VIt,this,11,10)),Ype(this.q,e,n);case 21:return!this.s&&(this.s=new eG(PIt,this,21,17)),Ype(this.s,e,n)}return $H(tte($H(Aae(this,16),26)||(pKe(),tDt),t),66).Nj().Qj(this,cme(this),t-dV((pKe(),tDt)),e,n)},xKe.jh=function(e,t,n){switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Pve(this.Ab,e,n);case 6:return _$e(this,null,6,n);case 7:return!this.A&&(this.A=new DN(TDt,this,7)),Pve(this.A,e,n);case 11:return!this.q&&(this.q=new eG(VIt,this,11,10)),Pve(this.q,e,n);case 21:return!this.s&&(this.s=new eG(PIt,this,21,17)),Pve(this.s,e,n);case 22:return Pve(i4(this),e,n)}return $H(tte($H(Aae(this,16),26)||(pKe(),tDt),t),66).Nj().Rj(this,cme(this),t-dV((pKe(),tDt)),e,n)},xKe.lh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!tye(this);case 4:return!1;case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!hZ(this);case 7:return!!this.A&&0!=this.A.i;case 8:return!!(256&this.Bb);case 9:return!!(512&this.Bb);case 10:return!(!this.u||0==i4(this.u.a).i||this.n&&LAe(this.n));case 11:return!!this.q&&0!=this.q.i;case 12:return 0!=YHe(this).i;case 13:return 0!=LHe(this).i;case 14:return LHe(this),0!=this.r.i;case 15:return YHe(this),0!=this.k.i;case 16:return 0!=GTe(this).i;case 17:return 0!=pHe(this).i;case 18:return 0!=Hje(this).i;case 19:return 0!=CNe(this).i;case 20:return YHe(this),!!this.o;case 21:return!!this.s&&0!=this.s.i;case 22:return!!this.n&&LAe(this.n);case 23:return 0!=jBe(this).i}return k3(this,e-dV((pKe(),tDt)),tte($H(Aae(this,16),26)||tDt,e))},xKe.oh=function(e){return(null==this.i||this.q&&0!=this.q.i?null:DRe(this,e))||lGe(this,e)},xKe.sh=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),sQe(this.Ab),!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void gV(this.Ab,$H(t,14));case 1:return void XZ(this,EB(t));case 2:return void TI(this,EB(t));case 5:return void YQe(this,EB(t));case 7:return!this.A&&(this.A=new DN(TDt,this,7)),sQe(this.A),!this.A&&(this.A=new DN(TDt,this,7)),void gV(this.A,$H(t,14));case 8:return void qde(this,Hy(_B(t)));case 9:return void Zde(this,Hy(_B(t)));case 10:return mQe(bX(this)),void gV(bX(this),$H(t,14));case 11:return!this.q&&(this.q=new eG(VIt,this,11,10)),sQe(this.q),!this.q&&(this.q=new eG(VIt,this,11,10)),void gV(this.q,$H(t,14));case 21:return!this.s&&(this.s=new eG(PIt,this,21,17)),sQe(this.s),!this.s&&(this.s=new eG(PIt,this,21,17)),void gV(this.s,$H(t,14));case 22:return sQe(i4(this)),void gV(i4(this),$H(t,14))}Ife(this,e-dV((pKe(),tDt)),tte($H(Aae(this,16),26)||tDt,e),t)},xKe.zh=function(){return pKe(),tDt},xKe.Bh=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void sQe(this.Ab);case 1:return rN(this.Cb,179)&&($H(this.Cb,179).tb=null),void Die(this,null);case 2:return Rce(this,null),void Nne(this,this.D);case 5:return void YQe(this,null);case 7:return!this.A&&(this.A=new DN(TDt,this,7)),void sQe(this.A);case 8:return void qde(this,!1);case 9:return void Zde(this,!1);case 10:return void(this.u&&mQe(this.u));case 11:return!this.q&&(this.q=new eG(VIt,this,11,10)),void sQe(this.q);case 21:return!this.s&&(this.s=new eG(PIt,this,21,17)),void sQe(this.s);case 22:return void(this.n&&sQe(this.n))}Hde(this,e-dV((pKe(),tDt)),tte($H(Aae(this,16),26)||tDt,e))},xKe.Gh=function(){var e,t;if(YHe(this),LHe(this),GTe(this),pHe(this),Hje(this),CNe(this),jBe(this),i6(WH(S5(this))),this.s)for(e=0,t=this.s.i;e<t;++e)mL(Gte(this.s,e));if(this.q)for(e=0,t=this.q.i;e<t;++e)mL(Gte(this.q,e));Cde((TTe(),qDt),this).ne(),this.Bb|=1},xKe.Ib=function(){return fxe(this)},xKe.k=null,xKe.r=null,mV(u6e,"EClassImpl",88),hIe(1994,1993,R7e),xKe.Vh=function(e,t){return Ije(this,e,t)},xKe.Wh=function(e){return Ije(this,this.i,e)},xKe.Xh=function(e,t){HMe(this,e,t)},xKe.Yh=function(e){ZMe(this,e)},xKe.lk=function(e,t){return Ype(this,e,t)},xKe.pi=function(e){return F7(this,e)},xKe.mk=function(e,t){return Pve(this,e,t)},xKe.mi=function(e,t){return cHe(this,e,t)},xKe.Zh=function(){return new iL(this)},xKe.$h=function(){return new oL(this)},xKe._h=function(e){return sre(this,e)},mV(A7e,"NotifyingInternalEListImpl",1994),hIe(622,1994,L7e),xKe.Hc=function(e){return dQe(this,e)},xKe.Zi=function(e,t,n,r,i){return AZ(this,e,t,n,r,i)},xKe.$i=function(e){IA(this,e)},xKe.Wj=function(e){return this},xKe.ak=function(){return tte(this.e.Tg(),this.aj())},xKe._i=function(){return this.ak()},xKe.aj=function(){return Ope(this.e.Tg(),this.ak())},xKe.zk=function(){return $H(this.ak().Yj(),26).Bj()},xKe.Ak=function(){return CAe($H(this.ak(),18)).n},xKe.Ai=function(){return this.e},xKe.Bk=function(){return!0},xKe.Ck=function(){return!1},xKe.Dk=function(){return!1},xKe.Ek=function(){return!1},xKe.Xc=function(e){return oAe(this,e)},xKe.cj=function(e,t){var n;return n=$H(e,49),this.Dk()?this.Bk()?n.gh(this.e,this.Ak(),this.zk(),t):n.gh(this.e,Ope(n.Tg(),CAe($H(this.ak(),18))),null,t):n.gh(this.e,-1-this.aj(),null,t)},xKe.dj=function(e,t){var n;return n=$H(e,49),this.Dk()?this.Bk()?n.ih(this.e,this.Ak(),this.zk(),t):n.ih(this.e,Ope(n.Tg(),CAe($H(this.ak(),18))),null,t):n.ih(this.e,-1-this.aj(),null,t)},xKe.rk=function(){return!1},xKe.Fk=function(){return!0},xKe.wj=function(e){return N3(this.d,e)},xKe.ej=function(){return vI(this.e)},xKe.fj=function(){return 0!=this.i},xKe.ri=function(e){return Rne(this.d,e)},xKe.li=function(e,t){return this.Fk()&&this.Ek()?UMe(this,e,$H(t,56)):t},xKe.Gk=function(e){return e.kh()?Zue(this.e,$H(e,49)):e},xKe.Wb=function(e){qD(this,e)},xKe.Pc=function(){return j7(this)},xKe.Qc=function(e){var t;if(this.Ek())for(t=this.i-1;t>=0;--t)Gte(this,t);return Kpe(this,e)},xKe.Xj=function(){sQe(this)},xKe.oi=function(e,t){return Pne(this,e,t)},mV(A7e,"EcoreEList",622),hIe(496,622,L7e,AU),xKe.ai=function(){return!1},xKe.aj=function(){return this.c},xKe.bj=function(){return!1},xKe.Fk=function(){return!0},xKe.hi=function(){return!0},xKe.li=function(e,t){return t},xKe.ni=function(){return!1},xKe.c=0,mV(A7e,"EObjectEList",496),hIe(85,496,L7e,MN),xKe.bj=function(){return!0},xKe.Dk=function(){return!1},xKe.rk=function(){return!0},mV(A7e,"EObjectContainmentEList",85),hIe(545,85,L7e,IN),xKe.ci=function(){this.b=!0},xKe.fj=function(){return this.b},xKe.Xj=function(){var e;sQe(this),vI(this.e)?(e=this.b,this.b=!1,dae(this.e,new Z5(this.e,2,this.c,e,!1))):this.b=!1},xKe.b=!1,mV(A7e,"EObjectContainmentEList/Unsettable",545),hIe(1140,545,L7e,Yz),xKe.ii=function(e,t){var n,r;return n=$H(The(this,e,t),87),vI(this.e)&&IA(this,new y7(this.a,7,(pKe(),rDt),the(t),rN(r=n.c,88)?$H(r,26):hDt,e)),n},xKe.jj=function(e,t){return Xpe(this,$H(e,87),t)},xKe.kj=function(e,t){return qpe(this,$H(e,87),t)},xKe.lj=function(e,t,n){return P_e(this,$H(e,87),$H(t,87),n)},xKe.Zi=function(e,t,n,r,i){switch(e){case 3:return AZ(this,e,t,n,r,this.i>1);case 5:return AZ(this,e,t,n,r,this.i-$H(n,15).gc()>0);default:return new D9(this.e,e,this.c,t,n,r,!0)}},xKe.ij=function(){return!0},xKe.fj=function(){return LAe(this)},xKe.Xj=function(){sQe(this)},mV(u6e,"EClassImpl/1",1140),hIe(1154,1153,X8e),xKe.ui=function(e){var t,n,r,i,o,a,s;if(8!=(n=e.xi())){if(0==(r=ive(e)))switch(n){case 1:case 9:null!=(s=e.Bi())&&(!(t=S5($H(s,473))).c&&(t.c=new Hl),see(t.c,e.Ai())),null!=(a=e.zi())&&(1&(i=$H(a,473)).Bb||(!(t=S5(i)).c&&(t.c=new Hl),c7(t.c,$H(e.Ai(),26))));break;case 3:null!=(a=e.zi())&&(1&(i=$H(a,473)).Bb||(!(t=S5(i)).c&&(t.c=new Hl),c7(t.c,$H(e.Ai(),26))));break;case 5:if(null!=(a=e.zi()))for(o=$H(a,14).Kc();o.Ob();)1&(i=$H(o.Pb(),473)).Bb||(!(t=S5(i)).c&&(t.c=new Hl),c7(t.c,$H(e.Ai(),26)));break;case 4:null!=(s=e.Bi())&&(1&(i=$H(s,473)).Bb||(!(t=S5(i)).c&&(t.c=new Hl),see(t.c,e.Ai())));break;case 6:if(null!=(s=e.Bi()))for(o=$H(s,14).Kc();o.Ob();)1&(i=$H(o.Pb(),473)).Bb||(!(t=S5(i)).c&&(t.c=new Hl),see(t.c,e.Ai()))}this.Hk(r)}},xKe.Hk=function(e){fPe(this,e)},xKe.b=63,mV(u6e,"ESuperAdapter",1154),hIe(1155,1154,X8e,fv),xKe.Hk=function(e){Oke(this,e)},mV(u6e,"EClassImpl/10",1155),hIe(1144,696,L7e),xKe.Vh=function(e,t){return $Ee(this,e,t)},xKe.Wh=function(e){return dbe(this,e)},xKe.Xh=function(e,t){Tde(this,e,t)},xKe.Yh=function(e){r6(this,e)},xKe.pi=function(e){return F7(this,e)},xKe.mi=function(e,t){return aee(this,e,t)},xKe.lk=function(e,t){throw jv(new gA)},xKe.Zh=function(){return new iL(this)},xKe.$h=function(){return new oL(this)},xKe._h=function(e){return sre(this,e)},xKe.mk=function(e,t){throw jv(new gA)},xKe.Wj=function(e){return this},xKe.fj=function(){return 0!=this.i},xKe.Wb=function(e){throw jv(new gA)},xKe.Xj=function(){throw jv(new gA)},mV(A7e,"EcoreEList/UnmodifiableEList",1144),hIe(319,1144,L7e,DM),xKe.ni=function(){return!1},mV(A7e,"EcoreEList/UnmodifiableEList/FastCompare",319),hIe(1147,319,L7e,fle),xKe.Xc=function(e){var t,n;if(rN(e,170)&&-1!=(t=$H(e,170).aj()))for(n=this.i;t<n;++t)if(UO(this.g[t])===UO(e))return t;return-1},mV(u6e,"EClassImpl/1EAllStructuralFeaturesList",1147),hIe(1141,497,l8e,xl),xKe.ri=function(e){return N8(GIt,$7e,87,e,0,1)},xKe.ni=function(){return!1},mV(u6e,"EClassImpl/1EGenericSuperTypeEList",1141),hIe(623,497,l8e,El),xKe.ri=function(e){return N8(PIt,D7e,170,e,0,1)},xKe.ni=function(){return!1},mV(u6e,"EClassImpl/1EStructuralFeatureUniqueEList",623),hIe(741,497,l8e,Sl),xKe.ri=function(e){return N8(YIt,D7e,18,e,0,1)},xKe.ni=function(){return!1},mV(u6e,"EClassImpl/1ReferenceList",741),hIe(1142,497,l8e,pv),xKe.bi=function(e,t){Zz(this,$H(t,34))},xKe.ri=function(e){return N8(FIt,D7e,34,e,0,1)},xKe.ni=function(){return!1},mV(u6e,"EClassImpl/2",1142),hIe(1143,497,l8e,Cl),xKe.ri=function(e){return N8(FIt,D7e,34,e,0,1)},xKe.ni=function(){return!1},mV(u6e,"EClassImpl/3",1143),hIe(1145,319,L7e,wU),xKe.Fc=function(e){return vH(this,$H(e,34))},xKe.Yh=function(e){qx(this,$H(e,34))},mV(u6e,"EClassImpl/4",1145),hIe(1146,319,L7e,_U),xKe.Fc=function(e){return AH(this,$H(e,18))},xKe.Yh=function(e){Xx(this,$H(e,18))},mV(u6e,"EClassImpl/5",1146),hIe(1148,497,l8e,Tl),xKe.ri=function(e){return N8(VIt,N7e,59,e,0,1)},xKe.ni=function(){return!1},mV(u6e,"EClassImpl/6",1148),hIe(1149,497,l8e,kl),xKe.ri=function(e){return N8(YIt,D7e,18,e,0,1)},xKe.ni=function(){return!1},mV(u6e,"EClassImpl/7",1149),hIe(1997,1996,{3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1,69:1}),xKe.Vh=function(e,t){return oje(this,e,t)},xKe.Wh=function(e){return oje(this,this.Vi(),e)},xKe.Xh=function(e,t){eIe(this,e,t)},xKe.Yh=function(e){kMe(this,e)},xKe.lk=function(e,t){return hbe(this,e,t)},xKe.mk=function(e,t){return Fve(this,e,t)},xKe.mi=function(e,t){return aje(this,e,t)},xKe.pi=function(e){return this.Oi(e)},xKe.Zh=function(){return new iL(this)},xKe.Gi=function(){return this.Ji()},xKe.$h=function(){return new oL(this)},xKe._h=function(e){return sre(this,e)},mV(A7e,"DelegatingNotifyingInternalEListImpl",1997),hIe(742,1997,j7e),xKe.ai=function(){var e;return rN(e=tte(yX(this.b),this.aj()).Yj(),148)&&!rN(e,457)&&!(1&e.Bj().i)},xKe.Hc=function(e){var t,n,r,i,o,a,s;if(this.Fk()){if((s=this.Vi())>4){if(!this.wj(e))return!1;if(this.rk()){if(a=(t=(n=$H(e,49)).Ug())==this.b&&(this.Dk()?n.Og(n.Vg(),$H(tte(yX(this.b),this.aj()).Yj(),26).Bj())==CAe($H(tte(yX(this.b),this.aj()),18)).n:-1-n.Vg()==this.aj()),this.Ek()&&!a&&!t&&n.Zg())for(r=0;r<s;++r)if(UO(UW(this,this.Oi(r)))===UO(e))return!0;return a}if(this.Dk()&&!this.Ck()){if(UO(i=$H(e,56).ah(CAe($H(tte(yX(this.b),this.aj()),18))))===UO(this.b))return!0;if(null==i||!$H(i,56).kh())return!1}}if(o=this.Li(e),this.Ek()&&!o)for(r=0;r<s;++r)if(UO(n=UW(this,this.Oi(r)))===UO(e))return!0;return o}return this.Li(e)},xKe.Zi=function(e,t,n,r,i){return new D9(this.b,e,this.aj(),t,n,r,i)},xKe.$i=function(e){dae(this.b,e)},xKe.Wj=function(e){return this},xKe._i=function(){return tte(yX(this.b),this.aj())},xKe.aj=function(){return Ope(yX(this.b),tte(yX(this.b),this.aj()))},xKe.Ai=function(){return this.b},xKe.Bk=function(){return!!tte(yX(this.b),this.aj()).Yj().Bj()},xKe.bj=function(){var e;return!(!rN(e=tte(yX(this.b),this.aj()),99)||!($H(e,18).Bb&l6e)&&!CAe($H(e,18)))},xKe.Ck=function(){var e,t,n;return!!rN(e=tte(yX(this.b),this.aj()),99)&&!!(t=CAe($H(e,18)))&&((n=t.t)>1||-1==n)},xKe.Dk=function(){var e;return!!rN(e=tte(yX(this.b),this.aj()),99)&&!!CAe($H(e,18))},xKe.Ek=function(){var e;return!!rN(e=tte(yX(this.b),this.aj()),99)&&!!($H(e,18).Bb&$qe)},xKe.Xc=function(e){var t,n,r;if((n=this.Qi(e))>=0)return n;if(this.Fk())for(t=0,r=this.Vi();t<r;++t)if(UO(UW(this,this.Oi(t)))===UO(e))return t;return-1},xKe.cj=function(e,t){var n;return n=$H(e,49),this.Dk()?this.Bk()?n.gh(this.b,CAe($H(tte(yX(this.b),this.aj()),18)).n,$H(tte(yX(this.b),this.aj()).Yj(),26).Bj(),t):n.gh(this.b,Ope(n.Tg(),CAe($H(tte(yX(this.b),this.aj()),18))),null,t):n.gh(this.b,-1-this.aj(),null,t)},xKe.dj=function(e,t){var n;return n=$H(e,49),this.Dk()?this.Bk()?n.ih(this.b,CAe($H(tte(yX(this.b),this.aj()),18)).n,$H(tte(yX(this.b),this.aj()).Yj(),26).Bj(),t):n.ih(this.b,Ope(n.Tg(),CAe($H(tte(yX(this.b),this.aj()),18))),null,t):n.ih(this.b,-1-this.aj(),null,t)},xKe.rk=function(){var e;return!!rN(e=tte(yX(this.b),this.aj()),99)&&!!($H(e,18).Bb&l6e)},xKe.Fk=function(){return rN(tte(yX(this.b),this.aj()).Yj(),88)},xKe.wj=function(e){return tte(yX(this.b),this.aj()).Yj().wj(e)},xKe.ej=function(){return vI(this.b)},xKe.fj=function(){return!this.Ri()},xKe.hi=function(){return tte(yX(this.b),this.aj()).hi()},xKe.li=function(e,t){return eze(this,e,t)},xKe.Wb=function(e){mQe(this),gV(this,$H(e,15))},xKe.Pc=function(){var e;if(this.Ek())for(e=this.Vi()-1;e>=0;--e)eze(this,e,this.Oi(e));return this.Wi()},xKe.Qc=function(e){var t;if(this.Ek())for(t=this.Vi()-1;t>=0;--t)eze(this,t,this.Oi(t));return this.Xi(e)},xKe.Xj=function(){mQe(this)},xKe.oi=function(e,t){return $7(this,e,t)},mV(A7e,"DelegatingEcoreEList",742),hIe(1150,742,j7e,oP),xKe.Hi=function(e,t){uB(this,e,$H(t,26))},xKe.Ii=function(e){eD(this,$H(e,26))},xKe.Oi=function(e){var t;return rN(t=$H(Gte(i4(this.a),e),87).c,88)?$H(t,26):(pKe(),hDt)},xKe.Ti=function(e){var t;return rN(t=$H(cBe(i4(this.a),e),87).c,88)?$H(t,26):(pKe(),hDt)},xKe.Ui=function(e,t){return fbe(this,e,$H(t,26))},xKe.ai=function(){return!1},xKe.Zi=function(e,t,n,r,i){return null},xKe.Ji=function(){return new gv(this)},xKe.Ki=function(){sQe(i4(this.a))},xKe.Li=function(e){return zde(this,e)},xKe.Mi=function(e){var t;for(t=e.Kc();t.Ob();)if(!zde(this,t.Pb()))return!1;return!0},xKe.Ni=function(e){var t,n,r;if(rN(e,15)&&(r=$H(e,15)).gc()==i4(this.a).i){for(t=r.Kc(),n=new ON(this);t.Ob();)if(UO(t.Pb())!==UO(bve(n)))return!1;return!0}return!1},xKe.Pi=function(){var e,t,n,r;for(t=1,e=new ON(i4(this.a));e.e!=e.i.gc();)t=31*t+((n=rN(r=$H(bve(e),87).c,88)?$H(r,26):(pKe(),hDt))?SR(n):0);return t},xKe.Qi=function(e){var t,n,r,i;for(r=0,n=new ON(i4(this.a));n.e!=n.i.gc();){if(t=$H(bve(n),87),UO(e)===UO(rN(i=t.c,88)?$H(i,26):(pKe(),hDt)))return r;++r}return-1},xKe.Ri=function(){return 0==i4(this.a).i},xKe.Si=function(){return null},xKe.Vi=function(){return i4(this.a).i},xKe.Wi=function(){var e,t,n,r,i,o;for(o=i4(this.a).i,i=N8(Met,jKe,1,o,5,1),n=0,t=new ON(i4(this.a));t.e!=t.i.gc();)e=$H(bve(t),87),i[n++]=rN(r=e.c,88)?$H(r,26):(pKe(),hDt);return i},xKe.Xi=function(e){var t,n,r,i;for(i=i4(this.a).i,e.length<i&&(e=Rne(Zle(e).c,i)),e.length>i&&MV(e,i,null),n=0,t=new ON(i4(this.a));t.e!=t.i.gc();)MV(e,n++,rN(r=$H(bve(t),87).c,88)?$H(r,26):(pKe(),hDt));return e},xKe.Yi=function(){var e,t,n,r,i;for((i=new Ew).a+="[",e=i4(this.a),t=0,r=i4(this.a).i;t<r;)rM(i,bR(rN(n=$H(Gte(e,t),87).c,88)?$H(n,26):(pKe(),hDt))),++t<r&&(i.a+=FKe);return i.a+="]",i.a},xKe.$i=function(e){},xKe.aj=function(){return 10},xKe.Bk=function(){return!0},xKe.bj=function(){return!1},xKe.Ck=function(){return!1},xKe.Dk=function(){return!1},xKe.Ek=function(){return!0},xKe.rk=function(){return!1},xKe.Fk=function(){return!0},xKe.wj=function(e){return rN(e,88)},xKe.fj=function(){return K1(this.a)},xKe.hi=function(){return!0},xKe.ni=function(){return!0},mV(u6e,"EClassImpl/8",1150),hIe(1151,1964,IYe,gv),xKe.Zc=function(e){return sre(this.a,e)},xKe.gc=function(){return i4(this.a.a).i},mV(u6e,"EClassImpl/8/1",1151),hIe(1152,497,l8e,Ol),xKe.ri=function(e){return N8($It,jKe,138,e,0,1)},xKe.ni=function(){return!1},mV(u6e,"EClassImpl/9",1152),hIe(1139,53,eXe,Tb),mV(u6e,"EClassImpl/MyHashSet",1139),hIe(566,351,{105:1,92:1,90:1,138:1,148:1,834:1,147:1,191:1,56:1,108:1,49:1,97:1,351:1,150:1,114:1,115:1,676:1},wA),xKe._g=function(e,t,n){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return tye(this);case 4:return this.zj();case 5:return this.F;case 6:return t?zte(this):hZ(this);case 7:return!this.A&&(this.A=new DN(TDt,this,7)),this.A;case 8:return lR(),!!(256&this.Bb)}return z7(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e),t,n)},xKe.lh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!tye(this);case 4:return null!=this.zj();case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!hZ(this);case 7:return!!this.A&&0!=this.A.i;case 8:return!(256&this.Bb)}return k3(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e))},xKe.sh=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),sQe(this.Ab),!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void gV(this.Ab,$H(t,14));case 1:return void XZ(this,EB(t));case 2:return void TI(this,EB(t));case 5:return void YQe(this,EB(t));case 7:return!this.A&&(this.A=new DN(TDt,this,7)),sQe(this.A),!this.A&&(this.A=new DN(TDt,this,7)),void gV(this.A,$H(t,14));case 8:return void Xde(this,Hy(_B(t)))}Ife(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e),t)},xKe.zh=function(){return pKe(),iDt},xKe.Bh=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void sQe(this.Ab);case 1:return rN(this.Cb,179)&&($H(this.Cb,179).tb=null),void Die(this,null);case 2:return Rce(this,null),void Nne(this,this.D);case 5:return void YQe(this,null);case 7:return!this.A&&(this.A=new DN(TDt,this,7)),void sQe(this.A);case 8:return void Xde(this,!0)}Hde(this,e-dV(this.zh()),tte($H(Aae(this,16),26)||this.zh(),e))},xKe.Gh=function(){Cde((TTe(),qDt),this).ne(),this.Bb|=1},xKe.Fj=function(){var e,t;if(!this.c&&!(e=UDe(zte(this))).dc())for(t=e.Kc();t.Ob();)D$e(this,EB(t.Pb()))&&Lhe(this);return this.b},xKe.zj=function(){var e;if(!this.e){e=null;try{e=tye(this)}catch(e){if(!rN(e=use(e),102))throw jv(e)}this.d=null,e&&1&e.i&&(this.d=e==ORt?(lR(),mtt):e==kRt?the(0):e==NRt?new Df(0):e==DRt?0:e==MRt?yme(0):e==RRt?nhe(0):e==IRt?See(0):cse(0)),this.e=!0}return this.d},xKe.Ej=function(){return!!(256&this.Bb)},xKe.Ik=function(e){e&&(this.D="org.eclipse.emf.common.util.AbstractEnumerator")},xKe.xk=function(e){zie(this,e),this.Ik(e)},xKe.yk=function(e){this.C=e,this.e=!1},xKe.Ib=function(){var e;return 64&this.Db?Cpe(this):((e=new cR(Cpe(this))).a+=" (serializable: ",Ax(e,!!(256&this.Bb)),e.a+=")",e.a)},xKe.c=!1,xKe.d=null,xKe.e=!1,mV(u6e,"EDataTypeImpl",566),hIe(457,566,{105:1,92:1,90:1,138:1,148:1,834:1,671:1,147:1,191:1,56:1,108:1,49:1,97:1,351:1,457:1,150:1,114:1,115:1,676:1},Ob),xKe._g=function(e,t,n){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return null!=this.D?this.D:this.B;case 3:return tye(this);case 4:return Kce(this);case 5:return this.F;case 6:return t?zte(this):hZ(this);case 7:return!this.A&&(this.A=new DN(TDt,this,7)),this.A;case 8:return lR(),!!(256&this.Bb);case 9:return!this.a&&(this.a=new eG(WIt,this,9,5)),this.a}return z7(this,e-dV((pKe(),oDt)),tte($H(Aae(this,16),26)||oDt,e),t,n)},xKe.hh=function(e,t,n){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Ype(this.Ab,e,n);case 6:return this.Cb&&(n=(r=this.Db>>16)>=0?cye(this,n):this.Cb.ih(this,-1-r,null,n)),_$e(this,e,6,n);case 9:return!this.a&&(this.a=new eG(WIt,this,9,5)),Ype(this.a,e,n)}return $H(tte($H(Aae(this,16),26)||(pKe(),oDt),t),66).Nj().Qj(this,cme(this),t-dV((pKe(),oDt)),e,n)},xKe.jh=function(e,t,n){switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Pve(this.Ab,e,n);case 6:return _$e(this,null,6,n);case 7:return!this.A&&(this.A=new DN(TDt,this,7)),Pve(this.A,e,n);case 9:return!this.a&&(this.a=new eG(WIt,this,9,5)),Pve(this.a,e,n)}return $H(tte($H(Aae(this,16),26)||(pKe(),oDt),t),66).Nj().Rj(this,cme(this),t-dV((pKe(),oDt)),e,n)},xKe.lh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return null!=this.D&&this.D==this.F;case 3:return!!tye(this);case 4:return!!Kce(this);case 5:return null!=this.F&&this.F!=this.D&&this.F!=this.B;case 6:return!!hZ(this);case 7:return!!this.A&&0!=this.A.i;case 8:return!(256&this.Bb);case 9:return!!this.a&&0!=this.a.i}return k3(this,e-dV((pKe(),oDt)),tte($H(Aae(this,16),26)||oDt,e))},xKe.sh=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),sQe(this.Ab),!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void gV(this.Ab,$H(t,14));case 1:return void XZ(this,EB(t));case 2:return void TI(this,EB(t));case 5:return void YQe(this,EB(t));case 7:return!this.A&&(this.A=new DN(TDt,this,7)),sQe(this.A),!this.A&&(this.A=new DN(TDt,this,7)),void gV(this.A,$H(t,14));case 8:return void Xde(this,Hy(_B(t)));case 9:return!this.a&&(this.a=new eG(WIt,this,9,5)),sQe(this.a),!this.a&&(this.a=new eG(WIt,this,9,5)),void gV(this.a,$H(t,14))}Ife(this,e-dV((pKe(),oDt)),tte($H(Aae(this,16),26)||oDt,e),t)},xKe.zh=function(){return pKe(),oDt},xKe.Bh=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void sQe(this.Ab);case 1:return rN(this.Cb,179)&&($H(this.Cb,179).tb=null),void Die(this,null);case 2:return Rce(this,null),void Nne(this,this.D);case 5:return void YQe(this,null);case 7:return!this.A&&(this.A=new DN(TDt,this,7)),void sQe(this.A);case 8:return void Xde(this,!0);case 9:return!this.a&&(this.a=new eG(WIt,this,9,5)),void sQe(this.a)}Hde(this,e-dV((pKe(),oDt)),tte($H(Aae(this,16),26)||oDt,e))},xKe.Gh=function(){var e,t;if(this.a)for(e=0,t=this.a.i;e<t;++e)mL(Gte(this.a,e));Cde((TTe(),qDt),this).ne(),this.Bb|=1},xKe.zj=function(){return Kce(this)},xKe.wj=function(e){return null!=e},xKe.Ik=function(e){},mV(u6e,"EEnumImpl",457),hIe(573,438,{105:1,92:1,90:1,1940:1,678:1,147:1,191:1,56:1,108:1,49:1,97:1,573:1,150:1,114:1,115:1},yA),xKe.ne=function(){return this.zb},xKe.Qg=function(e){return uwe(this,e)},xKe._g=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return the(this.d);case 3:return this.b?this.b:this.a;case 4:return null==(r=this.c)?this.zb:r;case 5:return this.Db>>16==5?$H(this.Cb,671):null}return z7(this,e-dV((pKe(),aDt)),tte($H(Aae(this,16),26)||aDt,e),t,n)},xKe.hh=function(e,t,n){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Ype(this.Ab,e,n);case 5:return this.Cb&&(n=(r=this.Db>>16)>=0?uwe(this,n):this.Cb.ih(this,-1-r,null,n)),_$e(this,e,5,n)}return $H(tte($H(Aae(this,16),26)||(pKe(),aDt),t),66).Nj().Qj(this,cme(this),t-dV((pKe(),aDt)),e,n)},xKe.jh=function(e,t,n){switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Pve(this.Ab,e,n);case 5:return _$e(this,null,5,n)}return $H(tte($H(Aae(this,16),26)||(pKe(),aDt),t),66).Nj().Rj(this,cme(this),t-dV((pKe(),aDt)),e,n)},xKe.lh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return 0!=this.d;case 3:return!!this.b;case 4:return null!=this.c;case 5:return!(this.Db>>16!=5||!$H(this.Cb,671))}return k3(this,e-dV((pKe(),aDt)),tte($H(Aae(this,16),26)||aDt,e))},xKe.sh=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),sQe(this.Ab),!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void gV(this.Ab,$H(t,14));case 1:return void Die(this,EB(t));case 2:return void Mne(this,$H(t,19).a);case 3:return void pMe(this,$H(t,1940));case 4:return void Fre(this,EB(t))}Ife(this,e-dV((pKe(),aDt)),tte($H(Aae(this,16),26)||aDt,e),t)},xKe.zh=function(){return pKe(),aDt},xKe.Bh=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void sQe(this.Ab);case 1:return void Die(this,null);case 2:return void Mne(this,0);case 3:return void pMe(this,null);case 4:return void Fre(this,null)}Hde(this,e-dV((pKe(),aDt)),tte($H(Aae(this,16),26)||aDt,e))},xKe.Ib=function(){var e;return null==(e=this.c)?this.zb:e},xKe.b=null,xKe.c=null,xKe.d=0,mV(u6e,"EEnumLiteralImpl",573);var MDt,IDt,DDt,NDt=dQ(u6e,"EFactoryImpl/InternalEDateTimeFormat");hIe(489,1,{2015:1},mv),mV(u6e,"EFactoryImpl/1ClientInternalEDateTimeFormat",489),hIe(241,115,{105:1,92:1,90:1,87:1,56:1,108:1,49:1,97:1,241:1,114:1,115:1},Bv),xKe.Sg=function(e,t,n){var r;return n=_$e(this,e,t,n),this.e&&rN(e,170)&&(r=bNe(this,this.e))!=this.c&&(n=iWe(this,r,n)),n},xKe._g=function(e,t,n){switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new MN(GIt,this,1)),this.d;case 2:return t?uje(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?HAe(this):this.a}return z7(this,e-dV((pKe(),lDt)),tte($H(Aae(this,16),26)||lDt,e),t,n)},xKe.jh=function(e,t,n){switch(t){case 0:return Jue(this,null,n);case 1:return!this.d&&(this.d=new MN(GIt,this,1)),Pve(this.d,e,n);case 3:return Xue(this,null,n)}return $H(tte($H(Aae(this,16),26)||(pKe(),lDt),t),66).Nj().Rj(this,cme(this),t-dV((pKe(),lDt)),e,n)},xKe.lh=function(e){switch(e){case 0:return!!this.f;case 1:return!!this.d&&0!=this.d.i;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return k3(this,e-dV((pKe(),lDt)),tte($H(Aae(this,16),26)||lDt,e))},xKe.sh=function(e,t){switch(e){case 0:return void yxe(this,$H(t,87));case 1:return!this.d&&(this.d=new MN(GIt,this,1)),sQe(this.d),!this.d&&(this.d=new MN(GIt,this,1)),void gV(this.d,$H(t,14));case 3:return void bxe(this,$H(t,87));case 4:return void RSe(this,$H(t,836));case 5:return void rne(this,$H(t,138))}Ife(this,e-dV((pKe(),lDt)),tte($H(Aae(this,16),26)||lDt,e),t)},xKe.zh=function(){return pKe(),lDt},xKe.Bh=function(e){switch(e){case 0:return void yxe(this,null);case 1:return!this.d&&(this.d=new MN(GIt,this,1)),void sQe(this.d);case 3:return void bxe(this,null);case 4:return void RSe(this,null);case 5:return void rne(this,null)}Hde(this,e-dV((pKe(),lDt)),tte($H(Aae(this,16),26)||lDt,e))},xKe.Ib=function(){var e;return(e=new uR(SDe(this))).a+=" (expression: ",dUe(this,e),e.a+=")",e.a},mV(u6e,"EGenericTypeImpl",241),hIe(1969,1964,H7e),xKe.Xh=function(e,t){JB(this,e,t)},xKe.lk=function(e,t){return JB(this,this.gc(),e),t},xKe.pi=function(e){return Rve(this.Gi(),e)},xKe.Zh=function(){return this.$h()},xKe.Gi=function(){return new Sv(this)},xKe.$h=function(){return this._h(0)},xKe._h=function(e){return this.Gi().Zc(e)},xKe.mk=function(e,t){return Ape(this,e,!0),t},xKe.ii=function(e,t){var n;return n=Zye(this,t),this.Zc(e).Rb(n),n},xKe.ji=function(e,t){Ape(this,t,!0),this.Zc(e).Rb(t)},mV(A7e,"AbstractSequentialInternalEList",1969),hIe(486,1969,H7e,KR),xKe.pi=function(e){return Rve(this.Gi(),e)},xKe.Zh=function(){return null==this.b?(YS(),YS(),DDt):this.Jk()},xKe.Gi=function(){return new RM(this.a,this.b)},xKe.$h=function(){return null==this.b?(YS(),YS(),DDt):this.Jk()},xKe._h=function(e){var t,n;if(null==this.b){if(e<0||e>1)throw jv(new Oy(e7e+e+", size=0"));return YS(),YS(),DDt}for(n=this.Jk(),t=0;t<e;++t)xae(n);return n},xKe.dc=function(){var e,t,n,r,i,o;if(null!=this.b)for(n=0;n<this.b.length;++n)if(e=this.b[n],!this.Mk()||this.a.mh(e))if(o=this.a.bh(e,!1),XS(),$H(e,66).Oj()){for(r=0,i=(t=$H(o,153)).gc();r<i;++r)if(hV(t.il(r))&&null!=t.jl(r))return!1}else if(e.$j()){if(!$H(o,14).dc())return!1}else if(null!=o)return!1;return!0},xKe.Kc=function(){return wie(this)},xKe.Zc=function(e){var t,n;if(null==this.b){if(0!=e)throw jv(new Oy(e7e+e+", size=0"));return YS(),YS(),DDt}for(n=this.Lk()?this.Kk():this.Jk(),t=0;t<e;++t)xae(n);return n},xKe.ii=function(e,t){throw jv(new gA)},xKe.ji=function(e,t){throw jv(new gA)},xKe.Jk=function(){return new YR(this.a,this.b)},xKe.Kk=function(){return new VL(this.a,this.b)},xKe.Lk=function(){return!0},xKe.gc=function(){var e,t,n,r,i,o,a;if(i=0,null!=this.b)for(n=0;n<this.b.length;++n)if(e=this.b[n],!this.Mk()||this.a.mh(e))if(a=this.a.bh(e,!1),XS(),$H(e,66).Oj())for(r=0,o=(t=$H(a,153)).gc();r<o;++r)hV(t.il(r))&&null!=t.jl(r)&&++i;else e.$j()?i+=$H(a,14).gc():null!=a&&++i;return i},xKe.Mk=function(){return!0},mV(A7e,"EContentsEList",486),hIe(1156,486,H7e,GL),xKe.Jk=function(){return new KL(this.a,this.b)},xKe.Kk=function(){return new YL(this.a,this.b)},xKe.Mk=function(){return!1},mV(u6e,"ENamedElementImpl/1",1156),hIe(279,1,U7e,YR),xKe.Nb=function(e){cG(this,e)},xKe.Rb=function(e){throw jv(new gA)},xKe.Nk=function(e){if(0!=this.g||this.e)throw jv(new Fy("Iterator already in use or already filtered"));this.e=e},xKe.Ob=function(){var e,t,n,r,i,o;switch(this.g){case 3:case 2:return!0;case 1:return!1;case-3:this.p?this.p.Pb():++this.n;default:if(this.k&&(this.p?bTe(this,this.p):gMe(this)))return i=this.p?this.p.Pb():this.j?this.j.pi(this.n++):this.k.Xb(this.n++),this.f?((e=$H(i,72)).ak(),n=e.dd(),this.i=n):(n=i,this.i=n),this.g=3,!0;for(;this.d<this.c.length;)if(t=this.c[this.d++],(!this.e||t.Gj()!=IMt||0!=t.aj())&&(!this.Mk()||this.b.mh(t)))if(o=this.b.bh(t,this.Lk()),this.f=(XS(),$H(t,66).Oj()),this.f||t.$j()){if(this.Lk()?(r=$H(o,15),this.k=r):(r=$H(o,69),this.k=this.j=r),rN(this.k,54)?(this.p=null,this.o=this.k.gc(),this.n=0):this.p=this.j?this.j.$h():this.k.Yc(),this.p?bTe(this,this.p):gMe(this))return i=this.p?this.p.Pb():this.j?this.j.pi(this.n++):this.k.Xb(this.n++),this.f?((e=$H(i,72)).ak(),n=e.dd(),this.i=n):(n=i,this.i=n),this.g=3,!0}else if(null!=o)return this.k=null,this.p=null,n=o,this.i=n,this.g=2,!0;return this.k=null,this.p=null,this.f=!1,this.g=1,!1}},xKe.Sb=function(){var e,t,n,r,i,o;switch(this.g){case-3:case-2:return!0;case-1:return!1;case 3:this.p?this.p.Ub():--this.n;default:if(this.k&&(this.p?yTe(this,this.p):hke(this)))return i=this.p?this.p.Ub():this.j?this.j.pi(--this.n):this.k.Xb(--this.n),this.f?((e=$H(i,72)).ak(),n=e.dd(),this.i=n):(n=i,this.i=n),this.g=-3,!0;for(;this.d>0;)if(t=this.c[--this.d],(!this.e||t.Gj()!=IMt||0!=t.aj())&&(!this.Mk()||this.b.mh(t)))if(o=this.b.bh(t,this.Lk()),this.f=(XS(),$H(t,66).Oj()),this.f||t.$j()){if(this.Lk()?(r=$H(o,15),this.k=r):(r=$H(o,69),this.k=this.j=r),rN(this.k,54)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j._h(this.k.gc()):this.k.Zc(this.k.gc()),this.p?yTe(this,this.p):hke(this))return i=this.p?this.p.Ub():this.j?this.j.pi(--this.n):this.k.Xb(--this.n),this.f?((e=$H(i,72)).ak(),n=e.dd(),this.i=n):(n=i,this.i=n),this.g=-3,!0}else if(null!=o)return this.k=null,this.p=null,n=o,this.i=n,this.g=-2,!0;return this.k=null,this.p=null,this.g=-1,!1}},xKe.Pb=function(){return xae(this)},xKe.Tb=function(){return this.a},xKe.Ub=function(){var e;if(this.g<-1||this.Sb())return--this.a,this.g=0,e=this.i,this.Sb(),e;throw jv(new AA)},xKe.Vb=function(){return this.a-1},xKe.Qb=function(){throw jv(new gA)},xKe.Lk=function(){return!1},xKe.Wb=function(e){throw jv(new gA)},xKe.Mk=function(){return!0},xKe.a=0,xKe.d=0,xKe.f=!1,xKe.g=0,xKe.n=0,xKe.o=0,mV(A7e,"EContentsEList/FeatureIteratorImpl",279),hIe(697,279,U7e,VL),xKe.Lk=function(){return!0},mV(A7e,"EContentsEList/ResolvingFeatureIteratorImpl",697),hIe(1157,697,U7e,YL),xKe.Mk=function(){return!1},mV(u6e,"ENamedElementImpl/1/1",1157),hIe(1158,279,U7e,KL),xKe.Mk=function(){return!1},mV(u6e,"ENamedElementImpl/1/2",1158),hIe(36,143,Z8e,c4,u4,JW,b7,D9,Z5,jne,E1,Hne,S1,q5,C1,zne,T1,X5,k1,Une,O1,ZW,y7,Uq,Qne,M1,J5,I1),xKe._i=function(){return l7(this)},xKe.gj=function(){var e;return(e=l7(this))?e.zj():null},xKe.yi=function(e){return-1==this.b&&this.a&&(this.b=this.c.Xg(this.a.aj(),this.a.Gj())),this.c.Og(this.b,e)},xKe.Ai=function(){return this.c},xKe.hj=function(){var e;return!!(e=l7(this))&&e.Kj()},xKe.b=-1,mV(u6e,"ENotificationImpl",36),hIe(399,284,{105:1,92:1,90:1,147:1,191:1,56:1,59:1,108:1,472:1,49:1,97:1,150:1,399:1,284:1,114:1,115:1},Mb),xKe.Qg=function(e){return Swe(this,e)},xKe._g=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return lR(),!!(256&this.Bb);case 3:return lR(),!!(512&this.Bb);case 4:return the(this.s);case 5:return the(this.t);case 6:return lR(),(r=this.t)>1||-1==r;case 7:return lR(),this.s>=1;case 8:return t?Twe(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?$H(this.Cb,26):null;case 11:return!this.d&&(this.d=new DN(TDt,this,11)),this.d;case 12:return!this.c&&(this.c=new eG(KIt,this,12,10)),this.c;case 13:return!this.a&&(this.a=new aP(this,this)),this.a;case 14:return j9(this)}return z7(this,e-dV((pKe(),fDt)),tte($H(Aae(this,16),26)||fDt,e),t,n)},xKe.hh=function(e,t,n){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Ype(this.Ab,e,n);case 10:return this.Cb&&(n=(r=this.Db>>16)>=0?Swe(this,n):this.Cb.ih(this,-1-r,null,n)),_$e(this,e,10,n);case 12:return!this.c&&(this.c=new eG(KIt,this,12,10)),Ype(this.c,e,n)}return $H(tte($H(Aae(this,16),26)||(pKe(),fDt),t),66).Nj().Qj(this,cme(this),t-dV((pKe(),fDt)),e,n)},xKe.jh=function(e,t,n){switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Pve(this.Ab,e,n);case 9:return pV(this,n);case 10:return _$e(this,null,10,n);case 11:return!this.d&&(this.d=new DN(TDt,this,11)),Pve(this.d,e,n);case 12:return!this.c&&(this.c=new eG(KIt,this,12,10)),Pve(this.c,e,n);case 14:return Pve(j9(this),e,n)}return $H(tte($H(Aae(this,16),26)||(pKe(),fDt),t),66).Nj().Rj(this,cme(this),t-dV((pKe(),fDt)),e,n)},xKe.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!(256&this.Bb);case 3:return!(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(t=this.t)>1||-1==t;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==AK(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==AK(this.q).i);case 10:return!(this.Db>>16!=10||!$H(this.Cb,26));case 11:return!!this.d&&0!=this.d.i;case 12:return!!this.c&&0!=this.c.i;case 13:return!(!this.a||0==j9(this.a.a).i||this.b&&BAe(this.b));case 14:return!!this.b&&BAe(this.b)}return k3(this,e-dV((pKe(),fDt)),tte($H(Aae(this,16),26)||fDt,e))},xKe.sh=function(e,t){var n;switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),sQe(this.Ab),!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void gV(this.Ab,$H(t,14));case 1:return void Die(this,EB(t));case 2:return void Yde(this,Hy(_B(t)));case 3:return void Jde(this,Hy(_B(t)));case 4:return void Ine(this,$H(t,19).a);case 5:return void Dne(this,$H(t,19).a);case 8:return void Tue(this,$H(t,138));case 9:return void((n=jEe(this,$H(t,87),null))&&n.Fi());case 11:return!this.d&&(this.d=new DN(TDt,this,11)),sQe(this.d),!this.d&&(this.d=new DN(TDt,this,11)),void gV(this.d,$H(t,14));case 12:return!this.c&&(this.c=new eG(KIt,this,12,10)),sQe(this.c),!this.c&&(this.c=new eG(KIt,this,12,10)),void gV(this.c,$H(t,14));case 13:return!this.a&&(this.a=new aP(this,this)),mQe(this.a),!this.a&&(this.a=new aP(this,this)),void gV(this.a,$H(t,14));case 14:return sQe(j9(this)),void gV(j9(this),$H(t,14))}Ife(this,e-dV((pKe(),fDt)),tte($H(Aae(this,16),26)||fDt,e),t)},xKe.zh=function(){return pKe(),fDt},xKe.Bh=function(e){var t;switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void sQe(this.Ab);case 1:return void Die(this,null);case 2:return void Yde(this,!0);case 3:return void Jde(this,!0);case 4:return void Ine(this,0);case 5:return void Dne(this,1);case 8:return void Tue(this,null);case 9:return void((t=jEe(this,null,null))&&t.Fi());case 11:return!this.d&&(this.d=new DN(TDt,this,11)),void sQe(this.d);case 12:return!this.c&&(this.c=new eG(KIt,this,12,10)),void sQe(this.c);case 13:return void(this.a&&mQe(this.a));case 14:return void(this.b&&sQe(this.b))}Hde(this,e-dV((pKe(),fDt)),tte($H(Aae(this,16),26)||fDt,e))},xKe.Gh=function(){var e,t;if(this.c)for(e=0,t=this.c.i;e<t;++e)mL(Gte(this.c,e));Twe(this),this.Bb|=1},mV(u6e,"EOperationImpl",399),hIe(505,742,j7e,aP),xKe.Hi=function(e,t){cB(this,e,$H(t,138))},xKe.Ii=function(e){tD(this,$H(e,138))},xKe.Oi=function(e){return $H(Gte(j9(this.a),e),87).c||(pKe(),cDt)},xKe.Ti=function(e){return $H(cBe(j9(this.a),e),87).c||(pKe(),cDt)},xKe.Ui=function(e,t){return dme(this,e,$H(t,138))},xKe.ai=function(){return!1},xKe.Zi=function(e,t,n,r,i){return null},xKe.Ji=function(){return new vv(this)},xKe.Ki=function(){sQe(j9(this.a))},xKe.Li=function(e){return ahe(this,e)},xKe.Mi=function(e){var t;for(t=e.Kc();t.Ob();)if(!ahe(this,t.Pb()))return!1;return!0},xKe.Ni=function(e){var t,n,r;if(rN(e,15)&&(r=$H(e,15)).gc()==j9(this.a).i){for(t=r.Kc(),n=new ON(this);t.Ob();)if(UO(t.Pb())!==UO(bve(n)))return!1;return!0}return!1},xKe.Pi=function(){var e,t,n;for(t=1,e=new ON(j9(this.a));e.e!=e.i.gc();)t=31*t+((n=$H(bve(e),87).c||(pKe(),cDt))?Jle(n):0);return t},xKe.Qi=function(e){var t,n,r;for(r=0,n=new ON(j9(this.a));n.e!=n.i.gc();){if(t=$H(bve(n),87),UO(e)===UO(t.c||(pKe(),cDt)))return r;++r}return-1},xKe.Ri=function(){return 0==j9(this.a).i},xKe.Si=function(){return null},xKe.Vi=function(){return j9(this.a).i},xKe.Wi=function(){var e,t,n,r,i;for(i=j9(this.a).i,r=N8(Met,jKe,1,i,5,1),n=0,t=new ON(j9(this.a));t.e!=t.i.gc();)e=$H(bve(t),87),r[n++]=e.c||(pKe(),cDt);return r},xKe.Xi=function(e){var t,n,r;for(r=j9(this.a).i,e.length<r&&(e=Rne(Zle(e).c,r)),e.length>r&&MV(e,r,null),n=0,t=new ON(j9(this.a));t.e!=t.i.gc();)MV(e,n++,$H(bve(t),87).c||(pKe(),cDt));return e},xKe.Yi=function(){var e,t,n,r;for((r=new Ew).a+="[",e=j9(this.a),t=0,n=j9(this.a).i;t<n;)rM(r,bR($H(Gte(e,t),87).c||(pKe(),cDt))),++t<n&&(r.a+=FKe);return r.a+="]",r.a},xKe.$i=function(e){},xKe.aj=function(){return 13},xKe.Bk=function(){return!0},xKe.bj=function(){return!1},xKe.Ck=function(){return!1},xKe.Dk=function(){return!1},xKe.Ek=function(){return!0},xKe.rk=function(){return!1},xKe.Fk=function(){return!0},xKe.wj=function(e){return rN(e,138)},xKe.fj=function(){return V1(this.a)},xKe.hi=function(){return!0},xKe.ni=function(){return!0},mV(u6e,"EOperationImpl/1",505),hIe(1340,1964,IYe,vv),xKe.Zc=function(e){return sre(this.a,e)},xKe.gc=function(){return j9(this.a.a).i},mV(u6e,"EOperationImpl/1/1",1340),hIe(1341,545,L7e,qz),xKe.ii=function(e,t){var n;return n=$H(The(this,e,t),87),vI(this.e)&&IA(this,new y7(this.a,7,(pKe(),pDt),the(t),n.c||cDt,e)),n},xKe.jj=function(e,t){return xde(this,$H(e,87),t)},xKe.kj=function(e,t){return Ede(this,$H(e,87),t)},xKe.lj=function(e,t,n){return Gme(this,$H(e,87),$H(t,87),n)},xKe.Zi=function(e,t,n,r,i){switch(e){case 3:return AZ(this,e,t,n,r,this.i>1);case 5:return AZ(this,e,t,n,r,this.i-$H(n,15).gc()>0);default:return new D9(this.e,e,this.c,t,n,r,!0)}},xKe.ij=function(){return!0},xKe.fj=function(){return BAe(this)},xKe.Xj=function(){sQe(this)},mV(u6e,"EOperationImpl/2",1341),hIe(498,1,{1938:1,498:1},kO),mV(u6e,"EPackageImpl/1",498),hIe(16,85,L7e,eG),xKe.zk=function(){return this.d},xKe.Ak=function(){return this.b},xKe.Dk=function(){return!0},xKe.b=0,mV(A7e,"EObjectContainmentWithInverseEList",16),hIe(353,16,L7e,eF),xKe.Ek=function(){return!0},xKe.li=function(e,t){return UMe(this,e,$H(t,56))},mV(A7e,"EObjectContainmentWithInverseEList/Resolving",353),hIe(298,353,L7e,qW),xKe.ci=function(){this.a.tb=null},mV(u6e,"EPackageImpl/2",298),hIe(1228,1,{},Ml),mV(u6e,"EPackageImpl/3",1228),hIe(718,43,Zqe,Db),xKe._b=function(e){return WO(e)?eX(this,e):!!OX(this.f,e)},mV(u6e,"EPackageRegistryImpl",718),hIe(509,284,{105:1,92:1,90:1,147:1,191:1,56:1,2017:1,108:1,472:1,49:1,97:1,150:1,509:1,284:1,114:1,115:1},Ib),xKe.Qg=function(e){return Cwe(this,e)},xKe._g=function(e,t,n){var r;switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return lR(),!!(256&this.Bb);case 3:return lR(),!!(512&this.Bb);case 4:return the(this.s);case 5:return the(this.t);case 6:return lR(),(r=this.t)>1||-1==r;case 7:return lR(),this.s>=1;case 8:return t?Twe(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?$H(this.Cb,59):null}return z7(this,e-dV((pKe(),mDt)),tte($H(Aae(this,16),26)||mDt,e),t,n)},xKe.hh=function(e,t,n){var r;switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Ype(this.Ab,e,n);case 10:return this.Cb&&(n=(r=this.Db>>16)>=0?Cwe(this,n):this.Cb.ih(this,-1-r,null,n)),_$e(this,e,10,n)}return $H(tte($H(Aae(this,16),26)||(pKe(),mDt),t),66).Nj().Qj(this,cme(this),t-dV((pKe(),mDt)),e,n)},xKe.jh=function(e,t,n){switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Pve(this.Ab,e,n);case 9:return pV(this,n);case 10:return _$e(this,null,10,n)}return $H(tte($H(Aae(this,16),26)||(pKe(),mDt),t),66).Nj().Rj(this,cme(this),t-dV((pKe(),mDt)),e,n)},xKe.lh=function(e){var t;switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!(256&this.Bb);case 3:return!(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(t=this.t)>1||-1==t;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==AK(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==AK(this.q).i);case 10:return!(this.Db>>16!=10||!$H(this.Cb,59))}return k3(this,e-dV((pKe(),mDt)),tte($H(Aae(this,16),26)||mDt,e))},xKe.zh=function(){return pKe(),mDt},mV(u6e,"EParameterImpl",509),hIe(99,449,{105:1,92:1,90:1,147:1,191:1,56:1,18:1,170:1,66:1,108:1,472:1,49:1,97:1,150:1,99:1,449:1,284:1,114:1,115:1,677:1},gB),xKe._g=function(e,t,n){var r,i;switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return lR(),!!(256&this.Bb);case 3:return lR(),!!(512&this.Bb);case 4:return the(this.s);case 5:return the(this.t);case 6:return lR(),(i=this.t)>1||-1==i;case 7:return lR(),this.s>=1;case 8:return t?Twe(this):this.r;case 9:return this.q;case 10:return lR(),!!(this.Bb&b6e);case 11:return lR(),!!(this.Bb&x7e);case 12:return lR(),!!(this.Bb&Pqe);case 13:return this.j;case 14:return HNe(this);case 15:return lR(),!!(this.Bb&_7e);case 16:return lR(),!!(this.Bb&lYe);case 17:return fZ(this);case 18:return lR(),!!(this.Bb&l6e);case 19:return lR(),!!((r=CAe(this))&&r.Bb&l6e);case 20:return lR(),!!(this.Bb&$qe);case 21:return t?CAe(this):this.b;case 22:return t?Tle(this):B5(this);case 23:return!this.a&&(this.a=new LN(FIt,this,23)),this.a}return z7(this,e-dV((pKe(),vDt)),tte($H(Aae(this,16),26)||vDt,e),t,n)},xKe.lh=function(e){var t,n;switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!(256&this.Bb);case 3:return!(512&this.Bb);case 4:return 0!=this.s;case 5:return 1!=this.t;case 6:return(n=this.t)>1||-1==n;case 7:return this.s>=1;case 8:return!!this.r&&!this.q.e&&0==AK(this.q).i;case 9:return!(!this.q||this.r&&!this.q.e&&0==AK(this.q).i);case 10:return!(this.Bb&b6e);case 11:return!!(this.Bb&x7e);case 12:return!!(this.Bb&Pqe);case 13:return null!=this.j;case 14:return null!=HNe(this);case 15:return!!(this.Bb&_7e);case 16:return!!(this.Bb&lYe);case 17:return!!fZ(this);case 18:return!!(this.Bb&l6e);case 19:return!!(t=CAe(this))&&!!(t.Bb&l6e);case 20:return!(this.Bb&$qe);case 21:return!!this.b;case 22:return!!B5(this);case 23:return!!this.a&&0!=this.a.i}return k3(this,e-dV((pKe(),vDt)),tte($H(Aae(this,16),26)||vDt,e))},xKe.sh=function(e,t){var n;switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),sQe(this.Ab),!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void gV(this.Ab,$H(t,14));case 1:return void qZ(this,EB(t));case 2:return void Yde(this,Hy(_B(t)));case 3:return void Jde(this,Hy(_B(t)));case 4:return void Ine(this,$H(t,19).a);case 5:return void Dne(this,$H(t,19).a);case 8:return void Tue(this,$H(t,138));case 9:return void((n=jEe(this,$H(t,87),null))&&n.Fi());case 10:return void Ohe(this,Hy(_B(t)));case 11:return void Dhe(this,Hy(_B(t)));case 12:return void Mhe(this,Hy(_B(t)));case 13:return void PO(this,EB(t));case 15:return void Ihe(this,Hy(_B(t)));case 16:return void Hhe(this,Hy(_B(t)));case 18:return void YZ(this,Hy(_B(t)));case 20:return void zhe(this,Hy(_B(t)));case 21:return void nie(this,$H(t,18));case 23:return!this.a&&(this.a=new LN(FIt,this,23)),sQe(this.a),!this.a&&(this.a=new LN(FIt,this,23)),void gV(this.a,$H(t,14))}Ife(this,e-dV((pKe(),vDt)),tte($H(Aae(this,16),26)||vDt,e),t)},xKe.zh=function(){return pKe(),vDt},xKe.Bh=function(e){var t;switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void sQe(this.Ab);case 1:return rN(this.Cb,88)&&Oke(S5($H(this.Cb,88)),4),void Die(this,null);case 2:return void Yde(this,!0);case 3:return void Jde(this,!0);case 4:return void Ine(this,0);case 5:return void Dne(this,1);case 8:return void Tue(this,null);case 9:return void((t=jEe(this,null,null))&&t.Fi());case 10:return void Ohe(this,!0);case 11:return void Dhe(this,!1);case 12:return void Mhe(this,!1);case 13:return this.i=null,void iie(this,null);case 15:return void Ihe(this,!1);case 16:return void Hhe(this,!1);case 18:return Qhe(this,!1),void(rN(this.Cb,88)&&Oke(S5($H(this.Cb,88)),2));case 20:return void zhe(this,!0);case 21:return void nie(this,null);case 23:return!this.a&&(this.a=new LN(FIt,this,23)),void sQe(this.a)}Hde(this,e-dV((pKe(),vDt)),tte($H(Aae(this,16),26)||vDt,e))},xKe.Gh=function(){Tle(this),bY($9((TTe(),qDt),this)),Twe(this),this.Bb|=1},xKe.Lj=function(){return CAe(this)},xKe.qk=function(){var e;return!!(e=CAe(this))&&!!(e.Bb&l6e)},xKe.rk=function(){return!!(this.Bb&l6e)},xKe.sk=function(){return!!(this.Bb&$qe)},xKe.nk=function(e,t){return this.c=null,Sde(this,e,t)},xKe.Ib=function(){var e;return 64&this.Db?wPe(this):((e=new cR(wPe(this))).a+=" (containment: ",Ax(e,!!(this.Bb&l6e)),e.a+=", resolveProxies: ",Ax(e,!!(this.Bb&$qe)),e.a+=")",e.a)},mV(u6e,"EReferenceImpl",99),hIe(548,115,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1,548:1,114:1,115:1},Il),xKe.Fb=function(e){return this===e},xKe.cd=function(){return this.b},xKe.dd=function(){return this.c},xKe.Hb=function(){return SR(this)},xKe.Uh=function(e){mQ(this,EB(e))},xKe.ed=function(e){return MU(this,EB(e))},xKe._g=function(e,t,n){switch(e){case 0:return this.b;case 1:return this.c}return z7(this,e-dV((pKe(),ADt)),tte($H(Aae(this,16),26)||ADt,e),t,n)},xKe.lh=function(e){switch(e){case 0:return null!=this.b;case 1:return null!=this.c}return k3(this,e-dV((pKe(),ADt)),tte($H(Aae(this,16),26)||ADt,e))},xKe.sh=function(e,t){switch(e){case 0:return void vQ(this,EB(t));case 1:return void Bre(this,EB(t))}Ife(this,e-dV((pKe(),ADt)),tte($H(Aae(this,16),26)||ADt,e),t)},xKe.zh=function(){return pKe(),ADt},xKe.Bh=function(e){switch(e){case 0:return void Lre(this,null);case 1:return void Bre(this,null)}Hde(this,e-dV((pKe(),ADt)),tte($H(Aae(this,16),26)||ADt,e))},xKe.Sh=function(){var e;return-1==this.a&&(e=this.b,this.a=null==e?0:mAe(e)),this.a},xKe.Th=function(e){this.a=e},xKe.Ib=function(){var e;return 64&this.Db?SDe(this):((e=new cR(SDe(this))).a+=" (key: ",rM(e,this.b),e.a+=", value: ",rM(e,this.c),e.a+=")",e.a)},xKe.a=-1,xKe.b=null,xKe.c=null;var RDt,LDt,BDt,PDt,FDt,$Dt,jDt,HDt,UDt,QDt,zDt=mV(u6e,"EStringToStringMapEntryImpl",548),WDt=dQ(A7e,"FeatureMap/Entry/Internal");hIe(565,1,Q7e),xKe.Ok=function(e){return this.Pk($H(e,49))},xKe.Pk=function(e){return this.Ok(e)},xKe.Fb=function(e){var t,n;return this===e||!!rN(e,72)&&(t=$H(e,72)).ak()==this.c&&(null==(n=this.dd())?null==t.dd():Dde(n,t.dd()))},xKe.ak=function(){return this.c},xKe.Hb=function(){var e;return e=this.dd(),Jle(this.c)^(null==e?0:Jle(e))},xKe.Ib=function(){var e,t;return t=zte((e=this.c).Hj()).Ph(),e.ne(),(null!=t&&0!=t.length?t+":"+e.ne():e.ne())+"="+this.dd()},mV(u6e,"EStructuralFeatureImpl/BasicFeatureMapEntry",565),hIe(776,565,Q7e,nP),xKe.Pk=function(e){return new nP(this.c,e)},xKe.dd=function(){return this.a},xKe.Qk=function(e,t,n){return Eoe(this,e,this.a,t,n)},xKe.Rk=function(e,t,n){return Soe(this,e,this.a,t,n)},mV(u6e,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",776),hIe(1314,1,{},OO),xKe.Pj=function(e,t,n,r,i){return $H(E7(e,this.b),215).nl(this.a).Wj(r)},xKe.Qj=function(e,t,n,r,i){return $H(E7(e,this.b),215).el(this.a,r,i)},xKe.Rj=function(e,t,n,r,i){return $H(E7(e,this.b),215).fl(this.a,r,i)},xKe.Sj=function(e,t,n){return $H(E7(e,this.b),215).nl(this.a).fj()},xKe.Tj=function(e,t,n,r){$H(E7(e,this.b),215).nl(this.a).Wb(r)},xKe.Uj=function(e,t,n){return $H(E7(e,this.b),215).nl(this.a)},xKe.Vj=function(e,t,n){$H(E7(e,this.b),215).nl(this.a).Xj()},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1314),hIe(89,1,{},SH,uq,LX,h4),xKe.Pj=function(e,t,n,r,i){var o;if(null==(o=t.Ch(n))&&t.Dh(n,o=tKe(this,e)),!i)switch(this.e){case 50:case 41:return $H(o,589).sj();case 40:return $H(o,215).kl()}return o},xKe.Qj=function(e,t,n,r,i){var o;return null==(o=t.Ch(n))&&t.Dh(n,o=tKe(this,e)),$H(o,69).lk(r,i)},xKe.Rj=function(e,t,n,r,i){var o;return null!=(o=t.Ch(n))&&(i=$H(o,69).mk(r,i)),i},xKe.Sj=function(e,t,n){var r;return null!=(r=t.Ch(n))&&$H(r,76).fj()},xKe.Tj=function(e,t,n,r){var i;!(i=$H(t.Ch(n),76))&&t.Dh(n,i=tKe(this,e)),i.Wb(r)},xKe.Uj=function(e,t,n){var r;return null==(r=t.Ch(n))&&t.Dh(n,r=tKe(this,e)),rN(r,76)?$H(r,76):new wv($H(t.Ch(n),15))},xKe.Vj=function(e,t,n){var r;!(r=$H(t.Ch(n),76))&&t.Dh(n,r=tKe(this,e)),r.Xj()},xKe.b=0,xKe.e=0,mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateMany",89),hIe(504,1,{}),xKe.Qj=function(e,t,n,r,i){throw jv(new gA)},xKe.Rj=function(e,t,n,r,i){throw jv(new gA)},xKe.Uj=function(e,t,n){return new dq(this,e,t,n)},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingle",504),hIe(1331,1,b7e,dq),xKe.Wj=function(e){return this.a.Pj(this.c,this.d,this.b,e,!0)},xKe.fj=function(){return this.a.Sj(this.c,this.d,this.b)},xKe.Wb=function(e){this.a.Tj(this.c,this.d,this.b,e)},xKe.Xj=function(){this.a.Vj(this.c,this.d,this.b)},xKe.b=0,mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1331),hIe(769,504,{},vJ),xKe.Pj=function(e,t,n,r,i){return pFe(e,e.eh(),e.Vg())==this.b?this.sk()&&r?rIe(e):e.eh():null},xKe.Qj=function(e,t,n,r,i){var o,a;return e.eh()&&(i=(o=e.Vg())>=0?e.Qg(i):e.eh().ih(e,-1-o,null,i)),a=Ope(e.Tg(),this.e),e.Sg(r,a,i)},xKe.Rj=function(e,t,n,r,i){var o;return o=Ope(e.Tg(),this.e),e.Sg(null,o,i)},xKe.Sj=function(e,t,n){var r;return r=Ope(e.Tg(),this.e),!!e.eh()&&e.Vg()==r},xKe.Tj=function(e,t,n,r){var i,o,a,s,l;if(null!=r&&!Eje(this.a,r))throw jv(new By(z7e+(rN(r,56)?fxe($H(r,56).Tg()):ote(Zle(r)))+W7e+this.a+"'"));if(i=e.eh(),a=Ope(e.Tg(),this.e),UO(r)!==UO(i)||e.Vg()!=a&&null!=r){if(mwe(e,$H(r,56)))throw jv(new Py(h6e+e.Ib()));l=null,i&&(l=(o=e.Vg())>=0?e.Qg(l):e.eh().ih(e,-1-o,null,l)),(s=$H(r,49))&&(l=s.gh(e,Ope(s.Tg(),this.b),null,l)),(l=e.Sg(s,a,l))&&l.Fi()}else e.Lg()&&e.Mg()&&dae(e,new JW(e,1,a,r,r))},xKe.Vj=function(e,t,n){var r,i,o;e.eh()?(o=(r=e.Vg())>=0?e.Qg(null):e.eh().ih(e,-1-r,null,null),i=Ope(e.Tg(),this.e),(o=e.Sg(null,i,o))&&o.Fi()):e.Lg()&&e.Mg()&&dae(e,new ZW(e,1,this.e,null,null))},xKe.sk=function(){return!1},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",769),hIe(1315,769,{},CH),xKe.sk=function(){return!0},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1315),hIe(563,504,{}),xKe.Pj=function(e,t,n,r,i){var o;return null==(o=t.Ch(n))?this.b:UO(o)===UO(RDt)?null:o},xKe.Sj=function(e,t,n){var r;return null!=(r=t.Ch(n))&&(UO(r)===UO(RDt)||!Dde(r,this.b))},xKe.Tj=function(e,t,n,r){var i,o;e.Lg()&&e.Mg()?(i=null==(o=t.Ch(n))?this.b:UO(o)===UO(RDt)?null:o,null==r?null!=this.c?(t.Dh(n,null),r=this.b):null!=this.b?t.Dh(n,RDt):t.Dh(n,null):(this.Sk(r),t.Dh(n,r)),dae(e,this.d.Tk(e,1,this.e,i,r))):null==r?null!=this.c?t.Dh(n,null):null!=this.b?t.Dh(n,RDt):t.Dh(n,null):(this.Sk(r),t.Dh(n,r))},xKe.Vj=function(e,t,n){var r,i;e.Lg()&&e.Mg()?(r=null==(i=t.Ch(n))?this.b:UO(i)===UO(RDt)?null:i,t.Eh(n),dae(e,this.d.Tk(e,1,this.e,r,this.b))):t.Eh(n)},xKe.Sk=function(e){throw jv(new dA)},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",563),hIe(G7e,1,{},Dl),xKe.Tk=function(e,t,n,r,i){return new ZW(e,t,n,r,i)},xKe.Uk=function(e,t,n,r,i,o){return new Uq(e,t,n,r,i,o)},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",G7e),hIe(1332,G7e,{},Nl),xKe.Tk=function(e,t,n,r,i){return new J5(e,t,n,Hy(_B(r)),Hy(_B(i)))},xKe.Uk=function(e,t,n,r,i,o){return new I1(e,t,n,Hy(_B(r)),Hy(_B(i)),o)},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1332),hIe(1333,G7e,{},Rl),xKe.Tk=function(e,t,n,r,i){return new jne(e,t,n,$H(r,217).a,$H(i,217).a)},xKe.Uk=function(e,t,n,r,i,o){return new E1(e,t,n,$H(r,217).a,$H(i,217).a,o)},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1333),hIe(1334,G7e,{},Ll),xKe.Tk=function(e,t,n,r,i){return new Hne(e,t,n,$H(r,172).a,$H(i,172).a)},xKe.Uk=function(e,t,n,r,i,o){return new S1(e,t,n,$H(r,172).a,$H(i,172).a,o)},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1334),hIe(1335,G7e,{},Bl),xKe.Tk=function(e,t,n,r,i){return new q5(e,t,n,Uy(xB(r)),Uy(xB(i)))},xKe.Uk=function(e,t,n,r,i,o){return new C1(e,t,n,Uy(xB(r)),Uy(xB(i)),o)},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1335),hIe(1336,G7e,{},Pl),xKe.Tk=function(e,t,n,r,i){return new zne(e,t,n,$H(r,155).a,$H(i,155).a)},xKe.Uk=function(e,t,n,r,i,o){return new T1(e,t,n,$H(r,155).a,$H(i,155).a,o)},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1336),hIe(1337,G7e,{},Fl),xKe.Tk=function(e,t,n,r,i){return new X5(e,t,n,$H(r,19).a,$H(i,19).a)},xKe.Uk=function(e,t,n,r,i,o){return new k1(e,t,n,$H(r,19).a,$H(i,19).a,o)},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1337),hIe(1338,G7e,{},$l),xKe.Tk=function(e,t,n,r,i){return new Une(e,t,n,$H(r,162).a,$H(i,162).a)},xKe.Uk=function(e,t,n,r,i,o){return new O1(e,t,n,$H(r,162).a,$H(i,162).a,o)},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1338),hIe(1339,G7e,{},jl),xKe.Tk=function(e,t,n,r,i){return new Qne(e,t,n,$H(r,184).a,$H(i,184).a)},xKe.Uk=function(e,t,n,r,i,o){return new M1(e,t,n,$H(r,184).a,$H(i,184).a,o)},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1339),hIe(1317,563,{},hq),xKe.Sk=function(e){if(!this.a.wj(e))throw jv(new By(z7e+Zle(e)+W7e+this.a+"'"))},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1317),hIe(1318,563,{},Xz),xKe.Sk=function(e){},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1318),hIe(770,563,{}),xKe.Sj=function(e,t,n){return null!=t.Ch(n)},xKe.Tj=function(e,t,n,r){var i,o;e.Lg()&&e.Mg()?(i=!0,null==(o=t.Ch(n))?(i=!1,o=this.b):UO(o)===UO(RDt)&&(o=null),null==r?null!=this.c?(t.Dh(n,null),r=this.b):t.Dh(n,RDt):(this.Sk(r),t.Dh(n,r)),dae(e,this.d.Uk(e,1,this.e,o,r,!i))):null==r?null!=this.c?t.Dh(n,null):t.Dh(n,RDt):(this.Sk(r),t.Dh(n,r))},xKe.Vj=function(e,t,n){var r,i;e.Lg()&&e.Mg()?(r=!0,null==(i=t.Ch(n))?(r=!1,i=this.b):UO(i)===UO(RDt)&&(i=null),t.Eh(n),dae(e,this.d.Uk(e,2,this.e,i,this.b,r))):t.Eh(n)},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",770),hIe(1319,770,{},fq),xKe.Sk=function(e){if(!this.a.wj(e))throw jv(new By(z7e+Zle(e)+W7e+this.a+"'"))},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1319),hIe(1320,770,{},Jz),xKe.Sk=function(e){},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1320),hIe(398,504,{},rz),xKe.Pj=function(e,t,n,r,i){var o,a,s,l,c;if(c=t.Ch(n),this.Kj()&&UO(c)===UO(RDt))return null;if(this.sk()&&r&&null!=c){if((s=$H(c,49)).kh()&&s!=(l=Zue(e,s))){if(!Eje(this.a,l))throw jv(new By(z7e+Zle(l)+W7e+this.a+"'"));t.Dh(n,c=l),this.rk()&&(o=$H(l,49),a=s.ih(e,this.b?Ope(s.Tg(),this.b):-1-Ope(e.Tg(),this.e),null,null),!o.eh()&&(a=o.gh(e,this.b?Ope(o.Tg(),this.b):-1-Ope(e.Tg(),this.e),null,a)),a&&a.Fi()),e.Lg()&&e.Mg()&&dae(e,new ZW(e,9,this.e,s,l))}return c}return c},xKe.Qj=function(e,t,n,r,i){var o,a;return UO(a=t.Ch(n))===UO(RDt)&&(a=null),t.Dh(n,r),this.bj()?UO(a)!==UO(r)&&null!=a&&(i=(o=$H(a,49)).ih(e,Ope(o.Tg(),this.b),null,i)):this.rk()&&null!=a&&(i=$H(a,49).ih(e,-1-Ope(e.Tg(),this.e),null,i)),e.Lg()&&e.Mg()&&(!i&&(i=new F_(4)),i.Ei(new ZW(e,1,this.e,a,r))),i},xKe.Rj=function(e,t,n,r,i){var o;return UO(o=t.Ch(n))===UO(RDt)&&(o=null),t.Eh(n),e.Lg()&&e.Mg()&&(!i&&(i=new F_(4)),this.Kj()?i.Ei(new ZW(e,2,this.e,o,null)):i.Ei(new ZW(e,1,this.e,o,null))),i},xKe.Sj=function(e,t,n){return null!=t.Ch(n)},xKe.Tj=function(e,t,n,r){var i,o,a,s,l;if(null!=r&&!Eje(this.a,r))throw jv(new By(z7e+(rN(r,56)?fxe($H(r,56).Tg()):ote(Zle(r)))+W7e+this.a+"'"));s=null!=(l=t.Ch(n)),this.Kj()&&UO(l)===UO(RDt)&&(l=null),a=null,this.bj()?UO(l)!==UO(r)&&(null!=l&&(a=(i=$H(l,49)).ih(e,Ope(i.Tg(),this.b),null,a)),null!=r&&(a=(i=$H(r,49)).gh(e,Ope(i.Tg(),this.b),null,a))):this.rk()&&UO(l)!==UO(r)&&(null!=l&&(a=$H(l,49).ih(e,-1-Ope(e.Tg(),this.e),null,a)),null!=r&&(a=$H(r,49).gh(e,-1-Ope(e.Tg(),this.e),null,a))),null==r&&this.Kj()?t.Dh(n,RDt):t.Dh(n,r),e.Lg()&&e.Mg()?(o=new Uq(e,1,this.e,l,r,this.Kj()&&!s),a?(a.Ei(o),a.Fi()):dae(e,o)):a&&a.Fi()},xKe.Vj=function(e,t,n){var r,i,o,a,s;a=null!=(s=t.Ch(n)),this.Kj()&&UO(s)===UO(RDt)&&(s=null),o=null,null!=s&&(this.bj()?o=(r=$H(s,49)).ih(e,Ope(r.Tg(),this.b),null,o):this.rk()&&(o=$H(s,49).ih(e,-1-Ope(e.Tg(),this.e),null,o))),t.Eh(n),e.Lg()&&e.Mg()?(i=new Uq(e,this.Kj()?2:1,this.e,s,null,a),o?(o.Ei(i),o.Fi()):dae(e,i)):o&&o.Fi()},xKe.bj=function(){return!1},xKe.rk=function(){return!1},xKe.sk=function(){return!1},xKe.Kj=function(){return!1},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",398),hIe(564,398,{},XL),xKe.rk=function(){return!0},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",564),hIe(1323,564,{},JL),xKe.sk=function(){return!0},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1323),hIe(772,564,{},ZL),xKe.Kj=function(){return!0},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",772),hIe(1325,772,{},eB),xKe.sk=function(){return!0},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1325),hIe(640,564,{},TH),xKe.bj=function(){return!0},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",640),hIe(1324,640,{},MH),xKe.sk=function(){return!0},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1324),hIe(773,640,{},IH),xKe.Kj=function(){return!0},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",773),hIe(1326,773,{},DH),xKe.sk=function(){return!0},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1326),hIe(641,398,{},tB),xKe.sk=function(){return!0},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",641),hIe(1327,641,{},nB),xKe.Kj=function(){return!0},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1327),hIe(774,641,{},kH),xKe.bj=function(){return!0},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",774),hIe(1328,774,{},NH),xKe.Kj=function(){return!0},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1328),hIe(1321,398,{},rB),xKe.Kj=function(){return!0},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1321),hIe(771,398,{},OH),xKe.bj=function(){return!0},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",771),hIe(1322,771,{},RH),xKe.Kj=function(){return!0},mV(u6e,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1322),hIe(775,565,Q7e,iK),xKe.Pk=function(e){return new iK(this.a,this.c,e)},xKe.dd=function(){return this.b},xKe.Qk=function(e,t,n){return R8(this,e,this.b,n)},xKe.Rk=function(e,t,n){return L8(this,e,this.b,n)},mV(u6e,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",775),hIe(1329,1,b7e,wv),xKe.Wj=function(e){return this.a},xKe.fj=function(){return rN(this.a,95)?$H(this.a,95).fj():!this.a.dc()},xKe.Wb=function(e){this.a.$b(),this.a.Gc($H(e,15))},xKe.Xj=function(){rN(this.a,95)?$H(this.a,95).Xj():this.a.$b()},mV(u6e,"EStructuralFeatureImpl/SettingMany",1329),hIe(1330,565,Q7e,p4),xKe.Ok=function(e){return new rP((zQe(),PNt),this.b.Ih(this.a,e))},xKe.dd=function(){return null},xKe.Qk=function(e,t,n){return n},xKe.Rk=function(e,t,n){return n},mV(u6e,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1330),hIe(642,565,Q7e,rP),xKe.Ok=function(e){return new rP(this.c,e)},xKe.dd=function(){return this.a},xKe.Qk=function(e,t,n){return n},xKe.Rk=function(e,t,n){return n},mV(u6e,"EStructuralFeatureImpl/SimpleFeatureMapEntry",642),hIe(391,497,l8e,Hl),xKe.ri=function(e){return N8(jIt,jKe,26,e,0,1)},xKe.ni=function(){return!1},mV(u6e,"ESuperAdapter/1",391),hIe(444,438,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,836:1,49:1,97:1,150:1,444:1,114:1,115:1},Ul),xKe._g=function(e,t,n){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new iz(this,GIt,this)),this.a}return z7(this,e-dV((pKe(),wDt)),tte($H(Aae(this,16),26)||wDt,e),t,n)},xKe.jh=function(e,t,n){switch(t){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),Pve(this.Ab,e,n);case 2:return!this.a&&(this.a=new iz(this,GIt,this)),Pve(this.a,e,n)}return $H(tte($H(Aae(this,16),26)||(pKe(),wDt),t),66).Nj().Rj(this,cme(this),t-dV((pKe(),wDt)),e,n)},xKe.lh=function(e){switch(e){case 0:return!!this.Ab&&0!=this.Ab.i;case 1:return null!=this.zb;case 2:return!!this.a&&0!=this.a.i}return k3(this,e-dV((pKe(),wDt)),tte($H(Aae(this,16),26)||wDt,e))},xKe.sh=function(e,t){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),sQe(this.Ab),!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void gV(this.Ab,$H(t,14));case 1:return void Die(this,EB(t));case 2:return!this.a&&(this.a=new iz(this,GIt,this)),sQe(this.a),!this.a&&(this.a=new iz(this,GIt,this)),void gV(this.a,$H(t,14))}Ife(this,e-dV((pKe(),wDt)),tte($H(Aae(this,16),26)||wDt,e),t)},xKe.zh=function(){return pKe(),wDt},xKe.Bh=function(e){switch(e){case 0:return!this.Ab&&(this.Ab=new eG(LIt,this,0,3)),void sQe(this.Ab);case 1:return void Die(this,null);case 2:return!this.a&&(this.a=new iz(this,GIt,this)),void sQe(this.a)}Hde(this,e-dV((pKe(),wDt)),tte($H(Aae(this,16),26)||wDt,e))},mV(u6e,"ETypeParameterImpl",444),hIe(445,85,L7e,iz),xKe.cj=function(e,t){return IEe(this,$H(e,87),t)},xKe.dj=function(e,t){return DEe(this,$H(e,87),t)},mV(u6e,"ETypeParameterImpl/1",445),hIe(634,43,Zqe,Nb),xKe.ec=function(){return new _v(this)},mV(u6e,"ETypeParameterImpl/2",634),hIe(556,JKe,ZKe,_v),xKe.Fc=function(e){return YP(this,$H(e,87))},xKe.Gc=function(e){var t,n,r;for(r=!1,n=e.Kc();n.Ob();)t=$H(n.Pb(),87),null==VK(this.a,t,"")&&(r=!0);return r},xKe.$b=function(){MG(this.a)},xKe.Hc=function(e){return lG(this.a,e)},xKe.Kc=function(){return new xv(new oce(new Sf(this.a).a))},xKe.Mc=function(e){return P6(this,e)},xKe.gc=function(){return DE(this.a)},mV(u6e,"ETypeParameterImpl/2/1",556),hIe(557,1,KKe,xv),xKe.Nb=function(e){cG(this,e)},xKe.Pb=function(){return $H(Zte(this.a).cd(),87)},xKe.Ob=function(){return this.a.b},xKe.Qb=function(){a7(this.a)},mV(u6e,"ETypeParameterImpl/2/1/1",557),hIe(1276,43,Zqe,Rb),xKe._b=function(e){return WO(e)?eX(this,e):!!OX(this.f,e)},xKe.xc=function(e){var t;return rN(t=WO(e)?EJ(this,e):HO(OX(this.f,e)),837)?(t=$H(t,837)._j(),VK(this,$H(e,235),t),t):null!=t?t:null==e?(qS(),tNt):null},mV(u6e,"EValidatorRegistryImpl",1276),hIe(1313,704,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,1941:1,49:1,97:1,150:1,114:1,115:1},Ql),xKe.Ih=function(e,t){switch(e.yj()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return null==t?null:$fe(t);case 25:return Wte(t);case 27:return W7(t);case 28:return G7(t);case 29:return null==t?null:jD(TMt[0],$H(t,199));case 41:return null==t?"":J_($H(t,290));case 42:return $fe(t);case 50:return EB(t);default:throw jv(new Py(f6e+e.ne()+p6e))}},xKe.Jh=function(e){var t;switch(-1==e.G&&(e.G=(t=zte(e))?oAe(t.Mh(),e):-1),e.G){case 0:return new kb;case 1:return new _l;case 2:return new Bd;case 4:return new wA;case 5:return new Ob;case 6:return new yA;case 7:return new Rd;case 10:return new yl;case 11:return new Mb;case 12:return new mX;case 13:return new Ib;case 14:return new gB;case 17:return new Il;case 18:return new Bv;case 19:return new Ul;default:throw jv(new Py(v6e+e.zb+p6e))}},xKe.Kh=function(e,t){switch(e.yj()){case 20:return null==t?null:new hx(t);case 21:return null==t?null:new MI(t);case 23:case 22:return null==t?null:Xge(t);case 26:case 24:return null==t?null:See(u$e(t,-128,127)<<24>>24);case 25:return fDe(t);case 27:return Eye(t);case 28:return Sye(t);case 29:return pSe(t);case 32:case 31:return null==t?null:dCe(t);case 38:case 37:return null==t?null:new RA(t);case 40:case 39:return null==t?null:the(u$e(t,PYe,RKe));case 41:case 42:return null;case 44:case 43:return null==t?null:yme(nGe(t));case 49:case 48:return null==t?null:nhe(u$e(t,K7e,32767)<<16>>16);case 50:return t;default:throw jv(new Py(f6e+e.ne()+p6e))}},mV(u6e,"EcoreFactoryImpl",1313),hIe(547,179,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,1939:1,49:1,97:1,150:1,179:1,547:1,114:1,115:1,675:1},zK),xKe.gb=!1,xKe.hb=!1;var GDt,VDt=!1;mV(u6e,"EcorePackageImpl",547),hIe(1184,1,{837:1},zl),xKe._j=function(){return sR(),nNt},mV(u6e,"EcorePackageImpl/1",1184),hIe(1193,1,s9e,Wl),xKe.wj=function(e){return rN(e,147)},xKe.xj=function(e){return N8(FMt,jKe,147,e,0,1)},mV(u6e,"EcorePackageImpl/10",1193),hIe(1194,1,s9e,Gl),xKe.wj=function(e){return rN(e,191)},xKe.xj=function(e){return N8(jMt,jKe,191,e,0,1)},mV(u6e,"EcorePackageImpl/11",1194),hIe(1195,1,s9e,Vl),xKe.wj=function(e){return rN(e,56)},xKe.xj=function(e){return N8(MMt,jKe,56,e,0,1)},mV(u6e,"EcorePackageImpl/12",1195),hIe(1196,1,s9e,Kl),xKe.wj=function(e){return rN(e,399)},xKe.xj=function(e){return N8(VIt,N7e,59,e,0,1)},mV(u6e,"EcorePackageImpl/13",1196),hIe(1197,1,s9e,Yl),xKe.wj=function(e){return rN(e,235)},xKe.xj=function(e){return N8(HMt,jKe,235,e,0,1)},mV(u6e,"EcorePackageImpl/14",1197),hIe(1198,1,s9e,ql),xKe.wj=function(e){return rN(e,509)},xKe.xj=function(e){return N8(KIt,jKe,2017,e,0,1)},mV(u6e,"EcorePackageImpl/15",1198),hIe(1199,1,s9e,Xl),xKe.wj=function(e){return rN(e,99)},xKe.xj=function(e){return N8(YIt,D7e,18,e,0,1)},mV(u6e,"EcorePackageImpl/16",1199),hIe(1200,1,s9e,Jl),xKe.wj=function(e){return rN(e,170)},xKe.xj=function(e){return N8(PIt,D7e,170,e,0,1)},mV(u6e,"EcorePackageImpl/17",1200),hIe(1201,1,s9e,Zl),xKe.wj=function(e){return rN(e,472)},xKe.xj=function(e){return N8(BIt,jKe,472,e,0,1)},mV(u6e,"EcorePackageImpl/18",1201),hIe(1202,1,s9e,ec),xKe.wj=function(e){return rN(e,548)},xKe.xj=function(e){return N8(zDt,i7e,548,e,0,1)},mV(u6e,"EcorePackageImpl/19",1202),hIe(1185,1,s9e,tc),xKe.wj=function(e){return rN(e,322)},xKe.xj=function(e){return N8(FIt,D7e,34,e,0,1)},mV(u6e,"EcorePackageImpl/2",1185),hIe(1203,1,s9e,nc),xKe.wj=function(e){return rN(e,241)},xKe.xj=function(e){return N8(GIt,$7e,87,e,0,1)},mV(u6e,"EcorePackageImpl/20",1203),hIe(1204,1,s9e,rc),xKe.wj=function(e){return rN(e,444)},xKe.xj=function(e){return N8(TDt,jKe,836,e,0,1)},mV(u6e,"EcorePackageImpl/21",1204),hIe(1205,1,s9e,ic),xKe.wj=function(e){return QO(e)},xKe.xj=function(e){return N8(ytt,sYe,476,e,8,1)},mV(u6e,"EcorePackageImpl/22",1205),hIe(1206,1,s9e,oc),xKe.wj=function(e){return rN(e,190)},xKe.xj=function(e){return N8(IRt,sYe,190,e,0,2)},mV(u6e,"EcorePackageImpl/23",1206),hIe(1207,1,s9e,ac),xKe.wj=function(e){return rN(e,217)},xKe.xj=function(e){return N8(xtt,sYe,217,e,0,1)},mV(u6e,"EcorePackageImpl/24",1207),hIe(1208,1,s9e,sc),xKe.wj=function(e){return rN(e,172)},xKe.xj=function(e){return N8(Stt,sYe,172,e,0,1)},mV(u6e,"EcorePackageImpl/25",1208),hIe(1209,1,s9e,lc),xKe.wj=function(e){return rN(e,199)},xKe.xj=function(e){return N8(Att,sYe,199,e,0,1)},mV(u6e,"EcorePackageImpl/26",1209),hIe(1210,1,s9e,cc),xKe.wj=function(e){return!1},xKe.xj=function(e){return N8(BRt,jKe,2110,e,0,1)},mV(u6e,"EcorePackageImpl/27",1210),hIe(1211,1,s9e,uc),xKe.wj=function(e){return zO(e)},xKe.xj=function(e){return N8(Ctt,sYe,333,e,7,1)},mV(u6e,"EcorePackageImpl/28",1211),hIe(1212,1,s9e,dc),xKe.wj=function(e){return rN(e,58)},xKe.xj=function(e){return N8(iIt,JJe,58,e,0,1)},mV(u6e,"EcorePackageImpl/29",1212),hIe(1186,1,s9e,hc),xKe.wj=function(e){return rN(e,510)},xKe.xj=function(e){return N8(LIt,{3:1,4:1,5:1,1934:1},590,e,0,1)},mV(u6e,"EcorePackageImpl/3",1186),hIe(1213,1,s9e,fc),xKe.wj=function(e){return rN(e,573)},xKe.xj=function(e){return N8(vIt,jKe,1940,e,0,1)},mV(u6e,"EcorePackageImpl/30",1213),hIe(1214,1,s9e,pc),xKe.wj=function(e){return rN(e,153)},xKe.xj=function(e){return N8(uNt,JJe,153,e,0,1)},mV(u6e,"EcorePackageImpl/31",1214),hIe(1215,1,s9e,gc),xKe.wj=function(e){return rN(e,72)},xKe.xj=function(e){return N8(ODt,l9e,72,e,0,1)},mV(u6e,"EcorePackageImpl/32",1215),hIe(1216,1,s9e,mc),xKe.wj=function(e){return rN(e,155)},xKe.xj=function(e){return N8(Ttt,sYe,155,e,0,1)},mV(u6e,"EcorePackageImpl/33",1216),hIe(1217,1,s9e,vc),xKe.wj=function(e){return rN(e,19)},xKe.xj=function(e){return N8(Mtt,sYe,19,e,0,1)},mV(u6e,"EcorePackageImpl/34",1217),hIe(1218,1,s9e,Ac),xKe.wj=function(e){return rN(e,290)},xKe.xj=function(e){return N8(Iet,jKe,290,e,0,1)},mV(u6e,"EcorePackageImpl/35",1218),hIe(1219,1,s9e,bc),xKe.wj=function(e){return rN(e,162)},xKe.xj=function(e){return N8(Btt,sYe,162,e,0,1)},mV(u6e,"EcorePackageImpl/36",1219),hIe(1220,1,s9e,yc),xKe.wj=function(e){return rN(e,83)},xKe.xj=function(e){return N8(Net,jKe,83,e,0,1)},mV(u6e,"EcorePackageImpl/37",1220),hIe(1221,1,s9e,wc),xKe.wj=function(e){return rN(e,591)},xKe.xj=function(e){return N8(eNt,jKe,591,e,0,1)},mV(u6e,"EcorePackageImpl/38",1221),hIe(1222,1,s9e,_c),xKe.wj=function(e){return!1},xKe.xj=function(e){return N8(PRt,jKe,2111,e,0,1)},mV(u6e,"EcorePackageImpl/39",1222),hIe(1187,1,s9e,xc),xKe.wj=function(e){return rN(e,88)},xKe.xj=function(e){return N8(jIt,jKe,26,e,0,1)},mV(u6e,"EcorePackageImpl/4",1187),hIe(1223,1,s9e,Ec),xKe.wj=function(e){return rN(e,184)},xKe.xj=function(e){return N8(Ftt,sYe,184,e,0,1)},mV(u6e,"EcorePackageImpl/40",1223),hIe(1224,1,s9e,Sc),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(u6e,"EcorePackageImpl/41",1224),hIe(1225,1,s9e,Cc),xKe.wj=function(e){return rN(e,588)},xKe.xj=function(e){return N8(lIt,jKe,588,e,0,1)},mV(u6e,"EcorePackageImpl/42",1225),hIe(1226,1,s9e,Tc),xKe.wj=function(e){return!1},xKe.xj=function(e){return N8(FRt,sYe,2112,e,0,1)},mV(u6e,"EcorePackageImpl/43",1226),hIe(1227,1,s9e,kc),xKe.wj=function(e){return rN(e,42)},xKe.xj=function(e){return N8(Het,bYe,42,e,0,1)},mV(u6e,"EcorePackageImpl/44",1227),hIe(1188,1,s9e,Oc),xKe.wj=function(e){return rN(e,138)},xKe.xj=function(e){return N8($It,jKe,138,e,0,1)},mV(u6e,"EcorePackageImpl/5",1188),hIe(1189,1,s9e,Mc),xKe.wj=function(e){return rN(e,148)},xKe.xj=function(e){return N8(HIt,jKe,148,e,0,1)},mV(u6e,"EcorePackageImpl/6",1189),hIe(1190,1,s9e,Ic),xKe.wj=function(e){return rN(e,457)},xKe.xj=function(e){return N8(zIt,jKe,671,e,0,1)},mV(u6e,"EcorePackageImpl/7",1190),hIe(1191,1,s9e,Dc),xKe.wj=function(e){return rN(e,573)},xKe.xj=function(e){return N8(WIt,jKe,678,e,0,1)},mV(u6e,"EcorePackageImpl/8",1191),hIe(1192,1,s9e,Nc),xKe.wj=function(e){return rN(e,471)},xKe.xj=function(e){return N8($Mt,jKe,471,e,0,1)},mV(u6e,"EcorePackageImpl/9",1192),hIe(1025,1982,n7e,Ny),xKe.bi=function(e,t){Ode(this,$H(t,415))},xKe.fi=function(e,t){eke(this,e,$H(t,415))},mV(u6e,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1025),hIe(1026,143,Z8e,oK),xKe.Ai=function(){return this.a.a},mV(u6e,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1026),hIe(1053,1052,{},aD),mV("org.eclipse.emf.ecore.plugin","EcorePlugin",1053);var KDt,YDt,qDt,XDt,JDt,ZDt,eNt=dQ(c9e,"Resource");hIe(781,1378,u9e),xKe.Yk=function(e){},xKe.Zk=function(e){},xKe.Vk=function(){return!this.a&&(this.a=new Ev(this)),this.a},xKe.Wk=function(e){var t,n,r,i,o;if((r=e.length)>0){if(d0(0,e.length),47==e.charCodeAt(0)){for(o=new q6(4),i=1,t=1;t<r;++t)d0(t,e.length),47==e.charCodeAt(t)&&(GH(o,i==t?"":e.substr(i,t-i)),i=t+1);return GH(o,e.substr(i)),a_e(this,o)}d0(r-1,e.length),63==e.charCodeAt(r-1)&&(n=xF(e,YEe(63),r-2))>0&&(e=e.substr(0,n))}return yOe(this,e)},xKe.Xk=function(){return this.c},xKe.Ib=function(){return J_(this.gm)+"@"+(Jle(this)>>>0).toString(16)+" uri='"+this.d+"'"},xKe.b=!1,mV(d9e,"ResourceImpl",781),hIe(1379,781,u9e,Cv),mV(d9e,"BinaryResourceImpl",1379),hIe(1169,694,c8e),xKe.si=function(e){return rN(e,56)?_X(this,$H(e,56)):rN(e,591)?new ON($H(e,591).Vk()):UO(e)===UO(this.f)?$H(e,14).Kc():(fB(),pIt.a)},xKe.Ob=function(){return dMe(this)},xKe.a=!1,mV(A7e,"EcoreUtil/ContentTreeIterator",1169),hIe(1380,1169,c8e,nG),xKe.si=function(e){return UO(e)===UO(this.f)?$H(e,15).Kc():new F2($H(e,56))},mV(d9e,"ResourceImpl/5",1380),hIe(648,1994,R7e,Ev),xKe.Hc=function(e){return this.i<=4?E_e(this,e):rN(e,49)&&$H(e,49).Zg()==this.a},xKe.bi=function(e,t){e==this.i-1&&(this.a.b||(this.a.b=!0))},xKe.di=function(e,t){0==e?this.a.b||(this.a.b=!0):I8(this,e,t)},xKe.fi=function(e,t){},xKe.gi=function(e,t,n){},xKe.aj=function(){return 2},xKe.Ai=function(){return this.a},xKe.bj=function(){return!0},xKe.cj=function(e,t){return $H(e,49).wh(this.a,t)},xKe.dj=function(e,t){return $H(e,49).wh(null,t)},xKe.ej=function(){return!1},xKe.hi=function(){return!0},xKe.ri=function(e){return N8(MMt,jKe,56,e,0,1)},xKe.ni=function(){return!1},mV(d9e,"ResourceImpl/ContentsEList",648),hIe(957,1964,IYe,Sv),xKe.Zc=function(e){return this.a._h(e)},xKe.gc=function(){return this.a.gc()},mV(A7e,"AbstractSequentialInternalEList/1",957),hIe(624,1,{},EU),mV(A7e,"BasicExtendedMetaData",624),hIe(1160,1,{},MO),xKe.$k=function(){return null},xKe._k=function(){return-2==this.a&&af(this,iSe(this.d,this.b)),this.a},xKe.al=function(){return null},xKe.bl=function(){return Eq(),Eq(),lnt},xKe.ne=function(){return this.c==C9e&&lf(this,wme(this.d,this.b)),this.c},xKe.cl=function(){return 0},xKe.a=-2,xKe.c=C9e,mV(A7e,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1160),hIe(1161,1,{},P1),xKe.$k=function(){return this.a==(L5(),JDt)&&sf(this,mRe(this.f,this.b)),this.a},xKe._k=function(){return 0},xKe.al=function(){return this.c==(L5(),JDt)&&cf(this,vRe(this.f,this.b)),this.c},xKe.bl=function(){return!this.d&&uf(this,EFe(this.f,this.b)),this.d},xKe.ne=function(){return this.e==C9e&&df(this,wme(this.f,this.b)),this.e},xKe.cl=function(){return-2==this.g&&hf(this,Yxe(this.f,this.b)),this.g},xKe.e=C9e,xKe.g=-2,mV(A7e,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1161),hIe(1159,1,{},LO),xKe.b=!1,xKe.c=!1,mV(A7e,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1159),hIe(1162,1,{},B1),xKe.c=-2,xKe.e=C9e,xKe.f=C9e,mV(A7e,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1162),hIe(585,622,L7e,xU),xKe.aj=function(){return this.c},xKe.Fk=function(){return!1},xKe.li=function(e,t){return t},xKe.c=0,mV(A7e,"EDataTypeEList",585);var tNt,nNt,rNt,iNt,oNt,aNt,sNt,lNt,cNt,uNt=dQ(A7e,"FeatureMap");hIe(75,585,{3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,76:1,153:1,215:1,1937:1,69:1,95:1},woe),xKe.Vc=function(e,t){uRe(this,e,$H(t,72))},xKe.Fc=function(e){return oNe(this,$H(e,72))},xKe.Yh=function(e){fV(this,$H(e,72))},xKe.cj=function(e,t){return jF(this,$H(e,72),t)},xKe.dj=function(e,t){return HF(this,$H(e,72),t)},xKe.ii=function(e,t){return i$e(this,e,t)},xKe.li=function(e,t){return lze(this,e,$H(t,72))},xKe._c=function(e,t){return SLe(this,e,$H(t,72))},xKe.jj=function(e,t){return UF(this,$H(e,72),t)},xKe.kj=function(e,t){return QF(this,$H(e,72),t)},xKe.lj=function(e,t,n){return pxe(this,$H(e,72),$H(t,72),n)},xKe.oi=function(e,t){return sEe(this,e,$H(t,72))},xKe.dl=function(e,t){return NFe(this,e,t)},xKe.Wc=function(e,t){var n,r,i,o,a,s,l,c,u;for(c=new pte(t.gc()),i=t.Kc();i.Ob();)if(o=(r=$H(i.Pb(),72)).ak(),MLe(this.e,o))(!o.hi()||!U3(this,o,r.dd())&&!E_e(c,r))&&c7(c,r);else{for(u=iLe(this.e.Tg(),o),n=$H(this.g,119),a=!0,s=0;s<this.i;++s)if(l=n[s],u.rl(l.ak())){$H(aAe(this,s,r),72),a=!1;break}a&&c7(c,r)}return ale(this,e,c)},xKe.Gc=function(e){var t,n,r,i,o,a,s,l,c;for(l=new pte(e.gc()),r=e.Kc();r.Ob();)if(i=(n=$H(r.Pb(),72)).ak(),MLe(this.e,i))(!i.hi()||!U3(this,i,n.dd())&&!E_e(l,n))&&c7(l,n);else{for(c=iLe(this.e.Tg(),i),t=$H(this.g,119),o=!0,a=0;a<this.i;++a)if(s=t[a],c.rl(s.ak())){$H(aAe(this,a,n),72),o=!1;break}o&&c7(l,n)}return gV(this,l)},xKe.Wh=function(e){return this.j=-1,Ije(this,this.i,e)},xKe.el=function(e,t,n){return SPe(this,e,t,n)},xKe.mk=function(e,t){return _Fe(this,e,t)},xKe.fl=function(e,t,n){return XHe(this,e,t,n)},xKe.gl=function(){return this},xKe.hl=function(e,t){return nUe(this,e,t)},xKe.il=function(e){return $H(Gte(this,e),72).ak()},xKe.jl=function(e){return $H(Gte(this,e),72).dd()},xKe.kl=function(){return this.b},xKe.bj=function(){return!0},xKe.ij=function(){return!0},xKe.ll=function(e){return!ige(this,e)},xKe.ri=function(e){return N8(WDt,l9e,332,e,0,1)},xKe.Gk=function(e){return lB(this,e)},xKe.Wb=function(e){ZG(this,e)},xKe.ml=function(e,t){xUe(this,e,t)},xKe.nl=function(e){return Qre(this,e)},xKe.ol=function(e){Bbe(this,e)},mV(A7e,"BasicFeatureMap",75),hIe(1851,1,rYe),xKe.Nb=function(e){cG(this,e)},xKe.Rb=function(e){if(-1==this.g)throw jv(new fA);vW(this);try{OLe(this.e,this.b,this.a,e),this.d=this.e.j,rAe(this)}catch(e){throw rN(e=use(e),73)?jv(new mA):jv(e)}},xKe.Ob=function(){return Bce(this)},xKe.Sb=function(){return Pce(this)},xKe.Pb=function(){return rAe(this)},xKe.Tb=function(){return this.a},xKe.Ub=function(){var e;if(Pce(this))return vW(this),this.g=--this.a,this.Lk()&&(e=FOe(this.e,this.b,this.c,this.a,this.j),this.j=e),this.i=0,this.j;throw jv(new AA)},xKe.Vb=function(){return this.a-1},xKe.Qb=function(){if(-1==this.g)throw jv(new fA);vW(this);try{iTe(this.e,this.b,this.g),this.d=this.e.j,this.g<this.a&&(--this.a,--this.c),--this.g}catch(e){throw rN(e=use(e),73)?jv(new mA):jv(e)}},xKe.Lk=function(){return!1},xKe.Wb=function(e){if(-1==this.g)throw jv(new fA);vW(this);try{Wje(this.e,this.b,this.g,e),this.d=this.e.j}catch(e){throw rN(e=use(e),73)?jv(new mA):jv(e)}},xKe.a=0,xKe.c=0,xKe.d=0,xKe.f=!1,xKe.g=0,xKe.i=0,mV(A7e,"FeatureMapUtil/BasicFeatureEIterator",1851),hIe(410,1851,rYe,Oae),xKe.pl=function(){var e,t,n;for(n=this.e.i,e=$H(this.e.g,119);this.c<n;){if(t=e[this.c],this.k.rl(t.ak()))return this.j=this.f?t:t.dd(),this.i=2,!0;++this.c}return this.i=1,this.g=-1,!1},xKe.ql=function(){var e,t;for(e=$H(this.e.g,119);--this.c>=0;)if(t=e[this.c],this.k.rl(t.ak()))return this.j=this.f?t:t.dd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},mV(A7e,"BasicFeatureMap/FeatureEIterator",410),hIe(662,410,rYe,NM),xKe.Lk=function(){return!0},mV(A7e,"BasicFeatureMap/ResolvingFeatureEIterator",662),hIe(955,486,H7e,QD),xKe.Gi=function(){return this},mV(A7e,"EContentsEList/1",955),hIe(956,486,H7e,RM),xKe.Lk=function(){return!1},mV(A7e,"EContentsEList/2",956),hIe(954,279,U7e,zD),xKe.Nk=function(e){},xKe.Ob=function(){return!1},xKe.Sb=function(){return!1},mV(A7e,"EContentsEList/FeatureIteratorImpl/1",954),hIe(825,585,L7e,BN),xKe.ci=function(){this.a=!0},xKe.fj=function(){return this.a},xKe.Xj=function(){var e;sQe(this),vI(this.e)?(e=this.a,this.a=!1,dae(this.e,new Z5(this.e,2,this.c,e,!1))):this.a=!1},xKe.a=!1,mV(A7e,"EDataTypeEList/Unsettable",825),hIe(1849,585,L7e,PN),xKe.hi=function(){return!0},mV(A7e,"EDataTypeUniqueEList",1849),hIe(1850,825,L7e,FN),xKe.hi=function(){return!0},mV(A7e,"EDataTypeUniqueEList/Unsettable",1850),hIe(139,85,L7e,DN),xKe.Ek=function(){return!0},xKe.li=function(e,t){return UMe(this,e,$H(t,56))},mV(A7e,"EObjectContainmentEList/Resolving",139),hIe(1163,545,L7e,NN),xKe.Ek=function(){return!0},xKe.li=function(e,t){return UMe(this,e,$H(t,56))},mV(A7e,"EObjectContainmentEList/Unsettable/Resolving",1163),hIe(748,16,L7e,tF),xKe.ci=function(){this.a=!0},xKe.fj=function(){return this.a},xKe.Xj=function(){var e;sQe(this),vI(this.e)?(e=this.a,this.a=!1,dae(this.e,new Z5(this.e,2,this.c,e,!1))):this.a=!1},xKe.a=!1,mV(A7e,"EObjectContainmentWithInverseEList/Unsettable",748),hIe(1173,748,L7e,nF),xKe.Ek=function(){return!0},xKe.li=function(e,t){return UMe(this,e,$H(t,56))},mV(A7e,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1173),hIe(743,496,L7e,RN),xKe.ci=function(){this.a=!0},xKe.fj=function(){return this.a},xKe.Xj=function(){var e;sQe(this),vI(this.e)?(e=this.a,this.a=!1,dae(this.e,new Z5(this.e,2,this.c,e,!1))):this.a=!1},xKe.a=!1,mV(A7e,"EObjectEList/Unsettable",743),hIe(328,496,L7e,LN),xKe.Ek=function(){return!0},xKe.li=function(e,t){return UMe(this,e,$H(t,56))},mV(A7e,"EObjectResolvingEList",328),hIe(1641,743,L7e,$N),xKe.Ek=function(){return!0},xKe.li=function(e,t){return UMe(this,e,$H(t,56))},mV(A7e,"EObjectResolvingEList/Unsettable",1641),hIe(1381,1,{},Rc),mV(A7e,"EObjectValidator",1381),hIe(546,496,L7e,tG),xKe.zk=function(){return this.d},xKe.Ak=function(){return this.b},xKe.bj=function(){return!0},xKe.Dk=function(){return!0},xKe.b=0,mV(A7e,"EObjectWithInverseEList",546),hIe(1176,546,L7e,rF),xKe.Ck=function(){return!0},mV(A7e,"EObjectWithInverseEList/ManyInverse",1176),hIe(625,546,L7e,iF),xKe.ci=function(){this.a=!0},xKe.fj=function(){return this.a},xKe.Xj=function(){var e;sQe(this),vI(this.e)?(e=this.a,this.a=!1,dae(this.e,new Z5(this.e,2,this.c,e,!1))):this.a=!1},xKe.a=!1,mV(A7e,"EObjectWithInverseEList/Unsettable",625),hIe(1175,625,L7e,aF),xKe.Ck=function(){return!0},mV(A7e,"EObjectWithInverseEList/Unsettable/ManyInverse",1175),hIe(749,546,L7e,oF),xKe.Ek=function(){return!0},xKe.li=function(e,t){return UMe(this,e,$H(t,56))},mV(A7e,"EObjectWithInverseResolvingEList",749),hIe(31,749,L7e,lF),xKe.Ck=function(){return!0},mV(A7e,"EObjectWithInverseResolvingEList/ManyInverse",31),hIe(750,625,L7e,sF),xKe.Ek=function(){return!0},xKe.li=function(e,t){return UMe(this,e,$H(t,56))},mV(A7e,"EObjectWithInverseResolvingEList/Unsettable",750),hIe(1174,750,L7e,cF),xKe.Ck=function(){return!0},mV(A7e,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1174),hIe(1164,622,L7e),xKe.ai=function(){return!(1792&this.b)},xKe.ci=function(){this.b|=1},xKe.Bk=function(){return!!(4&this.b)},xKe.bj=function(){return!!(40&this.b)},xKe.Ck=function(){return!!(16&this.b)},xKe.Dk=function(){return!!(8&this.b)},xKe.Ek=function(){return!!(this.b&x7e)},xKe.rk=function(){return!!(32&this.b)},xKe.Fk=function(){return!!(this.b&b6e)},xKe.wj=function(e){return this.d?N3(this.d,e):this.ak().Yj().wj(e)},xKe.fj=function(){return 2&this.b?!!(1&this.b):0!=this.i},xKe.hi=function(){return!!(128&this.b)},xKe.Xj=function(){var e;sQe(this),2&this.b&&(vI(this.e)?(e=!!(1&this.b),this.b&=-2,IA(this,new Z5(this.e,2,Ope(this.e.Tg(),this.ak()),e,!1))):this.b&=-2)},xKe.ni=function(){return!(1536&this.b)},xKe.b=0,mV(A7e,"EcoreEList/Generic",1164),hIe(1165,1164,L7e,Qq),xKe.ak=function(){return this.a},mV(A7e,"EcoreEList/Dynamic",1165),hIe(747,63,l8e,Tv),xKe.ri=function(e){return Rne(this.a.a,e)},mV(A7e,"EcoreEMap/1",747),hIe(746,85,L7e,XW),xKe.bi=function(e,t){TAe(this.b,$H(t,133))},xKe.di=function(e,t){iae(this.b)},xKe.ei=function(e,t,n){var r;++(r=this.b,$H(t,133),r).e},xKe.fi=function(e,t){khe(this.b,$H(t,133))},xKe.gi=function(e,t,n){khe(this.b,$H(n,133)),UO(n)===UO(t)&&$H(n,133).Th(rD($H(t,133).cd())),TAe(this.b,$H(t,133))},mV(A7e,"EcoreEMap/DelegateEObjectContainmentEList",746),hIe(1171,151,y7e,Are),mV(A7e,"EcoreEMap/Unsettable",1171),hIe(1172,746,L7e,uF),xKe.ci=function(){this.a=!0},xKe.fj=function(){return this.a},xKe.Xj=function(){var e;sQe(this),vI(this.e)?(e=this.a,this.a=!1,dae(this.e,new Z5(this.e,2,this.c,e,!1))):this.a=!1},xKe.a=!1,mV(A7e,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1172),hIe(1168,228,Zqe,uV),xKe.a=!1,xKe.b=!1,mV(A7e,"EcoreUtil/Copier",1168),hIe(745,1,KKe,F2),xKe.Nb=function(e){cG(this,e)},xKe.Ob=function(){return oge(this)},xKe.Pb=function(){var e;return oge(this),e=this.b,this.b=null,e},xKe.Qb=function(){this.a.Qb()},mV(A7e,"EcoreUtil/ProperContentIterator",745),hIe(1382,1381,{},Pd),mV(A7e,"EcoreValidator",1382),dQ(A7e,"FeatureMapUtil/Validator"),hIe(1260,1,{1942:1},Lc),xKe.rl=function(e){return!0},mV(A7e,"FeatureMapUtil/1",1260),hIe(757,1,{1942:1},rGe),xKe.rl=function(e){var t;return this.c==e||(null==(t=_B(LV(this.a,e)))?NPe(this,e)?(n6(this.a,e,(lR(),vtt)),!0):(n6(this.a,e,(lR(),mtt)),!1):t==(lR(),vtt))},xKe.e=!1,mV(A7e,"FeatureMapUtil/BasicValidator",757),hIe(758,43,Zqe,WD),mV(A7e,"FeatureMapUtil/BasicValidator/Cache",758),hIe(501,52,{20:1,28:1,52:1,14:1,15:1,58:1,76:1,69:1,95:1},NO),xKe.Vc=function(e,t){OLe(this.c,this.b,e,t)},xKe.Fc=function(e){return NFe(this.c,this.b,e)},xKe.Wc=function(e,t){return yUe(this.c,this.b,e,t)},xKe.Gc=function(e){return XD(this,e)},xKe.Xh=function(e,t){lte(this.c,this.b,e,t)},xKe.lk=function(e,t){return SPe(this.c,this.b,e,t)},xKe.pi=function(e){return tUe(this.c,this.b,e,!1)},xKe.Zh=function(){return yI(this.c,this.b)},xKe.$h=function(){return wI(this.c,this.b)},xKe._h=function(e){return M8(this.c,this.b,e)},xKe.mk=function(e,t){return ZB(this,e,t)},xKe.$b=function(){DA(this)},xKe.Hc=function(e){return U3(this.c,this.b,e)},xKe.Ic=function(e){return xoe(this.c,this.b,e)},xKe.Xb=function(e){return tUe(this.c,this.b,e,!0)},xKe.Wj=function(e){return this},xKe.Xc=function(e){return Q3(this.c,this.b,e)},xKe.dc=function(){return jO(this)},xKe.fj=function(){return!ige(this.c,this.b)},xKe.Kc=function(){return ree(this.c,this.b)},xKe.Yc=function(){return iee(this.c,this.b)},xKe.Zc=function(e){return uhe(this.c,this.b,e)},xKe.ii=function(e,t){return vje(this.c,this.b,e,t)},xKe.ji=function(e,t){K6(this.c,this.b,e,t)},xKe.$c=function(e){return iTe(this.c,this.b,e)},xKe.Mc=function(e){return CFe(this.c,this.b,e)},xKe._c=function(e,t){return Wje(this.c,this.b,e,t)},xKe.Wb=function(e){OMe(this.c,this.b),XD(this,$H(e,15))},xKe.gc=function(){return Bhe(this.c,this.b)},xKe.Pc=function(){return U0(this.c,this.b)},xKe.Qc=function(e){return z3(this.c,this.b,e)},xKe.Ib=function(){var e,t;for((t=new Ew).a+="[",e=yI(this.c,this.b);Bce(e);)rM(t,bR(rAe(e))),Bce(e)&&(t.a+=FKe);return t.a+="]",t.a},xKe.Xj=function(){OMe(this.c,this.b)},mV(A7e,"FeatureMapUtil/FeatureEList",501),hIe(627,36,Z8e,d4),xKe.yi=function(e){return ehe(this,e)},xKe.Di=function(e){var t,n,r,i;switch(this.d){case 1:case 2:if(UO(e.Ai())===UO(this.c)&&ehe(this,null)==e.yi(null))return this.g=e.zi(),1==e.xi()&&(this.d=1),!0;break;case 3:if(3===e.xi()&&UO(e.Ai())===UO(this.c)&&ehe(this,null)==e.yi(null))return this.d=5,c7(t=new pte(2),this.g),c7(t,e.zi()),this.g=t,!0;break;case 5:if(3===e.xi()&&UO(e.Ai())===UO(this.c)&&ehe(this,null)==e.yi(null))return $H(this.g,14).Fc(e.zi()),!0;break;case 4:switch(e.xi()){case 3:if(UO(e.Ai())===UO(this.c)&&ehe(this,null)==e.yi(null))return this.d=1,this.g=e.zi(),!0;break;case 4:if(UO(e.Ai())===UO(this.c)&&ehe(this,null)==e.yi(null))return this.d=6,c7(i=new pte(2),this.n),c7(i,e.Bi()),this.n=i,r=Sse(Uw(kRt,1),lqe,25,15,[this.o,e.Ci()]),this.g=r,!0}break;case 6:if(4===e.xi()&&UO(e.Ai())===UO(this.c)&&ehe(this,null)==e.yi(null))return $H(this.n,14).Fc(e.Bi()),iUe(r=$H(this.g,48),0,n=N8(kRt,lqe,25,r.length+1,15,1),0,r.length),n[r.length]=e.Ci(),this.g=n,!0}return!1},mV(A7e,"FeatureMapUtil/FeatureENotificationImpl",627),hIe(552,501,{20:1,28:1,52:1,14:1,15:1,58:1,76:1,153:1,215:1,1937:1,69:1,95:1},uQ),xKe.dl=function(e,t){return NFe(this.c,e,t)},xKe.el=function(e,t,n){return SPe(this.c,e,t,n)},xKe.fl=function(e,t,n){return XHe(this.c,e,t,n)},xKe.gl=function(){return this},xKe.hl=function(e,t){return nUe(this.c,e,t)},xKe.il=function(e){return $H(tUe(this.c,this.b,e,!1),72).ak()},xKe.jl=function(e){return $H(tUe(this.c,this.b,e,!1),72).dd()},xKe.kl=function(){return this.a},xKe.ll=function(e){return!ige(this.c,e)},xKe.ml=function(e,t){xUe(this.c,e,t)},xKe.nl=function(e){return Qre(this.c,e)},xKe.ol=function(e){Bbe(this.c,e)},mV(A7e,"FeatureMapUtil/FeatureFeatureMap",552),hIe(1259,1,b7e,BO),xKe.Wj=function(e){return tUe(this.b,this.a,-1,e)},xKe.fj=function(){return!ige(this.b,this.a)},xKe.Wb=function(e){xUe(this.b,this.a,e)},xKe.Xj=function(){OMe(this.b,this.a)},mV(A7e,"FeatureMapUtil/FeatureValue",1259);var dNt=dQ(k9e,"AnyType");hIe(666,60,$Ye,tw),mV(k9e,"InvalidDatatypeValueException",666);var hNt,fNt,pNt,gNt,mNt,vNt,ANt,bNt,yNt,wNt,_Nt,xNt,ENt,SNt,CNt,TNt,kNt,ONt,MNt,INt,DNt,NNt,RNt,LNt,BNt,PNt,FNt,$Nt,jNt,HNt,UNt=dQ(k9e,O9e),QNt=dQ(k9e,M9e),zNt=dQ(k9e,I9e);hIe(830,506,{105:1,92:1,90:1,56:1,49:1,97:1,843:1},Lb),xKe._g=function(e,t,n){switch(e){case 0:return n?(!this.c&&(this.c=new woe(this,0)),this.c):(!this.c&&(this.c=new woe(this,0)),this.c.b);case 1:return n?(!this.c&&(this.c=new woe(this,0)),$H(JZ(this.c,(zQe(),gNt)),153)):(!this.c&&(this.c=new woe(this,0)),$H($H(JZ(this.c,(zQe(),gNt)),153),215)).kl();case 2:return n?(!this.b&&(this.b=new woe(this,2)),this.b):(!this.b&&(this.b=new woe(this,2)),this.b.b)}return z7(this,e-dV(this.zh()),tte(2&this.j?(!this.k&&(this.k=new Ld),this.k).ck():this.zh(),e),t,n)},xKe.jh=function(e,t,n){switch(t){case 0:return!this.c&&(this.c=new woe(this,0)),_Fe(this.c,e,n);case 1:return(!this.c&&(this.c=new woe(this,0)),$H($H(JZ(this.c,(zQe(),gNt)),153),69)).mk(e,n);case 2:return!this.b&&(this.b=new woe(this,2)),_Fe(this.b,e,n)}return $H(tte(2&this.j?(!this.k&&(this.k=new Ld),this.k).ck():this.zh(),t),66).Nj().Rj(this,K9(this),t-dV(this.zh()),e,n)},xKe.lh=function(e){switch(e){case 0:return!!this.c&&0!=this.c.i;case 1:return!(!this.c&&(this.c=new woe(this,0)),$H(JZ(this.c,(zQe(),gNt)),153)).dc();case 2:return!!this.b&&0!=this.b.i}return k3(this,e-dV(this.zh()),tte(2&this.j?(!this.k&&(this.k=new Ld),this.k).ck():this.zh(),e))},xKe.sh=function(e,t){switch(e){case 0:return!this.c&&(this.c=new woe(this,0)),void ZG(this.c,t);case 1:return void(!this.c&&(this.c=new woe(this,0)),$H($H(JZ(this.c,(zQe(),gNt)),153),215)).Wb(t);case 2:return!this.b&&(this.b=new woe(this,2)),void ZG(this.b,t)}Ife(this,e-dV(this.zh()),tte(2&this.j?(!this.k&&(this.k=new Ld),this.k).ck():this.zh(),e),t)},xKe.zh=function(){return zQe(),pNt},xKe.Bh=function(e){switch(e){case 0:return!this.c&&(this.c=new woe(this,0)),void sQe(this.c);case 1:return void(!this.c&&(this.c=new woe(this,0)),$H(JZ(this.c,(zQe(),gNt)),153)).$b();case 2:return!this.b&&(this.b=new woe(this,2)),void sQe(this.b)}Hde(this,e-dV(this.zh()),tte(2&this.j?(!this.k&&(this.k=new Ld),this.k).ck():this.zh(),e))},xKe.Ib=function(){var e;return 4&this.j?SDe(this):((e=new cR(SDe(this))).a+=" (mixed: ",nM(e,this.c),e.a+=", anyAttribute: ",nM(e,this.b),e.a+=")",e.a)},mV(D9e,"AnyTypeImpl",830),hIe(667,506,{105:1,92:1,90:1,56:1,49:1,97:1,2021:1,667:1},Pc),xKe._g=function(e,t,n){switch(e){case 0:return this.a;case 1:return this.b}return z7(this,e-dV((zQe(),TNt)),tte(2&this.j?(!this.k&&(this.k=new Ld),this.k).ck():TNt,e),t,n)},xKe.lh=function(e){switch(e){case 0:return null!=this.a;case 1:return null!=this.b}return k3(this,e-dV((zQe(),TNt)),tte(2&this.j?(!this.k&&(this.k=new Ld),this.k).ck():TNt,e))},xKe.sh=function(e,t){switch(e){case 0:return void bf(this,EB(t));case 1:return void yf(this,EB(t))}Ife(this,e-dV((zQe(),TNt)),tte(2&this.j?(!this.k&&(this.k=new Ld),this.k).ck():TNt,e),t)},xKe.zh=function(){return zQe(),TNt},xKe.Bh=function(e){switch(e){case 0:return void(this.a=null);case 1:return void(this.b=null)}Hde(this,e-dV((zQe(),TNt)),tte(2&this.j?(!this.k&&(this.k=new Ld),this.k).ck():TNt,e))},xKe.Ib=function(){var e;return 4&this.j?SDe(this):((e=new cR(SDe(this))).a+=" (data: ",rM(e,this.a),e.a+=", target: ",rM(e,this.b),e.a+=")",e.a)},xKe.a=null,xKe.b=null,mV(D9e,"ProcessingInstructionImpl",667),hIe(668,830,{105:1,92:1,90:1,56:1,49:1,97:1,843:1,2022:1,668:1},Pb),xKe._g=function(e,t,n){switch(e){case 0:return n?(!this.c&&(this.c=new woe(this,0)),this.c):(!this.c&&(this.c=new woe(this,0)),this.c.b);case 1:return n?(!this.c&&(this.c=new woe(this,0)),$H(JZ(this.c,(zQe(),gNt)),153)):(!this.c&&(this.c=new woe(this,0)),$H($H(JZ(this.c,(zQe(),gNt)),153),215)).kl();case 2:return n?(!this.b&&(this.b=new woe(this,2)),this.b):(!this.b&&(this.b=new woe(this,2)),this.b.b);case 3:return!this.c&&(this.c=new woe(this,0)),EB(nUe(this.c,(zQe(),MNt),!0));case 4:return pF(this.a,(!this.c&&(this.c=new woe(this,0)),EB(nUe(this.c,(zQe(),MNt),!0))));case 5:return this.a}return z7(this,e-dV((zQe(),ONt)),tte(2&this.j?(!this.k&&(this.k=new Ld),this.k).ck():ONt,e),t,n)},xKe.lh=function(e){switch(e){case 0:return!!this.c&&0!=this.c.i;case 1:return!(!this.c&&(this.c=new woe(this,0)),$H(JZ(this.c,(zQe(),gNt)),153)).dc();case 2:return!!this.b&&0!=this.b.i;case 3:return!this.c&&(this.c=new woe(this,0)),null!=EB(nUe(this.c,(zQe(),MNt),!0));case 4:return null!=pF(this.a,(!this.c&&(this.c=new woe(this,0)),EB(nUe(this.c,(zQe(),MNt),!0))));case 5:return!!this.a}return k3(this,e-dV((zQe(),ONt)),tte(2&this.j?(!this.k&&(this.k=new Ld),this.k).ck():ONt,e))},xKe.sh=function(e,t){switch(e){case 0:return!this.c&&(this.c=new woe(this,0)),void ZG(this.c,t);case 1:return void(!this.c&&(this.c=new woe(this,0)),$H($H(JZ(this.c,(zQe(),gNt)),153),215)).Wb(t);case 2:return!this.b&&(this.b=new woe(this,2)),void ZG(this.b,t);case 3:return void F1(this,EB(t));case 4:return void F1(this,gF(this.a,t));case 5:return void wf(this,$H(t,148))}Ife(this,e-dV((zQe(),ONt)),tte(2&this.j?(!this.k&&(this.k=new Ld),this.k).ck():ONt,e),t)},xKe.zh=function(){return zQe(),ONt},xKe.Bh=function(e){switch(e){case 0:return!this.c&&(this.c=new woe(this,0)),void sQe(this.c);case 1:return void(!this.c&&(this.c=new woe(this,0)),$H(JZ(this.c,(zQe(),gNt)),153)).$b();case 2:return!this.b&&(this.b=new woe(this,2)),void sQe(this.b);case 3:return!this.c&&(this.c=new woe(this,0)),void xUe(this.c,(zQe(),MNt),null);case 4:return void F1(this,gF(this.a,null));case 5:return void(this.a=null)}Hde(this,e-dV((zQe(),ONt)),tte(2&this.j?(!this.k&&(this.k=new Ld),this.k).ck():ONt,e))},mV(D9e,"SimpleAnyTypeImpl",668),hIe(669,506,{105:1,92:1,90:1,56:1,49:1,97:1,2023:1,669:1},Bb),xKe._g=function(e,t,n){switch(e){case 0:return n?(!this.a&&(this.a=new woe(this,0)),this.a):(!this.a&&(this.a=new woe(this,0)),this.a.b);case 1:return n?(!this.b&&(this.b=new A7((pKe(),ADt),zDt,this,1)),this.b):(!this.b&&(this.b=new A7((pKe(),ADt),zDt,this,1)),O8(this.b));case 2:return n?(!this.c&&(this.c=new A7((pKe(),ADt),zDt,this,2)),this.c):(!this.c&&(this.c=new A7((pKe(),ADt),zDt,this,2)),O8(this.c));case 3:return!this.a&&(this.a=new woe(this,0)),JZ(this.a,(zQe(),NNt));case 4:return!this.a&&(this.a=new woe(this,0)),JZ(this.a,(zQe(),RNt));case 5:return!this.a&&(this.a=new woe(this,0)),JZ(this.a,(zQe(),BNt));case 6:return!this.a&&(this.a=new woe(this,0)),JZ(this.a,(zQe(),PNt))}return z7(this,e-dV((zQe(),DNt)),tte(2&this.j?(!this.k&&(this.k=new Ld),this.k).ck():DNt,e),t,n)},xKe.jh=function(e,t,n){switch(t){case 0:return!this.a&&(this.a=new woe(this,0)),_Fe(this.a,e,n);case 1:return!this.b&&(this.b=new A7((pKe(),ADt),zDt,this,1)),$F(this.b,e,n);case 2:return!this.c&&(this.c=new A7((pKe(),ADt),zDt,this,2)),$F(this.c,e,n);case 5:return!this.a&&(this.a=new woe(this,0)),ZB(JZ(this.a,(zQe(),BNt)),e,n)}return $H(tte(2&this.j?(!this.k&&(this.k=new Ld),this.k).ck():(zQe(),DNt),t),66).Nj().Rj(this,K9(this),t-dV((zQe(),DNt)),e,n)},xKe.lh=function(e){switch(e){case 0:return!!this.a&&0!=this.a.i;case 1:return!!this.b&&0!=this.b.f;case 2:return!!this.c&&0!=this.c.f;case 3:return!this.a&&(this.a=new woe(this,0)),!jO(JZ(this.a,(zQe(),NNt)));case 4:return!this.a&&(this.a=new woe(this,0)),!jO(JZ(this.a,(zQe(),RNt)));case 5:return!this.a&&(this.a=new woe(this,0)),!jO(JZ(this.a,(zQe(),BNt)));case 6:return!this.a&&(this.a=new woe(this,0)),!jO(JZ(this.a,(zQe(),PNt)))}return k3(this,e-dV((zQe(),DNt)),tte(2&this.j?(!this.k&&(this.k=new Ld),this.k).ck():DNt,e))},xKe.sh=function(e,t){switch(e){case 0:return!this.a&&(this.a=new woe(this,0)),void ZG(this.a,t);case 1:return!this.b&&(this.b=new A7((pKe(),ADt),zDt,this,1)),void Zoe(this.b,t);case 2:return!this.c&&(this.c=new A7((pKe(),ADt),zDt,this,2)),void Zoe(this.c,t);case 3:return!this.a&&(this.a=new woe(this,0)),DA(JZ(this.a,(zQe(),NNt))),!this.a&&(this.a=new woe(this,0)),void XD(JZ(this.a,NNt),$H(t,14));case 4:return!this.a&&(this.a=new woe(this,0)),DA(JZ(this.a,(zQe(),RNt))),!this.a&&(this.a=new woe(this,0)),void XD(JZ(this.a,RNt),$H(t,14));case 5:return!this.a&&(this.a=new woe(this,0)),DA(JZ(this.a,(zQe(),BNt))),!this.a&&(this.a=new woe(this,0)),void XD(JZ(this.a,BNt),$H(t,14));case 6:return!this.a&&(this.a=new woe(this,0)),DA(JZ(this.a,(zQe(),PNt))),!this.a&&(this.a=new woe(this,0)),void XD(JZ(this.a,PNt),$H(t,14))}Ife(this,e-dV((zQe(),DNt)),tte(2&this.j?(!this.k&&(this.k=new Ld),this.k).ck():DNt,e),t)},xKe.zh=function(){return zQe(),DNt},xKe.Bh=function(e){switch(e){case 0:return!this.a&&(this.a=new woe(this,0)),void sQe(this.a);case 1:return!this.b&&(this.b=new A7((pKe(),ADt),zDt,this,1)),void this.b.c.$b();case 2:return!this.c&&(this.c=new A7((pKe(),ADt),zDt,this,2)),void this.c.c.$b();case 3:return!this.a&&(this.a=new woe(this,0)),void DA(JZ(this.a,(zQe(),NNt)));case 4:return!this.a&&(this.a=new woe(this,0)),void DA(JZ(this.a,(zQe(),RNt)));case 5:return!this.a&&(this.a=new woe(this,0)),void DA(JZ(this.a,(zQe(),BNt)));case 6:return!this.a&&(this.a=new woe(this,0)),void DA(JZ(this.a,(zQe(),PNt)))}Hde(this,e-dV((zQe(),DNt)),tte(2&this.j?(!this.k&&(this.k=new Ld),this.k).ck():DNt,e))},xKe.Ib=function(){var e;return 4&this.j?SDe(this):((e=new cR(SDe(this))).a+=" (mixed: ",nM(e,this.a),e.a+=")",e.a)},mV(D9e,"XMLTypeDocumentRootImpl",669),hIe(1919,704,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1,2024:1},Bc),xKe.Ih=function(e,t){switch(e.yj()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return null==t?null:$fe(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return EB(t);case 6:return vB($H(t,190));case 12:case 47:case 49:case 11:return Hze(this,e,t);case 13:return null==t?null:UHe($H(t,240));case 15:case 14:return null==t?null:LG(Uy(xB(t)));case 17:return wxe((zQe(),t));case 18:return wxe(t);case 21:case 20:return null==t?null:BG($H(t,155).a);case 27:return AB($H(t,190));case 30:return Pbe((zQe(),$H(t,15)));case 31:return Pbe($H(t,15));case 40:return yB((zQe(),t));case 42:return _xe((zQe(),t));case 43:return _xe(t);case 59:case 48:return bB((zQe(),t));default:throw jv(new Py(f6e+e.ne()+p6e))}},xKe.Jh=function(e){var t;switch(-1==e.G&&(e.G=(t=zte(e))?oAe(t.Mh(),e):-1),e.G){case 0:return new Lb;case 1:return new Pc;case 2:return new Pb;case 3:return new Bb;default:throw jv(new Py(v6e+e.zb+p6e))}},xKe.Kh=function(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v;switch(e.yj()){case 5:case 52:case 4:return t;case 6:return Ave(t);case 8:case 7:return null==t?null:Pxe(t);case 9:return null==t?null:See(u$e((r=FHe(t,!0)).length>0&&(d0(0,r.length),43==r.charCodeAt(0))?r.substr(1):r,-128,127)<<24>>24);case 10:return null==t?null:See(u$e((i=FHe(t,!0)).length>0&&(d0(0,i.length),43==i.charCodeAt(0))?i.substr(1):i,-128,127)<<24>>24);case 11:return EB(NVe(this,(zQe(),ANt),t));case 12:return EB(NVe(this,(zQe(),bNt),t));case 13:return null==t?null:new hx(FHe(t,!0));case 15:case 14:return pNe(t);case 16:return EB(NVe(this,(zQe(),yNt),t));case 17:return jge((zQe(),t));case 18:return jge(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return FHe(t,!0);case 21:case 20:return TNe(t);case 22:return EB(NVe(this,(zQe(),wNt),t));case 23:return EB(NVe(this,(zQe(),_Nt),t));case 24:return EB(NVe(this,(zQe(),xNt),t));case 25:return EB(NVe(this,(zQe(),ENt),t));case 26:return EB(NVe(this,(zQe(),SNt),t));case 27:return Xme(t);case 30:return Hge((zQe(),t));case 31:return Hge(t);case 32:return null==t?null:the(u$e((u=FHe(t,!0)).length>0&&(d0(0,u.length),43==u.charCodeAt(0))?u.substr(1):u,PYe,RKe));case 33:return null==t?null:new MI((d=FHe(t,!0)).length>0&&(d0(0,d.length),43==d.charCodeAt(0))?d.substr(1):d);case 34:return null==t?null:the(u$e((h=FHe(t,!0)).length>0&&(d0(0,h.length),43==h.charCodeAt(0))?h.substr(1):h,PYe,RKe));case 36:return null==t?null:yme(nGe((f=FHe(t,!0)).length>0&&(d0(0,f.length),43==f.charCodeAt(0))?f.substr(1):f));case 37:return null==t?null:yme(nGe((p=FHe(t,!0)).length>0&&(d0(0,p.length),43==p.charCodeAt(0))?p.substr(1):p));case 40:return Vpe((zQe(),t));case 42:return Uge((zQe(),t));case 43:return Uge(t);case 44:return null==t?null:new MI((g=FHe(t,!0)).length>0&&(d0(0,g.length),43==g.charCodeAt(0))?g.substr(1):g);case 45:return null==t?null:new MI((m=FHe(t,!0)).length>0&&(d0(0,m.length),43==m.charCodeAt(0))?m.substr(1):m);case 46:return FHe(t,!1);case 47:return EB(NVe(this,(zQe(),CNt),t));case 59:case 48:return Gpe((zQe(),t));case 49:return EB(NVe(this,(zQe(),kNt),t));case 50:return null==t?null:nhe(u$e((v=FHe(t,!0)).length>0&&(d0(0,v.length),43==v.charCodeAt(0))?v.substr(1):v,K7e,32767)<<16>>16);case 51:return null==t?null:nhe(u$e((o=FHe(t,!0)).length>0&&(d0(0,o.length),43==o.charCodeAt(0))?o.substr(1):o,K7e,32767)<<16>>16);case 53:return EB(NVe(this,(zQe(),INt),t));case 55:return null==t?null:nhe(u$e((a=FHe(t,!0)).length>0&&(d0(0,a.length),43==a.charCodeAt(0))?a.substr(1):a,K7e,32767)<<16>>16);case 56:return null==t?null:nhe(u$e((s=FHe(t,!0)).length>0&&(d0(0,s.length),43==s.charCodeAt(0))?s.substr(1):s,K7e,32767)<<16>>16);case 57:return null==t?null:yme(nGe((l=FHe(t,!0)).length>0&&(d0(0,l.length),43==l.charCodeAt(0))?l.substr(1):l));case 58:return null==t?null:yme(nGe((c=FHe(t,!0)).length>0&&(d0(0,c.length),43==c.charCodeAt(0))?c.substr(1):c));case 60:return null==t?null:the(u$e((n=FHe(t,!0)).length>0&&(d0(0,n.length),43==n.charCodeAt(0))?n.substr(1):n,PYe,RKe));case 61:return null==t?null:the(u$e(FHe(t,!0),PYe,RKe));default:throw jv(new Py(f6e+e.ne()+p6e))}},mV(D9e,"XMLTypeFactoryImpl",1919),hIe(586,179,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1,1945:1,586:1},QK),xKe.N=!1,xKe.O=!1;var WNt,GNt,VNt,KNt,YNt,qNt=!1;mV(D9e,"XMLTypePackageImpl",586),hIe(1852,1,{837:1},Fc),xKe._j=function(){return cje(),wRt},mV(D9e,"XMLTypePackageImpl/1",1852),hIe(1861,1,s9e,$c),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/10",1861),hIe(1862,1,s9e,jc),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/11",1862),hIe(1863,1,s9e,Hc),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/12",1863),hIe(1864,1,s9e,Uc),xKe.wj=function(e){return zO(e)},xKe.xj=function(e){return N8(Ctt,sYe,333,e,7,1)},mV(D9e,"XMLTypePackageImpl/13",1864),hIe(1865,1,s9e,Qc),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/14",1865),hIe(1866,1,s9e,zc),xKe.wj=function(e){return rN(e,15)},xKe.xj=function(e){return N8(Bet,JJe,15,e,0,1)},mV(D9e,"XMLTypePackageImpl/15",1866),hIe(1867,1,s9e,Wc),xKe.wj=function(e){return rN(e,15)},xKe.xj=function(e){return N8(Bet,JJe,15,e,0,1)},mV(D9e,"XMLTypePackageImpl/16",1867),hIe(1868,1,s9e,Gc),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/17",1868),hIe(1869,1,s9e,Vc),xKe.wj=function(e){return rN(e,155)},xKe.xj=function(e){return N8(Ttt,sYe,155,e,0,1)},mV(D9e,"XMLTypePackageImpl/18",1869),hIe(1870,1,s9e,Kc),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/19",1870),hIe(1853,1,s9e,Yc),xKe.wj=function(e){return rN(e,843)},xKe.xj=function(e){return N8(dNt,jKe,843,e,0,1)},mV(D9e,"XMLTypePackageImpl/2",1853),hIe(1871,1,s9e,qc),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/20",1871),hIe(1872,1,s9e,Xc),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/21",1872),hIe(1873,1,s9e,Jc),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/22",1873),hIe(1874,1,s9e,Zc),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/23",1874),hIe(1875,1,s9e,eu),xKe.wj=function(e){return rN(e,190)},xKe.xj=function(e){return N8(IRt,sYe,190,e,0,2)},mV(D9e,"XMLTypePackageImpl/24",1875),hIe(1876,1,s9e,tu),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/25",1876),hIe(1877,1,s9e,nu),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/26",1877),hIe(1878,1,s9e,ru),xKe.wj=function(e){return rN(e,15)},xKe.xj=function(e){return N8(Bet,JJe,15,e,0,1)},mV(D9e,"XMLTypePackageImpl/27",1878),hIe(1879,1,s9e,iu),xKe.wj=function(e){return rN(e,15)},xKe.xj=function(e){return N8(Bet,JJe,15,e,0,1)},mV(D9e,"XMLTypePackageImpl/28",1879),hIe(1880,1,s9e,ou),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/29",1880),hIe(1854,1,s9e,au),xKe.wj=function(e){return rN(e,667)},xKe.xj=function(e){return N8(UNt,jKe,2021,e,0,1)},mV(D9e,"XMLTypePackageImpl/3",1854),hIe(1881,1,s9e,su),xKe.wj=function(e){return rN(e,19)},xKe.xj=function(e){return N8(Mtt,sYe,19,e,0,1)},mV(D9e,"XMLTypePackageImpl/30",1881),hIe(1882,1,s9e,lu),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/31",1882),hIe(1883,1,s9e,cu),xKe.wj=function(e){return rN(e,162)},xKe.xj=function(e){return N8(Btt,sYe,162,e,0,1)},mV(D9e,"XMLTypePackageImpl/32",1883),hIe(1884,1,s9e,uu),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/33",1884),hIe(1885,1,s9e,du),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/34",1885),hIe(1886,1,s9e,hu),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/35",1886),hIe(1887,1,s9e,fu),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/36",1887),hIe(1888,1,s9e,pu),xKe.wj=function(e){return rN(e,15)},xKe.xj=function(e){return N8(Bet,JJe,15,e,0,1)},mV(D9e,"XMLTypePackageImpl/37",1888),hIe(1889,1,s9e,gu),xKe.wj=function(e){return rN(e,15)},xKe.xj=function(e){return N8(Bet,JJe,15,e,0,1)},mV(D9e,"XMLTypePackageImpl/38",1889),hIe(1890,1,s9e,mu),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/39",1890),hIe(1855,1,s9e,vu),xKe.wj=function(e){return rN(e,668)},xKe.xj=function(e){return N8(QNt,jKe,2022,e,0,1)},mV(D9e,"XMLTypePackageImpl/4",1855),hIe(1891,1,s9e,Au),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/40",1891),hIe(1892,1,s9e,bu),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/41",1892),hIe(1893,1,s9e,yu),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/42",1893),hIe(1894,1,s9e,wu),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/43",1894),hIe(1895,1,s9e,_u),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/44",1895),hIe(1896,1,s9e,xu),xKe.wj=function(e){return rN(e,184)},xKe.xj=function(e){return N8(Ftt,sYe,184,e,0,1)},mV(D9e,"XMLTypePackageImpl/45",1896),hIe(1897,1,s9e,Eu),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/46",1897),hIe(1898,1,s9e,Su),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/47",1898),hIe(1899,1,s9e,Cu),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/48",1899),hIe(sqe,1,s9e,Tu),xKe.wj=function(e){return rN(e,184)},xKe.xj=function(e){return N8(Ftt,sYe,184,e,0,1)},mV(D9e,"XMLTypePackageImpl/49",sqe),hIe(1856,1,s9e,ku),xKe.wj=function(e){return rN(e,669)},xKe.xj=function(e){return N8(zNt,jKe,2023,e,0,1)},mV(D9e,"XMLTypePackageImpl/5",1856),hIe(1901,1,s9e,Ou),xKe.wj=function(e){return rN(e,162)},xKe.xj=function(e){return N8(Btt,sYe,162,e,0,1)},mV(D9e,"XMLTypePackageImpl/50",1901),hIe(1902,1,s9e,Mu),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/51",1902),hIe(1903,1,s9e,Iu),xKe.wj=function(e){return rN(e,19)},xKe.xj=function(e){return N8(Mtt,sYe,19,e,0,1)},mV(D9e,"XMLTypePackageImpl/52",1903),hIe(1857,1,s9e,Du),xKe.wj=function(e){return WO(e)},xKe.xj=function(e){return N8(Ytt,sYe,2,e,6,1)},mV(D9e,"XMLTypePackageImpl/6",1857),hIe(1858,1,s9e,Nu),xKe.wj=function(e){return rN(e,190)},xKe.xj=function(e){return N8(IRt,sYe,190,e,0,2)},mV(D9e,"XMLTypePackageImpl/7",1858),hIe(1859,1,s9e,Ru),xKe.wj=function(e){return QO(e)},xKe.xj=function(e){return N8(ytt,sYe,476,e,8,1)},mV(D9e,"XMLTypePackageImpl/8",1859),hIe(1860,1,s9e,Lu),xKe.wj=function(e){return rN(e,217)},xKe.xj=function(e){return N8(xtt,sYe,217,e,0,1)},mV(D9e,"XMLTypePackageImpl/9",1860),hIe(50,60,$Ye,iw),mV(iet,"RegEx/ParseException",50),hIe(820,1,{},Bu),xKe.sl=function(e){return e<this.j&&63==cY(this.i,e)},xKe.tl=function(){var e,t,n,r,i;if(10!=this.c)throw jv(new iw(bKe((oD(),p8e))));switch(e=this.a){case 101:e=27;break;case 102:e=12;break;case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 120:if(KVe(this),0!=this.c)throw jv(new iw(bKe((oD(),$8e))));if(123==this.a){for(i=0,n=0;;){if(KVe(this),0!=this.c)throw jv(new iw(bKe((oD(),$8e))));if((i=UAe(this.a))<0)break;if(n>16*n)throw jv(new iw(bKe((oD(),j8e))));n=16*n+i}if(125!=this.a)throw jv(new iw(bKe((oD(),H8e))));if(n>oet)throw jv(new iw(bKe((oD(),U8e))));e=n}else{if(i=0,0!=this.c||(i=UAe(this.a))<0)throw jv(new iw(bKe((oD(),$8e))));if(n=i,KVe(this),0!=this.c||(i=UAe(this.a))<0)throw jv(new iw(bKe((oD(),$8e))));e=n=16*n+i}break;case 117:if(r=0,KVe(this),0!=this.c||(r=UAe(this.a))<0)throw jv(new iw(bKe((oD(),$8e))));if(t=r,KVe(this),0!=this.c||(r=UAe(this.a))<0)throw jv(new iw(bKe((oD(),$8e))));if(t=16*t+r,KVe(this),0!=this.c||(r=UAe(this.a))<0)throw jv(new iw(bKe((oD(),$8e))));if(t=16*t+r,KVe(this),0!=this.c||(r=UAe(this.a))<0)throw jv(new iw(bKe((oD(),$8e))));e=t=16*t+r;break;case 118:if(KVe(this),0!=this.c||(r=UAe(this.a))<0)throw jv(new iw(bKe((oD(),$8e))));if(t=r,KVe(this),0!=this.c||(r=UAe(this.a))<0)throw jv(new iw(bKe((oD(),$8e))));if(t=16*t+r,KVe(this),0!=this.c||(r=UAe(this.a))<0)throw jv(new iw(bKe((oD(),$8e))));if(t=16*t+r,KVe(this),0!=this.c||(r=UAe(this.a))<0)throw jv(new iw(bKe((oD(),$8e))));if(t=16*t+r,KVe(this),0!=this.c||(r=UAe(this.a))<0)throw jv(new iw(bKe((oD(),$8e))));if(t=16*t+r,KVe(this),0!=this.c||(r=UAe(this.a))<0)throw jv(new iw(bKe((oD(),$8e))));if((t=16*t+r)>oet)throw jv(new iw(bKe((oD(),"parser.descappe.4"))));e=t;break;case 65:case 90:case 122:throw jv(new iw(bKe((oD(),Q8e))))}return e},xKe.ul=function(e){var t;switch(e){case 100:t=32&~this.e?(hKe(),iRt):XGe("Nd",!0);break;case 68:t=32&~this.e?(hKe(),cRt):XGe("Nd",!1);break;case 119:t=32&~this.e?(hKe(),ARt):XGe("IsWord",!0);break;case 87:t=32&~this.e?(hKe(),dRt):XGe("IsWord",!1);break;case 115:t=32&~this.e?(hKe(),fRt):XGe("IsSpace",!0);break;case 83:t=32&~this.e?(hKe(),uRt):XGe("IsSpace",!1);break;default:throw jv(new fy(aet+e.toString(16)))}return t},xKe.vl=function(e){var t,n,r,i,o,a,s,l,c,u,d;for(this.b=1,KVe(this),t=null,0==this.c&&94==this.a?(KVe(this),e?(hKe(),hKe(),c=new x1(5)):(hKe(),hKe(),YLe(t=new x1(4),0,oet),c=new x1(4))):(hKe(),hKe(),c=new x1(4)),i=!0;1!=(d=this.c)&&(0!=d||93!=this.a||i);){if(i=!1,n=this.a,r=!1,10==d)switch(n){case 100:case 68:case 119:case 87:case 115:case 83:sUe(c,this.ul(n)),r=!0;break;case 105:case 73:case 99:case 67:(n=this.Ll(c,n))<0&&(r=!0);break;case 112:case 80:if(!(u=ROe(this,n)))throw jv(new iw(bKe((oD(),k8e))));sUe(c,u),r=!0;break;default:n=this.tl()}else if(20==d){if((o=uL(this.i,58,this.d))<0)throw jv(new iw(bKe((oD(),O8e))));if(a=!0,94==cY(this.i,this.d)&&(++this.d,a=!1),!(s=d7(cL(this.i,this.d,o),a,!(512&~this.e))))throw jv(new iw(bKe((oD(),I8e))));if(sUe(c,s),r=!0,o+1>=this.j||93!=cY(this.i,o+1))throw jv(new iw(bKe((oD(),O8e))));this.d=o+2}if(KVe(this),!r)if(0!=this.c||45!=this.a)YLe(c,n,n);else{if(KVe(this),1==(d=this.c))throw jv(new iw(bKe((oD(),M8e))));0==d&&93==this.a?(YLe(c,n,n),YLe(c,45,45)):(l=this.a,10==d&&(l=this.tl()),KVe(this),YLe(c,n,l))}(this.e&b6e)==b6e&&0==this.c&&44==this.a&&KVe(this)}if(1==this.c)throw jv(new iw(bKe((oD(),M8e))));return t&&(Gze(t,c),c=t),_De(c),HUe(c),this.b=0,KVe(this),c},xKe.wl=function(){var e,t,n,r;for(n=this.vl(!1);7!=(r=this.c);){if(e=this.a,(0!=r||45!=e&&38!=e)&&4!=r)throw jv(new iw(bKe((oD(),P8e))));if(KVe(this),9!=this.c)throw jv(new iw(bKe((oD(),B8e))));if(t=this.vl(!1),4==r)sUe(n,t);else if(45==e)Gze(n,t);else{if(38!=e)throw jv(new fy("ASSERT"));bze(n,t)}}return KVe(this),n},xKe.xl=function(){var e,t;return e=this.a-48,hKe(),hKe(),t=new mJ(12,null,e),!this.g&&(this.g=new PA),CA(this.g,new kv(e)),KVe(this),t},xKe.yl=function(){return KVe(this),hKe(),pRt},xKe.zl=function(){return KVe(this),hKe(),hRt},xKe.Al=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.Bl=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.Cl=function(){return KVe(this),cce()},xKe.Dl=function(){return KVe(this),hKe(),mRt},xKe.El=function(){return KVe(this),hKe(),bRt},xKe.Fl=function(){var e;if(this.d>=this.j||64!=(65504&(e=cY(this.i,this.d++))))throw jv(new iw(bKe((oD(),E8e))));return KVe(this),hKe(),hKe(),new az(0,e-64)},xKe.Gl=function(){return KVe(this),Lje()},xKe.Hl=function(){return KVe(this),hKe(),yRt},xKe.Il=function(){var e;return hKe(),hKe(),e=new az(0,105),KVe(this),e},xKe.Jl=function(){return KVe(this),hKe(),vRt},xKe.Kl=function(){return KVe(this),hKe(),gRt},xKe.Ll=function(e,t){return this.tl()},xKe.Ml=function(){return KVe(this),hKe(),sRt},xKe.Nl=function(){var e,t,n,r,i;if(this.d+1>=this.j)throw jv(new iw(bKe((oD(),w8e))));if(r=-1,t=null,49<=(e=cY(this.i,this.d))&&e<=57){if(r=e-48,!this.g&&(this.g=new PA),CA(this.g,new kv(r)),++this.d,41!=cY(this.i,this.d))throw jv(new iw(bKe((oD(),A8e))));++this.d}else switch(63==e&&--this.d,KVe(this),(t=kVe(this)).e){case 20:case 21:case 22:case 23:break;case 8:if(7!=this.c)throw jv(new iw(bKe((oD(),A8e))));break;default:throw jv(new iw(bKe((oD(),_8e))))}if(KVe(this),n=null,2==(i=Vge(this)).e){if(2!=i.em())throw jv(new iw(bKe((oD(),x8e))));n=i.am(1),i=i.am(0)}if(7!=this.c)throw jv(new iw(bKe((oD(),A8e))));return KVe(this),hKe(),hKe(),new yee(r,t,i,n)},xKe.Ol=function(){return KVe(this),hKe(),lRt},xKe.Pl=function(){var e;if(KVe(this),e=oG(24,Vge(this)),7!=this.c)throw jv(new iw(bKe((oD(),A8e))));return KVe(this),e},xKe.Ql=function(){var e;if(KVe(this),e=oG(20,Vge(this)),7!=this.c)throw jv(new iw(bKe((oD(),A8e))));return KVe(this),e},xKe.Rl=function(){var e;if(KVe(this),e=oG(22,Vge(this)),7!=this.c)throw jv(new iw(bKe((oD(),A8e))));return KVe(this),e},xKe.Sl=function(){var e,t,n,r,i;for(e=0,n=0,t=-1;this.d<this.j&&0!=(i=KMe(t=cY(this.i,this.d)));)e|=i,++this.d;if(this.d>=this.j)throw jv(new iw(bKe((oD(),b8e))));if(45==t){for(++this.d;this.d<this.j&&0!=(i=KMe(t=cY(this.i,this.d)));)n|=i,++this.d;if(this.d>=this.j)throw jv(new iw(bKe((oD(),b8e))))}if(58==t){if(++this.d,KVe(this),r=OV(Vge(this),e,n),7!=this.c)throw jv(new iw(bKe((oD(),A8e))));KVe(this)}else{if(41!=t)throw jv(new iw(bKe((oD(),y8e))));++this.d,KVe(this),r=OV(Vge(this),e,n)}return r},xKe.Tl=function(){var e;if(KVe(this),e=oG(21,Vge(this)),7!=this.c)throw jv(new iw(bKe((oD(),A8e))));return KVe(this),e},xKe.Ul=function(){var e;if(KVe(this),e=oG(23,Vge(this)),7!=this.c)throw jv(new iw(bKe((oD(),A8e))));return KVe(this),e},xKe.Vl=function(){var e,t;if(KVe(this),e=this.f++,t=aG(Vge(this),e),7!=this.c)throw jv(new iw(bKe((oD(),A8e))));return KVe(this),t},xKe.Wl=function(){var e;if(KVe(this),e=aG(Vge(this),0),7!=this.c)throw jv(new iw(bKe((oD(),A8e))));return KVe(this),e},xKe.Xl=function(e){return KVe(this),5==this.c?(KVe(this),pz(e,(hKe(),hKe(),new l4(9,e)))):pz(e,(hKe(),hKe(),new l4(3,e)))},xKe.Yl=function(e){var t;return KVe(this),hKe(),hKe(),t=new nD(2),5==this.c?(KVe(this),ZUe(t,aRt),ZUe(t,e)):(ZUe(t,e),ZUe(t,aRt)),t},xKe.Zl=function(e){return KVe(this),5==this.c?(KVe(this),hKe(),hKe(),new l4(9,e)):(hKe(),hKe(),new l4(3,e))},xKe.a=0,xKe.b=0,xKe.c=0,xKe.d=0,xKe.e=0,xKe.f=1,xKe.g=null,xKe.j=0,mV(iet,"RegEx/RegexParser",820),hIe(1824,820,{},Fb),xKe.sl=function(e){return!1},xKe.tl=function(){return HBe(this)},xKe.ul=function(e){return f$e(e)},xKe.vl=function(e){return XVe(this)},xKe.wl=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.xl=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.yl=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.zl=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.Al=function(){return KVe(this),f$e(67)},xKe.Bl=function(){return KVe(this),f$e(73)},xKe.Cl=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.Dl=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.El=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.Fl=function(){return KVe(this),f$e(99)},xKe.Gl=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.Hl=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.Il=function(){return KVe(this),f$e(105)},xKe.Jl=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.Kl=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.Ll=function(e,t){return sUe(e,f$e(t)),-1},xKe.Ml=function(){return KVe(this),hKe(),hKe(),new az(0,94)},xKe.Nl=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.Ol=function(){return KVe(this),hKe(),hKe(),new az(0,36)},xKe.Pl=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.Ql=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.Rl=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.Sl=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.Tl=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.Ul=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.Vl=function(){var e;if(KVe(this),e=aG(Vge(this),0),7!=this.c)throw jv(new iw(bKe((oD(),A8e))));return KVe(this),e},xKe.Wl=function(){throw jv(new iw(bKe((oD(),z8e))))},xKe.Xl=function(e){return KVe(this),pz(e,(hKe(),hKe(),new l4(3,e)))},xKe.Yl=function(e){var t;return KVe(this),hKe(),hKe(),ZUe(t=new nD(2),e),ZUe(t,aRt),t},xKe.Zl=function(e){return KVe(this),hKe(),hKe(),new l4(3,e)};var XNt=null,JNt=null;mV(iet,"RegEx/ParserForXMLSchema",1824),hIe(117,1,bet,Ov),xKe.$l=function(e){throw jv(new fy("Not supported."))},xKe._l=function(){return-1},xKe.am=function(e){return null},xKe.bm=function(){return null},xKe.cm=function(e){},xKe.dm=function(e){},xKe.em=function(){return 0},xKe.Ib=function(){return this.fm(0)},xKe.fm=function(e){return 11==this.e?".":""},xKe.e=0;var ZNt,eRt,tRt,nRt,rRt,iRt,oRt,aRt,sRt,lRt,cRt,uRt,dRt,hRt,fRt,pRt,gRt,mRt,vRt,ARt,bRt,yRt,wRt,_Rt,xRt=null,ERt=null,SRt=null,CRt=mV(iet,"RegEx/Token",117);hIe(136,117,{3:1,136:1,117:1},x1),xKe.fm=function(e){var t,n,r;if(4==this.e)if(this==oRt)n=".";else if(this==iRt)n="\\d";else if(this==ARt)n="\\w";else if(this==fRt)n="\\s";else{for((r=new Ew).a+="[",t=0;t<this.b.length;t+=2)e&b6e&&t>0&&(r.a+=","),this.b[t]===this.b[t+1]?rM(r,iHe(this.b[t])):(rM(r,iHe(this.b[t])),r.a+="-",rM(r,iHe(this.b[t+1])));r.a+="]",n=r.a}else if(this==cRt)n="\\D";else if(this==dRt)n="\\W";else if(this==uRt)n="\\S";else{for((r=new Ew).a+="[^",t=0;t<this.b.length;t+=2)e&b6e&&t>0&&(r.a+=","),this.b[t]===this.b[t+1]?rM(r,iHe(this.b[t])):(rM(r,iHe(this.b[t])),r.a+="-",rM(r,iHe(this.b[t+1])));r.a+="]",n=r.a}return n},xKe.a=!1,xKe.c=!1,mV(iet,"RegEx/RangeToken",136),hIe(584,1,{584:1},kv),xKe.a=0,mV(iet,"RegEx/RegexParser/ReferencePosition",584),hIe(583,1,{3:1,583:1},Wx),xKe.Fb=function(e){var t;return null!=e&&!!rN(e,583)&&(t=$H(e,583),vF(this.b,t.b)&&this.a==t.a)},xKe.Hb=function(){return mAe(this.b+"/"+ZRe(this.a))},xKe.Ib=function(){return this.c.fm(this.a)},xKe.a=0,mV(iet,"RegEx/RegularExpression",583),hIe(223,117,bet,az),xKe._l=function(){return this.a},xKe.fm=function(e){var t,n;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:n="\\"+SP(this.a&KYe);break;case 12:n="\\f";break;case 10:n="\\n";break;case 13:n="\\r";break;case 9:n="\\t";break;case 27:n="\\e";break;default:n=this.a>=$qe?"\\v"+cL(t="0"+(this.a>>>0).toString(16),t.length-6,t.length):""+SP(this.a&KYe)}break;case 8:n=this==sRt||this==lRt?""+SP(this.a&KYe):"\\"+SP(this.a&KYe);break;default:n=null}return n},xKe.a=0,mV(iet,"RegEx/Token/CharToken",223),hIe(309,117,bet,l4),xKe.am=function(e){return this.a},xKe.cm=function(e){this.b=e},xKe.dm=function(e){this.c=e},xKe.em=function(){return 1},xKe.fm=function(e){var t;if(3==this.e)if(this.c<0&&this.b<0)t=this.a.fm(e)+"*";else if(this.c==this.b)t=this.a.fm(e)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)t=this.a.fm(e)+"{"+this.c+","+this.b+"}";else{if(!(this.c>=0&&this.b<0))throw jv(new fy("Token#toString(): CLOSURE "+this.c+FKe+this.b));t=this.a.fm(e)+"{"+this.c+",}"}else if(this.c<0&&this.b<0)t=this.a.fm(e)+"*?";else if(this.c==this.b)t=this.a.fm(e)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)t=this.a.fm(e)+"{"+this.c+","+this.b+"}?";else{if(!(this.c>=0&&this.b<0))throw jv(new fy("Token#toString(): NONGREEDYCLOSURE "+this.c+FKe+this.b));t=this.a.fm(e)+"{"+this.c+",}?"}return t},xKe.b=0,xKe.c=0,mV(iet,"RegEx/Token/ClosureToken",309),hIe(821,117,bet,zG),xKe.am=function(e){return 0==e?this.a:this.b},xKe.em=function(){return 2},xKe.fm=function(e){return 3==this.b.e&&this.b.am(0)==this.a?this.a.fm(e)+"+":9==this.b.e&&this.b.am(0)==this.a?this.a.fm(e)+"+?":this.a.fm(e)+""+this.b.fm(e)},mV(iet,"RegEx/Token/ConcatToken",821),hIe(1822,117,bet,yee),xKe.am=function(e){if(0==e)return this.d;if(1==e)return this.b;throw jv(new fy("Internal Error: "+e))},xKe.em=function(){return this.b?2:1},xKe.fm=function(e){var t;return t=this.c>0?"(?("+this.c+")":8==this.a.e?"(?("+this.a+")":"(?"+this.a,this.b?t+=this.d+"|"+this.b+")":t+=this.d+")",t},xKe.c=0,mV(iet,"RegEx/Token/ConditionToken",1822),hIe(1823,117,bet,_1),xKe.am=function(e){return this.b},xKe.em=function(){return 1},xKe.fm=function(e){return"(?"+(0==this.a?"":ZRe(this.a))+(0==this.c?"":ZRe(this.c))+":"+this.b.fm(e)+")"},xKe.a=0,xKe.c=0,mV(iet,"RegEx/Token/ModifierToken",1823),hIe(822,117,bet,rK),xKe.am=function(e){return this.a},xKe.em=function(){return 1},xKe.fm=function(e){var t;switch(t=null,this.e){case 6:t=0==this.b?"(?:"+this.a.fm(e)+")":"("+this.a.fm(e)+")";break;case 20:t="(?="+this.a.fm(e)+")";break;case 21:t="(?!"+this.a.fm(e)+")";break;case 22:t="(?<="+this.a.fm(e)+")";break;case 23:t="(?<!"+this.a.fm(e)+")";break;case 24:t="(?>"+this.a.fm(e)+")"}return t},xKe.b=0,mV(iet,"RegEx/Token/ParenToken",822),hIe(521,117,{3:1,117:1,521:1},mJ),xKe.bm=function(){return this.b},xKe.fm=function(e){return 12==this.e?"\\"+this.a:tIe(this.b)},xKe.a=0,mV(iet,"RegEx/Token/StringToken",521),hIe(465,117,bet,nD),xKe.$l=function(e){ZUe(this,e)},xKe.am=function(e){return $H(dK(this.a,e),117)},xKe.em=function(){return this.a?this.a.a.c.length:0},xKe.fm=function(e){var t,n,r,i,o;if(1==this.e){if(2==this.a.a.c.length)t=$H(dK(this.a,0),117),i=3==(n=$H(dK(this.a,1),117)).e&&n.am(0)==t?t.fm(e)+"+":9==n.e&&n.am(0)==t?t.fm(e)+"+?":t.fm(e)+""+n.fm(e);else{for(o=new Ew,r=0;r<this.a.a.c.length;r++)rM(o,$H(dK(this.a,r),117).fm(e));i=o.a}return i}if(2==this.a.a.c.length&&7==$H(dK(this.a,1),117).e)i=$H(dK(this.a,0),117).fm(e)+"?";else if(2==this.a.a.c.length&&7==$H(dK(this.a,0),117).e)i=$H(dK(this.a,1),117).fm(e)+"??";else{for(rM(o=new Ew,$H(dK(this.a,0),117).fm(e)),r=1;r<this.a.a.c.length;r++)o.a+="|",rM(o,$H(dK(this.a,r),117).fm(e));i=o.a}return i},mV(iet,"RegEx/Token/UnionToken",465),hIe(518,1,{592:1},zx),xKe.Ib=function(){return this.a.b},mV(yet,"XMLTypeUtil/PatternMatcherImpl",518),hIe(1622,1381,{},Pu),mV(yet,"XMLTypeValidator",1622),hIe(264,1,gYe,lW),xKe.Jc=function(e){e5(this,e)},xKe.Kc=function(){return(this.b-this.a)*this.c<0?_Rt:new WN(this)},xKe.a=0,xKe.b=0,xKe.c=0,mV(_et,"ExclusiveRange",264),hIe(1068,1,rYe,Fu),xKe.Rb=function(e){$H(e,19),uD()},xKe.Nb=function(e){cG(this,e)},xKe.Pb=function(){return Ux()},xKe.Ub=function(){return Qx()},xKe.Wb=function(e){$H(e,19),hD()},xKe.Ob=function(){return!1},xKe.Sb=function(){return!1},xKe.Tb=function(){return-1},xKe.Vb=function(){return-1},xKe.Qb=function(){throw jv(new Zy(Set))},mV(_et,"ExclusiveRange/1",1068),hIe(254,1,rYe,WN),xKe.Rb=function(e){$H(e,19),dD()},xKe.Nb=function(e){cG(this,e)},xKe.Pb=function(){return Fue(this)},xKe.Ub=function(){return k7(this)},xKe.Wb=function(e){$H(e,19),fD()},xKe.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},xKe.Sb=function(){return this.b>0},xKe.Tb=function(){return this.b},xKe.Vb=function(){return this.b-1},xKe.Qb=function(){throw jv(new Zy(Set))},xKe.a=0,xKe.b=0,mV(_et,"ExclusiveRange/RangeIterator",254);var TRt=LK(S7e,"C"),kRt=LK(k7e,"I"),ORt=LK(MKe,"Z"),MRt=LK(O7e,"J"),IRt=LK(E7e,"B"),DRt=LK(C7e,"D"),NRt=LK(T7e,"F"),RRt=LK(M7e,"S"),LRt=dQ("org.eclipse.elk.core.labels","ILabelManager"),BRt=dQ($6e,"DiagnosticChain"),PRt=dQ(c9e,"ResourceSet"),FRt=mV($6e,"InvocationTargetException",null),$Rt=(Rw(),c5),jRt=jRt=lxe;Xne(Kv),soe("permProps",[[[Cet,Tet],[ket,"gecko1_8"]],[[Cet,Tet],[ket,"ie10"]],[[Cet,Tet],[ket,"ie8"]],[[Cet,Tet],[ket,"ie9"]],[[Cet,Tet],[ket,"safari"]]]),jRt(null,"elk",null)}).call(this)}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(e,t,n){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(t){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,n);var o=Object.assign({},t),a=!1;try{e.resolve("web-worker"),a=!0}catch(e){}if(t.workerUrl)if(a){var s=e("web-worker");o.workerFactory=function(e){return new s(e)}}else console.warn("Web worker requested but 'web-worker' package not installed. \nConsider installing the package or pass your own 'workerFactory' to ELK's constructor.\n... Falling back to non-web worker version.");if(!o.workerFactory){var l=e("./elk-worker.min.js").Worker;o.workerFactory=function(e){return new l(e)}}return i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,o))}return o(n,t),n}(e("./elk-api.js").default);Object.defineProperty(t.exports,"__esModule",{value:!0}),t.exports=a,a.default=a},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(e,t,n){t.exports=Worker},{}]},{},[3])(3)),Fwe.exports);const jwe=new(i($we)),Hwe={},Uwe={};let Qwe={};const zwe=(e,t,n)=>{const r={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return r.TD=r.TB,Hle.info("abc88",n,t,e),r[n][t][e]},Wwe=(e,t,n)=>{if(Hle.info("getNextPort abc88",{node:e,edgeDirection:t,graphDirection:n}),!Hwe[e])switch(n){case"TB":case"TD":Hwe[e]={inPosition:"north",outPosition:"south"};break;case"BT":Hwe[e]={inPosition:"south",outPosition:"north"};break;case"RL":Hwe[e]={inPosition:"east",outPosition:"west"};break;case"LR":Hwe[e]={inPosition:"west",outPosition:"east"}}const r="in"===t?Hwe[e].inPosition:Hwe[e].outPosition;return"in"===t?Hwe[e].inPosition=zwe(Hwe[e].inPosition,t,n):Hwe[e].outPosition=zwe(Hwe[e].outPosition,t,n),r},Gwe=function(e,t,n,r){Hle.info("abc78 edges = ",e);const i=r.insert("g").attr("class","edgeLabels");let o,a,s={},l=t.db.getDirection();if(void 0!==e.defaultStyle){const t=Kue(e.defaultStyle);o=t.style,a=t.labelStyle}return e.forEach(function(t){var r="L-"+t.start+"-"+t.end;void 0===s[r]?(s[r]=0,Hle.info("abc78 new entry",r,s[r])):(s[r]++,Hle.info("abc78 new entry",r,s[r]));let c=r+"-"+s[r];Hle.info("abc78 new link id to be used is",r,c,s[r]);var u="LS-"+t.start,d="LE-"+t.end;const h={style:"",labelStyle:""};switch(h.minlen=t.length||1,"arrow_open"===t.type?h.arrowhead="none":h.arrowhead="normal",h.arrowTypeStart="arrow_open",h.arrowTypeEnd="arrow_open",t.type){case"double_arrow_cross":h.arrowTypeStart="arrow_cross";case"arrow_cross":h.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":h.arrowTypeStart="arrow_point";case"arrow_point":h.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":h.arrowTypeStart="arrow_circle";case"arrow_circle":h.arrowTypeEnd="arrow_circle"}let f="",p="";switch(t.stroke){case"normal":f="fill:none;",void 0!==o&&(f=o),void 0!==a&&(p=a),h.thickness="normal",h.pattern="solid";break;case"dotted":h.thickness="normal",h.pattern="dotted",h.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":h.thickness="thick",h.pattern="solid",h.style="stroke-width: 3.5px;fill:none;"}if(void 0!==t.style){const e=Kue(t.style);f=e.style,p=e.labelStyle}h.style=h.style+=f,h.labelStyle=h.labelStyle+=p,void 0!==t.interpolate?h.curve=Gue(t.interpolate,Z9):void 0!==e.defaultInterpolate?h.curve=Gue(e.defaultInterpolate,Z9):h.curve=Gue(Uwe.curve,Z9),void 0===t.text?void 0!==t.style&&(h.arrowheadStyle="fill: #333"):(h.arrowheadStyle="fill: #333",h.labelpos="c"),h.labelType="text",h.label=t.text.replace(Jle.lineBreakRegex,"\n"),void 0===t.style&&(h.style=h.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),h.labelStyle=h.labelStyle.replace("color:","fill:"),h.id=c,h.classes="flowchart-link "+u+" "+d;const g=nge(i,h),{source:m,target:v}=((e,t)=>{let n=e.start,r=e.end;const i=Qwe[n],o=Qwe[r];return i&&o?("diamond"===i.type&&(n=`${n}-${Wwe(n,"out",t)}`),"diamond"===o.type&&(r=`${r}-${Wwe(r,"in",t)}`),{source:n,target:r}):{source:n,target:r}})(t,l);Hle.debug("abc78 source and target",m,v),n.edges.push({id:"e"+t.start+t.end,sources:[m],targets:[v],labelEl:g,labels:[{width:h.width,height:h.height,orgWidth:h.width,orgHeight:h.height,text:h.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:h})}),n},Vwe=function(e,t,n){const r=((e,t,n)=>{const{parentById:r}=n,i=new Set;let o=e;for(;o;){if(i.add(o),o===t)return o;o=r[o]}for(o=t;o;){if(i.has(o))return o;o=r[o]}return"root"})(e,t,n);if(void 0===r||"root"===r)return{x:0,y:0};const i=Qwe[r].offset;return{x:i.posX,y:i.posY}},Kwe=function(e,t,n,r,i){const o=Vwe(t.sources[0],t.targets[0],i),a=t.sections[0].startPoint,s=t.sections[0].endPoint,l=(t.sections[0].bendPoints?t.sections[0].bendPoints:[]).map(e=>[e.x+o.x,e.y+o.y]),c=[[a.x+o.x,a.y+o.y],...l,[s.x+o.x,s.y+o.y]],u=nee().curve(Z9),d=e.insert("path").attr("d",u(c)).attr("class","path").attr("fill","none"),h=e.insert("g").attr("class","edgeLabel"),f=b3(h.node().appendChild(t.labelEl)),p=f.node().firstChild.getBoundingClientRect();f.attr("width",p.width),f.attr("height",p.height),h.attr("transform",`translate(${t.labels[0].x+o.x}, ${t.labels[0].y+o.y})`),function(e,t,n,r){let i="";switch(r&&(i=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,i=i.replace(/\(/g,"\\("),i=i.replace(/\)/g,"\\)")),t.arrowTypeStart){case"arrow_cross":e.attr("marker-start","url("+i+"#"+n+"-crossStart)");break;case"arrow_point":e.attr("marker-start","url("+i+"#"+n+"-pointStart)");break;case"arrow_barb":e.attr("marker-start","url("+i+"#"+n+"-barbStart)");break;case"arrow_circle":e.attr("marker-start","url("+i+"#"+n+"-circleStart)");break;case"aggregation":e.attr("marker-start","url("+i+"#"+n+"-aggregationStart)");break;case"extension":e.attr("marker-start","url("+i+"#"+n+"-extensionStart)");break;case"composition":e.attr("marker-start","url("+i+"#"+n+"-compositionStart)");break;case"dependency":e.attr("marker-start","url("+i+"#"+n+"-dependencyStart)");break;case"lollipop":e.attr("marker-start","url("+i+"#"+n+"-lollipopStart)")}switch(t.arrowTypeEnd){case"arrow_cross":e.attr("marker-end","url("+i+"#"+n+"-crossEnd)");break;case"arrow_point":e.attr("marker-end","url("+i+"#"+n+"-pointEnd)");break;case"arrow_barb":e.attr("marker-end","url("+i+"#"+n+"-barbEnd)");break;case"arrow_circle":e.attr("marker-end","url("+i+"#"+n+"-circleEnd)");break;case"aggregation":e.attr("marker-end","url("+i+"#"+n+"-aggregationEnd)");break;case"extension":e.attr("marker-end","url("+i+"#"+n+"-extensionEnd)");break;case"composition":e.attr("marker-end","url("+i+"#"+n+"-compositionEnd)");break;case"dependency":e.attr("marker-end","url("+i+"#"+n+"-dependencyEnd)");break;case"lollipop":e.attr("marker-end","url("+i+"#"+n+"-lollipopEnd)")}}(d,n,r.type,r.arrowMarkerAbsolute)},Ywe=(e,t)=>{e.forEach(e=>{e.children||(e.children=[]);const n=t.childrenById[e.id];n&&n.forEach(t=>{e.children.push(Qwe[t])}),Ywe(e.children,t)})},qwe=(e,t,n,r,i,o,a)=>{n.forEach(function(n){if(n)if(Qwe[n.id].offset={posX:n.x+e,posY:n.y+t,x:e,y:t,depth:a,width:n.width,height:n.height},"group"===n.type){const r=i.insert("g").attr("class","subgraph");r.insert("rect").attr("class","subgraph subgraph-lvl-"+a%5+" node").attr("x",n.x+e).attr("y",n.y+t).attr("width",n.width).attr("height",n.height);const o=r.insert("g").attr("class","label");o.attr("transform",`translate(${n.labels[0].x+e+n.x}, ${n.labels[0].y+t+n.y})`),o.node().appendChild(n.labelData.labelNode),Hle.info("Id (UGH)= ",n.type,n.labels)}else Hle.info("Id (UGH)= ",n.id),n.el.attr("transform",`translate(${n.x+e+n.width/2}, ${n.y+t+n.height/2})`)}),n.forEach(function(n){n&&"group"===n.type&&qwe(e+n.x,t+n.y,n.children,r,i,o,a+1)})},Xwe={getClasses:function(e,t){Hle.info("Extracting classes"),t.db.clear("ver-2");try{return t.parse(e),t.db.getClasses()}catch(e){return{}}},draw:async function(e,t,n,r){var i;r.db.clear(),Qwe={},r.db.setGen("gen-2"),r.parser.parse(e);const o=b3("body").append("div").attr("style","height:400px").attr("id","cy");let a={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(Hle.info("Drawing flowchart using v3 renderer",jwe),r.db.getDirection()){case"BT":a.layoutOptions["elk.direction"]="UP";break;case"TB":a.layoutOptions["elk.direction"]="DOWN";break;case"LR":a.layoutOptions["elk.direction"]="RIGHT";break;case"RL":a.layoutOptions["elk.direction"]="LEFT"}const{securityLevel:s,flowchart:l}=bde();let c;"sandbox"===s&&(c=b3("#i"+t));const u=b3("sandbox"===s?c.nodes()[0].contentDocument.body:"body"),d="sandbox"===s?c.nodes()[0].contentDocument:document,h=u.select(`[id="${t}"]`);Epe(h,["point","circle","cross"],r.type,r.arrowMarkerAbsolute);const f=r.db.getVertices();let p;const g=r.db.getSubGraphs();Hle.info("Subgraphs - ",g);for(let w=g.length-1;w>=0;w--)p=g[w],r.db.addVertex(p.id,p.title,"group",void 0,p.classes,p.dir);const m=h.insert("g").attr("class","subgraphs"),v=function(e){const t={parentById:{},childrenById:{}},n=e.getSubGraphs();return Hle.info("Subgraphs - ",n),n.forEach(function(e){e.nodes.forEach(function(n){t.parentById[n]=e.id,void 0===t.childrenById[e.id]&&(t.childrenById[e.id]=[]),t.childrenById[e.id].push(n)})}),n.forEach(function(e){e.id,void 0!==t.parentById[e.id]&&t.parentById[e.id]}),t}(r.db);a=function(e,t,n,r,i,o,a){const s=n.select(`[id="${t}"]`),l=s.insert("g").attr("class","nodes");return Object.keys(e).forEach(function(t){const n=e[t];let a="default";n.classes.length>0&&(a=n.classes.join(" "));const c=Kue(n.styles);let u,d=void 0!==n.text?n.text:n.id;const h={width:0,height:0};if(qle(bde().flowchart.htmlLabels)){const e={label:d.replace(/fa[blrs]?:fa-[\w-]+/g,e=>`<i class='${e.replace(":"," ")}'></i>`)};u=Cle(s,e).node();const t=u.getBBox();h.width=t.width,h.height=t.height,h.labelNode=u,u.parentNode.removeChild(u)}else{const e=r.createElementNS("http://www.w3.org/2000/svg","text");e.setAttribute("style",c.labelStyle.replace("color:","fill:"));const t=d.split(Jle.lineBreakRegex);for(const i of t){const t=r.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.setAttribute("dy","1em"),t.setAttribute("x","1"),t.textContent=i,e.appendChild(t)}u=e;const n=u.getBBox();h.width=n.width,h.height=n.height,h.labelNode=u}const f=[{id:n.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:n.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:n.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:n.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let p=0,g="",m={};switch(n.type){case"round":p=5,g="rect";break;case"square":case"group":default:g="rect";break;case"diamond":g="question",m={portConstraints:"FIXED_SIDE"};break;case"hexagon":g="hexagon";break;case"odd":case"odd_right":g="rect_left_inv_arrow";break;case"lean_right":g="lean_right";break;case"lean_left":g="lean_left";break;case"trapezoid":g="trapezoid";break;case"inv_trapezoid":g="inv_trapezoid";break;case"circle":g="circle";break;case"ellipse":g="ellipse";break;case"stadium":g="stadium";break;case"subroutine":g="subroutine";break;case"cylinder":g="cylinder";break;case"doublecircle":g="doublecircle"}const v={labelStyle:c.labelStyle,shape:g,labelText:d,rx:p,ry:p,class:a,style:c.style,id:n.id,link:n.link,linkTarget:n.linkTarget,tooltip:i.db.getTooltip(n.id)||"",domId:i.db.lookUpDomId(n.id),haveCallback:n.haveCallback,width:"group"===n.type?500:void 0,dir:n.dir,type:n.type,props:n.props,padding:bde().flowchart.padding};let A,b;"group"!==v.type&&(b=qpe(l,v,n.dir),A=b.node().getBBox());const y={id:n.id,ports:"diamond"===n.type?f:[],layoutOptions:m,labelText:d,labelData:h,domId:i.db.lookUpDomId(n.id),width:null==A?void 0:A.width,height:null==A?void 0:A.height,type:n.type,el:b,parent:o.parentById[n.id]};Qwe[v.id]=y}),a}(f,t,u,d,r,v,a);const A=h.insert("g").attr("class","edges edgePath"),b=r.db.getEdges();a=Gwe(b,r,a,h),Object.keys(Qwe).forEach(e=>{const t=Qwe[e];t.parent||a.children.push(t),void 0!==v.childrenById[e]&&(t.labels=[{text:t.labelText,layoutOptions:{"nodeLabels.placement":"[H_CENTER, V_TOP, INSIDE]"},width:t.labelData.width,height:t.labelData.height}],delete t.x,delete t.y,delete t.width,delete t.height)}),Ywe(a.children,v),Hle.info("after layout",JSON.stringify(a,null,2));const y=await jwe.layout(a);qwe(0,0,y.children,h,m,r,0),Hle.info("after layout",y),null==(i=y.edges)||i.map(e=>{Kwe(A,e,e.edgeData,r,v)}),Tde({},h,l.diagramPadding,l.useMaxWidth),o.remove()}},Jwe=e=>`.label {\n    font-family: ${e.fontFamily};\n    color: ${e.nodeTextColor||e.textColor};\n  }\n  .cluster-label text {\n    fill: ${e.titleColor};\n  }\n  .cluster-label span {\n    color: ${e.titleColor};\n  }\n\n  .label text,span {\n    fill: ${e.nodeTextColor||e.textColor};\n    color: ${e.nodeTextColor||e.textColor};\n  }\n\n  .node rect,\n  .node circle,\n  .node ellipse,\n  .node polygon,\n  .node path {\n    fill: ${e.mainBkg};\n    stroke: ${e.nodeBorder};\n    stroke-width: 1px;\n  }\n\n  .node .label {\n    text-align: center;\n  }\n  .node.clickable {\n    cursor: pointer;\n  }\n\n  .arrowheadPath {\n    fill: ${e.arrowheadColor};\n  }\n\n  .edgePath .path {\n    stroke: ${e.lineColor};\n    stroke-width: 2.0px;\n  }\n\n  .flowchart-link {\n    stroke: ${e.lineColor};\n    fill: none;\n  }\n\n  .edgeLabel {\n    background-color: ${e.edgeLabelBackground};\n    rect {\n      opacity: 0.5;\n      background-color: ${e.edgeLabelBackground};\n      fill: ${e.edgeLabelBackground};\n    }\n    text-align: center;\n  }\n\n  .cluster rect {\n    fill: ${e.clusterBkg};\n    stroke: ${e.clusterBorder};\n    stroke-width: 1px;\n  }\n\n  .cluster text {\n    fill: ${e.titleColor};\n  }\n\n  .cluster span {\n    color: ${e.titleColor};\n  }\n  /* .cluster div {\n    color: ${e.titleColor};\n  } */\n\n  div.mermaidTooltip {\n    position: absolute;\n    text-align: center;\n    max-width: 200px;\n    padding: 2px;\n    font-family: ${e.fontFamily};\n    font-size: 12px;\n    background: ${e.tertiaryColor};\n    border: 1px solid ${e.border2};\n    border-radius: 2px;\n    pointer-events: none;\n    z-index: 100;\n  }\n\n  .flowchartTitleText {\n    text-anchor: middle;\n    font-size: 18px;\n    fill: ${e.textColor};\n  }\n  .subgraph {\n    stroke-width:2;\n    rx:3;\n  }\n  // .subgraph-lvl-1 {\n  //   fill:#ccc;\n  //   // stroke:black;\n  // }\n  ${(e=>{let t="";for(let n=0;n<5;n++)t+=`\n      .subgraph-lvl-${n} {\n        fill: ${e[`surface${n}`]};\n        stroke: ${e[`surfacePeer${n}`]};\n      }\n    `;return t})(e)}\n`,Zwe={db:Mme,renderer:Xwe,parser:Ige,styles:Jwe};var e_e=Object.freeze({__proto__:null,diagram:Zwe}),t_e=function(){var e,t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[1,2],r=[1,5],i=[6,9,11,17,18,20,22,23,26,27,28],o=[1,15],a=[1,16],s=[1,17],l=[1,18],c=[1,19],u=[1,23],d=[1,24],h=[1,27],f=[4,6,9,11,17,18,20,22,23,26,27,28],p={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,period_statement:24,event_statement:25,period:26,event:27,open_directive:28,type_directive:29,arg_directive:30,close_directive:31,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",26:"period",27:"event",28:"open_directive",29:"type_directive",30:"arg_directive",31:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[24,1],[25,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 1:return o[s-1];case 3:case 7:case 8:this.$=[];break;case 4:o[s-1].push(o[s]),this.$=o[s-1];break;case 5:case 6:this.$=o[s];break;case 11:r.getCommonDb().setDiagramTitle(o[s].substr(6)),this.$=o[s].substr(6);break;case 12:this.$=o[s].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=o[s].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(o[s].substr(8)),this.$=o[s].substr(8);break;case 19:r.addTask(o[s],0,""),this.$=o[s];break;case 20:r.addEvent(o[s].substr(2)),this.$=o[s];break;case 21:r.parseDirective("%%{","open_directive");break;case 22:r.parseDirective(o[s],"type_directive");break;case 23:o[s]=o[s].trim().replace(/'/g,'"'),r.parseDirective(o[s],"arg_directive");break;case 24:r.parseDirective("}%%","close_directive","timeline")}},table:[{3:1,4:n,7:3,12:4,28:r},{1:[3]},t(i,[2,3],{5:6}),{3:7,4:n,7:3,12:4,28:r},{13:8,29:[1,9]},{29:[2,21]},{6:[1,10],7:22,8:11,9:[1,12],10:13,11:[1,14],12:4,17:o,18:a,20:s,22:l,23:c,24:20,25:21,26:u,27:d,28:r},{1:[2,2]},{14:25,15:[1,26],31:h},t([15,31],[2,22]),t(i,[2,8],{1:[2,1]}),t(i,[2,4]),{7:22,10:28,12:4,17:o,18:a,20:s,22:l,23:c,24:20,25:21,26:u,27:d,28:r},t(i,[2,6]),t(i,[2,7]),t(i,[2,11]),{19:[1,29]},{21:[1,30]},t(i,[2,14]),t(i,[2,15]),t(i,[2,16]),t(i,[2,17]),t(i,[2,18]),t(i,[2,19]),t(i,[2,20]),{11:[1,31]},{16:32,30:[1,33]},{11:[2,24]},t(i,[2,5]),t(i,[2,12]),t(i,[2,13]),t(f,[2,9]),{14:34,31:h},{31:[2,23]},{11:[1,35]},t(f,[2,10])],defaultActions:{5:[2,21],7:[2,2],27:[2,24],33:[2,23]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),d=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);d.setInput(e,h.yy),h.yy.lexer=d,h.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var p=d.yylloc;o.push(p);var g=d.options&&d.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||d.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,A,b,y,w,_,x,E,S={};;){if(A=n[n.length-1],this.defaultActions[A]?b=this.defaultActions[A]:(null==v&&(v=m()),b=a[A]&&a[A][v]),void 0===b||!b.length||!b[0]){var C="";for(w in E=[],a[A])this.terminals_[w]&&w>2&&E.push("'"+this.terminals_[w]+"'");C=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:p,expected:E})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(b[0]){case 1:n.push(v),i.push(d.yytext),o.push(d.yylloc),n.push(b[1]),v=null,c=d.yyleng,s=d.yytext,l=d.yylineno,p=d.yylloc;break;case 2:if(_=this.productions_[b[1]][1],S.$=i[i.length-_],S._$={first_line:o[o.length-(_||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(_||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(_||1)].range[0],o[o.length-1].range[1]]),void 0!==(y=this.performAction.apply(S,[s,c,l,h.yy,b[1],i,o].concat(u))))return y;_&&(n=n.slice(0,-1*_*2),i=i.slice(0,-1*_),o=o.slice(0,-1*_)),n.push(this.productions_[b[1]][0]),i.push(S.$),o.push(S._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},g=(e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),28;case 1:return this.begin("type_directive"),29;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),31;case 4:return 30;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 27;case 21:return 26;case 22:return 6;case 23:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23],inclusive:!0}}},e);function m(){this.yy={}}return p.lexer=g,m.prototype=p,p.Parser=m,new m}();t_e.parser=t_e;const n_e=t_e;let r_e="",i_e=0;const o_e=[],a_e=[],s_e=[],l_e=()=>ehe,c_e=(e,t,n)=>{nhe(globalThis,e,t,n)},u_e=function(){o_e.length=0,a_e.length=0,r_e="",s_e.length=0,Gde()},d_e=function(e){r_e=e,o_e.push(e)},h_e=function(){return o_e},f_e=function(){let e=v_e(),t=0;for(;!e&&t<100;)e=v_e(),t++;return a_e.push(...s_e),a_e},p_e=function(e,t,n){const r={id:i_e++,section:r_e,type:r_e,task:e,score:t||0,events:n?[n]:[]};s_e.push(r)},g_e=function(e){const t=s_e.find(e=>e.id===i_e-1);t.events.push(e)},m_e=function(e){const t={section:r_e,type:r_e,description:e,task:e,classes:[]};a_e.push(t)},v_e=function(){let e=!0;for(const[t,n]of s_e.entries())s_e[t].processed,e=e&&n.processed;return e},A_e={clear:u_e,getCommonDb:l_e,addSection:d_e,getSections:h_e,getTasks:f_e,addTask:p_e,addTaskOrg:m_e,addEvent:g_e,parseDirective:c_e},b_e=Object.freeze(Object.defineProperty({__proto__:null,addEvent:g_e,addSection:d_e,addTask:p_e,addTaskOrg:m_e,clear:u_e,default:A_e,getCommonDb:l_e,getSections:h_e,getTasks:f_e,parseDirective:c_e},Symbol.toStringTag,{value:"Module"}));function y_e(e,t){e.each(function(){var e,n=b3(this),r=n.text().split(/(\s+|<br>)/).reverse(),i=[],o=n.attr("y"),a=parseFloat(n.attr("dy")),s=n.text(null).append("tspan").attr("x",0).attr("y",o).attr("dy",a+"em");for(let l=0;l<r.length;l++)e=r[r.length-1-l],i.push(e),s.text(i.join(" ").trim()),(s.node().getComputedTextLength()>t||"<br>"===e)&&(i.pop(),s.text(i.join(" ").trim()),i="<br>"===e?[""]:[e],s=n.append("tspan").attr("x",0).attr("y",o).attr("dy","1.1em").text(e))})}const w_e=function(e,t,n){e.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${10-t.height} q0,-5 5,-5 h${t.width-10} q5,0 5,5 v${t.height-5} H0 Z`),e.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},__e=function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},x_e=function(e,t,n,r){const i=n%12-1,o=e.append("g");t.section=i,o.attr("class",(t.class?t.class+" ":"")+"timeline-node section-"+i);const a=o.append("g"),s=o.append("g"),l=s.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(y_e,t.width).node().getBBox(),c=r.fontSize&&r.fontSize.replace?r.fontSize.replace("px",""):r.fontSize;return t.height=l.height+1.1*c*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,s.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),w_e(a,t,i),t},E_e=function(e,t,n){const r=e.append("g"),i=r.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(y_e,t.width).node().getBBox(),o=n.fontSize&&n.fontSize.replace?n.fontSize.replace("px",""):n.fontSize;return r.remove(),i.height+1.1*o*.5+t.padding},S_e=function(e,t,n,r,i,o,a,s,l,c,u){for(const d of t){const t={descr:d.task,section:n,number:n,width:150,padding:20,maxHeight:o};Hle.debug("taskNode",t);const s=e.append("g").attr("class","taskWrapper"),h=x_e(s,t,n,a).height;if(Hle.debug("taskHeight after draw",h),s.attr("transform",`translate(${r}, ${i})`),o=Math.max(o,h),d.events){const t=e.append("g").attr("class","lineWrapper");let s=o;i+=100,s+=C_e(e,d.events,n,r,i,a),i-=100,t.append("line").attr("x1",r+95).attr("y1",i+o).attr("x2",r+95).attr("y2",i+o+(u?o:c)+l+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}r+=200,u&&!bde().timeline.disableMulticolor&&n++}i-=10},C_e=function(e,t,n,r,i,o){let a=0;const s=i;i+=100;for(const l of t){const t={descr:l,section:n,number:n,width:150,padding:20,maxHeight:50};Hle.debug("eventNode",t);const s=e.append("g").attr("class","eventWrapper"),c=x_e(s,t,n,o).height;a+=c,s.attr("transform",`translate(${r}, ${i})`),i=i+10+c}return i=s,a},T_e={setConf:function(e){Object.keys(e).forEach(function(t){conf[t]=e[t]})},draw:function(e,t,n,r){const i=bde(),o=i.leftMargin?i.leftMargin:50;r.db.clear(),r.parser.parse(e+"\n"),Hle.debug("timeline",r.db);const a=i.securityLevel;let s;"sandbox"===a&&(s=b3("#i"+t));const l=b3("sandbox"===a?s.nodes()[0].contentDocument.body:"body").select("#"+t);l.append("g");const c=r.db.getTasks(),u=r.db.getCommonDb().getDiagramTitle();Hle.debug("task",c),__e(l);const d=r.db.getSections();Hle.debug("sections",d);let h=0,f=0,p=0,g=0,m=50+o,v=50;g=50;let A=0,b=!0;d.forEach(function(e){const t=E_e(l,{number:A,descr:e,section:A,width:150,padding:20,maxHeight:h},i);Hle.debug("sectionHeight before draw",t),h=Math.max(h,t+20)});let y=0,w=0;Hle.debug("tasks.length",c.length);for(const[x,E]of c.entries()){const e={number:x,descr:E,section:E.section,width:150,padding:20,maxHeight:f},t=E_e(l,e,i);Hle.debug("taskHeight before draw",t),f=Math.max(f,t+20),y=Math.max(y,E.events.length);let n=0;for(let r=0;r<E.events.length;r++){const e={descr:E.events[r],section:E.section,number:E.section,width:150,padding:20,maxHeight:50};n+=E_e(l,e,i)}w=Math.max(w,n)}Hle.debug("maxSectionHeight before draw",h),Hle.debug("maxTaskHeight before draw",f),d&&d.length>0?d.forEach(e=>{const t={number:A,descr:e,section:A,width:150,padding:20,maxHeight:h};Hle.debug("sectionNode",t);const n=l.append("g"),r=x_e(n,t,A,i);Hle.debug("sectionNode output",r),n.attr("transform",`translate(${m}, 50)`),v+=h+50;const o=c.filter(t=>t.section===e);o.length>0&&S_e(l,o,A,m,v,f,i,y,w,h,!1),m+=200*Math.max(o.length,1),v=50,A++}):(b=!1,S_e(l,c,A,m,v,f,i,y,w,h,!0));const _=l.node().getBBox();Hle.debug("bounds",_),u&&l.append("text").text(u).attr("x",_.width/2-o).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),p=b?h+f+150:f+100,l.append("g").attr("class","lineWrapper").append("line").attr("x1",o).attr("y1",p).attr("x2",_.width+3*o).attr("y2",p).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),Tde(void 0,l,i.timeline.padding?i.timeline.padding:50,!!i.timeline.useMaxWidth&&i.timeline.useMaxWidth)}},k_e=e=>`\n  .edge {\n    stroke-width: 3;\n  }\n  ${(e=>{let t="";for(let n=0;n<e.THEME_COLOR_LIMIT;n++)e["lineColor"+n]=e["lineColor"+n]||e["cScaleInv"+n],cte(e["lineColor"+n])?e["lineColor"+n]=dte(e["lineColor"+n],20):e["lineColor"+n]=hte(e["lineColor"+n],20);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){const r=""+(17-3*n);t+=`\n    .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} path  {\n      fill: ${e["cScale"+n]};\n    }\n    .section-${n-1} text {\n     fill: ${e["cScaleLabel"+n]};\n    }\n    .node-icon-${n-1} {\n      font-size: 40px;\n      color: ${e["cScaleLabel"+n]};\n    }\n    .section-edge-${n-1}{\n      stroke: ${e["cScale"+n]};\n    }\n    .edge-depth-${n-1}{\n      stroke-width: ${r};\n    }\n    .section-${n-1} line {\n      stroke: ${e["cScaleInv"+n]} ;\n      stroke-width: 3;\n    }\n\n    .lineWrapper line{\n      stroke: ${e["cScaleLabel"+n]} ;\n    }\n\n    .disabled, .disabled circle, .disabled text {\n      fill: lightgray;\n    }\n    .disabled text {\n      fill: #efefef;\n    }\n    `}return t})(e)}\n  .section-root rect, .section-root path, .section-root circle  {\n    fill: ${e.git0};\n  }\n  .section-root text {\n    fill: ${e.gitBranchLabel0};\n  }\n  .icon-container {\n    height:100%;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n  }\n  .edge {\n    fill: none;\n  }\n  .eventWrapper  {\n   filter: brightness(120%);\n  }\n`,O_e={db:b_e,renderer:T_e,parser:n_e,styles:k_e};var M_e,I_e,D_e,N_e,R_e=Object.freeze({__proto__:null,diagram:O_e}),L_e={exports:{}},B_e=(M_e||(M_e=1,L_e.exports=function(){function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t(e){if(Array.isArray(e))return e}function n(t){if(Array.isArray(t))return e(t)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function a(e,t,n){return t&&o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=A(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function u(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function d(){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 h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e,n){return t(e)||u(e,n)||A(e,n)||d()}function p(e){return n(e)||c(e)||A(e)||h()}function g(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function m(e){var t=g(e,"string");return"symbol"==typeof t?t:t+""}function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function A(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}var b="undefined"==typeof window?null:window,y=b?b.navigator:null;b&&b.document;var w,_,x,E,S,C,T,k,O,M,I,D,N,R,L,B,P,F,$,j,H,U,Q,z,W,G,V,K,Y=v(""),q=v({}),X=v(function(){}),J="undefined"==typeof HTMLElement?"undefined":v(HTMLElement),Z=function(e){return e&&e.instanceString&&te(e.instanceString)?e.instanceString():null},ee=function(e){return null!=e&&v(e)==Y},te=function(e){return null!=e&&v(e)===X},ne=function(e){return!le(e)&&(Array.isArray?Array.isArray(e):null!=e&&e instanceof Array)},re=function(e){return null!=e&&v(e)===q&&!ne(e)&&e.constructor===Object},ie=function(e){return null!=e&&v(e)===q},oe=function(e){return null!=e&&v(e)===v(1)&&!isNaN(e)},ae=function(e){return oe(e)&&Math.floor(e)===e},se=function(e){return"undefined"===J?void 0:null!=e&&e instanceof HTMLElement},le=function(e){return ce(e)||ue(e)},ce=function(e){return"collection"===Z(e)&&e._private.single},ue=function(e){return"collection"===Z(e)&&!e._private.single},de=function(e){return"core"===Z(e)},he=function(e){return"stylesheet"===Z(e)},fe=function(e){return"event"===Z(e)},pe=function(e){return null==e||!(""!==e&&!e.match(/^\s+$/))},ge=function(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement},me=function(e){return re(e)&&oe(e.x1)&&oe(e.x2)&&oe(e.y1)&&oe(e.y2)},ve=function(e){return ie(e)&&te(e.then)},Ae=function(){return y&&y.userAgent.match(/msie|trident|edge/i)},be=function(e,t){t||(t=function(){if(1===arguments.length)return arguments[0];if(0===arguments.length)return"undefined";for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);return e.join("$")});var n=function(){var r,i=this,o=arguments,a=t.apply(i,o),s=n.cache;return(r=s[a])||(r=s[a]=e.apply(i,o)),r};return n.cache={},n},ye=be(function(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}),we=be(function(e){return e.replace(/(-\w)/g,function(e){return e[1].toUpperCase()})}),_e=be(function(e,t){return e+t[0].toUpperCase()+t.substring(1)},function(e,t){return e+"$"+t}),xe=function(e){return pe(e)?e:e.charAt(0).toUpperCase()+e.substring(1)},Ee=function(e,t){return e.slice(-1*t.length)===t},Se="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",Ce="rgb[a]?\\(("+Se+"[%]?)\\s*,\\s*("+Se+"[%]?)\\s*,\\s*("+Se+"[%]?)(?:\\s*,\\s*("+Se+"))?\\)",Te="rgb[a]?\\((?:"+Se+"[%]?)\\s*,\\s*(?:"+Se+"[%]?)\\s*,\\s*(?:"+Se+"[%]?)(?:\\s*,\\s*(?:"+Se+"))?\\)",ke="hsl[a]?\\(("+Se+")\\s*,\\s*("+Se+"[%])\\s*,\\s*("+Se+"[%])(?:\\s*,\\s*("+Se+"))?\\)",Oe="hsl[a]?\\((?:"+Se+")\\s*,\\s*(?:"+Se+"[%])\\s*,\\s*(?:"+Se+"[%])(?:\\s*,\\s*(?:"+Se+"))?\\)",Me="\\#[0-9a-fA-F]{3}",Ie="\\#[0-9a-fA-F]{6}",De=function(e,t){return e<t?-1:e>t?1:0},Ne=function(e,t){return-1*De(e,t)},Re=null!=Object.assign?Object.assign.bind(Object):function(e){for(var t=arguments,n=1;n<t.length;n++){var r=t[n];if(null!=r)for(var i=Object.keys(r),o=0;o<i.length;o++){var a=i[o];e[a]=r[a]}}return e},Le=function(e){if((4===e.length||7===e.length)&&"#"===e[0]){var t,n,r,i=16;return 4===e.length?(t=parseInt(e[1]+e[1],i),n=parseInt(e[2]+e[2],i),r=parseInt(e[3]+e[3],i)):(t=parseInt(e[1]+e[2],i),n=parseInt(e[3]+e[4],i),r=parseInt(e[5]+e[6],i)),[t,n,r]}},Be=function(e){var t,n,r,i,o,a,s,l;function c(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var u=new RegExp("^"+ke+"$").exec(e);if(u){if((n=parseInt(u[1]))<0?n=(360- -1*n%360)%360:n>360&&(n%=360),n/=360,(r=parseFloat(u[2]))<0||r>100)return;if(r/=100,(i=parseFloat(u[3]))<0||i>100)return;if(i/=100,void 0!==(o=u[4])&&((o=parseFloat(o))<0||o>1))return;if(0===r)a=s=l=Math.round(255*i);else{var d=i<.5?i*(1+r):i+r-i*r,h=2*i-d;a=Math.round(255*c(h,d,n+1/3)),s=Math.round(255*c(h,d,n)),l=Math.round(255*c(h,d,n-1/3))}t=[a,s,l,o]}return t},Pe=function(e){var t,n=new RegExp("^"+Ce+"$").exec(e);if(n){t=[];for(var r=[],i=1;i<=3;i++){var o=n[i];if("%"===o[o.length-1]&&(r[i]=!0),o=parseFloat(o),r[i]&&(o=o/100*255),o<0||o>255)return;t.push(Math.floor(o))}var a=r[1]||r[2]||r[3],s=r[1]&&r[2]&&r[3];if(a&&!s)return;var l=n[4];if(void 0!==l){if((l=parseFloat(l))<0||l>1)return;t.push(l)}}return t},Fe=function(e){return je[e.toLowerCase()]},$e=function(e){return(ne(e)?e:null)||Fe(e)||Le(e)||Pe(e)||Be(e)},je={transparent:[0,0,0,0],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],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],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],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]},He=function(e){for(var t=e.map,n=e.keys,r=n.length,i=0;i<r;i++){var o=n[i];if(re(o))throw Error("Tried to set map with object key");i<n.length-1?(null==t[o]&&(t[o]={}),t=t[o]):t[o]=e.value}},Ue=function(e){for(var t=e.map,n=e.keys,r=n.length,i=0;i<r;i++){var o=n[i];if(re(o))throw Error("Tried to get map with object key");if(null==(t=t[o]))return t}return t},Qe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:{};function ze(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function We(){if(_)return w;function e(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}return _=1,w=e}function Ge(){if(E)return x;E=1;var e="object"==typeof Qe&&Qe&&Qe.Object===Object&&Qe;return x=e}function Ve(){if(C)return S;C=1;var e=Ge(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return S=n}function Ke(){if(k)return T;k=1;var e=Ve();return T=function(){return e.Date.now()}}function Ye(){if(M)return O;M=1;var e=/\s/;function t(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}return O=t}function qe(){if(D)return I;D=1;var e=Ye(),t=/^\s+/;function n(n){return n?n.slice(0,e(n)+1).replace(t,""):n}return I=n}function Xe(){if(R)return N;R=1;var e=Ve().Symbol;return N=e}function Je(){if(B)return L;B=1;var e=Xe(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(e){var t=n.call(e,i),o=e[i];try{e[i]=void 0;var a=!0}catch(e){}var s=r.call(e);return a&&(t?e[i]=o:delete e[i]),s}return L=o}function Ze(){if(F)return P;F=1;var e=Object.prototype.toString;function t(t){return e.call(t)}return P=t}function et(){if(j)return $;j=1;var e=Xe(),t=Je(),n=Ze(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(e){return null==e?void 0===e?i:r:o&&o in Object(e)?t(e):n(e)}return $=a}function tt(){if(U)return H;function e(e){return null!=e&&"object"==typeof e}return U=1,H=e}function nt(){if(z)return Q;z=1;var e=et(),t=tt(),n="[object Symbol]";function r(r){return"symbol"==typeof r||t(r)&&e(r)==n}return Q=r}function rt(){if(G)return W;G=1;var e=qe(),t=We(),n=nt(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;function l(l){if("number"==typeof l)return l;if(n(l))return r;if(t(l)){var c="function"==typeof l.valueOf?l.valueOf():l;l=t(c)?c+"":c}if("string"!=typeof l)return 0===l?l:+l;l=e(l);var u=o.test(l);return u||a.test(l)?s(l.slice(2),u?2:8):i.test(l)?r:+l}return W=l}function it(){if(K)return V;K=1;var e=We(),t=Ke(),n=rt(),r="Expected a function",i=Math.max,o=Math.min;function a(a,s,l){var c,u,d,h,f,p,g=0,m=!1,v=!1,A=!0;if("function"!=typeof a)throw new TypeError(r);function b(e){var t=c,n=u;return c=u=void 0,g=e,h=a.apply(n,t)}function y(e){return g=e,f=setTimeout(x,s),m?b(e):h}function w(e){var t=s-(e-p);return v?o(t,d-(e-g)):t}function _(e){var t=e-p;return void 0===p||t>=s||t<0||v&&e-g>=d}function x(){var e=t();if(_(e))return E(e);f=setTimeout(x,w(e))}function E(e){return f=void 0,A&&c?b(e):(c=u=void 0,h)}function S(){void 0!==f&&clearTimeout(f),g=0,c=p=u=f=void 0}function C(){return void 0===f?h:E(t())}function T(){var e=t(),n=_(e);if(c=arguments,u=this,p=e,n){if(void 0===f)return y(p);if(v)return clearTimeout(f),f=setTimeout(x,s),b(p)}return void 0===f&&(f=setTimeout(x,s)),h}return s=n(s)||0,e(l)&&(m=!!l.leading,d=(v="maxWait"in l)?i(n(l.maxWait)||0,s):d,A="trailing"in l?!!l.trailing:A),T.cancel=S,T.flush=C,T}return V=a}var ot=it(),at=ze(ot),st=b?b.performance:null,lt=st&&st.now?function(){return st.now()}:function(){return Date.now()},ct=function(){if(b){if(b.requestAnimationFrame)return function(e){b.requestAnimationFrame(e)};if(b.mozRequestAnimationFrame)return function(e){b.mozRequestAnimationFrame(e)};if(b.webkitRequestAnimationFrame)return function(e){b.webkitRequestAnimationFrame(e)};if(b.msRequestAnimationFrame)return function(e){b.msRequestAnimationFrame(e)}}return function(e){e&&setTimeout(function(){e(lt())},1e3/60)}}(),ut=function(e){return ct(e)},dt=lt,ht=9261,ft=65599,pt=5381,gt=function(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ht;!(t=e.next()).done;)n=n*ft+t.value|0;return n},mt=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:ht)*ft+e|0},vt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pt;return(t<<5)+t+e|0},At=function(e,t){return 2097152*e+t},bt=function(e){return 2097152*e[0]+e[1]},yt=function(e,t){return[mt(e[0],t[0]),vt(e[1],t[1])]},wt=function(e,t){var n={value:0,done:!1},r=0,i=e.length;return gt({next:function(){return r<i?n.value=e[r++]:n.done=!0,n}},t)},_t=function(e,t){var n={value:0,done:!1},r=0,i=e.length;return gt({next:function(){return r<i?n.value=e.charCodeAt(r++):n.done=!0,n}},t)},xt=function(){return Et(arguments)},Et=function(e){for(var t,n=0;n<e.length;n++){var r=e[n];t=0===n?_t(r):_t(r,t)}return t},St=!0,Ct=null!=console.warn,Tt=null!=console.trace,kt=Number.MAX_SAFE_INTEGER||9007199254740991,Ot=function(){return!0},Mt=function(){return!1},It=function(){return 0},Dt=function(){},Nt=function(e){throw new Error(e)},Rt=function(e){if(void 0===e)return St;St=!!e},Lt=function(e){Rt()&&(Ct?console.warn(e):Tt&&console.trace())},Bt=function(e){return Re({},e)},Pt=function(e){return null==e?e:ne(e)?e.slice():re(e)?Bt(e):e},Ft=function(e){return e.slice()},$t=function(e,t){for(t=e="";e++<36;t+=51*e&52?(15^e?8^Math.random()*(20^e?16:4):4).toString(16):"-");return t},jt={},Ht=function(){return jt},Ut=function(e){var t=Object.keys(e);return function(n){for(var r={},i=0;i<t.length;i++){var o=t[i],a=null==n?void 0:n[o];r[o]=void 0===a?e[o]:a}return r}},Qt=function(e,t,n){for(var r=e.length-1;r>=0;r--)e[r]===t&&e.splice(r,1)},zt=function(e){e.splice(0,e.length)},Wt=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];e.push(r)}},Gt=function(e,t,n){return n&&(t=_e(n,t)),e[t]},Vt=function(e,t,n,r){n&&(t=_e(n,t)),e[t]=r},Kt=function(){function e(){i(this,e),this._obj={}}return a(e,[{key:"set",value:function(e,t){return this._obj[e]=t,this}},{key:"delete",value:function(e){return this._obj[e]=void 0,this}},{key:"clear",value:function(){this._obj={}}},{key:"has",value:function(e){return void 0!==this._obj[e]}},{key:"get",value:function(e){return this._obj[e]}}])}(),Yt="undefined"!=typeof Map?Map:Kt,qt="undefined",Xt=function(){function e(t){if(i(this,e),this._obj=Object.create(null),this.size=0,null!=t){var n;n=null!=t.instanceString&&t.instanceString()===this.instanceString()?t.toArray():t;for(var r=0;r<n.length;r++)this.add(n[r])}}return a(e,[{key:"instanceString",value:function(){return"set"}},{key:"add",value:function(e){var t=this._obj;1!==t[e]&&(t[e]=1,this.size++)}},{key:"delete",value:function(e){var t=this._obj;1===t[e]&&(t[e]=0,this.size--)}},{key:"clear",value:function(){this._obj=Object.create(null)}},{key:"has",value:function(e){return 1===this._obj[e]}},{key:"toArray",value:function(){var e=this;return Object.keys(this._obj).filter(function(t){return e.has(t)})}},{key:"forEach",value:function(e,t){return this.toArray().forEach(e,t)}}])}(),Jt=("undefined"==typeof Set?"undefined":v(Set))!==qt?Set:Xt,Zt=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0!==e&&void 0!==t&&de(e)){var r=t.group;if(null==r&&(r=t.data&&null!=t.data.source&&null!=t.data.target?"edges":"nodes"),"nodes"===r||"edges"===r){this.length=1,this[0]=this;var i=this._private={cy:e,single:!0,data:t.data||{},position:t.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:r,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:!!t.selected,selectable:void 0===t.selectable||!!t.selectable,locked:!!t.locked,grabbed:!1,grabbable:void 0===t.grabbable||!!t.grabbable,pannable:void 0===t.pannable?"edges"===r:!!t.pannable,active:!1,classes:new Jt,animation:{current:[],queue:[]},rscratch:{},scratch:t.scratch||{},edges:[],children:[],parent:t.parent&&t.parent.isNode()?t.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(null==i.position.x&&(i.position.x=0),null==i.position.y&&(i.position.y=0),t.renderedPosition){var o=t.renderedPosition,a=e.pan(),s=e.zoom();i.position={x:(o.x-a.x)/s,y:(o.y-a.y)/s}}var l=[];ne(t.classes)?l=t.classes:ee(t.classes)&&(l=t.classes.split(/\s+/));for(var c=0,u=l.length;c<u;c++){var d=l[c];d&&""!==d&&i.classes.add(d)}this.createEmitter(),(void 0===n||n)&&this.restore();var h=t.style||t.css;h&&(Lt("Setting a `style` bypass at element creation should be done only when absolutely necessary.  Try to use the stylesheet instead."),this.style(h))}else Nt("An element must be of type `nodes` or `edges`; you specified `"+r+"`")}else Nt("An element must have a core reference and parameters set")},en=function(e){return e={bfs:e.bfs||!e.dfs,dfs:e.dfs||!e.bfs},function(t,n,r){var i;re(t)&&!le(t)&&(t=(i=t).roots||i.root,n=i.visit,r=i.directed),r=2!==arguments.length||te(n)?r:n,n=te(n)?n:function(){};for(var o,a=this._private.cy,s=t=ee(t)?this.filter(t):t,l=[],c=[],u={},d={},h={},f=0,p=this.byGroup(),g=p.nodes,m=p.edges,v=0;v<s.length;v++){var A=s[v],b=A.id();A.isNode()&&(l.unshift(A),e.bfs&&(h[b]=!0,c.push(A)),d[b]=0)}for(var y,w=function(){var t=e.bfs?l.shift():l.pop(),i=t.id();if(e.dfs){if(h[i])return 0;h[i]=!0,c.push(t)}var a,s=d[i],p=u[i],v=null!=p?p.source():null,A=null!=p?p.target():null,b=null==p?void 0:t.same(v)?A[0]:v[0];if(!0===(a=n(t,p,b,f++,s)))return o=t,1;if(!1===a)return 1;for(var y=t.connectedEdges().filter(function(e){return(!r||e.source().same(t))&&m.has(e)}),w=0;w<y.length;w++){var _=y[w],x=_.connectedNodes().filter(function(e){return!e.same(t)&&g.has(e)}),E=x.id();0===x.length||h[E]||(x=x[0],l.push(x),e.bfs&&(h[E]=!0,c.push(x)),u[E]=_,d[E]=d[i]+1)}};0!==l.length&&(0===(y=w())||1!==y););for(var _=a.collection(),x=0;x<c.length;x++){var E=c[x],S=u[E.id()];null!=S&&_.push(S),_.push(E)}return{path:a.collection(_),found:a.collection(o)}}},tn={breadthFirstSearch:en({bfs:!0}),depthFirstSearch:en({dfs:!0})};tn.bfs=tn.breadthFirstSearch,tn.dfs=tn.depthFirstSearch;var nn,rn,on,an={exports:{}},sn=an.exports;function ln(){return nn||(nn=1,function(e){(function(){var t,n,r,i,o,a,s,l,c,u,d,h,f,p,g;r=Math.floor,u=Math.min,n=function(e,t){return e<t?-1:e>t?1:0},c=function(e,t,i,o,a){var s;if(null==i&&(i=0),null==a&&(a=n),i<0)throw new Error("lo must be non-negative");for(null==o&&(o=e.length);i<o;)a(t,e[s=r((i+o)/2)])<0?o=s:i=s+1;return[].splice.apply(e,[i,i-i].concat(t)),t},a=function(e,t,r){return null==r&&(r=n),e.push(t),p(e,0,e.length-1,r)},o=function(e,t){var r,i;return null==t&&(t=n),r=e.pop(),e.length?(i=e[0],e[0]=r,g(e,0,t)):i=r,i},l=function(e,t,r){var i;return null==r&&(r=n),i=e[0],e[0]=t,g(e,0,r),i},s=function(e,t,r){var i;return null==r&&(r=n),e.length&&r(e[0],t)<0&&(t=(i=[e[0],t])[0],e[0]=i[1],g(e,0,r)),t},i=function(e,t){var i,o,a,s,l,c;for(null==t&&(t=n),l=[],o=0,a=(s=function(){c=[];for(var t=0,n=r(e.length/2);0<=n?t<n:t>n;0<=n?t++:t--)c.push(t);return c}.apply(this).reverse()).length;o<a;o++)i=s[o],l.push(g(e,i,t));return l},f=function(e,t,r){var i;if(null==r&&(r=n),-1!==(i=e.indexOf(t)))return p(e,0,i,r),g(e,i,r)},d=function(e,t,r){var o,a,l,c,u;if(null==r&&(r=n),!(a=e.slice(0,t)).length)return a;for(i(a,r),l=0,c=(u=e.slice(t)).length;l<c;l++)o=u[l],s(a,o,r);return a.sort(r).reverse()},h=function(e,t,r){var a,s,l,d,h,f,p,g,m;if(null==r&&(r=n),10*t<=e.length){if(!(l=e.slice(0,t).sort(r)).length)return l;for(s=l[l.length-1],d=0,f=(p=e.slice(t)).length;d<f;d++)r(a=p[d],s)<0&&(c(l,a,0,null,r),l.pop(),s=l[l.length-1]);return l}for(i(e,r),m=[],h=0,g=u(t,e.length);0<=g?h<g:h>g;0<=g?++h:--h)m.push(o(e,r));return m},p=function(e,t,r,i){var o,a,s;for(null==i&&(i=n),o=e[r];r>t&&i(o,a=e[s=r-1>>1])<0;)e[r]=a,r=s;return e[r]=o},g=function(e,t,r){var i,o,a,s,l;for(null==r&&(r=n),o=e.length,l=t,a=e[t],i=2*t+1;i<o;)(s=i+1)<o&&!(r(e[i],e[s])<0)&&(i=s),e[t]=e[i],i=2*(t=i)+1;return e[t]=a,p(e,l,t,r)},t=function(){function e(e){this.cmp=null!=e?e:n,this.nodes=[]}return e.push=a,e.pop=o,e.replace=l,e.pushpop=s,e.heapify=i,e.updateItem=f,e.nlargest=d,e.nsmallest=h,e.prototype.push=function(e){return a(this.nodes,e,this.cmp)},e.prototype.pop=function(){return o(this.nodes,this.cmp)},e.prototype.peek=function(){return this.nodes[0]},e.prototype.contains=function(e){return-1!==this.nodes.indexOf(e)},e.prototype.replace=function(e){return l(this.nodes,e,this.cmp)},e.prototype.pushpop=function(e){return s(this.nodes,e,this.cmp)},e.prototype.heapify=function(){return i(this.nodes,this.cmp)},e.prototype.updateItem=function(e){return f(this.nodes,e,this.cmp)},e.prototype.clear=function(){return this.nodes=[]},e.prototype.empty=function(){return 0===this.nodes.length},e.prototype.size=function(){return this.nodes.length},e.prototype.clone=function(){var t;return(t=new e).nodes=this.nodes.slice(0),t},e.prototype.toArray=function(){return this.nodes.slice(0)},e.prototype.insert=e.prototype.push,e.prototype.top=e.prototype.peek,e.prototype.front=e.prototype.peek,e.prototype.has=e.prototype.contains,e.prototype.copy=e.prototype.clone,e}(),function(t,n){e.exports=n()}(0,function(){return t})}).call(sn)}(an)),an.exports}function cn(){return on?rn:(on=1,rn=ln())}var un,dn=ze(cn()),hn=Ut({root:null,weight:function(e){return 1},directed:!1}),fn={dijkstra:function(e){if(!re(e)){var t=arguments;e={root:t[0],weight:t[1],directed:t[2]}}var n=hn(e),r=n.root,i=n.weight,o=n.directed,a=this,s=i,l=ee(r)?this.filter(r)[0]:r[0],c={},u={},d={},h=this.byGroup(),f=h.nodes,p=h.edges;p.unmergeBy(function(e){return e.isLoop()});for(var g=function(e){return c[e.id()]},m=function(e,t){c[e.id()]=t,v.updateItem(e)},v=new dn(function(e,t){return g(e)-g(t)}),A=0;A<f.length;A++){var b=f[A];c[b.id()]=b.same(l)?0:1/0,v.push(b)}for(var y=function(e,t){for(var n,r=(o?e.edgesTo(t):e.edgesWith(t)).intersect(p),i=1/0,a=0;a<r.length;a++){var l=r[a],c=s(l);(c<i||!n)&&(i=c,n=l)}return{edge:n,dist:i}};v.size()>0;){var w=v.pop(),_=g(w),x=w.id();if(d[x]=_,_!==1/0)for(var E=w.neighborhood().intersect(f),S=0;S<E.length;S++){var C=E[S],T=C.id(),k=y(w,C),O=_+k.dist;O<g(C)&&(m(C,O),u[T]={node:w,edge:k.edge})}}return{distanceTo:function(e){var t=ee(e)?f.filter(e)[0]:e[0];return d[t.id()]},pathTo:function(e){var t=ee(e)?f.filter(e)[0]:e[0],n=[],r=t,i=r.id();if(t.length>0)for(n.unshift(t);u[i];){var o=u[i];n.unshift(o.edge),n.unshift(o.node),i=(r=o.node).id()}return a.spawn(n)}}}},pn={kruskal:function(e){e=e||function(e){return 1};for(var t=this.byGroup(),n=t.nodes,r=t.edges,i=n.length,o=new Array(i),a=n,s=function(e){for(var t=0;t<o.length;t++)if(o[t].has(e))return t},l=0;l<i;l++)o[l]=this.spawn(n[l]);for(var c=r.sort(function(t,n){return e(t)-e(n)}),u=0;u<c.length;u++){var d=c[u],h=d.source()[0],f=d.target()[0],p=s(h),g=s(f),m=o[p],v=o[g];p!==g&&(a.merge(d),m.merge(v),o.splice(g,1))}return a}},gn=Ut({root:null,goal:null,weight:function(e){return 1},heuristic:function(e){return 0},directed:!1}),mn={aStar:function(e){var t=this.cy(),n=gn(e),r=n.root,i=n.goal,o=n.heuristic,a=n.directed,s=n.weight;r=t.collection(r)[0],i=t.collection(i)[0];var l,c,u=r.id(),d=i.id(),h={},f={},p={},g=new dn(function(e,t){return f[e.id()]-f[t.id()]}),m=new Jt,v={},A={},b=function(e,t){g.push(e),m.add(t)},y=function(){l=g.pop(),c=l.id(),m.delete(c)},w=function(e){return m.has(e)};b(r,u),h[u]=0,f[u]=o(r);for(var _=0;g.size()>0;){if(y(),_++,c===d){for(var x=[],E=i,S=d,C=A[S];x.unshift(E),null!=C&&x.unshift(C),null!=(E=v[S]);)C=A[S=E.id()];return{found:!0,distance:h[c],path:this.spawn(x),steps:_}}p[c]=!0;for(var T=l._private.edges,k=0;k<T.length;k++){var O=T[k];if(this.hasElementWithId(O.id())&&(!a||O.data("source")===c)){var M=O.source(),I=O.target(),D=M.id()!==c?M:I,N=D.id();if(this.hasElementWithId(N)&&!p[N]){var R=h[c]+s(O);w(N)?R<h[N]&&(h[N]=R,f[N]=R+o(D),v[N]=l,A[N]=O):(h[N]=R,f[N]=R+o(D),b(D,N),v[N]=l,A[N]=O)}}}}return{found:!1,distance:void 0,path:void 0,steps:_}}},vn=Ut({weight:function(e){return 1},directed:!1}),An={floydWarshall:function(e){for(var t=this.cy(),n=vn(e),r=n.weight,i=n.directed,o=r,a=this.byGroup(),s=a.nodes,l=a.edges,c=s.length,u=c*c,d=function(e){return s.indexOf(e)},h=function(e){return s[e]},f=new Array(u),p=0;p<u;p++){var g=p%c,m=(p-g)/c;f[p]=m===g?0:1/0}for(var v=new Array(u),A=new Array(u),b=0;b<l.length;b++){var y=l[b],w=y.source()[0],_=y.target()[0];if(w!==_){var x=d(w),E=d(_),S=x*c+E,C=o(y);if(f[S]>C&&(f[S]=C,v[S]=E,A[S]=y),!i){var T=E*c+x;!i&&f[T]>C&&(f[T]=C,v[T]=x,A[T]=y)}}}for(var k=0;k<c;k++)for(var O=0;O<c;O++)for(var M=O*c+k,I=0;I<c;I++){var D=O*c+I,N=k*c+I;f[M]+f[N]<f[D]&&(f[D]=f[M]+f[N],v[D]=v[M])}var R=function(e){return(ee(e)?t.filter(e):e)[0]},L=function(e){return d(R(e))},B={distance:function(e,t){var n=L(e),r=L(t);return f[n*c+r]},path:function(e,n){var r=L(e),i=L(n),o=h(r);if(r===i)return o.collection();if(null==v[r*c+i])return t.collection();var a,s=t.collection(),l=r;for(s.merge(o);r!==i;)l=r,r=v[r*c+i],a=A[l*c+r],s.merge(a),s.merge(h(r));return s}};return B}},bn=Ut({weight:function(e){return 1},directed:!1,root:null}),yn={bellmanFord:function(e){var t=this,n=bn(e),r=n.weight,i=n.directed,o=n.root,a=r,s=this,l=this.cy(),c=this.byGroup(),u=c.edges,d=c.nodes,h=d.length,f=new Yt,p=!1,g=[];o=l.collection(o)[0],u.unmergeBy(function(e){return e.isLoop()});for(var m=u.length,v=function(e){var t=f.get(e.id());return t||(t={},f.set(e.id(),t)),t},A=function(e){return(ee(e)?l.$(e):e)[0]},b=function(e){return v(A(e)).dist},y=function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,r=[],i=A(e);;){if(null==i)return t.spawn();var a=v(i),l=a.edge,c=a.pred;if(r.unshift(i[0]),i.same(n)&&r.length>0)break;null!=l&&r.unshift(l),i=c}return s.spawn(r)},w=0;w<h;w++){var _=d[w],x=v(_);_.same(o)?x.dist=0:x.dist=1/0,x.pred=null,x.edge=null}for(var E=!1,S=function(e,t,n,r,i,o){var a=r.dist+o;a<i.dist&&!n.same(r.edge)&&(i.dist=a,i.pred=e,i.edge=n,E=!0)},C=1;C<h;C++){E=!1;for(var T=0;T<m;T++){var k=u[T],O=k.source(),M=k.target(),I=a(k),D=v(O),N=v(M);S(O,M,k,D,N,I),i||S(M,O,k,N,D,I)}if(!E)break}if(E)for(var R=[],L=0;L<m;L++){var B=u[L],P=B.source(),F=B.target(),$=a(B),j=v(P).dist,H=v(F).dist;if(j+$<H||!i&&H+$<j){if(p||(Lt("Graph contains a negative weight cycle for Bellman-Ford"),p=!0),!1===e.findNegativeWeightCycles)break;var U=[];j+$<H&&U.push(P),!i&&H+$<j&&U.push(F);for(var Q=U.length,z=0;z<Q;z++){var W=U[z],G=[W];G.push(v(W).edge);for(var V=v(W).pred;-1===G.indexOf(V);)G.push(V),G.push(v(V).edge),V=v(V).pred;for(var K=(G=G.slice(G.indexOf(V)))[0].id(),Y=0,q=2;q<G.length;q+=2)G[q].id()<K&&(K=G[q].id(),Y=q);(G=G.slice(Y).concat(G.slice(0,Y))).push(G[0]);var X=G.map(function(e){return e.id()}).join(",");-1===R.indexOf(X)&&(g.push(s.spawn(G)),R.push(X))}}}return{distanceTo:b,pathTo:y,hasNegativeWeightCycle:p,negativeWeightCycles:g}}},wn=Math.sqrt(2),_n=function(e,t,n){0===n.length&&Nt("Karger-Stein must be run on a connected (sub)graph");for(var r=n[e],i=r[1],o=r[2],a=t[i],s=t[o],l=n,c=l.length-1;c>=0;c--){var u=l[c],d=u[1],h=u[2];(t[d]===a&&t[h]===s||t[d]===s&&t[h]===a)&&l.splice(c,1)}for(var f=0;f<l.length;f++){var p=l[f];p[1]===s?(l[f]=p.slice(),l[f][1]=a):p[2]===s&&(l[f]=p.slice(),l[f][2]=a)}for(var g=0;g<t.length;g++)t[g]===s&&(t[g]=a);return l},xn=function(e,t,n,r){for(;n>r;){var i=Math.floor(Math.random()*t.length);t=_n(i,e,t),n--}return t},En={kargerStein:function(){var e=this,t=this.byGroup(),n=t.nodes,r=t.edges;r.unmergeBy(function(e){return e.isLoop()});var i=n.length,o=r.length,a=Math.ceil(Math.pow(Math.log(i)/Math.LN2,2)),s=Math.floor(i/wn);if(!(i<2)){for(var l=[],c=0;c<o;c++){var u=r[c];l.push([c,n.indexOf(u.source()),n.indexOf(u.target())])}for(var d=1/0,h=[],f=new Array(i),p=new Array(i),g=new Array(i),m=function(e,t){for(var n=0;n<i;n++)t[n]=e[n]},v=0;v<=a;v++){for(var A=0;A<i;A++)p[A]=A;var b=xn(p,l.slice(),i,s),y=b.slice();m(p,g);var w=xn(p,b,s,2),_=xn(g,y,s,2);w.length<=_.length&&w.length<d?(d=w.length,h=w,m(p,f)):_.length<=w.length&&_.length<d&&(d=_.length,h=_,m(g,f))}for(var x=this.spawn(h.map(function(e){return r[e[0]]})),E=this.spawn(),S=this.spawn(),C=f[0],T=0;T<f.length;T++){var k=f[T],O=n[T];k===C?E.merge(O):S.merge(O)}var M=function(t){var n=e.spawn();return t.forEach(function(t){n.merge(t),t.connectedEdges().forEach(function(t){e.contains(t)&&!x.contains(t)&&n.merge(t)})}),n},I=[M(E),M(S)];return{cut:x,components:I,partition1:E,partition2:S}}Nt("At least 2 nodes are required for Karger-Stein algorithm")}},Sn=function(e){return{x:e.x,y:e.y}},Cn=function(e,t,n){return{x:e.x*t+n.x,y:e.y*t+n.y}},Tn=function(e,t,n){return{x:(e.x-n.x)/t,y:(e.y-n.y)/t}},kn=function(e){return{x:e[0],y:e[1]}},On=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=1/0,i=t;i<n;i++){var o=e[i];isFinite(o)&&(r=Math.min(o,r))}return r},Mn=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=-1/0,i=t;i<n;i++){var o=e[i];isFinite(o)&&(r=Math.max(o,r))}return r},In=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=0,i=0,o=t;o<n;o++){var a=e[o];isFinite(a)&&(r+=a,i++)}return r/i},Dn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length,r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?(n<e.length&&e.splice(n,e.length-n),t>0&&e.splice(0,t)):e=e.slice(t,n);for(var o=0,a=e.length-1;a>=0;a--){var s=e[a];i?isFinite(s)||(e[a]=-1/0,o++):e.splice(a,1)}r&&e.sort(function(e,t){return e-t});var l=e.length,c=Math.floor(l/2);return l%2!=0?e[c+1+o]:(e[c-1+o]+e[c+o])/2},Nn=function(e){return Math.PI*e/180},Rn=function(e,t){return Math.atan2(t,e)-Math.PI/2},Ln=Math.log2||function(e){return Math.log(e)/Math.log(2)},Bn=function(e){return e>0?1:e<0?-1:0},Pn=function(e,t){return Math.sqrt(Fn(e,t))},Fn=function(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r},$n=function(e){for(var t=e.length,n=0,r=0;r<t;r++)n+=e[r];for(var i=0;i<t;i++)e[i]=e[i]/n;return e},jn=function(e,t,n,r){return(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n},Hn=function(e,t,n,r){return{x:jn(e.x,t.x,n.x,r),y:jn(e.y,t.y,n.y,r)}},Un=function(e,t,n,r){var i={x:t.x-e.x,y:t.y-e.y},o=Pn(e,t),a={x:i.x/o,y:i.y/o};return n=null==n?0:n,r=null!=r?r:n*o,{x:e.x+a.x*r,y:e.y+a.y*r}},Qn=function(e,t,n){return Math.max(e,Math.min(n,t))},zn=function(e){if(null==e)return{x1:1/0,y1:1/0,x2:-1/0,y2:-1/0,w:0,h:0};if(null!=e.x1&&null!=e.y1){if(null!=e.x2&&null!=e.y2&&e.x2>=e.x1&&e.y2>=e.y1)return{x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,w:e.x2-e.x1,h:e.y2-e.y1};if(null!=e.w&&null!=e.h&&e.w>=0&&e.h>=0)return{x1:e.x1,y1:e.y1,x2:e.x1+e.w,y2:e.y1+e.h,w:e.w,h:e.h}}},Wn=function(e){return{x1:e.x1,x2:e.x2,w:e.w,y1:e.y1,y2:e.y2,h:e.h}},Gn=function(e){e.x1=1/0,e.y1=1/0,e.x2=-1/0,e.y2=-1/0,e.w=0,e.h=0},Vn=function(e,t){e.x1=Math.min(e.x1,t.x1),e.x2=Math.max(e.x2,t.x2),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,t.y1),e.y2=Math.max(e.y2,t.y2),e.h=e.y2-e.y1},Kn=function(e,t,n){e.x1=Math.min(e.x1,t),e.x2=Math.max(e.x2,t),e.w=e.x2-e.x1,e.y1=Math.min(e.y1,n),e.y2=Math.max(e.y2,n),e.h=e.y2-e.y1},Yn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.x1-=t,e.x2+=t,e.y1-=t,e.y2+=t,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},qn=function(e){var t,n,r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0];if(1===o.length)t=n=r=i=o[0];else if(2===o.length)t=r=o[0],i=n=o[1];else if(4===o.length){var a=f(o,4);t=a[0],n=a[1],r=a[2],i=a[3]}return e.x1-=i,e.x2+=n,e.y1-=t,e.y2+=r,e.w=e.x2-e.x1,e.h=e.y2-e.y1,e},Xn=function(e,t){e.x1=t.x1,e.y1=t.y1,e.x2=t.x2,e.y2=t.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1},Jn=function(e,t){return!(e.x1>t.x2||t.x1>e.x2||e.x2<t.x1||t.x2<e.x1||e.y2<t.y1||t.y2<e.y1||e.y1>t.y2||t.y1>e.y2)},Zn=function(e,t,n){return e.x1<=t&&t<=e.x2&&e.y1<=n&&n<=e.y2},er=function(e,t){return Zn(e,t.x,t.y)},tr=function(e,t){return Zn(e,t.x1,t.y1)&&Zn(e,t.x2,t.y2)},nr=null!==(un=Math.hypot)&&void 0!==un?un:function(e,t){return Math.sqrt(e*e+t*t)};function rr(e,t){if(e.length<3)throw new Error("Need at least 3 vertices");var n=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},r=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},i=function(e,t){return{x:e.x*t,y:e.y*t}},o=function(e,t){return e.x*t.y-e.y*t.x},a=function(e){var t=nr(e.x,e.y);return 0===t?{x:0,y:0}:{x:e.x/t,y:e.y/t}},s=function(e){for(var t=0,n=0;n<e.length;n++){var r=e[n],i=e[(n+1)%e.length];t+=r.x*i.y-i.x*r.y}return t/2},l=function(e,t,a,s){var l=r(t,e),c=r(s,a),u=o(l,c);if(Math.abs(u)<1e-9)return n(e,i(l,.5));var d=o(r(a,e),c)/u;return n(e,i(l,d))},c=e.map(function(e){return{x:e.x,y:e.y}});s(c)<0&&c.reverse();for(var u=c.length,d=[],h=0;h<u;h++){var f=c[h],p=c[(h+1)%u],g=r(p,f),m=a({x:g.y,y:-g.x});d.push(m)}for(var v=d.map(function(e,r){return{p1:n(c[r],i(e,t)),p2:n(c[(r+1)%u],i(e,t))}}),A=[],b=0;b<u;b++){var y=v[(b-1+u)%u],w=v[b],_=l(y.p1,y.p2,w.p1,w.p2);A.push(_)}return A}function ir(e,t,n,r,i,o){var a=rr(_r(e,t,n,r,i),o),s=zn();return a.forEach(function(e){return Kn(s,e.x,e.y)}),s}var or=function(e,t,n,r,i,o,a){var s,l,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"auto",u="auto"===c?Or(i,o):c,d=i/2,h=o/2,f=(u=Math.min(u,d,h))!==d,p=u!==h;if(f){var g=r-h-a;if((s=wr(e,t,n,r,n-d+u-a,g,n+d-u+a,g,!1)).length>0)return s}if(p){var m=n+d+a;if((s=wr(e,t,n,r,m,r-h+u-a,m,r+h-u+a,!1)).length>0)return s}if(f){var v=r+h+a;if((s=wr(e,t,n,r,n-d+u-a,v,n+d-u+a,v,!1)).length>0)return s}if(p){var A=n-d-a;if((s=wr(e,t,n,r,A,r-h+u-a,A,r+h-u+a,!1)).length>0)return s}var b=n-d+u,y=r-h+u;if((l=br(e,t,n,r,b,y,u+a)).length>0&&l[0]<=b&&l[1]<=y)return[l[0],l[1]];var w=n+d-u,_=r-h+u;if((l=br(e,t,n,r,w,_,u+a)).length>0&&l[0]>=w&&l[1]<=_)return[l[0],l[1]];var x=n+d-u,E=r+h-u;if((l=br(e,t,n,r,x,E,u+a)).length>0&&l[0]>=x&&l[1]>=E)return[l[0],l[1]];var S=n-d+u,C=r+h-u;return(l=br(e,t,n,r,S,C,u+a)).length>0&&l[0]<=S&&l[1]>=C?[l[0],l[1]]:[]},ar=function(e,t,n,r,i,o,a){var s=a,l=Math.min(n,i),c=Math.max(n,i),u=Math.min(r,o),d=Math.max(r,o);return l-s<=e&&e<=c+s&&u-s<=t&&t<=d+s},sr=function(e,t,n,r,i,o,a,s,l){var c={x1:Math.min(n,a,i)-l,x2:Math.max(n,a,i)+l,y1:Math.min(r,s,o)-l,y2:Math.max(r,s,o)+l};return!(e<c.x1||e>c.x2||t<c.y1||t>c.y2)},lr=function(e,t,n,r){var i=t*t-4*e*(n-=r);if(i<0)return[];var o=Math.sqrt(i),a=2*e;return[(-t+o)/a,(-t-o)/a]},cr=function(e,t,n,r,i){var o,a,s,l,c,u,d,h;return 0===e&&(e=1e-5),s=-27*(r/=e)+(t/=e)*(9*(n/=e)-t*t*2),o=(a=(3*n-t*t)/9)*a*a+(s/=54)*s,i[1]=0,d=t/3,o>0?(c=(c=s+Math.sqrt(o))<0?-Math.pow(-c,1/3):Math.pow(c,1/3),u=(u=s-Math.sqrt(o))<0?-Math.pow(-u,1/3):Math.pow(u,1/3),i[0]=-d+c+u,d+=(c+u)/2,i[4]=i[2]=-d,d=Math.sqrt(3)*(-u+c)/2,i[3]=d,void(i[5]=-d)):(i[5]=i[3]=0,0===o?(h=s<0?-Math.pow(-s,1/3):Math.pow(s,1/3),i[0]=2*h-d,void(i[4]=i[2]=-(h+d))):(l=(a=-a)*a*a,l=Math.acos(s/Math.sqrt(l)),h=2*Math.sqrt(a),i[0]=-d+h*Math.cos(l/3),i[2]=-d+h*Math.cos((l+2*Math.PI)/3),void(i[4]=-d+h*Math.cos((l+4*Math.PI)/3))))},ur=function(e,t,n,r,i,o,a,s){var l=[];cr(1*n*n-4*n*i+2*n*a+4*i*i-4*i*a+a*a+r*r-4*r*o+2*r*s+4*o*o-4*o*s+s*s,9*n*i-3*n*n-3*n*a-6*i*i+3*i*a+9*r*o-3*r*r-3*r*s-6*o*o+3*o*s,3*n*n-6*n*i+n*a-n*e+2*i*i+2*i*e-a*e+3*r*r-6*r*o+r*s-r*t+2*o*o+2*o*t-s*t,1*n*i-n*n+n*e-i*e+r*o-r*r+r*t-o*t,l);for(var c=1e-7,u=[],d=0;d<6;d+=2)Math.abs(l[d+1])<c&&l[d]>=0&&l[d]<=1&&u.push(l[d]);u.push(1),u.push(0);for(var h,f,p,g=-1,m=0;m<u.length;m++)h=Math.pow(1-u[m],2)*n+2*(1-u[m])*u[m]*i+u[m]*u[m]*a,f=Math.pow(1-u[m],2)*r+2*(1-u[m])*u[m]*o+u[m]*u[m]*s,p=Math.pow(h-e,2)+Math.pow(f-t,2),g>=0?p<g&&(g=p):g=p;return g},dr=function(e,t,n,r,i,o){var a=[e-n,t-r],s=[i-n,o-r],l=s[0]*s[0]+s[1]*s[1],c=a[0]*a[0]+a[1]*a[1],u=a[0]*s[0]+a[1]*s[1],d=u*u/l;return u<0?c:d>l?(e-i)*(e-i)+(t-o)*(t-o):c-d},hr=function(e,t,n){for(var r,i,o,a,s=0,l=0;l<n.length/2;l++)if(r=n[2*l],i=n[2*l+1],l+1<n.length/2?(o=n[2*(l+1)],a=n[2*(l+1)+1]):(o=n[2*(l+1-n.length/2)],a=n[2*(l+1-n.length/2)+1]),r==e&&o==e);else{if(!(r>=e&&e>=o||r<=e&&e<=o))continue;(e-r)/(o-r)*(a-i)+i>t&&s++}return s%2!=0},fr=function(e,t,n,r,i,o,a,s,l){var c,u=new Array(n.length);null!=s[0]?(c=Math.atan(s[1]/s[0]),s[0]<0?c+=Math.PI/2:c=-c-Math.PI/2):c=s;for(var d,h=Math.cos(-c),f=Math.sin(-c),p=0;p<u.length/2;p++)u[2*p]=o/2*(n[2*p]*h-n[2*p+1]*f),u[2*p+1]=a/2*(n[2*p+1]*h+n[2*p]*f),u[2*p]+=r,u[2*p+1]+=i;if(l>0){var g=mr(u,-l);d=gr(g)}else d=u;return hr(e,t,d)},pr=function(e,t,n,r,i,o,a,s){for(var l=new Array(2*n.length),c=0;c<s.length;c++){var u=s[c];if(l[4*c+0]=u.startX,l[4*c+1]=u.startY,l[4*c+2]=u.stopX,l[4*c+3]=u.stopY,Math.pow(u.cx-e,2)+Math.pow(u.cy-t,2)<=Math.pow(u.radius,2))return!0}return hr(e,t,l)},gr=function(e){for(var t,n,r,i,o,a,s,l,c=new Array(e.length/2),u=0;u<e.length/4;u++){t=e[4*u],n=e[4*u+1],r=e[4*u+2],i=e[4*u+3],u<e.length/4-1?(o=e[4*(u+1)],a=e[4*(u+1)+1],s=e[4*(u+1)+2],l=e[4*(u+1)+3]):(o=e[0],a=e[1],s=e[2],l=e[3]);var d=wr(t,n,r,i,o,a,s,l,!0);c[2*u]=d[0],c[2*u+1]=d[1]}return c},mr=function(e,t){for(var n,r,i,o,a=new Array(2*e.length),s=0;s<e.length/2;s++){n=e[2*s],r=e[2*s+1],s<e.length/2-1?(i=e[2*(s+1)],o=e[2*(s+1)+1]):(i=e[0],o=e[1]);var l=o-r,c=-(i-n),u=Math.sqrt(l*l+c*c),d=l/u,h=c/u;a[4*s]=n+d*t,a[4*s+1]=r+h*t,a[4*s+2]=i+d*t,a[4*s+3]=o+h*t}return a},vr=function(e,t,n,r,i,o){var a=n-e,s=r-t;a/=i,s/=o;var l=Math.sqrt(a*a+s*s),c=l-1;if(c<0)return[];var u=c/l;return[(n-e)*u+e,(r-t)*u+t]},Ar=function(e,t,n,r,i,o,a){return e-=i,t-=o,(e/=n/2+a)*e+(t/=r/2+a)*t<=1},br=function(e,t,n,r,i,o,a){var s=[n-e,r-t],l=[e-i,t-o],c=s[0]*s[0]+s[1]*s[1],u=2*(l[0]*s[0]+l[1]*s[1]),d=u*u-4*c*(l[0]*l[0]+l[1]*l[1]-a*a);if(d<0)return[];var h=(-u+Math.sqrt(d))/(2*c),f=(-u-Math.sqrt(d))/(2*c),p=Math.min(h,f),g=Math.max(h,f),m=[];if(p>=0&&p<=1&&m.push(p),g>=0&&g<=1&&m.push(g),0===m.length)return[];var v=m[0]*s[0]+e,A=m[0]*s[1]+t;return m.length>1?m[0]==m[1]?[v,A]:[v,A,m[1]*s[0]+e,m[1]*s[1]+t]:[v,A]},yr=function(e,t,n){return t<=e&&e<=n||n<=e&&e<=t?e:e<=t&&t<=n||n<=t&&t<=e?t:n},wr=function(e,t,n,r,i,o,a,s,l){var c=e-i,u=n-e,d=a-i,h=t-o,f=r-t,p=s-o,g=d*h-p*c,m=u*h-f*c,v=p*u-d*f;if(0!==v){var A=g/v,b=m/v,y=.001,w=0-y,_=1+y;return w<=A&&A<=_&&w<=b&&b<=_||l?[e+A*u,t+A*f]:[]}return 0===g||0===m?yr(e,n,a)===a?[a,s]:yr(e,n,i)===i?[i,o]:yr(i,a,n)===n?[n,r]:[]:[]},_r=function(e,t,n,r,i){var o=[],a=r/2,s=i/2,l=t,c=n;o.push({x:l+a*e[0],y:c+s*e[1]});for(var u=1;u<e.length/2;u++)o.push({x:l+a*e[2*u],y:c+s*e[2*u+1]});return o},xr=function(e,t,n,r,i,o,a,s){var l,c,u,d,h,f,p=[],g=new Array(n.length),m=!0;if(null==o&&(m=!1),m){for(var v=0;v<g.length/2;v++)g[2*v]=n[2*v]*o+r,g[2*v+1]=n[2*v+1]*a+i;if(s>0){var A=mr(g,-s);c=gr(A)}else c=g}else c=n;for(var b=0;b<c.length/2;b++)u=c[2*b],d=c[2*b+1],b<c.length/2-1?(h=c[2*(b+1)],f=c[2*(b+1)+1]):(h=c[0],f=c[1]),0!==(l=wr(e,t,r,i,u,d,h,f)).length&&p.push(l[0],l[1]);return p},Er=function(e,t,n,r,i,o,a,s,l){var c,u=[],d=new Array(2*n.length);l.forEach(function(n,o){0===o?(d[d.length-2]=n.startX,d[d.length-1]=n.startY):(d[4*o-2]=n.startX,d[4*o-1]=n.startY),d[4*o]=n.stopX,d[4*o+1]=n.stopY,0!==(c=br(e,t,r,i,n.cx,n.cy,n.radius)).length&&u.push(c[0],c[1])});for(var h=0;h<d.length/4;h++)0!==(c=wr(e,t,r,i,d[4*h],d[4*h+1],d[4*h+2],d[4*h+3],!1)).length&&u.push(c[0],c[1]);if(u.length>2){for(var f=[u[0],u[1]],p=Math.pow(f[0]-e,2)+Math.pow(f[1]-t,2),g=1;g<u.length/2;g++){var m=Math.pow(u[2*g]-e,2)+Math.pow(u[2*g+1]-t,2);m<=p&&(f[0]=u[2*g],f[1]=u[2*g+1],p=m)}return f}return u},Sr=function(e,t,n){var r=[e[0]-t[0],e[1]-t[1]],i=Math.sqrt(r[0]*r[0]+r[1]*r[1]),o=(i-n)/i;return o<0&&(o=1e-5),[t[0]+o*r[0],t[1]+o*r[1]]},Cr=function(e,t){var n=kr(e,t);return Tr(n)},Tr=function(e){for(var t,n,r=e.length/2,i=1/0,o=1/0,a=-1/0,s=-1/0,l=0;l<r;l++)t=e[2*l],n=e[2*l+1],i=Math.min(i,t),a=Math.max(a,t),o=Math.min(o,n),s=Math.max(s,n);for(var c=2/(a-i),u=2/(s-o),d=0;d<r;d++)t=e[2*d]=e[2*d]*c,n=e[2*d+1]=e[2*d+1]*u,i=Math.min(i,t),a=Math.max(a,t),o=Math.min(o,n),s=Math.max(s,n);if(o<-1)for(var h=0;h<r;h++)n=e[2*h+1]=e[2*h+1]+(-1-o);return e},kr=function(e,t){var n=1/e*2*Math.PI,r=e%2==0?Math.PI/2+n/2:Math.PI/2;r+=t;for(var i,o=new Array(2*e),a=0;a<e;a++)i=a*n+r,o[2*a]=Math.cos(i),o[2*a+1]=Math.sin(-i);return o},Or=function(e,t){return Math.min(e/4,t/4,8)},Mr=function(e,t){return Math.min(e/10,t/10,8)},Ir=function(){return 8},Dr=function(e,t,n){return[e-2*t+n,2*(t-e),e]},Nr=function(e,t){return{heightOffset:Math.min(15,.05*t),widthOffset:Math.min(100,.25*e),ctrlPtOffsetPct:.05}};function Rr(e,t){function n(e){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=e[(n+1)%e.length],o={x:i.x-r.x,y:i.y-r.y},a={x:-o.y,y:o.x},s=Math.sqrt(a.x*a.x+a.y*a.y);t.push({x:a.x/s,y:a.y/s})}return t}function r(e,t){var n,r=1/0,i=-1/0,o=s(e);try{for(o.s();!(n=o.n()).done;){var a=n.value,l=a.x*t.x+a.y*t.y;r=Math.min(r,l),i=Math.max(i,l)}}catch(e){o.e(e)}finally{o.f()}return{min:r,max:i}}function i(e,t){return!(e.max<t.min||t.max<e.min)}var o,a=s([].concat(p(n(e)),p(n(t))));try{for(a.s();!(o=a.n()).done;){var l=o.value;if(!i(r(e,l),r(t,l)))return!1}}catch(e){a.e(e)}finally{a.f()}return!0}var Lr=Ut({dampingFactor:.8,precision:1e-6,iterations:200,weight:function(e){return 1}}),Br={pageRank:function(e){for(var t=Lr(e),n=t.dampingFactor,r=t.precision,i=t.iterations,o=t.weight,a=this._private.cy,s=this.byGroup(),l=s.nodes,c=s.edges,u=l.length,d=u*u,h=c.length,f=new Array(d),p=new Array(u),g=(1-n)/u,m=0;m<u;m++){for(var v=0;v<u;v++)f[m*u+v]=0;p[m]=0}for(var A=0;A<h;A++){var b=c[A],y=b.data("source"),w=b.data("target");if(y!==w){var _=l.indexOfId(y),x=l.indexOfId(w),E=o(b);f[x*u+_]+=E,p[_]+=E}}for(var S=1/u+g,C=0;C<u;C++)if(0===p[C])for(var T=0;T<u;T++)f[T*u+C]=S;else for(var k=0;k<u;k++){var O=k*u+C;f[O]=f[O]/p[C]+g}for(var M,I=new Array(u),D=new Array(u),N=0;N<u;N++)I[N]=1;for(var R=0;R<i;R++){for(var L=0;L<u;L++)D[L]=0;for(var B=0;B<u;B++)for(var P=0;P<u;P++){var F=B*u+P;D[B]+=f[F]*I[P]}$n(D),M=I,I=D,D=M;for(var $=0,j=0;j<u;j++){var H=M[j]-I[j];$+=H*H}if($<r)break}var U={rank:function(e){return e=a.collection(e)[0],I[l.indexOf(e)]}};return U}},Pr=Ut({root:null,weight:function(e){return 1},directed:!1,alpha:0}),Fr={degreeCentralityNormalized:function(e){e=Pr(e);var t=this.cy(),n=this.nodes(),r=n.length;if(e.directed){for(var i={},o={},a=0,s=0,l=0;l<r;l++){var c=n[l],u=c.id();e.root=c;var d=this.degreeCentrality(e);a<d.indegree&&(a=d.indegree),s<d.outdegree&&(s=d.outdegree),i[u]=d.indegree,o[u]=d.outdegree}return{indegree:function(e){return 0==a?0:(ee(e)&&(e=t.filter(e)),i[e.id()]/a)},outdegree:function(e){return 0===s?0:(ee(e)&&(e=t.filter(e)),o[e.id()]/s)}}}for(var h={},f=0,p=0;p<r;p++){var g=n[p];e.root=g;var m=this.degreeCentrality(e);f<m.degree&&(f=m.degree),h[g.id()]=m.degree}return{degree:function(e){return 0===f?0:(ee(e)&&(e=t.filter(e)),h[e.id()]/f)}}},degreeCentrality:function(e){e=Pr(e);var t=this.cy(),n=this,r=e,i=r.root,o=r.weight,a=r.directed,s=r.alpha;if(i=t.collection(i)[0],a){for(var l=i.connectedEdges(),c=l.filter(function(e){return e.target().same(i)&&n.has(e)}),u=l.filter(function(e){return e.source().same(i)&&n.has(e)}),d=c.length,h=u.length,f=0,p=0,g=0;g<c.length;g++)f+=o(c[g]);for(var m=0;m<u.length;m++)p+=o(u[m]);return{indegree:Math.pow(d,1-s)*Math.pow(f,s),outdegree:Math.pow(h,1-s)*Math.pow(p,s)}}for(var v=i.connectedEdges().intersection(n),A=v.length,b=0,y=0;y<v.length;y++)b+=o(v[y]);return{degree:Math.pow(A,1-s)*Math.pow(b,s)}}};Fr.dc=Fr.degreeCentrality,Fr.dcn=Fr.degreeCentralityNormalised=Fr.degreeCentralityNormalized;var $r=Ut({harmonic:!0,weight:function(){return 1},directed:!1,root:null}),jr={closenessCentralityNormalized:function(e){for(var t=$r(e),n=t.harmonic,r=t.weight,i=t.directed,o=this.cy(),a={},s=0,l=this.nodes(),c=this.floydWarshall({weight:r,directed:i}),u=0;u<l.length;u++){for(var d=0,h=l[u],f=0;f<l.length;f++)if(u!==f){var p=c.distance(h,l[f]);d+=n?1/p:p}n||(d=1/d),s<d&&(s=d),a[h.id()]=d}return{closeness:function(e){return 0==s?0:(e=ee(e)?o.filter(e)[0].id():e.id(),a[e]/s)}}},closenessCentrality:function(e){var t=$r(e),n=t.root,r=t.weight,i=t.directed,o=t.harmonic;n=this.filter(n)[0];for(var a=this.dijkstra({root:n,weight:r,directed:i}),s=0,l=this.nodes(),c=0;c<l.length;c++){var u=l[c];if(!u.same(n)){var d=a.distanceTo(u);s+=o?1/d:d}}return o?s:1/s}};jr.cc=jr.closenessCentrality,jr.ccn=jr.closenessCentralityNormalised=jr.closenessCentralityNormalized;var Hr=Ut({weight:null,directed:!1}),Ur={betweennessCentrality:function(e){for(var t=Hr(e),n=t.directed,r=t.weight,i=null!=r,o=this.cy(),a=this.nodes(),s={},l={},c=0,u={set:function(e,t){l[e]=t,t>c&&(c=t)},get:function(e){return l[e]}},d=0;d<a.length;d++){var h=a[d],f=h.id();s[f]=n?h.outgoers().nodes():h.openNeighborhood().nodes(),u.set(f,0)}for(var p=function(){for(var e=a[g].id(),t=[],n={},l={},c={},d=new dn(function(e,t){return c[e]-c[t]}),h=0;h<a.length;h++){var f=a[h].id();n[f]=[],l[f]=0,c[f]=1/0}for(l[e]=1,c[e]=0,d.push(e);!d.empty();){var p=d.pop();if(t.push(p),i)for(var m=0;m<s[p].length;m++){var v=s[p][m],A=o.getElementById(p),b=void 0;b=A.edgesTo(v).length>0?A.edgesTo(v)[0]:v.edgesTo(A)[0];var y=r(b);v=v.id(),c[v]>c[p]+y&&(c[v]=c[p]+y,d.nodes.indexOf(v)<0?d.push(v):d.updateItem(v),l[v]=0,n[v]=[]),c[v]==c[p]+y&&(l[v]=l[v]+l[p],n[v].push(p))}else for(var w=0;w<s[p].length;w++){var _=s[p][w].id();c[_]==1/0&&(d.push(_),c[_]=c[p]+1),c[_]==c[p]+1&&(l[_]=l[_]+l[p],n[_].push(p))}}for(var x={},E=0;E<a.length;E++)x[a[E].id()]=0;for(;t.length>0;){for(var S=t.pop(),C=0;C<n[S].length;C++){var T=n[S][C];x[T]=x[T]+l[T]/l[S]*(1+x[S])}S!=a[g].id()&&u.set(S,u.get(S)+x[S])}},g=0;g<a.length;g++)p();var m={betweenness:function(e){var t=o.collection(e).id();return u.get(t)},betweennessNormalized:function(e){if(0==c)return 0;var t=o.collection(e).id();return u.get(t)/c}};return m.betweennessNormalised=m.betweennessNormalized,m}};Ur.bc=Ur.betweennessCentrality;var Qr=Ut({expandFactor:2,inflateFactor:2,multFactor:1,maxIterations:20,attributes:[function(e){return 1}]}),zr=function(e){return Qr(e)},Wr=function(e,t){for(var n=0,r=0;r<t.length;r++)n+=t[r](e);return n},Gr=function(e,t,n){for(var r=0;r<t;r++)e[r*t+r]=n},Vr=function(e,t){for(var n,r=0;r<t;r++){n=0;for(var i=0;i<t;i++)n+=e[i*t+r];for(var o=0;o<t;o++)e[o*t+r]=e[o*t+r]/n}},Kr=function(e,t,n){for(var r=new Array(n*n),i=0;i<n;i++){for(var o=0;o<n;o++)r[i*n+o]=0;for(var a=0;a<n;a++)for(var s=0;s<n;s++)r[i*n+s]+=e[i*n+a]*t[a*n+s]}return r},Yr=function(e,t,n){for(var r=e.slice(0),i=1;i<n;i++)e=Kr(e,r,t);return e},qr=function(e,t,n){for(var r=new Array(t*t),i=0;i<t*t;i++)r[i]=Math.pow(e[i],n);return Vr(r,t),r},Xr=function(e,t,n,r){for(var i=0;i<n;i++)if(Math.round(e[i]*Math.pow(10,r))/Math.pow(10,r)!=Math.round(t[i]*Math.pow(10,r))/Math.pow(10,r))return!1;return!0},Jr=function(e,t,n,r){for(var i=[],o=0;o<t;o++){for(var a=[],s=0;s<t;s++)Math.round(1e3*e[o*t+s])/1e3>0&&a.push(n[s]);0!==a.length&&i.push(r.collection(a))}return i},Zr=function(e,t){for(var n=0;n<e.length;n++)if(!t[n]||e[n].id()!==t[n].id())return!1;return!0},ei=function(e){for(var t=0;t<e.length;t++)for(var n=0;n<e.length;n++)t!=n&&Zr(e[t],e[n])&&e.splice(n,1);return e},ti=function(e){for(var t=this.nodes(),n=this.edges(),r=this.cy(),i=zr(e),o={},a=0;a<t.length;a++)o[t[a].id()]=a;for(var s,l=t.length,c=l*l,u=new Array(c),d=0;d<c;d++)u[d]=0;for(var h=0;h<n.length;h++){var f=n[h],p=o[f.source().id()],g=o[f.target().id()],m=Wr(f,i.attributes);u[p*l+g]+=m,u[g*l+p]+=m}Gr(u,l,i.multFactor),Vr(u,l);for(var v=!0,A=0;v&&A<i.maxIterations;)v=!1,s=Yr(u,l,i.expandFactor),u=qr(s,l,i.inflateFactor),Xr(u,s,c,4)||(v=!0),A++;var b=Jr(u,l,t,r);return ei(b)},ni={markovClustering:ti,mcl:ti},ri=function(e){return e},ii=function(e,t){return Math.abs(t-e)},oi=function(e,t,n){return e+ii(t,n)},ai=function(e,t,n){return e+Math.pow(n-t,2)},si=function(e){return Math.sqrt(e)},li=function(e,t,n){return Math.max(e,ii(t,n))},ci=function(e,t,n,r,i){for(var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:ri,a=r,s=0;s<e;s++)a=i(a,t(s),n(s));return o(a)},ui={euclidean:function(e,t,n){return e>=2?ci(e,t,n,0,ai,si):ci(e,t,n,0,oi)},squaredEuclidean:function(e,t,n){return ci(e,t,n,0,ai)},manhattan:function(e,t,n){return ci(e,t,n,0,oi)},max:function(e,t,n){return ci(e,t,n,-1/0,li)}};function di(e,t,n,r,i,o){var a;return a=te(e)?e:ui[e]||ui.euclidean,0===t&&te(e)?a(i,o):a(t,n,r,i,o)}ui["squared-euclidean"]=ui.squaredEuclidean,ui.squaredeuclidean=ui.squaredEuclidean;var hi=Ut({k:2,m:2,sensitivityThreshold:1e-4,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),fi=function(e){return hi(e)},pi=function(e,t,n,r,i){var o="kMedoids"!==i?function(e){return n[e]}:function(e){return r[e](n)},a=function(e){return r[e](t)},s=n,l=t;return di(e,r.length,o,a,s,l)},gi=function(e,t,n){for(var r=n.length,i=new Array(r),o=new Array(r),a=new Array(t),s=null,l=0;l<r;l++)i[l]=e.min(n[l]).value,o[l]=e.max(n[l]).value;for(var c=0;c<t;c++){s=[];for(var u=0;u<r;u++)s[u]=Math.random()*(o[u]-i[u])+i[u];a[c]=s}return a},mi=function(e,t,n,r,i){for(var o=1/0,a=0,s=0;s<t.length;s++){var l=pi(n,e,t[s],r,i);l<o&&(o=l,a=s)}return a},vi=function(e,t,n){for(var r=[],i=null,o=0;o<t.length;o++)n[(i=t[o]).id()]===e&&r.push(i);return r},Ai=function(e,t,n){return Math.abs(t-e)<=n},bi=function(e,t,n){for(var r=0;r<e.length;r++)for(var i=0;i<e[r].length;i++)if(Math.abs(e[r][i]-t[r][i])>n)return!1;return!0},yi=function(e,t,n){for(var r=0;r<n;r++)if(e===t[r])return!0;return!1},wi=function(e,t){var n=new Array(t);if(e.length<50)for(var r=0;r<t;r++){for(var i=e[Math.floor(Math.random()*e.length)];yi(i,n,r);)i=e[Math.floor(Math.random()*e.length)];n[r]=i}else for(var o=0;o<t;o++)n[o]=e[Math.floor(Math.random()*e.length)];return n},_i=function(e,t,n){for(var r=0,i=0;i<t.length;i++)r+=pi("manhattan",t[i],e,n,"kMedoids");return r},xi=function(e){var t,n=this.cy(),r=this.nodes(),i=null,o=fi(e),a=new Array(o.k),s={};o.testMode?"number"==typeof o.testCentroids?(o.testCentroids,t=gi(r,o.k,o.attributes)):t="object"===v(o.testCentroids)?o.testCentroids:gi(r,o.k,o.attributes):t=gi(r,o.k,o.attributes);for(var l=!0,c=0;l&&c<o.maxIterations;){for(var u=0;u<r.length;u++)s[(i=r[u]).id()]=mi(i,t,o.distance,o.attributes,"kMeans");l=!1;for(var d=0;d<o.k;d++){var h=vi(d,r,s);if(0!==h.length){for(var f=o.attributes.length,p=t[d],g=new Array(f),m=new Array(f),A=0;A<f;A++){m[A]=0;for(var b=0;b<h.length;b++)i=h[b],m[A]+=o.attributes[A](i);g[A]=m[A]/h.length,Ai(g[A],p[A],o.sensitivityThreshold)||(l=!0)}t[d]=g,a[d]=n.collection(h)}}c++}return a},Ei=function(e){var t,n,r=this.cy(),i=this.nodes(),o=null,a=fi(e),s=new Array(a.k),l={},c=new Array(a.k);a.testMode?"number"==typeof a.testCentroids||(t="object"===v(a.testCentroids)?a.testCentroids:wi(i,a.k)):t=wi(i,a.k);for(var u=!0,d=0;u&&d<a.maxIterations;){for(var h=0;h<i.length;h++)l[(o=i[h]).id()]=mi(o,t,a.distance,a.attributes,"kMedoids");u=!1;for(var f=0;f<t.length;f++){var p=vi(f,i,l);if(0!==p.length){c[f]=_i(t[f],p,a.attributes);for(var g=0;g<p.length;g++)(n=_i(p[g],p,a.attributes))<c[f]&&(c[f]=n,t[f]=p[g],u=!0);s[f]=r.collection(p)}}d++}return s},Si=function(e,t,n,r,i){for(var o,a,s=0;s<t.length;s++)for(var l=0;l<e.length;l++)r[s][l]=Math.pow(n[s][l],i.m);for(var c=0;c<e.length;c++)for(var u=0;u<i.attributes.length;u++){o=0,a=0;for(var d=0;d<t.length;d++)o+=r[d][c]*i.attributes[u](t[d]),a+=r[d][c];e[c][u]=o/a}},Ci=function(e,t,n,r,i){for(var o=0;o<e.length;o++)t[o]=e[o].slice();for(var a,s,l,c=2/(i.m-1),u=0;u<n.length;u++)for(var d=0;d<r.length;d++){a=0;for(var h=0;h<n.length;h++)s=pi(i.distance,r[d],n[u],i.attributes,"cmeans"),l=pi(i.distance,r[d],n[h],i.attributes,"cmeans"),a+=Math.pow(s/l,c);e[d][u]=1/a}},Ti=function(e,t,n,r){for(var i,o,a=new Array(n.k),s=0;s<a.length;s++)a[s]=[];for(var l=0;l<t.length;l++){i=-1/0,o=-1;for(var c=0;c<t[0].length;c++)t[l][c]>i&&(i=t[l][c],o=c);a[o].push(e[l])}for(var u=0;u<a.length;u++)a[u]=r.collection(a[u]);return a},ki=function(e){var t,n,r,i,o=this.cy(),a=this.nodes(),s=fi(e);r=new Array(a.length);for(var l=0;l<a.length;l++)r[l]=new Array(s.k);n=new Array(a.length);for(var c=0;c<a.length;c++)n[c]=new Array(s.k);for(var u=0;u<a.length;u++){for(var d=0,h=0;h<s.k;h++)n[u][h]=Math.random(),d+=n[u][h];for(var f=0;f<s.k;f++)n[u][f]=n[u][f]/d}t=new Array(s.k);for(var p=0;p<s.k;p++)t[p]=new Array(s.attributes.length);i=new Array(a.length);for(var g=0;g<a.length;g++)i[g]=new Array(s.k);for(var m=!0,v=0;m&&v<s.maxIterations;)m=!1,Si(t,a,n,i,s),Ci(n,r,t,a,s),bi(n,r,s.sensitivityThreshold)||(m=!0),v++;return{clusters:Ti(a,n,s,o),degreeOfMembership:n}},Oi={kMeans:xi,kMedoids:Ei,fuzzyCMeans:ki,fcm:ki},Mi=Ut({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!1,dendrogramDepth:0,attributes:[]}),Ii={single:"min",complete:"max"},Di=function(e){var t=Mi(e),n=Ii[t.linkage];return null!=n&&(t.linkage=n),t},Ni=function(e,t,n,r,i){for(var o,a=0,s=1/0,l=i.attributes,c=function(e,t){return di(i.distance,l.length,function(t){return l[t](e)},function(e){return l[e](t)},e,t)},u=0;u<e.length;u++){var d=e[u].key,h=n[d][r[d]];h<s&&(a=d,s=h)}if("threshold"===i.mode&&s>=i.threshold||"dendrogram"===i.mode&&1===e.length)return!1;var f,p=t[a],g=t[r[a]];f="dendrogram"===i.mode?{left:p,right:g,key:p.key}:{value:p.value.concat(g.value),key:p.key},e[p.index]=f,e.splice(g.index,1),t[p.key]=f;for(var m=0;m<e.length;m++){var v=e[m];p.key===v.key?o=1/0:"min"===i.linkage?(o=n[p.key][v.key],n[p.key][v.key]>n[g.key][v.key]&&(o=n[g.key][v.key])):"max"===i.linkage?(o=n[p.key][v.key],n[p.key][v.key]<n[g.key][v.key]&&(o=n[g.key][v.key])):o="mean"===i.linkage?(n[p.key][v.key]*p.size+n[g.key][v.key]*g.size)/(p.size+g.size):"dendrogram"===i.mode?c(v.value,p.value):c(v.value[0],p.value[0]),n[p.key][v.key]=n[v.key][p.key]=o}for(var A=0;A<e.length;A++){var b=e[A].key;if(r[b]===p.key||r[b]===g.key){for(var y=b,w=0;w<e.length;w++){var _=e[w].key;n[b][_]<n[b][y]&&(y=_)}r[b]=y}e[A].index=A}return p.key=g.key=p.index=g.index=null,!0},Ri=function(e,t,n){e&&(e.value?t.push(e.value):(e.left&&Ri(e.left,t),e.right&&Ri(e.right,t)))},Li=function(e,t){if(!e)return"";if(e.left&&e.right){var n=Li(e.left,t),r=Li(e.right,t),i=t.add({group:"nodes",data:{id:n+","+r}});return t.add({group:"edges",data:{source:n,target:i.id()}}),t.add({group:"edges",data:{source:r,target:i.id()}}),i.id()}return e.value?e.value.id():void 0},Bi=function(e,t,n){if(!e)return[];var r=[],i=[],o=[];return 0===t?(e.left&&Ri(e.left,r),e.right&&Ri(e.right,i),o=r.concat(i),[n.collection(o)]):1===t?e.value?[n.collection(e.value)]:(e.left&&Ri(e.left,r),e.right&&Ri(e.right,i),[n.collection(r),n.collection(i)]):e.value?[n.collection(e.value)]:(e.left&&(r=Bi(e.left,t-1,n)),e.right&&(i=Bi(e.right,t-1,n)),r.concat(i))},Pi=function(e){for(var t=this.cy(),n=this.nodes(),r=Di(e),i=r.attributes,o=function(e,t){return di(r.distance,i.length,function(t){return i[t](e)},function(e){return i[e](t)},e,t)},a=[],s=[],l=[],c=[],u=0;u<n.length;u++){var d={value:"dendrogram"===r.mode?n[u]:[n[u]],key:u,index:u};a[u]=d,c[u]=d,s[u]=[],l[u]=0}for(var h=0;h<a.length;h++)for(var f=0;f<=h;f++){var p=void 0;p="dendrogram"===r.mode?h===f?1/0:o(a[h].value,a[f].value):h===f?1/0:o(a[h].value[0],a[f].value[0]),s[h][f]=p,s[f][h]=p,p<s[h][l[h]]&&(l[h]=f)}for(var g,m=Ni(a,c,s,l,r);m;)m=Ni(a,c,s,l,r);return"dendrogram"===r.mode?(g=Bi(a[0],r.dendrogramDepth,t),r.addDendrogram&&Li(a[0],t)):(g=new Array(a.length),a.forEach(function(e,n){e.key=e.index=null,g[n]=t.collection(e.value)})),g},Fi={hierarchicalClustering:Pi,hca:Pi},$i=Ut({distance:"euclidean",preference:"median",damping:.8,maxIterations:1e3,minIterations:100,attributes:[]}),ji=function(e){var t=e.damping,n=e.preference;.5<=t&&t<1||Nt("Damping must range on [0.5, 1).  Got: ".concat(t));var r=["median","mean","min","max"];return r.some(function(e){return e===n})||oe(n)||Nt("Preference must be one of [".concat(r.map(function(e){return"'".concat(e,"'")}).join(", "),"] or a number.  Got: ").concat(n)),$i(e)},Hi=function(e,t,n,r){var i=function(e,t){return r[t](e)};return-di(e,r.length,function(e){return i(t,e)},function(e){return i(n,e)},t,n)},Ui=function(e,t){return"median"===t?Dn(e):"mean"===t?In(e):"min"===t?On(e):"max"===t?Mn(e):t},Qi=function(e,t,n){for(var r=[],i=0;i<e;i++)t[i*e+i]+n[i*e+i]>0&&r.push(i);return r},zi=function(e,t,n){for(var r=[],i=0;i<e;i++){for(var o=-1,a=-1/0,s=0;s<n.length;s++){var l=n[s];t[i*e+l]>a&&(o=l,a=t[i*e+l])}o>0&&r.push(o)}for(var c=0;c<n.length;c++)r[n[c]]=n[c];return r},Wi=function(e,t,n){for(var r=zi(e,t,n),i=0;i<n.length;i++){for(var o=[],a=0;a<r.length;a++)r[a]===n[i]&&o.push(a);for(var s=-1,l=-1/0,c=0;c<o.length;c++){for(var u=0,d=0;d<o.length;d++)u+=t[o[d]*e+o[c]];u>l&&(s=c,l=u)}n[i]=o[s]}return zi(e,t,n)},Gi=function(e){for(var t,n,r,i,o,a,s=this.cy(),l=this.nodes(),c=ji(e),u={},d=0;d<l.length;d++)u[l[d].id()]=d;n=(t=l.length)*t,r=new Array(n);for(var h=0;h<n;h++)r[h]=-1/0;for(var f=0;f<t;f++)for(var p=0;p<t;p++)f!==p&&(r[f*t+p]=Hi(c.distance,l[f],l[p],c.attributes));i=Ui(r,c.preference);for(var g=0;g<t;g++)r[g*t+g]=i;o=new Array(n);for(var m=0;m<n;m++)o[m]=0;a=new Array(n);for(var v=0;v<n;v++)a[v]=0;for(var A=new Array(t),b=new Array(t),y=new Array(t),w=0;w<t;w++)A[w]=0,b[w]=0,y[w]=0;for(var _,x=new Array(t*c.minIterations),E=0;E<x.length;E++)x[E]=0;for(_=0;_<c.maxIterations;_++){for(var S=0;S<t;S++){for(var C=-1/0,T=-1/0,k=-1,O=0,M=0;M<t;M++)A[M]=o[S*t+M],(O=a[S*t+M]+r[S*t+M])>=C?(T=C,C=O,k=M):O>T&&(T=O);for(var I=0;I<t;I++)o[S*t+I]=(1-c.damping)*(r[S*t+I]-C)+c.damping*A[I];o[S*t+k]=(1-c.damping)*(r[S*t+k]-T)+c.damping*A[k]}for(var D=0;D<t;D++){for(var N=0,R=0;R<t;R++)A[R]=a[R*t+D],b[R]=Math.max(0,o[R*t+D]),N+=b[R];N-=b[D],b[D]=o[D*t+D],N+=b[D];for(var L=0;L<t;L++)a[L*t+D]=(1-c.damping)*Math.min(0,N-b[L])+c.damping*A[L];a[D*t+D]=(1-c.damping)*(N-b[D])+c.damping*A[D]}for(var B=0,P=0;P<t;P++){var F=a[P*t+P]+o[P*t+P]>0?1:0;x[_%c.minIterations*t+P]=F,B+=F}if(B>0&&(_>=c.minIterations-1||_==c.maxIterations-1)){for(var $=0,j=0;j<t;j++){y[j]=0;for(var H=0;H<c.minIterations;H++)y[j]+=x[H*t+j];0!==y[j]&&y[j]!==c.minIterations||$++}if($===t)break}}for(var U=Qi(t,o,a),Q=Wi(t,r,U),z={},W=0;W<U.length;W++)z[U[W]]=[];for(var G=0;G<l.length;G++){var V=Q[u[l[G].id()]];null!=V&&z[V].push(l[G])}for(var K=new Array(U.length),Y=0;Y<U.length;Y++)K[Y]=s.collection(z[U[Y]]);return K},Vi={affinityPropagation:Gi,ap:Gi},Ki=Ut({root:void 0,directed:!1}),Yi={hierholzer:function(e){if(!re(e)){var t=arguments;e={root:t[0],directed:t[1]}}var n,r,i,o=Ki(e),a=o.root,s=o.directed,l=this,c=!1;a&&(i=ee(a)?this.filter(a)[0].id():a[0].id());var u={},d={};s?l.forEach(function(e){var t=e.id();if(e.isNode()){var i=e.indegree(!0),o=e.outdegree(!0),a=i-o,s=o-i;1==a?n?c=!0:n=t:1==s?r?c=!0:r=t:(s>1||a>1)&&(c=!0),u[t]=[],e.outgoers().forEach(function(e){e.isEdge()&&u[t].push(e.id())})}else d[t]=[void 0,e.target().id()]}):l.forEach(function(e){var t=e.id();e.isNode()?(e.degree(!0)%2&&(n?r?c=!0:r=t:n=t),u[t]=[],e.connectedEdges().forEach(function(e){return u[t].push(e.id())})):d[t]=[e.source().id(),e.target().id()]});var h={found:!1,trail:void 0};if(c)return h;if(r&&n)if(s){if(i&&r!=i)return h;i=r}else{if(i&&r!=i&&n!=i)return h;i||(i=r)}else i||(i=l[0].id());var f=function(e){for(var t,n,r,i=e,o=[e];u[i].length;)t=u[i].shift(),n=d[t][0],i!=(r=d[t][1])?(u[r]=u[r].filter(function(e){return e!=t}),i=r):s||i==n||(u[n]=u[n].filter(function(e){return e!=t}),i=n),o.unshift(t),o.unshift(i);return o},p=[],g=[];for(g=f(i);1!=g.length;)0==u[g[0]].length?(p.unshift(l.getElementById(g.shift())),p.unshift(l.getElementById(g.shift()))):g=f(g.shift()).concat(g);for(var m in p.unshift(l.getElementById(g.shift())),u)if(u[m].length)return h;return h.found=!0,h.trail=this.spawn(p,!0),h}},qi=function(){var e=this,t={},n=0,r=0,i=[],o=[],a={},s=function(n,r){for(var a=o.length-1,s=[],l=e.spawn();o[a].x!=n||o[a].y!=r;)s.push(o.pop().edge),a--;s.push(o.pop().edge),s.forEach(function(n){var r=n.connectedNodes().intersection(e);l.merge(n),r.forEach(function(n){var r=n.id(),i=n.connectedEdges().intersection(e);l.merge(n),t[r].cutVertex?l.merge(i.filter(function(e){return e.isLoop()})):l.merge(i)})}),i.push(l)},l=function(c,u,d){c===d&&(r+=1),t[u]={id:n,low:n++,cutVertex:!1};var h,f,p,g,m=e.getElementById(u).connectedEdges().intersection(e);0===m.size()?i.push(e.spawn(e.getElementById(u))):m.forEach(function(e){h=e.source().id(),f=e.target().id(),(p=h===u?f:h)!==d&&(g=e.id(),a[g]||(a[g]=!0,o.push({x:u,y:p,edge:e})),p in t?t[u].low=Math.min(t[u].low,t[p].id):(l(c,p,u),t[u].low=Math.min(t[u].low,t[p].low),t[u].id<=t[p].low&&(t[u].cutVertex=!0,s(u,p))))})};e.forEach(function(e){if(e.isNode()){var n=e.id();n in t||(r=0,l(n,n),t[n].cutVertex=r>1)}});var c=Object.keys(t).filter(function(e){return t[e].cutVertex}).map(function(t){return e.getElementById(t)});return{cut:e.spawn(c),components:i}},Xi=function(){var e=this,t={},n=0,r=[],i=[],o=e.spawn(e),a=function(s){if(i.push(s),t[s]={index:n,low:n++,explored:!1},e.getElementById(s).connectedEdges().intersection(e).forEach(function(e){var n=e.target().id();n!==s&&(n in t||a(n),t[n].explored||(t[s].low=Math.min(t[s].low,t[n].low)))}),t[s].index===t[s].low){for(var l=e.spawn();;){var c=i.pop();if(l.merge(e.getElementById(c)),t[c].low=t[s].index,t[c].explored=!0,c===s)break}var u=l.edgesWith(l),d=l.merge(u);r.push(d),o=o.difference(d)}};return e.forEach(function(e){if(e.isNode()){var n=e.id();n in t||a(n)}}),{cut:o,components:r}},Ji={};[tn,fn,pn,mn,An,yn,En,Br,Fr,jr,Ur,ni,Oi,Fi,Vi,Yi,{hopcroftTarjanBiconnected:qi,htbc:qi,htb:qi,hopcroftTarjanBiconnectedComponents:qi},{tarjanStronglyConnected:Xi,tsc:Xi,tscc:Xi,tarjanStronglyConnectedComponents:Xi}].forEach(function(e){Re(Ji,e)});var Zi=0,eo=1,to=2,no=function(e){if(!(this instanceof no))return new no(e);this.id="Thenable/1.0.7",this.state=Zi,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},"function"==typeof e&&e.call(this,this.fulfill.bind(this),this.reject.bind(this))};no.prototype={fulfill:function(e){return ro(this,eo,"fulfillValue",e)},reject:function(e){return ro(this,to,"rejectReason",e)},then:function(e,t){var n=this,r=new no;return n.onFulfilled.push(ao(e,r,"fulfill")),n.onRejected.push(ao(t,r,"reject")),io(n),r.proxy}};var ro=function(e,t,n,r){return e.state===Zi&&(e.state=t,e[n]=r,io(e)),e},io=function(e){e.state===eo?oo(e,"onFulfilled",e.fulfillValue):e.state===to&&oo(e,"onRejected",e.rejectReason)},oo=function(e,t,n){if(0!==e[t].length){var r=e[t];e[t]=[];var i=function(){for(var e=0;e<r.length;e++)r[e](n)};"function"==typeof setImmediate?setImmediate(i):setTimeout(i,0)}},ao=function(e,t,n){return function(r){if("function"!=typeof e)t[n].call(t,r);else{var i;try{i=e(r)}catch(e){return void t.reject(e)}so(t,i)}}},so=function(e,t){if(e!==t&&e.proxy!==t){var n;if("object"===v(t)&&null!==t||"function"==typeof t)try{n=t.then}catch(t){return void e.reject(t)}if("function"!=typeof n)e.fulfill(t);else{var r=!1;try{n.call(t,function(n){r||(r=!0,n===t?e.reject(new TypeError("circular thenable chain")):so(e,n))},function(t){r||(r=!0,e.reject(t))})}catch(t){r||e.reject(t)}}}else e.reject(new TypeError("cannot resolve promise with itself"))};no.all=function(e){return new no(function(t,n){for(var r=new Array(e.length),i=0,o=function(n,o){r[n]=o,++i===e.length&&t(r)},a=0;a<e.length;a++)!function(t){var r=e[t];null!=r&&null!=r.then?r.then(function(e){o(t,e)},function(e){n(e)}):o(t,r)}(a)})},no.resolve=function(e){return new no(function(t,n){t(e)})},no.reject=function(e){return new no(function(t,n){n(e)})};var lo="undefined"!=typeof Promise?Promise:no,co=function(e,t,n){var r=de(e),i=!r,o=this._private=Re({duration:1e3},t,n);if(o.target=e,o.style=o.style||o.css,o.started=!1,o.playing=!1,o.hooked=!1,o.applying=!1,o.progress=0,o.completes=[],o.frames=[],o.complete&&te(o.complete)&&o.completes.push(o.complete),i){var a=e.position();o.startPosition=o.startPosition||{x:a.x,y:a.y},o.startStyle=o.startStyle||e.cy().style().getAnimationStartStyle(e,o.style)}if(r){var s=e.pan();o.startPan={x:s.x,y:s.y},o.startZoom=e.zoom()}this.length=1,this[0]=this},uo=co.prototype;Re(uo,{instanceString:function(){return"animation"},hook:function(){var e=this._private;if(!e.hooked){var t=e.target._private.animation;(e.queue?t.queue:t.current).push(this),le(e.target)&&e.target.cy().addToAnimationPool(e.target),e.hooked=!0}return this},play:function(){var e=this._private;return 1===e.progress&&(e.progress=0),e.playing=!0,e.started=!1,e.stopped=!1,this.hook(),this},playing:function(){return this._private.playing},apply:function(){var e=this._private;return e.applying=!0,e.started=!1,e.stopped=!1,this.hook(),this},applying:function(){return this._private.applying},pause:function(){var e=this._private;return e.playing=!1,e.started=!1,this},stop:function(){var e=this._private;return e.playing=!1,e.started=!1,e.stopped=!0,this},rewind:function(){return this.progress(0)},fastforward:function(){return this.progress(1)},time:function(e){var t=this._private;return void 0===e?t.progress*t.duration:this.progress(e/t.duration)},progress:function(e){var t=this._private,n=t.playing;return void 0===e?t.progress:(n&&this.pause(),t.progress=e,t.started=!1,n&&this.play(),this)},completed:function(){return 1===this._private.progress},reverse:function(){var e=this._private,t=e.playing;t&&this.pause(),e.progress=1-e.progress,e.started=!1;var n=function(t,n){var r=e[t];null!=r&&(e[t]=e[n],e[n]=r)};if(n("zoom","startZoom"),n("pan","startPan"),n("position","startPosition"),e.style)for(var r=0;r<e.style.length;r++){var i=e.style[r],o=i.name,a=e.startStyle[o];e.startStyle[o]=i,e.style[r]=a}return t&&this.play(),this},promise:function(e){var t,n=this._private;return t="frame"===e?n.frames:n.completes,new lo(function(e,n){t.push(function(){e()})})}}),uo.complete=uo.completed,uo.run=uo.play,uo.running=uo.playing;var ho,fo,po,go,mo,vo,Ao,bo,yo,wo,_o,xo,Eo,So,Co,To,ko,Oo,Mo,Io,Do,No,Ro,Lo,Bo,Po,Fo,$o,jo,Ho,Uo,Qo,zo,Wo,Go,Vo,Ko,Yo,qo,Xo,Jo,Zo,ea,ta,na,ra,ia,oa,aa,sa,la,ca,ua,da,ha,fa,pa,ga,ma,va,Aa,ba,ya,wa,_a,xa,Ea,Sa,Ca,Ta,ka,Oa,Ma,Ia,Da,Na,Ra,La,Ba,Pa,Fa,$a,ja,Ha,Ua,Qa,za={animated:function(){return function(){var e=this,t=void 0!==e.length?e:[e];if(!(this._private.cy||this).styleEnabled())return!1;var n=t[0];return n?n._private.animation.current.length>0:void 0}},clearQueue:function(){return function(){var e=this,t=void 0!==e.length?e:[e];if(!(this._private.cy||this).styleEnabled())return this;for(var n=0;n<t.length;n++)t[n]._private.animation.queue=[];return this}},delay:function(){return function(e,t){return(this._private.cy||this).styleEnabled()?this.animate({delay:e,duration:e,complete:t}):this}},delayAnimation:function(){return function(e,t){return(this._private.cy||this).styleEnabled()?this.animation({delay:e,duration:e,complete:t}):this}},animation:function(){return function(e,t){var n=this,r=void 0!==n.length,i=r?n:[n],o=this._private.cy||this,a=!r,s=!a;if(!o.styleEnabled())return this;var l=o.style();if(e=Re({},e,t),0===Object.keys(e).length)return new co(i[0],e);switch(void 0===e.duration&&(e.duration=400),e.duration){case"slow":e.duration=600;break;case"fast":e.duration=200}if(s&&(e.style=l.getPropsList(e.style||e.css),e.css=void 0),s&&null!=e.renderedPosition){var c=e.renderedPosition,u=o.pan(),d=o.zoom();e.position=Tn(c,d,u)}if(a&&null!=e.panBy){var h=e.panBy,f=o.pan();e.pan={x:f.x+h.x,y:f.y+h.y}}var p=e.center||e.centre;if(a&&null!=p){var g=o.getCenterPan(p.eles,e.zoom);null!=g&&(e.pan=g)}if(a&&null!=e.fit){var m=e.fit,v=o.getFitViewport(m.eles||m.boundingBox,m.padding);null!=v&&(e.pan=v.pan,e.zoom=v.zoom)}if(a&&re(e.zoom)){var A=o.getZoomedViewport(e.zoom);null!=A?(A.zoomed&&(e.zoom=A.zoom),A.panned&&(e.pan=A.pan)):e.zoom=null}return new co(i[0],e)}},animate:function(){return function(e,t){var n=this,r=void 0!==n.length?n:[n];if(!(this._private.cy||this).styleEnabled())return this;t&&(e=Re({},e,t));for(var i=0;i<r.length;i++){var o=r[i],a=o.animated()&&(void 0===e.queue||e.queue);o.animation(e,a?{queue:!0}:void 0).play()}return this}},stop:function(){return function(e,t){var n=this,r=void 0!==n.length?n:[n],i=this._private.cy||this;if(!i.styleEnabled())return this;for(var o=0;o<r.length;o++){for(var a=r[o]._private,s=a.animation.current,l=0;l<s.length;l++){var c=s[l]._private;t&&(c.duration=0)}e&&(a.animation.queue=[]),t||(a.animation.current=[])}return i.notify("draw"),this}}};function Wa(){if(fo)return ho;fo=1;var e=Array.isArray;return ho=e}function Ga(){if(go)return po;go=1;var e=Wa(),t=nt(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(i,o){if(e(i))return!1;var a=typeof i;return!("number"!=a&&"symbol"!=a&&"boolean"!=a&&null!=i&&!t(i))||r.test(i)||!n.test(i)||null!=o&&i in Object(o)}return po=i}function Va(){if(vo)return mo;vo=1;var e=et(),t=We(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function a(a){if(!t(a))return!1;var s=e(a);return s==r||s==i||s==n||s==o}return mo=a}function Ka(){if(bo)return Ao;bo=1;var e=Ve()["__core-js_shared__"];return Ao=e}function Ya(){if(wo)return yo;wo=1;var e=Ka(),t=function(){var t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function n(e){return!!t&&t in e}return yo=n}function qa(){if(xo)return _o;xo=1;var e=Function.prototype.toString;function t(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}return _o=t}function Xa(){if(So)return Eo;So=1;var e=Va(),t=Ya(),n=We(),r=qa(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=RegExp("^"+l.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(i){return!(!n(i)||t(i))&&(e(i)?u:o).test(r(i))}return Eo=d}function Ja(){if(To)return Co;function e(e,t){return null==e?void 0:e[t]}return To=1,Co=e}function Za(){if(Oo)return ko;Oo=1;var e=Xa(),t=Ja();function n(n,r){var i=t(n,r);return e(i)?i:void 0}return ko=n}function es(){if(Io)return Mo;Io=1;var e=Za()(Object,"create");return Mo=e}function ts(){if(No)return Do;No=1;var e=es();function t(){this.__data__=e?e(null):{},this.size=0}return Do=t}function ns(){if(Lo)return Ro;function e(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}return Lo=1,Ro=e}function rs(){if(Po)return Bo;Po=1;var e=es(),t="__lodash_hash_undefined__",n=Object.prototype.hasOwnProperty;function r(r){var i=this.__data__;if(e){var o=i[r];return o===t?void 0:o}return n.call(i,r)?i[r]:void 0}return Bo=r}function is(){if($o)return Fo;$o=1;var e=es(),t=Object.prototype.hasOwnProperty;function n(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}return Fo=n}function os(){if(Ho)return jo;Ho=1;var e=es(),t="__lodash_hash_undefined__";function n(n,r){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&void 0===r?t:r,this}return jo=n}function as(){if(Qo)return Uo;Qo=1;var e=ts(),t=ns(),n=rs(),r=is(),i=os();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Uo=o}function ss(){if(Wo)return zo;function e(){this.__data__=[],this.size=0}return Wo=1,zo=e}function ls(){if(Vo)return Go;function e(e,t){return e===t||e!=e&&t!=t}return Vo=1,Go=e}function cs(){if(Yo)return Ko;Yo=1;var e=ls();function t(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}return Ko=t}function us(){if(Xo)return qo;Xo=1;var e=cs(),t=Array.prototype.splice;function n(n){var r=this.__data__,i=e(r,n);return!(i<0||(i==r.length-1?r.pop():t.call(r,i,1),--this.size,0))}return qo=n}function ds(){if(Zo)return Jo;Zo=1;var e=cs();function t(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}return Jo=t}function hs(){if(ta)return ea;ta=1;var e=cs();function t(t){return e(this.__data__,t)>-1}return ea=t}function fs(){if(ra)return na;ra=1;var e=cs();function t(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this}return na=t}function ps(){if(oa)return ia;oa=1;var e=ss(),t=us(),n=ds(),r=hs(),i=fs();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,ia=o}function gs(){if(sa)return aa;sa=1;var e=Za()(Ve(),"Map");return aa=e}function ms(){if(ca)return la;ca=1;var e=as(),t=ps(),n=gs();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return la=r}function vs(){if(da)return ua;function e(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}return da=1,ua=e}function As(){if(fa)return ha;fa=1;var e=vs();function t(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map}return ha=t}function bs(){if(ga)return pa;ga=1;var e=As();function t(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}return pa=t}function ys(){if(va)return ma;va=1;var e=As();function t(t){return e(this,t).get(t)}return ma=t}function ws(){if(ba)return Aa;ba=1;var e=As();function t(t){return e(this,t).has(t)}return Aa=t}function _s(){if(wa)return ya;wa=1;var e=As();function t(t,n){var r=e(this,t),i=r.size;return r.set(t,n),this.size+=r.size==i?0:1,this}return ya=t}function xs(){if(xa)return _a;xa=1;var e=ms(),t=bs(),n=ys(),r=ws(),i=_s();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,_a=o}function Es(){if(Sa)return Ea;Sa=1;var e=xs(),t="Expected a function";function n(r,i){if("function"!=typeof r||null!=i&&"function"!=typeof i)throw new TypeError(t);var o=function(){var e=arguments,t=i?i.apply(this,e):e[0],n=o.cache;if(n.has(t))return n.get(t);var a=r.apply(this,e);return o.cache=n.set(t,a)||n,a};return o.cache=new(n.Cache||e),o}return n.Cache=e,Ea=n}function Ss(){if(Ta)return Ca;Ta=1;var e=Es(),t=500;function n(n){var r=e(n,function(e){return i.size===t&&i.clear(),e}),i=r.cache;return r}return Ca=n}function Cs(){if(Oa)return ka;Oa=1;var e=Ss(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(t,function(e,t,i,o){r.push(i?o.replace(n,"$1"):t||e)}),r});return ka=r}function Ts(){if(Ia)return Ma;function e(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}return Ia=1,Ma=e}function ks(){if(Na)return Da;Na=1;var e=Xe(),t=Ts(),n=Wa(),r=nt(),i=e?e.prototype:void 0,o=i?i.toString:void 0;function a(e){if("string"==typeof e)return e;if(n(e))return t(e,a)+"";if(r(e))return o?o.call(e):"";var i=e+"";return"0"==i&&1/e==-1/0?"-0":i}return Da=a}function Os(){if(La)return Ra;La=1;var e=ks();function t(t){return null==t?"":e(t)}return Ra=t}function Ms(){if(Pa)return Ba;Pa=1;var e=Wa(),t=Ga(),n=Cs(),r=Os();function i(i,o){return e(i)?i:t(i,o)?[i]:n(r(i))}return Ba=i}function Is(){if($a)return Fa;$a=1;var e=nt();function t(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}return Fa=t}function Ds(){if(Ha)return ja;Ha=1;var e=Ms(),t=Is();function n(n,r){for(var i=0,o=(r=e(r,n)).length;null!=n&&i<o;)n=n[t(r[i++])];return i&&i==o?n:void 0}return ja=n}function Ns(){if(Qa)return Ua;Qa=1;var e=Ds();function t(t,n,r){var i=null==t?void 0:e(t,n);return void 0===i?r:i}return Ua=t}var Rs,Ls,Bs,Ps,Fs,$s,js,Hs,Us,Qs,zs,Ws,Gs=Ns(),Vs=ze(Gs);function Ks(){if(Ls)return Rs;Ls=1;var e=Za(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();return Rs=t}function Ys(){if(Ps)return Bs;Ps=1;var e=Ks();function t(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}return Bs=t}function qs(){if($s)return Fs;$s=1;var e=Ys(),t=ls(),n=Object.prototype.hasOwnProperty;function r(r,i,o){var a=r[i];n.call(r,i)&&t(a,o)&&(void 0!==o||i in r)||e(r,i,o)}return Fs=r}function Xs(){if(Hs)return js;Hs=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(n,r){var i=typeof n;return!!(r=null==r?e:r)&&("number"==i||"symbol"!=i&&t.test(n))&&n>-1&&n%1==0&&n<r}return js=n}function Js(){if(Qs)return Us;Qs=1;var e=qs(),t=Ms(),n=Xs(),r=We(),i=Is();function o(o,a,s,l){if(!r(o))return o;for(var c=-1,u=(a=t(a,o)).length,d=u-1,h=o;null!=h&&++c<u;){var f=i(a[c]),p=s;if("__proto__"===f||"constructor"===f||"prototype"===f)return o;if(c!=d){var g=h[f];void 0===(p=l?l(g,f,h):void 0)&&(p=r(g)?g:n(a[c+1])?[]:{})}e(h,f,p),h=h[f]}return o}return Us=o}function Zs(){if(Ws)return zs;Ws=1;var e=Js();function t(t,n,r){return null==t?t:e(t,n,r)}return zs=t}var el,tl,nl,rl,il=Zs(),ol=ze(il);function al(){if(tl)return el;function e(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}return tl=1,el=e}function sl(){if(rl)return nl;rl=1;var e=Ts(),t=al(),n=Wa(),r=nt(),i=Cs(),o=Is(),a=Os();function s(s){return n(s)?e(s,o):r(s)?[s]:t(i(a(s)))}return nl=s}var ll=ze(sl()),cl={data:function(e){return e=Re({},{field:"data",bindingEvent:"data",allowBinding:!1,allowSetting:!1,allowGetting:!1,settingEvent:"data",settingTriggersEvent:!1,triggerFnName:"trigger",immutableKeys:{},updateStyle:!1,beforeGet:function(e){},beforeSet:function(e,t){},onSet:function(e){},canSet:function(e){return!0}},e),function(t,n){var r=e,i=this,o=void 0!==i.length,a=o?i:[i],s=o?i[0]:i;if(ee(t)){var c,u=-1!==t.indexOf(".")&&ll(t);if(r.allowGetting&&void 0===n)return s&&(r.beforeGet(s),c=u&&void 0===s._private[r.field][t]?Vs(s._private[r.field],u):s._private[r.field][t]),c;if(r.allowSetting&&void 0!==n&&!r.immutableKeys[t]){var d=l({},t,n);r.beforeSet(i,d);for(var h=0,f=a.length;h<f;h++){var p=a[h];r.canSet(p)&&(u&&void 0===s._private[r.field][t]?ol(p._private[r.field],u,n):p._private[r.field][t]=n)}r.updateStyle&&i.updateStyle(),r.onSet(i),r.settingTriggersEvent&&i[r.triggerFnName](r.settingEvent)}}else if(r.allowSetting&&re(t)){var g,m,v=t,A=Object.keys(v);r.beforeSet(i,v);for(var b=0;b<A.length;b++)if(m=v[g=A[b]],!r.immutableKeys[g])for(var y=0;y<a.length;y++){var w=a[y];r.canSet(w)&&(w._private[r.field][g]=m)}r.updateStyle&&i.updateStyle(),r.onSet(i),r.settingTriggersEvent&&i[r.triggerFnName](r.settingEvent)}else if(r.allowBinding&&te(t)){var _=t;i.on(r.bindingEvent,_)}else if(r.allowGetting&&void 0===t){var x;return s&&(r.beforeGet(s),x=s._private[r.field]),x}return i}},removeData:function(e){return e=Re({},{field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!1,immutableKeys:{}},e),function(t){var n=e,r=this,i=void 0!==r.length?r:[r];if(ee(t)){for(var o=t.split(/\s+/),a=o.length,s=0;s<a;s++){var l=o[s];if(!pe(l)&&!n.immutableKeys[l])for(var c=0,u=i.length;c<u;c++)i[c]._private[n.field][l]=void 0}n.triggerEvent&&r[n.triggerFnName](n.event)}else if(void 0===t){for(var d=0,h=i.length;d<h;d++)for(var f=i[d]._private[n.field],p=Object.keys(f),g=0;g<p.length;g++){var m=p[g];!n.immutableKeys[m]&&(f[m]=void 0)}n.triggerEvent&&r[n.triggerFnName](n.event)}return r}}},ul={eventAliasesOn:function(e){var t=e;t.addListener=t.listen=t.bind=t.on,t.unlisten=t.unbind=t.off=t.removeListener,t.trigger=t.emit,t.pon=t.promiseOn=function(e,t){var n=this,r=Array.prototype.slice.call(arguments,0);return new lo(function(e,t){var i=function(t){n.off.apply(n,a),e(t)},o=r.concat([i]),a=o.concat([]);n.on.apply(n,o)})}}},dl={};[za,cl,ul].forEach(function(e){Re(dl,e)});var hl={animate:dl.animate(),animation:dl.animation(),animated:dl.animated(),clearQueue:dl.clearQueue(),delay:dl.delay(),delayAnimation:dl.delayAnimation(),stop:dl.stop()},fl={classes:function(e){var t=this;if(void 0===e){var n=[];return t[0]._private.classes.forEach(function(e){return n.push(e)}),n}ne(e)||(e=(e||"").match(/\S+/g)||[]);for(var r=[],i=new Jt(e),o=0;o<t.length;o++){for(var a=t[o],s=a._private,l=s.classes,c=!1,u=0;u<e.length;u++){var d=e[u];if(!l.has(d)){c=!0;break}}c||(c=l.size!==e.length),c&&(s.classes=i,r.push(a))}return r.length>0&&this.spawn(r).updateStyle().emit("class"),t},addClass:function(e){return this.toggleClass(e,!0)},hasClass:function(e){var t=this[0];return null!=t&&t._private.classes.has(e)},toggleClass:function(e,t){ne(e)||(e=e.match(/\S+/g)||[]);for(var n=this,r=void 0===t,i=[],o=0,a=n.length;o<a;o++)for(var s=n[o],l=s._private.classes,c=!1,u=0;u<e.length;u++){var d=e[u],h=l.has(d),f=!1;t||r&&!h?(l.add(d),f=!0):(!t||r&&h)&&(l.delete(d),f=!0),!c&&f&&(i.push(s),c=!0)}return i.length>0&&this.spawn(i).updateStyle().emit("class"),n},removeClass:function(e){return this.toggleClass(e,!1)},flashClass:function(e,t){var n=this;if(null==t)t=250;else if(0===t)return n;return n.addClass(e),setTimeout(function(){n.removeClass(e)},t),n}};fl.className=fl.classNames=fl.classes;var pl={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:"\"(?:\\\\\"|[^\"])*\"|'(?:\\\\'|[^'])*'",number:Se,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};pl.variable="(?:[\\w-.]|(?:\\\\"+pl.metaChar+"))+",pl.className="(?:[\\w-]|(?:\\\\"+pl.metaChar+"))+",pl.value=pl.string+"|"+pl.number,pl.id=pl.variable,function(){var e,t,n;for(e=pl.comparatorOp.split("|"),n=0;n<e.length;n++)t=e[n],pl.comparatorOp+="|@"+t;for(e=pl.comparatorOp.split("|"),n=0;n<e.length;n++)(t=e[n]).indexOf("!")>=0||"="!==t&&(pl.comparatorOp+="|\\!"+t)}();var gl=function(){return{checks:[]}},ml={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},vl=[{selector:":selected",matches:function(e){return e.selected()}},{selector:":unselected",matches:function(e){return!e.selected()}},{selector:":selectable",matches:function(e){return e.selectable()}},{selector:":unselectable",matches:function(e){return!e.selectable()}},{selector:":locked",matches:function(e){return e.locked()}},{selector:":unlocked",matches:function(e){return!e.locked()}},{selector:":visible",matches:function(e){return e.visible()}},{selector:":hidden",matches:function(e){return!e.visible()}},{selector:":transparent",matches:function(e){return e.transparent()}},{selector:":grabbed",matches:function(e){return e.grabbed()}},{selector:":free",matches:function(e){return!e.grabbed()}},{selector:":removed",matches:function(e){return e.removed()}},{selector:":inside",matches:function(e){return!e.removed()}},{selector:":grabbable",matches:function(e){return e.grabbable()}},{selector:":ungrabbable",matches:function(e){return!e.grabbable()}},{selector:":animated",matches:function(e){return e.animated()}},{selector:":unanimated",matches:function(e){return!e.animated()}},{selector:":parent",matches:function(e){return e.isParent()}},{selector:":childless",matches:function(e){return e.isChildless()}},{selector:":child",matches:function(e){return e.isChild()}},{selector:":orphan",matches:function(e){return e.isOrphan()}},{selector:":nonorphan",matches:function(e){return e.isChild()}},{selector:":compound",matches:function(e){return e.isNode()?e.isParent():e.source().isParent()||e.target().isParent()}},{selector:":loop",matches:function(e){return e.isLoop()}},{selector:":simple",matches:function(e){return e.isSimple()}},{selector:":active",matches:function(e){return e.active()}},{selector:":inactive",matches:function(e){return!e.active()}},{selector:":backgrounding",matches:function(e){return e.backgrounding()}},{selector:":nonbackgrounding",matches:function(e){return!e.backgrounding()}}].sort(function(e,t){return Ne(e.selector,t.selector)}),Al=function(){for(var e,t={},n=0;n<vl.length;n++)t[(e=vl[n]).selector]=e.matches;return t}(),bl=function(e,t){return Al[e](t)},yl="("+vl.map(function(e){return e.selector}).join("|")+")",wl=function(e){return e.replace(new RegExp("\\\\("+pl.metaChar+")","g"),function(e,t){return t})},_l=function(e,t,n){e[e.length-1]=n},xl=[{name:"group",query:!0,regex:"("+pl.group+")",populate:function(e,t,n){var r=f(n,1)[0];t.checks.push({type:ml.GROUP,value:"*"===r?r:r+"s"})}},{name:"state",query:!0,regex:yl,populate:function(e,t,n){var r=f(n,1)[0];t.checks.push({type:ml.STATE,value:r})}},{name:"id",query:!0,regex:"\\#("+pl.id+")",populate:function(e,t,n){var r=f(n,1)[0];t.checks.push({type:ml.ID,value:wl(r)})}},{name:"className",query:!0,regex:"\\.("+pl.className+")",populate:function(e,t,n){var r=f(n,1)[0];t.checks.push({type:ml.CLASS,value:wl(r)})}},{name:"dataExists",query:!0,regex:"\\[\\s*("+pl.variable+")\\s*\\]",populate:function(e,t,n){var r=f(n,1)[0];t.checks.push({type:ml.DATA_EXIST,field:wl(r)})}},{name:"dataCompare",query:!0,regex:"\\[\\s*("+pl.variable+")\\s*("+pl.comparatorOp+")\\s*("+pl.value+")\\s*\\]",populate:function(e,t,n){var r=f(n,3),i=r[0],o=r[1],a=r[2];a=null!=new RegExp("^"+pl.string+"$").exec(a)?a.substring(1,a.length-1):parseFloat(a),t.checks.push({type:ml.DATA_COMPARE,field:wl(i),operator:o,value:a})}},{name:"dataBool",query:!0,regex:"\\[\\s*("+pl.boolOp+")\\s*("+pl.variable+")\\s*\\]",populate:function(e,t,n){var r=f(n,2),i=r[0],o=r[1];t.checks.push({type:ml.DATA_BOOL,field:wl(o),operator:i})}},{name:"metaCompare",query:!0,regex:"\\[\\[\\s*("+pl.meta+")\\s*("+pl.comparatorOp+")\\s*("+pl.number+")\\s*\\]\\]",populate:function(e,t,n){var r=f(n,3),i=r[0],o=r[1],a=r[2];t.checks.push({type:ml.META_COMPARE,field:wl(i),operator:o,value:parseFloat(a)})}},{name:"nextQuery",separator:!0,regex:pl.separator,populate:function(e,t){var n=e.currentSubject,r=e.edgeCount,i=e.compoundCount,o=e[e.length-1];return null!=n&&(o.subject=n,e.currentSubject=null),o.edgeCount=r,o.compoundCount=i,e.edgeCount=0,e.compoundCount=0,e[e.length++]=gl()}},{name:"directedEdge",separator:!0,regex:pl.directedEdge,populate:function(e,t){if(null==e.currentSubject){var n=gl(),r=t,i=gl();return n.checks.push({type:ml.DIRECTED_EDGE,source:r,target:i}),_l(e,t,n),e.edgeCount++,i}var o=gl(),a=t,s=gl();return o.checks.push({type:ml.NODE_SOURCE,source:a,target:s}),_l(e,t,o),e.edgeCount++,s}},{name:"undirectedEdge",separator:!0,regex:pl.undirectedEdge,populate:function(e,t){if(null==e.currentSubject){var n=gl(),r=t,i=gl();return n.checks.push({type:ml.UNDIRECTED_EDGE,nodes:[r,i]}),_l(e,t,n),e.edgeCount++,i}var o=gl(),a=t,s=gl();return o.checks.push({type:ml.NODE_NEIGHBOR,node:a,neighbor:s}),_l(e,t,o),s}},{name:"child",separator:!0,regex:pl.child,populate:function(e,t){if(null==e.currentSubject){var n=gl(),r=gl(),i=e[e.length-1];return n.checks.push({type:ml.CHILD,parent:i,child:r}),_l(e,t,n),e.compoundCount++,r}if(e.currentSubject===t){var o=gl(),a=e[e.length-1],s=gl(),l=gl(),c=gl(),u=gl();return o.checks.push({type:ml.COMPOUND_SPLIT,left:a,right:s,subject:l}),l.checks=t.checks,t.checks=[{type:ml.TRUE}],u.checks.push({type:ml.TRUE}),s.checks.push({type:ml.PARENT,parent:u,child:c}),_l(e,a,o),e.currentSubject=l,e.compoundCount++,c}var d=gl(),h=gl(),f=[{type:ml.PARENT,parent:d,child:h}];return d.checks=t.checks,t.checks=f,e.compoundCount++,h}},{name:"descendant",separator:!0,regex:pl.descendant,populate:function(e,t){if(null==e.currentSubject){var n=gl(),r=gl(),i=e[e.length-1];return n.checks.push({type:ml.DESCENDANT,ancestor:i,descendant:r}),_l(e,t,n),e.compoundCount++,r}if(e.currentSubject===t){var o=gl(),a=e[e.length-1],s=gl(),l=gl(),c=gl(),u=gl();return o.checks.push({type:ml.COMPOUND_SPLIT,left:a,right:s,subject:l}),l.checks=t.checks,t.checks=[{type:ml.TRUE}],u.checks.push({type:ml.TRUE}),s.checks.push({type:ml.ANCESTOR,ancestor:u,descendant:c}),_l(e,a,o),e.currentSubject=l,e.compoundCount++,c}var d=gl(),h=gl(),f=[{type:ml.ANCESTOR,ancestor:d,descendant:h}];return d.checks=t.checks,t.checks=f,e.compoundCount++,h}},{name:"subject",modifier:!0,regex:pl.subject,populate:function(e,t){if(null!=e.currentSubject&&e.currentSubject!==t)return Lt("Redefinition of subject in selector `"+e.toString()+"`"),!1;e.currentSubject=t;var n=e[e.length-1].checks[0],r=null==n?null:n.type;r===ml.DIRECTED_EDGE?n.type=ml.NODE_TARGET:r===ml.UNDIRECTED_EDGE&&(n.type=ml.NODE_NEIGHBOR,n.node=n.nodes[1],n.neighbor=n.nodes[0],n.nodes=null)}}];xl.forEach(function(e){return e.regexObj=new RegExp("^"+e.regex)});var El=function(e){for(var t,n,r,i=0;i<xl.length;i++){var o=xl[i],a=o.name,s=e.match(o.regexObj);if(null!=s){n=s,t=o,r=a;var l=s[0];e=e.substring(l.length);break}}return{expr:t,match:n,name:r,remaining:e}},Sl=function(e){var t=e.match(/^\s+/);if(t){var n=t[0];e=e.substring(n.length)}return e},Cl=function(e){var t=this,n=t.inputText=e,r=t[0]=gl();for(t.length=1,n=Sl(n);;){var i=El(n);if(null==i.expr)return Lt("The selector `"+e+"`is invalid"),!1;var o=i.match.slice(1),a=i.expr.populate(t,r,o);if(!1===a)return!1;if(null!=a&&(r=a),(n=i.remaining).match(/^\s*$/))break}var s=t[t.length-1];null!=t.currentSubject&&(s.subject=t.currentSubject),s.edgeCount=t.edgeCount,s.compoundCount=t.compoundCount;for(var l=0;l<t.length;l++){var c=t[l];if(c.compoundCount>0&&c.edgeCount>0)return Lt("The selector `"+e+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(c.edgeCount>1)return Lt("The selector `"+e+"` is invalid because it uses multiple edge selectors"),!1;1===c.edgeCount&&Lt("The selector `"+e+"` is deprecated.  Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons.  Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},Tl=function(){if(null!=this.toStringCache)return this.toStringCache;for(var e=function(e){return null==e?"":e},t=function(t){return ee(t)?'"'+t+'"':e(t)},n=function(e){return" "+e+" "},r=function(r,o){var a=r.type,s=r.value;switch(a){case ml.GROUP:var l=e(s);return l.substring(0,l.length-1);case ml.DATA_COMPARE:var c=r.field,u=r.operator;return"["+c+n(e(u))+t(s)+"]";case ml.DATA_BOOL:var d=r.operator,h=r.field;return"["+e(d)+h+"]";case ml.DATA_EXIST:return"["+r.field+"]";case ml.META_COMPARE:var f=r.operator;return"[["+r.field+n(e(f))+t(s)+"]]";case ml.STATE:return s;case ml.ID:return"#"+s;case ml.CLASS:return"."+s;case ml.PARENT:case ml.CHILD:return i(r.parent,o)+n(">")+i(r.child,o);case ml.ANCESTOR:case ml.DESCENDANT:return i(r.ancestor,o)+" "+i(r.descendant,o);case ml.COMPOUND_SPLIT:var p=i(r.left,o),g=i(r.subject,o),m=i(r.right,o);return p+(p.length>0?" ":"")+g+m;case ml.TRUE:return""}},i=function(e,t){return e.checks.reduce(function(n,i,o){return n+(t===e&&0===o?"$":"")+r(i,t)},"")},o="",a=0;a<this.length;a++){var s=this[a];o+=i(s,s.subject),this.length>1&&a<this.length-1&&(o+=", ")}return this.toStringCache=o,o},kl={parse:Cl,toString:Tl},Ol=function(e,t,n){var r,i,o,a=ee(e),s=oe(e),l=ee(n),c=!1,u=!1,d=!1;switch(t.indexOf("!")>=0&&(t=t.replace("!",""),u=!0),t.indexOf("@")>=0&&(t=t.replace("@",""),c=!0),(a||l||c)&&(i=a||s?""+e:"",o=""+n),c&&(e=i=i.toLowerCase(),n=o=o.toLowerCase()),t){case"*=":r=i.indexOf(o)>=0;break;case"$=":r=i.indexOf(o,i.length-o.length)>=0;break;case"^=":r=0===i.indexOf(o);break;case"=":r=e===n;break;case">":d=!0,r=e>n;break;case">=":d=!0,r=e>=n;break;case"<":d=!0,r=e<n;break;case"<=":d=!0,r=e<=n;break;default:r=!1}return!u||null==e&&d||(r=!r),r},Ml=function(e,t){switch(t){case"?":return!!e;case"!":return!e;case"^":return void 0===e}},Il=function(e){return void 0!==e},Dl=function(e,t){return e.data(t)},Nl=function(e,t){return e[t]()},Rl=[],Ll=function(e,t){return e.checks.every(function(e){return Rl[e.type](e,t)})};Rl[ml.GROUP]=function(e,t){var n=e.value;return"*"===n||n===t.group()},Rl[ml.STATE]=function(e,t){var n=e.value;return bl(n,t)},Rl[ml.ID]=function(e,t){var n=e.value;return t.id()===n},Rl[ml.CLASS]=function(e,t){var n=e.value;return t.hasClass(n)},Rl[ml.META_COMPARE]=function(e,t){var n=e.field,r=e.operator,i=e.value;return Ol(Nl(t,n),r,i)},Rl[ml.DATA_COMPARE]=function(e,t){var n=e.field,r=e.operator,i=e.value;return Ol(Dl(t,n),r,i)},Rl[ml.DATA_BOOL]=function(e,t){var n=e.field,r=e.operator;return Ml(Dl(t,n),r)},Rl[ml.DATA_EXIST]=function(e,t){var n=e.field;return e.operator,Il(Dl(t,n))},Rl[ml.UNDIRECTED_EDGE]=function(e,t){var n=e.nodes[0],r=e.nodes[1],i=t.source(),o=t.target();return Ll(n,i)&&Ll(r,o)||Ll(r,i)&&Ll(n,o)},Rl[ml.NODE_NEIGHBOR]=function(e,t){return Ll(e.node,t)&&t.neighborhood().some(function(t){return t.isNode()&&Ll(e.neighbor,t)})},Rl[ml.DIRECTED_EDGE]=function(e,t){return Ll(e.source,t.source())&&Ll(e.target,t.target())},Rl[ml.NODE_SOURCE]=function(e,t){return Ll(e.source,t)&&t.outgoers().some(function(t){return t.isNode()&&Ll(e.target,t)})},Rl[ml.NODE_TARGET]=function(e,t){return Ll(e.target,t)&&t.incomers().some(function(t){return t.isNode()&&Ll(e.source,t)})},Rl[ml.CHILD]=function(e,t){return Ll(e.child,t)&&Ll(e.parent,t.parent())},Rl[ml.PARENT]=function(e,t){return Ll(e.parent,t)&&t.children().some(function(t){return Ll(e.child,t)})},Rl[ml.DESCENDANT]=function(e,t){return Ll(e.descendant,t)&&t.ancestors().some(function(t){return Ll(e.ancestor,t)})},Rl[ml.ANCESTOR]=function(e,t){return Ll(e.ancestor,t)&&t.descendants().some(function(t){return Ll(e.descendant,t)})},Rl[ml.COMPOUND_SPLIT]=function(e,t){return Ll(e.subject,t)&&Ll(e.left,t)&&Ll(e.right,t)},Rl[ml.TRUE]=function(){return!0},Rl[ml.COLLECTION]=function(e,t){return e.value.has(t)},Rl[ml.FILTER]=function(e,t){return(0,e.value)(t)};var Bl=function(e){var t=this;if(1===t.length&&1===t[0].checks.length&&t[0].checks[0].type===ml.ID)return e.getElementById(t[0].checks[0].value).collection();var n=function(e){for(var n=0;n<t.length;n++){var r=t[n];if(Ll(r,e))return!0}return!1};return null==t.text()&&(n=function(){return!0}),e.filter(n)},Pl={matches:function(e){for(var t=this,n=0;n<t.length;n++){var r=t[n];if(Ll(r,e))return!0}return!1},filter:Bl},Fl=function(e){this.inputText=e,this.currentSubject=null,this.compoundCount=0,this.edgeCount=0,this.length=0,null==e||ee(e)&&e.match(/^\s*$/)||(le(e)?this.addQuery({checks:[{type:ml.COLLECTION,value:e.collection()}]}):te(e)?this.addQuery({checks:[{type:ml.FILTER,value:e}]}):ee(e)?this.parse(e)||(this.invalid=!0):Nt("A selector must be created from a string; found "))},$l=Fl.prototype;[kl,Pl].forEach(function(e){return Re($l,e)}),$l.text=function(){return this.inputText},$l.size=function(){return this.length},$l.eq=function(e){return this[e]},$l.sameText=function(e){return!this.invalid&&!e.invalid&&this.text()===e.text()},$l.addQuery=function(e){this[this.length++]=e},$l.selector=$l.toString;var jl={allAre:function(e){var t=new Fl(e);return this.every(function(e){return t.matches(e)})},is:function(e){var t=new Fl(e);return this.some(function(e){return t.matches(e)})},some:function(e,t){for(var n=0;n<this.length;n++)if(t?e.apply(t,[this[n],n,this]):e(this[n],n,this))return!0;return!1},every:function(e,t){for(var n=0;n<this.length;n++)if(!(t?e.apply(t,[this[n],n,this]):e(this[n],n,this)))return!1;return!0},same:function(e){if(this===e)return!0;e=this.cy().collection(e);var t=this.length;return t===e.length&&(1===t?this[0]===e[0]:this.every(function(t){return e.hasElementWithId(t.id())}))},anySame:function(e){return e=this.cy().collection(e),this.some(function(t){return e.hasElementWithId(t.id())})},allAreNeighbors:function(e){e=this.cy().collection(e);var t=this.neighborhood();return e.every(function(e){return t.hasElementWithId(e.id())})},contains:function(e){e=this.cy().collection(e);var t=this;return e.every(function(e){return t.hasElementWithId(e.id())})}};jl.allAreNeighbours=jl.allAreNeighbors,jl.has=jl.contains,jl.equal=jl.equals=jl.same;var Hl,Ul,Ql=function(e,t){return function(n,r,i,o){var a,s=n,l=this;if(null==s?a="":le(s)&&1===s.length&&(a=s.id()),1===l.length&&a){var c=l[0]._private,u=c.traversalCache=c.traversalCache||{},d=u[t]=u[t]||[],h=_t(a),f=d[h];return f||(d[h]=e.call(l,n,r,i,o))}return e.call(l,n,r,i,o)}},zl={parent:function(e){var t=[];if(1===this.length){var n=this[0]._private.parent;if(n)return n}for(var r=0;r<this.length;r++){var i=this[r]._private.parent;i&&t.push(i)}return this.spawn(t,!0).filter(e)},parents:function(e){for(var t=[],n=this.parent();n.nonempty();){for(var r=0;r<n.length;r++){var i=n[r];t.push(i)}n=n.parent()}return this.spawn(t,!0).filter(e)},commonAncestors:function(e){for(var t,n=0;n<this.length;n++){var r=this[n].parents();t=(t=t||r).intersect(r)}return t.filter(e)},orphans:function(e){return this.stdFilter(function(e){return e.isOrphan()}).filter(e)},nonorphans:function(e){return this.stdFilter(function(e){return e.isChild()}).filter(e)},children:Ql(function(e){for(var t=[],n=0;n<this.length;n++)for(var r=this[n]._private.children,i=0;i<r.length;i++)t.push(r[i]);return this.spawn(t,!0).filter(e)},"children"),siblings:function(e){return this.parent().children().not(this).filter(e)},isParent:function(){var e=this[0];if(e)return e.isNode()&&0!==e._private.children.length},isChildless:function(){var e=this[0];if(e)return e.isNode()&&0===e._private.children.length},isChild:function(){var e=this[0];if(e)return e.isNode()&&null!=e._private.parent},isOrphan:function(){var e=this[0];if(e)return e.isNode()&&null==e._private.parent},descendants:function(e){var t=[];function n(e){for(var r=0;r<e.length;r++){var i=e[r];t.push(i),i.children().nonempty()&&n(i.children())}}return n(this.children()),this.spawn(t,!0).filter(e)}};function Wl(e,t,n,r){for(var i=[],o=new Jt,a=e.cy().hasCompoundNodes(),s=0;s<e.length;s++){var l=e[s];n?i.push(l):a&&r(i,o,l)}for(;i.length>0;){var c=i.shift();t(c),o.add(c.id()),a&&r(i,o,c)}return e}function Gl(e,t,n){if(n.isParent())for(var r=n._private.children,i=0;i<r.length;i++){var o=r[i];t.has(o.id())||e.push(o)}}function Vl(e,t,n){if(n.isChild()){var r=n._private.parent;t.has(r.id())||e.push(r)}}function Kl(e,t,n){Vl(e,t,n),Gl(e,t,n)}zl.forEachDown=function(e){return Wl(this,e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Gl)},zl.forEachUp=function(e){return Wl(this,e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Vl)},zl.forEachUpAndDown=function(e){return Wl(this,e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],Kl)},zl.ancestors=zl.parents,(Hl=Ul={data:dl.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:dl.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:dl.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:dl.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:dl.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:dl.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var e=this[0];if(e)return e._private.data.id}}).attr=Hl.data,Hl.removeAttr=Hl.removeData;var Yl,ql,Xl=Ul,Jl={};function Zl(e){return function(t){var n=this;if(void 0===t&&(t=!0),0!==n.length&&n.isNode()&&!n.removed()){for(var r=0,i=n[0],o=i._private.edges,a=0;a<o.length;a++){var s=o[a];!t&&s.isLoop()||(r+=e(i,s))}return r}}}function ec(e,t){return function(n){for(var r,i=this.nodes(),o=0;o<i.length;o++){var a=i[o][e](n);void 0===a||void 0!==r&&!t(a,r)||(r=a)}return r}}Re(Jl,{degree:Zl(function(e,t){return t.source().same(t.target())?2:1}),indegree:Zl(function(e,t){return t.target().same(e)?1:0}),outdegree:Zl(function(e,t){return t.source().same(e)?1:0})}),Re(Jl,{minDegree:ec("degree",function(e,t){return e<t}),maxDegree:ec("degree",function(e,t){return e>t}),minIndegree:ec("indegree",function(e,t){return e<t}),maxIndegree:ec("indegree",function(e,t){return e>t}),minOutdegree:ec("outdegree",function(e,t){return e<t}),maxOutdegree:ec("outdegree",function(e,t){return e>t})}),Re(Jl,{totalDegree:function(e){for(var t=0,n=this.nodes(),r=0;r<n.length;r++)t+=n[r].degree(e);return t}});var tc=function(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];if(!i.locked()){var o=i._private.position,a={x:null!=t.x?t.x-o.x:0,y:null!=t.y?t.y-o.y:0};!i.isParent()||0===a.x&&0===a.y||i.children().shift(a,n),i.dirtyBoundingBoxCache()}}},nc={field:"position",bindingEvent:"position",allowBinding:!0,allowSetting:!0,settingEvent:"position",settingTriggersEvent:!0,triggerFnName:"emitAndNotify",allowGetting:!0,validKeys:["x","y"],beforeGet:function(e){e.updateCompoundBounds()},beforeSet:function(e,t){tc(e,t,!1)},onSet:function(e){e.dirtyCompoundBoundsCache()},canSet:function(e){return!e.locked()}};Yl=ql={position:dl.data(nc),silentPosition:dl.data(Re({},nc,{allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!1,beforeSet:function(e,t){tc(e,t,!0)},onSet:function(e){e.dirtyCompoundBoundsCache()}})),positions:function(e,t){if(re(e))t?this.silentPosition(e):this.position(e);else if(te(e)){var n=e,r=this.cy();r.startBatch();for(var i=0;i<this.length;i++){var o=this[i],a=void 0;(a=n(o,i))&&(t?o.silentPosition(a):o.position(a))}r.endBatch()}return this},silentPositions:function(e){return this.positions(e,!0)},shift:function(e,t,n){var r;if(re(e)?(r={x:oe(e.x)?e.x:0,y:oe(e.y)?e.y:0},n=t):ee(e)&&oe(t)&&((r={x:0,y:0})[e]=t),null!=r){var i=this.cy();i.startBatch();for(var o=0;o<this.length;o++){var a=this[o];if(!(i.hasCompoundNodes()&&a.isChild()&&a.ancestors().anySame(this))){var s=a.position(),l={x:s.x+r.x,y:s.y+r.y};n?a.silentPosition(l):a.position(l)}}i.endBatch()}return this},silentShift:function(e,t){return re(e)?this.shift(e,!0):ee(e)&&oe(t)&&this.shift(e,t,!0),this},renderedPosition:function(e,t){var n=this[0],r=this.cy(),i=r.zoom(),o=r.pan(),a=re(e)?e:void 0,s=void 0!==a||void 0!==t&&ee(e);if(n&&n.isNode()){if(!s){var l=n.position();return a=Cn(l,i,o),void 0===e?a:a[e]}for(var c=0;c<this.length;c++){var u=this[c];void 0!==t?u.position(e,(t-o[e])/i):void 0!==a&&u.position(Tn(a,i,o))}}else if(!s)return;return this},relativePosition:function(e,t){var n=this[0],r=this.cy(),i=re(e)?e:void 0,o=void 0!==i||void 0!==t&&ee(e),a=r.hasCompoundNodes();if(n&&n.isNode()){if(!o){var s=n.position(),l=a?n.parent():null,c=l&&l.length>0,u=c;c&&(l=l[0]);var d=u?l.position():{x:0,y:0};return i={x:s.x-d.x,y:s.y-d.y},void 0===e?i:i[e]}for(var h=0;h<this.length;h++){var f=this[h],p=a?f.parent():null,g=p&&p.length>0,m=g;g&&(p=p[0]);var v=m?p.position():{x:0,y:0};void 0!==t?f.position(e,t+v[e]):void 0!==i&&f.position({x:i.x+v.x,y:i.y+v.y})}}else if(!o)return;return this}},Yl.modelPosition=Yl.point=Yl.position,Yl.modelPositions=Yl.points=Yl.positions,Yl.renderedPoint=Yl.renderedPosition,Yl.relativePoint=Yl.relativePosition;var rc,ic,oc=ql;rc=ic={},ic.renderedBoundingBox=function(e){var t=this.boundingBox(e),n=this.cy(),r=n.zoom(),i=n.pan(),o=t.x1*r+i.x,a=t.x2*r+i.x,s=t.y1*r+i.y,l=t.y2*r+i.y;return{x1:o,x2:a,y1:s,y2:l,w:a-o,h:l-s}},ic.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.cy();return t.styleEnabled()&&t.hasCompoundNodes()?(this.forEachUp(function(t){if(t.isParent()){var n=t._private;n.compoundBoundsClean=!1,n.bbCache=null,e||t.emitAndNotify("bounds")}}),this):this},ic.updateCompoundBounds=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.cy();if(!t.styleEnabled()||!t.hasCompoundNodes())return this;if(!e&&t.batching())return this;function n(e){if(e.isParent()){var t=e._private,n=e.children(),r="include"===e.pstyle("compound-sizing-wrt-labels").value,i={width:{val:e.pstyle("min-width").pfValue,left:e.pstyle("min-width-bias-left"),right:e.pstyle("min-width-bias-right")},height:{val:e.pstyle("min-height").pfValue,top:e.pstyle("min-height-bias-top"),bottom:e.pstyle("min-height-bias-bottom")}},o=n.boundingBox({includeLabels:r,includeOverlays:!1,useCache:!1}),a=t.position;0!==o.w&&0!==o.h||((o={w:e.pstyle("width").pfValue,h:e.pstyle("height").pfValue}).x1=a.x-o.w/2,o.x2=a.x+o.w/2,o.y1=a.y-o.h/2,o.y2=a.y+o.h/2);var s=i.width.left.value;"px"===i.width.left.units&&i.width.val>0&&(s=100*s/i.width.val);var l=i.width.right.value;"px"===i.width.right.units&&i.width.val>0&&(l=100*l/i.width.val);var c=i.height.top.value;"px"===i.height.top.units&&i.height.val>0&&(c=100*c/i.height.val);var u=i.height.bottom.value;"px"===i.height.bottom.units&&i.height.val>0&&(u=100*u/i.height.val);var d=v(i.width.val-o.w,s,l),h=d.biasDiff,f=d.biasComplementDiff,p=v(i.height.val-o.h,c,u),g=p.biasDiff,m=p.biasComplementDiff;t.autoPadding=A(o.w,o.h,e.pstyle("padding"),e.pstyle("padding-relative-to").value),t.autoWidth=Math.max(o.w,i.width.val),a.x=(-h+o.x1+o.x2+f)/2,t.autoHeight=Math.max(o.h,i.height.val),a.y=(-g+o.y1+o.y2+m)/2}function v(e,t,n){var r=0,i=0,o=t+n;return e>0&&o>0&&(r=t/o*e,i=n/o*e),{biasDiff:r,biasComplementDiff:i}}function A(e,t,n,r){if("%"!==n.units)return"px"===n.units?n.pfValue:0;switch(r){case"width":return e>0?n.pfValue*e:0;case"height":return t>0?n.pfValue*t:0;case"average":return e>0&&t>0?n.pfValue*(e+t)/2:0;case"min":return e>0&&t>0?e>t?n.pfValue*t:n.pfValue*e:0;case"max":return e>0&&t>0?e>t?n.pfValue*e:n.pfValue*t:0;default:return 0}}}for(var r=0;r<this.length;r++){var i=this[r],o=i._private;o.compoundBoundsClean&&!e||(n(i),t.batching()||(o.compoundBoundsClean=!0))}return this};var ac=function(e){return e===1/0||e===-1/0?0:e},sc=function(e,t,n,r,i){r-t!=0&&i-n!=0&&null!=t&&null!=n&&null!=r&&null!=i&&(e.x1=t<e.x1?t:e.x1,e.x2=r>e.x2?r:e.x2,e.y1=n<e.y1?n:e.y1,e.y2=i>e.y2?i:e.y2,e.w=e.x2-e.x1,e.h=e.y2-e.y1)},lc=function(e,t){return null==t?e:sc(e,t.x1,t.y1,t.x2,t.y2)},cc=function(e,t,n){return Gt(e,t,n)},uc=function(e,t,n){if(!t.cy().headless()){var r,i,o=t._private,a=o.rstyle,s=a.arrowWidth/2;if("none"!==t.pstyle(n+"-arrow-shape").value){"source"===n?(r=a.srcX,i=a.srcY):"target"===n?(r=a.tgtX,i=a.tgtY):(r=a.midX,i=a.midY);var l=o.arrowBounds=o.arrowBounds||{},c=l[n]=l[n]||{};c.x1=r-s,c.y1=i-s,c.x2=r+s,c.y2=i+s,c.w=c.x2-c.x1,c.h=c.y2-c.y1,Yn(c,1),sc(e,c.x1,c.y1,c.x2,c.y2)}}},dc=function(e,t,n){if(!t.cy().headless()){var r;r=n?n+"-":"";var i=t._private,o=i.rstyle;if(t.pstyle(r+"label").strValue){var a,s,l,c,u=t.pstyle("text-halign"),d=t.pstyle("text-valign"),h=cc(o,"labelWidth",n),f=cc(o,"labelHeight",n),p=cc(o,"labelX",n),g=cc(o,"labelY",n),m=t.pstyle(r+"text-margin-x").pfValue,v=t.pstyle(r+"text-margin-y").pfValue,A=t.isEdge(),b=t.pstyle(r+"text-rotation"),y=t.pstyle("text-outline-width").pfValue,w=t.pstyle("text-border-width").pfValue/2,_=t.pstyle("text-background-padding").pfValue,x=2,E=f,S=h,C=S/2,T=E/2;if(A)a=p-C,s=p+C,l=g-T,c=g+T;else{switch(u.value){case"left":a=p-S,s=p;break;case"center":a=p-C,s=p+C;break;case"right":a=p,s=p+S}switch(d.value){case"top":l=g-E,c=g;break;case"center":l=g-T,c=g+T;break;case"bottom":l=g,c=g+E}}var k=m-Math.max(y,w)-_-x,O=m+Math.max(y,w)+_+x,M=v-Math.max(y,w)-_-x,I=v+Math.max(y,w)+_+x;a+=k,s+=O,l+=M,c+=I;var D=n||"main",N=i.labelBounds,R=N[D]=N[D]||{};R.x1=a,R.y1=l,R.x2=s,R.y2=c,R.w=s-a,R.h=c-l,R.leftPad=k,R.rightPad=O,R.topPad=M,R.botPad=I;var L=A&&"autorotate"===b.strValue,B=null!=b.pfValue&&0!==b.pfValue;if(L||B){var P=L?cc(i.rstyle,"labelAngle",n):b.pfValue,F=Math.cos(P),$=Math.sin(P),j=(a+s)/2,H=(l+c)/2;if(!A){switch(u.value){case"left":j=s;break;case"right":j=a}switch(d.value){case"top":H=c;break;case"bottom":H=l}}var U=function(e,t){return{x:(e-=j)*F-(t-=H)*$+j,y:e*$+t*F+H}},Q=U(a,l),z=U(a,c),W=U(s,l),G=U(s,c);a=Math.min(Q.x,z.x,W.x,G.x),s=Math.max(Q.x,z.x,W.x,G.x),l=Math.min(Q.y,z.y,W.y,G.y),c=Math.max(Q.y,z.y,W.y,G.y)}var V=D+"Rot",K=N[V]=N[V]||{};K.x1=a,K.y1=l,K.x2=s,K.y2=c,K.w=s-a,K.h=c-l,sc(e,a,l,s,c),sc(i.labelBounds.all,a,l,s,c)}return e}},hc=function(e,t){if(!t.cy().headless()){var n=t.pstyle("outline-opacity").value,r=t.pstyle("outline-width").value+t.pstyle("outline-offset").value;fc(e,t,n,r,"outside",r/2)}},fc=function(e,t,n,r,i,o){if(!(0===n||r<=0||"inside"===i)){var a=t.cy(),s=t.pstyle("shape").value,l=a.renderer().nodeShapes[s],c=t.position(),u=c.x,d=c.y,h=t.width(),f=t.height();if(l.hasMiterBounds){"center"===i&&(r/=2);var p=l.miterBounds(u,d,h,f,r);lc(e,p)}else null!=o&&o>0&&qn(e,[o,o,o,o])}},pc=function(e,t){if(!t.cy().headless()){var n=t.pstyle("border-opacity").value,r=t.pstyle("border-width").pfValue,i=t.pstyle("border-position").value;fc(e,t,n,r,i)}},gc=function(e,t){var n,r,i,o,a,s,l=e._private.cy,c=l.styleEnabled(),u=l.headless(),d=zn(),h=e._private,f=e.isNode(),p=e.isEdge(),g=h.rstyle,m=f&&c?e.pstyle("bounds-expansion").pfValue:[0],v=function(e){return"none"!==e.pstyle("display").value},A=!c||v(e)&&(!p||v(e.source())&&v(e.target()));if(A){var b=0;c&&t.includeOverlays&&0!==e.pstyle("overlay-opacity").value&&(b=e.pstyle("overlay-padding").value);var y=0;c&&t.includeUnderlays&&0!==e.pstyle("underlay-opacity").value&&(y=e.pstyle("underlay-padding").value);var w=Math.max(b,y),_=0;if(c&&(_=e.pstyle("width").pfValue/2),f&&t.includeNodes){var x=e.position();a=x.x,s=x.y;var E=e.outerWidth()/2,S=e.outerHeight()/2;sc(d,n=a-E,i=s-S,r=a+E,o=s+S),c&&hc(d,e),c&&t.includeOutlines&&!u&&hc(d,e),c&&pc(d,e)}else if(p&&t.includeEdges)if(c&&!u){var C=e.pstyle("curve-style").strValue;if(n=Math.min(g.srcX,g.midX,g.tgtX),r=Math.max(g.srcX,g.midX,g.tgtX),i=Math.min(g.srcY,g.midY,g.tgtY),o=Math.max(g.srcY,g.midY,g.tgtY),sc(d,n-=_,i-=_,r+=_,o+=_),"haystack"===C){var T=g.haystackPts;if(T&&2===T.length){if(n=T[0].x,i=T[0].y,n>(r=T[1].x)){var k=n;n=r,r=k}if(i>(o=T[1].y)){var O=i;i=o,o=O}sc(d,n-_,i-_,r+_,o+_)}}else if("bezier"===C||"unbundled-bezier"===C||Ee(C,"segments")||Ee(C,"taxi")){var M;switch(C){case"bezier":case"unbundled-bezier":M=g.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":M=g.linePts}if(null!=M)for(var I=0;I<M.length;I++){var D=M[I];n=D.x-_,r=D.x+_,i=D.y-_,o=D.y+_,sc(d,n,i,r,o)}}}else{var N=e.source().position(),R=e.target().position();if((n=N.x)>(r=R.x)){var L=n;n=r,r=L}if((i=N.y)>(o=R.y)){var B=i;i=o,o=B}sc(d,n-=_,i-=_,r+=_,o+=_)}if(c&&t.includeEdges&&p&&(uc(d,e,"mid-source"),uc(d,e,"mid-target"),uc(d,e,"source"),uc(d,e,"target")),c&&"yes"===e.pstyle("ghost").value){var P=e.pstyle("ghost-offset-x").pfValue,F=e.pstyle("ghost-offset-y").pfValue;sc(d,d.x1+P,d.y1+F,d.x2+P,d.y2+F)}var $=h.bodyBounds=h.bodyBounds||{};Xn($,d),qn($,m),Yn($,1),c&&(n=d.x1,r=d.x2,i=d.y1,o=d.y2,sc(d,n-w,i-w,r+w,o+w));var j=h.overlayBounds=h.overlayBounds||{};Xn(j,d),qn(j,m),Yn(j,1);var H=h.labelBounds=h.labelBounds||{};null!=H.all?Gn(H.all):H.all=zn(),c&&t.includeLabels&&(t.includeMainLabels&&dc(d,e,null),p&&(t.includeSourceLabels&&dc(d,e,"source"),t.includeTargetLabels&&dc(d,e,"target")))}return d.x1=ac(d.x1),d.y1=ac(d.y1),d.x2=ac(d.x2),d.y2=ac(d.y2),d.w=ac(d.x2-d.x1),d.h=ac(d.y2-d.y1),d.w>0&&d.h>0&&A&&(qn(d,m),Yn(d,1)),d},mc=function(e){var t=0,n=function(e){return(e?1:0)<<t++},r=0;return r+=n(e.incudeNodes),r+=n(e.includeEdges),r+=n(e.includeLabels),r+=n(e.includeMainLabels),r+=n(e.includeSourceLabels),r+=n(e.includeTargetLabels),r+=n(e.includeOverlays),r+n(e.includeOutlines)},vc=function(e){var t=function(e){return Math.round(e)};if(e.isEdge()){var n=e.source().position(),r=e.target().position();return wt([t(n.x),t(n.y),t(r.x),t(r.y)])}var i=e.position();return wt([t(i.x),t(i.y)])},Ac=function(e,t){var n,r=e._private,i=e.isEdge(),o=(null==t?yc:mc(t))===yc;if(null==r.bbCache?(n=gc(e,bc),r.bbCache=n,r.bbCachePosKey=vc(e)):n=r.bbCache,!o){var a=e.isNode();n=zn(),(t.includeNodes&&a||t.includeEdges&&!a)&&(t.includeOverlays?lc(n,r.overlayBounds):lc(n,r.bodyBounds)),t.includeLabels&&(t.includeMainLabels&&(!i||t.includeSourceLabels&&t.includeTargetLabels)?lc(n,r.labelBounds.all):(t.includeMainLabels&&lc(n,r.labelBounds.mainRot),t.includeSourceLabels&&lc(n,r.labelBounds.sourceRot),t.includeTargetLabels&&lc(n,r.labelBounds.targetRot))),n.w=n.x2-n.x1,n.h=n.y2-n.y1}return n},bc={includeNodes:!0,includeEdges:!0,includeLabels:!0,includeMainLabels:!0,includeSourceLabels:!0,includeTargetLabels:!0,includeOverlays:!0,includeUnderlays:!0,includeOutlines:!0,useCache:!0},yc=mc(bc),wc=Ut(bc);ic.boundingBox=function(e){var t,n=void 0===e||void 0===e.useCache||!0===e.useCache,r=be(function(e){var t=e._private;return null==t.bbCache||t.styleDirty||t.bbCachePosKey!==vc(e)},function(e){return e.id()});if(n&&1===this.length&&!r(this[0]))e=void 0===e?bc:wc(e),t=Ac(this[0],e);else{t=zn();var i=wc(e=e||bc),o=this,a=o.cy().styleEnabled();this.edges().forEach(r),this.nodes().forEach(r),a&&this.recalculateRenderedStyle(n),this.updateCompoundBounds(!n);for(var s=0;s<o.length;s++){var l=o[s];r(l)&&l.dirtyBoundingBoxCache(),lc(t,Ac(l,i))}}return t.x1=ac(t.x1),t.y1=ac(t.y1),t.x2=ac(t.x2),t.y2=ac(t.y2),t.w=ac(t.x2-t.x1),t.h=ac(t.y2-t.y1),t},ic.dirtyBoundingBoxCache=function(){for(var e=0;e<this.length;e++){var t=this[e]._private;t.bbCache=null,t.bbCachePosKey=null,t.bodyBounds=null,t.overlayBounds=null,t.labelBounds.all=null,t.labelBounds.source=null,t.labelBounds.target=null,t.labelBounds.main=null,t.labelBounds.sourceRot=null,t.labelBounds.targetRot=null,t.labelBounds.mainRot=null,t.arrowBounds.source=null,t.arrowBounds.target=null,t.arrowBounds["mid-source"]=null,t.arrowBounds["mid-target"]=null}return this.emitAndNotify("bounds"),this},ic.boundingBoxAt=function(e){var t=this.nodes(),n=this.cy(),r=n.hasCompoundNodes(),i=n.collection();if(r&&(i=t.filter(function(e){return e.isParent()}),t=t.not(i)),re(e)){var o=e;e=function(){return o}}var a=function(t,n){return t._private.bbAtOldPos=e(t,n)},s=function(e){return e._private.bbAtOldPos};n.startBatch(),t.forEach(a).silentPositions(e),r&&(i.dirtyCompoundBoundsCache(),i.dirtyBoundingBoxCache(),i.updateCompoundBounds(!0));var l=Wn(this.boundingBox({useCache:!1}));return t.silentPositions(s),r&&(i.dirtyCompoundBoundsCache(),i.dirtyBoundingBoxCache(),i.updateCompoundBounds(!0)),n.endBatch(),l},rc.boundingbox=rc.bb=rc.boundingBox,rc.renderedBoundingbox=rc.renderedBoundingBox;var _c,xc,Ec=ic;_c=xc={};var Sc=function(e){e.uppercaseName=xe(e.name),e.autoName="auto"+e.uppercaseName,e.labelName="label"+e.uppercaseName,e.outerName="outer"+e.uppercaseName,e.uppercaseOuterName=xe(e.outerName),_c[e.name]=function(){var t=this[0],n=t._private,r=n.cy._private.styleEnabled;if(t){if(r){if(t.isParent())return t.updateCompoundBounds(),n[e.autoName]||0;var i=t.pstyle(e.name);return"label"===i.strValue?(t.recalculateRenderedStyle(),n.rstyle[e.labelName]||0):i.pfValue}return 1}},_c["outer"+e.uppercaseName]=function(){var t=this[0],n=t._private.cy._private.styleEnabled;if(t){if(n){var r=t[e.name](),i=t.pstyle("border-position").value;return r+("center"===i?t.pstyle("border-width").pfValue:"outside"===i?2*t.pstyle("border-width").pfValue:0)+2*t.padding()}return 1}},_c["rendered"+e.uppercaseName]=function(){var t=this[0];if(t)return t[e.name]()*this.cy().zoom()},_c["rendered"+e.uppercaseOuterName]=function(){var t=this[0];if(t)return t[e.outerName]()*this.cy().zoom()}};Sc({name:"width"}),Sc({name:"height"}),xc.padding=function(){var e=this[0],t=e._private;return e.isParent()?(e.updateCompoundBounds(),void 0!==t.autoPadding?t.autoPadding:e.pstyle("padding").pfValue):e.pstyle("padding").pfValue},xc.paddedHeight=function(){var e=this[0];return e.height()+2*e.padding()},xc.paddedWidth=function(){var e=this[0];return e.width()+2*e.padding()};var Cc=xc,Tc=function(e,t){if(e.isEdge()&&e.takesUpSpace())return t(e)},kc=function(e,t){if(e.isEdge()&&e.takesUpSpace()){var n=e.cy();return Cn(t(e),n.zoom(),n.pan())}},Oc=function(e,t){if(e.isEdge()&&e.takesUpSpace()){var n=e.cy(),r=n.pan(),i=n.zoom();return t(e).map(function(e){return Cn(e,i,r)})}},Mc=function(e){return e.renderer().getControlPoints(e)},Ic={controlPoints:{get:Mc,mult:!0},segmentPoints:{get:function(e){return e.renderer().getSegmentPoints(e)},mult:!0},sourceEndpoint:{get:function(e){return e.renderer().getSourceEndpoint(e)}},targetEndpoint:{get:function(e){return e.renderer().getTargetEndpoint(e)}},midpoint:{get:function(e){return e.renderer().getEdgeMidpoint(e)}}},Dc=function(e){return"rendered"+e[0].toUpperCase()+e.substr(1)},Nc=Object.keys(Ic).reduce(function(e,t){var n=Ic[t],r=Dc(t);return e[t]=function(){return Tc(this,n.get)},n.mult?e[r]=function(){return Oc(this,n.get)}:e[r]=function(){return kc(this,n.get)},e},{}),Rc=Re({},oc,Ec,Cc,Nc),Lc=function(e,t){this.recycle(e,t)};function Bc(){return!1}function Pc(){return!0}Lc.prototype={instanceString:function(){return"event"},recycle:function(e,t){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=Bc,null!=e&&e.preventDefault?(this.type=e.type,this.isDefaultPrevented=e.defaultPrevented?Pc:Bc):null!=e&&e.type?t=e:this.type=e,null!=t&&(this.originalEvent=t.originalEvent,this.type=null!=t.type?t.type:this.type,this.cy=t.cy,this.target=t.target,this.position=t.position,this.renderedPosition=t.renderedPosition,this.namespace=t.namespace,this.layout=t.layout),null!=this.cy&&null!=this.position&&null==this.renderedPosition){var n=this.position,r=this.cy.zoom(),i=this.cy.pan();this.renderedPosition={x:n.x*r+i.x,y:n.y*r+i.y}}this.timeStamp=e&&e.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=Pc;var e=this.originalEvent;e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){this.isPropagationStopped=Pc;var e=this.originalEvent;e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Pc,this.stopPropagation()},isDefaultPrevented:Bc,isPropagationStopped:Bc,isImmediatePropagationStopped:Bc};var Fc=/^([^.]+)(\.(?:[^.]+))?$/,$c=".*",jc={qualifierCompare:function(e,t){return e===t},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(e){return e},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},Hc=Object.keys(jc),Uc={};function Qc(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Uc,t=arguments.length>1?arguments[1]:void 0,n=0;n<Hc.length;n++){var r=Hc[n];this[r]=e[r]||jc[r]}this.context=t||this.context,this.listeners=[],this.emitting=0}var zc=Qc.prototype,Wc=function(e,t,n,r,i,o,a){te(r)&&(i=r,r=null),a&&(o=null==o?a:Re({},o,a));for(var s=ne(n)?n:n.split(/\s+/),l=0;l<s.length;l++){var c=s[l];if(!pe(c)){var u=c.match(Fc);if(u&&!1===t(e,c,u[1],u[2]?u[2]:null,r,i,o))break}}},Gc=function(e,t){return e.addEventFields(e.context,t),new Lc(t.type,t)},Vc=function(e,t,n){if(fe(n))t(e,n);else if(re(n))t(e,Gc(e,n));else for(var r=ne(n)?n:n.split(/\s+/),i=0;i<r.length;i++){var o=r[i];if(!pe(o)){var a=o.match(Fc);if(a){var s=a[1],l=a[2]?a[2]:null;t(e,Gc(e,{type:s,namespace:l,target:e.context}))}}}};zc.on=zc.addListener=function(e,t,n,r,i){return Wc(this,function(e,t,n,r,i,o,a){te(o)&&e.listeners.push({event:t,callback:o,type:n,namespace:r,qualifier:i,conf:a})},e,t,n,r,i),this},zc.one=function(e,t,n,r){return this.on(e,t,n,r,{one:!0})},zc.removeListener=zc.off=function(e,t,n,r){var i=this;0!==this.emitting&&(this.listeners=Ft(this.listeners));for(var o=this.listeners,a=function(a){var s=o[a];Wc(i,function(t,n,r,i,l,c){if((s.type===r||"*"===e)&&(!i&&".*"!==s.namespace||s.namespace===i)&&(!l||t.qualifierCompare(s.qualifier,l))&&(!c||s.callback===c))return o.splice(a,1),!1},e,t,n,r)},s=o.length-1;s>=0;s--)a(s);return this},zc.removeAllListeners=function(){return this.removeListener("*")},zc.emit=zc.trigger=function(e,t,n){var r=this.listeners,i=r.length;return this.emitting++,ne(t)||(t=[t]),Vc(this,function(e,o){null!=n&&(r=[{event:o.event,type:o.type,namespace:o.namespace,callback:n}],i=r.length);for(var a=function(){var n=r[s];if(n.type===o.type&&(!n.namespace||n.namespace===o.namespace||n.namespace===$c)&&e.eventMatches(e.context,n,o)){var i=[o];null!=t&&Wt(i,t),e.beforeEmit(e.context,n,o),n.conf&&n.conf.one&&(e.listeners=e.listeners.filter(function(e){return e!==n}));var a=e.callbackContext(e.context,n,o),l=n.callback.apply(a,i);e.afterEmit(e.context,n,o),!1===l&&(o.stopPropagation(),o.preventDefault())}},s=0;s<i;s++)a();e.bubble(e.context)&&!o.isPropagationStopped()&&e.parent(e.context).emit(o,t)},e),this.emitting--,this};var Kc={qualifierCompare:function(e,t){return null==e||null==t?null==e&&null==t:e.sameText(t)},eventMatches:function(e,t,n){var r=t.qualifier;return null==r||e!==n.target&&ce(n.target)&&r.matches(n.target)},addEventFields:function(e,t){t.cy=e.cy(),t.target=e},callbackContext:function(e,t,n){return null!=t.qualifier?n.target:e},beforeEmit:function(e,t){t.conf&&t.conf.once&&t.conf.onceCollection.removeListener(t.event,t.qualifier,t.callback)},bubble:function(){return!0},parent:function(e){return e.isChild()?e.parent():e.cy()}},Yc=function(e){return ee(e)?new Fl(e):e},qc={createEmitter:function(){for(var e=0;e<this.length;e++){var t=this[e],n=t._private;n.emitter||(n.emitter=new Qc(Kc,t))}return this},emitter:function(){return this._private.emitter},on:function(e,t,n){for(var r=Yc(t),i=0;i<this.length;i++)this[i].emitter().on(e,r,n);return this},removeListener:function(e,t,n){for(var r=Yc(t),i=0;i<this.length;i++)this[i].emitter().removeListener(e,r,n);return this},removeAllListeners:function(){for(var e=0;e<this.length;e++)this[e].emitter().removeAllListeners();return this},one:function(e,t,n){for(var r=Yc(t),i=0;i<this.length;i++)this[i].emitter().one(e,r,n);return this},once:function(e,t,n){for(var r=Yc(t),i=0;i<this.length;i++)this[i].emitter().on(e,r,n,{once:!0,onceCollection:this})},emit:function(e,t){for(var n=0;n<this.length;n++)this[n].emitter().emit(e,t);return this},emitAndNotify:function(e,t){if(0!==this.length)return this.cy().notify(e,this),this.emit(e,t),this}};dl.eventAliasesOn(qc);var Xc={nodes:function(e){return this.filter(function(e){return e.isNode()}).filter(e)},edges:function(e){return this.filter(function(e){return e.isEdge()}).filter(e)},byGroup:function(){for(var e=this.spawn(),t=this.spawn(),n=0;n<this.length;n++){var r=this[n];r.isNode()?e.push(r):t.push(r)}return{nodes:e,edges:t}},filter:function(e,t){if(void 0===e)return this;if(ee(e)||le(e))return new Fl(e).filter(this);if(te(e)){for(var n=this.spawn(),r=this,i=0;i<r.length;i++){var o=r[i];(t?e.apply(t,[o,i,r]):e(o,i,r))&&n.push(o)}return n}return this.spawn()},not:function(e){if(e){ee(e)&&(e=this.filter(e));for(var t=this.spawn(),n=0;n<this.length;n++){var r=this[n];e.has(r)||t.push(r)}return t}return this},absoluteComplement:function(){return this.cy().mutableElements().not(this)},intersect:function(e){if(ee(e)){var t=e;return this.filter(t)}for(var n=this.spawn(),r=this,i=e,o=this.length<e.length,a=o?r:i,s=o?i:r,l=0;l<a.length;l++){var c=a[l];s.has(c)&&n.push(c)}return n},xor:function(e){var t=this._private.cy;ee(e)&&(e=t.$(e));var n=this.spawn(),r=this,i=e,o=function(e,t){for(var r=0;r<e.length;r++){var i=e[r],o=i._private.data.id;t.hasElementWithId(o)||n.push(i)}};return o(r,i),o(i,r),n},diff:function(e){var t=this._private.cy;ee(e)&&(e=t.$(e));var n=this.spawn(),r=this.spawn(),i=this.spawn(),o=this,a=e,s=function(e,t,n){for(var r=0;r<e.length;r++){var o=e[r],a=o._private.data.id;t.hasElementWithId(a)?i.merge(o):n.push(o)}};return s(o,a,n),s(a,o,r),{left:n,right:r,both:i}},add:function(e){var t=this._private.cy;if(!e)return this;if(ee(e)){var n=e;e=t.mutableElements().filter(n)}for(var r=this.spawnSelf(),i=0;i<e.length;i++){var o=e[i],a=!this.has(o);a&&r.push(o)}return r},merge:function(e){var t=this._private,n=t.cy;if(!e)return this;if(e&&ee(e)){var r=e;e=n.mutableElements().filter(r)}for(var i=t.map,o=0;o<e.length;o++){var a=e[o],s=a._private.data.id;if(!i.has(s)){var l=this.length++;this[l]=a,i.set(s,{ele:a,index:l})}}return this},unmergeAt:function(e){var t=this[e].id(),n=this._private.map;this[e]=void 0,n.delete(t);var r=e===this.length-1;if(this.length>1&&!r){var i=this.length-1,o=this[i],a=o._private.data.id;this[i]=void 0,this[e]=o,n.set(a,{ele:o,index:e})}return this.length--,this},unmergeOne:function(e){e=e[0];var t=this._private,n=e._private.data.id,r=t.map.get(n);if(!r)return this;var i=r.index;return this.unmergeAt(i),this},unmerge:function(e){var t=this._private.cy;if(!e)return this;if(e&&ee(e)){var n=e;e=t.mutableElements().filter(n)}for(var r=0;r<e.length;r++)this.unmergeOne(e[r]);return this},unmergeBy:function(e){for(var t=this.length-1;t>=0;t--)e(this[t])&&this.unmergeAt(t);return this},map:function(e,t){for(var n=[],r=this,i=0;i<r.length;i++){var o=r[i],a=t?e.apply(t,[o,i,r]):e(o,i,r);n.push(a)}return n},reduce:function(e,t){for(var n=t,r=this,i=0;i<r.length;i++)n=e(n,r[i],i,r);return n},max:function(e,t){for(var n,r=-1/0,i=this,o=0;o<i.length;o++){var a=i[o],s=t?e.apply(t,[a,o,i]):e(a,o,i);s>r&&(r=s,n=a)}return{value:r,ele:n}},min:function(e,t){for(var n,r=1/0,i=this,o=0;o<i.length;o++){var a=i[o],s=t?e.apply(t,[a,o,i]):e(a,o,i);s<r&&(r=s,n=a)}return{value:r,ele:n}}},Jc=Xc;Jc.u=Jc["|"]=Jc["+"]=Jc.union=Jc.or=Jc.add,Jc["\\"]=Jc["!"]=Jc["-"]=Jc.difference=Jc.relativeComplement=Jc.subtract=Jc.not,Jc.n=Jc["&"]=Jc["."]=Jc.and=Jc.intersection=Jc.intersect,Jc["^"]=Jc["(+)"]=Jc["(-)"]=Jc.symmetricDifference=Jc.symdiff=Jc.xor,Jc.fnFilter=Jc.filterFn=Jc.stdFilter=Jc.filter,Jc.complement=Jc.abscomp=Jc.absoluteComplement;var Zc={isNode:function(){return"nodes"===this.group()},isEdge:function(){return"edges"===this.group()},isLoop:function(){return this.isEdge()&&this.source()[0]===this.target()[0]},isSimple:function(){return this.isEdge()&&this.source()[0]!==this.target()[0]},group:function(){var e=this[0];if(e)return e._private.group}},eu=function(e,t){var n=e.cy().hasCompoundNodes();function r(e){var t=e.pstyle("z-compound-depth");return"auto"===t.value?n?e.zDepth():0:"bottom"===t.value?-1:"top"===t.value?kt:0}var i=r(e)-r(t);if(0!==i)return i;function o(e){return"auto"===e.pstyle("z-index-compare").value&&e.isNode()?1:0}var a=o(e)-o(t);if(0!==a)return a;var s=e.pstyle("z-index").value-t.pstyle("z-index").value;return 0!==s?s:e.poolIndex()-t.poolIndex()},tu={forEach:function(e,t){if(te(e))for(var n=this.length,r=0;r<n;r++){var i=this[r];if(!1===(t?e.apply(t,[i,r,this]):e(i,r,this)))break}return this},toArray:function(){for(var e=[],t=0;t<this.length;t++)e.push(this[t]);return e},slice:function(e,t){var n=[],r=this.length;null==t&&(t=r),null==e&&(e=0),e<0&&(e=r+e),t<0&&(t=r+t);for(var i=e;i>=0&&i<t&&i<r;i++)n.push(this[i]);return this.spawn(n)},size:function(){return this.length},eq:function(e){return this[e]||this.spawn()},first:function(){return this[0]||this.spawn()},last:function(){return this[this.length-1]||this.spawn()},empty:function(){return 0===this.length},nonempty:function(){return!this.empty()},sort:function(e){if(!te(e))return this;var t=this.toArray().sort(e);return this.spawn(t)},sortByZIndex:function(){return this.sort(eu)},zDepth:function(){var e=this[0];if(e){var t=e._private;if("nodes"===t.group){var n=t.data.parent?e.parents().size():0;return e.isParent()?n:kt-1}var r=t.source,i=t.target,o=r.zDepth(),a=i.zDepth();return Math.max(o,a,0)}}};tu.each=tu.forEach;var nu=function(){var e="undefined";("undefined"==typeof Symbol?"undefined":v(Symbol))!=e&&v(Symbol.iterator)!=e&&(tu[Symbol.iterator]=function(){var e=this,t={value:void 0,done:!1},n=0,r=this.length;return l({next:function(){return n<r?t.value=e[n++]:(t.value=void 0,t.done=!0),t}},Symbol.iterator,function(){return this})})};nu();var ru=Ut({nodeDimensionsIncludeLabels:!1}),iu={layoutDimensions:function(e){var t;if(e=ru(e),this.takesUpSpace())if(e.nodeDimensionsIncludeLabels){var n=this.boundingBox();t={w:n.w,h:n.h}}else t={w:this.outerWidth(),h:this.outerHeight()};else t={w:0,h:0};return 0!==t.w&&0!==t.h||(t.w=t.h=1),t},layoutPositions:function(e,t,n){var r=this.nodes().filter(function(e){return!e.isParent()}),i=this.cy(),o=t.eles,a=function(e){return e.id()},s=be(n,a);e.emit({type:"layoutstart",layout:e}),e.animations=[];var l=function(e,t,n){var r={x:t.x1+t.w/2,y:t.y1+t.h/2},i={x:(n.x-r.x)*e,y:(n.y-r.y)*e};return{x:r.x+i.x,y:r.y+i.y}},c=t.spacingFactor&&1!==t.spacingFactor,u=function(){if(!c)return null;for(var e=zn(),t=0;t<r.length;t++){var n=r[t],i=s(n,t);Kn(e,i.x,i.y)}return e},d=u(),h=be(function(e,n){var r=s(e,n);if(c){var i=Math.abs(t.spacingFactor);r=l(i,d,r)}return null!=t.transform&&(r=t.transform(e,r)),r},a);if(t.animate){for(var f=0;f<r.length;f++){var p=r[f],g=h(p,f);if(null==t.animateFilter||t.animateFilter(p,f)){var m=p.animation({position:g,duration:t.animationDuration,easing:t.animationEasing});e.animations.push(m)}else p.position(g)}if(t.fit){var v=i.animation({fit:{boundingBox:o.boundingBoxAt(h),padding:t.padding},duration:t.animationDuration,easing:t.animationEasing});e.animations.push(v)}else if(void 0!==t.zoom&&void 0!==t.pan){var A=i.animation({zoom:t.zoom,pan:t.pan,duration:t.animationDuration,easing:t.animationEasing});e.animations.push(A)}e.animations.forEach(function(e){return e.play()}),e.one("layoutready",t.ready),e.emit({type:"layoutready",layout:e}),lo.all(e.animations.map(function(e){return e.promise()})).then(function(){e.one("layoutstop",t.stop),e.emit({type:"layoutstop",layout:e})})}else r.positions(h),t.fit&&i.fit(t.eles,t.padding),null!=t.zoom&&i.zoom(t.zoom),t.pan&&i.pan(t.pan),e.one("layoutready",t.ready),e.emit({type:"layoutready",layout:e}),e.one("layoutstop",t.stop),e.emit({type:"layoutstop",layout:e});return this},layout:function(e){return this.cy().makeLayout(Re({},e,{eles:this}))}};function ou(e,t,n){var r,i=n._private,o=i.styleCache=i.styleCache||[];return null!=(r=o[e])?r:r=o[e]=t(n)}function au(e,t){return e=_t(e),function(n){return ou(e,t,n)}}function su(e,t){e=_t(e);var n=function(e){return t.call(e)};return function(){var t=this[0];if(t)return ou(e,n,t)}}iu.createLayout=iu.makeLayout=iu.layout;var lu={recalculateRenderedStyle:function(e){var t=this.cy(),n=t.renderer(),r=t.styleEnabled();return n&&r&&n.recalculateRenderedStyle(this,e),this},dirtyStyleCache:function(){var e,t=this.cy(),n=function(e){return e._private.styleCache=null};return t.hasCompoundNodes()?((e=this.spawnSelf().merge(this.descendants()).merge(this.parents())).merge(e.connectedEdges()),e.forEach(n)):this.forEach(function(e){n(e),e.connectedEdges().forEach(n)}),this},updateStyle:function(e){var t=this._private.cy;if(!t.styleEnabled())return this;if(t.batching())return t._private.batchStyleEles.merge(this),this;var n=this;e=!(!e&&void 0!==e),t.hasCompoundNodes()&&(n=this.spawnSelf().merge(this.descendants()).merge(this.parents()));var r=n;return e?r.emitAndNotify("style"):r.emit("style"),n.forEach(function(e){return e._private.styleDirty=!0}),this},cleanStyle:function(){var e=this.cy();if(e.styleEnabled())for(var t=0;t<this.length;t++){var n=this[t];n._private.styleDirty&&(n._private.styleDirty=!1,e.style().apply(n))}},parsedStyle:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this[0],r=n.cy();if(r.styleEnabled()&&n){n._private.styleDirty&&(n._private.styleDirty=!1,r.style().apply(n));var i=n._private.style[e];return null!=i?i:t?r.style().getDefaultProperty(e):null}},numericStyle:function(e){var t=this[0];if(t.cy().styleEnabled()&&t){var n=t.pstyle(e);return void 0!==n.pfValue?n.pfValue:n.value}},numericStyleUnits:function(e){var t=this[0];if(t.cy().styleEnabled())return t?t.pstyle(e).units:void 0},renderedStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=this[0];return n?t.style().getRenderedStyle(n,e):void 0},style:function(e,t){var n=this.cy();if(!n.styleEnabled())return this;var r=!1,i=n.style();if(re(e)){var o=e;i.applyBypass(this,o,r),this.emitAndNotify("style")}else if(ee(e)){if(void 0===t){var a=this[0];return a?i.getStylePropertyValue(a,e):void 0}i.applyBypass(this,e,t,r),this.emitAndNotify("style")}else if(void 0===e){var s=this[0];return s?i.getRawStyle(s):void 0}return this},removeStyle:function(e){var t=this.cy();if(!t.styleEnabled())return this;var n=!1,r=t.style(),i=this;if(void 0===e)for(var o=0;o<i.length;o++){var a=i[o];r.removeAllBypasses(a,n)}else{e=e.split(/\s+/);for(var s=0;s<i.length;s++){var l=i[s];r.removeBypasses(l,e,n)}}return this.emitAndNotify("style"),this},show:function(){return this.css("display","element"),this},hide:function(){return this.css("display","none"),this},effectiveOpacity:function(){var e=this.cy();if(!e.styleEnabled())return 1;var t=e.hasCompoundNodes(),n=this[0];if(n){var r=n._private,i=n.pstyle("opacity").value;if(!t)return i;var o=r.data.parent?n.parents():null;if(o)for(var a=0;a<o.length;a++)i*=o[a].pstyle("opacity").value;return i}},transparent:function(){if(!this.cy().styleEnabled())return!1;var e=this[0],t=e.cy().hasCompoundNodes();return e?t?0===e.effectiveOpacity():0===e.pstyle("opacity").value:void 0},backgrounding:function(){return!!this.cy().styleEnabled()&&!!this[0]._private.backgrounding}};function cu(e,t){var n=e._private.data.parent?e.parents():null;if(n)for(var r=0;r<n.length;r++)if(!t(n[r]))return!1;return!0}function uu(e){var t=e.ok,n=e.edgeOkViaNode||e.ok,r=e.parentOk||e.ok;return function(){var e=this.cy();if(!e.styleEnabled())return!0;var i=this[0],o=e.hasCompoundNodes();if(i){var a=i._private;if(!t(i))return!1;if(i.isNode())return!o||cu(i,r);var s=a.source,l=a.target;return n(s)&&(!o||cu(s,n))&&(s===l||n(l)&&(!o||cu(l,n)))}}}var du=au("eleTakesUpSpace",function(e){return"element"===e.pstyle("display").value&&0!==e.width()&&(!e.isNode()||0!==e.height())});lu.takesUpSpace=su("takesUpSpace",uu({ok:du}));var hu=au("eleInteractive",function(e){return"yes"===e.pstyle("events").value&&"visible"===e.pstyle("visibility").value&&du(e)}),fu=au("parentInteractive",function(e){return"visible"===e.pstyle("visibility").value&&du(e)});lu.interactive=su("interactive",uu({ok:hu,parentOk:fu,edgeOkViaNode:du})),lu.noninteractive=function(){var e=this[0];if(e)return!e.interactive()};var pu=au("eleVisible",function(e){return"visible"===e.pstyle("visibility").value&&0!==e.pstyle("opacity").pfValue&&du(e)}),gu=du;lu.visible=su("visible",uu({ok:pu,edgeOkViaNode:gu})),lu.hidden=function(){var e=this[0];if(e)return!e.visible()},lu.isBundledBezier=su("isBundledBezier",function(){return!!this.cy().styleEnabled()&&!this.removed()&&"bezier"===this.pstyle("curve-style").value&&this.takesUpSpace()}),lu.bypass=lu.css=lu.style,lu.renderedCss=lu.renderedStyle,lu.removeBypass=lu.removeCss=lu.removeStyle,lu.pstyle=lu.parsedStyle;var mu={};function vu(e){return function(){var t=arguments,n=[];if(2===t.length){var r=t[0],i=t[1];this.on(e.event,r,i)}else if(1===t.length&&te(t[0])){var o=t[0];this.on(e.event,o)}else if(0===t.length||1===t.length&&ne(t[0])){for(var a=1===t.length?t[0]:null,s=0;s<this.length;s++){var l=this[s],c=!e.ableField||l._private[e.ableField],u=l._private[e.field]!=e.value;if(e.overrideAble){var d=e.overrideAble(l);if(void 0!==d&&(c=d,!d))return this}c&&(l._private[e.field]=e.value,u&&n.push(l))}var h=this.spawn(n);h.updateStyle(),h.emit(e.event),a&&h.emit(a)}return this}}function Au(e){mu[e.field]=function(){var t=this[0];if(t){if(e.overrideField){var n=e.overrideField(t);if(void 0!==n)return n}return t._private[e.field]}},mu[e.on]=vu({event:e.on,field:e.field,ableField:e.ableField,overrideAble:e.overrideAble,value:!0}),mu[e.off]=vu({event:e.off,field:e.field,ableField:e.ableField,overrideAble:e.overrideAble,value:!1})}Au({field:"locked",overrideField:function(e){return!!e.cy().autolock()||void 0},on:"lock",off:"unlock"}),Au({field:"grabbable",overrideField:function(e){return!e.cy().autoungrabify()&&!e.pannable()&&void 0},on:"grabify",off:"ungrabify"}),Au({field:"selected",ableField:"selectable",overrideAble:function(e){return!e.cy().autounselectify()&&void 0},on:"select",off:"unselect"}),Au({field:"selectable",overrideField:function(e){return!e.cy().autounselectify()&&void 0},on:"selectify",off:"unselectify"}),mu.deselect=mu.unselect,mu.grabbed=function(){var e=this[0];if(e)return e._private.grabbed},Au({field:"active",on:"activate",off:"unactivate"}),Au({field:"pannable",on:"panify",off:"unpanify"}),mu.inactive=function(){var e=this[0];if(e)return!e._private.active};var bu={},yu=function(e){return function(t){for(var n=this,r=[],i=0;i<n.length;i++){var o=n[i];if(o.isNode()){for(var a=!1,s=o.connectedEdges(),l=0;l<s.length;l++){var c=s[l],u=c.source(),d=c.target();if(e.noIncomingEdges&&d===o&&u!==o||e.noOutgoingEdges&&u===o&&d!==o){a=!0;break}}a||r.push(o)}}return this.spawn(r,!0).filter(t)}},wu=function(e){return function(t){for(var n=this,r=[],i=0;i<n.length;i++){var o=n[i];if(o.isNode())for(var a=o.connectedEdges(),s=0;s<a.length;s++){var l=a[s],c=l.source(),u=l.target();e.outgoing&&c===o?(r.push(l),r.push(u)):e.incoming&&u===o&&(r.push(l),r.push(c))}}return this.spawn(r,!0).filter(t)}},_u=function(e){return function(t){for(var n=this,r=[],i={};;){var o=e.outgoing?n.outgoers():n.incomers();if(0===o.length)break;for(var a=!1,s=0;s<o.length;s++){var l=o[s],c=l.id();i[c]||(i[c]=!0,r.push(l),a=!0)}if(!a)break;n=o}return this.spawn(r,!0).filter(t)}};function xu(e){return function(t){for(var n=[],r=0;r<this.length;r++){var i=this[r]._private[e.attr];i&&n.push(i)}return this.spawn(n,!0).filter(t)}}function Eu(e){return function(t){var n=[],r=this._private.cy,i=e||{};ee(t)&&(t=r.$(t));for(var o=0;o<t.length;o++)for(var a=t[o]._private.edges,s=0;s<a.length;s++){var l=a[s],c=l._private.data,u=this.hasElementWithId(c.source)&&t.hasElementWithId(c.target),d=t.hasElementWithId(c.source)&&this.hasElementWithId(c.target);if(u||d){if(i.thisIsSrc||i.thisIsTgt){if(i.thisIsSrc&&!u)continue;if(i.thisIsTgt&&!d)continue}n.push(l)}}return this.spawn(n,!0)}}function Su(e){return e=Re({},{codirected:!1},e),function(t){for(var n=[],r=this.edges(),i=e,o=0;o<r.length;o++)for(var a=r[o]._private,s=a.source,l=s._private.data.id,c=a.data.target,u=s._private.edges,d=0;d<u.length;d++){var h=u[d],f=h._private.data,p=f.target,g=f.source,m=p===c&&g===l,v=l===p&&c===g;(i.codirected&&m||!i.codirected&&(m||v))&&n.push(h)}return this.spawn(n,!0).filter(t)}}bu.clearTraversalCache=function(){for(var e=0;e<this.length;e++)this[e]._private.traversalCache=null},Re(bu,{roots:yu({noIncomingEdges:!0}),leaves:yu({noOutgoingEdges:!0}),outgoers:Ql(wu({outgoing:!0}),"outgoers"),successors:_u({outgoing:!0}),incomers:Ql(wu({incoming:!0}),"incomers"),predecessors:_u({})}),Re(bu,{neighborhood:Ql(function(e){for(var t=[],n=this.nodes(),r=0;r<n.length;r++)for(var i=n[r],o=i.connectedEdges(),a=0;a<o.length;a++){var s=o[a],l=s.source(),c=s.target(),u=i===l?c:l;u.length>0&&t.push(u[0]),t.push(s[0])}return this.spawn(t,!0).filter(e)},"neighborhood"),closedNeighborhood:function(e){return this.neighborhood().add(this).filter(e)},openNeighborhood:function(e){return this.neighborhood(e)}}),bu.neighbourhood=bu.neighborhood,bu.closedNeighbourhood=bu.closedNeighborhood,bu.openNeighbourhood=bu.openNeighborhood,Re(bu,{source:Ql(function(e){var t,n=this[0];return n&&(t=n._private.source||n.cy().collection()),t&&e?t.filter(e):t},"source"),target:Ql(function(e){var t,n=this[0];return n&&(t=n._private.target||n.cy().collection()),t&&e?t.filter(e):t},"target"),sources:xu({attr:"source"}),targets:xu({attr:"target"})}),Re(bu,{edgesWith:Ql(Eu(),"edgesWith"),edgesTo:Ql(Eu({thisIsSrc:!0}),"edgesTo")}),Re(bu,{connectedEdges:Ql(function(e){for(var t=[],n=this,r=0;r<n.length;r++){var i=n[r];if(i.isNode())for(var o=i._private.edges,a=0;a<o.length;a++){var s=o[a];t.push(s)}}return this.spawn(t,!0).filter(e)},"connectedEdges"),connectedNodes:Ql(function(e){for(var t=[],n=this,r=0;r<n.length;r++){var i=n[r];i.isEdge()&&(t.push(i.source()[0]),t.push(i.target()[0]))}return this.spawn(t,!0).filter(e)},"connectedNodes"),parallelEdges:Ql(Su(),"parallelEdges"),codirectedEdges:Ql(Su({codirected:!0}),"codirectedEdges")}),Re(bu,{components:function(e){var t=this,n=t.cy(),r=n.collection(),i=null==e?t.nodes():e.nodes(),o=[];null!=e&&i.empty()&&(i=e.sources());var a=function(e,t){r.merge(e),i.unmerge(e),t.merge(e)};if(i.empty())return t.spawn();var s=function(){var e=n.collection();o.push(e);var r=i[0];a(r,e),t.bfs({directed:!1,roots:r,visit:function(t){return a(t,e)}}),e.forEach(function(n){n.connectedEdges().forEach(function(n){t.has(n)&&e.has(n.source())&&e.has(n.target())&&e.merge(n)})})};do{s()}while(i.length>0);return o},component:function(){var e=this[0];return e.cy().mutableElements().components(e)[0]}}),bu.componentsOf=bu.components;var Cu=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e){var i=new Yt,o=!1;if(t){if(t.length>0&&re(t[0])&&!ce(t[0])){o=!0;for(var a=[],s=new Jt,l=0,c=t.length;l<c;l++){var u=t[l];null==u.data&&(u.data={});var d=u.data;if(null==d.id)d.id=$t();else if(e.hasElementWithId(d.id)||s.has(d.id))continue;var h=new Zt(e,u,!1);a.push(h),s.add(d.id)}t=a}}else t=[];this.length=0;for(var f=0,p=t.length;f<p;f++){var g=t[f][0];if(null!=g){var m=g._private.data.id;n&&i.has(m)||(n&&i.set(m,{index:this.length,ele:g}),this[this.length]=g,this.length++)}}this._private={eles:this,cy:e,get map(){return null==this.lazyMap&&this.rebuildMap(),this.lazyMap},set map(e){this.lazyMap=e},rebuildMap:function(){for(var e=this.lazyMap=new Yt,t=this.eles,n=0;n<t.length;n++){var r=t[n];e.set(r.id(),{index:n,ele:r})}}},n&&(this._private.map=i),o&&!r&&this.restore()}else Nt("A collection must have a reference to the core")},Tu=Zt.prototype=Cu.prototype=Object.create(Array.prototype);Tu.instanceString=function(){return"collection"},Tu.spawn=function(e,t){return new Cu(this.cy(),e,t)},Tu.spawnSelf=function(){return this.spawn(this)},Tu.cy=function(){return this._private.cy},Tu.renderer=function(){return this._private.cy.renderer()},Tu.element=function(){return this[0]},Tu.collection=function(){return ue(this)?this:new Cu(this._private.cy,[this])},Tu.unique=function(){return new Cu(this._private.cy,this,!0)},Tu.hasElementWithId=function(e){return e=""+e,this._private.map.has(e)},Tu.getElementById=function(e){e=""+e;var t=this._private.cy,n=this._private.map.get(e);return n?n.ele:new Cu(t)},Tu.$id=Tu.getElementById,Tu.poolIndex=function(){var e=this._private.cy._private.elements,t=this[0]._private.data.id;return e._private.map.get(t).index},Tu.indexOf=function(e){var t=e[0]._private.data.id;return this._private.map.get(t).index},Tu.indexOfId=function(e){return e=""+e,this._private.map.get(e).index},Tu.json=function(e){var t=this.element(),n=this.cy();if(null==t&&e)return this;if(null!=t){var r=t._private;if(re(e)){if(n.startBatch(),e.data){t.data(e.data);var i=r.data;if(t.isEdge()){var o=!1,a={},s=e.data.source,l=e.data.target;null!=s&&s!=i.source&&(a.source=""+s,o=!0),null!=l&&l!=i.target&&(a.target=""+l,o=!0),o&&(t=t.move(a))}else{var c="parent"in e.data,u=e.data.parent;!c||null==u&&null==i.parent||u==i.parent||(void 0===u&&(u=null),null!=u&&(u=""+u),t=t.move({parent:u}))}}e.position&&t.position(e.position);var d=function(n,i,o){var a=e[n];null!=a&&a!==r[n]&&(a?t[i]():t[o]())};return d("removed","remove","restore"),d("selected","select","unselect"),d("selectable","selectify","unselectify"),d("locked","lock","unlock"),d("grabbable","grabify","ungrabify"),d("pannable","panify","unpanify"),null!=e.classes&&t.classes(e.classes),n.endBatch(),this}if(void 0===e){var h={data:Pt(r.data),position:Pt(r.position),group:r.group,removed:r.removed,selected:r.selected,selectable:r.selectable,locked:r.locked,grabbable:r.grabbable,pannable:r.pannable,classes:""},f=0;return r.classes.forEach(function(e){return h.classes+=0==f++?e:" "+e}),h}}},Tu.jsons=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t].json();e.push(n)}return e},Tu.clone=function(){for(var e=this.cy(),t=[],n=0;n<this.length;n++){var r=this[n].json(),i=new Zt(e,r,!1);t.push(i)}return new Cu(e,t)},Tu.copy=Tu.clone,Tu.restore=function(){for(var e,t,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this,o=i.cy(),a=o._private,s=[],l=[],c=0,u=i.length;c<u;c++){var d=i[c];r&&!d.removed()||(d.isNode()?s.push(d):l.push(d))}e=s.concat(l);var h=function(){e.splice(t,1),t--};for(t=0;t<e.length;t++){var f=e[t],p=f._private,g=p.data;if(f.clearTraversalCache(),r||p.removed)if(void 0===g.id)g.id=$t();else if(oe(g.id))g.id=""+g.id;else{if(pe(g.id)||!ee(g.id)){Nt("Can not create element with invalid string ID `"+g.id+"`"),h();continue}if(o.hasElementWithId(g.id)){Nt("Can not create second element with ID `"+g.id+"`"),h();continue}}var m=g.id;if(f.isNode()){var v=p.position;null==v.x&&(v.x=0),null==v.y&&(v.y=0)}if(f.isEdge()){for(var A=f,b=["source","target"],y=b.length,w=!1,_=0;_<y;_++){var x=b[_],E=g[x];oe(E)&&(E=g[x]=""+g[x]),null==E||""===E?(Nt("Can not create edge `"+m+"` with unspecified "+x),w=!0):o.hasElementWithId(E)||(Nt("Can not create edge `"+m+"` with nonexistant "+x+" `"+E+"`"),w=!0)}if(w){h();continue}var S=o.getElementById(g.source),C=o.getElementById(g.target);S.same(C)?S._private.edges.push(A):(S._private.edges.push(A),C._private.edges.push(A)),A._private.source=S,A._private.target=C}p.map=new Yt,p.map.set(m,{ele:f,index:0}),p.removed=!1,r&&o.addToPool(f)}for(var T=0;T<s.length;T++){var k=s[T],O=k._private.data;oe(O.parent)&&(O.parent=""+O.parent);var M=O.parent;if(null!=M||k._private.parent){var I=k._private.parent?o.collection().merge(k._private.parent):o.getElementById(M);if(I.empty())O.parent=void 0;else if(I[0].removed())Lt("Node added with missing parent, reference to parent removed"),O.parent=void 0,k._private.parent=null;else{for(var D=!1,N=I;!N.empty();){if(k.same(N)){D=!0,O.parent=void 0;break}N=N.parent()}D||(I[0]._private.children.push(k),k._private.parent=I[0],a.hasCompoundNodes=!0)}}}if(e.length>0){for(var R=e.length===i.length?i:new Cu(o,e),L=0;L<R.length;L++){var B=R[L];B.isNode()||(B.parallelEdges().clearTraversalCache(),B.source().clearTraversalCache(),B.target().clearTraversalCache())}(a.hasCompoundNodes?o.collection().merge(R).merge(R.connectedNodes()).merge(R.parent()):R).dirtyCompoundBoundsCache().dirtyBoundingBoxCache().updateStyle(n),n?R.emitAndNotify("add"):r&&R.emit("add")}return i},Tu.removed=function(){var e=this[0];return e&&e._private.removed},Tu.inside=function(){var e=this[0];return e&&!e._private.removed},Tu.remove=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this,r=[],i={},o=n._private.cy;function a(e){for(var t=e._private.edges,n=0;n<t.length;n++)l(t[n])}function s(e){for(var t=e._private.children,n=0;n<t.length;n++)l(t[n])}function l(e){var n=i[e.id()];t&&e.removed()||n||(i[e.id()]=!0,e.isNode()?(r.push(e),a(e),s(e)):r.unshift(e))}for(var c=0,u=n.length;c<u;c++)l(n[c]);function d(e,t){var n=e._private.edges;Qt(n,t),e.clearTraversalCache()}function h(e){e.clearTraversalCache()}var f=[];function p(e,t){t=t[0];var n=(e=e[0])._private.children,r=e.id();Qt(n,t),t._private.parent=null,f.ids[r]||(f.ids[r]=!0,f.push(e))}f.ids={},n.dirtyCompoundBoundsCache(),t&&o.removeFromPool(r);for(var g=0;g<r.length;g++){var m=r[g];if(m.isEdge()){var v=m.source()[0],A=m.target()[0];d(v,m),d(A,m);for(var b=m.parallelEdges(),y=0;y<b.length;y++){var w=b[y];h(w),w.isBundledBezier()&&w.dirtyBoundingBoxCache()}}else{var _=m.parent();0!==_.length&&p(_,m)}t&&(m._private.removed=!0)}var x=o._private.elements;o._private.hasCompoundNodes=!1;for(var E=0;E<x.length;E++)if(x[E].isParent()){o._private.hasCompoundNodes=!0;break}var S=new Cu(this.cy(),r);S.size()>0&&(e?S.emitAndNotify("remove"):t&&S.emit("remove"));for(var C=0;C<f.length;C++){var T=f[C];t&&T.removed()||T.updateStyle()}return S},Tu.move=function(e){var t=this._private.cy,n=this,r=!1,i=!1,o=function(e){return null==e?e:""+e};if(void 0!==e.source||void 0!==e.target){var a=o(e.source),s=o(e.target),l=null!=a&&t.hasElementWithId(a),c=null!=s&&t.hasElementWithId(s);(l||c)&&(t.batch(function(){n.remove(r,i),n.emitAndNotify("moveout");for(var e=0;e<n.length;e++){var t=n[e],o=t._private.data;t.isEdge()&&(l&&(o.source=a),c&&(o.target=s))}n.restore(r,i)}),n.emitAndNotify("move"))}else if(void 0!==e.parent){var u=o(e.parent);if(null===u||t.hasElementWithId(u)){var d=null===u?void 0:u;t.batch(function(){var e=n.remove(r,i);e.emitAndNotify("moveout");for(var t=0;t<n.length;t++){var o=n[t],a=o._private.data;o.isNode()&&(a.parent=d)}e.restore(r,i)}),n.emitAndNotify("move")}}return this},[Ji,hl,fl,jl,zl,Xl,Jl,Rc,qc,Xc,Zc,tu,iu,lu,mu,bu].forEach(function(e){Re(Tu,e)});var ku={add:function(e){var t,n=this;if(le(e)){var r=e;if(r._private.cy===n)t=r.restore();else{for(var i=[],o=0;o<r.length;o++){var a=r[o];i.push(a.json())}t=new Cu(n,i)}}else if(ne(e))t=new Cu(n,e);else if(re(e)&&(ne(e.nodes)||ne(e.edges))){for(var s=e,l=[],c=["nodes","edges"],u=0,d=c.length;u<d;u++){var h=c[u],f=s[h];if(ne(f))for(var p=0,g=f.length;p<g;p++){var m=Re({group:h},f[p]);l.push(m)}}t=new Cu(n,l)}else t=new Zt(n,e).collection();return t},remove:function(e){if(le(e));else if(ee(e)){var t=e;e=this.$(t)}return e.remove()}};function Ou(e,t,n,r){var i=4,o=.001,a=1e-7,s=10,l=11,c=1/(l-1),u="undefined"!=typeof Float32Array;if(4!==arguments.length)return!1;for(var d=0;d<4;++d)if("number"!=typeof arguments[d]||isNaN(arguments[d])||!isFinite(arguments[d]))return!1;e=Math.min(e,1),n=Math.min(n,1),e=Math.max(e,0),n=Math.max(n,0);var h=u?new Float32Array(l):new Array(l);function f(e,t){return 1-3*t+3*e}function p(e,t){return 3*t-6*e}function g(e){return 3*e}function m(e,t,n){return((f(t,n)*e+p(t,n))*e+g(t))*e}function v(e,t,n){return 3*f(t,n)*e*e+2*p(t,n)*e+g(t)}function A(t,r){for(var o=0;o<i;++o){var a=v(r,e,n);if(0===a)return r;r-=(m(r,e,n)-t)/a}return r}function b(){for(var t=0;t<l;++t)h[t]=m(t*c,e,n)}function y(t,r,i){var o,l,c=0;do{(o=m(l=r+(i-r)/2,e,n)-t)>0?i=l:r=l}while(Math.abs(o)>a&&++c<s);return l}function w(t){for(var r=0,i=1,a=l-1;i!==a&&h[i]<=t;++i)r+=c;--i;var s=r+(t-h[i])/(h[i+1]-h[i])*c,u=v(s,e,n);return u>=o?A(t,s):0===u?s:y(t,r,r+c)}var _=!1;function x(){_=!0,e===t&&n===r||b()}var E=function(i){return _||x(),e===t&&n===r?i:0===i?0:1===i?1:m(w(i),t,r)};E.getControlPoints=function(){return[{x:e,y:t},{x:n,y:r}]};var S="generateBezier("+[e,t,n,r]+")";return E.toString=function(){return S},E}var Mu=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,n,r){var i={x:t.x+r.dx*n,v:t.v+r.dv*n,tension:t.tension,friction:t.friction};return{dx:i.v,dv:e(i)}}function n(n,r){var i={dx:n.v,dv:e(n)},o=t(n,.5*r,i),a=t(n,.5*r,o),s=t(n,r,a),l=1/6*(i.dx+2*(o.dx+a.dx)+s.dx),c=1/6*(i.dv+2*(o.dv+a.dv)+s.dv);return n.x=n.x+l*r,n.v=n.v+c*r,n}return function e(t,r,i){var o,a,s,l={x:-1,v:0,tension:null,friction:null},c=[0],u=0,d=1e-4,h=.016;for(t=parseFloat(t)||500,r=parseFloat(r)||20,i=i||null,l.tension=t,l.friction=r,a=(o=null!==i)?(u=e(t,r))/i*h:h;s=n(s||l,a),c.push(1+s.x),u+=16,Math.abs(s.x)>d&&Math.abs(s.v)>d;);return o?function(e){return c[e*(c.length-1)|0]}:u}}(),Iu=function(e,t,n,r){var i=Ou(e,t,n,r);return function(e,t,n){return e+(t-e)*i(n)}},Du={linear:function(e,t,n){return e+(t-e)*n},ease:Iu(.25,.1,.25,1),"ease-in":Iu(.42,0,1,1),"ease-out":Iu(0,0,.58,1),"ease-in-out":Iu(.42,0,.58,1),"ease-in-sine":Iu(.47,0,.745,.715),"ease-out-sine":Iu(.39,.575,.565,1),"ease-in-out-sine":Iu(.445,.05,.55,.95),"ease-in-quad":Iu(.55,.085,.68,.53),"ease-out-quad":Iu(.25,.46,.45,.94),"ease-in-out-quad":Iu(.455,.03,.515,.955),"ease-in-cubic":Iu(.55,.055,.675,.19),"ease-out-cubic":Iu(.215,.61,.355,1),"ease-in-out-cubic":Iu(.645,.045,.355,1),"ease-in-quart":Iu(.895,.03,.685,.22),"ease-out-quart":Iu(.165,.84,.44,1),"ease-in-out-quart":Iu(.77,0,.175,1),"ease-in-quint":Iu(.755,.05,.855,.06),"ease-out-quint":Iu(.23,1,.32,1),"ease-in-out-quint":Iu(.86,0,.07,1),"ease-in-expo":Iu(.95,.05,.795,.035),"ease-out-expo":Iu(.19,1,.22,1),"ease-in-out-expo":Iu(1,0,0,1),"ease-in-circ":Iu(.6,.04,.98,.335),"ease-out-circ":Iu(.075,.82,.165,1),"ease-in-out-circ":Iu(.785,.135,.15,.86),spring:function(e,t,n){if(0===n)return Du.linear;var r=Mu(e,t,n);return function(e,t,n){return e+(t-e)*r(n)}},"cubic-bezier":Iu};function Nu(e,t,n,r,i){if(1===r)return n;if(t===n)return n;var o=i(t,n,r);return null==e||((e.roundValue||e.color)&&(o=Math.round(o)),void 0!==e.min&&(o=Math.max(o,e.min)),void 0!==e.max&&(o=Math.min(o,e.max))),o}function Ru(e,t){return null!=e.pfValue||null!=e.value?null==e.pfValue||null!=t&&"%"===t.type.units?e.value:e.pfValue:e}function Lu(e,t,n,r,i){var o=null!=i?i.type:null;n<0?n=0:n>1&&(n=1);var a=Ru(e,i),s=Ru(t,i);if(oe(a)&&oe(s))return Nu(o,a,s,n,r);if(ne(a)&&ne(s)){for(var l=[],c=0;c<s.length;c++){var u=a[c],d=s[c];if(null!=u&&null!=d){var h=Nu(o,u,d,n,r);l.push(h)}else l.push(d)}return l}}function Bu(e,t,n,r){var i=!r,o=e._private,a=t._private,s=a.easing,l=a.startTime,c=(r?e:e.cy()).style();if(!a.easingImpl)if(null==s)a.easingImpl=Du.linear;else{var u,d,h;u=ee(s)?c.parse("transition-timing-function",s).value:s,ee(u)?(d=u,h=[]):(d=u[1],h=u.slice(2).map(function(e){return+e})),h.length>0?("spring"===d&&h.push(a.duration),a.easingImpl=Du[d].apply(null,h)):a.easingImpl=Du[d]}var f,p=a.easingImpl;if(f=0===a.duration?1:(n-l)/a.duration,a.applying&&(f=a.progress),f<0?f=0:f>1&&(f=1),null==a.delay){var g=a.startPosition,m=a.position;if(m&&i&&!e.locked()){var v={};Pu(g.x,m.x)&&(v.x=Lu(g.x,m.x,f,p)),Pu(g.y,m.y)&&(v.y=Lu(g.y,m.y,f,p)),e.position(v)}var A=a.startPan,b=a.pan,y=o.pan,w=null!=b&&r;w&&(Pu(A.x,b.x)&&(y.x=Lu(A.x,b.x,f,p)),Pu(A.y,b.y)&&(y.y=Lu(A.y,b.y,f,p)),e.emit("pan"));var _=a.startZoom,x=a.zoom,E=null!=x&&r;E&&(Pu(_,x)&&(o.zoom=Qn(o.minZoom,Lu(_,x,f,p),o.maxZoom)),e.emit("zoom")),(w||E)&&e.emit("viewport");var S=a.style;if(S&&S.length>0&&i){for(var C=0;C<S.length;C++){var T=S[C],k=T.name,O=T,M=a.startStyle[k],I=Lu(M,O,f,p,c.properties[M.name]);c.overrideBypass(e,k,I)}e.emit("style")}}return a.progress=f,f}function Pu(e,t){return!(null==e||null==t||!(oe(e)&&oe(t)||e&&t))}function Fu(e,t,n,r){var i=t._private;i.started=!0,i.startTime=n-i.progress*i.duration}function $u(e,t){var n=t._private.aniEles,r=[];function i(t,n){var i=t._private,o=i.animation.current,a=i.animation.queue,s=!1;if(0===o.length){var l=a.shift();l&&o.push(l)}for(var c=function(e){for(var t=e.length-1;t>=0;t--)(0,e[t])();e.splice(0,e.length)},u=o.length-1;u>=0;u--){var d=o[u],h=d._private;h.stopped?(o.splice(u,1),h.hooked=!1,h.playing=!1,h.started=!1,c(h.frames)):(h.playing||h.applying)&&(h.playing&&h.applying&&(h.applying=!1),h.started||Fu(t,d,e),Bu(t,d,e,n),h.applying&&(h.applying=!1),c(h.frames),null!=h.step&&h.step(e),d.completed()&&(o.splice(u,1),h.hooked=!1,h.playing=!1,h.started=!1,c(h.completes)),s=!0)}return n||0!==o.length||0!==a.length||r.push(t),s}for(var o=!1,a=0;a<n.length;a++){var s=i(n[a]);o=o||s}var l=i(t,!0);(o||l)&&(n.length>0?t.notify("draw",n):t.notify("draw")),n.unmerge(r),t.emit("step")}var ju={animate:dl.animate(),animation:dl.animation(),animated:dl.animated(),clearQueue:dl.clearQueue(),delay:dl.delay(),delayAnimation:dl.delayAnimation(),stop:dl.stop(),addToAnimationPool:function(e){var t=this;t.styleEnabled()&&t._private.aniEles.merge(e)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var e=this;if(e._private.animationsRunning=!0,e.styleEnabled()){var t=e.renderer();t&&t.beforeRender?t.beforeRender(function(t,n){$u(n,e)},t.beforeRenderPriorities.animations):n()}function n(){e._private.animationsRunning&&ut(function(t){$u(t,e),n()})}}},Hu={qualifierCompare:function(e,t){return null==e||null==t?null==e&&null==t:e.sameText(t)},eventMatches:function(e,t,n){var r=t.qualifier;return null==r||e!==n.target&&ce(n.target)&&r.matches(n.target)},addEventFields:function(e,t){t.cy=e,t.target=e},callbackContext:function(e,t,n){return null!=t.qualifier?n.target:e}},Uu=function(e){return ee(e)?new Fl(e):e},Qu={createEmitter:function(){var e=this._private;return e.emitter||(e.emitter=new Qc(Hu,this)),this},emitter:function(){return this._private.emitter},on:function(e,t,n){return this.emitter().on(e,Uu(t),n),this},removeListener:function(e,t,n){return this.emitter().removeListener(e,Uu(t),n),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(e,t,n){return this.emitter().one(e,Uu(t),n),this},once:function(e,t,n){return this.emitter().one(e,Uu(t),n),this},emit:function(e,t){return this.emitter().emit(e,t),this},emitAndNotify:function(e,t){return this.emit(e),this.notify(e,t),this}};dl.eventAliasesOn(Qu);var zu={png:function(e){return e=e||{},this._private.renderer.png(e)},jpg:function(e){var t=this._private.renderer;return(e=e||{}).bg=e.bg||"#fff",t.jpg(e)}};zu.jpeg=zu.jpg;var Wu={layout:function(e){var t=this;if(null!=e)if(null!=e.name){var n=e.name,r=t.extension("layout",n);if(null!=r){var i;i=ee(e.eles)?t.$(e.eles):null!=e.eles?e.eles:t.$();var o=new r(Re({},e,{cy:t,eles:i}));return o}Nt("No such layout `"+n+"` found.  Did you forget to import it and `cytoscape.use()` it?")}else Nt("A `name` must be specified to make a layout");else Nt("Layout options must be specified to make a layout")}};Wu.createLayout=Wu.makeLayout=Wu.layout;var Gu={notify:function(e,t){var n=this._private;if(this.batching()){n.batchNotifications=n.batchNotifications||{};var r=n.batchNotifications[e]=n.batchNotifications[e]||this.collection();null!=t&&r.merge(t)}else if(n.notificationsEnabled){var i=this.renderer();!this.destroyed()&&i&&i.notify(e,t)}},notifications:function(e){var t=this._private;return void 0===e?t.notificationsEnabled:(t.notificationsEnabled=!!e,this)},noNotifications:function(e){this.notifications(!1),e(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var e=this._private;return null==e.batchCount&&(e.batchCount=0),0===e.batchCount&&(e.batchStyleEles=this.collection(),e.batchNotifications={}),e.batchCount++,this},endBatch:function(){var e=this._private;if(0===e.batchCount)return this;if(e.batchCount--,0===e.batchCount){e.batchStyleEles.updateStyle();var t=this.renderer();Object.keys(e.batchNotifications).forEach(function(n){var r=e.batchNotifications[n];r.empty()?t.notify(n):t.notify(n,r)})}return this},batch:function(e){return this.startBatch(),e(),this.endBatch(),this},batchData:function(e){var t=this;return this.batch(function(){for(var n=Object.keys(e),r=0;r<n.length;r++){var i=n[r],o=e[i];t.getElementById(i).data(o)}})}},Vu=Ut({hideEdgesOnViewport:!1,textureOnViewport:!1,motionBlur:!1,motionBlurOpacity:.05,pixelRatio:void 0,desktopTapThreshold:4,touchTapThreshold:8,wheelSensitivity:1,debug:!1,showFps:!1,webgl:!1,webglDebug:!1,webglDebugShowAtlases:!1,webglTexSize:2048,webglTexRows:36,webglTexRowsNodes:18,webglBatchSize:2048,webglTexPerBatch:14,webglBgColor:[255,255,255]}),Ku={renderTo:function(e,t,n,r){return this._private.renderer.renderTo(e,t,n,r),this},renderer:function(){return this._private.renderer},forceRender:function(){return this.notify("draw"),this},resize:function(){return this.invalidateSize(),this.emitAndNotify("resize"),this},initRenderer:function(e){var t=this,n=t.extension("renderer",e.name);if(null!=n){void 0!==e.wheelSensitivity&&Lt("You have set a custom wheel sensitivity.  This will make your app zoom unnaturally when using mainstream mice.  You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine.");var r=Vu(e);r.cy=t,t._private.renderer=new n(r),this.notify("init")}else Nt("Can not initialise: No such renderer `".concat(e.name,"` found. Did you forget to import it and `cytoscape.use()` it?"))},destroyRenderer:function(){var e=this;e.notify("destroy");var t=e.container();if(t)for(t._cyreg=null;t.childNodes.length>0;)t.removeChild(t.childNodes[0]);e._private.renderer=null,e.mutableElements().forEach(function(e){var t=e._private;t.rscratch={},t.rstyle={},t.animation.current=[],t.animation.queue=[]})},onRender:function(e){return this.on("render",e)},offRender:function(e){return this.off("render",e)}};Ku.invalidateDimensions=Ku.resize;var Yu={collection:function(e,t){return ee(e)?this.$(e):le(e)?e.collection():ne(e)?(t||(t={}),new Cu(this,e,t.unique,t.removed)):new Cu(this)},nodes:function(e){var t=this.$(function(e){return e.isNode()});return e?t.filter(e):t},edges:function(e){var t=this.$(function(e){return e.isEdge()});return e?t.filter(e):t},$:function(e){var t=this._private.elements;return e?t.filter(e):t.spawnSelf()},mutableElements:function(){return this._private.elements}};Yu.elements=Yu.filter=Yu.$;var qu={},Xu="t",Ju="f";qu.apply=function(e){for(var t=this,n=t._private.cy.collection(),r=0;r<e.length;r++){var i=e[r],o=t.getContextMeta(i);if(!o.empty){var a=t.getContextStyle(o),s=t.applyContextStyle(o,a,i);i._private.appliedInitStyle?t.updateTransitions(i,s.diffProps):i._private.appliedInitStyle=!0,t.updateStyleHints(i)&&n.push(i)}}return n},qu.getPropertiesDiff=function(e,t){var n=this,r=n._private.propDiffs=n._private.propDiffs||{},i=e+"-"+t,o=r[i];if(o)return o;for(var a=[],s={},l=0;l<n.length;l++){var c=n[l],u=e[l]===Xu,d=t[l]===Xu,h=u!==d,f=c.mappedProperties.length>0;if(h||d&&f){var p=void 0;h&&f||h?p=c.properties:f&&(p=c.mappedProperties);for(var g=0;g<p.length;g++){for(var m=p[g],v=m.name,A=!1,b=l+1;b<n.length;b++){var y=n[b];if(t[b]===Xu&&(A=null!=y.properties[m.name]))break}s[v]||A||(s[v]=!0,a.push(v))}}}return r[i]=a,a},qu.getContextMeta=function(e){for(var t,n=this,r="",i=e._private.styleCxtKey||"",o=0;o<n.length;o++){var a=n[o];r+=a.selector&&a.selector.matches(e)?Xu:Ju}return t=n.getPropertiesDiff(i,r),e._private.styleCxtKey=r,{key:r,diffPropNames:t,empty:0===t.length}},qu.getContextStyle=function(e){var t=e.key,n=this,r=this._private.contextStyles=this._private.contextStyles||{};if(r[t])return r[t];for(var i={_private:{key:t}},o=0;o<n.length;o++){var a=n[o];if(t[o]===Xu)for(var s=0;s<a.properties.length;s++){var l=a.properties[s];i[l.name]=l}}return r[t]=i,i},qu.applyContextStyle=function(e,t,n){for(var r=this,i=e.diffPropNames,o={},a=r.types,s=0;s<i.length;s++){var l=i[s],c=t[l],u=n.pstyle(l);if(!c){if(!u)continue;c=u.bypass?{name:l,deleteBypassed:!0}:{name:l,delete:!0}}if(u!==c){if(c.mapped===a.fn&&null!=u&&null!=u.mapping&&u.mapping.value===c.value){var d=u.mapping;if((d.fnValue=c.value(n))===d.prevFnValue)continue}var h=o[l]={prev:u};r.applyParsedProperty(n,c),h.next=n.pstyle(l),h.next&&h.next.bypass&&(h.next=h.next.bypassed)}}return{diffProps:o}},qu.updateStyleHints=function(e){var t=e._private,n=this,r=n.propertyGroupNames,i=n.propertyGroupKeys,o=function(e,t,r){return n.getPropertiesHash(e,t,r)},a=t.styleKey;if(e.removed())return!1;var s="nodes"===t.group,l=e._private.style;r=Object.keys(l);for(var c=0;c<i.length;c++){var u=i[c];t.styleKeys[u]=[ht,pt]}for(var d=function(e,n){return t.styleKeys[n][0]=mt(e,t.styleKeys[n][0])},h=function(e,n){return t.styleKeys[n][1]=vt(e,t.styleKeys[n][1])},f=function(e,t){d(e,t),h(e,t)},p=function(e,t){for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);d(r,t),h(r,t)}},g=2e9,m=function(e){return-128<e&&e<128&&Math.floor(e)!==e?g-(1024*e|0):e},v=0;v<r.length;v++){var A=r[v],b=l[A];if(null!=b){var y=this.properties[A],w=y.type,_=y.groupKey,x=void 0;null!=y.hashOverride?x=y.hashOverride(e,b):null!=b.pfValue&&(x=b.pfValue);var E=null==y.enums?b.value:null,S=null!=x,C=S||null!=E,T=b.units;w.number&&C&&!w.multiple?(f(m(S?x:E),_),S||null==T||p(T,_)):p(b.strValue,_)}}for(var k=[ht,pt],O=0;O<i.length;O++){var M=i[O],I=t.styleKeys[M];k[0]=mt(I[0],k[0]),k[1]=vt(I[1],k[1])}t.styleKey=At(k[0],k[1]);var D=t.styleKeys;t.labelDimsKey=bt(D.labelDimensions);var N=o(e,["label"],D.labelDimensions);if(t.labelKey=bt(N),t.labelStyleKey=bt(yt(D.commonLabel,N)),!s){var R=o(e,["source-label"],D.labelDimensions);t.sourceLabelKey=bt(R),t.sourceLabelStyleKey=bt(yt(D.commonLabel,R));var L=o(e,["target-label"],D.labelDimensions);t.targetLabelKey=bt(L),t.targetLabelStyleKey=bt(yt(D.commonLabel,L))}if(s){var B=t.styleKeys,P=B.nodeBody,F=B.nodeBorder,$=B.nodeOutline,j=B.backgroundImage,H=B.compound,U=B.pie,Q=B.stripe,z=[P,F,$,j,H,U,Q].filter(function(e){return null!=e}).reduce(yt,[ht,pt]);t.nodeKey=bt(z),t.hasPie=null!=U&&U[0]!==ht&&U[1]!==pt,t.hasStripe=null!=Q&&Q[0]!==ht&&Q[1]!==pt}return a!==t.styleKey},qu.clearStyleHints=function(e){var t=e._private;t.styleCxtKey="",t.styleKeys={},t.styleKey=null,t.labelKey=null,t.labelStyleKey=null,t.sourceLabelKey=null,t.sourceLabelStyleKey=null,t.targetLabelKey=null,t.targetLabelStyleKey=null,t.nodeKey=null,t.hasPie=null,t.hasStripe=null},qu.applyParsedProperty=function(e,t){var n,r=this,i=t,o=e._private.style,a=r.types,s=r.properties[i.name].type,l=i.bypass,c=o[i.name],u=c&&c.bypass,d=e._private,h="mapping",f=function(e){return null==e?null:null!=e.pfValue?e.pfValue:e.value},p=function(){var t=f(c),n=f(i);r.checkTriggers(e,i.name,t,n)};if("curve-style"===t.name&&e.isEdge()&&("bezier"!==t.value&&e.isLoop()||"haystack"===t.value&&(e.source().isParent()||e.target().isParent()))&&(i=t=this.parse(t.name,"bezier",l)),i.delete)return o[i.name]=void 0,p(),!0;if(i.deleteBypassed)return c?!!c.bypass&&(c.bypassed=void 0,p(),!0):(p(),!0);if(i.deleteBypass)return c?!!c.bypass&&(o[i.name]=c.bypassed,p(),!0):(p(),!0);var g=function(){Lt("Do not assign mappings to elements without corresponding data (i.e. ele `"+e.id()+"` has no mapping for property `"+i.name+"` with data field `"+i.field+"`); try a `["+i.field+"]` selector to limit scope to elements with `"+i.field+"` defined")};switch(i.mapped){case a.mapData:for(var m,v=i.field.split("."),A=d.data,b=0;b<v.length&&A;b++)A=A[v[b]];if(null==A)return g(),!1;if(!oe(A))return Lt("Do not use continuous mappers without specifying numeric data (i.e. `"+i.field+": "+A+"` for `"+e.id()+"` is non-numeric)"),!1;var y=i.fieldMax-i.fieldMin;if((m=0===y?0:(A-i.fieldMin)/y)<0?m=0:m>1&&(m=1),s.color){var w=i.valueMin[0],_=i.valueMax[0],x=i.valueMin[1],E=i.valueMax[1],S=i.valueMin[2],C=i.valueMax[2],T=null==i.valueMin[3]?1:i.valueMin[3],k=null==i.valueMax[3]?1:i.valueMax[3],O=[Math.round(w+(_-w)*m),Math.round(x+(E-x)*m),Math.round(S+(C-S)*m),Math.round(T+(k-T)*m)];n={bypass:i.bypass,name:i.name,value:O,strValue:"rgb("+O[0]+", "+O[1]+", "+O[2]+")"}}else{if(!s.number)return!1;var M=i.valueMin+(i.valueMax-i.valueMin)*m;n=this.parse(i.name,M,i.bypass,h)}if(!n)return g(),!1;n.mapping=i,i=n;break;case a.data:for(var I=i.field.split("."),D=d.data,N=0;N<I.length&&D;N++)D=D[I[N]];if(null!=D&&(n=this.parse(i.name,D,i.bypass,h)),!n)return g(),!1;n.mapping=i,i=n;break;case a.fn:var R=i.value,L=null!=i.fnValue?i.fnValue:R(e);if(i.prevFnValue=L,null==L)return Lt("Custom function mappers may not return null (i.e. `"+i.name+"` for ele `"+e.id()+"` is null)"),!1;if(!(n=this.parse(i.name,L,i.bypass,h)))return Lt("Custom function mappers may not return invalid values for the property type (i.e. `"+i.name+"` for ele `"+e.id()+"` is invalid)"),!1;n.mapping=Pt(i),i=n;break;case void 0:break;default:return!1}return l?(i.bypassed=u?c.bypassed:c,o[i.name]=i):u?c.bypassed=i:o[i.name]=i,p(),!0},qu.cleanElements=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(this.clearStyleHints(r),r.dirtyCompoundBoundsCache(),r.dirtyBoundingBoxCache(),t)for(var i=r._private.style,o=Object.keys(i),a=0;a<o.length;a++){var s=o[a],l=i[s];null!=l&&(l.bypass?l.bypassed=null:i[s]=null)}else r._private.style={}}},qu.update=function(){this._private.cy.mutableElements().updateStyle()},qu.updateTransitions=function(e,t){var n=this,r=e._private,i=e.pstyle("transition-property").value,o=e.pstyle("transition-duration").pfValue,a=e.pstyle("transition-delay").pfValue;if(i.length>0&&o>0){for(var s={},l=!1,c=0;c<i.length;c++){var u=i[c],d=e.pstyle(u),h=t[u];if(h){var f=h.prev,p=null!=h.next?h.next:d,g=!1,m=void 0,v=1e-6;f&&(oe(f.pfValue)&&oe(p.pfValue)?(g=p.pfValue-f.pfValue,m=f.pfValue+v*g):oe(f.value)&&oe(p.value)?(g=p.value-f.value,m=f.value+v*g):ne(f.value)&&ne(p.value)&&(g=f.value[0]!==p.value[0]||f.value[1]!==p.value[1]||f.value[2]!==p.value[2],m=f.strValue),g&&(s[u]=p.strValue,this.applyBypass(e,u,m),l=!0))}}if(!l)return;r.transitioning=!0,new lo(function(t){a>0?e.delayAnimation(a).play().promise().then(t):t()}).then(function(){return e.animation({style:s,duration:o,easing:e.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){n.removeBypasses(e,i),e.emitAndNotify("style"),r.transitioning=!1})}else r.transitioning&&(this.removeBypasses(e,i),e.emitAndNotify("style"),r.transitioning=!1)},qu.checkTrigger=function(e,t,n,r,i,o){var a=this.properties[t],s=i(a);e.removed()||null!=s&&s(n,r,e)&&o(a)},qu.checkZOrderTrigger=function(e,t,n,r){var i=this;this.checkTrigger(e,t,n,r,function(e){return e.triggersZOrder},function(){i._private.cy.notify("zorder",e)})},qu.checkBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBounds},function(t){e.dirtyCompoundBoundsCache(),e.dirtyBoundingBoxCache()})},qu.checkConnectedEdgesBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBoundsOfConnectedEdges},function(t){e.connectedEdges().forEach(function(e){e.dirtyBoundingBoxCache()})})},qu.checkParallelEdgesBoundsTrigger=function(e,t,n,r){this.checkTrigger(e,t,n,r,function(e){return e.triggersBoundsOfParallelEdges},function(t){e.parallelEdges().forEach(function(e){e.dirtyBoundingBoxCache()})})},qu.checkTriggers=function(e,t,n,r){e.dirtyStyleCache(),this.checkZOrderTrigger(e,t,n,r),this.checkBoundsTrigger(e,t,n,r),this.checkConnectedEdgesBoundsTrigger(e,t,n,r),this.checkParallelEdgesBoundsTrigger(e,t,n,r)};var Zu={applyBypass:function(e,t,n,r){var i=this,o=[],a=!0;if("*"===t||"**"===t){if(void 0!==n)for(var s=0;s<i.properties.length;s++){var l=i.properties[s].name,c=this.parse(l,n,!0);c&&o.push(c)}}else if(ee(t)){var u=this.parse(t,n,!0);u&&o.push(u)}else{if(!re(t))return!1;var d=t;r=n;for(var h=Object.keys(d),f=0;f<h.length;f++){var p=h[f],g=d[p];if(void 0===g&&(g=d[we(p)]),void 0!==g){var m=this.parse(p,g,!0);m&&o.push(m)}}}if(0===o.length)return!1;for(var v=!1,A=0;A<e.length;A++){for(var b=e[A],y={},w=void 0,_=0;_<o.length;_++){var x=o[_];if(r){var E=b.pstyle(x.name);w=y[x.name]={prev:E}}v=this.applyParsedProperty(b,Pt(x))||v,r&&(w.next=b.pstyle(x.name))}v&&this.updateStyleHints(b),r&&this.updateTransitions(b,y,a)}return v},overrideBypass:function(e,t,n){t=ye(t);for(var r=0;r<e.length;r++){var i=e[r],o=i._private.style[t],a=this.properties[t].type,s=a.color,l=a.mutiple,c=o?null!=o.pfValue?o.pfValue:o.value:null;o&&o.bypass?(o.value=n,null!=o.pfValue&&(o.pfValue=n),o.strValue=s?"rgb("+n.join(",")+")":l?n.join(" "):""+n,this.updateStyleHints(i)):this.applyBypass(i,t,n),this.checkTriggers(i,t,c,n)}},removeAllBypasses:function(e,t){return this.removeBypasses(e,this.propertyNames,t)},removeBypasses:function(e,t,n){for(var r=!0,i=0;i<e.length;i++){for(var o=e[i],a={},s=0;s<t.length;s++){var l=t[s],c=this.properties[l],u=o.pstyle(c.name);if(u&&u.bypass){var d="",h=this.parse(l,d,!0),f=a[c.name]={prev:u};this.applyParsedProperty(o,h),f.next=o.pstyle(c.name)}}this.updateStyleHints(o),n&&this.updateTransitions(o,a,r)}}},ed={getEmSizeInPixels:function(){var e=this.containerCss("font-size");return null!=e?parseFloat(e):1},containerCss:function(e){var t=this._private.cy,n=t.container(),r=t.window();if(r&&n&&r.getComputedStyle)return r.getComputedStyle(n).getPropertyValue(e)}},td={getRenderedStyle:function(e,t){return t?this.getStylePropertyValue(e,t,!0):this.getRawStyle(e,!0)},getRawStyle:function(e,t){var n=this;if(e=e[0]){for(var r={},i=0;i<n.properties.length;i++){var o=n.properties[i],a=n.getStylePropertyValue(e,o.name,t);null!=a&&(r[o.name]=a,r[we(o.name)]=a)}return r}},getIndexedStyle:function(e,t,n,r){var i=e.pstyle(t)[n][r];return null!=i?i:e.cy().style().getDefaultProperty(t)[n][0]},getStylePropertyValue:function(e,t,n){var r=this;if(e=e[0]){var i=r.properties[t];i.alias&&(i=i.pointsTo);var o=i.type,a=e.pstyle(i.name);if(a){var s=a.value,l=a.units,c=a.strValue;if(n&&o.number&&null!=s&&oe(s)){var u=e.cy().zoom(),d=function(e){return e*u},h=function(e,t){return d(e)+t},f=ne(s);return(f?l.every(function(e){return null!=e}):null!=l)?f?s.map(function(e,t){return h(e,l[t])}).join(" "):h(s,l):f?s.map(function(e){return ee(e)?e:""+d(e)}).join(" "):""+d(s)}if(null!=c)return c}return null}},getAnimationStartStyle:function(e,t){for(var n={},r=0;r<t.length;r++){var i=t[r].name,o=e.pstyle(i);void 0!==o&&(o=re(o)?this.parse(i,o.strValue):this.parse(i,o)),o&&(n[i]=o)}return n},getPropsList:function(e){var t=[],n=e,r=this.properties;if(n)for(var i=Object.keys(n),o=0;o<i.length;o++){var a=i[o],s=n[a],l=r[a]||r[ye(a)],c=this.parse(l.name,s);c&&t.push(c)}return t},getNonDefaultPropertiesHash:function(e,t,n){var r,i,o,a,s,l,c=n.slice();for(s=0;s<t.length;s++)if(r=t[s],null!=(i=e.pstyle(r,!1)))if(null!=i.pfValue)c[0]=mt(a,c[0]),c[1]=vt(a,c[1]);else for(o=i.strValue,l=0;l<o.length;l++)a=o.charCodeAt(l),c[0]=mt(a,c[0]),c[1]=vt(a,c[1]);return c}};td.getPropertiesHash=td.getNonDefaultPropertiesHash;var nd={appendFromJson:function(e){for(var t=this,n=0;n<e.length;n++){var r=e[n],i=r.selector,o=r.style||r.css,a=Object.keys(o);t.selector(i);for(var s=0;s<a.length;s++){var l=a[s],c=o[l];t.css(l,c)}}return t},fromJson:function(e){var t=this;return t.resetToDefault(),t.appendFromJson(e),t},json:function(){for(var e=[],t=this.defaultLength;t<this.length;t++){for(var n=this[t],r=n.selector,i=n.properties,o={},a=0;a<i.length;a++){var s=i[a];o[s.name]=s.strValue}e.push({selector:r?r.toString():"core",style:o})}return e}},rd={appendFromString:function(e){var t,n,r,i=this,o=this,a=""+e;function s(){a=a.length>t.length?a.substr(t.length):""}function l(){n=n.length>r.length?n.substr(r.length):""}for(a=a.replace(/[/][*](\s|.)+?[*][/]/g,"");!a.match(/^\s*$/);){var c=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!c){Lt("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}t=c[0];var u=c[1];if("core"!==u&&new Fl(u).invalid)Lt("Skipping parsing of block: Invalid selector found in string stylesheet: "+u),s();else{var d=c[2],h=!1;n=d;for(var f=[];!n.match(/^\s*$/);){var p=n.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!p){Lt("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+d),h=!0;break}r=p[0];var g=p[1],m=p[2];i.properties[g]?o.parse(g,m)?(f.push({name:g,val:m}),l()):(Lt("Skipping property: Invalid property definition in: "+r),l()):(Lt("Skipping property: Invalid property name in: "+r),l())}if(h){s();break}o.selector(u);for(var v=0;v<f.length;v++){var A=f[v];o.css(A.name,A.val)}s()}}return o},fromString:function(e){var t=this;return t.resetToDefault(),t.appendFromString(e),t}},id={};(function(){var e=Se,t=Te,n=Oe,r=Me,i=Ie,o=function(e){return"^"+e+"\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"},a=function(o){var a=e+"|\\w+|"+t+"|"+n+"|"+r+"|"+i;return"^"+o+"\\s*\\(([\\w\\.]+)\\s*\\,\\s*("+e+")\\s*\\,\\s*("+e+")\\s*,\\s*("+a+")\\s*\\,\\s*("+a+")\\)$"},s=["^url\\s*\\(\\s*['\"]?(.+?)['\"]?\\s*\\)$","^(none)$","^(.+)$"];id.types={time:{number:!0,min:0,units:"s|ms",implicitUnits:"ms"},percent:{number:!0,min:0,max:100,units:"%",implicitUnits:"%"},percentages:{number:!0,min:0,max:100,units:"%",implicitUnits:"%",multiple:!0},zeroOneNumber:{number:!0,min:0,max:1,unitless:!0},zeroOneNumbers:{number:!0,min:0,max:1,unitless:!0,multiple:!0},nOneOneNumber:{number:!0,min:-1,max:1,unitless:!0},nonNegativeInt:{number:!0,min:0,integer:!0,unitless:!0},nonNegativeNumber:{number:!0,min:0,unitless:!0},position:{enums:["parent","origin"]},nodeSize:{number:!0,min:0,enums:["label"]},number:{number:!0,unitless:!0},numbers:{number:!0,unitless:!0,multiple:!0},positiveNumber:{number:!0,unitless:!0,min:0,strictMin:!0},size:{number:!0,min:0},bidirectionalSize:{number:!0},bidirectionalSizeMaybePercent:{number:!0,allowPercent:!0},bidirectionalSizes:{number:!0,multiple:!0},sizeMaybePercent:{number:!0,min:0,allowPercent:!0},axisDirection:{enums:["horizontal","leftward","rightward","vertical","upward","downward","auto"]},axisDirectionExplicit:{enums:["leftward","rightward","upward","downward"]},axisDirectionPrimary:{enums:["horizontal","vertical"]},paddingRelativeTo:{enums:["width","height","average","min","max"]},bgWH:{number:!0,min:0,allowPercent:!0,enums:["auto"],multiple:!0},bgPos:{number:!0,allowPercent:!0,multiple:!0},bgRelativeTo:{enums:["inner","include-padding"],multiple:!0},bgRepeat:{enums:["repeat","repeat-x","repeat-y","no-repeat"],multiple:!0},bgFit:{enums:["none","contain","cover"],multiple:!0},bgCrossOrigin:{enums:["anonymous","use-credentials","null"],multiple:!0},bgClip:{enums:["none","node"],multiple:!0},bgContainment:{enums:["inside","over"],multiple:!0},color:{color:!0},colors:{color:!0,multiple:!0},fill:{enums:["solid","linear-gradient","radial-gradient"]},bool:{enums:["yes","no"]},bools:{enums:["yes","no"],multiple:!0},lineStyle:{enums:["solid","dotted","dashed"]},lineCap:{enums:["butt","round","square"]},linePosition:{enums:["center","inside","outside"]},lineJoin:{enums:["round","bevel","miter"]},borderStyle:{enums:["solid","dotted","dashed","double"]},curveStyle:{enums:["bezier","unbundled-bezier","haystack","segments","straight","straight-triangle","taxi","round-segments","round-taxi"]},radiusType:{enums:["arc-radius","influence-radius"],multiple:!0},fontFamily:{regex:'^([\\w- \\"]+(?:\\s*,\\s*[\\w- \\"]+)*)$'},fontStyle:{enums:["italic","normal","oblique"]},fontWeight:{enums:["normal","bold","bolder","lighter","100","200","300","400","500","600","800","900",100,200,300,400,500,600,700,800,900]},textDecoration:{enums:["none","underline","overline","line-through"]},textTransform:{enums:["none","uppercase","lowercase"]},textWrap:{enums:["none","wrap","ellipsis"]},textOverflowWrap:{enums:["whitespace","anywhere"]},textBackgroundShape:{enums:["rectangle","roundrectangle","round-rectangle"]},nodeShape:{enums:["rectangle","roundrectangle","round-rectangle","cutrectangle","cut-rectangle","bottomroundrectangle","bottom-round-rectangle","barrel","ellipse","triangle","round-triangle","square","pentagon","round-pentagon","hexagon","round-hexagon","concavehexagon","concave-hexagon","heptagon","round-heptagon","octagon","round-octagon","tag","round-tag","star","diamond","round-diamond","vee","rhomboid","right-rhomboid","polygon"]},overlayShape:{enums:["roundrectangle","round-rectangle","ellipse"]},cornerRadius:{number:!0,min:0,units:"px|em",implicitUnits:"px",enums:["auto"]},compoundIncludeLabels:{enums:["include","exclude"]},arrowShape:{enums:["tee","triangle","triangle-tee","circle-triangle","triangle-cross","triangle-backcurve","vee","square","circle","diamond","chevron","none"]},arrowFill:{enums:["filled","hollow"]},arrowWidth:{number:!0,units:"%|px|em",implicitUnits:"px",enums:["match-line"]},display:{enums:["element","none"]},visibility:{enums:["hidden","visible"]},zCompoundDepth:{enums:["bottom","orphan","auto","top"]},zIndexCompare:{enums:["auto","manual"]},valign:{enums:["top","center","bottom"]},halign:{enums:["left","center","right"]},justification:{enums:["left","center","right","auto"]},text:{string:!0},data:{mapping:!0,regex:o("data")},layoutData:{mapping:!0,regex:o("layoutData")},scratch:{mapping:!0,regex:o("scratch")},mapData:{mapping:!0,regex:a("mapData")},mapLayoutData:{mapping:!0,regex:a("mapLayoutData")},mapScratch:{mapping:!0,regex:a("mapScratch")},fn:{mapping:!0,fn:!0},url:{regexes:s,singleRegexMatchValue:!0},urls:{regexes:s,singleRegexMatchValue:!0,multiple:!0},propList:{propList:!0},angle:{number:!0,units:"deg|rad",implicitUnits:"rad"},textRotation:{number:!0,units:"deg|rad",implicitUnits:"rad",enums:["none","autorotate"]},polygonPointList:{number:!0,multiple:!0,evenMultiple:!0,min:-1,max:1,unitless:!0},edgeDistances:{enums:["intersection","node-position","endpoints"]},edgeEndpoint:{number:!0,multiple:!0,units:"%|px|em|deg|rad",implicitUnits:"px",enums:["inside-to-node","outside-to-node","outside-to-node-or-label","outside-to-line","outside-to-line-or-label"],singleEnum:!0,validate:function(e,t){switch(e.length){case 2:return"deg"!==t[0]&&"rad"!==t[0]&&"deg"!==t[1]&&"rad"!==t[1];case 1:return ee(e[0])||"deg"===t[0]||"rad"===t[0];default:return!1}}},easing:{regexes:["^(spring)\\s*\\(\\s*("+e+")\\s*,\\s*("+e+")\\s*\\)$","^(cubic-bezier)\\s*\\(\\s*("+e+")\\s*,\\s*("+e+")\\s*,\\s*("+e+")\\s*,\\s*("+e+")\\s*\\)$"],enums:["linear","ease","ease-in","ease-out","ease-in-out","ease-in-sine","ease-out-sine","ease-in-out-sine","ease-in-quad","ease-out-quad","ease-in-out-quad","ease-in-cubic","ease-out-cubic","ease-in-out-cubic","ease-in-quart","ease-out-quart","ease-in-out-quart","ease-in-quint","ease-out-quint","ease-in-out-quint","ease-in-expo","ease-out-expo","ease-in-out-expo","ease-in-circ","ease-out-circ","ease-in-out-circ"]},gradientDirection:{enums:["to-bottom","to-top","to-left","to-right","to-bottom-right","to-bottom-left","to-top-right","to-top-left","to-right-bottom","to-left-bottom","to-right-top","to-left-top"]},boundsExpansion:{number:!0,multiple:!0,min:0,validate:function(e){var t=e.length;return 1===t||2===t||4===t}}};var l={zeroNonZero:function(e,t){return(null==e||null==t)&&e!==t||0==e&&0!=t||0!=e&&0==t},any:function(e,t){return e!=t},emptyNonEmpty:function(e,t){var n=pe(e),r=pe(t);return n&&!r||!n&&r}},c=id.types,u=[{name:"label",type:c.text,triggersBounds:l.any,triggersZOrder:l.emptyNonEmpty},{name:"text-rotation",type:c.textRotation,triggersBounds:l.any},{name:"text-margin-x",type:c.bidirectionalSize,triggersBounds:l.any},{name:"text-margin-y",type:c.bidirectionalSize,triggersBounds:l.any}],d=[{name:"source-label",type:c.text,triggersBounds:l.any},{name:"source-text-rotation",type:c.textRotation,triggersBounds:l.any},{name:"source-text-margin-x",type:c.bidirectionalSize,triggersBounds:l.any},{name:"source-text-margin-y",type:c.bidirectionalSize,triggersBounds:l.any},{name:"source-text-offset",type:c.size,triggersBounds:l.any}],h=[{name:"target-label",type:c.text,triggersBounds:l.any},{name:"target-text-rotation",type:c.textRotation,triggersBounds:l.any},{name:"target-text-margin-x",type:c.bidirectionalSize,triggersBounds:l.any},{name:"target-text-margin-y",type:c.bidirectionalSize,triggersBounds:l.any},{name:"target-text-offset",type:c.size,triggersBounds:l.any}],f=[{name:"font-family",type:c.fontFamily,triggersBounds:l.any},{name:"font-style",type:c.fontStyle,triggersBounds:l.any},{name:"font-weight",type:c.fontWeight,triggersBounds:l.any},{name:"font-size",type:c.size,triggersBounds:l.any},{name:"text-transform",type:c.textTransform,triggersBounds:l.any},{name:"text-wrap",type:c.textWrap,triggersBounds:l.any},{name:"text-overflow-wrap",type:c.textOverflowWrap,triggersBounds:l.any},{name:"text-max-width",type:c.size,triggersBounds:l.any},{name:"text-outline-width",type:c.size,triggersBounds:l.any},{name:"line-height",type:c.positiveNumber,triggersBounds:l.any}],p=[{name:"text-valign",type:c.valign,triggersBounds:l.any},{name:"text-halign",type:c.halign,triggersBounds:l.any},{name:"color",type:c.color},{name:"text-outline-color",type:c.color},{name:"text-outline-opacity",type:c.zeroOneNumber},{name:"text-background-color",type:c.color},{name:"text-background-opacity",type:c.zeroOneNumber},{name:"text-background-padding",type:c.size,triggersBounds:l.any},{name:"text-border-opacity",type:c.zeroOneNumber},{name:"text-border-color",type:c.color},{name:"text-border-width",type:c.size,triggersBounds:l.any},{name:"text-border-style",type:c.borderStyle,triggersBounds:l.any},{name:"text-background-shape",type:c.textBackgroundShape,triggersBounds:l.any},{name:"text-justification",type:c.justification},{name:"box-select-labels",type:c.bool,triggersBounds:l.any}],g=[{name:"events",type:c.bool,triggersZOrder:l.any},{name:"text-events",type:c.bool,triggersZOrder:l.any}],m=[{name:"display",type:c.display,triggersZOrder:l.any,triggersBounds:l.any,triggersBoundsOfConnectedEdges:l.any,triggersBoundsOfParallelEdges:function(e,t,n){return e!==t&&"bezier"===n.pstyle("curve-style").value}},{name:"visibility",type:c.visibility,triggersZOrder:l.any},{name:"opacity",type:c.zeroOneNumber,triggersZOrder:l.zeroNonZero},{name:"text-opacity",type:c.zeroOneNumber},{name:"min-zoomed-font-size",type:c.size},{name:"z-compound-depth",type:c.zCompoundDepth,triggersZOrder:l.any},{name:"z-index-compare",type:c.zIndexCompare,triggersZOrder:l.any},{name:"z-index",type:c.number,triggersZOrder:l.any}],v=[{name:"overlay-padding",type:c.size,triggersBounds:l.any},{name:"overlay-color",type:c.color},{name:"overlay-opacity",type:c.zeroOneNumber,triggersBounds:l.zeroNonZero},{name:"overlay-shape",type:c.overlayShape,triggersBounds:l.any},{name:"overlay-corner-radius",type:c.cornerRadius}],A=[{name:"underlay-padding",type:c.size,triggersBounds:l.any},{name:"underlay-color",type:c.color},{name:"underlay-opacity",type:c.zeroOneNumber,triggersBounds:l.zeroNonZero},{name:"underlay-shape",type:c.overlayShape,triggersBounds:l.any},{name:"underlay-corner-radius",type:c.cornerRadius}],b=[{name:"transition-property",type:c.propList},{name:"transition-duration",type:c.time},{name:"transition-delay",type:c.time},{name:"transition-timing-function",type:c.easing}],y=function(e,t){return"label"===t.value?-e.poolIndex():t.pfValue},w=[{name:"height",type:c.nodeSize,triggersBounds:l.any,hashOverride:y},{name:"width",type:c.nodeSize,triggersBounds:l.any,hashOverride:y},{name:"shape",type:c.nodeShape,triggersBounds:l.any},{name:"shape-polygon-points",type:c.polygonPointList,triggersBounds:l.any},{name:"corner-radius",type:c.cornerRadius},{name:"background-color",type:c.color},{name:"background-fill",type:c.fill},{name:"background-opacity",type:c.zeroOneNumber},{name:"background-blacken",type:c.nOneOneNumber},{name:"background-gradient-stop-colors",type:c.colors},{name:"background-gradient-stop-positions",type:c.percentages},{name:"background-gradient-direction",type:c.gradientDirection},{name:"padding",type:c.sizeMaybePercent,triggersBounds:l.any},{name:"padding-relative-to",type:c.paddingRelativeTo,triggersBounds:l.any},{name:"bounds-expansion",type:c.boundsExpansion,triggersBounds:l.any}],_=[{name:"border-color",type:c.color},{name:"border-opacity",type:c.zeroOneNumber},{name:"border-width",type:c.size,triggersBounds:l.any},{name:"border-style",type:c.borderStyle},{name:"border-cap",type:c.lineCap},{name:"border-join",type:c.lineJoin},{name:"border-dash-pattern",type:c.numbers},{name:"border-dash-offset",type:c.number},{name:"border-position",type:c.linePosition}],x=[{name:"outline-color",type:c.color},{name:"outline-opacity",type:c.zeroOneNumber},{name:"outline-width",type:c.size,triggersBounds:l.any},{name:"outline-style",type:c.borderStyle},{name:"outline-offset",type:c.size,triggersBounds:l.any}],E=[{name:"background-image",type:c.urls},{name:"background-image-crossorigin",type:c.bgCrossOrigin},{name:"background-image-opacity",type:c.zeroOneNumbers},{name:"background-image-containment",type:c.bgContainment},{name:"background-image-smoothing",type:c.bools},{name:"background-position-x",type:c.bgPos},{name:"background-position-y",type:c.bgPos},{name:"background-width-relative-to",type:c.bgRelativeTo},{name:"background-height-relative-to",type:c.bgRelativeTo},{name:"background-repeat",type:c.bgRepeat},{name:"background-fit",type:c.bgFit},{name:"background-clip",type:c.bgClip},{name:"background-width",type:c.bgWH},{name:"background-height",type:c.bgWH},{name:"background-offset-x",type:c.bgPos},{name:"background-offset-y",type:c.bgPos}],S=[{name:"position",type:c.position,triggersBounds:l.any},{name:"compound-sizing-wrt-labels",type:c.compoundIncludeLabels,triggersBounds:l.any},{name:"min-width",type:c.size,triggersBounds:l.any},{name:"min-width-bias-left",type:c.sizeMaybePercent,triggersBounds:l.any},{name:"min-width-bias-right",type:c.sizeMaybePercent,triggersBounds:l.any},{name:"min-height",type:c.size,triggersBounds:l.any},{name:"min-height-bias-top",type:c.sizeMaybePercent,triggersBounds:l.any},{name:"min-height-bias-bottom",type:c.sizeMaybePercent,triggersBounds:l.any}],C=[{name:"line-style",type:c.lineStyle},{name:"line-color",type:c.color},{name:"line-fill",type:c.fill},{name:"line-cap",type:c.lineCap},{name:"line-opacity",type:c.zeroOneNumber},{name:"line-dash-pattern",type:c.numbers},{name:"line-dash-offset",type:c.number},{name:"line-outline-width",type:c.size},{name:"line-outline-color",type:c.color},{name:"line-gradient-stop-colors",type:c.colors},{name:"line-gradient-stop-positions",type:c.percentages},{name:"curve-style",type:c.curveStyle,triggersBounds:l.any,triggersBoundsOfParallelEdges:function(e,t){return e!==t&&("bezier"===e||"bezier"===t)}},{name:"haystack-radius",type:c.zeroOneNumber,triggersBounds:l.any},{name:"source-endpoint",type:c.edgeEndpoint,triggersBounds:l.any},{name:"target-endpoint",type:c.edgeEndpoint,triggersBounds:l.any},{name:"control-point-step-size",type:c.size,triggersBounds:l.any},{name:"control-point-distances",type:c.bidirectionalSizes,triggersBounds:l.any},{name:"control-point-weights",type:c.numbers,triggersBounds:l.any},{name:"segment-distances",type:c.bidirectionalSizes,triggersBounds:l.any},{name:"segment-weights",type:c.numbers,triggersBounds:l.any},{name:"segment-radii",type:c.numbers,triggersBounds:l.any},{name:"radius-type",type:c.radiusType,triggersBounds:l.any},{name:"taxi-turn",type:c.bidirectionalSizeMaybePercent,triggersBounds:l.any},{name:"taxi-turn-min-distance",type:c.size,triggersBounds:l.any},{name:"taxi-direction",type:c.axisDirection,triggersBounds:l.any},{name:"taxi-radius",type:c.number,triggersBounds:l.any},{name:"edge-distances",type:c.edgeDistances,triggersBounds:l.any},{name:"arrow-scale",type:c.positiveNumber,triggersBounds:l.any},{name:"loop-direction",type:c.angle,triggersBounds:l.any},{name:"loop-sweep",type:c.angle,triggersBounds:l.any},{name:"source-distance-from-node",type:c.size,triggersBounds:l.any},{name:"target-distance-from-node",type:c.size,triggersBounds:l.any}],T=[{name:"ghost",type:c.bool,triggersBounds:l.any},{name:"ghost-offset-x",type:c.bidirectionalSize,triggersBounds:l.any},{name:"ghost-offset-y",type:c.bidirectionalSize,triggersBounds:l.any},{name:"ghost-opacity",type:c.zeroOneNumber}],k=[{name:"selection-box-color",type:c.color},{name:"selection-box-opacity",type:c.zeroOneNumber},{name:"selection-box-border-color",type:c.color},{name:"selection-box-border-width",type:c.size},{name:"active-bg-color",type:c.color},{name:"active-bg-opacity",type:c.zeroOneNumber},{name:"active-bg-size",type:c.size},{name:"outside-texture-bg-color",type:c.color},{name:"outside-texture-bg-opacity",type:c.zeroOneNumber}],O=[];id.pieBackgroundN=16,O.push({name:"pie-size",type:c.sizeMaybePercent}),O.push({name:"pie-hole",type:c.sizeMaybePercent}),O.push({name:"pie-start-angle",type:c.angle});for(var M=1;M<=id.pieBackgroundN;M++)O.push({name:"pie-"+M+"-background-color",type:c.color}),O.push({name:"pie-"+M+"-background-size",type:c.percent}),O.push({name:"pie-"+M+"-background-opacity",type:c.zeroOneNumber});var I=[];id.stripeBackgroundN=16,I.push({name:"stripe-size",type:c.sizeMaybePercent}),I.push({name:"stripe-direction",type:c.axisDirectionPrimary});for(var D=1;D<=id.stripeBackgroundN;D++)I.push({name:"stripe-"+D+"-background-color",type:c.color}),I.push({name:"stripe-"+D+"-background-size",type:c.percent}),I.push({name:"stripe-"+D+"-background-opacity",type:c.zeroOneNumber});var N=[],R=id.arrowPrefixes=["source","mid-source","target","mid-target"];[{name:"arrow-shape",type:c.arrowShape,triggersBounds:l.any},{name:"arrow-color",type:c.color},{name:"arrow-fill",type:c.arrowFill},{name:"arrow-width",type:c.arrowWidth}].forEach(function(e){R.forEach(function(t){var n=t+"-"+e.name,r=e.type,i=e.triggersBounds;N.push({name:n,type:r,triggersBounds:i})})},{});var L=id.properties=[].concat(g,b,m,v,A,T,p,f,u,d,h,w,_,x,E,O,I,S,C,N,k),B=id.propertyGroups={behavior:g,transition:b,visibility:m,overlay:v,underlay:A,ghost:T,commonLabel:p,labelDimensions:f,mainLabel:u,sourceLabel:d,targetLabel:h,nodeBody:w,nodeBorder:_,nodeOutline:x,backgroundImage:E,pie:O,stripe:I,compound:S,edgeLine:C,edgeArrow:N,core:k},P=id.propertyGroupNames={};(id.propertyGroupKeys=Object.keys(B)).forEach(function(e){P[e]=B[e].map(function(e){return e.name}),B[e].forEach(function(t){return t.groupKey=e})});var F=id.aliases=[{name:"content",pointsTo:"label"},{name:"control-point-distance",pointsTo:"control-point-distances"},{name:"control-point-weight",pointsTo:"control-point-weights"},{name:"segment-distance",pointsTo:"segment-distances"},{name:"segment-weight",pointsTo:"segment-weights"},{name:"segment-radius",pointsTo:"segment-radii"},{name:"edge-text-rotation",pointsTo:"text-rotation"},{name:"padding-left",pointsTo:"padding"},{name:"padding-right",pointsTo:"padding"},{name:"padding-top",pointsTo:"padding"},{name:"padding-bottom",pointsTo:"padding"}];id.propertyNames=L.map(function(e){return e.name});for(var $=0;$<L.length;$++){var j=L[$];L[j.name]=j}for(var H=0;H<F.length;H++){var U=F[H],Q=L[U.pointsTo],z={name:U.name,alias:!0,pointsTo:Q};L.push(z),L[U.name]=z}})(),id.getDefaultProperty=function(e){return this.getDefaultProperties()[e]},id.getDefaultProperties=function(){var e=this._private;if(null!=e.defaultProperties)return e.defaultProperties;for(var t=Re({"selection-box-color":"#ddd","selection-box-opacity":.65,"selection-box-border-color":"#aaa","selection-box-border-width":1,"active-bg-color":"black","active-bg-opacity":.15,"active-bg-size":30,"outside-texture-bg-color":"#000","outside-texture-bg-opacity":.125,events:"yes","text-events":"no","text-valign":"top","text-halign":"center","text-justification":"auto","line-height":1,color:"#000","text-outline-color":"#000","text-outline-width":0,"text-outline-opacity":1,"text-opacity":1,"text-decoration":"none","text-transform":"none","text-wrap":"none","text-overflow-wrap":"whitespace","text-max-width":9999,"text-background-color":"#000","text-background-opacity":0,"text-background-shape":"rectangle","text-background-padding":0,"text-border-opacity":0,"text-border-width":0,"text-border-style":"solid","text-border-color":"#000","font-family":"Helvetica Neue, Helvetica, sans-serif","font-style":"normal","font-weight":"normal","font-size":16,"min-zoomed-font-size":0,"text-rotation":"none","source-text-rotation":"none","target-text-rotation":"none",visibility:"visible",display:"element",opacity:1,"z-compound-depth":"auto","z-index-compare":"auto","z-index":0,label:"","text-margin-x":0,"text-margin-y":0,"source-label":"","source-text-offset":0,"source-text-margin-x":0,"source-text-margin-y":0,"target-label":"","target-text-offset":0,"target-text-margin-x":0,"target-text-margin-y":0,"overlay-opacity":0,"overlay-color":"#000","overlay-padding":10,"overlay-shape":"round-rectangle","overlay-corner-radius":"auto","underlay-opacity":0,"underlay-color":"#000","underlay-padding":10,"underlay-shape":"round-rectangle","underlay-corner-radius":"auto","transition-property":"none","transition-duration":0,"transition-delay":0,"transition-timing-function":"linear","box-select-labels":"no","background-blacken":0,"background-color":"#999","background-fill":"solid","background-opacity":1,"background-image":"none","background-image-crossorigin":"anonymous","background-image-opacity":1,"background-image-containment":"inside","background-image-smoothing":"yes","background-position-x":"50%","background-position-y":"50%","background-offset-x":0,"background-offset-y":0,"background-width-relative-to":"include-padding","background-height-relative-to":"include-padding","background-repeat":"no-repeat","background-fit":"none","background-clip":"node","background-width":"auto","background-height":"auto","border-color":"#000","border-opacity":1,"border-width":0,"border-style":"solid","border-dash-pattern":[4,2],"border-dash-offset":0,"border-cap":"butt","border-join":"miter","border-position":"center","outline-color":"#999","outline-opacity":1,"outline-width":0,"outline-offset":0,"outline-style":"solid",height:30,width:30,shape:"ellipse","shape-polygon-points":"-1, -1,   1, -1,   1, 1,   -1, 1","corner-radius":"auto","bounds-expansion":0,"background-gradient-direction":"to-bottom","background-gradient-stop-colors":"#999","background-gradient-stop-positions":"0%",ghost:"no","ghost-offset-y":0,"ghost-offset-x":0,"ghost-opacity":0,padding:0,"padding-relative-to":"width",position:"origin","compound-sizing-wrt-labels":"include","min-width":0,"min-width-bias-left":0,"min-width-bias-right":0,"min-height":0,"min-height-bias-top":0,"min-height-bias-bottom":0},{"pie-size":"100%","pie-hole":0,"pie-start-angle":"0deg"},[{name:"pie-{{i}}-background-color",value:"black"},{name:"pie-{{i}}-background-size",value:"0%"},{name:"pie-{{i}}-background-opacity",value:1}].reduce(function(e,t){for(var n=1;n<=id.pieBackgroundN;n++){var r=t.name.replace("{{i}}",n),i=t.value;e[r]=i}return e},{}),{"stripe-size":"100%","stripe-direction":"horizontal"},[{name:"stripe-{{i}}-background-color",value:"black"},{name:"stripe-{{i}}-background-size",value:"0%"},{name:"stripe-{{i}}-background-opacity",value:1}].reduce(function(e,t){for(var n=1;n<=id.stripeBackgroundN;n++){var r=t.name.replace("{{i}}",n),i=t.value;e[r]=i}return e},{}),{"line-style":"solid","line-color":"#999","line-fill":"solid","line-cap":"butt","line-opacity":1,"line-outline-width":0,"line-outline-color":"#000","line-gradient-stop-colors":"#999","line-gradient-stop-positions":"0%","control-point-step-size":40,"control-point-weights":.5,"segment-weights":.5,"segment-distances":20,"segment-radii":15,"radius-type":"arc-radius","taxi-turn":"50%","taxi-radius":15,"taxi-turn-min-distance":10,"taxi-direction":"auto","edge-distances":"intersection","curve-style":"haystack","haystack-radius":0,"arrow-scale":1,"loop-direction":"-45deg","loop-sweep":"-90deg","source-distance-from-node":0,"target-distance-from-node":0,"source-endpoint":"outside-to-node","target-endpoint":"outside-to-node","line-dash-pattern":[6,3],"line-dash-offset":0},[{name:"arrow-shape",value:"none"},{name:"arrow-color",value:"#999"},{name:"arrow-fill",value:"filled"},{name:"arrow-width",value:1}].reduce(function(e,t){return id.arrowPrefixes.forEach(function(n){var r=n+"-"+t.name,i=t.value;e[r]=i}),e},{})),n={},r=0;r<this.properties.length;r++){var i=this.properties[r];if(!i.pointsTo){var o=i.name,a=t[o],s=this.parse(o,a);n[o]=s}}return e.defaultProperties=n,e.defaultProperties},id.addDefaultStylesheet=function(){this.selector(":parent").css({shape:"rectangle",padding:10,"background-color":"#eee","border-color":"#ccc","border-width":1}).selector("edge").css({width:3}).selector(":loop").css({"curve-style":"bezier"}).selector("edge:compound").css({"curve-style":"bezier","source-endpoint":"outside-to-line","target-endpoint":"outside-to-line"}).selector(":selected").css({"background-color":"#0169D9","line-color":"#0169D9","source-arrow-color":"#0169D9","target-arrow-color":"#0169D9","mid-source-arrow-color":"#0169D9","mid-target-arrow-color":"#0169D9"}).selector(":parent:selected").css({"background-color":"#CCE1F9","border-color":"#aec8e5"}).selector(":active").css({"overlay-color":"black","overlay-padding":10,"overlay-opacity":.25}),this.defaultLength=this.length};var od={parse:function(e,t,n,r){var i=this;if(te(t))return i.parseImplWarn(e,t,n,r);var o,a=xt(e,""+t,n?"t":"f","mapping"===r||!0===r||!1===r||null==r?"dontcare":r),s=i.propCache=i.propCache||[];return(o=s[a])||(o=s[a]=i.parseImplWarn(e,t,n,r)),(n||"mapping"===r)&&(o=Pt(o))&&(o.value=Pt(o.value)),o},parseImplWarn:function(e,t,n,r){var i=this.parseImpl(e,t,n,r);return i||null==t||Lt("The style property `".concat(e,": ").concat(t,"` is invalid")),!i||"width"!==i.name&&"height"!==i.name||"label"!==t||Lt("The style value of `label` is deprecated for `"+i.name+"`"),i},parseImpl:function(e,t,n,r){var i=this;e=ye(e);var o=i.properties[e],a=t,s=i.types;if(!o)return null;if(void 0===t)return null;o.alias&&(o=o.pointsTo,e=o.name);var l=ee(t);l&&(t=t.trim());var c,u,d=o.type;if(!d)return null;if(n&&(""===t||null===t))return{name:e,value:t,bypass:!0,deleteBypass:!0};if(te(t))return{name:e,value:t,strValue:"fn",mapped:s.fn,bypass:n};if(!l||r||t.length<7||"a"!==t[1]);else{if(t.length>=7&&"d"===t[0]&&(c=new RegExp(s.data.regex).exec(t))){if(n)return!1;var h=s.data;return{name:e,value:c,strValue:""+t,mapped:h,field:c[1],bypass:n}}if(t.length>=10&&"m"===t[0]&&(u=new RegExp(s.mapData.regex).exec(t))){if(n)return!1;if(d.multiple)return!1;var f=s.mapData;if(!d.color&&!d.number)return!1;var p=this.parse(e,u[4]);if(!p||p.mapped)return!1;var g=this.parse(e,u[5]);if(!g||g.mapped)return!1;if(p.pfValue===g.pfValue||p.strValue===g.strValue)return Lt("`"+e+": "+t+"` is not a valid mapper because the output range is zero; converting to `"+e+": "+p.strValue+"`"),this.parse(e,p.strValue);if(d.color){var m=p.value,v=g.value;if(!(m[0]!==v[0]||m[1]!==v[1]||m[2]!==v[2]||m[3]!==v[3]&&(null!=m[3]&&1!==m[3]||null!=v[3]&&1!==v[3])))return!1}return{name:e,value:u,strValue:""+t,mapped:f,field:u[1],fieldMin:parseFloat(u[2]),fieldMax:parseFloat(u[3]),valueMin:p.value,valueMax:g.value,bypass:n}}}if(d.multiple&&"multiple"!==r){var A;if(A=l?t.split(/\s+/):ne(t)?t:[t],d.evenMultiple&&A.length%2!=0)return null;for(var b=[],y=[],w=[],_="",x=!1,E=0;E<A.length;E++){var S=i.parse(e,A[E],n,"multiple");x=x||ee(S.value),b.push(S.value),w.push(null!=S.pfValue?S.pfValue:S.value),y.push(S.units),_+=(E>0?" ":"")+S.strValue}return d.validate&&!d.validate(b,y)?null:d.singleEnum&&x?1===b.length&&ee(b[0])?{name:e,value:b[0],strValue:b[0],bypass:n}:null:{name:e,value:b,pfValue:w,strValue:_,bypass:n,units:y}}var C=function(){for(var r=0;r<d.enums.length;r++)if(d.enums[r]===t)return{name:e,value:t,strValue:""+t,bypass:n};return null};if(d.number){var T,k="px";if(d.units&&(T=d.units),d.implicitUnits&&(k=d.implicitUnits),!d.unitless)if(l){var O="px|em"+(d.allowPercent?"|\\%":"");T&&(O=T);var M=t.match("^("+Se+")("+O+")?$");M&&(t=M[1],T=M[2]||k)}else T&&!d.implicitUnits||(T=k);if(t=parseFloat(t),isNaN(t)&&void 0===d.enums)return null;if(isNaN(t)&&void 0!==d.enums)return t=a,C();if(d.integer&&!ae(t))return null;if(void 0!==d.min&&(t<d.min||d.strictMin&&t===d.min)||void 0!==d.max&&(t>d.max||d.strictMax&&t===d.max))return null;var I={name:e,value:t,strValue:""+t+(T||""),units:T,bypass:n};return d.unitless||"px"!==T&&"em"!==T?I.pfValue=t:I.pfValue="px"!==T&&T?this.getEmSizeInPixels()*t:t,"ms"!==T&&"s"!==T||(I.pfValue="ms"===T?t:1e3*t),"deg"!==T&&"rad"!==T||(I.pfValue="rad"===T?t:Nn(t)),"%"===T&&(I.pfValue=t/100),I}if(d.propList){var D=[],N=""+t;if("none"===N);else{for(var R=N.split(/\s*,\s*|\s+/),L=0;L<R.length;L++){var B=R[L].trim();i.properties[B]?D.push(B):Lt("`"+B+"` is not a valid property name")}if(0===D.length)return null}return{name:e,value:D,strValue:0===D.length?"none":D.join(" "),bypass:n}}if(d.color){var P=$e(t);return P?{name:e,value:P,pfValue:P,strValue:"rgb("+P[0]+","+P[1]+","+P[2]+")",bypass:n}:null}if(d.regex||d.regexes){if(d.enums){var F=C();if(F)return F}for(var $=d.regexes?d.regexes:[d.regex],j=0;j<$.length;j++){var H=new RegExp($[j]).exec(t);if(H)return{name:e,value:d.singleRegexMatchValue?H[1]:H,strValue:""+t,bypass:n}}return null}return d.string?{name:e,value:""+t,strValue:""+t,bypass:n}:d.enums?C():null}},ad=function(e){if(!(this instanceof ad))return new ad(e);de(e)?(this._private={cy:e,coreStyle:{}},this.length=0,this.resetToDefault()):Nt("A style must have a core reference")},sd=ad.prototype;sd.instanceString=function(){return"style"},sd.clear=function(){for(var e=this._private,t=e.cy.elements(),n=0;n<this.length;n++)this[n]=void 0;return this.length=0,e.contextStyles={},e.propDiffs={},this.cleanElements(t,!0),t.forEach(function(e){var t=e[0]._private;t.styleDirty=!0,t.appliedInitStyle=!1}),this},sd.resetToDefault=function(){return this.clear(),this.addDefaultStylesheet(),this},sd.core=function(e){return this._private.coreStyle[e]||this.getDefaultProperty(e)},sd.selector=function(e){var t="core"===e?null:new Fl(e),n=this.length++;return this[n]={selector:t,properties:[],mappedProperties:[],index:n},this},sd.css=function(){var e=this,t=arguments;if(1===t.length)for(var n=t[0],r=0;r<e.properties.length;r++){var i=e.properties[r],o=n[i.name];void 0===o&&(o=n[we(i.name)]),void 0!==o&&this.cssRule(i.name,o)}else 2===t.length&&this.cssRule(t[0],t[1]);return this},sd.style=sd.css,sd.cssRule=function(e,t){var n=this.parse(e,t);if(n){var r=this.length-1;this[r].properties.push(n),this[r].properties[n.name]=n,n.name.match(/pie-(\d+)-background-size/)&&n.value&&(this._private.hasPie=!0),n.name.match(/stripe-(\d+)-background-size/)&&n.value&&(this._private.hasStripe=!0),n.mapped&&this[r].mappedProperties.push(n),!this[r].selector&&(this._private.coreStyle[n.name]=n)}return this},sd.append=function(e){return he(e)?e.appendToStyle(this):ne(e)?this.appendFromJson(e):ee(e)&&this.appendFromString(e),this},ad.fromJson=function(e,t){var n=new ad(e);return n.fromJson(t),n},ad.fromString=function(e,t){return new ad(e).fromString(t)},[qu,Zu,ed,td,nd,rd,id,od].forEach(function(e){Re(sd,e)}),ad.types=sd.types,ad.properties=sd.properties,ad.propertyGroups=sd.propertyGroups,ad.propertyGroupNames=sd.propertyGroupNames,ad.propertyGroupKeys=sd.propertyGroupKeys;var ld={style:function(e){return e&&this.setStyle(e).update(),this._private.style},setStyle:function(e){var t=this._private;return he(e)?t.style=e.generateStyle(this):ne(e)?t.style=ad.fromJson(this,e):ee(e)?t.style=ad.fromString(this,e):t.style=ad(this),t.style},updateStyle:function(){this.mutableElements().updateStyle()}},cd="single",ud={autolock:function(e){return void 0===e?this._private.autolock:(this._private.autolock=!!e,this)},autoungrabify:function(e){return void 0===e?this._private.autoungrabify:(this._private.autoungrabify=!!e,this)},autounselectify:function(e){return void 0===e?this._private.autounselectify:(this._private.autounselectify=!!e,this)},selectionType:function(e){var t=this._private;return null==t.selectionType&&(t.selectionType=cd),void 0===e?t.selectionType:("additive"!==e&&"single"!==e||(t.selectionType=e),this)},panningEnabled:function(e){return void 0===e?this._private.panningEnabled:(this._private.panningEnabled=!!e,this)},userPanningEnabled:function(e){return void 0===e?this._private.userPanningEnabled:(this._private.userPanningEnabled=!!e,this)},zoomingEnabled:function(e){return void 0===e?this._private.zoomingEnabled:(this._private.zoomingEnabled=!!e,this)},userZoomingEnabled:function(e){return void 0===e?this._private.userZoomingEnabled:(this._private.userZoomingEnabled=!!e,this)},boxSelectionEnabled:function(e){return void 0===e?this._private.boxSelectionEnabled:(this._private.boxSelectionEnabled=!!e,this)},pan:function(){var e,t,n,r,i,o=arguments,a=this._private.pan;switch(o.length){case 0:return a;case 1:if(ee(o[0]))return a[e=o[0]];if(re(o[0])){if(!this._private.panningEnabled)return this;r=(n=o[0]).x,i=n.y,oe(r)&&(a.x=r),oe(i)&&(a.y=i),this.emit("pan viewport")}break;case 2:if(!this._private.panningEnabled)return this;e=o[0],t=o[1],"x"!==e&&"y"!==e||!oe(t)||(a[e]=t),this.emit("pan viewport")}return this.notify("viewport"),this},panBy:function(e,t){var n,r,i,o,a,s=arguments,l=this._private.pan;if(!this._private.panningEnabled)return this;switch(s.length){case 1:re(e)&&(o=(i=s[0]).x,a=i.y,oe(o)&&(l.x+=o),oe(a)&&(l.y+=a),this.emit("pan viewport"));break;case 2:r=t,"x"!==(n=e)&&"y"!==n||!oe(r)||(l[n]+=r),this.emit("pan viewport")}return this.notify("viewport"),this},gc:function(){this.notify("gc")},fit:function(e,t){var n=this.getFitViewport(e,t);if(n){var r=this._private;r.zoom=n.zoom,r.pan=n.pan,this.emit("pan zoom viewport"),this.notify("viewport")}return this},getFitViewport:function(e,t){if(oe(e)&&void 0===t&&(t=e,e=void 0),this._private.panningEnabled&&this._private.zoomingEnabled){var n;if(ee(e)){var r=e;e=this.$(r)}else if(me(e)){var i=e;(n={x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2}).w=n.x2-n.x1,n.h=n.y2-n.y1}else le(e)||(e=this.mutableElements());if(!le(e)||!e.empty()){n=n||e.boundingBox();var o,a=this.width(),s=this.height();if(t=oe(t)?t:0,!isNaN(a)&&!isNaN(s)&&a>0&&s>0&&!isNaN(n.w)&&!isNaN(n.h)&&n.w>0&&n.h>0)return{zoom:o=(o=(o=Math.min((a-2*t)/n.w,(s-2*t)/n.h))>this._private.maxZoom?this._private.maxZoom:o)<this._private.minZoom?this._private.minZoom:o,pan:{x:(a-o*(n.x1+n.x2))/2,y:(s-o*(n.y1+n.y2))/2}}}}},zoomRange:function(e,t){var n=this._private;if(null==t){var r=e;e=r.min,t=r.max}return oe(e)&&oe(t)&&e<=t?(n.minZoom=e,n.maxZoom=t):oe(e)&&void 0===t&&e<=n.maxZoom?n.minZoom=e:oe(t)&&void 0===e&&t>=n.minZoom&&(n.maxZoom=t),this},minZoom:function(e){return void 0===e?this._private.minZoom:this.zoomRange({min:e})},maxZoom:function(e){return void 0===e?this._private.maxZoom:this.zoomRange({max:e})},getZoomedViewport:function(e){var t,n,r=this._private,i=r.pan,o=r.zoom,a=!1;if(r.zoomingEnabled||(a=!0),oe(e)?n=e:re(e)&&(n=e.level,null!=e.position?t=Cn(e.position,o,i):null!=e.renderedPosition&&(t=e.renderedPosition),null==t||r.panningEnabled||(a=!0)),n=(n=n>r.maxZoom?r.maxZoom:n)<r.minZoom?r.minZoom:n,a||!oe(n)||n===o||null!=t&&(!oe(t.x)||!oe(t.y)))return null;if(null!=t){var s=i,l=o,c=n;return{zoomed:!0,panned:!0,zoom:c,pan:{x:-c/l*(t.x-s.x)+t.x,y:-c/l*(t.y-s.y)+t.y}}}return{zoomed:!0,panned:!1,zoom:n,pan:i}},zoom:function(e){if(void 0===e)return this._private.zoom;var t=this.getZoomedViewport(e),n=this._private;return null!=t&&t.zoomed?(n.zoom=t.zoom,t.panned&&(n.pan.x=t.pan.x,n.pan.y=t.pan.y),this.emit("zoom"+(t.panned?" pan":"")+" viewport"),this.notify("viewport"),this):this},viewport:function(e){var t=this._private,n=!0,r=!0,i=[],o=!1,a=!1;if(!e)return this;if(oe(e.zoom)||(n=!1),re(e.pan)||(r=!1),!n&&!r)return this;if(n){var s=e.zoom;s<t.minZoom||s>t.maxZoom||!t.zoomingEnabled?o=!0:(t.zoom=s,i.push("zoom"))}if(r&&(!o||!e.cancelOnFailedZoom)&&t.panningEnabled){var l=e.pan;oe(l.x)&&(t.pan.x=l.x,a=!1),oe(l.y)&&(t.pan.y=l.y,a=!1),a||i.push("pan")}return i.length>0&&(i.push("viewport"),this.emit(i.join(" ")),this.notify("viewport")),this},center:function(e){var t=this.getCenterPan(e);return t&&(this._private.pan=t,this.emit("pan viewport"),this.notify("viewport")),this},getCenterPan:function(e,t){if(this._private.panningEnabled){if(ee(e)){var n=e;e=this.mutableElements().filter(n)}else le(e)||(e=this.mutableElements());if(0!==e.length){var r=e.boundingBox(),i=this.width(),o=this.height();return{x:(i-(t=void 0===t?this._private.zoom:t)*(r.x1+r.x2))/2,y:(o-t*(r.y1+r.y2))/2}}}},reset:function(){return this._private.panningEnabled&&this._private.zoomingEnabled?(this.viewport({pan:{x:0,y:0},zoom:1}),this):this},invalidateSize:function(){this._private.sizeCache=null},size:function(){var e,t,n=this._private,r=n.container,i=this;return n.sizeCache=n.sizeCache||(r?(e=i.window().getComputedStyle(r),t=function(t){return parseFloat(e.getPropertyValue(t))},{width:r.clientWidth-t("padding-left")-t("padding-right"),height:r.clientHeight-t("padding-top")-t("padding-bottom")}):{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var e=this._private.pan,t=this._private.zoom,n=this.renderedExtent(),r={x1:(n.x1-e.x)/t,x2:(n.x2-e.x)/t,y1:(n.y1-e.y)/t,y2:(n.y2-e.y)/t};return r.w=r.x2-r.x1,r.h=r.y2-r.y1,r},renderedExtent:function(){var e=this.width(),t=this.height();return{x1:0,y1:0,x2:e,y2:t,w:e,h:t}},multiClickDebounceTime:function(e){return e?(this._private.multiClickDebounceTime=e,this):this._private.multiClickDebounceTime}};ud.centre=ud.center,ud.autolockNodes=ud.autolock,ud.autoungrabifyNodes=ud.autoungrabify;var dd={data:dl.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:dl.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:dl.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:dl.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};dd.attr=dd.data,dd.removeAttr=dd.removeData;var hd=function(e){var t=this,n=(e=Re({},e)).container;n&&!se(n)&&se(n[0])&&(n=n[0]);var r=n?n._cyreg:null;(r=r||{})&&r.cy&&(r.cy.destroy(),r={});var i=r.readies=r.readies||[];n&&(n._cyreg=r),r.cy=t;var o=void 0!==b&&void 0!==n&&!e.headless,a=e;a.layout=Re({name:o?"grid":"null"},a.layout),a.renderer=Re({name:o?"canvas":"null"},a.renderer);var s=function(e,t,n){return void 0!==t?t:void 0!==n?n:e},l=this._private={container:n,ready:!1,options:a,elements:new Cu(this),listeners:[],aniEles:new Cu(this),data:a.data||{},scratch:{},layout:null,renderer:null,destroyed:!1,notificationsEnabled:!0,minZoom:1e-50,maxZoom:1e50,zoomingEnabled:s(!0,a.zoomingEnabled),userZoomingEnabled:s(!0,a.userZoomingEnabled),panningEnabled:s(!0,a.panningEnabled),userPanningEnabled:s(!0,a.userPanningEnabled),boxSelectionEnabled:s(!0,a.boxSelectionEnabled),autolock:s(!1,a.autolock,a.autolockNodes),autoungrabify:s(!1,a.autoungrabify,a.autoungrabifyNodes),autounselectify:s(!1,a.autounselectify),styleEnabled:void 0===a.styleEnabled?o:a.styleEnabled,zoom:oe(a.zoom)?a.zoom:1,pan:{x:re(a.pan)&&oe(a.pan.x)?a.pan.x:0,y:re(a.pan)&&oe(a.pan.y)?a.pan.y:0},animation:{current:[],queue:[]},hasCompoundNodes:!1,multiClickDebounceTime:s(250,a.multiClickDebounceTime)};this.createEmitter(),this.selectionType(a.selectionType),this.zoomRange({min:a.minZoom,max:a.maxZoom});var c=function(e,t){if(e.some(ve))return lo.all(e).then(t);t(e)};l.styleEnabled&&t.setStyle([]);var u=Re({},a,a.renderer);t.initRenderer(u);var d=function(e,n,r){t.notifications(!1);var i=t.mutableElements();i.length>0&&i.remove(),null!=e&&(re(e)||ne(e))&&t.add(e),t.one("layoutready",function(e){t.notifications(!0),t.emit(e),t.one("load",n),t.emitAndNotify("load")}).one("layoutstop",function(){t.one("done",r),t.emit("done")});var o=Re({},t._private.options.layout);o.eles=t.elements(),t.layout(o).run()};c([a.style,a.elements],function(e){var n=e[0],o=e[1];l.styleEnabled&&t.style().append(n),d(o,function(){t.startAnimationLoop(),l.ready=!0,te(a.ready)&&t.on("ready",a.ready);for(var e=0;e<i.length;e++){var n=i[e];t.on("ready",n)}r&&(r.readies=[]),t.emit("ready")},a.done)})},fd=hd.prototype;Re(fd,{instanceString:function(){return"core"},isReady:function(){return this._private.ready},destroyed:function(){return this._private.destroyed},ready:function(e){return this.isReady()?this.emitter().emit("ready",[],e):this.on("ready",e),this},destroy:function(){var e=this;if(!e.destroyed())return e.stopAnimationLoop(),e.destroyRenderer(),this.emit("destroy"),e._private.destroyed=!0,e},hasElementWithId:function(e){return this._private.elements.hasElementWithId(e)},getElementById:function(e){return this._private.elements.getElementById(e)},hasCompoundNodes:function(){return this._private.hasCompoundNodes},headless:function(){return this._private.renderer.isHeadless()},styleEnabled:function(){return this._private.styleEnabled},addToPool:function(e){return this._private.elements.merge(e),this},removeFromPool:function(e){return this._private.elements.unmerge(e),this},container:function(){return this._private.container||null},window:function(){if(null==this._private.container)return b;var e=this._private.container.ownerDocument;return void 0===e||null==e?b:e.defaultView||b},mount:function(e){if(null!=e){var t=this,n=t._private,r=n.options;return!se(e)&&se(e[0])&&(e=e[0]),t.stopAnimationLoop(),t.destroyRenderer(),n.container=e,n.styleEnabled=!0,t.invalidateSize(),t.initRenderer(Re({},r,r.renderer,{name:"null"===r.renderer.name?"canvas":r.renderer.name})),t.startAnimationLoop(),t.style(r.style),t.emit("mount"),t}},unmount:function(){var e=this;return e.stopAnimationLoop(),e.destroyRenderer(),e.initRenderer({name:"null"}),e.emit("unmount"),e},options:function(){return Pt(this._private.options)},json:function(e){var t=this,n=t._private,r=t.mutableElements(),i=function(e){return t.getElementById(e.id())};if(re(e)){if(t.startBatch(),e.elements){var o={},a=function(e,n){for(var r=[],i=[],a=0;a<e.length;a++){var s=e[a];if(s.data.id){var l=""+s.data.id,c=t.getElementById(l);o[l]=!0,0!==c.length?i.push({ele:c,json:s}):n?(s.group=n,r.push(s)):r.push(s)}else Lt("cy.json() cannot handle elements without an ID attribute")}t.add(r);for(var u=0;u<i.length;u++){var d=i[u],h=d.ele,f=d.json;h.json(f)}};if(ne(e.elements))a(e.elements);else for(var s=["nodes","edges"],l=0;l<s.length;l++){var c=s[l],u=e.elements[c];ne(u)&&a(u,c)}var d=t.collection();r.filter(function(e){return!o[e.id()]}).forEach(function(e){e.isParent()?d.merge(e):e.remove()}),d.forEach(function(e){return e.children().move({parent:null})}),d.forEach(function(e){return i(e).remove()})}e.style&&t.style(e.style),null!=e.zoom&&e.zoom!==n.zoom&&t.zoom(e.zoom),e.pan&&(e.pan.x===n.pan.x&&e.pan.y===n.pan.y||t.pan(e.pan)),e.data&&t.data(e.data);for(var h=["minZoom","maxZoom","zoomingEnabled","userZoomingEnabled","panningEnabled","userPanningEnabled","boxSelectionEnabled","autolock","autoungrabify","autounselectify","multiClickDebounceTime"],f=0;f<h.length;f++){var p=h[f];null!=e[p]&&t[p](e[p])}return t.endBatch(),this}var g={};e?g.elements=this.elements().map(function(e){return e.json()}):(g.elements={},r.forEach(function(e){var t=e.group();g.elements[t]||(g.elements[t]=[]),g.elements[t].push(e.json())})),this._private.styleEnabled&&(g.style=t.style().json()),g.data=Pt(t.data());var m=n.options;return g.zoomingEnabled=n.zoomingEnabled,g.userZoomingEnabled=n.userZoomingEnabled,g.zoom=n.zoom,g.minZoom=n.minZoom,g.maxZoom=n.maxZoom,g.panningEnabled=n.panningEnabled,g.userPanningEnabled=n.userPanningEnabled,g.pan=Pt(n.pan),g.boxSelectionEnabled=n.boxSelectionEnabled,g.renderer=Pt(m.renderer),g.hideEdgesOnViewport=m.hideEdgesOnViewport,g.textureOnViewport=m.textureOnViewport,g.wheelSensitivity=m.wheelSensitivity,g.motionBlur=m.motionBlur,g.multiClickDebounceTime=m.multiClickDebounceTime,g}}),fd.$id=fd.getElementById,[ku,ju,Qu,zu,Wu,Gu,Ku,Yu,ld,ud,dd].forEach(function(e){Re(fd,e)});var pd={fit:!0,directed:!1,padding:30,circle:!1,grid:!1,spacingFactor:1.75,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,roots:void 0,depthSort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}},gd={maximal:!1,acyclic:!1},md=function(e){return e.scratch("breadthfirst")},vd=function(e,t){return e.scratch("breadthfirst",t)};function Ad(e){this.options=Re({},pd,gd,e)}Ad.prototype.run=function(){var e,t=this.options,n=t.cy,r=t.eles,i=r.nodes().filter(function(e){return e.isChildless()}),o=r,a=t.directed,s=t.acyclic||t.maximal||t.maximalAdjustments>0,l=!!t.boundingBox,c=n.extent(),u=zn(l?t.boundingBox:{x1:c.x1,y1:c.y1,w:c.w,h:c.h});if(le(t.roots))e=t.roots;else if(ne(t.roots)){for(var d=[],h=0;h<t.roots.length;h++){var f=t.roots[h],p=n.getElementById(f);d.push(p)}e=n.collection(d)}else if(ee(t.roots))e=n.$(t.roots);else if(a)e=i.roots();else{var g=r.components();e=n.collection();for(var m=function(){var t=g[v],n=t.maxDegree(!1),r=t.filter(function(e){return e.degree(!1)===n});e=e.add(r)},v=0;v<g.length;v++)m()}var A=[],b={},y=function(e,t){null==A[t]&&(A[t]=[]);var n=A[t].length;A[t].push(e),vd(e,{index:n,depth:t})},w=function(e,t){var n=md(e),r=n.depth,i=n.index;A[r][i]=null,e.isChildless()&&y(e,t)};o.bfs({roots:e,directed:t.directed,visit:function(e,t,n,r,i){var o=e[0],a=o.id();o.isChildless()&&y(o,i),b[a]=!0}});for(var _=[],x=0;x<i.length;x++){var E=i[x];b[E.id()]||_.push(E)}var S=function(e){for(var t=A[e],n=0;n<t.length;n++){var r=t[n];null!=r?vd(r,{depth:e,index:n}):(t.splice(n,1),n--)}},C=function(e,n){for(var i=md(e),o=e.incomers().filter(function(e){return e.isNode()&&r.has(e)}),a=-1,s=e.id(),l=0;l<o.length;l++){var c=o[l],u=md(c);a=Math.max(a,u.depth)}if(i.depth<=a){if(!t.acyclic&&n[s])return null;var d=a+1;return w(e,d),n[s]=d,!0}return!1};if(a&&s){var T=[],k={},O=function(e){return T.push(e)},M=function(){return T.shift()};for(i.forEach(function(e){return T.push(e)});T.length>0;){var I=M(),D=C(I,k);if(D)I.outgoers().filter(function(e){return e.isNode()&&r.has(e)}).forEach(O);else if(null===D){Lt("Detected double maximal shift for node `"+I.id()+"`.  Bailing maximal adjustment due to cycle.  Use `options.maximal: true` only on DAGs.");break}}}var N=0;if(t.avoidOverlap)for(var R=0;R<i.length;R++){var L=i[R].layoutDimensions(t),B=L.w,P=L.h;N=Math.max(N,B,P)}var F={},$=function(e){if(F[e.id()])return F[e.id()];for(var t=md(e).depth,n=e.neighborhood(),r=0,o=0,a=0;a<n.length;a++){var s=n[a];if(!s.isEdge()&&!s.isParent()&&i.has(s)){var l=md(s);if(null!=l){var c=l.index,u=l.depth;if(null!=c&&null!=u){var d=A[u].length;u<t&&(r+=c/d,o++)}}}}return r/=o=Math.max(1,o),0===o&&(r=0),F[e.id()]=r,r},j=function(e,t){var n=$(e)-$(t);return 0===n?De(e.id(),t.id()):n};void 0!==t.depthSort&&(j=t.depthSort);for(var H=A.length,U=0;U<H;U++)A[U].sort(j),S(U);for(var Q=[],z=0;z<_.length;z++)Q.push(_[z]);var W=function(){for(var e=0;e<H;e++)S(e)};Q.length&&(A.unshift(Q),H=A.length,W());for(var G=0,V=0;V<H;V++)G=Math.max(A[V].length,G);var K={x:u.x1+u.w/2,y:u.y1+u.h/2},Y=i.reduce(function(e,n){return r=n.boundingBox({includeLabels:t.nodeDimensionsIncludeLabels}),{w:-1===e.w?r.w:(e.w+r.w)/2,h:-1===e.h?r.h:(e.h+r.h)/2};var r},{w:-1,h:-1}),q=Math.max(1===H?0:l?(u.h-2*t.padding-Y.h)/(H-1):(u.h-2*t.padding-Y.h)/(H+1),N),X=A.reduce(function(e,t){return Math.max(e,t.length)},0),J=function(e){var n=md(e),r=n.depth,i=n.index;if(t.circle){var o=Math.min(u.w/2/H,u.h/2/H),a=(o=Math.max(o,N))*r+o-(H>0&&A[0].length<=3?o/2:0),s=2*Math.PI/A[r].length*i;return 0===r&&1===A[0].length&&(a=1),{x:K.x+a*Math.cos(s),y:K.y+a*Math.sin(s)}}var c=A[r].length,d=Math.max(1===c?0:l?(u.w-2*t.padding-Y.w)/((t.grid?X:c)-1):(u.w-2*t.padding-Y.w)/((t.grid?X:c)+1),N);return{x:K.x+(i+1-(c+1)/2)*d,y:K.y+(r+1-(H+1)/2)*q}};return r.nodes().layoutPositions(this,t,J),this};var bd={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function yd(e){this.options=Re({},bd,e)}yd.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,i=void 0!==t.counterclockwise?!t.counterclockwise:t.clockwise,o=r.nodes().not(":parent");t.sort&&(o=o.sort(t.sort));for(var a,s=zn(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()}),l={x:s.x1+s.w/2,y:s.y1+s.h/2},c=(void 0===t.sweep?2*Math.PI-2*Math.PI/o.length:t.sweep)/Math.max(1,o.length-1),u=0,d=0;d<o.length;d++){var h=o[d].layoutDimensions(t),f=h.w,p=h.h;u=Math.max(u,f,p)}if(a=oe(t.radius)?t.radius:o.length<=1?0:Math.min(s.h,s.w)/2-u,o.length>1&&t.avoidOverlap){u*=1.75;var g=Math.cos(c)-Math.cos(0),m=Math.sin(c)-Math.sin(0),v=Math.sqrt(u*u/(g*g+m*m));a=Math.max(v,a)}var A=function(e,n){var r=t.startAngle+n*c*(i?1:-1),o=a*Math.cos(r),s=a*Math.sin(r);return{x:l.x+o,y:l.y+s}};return r.nodes().layoutPositions(this,t,A),this};var wd,_d={fit:!0,padding:30,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(e){return e.degree()},levelWidth:function(e){return e.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function xd(e){this.options=Re({},_d,e)}xd.prototype.run=function(){for(var e=this.options,t=e,n=void 0!==t.counterclockwise?!t.counterclockwise:t.clockwise,r=e.cy,i=t.eles,o=i.nodes().not(":parent"),a=zn(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:r.width(),h:r.height()}),s={x:a.x1+a.w/2,y:a.y1+a.h/2},l=[],c=0,u=0;u<o.length;u++){var d=o[u],h=void 0;h=t.concentric(d),l.push({value:h,node:d}),d._private.scratch.concentric=h}o.updateStyle();for(var f=0;f<o.length;f++){var p=o[f].layoutDimensions(t);c=Math.max(c,p.w,p.h)}l.sort(function(e,t){return t.value-e.value});for(var g=t.levelWidth(o),m=[[]],v=m[0],A=0;A<l.length;A++){var b=l[A];v.length>0&&Math.abs(v[0].value-b.value)>=g&&(v=[],m.push(v)),v.push(b)}var y=c+t.minNodeSpacing;if(!t.avoidOverlap){var w=m.length>0&&m[0].length>1,_=(Math.min(a.w,a.h)/2-y)/(m.length+w?1:0);y=Math.min(y,_)}for(var x=0,E=0;E<m.length;E++){var S=m[E],C=void 0===t.sweep?2*Math.PI-2*Math.PI/S.length:t.sweep,T=S.dTheta=C/Math.max(1,S.length-1);if(S.length>1&&t.avoidOverlap){var k=Math.cos(T)-Math.cos(0),O=Math.sin(T)-Math.sin(0),M=Math.sqrt(y*y/(k*k+O*O));x=Math.max(M,x)}S.r=x,x+=y}if(t.equidistant){for(var I=0,D=0,N=0;N<m.length;N++){var R=m[N].r-D;I=Math.max(I,R)}D=0;for(var L=0;L<m.length;L++){var B=m[L];0===L&&(D=B.r),B.r=D,D+=I}}for(var P={},F=0;F<m.length;F++)for(var $=m[F],j=$.dTheta,H=$.r,U=0;U<$.length;U++){var Q=$[U],z=t.startAngle+(n?1:-1)*j*U,W={x:s.x+H*Math.cos(z),y:s.y+H*Math.sin(z)};P[Q.node.id()]=W}return i.nodes().layoutPositions(this,t,function(e){var t=e.id();return P[t]}),this};var Ed={ready:function(){},stop:function(){},animate:!0,animationEasing:void 0,animationDuration:void 0,animateFilter:function(e,t){return!0},animationThreshold:250,refresh:20,fit:!0,padding:30,boundingBox:void 0,nodeDimensionsIncludeLabels:!1,randomize:!1,componentSpacing:40,nodeRepulsion:function(e){return 2048},nodeOverlap:4,idealEdgeLength:function(e){return 32},edgeElasticity:function(e){return 32},nestingFactor:1.2,gravity:1,numIter:1e3,initialTemp:1e3,coolingFactor:.99,minTemp:1};function Sd(e){this.options=Re({},Ed,e),this.options.layout=this;var t=this.options.eles.nodes(),n=this.options.eles.edges().filter(function(e){var n=e.source().data("id"),r=e.target().data("id"),i=t.some(function(e){return e.data("id")===n}),o=t.some(function(e){return e.data("id")===r});return!i||!o});this.options.eles=this.options.eles.not(n)}Sd.prototype.run=function(){var e=this.options,t=e.cy,n=this;n.stopped=!1,!0!==e.animate&&!1!==e.animate||n.emit({type:"layoutstart",layout:n}),wd=!0===e.debug;var r=Td(t,n,e);wd&&Cd(r),e.randomize&&Md(r);var i=dt(),o=function(){Dd(r,t,e),!0===e.fit&&t.fit(e.padding)},a=function(t){return!(n.stopped||t>=e.numIter||(Nd(r,e),r.temperature=r.temperature*e.coolingFactor,r.temperature<e.minTemp))},s=function(){if(!0===e.animate||!1===e.animate)o(),n.one("layoutstop",e.stop),n.emit({type:"layoutstop",layout:n});else{var t=e.eles.nodes(),i=Id(r,e,t);t.layoutPositions(n,e,i)}},l=0,c=!0;if(!0===e.animate){var u=function(){for(var t=0;c&&t<e.refresh;)c=a(l),l++,t++;c?(dt()-i>=e.animationThreshold&&o(),ut(u)):(Wd(r,e),s())};u()}else{for(;c;)c=a(l),l++;Wd(r,e),s()}return this},Sd.prototype.stop=function(){return this.stopped=!0,this.thread&&this.thread.stop(),this.emit("layoutstop"),this},Sd.prototype.destroy=function(){return this.thread&&this.thread.stop(),this};var Cd,Td=function(e,t,n){for(var r=n.eles.edges(),i=n.eles.nodes(),o=zn(n.boundingBox?n.boundingBox:{x1:0,y1:0,w:e.width(),h:e.height()}),a={isCompound:e.hasCompoundNodes(),layoutNodes:[],idToIndex:{},nodeSize:i.size(),graphSet:[],indexToGraph:[],layoutEdges:[],edgeSize:r.size(),temperature:n.initialTemp,clientWidth:o.w,clientHeight:o.h,boundingBox:o},s=n.eles.components(),l={},c=0;c<s.length;c++)for(var u=s[c],d=0;d<u.length;d++)l[u[d].id()]=c;for(c=0;c<a.nodeSize;c++){var h=(v=i[c]).layoutDimensions(n);(N={}).isLocked=v.locked(),N.id=v.data("id"),N.parentId=v.data("parent"),N.cmptId=l[v.id()],N.children=[],N.positionX=v.position("x"),N.positionY=v.position("y"),N.offsetX=0,N.offsetY=0,N.height=h.w,N.width=h.h,N.maxX=N.positionX+N.width/2,N.minX=N.positionX-N.width/2,N.maxY=N.positionY+N.height/2,N.minY=N.positionY-N.height/2,N.padLeft=parseFloat(v.style("padding")),N.padRight=parseFloat(v.style("padding")),N.padTop=parseFloat(v.style("padding")),N.padBottom=parseFloat(v.style("padding")),N.nodeRepulsion=te(n.nodeRepulsion)?n.nodeRepulsion(v):n.nodeRepulsion,a.layoutNodes.push(N),a.idToIndex[N.id]=c}var f=[],p=0,g=-1,m=[];for(c=0;c<a.nodeSize;c++){var v,A=(v=a.layoutNodes[c]).parentId;null!=A?a.layoutNodes[a.idToIndex[A]].children.push(v.id):(f[++g]=v.id,m.push(v.id))}for(a.graphSet.push(m);p<=g;){var b=f[p++],y=a.idToIndex[b],w=a.layoutNodes[y].children;if(w.length>0)for(a.graphSet.push(w),c=0;c<w.length;c++)f[++g]=w[c]}for(c=0;c<a.graphSet.length;c++){var _=a.graphSet[c];for(d=0;d<_.length;d++){var x=a.idToIndex[_[d]];a.indexToGraph[x]=c}}for(c=0;c<a.edgeSize;c++){var E=r[c],S={};S.id=E.data("id"),S.sourceId=E.data("source"),S.targetId=E.data("target");var C=te(n.idealEdgeLength)?n.idealEdgeLength(E):n.idealEdgeLength,T=te(n.edgeElasticity)?n.edgeElasticity(E):n.edgeElasticity,k=a.idToIndex[S.sourceId],O=a.idToIndex[S.targetId];if(a.indexToGraph[k]!=a.indexToGraph[O]){for(var M=kd(S.sourceId,S.targetId,a),I=a.graphSet[M],D=0,N=a.layoutNodes[k];-1===I.indexOf(N.id);)N=a.layoutNodes[a.idToIndex[N.parentId]],D++;for(N=a.layoutNodes[O];-1===I.indexOf(N.id);)N=a.layoutNodes[a.idToIndex[N.parentId]],D++;C*=D*n.nestingFactor}S.idealLength=C,S.elasticity=T,a.layoutEdges.push(S)}return a},kd=function(e,t,n){var r=Od(e,t,0,n);return 2>r.count?0:r.graph},Od=function(e,t,n,r){var i=r.graphSet[n];if(-1<i.indexOf(e)&&-1<i.indexOf(t))return{count:2,graph:n};for(var o=0,a=0;a<i.length;a++){var s=i[a],l=r.idToIndex[s],c=r.layoutNodes[l].children;if(0!==c.length){var u=r.indexToGraph[r.idToIndex[c[0]]],d=Od(e,t,u,r);if(0!==d.count){if(1!==d.count)return d;if(2==++o)break}}}return{count:o,graph:n}},Md=function(e,t){for(var n=e.clientWidth,r=e.clientHeight,i=0;i<e.nodeSize;i++){var o=e.layoutNodes[i];0!==o.children.length||o.isLocked||(o.positionX=Math.random()*n,o.positionY=Math.random()*r)}},Id=function(e,t,n){var r=e.boundingBox,i={x1:1/0,x2:-1/0,y1:1/0,y2:-1/0};return t.boundingBox&&(n.forEach(function(t){var n=e.layoutNodes[e.idToIndex[t.data("id")]];i.x1=Math.min(i.x1,n.positionX),i.x2=Math.max(i.x2,n.positionX),i.y1=Math.min(i.y1,n.positionY),i.y2=Math.max(i.y2,n.positionY)}),i.w=i.x2-i.x1,i.h=i.y2-i.y1),function(n,o){var a=e.layoutNodes[e.idToIndex[n.data("id")]];if(t.boundingBox){var s=(a.positionX-i.x1)/i.w,l=(a.positionY-i.y1)/i.h;return{x:r.x1+s*r.w,y:r.y1+l*r.h}}return{x:a.positionX,y:a.positionY}}},Dd=function(e,t,n){var r=n.layout,i=n.eles.nodes(),o=Id(e,n,i);i.positions(o),!0!==e.ready&&(e.ready=!0,r.one("layoutready",n.ready),r.emit({type:"layoutready",layout:this}))},Nd=function(e,t,n){Rd(e,t),$d(e),jd(e,t),Hd(e),Ud(e)},Rd=function(e,t){for(var n=0;n<e.graphSet.length;n++)for(var r=e.graphSet[n],i=r.length,o=0;o<i;o++)for(var a=e.layoutNodes[e.idToIndex[r[o]]],s=o+1;s<i;s++){var l=e.layoutNodes[e.idToIndex[r[s]]];Bd(a,l,e,t)}},Ld=function(e){return 2*e*Math.random()-1},Bd=function(e,t,n,r){if(e.cmptId===t.cmptId||n.isCompound){var i=t.positionX-e.positionX,o=t.positionY-e.positionY,a=1;0===i&&0===o&&(i=Ld(a),o=Ld(a));var s=Pd(e,t,i,o);if(s>0)var l=(u=r.nodeOverlap*s)*i/(m=Math.sqrt(i*i+o*o)),c=u*o/m;else{var u,d=Fd(e,i,o),h=Fd(t,-1*i,-1*o),f=h.x-d.x,p=h.y-d.y,g=f*f+p*p,m=Math.sqrt(g);l=(u=(e.nodeRepulsion+t.nodeRepulsion)/g)*f/m,c=u*p/m}e.isLocked||(e.offsetX-=l,e.offsetY-=c),t.isLocked||(t.offsetX+=l,t.offsetY+=c)}},Pd=function(e,t,n,r){if(n>0)var i=e.maxX-t.minX;else i=t.maxX-e.minX;if(r>0)var o=e.maxY-t.minY;else o=t.maxY-e.minY;return i>=0&&o>=0?Math.sqrt(i*i+o*o):0},Fd=function(e,t,n){var r=e.positionX,i=e.positionY,o=e.height||1,a=e.width||1,s=n/t,l=o/a,c={};return 0===t&&0<n||0===t&&0>n?(c.x=r,c.y=i+o/2,c):0<t&&-1*l<=s&&s<=l?(c.x=r+a/2,c.y=i+a*n/2/t,c):0>t&&-1*l<=s&&s<=l?(c.x=r-a/2,c.y=i-a*n/2/t,c):0<n&&(s<=-1*l||s>=l)?(c.x=r+o*t/2/n,c.y=i+o/2,c):0>n&&(s<=-1*l||s>=l)?(c.x=r-o*t/2/n,c.y=i-o/2,c):c},$d=function(e,t){for(var n=0;n<e.edgeSize;n++){var r=e.layoutEdges[n],i=e.idToIndex[r.sourceId],o=e.layoutNodes[i],a=e.idToIndex[r.targetId],s=e.layoutNodes[a],l=s.positionX-o.positionX,c=s.positionY-o.positionY;if(0!==l||0!==c){var u=Fd(o,l,c),d=Fd(s,-1*l,-1*c),h=d.x-u.x,f=d.y-u.y,p=Math.sqrt(h*h+f*f),g=Math.pow(r.idealLength-p,2)/r.elasticity;if(0!==p)var m=g*h/p,v=g*f/p;else m=0,v=0;o.isLocked||(o.offsetX+=m,o.offsetY+=v),s.isLocked||(s.offsetX-=m,s.offsetY-=v)}}},jd=function(e,t){if(0!==t.gravity)for(var n=1,r=0;r<e.graphSet.length;r++){var i=e.graphSet[r],o=i.length;if(0===r)var a=e.clientHeight/2,s=e.clientWidth/2;else{var l=e.layoutNodes[e.idToIndex[i[0]]],c=e.layoutNodes[e.idToIndex[l.parentId]];a=c.positionX,s=c.positionY}for(var u=0;u<o;u++){var d=e.layoutNodes[e.idToIndex[i[u]]];if(!d.isLocked){var h=a-d.positionX,f=s-d.positionY,p=Math.sqrt(h*h+f*f);if(p>n){var g=t.gravity*h/p,m=t.gravity*f/p;d.offsetX+=g,d.offsetY+=m}}}}},Hd=function(e,t){var n=[],r=0,i=-1;for(n.push.apply(n,e.graphSet[0]),i+=e.graphSet[0].length;r<=i;){var o=n[r++],a=e.idToIndex[o],s=e.layoutNodes[a],l=s.children;if(0<l.length&&!s.isLocked){for(var c=s.offsetX,u=s.offsetY,d=0;d<l.length;d++){var h=e.layoutNodes[e.idToIndex[l[d]]];h.offsetX+=c,h.offsetY+=u,n[++i]=l[d]}s.offsetX=0,s.offsetY=0}}},Ud=function(e,t){for(var n=0;n<e.nodeSize;n++)0<(i=e.layoutNodes[n]).children.length&&(i.maxX=void 0,i.minX=void 0,i.maxY=void 0,i.minY=void 0);for(n=0;n<e.nodeSize;n++)if(!(0<(i=e.layoutNodes[n]).children.length||i.isLocked)){var r=Qd(i.offsetX,i.offsetY,e.temperature);i.positionX+=r.x,i.positionY+=r.y,i.offsetX=0,i.offsetY=0,i.minX=i.positionX-i.width,i.maxX=i.positionX+i.width,i.minY=i.positionY-i.height,i.maxY=i.positionY+i.height,zd(i,e)}for(n=0;n<e.nodeSize;n++){var i;0<(i=e.layoutNodes[n]).children.length&&!i.isLocked&&(i.positionX=(i.maxX+i.minX)/2,i.positionY=(i.maxY+i.minY)/2,i.width=i.maxX-i.minX,i.height=i.maxY-i.minY)}},Qd=function(e,t,n){var r=Math.sqrt(e*e+t*t);if(r>n)var i={x:n*e/r,y:n*t/r};else i={x:e,y:t};return i},zd=function(e,t){var n=e.parentId;if(null!=n){var r=t.layoutNodes[t.idToIndex[n]],i=!1;return(null==r.maxX||e.maxX+r.padRight>r.maxX)&&(r.maxX=e.maxX+r.padRight,i=!0),(null==r.minX||e.minX-r.padLeft<r.minX)&&(r.minX=e.minX-r.padLeft,i=!0),(null==r.maxY||e.maxY+r.padBottom>r.maxY)&&(r.maxY=e.maxY+r.padBottom,i=!0),(null==r.minY||e.minY-r.padTop<r.minY)&&(r.minY=e.minY-r.padTop,i=!0),i?zd(r,t):void 0}},Wd=function(e,t){for(var n=e.layoutNodes,r=[],i=0;i<n.length;i++){var o=n[i],a=o.cmptId;(r[a]=r[a]||[]).push(o)}var s=0;for(i=0;i<r.length;i++)if(g=r[i]){g.x1=1/0,g.x2=-1/0,g.y1=1/0,g.y2=-1/0;for(var l=0;l<g.length;l++){var c=g[l];g.x1=Math.min(g.x1,c.positionX-c.width/2),g.x2=Math.max(g.x2,c.positionX+c.width/2),g.y1=Math.min(g.y1,c.positionY-c.height/2),g.y2=Math.max(g.y2,c.positionY+c.height/2)}g.w=g.x2-g.x1,g.h=g.y2-g.y1,s+=g.w*g.h}r.sort(function(e,t){return t.w*t.h-e.w*e.h});var u=0,d=0,h=0,f=0,p=Math.sqrt(s)*e.clientWidth/e.clientHeight;for(i=0;i<r.length;i++){var g;if(g=r[i]){for(l=0;l<g.length;l++)(c=g[l]).isLocked||(c.positionX+=u-g.x1,c.positionY+=d-g.y1);u+=g.w+t.componentSpacing,h+=g.w+t.componentSpacing,f=Math.max(f,g.h),h>p&&(d+=f+t.componentSpacing,u=0,h=0,f=0)}}},Gd={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(e){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function Vd(e){this.options=Re({},Gd,e)}Vd.prototype.run=function(){var e=this.options,t=e,n=e.cy,r=t.eles,i=r.nodes().not(":parent");t.sort&&(i=i.sort(t.sort));var o=zn(t.boundingBox?t.boundingBox:{x1:0,y1:0,w:n.width(),h:n.height()});if(0===o.h||0===o.w)r.nodes().layoutPositions(this,t,function(e){return{x:o.x1,y:o.y1}});else{var a=i.size(),s=Math.sqrt(a*o.h/o.w),l=Math.round(s),c=Math.round(o.w/o.h*s),u=function(e){if(null==e)return Math.min(l,c);Math.min(l,c)==l?l=e:c=e},d=function(e){if(null==e)return Math.max(l,c);Math.max(l,c)==l?l=e:c=e},h=t.rows,f=null!=t.cols?t.cols:t.columns;if(null!=h&&null!=f)l=h,c=f;else if(null!=h&&null==f)l=h,c=Math.ceil(a/l);else if(null==h&&null!=f)c=f,l=Math.ceil(a/c);else if(c*l>a){var p=u(),g=d();(p-1)*g>=a?u(p-1):(g-1)*p>=a&&d(g-1)}else for(;c*l<a;){var m=u(),v=d();(v+1)*m>=a?d(v+1):u(m+1)}var A=o.w/c,b=o.h/l;if(t.condense&&(A=0,b=0),t.avoidOverlap)for(var y=0;y<i.length;y++){var w=i[y],_=w._private.position;null!=_.x&&null!=_.y||(_.x=0,_.y=0);var x=w.layoutDimensions(t),E=t.avoidOverlapPadding,S=x.w+E,C=x.h+E;A=Math.max(A,S),b=Math.max(b,C)}for(var T={},k=function(e,t){return!!T["c-"+e+"-"+t]},O=function(e,t){T["c-"+e+"-"+t]=!0},M=0,I=0,D=function(){++I>=c&&(I=0,M++)},N={},R=0;R<i.length;R++){var L=i[R],B=t.position(L);if(B&&(void 0!==B.row||void 0!==B.col)){var P={row:B.row,col:B.col};if(void 0===P.col)for(P.col=0;k(P.row,P.col);)P.col++;else if(void 0===P.row)for(P.row=0;k(P.row,P.col);)P.row++;N[L.id()]=P,O(P.row,P.col)}}var F=function(e,t){var n,r;if(e.locked()||e.isParent())return!1;var i=N[e.id()];if(i)n=i.col*A+A/2+o.x1,r=i.row*b+b/2+o.y1;else{for(;k(M,I);)D();n=I*A+A/2+o.x1,r=M*b+b/2+o.y1,O(M,I),D()}return{x:n,y:r}};i.layoutPositions(this,t,F)}return this};var Kd={ready:function(){},stop:function(){}};function Yd(e){this.options=Re({},Kd,e)}Yd.prototype.run=function(){var e=this.options,t=e.eles,n=this;return e.cy,n.emit("layoutstart"),t.nodes().positions(function(){return{x:0,y:0}}),n.one("layoutready",e.ready),n.emit("layoutready"),n.one("layoutstop",e.stop),n.emit("layoutstop"),this},Yd.prototype.stop=function(){return this};var qd={positions:void 0,zoom:void 0,pan:void 0,fit:!0,padding:30,spacingFactor:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function Xd(e){this.options=Re({},qd,e)}Xd.prototype.run=function(){var e=this.options,t=e.eles.nodes(),n=te(e.positions);function r(t){if(null==e.positions)return Sn(t.position());if(n)return e.positions(t);var r=e.positions[t._private.data.id];return null==r?null:r}return t.layoutPositions(this,e,function(e,t){var n=r(e);return!e.locked()&&null!=n&&n}),this};var Jd={fit:!0,padding:30,boundingBox:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(e,t){return!0},ready:void 0,stop:void 0,transform:function(e,t){return t}};function Zd(e){this.options=Re({},Jd,e)}Zd.prototype.run=function(){var e=this.options,t=e.cy,n=e.eles,r=zn(e.boundingBox?e.boundingBox:{x1:0,y1:0,w:t.width(),h:t.height()}),i=function(e,t){return{x:r.x1+Math.round(Math.random()*r.w),y:r.y1+Math.round(Math.random()*r.h)}};return n.nodes().layoutPositions(this,e,i),this};var eh=[{name:"breadthfirst",impl:Ad},{name:"circle",impl:yd},{name:"concentric",impl:xd},{name:"cose",impl:Sd},{name:"grid",impl:Vd},{name:"null",impl:Yd},{name:"preset",impl:Xd},{name:"random",impl:Zd}];function th(e){this.options=e,this.notifications=0}var nh=function(){},rh=function(){throw new Error("A headless instance can not render images")};th.prototype={recalculateRenderedStyle:nh,notify:function(){this.notifications++},init:nh,isHeadless:function(){return!0},png:rh,jpg:rh};var ih={arrowShapeWidth:.3,registerArrowShapes:function(){var e=this.arrowShapes={},t=this,n=function(e,t,n,r,i,o,a){var s=i.x-n/2-a,l=i.x+n/2+a,c=i.y-n/2-a,u=i.y+n/2+a;return s<=e&&e<=l&&c<=t&&t<=u},r=function(e,t,n,r,i){var o=e*Math.cos(r)-t*Math.sin(r),a=(e*Math.sin(r)+t*Math.cos(r))*n;return{x:o*n+i.x,y:a+i.y}},i=function(e,t,n,i){for(var o=[],a=0;a<e.length;a+=2){var s=e[a],l=e[a+1];o.push(r(s,l,t,n,i))}return o},o=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r.x,r.y)}return t},a=function(e){return e.pstyle("width").pfValue*e.pstyle("arrow-scale").pfValue*2},s=function(r,s){ee(s)&&(s=e[s]),e[r]=Re({name:r,points:[-.15,-.3,.15,-.3,.15,.3,-.15,.3],collide:function(e,t,n,r,a,s){var l=o(i(this.points,n+2*s,r,a));return hr(e,t,l)},roughCollide:n,draw:function(e,n,r,o){var a=i(this.points,n,r,o);t.arrowShapeImpl("polygon")(e,a)},spacing:function(e){return 0},gap:a},s)};s("none",{collide:Mt,roughCollide:Mt,draw:Dt,spacing:It,gap:It}),s("triangle",{points:[-.15,-.3,0,0,.15,-.3]}),s("arrow","triangle"),s("triangle-backcurve",{points:e.triangle.points,controlPoint:[0,-.15],roughCollide:n,draw:function(e,n,o,a,s){var l=i(this.points,n,o,a),c=this.controlPoint,u=r(c[0],c[1],n,o,a);t.arrowShapeImpl(this.name)(e,l,u)},gap:function(e){return.8*a(e)}}),s("triangle-tee",{points:[0,0,.15,-.3,-.15,-.3,0,0],pointsTee:[-.15,-.4,-.15,-.5,.15,-.5,.15,-.4],collide:function(e,t,n,r,a,s,l){var c=o(i(this.points,n+2*l,r,a)),u=o(i(this.pointsTee,n+2*l,r,a));return hr(e,t,c)||hr(e,t,u)},draw:function(e,n,r,o,a){var s=i(this.points,n,r,o),l=i(this.pointsTee,n,r,o);t.arrowShapeImpl(this.name)(e,s,l)}}),s("circle-triangle",{radius:.15,pointsTr:[0,-.15,.15,-.45,-.15,-.45,0,-.15],collide:function(e,t,n,r,a,s,l){var c=a,u=Math.pow(c.x-e,2)+Math.pow(c.y-t,2)<=Math.pow((n+2*l)*this.radius,2),d=o(i(this.points,n+2*l,r,a));return hr(e,t,d)||u},draw:function(e,n,r,o,a){var s=i(this.pointsTr,n,r,o);t.arrowShapeImpl(this.name)(e,s,o.x,o.y,this.radius*n)},spacing:function(e){return t.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.radius}}),s("triangle-cross",{points:[0,0,.15,-.3,-.15,-.3,0,0],baseCrossLinePts:[-.15,-.4,-.15,-.4,.15,-.4,.15,-.4],crossLinePts:function(e,t){var n=this.baseCrossLinePts.slice(),r=t/e,i=3,o=5;return n[i]=n[i]-r,n[o]=n[o]-r,n},collide:function(e,t,n,r,a,s,l){var c=o(i(this.points,n+2*l,r,a)),u=o(i(this.crossLinePts(n,s),n+2*l,r,a));return hr(e,t,c)||hr(e,t,u)},draw:function(e,n,r,o,a){var s=i(this.points,n,r,o),l=i(this.crossLinePts(n,a),n,r,o);t.arrowShapeImpl(this.name)(e,s,l)}}),s("vee",{points:[-.15,-.3,0,0,.15,-.3,0,-.15],gap:function(e){return.525*a(e)}}),s("circle",{radius:.15,collide:function(e,t,n,r,i,o,a){var s=i;return Math.pow(s.x-e,2)+Math.pow(s.y-t,2)<=Math.pow((n+2*a)*this.radius,2)},draw:function(e,n,r,i,o){t.arrowShapeImpl(this.name)(e,i.x,i.y,this.radius*n)},spacing:function(e){return t.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.radius}}),s("tee",{points:[-.15,0,-.15,-.1,.15,-.1,.15,0],spacing:function(e){return 1},gap:function(e){return 1}}),s("square",{points:[-.15,0,.15,0,.15,-.3,-.15,-.3]}),s("diamond",{points:[-.15,-.15,0,-.3,.15,-.15,0,0],gap:function(e){return e.pstyle("width").pfValue*e.pstyle("arrow-scale").value}}),s("chevron",{points:[0,0,-.15,-.15,-.1,-.2,0,-.1,.1,-.2,.15,-.15],gap:function(e){return.95*e.pstyle("width").pfValue*e.pstyle("arrow-scale").value}})}},oh={projectIntoViewport:function(e,t){var n=this.cy,r=this.findContainerClientCoords(),i=r[0],o=r[1],a=r[4],s=n.pan(),l=n.zoom();return[((e-i)/a-s.x)/l,((t-o)/a-s.y)/l]},findContainerClientCoords:function(){if(this.containerBB)return this.containerBB;var e=this.container,t=e.getBoundingClientRect(),n=this.cy.window().getComputedStyle(e),r=function(e){return parseFloat(n.getPropertyValue(e))},i={left:r("padding-left"),right:r("padding-right"),top:r("padding-top"),bottom:r("padding-bottom")},o={left:r("border-left-width"),right:r("border-right-width"),top:r("border-top-width"),bottom:r("border-bottom-width")},a=e.clientWidth,s=e.clientHeight,l=i.left+i.right,c=i.top+i.bottom,u=o.left+o.right,d=t.width/(a+u),h=a-l,f=s-c,p=t.left+i.left+o.left,g=t.top+i.top+o.top;return this.containerBB=[p,g,h,f,d]},invalidateContainerClientCoordsCache:function(){this.containerBB=null},findNearestElement:function(e,t,n,r){return this.findNearestElements(e,t,n,r)[0]},findNearestElements:function(e,t,n,r){var i,o,a=this,s=this,l=s.getCachedZSortedEles(),c=[],u=s.cy.zoom(),d=s.cy.hasCompoundNodes(),h=(r?24:8)/u,f=(r?8:2)/u,p=(r?8:2)/u,g=1/0;function m(e,t){if(e.isNode()){if(o)return;o=e,c.push(e)}if(e.isEdge()&&(null==t||t<g))if(i){if(i.pstyle("z-compound-depth").value===e.pstyle("z-compound-depth").value&&i.pstyle("z-compound-depth").value===e.pstyle("z-compound-depth").value)for(var n=0;n<c.length;n++)if(c[n].isEdge()){c[n]=e,i=e,g=null!=t?t:g;break}}else c.push(e),i=e,g=null!=t?t:g}function v(n){var r=n.outerWidth()+2*f,i=n.outerHeight()+2*f,o=r/2,l=i/2,c=n.position(),u="auto"===n.pstyle("corner-radius").value?"auto":n.pstyle("corner-radius").pfValue,d=n._private.rscratch;if(c.x-o<=e&&e<=c.x+o&&c.y-l<=t&&t<=c.y+l&&s.nodeShapes[a.getNodeShape(n)].checkPoint(e,t,0,r,i,c.x,c.y,u,d))return m(n,0),!0}function A(n){var r,i=n._private,o=i.rscratch,l=n.pstyle("width").pfValue,u=n.pstyle("arrow-scale").value,f=l/2+h,p=f*f,g=2*f,A=i.source,b=i.target;if("segments"===o.edgeType||"straight"===o.edgeType||"haystack"===o.edgeType){for(var y=o.allpts,w=0;w+3<y.length;w+=2)if(ar(e,t,y[w],y[w+1],y[w+2],y[w+3],g)&&p>(r=dr(e,t,y[w],y[w+1],y[w+2],y[w+3])))return m(n,r),!0}else if("bezier"===o.edgeType||"multibezier"===o.edgeType||"self"===o.edgeType||"compound"===o.edgeType)for(y=o.allpts,w=0;w+5<o.allpts.length;w+=4)if(sr(e,t,y[w],y[w+1],y[w+2],y[w+3],y[w+4],y[w+5],g)&&p>(r=ur(e,t,y[w],y[w+1],y[w+2],y[w+3],y[w+4],y[w+5])))return m(n,r),!0;A=A||i.source,b=b||i.target;var _=a.getArrowWidth(l,u),x=[{name:"source",x:o.arrowStartX,y:o.arrowStartY,angle:o.srcArrowAngle},{name:"target",x:o.arrowEndX,y:o.arrowEndY,angle:o.tgtArrowAngle},{name:"mid-source",x:o.midX,y:o.midY,angle:o.midsrcArrowAngle},{name:"mid-target",x:o.midX,y:o.midY,angle:o.midtgtArrowAngle}];for(w=0;w<x.length;w++){var E=x[w],S=s.arrowShapes[n.pstyle(E.name+"-arrow-shape").value],C=n.pstyle("width").pfValue;if(S.roughCollide(e,t,_,E.angle,{x:E.x,y:E.y},C,h)&&S.collide(e,t,_,E.angle,{x:E.x,y:E.y},C,h))return m(n),!0}d&&c.length>0&&(v(A),v(b))}function b(e,t,n){return Gt(e,t,n)}function y(n,r){var i,o=n._private,a=p;i=r?r+"-":"",n.boundingBox();var s=o.labelBounds[r||"main"],l=n.pstyle(i+"label").value;if("yes"===n.pstyle("text-events").strValue&&l){var c=b(o.rscratch,"labelX",r),u=b(o.rscratch,"labelY",r),d=b(o.rscratch,"labelAngle",r),h=n.pstyle(i+"text-margin-x").pfValue,f=n.pstyle(i+"text-margin-y").pfValue,g=s.x1-a-h,v=s.x2+a-h,A=s.y1-a-f,y=s.y2+a-f;if(d){var w=Math.cos(d),_=Math.sin(d),x=function(e,t){return{x:(e-=c)*w-(t-=u)*_+c,y:e*_+t*w+u}},E=x(g,A),S=x(g,y),C=x(v,A),T=x(v,y),k=[E.x+h,E.y+f,C.x+h,C.y+f,T.x+h,T.y+f,S.x+h,S.y+f];if(hr(e,t,k))return m(n),!0}else if(Zn(s,e,t))return m(n),!0}}n&&(l=l.interactive);for(var w=l.length-1;w>=0;w--){var _=l[w];_.isNode()?v(_)||y(_):A(_)||y(_)||y(_,"source")||y(_,"target")}return c},getAllInBox:function(e,t,n,r){var i=this.getCachedZSortedEles().interactive,o=2/this.cy.zoom(),a=[],s=Math.min(e,n),l=Math.max(e,n),c=Math.min(t,r),u=Math.max(t,r),d=zn({x1:e=s,y1:t=c,x2:n=l,y2:r=u});function h(e,t,n){return Gt(e,t,n)}function f(e,t){var n=e._private,r=o,i="";e.boundingBox();var a=n.labelBounds.main;if(!a)return null;var s=h(n.rscratch,"labelX",t),l=h(n.rscratch,"labelY",t),c=h(n.rscratch,"labelAngle",t),u=e.pstyle(i+"text-margin-x").pfValue,d=e.pstyle(i+"text-margin-y").pfValue,f=a.x1-r-u,p=a.x2+r-u,g=a.y1-r-d,m=a.y2+r-d;if(c){var v=Math.cos(c),A=Math.sin(c),b=function(e,t){return{x:(e-=s)*v-(t-=l)*A+s,y:e*A+t*v+l}};return[b(f,g),b(p,g),b(p,m),b(f,m)]}return[{x:f,y:g},{x:p,y:g},{x:p,y:m},{x:f,y:m}]}for(var p=0;p<i.length;p++){var g=i[p];if(g.isNode()){var m=g,v="yes"===m.pstyle("text-events").strValue,A="yes"===m.pstyle("box-select-labels").strValue,b=m.boundingBox({includeNodes:!0,includeEdges:!1,includeLabels:A&&v});if(Jn(d,b)){var y=f(m),w=[{x:d.x1,y:d.y1},{x:d.x2,y:d.y1},{x:d.x2,y:d.y2},{x:d.x1,y:d.y2}];y&&!Rr(y,w)||a.push(m)}}else{var _=g,x=_._private,E=x.rscratch;if(null!=E.startX&&null!=E.startY&&!Zn(d,E.startX,E.startY))continue;if(null!=E.endX&&null!=E.endY&&!Zn(d,E.endX,E.endY))continue;if("bezier"===E.edgeType||"multibezier"===E.edgeType||"self"===E.edgeType||"compound"===E.edgeType||"segments"===E.edgeType||"haystack"===E.edgeType){for(var S=x.rstyle.bezierPts||x.rstyle.linePts||x.rstyle.haystackPts,C=!0,T=0;T<S.length;T++)if(!er(d,S[T])){C=!1;break}C&&a.push(_)}else"haystack"!==E.edgeType&&"straight"!==E.edgeType||a.push(_)}}return a}},ah={calculateArrowAngles:function(e){var t,n,r,i,o,a,s=e._private.rscratch,l="haystack"===s.edgeType,c="bezier"===s.edgeType,u="multibezier"===s.edgeType,d="segments"===s.edgeType,h="compound"===s.edgeType,f="self"===s.edgeType;if(l?(r=s.haystackPts[0],i=s.haystackPts[1],o=s.haystackPts[2],a=s.haystackPts[3]):(r=s.arrowStartX,i=s.arrowStartY,o=s.arrowEndX,a=s.arrowEndY),g=s.midX,m=s.midY,d)t=r-s.segpts[0],n=i-s.segpts[1];else if(u||h||f||c){var p=s.allpts;t=r-jn(p[0],p[2],p[4],.1),n=i-jn(p[1],p[3],p[5],.1)}else t=r-g,n=i-m;s.srcArrowAngle=Rn(t,n);var g=s.midX,m=s.midY;if(l&&(g=(r+o)/2,m=(i+a)/2),t=o-r,n=a-i,d)if((p=s.allpts).length/2%2==0){var v=(S=p.length/2)-2;t=p[S]-p[v],n=p[S+1]-p[v+1]}else s.isRound?(t=s.midVector[1],n=-s.midVector[0]):(v=(S=p.length/2-1)-2,t=p[S]-p[v],n=p[S+1]-p[v+1]);else if(u||h||f){var A,b,y,w;p=s.allpts;if(s.ctrlpts.length/2%2==0){var _=2+(x=2+(E=p.length/2-1));A=jn(p[E],p[x],p[_],0),b=jn(p[E+1],p[x+1],p[_+1],0),y=jn(p[E],p[x],p[_],1e-4),w=jn(p[E+1],p[x+1],p[_+1],1e-4)}else{var x,E;_=2+(x=p.length/2-1),A=jn(p[E=x-2],p[x],p[_],.4999),b=jn(p[E+1],p[x+1],p[_+1],.4999),y=jn(p[E],p[x],p[_],.5),w=jn(p[E+1],p[x+1],p[_+1],.5)}t=y-A,n=w-b}if(s.midtgtArrowAngle=Rn(t,n),s.midDispX=t,s.midDispY=n,t*=-1,n*=-1,d)if((p=s.allpts).length/2%2==0);else if(!s.isRound){var S,C=2+(S=p.length/2-1);t=-(p[C]-p[S]),n=-(p[C+1]-p[S+1])}if(s.midsrcArrowAngle=Rn(t,n),d)t=o-s.segpts[s.segpts.length-2],n=a-s.segpts[s.segpts.length-1];else if(u||h||f||c){var T=(p=s.allpts).length;t=o-jn(p[T-6],p[T-4],p[T-2],.9),n=a-jn(p[T-5],p[T-3],p[T-1],.9)}else t=o-g,n=a-m;s.tgtArrowAngle=Rn(t,n)}};ah.getArrowWidth=ah.getArrowHeight=function(e,t){var n=this.arrowWidthCache=this.arrowWidthCache||{},r=n[e+", "+t];return r||(r=Math.max(Math.pow(13.37*e,.9),29)*t,n[e+", "+t]=r,r)};var sh,lh,ch,uh,dh,hh,fh,ph,gh,mh,vh,Ah,bh,yh,wh,_h,xh,Eh={},Sh={},Ch=function(e,t,n){n.x=t.x-e.x,n.y=t.y-e.y,n.len=Math.sqrt(n.x*n.x+n.y*n.y),n.nx=n.x/n.len,n.ny=n.y/n.len,n.ang=Math.atan2(n.ny,n.nx)},Th=function(e,t){t.x=-1*e.x,t.y=-1*e.y,t.nx=-1*e.nx,t.ny=-1*e.ny,t.ang=e.ang>0?-(Math.PI-e.ang):Math.PI+e.ang},kh=function(e,t,n,r,i){if(e!==xh?Ch(t,e,Eh):Th(Sh,Eh),Ch(t,n,Sh),ch=Eh.nx*Sh.ny-Eh.ny*Sh.nx,uh=Eh.nx*Sh.nx-Eh.ny*-Sh.ny,fh=Math.asin(Math.max(-1,Math.min(1,ch))),Math.abs(fh)<1e-6)return sh=t.x,lh=t.y,void(gh=vh=0);dh=1,hh=!1,uh<0?fh<0?fh=Math.PI+fh:(fh=Math.PI-fh,dh=-1,hh=!0):fh>0&&(dh=-1,hh=!0),vh=void 0!==t.radius?t.radius:r,ph=fh/2,Ah=Math.min(Eh.len/2,Sh.len/2),i?(mh=Math.abs(Math.cos(ph)*vh/Math.sin(ph)))>Ah?(mh=Ah,gh=Math.abs(mh*Math.sin(ph)/Math.cos(ph))):gh=vh:(mh=Math.min(Ah,vh),gh=Math.abs(mh*Math.sin(ph)/Math.cos(ph))),wh=t.x+Sh.nx*mh,_h=t.y+Sh.ny*mh,sh=wh-Sh.ny*gh*dh,lh=_h+Sh.nx*gh*dh,bh=t.x+Eh.nx*mh,yh=t.y+Eh.ny*mh,xh=t};function Oh(e,t){0===t.radius?e.lineTo(t.cx,t.cy):e.arc(t.cx,t.cy,t.radius,t.startAngle,t.endAngle,t.counterClockwise)}function Mh(e,t,n,r){var i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return 0===r||0===t.radius?{cx:t.x,cy:t.y,radius:0,startX:t.x,startY:t.y,stopX:t.x,stopY:t.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0}:(kh(e,t,n,r,i),{cx:sh,cy:lh,radius:gh,startX:bh,startY:yh,stopX:wh,stopY:_h,startAngle:Eh.ang+Math.PI/2*dh,endAngle:Sh.ang-Math.PI/2*dh,counterClockwise:hh})}var Ih=.01,Dh=Math.sqrt(2*Ih),Nh={};function Rh(e){var t=[];if(null!=e){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];t.push({x:r,y:i})}return t}}Nh.findMidptPtsEtc=function(e,t){var n,r=t.posPts,i=t.intersectionPts,o=t.vectorNormInverse,a=e.pstyle("source-endpoint"),s=e.pstyle("target-endpoint"),l=null!=a.units&&null!=s.units,c=function(e,t,n,r){var i=r-t,o=n-e,a=Math.sqrt(o*o+i*i);return{x:-i/a,y:o/a}};switch(e.pstyle("edge-distances").value){case"node-position":n=r;break;case"intersection":n=i;break;case"endpoints":if(l){var u=f(this.manualEndptToPx(e.source()[0],a),2),d=u[0],h=u[1],p=f(this.manualEndptToPx(e.target()[0],s),2),g=p[0],m=p[1],v={x1:d,y1:h,x2:g,y2:m};o=c(d,h,g,m),n=v}else Lt("Edge ".concat(e.id()," has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint.  Falling back on edge-distances:intersection (default).")),n=i}return{midptPts:n,vectorNormInverse:o}},Nh.findHaystackPoints=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=n._private,i=r.rscratch;if(!i.haystack){var o=2*Math.random()*Math.PI;i.source={x:Math.cos(o),y:Math.sin(o)},o=2*Math.random()*Math.PI,i.target={x:Math.cos(o),y:Math.sin(o)}}var a=r.source,s=r.target,l=a.position(),c=s.position(),u=a.width(),d=s.width(),h=a.height(),f=s.height(),p=n.pstyle("haystack-radius").value/2;i.haystackPts=i.allpts=[i.source.x*u*p+l.x,i.source.y*h*p+l.y,i.target.x*d*p+c.x,i.target.y*f*p+c.y],i.midX=(i.allpts[0]+i.allpts[2])/2,i.midY=(i.allpts[1]+i.allpts[3])/2,i.edgeType="haystack",i.haystack=!0,this.storeEdgeProjections(n),this.calculateArrowAngles(n),this.recalculateEdgeLabelProjections(n),this.calculateLabelAngles(n)}},Nh.findSegmentsPoints=function(e,t){var n=e._private.rscratch,r=e.pstyle("segment-weights"),i=e.pstyle("segment-distances"),o=e.pstyle("segment-radii"),a=e.pstyle("radius-type"),s=Math.min(r.pfValue.length,i.pfValue.length),l=o.pfValue[o.pfValue.length-1],c=a.pfValue[a.pfValue.length-1];n.edgeType="segments",n.segpts=[],n.radii=[],n.isArcRadius=[];for(var u=0;u<s;u++){var d=r.pfValue[u],h=i.pfValue[u],f=1-d,p=d,g=this.findMidptPtsEtc(e,t),m=g.midptPts,v=g.vectorNormInverse,A={x:m.x1*f+m.x2*p,y:m.y1*f+m.y2*p};n.segpts.push(A.x+v.x*h,A.y+v.y*h),n.radii.push(void 0!==o.pfValue[u]?o.pfValue[u]:l),n.isArcRadius.push("arc-radius"===(void 0!==a.pfValue[u]?a.pfValue[u]:c))}},Nh.findLoopPoints=function(e,t,n,r){var i=e._private.rscratch,o=t.dirCounts,a=t.srcPos,s=e.pstyle("control-point-distances"),l=s?s.pfValue[0]:void 0,c=e.pstyle("loop-direction").pfValue,u=e.pstyle("loop-sweep").pfValue,d=e.pstyle("control-point-step-size").pfValue;i.edgeType="self";var h=n,f=d;r&&(h=0,f=l);var p=c-Math.PI/2,g=p-u/2,m=p+u/2,v=String(c+"_"+u);h=void 0===o[v]?o[v]=0:++o[v],i.ctrlpts=[a.x+1.4*Math.cos(g)*f*(h/3+1),a.y+1.4*Math.sin(g)*f*(h/3+1),a.x+1.4*Math.cos(m)*f*(h/3+1),a.y+1.4*Math.sin(m)*f*(h/3+1)]},Nh.findCompoundLoopPoints=function(e,t,n,r){var i=e._private.rscratch;i.edgeType="compound";var o=t.srcPos,a=t.tgtPos,s=t.srcW,l=t.srcH,c=t.tgtW,u=t.tgtH,d=e.pstyle("control-point-step-size").pfValue,h=e.pstyle("control-point-distances"),f=h?h.pfValue[0]:void 0,p=n,g=d;r&&(p=0,g=f);var m=50,v={x:o.x-s/2,y:o.y-l/2},A={x:a.x-c/2,y:a.y-u/2},b={x:Math.min(v.x,A.x),y:Math.min(v.y,A.y)},y=.5,w=Math.max(y,Math.log(s*Ih)),_=Math.max(y,Math.log(c*Ih));i.ctrlpts=[b.x,b.y-(1+Math.pow(m,1.12)/100)*g*(p/3+1)*w,b.x-(1+Math.pow(m,1.12)/100)*g*(p/3+1)*_,b.y]},Nh.findStraightEdgePoints=function(e){e._private.rscratch.edgeType="straight"},Nh.findBezierPoints=function(e,t,n,r,i){var o=e._private.rscratch,a=e.pstyle("control-point-step-size").pfValue,s=e.pstyle("control-point-distances"),l=e.pstyle("control-point-weights"),c=s&&l?Math.min(s.value.length,l.value.length):1,u=s?s.pfValue[0]:void 0,d=l.value[0],h=r;o.edgeType=h?"multibezier":"bezier",o.ctrlpts=[];for(var f=0;f<c;f++){var p=(.5-t.eles.length/2+n)*a*(i?-1:1),g=void 0,m=Bn(p);h&&(u=s?s.pfValue[f]:a,d=l.value[f]);var v=void 0!==(g=r?u:void 0!==u?m*u:void 0)?g:p,A=1-d,b=d,y=this.findMidptPtsEtc(e,t),w=y.midptPts,_=y.vectorNormInverse,x={x:w.x1*A+w.x2*b,y:w.y1*A+w.y2*b};o.ctrlpts.push(x.x+_.x*v,x.y+_.y*v)}},Nh.findTaxiPoints=function(e,t){var n=e._private.rscratch;n.edgeType="segments";var r="vertical",i="horizontal",o="leftward",a="rightward",s="downward",l="upward",c="auto",u=t.posPts,d=t.srcW,h=t.srcH,f=t.tgtW,p=t.tgtH,g="node-position"!==e.pstyle("edge-distances").value,m=e.pstyle("taxi-direction").value,v=m,A=e.pstyle("taxi-turn"),b="%"===A.units,y=A.pfValue,w=y<0,_=e.pstyle("taxi-turn-min-distance").pfValue,x=g?(d+f)/2:0,E=g?(h+p)/2:0,S=u.x2-u.x1,C=u.y2-u.y1,T=function(e,t){return e>0?Math.max(e-t,0):Math.min(e+t,0)},k=T(S,x),O=T(C,E),M=!1;v===c?m=Math.abs(k)>Math.abs(O)?i:r:v===l||v===s?(m=r,M=!0):v!==o&&v!==a||(m=i,M=!0);var I,D=m===r,N=D?O:k,R=D?C:S,L=Bn(R),B=!1;M&&(b||w)||!(v===s&&R<0||v===l&&R>0||v===o&&R>0||v===a&&R<0)||(N=(L*=-1)*Math.abs(N),B=!0);var P=function(e){return Math.abs(e)<_||Math.abs(e)>=Math.abs(N)},F=P(I=b?(y<0?1+y:y)*N:(y<0?N:0)+y*L),$=P(Math.abs(N)-Math.abs(I));if(!F&&!$||B)if(D){var j=u.y1+I+(g?h/2*L:0),H=u.x1,U=u.x2;n.segpts=[H,j,U,j]}else{var Q=u.x1+I+(g?d/2*L:0),z=u.y1,W=u.y2;n.segpts=[Q,z,Q,W]}else if(D){var G=Math.abs(R)<=h/2,V=Math.abs(S)<=f/2;if(G){var K=(u.x1+u.x2)/2,Y=u.y1,q=u.y2;n.segpts=[K,Y,K,q]}else if(V){var X=(u.y1+u.y2)/2,J=u.x1,Z=u.x2;n.segpts=[J,X,Z,X]}else n.segpts=[u.x1,u.y2]}else{var ee=Math.abs(R)<=d/2,te=Math.abs(C)<=p/2;if(ee){var ne=(u.y1+u.y2)/2,re=u.x1,ie=u.x2;n.segpts=[re,ne,ie,ne]}else if(te){var oe=(u.x1+u.x2)/2,ae=u.y1,se=u.y2;n.segpts=[oe,ae,oe,se]}else n.segpts=[u.x2,u.y1]}if(n.isRound){var le=e.pstyle("taxi-radius").value,ce="arc-radius"===e.pstyle("radius-type").value[0];n.radii=new Array(n.segpts.length/2).fill(le),n.isArcRadius=new Array(n.segpts.length/2).fill(ce)}},Nh.tryToCorrectInvalidPoints=function(e,t){var n=e._private.rscratch;if("bezier"===n.edgeType){var r=t.srcPos,i=t.tgtPos,o=t.srcW,a=t.srcH,s=t.tgtW,l=t.tgtH,c=t.srcShape,u=t.tgtShape,d=t.srcCornerRadius,h=t.tgtCornerRadius,f=t.srcRs,p=t.tgtRs,g=!oe(n.startX)||!oe(n.startY),m=!oe(n.arrowStartX)||!oe(n.arrowStartY),v=!oe(n.endX)||!oe(n.endY),A=!oe(n.arrowEndX)||!oe(n.arrowEndY),b=this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth*3,y=Pn({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.startX,y:n.startY}),w=y<b,_=Pn({x:n.ctrlpts[0],y:n.ctrlpts[1]},{x:n.endX,y:n.endY}),x=_<b,E=!1;if(g||m||w){E=!0;var S={x:n.ctrlpts[0]-r.x,y:n.ctrlpts[1]-r.y},C=Math.sqrt(S.x*S.x+S.y*S.y),T={x:S.x/C,y:S.y/C},k=Math.max(o,a),O={x:n.ctrlpts[0]+2*T.x*k,y:n.ctrlpts[1]+2*T.y*k},M=c.intersectLine(r.x,r.y,o,a,O.x,O.y,0,d,f);w?(n.ctrlpts[0]=n.ctrlpts[0]+T.x*(b-y),n.ctrlpts[1]=n.ctrlpts[1]+T.y*(b-y)):(n.ctrlpts[0]=M[0]+T.x*b,n.ctrlpts[1]=M[1]+T.y*b)}if(v||A||x){E=!0;var I={x:n.ctrlpts[0]-i.x,y:n.ctrlpts[1]-i.y},D=Math.sqrt(I.x*I.x+I.y*I.y),N={x:I.x/D,y:I.y/D},R=Math.max(o,a),L={x:n.ctrlpts[0]+2*N.x*R,y:n.ctrlpts[1]+2*N.y*R},B=u.intersectLine(i.x,i.y,s,l,L.x,L.y,0,h,p);x?(n.ctrlpts[0]=n.ctrlpts[0]+N.x*(b-_),n.ctrlpts[1]=n.ctrlpts[1]+N.y*(b-_)):(n.ctrlpts[0]=B[0]+N.x*b,n.ctrlpts[1]=B[1]+N.y*b)}E&&this.findEndpoints(e)}},Nh.storeAllpts=function(e){var t=e._private.rscratch;if("multibezier"===t.edgeType||"bezier"===t.edgeType||"self"===t.edgeType||"compound"===t.edgeType){t.allpts=[],t.allpts.push(t.startX,t.startY);for(var n=0;n+1<t.ctrlpts.length;n+=2)t.allpts.push(t.ctrlpts[n],t.ctrlpts[n+1]),n+3<t.ctrlpts.length&&t.allpts.push((t.ctrlpts[n]+t.ctrlpts[n+2])/2,(t.ctrlpts[n+1]+t.ctrlpts[n+3])/2);var r,i;t.allpts.push(t.endX,t.endY),t.ctrlpts.length/2%2==0?(r=t.allpts.length/2-1,t.midX=t.allpts[r],t.midY=t.allpts[r+1]):(r=t.allpts.length/2-3,i=.5,t.midX=jn(t.allpts[r],t.allpts[r+2],t.allpts[r+4],i),t.midY=jn(t.allpts[r+1],t.allpts[r+3],t.allpts[r+5],i))}else if("straight"===t.edgeType)t.allpts=[t.startX,t.startY,t.endX,t.endY],t.midX=(t.startX+t.endX+t.arrowStartX+t.arrowEndX)/4,t.midY=(t.startY+t.endY+t.arrowStartY+t.arrowEndY)/4;else if("segments"===t.edgeType){if(t.allpts=[],t.allpts.push(t.startX,t.startY),t.allpts.push.apply(t.allpts,t.segpts),t.allpts.push(t.endX,t.endY),t.isRound){t.roundCorners=[];for(var o=2;o+3<t.allpts.length;o+=2){var a=t.radii[o/2-1],s=t.isArcRadius[o/2-1];t.roundCorners.push(Mh({x:t.allpts[o-2],y:t.allpts[o-1]},{x:t.allpts[o],y:t.allpts[o+1],radius:a},{x:t.allpts[o+2],y:t.allpts[o+3]},a,s))}}if(t.segpts.length%4==0){var l=t.segpts.length/2,c=l-2;t.midX=(t.segpts[c]+t.segpts[l])/2,t.midY=(t.segpts[c+1]+t.segpts[l+1])/2}else{var u=t.segpts.length/2-1;if(t.isRound){var d={x:t.segpts[u],y:t.segpts[u+1]},h=t.roundCorners[u/2];if(0===h.radius){var f={x:t.segpts[u+2],y:t.segpts[u+3]};t.midX=d.x,t.midY=d.y,t.midVector=[d.y-f.y,f.x-d.x]}else{var p=[d.x-h.cx,d.y-h.cy],g=h.radius/Math.sqrt(Math.pow(p[0],2)+Math.pow(p[1],2));p=p.map(function(e){return e*g}),t.midX=h.cx+p[0],t.midY=h.cy+p[1],t.midVector=p}}else t.midX=t.segpts[u],t.midY=t.segpts[u+1]}}},Nh.checkForInvalidEdgeWarning=function(e){var t=e[0]._private.rscratch;t.nodesOverlap||oe(t.startX)&&oe(t.startY)&&oe(t.endX)&&oe(t.endY)?t.loggedErr=!1:t.loggedErr||(t.loggedErr=!0,Lt("Edge `"+e.id()+"` has invalid endpoints and so it is impossible to draw.  Adjust your edge style (e.g. control points) accordingly or use an alternative edge type.  This is expected behaviour when the source node and the target node overlap."))},Nh.findEdgeControlPoints=function(e){var t=this;if(e&&0!==e.length){for(var n=this,r=n.cy.hasCompoundNodes(),i=new Yt,o=function(e,t){return[].concat(p(e),[t?1:0]).join("-")},a=[],s=[],l=0;l<e.length;l++){var c=e[l],u=c._private,d=c.pstyle("curve-style").value;if(!c.removed()&&c.takesUpSpace())if("haystack"!==d){var h="unbundled-bezier"===d||Ee(d,"segments")||"straight"===d||"straight-triangle"===d||Ee(d,"taxi"),f="unbundled-bezier"===d||"bezier"===d,g=u.source,m=u.target,v=[g.poolIndex(),m.poolIndex()].sort(),A=o(v,h),b=i.get(A);null==b&&(b={eles:[]},a.push({pairId:v,edgeIsUnbundled:h}),i.set(A,b)),b.eles.push(c),h&&(b.hasUnbundled=!0),f&&(b.hasBezier=!0)}else s.push(c)}for(var y=function(){var e,s=a[w],l=s.pairId,c=s.edgeIsUnbundled,u=o(l,c),d=i.get(u);if(!d.hasUnbundled){var h=d.eles[0].parallelEdges().filter(function(e){return e.isBundledBezier()});zt(d.eles),h.forEach(function(e){return d.eles.push(e)}),d.eles.sort(function(e,t){return e.poolIndex()-t.poolIndex()})}var f=d.eles[0],p=f.source(),g=f.target();if(p.poolIndex()>g.poolIndex()){var m=p;p=g,g=m}var v=d.srcPos=p.position(),A=d.tgtPos=g.position(),b=d.srcW=p.outerWidth(),y=d.srcH=p.outerHeight(),_=d.tgtW=g.outerWidth(),x=d.tgtH=g.outerHeight(),E=d.srcShape=n.nodeShapes[t.getNodeShape(p)],S=d.tgtShape=n.nodeShapes[t.getNodeShape(g)],C=d.srcCornerRadius="auto"===p.pstyle("corner-radius").value?"auto":p.pstyle("corner-radius").pfValue,T=d.tgtCornerRadius="auto"===g.pstyle("corner-radius").value?"auto":g.pstyle("corner-radius").pfValue,k=d.tgtRs=g._private.rscratch,O=d.srcRs=p._private.rscratch;d.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var M=0;M<d.eles.length;M++){var I=d.eles[M],D=I[0]._private.rscratch,N=I.pstyle("curve-style").value,R="unbundled-bezier"===N||Ee(N,"segments")||Ee(N,"taxi"),L=!p.same(I.source());if(!d.calculatedIntersection&&p!==g&&(d.hasBezier||d.hasUnbundled)){d.calculatedIntersection=!0;var B=E.intersectLine(v.x,v.y,b,y,A.x,A.y,0,C,O),P=d.srcIntn=B,F=S.intersectLine(A.x,A.y,_,x,v.x,v.y,0,T,k),$=d.tgtIntn=F,j=d.intersectionPts={x1:B[0],x2:F[0],y1:B[1],y2:F[1]},H=d.posPts={x1:v.x,x2:A.x,y1:v.y,y2:A.y},U=F[1]-B[1],Q=F[0]-B[0],z=Math.sqrt(Q*Q+U*U);oe(z)&&z>=Dh||(z=Math.sqrt(Math.max(Q*Q,Ih)+Math.max(U*U,Ih)));var W=d.vector={x:Q,y:U},G=d.vectorNorm={x:W.x/z,y:W.y/z},V={x:-G.y,y:G.x};d.nodesOverlap=!oe(z)||S.checkPoint(B[0],B[1],0,_,x,A.x,A.y,T,k)||E.checkPoint(F[0],F[1],0,b,y,v.x,v.y,C,O),d.vectorNormInverse=V,e={nodesOverlap:d.nodesOverlap,dirCounts:d.dirCounts,calculatedIntersection:!0,hasBezier:d.hasBezier,hasUnbundled:d.hasUnbundled,eles:d.eles,srcPos:A,srcRs:k,tgtPos:v,tgtRs:O,srcW:_,srcH:x,tgtW:b,tgtH:y,srcIntn:$,tgtIntn:P,srcShape:S,tgtShape:E,posPts:{x1:H.x2,y1:H.y2,x2:H.x1,y2:H.y1},intersectionPts:{x1:j.x2,y1:j.y2,x2:j.x1,y2:j.y1},vector:{x:-W.x,y:-W.y},vectorNorm:{x:-G.x,y:-G.y},vectorNormInverse:{x:-V.x,y:-V.y}}}var K=L?e:d;D.nodesOverlap=K.nodesOverlap,D.srcIntn=K.srcIntn,D.tgtIntn=K.tgtIntn,D.isRound=N.startsWith("round"),r&&(p.isParent()||p.isChild()||g.isParent()||g.isChild())&&(p.parents().anySame(g)||g.parents().anySame(p)||p.same(g)&&p.isParent())?t.findCompoundLoopPoints(I,K,M,R):p===g?t.findLoopPoints(I,K,M,R):N.endsWith("segments")?t.findSegmentsPoints(I,K):N.endsWith("taxi")?t.findTaxiPoints(I,K):"straight"===N||!R&&d.eles.length%2==1&&M===Math.floor(d.eles.length/2)?t.findStraightEdgePoints(I):t.findBezierPoints(I,K,M,R,L),t.findEndpoints(I),t.tryToCorrectInvalidPoints(I,K),t.checkForInvalidEdgeWarning(I),t.storeAllpts(I),t.storeEdgeProjections(I),t.calculateArrowAngles(I),t.recalculateEdgeLabelProjections(I),t.calculateLabelAngles(I)}},w=0;w<a.length;w++)y();this.findHaystackPoints(s)}},Nh.getSegmentPoints=function(e){var t=e[0]._private.rscratch;if(this.recalculateRenderedStyle(e),"segments"===t.edgeType)return Rh(t.segpts)},Nh.getControlPoints=function(e){var t=e[0]._private.rscratch;this.recalculateRenderedStyle(e);var n=t.edgeType;if("bezier"===n||"multibezier"===n||"self"===n||"compound"===n)return Rh(t.ctrlpts)},Nh.getEdgeMidpoint=function(e){var t=e[0]._private.rscratch;return this.recalculateRenderedStyle(e),{x:t.midX,y:t.midY}};var Lh={manualEndptToPx:function(e,t){var n=this,r=e.position(),i=e.outerWidth(),o=e.outerHeight(),a=e._private.rscratch;if(2===t.value.length){var s=[t.pfValue[0],t.pfValue[1]];return"%"===t.units[0]&&(s[0]=s[0]*i),"%"===t.units[1]&&(s[1]=s[1]*o),s[0]+=r.x,s[1]+=r.y,s}var l=t.pfValue[0];l=-Math.PI/2+l;var c=2*Math.max(i,o),u=[r.x+Math.cos(l)*c,r.y+Math.sin(l)*c];return n.nodeShapes[this.getNodeShape(e)].intersectLine(r.x,r.y,i,o,u[0],u[1],0,"auto"===e.pstyle("corner-radius").value?"auto":e.pstyle("corner-radius").pfValue,a)},findEndpoints:function(e){var t,n,r,i,o,a,s,l,c,u=this,d=e.source()[0],h=e.target()[0],f=d.position(),p=h.position(),g=e.pstyle("target-arrow-shape").value,m=e.pstyle("source-arrow-shape").value,v=e.pstyle("target-distance-from-node").pfValue,A=e.pstyle("source-distance-from-node").pfValue,b=d._private.rscratch,y=h._private.rscratch,w=e.pstyle("curve-style").value,_=e._private.rscratch,x=_.edgeType,E=Ee(w,"taxi"),S="self"===x||"compound"===x,C="bezier"===x||"multibezier"===x||S,T="bezier"!==x,k="straight"===x||"segments"===x,O="segments"===x,M=C||T||k,I=S||E,D=e.pstyle("source-endpoint"),N=I?"outside-to-node":D.value,R="auto"===d.pstyle("corner-radius").value?"auto":d.pstyle("corner-radius").pfValue,L=e.pstyle("target-endpoint"),B=I?"outside-to-node":L.value,P="auto"===h.pstyle("corner-radius").value?"auto":h.pstyle("corner-radius").pfValue;_.srcManEndpt=D,_.tgtManEndpt=L;var F=null!==(t=2===(null==L||null===(n=L.pfValue)||void 0===n?void 0:n.length)?L.pfValue:null)&&void 0!==t?t:[0,0],$=null!==(r=2===(null==D||null===(i=D.pfValue)||void 0===i?void 0:i.length)?D.pfValue:null)&&void 0!==r?r:[0,0];if(C){var j=[_.ctrlpts[0],_.ctrlpts[1]];a=T?[_.ctrlpts[_.ctrlpts.length-2],_.ctrlpts[_.ctrlpts.length-1]]:j,s=j}else if(k){var H=O?_.segpts.slice(0,2):[p.x+F[0],p.y+F[1]];a=O?_.segpts.slice(_.segpts.length-2):[f.x+$[0],f.y+$[1]],s=H}if("inside-to-node"===B)o=[p.x,p.y];else if(L.units)o=this.manualEndptToPx(h,L);else if("outside-to-line"===B)o=_.tgtIntn;else if("outside-to-node"===B||"outside-to-node-or-label"===B?l=a:"outside-to-line"!==B&&"outside-to-line-or-label"!==B||(l=[f.x,f.y]),o=u.nodeShapes[this.getNodeShape(h)].intersectLine(p.x,p.y,h.outerWidth(),h.outerHeight(),l[0],l[1],0,P,y),"outside-to-node-or-label"===B||"outside-to-line-or-label"===B){var U=h._private.rscratch,Q=U.labelWidth,z=U.labelHeight,W=U.labelX,G=U.labelY,V=Q/2,K=z/2,Y=h.pstyle("text-valign").value;"top"===Y?G-=K:"bottom"===Y&&(G+=K);var q=h.pstyle("text-halign").value;"left"===q?W-=V:"right"===q&&(W+=V);var X=xr(l[0],l[1],[W-V,G-K,W+V,G-K,W+V,G+K,W-V,G+K],p.x,p.y);if(X.length>0){var J=f,Z=Fn(J,kn(o)),ee=Fn(J,kn(X)),te=Z;ee<Z&&(o=X,te=ee),X.length>2&&Fn(J,{x:X[2],y:X[3]})<te&&(o=[X[2],X[3]])}}var ne=Sr(o,a,u.arrowShapes[g].spacing(e)+v),re=Sr(o,a,u.arrowShapes[g].gap(e)+v);if(_.endX=re[0],_.endY=re[1],_.arrowEndX=ne[0],_.arrowEndY=ne[1],"inside-to-node"===N)o=[f.x,f.y];else if(D.units)o=this.manualEndptToPx(d,D);else if("outside-to-line"===N)o=_.srcIntn;else if("outside-to-node"===N||"outside-to-node-or-label"===N?c=s:"outside-to-line"!==N&&"outside-to-line-or-label"!==N||(c=[p.x,p.y]),o=u.nodeShapes[this.getNodeShape(d)].intersectLine(f.x,f.y,d.outerWidth(),d.outerHeight(),c[0],c[1],0,R,b),"outside-to-node-or-label"===N||"outside-to-line-or-label"===N){var ie=d._private.rscratch,ae=ie.labelWidth,se=ie.labelHeight,le=ie.labelX,ce=ie.labelY,ue=ae/2,de=se/2,he=d.pstyle("text-valign").value;"top"===he?ce-=de:"bottom"===he&&(ce+=de);var fe=d.pstyle("text-halign").value;"left"===fe?le-=ue:"right"===fe&&(le+=ue);var pe=xr(c[0],c[1],[le-ue,ce-de,le+ue,ce-de,le+ue,ce+de,le-ue,ce+de],f.x,f.y);if(pe.length>0){var ge=p,me=Fn(ge,kn(o)),ve=Fn(ge,kn(pe)),Ae=me;ve<me&&(o=[pe[0],pe[1]],Ae=ve),pe.length>2&&Fn(ge,{x:pe[2],y:pe[3]})<Ae&&(o=[pe[2],pe[3]])}}var be=Sr(o,s,u.arrowShapes[m].spacing(e)+A),ye=Sr(o,s,u.arrowShapes[m].gap(e)+A);_.startX=ye[0],_.startY=ye[1],_.arrowStartX=be[0],_.arrowStartY=be[1],M&&(oe(_.startX)&&oe(_.startY)&&oe(_.endX)&&oe(_.endY)?_.badLine=!1:_.badLine=!0)},getSourceEndpoint:function(e){var t=e[0]._private.rscratch;return this.recalculateRenderedStyle(e),"haystack"===t.edgeType?{x:t.haystackPts[0],y:t.haystackPts[1]}:{x:t.arrowStartX,y:t.arrowStartY}},getTargetEndpoint:function(e){var t=e[0]._private.rscratch;return this.recalculateRenderedStyle(e),"haystack"===t.edgeType?{x:t.haystackPts[2],y:t.haystackPts[3]}:{x:t.arrowEndX,y:t.arrowEndY}}},Bh={};function Ph(e,t,n){for(var r=function(e,t,n,r){return jn(e,t,n,r)},i=t._private.rstyle.bezierPts,o=0;o<e.bezierProjPcts.length;o++){var a=e.bezierProjPcts[o];i.push({x:r(n[0],n[2],n[4],a),y:r(n[1],n[3],n[5],a)})}}Bh.storeEdgeProjections=function(e){var t=e._private,n=t.rscratch,r=n.edgeType;if(t.rstyle.bezierPts=null,t.rstyle.linePts=null,t.rstyle.haystackPts=null,"multibezier"===r||"bezier"===r||"self"===r||"compound"===r){t.rstyle.bezierPts=[];for(var i=0;i+5<n.allpts.length;i+=4)Ph(this,e,n.allpts.slice(i,i+6))}else if("segments"===r){var o=t.rstyle.linePts=[];for(i=0;i+1<n.allpts.length;i+=2)o.push({x:n.allpts[i],y:n.allpts[i+1]})}else if("haystack"===r){var a=n.haystackPts;t.rstyle.haystackPts=[{x:a[0],y:a[1]},{x:a[2],y:a[3]}]}t.rstyle.arrowWidth=this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth},Bh.recalculateEdgeProjections=function(e){this.findEdgeControlPoints(e)};var Fh={recalculateNodeLabelProjection:function(e){var t=e.pstyle("label").strValue;if(!pe(t)){var n,r,i=e._private,o=e.width(),a=e.height(),s=e.padding(),l=e.position(),c=e.pstyle("text-halign").strValue,u=e.pstyle("text-valign").strValue,d=i.rscratch,h=i.rstyle;switch(c){case"left":n=l.x-o/2-s;break;case"right":n=l.x+o/2+s;break;default:n=l.x}switch(u){case"top":r=l.y-a/2-s;break;case"bottom":r=l.y+a/2+s;break;default:r=l.y}d.labelX=n,d.labelY=r,h.labelX=n,h.labelY=r,this.calculateLabelAngles(e),this.applyLabelDimensions(e)}}},$h=function(e,t){var n=Math.atan(t/e);return 0===e&&n<0&&(n*=-1),n},jh=function(e,t){var n=t.x-e.x,r=t.y-e.y;return $h(n,r)},Hh=function(e,t,n,r){var i=Qn(0,r-.001,1),o=Qn(0,r+.001,1),a=Hn(e,t,n,i),s=Hn(e,t,n,o);return jh(a,s)};Fh.recalculateEdgeLabelProjections=function(e){var t,n=e._private,r=n.rscratch,i=this,o={mid:e.pstyle("label").strValue,source:e.pstyle("source-label").strValue,target:e.pstyle("target-label").strValue};if(o.mid||o.source||o.target){t={x:r.midX,y:r.midY};var a=function(e,t,r){Vt(n.rscratch,e,t,r),Vt(n.rstyle,e,t,r)};a("labelX",null,t.x),a("labelY",null,t.y);var s=$h(r.midDispX,r.midDispY);a("labelAutoAngle",null,s);var l=function(){if(l.cache)return l.cache;for(var e=[],t=0;t+5<r.allpts.length;t+=4){var o={x:r.allpts[t],y:r.allpts[t+1]},a={x:r.allpts[t+2],y:r.allpts[t+3]},s={x:r.allpts[t+4],y:r.allpts[t+5]};e.push({p0:o,p1:a,p2:s,startDist:0,length:0,segments:[]})}var c=n.rstyle.bezierPts,u=i.bezierProjPcts.length;function d(e,t,n,r,i){var o=Pn(t,n),a=e.segments[e.segments.length-1],s={p0:t,p1:n,t0:r,t1:i,startDist:a?a.startDist+a.length:0,length:o};e.segments.push(s),e.length+=o}for(var h=0;h<e.length;h++){var f=e[h],p=e[h-1];p&&(f.startDist=p.startDist+p.length),d(f,f.p0,c[h*u],0,i.bezierProjPcts[0]);for(var g=0;g<u-1;g++)d(f,c[h*u+g],c[h*u+g+1],i.bezierProjPcts[g],i.bezierProjPcts[g+1]);d(f,c[h*u+u-1],f.p2,i.bezierProjPcts[u-1],1)}return l.cache=e},c=function(n){var i,s="source"===n;if(o[n]){var c=e.pstyle(n+"-text-offset").pfValue;switch(r.edgeType){case"self":case"compound":case"bezier":case"multibezier":for(var u,d=l(),h=0,f=0,p=0;p<d.length;p++){for(var g=d[s?p:d.length-1-p],m=0;m<g.segments.length;m++){var v=g.segments[s?m:g.segments.length-1-m],A=p===d.length-1&&m===g.segments.length-1;if(h=f,(f+=v.length)>=c||A){u={cp:g,segment:v};break}}if(u)break}var b=u.cp,y=u.segment,w=(c-h)/y.length,_=y.t1-y.t0,x=s?y.t0+_*w:y.t1-_*w;x=Qn(0,x,1),t=Hn(b.p0,b.p1,b.p2,x),i=Hh(b.p0,b.p1,b.p2,x);break;case"straight":case"segments":case"haystack":for(var E,S,C,T,k=0,O=r.allpts.length,M=0;M+3<O&&(s?(C={x:r.allpts[M],y:r.allpts[M+1]},T={x:r.allpts[M+2],y:r.allpts[M+3]}):(C={x:r.allpts[O-2-M],y:r.allpts[O-1-M]},T={x:r.allpts[O-4-M],y:r.allpts[O-3-M]}),S=k,!((k+=E=Pn(C,T))>=c));M+=2);var I=(c-S)/E;I=Qn(0,I,1),t=Un(C,T,I),i=jh(C,T)}a("labelX",n,t.x),a("labelY",n,t.y),a("labelAutoAngle",n,i)}};c("source"),c("target"),this.applyLabelDimensions(e)}},Fh.applyLabelDimensions=function(e){this.applyPrefixedLabelDimensions(e),e.isEdge()&&(this.applyPrefixedLabelDimensions(e,"source"),this.applyPrefixedLabelDimensions(e,"target"))},Fh.applyPrefixedLabelDimensions=function(e,t){var n=e._private,r=this.getLabelText(e,t),i=_t(r,e._private.labelDimsKey);if(Gt(n.rscratch,"prefixedLabelDimsKey",t)!==i){Vt(n.rscratch,"prefixedLabelDimsKey",t,i);var o=this.calculateLabelDimensions(e,r),a=e.pstyle("line-height").pfValue,s=e.pstyle("text-wrap").strValue,l=Gt(n.rscratch,"labelWrapCachedLines",t)||[],c="wrap"!==s?1:Math.max(l.length,1),u=o.height/c,d=u*a,h=o.width,f=o.height+(c-1)*(a-1)*u;Vt(n.rstyle,"labelWidth",t,h),Vt(n.rscratch,"labelWidth",t,h),Vt(n.rstyle,"labelHeight",t,f),Vt(n.rscratch,"labelHeight",t,f),Vt(n.rscratch,"labelLineHeight",t,d)}},Fh.getLabelText=function(e,t){var n=e._private,r=t?t+"-":"",i=e.pstyle(r+"label").strValue,o=e.pstyle("text-transform").value,a=function(e,r){return r?(Vt(n.rscratch,e,t,r),r):Gt(n.rscratch,e,t)};if(!i)return"";"none"==o||("uppercase"==o?i=i.toUpperCase():"lowercase"==o&&(i=i.toLowerCase()));var l=e.pstyle("text-wrap").value;if("wrap"===l){var c=a("labelKey");if(null!=c&&a("labelWrapKey")===c)return a("labelWrapCachedText");for(var u="​",d=i.split("\n"),h=e.pstyle("text-max-width").pfValue,f="anywhere"===e.pstyle("text-overflow-wrap").value,p=[],g=/[\s\u200b]+|$/g,m=0;m<d.length;m++){var v=d[m],A=this.calculateLabelDimensions(e,v).width;if(f){var b=v.split("").join(u);v=b}if(A>h){var y,w="",_=0,x=s(v.matchAll(g));try{for(x.s();!(y=x.n()).done;){var E=y.value,S=E[0],C=v.substring(_,E.index);_=E.index+S.length;var T=0===w.length?C:w+C+S;this.calculateLabelDimensions(e,T).width<=h?w+=C+S:(w&&p.push(w),w=C+S)}}catch(e){x.e(e)}finally{x.f()}w.match(/^[\s\u200b]+$/)||p.push(w)}else p.push(v)}a("labelWrapCachedLines",p),i=a("labelWrapCachedText",p.join("\n")),a("labelWrapKey",c)}else if("ellipsis"===l){var k=e.pstyle("text-max-width").pfValue,O="",M="…",I=!1;if(this.calculateLabelDimensions(e,i).width<k)return i;for(var D=0;D<i.length&&!(this.calculateLabelDimensions(e,O+i[D]+M).width>k);D++)O+=i[D],D===i.length-1&&(I=!0);return I||(O+=M),O}return i},Fh.getLabelJustification=function(e){var t=e.pstyle("text-justification").strValue,n=e.pstyle("text-halign").strValue;if("auto"!==t)return t;if(!e.isNode())return"center";switch(n){case"left":return"right";case"right":return"left";default:return"center"}},Fh.calculateLabelDimensions=function(e,t){var n=this.cy.window().document,r=0,i=e.pstyle("font-style").strValue,o=e.pstyle("font-size").pfValue,a=e.pstyle("font-family").strValue,s=e.pstyle("font-weight").strValue,l=this.labelCalcCanvas,c=this.labelCalcCanvasContext;if(!l){l=this.labelCalcCanvas=n.createElement("canvas"),c=this.labelCalcCanvasContext=l.getContext("2d");var u=l.style;u.position="absolute",u.left="-9999px",u.top="-9999px",u.zIndex="-1",u.visibility="hidden",u.pointerEvents="none"}c.font="".concat(i," ").concat(s," ").concat(o,"px ").concat(a);for(var d=0,h=0,f=t.split("\n"),p=0;p<f.length;p++){var g=f[p],m=c.measureText(g),v=Math.ceil(m.width),A=o;d=Math.max(v,d),h+=A}return{width:d+=r,height:h+=r}},Fh.calculateLabelAngle=function(e,t){var n=e._private.rscratch,r=e.isEdge(),i=t?t+"-":"",o=e.pstyle(i+"text-rotation"),a=o.strValue;return"none"===a?0:r&&"autorotate"===a?n.labelAutoAngle:"autorotate"===a?0:o.pfValue},Fh.calculateLabelAngles=function(e){var t=this,n=e.isEdge(),r=e._private.rscratch;r.labelAngle=t.calculateLabelAngle(e),n&&(r.sourceLabelAngle=t.calculateLabelAngle(e,"source"),r.targetLabelAngle=t.calculateLabelAngle(e,"target"))};var Uh={},Qh=28,zh=!1;Uh.getNodeShape=function(e){var t=this,n=e.pstyle("shape").value;if("cutrectangle"===n&&(e.width()<Qh||e.height()<Qh))return zh||(Lt("The `cutrectangle` node shape can not be used at small sizes so `rectangle` is used instead"),zh=!0),"rectangle";if(e.isParent())return"rectangle"===n||"roundrectangle"===n||"round-rectangle"===n||"cutrectangle"===n||"cut-rectangle"===n||"barrel"===n?n:"rectangle";if("polygon"===n){var r=e.pstyle("shape-polygon-points").value;return t.nodeShapes.makePolygon(r).name}return n};var Wh={registerCalculationListeners:function(){var e=this.cy,t=e.collection(),n=this,r=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.merge(e),n)for(var r=0;r<e.length;r++){var i=e[r]._private.rstyle;i.clean=!1,i.cleanConnected=!1}};n.binder(e).on("bounds.* dirty.*",function(e){var t=e.target;r(t)}).on("style.* background.*",function(e){var t=e.target;r(t,!1)});var i=function(i){if(i){var o=n.onUpdateEleCalcsFns;t.cleanStyle();for(var a=0;a<t.length;a++){var s=t[a],l=s._private.rstyle;s.isNode()&&!l.cleanConnected&&(r(s.connectedEdges()),l.cleanConnected=!0)}if(o)for(var c=0;c<o.length;c++)(0,o[c])(i,t);n.recalculateRenderedStyle(t),t=e.collection()}};n.flushRenderedStyleQueue=function(){i(!0)},n.beforeRender(i,n.beforeRenderPriorities.eleCalcs)},onUpdateEleCalcs:function(e){(this.onUpdateEleCalcsFns=this.onUpdateEleCalcsFns||[]).push(e)},recalculateRenderedStyle:function(e,t){var n=function(e){return e._private.rstyle.cleanConnected};if(0!==e.length){var r=[],i=[];if(!this.destroyed){void 0===t&&(t=!0);for(var o=0;o<e.length;o++){var a=e[o],s=a._private,l=s.rstyle;!a.isEdge()||n(a.source())&&n(a.target())||(l.clean=!1),a.isEdge()&&a.isBundledBezier()&&a.parallelEdges().some(function(e){return!e._private.rstyle.clean&&e.isBundledBezier()})&&(l.clean=!1),t&&l.clean||a.removed()||"none"!==a.pstyle("display").value&&("nodes"===s.group?i.push(a):r.push(a),l.clean=!0)}for(var c=0;c<i.length;c++){var u=i[c],d=u._private.rstyle,h=u.position();this.recalculateNodeLabelProjection(u),d.nodeX=h.x,d.nodeY=h.y,d.nodeW=u.pstyle("width").pfValue,d.nodeH=u.pstyle("height").pfValue}this.recalculateEdgeProjections(r);for(var f=0;f<r.length;f++){var p=r[f]._private,g=p.rstyle,m=p.rscratch;g.srcX=m.arrowStartX,g.srcY=m.arrowStartY,g.tgtX=m.arrowEndX,g.tgtY=m.arrowEndY,g.midX=m.midX,g.midY=m.midY,g.labelAngle=m.labelAngle,g.sourceLabelAngle=m.sourceLabelAngle,g.targetLabelAngle=m.targetLabelAngle}}}}},Gh={updateCachedGrabbedEles:function(){var e=this.cachedZSortedEles;if(e){e.drag=[],e.nondrag=[];for(var t=[],n=0;n<e.length;n++){var r=(i=e[n])._private.rscratch;i.grabbed()&&!i.isParent()?t.push(i):r.inDragLayer?e.drag.push(i):e.nondrag.push(i)}for(n=0;n<t.length;n++){var i=t[n];e.drag.push(i)}}},invalidateCachedZSortedEles:function(){this.cachedZSortedEles=null},getCachedZSortedEles:function(e){if(e||!this.cachedZSortedEles){var t=this.cy.mutableElements().toArray();t.sort(eu),t.interactive=t.filter(function(e){return e.interactive()}),this.cachedZSortedEles=t,this.updateCachedGrabbedEles()}else t=this.cachedZSortedEles;return t}},Vh={};[oh,ah,Nh,Lh,Bh,Fh,Uh,Wh,Gh].forEach(function(e){Re(Vh,e)});var Kh={getCachedImage:function(e,t,n){var r=this,i=r.imageCache=r.imageCache||{},o=i[e];if(o)return o.image.complete||o.image.addEventListener("load",n),o.image;var a=(o=i[e]=i[e]||{}).image=new Image;a.addEventListener("load",n),a.addEventListener("error",function(){a.error=!0});var s="data:";return e.substring(0,s.length).toLowerCase()===s||(t="null"===t?null:t,a.crossOrigin=t),a.src=e,a}},Yh={registerBinding:function(e,t,n,r){var i=Array.prototype.slice.apply(arguments,[1]);if(Array.isArray(e)){for(var o=[],a=0;a<e.length;a++){var s=e[a];if(void 0!==s){var l=this.binder(s);o.push(l.on.apply(l,i))}}return o}return(l=this.binder(e)).on.apply(l,i)},binder:function(e){var t=this,n=t.cy.window(),r=e===n||e===n.document||e===n.document.body||ge(e);if(null==t.supportsPassiveEvents){var i=!1;try{var o=Object.defineProperty({},"passive",{get:function(){return i=!0,!0}});n.addEventListener("test",null,o)}catch(e){}t.supportsPassiveEvents=i}var a=function(n,i,o){var a=Array.prototype.slice.call(arguments);return r&&t.supportsPassiveEvents&&(a[2]={capture:null!=o&&o,passive:!1,once:!1}),t.bindings.push({target:e,args:a}),(e.addEventListener||e.on).apply(e,a),this};return{on:a,addEventListener:a,addListener:a,bind:a}},nodeIsDraggable:function(e){return e&&e.isNode()&&!e.locked()&&e.grabbable()},nodeIsGrabbable:function(e){return this.nodeIsDraggable(e)&&e.interactive()},load:function(){var e=this,t=e.cy.window(),n=function(e){return e.selected()},r=function(e){var t=e.getRootNode();if(t&&11===t.nodeType&&void 0!==t.host)return t},i=function(t,n,r,i){null==t&&(t=e.cy);for(var o=0;o<n.length;o++){var a=n[o];t.emit({originalEvent:r,type:a,position:i})}},o=function(e){return e.shiftKey||e.metaKey||e.ctrlKey},a=function(t,n){var r=!0;if(e.cy.hasCompoundNodes()&&t&&t.pannable()){for(var i=0;n&&i<n.length;i++)if((t=n[i]).isNode()&&t.isParent()&&!t.pannable()){r=!1;break}}else r=!0;return r},s=function(e){e[0]._private.grabbed=!0},l=function(e){e[0]._private.grabbed=!1},c=function(e){e[0]._private.rscratch.inDragLayer=!0},u=function(e){e[0]._private.rscratch.inDragLayer=!1},d=function(e){e[0]._private.rscratch.isGrabTarget=!0},h=function(e){e[0]._private.rscratch.isGrabTarget=!1},f=function(e,t){var n=t.addToList;n.has(e)||!e.grabbable()||e.locked()||(n.merge(e),s(e))},p=function(e,t){if(e.cy().hasCompoundNodes()&&(null!=t.inDragLayer||null!=t.addToList)){var n=e.descendants();t.inDragLayer&&(n.forEach(c),n.connectedEdges().forEach(c)),t.addToList&&f(n,t)}},g=function(t,n){n=n||{};var r=t.cy().hasCompoundNodes();n.inDragLayer&&(t.forEach(c),t.neighborhood().stdFilter(function(e){return!r||e.isEdge()}).forEach(c)),n.addToList&&t.forEach(function(e){f(e,n)}),p(t,n),A(t,{inDragLayer:n.inDragLayer}),e.updateCachedGrabbedEles()},m=g,v=function(t){t&&(e.getCachedZSortedEles().forEach(function(e){l(e),u(e),h(e)}),e.updateCachedGrabbedEles())},A=function(e,t){if((null!=t.inDragLayer||null!=t.addToList)&&e.cy().hasCompoundNodes()){var n=e.ancestors().orphans();if(!n.same(e)){var r=n.descendants().spawnSelf().merge(n).unmerge(e).unmerge(e.descendants()),i=r.connectedEdges();t.inDragLayer&&(i.forEach(c),r.forEach(c)),t.addToList&&r.forEach(function(e){f(e,t)})}}},b=function(){null!=document.activeElement&&null!=document.activeElement.blur&&document.activeElement.blur()},y="undefined"!=typeof MutationObserver,w="undefined"!=typeof ResizeObserver;y?(e.removeObserver=new MutationObserver(function(t){for(var n=0;n<t.length;n++){var r=t[n].removedNodes;if(r)for(var i=0;i<r.length;i++)if(r[i]===e.container){e.destroy();break}}}),e.container.parentNode&&e.removeObserver.observe(e.container.parentNode,{childList:!0})):e.registerBinding(e.container,"DOMNodeRemoved",function(t){e.destroy()});var _=at(function(){e.cy.resize()},100);y&&(e.styleObserver=new MutationObserver(_),e.styleObserver.observe(e.container,{attributes:!0})),e.registerBinding(t,"resize",_),w&&(e.resizeObserver=new ResizeObserver(_),e.resizeObserver.observe(e.container));var x=function(e,t){for(;null!=e;)t(e),e=e.parentNode},E=function(){e.invalidateContainerClientCoordsCache()};x(e.container,function(t){e.registerBinding(t,"transitionend",E),e.registerBinding(t,"animationend",E),e.registerBinding(t,"scroll",E)}),e.registerBinding(e.container,"contextmenu",function(e){e.preventDefault()});var S=function(){return 0!==e.selection[4]},C=function(t){for(var n=e.findContainerClientCoords(),r=n[0],i=n[1],o=n[2],a=n[3],s=t.touches?t.touches:[t],l=!1,c=0;c<s.length;c++){var u=s[c];if(r<=u.clientX&&u.clientX<=r+o&&i<=u.clientY&&u.clientY<=i+a){l=!0;break}}if(!l)return!1;for(var d=e.container,h=t.target.parentNode,f=!1;h;){if(h===d){f=!0;break}h=h.parentNode}return!!f};e.registerBinding(e.container,"mousedown",function(t){if(C(t)&&(1!==e.hoverData.which||1===t.which)){t.preventDefault(),b(),e.hoverData.capture=!0,e.hoverData.which=t.which;var n=e.cy,r=[t.clientX,t.clientY],o=e.projectIntoViewport(r[0],r[1]),a=e.selection,s=e.findNearestElements(o[0],o[1],!0,!1),l=s[0],c=e.dragData.possibleDragElements;e.hoverData.mdownPos=o,e.hoverData.mdownGPos=r;var u=function(e){return{originalEvent:t,type:e,position:{x:o[0],y:o[1]}}},h=function(){e.hoverData.tapholdCancelled=!1,clearTimeout(e.hoverData.tapholdTimeout),e.hoverData.tapholdTimeout=setTimeout(function(){if(!e.hoverData.tapholdCancelled){var t=e.hoverData.down;t?t.emit(u("taphold")):n.emit(u("taphold"))}},e.tapholdDuration)};if(3==t.which){e.hoverData.cxtStarted=!0;var f={originalEvent:t,type:"cxttapstart",position:{x:o[0],y:o[1]}};l?(l.activate(),l.emit(f),e.hoverData.down=l):n.emit(f),e.hoverData.downTime=(new Date).getTime(),e.hoverData.cxtDragged=!1}else if(1==t.which){if(l&&l.activate(),null!=l&&e.nodeIsGrabbable(l)){var p=function(e){e.emit(u("grab"))};if(d(l),l.selected()){c=e.dragData.possibleDragElements=n.collection();var v=n.$(function(t){return t.isNode()&&t.selected()&&e.nodeIsGrabbable(t)});g(v,{addToList:c}),l.emit(u("grabon")),v.forEach(p)}else c=e.dragData.possibleDragElements=n.collection(),m(l,{addToList:c}),l.emit(u("grabon")).emit(u("grab"));e.redrawHint("eles",!0),e.redrawHint("drag",!0)}e.hoverData.down=l,e.hoverData.downs=s,e.hoverData.downTime=(new Date).getTime(),i(l,["mousedown","tapstart","vmousedown"],t,{x:o[0],y:o[1]}),null==l?(a[4]=1,e.data.bgActivePosistion={x:o[0],y:o[1]},e.redrawHint("select",!0),e.redraw()):l.pannable()&&(a[4]=1),h()}a[0]=a[2]=o[0],a[1]=a[3]=o[1]}},!1);var T,k,O,M=r(e.container);e.registerBinding([t,M],"mousemove",function(t){if(e.hoverData.capture||C(t)){var n=!1,r=e.cy,s=r.zoom(),l=[t.clientX,t.clientY],c=e.projectIntoViewport(l[0],l[1]),u=e.hoverData.mdownPos,d=e.hoverData.mdownGPos,h=e.selection,f=null;e.hoverData.draggingEles||e.hoverData.dragging||e.hoverData.selecting||(f=e.findNearestElement(c[0],c[1],!0,!1));var p,m=e.hoverData.last,A=e.hoverData.down,b=[c[0]-h[2],c[1]-h[3]],y=e.dragData.possibleDragElements;if(d){var w=l[0]-d[0],_=w*w,x=l[1]-d[1],E=_+x*x;e.hoverData.isOverThresholdDrag=p=E>=e.desktopTapThreshold2}var S=o(t);p&&(e.hoverData.tapholdCancelled=!0);var T=function(){var t=e.hoverData.dragDelta=e.hoverData.dragDelta||[];0===t.length?(t.push(b[0]),t.push(b[1])):(t[0]+=b[0],t[1]+=b[1])};n=!0,i(f,["mousemove","vmousemove","tapdrag"],t,{x:c[0],y:c[1]});var k=function(e){return{originalEvent:t,type:e,position:{x:c[0],y:c[1]}}},O=function(){e.data.bgActivePosistion=void 0,e.hoverData.selecting||r.emit(k("boxstart")),h[4]=1,e.hoverData.selecting=!0,e.redrawHint("select",!0),e.redraw()};if(3===e.hoverData.which){if(p){var M=k("cxtdrag");A?A.emit(M):r.emit(M),e.hoverData.cxtDragged=!0,e.hoverData.cxtOver&&f===e.hoverData.cxtOver||(e.hoverData.cxtOver&&e.hoverData.cxtOver.emit(k("cxtdragout")),e.hoverData.cxtOver=f,f&&f.emit(k("cxtdragover")))}}else if(e.hoverData.dragging){if(n=!0,r.panningEnabled()&&r.userPanningEnabled()){var I;if(e.hoverData.justStartedPan){var D=e.hoverData.mdownPos;I={x:(c[0]-D[0])*s,y:(c[1]-D[1])*s},e.hoverData.justStartedPan=!1}else I={x:b[0]*s,y:b[1]*s};r.panBy(I),r.emit(k("dragpan")),e.hoverData.dragged=!0}c=e.projectIntoViewport(t.clientX,t.clientY)}else if(1!=h[4]||null!=A&&!A.pannable()){if(A&&A.pannable()&&A.active()&&A.unactivate(),A&&A.grabbed()||f==m||(m&&i(m,["mouseout","tapdragout"],t,{x:c[0],y:c[1]}),f&&i(f,["mouseover","tapdragover"],t,{x:c[0],y:c[1]}),e.hoverData.last=f),A)if(p){if(r.boxSelectionEnabled()&&S)A&&A.grabbed()&&(v(y),A.emit(k("freeon")),y.emit(k("free")),e.dragData.didDrag&&(A.emit(k("dragfreeon")),y.emit(k("dragfree")))),O();else if(A&&A.grabbed()&&e.nodeIsDraggable(A)){var N=!e.dragData.didDrag;N&&e.redrawHint("eles",!0),e.dragData.didDrag=!0,e.hoverData.draggingEles||g(y,{inDragLayer:!0});var R={x:0,y:0};if(oe(b[0])&&oe(b[1])&&(R.x+=b[0],R.y+=b[1],N)){var L=e.hoverData.dragDelta;L&&oe(L[0])&&oe(L[1])&&(R.x+=L[0],R.y+=L[1])}e.hoverData.draggingEles=!0,y.silentShift(R).emit(k("position")).emit(k("drag")),e.redrawHint("drag",!0),e.redraw()}}else T();n=!0}else p&&(e.hoverData.dragging||!r.boxSelectionEnabled()||!S&&r.panningEnabled()&&r.userPanningEnabled()?!e.hoverData.selecting&&r.panningEnabled()&&r.userPanningEnabled()&&a(A,e.hoverData.downs)&&(e.hoverData.dragging=!0,e.hoverData.justStartedPan=!0,h[4]=0,e.data.bgActivePosistion=kn(u),e.redrawHint("select",!0),e.redraw()):O(),A&&A.pannable()&&A.active()&&A.unactivate());return h[2]=c[0],h[3]=c[1],n?(t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),!1):void 0}},!1),e.registerBinding(t,"mouseup",function(t){if((1!==e.hoverData.which||1===t.which||!e.hoverData.capture)&&e.hoverData.capture){e.hoverData.capture=!1;var r=e.cy,a=e.projectIntoViewport(t.clientX,t.clientY),s=e.selection,l=e.findNearestElement(a[0],a[1],!0,!1),c=e.dragData.possibleDragElements,u=e.hoverData.down,d=o(t);e.data.bgActivePosistion&&(e.redrawHint("select",!0),e.redraw()),e.hoverData.tapholdCancelled=!0,e.data.bgActivePosistion=void 0,u&&u.unactivate();var h=function(e){return{originalEvent:t,type:e,position:{x:a[0],y:a[1]}}};if(3===e.hoverData.which){var f=h("cxttapend");if(u?u.emit(f):r.emit(f),!e.hoverData.cxtDragged){var p=h("cxttap");u?u.emit(p):r.emit(p)}e.hoverData.cxtDragged=!1,e.hoverData.which=null}else if(1===e.hoverData.which){if(i(l,["mouseup","tapend","vmouseup"],t,{x:a[0],y:a[1]}),e.dragData.didDrag||e.hoverData.dragged||e.hoverData.selecting||e.hoverData.isOverThresholdDrag||(i(u,["click","tap","vclick"],t,{x:a[0],y:a[1]}),k=!1,t.timeStamp-O<=r.multiClickDebounceTime()?(T&&clearTimeout(T),k=!0,O=null,i(u,["dblclick","dbltap","vdblclick"],t,{x:a[0],y:a[1]})):(T=setTimeout(function(){k||i(u,["oneclick","onetap","voneclick"],t,{x:a[0],y:a[1]})},r.multiClickDebounceTime()),O=t.timeStamp)),null!=u||e.dragData.didDrag||e.hoverData.selecting||e.hoverData.dragged||o(t)||(r.$(n).unselect(["tapunselect"]),c.length>0&&e.redrawHint("eles",!0),e.dragData.possibleDragElements=c=r.collection()),l!=u||e.dragData.didDrag||e.hoverData.selecting||null!=l&&l._private.selectable&&(e.hoverData.dragging||("additive"===r.selectionType()||d?l.selected()?l.unselect(["tapunselect"]):l.select(["tapselect"]):d||(r.$(n).unmerge(l).unselect(["tapunselect"]),l.select(["tapselect"]))),e.redrawHint("eles",!0)),e.hoverData.selecting){var g=r.collection(e.getAllInBox(s[0],s[1],s[2],s[3]));e.redrawHint("select",!0),g.length>0&&e.redrawHint("eles",!0),r.emit(h("boxend"));var m=function(e){return e.selectable()&&!e.selected()};"additive"===r.selectionType()||d||r.$(n).unmerge(g).unselect(),g.emit(h("box")).stdFilter(m).select().emit(h("boxselect")),e.redraw()}if(e.hoverData.dragging&&(e.hoverData.dragging=!1,e.redrawHint("select",!0),e.redrawHint("eles",!0),e.redraw()),!s[4]){e.redrawHint("drag",!0),e.redrawHint("eles",!0);var A=u&&u.grabbed();v(c),A&&(u.emit(h("freeon")),c.emit(h("free")),e.dragData.didDrag&&(u.emit(h("dragfreeon")),c.emit(h("dragfree"))))}}s[4]=0,e.hoverData.down=null,e.hoverData.cxtStarted=!1,e.hoverData.draggingEles=!1,e.hoverData.selecting=!1,e.hoverData.isOverThresholdDrag=!1,e.dragData.didDrag=!1,e.hoverData.dragged=!1,e.hoverData.dragDelta=[],e.hoverData.mdownPos=null,e.hoverData.mdownGPos=null,e.hoverData.which=null}},!1);var I,D,N,R,L,B,P,F,$,j,H,U,Q,z,W=[],G=4,V=1e5,K=function(e,t){for(var n=0;n<e.length;n++)if(e[n]%t!=0)return!1;return!0},Y=function(e){for(var t=Math.abs(e[0]),n=1;n<e.length;n++)if(Math.abs(e[n])!==t)return!1;return!0},q=function(t){var n=!1,r=t.deltaY;if(null==r&&(null!=t.wheelDeltaY?r=t.wheelDeltaY/4:null!=t.wheelDelta&&(r=t.wheelDelta/4)),null==I)if(W.length>=G){var i=W;if(!(I=K(i,5))){var o=Math.abs(i[0]);I=Y(i)&&o>5}if(I)for(var a=0;a<i.length;a++)V=Math.min(Math.abs(i[a]),V)}else W.push(r),n=!0;else I&&(V=Math.min(Math.abs(r),V));if(!e.scrollingPage){var s=e.cy,l=s.zoom(),c=s.pan(),u=e.projectIntoViewport(t.clientX,t.clientY),d=[u[0]*l+c.x,u[1]*l+c.y];if(e.hoverData.draggingEles||e.hoverData.dragging||e.hoverData.cxtStarted||S())t.preventDefault();else if(s.panningEnabled()&&s.userPanningEnabled()&&s.zoomingEnabled()&&s.userZoomingEnabled()){var h;t.preventDefault(),e.data.wheelZooming=!0,clearTimeout(e.data.wheelTimeout),e.data.wheelTimeout=setTimeout(function(){e.data.wheelZooming=!1,e.redrawHint("eles",!0),e.redraw()},150),n&&Math.abs(r)>5&&(r=5*Bn(r)),h=r/-250,I&&(h/=V,h*=3),h*=e.wheelSensitivity,1===t.deltaMode&&(h*=33);var f=s.zoom()*Math.pow(10,h);"gesturechange"===t.type&&(f=e.gestureStartZoom*t.scale),s.zoom({level:f,renderedPosition:{x:d[0],y:d[1]}}),s.emit({type:"gesturechange"===t.type?"pinchzoom":"scrollzoom",originalEvent:t,position:{x:u[0],y:u[1]}})}}};e.registerBinding(e.container,"wheel",q,!0),e.registerBinding(t,"scroll",function(t){e.scrollingPage=!0,clearTimeout(e.scrollingPageTimeout),e.scrollingPageTimeout=setTimeout(function(){e.scrollingPage=!1},250)},!0),e.registerBinding(e.container,"gesturestart",function(t){e.gestureStartZoom=e.cy.zoom(),e.hasTouchStarted||t.preventDefault()},!0),e.registerBinding(e.container,"gesturechange",function(t){e.hasTouchStarted||q(t)},!0),e.registerBinding(e.container,"mouseout",function(t){var n=e.projectIntoViewport(t.clientX,t.clientY);e.cy.emit({originalEvent:t,type:"mouseout",position:{x:n[0],y:n[1]}})},!1),e.registerBinding(e.container,"mouseover",function(t){var n=e.projectIntoViewport(t.clientX,t.clientY);e.cy.emit({originalEvent:t,type:"mouseover",position:{x:n[0],y:n[1]}})},!1);var X,J,Z,ee,te,ne,re,ie=function(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))},ae=function(e,t,n,r){return(n-e)*(n-e)+(r-t)*(r-t)};if(e.registerBinding(e.container,"touchstart",X=function(t){if(e.hasTouchStarted=!0,C(t)){b(),e.touchData.capture=!0,e.data.bgActivePosistion=void 0;var n=e.cy,r=e.touchData.now,o=e.touchData.earlier;if(t.touches[0]){var a=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);r[0]=a[0],r[1]=a[1]}t.touches[1]&&(a=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY),r[2]=a[0],r[3]=a[1]),t.touches[2]&&(a=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY),r[4]=a[0],r[5]=a[1]);var s=function(e){return{originalEvent:t,type:e,position:{x:r[0],y:r[1]}}};if(t.touches[1]){e.touchData.singleTouchMoved=!0,v(e.dragData.touchDragEles);var l=e.findContainerClientCoords();j=l[0],H=l[1],U=l[2],Q=l[3],D=t.touches[0].clientX-j,N=t.touches[0].clientY-H,R=t.touches[1].clientX-j,L=t.touches[1].clientY-H,z=0<=D&&D<=U&&0<=R&&R<=U&&0<=N&&N<=Q&&0<=L&&L<=Q;var c=n.pan(),u=n.zoom();B=ie(D,N,R,L),P=ae(D,N,R,L),$=[((F=[(D+R)/2,(N+L)/2])[0]-c.x)/u,(F[1]-c.y)/u];var h=200;if(P<h*h&&!t.touches[2]){var f=e.findNearestElement(r[0],r[1],!0,!0),p=e.findNearestElement(r[2],r[3],!0,!0);return f&&f.isNode()?(f.activate().emit(s("cxttapstart")),e.touchData.start=f):p&&p.isNode()?(p.activate().emit(s("cxttapstart")),e.touchData.start=p):n.emit(s("cxttapstart")),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!0,e.touchData.cxtDragged=!1,e.data.bgActivePosistion=void 0,void e.redraw()}}if(t.touches[2])n.boxSelectionEnabled()&&t.preventDefault();else if(t.touches[1]);else if(t.touches[0]){var A=e.findNearestElements(r[0],r[1],!0,!0),y=A[0];if(null!=y&&(y.activate(),e.touchData.start=y,e.touchData.starts=A,e.nodeIsGrabbable(y))){var w=e.dragData.touchDragEles=n.collection(),_=null;e.redrawHint("eles",!0),e.redrawHint("drag",!0),y.selected()?(_=n.$(function(t){return t.selected()&&e.nodeIsGrabbable(t)}),g(_,{addToList:w})):m(y,{addToList:w}),d(y),y.emit(s("grabon")),_?_.forEach(function(e){e.emit(s("grab"))}):y.emit(s("grab"))}i(y,["touchstart","tapstart","vmousedown"],t,{x:r[0],y:r[1]}),null==y&&(e.data.bgActivePosistion={x:a[0],y:a[1]},e.redrawHint("select",!0),e.redraw()),e.touchData.singleTouchMoved=!1,e.touchData.singleTouchStartTime=+new Date,clearTimeout(e.touchData.tapholdTimeout),e.touchData.tapholdTimeout=setTimeout(function(){!1!==e.touchData.singleTouchMoved||e.pinching||e.touchData.selecting||i(e.touchData.start,["taphold"],t,{x:r[0],y:r[1]})},e.tapholdDuration)}if(t.touches.length>=1){for(var x=e.touchData.startPosition=[null,null,null,null,null,null],E=0;E<r.length;E++)x[E]=o[E]=r[E];var S=t.touches[0];e.touchData.startGPosition=[S.clientX,S.clientY]}}},!1),e.registerBinding(t,"touchmove",J=function(t){var n=e.touchData.capture;if(n||C(t)){var r=e.selection,o=e.cy,s=e.touchData.now,l=e.touchData.earlier,c=o.zoom();if(t.touches[0]){var u=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);s[0]=u[0],s[1]=u[1]}t.touches[1]&&(u=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY),s[2]=u[0],s[3]=u[1]),t.touches[2]&&(u=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY),s[4]=u[0],s[5]=u[1]);var d,h=function(e){return{originalEvent:t,type:e,position:{x:s[0],y:s[1]}}},f=e.touchData.startGPosition;if(n&&t.touches[0]&&f){for(var p=[],m=0;m<s.length;m++)p[m]=s[m]-l[m];var A=t.touches[0].clientX-f[0],b=A*A,y=t.touches[0].clientY-f[1];d=b+y*y>=e.touchTapThreshold2}if(n&&e.touchData.cxt){t.preventDefault();var w=t.touches[0].clientX-j,_=t.touches[0].clientY-H,x=t.touches[1].clientX-j,E=t.touches[1].clientY-H,S=ae(w,_,x,E),T=150,k=1.5;if(S/P>=k*k||S>=T*T){e.touchData.cxt=!1,e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var O=h("cxttapend");e.touchData.start?(e.touchData.start.unactivate().emit(O),e.touchData.start=null):o.emit(O)}}if(n&&e.touchData.cxt){O=h("cxtdrag"),e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.touchData.start?e.touchData.start.emit(O):o.emit(O),e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxtDragged=!0;var M=e.findNearestElement(s[0],s[1],!0,!0);e.touchData.cxtOver&&M===e.touchData.cxtOver||(e.touchData.cxtOver&&e.touchData.cxtOver.emit(h("cxtdragout")),e.touchData.cxtOver=M,M&&M.emit(h("cxtdragover")))}else if(n&&t.touches[2]&&o.boxSelectionEnabled())t.preventDefault(),e.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,e.touchData.selecting||o.emit(h("boxstart")),e.touchData.selecting=!0,e.touchData.didSelect=!0,r[4]=1,r&&0!==r.length&&void 0!==r[0]?(r[2]=(s[0]+s[2]+s[4])/3,r[3]=(s[1]+s[3]+s[5])/3):(r[0]=(s[0]+s[2]+s[4])/3,r[1]=(s[1]+s[3]+s[5])/3,r[2]=(s[0]+s[2]+s[4])/3+1,r[3]=(s[1]+s[3]+s[5])/3+1),e.redrawHint("select",!0),e.redraw();else if(n&&t.touches[1]&&!e.touchData.didSelect&&o.zoomingEnabled()&&o.panningEnabled()&&o.userZoomingEnabled()&&o.userPanningEnabled()){if(t.preventDefault(),e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),ee=e.dragData.touchDragEles){e.redrawHint("drag",!0);for(var I=0;I<ee.length;I++){var F=ee[I]._private;F.grabbed=!1,F.rscratch.inDragLayer=!1}}var U=e.touchData.start,Q=(w=t.touches[0].clientX-j,_=t.touches[0].clientY-H,x=t.touches[1].clientX-j,E=t.touches[1].clientY-H,ie(w,_,x,E)),W=Q/B;if(z){var G=(w-D+(x-R))/2,V=(_-N+(E-L))/2,K=o.zoom(),Y=K*W,q=o.pan(),X=$[0]*K+q.x,J=$[1]*K+q.y,Z={x:-Y/K*(X-q.x-G)+X,y:-Y/K*(J-q.y-V)+J};if(U&&U.active()){var ee=e.dragData.touchDragEles;v(ee),e.redrawHint("drag",!0),e.redrawHint("eles",!0),U.unactivate().emit(h("freeon")),ee.emit(h("free")),e.dragData.didDrag&&(U.emit(h("dragfreeon")),ee.emit(h("dragfree")))}o.viewport({zoom:Y,pan:Z,cancelOnFailedZoom:!0}),o.emit(h("pinchzoom")),B=Q,D=w,N=_,R=x,L=E,e.pinching=!0}t.touches[0]&&(u=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY),s[0]=u[0],s[1]=u[1]),t.touches[1]&&(u=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY),s[2]=u[0],s[3]=u[1]),t.touches[2]&&(u=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY),s[4]=u[0],s[5]=u[1])}else if(t.touches[0]&&!e.touchData.didSelect){var te=e.touchData.start,ne=e.touchData.last;if(e.hoverData.draggingEles||e.swipePanning||(M=e.findNearestElement(s[0],s[1],!0,!0)),n&&null!=te&&t.preventDefault(),n&&null!=te&&e.nodeIsDraggable(te))if(d){ee=e.dragData.touchDragEles;var re=!e.dragData.didDrag;re&&g(ee,{inDragLayer:!0}),e.dragData.didDrag=!0;var se={x:0,y:0};oe(p[0])&&oe(p[1])&&(se.x+=p[0],se.y+=p[1],re&&(e.redrawHint("eles",!0),(le=e.touchData.dragDelta)&&oe(le[0])&&oe(le[1])&&(se.x+=le[0],se.y+=le[1]))),e.hoverData.draggingEles=!0,ee.silentShift(se).emit(h("position")).emit(h("drag")),e.redrawHint("drag",!0),e.touchData.startPosition[0]==l[0]&&e.touchData.startPosition[1]==l[1]&&e.redrawHint("eles",!0),e.redraw()}else{var le;0===(le=e.touchData.dragDelta=e.touchData.dragDelta||[]).length?(le.push(p[0]),le.push(p[1])):(le[0]+=p[0],le[1]+=p[1])}if(i(te||M,["touchmove","tapdrag","vmousemove"],t,{x:s[0],y:s[1]}),te&&te.grabbed()||M==ne||(ne&&ne.emit(h("tapdragout")),M&&M.emit(h("tapdragover"))),e.touchData.last=M,n)for(I=0;I<s.length;I++)s[I]&&e.touchData.startPosition[I]&&d&&(e.touchData.singleTouchMoved=!0);n&&(null==te||te.pannable())&&o.panningEnabled()&&o.userPanningEnabled()&&(a(te,e.touchData.starts)&&(t.preventDefault(),e.data.bgActivePosistion||(e.data.bgActivePosistion=kn(e.touchData.startPosition)),e.swipePanning?(o.panBy({x:p[0]*c,y:p[1]*c}),o.emit(h("dragpan"))):d&&(e.swipePanning=!0,o.panBy({x:A*c,y:y*c}),o.emit(h("dragpan")),te&&(te.unactivate(),e.redrawHint("select",!0),e.touchData.start=null))),u=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY),s[0]=u[0],s[1]=u[1])}for(m=0;m<s.length;m++)l[m]=s[m];n&&t.touches.length>0&&!e.hoverData.draggingEles&&!e.swipePanning&&null!=e.data.bgActivePosistion&&(e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.redraw())}},!1),e.registerBinding(t,"touchcancel",Z=function(t){var n=e.touchData.start;e.touchData.capture=!1,n&&n.unactivate()}),e.registerBinding(t,"touchend",ee=function(t){var r=e.touchData.start;if(e.touchData.capture){0===t.touches.length&&(e.touchData.capture=!1),t.preventDefault();var o=e.selection;e.swipePanning=!1,e.hoverData.draggingEles=!1;var a=e.cy,s=a.zoom(),l=e.touchData.now,c=e.touchData.earlier;if(t.touches[0]){var u=e.projectIntoViewport(t.touches[0].clientX,t.touches[0].clientY);l[0]=u[0],l[1]=u[1]}t.touches[1]&&(u=e.projectIntoViewport(t.touches[1].clientX,t.touches[1].clientY),l[2]=u[0],l[3]=u[1]),t.touches[2]&&(u=e.projectIntoViewport(t.touches[2].clientX,t.touches[2].clientY),l[4]=u[0],l[5]=u[1]);var d,h=function(e){return{originalEvent:t,type:e,position:{x:l[0],y:l[1]}}};if(r&&r.unactivate(),e.touchData.cxt){if(d=h("cxttapend"),r?r.emit(d):a.emit(d),!e.touchData.cxtDragged){var f=h("cxttap");r?r.emit(f):a.emit(f)}return e.touchData.start&&(e.touchData.start._private.grabbed=!1),e.touchData.cxt=!1,e.touchData.start=null,void e.redraw()}if(!t.touches[2]&&a.boxSelectionEnabled()&&e.touchData.selecting){e.touchData.selecting=!1;var p=a.collection(e.getAllInBox(o[0],o[1],o[2],o[3]));o[0]=void 0,o[1]=void 0,o[2]=void 0,o[3]=void 0,o[4]=0,e.redrawHint("select",!0),a.emit(h("boxend"));var g=function(e){return e.selectable()&&!e.selected()};p.emit(h("box")).stdFilter(g).select().emit(h("boxselect")),p.nonempty()&&e.redrawHint("eles",!0),e.redraw()}if(null!=r&&r.unactivate(),t.touches[2])e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);else if(t.touches[1]);else if(t.touches[0]);else if(!t.touches[0]){e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var m=e.dragData.touchDragEles;if(null!=r){var A=r._private.grabbed;v(m),e.redrawHint("drag",!0),e.redrawHint("eles",!0),A&&(r.emit(h("freeon")),m.emit(h("free")),e.dragData.didDrag&&(r.emit(h("dragfreeon")),m.emit(h("dragfree")))),i(r,["touchend","tapend","vmouseup","tapdragout"],t,{x:l[0],y:l[1]}),r.unactivate(),e.touchData.start=null}else{var b=e.findNearestElement(l[0],l[1],!0,!0);i(b,["touchend","tapend","vmouseup","tapdragout"],t,{x:l[0],y:l[1]})}var y=e.touchData.startPosition[0]-l[0],w=y*y,_=e.touchData.startPosition[1]-l[1],x=(w+_*_)*s*s;e.touchData.singleTouchMoved||(r||a.$(":selected").unselect(["tapunselect"]),i(r,["tap","vclick"],t,{x:l[0],y:l[1]}),te=!1,t.timeStamp-re<=a.multiClickDebounceTime()?(ne&&clearTimeout(ne),te=!0,re=null,i(r,["dbltap","vdblclick"],t,{x:l[0],y:l[1]})):(ne=setTimeout(function(){te||i(r,["onetap","voneclick"],t,{x:l[0],y:l[1]})},a.multiClickDebounceTime()),re=t.timeStamp)),null!=r&&!e.dragData.didDrag&&r._private.selectable&&x<e.touchTapThreshold2&&!e.pinching&&("single"===a.selectionType()?(a.$(n).unmerge(r).unselect(["tapunselect"]),r.select(["tapselect"])):r.selected()?r.unselect(["tapunselect"]):r.select(["tapselect"]),e.redrawHint("eles",!0)),e.touchData.singleTouchMoved=!0}for(var E=0;E<l.length;E++)c[E]=l[E];e.dragData.didDrag=!1,0===t.touches.length&&(e.touchData.dragDelta=[],e.touchData.startPosition=[null,null,null,null,null,null],e.touchData.startGPosition=null,e.touchData.didSelect=!1),t.touches.length<2&&(1===t.touches.length&&(e.touchData.startGPosition=[t.touches[0].clientX,t.touches[0].clientY]),e.pinching=!1,e.redrawHint("eles",!0),e.redraw())}},!1),"undefined"==typeof TouchEvent){var se=[],le=function(e){return{clientX:e.clientX,clientY:e.clientY,force:1,identifier:e.pointerId,pageX:e.pageX,pageY:e.pageY,radiusX:e.width/2,radiusY:e.height/2,screenX:e.screenX,screenY:e.screenY,target:e.target}},ce=function(e){return{event:e,touch:le(e)}},ue=function(e){se.push(ce(e))},de=function(e){for(var t=0;t<se.length;t++)if(se[t].event.pointerId===e.pointerId)return void se.splice(t,1)},he=function(e){var t=se.filter(function(t){return t.event.pointerId===e.pointerId})[0];t.event=e,t.touch=le(e)},fe=function(e){e.touches=se.map(function(e){return e.touch})},pe=function(e){return"mouse"===e.pointerType||4===e.pointerType};e.registerBinding(e.container,"pointerdown",function(e){pe(e)||(e.preventDefault(),ue(e),fe(e),X(e))}),e.registerBinding(e.container,"pointerup",function(e){pe(e)||(de(e),fe(e),ee(e))}),e.registerBinding(e.container,"pointercancel",function(e){pe(e)||(de(e),fe(e),Z(e))}),e.registerBinding(e.container,"pointermove",function(e){pe(e)||(e.preventDefault(),he(e),fe(e),J(e))})}}},qh={generatePolygon:function(e,t){return this.nodeShapes[e]={renderer:this,name:e,points:t,draw:function(e,t,n,r,i,o){this.renderer.nodeShapeImpl("polygon",e,t,n,r,i,this.points)},intersectLine:function(e,t,n,r,i,o,a,s){return xr(i,o,this.points,e,t,n/2,r/2,a)},checkPoint:function(e,t,n,r,i,o,a,s){return fr(e,t,this.points,o,a,r,i,[0,-1],n)},hasMiterBounds:"rectangle"!==e,miterBounds:function(e,t,n,r,i,o){return ir(this.points,e,t,n,r,i)}}},generateEllipse:function(){return this.nodeShapes.ellipse={renderer:this,name:"ellipse",draw:function(e,t,n,r,i,o){this.renderer.nodeShapeImpl(this.name,e,t,n,r,i)},intersectLine:function(e,t,n,r,i,o,a,s){return vr(i,o,e,t,n/2+a,r/2+a)},checkPoint:function(e,t,n,r,i,o,a,s){return Ar(e,t,r,i,o,a,n)}}},generateRoundPolygon:function(e,t){return this.nodeShapes[e]={renderer:this,name:e,points:t,getOrCreateCorners:function(e,n,r,i,o,a,s){if(void 0!==a[s]&&a[s+"-cx"]===e&&a[s+"-cy"]===n)return a[s];a[s]=new Array(t.length/2),a[s+"-cx"]=e,a[s+"-cy"]=n;var l=r/2,c=i/2;o="auto"===o?Mr(r,i):o;for(var u=new Array(t.length/2),d=0;d<t.length/2;d++)u[d]={x:e+l*t[2*d],y:n+c*t[2*d+1]};var h,f,p,g,m=u.length;for(f=u[m-1],h=0;h<m;h++)p=u[h%m],g=u[(h+1)%m],a[s][h]=Mh(f,p,g,o),f=p,p=g;return a[s]},draw:function(e,t,n,r,i,o,a){this.renderer.nodeShapeImpl("round-polygon",e,t,n,r,i,this.points,this.getOrCreateCorners(t,n,r,i,o,a,"drawCorners"))},intersectLine:function(e,t,n,r,i,o,a,s,l){return Er(i,o,this.points,e,t,n,r,a,this.getOrCreateCorners(e,t,n,r,s,l,"corners"))},checkPoint:function(e,t,n,r,i,o,a,s,l){return pr(e,t,this.points,o,a,r,i,this.getOrCreateCorners(o,a,r,i,s,l,"corners"))}}},generateRoundRectangle:function(){return this.nodeShapes["round-rectangle"]=this.nodeShapes.roundrectangle={renderer:this,name:"round-rectangle",points:Cr(4,0),draw:function(e,t,n,r,i,o){this.renderer.nodeShapeImpl(this.name,e,t,n,r,i,this.points,o)},intersectLine:function(e,t,n,r,i,o,a,s){return or(i,o,e,t,n,r,a,s)},checkPoint:function(e,t,n,r,i,o,a,s){var l=r/2,c=i/2;s="auto"===s?Or(r,i):s;var u=2*(s=Math.min(l,c,s));return!!(fr(e,t,this.points,o,a,r,i-u,[0,-1],n)||fr(e,t,this.points,o,a,r-u,i,[0,-1],n)||Ar(e,t,u,u,o-l+s,a-c+s,n)||Ar(e,t,u,u,o+l-s,a-c+s,n)||Ar(e,t,u,u,o+l-s,a+c-s,n)||Ar(e,t,u,u,o-l+s,a+c-s,n))}}},generateCutRectangle:function(){return this.nodeShapes["cut-rectangle"]=this.nodeShapes.cutrectangle={renderer:this,name:"cut-rectangle",cornerLength:Ir(),points:Cr(4,0),draw:function(e,t,n,r,i,o){this.renderer.nodeShapeImpl(this.name,e,t,n,r,i,null,o)},generateCutTrianglePts:function(e,t,n,r,i){var o="auto"===i?this.cornerLength:i,a=t/2,s=e/2,l=n-s,c=n+s,u=r-a,d=r+a;return{topLeft:[l,u+o,l+o,u,l+o,u+o],topRight:[c-o,u,c,u+o,c-o,u+o],bottomRight:[c,d-o,c-o,d,c-o,d-o],bottomLeft:[l+o,d,l,d-o,l+o,d-o]}},intersectLine:function(e,t,n,r,i,o,a,s){var l=this.generateCutTrianglePts(n+2*a,r+2*a,e,t,s),c=[].concat.apply([],[l.topLeft.splice(0,4),l.topRight.splice(0,4),l.bottomRight.splice(0,4),l.bottomLeft.splice(0,4)]);return xr(i,o,c,e,t)},checkPoint:function(e,t,n,r,i,o,a,s){var l="auto"===s?this.cornerLength:s;if(fr(e,t,this.points,o,a,r,i-2*l,[0,-1],n))return!0;if(fr(e,t,this.points,o,a,r-2*l,i,[0,-1],n))return!0;var c=this.generateCutTrianglePts(r,i,o,a);return hr(e,t,c.topLeft)||hr(e,t,c.topRight)||hr(e,t,c.bottomRight)||hr(e,t,c.bottomLeft)}}},generateBarrel:function(){return this.nodeShapes.barrel={renderer:this,name:"barrel",points:Cr(4,0),draw:function(e,t,n,r,i,o){this.renderer.nodeShapeImpl(this.name,e,t,n,r,i)},intersectLine:function(e,t,n,r,i,o,a,s){var l=.15,c=.5,u=.85,d=this.generateBarrelBezierPts(n+2*a,r+2*a,e,t),h=function(e){var t=Hn({x:e[0],y:e[1]},{x:e[2],y:e[3]},{x:e[4],y:e[5]},l),n=Hn({x:e[0],y:e[1]},{x:e[2],y:e[3]},{x:e[4],y:e[5]},c),r=Hn({x:e[0],y:e[1]},{x:e[2],y:e[3]},{x:e[4],y:e[5]},u);return[e[0],e[1],t.x,t.y,n.x,n.y,r.x,r.y,e[4],e[5]]},f=[].concat(h(d.topLeft),h(d.topRight),h(d.bottomRight),h(d.bottomLeft));return xr(i,o,f,e,t)},generateBarrelBezierPts:function(e,t,n,r){var i=t/2,o=e/2,a=n-o,s=n+o,l=r-i,c=r+i,u=Nr(e,t),d=u.heightOffset,h=u.widthOffset,f=u.ctrlPtOffsetPct*e,p={topLeft:[a,l+d,a+f,l,a+h,l],topRight:[s-h,l,s-f,l,s,l+d],bottomRight:[s,c-d,s-f,c,s-h,c],bottomLeft:[a+h,c,a+f,c,a,c-d]};return p.topLeft.isTop=!0,p.topRight.isTop=!0,p.bottomLeft.isBottom=!0,p.bottomRight.isBottom=!0,p},checkPoint:function(e,t,n,r,i,o,a,s){var l=Nr(r,i),c=l.heightOffset,u=l.widthOffset;if(fr(e,t,this.points,o,a,r,i-2*c,[0,-1],n))return!0;if(fr(e,t,this.points,o,a,r-2*u,i,[0,-1],n))return!0;for(var d=this.generateBarrelBezierPts(r,i,o,a),h=function(e,t,n){var r=n[4],i=n[2],o=n[0],a=n[5],s=n[1],l=Math.min(r,o),c=Math.max(r,o),u=Math.min(a,s),d=Math.max(a,s);if(l<=e&&e<=c&&u<=t&&t<=d){var h=Dr(r,i,o),f=lr(h[0],h[1],h[2],e).filter(function(e){return 0<=e&&e<=1});if(f.length>0)return f[0]}return null},f=Object.keys(d),p=0;p<f.length;p++){var g=d[f[p]],m=h(e,t,g);if(null!=m){var v=g[5],A=g[3],b=g[1],y=jn(v,A,b,m);if(g.isTop&&y<=t)return!0;if(g.isBottom&&t<=y)return!0}}return!1}}},generateBottomRoundrectangle:function(){return this.nodeShapes["bottom-round-rectangle"]=this.nodeShapes.bottomroundrectangle={renderer:this,name:"bottom-round-rectangle",points:Cr(4,0),draw:function(e,t,n,r,i,o){this.renderer.nodeShapeImpl(this.name,e,t,n,r,i,this.points,o)},intersectLine:function(e,t,n,r,i,o,a,s){var l=t-(r/2+a),c=wr(i,o,e,t,e-(n/2+a),l,e+(n/2+a),l,!1);return c.length>0?c:or(i,o,e,t,n,r,a,s)},checkPoint:function(e,t,n,r,i,o,a,s){var l=2*(s="auto"===s?Or(r,i):s);if(fr(e,t,this.points,o,a,r,i-l,[0,-1],n))return!0;if(fr(e,t,this.points,o,a,r-l,i,[0,-1],n))return!0;var c=r/2+2*n,u=i/2+2*n;return!!hr(e,t,[o-c,a-u,o-c,a,o+c,a,o+c,a-u])||!!Ar(e,t,l,l,o+r/2-s,a+i/2-s,n)||!!Ar(e,t,l,l,o-r/2+s,a+i/2-s,n)}}},registerNodeShapes:function(){var e=this.nodeShapes={},t=this;this.generateEllipse(),this.generatePolygon("triangle",Cr(3,0)),this.generateRoundPolygon("round-triangle",Cr(3,0)),this.generatePolygon("rectangle",Cr(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();var n=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",n),this.generateRoundPolygon("round-diamond",n),this.generatePolygon("pentagon",Cr(5,0)),this.generateRoundPolygon("round-pentagon",Cr(5,0)),this.generatePolygon("hexagon",Cr(6,0)),this.generateRoundPolygon("round-hexagon",Cr(6,0)),this.generatePolygon("heptagon",Cr(7,0)),this.generateRoundPolygon("round-heptagon",Cr(7,0)),this.generatePolygon("octagon",Cr(8,0)),this.generateRoundPolygon("round-octagon",Cr(8,0));var r=new Array(20),i=kr(5,0),o=kr(5,Math.PI/5),a=.5*(3-Math.sqrt(5));a*=1.57;for(var s=0;s<o.length/2;s++)o[2*s]*=a,o[2*s+1]*=a;for(s=0;s<5;s++)r[4*s]=i[2*s],r[4*s+1]=i[2*s+1],r[4*s+2]=o[2*s],r[4*s+3]=o[2*s+1];r=Tr(r),this.generatePolygon("star",r),this.generatePolygon("vee",[-1,-1,0,-.333,1,-1,0,1]),this.generatePolygon("rhomboid",[-1,-1,.333,-1,1,1,-.333,1]),this.generatePolygon("right-rhomboid",[-.333,-1,1,-1,.333,1,-1,1]),this.nodeShapes.concavehexagon=this.generatePolygon("concave-hexagon",[-1,-.95,-.75,0,-1,.95,1,.95,.75,0,1,-.95]);var l=[-1,-1,.25,-1,1,0,.25,1,-1,1];this.generatePolygon("tag",l),this.generateRoundPolygon("round-tag",l),e.makePolygon=function(e){var n,r="polygon-"+e.join("$");return(n=this[r])?n:t.generatePolygon(r,e)}}},Xh={timeToRender:function(){return this.redrawTotalTime/this.redrawCount},redraw:function(e){e=e||Ht();var t=this;void 0===t.averageRedrawTime&&(t.averageRedrawTime=0),void 0===t.lastRedrawTime&&(t.lastRedrawTime=0),void 0===t.lastDrawTime&&(t.lastDrawTime=0),t.requestedFrame=!0,t.renderOptions=e},beforeRender:function(e,t){if(!this.destroyed){null==t&&Nt("Priority is not optional for beforeRender");var n=this.beforeRenderCallbacks;n.push({fn:e,priority:t}),n.sort(function(e,t){return t.priority-e.priority})}}},Jh=function(e,t,n){for(var r=e.beforeRenderCallbacks,i=0;i<r.length;i++)r[i].fn(t,n)};Xh.startRenderLoop=function(){var e=this,t=e.cy;if(!e.renderLoopStarted){e.renderLoopStarted=!0;var n=function(r){if(!e.destroyed){if(t.batching());else if(e.requestedFrame&&!e.skipFrame){Jh(e,!0,r);var i=dt();e.render(e.renderOptions);var o=e.lastDrawTime=dt();void 0===e.averageRedrawTime&&(e.averageRedrawTime=o-i),void 0===e.redrawCount&&(e.redrawCount=0),e.redrawCount++,void 0===e.redrawTotalTime&&(e.redrawTotalTime=0);var a=o-i;e.redrawTotalTime+=a,e.lastRedrawTime=a,e.averageRedrawTime=e.averageRedrawTime/2+a/2,e.requestedFrame=!1}else Jh(e,!1,r);e.skipFrame=!1,ut(n)}};ut(n)}};var Zh=function(e){this.init(e)},ef=Zh,tf=ef.prototype;tf.clientFunctions=["redrawHint","render","renderTo","matchCanvasSize","nodeShapeImpl","arrowShapeImpl"],tf.init=function(e){var t=this;t.options=e,t.cy=e.cy;var n=t.container=e.cy.container(),r=t.cy.window();if(r){var i=r.document,o=i.head,a="__________cytoscape_stylesheet",s="__________cytoscape_container",l=null!=i.getElementById(a);if(n.className.indexOf(s)<0&&(n.className=(n.className||"")+" "+s),!l){var c=i.createElement("style");c.id=a,c.textContent="."+s+" { position: relative; }",o.insertBefore(c,o.children[0])}"static"===r.getComputedStyle(n).getPropertyValue("position")&&Lt("A Cytoscape container has style position:static and so can not use UI extensions properly")}t.selection=[void 0,void 0,void 0,void 0,0],t.bezierProjPcts=[.05,.225,.4,.5,.6,.775,.95],t.hoverData={down:null,last:null,downTime:null,triggerMode:null,dragging:!1,initialPan:[null,null],capture:!1},t.dragData={possibleDragElements:[]},t.touchData={start:null,capture:!1,startPosition:[null,null,null,null,null,null],singleTouchStartTime:null,singleTouchMoved:!0,now:[null,null,null,null,null,null],earlier:[null,null,null,null,null,null]},t.redraws=0,t.showFps=e.showFps,t.debug=e.debug,t.webgl=e.webgl,t.hideEdgesOnViewport=e.hideEdgesOnViewport,t.textureOnViewport=e.textureOnViewport,t.wheelSensitivity=e.wheelSensitivity,t.motionBlurEnabled=e.motionBlur,t.forcedPixelRatio=oe(e.pixelRatio)?e.pixelRatio:null,t.motionBlur=e.motionBlur,t.motionBlurOpacity=e.motionBlurOpacity,t.motionBlurTransparency=1-t.motionBlurOpacity,t.motionBlurPxRatio=1,t.mbPxRBlurry=1,t.minMbLowQualFrames=4,t.fullQualityMb=!1,t.clearedForMotionBlur=[],t.desktopTapThreshold=e.desktopTapThreshold,t.desktopTapThreshold2=e.desktopTapThreshold*e.desktopTapThreshold,t.touchTapThreshold=e.touchTapThreshold,t.touchTapThreshold2=e.touchTapThreshold*e.touchTapThreshold,t.tapholdDuration=500,t.bindings=[],t.beforeRenderCallbacks=[],t.beforeRenderPriorities={animations:400,eleCalcs:300,eleTxrDeq:200,lyrTxrDeq:150,lyrTxrSkip:100},t.registerNodeShapes(),t.registerArrowShapes(),t.registerCalculationListeners()},tf.notify=function(e,t){var n=this,r=n.cy;this.destroyed||("init"!==e?"destroy"!==e?(("add"===e||"remove"===e||"move"===e&&r.hasCompoundNodes()||"load"===e||"zorder"===e||"mount"===e)&&n.invalidateCachedZSortedEles(),"viewport"===e&&n.redrawHint("select",!0),"gc"===e&&n.redrawHint("gc",!0),"load"!==e&&"resize"!==e&&"mount"!==e||(n.invalidateContainerClientCoordsCache(),n.matchCanvasSize(n.container)),n.redrawHint("eles",!0),n.redrawHint("drag",!0),this.startRenderLoop(),this.redraw()):n.destroy():n.load())},tf.destroy=function(){var e=this;e.destroyed=!0,e.cy.stopAnimationLoop();for(var t=0;t<e.bindings.length;t++){var n=e.bindings[t],r=n.target;(r.off||r.removeEventListener).apply(r,n.args)}if(e.bindings=[],e.beforeRenderCallbacks=[],e.onUpdateEleCalcsFns=[],e.removeObserver&&e.removeObserver.disconnect(),e.styleObserver&&e.styleObserver.disconnect(),e.resizeObserver&&e.resizeObserver.disconnect(),e.labelCalcDiv)try{document.body.removeChild(e.labelCalcDiv)}catch(e){}},tf.isHeadless=function(){return!1},[ih,Vh,Kh,Yh,qh,Xh].forEach(function(e){Re(tf,e)});var nf=1e3/60,rf={setupDequeueing:function(e){return function(){var t=this,n=this.renderer;if(!t.dequeueingSetup){t.dequeueingSetup=!0;var r=at(function(){n.redrawHint("eles",!0),n.redrawHint("drag",!0),n.redraw()},e.deqRedrawThreshold),i=function(i,o){var a=dt(),s=n.averageRedrawTime,l=n.lastRedrawTime,c=[],u=n.cy.extent(),d=n.getPixelRatio();for(i||n.flushRenderedStyleQueue();;){var h=dt(),f=h-a,p=h-o;if(l<nf){var g=nf-(i?s:0);if(p>=e.deqFastCost*g)break}else if(i){if(f>=e.deqCost*l||f>=e.deqAvgCost*s)break}else if(p>=e.deqNoDrawCost*nf)break;var m=e.deq(t,d,u);if(!(m.length>0))break;for(var v=0;v<m.length;v++)c.push(m[v])}c.length>0&&(e.onDeqd(t,c),!i&&e.shouldRedraw(t,c,d,u)&&r())},o=e.priority||Dt;n.beforeRender(i,o(t))}}}},of=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mt;i(this,e),this.idsByKey=new Yt,this.keyForId=new Yt,this.cachesByLvl=new Yt,this.lvls=[],this.getKey=t,this.doesEleInvalidateKey=n}return a(e,[{key:"getIdsFor",value:function(e){null==e&&Nt("Can not get id list for null key");var t=this.idsByKey,n=this.idsByKey.get(e);return n||(n=new Jt,t.set(e,n)),n}},{key:"addIdForKey",value:function(e,t){null!=e&&this.getIdsFor(e).add(t)}},{key:"deleteIdForKey",value:function(e,t){null!=e&&this.getIdsFor(e).delete(t)}},{key:"getNumberOfIdsForKey",value:function(e){return null==e?0:this.getIdsFor(e).size}},{key:"updateKeyMappingFor",value:function(e){var t=e.id(),n=this.keyForId.get(t),r=this.getKey(e);this.deleteIdForKey(n,t),this.addIdForKey(r,t),this.keyForId.set(t,r)}},{key:"deleteKeyMappingFor",value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteIdForKey(n,t),this.keyForId.delete(t)}},{key:"keyHasChangedFor",value:function(e){var t=e.id();return this.keyForId.get(t)!==this.getKey(e)}},{key:"isInvalid",value:function(e){return this.keyHasChangedFor(e)||this.doesEleInvalidateKey(e)}},{key:"getCachesAt",value:function(e){var t=this.cachesByLvl,n=this.lvls,r=t.get(e);return r||(r=new Yt,t.set(e,r),n.push(e)),r}},{key:"getCache",value:function(e,t){return this.getCachesAt(t).get(e)}},{key:"get",value:function(e,t){var n=this.getKey(e),r=this.getCache(n,t);return null!=r&&this.updateKeyMappingFor(e),r}},{key:"getForCachedKey",value:function(e,t){var n=this.keyForId.get(e.id());return this.getCache(n,t)}},{key:"hasCache",value:function(e,t){return this.getCachesAt(t).has(e)}},{key:"has",value:function(e,t){var n=this.getKey(e);return this.hasCache(n,t)}},{key:"setCache",value:function(e,t,n){n.key=e,this.getCachesAt(t).set(e,n)}},{key:"set",value:function(e,t,n){var r=this.getKey(e);this.setCache(r,t,n),this.updateKeyMappingFor(e)}},{key:"deleteCache",value:function(e,t){this.getCachesAt(t).delete(e)}},{key:"delete",value:function(e,t){var n=this.getKey(e);this.deleteCache(n,t)}},{key:"invalidateKey",value:function(e){var t=this;this.lvls.forEach(function(n){return t.deleteCache(e,n)})}},{key:"invalidate",value:function(e){var t=e.id(),n=this.keyForId.get(t);this.deleteKeyMappingFor(e);var r=this.doesEleInvalidateKey(e);return r&&this.invalidateKey(n),r||0===this.getNumberOfIdsForKey(n)}}])}(),af=25,sf=50,lf=-4,cf=3,uf=7.99,df=8,hf=1024,ff=1024,pf=1024,gf=.2,mf=.8,vf=10,Af=.15,bf=.1,yf=.9,wf=.9,_f=100,xf=1,Ef={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},Sf=Ut({getKey:null,doesEleInvalidateKey:Mt,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:Ot,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),Cf=function(e,t){var n=this;n.renderer=e,n.onDequeues=[];var r=Sf(t);Re(n,r),n.lookup=new of(r.getKey,r.doesEleInvalidateKey),n.setupDequeueing()},Tf=Cf.prototype;Tf.reasons=Ef,Tf.getTextureQueue=function(e){var t=this;return t.eleImgCaches=t.eleImgCaches||{},t.eleImgCaches[e]=t.eleImgCaches[e]||[]},Tf.getRetiredTextureQueue=function(e){var t=this,n=t.eleImgCaches.retired=t.eleImgCaches.retired||{};return n[e]=n[e]||[]},Tf.getElementQueue=function(){var e=this;return e.eleCacheQueue=e.eleCacheQueue||new dn(function(e,t){return t.reqs-e.reqs})},Tf.getElementKeyToQueue=function(){var e=this;return e.eleKeyToCacheQueue=e.eleKeyToCacheQueue||{}},Tf.getElement=function(e,t,n,r,i){var o=this,a=this.renderer,s=a.cy.zoom(),l=this.lookup;if(!t||0===t.w||0===t.h||isNaN(t.w)||isNaN(t.h)||!e.visible()||e.removed())return null;if(!o.allowEdgeTxrCaching&&e.isEdge()||!o.allowParentTxrCaching&&e.isParent())return null;if(null==r&&(r=Math.ceil(Ln(s*n))),r<lf)r=lf;else if(s>=uf||r>cf)return null;var c=Math.pow(2,r),u=t.h*c,d=t.w*c,h=a.eleTextBiggerThanMin(e,c);if(!this.isVisible(e,h))return null;var f,p=l.get(e,r);if(p&&p.invalidated&&(p.invalidated=!1,p.texture.invalidatedWidth-=p.width),p)return p;if(f=u<=af?af:u<=sf?sf:Math.ceil(u/sf)*sf,u>pf||d>ff)return null;var g=o.getTextureQueue(f),m=g[g.length-2],v=function(){return o.recycleTexture(f,d)||o.addTexture(f,d)};m||(m=g[g.length-1]),m||(m=v()),m.width-m.usedWidth<d&&(m=v());for(var A,b=function(e){return e&&e.scaledLabelShown===h},y=i&&i===Ef.dequeue,w=i&&i===Ef.highQuality,_=i&&i===Ef.downscale,x=r+1;x<=cf;x++){var E=l.get(e,x);if(E){A=E;break}}var S=A&&A.level===r+1?A:null,C=function(){m.context.drawImage(S.texture.canvas,S.x,0,S.width,S.height,m.usedWidth,0,d,u)};if(m.context.setTransform(1,0,0,1,0,0),m.context.clearRect(m.usedWidth,0,d,f),b(S))C();else if(b(A)){if(!w)return o.queueElement(e,A.level-1),A;for(var T=A.level;T>r;T--)S=o.getElement(e,t,n,T,Ef.downscale);C()}else{var k;if(!y&&!w&&!_)for(var O=r-1;O>=lf;O--){var M=l.get(e,O);if(M){k=M;break}}if(b(k))return o.queueElement(e,r),k;m.context.translate(m.usedWidth,0),m.context.scale(c,c),this.drawElement(m.context,e,t,h,!1),m.context.scale(1/c,1/c),m.context.translate(-m.usedWidth,0)}return p={x:m.usedWidth,texture:m,level:r,scale:c,width:d,height:u,scaledLabelShown:h},m.usedWidth+=Math.ceil(d+df),m.eleCaches.push(p),l.set(e,r,p),o.checkTextureFullness(m),p},Tf.invalidateElements=function(e){for(var t=0;t<e.length;t++)this.invalidateElement(e[t])},Tf.invalidateElement=function(e){var t=this,n=t.lookup,r=[];if(n.isInvalid(e)){for(var i=lf;i<=cf;i++){var o=n.getForCachedKey(e,i);o&&r.push(o)}if(n.invalidate(e))for(var a=0;a<r.length;a++){var s=r[a],l=s.texture;l.invalidatedWidth+=s.width,s.invalidated=!0,t.checkTextureUtility(l)}t.removeFromQueue(e)}},Tf.checkTextureUtility=function(e){e.invalidatedWidth>=gf*e.width&&this.retireTexture(e)},Tf.checkTextureFullness=function(e){var t=this.getTextureQueue(e.height);e.usedWidth/e.width>mf&&e.fullnessChecks>=vf?Qt(t,e):e.fullnessChecks++},Tf.retireTexture=function(e){var t=this,n=e.height,r=t.getTextureQueue(n),i=this.lookup;Qt(r,e),e.retired=!0;for(var o=e.eleCaches,a=0;a<o.length;a++){var s=o[a];i.deleteCache(s.key,s.level)}zt(o),t.getRetiredTextureQueue(n).push(e)},Tf.addTexture=function(e,t){var n=this,r={};return n.getTextureQueue(e).push(r),r.eleCaches=[],r.height=e,r.width=Math.max(hf,t),r.usedWidth=0,r.invalidatedWidth=0,r.fullnessChecks=0,r.canvas=n.renderer.makeOffscreenCanvas(r.width,r.height),r.context=r.canvas.getContext("2d"),r},Tf.recycleTexture=function(e,t){for(var n=this,r=n.getTextureQueue(e),i=n.getRetiredTextureQueue(e),o=0;o<i.length;o++){var a=i[o];if(a.width>=t)return a.retired=!1,a.usedWidth=0,a.invalidatedWidth=0,a.fullnessChecks=0,zt(a.eleCaches),a.context.setTransform(1,0,0,1,0,0),a.context.clearRect(0,0,a.width,a.height),Qt(i,a),r.push(a),a}},Tf.queueElement=function(e,t){var n=this,r=n.getElementQueue(),i=n.getElementKeyToQueue(),o=this.getKey(e),a=i[o];if(a)a.level=Math.max(a.level,t),a.eles.merge(e),a.reqs++,r.updateItem(a);else{var s={eles:e.spawn().merge(e),level:t,reqs:1,key:o};r.push(s),i[o]=s}},Tf.dequeue=function(e){for(var t=this,n=t.getElementQueue(),r=t.getElementKeyToQueue(),i=[],o=t.lookup,a=0;a<xf&&n.size()>0;a++){var s=n.pop(),l=s.key,c=s.eles[0],u=o.hasCache(c,s.level);if(r[l]=null,!u){i.push(s);var d=t.getBoundingBox(c);t.getElement(c,d,e,s.level,Ef.dequeue)}}return i},Tf.removeFromQueue=function(e){var t=this,n=t.getElementQueue(),r=t.getElementKeyToQueue(),i=this.getKey(e),o=r[i];null!=o&&(1===o.eles.length?(o.reqs=kt,n.updateItem(o),n.pop(),r[i]=null):o.eles.unmerge(e))},Tf.onDequeue=function(e){this.onDequeues.push(e)},Tf.offDequeue=function(e){Qt(this.onDequeues,e)},Tf.setupDequeueing=rf.setupDequeueing({deqRedrawThreshold:_f,deqCost:Af,deqAvgCost:bf,deqNoDrawCost:yf,deqFastCost:wf,deq:function(e,t,n){return e.dequeue(t,n)},onDeqd:function(e,t){for(var n=0;n<e.onDequeues.length;n++)(0,e.onDequeues[n])(t)},shouldRedraw:function(e,t,n,r){for(var i=0;i<t.length;i++)for(var o=t[i].eles,a=0;a<o.length;a++){var s=o[a].boundingBox();if(Jn(s,r))return!0}return!1},priority:function(e){return e.renderer.beforeRenderPriorities.eleTxrDeq}});var kf=1,Of=-4,Mf=2,If=3.99,Df=50,Nf=50,Rf=.15,Lf=.1,Bf=.9,Pf=.9,Ff=1,$f=250,jf=16e6,Hf=32767,Uf=!0,Qf=function(e){var t=this,n=t.renderer=e,r=n.cy;t.layersByLevel={},t.firstGet=!0,t.lastInvalidationTime=dt()-2*$f,t.skipping=!1,t.eleTxrDeqs=r.collection(),t.scheduleElementRefinement=at(function(){t.refineElementTextures(t.eleTxrDeqs),t.eleTxrDeqs.unmerge(t.eleTxrDeqs)},Nf),n.beforeRender(function(e,n){n-t.lastInvalidationTime<=$f?t.skipping=!0:t.skipping=!1},n.beforeRenderPriorities.lyrTxrSkip);var i=function(e,t){return t.reqs-e.reqs};t.layersQueue=new dn(i),t.setupDequeueing()},zf=Qf.prototype,Wf=0,Gf=Math.pow(2,53)-1;zf.makeLayer=function(e,t){var n=Math.pow(2,t),r=Math.ceil(e.w*n),i=Math.ceil(e.h*n),o=this.renderer.makeOffscreenCanvas(r,i),a={id:Wf=++Wf%Gf,bb:e,level:t,width:r,height:i,canvas:o,context:o.getContext("2d"),eles:[],elesQueue:[],reqs:0},s=a.context,l=-a.bb.x1,c=-a.bb.y1;return s.scale(n,n),s.translate(l,c),a},zf.getLayers=function(e,t,n){var r=this,i=r.renderer.cy.zoom(),o=r.firstGet;if(r.firstGet=!1,null==n)if((n=Math.ceil(Ln(i*t)))<Of)n=Of;else if(i>=If||n>Mf)return null;r.validateLayersElesOrdering(n,e);var a,s,l=r.layersByLevel,c=Math.pow(2,n),u=l[n]=l[n]||[],d=function(){var t=function(t){if(r.validateLayersElesOrdering(t,e),r.levelIsComplete(t,e))return s=l[t],!0},i=function(e){if(!s)for(var r=n+e;Of<=r&&r<=Mf&&!t(r);r+=e);};i(1),i(-1);for(var o=u.length-1;o>=0;o--){var a=u[o];a.invalid&&Qt(u,a)}};if(r.levelIsComplete(n,e))return u;d();var h=function(){if(!a){a=zn();for(var t=0;t<e.length;t++)Vn(a,e[t].boundingBox())}return a},f=function(e){var t=(e=e||{}).after;h();var i=Math.ceil(a.w*c),o=Math.ceil(a.h*c);if(i>Hf||o>Hf)return null;if(i*o>jf)return null;var s=r.makeLayer(a,n);if(null!=t){var l=u.indexOf(t)+1;u.splice(l,0,s)}else(void 0===e.insert||e.insert)&&u.unshift(s);return s};if(r.skipping&&!o)return null;for(var p=null,g=e.length/kf,m=!o,v=0;v<e.length;v++){var A=e[v],b=A._private.rscratch,y=b.imgLayerCaches=b.imgLayerCaches||{},w=y[n];if(w)p=w;else{if((!p||p.eles.length>=g||!tr(p.bb,A.boundingBox()))&&!(p=f({insert:!0,after:p})))return null;s||m?r.queueLayer(p,A):r.drawEleInLayer(p,A,n,t),p.eles.push(A),y[n]=p}}return s||(m?null:u)},zf.getEleLevelForLayerLevel=function(e,t){return e},zf.drawEleInLayer=function(e,t,n,r){var i=this,o=this.renderer,a=e.context,s=t.boundingBox();0!==s.w&&0!==s.h&&t.visible()&&(n=i.getEleLevelForLayerLevel(n,r),o.setImgSmoothing(a,!1),o.drawCachedElement(a,t,null,null,n,Uf),o.setImgSmoothing(a,!0))},zf.levelIsComplete=function(e,t){var n=this.layersByLevel[e];if(!n||0===n.length)return!1;for(var r=0,i=0;i<n.length;i++){var o=n[i];if(o.reqs>0)return!1;if(o.invalid)return!1;r+=o.eles.length}return r===t.length},zf.validateLayersElesOrdering=function(e,t){var n=this.layersByLevel[e];if(n)for(var r=0;r<n.length;r++){for(var i=n[r],o=-1,a=0;a<t.length;a++)if(i.eles[0]===t[a]){o=a;break}if(o<0)this.invalidateLayer(i);else{var s=o;for(a=0;a<i.eles.length;a++)if(i.eles[a]!==t[s+a]){this.invalidateLayer(i);break}}}},zf.updateElementsInLayers=function(e,t){for(var n=this,r=ce(e[0]),i=0;i<e.length;i++)for(var o=r?null:e[i],a=r?e[i]:e[i].ele,s=a._private.rscratch,l=s.imgLayerCaches=s.imgLayerCaches||{},c=Of;c<=Mf;c++){var u=l[c];u&&(o&&n.getEleLevelForLayerLevel(u.level)!==o.level||t(u,a,o))}},zf.haveLayers=function(){for(var e=this,t=!1,n=Of;n<=Mf;n++){var r=e.layersByLevel[n];if(r&&r.length>0){t=!0;break}}return t},zf.invalidateElements=function(e){var t=this;0!==e.length&&(t.lastInvalidationTime=dt(),0!==e.length&&t.haveLayers()&&t.updateElementsInLayers(e,function(e,n,r){t.invalidateLayer(e)}))},zf.invalidateLayer=function(e){if(this.lastInvalidationTime=dt(),!e.invalid){var t=e.level,n=e.eles,r=this.layersByLevel[t];Qt(r,e),e.elesQueue=[],e.invalid=!0,e.replacement&&(e.replacement.invalid=!0);for(var i=0;i<n.length;i++){var o=n[i]._private.rscratch.imgLayerCaches;o&&(o[t]=null)}}},zf.refineElementTextures=function(e){var t=this;t.updateElementsInLayers(e,function(e,n,r){var i=e.replacement;if(i||((i=e.replacement=t.makeLayer(e.bb,e.level)).replaces=e,i.eles=e.eles),!i.reqs)for(var o=0;o<i.eles.length;o++)t.queueLayer(i,i.eles[o])})},zf.enqueueElementRefinement=function(e){this.eleTxrDeqs.merge(e),this.scheduleElementRefinement()},zf.queueLayer=function(e,t){var n=this.layersQueue,r=e.elesQueue,i=r.hasId=r.hasId||{};if(!e.replacement){if(t){if(i[t.id()])return;r.push(t),i[t.id()]=!0}e.reqs?(e.reqs++,n.updateItem(e)):(e.reqs=1,n.push(e))}},zf.dequeue=function(e){for(var t=this,n=t.layersQueue,r=[],i=0;i<Ff&&0!==n.size();){var o=n.peek();if(o.replacement)n.pop();else if(o.replaces&&o!==o.replaces.replacement)n.pop();else if(o.invalid)n.pop();else{var a=o.elesQueue.shift();a&&(t.drawEleInLayer(o,a,o.level,e),i++),0===r.length&&r.push(!0),0===o.elesQueue.length&&(n.pop(),o.reqs=0,o.replaces&&t.applyLayerReplacement(o),t.requestRedraw())}}return r},zf.applyLayerReplacement=function(e){var t=this,n=t.layersByLevel[e.level],r=e.replaces,i=n.indexOf(r);if(!(i<0||r.invalid)){n[i]=e;for(var o=0;o<e.eles.length;o++){var a=e.eles[o]._private,s=a.imgLayerCaches=a.imgLayerCaches||{};s&&(s[e.level]=e)}t.requestRedraw()}},zf.requestRedraw=at(function(){var e=this.renderer;e.redrawHint("eles",!0),e.redrawHint("drag",!0),e.redraw()},100),zf.setupDequeueing=rf.setupDequeueing({deqRedrawThreshold:Df,deqCost:Rf,deqAvgCost:Lf,deqNoDrawCost:Bf,deqFastCost:Pf,deq:function(e,t){return e.dequeue(t)},onDeqd:Dt,shouldRedraw:Ot,priority:function(e){return e.renderer.beforeRenderPriorities.lyrTxrDeq}});var Vf,Kf={};function Yf(e,t){for(var n=0;n<t.length;n++){var r=t[n];e.lineTo(r.x,r.y)}}function qf(e,t,n){for(var r,i=0;i<t.length;i++){var o=t[i];0===i&&(r=o),e.lineTo(o.x,o.y)}e.quadraticCurveTo(n.x,n.y,r.x,r.y)}function Xf(e,t,n){e.beginPath&&e.beginPath();for(var r=t,i=0;i<r.length;i++){var o=r[i];e.lineTo(o.x,o.y)}var a=n,s=n[0];for(e.moveTo(s.x,s.y),i=1;i<a.length;i++)o=a[i],e.lineTo(o.x,o.y);e.closePath&&e.closePath()}function Jf(e,t,n,r,i){e.beginPath&&e.beginPath(),e.arc(n,r,i,0,2*Math.PI,!1);var o=t,a=o[0];e.moveTo(a.x,a.y);for(var s=0;s<o.length;s++){var l=o[s];e.lineTo(l.x,l.y)}e.closePath&&e.closePath()}function Zf(e,t,n,r){e.arc(t,n,r,0,2*Math.PI,!1)}Kf.arrowShapeImpl=function(e){return(Vf||(Vf={polygon:Yf,"triangle-backcurve":qf,"triangle-tee":Xf,"circle-triangle":Jf,"triangle-cross":Xf,circle:Zf}))[e]};var ep={drawElement:function(e,t,n,r,i,o){var a=this;t.isNode()?a.drawNode(e,t,n,r,i,o):a.drawEdge(e,t,n,r,i,o)},drawElementOverlay:function(e,t){var n=this;t.isNode()?n.drawNodeOverlay(e,t):n.drawEdgeOverlay(e,t)},drawElementUnderlay:function(e,t){var n=this;t.isNode()?n.drawNodeUnderlay(e,t):n.drawEdgeUnderlay(e,t)},drawCachedElementPortion:function(e,t,n,r,i,o,a,s){var l=this,c=n.getBoundingBox(t);if(0!==c.w&&0!==c.h){var u=n.getElement(t,c,r,i,o);if(null!=u){var d=s(l,t);if(0===d)return;var h,f,p,g,m,v,A=a(l,t),b=c.x1,y=c.y1,w=c.w,_=c.h;if(0!==A){var x=n.getRotationPoint(t);p=x.x,g=x.y,e.translate(p,g),e.rotate(A),(m=l.getImgSmoothing(e))||l.setImgSmoothing(e,!0);var E=n.getRotationOffset(t);h=E.x,f=E.y}else h=b,f=y;1!==d&&(v=e.globalAlpha,e.globalAlpha=v*d),e.drawImage(u.texture.canvas,u.x,0,u.width,u.height,h,f,w,_),1!==d&&(e.globalAlpha=v),0!==A&&(e.rotate(-A),e.translate(-p,-g),m||l.setImgSmoothing(e,!1))}else n.drawElement(e,t)}}},tp=function(){return 0},np=function(e,t){return e.getTextAngle(t,null)},rp=function(e,t){return e.getTextAngle(t,"source")},ip=function(e,t){return e.getTextAngle(t,"target")},op=function(e,t){return t.effectiveOpacity()},ap=function(e,t){return t.pstyle("text-opacity").pfValue*t.effectiveOpacity()};ep.drawCachedElement=function(e,t,n,r,i,o){var a=this,s=a.data,l=s.eleTxrCache,c=s.lblTxrCache,u=s.slbTxrCache,d=s.tlbTxrCache,h=t.boundingBox(),f=!0===o?l.reasons.highQuality:null;if(0!==h.w&&0!==h.h&&t.visible()&&(!r||Jn(h,r))){var p=t.isEdge(),g=t.element()._private.rscratch.badLine;a.drawElementUnderlay(e,t),a.drawCachedElementPortion(e,t,l,n,i,f,tp,op),p&&g||a.drawCachedElementPortion(e,t,c,n,i,f,np,ap),p&&!g&&(a.drawCachedElementPortion(e,t,u,n,i,f,rp,ap),a.drawCachedElementPortion(e,t,d,n,i,f,ip,ap)),a.drawElementOverlay(e,t)}},ep.drawElements=function(e,t){for(var n=this,r=0;r<t.length;r++){var i=t[r];n.drawElement(e,i)}},ep.drawCachedElements=function(e,t,n,r){for(var i=this,o=0;o<t.length;o++){var a=t[o];i.drawCachedElement(e,a,n,r)}},ep.drawCachedNodes=function(e,t,n,r){for(var i=this,o=0;o<t.length;o++){var a=t[o];a.isNode()&&i.drawCachedElement(e,a,n,r)}},ep.drawLayeredElements=function(e,t,n,r){var i=this,o=i.data.lyrTxrCache.getLayers(t,n);if(o)for(var a=0;a<o.length;a++){var s=o[a],l=s.bb;0!==l.w&&0!==l.h&&e.drawImage(s.canvas,l.x1,l.y1,l.w,l.h)}else i.drawCachedElements(e,t,n,r)};var sp={drawEdge:function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],a=this,s=t._private.rscratch;if((!o||t.visible())&&!s.badLine&&null!=s.allpts&&!isNaN(s.allpts[0])){var l;n&&(l=n,e.translate(-l.x1,-l.y1));var c=o?t.pstyle("opacity").value:1,u=o?t.pstyle("line-opacity").value:1,d=t.pstyle("curve-style").value,h=t.pstyle("line-style").value,f=t.pstyle("width").pfValue,p=t.pstyle("line-cap").value,g=t.pstyle("line-outline-width").value,m=t.pstyle("line-outline-color").value,v=c*u,A=c*u,b=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;"straight-triangle"===d?(a.eleStrokeStyle(e,t,n),a.drawEdgeTrianglePath(t,e,s.allpts)):(e.lineWidth=f,e.lineCap=p,a.eleStrokeStyle(e,t,n),a.drawEdgePath(t,e,s.allpts,h),e.lineCap="butt")},y=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v;e.lineWidth=f+g,e.lineCap=p,g>0?(a.colorStrokeStyle(e,m[0],m[1],m[2],n),"straight-triangle"===d?a.drawEdgeTrianglePath(t,e,s.allpts):(a.drawEdgePath(t,e,s.allpts,h),e.lineCap="butt")):e.lineCap="butt"},w=function(){i&&a.drawEdgeOverlay(e,t)},_=function(){i&&a.drawEdgeUnderlay(e,t)},x=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A;a.drawArrowheads(e,t,n)},E=function(){a.drawElementText(e,t,null,r)};if(e.lineJoin="round","yes"===t.pstyle("ghost").value){var S=t.pstyle("ghost-offset-x").pfValue,C=t.pstyle("ghost-offset-y").pfValue,T=t.pstyle("ghost-opacity").value,k=v*T;e.translate(S,C),b(k),x(k),e.translate(-S,-C)}else y();_(),b(),x(),w(),E(),n&&e.translate(l.x1,l.y1)}}},lp=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(t,n){if(n.visible()){var r=n.pstyle("".concat(e,"-opacity")).value;if(0!==r){var i=this,o=i.usePaths(),a=n._private.rscratch,s=2*n.pstyle("".concat(e,"-padding")).pfValue,l=n.pstyle("".concat(e,"-color")).value;t.lineWidth=s,"self"!==a.edgeType||o?t.lineCap="round":t.lineCap="butt",i.colorStrokeStyle(t,l[0],l[1],l[2],r),i.drawEdgePath(n,t,a.allpts,"solid")}}}};sp.drawEdgeOverlay=lp("overlay"),sp.drawEdgeUnderlay=lp("underlay"),sp.drawEdgePath=function(e,t,n,r){var i,o=e._private.rscratch,a=t,l=!1,c=this.usePaths(),u=e.pstyle("line-dash-pattern").pfValue,d=e.pstyle("line-dash-offset").pfValue;if(c){var h=n.join("$");o.pathCacheKey&&o.pathCacheKey===h?(i=t=o.pathCache,l=!0):(i=t=new Path2D,o.pathCacheKey=h,o.pathCache=i)}if(a.setLineDash)switch(r){case"dotted":a.setLineDash([1,1]);break;case"dashed":a.setLineDash(u),a.lineDashOffset=d;break;case"solid":a.setLineDash([])}if(!l&&!o.badLine)switch(t.beginPath&&t.beginPath(),t.moveTo(n[0],n[1]),o.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var f=2;f+3<n.length;f+=4)t.quadraticCurveTo(n[f],n[f+1],n[f+2],n[f+3]);break;case"straight":case"haystack":for(var p=2;p+1<n.length;p+=2)t.lineTo(n[p],n[p+1]);break;case"segments":if(o.isRound){var g,m=s(o.roundCorners);try{for(m.s();!(g=m.n()).done;)Oh(t,g.value)}catch(e){m.e(e)}finally{m.f()}t.lineTo(n[n.length-2],n[n.length-1])}else for(var v=2;v+1<n.length;v+=2)t.lineTo(n[v],n[v+1])}t=a,c?t.stroke(i):t.stroke(),t.setLineDash&&t.setLineDash([])},sp.drawEdgeTrianglePath=function(e,t,n){t.fillStyle=t.strokeStyle;for(var r=e.pstyle("width").pfValue,i=0;i+1<n.length;i+=2){var o=[n[i+2]-n[i],n[i+3]-n[i+1]],a=Math.sqrt(o[0]*o[0]+o[1]*o[1]),s=[o[1]/a,-o[0]/a],l=[s[0]*r/2,s[1]*r/2];t.beginPath(),t.moveTo(n[i]-l[0],n[i+1]-l[1]),t.lineTo(n[i]+l[0],n[i+1]+l[1]),t.lineTo(n[i+2],n[i+3]),t.closePath(),t.fill()}},sp.drawArrowheads=function(e,t,n){var r=t._private.rscratch,i="haystack"===r.edgeType;i||this.drawArrowhead(e,t,"source",r.arrowStartX,r.arrowStartY,r.srcArrowAngle,n),this.drawArrowhead(e,t,"mid-target",r.midX,r.midY,r.midtgtArrowAngle,n),this.drawArrowhead(e,t,"mid-source",r.midX,r.midY,r.midsrcArrowAngle,n),i||this.drawArrowhead(e,t,"target",r.arrowEndX,r.arrowEndY,r.tgtArrowAngle,n)},sp.drawArrowhead=function(e,t,n,r,i,o,a){if(!(isNaN(r)||null==r||isNaN(i)||null==i||isNaN(o)||null==o)){var s=this,l=t.pstyle(n+"-arrow-shape").value;if("none"!==l){var c="hollow"===t.pstyle(n+"-arrow-fill").value?"both":"filled",u=t.pstyle(n+"-arrow-fill").value,d=t.pstyle("width").pfValue,h=t.pstyle(n+"-arrow-width"),f="match-line"===h.value?d:h.pfValue;"%"===h.units&&(f*=d);var p=t.pstyle("opacity").value;void 0===a&&(a=p);var g=e.globalCompositeOperation;1===a&&"hollow"!==u||(e.globalCompositeOperation="destination-out",s.colorFillStyle(e,255,255,255,1),s.colorStrokeStyle(e,255,255,255,1),s.drawArrowShape(t,e,c,d,l,f,r,i,o),e.globalCompositeOperation=g);var m=t.pstyle(n+"-arrow-color").value;s.colorFillStyle(e,m[0],m[1],m[2],a),s.colorStrokeStyle(e,m[0],m[1],m[2],a),s.drawArrowShape(t,e,u,d,l,f,r,i,o)}}},sp.drawArrowShape=function(e,t,n,r,i,o,a,s,l){var c,u=this,d=this.usePaths()&&"triangle-cross"!==i,h=!1,f=t,p={x:a,y:s},g=e.pstyle("arrow-scale").value,m=this.getArrowWidth(r,g),v=u.arrowShapes[i];if(d){var A=u.arrowPathCache=u.arrowPathCache||[],b=_t(i),y=A[b];null!=y?(c=t=y,h=!0):(c=t=new Path2D,A[b]=c)}h||(t.beginPath&&t.beginPath(),d?v.draw(t,1,0,{x:0,y:0},1):v.draw(t,m,l,p,r),t.closePath&&t.closePath()),t=f,d&&(t.translate(a,s),t.rotate(l),t.scale(m,m)),"filled"!==n&&"both"!==n||(d?t.fill(c):t.fill()),"hollow"!==n&&"both"!==n||(t.lineWidth=o/(d?m:1),t.lineJoin="miter",d?t.stroke(c):t.stroke()),d&&(t.scale(1/m,1/m),t.rotate(-l),t.translate(-a,-s))};var cp={safeDrawImage:function(e,t,n,r,i,o,a,s,l,c){if(!(i<=0||o<=0||l<=0||c<=0))try{e.drawImage(t,n,r,i,o,a,s,l,c)}catch(e){Lt(e)}},drawInscribedImage:function(e,t,n,r,i){var o=this,a=n.position(),s=a.x,l=a.y,c=n.cy().style(),u=c.getIndexedStyle.bind(c),d=u(n,"background-fit","value",r),h=u(n,"background-repeat","value",r),f=n.width(),p=n.height(),g=2*n.padding(),m=f+("inner"===u(n,"background-width-relative-to","value",r)?0:g),v=p+("inner"===u(n,"background-height-relative-to","value",r)?0:g),A=n._private.rscratch,b="node"===u(n,"background-clip","value",r),y=u(n,"background-image-opacity","value",r)*i,w=u(n,"background-image-smoothing","value",r),_=n.pstyle("corner-radius").value;"auto"!==_&&(_=n.pstyle("corner-radius").pfValue);var x=t.width||t.cachedW,E=t.height||t.cachedH;null!=x&&null!=E||(document.body.appendChild(t),x=t.cachedW=t.width||t.offsetWidth,E=t.cachedH=t.height||t.offsetHeight,document.body.removeChild(t));var S=x,C=E;if("auto"!==u(n,"background-width","value",r)&&(S="%"===u(n,"background-width","units",r)?u(n,"background-width","pfValue",r)*m:u(n,"background-width","pfValue",r)),"auto"!==u(n,"background-height","value",r)&&(C="%"===u(n,"background-height","units",r)?u(n,"background-height","pfValue",r)*v:u(n,"background-height","pfValue",r)),0!==S&&0!==C){if("contain"===d)S*=T=Math.min(m/S,v/C),C*=T;else if("cover"===d){var T;S*=T=Math.max(m/S,v/C),C*=T}var k=s-m/2,O=u(n,"background-position-x","units",r),M=u(n,"background-position-x","pfValue",r);k+="%"===O?(m-S)*M:M;var I=u(n,"background-offset-x","units",r),D=u(n,"background-offset-x","pfValue",r);k+="%"===I?(m-S)*D:D;var N=l-v/2,R=u(n,"background-position-y","units",r),L=u(n,"background-position-y","pfValue",r);N+="%"===R?(v-C)*L:L;var B=u(n,"background-offset-y","units",r),P=u(n,"background-offset-y","pfValue",r);N+="%"===B?(v-C)*P:P,A.pathCache&&(k-=s,N-=l,s=0,l=0);var F=e.globalAlpha;e.globalAlpha=y;var $=o.getImgSmoothing(e),j=!1;if("no"===w&&$?(o.setImgSmoothing(e,!1),j=!0):"yes"!==w||$||(o.setImgSmoothing(e,!0),j=!0),"no-repeat"===h)b&&(e.save(),A.pathCache?e.clip(A.pathCache):(o.nodeShapes[o.getNodeShape(n)].draw(e,s,l,m,v,_,A),e.clip())),o.safeDrawImage(e,t,0,0,x,E,k,N,S,C),b&&e.restore();else{var H=e.createPattern(t,h);e.fillStyle=H,o.nodeShapes[o.getNodeShape(n)].draw(e,s,l,m,v,_,A),e.translate(k,N),e.fill(),e.translate(-k,-N)}e.globalAlpha=F,j&&o.setImgSmoothing(e,$)}}},up={};function dp(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:5,a=arguments.length>6?arguments[6]:void 0;e.beginPath(),e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.quadraticCurveTo(t+r,n,t+r,n+o),e.lineTo(t+r,n+i-o),e.quadraticCurveTo(t+r,n+i,t+r-o,n+i),e.lineTo(t+o,n+i),e.quadraticCurveTo(t,n+i,t,n+i-o),e.lineTo(t,n+o),e.quadraticCurveTo(t,n,t+o,n),e.closePath(),a?e.stroke():e.fill()}up.eleTextBiggerThanMin=function(e,t){if(!t){var n=e.cy().zoom(),r=this.getPixelRatio(),i=Math.ceil(Ln(n*r));t=Math.pow(2,i)}return!(e.pstyle("font-size").pfValue*t<e.pstyle("min-zoomed-font-size").pfValue)},up.drawElementText=function(e,t,n,r,i){var o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],a=this;if(null==r){if(o&&!a.eleTextBiggerThanMin(t))return}else if(!1===r)return;if(t.isNode()){var s=t.pstyle("label");if(!s||!s.value)return;var l=a.getLabelJustification(t);e.textAlign=l,e.textBaseline="bottom"}else{var c=t.element()._private.rscratch.badLine,u=t.pstyle("label"),d=t.pstyle("source-label"),h=t.pstyle("target-label");if(c||(!u||!u.value)&&(!d||!d.value)&&(!h||!h.value))return;e.textAlign="center",e.textBaseline="bottom"}var f,p=!n;n&&(f=n,e.translate(-f.x1,-f.y1)),null==i?(a.drawText(e,t,null,p,o),t.isEdge()&&(a.drawText(e,t,"source",p,o),a.drawText(e,t,"target",p,o))):a.drawText(e,t,i,p,o),n&&e.translate(f.x1,f.y1)},up.getFontCache=function(e){var t;this.fontCaches=this.fontCaches||[];for(var n=0;n<this.fontCaches.length;n++)if((t=this.fontCaches[n]).context===e)return t;return t={context:e},this.fontCaches.push(t),t},up.setupTextStyle=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.pstyle("font-style").strValue,i=t.pstyle("font-size").pfValue+"px",o=t.pstyle("font-family").strValue,a=t.pstyle("font-weight").strValue,s=n?t.effectiveOpacity()*t.pstyle("text-opacity").value:1,l=t.pstyle("text-outline-opacity").value*s,c=t.pstyle("color").value,u=t.pstyle("text-outline-color").value;e.font=r+" "+a+" "+i+" "+o,e.lineJoin="round",this.colorFillStyle(e,c[0],c[1],c[2],s),this.colorStrokeStyle(e,u[0],u[1],u[2],l)},up.getTextAngle=function(e,t){var n,r=e._private.rscratch,i=t?t+"-":"",o=e.pstyle(i+"text-rotation");if("autorotate"===o.strValue){var a=Gt(r,"labelAngle",t);n=e.isEdge()?a:0}else n="none"===o.strValue?0:o.pfValue;return n},up.drawText=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=t._private.rscratch,a=i?t.effectiveOpacity():1;if(!i||0!==a&&0!==t.pstyle("text-opacity").value){"main"===n&&(n=null);var s,l,c=Gt(o,"labelX",n),u=Gt(o,"labelY",n),d=this.getLabelText(t,n);if(null!=d&&""!==d&&!isNaN(c)&&!isNaN(u)){this.setupTextStyle(e,t,i);var h,f=n?n+"-":"",p=Gt(o,"labelWidth",n),g=Gt(o,"labelHeight",n),m=t.pstyle(f+"text-margin-x").pfValue,v=t.pstyle(f+"text-margin-y").pfValue,A=t.isEdge(),b=t.pstyle("text-halign").value,y=t.pstyle("text-valign").value;switch(A&&(b="center",y="center"),c+=m,u+=v,0!==(h=r?this.getTextAngle(t,n):0)&&(s=c,l=u,e.translate(s,l),e.rotate(h),c=0,u=0),y){case"top":break;case"center":u+=g/2;break;case"bottom":u+=g}var w=t.pstyle("text-background-opacity").value,_=t.pstyle("text-border-opacity").value,x=t.pstyle("text-border-width").pfValue,E=t.pstyle("text-background-padding").pfValue,S=0===t.pstyle("text-background-shape").strValue.indexOf("round"),C=2;if(w>0||x>0&&_>0){var T=c-E;switch(b){case"left":T-=p;break;case"center":T-=p/2}var k=u-g-E,O=p+2*E,M=g+2*E;if(w>0){var I=e.fillStyle,D=t.pstyle("text-background-color").value;e.fillStyle="rgba("+D[0]+","+D[1]+","+D[2]+","+w*a+")",S?dp(e,T,k,O,M,C):e.fillRect(T,k,O,M),e.fillStyle=I}if(x>0&&_>0){var N=e.strokeStyle,R=e.lineWidth,L=t.pstyle("text-border-color").value,B=t.pstyle("text-border-style").value;if(e.strokeStyle="rgba("+L[0]+","+L[1]+","+L[2]+","+_*a+")",e.lineWidth=x,e.setLineDash)switch(B){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"double":e.lineWidth=x/4,e.setLineDash([]);break;case"solid":e.setLineDash([])}if(S?dp(e,T,k,O,M,C,"stroke"):e.strokeRect(T,k,O,M),"double"===B){var P=x/2;S?dp(e,T+P,k+P,O-2*P,M-2*P,C,"stroke"):e.strokeRect(T+P,k+P,O-2*P,M-2*P)}e.setLineDash&&e.setLineDash([]),e.lineWidth=R,e.strokeStyle=N}}var F=2*t.pstyle("text-outline-width").pfValue;if(F>0&&(e.lineWidth=F),"wrap"===t.pstyle("text-wrap").value){var $=Gt(o,"labelWrapCachedLines",n),j=Gt(o,"labelLineHeight",n),H=p/2,U=this.getLabelJustification(t);switch("auto"===U||("left"===b?"left"===U?c+=-p:"center"===U&&(c+=-H):"center"===b?"left"===U?c+=-H:"right"===U&&(c+=H):"right"===b&&("center"===U?c+=H:"right"===U&&(c+=p))),y){case"top":case"center":case"bottom":u-=($.length-1)*j}for(var Q=0;Q<$.length;Q++)F>0&&e.strokeText($[Q],c,u),e.fillText($[Q],c,u),u+=j}else F>0&&e.strokeText(d,c,u),e.fillText(d,c,u);0!==h&&(e.rotate(-h),e.translate(-s,-l))}}};var hp={drawNode:function(e,t,n){var r,i,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],l=this,c=t._private,u=c.rscratch,d=t.position();if(oe(d.x)&&oe(d.y)&&(!s||t.visible())){var h,f,p=s?t.effectiveOpacity():1,g=l.usePaths(),m=!1,v=t.padding();r=t.width()+2*v,i=t.height()+2*v,n&&(f=n,e.translate(-f.x1,-f.y1));for(var A=t.pstyle("background-image").value,b=new Array(A.length),y=new Array(A.length),w=0,_=0;_<A.length;_++){var x=A[_];if(b[_]=null!=x&&"none"!==x){var E=t.cy().style().getIndexedStyle(t,"background-image-crossorigin","value",_);w++,y[_]=l.getCachedImage(x,E,function(){c.backgroundTimestamp=Date.now(),t.emitAndNotify("background")})}}var S=t.pstyle("background-blacken").value,C=t.pstyle("border-width").pfValue,T=t.pstyle("background-opacity").value*p,k=t.pstyle("border-color").value,O=t.pstyle("border-style").value,M=t.pstyle("border-join").value,I=t.pstyle("border-cap").value,D=t.pstyle("border-position").value,N=t.pstyle("border-dash-pattern").pfValue,R=t.pstyle("border-dash-offset").pfValue,L=t.pstyle("border-opacity").value*p,B=t.pstyle("outline-width").pfValue,P=t.pstyle("outline-color").value,F=t.pstyle("outline-style").value,$=t.pstyle("outline-opacity").value*p,j=t.pstyle("outline-offset").value,H=t.pstyle("corner-radius").value;"auto"!==H&&(H=t.pstyle("corner-radius").pfValue);var U=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T;l.eleFillStyle(e,t,n)},Q=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L;l.colorStrokeStyle(e,k[0],k[1],k[2],t)},z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$;l.colorStrokeStyle(e,P[0],P[1],P[2],t)},W=function(e,t,n,r){var i,o=l.nodePathCache=l.nodePathCache||[],a=xt("polygon"===n?n+","+r.join(","):n,""+t,""+e,""+H),s=o[a],c=!1;return null!=s?(i=s,c=!0,u.pathCache=i):(i=new Path2D,o[a]=u.pathCache=i),{path:i,cacheHit:c}},G=t.pstyle("shape").strValue,V=t.pstyle("shape-polygon-points").pfValue;if(g){e.translate(d.x,d.y);var K=W(r,i,G,V);h=K.path,m=K.cacheHit}var Y=function(){if(!m){var n=d;g&&(n={x:0,y:0}),l.nodeShapes[l.getNodeShape(t)].draw(h||e,n.x,n.y,r,i,H,u)}g?e.fill(h):e.fill()},q=function(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=c.backgrounding,o=0,a=0;a<y.length;a++){var s=t.cy().style().getIndexedStyle(t,"background-image-containment","value",a);r&&"over"===s||!r&&"inside"===s?o++:b[a]&&y[a].complete&&!y[a].error&&(o++,l.drawInscribedImage(e,y[a],t,a,n))}c.backgrounding=!(o===w),i!==c.backgrounding&&t.updateStyle(!1)},X=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;l.hasPie(t)&&(l.drawPie(e,t,o),n&&(g||l.nodeShapes[l.getNodeShape(t)].draw(e,d.x,d.y,r,i,H,u)))},J=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;l.hasStripe(t)&&(e.save(),g?e.clip(u.pathCache):(l.nodeShapes[l.getNodeShape(t)].draw(e,d.x,d.y,r,i,H,u),e.clip()),l.drawStripe(e,t,o),e.restore(),n&&(g||l.nodeShapes[l.getNodeShape(t)].draw(e,d.x,d.y,r,i,H,u)))},Z=function(){var t=(S>0?S:-S)*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:p),n=S>0?0:255;0!==S&&(l.colorFillStyle(e,n,n,n,t),g?e.fill(h):e.fill())},ee=function(){if(C>0){if(e.lineWidth=C,e.lineCap=I,e.lineJoin=M,e.setLineDash)switch(O){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash(N),e.lineDashOffset=R;break;case"solid":case"double":e.setLineDash([])}if("center"!==D){if(e.save(),e.lineWidth*=2,"inside"===D)g?e.clip(h):e.clip();else{var t=new Path2D;t.rect(-r/2-C,-i/2-C,r+2*C,i+2*C),t.addPath(h),e.clip(t,"evenodd")}g?e.stroke(h):e.stroke(),e.restore()}else g?e.stroke(h):e.stroke();if("double"===O){e.lineWidth=C/3;var n=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",g?e.stroke(h):e.stroke(),e.globalCompositeOperation=n}e.setLineDash&&e.setLineDash([])}},te=function(){if(B>0){if(e.lineWidth=B,e.lineCap="butt",e.setLineDash)switch(F){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"solid":case"double":e.setLineDash([])}var n=d;g&&(n={x:0,y:0});var o=l.getNodeShape(t),a=C;"inside"===D&&(a=0),"outside"===D&&(a*=2);var s,c=(r+a+(B+j))/r,u=(i+a+(B+j))/i,h=r*c,f=i*u,p=l.nodeShapes[o].points;if(g&&(s=W(h,f,o,p).path),"ellipse"===o)l.drawEllipsePath(s||e,n.x,n.y,h,f);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(o)){var m=0,v=0,A=0;"round-diamond"===o?m=1.4*(a+j+B):"round-heptagon"===o?(m=1.075*(a+j+B),A=-(a/2+j+B)/35):"round-hexagon"===o?m=1.12*(a+j+B):"round-pentagon"===o?(m=1.13*(a+j+B),A=-(a/2+j+B)/15):"round-tag"===o?(m=1.12*(a+j+B),v=.07*(a/2+B+j)):"round-triangle"===o&&(m=(a+j+B)*(Math.PI/2),A=-(a+j/2+B)/Math.PI),0!==m&&(h=r*(c=(r+m)/r),["round-hexagon","round-tag"].includes(o)||(f=i*(u=(i+m)/i)));for(var b=h/2,y=f/2,w=(H="auto"===H?Mr(h,f):H)+(a+B+j)/2,_=new Array(p.length/2),x=new Array(p.length/2),E=0;E<p.length/2;E++)_[E]={x:n.x+v+b*p[2*E],y:n.y+A+y*p[2*E+1]};var S,T,k,O,M=_.length;for(T=_[M-1],S=0;S<M;S++)k=_[S%M],O=_[(S+1)%M],x[S]=Mh(T,k,O,w),T=k,k=O;l.drawRoundPolygonPath(s||e,n.x+v,n.y+A,r*c,i*u,p,x)}else["roundrectangle","round-rectangle"].includes(o)?(H="auto"===H?Or(h,f):H,l.drawRoundRectanglePath(s||e,n.x,n.y,h,f,H+(a+B+j)/2)):["cutrectangle","cut-rectangle"].includes(o)?(H="auto"===H?Ir():H,l.drawCutRectanglePath(s||e,n.x,n.y,h,f,null,H+(a+B+j)/4)):["bottomroundrectangle","bottom-round-rectangle"].includes(o)?(H="auto"===H?Or(h,f):H,l.drawBottomRoundRectanglePath(s||e,n.x,n.y,h,f,H+(a+B+j)/2)):"barrel"===o?l.drawBarrelPath(s||e,n.x,n.y,h,f):o.startsWith("polygon")||["rhomboid","right-rhomboid","round-tag","tag","vee"].includes(o)?(p=gr(mr(p,(a+B+j)/r)),l.drawPolygonPath(s||e,n.x,n.y,r,i,p)):(p=gr(mr(p,-(a+B+j)/r)),l.drawPolygonPath(s||e,n.x,n.y,r,i,p));if(g?e.stroke(s):e.stroke(),"double"===F){e.lineWidth=a/3;var I=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",g?e.stroke(s):e.stroke(),e.globalCompositeOperation=I}e.setLineDash&&e.setLineDash([])}},ne=function(){a&&l.drawNodeOverlay(e,t,d,r,i)},re=function(){a&&l.drawNodeUnderlay(e,t,d,r,i)},ie=function(){l.drawElementText(e,t,null,o)};if("yes"===t.pstyle("ghost").value){var ae=t.pstyle("ghost-offset-x").pfValue,se=t.pstyle("ghost-offset-y").pfValue,le=t.pstyle("ghost-opacity").value,ce=le*p;e.translate(ae,se),z(),te(),U(le*T),Y(),q(ce,!0),Q(le*L),ee(),X(0!==S||0!==C),J(0!==S||0!==C),q(ce,!1),Z(ce),e.translate(-ae,-se)}g&&e.translate(-d.x,-d.y),re(),g&&e.translate(d.x,d.y),z(),te(),U(),Y(),q(p,!0),Q(),ee(),X(0!==S||0!==C),J(0!==S||0!==C),q(p,!1),Z(),g&&e.translate(-d.x,-d.y),ie(),ne(),n&&e.translate(f.x1,f.y1)}}},fp=function(e){if(!["overlay","underlay"].includes(e))throw new Error("Invalid state");return function(t,n,r,i,o){var a=this;if(n.visible()){var s=n.pstyle("".concat(e,"-padding")).pfValue,l=n.pstyle("".concat(e,"-opacity")).value,c=n.pstyle("".concat(e,"-color")).value,u=n.pstyle("".concat(e,"-shape")).value,d=n.pstyle("".concat(e,"-corner-radius")).value;if(l>0){if(r=r||n.position(),null==i||null==o){var h=n.padding();i=n.width()+2*h,o=n.height()+2*h}a.colorFillStyle(t,c[0],c[1],c[2],l),a.nodeShapes[u].draw(t,r.x,r.y,i+2*s,o+2*s,d),t.fill()}}}};hp.drawNodeOverlay=fp("overlay"),hp.drawNodeUnderlay=fp("underlay"),hp.hasPie=function(e){return(e=e[0])._private.hasPie},hp.hasStripe=function(e){return(e=e[0])._private.hasStripe},hp.drawPie=function(e,t,n,r){t=t[0],r=r||t.position();var i,o=t.cy().style(),a=t.pstyle("pie-size"),s=t.pstyle("pie-hole"),l=t.pstyle("pie-start-angle").pfValue,c=r.x,u=r.y,d=t.width(),h=t.height(),f=Math.min(d,h)/2,p=0;if(this.usePaths()&&(c=0,u=0),"%"===a.units?f*=a.pfValue:void 0!==a.pfValue&&(f=a.pfValue/2),"%"===s.units?i=f*s.pfValue:void 0!==s.pfValue&&(i=s.pfValue/2),!(i>=f))for(var g=1;g<=o.pieBackgroundN;g++){var m=t.pstyle("pie-"+g+"-background-size").value,v=t.pstyle("pie-"+g+"-background-color").value,A=t.pstyle("pie-"+g+"-background-opacity").value*n,b=m/100;b+p>1&&(b=1-p);var y=1.5*Math.PI+2*Math.PI*p,w=(y+=l)+2*Math.PI*b;0===m||p>=1||p+b>1||(0===i?(e.beginPath(),e.moveTo(c,u),e.arc(c,u,f,y,w),e.closePath()):(e.beginPath(),e.arc(c,u,f,y,w),e.arc(c,u,i,w,y,!0),e.closePath()),this.colorFillStyle(e,v[0],v[1],v[2],A),e.fill(),p+=b)}},hp.drawStripe=function(e,t,n,r){t=t[0],r=r||t.position();var i=t.cy().style(),o=r.x,a=r.y,s=t.width(),l=t.height(),c=0,u=this.usePaths();e.save();var d=t.pstyle("stripe-direction").value,h=t.pstyle("stripe-size");switch(d){case"vertical":break;case"righward":e.rotate(-Math.PI/2)}var f=s,p=l;"%"===h.units?(f*=h.pfValue,p*=h.pfValue):void 0!==h.pfValue&&(f=h.pfValue,p=h.pfValue),u&&(o=0,a=0),a-=f/2,o-=p/2;for(var g=1;g<=i.stripeBackgroundN;g++){var m=t.pstyle("stripe-"+g+"-background-size").value,v=t.pstyle("stripe-"+g+"-background-color").value,A=t.pstyle("stripe-"+g+"-background-opacity").value*n,b=m/100;b+c>1&&(b=1-c),0===m||c>=1||c+b>1||(e.beginPath(),e.rect(o,a+p*c,f,p*b),e.closePath(),this.colorFillStyle(e,v[0],v[1],v[2],A),e.fill(),c+=b)}e.restore()};var pp,gp={},mp=100;function vp(e,t,n){var r=e.createShader(t);if(e.shaderSource(r,n),e.compileShader(r),!e.getShaderParameter(r,e.COMPILE_STATUS))throw new Error(e.getShaderInfoLog(r));return r}function Ap(e,t,n){var r=vp(e,e.VERTEX_SHADER,t),i=vp(e,e.FRAGMENT_SHADER,n),o=e.createProgram();if(e.attachShader(o,r),e.attachShader(o,i),e.linkProgram(o),!e.getProgramParameter(o,e.LINK_STATUS))throw new Error("Could not initialize shaders");return o}function bp(e,t,n){void 0===n&&(n=t);var r=e.makeOffscreenCanvas(t,n),i=r.context=r.getContext("2d");return r.clear=function(){return i.clearRect(0,0,r.width,r.height)},r.clear(),r}function yp(e){var t=e.pixelRatio,n=e.cy.zoom(),r=e.cy.pan();return{zoom:n*t,pan:{x:r.x*t,y:r.y*t}}}function wp(e){var t=e.pixelRatio;return e.cy.zoom()*t}function _p(e,t,n,r,i){var o=r*n+t.x,a=i*n+t.y;return[o,a=Math.round(e.canvasHeight-a)]}function xp(e){return"solid"===e.pstyle("background-fill").value&&"none"===e.pstyle("background-image").strValue&&(0===e.pstyle("border-width").value||0===e.pstyle("border-opacity").value||"solid"===e.pstyle("border-style").value)}function Ep(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Sp(e,t,n){var r=e[0]/255,i=e[1]/255,o=e[2]/255,a=t,s=n||new Array(4);return s[0]=r*a,s[1]=i*a,s[2]=o*a,s[3]=a,s}function Cp(e,t){var n=t||new Array(4);return n[0]=(255&e)/255,n[1]=(e>>8&255)/255,n[2]=(e>>16&255)/255,n[3]=(e>>24&255)/255,n}function Tp(e){return e[0]+(e[1]<<8)+(e[2]<<16)+(e[3]<<24)}function kp(e,t){var n=e.createTexture();return n.buffer=function(t){e.bindTexture(e.TEXTURE_2D,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t),e.generateMipmap(e.TEXTURE_2D),e.bindTexture(e.TEXTURE_2D,null)},n.deleteTexture=function(){e.deleteTexture(n)},n}function Op(e,t){switch(t){case"float":return[1,e.FLOAT,4];case"vec2":return[2,e.FLOAT,4];case"vec3":return[3,e.FLOAT,4];case"vec4":return[4,e.FLOAT,4];case"int":return[1,e.INT,4];case"ivec2":return[2,e.INT,4]}}function Mp(e,t,n){switch(t){case e.FLOAT:return new Float32Array(n);case e.INT:return new Int32Array(n)}}function Ip(e,t,n,r,i,o){switch(t){case e.FLOAT:return new Float32Array(n.buffer,o*r,i);case e.INT:return new Int32Array(n.buffer,o*r,i)}}function Dp(e,t,n,r){var i=f(Op(e,t),2),o=i[0],a=i[1],s=Mp(e,a,r),l=e.createBuffer();return e.bindBuffer(e.ARRAY_BUFFER,l),e.bufferData(e.ARRAY_BUFFER,s,e.STATIC_DRAW),a===e.FLOAT?e.vertexAttribPointer(n,o,a,!1,0,0):a===e.INT&&e.vertexAttribIPointer(n,o,a,0,0),e.enableVertexAttribArray(n),e.bindBuffer(e.ARRAY_BUFFER,null),l}function Np(e,t,n,r){var i=f(Op(e,n),3),o=i[0],a=i[1],s=i[2],l=Mp(e,a,t*o),c=o*s,u=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,u),e.bufferData(e.ARRAY_BUFFER,t*c,e.DYNAMIC_DRAW),e.enableVertexAttribArray(r),a===e.FLOAT?e.vertexAttribPointer(r,o,a,!1,c,0):a===e.INT&&e.vertexAttribIPointer(r,o,a,c,0),e.vertexAttribDivisor(r,1),e.bindBuffer(e.ARRAY_BUFFER,null);for(var d=new Array(t),h=0;h<t;h++)d[h]=Ip(e,a,l,c,o,h);return u.dataArray=l,u.stride=c,u.size=o,u.getView=function(e){return d[e]},u.setPoint=function(e,t,n){var r=d[e];r[0]=t,r[1]=n},u.bufferSubData=function(t){e.bindBuffer(e.ARRAY_BUFFER,u),t?e.bufferSubData(e.ARRAY_BUFFER,0,l,0,t*o):e.bufferSubData(e.ARRAY_BUFFER,0,l)},u}function Rp(e,t,n){for(var r=9,i=new Float32Array(t*r),o=new Array(t),a=0;a<t;a++){var s=a*r*4;o[a]=new Float32Array(i.buffer,s,r)}var l=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,l),e.bufferData(e.ARRAY_BUFFER,i.byteLength,e.DYNAMIC_DRAW);for(var c=0;c<3;c++){var u=n+c;e.enableVertexAttribArray(u),e.vertexAttribPointer(u,3,e.FLOAT,!1,36,12*c),e.vertexAttribDivisor(u,1)}return e.bindBuffer(e.ARRAY_BUFFER,null),l.getMatrixView=function(e){return o[e]},l.setData=function(e,t){o[t].set(e,0)},l.bufferSubData=function(){e.bindBuffer(e.ARRAY_BUFFER,l),e.bufferSubData(e.ARRAY_BUFFER,0,i)},l}function Lp(e){var t=e.createFramebuffer();e.bindFramebuffer(e.FRAMEBUFFER,t);var n=e.createTexture();return e.bindTexture(e.TEXTURE_2D,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,n,0),e.bindFramebuffer(e.FRAMEBUFFER,null),t.setFramebufferAttachmentSizes=function(t,r){e.bindTexture(e.TEXTURE_2D,n),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,t,r,0,e.RGBA,e.UNSIGNED_BYTE,null)},t}gp.getPixelRatio=function(){var e=this.data.contexts[0];if(null!=this.forcedPixelRatio)return this.forcedPixelRatio;var t=this.cy.window(),n=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(t.devicePixelRatio||1)/n},gp.paintCache=function(e){for(var t,n=this.paintCaches=this.paintCaches||[],r=!0,i=0;i<n.length;i++)if((t=n[i]).context===e){r=!1;break}return r&&(t={context:e},n.push(t)),t},gp.createGradientStyleFor=function(e,t,n,r,i){var o,a=this.usePaths(),s=n.pstyle(t+"-gradient-stop-colors").value,l=n.pstyle(t+"-gradient-stop-positions").pfValue;if("radial-gradient"===r)if(n.isEdge()){var c=n.sourceEndpoint(),u=n.targetEndpoint(),d=n.midpoint(),h=Pn(c,d),f=Pn(u,d);o=e.createRadialGradient(d.x,d.y,0,d.x,d.y,Math.max(h,f))}else{var p=a?{x:0,y:0}:n.position(),g=n.paddedWidth(),m=n.paddedHeight();o=e.createRadialGradient(p.x,p.y,0,p.x,p.y,Math.max(g,m))}else if(n.isEdge()){var v=n.sourceEndpoint(),A=n.targetEndpoint();o=e.createLinearGradient(v.x,v.y,A.x,A.y)}else{var b=a?{x:0,y:0}:n.position(),y=n.paddedWidth()/2,w=n.paddedHeight()/2;switch(n.pstyle("background-gradient-direction").value){case"to-bottom":o=e.createLinearGradient(b.x,b.y-w,b.x,b.y+w);break;case"to-top":o=e.createLinearGradient(b.x,b.y+w,b.x,b.y-w);break;case"to-left":o=e.createLinearGradient(b.x+y,b.y,b.x-y,b.y);break;case"to-right":o=e.createLinearGradient(b.x-y,b.y,b.x+y,b.y);break;case"to-bottom-right":case"to-right-bottom":o=e.createLinearGradient(b.x-y,b.y-w,b.x+y,b.y+w);break;case"to-top-right":case"to-right-top":o=e.createLinearGradient(b.x-y,b.y+w,b.x+y,b.y-w);break;case"to-bottom-left":case"to-left-bottom":o=e.createLinearGradient(b.x+y,b.y-w,b.x-y,b.y+w);break;case"to-top-left":case"to-left-top":o=e.createLinearGradient(b.x+y,b.y+w,b.x-y,b.y-w)}}if(!o)return null;for(var _=l.length===s.length,x=s.length,E=0;E<x;E++)o.addColorStop(_?l[E]:E/(x-1),"rgba("+s[E][0]+","+s[E][1]+","+s[E][2]+","+i+")");return o},gp.gradientFillStyle=function(e,t,n,r){var i=this.createGradientStyleFor(e,"background",t,n,r);if(!i)return null;e.fillStyle=i},gp.colorFillStyle=function(e,t,n,r,i){e.fillStyle="rgba("+t+","+n+","+r+","+i+")"},gp.eleFillStyle=function(e,t,n){var r=t.pstyle("background-fill").value;if("linear-gradient"===r||"radial-gradient"===r)this.gradientFillStyle(e,t,r,n);else{var i=t.pstyle("background-color").value;this.colorFillStyle(e,i[0],i[1],i[2],n)}},gp.gradientStrokeStyle=function(e,t,n,r){var i=this.createGradientStyleFor(e,"line",t,n,r);if(!i)return null;e.strokeStyle=i},gp.colorStrokeStyle=function(e,t,n,r,i){e.strokeStyle="rgba("+t+","+n+","+r+","+i+")"},gp.eleStrokeStyle=function(e,t,n){var r=t.pstyle("line-fill").value;if("linear-gradient"===r||"radial-gradient"===r)this.gradientStrokeStyle(e,t,r,n);else{var i=t.pstyle("line-color").value;this.colorStrokeStyle(e,i[0],i[1],i[2],n)}},gp.matchCanvasSize=function(e){var t=this,n=t.data,r=t.findContainerClientCoords(),i=r[2],o=r[3],a=t.getPixelRatio(),s=t.motionBlurPxRatio;e!==t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE]&&e!==t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG]||(a=s);var l,c=i*a,u=o*a;if(c!==t.canvasWidth||u!==t.canvasHeight){t.fontCaches=null;var d=n.canvasContainer;d.style.width=i+"px",d.style.height=o+"px";for(var h=0;h<t.CANVAS_LAYERS;h++)(l=n.canvases[h]).width=c,l.height=u,l.style.width=i+"px",l.style.height=o+"px";for(h=0;h<t.BUFFER_COUNT;h++)(l=n.bufferCanvases[h]).width=c,l.height=u,l.style.width=i+"px",l.style.height=o+"px";t.textureMult=1,a<=1&&(l=n.bufferCanvases[t.TEXTURE_BUFFER],t.textureMult=2,l.width=c*t.textureMult,l.height=u*t.textureMult),t.canvasWidth=c,t.canvasHeight=u,t.pixelRatio=a}},gp.renderTo=function(e,t,n,r){this.render({forcedContext:e,forcedZoom:t,forcedPan:n,drawAllLayers:!0,forcedPxRatio:r})},gp.clearCanvas=function(){var e=this,t=e.data;function n(t){t.clearRect(0,0,e.canvasWidth,e.canvasHeight)}n(t.contexts[e.NODE]),n(t.contexts[e.DRAG])},gp.render=function(e){var t=this;e=e||Ht();var n=t.cy,r=e.forcedContext,i=e.drawAllLayers,o=e.drawOnlyNodeLayer,a=e.forcedZoom,s=e.forcedPan,l=void 0===e.forcedPxRatio?this.getPixelRatio():e.forcedPxRatio,c=t.data,u=c.canvasNeedsRedraw,d=t.textureOnViewport&&!r&&(t.pinching||t.hoverData.dragging||t.swipePanning||t.data.wheelZooming),h=void 0!==e.motionBlur?e.motionBlur:t.motionBlur,f=t.motionBlurPxRatio,p=n.hasCompoundNodes(),g=t.hoverData.draggingEles,m=!(!t.hoverData.selecting&&!t.touchData.selecting),v=h=h&&!r&&t.motionBlurEnabled&&!m;r||(t.prevPxRatio!==l&&(t.invalidateContainerClientCoordsCache(),t.matchCanvasSize(t.container),t.redrawHint("eles",!0),t.redrawHint("drag",!0)),t.prevPxRatio=l),!r&&t.motionBlurTimeout&&clearTimeout(t.motionBlurTimeout),h&&(null==t.mbFrames&&(t.mbFrames=0),t.mbFrames++,t.mbFrames<3&&(v=!1),t.mbFrames>t.minMbLowQualFrames&&(t.motionBlurPxRatio=t.mbPxRBlurry)),t.clearingMotionBlur&&(t.motionBlurPxRatio=1),t.textureDrawLastFrame&&!d&&(u[t.NODE]=!0,u[t.SELECT_BOX]=!0);var A=n.style(),b=n.zoom(),y=void 0!==a?a:b,w=n.pan(),_={x:w.x,y:w.y},x={zoom:b,pan:{x:w.x,y:w.y}},E=t.prevViewport;void 0===E||x.zoom!==E.zoom||x.pan.x!==E.pan.x||x.pan.y!==E.pan.y||g&&!p||(t.motionBlurPxRatio=1),s&&(_=s),y*=l,_.x*=l,_.y*=l;var S=t.getCachedZSortedEles();function C(e,n,r,i,o){var a=e.globalCompositeOperation;e.globalCompositeOperation="destination-out",t.colorFillStyle(e,255,255,255,t.motionBlurTransparency),e.fillRect(n,r,i,o),e.globalCompositeOperation=a}function T(e,n){var o,l,u,d;t.clearingMotionBlur||e!==c.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]&&e!==c.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG]?(o=_,l=y,u=t.canvasWidth,d=t.canvasHeight):(o={x:w.x*f,y:w.y*f},l=b*f,u=t.canvasWidth*f,d=t.canvasHeight*f),e.setTransform(1,0,0,1,0,0),"motionBlur"===n?C(e,0,0,u,d):r||void 0!==n&&!n||e.clearRect(0,0,u,d),i||(e.translate(o.x,o.y),e.scale(l,l)),s&&e.translate(s.x,s.y),a&&e.scale(a,a)}if(d||(t.textureDrawLastFrame=!1),d){if(t.textureDrawLastFrame=!0,!t.textureCache){t.textureCache={},t.textureCache.bb=n.mutableElements().boundingBox(),t.textureCache.texture=t.data.bufferCanvases[t.TEXTURE_BUFFER];var k=t.data.bufferContexts[t.TEXTURE_BUFFER];k.setTransform(1,0,0,1,0,0),k.clearRect(0,0,t.canvasWidth*t.textureMult,t.canvasHeight*t.textureMult),t.render({forcedContext:k,drawOnlyNodeLayer:!0,forcedPxRatio:l*t.textureMult}),(x=t.textureCache.viewport={zoom:n.zoom(),pan:n.pan(),width:t.canvasWidth,height:t.canvasHeight}).mpan={x:(0-x.pan.x)/x.zoom,y:(0-x.pan.y)/x.zoom}}u[t.DRAG]=!1,u[t.NODE]=!1;var O=c.contexts[t.NODE],M=t.textureCache.texture;x=t.textureCache.viewport,O.setTransform(1,0,0,1,0,0),h?C(O,0,0,x.width,x.height):O.clearRect(0,0,x.width,x.height);var I=A.core("outside-texture-bg-color").value,D=A.core("outside-texture-bg-opacity").value;t.colorFillStyle(O,I[0],I[1],I[2],D),O.fillRect(0,0,x.width,x.height),b=n.zoom(),T(O,!1),O.clearRect(x.mpan.x,x.mpan.y,x.width/x.zoom/l,x.height/x.zoom/l),O.drawImage(M,x.mpan.x,x.mpan.y,x.width/x.zoom/l,x.height/x.zoom/l)}else t.textureOnViewport&&!r&&(t.textureCache=null);var N=n.extent(),R=t.pinching||t.hoverData.dragging||t.swipePanning||t.data.wheelZooming||t.hoverData.draggingEles||t.cy.animated(),L=t.hideEdgesOnViewport&&R,B=[];if(B[t.NODE]=!u[t.NODE]&&h&&!t.clearedForMotionBlur[t.NODE]||t.clearingMotionBlur,B[t.NODE]&&(t.clearedForMotionBlur[t.NODE]=!0),B[t.DRAG]=!u[t.DRAG]&&h&&!t.clearedForMotionBlur[t.DRAG]||t.clearingMotionBlur,B[t.DRAG]&&(t.clearedForMotionBlur[t.DRAG]=!0),u[t.NODE]||i||o||B[t.NODE]){var P=h&&!B[t.NODE]&&1!==f;T(O=r||(P?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_NODE]:c.contexts[t.NODE]),h&&!P?"motionBlur":void 0),L?t.drawCachedNodes(O,S.nondrag,l,N):t.drawLayeredElements(O,S.nondrag,l,N),t.debug&&t.drawDebugPoints(O,S.nondrag),i||h||(u[t.NODE]=!1)}if(!o&&(u[t.DRAG]||i||B[t.DRAG])&&(P=h&&!B[t.DRAG]&&1!==f,T(O=r||(P?t.data.bufferContexts[t.MOTIONBLUR_BUFFER_DRAG]:c.contexts[t.DRAG]),h&&!P?"motionBlur":void 0),L?t.drawCachedNodes(O,S.drag,l,N):t.drawCachedElements(O,S.drag,l,N),t.debug&&t.drawDebugPoints(O,S.drag),i||h||(u[t.DRAG]=!1)),this.drawSelectionRectangle(e,T),h&&1!==f){var F=c.contexts[t.NODE],$=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_NODE],j=c.contexts[t.DRAG],H=t.data.bufferCanvases[t.MOTIONBLUR_BUFFER_DRAG],U=function(e,n,r){e.setTransform(1,0,0,1,0,0),r||!v?e.clearRect(0,0,t.canvasWidth,t.canvasHeight):C(e,0,0,t.canvasWidth,t.canvasHeight);var i=f;e.drawImage(n,0,0,t.canvasWidth*i,t.canvasHeight*i,0,0,t.canvasWidth,t.canvasHeight)};(u[t.NODE]||B[t.NODE])&&(U(F,$,B[t.NODE]),u[t.NODE]=!1),(u[t.DRAG]||B[t.DRAG])&&(U(j,H,B[t.DRAG]),u[t.DRAG]=!1)}t.prevViewport=x,t.clearingMotionBlur&&(t.clearingMotionBlur=!1,t.motionBlurCleared=!0,t.motionBlur=!0),h&&(t.motionBlurTimeout=setTimeout(function(){t.motionBlurTimeout=null,t.clearedForMotionBlur[t.NODE]=!1,t.clearedForMotionBlur[t.DRAG]=!1,t.motionBlur=!1,t.clearingMotionBlur=!d,t.mbFrames=0,u[t.NODE]=!0,u[t.DRAG]=!0,t.redraw()},mp)),r||n.emit("render")},gp.drawSelectionRectangle=function(e,t){var n=this,r=n.cy,i=n.data,o=r.style(),a=e.drawOnlyNodeLayer,s=e.drawAllLayers,l=i.canvasNeedsRedraw,c=e.forcedContext;if(n.showFps||!a&&l[n.SELECT_BOX]&&!s){var u=c||i.contexts[n.SELECT_BOX];if(t(u),1==n.selection[4]&&(n.hoverData.selecting||n.touchData.selecting)){var d=n.cy.zoom(),h=o.core("selection-box-border-width").value/d;u.lineWidth=h,u.fillStyle="rgba("+o.core("selection-box-color").value[0]+","+o.core("selection-box-color").value[1]+","+o.core("selection-box-color").value[2]+","+o.core("selection-box-opacity").value+")",u.fillRect(n.selection[0],n.selection[1],n.selection[2]-n.selection[0],n.selection[3]-n.selection[1]),h>0&&(u.strokeStyle="rgba("+o.core("selection-box-border-color").value[0]+","+o.core("selection-box-border-color").value[1]+","+o.core("selection-box-border-color").value[2]+","+o.core("selection-box-opacity").value+")",u.strokeRect(n.selection[0],n.selection[1],n.selection[2]-n.selection[0],n.selection[3]-n.selection[1]))}if(i.bgActivePosistion&&!n.hoverData.selecting){d=n.cy.zoom();var f=i.bgActivePosistion;u.fillStyle="rgba("+o.core("active-bg-color").value[0]+","+o.core("active-bg-color").value[1]+","+o.core("active-bg-color").value[2]+","+o.core("active-bg-opacity").value+")",u.beginPath(),u.arc(f.x,f.y,o.core("active-bg-size").pfValue/d,0,2*Math.PI),u.fill()}var p=n.lastRedrawTime;if(n.showFps&&p){p=Math.round(p);var g=Math.round(1e3/p),m="1 frame = "+p+" ms = "+g+" fps";if(u.setTransform(1,0,0,1,0,0),u.fillStyle="rgba(255, 0, 0, 0.75)",u.strokeStyle="rgba(255, 0, 0, 0.75)",u.font="30px Arial",!pp){var v=u.measureText(m);pp=v.actualBoundingBoxAscent}u.fillText(m,0,pp);var A=60;u.strokeRect(0,pp+10,250,20),u.fillRect(0,pp+10,250*Math.min(g/A,1),20)}s||(l[n.SELECT_BOX]=!1)}};var Bp="undefined"!=typeof Float32Array?Float32Array:Array;function Pp(){var e=new Bp(9);return Bp!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function Fp(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function $p(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],h=n[0],f=n[1],p=n[2],g=n[3],m=n[4],v=n[5],A=n[6],b=n[7],y=n[8];return e[0]=h*r+f*a+p*c,e[1]=h*i+f*s+p*u,e[2]=h*o+f*l+p*d,e[3]=g*r+m*a+v*c,e[4]=g*i+m*s+v*u,e[5]=g*o+m*l+v*d,e[6]=A*r+b*a+y*c,e[7]=A*i+b*s+y*u,e[8]=A*o+b*l+y*d,e}function jp(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],h=n[0],f=n[1];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e[6]=h*r+f*a+c,e[7]=h*i+f*s+u,e[8]=h*o+f*l+d,e}function Hp(e,t,n){var r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=t[8],h=Math.sin(n),f=Math.cos(n);return e[0]=f*r+h*a,e[1]=f*i+h*s,e[2]=f*o+h*l,e[3]=f*a-h*r,e[4]=f*s-h*i,e[5]=f*l-h*o,e[6]=c,e[7]=u,e[8]=d,e}function Up(e,t,n){var r=n[0],i=n[1];return e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=i*t[3],e[4]=i*t[4],e[5]=i*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function Qp(e,t,n){return e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/n,e[5]=0,e[6]=-1,e[7]=1,e[8]=1,e}Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});var zp=function(){function e(t,n,r,o){i(this,e),this.debugID=Math.floor(1e4*Math.random()),this.r=t,this.texSize=n,this.texRows=r,this.texHeight=Math.floor(n/r),this.enableWrapping=!0,this.locked=!1,this.texture=null,this.needsBuffer=!0,this.freePointer={x:0,row:0},this.keyToLocation=new Map,this.canvas=o(t,n,n),this.scratch=o(t,n,this.texHeight,"scratch")}return a(e,[{key:"lock",value:function(){this.locked=!0}},{key:"getKeys",value:function(){return new Set(this.keyToLocation.keys())}},{key:"getScale",value:function(e){var t=e.w,n=e.h,r=this.texHeight,i=this.texSize,o=r/n,a=t*o,s=n*o;return a>i&&(a=t*(o=i/t),s=n*o),{scale:o,texW:a,texH:s}}},{key:"draw",value:function(e,t,n){var r=this;if(this.locked)throw new Error("can't draw, atlas is locked");var i=this.texSize,o=this.texRows,a=this.texHeight,s=this.getScale(t),l=s.scale,c=s.texW,u=s.texH,d=function(e,r){if(n&&r){var i=r.context,o=e.x,s=e.row,c=o,u=a*s;i.save(),i.translate(c,u),i.scale(l,l),n(i,t),i.restore()}},h=[null,null],f=function(){d(r.freePointer,r.canvas),h[0]={x:r.freePointer.x,y:r.freePointer.row*a,w:c,h:u},h[1]={x:r.freePointer.x+c,y:r.freePointer.row*a,w:0,h:u},r.freePointer.x+=c,r.freePointer.x==i&&(r.freePointer.x=0,r.freePointer.row++)},p=function(){var e=r.scratch,t=r.canvas;e.clear(),d({x:0,row:0},e);var n=i-r.freePointer.x,o=c-n,s=a,l=r.freePointer.x,f=r.freePointer.row*a,p=n;t.context.drawImage(e,0,0,p,s,l,f,p,s),h[0]={x:l,y:f,w:p,h:u};var g=n,m=(r.freePointer.row+1)*a,v=o;t&&t.context.drawImage(e,g,0,v,s,0,m,v,s),h[1]={x:0,y:m,w:v,h:u},r.freePointer.x=o,r.freePointer.row++},g=function(){r.freePointer.x=0,r.freePointer.row++};if(this.freePointer.x+c<=i)f();else{if(this.freePointer.row>=o-1)return!1;this.freePointer.x===i?(g(),f()):this.enableWrapping?p():(g(),f())}return this.keyToLocation.set(e,h),this.needsBuffer=!0,h}},{key:"getOffsets",value:function(e){return this.keyToLocation.get(e)}},{key:"isEmpty",value:function(){return 0===this.freePointer.x&&0===this.freePointer.row}},{key:"canFit",value:function(e){if(this.locked)return!1;var t=this.texSize,n=this.texRows,r=this.getScale(e).texW;return!(this.freePointer.x+r>t)||this.freePointer.row<n-1}},{key:"bufferIfNeeded",value:function(e){this.texture||(this.texture=kp(e,this.debugID)),this.needsBuffer&&(this.texture.buffer(this.canvas),this.needsBuffer=!1,this.locked&&(this.canvas=null,this.scratch=null))}},{key:"dispose",value:function(){this.texture&&(this.texture.deleteTexture(),this.texture=null),this.canvas=null,this.scratch=null,this.locked=!0}}])}(),Wp=function(){function e(t,n,r,o){i(this,e),this.r=t,this.texSize=n,this.texRows=r,this.createTextureCanvas=o,this.atlases=[],this.styleKeyToAtlas=new Map,this.markedKeys=new Set}return a(e,[{key:"getKeys",value:function(){return new Set(this.styleKeyToAtlas.keys())}},{key:"_createAtlas",value:function(){var e=this.r,t=this.texSize,n=this.texRows,r=this.createTextureCanvas;return new zp(e,t,n,r)}},{key:"_getScratchCanvas",value:function(){if(!this.scratch){var e=this.r,t=this.texSize,n=this.texRows,r=this.createTextureCanvas,i=Math.floor(t/n);this.scratch=r(e,t,i,"scratch")}return this.scratch}},{key:"draw",value:function(e,t,n){var r=this.styleKeyToAtlas.get(e);return r||((r=this.atlases[this.atlases.length-1])&&r.canFit(t)||(r&&r.lock(),r=this._createAtlas(),this.atlases.push(r)),r.draw(e,t,n),this.styleKeyToAtlas.set(e,r)),r}},{key:"getAtlas",value:function(e){return this.styleKeyToAtlas.get(e)}},{key:"hasAtlas",value:function(e){return this.styleKeyToAtlas.has(e)}},{key:"markKeyForGC",value:function(e){this.markedKeys.add(e)}},{key:"gc",value:function(){var e=this,t=this.markedKeys;if(0!==t.size){var n,r=[],i=new Map,o=null,a=s(this.atlases);try{var l=function(){var a=n.value,l=a.getKeys(),c=Gp(t,l);if(0===c.size)return r.push(a),l.forEach(function(e){return i.set(e,a)}),1;o||(o=e._createAtlas(),r.push(o));var u,d=s(l);try{for(d.s();!(u=d.n()).done;){var h=u.value;if(!c.has(h)){var p=f(a.getOffsets(h),2),g=p[0],m=p[1];o.canFit({w:g.w+m.w,h:g.h})||(o.lock(),o=e._createAtlas(),r.push(o)),a.canvas&&(e._copyTextureToNewAtlas(h,a,o),i.set(h,o))}}}catch(e){d.e(e)}finally{d.f()}a.dispose()};for(a.s();!(n=a.n()).done;)l()}catch(e){a.e(e)}finally{a.f()}this.atlases=r,this.styleKeyToAtlas=i,this.markedKeys=new Set}}},{key:"_copyTextureToNewAtlas",value:function(e,t,n){var r=f(t.getOffsets(e),2),i=r[0],o=r[1];if(0===o.w)n.draw(e,i,function(e){e.drawImage(t.canvas,i.x,i.y,i.w,i.h,0,0,i.w,i.h)});else{var a=this._getScratchCanvas();a.clear(),a.context.drawImage(t.canvas,i.x,i.y,i.w,i.h,0,0,i.w,i.h),a.context.drawImage(t.canvas,o.x,o.y,o.w,o.h,i.w,0,o.w,o.h);var s=i.w+o.w,l=i.h;n.draw(e,{w:s,h:l},function(e){e.drawImage(a,0,0,s,l,0,0,s,l)})}}},{key:"getCounts",value:function(){return{keyCount:this.styleKeyToAtlas.size,atlasCount:new Set(this.styleKeyToAtlas.values()).size}}}])}();function Gp(e,t){return e.intersection?e.intersection(t):new Set(p(e).filter(function(e){return t.has(e)}))}var Vp=function(){function e(t,n){i(this,e),this.r=t,this.globalOptions=n,this.atlasSize=n.webglTexSize,this.maxAtlasesPerBatch=n.webglTexPerBatch,this.renderTypes=new Map,this.collections=new Map,this.typeAndIdToKey=new Map}return a(e,[{key:"getAtlasSize",value:function(){return this.atlasSize}},{key:"addAtlasCollection",value:function(e,t){var n=this.globalOptions,r=n.webglTexSize,i=n.createTextureCanvas,o=t.texRows,a=this._cacheScratchCanvas(i),s=new Wp(this.r,r,o,a);this.collections.set(e,s)}},{key:"addRenderType",value:function(e,t){var n=t.collection;if(!this.collections.has(n))throw new Error("invalid atlas collection name '".concat(n,"'"));var r=this.collections.get(n),i=Re({type:e,atlasCollection:r},t);this.renderTypes.set(e,i)}},{key:"getRenderTypeOpts",value:function(e){return this.renderTypes.get(e)}},{key:"getAtlasCollection",value:function(e){return this.collections.get(e)}},{key:"_cacheScratchCanvas",value:function(e){var t=-1,n=-1,r=null;return function(i,o,a,s){return s?(r&&o==t&&a==n||(t=o,n=a,r=e(i,o,a)),r):e(i,o,a)}}},{key:"_key",value:function(e,t){return"".concat(e,"-").concat(t)}},{key:"invalidate",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.forceRedraw,o=void 0!==i&&i,a=r.filterEle,l=void 0===a?function(){return!0}:a,c=r.filterType,u=void 0===c?function(){return!0}:c,d=!1,h=!1,f=s(e);try{for(f.s();!(t=f.n()).done;){var p=t.value;if(l(p)){var g,m=s(this.renderTypes.values());try{var v=function(){var e=g.value,t=e.type;if(u(t)){var r=n.collections.get(e.collection),i=e.getKey(p),a=Array.isArray(i)?i:[i];if(o)a.forEach(function(e){return r.markKeyForGC(e)}),h=!0;else{var s=e.getID?e.getID(p):p.id(),l=n._key(t,s),c=n.typeAndIdToKey.get(l);void 0===c||Ep(a,c)||(d=!0,n.typeAndIdToKey.delete(l),c.forEach(function(e){return r.markKeyForGC(e)}))}}};for(m.s();!(g=m.n()).done;)v()}catch(e){m.e(e)}finally{m.f()}}}}catch(e){f.e(e)}finally{f.f()}return h&&(this.gc(),d=!1),d}},{key:"gc",value:function(){var e,t=s(this.collections.values());try{for(t.s();!(e=t.n()).done;)e.value.gc()}catch(e){t.e(e)}finally{t.f()}}},{key:"getOrCreateAtlas",value:function(e,t,n,r){var i=this.renderTypes.get(t),o=this.collections.get(i.collection),a=!1,s=o.draw(r,n,function(t){i.drawClipped?(t.save(),t.beginPath(),t.rect(0,0,n.w,n.h),t.clip(),i.drawElement(t,e,n,!0,!0),t.restore()):i.drawElement(t,e,n,!0,!0),a=!0});if(a){var l=i.getID?i.getID(e):e.id(),c=this._key(t,l);this.typeAndIdToKey.has(c)?this.typeAndIdToKey.get(c).push(r):this.typeAndIdToKey.set(c,[r])}return s}},{key:"getAtlasInfo",value:function(e,t){var n=this,r=this.renderTypes.get(t),i=r.getKey(e);return(Array.isArray(i)?i:[i]).map(function(i){var o=r.getBoundingBox(e,i),a=n.getOrCreateAtlas(e,t,o,i),s=f(a.getOffsets(i),2),l=s[0];return{atlas:a,tex:l,tex1:l,tex2:s[1],bb:o}})}},{key:"getDebugInfo",value:function(){var e,t=[],n=s(this.collections);try{for(n.s();!(e=n.n()).done;){var r=f(e.value,2),i=r[0],o=r[1].getCounts(),a=o.keyCount,l=o.atlasCount;t.push({type:i,keyCount:a,atlasCount:l})}}catch(e){n.e(e)}finally{n.f()}return t}}])}(),Kp=function(){function e(t){i(this,e),this.globalOptions=t,this.atlasSize=t.webglTexSize,this.maxAtlasesPerBatch=t.webglTexPerBatch,this.batchAtlases=[]}return a(e,[{key:"getMaxAtlasesPerBatch",value:function(){return this.maxAtlasesPerBatch}},{key:"getAtlasSize",value:function(){return this.atlasSize}},{key:"getIndexArray",value:function(){return Array.from({length:this.maxAtlasesPerBatch},function(e,t){return t})}},{key:"startBatch",value:function(){this.batchAtlases=[]}},{key:"getAtlasCount",value:function(){return this.batchAtlases.length}},{key:"getAtlases",value:function(){return this.batchAtlases}},{key:"canAddToCurrentBatch",value:function(e){return this.batchAtlases.length!==this.maxAtlasesPerBatch||this.batchAtlases.includes(e)}},{key:"getAtlasIndexForBatch",value:function(e){var t=this.batchAtlases.indexOf(e);if(t<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw new Error("cannot add more atlases to batch");this.batchAtlases.push(e),t=this.batchAtlases.length-1}return t}}])}(),Yp="\n  float circleSD(vec2 p, float r) {\n    return distance(vec2(0), p) - r; // signed distance\n  }\n",qp="\n  float rectangleSD(vec2 p, vec2 b) {\n    vec2 d = abs(p)-b;\n    return distance(vec2(0),max(d,0.0)) + min(max(d.x,d.y),0.0);\n  }\n",Xp="\n  float roundRectangleSD(vec2 p, vec2 b, vec4 cr) {\n    cr.xy = (p.x > 0.0) ? cr.xy : cr.zw;\n    cr.x  = (p.y > 0.0) ? cr.x  : cr.y;\n    vec2 q = abs(p) - b + cr.x;\n    return min(max(q.x, q.y), 0.0) + distance(vec2(0), max(q, 0.0)) - cr.x;\n  }\n",Jp="\n  float ellipseSD(vec2 p, vec2 ab) {\n    p = abs( p ); // symmetry\n\n    // find root with Newton solver\n    vec2 q = ab*(p-ab);\n    float w = (q.x<q.y)? 1.570796327 : 0.0;\n    for( int i=0; i<5; i++ ) {\n      vec2 cs = vec2(cos(w),sin(w));\n      vec2 u = ab*vec2( cs.x,cs.y);\n      vec2 v = ab*vec2(-cs.y,cs.x);\n      w = w + dot(p-u,v)/(dot(p-u,u)+dot(v,v));\n    }\n    \n    // compute final point and distance\n    float d = length(p-ab*vec2(cos(w),sin(w)));\n    \n    // return signed distance\n    return (dot(p/ab,p/ab)>1.0) ? d : -d;\n  }\n",Zp={SCREEN:{name:"screen",screen:!0},PICKING:{name:"picking",picking:!0}},eg={IGNORE:1,USE_BB:2},tg=0,ng=1,rg=2,ig=3,og=4,ag=5,sg=6,lg=7,cg=function(){function e(t,n,r){i(this,e),this.r=t,this.gl=n,this.maxInstances=r.webglBatchSize,this.atlasSize=r.webglTexSize,this.bgColor=r.bgColor,this.debug=r.webglDebug,this.batchDebugInfo=[],r.enableWrapping=!0,r.createTextureCanvas=bp,this.atlasManager=new Vp(t,r),this.batchManager=new Kp(r),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(Zp.SCREEN),this.pickingProgram=this._createShaderProgram(Zp.PICKING),this.vao=this._createVAO()}return a(e,[{key:"addAtlasCollection",value:function(e,t){this.atlasManager.addAtlasCollection(e,t)}},{key:"addTextureAtlasRenderType",value:function(e,t){this.atlasManager.addRenderType(e,t)}},{key:"addSimpleShapeRenderType",value:function(e,t){this.simpleShapeOptions.set(e,t)}},{key:"invalidate",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).type,n=this.atlasManager;return t?n.invalidate(e,{filterType:function(e){return e===t},forceRedraw:!0}):n.invalidate(e)}},{key:"gc",value:function(){this.atlasManager.gc()}},{key:"_createShaderProgram",value:function(e){var t=this.gl,n="#version 300 es\n      precision highp float;\n\n      uniform mat3 uPanZoomMatrix;\n      uniform int  uAtlasSize;\n      \n      // instanced\n      in vec2 aPosition; // a vertex from the unit square\n      \n      in mat3 aTransform; // used to transform verticies, eg into a bounding box\n      in int aVertType; // the type of thing we are rendering\n\n      // the z-index that is output when using picking mode\n      in vec4 aIndex;\n      \n      // For textures\n      in int aAtlasId; // which shader unit/atlas to use\n      in vec4 aTex; // x/y/w/h of texture in atlas\n\n      // for edges\n      in vec4 aPointAPointB;\n      in vec4 aPointCPointD;\n      in vec2 aLineWidth; // also used for node border width\n\n      // simple shapes\n      in vec4 aCornerRadius; // for round-rectangle [top-right, bottom-right, top-left, bottom-left]\n      in vec4 aColor; // also used for edges\n      in vec4 aBorderColor; // aLineWidth is used for border width\n\n      // output values passed to the fragment shader\n      out vec2 vTexCoord;\n      out vec4 vColor;\n      out vec2 vPosition;\n      // flat values are not interpolated\n      flat out int vAtlasId; \n      flat out int vVertType;\n      flat out vec2 vTopRight;\n      flat out vec2 vBotLeft;\n      flat out vec4 vCornerRadius;\n      flat out vec4 vBorderColor;\n      flat out vec2 vBorderWidth;\n      flat out vec4 vIndex;\n      \n      void main(void) {\n        int vid = gl_VertexID;\n        vec2 position = aPosition; // TODO make this a vec3, simplifies some code below\n\n        if(aVertType == ".concat(tg,") {\n          float texX = aTex.x; // texture coordinates\n          float texY = aTex.y;\n          float texW = aTex.z;\n          float texH = aTex.w;\n\n          if(vid == 1 || vid == 2 || vid == 4) {\n            texX += texW;\n          }\n          if(vid == 2 || vid == 4 || vid == 5) {\n            texY += texH;\n          }\n\n          float d = float(uAtlasSize);\n          vTexCoord = vec2(texX / d, texY / d); // tex coords must be between 0 and 1\n\n          gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);\n        }\n        else if(aVertType == ").concat(og," || aVertType == ").concat(lg," \n             || aVertType == ").concat(ag," || aVertType == ").concat(sg,") { // simple shapes\n\n          // the bounding box is needed by the fragment shader\n          vBotLeft  = (aTransform * vec3(0, 0, 1)).xy; // flat\n          vTopRight = (aTransform * vec3(1, 1, 1)).xy; // flat\n          vPosition = (aTransform * vec3(position, 1)).xy; // will be interpolated\n\n          // calculations are done in the fragment shader, just pass these along\n          vColor = aColor;\n          vCornerRadius = aCornerRadius;\n          vBorderColor = aBorderColor;\n          vBorderWidth = aLineWidth;\n\n          gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);\n        }\n        else if(aVertType == ").concat(ng,") {\n          vec2 source = aPointAPointB.xy;\n          vec2 target = aPointAPointB.zw;\n\n          // adjust the geometry so that the line is centered on the edge\n          position.y = position.y - 0.5;\n\n          // stretch the unit square into a long skinny rectangle\n          vec2 xBasis = target - source;\n          vec2 yBasis = normalize(vec2(-xBasis.y, xBasis.x));\n          vec2 point = source + xBasis * position.x + yBasis * aLineWidth[0] * position.y;\n\n          gl_Position = vec4(uPanZoomMatrix * vec3(point, 1.0), 1.0);\n          vColor = aColor;\n        } \n        else if(aVertType == ").concat(rg,") {\n          vec2 pointA = aPointAPointB.xy;\n          vec2 pointB = aPointAPointB.zw;\n          vec2 pointC = aPointCPointD.xy;\n          vec2 pointD = aPointCPointD.zw;\n\n          // adjust the geometry so that the line is centered on the edge\n          position.y = position.y - 0.5;\n\n          vec2 p0, p1, p2, pos;\n          if(position.x == 0.0) { // The left side of the unit square\n            p0 = pointA;\n            p1 = pointB;\n            p2 = pointC;\n            pos = position;\n          } else { // The right side of the unit square, use same approach but flip the geometry upside down\n            p0 = pointD;\n            p1 = pointC;\n            p2 = pointB;\n            pos = vec2(0.0, -position.y);\n          }\n\n          vec2 p01 = p1 - p0;\n          vec2 p12 = p2 - p1;\n          vec2 p21 = p1 - p2;\n\n          // Find the normal vector.\n          vec2 tangent = normalize(normalize(p12) + normalize(p01));\n          vec2 normal = vec2(-tangent.y, tangent.x);\n\n          // Find the vector perpendicular to p0 -> p1.\n          vec2 p01Norm = normalize(vec2(-p01.y, p01.x));\n\n          // Determine the bend direction.\n          float sigma = sign(dot(p01 + p21, normal));\n          float width = aLineWidth[0];\n\n          if(sign(pos.y) == -sigma) {\n            // This is an intersecting vertex. Adjust the position so that there's no overlap.\n            vec2 point = 0.5 * width * normal * -sigma / dot(normal, p01Norm);\n            gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0);\n          } else {\n            // This is a non-intersecting vertex. Treat it like a mitre join.\n            vec2 point = 0.5 * width * normal * sigma * dot(normal, p01Norm);\n            gl_Position = vec4(uPanZoomMatrix * vec3(p1 + point, 1.0), 1.0);\n          }\n\n          vColor = aColor;\n        } \n        else if(aVertType == ").concat(ig," && vid < 3) {\n          // massage the first triangle into an edge arrow\n          if(vid == 0)\n            position = vec2(-0.15, -0.3);\n          if(vid == 1)\n            position = vec2(  0.0,  0.0);\n          if(vid == 2)\n            position = vec2( 0.15, -0.3);\n\n          gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0);\n          vColor = aColor;\n        }\n        else {\n          gl_Position = vec4(2.0, 0.0, 0.0, 1.0); // discard vertex by putting it outside webgl clip space\n        }\n\n        vAtlasId = aAtlasId;\n        vVertType = aVertType;\n        vIndex = aIndex;\n      }\n    "),r=this.batchManager.getIndexArray(),i="#version 300 es\n      precision highp float;\n\n      // declare texture unit for each texture atlas in the batch\n      ".concat(r.map(function(e){return"uniform sampler2D uTexture".concat(e,";")}).join("\n\t"),"\n\n      uniform vec4 uBGColor;\n      uniform float uZoom;\n\n      in vec2 vTexCoord;\n      in vec4 vColor;\n      in vec2 vPosition; // model coordinates\n\n      flat in int vAtlasId;\n      flat in vec4 vIndex;\n      flat in int vVertType;\n      flat in vec2 vTopRight;\n      flat in vec2 vBotLeft;\n      flat in vec4 vCornerRadius;\n      flat in vec4 vBorderColor;\n      flat in vec2 vBorderWidth;\n\n      out vec4 outColor;\n\n      ").concat(Yp,"\n      ").concat(qp,"\n      ").concat(Xp,"\n      ").concat(Jp,"\n\n      vec4 blend(vec4 top, vec4 bot) { // blend colors with premultiplied alpha\n        return vec4( \n          top.rgb + (bot.rgb * (1.0 - top.a)),\n          top.a   + (bot.a   * (1.0 - top.a)) \n        );\n      }\n\n      vec4 distInterp(vec4 cA, vec4 cB, float d) { // interpolate color using Signed Distance\n        // scale to the zoom level so that borders don't look blurry when zoomed in\n        // note 1.5 is an aribitrary value chosen because it looks good\n        return mix(cA, cB, 1.0 - smoothstep(0.0, 1.5 / uZoom, abs(d))); \n      }\n\n      void main(void) {\n        if(vVertType == ").concat(tg,") {\n          // look up the texel from the texture unit\n          ").concat(r.map(function(e){return"if(vAtlasId == ".concat(e,") outColor = texture(uTexture").concat(e,", vTexCoord);")}).join("\n\telse "),"\n        } \n        else if(vVertType == ").concat(ig,") {\n          // mimics how canvas renderer uses context.globalCompositeOperation = 'destination-out';\n          outColor = blend(vColor, uBGColor);\n          outColor.a = 1.0; // make opaque, masks out line under arrow\n        }\n        else if(vVertType == ").concat(og," && vBorderWidth == vec2(0.0)) { // simple rectangle with no border\n          outColor = vColor; // unit square is already transformed to the rectangle, nothing else needs to be done\n        }\n        else if(vVertType == ").concat(og," || vVertType == ").concat(lg," \n          || vVertType == ").concat(ag," || vVertType == ").concat(sg,") { // use SDF\n\n          float outerBorder = vBorderWidth[0];\n          float innerBorder = vBorderWidth[1];\n          float borderPadding = outerBorder * 2.0;\n          float w = vTopRight.x - vBotLeft.x - borderPadding;\n          float h = vTopRight.y - vBotLeft.y - borderPadding;\n          vec2 b = vec2(w/2.0, h/2.0); // half width, half height\n          vec2 p = vPosition - vec2(vTopRight.x - b[0] - outerBorder, vTopRight.y - b[1] - outerBorder); // translate to center\n\n          float d; // signed distance\n          if(vVertType == ").concat(og,") {\n            d = rectangleSD(p, b);\n          } else if(vVertType == ").concat(lg," && w == h) {\n            d = circleSD(p, b.x); // faster than ellipse\n          } else if(vVertType == ").concat(lg,") {\n            d = ellipseSD(p, b);\n          } else {\n            d = roundRectangleSD(p, b, vCornerRadius.wzyx);\n          }\n\n          // use the distance to interpolate a color to smooth the edges of the shape, doesn't need multisampling\n          // we must smooth colors inwards, because we can't change pixels outside the shape's bounding box\n          if(d > 0.0) {\n            if(d > outerBorder) {\n              discard;\n            } else {\n              outColor = distInterp(vBorderColor, vec4(0), d - outerBorder);\n            }\n          } else {\n            if(d > innerBorder) {\n              vec4 outerColor = outerBorder == 0.0 ? vec4(0) : vBorderColor;\n              vec4 innerBorderColor = blend(vBorderColor, vColor);\n              outColor = distInterp(innerBorderColor, outerColor, d);\n            } \n            else {\n              vec4 outerColor;\n              if(innerBorder == 0.0 && outerBorder == 0.0) {\n                outerColor = vec4(0);\n              } else if(innerBorder == 0.0) {\n                outerColor = vBorderColor;\n              } else {\n                outerColor = blend(vBorderColor, vColor);\n              }\n              outColor = distInterp(vColor, outerColor, d - innerBorder);\n            }\n          }\n        }\n        else {\n          outColor = vColor;\n        }\n\n        ").concat(e.picking?"if(outColor.a == 0.0) discard;\n             else outColor = vIndex;":"","\n      }\n    "),o=Ap(t,n,i);o.aPosition=t.getAttribLocation(o,"aPosition"),o.aIndex=t.getAttribLocation(o,"aIndex"),o.aVertType=t.getAttribLocation(o,"aVertType"),o.aTransform=t.getAttribLocation(o,"aTransform"),o.aAtlasId=t.getAttribLocation(o,"aAtlasId"),o.aTex=t.getAttribLocation(o,"aTex"),o.aPointAPointB=t.getAttribLocation(o,"aPointAPointB"),o.aPointCPointD=t.getAttribLocation(o,"aPointCPointD"),o.aLineWidth=t.getAttribLocation(o,"aLineWidth"),o.aColor=t.getAttribLocation(o,"aColor"),o.aCornerRadius=t.getAttribLocation(o,"aCornerRadius"),o.aBorderColor=t.getAttribLocation(o,"aBorderColor"),o.uPanZoomMatrix=t.getUniformLocation(o,"uPanZoomMatrix"),o.uAtlasSize=t.getUniformLocation(o,"uAtlasSize"),o.uBGColor=t.getUniformLocation(o,"uBGColor"),o.uZoom=t.getUniformLocation(o,"uZoom"),o.uTextures=[];for(var a=0;a<this.batchManager.getMaxAtlasesPerBatch();a++)o.uTextures.push(t.getUniformLocation(o,"uTexture".concat(a)));return o}},{key:"_createVAO",value:function(){var e=[0,0,1,0,1,1,0,0,1,1,0,1];this.vertexCount=e.length/2;var t=this.maxInstances,n=this.gl,r=this.program,i=n.createVertexArray();return n.bindVertexArray(i),Dp(n,"vec2",r.aPosition,e),this.transformBuffer=Rp(n,t,r.aTransform),this.indexBuffer=Np(n,t,"vec4",r.aIndex),this.vertTypeBuffer=Np(n,t,"int",r.aVertType),this.atlasIdBuffer=Np(n,t,"int",r.aAtlasId),this.texBuffer=Np(n,t,"vec4",r.aTex),this.pointAPointBBuffer=Np(n,t,"vec4",r.aPointAPointB),this.pointCPointDBuffer=Np(n,t,"vec4",r.aPointCPointD),this.lineWidthBuffer=Np(n,t,"vec2",r.aLineWidth),this.colorBuffer=Np(n,t,"vec4",r.aColor),this.cornerRadiusBuffer=Np(n,t,"vec4",r.aCornerRadius),this.borderColorBuffer=Np(n,t,"vec4",r.aBorderColor),n.bindVertexArray(null),i}},{key:"buffers",get:function(){var e=this;return this._buffers||(this._buffers=Object.keys(this).filter(function(e){return Ee(e,"Buffer")}).map(function(t){return e[t]})),this._buffers}},{key:"startFrame",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zp.SCREEN;this.panZoomMatrix=e,this.renderTarget=t,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()}},{key:"startBatch",value:function(){this.instanceCount=0,this.batchManager.startBatch()}},{key:"endFrame",value:function(){this.endBatch()}},{key:"_isVisible",value:function(e,t){return!!e.visible()&&(!t||!t.isVisible||t.isVisible(e))}},{key:"drawTexture",value:function(e,t,n){var r=this.atlasManager,i=this.batchManager,o=r.getRenderTypeOpts(n);if(this._isVisible(e,o)){if(this.renderTarget.picking&&o.getTexPickingMode){var a=o.getTexPickingMode(e);if(a===eg.IGNORE)return;if(a==eg.USE_BB)return void this.drawPickingRectangle(e,t,n)}var l,c=s(r.getAtlasInfo(e,n));try{for(c.s();!(l=c.n()).done;){var u=l.value,d=u.atlas,h=u.tex1,p=u.tex2;i.canAddToCurrentBatch(d)||this.endBatch();for(var g=i.getAtlasIndexForBatch(d),m=0,v=[[h,!0],[p,!1]];m<v.length;m++){var A=f(v[m],2),b=A[0],y=A[1];if(0!=b.w){var w=this.instanceCount;this.vertTypeBuffer.getView(w)[0]=tg,Cp(t,this.indexBuffer.getView(w)),this.atlasIdBuffer.getView(w)[0]=g;var _=this.texBuffer.getView(w);_[0]=b.x,_[1]=b.y,_[2]=b.w,_[3]=b.h;var x=this.transformBuffer.getMatrixView(w);this.setTransformMatrix(e,x,o,u,y),this.instanceCount++,y||this.wrappedCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}catch(e){c.e(e)}finally{c.f()}}}},{key:"setTransformMatrix",value:function(e,t,n,r){var i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=0;if(n.shapeProps&&n.shapeProps.padding&&(o=e.pstyle(n.shapeProps.padding).pfValue),r){var a=r.bb,s=r.tex1,l=r.tex2,c=s.w/(s.w+l.w);i||(c=1-c);var u=this._getAdjustedBB(a,o,i,c);this._applyTransformMatrix(t,u,n,e)}else{var d=n.getBoundingBox(e),h=this._getAdjustedBB(d,o,!0,1);this._applyTransformMatrix(t,h,n,e)}}},{key:"_applyTransformMatrix",value:function(e,t,n,r){var i,o;Fp(e);var a=n.getRotation?n.getRotation(r):0;if(0!==a){var s=n.getRotationPoint(r);jp(e,e,[s.x,s.y]),Hp(e,e,a);var l=n.getRotationOffset(r);i=l.x+(t.xOffset||0),o=l.y+(t.yOffset||0)}else i=t.x1,o=t.y1;jp(e,e,[i,o]),Up(e,e,[t.w,t.h])}},{key:"_getAdjustedBB",value:function(e,t,n,r){var i=e.x1,o=e.y1,a=e.w,s=e.h;t&&(i-=t,o-=t,a+=2*t,s+=2*t);var l=0,c=a*r;return n&&r<1?a=c:!n&&r<1&&(i+=l=a-c,a=c),{x1:i,y1:o,w:a,h:s,xOffset:l,yOffset:e.yOffset}}},{key:"drawPickingRectangle",value:function(e,t,n){var r=this.atlasManager.getRenderTypeOpts(n),i=this.instanceCount;this.vertTypeBuffer.getView(i)[0]=og,Cp(t,this.indexBuffer.getView(i)),Sp([0,0,0],1,this.colorBuffer.getView(i));var o=this.transformBuffer.getMatrixView(i);this.setTransformMatrix(e,o,r),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}},{key:"drawNode",value:function(e,t,n){var r=this.simpleShapeOptions.get(n);if(this._isVisible(e,r)){var i=r.shapeProps,o=this._getVertTypeForShape(e,i.shape);if(void 0===o||r.isSimple&&!r.isSimple(e))this.drawTexture(e,t,n);else{var a=this.instanceCount;if(this.vertTypeBuffer.getView(a)[0]=o,o===ag||o===sg){var s=r.getBoundingBox(e),l=this._getCornerRadius(e,i.radius,s),c=this.cornerRadiusBuffer.getView(a);c[0]=l,c[1]=l,c[2]=l,c[3]=l,o===sg&&(c[0]=0,c[2]=0)}Cp(t,this.indexBuffer.getView(a)),Sp(e.pstyle(i.color).value,e.pstyle(i.opacity).value,this.colorBuffer.getView(a));var u=this.lineWidthBuffer.getView(a);if(u[0]=0,u[1]=0,i.border){var d=e.pstyle("border-width").value;if(d>0){Sp(e.pstyle("border-color").value,e.pstyle("border-opacity").value,this.borderColorBuffer.getView(a));var h=e.pstyle("border-position").value;if("inside"===h)u[0]=0,u[1]=-d;else if("outside"===h)u[0]=d,u[1]=0;else{var f=d/2;u[0]=f,u[1]=-f}}}var p=this.transformBuffer.getMatrixView(a);this.setTransformMatrix(e,p,r),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}},{key:"_getVertTypeForShape",value:function(e,t){switch(e.pstyle(t).value){case"rectangle":return og;case"ellipse":return lg;case"roundrectangle":case"round-rectangle":return ag;case"bottom-round-rectangle":return sg;default:return}}},{key:"_getCornerRadius",value:function(e,t,n){var r=n.w,i=n.h;if("auto"===e.pstyle(t).value)return Or(r,i);var o=e.pstyle(t).pfValue,a=r/2,s=i/2;return Math.min(o,s,a)}},{key:"drawEdgeArrow",value:function(e,t,n){if(e.visible()){var r,i,o,a=e._private.rscratch;if("source"===n?(r=a.arrowStartX,i=a.arrowStartY,o=a.srcArrowAngle):(r=a.arrowEndX,i=a.arrowEndY,o=a.tgtArrowAngle),!(isNaN(r)||null==r||isNaN(i)||null==i||isNaN(o)||null==o||"none"===e.pstyle(n+"-arrow-shape").value)){var s=e.pstyle(n+"-arrow-color").value,l=e.pstyle("opacity").value*e.pstyle("line-opacity").value,c=e.pstyle("width").pfValue,u=e.pstyle("arrow-scale").value,d=this.r.getArrowWidth(c,u),h=this.instanceCount,f=this.transformBuffer.getMatrixView(h);Fp(f),jp(f,f,[r,i]),Up(f,f,[d,d]),Hp(f,f,o),this.vertTypeBuffer.getView(h)[0]=ig,Cp(t,this.indexBuffer.getView(h)),Sp(s,l,this.colorBuffer.getView(h)),this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}},{key:"drawEdgeLine",value:function(e,t){if(e.visible()){var n=this._getEdgePoints(e);if(n){var r=e.pstyle("opacity").value,i=e.pstyle("line-opacity").value,o=e.pstyle("width").pfValue,a=e.pstyle("line-color").value,s=r*i;if(n.length/2+this.instanceCount>this.maxInstances&&this.endBatch(),4==n.length){var l=this.instanceCount;this.vertTypeBuffer.getView(l)[0]=ng,Cp(t,this.indexBuffer.getView(l)),Sp(a,s,this.colorBuffer.getView(l)),this.lineWidthBuffer.getView(l)[0]=o;var c=this.pointAPointBBuffer.getView(l);c[0]=n[0],c[1]=n[1],c[2]=n[2],c[3]=n[3],this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}else for(var u=0;u<n.length-2;u+=2){var d=this.instanceCount;this.vertTypeBuffer.getView(d)[0]=rg,Cp(t,this.indexBuffer.getView(d)),Sp(a,s,this.colorBuffer.getView(d)),this.lineWidthBuffer.getView(d)[0]=o;var h=n[u-2],f=n[u-1],p=n[u],g=n[u+1],m=n[u+2],v=n[u+3],A=n[u+4],b=n[u+5];0==u&&(h=2*p-m+.001,f=2*g-v+.001),u==n.length-4&&(A=2*m-p+.001,b=2*v-g+.001);var y=this.pointAPointBBuffer.getView(d);y[0]=h,y[1]=f,y[2]=p,y[3]=g;var w=this.pointCPointDBuffer.getView(d);w[0]=m,w[1]=v,w[2]=A,w[3]=b,this.instanceCount++,this.instanceCount>=this.maxInstances&&this.endBatch()}}}}},{key:"_getEdgePoints",value:function(e){var t=e._private.rscratch;if(!t.badLine&&null!=t.allpts&&!isNaN(t.allpts[0])){var n=t.allpts;if(4==n.length)return n;var r=this._getNumSegments(e);return this._getCurveSegmentPoints(n,r)}}},{key:"_getNumSegments",value:function(e){var t=15;return Math.min(Math.max(t,5),this.maxInstances)}},{key:"_getCurveSegmentPoints",value:function(e,t){if(4==e.length)return e;for(var n=Array(2*(t+1)),r=0;r<=t;r++)if(0==r)n[0]=e[0],n[1]=e[1];else if(r==t)n[2*r]=e[e.length-2],n[2*r+1]=e[e.length-1];else{var i=r/t;this._setCurvePoint(e,i,n,2*r)}return n}},{key:"_setCurvePoint",value:function(e,t,n,r){if(!(e.length<=2)){for(var i=Array(e.length-2),o=0;o<i.length;o+=2){var a=(1-t)*e[o]+t*e[o+2],s=(1-t)*e[o+1]+t*e[o+3];i[o]=a,i[o+1]=s}return this._setCurvePoint(i,t,n,r)}n[r]=e[0],n[r+1]=e[1]}},{key:"endBatch",value:function(){var e=this.gl,t=this.vao,n=this.vertexCount,r=this.instanceCount;if(0!==r){var i=this.renderTarget.picking?this.pickingProgram:this.program;e.useProgram(i),e.bindVertexArray(t);var o,a=s(this.buffers);try{for(a.s();!(o=a.n()).done;)o.value.bufferSubData(r)}catch(e){a.e(e)}finally{a.f()}for(var l=this.batchManager.getAtlases(),c=0;c<l.length;c++)l[c].bufferIfNeeded(e);for(var u=0;u<l.length;u++)e.activeTexture(e.TEXTURE0+u),e.bindTexture(e.TEXTURE_2D,l[u].texture),e.uniform1i(i.uTextures[u],u);e.uniform1f(i.uZoom,wp(this.r)),e.uniformMatrix3fv(i.uPanZoomMatrix,!1,this.panZoomMatrix),e.uniform1i(i.uAtlasSize,this.batchManager.getAtlasSize());var d=Sp(this.bgColor,1);e.uniform4fv(i.uBGColor,d),e.drawArraysInstanced(e.TRIANGLES,0,n,r),e.bindVertexArray(null),e.bindTexture(e.TEXTURE_2D,null),this.debug&&this.batchDebugInfo.push({count:r,atlasCount:l.length}),this.startBatch()}}},{key:"getDebugInfo",value:function(){var e=this.atlasManager.getDebugInfo(),t=e.reduce(function(e,t){return e+t.atlasCount},0),n=this.batchDebugInfo,r=n.reduce(function(e,t){return e+t.count},0);return{atlasInfo:e,totalAtlases:t,wrappedCount:this.wrappedCount,simpleCount:this.simpleCount,batchCount:n.length,batchInfo:n,totalInstances:r}}}])}(),ug={};function dg(e){var t=e.cy.container(),n=t&&t.style&&t.style.backgroundColor||"white";return $e(n)}function hg(e,t){var n=e._private.rscratch;return Gt(n,"labelWrapCachedLines",t)||[]}ug.initWebgl=function(e,t){var n=this,r=n.data.contexts[n.WEBGL];e.bgColor=dg(n),e.webglTexSize=Math.min(e.webglTexSize,r.getParameter(r.MAX_TEXTURE_SIZE)),e.webglTexRows=Math.min(e.webglTexRows,54),e.webglTexRowsNodes=Math.min(e.webglTexRowsNodes,54),e.webglBatchSize=Math.min(e.webglBatchSize,16384),e.webglTexPerBatch=Math.min(e.webglTexPerBatch,r.getParameter(r.MAX_TEXTURE_IMAGE_UNITS)),n.webglDebug=e.webglDebug,n.webglDebugShowAtlases=e.webglDebugShowAtlases,n.pickingFrameBuffer=Lp(r),n.pickingFrameBuffer.needsDraw=!0,n.drawing=new cg(n,r,e);var i=function(e){return function(t){return n.getTextAngle(t,e)}},o=function(e){return function(t){var n=t.pstyle(e);return n&&n.value}},a=function(e){return function(t){return t.pstyle("".concat(e,"-opacity")).value>0}},s=function(e){return"yes"===e.pstyle("text-events").strValue?eg.USE_BB:eg.IGNORE},l=function(e){var t=e.position(),n=t.x,r=t.y,i=e.outerWidth(),o=e.outerHeight();return{w:i,h:o,x1:n-i/2,y1:r-o/2}};n.drawing.addAtlasCollection("node",{texRows:e.webglTexRowsNodes}),n.drawing.addAtlasCollection("label",{texRows:e.webglTexRows}),n.drawing.addTextureAtlasRenderType("node-body",{collection:"node",getKey:t.getStyleKey,getBoundingBox:t.getElementBox,drawElement:t.drawElement}),n.drawing.addSimpleShapeRenderType("node-body",{getBoundingBox:l,isSimple:xp,shapeProps:{shape:"shape",color:"background-color",opacity:"background-opacity",radius:"corner-radius",border:!0}}),n.drawing.addSimpleShapeRenderType("node-overlay",{getBoundingBox:l,isVisible:a("overlay"),shapeProps:{shape:"overlay-shape",color:"overlay-color",opacity:"overlay-opacity",padding:"overlay-padding",radius:"overlay-corner-radius"}}),n.drawing.addSimpleShapeRenderType("node-underlay",{getBoundingBox:l,isVisible:a("underlay"),shapeProps:{shape:"underlay-shape",color:"underlay-color",opacity:"underlay-opacity",padding:"underlay-padding",radius:"underlay-corner-radius"}}),n.drawing.addTextureAtlasRenderType("label",{collection:"label",getTexPickingMode:s,getKey:fg(t.getLabelKey,null),getBoundingBox:pg(t.getLabelBox,null),drawClipped:!0,drawElement:t.drawLabel,getRotation:i(null),getRotationPoint:t.getLabelRotationPoint,getRotationOffset:t.getLabelRotationOffset,isVisible:o("label")}),n.drawing.addTextureAtlasRenderType("edge-source-label",{collection:"label",getTexPickingMode:s,getKey:fg(t.getSourceLabelKey,"source"),getBoundingBox:pg(t.getSourceLabelBox,"source"),drawClipped:!0,drawElement:t.drawSourceLabel,getRotation:i("source"),getRotationPoint:t.getSourceLabelRotationPoint,getRotationOffset:t.getSourceLabelRotationOffset,isVisible:o("source-label")}),n.drawing.addTextureAtlasRenderType("edge-target-label",{collection:"label",getTexPickingMode:s,getKey:fg(t.getTargetLabelKey,"target"),getBoundingBox:pg(t.getTargetLabelBox,"target"),drawClipped:!0,drawElement:t.drawTargetLabel,getRotation:i("target"),getRotationPoint:t.getTargetLabelRotationPoint,getRotationOffset:t.getTargetLabelRotationOffset,isVisible:o("target-label")});var c=at(function(){n.data.gc=!0},1e4);n.onUpdateEleCalcs(function(e,t){var r=!1;t&&t.length>0&&(r|=n.drawing.invalidate(t)),r&&c()}),gg(n)};var fg=function(e,t){return function(n){var r=e(n),i=hg(n,t);return i.length>1?i.map(function(e,t){return"".concat(r,"_").concat(t)}):r}},pg=function(e,t){return function(n,r){var i=e(n);if("string"==typeof r){var o=r.indexOf("_");if(o>0){var a=Number(r.substring(o+1)),s=hg(n,t),l=i.h/s.length,c=l*a,u=i.y1+c;return{x1:i.x1,w:i.w,y1:u,h:l,yOffset:c}}}return i}};function gg(e){var t=e.render;e.render=function(n){n=n||{};var r=e.cy;e.webgl&&(r.zoom()>uf?(mg(e),t.call(e,n)):(vg(e),Cg(e,n,Zp.SCREEN)))};var n=e.matchCanvasSize;e.matchCanvasSize=function(t){n.call(e,t),e.pickingFrameBuffer.setFramebufferAttachmentSizes(e.canvasWidth,e.canvasHeight),e.pickingFrameBuffer.needsDraw=!0},e.findNearestElements=function(t,n,r,i){return Eg(e,t,n)};var r=e.invalidateCachedZSortedEles;e.invalidateCachedZSortedEles=function(){r.call(e),e.pickingFrameBuffer.needsDraw=!0};var i=e.notify;e.notify=function(t,n){i.call(e,t,n),"viewport"===t||"bounds"===t?e.pickingFrameBuffer.needsDraw=!0:"background"===t&&e.drawing.invalidate(n,{type:"node-body"})}}function mg(e){var t=e.data.contexts[e.WEBGL];t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}function vg(e){var t=function(t){t.save(),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,e.canvasWidth,e.canvasHeight),t.restore()};t(e.data.contexts[e.NODE]),t(e.data.contexts[e.DRAG])}function Ag(e){var t=e.canvasWidth,n=e.canvasHeight,r=yp(e),i=r.pan,o=r.zoom,a=Pp();jp(a,a,[i.x,i.y]),Up(a,a,[o,o]);var s=Pp();Qp(s,t,n);var l=Pp();return $p(l,s,a),l}function bg(e,t){var n=e.canvasWidth,r=e.canvasHeight,i=yp(e),o=i.pan,a=i.zoom;t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,n,r),t.translate(o.x,o.y),t.scale(a,a)}function yg(e,t){e.drawSelectionRectangle(t,function(t){return bg(e,t)})}function wg(e){var t=e.data.contexts[e.NODE];t.save(),bg(e,t),t.strokeStyle="rgba(0, 0, 0, 0.3)",t.beginPath(),t.moveTo(-1e3,0),t.lineTo(1e3,0),t.stroke(),t.beginPath(),t.moveTo(0,-1e3),t.lineTo(0,1e3),t.stroke(),t.restore()}function _g(e){var t=function(t,n,r){for(var i=t.atlasManager.getAtlasCollection(n),o=e.data.contexts[e.NODE],a=i.atlases,s=0;s<a.length;s++){var l=a[s].canvas;if(l){var c=l.width,u=l.height,d=c*s,h=l.height*r,f=.4;o.save(),o.scale(f,f),o.drawImage(l,d,h),o.strokeStyle="black",o.rect(d,h,c,u),o.stroke(),o.restore()}}},n=0;t(e.drawing,"node",n++),t(e.drawing,"label",n++)}function xg(e,t,n,r,i){var o,a,s,l,c=yp(e),u=f(_p(e,c.pan,c.zoom,t,n),2),d=6;if(o=u[0]-d/2,a=u[1]-d/2,l=d,0===(s=d)||0===l)return[];var h=e.data.contexts[e.WEBGL];h.bindFramebuffer(h.FRAMEBUFFER,e.pickingFrameBuffer),e.pickingFrameBuffer.needsDraw&&(h.viewport(0,0,h.canvas.width,h.canvas.height),Cg(e,null,Zp.PICKING),e.pickingFrameBuffer.needsDraw=!1);var p=s*l,g=new Uint8Array(4*p);h.readPixels(o,a,s,l,h.RGBA,h.UNSIGNED_BYTE,g),h.bindFramebuffer(h.FRAMEBUFFER,null);for(var m=new Set,v=0;v<p;v++){var A=Tp(g.slice(4*v,4*v+4))-1;A>=0&&m.add(A)}return m}function Eg(e,t,n){var r,i,o,a=xg(e,t,n),l=e.getCachedZSortedEles(),c=s(a);try{for(c.s();!(o=c.n()).done;){var u=l[o.value];if(!r&&u.isNode()&&(r=u),!i&&u.isEdge()&&(i=u),r&&i)break}}catch(e){c.e(e)}finally{c.f()}return[r,i].filter(Boolean)}function Sg(e,t,n){var r=e.drawing;t+=1,n.isNode()?(r.drawNode(n,t,"node-underlay"),r.drawNode(n,t,"node-body"),r.drawTexture(n,t,"label"),r.drawNode(n,t,"node-overlay")):(r.drawEdgeLine(n,t),r.drawEdgeArrow(n,t,"source"),r.drawEdgeArrow(n,t,"target"),r.drawTexture(n,t,"label"),r.drawTexture(n,t,"edge-source-label"),r.drawTexture(n,t,"edge-target-label"))}function Cg(e,t,n){var r;e.webglDebug&&(r=performance.now());var i=e.drawing,o=0;if(n.screen&&e.data.canvasNeedsRedraw[e.SELECT_BOX]&&yg(e,t),e.data.canvasNeedsRedraw[e.NODE]||n.picking){var a=e.data.contexts[e.WEBGL];n.screen?(a.clearColor(0,0,0,0),a.enable(a.BLEND),a.blendFunc(a.ONE,a.ONE_MINUS_SRC_ALPHA)):a.disable(a.BLEND),a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT),a.viewport(0,0,a.canvas.width,a.canvas.height);var l=Ag(e),c=e.getCachedZSortedEles();if(o=c.length,i.startFrame(l,n),n.screen){for(var u=0;u<c.nondrag.length;u++)Sg(e,u,c.nondrag[u]);for(var d=0;d<c.drag.length;d++)Sg(e,d,c.drag[d])}else if(n.picking)for(var h=0;h<c.length;h++)Sg(e,h,c[h]);i.endFrame(),n.screen&&e.webglDebugShowAtlases&&(wg(e),_g(e)),e.data.canvasNeedsRedraw[e.NODE]=!1,e.data.canvasNeedsRedraw[e.DRAG]=!1}if(e.webglDebug){var f=performance.now(),p=!1,g=Math.ceil(f-r),m=i.getDebugInfo(),v=["".concat(o," elements"),"".concat(m.totalInstances," instances"),"".concat(m.batchCount," batches"),"".concat(m.totalAtlases," atlases"),"".concat(m.wrappedCount," wrapped textures"),"".concat(m.simpleCount," simple shapes")].join(", ");if(p)"WebGL (".concat(n.name,") - time ").concat(g,"ms, ").concat(v);else{"WebGL (".concat(n.name,") - frame time ").concat(g,"ms"),"  ".concat(v);var A,b=s(m.atlasInfo);try{for(b.s();!(A=b.n()).done;){var y=A.value;"  ".concat(y.type,": ").concat(y.keyCount," keys, ").concat(y.atlasCount," atlases")}}catch(e){b.e(e)}finally{b.f()}}}e.data.gc&&(e.data.gc=!1,i.gc())}for(var Tg={drawPolygonPath:function(e,t,n,r,i,o){var a=r/2,s=i/2;e.beginPath&&e.beginPath(),e.moveTo(t+a*o[0],n+s*o[1]);for(var l=1;l<o.length/2;l++)e.lineTo(t+a*o[2*l],n+s*o[2*l+1]);e.closePath()},drawRoundPolygonPath:function(e,t,n,r,i,o,a){a.forEach(function(t){return Oh(e,t)}),e.closePath()},drawRoundRectanglePath:function(e,t,n,r,i,o){var a=r/2,s=i/2,l="auto"===o?Or(r,i):Math.min(o,s,a);e.beginPath&&e.beginPath(),e.moveTo(t,n-s),e.arcTo(t+a,n-s,t+a,n,l),e.arcTo(t+a,n+s,t,n+s,l),e.arcTo(t-a,n+s,t-a,n,l),e.arcTo(t-a,n-s,t,n-s,l),e.lineTo(t,n-s),e.closePath()},drawBottomRoundRectanglePath:function(e,t,n,r,i,o){var a=r/2,s=i/2,l="auto"===o?Or(r,i):o;e.beginPath&&e.beginPath(),e.moveTo(t,n-s),e.lineTo(t+a,n-s),e.lineTo(t+a,n),e.arcTo(t+a,n+s,t,n+s,l),e.arcTo(t-a,n+s,t-a,n,l),e.lineTo(t-a,n-s),e.lineTo(t,n-s),e.closePath()},drawCutRectanglePath:function(e,t,n,r,i,o,a){var s=r/2,l=i/2,c="auto"===a?Ir():a;e.beginPath&&e.beginPath(),e.moveTo(t-s+c,n-l),e.lineTo(t+s-c,n-l),e.lineTo(t+s,n-l+c),e.lineTo(t+s,n+l-c),e.lineTo(t+s-c,n+l),e.lineTo(t-s+c,n+l),e.lineTo(t-s,n+l-c),e.lineTo(t-s,n-l+c),e.closePath()},drawBarrelPath:function(e,t,n,r,i){var o=r/2,a=i/2,s=t-o,l=t+o,c=n-a,u=n+a,d=Nr(r,i),h=d.widthOffset,f=d.heightOffset,p=d.ctrlPtOffsetPct*h;e.beginPath&&e.beginPath(),e.moveTo(s,c+f),e.lineTo(s,u-f),e.quadraticCurveTo(s+p,u,s+h,u),e.lineTo(l-h,u),e.quadraticCurveTo(l-p,u,l,u-f),e.lineTo(l,c+f),e.quadraticCurveTo(l-p,c,l-h,c),e.lineTo(s+h,c),e.quadraticCurveTo(s+p,c,s,c+f),e.closePath()}},kg=Math.sin(0),Og=Math.cos(0),Mg={},Ig={},Dg=Math.PI/40,Ng=0*Math.PI;Ng<2*Math.PI;Ng+=Dg)Mg[Ng]=Math.sin(Ng),Ig[Ng]=Math.cos(Ng);Tg.drawEllipsePath=function(e,t,n,r,i){if(e.beginPath&&e.beginPath(),e.ellipse)e.ellipse(t,n,r/2,i/2,0,0,2*Math.PI);else for(var o,a,s=r/2,l=i/2,c=0*Math.PI;c<2*Math.PI;c+=Dg)o=t-s*Mg[c]*kg+s*Ig[c]*Og,a=n+l*Ig[c]*kg+l*Mg[c]*Og,0===c?e.moveTo(o,a):e.lineTo(o,a);e.closePath()};var Rg={};function Lg(e,t){for(var n=atob(e),r=new ArrayBuffer(n.length),i=new Uint8Array(r),o=0;o<n.length;o++)i[o]=n.charCodeAt(o);return new Blob([r],{type:t})}function Bg(e){var t=e.indexOf(",");return e.substr(t+1)}function Pg(e,t,n){var r=function(){return t.toDataURL(n,e.quality)};switch(e.output){case"blob-promise":return new lo(function(r,i){try{t.toBlob(function(e){null!=e?r(e):i(new Error("`canvas.toBlob()` sent a null value in its callback"))},n,e.quality)}catch(e){i(e)}});case"blob":return Lg(Bg(r()),n);case"base64":return Bg(r());default:return r()}}Rg.createBuffer=function(e,t){var n=document.createElement("canvas");return n.width=e,n.height=t,[n,n.getContext("2d")]},Rg.bufferCanvasImage=function(e){var t=this.cy,n=t.mutableElements().boundingBox(),r=this.findContainerClientCoords(),i=e.full?Math.ceil(n.w):r[2],o=e.full?Math.ceil(n.h):r[3],a=oe(e.maxWidth)||oe(e.maxHeight),s=this.getPixelRatio(),l=1;if(void 0!==e.scale)i*=e.scale,o*=e.scale,l=e.scale;else if(a){var c=1/0,u=1/0;oe(e.maxWidth)&&(c=l*e.maxWidth/i),oe(e.maxHeight)&&(u=l*e.maxHeight/o),i*=l=Math.min(c,u),o*=l}a||(i*=s,o*=s,l*=s);var d=document.createElement("canvas");d.width=i,d.height=o,d.style.width=i+"px",d.style.height=o+"px";var h=d.getContext("2d");if(i>0&&o>0){h.clearRect(0,0,i,o),h.globalCompositeOperation="source-over";var f=this.getCachedZSortedEles();if(e.full)h.translate(-n.x1*l,-n.y1*l),h.scale(l,l),this.drawElements(h,f),h.scale(1/l,1/l),h.translate(n.x1*l,n.y1*l);else{var p=t.pan(),g={x:p.x*l,y:p.y*l};l*=t.zoom(),h.translate(g.x,g.y),h.scale(l,l),this.drawElements(h,f),h.scale(1/l,1/l),h.translate(-g.x,-g.y)}e.bg&&(h.globalCompositeOperation="destination-over",h.fillStyle=e.bg,h.rect(0,0,i,o),h.fill())}return d},Rg.png=function(e){return Pg(e,this.bufferCanvasImage(e),"image/png")},Rg.jpg=function(e){return Pg(e,this.bufferCanvasImage(e),"image/jpeg")};var Fg={nodeShapeImpl:function(e,t,n,r,i,o,a,s){switch(e){case"ellipse":return this.drawEllipsePath(t,n,r,i,o);case"polygon":return this.drawPolygonPath(t,n,r,i,o,a);case"round-polygon":return this.drawRoundPolygonPath(t,n,r,i,o,a,s);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(t,n,r,i,o,s);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(t,n,r,i,o,a,s);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(t,n,r,i,o,s);case"barrel":return this.drawBarrelPath(t,n,r,i,o)}}},$g=Hg,jg=Hg.prototype;function Hg(e){var t=this,n=t.cy.window().document;e.webgl&&(jg.CANVAS_LAYERS=t.CANVAS_LAYERS=4),t.data={canvases:new Array(jg.CANVAS_LAYERS),contexts:new Array(jg.CANVAS_LAYERS),canvasNeedsRedraw:new Array(jg.CANVAS_LAYERS),bufferCanvases:new Array(jg.BUFFER_COUNT),bufferContexts:new Array(jg.CANVAS_LAYERS)};var r="-webkit-tap-highlight-color",i="rgba(0,0,0,0)";t.data.canvasContainer=n.createElement("div");var o=t.data.canvasContainer.style;t.data.canvasContainer.style[r]=i,o.position="relative",o.zIndex="0",o.overflow="hidden";var a=e.cy.container();a.appendChild(t.data.canvasContainer),a.style[r]=i;var s={"-webkit-user-select":"none","-moz-user-select":"-moz-none","user-select":"none","-webkit-tap-highlight-color":"rgba(0,0,0,0)","outline-style":"none"};Ae()&&(s["-ms-touch-action"]="none",s["touch-action"]="none");for(var l=0;l<jg.CANVAS_LAYERS;l++){var c=t.data.canvases[l]=n.createElement("canvas"),u=jg.CANVAS_TYPES[l];t.data.contexts[l]=c.getContext(u),t.data.contexts[l]||Nt("Could not create canvas of type "+u),Object.keys(s).forEach(function(e){c.style[e]=s[e]}),c.style.position="absolute",c.setAttribute("data-id","layer"+l),c.style.zIndex=String(jg.CANVAS_LAYERS-l),t.data.canvasContainer.appendChild(c),t.data.canvasNeedsRedraw[l]=!1}for(t.data.topCanvas=t.data.canvases[0],t.data.canvases[jg.NODE].setAttribute("data-id","layer"+jg.NODE+"-node"),t.data.canvases[jg.SELECT_BOX].setAttribute("data-id","layer"+jg.SELECT_BOX+"-selectbox"),t.data.canvases[jg.DRAG].setAttribute("data-id","layer"+jg.DRAG+"-drag"),t.data.canvases[jg.WEBGL]&&t.data.canvases[jg.WEBGL].setAttribute("data-id","layer"+jg.WEBGL+"-webgl"),l=0;l<jg.BUFFER_COUNT;l++)t.data.bufferCanvases[l]=n.createElement("canvas"),t.data.bufferContexts[l]=t.data.bufferCanvases[l].getContext("2d"),t.data.bufferCanvases[l].style.position="absolute",t.data.bufferCanvases[l].setAttribute("data-id","buffer"+l),t.data.bufferCanvases[l].style.zIndex=String(-l-1),t.data.bufferCanvases[l].style.visibility="hidden";t.pathsEnabled=!0;var d=zn(),h=function(e){return{x:(e.x1+e.x2)/2,y:(e.y1+e.y2)/2}},f=function(e){return{x:-e.w/2,y:-e.h/2}},p=function(e){var t=e[0]._private;return!(t.oldBackgroundTimestamp===t.backgroundTimestamp)},g=function(e){return e[0]._private.nodeKey},m=function(e){return e[0]._private.labelStyleKey},v=function(e){return e[0]._private.sourceLabelStyleKey},A=function(e){return e[0]._private.targetLabelStyleKey},b=function(e,n,r,i,o){return t.drawElement(e,n,r,!1,!1,o)},y=function(e,n,r,i,o){return t.drawElementText(e,n,r,i,"main",o)},w=function(e,n,r,i,o){return t.drawElementText(e,n,r,i,"source",o)},_=function(e,n,r,i,o){return t.drawElementText(e,n,r,i,"target",o)},x=function(e){return e.boundingBox(),e[0]._private.bodyBounds},E=function(e){return e.boundingBox(),e[0]._private.labelBounds.main||d},S=function(e){return e.boundingBox(),e[0]._private.labelBounds.source||d},C=function(e){return e.boundingBox(),e[0]._private.labelBounds.target||d},T=function(e,t){return t},k=function(e){return h(x(e))},O=function(e,t,n){var r=e?e+"-":"";return{x:t.x+n.pstyle(r+"text-margin-x").pfValue,y:t.y+n.pstyle(r+"text-margin-y").pfValue}},M=function(e,t,n){var r=e[0]._private.rscratch;return{x:r[t],y:r[n]}},I=function(e){return O("",M(e,"labelX","labelY"),e)},D=function(e){return O("source",M(e,"sourceLabelX","sourceLabelY"),e)},N=function(e){return O("target",M(e,"targetLabelX","targetLabelY"),e)},R=function(e){return f(x(e))},L=function(e){return f(S(e))},B=function(e){return f(C(e))},P=function(e){var t=E(e),n=f(E(e));if(e.isNode()){switch(e.pstyle("text-halign").value){case"left":n.x=-t.w-(t.leftPad||0);break;case"right":n.x=-(t.rightPad||0)}switch(e.pstyle("text-valign").value){case"top":n.y=-t.h-(t.topPad||0);break;case"bottom":n.y=-(t.botPad||0)}}return n},F=t.data.eleTxrCache=new Cf(t,{getKey:g,doesEleInvalidateKey:p,drawElement:b,getBoundingBox:x,getRotationPoint:k,getRotationOffset:R,allowEdgeTxrCaching:!1,allowParentTxrCaching:!1}),$=t.data.lblTxrCache=new Cf(t,{getKey:m,drawElement:y,getBoundingBox:E,getRotationPoint:I,getRotationOffset:P,isVisible:T}),j=t.data.slbTxrCache=new Cf(t,{getKey:v,drawElement:w,getBoundingBox:S,getRotationPoint:D,getRotationOffset:L,isVisible:T}),H=t.data.tlbTxrCache=new Cf(t,{getKey:A,drawElement:_,getBoundingBox:C,getRotationPoint:N,getRotationOffset:B,isVisible:T}),U=t.data.lyrTxrCache=new Qf(t);t.onUpdateEleCalcs(function(e,t){F.invalidateElements(t),$.invalidateElements(t),j.invalidateElements(t),H.invalidateElements(t),U.invalidateElements(t);for(var n=0;n<t.length;n++){var r=t[n]._private;r.oldBackgroundTimestamp=r.backgroundTimestamp}});var Q=function(e){for(var t=0;t<e.length;t++)U.enqueueElementRefinement(e[t].ele)};F.onDequeue(Q),$.onDequeue(Q),j.onDequeue(Q),H.onDequeue(Q),e.webgl&&t.initWebgl(e,{getStyleKey:g,getLabelKey:m,getSourceLabelKey:v,getTargetLabelKey:A,drawElement:b,drawLabel:y,drawSourceLabel:w,drawTargetLabel:_,getElementBox:x,getLabelBox:E,getSourceLabelBox:S,getTargetLabelBox:C,getElementRotationPoint:k,getElementRotationOffset:R,getLabelRotationPoint:I,getSourceLabelRotationPoint:D,getTargetLabelRotationPoint:N,getLabelRotationOffset:P,getSourceLabelRotationOffset:L,getTargetLabelRotationOffset:B})}jg.CANVAS_LAYERS=3,jg.SELECT_BOX=0,jg.DRAG=1,jg.NODE=2,jg.WEBGL=3,jg.CANVAS_TYPES=["2d","2d","2d","webgl2"],jg.BUFFER_COUNT=3,jg.TEXTURE_BUFFER=0,jg.MOTIONBLUR_BUFFER_NODE=1,jg.MOTIONBLUR_BUFFER_DRAG=2,jg.redrawHint=function(e,t){var n=this;switch(e){case"eles":n.data.canvasNeedsRedraw[jg.NODE]=t;break;case"drag":n.data.canvasNeedsRedraw[jg.DRAG]=t;break;case"select":n.data.canvasNeedsRedraw[jg.SELECT_BOX]=t;break;case"gc":n.data.gc=!0}};var Ug="undefined"!=typeof Path2D;jg.path2dEnabled=function(e){if(void 0===e)return this.pathsEnabled;this.pathsEnabled=!!e},jg.usePaths=function(){return Ug&&this.pathsEnabled},jg.setImgSmoothing=function(e,t){null!=e.imageSmoothingEnabled?e.imageSmoothingEnabled=t:(e.webkitImageSmoothingEnabled=t,e.mozImageSmoothingEnabled=t,e.msImageSmoothingEnabled=t)},jg.getImgSmoothing=function(e){return null!=e.imageSmoothingEnabled?e.imageSmoothingEnabled:e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled},jg.makeOffscreenCanvas=function(e,t){var n;return"undefined"!==("undefined"==typeof OffscreenCanvas?"undefined":v(OffscreenCanvas))?n=new OffscreenCanvas(e,t):((n=this.cy.window().document.createElement("canvas")).width=e,n.height=t),n},[Kf,ep,sp,cp,up,hp,gp,ug,Tg,Rg,Fg].forEach(function(e){Re(jg,e)});var Qg=[{name:"null",impl:th},{name:"base",impl:ef},{name:"canvas",impl:$g}],zg=[{type:"layout",extensions:eh},{type:"renderer",extensions:Qg}],Wg={},Gg={};function Vg(e,t,n){var r=n,i=function(n){Lt("Can not register `"+t+"` for `"+e+"` since `"+n+"` already exists in the prototype and can not be overridden")};if("core"===e){if(hd.prototype[t])return i(t);hd.prototype[t]=n}else if("collection"===e){if(Cu.prototype[t])return i(t);Cu.prototype[t]=n}else if("layout"===e){for(var o=function(e){this.options=e,n.call(this,e),re(this._private)||(this._private={}),this._private.cy=e.cy,this._private.listeners=[],this.createEmitter()},a=o.prototype=Object.create(n.prototype),s=[],l=0;l<s.length;l++){var c=s[l];a[c]=a[c]||function(){return this}}a.start&&!a.run?a.run=function(){return this.start(),this}:!a.start&&a.run&&(a.start=function(){return this.run(),this});var u=n.prototype.stop;a.stop=function(){var e=this.options;if(e&&e.animate){var t=this.animations;if(t)for(var n=0;n<t.length;n++)t[n].stop()}return u?u.call(this):this.emit("layoutstop"),this},a.destroy||(a.destroy=function(){return this}),a.cy=function(){return this._private.cy};var d=function(e){return e._private.cy},h={addEventFields:function(e,t){t.layout=e,t.cy=d(e),t.target=e},bubble:function(){return!0},parent:function(e){return d(e)}};Re(a,{createEmitter:function(){return this._private.emitter=new Qc(h,this),this},emitter:function(){return this._private.emitter},on:function(e,t){return this.emitter().on(e,t),this},one:function(e,t){return this.emitter().one(e,t),this},once:function(e,t){return this.emitter().one(e,t),this},removeListener:function(e,t){return this.emitter().removeListener(e,t),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},emit:function(e,t){return this.emitter().emit(e,t),this}}),dl.eventAliasesOn(a),r=o}else if("renderer"===e&&"null"!==t&&"base"!==t){var f=Kg("renderer","base"),p=f.prototype,g=n,m=n.prototype,v=function(){f.apply(this,arguments),g.apply(this,arguments)},A=v.prototype;for(var b in p){var y=p[b];if(null!=m[b])return i(b);A[b]=y}for(var w in m)A[w]=m[w];p.clientFunctions.forEach(function(e){A[e]=A[e]||function(){Nt("Renderer does not implement `renderer."+e+"()` on its prototype")}}),r=v}else if("__proto__"===e||"constructor"===e||"prototype"===e)return Nt(e+" is an illegal type to be registered, possibly lead to prototype pollutions");return He({map:Wg,keys:[e,t],value:r})}function Kg(e,t){return Ue({map:Wg,keys:[e,t]})}function Yg(e,t,n,r,i){return He({map:Gg,keys:[e,t,n,r],value:i})}function qg(e,t,n,r){return Ue({map:Gg,keys:[e,t,n,r]})}var Xg=function(){return 2===arguments.length?Kg.apply(null,arguments):3===arguments.length?Vg.apply(null,arguments):4===arguments.length?qg.apply(null,arguments):5===arguments.length?Yg.apply(null,arguments):void Nt("Invalid extension access syntax")};hd.prototype.extension=Xg,zg.forEach(function(e){e.extensions.forEach(function(t){Vg(e.type,t.name,t.impl)})});var Jg=function(){if(!(this instanceof Jg))return new Jg;this.length=0},Zg=Jg.prototype;Zg.instanceString=function(){return"stylesheet"},Zg.selector=function(e){return this[this.length++]={selector:e,properties:[]},this},Zg.css=function(e,t){var n=this.length-1;if(ee(e))this[n].properties.push({name:e,value:t});else if(re(e))for(var r=e,i=Object.keys(r),o=0;o<i.length;o++){var a=i[o],s=r[a];if(null!=s){var l=ad.properties[a]||ad.properties[we(a)];if(null!=l){var c=l.name,u=s;this[n].properties.push({name:c,value:u})}}}return this},Zg.style=Zg.css,Zg.generateStyle=function(e){var t=new ad(e);return this.appendToStyle(t)},Zg.appendToStyle=function(e){for(var t=0;t<this.length;t++){var n=this[t],r=n.selector,i=n.properties;e.selector(r);for(var o=0;o<i.length;o++){var a=i[o];e.css(a.name,a.value)}}return e};var em="3.32.1",tm=function(e){return void 0===e&&(e={}),re(e)?new hd(e):ee(e)?Xg.apply(Xg,arguments):void 0};return tm.use=function(e){var t=Array.prototype.slice.call(arguments,1);return t.unshift(tm),e.apply(null,t),this},tm.warnings=function(e){return Rt(e)},tm.version=em,tm.stylesheet=tm.Stylesheet=Jg,tm}()),L_e.exports),P_e=i(B_e),F_e={exports:{}},$_e={exports:{}},j_e={exports:{}};function H_e(){return I_e?j_e.exports:(I_e=1,e=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=26)}([function(e,t,n){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,e.exports=r},function(e,t,n){var r=n(2),i=n(8),o=n(9);function a(e,t,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=e,this.target=t}for(var s in a.prototype=Object.create(r.prototype),r)a[s]=r[s];a.prototype.getSource=function(){return this.source},a.prototype.getTarget=function(){return this.target},a.prototype.isInterGraph=function(){return this.isInterGraph},a.prototype.getLength=function(){return this.length},a.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},a.prototype.getBendpoints=function(){return this.bendpoints},a.prototype.getLca=function(){return this.lca},a.prototype.getSourceInLca=function(){return this.sourceInLca},a.prototype.getTargetInLca=function(){return this.targetInLca},a.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw"Node is not incident with this edge"},a.prototype.getOtherEndInGraph=function(e,t){for(var n=this.getOtherEnd(e),r=t.getGraphManager().getRoot();;){if(n.getOwner()==t)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},a.prototype.updateLength=function(){var e=new Array(4);this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},a.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=o.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=a},function(e,t,n){e.exports=function(e){this.vGraphObject=e}},function(e,t,n){var r=n(2),i=n(10),o=n(13),a=n(0),s=n(16),l=n(4);function c(e,t,n,a){null==n&&null==a&&(a=t),r.call(this,a),null!=e.graphManager&&(e=e.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=a,this.edges=[],this.graphManager=e,this.rect=null!=n&&null!=t?new o(t.x,t.y,n.width,n.height):new o}for(var u in c.prototype=Object.create(r.prototype),r)c[u]=r[u];c.prototype.getEdges=function(){return this.edges},c.prototype.getChild=function(){return this.child},c.prototype.getOwner=function(){return this.owner},c.prototype.getWidth=function(){return this.rect.width},c.prototype.setWidth=function(e){this.rect.width=e},c.prototype.getHeight=function(){return this.rect.height},c.prototype.setHeight=function(e){this.rect.height=e},c.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},c.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},c.prototype.getCenter=function(){return new l(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},c.prototype.getLocation=function(){return new l(this.rect.x,this.rect.y)},c.prototype.getRect=function(){return this.rect},c.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},c.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},c.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},c.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},c.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},c.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},c.prototype.getEdgeListToNode=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.target==e){if(r.source!=n)throw"Incorrect edge source!";t.push(r)}}),t},c.prototype.getEdgesBetween=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.source!=n&&r.target!=n)throw"Incorrect edge source and/or target";r.target!=e&&r.source!=e||t.push(r)}),t},c.prototype.getNeighborsList=function(){var e=new Set,t=this;return t.edges.forEach(function(n){if(n.source==t)e.add(n.target);else{if(n.target!=t)throw"Incorrect incidency!";e.add(n.source)}}),e},c.prototype.withChildren=function(){var e=new Set;if(e.add(this),null!=this.child)for(var t=this.child.getNodes(),n=0;n<t.length;n++)t[n].withChildren().forEach(function(t){e.add(t)});return e},c.prototype.getNoOfChildren=function(){var e=0;if(null==this.child)e=1;else for(var t=this.child.getNodes(),n=0;n<t.length;n++)e+=t[n].getNoOfChildren();return 0==e&&(e=1),e},c.prototype.getEstimatedSize=function(){if(this.estimatedSize==i.MIN_VALUE)throw"assert failed";return this.estimatedSize},c.prototype.calcEstimatedSize=function(){return null==this.child?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},c.prototype.scatter=function(){var e,t,n=-a.INITIAL_WORLD_BOUNDARY,r=a.INITIAL_WORLD_BOUNDARY;e=a.WORLD_CENTER_X+s.nextDouble()*(r-n)+n;var i=-a.INITIAL_WORLD_BOUNDARY,o=a.INITIAL_WORLD_BOUNDARY;t=a.WORLD_CENTER_Y+s.nextDouble()*(o-i)+i,this.rect.x=e,this.rect.y=t},c.prototype.updateBounds=function(){if(null==this.getChild())throw"assert failed";if(0!=this.getChild().getNodes().length){var e=this.getChild();if(e.updateBounds(!0),this.rect.x=e.getLeft(),this.rect.y=e.getTop(),this.setWidth(e.getRight()-e.getLeft()),this.setHeight(e.getBottom()-e.getTop()),a.NODE_DIMENSIONS_INCLUDE_LABELS){var t=e.getRight()-e.getLeft(),n=e.getBottom()-e.getTop();this.labelWidth>t&&(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)),this.labelHeight>n&&("center"==this.labelPos?this.rect.y-=(this.labelHeight-n)/2:"top"==this.labelPos&&(this.rect.y-=this.labelHeight-n),this.setHeight(this.labelHeight))}}},c.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},c.prototype.transform=function(e){var t=this.rect.x;t>a.WORLD_BOUNDARY?t=a.WORLD_BOUNDARY:t<-a.WORLD_BOUNDARY&&(t=-a.WORLD_BOUNDARY);var n=this.rect.y;n>a.WORLD_BOUNDARY?n=a.WORLD_BOUNDARY:n<-a.WORLD_BOUNDARY&&(n=-a.WORLD_BOUNDARY);var r=new l(t,n),i=e.inverseTransformPoint(r);this.setLocation(i.x,i.y)},c.prototype.getLeft=function(){return this.rect.x},c.prototype.getRight=function(){return this.rect.x+this.rect.width},c.prototype.getTop=function(){return this.rect.y},c.prototype.getBottom=function(){return this.rect.y+this.rect.height},c.prototype.getParent=function(){return null==this.owner?null:this.owner.getParent()},e.exports=c},function(e,t,n){function r(e,t){null==e&&null==t?(this.x=0,this.y=0):(this.x=e,this.y=t)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(e){this.x=e},r.prototype.setY=function(e){this.y=e},r.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=r},function(e,t,n){var r=n(2),i=n(10),o=n(0),a=n(6),s=n(3),l=n(1),c=n(13),u=n(12),d=n(11);function h(e,t,n){r.call(this,n),this.estimatedSize=i.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,null!=t&&t instanceof a?this.graphManager=t:null!=t&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(var f in h.prototype=Object.create(r.prototype),r)h[f]=r[f];h.prototype.getNodes=function(){return this.nodes},h.prototype.getEdges=function(){return this.edges},h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getParent=function(){return this.parent},h.prototype.getLeft=function(){return this.left},h.prototype.getRight=function(){return this.right},h.prototype.getTop=function(){return this.top},h.prototype.getBottom=function(){return this.bottom},h.prototype.isConnected=function(){return this.isConnected},h.prototype.add=function(e,t,n){if(null==t&&null==n){var r=e;if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(r)>-1)throw"Node already in graph!";return r.owner=this,this.getNodes().push(r),r}var i=e;if(!(this.getNodes().indexOf(t)>-1&&this.getNodes().indexOf(n)>-1))throw"Source or target not in graph!";if(t.owner!=n.owner||t.owner!=this)throw"Both owners must be this graph!";return t.owner!=n.owner?null:(i.source=t,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),t.edges.push(i),n!=t&&n.edges.push(i),i)},h.prototype.remove=function(e){var t=e;if(e instanceof s){if(null==t)throw"Node is null!";if(null==t.owner||t.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var n=t.edges.slice(),r=n.length,i=0;i<r;i++)(o=n[i]).isInterGraph?this.graphManager.remove(o):o.source.owner.remove(o);if(-1==(a=this.nodes.indexOf(t)))throw"Node not in owner node list!";this.nodes.splice(a,1)}else if(e instanceof l){var o;if(null==(o=e))throw"Edge is null!";if(null==o.source||null==o.target)throw"Source and/or target is null!";if(null==o.source.owner||null==o.target.owner||o.source.owner!=this||o.target.owner!=this)throw"Source and/or target owner is invalid!";var a,c=o.source.edges.indexOf(o),u=o.target.edges.indexOf(o);if(!(c>-1&&u>-1))throw"Source and/or target doesn't know this edge!";if(o.source.edges.splice(c,1),o.target!=o.source&&o.target.edges.splice(u,1),-1==(a=o.source.owner.getEdges().indexOf(o)))throw"Not in owner's edge list!";o.source.owner.getEdges().splice(a,1)}},h.prototype.updateLeftTop=function(){for(var e,t,n,r=i.MAX_VALUE,o=i.MAX_VALUE,a=this.getNodes(),s=a.length,l=0;l<s;l++){var c=a[l];r>(e=c.getTop())&&(r=e),o>(t=c.getLeft())&&(o=t)}return r==i.MAX_VALUE?null:(n=null!=a[0].getParent().paddingLeft?a[0].getParent().paddingLeft:this.margin,this.left=o-n,this.top=r-n,new u(this.left,this.top))},h.prototype.updateBounds=function(e){for(var t,n,r,o,a,s=i.MAX_VALUE,l=-i.MAX_VALUE,u=i.MAX_VALUE,d=-i.MAX_VALUE,h=this.nodes,f=h.length,p=0;p<f;p++){var g=h[p];e&&null!=g.child&&g.updateBounds(),s>(t=g.getLeft())&&(s=t),l<(n=g.getRight())&&(l=n),u>(r=g.getTop())&&(u=r),d<(o=g.getBottom())&&(d=o)}var m=new c(s,u,l-s,d-u);s==i.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),a=null!=h[0].getParent().paddingLeft?h[0].getParent().paddingLeft:this.margin,this.left=m.x-a,this.right=m.x+m.width+a,this.top=m.y-a,this.bottom=m.y+m.height+a},h.calculateBounds=function(e){for(var t,n,r,o,a=i.MAX_VALUE,s=-i.MAX_VALUE,l=i.MAX_VALUE,u=-i.MAX_VALUE,d=e.length,h=0;h<d;h++){var f=e[h];a>(t=f.getLeft())&&(a=t),s<(n=f.getRight())&&(s=n),l>(r=f.getTop())&&(l=r),u<(o=f.getBottom())&&(u=o)}return new c(a,l,s-a,u-l)},h.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},h.prototype.getEstimatedSize=function(){if(this.estimatedSize==i.MIN_VALUE)throw"assert failed";return this.estimatedSize},h.prototype.calcEstimatedSize=function(){for(var e=0,t=this.nodes,n=t.length,r=0;r<n;r++)e+=t[r].calcEstimatedSize();return this.estimatedSize=0==e?o.EMPTY_COMPOUND_NODE_SIZE:e/Math.sqrt(this.nodes.length),this.estimatedSize},h.prototype.updateConnected=function(){var e=this;if(0!=this.nodes.length){var t,n,r=new d,i=new Set,o=this.nodes[0];for(o.withChildren().forEach(function(e){r.push(e),i.add(e)});0!==r.length;)for(var a=(t=(o=r.shift()).getEdges()).length,s=0;s<a;s++)null==(n=t[s].getOtherEndInGraph(o,this))||i.has(n)||n.withChildren().forEach(function(e){r.push(e),i.add(e)});if(this.isConnected=!1,i.size>=this.nodes.length){var l=0;i.forEach(function(t){t.owner==e&&l++}),l==this.nodes.length&&(this.isConnected=!0)}}else this.isConnected=!0},e.exports=h},function(e,t,n){var r,i=n(1);function o(e){r=n(5),this.layout=e,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),n=this.add(e,t);return this.setRootGraph(n),this.rootGraph},o.prototype.add=function(e,t,n,r,i){if(null==n&&null==r&&null==i){if(null==e)throw"Graph is null!";if(null==t)throw"Parent node is null!";if(this.graphs.indexOf(e)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(e),null!=e.parent)throw"Already has a parent!";if(null!=t.child)throw"Already has a child!";return e.parent=t,t.child=e,e}i=n,n=e;var o=(r=t).getOwner(),a=i.getOwner();if(null==o||o.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==a||a.getGraphManager()!=this)throw"Target not in this graph mgr!";if(o==a)return n.isInterGraph=!1,o.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(n),null==n.source||null==n.target)throw"Edge source and/or target is null!";if(-1!=n.source.edges.indexOf(n)||-1!=n.target.edges.indexOf(n))throw"Edge already in source and/or target incidency list!";return n.source.edges.push(n),n.target.edges.push(n),n},o.prototype.remove=function(e){if(e instanceof r){var t=e;if(t.getGraphManager()!=this)throw"Graph not in this graph mgr";if(t!=this.rootGraph&&(null==t.parent||t.parent.graphManager!=this))throw"Invalid parent node!";for(var n,o=[],a=(o=o.concat(t.getEdges())).length,s=0;s<a;s++)n=o[s],t.remove(n);var l,c=[];for(a=(c=c.concat(t.getNodes())).length,s=0;s<a;s++)l=c[s],t.remove(l);t==this.rootGraph&&this.setRootGraph(null);var u=this.graphs.indexOf(t);this.graphs.splice(u,1),t.parent=null}else if(e instanceof i){if(null==(n=e))throw"Edge is null!";if(!n.isInterGraph)throw"Not an inter-graph edge!";if(null==n.source||null==n.target)throw"Source and/or target is null!";if(-1==n.source.edges.indexOf(n)||-1==n.target.edges.indexOf(n))throw"Source and/or target doesn't know this edge!";if(u=n.source.edges.indexOf(n),n.source.edges.splice(u,1),u=n.target.edges.indexOf(n),n.target.edges.splice(u,1),null==n.source.owner||null==n.source.owner.getGraphManager())throw"Edge owner graph or owner graph manager is null!";if(-1==n.source.owner.getGraphManager().edges.indexOf(n))throw"Not in owner graph manager's edge list!";u=n.source.owner.getGraphManager().edges.indexOf(n),n.source.owner.getGraphManager().edges.splice(u,1)}},o.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},o.prototype.getGraphs=function(){return this.graphs},o.prototype.getAllNodes=function(){if(null==this.allNodes){for(var e=[],t=this.getGraphs(),n=t.length,r=0;r<n;r++)e=e.concat(t[r].getNodes());this.allNodes=e}return this.allNodes},o.prototype.resetAllNodes=function(){this.allNodes=null},o.prototype.resetAllEdges=function(){this.allEdges=null},o.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},o.prototype.getAllEdges=function(){if(null==this.allEdges){var e=[],t=this.getGraphs();t.length;for(var n=0;n<t.length;n++)e=e.concat(t[n].getEdges());e=e.concat(this.edges),this.allEdges=e}return this.allEdges},o.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},o.prototype.setAllNodesToApplyGravitation=function(e){if(null!=this.allNodesToApplyGravitation)throw"assert failed";this.allNodesToApplyGravitation=e},o.prototype.getRoot=function(){return this.rootGraph},o.prototype.setRootGraph=function(e){if(e.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=e,null==e.parent&&(e.parent=this.layout.newNode("Root node"))},o.prototype.getLayout=function(){return this.layout},o.prototype.isOneAncestorOfOther=function(e,t){if(null==e||null==t)throw"assert failed";if(e==t)return!0;for(var n,r=e.getOwner();null!=(n=r.getParent());){if(n==t)return!0;if(null==(r=n.getOwner()))break}for(r=t.getOwner();null!=(n=r.getParent());){if(n==e)return!0;if(null==(r=n.getOwner()))break}return!1},o.prototype.calcLowestCommonAncestors=function(){for(var e,t,n,r,i,o=this.getAllEdges(),a=o.length,s=0;s<a;s++)if(t=(e=o[s]).source,n=e.target,e.lca=null,e.sourceInLca=t,e.targetInLca=n,t!=n){for(r=t.getOwner();null==e.lca;){for(e.targetInLca=n,i=n.getOwner();null==e.lca;){if(i==r){e.lca=i;break}if(i==this.rootGraph)break;if(null!=e.lca)throw"assert failed";e.targetInLca=i.getParent(),i=e.targetInLca.getOwner()}if(r==this.rootGraph)break;null==e.lca&&(e.sourceInLca=r.getParent(),r=e.sourceInLca.getOwner())}if(null==e.lca)throw"assert failed"}else e.lca=t.getOwner()},o.prototype.calcLowestCommonAncestor=function(e,t){if(e==t)return e.getOwner();for(var n=e.getOwner();null!=n;){for(var r=t.getOwner();null!=r;){if(r==n)return r;r=r.getParent().getOwner()}n=n.getParent().getOwner()}return n},o.prototype.calcInclusionTreeDepths=function(e,t){var n;null==e&&null==t&&(e=this.rootGraph,t=1);for(var r=e.getNodes(),i=r.length,o=0;o<i;o++)(n=r[o]).inclusionTreeDepth=t,null!=n.child&&this.calcInclusionTreeDepths(n.child,t+1)},o.prototype.includesInvalidEdge=function(){for(var e,t=this.edges.length,n=0;n<t;n++)if(e=this.edges[n],this.isOneAncestorOfOther(e.source,e.target))return!0;return!1},e.exports=o},function(e,t,n){var r=n(0);function i(){}for(var o in r)i[o]=r[o];i.MAX_ITERATIONS=2500,i.DEFAULT_EDGE_LENGTH=50,i.DEFAULT_SPRING_STRENGTH=.45,i.DEFAULT_REPULSION_STRENGTH=4500,i.DEFAULT_GRAVITY_STRENGTH=.4,i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,i.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,i.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,i.COOLING_ADAPTATION_FACTOR=.33,i.ADAPTATION_LOWER_NODE_LIMIT=1e3,i.ADAPTATION_UPPER_NODE_LIMIT=5e3,i.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,i.MAX_NODE_DISPLACEMENT=3*i.MAX_NODE_DISPLACEMENT_INCREMENTAL,i.MIN_REPULSION_DIST=i.DEFAULT_EDGE_LENGTH/10,i.CONVERGENCE_CHECK_PERIOD=100,i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,i.MIN_EDGE_LENGTH=1,i.GRID_CALCULATION_CHECK_PERIOD=10,e.exports=i},function(e,t,n){var r=n(12);function i(){}i.calcSeparationAmount=function(e,t,n,r){if(!e.intersects(t))throw"assert failed";var i=new Array(2);this.decideDirectionsForOverlappingNodes(e,t,i),n[0]=Math.min(e.getRight(),t.getRight())-Math.max(e.x,t.x),n[1]=Math.min(e.getBottom(),t.getBottom())-Math.max(e.y,t.y),e.getX()<=t.getX()&&e.getRight()>=t.getRight()?n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var o=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(o=1);var a=o*n[0],s=n[1]/o;n[0]<s?s=n[0]:a=n[1],n[0]=-1*i[0]*(s/2+r),n[1]=-1*i[1]*(a/2+r)},i.decideDirectionsForOverlappingNodes=function(e,t,n){e.getCenterX()<t.getCenterX()?n[0]=-1:n[0]=1,e.getCenterY()<t.getCenterY()?n[1]=-1:n[1]=1},i.getIntersection2=function(e,t,n){var r=e.getCenterX(),i=e.getCenterY(),o=t.getCenterX(),a=t.getCenterY();if(e.intersects(t))return n[0]=r,n[1]=i,n[2]=o,n[3]=a,!0;var s=e.getX(),l=e.getY(),c=e.getRight(),u=e.getX(),d=e.getBottom(),h=e.getRight(),f=e.getWidthHalf(),p=e.getHeightHalf(),g=t.getX(),m=t.getY(),v=t.getRight(),A=t.getX(),b=t.getBottom(),y=t.getRight(),w=t.getWidthHalf(),_=t.getHeightHalf(),x=!1,E=!1;if(r===o){if(i>a)return n[0]=r,n[1]=l,n[2]=o,n[3]=b,!1;if(i<a)return n[0]=r,n[1]=d,n[2]=o,n[3]=m,!1}else if(i===a){if(r>o)return n[0]=s,n[1]=i,n[2]=v,n[3]=a,!1;if(r<o)return n[0]=c,n[1]=i,n[2]=g,n[3]=a,!1}else{var S=e.height/e.width,C=t.height/t.width,T=(a-i)/(o-r),k=void 0,O=void 0,M=void 0,I=void 0,D=void 0,N=void 0;if(-S===T?r>o?(n[0]=u,n[1]=d,x=!0):(n[0]=c,n[1]=l,x=!0):S===T&&(r>o?(n[0]=s,n[1]=l,x=!0):(n[0]=h,n[1]=d,x=!0)),-C===T?o>r?(n[2]=A,n[3]=b,E=!0):(n[2]=v,n[3]=m,E=!0):C===T&&(o>r?(n[2]=g,n[3]=m,E=!0):(n[2]=y,n[3]=b,E=!0)),x&&E)return!1;if(r>o?i>a?(k=this.getCardinalDirection(S,T,4),O=this.getCardinalDirection(C,T,2)):(k=this.getCardinalDirection(-S,T,3),O=this.getCardinalDirection(-C,T,1)):i>a?(k=this.getCardinalDirection(-S,T,1),O=this.getCardinalDirection(-C,T,3)):(k=this.getCardinalDirection(S,T,2),O=this.getCardinalDirection(C,T,4)),!x)switch(k){case 1:I=l,M=r+-p/T,n[0]=M,n[1]=I;break;case 2:M=h,I=i+f*T,n[0]=M,n[1]=I;break;case 3:I=d,M=r+p/T,n[0]=M,n[1]=I;break;case 4:M=u,I=i+-f*T,n[0]=M,n[1]=I}if(!E)switch(O){case 1:N=m,D=o+-_/T,n[2]=D,n[3]=N;break;case 2:D=y,N=a+w*T,n[2]=D,n[3]=N;break;case 3:N=b,D=o+_/T,n[2]=D,n[3]=N;break;case 4:D=A,N=a+-w*T,n[2]=D,n[3]=N}}return!1},i.getCardinalDirection=function(e,t,n){return e>t?n:1+n%4},i.getIntersection=function(e,t,n,i){if(null==i)return this.getIntersection2(e,t,n);var o,a,s,l,c,u,d,h=e.x,f=e.y,p=t.x,g=t.y,m=n.x,v=n.y,A=i.x,b=i.y;return 0==(d=(o=g-f)*(l=m-A)-(a=b-v)*(s=h-p))?null:new r((s*(u=A*v-m*b)-l*(c=p*f-h*g))/d,(a*c-o*u)/d)},i.angleOfVector=function(e,t,n,r){var i=void 0;return e!==n?(i=Math.atan((r-t)/(n-e)),n<e?i+=Math.PI:r<t&&(i+=this.TWO_PI)):i=r<t?this.ONE_AND_HALF_PI:this.HALF_PI,i},i.doIntersect=function(e,t,n,r){var i=e.x,o=e.y,a=t.x,s=t.y,l=n.x,c=n.y,u=r.x,d=r.y,h=(a-i)*(d-c)-(u-l)*(s-o);if(0===h)return!1;var f=((d-c)*(u-i)+(l-u)*(d-o))/h,p=((o-s)*(u-i)+(a-i)*(d-o))/h;return 0<f&&f<1&&0<p&&p<1},i.HALF_PI=.5*Math.PI,i.ONE_AND_HALF_PI=1.5*Math.PI,i.TWO_PI=2*Math.PI,i.THREE_PI=3*Math.PI,e.exports=i},function(e,t,n){function r(){}r.sign=function(e){return e>0?1:e<0?-1:0},r.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},r.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=r},function(e,t,n){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,e.exports=r},function(e,t,n){var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){return{value:e,next:null,prev:null}},o=function(e,t,n,r){return null!==e?e.next=t:r.head=t,null!==n?n.prev=t:r.tail=t,t.prev=e,t.next=n,r.length++,t},a=function(e,t){var n=e.prev,r=e.next;return null!==n?n.next=r:t.head=r,null!==r?r.prev=n:t.tail=n,e.prev=e.next=null,t.length--,e},s=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.length=0,this.head=null,this.tail=null,null!=t&&t.forEach(function(e){return n.push(e)})}return r(e,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(e,t){return o(t.prev,i(e),t,this)}},{key:"insertAfter",value:function(e,t){return o(t,i(e),t.next,this)}},{key:"insertNodeBefore",value:function(e,t){return o(t.prev,e,t,this)}},{key:"insertNodeAfter",value:function(e,t){return o(t,e,t.next,this)}},{key:"push",value:function(e){return o(this.tail,i(e),null,this)}},{key:"unshift",value:function(e){return o(null,i(e),this.head,this)}},{key:"remove",value:function(e){return a(e,this)}},{key:"pop",value:function(){return a(this.tail,this).value}},{key:"popNode",value:function(){return a(this.tail,this)}},{key:"shift",value:function(){return a(this.head,this).value}},{key:"shiftNode",value:function(){return a(this.head,this)}},{key:"get_object_at",value:function(e){if(e<=this.length()){for(var t=1,n=this.head;t<e;)n=n.next,t++;return n.value}}},{key:"set_object_at",value:function(e,t){if(e<=this.length()){for(var n=1,r=this.head;n<e;)r=r.next,n++;r.value=t}}}]),e}();e.exports=s},function(e,t,n){function r(e,t,n){this.x=null,this.y=null,null==e&&null==t&&null==n?(this.x=0,this.y=0):"number"==typeof e&&"number"==typeof t&&null==n?(this.x=e,this.y=t):"Point"==e.constructor.name&&null==t&&null==n&&(n=e,this.x=n.x,this.y=n.y)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.getLocation=function(){return new r(this.x,this.y)},r.prototype.setLocation=function(e,t,n){"Point"==e.constructor.name&&null==t&&null==n?(n=e,this.setLocation(n.x,n.y)):"number"==typeof e&&"number"==typeof t&&null==n&&(parseInt(e)==e&&parseInt(t)==t?this.move(e,t):(this.x=Math.floor(e+.5),this.y=Math.floor(t+.5)))},r.prototype.move=function(e,t){this.x=e,this.y=t},r.prototype.translate=function(e,t){this.x+=e,this.y+=t},r.prototype.equals=function(e){if("Point"==e.constructor.name){var t=e;return this.x==t.x&&this.y==t.y}return this==e},r.prototype.toString=function(){return(new r).constructor.name+"[x="+this.x+",y="+this.y+"]"},e.exports=r},function(e,t,n){function r(e,t,n,r){this.x=0,this.y=0,this.width=0,this.height=0,null!=e&&null!=t&&null!=n&&null!=r&&(this.x=e,this.y=t,this.width=n,this.height=r)}r.prototype.getX=function(){return this.x},r.prototype.setX=function(e){this.x=e},r.prototype.getY=function(){return this.y},r.prototype.setY=function(e){this.y=e},r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(e){this.width=e},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(e){this.height=e},r.prototype.getRight=function(){return this.x+this.width},r.prototype.getBottom=function(){return this.y+this.height},r.prototype.intersects=function(e){return!(this.getRight()<e.x||this.getBottom()<e.y||e.getRight()<this.x||e.getBottom()<this.y)},r.prototype.getCenterX=function(){return this.x+this.width/2},r.prototype.getMinX=function(){return this.getX()},r.prototype.getMaxX=function(){return this.getX()+this.width},r.prototype.getCenterY=function(){return this.y+this.height/2},r.prototype.getMinY=function(){return this.getY()},r.prototype.getMaxY=function(){return this.getY()+this.height},r.prototype.getWidthHalf=function(){return this.width/2},r.prototype.getHeightHalf=function(){return this.height/2},e.exports=r},function(e,t,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function i(){}i.lastID=0,i.createID=function(e){return i.isPrimitive(e)?e:(null!=e.uniqueID||(e.uniqueID=i.getString(),i.lastID++),e.uniqueID)},i.getString=function(e){return null==e&&(e=i.lastID),"Object#"+e},i.isPrimitive=function(e){var t=void 0===e?"undefined":r(e);return null==e||"object"!=t&&"function"!=t},e.exports=i},function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=n(0),o=n(6),a=n(3),s=n(1),l=n(5),c=n(4),u=n(17),d=n(27);function h(e){d.call(this),this.layoutQuality=i.QUALITY,this.createBendsAsNeeded=i.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=i.DEFAULT_INCREMENTAL,this.animationOnLayout=i.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=i.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=i.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=i.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new o(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,null!=e&&(this.isRemoteUse=e)}h.RANDOM_SEED=1,h.prototype=Object.create(d.prototype),h.prototype.getGraphManager=function(){return this.graphManager},h.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},h.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},h.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},h.prototype.newGraphManager=function(){var e=new o(this);return this.graphManager=e,e},h.prototype.newGraph=function(e){return new l(null,this.graphManager,e)},h.prototype.newNode=function(e){return new a(this.graphManager,e)},h.prototype.newEdge=function(e){return new s(null,null,e)},h.prototype.checkLayoutSuccess=function(){return null==this.graphManager.getRoot()||0==this.graphManager.getRoot().getNodes().length||this.graphManager.includesInvalidEdge()},h.prototype.runLayout=function(){var e;return this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters(),e=!this.checkLayoutSuccess()&&this.layout(),"during"!==i.ANIMATE&&(e&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,e)},h.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},h.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var e=this.graphManager.getAllEdges(),t=0;t<e.length;t++)e[t];var n=this.graphManager.getRoot().getNodes();for(t=0;t<n.length;t++)n[t];this.update(this.graphManager.getRoot())}},h.prototype.update=function(e){if(null==e)this.update2();else if(e instanceof a){var t=e;if(null!=t.getChild())for(var n=t.getChild().getNodes(),r=0;r<n.length;r++)update(n[r]);null!=t.vGraphObject&&t.vGraphObject.update(t)}else if(e instanceof s){var i=e;null!=i.vGraphObject&&i.vGraphObject.update(i)}else if(e instanceof l){var o=e;null!=o.vGraphObject&&o.vGraphObject.update(o)}},h.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=i.QUALITY,this.animationDuringLayout=i.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=i.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=i.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=i.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=i.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=i.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},h.prototype.transform=function(e){if(null==e)this.transform(new c(0,0));else{var t=new u,n=this.graphManager.getRoot().updateLeftTop();if(null!=n){t.setWorldOrgX(e.x),t.setWorldOrgY(e.y),t.setDeviceOrgX(n.x),t.setDeviceOrgY(n.y);for(var r=this.getAllNodes(),i=0;i<r.length;i++)r[i].transform(t)}}},h.prototype.positionNodesRandomly=function(e){if(null==e)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var t,n,r=e.getNodes(),i=0;i<r.length;i++)null==(n=(t=r[i]).getChild())||0==n.getNodes().length?t.scatter():(this.positionNodesRandomly(n),t.updateBounds())},h.prototype.getFlatForest=function(){for(var e=[],t=!0,n=this.graphManager.getRoot().getNodes(),i=!0,o=0;o<n.length;o++)null!=n[o].getChild()&&(i=!1);if(!i)return e;var a=new Set,s=[],l=new Map,c=[];for(c=c.concat(n);c.length>0&&t;){for(s.push(c[0]);s.length>0&&t;){var u=s[0];s.splice(0,1),a.add(u);var d=u.getEdges();for(o=0;o<d.length;o++){var h=d[o].getOtherEnd(u);if(l.get(u)!=h){if(a.has(h)){t=!1;break}s.push(h),l.set(h,u)}}}if(t){var f=[].concat(r(a));for(e.push(f),o=0;o<f.length;o++){var p=f[o],g=c.indexOf(p);g>-1&&c.splice(g,1)}a=new Set,l=new Map}else e=[]}return e},h.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],n=e.source,r=this.graphManager.calcLowestCommonAncestor(e.source,e.target),i=0;i<e.bendpoints.length;i++){var o=this.newNode(null);o.setRect(new Point(0,0),new Dimension(1,1)),r.add(o);var a=this.newEdge(null);this.graphManager.add(a,n,o),t.add(o),n=o}return a=this.newEdge(null),this.graphManager.add(a,n,e.target),this.edgeToDummyNodes.set(e,t),e.isInterGraph()?this.graphManager.remove(e):r.remove(e),t},h.prototype.createBendpointsFromDummyNodes=function(){var e=[];e=e.concat(this.graphManager.getAllEdges()),e=[].concat(r(this.edgeToDummyNodes.keys())).concat(e);for(var t=0;t<e.length;t++){var n=e[t];if(n.bendpoints.length>0){for(var i=this.edgeToDummyNodes.get(n),o=0;o<i.length;o++){var a=i[o],s=new c(a.getCenterX(),a.getCenterY()),l=n.bendpoints.get(o);l.x=s.x,l.y=s.y,a.getOwner().remove(a)}this.graphManager.add(n,n.source,n.target)}}},h.transform=function(e,t,n,r){if(null!=n&&null!=r){var i=t;return e<=50?i-=(t-t/n)/50*(50-e):i+=(t*r-t)/50*(e-50),i}var o,a;return e<=50?(o=9*t/500,a=t/10):(o=9*t/50,a=-8*t),o*e+a},h.findCenterOfTree=function(e){var t=[];t=t.concat(e);var n=[],r=new Map,i=!1,o=null;1!=t.length&&2!=t.length||(i=!0,o=t[0]);for(var a=0;a<t.length;a++){var s=(u=t[a]).getNeighborsList().size;r.set(u,u.getNeighborsList().size),1==s&&n.push(u)}var l=[];for(l=l.concat(n);!i;){var c=[];for(c=c.concat(l),l=[],a=0;a<t.length;a++){var u=t[a],d=t.indexOf(u);d>=0&&t.splice(d,1),u.getNeighborsList().forEach(function(e){if(n.indexOf(e)<0){var t=r.get(e)-1;1==t&&l.push(e),r.set(e,t)}})}n=n.concat(l),1!=t.length&&2!=t.length||(i=!0,o=t[0])}return o},h.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=h},function(e,t,n){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=1e4*Math.sin(r.seed++),r.x-Math.floor(r.x)},e.exports=r},function(e,t,n){var r=n(4);function i(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(e){this.lworldExtX=e},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(e){this.lworldExtY=e},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},i.prototype.transformX=function(e){var t=0,n=this.lworldExtX;return 0!=n&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/n),t},i.prototype.transformY=function(e){var t=0,n=this.lworldExtY;return 0!=n&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/n),t},i.prototype.inverseTransformX=function(e){var t=0,n=this.ldeviceExtX;return 0!=n&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/n),t},i.prototype.inverseTransformY=function(e){var t=0,n=this.ldeviceExtY;return 0!=n&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/n),t},i.prototype.inverseTransformPoint=function(e){return new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=i},function(e,t,n){var r=n(15),i=n(7),o=n(0),a=n(8),s=n(9);function l(){r.call(this),this.useSmartIdealEdgeLengthCalculation=i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=i.DEFAULT_EDGE_LENGTH,this.springConstant=i.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=i.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=i.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=i.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=i.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=i.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=i.MAX_ITERATIONS}for(var c in l.prototype=Object.create(r.prototype),r)l[c]=r[c];l.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},l.prototype.calcIdealEdgeLengths=function(){for(var e,t,n,r,a,s,l=this.getGraphManager().getAllEdges(),c=0;c<l.length;c++)(e=l[c]).idealLength=this.idealEdgeLength,e.isInterGraph&&(n=e.getSource(),r=e.getTarget(),a=e.getSourceInLca().getEstimatedSize(),s=e.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(e.idealLength+=a+s-2*o.SIMPLE_NODE_SIZE),t=e.getLca().getInclusionTreeDepth(),e.idealLength+=i.DEFAULT_EDGE_LENGTH*i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(n.getInclusionTreeDepth()+r.getInclusionTreeDepth()-2*t))},l.prototype.initSpringEmbedder=function(){var e=this.getAllNodes().length;this.incremental?(e>i.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(e>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(e-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},l.prototype.calcSpringForces=function(){for(var e,t=this.getAllEdges(),n=0;n<t.length;n++)e=t[n],this.calcSpringForce(e,e.idealLength)},l.prototype.calcRepulsionForces=function(){var e,t,n,r,o,a=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&a&&this.updateGrid(),o=new Set,e=0;e<l.length;e++)n=l[e],this.calculateRepulsionForceOfANode(n,o,a,s),o.add(n);else for(e=0;e<l.length;e++)for(n=l[e],t=e+1;t<l.length;t++)r=l[t],n.getOwner()==r.getOwner()&&this.calcRepulsionForce(n,r)},l.prototype.calcGravitationalForces=function(){for(var e,t=this.getAllNodesToApplyGravitation(),n=0;n<t.length;n++)e=t[n],this.calcGravitationalForce(e)},l.prototype.moveNodes=function(){for(var e=this.getAllNodes(),t=0;t<e.length;t++)e[t].move()},l.prototype.calcSpringForce=function(e,t){var n,r,i,o,a=e.getSource(),s=e.getTarget();if(this.uniformLeafNodeSizes&&null==a.getChild()&&null==s.getChild())e.updateLengthSimple();else if(e.updateLength(),e.isOverlapingSourceAndTarget)return;0!=(n=e.getLength())&&(i=(r=this.springConstant*(n-t))*(e.lengthX/n),o=r*(e.lengthY/n),a.springForceX+=i,a.springForceY+=o,s.springForceX-=i,s.springForceY-=o)},l.prototype.calcRepulsionForce=function(e,t){var n,r,o,l,c,u,d,h=e.getRect(),f=t.getRect(),p=new Array(2),g=new Array(4);if(h.intersects(f)){a.calcSeparationAmount(h,f,p,i.DEFAULT_EDGE_LENGTH/2),u=2*p[0],d=2*p[1];var m=e.noOfChildren*t.noOfChildren/(e.noOfChildren+t.noOfChildren);e.repulsionForceX-=m*u,e.repulsionForceY-=m*d,t.repulsionForceX+=m*u,t.repulsionForceY+=m*d}else this.uniformLeafNodeSizes&&null==e.getChild()&&null==t.getChild()?(n=f.getCenterX()-h.getCenterX(),r=f.getCenterY()-h.getCenterY()):(a.getIntersection(h,f,g),n=g[2]-g[0],r=g[3]-g[1]),Math.abs(n)<i.MIN_REPULSION_DIST&&(n=s.sign(n)*i.MIN_REPULSION_DIST),Math.abs(r)<i.MIN_REPULSION_DIST&&(r=s.sign(r)*i.MIN_REPULSION_DIST),o=n*n+r*r,l=Math.sqrt(o),u=(c=this.repulsionConstant*e.noOfChildren*t.noOfChildren/o)*n/l,d=c*r/l,e.repulsionForceX-=u,e.repulsionForceY-=d,t.repulsionForceX+=u,t.repulsionForceY+=d},l.prototype.calcGravitationalForce=function(e){var t,n,r,i,o,a,s,l;n=((t=e.getOwner()).getRight()+t.getLeft())/2,r=(t.getTop()+t.getBottom())/2,i=e.getCenterX()-n,o=e.getCenterY()-r,a=Math.abs(i)+e.getWidth()/2,s=Math.abs(o)+e.getHeight()/2,e.getOwner()==this.graphManager.getRoot()?(a>(l=t.getEstimatedSize()*this.gravityRangeFactor)||s>l)&&(e.gravitationForceX=-this.gravityConstant*i,e.gravitationForceY=-this.gravityConstant*o):(a>(l=t.getEstimatedSize()*this.compoundGravityRangeFactor)||s>l)&&(e.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*o*this.compoundGravityConstant)},l.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,e||t},l.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},l.prototype.calcNoOfChildrenForAllNodes=function(){for(var e,t=this.graphManager.getAllNodes(),n=0;n<t.length;n++)(e=t[n]).noOfChildren=e.getNoOfChildren()},l.prototype.calcGrid=function(e){var t,n;t=parseInt(Math.ceil((e.getRight()-e.getLeft())/this.repulsionRange)),n=parseInt(Math.ceil((e.getBottom()-e.getTop())/this.repulsionRange));for(var r=new Array(t),i=0;i<t;i++)r[i]=new Array(n);for(i=0;i<t;i++)for(var o=0;o<n;o++)r[i][o]=new Array;return r},l.prototype.addNodeToGrid=function(e,t,n){var r,i,o,a;r=parseInt(Math.floor((e.getRect().x-t)/this.repulsionRange)),i=parseInt(Math.floor((e.getRect().width+e.getRect().x-t)/this.repulsionRange)),o=parseInt(Math.floor((e.getRect().y-n)/this.repulsionRange)),a=parseInt(Math.floor((e.getRect().height+e.getRect().y-n)/this.repulsionRange));for(var s=r;s<=i;s++)for(var l=o;l<=a;l++)this.grid[s][l].push(e),e.setGridCoordinates(r,i,o,a)},l.prototype.updateGrid=function(){var e,t,n=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),e=0;e<n.length;e++)t=n[e],this.addNodeToGrid(t,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},l.prototype.calculateRepulsionForceOfANode=function(e,t,n,r){if(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&n||r){var o,a=new Set;e.surrounding=new Array;for(var s=this.grid,l=e.startX-1;l<e.finishX+2;l++)for(var c=e.startY-1;c<e.finishY+2;c++)if(!(l<0||c<0||l>=s.length||c>=s[0].length))for(var u=0;u<s[l][c].length;u++)if(o=s[l][c][u],e.getOwner()==o.getOwner()&&e!=o&&!t.has(o)&&!a.has(o)){var d=Math.abs(e.getCenterX()-o.getCenterX())-(e.getWidth()/2+o.getWidth()/2),h=Math.abs(e.getCenterY()-o.getCenterY())-(e.getHeight()/2+o.getHeight()/2);d<=this.repulsionRange&&h<=this.repulsionRange&&a.add(o)}e.surrounding=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(a))}for(l=0;l<e.surrounding.length;l++)this.calcRepulsionForce(e,e.surrounding[l])},l.prototype.calcRepulsionRange=function(){return 0},e.exports=l},function(e,t,n){var r=n(1),i=n(7);function o(e,t,n){r.call(this,e,t,n),this.idealLength=i.DEFAULT_EDGE_LENGTH}for(var a in o.prototype=Object.create(r.prototype),r)o[a]=r[a];e.exports=o},function(e,t,n){var r=n(3);function i(e,t,n,i){r.call(this,e,t,n,i),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}for(var o in i.prototype=Object.create(r.prototype),r)i[o]=r[o];i.prototype.setGridCoordinates=function(e,t,n,r){this.startX=e,this.finishX=t,this.startY=n,this.finishY=r},e.exports=i},function(e,t,n){function r(e,t){this.width=0,this.height=0,null!==e&&null!==t&&(this.height=t,this.width=e)}r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(e){this.width=e},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(e){this.height=e},e.exports=r},function(e,t,n){var r=n(14);function i(){this.map={},this.keys=[]}i.prototype.put=function(e,t){var n=r.createID(e);this.contains(n)||(this.map[n]=t,this.keys.push(e))},i.prototype.contains=function(e){return r.createID(e),null!=this.map[e]},i.prototype.get=function(e){var t=r.createID(e);return this.map[t]},i.prototype.keySet=function(){return this.keys},e.exports=i},function(e,t,n){var r=n(14);function i(){this.set={}}i.prototype.add=function(e){var t=r.createID(e);this.contains(t)||(this.set[t]=e)},i.prototype.remove=function(e){delete this.set[r.createID(e)]},i.prototype.clear=function(){this.set={}},i.prototype.contains=function(e){return this.set[r.createID(e)]==e},i.prototype.isEmpty=function(){return 0===this.size()},i.prototype.size=function(){return Object.keys(this.set).length},i.prototype.addAllTo=function(e){for(var t=Object.keys(this.set),n=t.length,r=0;r<n;r++)e.push(this.set[t[r]])},i.prototype.size=function(){return Object.keys(this.set).length},i.prototype.addAll=function(e){for(var t=e.length,n=0;n<t;n++){var r=e[n];this.add(r)}},e.exports=i},function(e,t,n){var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(11),o=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null===n&&void 0===n||(this.compareFunction=this._defaultCompareFunction);var r=void 0;r=t instanceof i?t.size():t.length,this._quicksort(t,0,r-1)}return r(e,[{key:"_quicksort",value:function(e,t,n){if(t<n){var r=this._partition(e,t,n);this._quicksort(e,t,r),this._quicksort(e,r+1,n)}}},{key:"_partition",value:function(e,t,n){for(var r=this._get(e,t),i=t,o=n;;){for(;this.compareFunction(r,this._get(e,o));)o--;for(;this.compareFunction(this._get(e,i),r);)i++;if(!(i<o))return o;this._swap(e,i,o),i++,o--}}},{key:"_get",value:function(e,t){return e instanceof i?e.get_object_at(t):e[t]}},{key:"_set",value:function(e,t,n){e instanceof i?e.set_object_at(t,n):e[t]=n}},{key:"_swap",value:function(e,t,n){var r=this._get(e,t);this._set(e,t,this._get(e,n)),this._set(e,n,r)}},{key:"_defaultCompareFunction",value:function(e,t){return t>e}}]),e}();e.exports=o},function(e,t,n){var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sequence1=t,this.sequence2=n,this.match_score=r,this.mismatch_penalty=i,this.gap_penalty=o,this.iMax=t.length+1,this.jMax=n.length+1,this.grid=new Array(this.iMax);for(var a=0;a<this.iMax;a++){this.grid[a]=new Array(this.jMax);for(var s=0;s<this.jMax;s++)this.grid[a][s]=0}this.tracebackGrid=new Array(this.iMax);for(var l=0;l<this.iMax;l++){this.tracebackGrid[l]=new Array(this.jMax);for(var c=0;c<this.jMax;c++)this.tracebackGrid[l][c]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return r(e,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var e=1;e<this.jMax;e++)this.grid[0][e]=this.grid[0][e-1]+this.gap_penalty,this.tracebackGrid[0][e]=[!1,!1,!0];for(var t=1;t<this.iMax;t++)this.grid[t][0]=this.grid[t-1][0]+this.gap_penalty,this.tracebackGrid[t][0]=[!1,!0,!1];for(var n=1;n<this.iMax;n++)for(var r=1;r<this.jMax;r++){var i=[this.sequence1[n-1]===this.sequence2[r-1]?this.grid[n-1][r-1]+this.match_score:this.grid[n-1][r-1]+this.mismatch_penalty,this.grid[n-1][r]+this.gap_penalty,this.grid[n][r-1]+this.gap_penalty],o=this.arrayAllMaxIndexes(i);this.grid[n][r]=i[o[0]],this.tracebackGrid[n][r]=[o.includes(0),o.includes(1),o.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var e=[];for(e.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});e[0];){var t=e[0],n=this.tracebackGrid[t.pos[0]][t.pos[1]];n[0]&&e.push({pos:[t.pos[0]-1,t.pos[1]-1],seq1:this.sequence1[t.pos[0]-1]+t.seq1,seq2:this.sequence2[t.pos[1]-1]+t.seq2}),n[1]&&e.push({pos:[t.pos[0]-1,t.pos[1]],seq1:this.sequence1[t.pos[0]-1]+t.seq1,seq2:"-"+t.seq2}),n[2]&&e.push({pos:[t.pos[0],t.pos[1]-1],seq1:"-"+t.seq1,seq2:this.sequence2[t.pos[1]-1]+t.seq2}),0===t.pos[0]&&0===t.pos[1]&&this.alignments.push({sequence1:t.seq1,sequence2:t.seq2}),e.shift()}return this.alignments}},{key:"getAllIndexes",value:function(e,t){for(var n=[],r=-1;-1!==(r=e.indexOf(t,r+1));)n.push(r);return n}},{key:"arrayAllMaxIndexes",value:function(e){return this.getAllIndexes(e,Math.max.apply(null,e))}}]),e}();e.exports=i},function(e,t,n){var r=function(){};r.FDLayout=n(18),r.FDLayoutConstants=n(7),r.FDLayoutEdge=n(19),r.FDLayoutNode=n(20),r.DimensionD=n(21),r.HashMap=n(22),r.HashSet=n(23),r.IGeometry=n(8),r.IMath=n(9),r.Integer=n(10),r.Point=n(12),r.PointD=n(4),r.RandomSeed=n(16),r.RectangleD=n(13),r.Transform=n(17),r.UniqueIDGeneretor=n(14),r.Quicksort=n(24),r.LinkedList=n(11),r.LGraphObject=n(2),r.LGraph=n(5),r.LEdge=n(1),r.LGraphManager=n(6),r.LNode=n(3),r.Layout=n(15),r.LayoutConstants=n(0),r.NeedlemanWunsch=n(25),e.exports=r},function(e,t,n){function r(){this.listeners=[]}var i=r.prototype;i.addListener=function(e,t){this.listeners.push({event:e,callback:t})},i.removeListener=function(e,t){for(var n=this.listeners.length;n>=0;n--){var r=this.listeners[n];r.event===e&&r.callback===t&&this.listeners.splice(n,1)}},i.emit=function(e,t){for(var n=0;n<this.listeners.length;n++){var r=this.listeners[n];e===r.event&&r.callback(t)}},e.exports=r}])},j_e.exports=e());var e}var U_e,Q_e=(N_e||(N_e=1,U_e=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(t,n){t.exports=e},function(e,t,n){var r=n(0).layoutBase.LayoutConstants,i=n(0).layoutBase.FDLayoutConstants,o=n(0).CoSEConstants,a=n(0).CoSELayout,s=n(0).CoSENode,l=n(0).layoutBase.PointD,c=n(0).layoutBase.DimensionD,u={ready:function(){},stop:function(){},quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function d(e){this.options=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}(u,e),h(this.options)}var h=function(e){null!=e.nodeRepulsion&&(o.DEFAULT_REPULSION_STRENGTH=i.DEFAULT_REPULSION_STRENGTH=e.nodeRepulsion),null!=e.idealEdgeLength&&(o.DEFAULT_EDGE_LENGTH=i.DEFAULT_EDGE_LENGTH=e.idealEdgeLength),null!=e.edgeElasticity&&(o.DEFAULT_SPRING_STRENGTH=i.DEFAULT_SPRING_STRENGTH=e.edgeElasticity),null!=e.nestingFactor&&(o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor),null!=e.gravity&&(o.DEFAULT_GRAVITY_STRENGTH=i.DEFAULT_GRAVITY_STRENGTH=e.gravity),null!=e.numIter&&(o.MAX_ITERATIONS=i.MAX_ITERATIONS=e.numIter),null!=e.gravityRange&&(o.DEFAULT_GRAVITY_RANGE_FACTOR=i.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange),null!=e.gravityCompound&&(o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound),null!=e.gravityRangeCompound&&(o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound),null!=e.initialEnergyOnIncremental&&(o.DEFAULT_COOLING_FACTOR_INCREMENTAL=i.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental),"draft"==e.quality?r.QUALITY=0:"proof"==e.quality?r.QUALITY=2:r.QUALITY=1,o.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=r.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,o.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=r.DEFAULT_INCREMENTAL=!e.randomize,o.ANIMATE=i.ANIMATE=r.ANIMATE=e.animate,o.TILE=e.tile,o.TILING_PADDING_VERTICAL="function"==typeof e.tilingPaddingVertical?e.tilingPaddingVertical.call():e.tilingPaddingVertical,o.TILING_PADDING_HORIZONTAL="function"==typeof e.tilingPaddingHorizontal?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal};d.prototype.run=function(){var e,t,n=this.options;this.idToLNode={};var r=this.layout=new a,i=this;i.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var o=r.newGraphManager();this.gm=o;var s=this.options.eles.nodes(),l=this.options.eles.edges();this.root=o.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(s),r);for(var c=0;c<l.length;c++){var u=l[c],d=this.idToLNode[u.data("source")],h=this.idToLNode[u.data("target")];d!==h&&0==d.getEdgesBetween(h).length&&(o.add(r.newEdge(),d,h).id=u.id())}var f=function(e,t){"number"==typeof e&&(e=t);var n=e.data("id"),r=i.idToLNode[n];return{x:r.getRect().getCenterX(),y:r.getRect().getCenterY()}},p=function o(){for(var a,s=function(){n.fit&&n.cy.fit(n.eles,n.padding),e||(e=!0,i.cy.one("layoutready",n.ready),i.cy.trigger({type:"layoutready",layout:i}))},l=i.options.refresh,c=0;c<l&&!a;c++)a=i.stopped||i.layout.tick();if(a)return r.checkLayoutSuccess()&&!r.isSubLayout&&r.doPostLayout(),r.tilingPostLayout&&r.tilingPostLayout(),r.isLayoutFinished=!0,i.options.eles.nodes().positions(f),s(),i.cy.one("layoutstop",i.options.stop),i.cy.trigger({type:"layoutstop",layout:i}),t&&cancelAnimationFrame(t),void(e=!1);var u=i.layout.getPositionsData();n.eles.nodes().positions(function(e,t){if("number"==typeof e&&(e=t),!e.isParent()){for(var n=e.id(),r=u[n],i=e;null==r&&(r=u[i.data("parent")]||u["DummyCompound_"+i.data("parent")],u[n]=r,null!=(i=i.parent()[0])););return null!=r?{x:r.x,y:r.y}:{x:e.position("x"),y:e.position("y")}}}),s(),t=requestAnimationFrame(o)};return r.addListener("layoutstarted",function(){"during"===i.options.animate&&(t=requestAnimationFrame(p))}),r.runLayout(),"during"!==this.options.animate&&(i.options.eles.nodes().not(":parent").layoutPositions(i,i.options,f),e=!1),this},d.prototype.getTopMostNodes=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].id()]=!0;var r=e.filter(function(e,n){"number"==typeof e&&(e=n);for(var r=e.parent()[0];null!=r;){if(t[r.id()])return!1;r=r.parent()[0]}return!0});return r},d.prototype.processChildrenList=function(e,t,n){for(var r=t.length,i=0;i<r;i++){var o,a,u=t[i],d=u.children(),h=u.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if((o=null!=u.outerWidth()&&null!=u.outerHeight()?e.add(new s(n.graphManager,new l(u.position("x")-h.w/2,u.position("y")-h.h/2),new c(parseFloat(h.w),parseFloat(h.h)))):e.add(new s(this.graphManager))).id=u.data("id"),o.paddingLeft=parseInt(u.css("padding")),o.paddingTop=parseInt(u.css("padding")),o.paddingRight=parseInt(u.css("padding")),o.paddingBottom=parseInt(u.css("padding")),this.options.nodeDimensionsIncludeLabels&&u.isParent()){var f=u.boundingBox({includeLabels:!0,includeNodes:!1}).w,p=u.boundingBox({includeLabels:!0,includeNodes:!1}).h,g=u.css("text-halign");o.labelWidth=f,o.labelHeight=p,o.labelPos=g}this.idToLNode[u.data("id")]=o,isNaN(o.rect.x)&&(o.rect.x=0),isNaN(o.rect.y)&&(o.rect.y=0),null!=d&&d.length>0&&(a=n.getGraphManager().add(n.newGraph(),o),this.processChildrenList(a,d,n))}},d.prototype.stop=function(){return this.stopped=!0,this};var f=function(e){e("layout","cose-bilkent",d)};"undefined"!=typeof cytoscape&&f(cytoscape),e.exports=f}])},F_e.exports=U_e(function(){return D_e?$_e.exports:(D_e=1,e=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(t,n){t.exports=e},function(e,t,n){var r=n(0).FDLayoutConstants;function i(){}for(var o in r)i[o]=r[o];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TREE_REDUCTION_ON_INCREMENTAL=!1,e.exports=i},function(e,t,n){var r=n(0).FDLayoutEdge;function i(e,t,n){r.call(this,e,t,n)}for(var o in i.prototype=Object.create(r.prototype),r)i[o]=r[o];e.exports=i},function(e,t,n){var r=n(0).LGraph;function i(e,t,n){r.call(this,e,t,n)}for(var o in i.prototype=Object.create(r.prototype),r)i[o]=r[o];e.exports=i},function(e,t,n){var r=n(0).LGraphManager;function i(e){r.call(this,e)}for(var o in i.prototype=Object.create(r.prototype),r)i[o]=r[o];e.exports=i},function(e,t,n){var r=n(0).FDLayoutNode,i=n(0).IMath;function o(e,t,n,i){r.call(this,e,t,n,i)}for(var a in o.prototype=Object.create(r.prototype),r)o[a]=r[a];o.prototype.move=function(){var e=this.graphManager.getLayout();this.displacementX=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementY)),null==this.child||0==this.child.getNodes().length?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),e.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},o.prototype.propogateDisplacementToChildren=function(e,t){for(var n,r=this.getChild().getNodes(),i=0;i<r.length;i++)null==(n=r[i]).getChild()?(n.moveBy(e,t),n.displacementX+=e,n.displacementY+=t):n.propogateDisplacementToChildren(e,t)},o.prototype.setPred1=function(e){this.pred1=e},o.prototype.getPred1=function(){return pred1},o.prototype.getPred2=function(){return pred2},o.prototype.setNext=function(e){this.next=e},o.prototype.getNext=function(){return next},o.prototype.setProcessed=function(e){this.processed=e},o.prototype.isProcessed=function(){return processed},e.exports=o},function(e,t,n){var r=n(0).FDLayout,i=n(4),o=n(3),a=n(5),s=n(2),l=n(1),c=n(0).FDLayoutConstants,u=n(0).LayoutConstants,d=n(0).Point,h=n(0).PointD,f=n(0).Layout,p=n(0).Integer,g=n(0).IGeometry,m=n(0).LGraph,v=n(0).Transform;function A(){r.call(this),this.toBeTiled={}}for(var b in A.prototype=Object.create(r.prototype),r)A[b]=r[b];A.prototype.newGraphManager=function(){var e=new i(this);return this.graphManager=e,e},A.prototype.newGraph=function(e){return new o(null,this.graphManager,e)},A.prototype.newNode=function(e){return new a(this.graphManager,e)},A.prototype.newEdge=function(e){return new s(null,null,e)},A.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(l.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=l.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=l.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=c.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=c.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=c.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=c.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/c.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=c.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},A.prototype.layout=function(){return u.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},A.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental)l.TREE_REDUCTION_ON_INCREMENTAL&&(this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation(),t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)}),this.graphManager.setAllNodesToApplyGravitation(n));else{var e=this.getFlatForest();if(e.length>0)this.positionNodesRadially(e);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},A.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}if(this.totalIterations%c.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(!(this.prunedNodesAll.length>0))return!0;this.isTreeGrowing=!0}this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),t=this.nodesWithGravity.filter(function(t){return e.has(t)});this.graphManager.setAllNodesToApplyGravitation(t),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=c.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},A.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},n=0;n<e.length;n++){var r=e[n].rect,i=e[n].id;t[i]={id:i,x:r.getCenterX(),y:r.getCenterY(),w:r.width,h:r.height}}return t},A.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var e=!1;if("during"===c.ANIMATE)this.emit("layoutstarted");else{for(;!e;)e=this.tick();this.graphManager.updateBounds()}},A.prototype.calculateNodesToApplyGravitationTo=function(){var e,t,n=[],r=this.graphManager.getGraphs(),i=r.length;for(t=0;t<i;t++)(e=r[t]).updateConnected(),e.isConnected||(n=n.concat(e.getNodes()));return n},A.prototype.createBendpoints=function(){var e=[];e=e.concat(this.graphManager.getAllEdges());var t,n=new Set;for(t=0;t<e.length;t++){var r=e[t];if(!n.has(r)){var i=r.getSource(),o=r.getTarget();if(i==o)r.getBendpoints().push(new h),r.getBendpoints().push(new h),this.createDummyNodesForBendpoints(r),n.add(r);else{var a=[];if(a=(a=a.concat(i.getEdgeListToNode(o))).concat(o.getEdgeListToNode(i)),!n.has(a[0])){var s;if(a.length>1)for(s=0;s<a.length;s++){var l=a[s];l.getBendpoints().push(new h),this.createDummyNodesForBendpoints(l)}a.forEach(function(e){n.add(e)})}}}if(n.size==e.length)break}},A.prototype.positionNodesRadially=function(e){for(var t=new d(0,0),n=Math.ceil(Math.sqrt(e.length)),r=0,i=0,o=0,a=new h(0,0),s=0;s<e.length;s++){s%n==0&&(o=0,i=r,0!=s&&(i+=l.DEFAULT_COMPONENT_SEPERATION),r=0);var c=e[s],p=f.findCenterOfTree(c);t.x=o,t.y=i,(a=A.radialLayout(c,p,t)).y>r&&(r=Math.floor(a.y)),o=Math.floor(a.x+l.DEFAULT_COMPONENT_SEPERATION)}this.transform(new h(u.WORLD_CENTER_X-a.x/2,u.WORLD_CENTER_Y-a.y/2))},A.radialLayout=function(e,t,n){var r=Math.max(this.maxDiagonalInTree(e),l.DEFAULT_RADIAL_SEPARATION);A.branchRadialLayout(t,null,0,359,0,r);var i=m.calculateBounds(e),o=new v;o.setDeviceOrgX(i.getMinX()),o.setDeviceOrgY(i.getMinY()),o.setWorldOrgX(n.x),o.setWorldOrgY(n.y);for(var a=0;a<e.length;a++)e[a].transform(o);var s=new h(i.getMaxX(),i.getMaxY());return o.inverseTransformPoint(s)},A.branchRadialLayout=function(e,t,n,r,i,o){var a=(r-n+1)/2;a<0&&(a+=180);var s=(a+n)%360*g.TWO_PI/360,l=i*Math.cos(s),c=i*Math.sin(s);e.setCenter(l,c);var u=[],d=(u=u.concat(e.getEdges())).length;null!=t&&d--;for(var h,f=0,p=u.length,m=e.getEdgesBetween(t);m.length>1;){var v=m[0];m.splice(0,1);var b=u.indexOf(v);b>=0&&u.splice(b,1),p--,d--}h=null!=t?(u.indexOf(m[0])+1)%p:0;for(var y=Math.abs(r-n)/d,w=h;f!=d;w=++w%p){var _=u[w].getOtherEnd(e);if(_!=t){var x=(n+f*y)%360,E=(x+y)%360;A.branchRadialLayout(_,e,x,E,i+o,o),f++}}},A.maxDiagonalInTree=function(e){for(var t=p.MIN_VALUE,n=0;n<e.length;n++){var r=e[n].getDiagonal();r>t&&(t=r)}return t},A.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},A.prototype.groupZeroDegreeMembers=function(){var e=this,t={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i<r.length;i++){var o=(s=r[i]).getParent();0!==this.getNodeDegreeWithChildren(s)||null!=o.id&&this.getToBeTiled(o)||n.push(s)}for(i=0;i<n.length;i++){var s,l=(s=n[i]).getParent().id;void 0===t[l]&&(t[l]=[]),t[l]=t[l].concat(s)}Object.keys(t).forEach(function(n){if(t[n].length>1){var r="DummyCompound_"+n;e.memberGroups[r]=t[n];var i=t[n][0].getParent(),o=new a(e.graphManager);o.id=r,o.paddingLeft=i.paddingLeft||0,o.paddingRight=i.paddingRight||0,o.paddingBottom=i.paddingBottom||0,o.paddingTop=i.paddingTop||0,e.idToDummyNode[r]=o;var s=e.getGraphManager().add(e.newGraph(),o),l=i.getChild();l.add(o);for(var c=0;c<t[n].length;c++){var u=t[n][c];l.remove(u),s.add(u)}}})},A.prototype.clearCompounds=function(){var e={},t={};this.performDFSOnCompounds();for(var n=0;n<this.compoundOrder.length;n++)t[this.compoundOrder[n].id]=this.compoundOrder[n],e[this.compoundOrder[n].id]=[].concat(this.compoundOrder[n].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[n].getChild()),this.compoundOrder[n].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(e,t)},A.prototype.clearZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(n){var r=e.idToDummyNode[n];t[n]=e.tileNodes(e.memberGroups[n],r.paddingLeft+r.paddingRight),r.rect.width=t[n].width,r.rect.height=t[n].height})},A.prototype.repopulateCompounds=function(){for(var e=this.compoundOrder.length-1;e>=0;e--){var t=this.compoundOrder[e],n=t.id,r=t.paddingLeft,i=t.paddingTop;this.adjustLocations(this.tiledMemberPack[n],t.rect.x,t.rect.y,r,i)}},A.prototype.repopulateZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack;Object.keys(t).forEach(function(n){var r=e.idToDummyNode[n],i=r.paddingLeft,o=r.paddingTop;e.adjustLocations(t[n],r.rect.x,r.rect.y,i,o)})},A.prototype.getToBeTiled=function(e){var t=e.id;if(null!=this.toBeTiled[t])return this.toBeTiled[t];var n=e.getChild();if(null==n)return this.toBeTiled[t]=!1,!1;for(var r=n.getNodes(),i=0;i<r.length;i++){var o=r[i];if(this.getNodeDegree(o)>0)return this.toBeTiled[t]=!1,!1;if(null!=o.getChild()){if(!this.getToBeTiled(o))return this.toBeTiled[t]=!1,!1}else this.toBeTiled[o.id]=!1}return this.toBeTiled[t]=!0,!0},A.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),n=0,r=0;r<t.length;r++){var i=t[r];i.getSource().id!==i.getTarget().id&&(n+=1)}return n},A.prototype.getNodeDegreeWithChildren=function(e){var t=this.getNodeDegree(e);if(null==e.getChild())return t;for(var n=e.getChild().getNodes(),r=0;r<n.length;r++){var i=n[r];t+=this.getNodeDegreeWithChildren(i)}return t},A.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},A.prototype.fillCompexOrderByDFS=function(e){for(var t=0;t<e.length;t++){var n=e[t];null!=n.getChild()&&this.fillCompexOrderByDFS(n.getChild().getNodes()),this.getToBeTiled(n)&&this.compoundOrder.push(n)}},A.prototype.adjustLocations=function(e,t,n,r,i){n+=i;for(var o=t+=r,a=0;a<e.rows.length;a++){var s=e.rows[a];t=o;for(var l=0,c=0;c<s.length;c++){var u=s[c];u.rect.x=t,u.rect.y=n,t+=u.rect.width+e.horizontalPadding,u.rect.height>l&&(l=u.rect.height)}n+=l+e.verticalPadding}},A.prototype.tileCompoundMembers=function(e,t){var n=this;this.tiledMemberPack=[],Object.keys(e).forEach(function(r){var i=t[r];n.tiledMemberPack[r]=n.tileNodes(e[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height})},A.prototype.tileNodes=function(e,t){var n={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:l.TILING_PADDING_VERTICAL,horizontalPadding:l.TILING_PADDING_HORIZONTAL};e.sort(function(e,t){return e.rect.width*e.rect.height>t.rect.width*t.rect.height?-1:e.rect.width*e.rect.height<t.rect.width*t.rect.height?1:0});for(var r=0;r<e.length;r++){var i=e[r];0==n.rows.length?this.insertNodeToRow(n,i,0,t):this.canAddHorizontal(n,i.rect.width,i.rect.height)?this.insertNodeToRow(n,i,this.getShortestRowIndex(n),t):this.insertNodeToRow(n,i,n.rows.length,t),this.shiftToLastRow(n)}return n},A.prototype.insertNodeToRow=function(e,t,n,r){var i=r;n==e.rows.length&&(e.rows.push([]),e.rowWidth.push(i),e.rowHeight.push(0));var o=e.rowWidth[n]+t.rect.width;e.rows[n].length>0&&(o+=e.horizontalPadding),e.rowWidth[n]=o,e.width<o&&(e.width=o);var a=t.rect.height;n>0&&(a+=e.verticalPadding);var s=0;a>e.rowHeight[n]&&(s=e.rowHeight[n],e.rowHeight[n]=a,s=e.rowHeight[n]-s),e.height+=s,e.rows[n].push(t)},A.prototype.getShortestRowIndex=function(e){for(var t=-1,n=Number.MAX_VALUE,r=0;r<e.rows.length;r++)e.rowWidth[r]<n&&(t=r,n=e.rowWidth[r]);return t},A.prototype.getLongestRowIndex=function(e){for(var t=-1,n=Number.MIN_VALUE,r=0;r<e.rows.length;r++)e.rowWidth[r]>n&&(t=r,n=e.rowWidth[r]);return t},A.prototype.canAddHorizontal=function(e,t,n){var r=this.getShortestRowIndex(e);if(r<0)return!0;var i=e.rowWidth[r];if(i+e.horizontalPadding+t<=e.width)return!0;var o,a,s=0;return e.rowHeight[r]<n&&r>0&&(s=n+e.verticalPadding-e.rowHeight[r]),o=e.width-i>=t+e.horizontalPadding?(e.height+s)/(i+t+e.horizontalPadding):(e.height+s)/e.width,s=n+e.verticalPadding,(a=e.width<t?(e.height+s)/t:(e.height+s)/e.width)<1&&(a=1/a),o<1&&(o=1/o),o<a},A.prototype.shiftToLastRow=function(e){var t=this.getLongestRowIndex(e),n=e.rowWidth.length-1,r=e.rows[t],i=r[r.length-1],o=i.width+e.horizontalPadding;if(e.width-e.rowWidth[n]>o&&t!=n){r.splice(-1,1),e.rows[n].push(i),e.rowWidth[t]=e.rowWidth[t]-o,e.rowWidth[n]=e.rowWidth[n]+o,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var a=Number.MIN_VALUE,s=0;s<r.length;s++)r[s].height>a&&(a=r[s].height);t>0&&(a+=e.verticalPadding);var l=e.rowHeight[t]+e.rowHeight[n];e.rowHeight[t]=a,e.rowHeight[n]<i.height+e.verticalPadding&&(e.rowHeight[n]=i.height+e.verticalPadding);var c=e.rowHeight[t]+e.rowHeight[n];e.height+=c-l,this.shiftToLastRow(e)}},A.prototype.tilingPreLayout=function(){l.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},A.prototype.tilingPostLayout=function(){l.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},A.prototype.reduceTrees=function(){for(var e,t=[],n=!0;n;){var r=this.graphManager.getAllNodes(),i=[];n=!1;for(var o=0;o<r.length;o++)1!=(e=r[o]).getEdges().length||e.getEdges()[0].isInterGraph||null!=e.getChild()||(i.push([e,e.getEdges()[0],e.getOwner()]),n=!0);if(1==n){for(var a=[],s=0;s<i.length;s++)1==i[s][0].getEdges().length&&(a.push(i[s]),i[s][0].getOwner().remove(i[s][0]));t.push(a),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=t},A.prototype.growTree=function(e){for(var t,n=e[e.length-1],r=0;r<n.length;r++)t=n[r],this.findPlaceforPrunedNode(t),t[2].add(t[0]),t[2].add(t[1],t[1].source,t[1].target);e.splice(e.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},A.prototype.findPlaceforPrunedNode=function(e){var t,n,r=e[0],i=(n=r==e[1].source?e[1].target:e[1].source).startX,o=n.finishX,a=n.startY,s=n.finishY,l=[0,0,0,0];if(a>0)for(var u=i;u<=o;u++)l[0]+=this.grid[u][a-1].length+this.grid[u][a].length-1;if(o<this.grid.length-1)for(u=a;u<=s;u++)l[1]+=this.grid[o+1][u].length+this.grid[o][u].length-1;if(s<this.grid[0].length-1)for(u=i;u<=o;u++)l[2]+=this.grid[u][s+1].length+this.grid[u][s].length-1;if(i>0)for(u=a;u<=s;u++)l[3]+=this.grid[i-1][u].length+this.grid[i][u].length-1;for(var d,h,f=p.MAX_VALUE,g=0;g<l.length;g++)l[g]<f?(f=l[g],d=1,h=g):l[g]==f&&d++;if(3==d&&0==f)0==l[0]&&0==l[1]&&0==l[2]?t=1:0==l[0]&&0==l[1]&&0==l[3]?t=0:0==l[0]&&0==l[2]&&0==l[3]?t=3:0==l[1]&&0==l[2]&&0==l[3]&&(t=2);else if(2==d&&0==f){var m=Math.floor(2*Math.random());t=0==l[0]&&0==l[1]?0==m?0:1:0==l[0]&&0==l[2]?0==m?0:2:0==l[0]&&0==l[3]?0==m?0:3:0==l[1]&&0==l[2]?0==m?1:2:0==l[1]&&0==l[3]?0==m?1:3:0==m?2:3}else t=4==d&&0==f?m=Math.floor(4*Math.random()):h;0==t?r.setCenter(n.getCenterX(),n.getCenterY()-n.getHeight()/2-c.DEFAULT_EDGE_LENGTH-r.getHeight()/2):1==t?r.setCenter(n.getCenterX()+n.getWidth()/2+c.DEFAULT_EDGE_LENGTH+r.getWidth()/2,n.getCenterY()):2==t?r.setCenter(n.getCenterX(),n.getCenterY()+n.getHeight()/2+c.DEFAULT_EDGE_LENGTH+r.getHeight()/2):r.setCenter(n.getCenterX()-n.getWidth()/2-c.DEFAULT_EDGE_LENGTH-r.getWidth()/2,n.getCenterY())},e.exports=A},function(e,t,n){var r={};r.layoutBase=n(0),r.CoSEConstants=n(1),r.CoSEEdge=n(2),r.CoSEGraph=n(3),r.CoSEGraphManager=n(4),r.CoSELayout=n(6),r.CoSENode=n(5),e.exports=r}])},$_e.exports=e(H_e()));var e}())),F_e.exports),z_e=i(Q_e),W_e=function(){var e,t=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},n=[1,4],r=[1,13],i=[1,12],o=[1,15],a=[1,16],s=[1,20],l=[1,19],c=[6,7,8],u=[1,26],d=[1,24],h=[1,25],f=[6,7,11],p=[1,6,13,15,16,19,22],g=[1,33],m=[1,34],v=[1,6,7,11,13,15,16,19,22],A={trace:function(){},yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace("Stop NL ");break;case 9:r.getLogger().trace("Stop EOF ");break;case 11:r.getLogger().trace("Stop NL2 ");break;case 12:r.getLogger().trace("Stop EOF2 ");break;case 15:r.getLogger().info("Node: ",o[s].id),r.addNode(o[s-1].length,o[s].id,o[s].descr,o[s].type);break;case 16:r.getLogger().trace("Icon: ",o[s]),r.decorateNode({icon:o[s]});break;case 17:case 21:r.decorateNode({class:o[s]});break;case 18:r.getLogger().trace("SPACELIST");break;case 19:r.getLogger().trace("Node: ",o[s].id),r.addNode(0,o[s].id,o[s].descr,o[s].type);break;case 20:r.decorateNode({icon:o[s]});break;case 25:r.getLogger().trace("node found ..",o[s-2]),this.$={id:o[s-1],descr:o[s-1],type:r.getType(o[s-2],o[s])};break;case 26:this.$={id:o[s],descr:o[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace("node found ..",o[s-3]),this.$={id:o[s-3],descr:o[s-1],type:r.getType(o[s-2],o[s])}}},table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,15:o,16:a,17:17,18:18,19:s,22:l},t(c,[2,3]),{1:[2,2]},t(c,[2,4]),t(c,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,15:o,16:a,17:17,18:18,19:s,22:l},{6:r,9:22,12:11,13:i,14:14,15:o,16:a,17:17,18:18,19:s,22:l},{6:u,7:d,10:23,11:h},t(f,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:l}),t(f,[2,18]),t(f,[2,19]),t(f,[2,20]),t(f,[2,21]),t(f,[2,23]),t(f,[2,24]),t(f,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:h},{1:[2,7],6:r,12:21,13:i,14:14,15:o,16:a,17:17,18:18,19:s,22:l},t(p,[2,14],{7:g,11:m}),t(v,[2,8]),t(v,[2,9]),t(v,[2,10]),t(f,[2,15]),t(f,[2,16]),t(f,[2,17]),{20:[1,35]},{21:[1,36]},t(p,[2,13],{7:g,11:m}),t(v,[2,11]),t(v,[2,12]),{21:[1,37]},t(f,[2,25]),t(f,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],a=this.table,s="",l=0,c=0,u=o.slice.call(arguments,1),d=Object.create(this.lexer),h={yy:{}};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(h.yy[f]=this.yy[f]);d.setInput(e,h.yy),h.yy.lexer=d,h.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var p=d.yylloc;o.push(p);var g=d.options&&d.options.ranges;function m(){var e;return"number"!=typeof(e=r.pop()||d.lex()||1)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof h.yy.parseError?this.parseError=h.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v,A,b,y,w,_,x,E,S={};;){if(A=n[n.length-1],this.defaultActions[A]?b=this.defaultActions[A]:(null==v&&(v=m()),b=a[A]&&a[A][v]),void 0===b||!b.length||!b[0]){var C="";for(w in E=[],a[A])this.terminals_[w]&&w>2&&E.push("'"+this.terminals_[w]+"'");C=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+E.join(", ")+", got '"+(this.terminals_[v]||v)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==v?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(C,{text:d.match,token:this.terminals_[v]||v,line:d.yylineno,loc:p,expected:E})}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(b[0]){case 1:n.push(v),i.push(d.yytext),o.push(d.yylloc),n.push(b[1]),v=null,c=d.yyleng,s=d.yytext,l=d.yylineno,p=d.yylloc;break;case 2:if(_=this.productions_[b[1]][1],S.$=i[i.length-_],S._$={first_line:o[o.length-(_||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(_||1)].first_column,last_column:o[o.length-1].last_column},g&&(S._$.range=[o[o.length-(_||1)].range[0],o[o.length-1].range[1]]),void 0!==(y=this.performAction.apply(S,[s,c,l,h.yy,b[1],i,o].concat(u))))return y;_&&(n=n.slice(0,-1*_*2),i=i.slice(0,-1*_),o=o.slice(0,-1*_)),n.push(this.productions_[b[1]][0]),i.push(S.$),o.push(S._$),x=a[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},b=(e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;o<i.length;o++)if((n=this._input.match(this.rules[i[o]]))&&(!t||n[0].length>t[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:e.getLogger().trace("Found comment",t.yytext);break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;case 4:case 23:this.popState();break;case 5:e.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return e.getLogger().trace("SPACELINE"),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace("end icon"),this.popState();break;case 10:return e.getLogger().trace("Exploding node"),this.begin("NODE"),19;case 11:return e.getLogger().trace("Cloud"),this.begin("NODE"),19;case 12:return e.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;case 13:return e.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;case 14:case 15:case 16:case 17:return this.begin("NODE"),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:e.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 22:return e.getLogger().trace("description:",t.yytext),"NODE_DESCR";case 24:return this.popState(),e.getLogger().trace("node end ))"),"NODE_DEND";case 25:return this.popState(),e.getLogger().trace("node end )"),"NODE_DEND";case 26:return this.popState(),e.getLogger().trace("node end ...",t.yytext),"NODE_DEND";case 27:case 30:case 31:return this.popState(),e.getLogger().trace("node end (("),"NODE_DEND";case 28:case 29:return this.popState(),e.getLogger().trace("node end (-"),"NODE_DEND";case 32:case 33:return e.getLogger().trace("Long description:",t.yytext),20}},rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\-\)\{\}]+)/i,/^(?:$)/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR:{rules:[22,23],inclusive:!1},NODE:{rules:[21,24,25,26,27,28,29,30,31,32,33],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}},e);function y(){this.yy={}}return A.lexer=b,y.prototype=A,A.Parser=y,new y}();W_e.parser=W_e;const G_e=W_e,V_e=e=>Gle(e,bde());let K_e=[],Y_e=0,q_e={};const X_e={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},J_e=(e,t)=>{q_e[e]=t},Z_e=e=>{switch(e){case X_e.DEFAULT:return"no-border";case X_e.RECT:return"rect";case X_e.ROUNDED_RECT:return"rounded-rect";case X_e.CIRCLE:return"circle";case X_e.CLOUD:return"cloud";case X_e.BANG:return"bang";case X_e.HEXAGON:return"hexgon";default:return"no-border"}};let exe;const txe=e=>q_e[e],nxe=Object.freeze(Object.defineProperty({__proto__:null,addNode:(e,t,n,r)=>{Hle.info("addNode",e,t,n,r);const i=bde(),o={id:Y_e++,nodeId:V_e(t),level:e,descr:V_e(n),type:r,children:[],width:bde().mindmap.maxNodeWidth};switch(o.type){case X_e.ROUNDED_RECT:case X_e.RECT:case X_e.HEXAGON:o.padding=2*i.mindmap.padding;break;default:o.padding=i.mindmap.padding}const a=function(e){for(let t=K_e.length-1;t>=0;t--)if(K_e[t].level<e)return K_e[t];return null}(e);if(a)a.children.push(o),K_e.push(o);else{if(0!==K_e.length){let e=new Error('There can be only one root. No parent could be found for ("'+o.descr+'")');throw e.hash={text:"branch "+name,token:"branch "+name,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+name+'"']},e}K_e.push(o)}},clear:()=>{K_e=[],Y_e=0,q_e={}},decorateNode:e=>{const t=K_e[K_e.length-1];e&&e.icon&&(t.icon=V_e(e.icon)),e&&e.class&&(t.class=V_e(e.class))},getElementById:txe,getLogger:()=>Hle,getMindmap:()=>K_e.length>0?K_e[0]:null,getNodeById:e=>K_e[e],getType:(e,t)=>{switch(Hle.debug("In get type",e,t),e){case"[":return X_e.RECT;case"(":return")"===t?X_e.ROUNDED_RECT:X_e.CLOUD;case"((":return X_e.CIRCLE;case")":return X_e.CLOUD;case"))":return X_e.BANG;case"{{":return X_e.HEXAGON;default:return X_e.DEFAULT}},nodeType:X_e,get parseError(){return exe},sanitizeText:V_e,setElementForId:J_e,setErrorHandler:e=>{exe=e},type2Str:Z_e},Symbol.toStringTag,{value:"Module"}));function rxe(e,t){e.each(function(){var e,n=b3(this),r=n.text().split(/(\s+|<br>)/).reverse(),i=[],o=n.attr("y"),a=parseFloat(n.attr("dy")),s=n.text(null).append("tspan").attr("x",0).attr("y",o).attr("dy",a+"em");for(let l=0;l<r.length;l++)e=r[r.length-1-l],i.push(e),s.text(i.join(" ").trim()),(s.node().getComputedTextLength()>t||"<br>"===e)&&(i.pop(),s.text(i.join(" ").trim()),i="<br>"===e?[""]:[e],s=n.append("tspan").attr("x",0).attr("y",o).attr("dy","1.1em").text(e))})}const ixe=function(e,t,n,r){const i=n%11,o=e.append("g");t.section=i;let a="section-"+i;i<0&&(a+=" section-root"),o.attr("class",(t.class?t.class+" ":"")+"mindmap-node "+a);const s=o.append("g"),l=o.append("g"),c=l.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(rxe,t.width).node().getBBox(),u=r.fontSize.replace?r.fontSize.replace("px",""):r.fontSize;if(t.height=c.height+1.1*u*.5+t.padding,t.width=c.width+2*t.padding,t.icon)if(t.type===X_e.CIRCLE)t.height+=50,t.width+=50,o.append("foreignObject").attr("height","50px").attr("width",t.width).attr("style","text-align: center;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+i+" "+t.icon),l.attr("transform","translate("+t.width/2+", "+(t.height/2-1.5*t.padding)+")");else{t.width+=50;const e=t.height;t.height=Math.max(e,60);const n=Math.abs(t.height-e);o.append("foreignObject").attr("width","60px").attr("height",t.height).attr("style","text-align: center;margin-top:"+n/2+"px;").append("div").attr("class","icon-container").append("i").attr("class","node-icon-"+i+" "+t.icon),l.attr("transform","translate("+(25+t.width/2)+", "+(n/2+t.padding/2)+")")}else l.attr("transform","translate("+t.width/2+", "+t.padding/2+")");switch(t.type){case X_e.DEFAULT:!function(e,t,n){e.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+Z_e(t.type)).attr("d",`M0 ${t.height-5} v${10-t.height} q0,-5 5,-5 h${t.width-10} q5,0 5,5 v${t.height-5} H0 Z`),e.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)}(s,t,i);break;case X_e.ROUNDED_RECT:!function(e,t){e.append("rect").attr("id","node-"+t.id).attr("class","node-bkg node-"+Z_e(t.type)).attr("height",t.height).attr("rx",t.padding).attr("ry",t.padding).attr("width",t.width)}(s,t);break;case X_e.RECT:!function(e,t){e.append("rect").attr("id","node-"+t.id).attr("class","node-bkg node-"+Z_e(t.type)).attr("height",t.height).attr("width",t.width)}(s,t);break;case X_e.CIRCLE:s.attr("transform","translate("+t.width/2+", "+ +t.height/2+")"),function(e,t){e.append("circle").attr("id","node-"+t.id).attr("class","node-bkg node-"+Z_e(t.type)).attr("r",t.width/2)}(s,t);break;case X_e.CLOUD:!function(e,t){const n=t.width,r=t.height,i=.15*n,o=.25*n,a=.35*n,s=.2*n;e.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+Z_e(t.type)).attr("d",`M0 0 a${i},${i} 0 0,1 ${.25*n},${-1*n*.1}\n      a${a},${a} 1 0,1 ${.4*n},${-1*n*.1}\n      a${o},${o} 1 0,1 ${.35*n},${1*n*.2}\n\n      a${i},${i} 1 0,1 ${.15*n},${1*r*.35}\n      a${s},${s} 1 0,1 ${-1*n*.15},${1*r*.65}\n\n      a${o},${i} 1 0,1 ${-1*n*.25},${.15*n}\n      a${a},${a} 1 0,1 ${-1*n*.5},0\n      a${i},${i} 1 0,1 ${-1*n*.25},${-1*n*.15}\n\n      a${i},${i} 1 0,1 ${-1*n*.1},${-1*r*.35}\n      a${s},${s} 1 0,1 ${.1*n},${-1*r*.65}\n\n    H0 V0 Z`)}(s,t);break;case X_e.BANG:!function(e,t){const n=t.width,r=t.height,i=.15*n;e.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+Z_e(t.type)).attr("d",`M0 0 a${i},${i} 1 0,0 ${.25*n},${-1*r*.1}\n      a${i},${i} 1 0,0 ${.25*n},0\n      a${i},${i} 1 0,0 ${.25*n},0\n      a${i},${i} 1 0,0 ${.25*n},${1*r*.1}\n\n      a${i},${i} 1 0,0 ${.15*n},${1*r*.33}\n      a${.8*i},${.8*i} 1 0,0 0,${1*r*.34}\n      a${i},${i} 1 0,0 ${-1*n*.15},${1*r*.33}\n\n      a${i},${i} 1 0,0 ${-1*n*.25},${.15*r}\n      a${i},${i} 1 0,0 ${-1*n*.25},0\n      a${i},${i} 1 0,0 ${-1*n*.25},0\n      a${i},${i} 1 0,0 ${-1*n*.25},${-1*r*.15}\n\n      a${i},${i} 1 0,0 ${-1*n*.1},${-1*r*.33}\n      a${.8*i},${.8*i} 1 0,0 0,${-1*r*.34}\n      a${i},${i} 1 0,0 ${.1*n},${-1*r*.33}\n\n    H0 V0 Z`)}(s,t);break;case X_e.HEXAGON:!function(e,t){const n=t.height,r=n/4,i=t.width-t.padding+2*r;!function(e,t,n,r,i){e.insert("polygon",":first-child").attr("points",r.map(function(e){return e.x+","+e.y}).join(" ")).attr("transform","translate("+(i.width-t)/2+", "+n+")")}(e,i,n,[{x:r,y:0},{x:i-r,y:0},{x:i,y:-n/2},{x:i-r,y:-n},{x:r,y:-n},{x:0,y:-n/2}],t)}(s,t)}return J_e(t.id,o),t.height},oxe=function(e){const t=txe(e.id),n=e.x||0,r=e.y||0;t.attr("transform","translate("+n+","+r+")")};function axe(e,t,n,r){ixe(e,t,n,r),t.children&&t.children.forEach((t,i)=>{axe(e,t,n<0?i:n,r)})}function sxe(e,t,n,r){t.add({group:"nodes",data:{id:e.id,labelText:e.descr,height:e.height,width:e.width,level:r,nodeId:e.id,padding:e.padding,type:e.type},position:{x:e.x,y:e.y}}),e.children&&e.children.forEach(i=>{sxe(i,t,n,r+1),t.add({group:"edges",data:{id:`${e.id}_${i.id}`,source:e.id,target:i.id,depth:r,section:i.section}})})}function lxe(e,t){return new Promise(n=>{const r=b3("body").append("div").attr("id","cy").attr("style","display:none"),i=P_e({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});r.remove(),sxe(e,i,t,0),i.nodes().forEach(function(e){e.layoutDimensions=()=>{const t=e.data();return{w:t.width,h:t.height}}}),i.layout({name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1}).run(),i.ready(e=>{Hle.info("Ready",e),n(i)})})}P_e.use(z_e);const cxe={draw:async(e,t,n,r)=>{const i=bde();r.db.clear(),r.parser.parse(e),Hle.debug("Renering info diagram\n"+e);const o=bde().securityLevel;let a;"sandbox"===o&&(a=b3("#i"+t));const s=b3("sandbox"===o?a.nodes()[0].contentDocument.body:"body").select("#"+t);s.append("g");const l=r.db.getMindmap(),c=s.append("g");c.attr("class","mindmap-edges");const u=s.append("g");u.attr("class","mindmap-nodes"),axe(u,l,-1,i);const d=await lxe(l,i);!function(e,t){t.edges().map((t,n)=>{const r=t.data();if(t[0]._private.bodyBounds){const i=t[0]._private.rscratch;Hle.trace("Edge: ",n,r),e.insert("path").attr("d",`M ${i.startX},${i.startY} L ${i.midX},${i.midY} L${i.endX},${i.endY} `).attr("class","edge section-edge-"+r.section+" edge-depth-"+r.depth)}})}(c,d),function(e){e.nodes().map((e,t)=>{const n=e.data();n.x=e.position().x,n.y=e.position().y,oxe(n);const r=txe(n.nodeId);Hle.info("Id:",t,"Position: (",e.position().x,", ",e.position().y,")",n),r.attr("transform",`translate(${e.position().x-n.width/2}, ${e.position().y-n.height/2})`),r.attr("attr",`apa-${t})`)})}(d),Tde(void 0,s,i.mindmap.padding,i.mindmap.useMaxWidth)}},uxe=e=>`\n  .edge {\n    stroke-width: 3;\n  }\n  ${(e=>{let t="";for(let n=0;n<e.THEME_COLOR_LIMIT;n++)e["lineColor"+n]=e["lineColor"+n]||e["cScaleInv"+n],cte(e["lineColor"+n])?e["lineColor"+n]=dte(e["lineColor"+n],20):e["lineColor"+n]=hte(e["lineColor"+n],20);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){const r=""+(17-3*n);t+=`\n    .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} polygon, .section-${n-1} path  {\n      fill: ${e["cScale"+n]};\n    }\n    .section-${n-1} text {\n     fill: ${e["cScaleLabel"+n]};\n    }\n    .node-icon-${n-1} {\n      font-size: 40px;\n      color: ${e["cScaleLabel"+n]};\n    }\n    .section-edge-${n-1}{\n      stroke: ${e["cScale"+n]};\n    }\n    .edge-depth-${n-1}{\n      stroke-width: ${r};\n    }\n    .section-${n-1} line {\n      stroke: ${e["cScaleInv"+n]} ;\n      stroke-width: 3;\n    }\n\n    .disabled, .disabled circle, .disabled text {\n      fill: lightgray;\n    }\n    .disabled text {\n      fill: #efefef;\n    }\n    `}return t})(e)}\n  .section-root rect, .section-root path, .section-root circle, .section-root polygon  {\n    fill: ${e.git0};\n  }\n  .section-root text {\n    fill: ${e.gitBranchLabel0};\n  }\n  .icon-container {\n    height:100%;\n    display: flex;\n    justify-content: center;\n    align-items: center;\n  }\n  .edge {\n    fill: none;\n  }\n`,dxe={db:nxe,renderer:cxe,parser:G_e,styles:uxe};var hxe=Object.freeze({__proto__:null,diagram:dxe})},86962:function(e,t,n){function r(e){const t=e.regex,n=/[a-zA-Z]\w*/,r=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],i=["true","false","null"],o=["this","super"],a=["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"],s=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],l={relevance:0,match:t.concat(/\b(?!(if|while|for|else|super)\b)/,n,/(?=\s*[({])/),className:"title.function"},c={match:t.concat(t.either(t.concat(/\b(?!(if|while|for|else|super)\b)/,n),t.either(...s)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:n}]}]}},u={variants:[{match:[/class\s+/,n,/\s+is\s+/,n]},{match:[/class\s+/,n]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:r},d={relevance:0,match:t.either(...s),className:"operator"},h={className:"string",begin:/"""/,end:/"""/},f={className:"property",begin:t.concat(/\./,t.lookahead(n)),end:n,excludeBegin:!0,relevance:0},p={relevance:0,match:t.concat(/\b_/,n),scope:"variable"},g={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:a}},m=e.C_NUMBER_MODE,v={match:[n,/\s*/,/=/,/\s*/,/\(/,n,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},A=e.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),b={scope:"subst",begin:/%\(/,end:/\)/,contains:[m,g,l,p,d]},y={scope:"string",begin:/"/,end:/"/,contains:[b,{scope:"char.escape",variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};b.contains.push(y);const w=[...r,...o,...i],_={relevance:0,match:t.concat("\\b(?!",w.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"},x={scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:i},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]};return{name:"Wren",keywords:{keyword:r,"variable.language":o,literal:i},contains:[x,m,y,h,A,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,u,v,c,l,d,p,f,_]}}n(44114),e.exports=r},87019:function(e){const t="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],r=["true","false","null","undefined","NaN","Infinity"],i=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],o=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],a=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],l=[].concat(a,i,o);function c(e){const c=e.regex,u=(e,{after:t})=>{const n="</"+e[0].slice(1),r=e.input.indexOf(n,t);return-1!==r},d=t,h={begin:"<>",end:"</>"},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,p={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const n=e[0].length+e.index,r=e.input[n];if("<"===r||","===r)return void t.ignoreMatch();let i;">"===r&&(u(e,{after:n})||t.ignoreMatch());const o=e.input.substring(n);((i=o.match(/^\s*=/))||(i=o.match(/^\s+extends\s+/))&&0===i.index)&&t.ignoreMatch()}},g={$pattern:t,keyword:n,literal:r,built_in:l,"variable.language":s},m="[0-9](_?[0-9])*",v=`\\.(${m})`,A="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",b={className:"number",variants:[{begin:`(\\b(${A})((${v})|\\.)?|(${v}))[eE][+-]?(${m})\\b`},{begin:`\\b(${A})\\b((${v})\\b|\\.)?|(${v})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},y={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},w={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"xml"}},_={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"css"}},x={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"graphql"}},E={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,y]},S=e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:d+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),C={className:"comment",variants:[S,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},T=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,w,_,x,E,{match:/\$\d+/},b];y.contains=T.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(T)});const k=[].concat(C,y.contains),O=k.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat(k)}]),M={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:O},I={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,c.concat(d,"(",c.concat(/\./,d),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,d],scope:{1:"keyword",3:"title.class"}}]},D={relevance:0,match:c.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...i,...o]}},N={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},R={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[M],illegal:/%/},L={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function B(e){return c.concat("(?!",e.join("|"),")")}const P={match:c.concat(/\b/,B([...a,"super","import"].map(e=>`${e}\\s*\\(`)),d,c.lookahead(/\s*\(/)),className:"title.function",relevance:0},F={begin:c.concat(/\./,c.lookahead(c.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},$={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},M]},j="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",H={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,c.lookahead(j)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[M]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:O,CLASS_REFERENCE:D},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),N,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,w,_,x,E,C,{match:/\$\d+/},b,D,{scope:"attr",match:d+c.lookahead(":"),relevance:0},H,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,e.REGEXP_MODE,{className:"function",begin:j,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:O}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:h.begin,end:h.end},{match:f},{begin:p.begin,"on:begin":p.isTrulyOpeningTag,end:p.end}],subLanguage:"xml",contains:[{begin:p.begin,end:p.end,skip:!0,contains:["self"]}]}]},R,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[M,e.inherit(e.TITLE_MODE,{begin:d,className:"title.function"})]},{match:/\.\.\./,relevance:0},F,{match:"\\$"+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[M]},P,L,I,$,{match:/\$[(.]/}]}}e.exports=c},87351:function(e,t,n){"use strict";var r=n(35318),i=n(91647),o=n(41805);function a(e){return(0,o.A)(e)?(0,r.A)(e):(0,i.A)(e)}t.A=a},87426:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(56768),i=n(90144);function o(e,t,n){const o=(0,i.KR)(e());return(0,r.wB)(t,(t,r)=>{n?n(t,r)&&(o.value=e()):o.value=e()}),o}},87546:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="CloseCircleFilled",c.inheritAttrs=!1;var u=c},87810:function(e,t,n){"use strict";n.d(t,{aH:function(){return d},Oc:function(){return u},oi:function(){return h},N7:function(){return y},K6:function(){return v}});n(18111),n(7588);var r=n(51137),i=n(56768),o=n(90144);const a="%";class s{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join(a):e)||null}update(e,t){const n=Array.isArray(e)?e.join(a):e,r=this.cache.get(n),i=t(r);null===i?this.cache.delete(n):this.cache.set(n,i)}}var l=s,c=n(44678);const u="data-token-hash",d="data-css-hash",h="__cssinjs_instance__";function f(){const e=Math.random().toString(12).slice(2);if("undefined"!==typeof document&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${d}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(t=>{t[h]=t[h]||e,t[h]===e&&document.head.insertBefore(t,n)});const r={};Array.from(document.querySelectorAll(`style[${d}]`)).forEach(t=>{var n;const i=t.getAttribute(d);r[i]?t[h]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[i]=!0})}return new l(e)}const p=Symbol("StyleContextKey"),g=()=>{var e,t,n;const r=(0,i.nI)();let o;if(r&&r.appContext){const i=null===(n=null===(t=null===(e=r.appContext)||void 0===e?void 0:e.config)||void 0===t?void 0:t.globalProperties)||void 0===n?void 0:n.__ANTDV_CSSINJS_CACHE__;i?o=i:(o=f(),r.appContext.config.globalProperties&&(r.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=o))}else o=f();return o},m={cache:f(),defaultCache:!0,hashPriority:"low"},v=()=>{const e=g();return(0,i.WQ)(p,(0,o.IJ)((0,r.A)((0,r.A)({},m),{cache:e})))},A=e=>{const t=v(),n=(0,o.IJ)((0,r.A)((0,r.A)({},m),{cache:f()}));return(0,i.wB)([()=>(0,o.R1)(e),t],()=>{const i=(0,r.A)({},t.value),a=(0,o.R1)(e);Object.keys(a).forEach(e=>{const t=a[e];void 0!==a[e]&&(i[e]=t)});const{cache:s}=a;i.cache=i.cache||f(),i.defaultCache=!s&&t.value.defaultCache,n.value=i},{immediate:!0}),(0,i.Gt)(p,n),n},b=()=>({autoClear:(0,c.HE)(),mock:(0,c.WO)(),cache:(0,c.ge)(),defaultCache:(0,c.HE)(),hashPriority:(0,c.WO)(),container:(0,c.tK)(),ssrInline:(0,c.HE)(),transformers:(0,c.MY)(),linters:(0,c.MY)()}),y=(0,c.GU)((0,i.pM)({name:"AStyleProvider",inheritAttrs:!1,props:b(),setup(e,t){let{slots:n}=t;return A(e),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}))},87904:function(e){function t(e){const t="\\[",n="\\]";return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:t,end:n}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:t,end:n,contains:["self"]}]}}e.exports=t},87906:function(e){function t(e){const t="[a-zA-Z-_][^\\n{]+\\{",n={className:"attribute",begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:";",relevance:0,contains:[{className:"variable",begin:/\.[a-zA-Z-_]+/},{className:"keyword",begin:/\(optional\)/}]}};return{name:"Roboconf",aliases:["graph","instances"],case_insensitive:!0,keywords:"import",contains:[{begin:"^facet "+t,end:/\}/,keywords:"facet",contains:[n,e.HASH_COMMENT_MODE]},{begin:"^\\s*instance of "+t,end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",n,e.HASH_COMMENT_MODE]},{begin:"^"+t,end:/\}/,contains:[n,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}}e.exports=t},87986:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(90144);function i(e,t,n,r){let i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l<o.length;l++){const a=o[l];if(!s(a))return!1;const c=e[a],u=t[a];if(i=n?n.call(r,c,u,a):void 0,!1===i||void 0===i&&c!==u)return!1}return!0}function o(e,t){return i((0,r.ux)(e),(0,r.ux)(t))}},88225:function(e){function t(e){const t={$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"};return{name:"Q",aliases:["k","kdb"],keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}e.exports=t},88416:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="ExclamationCircleOutlined",c.inheritAttrs=!1;var u=c},88727:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},88839:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(56768),i=n(90144);function o(e){const t=(0,i.IJ)();return(0,r.nT)(()=>{t.value=e()},{flush:"sync"}),t}},88940:function(e,t,n){"use strict";var r=n(46518),i=n(44576),o=n(1625),a=n(42787),s=n(52967),l=n(77740),c=n(2360),u=n(66699),d=n(6980),h=n(80747),f=n(32603),p=n(78227),g=n(79039),m=n(96395),v=i.SuppressedError,A=p("toStringTag"),b=Error,y=!!v&&3!==v.length,w=!!v&&g(function(){return 4===new v(1,2,3,{cause:4}).cause}),_=y||w,x=function(e,t,n){var r,i=o(E,this);return s?r=!_||i&&a(this)!==E?s(new b,i?a(this):E):new v:(r=i?this:c(E),u(r,A,"Error")),void 0!==n&&u(r,"message",f(n)),h(r,x,r.stack,1),u(r,"error",e),u(r,"suppressed",t),r};s?s(x,b):l(x,b,{name:!0});var E=x.prototype=_?v.prototype:c(b.prototype,{constructor:d(1,x),message:d(1,""),name:d(1,"SuppressedError")});_&&!m&&(E.constructor=x),r({global:!0,constructor:!0,arity:3,forced:_},{SuppressedError:x})},89286:function(e,t,n){"use strict";var r=n(94402),i=n(38469),o=r.Set,a=r.add;e.exports=function(e){var t=new o;return i(e,function(e){a(t,e)}),t}},89517:function(e){function t(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.COMMENT(/#\[\[/,/]]/),e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}e.exports=t},89544:function(e,t,n){"use strict";var r=n(82839);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},89708:function(e){function t(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}e.exports=t},89714:function(e){function t(e){const t="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",n="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",r="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",i="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING  SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE ",o="CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE ",a="ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME ",s="DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY ",l="ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION ",c="JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY ",u="ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE ",d="smHidden smMaximized smMinimized smNormal wmNo wmYes ",h="COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND ",f="COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE ",p="MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY ",g="NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY ",m="dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT ",v="CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM ",A="ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME ",b="PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE ",y="ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE ",w="CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT ",_="STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER ",x="COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE ",E="SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID ",S="RESULT_VAR_NAME RESULT_VAR_NAME_ENG ",C="AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID ",T="SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY ",k="SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY ",O="SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS ",M="SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS ",I="SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS ",D="ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME ",N="TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME ",R="ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk ",L="EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE ",B="cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate ",P="ISBL_SYNTAX NO_SYNTAX XML_SYNTAX ",F="WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY ",$="SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",j=i+o+a+s+l+c+u+d+h+f+p+g+m+v+A+b+y+w+_+x+E+S+C+T+k+O+M+I+D+N+R+L+B+P+F+$,H="atUser atGroup atRole ",U="aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty ",Q="apBegin apEnd ",z="alLeft alRight ",W="asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways ",G="cirCommon cirRevoked ",V="ctSignature ctEncode ctSignatureEncode ",K="clbUnchecked clbChecked clbGrayed ",Y="ceISB ceAlways ceNever ",q="ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob ",X="cfInternal cfDisplay ",J="ciUnspecified ciWrite ciRead ",Z="ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog ",ee="ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton ",te="cctDate cctInteger cctNumeric cctPick cctReference cctString cctText ",ne="cltInternal cltPrimary cltGUI ",re="dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange ",ie="dssEdit dssInsert dssBrowse dssInActive ",oe="dftDate dftShortDate dftDateTime dftTimeStamp ",ae="dotDays dotHours dotMinutes dotSeconds ",se="dtkndLocal dtkndUTC ",le="arNone arView arEdit arFull ",ce="ddaView ddaEdit ",ue="emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode ",de="ecotFile ecotProcess ",he="eaGet eaCopy eaCreate eaCreateStandardRoute ",fe="edltAll edltNothing edltQuery ",pe="essmText essmCard ",ge="esvtLast esvtLastActive esvtSpecified ",me="edsfExecutive edsfArchive ",ve="edstSQLServer edstFile ",Ae="edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile ",be="vsDefault vsDesign vsActive vsObsolete ",ye="etNone etCertificate etPassword etCertificatePassword ",we="ecException ecWarning ecInformation ",_e="estAll estApprovingOnly ",xe="evtLast evtLastActive evtQuery ",Ee="fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger ",Se="ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch ",Ce="grhAuto grhX1 grhX2 grhX3 ",Te="hltText hltRTF hltHTML ",ke="iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG ",Oe="im8bGrayscale im24bRGB im1bMonochrome ",Me="itBMP itJPEG itWMF itPNG ",Ie="ikhInformation ikhWarning ikhError ikhNoIcon ",De="icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler ",Ne="isShow isHide isByUserSettings ",Re="jkJob jkNotice jkControlJob ",Le="jtInner jtLeft jtRight jtFull jtCross ",Be="lbpAbove lbpBelow lbpLeft lbpRight ",Pe="eltPerConnection eltPerUser ",Fe="sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac ",$e="sfsItalic sfsStrikeout sfsNormal ",je="ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents ",He="mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom ",Ue="vtEqual vtGreaterOrEqual vtLessOrEqual vtRange ",Qe="rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth ",ze="rdWindow rdFile rdPrinter ",We="rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument ",Ge="reOnChange reOnChangeValues ",Ve="ttGlobal ttLocal ttUser ttSystem ",Ke="ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal ",Ye="smSelect smLike smCard ",qe="stNone stAuthenticating stApproving ",Xe="sctString sctStream ",Je="sstAnsiSort sstNaturalSort ",Ze="svtEqual svtContain ",et="soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown ",tt="tarAbortByUser tarAbortByWorkflowException ",nt="tvtAllWords tvtExactPhrase tvtAnyWord ",rt="usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp ",it="utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected ",ot="btAnd btDetailAnd btOr btNotOr btOnly ",at="vmView vmSelect vmNavigation ",st="vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection ",lt="wfatPrevious wfatNext wfatCancel wfatFinish ",ct="wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 ",ut="wfetQueryParameter wfetText wfetDelimiter wfetLabel ",dt="wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate ",ht="wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal ",ft="wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal ",pt="waAll waPerformers waManual ",gt="wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause ",mt="wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection ",vt="wiLow wiNormal wiHigh ",At="wrtSoft wrtHard ",bt="wsInit wsRunning wsDone wsControlled wsAborted wsContinued ",yt="wtmFull wtmFromCurrent wtmOnlyCurrent ",wt=H+U+Q+z+W+G+V+K+Y+q+X+J+Z+ee+te+ne+re+ie+oe+ae+se+le+ce+ue+de+he+fe+pe+ge+me+ve+Ae+be+ye+we+_e+xe+Ee+Se+Ce+Te+ke+Oe+Me+Ie+De+Ne+Re+Le+Be+Pe+Fe+$e+je+He+Ue+Qe+ze+We+Ge+Ve+Ke+Ye+qe+Xe+Je+Ze+et+tt+nt+rt+it+ot+at+st+lt+ct+ut+dt+ht+ft+pt+gt+mt+vt+At+bt+yt,_t="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",xt="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",Et="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",St=j+wt,Ct=xt,Tt="null true false nil ",kt={className:"number",begin:e.NUMBER_RE,relevance:0},Ot={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},Mt={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},It={className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Mt]},Dt={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,Mt]},Nt={variants:[It,Dt]},Rt={$pattern:t,keyword:r,built_in:St,class:Ct,literal:Tt},Lt={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:Rt,relevance:0},Bt={className:"type",begin:":[ \\t]*("+Et.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},Pt={className:"variable",keywords:Rt,begin:t,relevance:0,contains:[Bt,Lt]},Ft=n+"\\(",$t={className:"title",keywords:{$pattern:t,built_in:_t},begin:Ft,end:"\\(",returnBegin:!0,excludeEnd:!0},jt={className:"function",begin:Ft,end:"\\)$",returnBegin:!0,keywords:Rt,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[$t,Lt,Pt,Ot,kt,Nt]};return{name:"ISBL",case_insensitive:!0,keywords:Rt,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[jt,Bt,Lt,Pt,Ot,kt,Nt]}}e.exports=t},89811:function(e,t,n){function r(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],i=typeof n;"object"!==i&&"function"!==i||Object.isFrozen(n)||r(n)}),e}n(44114),n(18111),n(81148),n(22489),n(20116),n(7588),n(61701),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698);class i{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function o(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function a(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(e){for(const t in e)n[t]=e[t]}),n}const s="</span>",l=e=>!!e.scope,c=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${"_".repeat(t+1)}`)].join(" ")}return`${t}${e}`};class u{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=o(e)}openNode(e){if(!l(e))return;const t=c(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){l(e)&&(this.buffer+=s)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const d=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class h{constructor(){this.rootNode=d(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=d({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){while(this.closeNode());}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"===typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!==typeof e&&e.children&&(e.children.every(e=>"string"===typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{h._collapse(e)}))}}class f extends h{constructor(e){super(),this.options=e}addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){const e=new u(this,this.options);return e.value()}finalize(){return this.closeAllNodes(),!0}}function p(e){return e?"string"===typeof e?e:e.source:null}function g(e){return A("(?=",e,")")}function m(e){return A("(?:",e,")*")}function v(e){return A("(?:",e,")?")}function A(...e){const t=e.map(e=>p(e)).join("");return t}function b(e){const t=e[e.length-1];return"object"===typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function y(...e){const t=b(e),n="("+(t.capture?"":"?:")+e.map(e=>p(e)).join("|")+")";return n}function w(e){return new RegExp(e.toString()+"|").exec("").length-1}function _(e,t){const n=e&&e.exec(t);return n&&0===n.index}const x=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function E(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;const t=n;let r=p(e),i="";while(r.length>0){const e=x.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?i+="\\"+String(Number(e[1])+t):(i+=e[0],"("===e[0]&&n++)}return i}).map(e=>`(${e})`).join(t)}const S=/\b\B/,C="[a-zA-Z]\\w*",T="[a-zA-Z_]\\w*",k="\\b\\d+(\\.\\d+)?",O="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",M="\\b(0b[01]+)",I="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",D=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=A(t,/.*\b/,e.binary,/\b.*/)),a({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},N={begin:"\\\\[\\s\\S]",relevance:0},R={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[N]},L={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[N]},B={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},P=function(e,t,n={}){const r=a({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=y("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:A(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},F=P("//","$"),$=P("/\\*","\\*/"),j=P("#","$"),H={scope:"number",begin:k,relevance:0},U={scope:"number",begin:O,relevance:0},Q={scope:"number",begin:M,relevance:0},z={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[N,{begin:/\[/,end:/\]/,relevance:0,contains:[N]}]},W={scope:"title",begin:C,relevance:0},G={scope:"title",begin:T,relevance:0},V={begin:"\\.\\s*"+T,relevance:0},K=function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var Y=Object.freeze({__proto__:null,APOS_STRING_MODE:R,BACKSLASH_ESCAPE:N,BINARY_NUMBER_MODE:Q,BINARY_NUMBER_RE:M,COMMENT:P,C_BLOCK_COMMENT_MODE:$,C_LINE_COMMENT_MODE:F,C_NUMBER_MODE:U,C_NUMBER_RE:O,END_SAME_AS_BEGIN:K,HASH_COMMENT_MODE:j,IDENT_RE:C,MATCH_NOTHING_RE:S,METHOD_GUARD:V,NUMBER_MODE:H,NUMBER_RE:k,PHRASAL_WORDS_MODE:B,QUOTE_STRING_MODE:L,REGEXP_MODE:z,RE_STARTERS_RE:I,SHEBANG:D,TITLE_MODE:W,UNDERSCORE_IDENT_RE:T,UNDERSCORE_TITLE_MODE:G});function q(e,t){const n=e.input[e.index-1];"."===n&&t.ignoreMatch()}function X(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function J(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=q,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function Z(e,t){Array.isArray(e.illegal)&&(e.illegal=y(...e.illegal))}function ee(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function te(e,t){void 0===e.relevance&&(e.relevance=1)}const ne=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=A(n.beforeMatch,g(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},re=["of","and","for","in","not","or","if","then","parent","list","value"],ie="keyword";function oe(e,t,n=ie){const r=Object.create(null);return"string"===typeof e?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(n){Object.assign(r,oe(e[n],t,n))}),r;function i(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){const n=t.split("|");r[n[0]]=[e,ae(n[0],n[1])]})}}function ae(e,t){return t?Number(t):se(e)?0:1}function se(e){return re.includes(e.toLowerCase())}const le={},ce=e=>{console.error(e)},ue=(e,...t)=>{console.log(`WARN: ${e}`,...t)},de=(e,t)=>{le[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),le[`${e}/${t}`]=!0)},he=new Error;function fe(e,t,{key:n}){let r=0;const i=e[n],o={},a={};for(let s=1;s<=t.length;s++)a[s+r]=i[s],o[s+r]=!0,r+=w(t[s-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function pe(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw ce("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),he;if("object"!==typeof e.beginScope||null===e.beginScope)throw ce("beginScope must be object"),he;fe(e,e.begin,{key:"beginScope"}),e.begin=E(e.begin,{joinWith:""})}}function ge(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw ce("skip, excludeEnd, returnEnd not compatible with endScope: {}"),he;if("object"!==typeof e.endScope||null===e.endScope)throw ce("endScope must be object"),he;fe(e,e.end,{key:"endScope"}),e.end=E(e.end,{joinWith:""})}}function me(e){e.scope&&"object"===typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}function ve(e){me(e),"string"===typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"===typeof e.endScope&&(e.endScope={_wrap:e.endScope}),pe(e),ge(e)}function Ae(e){function t(t,n){return new RegExp(p(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=w(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=t(E(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex((e,t)=>t>0&&void 0!==e),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(e){const t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}function o(n,r){const a=n;if(n.isCompiled)return a;[X,ee,ve,ne].forEach(e=>e(n,r)),e.compilerExtensions.forEach(e=>e(n,r)),n.__beforeBegin=null,[J,Z,te].forEach(e=>e(n,r)),n.isCompiled=!0;let s=null;return"object"===typeof n.keywords&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s=s||/\w+/,n.keywords&&(n.keywords=oe(n.keywords,e.case_insensitive)),a.keywordPatternRe=t(s,!0),r&&(n.begin||(n.begin=/\B|\b/),a.beginRe=t(a.begin),n.end||n.endsWithParent||(n.end=/\B|\b/),n.end&&(a.endRe=t(a.end)),a.terminatorEnd=p(a.end)||"",n.endsWithParent&&r.terminatorEnd&&(a.terminatorEnd+=(n.end?"|":"")+r.terminatorEnd)),n.illegal&&(a.illegalRe=t(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map(function(e){return ye("self"===e?n:e)})),n.contains.forEach(function(e){o(e,a)}),n.starts&&o(n.starts,r),a.matcher=i(a),a}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language.  See documentation.");return e.classNameAliases=a(e.classNameAliases||{}),o(e)}function be(e){return!!e&&(e.endsWithParent||be(e.starts))}function ye(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return a(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:be(e)?a(e,{starts:e.starts?a(e.starts):null}):Object.isFrozen(e)?a(e):e}var we="11.11.1";class _e extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const xe=o,Ee=a,Se=Symbol("nomatch"),Ce=7,Te=function(e){const t=Object.create(null),n=Object.create(null),o=[];let a=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let c={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:f};function u(e){return c.noHighlightRe.test(e)}function d(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=c.languageDetectRe.exec(t);if(n){const t=N(n[1]);return t||(ue(s.replace("{}",n[1])),ue("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>u(e)||N(e))}function h(e,t,n){let r="",i="";"object"===typeof t?(r=e,n=t.ignoreIllegals,i=t.language):(de("10.7.0","highlight(lang, code, ...args) has been deprecated."),de("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),i=e,r=t),void 0===n&&(n=!0);const o={code:r,language:i};$("before:highlight",o);const a=o.result?o.result:p(o.language,o.code,n);return a.code=o.code,$("after:highlight",a),a}function p(e,n,r,o){const l=Object.create(null);function u(e,t){return e.keywords[t]}function d(){if(!M.keywords)return void D.addText(R);let e=0;M.keywordPatternRe.lastIndex=0;let t=M.keywordPatternRe.exec(R),n="";while(t){n+=R.substring(e,t.index);const r=T.case_insensitive?t[0].toLowerCase():t[0],i=u(M,r);if(i){const[e,o]=i;if(D.addText(n),n="",l[r]=(l[r]||0)+1,l[r]<=Ce&&(L+=o),e.startsWith("_"))n+=t[0];else{const n=T.classNameAliases[e]||e;g(t[0],n)}}else n+=t[0];e=M.keywordPatternRe.lastIndex,t=M.keywordPatternRe.exec(R)}n+=R.substring(e),D.addText(n)}function h(){if(""===R)return;let e=null;if("string"===typeof M.subLanguage){if(!t[M.subLanguage])return void D.addText(R);e=p(M.subLanguage,R,!0,I[M.subLanguage]),I[M.subLanguage]=e._top}else e=w(R,M.subLanguage.length?M.subLanguage:null);M.relevance>0&&(L+=e.relevance),D.__addSublanguage(e._emitter,e.language)}function f(){null!=M.subLanguage?h():d(),R=""}function g(e,t){""!==e&&(D.startScope(t),D.addText(e),D.endScope())}function m(e,t){let n=1;const r=t.length-1;while(n<=r){if(!e._emit[n]){n++;continue}const r=T.classNameAliases[e[n]]||e[n],i=t[n];r?g(i,r):(R=i,d(),R=""),n++}}function v(e,t){return e.scope&&"string"===typeof e.scope&&D.openNode(T.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(g(R,T.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),R=""):e.beginScope._multi&&(m(e.beginScope,t),R="")),M=Object.create(e,{parent:{value:M}}),M}function A(e,t,n){let r=_(e.endRe,n);if(r){if(e["on:end"]){const n=new i(e);e["on:end"](t,n),n.isMatchIgnored&&(r=!1)}if(r){while(e.endsParent&&e.parent)e=e.parent;return e}}if(e.endsWithParent)return A(e.parent,t,n)}function b(e){return 0===M.matcher.regexIndex?(R+=e[0],1):(F=!0,0)}function y(e){const t=e[0],n=e.rule,r=new i(n),o=[n.__beforeBegin,n["on:begin"]];for(const i of o)if(i&&(i(e,r),r.isMatchIgnored))return b(t);return n.skip?R+=t:(n.excludeBegin&&(R+=t),f(),n.returnBegin||n.excludeBegin||(R=t)),v(n,e),n.returnBegin?0:t.length}function x(e){const t=e[0],r=n.substring(e.index),i=A(M,e,r);if(!i)return Se;const o=M;M.endScope&&M.endScope._wrap?(f(),g(t,M.endScope._wrap)):M.endScope&&M.endScope._multi?(f(),m(M.endScope,e)):o.skip?R+=t:(o.returnEnd||o.excludeEnd||(R+=t),f(),o.excludeEnd&&(R=t));do{M.scope&&D.closeNode(),M.skip||M.subLanguage||(L+=M.relevance),M=M.parent}while(M!==i.parent);return i.starts&&v(i.starts,e),o.returnEnd?0:t.length}function E(){const e=[];for(let t=M;t!==T;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>D.openNode(e))}let S={};function C(t,i){const o=i&&i[0];if(R+=t,null==o)return f(),0;if("begin"===S.type&&"end"===i.type&&S.index===i.index&&""===o){if(R+=n.slice(i.index,i.index+1),!a){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=S.rule,t}return 1}if(S=i,"begin"===i.type)return y(i);if("illegal"===i.type&&!r){const e=new Error('Illegal lexeme "'+o+'" for mode "'+(M.scope||"<unnamed>")+'"');throw e.mode=M,e}if("end"===i.type){const e=x(i);if(e!==Se)return e}if("illegal"===i.type&&""===o)return R+="\n",1;if(P>1e5&&P>3*i.index){const e=new Error("potential infinite loop, way more iterations than matches");throw e}return R+=o,o.length}const T=N(e);if(!T)throw ce(s.replace("{}",e)),new Error('Unknown language: "'+e+'"');const k=Ae(T);let O="",M=o||k;const I={},D=new c.__emitter(c);E();let R="",L=0,B=0,P=0,F=!1;try{if(T.__emitTokens)T.__emitTokens(n,D);else{for(M.matcher.considerAll();;){P++,F?F=!1:M.matcher.considerAll(),M.matcher.lastIndex=B;const e=M.matcher.exec(n);if(!e)break;const t=n.substring(B,e.index),r=C(t,e);B=e.index+r}C(n.substring(B))}return D.finalize(),O=D.toHTML(),{language:e,value:O,relevance:L,illegal:!1,_emitter:D,_top:M}}catch($){if($.message&&$.message.includes("Illegal"))return{language:e,value:xe(n),illegal:!0,relevance:0,_illegalBy:{message:$.message,index:B,context:n.slice(B-100,B+100),mode:$.mode,resultSoFar:O},_emitter:D};if(a)return{language:e,value:xe(n),illegal:!1,relevance:0,errorRaised:$,_emitter:D,_top:M};throw $}}function b(e){const t={value:xe(e),illegal:!1,relevance:0,_top:l,_emitter:new c.__emitter(c)};return t._emitter.addText(e),t}function w(e,n){n=n||c.languages||Object.keys(t);const r=b(e),i=n.filter(N).filter(L).map(t=>p(t,e,!1));i.unshift(r);const o=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(N(e.language).supersetOf===t.language)return 1;if(N(t.language).supersetOf===e.language)return-1}return 0}),[a,s]=o,l=a;return l.secondBest=s,l}function x(e,t,r){const i=t&&n[t]||r;e.classList.add("hljs"),e.classList.add(`language-${i}`)}function E(e){let t=null;const n=d(e);if(u(n))return;if($("before:highlightElement",{el:e,language:n}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);if(e.children.length>0&&(c.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),c.throwUnescapedHTML)){const t=new _e("One of your code blocks includes unescaped HTML.",e.innerHTML);throw t}t=e;const r=t.textContent,i=n?h(r,{language:n,ignoreIllegals:!0}):w(r);e.innerHTML=i.value,e.dataset.highlighted="yes",x(e,n,i.language),e.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(e.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),$("after:highlightElement",{el:e,result:i,text:r})}function S(e){c=Ee(c,e)}const C=()=>{O(),de("10.6.0","initHighlighting() deprecated.  Use highlightAll() now.")};function T(){O(),de("10.6.0","initHighlightingOnLoad() deprecated.  Use highlightAll() now.")}let k=!1;function O(){function e(){O()}if("loading"===document.readyState)return k||window.addEventListener("DOMContentLoaded",e,!1),void(k=!0);const t=document.querySelectorAll(c.cssSelector);t.forEach(E)}function M(n,r){let i=null;try{i=r(e)}catch(o){if(ce("Language definition for '{}' could not be registered.".replace("{}",n)),!a)throw o;ce(o),i=l}i.name||(i.name=n),t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&R(i.aliases,{languageName:n})}function I(e){delete t[e];for(const t of Object.keys(n))n[t]===e&&delete n[t]}function D(){return Object.keys(t)}function N(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function R(e,{languageName:t}){"string"===typeof e&&(e=[e]),e.forEach(e=>{n[e.toLowerCase()]=t})}function L(e){const t=N(e);return t&&!t.disableAutodetect}function B(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}function P(e){B(e),o.push(e)}function F(e){const t=o.indexOf(e);-1!==t&&o.splice(t,1)}function $(e,t){const n=e;o.forEach(function(e){e[n]&&e[n](t)})}function j(e){return de("10.7.0","highlightBlock will be removed entirely in v12.0"),de("10.7.0","Please use highlightElement now."),E(e)}Object.assign(e,{highlight:h,highlightAuto:w,highlightAll:O,highlightElement:E,highlightBlock:j,configure:S,initHighlighting:C,initHighlightingOnLoad:T,registerLanguage:M,unregisterLanguage:I,listLanguages:D,getLanguage:N,registerAliases:R,autoDetection:L,inherit:Ee,addPlugin:P,removePlugin:F}),e.debugMode=function(){a=!1},e.safeMode=function(){a=!0},e.versionString=we,e.regex={concat:A,lookahead:g,either:y,optional:v,anyNumberOfTimes:m};for(const i in Y)"object"===typeof Y[i]&&r(Y[i]);return Object.assign(e,Y),e},ke=Te({});ke.newInstance=()=>Te({}),e.exports=ke,ke.HighlightJS=ke,ke.default=ke},89892:function(e){function t(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,r=["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"],i=["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],o=["false","true","FALSE","TRUE","nil","YES","NO","NULL"],a=["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],s={"variable.language":["this","super"],$pattern:n,keyword:i,literal:o,built_in:a,type:r},l={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}e.exports=t},90091:function(e){function t(e){const t="[a-z][a-zA-Z0-9_]*",n={className:"string",begin:"\\$.{1}"},r={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:t+":",relevance:0},e.C_NUMBER_MODE,r,n,{begin:"\\|[ ]*"+t+"([ ]+"+t+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+t}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,n,e.C_NUMBER_MODE,r]}]}}e.exports=t},90112:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(51137),i=n(16995),o=n(36068),a=n(10707),s=n(9519),l=n(56768),c=n(99078);function u(e,t,n){return u=>{const d=(0,l.EW)(()=>null===u||void 0===u?void 0:u.value),[h,f,p]=(0,a.rd)(),{getPrefixCls:g,iconPrefixCls:m}=(0,c.OQ)(),v=(0,l.EW)(()=>g()),A=(0,l.EW)(()=>({theme:h.value,token:f.value,hashId:p.value,path:["Shared",v.value]}));(0,i.Ay)(A,()=>[{"&":(0,o.av)(f.value)}]);const b=(0,l.EW)(()=>({theme:h.value,token:f.value,hashId:p.value,path:[e,d.value,m.value]}));return[(0,i.Ay)(b,()=>{const{token:i,flush:a}=(0,s.Ay)(f.value),l="function"===typeof n?n(i):n,c=(0,r.A)((0,r.A)({},l),f.value[e]),u=`.${d.value}`,h=(0,s.h1)(i,{componentCls:u,prefixCls:d.value,iconCls:`.${m.value}`,antCls:`.${v.value}`},c),g=t(h,{hashId:p.value,prefixCls:d.value,rootPrefixCls:v.value,iconPrefixCls:m.value,overrideComponentToken:f.value[e]});return a(e,c),[(0,o.vj)(f.value,d.value),g]}),p]}}},90139:function(e,t,n){n(79577),n(41549),n(49797),n(49631),n(35623);const r=n(17195);function i(e){this.mode=r.BYTE,this.data="string"===typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=i},90144:function(e,t,n){"use strict";n.d(t,{BA:function(){return Fe},C4:function(){return C},EW:function(){return Ye},Gc:function(){return ye},IG:function(){return ke},IJ:function(){return Ne},KR:function(){return De},Kh:function(){return be},Pr:function(){return je},QW:function(){return Qe},R1:function(){return Pe},Tm:function(){return Ee},X2:function(){return d},a1:function(){return Me},bl:function(){return T},ch:function(){return Ze},fE:function(){return Se},g8:function(){return xe},hV:function(){return tt},hZ:function(){return F},i9:function(){return Ie},jr:function(){return c},ju:function(){return Ce},lJ:function(){return Oe},lW:function(){return Ge},mu:function(){return Be},o5:function(){return l},qA:function(){return H},rY:function(){return Ue},u4:function(){return P},uY:function(){return s},ux:function(){return Te},wB:function(){return et},yC:function(){return a}});n(44114),n(18111),n(22489),n(7588),n(61701),n(13579),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698);var r=n(24232);let i,o;class a{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=i,!e&&i&&(this.index=(i.scopes||(i.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=i;try{return i=this,e()}finally{i=t}}else 0}on(){1===++this._on&&(this.prevScope=i,i=this)}off(){this._on>0&&0===--this._on&&(i=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function s(e){return new a(e)}function l(){return i}function c(e,t=!1){i&&i.cleanups.push(e)}const u=new WeakSet;class d{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,i&&i.active&&i.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,u.has(this)&&(u.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||g(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,k(this),A(this);const e=o,t=E;o=this,E=!0;try{return this.fn()}finally{0,b(this),o=e,E=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)_(e);this.deps=this.depsTail=void 0,k(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?u.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){y(this)&&this.run()}get dirty(){return y(this)}}let h,f,p=0;function g(e,t=!1){if(e.flags|=8,t)return e.next=f,void(f=e);e.next=h,h=e}function m(){p++}function v(){if(--p>0)return;if(f){let e=f;f=void 0;while(e){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;while(h){let n=h;h=void 0;while(n){const r=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=r}}if(e)throw e}function A(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function b(e){let t,n=e.depsTail,r=n;while(r){const e=r.prevDep;-1===r.version?(r===n&&(n=e),_(r),x(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function y(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(w(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function w(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===O)return;if(e.globalVersion=O,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!y(e)))return;e.flags|=2;const t=e.dep,n=o,i=E;o=e,E=!0;try{A(e);const n=e.fn(e._value);(0===t.version||(0,r.$H)(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(a){throw t.version++,a}finally{o=n,E=i,b(e),e.flags&=-3}}function _(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)_(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function x(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let E=!0;const S=[];function C(){S.push(E),E=!1}function T(){const e=S.pop();E=void 0===e||e}function k(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=o;o=void 0;try{t()}finally{o=e}}}let O=0;class M{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class I{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!o||!E||o===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==o)t=this.activeLink=new M(o,this),o.deps?(t.prevDep=o.depsTail,o.depsTail.nextDep=t,o.depsTail=t):o.deps=o.depsTail=t,D(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=o.depsTail,t.nextDep=void 0,o.depsTail.nextDep=t,o.depsTail=t,o.deps===t&&(o.deps=e)}return t}trigger(e){this.version++,O++,this.notify(e)}notify(e){m();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{v()}}}function D(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)D(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const N=new WeakMap,R=Symbol(""),L=Symbol(""),B=Symbol("");function P(e,t,n){if(E&&o){let t=N.get(e);t||N.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new I),r.map=t,r.key=n),r.track()}}function F(e,t,n,i,o,a){const s=N.get(e);if(!s)return void O++;const l=e=>{e&&e.trigger()};if(m(),"clear"===t)s.forEach(l);else{const o=(0,r.cy)(e),a=o&&(0,r.yI)(n);if(o&&"length"===n){const e=Number(i);s.forEach((t,n)=>{("length"===n||n===B||!(0,r.Bm)(n)&&n>=e)&&l(t)})}else switch((void 0!==n||s.has(void 0))&&l(s.get(n)),a&&l(s.get(B)),t){case"add":o?a&&l(s.get("length")):(l(s.get(R)),(0,r.CE)(e)&&l(s.get(L)));break;case"delete":o||(l(s.get(R)),(0,r.CE)(e)&&l(s.get(L)));break;case"set":(0,r.CE)(e)&&l(s.get(R));break}}v()}function $(e,t){const n=N.get(e);return n&&n.get(t)}function j(e){const t=Te(e);return t===e?t:(P(t,"iterate",B),Se(e)?t:t.map(Oe))}function H(e){return P(e=Te(e),"iterate",B),e}const U={__proto__:null,[Symbol.iterator](){return Q(this,Symbol.iterator,Oe)},concat(...e){return j(this).concat(...e.map(e=>(0,r.cy)(e)?j(e):e))},entries(){return Q(this,"entries",e=>(e[1]=Oe(e[1]),e))},every(e,t){return W(this,"every",e,t,void 0,arguments)},filter(e,t){return W(this,"filter",e,t,e=>e.map(Oe),arguments)},find(e,t){return W(this,"find",e,t,Oe,arguments)},findIndex(e,t){return W(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return W(this,"findLast",e,t,Oe,arguments)},findLastIndex(e,t){return W(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return W(this,"forEach",e,t,void 0,arguments)},includes(...e){return V(this,"includes",e)},indexOf(...e){return V(this,"indexOf",e)},join(e){return j(this).join(e)},lastIndexOf(...e){return V(this,"lastIndexOf",e)},map(e,t){return W(this,"map",e,t,void 0,arguments)},pop(){return K(this,"pop")},push(...e){return K(this,"push",e)},reduce(e,...t){return G(this,"reduce",e,t)},reduceRight(e,...t){return G(this,"reduceRight",e,t)},shift(){return K(this,"shift")},some(e,t){return W(this,"some",e,t,void 0,arguments)},splice(...e){return K(this,"splice",e)},toReversed(){return j(this).toReversed()},toSorted(e){return j(this).toSorted(e)},toSpliced(...e){return j(this).toSpliced(...e)},unshift(...e){return K(this,"unshift",e)},values(){return Q(this,"values",Oe)}};function Q(e,t,n){const r=H(e),i=r[t]();return r===e||Se(e)||(i._next=i.next,i.next=()=>{const e=i._next();return e.done||(e.value=n(e.value)),e}),i}const z=Array.prototype;function W(e,t,n,r,i,o){const a=H(e),s=a!==e&&!Se(e),l=a[t];if(l!==z[t]){const t=l.apply(e,o);return s?Oe(t):t}let c=n;a!==e&&(s?c=function(t,r){return n.call(this,Oe(t),r,e)}:n.length>2&&(c=function(t,r){return n.call(this,t,r,e)}));const u=l.call(a,c,r);return s&&i?i(u):u}function G(e,t,n,r){const i=H(e);let o=n;return i!==e&&(Se(e)?n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}):o=function(t,r,i){return n.call(this,t,Oe(r),i,e)}),i[t](o,...r)}function V(e,t,n){const r=Te(e);P(r,"iterate",B);const i=r[t](...n);return-1!==i&&!1!==i||!Ce(n[0])?i:(n[0]=Te(n[0]),r[t](...n))}function K(e,t,n=[]){C(),m();const r=Te(e)[t].apply(e,n);return v(),T(),r}const Y=(0,r.pD)("__proto__,__v_isRef,__isVue"),q=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(r.Bm));function X(e){(0,r.Bm)(e)||(e=String(e));const t=Te(this);return P(t,"has",e),t.hasOwnProperty(e)}class J{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e["__v_skip"];const i=this._isReadonly,o=this._isShallow;if("__v_isReactive"===t)return!i;if("__v_isReadonly"===t)return i;if("__v_isShallow"===t)return o;if("__v_raw"===t)return n===(i?o?me:ge:o?pe:fe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const a=(0,r.cy)(e);if(!i){let e;if(a&&(e=U[t]))return e;if("hasOwnProperty"===t)return X}const s=Reflect.get(e,t,Ie(e)?e:n);if((0,r.Bm)(t)?q.has(t):Y(t))return s;if(i||P(e,"get",t),o)return s;if(Ie(s)){const e=a&&(0,r.yI)(t)?s:s.value;return i&&(0,r.Gv)(e)?we(e):e}return(0,r.Gv)(s)?i?we(s):be(s):s}}class Z extends J{constructor(e=!1){super(!1,e)}set(e,t,n,i){let o=e[t];if(!this._isShallow){const t=Ee(o);if(Se(n)||Ee(n)||(o=Te(o),n=Te(n)),!(0,r.cy)(e)&&Ie(o)&&!Ie(n))return t||(o.value=n),!0}const a=(0,r.cy)(e)&&(0,r.yI)(t)?Number(t)<e.length:(0,r.$3)(e,t),s=Reflect.set(e,t,n,Ie(e)?e:i);return e===Te(i)&&(a?(0,r.$H)(n,o)&&F(e,"set",t,n,o):F(e,"add",t,n)),s}deleteProperty(e,t){const n=(0,r.$3)(e,t),i=e[t],o=Reflect.deleteProperty(e,t);return o&&n&&F(e,"delete",t,void 0,i),o}has(e,t){const n=Reflect.has(e,t);return(0,r.Bm)(t)&&q.has(t)||P(e,"has",t),n}ownKeys(e){return P(e,"iterate",(0,r.cy)(e)?"length":R),Reflect.ownKeys(e)}}class ee extends J{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const te=new Z,ne=new ee,re=new Z(!0),ie=e=>e,oe=e=>Reflect.getPrototypeOf(e);function ae(e,t,n){return function(...i){const o=this["__v_raw"],a=Te(o),s=(0,r.CE)(a),l="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=o[e](...i),d=n?ie:t?Me:Oe;return!t&&P(a,"iterate",c?L:R),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function se(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function le(e,t){const n={get(n){const i=this["__v_raw"],o=Te(i),a=Te(n);e||((0,r.$H)(n,a)&&P(o,"get",n),P(o,"get",a));const{has:s}=oe(o),l=t?ie:e?Me:Oe;return s.call(o,n)?l(i.get(n)):s.call(o,a)?l(i.get(a)):void(i!==o&&i.get(n))},get size(){const t=this["__v_raw"];return!e&&P(Te(t),"iterate",R),t.size},has(t){const n=this["__v_raw"],i=Te(n),o=Te(t);return e||((0,r.$H)(t,o)&&P(i,"has",t),P(i,"has",o)),t===o?n.has(t):n.has(t)||n.has(o)},forEach(n,r){const i=this,o=i["__v_raw"],a=Te(o),s=t?ie:e?Me:Oe;return!e&&P(a,"iterate",R),o.forEach((e,t)=>n.call(r,s(e),s(t),i))}};(0,r.X$)(n,e?{add:se("add"),set:se("set"),delete:se("delete"),clear:se("clear")}:{add(e){t||Se(e)||Ee(e)||(e=Te(e));const n=Te(this),r=oe(n),i=r.has.call(n,e);return i||(n.add(e),F(n,"add",e,e)),this},set(e,n){t||Se(n)||Ee(n)||(n=Te(n));const i=Te(this),{has:o,get:a}=oe(i);let s=o.call(i,e);s||(e=Te(e),s=o.call(i,e));const l=a.call(i,e);return i.set(e,n),s?(0,r.$H)(n,l)&&F(i,"set",e,n,l):F(i,"add",e,n),this},delete(e){const t=Te(this),{has:n,get:r}=oe(t);let i=n.call(t,e);i||(e=Te(e),i=n.call(t,e));const o=r?r.call(t,e):void 0,a=t.delete(e);return i&&F(t,"delete",e,void 0,o),a},clear(){const e=Te(this),t=0!==e.size,n=void 0,r=e.clear();return t&&F(e,"clear",void 0,void 0,n),r}});const i=["keys","values","entries",Symbol.iterator];return i.forEach(r=>{n[r]=ae(r,e,t)}),n}function ce(e,t){const n=le(e,t);return(t,i,o)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get((0,r.$3)(n,i)&&i in t?n:t,i,o)}const ue={get:ce(!1,!1)},de={get:ce(!1,!0)},he={get:ce(!0,!1)};const fe=new WeakMap,pe=new WeakMap,ge=new WeakMap,me=new WeakMap;function ve(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ae(e){return e["__v_skip"]||!Object.isExtensible(e)?0:ve((0,r.Zf)(e))}function be(e){return Ee(e)?e:_e(e,!1,te,ue,fe)}function ye(e){return _e(e,!1,re,de,pe)}function we(e){return _e(e,!0,ne,he,ge)}function _e(e,t,n,i,o){if(!(0,r.Gv)(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;const a=Ae(e);if(0===a)return e;const s=o.get(e);if(s)return s;const l=new Proxy(e,2===a?i:n);return o.set(e,l),l}function xe(e){return Ee(e)?xe(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function Ee(e){return!(!e||!e["__v_isReadonly"])}function Se(e){return!(!e||!e["__v_isShallow"])}function Ce(e){return!!e&&!!e["__v_raw"]}function Te(e){const t=e&&e["__v_raw"];return t?Te(t):e}function ke(e){return!(0,r.$3)(e,"__v_skip")&&Object.isExtensible(e)&&(0,r.yQ)(e,"__v_skip",!0),e}const Oe=e=>(0,r.Gv)(e)?be(e):e,Me=e=>(0,r.Gv)(e)?we(e):e;function Ie(e){return!!e&&!0===e["__v_isRef"]}function De(e){return Re(e,!1)}function Ne(e){return Re(e,!0)}function Re(e,t){return Ie(e)?e:new Le(e,t)}class Le{constructor(e,t){this.dep=new I,this["__v_isRef"]=!0,this["__v_isShallow"]=!1,this._rawValue=t?e:Te(e),this._value=t?e:Oe(e),this["__v_isShallow"]=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this["__v_isShallow"]||Se(e)||Ee(e);e=n?e:Te(e),(0,r.$H)(e,t)&&(this._rawValue=e,this._value=n?e:Oe(e),this.dep.trigger())}}function Be(e){e.dep&&e.dep.trigger()}function Pe(e){return Ie(e)?e.value:e}function Fe(e){return(0,r.Tn)(e)?e():Pe(e)}const $e={get:(e,t,n)=>"__v_raw"===t?e:Pe(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return Ie(i)&&!Ie(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function je(e){return xe(e)?e:new Proxy(e,$e)}class He{constructor(e){this["__v_isRef"]=!0,this._value=void 0;const t=this.dep=new I,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}function Ue(e){return new He(e)}function Qe(e){const t=(0,r.cy)(e)?new Array(e.length):{};for(const n in e)t[n]=Ve(e,n);return t}class ze{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this["__v_isRef"]=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return $(Te(this._object),this._key)}}class We{constructor(e){this._getter=e,this["__v_isRef"]=!0,this["__v_isReadonly"]=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ge(e,t,n){return Ie(e)?e:(0,r.Tn)(e)?new We(e):(0,r.Gv)(e)&&arguments.length>1?Ve(e,t,n):De(e)}function Ve(e,t,n){const r=e[t];return Ie(r)?r:new ze(e,t,n)}class Ke{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new I(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=O-1,this.next=void 0,this.effect=this,this["__v_isReadonly"]=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags||o===this))return g(this,!0),!0}get value(){const e=this.dep.track();return w(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Ye(e,t,n=!1){let i,o;(0,r.Tn)(e)?i=e:(i=e.get,o=e.set);const a=new Ke(i,o,n);return a}const qe={},Xe=new WeakMap;let Je;function Ze(e,t=!1,n=Je){if(n){let t=Xe.get(n);t||Xe.set(n,t=[]),t.push(e)}else 0}function et(e,t,n=r.MZ){const{immediate:i,deep:o,once:a,scheduler:s,augmentJob:c,call:u}=n,h=e=>o?e:Se(e)||!1===o||0===o?tt(e,1):tt(e);let f,p,g,m,v=!1,A=!1;if(Ie(e)?(p=()=>e.value,v=Se(e)):xe(e)?(p=()=>h(e),v=!0):(0,r.cy)(e)?(A=!0,v=e.some(e=>xe(e)||Se(e)),p=()=>e.map(e=>Ie(e)?e.value:xe(e)?h(e):(0,r.Tn)(e)?u?u(e,2):e():void 0)):p=(0,r.Tn)(e)?t?u?()=>u(e,2):e:()=>{if(g){C();try{g()}finally{T()}}const t=Je;Je=f;try{return u?u(e,3,[m]):e(m)}finally{Je=t}}:r.tE,t&&o){const e=p,t=!0===o?1/0:o;p=()=>tt(e(),t)}const b=l(),y=()=>{f.stop(),b&&b.active&&(0,r.TF)(b.effects,f)};if(a&&t){const e=t;t=(...t)=>{e(...t),y()}}let w=A?new Array(e.length).fill(qe):qe;const _=e=>{if(1&f.flags&&(f.dirty||e))if(t){const e=f.run();if(o||v||(A?e.some((e,t)=>(0,r.$H)(e,w[t])):(0,r.$H)(e,w))){g&&g();const n=Je;Je=f;try{const n=[e,w===qe?void 0:A&&w[0]===qe?[]:w,m];w=e,u?u(t,3,n):t(...n)}finally{Je=n}}}else f.run()};return c&&c(_),f=new d(p),f.scheduler=s?()=>s(_,!1):_,m=e=>Ze(e,!1,f),g=f.onStop=()=>{const e=Xe.get(f);if(e){if(u)u(e,4);else for(const t of e)t();Xe.delete(f)}},t?i?_(!0):w=f.run():s?s(_.bind(null,!0),!0):f.run(),y.pause=f.pause.bind(f),y.resume=f.resume.bind(f),y.stop=y,y}function tt(e,t=1/0,n){if(t<=0||!(0,r.Gv)(e)||e["__v_skip"])return e;if(n=n||new Map,(n.get(e)||0)>=t)return e;if(n.set(e,t),t--,Ie(e))tt(e.value,t,n);else if((0,r.cy)(e))for(let r=0;r<e.length;r++)tt(e[r],t,n);else if((0,r.vM)(e)||(0,r.CE)(e))e.forEach(e=>{tt(e,t,n)});else if((0,r.Qd)(e)){for(const r in e)tt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&tt(e[r],t,n)}return e}},90365:function(e,t,n){(function(e){e(n(83800))})(function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t<e.modeInfo.length;t++){var n=e.modeInfo[t];n.mimes&&(n.mime=n.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.mime==t)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==t)return r}return/\+xml$/.test(t)?e.findModeByMIME("application/xml"):/\+json$/.test(t)?e.findModeByMIME("application/json"):void 0},e.findModeByExtension=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==t)return r}},e.findModeByFileName=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.file&&r.file.test(t))return r}var i=t.lastIndexOf("."),o=i>-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.name.toLowerCase()==t)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==t)return r}}})},90679:function(e,t,n){"use strict";var r=n(1625),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},90716:function(e){function t(e){const t={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},n={className:"symbol",begin:"[a-zA-Z0-9_]+@"},r={className:"keyword",begin:"<",end:">",contains:[t,n]};t.contains=[r],n.contains=[r];const i=["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"];return{name:"AngelScript",aliases:["asc"],keywords:i,illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},t,n,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}e.exports=t},90776:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var r=n(41034),i=n(56768),o=n(90144),a=n(81425),s=n(60056);const l={adjustX:1,adjustY:1},c=[0,0],u={topLeft:{points:["bl","tl"],overflow:l,offset:[0,-4],targetOffset:c},topCenter:{points:["bc","tc"],overflow:l,offset:[0,-4],targetOffset:c},topRight:{points:["br","tr"],overflow:l,offset:[0,-4],targetOffset:c},bottomLeft:{points:["tl","bl"],overflow:l,offset:[0,4],targetOffset:c},bottomCenter:{points:["tc","bc"],overflow:l,offset:[0,4],targetOffset:c},bottomRight:{points:["tr","br"],overflow:l,offset:[0,4],targetOffset:c}};var d=u,h=n(82978),f=n(49974),p=n(44832),g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},m=(0,i.pM)({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:a.A.string.def("rc-dropdown"),transitionName:String,overlayClassName:a.A.string.def(""),openClassName:String,animation:a.A.any,align:a.A.object,overlayStyle:{type:Object,default:void 0},placement:a.A.string.def("bottomLeft"),overlay:a.A.any,trigger:a.A.oneOfType([a.A.string,a.A.arrayOf(a.A.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:a.A.array,hideAction:a.A.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:a.A.number.def(.15),mouseLeaveDelay:a.A.number.def(.1)},emits:["visibleChange","overlayClick"],setup(e,t){let{slots:n,emit:a,expose:l}=t;const c=(0,o.KR)(!!e.visible);(0,i.wB)(()=>e.visible,e=>{void 0!==e&&(c.value=e)});const u=(0,o.KR)();l({triggerRef:u});const m=t=>{void 0===e.visible&&(c.value=!1),a("overlayClick",t)},v=t=>{void 0===e.visible&&(c.value=t),a("visibleChange",t)},A=()=>{var t;const r=null===(t=n.overlay)||void 0===t?void 0:t.call(n),o={prefixCls:`${e.prefixCls}-menu`,onClick:m};return(0,i.bF)(i.FK,{key:p.Py},[e.arrow&&(0,i.bF)("div",{class:`${e.prefixCls}-arrow`},null),(0,h.Ob)(r,o,!1)])},b=(0,i.EW)(()=>{const{minOverlayWidthMatchTrigger:t=!e.alignPoint}=e;return t}),y=()=>{var t;const r=null===(t=n.default)||void 0===t?void 0:t.call(n);return c.value&&r?(0,h.Ob)(r[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):r},w=(0,i.EW)(()=>e.hideAction||-1===e.trigger.indexOf("contextmenu")?e.hideAction:["click"]);return()=>{const{prefixCls:t,arrow:n,showAction:o,overlayStyle:a,trigger:l,placement:h,align:p,getPopupContainer:m,transitionName:_,animation:x,overlayClassName:E}=e,S=g(e,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return(0,i.bF)(s.A,(0,r.A)((0,r.A)({},S),{},{prefixCls:t,ref:u,popupClassName:(0,f.A)(E,{[`${t}-show-arrow`]:n}),popupStyle:a,builtinPlacements:d,action:l,showAction:o,hideAction:w.value||[],popupPlacement:h,popupAlign:p,popupTransitionName:_,popupAnimation:x,popupVisible:c.value,stretch:b.value?"minWidth":"",onPopupVisibleChange:v,getPopupContainer:m}),{popup:A,default:y})}}}),v=m},90827:function(e,t,n){"use strict";n.d(t,{OF:function(){return Pe}});n(18111),n(7588),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698);var r=n(90144),i=n(56768),o=n(40355),a=n(56883);const s="%";class l{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join(s):e)||null}update(e,t){const n=Array.isArray(e)?e.join(s):e,r=this.cache.get(n),i=t(r);null===i?this.cache.delete(n):this.cache.set(n,i)}}var c=n(4663),u=n(87810);const d="data-token-hash",h="data-css-hash",f="__cssinjs_instance__";function p(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${h}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(t=>{t[f]=t[f]||e,t[f]===e&&document.head.insertBefore(t,n)});const r={};Array.from(document.querySelectorAll(`style[${h}]`)).forEach(t=>{var n;const i=t.getAttribute(h);r[i]?t[f]===e&&(null==(n=t.parentNode)||n.removeChild(t)):r[i]=!0})}return new l(e)}const g=Symbol("StyleContextKey"),m=()=>{var e,t,n;const r=(0,i.nI)();let o;if(r&&r.appContext){const i=null==(n=null==(t=null==(e=r.appContext)?void 0:e.config)?void 0:t.globalProperties)?void 0:n.__ANTDV_CSSINJS_CACHE__;i?o=i:(o=p(),r.appContext.config.globalProperties&&(r.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=o))}else o=p();return o},v={cache:p(),defaultCache:!0,hashPriority:"low"},A=()=>{const e=m();return(0,i.WQ)(g,(0,r.IJ)({...v,cache:e}))},b=e=>{const t=A(),n=(0,r.IJ)({...v,cache:p()});return(0,i.wB)([()=>(0,r.R1)(e),t],()=>{const i={...t.value},o=(0,r.R1)(e);Object.keys(o).forEach(e=>{const t=o[e];void 0!==o[e]&&(i[e]=t)});const{cache:a}=o;i.cache=i.cache||p(),i.defaultCache=!a&&t.value.defaultCache,n.value=i},{immediate:!0}),(0,i.Gt)(g,n),n},y=()=>({autoClear:(0,c.HE)(),mock:(0,c.WO)(),cache:(0,c.ge)(),defaultCache:(0,c.HE)(),hashPriority:(0,c.WO)(),container:(0,c.tK)(),ssrInline:(0,c.HE)(),transformers:(0,c.MY)(),linters:(0,c.MY)()}),w=(0,c.GU)((0,i.pM)({name:"AXStyleProvider",inheritAttrs:!1,props:y(),setup(e,{slots:t}){return b(e),()=>(0,i.h)(u.N7,e,()=>{var e;return null==(e=t.default)?void 0:e.call(t)})}})),_={useStyleInject:A,useStyleProvider:b,StyleProvider:w};function x(e,t,n,o){const a=A(),s=(0,r.IJ)(""),l=(0,r.IJ)();(0,i.nT)(()=>{s.value=[e,...t.value].join("%")});const c=e=>{a.value.cache.update(e,e=>{const[t=0,n]=e||[];return t-1===0?(null==o||o(n,!1),null):[t-1,n]})};return(0,i.wB)(s,(e,t)=>{t&&c(t),a.value.cache.update(e,e=>{const[t=0,r]=e||[],i=r||n();return[t+1,i]}),l.value=a.value.cache.get(s.value)[1]},{immediate:!0}),(0,i.xo)(()=>{c(s.value)}),l}n(44114),n(22489),n(61701),n(18237);var E=n(30050),S=n(75432);const C="data-ant-cssinjs-cache-path",T="_FILE_STYLE__";let k,O=!0;function M(){var e;if(!k&&(k={},(0,S.A)())){const t=document.createElement("div");t.className=C,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(e=>{const[t,n]=e.split(":");k[t]=n});const r=document.querySelector(`style[${C}]`);r&&(O=!1,null==(e=r.parentNode)||e.removeChild(r)),document.body.removeChild(t)}}function I(e){return M(),!!k[e]}function D(e){const t=k[e];let n=null;if(t&&(0,S.A)())if(O)n=T;else{const t=document.querySelector(`style[${h}="${k[e]}"]`);t?n=t.innerHTML:delete k[e]}return[n,t]}const N=(0,S.A)(),R="_skip_check_",L="_multi_value_";function B(e){return(0,E.s)((0,E.c)(e),E.a).replace(/\{%%%\:[^;];}/g,";")}function P(e){return"object"==typeof e&&e&&(R in e||L in e)}function F(e,t,n){if(!t)return e;const r=`.${t}`,i="low"===n?`:where(${r})`:r;return e.split(",").map(e=>{var t;const n=e.trim().split(/\s+/);let r=n[0]||"";const o=(null==(t=r.match(/^\w+/))?void 0:t[0])||"";return r=`${o}${i}${r.slice(o.length)}`,[r,...n.slice(1)].join(" ")}).join(",")}const $=new Set,j=(e,t={},{root:n,injectHash:r,parentSelectors:i}={root:!0,parentSelectors:[]})=>{const{hashId:a,layer:s,path:l,hashPriority:c,transformers:u=[],linters:d=[]}=t;let h="",f={};function p(e){const n=e.getName(a);if(!f[n]){const[r]=j(e.style,t,{root:!1,parentSelectors:i});f[n]=`@keyframes ${e.getName(a)}${r}`}}function g(e,t=[]){return e.forEach(e=>{Array.isArray(e)?g(e,t):e&&t.push(e)}),t}return g(Array.isArray(e)?e:[e]).forEach(e=>{const o="string"!=typeof e||n?e:{};if("string"==typeof o)h+=`${o}\n`;else if(o._keyframe)p(o);else{const e=u.reduce((e,t)=>{var n;return(null==(n=null==t?void 0:t.visit)?void 0:n.call(t,e))||e},o);Object.keys(e).forEach(o=>{const s=e[o];if("object"!=typeof s||!s||"animationName"===o&&s._keyframe||P(s)){let e=function(e,t){const n=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`);let r=t;!E.u[e]&&"number"==typeof r&&0!==r&&(r=`${r}px`),"animationName"===e&&null!=t&&t._keyframe&&(p(t),r=t.getName(a)),h+=`${n}:${r};`};const t=(null==s?void 0:s.value)??s;"object"==typeof s&&null!=s&&s[L]&&Array.isArray(t)?t.forEach(t=>{e(o,t)}):e(o,t)}else{let e=!1,l=o.trim(),u=!1;(n||r)&&a?l.startsWith("@")?e=!0:l=F(o,a,c):n&&!a&&("&"===l||""===l)&&(l="",u=!0);const[d,p]=j(s,t,{root:u,injectHash:e,parentSelectors:[...i,l]});f={...f,...p},h+=`${l}${d}`}})}}),n?s&&(0,o.V8)():h=`{${h}}`,[h,f]};function H(e,t){return(0,E.m)(`${e.join("%")}${t}`)}function U(e,t){const n=A(),r=(0,i.EW)(()=>{var t;return null==(t=e.value)?void 0:t.token._tokenKey}),o=(0,i.EW)(()=>{var t;return[r.value,...(null==(t=e.value)?void 0:t.path)||[]]});let s=N;return x("style",o,()=>{const{path:i,hashId:l,layer:c,nonce:u,clientOnly:p,order:g=0}=e.value||{},m=o.value.join("|");if(I(m)){const[e,t]=D(m);if(e)return[e,r.value,t,{},p,g]}const v=t(),{hashPriority:A,container:b,transformers:y,linters:w,cache:_}=n.value,[x,E]=j(v,{hashId:l,hashPriority:A,layer:c,path:null==i?void 0:i.join("-"),transformers:y,linters:w}),S=B(x),C=H(o.value,S);if(s){const e={mark:h,prepend:"queue",attachTo:b},t="function"==typeof u?u():u;t&&(e.csp={nonce:t});const n=(0,a.BD)(S,C,e);n[f]=_.instanceId,n.setAttribute(d,r.value),Object.keys(E).forEach(e=>{$.has(e)||($.add(e),(0,a.BD)(B(E[e]),`_effect-${e}`,{mark:h,prepend:"queue",attachTo:b}))})}return[S,r.value,C,E,p,g]},([,,e],t)=>{(t||n.value.autoClear)&&N&&(0,a.m6)(e,{mark:h})}),e=>e}const Q="cssVar",z=(e,t)=>{const{key:n,prefix:r,unitless:i,ignore:s,token:l,scope:c=""}=e,{cache:{instanceId:u},container:d}=useContext(_),{_tokenKey:f}=l,p=[...e.path,n,c,f];return x(Q,p,()=>{const e=t(),[a,l]=(0,o.Y5)(e,n,{prefix:r,unitless:i,ignore:s,scope:c}),u=H(p,l);return[a,l,u,n]},([,,e])=>{o.Bk&&(0,a.m6)(e,{mark:h})})};n(13579);class W{}const G="CALC_UNIT",V=new RegExp(G,"g");function K(e){return"number"==typeof e?`${e}${G}`:e}class Y extends W{constructor(e,t){super(),this.result="";const n=typeof e;this.unitlessCssVar=t,e instanceof Y?this.result=`(${e.result})`:"number"===n?this.result=K(e):"string"===n&&(this.result=e)}add(e){return e instanceof Y?this.result=`${this.result} + ${e.getResult()}`:("number"==typeof e||"string"==typeof e)&&(this.result=`${this.result} + ${K(e)}`),this.lowPriority=!0,this}sub(e){return e instanceof Y?this.result=`${this.result} - ${e.getResult()}`:("number"==typeof e||"string"==typeof e)&&(this.result=`${this.result} - ${K(e)}`),this.lowPriority=!0,this}mul(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof Y?this.result=`${this.result} * ${e.getResult(!0)}`:("number"==typeof e||"string"==typeof e)&&(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}div(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof Y?this.result=`${this.result} / ${e.getResult(!0)}`:("number"==typeof e||"string"==typeof e)&&(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}getResult(e){return this.lowPriority||e?`(${this.result})`:this.result}equal(e){const{unit:t}=e||{};let n=!0;return"boolean"==typeof t?n=t:Array.from(this.unitlessCssVar).some(e=>this.result.includes(e))&&(n=!1),this.result=this.result.replace(V,n?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}class q extends W{constructor(e){super(),this.result=0,e instanceof q?this.result=e.result:"number"==typeof e&&(this.result=e)}add(e){return e instanceof q?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}sub(e){return e instanceof q?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}mul(e){return e instanceof q?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}div(e){return e instanceof q?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}equal(){return this.result}}const X=(e,t)=>{const n="css"===e?Y:q;return e=>new n(e,t)},J=(e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function Z(e,t={},n,r){const i={...t[e]};if(null!=r&&r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach(([e,t])=>{(null!=i&&i[e]||null!=i&&i[t])&&(i[t]??(i[t]=null==i?void 0:i[e]))})}const o={...n,...i};return Object.keys(o).forEach(e=>{o[e]===t[e]&&delete o[e]}),o}var ee=n(18436);function te(e,t={},n){return"function"==typeof n?n((0,ee.h1)(t,t[e]??{})):n??{}}function ne(e){return"js"===e?{max:Math.max,min:Math.min}:{max:(...e)=>`max(${e.map(e=>(0,o.zA)(e)).join(",")})`,min:(...e)=>`min(${e.map(e=>(0,o.zA)(e)).join(",")})`}}var re=Object.defineProperty,ie=(e,t,n)=>t in e?re(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oe=(e,t,n)=>ie(e,"symbol"!=typeof t?t+"":t,n);const ae=6e5;class se{constructor(){oe(this,"map",new Map),oe(this,"objectIDMap",new WeakMap),oe(this,"nextID",0),oe(this,"lastAccessBeat",new Map),oe(this,"accessBeat",0)}set(e,t){this.clear();const n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}get(e){const t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}getCompositeKey(e){return e.map(e=>e&&"object"==typeof e?`obj_${this.getObjectID(e)}`:`${typeof e}_${e}`).join("|")}getObjectID(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);const t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}clear(){if(this.accessBeat>1e4){const e=Date.now();this.lastAccessBeat.forEach((t,n)=>{e-t>ae&&(this.map.delete(n),this.lastAccessBeat.delete(n))}),this.accessBeat=0}}}const le=new se;function ce(e,t){return(0,i.EW)(()=>{const n=le.get(t);if(n)return n;const r=e();return le.set(t,r),r})}const ue=()=>({});function de(e){const{useCSP:t=ue,useToken:n,usePrefix:a,getResetStyles:s,getCommonStyle:l,getCompUnitless:c}=e;function u(e,t,n,i){const o=Array.isArray(e)?e[0]:e;function a(e){return`${String(o)}${e.slice(0,1).toUpperCase()}${e.slice(1)}`}const s=(null==i?void 0:i.unitless)||{},l={..."function"==typeof c?c(e):{},[a("zIndexPopup")]:!0};Object.keys(s).forEach(e=>{l[a(e)]=s[e]});const u={...i,unitless:l,prefixToken:a},f=h(e,t,n,u),p=d(o,n,u);return(e,t=(0,r.BA)(e))=>{const[,n]=f((0,r.BA)(e),t),[i,o]=p(t);return[i,n,o]}}function d(e,t,r){const{unitless:o,injectStyle:a=!0,prefixToken:s,ignore:l}=r,c=({rootCls:i,cssVar:a={}})=>{const{realToken:c}=n();return z({path:[e],prefix:a.prefix,key:a.key,unitless:o,ignore:l,token:c,scope:i},()=>{const n=te(e,c,t),i=Z(e,c,n,{deprecatedTokens:null==r?void 0:r.deprecatedTokens});return Object.keys(n).forEach(e=>{i[s(e)]=i[e],delete i[e]}),i}),null};return t=>{const{cssVar:r}=n();return[n=>a&&r?(0,i.bF)(i.FK,null,[(0,i.bF)(c,{rootCls:t,cssVar:r,component:e},null),n]):n,null==r?void 0:r.key]}}function h(c,u,d,h={}){const f=Array.isArray(c)?c:[c,c],[p]=f,g=f.join("-"),m=e.layer||{name:"antd"};return(e,c=e)=>{const{theme:f,realToken:v,hashId:A,token:b,cssVar:y}=n(),{rootPrefixCls:w,iconPrefixCls:_}=a(),x=t(),E=y?"css":"js",S=(0,r.R1)(ce(()=>{const e=new Set;return y&&Object.keys(h.unitless||{}).forEach(t=>{e.add((0,o.Ki)(t,y.prefix)),e.add((0,o.Ki)(t,J(p,y.prefix)))}),X(E,e)},[E,p,null==y?void 0:y.prefix])),{max:C,min:T}=ne(E),k=(0,i.EW)(()=>({theme:f.value,token:b.value,hashId:A.value,nonce:()=>x.nonce,clientOnly:h.clientOnly,layer:m,order:h.order||-999}));return"function"==typeof s&&U((0,i.EW)(()=>({...k.value,clientOnly:!1,path:["Shared",w]})),()=>s(b.value,{prefix:{rootPrefixCls:w,iconPrefixCls:_},csp:x})),[U((0,i.EW)(()=>({...k.value,path:[g,e,_]})),()=>{if(!1===h.injectStyle)return[];const{token:t,flush:n}=(0,ee.Ay)(b),r=te(p,v,d),a=`.${e}`,s=Z(p,v,r,{deprecatedTokens:h.deprecatedTokens});y&&r&&"object"==typeof r&&Object.keys(r).forEach(e=>{r[e]=`var(${(0,o.Ki)(e,J(p,y.prefix))})`});const f=(0,i.EW)(()=>(0,ee.h1)(t.value,{componentCls:a,prefixCls:e,iconCls:`.${_}`,antCls:`.${w}`,calc:S,max:C,min:T},y?r:s)),g=(0,i.EW)(()=>u(f.value,{hashId:A.value,prefixCls:e,rootPrefixCls:w,iconPrefixCls:_}));n(p,s);const m="function"==typeof l?l(f.value,e,c,h.resetFont):null;return[!1===h.resetStyle?null:m,g.value]}),A]}}function f(e,t,n,r={}){const i=h(e,t,n,{resetStyle:!1,order:-998,...r});return({prefixCls:e,rootCls:t=e})=>(i(e,t),null)}return{genStyleHooks:u,genSubStyleComponent:f,genComponentStyleHook:h}}const he={},fe="css",pe=new Map;function ge(e){pe.set(e,(pe.get(e)||0)+1)}function me(e,t){typeof document<"u"&&document.querySelectorAll(`style[${d}="${e}"]`).forEach(e=>{var n;e[f]===t&&(null==(n=e.parentNode)||n.removeChild(e))})}const ve=0;function Ae(e,t){pe.set(e,(pe.get(e)||0)-1);const n=Array.from(pe.keys()),r=n.filter(e=>(pe.get(e)||0)<=0);n.length-r.length>ve&&r.forEach(e=>{me(e,t),pe.delete(e)})}const be=(e,t,n,r)=>{let i={...null==n?void 0:n.getDerivativeToken(e),...t};return r&&(i=r(i)),i};function ye(e,t,n=(0,r.KR)({})){const a=A(),s=(0,i.EW)(()=>Object.assign({},...t.value||[])),l=(0,i.EW)(()=>(0,o.g2)(s.value)),c=(0,i.EW)(()=>{var e;return(0,o.g2)((null==(e=n.value)?void 0:e.override)||he)});return x("token",(0,i.EW)(()=>{var t,r;return[(null==(t=n.value)?void 0:t.salt)||"",null==(r=e.value)?void 0:r.id,l.value,c.value]}),()=>{const{salt:t="",override:r=he,formatToken:i,getComputedToken:a}=n.value||{},l=a?a(s.value,r,e.value):be(s.value,r,e.value,i),c=(0,o.zw)(l,t);l._tokenKey=c,ge(c);const u=`${fe}-${(0,E.m)(c)}`;return l._hashId=u,[l,u]},e=>{var t;Ae(e[0]._tokenKey,null==(t=a.value)?void 0:t.cache.instanceId)})}function we(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const _e=class e{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e,t=!1){let n={map:this.cache};return e.forEach(e=>{var t;n=n?null==(t=null==n?void 0:n.map)?void 0:t.get(e):void 0}),null!=n&&n.value&&t&&(n.value[1]=this.cacheCallTimes++),null==n?void 0:n.value}get(e){var t;return null==(t=this.internalGet(e,!0))?void 0:t[0]}has(e){return!!this.internalGet(e)}set(t,n){if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){const[e]=this.keys.reduce((e,t)=>{const[,n]=e;return this.internalGet(t)[1]<n?[t,this.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]);this.delete(e)}this.keys.push(t)}let r=this.cache;t.forEach((e,i)=>{if(i===t.length-1)r.set(e,{value:[n,this.cacheCallTimes++]});else{const t=r.get(e);t?t.map||(t.map=new Map):r.set(e,{map:new Map}),r=r.get(e).map}})}deleteByPath(e,t){var n;const r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null==(n=r.value)?void 0:n[0];const i=this.deleteByPath(r.map,t.slice(1));return(!r.map||0===r.map.size)&&!r.value&&e.delete(t[0]),i}delete(e){if(this.has(e))return this.keys=this.keys.filter(t=>!we(t,e)),this.deleteByPath(this.cache,e)}};_e.MAX_CACHE_SIZE=20,_e.MAX_CACHE_OFFSET=5;let xe=_e;var Ee=n(1128);const Se=new xe;function Ce(e){const t=Array.isArray(e)?e:[e];return Se.has(t)||Se.set(t,new Ee.A(t)),Se.get(t)}var Te=n(15383);const ke={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},Oe={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0};var Me=n(81566);const Ie="1.0.3",De=Ce(Te.A.defaultAlgorithm),Ne={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Re=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i,...o}=t;let a={...r,override:i};return a=(0,Me.A)(a),o&&Object.entries(o).forEach(([e,t])=>{const{theme:n,...r}=t;let i=r;n&&(i=Re({...a,...r},{override:r},n)),a[e]=i}),a};function Le(){const{token:e,hashId:t,theme:n}=Te.A.useToken(),o=(0,i.EW)(()=>({token:e.value,hashed:t.value,theme:n.value})),{override:a,cssVar:s}=(0,r.R1)(o),l=(0,i.EW)(()=>o.value.token),c=(0,i.EW)(()=>o.value.hashed),u=(0,i.EW)(()=>o.value.theme??De),d=ye((0,i.EW)(()=>u.value),(0,i.EW)(()=>[Te.A.defaultSeed,l.value]),(0,i.EW)(()=>({salt:`${Ie}-${c.value||""}`,override:a,getComputedToken:Re,cssVar:s&&{prefix:s.prefix,key:s.key,unitless:Oe,ignore:ke,preserve:Ne}}))),[h,f,p]=(0,r.R1)(d),g=(0,i.EW)(()=>d.value[0]),m=(0,i.EW)(()=>c.value?d.value[1]:"");return[u,p,m,g,s]}var Be=n(3431);const{genStyleHooks:Pe,genComponentStyleHook:Fe,genSubStyleComponent:$e}=de({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,Be.A)();return{iconPrefixCls:(0,r.R1)(t),rootPrefixCls:e()}},useToken:()=>{const[e,t,n,r,i]=Le();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e}=(0,Be.A)();return(null==e?void 0:e.value)??{}},layer:{name:"antdx",dependencies:["antd"]}})},90938:function(e,t,n){"use strict";n.d(t,{Zg:function(){return o},hM:function(){return a}});var r=n(56768);const i=Symbol("OverrideContextKey"),o=()=>(0,r.WQ)(i,void 0),a=e=>{var t,n,a;const{prefixCls:s,mode:l,selectable:c,validator:u,onClick:d,expandIcon:h}=o()||{};(0,r.Gt)(i,{prefixCls:(0,r.EW)(()=>{var t,n;return null!==(n=null===(t=e.prefixCls)||void 0===t?void 0:t.value)&&void 0!==n?n:null===s||void 0===s?void 0:s.value}),mode:(0,r.EW)(()=>{var t,n;return null!==(n=null===(t=e.mode)||void 0===t?void 0:t.value)&&void 0!==n?n:null===l||void 0===l?void 0:l.value}),selectable:(0,r.EW)(()=>{var t,n;return null!==(n=null===(t=e.selectable)||void 0===t?void 0:t.value)&&void 0!==n?n:null===c||void 0===c?void 0:c.value}),validator:null!==(t=e.validator)&&void 0!==t?t:u,onClick:null!==(n=e.onClick)&&void 0!==n?n:d,expandIcon:null!==(a=e.expandIcon)&&void 0!==a?a:null===h||void 0===h?void 0:h.value})}},90943:function(e){function t(e){const t=["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"];return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:t,built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}e.exports=t},90976:function(e){var t="[0-9](_*[0-9])*",n=`\\.(${t})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",i={className:"number",variants:[{begin:`(\\b(${t})((${n})|\\.)?|(${n}))[eE][+-]?(${t})[fFdD]?\\b`},{begin:`\\b(${t})((${n})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${n})[fFdD]?\\b`},{begin:`\\b(${t})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${t})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function o(e,t,n){return-1===n?"":e.replace(t,r=>o(e,t,n-1))}function a(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+o("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),a=["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],s=["super","this"],l=["false","true","null"],c=["char","boolean","long","float","int","byte","short","double"],u={keyword:a,literal:l,type:c,built_in:s},d={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},h={className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:u,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[h,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:u,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i,d]}}e.exports=a},91098:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var r=n(51137),i=n(55798),o=n(99778),a=n(45050),s=n(94012),l=n(90112),c=n(9519);const u=e=>{const{componentCls:t,antCls:n,paddingXS:r,opacityLoading:i}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:"default",pointerEvents:"none",opacity:i},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:r}}}}};var d=u;const h=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}};var f=h,p=n(36068),g=n(49752);const m=e=>{const{componentCls:t,menuCls:n,zIndexPopup:i,dropdownArrowDistance:l,dropdownArrowOffset:c,sizePopupArrow:u,antCls:d,iconCls:h,motionDurationMid:f,dropdownPaddingVertical:m,fontSize:v,dropdownEdgeChildPadding:A,colorTextDisabled:b,fontSizeIcon:y,controlPaddingHorizontal:w,colorBgElevated:_,boxShadowPopoverArrow:x}=e;return[{[t]:(0,r.A)((0,r.A)({},(0,p.dF)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:i,display:"block","&::before":{position:"absolute",insetBlock:u/2-l,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${d}-btn > ${h}-down`]:{fontSize:y},[`${h}-down::before`]:{transition:`transform ${f}`}},[`${t}-wrap-open`]:{[`${h}-down::before`]:{transform:"rotate(180deg)"}},["\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      "]:{display:"none"},[`\n        &-show-arrow${t}-placement-topLeft,\n        &-show-arrow${t}-placement-top,\n        &-show-arrow${t}-placement-topRight\n      `]:{paddingBottom:l},[`\n        &-show-arrow${t}-placement-bottomLeft,\n        &-show-arrow${t}-placement-bottom,\n        &-show-arrow${t}-placement-bottomRight\n      `]:{paddingTop:l},[`${t}-arrow`]:(0,r.A)({position:"absolute",zIndex:1,display:"block"},(0,g.d)(u,e.borderRadiusXS,e.borderRadiusOuter,_,x)),[`\n        &-placement-top > ${t}-arrow,\n        &-placement-topLeft > ${t}-arrow,\n        &-placement-topRight > ${t}-arrow\n      `]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:c}},[`&-placement-topRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:c}},[`\n          &-placement-bottom > ${t}-arrow,\n          &-placement-bottomLeft > ${t}-arrow,\n          &-placement-bottomRight > ${t}-arrow\n        `]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateY(-100%) translateX(-50%)"},[`&-placement-bottomLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:c}},[`&-placement-bottomRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:c}},[`&${d}-slide-down-enter${d}-slide-down-enter-active${t}-placement-bottomLeft,\n          &${d}-slide-down-appear${d}-slide-down-appear-active${t}-placement-bottomLeft,\n          &${d}-slide-down-enter${d}-slide-down-enter-active${t}-placement-bottom,\n          &${d}-slide-down-appear${d}-slide-down-appear-active${t}-placement-bottom,\n          &${d}-slide-down-enter${d}-slide-down-enter-active${t}-placement-bottomRight,\n          &${d}-slide-down-appear${d}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:o.ox},[`&${d}-slide-up-enter${d}-slide-up-enter-active${t}-placement-topLeft,\n          &${d}-slide-up-appear${d}-slide-up-appear-active${t}-placement-topLeft,\n          &${d}-slide-up-enter${d}-slide-up-enter-active${t}-placement-top,\n          &${d}-slide-up-appear${d}-slide-up-appear-active${t}-placement-top,\n          &${d}-slide-up-enter${d}-slide-up-enter-active${t}-placement-topRight,\n          &${d}-slide-up-appear${d}-slide-up-appear-active${t}-placement-topRight`]:{animationName:o.nP},[`&${d}-slide-down-leave${d}-slide-down-leave-active${t}-placement-bottomLeft,\n          &${d}-slide-down-leave${d}-slide-down-leave-active${t}-placement-bottom,\n          &${d}-slide-down-leave${d}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:o.vR},[`&${d}-slide-up-leave${d}-slide-up-leave-active${t}-placement-topLeft,\n          &${d}-slide-up-leave${d}-slide-up-leave-active${t}-placement-top,\n          &${d}-slide-up-leave${d}-slide-up-leave-active${t}-placement-topRight`]:{animationName:o.YU}})},{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:i,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul,li":{listStyle:"none"},ul:{marginInline:"0.3em"}},[`${t}, ${t}-menu-submenu`]:{[n]:(0,r.A)((0,r.A)({padding:A,listStyleType:"none",backgroundColor:_,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,p.K8)(e)),{[`${n}-item-group-title`]:{padding:`${m}px ${w}px`,color:e.colorTextDescription,transition:`all ${f}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",borderRadius:e.borderRadiusSM},[`${n}-item-icon`]:{minWidth:v,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${f}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:(0,r.A)((0,r.A)({clear:"both",margin:0,padding:`${m}px ${w}px`,color:e.colorText,fontWeight:"normal",fontSize:v,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${f}`,["&:hover, &-active"]:{backgroundColor:e.controlItemBgHover}},(0,p.K8)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:b,cursor:"not-allowed","&:hover":{color:b,backgroundColor:_,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:y,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:w+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:b,backgroundColor:_,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[(0,o._j)(e,"slide-up"),(0,o._j)(e,"slide-down"),(0,a.Mh)(e,"move-up"),(0,a.Mh)(e,"move-down"),(0,s.aB)(e,"zoom-big")]]};var v=(0,l.A)("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:a,fontSize:s,lineHeight:l,paddingXXS:u,componentCls:h,borderRadiusOuter:p,borderRadiusLG:g}=e,v=(a-s*l)/2,{dropdownArrowOffset:A}=(0,i.Di)({sizePopupArrow:o,contentRadius:g,borderRadiusOuter:p}),b=(0,c.h1)(e,{menuCls:`${h}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:A,dropdownPaddingVertical:v,dropdownEdgeChildPadding:u});return[m(b),d(b),f(b)]},e=>({zIndexPopup:e.zIndexPopupBase+50}))},91181:function(e,t,n){"use strict";var r,i,o,a=n(58622),s=n(44576),l=n(20034),c=n(66699),u=n(39297),d=n(77629),h=n(66119),f=n(30421),p="Object already initialized",g=s.TypeError,m=s.WeakMap,v=function(e){return o(e)?i(e):r(e,{})},A=function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return n}};if(a||d.state){var b=d.state||(d.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,r=function(e,t){if(b.has(e))throw new g(p);return t.facade=e,b.set(e,t),t},i=function(e){return b.get(e)||{}},o=function(e){return b.has(e)}}else{var y=h("state");f[y]=!0,r=function(e,t){if(u(e,y))throw new g(p);return t.facade=e,c(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},o=function(e){return u(e,y)}}e.exports={set:r,get:i,has:o,enforce:v,getterFor:A}},91291:function(e,t,n){"use strict";var r=n(80741);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},91328:function(e,t,n){"use strict";n.d(t,{A:function(){return M}});var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(35678),l=n(17657),c=n(73429),u=n(44832),d=n(44678),h=n(60674),f=n(55107),p=n(51589),g=n(62380),m=(n(18111),n(61701),n(94012)),v=n(68333),A=n(90112),b=n(9519),y=n(36068),w=n(55798);const _=e=>{const{componentCls:t,popoverBg:n,popoverColor:r,width:o,fontWeightStrong:a,popoverPadding:s,boxShadowSecondary:l,colorTextHeading:c,borderRadiusLG:u,zIndexPopup:d,marginXS:h,colorBgElevated:f}=e;return[{[t]:(0,i.A)((0,i.A)({},(0,y.dF)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:d,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:u,boxShadow:l,padding:s},[`${t}-title`]:{minWidth:o,marginBottom:h,color:c,fontWeight:a},[`${t}-inner-content`]:{color:r}})},(0,w.Ay)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",[`${t}-content`]:{display:"inline-block"}}}]},x=e=>{const{componentCls:t}=e;return{[t]:v.s.map(n=>{const r=e[`${n}-6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},E=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:i,paddingSM:o,controlHeight:a,fontSize:s,lineHeight:l,padding:c}=e,u=a-Math.round(s*l),d=u/2,h=u/2-n,f=c;return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${f}px ${h}px`,borderBottom:`${n}px ${r} ${i}`},[`${t}-inner-content`]:{padding:`${o}px ${f}px`}}}};var S=(0,A.A)("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,i=(0,b.h1)(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[_(i),x(i),r&&E(i),(0,m.aB)(i,"zoom-big")]},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}}),C=n(49974),T=n(98684);const k=()=>(0,i.A)((0,i.A)({},(0,l.A)()),{content:(0,d.ds)(),title:(0,d.ds)()}),O=(0,o.pM)({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:(0,c.A)(k(),(0,i.A)((0,i.A)({},(0,g.jZ)()),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(e,t){let{expose:n,slots:i,attrs:l}=t;const c=(0,a.KR)();(0,T.Ay)(void 0===e.visible,"popover","`visible` will be removed in next major version, please use `open` instead."),n({getPopupDomNode:()=>{var e,t;return null===(t=null===(e=c.value)||void 0===e?void 0:e.getPopupDomNode)||void 0===t?void 0:t.call(e)}});const{prefixCls:d,configProvider:g}=(0,h.A)("popover",e),[m,v]=S(d),A=(0,o.EW)(()=>g.getPrefixCls()),b=()=>{var t,n;const{title:r=(0,u.Gk)(null===(t=i.title)||void 0===t?void 0:t.call(i)),content:a=(0,u.Gk)(null===(n=i.content)||void 0===n?void 0:n.call(i))}=e,s=!!(Array.isArray(r)?r.length:r),l=!!(Array.isArray(a)?a.length:r);return s||l?(0,o.bF)(o.FK,null,[s&&(0,o.bF)("div",{class:`${d.value}-title`},[r]),(0,o.bF)("div",{class:`${d.value}-inner-content`},[a])]):null};return()=>{const t=(0,C.A)(e.overlayClassName,v.value);return m((0,o.bF)(s.A,(0,r.A)((0,r.A)((0,r.A)({},(0,f.A)(e,["title","content"])),l),{},{prefixCls:d.value,ref:c,overlayClassName:t,transitionName:(0,p.by)(A.value,"zoom-big",e.transitionName),"data-popover-inject":!0}),{title:b,default:i.default}))}}});var M=(0,d.GU)(O)},91334:function(e){function t(e){const t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],i=["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],o=["__debug__","Ellipsis","False","None","NotImplemented","True"],a=["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:i,literal:o,type:a},l={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},u={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,u,c]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,u,c]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},h="[0-9](_?[0-9])*",f=`(\\b(${h}))?\\.(${h})|\\b(${h})\\.`,p=`\\b|${r.join("|")}`,g={className:"number",relevance:0,variants:[{begin:`(\\b(${h})|(${f}))[eE][+-]?(${h})[jJ]?(?=${p})`},{begin:`(${f})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${p})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${p})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${p})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${p})`},{begin:`\\b(${h})[jJ](?=${p})`}]},m={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},v={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",l,g,d,e.HASH_COMMENT_MODE]}]};return c.contains=[d,g,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[l,g,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},d,m,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[v]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[g,v,d]}]}}e.exports=t},91385:function(e,t,n){"use strict";var r=n(9539);e.exports=function(e,t,n){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{n=r(e[i].iterator,t,n)}catch(o){t="throw",n=o}if("throw"===t)throw n;return n}},91647:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(44114);var r=n(83110),i=n(39314),o=(0,i.A)(Object.keys,Object),a=o,s=Object.prototype,l=s.hasOwnProperty;function c(e){if(!(0,r.A)(e))return a(e);var t=[];for(var n in Object(e))l.call(e,n)&&"constructor"!=n&&t.push(n);return t}var u=c},92140:function(e,t,n){"use strict";var r=n(78227),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},92317:function(e,t,n){n(18111),n(61701),function(t,n){e.exports=n()}(0,function(){"use strict";return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},o=function(e,t,n,r,o){var a=e.name?e:e.$locale(),s=i(a[t]),l=i(a[n]),c=s||l.map(function(e){return e.slice(0,r)});if(!o)return c;var u=a.weekStart;return c.map(function(e,t){return c[(t+(u||0))%7]})},a=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):o(e,"months")},monthsShort:function(t){return t?t.format("MMM"):o(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):o(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):o(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):o(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return l.bind(this)()},n.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return o(a(),"months")},n.monthsShort=function(){return o(a(),"monthsShort","months",3)},n.weekdays=function(e){return o(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return o(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return o(a(),"weekdaysMin","weekdays",2,e)}}})},92357:function(e,t,n){var r=n(53707);function i(e,t,n,r,i){var o=a.apply(this,arguments);return e.addEventListener(n,o,i),{destroy:function(){e.removeEventListener(n,o,i)}}}function o(e,t,n,r,o){return"function"===typeof e.addEventListener?i.apply(null,arguments):"function"===typeof n?i.bind(null,document).apply(null,arguments):("string"===typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return i(e,t,n,r,o)}))}function a(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=o},92543:function(e){function t(e){const t="[A-Z_][A-Z0-9_.]*",n={$pattern:t,keyword:["HEADER","ENDSEC","DATA"]},r={className:"meta",begin:"ISO-10303-21;",relevance:10},i={className:"meta",begin:"END-ISO-10303-21;",relevance:10};return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:n,contains:[r,i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}e.exports=t},92654:function(e,t,n){n(44114),n(79577),n(41549),n(49797),n(49631),n(35623),function(t){e.exports=t()}(function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];n+=(r&i|~r&o)+t[0]-680876936|0,n=(n<<7|n>>>25)+r|0,o+=(n&r|~n&i)+t[1]-389564586|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&r)+t[2]+606105819|0,i=(i<<17|i>>>15)+o|0,r+=(i&o|~i&n)+t[3]-1044525330|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&o)+t[4]-176418897|0,n=(n<<7|n>>>25)+r|0,o+=(n&r|~n&i)+t[5]+1200080426|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&r)+t[6]-1473231341|0,i=(i<<17|i>>>15)+o|0,r+=(i&o|~i&n)+t[7]-45705983|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&o)+t[8]+1770035416|0,n=(n<<7|n>>>25)+r|0,o+=(n&r|~n&i)+t[9]-1958414417|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&r)+t[10]-42063|0,i=(i<<17|i>>>15)+o|0,r+=(i&o|~i&n)+t[11]-1990404162|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&o)+t[12]+1804603682|0,n=(n<<7|n>>>25)+r|0,o+=(n&r|~n&i)+t[13]-40341101|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&r)+t[14]-1502002290|0,i=(i<<17|i>>>15)+o|0,r+=(i&o|~i&n)+t[15]+1236535329|0,r=(r<<22|r>>>10)+i|0,n+=(r&o|i&~o)+t[1]-165796510|0,n=(n<<5|n>>>27)+r|0,o+=(n&i|r&~i)+t[6]-1069501632|0,o=(o<<9|o>>>23)+n|0,i+=(o&r|n&~r)+t[11]+643717713|0,i=(i<<14|i>>>18)+o|0,r+=(i&n|o&~n)+t[0]-373897302|0,r=(r<<20|r>>>12)+i|0,n+=(r&o|i&~o)+t[5]-701558691|0,n=(n<<5|n>>>27)+r|0,o+=(n&i|r&~i)+t[10]+38016083|0,o=(o<<9|o>>>23)+n|0,i+=(o&r|n&~r)+t[15]-660478335|0,i=(i<<14|i>>>18)+o|0,r+=(i&n|o&~n)+t[4]-405537848|0,r=(r<<20|r>>>12)+i|0,n+=(r&o|i&~o)+t[9]+568446438|0,n=(n<<5|n>>>27)+r|0,o+=(n&i|r&~i)+t[14]-1019803690|0,o=(o<<9|o>>>23)+n|0,i+=(o&r|n&~r)+t[3]-187363961|0,i=(i<<14|i>>>18)+o|0,r+=(i&n|o&~n)+t[8]+1163531501|0,r=(r<<20|r>>>12)+i|0,n+=(r&o|i&~o)+t[13]-1444681467|0,n=(n<<5|n>>>27)+r|0,o+=(n&i|r&~i)+t[2]-51403784|0,o=(o<<9|o>>>23)+n|0,i+=(o&r|n&~r)+t[7]+1735328473|0,i=(i<<14|i>>>18)+o|0,r+=(i&n|o&~n)+t[12]-1926607734|0,r=(r<<20|r>>>12)+i|0,n+=(r^i^o)+t[5]-378558|0,n=(n<<4|n>>>28)+r|0,o+=(n^r^i)+t[8]-2022574463|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^r)+t[11]+1839030562|0,i=(i<<16|i>>>16)+o|0,r+=(i^o^n)+t[14]-35309556|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^o)+t[1]-1530992060|0,n=(n<<4|n>>>28)+r|0,o+=(n^r^i)+t[4]+1272893353|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^r)+t[7]-155497632|0,i=(i<<16|i>>>16)+o|0,r+=(i^o^n)+t[10]-1094730640|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^o)+t[13]+681279174|0,n=(n<<4|n>>>28)+r|0,o+=(n^r^i)+t[0]-358537222|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^r)+t[3]-722521979|0,i=(i<<16|i>>>16)+o|0,r+=(i^o^n)+t[6]+76029189|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^o)+t[9]-640364487|0,n=(n<<4|n>>>28)+r|0,o+=(n^r^i)+t[12]-421815835|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^r)+t[15]+530742520|0,i=(i<<16|i>>>16)+o|0,r+=(i^o^n)+t[2]-995338651|0,r=(r<<23|r>>>9)+i|0,n+=(i^(r|~o))+t[0]-198630844|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[7]+1126891415|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[14]-1416354905|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[5]-57434055|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+t[12]+1700485571|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[3]-1894986606|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[10]-1051523|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[1]-2054922799|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+t[8]+1873313359|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[15]-30611744|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[6]-1560198380|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[13]+1309151649|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+t[4]-145523070|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[11]-1120210379|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[2]+718787259|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[9]-343485551|0,r=(r<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function o(e){var t,i,o,a,s,l,c=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(u,r(e.substring(t-64,t)));for(e=e.substring(t-64),i=e.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<i;t+=1)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(u,o),t=0;t<16;t+=1)o[t]=0;return a=8*c,a=a.toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),l=parseInt(a[1],16)||0,o[14]=s,o[15]=l,n(u,o),u}function a(e){var t,r,o,a,s,l,c=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(u,i(e.subarray(t-64,t)));for(e=t-64<c?e.subarray(t-64):new Uint8Array(0),r=e.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)o[t>>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(u,o),t=0;t<16;t+=1)o[t]=0;return a=8*c,a=a.toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),l=parseInt(a[1],16)||0,o[14]=s,o[15]=l,n(u,o),u}function s(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function l(e){var t;for(t=0;t<e.length;t+=1)e[t]=s(e[t]);return e.join("")}function c(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e,t){var n,r=e.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n<r;n+=1)o[n]=e.charCodeAt(n);return t?o:i}function d(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function h(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),n?r:r.buffer}function f(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function p(){this.reset()}return"5d41402abc4b2a76b9719d911017c592"!==l(o("hello"))&&function(e,t){var n=(65535&e)+(65535&t),r=(e>>16)+(t>>16)+(n>>16);return r<<16|65535&n},"undefined"===typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return e=0|e||0,e<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var i,o,a,s,l=this.byteLength,c=t(n,l),u=l;return r!==e&&(u=t(r,l)),c>u?new ArrayBuffer(0):(i=u-c,o=new ArrayBuffer(i),a=new Uint8Array(o),s=new Uint8Array(this,c,i),a.set(s),o)}}(),p.prototype.append=function(e){return this.appendBinary(c(e)),this},p.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},p.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),n=l(this._hash),e&&(n=f(n)),this.reset(),n},p.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},p.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},p.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},p.prototype._finish=function(e,t){var r,i,o,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,e),a=0;a<16;a+=1)e[a]=0;r=8*this._length,r=r.toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),o=parseInt(r[1],16)||0,e[14]=i,e[15]=o,n(this._hash,e)},p.hash=function(e,t){return p.hashBinary(c(e),t)},p.hashBinary=function(e,t){var n=o(e),r=l(n);return t?f(r):r},p.ArrayBuffer=function(){this.reset()},p.ArrayBuffer.prototype.append=function(e){var t,r=h(this._buff.buffer,e,!0),o=r.length;for(this._length+=e.byteLength,t=64;t<=o;t+=64)n(this._hash,i(r.subarray(t-64,t)));return this._buff=t-64<o?new Uint8Array(r.buffer.slice(t-64)):new Uint8Array(0),this},p.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r[t]<<(t%4<<3);return this._finish(o,i),n=l(this._hash),e&&(n=f(n)),this.reset(),n},p.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.getState=function(){var e=p.prototype.getState.call(this);return e.buff=d(e.buff),e},p.ArrayBuffer.prototype.setState=function(e){return e.buff=u(e.buff,!0),p.prototype.setState.call(this,e)},p.ArrayBuffer.prototype.destroy=p.prototype.destroy,p.ArrayBuffer.prototype._finish=p.prototype._finish,p.ArrayBuffer.hash=function(e,t){var n=a(new Uint8Array(e)),r=l(n);return t?f(r):r},p})},92690:function(e,t,n){"use strict";var r=n(38809),i=n(81735),o=n(21912),a=n(41904),s=n(22228);function l(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n.create=function(t){return l(a(e,t))},n}var c=l(s);c.Axios=o,c.Cancel=n(36409),c.CancelToken=n(3368),c.isCancel=n(95649),c.VERSION=n(38266).version,c.all=function(e){return Promise.all(e)},c.spread=n(8111),c.isAxiosError=n(83048),e.exports=c,e.exports["default"]=c},92796:function(e,t,n){"use strict";var r=n(79039),i=n(94901),o=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n===u||n!==c&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},92804:function(e){"use strict";var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=t+"+/",r=t+"-_",i=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t};e.exports={i2c:n,c2i:i(n),i2cUrl:r,c2iUrl:i(r)}},92817:function(e,t,n){"use strict";var r=n(51137),i=n(56768),o=n(90776),a=n(97070),s=n(82978),l=n(49974),c=n(73429),u=n(44832),d=n(61088),h=n(43448),f=n(60674),p=n(34322),g=n(55107),m=n(9818),v=n(98684),A=n(91098),b=n(90938);const y=(0,i.pM)({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:(0,c.A)((0,d.Qy)(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:Object,setup(e,t){let{slots:n,attrs:a,emit:c}=t;const{prefixCls:d,rootPrefixCls:y,direction:w,getPopupContainer:_}=(0,f.A)("dropdown",e),[x,E]=(0,A.A)(d);const S=(0,i.EW)(()=>{const{placement:t="",transitionName:n}=e;return void 0!==n?n:t.includes("top")?`${y.value}-slide-down`:`${y.value}-slide-up`});(0,b.hM)({prefixCls:(0,i.EW)(()=>`${d.value}-menu`),expandIcon:(0,i.EW)(()=>(0,i.bF)("span",{class:`${d.value}-menu-submenu-arrow`},[(0,i.bF)(h.A,{class:`${d.value}-menu-submenu-arrow-icon`},null)])),mode:(0,i.EW)(()=>"vertical"),selectable:(0,i.EW)(()=>!1),onClick:()=>{},validator:e=>{let{mode:t}=e;(0,v.Ay)(!t||"vertical"===t,"Dropdown",`mode="${t}" is not supported for Dropdown's Menu.`)}});const C=()=>{var t,r,o;const a=e.overlay||(null===(t=n.overlay)||void 0===t?void 0:t.call(n)),l=Array.isArray(a)?a[0]:a;if(!l)return null;const c=l.props||{};(0,p.A)(!c.mode||"vertical"===c.mode,"Dropdown",`mode="${c.mode}" is not supported for Dropdown's Menu.`);const{selectable:f=!1,expandIcon:g=(null===(o=null===(r=l.children)||void 0===r?void 0:r.expandIcon)||void 0===o?void 0:o.call(r))}=c,m="undefined"!==typeof g&&(0,u.zO)(g)?g:(0,i.bF)("span",{class:`${d.value}-menu-submenu-arrow`},[(0,i.bF)(h.A,{class:`${d.value}-menu-submenu-arrow-icon`},null)]),v=(0,u.zO)(l)?(0,s.Ob)(l,{mode:"vertical",selectable:f,expandIcon:()=>m}):l;return v},T=(0,i.EW)(()=>{const t=e.placement;if(!t)return"rtl"===w.value?"bottomRight":"bottomLeft";if(t.includes("Center")){const e=t.slice(0,t.indexOf("Center"));return(0,p.A)(!t.includes("Center"),"Dropdown",`You are using '${t}' placement in Dropdown, which is deprecated. Try to use '${e}' instead.`),e}return t}),k=(0,i.EW)(()=>"boolean"===typeof e.visible?e.visible:e.open),O=e=>{c("update:visible",e),c("visibleChange",e),c("update:open",e),c("openChange",e)};return()=>{var t,c;const{arrow:u,trigger:h,disabled:f,overlayClassName:p}=e,v=null===(t=n.default)||void 0===t?void 0:t.call(n)[0],A=(0,s.Ob)(v,(0,r.A)({class:(0,l.A)(null===(c=null===v||void 0===v?void 0:v.props)||void 0===c?void 0:c.class,{[`${d.value}-rtl`]:"rtl"===w.value},`${d.value}-trigger`)},f?{disabled:f}:{})),b=(0,l.A)(p,E.value,{[`${d.value}-rtl`]:"rtl"===w.value}),y=f?[]:h;let M;y&&y.includes("contextmenu")&&(M=!0);const I=(0,m.A)({arrowPointAtCenter:"object"===typeof u&&u.pointAtCenter,autoAdjustOverflow:!0}),D=(0,g.A)((0,r.A)((0,r.A)((0,r.A)({},e),a),{visible:k.value,builtinPlacements:I,overlayClassName:b,arrow:!!u,alignPoint:M,prefixCls:d.value,getPopupContainer:null===_||void 0===_?void 0:_.value,transitionName:S.value,trigger:y,onVisibleChange:O,placement:T.value}),["overlay","onUpdate:visible"]);return x((0,i.bF)(o.A,D,{default:()=>[A],overlay:C}))}}});y.Button=a.A,t.A=y},92951:function(e){function t(e){const t=e.regex,n=/^[a-zA-Z][a-zA-Z0-9-]*/,r=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],i=e.COMMENT(/;/,/$/),o={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},a={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},s={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},l={scope:"symbol",match:/%[si](?=".*")/},c={scope:"attribute",match:t.concat(n,/(?=\s*=)/)},u={scope:"operator",match:/=\/?/};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:r,contains:[u,c,i,o,a,s,l,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}e.exports=t},93129:function(e,t,n){n(44114);var r="[0-9](_*[0-9])*",i=`\\.(${r})`,o="[0-9a-fA-F](_*[0-9a-fA-F])*",a={className:"number",variants:[{begin:`(\\b(${r})((${i})|\\.)?|(${i}))[eE][+-]?(${r})[fFdD]?\\b`},{begin:`\\b(${r})((${i})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${i})[fFdD]?\\b`},{begin:`\\b(${r})[fFdD]\\b`},{begin:`\\b0[xX]((${o})\\.?|(${o})?\\.(${o}))[pP][+-]?(${r})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${o})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function s(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},s={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(s);const l={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},c={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(s,{className:"string"}),"self"]}]},u=a,d=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),h={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},f=h;return f.variants[1].contains=[h],h.variants[1].contains=[f],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,d,n,r,l,c,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[h,e.C_LINE_COMMENT_MODE,d],relevance:0},e.C_LINE_COMMENT_MODE,d,l,c,s,e.C_NUMBER_MODE]},d]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},l,c]},s,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},u]}}e.exports=s},93542:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="ArrowDownOutlined",c.inheritAttrs=!1;var u=c},93631:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(62573);function i(e,t,n,i){if(e&&e.addEventListener){let o=i;void 0!==o||!r.A||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o={passive:!1}),e.addEventListener(t,n,o)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}},93740:function(e){function t(e){const t={className:"number",begin:"[1-9][0-9]*",relevance:0},n={className:"symbol",begin:":[^\\]]+"},r={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",t,n]},i={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",t,e.QUOTE_STRING_MODE,n]},o=["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],a=["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"];return{name:"TP",keywords:{keyword:o,literal:a},contains:[r,i,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}e.exports=t},93758:function(e,t,n){"use strict";n.d(t,{Z:function(){return s},p:function(){return a}});var r=n(56768),i=n(90144);const o=Symbol("DisabledContextKey"),a=()=>(0,r.WQ)(o,(0,i.KR)(void 0)),s=e=>{const t=a();return(0,r.Gt)(o,(0,r.EW)(()=>{var n;return null!==(n=e.value)&&void 0!==n?n:t.value})),e}},93932:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},93958:function(e,t,n){"use strict";function r(e,t,n){let r;switch(t="number"===typeof t?`${t}px`:t,n="number"===typeof n?`${n}px`:n,e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function i(e){return{name:`${e}-fade`}}n.d(t,{V:function(){return i},n:function(){return r}})},94012:function(e,t,n){"use strict";n.d(t,{aB:function(){return A},nF:function(){return o}});var r=n(58085),i=n(33041);const o=new r.A("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),a=new r.A("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),s=new r.A("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),l=new r.A("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),c=new r.A("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),u=new r.A("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),d=new r.A("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),h=new r.A("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),f=new r.A("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),p=new r.A("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),g=new r.A("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),m=new r.A("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),v={zoom:{inKeyframes:o,outKeyframes:a},"zoom-big":{inKeyframes:s,outKeyframes:l},"zoom-big-fast":{inKeyframes:s,outKeyframes:l},"zoom-left":{inKeyframes:d,outKeyframes:h},"zoom-right":{inKeyframes:f,outKeyframes:p},"zoom-up":{inKeyframes:c,outKeyframes:u},"zoom-down":{inKeyframes:g,outKeyframes:m}},A=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=v[t];return[(0,i.b)(r,o,a,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n        ${r}-enter,\n        ${r}-appear\n      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},94304:function(e){function t(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),o=["include","extend","prepend","public","private","protected","raise","throw"],a={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...o],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},l={begin:"#<",end:">"},c=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],u={className:"subst",begin:/#\{/,end:/\}/,keywords:a},d={className:"string",contains:[e.BACKSLASH_ESCAPE,u],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,u]})]}]},h="[1-9](_?[0-9])*|0",f="[0-9](_?[0-9])*",p={className:"number",relevance:0,variants:[{begin:`\\b(${h})(\\.(${f}))?([eE][+-]?(${f})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},g={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},m={match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:a},v={variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},A={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},b={match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[g]},y={relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},w={relevance:0,match:r,scope:"title.class"},_=[d,v,m,y,A,w,b,{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[d,{begin:n}],relevance:0},p,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,u],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(l,c),relevance:0}].concat(l,c);u.contains=_,g.contains=_;const x="[>?]>",E="[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]",S="(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>",C=[{begin:/^\s*=>/,starts:{end:"$",contains:_}},{className:"meta.prompt",begin:"^("+x+"|"+E+"|"+S+")(?=[ ])",starts:{end:"$",keywords:a,contains:_}}];return c.unshift(l),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(C).concat(c).concat(_)}}e.exports=t},94402:function(e,t,n){"use strict";var r=n(79504),i=Set.prototype;e.exports={Set:Set,add:r(i.add),has:r(i.has),remove:r(i["delete"]),proto:i}},94644:function(e,t,n){"use strict";var r,i,o,a=n(77811),s=n(43724),l=n(44576),c=n(94901),u=n(20034),d=n(39297),h=n(36955),f=n(16823),p=n(66699),g=n(36840),m=n(62106),v=n(1625),A=n(42787),b=n(52967),y=n(78227),w=n(33392),_=n(91181),x=_.enforce,E=_.get,S=l.Int8Array,C=S&&S.prototype,T=l.Uint8ClampedArray,k=T&&T.prototype,O=S&&A(S),M=C&&A(C),I=Object.prototype,D=l.TypeError,N=y("toStringTag"),R=w("TYPED_ARRAY_TAG"),L="TypedArrayConstructor",B=a&&!!b&&"Opera"!==h(l.opera),P=!1,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},$={BigInt64Array:8,BigUint64Array:8},j=function(e){if(!u(e))return!1;var t=h(e);return"DataView"===t||d(F,t)||d($,t)},H=function(e){var t=A(e);if(u(t)){var n=E(t);return n&&d(n,L)?n[L]:H(t)}},U=function(e){if(!u(e))return!1;var t=h(e);return d(F,t)||d($,t)},Q=function(e){if(U(e))return e;throw new D("Target is not a typed array")},z=function(e){if(c(e)&&(!b||v(O,e)))return e;throw new D(f(e)+" is not a typed array constructor")},W=function(e,t,n,r){if(s){if(n)for(var i in F){var o=l[i];if(o&&d(o.prototype,e))try{delete o.prototype[e]}catch(a){try{o.prototype[e]=t}catch(c){}}}M[e]&&!n||g(M,e,n?t:B&&C[e]||t,r)}},G=function(e,t,n){var r,i;if(s){if(b){if(n)for(r in F)if(i=l[r],i&&d(i,e))try{delete i[e]}catch(o){}if(O[e]&&!n)return;try{return g(O,e,n?t:B&&O[e]||t)}catch(o){}}for(r in F)i=l[r],!i||i[e]&&!n||g(i,e,t)}};for(r in F)i=l[r],o=i&&i.prototype,o?x(o)[L]=i:B=!1;for(r in $)i=l[r],o=i&&i.prototype,o&&(x(o)[L]=i);if((!B||!c(O)||O===Function.prototype)&&(O=function(){throw new D("Incorrect invocation")},B))for(r in F)l[r]&&b(l[r],O);if((!B||!M||M===I)&&(M=O.prototype,B))for(r in F)l[r]&&b(l[r].prototype,M);if(B&&A(k)!==M&&b(k,M),s&&!d(M,N))for(r in P=!0,m(M,N,{configurable:!0,get:function(){return u(this)?this[R]:void 0}}),F)l[r]&&p(l[r],R,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:B,TYPED_ARRAY_TAG:P&&R,aTypedArray:Q,aTypedArrayConstructor:z,exportTypedArrayMethod:W,exportTypedArrayStaticMethod:G,getTypedArrayConstructor:H,isView:j,isTypedArray:U,TypedArray:O,TypedArrayPrototype:M}},94751:function(e,t,n){"use strict";n.d(t,{Ay:function(){return O}});n(44114),n(18111),n(7588),n(61701);var r=n(41034),i=n(56768),o=n(81425),a=n(44832),s=n(98684),l=n(92817),c=n(45389),u=n(60674),d=n(44678),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const f=()=>({prefixCls:String,href:String,separator:o.A.any,dropdownProps:(0,d.ge)(),overlay:o.A.any,onClick:(0,d.$q)()});var p=(0,i.pM)({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:f(),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:s}=t;const{prefixCls:d}=(0,u.A)("breadcrumb",e),f=(t,o)=>{const s=(0,a.rU)(n,e,"overlay");return s?(0,i.bF)(l.A,(0,r.A)((0,r.A)({},e.dropdownProps),{},{overlay:s,placement:"bottom"}),{default:()=>[(0,i.bF)("span",{class:`${o}-overlay-link`},[t,(0,i.bF)(c.A,null,null)])]}):t},p=e=>{s("click",e)};return()=>{var t;const s=null!==(t=(0,a.rU)(n,e,"separator"))&&void 0!==t?t:"/",l=(0,a.rU)(n,e),{class:c,style:u}=o,g=h(o,["class","style"]);let m;return m=void 0!==e.href?(0,i.bF)("a",(0,r.A)({class:`${d.value}-link`,onClick:p},g),[l]):(0,i.bF)("span",(0,r.A)({class:`${d.value}-link`,onClick:p},g),[l]),m=f(m,d.value),void 0!==l&&null!==l?(0,i.bF)("li",{class:c,style:u},[m,s&&(0,i.bF)("span",{class:`${d.value}-separator`},[s])]):null}}}),g=n(12560),m=n(51137),v=n(90112),A=n(9519),b=n(36068);const y=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:(0,m.A)((0,m.A)({},(0,b.dF)(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[n]:{fontSize:e.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:(0,m.A)({color:e.breadcrumbLinkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},(0,b.K8)(e)),["li:last-child"]:{color:e.breadcrumbLastItemColor,[`& > ${t}-separator`]:{display:"none"}},[`${t}-separator`]:{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor},[`${t}-link`]:{[`\n          > ${n} + span,\n          > ${n} + a\n        `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover,a:{color:e.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var w=(0,v.A)("Breadcrumb",e=>{const t=(0,A.h1)(e,{breadcrumbBaseColor:e.colorTextDescription,breadcrumbFontSize:e.fontSize,breadcrumbIconFontSize:e.fontSize,breadcrumbLinkColor:e.colorTextDescription,breadcrumbLinkColorHover:e.colorText,breadcrumbLastItemColor:e.colorText,breadcrumbSeparatorMargin:e.marginXS,breadcrumbSeparatorColor:e.colorTextDescription});return[y(t)]});const _=()=>({prefixCls:String,routes:{type:Array},params:o.A.any,separator:o.A.any,itemRender:{type:Function}});function x(e,t){if(!e.breadcrumbName)return null;const n=Object.keys(t).join("|"),r=e.breadcrumbName.replace(new RegExp(`:(${n})`,"g"),(e,n)=>t[n]||e);return r}function E(e){const{route:t,params:n,routes:r,paths:o}=e,a=r.indexOf(t)===r.length-1,s=x(t,n);return a?(0,i.bF)("span",null,[s]):(0,i.bF)("a",{href:`#/${o.join("/")}`},[s])}var S=(0,i.pM)({compatConfig:{MODE:3},name:"ABreadcrumb",inheritAttrs:!1,props:_(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:l,direction:c}=(0,u.A)("breadcrumb",e),[d,h]=w(l),f=(e,t)=>(e=(e||"").replace(/^\//,""),Object.keys(t).forEach(n=>{e=e.replace(`:${n}`,t[n])}),e),m=(e,t,n)=>{const r=[...e],i=f(t||"",n);return i&&r.push(i),r},v=e=>{let{routes:t=[],params:n={},separator:o,itemRender:a=E}=e;const s=[];return t.map(e=>{const l=f(e.path,n);l&&s.push(l);const c=[...s];let u=null;e.children&&e.children.length&&(u=(0,i.bF)(g.Ay,{items:e.children.map(e=>({key:e.path||e.breadcrumbName,label:a({route:e,params:n,routes:t,paths:m(c,e.path,n)})}))},null));const d={separator:o};return u&&(d.overlay=u),(0,i.bF)(p,(0,r.A)((0,r.A)({},d),{},{key:l||e.breadcrumbName}),{default:()=>[a({route:e,params:n,routes:t,paths:c})]})})};return()=>{var t;let u;const{routes:f,params:p={}}=e,g=(0,a.MI)((0,a.rU)(n,e)),m=null!==(t=(0,a.rU)(n,e,"separator"))&&void 0!==t?t:"/",A=e.itemRender||n.itemRender||E;f&&f.length>0?u=v({routes:f,params:p,separator:m,itemRender:A}):g.length&&(u=g.map((e,t)=>((0,s.Ay)("object"===typeof e.type&&(e.type.__ANT_BREADCRUMB_ITEM||e.type.__ANT_BREADCRUMB_SEPARATOR),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),(0,i.E3)(e,{separator:m,key:t}))));const b={[l.value]:!0,[`${l.value}-rtl`]:"rtl"===c.value,[`${o.class}`]:!!o.class,[h.value]:!0};return d((0,i.bF)("nav",(0,r.A)((0,r.A)({},o),{},{class:b}),[(0,i.bF)("ol",null,[u])]))}}}),C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const T=()=>({prefixCls:String});var k=(0,i.pM)({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:T(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:s}=(0,u.A)("breadcrumb",e);return()=>{var e;const{separator:t,class:l}=o,c=C(o,["separator","class"]),u=(0,a.MI)(null===(e=n.default)||void 0===e?void 0:e.call(n));return(0,i.bF)("span",(0,r.A)({class:[`${s.value}-separator`,l]},c),[u.length>0?u:"/"])}}});S.Item=p,S.Separator=k,S.install=function(e){return e.component(S.name,S),e.component(p.name,p),e.component(k.name,k),e};var O=S},94901:function(e){"use strict";var t="object"==typeof document&&document.all;e.exports="undefined"==typeof t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},95572:function(e,t,n){"use strict";var r=n(51137),i=n(23606),o=n(56768),a=n(90144),s=n(44832);t.A=(0,o.pM)({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const l=(0,a.Kh)({width:0,height:0,offsetHeight:0,offsetWidth:0});let c=null,u=null;const d=()=>{u&&(u.disconnect(),u=null)},h=t=>{const{onResize:n}=e,i=t[0].target,{width:o,height:a}=i.getBoundingClientRect(),{offsetWidth:s,offsetHeight:c}=i,u=Math.floor(o),d=Math.floor(a);if(l.width!==u||l.height!==d||l.offsetWidth!==s||l.offsetHeight!==c){const e={width:u,height:d,offsetWidth:s,offsetHeight:c};(0,r.A)(l,e),n&&Promise.resolve().then(()=>{n((0,r.A)((0,r.A)({},e),{offsetWidth:s,offsetHeight:c}),i)})}},f=(0,o.nI)(),p=()=>{const{disabled:t}=e;if(t)return void d();const n=(0,s.oK)(f),r=n!==c;r&&(d(),c=n),!u&&n&&(u=new i.A(h),u.observe(n))};return(0,o.sV)(()=>{p()}),(0,o.$u)(()=>{p()}),(0,o.hi)(()=>{d()}),(0,o.wB)(()=>e.disabled,()=>{p()},{flush:"post"}),()=>{var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)[0]}}})},95649:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},95719:function(e,t,n){"use strict";n.d(t,{Se:function(){return Qe}});var r,i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(e){e["InvalidFile"]="InvalidFile",e["InvalidToken"]="InvalidToken",e["InvalidMetadata"]="InvalidMetadata",e["InvalidChunkSize"]="InvalidChunkSize",e["InvalidCustomVars"]="InvalidCustomVars",e["NotAvailableUploadHost"]="NotAvailableUploadHost",e["ReadCacheFailed"]="ReadCacheFailed",e["InvalidCacheData"]="InvalidCacheData",e["WriteCacheFailed"]="WriteCacheFailed",e["RemoveCacheFailed"]="RemoveCacheFailed",e["GetCanvasContextFailed"]="GetCanvasContextFailed",e["UnsupportedFileType"]="UnsupportedFileType",e["FileReaderReadFailed"]="FileReaderReadFailed",e["NotAvailableXMLHttpRequest"]="NotAvailableXMLHttpRequest",e["InvalidProgressEventTarget"]="InvalidProgressEventTarget",e["RequestError"]="RequestError"})(r||(r={}));var o=function(){function e(e,t){this.name=e,this.message=t,this.stack=(new Error).stack}return e}(),a=function(e){function t(t,n,i,o){var a=e.call(this,r.RequestError,i)||this;return a.code=t,a.reqId=n,a.isRequestError=!0,a.data=o,a}return i(t,e),t}(o),s=function(e){function t(t,n){return void 0===n&&(n=""),e.call(this,0,n,t)||this}return i(t,e),t}(a),l=(n(44114),n(18111),n(22489),n(7588),function(){function e(e,t){this.runTask=e,this.limit=t,this.aborted=!1,this.queue=[],this.processing=[]}return e.prototype.enqueue=function(e){var t=this;return new Promise(function(n,r){t.queue.push({task:e,resolve:n,reject:r}),t.check()})},e.prototype.run=function(e){var t=this;this.queue=this.queue.filter(function(t){return t!==e}),this.processing.push(e),this.runTask(e.task).then(function(){t.processing=t.processing.filter(function(t){return t!==e}),e.resolve(),t.check()},function(t){return e.reject(t)})},e.prototype.check=function(){var e=this;if(!this.aborted){var t=this.processing.length,n=this.limit-t;this.queue.slice(0,n).forEach(function(t){e.run(t)})}},e.prototype.abort=function(){this.queue=[],this.aborted=!0},e}()),c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u.apply(this,arguments)},d=function(){function e(){this.closed=!1}return e.prototype.unsubscribe=function(){this.closed||(this.closed=!0,this._unsubscribe&&this._unsubscribe())},e.prototype.add=function(e){this._unsubscribe=e},e}(),h=function(e){function t(t,n,r){var i=e.call(this)||this;return i.isStopped=!1,i.destination=t&&"object"===typeof t?t:u(u(u({},t&&{next:t}),n&&{error:n}),r&&{complete:r}),i}return c(t,e),t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype.next=function(e){!this.isStopped&&this.destination.next&&this.destination.next(e)},t.prototype.error=function(e){!this.isStopped&&this.destination.error&&(this.isStopped=!0,this.destination.error(e))},t.prototype.complete=function(e){!this.isStopped&&this.destination.complete&&(this.isStopped=!0,this.destination.complete(e))},t}(d),f=function(){function e(e){this._subscribe=e}return e.prototype.subscribe=function(e,t,n){var r=new h(e,t,n);return r.add(this._subscribe(r)),r},e}();function p(e){if(null===e||"undefined"===typeof e)return"";var t,n,r=e+"",i="",o=0;t=n=0,o=r.length;for(var a=0;a<o;a++){var s=r.charCodeAt(a),l=null;if(s<128)n++;else if(s>127&&s<2048)l=String.fromCharCode(s>>6|192,63&s|128);else if((63488&s^55296)>0)l=String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128);else{if((64512&s^55296)>0)throw new RangeError("Unmatched trail surrogate at "+a);var c=r.charCodeAt(++a);if((64512&c^56320)>0)throw new RangeError("Unmatched lead surrogate at "+(a-1));s=((1023&s)<<10)+(1023&c)+65536,l=String.fromCharCode(s>>18|240,s>>12&63|128,s>>6&63|128,63&s|128)}null!==l&&(n>t&&(i+=r.slice(t,n)),i+=l,t=n=a+1)}return n>t&&(i+=r.slice(t,o)),i}function g(e){var t=[],n=0,r=0,i=0;e+="";while(n<e.length){r=255&e.charCodeAt(n),i=0,r<=191?(r&=127,i=1):r<=223?(r&=31,i=2):r<=239?(r&=15,i=3):(r&=7,i=4);for(var o=1;o<i;++o)r=r<<6|63&e.charCodeAt(o+n);4===i?(r-=65536,t.push(String.fromCharCode(55296|r>>10&1023)),t.push(String.fromCharCode(56320|1023&r))):t.push(String.fromCharCode(r)),n+=i}return t.join("")}function m(e){var t,n,r,i,o,a,s,l,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=0,d=0,h="",f=[];if(!e)return e;e=p(e+"");do{t=e.charCodeAt(u++),n=e.charCodeAt(u++),r=e.charCodeAt(u++),l=t<<16|n<<8|r,i=l>>18&63,o=l>>12&63,a=l>>6&63,s=63&l,f[d++]=c.charAt(i)+c.charAt(o)+c.charAt(a)+c.charAt(s)}while(u<e.length);switch(h=f.join(""),e.length%3){case 1:h=h.slice(0,-2)+"==";break;case 2:h=h.slice(0,-1)+"=";break}return h}function v(e){var t,n,r,i,o,a,s,l,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=0,d=0,h="",f=[];if(!e)return e;e+="";do{i=c.indexOf(e.charAt(u++)),o=c.indexOf(e.charAt(u++)),a=c.indexOf(e.charAt(u++)),s=c.indexOf(e.charAt(u++)),l=i<<18|o<<12|a<<6|s,t=l>>16&255,n=l>>8&255,r=255&l,f[d++]=64===a?String.fromCharCode(t):64===s?String.fromCharCode(t,n):String.fromCharCode(t,n,r)}while(u<e.length);return h=f.join(""),g(h)}function A(e){return e=m(e),e.replace(/\//g,"_").replace(/\+/g,"-")}function b(e){return e=e.replace(/_/g,"/").replace(/-/g,"+"),v(e)}n(81148),n(18237);var y,w=n(92654),_=n.n(w),x=function(){return x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},x.apply(this,arguments)},E=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},S=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},C=Math.pow(1024,2);function T(e,t){var n=t*C;if(n>e.size)n=e.size;else while(e.size>1e4*n)n*=2;for(var r=[],i=Math.ceil(e.size/n),o=0;o<i;o++){var a=e.slice(n*o,o===i-1?e.size:n*(o+1));r.push(a)}return r}function k(e){return Object.keys(e).every(function(e){return 0===e.indexOf("x-qn-meta-")})}function O(e){return Object.keys(e).every(function(e){return 0===e.indexOf("x:")})}function M(e){return e.reduce(function(e,t){return e+t},0)}function I(e,t,n){try{localStorage.setItem(e,JSON.stringify(t))}catch(i){n.warn(new o(r.WriteCacheFailed,"setLocalFileInfo failed: "+e))}}function D(e,t,n){var r=null==t?"_":"_key_"+t+"_";return"qiniu_js_sdk_upload_file_name_"+e+r+"size_"+n}function N(e,t){try{localStorage.removeItem(e)}catch(n){t.warn(new o(r.RemoveCacheFailed,"removeLocalFileInfo failed. key: "+e))}}function R(e,t){var n=null;try{n=localStorage.getItem(e)}catch(y){t.warn(new o(r.ReadCacheFailed,"getLocalFileInfo failed. key: "+e))}if(null==n)return null;var i=null;try{i=JSON.parse(n)}catch(a){N(e,t),t.warn(new o(r.InvalidCacheData,"getLocalFileInfo failed to parse. key: "+e))}return i}function L(e){var t="UpToken "+e;return{Authorization:t}}function B(e){var t=L(e);return x({"content-type":"application/octet-stream"},t)}function P(e){var t=L(e);return x({"content-type":"application/json"},t)}function F(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)return new window.ActiveXObject("Microsoft.XMLHTTP");throw new o(r.NotAvailableXMLHttpRequest,"the current environment does not support.")}function $(e){return E(this,void 0,void 0,function(){var t,n;return S(this,function(r){switch(r.label){case 0:return[4,j(e)];case 1:return t=r.sent(),n=new(_().ArrayBuffer),n.append(t),[2,n.end()]}})})}function j(e){return new Promise(function(t,n){var i=new FileReader;i.onload=function(e){if(e.target){var i=e.target.result;t(i)}else n(new o(r.InvalidProgressEventTarget,"progress event target is undefined"))},i.onerror=function(){n(new o(r.FileReaderReadFailed,"fileReader read failed"))},i.readAsArrayBuffer(e)})}function H(e,t){return new Promise(function(n,r){var i=F();if(i.open(t.method,e),t.onCreate&&t.onCreate(i),t.headers){var o=t.headers;Object.keys(o).forEach(function(e){i.setRequestHeader(e,o[e])})}i.upload.addEventListener("progress",function(e){e.lengthComputable&&t.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}),i.onreadystatechange=function(){var e=i.responseText;if(4===i.readyState){var t=i.getResponseHeader("x-reqId")||"";if(0!==i.status)if(200===i.status)try{n({data:JSON.parse(e),reqId:t})}catch(c){r(c)}else{var o="xhr request failed, code: "+i.status;e&&(o+=" response: "+e);var l=void 0;try{l=JSON.parse(e)}catch(y){}r(new a(i.status,t,o,l))}else r(new s("network error.",t))}},i.send(t.body)})}function U(e){if(e&&e.match){var t=e.match(/(^https?)/);if(!t)return"";var n=t[1];return t=e.match(/^https?:\/\/([^:^/]*):(\d*)/),t?t[2]:"http"===n?"80":"443"}return""}function Q(e){if(e&&e.match){var t=e.match(/^https?:\/\/([^:^/]*)/);return t?t[1]:""}return""}function z(e){if(!e)throw new o(r.InvalidToken,"invalid token.");var t=e.split(":");if(1===t.length)throw new o(r.InvalidToken,"invalid token segments.");var n=t.length>3?t[1]:t[0];if(!n)throw new o(r.InvalidToken,"missing assess key field.");var i=null;try{i=JSON.parse(b(t[t.length-1]))}catch(s){throw new o(r.InvalidToken,"token parse failed.")}if(null==i)throw new o(r.InvalidToken,"putPolicy is null.");if(null==i.scope)throw new o(r.InvalidToken,"scope field is null.");var a=i.scope.split(":")[0];if(!a)throw new o(r.InvalidToken,"resolve bucketName failed.");return{assessKey:n,bucketName:a,scope:i.scope}}function W(e){var t=window.URL||window.webkitURL||window.mozURL;return t.createObjectURL(e)}var G={z0:"z0",z1:"z1",z2:"z2",na0:"na0",as0:"as0",cnEast2:"cn-east-2"},V=(y={},y[G.z0]={srcUphost:["up.qiniup.com"],cdnUphost:["upload.qiniup.com"]},y[G.z1]={srcUphost:["up-z1.qiniup.com"],cdnUphost:["upload-z1.qiniup.com"]},y[G.z2]={srcUphost:["up-z2.qiniup.com"],cdnUphost:["upload-z2.qiniup.com"]},y[G.na0]={srcUphost:["up-na0.qiniup.com"],cdnUphost:["upload-na0.qiniup.com"]},y[G.as0]={srcUphost:["up-as0.qiniup.com"],cdnUphost:["upload-as0.qiniup.com"]},y[G.cnEast2]={srcUphost:["up-cn-east-2.qiniup.com"],cdnUphost:["upload-cn-east-2.qiniup.com"]},y),K=(n(61701),n(68031)),Y=function(){return Y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Y.apply(this,arguments)},q=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},X=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};function J(e,t,n){return q(this,void 0,void 0,function(){var r,i;return X(this,function(o){return r=(0,K.stringify)({ak:e,bucket:t}),i=n+"://api.qiniu.com/v2/query?"+r,[2,H(i,{method:"GET"})]})})}function Z(e,t,n){var r=n.url,i=n.id;return r+"/buckets/"+e+"/objects/"+(null!=t?A(t):"~")+"/uploads/"+i}function ee(e,t,n,r){var i=r+"/buckets/"+t+"/objects/"+(null!=n?A(n):"~")+"/uploads";return H(i,{method:"POST",headers:L(e)})}function te(e,t,n,r,i){var o=z(e).bucketName,a=Z(o,t,r)+"/"+n,s=B(e);return i.md5&&(s["Content-MD5"]=i.md5),H(a,Y(Y({},i),{method:"PUT",headers:s}))}function ne(e,t,n,r){var i=z(e).bucketName,o=Z(i,t,n);return H(o,Y(Y({},r),{method:"POST",headers:P(e)}))}function re(e,t,n){return H(e,Y({method:"POST",body:t},n))}var ie=function(){return ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ie.apply(this,arguments)},oe=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},ae=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},se=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},le=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(se(arguments[t]));return e},ce=4,ue=[0,502,503,504,599],de=le(ue,[406]),he=Math.pow(1024,3),fe=function(){function e(e,t,n,r){this.hostPool=n,this.logger=r,this.aborted=!1,this.retryCount=0,this.xhrList=[],this.config=e.config,r.info("config inited.",this.config),this.putExtra=ie({fname:""},e.putExtra),r.info("putExtra inited.",this.putExtra),this.key=e.key,this.file=e.file,this.token=e.token,this.onData=t.onData,this.onError=t.onError,this.onComplete=t.onComplete;try{var i=z(this.token);this.bucketName=i.bucketName,this.assessKey=i.assessKey}catch(o){r.error("get putPolicy from token failed.",o),this.onError(o)}}return e.prototype.checkAndUpdateUploadHost=function(){return oe(this,void 0,void 0,function(){var e;return ae(this,function(t){switch(t.label){case 0:return this.logger.info("get available upload host."),[4,this.hostPool.getUp(this.assessKey,this.bucketName,this.config.upprotocol)];case 1:if(e=t.sent(),null==e)throw new o(r.NotAvailableUploadHost,"no available upload host.");return null!=this.uploadHost&&this.uploadHost.host!==e.host?this.logger.warn("host switches from "+this.uploadHost.host+" to "+e.host+"."):this.logger.info("use host "+e.host+"."),this.uploadHost=e,[2]}})})},e.prototype.checkAndUnfreezeHost=function(){this.logger.info("check unfreeze host."),null!=this.uploadHost&&this.uploadHost.isFrozen()&&(this.logger.warn(this.uploadHost.host+" will be unfrozen."),this.uploadHost.unfreeze())},e.prototype.checkAndFreezeHost=function(e){this.logger.info("check freeze host."),e instanceof a&&null!=this.uploadHost&&ue.includes(e.code)&&(this.logger.warn(this.uploadHost.host+" will be temporarily frozen."),this.uploadHost.freeze())},e.prototype.handleError=function(e){this.logger.error(e.message),this.onError(e)},e.prototype.putFile=function(){return oe(this,void 0,void 0,function(){var e,t,n,i;return ae(this,function(s){switch(s.label){case 0:if(this.aborted=!1,this.putExtra.fname||(this.logger.info("use file.name as fname."),this.putExtra.fname=this.file.name),this.file.size>1e4*he)return this.handleError(new o(r.InvalidFile,"file size exceed maximum value 10000G")),[2];if(this.putExtra.customVars&&!O(this.putExtra.customVars))return this.handleError(new o(r.InvalidCustomVars,"customVars key should start width x:")),[2];if(this.putExtra.metadata&&!k(this.putExtra.metadata))return this.handleError(new o(r.InvalidMetadata,"metadata key should start with x-qn-meta-")),[2];s.label=1;case 1:return s.trys.push([1,4,,5]),this.uploadAt=(new Date).getTime(),[4,this.checkAndUpdateUploadHost()];case 2:return s.sent(),[4,this.run()];case 3:return e=s.sent(),this.onComplete(e.data),this.checkAndUnfreezeHost(),this.sendLog(e.reqId,200),[2];case 4:return t=s.sent(),this.aborted?(this.logger.warn("upload is aborted."),this.sendLog("",-2),[2]):(this.clear(),this.logger.error(t),t instanceof a&&(this.sendLog(t.reqId,t.code),this.checkAndFreezeHost(t),n=++this.retryCount<=this.config.retryCount,i=de.includes(t.code),i&&n)?(this.logger.warn("error auto retry: "+this.retryCount+"/"+this.config.retryCount+"."),this.putFile(),[2]):(this.onError(t),[3,5]));case 5:return[2]}})})},e.prototype.clear=function(){this.xhrList.forEach(function(e){e.onreadystatechange=null,e.abort()}),this.xhrList=[],this.logger.info("cleanup uploading xhr.")},e.prototype.stop=function(){this.logger.info("aborted."),this.clear(),this.aborted=!0},e.prototype.addXhr=function(e){this.xhrList.push(e)},e.prototype.sendLog=function(e,t){var n,r;this.logger.report({code:t,reqId:e,remoteIp:"",upType:"jssdk-h5",size:this.file.size,time:Math.floor(this.uploadAt/1e3),port:U(null===(n=this.uploadHost)||void 0===n?void 0:n.getUrl()),host:Q(null===(r=this.uploadHost)||void 0===r?void 0:r.getUrl()),bytesSent:this.progress?this.progress.total.loaded:0,duration:Math.floor(((new Date).getTime()-this.uploadAt)/1e3)})},e.prototype.getProgressInfoItem=function(e,t,n){return ie({size:t,loaded:e,percent:e/t*100},null==n?{}:{fromCache:n})},e}(),pe=fe,ge=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),me=function(){return me=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},me.apply(this,arguments)},ve=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},Ae=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}};function be(e){var t=/^[1-9]\d*$/;return t.test(String(e))}var ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ge(t,e),t.prototype.run=function(){return ve(this,void 0,void 0,function(){var e,t,n,i,s,c=this;return Ae(this,function(u){switch(u.label){case 0:if(this.logger.info("start run Resume."),!this.config.chunkSize||!be(this.config.chunkSize))throw new o(r.InvalidChunkSize,"chunkSize must be a positive integer");if(this.config.chunkSize>1024)throw new o(r.InvalidChunkSize,"chunkSize maximum value is 1024");return[4,this.initBeforeUploadChunks()];case 1:u.sent(),e=new l(function(t){return ve(c,void 0,void 0,function(){return Ae(this,function(n){switch(n.label){case 0:if(this.aborted)throw e.abort(),new Error("pool is aborted");return[4,this.uploadChunk(t)];case 1:return n.sent(),[2]}})})},this.config.concurrentRequestLimit),t=null,n=this.getLocalKey(),i=this.chunks.map(function(t,n){return e.enqueue({chunk:t,index:n})}),u.label=2;case 2:return u.trys.push([2,5,,6]),[4,Promise.all(i)];case 3:return u.sent(),[4,this.mkFileReq()];case 4:return t=u.sent(),[3,6];case 5:throw s=u.sent(),s instanceof a&&(612===s.code||400===s.code)&&N(n,this.logger),s;case 6:return N(n,this.logger),[2,t]}})})},t.prototype.uploadChunk=function(e){return ve(this,void 0,void 0,function(){var t,n,r,i,o,a,s,l,c,u=this;return Ae(this,function(d){switch(d.label){case 0:return t=e.index,n=e.chunk,r=this.cachedUploadedList[t],this.logger.info("upload part "+t+", cache:",r),i=this.config.checkByMD5,o=function(){u.usedCacheList[t]=!0,u.updateChunkProgress(n.size,t),u.uploadedList[t]=r,u.updateLocalCache()},r&&!i?(o(),[2]):[4,$(n)];case 1:return a=d.sent(),this.logger.info("computed part md5.",a),r&&a===r.md5?(o(),[2]):(this.usedCacheList[t]=!1,s=function(e){u.updateChunkProgress(e.loaded,t)},l={body:n,md5:this.config.checkByServer?a:void 0,onProgress:s,onCreate:function(e){return u.addXhr(e)}},this.logger.info("part "+t+" start uploading."),[4,te(this.token,this.key,e.index+1,this.getUploadInfo(),l)]);case 2:return c=d.sent(),this.logger.info("part "+t+" upload completed."),s({loaded:n.size,total:n.size}),this.uploadedList[t]={etag:c.data.etag,md5:c.data.md5,size:n.size},this.updateLocalCache(),[2]}})})},t.prototype.mkFileReq=function(){return ve(this,void 0,void 0,function(){var e,t,n=this;return Ae(this,function(r){switch(r.label){case 0:return e=me(me(me({parts:this.uploadedList.map(function(e,t){return{etag:e.etag,partNumber:t+1}}),fname:this.putExtra.fname},this.putExtra.mimeType&&{mimeType:this.putExtra.mimeType}),this.putExtra.customVars&&{customVars:this.putExtra.customVars}),this.putExtra.metadata&&{metadata:this.putExtra.metadata}),this.logger.info("parts upload completed, make file.",e),[4,ne(this.token,this.key,this.getUploadInfo(),{onCreate:function(e){return n.addXhr(e)},body:JSON.stringify(e)})];case 1:return t=r.sent(),this.logger.info("finish Resume Progress."),this.updateMkFileProgress(1),[2,t]}})})},t.prototype.initBeforeUploadChunks=function(){return ve(this,void 0,void 0,function(){var e,t,n;return Ae(this,function(r){switch(r.label){case 0:return this.uploadedList=[],this.usedCacheList=[],e=R(this.getLocalKey(),this.logger),e?[3,2]:(this.logger.info("init upload parts from api."),[4,ee(this.token,this.bucketName,this.key,this.uploadHost.getUrl())]);case 1:return t=r.sent(),this.logger.info("initd upload parts of id: "+t.data.uploadId+"."),this.uploadId=t.data.uploadId,this.cachedUploadedList=[],[3,3];case 2:n=["resume upload parts from local cache,","total "+e.data.length+" part,","id is "+e.id+"."],this.logger.info(n.join(" ")),this.cachedUploadedList=e.data,this.uploadId=e.id,r.label=3;case 3:return this.chunks=T(this.file,this.config.chunkSize),this.loaded={mkFileProgress:0,chunks:this.chunks.map(function(e){return 0})},this.notifyResumeProgress(),[2]}})})},t.prototype.getUploadInfo=function(){return{id:this.uploadId,url:this.uploadHost.getUrl()}},t.prototype.getLocalKey=function(){return D(this.file.name,this.key,this.file.size)},t.prototype.updateLocalCache=function(){I(this.getLocalKey(),{id:this.uploadId,data:this.uploadedList},this.logger)},t.prototype.updateChunkProgress=function(e,t){this.loaded.chunks[t]=e,this.notifyResumeProgress()},t.prototype.updateMkFileProgress=function(e){this.loaded.mkFileProgress=e,this.notifyResumeProgress()},t.prototype.notifyResumeProgress=function(){var e=this;this.progress={total:this.getProgressInfoItem(M(this.loaded.chunks)+this.loaded.mkFileProgress,this.file.size+1),chunks:this.chunks.map(function(t,n){var r=e.usedCacheList[n];return e.getProgressInfoItem(e.loaded.chunks[n],t.size,r)}),uploadInfo:{id:this.uploadId,url:this.uploadHost.getUrl()}},this.onData(this.progress)},t}(pe),we=ye,_e=(n(79577),n(41549),n(49797),n(49631),n(35623),function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})}),xe=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Ee=function(){function e(){this.crc=-1,this.table=this.makeTable()}return e.prototype.makeTable=function(){for(var e=new Array,t=0;t<256;t++){for(var n=t,r=0;r<8;r++)1&n?n=n>>>1^3988292384:n>>>=1;e[t]=n}return e},e.prototype.append=function(e){for(var t=this.crc,n=0;n<e.byteLength;n++)t=t>>>8^this.table[255&(t^e[n])];this.crc=t},e.prototype.compute=function(){return(-1^this.crc)>>>0},e.prototype.readAsUint8Array=function(e){return _e(this,void 0,void 0,function(){var t;return xe(this,function(n){switch(n.label){case 0:return"function"!==typeof e.arrayBuffer?[3,2]:(t=Uint8Array.bind,[4,e.arrayBuffer()]);case 1:return[2,new(t.apply(Uint8Array,[void 0,n.sent()]))];case 2:return[2,new Promise(function(t,n){var r=new FileReader;r.onload=function(){null!=r.result&&"string"!==typeof r.result?t(new Uint8Array(r.result)):n()},r.readAsArrayBuffer(e)})]}})})},e.prototype.file=function(e){return _e(this,void 0,void 0,function(){var t,n,r,i,o,a;return xe(this,function(s){switch(s.label){case 0:return e.size<=C?(t=this.append,[4,this.readAsUint8Array(e)]):[3,2];case 1:return t.apply(this,[s.sent()]),[2,this.compute()];case 2:n=Math.ceil(e.size/C),r=0,s.label=3;case 3:return r<n?(i=r*C,o=r===n-1?e.size:i+C,[4,this.readAsUint8Array(e.slice(i,o))]):[3,6];case 4:a=s.sent(),this.append(new Uint8Array(a)),s.label=5;case 5:return r++,[3,3];case 6:return[2,this.compute()]}})})},e.file=function(t){var n=new e;return n.file(t)},e}(),Se=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ce=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},Te=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},ke=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Se(t,e),t.prototype.run=function(){return Ce(this,void 0,void 0,function(){var e,t,n,r,i,o=this;return Te(this,function(a){switch(a.label){case 0:return this.logger.info("start run Direct."),e=new FormData,e.append("file",this.file),e.append("token",this.token),null!=this.key&&e.append("key",this.key),e.append("fname",this.putExtra.fname),this.config.checkByServer?[4,Ee.file(this.file)]:[3,2];case 1:t=a.sent(),e.append("crc32",t.toString()),a.label=2;case 2:return this.putExtra.customVars&&(this.logger.info("init customVars."),n=this.putExtra.customVars,Object.keys(n).forEach(function(t){return e.append(t,n[t].toString())}),this.logger.info("customVars inited.")),this.putExtra.metadata&&(this.logger.info("init metadata."),r=this.putExtra.metadata,Object.keys(r).forEach(function(t){return e.append(t,r[t].toString())})),this.logger.info("formData inited."),[4,re(this.uploadHost.getUrl(),e,{onProgress:function(e){o.updateDirectProgress(e.loaded,e.total)},onCreate:function(e){return o.addXhr(e)}})];case 3:return i=a.sent(),this.logger.info("Direct progress finish."),this.finishDirectProgress(),[2,i]}})})},t.prototype.updateDirectProgress=function(e,t){this.progress={total:this.getProgressInfoItem(e,t+1)},this.onData(this.progress)},t.prototype.finishDirectProgress=function(){if(!this.progress)return this.logger.warn("progress is null."),this.progress={total:this.getProgressInfoItem(this.file.size,this.file.size)},void this.onData(this.progress);var e=this.progress.total;this.progress={total:this.getProgressInfoItem(e.loaded+1,e.size)},this.onData(this.progress)},t}(pe),Oe=ke;function Me(e,t,n){void 0===n&&(n=3);var r=F();r.open("POST","https://uplog.qbox.me/log/3"),r.setRequestHeader("Content-type","application/x-www-form-urlencoded"),r.setRequestHeader("Authorization",L(e).Authorization),r.onreadystatechange=function(){4===r.readyState&&200!==r.status&&n>0&&Me(e,t,n-1)};var i=[t.code||"",t.reqId||"",t.host||"",t.remoteIp||"",t.port||"",t.duration||"",t.time||"",t.bytesSent||"",t.upType||"",t.size||""].join(",");r.send(i)}var Ie=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},De=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ie(arguments[t]));return e},Ne=function(){function e(t,n,r,i){void 0===n&&(n=!0),void 0===r&&(r="OFF"),void 0===i&&(i="UPLOAD"),this.token=t,this.disableReport=n,this.level=r,this.prefix=i,this.id=++e.id}return e.prototype.getPrintPrefix=function(e){return"Qiniu-JS-SDK ["+e+"]["+this.prefix+"#"+this.id+"]:"},e.prototype.report=function(e,t){if(!this.disableReport)try{Me(this.token,e,t)}catch(n){this.warn(n)}},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=["INFO"];n.includes(this.level)&&console.log.apply(console,De([this.getPrintPrefix("INFO")],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=["INFO","WARN"];n.includes(this.level)&&console.warn.apply(console,De([this.getPrintPrefix("WARN")],e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=["INFO","WARN","ERROR"];n.includes(this.level)&&console.error.apply(console,De([this.getPrintPrefix("ERROR")],e))},e.id=0,e}(),Re=Ne,Le=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},Be=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Pe=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},Fe=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Pe(arguments[t]));return e},$e=new Map,je=function(){function e(e,t){this.host=e,this.protocol=t}return e.prototype.isFrozen=function(){var e=(new Date).getTime(),t=$e.get(this.host);return null!=t&&t>=e},e.prototype.freeze=function(e){void 0===e&&(e=20);var t=(new Date).getTime()+1e3*e;$e.set(this.host,t)},e.prototype.unfreeze=function(){$e["delete"](this.host)},e.prototype.getUrl=function(){return this.protocol+"://"+this.host},e.prototype.getUnfreezeTime=function(){return $e.get(this.host)},e}(),He=function(){function e(e){void 0===e&&(e=[]),this.initHosts=e,this.cachedHostsMap=new Map}return e.prototype.register=function(e,t,n,r){this.cachedHostsMap.set(e+"@"+t,n.map(function(e){return new je(e,r)}))},e.prototype.refresh=function(e,t,n){var r,i,o,a;return Le(this,void 0,void 0,function(){var s,l,c;return Be(this,function(u){switch(u.label){case 0:return s=this.cachedHostsMap.get(e+"@"+t)||[],s.length>0?[2]:this.initHosts.length>0?(this.register(e,t,this.initHosts,n),[2]):[4,J(e,t,n)];case 1:return l=u.sent(),null!=(null===l||void 0===l?void 0:l.data)&&(c=Fe((null===(i=null===(r=l.data.up)||void 0===r?void 0:r.acc)||void 0===i?void 0:i.main)||[],(null===(a=null===(o=l.data.up)||void 0===o?void 0:o.acc)||void 0===a?void 0:a.backup)||[]),this.register(e,t,c,n)),[2]}})})},e.prototype.getUp=function(e,t,n){return Le(this,void 0,void 0,function(){var r,i,o;return Be(this,function(a){switch(a.label){case 0:return[4,this.refresh(e,t,n)];case 1:return a.sent(),r=this.cachedHostsMap.get(e+"@"+t)||[],0===r.length?[2,null]:(i=r.filter(function(e){return!e.isFrozen()}),i.length>0?[2,i[0]]:(o=r.slice().sort(function(e,t){return(e.getUnfreezeTime()||0)-(t.getUnfreezeTime()||0)}),[2,o[0]]))}})})},e}();function Ue(e,t,n,r){return e.config&&e.config.forceDirect?(r.info("ues forceDirect mode."),new Oe(e,t,n,r)):e.file.size>4*C?(r.info("file size over 4M, use Resume."),new we(e,t,n,r)):(r.info("file size less or equal than 4M, use Direct."),new Oe(e,t,n,r))}function Qe(e,t,n,r,i){var o=new Re(n,null===i||void 0===i?void 0:i.disableStatisticsReport,null===i||void 0===i?void 0:i.debugLogLevel,e.name),a={file:e,key:t,token:n,putExtra:r,config:Ke(i,o)},s=new He(a.config.uphost);return new f(function(e){var t=Ue(a,{onData:function(t){return e.next(t)},onError:function(t){return e.error(t)},onComplete:function(t){return e.complete(t)}},s,o);return t.putFile(),t.stop.bind(t)})}var ze=function(){return ze=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ze.apply(this,arguments)},We=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Ge=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},Ve=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ge(arguments[t]));return e};function Ke(e,t){var n=ze({},e),r=n.upprotocol,i=n.uphost,o=We(n,["upprotocol","uphost"]),a=ze({uphost:[],retryCount:3,checkByMD5:!1,forceDirect:!1,useCdnDomain:!0,checkByServer:!0,concurrentRequestLimit:3,chunkSize:ce,upprotocol:"https",debugLogLevel:"OFF",disableStatisticsReport:!1},o);r&&(a.upprotocol=r.replace(/:$/,""));var s=[];if(t&&null!=(null===e||void 0===e?void 0:e.uphost)&&null!=(null===e||void 0===e?void 0:e.region)&&t.warn("do not use both the uphost and region config."),i)Array.isArray(i)?s.push.apply(s,Ve(i)):s.push(i);else if(null===a||void 0===a?void 0:a.region){var l=V[null===a||void 0===a?void 0:a.region];a.useCdnDomain?s.push.apply(s,Ve(l.cdnUphost)):s.push.apply(s,Ve(l.srcUphost))}return ze(ze({},a),{uphost:s.filter(Boolean)})}n(64979);var Ye=function(){return Ye=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ye.apply(this,arguments)},qe=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function a(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):i(e.value).then(a,s)}l((r=r.apply(e,t||[])).next())})},Xe=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(i=2&o[0]?r["return"]:o[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Je={PNG:"image/png",JPEG:"image/jpeg",WEBP:"image/webp",BMP:"image/bmp"},Ze=4,et=Math.log(2),tt=Object.keys(Je).map(function(e){return Je[e]}),nt=Je.JPEG;function rt(e){return tt.includes(e)}(function(){function e(e,t){this.file=e,this.config=t,this.config=Ye({quality:.92,noCompressIfLarger:!1},this.config)}e.prototype.process=function(){return qe(this,void 0,void 0,function(){var e,t,n,i,a,s;return Xe(this,function(l){switch(l.label){case 0:if(this.outputType=this.file.type,e={},!rt(this.file.type))throw new o(r.UnsupportedFileType,"unsupported file type: "+this.file.type);return[4,this.getOriginImage()];case 1:return t=l.sent(),[4,this.getCanvas(t)];case 2:return n=l.sent(),i=1,this.config.maxWidth&&(i=Math.min(1,this.config.maxWidth/n.width)),this.config.maxHeight&&(i=Math.min(1,i,this.config.maxHeight/n.height)),e.width=n.width,e.height=n.height,[4,this.doScale(n,i)];case 3:return a=l.sent(),s=this.toBlob(a),s.size>this.file.size&&this.config.noCompressIfLarger?[2,{dist:this.file,width:e.width,height:e.height}]:[2,{dist:s,width:a.width,height:a.height}]}})})},e.prototype.clear=function(e,t,n){this.outputType===nt?(e.fillStyle="#fff",e.fillRect(0,0,t,n)):e.clearRect(0,0,t,n)},e.prototype.getOriginImage=function(){var e=this;return new Promise(function(t,n){var r=W(e.file),i=new Image;i.onload=function(){t(i)},i.onerror=function(){n("image load error")},i.src=r})},e.prototype.getCanvas=function(e){var t=this;return new Promise(function(n,i){var a=document.createElement("canvas"),s=a.getContext("2d");if(s){var l=e.width,c=e.height;a.height=c,a.width=l,t.clear(s,l,c),s.drawImage(e,0,0),n(a)}else i(new o(r.GetCanvasContextFailed,"context is null"))})},e.prototype.doScale=function(e,t){return qe(this,void 0,void 0,function(){var n,i,a,s,l,c,u,d,h,f,p,g,m,v,A,b;return Xe(this,function(y){if(1===t)return[2,e];if(n=e.getContext("2d"),i=Math.min(Ze,Math.ceil(1/t/et)),a=Math.pow(t,1/i),s=document.createElement("canvas"),l=s.getContext("2d"),c=e.width,u=e.height,d=c,h=u,s.width=c,s.height=u,!l||!n)throw new o(r.GetCanvasContextFailed,"mctx or sctx can't be null");for(g=0;g<i;g++)m=c*a|0,v=u*a|0,g===i-1&&(m=d*t,v=h*t),g%2===0?(f=e,p=l):(f=s,p=n),this.clear(p,c,u),p.drawImage(f,0,0,c,u,0,0,m,v),c=m,u=v;return A=f===e?s:e,b=p.getImageData(0,0,c,u),A.width=c,A.height=u,p.putImageData(b,0,0),[2,A]})})},e.prototype.toBlob=function(e){var t=e.toDataURL(this.outputType,this.config.quality),n=atob(t.split(",")[1]).split("").map(function(e){return e.charCodeAt(0)}),r=new Blob([new Uint8Array(n)],{type:this.outputType});return r}})()},95905:function(e){function t(e){const t=["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ARRAYTOTEXT","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","BYCOL","BYROW","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CHOOSECOLS","CHOOSEROWS","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DROP","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPAND","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE","F.DIST","FDIST","F.DIST.RT","FILTER","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HSTACK","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGE","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISOMITTED","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LAMBDA","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LET","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MAKEARRAY","MAP","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDB","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDARRAY","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REDUCE","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SCAN","SEARCH","SEARCHB","SEC","SECH","SECOND","SEQUENCE","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SORT","SORTBY","SQRT","SQRTPI","SQL.REQUEST","STANDARDIZE","STOCKHISTORY","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TAKE","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTAFTER","TEXTBEFORE","TEXTJOIN","TEXTSPLIT","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TOCOL","TOROW","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UNIQUE","UPPER","VALUE","VALUETOTEXT","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","VSTACK","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","WRAPCOLS","WRAPROWS","XIRR","XLOOKUP","XMATCH","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"];return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:t},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}e.exports=t},95934:function(e,t,n){const r=n(77027);function i(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function o(e,t,n){let r=e+t;return"undefined"!==typeof n&&(r+=" "+n),r}function a(e,t,n){let r="",i=0,a=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),u=Math.floor(l/t);c||a||(a=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(r+=a?o("M",c+n,.5+u+n):o("m",i,0),i=0,a=!1),c+1<t&&e[l+1]||(r+=o("h",s),s=0)):i++}return r}t.render=function(e,t,n){const o=r.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*o.margin,u=o.color.light.a?"<path "+i(o.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+i(o.color.dark,"stroke")+' d="'+a(l,s,o.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',f=o.width?'width="'+o.width+'" height="'+o.width+'" ':"",p='<svg xmlns="http://www.w3.org/2000/svg" '+f+h+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"===typeof n&&n(null,p),p}},95975:function(e,t,n){"use strict";n.d(t,{A:function(){return r}});var r="3.0.23"},96123:function(e,t,n){"use strict";n(44114),n(18111),n(7588);var r=n(83800);n(14253),n(80547),n(68131),n(42061),n(5361),n(10265),n(32698),n(41e3),n(63530),n(42937),n(51253);var i=n(98082),o=n(6709).xI,a=/Mac/.test(navigator.platform),s=new RegExp(/(<a.*?https?:\/\/.*?[^a]>)+?/g),l={toggleBold:_,toggleItalic:x,drawLink:F,toggleHeadingSmaller:T,toggleHeadingBigger:k,drawImage:$,toggleBlockquote:C,toggleOrderedList:B,toggleUnorderedList:L,toggleCodeBlock:S,togglePreview:K,toggleStrikethrough:E,toggleHeading1:O,toggleHeading2:M,toggleHeading3:I,toggleHeading4:D,toggleHeading5:N,toggleHeading6:R,cleanBlock:P,drawTable:Q,drawHorizontalRule:z,undo:W,redo:G,toggleSideBySide:V,toggleFullScreen:w},c={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",toggleHeading1:"Ctrl+Alt+1",toggleHeading2:"Ctrl+Alt+2",toggleHeading3:"Ctrl+Alt+3",toggleHeading4:"Ctrl+Alt+4",toggleHeading5:"Ctrl+Alt+5",toggleHeading6:"Ctrl+Alt+6",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},u=function(e){for(var t in l)if(l[t]===e)return t;return null},d=function(){var e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e};function h(e){var t;while(null!==(t=s.exec(e))){var n=t[0];if(-1===n.indexOf("target=")){var r=n.replace(/>$/,' target="_blank">');e=e.replace(n,r)}}return e}function f(e){for(var t=new DOMParser,n=t.parseFromString(e,"text/html"),r=n.getElementsByTagName("li"),i=0;i<r.length;i++)for(var o=r[i],a=0;a<o.children.length;a++){var s=o.children[a];s instanceof HTMLInputElement&&"checkbox"===s.type&&(o.style.marginLeft="-1.5em",o.style.listStyleType="none")}return n.documentElement.innerHTML}function p(e){return e=a?e.replace("Ctrl","Cmd"):e.replace("Cmd","Ctrl"),e}function g(e,t,n,r){var i=m(e,!1,t,n,"button",r);i.classList.add("easymde-dropdown"),i.onclick=function(){i.focus()};var o=document.createElement("div");o.className="easymde-dropdown-content";for(var a=0;a<e.children.length;a++){var s,l=e.children[a];s=m("string"===typeof l&&l in ae?ae[l]:l,!0,t,n,"button",r),s.addEventListener("click",function(e){e.stopPropagation()},!1),o.appendChild(s)}return i.appendChild(o),i}function m(e,t,n,r,i,o){e=e||{};var s=document.createElement(i);if(e.attributes)for(var c in e.attributes)Object.prototype.hasOwnProperty.call(e.attributes,c)&&s.setAttribute(c,e.attributes[c]);var u=o.options.toolbarButtonClassPrefix?o.options.toolbarButtonClassPrefix+"-":"";s.className=u+e.name,s.setAttribute("type",i),n=void 0==n||n,e.text&&(s.innerText=e.text),e.name&&e.name in r&&(l[e.name]=e.action),e.title&&n&&(s.title=A(e.title,e.action,r),a&&(s.title=s.title.replace("Ctrl","⌘"),s.title=s.title.replace("Alt","⌥"))),e.title&&s.setAttribute("aria-label",e.title),e.noDisable&&s.classList.add("no-disable"),e.noMobile&&s.classList.add("no-mobile");var d=[];"undefined"!==typeof e.className&&(d=e.className.split(" "));for(var h=[],f=0;f<d.length;f++){var p=d[f];p.match(/^fa([srlb]|(-[\w-]*)|$)/)?h.push(p):s.classList.add(p)}if(s.tabIndex=-1,h.length>0){for(var g=document.createElement("i"),m=0;m<h.length;m++){var v=h[m];g.classList.add(v)}s.appendChild(g)}return"undefined"!==typeof e.icon&&(s.innerHTML=e.icon),e.action&&t&&("function"===typeof e.action?s.onclick=function(t){t.preventDefault(),e.action(o)}:"string"===typeof e.action&&(s.onclick=function(t){t.preventDefault(),window.open(e.action,"_blank")})),s}function v(){var e=document.createElement("i");return e.className="separator",e.innerHTML="|",e}function A(e,t,n){var r,i=e;return t&&(r=u(t),n[r]&&(i+=" ("+p(n[r])+")")),i}function b(e,t){t=t||e.getCursor("start");var n=e.getTokenAt(t);if(!n.type)return{};for(var r,i,o=n.type.split(" "),a={},s=0;s<o.length;s++)r=o[s],"strong"===r?a.bold=!0:"variable-2"===r?(i=e.getLine(t.line),/^\s*\d+\.\s/.test(i)?a["ordered-list"]=!0:a["unordered-list"]=!0):"atom"===r?a.quote=!0:"em"===r?a.italic=!0:"quote"===r?a.quote=!0:"strikethrough"===r?a.strikethrough=!0:"comment"===r?a.code=!0:"link"!==r||a.image?"image"===r?a.image=!0:r.match(/^header(-[1-6])?$/)&&(a[r.replace("header","heading")]=!0):a.link=!0;return a}var y="";function w(e){var t=e.codemirror;t.setOption("fullScreen",!t.getOption("fullScreen")),t.getOption("fullScreen")?(y=document.body.style.overflow,document.body.style.overflow="hidden"):document.body.style.overflow=y;var n=t.getWrapperElement(),r=n.nextSibling;if(r.classList.contains("editor-preview-active-side"))if(!1===e.options.sideBySideFullscreen){var i=n.parentNode;t.getOption("fullScreen")?i.classList.remove("sided--no-fullscreen"):i.classList.add("sided--no-fullscreen")}else V(e);if(e.options.onToggleFullScreen&&e.options.onToggleFullScreen(t.getOption("fullScreen")||!1),"undefined"!==typeof e.options.maxHeight&&(t.getOption("fullScreen")?(t.getScrollerElement().style.removeProperty("height"),r.style.removeProperty("height")):(t.getScrollerElement().style.height=e.options.maxHeight,e.setPreviewMaxHeight())),e.toolbar_div.classList.toggle("fullscreen"),e.toolbarElements&&e.toolbarElements.fullscreen){var o=e.toolbarElements.fullscreen;o.classList.toggle("active")}}function _(e){Z(e,"bold",e.options.blockStyles.bold)}function x(e){Z(e,"italic",e.options.blockStyles.italic)}function E(e){Z(e,"strikethrough","~~")}function S(e){var t=e.options.blockStyles.code;function n(e){if("object"!==typeof e)throw"fencing_line() takes a 'line' object (not a line number, or line text).  Got: "+typeof e+": "+e;return e.styles&&e.styles[2]&&-1!==e.styles[2].indexOf("formatting-code-block")}function r(e){return e.state.base.base||e.state.base}function i(e,t,i,o,a){i=i||e.getLineHandle(t),o=o||e.getTokenAt({line:t,ch:1}),a=a||!!i.text&&e.getTokenAt({line:t,ch:i.text.length-1});var s=o.type?o.type.split(" "):[];return a&&r(a).indentedCode?"indented":-1!==s.indexOf("comment")&&(r(o).fencedChars||r(a).fencedChars||n(i)?"fenced":"single")}function o(e,t,n,r){var i=t.line+1,o=n.line+1,a=t.line!==n.line,s=r+"\n",l="\n"+r;a&&o++,a&&0===n.ch&&(l=r+"\n",o--),Y(e,!1,[s,l]),e.setSelection({line:i,ch:0},{line:o,ch:0})}var a,s,l,c=e.codemirror,u=c.getCursor("start"),d=c.getCursor("end"),h=c.getTokenAt({line:u.line,ch:u.ch||1}),f=c.getLineHandle(u.line),p=i(c,u.line,f,h);if("single"===p){var g=f.text.slice(0,u.ch).replace("`",""),m=f.text.slice(u.ch).replace("`","");c.replaceRange(g+m,{line:u.line,ch:0},{line:u.line,ch:99999999999999}),u.ch--,u!==d&&d.ch--,c.setSelection(u,d),c.focus()}else if("fenced"===p)if(u.line!==d.line||u.ch!==d.ch){for(a=u.line;a>=0;a--)if(f=c.getLineHandle(a),n(f))break;var v,A,b,y,w=c.getTokenAt({line:a,ch:1}),_=r(w).fencedChars;n(c.getLineHandle(u.line))?(v="",A=u.line):n(c.getLineHandle(u.line-1))?(v="",A=u.line-1):(v=_+"\n",A=u.line),n(c.getLineHandle(d.line))?(b="",y=d.line,0===d.ch&&(y+=1)):0!==d.ch&&n(c.getLineHandle(d.line+1))?(b="",y=d.line+1):(b=_+"\n",y=d.line+1),0===d.ch&&(y-=1),c.operation(function(){c.replaceRange(b,{line:y,ch:0},{line:y+(b?0:1),ch:0}),c.replaceRange(v,{line:A,ch:0},{line:A+(v?0:1),ch:0})}),c.setSelection({line:A+(v?1:0),ch:0},{line:y+(v?1:-1),ch:0}),c.focus()}else{var x=u.line;if(n(c.getLineHandle(u.line))&&("fenced"===i(c,u.line+1)?(a=u.line,x=u.line+1):(s=u.line,x=u.line-1)),void 0===a)for(a=x;a>=0;a--)if(f=c.getLineHandle(a),n(f))break;if(void 0===s)for(l=c.lineCount(),s=x;s<l;s++)if(f=c.getLineHandle(s),n(f))break;c.operation(function(){c.replaceRange("",{line:a,ch:0},{line:a+1,ch:0}),c.replaceRange("",{line:s-1,ch:0},{line:s,ch:0})}),c.focus()}else if("indented"===p){if(u.line!==d.line||u.ch!==d.ch)a=u.line,s=d.line,0===d.ch&&s--;else{for(a=u.line;a>=0;a--)if(f=c.getLineHandle(a),!f.text.match(/^\s*$/)&&"indented"!==i(c,a,f)){a+=1;break}for(l=c.lineCount(),s=u.line;s<l;s++)if(f=c.getLineHandle(s),!f.text.match(/^\s*$/)&&"indented"!==i(c,s,f)){s-=1;break}}var E=c.getLineHandle(s+1),S=E&&c.getTokenAt({line:s+1,ch:E.text.length-1}),C=S&&r(S).indentedCode;C&&c.replaceRange("\n",{line:s+1,ch:0});for(var T=a;T<=s;T++)c.indentLine(T,"subtract");c.focus()}else{var k=u.line===d.line&&u.ch===d.ch&&0===u.ch,O=u.line!==d.line;k||O?o(c,u,d,t):Y(c,!1,["`","`"])}}function C(e){X(e.codemirror,"quote")}function T(e){q(e.codemirror,"smaller")}function k(e){q(e.codemirror,"bigger")}function O(e){q(e.codemirror,void 0,1)}function M(e){q(e.codemirror,void 0,2)}function I(e){q(e.codemirror,void 0,3)}function D(e){q(e.codemirror,void 0,4)}function N(e){q(e.codemirror,void 0,5)}function R(e){q(e.codemirror,void 0,6)}function L(e){var t=e.codemirror,n="*";["-","+","*"].includes(e.options.unorderedListStyle)&&(n=e.options.unorderedListStyle),X(t,"unordered-list",n)}function B(e){X(e.codemirror,"ordered-list")}function P(e){ee(e.codemirror)}function F(e){var t=e.options,n="https://";if(t.promptURLs){var r=prompt(t.promptTexts.link,n);if(!r)return!1;n=j(r)}J(e,"link",t.insertTexts.link,n)}function $(e){var t=e.options,n="https://";if(t.promptURLs){var r=prompt(t.promptTexts.image,n);if(!r)return!1;n=j(r)}J(e,"image",t.insertTexts.image,n)}function j(e){return encodeURI(e).replace(/([\\()])/g,"\\$1")}function H(e){e.openBrowseFileWindow()}function U(e,t){var n=e.codemirror,r=b(n),i=e.options,o=t.substr(t.lastIndexOf("/")+1),a=o.substring(o.lastIndexOf(".")+1).replace(/\?.*$/,"").toLowerCase();if(["png","jpg","jpeg","gif","svg","apng","avif","webp"].includes(a))Y(n,r.image,i.insertTexts.uploadedImage,t);else{var s=i.insertTexts.link;s[0]="["+o,Y(n,r.link,s,t)}e.updateStatusBar("upload-image",e.options.imageTexts.sbOnUploaded.replace("#image_name#",o)),setTimeout(function(){e.updateStatusBar("upload-image",e.options.imageTexts.sbInit)},1e3)}function Q(e){var t=e.codemirror,n=b(t),r=e.options;Y(t,n.table,r.insertTexts.table)}function z(e){var t=e.codemirror,n=b(t),r=e.options;Y(t,n.image,r.insertTexts.horizontalRule)}function W(e){var t=e.codemirror;t.undo(),t.focus()}function G(e){var t=e.codemirror;t.redo(),t.focus()}function V(e){var t=e.codemirror,n=t.getWrapperElement(),r=n.nextSibling,i=e.toolbarElements&&e.toolbarElements["side-by-side"],o=!1,a=n.parentNode;r.classList.contains("editor-preview-active-side")?(!1===e.options.sideBySideFullscreen&&a.classList.remove("sided--no-fullscreen"),r.classList.remove("editor-preview-active-side"),i&&i.classList.remove("active"),n.classList.remove("CodeMirror-sided")):(setTimeout(function(){t.getOption("fullScreen")||(!1===e.options.sideBySideFullscreen?a.classList.add("sided--no-fullscreen"):w(e)),r.classList.add("editor-preview-active-side")},1),i&&i.classList.add("active"),n.classList.add("CodeMirror-sided"),o=!0);var s=n.lastChild;if(s.classList.contains("editor-preview-active")){s.classList.remove("editor-preview-active");var l=e.toolbarElements.preview,c=e.toolbar_div;l.classList.remove("active"),c.classList.remove("disabled-for-preview")}var u=function(){var t=e.options.previewRender(e.value(),r);null!=t&&(r.innerHTML=t)};if(t.sideBySideRenderingFunction||(t.sideBySideRenderingFunction=u),o){var d=e.options.previewRender(e.value(),r);null!=d&&(r.innerHTML=d),t.on("update",t.sideBySideRenderingFunction)}else t.off("update",t.sideBySideRenderingFunction);t.refresh()}function K(e){var t=e.codemirror,n=t.getWrapperElement(),r=e.toolbar_div,i=!!e.options.toolbar&&e.toolbarElements.preview,o=n.lastChild,a=t.getWrapperElement().nextSibling;if(a.classList.contains("editor-preview-active-side")&&V(e),!o||!o.classList.contains("editor-preview-full")){if(o=document.createElement("div"),o.className="editor-preview-full",e.options.previewClass)if(Array.isArray(e.options.previewClass))for(var s=0;s<e.options.previewClass.length;s++)o.classList.add(e.options.previewClass[s]);else"string"===typeof e.options.previewClass&&o.classList.add(e.options.previewClass);n.appendChild(o)}o.classList.contains("editor-preview-active")?(o.classList.remove("editor-preview-active"),i&&(i.classList.remove("active"),r.classList.remove("disabled-for-preview"))):(setTimeout(function(){o.classList.add("editor-preview-active")},1),i&&(i.classList.add("active"),r.classList.add("disabled-for-preview")));var l=e.options.previewRender(e.value(),o);null!==l&&(o.innerHTML=l)}function Y(e,t,n,r){if(!e.getWrapperElement().lastChild.classList.contains("editor-preview-active")){var i,o=n[0],a=n[1],s={},l={};Object.assign(s,e.getCursor("start")),Object.assign(l,e.getCursor("end")),r&&(o=o.replace("#url#",r),a=a.replace("#url#",r)),t?(i=e.getLine(s.line),o=i.slice(0,s.ch),a=i.slice(s.ch),e.replaceRange(o+a,{line:s.line,ch:0})):(i=e.getSelection(),e.replaceSelection(o+i+a),s.ch+=o.length,s!==l&&(l.ch+=o.length)),e.setSelection(s,l),e.focus()}}function q(e,t,n){if(!e.getWrapperElement().lastChild.classList.contains("editor-preview-active")){for(var r=e.getCursor("start"),i=e.getCursor("end"),o=r.line;o<=i.line;o++)(function(r){var i=e.getLine(r),o=i.search(/[^#]/);i=void 0!==t?o<=0?"bigger"==t?"###### "+i:"# "+i:6==o&&"smaller"==t?i.substr(7):1==o&&"bigger"==t?i.substr(2):"bigger"==t?i.substr(1):"#"+i:o<=0?"#".repeat(n)+" "+i:o==n?i.substr(o+1):"#".repeat(n)+" "+i.substr(o+1),e.replaceRange(i,{line:r,ch:0},{line:r,ch:99999999999999})})(o);e.focus()}}function X(e,t,n){if(!e.getWrapperElement().lastChild.classList.contains("editor-preview-active")){for(var r=/^(\s*)(\*|-|\+|\d*\.)(\s+)/,i=/^\s*/,o=b(e),a=e.getCursor("start"),s=e.getCursor("end"),l={quote:/^(\s*)>\s+/,"unordered-list":r,"ordered-list":r},c=function(e,t){var r={quote:">","unordered-list":n,"ordered-list":"%%i."};return r[e].replace("%%i",t)},u=function(e,t){var r={quote:">","unordered-list":"\\"+n,"ordered-list":"\\d+."},i=new RegExp(r[e]);return t&&i.test(t)},d=function(e,t,n){var o=r.exec(t),a=c(e,h);return null!==o?(u(e,o[2])&&(a=""),t=o[1]+a+o[3]+t.replace(i,"").replace(l[e],"$1")):0==n&&(t=a+" "+t),t},h=1,f=a.line;f<=s.line;f++)(function(n){var r=e.getLine(n);o[t]?r=r.replace(l[t],"$1"):("unordered-list"==t&&(r=d("ordered-list",r,!0)),r=d(t,r,!1),h+=1),e.replaceRange(r,{line:n,ch:0},{line:n,ch:99999999999999})})(f);e.focus()}}function J(e,t,n,r){if(e.codemirror&&!e.isPreviewActive()){var i=e.codemirror,o=b(i),a=o[t];if(a){var s=i.getCursor("start"),l=i.getCursor("end"),c=i.getLine(s.line),u=c.slice(0,s.ch),d=c.slice(s.ch);"link"==t?u=u.replace(/(.*)[^!]\[/,"$1"):"image"==t&&(u=u.replace(/(.*)!\[$/,"$1")),d=d.replace(/]\(.*?\)/,""),i.replaceRange(u+d,{line:s.line,ch:0},{line:s.line,ch:99999999999999}),s.ch-=n[0].length,s!==l&&(l.ch-=n[0].length),i.setSelection(s,l),i.focus()}else Y(i,a,n,r)}}function Z(e,t,n,r){if(e.codemirror&&!e.isPreviewActive()){r="undefined"===typeof r?n:r;var i,o=e.codemirror,a=b(o),s=n,l=r,c=o.getCursor("start"),u=o.getCursor("end");a[t]?(i=o.getLine(c.line),s=i.slice(0,c.ch),l=i.slice(c.ch),"bold"==t?(s=s.replace(/(\*\*|__)(?![\s\S]*(\*\*|__))/,""),l=l.replace(/(\*\*|__)/,"")):"italic"==t?(s=s.replace(/(\*|_)(?![\s\S]*(\*|_))/,""),l=l.replace(/(\*|_)/,"")):"strikethrough"==t&&(s=s.replace(/(\*\*|~~)(?![\s\S]*(\*\*|~~))/,""),l=l.replace(/(\*\*|~~)/,"")),o.replaceRange(s+l,{line:c.line,ch:0},{line:c.line,ch:99999999999999}),"bold"==t||"strikethrough"==t?(c.ch-=2,c!==u&&(u.ch-=2)):"italic"==t&&(c.ch-=1,c!==u&&(u.ch-=1))):(i=o.getSelection(),"bold"==t?(i=i.split("**").join(""),i=i.split("__").join("")):"italic"==t?(i=i.split("*").join(""),i=i.split("_").join("")):"strikethrough"==t&&(i=i.split("~~").join("")),o.replaceSelection(s+i+l),c.ch+=n.length,u.ch=c.ch+i.length),o.setSelection(c,u),o.focus()}}function ee(e){if(!e.getWrapperElement().lastChild.classList.contains("editor-preview-active"))for(var t,n=e.getCursor("start"),r=e.getCursor("end"),i=n.line;i<=r.line;i++)t=e.getLine(i),t=t.replace(/^[ ]*([# ]+|\*|-|[> ]+|[0-9]+(.|\)))[ ]*/,""),e.replaceRange(t,{line:i,ch:0},{line:i,ch:99999999999999})}function te(e,t){if(Math.abs(e)<1024)return""+e+t[0];var n=0;do{e/=1024,++n}while(Math.abs(e)>=1024&&n<t.length);return""+e.toFixed(1)+t[n]}function ne(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]instanceof Array?e[n]=t[n].concat(e[n]instanceof Array?e[n]:[]):null!==t[n]&&"object"===typeof t[n]&&t[n].constructor===Object?e[n]=ne(e[n]||{},t[n]):e[n]=t[n]);return e}function re(e){for(var t=1;t<arguments.length;t++)e=ne(e,arguments[t]);return e}function ie(e){var t=/[a-zA-Z0-9_\u00A0-\u02AF\u0392-\u03c9\u0410-\u04F9]+|[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g,n=e.match(t),r=0;if(null===n)return r;for(var i=0;i<n.length;i++)n[i].charCodeAt(0)>=19968?r+=n[i].length:r+=1;return r}var oe={bold:"fa fa-bold",italic:"fa fa-italic",strikethrough:"fa fa-strikethrough",heading:"fa fa-header fa-heading","heading-smaller":"fa fa-header fa-heading header-smaller","heading-bigger":"fa fa-header fa-heading header-bigger","heading-1":"fa fa-header fa-heading header-1","heading-2":"fa fa-header fa-heading header-2","heading-3":"fa fa-header fa-heading header-3",code:"fa fa-code",quote:"fa fa-quote-left","ordered-list":"fa fa-list-ol","unordered-list":"fa fa-list-ul","clean-block":"fa fa-eraser",link:"fa fa-link",image:"fa fa-image","upload-image":"fa fa-image",table:"fa fa-table","horizontal-rule":"fa fa-minus",preview:"fa fa-eye","side-by-side":"fa fa-columns",fullscreen:"fa fa-arrows-alt",guide:"fa fa-question-circle",undo:"fa fa-undo",redo:"fa fa-repeat fa-redo"},ae={bold:{name:"bold",action:_,className:oe["bold"],title:"Bold",default:!0},italic:{name:"italic",action:x,className:oe["italic"],title:"Italic",default:!0},strikethrough:{name:"strikethrough",action:E,className:oe["strikethrough"],title:"Strikethrough"},heading:{name:"heading",action:T,className:oe["heading"],title:"Heading",default:!0},"heading-smaller":{name:"heading-smaller",action:T,className:oe["heading-smaller"],title:"Smaller Heading"},"heading-bigger":{name:"heading-bigger",action:k,className:oe["heading-bigger"],title:"Bigger Heading"},"heading-1":{name:"heading-1",action:O,className:oe["heading-1"],title:"Big Heading"},"heading-2":{name:"heading-2",action:M,className:oe["heading-2"],title:"Medium Heading"},"heading-3":{name:"heading-3",action:I,className:oe["heading-3"],title:"Small Heading"},"separator-1":{name:"separator-1"},code:{name:"code",action:S,className:oe["code"],title:"Code"},quote:{name:"quote",action:C,className:oe["quote"],title:"Quote",default:!0},"unordered-list":{name:"unordered-list",action:L,className:oe["unordered-list"],title:"Generic List",default:!0},"ordered-list":{name:"ordered-list",action:B,className:oe["ordered-list"],title:"Numbered List",default:!0},"clean-block":{name:"clean-block",action:P,className:oe["clean-block"],title:"Clean block"},"separator-2":{name:"separator-2"},link:{name:"link",action:F,className:oe["link"],title:"Create Link",default:!0},image:{name:"image",action:$,className:oe["image"],title:"Insert Image",default:!0},"upload-image":{name:"upload-image",action:H,className:oe["upload-image"],title:"Import an image"},table:{name:"table",action:Q,className:oe["table"],title:"Insert Table"},"horizontal-rule":{name:"horizontal-rule",action:z,className:oe["horizontal-rule"],title:"Insert Horizontal Line"},"separator-3":{name:"separator-3"},preview:{name:"preview",action:K,className:oe["preview"],noDisable:!0,title:"Toggle Preview",default:!0},"side-by-side":{name:"side-by-side",action:V,className:oe["side-by-side"],noDisable:!0,noMobile:!0,title:"Toggle Side by Side",default:!0},fullscreen:{name:"fullscreen",action:w,className:oe["fullscreen"],noDisable:!0,noMobile:!0,title:"Toggle Fullscreen",default:!0},"separator-4":{name:"separator-4"},guide:{name:"guide",action:"https://www.markdownguide.org/basic-syntax/",className:oe["guide"],noDisable:!0,title:"Markdown Guide",default:!0},"separator-5":{name:"separator-5"},undo:{name:"undo",action:W,className:oe["undo"],noDisable:!0,title:"Undo"},redo:{name:"redo",action:G,className:oe["redo"],noDisable:!0,title:"Redo"}},se={link:["[","](#url#)"],image:["![","](#url#)"],uploadedImage:["![](#url#)",""],table:["","\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text     | Text     | Text     |\n\n"],horizontalRule:["","\n\n-----\n\n"]},le={link:"URL for the link:",image:"URL of the image:"},ce={locale:"en-US",format:{hour:"2-digit",minute:"2-digit"}},ue={bold:"**",code:"```",italic:"*"},de={sbInit:"Attach files by drag and dropping or pasting from clipboard.",sbOnDragEnter:"Drop image to upload it.",sbOnDrop:"Uploading image #images_names#...",sbProgress:"Uploading #file_name#: #progress#%",sbOnUploaded:"Uploaded #image_name#",sizeUnits:" B, KB, MB"},he={noFileGiven:"You must select a file.",typeNotAllowed:"This image type is not allowed.",fileTooLarge:"Image #image_name# is too big (#image_size#).\nMaximum file size is #image_max_size#.",importError:"Something went wrong when uploading the image #image_name#."};function fe(e){e=e||{},e.parent=this;var t=!0;if(!1===e.autoDownloadFontAwesome&&(t=!1),!0!==e.autoDownloadFontAwesome)for(var n=document.styleSheets,r=0;r<n.length;r++)n[r].href&&n[r].href.indexOf("//maxcdn.bootstrapcdn.com/font-awesome/")>-1&&(t=!1);if(t){var i=document.createElement("link");i.rel="stylesheet",i.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(i)}if(e.element)this.element=e.element;else if(null===e.element)return void console.log("EasyMDE: Error. No element was found.");if(void 0===e.toolbar)for(var o in e.toolbar=[],ae)Object.prototype.hasOwnProperty.call(ae,o)&&(-1!=o.indexOf("separator-")&&e.toolbar.push("|"),(!0===ae[o].default||e.showIcons&&e.showIcons.constructor===Array&&-1!=e.showIcons.indexOf(o))&&e.toolbar.push(o));if(Object.prototype.hasOwnProperty.call(e,"previewClass")||(e.previewClass="editor-preview"),Object.prototype.hasOwnProperty.call(e,"status")||(e.status=["autosave","lines","words","cursor"],e.uploadImage&&e.status.unshift("upload-image")),e.previewRender||(e.previewRender=function(e){return this.parent.markdown(e)}),e.parsingConfig=re({highlightFormatting:!0},e.parsingConfig||{}),e.insertTexts=re({},se,e.insertTexts||{}),e.promptTexts=re({},le,e.promptTexts||{}),e.blockStyles=re({},ue,e.blockStyles||{}),void 0!=e.autosave&&(e.autosave.timeFormat=re({},ce,e.autosave.timeFormat||{})),e.iconClassMap=re({},oe,e.iconClassMap||{}),e.shortcuts=re({},c,e.shortcuts||{}),e.maxHeight=e.maxHeight||void 0,e.direction=e.direction||"ltr","undefined"!==typeof e.maxHeight?e.minHeight=e.maxHeight:e.minHeight=e.minHeight||"300px",e.errorCallback=e.errorCallback||function(e){alert(e)},e.uploadImage=e.uploadImage||!1,e.imageMaxSize=e.imageMaxSize||2097152,e.imageAccept=e.imageAccept||"image/png, image/jpeg, image/gif, image/avif",e.imageTexts=re({},de,e.imageTexts||{}),e.errorMessages=re({},he,e.errorMessages||{}),e.imagePathAbsolute=e.imagePathAbsolute||!1,e.imageCSRFName=e.imageCSRFName||"csrfmiddlewaretoken",e.imageCSRFHeader=e.imageCSRFHeader||!1,e.imageInputName=e.imageInputName||"image",void 0!=e.autosave&&void 0!=e.autosave.unique_id&&""!=e.autosave.unique_id&&(e.autosave.uniqueId=e.autosave.unique_id),e.overlayMode&&void 0===e.overlayMode.combine&&(e.overlayMode.combine=!0),this.options=e,this.render(),!e.initialValue||this.options.autosave&&!0===this.options.autosave.foundSavedValue||this.value(e.initialValue),e.uploadImage){var a=this;this.codemirror.on("dragenter",function(e,t){a.updateStatusBar("upload-image",a.options.imageTexts.sbOnDragEnter),t.stopPropagation(),t.preventDefault()}),this.codemirror.on("dragend",function(e,t){a.updateStatusBar("upload-image",a.options.imageTexts.sbInit),t.stopPropagation(),t.preventDefault()}),this.codemirror.on("dragleave",function(e,t){a.updateStatusBar("upload-image",a.options.imageTexts.sbInit),t.stopPropagation(),t.preventDefault()}),this.codemirror.on("dragover",function(e,t){a.updateStatusBar("upload-image",a.options.imageTexts.sbOnDragEnter),t.stopPropagation(),t.preventDefault()}),this.codemirror.on("drop",function(t,n){n.stopPropagation(),n.preventDefault(),e.imageUploadFunction?a.uploadImagesUsingCustomFunction(e.imageUploadFunction,n.dataTransfer.files):a.uploadImages(n.dataTransfer.files)}),this.codemirror.on("paste",function(t,n){e.imageUploadFunction?a.uploadImagesUsingCustomFunction(e.imageUploadFunction,n.clipboardData.files):a.uploadImages(n.clipboardData.files)})}}function pe(){if("object"!==typeof localStorage)return!1;try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch(e){return!1}return!0}fe.prototype.uploadImages=function(e,t,n){if(0!==e.length){for(var r=[],i=0;i<e.length;i++)r.push(e[i].name),this.uploadImage(e[i],t,n);this.updateStatusBar("upload-image",this.options.imageTexts.sbOnDrop.replace("#images_names#",r.join(", ")))}},fe.prototype.uploadImagesUsingCustomFunction=function(e,t){if(0!==t.length){for(var n=[],r=0;r<t.length;r++)n.push(t[r].name),this.uploadImageUsingCustomFunction(e,t[r]);this.updateStatusBar("upload-image",this.options.imageTexts.sbOnDrop.replace("#images_names#",n.join(", ")))}},fe.prototype.updateStatusBar=function(e,t){if(this.gui.statusbar){var n=this.gui.statusbar.getElementsByClassName(e);1===n.length?this.gui.statusbar.getElementsByClassName(e)[0].textContent=t:0===n.length?console.log("EasyMDE: status bar item "+e+" was not found."):console.log("EasyMDE: Several status bar items named "+e+" was found.")}},fe.prototype.markdown=function(e){if(o){var t;if(t=this.options&&this.options.renderingConfig&&this.options.renderingConfig.markedOptions?this.options.renderingConfig.markedOptions:{},this.options&&this.options.renderingConfig&&!1===this.options.renderingConfig.singleLineBreaks?t.breaks=!1:t.breaks=!0,this.options&&this.options.renderingConfig&&!0===this.options.renderingConfig.codeSyntaxHighlighting){var n=this.options.renderingConfig.hljs||window.hljs;n&&(t.highlight=function(e,t){return t&&n.getLanguage(t)?n.highlight(t,e).value:n.highlightAuto(e).value})}o.use(t);var r=o.parse(e);return this.options.renderingConfig&&"function"===typeof this.options.renderingConfig.sanitizerFunction&&(r=this.options.renderingConfig.sanitizerFunction.call(this,r)),r=h(r),r=f(r),r}},fe.prototype.render=function(e){if(e||(e=this.element||document.getElementsByTagName("textarea")[0]),!this._rendered||this._rendered!==e){this.element=e;var t,n,o=this.options,a=this,s={};for(var c in o.shortcuts)null!==o.shortcuts[c]&&null!==l[c]&&function(e){s[p(o.shortcuts[e])]=function(){var t=l[e];"function"===typeof t?t(a):"string"===typeof t&&window.open(t,"_blank")}}(c);if(s["Enter"]="newlineAndIndentContinueMarkdownList",s["Tab"]="tabAndIndentMarkdownList",s["Shift-Tab"]="shiftTabAndUnindentMarkdownList",s["Esc"]=function(e){e.getOption("fullScreen")&&w(a)},this.documentOnKeyDown=function(e){e=e||window.event,27==e.keyCode&&a.codemirror.getOption("fullScreen")&&w(a)},document.addEventListener("keydown",this.documentOnKeyDown,!1),o.overlayMode?(r.defineMode("overlay-mode",function(e){return r.overlayMode(r.getMode(e,!1!==o.spellChecker?"spell-checker":"gfm"),o.overlayMode.mode,o.overlayMode.combine)}),t="overlay-mode",n=o.parsingConfig,n.gitHubSpice=!1):(t=o.parsingConfig,t.name="gfm",t.gitHubSpice=!1),!1!==o.spellChecker&&(t="spell-checker",n=o.parsingConfig,n.name="gfm",n.gitHubSpice=!1,"function"===typeof o.spellChecker?o.spellChecker({codeMirrorInstance:r}):i({codeMirrorInstance:r})),this.codemirror=r.fromTextArea(e,{mode:t,backdrop:n,theme:void 0!=o.theme?o.theme:"easymde",tabSize:void 0!=o.tabSize?o.tabSize:2,indentUnit:void 0!=o.tabSize?o.tabSize:2,indentWithTabs:!1!==o.indentWithTabs,lineNumbers:!0===o.lineNumbers,autofocus:!0===o.autofocus,extraKeys:s,direction:o.direction,lineWrapping:!1!==o.lineWrapping,allowDropFileTypes:["text/plain"],placeholder:o.placeholder||e.getAttribute("placeholder")||"",styleSelectedText:void 0!=o.styleSelectedText?o.styleSelectedText:!d(),scrollbarStyle:void 0!=o.scrollbarStyle?o.scrollbarStyle:"native",configureMouse:v,inputStyle:void 0!=o.inputStyle?o.inputStyle:d()?"contenteditable":"textarea",spellcheck:void 0==o.nativeSpellcheck||o.nativeSpellcheck,autoRefresh:void 0!=o.autoRefresh&&o.autoRefresh}),this.codemirror.getScrollerElement().style.minHeight=o.minHeight,"undefined"!==typeof o.maxHeight&&(this.codemirror.getScrollerElement().style.height=o.maxHeight),!0===o.forceSync){var u=this.codemirror;u.on("change",function(){u.save()})}this.gui={};var h=document.createElement("div");h.classList.add("EasyMDEContainer"),h.setAttribute("role","application");var f=this.codemirror.getWrapperElement();f.parentNode.insertBefore(h,f),h.appendChild(f),!1!==o.toolbar&&(this.gui.toolbar=this.createToolbar()),!1!==o.status&&(this.gui.statusbar=this.createStatusbar()),void 0!=o.autosave&&!0===o.autosave.enabled&&(this.autosave(),this.codemirror.on("change",function(){clearTimeout(a._autosave_timeout),a._autosave_timeout=setTimeout(function(){a.autosave()},a.options.autosave.submit_delay||a.options.autosave.delay||1e3)}));var g=this;this.codemirror.on("update",function(){y()}),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element,(!0===o.autofocus||e.autofocus)&&this.codemirror.focus();var m=this.codemirror;setTimeout(function(){m.refresh()}.bind(m),0)}function v(e,t,n){return{addNew:!1}}function A(e,t){var n,r=window.getComputedStyle(document.querySelector(".CodeMirror-sizer")).width.replace("px","");return n=e<r?t+"px":t/e*100+"%",n}function b(e,t){var n=new URL(t.url,document.baseURI).href;e.setAttribute("data-img-src",n),e.setAttribute("style","--bg-image:url("+n+");--width:"+t.naturalWidth+"px;--height:"+A(t.naturalWidth,t.naturalHeight)),g.codemirror.setSize()}function y(){o.previewImagesInEditor&&h.querySelectorAll(".cm-image-marker").forEach(function(e){var t=e.parentElement;if(t.innerText.match(/^!\[.*?\]\(.*\)/g)&&!t.hasAttribute("data-img-src")){var n=t.innerText.match(/!\[.*?\]\((.*?)\)/);if(window.EMDEimagesCache||(window.EMDEimagesCache={}),n&&n.length>=2){var r=n[1];if(o.imagesPreviewHandler){var i=o.imagesPreviewHandler(n[1]);"string"===typeof i&&(r=i)}if(window.EMDEimagesCache[r])b(t,window.EMDEimagesCache[r]);else{window.EMDEimagesCache[r]={};var a=document.createElement("img");a.onload=function(){window.EMDEimagesCache[r]={naturalWidth:a.naturalWidth,naturalHeight:a.naturalHeight,url:r},b(t,window.EMDEimagesCache[r])},a.src=r}}}})}},fe.prototype.cleanup=function(){document.removeEventListener("keydown",this.documentOnKeyDown)},fe.prototype.autosave=function(){if(pe()){var e=this;if(void 0==this.options.autosave.uniqueId||""==this.options.autosave.uniqueId)return void console.log("EasyMDE: You must set a uniqueId to use the autosave feature");!0!==this.options.autosave.binded&&(null!=e.element.form&&void 0!=e.element.form&&e.element.form.addEventListener("submit",function(){clearTimeout(e.autosaveTimeoutId),e.autosaveTimeoutId=void 0,localStorage.removeItem("smde_"+e.options.autosave.uniqueId)}),this.options.autosave.binded=!0),!0!==this.options.autosave.loaded&&("string"==typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)&&""!=localStorage.getItem("smde_"+this.options.autosave.uniqueId)&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foundSavedValue=!0),this.options.autosave.loaded=!0);var t=e.value();""!==t?localStorage.setItem("smde_"+this.options.autosave.uniqueId,t):localStorage.removeItem("smde_"+this.options.autosave.uniqueId);var n=document.getElementById("autosaved");if(null!=n&&void 0!=n&&""!=n){var r=new Date,i=new Intl.DateTimeFormat([this.options.autosave.timeFormat.locale,"en-US"],this.options.autosave.timeFormat.format).format(r),o=void 0==this.options.autosave.text?"Autosaved: ":this.options.autosave.text;n.innerHTML=o+i}}else console.log("EasyMDE: localStorage not available, cannot autosave")},fe.prototype.clearAutosavedValue=function(){if(pe()){if(void 0==this.options.autosave||void 0==this.options.autosave.uniqueId||""==this.options.autosave.uniqueId)return void console.log("EasyMDE: You must set a uniqueId to clear the autosave value");localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("EasyMDE: localStorage not available, cannot autosave")},fe.prototype.openBrowseFileWindow=function(e,t){var n=this,r=this.gui.toolbar.getElementsByClassName("imageInput")[0];function i(o){n.options.imageUploadFunction?n.uploadImagesUsingCustomFunction(n.options.imageUploadFunction,o.target.files):n.uploadImages(o.target.files,e,t),r.removeEventListener("change",i)}r.click(),r.addEventListener("change",i)},fe.prototype.uploadImage=function(e,t,n){var r=this;function i(e){r.updateStatusBar("upload-image",e),setTimeout(function(){r.updateStatusBar("upload-image",r.options.imageTexts.sbInit)},1e4),n&&"function"===typeof n&&n(e),r.options.errorCallback(e)}function o(t){var n=r.options.imageTexts.sizeUnits.split(",");return t.replace("#image_name#",e.name).replace("#image_size#",te(e.size,n)).replace("#image_max_size#",te(r.options.imageMaxSize,n))}if(t=t||function(e){U(r,e)},e.size>this.options.imageMaxSize)i(o(this.options.errorMessages.fileTooLarge));else{var a=new FormData;a.append("image",e),r.options.imageCSRFToken&&!r.options.imageCSRFHeader&&a.append(r.options.imageCSRFName,r.options.imageCSRFToken);var s=new XMLHttpRequest;s.upload.onprogress=function(t){if(t.lengthComputable){var n=""+Math.round(100*t.loaded/t.total);r.updateStatusBar("upload-image",r.options.imageTexts.sbProgress.replace("#file_name#",e.name).replace("#progress#",n))}},s.open("POST",this.options.imageUploadEndpoint),r.options.imageCSRFToken&&r.options.imageCSRFHeader&&s.setRequestHeader(r.options.imageCSRFName,r.options.imageCSRFToken),s.onload=function(){try{var e=JSON.parse(this.responseText)}catch(n){return console.error("EasyMDE: The server did not return a valid json."),void i(o(r.options.errorMessages.importError))}200===this.status&&e&&!e.error&&e.data&&e.data.filePath?t((r.options.imagePathAbsolute?"":window.location.origin+"/")+e.data.filePath):e.error&&e.error in r.options.errorMessages?i(o(r.options.errorMessages[e.error])):e.error?i(o(e.error)):(console.error("EasyMDE: Received an unexpected response after uploading the image."+this.status+" ("+this.statusText+")"),i(o(r.options.errorMessages.importError)))},s.onerror=function(e){console.error("EasyMDE: An unexpected error occurred when trying to upload the image."+e.target.status+" ("+e.target.statusText+")"),i(r.options.errorMessages.importError)},s.send(a)}},fe.prototype.uploadImageUsingCustomFunction=function(e,t){var n=this;function r(e){U(n,e)}function i(e){var t=o(e);n.updateStatusBar("upload-image",t),setTimeout(function(){n.updateStatusBar("upload-image",n.options.imageTexts.sbInit)},1e4),n.options.errorCallback(t)}function o(e){var r=n.options.imageTexts.sizeUnits.split(",");return e.replace("#image_name#",t.name).replace("#image_size#",te(t.size,r)).replace("#image_max_size#",te(n.options.imageMaxSize,r))}e.apply(this,[t,r,i])},fe.prototype.setPreviewMaxHeight=function(){var e=this.codemirror,t=e.getWrapperElement(),n=t.nextSibling,r=parseInt(window.getComputedStyle(t).paddingTop),i=parseInt(window.getComputedStyle(t).borderTopWidth),o=parseInt(this.options.maxHeight),a=o+2*r+2*i,s=a.toString()+"px";n.style.height=s},fe.prototype.createSideBySide=function(){var e=this.codemirror,t=e.getWrapperElement(),n=t.nextSibling;if(!n||!n.classList.contains("editor-preview-side")){if(n=document.createElement("div"),n.className="editor-preview-side",this.options.previewClass)if(Array.isArray(this.options.previewClass))for(var r=0;r<this.options.previewClass.length;r++)n.classList.add(this.options.previewClass[r]);else"string"===typeof this.options.previewClass&&n.classList.add(this.options.previewClass);t.parentNode.insertBefore(n,t.nextSibling)}if("undefined"!==typeof this.options.maxHeight&&this.setPreviewMaxHeight(),!1===this.options.syncSideBySidePreviewScroll)return n;var i=!1,o=!1;return e.on("scroll",function(e){if(i)i=!1;else{o=!0;var t=e.getScrollInfo().height-e.getScrollInfo().clientHeight,r=parseFloat(e.getScrollInfo().top)/t,a=(n.scrollHeight-n.clientHeight)*r;n.scrollTop=a}}),n.onscroll=function(){if(o)o=!1;else{i=!0;var t=n.scrollHeight-n.clientHeight,r=parseFloat(n.scrollTop)/t,a=(e.getScrollInfo().height-e.getScrollInfo().clientHeight)*r;e.scrollTo(0,a)}},n},fe.prototype.createToolbar=function(e){if(e=e||this.options.toolbar,e&&0!==e.length){var t;for(t=0;t<e.length;t++)void 0!=ae[e[t]]&&(e[t]=ae[e[t]]);var n=document.createElement("div");n.className="editor-toolbar",n.setAttribute("role","toolbar");var r=this,i={};for(r.toolbar=e,t=0;t<e.length;t++)if(("guide"!=e[t].name||!1!==r.options.toolbarGuideIcon)&&(!r.options.hideIcons||-1==r.options.hideIcons.indexOf(e[t].name))&&("fullscreen"!=e[t].name&&"side-by-side"!=e[t].name||!d())){if("|"===e[t]){for(var o=!1,a=t+1;a<e.length;a++)"|"===e[a]||r.options.hideIcons&&-1!=r.options.hideIcons.indexOf(e[a].name)||(o=!0);if(!o)continue}(function(e){var t;if(t="|"===e?v():e.children?g(e,r.options.toolbarTips,r.options.shortcuts,r):m(e,!0,r.options.toolbarTips,r.options.shortcuts,"button",r),i[e.name||e]=t,n.appendChild(t),"upload-image"===e.name){var o=document.createElement("input");o.className="imageInput",o.type="file",o.multiple=!0,o.name=r.options.imageInputName,o.accept=r.options.imageAccept,o.style.display="none",o.style.opacity=0,n.appendChild(o)}})(e[t])}r.toolbar_div=n,r.toolbarElements=i;var s=this.codemirror;s.on("cursorActivity",function(){var e=b(s);for(var t in i)(function(t){var n=i[t];e[t]?n.classList.add("active"):"fullscreen"!=t&&"side-by-side"!=t&&n.classList.remove("active")})(t)});var l=s.getWrapperElement();return l.parentNode.insertBefore(n,l),n}},fe.prototype.createStatusbar=function(e){e=e||this.options.status;var t=this.options,n=this.codemirror;if(e&&0!==e.length){var r,i,o,a,s=[];for(r=0;r<e.length;r++)if(i=void 0,o=void 0,a=void 0,"object"===typeof e[r])s.push({className:e[r].className,defaultValue:e[r].defaultValue,onUpdate:e[r].onUpdate,onActivity:e[r].onActivity});else{var l=e[r];"words"===l?(a=function(e){e.innerHTML=ie(n.getValue())},i=function(e){e.innerHTML=ie(n.getValue())}):"lines"===l?(a=function(e){e.innerHTML=n.lineCount()},i=function(e){e.innerHTML=n.lineCount()}):"cursor"===l?(a=function(e){e.innerHTML="1:1"},o=function(e){var t=n.getCursor(),r=t.line+1,i=t.ch+1;e.innerHTML=r+":"+i}):"autosave"===l?a=function(e){void 0!=t.autosave&&!0===t.autosave.enabled&&e.setAttribute("id","autosaved")}:"upload-image"===l&&(a=function(e){e.innerHTML=t.imageTexts.sbInit}),s.push({className:l,defaultValue:a,onUpdate:i,onActivity:o})}var c=document.createElement("div");for(c.className="editor-statusbar",r=0;r<s.length;r++){var u=s[r],d=document.createElement("span");d.className=u.className,"function"===typeof u.defaultValue&&u.defaultValue(d),"function"===typeof u.onUpdate&&this.codemirror.on("update",function(e,t){return function(){t.onUpdate(e)}}(d,u)),"function"===typeof u.onActivity&&this.codemirror.on("cursorActivity",function(e,t){return function(){t.onActivity(e)}}(d,u)),c.appendChild(d)}var h=this.codemirror.getWrapperElement();return h.parentNode.insertBefore(c,h.nextSibling),c}},fe.prototype.value=function(e){var t=this.codemirror;if(void 0===e)return t.getValue();if(t.getDoc().setValue(e),this.isPreviewActive()){var n=t.getWrapperElement(),r=n.lastChild,i=this.options.previewRender(e,r);null!==i&&(r.innerHTML=i)}return this},fe.toggleBold=_,fe.toggleItalic=x,fe.toggleStrikethrough=E,fe.toggleBlockquote=C,fe.toggleHeadingSmaller=T,fe.toggleHeadingBigger=k,fe.toggleHeading1=O,fe.toggleHeading2=M,fe.toggleHeading3=I,fe.toggleHeading4=D,fe.toggleHeading5=N,fe.toggleHeading6=R,fe.toggleCodeBlock=S,fe.toggleUnorderedList=L,fe.toggleOrderedList=B,fe.cleanBlock=P,fe.drawLink=F,fe.drawImage=$,fe.drawUploadedImage=H,fe.drawTable=Q,fe.drawHorizontalRule=z,fe.undo=W,fe.redo=G,fe.togglePreview=K,fe.toggleSideBySide=V,fe.toggleFullScreen=w,fe.prototype.toggleBold=function(){_(this)},fe.prototype.toggleItalic=function(){x(this)},fe.prototype.toggleStrikethrough=function(){E(this)},fe.prototype.toggleBlockquote=function(){C(this)},fe.prototype.toggleHeadingSmaller=function(){T(this)},fe.prototype.toggleHeadingBigger=function(){k(this)},fe.prototype.toggleHeading1=function(){O(this)},fe.prototype.toggleHeading2=function(){M(this)},fe.prototype.toggleHeading3=function(){I(this)},fe.prototype.toggleHeading4=function(){D(this)},fe.prototype.toggleHeading5=function(){N(this)},fe.prototype.toggleHeading6=function(){R(this)},fe.prototype.toggleCodeBlock=function(){S(this)},fe.prototype.toggleUnorderedList=function(){L(this)},fe.prototype.toggleOrderedList=function(){B(this)},fe.prototype.cleanBlock=function(){P(this)},fe.prototype.drawLink=function(){F(this)},fe.prototype.drawImage=function(){$(this)},fe.prototype.drawUploadedImage=function(){H(this)},fe.prototype.drawTable=function(){Q(this)},fe.prototype.drawHorizontalRule=function(){z(this)},fe.prototype.undo=function(){W(this)},fe.prototype.redo=function(){G(this)},fe.prototype.togglePreview=function(){K(this)},fe.prototype.toggleSideBySide=function(){V(this)},fe.prototype.toggleFullScreen=function(){w(this)},fe.prototype.isPreviewActive=function(){var e=this.codemirror,t=e.getWrapperElement(),n=t.lastChild;return n.classList.contains("editor-preview-active")},fe.prototype.isSideBySideActive=function(){var e=this.codemirror,t=e.getWrapperElement(),n=t.nextSibling;return n.classList.contains("editor-preview-active-side")},fe.prototype.isFullscreenActive=function(){var e=this.codemirror;return e.getOption("fullScreen")},fe.prototype.getState=function(){var e=this.codemirror;return b(e)},fe.prototype.toTextArea=function(){var e=this.codemirror,t=e.getWrapperElement(),n=t.parentNode;n&&(this.gui.toolbar&&n.removeChild(this.gui.toolbar),this.gui.statusbar&&n.removeChild(this.gui.statusbar),this.gui.sideBySide&&n.removeChild(this.gui.sideBySide)),n.parentNode.insertBefore(t,n),n.remove(),e.toTextArea(),this.autosaveTimeoutId&&(clearTimeout(this.autosaveTimeoutId),this.autosaveTimeoutId=void 0,this.clearAutosavedValue())},e.exports=fe},96319:function(e,t,n){"use strict";var r=n(28551),i=n(9539);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){i(e,"throw",a)}}},96395:function(e){"use strict";e.exports=!1},96543:function(e){function t(e){return{name:"Oracle Rules Language",keywords:{keyword:"BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",built_in:"IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"literal",variants:[{begin:"#\\s+",relevance:0},{begin:"#[a-zA-Z .]+"}]}]}}e.exports=t},96736:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="UpOutlined",c.inheritAttrs=!1;var u=c},96801:function(e,t,n){"use strict";var r=n(43724),i=n(48686),o=n(24913),a=n(28551),s=n(25397),l=n(71072);t.f=r&&!i?Object.defineProperties:function(e,t){a(e);var n,r=s(t),i=l(t),c=i.length,u=0;while(c>u)o.f(e,n=i[u++],r[n]);return e}},96837:function(e){"use strict";var t=TypeError,n=9007199254740991;e.exports=function(e){if(e>n)throw t("Maximum allowed index exceeded");return e}},96902:function(e,t,n){"use strict";n.d(t,{D:function(){return u}});var r=n(51137),i=n(43085),o=n(94012),a=n(90112),s=n(9519),l=n(36068);function c(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const u=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}${e.antCls}-zoom-enter, ${t}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${e.antCls}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:(0,r.A)((0,r.A)({},c("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:(0,r.A)((0,r.A)({},c("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:(0,i.p9)(e)}]},d=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:(0,r.A)((0,r.A)({},(0,l.dF)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:(0,r.A)({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},(0,l.K8)(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n          ${t}-body,\n          ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},h=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:(0,r.A)({},(0,l.t6)()),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls},\n        ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess},[`${t}-zoom-leave ${t}-btns`]:{pointerEvents:"none"}}},f=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},p=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${r}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${r}-btns`]:{marginTop:e.marginLG}}}};t.A=(0,a.A)("Modal",e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5,i=(0,s.h1)(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:r,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:r*n+2*t,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:.55*e.controlHeightLG});return[d(i),h(i),f(i),u(i),e.wireframe&&p(i),(0,o.aB)(i,"zoom")]})},97040:function(e,t,n){"use strict";var r=n(43724),i=n(24913),o=n(6980);e.exports=function(e,t,n){r?i.f(e,t,o(0,n)):e[t]=n}},97070:function(e,t,n){"use strict";var r=n(41034),i=n(51137),o=n(56768),a=n(80816),s=n(92817),l=n(49974),c=n(73429),u=n(61088),d=n(50443),h=n(60674),f=n(91098),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const g=a.A.Group;t.A=(0,o.pM)({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:(0,c.A)((0,u.EC)(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:c,emit:u}=t;const m=e=>{u("update:visible",e),u("visibleChange",e),u("update:open",e),u("openChange",e)},{prefixCls:v,direction:A,getPopupContainer:b}=(0,h.A)("dropdown",e),y=(0,o.EW)(()=>`${v.value}-button`),[w,_]=(0,f.A)(v);return()=>{var t,u;const h=(0,i.A)((0,i.A)({},e),c),{type:f="default",disabled:v,danger:x,loading:E,htmlType:S,class:C="",overlay:T=(null===(t=n.overlay)||void 0===t?void 0:t.call(n)),trigger:k,align:O,open:M,visible:I,onVisibleChange:D,placement:N=("rtl"===A.value?"bottomLeft":"bottomRight"),href:R,title:L,icon:B=(null===(u=n.icon)||void 0===u?void 0:u.call(n))||(0,o.bF)(d.A,null,null),mouseEnterDelay:P,mouseLeaveDelay:F,overlayClassName:$,overlayStyle:j,destroyPopupOnHide:H,onClick:U,"onUpdate:open":Q}=h,z=p(h,["type","disabled","danger","loading","htmlType","class","overlay","trigger","align","open","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:open"]),W={align:O,disabled:v,trigger:v?[]:k,placement:N,getPopupContainer:null===b||void 0===b?void 0:b.value,onOpenChange:m,mouseEnterDelay:P,mouseLeaveDelay:F,open:null!==M&&void 0!==M?M:I,overlayClassName:$,overlayStyle:j,destroyPopupOnHide:H},G=(0,o.bF)(a.A,{danger:x,type:f,disabled:v,loading:E,onClick:U,htmlType:S,href:R,title:L},{default:n.default}),V=(0,o.bF)(a.A,{danger:x,type:f,icon:B},null);return w((0,o.bF)(g,(0,r.A)((0,r.A)({},z),{},{class:(0,l.A)(y.value,C,_.value)}),{default:()=>[n.leftButton?n.leftButton({button:G}):G,(0,o.bF)(s.A,W,{default:()=>[n.rightButton?n.rightButton({button:V}):V],overlay:()=>T})]}))}}})},97080:function(e,t,n){"use strict";var r=n(94402).has;e.exports=function(e){return r(e),e}},97324:function(e,t,n){"use strict";var r=n(44576),i=n(70511),o=n(24913).f,a=n(77347).f,s=r.Symbol;if(i("dispose"),s){var l=a(s,"dispose");l.enumerable&&l.configurable&&l.writable&&o(s,"dispose",{value:l.value,enumerable:!1,configurable:!1,writable:!1})}},97694:function(e,t,n){"use strict";n.d(t,{Ay:function(){return B}});var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(81425),l=n(32881),c=n(49974),u=n(60674),d=n(56405),h=n(55107);const f=Symbol("radioGroupContextKey"),p=e=>{(0,o.Gt)(f,e)},g=()=>(0,o.WQ)(f,void 0),m=Symbol("radioOptionTypeContextKey"),v=e=>{(0,o.Gt)(m,e)},A=()=>(0,o.WQ)(m,void 0);var b=n(44678),y=n(58085),w=n(90112),_=n(9519),x=n(36068);const E=new y.A("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),S=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:(0,i.A)((0,i.A)({},(0,x.dF)(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},C=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:r,radioSize:o,motionDurationSlow:a,motionDurationMid:s,motionEaseInOut:l,motionEaseInOutCirc:c,radioButtonBg:u,colorBorder:d,lineWidth:h,radioDotSize:f,colorBgContainerDisabled:p,colorTextDisabled:g,paddingXS:m,radioDotDisabledColor:v,lineType:A,radioDotDisabledSize:b,wireframe:y,colorWhite:w}=e,_=`${t}-inner`;return{[`${t}-wrapper`]:(0,i.A)((0,i.A)({},(0,x.dF)(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${h}px ${A} ${r}`,borderRadius:"50%",visibility:"hidden",animationName:E,animationDuration:a,animationTimingFunction:l,animationFillMode:"both",content:'""'},[t]:(0,i.A)((0,i.A)({},(0,x.dF)(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &,\n        &:hover ${_}`]:{borderColor:r},[`${t}-input:focus-visible + ${_}`]:(0,i.A)({},(0,x.jk)(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:o,height:o,marginBlockStart:o/-2,marginInlineStart:o/-2,backgroundColor:y?r:w,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${a} ${c}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:o,height:o,backgroundColor:u,borderColor:d,borderStyle:"solid",borderWidth:h,borderRadius:"50%",transition:`all ${s}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[_]:{borderColor:r,backgroundColor:y?u:r,"&::after":{transform:`scale(${f/o})`,opacity:1,transition:`all ${a} ${c}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[_]:{backgroundColor:p,borderColor:d,cursor:"not-allowed","&::after":{backgroundColor:v}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:g,cursor:"not-allowed"},[`&${t}-checked`]:{[_]:{"&::after":{transform:`scale(${b/o})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},T=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:s,motionDurationSlow:l,motionDurationMid:c,radioButtonPaddingHorizontal:u,fontSize:d,radioButtonBg:h,fontSizeLG:f,controlHeightLG:p,controlHeightSM:g,paddingXS:m,borderRadius:v,borderRadiusSM:A,borderRadiusLG:b,radioCheckedColor:y,radioButtonCheckedBg:w,radioButtonHoverColor:_,radioButtonActiveColor:E,radioSolidCheckedColor:S,colorTextDisabled:C,colorBgContainerDisabled:T,radioDisabledButtonCheckedColor:k,radioDisabledButtonCheckedBg:O}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:n-2*o+"px",background:h,border:`${o}px ${a} ${s}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`border-color ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-o,insetInlineStart:-o,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:s,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${a} ${s}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:p-2*o+"px","&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:g,paddingInline:m-o,paddingBlock:0,lineHeight:g-2*o+"px","&:first-child":{borderStartStartRadius:A,borderEndStartRadius:A},"&:last-child":{borderStartEndRadius:A,borderEndEndRadius:A}},"&:hover":{position:"relative",color:y},"&:has(:focus-visible)":(0,i.A)({},(0,x.jk)(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:y,background:w,borderColor:y,"&::before":{backgroundColor:y},"&:first-child":{borderColor:y},"&:hover":{color:_,borderColor:_,"&::before":{backgroundColor:_}},"&:active":{color:E,borderColor:E,"&::before":{backgroundColor:E}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:S,background:y,borderColor:y,"&:hover":{color:S,background:_,borderColor:_},"&:active":{color:S,background:E,borderColor:E}},"&-disabled":{color:C,backgroundColor:T,borderColor:s,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:T,borderColor:s}},[`&-disabled${r}-button-wrapper-checked`]:{color:k,backgroundColor:O,borderColor:s,boxShadow:"none"}}}};var k=(0,w.A)("Radio",e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:r,colorTextDisabled:i,colorBgContainer:o,fontSizeLG:a,controlOutline:s,colorPrimaryHover:l,colorPrimaryActive:c,colorText:u,colorPrimary:d,marginXS:h,controlOutlineWidth:f,colorTextLightSolid:p,wireframe:g}=e,m=`0 0 0 ${f}px ${s}`,v=m,A=a,b=4,y=A-2*b,w=g?y:A-2*(b+n),x=d,E=u,k=l,O=c,M=t-n,I=i,D=h,N=(0,_.h1)(e,{radioFocusShadow:m,radioButtonFocusShadow:v,radioSize:A,radioDotSize:w,radioDotDisabledSize:y,radioCheckedColor:x,radioDotDisabledColor:i,radioSolidCheckedColor:p,radioButtonBg:o,radioButtonCheckedBg:o,radioButtonColor:E,radioButtonHoverColor:k,radioButtonActiveColor:O,radioButtonPaddingHorizontal:M,radioDisabledButtonCheckedBg:r,radioDisabledButtonCheckedColor:I,radioWrapperMarginRight:D});return[S(N),C(N),T(N)]}),O=n(93758),M=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const I=()=>({prefixCls:String,checked:(0,b.HE)(),disabled:(0,b.HE)(),isGroup:(0,b.HE)(),value:s.A.any,name:String,id:String,autofocus:(0,b.HE)(),onChange:(0,b.Fg)(),onFocus:(0,b.Fg)(),onBlur:(0,b.Fg)(),onClick:(0,b.Fg)(),"onUpdate:checked":(0,b.Fg)(),"onUpdate:value":(0,b.Fg)()});var D=(0,o.pM)({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:I(),setup(e,t){let{emit:n,expose:s,slots:f,attrs:p}=t;const m=(0,d.db)(),v=d.$W.useInject(),b=A(),y=g(),w=(0,O.p)(),_=(0,o.EW)(()=>{var e;return null!==(e=C.value)&&void 0!==e?e:w.value}),x=(0,a.KR)(),{prefixCls:E,direction:S,disabled:C}=(0,u.A)("radio",e),T=(0,o.EW)(()=>"button"===(null===y||void 0===y?void 0:y.optionType.value)||"button"===b?`${E.value}-button`:E.value),I=(0,O.p)(),[D,N]=k(E),R=()=>{x.value.focus()},L=()=>{x.value.blur()};s({focus:R,blur:L});const B=e=>{const t=e.target.checked;n("update:checked",t),n("update:value",t),n("change",e),m.onFieldChange()},P=e=>{n("change",e),y&&y.onChange&&y.onChange(e)};return()=>{var t;const n=y,{prefixCls:a,id:s=m.id.value}=e,u=M(e,["prefixCls","id"]),d=(0,i.A)((0,i.A)({prefixCls:T.value,id:s},(0,h.A)(u,["onUpdate:checked","onUpdate:value"])),{disabled:null!==(t=C.value)&&void 0!==t?t:I.value});n?(d.name=n.name.value,d.onChange=P,d.checked=e.value===n.value.value,d.disabled=_.value||n.disabled.value):d.onChange=B;const g=(0,c.A)({[`${T.value}-wrapper`]:!0,[`${T.value}-wrapper-checked`]:d.checked,[`${T.value}-wrapper-disabled`]:d.disabled,[`${T.value}-wrapper-rtl`]:"rtl"===S.value,[`${T.value}-wrapper-in-form-item`]:v.isFormItemInput},p.class,N.value);return D((0,o.bF)("label",(0,r.A)((0,r.A)({},p),{},{class:g}),[(0,o.bF)(l.A,(0,r.A)((0,r.A)({},d),{},{type:"radio",ref:x}),null),f.default&&(0,o.bF)("span",null,[f.default()])]))}}});n(18111),n(61701);const N=()=>({prefixCls:String,value:s.A.any,size:(0,b.WO)(),options:(0,b.MY)(),disabled:(0,b.HE)(),name:String,buttonStyle:(0,b.WO)("outline"),id:String,optionType:(0,b.WO)("default"),onChange:(0,b.Fg)(),"onUpdate:value":(0,b.Fg)()});var R=(0,o.pM)({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:N(),setup(e,t){let{slots:n,emit:i,attrs:s}=t;const l=(0,d.db)(),{prefixCls:h,direction:f,size:g}=(0,u.A)("radio",e),[m,v]=k(h),A=(0,a.KR)(e.value),b=(0,a.KR)(!1);(0,o.wB)(()=>e.value,e=>{A.value=e,b.value=!1});const y=t=>{const n=A.value,{value:r}=t.target;"value"in e||(A.value=r),b.value||r===n||(b.value=!0,i("update:value",r),i("change",t),l.onFieldChange()),(0,o.dY)(()=>{b.value=!1})};return p({onChange:y,value:A,disabled:(0,o.EW)(()=>e.disabled),name:(0,o.EW)(()=>e.name),optionType:(0,o.EW)(()=>e.optionType)}),()=>{var t;const{options:i,buttonStyle:a,id:u=l.id.value}=e,d=`${h.value}-group`,p=(0,c.A)(d,`${d}-${a}`,{[`${d}-${g.value}`]:g.value,[`${d}-rtl`]:"rtl"===f.value},s.class,v.value);let b=null;return b=i&&i.length>0?i.map(t=>{if("string"===typeof t||"number"===typeof t)return(0,o.bF)(D,{key:t,prefixCls:h.value,disabled:e.disabled,value:t,checked:A.value===t},{default:()=>[t]});const{value:n,disabled:r,label:i}=t;return(0,o.bF)(D,{key:`radio-group-value-options-${n}`,prefixCls:h.value,disabled:r||e.disabled,value:n,checked:A.value===n},{default:()=>[i]})}):null===(t=n.default)||void 0===t?void 0:t.call(n),m((0,o.bF)("div",(0,r.A)((0,r.A)({},s),{},{class:p,id:u}),[b]))}}}),L=(0,o.pM)({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:I(),setup(e,t){let{slots:n,attrs:i}=t;const{prefixCls:a}=(0,u.A)("radio",e);return v("button"),()=>{var t;return(0,o.bF)(D,(0,r.A)((0,r.A)((0,r.A)({},i),e),{},{prefixCls:a.value}),{default:()=>[null===(t=n.default)||void 0===t?void 0:t.call(n)]})}}});D.Group=R,D.Button=L,D.install=function(e){return e.component(D.name,D),e.component(D.Group.name,D.Group),e.component(D.Button.name,D.Button),e};var B=D},97711:function(e){function t(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}e.exports=t},97751:function(e,t,n){"use strict";var r=n(44576),i=n(94901),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},97755:function(e){function t(e){const t="[a-z'][a-zA-Z0-9_']*",n="("+t+":"+t+"|"+t+")",r={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor maybe else",literal:"false true"},i=e.COMMENT("%","$"),o={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},a={begin:"fun\\s+"+t+"/\\d+"},s={begin:n+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},l={begin:/\{/,end:/\}/,relevance:0},c={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},u={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},d={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},h={scope:"string",match:/\$(\\([^0-9]|[0-9]{1,3}|)|.)/},f={scope:"string",match:/"""("*)(?!")[\s\S]*?"""\1/},p={scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{match:/~\w?"""("*)(?!")[\s\S]*?"""\1/},{begin:/~\w?\(/,end:/\)/},{begin:/~\w?\[/,end:/\]/},{begin:/~\w?{/,end:/}/},{begin:/~\w?</,end:/>/},{begin:/~\w?\//,end:/\//},{begin:/~\w?\|/,end:/\|/},{begin:/~\w?'/,end:/'/},{begin:/~\w?"/,end:/"/},{begin:/~\w?`/,end:/`/},{begin:/~\w?#/,end:/#/}]},g={beginKeywords:"fun receive if try case maybe",end:"end",keywords:r};g.contains=[i,a,e.inherit(e.APOS_STRING_MODE,{className:""}),g,s,p,f,e.QUOTE_STRING_MODE,o,l,c,u,d,h];const m=[i,a,g,s,p,f,e.QUOTE_STRING_MODE,o,l,c,u,d,h];s.contains[1].contains=m,l.contains=m,d.contains[1].contains=m;const v=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-moduledoc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec","-on_load","-nifs"],A={className:"params",begin:"\\(",end:"\\)",contains:m};return{name:"Erlang",aliases:["erl"],keywords:r,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+t+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[A,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:r,contains:m}},i,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:v.map(e=>`${e}|1.5`).join(" ")},contains:[A,p,f,e.QUOTE_STRING_MODE]},o,p,f,e.QUOTE_STRING_MODE,d,c,u,l,h,{begin:/\.$/}]}}e.exports=t},97914:function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";return function(e,t,n){e=e||{};var r=t.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(e,t,n,i){return r.fromToBase(e,t,n,i)}n.en.relativeTime=i,r.fromToBase=function(t,r,o,a,s){for(var l,c,u,d=o.$locale().relativeTime||i,h=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],f=h.length,p=0;p<f;p+=1){var g=h[p];g.d&&(l=a?n(t).diff(o,g.d,!0):o.diff(t,g.d,!0));var m=(e.rounding||Math.round)(Math.abs(l));if(u=l>0,m<=g.r||!g.r){m<=1&&p>0&&(g=h[p-1]);var v=d[g.l];s&&(m=s(""+m)),c="string"==typeof v?v.replace("%d",m):v(m,r,g.l,u);break}}if(r)return c;var A=u?d.future:d.past;return"function"==typeof A?A(c):A.replace("%s",c)},r.to=function(e,t){return o(e,t,this,!0)},r.from=function(e,t){return o(e,t,this)};var a=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(a(this),e)},r.fromNow=function(e){return this.from(a(this),e)}}})},98082:function(e,t,n){"use strict";var r=n(68912);function i(e){e=e||{},"function"===typeof e.codeMirrorInstance&&"function"===typeof e.codeMirrorInstance.defineMode?(String.prototype.includes||(String.prototype.includes=function(){return-1!==String.prototype.indexOf.apply(this,arguments)}),e.codeMirrorInstance.defineMode("spell-checker",function(t){if(!i.aff_loading){i.aff_loading=!0;var n=new XMLHttpRequest;n.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff",!0),n.onload=function(){4===n.readyState&&200===n.status&&(i.aff_data=n.responseText,i.num_loaded++,2==i.num_loaded&&(i.typo=new r("en_US",i.aff_data,i.dic_data,{platform:"any"})))},n.send(null)}if(!i.dic_loading){i.dic_loading=!0;var o=new XMLHttpRequest;o.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic",!0),o.onload=function(){4===o.readyState&&200===o.status&&(i.dic_data=o.responseText,i.num_loaded++,2==i.num_loaded&&(i.typo=new r("en_US",i.aff_data,i.dic_data,{platform:"any"})))},o.send(null)}var a='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~ ',s={token:function(e){var t=e.peek(),n="";if(a.includes(t))return e.next(),null;while(null!=(t=e.peek())&&!a.includes(t))n+=t,e.next();return i.typo&&!i.typo.check(n)?"spell-error":null}},l=e.codeMirrorInstance.getMode(t,t.backdrop||"text/plain");return e.codeMirrorInstance.overlayMode(l,s,!0)})):console.log("CodeMirror Spell Checker: You must provide an instance of CodeMirror via the option `codeMirrorInstance`")}i.num_loaded=0,i.aff_loading=!1,i.dic_loading=!1,i.aff_data="",i.dic_data="",i.typo,e.exports=i},98215:function(e,t,n){"use strict";n.d(t,{L:function(){return i},v:function(){return o}});var r=n(49974);function i(e,t,n){return(0,r.A)({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const o=(e,t)=>t||e},98353:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var r=n(1821),i=n(72990),o=n(26162),a=n(23506),s=i.A?i.A.isConcatSpreadable:void 0;function l(e){return(0,a.A)(e)||(0,o.A)(e)||!!(s&&e&&e[s])}var c=l;function u(e,t,n,i,o){var a=-1,s=e.length;n||(n=c),o||(o=[]);while(++a<s){var l=e[a];t>0&&n(l)?t>1?u(l,t-1,n,i,o):(0,r.A)(o,l):i||(o[o.length]=l)}return o}var d=u;function h(e){var t=null==e?0:e.length;return t?d(e,1):[]}var f=h,p=n(35867),g=n(37431);function m(e){return(0,g.A)((0,p.A)(e,void 0,f),e+"")}var v=m},98382:function(e,t,n){"use strict";n.d(t,{A:function(){return C}});var r=n(51137),i=n(56768),o=n(73429),a=n(49974),s=n(44678),l=n(60674),c=n(77246),u=n(58283),d=n(9138),h=n(90144);const f=Symbol("appConfigContext"),p=e=>(0,i.Gt)(f,e),g=()=>(0,i.WQ)(f,{}),m=Symbol("appContext"),v=e=>(0,i.Gt)(m,e),A=(0,h.Kh)({message:{},notification:{},modal:{}}),b=()=>(0,i.WQ)(m,A);var y=n(90112);const w=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:i,fontFamily:o}=e;return{[t]:{color:n,fontSize:r,lineHeight:i,fontFamily:o}}};var _=(0,y.A)("App",e=>[w(e)]);const x=()=>({rootClassName:String,message:(0,s.ge)(),notification:(0,s.ge)()}),E=()=>b(),S=(0,i.pM)({name:"AApp",props:(0,o.A)(x(),{}),setup(e,t){let{slots:n}=t;const{prefixCls:o}=(0,l.A)("app",e),[s,h]=_(o),f=(0,i.EW)(()=>(0,a.A)(h.value,o.value,e.rootClassName)),m=g(),A=(0,i.EW)(()=>({message:(0,r.A)((0,r.A)({},m.message),e.message),notification:(0,r.A)((0,r.A)({},m.notification),e.notification)}));p(A.value);const[b,y]=(0,c.A)(A.value.message),[w,x]=(0,d.A)(A.value.notification),[E,S]=(0,u.A)(),C=(0,i.EW)(()=>({message:b,notification:w,modal:E}));return v(C.value),()=>{var e;return s((0,i.bF)("div",{class:f.value},[S(),y(),x(),null===(e=n.default)||void 0===e?void 0:e.call(n)]))}}});S.useApp=E,S.install=function(e){e.component(S.name,S)};var C=S},98684:function(e,t,n){"use strict";function r(){}let i=r;t.Ay=i},98697:function(e){"use strict";var t=e.exports;e.exports.isNumber=function(e){return"number"===typeof e},e.exports.findMin=function(e){if(0===e.length)return 1/0;for(var t=e[0],n=1;n<e.length;n++)t=Math.min(t,e[n]);return t},e.exports.findMax=function(e){if(0===e.length)return-1/0;for(var t=e[0],n=1;n<e.length;n++)t=Math.max(t,e[n]);return t},e.exports.findMinMulti=function(e){for(var n=t.findMin(e[0]),r=1;r<e.length;r++)n=Math.min(n,t.findMin(e[r]));return n},e.exports.findMaxMulti=function(e){for(var n=t.findMax(e[0]),r=1;r<e.length;r++)n=Math.max(n,t.findMax(e[r]));return n},e.exports.inside=function(e,t,n){return e<=n&&n<=t}},99078:function(e,t,n){"use strict";n.d(t,{AR:function(){return s},GY:function(){return f},M7:function(){return l},OQ:function(){return h},VG:function(){return d},pM:function(){return o},yA:function(){return c},zL:function(){return u}});var r=n(56768),i=n(44678);const o="anticon",a=Symbol("GlobalFormContextKey"),s=e=>{(0,r.Gt)(a,e)},l=()=>(0,r.WQ)(a,{validateMessages:(0,r.EW)(()=>{})}),c=(Symbol("GlobalConfigContextKey"),()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:(0,i.ge)(),input:(0,i.ge)(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:(0,i.ge)(),pageHeader:(0,i.ge)(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:(0,i.ge)(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:(0,i.ge)(),pagination:(0,i.ge)(),theme:(0,i.ge)(),select:(0,i.ge)(),wave:(0,i.ge)()})),u=Symbol("configProvider"),d={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:(0,r.EW)(()=>o),getPopupContainer:(0,r.EW)(()=>()=>document.body),direction:(0,r.EW)(()=>"ltr")},h=()=>(0,r.WQ)(u,d),f=e=>(0,r.Gt)(u,e)},99163:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="LeftOutlined",c.inheritAttrs=!1;var u=c},99298:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});n(18111),n(22489),n(7588);var r=n(56768),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},o=i,a=n(4827);function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){l(e,t,n[t])})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(e,t){var n=s({},e,t.attrs);return(0,r.bF)(a.A,s({},n,{icon:o}),null)};c.displayName="VerticalAlignTopOutlined",c.inheritAttrs=!1;var u=c},99395:function(e,t,n){"use strict";n.d(t,{Ay:function(){return L}});n(44114),n(18111),n(7588),n(61701),n(13579);var r=n(41034),i=n(51137),o=n(56768),a=n(90144),s=n(24923),l=n(49974),c=n(93631),u=n(83313),d=n(81998),h=n(9761),f=n(60674);function p(){}const g=Symbol("anchorContextKey"),m=e=>{(0,o.Gt)(g,e)},v=()=>(0,o.WQ)(g,{registerLink:p,unregisterLink:p,scrollTo:p,activeLink:(0,o.EW)(()=>""),handleClick:p,direction:(0,o.EW)(()=>"vertical")});var A=m,b=n(90112),y=n(9519),w=n(36068);const _=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:r,lineWidthBold:o,colorPrimary:a,lineType:s,colorSplit:l}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,backgroundColor:"transparent",[t]:(0,i.A)((0,i.A)({},(0,w.dF)(e)),{position:"relative",paddingInlineStart:o,[`${t}-link`]:{paddingBlock:e.anchorPaddingBlock,paddingInline:`${e.anchorPaddingInline}px 0`,"&-title":(0,i.A)((0,i.A)({},w.L9),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",left:{_skip_check_:!0,value:0},top:0,height:"100%",borderInlineStart:`${o}px ${s} ${l}`,content:'" "'},[`${t}-ink`]:{position:"absolute",left:{_skip_check_:!0,value:0},display:"none",transform:"translateY(-50%)",transition:`top ${r} ease-in-out`,width:o,backgroundColor:a,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},x=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:r,colorPrimary:i}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:r,backgroundColor:i}}}}};var E=(0,b.A)("Anchor",e=>{const{fontSize:t,fontSizeLG:n,padding:r,paddingXXS:i}=e,o=(0,y.h1)(e,{holderOffsetBlock:i,anchorPaddingBlock:i,anchorPaddingBlockSecondary:i/2,anchorPaddingInline:r,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[_(o),x(o)]}),S=n(73429),C=n(44678);const T=()=>({prefixCls:String,href:String,title:(0,C.ds)(),target:String,customTitleProps:(0,C.ge)()});var k=(0,o.pM)({compatConfig:{MODE:3},name:"AAnchorLink",inheritAttrs:!1,props:(0,S.A)(T(),{href:"#"}),slots:Object,setup(e,t){let{slots:n,attrs:i}=t,a=null;const{handleClick:s,scrollTo:c,unregisterLink:u,registerLink:d,activeLink:h}=v(),{prefixCls:p}=(0,f.A)("anchor",e),g=t=>{const{href:n}=e;s(t,{title:a,href:n}),c(n)};return(0,o.wB)(()=>e.href,(e,t)=>{(0,o.dY)(()=>{u(t),d(e)})}),(0,o.sV)(()=>{d(e.href)}),(0,o.xo)(()=>{u(e.href)}),()=>{var t;const{href:s,target:c,title:u=n.title,customTitleProps:d={}}=e,f=p.value;a="function"===typeof u?u(d):u;const m=h.value===s,v=(0,l.A)(`${f}-link`,{[`${f}-link-active`]:m},i.class),A=(0,l.A)(`${f}-link-title`,{[`${f}-link-title-active`]:m});return(0,o.bF)("div",(0,r.A)((0,r.A)({},i),{},{class:v}),[(0,o.bF)("a",{class:A,href:s,title:"string"===typeof a?a:"",target:c,onClick:g},[n.customTitle?n.customTitle(d):a]),null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}),O=n(81425);function M(){return window}function I(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const D=/#([\S ]+)$/,N=()=>({prefixCls:String,offsetTop:Number,bounds:Number,affix:{type:Boolean,default:!0},showInkInFixed:{type:Boolean,default:!1},getContainer:Function,wrapperClass:String,wrapperStyle:{type:Object,default:void 0},getCurrentAnchor:Function,targetOffset:Number,items:(0,C.MY)(),direction:O.A.oneOf(["vertical","horizontal"]).def("vertical"),onChange:Function,onClick:Function});var R=(0,o.pM)({compatConfig:{MODE:3},name:"AAnchor",inheritAttrs:!1,props:N(),setup(e,t){let{emit:n,attrs:p,slots:g,expose:m}=t;const{prefixCls:v,getTargetContainer:b,direction:y}=(0,f.A)("anchor",e),w=(0,o.EW)(()=>{var t;return null!==(t=e.direction)&&void 0!==t?t:"vertical"});const _=(0,a.KR)(null),x=(0,a.KR)(),S=(0,a.Kh)({links:[],scrollContainer:null,scrollEvent:null,animating:!1}),C=(0,a.KR)(null),T=(0,o.EW)(()=>{const{getContainer:t}=e;return t||(null===b||void 0===b?void 0:b.value)||M}),O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;const n=[],r=T.value();if(S.links.forEach(i=>{const o=D.exec(i.toString());if(!o)return;const a=document.getElementById(o[1]);if(a){const o=I(a,r);o<e+t&&n.push({link:i,top:o})}}),n.length){const e=n.reduce((e,t)=>t.top>e.top?t:e);return e.link}return""},N=t=>{const{getCurrentAnchor:r}=e;C.value!==t&&(C.value="function"===typeof r?r(t):t,n("change",t))},R=t=>{const{offsetTop:n,targetOffset:r}=e;N(t);const i=D.exec(t);if(!i)return;const o=document.getElementById(i[1]);if(!o)return;const a=T.value(),s=(0,h.A)(a,!0),l=I(o,a);let c=s+l;c-=void 0!==r?r:n||0,S.animating=!0,(0,d.A)(c,{callback:()=>{S.animating=!1},getContainer:T.value})};m({scrollTo:R});const L=()=>{if(S.animating)return;const{offsetTop:t,bounds:n,targetOffset:r}=e,i=O(void 0!==r?r:t||0,n);N(i)},B=()=>{const e=x.value.querySelector(`.${v.value}-link-title-active`);if(e&&_.value){const t="horizontal"===w.value;_.value.style.top=t?"":`${e.offsetTop+e.clientHeight/2}px`,_.value.style.height=t?"":`${e.clientHeight}px`,_.value.style.left=t?`${e.offsetLeft}px`:"",_.value.style.width=t?`${e.clientWidth}px`:"",t&&(0,s.A)(e,{scrollMode:"if-needed",block:"nearest"})}};A({registerLink:e=>{S.links.includes(e)||S.links.push(e)},unregisterLink:e=>{const t=S.links.indexOf(e);-1!==t&&S.links.splice(t,1)},activeLink:C,scrollTo:R,handleClick:(e,t)=>{n("click",e,t)},direction:w}),(0,o.sV)(()=>{(0,o.dY)(()=>{const e=T.value();S.scrollContainer=e,S.scrollEvent=(0,c.A)(S.scrollContainer,"scroll",L),L()})}),(0,o.xo)(()=>{S.scrollEvent&&S.scrollEvent.remove()}),(0,o.$u)(()=>{if(S.scrollEvent){const e=T.value();S.scrollContainer!==e&&(S.scrollContainer=e,S.scrollEvent.remove(),S.scrollEvent=(0,c.A)(S.scrollContainer,"scroll",L),L())}B()});const P=e=>Array.isArray(e)?e.map(e=>{const{children:t,key:n,href:r,target:i,class:a,style:s,title:l}=e;return(0,o.bF)(k,{key:n,href:r,target:i,class:a,style:s,title:l,customTitleProps:e},{default:()=>["vertical"===w.value?P(t):null],customTitle:g.customTitle})}):null,[F,$]=E(v);return()=>{var t;const{offsetTop:n,affix:a,showInkInFixed:s}=e,c=v.value,d=(0,l.A)(`${c}-ink`,{[`${c}-ink-visible`]:C.value}),h=(0,l.A)($.value,e.wrapperClass,`${c}-wrapper`,{[`${c}-wrapper-horizontal`]:"horizontal"===w.value,[`${c}-rtl`]:"rtl"===y.value}),f=(0,l.A)(c,{[`${c}-fixed`]:!a&&!s}),m=(0,i.A)({maxHeight:n?`calc(100vh - ${n}px)`:"100vh"},e.wrapperStyle),A=(0,o.bF)("div",{class:h,style:m,ref:x},[(0,o.bF)("div",{class:f},[(0,o.bF)("span",{class:d,ref:_},null),Array.isArray(e.items)?P(e.items):null===(t=g.default)||void 0===t?void 0:t.call(g)])]);return F(a?(0,o.bF)(u.A,(0,r.A)((0,r.A)({},p),{},{offsetTop:n,target:T.value}),{default:()=>[A]}):A)}}});R.Link=k,R.install=function(e){return e.component(R.name,R),e.component(R.Link.name,R.Link),e};var L=R},99590:function(e,t,n){"use strict";var r=n(91291),i=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw new i("The argument can't be less than 0");return t}},99603:function(e,t,n){"use strict";var r=n(56768),i=n(50888);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant-motion-collapse",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return{name:e,appear:t,css:!0,onBeforeEnter:t=>{t.style.height="0px",t.style.opacity="0",(0,i.iQ)(t,e)},onEnter:e=>{(0,r.dY)(()=>{e.style.height=`${e.scrollHeight}px`,e.style.opacity="1"})},onAfterEnter:t=>{t&&((0,i.vy)(t,e),t.style.height=null,t.style.opacity=null)},onBeforeLeave:t=>{(0,i.iQ)(t,e),t.style.height=`${t.offsetHeight}px`,t.style.opacity=null},onLeave:e=>{setTimeout(()=>{e.style.height="0px",e.style.opacity="0"})},onAfterLeave:t=>{t&&((0,i.vy)(t,e),t.style&&(t.style.height=null,t.style.opacity=null))}}};t.A=o},99604:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var r=n(41034),i=n(51137),o=n(56768),a=n(44832),s=n(44678),l=n(60674),c=n(90112),u=n(9519),d=n(36068);const h=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return{[t]:(0,i.A)((0,i.A)({},(0,d.dF)(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var f=(0,c.A)("Divider",e=>{const t=(0,u.h1)(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[h(t)]},{sizePaddingEdgeHorizontal:0});const p=()=>({prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}),g=(0,o.pM)({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:p(),setup(e,t){let{slots:n,attrs:s}=t;const{prefixCls:c,direction:u}=(0,l.A)("divider",e),[d,h]=f(c),p=(0,o.EW)(()=>"left"===e.orientation&&null!=e.orientationMargin),g=(0,o.EW)(()=>"right"===e.orientation&&null!=e.orientationMargin),m=(0,o.EW)(()=>{const{type:t,dashed:n,plain:r}=e,i=c.value;return{[i]:!0,[h.value]:!!h.value,[`${i}-${t}`]:!0,[`${i}-dashed`]:!!n,[`${i}-plain`]:!!r,[`${i}-rtl`]:"rtl"===u.value,[`${i}-no-default-orientation-margin-left`]:p.value,[`${i}-no-default-orientation-margin-right`]:g.value}}),v=(0,o.EW)(()=>{const t="number"===typeof e.orientationMargin?`${e.orientationMargin}px`:e.orientationMargin;return(0,i.A)((0,i.A)({},p.value&&{marginLeft:t}),g.value&&{marginRight:t})}),A=(0,o.EW)(()=>e.orientation.length>0?"-"+e.orientation:e.orientation);return()=>{var e;const t=(0,a.MI)(null===(e=n.default)||void 0===e?void 0:e.call(n));return d((0,o.bF)("div",(0,r.A)((0,r.A)({},s),{},{class:[m.value,t.length?`${c.value}-with-text ${c.value}-with-text${A.value}`:"",s.class],role:"separator"}),[t.length?(0,o.bF)("span",{class:`${c.value}-inner-text`,style:v.value},[t]):null]))}}});var m=(0,s.GU)(g)},99778:function(e,t,n){"use strict";n.d(t,{YU:function(){return l},_j:function(){return p},nP:function(){return s},ox:function(){return o},vR:function(){return a}});var r=n(58085),i=n(33041);const o=new r.A("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),a=new r.A("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),s=new r.A("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),l=new r.A("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),c=new r.A("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),u=new r.A("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),d=new r.A("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),h=new r.A("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),f={"slide-up":{inKeyframes:o,outKeyframes:a},"slide-down":{inKeyframes:s,outKeyframes:l},"slide-left":{inKeyframes:c,outKeyframes:u},"slide-right":{inKeyframes:d,outKeyframes:h}},p=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=f[t];return[(0,i.b)(r,o,a,e.motionDurationMid),{[`\n      ${r}-enter,\n      ${r}-appear\n    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}},99899:function(e,t,n){"use strict";n.d(t,{$e:function(){return i},N4:function(){return o},g9:function(){return l}});let r={};function i(e,t){0}function o(e,t){0}function a(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function s(e,t){a(i,e,t)}function l(e,t){a(o,e,t)}t.Ay=s}}]);